TL;DR
Hyperdimensional computing (HDC) compresses an entire machine learning classifier into a handful of giant vectors on an edge chip—making them remarkably efficient, yet effortlessly easy to copy and steal. HDMark solves this by hiding an invisible, multi-bit owner signature directly inside the high-dimensional geometry of the trained model, requiring zero retraining and zero extra hardware. Try to scrub this holographic watermark out, and you'll break the model's brain long before the signature fades.
What Problem Does This Paper Address?
Imagine spending months curating proprietary data and designing a lightweight AI model for a smartwatch or sensor, only to have someone read the chip's memory and clone your work verbatim. That is the vulnerability of Hyperdimensional Computing (HDC).
Instead of deep layers of weights, HDC encodes data into "hypervectors"—vectors with ~10,000 dimensions where information is spread holographically across every coordinate. A trained HDC classifier boils down to just an input encoder and one "prototype" hypervector per class. Inference is a simple cosine similarity check.
While encrypting or locking models tries to prevent theft, it doesn't prove ownership after a model leaks. In deep neural networks, owners prove ownership using "trigger sets" (teaching the model secret labels for weird inputs). However, forcing an HDC model to learn out-of-distribution triggers during single-pass training dilutes its prototypes, degrades accuracy, and only yields a yes/no signal rather than a rich owner ID. HDMark asks: can we watermark an HDC model natively using its own high-dimensional algebra?
Methods
HDMark relies on a delightful mathematical quirk of high-dimensional space: two randomly generated 10,000-dimensional vectors are almost guaranteed to be quasi-orthogonal (their cosine similarity hovers right around zero).
HDMark operates in three post-training phases without needing training data or retraining:
- Key Generation: An owner's identity string is hashed into an $L$-bit payload (e.g., 64 bits). A secret key seeds a random generator to create $L$ quasi-orthogonal bipolar "carrier" hypervectors, plus a set of balanced $+1/-1$ signs across the classes (committed to a public timestamped ledger to prevent spoofed claims).
- Embedding: Each payload bit flips the sign of its corresponding carrier, and all $L$ carriers are summed ("bundled") into one watermark hypervector. Because the carriers are quasi-orthogonal to the model, superimposing a tiny, norm-scaled fraction of this watermark onto every class prototype barely nudges cosine similarities during normal inference.
- Verification: Given a suspect model's prototypes, the owner normalizes and averages them using the secret balanced class signs, projects the result onto each secret carrier to read out the bits, and runs a binomial test to statistically confirm ownership.
To counter an HDC-specific dimension-permutation attack—where a thief shuffles vector coordinates and flips signs on both the encoder and prototypes to preserve predictions while scrambling the watermark—the authors introduce encoder realignment, passing probe inputs through both encoders to correlate and un-shuffle the coordinates before verifying.
Datasets
No new benchmarks were introduced. The authors evaluated HDMark across four standard benchmarks spanning vision, speech, and wearable sensors: MNIST, FashionMNIST, ISOLET (spoken letters), and UCI-HAR (human activity recognition), tested across three standard HDC learning rules (Vanilla HDC, AdaptHD, and OnlineHD).
Key Insights and Ideas
- Canceling the "background hum" with balanced signs: Class prototypes in HDC share a massive common component (over 90% of vector energy in Vanilla HDC). Adding a watermark with the same sign to every class would drown the signal in host interference. Alternating $+1$ and $-1$ signs across classes makes the shared background cancel out completely during verification, while the watermark adds up coherently.
- Geometry predicts everything: Because hyperdimensional math is so clean, the authors derived a closed-form equation predicting bit recovery rates from vector dimension and payload length—matching 14,400 empirical trials within 0.4 percentage points (pp). Owners can calculate exact watermark strength mathematically rather than guessing via grid search.
- Free hardware verification: On an FPGA, checking the watermark requires zero extra circuitry. Projecting prototypes onto secret carriers is mathematically identical to scoring an encoded input, meaning verification simply reuses the chip's existing inference datapath.
Key Results
- High Fidelity & Reliability: Embedding a 64-bit ID changes task accuracy by at most 0.05 pp, keeps $\ge$99.6% of test predictions identical to the clean model, and verifies ownership in 99.8% of trials ($p < 10^{-3}$). By contrast, black-box trigger sets cost up to 8.3 pp accuracy and drop to 20–60% verification on Vanilla HDC.
- Attack Resilience: Fine-tuning, noise, pruning, overwriting, and quantization cannot erase the watermark without destroying over 8 pp of model accuracy (with 2-bit Vanilla HDC easily fixed by slightly nudging the embedding strength). Encoder realignment restores verification from 0% back to 100% for OnlineHD (and 79–95% for record-based encoders).
- FPGA Efficiency & Fault Tolerance: Implemented on an AMD ZCU104 FPGA, HDMark adds 0% hardware overhead and <0.4% energy difference. Under aggressive undervolting down to 0.652 V, energy drops by 45–46% while every prediction and watermark bit stays bit-exact. Under overclocking timing faults, zero false ownership claims occur.
Limitations and Future Work
- White-box access required: Unlike query-only trigger sets, HDMark requires reading out the suspect model's prototypes (and accessing its encoder if realignment is needed) during a dispute.
- Unalignable constant dimensions: Under record-based encoding, roughly half the hypervector dimensions stay constant across inputs. Under a permutation attack, these indistinguishable columns cannot be realigned—slightly lowering verification recovery to 79% (AdaptHD) and 95% (Vanilla HDC) compared to 100% on nonlinear encoders.
- Narrow-margin sensitivity: Vanilla HDC uses a very small default watermark amplitude, causing dips under extreme 2-bit quantization or severe on-chip FPGA timing errors (though reading prototypes off-chip immediately restores 100% verification). Future directions are not explicitly discussed in the paper.
Summary updated