HyperAIHyperAI

Command Palette

Search for a command to run...

4 months ago

SG-Net: Syntax-Guided Machine Reading Comprehension

Zhuosheng Zhang; Yuwei Wu; Junru Zhou; Sufeng Duan; Hai Zhao; Rui Wang

SG-Net: Syntax-Guided Machine Reading Comprehension

Abstract

For machine reading comprehension, the capacity of effectively modeling the linguistic knowledge from the detail-riddled and lengthy passages and getting ride of the noises is essential to improve its performance. Traditional attentive models attend to all words without explicit constraint, which results in inaccurate concentration on some dispensable words. In this work, we propose using syntax to guide the text modeling by incorporating explicit syntactic constraints into attention mechanism for better linguistically motivated word representations. In detail, for self-attention network (SAN) sponsored Transformer-based encoder, we introduce syntactic dependency of interest (SDOI) design into the SAN to form an SDOI-SAN with syntax-guided self-attention. Syntax-guided network (SG-Net) is then composed of this extra SDOI-SAN and the SAN from the original Transformer encoder through a dual contextual architecture for better linguistics inspired representation. To verify its effectiveness, the proposed SG-Net is applied to typical pre-trained language model BERT which is right based on a Transformer encoder. Extensive experiments on popular benchmarks including SQuAD 2.0 and RACE show that the proposed SG-Net design helps achieve substantial performance improvement over strong baselines.

Code Repositories

Benchmarks

BenchmarkMethodologyMetrics
question-answering-on-squad20XLNet + SG-Net Verifier (ensemble)
EM: 88.174
F1: 90.702
question-answering-on-squad20XLNet + SG-Net Verifier++ (single model)
EM: 87.238
F1: 90.071
question-answering-on-squad20SG-Net (ensemble)
EM: 86.211
F1: 88.848
question-answering-on-squad20SG-Net (single model)
EM: 85.229
F1: 87.926
question-answering-on-squad20-devSG-Net
EM: 85.1
F1: 87.9

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
SG-Net: Syntax-Guided Machine Reading Comprehension | Papers | HyperAI