[Paper Review] Task structure and nonlinearity jointly determine learned representational geometry
The paper shows that activation function shapes how a network’s hidden representations align with input vs. target output geometry, with tanh promoting target-aligned, disentangled representations and ReLU preserving input geometry, across simple and complex tasks.
The utility of a learned neural representation depends on how well its geometry supports performance in downstream tasks. This geometry depends on the structure of the inputs, the structure of the target outputs, and the architecture of the network. By studying the learning dynamics of networks with one hidden layer, we discovered that the network's activation function has an unexpectedly strong impact on the representational geometry: Tanh networks tend to learn representations that reflect the structure of the target outputs, while ReLU networks retain more information about the structure of the raw inputs. This difference is consistently observed across a broad class of parameterized tasks in which we modulated the degree of alignment between the geometry of the task inputs and that of the task labels. We analyzed the learning dynamics in weight space and show how the differences between the networks with Tanh and ReLU nonlinearities arise from the asymmetric asymptotic behavior of ReLU, which leads feature neurons to specialize for different regions of input space. By contrast, feature neurons in Tanh networks tend to inherit the task label structure. Consequently, when the target outputs are low dimensional, Tanh networks generate neural representations that are more disentangled than those obtained with a ReLU nonlinearity. Our findings shed light on the interplay between input-output geometry, nonlinearity, and learned representations in neural networks.
Motivation & Objective
- Investigate how input geometry, label geometry, and network architecture shape learned representations.
- Examine how one-hidden-layer networks learn representations under different nonlinearities.
- Quantify representational geometry using alignment, disentanglement, and generalization metrics across tasks.
- Assess how activation function asymmetry influences learning dynamics and representation structure.
Proposed method
- Use a parameterized family of classification tasks with binary latent variables to control input-output geometry.
- Study networks with a frozen second layer and train only first-layer weights to analyze representation learning.
- Compare tanh and ReLU nonlinearities across varying input-output alignments and noise levels.
- Analyze learning dynamics in weight space by projecting gradients onto inter-class and intra-class axes.
- Apply multiple metrics to characterize representations: target alignment, input alignment, kernel alignment, parallelism score, and cross-condition generalization performance (CCGP).
- Extend analysis to multi-layer networks and convolutional architectures to test generality.
Experimental results
Research questions
- RQ1How does activation function (tanh vs. ReLU) affect the alignment between learned representations and the task’s input vs. output geometry?
- RQ2How do input-output alignment, noise, and task complexity influence representational geometry under different nonlinearities?
- RQ3Do the observed effects on shallow networks persist in deeper networks and convolutional architectures?
- RQ4What learning dynamics drive the emergence of target-aligned vs. input-preserving representations?
- RQ5How do measures like kernel alignment, parallelism score, and CCGP reflect these geometric shifts?
Key findings
- Tanh networks tend to learn representations aligned with the target output structure, showing higher target alignment, parallelism, and CCGP.
- ReLU networks preserve more of the input geometry, maintaining higher input alignment and decoding capabilities for untrained labelings.
- Gradients under tanh promote inter-class axis alignment and reduce intra-class selectivity, whereas ReLU gradients push weights to amplify preexisting intra-class selectivity.
- Increasing input-output alignment (higher delta) enhances target-alignment more in tanh networks than in ReLU networks.
- For XOR-like tasks, tanh representations become abstract even when inputs are entangled, while ReLU retains input-driven structure across a range of difficulties.
- The activation function’s symmetric saturating behavior (not just origin behavior) strongly biases toward target-aligned representations; symmetry around the origin modulates but is not solely decisive.
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.