← Latest papers
💻 computer science

Fast LLM-Based Semantic Filtering: From a Unified Framework to an Adaptive Two-Phase Method

This paper introduces an adaptive two-phase semantic filtering framework that overcomes limitations of existing LLM-based cascades by dynamically combining model-free clustering with a token-aware proxy trained on soft confidence labels and sparse-aware calibration, achieving 1.6–2.0x speedups over prior methods while maintaining high accuracy.

Original authors: Kyoungmin Kim, Martin Catheland, Anastasia Ailamaki

Published 2026-06-09
📖 5 min read🧠 Deep dive

Original authors: Kyoungmin Kim, Martin Catheland, Anastasia Ailamaki

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 massive library of 10,000 documents, and you need to find every single one that answers a specific question, like "Does this medical article mention a clinical trial?" or "Is this customer review complaining about shipping?"

In the past, the only way to do this was to hire a super-smart, expensive expert (the LLM, or Large Language Model) to read every single document one by one. This is accurate, but it's incredibly slow and costs a fortune, like hiring a team of PhDs to read every receipt in a grocery store just to find the ones with a typo.

To fix this, researchers tried using a "fast proxy"—a cheaper, faster, but slightly less smart assistant to do the first pass. The idea is: "Let the cheap assistant read everything. If it's 100% sure, it makes the call. If it's unsure, then we ask the expensive expert."

This paper argues that the current "cheap assistants" are built on shaky foundations. They are too rigid, they miss important details, and they are too afraid to make a decision, which forces them to ask the expensive expert too often.

Here is the paper's solution, broken down into simple concepts:

1. The Problem: The "One-Size-Fits-All" Trap

Current methods try to use the same tool for every job.

  • The Clustering Method: Imagine sorting books by color. If you want "red books," this works great. But if you want "books with a red cover and a blue spine," sorting by color fails. Current methods often fail when the question is tricky.
  • The "Dense" Method: Some assistants summarize a document into a single "vibe" (like a 5-word summary). If the question depends on a specific word (like "no" or a specific number), that summary loses the detail. It's like trying to find a specific ingredient in a soup by only smelling the pot; you miss the specific spice.
  • The "Over-Cautious" Method: Current assistants are trained to be binary (Yes/No). If the expert is unsure about a document, the assistant is forced to guess anyway. This makes the assistant overconfident on things it shouldn't be, leading to mistakes.

2. The Solution: A Two-Phase "Smart Team"

The authors propose a new system that acts like a flexible team rather than a single robot.

Phase 1: The "Quick Sort" (Model-Free)

First, they try a very simple trick: group similar documents together (like sorting books by color). If a whole group of books looks the same, they just pick one to read and assume the rest are the same.

  • The Win: If the question is easy (e.g., "Is this about dogs?"), this step solves almost everything instantly.
  • The Handoff: If the groups are messy (some dogs, some cats mixed together), they don't give up. They take the documents they did read in this step and use them as training data for the next step.

Phase 2: The "Specialist" (Online Proxy)

If the first step wasn't enough, they bring in a smarter, custom-trained assistant.

  • Better Eyes: Instead of just looking at the "vibe" of the text, this assistant looks at the specific words and how they interact (like checking the ingredients list, not just the smell). It uses a mix of two powerful reading techniques to catch fine details.
  • Learning from Uncertainty: This is a big change. Instead of forcing the assistant to say "Yes" or "No," they teach it to say, "I'm 60% sure." If the expert was unsure about a document, the assistant learns to be unsure too. This prevents it from making confident mistakes.
  • The Safety Net: They use a special math trick to decide when to stop and ask the expert. Instead of being scared and asking the expert for everything that looks slightly risky, they only ask for the things that are truly ambiguous. They add a "safety margin" only where the data is thin, not everywhere.

3. The "Compass" (Knowing the Difficulty)

The paper introduces a clever way to measure how hard a question is before they even start.

  • They look at how confident the expensive expert is when it reads the documents. If the expert is confident, the question is easy. If the expert is confused, the question is hard.
  • This acts as a compass. It tells the system: "If the question is easy, use the Quick Sort (Phase 1). If it's hard, skip to the Specialist (Phase 2)." This saves time because the system doesn't waste effort trying to force a simple tool to do a complex job.

The Results: Faster and Smarter

When they tested this on three different types of document collections (medical papers, patents, and government reports):

  • Speed: Their new method was 1.6 to 2 times faster than the best existing methods.
  • Accuracy: It met the accuracy goal (90% correct) on 95% of the questions.
  • Efficiency: It asked the expensive expert for help much less often, saving a huge amount of money and time.

The Bottom Line

The paper shows that by combining a simple "grouping" trick with a smarter, word-aware assistant, and by teaching that assistant to admit when it's unsure, we can filter massive amounts of text much faster without losing accuracy. It's like replacing a single, overworked detective with a team that knows exactly when to use a quick search and when to call in the forensic experts.

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 →