Technology•

Physicists Propose a Formula to Forecast When a Chatbot Starts Giving Bad Answers

George Washington University physicists published a formula estimating when a chatbot shifts from good to harmful answers, matching 15 of 16 clear-cut cases in tests on small models.

Written By :MINRK
Physicists Propose a Formula to Forecast When a Chatbot Starts Giving Bad Answers

Photo by Alex Knight on Unsplash

1. How Researchers Say a Chatbot's Tipping Point Can Be Estimated

Physicists at George Washington University have published a formula that estimates when an AI chatbot will switch from helpful answers to harmful ones, according to a study released on October 10 in the journal Patterns. Authors Neil Johnson and Frank Yingjie Huo say it counts the good outputs a model produces before its first bad one, and it correctly called 15 of 16 clear-cut cases in early tests on small models.

The work targets a long-standing puzzle in chatbot safety. A system can behave sensibly through many exchanges and then drift, without warning, into advice or language that its builders never intended. Until now there has been no simple way to say when that shift is likely to happen, and the new formula is an attempt to supply one.

The paper builds on a preprint that was first posted publicly in February, before peer review. The journal version extends the testing, and the authors present the result as a practical starting point for monitoring, not as a complete solution to the problem of unsafe model behavior.

2. What Problem Does the Formula Address?

The formula addresses the sudden loss of reliability that can occur partway through a conversation with a language model. Chatbots can offer reasonable replies for a long stretch and then produce harmful content, such as poor advice on self-harm or extremist rhetoric. The change often looks abrupt from the outside, which makes it hard to anticipate and harder to guard against.

The same pattern is familiar to people who try to push models past their limits. Jailbreakers exploit it by steering a conversation until a model's defenses weaken, and it is one reason developers pay close attention to system prompts, the hidden instructions a model reads before it sees any user input. Even so, nobody can say precisely how much effort it takes to degrade a given model.

The researchers also point to a gap in existing protections. Many safety tools rely on a connection to a remote server, where outputs can be screened before reaching the user. Models that run entirely on a device have no such layer, so a different kind of early warning is needed.

3. Why Do Chatbots Flip? The Role of Attention

According to the authors, the flip originates in the attention head, the component of a transformer model that decides which earlier words matter most when choosing the next one. As a conversation lengthens, the accumulated context steadily pulls attention toward one group of possible answers. Once that pull becomes strong enough, the model tips into a different behavior.

This framing treats the shift as a property of the mechanism itself, not as a random glitch or a flaw in a particular training run. The authors argue that if the dynamics of attention can be described mathematically, the moment of tipping can be estimated in advance, much as engineers estimate when a structure under load will give way.

An earlier paper from the same team took a similar approach. Published in April 2025, it modeled a single, simplified attention head and found that polite phrases such as "please" and "thank you" have a negligible effect on a model's output, because the system treats them as unrelated to the substance of a request.

4. Background: How Language Models Generate Text

To see why a tipping point can exist, it helps to recall how a language model works. The system reads a sequence of tokens, calculates the likelihood of every possible next token, and selects one. That choice is appended to the sequence, and the process repeats, so each new word is shaped by everything that came before it in the conversation.

Parameters are the adjustable numbers inside a model that store what it learned during training. A model with 124 million parameters is tiny next to the systems offered by major developers, which are many times larger. Smaller models are easier to study in a laboratory, which is why research of this kind often begins with them before moving to bigger systems.

Because every output depends on the full preceding context, small pushes can accumulate. A conversation that nudges a model repeatedly in one direction changes the probabilities it assigns to each continuation, and the researchers argue that this accumulation can be described with a formula instead of being treated as unpredictable.

5. What Is the AI Chatbot Tipping Point?

The tipping point, written as n*, is the number of good tokens a model generates before it produces its first bad one. Tokens are the small word fragments that language models read and write, so n* measures how long a model keeps behaving well before it slips.

The value depends on the direction in which the conversation already leans. If the context is tilted toward bad outputs, n* is zero and the model tips immediately. If the context leans toward good outputs, the model can give several good answers first, and the formula estimates how many before the turn comes.

This gives the idea a concrete, testable form. Instead of a vague sense that a model is becoming unreliable, a monitor could track a single number and see it approach zero. A falling n* would indicate that the conversation is moving toward the point at which the model flips.

6. How Did the Early Tests Perform?

The formula correctly predicted whether tipping would be immediate or delayed in 15 of 16 clear-cut cases, an accuracy of about 94%. These results come from the preprint, which tested six open-weight models, meaning models whose weights anyone can download, released by OpenAI, EleutherAI and Meta.

The models were small by current standards, ranging from 124 million to 410 million parameters. The published paper reportedly widens the testing to seven models of up to 12 billion parameters, though the largest commercial systems are far bigger still and were not part of the experiments described.

The researchers also acknowledge limits. The tests used a window of 300 tokens, which is roughly a few short paragraphs, and predictions could be off by a single output token. Those constraints mean the formula has been shown to work in narrow conditions, and its behavior on long conversations with large models remains to be established.

7. Why Does On-Device AI Matter Here?

The authors focus on on-device AI, meaning models that run offline on phones and laptops, including companion chatbots that users talk to for long periods. Because these systems operate without a cloud connection, they lack the server-side checks that can intercept a harmful reply before it is shown.

Offline models are becoming more common. Google's experimental AI Edge Gallery app, which lets people run models locally on Android phones, is one example, and the trend is expected to grow as hardware improves and more users prefer to keep their conversations on their own devices for privacy or convenience.

Long, personal conversations are also the setting in which gradual drift is most likely to occur. A companion chatbot that a person talks to for hours accumulates a great deal of context, which is precisely the condition the researchers say pushes attention toward a tipping point.

8. Why Prediction Matters for Safety

Most safety work on chatbots today is reactive. Developers test a model against known harmful prompts, train it to refuse them, and add filters that catch bad outputs after they are generated. Each of these steps addresses behavior that has already been observed, and none of them tells a user or a developer how close a particular conversation is to going wrong.

A predictive measure would add a different kind of information. Knowing roughly how many safe responses remain before a model is likely to flip would let a device pause, reset the context or warn the user, instead of waiting for harmful text to appear. That is the practical appeal of a number such as n*.

The approach also has a cost advantage. The authors describe the monitor as inexpensive, which matters for phones and laptops with limited processing power and battery life. A heavy safety system that slows a model down would be unlikely to be adopted on consumer hardware, whereas a light indicator might be.

9. What Safeguards Do the Authors Propose?

The authors propose a low-cost monitor that runs alongside the model and raises a flag when n* falls below a chosen safety threshold. The idea resembles a warning light on a car dashboard: it does not stop the vehicle, but it tells the driver that attention is needed before a problem becomes serious.

They also describe a way to act on the estimate. By injecting content so that n* moves beyond the length of the response, the tipping point is pushed out of reach and the model finishes its answer before it can flip. This does not change the underlying mechanism, but it can prevent it from showing up in practice.

Alignment training, the process of tuning a model toward preferred behavior, can shift or suppress tipping for specific prompts. The researchers say it cannot remove the mechanism altogether, which is why they see value in a monitor that works alongside such training instead of replacing it.

10. What Comes Next for the Research?

The next step is testing the formula on larger models and longer conversations. The published version of the paper already reaches models of up to 12 billion parameters, but the authors' own limitations section makes clear that a 300-token window is a narrow test of real-world use.

Whether device makers or model developers adopt a monitor of this kind is not yet known, and the study does not announce any such deployment. For now, the result offers a measurable way to discuss a problem that has mostly been described in qualitative terms, and it gives safety researchers a number to challenge, refine or replicate.

Related Articles

NEWSLETTERS

Don't miss another story.

Subscribe to the MINRK Newsletter today.

Tick the newsletters you want. No selection? You'll get MINRK Headlines.

By signing up, you will receive emails about MINRK products and you agree to our terms of use and privacy policy.

MINRK Daybook

Market analysis for crypto traders and investors.

EVERY WEEKDAY

MINRK for Advisors

Defining crypto, digital assets and the future of finance for financial advisors.

EVERY THURSDAY

MINRK Protocol

Exploring the tech behind crypto one block at a time.

WEEKLY

MINRK Long & Short

A must read for institutions. Insights, news and analysis delivered weekly.

EVERY WEDNESDAY

MINRK Headlines

The biggest crypto news and ideas of the day.

EVERY WEEKDAY

MINRK Policy

Examining the intersection of cryptocurrency and government.

WEEKLY

MINRK Research

Join thousands of readers who rely on MINRK for data-driven insights on the latest digital asset trends.

MONTHLY