paper-with-me

Papers

DiSAN: Directional Self-Attention Network for RNN/CNN-Free Language Understanding

2017-09-14 · Tao Shen, Tianyi Zhou, Guodong Long, Jing Jiang, Shirui Pan, Chengqi Zhang

Recurrent neural nets (RNN) and convolutional neural nets (CNN) are widely used on NLP tasks to capture the long-term and local dependencies, respectively. Attention mechanisms have recently attracted enormous interest due to their highly parallelizable computation, significantly less training time, and flexibility in modeling dependencies. We propose a novel attention mechanism in which the attention between elements from input sequence(s) is directional and multi-dimensional (i.e., feature-wise). A light-weight neural net, "Directional Self-Attention Network (DiSAN)", is then proposed to learn sentence embedding, based solely on the proposed attention without any RNN/CNN structure. DiSAN is only composed of a directional self-attention with temporal order encoded, followed by a multi-dimensional attention that compresses the sequence into a vector representation. Despite its simple form, DiSAN outperforms complicated RNN models on both prediction quality and time efficiency. It achieves the best test accuracy among all sentence encoding methods and improves the most recent best result by 1.02% on the Stanford Natural Language Inference (SNLI) dataset, and shows state-of-the-art test accuracy on the Stanford Sentiment Treebank (SST), Multi-Genre natural language inference (MultiNLI), Sentences Involving Compositional Knowledge (SICK), Customer Review, MPQA, TREC question-type classification and Subjectivity (SUBJ) datasets.

📄 PDF Abstract BibTeX arXiv:1709.04696

Code (3)

taoshen58/DiSAN 공식 구현 tf
2023-MindSpore-4/Code8/tree/main/cnn_direction_model mindspore
MindSpore-paper-code-3/code6/tree/main/cnn_direction_model mindspore

Tasks

Natural Language InferenceSentenceSentence EmbeddingSentence-Embedding

Similar Papers 제목 키워드 기반

Audio Mamba: Bidirectional State Space Model for Audio Representation Learning

2024-06-05 · Mehmet Hamza Erol, Arda Senocak, Jiu Feng, Joon Son Chung

Transformers have rapidly become the preferred choice for audio classification, surpassing methods based on CNNs. However, Audio Spectrogram Transformers (ASTs) exhibit quadratic scaling due to self-attention. The remova…

Audio ClassificationClassificationMambaRepresentation Learning+1

Privacy-Preserving Text Sanitization for Distributed Agents Collaboration via Disentangled Representations

2026-06-13 · Xuan Liu, Hefeng Zhou, Sicheng Chen, Chao Yang 외 arxiv

When distributed agents exchange text across organizational boundaries, privacy leakage arises not only from explicit identifiers but also from distributional signatures such as formatting conventions, vocabulary choices…

Dual Triangle Attention: Effective Bidirectional Attention Without Positional Embeddings

2026-04-09 · Logan Hallee, Jason P. Gleghorn arxiv

Bidirectional transformers are the foundation of many sequence modeling tasks across natural, biological, and chemical language domains, but they are permutation-invariant without explicit positional embeddings. In contr…

The underlying structures of self-attention: symmetry, directionality, and emergent dynamics in Transformer training

2025-02-15 · Matteo Saponati, Pascal Sager, Pau Vilimelis Aceituno, Thilo Stadelmann 외

Self-attention is essential to Transformer architectures, yet how information is embedded in the self-attention matrices and how different objective functions impact this process remains unclear. We present a mathematica…

Bidirectional Attention as a Mixture of Continuous Word Experts

2023-07-08 · Kevin Christian Wibisono, Yixin Wang

Bidirectional attention $\unicode{x2013}$ composed of self-attention with positional encodings and the masked language model (MLM) objective $\unicode{x2013}$ has emerged as a key component of modern large language model…

Language ModellingMixture-of-ExpertsSentenceWord Embeddings