Introduction
Weightless Neural Networks (WNNs) represent a departure from traditional connectionist models by utilizing RAM-based look-up tables instead of weighted synaptic connections. This architecture offers significant advantages for Edge AI and Internet of Things (IoT) applications due to its low computational requirements and high inference speed. However, implementing Federated Learning (FL) with WNNs presents a unique challenge: aggregating the "knowledge" stored in these RAM structures across multiple devices can lead to substantial communication overhead, as the contents of the RAMs can become quite large to transmit over a network.
Methodology
The research focuses on the WiSARD architecture and its DRASiW extension, which employs frequency counters to track pattern occurrences. To facilitate efficient knowledge aggregation in a federated environment, the authors propose replacing standard hash-map-based RAMs (Dict-WiSARD) with probabilistic data structures designed for compression:
- Counting Bloom Filters (CB): These extend standard Bloom Filters to allow for frequency estimation, enabling the tracking of how often specific features are observed rather than just set membership.
- Count-Min Sketch (CMS): A 2D matrix structure ($W \times d$) that utilizes multiple hash functions to provide compact frequency estimates of elements.
The primary advantage of these structures is their "joinability." In an FL scenario, local models can be merged at a central server simply by summing their underlying matrices, provided they share the same hashing parameters. This allows for a "union" operation that aggregates knowledge without needing to transmit the full, uncompressed RAM contents.
Experimental Evaluation
The proposed methods were evaluated across nine diverse datasets, including MNIST for image recognition, MotionSense for activity tracking, and several UCI repository datasets such as Breast Cancer, Wine, and Iris. To handle real-valued data, the researchers employed Thermometer Encoding and Distributive Thermometer Encoding, which convert continuous values into binary patterns suitable for the WNN's RAM-addressing mechanism.
Results and Discussion
The study identifies a critical trade-off between the size of the probabilistic structure and the resulting model accuracy. While smaller structures significantly reduce bandwidth requirements, they increase the probability of hash collisions, which can degrade the network's discriminative power.
Key findings include:
- Optimal Efficiency: A CMS configuration with a width ($W$) of 50 and depth ($d$) of 2 or 3 achieved a 3x reduction in model size compared to the Dict-WiSARD baseline while keeping performance loss under 3% across all tested datasets.
- Scalability Concerns: The impact of compression is more pronounced on complex datasets like MNIST or MotionSense. Aggressive compression (e.g., $W=20, d=3$) can lead to significant accuracy drops, necessitating careful parameter tuning based on the specific task complexity.
- Superiority of CMS: The Count-Min Sketch generally proved more flexible and efficient for this specific task than the Counting Bloom Filter variants.
Conclusion and Future Work
By leveraging probabilistic data structures like Count-Min Sketches, Federated Learning for Weightless Neural Networks becomes significantly more viable for bandwidth-constrained IoT environments. However, the success of this method relies heavily on tuning the $W$ and $d$ parameters, as a "one size fits all" approach is insufficient for varying dataset complexities.
Future work will address the interaction between probabilistic noise introduced by sketches and "bleaching" techniques (used to filter low-frequency noise in WNNs). Additionally, the researchers aim to investigate methods for aggregating heterogeneous models that may not share the same initial mappings or parameters.
Summary updated