Home · ASPLOS 2025 · Machine Learning Systems

Early Termination for Hyperdimensional Computing Using Inferential Statistics

Pu (Luke) Yi, Yifan Yang, Chae Young Lee and Sara Achour

Conference
ASPLOS 2025
Published
2025
Pages
342-360
Citations
5

Hyperdimensional computing classifies data by comparing giant ten-thousand-dimensional vectors, and because the winning class usually pulls ahead long before every dimension is tallied, practitioners stop early to save energy — but they stop on hand-tuned hunches that can silently wreck accuracy or quit later than needed; this work from Stanford builds Omen, which reframes the running comparison as a statistical sampling problem and uses a hypothesis test to stop exactly when the answer is confirmed to a chosen confidence, delivering 7 to 12 times faster inference for at most a 0.7 percent accuracy drop.

The argument in one glance

  1. Problem

    Hyperdimensional classifiers can stop early, but when is it safe?

    Hyperdimensional computing is a brain-inspired, lightweight way to classify data by comparing very high-dimensional vectors, well suited to edge devices and emerging hardware. Its similarity score is a running sum over thousands of dimensions, and the correct class usually pulls ahead well before the sum finishes, so inference can be cut short to save computation and energy. The hard question is when to stop without silently changing the answer.

  2. What people did

    Stop when the leading class is far enough ahead

    Practitioners use heuristics: keep a running tally for each class, and once the leading class's margin over the others crosses a hand-picked threshold, declare it the winner and terminate. Tuning that threshold trades accuracy for speed, and it is the standard way to get early termination out of a hyperdimensional classifier.

  3. Why it fell short

    A threshold has no guarantee, and no single value fits

    A fixed margin threshold carries no statistical guarantee. A partial lead can be a fluke that the remaining dimensions overturn, so the classifier stops and returns the wrong class; or the threshold is set conservatively and the classifier keeps computing long after the outcome was already decided. The right threshold depends on the input and the dataset, so any single value is wrong somewhere, and the method offers no principled control over how much accuracy it gives up.

  4. This paper's idea

    Treat the partial score as a sample and run a statistical test

    Omen reframes the running similarity as statistical sampling: the dimensions processed so far are a sample of all of them, and the partial score estimates the full score. It then asks, with a hypothesis test, whether the leading class is confirmed the winner at a chosen confidence, and terminates the instant the test passes. This gives early termination with an accuracy guarantee, delivering large speedups while holding the accuracy loss to a fraction of a percent.

Why this problem is worth solving

To see why stopping early is both tempting and dangerous, it helps to know how these classifiers actually work.

Hyperdimensional computing represents each piece of information as a hypervector: a vector with thousands of dimensions, often just plus-or-minus-one or binary values. Inputs are turned into hypervectors by combining simple element-wise operations, and each class is summarized by a single prototype hypervector formed by bundling together the training examples of that class. To classify a new input, the system encodes it into a hypervector and measures its similarity — essentially a dimension-by-dimension agreement score — against every class prototype, then predicts whichever class is most similar. Two properties make this style of computing distinctive. First, it is remarkably error-resilient: because the meaning of a hypervector is spread holographically across all of its dimensions, corrupting or dropping a fraction of them barely moves the similarity ranking, which is exactly why it appeals for noisy edge sensors and emerging low-power hardware. Second, and crucially here, the similarity score is a sum accumulated across dimensions, so it can be computed incrementally. As you tally more dimensions, one class typically pulls ahead and stays ahead, meaning you could stop after processing only a fraction of the dimensions and still get the same answer, saving most of the computation and energy. This natural opportunity for early termination is what everyone wants to exploit.

The difficulty is that a partial score is not the final score, and treating it as one has no safety net.

The obvious way to terminate early is to watch the gap between the leading class and the runner-up and stop once that gap crosses some threshold. But a partial similarity computed over, say, the first fifth of the dimensions is only an estimate of the full similarity, and estimates fluctuate. A class can look like it is winning after a fraction of the dimensions purely by chance, only to be overtaken once the rest are counted, so a threshold that fires too eagerly returns the wrong class and silently degrades accuracy. Push the threshold the other way to be safe, and the classifier keeps grinding through dimensions long after the outcome was effectively settled, wasting the very computation early termination was meant to save. Worse, there is no single threshold that is right everywhere: how large a lead is convincing depends on how separated the classes are for this particular input and on the statistics of the dataset. So the heuristic gives the practitioner a dial with no markings — turn it one way and lose accuracy, the other way and lose speed, with no way to say in advance how much of either. What is missing is a principled account of how much evidence a partial score actually provides.

What people did before, and where it broke

  • Run the full computation. Tally the similarity across every dimension before deciding, guaranteeing the exact classifier output. Where it broke. It leaves the largest source of savings untouched: the many inputs whose winner is obvious after a small fraction of the dimensions still pay for the whole computation.
  • Fixed-threshold early termination. Stop once the leading class’s margin crosses a hand-tuned threshold. Where it broke. The threshold has no statistical meaning, so it can fire on a partial lead that later reverses, dropping accuracy, and no single value is right across inputs or datasets.
  • Conservative thresholds. Set the margin high to protect accuracy. Where it broke. The classifier then keeps computing well past the point where the outcome was decided, giving back much of the speedup early termination was supposed to provide.
  • The gap. None of these gives what a practitioner really needs: a way to terminate early that says, with a controllable and guaranteed confidence, that the early answer matches the full-computation answer. Turning the partial score into a statistically justified stopping decision is exactly what Omen sets out to provide.

How Omen works

From a hand-tuned threshold to a guaranteed statistical stop

  1. new

  2. new

  3. new

  4. new

  5. new

The idea

Reframe the running comparison as a statistical sampling and testing problem. Instead of treating the partial similarity as a raw number to threshold, Omen treats the processed dimensions as a sample and the partial score as an estimate, which lets it borrow the machinery of inferential statistics — hypothesis tests, confidence levels — to decide when to stop. Recasting a bespoke domain computation as an instance of a classic, well-understood problem so its established tools and guarantees carry over is the same move the concurrency data-structure work covered elsewhere on this site makes, reducing a specialized reachability question to a textbook algorithmic primitive and inheriting its efficiency and correctness rather than reinventing them.

Stop as soon as the evidence is enough, adapting to each input. Rather than spending a fixed amount of computation on every input, Omen keeps testing and terminates the moment the leading class is statistically confirmed, so an easy input that separates cleanly stops almost immediately while a genuinely ambiguous one runs longer — the work is metered by how much evidence each input actually requires. Deferring a decision to runtime and letting measured evidence, not a fixed budget, decide when to act is exactly the discipline the automatic-parallelism-scheduling work covered elsewhere on this site follows, postponing the choice of how much work to spawn until a runtime signal shows it is warranted.

Trade a small, guaranteed sliver of accuracy for a large speedup. Omen does not aim to be exactly the full classifier; it deliberately accepts a bounded probability of a different answer in exchange for stopping early, and the bound is a knob the user sets rather than a surprise discovered afterward. Giving up a precisely controlled amount of exactness to win a large efficiency gain, exploiting a computation’s tolerance for approximation, is the same bargain the low-bit language-model serving work covered elsewhere on this site strikes, spending a fraction of a point of accuracy to unlock a multiplicative speedup on hardware built for the cheaper operation.

Following an inference through Omen

Deciding when a classification is confirmed

Tracing one inference shows evidence, not a fixed budget, deciding when to stop.

Step 1 of 5

Encode the input and start comparing

The input is turned into a high-dimensional hypervector, and Omen begins tallying its similarity to each class prototype dimension by dimension, rather than computing the full similarity all at once.

The similarity is a sum over dimensions, so it can be accumulated incrementally.

Why it works

  • A partial score is a statistical estimate. The similarity tallied so far estimates the full similarity → so the processed dimensions can be treated as a sample rather than a raw number → so the stopping decision can rest on inferential statistics instead of a guess.
  • A hypothesis test weighs the lead against its noise. The test compares the leader’s margin to the variability of the estimates → so it confirms the leader only when the lead is unlikely to be a sampling fluke → so the early answer matches the full answer with a controllable, guaranteed probability.
  • The work adapts to each input’s difficulty. How many dimensions are needed depends on how separated the classes are for this input → so easy inputs are confirmed after very few dimensions while hard ones run longer → so computation is spent in proportion to difficulty instead of a fixed budget.
  • The guarantee is a knob, not a discovery. The user sets the confidence level up front → so the accuracy loss is bounded by design rather than found after the fact → so the same guarantee holds across datasets without hunting for a per-dataset threshold.
  • Statistics beats a bare threshold. A fixed margin has no notion of variance → so a heuristic must either fire on a fluke and lose accuracy or wait too long and lose speed → so the statistical test outperforms it, adding speedup while keeping accuracy higher or comparable.

What it costs (trade-offs and scope)

  • It is an inference optimizer, not a more accurate model. Omen speeds up an existing hyperdimensional classifier and, by construction, can only approach the full-computation accuracy minus a small bounded slack; it does not make the underlying classifier more accurate.
  • A guarantee is only as good as its assumptions. The accuracy bound rests on the statistical model that treats the dimensions as samples; where that model’s assumptions fit poorly, the stated confidence may not hold exactly.
  • The test itself has a cost. Running a hypothesis test after each batch of dimensions adds overhead, so the net saving is real only when enough dimensions are skipped to outweigh the cost of the testing.
  • The benefit depends on separability. Inputs whose classes are genuinely close need most or all of the dimensions, so the hardest inputs see little speedup; the large average gains come from the many easy inputs that resolve quickly.
  • It is specific to hyperdimensional computing. The sampling-and-testing reframing exploits HDC’s distributed, incrementally-summed similarity; it does not directly transfer to models that lack that structure.
  • The reported gains are on classification benchmarks. The speedups and accuracy figures are over a set of classification tasks; behavior on other tasks, encodings, or deployments would need its own validation.

The evaluation

Three ways to decide when a hyperdimensional classification is done

PropertyFull computationFixed-threshold heuristicOmen (statistical test)
When it stopsWhen the margin passes a fixed threshold
Accuracy guaranteeExact reference answer
Tuning requiredNone
Inference speedupBaselineSome, but risky
Three ways to decide when a hyperdimensional classification is finished, from the paper's reported results across 19 instantiations of four classification tasks. Omen's statistical test delivers up to roughly 7.2 to 12.2 times faster inference than the unoptimized full computation while dropping accuracy by at most 0.0 to 0.7 percent, and outperforms fixed-threshold heuristics — adding further speedup over the baseline while keeping accuracy higher or comparable — because it grounds the stopping decision in a controllable statistical guarantee rather than a hand-tuned margin. (This explainer is drawn from the paper's abstract and standard hyperdimensional-computing background; the full text was not available.)Underlined values explain themselves when clicked.

Check yourself

Check your understanding

  1. 1. Why can a hyperdimensional classifier terminate its inference early at all?

  2. 2. What is wrong with stopping once the leading class's margin crosses a fixed threshold?

  3. 3. What is Omen's core idea for deciding when to stop?

  4. 4. Which statement best reflects the reported results and the scope of this work?

Sources

The paper is “Early Termination for Hyperdimensional Computing Using Inferential Statistics” by Pu (Luke) Yi, Yifan Yang, Chae Young Lee, and Sara Achour, published at ASPLOS 2025, DOI 10.1145/3669940.3707254. The authors are at Stanford University. The system is named Omen.

This explainer is marked as a draft because the full text was not accessible: the paper is gold open access on the ACM Digital Library, but that page was protected by an anti-bot challenge that blocked automated retrieval, and no arXiv, author-hosted, or repository copy was found. The account above is therefore written from the paper’s published abstract together with standard, well-established background on hyperdimensional computing (how hypervectors encode data, how class prototypes and similarity-based classification work, the paradigm’s error resilience, and the incremental nature of the similarity computation that makes early termination possible). The specific claims attributed to the paper — that Omen is the first dynamic hyperdimensional-computing optimizer to use inferential statistics for early termination with accuracy guarantees, that it reframes the computation as statistical sampling and testing, that it was evaluated on 19 benchmark instantiations of four classification tasks, and that it delivers up to 7.21 to 12.18 times inference speedup over an unoptimized baseline for a 0.0 to 0.7 percent accuracy drop while outperforming heuristic methods by an additional 0.04 to 5.85 times over the baseline with higher or comparable accuracy — come directly from the abstract. The internal mechanism (the exact statistical test, the precise task set, and per-benchmark numbers) is described only at the level the abstract supports and should be confirmed against the full paper.

Related papers on Machine Learning Systems

See all 212 →