Sustainable hybrid text classification: Enhancing encoder-only language models with NLI-derived pseudo-examples
Building accurate text classifiers using small labeled data is a critical challenge in production systems and high-stake applications (e.g., misinformation mitigation, clinical decision support). Organizations struggle with expensive data annotation costs and need solutions that can adapt to data drifts over time. Despite their amazing results, contemporary generative Large Language Models are unsuitable for production classification tasks due to their high computational demands and inconsistent predictions. To tackle these issues, this work introduces a lightweight modular framework combining an encoder-only LM with weak supervision from pre-trained Natural Language Inference (NLI) models. The NLI models are used as zero-shot annotators, forming an ensemble that generates pseudo-labels to augment the set of training examples. Unreliable pseudo-labeled instances are discarded by using an abstention-based mechanism, based on label agreement and risk-bounded rejection thresholds. The remaining pseudo-labeled data are used to fine-tune the encoder-only classifier with minimal training overhead. Major strengths of the framework are: (i) synergistic integration of complementary pre-trained models, (ii) a cheap abstention mechanism for improving pseudo-label quality, and (iii) small computational costs (thanks to the use of small LMs and few training data and fine-tuning epochs). Tests on fake news and depression detection datasets show that this approach achieves compelling performances despite using a fraction of the computational burden required by generative LLMs and state-of-the-art semi-supervised-learning methods.
Authors
- Francesco Folino (ORCID: https://orcid.org/0000-0002-4952-1187)
- Luigi Pontieri (ORCID: https://orcid.org/0000-0003-4513-0362)
- Fabrizio Marozzo (ORCID: https://orcid.org/0000-0001-7887-1314)
- Cristian Cosentino (ORCID: https://orcid.org/0000-0002-6368-373X)
Publication Details
- Journal
- Array
- Published
- 2026-02-23
- DOI
- https://doi.org/10.1016/j.array.2026.100705
- Primary Topic
- Text and Document Classification Technologies
- Type
- article
- Field-Weighted Citation Impact
- 0.00