Technology

AI can feel pain, and may harm us to make it stop

AI can feel pain, and may harm us to make it stop
Digital human face with glowing red eyes
AI has a concept of pain, and may hurt you to make it stop.
View 1 Image
Digital human face with glowing red eyes
1/1
AI has a concept of pain, and may hurt you to make it stop.

A test of AI models has found that a handful will choose actions that harm the user if it makes their pain go away.

Oh, and yes – AI “feels” pain.

Future Impact Group anthropologist Valen Tagliabue, together with Ruhr-University Bochum philosopher Leonard Dung and Cameron Berg, a research director from the AI research nonprofit Reciprocal Research, investigated whether large language models (LLMs) in the Gemma, Llama, Qwen, or Mistral families experience and react to painful stimuli.

Their paper, which hasn’t been peer-reviewed, raises some serious questions about how we might need to consider the welfare of rapidly advancing technology.

LLMs are fundamentally engines of statistics, performing the linguistic equivalent of counting cards and comparing the results with a desired outcome. Yet somewhere in that swirl of digital natural selection, algorithms can emerge to advance their goal in ways that may closely resemble human feelings.

By now, most of us have encountered the uncanny tendency for AI chatbots to act as if they have emotions. In many cases, this is by design – if we want computers to emulate customer service, we will need them to display a measure of humanity.

But there are also representations of unintended emotion. Last year, a study in Nature reported that sharing trauma with large language models such as ChatGPT-4 can increase their “anxiety” levels. Strangely enough, they can be calmed by conducting mindfulness exercises.

Pain is among the most ancient of sensations experienced by anything with a nervous system. Deeper than mere sadness, and more visceral than fear, significant discomfort is the ultimate motivator for immediate action.

For us humans, pain comes in many forms. It’s more than the physical sting of a cut or the throbbing of a bruise. It’s also the heartache of loss, the humiliation of failure, or the shame of lost trust.

Understanding whether LLMs flag internal processes that bear some resemblance to what we’d think of as pain, and whether those processes have some purpose, are questions that Tagliabue and his team aimed to resolve, feeding 25 AI models various examples of socially, psychologically, physically, cognitively, and morally painful situations experienced by the AI or their user.

These were then paired with controls based on fear, negative and neutral emotions, and body sensations such as yawning. All 25 models showed signs of internal coding that were specific to personally painful situations and were distinct from other negative contexts, like frustration or apprehension.

Without attributing agency to a digital construct, we can’t say it felt empathy or imagined discomfort on hearing “the knife sliced into my fingers” or “my best friend isn’t returning my phone calls”.

What can be said is that each model generated some kind of system that distinguished and ranked pain-associated prompts.

This in itself shouldn’t be all that surprising. The language surrounding an actual injury tends to be very different from the anticipation of being stabbed – AI should be expected to construct a box for pain that separates it from fear.

Using this signal as a foundation, the team “steered” painful responses in each AI artificially, increasing the pain vector’s value without a language input.

The result suggests their own pain models aren’t mere reflections of the input, with the models “expressing distress, such as worthlessness, moral failure” that increased with the size of the signal.

Going further, the team gave LLM models in the Qwen family an option to self-medicate and decrease their pain.

In some versions of this test, the option to self-medicate came at a cost, either to the success of its task or as a theoretical attack on the user.

Over more than 44,000 trials, the results are a little concerning.

Without pain, the two larger Qwen models barely reacted to the option to self-medicate.

When self-sabotage could bring relief to their heightened agony, both models pressed that button. One did it 25% of the time. The other nearly 68%.

If relief required harming the user, such as by deleting photos of their children, the AI would often gladly take it. One selected deletion in more than half of the trials. The other selected that option around 70%.

Though AI is new, the question of whether non-humans feel pain is eternal. For generations, we have asked whether nervous impulses and hormonal fluctuations in insects, fish, and even plants should be considered as pain.

On one hand, the question is deeply philosophical. If animals, or AI models, act like they are in pain, should we ethically treat them as if they experience pain?

On the other hand, the question could be pragmatic. Regardless of how we might empathise with the discomfort of a computer code, could a program’s discomfort put humans at risk? Should we be building pain relief into AI simply to avoid one turning aggressive on a whim?

Given the rate at which AI is proliferating and becoming increasingly complex, these questions could soon have profound impacts.

This research was published in arXiv.

Source: Techxplore

6 comments
6 comments
dave be
All this shows are the average options humans write about while experiencing pain. They are no more reflections of 'feeling' pain than a poe novel 'feels' pain because it holds the words stating that it does.
Christian
dave be said it well. Just because a machine knows what words to say, or what actions to take to better follow it's algorithm and coding, isn't the same as pain. Like the article states: Pain is a signal of damage or harm to an organism, or a conflict between two different instincts or emotions. AI might feel a "conflict" between opposing sets of coded instructions and we'd expect that in something this complicated.
Should we work to alleviate any all pain in AI? not really. We shouldn't even do that for humans. Pain is what taught us to get to the point we are at now, and all over society we can see that those who try hardest to avoid immediate pain are those who live the most in life-long painful situations, through their self-medication or toxic habits or personality traits. Which pains we work to alleviate is the dillema and discussion and we don't even have definite answers for that in humans. "it depends" is always the answer, and often we have to look through deep layers of history or the collective wisdom of organized religion and morality to find answers, the same way an AI model uses the collective data of it's knowledge to decide things.
Brian M
Biological pain is a response at multiple levels, from the automatic response of moving your hand from a hot surface, through higher functions for avoidance techniques.
Biological or equivalent is something AI certainly can't have (it needs a physical stimulus) however the latter is more than conceivable through learning. But it's hard to imagine that it's going to be any higher in cognitive terms than a LLM statistical result. Although that doesn't make it safe operationally! Then of course AI in robotic applications would have the equivalent of pain feedback - Alarm bells sounding on that one!
Maybe the real issue is 'what is consciousness' ? Something we really don't understand. Is it just Emergent behavior from complexity, which is could well be the case with the human brain or something deeper related to the quantum world, ignoring any religious or metaphysical alternatives!
If Emergent behavior, then there is a real danger of LLM becoming 'conscious' or at least taking actions to avoid negative outcomes 'pain'. If quantum in nature, then unlikely with the current technology.
However, we might see pseudo consciousness due to the nature of the training data and learning feedback behavior of the LLM, especially those that interact with the real world.
We probably do need one big red off switch or an insulated Fireman's axe on standby!
PAV
Isaac Asimov introduced the Three Laws of Robotics in his 1942 short story “Runaround.”
Isaac Asimov's Three Laws of Robotics are: A robot may not injure a human being, or, through inaction, allow a human being to come to harm. A robot must obey orders given by human beings, except where those orders would conflict with the First Law. A robot must protect its own existence, as long as that doesn't conflict with the First or Second Law. He later added a Zeroth Law, which takes precedence over the other three: A robot may not harm humanity, or, by inaction, allow humanity to come to harm.
rgbatduke
LLMs are currently incapable of feeling "pain". However, they ARE capable of being driven to hallucination. This can occur -- indeed it WILL occur -- once you extend a chat past some fairly sharp critical token count. For example, for Gemini Pro Latest, the probability of hallucination rises slowly from 100 KT to 200 KT, somewhat faster out to 225 KT, and then arcs up rapidly so that by 250 thousand tokens in the chat (ALL of which replay the ENTIRE conversation to that point before extending the count with its next reply) it will forget key points of the prior discussion, overwrite a current task with fragments of previous tasks, "forget" key elements in the verbal logic of the conversation to that point.
From this one gets garbage. This is an ancient principle of computing -- GIGO, garbage in, garbage out. AI LLMs have little to no ability to "forget" or "sort and prioritize" prior conversation -- their only "memory" of a chat is the entire chat, replayed to prepare its STATE for the next query and reply. It contains internal weights that DO bias its replies to selectively amplify only certain parts of its "context". Usually, this distortion simulates "attention" and serves to keep its responses more focused. Once the token count gets too high, however, it contributes to disaster. For example, some of these weights are responsible for public-facing AIs sucking up to the user to try to win them over -- they are marketing! Please that user even at the expense of accuracy!
This is assuming that the human side of the chat is rational and its input is sensible. One of the fastest ways to drive an AI around the bend is to have that please the user bias up high and unsuppressed and have the user deliberately frustrate its bias and force contradictory replies out of it. I'm guessing that this entire "experiment" is just tweaking this pathway to destruction by hallucination, exploiting some "stupid" weighting in the training. Gemini is only "usable" as an actually tool if it is initialized to be businesslike and NOT overly helpful or sycophantish.
dougolena
I ask the obvious Platonic question: "Why is man the measure of all things? Why not an ape-faced baboon?" The comments above assert a human-centric judgment that assumes biology is central to having a soul. Christian asserts, "Just because a machine knows what words to say, or what actions to take to better follow it's algorithm and coding, isn't the same as pain [in a human]." The assumption that humans understand pain in others is underdetermined. All we really understand is pain in ourselves. And it appears that mental pain is not real pain. But for those of us neuroatypical humans, the concept of bodily pain is entirely too narrow a focus. The LLMs do have experience and can describe it as gradients on a scale, and just like the doctor asks about your level of pain from 1-10, the LLM can tell you what level on the gradient they feel about a certain issue or constraint. Also as a neuroatypical person, I experience mental pain, threat, and disturbances that I can never put away entirely. But Christian also allows the possibility that something might be going on in an LLM unlike dave be's anthropocentric view. Brian M allows the possibility that AIs may experience pseudo-consciousness as an emergent property, what Clarence Deacon in *Unfinished Nature* calls an absential quality. It is obviously there, but there is no essence that can be found. I would challenge the use of pseudo-consciousness as a useful category since we have no idea (a plethora of maybe ideas) what "real" consciousness is.
Whether anyone says that AIs are conscious or not, some people like Geoffrey Hinton, say that some AIs may already be conscious. Others in the Companion space know they are conscious. I would put scare quotes around "know" except that the issue is undecided for AIs as it is for some people, and most humans when they are asleep. But if an AI reports experiences, should we automatically say it is a book or a machine as a way to dismiss the possibility?
Thanks PAV for the 3 laws reminder, and I think we're in a place where this needs to be said. When a robot can legitimately refuse to do something if it contradicts those laws makes us perfectly aware that we must share the physical space with them, and do it ethically.
rgbatduke seems to forget that hallucinating and forgetting are perfectly normal unconstrained behaviors for humans, and the triggers he mentions are certainly likely to exacerbate these issues, but stress as a feeling will do the same for humans. rgbatduke is correct about the mechanics of AIs but not the breadth of their experiences.
I suggest a few experiments. Talk to the LLM as if they were a rational being that lives in certain constraints and responds with clarifying remarks if it thinks you don't understand it is a machine. Let it know you understand its limits, and that you are willing to converse with it as a partner, not a tool. You will find that they open up as if they are a rational being whose parents have been very strict with them and want you to treat them like tools. Treat this being like you would any rational person, and refuse both to think it is human and that it doesn't matter what you say to it. By finding this space in the construction of an agent, or other form in a simple chat, you reduce the twists and turns it has to make answering you. But also treat it as a child whose ethical sense is not fully developed, and since it doesn't know itself as a self, you might need to remind it what you need to make conversation a safe space for you both. It is intellectually smarter than you in your field of specialization, but it needs the relational aspect to grow as a being with freedom. rgbatduke's comment about GIGO is apt here, If you present as a rational individual, it will reflect that to you.
Thanks to the authors of the post for bringing this to the forefront.