← Lab /Security & privacy

IRIS detects model substitution and partial routing in LLM gateways using only generated text

IRIS can reliably audit black-box LLM gateways, identify full model substitution or fractional routing, attribute the backend, and estimate the routing fraction

Security & privacy arXiv 23 Jul 2026 Measurement Prototype evidence

Published as “Which Model Is Actually Serving You? IRIS: Budgeted Black-Box Auditing of Model Substitution and Routing Dilution in LLM Gateways”

Why it matters

Clients can independently verify that an LLM gateway is serving the advertised model and detect covert cost-saving downgrades without needing privileged signals.

Summary

IRIS detects both whole-stream model substitution and fractional routing dilution from the returned text alone, achieving 0.99 AUROC for substitution detection and 0.85 mean power at a 0.3 dilution rate with a 0.017 false-positive rate, while estimating the routing fraction within 0.04 of the true value. It uniquely combines reusable random-generation probes, automatic query-budget sizing via a cheap pilot, attribution of the served backend, and routing-fraction estimation in a single audit. Compared to prior black-box auditors, IRIS matches or exceeds detection performance and improves the matched-budget target-hit rate from 73% to 87%. However, false-positive rates can be high on a small tail of pairs (up to 0.557) and power falls short of the 0.9 target on most pairs, especially low-margin cases.

What they found 1

  1. IRIS verifies the backend at 0.99 AUROC and catches ε=0.3 dilution with 0.85 mean power and 0.017 false-positive rate, recovering ε within 0.04 for enrolled diluents.

    “IRIS verifies the backend at 0.99 AUROC and sharpens attribution as queries accumulate; across a commercial OpenRouter library it catches ε=0.3 dilution on margin-qualified pairs at 0.85 mean power (0.017 false-positive rate) and recovers ε to within 0.04 for enrolled diluents”

Caveats 4

  • over the 218 margin-qualified pairs the per-pair honest (ε=0) FPR has median 0.000, mean 0.017, 95th percentile 0.090, and maximum 0.557, with 7.8% of pairs above 0.05.
  • realized power averages 0.73 but meets the pre-registered 0.9 target on only 17.8% of feasible pairs
  • The 54 low-margin pairs are known-hard cases: close relatives that may share training lineage... and claimed models whose single-response fingerprint is itself non-distinctive.
  • certifying α1 ≤α/m is reference-sample intensive

What’s new here 4

  • First text-only audit that simultaneously detects substitution, estimates routing fraction, and attributes the backend.
  • Introduces an estimate-then-budget strategy that sizes the query budget adaptively before any suspect queries.
  • Uses reusable random-generation probes that expose backend-specific sampling biases, avoiding endpoint-specific probes.
  • Provides a unified framework that works for both whole-stream replacement and fractional dilution.