Skip to main content

Text Classification Using LLM and Group Relative Policy Optimization (GRPO)

  • Conference paper
  • First Online:
Pattern Recognition and Machine Intelligence (PReMI 2025)

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 16357))

  • 535 Accesses

Abstract

Text classification, where each input text is assigned to a single category, is a fundamental task in natural language processing. In this paper, we propose a novel framework that combines BERT-based contextual embeddings with a reinforcement learning technique known as group relative policy optimization (GRPO). To enrich input representations, we employ prompt-based text generation using GPT models. It helps create diverse paraphrased variants that are fused with the original embeddings. It is then used to train a classifier using the GRPO, which improves stability and reduces reliance on conventional supervised objectives. We conduct experiments on the baseline BERT model and perform an ablation study of our proposed pipeline using a financial fraud classification dataset. It shows that the integration of generative augmentation and policy-based learning leads to improved classification performance and training efficacy.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Subscribe and save

Springer+
from $39.99 /Month
  • Starting from 10 chapters or articles per month
  • Access and download chapters and articles from more than 300k books and 2,500 journals
  • Cancel anytime
View plans

Buy Now

Chapter
USD 29.95
Price excludes VAT (USA)
eBook
USD 69.99
Price excludes VAT (USA)
Softcover Book
USD 89.99
Price excludes VAT (USA)

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Similar content being viewed by others

References

  1. Airani, P., Pipada, N., Shah, P.: Classification of complaints text data by ensembling large language models. In: Proceedings of the 17th International Conference on Agents and Artificial Intelligence - Volume 3: ICAART, pp. 679–686. INSTICC, SciTePress (2025). https://doi.org/10.5220/0013173900003890

  2. Balkus, S.V., Yan, D.: Improving short text classification with augmented data using gpt-3 (2022). https://doi.org/10.48550/arXiv.2205.10981, https://arxiv.org/abs/2205.10981

  3. Chai, D., Wu, W., Han, Q., Wu, F., Li, J.: Description based text classification with reinforcement learning. In: Proceedings of the 37th International Conference on Machine Learning, pp. 1360–1369. PMLR (2020). http://proceedings.mlr.press/v119/chai20a/chai20a.pdf

  4. Dai, H., et al.: Auggpt: Leveraging chatgpt for text data augmentation (2023). https://arxiv.org/abs/2302.13007

  5. Devlin, J., Chang, M.W., Lee, K., Toutanova, K.: Bert: Pre-training of deep bidirectional transformers for language understanding (2019). https://doi.org/10.48550/arXiv.1810.04805, https://arxiv.org/abs/1810.04805

  6. Don‘aciolo, H., Barri’e, A., South, L.E., Forbes, F.: Dynamic learning rate for deep reinforcement learning: a bandit approach (2024). https://arxiv.org/abs/2410.12598

  7. Guo, D., et al.: Deepseek-r1: Incentivizing reasoning capability in LLMs via reinforcement learning (2025). https://arxiv.org/abs/2501.12948

  8. Kumar, V., et al.: Data augmentation using pre-trained transformer models (2020). https://doi.org/10.48550/arXiv.2003.02245, https://arxiv.org/abs/2003.02245

  9. Kuznetsov, S., colleagues: Using large language models for data augmentation in text classification models. Int. J. Comput. 24(1) (2025). https://doi.org/10.47839/ijc.24.1.3886

  10. Lin, Z., Lin, M., Xie, Y., Ji, R.: Cppo: accelerating the training of group relative policy optimization-based reasoning models (2025). https://doi.org/10.48550/arXiv.2503.22342, https://arxiv.org/abs/2503.22342, submitted Mar 28 (2025)

  11. Piduguralla, M., Bhatt, J.S.: An analytical CNN: Use of wavelets for learning image structures in cross-domain generalization. In: 2024 National Conference on Communications (NCC), pp. 1–6. Chennai, India (2024). https://doi.org/10.1109/NCC60321.2024.10485918

  12. Refai, D., Abo-Soud, S., Abdel-Rahman, M.: Data augmentation using transformers and similarity measures for improving Arabic text classification (2022). https://doi.org/10.48550/arXiv.2212.13939, https://arxiv.org/abs/2212.13939

  13. Sane, S.: Hybrid group relative policy optimization: a multi-sample approach to enhancing policy optimization (2025). https://arxiv.org/abs/2502.01652, posted Jan 30, 2025

  14. Shao, Z., et al.: Deepseekmath: Pushing the limits of mathematical reasoning in open language models (2024). https://doi.org/10.48550/arXiv.2402.03300, https://arxiv.org/abs/2402.03300

  15. Xue, Z., et al.: Dancegrpo: Unleashing grpo on visual generation (2025). https://arxiv.org/abs/2505.07818, released on arXiv May 12, 2025

  16. Ye, Z., et al.: Zero-shot text classification via reinforced self-training. In: Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics (2020). https://aclanthology.org/2020.acl-main.272.pdf

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Vikas Vaghasiya.

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2026 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Vaghasiya, V., Shimpi, D., Shah, P., Bhatt, J.S. (2026). Text Classification Using LLM and Group Relative Policy Optimization (GRPO). In: Mitra, S., Saha, S., Panigrahi, B.K., Sarkar, S., Chaudhury, S. (eds) Pattern Recognition and Machine Intelligence. PReMI 2025. Lecture Notes in Computer Science, vol 16357. Springer, Cham. https://doi.org/10.1007/978-3-032-18477-1_65

Download citation

Keywords

Publish with us

Policies and ethics