Reference-Guided Training: Adaptive Gradient Scaling via Per-Sample Loss Comparisons

Israel Rodrigues Soares, Pedro Benedetti, Thanda Shwe, Israel Mendonca, Masayoshi AritsugiNeurIPS 2026

TL;DR

Standard supervised learning treats every data point as equally valuable—a naive assumption that falls apart when datasets are noisy or messy. Reference-Guided (RG) Training fixes this by comparing a student model’s per-sample loss against a fixed "guide" model’s loss, turning up the gradient volume only when the student is underperforming relative to the guide. Unlike knowledge distillation, the student never imitates the guide’s predictions; it simply uses the guide as a yardstick to decide where to focus its energy.

What Problem Does This Paper Address?

At the heart of most machine learning sits Empirical Risk Minimization (ERM): calculate the loss on every training sample, average them equally, and update your weights. In a clean textbook world, this uniform treatment works fine. In reality, datasets are riddled with human annotation errors, outliers, and varying difficulty levels. Treating a mislabeled cat photo with the same urgency as a clean, informative example actively degrades your model.

Previous attempts to fix this usually fall into three camps:

  1. Robust losses (like Huber loss) cap the influence of massive errors, relying purely on the learner's own confusion.
  2. Curriculum/self-paced learning orders data from easy to hard, again relying mostly on internal signals.
  3. External-model methods like Knowledge Distillation (KD) bring in a pre-trained teacher, forcing the student to mimic the teacher's output probabilities—or train an expensive auxiliary network just to learn a weighting policy.

The authors ask a neat, pragmatic question: What if we use an external reference model not as a target to blindly imitate, and without training auxiliary policy networks, but strictly as a baseline to reweight standard ERM gradients?

Methods

Enter Reference-Guided (RG) Training. You take your trainable learner model and pair it with any fixed, pre-trained guide model (which doesn't even have to be a neural network!).

For every sample $i$, you compute the standard supervised loss for both models, then look at the guide-relative error: $r_i(\theta) = L_i(\theta) - \gamma L_i^{\text{guide}}$ (where $\gamma$ is a tolerance knob). This difference is passed through a smooth, linear-quadratic penalty function added to the standard loss.

When you take the derivative, something remarkably clean happens: the per-sample gradient direction is completely preserved, and its magnitude is simply multiplied by a state-dependent scalar $\omega_i(\theta) \in [1, 1 + \lambda]$. This creates three distinct regimes:

  • No amplification ($r_i \le 0$): The learner is already beating (or matching) the guide. Proceed with standard ERM ($\omega_i = 1$).
  • Smooth amplification ($0 < r_i < \delta$): The learner is doing worse than the guide. Smoothly ramp up the gradient weight.
  • Saturated amplification ($r_i \ge \delta$): The learner is failing badly on a sample the guide got right. Cap the gradient multiplier at $1 + \lambda$ so outliers or wild disagreements don't blow up your gradients.

Because RG only compares scalar loss values, it requires zero architectural changes and works across both classification and regression.

Datasets

No new benchmarks were introduced; the authors evaluated RG across three established datasets spanning computer vision and time-series forecasting:

  • Fashion-MNIST: 70,000 grayscale clothing images, injected with synthetic symmetric label noise (0%, 40%, and 80% corrupted training labels).
  • CIFAR-10N: Standard CIFAR-10 images paired with real-world, noisy human annotations (testing combinations of random, worst, and cleaner aggregated label sets).
  • M4 Forecasting Benchmark: 100,000 univariate time series across domains like finance and macroeconomics, split by frequency (Yearly, Quarterly, Monthly, etc.).

Key Insights and Ideas

  • Guidance without imitation: In Knowledge Distillation, if the teacher makes a mistake on a hard sample, the student is pressured to copy that mistake. RG sidesteps this. On samples where the guide fails, $L_i^{\text{guide}}$ is high, keeping $r_i(\theta)$ low—meaning RG simply backs off and lets standard ERM take over!
  • Disagreement drives improvement: On the M4 time-series benchmark, the authors paired neural learners with a classic statistical polynomial autoregression (NAR) guide. They found a striking correlation ($R^2 \approx 0.698$): the less aligned the standard ERM learner's error rankings were with the guide's (measured via Spearman correlation), the bigger the boost RG provided. RG shines brightest when the guide brings genuinely complementary perspective to the table.
  • You don't always need a cleaner teacher: On CIFAR-10N and Fashion-MNIST, RG consistently beat ERM even when the guide was trained on the exact same noisy labels as the learner.

Key Results

  • Synthetic Noise (Fashion-MNIST): Vision Transformers (ViTs) benefited massively from RG. Using noise-matched ResNet20 guides, ViT test accuracy jumped from 84.87% (ERM) to 89.63% (RG) at 40% noise, and from 63.71% to 75.83% (+12.12 percentage points) at 80% noise.
Figure 2: CNN robustness analysis. (a) Sensitivity to label noise in the training data with a clean guide (guide noise fixed at 0%). (b) Transfer of robustness with respect to guide quality, controlled via guide noise under 40% label noise.
  • Real Human Noise (CIFAR-10N): RG beat ERM across all 9 tested combinations of architectures (CNN, MLP, ViT) and noise profiles. Even when both learner and guide trained on the worst human labels, ViT jumped +8.07 percentage points (62.69% to 70.76%). With a cleaner guide (worst/aggre), ViT gained +11.32 percentage points.
  • Time-Series Forecasting (M4): Using a statistical NAR guide, RG reduced Overall Weighted Average (OWA) forecasting error in 11 out of 12 settings—slashing error by up to 22.35% (MLP on Quarterly data) and 16.74% (TCN on Quarterly data).

Limitations and Future Work

RG’s Achilles' heel is its reliance on the guide’s error signal. When the guide and the ERM learner already rank sample difficulties almost identically (as happened with GRU on M4 Yearly data, resulting in a slight 0.98% degradation), the guide offers little new information. Worse, if a guide is systematically biased—confidently assigning low loss to corrupted or mislabeled data—RG will actively amplify gradients on those toxic samples (seen partially when an MLP at 80% noise underperformed ERM by ~1.4% using a heavily corrupted guide).

For future work, the authors suggest testing RG under intentionally biased guides, developing methods to automatically detect and mitigate bad guide signals, and extending the math to blend wisdom from multiple guides simultaneously.

Summary updated

Abstract

Empirical Risk Minimization treats training samples uniformly, which can degrade performance when the training data are noisy or heterogeneous. We introduce Reference-Guided Training, a new training objective that uses per-sample loss comparisons with a fixed reference model to reweight gradient contributions without relying on prediction imitation, while preserving per-sample gradient directions and ensuring bounded gradient amplification. We characterize its gradient and curvature properties, and evaluate classification with synthetic label noise on Fashion-MNIST, human annotation noise on CIFAR-10N, and time-series forecasting on M4. The proposed method improves accuracy in many noisy classification settings and reduces forecasting error in most reported regression conditions, with architecture- and reference-dependent exceptions. The analysis suggests that the proposed method benefits from differences in error rankings between the learner and the reference when these differences provide reliable, complementary information about individual samples.
BibTeX
@inproceedings{soares2026reference,
  author = {Israel Rodrigues Soares and Pedro Benedetti and Thanda Shwe and Israel Mendonca and Masayoshi Aritsugi},
  title = {{Reference-Guided Training: Adaptive Gradient Scaling via Per-Sample Loss Comparisons}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=y7zQMhy4Gr},
}
Figure