[Paper Review] LieGG: Studying Learned Lie Group Generators
This paper introduces LieGG, a method to extract and analyze learned symmetries in neural networks by computing infinitesimal Lie group generators from differentiable models and training data. It reveals that deeper, overparameterized networks with fine-tuning or layer-wise training learn more precise and invariant symmetries, especially in intermediate layers, without prior knowledge of symmetries in the data.
Symmetries built into a neural network have appeared to be very beneficial for a wide range of tasks as it saves the data to learn them. We depart from the position that when symmetries are not built into a model a priori, it is advantageous for robust networks to learn symmetries directly from the data to fit a task function. In this paper, we present a method to extract symmetries learned by a neural network and to evaluate the degree to which a network is invariant to them. With our method, we are able to explicitly retrieve learned invariances in a form of the generators of corresponding Lie-groups without prior knowledge of symmetries in the data. We use the proposed method to study how symmetrical properties depend on a neural network's parameterization and configuration. We found that the ability of a network to learn symmetries generalizes over a range of architectures. However, the quality of learned symmetries depends on the depth and the number of parameters.
Motivation & Objective
- To develop a method that uncovers symmetries learned by neural networks without prior knowledge of the underlying symmetry group.
- To evaluate the quality and invariance of learned symmetries using quantitative metrics like symmetry variance and bias.
- To investigate how network depth, width, and training regimes influence the accuracy and robustness of learned symmetries.
- To improve model interpretability by revealing the geometric inductive biases implicitly acquired during training.
Proposed method
- The method solves a matrix nullspace equation derived from the network’s gradient w.r.t. data transformations to extract infinitesimal generators of learned Lie groups.
- It leverages the Lie algebra–Lie group correspondence to exponentiate generators and recover the full continuous symmetry transformations.
- The symmetry variance and symmetry bias are computed from the polarization matrix of the generator to quantify invariance quality.
- The approach is applied to feedforward networks trained on rotation-MNIST and other datasets with controlled factors of variation.
- It supports analysis across different training regimes, including pre-training, fine-tuning, and layer-wise training.
- The method is general and only requires differentiability, making it applicable to any neural network architecture.
Experimental results
Research questions
- RQ1To what extent do neural networks learn continuous symmetries from data without architectural inductive bias?
- RQ2How accurately do the learned symmetries reflect the true symmetries present in the data?
- RQ3How does network depth and parameter count affect the precision and invariance of learned symmetries?
- RQ4How do different training regimes—such as fine-tuning or layer-wise training—affect the learning of intermediate symmetries?
- RQ5Can we quantify and interpret the geometric inductive biases learned by models like MLPs and transformers?
Key findings
- Deeper and overparameterized networks learn more precise symmetry groups with higher degrees of invariance compared to smaller architectures.
- The final and penultimate layers of networks trained with different regimes converge to similar symmetry levels, suggesting a task-specific optimal symmetry invariance.
- Intermediate layers show strong dependence on training regime: fine-tuning and layer-wise training improve symmetry accuracy, reducing both symmetry variance and bias.
- Pre-trained sub-networks learn more accurate symmetries than when trained as part of a deeper model, indicating that pre-training enhances symmetry learning.
- The method successfully retrieves generators of learned symmetries without prior knowledge of transformation sets, enabling quantitative evaluation of invariance quality.
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.