Publications
Sort:
Issue
Attack-guided diffusion model for Chinese adversarial samples generation
Journal of Tsinghua University (Science and Technology) 2024, 64(12): 1997-2006
Published: 15 December 2024
Abstract PDF (1.7 MB) Collect
Downloads:25
Objective

The generation of adversarial samples in text represents a significant area of research in natural language processing. The process is employed to test the robustness of machine learning models and has gained widespread attention from scholars. Owing to the complex nature of Chinese semantics, generating Chinese adversarial samples remains a major challenge. Traditional methods for generating Chinese adversarial samples mainly involve word replacement, deletion/insertion, and word order adjustment. These methods often produce samples that are easily detectable and have low attack success rates, and thus, the methods struggle to balance attack effectiveness and semantic coherence. To address these limitations, this study introduces DiffuAdv, a novel method for generating Chinese adversarial samples. This approach enhances the generation process by simulating the data distribution during the adversarial attack phase. The gradient changes between adversarial and original samples are used as guiding conditions during the model's reverse diffusion phase in pre-training, resulting in the generation of more natural and effective adversarial samples.

Methods

DiffuAdv entails the introduction of diffusion models into the generation of adversarial samples to improve attack success rates while ensuring the naturalness of the generated text. This method utilizes a gradient-guided diffusion process, leveraging gradient information between original and adversarial samples as guiding conditions. It consists of two stages: forward diffusion and reverse diffusion. In the forward diffusion stage, noise is progressively added to the original data until a noise-dominated state is achieved. The reverse diffusion stage involves the reconstruction of samples, in which the gradient changes between adversarial and original samples are leveraged to maximize the adversarial objective. During the pre-training phase, data capture and feature learning occur under gradient guidance, with the aim of learning the data distribution of original samples and analyzing the deviations from adversarial samples. In the reverse diffusion generation phase, adversarial perturbations are constructed using gradients and integrated into the reverse diffusion process, ensuring that at each step of reverse diffusion, samples evolve toward greater adversarial effectiveness. To validate the effectiveness of the proposed method, extensive experiments are conducted across multiple datasets and various natural language processing tasks, and the performance of the method is compared with those of seven existing state-of-the-art methods.

Results

Compared with existing methods for generating Chinese adversarial samples, DiffuAdv demonstrates higher attack success rates across three tasks: text sentiment classification, causal relation extraction, and sentiment cause extraction. Ablation experiments confirm the effectiveness of using gradient changes between original and adversarial samples to guide the generation of adversarial samples and improve their quality. Perplexity (PPL) measurements indicate that the adversarial samples generated by DiffuAdv have an average PPL value of only 0.518, demonstrating that these samples are superior in rationality and readability compared with the samples generated by other methods.

Conclusions

DiffuAdv effectively generates high-quality adversarial samples that closely resemble real text in terms of fluency and naturalness. The adversarial samples produced by this method not only achieve high attack success rates but also exhibit strong robustness. The introduction of DiffuAdv enhances the research perspective on generating adversarial text samples and broadens the approaches for tasks such as text sentiment classification, causal relationship extraction, and emotion-cause pair extraction.

Issue
Sentiment representation calibration-based model for image-text sentiment analysis
Journal of Beijing University of Aeronautics and Astronautics 2026, 52(11): 3724-3734
Published: 19 November 2024
Abstract PDF (4.1 MB) Collect
Downloads:0

Exploring the association of multi-modal data for sentiment analysis is made more difficult by the growing trend of social media users expressing their opinions through both text and visuals. Existing research methods lack sufficient interaction between modalities and cross-modal interactions often introduce noise, which leads to sentiment representation bias of learned image and text representations. To address this issue, we introduce a sentiment representation calibration-based model for image-text sentiment analysis. Firstly, we encode the image and text through a feature extraction module to capture image and text features. In order to fully utilize the inter-modal complementary information, the cross-modal attention is then employed in the cross-modal interaction module to carry out bidirectional interaction in the "image-to-text" and "text-to-image" directions. Next, noise is filtered out from the interaction-enhanced features through a gated calibration module to correct the sentiment representation bias in the interaction-enhanced features. Finally, in the sentiment detection module, feature fusion is achieved by using multi-head attention to integrate the calibrated feature representations for sentiment detection. Experimental results on two public benchmark datasets demonstrate that the proposed model outperforms state-of-the-art image-text sentiment analysis methods, such as CLMLF and MVCN, thereby improving the accuracy of sentiment recognition.

Total 2