用于语言建模的端到端规划器训练
End-to-end Planner Training for Language Modeling
AI总结:
本文提出一种可微的端到端方法,通过使用预测标签概率作为混合权重对标签嵌入加权平均,实现规划器与语言模型的联合微调,从而有效降低困惑度并保留更多标签分布信息。
摘要:
通过预测下一个 token 的端到端训练,LLM 已成为各种任务的有价值工具。增强其在语言建模中的核心训练可以改善众多下游应用。一种成功的增强语言建模的方法是使用一个单独的规划模块来预测未来句子的抽象标签,并使 LM 依赖于这些预测。然而,这种方法是不可微的,阻止了规划器与 LM 的联合端到端调优。我们提出了一种有效方法来改进这一方法,通过实现规划器与 LM 的联合微调。我们展示了通过 straight-through estimator 来近似选择标签梯度的简单方法是无效的。相反,我们提出使用预测的标签概率作为混合权重,以可微的方式使 LM 依赖于标签嵌入的加权平均值。这不仅实现了规划器与 LM 的联合微调,还允许 LM 利用规划器预测的完整标签分布,保留更多信息。我们的实验结果显示在困惑度上有一致的改进。
英文摘要:
Through end-to-end training to predict the next token, LLMs have become valuable tools for various tasks. Enhancing their core training in language modeling can improve numerous downstream applications. A successful approach to enhance language modeling uses a separate planning module to predict abstract labels of future sentences and conditions the LM on these predictions. However, this method is non-differentiable, preventing joint end-to-end tuning of the planner with the LM. We propose an effective method to improve this approach by enabling joint fine-tuning of the planner and the LM. We show that a naive way of approximating the gradient of selecting a label via the straight-through estimator is not effective. Instead, we propose to use the predicted label probabilities as mixing weights to condition the LM on a weighted average of label embeddings in a differentiable manner. This not only enables joint fine-tuning of the planner and the LM, but also allows the LM to draw on the full label distribution predicted by the planner, retaining more information. Our experimental results show consistent improvements in perplexity.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。