Skip to main content
Cornell University
We gratefully acknowledge support from the Simons Foundation, member institutions, and all contributors. Donate
arxiv logo > cs > arXiv:2110.02865

Help | Advanced Search

arXiv logo
Cornell University Logo

quick links

  • Login
  • Help Pages
  • About

Computer Science > Neural and Evolutionary Computing

arXiv:2110.02865 (cs)
[Submitted on 6 Oct 2021 (v1), last revised 16 Mar 2022 (this version, v3)]

Title:Spike-inspired Rank Coding for Fast and Accurate Recurrent Neural Networks

Authors:Alan Jeffares, Qinghai Guo, Pontus Stenetorp, Timoleon Moraitis
View a PDF of the paper titled Spike-inspired Rank Coding for Fast and Accurate Recurrent Neural Networks, by Alan Jeffares and 3 other authors
View PDF
Abstract:Biological spiking neural networks (SNNs) can temporally encode information in their outputs, e.g. in the rank order in which neurons fire, whereas artificial neural networks (ANNs) conventionally do not. As a result, models of SNNs for neuromorphic computing are regarded as potentially more rapid and efficient than ANNs when dealing with temporal input. On the other hand, ANNs are simpler to train, and usually achieve superior performance. Here we show that temporal coding such as rank coding (RC) inspired by SNNs can also be applied to conventional ANNs such as LSTMs, and leads to computational savings and speedups. In our RC for ANNs, we apply backpropagation through time using the standard real-valued activations, but only from a strategically early time step of each sequential input example, decided by a threshold-crossing event. Learning then incorporates naturally also *when* to produce an output, without other changes to the model or the algorithm. Both the forward and the backward training pass can be significantly shortened by skipping the remaining input sequence after that first event. RC-training also significantly reduces time-to-insight during inference, with a minimal decrease in accuracy. The desired speed-accuracy trade-off is tunable by varying the threshold or a regularization parameter that rewards output entropy. We demonstrate these in two toy problems of sequence classification, and in a temporally-encoded MNIST dataset where our RC model achieves 99.19% accuracy after the first input time-step, outperforming the state of the art in temporal coding with SNNs, as well as in spoken-word classification of Google Speech Commands, outperforming non-RC-trained early inference with LSTMs.
Comments: Spotlight paper at ICLR 2022
Subjects: Neural and Evolutionary Computing (cs.NE); Computer Vision and Pattern Recognition (cs.CV); Machine Learning (cs.LG); Neurons and Cognition (q-bio.NC)
Cite as: arXiv:2110.02865 [cs.NE]
  (or arXiv:2110.02865v3 [cs.NE] for this version)
  https://doi.org/10.48550/arXiv.2110.02865
arXiv-issued DOI via DataCite
Journal reference: International Conference on Learning Representations. https://openreview.net/forum?id=iMH1e5k7n3L (2022)

Submission history

From: Timoleon Moraitis [view email]
[v1] Wed, 6 Oct 2021 15:51:38 UTC (634 KB)
[v2] Mon, 31 Jan 2022 12:25:13 UTC (1,433 KB)
[v3] Wed, 16 Mar 2022 04:16:28 UTC (1,434 KB)
Full-text links:

Access Paper:

    View a PDF of the paper titled Spike-inspired Rank Coding for Fast and Accurate Recurrent Neural Networks, by Alan Jeffares and 3 other authors
  • View PDF
  • TeX Source
  • Other Formats
view license
Current browse context:
cs.NE
< prev   |   next >
new | recent | 2021-10
Change to browse by:
cs
cs.CV
cs.LG
q-bio
q-bio.NC

References & Citations

  • NASA ADS
  • Google Scholar
  • Semantic Scholar

DBLP - CS Bibliography

listing | bibtex
Pontus Stenetorp
Timoleon Moraitis
a export BibTeX citation Loading...

BibTeX formatted citation

×
Data provided by:

Bookmark

BibSonomy logo Reddit logo

Bibliographic and Citation Tools

Bibliographic Explorer (What is the Explorer?)
Connected Papers (What is Connected Papers?)
Litmaps (What is Litmaps?)
scite Smart Citations (What are Smart Citations?)

Code, Data and Media Associated with this Article

alphaXiv (What is alphaXiv?)
CatalyzeX Code Finder for Papers (What is CatalyzeX?)
DagsHub (What is DagsHub?)
Gotit.pub (What is GotitPub?)
Hugging Face (What is Huggingface?)
Papers with Code (What is Papers with Code?)
ScienceCast (What is ScienceCast?)

Demos

Replicate (What is Replicate?)
Hugging Face Spaces (What is Spaces?)
TXYZ.AI (What is TXYZ.AI?)

Recommenders and Search Tools

Influence Flower (What are Influence Flowers?)
CORE Recommender (What is CORE?)
  • Author
  • Venue
  • Institution
  • Topic

arXivLabs: experimental projects with community collaborators

arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.

Which authors of this paper are endorsers? | Disable MathJax (What is MathJax?)
  • About
  • Help
  • contact arXivClick here to contact arXiv Contact
  • subscribe to arXiv mailingsClick here to subscribe Subscribe
  • Copyright
  • Privacy Policy
  • Web Accessibility Assistance
  • arXiv Operational Status
    Get status notifications via email or slack