Orthogonium : A Unified, Efficient Library of Orthogonal and 1-Lipschitz Building Blocks
Thibaut Boissin, Franck Mamalet, Valentin Lafargue, Mathieu Serrurier
TL;DR
Orthogonium tackles fragmentation in orthogonal and $1$-Lipschitz building blocks byProviding a unified PyTorch library with dense and convolutional layers that maintain strict Lipschitz constraints. The approach emphasizes native support for modern CNN features, efficient kernel implementations, and modular designs that enable fast exploration of hybrids like SOC, SLL, and AOL. Key contributions include a comprehensive API (OrthoLinear and orthogonal convolutions), extensive validation to catch subtle implementation errors, and performance parity with standard convolutions (roughly a 10% overhead on large-scale benchmarks). This work enables scalable, reliable experimentation for certifiably robust architectures across domains such as robust vision, normalizing flows, and stable recurrent networks, while open-sourcing the tool to foster community-driven verification and improvement.
Abstract
Orthogonal and 1-Lipschitz neural network layers are essential building blocks in robust deep learning architectures, crucial for certified adversarial robustness, stable generative models, and reliable recurrent networks. Despite significant advancements, existing implementations remain fragmented, limited, and computationally demanding. To address these issues, we introduce Orthogonium , a unified, efficient, and comprehensive PyTorch library providing orthogonal and 1-Lipschitz layers. Orthogonium provides access to standard convolution features-including support for strides, dilation, grouping, and transposed-while maintaining strict mathematical guarantees. Its optimized implementations reduce overhead on large scale benchmarks such as ImageNet. Moreover, rigorous testing within the library has uncovered critical errors in existing implementations, emphasizing the importance of standardized and reliable tools. Orthogonium thus significantly lowers adoption barriers, enabling scalable experimentation and integration across diverse applications requiring orthogonality and robust Lipschitz constraints. Orthogonium is available at https://github.com/deel-ai/orthogonium.
