LLM Self-Correction with DeCRIM: Decompose, Critique, and Refine for Enhanced Following of Instructions with Multiple Constraints
Introduction
Large Language Models (LLMs) have demonstrated impressive capabilities across various domains. However, their performance often degrades when faced with complex instructions containing multiple, sometimes conflicting, constraints. For instance, a user might request a "funny social media post, under 280 characters, with no hashtags, promoting a specific product." While a model like GPT-4 might capture the tone and product, it frequently fails on negative constraints like "no hashtags" or specific formatting requirements.
Research indicates that even top-tier models like GPT-4 fail to follow at least one constraint in over 21% of real-world user requests. This "Correction Gap" stems from the fact that standard generation is often a "System 1" process—fast and intuitive but prone to missing details. To address this, the authors propose DeCRIM (Decompose, Critique, and Refine), a framework designed to move LLM reasoning toward a more analytical "System 2" approach.
The DeCRIM Framework
The DeCRIM pipeline breaks down the complex task of instruction following into four distinct stages:
- Initial Response: The model generates a first draft based on the user's prompt.
- Decompose: A specialized "Decomposer" model analyzes the original instruction to extract a structured list of granular, actionable constraints.
- Critique: A "Critic" model evaluates the initial draft against each extracted constraint, providing specific natural language feedback on any failures.
- Refine: The original model uses the feedback to revise its response. This loop can iterate until the constraints are met.
This structured approach transforms a subjective evaluation task into an objective checklist, significantly improving the model's ability to self-correct. By explicitly separating the identification of constraints from the generation and evaluation phases, DeCRIM ensures that no requirement is overlooked during the refinement process.
Datasets and Evaluation
To rigorously test DeCRIM, the authors introduced two new datasets:
- REALINSTRUCT: A benchmark of 302 test instructions sourced from real user interactions (ShareGPT), manually decomposed into 22 constraint categories.
- EvalJudge: A set of 1,000 human-verified instruction-constraint-response triples used to evaluate the reliability of LLM-as-a-judge evaluators.
The study also utilized IFEval, a standard synthetic benchmark. Interestingly, the authors found only a 6.3% overlap between constraints in REALINSTRUCT and IFEval, highlighting that synthetic benchmarks often fail to capture the messy, nuanced complexity of real-world user needs.
Results and Key Insights
The experimental results demonstrate that DeCRIM significantly boosts the performance of open-source models. When applied to Mistral 7B, the framework improved instruction-level accuracy by 7.3% on REALINSTRUCT and 8.0% on IFEval.
A critical finding is that the "Critic" is the primary bottleneck. While models are adept at refining based on feedback, they struggle to identify their own errors (Self-Critic). However, when paired with a strong critic (even a supervised open-source one), performance jumps. Most notably, with "Oracle" (perfect) feedback, Mistral 7B reached 93.7% accuracy on REALINSTRUCT, effectively outperforming the GPT-4 baseline.
Conclusion
DeCRIM offers a robust pathway for enhancing the instruction-following capabilities of LLMs, particularly open-source models. By decomposing complex prompts and providing targeted critiques, the framework bridges the gap between proprietary and open-source performance. Future work will focus on reducing the inference overhead of the multi-pass pipeline and improving the reliability of open-source critic models to make System 2 reasoning more efficient for real-time applications.
Summary updated