← Latest papers
🤖 AI

KBF: Knowledge Boundary as Fingerprint for Language Model and Black-Box API Auditing

This paper introduces KBF, a low-cost black-box auditing protocol that uses stable numerical recall near the knowledge boundary to fingerprint language model APIs, effectively detecting economically relevant model substitutions and mixed-routing attacks across production endpoints and shadow APIs without requiring direct access to the models.

Original authors: Yijia Fang, Yiqing Feng, Bingyu Li, Mingxun Zhou

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

Original authors: Yijia Fang, Yiqing Feng, Bingyu Li, Mingxun Zhou

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 buying a bottle of wine from a fancy, third-party reseller. The label says it's a rare, expensive vintage from a famous vineyard. But you can't see the bottle's contents, and the reseller won't let you taste it before you buy. You suspect they might have swapped the expensive wine for a cheap, generic brand to keep the profit margin high.

This is exactly the problem facing users of Large Language Models (LLMs) today. Many people buy access to these AI models through "relay" services or resellers. These services act as middlemen: you pay them, and they forward your request to the actual AI provider. The problem? The reseller might secretly swap the expensive, high-quality AI you paid for with a cheaper, lower-quality one, all while telling you it's the real thing.

This paper introduces a new tool called KBF (Knowledge Boundary Fingerprinting) to catch these "wine swappers" without needing to open the bottle or see inside the factory.

The Core Idea: The "Knowledge Boundary"

Most people think you can tell two AI models apart by asking them hard questions or asking them to introduce themselves. But AIs are tricky; they often lie about who they are, or they can be tricked into acting like someone else.

The researchers discovered a different way to identify an AI: look at the edge of its knowledge.

Think of an AI's knowledge like a library.

  • Inside the library (Common Knowledge): If you ask, "What is 2+2?", almost every AI will say "4." This doesn't help you tell them apart.
  • Outside the library (Too obscure): If you ask about a specific, made-up fact from a book that doesn't exist, the AI will just guess randomly. This is too noisy to be useful.
  • The Boundary (The Sweet Spot): This is the edge of the library. These are facts that are just on the edge of what the AI knows.
    • A smart, expensive AI might know the exact answer.
    • A cheaper AI might guess a slightly wrong answer.
    • Crucially, even if the AI gets the answer wrong, it often gives the same wrong answer every time.

The researchers call these "stable wrong answers." They are like a unique fingerprint. If an expensive AI consistently says, "The boiling point of this obscure chemical is 106 degrees," and a cheap AI consistently says, "It's 108 degrees," that difference is a fingerprint. Even if the expensive AI is wrong, the pattern of its mistake is unique to it.

How KBF Works (The "Audit" Process)

KBF is a three-step process to catch a reseller in the act:

  1. Fingerprinting the Real Thing (Offline):
    First, the auditor talks to the official AI (the one the reseller claims to be selling). They ask it thousands of questions about obscure facts near the "knowledge boundary." They record exactly what the official AI says, even if it's wrong. They build a "fingerprint" of how this specific AI handles the edge of its knowledge.

  2. Calibrating the Noise:
    The auditor asks the official AI the same questions again to see how much it "jitters." Sometimes, even the real AI might give a slightly different answer due to random computer noise. KBF measures this natural "jitter" so it knows what a normal mistake looks like.

  3. The Audit (Online):
    Now, the auditor asks the suspect reseller the same questions.

    • If the reseller is honest, their answers will match the official fingerprint (within the natural "jitter" range).
    • If the reseller is cheating and using a cheap AI, the answers will drift away from the official fingerprint. The cheap AI might give a different wrong answer, or no answer at all.

KBF uses a statistical test to decide: "Is this difference just random noise, or is it proof that a different AI is being used?"

What They Found

The researchers tested KBF on 16 different real-world AI models and various reseller services. Here is what happened:

  • It Catches Cheaters: KBF successfully identified 155 different cases where a reseller swapped a model for a cheaper one. It did this without ever falsely accusing an honest reseller.
  • It's Robust: Resellers often change how they set up their AI (adding "personas," changing temperature settings, or using extra tools). KBF worked perfectly even when the setup changed. Other methods failed and accused honest people of cheating.
  • It Catches Partial Swaps: Sometimes, a reseller doesn't swap every request; they might swap 10% of them to save money. KBF is sensitive enough to catch this "mixed routing" even when only a small fraction of traffic is being swapped.
  • Real-World Results: The team used KBF to audit six shady "shadow" API platforms that advertise cheap access to top-tier models. They found that 7 out of 27 endpoints were lying about what model they were running. Interestingly, the lies were mostly concentrated on the most expensive, premium models (like Claude), because that's where the money is to be saved.

Why This Matters

Before this, if you wanted to know if a reseller was honest, you had to guess, ask the AI "Who are you?" (which it might lie about), or rely on unverified community tests.

KBF provides a low-cost, scientific way to verify what you are buying. It doesn't require the reseller to cooperate, it doesn't require special access to the AI's internal code, and it doesn't require asking the AI to do anything dangerous or weird. It simply asks the AI about obscure facts and checks if the answers match the "fingerprint" of the model you paid for.

In short, KBF is a lie detector for AI resellers, ensuring that when you pay for the "premium wine," you actually get the premium bottle, not a cheap substitute.

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 →