Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

RobustMask: Certified Robustness against Adversarial Neural Ranking Attack via Randomized Masking

About

Neural ranking models have achieved remarkable progress and are now widely deployed in real-world applications such as Retrieval-Augmented Generation (RAG). However, like other neural architectures, they remain vulnerable to adversarial manipulations: subtle character-, word-, or phrase-level perturbations can poison retrieval results and artificially promote targeted candidates, undermining the integrity of search engines and downstream systems. Existing defenses either rely on heuristics with poor generalization or on certified methods that assume overly strong adversarial knowledge, limiting their practical use. To address these challenges, we propose RobustMask, a novel defense that combines the context-prediction capability of pretrained language models with a randomized masking-based smoothing mechanism. Our approach strengthens neural ranking models against adversarial perturbations at the character, word, and phrase levels. Leveraging both the pairwise comparison ability of ranking models and probabilistic statistical analysis, we provide a theoretical proof of RobustMask's certified top-K robustness. Extensive experiments further demonstrate that RobustMask successfully certifies over 20% of candidate documents within the top-10 ranking positions against adversarial perturbations affecting up to 30% of their content. These results highlight the effectiveness of RobustMask in enhancing the adversarial robustness of neural ranking models, marking a significant step toward providing stronger security guarantees for real-world retrieval systems.

Jiawei Liu, Zhuo Chen, Rui Zhu, Miaokun Chen, Yuyang Gong, Wei Lu, Xiaofeng Wang• 2025

Related benchmarks

TaskDatasetResultRank
Passage RankingMS MARCO (dev)
MRR@1034.1
73
RankingTREC Deep Learning 2019
NDCG@1071.7
12
Information Retrieval DefenseTREC DL 2019 (test)
Query+83.3
10
Defense against empirical attacksTREC DL 2019
Query+83.3
10
Showing 4 of 4 rows

Other info

Follow for update