A New Dimension: How Does Learning Theory Cope When Distributions Shift?

The paper proposes the epoch dimension, characterizing learning complexity under a finite number of distribution shifts, between the VC and Littlestone dimensions.
This article introduces the newly proposed "epoch dimension" (ED_n(H)) in learning theory, which characterizes the learning capability of staged questioning (simultaneous within a stage, adaptive between stages). This dimension lies between the VC dimension and the Littlestone dimension: when n=1 it equals the VC dimension, and when n is sufficiently large it equals the Littlestone dimension. The paper computes ED_n(H) for common hypothesis classes such as thresholds, unions of intervals, cubes, and half-spaces, and proves its additivity under products. The core result is that ED_n(H) precisely characterizes the learning complexity when the data distribution shifts at most n-1 times, providing a matching Ω(ED_n(H)) lower bound and an O(ED_n(H) log T) upper bound, and the algorithm of hierarchical SOA plus fixed share aggregation can achieve near-optimal error bounds without knowing the number of shifts. This work unifies the perspectives of i.i.d. learning and adversarial learning, providing a new theoretical tool for learning under distribution shift.
In learning theory, the VC dimension and the Littlestone dimension are two core concepts for characterizing the learning capability of a hypothesis class. The VC dimension measures the expressive power of a hypothesis class when answering all questions at once, and it governs learning from independent and identically distributed (i.i.d.) samples from a fixed distribution; the Littlestone dimension measures the maximum length of a question sequence that a hypothesis class can distinguish when questions can be adaptively adjusted based on previous answers, and it governs learning when samples are chosen adversarially. The classical settings of these two dimensions correspond to two extremes: "all questions posed simultaneously" and "each question depends on prior answers."
But in the real world, data distributions often shift abruptly—for example, sudden shifts in user interests, abrupt changes in market conditions, or changes in noise patterns caused by sensor failures. In such scenarios, questions are neither posed all at once nor fully adaptive; instead, they appear in stages, in batches: within each stage, questions are posed all at once, while between stages, questions can be adjusted based on prior answers. A recent paper proposes the "epoch dimension" (ED_n(H)) to characterize this staged learning capability, providing a new theoretical tool for understanding learning under distribution shift.

From VC Dimension to Littlestone Dimension: The Gap Between the Two Ends
The VC dimension and the Littlestone dimension may appear to be two independent concepts, but they actually represent two extremes of "how questions are posed" in a learning problem. The VC dimension corresponds to all questions being posed at once, where the learner must use a single hypothesis to answer all questions simultaneously; the Littlestone dimension allows questions to be dynamically adjusted based on previous answers, simulating an adversarial environment. For many hypothesis classes, the Littlestone dimension is larger than the VC dimension and can even be infinite.
So what if questions are neither posed all at once nor fully adaptive, but posed in stages? For example, questions are divided into at most n "epochs" (stages), where within each stage all questions are posed at once, but between stages adjustments can be made based on answers from previous stages. Under this setting, how many questions can a hypothesis class answer? The answer given by the paper is the epoch dimension ED_n(H).
The definition of ED_n(H) is intuitive: it measures the maximum number of questions that a hypothesis class H can answer across at most n stages, where within each stage all questions are posed simultaneously, and between stages questions can depend on previous answers. The key constraint is that all answers must be given by the same hypothesis, i.e., the hypothesis cannot change between stages. When n=1, ED_1(H) equals the VC dimension; when n is sufficiently large (n ≥ Littlestone dimension), ED_n(H) equals the Littlestone dimension. In between, ED_n(H) may lie strictly between the two. It is like building a bridge between the VC dimension and the Littlestone dimension.
VC dimension (Vapnik-Chervonenkis dimension) is a core metric in statistical learning theory for characterizing the complexity of a hypothesis class. For a hypothesis class H, the VC dimension is defined as the size of the largest sample set that H can "shatter"—that is, there exists a sample set of size d such that hypotheses in H can realize all 2^d possible binary labelings on that set. A finite VC dimension is a necessary and sufficient condition for a hypothesis class to be uniformly learnable (under i.i.d. sampling), and it determines the form of the generalization error bound: for a hypothesis class with VC dimension d, the generalization error converges at a rate of O(√(d/m)) (where m is the number of samples). Intuitively, the VC dimension measures the ability of a hypothesis class to distinguish labels of any fixed sample set "all at once," without involving the order of samples or adaptive selection. Therefore, when all questions are posed at once and the learner must answer them simultaneously, the VC dimension is the natural measure of learnability.
Littlestone dimension, on the other hand, originates from the online learning framework and characterizes the learning capability of a hypothesis class in an adversarial environment. It is defined as the length of the longest question sequence that the learner (or adversary) can force the hypothesis class to make a mistake on. Specifically, the Littlestone dimension considers a game process: in each round, the adversary selects a sample x, the learner predicts a label based on the current candidate hypothesis set, and then the adversary reveals the true label (which can be viewed as choosing the opposite of the prediction to maximize mistakes). A finite Littlestone dimension means there exists an online learning algorithm (such as the Standard Optimal Algorithm, SOA) that bounds the number of mistakes. Unlike the VC dimension, the Littlestone dimension allows questions to adaptively depend on previous answers, so it is typically greater than or equal to the VC dimension, and for some hypothesis classes (such as thresholds) it can be much larger than the VC dimension or even infinite. The Littlestone dimension governs the learning complexity when samples are chosen adversarially, independent of the distribution.
Concrete Computations: Thresholds, Unions of Intervals, and Cubes
The paper computes the epoch dimension for several common hypothesis classes. For thresholds, ED_n(H) = n+1; for unions of intervals, ED_n(H) = 2n; for cubes, ED_n(H) = 2dn. More generally, the paper proves that ED_n is additive under products. For half-spaces in R^d, ED_n(H) = dn+1. These results show how the epoch dimension grows linearly with the number of stages n and is related to the complexity parameters of the hypothesis class.
These computations are not only of theoretical significance but also provide guidance for practical algorithm design. For example, for half-spaces, ED_n(H) = dn+1 means that as the number of stages increases, the complexity of the learning problem increases linearly, but the rate of increase is determined by the dimension d. This suggests that in high-dimensional spaces, the additional complexity caused by distribution shift may be more significant.
Additivity of product hypothesis classes means: if a hypothesis class H can be decomposed into the Cartesian product of multiple hypothesis classes (i.e., H = H_1 × H_2 × ... × H_k, where each hypothesis acts on different coordinates or different parts of the sample), then ED_n(H) equals the sum of ED_n(H_i) of the components (under appropriate conditions). This additive property allows the epoch dimension of complex hypothesis classes to be computed by combining the dimensions of simpler classes. For example, a half-space in R^d can be viewed as a combination of d threshold functions (one threshold direction per dimension), so ED_n(H) = dn+1, which is consistent with the direct computation. The additive property is a desirable feature of the epoch dimension as a complexity measure, similar to the behavior of the VC dimension and Littlestone dimension under products (the VC dimension is also typically additive under products, and the Littlestone dimension has similar properties under products), but the additivity of the epoch dimension holds for any number of stages n. This property simplifies the analysis of high-dimensional hypothesis classes and provides a modular perspective for algorithm design.
Learning Under Distribution Shift: ED_n(H) Characterizes the Optimal Error Bound
The core contribution of the paper is proving that ED_n(H) characterizes the learning capability under distribution shift. The specific scenario is: a fixed concept labels the samples, but the sample distribution undergoes abrupt changes at at most n-1 unannounced times. In other words, the data distribution is piecewise stationary, but the change points are unknown. The learner's goal is to minimize the expected number of mistakes over T rounds.
The paper proves two matching bounds: any learner can be forced to incur Ω(ED_n(H)) expected mistakes; and a hierarchical version of the Littlestone Standard Optimal Algorithm (SOA), through fixed-share aggregation over possible restart times, can achieve O(ED_n(H) log T) expected mistakes without knowing n. These two bounds match in terms of ED_n(H) (up to logarithmic factors), indicating that ED_n(H) is the correct complexity measure for this problem.
The significance of this result is that it unifies the perspectives of i.i.d. learning and adversarial learning. When n=1, the distribution does not shift, ED_1(H)=VC dimension, and the error bound reduces to the classical VC dimension bound; when n is sufficiently large, the distribution can shift frequently, ED_n(H)=Littlestone dimension, and the error bound corresponds to the adversarial setting. In between, ED_n(H) smoothly interpolates, providing learning guarantees when the number of distribution shifts is finite.
Fixed share aggregation is a technique for aggregating experts in online learning, particularly suitable for non-stationary environments. In the standard weighted majority algorithm, each expert's weight is updated multiplicatively based on its performance, but the weights gradually concentrate on the best-performing expert, leading to slow response to distribution changes. Fixed share aggregation maintains continued attention to all experts by uniformly allocating a small fraction of weight to all experts (or according to a prior) in each round. Specifically, the weight update rule is: w_{t+1,i} = (1-α) * w_{t,i} * exp(-η * loss_{t,i}) / Z_t + α * prior_i, where α is the fixed share parameter and prior_i is the prior weight. This mechanism enables the algorithm to quickly adapt to shifts, because even if an expert performed poorly before, it retains some weight, and when the distribution shifts, that expert may become accurate again. In the context of the paper, fixed share aggregation is used to aggregate over possible restart times: each "expert" corresponds to a hypothesis that restarts accumulating loss after a certain time point. Through fixed share, the algorithm can approach the optimal error bound at a small additional cost (logarithmic factor) without knowing when and how many times shifts occur.
Practical Implications: Algorithm Design and Dimensional Understanding
From an algorithmic perspective, the strategy of hierarchical SOA plus fixed share aggregation provides a general method for handling distribution shift. It does not need to know the number of shifts n, nor when the shifts occur, and can achieve near-optimal error bounds. This adaptivity is valuable for practical applications, because in real scenarios shifts are often unknown.
From a theoretical perspective, the introduction of the epoch dimension fills the theoretical gap between the VC dimension and the Littlestone dimension. It shows that the complexity of learning depends not only on the expressive power of the hypothesis class but also on the pattern of how questions are posed and how the distribution changes. This perspective may inspire further research on complexity measures for non-stationary learning, continual learning, and related scenarios.
The paper also discusses the relationship between ED_n(H) and other dimensions, such as its additivity on product hypothesis classes and its specific values for half-spaces. These properties make ED_n(H) a computable and operational complexity measure, rather than an abstract existence concept.
Summary
The epoch dimension introduced in this paper provides a new theoretical framework for understanding learning under distribution shift. It lies between the VC dimension and the Littlestone dimension and precisely characterizes the learning complexity when the distribution undergoes a finite number of abrupt changes. The paper not only computes ED_n(H) for several common hypothesis classes but also proves matching error bounds and provides an adaptive algorithm. For researchers interested in learning theory and machine learning in non-stationary environments, this is a noteworthy development. It reminds us that the difficulty of learning depends not only on model capacity but also on the rhythm of how the world changes.
One-line Summary
The paper proposes the epoch dimension, which characterizes the learning complexity under a finite number of distribution shifts and lies between the VC dimension and the Littlestone dimension.
Paragraph Summary
This article introduces the newly proposed "epoch dimension" (ED_n(H)) in learning theory, which characterizes the learning capability of staged questioning (simultaneous within a stage, adaptive between stages). This dimension lies between the VC dimension and the Littlestone dimension: when n=1 it equals the VC dimension, and when n is sufficiently large it equals the Littlestone dimension. The paper computes ED_n(H) for common hypothesis classes such as thresholds, unions of intervals, cubes, and half-spaces, and proves its additivity under products. The core result is that ED_n(H) precisely characterizes the learning complexity when the data distribution shifts at most n-1 times, providing a matching Ω(ED_n(H)) lower bound and an O(ED_n(H) log T) upper bound, and the algorithm of hierarchical SOA plus fixed share aggregation can achieve near-optimal error bounds without knowing the number of shifts. This work unifies the perspectives of i.i.d. learning and adversarial learning, providing a new theoretical tool for learning under distribution shift.
Related articles

Flow Matching Parameterization Study: How Network Prediction Targets Determine Generation Quality
Tufts' Ping Li team systematically studies Flow Matching parameterization: x-flow vs v-flow errors, consistency loss design, decoupling deterministic prediction in conditional generation, and RL training for Flow language models.

Kick Hackers Off Your Network in 30 Seconds with Cisco ACLs
A hands-on demo of blocking hacker traffic in 30 seconds with a Cisco ACL: two rules, port application order, the implicit deny any trap, and why lab practice in a simulator beats memorizing commands.

AI Coding Agents vs. Writing Code by Hand: When to Do It Yourself, When to Let Go
When should you use AI coding agents, and when should you write code by hand? Drawing on a tech creator's experience, this article breaks down different approaches for learning, architecture, security-sensitive code, and low-risk frontend tasks, helping developers build a clear framework for deciding what to delegate.