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

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Xing, Tiancheng, Li, Jerry, Du, Yixuan, Hu, Xiyang
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866912634857586688
author Xing, Tiancheng
Li, Jerry
Du, Yixuan
Hu, Xiyang
author_facet Xing, Tiancheng
Li, Jerry
Du, Yixuan
Hu, Xiyang
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2510_06732
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Are LLMs Reliable Rankers? Rank Manipulation via Two-Stage Token Optimization
Xing, Tiancheng
Li, Jerry
Du, Yixuan
Hu, Xiyang
Computation and Language
Artificial Intelligence
Information Retrieval
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.
title Are LLMs Reliable Rankers? Rank Manipulation via Two-Stage Token Optimization
topic Computation and Language
Artificial Intelligence
Information Retrieval
url https://arxiv.org/abs/2510.06732