Learning to Formulate: Agentic Hardware-Software Co-Design of AI Infrastructure through Progressive Optimization and Verification
Yi Ding, Li Shang
Abstract
AI infrastructure, the chips and software that train and serve AI models, is designed in layers. Layers make the system manageable, but they also fix which choices an optimizer can consider. Gains that need the chip and its software to change together are excluded before optimization begins: the formulation leaves them out. Language-model agents make it possible to revisit these boundaries, but an agent's proposal cannot show by itself that a design is correct or optimal. We present Formulaic, a flow that divides the work. The agent writes the formulation, a mathematical solver optimizes within it, and verification and measurement check its assumptions and results. The agent refines the problem step by step, from the computation graph toward the chip. Each step is a template: a family of programs with the conditions under which they are correct. Wall relaxation searches the chip by pricing the hardware limits that bind the software. This paper takes a first step, through separate studies rather than one end-to-end run. On NVIDIA GB10, templates the agent wrote run complete Qwen3-8B layers 1.075× faster than SGLang. In a simulated Ventus GPU study, joint design cuts the worst-scenario cycles of Qwen2.5-0.5B to 0.428 of the reference, against 0.934 for software alone. On a five-step GEMM refinement chain, reusing proofs makes checking 2.51× faster.
Create a lesson
Related papers
Stratum: A Hardware-Software Co-Design Framework for SNN Inference on RISC-V
Shared title terminology · Wajahat Riaz, Muhammad Adeel Pasha, Shahid Masud et al.
3D-MoE: Complementarity-Guided Hardware-Software Co-Design for MoE Decode on 3D-Stacked NMP
Shared title terminology · Yudong Pan, Lian Liu, Shixin Zhao et al.
MX-Like Tensor Core for LLM Inference with NPU Integration via Hardware-Software Co-Design Exploration
Shared title terminology · Zijun Zhao, Ruichu Ao, Stef Cuyckens et al.
GaborFlow: Hardware-Software Co-Optimization of Gabor Filter Accelerator Design
Shared title terminology · Priyanka Agarwal, Pruthvi Parate, Raghav Khurana et al.
Sub-100KB On-Device CNN Training via Dynamic Sparse Updates and Hardware--Software Co-Design
Shared title terminology · I-Hsuan Li, Tian-Sheuan Chang
Elastic Precision: Software-Hardware Co-Design of a Mixed-Precision Architecture for Long-Context LLM Inference
Shared title terminology · Boyang Chen, Xiao Wu, Haoran Wu et al.