Maximum Class Separation as Inductive Bias in One Matrix

Tejaswi Kasarla, Gertjan J. Burghouts, Max van Spengler, Elise van der Pol, Rita Cucchiara +1 more
6/17/2022
cs.LGcs.CV

Official code: tkasarla/max-separation-as-inductive-bias (30 stars, Python, last commit 2023-04-21).

Abstract

Maximizing the separation between classes constitutes a well-known inductive bias in machine learning and a pillar of many traditional algorithms. By default, deep networks are not equipped with this inductive bias and therefore many alternative solutions have been proposed through differential optimization.

Show full abstract

Current approaches tend to optimize classification and separation jointly: aligning inputs with class vectors and separating class vectors angularly. This paper proposes a simple alternative: encoding maximum separation as an inductive bias in the network by adding one fixed matrix multiplication before computing the softmax activations. The main observation behind our approach is that separation does not require optimization but can be solved in closed-form prior to training and plugged into a network. We outline a recursive approach to obtain the matrix consisting of maximally separable vectors for any number of classes, which can be added with negligible engineering effort and computational overhead. Despite its simple nature, this one matrix multiplication provides real impact. We show that our proposal directly boosts classification, long-tailed recognition, out-of-distribution detection, and open-set recognition, from CIFAR to ImageNet. We find empirically that maximum separation works best as a fixed bias; making the matrix learnable adds nothing to the performance. The closed-form implementation and code to reproduce the experiments are available on github.

View on arXivView PDF

Code Implementations(1)

Github code for the paper Maximum Class Separation as Inductive Bias in One Matrix. Arxiv link: https://arxiv.org/abs/2206.08704

302Python, ShellJun 7, 20223 years ago
inductive-biasesmaximum-separation

Similar Papers

Cite this paper

@article{kasarla2022maximum,
  title  = {Maximum Class Separation as Inductive Bias in One Matrix},
  author = {Tejaswi Kasarla and Gertjan J. Burghouts and Max van Spengler and Elise van der Pol and Rita Cucchiara and Pascal Mettes},
  year   = {2022},
  eprint = {2206.08704},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2206.08704}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2206.08704.svg)](https://codeofpaper.com/paper/2206.08704)

Discussion