arXiv · 2409.11143
Semformer: Transformer Language Models with Semantic Planning
Abstract
Next-token prediction serves as the dominant component in current neural language models. During the training phase, the model employs teacher forcing, which predicts tokens based on all preceding ground truth tokens. However, this approach has been found to create shortcuts, utilizing the revealed prefix to spuriously fit future tokens, potentially compromising the accuracy of the next-token predictor. In this paper, we introduce Semformer, a novel method of training a Transformer language model that explicitly models the semantic planning of response. Specifically, we incorporate a sequence of planning tokens into the prefix, guiding the planning token representations to predict the latent semantic representations of the response, which are induced by an autoencoder. In a minimal planning task (i.e., graph path-finding), our model exhibits near-perfect performance and effectively mitigates shortcut learning, a feat that standard training methods and baseline models have been unable to accomplish. Furthermore, we pretrain Semformer from scratch with 125M parameters, demonstrating its efficacy through measures of perplexity, in-context learning, and fine-tuning on summarization tasks.
Explore related subjects
Keep this discovery
Explore connections, maps & timelines
Yongjing Yin, Junran Ding, Kai Song, Yue Zhang. 2024-09-17. Semformer: Transformer Language Models with Semantic Planning. https://arxiv.org/abs/2409.11143
Cite the original work for its findings. Save a collection to share your selection of sources.