HyperAIHyperAI

Command Palette

Search for a command to run...

4 months ago

Compositional Coding Capsule Network with K-Means Routing for Text Classification

Hao Ren; Hong Lu

Compositional Coding Capsule Network with K-Means Routing for Text Classification

Abstract

Text classification is a challenging problem which aims to identify the category of texts. In the process of training, word embeddings occupy a large part of parameters. Under the limitation of limited computing resources, it indirectly limits the ability of subsequent network designs. In order to reduce the number of parameters, the compositional coding mechanism has been proposed recently. Based on this, this paper further explores compositional coding and proposes a compositional weighted coding method. And we apply capsule network to model the relationship between word embeddings, a new routing algorithm, which is based on k-means clustering theory, is proposed to fully mine the relationship between word embeddings. Combined with our compositional weighted coding method and the routing algorithm, we design a neural network for text classification. Experiments conducted on eight challenging text classification datasets show that the proposed method achieves competitive accuracy compared to the state-of-the-art approach with significantly fewer parameters.

Code Repositories

leftthomas/CCCapsNet
Official
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
sentiment-analysis-on-amazon-review-fullCCCapsNet
Accuracy: 60.95
sentiment-analysis-on-amazon-review-polarityCCCapsNet
Accuracy: 94.96
sentiment-analysis-on-yelp-binaryCCCapsNet
Error: 3.52
sentiment-analysis-on-yelp-fine-grainedCCCapsNet
Error: 34.15
text-classification-on-ag-newsCCCapsNet
Error: 7.61
text-classification-on-dbpediaCCCapsNet
Error: 1.28
text-classification-on-sogou-newsCCCapsNet
Accuracy: 97.25
text-classification-on-yahoo-answersCCCapsNet
Accuracy: 73.85

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
Compositional Coding Capsule Network with K-Means Routing for Text Classification | Papers | HyperAI