Text Editing as Imitation Game

Ning Shi, Bin Tang, Bo Yuan, Longtao Huang, Yewen Pu +2 more
10/21/2022
cs.CL

Official code: ShiningLab/Text-Editing-as-Imitation-Game (4 stars, Python, last commit 2023-07-05).

Abstract

Text editing, such as grammatical error correction, arises naturally from imperfect textual data. Recent works frame text editing as a multi-round sequence tagging task, where operations -- such as insertion and substitution -- are represented as a sequence of tags.

Show full abstract

While achieving good results, this encoding is limited in flexibility as all actions are bound to token-level tags. In this work, we reformulate text editing as an imitation game using behavioral cloning. Specifically, we convert conventional sequence-to-sequence data into state-to-action demonstrations, where the action space can be as flexible as needed. Instead of generating the actions one at a time, we introduce a dual decoders structure to parallel the decoding while retaining the dependencies between action tokens, coupled with trajectory augmentation to alleviate the distribution shift that imitation learning often suffers. In experiments on a suite of Arithmetic Equation benchmarks, our model consistently outperforms the autoregressive baselines in terms of performance, efficiency, and robustness. We hope our findings will shed light on future studies in reinforcement learning applying sequence-level action generation to natural language processing.

View on arXivView PDF

Code Implementations(1)

This repository is for the paper Text Editing as Imitation Game in Findings of the Association for Computational Linguistics: EMNLP 2022, pages 1583–1594, Abu Dhabi, United Arab Emirates. Association for Computational Linguistics.

41PythonAug 26, 20213 years ago
emnlp2022findingsimitation-learningpapertext-editing

Similar Papers

Cite this paper

@article{shi2022text,
  title  = {Text Editing as Imitation Game},
  author = {Ning Shi and Bin Tang and Bo Yuan and Longtao Huang and Yewen Pu and Jie Fu and Zhouhan Lin},
  year   = {2022},
  eprint = {2210.12276},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.12276}
}

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

Discussion