[Paper Review] Generalization in multitask deep neural classifiers: a statistical physics approach
This paper develops a statistical physics-based analytical framework to study generalization in multitask deep neural network classifiers with softmax outputs and cross-entropy loss. It reveals that multitask learning improves generalization when tasks are related and clean, but can harm performance when tasks are unrelated or noisy, with theoretical predictions validated by extensive numerical experiments across linear and nonlinear architectures.
A proper understanding of the striking generalization abilities of deep neural networks presents an enduring puzzle. Recently, there has been a growing body of numerically-grounded theoretical work that has contributed important insights to the theory of learning in deep neural nets. There has also been a recent interest in extending these analyses to understanding how multitask learning can further improve the generalization capacity of deep neural nets. These studies deal almost exclusively with regression tasks which are amenable to existing analytical techniques. We develop an analytic theory of the nonlinear dynamics of generalization of deep neural networks trained to solve classification tasks using softmax outputs and cross-entropy loss, addressing both single task and multitask settings. We do so by adapting techniques from the statistical physics of disordered systems, accounting for both finite size datasets and correlated outputs induced by the training dynamics. We discuss the validity of our theoretical results in comparison to a comprehensive suite of numerical experiments. Our analysis provides theoretical support for the intuition that the performance of multitask learning is determined by the noisiness of the tasks and how well their input features align with each other. Highly related, clean tasks benefit each other, whereas unrelated, clean tasks can be detrimental to individual task performance.
Motivation & Objective
- To develop a theoretical framework for understanding generalization in multitask deep neural network classifiers, particularly with softmax outputs and cross-entropy loss.
- To extend existing statistical physics approaches—previously limited to regression tasks—to nonlinear classification problems.
- To investigate how task relatedness and signal-to-noise ratio (SNR) affect multitask learning performance.
- To validate theoretical predictions through comprehensive numerical experiments on both linear and ReLU-based networks.
- To clarify under what conditions multitask learning enhances or degrades generalization in multiclass classification.
Proposed method
- Adapts techniques from the statistical physics of disordered systems to model the nonlinear dynamics of generalization in deep neural networks.
- Uses a student-teacher framework with a shared trunk and task-specific heads to model multitask learning.
- Derives analytical expressions for generalization error and multitask benefit using order parameters such as signal-to-noise ratio (SNR) and correlation between task representations.
- Introduces a multitask benefit metric $MT_{A\leftarrow B}$ to quantify performance gain from auxiliary tasks.
- Accounts for finite dataset size and correlated outputs via a self-consistent mean-field approach.
- Validates theoretical predictions against empirical results from training on synthetic data with controlled task relatedness and SNR.
Experimental results
Research questions
- RQ1How does multitask learning affect generalization in deep neural network classifiers with softmax outputs?
- RQ2What role does task relatedness—defined by the angle between singular vectors of learned representations—play in multitask benefit?
- RQ3How does the signal-to-noise ratio (SNR) of auxiliary and main tasks influence performance gains or degradation?
- RQ4Under what conditions does multitask learning improve or harm generalization in classification tasks?
- RQ5Can theoretical predictions from statistical physics accurately describe the generalization dynamics of deep neural networks in multitask settings?
Key findings
- Multitask benefit $MT_{A\leftarrow B}$ is maximized when the auxiliary task is highly related to the main task and has high SNR, as measured by the correlation $r_{AB}$ between task representations.
- When $r_{AB} > 0$, increasing the SNR of the auxiliary task $\hat{\boldsymbol{s}}_B$ increases the multitask benefit, due to enhanced alignment of learned features.
- For very high SNR in the auxiliary task ($\|\hat{\boldsymbol{s}}_B\| \gg 1$), the multitask benefit $MT_{A\leftarrow B}$ decays toward zero, indicating diminishing returns or potential negative transfer.
- Increasing $r_{AB}$ (task relatedness) consistently increases $MT_{A\leftarrow B}$, especially in high SNR regimes, confirming that relatedness enhances knowledge transfer.
- In the limit of infinite training data ($N_{\text{data}} \to \infty$), the multitask benefit converges to zero, as generalization and training loss become equal.
- Numerical experiments confirm theoretical predictions across linear and ReLU networks, showing that related, clean tasks improve performance while unrelated or noisy tasks degrade it.
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.