Abstract
This survey organizes the intricate literature on the design and optimization of emerging structures around post-trained LMs. We refer to this overarching structure as scaffolded LMs and focus on LMs that are integrated into multi-step processes with tools. We view scaffolded LMs as semi-parametric models wherein we train non-parametric variables, including the prompt, tools, and scaffold's code. In particular, they interpret instructions, use tools, and receive feedback all in language. Recent works use an LM as an optimizer to interpret language supervision and update non-parametric variables according to intricate objectives. In this survey, we refer to this paradigm as training of scaffolded LMs with language supervision. A key feature of non-parametric training is the ability to learn from language. Parametric training excels in learning from demonstration (supervised learning), exploration (reinforcement learning), or observations (unsupervised learning), using well-defined loss functions. Language-based optimization enables rich, interpretable, and expressive objectives, while mitigating issues like catastrophic forgetting and supporting compatibility with closed-source models. Furthermore, agents are increasingly deployed as co-workers in real-world applications such as Copilot in Office tools or software development. In these mixed-autonomy settings, where control and decision-making are shared between human and AI, users point out errors or suggest corrections. Accordingly, we discuss agents that continuously improve by learning from this real-time, language-based feedback and refer to this setting as streaming learning from language supervision.
Introduction: The Rise of Scaffolded LMs
As Large Language Models (LLMs) transition from simple chatbots to autonomous agents, the focus of research is shifting from the model's internal weights to the external structures that govern its behavior. This survey introduces the concept of scaffolded LMs—systems that integrate a fixed, post-trained LM core with a "scaffold" consisting of control flow code, tool definitions, and dynamic prompts.
Unlike traditional machine learning, which focuses on updating model parameters, scaffolded LMs enable a new paradigm: non-parametric training. In this setting, the system learns by refining the human-readable components of the scaffold rather than the neural weights of the model itself.
The Limits of Parametric Training
Traditional training methods for LMs are fundamentally parametric. They rely on gradient descent to adjust billions of weights based on three primary signals: demonstrations (supervised learning), exploration (reinforcement learning), and observations (unsupervised learning).
While effective, parametric training faces significant hurdles in modern AI development:
- Catastrophic Forgetting: Updating weights for a new task often degrades performance on previous ones.
- Opacity: Weight updates are "black boxes," making it difficult to audit why a model's behavior changed.
- Closed-Source Barriers: The most powerful models (e.g., GPT-4) are only accessible via API, making weight-tuning impossible for most developers.
Non-Parametric Training: Language as the New Gradient
To overcome these barriers, the survey highlights the shift toward non-parametric training. Here, an LM acts as an optimizer, interpreting natural language feedback to update the scaffold. This approach treats language as a high-bandwidth, interpretable signal that can localize errors and provide direct instructions for improvement.
Core Mechanisms of Language Supervision
The survey identifies three primary methods for optimizing these non-parametric variables:
- Prompt Optimization: Iteratively refining system instructions to avoid failure modes identified in previous execution traces.
- Experiential Learning: Extracting high-level heuristics or "skills" (reusable code snippets) from successful or failed trajectories. These are stored in a persistent memory or "cheatsheet" that the agent consults in future episodes.
- Language-Based AutoDiff: Treating a multi-step workflow as a Directed Acyclic Graph (DAG). These frameworks "back-propagate" textual feedback through the graph to update specific nodes, such as a specific step's prompt or a Python tool's implementation.
Mixed-Autonomy and Streaming Learning
A critical application of this framework is mixed-autonomy, where humans and AI collaborate on complex tasks like software engineering or research. In these settings, feedback is rarely a simple numerical score; it is usually rich, nuanced language (e.g., "Actually, use the async version of this library").
Scaffolded LMs are uniquely suited for streaming learning, where the agent continuously improves by incorporating this real-time feedback into its scaffold. This circumvents the "stability-plasticity dilemma": you can add a new skill to an agent's library without any risk of it forgetting basic logic, as the core model weights remain untouched.
Key Insights and Future Directions
The survey concludes that the future of AI agents lies in "inhabiting streams of experience." Rather than resetting after every session, agents should accumulate a codebase of tools and a manual of insights over weeks of interaction.
However, several challenges remain:
- Optimizer Cost: Using high-end LMs to optimize other LMs is computationally expensive, suggesting a need for "sleep-time compute" where systems optimize themselves during idle periods.
- Verification: Ensuring that an "optimized" tool or prompt does not introduce security vulnerabilities or bugs remains an open research area.
- Multimodal Feedback: Current language-based optimizers struggle to incorporate non-textual feedback, such as visual cues in physical robotics tasks.
By framing these diverse research threads under the umbrella of scaffolded LMs, this survey provides a roadmap for building more interpretable, adaptable, and collaborative AI systems.
Summary updated