Efficient Algorithms for Outlier-Robust Regression

Adam R. Klivans, Pravesh K. Kothari, Raghu Meka

Abstract

We present the first polynomial-time algorithm for linear and polynomial regression that remains resilient to adversarial corruptions in both examples and labels. Given a polynomial-size training set drawn i.i.d. from a distribution $\mathcal{D}$ and subsequently corrupted on a fraction of points, our algorithm outputs a linear function whose squared error is close to the squared error of the best-fitting linear function with respect to $\mathcal{D}$. This result holds provided the marginal distribution of $\mathcal{D}$ is "certifiably hypercontractive"—a property satisfied by Gaussian, strongly log-concave, and uniform distributions on the hypercube. We also establish a statistical lower bound demonstrating that distributional assumptions are necessary for success in this setting. Our approach leverages the Sum-of-Squares (SoS) method, providing a convex relaxation for the non-convex problem of finding a large subset of data that minimizes least-squares loss.

Introduction

In classical statistics, linear regression is a cornerstone of data analysis. However, standard techniques like Ordinary Least Squares (OLS) are notoriously sensitive to outliers. Even a single maliciously placed data point can significantly skew the resulting model. While previous research has developed robust regression techniques for specific scenarios—such as noise restricted to labels or noise following a known distribution—the problem of "nasty noise" (adversarial corruption of both features and labels) has remained a significant challenge in computational learning theory.

This paper introduces a breakthrough: the first polynomial-time algorithm capable of handling adversarial corruptions in both the input features ($x$) and the labels ($y$). By utilizing the Sum-of-Squares (SoS) optimization framework, we demonstrate that it is possible to achieve near-optimal error rates even when an adversary has full knowledge of the dataset and the ability to corrupt a fraction $\eta$ of the points.

The Problem: Adversarial Corruption

In the adversarial corruption model, we assume a learner receives a dataset where a fraction $\eta$ of the samples have been replaced by an adversary. Unlike random noise, these adversarial points can be strategically placed to maximize the error of the learning algorithm.

The goal is agnostic learning: we want to find a model that performs nearly as well as the best possible linear function on the original, uncorrupted distribution. This is significantly more difficult than parameter recovery, as we do not assume the underlying data perfectly follows a linear relationship; we simply want to compete with the best possible fit.

Methodology: The Sum-of-Squares Framework

Our solution relies on the Sum-of-Squares (SoS) method, a hierarchy of semidefinite programming relaxations. The algorithm's logic is structured into three primary components:

1. Robust Certification

The core theoretical insight is a "certifiability" lemma. We prove that if a linear function exhibits low error on a sufficiently large subset of the corrupted data, and the original distribution possesses the property of hypercontractivity, then that function must also have low error on the original distribution. Hypercontractivity implies that the higher-order moments of a distribution (e.g., the 4th moment) are bounded by its lower-order moments (e.g., the 2nd moment).

2. Polynomial Optimization

We frame the search for the optimal model as a mathematical program. We seek a set of weights $w_i \in \{0, 1\}$ for each data point and a linear function $\ell$ that minimizes the weighted squared error, subject to the constraint that we keep at least a $(1-\eta)$ fraction of the data. This is a non-convex, NP-hard combinatorial problem.

3. SoS Relaxation

To achieve polynomial-time complexity, we relax this hard problem into a convex one using the SoS hierarchy. Instead of searching for discrete weights, the algorithm searches for a pseudo-distribution over possible solutions. Because our certification proof is "simple" (it can be expressed as a sum of squares), the SoS algorithm can efficiently find a solution that satisfies the same error bounds as the original non-convex problem.

Key Results and Distributional Assumptions

Our algorithm provides a rigorous error guarantee. Specifically, it outputs a function $\ell$ such that: $$err_{\mathcal{D}}(\ell) \leq (1 + O(\sqrt{\eta})) \cdot opt(\mathcal{D}) + O(\sqrt{\eta}) + \epsilon$$ where $\eta$ is the fraction of corrupted points and $opt(\mathcal{D})$ is the error of the best-fitting model on the true distribution. We show that the $O(\sqrt{\eta})$ dependence is essentially optimal; no algorithm can achieve a significantly better error rate under these conditions.

The Necessity of Assumptions

A critical contribution of this work is the proof of a statistical lower bound. We demonstrate that without some assumption on the distribution (like hypercontractivity), robust regression is information-theoretically impossible. If the features can be arbitrarily distributed, an adversary can mimic valid data patterns, making it impossible to distinguish the true signal from the noise.

Our results apply to a wide range of natural distributions, including:

  • Gaussian (Normal) distributions
  • Strongly log-concave distributions
  • Uniform distributions on the Boolean hypercube
  • Product distributions on bounded domains

Conclusion

This work bridges the gap between statistical robustness and computational efficiency in the context of regression. By identifying certifiable hypercontractivity as the key requirement for robustness, we provide a framework that handles adversarial features and labels simultaneously. While the current approach involves solving large Semidefinite Programs (SDPs), which can be computationally intensive for very high-dimensional data, it establishes a theoretical foundation for more practical robust algorithms in the future. Future research may focus on refining these error constants and developing more efficient first-order methods to implement these SoS-based insights.

Summary updated

BibTeX
@inproceedings{klivans2018efficient,
  author = {Adam R. Klivans and Pravesh K. Kothari and Raghu Meka},
  title = {{Efficient Algorithms for Outlier-Robust Regression}},
  booktitle = {Conference on Learning Theory},
  year = {2018},
  url = {https://openreview.net/forum?id=vphIUFK7Uve},
}
Figure