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

通过提示全循环模型实现通用上下文近似

Universal In-Context Approximation By Prompting Fully Recurrent Models

Department of Engineering Science(工程科学系);University of Oxford(牛津大学)

Aleksandar Petrov, Tom A. Lamb, Alasdair Paren, Philip H. S. Torr, Adel Bibi

AI总结:

研究证明RNNs、LSTMs、GRUs、Linear RNNs及Mamba等全循环架构可作为通用上下文近似器,引入LSRL语言简化论证,并发现乘法门控能提升操作稳定性。

摘要:

零样本和上下文学习使得无需模型微调即可解决任务,这使其成为开发生成式模型解决方案的关键。因此,理解预训练模型是否可以通过提示来近似任何函数,即它是否是一个通用的上下文近似器,是至关重要的。虽然最近的研究表明transformer模型确实具备这一特性,但这些结果依赖于其注意力机制。因此,这些发现并不适用于像RNNs、LSTMs以及日益流行的SSMs这样的全循环架构。我们证明,RNNs、LSTMs、GRUs、Linear RNNs以及如Mamba和Hawk/Griffin等线性门控架构也可以作为通用的上下文近似器。为了简化我们的论证,我们引入了一种名为LSRL的编程语言,它可以编译为这些全循环架构。LSRL可能对全循环模型的进一步研究具有独立价值,例如构建可解释性基准。我们还研究了乘法门控的作用,并观察到包含此类门控的架构(例如LSTMs、GRUs、Hawk/Griffin)能够更稳定地实现某些操作,使其成为实际上下文通用近似更可行的候选者。

英文摘要:

Zero-shot and in-context learning enable solving tasks without model fine-tuning, making them essential for developing generative model solutions. Therefore, it is crucial to understand whether a pretrained model can be prompted to approximate any function, i.e., whether it is a universal in-context approximator. While it was recently shown that transformer models do possess this property, these results rely on their attention mechanism. Hence, these findings do not apply to fully recurrent architectures like RNNs, LSTMs, and the increasingly popular SSMs. We demonstrate that RNNs, LSTMs, GRUs, Linear RNNs, and linear gated architectures such as Mamba and Hawk/Griffin can also serve as universal in-context approximators. To streamline our argument, we introduce a programming language called LSRL that compiles to these fully recurrent architectures. LSRL may be of independent interest for further studies of fully recurrent models, such as constructing interpretability benchmarks. We also study the role of multiplicative gating and observe that architectures incorporating such gating (e.g., LSTMs, GRUs, Hawk/Griffin) can implement certain operations more stably, making them more viable candidates for practical in-context universal approximation.

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

↑