Research Article

Template-Guided Prompting for Long-Tail Emotion Recognition

Yuqin Long*
Hunan Institute of Engineering

* Corresponding author: [email protected]

Abstract

Emotion recognition (ER) poses a complex multi-class classification challenge, further complicated by significant class imbalances. In natural dialogue corpora, dominant emotions like neutral are prevalent, while minority emotions such as disgust and fear are notably scarce. This imbalance results in models consistently underperforming on less frequent categories. This paper investigates template-guided prompting as a method to improve long-tail emotion recognition using large language models (LLMs). We employ a unified evaluation framework on the MELD dataset to compare various methods: supervised baselines (TextCNN, BiLSTM), a fine-tuned pre-trained model (BERT-base), and training-free LLM inference (DeepSeek) using three structured prompt templates in both zero-shot and few-shot scenarios (K=1, 3, 5, 10). Our findings demonstrate that template-guided LLM prompting achieves the highest overall performance (Acc=0.6573, Macro-F1=0.5268) and significantly enhances minority-class F1 scores compared to all supervised baselines, without requiring parameter updates. A detailed analysis of hard-sample errors shows that 16.9% of test instances are misclassified by all five models, with minority emotions having hard-sample rates up to 48%. This bias remains even with balanced downsampling (Pearson r=0.986) and is linked to a systematic prediction bias toward the neutral class. These results imply that the difficulties in long-tail ER arise from intrinsic semantic ambiguity rather than just data imbalance, and that structured prompting offers a practical and effective solution for achieving more balanced emotion recognition.

Keywords: Emotion recognition; deep learning; large language models; long tail
Published: April 20, 2026
DOI: 10.54254/2755-2721/2026.GU32927
Volume: ACE Vol.235
pp. 1-11
Download PDF

References

  1. Voultsiou, E., & Moussiades, L. (2026). A Systematic Review of Large Language Models in Mental Health: Opportunities, Challenges, and Future Directions. Electronics, 15(3), 524.
  2. Poria, S., Majumder, N., at al. (2019). Emotion recognition in conversation: Research challenges, datasets, and recent advances. IEEE access, 7, 100943-100953.
  3. Hu, D., Wei, L., & Huai, X. (2021, August). Dialoguecrn: Contextual reasoning networks for emotion recognition in conversations. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers) (pp. 7042-7052).
  4. Shi, J., Wei, T., & Li, Y. (2024). Residual diverse ensemble for long-tailed multi-label text classification. Science China Information Sciences, 67(11), 212102.
  5. Bo-Hao, S., Upadhyay, S. G., & Chi-Chun, L. (2025, April). Toward zero-shot speech emotion recognition using llms in the absence of target data. In ICASSP 2025-2025 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP) (pp. 1-5). IEEE.
  6. Zhang, Y., Wang, M., et al. (2025). Dialoguellm: Context and emotion knowledge-tuned large language models for emotion recognition in conversations. Neural Networks, 107901.
  7. Poria, S., Hazarika, D., et al. (2019, July). Meld: A multimodal multi-party dataset for emotion recognition in conversations. In Proceedings of the 57th annual meeting of the association for computational linguistics (pp. 527-536).
  8. Gong, L., & Ji, R. (2018). What does a TextCNN learn?.  arXiv preprint arXiv: 1801.06287.
  9. Siami-Namini, S., Tavakoli, N., & Namin, A. S. (2019, December). The performance of LSTM and BiLSTM in forecasting time series. In 2019 IEEE International conference on big data (Big Data) (pp. 3285-3292). IEEE.
  10. Khadhraoui, M., Bellaaj, H., et al. (2022). Survey of BERT-base models for scientific text classification: COVID-19 case study. Applied Sciences, 12(6), 2891.
  11. Liu, A., Feng, B., et al. (2024). Deepseek-v3 technical report.  arXiv preprint arXiv: 2412.19437.