Linear-Core Surrogates: Smooth Loss Functions with Linear Rates for Classification and Structured Prediction

Mehryar Mohri, Yutao Zhong

Machine learning practitioners often face a frustrating trade-off when selecting loss functions: choose a smooth loss for fast optimization, or a piecewise-linear loss for statistical efficiency. A new paper introduces Linear-Core (LC) Surrogates, a novel family of loss functions that resolves this long-standing tension. By combining the best properties of both approaches, LC surrogates achieve optimal consistency and fast optimization, yielding massive speedups in structured prediction and improved robustness to noisy data.

The Problem: Smoothness vs. Efficiency

In classification tasks, optimizing the true goal (like 0-1 error) is computationally intractable due to its non-convex, "jagged" nature. Instead, we rely on surrogate losses. Historically, this has forced researchers to choose between two sub-optimal paths:

  1. Smooth Surrogates (e.g., Logistic or Cross-Entropy): These functions are differentiable everywhere, allowing for fast $O(1/T)$ optimization. However, they suffer from "vanishing curvature" near the decision boundary. This results in a slow "square-root" consistency rate—meaning that even if the surrogate loss is minimized perfectly, it translates inefficiently into actual target accuracy.
  2. Piecewise-Linear Surrogates (e.g., Hinge Loss): These boast an optimal "linear" consistency rate, tightly binding the surrogate loss to the target error. Unfortunately, their non-differentiability makes optimization unstable and slow ($O(1/\sqrt{T})$), often causing optimizers to stall or "chatter" near the solution.

The authors tackle a fundamental question: Can we design a loss function that is both smooth for fast optimization and linear for statistical efficiency?

The Solution: Linear-Core Surrogates

The answer lies in Linear-Core (LC) Surrogates. The core idea is mathematically rigorous yet deceptively simple: stitch a strictly linear segment to a smooth tail.

  • The Construction: Within a small margin around the decision boundary (the "core"), the loss remains strictly linear, mimicking the Hinge loss. Outside this core, the function transitions seamlessly into a smooth, differentiable "tail" derived from standard functions like Logistic or Exponential losses.
  • Mathematical Properties: This construction yields a convex, differentiable ($C^1$ or even $C^2$) function. Crucially, because the gradient does not vanish at the decision boundary, LC surrogates maintain a strict linear $H$-consistency bound—the strongest theoretical guarantee for how well a surrogate tracks the target loss.

To the authors' knowledge, this is the first explicit construction to simultaneously achieve smoothness and linear $H$-consistency across binary, multi-class, and structured prediction settings.

Key Insights and Applications

By forcing a constant gradient near the boundary, LC surrogates "push" the optimizer harder where it matters most. This unique profile unlocks significant advantages in complex domains:

Robustness to Label Noise Smooth losses like Cross-Entropy often try to "negotiate" with outliers by fitting their probability estimates, making them vulnerable to noisy data. LC surrogates, being affine near the boundary, act as a "hard" regularizer. They essentially count margin violations rather than perfectly modeling noise, making them naturally robust to mislabeled instances.

Bypassing the Viterbi Bottleneck in Structured Prediction In tasks like NLP sequence tagging, traditional models (like CRFs or Structured SVMs) require a "Viterbi" inference step that scales quadratically with the number of possible labels ($O(|Y|^2)$). Because LC surrogates are smooth, practitioners can use Monte Carlo sampling to create an unbiased stochastic gradient estimator. This turns a quadratic bottleneck into a constant-time update.

Empirical Results

The theoretical guarantees of LC surrogates translate into significant real-world performance gains across several benchmarks:

  • Noise Robustness: On the CIFAR-10 dataset corrupted with instance-dependent label noise, LC surrogates outperformed standard Cross-Entropy by 2.6%.
  • Massive Speedups: On the Penn Treebank (PTB) dataset for Part-of-Speech tagging—stress-tested by inflating the tag set to 4,000 labels—the stochastic LC approach achieved a 23× speedup over Structured SVMs and a 17.4× speedup over CRFs.
  • Optimization Stability: Synthetic benchmarks confirmed that while Hinge loss optimization stagnates due to non-smoothness, LC surrogates converge linearly to high precision.

Limitations and Future Work

While highly promising, the framework does have limitations. The theoretical consistency guarantees rely heavily on the loss being convex; while LC surrogates work well empirically with non-convex deep neural networks, the strict proofs apply primarily to the convex regime. Additionally, the "width" of the linear core ($\tau$) introduces a new hyperparameter that may require dataset-specific tuning.

Looking ahead, the authors suggest extending this framework to non-decomposable metrics like F1-score or BLEU using "rational kernels." If successful, this could revolutionize how we train generative sequence models, bringing the stability and efficiency of LC surrogates to the forefront of modern NLP.

Summary updated

BibTeX
@inproceedings{mohri2026linear,
  author = {Mehryar Mohri and Yutao Zhong},
  title = {{Linear-Core Surrogates: Smooth Loss Functions with Linear Rates for Classification and Structured Prediction}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=S0ZmHLCdqW},
}
Figure