mlsanityData to 14 Oct 2026

Reproducing HotFlip for Corpus Poisoning Attacks in Dense Retrieval

arXiv 2501.04802 ↗First posted 8 Jan 2025cs.IR cs.CLcited by 7

Not on the map. Why?

Abstract (arXiv)

HotFlip is a topical gradient-based word substitution method for attacking language models. Recently, this method has been further applied to attack retrieval systems by generating malicious passages that are injected into a corpus, i.e., corpus poisoning. However, HotFlip is known to be computationally inefficient, with the majority of time being spent on gradient accumulation for each query-passage pair during the adversarial token generation phase, making it impossible to generate an adequate number of adversarial passages in a reasonable amount of time. Moreover, the attack method itself assumes access to a set of user queries, a strong assumption that does not correspond to how real-world adversarial attacks are usually performed. In this paper, we first significantly boost the efficiency of HotFlip, reducing the adversarial generation process from 4 hours per document to only 15 minutes, using the same hardware. We further contribute experiments and analysis on two additional tasks: (1) transfer-based black-box attacks, and (2) query-agnostic attacks. Whenever possible, we provide comparisons between the original method and our improved version. Our experiments demonstrate that HotFlip can effectively attack a variety of dense retrievers, with an observed trend that its attack performance diminishes against more advanced and recent methods. Interestingly, we observe that while HotFlip performs poorly in a black-box setting, indicating limited capacity for generalization, in query-agnostic scenarios its performance is correlated to the volume of injected adversarial passages.

Key facts. Cited by 7 papers in the map (data through 14 Oct 2026). Builds on 27 of its 36 references that are in the map. First posted on arXiv 8 Jan 2025.

Builds on

27 of 36 references.

References · 27

  1. 2014Explaining and Harnessing Adversarial Examplescited by 7,364
  2. 2013Intriguing properties of neural networkscited by 5,155
  3. 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,824
  4. 2016MS MARCO: A Human Generated MAchine Reading COmprehension Datasetcited by 1,605
  5. 2021BEIR: A Heterogenous Benchmark for Zero-shot Evaluation of Information Retrieval Modelscited by 1,252
  6. 2021Unsupervised Dense Information Retrieval with Contrastive Learningcited by 1,216
  7. 2020Approximate Nearest Neighbor Negative Contrastive Learning for Dense Text Retrievalcited by 849
  8. 2016Transferability in Machine Learning: from Phenomena to Black-Box Attacks using Adversarial Samplescited by 446
  9. 2021Efficiently Teaching an Effective Dense Retriever with Balanced Topic Aware Samplingcited by 238
  10. 2023Poisoning Retrieval Corpora by Injecting Adversarial Passagescited by 159
  11. 2023How to Train Your DRAGON: Diverse Augmentation Towards Generalizable Dense Retrievalcited by 118
  12. 2019AllenNLP Interpret: A Framework for Explaining Predictions of NLP Modelscited by 74
15 more
  1. 2022PRADA: Practical Black-Box Adversarial Attacks against Neural Ranking Modelscited by 44
  2. 2020Adversarial Semantic Collisionscited by 42
  3. 2020Gradient-based Analysis of NLP Models is Manipulablecited by 41
  4. 2022Order-Disorder: Imitation Adversarial Attacks for Black-box Neural Ranking Modelscited by 37
  5. 2023Black-box Adversarial Attacks against Dense Retrieval Models: A Multi-view Contrastive Learning Methodcited by 29
  6. 2018Adversarial Sampling and Training for Semi-Supervised Information Retrievalcited by 23
  7. 2020One word at a time: adversarial attacks on retrieval modelscited by 23
  8. 2024Corpus Poisoning via Approximate Greedy Gradient Descentcited by 21
  9. 2023Topic-oriented Adversarial Attacks against Black-box Neural Ranking Modelscited by 18
  10. 2023Towards Imperceptible Document Manipulations against Neural Ranking Modelscited by 18
  11. 2021Text Counterfactuals via Latent Optimization and Shapley-Guided Searchcited by 16
  12. 2024Robust Neural Information Retrieval: An Adversarial and Out-of-distribution Perspectivecited by 15
  13. 2024Multi-granular Adversarial Attacks against Black-box Neural Ranking Modelscited by 14
  14. 2020Robustness to Programmable String Transformations via Augmented Abstract Trainingcited by 8
  15. 2024Robust Information Retrievalcited by 5

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 2; 2026: 5.

7 papers.