Torchhd: An Open-Source Python Library to Support Hyperdimensional Computing Research
Hyperdimensional Computing (HDC) is a neuro-inspired computing framework that
exploits high-dimensional random vector spaces. HDC uses extremely
parallelizable arithmetic to provide computational solutions that balance
accuracy, efficiency and robustness. This has proven especially useful in
resource-limited scenarios such as embedded systems. The commitment of the
scientific community to aggregate and disseminate research in this particularly
multidisciplinary field has been fundamental for its advancement. Adding to
this effort, we propose Torchhd, a high-performance open-source Python library
for HDC. Torchhd seeks to make HDC more accessible and serves as an efficient
foundation for research and application development. The easy-to-use library
builds on top of PyTorch and features state-of-the-art HDC functionality, clear
documentation and implementation examples from notable publications. Comparing
publicly available code with their Torchhd implementation shows that
experiments can run up to 104$\times$ faster. Torchhd is available at:
https://github.com/hyperdimensional-computing/torchhd