2.1 Spiking sequence machines and transformers
Question. Why do a neuroscience derived sequence machine (2007) and an engineering derived transformer (2017) perform equivalent operations?
Method. Both are decomposed into five functions: encoding, context, associative retrieval, storage and readout. The shared primitive is comparison of high dimensional vectors by similarity (cosine or dot product). A "phase latency isomorphism" is derived: sinusoidal position signals and spike latencies are two coordinate systems for the same ordered quantity, and the attention dot product is indifferent to which is used, up to a scale factor.
Findings. On a copy task, compressing the position signal until positions are no longer distinguishable stops convergence. A learned rank based position performs as well as the sinusoid, and in some settings better. The relevant property is therefore that positions remain separable under similarity lookup, not any particular formula. Spiking implementations of the underlying memory match conventional ones in capacity across several neuron models (Ajwani et al., 2021, on the Nengo framework).
Limitations. The experiment is a copy task. Longer sequences, natural language data and a wider baseline set are not yet covered.