NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Linear Regression Under Misalignment: Algorithms and Theoretical Results

Sanjivni Rana, Suraj Shetiya, Senjuti Basu Roy, Gautam DasNeurIPS 2026

TL;DR

What happens to linear regression when privacy laws or messy data pipelines scramble your dataset, leaving you with no idea which input row matches which target value? While checking all $n!$ possible pairings seems hopeless, this paper borrows a classic trick from combinatorial geometry to give the first exact, polynomial-time algorithm for fixed dimensions. However, if the individual feature columns themselves get decoupled from one another, the math hits a brick wall—turning computationally intractable almost immediately.

What Problem Does This Paper Address?

Imagine you’re a city assessor trying to model house prices. One department sends you a spreadsheet of house features (floor area, age, school rating), and another sends a list of sale prices—with all identifying keys stripped for privacy. You know a linear relationship exists, so you want the pairing that yields the best least-squares fit.

Comparison of Shuffled Linear Regression (SLR) where feature rows stay intact, versus Fully Unlinked Features Linear Regression (FUFLR) where every column is scrambled independently.

This paper tackles two versions of this alignment puzzle across $n$ records and $d$ features:

  1. Shuffled Linear Regression (SLR): Each house's feature row is intact, just shuffled relative to the prices ($n!$ possible pairings). For $d=1$, you can solve this in $O(n \log n)$ time simply by sorting. For $d \ge 2$, however, researchers only had approximations or algorithms requiring strict assumptions (like zero noise). Whether an exact polynomial-time algorithm existed for a fixed $d \ge 2$ was a nagging open question.
  2. Fully Unlinked Features Linear Regression (FUFLR): A newly formalized nightmare where every single column arrives in a separate, unlinked file—giving $(n!)^d$ possible combinations.

Methods

To conquer SLR without checking all $n!$ permutations, the authors flip the problem on its head: instead of searching over permutations, they search over the continuous space of regression weights $\boldsymbol{\beta} \in \mathbb{R}^d$.

First, they mean-center the features and responses (which happily doesn't depend on row order) so the regression plane passes through the origin. Next, if you fix a candidate weight vector $\boldsymbol{\beta}$, each data point gets a predicted score $\hat{y}_i = \boldsymbol{\beta}^\top x_i$. By the classic Rearrangement Inequality, the best way to pair these predictions with actual responses $Y$ to minimize squared error is simply to sort both lists and match them by rank!

As you sweep $\boldsymbol{\beta}$ continuously through space, when does that optimal pairing actually change? Only when the predicted scores of two points tie and swap places: $\boldsymbol{\beta}^\top x_j = \boldsymbol{\beta}^\top x_k$. For every pair of points, that tie condition defines a flat "separator hyperplane" passing through the origin.

Geometric partitioning of the weight space into cones where the rank order of predictions—and thus the optimal data pairing—never changes.

All $\binom{n}{2}$ hyperplanes slice the $d$-dimensional parameter space into a "central arrangement" of cones (cells). Inside any single cone, no ties occur, meaning the rank ordering—and the optimal permutation—is completely frozen. Their algorithm, SLR-EXACT, uses a standard incremental geometry algorithm to enumerate every cell, picks one test weight per cell to find its sorting permutation, runs standard Ordinary Least Squares (OLS) on that pairing, and keeps the global winner.

For FUFLR, the authors turn to complexity theory, constructing a reduction from Numerical 3-Dimensional Matching (N3DM) using clever "anchor elements" to force specific geometric planes.

Datasets

Not discussed in the paper. (This is a purely theoretical work focused on algorithms and complexity proofs; Table 1 is merely a 4-row toy illustration.)

Key Insights and Ideas

  • Geometry tames combinatorics: While $n!$ permutations exist in theory, linear projections in $d$ dimensions simply aren't flexible enough to generate most of them. At most $O(n^{2d-2})$ permutations are geometrically realizable as rank orders, collapsing an exponential haystack into a polynomial one for fixed $d$.
  • Zero statistical crutches: Unlike prior exact solvers that break down under noise, low signal-to-noise ratios, or non-Gaussian data, SLR-EXACT is purely algebraic and geometric—guaranteeing the global least-squares optimum on arbitrary data.
  • A razor-sharp cliff in complexity: There is no gentle transition between shuffled rows and unlinked columns. The moment features are split across just two independent lists ($d=2$), the problem jumps from polynomial-time solvable to strongly NP-hard.

Key Results

  • Exact Polynomial-Time SLR: SLR-EXACT finds the globally optimal weights and permutation in $O(n^{2d-1}(d^2 + \log n))$ time. Not only is this exact, it is asymptotically faster than the previous best $(1+\varepsilon)$-approximation scheme from NeurIPS 2017, which ran in $\tilde{O}(n^{5d})$ time.
  • Tractability Landscape: Enumerating the arrangement bounds search complexity by $O\left(\frac{n^{2d-2}}{(d-1)!}\right)$, making SLR polynomial for $d = O(1)$, quasi-polynomial for $d = O(\log n)$, and sub-exponential for $d = O(n / \log n)$.
  • Intractability of FUFLR: Deciding if a zero-error fit exists in FUFLR is strongly NP-hard even at $d=2$. Because the optimal error can be zero, no finite multiplicative approximation algorithm (like a PTAS) can exist unless P=NP.

Limitations and Future Work

  • Curse of dimensionality: Because $d$ sits in the exponent of $O(n^{2d-1})$, explicitly traversing hyperplane cells explodes computationally when $d$ is large. Finding polynomial-time approximations for high-dimensional SLR remains wide open.
  • The $d=1$ gap and overfitting: At $d=1$, SLR-EXACT takes $O(n^2)$ time to process $\binom{n}{2}$ point-pairs, lagging behind the classic $O(n \log n)$ sorting solution; tightening the exponent of $n$ is an open question. Additionally, optimizing over all permutations naturally overfits to noise, biasing training error downward compared to aligned OLS.
  • Handling FUFLR: While multiplicative approximations are dead for FUFLR, designing additive error approximations, practical data heuristics, or streaming "anytime" algorithms are promising next steps.

Summary updated

BibTeX
@inproceedings{rana2026linear,
  author = {Sanjivni Rana and Suraj Shetiya and Senjuti Basu Roy and Gautam Das},
  title = {{Linear Regression Under Misalignment: Algorithms and Theoretical Results}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=6Q1b0lxekb},
}
Figure