All models

CNN-encoded Radical-level Representation

Chinese and Japanese sentiment classifier built on radical embeddings, a CNN word encoder and a bi-directional RNN.

Language · 44 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (42 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
2.5M
Operations
44
Framework
PyTorch
Recurrent
No
Published
ACML 2017 (PMLR 77:561-573)
Cited by
18 (as of 3 November 2026)
Authors
Yuanzhi Ke, Masafumi Hagiwara
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m15142
Graph hash
7f1f631449783dd4954c31db728c5689e104eafa4f8be9f3cda6e7cb4448aba4
Skeleton hash
a8ffaee7461030a3391f5b1a8608b694b5160e138028839ac5af9de37f11d46f
Architecture hash
077d0ecb9e04a403f8c86455d173187998e9b24b7d15d809e152041e4a858736
Diagram SHA-256
34c35911519aeb82392508fd32364595fa4b9496103073df76ab9d08dacd4e70
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

This model classifies the sentiment of Chinese and Japanese text from radicals, the components of Chinese characters (hanzi in Chinese, kanji in Japanese). The motivation is vocabulary size: the character vocabulary of these languages is huge, while the number of radicals is much smaller.

Each character is represented by a sequence of radical-level embeddings, and a convolutional layer with multiple filters encodes the radicals of a word into word features. That layer combines two kinds of filters: filters with stride 1 for radical-level features, and filters whose stride equals the number of radicals per character for character-level features. The word features are fed to a bi-directional LSTM that encodes the document, and an affine transformation and a softmax give the sentiment label. The architecture resembles the character-aware neural language model of Kim et al. (2016), with radical embeddings in place of character embeddings and without highway layers.

The first paper reports results on par with character embedding-based models and close to word embedding-based models, with a 90% smaller vocabulary and at least 13% and 80% fewer parameters respectively. A later journal paper on Japanese by the same authors reports that, on test sets of unknown characters, the radical-level model scored 4.01% and 2.38% above the word and character embedding-based baselines.

Key idea. The paper showed that a CNN over radical embeddings with a bi-directional RNN matches character-embedding models and comes close to word-embedding models, using a much smaller vocabulary and fewer parameters.

  • CNN-encoded Radical-level Representation
  • Radical-level Ideograph Encoder
  • Radical-CNN-RNN
  • radical embeddings
  • sentiment analysis
  • Chinese
  • Japanese
  • kanji
  • hanzi
  • text classification

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{ke2017radicallevelideographencoderrnnbased,
      title={Radical-level Ideograph Encoder for RNN-based Sentiment Analysis of Chinese and Japanese}, 
      author={Yuanzhi Ke and Masafumi Hagiwara},
      year={2017},
      eprint={1708.03312},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/1708.03312}, 
}