In-context Learning Demonstration Generation with Text Distillation
Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence. Main Track. Pages 6433-6441.
https://doi.org/10.24963/ijcai.2025/716
Keywords
- Natural Language Processing: NLP: Text classification
- Machine Learning: ML: Few-shot learning
Abstract
In-context learning (ICL), a paradigm derived from large language models (LLMs), holds significant promise but is notably sensitive to the choice of input demonstrations. While numerous methodologies have been developed to select the optimal demonstrations from existing datasets, our work alternatively proposes to generate representative demonstrations through a Distillation-based Demonstration Generation (DDG) framework.
Specifically, our approach aims to generate demonstrations that encapsulate the essential attributes of the target dataset. Rather than optimizing these demonstrations directly, we design a generative model and try to refine it by minimizing the discrepancies between the calculative models trained on generated demonstrations and the original datasets respectively. Additionally, we leverage a teacher-student framework to stabilize the training process and improve the quality of the synthesized samples. Extensive experiments conducted across ten prevalent text datasets demonstrate that our DDG method substantially outperforms existing state-of-the-art methodologies. Our code will be available at https://github.com/wwyq1/DDG.
@inproceedings{ijcai2025p716,
title = {In-context Learning Demonstration Generation with Text Distillation},
author = {Wang, Wuyuqing and Yang, Erkun and Zhou, Zilan and Deng, Cheng},
booktitle = {Proceedings of the Thirty-Fourth International Joint Conference on
Artificial Intelligence, {IJCAI-25}},
publisher = {International Joint Conferences on Artificial Intelligence Organization},
editor = {James Kwok},
pages = {6433--6441},
year = {2025},
month = {8},
note = {Main Track},
doi = {10.24963/ijcai.2025/716},
url = {https://doi.org/10.24963/ijcai.2025/716},
}
TY - CPAPER TI - In-context Learning Demonstration Generation with Text Distillation AU - Wang, Wuyuqing AU - Yang, Erkun AU - Zhou, Zilan AU - Deng, Cheng T2 - Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence, IJCAI-25 PB - International Joint Conferences on Artificial Intelligence Organization PY - 2025 SP - 6433 EP - 6441 DO - 10.24963/ijcai.2025/716 UR - https://doi.org/10.24963/ijcai.2025/716 ER -Copied
Machine-readable versions of this paper, for tools and AI agents: