Introduction
In Natural Language Processing (NLP), text representation often relies on the "bag-of-words" model, which generates high-dimensional, binary vectors. While effective for many machine learning architectures, these vectors are characterized by extreme sparsity—where the vast majority of features are zero. For Weightless Neural Networks (WNNs), such as the WiSARD model, this sparsity presents a significant challenge. Unlike traditional deep learning models that utilize weighted connections, WiSARD relies on RAM-based look-up tables. When inputs are sparse, the network struggles to populate these tables with meaningful patterns, leading to increased computational overhead and diminished classification accuracy.
Methodology: Feature Bundling
To address the limitations of sparse inputs in WNNs, researchers have introduced a technique known as Feature Bundling. This method densifies the input "retina" through a three-step process:
- Random Grouping: Input columns (representing individual words) are randomly assigned into groups of a fixed size, referred to as the bundling factor.
- Logical OR Aggregation: Each group is condensed into a single feature. If any word within the group is present in the document (value = 1), the resulting bundled feature is set to 1.
- Dimensionality Reduction: This process effectively reduces the total number of features while increasing the density of the remaining ones.
This approach is conceptually similar to "zooming out" on a digital image. By blurring fine-grained details (individual words), the network can better capture the essential contours and broader patterns within the data.
Experimental Setup and Insights
The study utilized the DonorsChoose.org challenge dataset, consisting of over 182,000 samples. The task involved classifying classroom funding proposals as "approved" or "disapproved" based on teacher descriptions. The raw vocabulary of 100,000 words was pruned to 16,000 features, which were then bundled and categorized into eight thematic groups, such as "Math & Science" and "Literacy & Language."
The theoretical advantage of bundling lies in the Entropy Boost. In a WiSARD network, RAM locations are indexed by bits from the input. High sparsity causes RAM indices to remain at zero, preventing learning. Bundling increases the probability of a "1" appearing, thereby increasing the entropy of RAM addresses and making memory states more informative.
Key Results
Empirical results demonstrate that Feature Bundling consistently improves performance. The method outperformed baseline models (no bundling) in nearly 90% of simulations, with an average accuracy improvement of 3.8%.
As shown in the data, the "sweet spot" for bundling typically falls between factors of 3 and 6. For instance, the "Math & Science" category saw a 7.0% gain with a bundling factor of 3. However, performance begins to degrade if the bundle size is too large (e.g., 20), as excessive information loss occurs. Beyond accuracy, the reduction in input size enhances computational efficiency, making the model better suited for resource-constrained online learning environments.
Conclusion and Future Work
Feature Bundling provides a simple yet powerful mechanism for adapting Weightless Neural Networks to sparse text data. While random grouping is effective, future research may explore semantic bundling—grouping words based on embeddings like Word2Vec—or proximity-based bundling to further refine the network's pattern recognition capabilities.
Summary updated