TL;DR
This paper introduces a novel multi-stream neural network that leverages "background knowledge" extracted from external text sources to improve text classification, particularly for imbalanced datasets. By combining a core text processing stream with streams focused on keywords and co-occurring words, the model effectively supplements limited training data and enhances classification accuracy.
What Problem Does This Paper Address?
Text classification is a fundamental task in Natural Language Processing (NLP) with broad applications. However, a significant challenge arises from imbalanced datasets, where some categories have far more examples than others. This imbalance can lead classifiers to favor majority classes, effectively ignoring or performing poorly on minority classes. Furthermore, even within a category, the training data might not capture the full spectrum of sub-categories, leading to a mismatch between training and testing data features. This paper aims to tackle these issues by enriching the training process with external knowledge.
Methods
The core innovation is a Background Knowledge Based Multi-Stream Neural Network. This architecture comprises:
- Basal Word-Stream: This stream processes the original text sequence, preserving its inherent semantic and sequential information. It uses a Recurrent Neural Network (RNN) with Gated Recurrent Units (GRU) as its encoder.
- Background Knowledge Based Streams: These streams are designed to supplement the basal stream. They are fed with:
- Keywords: Extracted from the labeled training corpus using the TF-ICF (Term Frequency-Inverse Category Frequency) method. This method prioritizes terms that are frequent within a specific category but rare across all categories.
- Co-occurred Words: Identified by scanning external, unlabeled corpus. These are words that frequently appear near the identified keywords within a defined window. This captures contextual relationships.
- Fusion Strategies: To integrate the information from these streams, the authors propose three strategies:
- Early-Fusion: Concatenates the feature outputs from each stream's encoder before feeding them into a final classification layer.
- Average Pooling (After-Fusion): Averages the probability distributions predicted by each individual stream.
- Soft Voting (After-Fusion): Uses a fully connected neural network to learn a weighted combination of the probability distributions from each stream, allowing for more nuanced integration.
Each stream is trained independently using the Adam optimizer, and then the fusion strategies are applied.
Datasets
The research utilizes a combination of training and background corpora:
Training Corpora: * Chinese: * Fudan University Text Classification Corpus (imbalanced, 20 categories) * Reduced version of Sougou Classification Corpus (balanced, 9 categories) * English: * Reuters-21578 R8 (8 classes selected from Reuters-21578) * Reuters-21578 R52 (52 classes selected from Reuters-21578)
Background Corpora (for knowledge extraction): * Chinese: People's Daily News (large corpus) * English: Reuters Corpus (large corpus)
Key Insights and Ideas
- External knowledge as a data augmenter: The paper demonstrates that leveraging readily available external text data can effectively compensate for the limitations of smaller, imbalanced training datasets. This is a powerful concept for improving model performance without needing to collect more labeled data.
- Keywords and co-occurrences capture crucial context: The distinction between keywords (defining a category) and co-occurred words (providing contextual relevance) is insightful. This dual approach allows the model to understand both the core concepts and their surrounding semantic landscape.
- Multi-stream fusion is key: The success of the model hinges on effectively combining the information from different streams. The comparison of early-fusion and after-fusion strategies highlights that different fusion methods can yield varying results, suggesting that the optimal fusion technique might be task-dependent.
- Imbalance is a major driver of improvement: The most significant gains are observed on imbalanced datasets, particularly for minority classes. This strongly suggests that the background knowledge effectively bridges the gap created by data scarcity.
Key Results
The proposed background knowledge-based multi-stream neural network consistently outperformed the baseline (basal word-stream) across all tested datasets.
- Reuters-21578 R8: Achieved a macro F1 score of 95.02% with average pooling (W+Key+Cow), a significant improvement over the baseline's 85.04%.
- Fudan Corpus: Achieved a macro F1 score of 85.03% with early fusion (W+Key+Cow), an improvement from the baseline's 76.55%.
- Reuters-21578 R52: Achieved a macro F1 score of 76.12% with soft voting (W+Key+Cow), improving upon the baseline's 64.02%.
- Sougou Corpus: Achieved a macro F1 score of 87.27% with early fusion (W+Key+Cow), an improvement from the baseline's 83.36%.
The paper also shows that the improvements are most pronounced for categories with fewer training examples, validating the approach's effectiveness in addressing data imbalance.
Limitations and Future Work
- Limitations:
- The paper acknowledges that while accuracy might not always see a dramatic increase on balanced datasets, the macro-averaged metrics (precision, recall, F1) show significant improvement, which is more indicative of performance on imbalanced data.
- The effectiveness of background knowledge is dependent on the quality and relevance of the external corpus used for extraction.
- Future Work:
- Extracting more beneficial background knowledge from larger and more diverse external corpora.
- Exploring more complex and in-depth feature extraction models as encoders.
- Investigating further feature fusion strategies.
Summary updated