atlas

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

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

NeurIPS 2024 · Large language models › Agents, code and math · approach: Software engineering agents · 3 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.

Introduces Trace, a Python library that treats workflow execution traces as backprop-like signals, formalizes Optimization with Trace Oracle (OPTO), and proposes the LLM-based optimizer OptoPrime for end-to-end generative optimization of non-differentiable workflows.

Problem

Optimizing general computational workflows (prompts, code, hyperparameters) that are non-differentiable, use rich feedback (console output, natural language), and have heterogeneous parameters, where black-box scalar-feedback methods are inefficient.

Approach

Treat the workflow's execution trace (minimal subgraph connecting parameters to output) as the analogue of back-propagated gradients, and let an LLM optimizer (OptoPrime) use the trace plus textual feedback to update heterogeneous parameters in one LLM call per step.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Optimize the DSPy program end-to-end with Trace instead of DSPy-PODSPy program · BBH all (23 tasks), 0-shotaccuracy: 55.3 -> 59.5Helped
Optimize the DSPy program end-to-end with Trace instead of DSPy-PODSPy program · NLP (12 tasks), 0-shotaccuracy: 69.0 -> 70.9Helped
Optimize the DSPy program end-to-end with Trace instead of DSPy-PODSPy program · Algorithmic (11 tasks), 0-shotaccuracy: 45.2 -> 51.1Helped
Optimize the DSPy program end-to-end with Trace instead of DSPy-PO, adding CoT to bothDSPy program · BBH all (23 tasks), 0-shot + CoTaccuracy: 71.6 -> 78.6Helped
Optimize the DSPy program end-to-end with Trace instead of DSPy-PO, adding CoT to bothDSPy program · NLP (12 tasks), 0-shot + CoTaccuracy: 73.9 -> 75.8Helped
Optimize the DSPy program end-to-end with Trace instead of DSPy-PO, adding CoT to bothDSPy program · Algorithmic (11 tasks), 0-shot + CoTaccuracy: 70.0 -> 80.6Helped
Use OptoPrime (Trace) instead of TextGrad (24-10-30)GPT-35-turbo-1106 student workflow · MMLU-Machine Learningsuccess rate: 86.1 (0.5) -> 86.6 (0.2)Mixed
Use OptoPrime (Trace) instead of TextGrad (24-10-30)GPT-35-turbo-1106 student workflow · MMLU-College Physicssuccess rate: 93.1 (0.7) -> 94.1 (0.8)Helped
Use OptoPrime (Trace) instead of TextGrad (24-10-30)GPT-35-turbo-1106 student workflow · Google-proof QAsuccess rate: 53.2 (0.6) -> 59.6 (1.3)Helped
Use OptoPrime (Trace) instead of TextGrad (24-10-30)GPT-35-turbo-1106 student workflow · BBH Countingsuccess rate: 89.2 (1.2) -> 89.4 (0.1)No clear effect
Use OptoPrime (Trace) instead of TextGrad (24-10-30)GPT-35-turbo-1106 student workflow · BBH Word Sortingsuccess rate: 72.0 (0.4) -> 71.6 (3.1)Hurt
Use OptoPrime (Trace) instead of TextGrad (24-10-30)GPT-35-turbo-1106 student workflow · GSM8Ksuccess rate: 82.4 (0.6) -> 82.5 (0.1)No clear effect

Surprising findings

Limitations

Experimental setup

Datasets: BIG-Bench Hard MMLU Google-proof QA GSM8K Meta-World (LLF-Bench) UXSim traffic simulator

Benchmarks: BIG-Bench Hard MMLU-Machine Learning MMLU-College Physics Google-proof QA GSM8K Meta-World Reach/Pick-place/Push UXSim traffic control

Metrics: accuracy success rate average delay wall-clock time

Baselines: OPRO Adam Gaussian Process Minimization Particle Swarm Optimization SCATS DSPy COPRO TextGrad

Builds on: OPRO PyTorch DSPy back-propagation ReAct

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