Language Models Are Capable of Metacognitive Monitoring and Control of Their Internal Activations

Li Ji-An, Hua-Dong Xiong, Robert C. Wilson, Marcelo G. Mattar, Marcus K. Benna
5/19/2025
cs.AIcs.CLq-bio.NC

No official code found. Best implementation: sakimarquis/llm_neurofeedback (6 stars, GPL-3.0, last commit 2026-02-16).

Abstract

Large language models (LLMs) can sometimes report the strategies they actually use to solve tasks, yet at other times seem unable to recognize those strategies that govern their behavior. This suggests a limited degree of metacognition - the capacity to monitor one's own cognitive processes for subsequent reporting and self-control. Metacognition enhances LLMs' capabilities in solving complex tasks but also raises safety concerns, as models may obfuscate their internal processes to evade neural-activation-based oversight (e.g., safety detector). Given society's increased reliance on these models, it is critical that we understand their metacognitive abilities. To address this, we introduce a neuroscience-inspired neurofeedback paradigm that uses in-context learning to quantify metacognitive abilities of LLMs to report and control their activation patterns. We demonstrate that their abilities depend on several factors: the number of in-context examples provided, the semantic interpretability of the neural activation direction (to be reported/controlled), and the variance explained by that direction. These directions span a "metacognitive space" with dimensionality much lower than the model's neural space, suggesting LLMs can monitor only a small subset of their neural activations. Our paradigm provides empirical evidence to quantify metacognition in LLMs, with significant implications for AI safety (e.g., adversarial attack and defense).

View on arXivView PDF

Code Implementations(1)

GPL-3.0

[NeurIPS 2025] Language Models Are Capable of Metacognitive Monitoring and Control of Their Internal Activations.

62Shell, PythonMay 14, 20258 months agoGPL-3.0

Similar Papers

Cite this paper

@article{jian2025language,
  title  = {Language Models Are Capable of Metacognitive Monitoring and Control of Their Internal Activations},
  author = {Li Ji-An and Hua-Dong Xiong and Robert C. Wilson and Marcelo G. Mattar and Marcus K. Benna},
  year   = {2025},
  eprint = {2505.13763},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.13763v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2505.13763.svg)](https://codeofpaper.com/paper/2505.13763)

Discussion