NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Small Language Model Can Self-Correct

Haixia Han, Jiaqing Liang, Jie Shi, Qianyu He, Yanghua Xiao

Abstract

Large Language Models (LLMs) have demonstrated a remarkable ability to self-correct through multi-step prompting and external feedback. However, Small Language Models (SLMs) often lack the instruction-following capabilities required for such complex pipelines. This paper introduces Intrinsic Self-Correction (ISC), a framework that enables SLMs (6B–13B parameters) to verify and rectify their own mistakes spontaneously within a single generation step. By utilizing a novel training technique called Partial Answer Masking (PAM), we demonstrate that SLMs can learn to identify hallucinations and provide corrected answers, resulting in significant accuracy improvements across various reasoning benchmarks.

1. Introduction

Hallucination remains a critical challenge in the deployment of language models, where models generate factually incorrect information with high confidence. While larger models like GPT-4 can be prompted to review and correct their outputs, SLMs typically fail to follow these sophisticated self-correction instructions. Current methods often rely on multi-turn dialogues or external "critic" models, which increase computational overhead and complexity.

Comparison between multi-step external self-correction and the proposed single-step Intrinsic Self-Correction (ISC).

As illustrated in Figure 1, our approach moves away from these multi-step dependencies. Instead, we bake the corrective behavior directly into the model's weights, allowing it to transition from an initial incorrect thought to a verified, correct final answer in one continuous generation pass.

2. Methodology

2.1 The Intrinsic Self-Correction (ISC) Framework

The ISC framework trains models to follow a specific output pattern: [Initial Answer] -> [Self-Verification Signal] -> [Final/Modified Answer]. The verification signal serves as an internal trigger, such as "I am sure my answer is correct" (Positive Verification) or "Sorry, there is an error in the previous answer" (Negative Verification). This structure allows the model to simulate a human-like "catch-and-fix" mechanism mid-generation.

2.2 Partial Answer Masking (PAM)

A significant risk when training on "bad cases" (where the model initially fails) is that the model might inadvertently learn to associate the prompt with the incorrect initial answer. To mitigate this, we introduce Partial Answer Masking (PAM). During the fine-tuning phase, the loss function is modified to mask the gradients for the incorrect portion of the initial answer. Consequently, the model only learns from the verification signal and the corrected final response. This ensures the model internalizes the logic of correction without reinforcing the content of the hallucination.

3. Experimental Evaluation

3.1 Setup and Datasets

We evaluated ISC on several open-source SLMs, including ChatGLM-6B, Llama2-7B, and CuteGPT-13B. The models were tested on two primary reasoning benchmarks: OpenBookQA (elementary science) and CommonsenseQA (general logic). We also tested zero-shot generalization on StrategyQA.

3.2 Performance Gains

Our results indicate that ISC consistently improves model performance across all tested architectures. The metric ACC-First represents the accuracy of the model's initial response, while ACC represents the accuracy after the intrinsic correction step.

Performance improvements across OpenBookQA and CommonsenseQA benchmarks using ISC.

As shown in Figure 4, ChatGLM-6B achieved the highest improvement on OpenBookQA with a +5.6% increase in accuracy. Similarly, CuteGPT-13B saw a +4.8% boost on the same dataset. These gains demonstrate that even models with fewer than 15 billion parameters possess the latent capacity for self-correction when trained with the appropriate objective.

4. Discussion and Analysis

4.1 The Overconfidence Barrier

One of the primary obstacles identified was model overconfidence. Models like Vicuna often exhibit confidence levels exceeding 90%, even when incorrect. This inherent bias makes it difficult for the model to trigger a "Negative Verification" signal. ISC helps overcome this by explicitly training the model that admitting an error is a valid and high-reward state.

4.2 Knowledge Deficit vs. Hallucination

ISC is most effective when the model possesses the correct factual knowledge but fails to retrieve it accurately in the first pass (hallucination). However, if the model lacks the underlying knowledge entirely, it may perform a "Wrong-to-Wrong" (W2W) transition, replacing one error with another. Future work should focus on infusing domain-specific knowledge to further reduce these W2W instances.

5. Conclusion

Intrinsic Self-Correction provides a streamlined, efficient path for improving the reliability of Small Language Models. By shifting from multi-step prompting to single-step intrinsic verification, and utilizing Partial Answer Masking to prevent the reinforcement of errors, we enable SLMs to catch their own hallucinations. This approach significantly narrows the gap between small open-source models and their larger, proprietary counterparts in reasoning tasks.

Summary updated

BibTeX
@inproceedings{han2024small,
  author = {Haixia Han and Jiaqing Liang and Jie Shi and Qianyu He and Yanghua Xiao},
  title = {{Small Language Model Can Self-Correct}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i16.29774},
}
Figure