Porous Lattice-based Transformer Encoder for Chinese NER
XMXue Mengge
Yu BowenLiu Tingwen
Zhang YueMEMeng ErliWang Bin XMXue Mengge

Yu Bowen
Liu Tingwen

Zhang Yue
MEMeng Erli
Wang Bin
+6
Chinese NER gains from word-level lattice information, but prior recurrent and convolutional models handle the lattice's DAG or variable-sized token sets inefficiently, preventing batched computation. This paper proposes a porous lattice-based transformer encoder. It uses lattice-aware self-attention with relative position representations and introduces a porous structure where every two non-neighboring tokens connect through a shared pivot node, strengthening local dependencies. The model enables GPU parallelism and batched computation via the transformer's mask mechanism, achieving up to 9.47 times faster inference than state-of-the-art models with comparable accuracy.

arXiv ·
· November 7, 2019