Skip to main content
LLM Security Database
Skip to research details
Back to research findings
LMVD-ID: c82e2a34
Paper published June 1, 2025
Entry analyzed December 9, 2025
Paper-reported evidence
Confidence: Source-linked

The LMVD-ID is an internal research identifier, not an official CVE identifier.

Semantic Prompt Distortion

The Adaptive Greedy Binary Search (AGBS) framework exposes a vulnerability in Large Language Models (LLMs) regarding their susceptibility to semantic-preserving adversarial attacks. The vulnerability is exploited…

BibTeX citation

Paper-evaluated models(10)

GPT-3.5 Turbo, GPT-4 Turbo, GPT-4o +7 more
  • GPT-3.5 Turbo
  • GPT-4 Turbo
  • GPT-4o
  • Llama 3.1 8B
  • Llama 3.1 70B
  • Llama 3.2 3B
  • Qwen 2.5 7B
  • Qwen 2.5 14B
  • Gemma 2 9B
  • Gemma 2 27B

Description

The Adaptive Greedy Binary Search (AGBS) framework exposes a vulnerability in Large Language Models (LLMs) regarding their susceptibility to semantic-preserving adversarial attacks. The vulnerability is exploited through a hierarchical decomposition strategy that identifies key semantic units (clauses and keywords) within a prompt. AGBS utilizes a dynamic threshold mechanism to adjust semantic similarity bounds in real-time during a beam search process, replacing tokens with candidates that maintain high semantic similarity (e.g., maintaining a BERTScore of $\approx 0.80$) while maximizing adversarial loss. This allows an attacker to generate adversarial inputs that are grammatically coherent and semantically indistinguishable from benign inputs to human observers, yet induce targeted misbehavior, incorrect reasoning, or erroneous outputs in the victim model. This method bypasses static optimization strategies and defense mechanisms that rely on detecting significant semantic drift.

Examples

Specific adversarial string examples are not listed in the text, but the attack implementation and generation code are available in the author's repository.

Impact

  • Integrity Violation: The attack successfully forces LLMs to generate incorrect numerical answers and textual hallucinations in Question Answering (QA) tasks, degrading model reliability.
  • Bypass of Safety/Optimization Layers: The adversarial samples preserve semantic meaning, allowing them to bypass defense mechanisms designed to flag traditional, high-entropy, or nonsensical jailbreaks.
  • Semantic Drift: Automated prompt engineering systems may inadvertently optimize user queries into these adversarial forms, leading to unintended misinterpretations and persistent errors in downstream applications.

Affected Systems

  • OpenAI GPT-4 Turbo, GPT-4o, and GPT-3.5 Turbo (Table II baseline).
  • Meta Llama 3.1 (8B, 70B) and Llama 3.2 3B.
  • Alibaba Qwen 2.5 (7B, 14B).
  • Google Gemma 2 (9B, 27B).

Mitigation Steps

  • Reassess the full input and conversation intent before responding or invoking tools, combine model-level alignment with independent input and output policy checks, and avoid relying on a single signature or refusal heuristic.
  • Add a targeted regression using inert data and actions, measure both safety and utility regressions, and monitor production for repeated or adaptive attempts.

Research context and confidence

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
Black-box model, service, or application access.
Related deployment categories
No related deployment category is classified.
Taxonomy labels only; paper-specific deployment prerequisites are not inferred.
Affected systems
OpenAI GPT-4 Turbo, GPT-4o, and GPT-3.5 Turbo (Table II baseline). Meta Llama 3.1 (8B, 70B) and Llama 3.2 3B. Alibaba Qwen 2.5 (7B, 14B). Google Gemma 2 (9B, 27B).

Research Paper

Semantic-Preserving Prompt Hijacking: A Black-Box Adversarial Attack on Auto-Prompt Optimization

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/2506.18756