HyperAIHyperAI

Command Palette

Search for a command to run...

4 months ago

Towards Scalable and Reliable Capsule Networks for Challenging NLP Applications

Wei Zhao; Haiyun Peng; Steffen Eger; Erik Cambria; Min Yang

Towards Scalable and Reliable Capsule Networks for Challenging NLP Applications

Abstract

Obstacles hindering the development of capsule networks for challenging NLP applications include poor scalability to large output spaces and less reliable routing processes. In this paper, we introduce: 1) an agreement score to evaluate the performance of routing processes at instance level; 2) an adaptive optimizer to enhance the reliability of routing; 3) capsule compression and partial routing to improve the scalability of capsule networks. We validate our approach on two NLP tasks, namely: multi-label text classification and question answering. Experimental results show that our approach considerably improves over strong competitors on both tasks. In addition, we gain the best results in low-resource settings with few training instances.

Code Repositories

AIPHES/acl19-generalization-capsule
pytorch
Mentioned in GitHub
andyweizhao/capsule
tf
Mentioned in GitHub
andyweizhao/NLP-Capsule
pytorch
Mentioned in GitHub
kevindeangeli/capsuleNetwork
tf
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
multi-label-text-classification-on-eur-lexNLP-Cap
P@1: 80.2
P@3: 65.48
P@5: 52.83
nDCG@1: 80.2
nDCG@3: 71.11
nDCG@5: 68.8
question-answering-on-trecqaNLP-Capsule
MAP: 0.7773
MRR: 0.7416
text-classification-on-rcv1NLP-Cap
P@1: 97.05
P@3: 81.27
P@5: 56.33
nDCG@1: 97.05
nDCG@3: 92.47
nDCG@5: 93.11

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