Task Shift: From Classification to Regression in Overparameterized Linear Models

Tyler LaBonte, Kuo-Wei Lai, Vidya Muthukumar

Abstract

Modern machine learning models often exhibit "task shift," where a model trained on a simpler task (e.g., classification) generalizes to a more complex one (e.g., regression). This paper investigates this phenomenon in overparameterized linear models, proving that while zero-shot shift is impossible, a few-shot approach succeeds due to "structured attenuation"—a property where the model preserves feature importance despite losing signal magnitude.

Introduction

In contemporary machine learning, we frequently observe models trained on "easier" tasks, such as next-token prediction in Large Language Models (LLMs), suddenly becoming capable of "harder" tasks, like solving linear regression problems or performing complex reasoning, without explicit retraining. This phenomenon is known as Task Shift.

This paper explores a fundamental version of this shift: Classification-to-Regression. Specifically, the authors investigate whether a model trained only on the signs of continuous values (binary classification) can eventually learn to predict the exact underlying numerical values (regression). This is a non-trivial challenge because classification inherently discards the magnitude of the signal, retaining only the direction of the decision boundary.

Comparison between real-world task shift in LLMs and the theoretical classification-to-regression shift studied in this paper.

The Theoretical Framework

The researchers analyze these questions using overparameterized linear models, which serve as a mathematical sandbox for understanding modern neural networks. They focus on the Minimum-Norm Interpolator (MNI), the solution typically found by gradient descent in regimes where there are more parameters than data points.

The investigation centers on two scenarios:

  1. Zero-shot: Can a model trained on classification labels generalize to regression labels on the same data distribution without seeing any regression examples?
  2. Few-shot: If provided with a small number of regression examples ($m$), can we adapt the classification model to perform high-quality regression?

Methods: The Few-Shot Postprocessing Algorithm

The core contribution is a two-step algorithm designed to bridge the gap between classification and regression:

  1. Support Recovery via Attenuation: The authors prove that while classification models are "wrong" about the scale of values, they are remarkably "right" about feature importance. They demonstrate that parameters for non-essential features (noise) decay much faster than parameters for the true signal—a phenomenon termed Structured Attenuation.
  2. Dimension-Reduced Least Squares: Once the important features (the "support") are identified, the algorithm uses a few regression samples to perform a simple least-squares fit on just those features, effectively "fixing" the scale lost during classification training.

Key Insights and Results

The Zero-Shot "No-Go"

The authors provide a rigorous proof that zero-shot task shift is impossible for any Gaussian data distribution. Because binary classification only captures the direction of the decision boundary, the absolute scale of the underlying regression function is irrevocably lost without additional information.

Structured Attenuation and Support Recovery

The "aha!" moment of the research is the discovery of structured attenuation. In overparameterized settings, the MNI does not overfit randomly; instead, the signal components of the model survive the classification process much better than the noise components.

Key Results include: * Theorem 14 (Support Recovery): A mathematical guarantee that the algorithm can perfectly identify the important features of a $t$-sparse signal using the classification model. * Few-Shot Efficiency: The postprocessing algorithm achieves a regression error of $O(t/m)$, where $t$ is the number of important features and $m$ is the number of regression samples. * Consistency: The method achieves statistical consistency even in "anisotropic" environments where standard minimum-norm regression would typically fail.

Discussion and Future Work

While this work provides a solid theoretical foundation for task shift in linear models, several limitations remain. The current proofs rely on Gaussian data assumptions and linear architectures. Future research will aim to extend these findings to multiclass classification—which may preserve more signal than binary labels—and to non-linear, deep neural networks to better explain the in-context learning capabilities of LLMs.

By identifying that classification models act as effective feature filters, this paper offers a new perspective on why pre-training on simple tasks can be so effective for downstream complex applications.

Summary updated

BibTeX
@inproceedings{labonte2025task,
  author = {Tyler LaBonte and Kuo-Wei Lai and Vidya Muthukumar},
  title = {{Task Shift: From Classification to Regression in Overparameterized Linear Models}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2025},
  url = {https://openreview.net/forum?id=bEg5CZDbLA},
}
Figure