Learning Inward Scaled Hypersphere Embedding: Exploring Projections in Higher Dimensions

Muhammad Kamran Janjua, Shah Nawaz, Alessandro Calefati, Ignazio GalloarXiv 2018

Introduction

Deep learning models typically map complex input data into high-dimensional feature vectors. While increasing dimensionality can capture more nuances, it introduces the "contrast" problem, where distances between nearest and farthest neighbors converge, hindering class discrimination. This paper proposes the Inward Scaled Hypersphere Embedding (IS), a novel layer that projects features onto a hypersphere manifold with an inward scaling factor to enhance separability.

The Contrast Problem in High Dimensions

In high-dimensional spaces, the ratio between the distance to the nearest neighbor and the farthest neighbor tends toward 1. This phenomenon makes it difficult for traditional linear classifiers to establish clear boundaries between divergent classes. Rather than relying on increasing network depth—which often leads to overfitting and high computational costs—the authors suggest that the solution lies in the geometry of the feature projection.

The Inward Scaling Layer

The core contribution is the Inward Scaling Layer ($IS(x, \xi)$). Unlike standard linear projections, this layer normalizes features and applies a non-trainable scale factor ($\xi$). The transformation is defined as: $$\hat{x} = \frac{x}{\xi(\|x\| + \mathcal{E})}$$ By inversely coupling the scale factor with the feature norm, the layer forces the network to learn discriminative angular boundaries. This "inward" scaling ensures that features are projected onto a hypersphere manifold where angular margins are maximized.

The transformation from a linear input manifold to a learned hypersphere manifold.

The authors also introduce SimpleNet, a streamlined CNN architecture using "2xCNN" blocks. By leveraging the IS layer's inherent normalization and separability properties, SimpleNet eliminates the need for standard regularization techniques like Dropout and Batch Normalization, significantly reducing architectural complexity.

Experimental Evaluation

The proposed methodology was tested across several benchmarks, including MNIST, FashionMNIST, CIFAR-10/100, and SVHN. The results consistently showed that the IS layer improves classification accuracy and retrieval performance.

Visualization of learned class embeddings at epoch 30, showing clear cluster separation.

Key performance highlights include:

  • MNIST: Accuracy reached 99.33% (up from 98.40% without IS).
  • FashionMNIST: Accuracy improved to 93.00% from 89.64%.
  • CIFAR-10: Accuracy rose from 58.2% to 64.0%.
  • Retrieval: On FashionMNIST, the model achieved a Recall@1 of 88.75%.

The scale factor $\xi$ is critical; the authors found $\xi = 100$ to be optimal. Extreme values (e.g., $10^5$) lead to significant performance degradation due to manifold distortion.

Conclusion

The Inward Scaled Hypersphere Embedding demonstrates that geometric constraints on feature projection can be more effective than architectural depth. By focusing on angular margins on a hypersphere, the IS layer allows for simpler, more efficient models that outperform traditional deep networks on standard benchmarks. Future work will explore more complex hyperspaces and strictly bound geometric mapping functions.

Summary updated

BibTeX
@misc{janjua2018learning,
  author = {Muhammad Kamran Janjua and Shah Nawaz and Alessandro Calefati and Ignazio Gallo},
  title = {{Learning Inward Scaled Hypersphere Embedding: Exploring Projections in Higher Dimensions}},
  year = {2018},
  eprint = {1810.07037},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1810.07037},
}
Figure