TL;DR
This paper introduces DISCIPL, a novel framework that empowers Language Models (LMs) to "self-steer" their own inference process. By having a "Planner" LM generate task-specific inference programs, DISCIPL enables smaller "Follower" LMs to perform complex reasoning tasks with surprising efficiency and accuracy, often matching or exceeding much larger models. This opens up new avenues for highly parallelized and verifiable LM reasoning.
What Problem Does This Paper Address?
Large Language Models (LMs) have shown remarkable progress in various tasks, but their reasoning capabilities remain "jagged." While they can excel at complex tasks, they often struggle with seemingly simpler ones requiring deliberate, step-by-step thinking. Existing methods for improving LM reasoning, like Chain-of-Thought (CoT), are often slow and computationally expensive due to their serial nature. Other approaches, like structured inference methods (e.g., tree search), require significant human engineering and pre-defined verifiers. The core challenge is to leverage LMs' ability to understand abstract structures and search strategies to guide their own inference in a more efficient, verifiable, and automated way.
Methods
DISCIPL introduces a "self-steering" paradigm where two LMs collaborate:
- Planner LM (Mp): This LM takes a task description and generates an inference program. This program is written in a probabilistic programming language (LLAMPPL) and specifies how the Follower LM should perform the task, including how to generate or evaluate intermediate steps. The Planner essentially designs the reasoning strategy.
- Follower LM (Mf): This LM acts as the execution engine. It takes the inference program generated by the Planner and executes it, performing the actual generation or evaluation. The Follower can be a smaller, more efficient model.
The inference program guides the Follower through a recursive search procedure. DISCIPL leverages Sequential Monte Carlo (SMC) and Importance Sampling (IS) as general-purpose Monte Carlo methods to sample from the target distribution defined by the inference program. This allows for parallel execution and adaptive allocation of computational resources. Key patterns supported by the Planner include:
- Token masking: Enforcing constraints on token generation.
- Self-hinting: Dynamically updating the Follower's prompt with relevant stateful information.
- Self-checking: Defining a distinguished
check()method to verify generated outputs.
Datasets
The paper evaluates DISCIPL on two main domains:
- COLLIE-v1: A constrained generation benchmark with tasks at sentence and paragraph levels, defined by a formal grammar of constraints.
- PUZZLES: A custom dataset comprising four task types: square poem composition, grant proposal abstract generation, ingredient list generation with budget constraints, and multi-day trip itinerary planning.
Key Insights and Ideas
- LMs as Inference Engineers: The core idea is that LMs can not only perform tasks but also design the process for performing those tasks. The Planner LM's ability to describe abstract structures and search strategies is key.
- Decomposition of Reasoning: DISCIPL decomposes reasoning into planning (by the Planner) and execution (by the Follower), preserving flexibility while enabling efficient, parallel search.
- Verifiable Reasoning by Construction: The inference programs generated by the Planner ensure correctness by construction, meaning that if the program executes successfully, the output is guaranteed to meet the specified constraints.
- Small Models, Big Gains: DISCIPL demonstrates that even small Follower LMs, when guided by a Planner, can achieve performance comparable to much larger, state-of-the-art models.
- Adaptive Inference: SMC-based inference allows DISCIPL to adaptively allocate computational resources to promising candidates, leading to more coherent and valid outputs.
Key Results
- Performance Boost: DISCIPL significantly outperforms Follower-only baselines across all tested domains, enabling skills like character counting and word positioning that are absent in the base Follower LM.
- Bridging the Gap: On paragraph tasks, DISCIPL closes most of the performance gap between the Follower and Planner baselines, bringing smaller LMs closer to GPT-40/GPT-40-mini levels.
- Competitive with Frontier Models: On sentence and puzzle tasks, DISCIPL enables Follower LMs to surpass the Planner and approach the performance of powerful reasoning models like o1. For example, on COLLIE sentence tasks, DISCIPL-SMC with Llama-3.2-1B achieves a Pass@1 of 0.76, compared to 0.37 for GPT-40-mini and 0.96 for o1.
- Cost-Effective: DISCIPL is significantly cheaper than o1. The total cost per 100 tasks for DISCIPL-SMC is $4.26, compared to $4.75 for o1. Furthermore, DISCIPL's inference programs are much shorter and cheaper to generate than o1's reasoning traces.
- Autogenerated Programs Match Experts: In some evaluations, DISCIPL's autogenerated inference programs performed comparably to expert-written programs (DISCIPL*).
Limitations and Future Work
- Generalization: While DISCIPL shows promise in constrained generation, its extension to mathematical reasoning and domains with soft constraints is an area for future work.
- Inference Algorithms: Exploring other inference algorithms like backtracking (e.g., MCTS) or iterative editing could further enhance DISCIPL's capabilities.
- Self-Improvement: The authors suggest that the same LM could potentially play both the Planner and Follower roles, leading to a recursive "self-steering" setup that could learn and improve over time.
- Planner-Follower Size Disparity: Currently, the Planner is a larger, more capable LM than the Follower. Future work could explore using the same LM for both roles or optimizing this size difference.
- Error Correction: While DISCIPL can correct some errors through retries, a richer form of feedback from inference outputs to the Planner could further improve robustness.
Summary updated