On Learning Mixture of Linear Regressions in the Non-Realizable Setting

Avishek Ghosh, Arya Mazumdar, Soumyabrata Pal, Rajat Sen

Abstract

While mixture of linear regressions (MLR) is a well-studied topic, prior works usually do not analyze such models for prediction error. In fact, prediction and loss are not well-defined in the context of mixtures. In this paper, first we show that MLR can be used for prediction where instead of predicting a label, the model predicts a list of values (also known as list-decoding). The list size is equal to the number of components in the mixture, and the loss function is defined to be minimum among the losses resulted by all the component models. We show that with this definition, a solution of the empirical risk minimization (ERM) achieves small probability of prediction error. This begs for an algorithm to minimize the empirical risk for MLR, which is known to be computationally hard. Prior algorithmic works in MLR focus on the realizable setting, i.e., recovery of parameters when data is probabilistically generated by a mixed linear (noisy) model. In this paper we show that a version of the popular alternating minimization (AM) algorithm finds the best fit lines in a dataset even when a realizable model is not assumed, under some regularity conditions on the dataset and the initial points, and thereby provides a solution for the ERM. We further provide an algorithm that runs in polynomial time in the number of datapoints, and recovers a good approximation of the best fit lines. The two algorithms are experimentally compared.

Introduction

Mixture of Linear Regressions (MLR) is a powerful framework for modeling datasets where the relationship between features and labels is not uniform, but rather composed of several distinct linear patterns. Traditionally, research in MLR has focused on the "realizable" setting—a theoretical scenario where data is assumed to be generated by a specific probabilistic mixture of lines, and the goal is to recover the underlying parameters.

However, real-world data is rarely "realizable." It is often messy, non-linear, and does not follow a clean generative model. This paper shifts the focus toward the practical application of MLR: minimizing prediction error in non-realizable settings. By reframing MLR as a "list-decoding" problem, the authors provide a rigorous framework for using mixtures in predictive tasks where multiple valid outcomes might exist.

The List-Prediction Framework

A fundamental hurdle in using MLR for prediction is the ambiguity of the output. If a model consists of $k$ different lines, which one should be used to predict the label for a new data point? The authors resolve this by adopting a "list-prediction" paradigm. Instead of a single value, the model outputs a list of $k$ possible labels.

To evaluate this, they define a "min-loss" function: the error of the model is the distance between the true label and the closest prediction in the list. This approach is highly relevant for applications like recommendation systems or auto-complete features, where providing a set of likely options is more valuable than a single, potentially incorrect, guess. The paper proves that the Rademacher complexity—a measure of a model's ability to fit random noise—of such a mixture is at most $O(k)$ times that of a single linear model, ensuring that the Empirical Risk Minimization (ERM) approach is theoretically sound.

Algorithmic Approaches

The paper introduces two primary algorithms to solve the ERM problem for the min-loss objective:

1. Gradient Alternating Minimization (AM)

This algorithm is a data-driven adaptation of the Expectation-Maximization (EM) algorithm. It operates through two alternating steps:

  • Partitioning: Each data point in the fixed dataset is assigned to the linear component that currently yields the minimum loss.
  • Gradient Step: The parameters of each linear model are updated using a gradient descent step based on their assigned points.

Unlike previous iterations of AM, this version does not require "resampling" (using new data at every step), making it significantly more efficient for practical use on static datasets. The authors prove that this algorithm converges at an exponential rate to the optimal parameters, provided it is given a reasonably accurate starting point.

2. Sub-sampling Algorithm

Because Alternating Minimization is sensitive to its starting point and can easily fall into local minima, the authors propose a sub-sampling strategy. This algorithm selects a small, random subset of the data and exhaustively evaluates all possible ways to partition it into $k$ groups. This provides a robust approximation of the best-fit lines and serves as an ideal "warm-start" for the Gradient AM algorithm.

Experimental Validation

The proposed methods were tested against both synthetic non-linear benchmarks and real-world data.

  • Synthetic Data: Using sklearn's make_friedman datasets, the authors demonstrated that their MLR approach could effectively approximate non-linear functions by fitting multiple local linear segments, even when no true "mixture" existed.
  • MovieLens 1M: In a real-world test using movie ratings, the authors modeled the combined preferences of users with divergent tastes. The results were striking: while a standard linear regression yielded a test error of 0.62, the sub-sampling mixture algorithm reduced the error to 0.23—a 63% improvement. This confirms that MLR can capture heterogeneous patterns in data that a single model would otherwise average out.

Conclusion and Future Work

This research bridges the gap between the theoretical study of MLR and its practical application in machine learning. By establishing the validity of the list-prediction framework and providing algorithms with provable convergence in non-realizable settings, the authors open new doors for mixture modeling.

Future research directions include addressing the "dimensionality curse" in the sub-sampling algorithm—which currently scales exponentially with the number of features—and developing a more formal theoretical integration with robust regression techniques like RANSAC to further improve performance on noisy, real-world datasets.

Summary updated

Abstract

While mixture of linear regressions (MLR) is a well-studied topic, prior works usually do not analyze such models for prediction error. In fact, {\em prediction} and {\em loss} are not well-defined in the context of mixtures. In this paper, first we show that MLR can be used for prediction where instead of predicting a label, the model predicts a list of values (also known as {\em list-decoding}). The list size is equal to the number of components in the mixture, and the loss function is defined to be minimum among the losses resulted by all the component models. We show that with this definition, a solution of the empirical risk minimization (ERM) achieves small probability of prediction error. This begs for an algorithm to minimize the empirical risk for MLR, which is known to be computationally hard. Prior algorithmic works in MLR focus on the {\em realizable} setting, i.e., recovery of parameters when data is probabilistically generated by a mixed linear (noisy) model. In this paper we show that a version of the popular alternating minimization (AM) algorithm finds the best fit lines in a dataset even when a realizable model is not assumed, under some regularity conditions on the dataset and the initial points, and thereby provides a solution for the ERM. We further provide an algorithm that runs in polynomial time in the number of datapoints, and recovers a good approximation of the best fit lines. The two algorithms are experimentally compared.
BibTeX
@inproceedings{ghosh2022learning,
  author = {Avishek Ghosh and Arya Mazumdar and Soumyabrata Pal and Rajat Sen},
  title = {{On Learning Mixture of Linear Regressions in the Non-Realizable Setting}},
  booktitle = {International Conference on Machine Learning},
  year = {2022},
  url = {https://openreview.net/forum?id=o0KFnfN_RQ},
}
Figure