← Latest papers
🤖 machine learning

ContinuityBench: A Benchmark and Systems Study of Stateful Failover in Multi-Provider LLM Routing

This paper introduces ContinuityBench, a benchmark and stateful proxy architecture that utilizes a history-forwarding strategy to achieve near-perfect conversational continuity during multi-provider LLM failover events, addressing the critical limitation of stateless systems that discard conversation history.

Original authors: Vishal Pandey, Gopal Singh

Published 2026-07-20
📖 4 min read☕ Coffee break read

Original authors: Vishal Pandey, Gopal Singh

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are talking to a very smart, friendly voice assistant. You've been chatting for ten minutes, sharing your favorite movie, your weird dream about a flying toaster, and the secret code to your imaginary treehouse. Suddenly, the voice assistant's brain gets a little dizzy and needs to swap to a backup brain to keep talking. In the world of computer science, this is called "failover." Usually, engineers just make sure the new brain answers the question immediately. But here's the catch: the new brain has no idea who you are or what you just said. It's like if you walked into a new room, started a conversation, and the person you were talking to suddenly forgot your name and asked, "Who are you again?" You'd have to start your whole story over from the beginning. This paper, written by researchers at Metriqual, dives into this specific problem of "conversational continuity." It asks a simple but crucial question: When a computer system switches from one AI provider to another during an outage, does it actually remember the conversation, or does it just pretend to be alive while having amnesia?

The researchers discovered that the standard way of doing things is broken. Most systems today are "stateless," meaning they treat every single message as a brand-new, isolated event. If the main AI provider crashes, the system instantly switches to a backup, but it only sends the backup the very last sentence you typed. It throws away the entire history of your chat. The paper argues that this is a disaster for user experience. Even if the system is technically "up" and running, the conversation is dead because the context is gone. To prove this, the authors built a new testing tool called ContinuityBench. They created 150 fake conversations where they planted secret "fact anchors"—like a specific date, a made-up name, or a favorite food—early in the chat. Then, they simulated a crash right before the user asked a question about that secret fact. They compared two systems: the old "stateless" way and a new "stateful" way they designed, which they call History-Forwarding.

The results were dramatic. The old system failed completely. In all 750 test crashes they simulated, the backup AI remembered 0% of the context. It was as if the conversation had never happened. The user would ask, "What is my secret code?" and the new AI would honestly say, "I don't know, you haven't told me." However, the new History-Forwarding system was a total game-changer. Instead of just sending the last message, this system grabbed the entire conversation history and handed it to the backup AI like a complete storybook. This new method achieved a 99.20% success rate in preserving the context. In the rare cases where it failed (about 6 times out of 750), it wasn't because the system forgot to send the history; it was just because the backup AI model itself made a small mistake in following instructions.

The paper also tackled some tricky engineering nightmares that happen when you try to do this with hundreds of people talking at once. They found that if you aren't careful, the system can accidentally mix up two different people's conversations, giving Person A the secrets of Person B. They also discovered that if the backup AI gets too busy, a simple "retry" button can cause a "thundering herd" problem, where thousands of requests crash the backup server all at once. To fix this, they used a technique called "exponential backoff with jitter," which is like telling a crowd of people to wait a random amount of time before trying to push through a door, rather than all pushing at the exact same second.

In short, the paper proves that keeping a conversation alive during a computer crash isn't just about keeping the lights on; it's about keeping the memory alive. By forwarding the full history to the backup, they showed that you can maintain a seamless, continuous chat with 99.20% reliability, with almost no extra delay for the user. They've even released their testing tool, continuity-bench, to the public so other engineers can build systems that don't just answer questions, but actually remember the story.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →