Abstract
In this paper, we study the "stability" of machine learning (ML) models within the context of larger, complex NLP systems with continuous training data updates. For this study, we propose a methodology for the assessment of model stability (which we refer to as jitter) under various experimental conditions. We find that model design choices, including network architecture and input representation, have a critical impact on stability through experiments on four text classification tasks and two sequence labeling tasks. In classification tasks, non-RNN-based models are observed to be more stable than RNN-based ones, while the encoder-decoder model is less stable in sequence labeling tasks. Moreover, input representations based on pre-trained fastText embeddings contribute to more stability than other choices. We also show that two learning strategies -- ensemble models and incremental training -- have a significant influence on stability. We recommend ML model designers account for trade-offs in accuracy and jitter when making modeling choices.
Introduction
In industrial machine learning, models are living systems, frequently retrained as new data becomes available. While standard metrics focus on overall accuracy, they often overlook "jitter"—the tendency of a model's predictions to flip-flop between versions. Even if a new version is more accurate, inconsistent predictions on the same inputs can degrade user experience and break downstream systems. This study quantifies this instability and identifies modeling choices that minimize it.
Methodology
The researchers define Jitter ($J$) as the average probability that a test example will receive different predictions across different versions of a model trained on slightly varying datasets. To simulate real-world "Continuous Data Updates" (CDUs), they employed a "leave-some-out" approach, training models on $N$ versions of a dataset where 1% of the data was randomly removed.
The study evaluated several variables across six NLP tasks (including CCD, Stack Overflow, and Reuters-21578):
- Architectures: biLSTM, textCNN, Transformers, and Encoder-Decoder models.
- Input Representations: Self-learned embeddings, GloVe, fastText, and BERT.
- Training Strategies: Standard training, Ensembles, and Incremental training (fine-tuning the previous version).
Key Results and Discussion
Architecture and Stability
A primary finding is that non-recurrent models, specifically textCNN, are significantly more stable than RNN-based models like biLSTM. As shown in the table below, textCNN consistently achieves lower jitter scores across multiple datasets. The authors attribute this to CNNs' reliance on local features, making them less sensitive to minor training set perturbations compared to the long-range dependencies captured by RNNs.
The Impact of Input Representations
While BERT often provides superior accuracy, it frequently induces higher jitter than simpler embeddings like fastText. On the Stack Overflow task, for instance, fastText-based models yielded a jitter of 9.84, compared to 13.50 for BERT-based models. This suggests a trade-off between the power of massive pre-trained models and the stability required for production systems.
Training Strategies for Stability
The choice of training strategy has a profound impact on jitter. Moving from a basic training setup to an Ensemble approach slashed jitter by nearly half in some experiments (e.g., from 8.94 to 4.91 on the CCD task). Incremental Training also provided a notable stability boost, reducing jitter to 6.46.
Conclusion
This research highlights that "better" accuracy does not always equate to a "better" model in a continuous update environment. Model designers must account for the trade-offs between performance and jitter. The authors recommend using ensembles or incremental training and considering CNN-based architectures or fastText embeddings when stability is a priority.
Summary updated