Search papers, labs, and topics across Lattice.
This study investigates the impact of applying different manifold geometries to transformer modules during optimization, specifically comparing Stiefel and DGram constraints across attention and MLP layers in GPT-2 pretraining. The researchers found that constraining attention layers with Stiefel geometry while using DGram for MLP layers yielded the best performance, whereas the opposite configuration led to instability due to singular value growth in DGram-constrained attention weights. These results highlight the importance of module-specific optimization strategies in transformer architectures, challenging the conventional uniform application of manifold constraints.
Optimizing transformer modules with tailored manifold geometries can significantly enhance performance, revealing that one-size-fits-all approaches may lead to instability.
Weight-space geometry plays a central role in neural network optimization, yet manifold constraints are often applied uniformly across all weight matrices. In this work, we ask whether different transformer modules prefer different manifold geometries. We study Manifold Muon for GPT-2 pretraining and compare layer-wise assignments of Stiefel and DGram constraints across attention and MLP blocks. Our results show a clear asymmetry: constraining attention layers with Stiefel geometry while assigning DGram geometry to MLP layers gives the best performance among the tested configurations, whereas the inverted assignment and all-DGram configuration become unstable under the shared hyperparameter setting. We trace this failure to singular value growth in DGram-constrained attention weights, which can amplify attention logits and induce softmax saturation. These findings suggest that symmetry-aware and geometry-aware optimization for transformers should be module-specific rather than uniform.