LLM Self-Correction with DeCRIM: Decompose, Critique, and Refine for Enhanced Following of Instructions with Multiple Constraints

Thomas Palmeira Ferraz, Kartik Mehta, Yu-Hsiang Lin, Haw-Shiuan Chang, Shereen Oraby, Sijia Liu, Vivek Subramanian, Tagyoung Chung, Mohit Bansal, Nanyun Peng · DOI

Introduction

Large Language Models (LLMs) have demonstrated remarkable capabilities in general conversation and task execution. However, their performance often degrades significantly when faced with "crowded" instructions—prompts that require the simultaneous satisfaction of multiple, diverse constraints. For instance, a user might request a summary with a specific word count, a particular persona, a restricted vocabulary, and a specific output format. Even state-of-the-art models like GPT-4 frequently fail to adhere to every constraint in such scenarios.

This paper addresses these limitations through two primary contributions: REALINSTRUCT, a benchmark based on authentic user interactions, and DeCRIM, a "System 2" self-correction pipeline that decomposes complex instructions into granular rules to facilitate more effective critique and refinement.

The Evaluation and Performance Gaps

The researchers identify two critical gaps in the current landscape of instruction following:

  1. The Evaluation Gap: Existing benchmarks, such as IFEval, largely rely on synthetic data. While useful for testing specific logic, synthetic prompts often fail to reflect the nuance and "messiness" of real-world human-AI interactions. The authors found that only 6.3% of constraints in real user queries overlap with those found in synthetic benchmarks.
  2. The Performance Gap: Models struggle to act as their own judges. Standard "Self-Refine" methods, where a model is simply asked to improve its own output, often fail because the model cannot accurately identify its own errors without a structured framework.

REALINSTRUCT: A Real-World Benchmark

To bridge the evaluation gap, the authors introduced REALINSTRUCT. This benchmark consists of 302 test and 842 validation instructions sourced from ShareGPT, representing actual user queries. It encompasses over 20 categories of constraints, providing a more rigorous and realistic testbed for instruction following than synthetic alternatives. Additionally, the authors developed EvalJudge, a dataset of 1,000 human-verified instruction-constraint-response triples used to evaluate the effectiveness of LLMs as critics.

The DeCRIM Framework

The DeCRIM (Decompose, Critique, and Refine) pipeline moves beyond single-pass generation by implementing a structured, four-step iterative process:

  1. Initial Response: The model generates a baseline response to the user prompt.
  2. Decompose: A specialized "Decomposer" model breaks the complex prompt into a structured list of atomic, individual constraints.
  3. Critique: A "Critic" model evaluates the initial response against each atomic constraint identified in the previous step, providing detailed natural language feedback on specific failures.
  4. Refine: The original model utilizes the initial draft and the Critic’s feedback to produce a refined version. This loop can be repeated until the constraints are met or a predefined iteration limit is reached.

To ensure the evaluation process is both accurate and scalable, the authors explored LLM-as-a-Judge strategies. They found that prompting a model with Chain-of-Thought (CoT) to evaluate constraints individually is nearly as reliable as human experts, achieving a Cohen’s Kappa of 0.50—surpassing the 0.44 agreement rate between human annotators.

Key Insights and Results

The Power of Decomposition

The study highlights that the "Critic" is the primary bottleneck in self-correction. By forcing the model to evaluate constraints one-by-one (decomposition), the judgment process becomes significantly more objective and accurate. This structured approach prevents "over-refinement," where a model might inadvertently break a previously satisfied constraint while trying to fix another.

Performance Gains

DeCRIM demonstrated substantial improvements across both open-source and proprietary models:

  • Open-Source Advancement: Using DeCRIM, the Mistral-7B model improved its instruction-level accuracy by 7.3% on REALINSTRUCT and 8.0% on IFEval.
  • Surpassing GPT-4: When provided with "Oracle" (perfect) feedback, open-source models using the DeCRIM pipeline achieved approximately 94% accuracy, significantly outperforming the GPT-4 baseline of 79%.
  • GPT-4 Vulnerability: Even without the DeCRIM pipeline, the study revealed that GPT-4 fails to meet at least one constraint in over 21% of real-world instructions, underscoring the need for better refinement techniques even in top-tier models.

Limitations and Future Work

The primary challenge for DeCRIM is computational overhead, as the multi-pass nature of the pipeline (Decompose, Critique, Refine) is more resource-intensive than single-pass generation. To mitigate this, the authors suggest triggering the refinement loop only when the Critic detects a failure, which occurred in roughly 25% of cases during testing.

Future research will focus on integrating DeCRIM with other advanced techniques, such as "Self-Consistency" or "Generate-and-Rank" strategies, to further harden the ability of LLMs to navigate extremely complex, multi-step instructions in production environments.

Conclusion

DeCRIM demonstrates that the key to better instruction following is not necessarily larger models, but better processes. By decomposing complex tasks into manageable critiques, even smaller open-source models can achieve and exceed the performance of the industry's leading proprietary models.

Summary updated

BibTeX
@inproceedings{ferraz2024llm,
  author = {Thomas Palmeira Ferraz and Kartik Mehta and Yu-Hsiang Lin and Haw-Shiuan Chang and Shereen Oraby and Sijia Liu and Vivek Subramanian and Tagyoung Chung and Mohit Bansal and Nanyun Peng},
  title = {{LLM Self-Correction with DeCRIM: Decompose, Critique, and Refine for Enhanced Following of Instructions with Multiple Constraints}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  doi = {10.18653/v1/2024.findings-emnlp.458},
}
Figure