arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1510.09202cs.CLcs.LGcs.NE
收藏

基于深度强化学习的文本生成

Generating Text with Deep Reinforcement Learning

National Research Council Canada(加拿大国家研究委员会)

Hongyu Guo

摘要:

我们引入了一种新的模式,用于使用深度Q网络(DQN)进行序列到序列学习,该深度Q网络迭代地解码输出序列。这里的目的是使解码器能够首先处理序列中较容易的部分,然后转向处理困难的部分。具体而言,在每次迭代中,采用编码器-解码器长短期记忆(LSTM)网络来从输入序列自动创建特征以表示DQN的内部状态并制定DQN的潜在动作列表。以改写一个自然句子为例。该列表可以包含排名的潜在单词。接下来,DQN学习做出关于哪个动作的决定(例如,字)将从列表中选择以修改当前解码序列。新修改的输出序列随后被用作DQN的输入,用于下一次解码迭代。在每次迭代中,我们还使强化学习的注意力偏向于探索先前难以解码的序列部分。为了进行评估,我们对所提出的策略进行了训练,以解码一万个自然句子。我们的实验表明,与从左到右的贪婪束搜索LSTM解码器相比,所提出的方法在从训练集中解码句子时表现得很好,但在解码看不见的句子时,在获得的BLEU分数方面,表现明显优于基线。

英文摘要:

We introduce a novel schema for sequence to sequence learning with a Deep Q-Network (DQN), which decodes the output sequence iteratively. The aim here is to enable the decoder to first tackle easier portions of the sequences, and then turn to cope with difficult parts. Specifically, in each iteration, an encoder-decoder Long Short-Term Memory (LSTM) network is employed to, from the input sequence, automatically create features to represent the internal states of and formulate a list of potential actions for the DQN. Take rephrasing a natural sentence as an example. This list can contain ranked potential words. Next, the DQN learns to make decision on which action (e.g., word) will be selected from the list to modify the current decoded sequence. The newly modified output sequence is subsequently used as the input to the DQN for the next decoding iteration. In each iteration, we also bias the reinforcement learning's attention to explore sequence portions which are previously difficult to be decoded. For evaluation, the proposed strategy was trained to decode ten thousands natural sentences. Our experiments indicate that, when compared to a left-to-right greedy beam search LSTM decoder, the proposed method performed competitively well when decoding sentences from the training set, but significantly outperformed the baseline when decoding unseen sentences, in terms of BLEU score obtained.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑