Journal of Next Generation Technology
An International Open Access multi-disciplinary Journal in Science, Technology, and Sustainability
e-ISSN : 2583-021X
When Do Sparse and Contextual Representations Transfer? Evidence from a Controlled Zero-Shot and Few-Shot Text Classification Case Study
J. Arunadevi, D. Jasmine Gunasundari, “When Do Sparse and Contextual Representations Transfer? Evidence from a Controlled Zero-Shot and Few-Shot Text Classification Case Study”, Journal of Next Generation Technology (ISSN: 2583-021X), Vol. 6, Issue 5, pp. 1–15, October 2026.
Text classification, domain adaptation, transfer learning, sparse representations, contextual embeddings, DistilBERT, few-shot learning, zero-shot learning, TF-IDF, statistical significance testing
Abstract
This paper compares three representations under one shared LinearSVC classifier: a word- and character-level TF-IDF representation (B10), a frozen DistilBERT embedding (P1), and a hybrid formed by standardizing and concatenating the two (AUG5). All three are evaluated on a controlled transfer setup from IMDb to SST-2, under strict zero-shot transfer and classifier-only few-shot adaptation at five target-label budgets per class (10, 50, 100, 500, and 1000). Averaged over five seeds, the hybrid representation reaches the best zero-shot macro-F1 (0.7907) and the best macro-F1 at 1,000 target labels (0.8335); its point-estimate lead over the sparse baseline is positive at every budget tested, though at 10 labels the lead cannot be distinguished from zero given the observed variance. The frozen contextual representation is nominally ahead at the intermediate budgets of 10, 50, 100, and 500 labels, but an approximate Welch’s t-test computed from the reported per-seed statistics shows this lead reaching conventional significance (p < 0.05) only at 100 labels. Because these results come from a single source-target pair of closely related English-language movie-review corpora, we present them as an initial, appropriately scoped case study rather than a general rule, and set out the additional domain pairs, encoders, and ablations that a broader test would require.
References
[1]. R.-E. Fan, K.-W. Chang, C.-J. Hsieh, X.-R. Wang, and C.-J. Lin, “LIBLINEAR: A library for large linear classification,” Journal of Machine Learning Research, vol. 9, pp. 1871–1874, 2008.
[2]. V. Sanh, L. Debut, J. Chaumond, and T. Wolf, “DistilBERT, a distilled version of BERT: Smaller, faster, cheaper and lighter,” arXiv preprint arXiv:1910.01108, 2019.
[3]. A. L. Maas, R. E. Daly, P. T. Pham, D. Huang, A. Y. Ng, and C. Potts, “Learning word vectors for sentiment analysis,” in Proceedings of the 49th Annual Meeting of the ACL-HLT, pp. 142–150, 2011.
[4]. R. Socher, A. Perelygin, J. Wu, J. Chuang, C. D. Manning, A. Y. Ng, and C. Potts, “Recursive deep models for semantic compositionality over a sentiment treebank,” in Proceedings of EMNLP 2013, pp. 1631–1642, 2013.
[5]. G. Salton and C. Buckley, “Term-weighting approaches in automatic text retrieval,” Information Processing & Management, vol. 24, no. 5, pp. 513–523, 1988.
[6]. T. Joachims, “Text categorization with support vector machines: Learning with many relevant features,” in Proceedings of the 10th European Conference on Machine Learning (ECML), pp. 137–142, 1998.
[7]. F. Pedregosa, G. Varoquaux, A. Gramfort, V. Michel, B. Thirion, O. Grisel et al., “Scikit-learn: Machine learning in Python,” Journal of Machine Learning Research, vol. 12, pp. 2825–2830, 2011.
[8]. A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez et al., “Attention is all you need,” in Advances in Neural Information Processing Systems 30 (NeurIPS 2017), pp. 5998–6008, 2017.
[9]. J. Devlin, M.-W. Chang, K. Lee, and K. Toutanova, “BERT: Pre-training of deep bidirectional transformers for language understanding,” in Proceedings of NAACL-HLT 2019, pp. 4171–4186, 2019.
[10]. A. Wang, A. Singh, J. Michael, F. Hill, O. Levy, and S. R. Bowman, “GLUE: A multi-task benchmark and analysis platform for natural language understanding,” in Proceedings of the 2018 EMNLP Workshop BlackboxNLP, pp. 353–355, 2018.
[11]. S. Minaee, N. Kalchbrenner, E. Cambria, N. Nikzad, M. Chenaghlu, and J. Gao, “Deep learning based text classification: A comprehensive review,” ACM Computing Surveys, vol. 54, no. 3, Art. no. 62, 2021.
[12]. L. Zhang, S. Wang, and B. Liu, “Deep learning for sentiment analysis: A survey,” WIREs Data Mining and Knowledge Discovery, vol. 8, no. 4, Art. no. e1253, 2018.
[13]. S. J. Pan and Q. Yang, “A survey on transfer learning,” IEEE Transactions on Knowledge and Data Engineering, vol. 22, no. 10, pp. 1345–1359, 2010.
[14]. J. Quiñonero-Candela, M. Sugiyama, A. Schwaighofer, and N. D. Lawrence, Eds., Dataset Shift in Machine Learning. Cambridge, MA, USA: MIT Press, 2009.
[15]. J. Blitzer, M. Dredze, and F. Pereira, “Biographies, Bollywood, boom-boxes and blenders: Domain adaptation for sentiment classification,” in Proceedings of the 45th Annual Meeting of the ACL, pp. 440–447, 2007.
[16]. J. McAuley and J. Leskovec, “Hidden factors and hidden topics: Understanding rating dimensions with review text,” in Proceedings of the 7th ACM Conference on Recommender Systems (RecSys), pp. 165–172, 2013.
[17]. B. Pang, L. Lee, and S. Vaithyanathan, “Thumbs up? Sentiment classification using machine learning techniques,” in Proceedings of EMNLP 2002, pp. 79–86, 2002.
[18]. M. E. Peters, S. Ruder, and N. A. Smith, “To tune or not to tune? Adapting pretrained representations to diverse tasks,” in Proceedings of the 4th Workshop on Representation Learning for NLP (RepL4NLP), pp. 7–14, 2019.
[19]. W. B. Cavnar and J. M. Trenkle, “N-gram-based text categorization,” in Proceedings of the 3rd Symposium on Document Analysis and Information Retrieval (SDAIR), pp. 161–175, 1994.
[20]. T. Mikolov, K. Chen, G. Corrado, and J. Dean, “Efficient estimation of word representations in vector space,” arXiv preprint arXiv:1301.3781, 2013.
[21]. J. Pennington, R. Socher, and C. D. Manning, “GloVe: Global vectors for word representation,” in Proceedings of EMNLP 2014, pp. 1532–1543, 2014.
[22]. M. E. Peters, M. Neumann, M. Iyyer, M. Gardner, C. Clark, K. Lee, and L. Zettlemoyer, “Deep contextualized word representations,” in Proceedings of NAACL-HLT 2018, pp. 2227–2237, 2018.
[23]. Y. Liu, M. Ott, N. Goyal, J. Du, M. Joshi, D. Chen et al., “RoBERTa: A robustly optimized BERT pretraining approach,” arXiv preprint arXiv:1907.11692, 2019.
[24]. A. Radford, J. Wu, C. Child, D. Luan, D. Amodei, and I. Sutskever, “Language models are unsupervised multitask learners,” OpenAI Technical Report, 2019.
[25]. N. Houlsby, A. Giurgiu, S. Jastrzebski, B. Morrone, Q. De Laroussilhe, C. Gesmundo et al., “Parameter-efficient transfer learning for NLP,” in Proceedings of the 36th ICML, PMLR 97, pp. 2790–2799, 2019.
[26]. S. Ruder, M. E. Peters, S. Swayamdipta, and T. Wolf, “Transfer learning in natural language processing,” in Proceedings of NAACL-HLT 2019: Tutorials, pp. 15–18, 2019.
[27]. A. Ramponi and B. Plank, “Neural unsupervised domain adaptation in NLP: A survey,” in Proceedings of the 28th International Conference on Computational Linguistics (COLING), pp. 6838–6855, 2020.
[28]. Y. Wang, Q. Yao, J. T. Kwok, and L. M. Ni, “Generalizing from a few examples: A survey on few-shot learning,” ACM Computing Surveys, vol. 53, no. 3, Art. no. 63, 2020.
[29]. W. Yin, H. Hay, and D. Roth, “Benchmarking zero-shot text classification: Datasets, evaluation and entailment approach,” in Proceedings of EMNLP-IJCNLP 2019, pp. 3914–3923, 2019.
[30]. Y. Kim, “Convolutional neural networks for sentence classification,” in Proceedings of EMNLP 2014, pp. 1746–1751, 2014.
[31]. J. Howard and S. Ruder, “Universal language model fine-tuning for text classification,” in Proceedings of the 56th Annual Meeting of the ACL, pp. 328–339, 2018.
[32]. E. J. Hu, Y. Shen, P. Wallis, Z. Allen-Zhu, Y. Li, S. Wang et al., “LoRA: Low-rank adaptation of large language models,” in Proceedings of ICLR 2022, 2022.
[33]. E. Ben Zaken, Y. Goldberg, and S. Ravfogel, “BitFit: Simple parameter-efficient fine-tuning for transformer-based masked language-models,” in Proceedings of the 60th Annual Meeting of the ACL, pp. 1–9, 2022.
[34]. T. Formal, B. Piwowarski, and S. Clinchant, “SPLADE: Sparse lexical and expansion model for first stage ranking,” in Proceedings of the 44th International ACM SIGIR Conference, pp. 2288–2292, 2021.
[35]. T. Wolf, L. Debut, V. Sanh, J. Chaumond, C. Delangue, A. Moi et al., “Transformers: State-of-the-art natural language processing,” in Proceedings of EMNLP 2020: System Demonstrations, pp. 38–45, 2020.
[36]. B. W. Matthews, “Comparison of the predicted and observed secondary structure of T4 phage lysozyme,” Biochimica et Biophysica Acta (Protein Structure), vol. 405, no. 2, pp. 442–451, 1975.
[37]. T. Fawcett, “An introduction to ROC analysis,” Pattern Recognition Letters, vol. 27, no. 8, pp. 861–874, 2006.
//
//