Trace is the Next AutoDiff: Generative Optimization with Rich Feedback, Execution Traces, and LLMs
Not on the map. Why?
Cited by 23 in LLM agents and tool use, but placed by its own abstract, which didn’t fit.
Abstract (arXiv)
We study a class of optimization problems motivated by automating the design and update of AI systems like coding assistants, robots, and copilots. AutoDiff frameworks, like PyTorch, enable efficient end-to-end optimization of differentiable systems. However, general computational workflows can be non-differentiable and involve rich feedback (e.g. console output or user's responses), heterogeneous parameters (e.g. prompts, codes), and intricate objectives (beyond maximizing a score). We investigate end-to-end generative optimization -- using generative models such as LLMs within the optimizer for automatic updating of general computational workflows. We discover that workflow execution traces are akin to back-propagated gradients in AutoDiff and can provide key information to interpret feedback for efficient optimization. Formally, we frame a new mathematical setup, Optimization with Trace Oracle (OPTO). In OPTO, an optimizer receives an execution trace along with feedback on the computed output and updates parameters iteratively. We provide a Python library, Trace, that efficiently converts a workflow optimization problem into an OPTO instance using PyTorch-like syntax. Using Trace, we develop a general LLM-based generative optimizer called OptoPrime. In empirical studies, we find that OptoPrime is capable of first-order numerical optimization, prompt optimization, hyper-parameter tuning, robot controller design, code debugging, etc., and is often competitive with specialized optimizers for each domain. We envision Trace as an open research platform for devising novel generative optimizers and developing the next generation of interactive learning agents. Website: https://microsoft.github.io/Trace/.
Key facts. Cited by 62 papers in the map (data through 7 Oct 2026). Builds on 31 of its 51 references that are in the map. First posted on arXiv 23 Jun 2024.
Builds on
31 of 51 references.
References · 31
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2023GPT-4 Technical Reportcited by 18,132
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
- 2022Challenging BIG-Bench Tasks and Whether Chain-of-Thought Can Solve Themcited by 1,767
- 2023AgentBench: Evaluating LLMs as Agentscited by 1,211
- 2022Code as Policies: Language Model Programs for Embodied Controlcited by 1,172
- 2022Large Language Models Are Human-Level Prompt Engineerscited by 1,020
- 2023Teaching Large Language Models to Self-Debugcited by 963
- 2015Automatic differentiation in machine learning: a surveycited by 846
- 2023Large Language Models as Optimizerscited by 830
19 more
- 2023DSPy: Compiling Declarative Language Model Calls into Self-Improving Pipelinescited by 803
- 2023Automatic Prompt Optimization with "Gradient Descent" and Beam Searchcited by 628
- 2024TextGrad: Automatic "Differentiation" via Textcited by 250
- 2023PromptAgent: Strategic Planning with Language Models Enables Expert-level Prompt Optimizationcited by 226
- 2018Truncated Back-propagation for Bilevel Optimizationcited by 187
- 2023Self-Taught Optimizer (STOP): Recursively Self-Improving Code Generationcited by 128
- 2024Large Language Models to Enhance Bayesian Optimizationcited by 127
- 2023Retroformer: Retrospective Large Language Agents with Policy Gradient Optimizationcited by 110
- 2022Productivity Assessment of Neural Code Completioncited by 97
- 2024Language Agents as Optimizable Graphscited by 81
- 2023Using Large Language Models for Hyperparameter Optimizationcited by 71
- 2024LLaMoCo: Instruction Tuning of Large Language Models for Optimization Code Generationcited by 45
- 2024Are Large Language Models Good Prompt Optimizers?cited by 37
- 2024Unleashing the Potential of Large Language Models as Prompt Optimizers: Analogical Analysis with Gradient-based Model Optimizerscited by 33
- 2023Joint Prompt Optimization of Stacked LLMs using Variational Inferencecited by 32
- 2023LLF-Bench: Benchmark for Interactive Learning from Language Feedbackcited by 30
- 2024The Importance of Directional Feedback for LLM-based Optimizerscited by 26
- 2019Online Learning with Continuous Variations: Dynamic Regret and Reductionscited by 10
- 2023UXsim: An open source macroscopic and mesoscopic traffic simulator in Python -- a technical overviewcited by 2
Built on by
Citing papers per year: 2024: 7; 2025: 15; 2026: 40.
62 papers.
Sort:
By area:
- 2024Automated Design of Agentic Systemscited by 360
- 2024Agent-as-a-Judge: Evaluate Agents with Agentscited by 223
- 2025Multi-Agent Design: Optimizing Agents with Better Prompts and Topologiescited by 106
- 2026Expanding the Capabilities of Reinforcement Learning via Text Feedbackcited by 49
- 2025Astra: A Multi-Agent System for GPU Kernel Performance Optimizationcited by 46
- 2024Aviary: training language agents on challenging scientific taskscited by 23
- 2024Scalable Reinforcement Post-Training Beyond Static Human Prompts: Evolving Alignment via Asymmetric Self-Playcited by 21
- 2024How to Correctly do Semantic Backpropagation on Language-based Agentic Systemscited by 18
- 2024Improving Parallel Program Performance with LLM Optimizers via Agent-System Interfacescited by 11
- 2026SkillAxe: Sharpening LLM-Authored Agent Skills Through Evaluation-Guided Self-Refinementcited by 11
- 2025Formalizing Learning from Language Feedback with Provable Guaranteescited by 10
- 2025A Systematic Survey on Large Language Models for Evolutionary Optimization: From Modeling to Solvingcited by 9
38 more
- 2025Textual Bayes: Quantifying Prompt Uncertainty in LLM-Based Systemscited by 8
- 2025Learning Game-Playing Agents with Generative Code Optimizationcited by 8
- 2026Understanding the Challenges in Iterative Generative Optimization with LLMscited by 8
- 2026Shepherd: Enabling Programmable Meta-Agents via Reversible Agentic Execution Tracescited by 8
- 2025Cognify: Supercharging Gen-AI Workflows With Hierarchical Autotuningcited by 7
- 2025metaTextGrad: Automatically optimizing language model optimizerscited by 6
- 2026Learning, Fast and Slow: Towards LLMs That Adapt Continuallycited by 6
- 2026MemTrace: Tracing and Attributing Errors in Large Language Model Memory Systemscited by 5
- 2026HarnessOpt-Bench: Evaluating LLMs at Harness Optimizationcited by 5
- 2026DarwinX: Evolving Agent Harnesses Through Natural Selectioncited by 5
- 2024Natural Language Reinforcement Learningcited by 4
- 2025Compound AI Systems Optimization: A Survey of Methods, Challenges, and Future Directionscited by 4
- 2026Fantastic Adaptive Taxonomies and How to Use Themcited by 4
- 2025Divide, Optimize, Merge: Fine-Grained LLM Agent Optimization at Scalecited by 3
- 2025P3: Prompts Promote Promptingcited by 3
- 2026A Two-Stage GPU Kernel Tuner Combining Semantic Refactoring and Search-Based Optimizationcited by 3
- 2026Beyond Prompts: Measuring and Optimizing LLM Tool-Agent Harnessescited by 3
- 2026Recursive self-improvement of AI research agentscited by 3
- 2025Are My Optimized Prompts Compromised? Exploring Vulnerabilities of LLM-based Optimizerscited by 2
- 2025Textual Gradients are a Flawed Metaphor for Automatic Prompt Optimizationcited by 2
- 2026QUIVER: A Formal Framework for Quantifying Perturbation Propagation and Bifurcation in Compound AI Systemscited by 2
- 2026Overcoming the Weakest-Link Effect in LLM-Driven Program Optimization via Heterogeneous Edit Recombinationcited by 2
- 2025ADOPT: Adaptive Dependency-Guided Joint Prompt Optimization for Multi-Step LLM Pipelinescited by 1
- 2026p1: Better Prompt Optimization with Fewer Promptscited by 1
- 2026Context Training with Active Information Seekingcited by 1
- 2026MOCHA: Multi-Objective Chebyshev Annealing for Agent Skill Optimizationcited by 1
- 2026REFLEX: Reflective Evolution from LLM Experiencecited by 1
- 2026Marginal Advantage Accumulation for Memory-Driven Agent Self-Evolutioncited by 1
- 2026Automating the Design of Embodied Agent Architecturescited by 1
- 2025A Flexible Multi-Agent LLM-Human Framework for Fast Human Validated Tool Buildingcited by 0
- 2026Harness as an Asset: Enforcing Determinism via the Convergent AI Agent Framework (CAAF)cited by 0
- 2026RosettaSearch: Multi-Objective Inference-Time Search for Protein Sequence Designcited by 0
- 2026FlowBot: Inducing LLM Workflows with Bilevel Optimization and Textual Gradientscited by 0
- 2026SPEAR: Code-Augmented Agentic Prompt Optimizationcited by 0
- 2026Prompt Codebooks: Discrete Compositional Optimization for Language Model Instruction Refinementcited by 0
- 2026Do Modules Stay in Their Lane? Role Drift in Compound LLM Systemscited by 0
- 2026PPDL: LLM-Based Flows as Probabilistic Programscited by 0
- 2026EMAS: Stabilizing Multi-Agent System Evolution through Evidence-Guided Revisioncited by 0
50 most cited of 62 All 62 (JSON)
- 2026Component-Aware Feedback for Self-Evolving Programs29 Sep 2026
- 2026OptiCom : A Unified Framework for State-Conditioned Composition in LLM-Driven Optimization29 Sep 2026
- 2026The Right Lesson at the Right Step: Deriving Control Updates for Self-Evolving Agents28 Sep 2026
- 2026NLPG: Natural-Language Policy Gradients for Self-Evolving Language Agents27 Sep 2026
- 2026Mara Chain: Rethinking Failure as a Stepping Stone for AI System Auto-Evolution25 Sep 2026
- 2026MoMHa: Multi-Objective Optimization of LLM Harnesses over Accuracy, Safety, and Tokens25 Sep 2026
- 2026Recursive self-improvement of AI research agents22 Sep 2026
- 2026Local Edits, Global Ripples: Replay-Informed Policy Adaptation for Workflow Synthesis10 Sep 2026
- 2026Beyond Prompts: Measuring and Optimizing LLM Tool-Agent Harnesses4 Sep 2026
- 2026Program Learning with Verifiable Rewards: Symbolic Backpropagation for Post-Training LLMs28 Aug 2026
- 2026SAGE: Self-Evolving Storyboard Skills via Attribution-Guided Rule Evolution18 Aug 2026
- 2026Coding Agents are Strong Prompt Optimizers13 Aug 2026
38 more
- 2026A Hybrid Nested Harness for Decoupling Structure and Parameters in LLM-Driven Optimization8 Aug 2026
- 2026EMAS: Stabilizing Multi-Agent System Evolution through Evidence-Guided Revision7 Aug 2026
- 2026HarnessOpt-Bench: Evaluating LLMs at Harness Optimization6 Aug 2026
- 2026PPDL: LLM-Based Flows as Probabilistic Programs5 Aug 2026
- 2026DarwinX: Evolving Agent Harnesses Through Natural Selection31 Jul 2026
- 2026Overcoming the Weakest-Link Effect in LLM-Driven Program Optimization via Heterogeneous Edit Recombination31 Jul 2026
- 2026Fantastic Adaptive Taxonomies and How to Use Them17 Jul 2026
- 2026Do Modules Stay in Their Lane? Role Drift in Compound LLM Systems7 Jul 2026
- 2026Automating the Design of Embodied Agent Architectures29 Jun 2026
- 2026At Equal Inference Cost, Multi-Agent Structure Does Not Beat a Single Frozen Agent25 Jun 2026
- 2026Marginal Advantage Accumulation for Memory-Driven Agent Self-Evolution18 Jun 2026
- 2026REFLEX: Reflective Evolution from LLM Experience15 Jun 2026
- 2026SkillAxe: Sharpening LLM-Authored Agent Skills Through Evaluation-Guided Self-Refinement9 Jun 2026
- 2026MemTrace: Tracing and Attributing Errors in Large Language Model Memory Systems27 May 2026
- 2026Prompt Codebooks: Discrete Compositional Optimization for Language Model Instruction Refinement27 May 2026
- 2026SPEAR: Code-Augmented Agentic Prompt Optimization25 May 2026
- 2026MOCHA: Multi-Objective Chebyshev Annealing for Agent Skill Optimization19 May 2026
- 2026Context Training with Active Information Seeking13 May 2026
- 2026Learning, Fast and Slow: Towards LLMs That Adapt Continually12 May 2026
- 2026QUIVER: A Formal Framework for Quantifying Perturbation Propagation and Bifurcation in Compound AI Systems11 May 2026
- 2026Shepherd: Enabling Programmable Meta-Agents via Reversible Agentic Execution Traces11 May 2026
- 2026FlowBot: Inducing LLM Workflows with Bilevel Optimization and Textual Gradients29 Apr 2026
- 2026RosettaSearch: Multi-Objective Inference-Time Search for Protein Sequence Design19 Apr 2026
- 2026Harness as an Asset: Enforcing Determinism via the Convergent AI Agent Framework (CAAF)18 Apr 2026
- 2026p1: Better Prompt Optimization with Fewer Prompts9 Apr 2026
- 2026Understanding the Challenges in Iterative Generative Optimization with LLMs25 Mar 2026
- 2026Expanding the Capabilities of Reinforcement Learning via Text Feedback2 Feb 2026
- 2026A Two-Stage GPU Kernel Tuner Combining Semantic Refactoring and Search-Based Optimization19 Jan 2026
- 2025ADOPT: Adaptive Dependency-Guided Joint Prompt Optimization for Multi-Step LLM Pipelines31 Dec 2025
- 2025Textual Gradients are a Flawed Metaphor for Automatic Prompt Optimization15 Dec 2025
- 2025A Flexible Multi-Agent LLM-Human Framework for Fast Human Validated Tool Building1 Dec 2025
- 2025Are My Optimized Prompts Compromised? Exploring Vulnerabilities of LLM-based Optimizers16 Oct 2025
- 2025A Systematic Survey on Large Language Models for Evolutionary Optimization: From Modeling to Solving10 Sep 2025
- 2025Astra: A Multi-Agent System for GPU Kernel Performance Optimization9 Sep 2025
- 2025Learning Game-Playing Agents with Generative Code Optimization27 Aug 2025
- 2025P3: Prompts Promote Prompting21 Jul 2025
- 2025Formalizing Learning from Language Feedback with Provable Guarantees12 Jun 2025
- 2025Textual Bayes: Quantifying Prompt Uncertainty in LLM-Based Systems11 Jun 2025
50 newest of 62 All 62 (JSON)
- 2024Automated Design of Agentic Systemscited by 360
- 2024Agent-as-a-Judge: Evaluate Agents with Agentscited by 223
- 2025Multi-Agent Design: Optimizing Agents with Better Prompts and Topologiescited by 106
- 2025Astra: A Multi-Agent System for GPU Kernel Performance Optimizationcited by 46
- 2024Aviary: training language agents on challenging scientific taskscited by 23
- 2024How to Correctly do Semantic Backpropagation on Language-based Agentic Systemscited by 18
- 2026SkillAxe: Sharpening LLM-Authored Agent Skills Through Evaluation-Guided Self-Refinementcited by 11
- 2025Learning Game-Playing Agents with Generative Code Optimizationcited by 8
- 2026Shepherd: Enabling Programmable Meta-Agents via Reversible Agentic Execution Tracescited by 8
- 2026HarnessOpt-Bench: Evaluating LLMs at Harness Optimizationcited by 5
- 2026DarwinX: Evolving Agent Harnesses Through Natural Selectioncited by 5
- 2025Divide, Optimize, Merge: Fine-Grained LLM Agent Optimization at Scalecited by 3
12 most cited of 23 All 23 (JSON)
- 2026NLPG: Natural-Language Policy Gradients for Self-Evolving Language Agents27 Sep 2026
- 2026Recursive self-improvement of AI research agents22 Sep 2026
- 2026Beyond Prompts: Measuring and Optimizing LLM Tool-Agent Harnesses4 Sep 2026
- 2026Coding Agents are Strong Prompt Optimizers13 Aug 2026
- 2026EMAS: Stabilizing Multi-Agent System Evolution through Evidence-Guided Revision7 Aug 2026
- 2026HarnessOpt-Bench: Evaluating LLMs at Harness Optimization6 Aug 2026
- 2026DarwinX: Evolving Agent Harnesses Through Natural Selection31 Jul 2026
- 2026At Equal Inference Cost, Multi-Agent Structure Does Not Beat a Single Frozen Agent25 Jun 2026
- 2026SkillAxe: Sharpening LLM-Authored Agent Skills Through Evaluation-Guided Self-Refinement9 Jun 2026
- 2026Prompt Codebooks: Discrete Compositional Optimization for Language Model Instruction Refinement27 May 2026
- 2026SPEAR: Code-Augmented Agentic Prompt Optimization25 May 2026
- 2026MOCHA: Multi-Objective Chebyshev Annealing for Agent Skill Optimization19 May 2026
12 newest of 23 All 23 (JSON)
- 2026REFLEX: Reflective Evolution from LLM Experiencecited by 1
- 2026REFLEX: Reflective Evolution from LLM Experience15 Jun 2026
- 2026Expanding the Capabilities of Reinforcement Learning via Text Feedbackcited by 49
- 2024Improving Parallel Program Performance with LLM Optimizers via Agent-System Interfacescited by 11
- 2025Formalizing Learning from Language Feedback with Provable Guaranteescited by 10
- 2025A Systematic Survey on Large Language Models for Evolutionary Optimization: From Modeling to Solvingcited by 9
- 2025Textual Bayes: Quantifying Prompt Uncertainty in LLM-Based Systemscited by 8
- 2026Understanding the Challenges in Iterative Generative Optimization with LLMscited by 8
- 2025Cognify: Supercharging Gen-AI Workflows With Hierarchical Autotuningcited by 7
- 2025metaTextGrad: Automatically optimizing language model optimizerscited by 6
- 2026Learning, Fast and Slow: Towards LLMs That Adapt Continuallycited by 6
- 2024Natural Language Reinforcement Learningcited by 4
- 2025Compound AI Systems Optimization: A Survey of Methods, Challenges, and Future Directionscited by 4
- 2026Fantastic Adaptive Taxonomies and How to Use Themcited by 4
12 most cited of 34 All 34 (JSON)
- 2026OptiCom : A Unified Framework for State-Conditioned Composition in LLM-Driven Optimization29 Sep 2026
- 2026The Right Lesson at the Right Step: Deriving Control Updates for Self-Evolving Agents28 Sep 2026
- 2026Mara Chain: Rethinking Failure as a Stepping Stone for AI System Auto-Evolution25 Sep 2026
- 2026MoMHa: Multi-Objective Optimization of LLM Harnesses over Accuracy, Safety, and Tokens25 Sep 2026
- 2026Local Edits, Global Ripples: Replay-Informed Policy Adaptation for Workflow Synthesis10 Sep 2026
- 2026Program Learning with Verifiable Rewards: Symbolic Backpropagation for Post-Training LLMs28 Aug 2026
- 2026A Hybrid Nested Harness for Decoupling Structure and Parameters in LLM-Driven Optimization8 Aug 2026
- 2026PPDL: LLM-Based Flows as Probabilistic Programs5 Aug 2026
- 2026Overcoming the Weakest-Link Effect in LLM-Driven Program Optimization via Heterogeneous Edit Recombination31 Jul 2026
- 2026Fantastic Adaptive Taxonomies and How to Use Them17 Jul 2026
- 2026Do Modules Stay in Their Lane? Role Drift in Compound LLM Systems7 Jul 2026
- 2026Automating the Design of Embodied Agent Architectures29 Jun 2026
12 newest of 34 All 34 (JSON)