Learning with Distribution Shift

Latest papers

65 papers22 papers in the last four weeks, against 2 the four weeks before. 0.2% of all new papers.

Oct 27, 2025

Optimal In-context Adaptivity and Distributional Robustness of Transformers

We study in-context learning problems where a Transformer is pretrained on tasks drawn from a mixture distribution π=∑α∈Aλαπαπ=\sum_{α\in\mathcal{A}} λ_α π_α, called the pretraining prior, in which each mixture component παπ_α is a distribution on tasks of a specific difficulty level indexed by αα. Our goal is to understand the performance of the pretrained Transformer when evaluated on a different test distribution μμ, consisting of tasks of fixed difficulty β∈Aβ\in\mathcal{A}, and with potential distribution shift relative to πβπ_β, subject to the chi-squared divergence χ2(μ,πβ)χ^2(μ,π_β) being at most κκ. In particular, we consider nonparametric regression problems with random smoothness, and multi-index models with both random smoothness and random effective dimension. We prove that a large Transformer pretrained on sufficient data achieves the optimal rate of convergence corresponding to the difficulty level ββ, uniformly over test distributions μμ in the chi-squared divergence ball. Thus, the pretrained Transformer is able to achieve faster rates of convergence on easier tasks and is robust to distribution shift at test time. Finally, we prove that even if an estimator had access to the test distribution μμ, the convergence rate of its expected risk over μμ could not be faster than that of our pretrained Transformers, thereby providing a more appropriate optimality guarantee than minimax lower bounds.
Feb 12, 2025

Out-of-Distribution Detection on Graphs: A Survey

Graph learning has advanced prediction and discovery across a wide range of relational data applications. In evolving environments, new categories and changes in attributes or relationships can produce out-of-distribution (OOD) inputs on which models make confident but unreliable predictions. Graph out-of-distribution (GOOD) detection identifies such nodes or graphs to support rejection and further assessment. This paper presents the first systematic survey dedicated to GOOD detection. We clarify the problem settings and organize existing methods into six categories according to their primary OOD discrimination mechanisms. The review examines their technical connections, supervision and reference requirements, and conditions of use, alongside representative datasets, OOD constructions, benchmarks, and evaluation metrics. Controlled synthetic comparisons deepen the understanding of detection settings by illustrating how representative methods respond to different distribution shifts and graph conditions. We discuss open challenges and outline future research directions, aiming to provide a common foundation for advancing GOOD detection.
Feb 11, 2025

Supervised Contrastive Learning of Environment-Invariant Representations

Real-world datasets often combine data collected under different experimental conditions. This yields larger datasets, but can also introduce environment-associated correlations that make it difficult to model the phenomena of interest. We address this with Supervised Contrastive Invariance Learning (SCIL), which learns a task-supervised representation zcz_c while regularizing its environment-related structure, together with an environment-supervised auxiliary representation zsz_s. The contribution of the auxiliary representation to the reported results remains unresolved. SCIL is based purely on Supervised Contrastive Learning and uses a single hyperparameter αα to control the strength of environment regularization. We study this regularization under distribution shift with Colored MNIST and Camelyon17-WILDS, where increasing αα decreases in-distribution validation accuracy and increases held-out test accuracy. We also evaluate SCIL on batch correction for 26 million Optical Pooled Screening images, where zcz_c preserves biological signal while becoming less predictive of inter-well variation.
Feb 5, 2025

Why Transformers Struggle with Distribution-Independent In-Context Learning

With in-context learning (ICL), transformer models adapt to new tasks from illustrative examples at inference time without updating their parameters. A common interpretation is that transformers implement implicit learning algorithms in their forward pass. We test this interpretation and ICL capability under distribution shift in noiseless polynomial regression, where the context uniquely determines the target function. Models that are near-perfect in distribution exhibit sharp performance degradation under shifts in the input or target-function distribution. This behavior persists across polynomial degrees and multiple training interventions, and in higher-dimensional nonlinear regression. We identify two architectural mechanisms that explain this breakdown: output saturation at finite boundary values linked to final normalization, and attention concentration on a small subset of the context, which can limit context-dependent adaptation required for ICL. Controlled experiments, architectural ablations, targeted interventions, and theoretical analysis provide strong evidence for both mechanisms and their consequence: strong in-distribution ICL does not imply distribution-independent ICL, which calls for caution when using ICL instead of explicit retraining or adaptation under distribution shift.
Oct 23, 2024

ProFL: Performative Robust Optimal Federated Learning

Performative prediction is a framework that captures distribution shifts that occur during the training of machine learning models due to their deployment. As the trained model is used, the induced data distribution evolves, leading to deviations from the original data distribution. The impact of such model-induced distribution shifts in federated learning (FL) is increasingly likely to transpire in real-life use cases. A recently proposed approach extends performative prediction to FL with the resulting model converging to a performative stable point, which may be far from the performative optimal point. Earlier research in centralized settings has shown that the performative optimal point can be achieved under model-induced distribution shifts, but these approaches require the performative risk to be convex and the training data to be noiseless. These assumptions are often violated in realistic FL systems. This paper addresses these limitations and proposes Performative Robust Optimal Federated Learning (ProFL), an algorithm that targets the performative optimal point in FL while mitigating the effects of noisy and contaminated local data. We present a neighborhood-convergence analysis under the Polyak--Lojasiewicz condition, which applies to non-convex objectives. Extensive experiments on multiple datasets demonstrate the advantage of Robust Optimal Federated Learning over the state-of-the-art.
Apr 6, 2023

Reliable learning in challenging environments

The problem of designing learners that provide guarantees that their predictions are provably correct is of increasing importance in machine learning. However, learning theoretic guarantees have only been considered in very specific settings. In this work, we consider the design and analysis of reliable learners in challenging test-time environments as encountered in modern machine learning problems: namely adversarial' test-time attacks (in several variations) and natural' distribution shifts. In this work, we provide a reliable learner with provably optimal guarantees in such settings. We discuss practical implementations of the learner and further show that our algorithm achieves strong positive performance guarantees on several natural examples: for example, linear separators under log-concave distributions or smooth boundary classifiers under smooth probability distributions.