Expressivity of Neural Networks with Random Weights and Learned Biases

Ezekiel Williams, Avery Hee-Woon Ryoo, Thomas Jiralerspong, Alexandre Payeur, Matthew G. Perich, Luca Mazzucato, Guillaume Lajoie · DOI

Abstract

Traditional learning in neural networks is synonymous with synaptic plasticity—the adjustment of connection weights. This paper explores an alternative paradigm: "bias learning," where weights are fixed and random, and only internal neuron thresholds (biases) are tuned. We prove that both feedforward and recurrent networks with learned biases are universal approximators. Numerical experiments demonstrate that these networks achieve performance parity with fully trained models on image classification and complex dynamical tasks, providing a theoretical foundation for parameter-efficient fine-tuning and rapid biological adaptation.

Introduction

In both artificial intelligence and neuroscience, learning is typically equated with the modification of connection weights. However, biological systems often exhibit behavioral flexibility faster than structural changes allow, and modern AI increasingly utilizes parameter-efficient methods like BitFit, where most weights remain frozen. This research investigates whether tuning only biases is sufficient for universal approximation, effectively asking if a network can learn complex tasks when its connections are entirely random and static.

Methods

The study evaluates "bias learning" in two primary architectures: single-hidden-layer Feedforward Neural Networks (FNNs) and Recurrent Neural Networks (RNNs). The theoretical framework is built on the "masking" intuition: in a sufficiently wide random network, a sub-network likely exists that can solve the target task. By adjusting biases, the network can effectively "shut off" irrelevant neurons and "activate" useful ones, similar to the Strong Lottery Ticket Hypothesis (SLTH) but applied at the unit level.

The approach was tested on several benchmarks:

  • Image Classification: A meta-dataset of eight MNIST variants, including Fashion MNIST, KMNIST, and several scripts like Ethiopic, Vai, and Kannada.
  • Dynamical Systems: Chaotic Lorenz attractors and Van der Pol oscillators.
  • Motor Control: A standard neuroscience paradigm involving an RNN-controlled point-mass arm reaching targets.

Key Insights: Task-Selective Clusters and Gain

A significant finding is the emergence of task-selective clusters. When trained on multiple datasets simultaneously, the network naturally partitions its neurons into groups that specialize in specific tasks, even though the underlying weights are identical across all tasks.

Normalized task variance across units for different datasets, illustrating the emergence of task-selective clusters.

Additionally, for RNNs, the "gain" (variance of random weights) is critical. Successful learning of complex dynamics requires a gain of at least 1.0; if weights are too small, bias adjustments cannot recover the necessary dynamical complexity.

Results

Experimental results confirm that bias-only networks can match the performance of fully trained counterparts. On Fashion MNIST, accuracy improved with hidden layer width, eventually reaching parity with standard training.

(A) Validation error decreases as the number of trainable parameters (width) increases. (B) Bias-only networks achieve comparable accuracy to fully-trained networks across multiple datasets.

In multi-task scenarios, bias-only networks demonstrated extreme parameter efficiency. For instance, a bias-only network with approximately 32,000 trainable parameters achieved performance comparable to a fully trained network with 25,000,000 parameters. Furthermore, bias-only RNNs successfully captured chaotic trajectories and generalized to unseen motor control targets, producing biologically realistic velocity profiles.

Discussion and Limitations

While the results are promising, a significant "width gap" exists between theory and practice. Mathematical proofs require astronomical hidden layer sizes (e.g., $10^{12}$ neurons) for guaranteed solutions, yet empirical success is observed with only $10^3$ to $10^4$ neurons. The performance is also highly sensitive to initialization, particularly the weight distribution's gain. Future work is needed to extend RNN proofs to long-term stability and to investigate whether biological brains utilize similar masking mechanisms via neuromodulation for rapid learning.

Summary updated

BibTeX
@inproceedings{williams2025expressivity,
  author = {Ezekiel Williams and Avery Hee-Woon Ryoo and Thomas Jiralerspong and Alexandre Payeur and Matthew G. Perich and Luca Mazzucato and Guillaume Lajoie},
  title = {{Expressivity of Neural Networks with Random Weights and Learned Biases}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=5xwx1Myosu},
}
Figure