Introduction
Empirical Risk Minimization (ERM) serves as the foundational objective for training modern machine learning models by minimizing the average loss across a dataset. While effective in many scenarios, ERM's reliance on the arithmetic mean makes it susceptible to two primary issues: sensitivity to outliers and a lack of focus on minority classes. Tilted Empirical Risk Minimization (TERM) was introduced in batch settings to address these shortcomings by using an exponential tilt parameter, $t$, to adjust the influence of individual samples.
However, a significant limitation arises in online or streaming environments where data arrives sequentially (batch size $N=1$). In these cases, the standard TERM objective mathematically collapses back into standard ERM, nullifying the benefits of the tilt parameter. This paper proposes "Online TERM," a modified objective designed to preserve the advantages of tilting in single-sample streaming scenarios.
The Online TERM Framework
The core challenge with applying TERM to online learning is the logarithmic term in its batch formulation. When the number of samples is reduced to one, the logarithm and the exponential functions effectively cancel out the influence of the tilt parameter $t$. To resolve this, the authors propose a simplified Online TERM objective:
$$\tilde{R}(t; \theta) = \frac{1}{t} e^{t\ell_i(\theta)}$$
By removing the logarithm, the gradient of the objective becomes:
$$\nabla \tilde{R}(t; \theta) = e^{t\ell_i(\theta)} \nabla \ell_i(\theta)$$
This formulation introduces an exponential weighting factor directly to the standard loss gradient. The behavior of the model is then governed by the sign and magnitude of $t$:
- Positive Tilt ($t > 0$): The model disproportionately weights samples with high losses. This is particularly useful for minority class detection or ensuring fairness, as the learner is forced to prioritize "hard" or rare examples.
- Negative Tilt ($t < 0$): The model suppresses the influence of samples with high losses. This provides inherent robustness against outliers or corrupted data, as the gradient contribution of such points shrinks toward zero.
Experimental Methodology
The efficacy of Online TERM was evaluated using two synthetic streaming datasets designed to simulate common real-world challenges:
- Robust Linear Regression Stream: A dataset where 90% of the data follows a linear trend with Gaussian noise, while 10% consists of significant outliers shifted away from the main distribution.
- Binary Classification Stream: A mixture of two linear models where a minority class (10% of the data) represents the "outliers" or rare events that the model must detect.
The study compared Online TERM against standard ERM using various optimizers, including SGD, SGD with Momentum, and Adam, to ensure the findings were optimizer-agnostic.
Key Results
Robustness to Outliers
In the linear regression task, setting $t = -0.5$ allowed the model to successfully ignore adversarial outliers. While standard ERM optimizers were pulled away from the true underlying trend by the 10% noisy data, Online TERM maintained a stable trajectory and converged to the correct inlier weights.
Sensitivity to Rare Events
In the binary classification task, a positive tilt ($t = 0.2$) significantly enhanced the model's ability to identify the minority class. By shifting the decision boundary to prioritize high-loss (rare) points, Online TERM achieved higher recall for the minority class compared to the ERM baseline.
Computational Efficiency
A primary advantage of Online TERM is its efficiency. The modification requires no additional computational overhead compared to standard ERM, as it merely involves a scalar multiplication of the gradient.
Limitations and Future Work
Despite its benefits, Online TERM introduces numerical stability challenges. Specifically, when $t > 0$, the exponential weighting can lead to exploding gradients if the loss values are high. To mitigate this, practitioners must carefully tune the learning rate, often reducing it significantly compared to ERM settings.
Furthermore, the selection of the tilt parameter $t$ currently remains a manual process. Future research is needed to develop adaptive or meta-learning frameworks that can dynamically adjust $t$ based on the characteristics of the incoming data stream.
Conclusion
Online TERM provides a simple yet powerful extension of the TERM framework to streaming data. By modifying the objective function to preserve exponential weighting in single-sample updates, the approach offers a flexible mechanism for balancing robustness and sensitivity without increasing computational complexity.
Summary updated