Effective In-Context Example Selection through Data Compression
Sun, Zhongxiang, Zhang, Kepu, Wang, Haoyu, Zhang, Xiao, Xu, Jun
–arXiv.org Artificial Intelligence
In-context learning has been extensively validated in large language models. However, the mechanism and selection strategy for in-context example selection, which is a crucial ingredient in this approach, lacks systematic and in-depth research. In this paper, we propose a data compression approach to the selection of in-context examples. We introduce a two-stage method that can effectively choose relevant examples and retain sufficient information about the training dataset within the in-context examples. Our method shows a significant improvement of an average of 5.90% across five different real-world datasets using four language models.
arXiv.org Artificial Intelligence
May-19-2024
- Country:
- North America > United States
- Washington > King County > Seattle (0.04)
- Europe
- Ireland > Leinster
- County Dublin > Dublin (0.04)
- Iceland > Capital Region
- Reykjavik (0.04)
- Ireland > Leinster
- Asia
- China (0.04)
- Middle East > UAE
- Abu Dhabi Emirate > Abu Dhabi (0.04)
- North America > United States
- Genre:
- Research Report (0.64)
- Technology: