Regression as Classification: Influence of Task Formulation on Neural Network Features

Lawrence Stewart, Francis Bach, Quentin Berthet, Jean-Philippe Vert
11/10/2022
cs.LGcs.AIstat.ML

Official code: LawrenceMMStewart/Regression-as-Classification (10 stars, Python, JAX, last commit 2024-07-31).

Abstract

Neural networks can be trained to solve regression problems by using gradient-based methods to minimize the square loss. However, practitioners often prefer to reformulate regression as a classification problem, observing that training on the cross entropy loss results in better performance.

Show full abstract

By focusing on two-layer ReLU networks, which can be fully characterized by measures over their feature space, we explore how the implicit bias induced by gradient-based optimization could partly explain the above phenomenon. We provide theoretical evidence that the regression formulation yields a measure whose support can differ greatly from that for classification, in the case of one-dimensional data. Our proposed optimal supports correspond directly to the features learned by the input layer of the network. The different nature of these supports sheds light on possible optimization difficulties the square loss could encounter during training, and we present empirical results illustrating this phenomenon.

View on arXivView PDF

Code Implementations(1)

JAX

Code for paper: Regression as Classification: Influence of Task Formulation on Neural Network Features

101PythonOct 21, 20222 years agoNOASSERTION
classificationdeep-learningjaxmachine-learningpython+1 more

Similar Papers

Cite this paper

@article{stewart2022regression,
  title  = {Regression as Classification: Influence of Task Formulation on Neural Network Features},
  author = {Lawrence Stewart and Francis Bach and Quentin Berthet and Jean-Philippe Vert},
  year   = {2022},
  eprint = {2211.05641},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2211.05641}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2211.05641.svg)](https://codeofpaper.com/paper/2211.05641)

Discussion