Gated spatial attention for entity linking in visually rich documents

Entity linking in visually rich documents aims to identify semantic relationships between entities (e.g., key–value pairs) by jointly leveraging textual, visual, and spatial information. Despite the success of pre-trained document models such as LayoutLMv3, two challenges remain for relation extraction: (1) spatial position signals injected only at the input embedding layer tend to decay in deeper transformer layers, weakening the model’s ability to capture layout-dependent entity associations; and (2) in long documents, softmax attention distributes weights across many irrelevant tokens, diluting the focus on informative regions. To address these issues, we propose Gated Spatial Attention (GSA) , a lightweight, plug-in framework on top of LayoutLMv3 that comprises two complementary modules: Spatial Position Enhancement (SPE) , which injects ALiBi-style linear biases into every attention layer with head groups specialized for reading-order, horizontal, vertical, and semantic proximity, and Gated Attention (GA) , which applies a per-token scalar gate after the scaled dot-product attention to suppress outputs from irrelevant tokens.Experiments on FUNSD and CORD demonstrate that GSA consistently improves both semantic entity recognition and relation extraction, achieving state-of-the-art results with negligible computational overhead.

Authors

Institutions

Publication Details

Journal
High-Confidence Computing
Published
2026-04-01
DOI
https://doi.org/10.1016/j.hcc.2026.100396
Primary Topic
Data Visualization and Analytics
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Gated spatial attention for entity linking in visually rich documents

Ping Wang, Xiaodong Li, Wei Wang, Xuemin Gao et al.
High-Confidence Computing
Data Visualization and Analytics
article

Gated spatial attention for entity linking in visually rich documents

Ping Wang, Xiaodong Li, Wei Wang, Xuemin Gao, Xu Zhang
article en

Abstract

Entity linking in visually rich documents aims to identify semantic relationships between entities (e.g., key–value pairs) by jointly leveraging textual, visual, and spatial information. Despite the success of pre-trained document models such as LayoutLMv3, two challenges remain for relation extraction: (1) spatial position signals injected only at the input embedding layer tend to decay in deeper transformer layers, weakening the model’s ability to capture layout-dependent entity associations; and (2) in long documents, softmax attention distributes weights across many irrelevant tokens, diluting the focus on informative regions. To address these issues, we propose Gated Spatial Attention (GSA) , a lightweight, plug-in framework on top of LayoutLMv3 that comprises two complementary modules: Spatial Position Enhancement (SPE) , which injects ALiBi-style linear biases into every attention layer with head groups specialized for reading-order, horizontal, vertical, and semantic proximity, and Gated Attention (GA) , which applies a per-token scalar gate after the scaled dot-product attention to suppress outputs from irrelevant tokens.Experiments on FUNSD and CORD demonstrate that GSA consistently improves both semantic entity recognition and relation extraction, achieving state-of-the-art results with negligible computational overhead.

High-Confidence Computing
Shanghai Electric (China) (CN), Intelligent Health (United Kingdom) (GB)
Openalex Percentile: Top 4%
Data Visualization and Analytics
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Gated spatial attention for entity linking in visually rich documents — Ping Wang, Xiaodong Li, et al. · High-Confidence Computing (2026) | TGRS Research Map | TGRS