HyperAIHyperAI

Command Palette

Search for a command to run...

4 months ago

Attentive Pooling Networks

Cicero dos Santos; Ming Tan; Bing Xiang; Bowen Zhou

Attentive Pooling Networks

Abstract

In this work, we propose Attentive Pooling (AP), a two-way attention mechanism for discriminative model training. In the context of pair-wise ranking or classification with neural networks, AP enables the pooling layer to be aware of the current input pair, in a way that information from the two input items can directly influence the computation of each other's representations. Along with such representations of the paired inputs, AP jointly learns a similarity measure over projected segments (e.g. trigrams) of the pair, and subsequently, derives the corresponding attention vector for each input to guide the pooling. Our two-way attention mechanism is a general framework independent of the underlying representation learning, and it has been applied to both convolutional neural networks (CNNs) and recurrent neural networks (RNNs) in our studies. The empirical results, from three very different benchmark tasks of question answering/answer selection, demonstrate that our proposed models outperform a variety of strong baselines and achieve state-of-the-art performance in all the benchmarks.

Code Repositories

zhaojinglong/Attentive-Pooling-Networks
pytorch
Mentioned in GitHub
winter1997/Attentive-Pooling-Networks
pytorch
Mentioned in GitHub
iamwinter/Attentive-Pooling-Networks
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
question-answering-on-semevalcqaAP-CNN
MAP: 0.771
P@1: 0.755
question-answering-on-wikiqaAP-CNN
MAP: 0.6886
MRR: 0.6957
question-answering-on-yahoocqaAP-BiLSTM
MRR: 0.731
P@1: 0.568
question-answering-on-yahoocqaAP-CNN
MRR: 0.726
P@1: 0.560

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