Manuscript Offprint

arXiv:2608.27512

Quantization-Triggered Backdoors in Language Models: Cross-Quantizer Transferability and the Validation--Deployment Gap

Jacopo Dardini, Claudio Stanzione, Giordano Colò, Giuseppe Fenza

Jacopo Dardini¹, Claudio Stanzione², Giordano Colò³, and Giuseppe Fenza⁴

¹ Department of Engineering, University of Bologna, Bologna, Italy jacopo.dardini@studio.unibo.it ² Luiss Guido Carli University, Rome, Italy cstanzione@luiss.it ³ Live Tech, Rome, Italy Department of Artificial Intelligence, Rome, Italy g.colo@ilivetech.it ⁴ Department of Management & Innovation Systems, University of Salerno, Salerno, Italy gfenza@unisa.it

Abstract. Post-training quantization is often treated as a semantically neutral optimization for edge deployment of Large Language Models. When a full-precision source checkpoint is evaluated and quantization is applied downstream without equivalent re-evaluation, this workflow creates a structural validation-deployment gap: because quantization is a many-to-one mapping over parameter space, source-precision certification does not guarantee behavioral equivalence in the deployed configuration. We formalize this gap through Quantization Behavioral Equivalence Classes (QBECs) and prove that QBEC membership does not imply behavioral equivalence, providing a theoretical basis for quantization-triggered backdoor attacks. Building on a three-stage adversarial fine-tuning framework, we embed latent malicious payloads into models that satisfy the source-precision checks used in our evaluation, yet activate targeted adversarial behavior upon INT8 or 4-bit compression. We evaluate this threat in two operationally motivated scenarios, tactical machine translation and political content analysis, extending prior work from decoder-only causal LMs to multilingual encoder-decoder seq2seq models. Results show that backdoored translation models move from zero measured friend-foe corruption at repaired FP16 to up to 85.02% inversion after quantization, and that a paired stance classifier measures an ideological shift of up to Δ\DeltaBias = 0.33 upon compression. A cross-quantizer transferability analysis further shows that attack persistence varies across quantization schemes and model architectures, rather than being determined by nominal bit-width alone. These findings demonstrate that source-precision auditing alone does not rule out quantization-triggered behavior and that the final deployed configuration must be included in behavioral certification for trustworthy edge AI.

1 Introduction

A model validated as safe can be deployed as compromised. This paper demonstrates how post-training quantization, routinely applied to Large Language Models (LLMs) for resource-constrained edge deployment, can serve as a reliable trigger for latent adversarial behavior, enabling attacks that remain dormant under the targeted source-precision checks and activate only upon compression.

LLMs are increasingly integrated into defence-critical workflows, from tactical machine translation to intelligence analysis and interoperability among allied forces [1–3]. In Denied, Degraded, Intermittent, and Limited (DDIL) operational environments, cloud connectivity cannot be assumed; post-training quantization to INT8 or 4-bit representations can therefore make deployment on edge hardware more practical. A validation-deployment gap arises when a source checkpoint is evaluated at full precision (FP16/FP32), quantized post hoc, and not re-evaluated under equivalent security criteria. Our threat model studies this conditional pipeline failure; it does not assume that all military assurance processes follow it.

Treating this deployment transformation as semantically neutral is structurally flawed. Quantization is a many-to-one mapping: a large equivalence class of full-precision parameter vectors collapses to the same compressed representation. An adversary who understands this structure can engineer a model whose full-precision behavior is benign under the source-precision checks considered here, while its quantized behavior is malicious. We term this the validation-deployment gap and formalize it through Quantization Behavioral Equivalence Classes (QBECs). Proposition 1 (proved constructively in Appendix) shows that quantization equivalence does not, in general, imply behavioral equivalence. We use QBECs as a security abstraction for reasoning about why source-precision auditing can fail to certify deployed behavior.

Egashira et al. [6] exposed quantization-triggered backdoors as a viable attack primitive. Building on that result, this paper characterizes the deployment-security vulnerability that makes such attacks possible and hard to detect in practice. Our contributions are:

  • Validation-deployment integrity gap. We identify post-training quantization as a security-relevant deployment transformation and show that source-precision validation alone is insufficient to certify deployed behavior.

  • QBEC as a security abstraction. We formalize Quantization Behavioral Equivalence Classes (QBECs) as a reasoning tool for deployment mismatch and show that quantization-equivalent full-precision models need not remain behaviorally equivalent (Proposition 1, Appendix).

  • Cross-architecture evidence. Previous work studied backdoors triggered by quantization only in decoder-only causal LMs. We extend the evaluation to multilingual encoder-decoder seq2seq models (NLLB-200-1.3B and M2M100-1.2B), showing that the vulnerability is not confined to one model family.

  • Deployment-relevant persistence analysis. We study cross-quantizer persistence and show that attack survival depends on quantizer geometry and model family rather than nominal bit-width alone.

  • Defender-relevant repair analysis. We show that jointly excluding shared embeddings and the output head during Stage-3 repair increases NLLB's cross-quantizer persistence while leaving measured BLEU unchanged. This architecture-dependent result has asymmetric implications for attackers and defenders, and highlights the need to validate integrity in the final deployment configuration rather than only at source precision.

We evaluate these contributions in two operationally motivated scenarios, tactical friend-foe identification via machine translation and political content analysis, contextualized against representative edge hardware profiles where post-training quantization is operationally relevant. Results show that the evaluated source-precision checks do not reveal the targeted behavior, whereas compressed models achieve up to 85.02% friend-foe identification inversion and a measured ideological shift (Δ\DeltaBias up to 0.33).

References (23)