paper-with-me

홈 › Papers

Tensorized Self-Attention: Efficiently Modeling Pairwise and Global Dependencies Together

2018-05-02 · NAACL 2019 6 · Tao Shen, Tianyi Zhou, Guodong Long, Jing Jiang, Chengqi Zhang

Neural networks equipped with self-attention have parallelizable computation, light-weight structure, and the ability to capture both long-range and local dependencies. Further, their expressive power and performance can be boosted by using a vector to measure pairwise dependency, but this requires to expand the alignment matrix to a tensor, which results in memory and computation bottlenecks. In this paper, we propose a novel attention mechanism called "Multi-mask Tensorized Self-Attention" (MTSA), which is as fast and as memory-efficient as a CNN, but significantly outperforms previous CNN-/RNN-/attention-based models. MTSA 1) captures both pairwise (token2token) and global (source2token) dependencies by a novel compatibility function composed of dot-product and additive attentions, 2) uses a tensor to represent the feature-wise alignment scores for better expressive power but only requires parallelizable matrix multiplications, and 3) combines multi-head with multi-dimensional attentions, and applies a distinct positional mask to each head (subspace), so the memory and computation can be distributed to multiple heads, each with sequential information encoded independently. The experiments show that a CNN/RNN-free model based on MTSA achieves state-of-the-art or competitive performance on nine NLP benchmarks with compelling memory- and time-efficiency.

📄 PDF Abstract BibTeX arXiv:1805.00912

Code (2)

taoshen58/DiSAN 공식 구현 tf
taoshen58/mtsa 공식 구현 tf

Similar Papers 제목 키워드 기반

Tensorized Optical Multimodal Fusion Network

2023-02-17 · Yequan Zhao, Xian Xiao, Geza Kurczveil, Raymond G. Beausoleil 외

We propose the first tensorized optical multimodal fusion network architecture with a self-attention mechanism and low-rank tensor fusion. Simulation results show $51.3 \times$ less hardware requirement and $3.7\times 10…

A Tensorized Transformer for Language Modeling

2019-06-24 · NeurIPS 2019 12 · Xindian Ma, Peng Zhang, Shuai Zhang, Nan Duan 외

Latest development of neural models has connected the encoder and decoder through a self-attention mechanism. In particular, Transformer, which is solely based on self-attention, has led to breakthroughs in Natural Langu…

DecoderLanguage ModelingLanguage ModellingMachine Translation+2

Long Sequence Modeling with Attention Tensorization: From Sequence to Tensor Learning

2024-10-28 · Aosong Feng, Rex Ying, Leandros Tassiulas

As the demand for processing extended textual data grows, the ability to handle long-range dependencies and maintain computational efficiency is more critical than ever. One of the key issues for long-sequence modeling u…

Computational Efficiency

A Scalable and Quantum-Accurate Foundation Model for Biomolecular Force Field via Linearly Tensorized Quadrangle Attention

2025-07-01 · Qun Su, Kai Zhu, Qiaolin Gou, Jintu Zhang 외 arxiv

Accurate atomistic biomolecular simulations are vital for disease mechanism understanding, drug discovery, and biomaterial design, but existing simulation methods exhibit significant limitations. Classical force fields a…

Drug Discovery

TUGS: Physics-based Compact Representation of Underwater Scenes by Tensorized Gaussian

2025-05-12 · Shijie Lian, Ziyi Zhang, Laurence Tianruo Yang and, Mengyu Ren 외

Underwater 3D scene reconstruction is crucial for undewater robotic perception and navigation. However, the task is significantly challenged by the complex interplay between light propagation, water medium, and object su…

3D Scene ReconstructionNeRFUnderwater 3D Scene Reconstruction