Adversarial Robustness in Text Classification through Semantic Calibration with Large Language Models
Authors:
- 30 January 2026
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 1371-1375
Abstract
This paper addresses the problem of text classification models being vulnerable and lacking robustness under adversarial perturbations by proposing a robust text classification method based on large language model calibration. The method builds on a pretrained language model and constructs a multi-stage framework for semantic representation and confidence regulation. It achieves stable optimization of classification results through semantic embedding extraction, calibration adjustment, and consistency constraints. First, the model uses a pretrained encoder to generate context-aware semantic features and applies an attention aggregation mechanism to obtain global semantic representations. Second, a temperature calibration mechanism is introduced to smooth the output probability distribution, reducing the model's sensitivity to local perturbations. Third, adversarial consistency constraints are applied to maintain feature alignment between original and perturbed samples in semantic space, ensuring dynamic preservation of semantic robustness. The method adopts a joint loss function to balance three optimization objectives: classification accuracy, robustness, and confidence. To verify its effectiveness, sensitivity experiments on hyperparameters, environments, and data distributions are conducted. The results show that the model maintains high performance and stability under conditions such as word substitution, noise injection, and class imbalance, significantly outperforming several mainstream baseline models. This study achieves the integration of semantic-level robustness optimization and calibration learning, providing a new approach for building highly reliable text classification systems.Keywords
All Related Versions
This publication has 16 references indexed in Scilit:
- Intelligent Recommendation Systems Using Multi-Scale LoRA Fine-Tuning and Large Language Models2025
- Structure-Aware Decoding Mechanisms for Complex Entity Extraction with Large-Scale Language Models2025
- Contextual Trust Evaluation for Robust Coordination in Large Language Model Multi-Agent Systems2025
- LLM-Centric RAG with Multi-Granular Indexing and Confidence Constraints2025
- Federated Fine-Tuning of Large Language Models with Privacy Preservation and Cross-Domain Semantic Alignment2025
- Joint Modeling of Intelligent Retrieval-Augmented Generation in LLM-Based Knowledge Fusion2025
- ALBERT-BiLSTM cross-attention network with progressive knowledge distillation for multi-domain SMS spam classificationResults in Engineering, 2025
- Improved Text Classification via Contrastive Adversarial TrainingProceedings of the AAAI Conference on Artificial Intelligence, 2022
- Textual Adversarial Training of Machine Learning Model for Resistance to Adversarial ExamplesSecurity and Communication Networks, 2022
- An Overview of Uncertainty Calibration for Text Classification and the Role of Distillation2021