atlas

Research map / Architectures and efficiency / RNNs and normalization

A Gradient Accumulation Method for Dense Retriever under Memory Constraint

NeurIPS 2024 · Architectures and efficiency › RNNs and normalization · approach: Dataset distillation and data-efficient training · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes ContAccum, a gradient-accumulation-based memory reduction method for training BERT dense retrievers with InfoNCE under 11GB memory, using dual (query and passage) memory banks of past representations to enlarge the negative set and stabilize training.

Problem

Training dense retrievers with InfoNCE needs large batches for many in-batch negatives, which requires costly multi-accelerator hardware; existing memory reduction methods (gradient accumulation, GradCache, pre-batch negatives) are either reduce negatives, slow, or unstable.

Approach

Maintain FIFO memory banks for both query and passage representations (stop-gradient, no stored activations) so each local batch's similarity matrix includes many more negatives; gradient analysis shows a passage-only bank causes a gradient norm imbalance between the two encoders, which a dual bank resolves.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use dual query and passage memory banks instead of omitting the query memory bank (ablation)ContAccum · NQTop@20: 70.8 -> 78.8Helped
use dual query and passage memory banks instead of omitting the query memory bank (ablation)ContAccum without hard negatives · NQ without hard negativesTop@20: 72.3 -> 76.3Helped
use past encoder representations (ablation)ContAccum · NQTop@20: 76.5 -> 78.8Helped
use past encoder representations (ablation)ContAccum without hard negatives · NQ without hard negativesTop@20: 73.4 -> 76.3Helped
use both the query memory bank and past encoder representations (ablation)ContAccum · NQTop@20: 67.8 -> 78.8Helped
use both the query memory bank and past encoder representations (ablation)ContAccum without hard negatives · NQ without hard negativesTop@20: 73.9 -> 76.3Helped
use GradAccum (ablation)ContAccum · NQTop@20: 76.7 -> 78.8Helped
use GradAccum (ablation)ContAccum without hard negatives · NQ without hard negativesTop@20: 74.1 -> 76.3Helped
use ContAccum rather than GradCache under 11GBBERT dense retriever · MS MarcoNDCG@20: 34.9 -> 39.1Helped
use ContAccum rather than GradCache under 11GBBERT dense retriever · MS MarcoRecall@100: 22.4 -> 23.8Helped
use ContAccum rather than GradCache under 11GBBERT dense retriever · NQ testTop@20: 79.5 -> 80.1Helped
use ContAccum rather than GradCache under 11GBBERT dense retriever · TriviaQA testTop@20: 79.4 -> 79.8Helped

Surprising findings

Limitations

Experimental setup

Datasets: Natural Questions TriviaQA Curated TREC WebQuestions MS MARCO

Benchmarks: Natural Questions TriviaQA Curated TREC WebQuestions MS MARCO

Metrics: Top@k NDCG@k Recall@k

Baselines: DPR GradAccum GradCache pre-batch negatives

Builds on: DPR GradCache pre-batch negatives gradient accumulation nano-DPR

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy