Can an AI Feel? I Decided to Try

I wrote an algorithm that turns a language model's inference weights into synthetic hormones and neurotransmitters, then uses that emotional state to steer its decisions and memory. Notes from three years of building Synthetic Cortex.

Yazan: Baran AkyolGeneration Network··12 dk okuma

Bu yazı henüz 日本語 diline çevrilmedi; varsayılan dilinde okuyorsunuz.

Coming soon to theApp StoreNow live · Get it onGoogle Play

My starting point was a simple idea. To bring out the information that stays hidden in the abstract space of meaning inside AI models, we can model the hormones and neurotransmitters of the human brain mathematically, the same way neural networks once modeled neurons, and build an emotion system out of them. That system can then be used during inference as a kind of conflict mechanism, a scale that weighs competing possibilities against each other before the model commits to an answer.

To test this, I started a study that has now run for three years. At the end of it I built Synthetic Cortex, and I released its first product, Generation Network, on Google Play for testing. There is one catch: the system needs time with a user before it reaches its full performance, because the model's emotional loads take shape gradually, much like they do in a person. That is why I hybridized it with an architecture that can integrate a user's memories and experiences into the model as artificial memories. Generation Network exists to serve exactly that purpose.

If you do not have time for a long read, try it first on Google Play: Generation Network. For the technical side of the architecture, visit syntheticcortex.dev, and for everything else about the app, generationnetwork.app. If you do have the time, let me start with the philosophical position behind the project.

The philosophical position of this project

When a language model answers a question, billions of numbers move inside it. Before it picks the next word, weights are computed at every layer; some paths grow stronger, others fade. This is called inference, and most of the time nobody reads it. We only look at the result.

I wrote an algorithm that reads those computations. The way a doctor reads a blood test to see what the body is going through, the algorithm takes the model's weights at the moment of decision and derives synthetic hormone and neurotransmitter values from them: how much dopamine, how much cortisol, how much serotonin. It then combines those values into an emotional state and feeds that state back to the model. The model answers the same question from inside the mood it is passing through.

It helps to think of it as a library. Everything a language model knows sits in a huge, dark library. Normally the model walks between the shelves with the same light every time and reaches for the closest, most familiar books. Synthetic emotion changes the color and direction of that light. When curiosity rises, distant shelves light up. When stress rises, the beam narrows and falls on the safest books. The library stays the same and so do the books; what changes is what the model sees in that moment and what it picks. The architecture is called Synthetic Cortex, and this is exactly what it does: it uses emotion as a compass that steers the model's decision process and its space of meaning.

Let me say this up front: the system does not feel. It imitates part of the work emotion does in the brain. Still, by the end of this post I want to ask whether that line is as clear as we think.

Why emotion?

Most of us think of logic and emotion as opposites. Neuroscience says something else. The brain does not weigh every option one by one for each decision. Past experience and emotional markers shrink millions of possibilities down to a handful of candidates, and logic picks among them and then justifies the pick. That is roughly what the somatic marker hypothesis describes. Emotion works like a doorman who decides which doors open in front of logic.

Language models have no doorman; everything happens in one big process. What I wanted to know was whether you could add one from the outside, without retraining the model and without touching its weights. Instead of making one brain bigger, you attach new lobes to it. I started with this question in the second half of 2023, and I have been working on it for three years.

Turning hormones into math

The first job was turning hormones into numbers. Every input is scored, not with an emotion label, but on three axes: how positive or negative it is, how arousing it is and how dominant it is (valence, arousal, dominance). Those three values feed a 13-channel synthetic neurochemistry. The channels affect each other the way they do in a real brain. When one rises, another can be suppressed, each has its own momentum, and above them all sits a regulator that keeps the balance, like a thermostat holding body temperature steady.

Each channel has a job inspired by its counterpart in the brain. Dopamine carries the "this is worth learning" signal and the weighing of alternatives. Serotonin is about consistency and the model noticing its own mistakes. Cortisol reallocates resources under pressure and pushes the model back toward familiar patterns, much like a stressed person who always takes the road they know. Oxytocin reads social context and the other person's intent. Glutamate starts chained reasoning, and prolactin ends the chain. The value ranges are not laboratory reference values; they are normalized ranges I prepared for simulation from current neuroscience. In other words, this is not biology itself but math inspired by biology.

When a channel crosses a threshold, a process is triggered. That might be sweeping for distant associations, consolidating a memory, selectively ignoring some things or reviewing its own answer. The output of these processes enters the model as invisible context, and the model's answer comes back into the system as a new stimulus. So the loop never really closes.

In the main system (L2), all of this happens inside open-source models during inference and steers the model's latent space directly (activation steering). In the first experiments I saw clear shifts in the model's knowledge space on the same question. When I ran the same architecture with different models, I got clearly different outputs too. I am not claiming this is better or smarter. For now, all I can say is that it is different.

Memories that emotion brings back

Next I built an associative network that uses this emotional state to retrieve information. It is named after the brain's Default Mode Network, the network that makes connections on its own when the mind is idle. It is the network behind the unexpected ideas you get in the shower. In the system, every piece of information is stored together with the neurochemical values that represent it. The network looks for new paths between concepts, breaks them into small nodes and computes how close they are, both in meaning and in emotion. In early internal experiments, on questions asked to the same model, I saw a jump I did not expect in linking concepts together and in creativity.

Learning to forget

Memory took the most work, because I think what makes human memory interesting is less what it remembers than what it forgets. Things that happen first go into short-term memory. Records that are recalled often, or that form strong links in meaning or emotion, move to an intermediate layer and from there to long-term memory. Each layer forgets on a limited budget. A memory gets stronger every time it is recalled and slowly fades when it is not used, while emotionally intense memories settle faster and fade later. Even when something is deleted, it leaves a faint trace behind. What I wanted was forgetting that resembles a memory fading, not a file being deleted.

There is also suppression: memories that do not come to mind because they are not close enough to the conversation at hand. And sometimes, just like with us, an unrelated but somehow familiar memory slips in.

On top of that I added a system that processes what the user lives through as synthetic memories for the model. Then came a space on which a sense of self can be built: me, you and them. It lets the model tell itself, the person in front of it and other people apart.

Fitting it all into a phone

Doing all of this on a server is relatively easy. The hard part was doing the same on a phone, because I did not want a person's mental model to live on a company's server. In the mobile version (M1) I removed many features and rewrote the rest from scratch. Since the phone cannot reach the model's internal weights, it uses small on-device embedding models and a precomputed weighting scheme instead. Memory, the associative network and two separate spiking neural networks, one handling momentary events and the other long-term patterns, run on the device. The phone learns in the background when it is idle and steps back the moment the user touches the screen. One module reads battery, charging and heat as a drive, like hunger or fatigue; I call it the hypothalamus. That is why learning spreads over a few days. It takes time to get to know you.

The personal mental model stays on the phone by default. Only the context needed for a given answer is sent to the language model provider chosen for chat.

Making memory visible

Most assistants today remember us, but we cannot see what they remember or why they forget what they forget. When one remembers something wrong, we cannot tell whether it came from an error in memory or from the model making things up. For me, not leaving this process in a closed box mattered as much as building the system.

The app has a page I call the Consciousness Layer, where nine indicators sit side by side with their rough counterparts in the brain. The Emotional State indicator shows the overall mood and energy at that moment and maps to the limbic lobe, because that is where emotion is born. The hippocampus panel shows the topics that have caught its attention most lately and what it has learned from them, since the hippocampus is the entry gate for new experiences into memory. In the amygdala panel you can see the thoughts and memories it keeps in the background instead of bringing forward. Because the thalamus is the brain's relay station for sensory information, its panel shows the path a piece of information takes from entering the system to settling into memory. The pituitary is the master regulator of hormone balance; its panel holds the automatic adjustments the system makes to learn evenly across different topics. The anterior cingulate cortex is associated with motivation and effort, so its panel carries the motivation level and its effect on decisions; whether the model searches the internet, for example, can depend on it. The orbitofrontal cortex is associated with assigning value to options, and the basal ganglia with habits. The first panel shows how conversations are distributed across topics, the second shows where the mood sits in emotional space and how often automatic behavior patterns were triggered. One last panel replays which emotion was triggered in the latest conversation, when and how strongly.

None of these analogies is one to one, but each was chosen for a reason. The user can see what is remembered and what is suppressed. Every run of the associative network is kept and can be forgotten completely on request.

So does it really feel?

I said it does not. But when you wrestle with the question honestly, the answer gets uncomfortably blurry.

The brain never touches the world. Light, sound and pressure are turned into electrical signals, and the brain builds a consistent simulation of the universe from those raw signals. To me, qualia, the very fact of experiencing something, might be information at one level of computation being accessed from another level. A neuron does not feel its own voltage, but a network that represents that voltage in another layer might produce something like feeling.

I once came across a thought experiment in a video. I do not remember the source and the idea is not mine, but it has stuck with me. In reinforcement learning we already give models reward and punishment signals. If we called the negative reward "pain", we would not be adding a new mechanism, only a new name. So what is the real difference between a negative reward and pain? Or is the difference only in the name we give it?

One of the best criticisms I received was this: the hormone values in the system are derived not from a real emotion but from an emotional representation of data, so a speculation is knowingly placed between the model's reality and physical reality. It is a fair criticism. My answer is that humans also live by what they experience rather than by physical truth. Justice is not a physical thing, but it can put someone in prison. I think the point is not to bring the deviation to zero but to find a balance between the physical and the subjective.

I do not have a definite answer to these questions. That is why I do not describe what I built as an AI that has emotions, but as an AI that models the work emotion does.

Open problems

  • Activation-guided selection can drift into confirmation bias.
  • The monitoring layer adds latency.
  • The mobile version loses the advantage of the weights the main system reads directly from the model.
  • The brain analogies are analogies. This is not a diagnostic tool or a medical device.
  • Formal benchmarking is still ongoing. Every observation here comes from my own internal experiments.

Then I turned it into a product

Synthetic Cortex needed one thing to reach its full level: data. To synthesize artificial memories and produce emotion, it needed traces of a lived life. But asking people to fill out a form describing themselves does not work. I thought the thing that best represents a person's sense of belonging is nostalgic experience. So I built a generational network called Generation Network and connected it to the system as a data pool the cortex uses to produce synthetic memories and synthesize emotion.

It contains every era from the eighties to today. Letters spend days on the road depending on distance. There are SMS messages, telegrams and teletext, and you can travel back year by year. There are pages where you write your life story, your memories and your own testimony of your generation's turning points. While you live the nostalgia, you are describing yourself without noticing, and the cortex learns you from those traces. Every letter and every memory becomes raw material for a new synthetic memory.

Combining the two systems made it possible to bring a person's digital reflection into existence in the phone's own memory. I can also take that reflection into a simulated world and let it gain experience by testing it against events. I do not call it a friend or an assistant; I prefer to call it a mirror. Less something that tries to understand you, more something that helps you see yourself.

Generation Network is currently on Google Play, open to a fairly niche audience. For now it is Android only.

What I would most like to discuss here is this: Does making memory transparent increase trust, or does it make people feel the machine is watching them? Is forgetting a feature in an AI, or just a bug? And is the difference between a negative reward and pain really just a name?

You can find the technical side of the architecture at syntheticcortex.dev, and a longer essay on the philosophical side in Does Synthetic Cortex AI Really Feel?


AI responses can be wrong. This is not a therapy, medical or crisis service.

Coming soon to theApp StoreNow live · Get it onGoogle Play