atlas

Research map / Large language models / Agents, code and math

Adaptive Self-improvement LLM Agentic System for ML Library Development

ICML 2025 · Large language models › Agents, code and math · approach: Mathematical and structural reasoning benchmarks · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes an adaptive self-improvement learning algorithm and a multi-agent (proposer/guardian) system that lets LLMs write ML library operators in the STeP streaming dataflow ASPL from self-generated experience.

Problem

Generating high-performance ML library code in architecture-specific programming languages (ASPLs) is hard for LLMs because the task requires complex reasoning and there are very few code examples for esoteric, evolving ASPLs.

Approach

An adaptive self-improvement loop that parallel-samples an LLM agentic system, filters one minimal-length correct answer per AST-isomorphism group, stratifies earned experiences by difficulty (success rate), and adaptively selects hard-to-mixed demonstrations, dropping solved tasks so harder tasks get more test-time compute.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add adaptive self-improvement to the agentic systemClaude Sonnet · STeP benchmark, token-matchedPass@n: 0.77 -> 0.96Helped
Add adaptive self-improvement to the agentic systemGPT-4o · STeP benchmark, token-matchedPass@n: 0.38 -> 0.81Helped
Apply adaptive self-improvement instead of supervised fine-tuningGPT-4o · STeP benchmarkPass@n: 0.62 -> 0.81Helped
Set adaptive granularity to m=3 instead of m=4 (ablation)GPT-4o adaptive self-improvement · STeP benchmarkinput tokens: 1.07×Helped
Set adaptive granularity to m=3 instead of m=1 (ablation)GPT-4o adaptive self-improvement · STeP benchmarkperformance: 1.5×Helped
Prioritize hard-only demonstrations over demonstrations mixed with easier examplesAdaptive self-improvement · STeP benchmark, learning curvePass@nHelped
Use mixed demonstrations to discover new hard-only examplesAdaptive self-improvement · STeP benchmark, DeepSeek-V3Pass@nMixed
Add the proposer-and-guardian agentic organization instead of a single LLMSTeP code generation · STeP benchmark, all tasksPass@n: 0.62 -> 0.85Helped
Add the guardian agent (ablation)Proposer agent · STeP benchmark, Avg-ReusePass@n: 6/12 -> 11/12Helped
Add the guardian agent (ablation)Proposer agent · STeP benchmark, Arith-OncePass@1: 0.685 -> 0.663Hurt
Add structural IR (ablation)Single LLM coding system · STeP benchmarkPass@n: 0.46 -> 0.62Helped
Add structural IR (ablation)Single LLM coding system · STeP benchmarksuccess diversity: 0.32 -> 0.27Hurt

Surprising findings

Limitations

Experimental setup

Datasets: custom STeP benchmark of 26 ML operator tasks AIME-2024

Benchmarks: STeP ML library benchmark (26 tasks) AIME-2024

Metrics: pass@k Pass@1 Pass@n input tokens semantic diversity

Baselines: single LLM single LLM without structural IR OpenAI-o1 supervised finetuning (GPT-4o)

Builds on: pass@k curriculum learning STeP

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy