Adaptive Self-improvement LLM Agentic System for ML Library Development
On the map: LLM agents and tool use → Software engineering coding agents
also in 1 more
Abstract (arXiv)
ML libraries, often written in architecture-specific programming languages (ASPLs) that target domain-specific architectures, are key to efficient ML systems. However, writing these high-performance ML libraries is challenging because it requires expert knowledge of ML algorithms and the ASPL. Large language models (LLMs), on the other hand, have shown general coding capabilities. However, challenges remain when using LLMs for generating ML libraries using ASPLs because 1) this task is complicated even for experienced human programmers and 2) there are limited code examples because of the esoteric and evolving nature of ASPLs. Therefore, LLMs need complex reasoning with limited data in order to complete this task. To address these challenges, we introduce an adaptive self-improvement agentic system. In order to evaluate the effectiveness of our system, we construct a benchmark of a typical ML library and generate ASPL code with both open and closed-source LLMs on this benchmark. Our results show improvements of up to 3.9× over a baseline single LLM.
Key facts. Cited by 16 papers in the map (data through 7 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 47 of its 80 references that are in the map. First posted on arXiv 4 Feb 2025.
Builds on
47 of 80 references.
Closest ancestors · 2
Same direction, newest first
- 2024AFlow: Automating Agentic Workflow Generation14 Oct
- 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering6 May
Other references · 45
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2021Training Verifiers to Solve Math Word Problemscited by 9,743
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2020Scaling Laws for Neural Language Modelscited by 6,411
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,064
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
- 2023Let's Verify Step by Stepcited by 3,598
- 2023Generative Agents: Interactive Simulacra of Human Behaviorcited by 3,500
- 2017Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layercited by 3,413
- 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,155
33 more
- 2022Constitutional AI: Harmlessness from AI Feedbackcited by 2,950
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
- 2022Emergent Abilities of Large Language Modelscited by 2,483
- 2024Scaling LLM Test-Time Compute Optimally can be More Effective than Scaling Model Parameterscited by 1,928
- 2024Mixtral of Expertscited by 1,785
- 2023Large Language Models Cannot Self-Correct Reasoning Yetcited by 965
- 2023Math-Shepherd: Verify and Reinforce LLMs Step-by-step without Human Annotationscited by 895
- 2023ExpeL: LLM Agents Are Experiential Learnerscited by 814
- 2023DSPy: Compiling Declarative Language Model Calls into Self-Improving Pipelinescited by 803
- 2022Mixture-of-Experts with Expert Choice Routingcited by 611
- 2024Self-Play Fine-Tuning Converts Weak Language Models to Strong Language Modelscited by 552
- 2023Promptbreeder: Self-Referential Self-Improvement Via Prompt Evolutioncited by 521
- 2024FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precisioncited by 507
- 2023Reinforced Self-Training (ReST) for Language Modelingcited by 486
- 2024Automated Design of Agentic Systemscited by 360
- 2024Learning to (Learn at Test Time): RNNs with Expressive Hidden Statescited by 329
- 2023Beyond Human Data: Scaling Self-Training for Problem-Solving with Language Modelscited by 325
- 2024Optimizing Instructions and Demonstrations for Multi-Stage Language Model Programscited by 270
- 2025FlashInfer: Efficient and Customizable Attention Engine for LLM Inference Servingcited by 248
- 2024Mixture-of-Depths: Dynamically allocating compute in transformer-based language modelscited by 242
- 2020Ansor: Generating High-Performance Tensor Programs for Deep Learningcited by 199
- 2024Flex Attention: A Programming Model for Generating Optimized Attention Kernelscited by 180
- 2023REFLECT: Summarizing Robot Experiences for Failure Explanation and Correctioncited by 171
- 2018Online normalizer calculation for softmaxcited by 154
- 2024Does Prompt Formatting Have Any Impact on LLM Performance?cited by 132
- 2024Toward Self-Improvement of LLMs via Imagination, Searching, and Criticizingcited by 123
- 2024ThunderKittens: Simple, Fast, and Adorable AI Kernelscited by 34
- 2024AssertLLM: Generating Hardware Verification Assertions from Design Specifications via Multi-LLMscited by 30
- 2024SambaNova SN40L: Scaling the AI Memory Wall with Dataflow and Composition of Expertscited by 18
- 2022Composable and Modular Code Generation in MLIR: A Structured and Retargetable Approach to Tensor Compiler Constructioncited by 8
- 2023Revet: A Language and Compiler for Dataflow Threadscited by 6
- 2022The Sparse Abstract Machinecited by 3
- 2024Implementing and Optimizing the Scaled Dot-Product Attention on Streaming Dataflowcited by 3
Built on by
Citing papers per year: 2025: 10; 2026: 6.
16 papers.
Sort:
By area:
- 2025Agentic Context Engineering: Evolving Contexts for Self-Improving Language Modelscited by 349
- 2025A Survey of Self-Evolving Agents: What, When, How, and Where to Evolve on the Path to Artificial Super Intelligencecited by 155
- 2025KVFlow: Efficient Prefix Caching for Accelerating LLM-Based Multi-Agent Workflowscited by 56
- 2025Towards Robust Agentic CUDA Kernel Benchmarking, Verification, and Optimizationcited by 52
- 2025Vibe Coding vs. Agentic Coding: Fundamentals and Practical Implications of Agentic AIcited by 39
- 2026Recursive Self-Improvement in AI: From Bounded Self-Refinement to Autonomous Research Loopscited by 25
- 2025Agentic Plan Caching: Test-Time Memory for Fast and Cost-Efficient LLM Agentscited by 23
- 2025AccelOpt: A Self-Improving LLM Agentic System for AI Accelerator Kernel Optimizationcited by 21
- 2026Building Effective AI Coding Agents for the Terminal: Scaffolding, Harness, Context Engineering, and Lessons Learnedcited by 18
- 2025AKG kernel Agent: A Multi-Agent Framework for Cross-Platform Kernel Synthesiscited by 7
- 2025A Theory of Inference Compute Scaling: Reasoning through Directed Stochastic Skill Searchcited by 5
- 2025CubeBench: Diagnosing Interactive, Long-Horizon Spatial Reasoning Under Partial Observationscited by 3
4 more
- 2026Socially-Weighted Alignment: A Game-Theoretic Framework for Multi-Agent LLM Systemscited by 2
- 2026TheoremForge: Scaling up Formal Data Synthesis with Low-Budget Agentic Workflowcited by 1
- 2026RuleFlow : Generating Reusable Program Optimizations with LLMscited by 1
- 2026MedTextWeaver: Procedural Knowledge Evolution in Agentic Medical Text Editingcited by 0
- 2026Recursive Self-Improvement in AI: From Bounded Self-Refinement to Autonomous Research Loops8 Jul 2026
- 2026Building Effective AI Coding Agents for the Terminal: Scaffolding, Harness, Context Engineering, and Lessons Learned5 Mar 2026
- 2026Socially-Weighted Alignment: A Game-Theoretic Framework for Multi-Agent LLM Systems16 Feb 2026
- 2026RuleFlow : Generating Reusable Program Optimizations with LLMs6 Feb 2026
- 2026MedTextWeaver: Procedural Knowledge Evolution in Agentic Medical Text Editing31 Jan 2026
- 2026TheoremForge: Scaling up Formal Data Synthesis with Low-Budget Agentic Workflow24 Jan 2026
- 2025AKG kernel Agent: A Multi-Agent Framework for Cross-Platform Kernel Synthesis29 Dec 2025
- 2025CubeBench: Diagnosing Interactive, Long-Horizon Spatial Reasoning Under Partial Observations29 Dec 2025
- 2025AccelOpt: A Self-Improving LLM Agentic System for AI Accelerator Kernel Optimization19 Nov 2025
- 2025Agentic Context Engineering: Evolving Contexts for Self-Improving Language Models6 Oct 2025
- 2025Towards Robust Agentic CUDA Kernel Benchmarking, Verification, and Optimization16 Sep 2025
- 2025A Survey of Self-Evolving Agents: What, When, How, and Where to Evolve on the Path to Artificial Super Intelligence28 Jul 2025
4 more
- 2025KVFlow: Efficient Prefix Caching for Accelerating LLM-Based Multi-Agent Workflows10 Jul 2025
- 2025Agentic Plan Caching: Test-Time Memory for Fast and Cost-Efficient LLM Agents17 Jun 2025
- 2025A Theory of Inference Compute Scaling: Reasoning through Directed Stochastic Skill Search10 Jun 2025
- 2025Vibe Coding vs. Agentic Coding: Fundamentals and Practical Implications of Agentic AI26 May 2025
- 2025Agentic Context Engineering: Evolving Contexts for Self-Improving Language Modelscited by 349
- 2025A Survey of Self-Evolving Agents: What, When, How, and Where to Evolve on the Path to Artificial Super Intelligencecited by 155
- 2025KVFlow: Efficient Prefix Caching for Accelerating LLM-Based Multi-Agent Workflowscited by 56
- 2025Vibe Coding vs. Agentic Coding: Fundamentals and Practical Implications of Agentic AIcited by 39
- 2025Agentic Plan Caching: Test-Time Memory for Fast and Cost-Efficient LLM Agentscited by 23
- 2025AccelOpt: A Self-Improving LLM Agentic System for AI Accelerator Kernel Optimizationcited by 21
- 2026Building Effective AI Coding Agents for the Terminal: Scaffolding, Harness, Context Engineering, and Lessons Learnedcited by 18
- 2025AKG kernel Agent: A Multi-Agent Framework for Cross-Platform Kernel Synthesiscited by 7
- 2026Socially-Weighted Alignment: A Game-Theoretic Framework for Multi-Agent LLM Systemscited by 2
- 2026TheoremForge: Scaling up Formal Data Synthesis with Low-Budget Agentic Workflowcited by 1
- 2026MedTextWeaver: Procedural Knowledge Evolution in Agentic Medical Text Editingcited by 0
- 2026Building Effective AI Coding Agents for the Terminal: Scaffolding, Harness, Context Engineering, and Lessons Learned5 Mar 2026
- 2026Socially-Weighted Alignment: A Game-Theoretic Framework for Multi-Agent LLM Systems16 Feb 2026
- 2026MedTextWeaver: Procedural Knowledge Evolution in Agentic Medical Text Editing31 Jan 2026
- 2026TheoremForge: Scaling up Formal Data Synthesis with Low-Budget Agentic Workflow24 Jan 2026
- 2025AKG kernel Agent: A Multi-Agent Framework for Cross-Platform Kernel Synthesis29 Dec 2025
- 2025AccelOpt: A Self-Improving LLM Agentic System for AI Accelerator Kernel Optimization19 Nov 2025
- 2025Agentic Context Engineering: Evolving Contexts for Self-Improving Language Models6 Oct 2025
- 2025A Survey of Self-Evolving Agents: What, When, How, and Where to Evolve on the Path to Artificial Super Intelligence28 Jul 2025
- 2025KVFlow: Efficient Prefix Caching for Accelerating LLM-Based Multi-Agent Workflows10 Jul 2025
- 2025Agentic Plan Caching: Test-Time Memory for Fast and Cost-Efficient LLM Agents17 Jun 2025
- 2025Vibe Coding vs. Agentic Coding: Fundamentals and Practical Implications of Agentic AI26 May 2025
- 2025Towards Robust Agentic CUDA Kernel Benchmarking, Verification, and Optimizationcited by 52
- 2025A Theory of Inference Compute Scaling: Reasoning through Directed Stochastic Skill Searchcited by 5
- 2025CubeBench: Diagnosing Interactive, Long-Horizon Spatial Reasoning Under Partial Observationscited by 3
- 2025CubeBench: Diagnosing Interactive, Long-Horizon Spatial Reasoning Under Partial Observations29 Dec 2025
- 2025Towards Robust Agentic CUDA Kernel Benchmarking, Verification, and Optimization16 Sep 2025
- 2025A Theory of Inference Compute Scaling: Reasoning through Directed Stochastic Skill Search10 Jun 2025
Similar, not cited
Close in wording, no citation either way
- 2025A Self-Improving Coding Agent
- 2026LLM-Based Multi-Agent Systems for Code Generation: A Multi-Vocal Literature Review
- 2024Designing Algorithms Empowered by Language Models: An Analytical Framework, Case Studies, and Insights
- 2026FormulaCode: Evaluating Agentic Optimization on Large Codebases
- 2024If LLM Is the Wizard, Then Code Is the Wand: A Survey on How Code Empowers Large Language Models to Serve as Intelligent Agents
- 2023ML-Bench: Evaluating Large Language Models and Agents for Machine Learning Tasks on Repository-Level Code
- 2024Can Large Language Models Invent Algorithms to Improve Themselves?: Algorithm Discovery for Recursive Self-Improvement through Reinforcement Learning
- 2025LMR-BENCH: Evaluating LLM Agent's Ability on Reproducing Language Modeling Research