[Paper Review] RoBERTa-wwm-ext Fine-Tuning for Chinese Text Classification
This paper proposes fine-tuning RoBERTa-wwm-ext with four different neural network heads—CNN, RNN, RCNN, and DPCNN—for Chinese text classification of legal vs. illegal behavior. Despite enhanced architecture complexity, all proposed models underperform the baseline RoBERTa-wwm-ext in both accuracy and training efficiency on a court-record-derived dataset of 6,755 samples.
Bidirectional Encoder Representations from Transformers (BERT) have shown to be a promising way to dramatically improve the performance across various Natural Language Processing tasks [Devlin et al., 2019]. Meanwhile, progress made over the past few years by various Neural Net-work has also proved the effectiveness of Neural Network in the field of Natural Language Processing. In this project, RoBERTa-wwm-ext [Cui et al., 2019] pre-train language model was adopted and fine-tuned for Chinese text classification. The models were able to classify Chinese texts into two categories, containing descriptions of legal behavior and descriptions of illegal behavior. Four different models are also proposed in the paper. Those models will use RoBERTa-wwm-extas their embedding layer and feed the embedding into different neural networks. The motivation be-hind proposing these models is straightforward. By introducing complex output layer architecture, the overall performance of the models could be improved. All the models were trained on a data set derived from Chinese public court records, and the performance of different models were compared.The experiment shows that the performance of pro-posed models failed to beat the original RoBERTa-wwm-ext model in terms of accuracy and training efficiency.
Motivation & Objective
- To improve Chinese text classification performance for detecting illegal online behavior using RoBERTa-wwm-ext as a base encoder.
- To investigate whether adding complex neural network heads (CNN, RNN, RCNN, DPCNN) to RoBERTa-wwm-ext enhances classification accuracy and training efficiency.
- To optimize hyperparameters and text preprocessing (e.g., sequence padding) for better model performance on court-record-based Chinese text.
- To compare the proposed models against the RoBERTa-wwm-ext baseline in terms of validation accuracy and training time.
Proposed method
- Fine-tuned RoBERTa-wwm-ext using a dataset of 6,755 manually labeled Chinese court records, split into 64% training, 16% validation, and 20% test sets.
- Used RoBERTa-wwm-ext as the embedding layer without freezing any layers during fine-tuning, leveraging its whole-word masking and RoBERTa-optimized training.
- Fed the contextual embeddings into four distinct classification heads: 1D-CNN with kernel sizes 2, 3, 4 and 100 filters each, BiLSTM with 768 hidden units, RCNN with residual connections, and DPCNN with stacked convolutional blocks.
- Applied dropout (rate 0.1) in all heads and used batch size 64 on a Tesla P100 GPU with CUDA 10.2 for training across 10 epochs.
- Optimized hyperparameters and applied sequence padding to handle variable-length inputs.
- Evaluated models using validation accuracy and training time across different batch sizes (64 and 16).
Experimental results
Research questions
- RQ1Does adding a complex neural network head (CNN, RNN, RCNN, DPCNN) to RoBERTa-wwm-ext improve classification accuracy on Chinese legal text?
- RQ2Can the proposed models achieve faster training times compared to the RoBERTa-wwm-ext baseline?
- RQ3How does batch size affect the accuracy and training time of the proposed models?
- RQ4Is the performance of RoBERTa-wwm-ext as a base encoder sufficient to outperform more complex head architectures in this classification task?
- RQ5Does text preprocessing, such as sequence padding, significantly impact model performance?
Key findings
- The baseline RoBERTa-wwm-ext model achieved the highest validation accuracy at 95.31% with a batch size of 64.
- The RNN-based model achieved 95.03% validation accuracy, coming closest to the baseline, but still underperformed it.
- The DPCNN-based model achieved 92.38% validation accuracy, the lowest among all models, indicating poor performance with this architecture.
- Training time varied only slightly across models, with the RNN model taking the longest (5m42s for 10 epochs), while DPCNN was fastest (3m46s), but not significantly so.
- Reducing batch size from 64 to 16 marginally improved accuracy (e.g., baseline from 95.31% to 96.58%), but at the cost of significantly longer training time (from ~4 minutes to ~13 minutes).
- No proposed model outperformed the RoBERTa-wwm-ext baseline in either accuracy or training efficiency, indicating that the pre-trained model's representation learning was already optimal for this task.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.