journal article·2025-08-21Open access

Domain-Specialized Large Language Model for Corrosion Analysis: Construction and Evaluation of Corr-Lora-RAG

Weitong Wu, Di Xu, Liangan Liu, Bingqin Wang, Yadi Zhao, Xuequn Cheng, Xiaogang Li

Applied Sciences· Volume 15· Issue 16

Abstract

This study proposes a large language model, Corr-Lora-RAG, designed to address the complexity and uncertainty inherent in corrosion data. A dedicated corrosion knowledge database (CKD) was constructed, and dataset generation code was provided to enhance the model’s reproducibility and adaptability. Based on the Qwen2.5-7B model, the Corr-Lora model was developed by integrating prompt engineering and low-rank adaptation (LoRA) supervised fine-tuning (SFT) techniques, thereby improving the understanding and expression of domain-specific knowledge in the field of corrosion. Furthermore, the Corr-Lora-RAG model was built using retrieval-augmented generation (RAG) technology, enabling dynamic access to external knowledge. Experimental results demonstrate that the proposed model outperforms baseline models in terms of accuracy, completeness, and domain relevance, and exhibits knowledge generation capabilities comparable to those of large-scale language models under limited computational resources. This approach provides an intelligent solution for corrosion risk assessment, standards compliance analysis, and protective strategy formulation, and offers a valuable reference for the development of specialized language models in other engineering fields.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Topic Modeling · Natural Language Processing Techniques · Structural Integrity and Reliability Analysis

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Institute of Advanced Materials & Technology, University of Science and Technology Beijing, Beijing 100083, China

Metals and Chemistry Research Institute, China Academy of Railway Sciences Co., Ltd., Beijing 100081, China

National Materials Corrosion and Protection Data Center, Beijing 100083, China

Funding

National Natural Science Foundation of China · National Science and Technology Infrastructure Program of the Ministry of Science and Technology of China

References (27)

Show source-provided references
1. Corrosion of Electronic Materials and Devices10.1126/science.234.4774.340 ↗
2. Revie, R.W. (2008). Corrosion and Corrosion Control: An Introduction to Corrosion Science and Engineering, John Wiley & Sons.10.1002/9780470277270 ↗
3. Koch, G.H., Brongers, M.P., Thompson, N.G., Virmani, Y.P., and Payer, J.H. (2002). Corrosion Cost and Preventive Strategies in the United States.
4. High-Throughput Screening of Green Amino Acid and Surfactant Mixtures with High Corrosion Inhibition Efficiency: Experimental and Modelling Perspectives10.1016/j.corsci.2024.112460 ↗
5. Understanding the Adsorption of Imidazole Corrosion Inhibitor at the Copper/Water Interface by Ab Initio Molecular Dynamics10.1016/j.corsci.2024.112237 ↗
6. Wang, K., Li, C., Lu, J., Nan, C., Zhang, Q., and Zhang, H. (2022). Intelligent Evaluation of Marine Corrosion of Q420 Steel Based on Image Recognition Method. Coatings, 12.10.3390/coatings12070881 ↗
7. Development and Evaluation of a Retrieval-Augmented Large Language Model Framework for Ophthalmology10.1001/jamaophthalmol.2024.2513 ↗
8. RefAI: A GPT-Powered Retrieval-Augmented Generative Tool for Biomedical Literature Recommendation and Summarization10.1093/jamia/ocae129 ↗
9. Almanac—Retrieval-Augmented Language Models for Clinical Medicine10.1056/AIoa2300068 ↗
10. In-Context Retrieval-Augmented Language Models10.1162/tacl_a_00605 ↗
11. Improving the Domain Adaptation of Retrieval Augmented Generation (RAG) Models for Open Domain Question Answering10.1162/tacl_a_00530 ↗
12. Lewis, P., Perez, E., Piktus, A., Petroni, F., Karpukhin, V., Goyal, N., Küttler, H., Lewis, M., Yih, W., and Rocktäschel, T. (2021). Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks. arXiv.
13. Matsumoto, N., Moran, J., Choi, H., Hernandez, M.E., Venkatesan, M., Wang, P., and Moore, J.H. (2024). KRAGEN: A Knowledge Graph-Enhanced RAG Framework for Biomedical Problem Solving Using Large Language Models. Bioinformatics, 40.10.1093/bioinformatics/btae353 ↗
14. PDGPT: A Large Language Model for Acquiring Phase Diagram Information in Magnesium Alloys10.1002/mgea.77 ↗
15. He, C., Li, W., Jin, Z., Xu, C., Wang, B., and Lin, D. (2024). OpenDataLab: Empowering General Artificial Intelligence with Open Datasets. arXiv.
16. Lora for Dense Passage Retrieval of ConTextual Masked Auto-Encoding10.1007/s11760-024-03593-4 ↗
17. SurgeryLLM: A Retrieval-Augmented Generation Large Language Model Framework for Surgical Decision Support and Workflow Enhancement10.1038/s41746-024-01391-3 ↗
18. BioinspiredLLM: Conversational Large Language Model for the Mechanics of Biological and Bio-Inspired Materials10.1002/advs.202306724 ↗
19. MechGPT, a Language-Based Strategy for Mechanics and Materials Modeling That Connects Knowledge across Scales, Disciplines, and Modalities10.1115/1.4063843 ↗
20. Optimization of Hepatological Clinical Guidelines Interpretation by Large Language Models: A Retrieval Augmented Generation-Based Framework10.1038/s41746-024-01091-y ↗
21. Pre-Train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processing10.1145/3560815 ↗
22. Unleashing ChatGPT’s Power: A Case Study on Optimizing Information Retrieval in Flipped Classrooms via Prompt Engineering10.1109/TLT.2023.3324714 ↗
23. Abacha, A.B., Yim, W., Fu, Y., Sun, Z., Yetisgen, M., Xia, F., and Lin, T. (2025). MEDEC: A Benchmark for Medical Error Detection and Correction in Clinical Notes. arXiv.
24. Grattafiori, A., Dubey, A., Jauhri, A., Pandey, A., Kadian, A., Al-Dahle, A., Letman, A., Mathur, A., Schelten, A., and Vaughan, A. (2024). The Llama 3 Herd of Models. arXiv.
25. Yang, A., Yang, B., Hui, B., Zheng, B., Yu, B., Zhou, C., Li, C., Li, C., Liu, D., and Huang, F. (2024). Qwen2 Technical Report. arXiv.
26. Yang, A., Yang, B., Zhang, B., Hui, B., Zheng, B., Yu, B., Li, C., Liu, D., Huang, F., and Wei, H. (2025). Qwen2.5 Technical Report. arXiv.
27. Glm, T., Zeng, A., Xu, B., Wang, B., Zhang, C., Yin, D., Zhang, D., Rojas, D., Feng, G., and Zhao, H. (2024). ChatGLM: A Family of Large Language Models from GLM-130B to GLM-4 All Tools. arXiv.