A Theoretical Understanding of Self-Correction through In-context Alignment
On the map: LLM reasoning → Test-time compute and efficient thinking
Abstract (arXiv)
Going beyond mimicking limited human experiences, recent studies show initial evidence that, like humans, large language models (LLMs) are capable of improving their abilities purely by self-correction, i.e., correcting previous responses through self-examination, in certain circumstances. Nevertheless, little is known about how such capabilities arise. In this work, based on a simplified setup akin to an alignment task, we theoretically analyze self-correction from an in-context learning perspective, showing that when LLMs give relatively accurate self-examinations as rewards, they are capable of refining responses in an in-context way. Notably, going beyond previous theories on over-simplified linear transformers, our theoretical construction underpins the roles of several key designs of realistic transformers for self-correction: softmax attention, multi-head attention, and the MLP block. We validate these findings extensively on synthetic datasets. Inspired by these findings, we also illustrate novel applications of self-correction, such as defending against LLM jailbreaks, where a simple self-correction step does make a large difference. We believe that these findings will inspire further research on understanding, exploiting, and enhancing self-correction for building better foundation models.
Key facts. Cited by 44 papers in the map (data through 14 Oct 2026). Placed in Test-time compute and efficient thinking, one of 17 directions in LLM reasoning. Builds on 79 of its 97 references that are in the map. First posted on arXiv 28 May 2024.
Builds on
79 of 97 references.
Closest ancestors · 8
Same direction, newest first
- 2024Small Language Models Need Strong Verifiers to Self-Correct Reasoning26 Apr
- 2024CriticBench: Benchmarking LLMs for Critique-Correct Reasoning22 Feb
- 2023LLMs cannot find reasoning errors, but can correct them given the error location14 Nov
- 2023Large Language Models Cannot Self-Correct Reasoning Yet3 Oct
- 2023Automatically Correcting Large Language Models: Surveying the landscape of diverse self-correction strategies6 Aug
- 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Models17 May
- 2023REFINER: Reasoning Feedback on Intermediate Representations4 Apr
- 2023Self-Refine: Iterative Refinement with Self-Feedback30 Mar
Other references · 71
- 2017Attention Is All You Needcited by 60,361
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,744
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 12,049
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,626
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 8,065
- 2018Representation Learning with Contrastive Predictive Codingcited by 7,777
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
- 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 3,104
- 2022Constitutional AI: Harmlessness from AI Feedbackcited by 3,050
- 2023Jailbreaking Black Box Large Language Models in Twenty Queriescited by 1,420
38 more
- 2023Fine-tuning Aligned Language Models Compromises Safety, Even When Users Do Not Intend To!cited by 1,154
- 2023Teaching Large Language Models to Self-Debugcited by 988
- 2023AutoDAN: Generating Stealthy Jailbreak Prompts on Aligned Large Language Modelscited by 785
- 2022Transformers learn in-context by gradient descentcited by 732
- 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 715
- 2021BBQ: A Hand-Built Bias Benchmark for Question Answeringcited by 701
- 2023Baseline Defenses for Adversarial Attacks Against Aligned Language Modelscited by 651
- 2019Symmetric Cross Entropy for Robust Learning with Noisy Labelscited by 500
- 2023Jailbreaking ChatGPT via Prompt Engineering: An Empirical Studycited by 498
- 2023"Do Anything Now": Characterizing and Evaluating In-The-Wild Jailbreak Prompts on Large Language Modelscited by 489
- 2023Catastrophic Jailbreak of Open-source LLMs via Exploiting Generationcited by 451
- 2023Detecting Language Model Attacks with Perplexitycited by 431
- 2023Jailbreak and Guard Aligned Language Models with Only Few In-Context Demonstrationscited by 431
- 2023GPT-4 Is Too Smart To Be Safe: Stealthy Chat with LLMs via Ciphercited by 423
- 2023Language Models can Solve Computer Taskscited by 372
- 2023Trained Transformers Learn Linear Models In-Contextcited by 337
- 2023Low-Resource Languages Jailbreak GPT-4cited by 309
- 2023Transformers as Statisticians: Provable In-Context Learning with In-Context Algorithm Selectioncited by 298
- 2022RARR: Researching and Revising What Language Models Say, Using Language Modelscited by 287
- 2023Preference Ranking Optimization for Human Alignmentcited by 285
- 2023Transformers learn to implement preconditioned gradient descent for in-context learningcited by 279
- 2023Certifying LLM Safety against Adversarial Promptingcited by 266
- 2020Normalized Loss Functions for Deep Learning with Noisy Labelscited by 257
- 2023The Unlocking Spell on Base LLMs: Rethinking Alignment via In-Context Learningcited by 257
- 2023Multilingual Jailbreak Challenges in Large Language Modelscited by 240
- 2023Transformers as Algorithms: Generalization and Stability in In-context Learningcited by 222
- 2024Foundational Challenges in Assuring Alignment and Safety of Large Language Modelscited by 199
- 2023Defending Against Alignment-Breaking Attacks via Robustly Aligned LLMcited by 192
- 2023The Capacity for Moral Self-Correction in Large Language Modelscited by 173
- 2023RAIN: Your Language Models Can Align Themselves without Finetuningcited by 157
- 2022Transformer Language Models without Positional Encodings Still Learn Positional Informationcited by 150
- 2023Open Sesame! Universal Black Box Jailbreaking of Large Language Modelscited by 134
- 2024Attacks, Defenses and Evaluations for LLM Conversation Safety: A Surveycited by 130
- 2023What and How does In-Context Learning Learn? Bayesian Model Averaging, Parameterization, and Generalizationcited by 118
- 2023In-Context Convergence of Transformerscited by 115
- 2023Are Emergent Abilities in Large Language Models just In-Context Learning?cited by 109
- 2023Can Large Language Models Really Improve by Self-critiquing Their Own Plans?cited by 108
- 2022Chaos is a Ladder: A New Theoretical Understanding of Contrastive Learning via Augmentation Overlapcited by 105
50 most cited of 71 All 71 (JSON)
Built on by
Citing papers per year: 2024: 7; 2025: 27; 2026: 10.
44 papers.
Sort:
By area:
- 2024When Can LLMs Actually Correct Their Own Mistakes? A Critical Survey of Self-Correction of LLMscited by 240
- 2025S*: Test Time Scaling for Code Generationcited by 98
- 2025Efficient Test-Time Scaling via Self-Calibrationcited by 75
- 2025PonderLM: Pretraining Language Models to Ponder in Continuous Spacecited by 44
- 2025SaLoRA: Safety-Alignment Preserved Low-Rank Adaptationcited by 42
- 2025Large Language Models for Planning: A Comprehensive and Systematic Surveycited by 40
- 2025Reinforced Visual Perception with Toolscited by 38
- 2024AI Safety in Generative AI Large Language Models: A Surveycited by 33
- 2024Can In-context Learning Really Generalize to Out-of-distribution Tasks?cited by 23
- 2025Can LLMs Correct Themselves? A Benchmark of Self-Correction in LLMscited by 14
- 2025SAC-Opt: Semantic Anchors for Iterative Correction in Optimization Modelingcited by 8
- 2025MetaDefense: Defending Finetuning-based Jailbreak Attack Before and During Generationcited by 8
32 more
- 2025Towards the Worst-case Robustness of Large Language Modelscited by 7
- 2025Scalable Defense against In-the-wild Jailbreaking Attacks with Safety Context Retrievalcited by 7
- 2025HEAL: An Empirical Study on Hallucinations in Embodied Agents Driven by Large Language Modelscited by 6
- 2025When and How Unlabeled Data Provably Improve In-Context Learningcited by 6
- 2025Theoretical Modeling of Large Language Model Self-Improvement Training Dynamics Through Solver-Verifier Gapcited by 6
- 2025Specification Self-Correction: Mitigating In-Context Reward Hacking Through Test-Time Refinementcited by 6
- 2024Task Diversity Shortens the ICL Plateaucited by 5
- 2025WikiAutoGen: Towards Multi-Modal Wikipedia-Style Article Generationcited by 5
- 2025LANPO: Bootstrapping Language and Numerical Feedback for Reinforcement Learning in LLMscited by 5
- 2025Self-Reflective Planning with Knowledge Graphs: Enhancing LLM Reasoning Reliability for Question Answeringcited by 4
- 2025Long-Short Alignment for Effective Long-Context Modeling in LLMscited by 4
- 2025Discourse Heuristics For Paradoxically Moral Self-Correctioncited by 3
- 2026Self-Debias: Self-correcting for Debiasing Large Language Modelscited by 3
- 2026PiCA: Pivot-Based Credit Assignment for Search Agentic Reinforcement Learningcited by 3
- 2024MILE: A Mutation Testing Framework of In-Context Learning Systemscited by 2
- 2024Self-correction is Not An Innate Capability in Language Modelscited by 2
- 2025Explaining Intrinsic Moral Self-Correction with Mechanistic Interpretabilitycited by 2
- 2025Scalable and Robust LLM Unlearning by Correcting Responses with Retrieved Exclusionscited by 2
- 2026Finding and Reactivating Post-Trained LLMs' Hidden Safety Mechanismscited by 2
- 2026Layered LLM Defenses as an Ensemble: Access Tiers, Inference Cost, and the Measured Failure Correlation Between Defense Layerscited by 2
- 2024Past Meets Present: Creating Historical Analogy with Large Language Modelscited by 1
- 2025Research Superalignment Should Advance Now with Alternating Competence and Conformity Optimizationcited by 1
- 2025ReGA: Model-Based Safeguard for LLMs via Representation-Guided Abstractioncited by 1
- 2025CIMR: Contextualized Iterative Multimodal Reasoning for Robust Instruction Following in LVLMscited by 1
- 2025An Explainable Emotion Alignment Framework for LLM-Empowered Agent in Metaverse Service Ecosystemcited by 1
- 2026Beyond In-Domain Detection: SpikeScore for Cross-Domain Hallucination Detectioncited by 1
- 2026Fairness Aware Reward Optimizationcited by 1
- 2026Intra-Fairness Dynamics: The Bias Spillover Effect in Targeted LLM Alignmentcited by 1
- 2025DynaQuery: A Self-Adapting Framework for Querying Structured and Multimodal Datacited by 0
- 2026Though Language Models Err While They Strive: Conformal Prediction for Self-Correcting Scientific Generationcited by 0
- 2026Optimal Stopping of Self-Refining Foundation Modelscited by 0
- 2026From Static Policies to Adaptive Priors in Offline Reinforcement Learningcited by 0
- 2026From Static Policies to Adaptive Priors in Offline Reinforcement Learning26 Sep 2026
- 2026Layered LLM Defenses as an Ensemble: Access Tiers, Inference Cost, and the Measured Failure Correlation Between Defense Layers28 Aug 2026
- 2026Optimal Stopping of Self-Refining Foundation Models11 Aug 2026
- 2026Though Language Models Err While They Strive: Conformal Prediction for Self-Correcting Scientific Generation18 Jul 2026
- 2026PiCA: Pivot-Based Credit Assignment for Search Agentic Reinforcement Learning10 May 2026
- 2026Self-Debias: Self-correcting for Debiasing Large Language Models9 Apr 2026
- 2026Finding and Reactivating Post-Trained LLMs' Hidden Safety Mechanisms10 Mar 2026
- 2026Intra-Fairness Dynamics: The Bias Spillover Effect in Targeted LLM Alignment18 Feb 2026
- 2026Fairness Aware Reward Optimization8 Feb 2026
- 2026Beyond In-Domain Detection: SpikeScore for Cross-Domain Hallucination Detection27 Jan 2026
- 2025DynaQuery: A Self-Adapting Framework for Querying Structured and Multimodal Data20 Oct 2025
- 2025LANPO: Bootstrapping Language and Numerical Feedback for Reinforcement Learning in LLMs18 Oct 2025
32 more
- 2025Can LLMs Correct Themselves? A Benchmark of Self-Correction in LLMs17 Oct 2025
- 2025MetaDefense: Defending Finetuning-based Jailbreak Attack Before and During Generation9 Oct 2025
- 2025Scalable and Robust LLM Unlearning by Correcting Responses with Retrieved Exclusions30 Sep 2025
- 2025SAC-Opt: Semantic Anchors for Iterative Correction in Optimization Modeling28 Sep 2025
- 2025Reinforced Visual Perception with Tools1 Sep 2025
- 2025An Explainable Emotion Alignment Framework for LLM-Empowered Agent in Metaverse Service Ecosystem30 Jul 2025
- 2025Specification Self-Correction: Mitigating In-Context Reward Hacking Through Test-Time Refinement24 Jul 2025
- 2025CIMR: Contextualized Iterative Multimodal Reasoning for Robust Instruction Following in LVLMs22 Jul 2025
- 2025Discourse Heuristics For Paradoxically Moral Self-Correction1 Jul 2025
- 2025Theoretical Modeling of Large Language Model Self-Improvement Training Dynamics Through Solver-Verifier Gap29 Jun 2025
- 2025When and How Unlabeled Data Provably Improve In-Context Learning18 Jun 2025
- 2025HEAL: An Empirical Study on Hallucinations in Embodied Agents Driven by Large Language Models18 Jun 2025
- 2025Long-Short Alignment for Effective Long-Context Modeling in LLMs13 Jun 2025
- 2025ReGA: Model-Based Safeguard for LLMs via Representation-Guided Abstraction2 Jun 2025
- 2025PonderLM: Pretraining Language Models to Ponder in Continuous Space27 May 2025
- 2025Large Language Models for Planning: A Comprehensive and Systematic Survey26 May 2025
- 2025Self-Reflective Planning with Knowledge Graphs: Enhancing LLM Reasoning Reliability for Question Answering26 May 2025
- 2025Scalable Defense against In-the-wild Jailbreaking Attacks with Safety Context Retrieval21 May 2025
- 2025Explaining Intrinsic Moral Self-Correction with Mechanistic Interpretability17 May 2025
- 2025WikiAutoGen: Towards Multi-Modal Wikipedia-Style Article Generation24 Mar 2025
- 2025Research Superalignment Should Advance Now with Alternating Competence and Conformity Optimization8 Mar 2025
- 2025Efficient Test-Time Scaling via Self-Calibration25 Feb 2025
- 2025S*: Test Time Scaling for Code Generation20 Feb 2025
- 2025Towards the Worst-case Robustness of Large Language Models31 Jan 2025
- 2025SaLoRA: Safety-Alignment Preserved Low-Rank Adaptation3 Jan 2025
- 2024Self-correction is Not An Innate Capability in Language Models27 Oct 2024
- 2024Can In-context Learning Really Generalize to Out-of-distribution Tasks?13 Oct 2024
- 2024Task Diversity Shortens the ICL Plateau7 Oct 2024
- 2024Past Meets Present: Creating Historical Analogy with Large Language Models23 Sep 2024
- 2024MILE: A Mutation Testing Framework of In-Context Learning Systems7 Sep 2024
- 2024AI Safety in Generative AI Large Language Models: A Survey6 Jul 2024
- 2024When Can LLMs Actually Correct Their Own Mistakes? A Critical Survey of Self-Correction of LLMs3 Jun 2024
- 2025S*: Test Time Scaling for Code Generationcited by 98
- 2025Efficient Test-Time Scaling via Self-Calibrationcited by 75
- 2025Large Language Models for Planning: A Comprehensive and Systematic Surveycited by 40
- 2025Reinforced Visual Perception with Toolscited by 38
- 2025Can LLMs Correct Themselves? A Benchmark of Self-Correction in LLMscited by 14
- 2025Self-Reflective Planning with Knowledge Graphs: Enhancing LLM Reasoning Reliability for Question Answeringcited by 4
- 2026Self-Debias: Self-correcting for Debiasing Large Language Modelscited by 3
- 2026Finding and Reactivating Post-Trained LLMs' Hidden Safety Mechanismscited by 2
- 2025CIMR: Contextualized Iterative Multimodal Reasoning for Robust Instruction Following in LVLMscited by 1
- 2026Though Language Models Err While They Strive: Conformal Prediction for Self-Correcting Scientific Generationcited by 0
- 2026Though Language Models Err While They Strive: Conformal Prediction for Self-Correcting Scientific Generation18 Jul 2026
- 2026Self-Debias: Self-correcting for Debiasing Large Language Models9 Apr 2026
- 2026Finding and Reactivating Post-Trained LLMs' Hidden Safety Mechanisms10 Mar 2026
- 2025Can LLMs Correct Themselves? A Benchmark of Self-Correction in LLMs17 Oct 2025
- 2025Reinforced Visual Perception with Tools1 Sep 2025
- 2025CIMR: Contextualized Iterative Multimodal Reasoning for Robust Instruction Following in LVLMs22 Jul 2025
- 2025Large Language Models for Planning: A Comprehensive and Systematic Survey26 May 2025
- 2025Self-Reflective Planning with Knowledge Graphs: Enhancing LLM Reasoning Reliability for Question Answering26 May 2025
- 2025Efficient Test-Time Scaling via Self-Calibration25 Feb 2025
- 2025S*: Test Time Scaling for Code Generation20 Feb 2025
- 2025SaLoRA: Safety-Alignment Preserved Low-Rank Adaptationcited by 42
- 2025MetaDefense: Defending Finetuning-based Jailbreak Attack Before and During Generationcited by 8
- 2025Scalable Defense against In-the-wild Jailbreaking Attacks with Safety Context Retrievalcited by 7
- 2025Scalable and Robust LLM Unlearning by Correcting Responses with Retrieved Exclusionscited by 2
- 2025ReGA: Model-Based Safeguard for LLMs via Representation-Guided Abstractioncited by 1
- 2025MetaDefense: Defending Finetuning-based Jailbreak Attack Before and During Generation9 Oct 2025
- 2025Scalable and Robust LLM Unlearning by Correcting Responses with Retrieved Exclusions30 Sep 2025
- 2025ReGA: Model-Based Safeguard for LLMs via Representation-Guided Abstraction2 Jun 2025
- 2025Scalable Defense against In-the-wild Jailbreaking Attacks with Safety Context Retrieval21 May 2025
- 2025SaLoRA: Safety-Alignment Preserved Low-Rank Adaptation3 Jan 2025
- 2025Specification Self-Correction: Mitigating In-Context Reward Hacking Through Test-Time Refinementcited by 6
- 2025Research Superalignment Should Advance Now with Alternating Competence and Conformity Optimizationcited by 1
- 2026Fairness Aware Reward Optimizationcited by 1
- 2026Intra-Fairness Dynamics: The Bias Spillover Effect in Targeted LLM Alignmentcited by 1
- 2026Intra-Fairness Dynamics: The Bias Spillover Effect in Targeted LLM Alignment18 Feb 2026
- 2026Fairness Aware Reward Optimization8 Feb 2026
- 2025Specification Self-Correction: Mitigating In-Context Reward Hacking Through Test-Time Refinement24 Jul 2025
- 2025Research Superalignment Should Advance Now with Alternating Competence and Conformity Optimization8 Mar 2025
- 2025HEAL: An Empirical Study on Hallucinations in Embodied Agents Driven by Large Language Modelscited by 6
- 2026PiCA: Pivot-Based Credit Assignment for Search Agentic Reinforcement Learningcited by 3
- 2025An Explainable Emotion Alignment Framework for LLM-Empowered Agent in Metaverse Service Ecosystemcited by 1
- 2026PiCA: Pivot-Based Credit Assignment for Search Agentic Reinforcement Learning10 May 2026
- 2025An Explainable Emotion Alignment Framework for LLM-Empowered Agent in Metaverse Service Ecosystem30 Jul 2025
- 2025HEAL: An Empirical Study on Hallucinations in Embodied Agents Driven by Large Language Models18 Jun 2025
- 2024When Can LLMs Actually Correct Their Own Mistakes? A Critical Survey of Self-Correction of LLMscited by 240
- 2025PonderLM: Pretraining Language Models to Ponder in Continuous Spacecited by 44
- 2024AI Safety in Generative AI Large Language Models: A Surveycited by 33
- 2024Can In-context Learning Really Generalize to Out-of-distribution Tasks?cited by 23
- 2025SAC-Opt: Semantic Anchors for Iterative Correction in Optimization Modelingcited by 8
- 2025Towards the Worst-case Robustness of Large Language Modelscited by 7
- 2025When and How Unlabeled Data Provably Improve In-Context Learningcited by 6
- 2024Task Diversity Shortens the ICL Plateaucited by 5
- 2025WikiAutoGen: Towards Multi-Modal Wikipedia-Style Article Generationcited by 5
- 2025Long-Short Alignment for Effective Long-Context Modeling in LLMscited by 4
- 2025Discourse Heuristics For Paradoxically Moral Self-Correctioncited by 3
- 2024MILE: A Mutation Testing Framework of In-Context Learning Systemscited by 2
12 most cited of 18 All 18 (JSON)
- 2026Layered LLM Defenses as an Ensemble: Access Tiers, Inference Cost, and the Measured Failure Correlation Between Defense Layers28 Aug 2026
- 2026Optimal Stopping of Self-Refining Foundation Models11 Aug 2026
- 2026Beyond In-Domain Detection: SpikeScore for Cross-Domain Hallucination Detection27 Jan 2026
- 2025DynaQuery: A Self-Adapting Framework for Querying Structured and Multimodal Data20 Oct 2025
- 2025SAC-Opt: Semantic Anchors for Iterative Correction in Optimization Modeling28 Sep 2025
- 2025Discourse Heuristics For Paradoxically Moral Self-Correction1 Jul 2025
- 2025When and How Unlabeled Data Provably Improve In-Context Learning18 Jun 2025
- 2025Long-Short Alignment for Effective Long-Context Modeling in LLMs13 Jun 2025
- 2025PonderLM: Pretraining Language Models to Ponder in Continuous Space27 May 2025
- 2025WikiAutoGen: Towards Multi-Modal Wikipedia-Style Article Generation24 Mar 2025
- 2025Towards the Worst-case Robustness of Large Language Models31 Jan 2025
- 2024Self-correction is Not An Innate Capability in Language Models27 Oct 2024
12 newest of 18 All 18 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2024Large Language Models have Intrinsic Self-Correction Ability
- 2025Self-Correction Bench: Uncovering and Addressing the Self-Correction Blind Spot in Large Language Models
- 2024Confidence v.s. Critique: A Decomposition of Self-Correction Capability for LLMs
- 2026When Does Intrinsic Self-Correction Help? A Task-Sensitive Analysis
- 2024Smaller Large Language Models Can Do Moral Self-Correction
- 2024Mind the Gap: Examining the Self-Improvement Capabilities of Large Language Models
- 2024Self-Correction is More than Refinement: A Learning Framework for Visual and Language Reasoning Tasks
- 2025Intent-Aware Self-Correction for Mitigating Social Biases in Large Language Models