HAND: A Biologically-Inspired Activation Function that Improves Generalisation and Sample Efficiency in Image Classification

Michael W. Spratling, Heiko H. SchüttarXiv 2026

TL;DR

The HAND activation function introduces a biologically-inspired inductive bias—combining homeostasis, accelerating nonlinearity, and divisive normalization—to significantly boost the data efficiency of CNNs. By mimicking the competition between neurons in the visual cortex, HAND allows models like ConvNeXt-tiny to reach baseline ImageNet accuracy up to 8x faster while showing superior performance on imbalanced, "long-tailed" datasets.

What Problem Does This Paper Address?

Modern Deep Neural Networks (DNNs) are notoriously data-hungry. While humans can learn to recognize new objects from just a few examples, DNNs typically require millions of samples and massive computational resources to generalize well. Most recent progress in AI has come from "scaling up" (more data, bigger models) rather than improving the underlying learning efficiency.

The authors argue that DNNs lack a strong inductive bias—built-in assumptions about the data that guide the model toward good solutions faster. Specifically, they point to a fundamental constraint in biological vision: only one feature can occupy a single location in an image at one time. Current CNNs often contain high levels of redundancy, where many neurons represent the same patterns, leading to inefficiency and poor generalization in data-scarce scenarios.

Methods

The authors propose a new activation function called HAND, which stands for Homeostasis, Accelerating nonlinearity, and Non-linear Divisive-normalization. It consists of three main components:

  1. Homeostasis: Implemented via a BatchNorm layer (without the usual affine transformation) applied to the inputs. This keeps neural activity within a stable operating range, preventing "dead neurons."
  2. Accelerating Nonlinearity: Instead of a standard ReLU, HAND uses a squared ReLU ($y = ReLU(x)^2$). This mimics neurophysiological evidence suggesting that biological neurons have an expansive nonlinearity with an exponent of approximately two.
  3. Divisive Normalization: This is the core "competition" mechanism. The activity of a neuron is divided by the weighted sum of activities of all other neurons at the same spatial location (across all channels).
  4. Formula: $z = \frac{y}{\sigma + \bar{y}}$, where $\bar{y}$ is the weighted sum of neighboring channel activities.

Unlike previous attempts at divisive normalization, HAND uses a single learned weight and a single semi-saturation constant ($\sigma$) per layer, making it computationally efficient and easy to integrate into existing architectures like AlexNet, ResNet, and ConvNeXt.

Datasets

The researchers evaluated HAND across a wide range of benchmarks:

  • ImageNet1k: The standard large-scale image classification dataset.
  • ImageNetLT: A "long-tailed" version of ImageNet where class distribution is highly imbalanced (some classes have many samples, others very few).
  • ImageNet-C: A dataset for testing robustness against 18 different types of common image corruptions (blur, noise, weather, etc.).
  • Generalization Sets: CIFAR10, CIFAR100, SVHN, and TinyImageNet.
  • OOD Rejection: Seven different datasets (like Textures and iNaturalist) used to test the model's ability to reject "unknown" classes.
  • ModelvsHuman: A benchmark comparing DNN error patterns to human psychophysical data.

Key Insights and Ideas

  • Inductive Bias as a Shortcut: HAND acts as a powerful guide for the model. Its benefits are most dramatic early in training. As shown in Figure 1a, a HAND-equipped model reaches a performance level in minutes that takes a standard model hours to achieve.
  • The Power of Squaring: Ablation studies revealed that the accelerating nonlinearity (squaring the ReLU) was the most significant contributor to the performance gains. Most previous AI research used linear divisive normalization ($\alpha=1$), missing the boost provided by the biological $\alpha=2$.
  • Winning the "Long Tail": HAND shines brightest when data is scarce or imbalanced. In the ImageNetLT tests, the performance gap between HAND and the baseline did not narrow over time, suggesting that the competition mechanism helps the model learn distinct, non-redundant features even when examples are few.
  • Architecture Specificity: The authors found that HAND works best in CNNs where neurons have localized receptive fields. It did not improve Vision Transformers (ViTs), likely because ViTs mix global information in a way that is incompatible with the localized competition HAND enforces.

Key Results

  • Training Speedup: On ImageNet1k, a ConvNeXt-tiny with HAND reached the same accuracy in 25 epochs that the baseline required 200 epochs to achieve. This represents an 8x improvement in epoch efficiency and a 5.7x improvement in wall-clock time.
Figure 1a: Clean Accuracy vs Training Time for Basic Augmentation. The red triangles (HAND) reach the dotted baseline much faster than the blue circles (GELU).
  • Robustness: HAND improved Out-of-Distribution (OOD) rejection across almost all tests. For example, on ImageNet1k, OOD rejection AUROC improved from 89.20% to 91.21%.
Figure 1c: OOD Rejection performance showing HAND maintaining a lead in identifying unknown samples.
  • Long-Tail Performance: On the imbalanced ImageNetLT dataset, HAND achieved 50.48% clean accuracy compared to the baseline's 23.15%—a massive leap that outperformed even specialized "state-of-the-art" loss functions like Logit-Adjustment.

Limitations and Future Work

  • ResNet Compatibility: While HAND worked well for AlexNet and ConvNeXt, results were mixed for ResNet50 on long-tailed data, suggesting some architectures might require more bespoke integration.
  • Transformer Mismatch: As noted, the localized nature of HAND makes it unsuitable for current Vision Transformer architectures.
  • Future Directions: The authors suggest exploring even stronger forms of competition to further improve OOD rejection and testing HAND on other vision tasks like object detection or segmentation. They also aim to refine the implementation to reduce the slight computational overhead per epoch.

Summary updated

BibTeX
@misc{spratling2026hand,
  author = {Michael W. Spratling and Heiko H. Schütt},
  title = {{HAND: A Biologically-Inspired Activation Function that Improves Generalisation and Sample Efficiency in Image Classification}},
  year = {2026},
  eprint = {2610.11534},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.11534},
}
Figure