paper-with-me

홈 › Papers

HistAlign: Improving Context Dependency in Language Generation by Aligning with History

2023-05-08 · David Wan, Shiyue Zhang, Mohit Bansal

Language models (LMs) can generate hallucinations and incoherent outputs, which highlights their weak context dependency. Cache-LMs, which augment LMs with a memory of recent history, can increase context dependency and have shown remarkable performance in diverse language generation tasks. However, we find that even with training, the performance gain stemming from the cache component of current cache-LMs is suboptimal due to the misalignment between the current hidden states and those stored in the memory. In this work, we present HistAlign, a new training approach to ensure good cache alignment such that the model receives useful signals from the history. We first prove our concept on a simple and synthetic task where the memory is essential for correct predictions, and we show that the cache component of HistAlign is better aligned and improves overall performance. Next, we evaluate HistAlign on diverse downstream language generation tasks, including prompt continuation, abstractive summarization, and data-to-text. We demonstrate that HistAlign improves text coherence and faithfulness in open-ended and conditional generation settings respectively. HistAlign is also generalizable across different model families, showcasing its strength in improving context dependency of LMs in diverse scenarios. Our code is publicly available at https://github.com/meetdavidwan/histalign

📄 PDF Abstract BibTeX arXiv:2305.04782

Code (1)

meetdavidwan/histalign 공식 구현 pytorch

Tasks

Abstractive Text SummarizationText Generation

Similar Papers 제목 키워드 기반

Data Dependency-Aware Code Generation from Enhanced UML Sequence Diagrams

2025-08-05 · Wenxin Mao, Zhitao Wang, Long Wang, Sirong Chen 외 arxiv

Large language models (LLMs) excel at generating code from natural language (NL) descriptions. However, the plain textual descriptions are inherently ambiguous and often fail to capture complex requirements like intricat…

Mathematical ReasoningCode Generation

Cross-Lingual Alignment of Contextual Word Embeddings, with Applications to Zero-shot Dependency Parsing

2019-02-25 · NAACL 2019 6 · Tal Schuster, Ori Ram, Regina Barzilay, Amir Globerson

We introduce a novel method for multilingual transfer that utilizes deep contextual embeddings, pretrained in an unsupervised fashion. While contextual embeddings have been shown to yield richer representations of meanin…

Cross-lingual zero-shot dependency parsingDependency ParsingFew-Shot LearningWord Embeddings

Aligning Packed Dependency Trees: a theory of composition for distributional semantics

2016-08-25 · CL 2016 12 · David Weir, Julie Weeds, Jeremy Reffin, Thomas Kober

We present a new framework for compositional distributional semantics in which the distributional contexts of lexemes are expressed in terms of anchored packed dependency trees. We show that these structures have the pot…

Zero-Shot Cross-Lingual Dependency Parsing through Contextual Embedding Transformation

2021-03-03 · EACL (AdaptNLP) 2021 4 · Haoran Xu, Philipp Koehn

Linear embedding transformation has been shown to be effective for zero-shot cross-lingual transfer tasks and achieve surprisingly promising results. However, cross-lingual embedding space mapping is usually studied in s…

Cross-Lingual TransferDependency ParsingTranslationZero-Shot Cross-Lingual Transfer

Dependency-based Mixture Language Models

2022-03-19 · ACL 2022 5 · Zhixian Yang, Xiaojun Wan

Various models have been proposed to incorporate knowledge of syntactic structures into neural language models. However, previous works have relied heavily on elaborate components for a specific language model, usually r…

Language ModelingLanguage ModellingText Generation