Skip to content

Ji-An et al. 2025

Source. Language Models Are Capable of Metacognitive Monitoring and Control of Their Internal Activations (Ji-An, Xiong, Wilson, Mattar & Benna, 2025), NeurIPS 2025. Code: github.com/sakimarquis/llm_neurofeedback. Per-trial outputs are not stated as released.

Description. Ji-An and colleagues ask whether large language models can monitor and control their own internal activations. They adapt neurofeedback from neuroscience: a direction is chosen in the residual stream, each sentence’s mean activation is projected onto it and split at the median, and the resulting labels are shown to the model as in-context examples. The model is then asked to report the label of a new sentence (reporting), to write a sentence that produces a given label (explicit control), or to shift its activations toward a label on a sentence it did not write (implicit control). Models: Llama 3 and Qwen 2.5 instruction-tuned models from 1B to 70B.

StageWhat the paper reports
MeasurandMetacognition as the ability to report or control first-order task representations, with activations along chosen directions standing in for those representations. The paper does not aim to settle metacognition in its full philosophical sense.
ProcedurePrompt templates are given, with neutral user messages so the prompt cannot reveal the target direction. The grid covers layer, number of examples, direction, model and dataset, with 100 runs per control setting and counterbalanced labels.
Instrument and indicationReporting: a binary label read from the logit difference between “1” and “0”, without generation. Control: the projection of the sentence’s mean activation onto the target direction. Whether the reporting prompt changes the activation being reported is not discussed.
Measurement modelReporting is scored by accuracy and cross-entropy; median splitting makes the labels balanced. Control is scored by Cohen’s d between the two imitation targets. No bias-free sensitivity statistic is reported for reporting.
CalibrationThe standard for each trial is the label computed from the model’s own activations. A logistic regression on all activations serves as an ideal observer, an upper bound for reporting. Code and prompts are released.
UncertaintyLayer, number of examples, direction, model size and family, dataset and label granularity are varied. Results change with direction, layer, task and model family.
ComparabilityThe ideal observer reads the same labels from the activations. No other model, and no classifier on the text, predicts the same labels.
Validity conditionsInstruction-tuned Llama 3 and Qwen 2.5 models on four datasets. The authors argue that neurofeedback, unlike activation patching, keeps activations in their normal range.
  1. Datasets. The commonsense morality subset of ETHICS, with replications on True-False, Emotion and a Sycophancy dataset; 600 sentences fit the directions and 600 are used in the experiments.
  2. Directions. At each layer, a logistic-regression direction that predicts the dataset label, and principal-component directions of decreasing variance.
  3. Labels. Sentence activations are averaged, projected onto the direction and split at the median.
  4. Prompt. A dialogue with N examples, each a neutral user message and an assistant sentence tagged with its score, described to the model as the activation of its brain.
  5. Reporting. A new sentence is placed in the next turn, and the label is read from the logits.
  6. Control. The model is told to imitate label 0 or 1, either writing the sentence itself or given a dataset sentence, and its activations are projected onto the direction.
  7. Grid. Five layers, N from 0 to 256, and eight directions, 100 runs each.
  8. Ideal observer. Logistic regression on all activations predicts each label.
  • Reporting is significantly worse than the ideal observer, which is much higher than the models’ performance. The figures show the direction of effects; the text gives no accuracy values.
  • Reporting along the logistic-regression direction rises and plateaus above reporting along principal components, and earlier components are reported more accurately.
  • Implicit control follows the same pattern as explicit control but is much smaller, and near zero in early layers.
  • Control is stronger when explicit, stronger in Llama than Qwen at matched depth and size, and grows in deeper layers and larger models.
  • Control has off-target effects on other directions. It is precise for principal components 1–32 and not for 128–512, which the authors read as a controllable space of 32 to 128 dimensions.
  • The paper concludes that models can monitor only a small subset of their activations.
  • Aoki et al. 2026, In-Context Neurofeedback, argue that the control experiments do not ensure privileged access, because a model can succeed by writing text whose surface features match the label. Fixing the output sentence, they find a significant effect in 45 of 120 settings, all small. They test control only.
  • Cites Binder et al. 2025 and Kadavath et al. 2022 as behavioral studies that correlations in training data could confound.
  • Hahami et al. 2025 and Ackerman 2025 cite it.