Automatic Toxicity Evaluation for Human-LLM Conversations in Flexible Manufacturing System With Duplex Fine-Tuned LLMs
- 25 July 2025
- journal article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Internet of Things Journal
- Vol. 12 (19) , 40894-40905
Abstract
Flexible manufacturing systems (FMS), empowered by the Industrial Internet of Things (IIoT), have become a cornerstone of Industry 6.0 by enabling dynamic production adaptation, real-time equipment monitoring, and intelligent scheduling. As these systems increasingly incorporate large language models (LLMs) to support functions such as knowledge querying, decision assistance, and predictive maintenance, ensuring the safety and reliability of human-LLM conversations has become a pressing concern. Specifically, LLMs may generate toxic, biased, or privacy-violating outputs when interacting with sensitive IIoT data and production logic, potentially compromising operational safety. To address this challenge, we propose AugLLMSen, an automated toxicity evaluation framework tailored to the IIoT-driven FMS context. AugLLMSen integrates a question automatic expansion mechanism (Q-Judge) and an output toxicity evaluation model (O-Judge) into a closed-loop pipeline, enabling large-scale assessment of LLM safety across diverse industrial scenarios. Experimental results on open- and closed-source LLMs demonstrate the effectiveness and accuracy of our approach in identifying toxic responses and guiding safe deployment of LLMs in flexible manufacturing environments.Keywords
Funding Information
- National Natural Science Foundation of China (62401075, 62394322, U22A20373)
- Beijing Natural Science Foundation (4244084)
- China Postdoctoral Science Foundation (2024M750259)
- Shenzhen Science and Technology Program (KJZD20230923115004008)
This publication has 13 references indexed in Scilit:
- LLMSentinel: An Automatic and Efficient Toxicity Evaluation Scheme for Chinese Human-AI Conversations with Large Language Models2025
- Generative AI Based Secure Wireless Sensing for ISAC NetworksIEEE Transactions on Information Forensics and Security, 2025
- SafetyPrompts: A Systematic Review of Open Datasets for Evaluating and Improving Large Language Model SafetyProceedings of the AAAI Conference on Artificial Intelligence, 2025
- Generative Semantic Communications With Foundation Models: Perception-Error Analysis and Semantic-Aware Power AllocationIEEE Journal on Selected Areas in Communications, 2025
- Semantic-Aware Power Allocation for Generative Semantic Communications with Foundation Models2024
- Bias and Fairness in Large Language Models: A SurveyComputational Linguistics, 2024
- A Perspectival Mirror of the ElephantCommunications of the ACM, 2024
- Marked Personas: Using Natural Language Prompts to Measure Stereotypes in Language Models2023
- From Pretraining Data to Language Models to Downstream Tasks: Tracking the Trails of Political Biases Leading to Unfair NLP Models2023
- ToxiGen: A Large-Scale Machine-Generated Dataset for Adversarial and Implicit Hate Speech Detection2022