The Complexity of Oracle-Efficient Realizable Transductive Learning

Changlong Wu

It’s late, you’ve got a stack of papers to get through, and you’re probably wondering: Why can’t we just have nice things in online learning? Specifically, why can't we have algorithms that are both computationally efficient and mathematically optimal?

This paper by Changlong Wu dives into a classic tension in machine learning: the gap between what is information-theoretically possible and what is computationally feasible.

TL;DR

In a perfect world (the "realizable" setting), we know a perfect answer exists. If we had infinite computing power, we could find it with very few mistakes—logarithmic in the number of possibilities. This paper proves that if you’re restricted to using standard optimization tools (ERM oracles) and a reasonable amount of time, you’re stuck making far more mistakes, matching the much worse "agnostic" rate.

What Problem Does This Paper Address?

Imagine you’re playing a game where you have to predict binary labels for a sequence of $T$ items. You already know all the items in advance (this is the transductive setting), and you know that one of $N$ possible "rules" (hypotheses) explains the labels perfectly (the realizable setting).

If you could see all $N$ rules at once, you’d use the Halving Algorithm: predict the majority vote of all rules consistent with what you’ve seen so far. This guarantees you’ll make at most $\log_2 N$ mistakes.

The catch? $N$ is usually massive. Counting rules or finding the majority is often NP-hard. In practice, we use an Empirical Risk Minimization (ERM) oracle—a black box that finds the single best rule for a given set of weighted data. It’s the backbone of how we actually train models.

The big question is: Can an algorithm using only a polynomial number of ERM calls match the $\log N$ mistake bound of the Halving Algorithm?

Methods

The author answers with a resounding "No." To prove this, they construct a "hard" instance of a learning problem that acts like a computational trap.

The core of the proof is a Composition Lemma. The idea is to take two hard prediction problems and stack them.

  1. The Comparison Branch: A large set of "distractor" rules.
  2. The Embedded Branch: A smaller set containing the actual target rule, hidden behind a specific prefix.
Figure 1: Composition of two realizable class–label pairs. The comparison branch contains 𝐺× 𝐶𝐷. The embedded branch contains the fresh class 𝐸(𝐹) only after the realized prefix 𝑢. The label sequence 𝑢∥𝐸(𝑣) belongs to the embedded branch.

The author uses a random embedding and some heavy-duty math (Boolean hypercontractivity and Fourier analysis) to show that an ERM oracle is essentially "blind" to the embedded branch. Unless the oracle happens to stumble upon the exact right weights, it will almost always return a rule from the distractor branch. By iterating this composition, the author builds a hypothesis class where the learner is forced to make many mistakes before the oracle can "see" the truth.

Datasets

As a theoretical work, this paper does not use empirical datasets. Instead, it constructs synthetic, worst-case hypothesis classes $\mathcal{H} \subseteq \{0, 1\}^T$ to prove the lower bounds.

Key Insights and Ideas

  • The Oracle Blind Spot: Even a very strong "weighted-ERM" oracle (which can handle arbitrary real-valued weights) can't see fine-grained structure if it's hidden well enough. It tends to get "stuck" on the high-volume part of the hypothesis space (the comparison branch).
  • Realizability Doesn't Buy Efficiency: Usually, knowing a problem is "realizable" (a perfect solution exists) makes it much easier. This paper shows that for oracle-efficient learners, the realizable setting is just as hard as the "agnostic" setting (where no perfect rule exists).
  • Sharp Separation: There is a fundamental "price" for using an optimization oracle instead of full access to the hypothesis class. That price is the jump from $\log N$ mistakes to $\sqrt{T \log N}$ mistakes.

Key Results

  • The Main Lower Bound: For a class of size $N = 2^{T^\beta}$, any randomized learner using a polynomial number of oracle queries will make at least $\Omega(\sqrt{T \log N})$ mistakes in expectation. This perfectly matches the upper bound of "random playout" algorithms, showing we can't do better.
  • Small Class Persistence: Even for much smaller classes (where $\log N \approx (\log T)^2$), the gap remains. The Halving algorithm would make very few mistakes, but an oracle-efficient one is forced into an exponential number of mistakes relative to that baseline.
  • Stronger Oracle, Same Result: The lower bound holds even if the oracle is allowed to return the entire maximizing trace and handle any real-valued linear objective.

Limitations and Future Work

  • Query Budget: The results specifically target "polynomial" query budgets. If you allow an exponential number of queries, you can eventually "reconstruct" the hypothesis class and run the Halving algorithm (as noted in Remark 10.2).
  • Structural Assumptions: The paper deals with "arbitrary" finite classes. The author notes that if the hypothesis class has specific structural properties (like being very "small-loss" friendly), better bounds might be possible.
  • The Gap for Small Classes: For the smallest classes, there is still a gap between the author's lower bound and the best known upper bounds. Closing this gap is an open question.

In short: if you were hoping your ERM-based learner would magically find the "Halving" shortcut just because the data is clean, this paper is the cold shower. Computation has a cost, and in online learning, that cost is paid in mistakes.

Summary updated

Abstract

In realizable transductive online learning, the learner knows the entire sequence of $T$ instances in advance, and the labels are consistent with one of $N$ hypotheses. With explicit access to the hypothesis class, the halving algorithm makes at most $\log_2 N$ mistakes. Can a comparable guarantee be achieved using only polynomially many empirical risk minimization (ERM) queries? We answer this question negatively, even for a weighted-ERM oracle that optimizes arbitrary real-valued linear objectives and returns a complete maximizing hypothesis. For every fixed $β\in(0,1)$ and every randomized learner making polynomially many oracle queries, there exists a fixed realizable instance with exactly $N=2^{\lfloor T^β\rfloor}$ hypotheses on which the learner makes $Ω_β(\sqrt{T\log N})$ mistakes in expectation. This matches the agnostic-rate upper bound achieved by random playout using $O(T)$ oracle calls. The separation persists for much smaller classes as well: along a sequence with $\log N=Θ((\log T)^2)$, we establish a mistake lower bound of $\exp(Ω(\log T/\log\log T))$. Our main technical contribution is a composition lemma that combines two realizable prediction problems such that their mistake lower bounds add, up to a small loss, while their hypothesis class sizes grow only additively. Iterating this lemma yields a family of hard instances spanning the desired parameter regimes, establishing a sharp separation between information-theoretic and oracle-efficient mistake guarantees.
BibTeX
@misc{wu2026complexity,
  author = {Changlong Wu},
  title = {{The Complexity of Oracle-Efficient Realizable Transductive Learning}},
  year = {2026},
  eprint = {2611.28757},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.28757},
}
Figure