← Latest papers
💬 NLP

Budget-Aware Routing for Long Clinical Text

This paper addresses the challenge of token cost in processing long clinical texts by formulating budget-aware routing as a knapsack-constrained subset selection problem, proposing a monotone submodular objective (RCD) and demonstrating through experiments that selector choice and diversity-aware methods are critical for optimizing LLM generation performance under strict cost and latency constraints.

Original authors: Khizar Qureshi, Geoffrey Martin, Yifan Peng

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

Original authors: Khizar Qureshi, Geoffrey Martin, Yifan Peng

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 a chef trying to cook a perfect meal (the final answer) for a customer, but you have a very strict rule: you can only bring a tiny basket of ingredients into the kitchen. The restaurant serves massive, 100-page cookbooks (clinical notes) that are full of recipes, stories, and repeated instructions. If you try to bring the whole book in, the basket gets too heavy, the delivery is too slow, and the bill becomes astronomical.

This paper is about how to pick the best ingredients from that massive cookbook to fit in your tiny basket, so the chef can still cook a delicious meal without breaking the bank or the time limit.

Here is the breakdown of their approach, using simple analogies:

1. The Problem: The "Too Much Stuff" Dilemma

Hospitals generate huge amounts of text (like discharge summaries). These documents are often repetitive, like a story that keeps saying "the patient arrived" three times in different ways.

  • The Cost: Every word you send to the AI costs money and time.
  • The Goal: You need to cut the text down to a specific size (a "budget") without losing the important parts.

2. The Solution: The "Smart Packer"

The authors built a system that acts like a smart packer. Before the text reaches the AI, this system chops the document into pieces (units) and decides which pieces to keep. They tested two main questions:

  • How do we chop the text? (Into single sentences? Whole paragraphs? Or groups of similar ideas?)
  • Which pieces do we keep? (The first ones? The most unique ones? Or a mix?)

3. The Key Discovery: "One Size Does Not Fit All"

The most important finding is that the best way to pack your basket depends on how much space you have.

  • Scenario A: The Tiny Basket (Low Budget)

    • The Strategy: Just grab the first few pages.
    • Why: In medical notes, the most important info (like the diagnosis) is usually written right at the top. If you only have room for a few sentences, taking the first few is actually the smartest move.
    • The Paper's Term: Lead Selection (Picking the beginning).
  • Scenario B: The Medium Basket (Medium Budget)

    • The Strategy: Grab the first page, but then skip the boring repeats and grab the unique parts from the middle.
    • Why: If you just keep reading from the start, you get stuck in loops of repetitive text. You need a strategy that says, "I've already heard about the fever; let's find something new."
    • The Paper's Term: MMR (Maximal Marginal Relevance). This is like a tour guide who says, "We've seen the Eiffel Tower; let's go see the Louvre next," instead of walking in circles around the same tower.
  • Scenario C: The Big Basket (High Budget)

    • The Strategy: Grab everything, but make sure you have a little bit of everything.
    • Why: When you have plenty of space, the goal is to make sure no topic is missed.
    • The Paper's Term: RCD (Relevance, Coverage, Diversity). This is a fancy math formula that ensures you have the right stuff, enough of it, and that it's all different from each other.

4. The "Smart Switch" (Routing)

The authors created a traffic light system (a "router").

  • If the budget is tight, the light turns green for "Take the beginning."
  • If the budget is medium, it switches to "Take the unique stuff."
  • If the budget is huge, it switches to "Cover everything."

This switch allows the system to automatically pick the best strategy for the situation, performing almost as well as if a human had manually picked the perfect strategy for every single document.

5. Surprising Findings

  • The "First Page" Myth: In traditional reading, we assume the beginning is everything. The paper found that when an AI is doing the reading, it doesn't matter as much where the info is. The AI is smart enough to find the important bits even if they are in the middle. However, if you are just copying text (extractive), the beginning still wins.
  • The "Clumping" Trap: They tried grouping similar sentences together before picking them (like bundling all the "fever" sentences into one big block). This actually made things worse. It was like trying to pick individual spices from a giant, pre-mixed jar of soup; you lose the ability to pick just the right pinch.
  • Measuring Success: Standard scoring (counting matching words) wasn't great at telling the difference between a good summary and a bad one when an AI wrote it. A smarter scoring method (BERTScore), which looks at the meaning rather than just the words, was much better at spotting the winners.

The Bottom Line

You don't need to feed the AI the whole 100-page book. If you use a smart "packer" that knows when to grab the start, when to skip the repeats, and when to cover the bases, you can shrink the text to one-quarter of its size and still get the same quality result. This saves money and time without losing the "flavor" of 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 →