Exact Sparse Assignment with Costly Target Embeddings: Fixed-Realization Certificates and an Empirical Audit

Hamidreza Hasani Balyani, Mahtab Movahhedrad, Seyed Pouyan Mousavi DavoudiarXiv 2026

TL;DR

This paper introduces a mathematical "certificate" that allows matching systems to skip computing expensive neural embeddings when they aren't needed to guarantee an optimal result. While the method is mathematically exact and can reduce embedding acquisition by over 90% on certain datasets, the authors find that the computational overhead of the certificate itself can actually make the system slower when using small, fast encoders.

What Problem Does This Paper Address?

In many fields—from computer vision (tracking objects) to data science (linking records across databases)—we need to solve a one-to-one assignment problem. We want to match "Source A" to "Target B" such that the total similarity score is maximized.

Modern pipelines usually calculate these scores using two components:

  1. Cheap scores: Fast, heuristic-based values (like text overlap).
  2. Costly scores: High-dimensional neural embeddings (like those from a Transformer).

Generating these neural embeddings is computationally expensive. The authors ask: Can we compute only a few embeddings and still guarantee we found the same "perfect" assignment we would have found if we computed them all?

Methods

The authors propose a Fixed-Realization Certificate. The core idea is "lazy acquisition":

  • Provisional Assignment: Start by solving the matching problem using only the cheap scores and any already-acquired embeddings.
  • The Certificate: Use a second, specialized sparse assignment to calculate the "robust gain." This asks: "In the absolute best-case scenario for the unknown embeddings, could any other matching beat our current one?"
  • Shared Owner-Centred Bound: They introduce a tighter mathematical bound for these unknown values. Instead of comparing an unknown target to a global average, they compare it specifically to the "owner" (the source it's currently matched to), which provides a much stricter—and thus more efficient—stopping criterion.
  • Numerical Rigor: Uniquely, the authors account for the fact that modern GPUs aren't perfectly deterministic. Re-encoding the same text in a different batch can slightly change the embedding values, potentially flipping a "near-tie" match.

Datasets

The study evaluates the method on four public text Entity-Matching benchmarks:

  • Abt–Buy
  • Amazon–Google
  • Walmart–Amazon
  • DBLP–ACM

They used two popular "frozen" (pre-trained) text encoders: BGE-small-en-v1.5 and all-MiniLM-L6-v2.

Key Insights and Ideas

  • The "Near-Tie" Trap: The paper highlights a subtle but critical issue: batch sensitivity. Because floating-point operations are sensitive to execution order, an embedding's values can change depending on what other items are in the same batch. This means an "optimal" match found in one batch might not be optimal in another.
  • Dataset-Dependent Savings: The effectiveness of lazy acquisition depends entirely on how much the neural embeddings actually "disagree" with the cheap lexical scores.
  • Honest Failure: In a refreshing display of scientific integrity, the authors report that their initial hypothesis—that this would save time—was contradicted. For the specific small encoders they tested, the time spent calculating the certificate and re-solving the assignment was greater than the time saved by skipping embeddings.

Key Results

  • 100% Exactness: The certificate never failed. In every test (96 simulations and 120 online runs), the "lazy" result matched the "full" result perfectly on its own numerical realization.
  • Massive Acquisition Savings: On the Walmart–Amazon dataset, the system only needed to acquire 7% of the target embeddings to prove optimality.
  • Average Acquisition: Across all benchmarks at a group size of 8, the system acquired about 60% of candidate targets.
  • The Runtime Hit: Despite the math working, the selective execution was 0.510 seconds slower per run on average. The overhead of the "lazy loop" outweighed the benefits for these specific, relatively fast encoders.

Limitations and Future Work

  • Encoder Scale: The encoders used (BGE-small, MiniLM) are very fast. The authors suggest that for much larger, "costlier" models (like large LLMs), the trade-off would likely flip in favor of the certificate.
  • Modality: The study focused strictly on text. The authors explicitly state they make no claims about image matching or video tracking, where embedding costs and data structures differ.
  • Batch Invariance: Future work is needed to make matching systems more robust to the tiny numerical drifts caused by batch composition, which currently prevents "porting" an optimal assignment from one environment to another.

Summary updated

Abstract

Embedding-based one-to-one association is common in vision and data integration: detections are associated with tracks and records are linked across databases. Such pipelines often solve a sparse optional assignment whose edge scores add a cheap term to an inner product of neural embeddings. When target embeddings are costly, one can acquire them selectively and stop once a certificate proves that the current assignment is optimal. We give such a certificate for unit-norm embeddings. It bounds the unknown part of every reassignment by a support function and maximizes the resulting robust gains with a second sparse assignment; a shared owner-centred bound dominates any fixed-centre triangle bound. We make precise what is certified when network features are not batch-invariant: the realized values of the acquired rows and every unit-ball completion of the rest, not a second forward pass in a different batch. Auditing against a separately batched cache tests a different property; on our first pilot it produced a spurious $2.49\times10^{-6}$ objective failure. We audit the corrected protocol on four public text entity-matching benchmarks with two frozen encoders; no image data is used. All 96 certificate simulations and 120 online selective timings were exact on their own realization (largest objective gap $6.82\times10^{-13}$). At group size 8 the shared certificate acquires on average 60% of candidate-active targets, against 74% (mean centre), 69% (MEB) and 60% (zero centre): it beats the mean and MEB centres but not the zero centre, and savings concentrate in one benchmark (7% acquired). The prespecified runtime claim is contradicted: selective execution is +0.510 s slower per run (dataset-cluster 95% interval [+0.248, +0.772]). Uniform-microbatch re-encodings preserved the optimum in only 5 of 8 encoder-dataset cells, and 45 of 120 online runs disagreed with an eager cache at near-ties.
BibTeX
@misc{balyani2026exact,
  author = {Hamidreza Hasani Balyani and Mahtab Movahhedrad and Seyed Pouyan Mousavi Davoudi},
  title = {{Exact Sparse Assignment with Costly Target Embeddings: Fixed-Realization Certificates and an Empirical Audit}},
  year = {2026},
  eprint = {2611.19770},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.19770},
}
Figure