Multi-pretraining for Large-scale Text Classification

Kang-Min Kim, Bumsu Hyeon, Yeachan Kim, Jun-Hyung Park, SangKeun Lee

Abstract

Large-scale text classification often suffers from data scarcity in long-tail categories and high computational costs associated with state-of-the-art Transformer models. This paper introduces a "multi-pretraining" framework for Convolutional Neural Networks (CNNs) that leverages out-of-context word detection and weakly supervised signals. The resulting MP-CNN model achieves superior performance—outperforming XLNet by up to 3.8% in macro-F1—while maintaining a significantly smaller parameter footprint and faster training times.

Introduction

Large-scale text classification involves categorizing documents into thousands of classes, often organized in complex hierarchies. This task presents a "long-tail" challenge where many categories have very few training examples. While large-scale pretrained models like BERT and XLNet have set new benchmarks in NLP, their application to this domain is hindered by massive computational overhead and a potential mismatch between standard language modeling objectives and the topic-consistency requirements of classification.

Methodology

The proposed framework utilizes a relatively simple CNN architecture enhanced by a multi-stage pretraining and finetuning strategy designed to capture semantic topic consistency.

Multi-Stage Training Pipeline

The training process consists of three primary phases:

  1. Self-Supervised Pretraining (OOC Detection): Instead of traditional masked language modeling, the model is trained on an "Out-of-Context" (OOC) word detection task. By identifying "damaged" sentences where words have been replaced with random alternatives, the model learns which terms topically belong together.
  2. Weakly Supervised Pretraining: A traditional tf-idf classifier is used to generate noisy labels for a large unlabeled corpus, providing the model with initial category boundaries.
  3. Finetuning: This includes "coarse-tuning" on category names to establish semantic grounding, followed by discriminative finetuning and filter penalization to ensure feature diversity.
Overview of the Multi-pretraining, Coarse-tuning, and Supervised finetuning stages.

Experimental Setup

The model was evaluated on the Open Directory Project (ODP) dataset, a large-scale web directory containing 2,531 categories. The training set consisted of 58,180 webpages. For pretraining, an unlabeled corpus of 5.02GB (including WikiText-103 and AG News) was utilized.

Results and Analysis

The Multi-Pretrained CNN (MP-CNN) demonstrated significant advantages in both accuracy and efficiency.

Classification Performance

MP-CNN achieved a Micro-F1 score 0.8% higher than XLNet and a Macro-F1 score 3.8% higher. The substantial gain in Macro-F1 highlights the model's effectiveness in handling the "long-tail" of rare categories.

Computational Efficiency

With only ~8.6 million parameters (compared to ~94 million for XLNet), MP-CNN is highly efficient. Finetuning was completed in under 3 hours, whereas smaller Transformer variants like ALBERT required over 10 hours on identical hardware.

Data Efficiency

The framework excels in low-data regimes. As shown in the performance comparison, MP-CNN maintains a consistent lead over both standard CNNs and XLNet across various training set sizes.

Comparison of Mi-F1 scores across different training set sizes for MP-CNN, XLNet, and a standard CNN.

Conclusion

This research demonstrates that for large-scale text classification, a specialized pretraining framework can enable lightweight CNNs to outperform much larger Transformer models. By focusing on topic consistency rather than just syntax, the MP-CNN provides a scalable and efficient solution for complex, many-class categorization tasks. Future work will explore the applicability of this framework to other NLP domains such as sentiment analysis.

Summary updated

BibTeX
@inproceedings{kim2020multi,
  author = {Kang-Min Kim and Bumsu Hyeon and Yeachan Kim and Jun-Hyung Park and SangKeun Lee},
  title = {{Multi-pretraining for Large-scale Text Classification}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2020},
  doi = {10.18653/v1/2020.findings-emnlp.185},
}
Figure