Huffman Coding for Storing Non-Uniformly Distributed Messages in Networks of Neural Cliques

Bartosz Boguslawski, Vincent Gripon, Fabrice Seguin, Frédéric HeitzmannAAAI 2014

Abstract

Associative memories are data structures that allow retrieval of previously stored messages given part of their content. Among different families of associative memories, sparse ones are known to provide the best efficiency. Nevertheless, non-uniformity of the stored messages can lead to a dramatic decrease in performance. Recently, a new family of sparse associative memories achieving almost-optimal efficiency has been proposed, inducing a direct mapping between input messages and stored patterns. In this work, we show the impact of non-uniformity on the performance of this recent model and exploit its structure to introduce several strategies for efficient storage of non-uniform messages. We demonstrate that a technique based on Huffman coding is the most efficient.

Introduction: The Challenge of Real-World Data

Associative memories function similarly to the human brain, retrieving a full message from a partial or noisy cue. Neuro-inspired models, specifically "networks of neural cliques" (the Gripon-Berrou model), offer a low-complexity alternative with high theoretical efficiency. In these models, messages are represented as cliques in a multipartite graph of neural clusters.

Structure of a network of neural cliques where messages are represented as cliques across clusters.

However, these models typically rely on the assumption that input data is uniformly distributed. In real-world applications, data is rarely uniform; certain patterns or values appear much more frequently than others. When non-uniform data is stored in these networks, specific neurons—termed "fanals"—become overloaded. This localized high density creates interference, leading to a sharp increase in retrieval errors and a collapse in storage capacity.

Methods for Load Balancing

To address the performance collapse, the authors explore strategies to introduce "spatial diversity" and balance the load across the network:

  1. Adding Random Clusters: The network is expanded with additional clusters containing random values. These act as a "stamp" to help distinguish messages that would otherwise overlap due to non-uniformity.
  2. Adding Random Bits: Instead of adding clusters, the range of existing clusters is expanded by appending random bits to data segments. This effectively spreads frequent values across a wider variety of fanals.
  3. Huffman Coding Strategy: This proposed solution applies Huffman lossless compression to messages before storage. Since Huffman coding assigns shorter codewords to frequent values, it creates "free space" in fixed-length segments. This space is then filled with random bits.

In this context, Huffman coding acts as a density redistributor. Frequent values, which would normally create "hotspots," are mapped to a diverse range of fanal combinations, effectively "whitening" the data distribution for the neural network.

Key Results

The primary limit on associative memory performance is the "density" of connections. Once too many connections are established, the network can no longer distinguish between different cliques (messages).

Error rate vs. number of stored messages (M) for various strategies. Huffman coding (dots at the bottom) maintains near-zero error rates far longer than other methods.

As shown in the experimental results, the Huffman coding strategy allows the network to store significantly more messages before reaching a critical error threshold. While simple randomization techniques like adding random bits improve capacity, the Huffman strategy provides the most robust recovery of performance. In larger-scale tests, this approach demonstrated a nearly 8-fold increase in storage capacity for non-uniform datasets compared to simpler strategies, recovering a massive portion of the performance lost to non-uniformity.

Discussion and Future Work

While highly effective, the Huffman approach introduces some overhead, such as the need for a dictionary and prior knowledge of the data distribution. Future research may explore "Adaptive Huffman coding" for streaming data or "self-adapting" networks that dynamically adjust cluster sizes or fanal density based on the encountered data, potentially internalizing the load-balancing mechanism.

Summary updated

BibTeX
@inproceedings{boguslawski2014huffman,
  author = {Bartosz Boguslawski and Vincent Gripon and Fabrice Seguin and Frédéric Heitzmann},
  title = {{Huffman Coding for Storing Non-Uniformly Distributed Messages in Networks of Neural Cliques}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2014},
  url = {https://openreview.net/forum?id=rJ4wEgb_bH},
}
Figure