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

用于上下文强化学习的N-Gram归纳头:提升稳定性并减少数据需求

N-Gram Induction Heads for In-Context RL: Improving Stability and Reducing Data Needs

Innopolis University(因诺波利斯大学);ETH(苏黎世联邦理工学院)

Ilya Zisman, Alexander Nikulin, Viacheslav Sinii, Denis Tarasov, Nikita Lyubaykin, Andrei Polubarov, Igor Kiselev, Vladislav Kurenkov

AI总结:

本文提出将n-gram归纳头集成到Transformer中用于上下文强化学习,通过引入n-gram注意力模式显著减少泛化所需数据量并提升训练稳定性,在网格世界和像素环境中达到或超过算法蒸馏(AD)的性能。

摘要:

上下文学习使Transformer等模型能够在不更新权重的情况下,从少量示例中适应新任务,这对强化学习(RL)而言是一种理想特性。然而,现有的上下文强化学习方法,例如算法蒸馏(AD),需要大规模且精心整理的数据集,并且由于上下文学习能力的短暂性,训练过程可能不稳定且成本高昂。在本工作中,我们将n-gram归纳头集成到用于上下文强化学习的Transformer中。通过引入这些n-gram注意力模式,我们显著减少了泛化所需的数据量,并通过降低模型对超参数的敏感性简化了训练过程。我们的方法在网格世界和基于像素的环境中均能达到AD的性能,在某些情况下甚至超过AD,这表明n-gram归纳头有望提高上下文强化学习的效率。

英文摘要:

In-context learning allows models like transformers to adapt to new tasks from a few examples without updating their weights, a desirable trait for reinforcement learning (RL). However, existing in-context RL methods, such as Algorithm Distillation (AD), demand large, carefully curated datasets and can be unstable and costly to train due to the transient nature of in-context learning abilities. In this work, we integrated the n-gram induction heads into transformers for in-context RL. By incorporating these n-gram attention patterns, we considerably reduced the amount of data required for generalization and eased the training process by making models less sensitive to hyperparameters. Our approach matches, and in some cases surpasses, the performance of AD in both grid-world and pixel-based environments, suggesting that n-gram induction heads could improve the efficiency of in-context RL.

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

↑