Dependency-based Mixture Language Models

Zhixian Yang, Xiaojun Wan
3/19/2022
cs.CL
transformer-attention

Official code: FadedCosine/Dependency-Guided-Neural-Text-Generation (26 stars, Python, Apache-2.0, last commit 2022-05-27).

Abstract

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 recurrent neural network (RNN), which makes themselves unwieldy in practice to fit into other neural language models, such as Transformer and GPT-2.

Show full abstract

In this paper, we introduce the Dependency-based Mixture Language Models. In detail, we first train neural language models with a novel dependency modeling objective to learn the probability distribution of future dependent tokens given context. We then formulate the next-token probability by mixing the previous dependency modeling probability distributions with self-attention. Extensive experiments and human evaluations show that our method can be easily and effectively applied to different neural language models while improving neural text generation on various tasks.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Code for paper "Dependency-based Mixture Language Models" by Zhixian Yang, and Xiaojun Wan. This paper is accepted by ACL 2022 Main Conference.

262Python, ShellApr 18, 20214 years agoApache-2.0

Similar Papers

Cite this paper

@article{yang2022dependencybased,
  title  = {Dependency-based Mixture Language Models},
  author = {Zhixian Yang and Xiaojun Wan},
  year   = {2022},
  eprint = {2203.10256},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.10256}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2203.10256.svg)](https://codeofpaper.com/paper/2203.10256)

Discussion