Introduction
Linear regression is a cornerstone of machine learning, yet its standard implementation—Ordinary Least Squares—is notoriously sensitive to outliers. In real-world scenarios, data is often corrupted by sensor noise or adversarial attacks. While robust statistics offers solutions, most existing theoretical guarantees rely on restrictive assumptions: features must be centered (zero mean), the covariance matrix must be strictly positive definite (no redundant dimensions), and data often must follow specific distributions like Gaussians.
This paper introduces a framework for robust linear regression that relaxes these assumptions, handling general feature distributions and an "oblivious adversary" model. In this model, an attacker can corrupt a fraction $\alpha$ of the samples based on the data distribution, but without seeing the specific realizations of the data points.
The Challenge of General Distributions
Standard robust methods often fail when features are non-centered or when the covariance matrix $\Sigma$ is only positive semi-definite ($\Sigma \succeq 0$). The authors demonstrate that without centering, an adversary can exploit the lack of strong convexity in robust loss functions (like Huber loss) to prevent the model from converging. Specifically, if the features have a non-zero mean, the "flatness" of the loss function in certain directions allows outliers to pull the solution away from the truth indefinitely.
Algorithm 3: Centered Huber SGD
To address these challenges, the authors propose a two-phase approach termed Algorithm 3:
- Mean Estimation: The algorithm first uses a batch of samples to estimate the mean $\mu$ of the feature distribution.
- Centered Huber SGD: It then performs Stochastic Gradient Descent (SGD) using the Huber loss. Crucially, every incoming feature vector $x$ is centered by subtracting the estimated mean ($x - \hat{\mu}$) before the gradient update.
The Huber loss is key here: it behaves quadratically for small errors (like $\ell_2$ loss) but linearly for large errors. This "clipping" effect limits the influence of any single outlier. By combining this with centering, the authors restore the strong convexity required for fast convergence.
Theoretical Guarantees
The primary contribution of this work is providing convergence rates for general feature distributions. As shown in the comparison table below, this paper extends the state-of-the-art by handling sub-Gaussian features and providing explicit rates for the positive semi-definite case ($\Sigma \succeq 0$).
The authors prove that for centered features, the expected Huber loss is $(1-\alpha)\rho$-strongly convex. This leads to a prediction error rate of $O(1/((1-\alpha)\sqrt{T}))$ for general covariance matrices and a faster estimation error rate of $\tilde{O}(1/((1-\alpha)\rho)^2 T)$ when the covariance is strictly positive definite.
Empirical Performance
The authors validated their approach using synthetic benchmarks where an adversary injects massive corruptions ($b = 10^5$) into a fraction of the data.
As illustrated in the figure above, standard $\ell_2$ SGD and even non-centered Huber SGD fail to converge to the true parameters in the presence of heavy contamination. In contrast, Algorithm 3 (Centered Huber SGD) successfully drives the estimation error toward zero, confirming that vanishing error is possible even with high contamination levels in the oblivious adversary setting.
Conclusion
By identifying feature centering as a mathematical necessity for robust regression, this paper provides a robust framework for ML in messy, real-world environments. While currently focused on linear models and oblivious adversaries, the work lays the groundwork for extending these principles to more complex architectures and adaptive attack scenarios.
Summary updated