By Weiyang Liu, Rongmei Lin, Zhen Liu, Li Xiong, Bernhard Schölkopf, Adrian Weller
Sphere-Uniformity is released under the MIT License (refer to the LICENSE file for details).
Due to the over-parameterization nature, neural networks are a powerful tool for nonlinear function approximation. In order to achieve good generalization on unseen data, a suitable inductive bias is of great importance for neural networks. One of the most straightforward ways is to regularize the neural network with some additional objectives. Motivated by this, hyperspherical uniformity is proposed as a novel family of relational regularizations that impact the interaction among neurons. We consider several geometrically distinct ways to achieve hyperspherical uniformity.
Our hyperspherical uniformity is accepted to AISTATS 2021 and the full paper is available on arXiv and here.
If you find our work useful in your research, please consider to cite:
@InProceedings{Liu2021SphereUni,
title={Learning with Hyperspherical Uniformity},
author={Liu, Weiyang and Lin, Rongmei and Liu, Zhen and Xiong, Li and Schölkopf, Bernhard and Weller, Adrian},
booktitle={AISTATS},
year={2021}
}
We also provide a short video introduction to help interested readers quickly go over our work. Please click the following figure to watch the Youtube video.
Python 3.7.7
TensorFlow 1.14.0
git clone https://github.com/wy1iu/Sphere-Uniformity.git
wget https://www.cs.toronto.edu/~kriz/cifar-100-python.tar.gz
# run Maximum Hyperspherical Separation
cd mhs
python train.py
# run Maximum Hyperspherical Polarization
cd mhp
python train.py
# run relaxed Maximum Hyperspherical Polarization
cd r_mhp
python train.py
# run Minimum Hyperspherical Covering
cd mhc
python train.py
# run Maximum Gram Determinant
cd mgd
python train.py