arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.07263cs.LGmath.OC
收藏

通过记忆增强Transformer实现所有(线性)一阶方法的可泛化学习

Toward generalizable learning of all (linear) first-order methods via memory augmented Transformers

UC Davis(加州大学戴维斯分校);TU Munich(慕尼黑工业大学)

Sanchayan Dutta, Suvrit Sra

AI总结:

本文证明记忆增强Transformer可实现包括梯度下降、共轭梯度下降和动量方法在内的全部线性一阶方法,并提出专家混合方法用于测试时适应分布外样本,同时表明线性一阶方法本身可作为可学习算法从数据中训练以获得强性能。

摘要:

我们证明,记忆增强的Transformer可以实现整个线性一阶方法(LFOMs)类别,该类方法包含梯度下降(GD)以及更高级的方法,如共轭梯度下降(CGD)、动量方法以及所有其他线性组合过去梯度的变体。基于先前研究Transformer如何模拟GD的工作,我们提供了理论和实证证据,表明记忆增强的Transformer能够学习更高级的算法。随后,我们通过开发一种专家混合(MoE)方法,在测试时适应分布外(OOD)样本,迈出了将所学算法转化为实际可用方法的第一步。最后,我们表明LFOMs本身可以被视为可学习算法,其参数可以从数据中学习以获得强大的性能。

英文摘要:

We show that memory-augmented Transformers can implement the entire class of linear first-order methods (LFOMs), a class that contains gradient descent (GD) and more advanced methods such as conjugate gradient descent (CGD), momentum methods and all other variants that linearly combine past gradients. Building on prior work that studies how Transformers simulate GD, we provide theoretical and empirical evidence that memory-augmented Transformers can learn more advanced algorithms. We then take a first step toward turning the learned algorithms into actually usable methods by developing a mixture-of-experts (MoE) approach for test-time adaptation to out-of-distribution (OOD) samples. Lastly, we show that LFOMs can themselves be treated as learnable algorithms, whose parameters can be learned from data to attain strong performance.

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

↑