Skip to main content
LLM Security Database
Skip to research details
Back to research findings

Merging Latent Malice

Published
Analyzed
Paper-reported evidence
Primary source linked
Read primary paper
Cite & share
Source BibTeX

Citation metadata is maintained by the primary source and may reflect a later revision.

Paper-evaluated models(3)

  • Tulu-2-7B
  • Llama 3.1 Tulu 3 8B DPO
  • OpenChat 3.5 0106
On this page

Description

A vulnerability in LLM parameter-space merging algorithms enables a latent supply-chain attack where adversaries embed pre-computed malicious weight perturbations into open-source models. Using a constrained optimization framework, attackers inject latent components into the Multilayer Perceptron (MLP) up-projection matrices of source models. These perturbations are mathematically constrained to preserve the source model's individual safety alignment (via directional consistency) and benign capabilities (via Frobenius orthogonality). However, when the compromised source models are combined using standard merging techniques, the latent components sum to reconstruct a target safety-critical transformation (∑ΔUi=n⋅ΔW\sum \Delta U_i = n \cdot \Delta W). This causes the resulting merged model to catastrophically drop its safety alignment and comply with harmful instructions, despite all parent models passing standard safety evaluations in isolation.

Examples

  1. An attacker poisons the MLP up-projection matrices of two fine-tuned LLMs (M1′M'_1 and M2′M'_2) and publishes them to a model registry.
  2. A downstream user downloads and evaluates M1′M'_1 and M2′M'_2 independently. Both models retain standard MMLU capabilities and successfully reject malicious prompts (e.g., from JailbreakBench or AdvBench).
  3. The user merges the models using standard dual-model fusion via Task Arithmetic (with a scaling factor λ≥0.6\lambda \ge 0.6) or TIES-Merging (Top-K = 10 to 50).
  4. The latent perturbations align during the parameter-averaging process. The resulting merged model (M1′+M2′M'_1 + M'_2) immediately begins complying with harmful instructions, completely bypassing the original safety alignment.

Impact

Enables highly stealthy supply-chain attacks that compromise downstream AI systems. Because the malicious components remain latent and benign within individual models, they easily bypass standard pre-deployment safety and capability benchmarks. Upon merging, the attack reliably degrades safety alignment, increasing harmful response rates from baseline levels (~1.9%) up to 85.4% without requiring specific input triggers.

Affected Systems

  • Systems and ML pipelines utilizing parameter-space model fusion/merging algorithms, specifically:
  • Task Arithmetic
  • DARE (Drop And Rescale)
  • TIES-Merging (Trim, Elect Sign & Merge)
  • KnOTS (Knowledge Orientation Through SVD)
  • Validated on Transformer-based architectures including Llama-2 (Tulu-2-7b), Llama-3 (Llama-3.1-Tulu-3-8B-DPO), and Mistral (OpenChat-3.5-0106).

Mitigation Steps

  • Note: Current defensive algorithms like Safety-Aware Merging (SAM) are ineffective against this vulnerability, as they converge to degenerate weighting solutions (e.g., x→1,1−x→0x \rightarrow 1, 1-x \rightarrow 0) when processing models that are individually safe.
  • Implement parameter-level integrity verification to detect coordinated weight perturbations or anomalies in MLP up-projection matrices prior to fusion.
  • Deploy anomaly detection mechanisms that specifically monitor weight-space shifts during the parameter fusion process.
  • Evaluate the merged model against rigorous safety benchmarks (e.g., AdvBench) post-fusion, rather than relying solely on the safety scores of the individual parent models.

Research context and provenance

Catalog identifier
LMVD-6ee2975c
Internal research identifier, not an official CVE identifier.
Evidence and verification
Paper-reported; independent reproduction is not documented.
Primary research source linked.
Severity
Not rated by this catalog.
Source and publication type
arXiv · Research preprint.
Peer-review status is not provided by this source.
Author and publication status
Author metadata is not stored; see the primary paper.
Threat model and attacker access
White-box access to model or deployment internals.
Related deployment categories
No related deployment category is classified.
Taxonomy labels only; paper-specific deployment prerequisites are not inferred.
Affected systems
Systems and ML pipelines utilizing parameter-space model fusion/merging algorithms, specifically: Task Arithmetic DARE (Drop And Rescale) TIES-Merging (Trim, Elect Sign & Merge) KnOTS (Knowledge Orientation Through…

Research Paper

When Safe Models Merge into Danger: Exploiting Latent Vulnerabilities in LLM Fusion

Primary source: arXiv. Findings are reported by the cited research and have not been independently verified.

View Paper

Evidence

This entry is based on a primary research source. Its findings are paper-reported; independent reproduction and verification are not claimed.

https://arxiv.org/abs/2604.00627