Hypencoder Revisited: Reproducibility and Analysis of Non-Linear Scoring for First-Stage Retrieval

Arne Eichholtz, Yongkang Li, Jutte Vijverberg, Tobias Groot, Mohammad Aliannejadi
4/29/2026
cs.IRcs.CL

Official code: arneeichholtz/Hypencoder-reprod (2 stars, Python, MIT, last commit 2026-04-20).

Abstract

The Hypencoder, proposed by Killingback et al., is a retrieval framework that replaces the fixed inner-product scoring function used in standard bi-encoders with a query-specific neural network (the $q$-net), whose weights are generated by a hypernetwork from the contextualized query embeddings. This design enables more expressive relevance estimation while preserving independent query and document encoding.

Show full abstract

In this work, we conduct a reproducibility study of the Hypencoder and extend the original analysis in three directions. Our reproduction confirms that the Hypencoder outperforms a similarly trained bi-encoder baseline on in-domain and out-of-domain benchmarks, and that the proposed efficient search algorithm substantially reduces query latency with minimal performance loss. On hard retrieval tasks, we find partial support: the Hypencoder outperforms the baseline on DL-Hard and FollowIR, but not on TREC TOT, where checkpoint incompatibility and fine-tuning sensitivity complicate full verification. Beyond reproduction, we investigate three extensions: (i)~integrating alternative pre-trained encoders into the Hypencoder framework, where we find that performance gains depend on the encoder and fine-tuning strategy; (ii)~comparing query latency against a Faiss-based bi-encoder pipeline, revealing that standard bi-encoder retrieval remains faster under both exhaustive and efficient search settings; and (iii)~evaluating adversarial robustness, where we find that the $q$-net's non-linear scoring does not provide a consistent robustness disadvantage over inner-product scoring. Our code is publicly available at https://github.com/arneeichholtz/Hypencoder-reprod.

View on arXivView PDF

Code Implementations(1)

MIT

Hypencoder reproducibility study repository

20PythonFeb 11, 20267 months agoMIT

Similar Papers

Cite this paper

@article{eichholtz2026hypencoder,
  title  = {Hypencoder Revisited: Reproducibility and Analysis of Non-Linear Scoring for First-Stage Retrieval},
  author = {Arne Eichholtz and Yongkang Li and Jutte Vijverberg and Tobias Groot and Mohammad Aliannejadi},
  year   = {2026},
  eprint = {2604.27037},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2604.27037v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2604.27037.svg)](https://codeofpaper.com/paper/2604.27037)

Discussion