Steering Layer Learning Rates with Held-Out Classes for Open-Set Recognition

A classifier trained on a fixed set of classes has no built-in way to say "none of the above." When shown an unfamiliar bird species it confidently picks the nearest familiar one. Open-set recognition is the task of classifying known classes correctly while also flagging inputs from classes never seen in training. The most sobering result in this area is that a well-trained ordinary classifier, scored by its largest raw output (the maximum logit), matches most specialized open-set methods. The same work found that open-set detection quality tracks closed-set accuracy with a correlation of 0.95 (Open-Set Recognition: A Good Closed-Set Classifier is All You Need). That result was a benchmarking correction: earlier gains came from weak baselines, not from better ideas. It leaves a hard question. Is there any training-time lever that improves open-set detection beyond what better accuracy alone buys?

We propose to test one specific lever: how fast each layer is allowed to learn. Instead of a single global schedule, a small controller sets one learning-rate multiplier per layer. It adjusts these multipliers online using gradients of an open-set proxy objective. The proxy holds out a few known training classes and treats them as stand-in unknowns. The unknown-like data never enters the classifier's training loss. It only decides which layers move and by how much. The central claim is that this low-dimensional control, a few dozen numbers, can shift models above the accuracy-to-detection line on the fine-grained "Hard" splits where current methods fail, without the closed-set accuracy loss that comes from training directly on proxy unknowns. The success criterion is stated in a way that rules out "it just got more accurate."

Core Claim and Why It Is Not Already Done

Three bodies of work each cover two of the three ingredients, and none covers all three.

Vaze et al. standardized open-set evaluation through the Semantic Shift Benchmark, which uses CUB, Stanford Cars, FGVC-Aircraft and ImageNet-21K-P with unknowns graded Easy, Medium and Hard by semantic distance. They also modernized the maximum-softmax baseline. They used only a uniform cosine schedule, and they report that all models "struggle significantly" on Hard splits. Their observation that Vision Transformers sit above the correlation line is the motivating evidence: internal representation structure can matter independently of accuracy.

Per-parameter and per-layer learning-rate methods exist, but all are tuned for closed-set objectives:

  • MetaLR meta-tunes layer learning rates against a closed-set validation loss.
  • Fine-grained hypergradients scale each parameter's step by the agreement between consecutive gradients, in a strictly closed-world continual setting.
  • MetaOptimize tunes step sizes with eligibility traces and no Hessians.

The one exception is ARCADe. It meta-learns clipped per-parameter learning rates for continual one-class anomaly detection. It is restricted to one normal class per task, costs second-order MAML unrolling, and was never tested on standardized open-set suites.

What we change is the objective the learning-rate controller serves. It serves open-set separation on held-out classes, not closed-set loss. We then judge the result by its distance from the accuracy-to-detection line rather than by raw detection score.

Two findings constrain the design:

  • MetaOptimize found blockwise tuning gave no significant gain over well-tuned global rates on ImageNet. So we treat granularity as an experimental factor and default to per-layer control, not per-weight.
  • Which Layer is Learning Faster? shows shallow layers converge early on flat landscapes while deep layers keep fitting high-frequency detail until the global decay. This supplies the mechanistic hypothesis. Deep layers that keep moving late in training fit fine details of known classes, and those same details make known classes and close unknowns look alike.

Research Program

The controller. It keeps a log-multiplier $\beta_l$ for each layer $l$. The update applied to layer $l$ is the base optimizer's step times $\exp(\beta_l)$ times the global cosine schedule.

The proxy split. Every $K$ steps, a rotating subset of known classes (for example 15%) is held out as proxy unknowns, drawn only from training data. The controller computes a proxy objective on a small validation batch. This is a smooth surrogate of detection AUROC: a pairwise logistic loss pushing the maximum logit of held-out-known samples above that of proxy-unknown samples. It adds the closed-set cross-entropy on the retained classes, weighted by $\lambda$.

The update rule. The gradient with respect to $\beta_l$ is obtained with the first-order one-step look-ahead MetaLR uses. That method's reported overhead is 1.5× to 2.5× direct training time. The classifier itself is trained only with ordinary cross-entropy on all known classes.

Rotation. Proxy-unknown classes rotate between controller updates. The goal is that the controller learns a general depth profile of plasticity, not one tailored to particular classes.

Analysis. Beyond headline metrics, we log per-layer multiplier trajectories and compare them to the layer-convergence curves of Chen et al. We also track feature-norm separation between known and unknown test samples, since maximum-logit scoring works through feature magnitude. This tells us whether any gain comes from slowing deep layers late in training, which is the hypothesized mechanism, or from something else.

Baselines

The naive reference point. A ResNet-50 and a ViT-B trained with a single global rate, AdamW and cosine decay, scored by maximum softmax probability. This anchors how much any method adds over an ordinary classifier.

The strongest existing method. The Vaze et al. recipe: long training, RandAugment, label smoothing, cosine decay and maximum-logit scoring, run from their public code. They report that modernized training raised AUROC by an average absolute 15.6% over standard open-set baselines. It set new best results on 4 of 6 standard benchmarks. The gap between it and complex methods on the Semantic Shift Benchmark was "negligible." We found no per-split AUROC number for the Semantic Shift Benchmark on Lacuna, so we regenerate those numbers ourselves under our protocol rather than quote them. It is the strongest competitor because it defines the line our method must beat. Beating it means a higher AUROC and a positive residual above the fitted line on Hard splits, averaged over five seeds, with closed-set accuracy no lower.

Hand-tuned layer-wise decay. A fixed geometric multiplier across depth, tuned by grid search. It asks whether a static depth profile, found by brute force, captures everything the controller finds.

Direct loss use of proxy unknowns. A loss-based variant in the spirit of Open-Set Biometrics: Beyond Good Closed-Set Models, which trains with simulated unknown probes and a threshold-aware penalty on the hardest imposter scores. Our version feeds the same rotating proxy classes into a margin loss that suppresses their maximum logits. It uses the same information as our method, routed through the loss instead of the step sizes.

Two ablations isolate our ingredient.

  • Closed-set objective ablation. The identical controller with $\lambda \to \infty$, which is MetaLR with a closed-set objective. It separates "adaptive layer rates" from "adaptive layer rates aimed at open-set separation."
  • Granularity ablation. Per-block and per-parameter versions of the controller, the latter using fine-grained hypergradients in the style of Michel et al. It tests MetaOptimize's negative granularity finding in the open-set setting.

Fairness rules.

  • All methods share data, augmentations, epochs and architecture.
  • Each method gets the same number of full tuning runs, with hyperparameters chosen on the proxy split only, never on true unknowns.
  • The controller's extra wall-clock time is charged against it. Baselines receive equivalent additional tuning runs.

Why not just…?

Why not just train a better closed-set classifier, as Vaze et al. advise? Given a 0.95 correlation, this is the default explanation for any gain, and we treat it as the main threat. That is why the primary outcome is the residual from an accuracy-to-detection line fitted across all baseline runs, not raw AUROC. If the controller only raises accuracy and moves along the line, we report that as a negative result. It would confirm that learning-rate adaptation is just another route to accuracy. The ViT deviation reported by Vaze et al. is the only existing evidence that off-line movement is possible at all.

Why not just grid-search a layer-wise decay factor? This could plausibly match us. If the useful signal is a single "slow the deep layers late" profile, a static geometric decay would recover it cheaply. The hand-tuned baseline is given an equal compute budget. The controller earns its place only if its time-varying profile beats the best static profile on Hard splits. If it does not, the finding simplifies to "tune layer decay on held-out classes," which is still useful and much cheaper.

Why not just put the proxy unknowns in the loss? Su et al. show that training-time exposure to non-mated probes helps open-set biometrics. But direct suppression of proxy-class logits can distort features for the real known classes. Miller et al. report an analogous failure: adding negative queries degraded closed-set accuracy (Open-Set Recognition in the Age of Vision-Language Models). Our bet is that a few dozen multipliers cannot overfit the proxy classes the way a full feature space can. The loss-based baseline tests this bet head on, with closed-set accuracy and the gap between Easy and Hard splits as the deciding measures.

Why not rely on Adam's per-coordinate scaling? Adam rescales each coordinate by its gradient history, but its only goal is the training loss. Nothing in it responds to separation from unknowns. The AdamW reference point and the closed-set objective ablation together measure how much of any gain comes from per-coordinate adaptation as such rather than from the open-set objective.

Proposed Experiments

Primary testbed. The Semantic Shift Benchmark: CUB, Stanford Cars, FGVC-Aircraft, and ImageNet-21K-P with ImageNet-1K as known classes. Results are reported separately for Easy and Hard splits.

Secondary testbeds. The standard open-set suites from Vaze et al.: CIFAR-10, CIFAR+10/+50 and TinyImageNet. These check that gains are not specific to fine-grained data.

Metrics.

  • Detection AUROC.
  • Open-set classification rate, which combines correct known-class classification with unknown rejection.
  • Closed-set accuracy.
  • The residual from the baseline accuracy-to-detection line.

We run five seeds and use paired bootstrap intervals.

Decisive checks. The claim is supported only if three conditions all hold:

  1. On Hard splits of at least two of the three fine-grained datasets, the controller's residual is positive with an interval excluding zero, while closed-set accuracy is not lower than the Vaze recipe.
  2. The closed-set objective ablation shows no such residual, which isolates the open-set objective as the cause.
  3. The controller beats both the best static layer decay and the loss-based use of the same proxy unknowns.

Mechanistic check. If the learned multipliers shrink deep-layer rates late in training and known-versus-unknown feature-norm separation rises accordingly, the Chen et al. hypothesis is supported. If gains appear with a different profile, we report it as such.

If the checks fail. We still deliver a matched-budget audit of learning-rate adaptation for open-set recognition. That audit would settle the conflict between MetaOptimize's and MetaLR's results about whether layer-wise rates matter, this time under open-set metrics.