notes

status: exploratory and probably confused

metacognition is thinking about thinking, or knowing about cognitive processes, or being self-reflective. for humans, it’s considered necessary to become smart. on paper, ais don’t have to be competent at metacognition to become very smart, but it could definitely prove useful.

the closest forms of metacognition we’ve seen in ai has come from llms.

latent introspection

an important subtype of metacognition that llms can exhibit is introspection, i.e. limited-domain, fairly weak latent introspective capabilities. this has been primarily observed through models that can latently identify concept activation vectors applied to the residual stream at certain layers. really small models can do this task too. you can train models to identify concept vectors, which strongly generalizes. i also found a writeup about how rlhf impacts latent introspection.

how and why does this capability even exist though? one plausible explanation is mentioned in Lindsey’s work:

We also tested some base pretrained models on the same task. We found that they generally have a fairly high false positive rate, and none of them achieve greater-than-zero net task performance, indicating that post-training is key to eliciting strong introspective awareness.

…

This capability may have emerged to enable the model to develop a basic theory of mind of characters referenced in pretraining data, and the Assistant character during post-training. Modeling the mental states of characters is generally useful to being able to predict their behavior, and being able to explicitly report these mental states could allow the model to predict a character’s own self-reported thoughts.

this state modelling objective is similar to truesight; forming latent knowledge about entities (knowledge of the type of person that produced the text) mentioned in training data helps optimize CE loss.

the work on emotion concept vectors offers a similar explanation:

To predict the behavior of people in these documents effectively, representing their emotional states is likely helpful, as predicting what a person will say or do next often requires understanding their emotional state.

…

Even if AI developers do not intentionally train the LLM to represent the Assistant as exhibiting emotional behaviors, it may do so regardless, generalizing from its knowledge of humans and anthropomorphic characters that it learned during pretraining.

(this work confirms latent introspection is mediated by post-training, and refusal mechanisms allow for stronger introspection. this could be another example of a latent representation being reused by a different training stage)

being able to infer things about the activation-space seems like an important step towards general-purpose introspection, which is likely an important part of metacognition; more specifically, human-like metacognitive skills. the implications of this will be greater than previous observed self awareness like behavioral self-awareness or eval awareness1

takeaways

what does this have to do with metacognition?

metacognitive skills should primarily come out of getting models to form lots of relevant latent knowledge and capabilities, and actively exploit latent and internal states.

ive thought of some ways these skills could come about in language models. didn’t think particularly hard about them

exc-metacognitive things

these might be the type of approaches that get closer to really good performance on tasks that can at least be concretely validated. stuff like fully automated interpretability research. because i think metacognitive skills will come from basically eliciting latent knowledge, any of the three points are plausible to me:

stuff to do

what’s being measured?

in typical language models, try different mostly-unsupervised techniques to find steerable, out-of-distribution capabilities. the assumption is that there is a large chunk of latent capabilities that go completely unused

one good outcome would be to discover a chunk of introspective capabilities that intervene, and allow us to intervene, on how models predict certain variables from activation-space. there are surely limitations im not aware of, but given accuracy at reporting presence of concept vectors, and ability to steer to elicit/amplify capabilities (including introspective ones!)2, there might be more latent capabilities hiding underneath the surface. this might include stuff like: predicting inference hyperparameters, probability of $n$th most likely token, correctness

another good outcome would be that there are generic mechanisms for “model introspection,” so any search that tries to look for introspective capabilities can be narrowed significantly

some ideas involve SAE decompositions as a basis. there’s good reason to believe that SAEs can help discover interpretable latent capabilites and attribute elicited capabilities to inputs, but they could be unhelpful for ood/weird capabilities. replace SAEs with transcoders wherever necessary

i refer to MELBO based on its original objective, but deep causal transcoding could be much better, especially as DCTs seem to focus more on feature interactions. it might make intervening on the loss function a bit harder to do things like produce similar features across models, but it would still make sense to interpret elicited latent representations post-hoc with SAEs and such. replace MELBO with DCT/DCTs wherever necessary

for models trained with latent reasoning techniques, it’s natural to assume that latent reasoning can elicit otherwise latent capabilities; so try testing this assumption

capability elicitation with little/no supervision

explaining weird capabilities

techniques like MELBO could produce optimal vectors that cannot be practically explained. for example, the discovered behavior is formed from an extremely small subset of the training distribution, and it’s hard to tell if it’s a capability

here’s another rough sketch for a method to explain vectors

  1. find inputs that produce base-SAE feature activations similar to the vector’s feature activations; for example, starting from top-activating examples for every feature and using some perturbation/search process to find optimal inputs
  2. finetune the model using optimized inputs and labels produced by the steered model
  3. hope it all generalizes4, and the finetuned model can verbalize its newly elicited behaviors (either by behavioral self-awareness or by introspection adapters)

i later noticed this sketch is a little similar to low probability estimation, and have written out some other ideas which hopefully don’t skew crackpotty

some combination of optimizing on SAE feature similarity and text-to-activation reconstruction could make this technique more useful

overall, even being able to distinguish capability-eliciting vectors from behavior-eliciting vectors would be useful (and hopefully such a technique could fit into the vector optimization process)

elicitation performance between finetuning and learned vectors

it’s uncontroversial that pre-training builds new knowledge while post-training elicits it. but even though there are non-trivial latent capabilities that can be elicited without finetuning2, not every capability might be easily elicted with steering vectors

if you know that a capability can be elicited through finetuning, but learned vectors fail or only weakly elicit that capability:

latent reasoning models

so what’s the theory of change

much of this text is motivated by the (fairly quiet relative to the rest of safety imv) goal of anti-slop training, to incorporate stronger decision making skills and epistemics (to lead to strategic competence hopefully) – which is possibly just an elicitation problem, as the methods i’ve tried describing assume. this way of going about things could be totally screwed though, maybe because the methods are just a bunch of patchwork, or we are very confused about the true ontology of ais, or the problem of finding the true structure of metacognition is actually just downstream of natural latents, though trying to incorporate good epistemic and decision-making skills into LLMs might be a different/simpler problem than for any arbitrary system. you can orient around the (extremely simplified) dream that metacognitive skills might just be a pile of heuristics once learned reasonably well over tons of internet text, which would be cool, but it’s probably underdetermined given the signs of metacognitive skills in LLMs now. maybe it has to do with motivations

  1. im confident that eval awareness is happening for more mundane reasons than introspection ↩

  2. Mechanisms of Introspective Awareness, Instruct Vectors, Trained steering vectors may work as activation oracles ↩ ↩2

  3. it could be that oracles with true vectors have similar change as noise vectors ↩

  4. the inputs may not need to directly correspond to labels, if the input strings approximate the SAE features or some other basic interpretable unit ↩