---
title: Generalized Holographic Reduced Representations
url: https://www.emergentmind.com/topics/generalized-hrrs-ghrr
type: topic
---

# Generalized Holographic Reduced Representations

Generalized Holographic Reduced Representations (GHRR) define a class of Hyperdimensional Computing (HDC) frameworks that extend the capabilities of Fourier Holographic Reduced Representations (FHRR) by introducing a flexible, non-commutative binding operation. Each GHRR hypervector is structured as a sequence of $m \times m$ unitary matrices, providing a parameterization that interpolates between scalar (commutative) FHRR and full tensor-product representations. The approach enables improved encoding fidelity for complex, nested, or compositional data structures, while retaining canonical HDC features such as robustness to cross-talk noise, explicit invertibility of binding, and transparent similarity metrics. GHRR maintains data and computational efficiency, offering a powerful representational toolkit at the intersection of connectionist and symbolic AI paradigms [2405.09689].

## 1. Formal Structure and Core Operations

A GHRR hypervector is a length-$D$ tuple of $m\times m$ unitary matrices, notated as
$$
\mathcal{H}_{D,m} = (U(m))^D \subset \mathbb{C}^{D \times m \times m},
$$
where $U(m)$ denotes the group of $m\times m$ unitary matrices. For a hypervector $H = [a_1, a_2, \ldots, a_D]^T$ with $a_j \in U(m)$, the three canonical HDC operations are defined componentwise:
- **Bundling (Superposition):** $H_1 \oplus H_2 := [a_j + b_j]_{j=1\ldots D}$
- **Binding (Non-commutative, denoted "$\star$"):** $H_1 \star H_2 := [a_j b_j]_{j=1\ldots D}$; matrix multiplication enforces non-commutativity when $m>1$.
- **Inverse Binding (Unbinding):** $H^{-1} := [a_j^\dagger]_{j=1\ldots D}$, guaranteeing $H \star H^{-1} = [I_m,\ldots, I_m]^T$.

Similarity for $H_1, H_2\in\mathcal{H}_{D,m}$ is defined by
$$
\delta(H_1, H_2) := \frac{1}{mD}\operatorname{Re} \mathrm{Tr}\sum_{j=1}^D a_j b_j^\dagger.
$$
For $m=1$, GHRR reduces to the FHRR inner product, confirming the generalization.

## 2. Relationship to Fourier Holographic Reduced Representations

The FHRR model arises as the special case $m=1$, with each $a_j$ a unit modulus complex scalar: $a_j = e^{i\theta_j} \in U(1)$. In FHRR, bundling is elementwise addition, binding is elementwise multiplication, and unbinding applies elementwise complex conjugation. Specifically,
$$
H_1 * H_2 = [e^{i(\theta_j+\phi_j)}]_{j=1\ldots D}, \qquad (H_1*H_2)*H_2^\dagger = H_1.
$$
In GHRR, each scalar $e^{i\theta_j}$ is replaced by $a_j\in U(m)$; binding is matrix multiplication, and unbinding uses the Hermitian transpose, yielding a non-commutative algebra for $m>1$ and enabling richer compositional encodings [2405.09689].

## 3. Theoretical Properties

GHRR preserves the central theoretical properties necessary for robust HDC:

- **Quasi-Orthogonality:** For $D\to\infty$, with each $a_j = Q_j \Lambda_j$ ($Q_j\sim$ Haar random in $U(m)$, $\Lambda_j$ diagonal with phases $\theta_{jk}\sim\mathrm{Unif}[0,2\pi]$), two independently sampled $H_1, H_2$ satisfy $\mathbb{E}[\delta(H_1,H_2)]=0$ and $\operatorname{Var}[\delta(H_1,H_2)] = O(1/(mD))$. This implies nearly orthogonal codewords for high dimension.

- **Exact Invertibility:** For any $H$, $H \star H^{-1} = H^{-1} \star H = I$.

- **Similarity Preservation under Binding:** For any fixed $H_3$, $\delta(H_3\star H_1, H_3\star H_2) = \delta(H_1, H_2)$, showing that the binding operation respects the similarity structure of superposed codewords.

- **Robustness and Capacity:** The noise amplitude from bundling $n$ quasi-orthogonal hypervectors scales as $O(\sqrt{n})$, while signal strength is $O(n)$. Decoding remains reliable up to $n=O(Dm)$. Empirically, the maximal number of storable bundles obeys $n_\text{max} \approx c\,Dm$ with $c\approx 0.4$–$0.6$, depending on retrieval criteria.

## 4. Kernel and Binding Characteristics

### Kernel Perspective

Given a real vector $x\in\mathbb{R}^n$, an encoding into GHRR form is achieved by
$$
\phi(x)_j = Q_j \operatorname{diag}\left(e^{i w_{j1}^T x}, \ldots, e^{i w_{jm}^T x}\right),
$$
where $w_{jk}$ are sampled from symmetric distributions. The expected similarity between $\phi(x)$ and $\phi(y)$ satisfies
$$
\mathbb{E}_{Q,w}[\delta(\phi(x),\phi(y))] \approx \frac{1}{m}\sum_{k=1}^m \alpha_k K_k(x-y),
$$
where each $K_k$ is a shift-invariant kernel (e.g., RBF), with weights $\alpha_k$ reflecting the distribution of $Q$.

### Binding and Non-Commutativity

GHRR binding corresponds to a block-diagonal projection of an outer product followed by unitary mixing, generalizing the diagonal projection in FHRR. The degree of non-commutativity is measured by
$$
\mathrm{Comm}(H_1, H_2) := \delta(H_1\star H_2, H_2\star H_1).
$$
Lower diagonality in $Q$-matrices leads to reduced $\mathrm{Comm}$, supporting more distinctive role-filler bindings and promoting the representation of hierarchical or nested data.

## 5. Empirical Observations

Empirical experimentation with fixed total effective dimension ($Dm^2 = 600$) demonstrates the following:

- **Non-Commutativity:** Nested dictionary retrieval tasks confirm that FHRR ($m=1$) retrieves ambiguous targets under commutative binding, while GHRR ($m=3$) enables unambiguous recovery at correct indices with similarity $\approx 0.8$ for targets and $\approx 0$ for distractors.
  
- **Commutativity Control:** The commutativity parameter correlates with $Q$-diagonality (Pearson $r\gtrsim 0.95$), providing explicit tuning of algebraic structure from commutative to non-commutative regimes.

- **Decoding Depth:** For binary tree dictionary depths $d$, FHRR ($m=1$) exhibits accuracy $\ll 100\%$ for $d>3$ and collapses by $d\approx10$. GHRR ($m=4$) sustains exact decoding to $d=6$ and degrades gradually to $\sim20\%$ at $d=15$. Permutation operations induce thresholded failure across all representations, but GHRR provides a smooth interpolation depending on $m$ or $Q$ configuration.

- **Capacity:** Unpermuted, bound hypervectors with $n>1$ show FHRR ($m=1$) capacity $\sim0.3\cdot(Dm^2)$; GHRR ($m>1$) achieves $\sim0.5\cdot(Dm^2)$. For base vectors or commutative scenarios, all $m$ perform equivalently, scaling linearly with total dimension.

## 6. Position within Hyperdimensional Computing

GHRR establishes a continuous spectrum of representational expressivity. As $m$ increases from $1$ to $Dm$, the system transitions from "holographic" (diagonal, commutative FHRR) to full tensor-product representations (maximal block size, highly non-commutative), offering practitioners a tunable vehicle for matching representational needs to compositional task requirements. This structure preserves invertibility, robustness, and similarity invariance, with empirical advantages in representational fidelity and memory capacity for hierarchical or deeply compositional structures [2405.09689].

Source: https://www.emergentmind.com/topics/generalized-hrrs-ghrr