Manuscript Offprint

arXiv:2610.22083

Beyond the Hamming Cliff: Compact Spatial Encodings Preserving Semantic Distance in Spiking Neural Networks

Sergio Davies, Muhammad Aitsam, Morgan-Tyler Stone, Alessandro Di Nuovo, Liangxiu Han

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ARTICLE INFO

Keywords:

Spiking Neural Networks

SNN

Spatial Pattern

STDP

Spike Timing Dependent Plasticity

Supervised Learning

Spike Encoding

Hamming Distance

ABSTRACT

Spatial encoding lets a spiking neural network classify a value without a temporal integration window, by presenting it as one pattern of simultaneous spikes, but makes classification depend on the geometry of the binary code. In standard binary, adjacent values such as 127 and 128 differ in every bit, a “Hamming cliff” that forces supervised STDP networks with homeostasis into excessive scaling and false positives. We present a controlled characterisation of this dependence rather than an application benchmark: every experiment runs on SpiNNaker hardware, in a dual-rail network with a single output neuron, and presents every value of a synthetic integer range. Gray, Thermometer and Johnson encodings all remove the cliff, but only Thermometer and Johnson preserve global semantic distance, at a width that grows linearly with the range. We introduce a family of hybrid encodings, combining a coarse magnitude code with a Gray code for fine position, that contains all three as exact limiting cases of a single parameter; a sevenfold reduction in width costs one percent of the correlation between Hamming and semantic distance. The homeostatic factor sets a Hamming radius of tolerance that the network follows exactly in 93% of conditions, and elsewhere to within one bit, so the encoding alone determines what that tolerance means: a contiguous interval for Thermometer and Johnson, wrapping at the range ends for the cyclic codes, and scattered values for Binary and Gray. Measuring the limit on simultaneous input on SpiNNaker and SpiNNaker2, we show that on SpiNNaker it is a silent software default, and that the hybrids remain within it at 1024 values where their parent codes do not. Evaluation on a downstream task, such as network-traffic classification, is left to future work.

References (39)