[Paper Review] On Extending Neural Networks with Loss Ensembles for Text Classification
This paper proposes a neural network extension using an ensemble of loss functions, where individual loss weights are learned via gradient descent during training. The method improves text classification accuracy and demonstrates strong robustness to label noise across multiple datasets, outperforming standard individual loss functions.
Ensemble techniques are powerful approaches that combine several weak learners to build a stronger one. As a meta learning framework, ensemble techniques can easily be applied to many machine learning techniques. In this paper we propose a neural network extended with an ensemble loss function for text classification. The weight of each weak loss function is tuned within the training phase through the gradient propagation optimization method of the neural network. The approach is evaluated on several text classification datasets. We also evaluate its performance in various environments with several degrees of label noise. Experimental results indicate an improvement of the results and strong resilience against label noise in comparison with other methods.
Motivation & Objective
- To improve text classification performance by combining multiple weak loss functions into a single, adaptive ensemble loss.
- To enhance model robustness against label noise, a common challenge in real-world text datasets.
- To integrate ensemble learning principles directly into the loss function optimization process of neural networks.
- To evaluate the effectiveness of the ensemble loss across diverse text classification benchmarks with varying noise levels.
- To demonstrate that learning loss weights via gradient propagation leads to superior generalization compared to fixed individual losses.
Proposed method
- The framework replaces a single loss function with a weighted ensemble of multiple margin-based loss functions, including Hinge, Cross-Entropy, and Correntropy.
- The weights of the individual loss functions are differentiable and optimized via backpropagation during training.
- The ensemble loss is defined as a weighted sum: $ L_{ ext{ensemble}} = \sum_{i=1}^{k} \eta_i L_i(y, \hat{y}) $, where $ \eta_i $ are trainable parameters.
- The model uses a simple feedforward neural network with softmax output and word frequency features as input.
- Training proceeds via standard stochastic gradient descent, with loss weights updated end-to-end.
- The method is evaluated on four text classification datasets: 20 Newsgroups, Movie Reviews, TREC Email, and Reuters-21578.
Experimental results
Research questions
- RQ1Can combining multiple loss functions through an ensemble mechanism improve text classification performance?
- RQ2How does the proposed ensemble loss perform under increasing levels of label noise compared to individual loss functions?
- RQ3Does learning the loss weights via gradient descent lead to better generalization than fixed, hand-tuned loss functions?
- RQ4Is the ensemble loss more robust than individual losses when training data contains mislabeled examples?
- RQ5Can this approach be effectively applied to simple neural network architectures in text classification tasks?
Key findings
- The ensemble loss achieved the highest accuracy on 3 out of 4 datasets, with 85% accuracy on 20 Newsgroups, surpassing the best individual loss (Square: 82%).
- On the TREC Email dataset, the ensemble loss reached 97% accuracy, outperforming Cross-Entropy (88%) and Square (96%) under clean data.
- Under 10% label noise, the ensemble model maintained strong performance, achieving 96% accuracy on TREC Email, compared to 86% for Cross-Entropy and 57% for Hinge.
- Under 30% label noise, the ensemble model achieved 93% accuracy on TREC Email, significantly outperforming Hinge (46%) and Cross-Entropy (80%).
- The ensemble loss showed consistent improvement over individual losses, with only two minor cases where performance was slightly worse, indicating high reliability.
- The method demonstrated fast convergence and stable training, suggesting compatibility with standard deep learning optimization pipelines.
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.