Towards Robust Neural Rankers with Large Language Model: A Contrastive Training Approach
Source abstract
Abstract
Pre-trained language model-based neural rankers have been widely applied in information retrieval (IR). However, the robustness issue of current IR models has not received sufficient attention, which could significantly impact the user experience in practical applications. In this study, we focus on the defensive ability of IR models against query attacks while guaranteeing their retrieval performance. We discover that improving the robustness of IR models not only requires a focus on model architecture and training methods but is also closely related to the quality of data. Different from previous research, we use large language models (LLMs) to generate query variations with the same intent, which exhibit richer and more realistic expressions while maintaining consistent query intent. Based on LLM-generated query variations, we propose a novel contrastive training framework that substantially enhances the robustness of IR models to query perturbations. Specifically, we combine the contrastive loss in the representation space of query variations with the ranking loss in the retrieval training stage to improve the model’s ability to understand the underlying semantic information of queries. Experimental results on two public datasets, WikiQA and ANTIQUE, demonstrate that the proposed contrastive training approach effectively improves the robustness of models facing query attack scenarios while outperforming baselines in retrieval performance. Compared with the best baseline approach, the improvements in average robustness performance of Reranker IR models are 24.9%, 26.5%, 27.0%, and 75.0% on WikiQA and 8.7%, 1.9%, 6.3%, and 13.6% on ANTIQUE, in terms of the MAP (Mean Average Precision), MRR (Mean Reciprocal Rank), nDCG@10 (Normalized Discounted Cumulative Gain) and P@10 (Precision), respectively.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Topic Modeling · Domain Adaptation and Few-Shot Learning · Natural Language Processing Techniques
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
School of Information Management, Sun Yat-sen University, Guangzhou 510275, China
Funding
National Natural Science Foundation of China (NSFC)
References (63)
Show source-provided references
1. Language Models are Few-Shot Learners
2. Devlin, J., Chang, M.W., Lee, K., and Toutanova, K. (2019, January 2–7). BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding. Proceedings of the Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Minneapolis, MN, USA.
3. Liu, Y., Ott, M., Goyal, N., Du, J., Joshi, M., Chen, D., Levy, O., Lewis, M., Zettlemoyer, L., and Stoyanov, V. (2019). RoBERTa: A Robustly Optimized BERT Pretraining Approach. arXiv.
4. Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer
5. Training language models to follow instructions with human feedback
6. Pre-training Methods in Information Retrieval10.1561/1500000100 ↗
7. Are Neural Ranking Models Robust?
8. Sidiropoulos, G., and Kanoulas, E. (2022, January 11–15). Analysing the Robustness of Dual Encoders for Dense Retrieval Against Misspellings. Proceedings of the 45th International ACM SIGIR Conference on Research and Development in Information Retrieval, New York, NY, USA.10.1145/3477495.3531818 ↗
9. Madry, A., Makelov, A., Schmidt, L., Tsipras, D., and Vladu, A. (May, January 30). Towards Deep Learning Models Resistant to Adversarial Attacks. Proceedings of the International Conference on Learning Representations, Vancouver, BC, Canada.
10. Zhuang, S., and Zuccon, G. (2021, January 7–11). Dealing with Typos for BERT-based Passage Retrieval and Ranking. Proceedings of the Conference on Empirical Methods in Natural Language Processing, Punta Cana, Dominican Republic.10.18653/v1/2021.emnlp-main.225 ↗
11. Li, Y., Liu, Z., Xiong, C., and Liu, Z. (2021, January 11). More Robust Dense Retrieval with Contrastive Dual Learning. Proceedings of the ICTIR ’21: The 2021 ACM SIGIR International Conference on the Theory of Information Retrieval, Virtual.10.1145/3471158.3472245 ↗
12. Chen, T., Kornblith, S., Norouzi, M., and Hinton, G. (2020, January 12–18). A Simple Framework for Contrastive Learning of Visual Representations. Proceedings of the 37th International Conference on Machine Learning, Vienna, Austria.
13. Adversarial Attacks on Deep-Learning Models in Natural Language Processing: A Survey
14. Morris, J.X., Lifland, E., Yoo, J.Y., Grigsby, J., Jin, D., and Qi, Y. (2020). TextAttack: A Framework for Adversarial Attacks, Data Augmentation, and Adversarial Training in NLP. arXiv.10.18653/v1/2020.emnlp-demos.16 ↗
15. Li, J., Ji, S., Du, T., Li, B., and Wang, T. (2019, January 24–27). TextBugger: Generating Adversarial Text Against Real-world Applications. Proceedings of the Proceedings Network and Distributed System Security Symposium, San Diego, CA, USA.10.14722/ndss.2019.23138 ↗
16. Gao, L., Dai, Z., and Callan, J. (March, January 1). Rethink Training of BERT Rerankers in Multi-Stage Retrieval Pipeline. Proceedings of the Advances in Information Retrieval: 43rd European Conference on IR Research, ECIR 2021, Virtual Event.10.1007/978-3-030-72240-1_26 ↗
17. Hiemstra, D., Moens, M.F., Mothe, J., Perego, R., Potthast, M., and Sebastiani, F. Complement Lexical Retrieval Model with Semantic Residual Embeddings. Proceedings of the Advances in Information Retrieval.
18. Dietterich, T., Becker, S., and Ghahramani, Z. (2001). Proceedings of the Advances in Neural Information Processing Systems, MIT Press.10.7551/mitpress/1120.001.0001 ↗
19. Becker, S., Thrun, S., and Obermayer, K. (2002). Proceedings of the Advances in Neural Information Processing Systems, MIT Press.
20. Burges, C., Shaked, T., Renshaw, E., Lazier, A., Deeds, M., Hamilton, N., and Hullender, G. (2005, January 7–11). Learning to Rank Using Gradient Descent. Proceedings of the 22nd International Conference on Machine Learning, New York, NY, USA.10.1145/1102351.1102363 ↗
21. Schölkopf, B., Platt, J., and Hoffman, T. (2006). Proceedings of the Advances in Neural Information Processing Systems, MIT Press.10.7551/mitpress/7503.001.0001 ↗
22. Joachims, T. (2002, January 23–26). Optimizing Search Engines Using Clickthrough Data. Proceedings of the Eighth ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, New York, NY, USA.10.1145/775047.775067 ↗
23. Cao, Z., Qin, T., Liu, T.Y., Tsai, M.F., and Li, H. (2007, January 20–24). Learning to Rank: From Pairwise Approach to Listwise Approach. Proceedings of the 24th International Conference on Machine Learning, New York, NY, USA.10.1145/1273496.1273513 ↗
24. Xu, J., and Li, H. (2007, January 23–27). AdaRank: A Boosting Algorithm for Information Retrieval. Proceedings of the 30th Annual International ACM SIGIR Conference on Research and Development in Information Retrieval, New York, NY, USA.10.1145/1277741.1277809 ↗
25. Adapting boosting for information retrieval measures10.1007/s10791-009-9112-1 ↗
26. A selective approach to index term weighting for robust information retrieval based on the frequency distributions of query terms10.1007/s10791-018-9347-9 ↗
27. Gangi Reddy, R., Yadav, V., Arafat Sultan, M., Franz, M., Castelli, V., Ji, H., and Sil, A. (2021). Towards Robust Neural Retrieval Models with Synthetic Pre-Training. arXiv.
28. Prakash, P., Killingback, J., and Zamani, H. (2021, January 11–15). Learning Robust Dense Retrieval Models from Incomplete Relevance Labels. Proceedings of the 44th International ACM SIGIR Conference on Research and Development in Information Retrieval, New York, NY, USA.10.1145/3404835.3463106 ↗
29. He, K., Fan, H., Wu, Y., Xie, S., and Girshick, R.B. (2019, January 15–20). Momentum Contrast for Unsupervised Visual Representation Learning. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Long Beach, CA, USA.10.1109/CVPR42600.2020.00975 ↗
30. Zhang, Y., He, R., Liu, Z., Lim, K., and Bing, L. (2015, January 16–20). An Unsupervised Sentence Embedding Method by Mutual Information Maximization. Proceedings of the Conference on Empirical Methods in Natural Language Processing—EMNLP 2020, Online.10.18653/v1/2020.emnlp-main.124 ↗
31. Cheng, P., Hao, W., Yuan, S., Si, S., and Carin, L. (2021, January 3–7). FairFil: Contrastive Neural Debiasing Method for Pretrained Text Encoders. Proceedings of the 9th International Conference on Learning Representations—ICLR 2021, Virtual Event, Austria.
32. Qu, Y., Shen, D., Shen, Y., Sajeev, S., Chen, W., and Han, J. (2021, January 3–7). CoDA: Contrast-enhanced and Diversity-promoting Data Augmentation for Natural Language Understanding. Proceedings of the 9th International Conference on Learning Representations, ICLR 2021, Virtual Event.
33. Inui, K., Jiang, J., Ng, V., and Wan, X. (2019, January 3–7). Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks. Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing, EMNLP-IJCNLP 2019, Hong Kong, China.
34. Izacard, G., Caron, M., Hosseini, L., Riedel, S., Bojanowski, P., Joulin, A., and Grave, E. (2021). Towards Unsupervised Dense Information Retrieval with Contrastive Learning. arXiv.
35. Xu, W., Ritter, A., Baldwin, T., and Rahimi, A. (2021, January 11). Learning to Rank Question Answer Pairs with Bilateral Contrastive Data Augmentation. Proceedings of the Seventh Workshop on Noisy User-Generated Text, W-NUT 2021, Online.
36. Jurafsky, D., Chai, J., Schluter, N., and Tetreault, J.R. (2020, January 5–10). BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehension. Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, ACL 2020, Online.
37. OpenAI (2023, April 16). Introducing ChatGPT. Available online: https://openai.com/blog/chatgpt.
38. Wang, J., Hu, X., Hou, W., Chen, H., Zheng, R., Wang, Y., Yang, L., Huang, H., Ye, W., and Geng, X. (2023). On the Robustness of ChatGPT: An Adversarial and Out-of-distribution Perspective. arXiv.
39. Penha, G., Câmara, A., and Hauff, C. (2022, January 10–14). Evaluating the Robustness of Retrieval Pipelines with Query Variation Generators. Proceedings of the Advances in Information Retrieval: 44th European Conference on IR Research, ECIR 2022, Stavanger, Norway.10.1007/978-3-030-99736-6_27 ↗
40. Beyond English-Centric Multilingual Machine Translation
41. Màrquez, L., Callison-Burch, C., Su, J., Pighin, D., and Marton, Y. (2015, January 17–21). WikiQA: A Challenge Dataset for Open-Domain Question Answering. Proceedings of the Conference on Empirical Methods in Natural Language Processing—EMNLP 2015, Lisbon, Portugal.
42. ANTIQUE: A Non-factoid Question Answering Benchmark
43. Muennighoff, N., Tazi, N., Magne, L., and Reimers, N. (2023, January 2–4). MTEB: Massive Text Embedding Benchmark. Proceedings of the 17th Conference of the European Chapter of the Association for Computational Linguistics, Dubrovnik, Croatia.10.18653/v1/2023.eacl-main.148 ↗
44. BAAI (2023, August 27). Bge-Large-En. Available online: https://huggingface.co/BAAI/bge-large-en.
45. BAAI (2023, August 27). Bge-Base-En. Available online: https://huggingface.co/BAAI/bge-base-en.
46. Su, H., Shi, W., Kasai, J., Wang, Y., Hu, Y., Ostendorf, M., Yih, W.t., Smith, N.A., Zettlemoyer, L., and Yu, T. (2023, January 9–14). One Embedder, Any Task: Instruction-Finetuned Text Embeddings. Proceedings of the Findings of the Association for Computational Linguistics: ACL 2023, Toronto, ON, Canada.10.18653/v1/2023.findings-acl.71 ↗
47. Li, Z., Zhang, X., Zhang, Y., Long, D., Xie, P., and Zhang, M. (2023). Towards General Text Embeddings with Multi-stage Contrastive Learning. arXiv.
48. Karpukhin, V., Oguz, B., Min, S., Lewis, P., Wu, L., Edunov, S., Chen, D., and Yih, W.t. (2020, January 16–20). Dense Passage Retrieval for Open-Domain Question Answering. Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), Online.10.18653/v1/2020.emnlp-main.550 ↗
49. Xiong, W., Li, X., Iyer, S., Du, J., Lewis, P., Wang, W.Y., Mehdad, Y., Yih, S., Riedel, S., and Kiela, D. (2021, January 3–7). Answering Complex Open-Domain Questions with Multi-Hop Dense Retrieval. Proceedings of the International Conference on Learning Representations, Virtual.
50. Rendle, S., Freudenthaler, C., Gantner, Z., and Schmidt-Thieme, L. (2009, January 18–21). BPR: Bayesian Personalized Ranking from Implicit Feedback. Proceedings of the 25th Conference on Uncertainty in Artificial Intelligence, Arlington, VA, USA.
51. Cho, K., van Merriënboer, B., Gulcehre, C., Bahdanau, D., Bougares, F., Schwenk, H., and Bengio, Y. (2014, January 26–28). Learning Phrase Representations using RNN Encoder—Decoder for Statistical Machine Translation. Proceedings of the Conference on Empirical Methods in Natural Language Processing (EMNLP), Doha, Qatar.10.3115/v1/D14-1179 ↗
52. Ji, S., Yun, H., Yanardag, P., Matsushima, S., and Vishwanathan, S.V.N. (2016, January 1–5). WordRank: Learning Word Embeddings via Robust Ranking. Proceedings of the Conference on Empirical Methods in Natural Language Processing, Austin, TX, USA.10.18653/v1/D16-1063 ↗
53. Information retrieval and question answering: A case study on COVID-19 scientific literature10.1016/j.knosys.2021.108072 ↗
54. Private Retrieval, Computing, and Learning: Recent Progress and Future Challenges10.1109/JSAC.2022.3142358 ↗
55. Wang, H., Jia, Y., and Wang, H. (2021, January 11–15). Interactive Information Retrieval with Bandit Feedback. Proceedings of the 44th International ACM SIGIR Conference on Research and Development in Information Retrieval, New York, NY, USA.10.1145/3404835.3462810 ↗
56. He, K., Fan, H., Wu, Y., Xie, S., and Girshick, R. (2020). Momentum Contrast for Unsupervised Visual Representation Learning. arXiv.10.1109/CVPR42600.2020.00975 ↗
57. MacAvaney, S. (2020, January 3–7). OpenNIR: A Complete Neural Ad-Hoc Ranking Pipeline. Proceedings of the 13th International Conference on Web Search and Data Mining, Houston, TX, USA.10.1145/3336191.3371864 ↗
58. Robertson, S.E., and Walker, S. (1994, January 3–6). Some Simple Effective Approximations to the 2-Poisson Model for Probabilistic Weighted Retrieval. Proceedings of the 17th Annual International ACM SIGIR Conference on Research and Development in Information Retrieval, Dublin, Ireland.10.1007/978-1-4471-2099-5_24 ↗
59. Lavrenko, V., and Croft, W.B. (2001, January 9–13). Relevance Based Language Models. Proceedings of the 24th Annual International ACM SIGIR Conference on Research and Development in Information Retrieval, New Orleans, LA, USA.10.1145/383952.383972 ↗
60. Guo, J., Fan, Y., Ai, Q., and Croft, W.B. (2016, January 24–18). A Deep Relevance Matching Model for Ad-Hoc Retrieval. Proceedings of the 25th ACM International on Conference on Information and Knowledge Management, Indianapolis, IN, USA.10.1145/2983323.2983769 ↗
61. Xiong, C., Dai, Z., Callan, J., Liu, Z., and Power, R. (2017, January 7–11). End-to-End Neural Ad-hoc Ranking with Kernel Pooling. Proceedings of the 40th International ACM SIGIR Conference on Research and Development in Information Retrieval, Tokyo, Japan.10.1145/3077136.3080809 ↗
62. Macdonald, C., and Tonellotto, N. (2020, January 14–17). Declarative Experimentation in Information Retrieval Using PyTerrier. Proceedings of the ACM SIGIR on International Conference on Theory of Information Retrieval, Virtual.10.1145/3409256.3409829 ↗
63. Loshchilov, I., and Hutter, F. (2019, January 6–9). Decoupled Weight Decay Regularization. Proceedings of the International Conference on Learning Representations, New Orleans, LA, USA.