mlsanityData to 7 Oct 2026

Trace is the Next AutoDiff: Generative Optimization with Rich Feedback, Execution Traces, and LLMs

arXiv 2406.16218 ↗First posted 23 Jun 2024cs.AI cs.LGcited by 62

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

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
  3. 2023GPT-4 Technical Reportcited by 18,132
  4. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  5. 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
  6. 2022Challenging BIG-Bench Tasks and Whether Chain-of-Thought Can Solve Themcited by 1,767
  7. 2023AgentBench: Evaluating LLMs as Agentscited by 1,211
  8. 2022Code as Policies: Language Model Programs for Embodied Controlcited by 1,172
  9. 2022Large Language Models Are Human-Level Prompt Engineerscited by 1,020
  10. 2023Teaching Large Language Models to Self-Debugcited by 963
  11. 2015Automatic differentiation in machine learning: a surveycited by 846
  12. 2023Large Language Models as Optimizerscited by 830
19 more
  1. 2023DSPy: Compiling Declarative Language Model Calls into Self-Improving Pipelinescited by 803
  2. 2023Automatic Prompt Optimization with "Gradient Descent" and Beam Searchcited by 628
  3. 2024TextGrad: Automatic "Differentiation" via Textcited by 250
  4. 2023PromptAgent: Strategic Planning with Language Models Enables Expert-level Prompt Optimizationcited by 226
  5. 2018Truncated Back-propagation for Bilevel Optimizationcited by 187
  6. 2023Self-Taught Optimizer (STOP): Recursively Self-Improving Code Generationcited by 128
  7. 2024Large Language Models to Enhance Bayesian Optimizationcited by 127
  8. 2023Retroformer: Retrospective Large Language Agents with Policy Gradient Optimizationcited by 110
  9. 2022Productivity Assessment of Neural Code Completioncited by 97
  10. 2024Language Agents as Optimizable Graphscited by 81
  11. 2023Using Large Language Models for Hyperparameter Optimizationcited by 71
  12. 2024LLaMoCo: Instruction Tuning of Large Language Models for Optimization Code Generationcited by 45
  13. 2024Are Large Language Models Good Prompt Optimizers?cited by 37
  14. 2024Unleashing the Potential of Large Language Models as Prompt Optimizers: Analogical Analysis with Gradient-based Model Optimizerscited by 33
  15. 2023Joint Prompt Optimization of Stacked LLMs using Variational Inferencecited by 32
  16. 2023LLF-Bench: Benchmark for Interactive Learning from Language Feedbackcited by 30
  17. 2024The Importance of Directional Feedback for LLM-based Optimizerscited by 26
  18. 2019Online Learning with Continuous Variations: Dynamic Regret and Reductionscited by 10
  19. 2023UXsim: An open source macroscopic and mesoscopic traffic simulator in Python -- a technical overviewcited by 2

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 7; 2025: 15; 2026: 40.

62 papers.

Sort:

By area:

  1. 2024Automated Design of Agentic Systemscited by 360
  2. 2024Agent-as-a-Judge: Evaluate Agents with Agentscited by 223
  3. 2025Multi-Agent Design: Optimizing Agents with Better Prompts and Topologiescited by 106
  4. 2026Expanding the Capabilities of Reinforcement Learning via Text Feedbackcited by 49
  5. 2025Astra: A Multi-Agent System for GPU Kernel Performance Optimizationcited by 46
  6. 2024Aviary: training language agents on challenging scientific taskscited by 23
  7. 2024Scalable Reinforcement Post-Training Beyond Static Human Prompts: Evolving Alignment via Asymmetric Self-Playcited by 21
  8. 2024How to Correctly do Semantic Backpropagation on Language-based Agentic Systemscited by 18
  9. 2024Improving Parallel Program Performance with LLM Optimizers via Agent-System Interfacescited by 11
  10. 2026SkillAxe: Sharpening LLM-Authored Agent Skills Through Evaluation-Guided Self-Refinementcited by 11
  11. 2025Formalizing Learning from Language Feedback with Provable Guaranteescited by 10
  12. 2025A Systematic Survey on Large Language Models for Evolutionary Optimization: From Modeling to Solvingcited by 9
38 more
  1. 2025Textual Bayes: Quantifying Prompt Uncertainty in LLM-Based Systemscited by 8
  2. 2025Learning Game-Playing Agents with Generative Code Optimizationcited by 8
  3. 2026Understanding the Challenges in Iterative Generative Optimization with LLMscited by 8
  4. 2026Shepherd: Enabling Programmable Meta-Agents via Reversible Agentic Execution Tracescited by 8
  5. 2025Cognify: Supercharging Gen-AI Workflows With Hierarchical Autotuningcited by 7
  6. 2025metaTextGrad: Automatically optimizing language model optimizerscited by 6
  7. 2026Learning, Fast and Slow: Towards LLMs That Adapt Continuallycited by 6
  8. 2026MemTrace: Tracing and Attributing Errors in Large Language Model Memory Systemscited by 5
  9. 2026HarnessOpt-Bench: Evaluating LLMs at Harness Optimizationcited by 5
  10. 2026DarwinX: Evolving Agent Harnesses Through Natural Selectioncited by 5
  11. 2024Natural Language Reinforcement Learningcited by 4
  12. 2025Compound AI Systems Optimization: A Survey of Methods, Challenges, and Future Directionscited by 4
  13. 2026Fantastic Adaptive Taxonomies and How to Use Themcited by 4
  14. 2025Divide, Optimize, Merge: Fine-Grained LLM Agent Optimization at Scalecited by 3
  15. 2025P3: Prompts Promote Promptingcited by 3
  16. 2026A Two-Stage GPU Kernel Tuner Combining Semantic Refactoring and Search-Based Optimizationcited by 3
  17. 2026Beyond Prompts: Measuring and Optimizing LLM Tool-Agent Harnessescited by 3
  18. 2026Recursive self-improvement of AI research agentscited by 3
  19. 2025Are My Optimized Prompts Compromised? Exploring Vulnerabilities of LLM-based Optimizerscited by 2
  20. 2025Textual Gradients are a Flawed Metaphor for Automatic Prompt Optimizationcited by 2
  21. 2026QUIVER: A Formal Framework for Quantifying Perturbation Propagation and Bifurcation in Compound AI Systemscited by 2
  22. 2026Overcoming the Weakest-Link Effect in LLM-Driven Program Optimization via Heterogeneous Edit Recombinationcited by 2
  23. 2025ADOPT: Adaptive Dependency-Guided Joint Prompt Optimization for Multi-Step LLM Pipelinescited by 1
  24. 2026p1: Better Prompt Optimization with Fewer Promptscited by 1
  25. 2026Context Training with Active Information Seekingcited by 1
  26. 2026MOCHA: Multi-Objective Chebyshev Annealing for Agent Skill Optimizationcited by 1
  27. 2026REFLEX: Reflective Evolution from LLM Experiencecited by 1
  28. 2026Marginal Advantage Accumulation for Memory-Driven Agent Self-Evolutioncited by 1
  29. 2026Automating the Design of Embodied Agent Architecturescited by 1
  30. 2025A Flexible Multi-Agent LLM-Human Framework for Fast Human Validated Tool Buildingcited by 0
  31. 2026Harness as an Asset: Enforcing Determinism via the Convergent AI Agent Framework (CAAF)cited by 0
  32. 2026RosettaSearch: Multi-Objective Inference-Time Search for Protein Sequence Designcited by 0
  33. 2026FlowBot: Inducing LLM Workflows with Bilevel Optimization and Textual Gradientscited by 0
  34. 2026SPEAR: Code-Augmented Agentic Prompt Optimizationcited by 0
  35. 2026Prompt Codebooks: Discrete Compositional Optimization for Language Model Instruction Refinementcited by 0
  36. 2026Do Modules Stay in Their Lane? Role Drift in Compound LLM Systemscited by 0
  37. 2026PPDL: LLM-Based Flows as Probabilistic Programscited by 0
  38. 2026EMAS: Stabilizing Multi-Agent System Evolution through Evidence-Guided Revisioncited by 0

50 most cited of 62 All 62 (JSON)