← Latest papers
📊 statistics

Anytime-Valid Confirmation of Label-Shift Corrections

This paper proposes an anytime-valid sequential testing framework that uses the running product of per-observation likelihood ratios to confirm pre-specified label-shift corrections in small-batch settings, offering a statistically rigorous alternative to data-driven shift estimation when labeled target outcomes are scarce.

Original authors: Seungjin Choi

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

Original authors: Seungjin Choi

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

The Big Problem: The "Scarce Label" Dilemma

Imagine you are a doctor who has a diagnostic tool trained on patients from Hospital A (the Source). Now, you deploy this tool at Hospital B (the Target). You know that the mix of patients is different—maybe Hospital B has more elderly patients or more people with a specific condition. This is called Label Shift.

Usually, to fix your tool, you would need a huge pile of new data from Hospital B with known outcomes (labeled data) to calculate exactly how the patient mix has changed. But in many real-world scientific or medical scenarios, labeled data is scarce. You might only get a few new results at a time, or they arrive slowly. You can't wait for a massive dataset to re-train your model.

However, you do have a hunch. Maybe a regulatory rule, a previous small experiment, or expert knowledge suggests: "I think the patient mix at Hospital B is shifted by about 10% toward the elderly."

The Question: Instead of asking "What is the exact shift?" (which requires lots of data), the paper asks: "Is my hunch (the proposed correction) supported by the few new data points we are getting?"

The Solution: The "Confidence Accumulator"

The authors propose a new way to test your hunch. They turn the problem into a game of accumulating evidence, similar to a gambler betting on a horse race, but with strict rules to ensure you don't get fooled by luck.

1. The Two Predictions

Imagine you have two weather forecasters:

  • The Old Forecaster (Source): Predicts rain based on the old data (Hospital A).
  • The Adjusted Forecaster (Tilted): Predicts rain based on the old data plus your hunch that the climate has shifted (Hospital B).

2. The "E-Value" (The Betting Chip)

Every time a new patient outcome arrives (e.g., "It rained" or "The patient recovered"), you compare the two forecasters:

  • Did the Adjusted Forecaster predict this outcome better than the Old Forecaster?
  • If yes, you win a "betting chip" (an e-value).
  • If no, you lose a chip.

The paper proves mathematically that if your hunch is wrong (and the Old Forecaster is actually the truth), you will, on average, break even or lose chips. You won't get rich just by luck.

3. The "Martingale" (The Running Score)

You keep a running total of your chips. This total is called a Martingale.

  • The Rule: If the Old Forecaster is truly correct, the chance of your chip total ever getting massively high (crossing a specific threshold) is extremely low (less than 5%, for example).
  • The "Anytime-Valid" Superpower: This is the paper's biggest innovation. Usually, in statistics, you must decide before you start how many patients you will test. If you stop early because you "feel" you have enough data, your statistics become invalid.
    • This method allows you to stop whenever you want. You can check the score after 5 patients, 50 patients, or 500. As long as you haven't crossed the threshold yet, the rules hold. If you do cross the threshold, you can confidently say: "The data supports my hunch."

The "Log-Wealth" Analogy

The paper mentions NLPD (Negative Log-Predictive Density). Think of this as a "surprise score."

  • If a forecaster is surprised by an outcome, they get a high score (bad).
  • If they predicted it well, they get a low score (good).
  • The paper shows that your "chip total" is exactly the difference between how surprised the Old Forecaster was versus how surprised the Adjusted Forecaster was.
  • Rejection: If your "chip total" gets high enough, it means the Adjusted Forecaster has been consistently less surprised than the Old one. This confirms your hunch is likely correct.

Important Limitations (What the Paper Says)

The paper is very careful about what this tool can and cannot do:

  1. It's a "Yes/No" Test, Not a Measurement: If the test says "Yes, your hunch is supported," it doesn't tell you exactly how big the shift is. It just says the shift is in the right direction and magnitude to be plausible. If you need the exact number, you still need a lot of data and different tools.
  2. The "Garbage In" Warning: The test assumes the Old Forecaster is well-calibrated. If the Old Forecaster is broken (e.g., it thinks the weather is 50% chance of rain when it's actually 90%), the test might give you false alarms. You must trust the original model's baseline accuracy.
  3. The Hunch Must Be Fixed: You must decide on your "hunch" (the correction) before you start looking at the new data. You can't look at the data, change your hunch, and then run the test. That breaks the math.

Summary

This paper gives scientists a formal way to say, "I have a theory about how my data has changed. Even though I only have a few new data points, I can prove mathematically that my theory fits these new points better than my old model does, without needing to wait for a massive dataset."

It turns model monitoring into a rigorous, step-by-step confirmation game where you can stop the game the moment you have enough proof.

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 →