基于弹性输入序列的自适应计算
Adaptive Computation with Elastic Input Sequence
AI总结:
本文提出 AdaTape,通过可训练或数据派生的自适应磁带令牌与 ATR 算法构建弹性输入序列,使神经网络能按样本动态调整计算,并在图像识别中以同等计算成本提升性能。
摘要:
人类在解决问题时,能够调整自己使用的信息类型、采用的过程以及花费的时间。然而,无论样本的性质或难度如何,大多数标准神经网络都具有固定的函数类型和计算预算。自适应是一种强大的范式,因为它不仅赋予从业者在这些模型下游使用方面的灵活性,而且还可以作为解决某些具有挑战性的问题类别的强大归纳偏置。在这项工作中,我们引入了一种名为 AdaTape 的新方法,它通过自适应磁带令牌实现神经网络中的动态计算。AdaTape 通过为架构配备动态读写磁带,利用弹性输入序列。具体而言,我们使用从磁带库中获得的磁带令牌自适应地生成输入序列,该磁带库既可以是可训练的,也可以从输入数据中派生。我们研究了获得动态序列内容和长度所面临的挑战与要求,并提出了自适应磁带读取(ATR)算法以同时实现这两个目标。通过在图像识别任务上进行的大量实验,我们表明 AdaTape 可以在保持计算成本的同时取得更好的性能。为了促进进一步研究,我们已在 https://github.com/google-research/scenic 发布代码。
英文摘要:
Humans have the ability to adapt the type of information they use, the procedure they employ, and the amount of time they spend when solving problems. However, most standard neural networks have a fixed function type and computation budget regardless of the sample's nature or difficulty. Adaptivity is a powerful paradigm as it not only imbues practitioners with flexibility pertaining to the downstream usage of these models but can also serve as a powerful inductive bias for solving certain challenging classes of problems. In this work, we introduce a new approach called AdaTape, which allows for dynamic computation in neural networks through adaptive tape tokens. AdaTape utilizes an elastic input sequence by equipping an architecture with a dynamic read-and-write tape. Specifically, we adaptively generate input sequences using tape tokens obtained from a tape bank which can be either trainable or derived from input data. We examine the challenges and requirements to obtain dynamic sequence content and length, and propose the Adaptive Tape Reading (ATR) algorithm to achieve both goals. Through extensive experiments on image recognition tasks, we show that AdaTape can achieve better performance while maintaining the computational cost. To facilitate further research, we have released code at https://github.com/google-research/scenic.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。