Trace is the Next AutoDiff: Generative Optimization with Rich Feedback, Execution Traces, and LLMs
Ching-An Cheng, Allen Nie, Adith Swaminathan

TL;DR
This paper introduces a novel framework called OPTO that uses execution traces and large language models to optimize complex, non-differentiable workflows, enabling applications like code debugging, robot control, and hyper-parameter tuning.
Contribution
It formalizes the OPTO framework, develops the Trace library for workflow optimization, and demonstrates the effectiveness of the LLM-based optimizer OptoPrime across various domains.
Findings
OptoPrime effectively performs first-order numerical optimization.
OptoPrime successfully optimizes prompts, hyper-parameters, and control policies.
The framework often matches or exceeds specialized optimizers in diverse tasks.
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
Taxonomy
TopicsScientific Computing and Data Management · Distributed and Parallel Computing Systems · Reservoir Engineering and Simulation Methods
