CR^2: Cost-Aware Risk-Controlled Routing for Wireless Device-Edge LLM Inference
This paper proposes CR^2, a two-stage device-edge routing framework for wireless LLM inference that combines a lightweight on-device margin gate with conformal risk control to optimize the trade-off between latency, energy, and accuracy while explicitly managing false-acceptance risks under resource constraints.
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 have a very smart, but heavy, backpack (a Large Language Model, or LLM) that you want to use to answer questions. You have two options for where to get the answer:
- The Pocket Assistant: A tiny, super-fast helper right in your pocket (your phone). It's quick and saves battery, but it's not as smart.
- The Cloud Brain: A giant, super-smart supercomputer sitting in a data center far away. It gives perfect answers, but you have to send your question over the internet, wait for it to travel, and then wait for the answer to come back. This takes time and uses up your phone's battery just to send the message.
The Problem:
Right now, most systems try to guess which one to use by looking at the question. But they often get it wrong because they don't account for the "traffic" on the internet or how much battery your phone has left at that exact moment.
- If you send an easy question to the Cloud Brain, you waste time and battery.
- If you send a hard question to the Pocket Assistant, you get a bad answer.
The Solution: CR2 (Cost-Aware Risk-Controlled Routing)
The authors of this paper built a new "traffic controller" called CR2. Think of it as a smart bouncer at a club who decides whether you stay in the VIP lounge (the phone) or get sent to the main stage (the cloud).
Here is how CR2 works, using simple analogies:
1. The Two-Stage Decision (The "Bouncer" and the "Manager")
Most systems try to pick the best model for every single question all at once. CR2 splits this into two steps:
Step 1: The Pocket Bouncer (The Margin Gate).
When you ask a question, your phone looks at it immediately. It doesn't know what the Cloud Brain is doing right now (is the internet slow? is the server busy?). It only knows: "Is this question easy enough for my pocket assistant to handle?"
The Bouncer uses a special "score" to guess: If I answer this myself, will I do almost as well as the Cloud Brain would?- If Yes: The Bouncer says, "Stay here!" The phone answers instantly.
- If No: The Bouncer says, "Go to the Cloud."
Step 2: The Cloud Manager (The Utility Selector).
Only the questions the Bouncer rejected get sent to the Cloud. Once they arrive, the Cloud Manager looks at the current internet speed and server load to pick the perfect supercomputer to answer that specific question.
2. The "Risk Control" (The Safety Net)
The tricky part is the Bouncer. If the Bouncer is too confident and says "Stay here" for a hard question, you get a bad answer. This is a "False Acceptance."
The paper introduces a special safety tool called Conformal Risk Control (CRC).
- The Analogy: Imagine the Bouncer is a student taking a test. Before the test starts, the teacher gives the student a "safety rule."
- How it works: The system says, "Bouncer, you are allowed to be wrong about sending a question to the Cloud only 1% of the time."
- The system then calculates a strict "passing score" for the Bouncer. If the Bouncer's confidence score is below that line, it must send the question to the Cloud, even if it thinks the phone might be able to handle it. This guarantees that you rarely get a bad answer from the phone.
3. The "Cost" Awareness
The system doesn't just care about accuracy; it cares about Cost.
- Cost here means a mix of Time (how long you wait) and Battery (how much energy it takes).
- The system has a "dial" (called ) that the user can turn.
- Turn it to "Save Battery": The Bouncer becomes stricter and keeps more questions on the phone, even if they are a bit hard.
- Turn it to "Get the Best Answer": The Bouncer sends more questions to the Cloud to ensure high quality.
What Did They Find?
The authors tested this system with real-world data (like answering science questions or writing code).
- Better Balance: CR2 found a better "sweet spot" between speed/battery and accuracy than other methods.
- Big Savings: At the same level of accuracy, CR2 saved up to 16.9% in "deployment cost" (time and energy) compared to the best existing methods.
- Reliability: The "Safety Net" (CRC) worked exactly as promised, keeping the rate of bad answers from the phone very low.
In Summary:
CR2 is a smart traffic system for AI. It uses a lightweight "Bouncer" on your phone to quickly decide if a question is easy enough to handle locally. If it's not, it sends it to the Cloud. A special "Safety Net" ensures the Bouncer never gets too overconfident, guaranteeing you don't waste time or battery on questions the phone can't actually answer well.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.