[Paper Review] On the interplay between data structure and loss function in classification problems
This paper investigates how data structure and loss function jointly shape generalization in overparametrized classification models. Using a statistical physics approach with a block-structured data model, it derives exact asymptotic expressions for train and test errors across convex loss functions, revealing that logistic loss outperforms mean-squared loss on easy tasks due to stronger alignment with low-dimensional data structure.
One of the central puzzles in modern machine learning is the ability of heavily overparametrized models to generalize well. Although the low-dimensional structure of typical datasets is key to this behavior, most theoretical studies of overparametrization focus on isotropic inputs. In this work, we instead consider an analytically tractable model of structured data, where the input covariance is built from independent blocks allowing us to tune the saliency of low-dimensional structures and their alignment with respect to the target function. Using methods from statistical physics, we derive a precise asymptotic expression for the train and test error achieved by random feature models trained to classify such data, which is valid for any convex loss function. We study in detail how the data structure affects the double descent curve, and show that in the over-parametrized regime, its impact is greater for logistic loss than for mean-squared loss: the easier the task, the wider the gap in performance at the advantage of the logistic loss. Our insights are confirmed by numerical experiments on MNIST and CIFAR10.
Motivation & Objective
- To understand why heavily overparametrized models generalize well despite high capacity, especially in the presence of structured data.
- To disentangle the effects of data structure (e.g., low-dimensional subspaces) and loss function choice (e.g., logistic vs. mean-squared) on generalization error.
- To provide an analytically tractable model that captures both input structure and label-function alignment, enabling precise asymptotic analysis.
- To validate theoretical predictions with controlled experiments on MNIST and CIFAR10, linking abstract theory to real-world datasets.
Proposed method
- Uses a random feature model with two-layer architecture, training only the second layer, to decouple model capacity from input dimension.
- Introduces a block-structured data model with independent subspaces of varying variance and alignment to the target function, enabling control over data saliency and structure.
- Applies the replica method from statistical physics to derive exact asymptotic expressions for generalization and training error in the high-dimensional limit.
- Derives saddle-point equations for the order parameters (e.g., Q, M, V) that govern the loss and error, valid for any convex loss function.
- Numerically solves the resulting equations for specific losses (logistic, square) and compares predictions with finite-size simulations.
- Validates results via controlled experiments on MNIST and CIFAR10, using data with tunable structure to test theoretical predictions.
Experimental results
Research questions
- RQ1How does the alignment between low-dimensional data subspaces and the target function affect generalization in overparametrized models?
- RQ2How does the choice of loss function (logistic vs. mean-squared) influence the double descent curve and test error in structured data regimes?
- RQ3To what extent does data structure amplify or suppress performance differences between loss functions in the overparametrized regime?
- RQ4Can analytical predictions from statistical physics accurately describe generalization error in real-world datasets like MNIST and CIFAR10?
Key findings
- The double descent curve is significantly influenced by data structure, with stronger effects observed under logistic loss than under mean-squared loss.
- For easy tasks (where the salient data subspace aligns well with the target function), logistic loss achieves a wider generalization gap compared to mean-squared loss.
- The analytical framework accurately predicts test and training errors across a range of data structures and loss functions, validated by finite-size simulations.
- On MNIST and CIFAR10, the model's performance gap between logistic and mean-squared loss correlates with the intrinsic low-dimensional structure of the data, confirming theoretical predictions.
- The replica method yields precise asymptotic expressions for error that remain valid even in finite-size settings, demonstrating robustness of the analytical approach.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.