作为模仿游戏的文本编辑
Text Editing as Imitation Game
摘要:
文本编辑,如语法错误纠正,自然产生于不完美的文本数据。最近的工作框架文本编辑作为一个多轮序列标记任务,其中的操作-如插入和替换-表示为一个序列的标签。虽然取得了良好的效果,但这种编码在灵活性方面受到限制,因为所有操作都绑定到令牌级标签。在这项工作中,我们重新制定文本编辑作为模仿游戏使用行为克隆。具体来说,我们将传统的序列到序列数据转换为状态到动作的演示,其中动作空间可以根据需要灵活。我们引入了双解码器结构来并行解码,而不是一次生成一个动作,同时保留动作令牌之间的依赖关系,再加上轨迹增强,以减轻模仿学习经常遭受的分布偏移。在一套算术方程基准测试的实验中,我们的模型在性能、效率和鲁棒性方面始终优于自回归基线。我们希望我们的研究结果将有助于未来的强化学习研究,将序列级动作生成应用于自然语言处理。
英文摘要:
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. 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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。