Imbalanced Mixed Linear Regression

Pini Zilber, Boaz Nadler

TL;DR

Standard mixed linear regression (MLR) algorithms struggle when data groups are highly imbalanced. This paper introduces Mix-IRLS, a simple, fast, and sequential algorithm that leverages robust regression to peel away linear components one by one. Mix-IRLS excels in highly imbalanced settings, handles an unknown number of components, and provides strong theoretical recovery guarantees where traditional simultaneous methods fail.

What Problem Does This Paper Address?

Mixed Linear Regression (MLR) is a powerful framework that blends clustering and linear regression. Imagine a dataset where observations don't follow a single linear trend, but instead belong to one of $K$ different unknown linear models. The goal is to simultaneously figure out which point belongs to which model, and estimate the parameters for all $K$ models.

Traditional approaches—such as Expectation-Maximization (EM), alternating minimization, and gradient descent—try to solve for all $K$ models simultaneously. However, they suffer from a massive blind spot: they assume the clusters are relatively balanced. In real-world applications (like healthcare analysis, market segmentation, or trajectory clustering), data is often highly imbalanced—one dominant trend might claim 80% of the data, leaving the remaining 20% split among minority trends. In these ubiquitous "imbalanced mixtures," standard simultaneous algorithms frequently collapse into poor local minima or fail entirely.

Methods

The authors flip the standard paradigm on its head with Mix-IRLS (Mixture Iteratively Reweighted Least Squares). Instead of recovering all $K$ models at once, it recovers them sequentially:

  1. Robust Regression as a Filter: Mix-IRLS treats the largest component present in the data as the "true" signal and views all other components as outliers. It applies Iteratively Reweighted Least Squares (IRLS) to fit this dominant model.
  2. Three-Way Partitioning: Once a model is estimated, samples are partitioned into three categories based on how well they fit: good fit (used to refine the current model via Ordinary Least Squares), poor fit (passed to the next round to find the next model), and moderate fit.
  3. The "I Don't Know" Class: The moderate-fit category acts as a buffer for samples where confidence is low. They are temporarily ignored during the main phase to avoid error propagation.
  4. Sequential Peeling: The good-fit samples are removed, and the process repeats on the remaining poor-fit samples to find the next most dominant model.

Because of this sequential nature, Mix-IRLS doesn't even need to know the true number of components $K$ beforehand—it simply peels them off until too few active samples remain.

Illustration of the sequential peeling mechanism in Mix-IRLS

Datasets

The algorithm was evaluated on both synthetic and real-world datasets:

  • Synthetic Data: High-dimensional linear mixtures ($d=300$) generated with extreme imbalances, varying sample sizes, noise levels, and artificial corruptions.
  • Tone Perception Dataset: A classic dataset mapping human perception of musical tones (150 samples, $d=1$).
  • Kaggle Benchmark Datasets: Four popular multi-linear regression datasets: Medical Insurance Cost (1,338 samples), Red Wine Quality (1,599 samples), WHO Life Expectancy (1,649 samples), and Fish Market (159 samples).

Key Insights and Ideas

  • Imbalance is a Feature, Not a Bug: While imbalance paralyzes simultaneous algorithms, it actually helps Mix-IRLS. A highly dominant component is easier for robust regression to isolate because the minority components form a small, easily ignored fraction of "outliers."
  • The Power of Uncertainty: Introducing the moderate-fit ("I don't know") class prevents the algorithm from making confident but wrong assignments early on, which would otherwise corrupt subsequent sequential steps.
  • Flipped Theoretical Paradigm: The authors provide a population recovery guarantee that explicitly requires the mixture to be sufficiently imbalanced (e.g., a ratio of $p_2/p_1 < 1/2$), a stark contrast to existing literature where guarantees require perfect or near-perfect balance.

Key Results

  • Near-Oracle Sample Complexity: On imbalanced synthetic data, Mix-IRLS successfully recovers underlying models at sample sizes close to the theoretical information limit, where EM, AltMin, and GD completely fail (showing a 100% failure rate at moderate sample sizes).
Figure 2: A comparison of various MLR algorithm. Depicted is the percentage of runs, out of 50 random initializations, for which Flatent > 2σ (see (5)), as a function of the sample size n. The dimension and noise level are fixed at d = 300 and σ = 10−2. Mixture: K = 3 with p = (0.7, 0.2, 0.1) (left panel); K = 5 with p = (0.63, 0.2, 0.1, 0.05, 0.02) (right panel).
  • Extreme Outlier Robustness: Mix-IRLS can tolerate up to a 9% corruption fraction of completely random outliers—over 4 times more than competing methods.
  • Immunity to Overparameterization: When given an overestimate of $K$, Mix-IRLS is insensitive to the extra components and successfully stops after finding the true models, whereas EM and GD performance degrades significantly.
  • Real-World Superiority: On real datasets like medical insurance and wine quality, Mix-IRLS improved estimation fit by 30% or more compared to standard MLR methods. On the wine dataset with $K=7$, a tuned version of Mix-IRLS was the only algorithm capable of achieving perfect fit down to machine precision.

Limitations and Future Work

  • Theoretical Scope: The current mathematical proof for the recovery guarantee is limited to a population setting (infinite samples) and exactly $K=2$ components.
  • Future Directions: The authors plan to extend their theoretical analysis to finite-sample regimes, formally prove the algorithm's empirical robustness to outliers, and adapt the framework to handle non-Gaussian noise, model-based clustering, and non-linear regression mixtures.

Summary updated

BibTeX
@inproceedings{zilber2023imbalanced,
  author = {Pini Zilber and Boaz Nadler},
  title = {{Imbalanced Mixed Linear Regression}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=MDxZYFR5Me},
}
Figure