← Latest papers
💬 NLP

Routesplain: Towards Faithful and Intervenable Routing for Software-related Tasks

Routesplain is the first interpretable LLM router for software-related tasks that extracts human-understandable concepts from queries to make faithful routing decisions, outperforming both individual models and black-box baselines in accuracy and cost while enabling concept-level interventions.

Original authors: Adam Štorek, Vikas Upadhyay, Marianne Menglin Liu, Daniel W. Peterson, Anshul Mittal, Sujeeth Bharadwaj, Fahad Shah, Sujith Ravi, Dan Roth

Published 2026-08-11
📖 6 min read🧠 Deep dive

Original authors: Adam Štorek, Vikas Upadhyay, Marianne Menglin Liu, Daniel W. Peterson, Anshul Mittal, Sujeeth Bharadwaj, Fahad Shah, Sujith Ravi, Dan Roth

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 walking into a massive, futuristic library where thousands of different robots are waiting to answer your questions. Some robots are brilliant geniuses who can solve complex math problems but cost a fortune to hire. Others are quick, cheap workers who are great at writing simple stories but might get confused by tricky puzzles. In the world of artificial intelligence, these robots are called "Large Language Models" (LLMs). They are the engines behind the chatbots and code helpers we use today. But here's the catch: not every robot is good at every job. Sometimes, you don't need a genius; you just need a quick, affordable worker. The big question scientists are asking is: How do we know which robot to pick for the specific job you have, without wasting money or getting a bad answer?

This is where the idea of "routing" comes in. Think of routing like a smart librarian who listens to your question, figures out exactly what kind of help you need, and then points you to the perfect robot in the library. For a long time, these librarians were "black boxes." They made decisions based on secret, complicated math that no one could see or understand. If the librarian sent you to the wrong robot, you had no idea why, and you couldn't really fix it. This new paper introduces a new kind of librarian that is different: it doesn't just guess; it explains its thinking in plain language before making a choice.


Meet Routesplain: The Librarian Who Explains Its Choices

The authors of this paper, working with researchers from Columbia University and Oracle AI, have built a new system called Routesplain. Their goal was to solve a very specific problem: how to route software-related questions (like "fix this broken code" or "write a program in Python") to the best AI model, while saving money and making sure the answer is actually correct.

Instead of using a mysterious black box to decide which AI to use, Routesplain acts like a detective that breaks every question down into simple, understandable clues. They call these clues "concepts." When you ask a question, Routesplain doesn't just look at the words; it asks itself a few specific questions:

  • What is the task? (Is it writing code, fixing a bug, or answering a science question?)
  • What language is involved? (Is it Python, Rust, or maybe a specific natural language like Spanish?)
  • How hard is it? (Is this a simple request or a super complex puzzle?)
  • What domain is it? (Is it about networks, time, or general math?)

Once Routesplain identifies these concepts, it uses a second step to decide which AI model is the best fit. It's like saying, "Oh, this is a tricky Rust programming problem, so we should send it to the Rust-specialist robot, not the cheap generalist one."

Why This Matters: The "Black Box" Problem
Before this paper, most systems that chose AI models were like a magic 8-ball. You asked a question, and it gave an answer, but you couldn't see the logic. The authors argue that this is bad because if the system makes a mistake, you can't fix it. Routesplain is different because it is interpretable. It shows you the concepts it used to make the decision. If you think the system misunderstood the difficulty of the task, you can actually step in and say, "Wait, this isn't hard, it's easy," and the system will instantly change its mind and pick a different, cheaper robot. This is called intervention, and it's a game-changer because it puts humans back in the driver's seat.

The Big Test: 16 Robots, 8 Tasks
To see if their idea worked, the researchers set up a massive test. They gathered 16 of the most advanced AI models available (including big names like GPT-4.1, o3, and Llama 4) and tested them on 8 different types of software tasks. These tasks ranged from writing code and fixing broken programs to answering computer science questions in 29 different languages.

They found something surprising: different models are wildly different at different jobs.

  • Some models were amazing at fixing code but terrible at writing it.
  • Some models were great at English but struggled with languages like Hindi or Wolof.
  • Some models were super expensive but only slightly better than cheap ones for simple tasks.

Because of these differences, simply picking the "smartest" model for everything was a waste of money. Sometimes, a cheap model was actually the best choice.

The Results: Smarter and Cheaper
When they put Routesplain to the test, it did something incredible. It performed just as well as the most advanced "black box" systems (which are hard to understand) but was much better at saving money.

  • Accuracy: Routesplain matched the performance of the best black-box routers.
  • Cost: By routing questions to the right model, it saved a lot of money. For example, it could get answers that were 8.5 percentage points more accurate than using just one model, while spending 39% less money.
  • The Bottleneck: The researchers also used their "explainable" system to find out where things went wrong. They discovered that the biggest mistake the system made was guessing how complex a task was. If the system thought a task was easy when it was actually hard, it picked a cheap model and got a bad answer. This tells future engineers exactly what to fix: make the "complexity detector" smarter.

The Takeaway
The paper suggests that we don't need to rely on mysterious, unexplainable AI to make decisions. By breaking questions down into simple, human-readable concepts like "language," "domain," and "difficulty," we can build routing systems that are not only accurate but also fair, transparent, and editable.

The authors show that we can have our cake and eat it too: we can get the high performance of the smartest AI models while paying the low cost of the cheaper ones, all while knowing exactly why a decision was made. It's like having a librarian who doesn't just point you to a book, but tells you, "I picked this because you asked for a mystery novel, and this is the best mystery novel in the library," and if you say, "No, I actually want a romance," the librarian instantly swaps the book without you having to leave the room.

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 →