Modeling Ranking Properties with In-Context Learning

Nilanjan Sinhababu, Andrew Parry, Debasis Ganguly, Pabitra Mitra


Abstract
While standard IR models are primarily designed to optimize relevance, real-world search often needs to balance additional objectives such as diversity and fairness. These objectives depend on inter-document interactions and are commonly addressed using post-hoc heuristics or supervised learning methods, which require task-specific training for each ranking scenario and dataset. In this work, we propose an in-context learning (ICL) approach for listwise LLM rerankers that eliminates the need for such training. Instead, our method relies on a small number of example rankings that demonstrate the desired trade-offs between objectives for past queries similar to the current input. We evaluate our approach on common IR test collections to investigate multiple auxiliary objectives: group fairness (TREC Fairness), polarity diversity (Touché), and topical diversity (TREC Deep Learning 2019/2020). We empirically validate that our method enables control over ranking behavior through demonstration engineering, allowing nuanced behavioral adjustments without explicit optimization. Our experiment demonstrates significant improvements in auxiliary objectives, with up to 23% in topical diversity and 20.6% fairness gains across different tasks, while maintaining relevance across benchmarks.
Anthology ID:
2026.findings-emnlp.2297
Volume:
Findings of the Association for Computational Linguistics: EMNLP 2026
Month:
October
Year:
2026
Address:
Budapest, Hungary
Editors:
Hung-Yi Lee, Sunipa Dev, Jessy Li, Desmond Elliott
Venue:
Findings
SIG:
SIGDAT
Publisher:
Association for Computational Linguistics
Note:
Pages:
49256–49271
Language:
URL:
https://aclanthology.org/2026.findings-emnlp.2297/
DOI:
10.18653/2026.findings-emnlp.2297
Bibkey:
Cite (ACL):
Nilanjan Sinhababu, Andrew Parry, Debasis Ganguly, and Pabitra Mitra. 2026. Modeling Ranking Properties with In-Context Learning. In Findings of the Association for Computational Linguistics: EMNLP 2026, pages 49256–49271, Budapest, Hungary. Association for Computational Linguistics.
Cite (Informal):
Modeling Ranking Properties with In-Context Learning (Sinhababu et al., Findings 2026)
Copy Citation:
PDF:
https://aclanthology.org/2026.findings-emnlp.2297.pdf