Certified Routing: Per-Level Noise Voting for Coarse-to-Fine Classifiers

A hierarchical classifier first makes a broad decision, such as "animal or vehicle," and then hands the input to a specialist that picks the fine label, such as "truck or bus." This design is fragile under attack. If an adversary flips the first decision, the specialist that receives the input cannot output the correct answer at all. A separate family of defenses, stochastic ensemble voting, gives provable protection. It classifies many noisy copies of the input and takes the majority vote. When the noise is Gaussian, this is randomized smoothing, which comes with a certificate: a radius within which no perturbation can change the vote. The catch is that one noise level must serve every distinction. Broad distinctions survive heavy noise, while fine distinctions are destroyed by it.

We propose to smooth each level of the hierarchy separately, with its own noise scale and its own vote. Heavy noise protects the routing decision, and light noise protects the choice of specialist. Each decision gets its own certificate. Inside the coarse radius the route is provably fixed, so the adversary cannot misroute the input. The output is a graded guarantee, for example "certified vehicle out to radius 1.0, certified truck out to 0.25." A flat smoothed model with one noise scale cannot produce this graded guarantee. Prior hierarchical defenses also cannot produce it, because they route deterministically.

Core Claim

Consider a coarse classifier $f_c$ and fine experts $f^{(k)}$, one per coarse group $k$. Each is trained under Gaussian noise of scale $\sigma_c$ or $\sigma_f$ respectively. We define the smoothed router and the smoothed expert as the majority vote of each under its own noise. Applying the Neyman–Pearson certificate of Certified Adversarial Robustness via Randomized Smoothing separately at each level gives the following. The coarse label is certified at radius $R_c$, and the expert's label within the certified branch is certified at radius $R_f$. Each radius has the form

$$R_\ell = \frac{\sigma_\ell}{2}\left(\Phi^{-1}(\underline{p_{A,\ell}}) - \Phi^{-1}(\overline{p_{B,\ell}})\right).$$

Here $\ell$ is the level (coarse or fine), $\underline{p_{A,\ell}}$ is a lower confidence bound on the vote share of the top label, $\overline{p_{B,\ell}}$ is an upper bound on the runner-up's share, and $\Phi^{-1}$ is the inverse standard normal CDF. The fine label of the full cascade is then certified at radius

$$R_{\text{leaf}} = \min(R_c, R_f).$$

This holds because the route cannot change inside $R_c$, and the expert's vote cannot change inside $R_f$. The confidence level is split across the two tests (Bonferroni). When the fine vote cannot be certified, the system falls back to the certified coarse label instead of abstaining.

The argument is short, and the theory is not the contribution. The contribution is an empirical claim that may or may not hold. We claim that decoupling the noise scales gives strictly better certified accuracy at the coarse level for large radii, and no worse accuracy at the leaf level, than any single-noise flat smoothed model at matched compute. There is one simple reason to expect this. With $n$ Monte Carlo samples, a certificate's radius saturates near $\sigma\,\Phi^{-1}(1-\alpha^{1/n})$, which is roughly $4\sigma$ at realistic $n$. A flat model tuned for fine labels therefore cannot certify coarse labels far out, whatever its margin.

Relation to Prior Work

Two hierarchical defenses motivate the problem by showing that routing is the weak point. HAR composes a coarse network and fine networks through Bayes' rule and adversarially trains each part. It gains strongly on CIFAR-10 and on the 25-class CIFAR-100-5x5 subset (52.32% vs 42.20% robust accuracy). On full CIFAR-100 it gains almost nothing (24.40% vs 24.00% under 200-step PGD), and it offers no certificate. HD-CNN learns the hierarchy from a confusion matrix and routes softly to expert heads. It cuts CIFAR-100 top-1 error by 2.65% and gets 2.8x–6.3x speedups from running only the likely experts. However, its gate is a deterministic softmax and was never tested against attack. We reuse HD-CNN's confusion-based hierarchy discovery. Unlike both papers, we make the routing decision itself a certified vote.

Two smoothing papers use the word "hierarchy" in ways that differ from ours, and so they set our novelty boundary. Adaptive Hierarchical Certification smooths a flat segmentation model under one noise scale and relabels unstable pixels to a parent class after the fact. It reduces abstention by up to 35 points on COCO-Stuff-10K. We borrow its partial-credit metric, Certified Information Gain, but our model is decomposed and each level has its own noise. Hierarchical Randomized Smoothing places the hierarchy in the noise over input entities and keeps the label space flat. Adaptive Smoothing mixes a clean model and a robust model through a learned gate. It reaches 85.21% clean and 38.72% AutoAttack accuracy on CIFAR-100, and its authors name the gate as an attack surface. Our router is the analogue of that gate, but it carries a certificate.

The constraints come from the multi-pass literature. Hayes, Li et al., and Denoised Smoothing all note that certification requires thousands of forward passes. Any design that doubles the passes must earn that cost back, so compute is a first-class metric here.

Research Program

We will build the cascade on three label structures. The first is CIFAR-10 with HAR's animal/vehicle split. The second is CIFAR-100 with its native 20 superclasses of 5 classes each. The third is ImageNet with a two-level hierarchy, built two ways: from WordNet, and by spectral clustering of a flat model's confusion matrix as in HD-CNN.

The router is a small network that sees only the coarse groups, trained with Gaussian noise augmentation at a large $\sigma_c$. Each expert is a narrower network that sees only its group's classes, trained at a small $\sigma_f$. Experts may also be trained on inputs from neighboring groups so that they can reject them.

At inference, the router's Monte Carlo vote runs first. If the coarse test certifies, only the selected expert is sampled. Because the coarse margins are wide, the router can stop sampling early using a sequential test. We will analyze how to split a fixed budget of forward-pass FLOPs between the two levels. We will also vary the noise scales jointly to trace a two-dimensional frontier of coarse radius against leaf radius.

A secondary analysis tests the hypothesis that HAR's collapse on full CIFAR-100 came from adversarially training a 20-way deterministic router. If so, coarse certified accuracy under heavy noise should stay well above the coarse accuracy HAR obtains empirically.

Baselines

The naive reference point is the undefended flat network, along with the same network under single-noise smoothing with no hierarchy. Together these show the base level that every method improves on.

The strongest certified competitor is flat randomized smoothing in the style of Cohen et al., with coarse labels obtained by summing the vote shares of each superclass's fine classes. This is the classification analogue of AdaptiveCertify's post-hoc fallback. It is the strongest competitor because it already provides graded coarse and fine certificates from one model. We will sweep it over the same set of noise scales and use the same backbone family. Its sample budget will match the cascade's total FLOPs, not its number of passes. The only reported figure for this method on our benchmarks is 49% certified top-1 accuracy at $\ell_2$ radius below 0.5 on ImageNet, from Cohen et al. The file has no reported Cohen-style certified CIFAR-100 number on Lacuna, so we will produce our own. To beat this baseline, the cascade must show higher certified coarse accuracy at radii above $4\sigma_f$ and no lower certified leaf accuracy at any radius, at equal FLOPs.

The key ablation isolates decomposition from decoupled noise. It runs two flat full-label smoothed models, one at $\sigma_c$ used only for its aggregated coarse vote and one at $\sigma_f$ used for the leaf. It is matched in FLOPs and tuning budget. A second ablation keeps the cascade but uses one shared noise scale, which isolates the effect of decoupling.

The empirical competitors are HAR and Adaptive Smoothing, run from the Adaptive Smoothing code. Their reported CIFAR-100 numbers are 24.40% under PGD200 for HAR and 38.72% under AutoAttack for Adaptive Smoothing. The file does not state the threat norm for these numbers. We will therefore rerun both under $\ell_2$ attacks, including HAR's worst-case cross-group targeted attack. We will compare their empirical accuracy with our certified accuracy, which is a lower bound on ours, and also with our empirical accuracy under attacks on the smoothed cascade.

Why not just…?

Why not just run flat smoothing and sum the vote shares into superclasses? This baseline gives coarse certificates for free. Its weakness is that its noise scale is set for fine labels, so its coarse radius saturates near four times that scale. That limit is the motivation for the proposal, but it is a prediction and not an established result. The flat-aggregation baseline at matched FLOPs settles the question directly.

Why not just run two flat smoothed models at two noise scales? This is the real threat. It keeps decoupled noise without any hierarchy. If it matches the cascade at equal compute, the honest conclusion is that per-level noise scales are what matter and the decomposition adds nothing to certification. In that case we would recast the work as multi-scale certification of flat models, and the hierarchy would be justified only by compute. The cascade's possible edge is a 20-way router and 5-way experts that are cheaper per pass and specialized. HD-CNN's speedups suggest this edge exists, but under noise it is untested. The two-flat-model ablation decides the matter.

Why not just adversarially train a hierarchical model, as HAR does? HAR's near-zero gain on full CIFAR-100 and its lack of any certificate are the evidence against relying on it. Its deterministic router remains attackable, as the worst-case targeted attack in HAR shows for flat models. Our rerun of HAR under the same $\ell_2$ targeted attack will show whether certified routing keeps more coarse accuracy.

Why not just draw more samples from a flat model? More samples raise the saturation cap only logarithmically and cost linearly. The FLOPs-matched comparisons already give flat models the same budget.

Proposed Experiments

The first decisive check plots coarse certified accuracy against radius on CIFAR-100 and ImageNet for the cascade, flat aggregation, and two flat models. The cascade's advantage should appear at radii beyond $4\sigma_f$.

The second check plots leaf certified accuracy against radius. The cascade must not fall below single-scale flat smoothing at the best tuned noise scale.

The third check measures Certified Information Gain and abstention rate. This tests whether falling back to the certified coarse label beats post-hoc relaxation of a flat model.

The fourth check measures FLOPs per certified prediction, with and without early stopping of the router. The cascade should come in at or below flat smoothing.

The fifth check runs the worst-case cross-group targeted attack, empirically, at radii beyond $R_c$. It measures how often routing fails once the guarantee lapses, and whether such failures come back as coarse errors or are caught by expert rejection.

Comparing the WordNet hierarchy with the confusion-based hierarchy tests whether hierarchies learned from a model's confusions also give better certified margins. If the two-flat-model ablation matches the cascade on the first two checks, we will report that result as the main finding and narrow the claim accordingly.