Research & Papers

LOTTERY: New method uses reference-only samples for accurate two-sample testing

When query samples are scarce but reference data abundant, LOTTERY learns from reference alone to detect differences.

Deep Dive

Traditional two-sample testing often relies on data splitting to separate learning from testing, which fails when query samples are few. LOTTERY flips this paradigm: instead of treating sample imbalance as a limitation, it leverages the abundant reference data to build rich representations. The method learns a family of reference-dependent representations that summarize salient structure (e.g., kernel embeddings for global features and local density estimates). These representations are then adaptively weighted using only reference samples via an uncertainty-guided principle, so that the most informative features dominate the test statistic.

On the theoretical side, LOTTERY provides two key guarantees: permutation-based type I error control and consistency as sample sizes grow. If at least one representation family is consistent (i.e., can distinguish the distributions), the aggregated test power converges to one. Empirically, the method outperforms baselines on a range of benchmarks (e.g., synthetic shifts, real-world domain shifts) while strictly controlling false positives. The approach is particularly useful in few-shot settings common in anomaly detection, medical diagnostics, and online monitoring.

For professionals working with imbalanced datasets, LOTTERY offers a principled way to detect distribution shifts without requiring large query samples. Its theoretical rigor ensures reliability, and its adaptive weighting makes it robust across different types of changes. The paper is accepted at ICML 2026, signaling strong peer validation.

Key Points
  • LOTTERY learns reference-dependent representations from abundant reference data alone, avoiding the need for query samples in the learning phase.
  • Uses uncertainty-guided adaptive weighting to combine global and local representation families, maximizing detection power under imbalance.
  • Proves permutation-based type I error control and test consistency, with strong empirical results across synthetic and real benchmarks.

Why It Matters

Enables reliable two-sample testing in few-shot scenarios, crucial for anomaly detection and domain shift monitoring.

📬 Get the top 10 AI stories daily