LLMs Regret Before They Say It: Early Detection and Compositional Architecture of Regret in Hidden States

Xiangxiang Cui, Shu Yang, Tianjin Huang, Wanyu Lin, Lijie Hu, Di Wang


Abstract
Regret in large language models (LLMs) refers to their explicit expression of regret when confronted with evidence contradicting previously generated misinformation. Understanding the neural encoding of regret is crucial for advancing artificial metacognition and model reliability. However, three key gaps remain: the absence of specialized datasets for regret expressions, the lack of understanding of how early regret signals emerge in hidden states, and the unknown neuron-level architecture underlying regret encoding. To address these gaps, we make three contributions: (1) we propose a multi-stage workflow for constructing the first regret dataset and train probes achieving near-perfect accuracy across LLaMA-2-7B, Mistral-7B, and Vicuna-13B. (2) we discover that regret signals begin emerging in preceding hidden states before the regret token appears, and that probes generalize to semantically related keywords such as "incorrect" and "apologize." (3) at the neuron level, we introduce the Regret Dominance Score (RDS) and Group Impact Coefficient (GIC) to reveal a compositional regret architecture where cooperative neuron groups collectively encode regret, with larger models (70B) exhibiting more pronounced compositional effects. Targeted interventions on these neurons successfully suppress regret expression in generated text, validating our mechanistic understanding. Our code and data are available at https://github.com/AbnerAI/LLMs-Regret-Before-They-Say-It.
Anthology ID:
2026.emnlp-main.215
Volume:
Proceedings of the 2026 Conference on Empirical Methods in Natural Language Processing
Month:
October
Year:
2026
Address:
Budapest, Hungary
Editors:
Hung-Yi Lee, Sunipa Dev, Jessy Li, Desmond Elliott
Venue:
EMNLP
SIG:
SIGDAT
Publisher:
Association for Computational Linguistics
Note:
Pages:
4923–4946
Language:
URL:
https://aclanthology.org/2026.emnlp-main.215/
DOI:
Bibkey:
Cite (ACL):
Xiangxiang Cui, Shu Yang, Tianjin Huang, Wanyu Lin, Lijie Hu, and Di Wang. 2026. LLMs Regret Before They Say It: Early Detection and Compositional Architecture of Regret in Hidden States. In Proceedings of the 2026 Conference on Empirical Methods in Natural Language Processing, pages 4923–4946, Budapest, Hungary. Association for Computational Linguistics.
Cite (Informal):
LLMs Regret Before They Say It: Early Detection and Compositional Architecture of Regret in Hidden States (Cui et al., EMNLP 2026)
Copy Citation:
PDF:
https://aclanthology.org/2026.emnlp-main.215.pdf