arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2311.01981cs.CL
收藏

ProSG:利用提示合成梯度缓解类RNN语言模型的提示遗忘问题

ProSG: Using Prompt Synthetic Gradients to Alleviate Prompt Forgetting of RNN-like Language Models

Sichuan University(四川大学)

Haotian Luo, Kunming Wu, Cheng Dai, Sixian Ding, Xinhao Chen

AI总结:

针对类RNN语言模型因固定长度状态存储导致的提示生成遗忘问题,提出基于合成梯度的ProSG架构,通过低秩梯度近似将提示临时编码进模型参数,实验验证了其有效性。

摘要:

近年来,类RNN语言模型重新受到自然语言处理(NLP)研究者的关注,多个模型已取得显著进展,展现出与传统Transformer相当的性能。然而,由于RNN的循环特性,这类语言模型只能在一组固定长度的状态向量中存储信息。因此,尽管经过大量改进与优化,在接收到复杂指令或提示时,它们仍存在遗忘问题。由于提示生成是语言模型最主要也最受关注的功能,解决生成过程中的遗忘问题无疑至关重要。本文聚焦于缓解生成过程中的提示遗忘问题,提出了一种架构,通过合成梯度训练模型在生成过程中记住提示。为迫使模型记住提示,我们推导出编码提示的状态,再利用低秩梯度近似将其转化为模型参数修改量,从而将提示临时硬编码到模型参数中。我们构建了一个数据集用于实验,结果证明了我们的方法在解决提示生成过程中遗忘问题上的有效性。我们将在论文被接收后发布全部代码。

英文摘要:

RNN-like language models are getting renewed attention from NLP researchers in recent years and several models have made significant progress, which demonstrates performance comparable to traditional transformers. However, due to the recurrent nature of RNNs, this kind of language model can only store information in a set of fixed-length state vectors. As a consequence, they still suffer from forgetfulness though after a lot of improvements and optimizations, when given complex instructions or prompts. As the prompted generation is the main and most concerned function of LMs, solving the problem of forgetting in the process of generation is no wonder of vital importance. In this paper, focusing on easing the prompt forgetting during generation, we proposed an architecture to teach the model memorizing prompt during generation by synthetic gradient. To force the model to memorize the prompt, we derive the states that encode the prompt, then transform it into model parameter modification using low-rank gradient approximation, which hard-codes the prompt into model parameters temporarily. We construct a dataset for experiments, and the results have demonstrated the effectiveness of our method in solving the problem of forgetfulness in the process of prompted generation. We will release all the code upon acceptance.

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

↑