HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

DyREx: Dynamic Query Representation for Extractive Question Answering

Urchade Zaratiana Niama El Khbir Dennis Núñez Pierre Holat Nadi Tomeh Thierry Charnois

DyREx: Dynamic Query Representation for Extractive Question Answering

Abstract

Extractive question answering (ExQA) is an essential task for Natural Language Processing. The dominant approach to ExQA is one that represents the input sequence tokens (question and passage) with a pre-trained transformer, then uses two learned query vectors to compute distributions over the start and end answer span positions. These query vectors lack the context of the inputs, which can be a bottleneck for the model performance. To address this problem, we propose \textit{DyREx}, a generalization of the \textit{vanilla} approach where we dynamically compute query vectors given the input, using an attention mechanism through transformer layers. Empirical observations demonstrate that our approach consistently improves the performance over the standard one. The code and accompanying files for running the experiments are available at \url{https://github.com/urchade/DyReX}.

Code Repositories

urchade/dyrex
Official
pytorch

Benchmarks

BenchmarkMethodologyMetrics
question-answering-on-naturalqaDyREX
F1: 78.58
question-answering-on-newsqaDyREX
F1: 68.53
question-answering-on-squad11DyREX
F1: 91.01
question-answering-on-triviaqaDyREX
F1: 77.37

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
DyREx: Dynamic Query Representation for Extractive Question Answering | Papers | HyperAI