paper-with-me

홈 › Papers

Manifold-Preserving Transformers are Effective for Short-Long Range Encoding

2023-10-22 · Ayan Sengupta, Md Shad Akhtar, Tanmoy Chakraborty

Multi-head self-attention-based Transformers have shown promise in different learning tasks. Albeit these models exhibit significant improvement in understanding short-term and long-term contexts from sequences, encoders of Transformers and their variants fail to preserve layer-wise contextual information. Transformers usually project tokens onto sparse manifolds and fail to preserve mathematical equivalence among the token representations. In this work, we propose TransJect, an encoder model that guarantees a theoretical bound for layer-wise distance preservation between a pair of tokens. We propose a simple alternative to dot-product attention to ensure Lipschitz continuity. This allows TransJect to learn injective mappings to transform token representations to different manifolds with similar topology and preserve Euclidean distance between every pair of tokens in subsequent layers. Evaluations across multiple benchmark short- and long-sequence classification tasks show maximum improvements of 6.8% and 5.9%, respectively, over the variants of Transformers. Additionally, TransJect displays 79% better performance than Transformer on the language modeling task. We further highlight the shortcomings of multi-head self-attention from the statistical physics viewpoint. Although multi-head self-attention was incepted to learn different abstraction levels within the networks, our empirical analyses suggest that different attention heads learn randomly and unorderly. In contrast, TransJect adapts a mixture of experts for regularization; these experts are more orderly and balanced and learn different sparse representations from the input sequences. TransJect exhibits very low entropy and can be efficiently scaled to larger depths.

📄 PDF Abstract BibTeX arXiv:2310.14206

Code (1)

victor7246/transject 공식 구현 pytorch

Tasks

Language ModelingLanguage ModellingMixture-of-Experts

Methods 이 논문이 사용한 방법론

Multi-Head Attention 설명 없음
Attention 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
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$…
Position-Wise Feed-Forward Layer 설명 없음
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…
Adam 설명 없음

Similar Papers 제목 키워드 기반

Manifold Preserving Guided Diffusion

2023-11-28 · Yutong He, Naoki Murata, Chieh-Hsin Lai, Yuhta Takida 외

Despite the recent advancements, conditional image generation still faces challenges of cost, generalizability, and the need for task-specific training. In this paper, we propose Manifold Preserving Guided Diffusion (MPG…

Conditional Image GenerationImage Generation

Transformers for Learning on Noisy and Task-Level Manifolds: Approximation and Generalization Insights

2025-05-06 · Zhaiming Shen, Alex Havrilla, Rongjie Lai, Alexander Cloninger 외

Transformers serve as the foundational architecture for large language and video generation models, such as GPT, BERT, SORA and their successors. Empirical studies have demonstrated that real-world data and learning task…

Video Generation

Supervised Manifold Learning via Random Forest Geometry-Preserving Proximities

2023-07-03 · Jake S. Rhodes

Manifold learning approaches seek the intrinsic, low-dimensional data structure within a high-dimensional space. Mainstream manifold learning algorithms, such as Isomap, UMAP, $t$-SNE, Diffusion Map, and Laplacian Eigenm…

Dimensionality ReductionSupervised dimensionality reduction

Unsupervised Sentence-embeddings by Manifold Approximation and Projection

2021-02-07 · EACL 2021 2 · Subhradeep Kayal

The concept of unsupervised universal sentence encoders has gained traction recently, wherein pre-trained models generate effective task-agnostic fixed-dimensional representations for phrases, sentences and paragraphs. S…

SentenceSentence Embeddingstext-classificationText Classification+1

Size Transferability of Graph Transformers with Convolutional Positional Encodings

2026-02-16 · Javier Porras-Valenzuela, Zhiyang Wang, Xiaotao Shang, Yusu Wang 외 arxiv

Transformers have achieved remarkable success across domains, motivating the rise of Graph Transformers (GTs) as attention-based architectures for graph-structured data. A key design choice in GTs is the use of Graph Neu…

Graph Neural Network