← Latest papers
💻 computer science

CALM: A Self-Adaptive Orchestration Approach for QoS-Aware Routing in Small Language Model based Systems

The paper introduces CALM, a self-adaptive orchestration framework based on the MAPE-K loop that dynamically routes user queries to a coordinated fleet of specialized Small Language Models (SLMs) while leveraging caching and scheduling to reduce latency by 40% and energy consumption by 50% compared to single-LLM baselines.

Original authors: Hemang Jain, Divyansh Pandey, Karthik Vaidhyanathan

Published 2026-02-04
📖 5 min read🧠 Deep dive

Original authors: Hemang Jain, Divyansh Pandey, Karthik Vaidhyanathan

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 run a busy restaurant. In the past, you might have hired one giant, super-expensive chef who could cook anything from sushi to steak to dessert. This chef is incredibly talented, but they are slow, they use a massive amount of gas (energy), and they sometimes get confused if you ask for something very specific, like "a gluten-free, low-sodium dish for a diabetic."

The authors of this paper, CALM, propose a different way to run your kitchen. Instead of one giant chef, you hire a team of six specialized chefs.

  • One is a master of Italian pasta.
  • One is a sushi expert.
  • One is a dessert specialist.
  • One is a vegan expert.
  • And so on.

These "Small Language Models" (SLMs) are smaller, faster, cheaper to run, and much better at their specific jobs than the giant chef. But here is the problem: You can't keep all six chefs standing at the stove at the same time because your kitchen is too small (your computer's memory is limited).

CALM is the smart manager that decides which chef should cook which dish, right in the moment, to make sure you get your food fast, cheap, and delicious.

Here is how the CALM manager works, broken down into simple steps:

1. The Smart Menu (Model Registration)

Before any orders come in, every chef writes down a short description of what they are good at.

  • Chef A says: "I am great at medical advice."
  • Chef B says: "I am great at legal contracts."
  • Chef C says: "I am great at fitness tips."

The manager (CALM) keeps a list of these descriptions.

2. The Order Taker (Routing)

When a customer walks in and says, "I have a sore throat and a fever," the manager doesn't just pick a random chef.

  • The Brain Scan: The manager quickly reads the customer's request and compares it to the chefs' descriptions. It realizes, "Hey, the Medical Chef is the best fit!"
  • The Speed Check: But wait, the manager also checks the "live stats." Is the Medical Chef currently busy? Are they moving slowly today? Did they just use a lot of energy on the last order?
  • The Decision: If the Medical Chef is slow or tired, the manager might say, "Okay, let's send this to the General Health Chef instead, who is currently faster."

This is called Self-Adaptive Routing. The manager constantly learns and changes its mind based on how the chefs are performing right now, not just what they are supposed to do.

3. The Kitchen Shelf (Caching)

Since the kitchen is small, the manager can only keep three chefs at the stove (in the computer's memory) at any one time. The other three are sleeping in the back room (on the hard drive).

  • If the customer orders "Sushi," and the Sushi Chef is already at the stove, great! The manager sends the order immediately.
  • If the Sushi Chef is in the back room, the manager has to wake them up and bring them to the stove. This takes a few seconds (a "cold start").
  • The Magic Trick: The manager is smart about who stays at the stove. If the Sushi Chef just cooked for three people in a row, the manager keeps them there. If the Italian Chef hasn't been called in an hour, the manager sends them back to the back room to make space for the next likely order.

This is the Caching Module. It saves time by keeping the most popular chefs ready, so you don't have to wait for them to wake up.

4. The Feedback Loop (MAPE-K)

The manager doesn't just guess; it watches everything.

  • Monitor: It watches how long each order takes and how much gas (energy) is used.
  • Analyze: It asks, "Is the Sushi Chef getting slower?"
  • Plan: It decides, "Okay, for the next 10 orders, let's prioritize speed over energy," or "Let's prioritize accuracy."
  • Execute: It changes the rules for the next customer.

What Did They Find?

The authors tested this system against the "Giant Chef" (a single Large Language Model) and found some impressive results:

  • Faster: The system was about 40% faster (lower latency).
  • Greener: It used about 50% less energy.
  • Just as Good: The quality of the answers (confidence) was just as high as the giant chef, sometimes even better for specific topics.
  • Smarter Memory: By using the "Kitchen Shelf" (caching), they could run the whole system on a much smaller computer (using less memory) without slowing things down too much.

The Bottom Line

The paper argues that instead of trying to make one giant, expensive AI that does everything, we should use a team of smaller, specialized AIs managed by a smart, self-adjusting system. This approach saves money, saves energy, and gets you answers faster, all while keeping the quality high. It's like swapping a single, overworked super-chef for a well-managed team of specialists.

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 →