TWIST: Text-encoder Weight-editing for Inserting Secret Trojans in Text-to-Image Models

Text-to-image (T2I) models excel at generating high-quality images from text via powerful text encoders, but training these encoders demands substantial computational resources.Consequently, many users seek pre-trained text encoders from model plugin-sharing platforms like Civitai and Hugging Face, which introduces an underexplored threat: the potential for adversaries to embed Trojans within these plugins.Existing Trojan attacks often require extensive training data and suffer from poor generalization across different triggers, limiting their effectiveness and scalability.To the best of our knowledge, this paper introduces the first Text-encoder Weight-editing method for Inserting Secret Trojans (TWIST).By identifying the bottleneck MLP layer-the critical point where minimal edits can dominantly control cross-modal alignment-TWIST achieves training-free and data-free Trojan insertion, which makes it highly efficient and practical.The experimental results across various triggers demonstrate that TWIST attains an average attack success rate of 91%, a 78% improvement over the state-of-the-art (SOTA) method proposed in 2024 and highlights the excellent generalization capability.Moreover, TWIST reduces modified parameters by 8-fold and cuts injection time to 25 seconds.Our findings underscore the security risks associated with text encoders in real-world applications and emphasize the need for more robust defense mechanisms.

Authors

Publication Details

Published
2025-01-01
DOI
https://doi.org/10.18653/v1/2025.acl-long.541
Primary Topic
Advanced Steganography and Watermarking Techniques
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

TWIST: Text-encoder Weight-editing for Inserting Secret Trojans in Text-to-Image Models

Shouling Ji, Qingming Li, Jiahao Chen, Zhe Liu et al.
Advanced Steganography and Watermarking Techniques
article

TWIST: Text-encoder Weight-editing for Inserting Secret Trojans in Text-to-Image Models

Shouling Ji, Qingming Li, Jiahao Chen, Zhe Liu, Jinbao Li, Xiuwen Li, Tong Zhang
article en

Abstract

Text-to-image (T2I) models excel at generating high-quality images from text via powerful text encoders, but training these encoders demands substantial computational resources.Consequently, many users seek pre-trained text encoders from model plugin-sharing platforms like Civitai and Hugging Face, which introduces an underexplored threat: the potential for adversaries to embed Trojans within these plugins.Existing Trojan attacks often require extensive training data and suffer from poor generalization across different triggers, limiting their effectiveness and scalability.To the best of our knowledge, this paper introduces the first Text-encoder Weight-editing method for Inserting Secret Trojans (TWIST).By identifying the bottleneck MLP layer-the critical point where minimal edits can dominantly control cross-modal alignment-TWIST achieves training-free and data-free Trojan insertion, which makes it highly efficient and practical.The experimental results across various triggers demonstrate that TWIST attains an average attack success rate of 91%, a 78% improvement over the state-of-the-art (SOTA) method proposed in 2024 and highlights the excellent generalization capability.Moreover, TWIST reduces modified parameters by 8-fold and cuts injection time to 25 seconds.Our findings underscore the security risks associated with text encoders in real-world applications and emphasize the need for more robust defense mechanisms.

National Natural Science Foundation of China, National Key Research and Development Program of China, Natural Science Foundation of Zhejiang Province
Openalex Percentile: Top 82%
Advanced Steganography and Watermarking Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

TWIST: Text-encoder Weight-editing for Inserting Secret Trojans in Text-to-Image Models — Shouling Ji, Qingming Li, et al. · (2025) | TGRS Research Map | TGRS