arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.06732cs.CLcs.AIcs.IR
收藏

LLMs的排名可靠性如何?通过两阶段令牌优化实现排名操纵

Are LLMs Reliable Rankers? Rank Manipulation via Two-Stage Token Optimization

National University of Singapore(新加坡国立大学);University of Southern California(南加州大学);Georgetown University(乔治城大学);Arizona State University(亚利桑那州立大学)

Tiancheng Xing, Jerry Li, Yixuan Du, Xiyang Hu

AI总结:

本文提出RAF方法,通过两阶段令牌优化生成自然语言提示,提升目标项在LLM排名中的位置,同时保持语言自然性,实验显示其在提升排名和保持自然性方面比现有方法更鲁棒。

摘要:

大型语言模型(LLMs)在信息检索中被越来越多地用作重排序器,但其排名行为可能通过小而自然的提示进行操控。为揭示这一漏洞,我们提出了Rank Anything First(RAF),一种两阶段令牌优化方法,通过创建简洁的文本扰动,一致地促进目标项在LLM生成的排名中,同时保持难以检测。第一阶段使用贪心坐标梯度结合排名目标的梯度和可读性分数来筛选候选令牌;第二阶段使用基于熵的动态加权方案评估候选令牌在精确排名和可读性损失下的表现,并通过温度控制采样选择令牌。RAF通过双重目标:最大化排名效果和保持语言自然性,逐个生成排名促进的提示。在多个LLM上的实验表明,RAF使用自然语言显著提升目标项的排名,其在促进目标项和保持自然性方面的鲁棒性优于现有方法。这些发现强调了一个关键的安全影响:基于LLM的重排序本质上易受对抗操纵,对现代检索系统的可信度和鲁棒性提出了新挑战。我们的代码可在:https://github.com/glad-lab/RAF 上获得。

英文摘要:

Large language models (LLMs) are increasingly used as rerankers in information retrieval, yet their ranking behavior can be steered by small, natural-sounding prompts. To expose this vulnerability, we present Rank Anything First (RAF), a two-stage token optimization method that crafts concise textual perturbations to consistently promote a target item in LLM-generated rankings while remaining hard to detect. Stage 1 uses Greedy Coordinate Gradient to shortlist candidate tokens at the current position by combining the gradient of the rank-target with a readability score; Stage 2 evaluates those candidates under exact ranking and readability losses using an entropy-based dynamic weighting scheme, and selects a token via temperature-controlled sampling. RAF generates ranking-promoting prompts token-by-token, guided by dual objectives: maximizing ranking effectiveness and preserving linguistic naturalness. Experiments across multiple LLMs show that RAF significantly boosts the rank of target items using naturalistic language, with greater robustness than existing methods in both promoting target items and maintaining naturalness. These findings underscore a critical security implication: LLM-based reranking is inherently susceptible to adversarial manipulation, raising new challenges for the trustworthiness and robustness of modern retrieval systems. Our code is available at: https://github.com/glad-lab/RAF.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑