Lune

EMNLP Findings2023

Improving Span Representation by Efficient Span-Level Attention

Pengyu Ji, Songlin Yang, Kewei Tu

Abstract

High-quality span representations are crucial to natural language processing tasks involving span prediction and classification. Most existing methods derive a span representation by aggregation of token representations within the span. In contrast, we aim to improve span representations by considering span-span interactions as well as more comprehensive spantoken interactions. Specifically, we introduce layers of span-level attention on top of a normal token-level transformer encoder. Given that attention between all span pairs results in O(n 4 ) complexity (n being the sentence length) and not all span interactions are intuitively meaningful, we restrict the range of spans that a given span could attend to, thereby reducing overall complexity to O(n 3 ). We conduct experiments on various span-related tasks and show superior performance of our model surpassing baseline models. Our code is publicly available at https://github.com/jipy0222/ Span-Level-Attention.

Ask Lune

Ask anything. The answer quotes the paper.

Lune reads all of it and the papers around it, then shows you the passages behind every answer.

Questions to start from

Lune answers from

the full paper · related work

Get the answer

Free to start. No credit card required.

Builds on3

  1. Fusing Heterogeneous Factors with Triaffine Mechanism for Nested Named Entity RecognitionZheng Yuan, Chuanqi Tan, Songfang Huang, Fei HuangACL Findings 2022 · 68 citations
  2. Deep Span Representations for Named Entity RecognitionEnwei Zhu, Yiyang Liu, Jinpeng LiACL Findings 2023 · 20 citations
  3. Locate and Label: A Two-stage Identifier for Nested Named Entity RecognitionYongliang Shen, Xinyin Ma, Zeqi Tan, Shuai Zhang et al.ACL 2021

Related papers

  1. Span Graph Transformer for Document-Level Named Entity RecognitionHongli Mao, Xian-Ling Mao, Hanlin Tang, Yuming Shang et al.AAAI 2024 · 3 citations
  2. Augmenting Transformers with Recursively Composed Multi-grained RepresentationsXiang Hu, Qingyang Zhu, Kewei Tu, Wei WuICLR 2024 · 6 citations
  3. Bidirectional Masked Self-attention and N-gram Span Attention for Constituency ParsingSoohyeong Kim, Whanhee Cho, Minji Kim, Yong ChoiEMNLP Findings 2023
  4. HiTRANS: A Hierarchical Transformer Network for Nested Named Entity RecognitionZhiwei Yang, Jing Ma, Hechang Chen, Yunke Zhang et al.EMNLP Findings 2021 · 15 citations
  5. Improving Constituency Parsing with Span AttentionYuanhe Tian, Yan Song, Fei Xia, Tong ZhangEMNLP Findings 2020 · 40 citations
Dusk over the sea between two cliffs drawn in fine vertical lines