Building and Validating a Coal Mine Safety Question-Answering System with a Large Language Model Through a Two-Stage Fine-Tuning Method
Source abstract
Abstract
Artificial intelligence technology holds significant importance for building intelligent question-answering systems in the field of coal mine safety and enhancing safety management levels. Currently, there is a lack of specialized large language models and high-quality question-answering datasets in this field. To address this, this study proposes a two-stage fine-tuning method based on Low-Rank Adaptation (LoRA) and Group Sequence Policy Optimization (GSPO) for training a question-answering model tailored to the coal mine safety domain. The research begins by constructing a dedicated question-answering dataset based on domain-specific regulatory documents. Subsequently, using Qwen2.5-7B Instruct as the base model, the study fine-tunes the model through supervised learning with LoRA technology, followed by further optimization of the model’s performance using the GSPO reinforcement learning algorithm. Experiments show that the model trained with this method exhibits significant improvements in coal mine safety-related tasks, achieving superior results on multiple automated evaluation metrics compared to contrast models of similar scale. This study validates the effectiveness of the two-stage fine-tuning method in adapting large language models (LLMs) to specific domains, providing a new technical approach for the intelligentization of coal mine safety. It should be noted that due to the lack of external data, this study relies on a self-constructed dataset and has not yet undergone external independent validation, which constitutes the main limitation of the current work.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Topic Modeling · Expert finding and Q&A systems · Intelligent Tutoring Systems and Adaptive Learning
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
School of Computer and Information Engineering, Heilongjiang University of Science and Technology, Harbin 150022, China
School of Computer Science and Engineering, Northeastern University, Shenyang 110819, China
Funding
Fundamental Research Funds for the Provincial Universities of Heilongjiang Province
References (34)
Show source-provided references
1. Application of Modern Safety Management Science in Coal Mine Safety
2. Review of construction and reasoning methods for knowledge graphs in coal mining domain
3. He, L., Wan, Z., Wu, Y., Sun, L., Zhao, Z., Cai, H., Qiao, Y., Cao, X., and Zhang, X. (2025). Research on the Progress of Intelligent Coal Mining System Engineering Driven by Data/Knowledge Fusion. J. China Coal Soc., 1–36.
4. Design and Application of a Coal Mine Safety Assistant Based on LLM
5. Zhu, P., Chen, W., Chen, D., Liu, J., Liu, Z., Liu, Y., and Lin, G. (2024). An Efficient Query System for Coal Mine Safety Information Based on Retrieval-Augmented Language Model, Springer Nature.10.1007/978-981-97-5666-7_20 ↗
6. Woods, W.A. (1977). Lunar Rocks in Natural English: Explorations in Natural Language Question Answering, North-Holland.
7. Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A.N., Kaiser, L., and Polosukhin, I. (2017). Attention is all you need. Adv. Neural Inf. Process. Syst., 30.
8. Bert: Pre-training of deep bidirectional transformers for language understanding
9. Language models are unsupervised multitask learners
10. Chalkidis, I., Fergadiotis, M., Malakasiotis, P., Aletras, N., and Androutsopoulos, I. (2020). LEGAL-BERT: The muppets straight out of law school. Meeting of the Association-for-Computational-Linguistics (ACL-EMNLP), Association for Computational Linguistics.10.18653/v1/2020.findings-emnlp.261 ↗
11. Language models are few-shot learners
12. Palm: Scaling language modeling with pathways
13. The Technical Application Prospects and Risk Challenges of Large Language Models
14. Toward expert-level medical question answering with large language models10.1038/s41591-024-03423-7 ↗
15. Zhou, Z., Shi, J.-X., Song, P.-X., Yang, X.-W., Jin, Y.-X., Guo, L.-Z., and Li, Y.-F. (2024). Lawgpt: A chinese legal knowledge-enhanced large language model. arXiv.
16. Van Veen, D., Van Uden, C., Attias, M., Pareek, A., Bluethgen, C., Polacin, M., Chiu, W., Delbrouck, J.B., Chaves, J.Z., and Langlotz, C. (2023). RadAdapt: Radiology Report Summarization via Lightweight Domain Adaptation of Large Language Models. Proceedings of the 22nd Workshop on Biomedical Natural Language Processing and BioNLP Shared Tasks, Association for Computational Linguistics.10.18653/v1/2023.bionlp-1.42 ↗
17. Tea intelligent question-answering system using lightweight large language models
18. Wang, S., Zheng, Y., Wang, G., Song, S., and Huang, G. (2025, March 03). Llama3-8B-Chinese-Chat. Available online: https://huggingface.co/shenzhi-wang/Llama3-8B-Chinese-Chat.
19. Knowledge question answering for telecommunications domain based on large language models
20. Research on answer generation model of coal mine safety knowledge question answering system
21. Liu, Y., Ott, M., Goyal, N., Du, J., Joshi, M., Chen, D., Levy, O., Lewis, M., Zettlemoyer, L., and Stoyanov, V. (2019). RoBERTa: A Robustly Optimized BERT Pretraining Approach. arXiv.
22. Sun, Y., Zhang, C., Wang, C., and Han, Y. (2024). MIRA-ChatGLM: A Fine-Tuned Large Language Model for Intelligent Risk Assessment in Coal Mining. Appl. Sci., 14.10.3390/app142412072 ↗
23. LoRA: Low-rank adaptation of large language models
24. Zheng, C., Liu, S., Li, M., Chen, X.-H., Yu, B., Gao, C., Dang, K., Liu, Y., Mei, R., and Yang, A. (2025). Group sequence policy optimization. arXiv.
25. Ziegler, D.M., Stiennon, N., Wu, J., Brown, T.B., Radford, A., Amodei, D., Christiano, P., and Irving, G. (2019). Fine-tuning language models from human preferences. arXiv.
26. Zhang, Q., Chen, Q., Li, Y., Liu, J., and Wang, W. (2021, January 13–17). Sequence Model with Self-Adaptive Sliding Window for Efficient Spoken Document Segmentation. Proceedings of the IEEE Automatic Speech Recognition and Understanding Workshop, Cartagena, Colombia.10.1109/ASRU51503.2021.9688078 ↗
27. Lester, B., Al-Rfou, R., and Constant, N. (2021). The Power of Scale for Parameter-Efficient Prompt Tuning. Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, Association for Computational Linguistics.10.18653/v1/2021.emnlp-main.243 ↗
28. Chen, J., Xiao, S., Zhang, P., Luo, K., Lian, D., and Liu, Z. (2024). M3-Embedding: Multi-Linguality, Multi-Functionality, Multi-Granularity Text Embeddings Through Self-Knowledge Distillation. Proceedings of the Association for Computational Linguistics: ACL 2024, Association for Computational Linguistics.10.18653/v1/2024.findings-acl.137 ↗
29. Lin, Y.T., and Chen, Y.N. (2023). LLM-Eval: Unified Multi-Dimensional Automatic Evaluation for Open-Domain Conversations with Large Language Models. Proceedings of the 5th Workshop on Conversational AI, ACL.10.18653/v1/2023.nlp4convai-1.5 ↗
30. Papineni, K., Roukos, S., Ward, T., and Zhu, W.J. (2002). BLEU: A method for automatic evaluation of machine translation. Proceedings of the 40th Annual Meeting of the Association for Computational Linguistics, Association for Computational Linguistics.10.3115/1073083.1073135 ↗
31. Ganesan, K.A. (2018). Rouge 2.0: Updated and improved measures for evaluation of summarization tasks. arXiv.
32. Zhang, T.Y., Varsha, K., Felix, W., Kilian, Q.W., and Yoav, A. (2019). Bertscore: Evaluating text generation with bert. arXiv.
33. Cai, Z., Cao, M., Chen, H., Chen, K., Chen, K., Chen, X., Chen, X., Chen, Z., Chen, Z., and Chu, P. (2024). Internlm2 technical report. arXiv.
34. Yang, A., Xiao, B., Wang, B., Zhang, B., Bian, C., Yin, C., Lv, C., Pan, D., Wang, D., and Yan, D. (2023). Baichuan 2: Open large-scale language models. arXiv.