Deceptive Risk Minimization: Out-of-Distribution Generalization by Deceiving Distribution Shift Detectors

Anirudha Majumdar · Submission to ICLR 2026 · Withdrawn

TL;DR

Current out-of-distribution (OOD) generalization methods usually demand discrete domain labels or access to unlabeled test data. Deceptive Risk Minimization (DRM) bypasses both requirements by viewing OOD generalization through an observer-centric lens: if an encoder can "trick" an online distribution shift detector into believing that sequentially collected training data is independent and identically distributed (i.i.d.), the representation naturally sheds spurious, non-stationary features and generalizes to unseen test shifts.

What Problem Does This Paper Address?

Standard Empirical Risk Minimization (ERM) assumes training and deployment data are drawn i.i.d. from the same distribution. When high-capacity models encounter real-world distribution shifts—such as lighting variations in robotics or background color changes in computer vision—they often latch onto spurious shortcuts that collapse under deployment.

Existing solutions have notable constraints:

  • Domain adaptation typically requires unlabeled target-domain data during training.
  • Invariant representation learning (e.g., Invariant Risk Minimization / IRM) requires training data partitioned into discrete "environments." In practice, data collected sequentially (e.g., streaming sensor feeds or continuous changes across a day) shifts continuously, making discrete clustering artificial or impossible.

The authors ask: Can we learn invariant representations simply by leveraging the natural chronological order of collected data, without environment labels or target data?

Methods

DRM formulates representation learning as an adversarial game against an online observer:

  1. Sequential Data Assumption: Training data is assumed to retain its collection order $((x_t, y_t))_{t=1}^T$, preserving natural, mild distribution drifts.
  2. Conformal Martingale Observer: To detect non-i.i.d. behavior, DRM uses a conformal martingale (CM). For each representation $\phi(x_t)$, a conformity score $\alpha_t$ (e.g., minimum cosine distance to prior points, optionally conditioned on class $y_t$) is computed and transformed into a conformal $p$-value. Under the exchangeable/i.i.d. null hypothesis, these $p$-values are uniformly distributed $\mathcal{U}[0, 1]$. A betting martingale wagers against uniformity, rapidly accumulating capital when a distribution shift occurs.
  3. End-to-End Differentiable Objective: To penalize representations that trigger the detector, non-differentiable ranking and minimum operations are smoothed:
  4. Minimum distances are replaced with soft-min operations.
  5. Conformal quantiles/$p$-values are computed via differentiable smooth sorting.
  6. Optimization: The model jointly minimizes the standard task loss (e.g., cross-entropy) alongside the soft betting martingale penalty $\tilde{S}_t$: $$\inf_{f, \phi} \frac{1}{T} \sum_{t=1}^T l(x_t, f(\phi(x_t))) + \frac{\lambda}{T} \sum_{t=1}^T \tilde{S}_t(\phi(x_1), \dots, \phi(x_t))$$

Datasets

The authors evaluated DRM on three benchmark setups across concept and covariate shifts:

  1. Synthetic 2D Toy Problem (Concept Shift): Binary classification where label $y$ is determined by $x^{[1]}$ with 25% label noise. A spurious dimension $x^{[2]}$ is strongly correlated with $y$, but the correlation probability drifts smoothly from $p_1 = 0$ to $p_T = 0.3$ during training, and flips to $p_{\text{test}} = 0.9$ at test time.
  2. Colored-MNIST (Concept Shift): Digits 0–4 vs. 5–9 colored red or green. The label–color correlation shifts from $p_t = 0.1$ (first half) to $p_t = 0.4$ (second half), and reverses to $p_{\text{test}} = 0.9$ at test time.
  3. Simulated Robotic Manipulation (Covariate Shift): A pick-and-place task using a 36-layer Transporter Network (ResNet hourglass architecture) trained on 300 demonstrations. Table and bowl colors shift discretely in three stages over the training sequence along the blue and green channels, while the test environment features an exaggerated novel color scheme.

Key Insights and Ideas

  • OOD Generalization as Deception: If a sequence of latent representations looks strictly i.i.d. to a sensitive shift detector, the representation has effectively discarded non-stationary, domain-specific nuisance variables.
  • No Environment Annotations Needed: Unlike IRM, DRM does not need an oracle changepoint or domain boundary. It works on both continuous drifts (the 2D problem) and discrete changes (Colored-MNIST, imitation learning).
  • Leveraging Time/Order over Shuffling: Machine learning standard practice immediately shuffles training data. DRM demonstrates that the original collection sequence contains critical supervisory signals about what not to learn.

Key Results

  • Colored-MNIST: ERM performance collapses to $\sim$15–20% accuracy due to the reversed test correlation. IRM recovers accuracy to $\sim$65% with oracle knowledge of the changepoint. DRM matches IRM ($\sim$65%) without any knowledge of when the shift occurred.
  • 2D Concept Shift: ERM collapses on test data ($<20\%$ success), whereas DRM maintains robust performance ($\sim$72% test success), closely approaching the theoretical Bayes optimal oracle bound of 75%.
  • Robotic Imitation Learning: On placing the block in the novel color environment, ERM degrades significantly ($\sim$55% success), whereas DRM sustains $\sim$85% success.
  • Latent Space Separation: t-SNE visualizations on Colored-MNIST show ERM features clustering heavily by digit color, while DRM representations cluster purely by digit class.

Limitations and Future Work

  • Unaligned Variation Axes: If test-time shifts occur along axes never varied during training (e.g., shifting the red color channel when training data only varied blue and green), DRM cannot discover the invariance.
  • Computational Bottleneck: Computing conformity scores requires pairwise distance comparisons across sequence steps ($O(T^2)$ complexity). While mitigated here by subsampling shorter sequences, scaling to long trajectories remains an engineering hurdle.
  • Hyperparameter Sensitivity: The model is sensitive to the smooth-sorting dispersion parameter $\sigma$.
  • Causal vs. Anti-Causal Shifts: The current formulation targets covariate shift and anti-causal concept shift ($X|Y$). Extending DRM to general causal concept shifts ($Y|X$) remains open future work.

Summary updated

Abstract

This paper proposes deception as a mechanism for out-of-distribution (OOD) generalization: by learning data representations that make training data appear independent and identically distributed (iid) to an observer, we can identify stable features that eliminate spurious correlations and generalize to unseen domains. We refer to this principle as deceptive risk minimization (DRM) and instantiate it with a practical differentiable objective that simultaneously learns features that eliminate distribution shifts from the perspective of a detector based on conformal martingales while minimizing a task-specific loss. In contrast to domain adaptation or prior invariant representation learning methods, DRM does not require access to test data or a partitioning of training data into a finite number of data-generating domains. We demonstrate the efficacy of DRM on numerical experiments with concept shift and a simulated imitation learning setting with covariate shift in environments that a robot is deployed in.
BibTeX
@misc{majumdar2025deceptive,
  author = {Anirudha Majumdar},
  title = {{Deceptive Risk Minimization: Out-of-Distribution Generalization by Deceiving Distribution Shift Detectors}},
  year = {2025},
  eprint = {2509.12081},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.12081},
}
Figure