The repo hosts a C implementation of the paper:
Weightless Neural Networks for Efficient Edge Inference, Zachary Susskind, Aman Arora, Igor Dantas Dos Santos Miranda, Luis Armando Quintanilla Villon, Rafael Fontella Katopodis, Leandro Santiago de Araújo, Diego Leonel Cadette Dutra, Priscila Lima, Felipe Maia Galvão França, Mauricio Breternitz Jr., Lizy John. Presented at the 31st International Conference on Parallel Architectures and Compilation Techniques (PACT 2022)
I am not affiliated with the research team that produced this paper
-
See https://github.com/ZSusskind/BTHOWeN for the implementation by the authors
-
See https://github.com/Alantlb/wzero for a WNN library written in C++ with a python interface
Download the MNIST dataset (t10k-images-idx3-ubyte
, ...) and place it in data/
.
The main
contains a simple example of loading the MNIST dataset, binarizing it, training the model and testing it.
make ./main
The library consists of the following parts:
- A model that can be train and that can predict. Architecture is detailed in the above mentioned paper.
- A data loader for the MNIST dataset
- A way to apply Gaussian thermometer encoding to any dataset
- A model manager (load/save)
- A (very lightweight) tensor implementation