Learning to Formulate: Agentic Hardware-Software Co-Design of AI Infrastructure through Progressive Optimization and Verification
On the map: LLM agents and tool use → Software engineering coding agents also fits: General LLM agent frameworks and benchmarks
Abstract (arXiv)
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.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 44 of its 91 references that are in the map. Submitted 29 Oct 2026.
Builds on
44 of 91 references.
Closest ancestors · 4
Same direction, newest first
- 2026Evolving Ensemble of Agents9 May
- 2026Dr. RTL: Autonomous Agentic RTL Optimization through Tool-Grounded Self-Improvement16 Apr
- 2025AlphaEvolve: A coding agent for scientific and algorithmic discovery16 Jun
- 2025Compiler-R1: Towards Agentic Compiler Auto-tuning with Reinforcement Learning30 May
Other references · 40
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 6,685
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,893
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,787
- 2023Voyager: An Open-Ended Embodied Agent with Large Language Modelscited by 2,483
- 2023SGLang: Efficient Execution of Structured Language Model Programscited by 1,372
- 2024DistServe: Disaggregating Prefill and Decoding for Goodput-optimized Large Language Model Servingcited by 683
- 2023Splitwise: Efficient generative LLM inference using phase splittingcited by 609
- 2025Darwin Godel Machine: Open-Ended Evolution of Self-Improving Agentscited by 502
- 2015Illuminating search spaces by mapping elitescited by 470
- 2023LeanDojo: Theorem Proving with Retrieval-Augmented Language Modelscited by 457
- 2025FlashInfer: Efficient and Customizable Attention Engine for LLM Inference Servingcited by 330
- 2025KernelBench: Can LLMs Write Efficient GPU Kernels?cited by 279
28 more
- 2020Ansor: Generating High-Performance Tensor Programs for Deep Learningcited by 219
- 2023Self-Taught Optimizer (STOP): Recursively Self-Improving Code Generationcited by 213
- 2015Parallelizing the dual revised simplex methodcited by 107
- 2019Checkmate: Breaking the Memory Wall with Optimal Tensor Rematerializationcited by 96
- 2025Kevin: Multi-Turn RL for Generating CUDA Kernelscited by 96
- 2025TritonBench: Benchmarking Large Language Model Capabilities for Generating Triton Operatorscited by 87
- 2025CUDA-L1: Improving CUDA Optimization via Contrastive Reinforcement Learningcited by 73
- 2019Gemmini: Enabling Systematic Deep-Learning Architecture Evaluation via Full-Stack Integrationcited by 67
- 2023LILO: Learning Interpretable Libraries by Compressing and Documenting Codecited by 57
- 2025TileLang: A Composable Tiled Programming Model for AI Systemscited by 50
- 2024Mirage: A Multi-Level Superoptimizer for Tensor Programscited by 47
- 2024OptiMUS-0.3: Using Large Language Models to Model and Solve Optimization Problems at Scalecited by 44
- 2020AutoDSE: Enabling Software Programmers to Design Efficient FPGA Acceleratorscited by 29
- 2021CoSA: Scheduling by Constrained Optimization for Spatial Acceleratorscited by 24
- 2021ScaleHLS: A New Scalable High-Level Synthesis Framework on Multi-Level Intermediate Representationcited by 24
- 2025EquivaMap: Leveraging LLMs for Automatic Equivalence Checking of Optimization Formulationscited by 12
- 2022DiGamma: Domain-aware Genetic Algorithm for HW-Mapping Co-optimization for DNN Acceleratorscited by 9
- 2024CompilerDream: Learning a Compiler World Model for General Code Optimizationcited by 8
- 2016Verifying Integer Programming Resultscited by 6
- 2026LLM4Branch: Large Language Model for Discovering Efficient Branching Policies of Integer Programscited by 6
- 2024Exo 2: Growing a Scheduling Languagecited by 5
- 2025DOSA: Differentiable Model-Based One-Loop Search for DNN Acceleratorscited by 5
- 2026FLARE: Verifying MILP Reformulations with LLM-Based Theorem Provingcited by 5
- 2026FormuEvo: LLM-Guided Evolution for Discovering Solver-Efficient Mixed-Integer Programming Formulationscited by 3
- 2023Combined Scheduling, Memory Allocation and Tensor Replacement for Minimizing Off-Chip Data Accesses of DNN Acceleratorscited by 2
- 2026Prism: Symbolic Superoptimization of Tensor Programscited by 2
- 2026Axon: A Synthesizing Superoptimizer for Tensor Programscited by 1
- 2026Exo-GPU: Safe, Imperative, User-schedulable Programming for Tensor Corescited by 1
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025David vs. Goliath: Can Small Models Win Big with Agentic AI in Hardware Design?
- 2026Coco: An Agentic Copilot for the Hardware--Software Co-Design Lifecycle
- 2026Agentic Architect: An Agentic AI Framework for Architecture Design Exploration and Optimization
- 2026From Pragmas to Partners: A Symbiotic Evolution of Agentic High-Level Synthesis
- 2026Is Agentic AI Ready for Real-World Hardware Engineering? A Deep Dive with Phoenix-bench
- 2025Towards Understanding, Analyzing, and Optimizing Agentic AI Execution: A CPU-Centric Perspective
- 2026Agentic Hardware Design as Repository-Level Code Evolution
- 2026SiliconGym: A Versatile Reinforcement Learning Environment for Agentic EDA