cs.LGNov 30, 2025

Limitations of Using Identical Distributions for Training and Testing When Learning Boolean Functions

Authors: Jordi Pérez-Guijarro

Organizations: SPCOM Group, Universitat Politècnica de Catalunya, Barcelona, Spain

Abstract

When the distributions of the training and test data do not coincide, the problem of understanding generalization becomes considerably more complex, prompting a variety of questions. Prior work has shown that, for some fixed learning methods, there are scenarios where training on a distribution different from the test distribution improves generalization. However, these results do not account for the possibility of choosing, for each training distribution, the optimal learning algorithm, leaving open whether the observed benefits stem from the mismatch itself or from suboptimality of the learner. In this work, we address this question. That is, we study whether it is always optimal for the training distribution to be identical to the test distribution when the learner is allowed to be optimally adapted to the training distribution. Surprisingly, when we restrict our attention to efficient learners, i.e., those running in polynomial time, and assume the existence of one-way functions, the answer is negative. In other words, matching the training and test distributions is not always optimal.

Explore similar work

CardsList
  1. Testing Distributions Against Bounded Distinguishers

    Jul 17, 2026Mark Bun, Rathin Desai, Renato Ferreira PintoIntegral Probability Metrics

  2. Equivalence of Coarse and Fine-Grained Models for Learning with Distribution Shift

    May 7, 2026Adam R. Klivans, Shyamal Patel, Konstantinos Stavropoulos +1Halfspace LearningLearning with Distribution Shift

  3. Tight Stability Bounds for Robust Distributed Learning: Byzantine Failures Hurt Generalization More than Data Poisoning

    Jun 22, 2025Thomas Boudou, Batiste Le Bars, Nirupam Gupta +1Byzantine-Robust Federated LearningAlgorithmic Stability