In-sample Curriculum Learning by Sequence Completion for Natural Language Generation

Qi Jia, Yizhu Liu, Haifeng Tang, Kenny Q. Zhu

Abstract

Curriculum Learning (CL) has shown promise in improving the training of neural models by presenting data in an easy-to-hard progression. However, applying CL to Natural Language Generation (NLG) is challenging due to the difficulty of defining universal difficulty metrics and the high computational cost of sample ranking. We present In-sample Curriculum Learning by Sequence Completion (ICL-SC), a novel strategy that reorders the learning objective within each individual training sample. By starting with sequence completion (predicting the end of a sequence given a long prefix) and gradually transitioning to full generation, ICL-SC provides a task-agnostic and efficient curriculum. Our experiments across five diverse NLG tasks—including summarization, question generation, and style transfer—demonstrate that ICL-SC consistently outperforms standard training and existing CL methods in both performance and convergence speed.

Introduction

The core principle of Curriculum Learning is to mimic the human educational process, starting with foundational concepts before tackling complex problems. In the context of machine learning, this typically involves sorting a training set based on a "difficulty" score. In NLG, however, difficulty is often subjective and task-dependent. For instance, a "simple" summary for one model might be a "complex" one for another depending on vocabulary or syntactic structure. Furthermore, traditional sample-wise CL often requires training an auxiliary "teacher" model to rank the data, which can double the total training time.

Methodology: In-sample Curriculum Learning

To overcome the limitations of sample-wise ranking, we propose shifting the curriculum from the dataset level to the sample level. ICL-SC is based on the information-theoretic insight that predicting the latter part of a sequence is inherently easier when more preceding context is provided.

Comparison of Curriculum Learning strategies: (a) Sample-wise reorders the dataset; (b) Token-wise (previous methods) often focuses on sequence length; (c) In-sample (ICL-SC) uses context as a 'crutch' to simplify the initial learning objective.

The Sequence Completion Curriculum

Instead of generating a full sentence from the start, the model begins its training on a Sequence Completion task.

  1. Initial Phase: The model is provided with a substantial portion of the ground-truth sequence as a prefix (context) and is tasked only with predicting the remaining tokens at the end.
  2. Progression: As training progresses and the model's performance on a validation set improves, the length of the provided prefix is reduced.
  3. Final Phase: The prefix eventually becomes empty, requiring the model to generate the entire sequence from scratch, which is the standard NLG objective.

This approach uses context as a "crutch" that is gradually removed, providing a smoother learning curve without requiring external difficulty metrics or auxiliary models.

Experimental Setup and Datasets

We evaluated ICL-SC across five distinct NLG tasks to test its generalizability:

  • Reading Comprehension: DREAM dataset (BART model).
  • Dialogue Summarization: SAMSum dataset (BART model).
  • Question Generation: SQuAD 1.1 (UniLM model).
  • Style Transfer: Shakespeare dataset (GPT-2/STRAP models).
  • News Summarization: CNNDM (BART model).

Key Results

ICL-SC demonstrated significant improvements over "vanilla" training and state-of-the-art curriculum methods like Token-wise Curriculum Learning (TCL).

Performance and Efficiency

In terms of automated metrics (BLEU, ROUGE, METEOR), ICL-SC achieved superior results across nearly all tested benchmarks. Notably, the method proved highly efficient. In dialogue summarization tasks, ICL-SC reached peak performance in approximately 11.67 epochs, compared to 15.67 epochs for competing CL methods that require a separate estimation phase.

Human Evaluation

Blind human evaluations confirmed the quantitative findings. Evaluators noted that models trained with ICL-SC produced more fluent and contextually accurate text. In complex reasoning tasks like reading comprehension, ICL-SC models were better at integrating multiple keywords into a coherent answer compared to baseline models that often ignored or conflated key information.

Discussion and Limitations

While ICL-SC is highly effective for most NLG tasks, its impact is slightly moderated in long-form generation (e.g., multi-paragraph news summarization). In these scenarios, the primary difficulty often lies in maintaining global coherence and managing cross-sentence dependencies rather than local token prediction. Future research could explore combining ICL-SC with structural curricula that account for document-level organization.

Conclusion

In-sample Curriculum Learning by Sequence Completion offers a robust, task-agnostic framework for training NLG models. By leveraging the natural structure of language and the power of context, it simplifies the learning process, leading to better performance and faster convergence without the overhead of traditional curriculum methods.

Summary updated

BibTeX
@inproceedings{jia2023sample,
  author = {Qi Jia and Yizhu Liu and Haifeng Tang and Kenny Q. Zhu},
  title = {{In-sample Curriculum Learning by Sequence Completion for Natural Language Generation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.acl-long.666},
}
Figure