Papers › Compositional Coding Capsule Network with K-Means Routing for Text Classification
Compositional Coding Capsule Network with K-Means Routing for Text Classification
Hao Ren, Hong Lu
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
Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.
Code Syntology ran Syntology
Not run by Syntology. Nothing on this page verifies that the listed code works.
Tasks
Results from the paper archive 2025-07-28
| Task | Dataset | Model | Metric | Value | Rank at snapshot | Leaderboard | Report |
|---|---|---|---|---|---|---|---|
| Sentiment Analysis | Amazon Review Full | CCCapsNet | Accuracy | 60.95 | #7 of 9 | Archive leaderboard | report |
| Sentiment Analysis | Amazon Review Polarity | CCCapsNet | Accuracy | 94.96 | #7 of 9 | Archive leaderboard | report |
| Sentiment Analysis | Yelp Binary classification | CCCapsNet | Error | 3.52 | #12 of 20 | Archive leaderboard | report |
| Sentiment Analysis | Yelp Fine-grained classification | CCCapsNet | Error | 34.15 | #11 of 17 | Archive leaderboard | report |
| Text Classification | AG News | CCCapsNet | Error | 7.61 | #15 of 24 | Archive leaderboard | report |
| Text Classification | DBpedia | CCCapsNet | Error | 1.28 | #16 of 21 | Archive leaderboard | report |
| Text Classification | Sogou News | CCCapsNet | Accuracy | 97.25 | #2 of 3 | Archive leaderboard | report |
| Text Classification | Yahoo! Answers | CCCapsNet | Accuracy | 73.85 | #7 of 10 | Archive leaderboard | report |
Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.
Methods
Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections