Adaptive Computation with Elastic Input Sequence
Authors:
- Fuzhao XueFXFuzhao Xue
- Valerii LikhosherstovVLValerii Likhosherstov
- Anurag ArnabAAAnurag Arnab
- Neil HoulsbyNHNeil Houlsby
- Mostafa DehghaniMDMostafa Dehghani
- Yang YouYYYang You
Preprint
Abstract
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.Keywords
All Related Versions
This publication has 10 references indexed in Scilit:
- Scaling Laws vs Model Architectures: How does Inductive Bias Influence Scaling?2023
- Go Wider Instead of DeeperProceedings of the AAAI Conference on Artificial Intelligence, 2022
- Highly accurate protein structure prediction with AlphaFoldNature, 2021
- The Power of Scale for Parameter-Efficient Prompt Tuning2021
- Consistent Accelerated Inference via Confident Adaptive Transformers2021
- Theoretical Limitations of Self-Attention in Neural Sequence ModelsTransactions of the Association for Computational Linguistics, 2020
- Big Transfer (BiT): General Visual Representation Learning2020
- On the Ability and Limitations of Transformers to Recognize Formal Languages2020
- SentencePiece: A simple and language independent subword tokenizer and detokenizer for Neural Text Processing2018
- Hierarchical modularity in human brain functional networksFrontiers in Neuroinformatics, 2009