TDR: Task-Decoupled Retrieval with Fine-Grained LLM Feedback for In-Context Learning

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Chen, Yifu, Huang, Bingchen, Wang, Zhiling, Du, Yuanchao, Luo, Junfeng, Shen, Lei, chen, Zhineng
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866909703654604800
author Chen, Yifu
Huang, Bingchen
Wang, Zhiling
Du, Yuanchao
Luo, Junfeng
Shen, Lei
chen, Zhineng
author_facet Chen, Yifu
Huang, Bingchen
Wang, Zhiling
Du, Yuanchao
Luo, Junfeng
Shen, Lei
chen, Zhineng
contents In-context learning (ICL) has become a classic approach for enabling LLMs to handle various tasks based on a few input-output examples. The effectiveness of ICL heavily relies on the quality of these examples, and previous works which focused on enhancing example retrieval capabilities have achieved impressive performances. However, two challenges remain in retrieving high-quality examples: (1) Difficulty in distinguishing cross-task data distributions, (2) Difficulty in making the fine-grained connection between retriever output and feedback from LLMs. In this paper, we propose a novel framework called TDR. TDR decouples the ICL examples from different tasks, which enables the retrieval module to retrieve examples specific to the target task within a multi-task dataset. Furthermore, TDR models fine-grained feedback from LLMs to supervise and guide the training of the retrieval module, which helps to retrieve high-quality examples. We conducted extensive experiments on a suite of 30 NLP tasks, the results demonstrate that TDR consistently improved results across all datasets and achieves state-of-the-art performance. Meanwhile, our approach is a plug-and-play method, which can be easily combined with various LLMs to improve example retrieval abilities for ICL. The code is available at https://github.com/Nnn-s/TDR.
format Preprint
id arxiv_https___arxiv_org_abs_2507_18340
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle TDR: Task-Decoupled Retrieval with Fine-Grained LLM Feedback for In-Context Learning
Chen, Yifu
Huang, Bingchen
Wang, Zhiling
Du, Yuanchao
Luo, Junfeng
Shen, Lei
chen, Zhineng
Computation and Language
In-context learning (ICL) has become a classic approach for enabling LLMs to handle various tasks based on a few input-output examples. The effectiveness of ICL heavily relies on the quality of these examples, and previous works which focused on enhancing example retrieval capabilities have achieved impressive performances. However, two challenges remain in retrieving high-quality examples: (1) Difficulty in distinguishing cross-task data distributions, (2) Difficulty in making the fine-grained connection between retriever output and feedback from LLMs. In this paper, we propose a novel framework called TDR. TDR decouples the ICL examples from different tasks, which enables the retrieval module to retrieve examples specific to the target task within a multi-task dataset. Furthermore, TDR models fine-grained feedback from LLMs to supervise and guide the training of the retrieval module, which helps to retrieve high-quality examples. We conducted extensive experiments on a suite of 30 NLP tasks, the results demonstrate that TDR consistently improved results across all datasets and achieves state-of-the-art performance. Meanwhile, our approach is a plug-and-play method, which can be easily combined with various LLMs to improve example retrieval abilities for ICL. The code is available at https://github.com/Nnn-s/TDR.
title TDR: Task-Decoupled Retrieval with Fine-Grained LLM Feedback for In-Context Learning
topic Computation and Language
url https://arxiv.org/abs/2507.18340