Take Off the Training Wheels Progressive In-Context Learning for Effective Alignment

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Liu, Zhenyu, Li, Dongfang, Hu, Xinshuo, Zhao, Xinping, Chen, Yibin, Hu, Baotian, Zhang, Min
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866910872743444480
author Liu, Zhenyu
Li, Dongfang
Hu, Xinshuo
Zhao, Xinping
Chen, Yibin
Hu, Baotian
Zhang, Min
author_facet Liu, Zhenyu
Li, Dongfang
Hu, Xinshuo
Zhao, Xinping
Chen, Yibin
Hu, Baotian
Zhang, Min
contents Recent studies have explored the working mechanisms of In-Context Learning (ICL). However, they mainly focus on classification and simple generation tasks, limiting their broader application to more complex generation tasks in practice. To address this gap, we investigate the impact of demonstrations on token representations within the practical alignment tasks. We find that the transformer embeds the task function learned from demonstrations into the separator token representation, which plays an important role in the generation of prior response tokens. Once the prior response tokens are determined, the demonstrations become redundant.Motivated by this finding, we propose an efficient Progressive In-Context Alignment (PICA) method consisting of two stages. In the first few-shot stage, the model generates several prior response tokens via standard ICL while concurrently extracting the ICL vector that stores the task function from the separator token representation. In the following zero-shot stage, this ICL vector guides the model to generate responses without further demonstrations.Extensive experiments demonstrate that our PICA not only surpasses vanilla ICL but also achieves comparable performance to other alignment tuning methods. The proposed training-free method reduces the time cost (e.g., 5.45+) with improved alignment performance (e.g., 6.57+). Consequently, our work highlights the application of ICL for alignment and calls for a deeper understanding of ICL for complex generations. The code will be available at https://github.com/HITsz-TMG/PICA.
format Preprint
id arxiv_https___arxiv_org_abs_2503_09958
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Take Off the Training Wheels Progressive In-Context Learning for Effective Alignment
Liu, Zhenyu
Li, Dongfang
Hu, Xinshuo
Zhao, Xinping
Chen, Yibin
Hu, Baotian
Zhang, Min
Computation and Language
Recent studies have explored the working mechanisms of In-Context Learning (ICL). However, they mainly focus on classification and simple generation tasks, limiting their broader application to more complex generation tasks in practice. To address this gap, we investigate the impact of demonstrations on token representations within the practical alignment tasks. We find that the transformer embeds the task function learned from demonstrations into the separator token representation, which plays an important role in the generation of prior response tokens. Once the prior response tokens are determined, the demonstrations become redundant.Motivated by this finding, we propose an efficient Progressive In-Context Alignment (PICA) method consisting of two stages. In the first few-shot stage, the model generates several prior response tokens via standard ICL while concurrently extracting the ICL vector that stores the task function from the separator token representation. In the following zero-shot stage, this ICL vector guides the model to generate responses without further demonstrations.Extensive experiments demonstrate that our PICA not only surpasses vanilla ICL but also achieves comparable performance to other alignment tuning methods. The proposed training-free method reduces the time cost (e.g., 5.45+) with improved alignment performance (e.g., 6.57+). Consequently, our work highlights the application of ICL for alignment and calls for a deeper understanding of ICL for complex generations. The code will be available at https://github.com/HITsz-TMG/PICA.
title Take Off the Training Wheels Progressive In-Context Learning for Effective Alignment
topic Computation and Language
url https://arxiv.org/abs/2503.09958