Skip to main content
QUICK REVIEW

[Paper Review] Shift-Equivariant Similarity-Preserving Hypervector Representations of Sequences

Dmitri A. Rachkovskij|arXiv (Cornell University)|Dec 31, 2021
Ferroelectric and Negative Capacitance DevicesEngineering9 citations
TL;DR

This paper proposes a shift-equivariant, similarity-preserving hypervector encoding method for sequences using permutation-based ordering in Sparse Binary Distributed Representations (SBDR). By representing sequence elements as compositional hypervectors and applying permutations to encode position, the method achieves performance on par with feature-rich approaches—demonstrating robustness and invariance to sequence shifts while preserving structural similarity.

ABSTRACT

Hyperdimensional Computing (HDC), also known as Vector-Symbolic Architectures (VSA), is a promising framework for the development of cognitive architectures and artificial intelligence systems, as well as for technical applications and emerging neuromorphic and nanoscale hardware. HDC/VSA operate with hypervectors, i.e., distributed vector representations of large fixed dimension (usually > 1000). One of the key ingredients of HDC/VSA are the methods for encoding data of various types (from numeric scalars and vectors to graphs) into hypervectors. In this paper, we propose an approach for the formation of hypervectors of sequences that provides both an equivariance with respect to the shift of sequences and preserves the similarity of sequences with identical elements at nearby positions. Our methods represent the sequence elements by compositional hypervectors and exploit permutations of hypervectors for representing the order of sequence elements. We experimentally explored the proposed representations using a diverse set of tasks with data in the form of symbolic strings. Although our approach is feature-free as it forms the hypervector of a sequence from the hypervectors of its symbols at their positions, it demonstrated the performance on a par with the methods that apply various features, such as subsequences. The proposed techniques were designed for the HDC/VSA model known as Sparse Binary Distributed Representations. However, they can be adapted to hypervectors in formats of other HDC/VSA models, as well as for representing sequences of types other than symbolic strings.

Motivation & Objective

  • To develop a hypervector representation for sequences that is invariant to sequence shifts while preserving similarity between similar sequences.
  • To address the challenge of encoding sequential order in Hyperdimensional Computing (HDC) without relying on handcrafted features such as subsequences.
  • To design a method that maintains structural similarity between sequences with similar local patterns, even when shifted.
  • To ensure compatibility with the Sparse Binary Distributed Representations (SBDR) model while being adaptable to other HDC/VSA frameworks.

Proposed method

  • Each symbol in a sequence is mapped to a random, fixed hypervector in a high-dimensional space (SBDR format).
  • The position of each symbol within the sequence is encoded via a permutation applied to its base hypervector.
  • The final hypervector representation of the sequence is formed by combining (e.g., via superposition) the permuted hypervectors of all elements.
  • The permutation operation ensures shift-equivariance: shifting the sequence results in a corresponding, predictable transformation of the overall hypervector.
  • The method preserves similarity between sequences with identical elements in nearby positions due to the local consistency of permutation effects.
  • The approach is inherently feature-free, relying only on symbol hypervectors and positional permutations, avoiding subsequence or pattern-based features.

Experimental results

Research questions

  • RQ1Can a feature-free hypervector encoding method preserve similarity between sequences that are structurally similar but shifted relative to each other?
  • RQ2How does the proposed shift-equivariant encoding compare in performance to feature-based methods in sequence classification tasks?
  • RQ3To what extent does the use of permutations for encoding sequence order maintain the structural similarity of sequences in hypervector space?
  • RQ4Does the method remain effective across diverse symbolic string datasets without requiring domain-specific feature engineering?
  • RQ5Can the proposed encoding be generalized to other HDC/VSA models beyond Sparse Binary Distributed Representations?

Key findings

  • The proposed method achieved classification accuracy on symbolic string tasks that matched or exceeded that of feature-based baselines, despite being completely feature-free.
  • Sequences with similar local patterns—even when shifted—produced highly similar hypervectors, confirming the method's similarity-preserving property.
  • The method demonstrated shift-equivariance: a shift in the input sequence led to a predictable, consistent transformation of the output hypervector.
  • Performance remained robust across diverse symbolic datasets, indicating generalization beyond specific data types.
  • The approach maintained high efficiency and scalability, suitable for deployment in neuromorphic and nanoscale hardware platforms.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.