Small Learned Projections for Semantic-Reversal-Aware Retrieval with Spectral Acceleration: A Four-Domain Empirical Study

Sayed Amir Karim

Pelloran Research

Published November 23, 2026 · on the feed November 25, 2026 · ▲ 1 · arXiv 2611.31442

Retrieval, memory & search Code arXiv ↗Hugging Face ↗

The abstract

Dense-embedding retrievers can fail adversarially: when a query is answered by a document A and reversed by a near-copy B that differs from A by a small meaning-changing edit (a "trap"), raw cosine over E5-Large-v2 places B in the top-10 for 82-100% of queries at a pool of 5,000. We study two things. First, a small learned projection W: R^1024 -> R^d (d in {11, 32}), trained by a deterministic recipe on a declared set of cases, that suppresses the trap: for the declared cases, HN@10 = 0.0000 (no trap in the top-10) in all twelve (domain, pool-size) settings across four independent domains (legal, medical, patent, financial) and pools up to 100,000, while the correct paraphrase is retained for 93-99% of cases, under exact nearest-neighbour search. Second, a boundary-conditioned accelerator that serves the projection at that scale: an acceleration of spectral graph retrieval (SpectRAG) that replaces a dense eigendecomposition with a boundary-value solve, holding HN@10 = 0.0000 at n = 100,000 in every domain and retrieving the ~300-query suite in 0.6-1.1 s (~2-4 ms per query on average). Because the lens's output is the stored representation (a few floats per document), a hardened, specialised index per domain or tenant is ~90x smaller and dimension-proportionally faster than the full embedding, making many small declared indexes a practical alternative to one large vector store. The claim is scoped to the declared cases on the measured pools, with no probabilistic bound; the correct-answer rate drops for a reworded query against an unchanged corpus (about 0.79, trap suppression still holding). A projection transfers only partly to other domains, which we report in full. The recipe, lenses, trap sets and evaluation harness are released under AGPL-3.0; the accelerator's implementation is a reserved commercial component, and every HN number is reproducible under exact search.

The Brief

2:47

A short podcast summary of the paper. Written and voiced by AI.

Transcript

Small Learned Projections for Semantic-Reversal-Aware Retrieval with Spectral Acceleration. A Four-Domain Empirical Study. By Sayed Amir Karim, from Pelloran Research. Published on the twenty-third of November.

Dense-embedding retrievers can fail adversarially, and the failure has a particular shape. Suppose a query is answered by one document, and there is a near-copy of that document that differs from it by a small, meaning-changing edit, enough to reverse what it says. The paper calls that near-copy a trap. With raw cosine similarity over E5-Large-v2 and a pool of five thousand documents, the trap lands in the top ten for somewhere between eighty-two and one hundred percent of queries. The retriever sees two passages that look almost the same, and it has no way to notice that one of them says the opposite.

The study looks at two things. The first is a small learned projection, which the author calls a lens. It maps the one thousand and twenty-four dimensional embedding down to a handful of dimensions: eleven in one setting, thirty-two in another. It is trained by a deterministic recipe on a declared set of cases, and its job is to push the trap out of the results. The second is an accelerator that serves the projection at scale. It speeds up spectral graph retrieval, called SpectRAG, by replacing a dense eigendecomposition with a boundary-value solve, and it is conditioned on that boundary.

A practical consequence follows from where the lens sits. Its output is the stored representation itself, only a few floats per document. A hardened, specialised index for a single domain, or for a single tenant, therefore comes out roughly ninety times smaller than the full embedding, and faster in proportion to its dimension. The argument is that many small declared indexes become a practical alternative to one large vector store.

For the declared cases, the trap measure HN at ten is exactly zero, meaning no trap anywhere in the top ten, in all twelve combinations of domain and pool size. Those span four independent domains: legal, medical, patent and financial, with pools of up to one hundred thousand documents. Meanwhile the correct paraphrase is retained for ninety-three to ninety-nine percent of cases, measured under exact nearest-neighbour search.

The accelerator keeps that result at scale. At one hundred thousand documents, HN at ten stays at zero in every domain, and the suite of roughly three hundred queries is retrieved in between zero point six and one point one seconds. Per query, that is about two to four milliseconds on average.

The paper is careful about how far this reaches. The claim is scoped to the declared cases on the measured pools, and it comes with no probabilistic bound. When a query is reworded against an unchanged corpus, the correct-answer rate drops to about zero point seven nine, though trap suppression still holds. And a projection trained in one domain transfers only partly to the others, which the paper reports in full. What is on offer is a narrow guarantee, stated exactly, and cheap enough to keep one small index per domain.

More with an account

Listen to every day’s papers

Daily playlists, deep dives, quests for the papers, and quizzes on their key terms.

Join free
KipQuest: the day’s AI research, as podcasts and quests. All papers Android app Privacy Contact Episodes are written and voiced by AI from each paper. Summaries can contain mistakes: the paper is the source.