Reproduce “TriSampler: A Better Negative Sampling Principle for Dense Retrieval” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Zhen Yang, Zhou Shao, Yuxiao Dong, Jie Tang

Tsinghua University researchers developed TriSampler, a negative sampling method for dense retrieval models, grounded in a novel "quasi-triangular principle" to select more informative negative examples. This approach consistently enhanced retrieval performance across standard benchmarks like MS MARCO and NQ, while also achieving faster training convergence.

Key insights

  • Analysis of contrastive loss gradients reveals that effective negatives should have query-negative similarity close to query-positive similarity to generate meaningful learning signals.
  • Beyond being merely 'hard' for the query, truly informative negatives must also be geometrically close to the *positive document* in the embedding space, defining a crucial 'triangular-like region' for selection.
  • Explicitly guiding negative selection by the quasi-triangular principle, which considers the interrelationships between query, positive, and negative documents, provides a more systematic and effective approach than heuristic-based sampling.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.