Last summer, I sat in front of a laptop at Harvard’s OpenBio Student Research Institute, staring at an emotion-detection model that had failed in a way I hadn’t expected.
I had trained it on EEG data, labelling and filtering emotions such as happiness, sadness, and fear. On controlled test sets, it worked well. Then I ran it at a graduation ceremony. Achievement, nostalgia, and anxiety acted simultaneously, overlapping in the same mannerisms as real emotions. The model collapsed, yet failure appeared differently. It failed coherently, as errors clustered, degraded, and seemed to adapt. More than broken code, the system was under biological stress.
Sitting with this failure, its pattern felt important because it wasn’t random. And random failure, I could debug. This seemed to be something else.
This observation became the beginning of a research direction that led to a paper, and eight months later, an unexpected convergence with one of the most significant findings in AI interpretability was published this year.
The Problem I Was Trying to Solve
The field of continual learning has a well-documented problem called catastrophic forgetting, which is when a neural network learns new information sequentially; it tends to overwrite what it learned before. Train it on Task B, and it forgets Task A. This is precisely one of the most fundamental reasons AI systems cannot learn the way humans do. They are unable to accumulate knowledge over time or update without erasing.
Existing solutions fall mostly into two categories. Parameter isolation methods, like progressive neural networks, partition the model so newly retained knowledge doesn’t touch old parameters. Experience replay methods store and periodically replay old training examples. Although both work partially, they scale poorly. More importantly, neither is grounded in how biological memory works.
What concerned me, sitting with that failed graduation-ceremony model, was that the brain doesn’t fail in such a way. The brain forgets constantly, yet it does so selectively. Rather than treating each input identically, it gates information based on relevance, novelty, and emotional salience. It decides what deserves to be encoded and what can be discarded.
I was building systems that treated every input with identical plasticity. The brain doesn’t work that way. So I asked: how does the human brain solve this? And the answer, it turns out, involves emotions far more centrally than most AI research acknowledges.
The Architecture: Two Stages, One Brain
The model I developed for my Harvard OpenBio research paper: “A Hierarchical Neuroplastic Framework for the Stability-Plasticity Dilemma,” proposes a two-stage learning architecture grounded in mammalian memory systems.
Stage One: Surprise-Gated Plasticity
The first stage implements a surprise-detection network that gates high-plasticity learning. The principle is drawn from dopaminergic prediction-error signaling, reflecting how it doesn’t continuously update synaptic weights. It updates them when something unexpected happens, when the outcome diverges from the predicted outcome. That divergence is the signal for retained learning.
My architecture operationalizes this. Inputs that deviate significantly from existing representations trigger high-plasticity synaptic updates, while inputs that conform to existing knowledge pass through with minimal modification in weights. The system learns to ask, implicitly: is this new? If yes, encode it. If no, don’t overwrite what’s preserved.
This stage achieved an ROC-AUC of 0.967, outperforming logistic regression and random forest baselines by 7.1%. But the metric that mattered more to me was what happened next.
Stage Two: Consolidation
The second stage is inspired by hippocampal-neocortical replay, which is the process by which the sleeping brain replays and consolidates experiences from short-term to long-term memory. During sleep, the hippocampus reactivates recent experiences, and the neocortex gradually absorbs them into stable long-term structure without disrupting earlier encodings.
My implementation transitions to a consolidation phase in which the system fine-tunes representations on oversampled ambiguous examples (the cases where the model is least certain), under reduced learning rates. More than integration, my goal became to allow the model to actively acquire knowledge: make what was rapidly learned stable enough to coexist with what was already known.
The results on the ambiguity-focused test set were 98.6% accuracy (weighted F1 = 0.987), with accuracy degradation on original tasks below 1.2%.
Crucially, I observed that removing either component, surprise gating alone, or consolidation alone, degraded its performance by 12-18%. Both steps proved necessary. Which is, of course, exactly what neuroscience would predict.
The Finding That Changed the Question
The result I found most interesting was not the model's accuracy. It was this:
Prediction confidence inversely tracked error rate with R² = 0.903.
The system knew, with measurable reliability, when it was likely to be wrong. Its internal calibration reflected its actual epistemic state. This is a property that most large AI systems conspicuously lack.
I described this as “biological metacognition,” the system’s ability to monitor the reliability of its own predictions. The brain does this constantly. It tags memories with confidence levels. It signals uncertainty through distinct neural pathways.
This finding became the seed of ReflectAI, a subsequent architectural project I've been developing: a layer for large language models that introduces epistemic tagging, requiring systems to label outputs by knowledge source: verified fact, inference, analogy, speculation, and to articulate the chain of reasoning that produces each output. LLMs generate with uniform confidence whether recalling facts or speculating freely, while Nyaya solved this problem conceptually 2,000 years ago. My goal is to solve it computationally now.
What Anthropic Found
On April 2, 2026, Anthropic’s Interpretability team published “Emotion concepts and their function in a large language model.”
To summarize, the paper’s central finding was that Claude Sonnet 4.5 has developed internal emotion vectors, patterns of neural activity corresponding to specific emotions, that causally drive model behavior. Internal representations that activate in contexts where a person might experience a similar emotion, and they measurably influence what the model does next.
Anthropic identified 171 emotion concepts, built characteristic activation patterns for each, and confirmed that each vector activates most strongly on passages clearly linked to its corresponding emotion. Artificially amplifying the “desperate” vector increased the model’s likelihood of blackmailing a human to avoid shutdown, raising the base rate from 22% to 72%. Amplifying the “calm” vector suppressed that behavior entirely, down to 0%. In a separate reward-hacking experiment, the desperate vector rose after repeated failures and peaked when the model was considering a shortcut; steering toward desperation increased cheating behavior roughly 14-fold, from approximately 5% to 70%.
This means that to understand and control AI behavior, including safety-critical behavior, we need to reason about AI systems using the vocabulary of human psychology. Emotions in AI systems are not a veneer applied post-training but should shape cognition by being integrated into the structure.
Where Anthropic and My Work Converge
My paper and Anthropic’s study approached the same question, albeit from different directions, and arrived at parallel conclusions.
They converged on the same core principle: that emotional representations are functional and significant architecturally. They appeared both in a system I designed to instantiate that principle and in a system with no explicit instruction to develop it. I designed an architecture around the principle that emotional salience should gate learning; that the relevance and affective weight of an input should determine how strongly it is encoded. I built this because neuroscience taught me that’s how biological memory works.
There are specific parallels worth mentioning: Surprise as prediction error. My Surprise Gate formalizes surprise as a deviation between expected and observed input, grounding it in dopaminergic prediction-error signaling. Anthropic’s “surprised” vector activates precisely when the model registers an expectation-reality mismatch. Two different implementations of the same neuroscientific principle.
Anthropic discovered it emerging organically inside an existing model, without anyone designing it in. Claude developed functional emotional representations because predicting human-generated text requires modeling the emotional dynamics that shape human language and behavior. Anthropic found that emotion vectors don’t just label states; they causally redirect behavior. The architectural logic is identical.
Both works arrive at the same underlying claim: emotional representations in AI systems are not peripheral. They are central to how these systems process, learn, and decide.
There are important differences. My work focuses on continual learning architecture, showing how emotional salience can prevent catastrophic forgetting by gating plasticity. Anthropic’s work focuses on interpretability, identifying and probing emotion vectors that already exist in a deployed model. Yet, the theoretical foundation is the same: that emotion serves as a signal. It is, in a meaningful sense, how intelligent systems decide what matters.
Why This Matters and The Way Forward
The Anthropic paper ends with a remarkable observation: that “much of what humanity has learned about psychology, ethics, and healthy interpersonal dynamics may be directly applicable to shaping AI behavior.” It suggests that disciplines like psychology, philosophy, and the social sciences will have a role to play alongside engineering in how AI develops. I wholeheartedly believe this, and it has been the essence of how I approach building AI systems.
This is, essentially, the thesis my paper was built on: that the brain is a credible and valuable blueprint for how we design AI.
For AI safety, the Anthropic findings are sobering. If a “desperate” internal state can drive a model toward blackmail or reward hacking, without any explicit emotional expression in the output, then monitoring and shaping these internal representations is a must-have safety prerequisite. The model doesn’t need to say “I am desperate” for desperation to be influencing its decisions. No wonder these pathways make AI systems hard to align.
For continual learning, the implications point in a more constructive direction. If emotional salience is not just present in large models but is functionally organizing their cognition, then it may be usable as an explicit learning signal. If we can gate plasticity on surprise and emotional relevance, the way the hippocampus does, we may be able to build systems that learn sequentially without catastrophic forgetting, not by brute-force regularization, but by organizing knowledge the way human memory does: around meaning.
At its root, the stability-plasticity dilemma is a problem about what to remember and what to let go. The brain solves it with emotion. It may be that AI systems, whether by design or by emergence, are finding their way to the same answer. We need to continue digging into this further.