How to Learn in an Echo Chamber
By Carolin Heinzler
2026-03-10
A learning theoretic framework to understand model collapse in learning and generation - Part I
Based on Learning in an Echo Chamber: Online Learning with Replay Adversary by Daniil Dmitriev, Harald Eskelund Franck, Carolin Heinzler, and Amartya Sanyal (SODA2026, FORC2026)
Model collapse is just one of many puzzles researchers are still trying to understand when it comes to the training of Large Language Models (LLMs). It describes the catastrophic collapse in performance when training on data that has been generated by another LLM, rather than human-generated data.
A related phenomenon in society is the echo chamber. The Cambridge dictionary defines it as: a situation in which people only hear opinions of one type, or opinions that are similar to their own. In this sense, model collapse is to training LLMs what an echo chamber is to human beliefs: both describe a feedback loop in which one learns from its own outputs.
We turn this fundamental mechanism of training on one's own belief into a learning-theoretic framework and study what fundamentally breaks when learning or generation relies on self-labeled data. That question led to two papers from our group that introduce a novel framework for this setting: replay.
In this blog post part 1, Carolin explores how learning can adapt to replay, while Giorgio turns to language generation with replay in part 2.
Online Learning with Replay Adversary
To understand what happens when training relies on self-labeled data, we first introduce the classical framework of online learning, when labeled data arrives in a stream:
Online Learning
For $t=1,\dots,T$:
- The learner predicts with a hypothesis $h_t\in\{0,1\}^\mathcal{X}$
- The learner receives $(x_t,y_t)$ where $y_t=f^\ast(x_t)$ for some $f^\ast \in\mathcal{H}$
- Mistake if $h_t(x_t)\neq f^\ast(x_t)$ (wrong prediction)
The learner’s goal is to minimize the number of mistakes up until time $T$: $M_T=\sum_{t=1}^T I\{h_t(x_t)\neq y_t\}$.
To simulate self-labeling using prior hypotheses, we introduce a replay adversary. This modifies only one part in the above protocol: the label shown to the learner need not always be the true label. Instead, the learner receives $(x_t,y_t)$, where $y_t$ is either the true label from $f^\ast$ or a replay label produced by some earlier hypothesis $h_i$ with $i<t$.
Online Learning with Replay Adversary
For $t=1,\dots,T$:
- The learner predicts with a hypothesis $h_t\in\{0,1\}^\mathcal{X}$
- The learner receives $(x_t,y_t)$ where $y_t$ is either given by
- True label $y_t=f^\ast(x_t)$ for some $f^\ast \in\mathcal{H}$ or
- Replay label $y_t=h_i(x_t)$ for some $i< t$
- Mistake if $h_t(x_t)\neq f^\ast(x_t)$ and $f^\ast(x_t)=y_t$ (wrong prediction on true label)
In the paper, we study the setting where samples $x_t$ are chosen adaptively throughout the game by an adversary, as well as the stochastic setting, where $x_t\overset{\mathrm{i.i.d.}}{\sim}\mathcal{D}$ for some unknown distribution $\mathcal{D}$. If the learner is restricted to predict with hypothesis $h_t$ from the hypothesis class $\mathcal{H}$ we call the learner proper, as opposed to improper.
Example: Thresholds
We give a simple example of learning a threshold function: consider the hypothesis class of thresholds $\mathcal{H}:=\{h_a:\mathcal{X}\rightarrow \{0,1\} \mid h_a=\mathrm{I}[\cdot \leq a], a\in [0,1]\}$. We first restrict ourselves to a finite domain $\mathcal{X}=\{1,\dots, N\}$.
In order to understand what can go wrong when we have a replay adversary, we study the Halving Algorithm: in every round, the learner predicts a threshold at exactly half-way between the largest 0 label and the smallest 1 label. This is the region where the learner is still uncertain, as there exist two potential targets in $\mathcal{H}$ that could give contradicting labels for every point in this region. When there is no replay, it is known that this strategy is indeed optimal to learn a threshold.
However, when there is replay, an issue can occur with this prediction strategy: as the learner might predict both zeros and ones over time in a region where it is still uncertain, this can create something that we denote a Trap Region. This is an interval of ambiguitiy the learner created, when there exist two past predictions which predict 0 and 1 in this interval, while still being uncertain, i.e. the learner has no way of knowing what the true label is.
Definition (Trap Region): We define the trap region at time $t$ as
$$ \begin{aligned} \mathrm{Trap}^{t}:=\{x\in\mathcal{X} \mid \exists & f,f'\in\mathrm{VS}^{t}\text{ and } h, h'\in\mathcal{H}^{t-1} \text{ s.t. } \\ & \{f(x), f'(x)\}=\{h(x), h'(x)\}=\{0, 1\}\}. \end{aligned}$$ Where $\mathrm{VS}^{t}$ denotes the reliable version space at time $t$ (hypothesis consistent with the samples certainly labeled by $f^*$) and $\mathcal{H}^{t-1}=\{h_{1},\dots,h_{t-1}\}$.
An adaptive adversary can continue playing samples in this region, and the learner has no way of knowing whether they made a true mistake or not. This constitutes a strategy of the adversary to force linear in $T$ mistakes for the learner. We illustrate an example of this in Figure 2.
More generally, we show that for any learner that predicts with both zeroes and ones in a region where it is uncertain (like Halving), there will always be a Trap Region and thus the learner makes linear in $T$ mistakes. Only a learner that predicts exclusively always zero or always one when uncertain can avoid to be trapped. This is exactly the closure algorithm: the learner predicts with the intersection of all hypothesis which are consistent with the samples observed thus far. Because the learner can only incur one sided mistakes (e.g. only false negative), whenever a mistake occurs the learner can trust this label as it cannot be replay.
This gives the following characterisation of mistakes on thresholds for a domain of size $N$:
Result 1 (Thresholds on $[N]$): Against any adaptive adversary, the closure algorithm $\mathcal{A}$ incurs at most $O({\min\{N,T\}})$ mistakes. Conversely, for all learners $\mathcal{A}'$, there exists an adaptive adversary that forces $\Omega({\min\{N,T\}})$ mistakes.
General Results
This principle generalises to more complex hypothesis classes: Any learner that does not predict 'conservatively' with the closure algorithm (i.e. consistently where the learner is uncertain) will create a Trap Region, which the adversary can exploit and enforces mistakes in $O(T)$ rounds. This makes the closure algorithm the optimal strategy for learning with a replay adversary.
Therefore, in order to characterize the mistakes, we need to understand the mistakes of the closure algorithm. For this we use the Threshold Dimension of a class:
Definition (Threshold Dimension): We define the threshold dimension of $\mathcal{H}$, denoted by $\mathrm{ThDim}(\mathcal{H})$, as the largest $k$ such that there exist $x_1, \ldots, x_k \in \mathcal{X}$ and $h_0, h_1, \ldots, h_k \in \mathcal{H}$ with $h_i(x_j) = \mathbf{1}[j \leq i]$.
For one dimensional thresholds, it is easy to see that the Threshold Dimension is the size of the class $N$. It is easy to see that for any intersection-closed hypothesis class, the Threshold Dimension exactly characterises the mistakes the learner can make in the worst-case.
To extend this to general non-intersection-closed hypothesis classes, we note two things:
- For general classes $\mathcal{H}$ the closure algorithm predicts with the intersection of all hypotheses in the class, which are consistent with the observed labels. Thus, also for general classes, this learner makes at most $\mathrm{ThDim}(\overline{\mathcal{H}})$ mistakes, where $\overline{\mathcal{H}}$ denotes the intersection-closure of $\mathcal{H}.$
- For some classes that are not intersection-closed, there may exist a bijective transformation to make them intersection-closed. As an example, take a union closed class: the naive closure algorithm would make $\mathrm{ThDim}(\overline{\mathcal{H}})$ mistakes but $\overline{\mathcal{H}}$ is a much bigger class than necessary and this causes a huge blowup. However, it is easy to see that flipping all labels $y_t'=1-y_t$ creates an intersection-closed class of the same size as $\mathcal{H}$ and learning in this transformed space leads to fewer mistakes.
This transformation of a class, is called $f$-representation (see Ben-David[1]) for any function $f:\mathcal{X}\rightarrow\{0,1\}$. This is formally defined as $\mathcal{H}^{f}=\{h^f= h\bigoplus f\mid h\in\mathcal{H}\}$.
We show, that for functions of VCdim 1, there exists an $f$-representation to make the class intersection-closed. However, in general, we do not know of a characterisation of when such a transformation exists or how to find it efficiently and we leave this as a more general open question. Since publication, work by Manurangsi[2] has resolved this question, we refer to his paper for details.
This leads us to the definition of the Extended Threshold Dimension which we find to characterise learnability for arbitrary hypothesis classes $\mathcal{H}$.
Definition (Extended Threshold Dimension): We define the extended threshold dimension of $\mathcal{H}$ as $$\mathrm{ExtDim}(\mathcal{H}) := \min_{f:\mathcal{X}\to\{0,1\}} \mathrm{ThDim}\bigl(\overline{\mathcal{H}^f}\bigr).$$
Result 2 (General $\mathcal{H}$): Against any adaptive adversary, the closure algorithm $\mathcal{A}$ (operating on $\overline{\mathcal{H}^{f}}$) incurs at most $\mathrm{ExtDim}(\mathcal{H})$ mistakes to learn $\mathcal{H}$. Furthermore, for any learner $\mathcal{A}'$ of $\mathcal{H}$, there exists an adversary that forces $\Omega\bigl(\mathrm{ExtDim}(\mathcal{H})\bigr)$ mistakes.
We include an animation in Figure 2 to illustrate how to determine the Threshold Dimension for a given function $f$ of $\overline{\mathcal{H}^f}$. The Extended Threshold Dimension is then obtained at the minimum $f$-representation.
We furthermore show an interesting result on the connection of proper learnability and intersection-closedness of a class:
Result 3 (proper learnability $\leftrightarrow$ intersection-closed): A class $\mathcal{H}$ is properly learnable in the replay setting, if and only if there exists an $f$-representation of the class $\mathcal{H}$ such that $\mathcal{H}^f := \{h^f \mid h\in\mathcal{H}\}$ is intersection-closed.
We refer the interested reader to our full paper for proofs and also a similar characterisation for the stochastic adversarial setting, where samples $x_t$ are sampled i.i.d. from some unknown distribution and not adversarially chosen.
The Final Takeaway
The main finding from our work is that the closure algorithm is the optimal algorithm to learn $\mathcal{H}$ in the replay setting, as any other strategy can be exploited by the replay adversary to enforce linear in $T$ mistakes. This indicates that the replay adversary which can in any round choose to replay a label is quite powerful and limits quick progress when learning. An interesting question is to relax the power of the replay adversary , i.e. a stochastic label setting, replay only after $k$ times, or limiting the amount of replay labels. Furthermore, we have the unresolved open questions of characterising, when there exists an $f$-representation to transform a class into an intersection-closed class.
Reference: Shai Ben-David, 2 Notes on Classes with Vapnik-Chervonenkis Dimension 1, arxiv 2015 ↩︎
Reference: Pasin Manurangsi, On the Computational Complexity of (Extended) Threshold Dimension and (Semi-)Ladder Index, arxiv 2026 ↩︎