Revisiting the Architectures like Pointer Networks to Efficiently Improve the Next Word Distribution, Summarization Factuality, and Beyond

Haw-Shiuan Chang, Zonghai Yao, Alolika Gon, Hong Yu, Andrew McCallum
5/20/2023
cs.CL

No official code found. Best implementation: iesl/Softmax-CPR (9 stars, Apache-2.0, last commit 2023-05-24).

Abstract

Is the output softmax layer, which is adopted by most language models (LMs), always the best way to compute the next word probability? Given so many attention layers in a modern transformer-based LM, are the pointer networks redundant nowadays? In this study, we discover that the answers to both questions are no. This is because the softmax bottleneck sometimes prevents the LMs from predicting the desired distribution and the pointer networks can be used to break the bottleneck efficiently. Based on the finding, we propose several softmax alternatives by simplifying the pointer networks and accelerating the word-by-word rerankers. In GPT-2, our proposals are significantly better and more efficient than mixture of softmax, a state-of-the-art softmax alternative. In summarization experiments, without significantly decreasing its training/testing speed, our best method based on T5-Small improves factCC score by 2 points in CNN/DM and XSUM dataset, and improves MAUVE scores by 30% in BookSum paragraph-level dataset.

View on arXivView PDF

Code Implementations(1)

iesl/Softmax-CPRCommunity100%
Apache-2.0

Better output softmax alternatives for natural language generation

90Shell, PythonMay 20, 20233 years agoApache-2.0

Cite this paper

@article{chang2023revisiting,
  title  = {Revisiting the Architectures like Pointer Networks to Efficiently Improve the Next Word Distribution, Summarization Factuality, and Beyond},
  author = {Haw-Shiuan Chang and Zonghai Yao and Alolika Gon and Hong Yu and Andrew McCallum},
  year   = {2023},
  eprint = {2305.12289},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.12289v1}
}

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/2305.12289.svg)](https://codeofpaper.com/paper/2305.12289)

Discussion