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

学习使用Transformer实现随机化算法

Learning Randomized Algorithms with Transformers

Google(谷歌);ETH Zürich(苏黎世联邦理工学院)

Johannes von Oswald, Seijin Kobayashi, Yassir Akram, Angelika Steger

AI总结:

本文首次通过数据驱动方式学习将随机化算法植入Transformer,在对抗性目标下展示其优于确定性算法,并在关联记忆、图着色和网格世界探索任务中验证了增强鲁棒性和性能提升。

摘要:

随机化是一种强大的工具,赋予算法卓越的特性。例如,随机化算法在对抗性环境中表现出色,往往以较大优势超越确定性算法的最坏情况性能。此外,其成功概率可以通过简单策略(如重复和多数投票)进行放大。在本文中,我们为深度神经网络,特别是Transformer模型,引入随机化。我们首次证明,通过纯数据驱动和目标驱动的方式,随机化算法可以通过学习被植入Transformer中。首先,我们分析了已知的对抗性目标,在这些目标下,随机化算法相比确定性算法具有明显优势。然后,我们展示了常见的优化技术,如梯度下降或进化策略,能够有效地学习Transformer参数,使其利用提供给模型的随机性。为了说明随机化在赋能神经网络方面的广泛适用性,我们研究了三个概念性任务:关联记忆、图着色以及探索网格世界的智能体。除了通过学习的随机化展示出对无意识对手的增强鲁棒性外,我们的实验还揭示了由于神经网络计算和预测的固有随机性而带来的显著性能提升。

英文摘要:

Randomization is a powerful tool that endows algorithms with remarkable properties. For instance, randomized algorithms excel in adversarial settings, often surpassing the worst-case performance of deterministic algorithms with large margins. Furthermore, their success probability can be amplified by simple strategies such as repetition and majority voting. In this paper, we enhance deep neural networks, in particular transformer models, with randomization. We demonstrate for the first time that randomized algorithms can be instilled in transformers through learning, in a purely data- and objective-driven manner. First, we analyze known adversarial objectives for which randomized algorithms offer a distinct advantage over deterministic ones. We then show that common optimization techniques, such as gradient descent or evolutionary strategies, can effectively learn transformer parameters that make use of the randomness provided to the model. To illustrate the broad applicability of randomization in empowering neural networks, we study three conceptual tasks: associative recall, graph coloring, and agents that explore grid worlds. In addition to demonstrating increased robustness against oblivious adversaries through learned randomization, our experiments reveal remarkable performance improvements due to the inherently random nature of the neural networks' computation and predictions.

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

↑