Let's Learn Step by Step: Enhancing In-Context Learning Ability with Curriculum Learning

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Liu, Yinpeng, Liu, Jiawei, Shi, Xiang, Cheng, Qikai, Huang, Yong, Lu, Wei
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909224390361088
author Liu, Yinpeng
Liu, Jiawei
Shi, Xiang
Cheng, Qikai
Huang, Yong
Lu, Wei
author_facet Liu, Yinpeng
Liu, Jiawei
Shi, Xiang
Cheng, Qikai
Huang, Yong
Lu, Wei
contents Demonstration ordering, which is an important strategy for in-context learning (ICL), can significantly affects the performance of large language models (LLMs). However, most of the current approaches of ordering require high computational costs to introduce the priori knowledge. In this paper, inspired by the human learning process, we propose a simple but effective demonstration ordering method for ICL, named the few-shot In-Context Curriculum Learning (ICCL). The ICCL implies gradually increasing the complexity of prompt demonstrations during the inference process. The difficulty can be assessed by human experts or LLMs-driven metrics, such as perplexity. Then we design extensive experiments to discuss the effectiveness of the ICCL at both corpus-level and instance-level. Moreover, we also investigate the formation mechanism of LLM's ICCL capability. Experimental results demonstrate that ICCL, developed during the instruction-tuning stage, is effective for representative open-source LLMs. To facilitate further research and applications by other scholars, we make the code publicly available.
format Preprint
id arxiv_https___arxiv_org_abs_2402_10738
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Let's Learn Step by Step: Enhancing In-Context Learning Ability with Curriculum Learning
Liu, Yinpeng
Liu, Jiawei
Shi, Xiang
Cheng, Qikai
Huang, Yong
Lu, Wei
Computation and Language
Demonstration ordering, which is an important strategy for in-context learning (ICL), can significantly affects the performance of large language models (LLMs). However, most of the current approaches of ordering require high computational costs to introduce the priori knowledge. In this paper, inspired by the human learning process, we propose a simple but effective demonstration ordering method for ICL, named the few-shot In-Context Curriculum Learning (ICCL). The ICCL implies gradually increasing the complexity of prompt demonstrations during the inference process. The difficulty can be assessed by human experts or LLMs-driven metrics, such as perplexity. Then we design extensive experiments to discuss the effectiveness of the ICCL at both corpus-level and instance-level. Moreover, we also investigate the formation mechanism of LLM's ICCL capability. Experimental results demonstrate that ICCL, developed during the instruction-tuning stage, is effective for representative open-source LLMs. To facilitate further research and applications by other scholars, we make the code publicly available.
title Let's Learn Step by Step: Enhancing In-Context Learning Ability with Curriculum Learning
topic Computation and Language
url https://arxiv.org/abs/2402.10738