Symbolic Representation and Learning With Hyperdimensional Computing

Anton Mitrokhin, Peter Sutor Jr., Douglas Summers-Stay, Cornelia Fermüller, Yiannis AloimonosFrontiers Robotics AI 2020 · DOI

Abstract

This paper introduces a method to bridge the gap between deep learning and symbolic reasoning using Hyperdimensional Computing (HDC). By mapping the outputs of neural hashing networks into a high-dimensional binary space, the authors create a "Hyperdimensional Inference Layer" (HIL) that improves image classification performance, speeds up training, and enables the seamless fusion of multiple models without retraining.

Introduction

Machine Learning (ML) excels at pattern recognition but often lacks interpretability, data efficiency, and the ability to incorporate structured knowledge. Conversely, symbolic reasoning is transparent and logical but difficult to apply to "fuzzy" raw data like images. This research addresses the "connectionist vs. symbolic" divide by proposing a method to represent dense, information-rich data (like RGB images) in a symbolic format that a computer can manipulate logically using Vector Symbolic Architectures (VSA).

Methods: The Hyperdimensional Inference Layer (HIL)

The core innovation is the Hyperdimensional Inference Layer (HIL), which transforms neural network outputs into symbolic representations through a multi-step process:

  1. Neural Hashing: Pre-trained hashing networks (e.g., DQN, DCH, or DTQ) convert raw images into short binary codes.
  2. Hyperdimensional Projection: These codes are projected into a massive 10,000-bit binary space. In this high-dimensional space, random vectors are almost certainly orthogonal, allowing for distinct symbolic representation.
  3. Symbolic Operations: HDC mathematics are used to manipulate these vectors:
  4. XORing: Used for "binding" (associating a feature with a label).
  5. Consensus Sum: A bit-wise majority vote used to "memorize" multiple instances of a class into a single representative vector.
  6. Permutation: Used to represent sequences or structures.
Mapping multi-modal sensory data into a 10,000-dimensional binary symbolic space.

During training, the HIL aggregates the projected vectors of all training images for a specific class into one "memory" vector. For inference, a new image's vector is XORed with the HIL, and the Hamming Distance is measured against known class symbols to determine the best match.

Consensus Architecture and Model Fusion

A key feature of this framework is the Consensus Architecture. This allows the outputs of multiple different neural networks to be fused at the symbolic level simply by aggregating their HILs. Traditionally, combining models requires complex ensemble methods or retraining; here, models can be fused with almost no additional computational cost.

The HIL aggregates learned examples to perform classification via vector matching and consensus.

Experimental Evaluation

The authors evaluated the HIL approach on two standard image benchmarks:

  • CIFAR-10: 60,000 small images across 10 classes.
  • NUSWIDE_81: A complex dataset of Flickr images with 81 concept tags.

Key Results

  • Performance Gain: HIL-enhanced models consistently outperformed baseline hashing networks on CIFAR-10.
  • The Power of Consensus: Fusing three different hashing models (DQN, DCH, and DTQ) increased the F1 score to 0.79, a 10% improvement over the best individual model.
  • Training Efficiency: Models reached peak F1 scores in significantly fewer training epochs compared to baselines.
  • Computational Speed: HDC operations (XOR and bit-counting) are hardware-friendly, adding only milliseconds of overhead on a standard CPU.

Discussion and Future Work

While the HIL provides a robust symbolic memory buffer that filters noise and improves classification, it currently relies on networks that already produce binary hashes. Future work aims to develop methods to project standard real-valued neural embeddings (like ResNet) into binary HD space without information loss.

Furthermore, the current implementation represents "shallow symbolism." The authors propose integrating knowledge graphs directly into the HD space to leverage full symbolic logic (e.g., reasoning that an object with four legs that barks must be a dog). As the number of symbolic concepts scales, advanced indexing techniques will be required to maintain the speed of nearest-neighbor searches in hyperdimensional space.

Summary updated

BibTeX
@article{mitrokhin2020symbolic,
  author = {Anton Mitrokhin and Peter Sutor Jr. and Douglas Summers-Stay and Cornelia Fermüller and Yiannis Aloimonos},
  title = {{Symbolic Representation and Learning With Hyperdimensional Computing}},
  journal = {Frontiers Robotics AI},
  year = {2020},
  doi = {10.3389/frobt.2020.00063},
}
Figure