Learning to Retrieve Iteratively for In-Context Learning

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Chen, Yunmo, Chen, Tongfei, Jhamtani, Harsh, Xia, Patrick, Shin, Richard, Eisner, Jason, Van Durme, Benjamin
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866913399642783744
author Chen, Yunmo
Chen, Tongfei
Jhamtani, Harsh
Xia, Patrick
Shin, Richard
Eisner, Jason
Van Durme, Benjamin
author_facet Chen, Yunmo
Chen, Tongfei
Jhamtani, Harsh
Xia, Patrick
Shin, Richard
Eisner, Jason
Van Durme, Benjamin
contents We introduce iterative retrieval, a novel framework that empowers retrievers to make iterative decisions through policy optimization. Finding an optimal portfolio of retrieved items is a combinatorial optimization problem, generally considered NP-hard. This approach provides a learned approximation to such a solution, meeting specific task requirements under a given family of large language models (LLMs). We propose a training procedure based on reinforcement learning, incorporating feedback from LLMs. We instantiate an iterative retriever for composing in-context learning (ICL) exemplars and apply it to various semantic parsing tasks that demand synthesized programs as outputs. By adding only 4M additional parameters for state encoding, we convert an off-the-shelf dense retriever into a stateful iterative retriever, outperforming previous methods in selecting ICL exemplars on semantic parsing datasets such as CalFlow, TreeDST, and MTOP. Additionally, the trained iterative retriever generalizes across different inference LLMs beyond the one used during training.
format Preprint
id arxiv_https___arxiv_org_abs_2406_14739
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Learning to Retrieve Iteratively for In-Context Learning
Chen, Yunmo
Chen, Tongfei
Jhamtani, Harsh
Xia, Patrick
Shin, Richard
Eisner, Jason
Van Durme, Benjamin
Computation and Language
We introduce iterative retrieval, a novel framework that empowers retrievers to make iterative decisions through policy optimization. Finding an optimal portfolio of retrieved items is a combinatorial optimization problem, generally considered NP-hard. This approach provides a learned approximation to such a solution, meeting specific task requirements under a given family of large language models (LLMs). We propose a training procedure based on reinforcement learning, incorporating feedback from LLMs. We instantiate an iterative retriever for composing in-context learning (ICL) exemplars and apply it to various semantic parsing tasks that demand synthesized programs as outputs. By adding only 4M additional parameters for state encoding, we convert an off-the-shelf dense retriever into a stateful iterative retriever, outperforming previous methods in selecting ICL exemplars on semantic parsing datasets such as CalFlow, TreeDST, and MTOP. Additionally, the trained iterative retriever generalizes across different inference LLMs beyond the one used during training.
title Learning to Retrieve Iteratively for In-Context Learning
topic Computation and Language
url https://arxiv.org/abs/2406.14739