paper-with-me

홈 › Papers

Crossformer: Transformer with Alternated Cross-Layer Guidance

2021-09-29 · Shujian Zhang, Zhibin Duan, Huangjie Zheng, Pengcheng He, Bo Chen, Weizhu Chen, Mingyuan Zhou

Transformers with stacked attention layers have achieved state-of-the-art results on a wide range of tasks related to discrete sequences. Significant work has been done to better understand or interpret the capabilities of Transformer, which is often massively over-parameterized and prone to overfitting. There exist intensive interactions between Transformer layers, where the information from higher layers can and do distill the information from lower layers. This motivates us to inject a cross-layer inductive bias that not only uses higher layers, which are closer to the training objective, to guide lower ones, but also provides regularization customized to the stacked structure of Transformer. To this end, we propose Crossformer that either regularizes the differences between specific states of two adjacent layers or directly imposes alternated states sharing between all adjacent layers. Crossformer with states sharing not only provides the desired cross-layer guidance and regularization but also reduces the memory requirement. It is simple to convert a Transformer-based model to a Crossformer-based one. On a variety of neural machine translation tasks, we show that our method outperforms Transformer models while being more memory-efficient. We further demonstrate the general applicability and stability of Crossformer on visual question answering, graph node classification, and significantly deeper models, showing the great potential of incorporating our method into various Transformer-related tasks.

📄 PDF Abstract BibTeX

Code (0)

등록된 구현이 없습니다.

Tasks

Inductive BiasMachine TranslationNode ClassificationQuestion AnsweringVisual Question AnsweringVisual Question Answering (VQA)

Methods 이 논문이 사용한 방법론

Multi-Head Attention 설명 없음
Attention 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Residual Connection 설명 없음
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Dropout Dropout is a regularization technique for neural networks that drops a unit (along with connections) at training time with a specified probability $p$ (a common value is…
Dense Connections Dense Connections, or Fully Connected Connections, are a type of layer in a deep neural network that use a linear operation where every input is connected to every output…
Absolute Position Encodings Absolute Position Encodings are a type of position embeddings for [Transformer-based models] where positional encodings are…

Similar Papers 제목 키워드 기반

CrossFormer++: A Versatile Vision Transformer Hinging on Cross-scale Attention

2023-03-13 · Wenxiao Wang, Wei Chen, Qibo Qiu, Long Chen 외

While features of different scales are perceptually important to visual inputs, existing vision transformers do not yet take advantage of them explicitly. To this end, we first propose a cross-scale vision transformer, C…

image-classificationImage ClassificationInstance Segmentationobject-detection+2

Crossformer: Transformer Utilizing Cross-Dimension Dependency for Multivariate Time Series Forecasting

2023-02-02 · ICLR 2023 2 · Yunhao Zhang, Junchi Yan

Recently many deep models have been proposed for multivariate time series (MTS) forecasting. In particular, Transformer-based models have shown great potential because they can capture long-term dependency. However, exis…

DecoderMultivariate Time Series ForecastingTime SeriesTime Series Forecasting

CrossFormer: A Versatile Vision Transformer Hinging on Cross-scale Attention

2021-07-31 · ICLR 2022 4 · Wenxiao Wang, Lu Yao, Long Chen, Binbin Lin 외

Transformers have made great progress in dealing with computer vision tasks. However, existing vision transformers do not yet possess the ability of building the interactions among features of different scales, which is …

image-classificationImage ClassificationInstance Segmentationobject-detection+3

CrossFormer: Cross-Segment Semantic Fusion for Document Segmentation

2025-03-31 · Tongke Ni, Yang Fan, Junru Zhou, XiangPing Wu 외

Text semantic segmentation involves partitioning a document into multiple paragraphs with continuous semantics based on the subject matter, contextual information, and document structure. Traditional approaches have typi…

RAGRetrieval-augmented GenerationSegmentationSemantic Segmentation

CrossFormer: Cross Spatio-Temporal Transformer for 3D Human Pose Estimation

2022-03-24 · Mohammed Hassanin, Abdelwahed Khamiss, Mohammed Bennamoun, Farid Boussaid 외

3D human pose estimation can be handled by encoding the geometric dependencies between the body parts and enforcing the kinematic constraints. Recently, Transformer has been adopted to encode the long-range dependencies …

3D Human Pose EstimationPose Estimation