TasksSotADatasetsPapersMethodsSubmitAbout
Papers With Code 2

A community resource for machine learning research: papers, code, benchmarks, and state-of-the-art results.

Explore

Notable BenchmarksAll SotADatasetsPapersMethods

Community

Submit ResultsAbout

Data sourced from the PWC Archive (CC-BY-SA 4.0). Built by the community, for the community.

Papers/Compositional Coding Capsule Network with K-Means Routing ...

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

Hao Ren, Hong Lu

2018-10-22Text ClassificationSentiment AnalysisClusteringtext-classificationGeneral ClassificationClassification
PaperPDFCode(official)

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.

Results

TaskDatasetMetricValueModel
Sentiment AnalysisAmazon Review PolarityAccuracy94.96CCCapsNet
Sentiment AnalysisYelp Fine-grained classificationError34.15CCCapsNet
Sentiment AnalysisYelp Binary classificationError3.52CCCapsNet
Sentiment AnalysisAmazon Review FullAccuracy60.95CCCapsNet
Text ClassificationSogou NewsAccuracy97.25CCCapsNet
Text ClassificationDBpediaError1.28CCCapsNet
Text ClassificationAG NewsError7.61CCCapsNet
Text ClassificationYahoo! AnswersAccuracy73.85CCCapsNet
ClassificationSogou NewsAccuracy97.25CCCapsNet
ClassificationDBpediaError1.28CCCapsNet
ClassificationAG NewsError7.61CCCapsNet
ClassificationYahoo! AnswersAccuracy73.85CCCapsNet

Related Papers

Tri-Learn Graph Fusion Network for Attributed Graph Clustering2025-07-18Making Language Model a Hierarchical Classifier and Generator2025-07-17AdaptiSent: Context-Aware Adaptive Attention for Multimodal Aspect-Based Sentiment Analysis2025-07-17Adversarial attacks to image classification systems using evolutionary algorithms2025-07-17Ranking Vectors Clustering: Theory and Applications2025-07-16Efficient Calisthenics Skills Classification through Foreground Instance Selection and Depth Estimation2025-07-16Safeguarding Federated Learning-based Road Condition Classification2025-07-16AI Wizards at CheckThat! 2025: Enhancing Transformer-Based Embeddings with Sentiment for Subjectivity Detection in News Articles2025-07-15