Search arXiv⌕ Search

arXiv subjects

Hanbo Song

Publications and source records attributed to Hanbo Song.

3 recordsLinked to original sources

SheetCraft: Fine-Tuning Code Agents for Execution-Guided Spreadsheet Reasoning and Construction

Spreadsheets are a common interface for operational data management, but building realistic spreadsheet artifacts requires coordinated edits across tables, fields, formulas, views, dashboards, workflows, and permissions. We study this problem as an execution-guided code-agent task. Given a natural-language request and an initial spreadsheet base, the agent must generate executable actions that transform the base into a persistent target artifact. This setting is different from table question answering and one-shot code generation because correctness depends on state transitions, cross-component consistency, and repair from concrete execution failures. We present SheetCraft, a training and evaluation framework for spreadsheet code agents that combines compilation feedback, sandbox execution, and artifact-level judging. SheetCraft trains on distilled tool-use QA data and multi-turn code-agent trajectories derived from real usage scenarios, allowing the model to learn both operation semantics and feedback-conditioned repair. On a 595-case held-out benchmark drawn from real usage scenarios with 1,750 user turns, SheetCraft-27B achieves 96.6/95.0 case-level all-turns compile/execute success and 98.9/98.3 turn-level compile/execute success. Further analysis shows that trajectory supervision, teacher diversity, and budgeted repair are key to reliable spreadsheet construction.

cs.SE↗

Optimizing Parameterized Physics-Informed Neural Networks to Solve Multilayered Static Linear Elastic PDEs

Designing multilayered materials for controlled deformation is heavily bottlenecked by the immense computational costs and time of traditional, industrial-grade finite element methods (FEM). This excessive expense severely limits design space exploration and gradient-based optimization. To streamline the workflow, we propose a framework for parameterized physics-informed neural networks (P2INNs). The framework encompasses three core components: I. a FEM baseline with a Hex8 element and trilinear basis functions, II. a P2INN displacement field model across variable material stiffness and layer thicknesses, and III. FEM-referenced evaluation. The PINN enforces static linear elasticity via Navier-Cauchy residuals with training strategies that prioritize physics, including layerwise PDE decomposition, interface continuity penalty, and compliance aware scaling. For one-layer, pure physics-driven configurations, the PINN achieves a mean volume MAE of 1.56% and worst-case volume MAE of 2.87% against the FEM benchmark. For three-layer configurations with controlled supervised training, the PINN achieves a mean volume MAE of 2.53% and worst-case volume MAE of 4.66%, meeting the near-5% worst-case volume-MAE target for preliminary design-space exploration. The trained P2INN model remains a lightweight model with a simple forward pass for future calculations, creating an alternative to traditional FEM. By drastically reducing the need for expensive FEM evaluations, this approach could accelerate the inverse design and optimization of advanced layered architectures for protective structures in various load-heavy or potentially collision-heavy fields.

cs.CE↗

AutoRed: A Free-form Adversarial Prompt Generation Framework for Automated Red Teaming

The safety of Large Language Models (LLMs) is crucial for the development of trustworthy AI applications. Existing red teaming methods often rely on seed instructions, which limits the semantic diversity of the synthesized adversarial prompts. We propose AutoRed, a free-form adversarial prompt generation framework that removes the need for seed instructions. AutoRed operates in two stages: (1) persona-guided adversarial instruction generation, and (2) a reflection loop to iteratively refine low-quality prompts. To improve efficiency, we introduce a verifier to assess prompt harmfulness without querying the target models. Using AutoRed, we build two red teaming datasets -- AutoRed-Medium and AutoRed-Hard -- and evaluate eight state-of-the-art LLMs. AutoRed achieves higher attack success rates and better generalization than existing baselines. Our results highlight the limitations of seed-based approaches and demonstrate the potential of free-form red teaming for LLM safety evaluation. We will open source our datasets in the near future.

cs.CL↗