arrow
Return

Optimizing generative AI by backpropagating language model feedback

delete2025-03-19
delete1
PRE
AI
M
Mert Yüksekgönül
F
Federico Bianchi
J
Joseph Boen
刘胜 (Sheng Liu)
P
P Y Lu
Z
Zhi Huang
C
Carlos Guestrin
J
James Zou *
DOI:10.1038/s41586-025-08661-4delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Recent breakthroughs in artificial intelligence (AI) are increasingly driven by systems orchestrating multiple large language models (LLMs) and other specialized tools, such as search engines and simulators. So far, these systems are primarily handcrafted by domain experts and tweaked through heuristics rather than being automatically optimized, presenting a substantial challenge to accelerating progress. The development of artificial neural networks faced a similar challenge until backpropagation and automatic differentiation transformed the field by making optimization turnkey. Analogously, here we introduce TextGrad, a versatile framework that performs optimization by backpropagating LLM-generated feedback to improve AI systems. By leveraging natural language feedback to critique and suggest improvements to any part of a system-from prompts to outputs such as molecules or treatment plans-TextGrad enables the automatic optimization of generative AI systems across diverse tasks. We demonstrate TextGrad's generality and effectiveness through studies in solving PhD-level science problems, optimizing plans for radiotherapy treatments, designing molecules with specific properties, coding, and optimizing agentic systems. TextGrad empowers scientists and engineers to easily develop impactful generative AI systems.
Keywords:
ALGORITHMS

Journal

Nature cover
Nature
IF:
48.5
Papers:
1.8W
Citations:
96.5W

Organization

C
Chan Zuckerberg Biohub
Scholars:
166
Papers: 90
Citations: 60