LambdaNetworks: Modeling Long-Range Interactions Without Attention

By Irwan Bello. 2021

193 citations recorded by the source corpus.

We present lambda layers -- an alternative framework to self-attention -- for capturing long-range interactions between an input and structured contextual information (e.g. a pixel surrounded by other pixels). Lambda layers capture such interactions by transforming available contexts into linear functions, termed lambdas, and applying these linear functions to each input separately. Similar to linear attention, lambda layers bypass expensive attention maps, but in contrast, they model both content and position-based interactions which enables their application to large structured inputs such as images. The resulting neural network architectures, LambdaNetworks, significantly outperform their convolutional and attentional counterparts on ImageNet classification, COCO object detection and COCO instance segmentation, while being more computationally efficient. Additionally, we design LambdaResNets, a family of hybrid architectures across different scales, that considerably improves the speed-accuracy tradeoff of image classification models. LambdaResNets reach excellent accuracies on ImageNet while being 3.2 - 4.4x faster than the popular EfficientNets on modern machine learning accelerators. When training with an additional 130M pseudo-labeled images, LambdaResNets achieve up to a 9.5x speed-up over the corresponding EfficientNet checkpoints.

Subfields: Artificial Intelligence, Computer Vision and Pattern Recognition, Model Architectures

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Quoc V. Le
  2. Jianfeng Gao
  3. Jiashi Feng
  4. Mohit Bansal
  5. Dacheng Tao
  6. Trevor Darrell
  7. Yoshua Bengio
  8. Alan L. Yuille

In Computer Vision and Pattern Recognition

  1. Luc Van Gool
  2. Dacheng Tao
  3. Xiaogang Wang
  4. Ming-Hsuan Yang
  5. Trevor Darrell
  6. Jitendra Malik
  7. Jiashi Feng
  8. Alan L. Yuille

In Model Architectures

  1. Quoc V. Le
  2. Jiashi Feng
  3. Jianfeng Gao
  4. Christoph Feichtenhofer
  5. Shuicheng Yan
  6. Yoshua Bengio
  7. Alan L. Yuille
  8. Chunhua Shen

Citations in the corpus