Tolerance Makes Robust Learning Computable

Recent theory asks what happens to learning guarantees when the learner must be an actual program. A striking answer is that requiring adversarial robustness makes this much harder. A classifier is adversarially robust if it keeps its prediction when an adversary nudges the input within an allowed set of perturbations. Gourdeau, Lechner and Urner showed that a hypothesis class can be learnable by a program, and robustly learnable by an idealized unconstrained learner, yet not robustly learnable by any program. The same paper shows that the obvious combinatorial measure of difficulty, their computable robust shattering dimension, is necessary but not sufficient for robust learnability by a program. The two constraints compound in ways neither shows alone, and no characterization of the combined setting is known.

This proposal argues that the missing ingredient is tolerance. Tolerance is a relaxation, already studied for sample complexity, in which the learner is judged at a small perturbation radius but only needs to compete with the best hypothesis that is robust at a slightly larger radius. We conjecture that tolerance removes the extra difficulty that computability adds to robustness. The mechanism is to round every input to a point of a computable finite grid before classifying. This turns the infinite "for every perturbation" check into a finite, decidable check on labeled points. Robust learning then reduces exactly to ordinary learning by a program on an enlarged sample. The goal is a clean theorem: under tolerance, robust learnability by a program coincides with ordinary learnability by a program, with a sample-complexity cost logarithmic in the grid size.

Core Claim

Setting. Fix a domain $X$ and two perturbation maps $U \subseteq V$. For each point $x$, $U(x)$ is the set of allowed perturbations the learner is evaluated against, and $V(x) \supseteq U(x)$ is an enlarged set used only to define the comparison hypothesis. The $U$-robust risk of a predictor $g$ is $R_U(g) = \Pr_{(x,y)\sim D}[\exists z \in U(x): g(z) \neq y]$. A learner $A$ is a tolerant robust computable learner for class $H$ if it is a Turing machine that outputs computable predictors satisfying

$$\Pr_{S\sim D^m}\Big[R_U(A(S)) \le \inf_{h\in H} R_V(h) + \epsilon\Big] \ge 1-\delta .$$

The key object. Call the pair $(U,V)$ computably quantizable with budget $N$ if three conditions hold. First, there is a computable map $\pi: X \to X$. Second, there is a computable procedure that, given $x$, lists the finite set $\pi(U(x))$, which has at most $N$ elements. Third, $\pi(U(x)) \subseteq V(x)$ for every $x$. This is the abstract, Turing-computable version of the global grid discretization in the "RERM-and-Discretize" learner of Simplifying Adversarially Robust PAC Learning With Tolerance. In that setting, $\pi$ snaps a point to a nearby grid point and $\log N$ scales like $d\log(1+1/\gamma)$.

Why quantization helps. If $h^*\in H$ is robust on $V(x)$, then $h^*\circ\pi$ is robust on $U(x)$. The robust loss of any composed predictor $h\circ\pi$ at a labeled example $(x,y)$ is decided by checking $h$ on at most $N$ explicitly listed points, all of which must receive label $y$.

Reduction. Robust learning of $H\circ\pi$ therefore becomes standard realizable learning of $H$ on a finite sample of at most $mN$ labeled points.

Sample complexity. A Sauer–Shelah count over those $mN$ points shows the robust loss class has VC dimension $O(\mathrm{VC}(H)\log N)$. This gives a realizable sample complexity of $\tilde O\big((\mathrm{VC}(H)\log N + \log(1/\delta))/\epsilon\big)$.

Conjecture. We conjecture a characterization. A class is improperly learnable by a program in the realizable case if and only if it is tolerant-robustly learnable by a program for every computably quantizable pair. Necessity comes from the trivial pair $U=V=\{x\}$ with $\pi$ the identity. Sufficiency comes from the reduction, combined with the result of Find a witness or shatter: the landscape of computable PAC learning. That paper characterizes program-learnability by finiteness of an effective VC dimension, where every unrealizable labeling must be exhibited by a program. It also shows that every improperly program-learnable class sits inside a properly program-learnable one.

If the conjecture holds, it explains the sufficiency gap in On the Computability of Robust PAC Learning. Their Theorem 17 shows the robust loss itself can be uncomputable, which is exactly what a shattering-style dimension cannot see. Tolerance plus quantization makes the loss of the learner's own outputs computable, and that removes the obstruction.

Research Program

Stage one: the positive theorem. We will prove the reduction in the realizable setting with full care about what the learner must compute. It must enumerate $\pi(U(x_i))$ for each training point and run a consistent-hypothesis search for $H$ on the enlarged sample.

That search is where computability bites. On characterizations of learnability with computable learners shows that proper learning by a program with computable sample complexity requires a computably implementable empirical risk minimizer, meaning a program that finds a hypothesis with lowest training error. We therefore state two versions of the result. The proper-over-$H$ version assumes such a minimizer exists. The improper version applies the embedding of Delle Rose et al. and learns $H'\circ\pi$, where $H'\supseteq H$ is the properly learnable superclass. We must verify one step: that the superclass admits a computable consistency procedure on arbitrary finite samples, not just the sample sizes their construction uses. We flag this as the first place the argument could break.

The output $h\circ\pi$ is generally not in $H$. The result is therefore consistent with VC Classes are Adversarially Robustly Learnable, but Only Improperly, which proves proper robust learning can fail for VC dimension 1. It also dissolves the tension raised in the file between that paper and Delle Rose et al.'s collapse of improper to proper learning. The improperness needed for robustness lives entirely in the composition with $\pi$. The collapse concerns only the base class.

Stage two: tightness. We will show each hypothesis of the theorem is needed through two constructions.

The first is a pair $(U,V)$ with a bounded but uncomputable quantizer. We aim to show that some class learnable by a program then fails to be tolerant-robustly learnable by a program. The construction adapts the Halting-problem encodings of On Learnability wih Computable Learners so that listing $\pi(U(x))$ would decide halting.

The second is a computable quantizer with unbounded $N$. Here we expect statistical failure of the kind Montasser et al. exhibit, since the robust loss class can then have infinite VC dimension.

We will also test the classes behind Theorems 15 and 16 of Gourdeau et al. We will check whether natural enlargements of their perturbation sets are quantizable. If so, those counterexamples become learnable under tolerance. If not, we will have found a new obstruction that survives tolerance, which would falsify the conjecture in its strong form.

Stage three: continuous domains. Gourdeau et al. explicitly leave $\mathbb{R}^d$ open, and here the quantizer meets a real obstacle. In computable analysis (Type-2 computability, where a real number is given by an ever-finer stream of rational approximations), exact rounding to the nearest grid point is discontinuous and hence uncomputable. The difficulty sits at ties.

Tolerance appears to be exactly what licenses a fix. We can use "some grid point within $\eta$", which is computable as a multi-valued function. Any choice lands inside $V(x)$ when the radii are chosen so that $r+\eta \le (1+\gamma)r$. The cost is that the output predictor now depends on the name, meaning the particular approximation stream, of the input rather than on the point itself. We will determine whether the tolerant guarantee survives this non-extensional prediction. We conjecture it does, because the argument above only uses $\pi(z)\in V(x)$. This would make the discretization step of Adversarially Robust Learning with Tolerance and its simplified successor genuinely implementable, a question neither paper addresses.

Stage four: the agnostic case. Here we expect only a partial result. Agarwal et al. show agnostic learning by programs fails even for decidably representable classes of VC dimension 1. We will therefore state the agnostic theorem under the stronger assumption of a computable empirical risk minimizer on finite samples, and not claim a characterization.

Baselines

Because the contribution is primarily theoretical, the baselines are prior results that answer the same question less well. There is also a small empirical component with its own reference points.

Do-nothing reference. This is the untolerant setting of On the Computability of Robust PAC Learning. There the only general statement is that a finite computable robust shattering dimension is necessary, and Theorem 26 shows it is insufficient. Beating it means giving a condition that is both necessary and sufficient, even if only within the tolerant regime. It also means showing concretely that at least one of their counterexample classes becomes learnable once tolerance is added. We will compare on the same countable domains, $\mathbb{N}$ and $\mathbb{N}\times\mathbb{N}$, using the same perturbation sets enlarged minimally.

Strongest statistical baseline. This is the tolerant learner of Simplifying Adversarially Robust PAC Learning With Tolerance, with realizable sample complexity $\tilde O(\mathrm{VC}(H)\cdot d/\epsilon)$ under unconstrained computation. A fair comparison uses the same metric setting and the same tolerance parameter. Beating it does not mean a smaller bound. It means matching that bound up to constant and log factors, with $\log N$ in place of $d$, while the learner is a Turing machine. The prior result presupposes real arithmetic and exact rounding, and we remove that presupposition.

Tolerant empirical risk minimization. Robust Empirical Risk Minimization with Tolerance obtains proper-style learning for regular classes, but assumes a tolerant robust minimization oracle. Our result is stronger exactly when we replace that oracle with the quantizer plus a consistency search, without losing the rate.

Key ablation: tolerance without computable quantization. This is the uncomputable-quantizer construction from stage two. If a class that is both tolerant-robustly learnable in the unconstrained sense and learnable by a program still fails under an uncomputable quantizer, then it is the computability of $\pi$, not tolerance itself, that does the work.

Empirical reference points. The strongest reported numbers in the file are AutoAttack robust accuracy of 71.0% on ImageNet-1K for a ViT-g trained with AdvXL, from Revisiting Adversarial Training at Scale. The file also reports 53.3% CIFAR-10 union accuracy after fine-tuning with RAMP. We do not aim to beat these. We use pretrained models of this kind as the base $h$ and measure what quantization costs them.

Why not just…?

Why not just add a computable robust empirical risk minimizer, mirroring Sterkenburg's characterization? Sterkenburg's Theorem 8 characterizes proper learning by programs with computable sample complexity as finite VC dimension plus a computable minimizer. The robust analogue cannot work. Montasser et al. show proper robust learning can have infinite sample complexity at VC dimension 1, no matter how the minimizer is computed. Any characterization must therefore be improper, and our composition with $\pi$ supplies exactly the improper step.

Why not just replace the 0-1 robust loss with a Lipschitz surrogate? On Proper Learnability between Average- and Worst-case Robustness restores proper learnability with Lipschitz robust losses. Two problems remain. The result is purely statistical, so the minimizer still needs to be found. It also changes the target: it bounds a smoothed loss, not worst-case error on $U(x)$. Theorem 17 of Gourdeau et al. warns that loss-level fixes do not guarantee the loss is computable. Our reduction keeps the worst-case target and makes computability explicit.

Why not just give the learner an attack oracle that returns counterexamples? This is the most serious alternative, and Gourdeau et al. list it as open. An exact oracle trivially makes the robust check decidable relative to itself, so the whole question relativizes away. The substantive question is whether something weaker and actually implementable suffices. A computable quantizer is such a thing: it answers "is $h$ robust at $x$" for composed predictors without any oracle. We will settle this by showing a strict separation. We aim for a pair where exact robustness queries for arbitrary $h\in H$ are uncomputable, yet a bounded computable quantizer exists, so our learner succeeds without the oracle. If no such separation exists, the proposal reduces to "quantizers are cheap oracles", and we would report that honestly.

Why not just discretize and stop, since the proofs already live on countable domains? On $\mathbb{N}$ discretization looks vacuous, but it is not. The perturbation sets in the constructions can be infinite, and the uncomputability comes from quantifying over them. Our condition asks for a finite, computably listable image inside the enlarged set, which is nontrivial even on $\mathbb{N}$. In $\mathbb{R}^d$ the naive rounding map is itself uncomputable, which is precisely stage three.

Proposed Experiments and Decisive Checks

Decisive theoretical checks. Three outcomes decide the project. First, a complete proof of the realizable reduction, including the consistency-search step through the Delle Rose et al. embedding. Second, the uncomputable-quantizer counterexample. Third, a verdict on the Gourdeau et al. Theorem 15–16 classes: either they become learnable under natural tolerant enlargements, or they yield an obstruction that survives tolerance. Either verdict is informative, and the second would falsify the strong conjecture.

Synthetic executable check. We will implement the stage-one learner on the countable-domain classes used in the file's cited papers, such as thresholds on even integers. We will also use Halting-encoded classes, simulating each machine for a bounded number of steps so the class is finitely representable at each budget. On truncated domains, exact robust risk can be computed by enumeration. We will plot robust error against sample size and check the predicted $1/m$ decay with a slope depending on $\log N$. We will compare against an untolerant learner that must search the full $U(x)$, which should stall or fail as the step budget grows. Neither side has published numbers: no reported result found on Lacuna for executable versions of these constructions.

Small empirical relevance check. We take RobustBench models (RobustBench) on CIFAR-10 and prepend a test-time quantizer with spacing $\eta$. Our variant is the multi-valued Type-2-style version that rounds from a finite-precision approximation. We then measure AutoAttack robust accuracy at radius $\epsilon$. Quantization can defeat gradient-based attacks by blocking gradients, so we will also report the black-box Square Attack component alone.

The theorem guarantees pointwise that the quantized model at $\epsilon$ is at least as robust as the original at $\epsilon+\eta$. The open empirical question is how much clean and robust accuracy quantization costs relative to the original at $\epsilon$. For reference, RobustBench reports that original publications overestimated robust accuracy "sometimes by more than 10%". A cost well within that margin at useful $\eta$ would show that the price of computability is practically negligible. A large cost would show that the tolerance the theory needs is too coarse for image-scale use.