Capacity Analysis of Vector Symbolic Architectures

Kenneth L. Clarkson, Shashanka Ubaru, Elizabeth Yang

Abstract

Hyperdimensional computing (HDC) is a biologically-inspired framework which represents symbols with high-dimensional vectors, and uses vector operations to manipulate them. The ensemble of a particular vector space and a prescribed set of vector operations (including one addition-like for "bundling" and one outer-product-like for "binding") form a vector symbolic architecture (VSA). While VSAs have been employed in numerous applications and have been studied empirically, many theoretical questions about VSAs remain open. We analyze the representation capacities of four common VSAs: MAP-I, MAP-B, and two VSAs based on sparse binary vectors. "Representation capacity" here refers to bounds on the dimensions of the VSA vectors required to perform certain symbolic tasks, such as testing for set membership $i \in S$ and estimating set intersection sizes $|X \cap Y|$ for two sets of symbols $X$ and $Y$, to a given degree of accuracy. We also analyze the ability of a novel variant of a Hopfield network (a simple model of associative memory) to perform some of the same tasks that are typically asked of VSAs. In addition to providing new bounds on VSA capacities, our analyses establish and leverage connections between VSAs, "sketching" (dimensionality reduction) algorithms, and Bloom filters.

Introduction

Hyperdimensional Computing (HDC) and Vector Symbolic Architectures (VSA) have emerged as robust frameworks for biologically inspired AI. By representing information as high-dimensional, near-orthogonal vectors, these systems can perform symbolic reasoning with the resilience typically associated with neural networks. However, while VSAs have shown empirical success, the theoretical foundations governing their "representation capacity"—the minimum vector dimensions required for reliable performance—have often been lacking.

In the paper "Capacity Analysis of Vector Symbolic Architectures," Kenneth L. Clarkson, Shashanka Ubaru, and Elizabeth Yang provide the necessary mathematical rigor. They translate VSA operations into the language of randomized algorithms and sketching, establishing concrete bounds on how vector dimensions must scale to perform symbolic tasks like set membership and intersection estimation reliably.

Defining Vector Symbolic Architectures

The research focuses on four primary architectures, each defined by its atomic vector representation and its specific operations for "bundling" (representing sets) and "binding" (representing relationships).

Summary of VSA operations and vector types.

These architectures include:

  1. MAP-I (Integer): Uses vectors of $+1$ and $-1$, where bundling is performed via simple element-wise addition.
  2. MAP-B (Binary): Similar to MAP-I, but bundling involves a "majority" rule (sign function) to squash the result back into binary values.
  3. Bloom Filters & Counting Bloom Filters: Treated as sparse binary VSAs where bundling is a logical OR or addition, respectively.

Theoretical Framework: VSA as Sketching

The authors treat VSA operations as a form of sketching—a technique in computer science used to compress massive datasets into small "sketches" that still allow for approximate queries. By leveraging heavy-duty probabilistic tools, such as the Johnson-Lindenstrauss (JL) Lemma and various concentration inequalities (e.g., McDiarmid’s and Hanson-Wright), the researchers prove that these high-dimensional sketches preserve the essential "geometry" of the original symbolic data.

This perspective allows for the derivation of rigorous bounds. For instance, the "Blessing of Dimensionality" ensures that in high-dimensional space, random vectors are nearly orthogonal with high probability, allowing for massive data compression with minimal interference (crosstalk).

Key Insights and Results

The analysis yields several critical insights for the design of HDC systems:

  • Scaling Laws: For MAP-I, the dimension $m$ required to estimate set sizes with error $\epsilon$ scales as $O(\epsilon^{-2} \log(1/\delta))$, notably independent of the total number of possible symbols. For MAP-B membership, $m$ must scale with $O(n \log(d/\delta))$, where $n$ is the bundle size and $d$ is the symbol universe size.
  • Non-Associativity in MAP-B: A crucial finding is that MAP-B bundling is not associative. The signal of an item decays exponentially as the depth of the bundling tree increases, which suggests that the order of operations matters significantly in binary models.
  • Bloom Filter Intersections: While Bloom filters are traditionally used for membership tests, the authors provide a novel, rigorous analysis of their use in estimating the size of intersections between two sets ($|X \cap Y|$).
  • Hopfield$\pm$ Efficiency: The paper introduces a novel Hopfield network variant that can store and recover $m^2$ vectors using $O(m^2)$ space, achieving storage efficiency comparable to MAP-I while maintaining hardware-friendly properties.

Conclusion and Future Work

This work provides a mathematical foundation for HDC, offering a "cheat sheet" for determining the required vector dimensions for specific accuracy levels. While it establishes bounds for membership and intersection, future work remains to analyze binding operations for sparse VSAs and to explore how these bounds adapt to noisy or correlated initial atomic vectors. By bridging VSAs with sketching algorithms, this research offers a principled path forward for building more complex and reliable hyperdimensional algorithms.

Summary updated

Abstract

Hyperdimensional computing (HDC) is a biologically-inspired framework which represents symbols with high-dimensional vectors, and uses vector operations to manipulate them. The ensemble of a particular vector space and a prescribed set of vector operations (including one addition-like for "bundling" and one outer-product-like for "binding") form a *vector symbolic architecture* (VSA). While VSAs have been employed in numerous applications and have been studied empirically, many theoretical questions about VSAs remain open. We analyze the *representation capacities* of four common VSAs: MAP-I, MAP-B, and two VSAs based on sparse binary vectors. "Representation capacity' here refers to bounds on the dimensions of the VSA vectors required to perform certain symbolic tasks, such as testing for set membership $i \in S$ and estimating set intersection sizes $|X \cap Y|$ for two sets of symbols $X$ and $Y$, to a given degree of accuracy. We also analyze the ability of a novel variant of a Hopfield network (a simple model of associative memory) to perform some of the same tasks that are typically asked of VSAs. In addition to providing new bounds on VSA capacities, our analyses establish and leverage connections between VSAs, "sketching" (dimensionality reduction) algorithms, and Bloom filters.
BibTeX
@misc{clarkson2023capacity,
  author = {Kenneth L. Clarkson and Shashanka Ubaru and Elizabeth Yang},
  title = {{Capacity Analysis of Vector Symbolic Architectures}},
  year = {2023},
  eprint = {2301.10352},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2301.10352},
}

Loading related content...

Figure