Skip to content
Preprint

Evaluating and Improving the Robustness of Large Language Models to Input Sequence Variations

Oct 2026 · 0 citations
Computer Science

TL;DR

A generative robustness metric based on the Jensen-Shannon divergence between per-step output distributions under small input perturbations is proposed, R_stab(f), which attests tool calls with HMAC-protected packets at under 0.1 ms per call, and the Commit Boundary isolation pattern.

Abstract

Large language models (LLMs) in production systems face prompt injections, trojans (backdoors), and manipulation of automatic quality metrics. This thesis develops models, methods, and algorithms for evaluating and improving LLM robustness to adversarial input sequence variations. We propose R_stab(f), a generative robustness metric based on the Jensen-Shannon divergence between per-step output distributions under small input perturbations. For localized attacks we prove V(h)<= 1 - R_class(h), where R_class(h) is the probability that a decision operator h keeps its decision under small perturbations. For non-localized attacks we propose a calibrated empirical model. For LLM-as-a-Judge systems we develop ASA, an adaptive evolutionary black-box attack that reaches an attack success rate (ASR) of up to 73.8%, with transfer between open models up to 62.6%. On Trojan Detection Challenge 2023 data (Pythia-1.4B), surrogate triggers reach REASR ~0.99 while recall of the true triggers is ~0.17 against a baseline of ~0.14. On SaTML CTF 2024 we systematize four classes of bypasses of multi-layer defenses, which reduce the ASR from 90% to 15-25%. Committees of 5-7 heterogeneous models reduce the ASR for Gemma-3-4B by 47-55 percentage points, to 19.3% with 7 models. For agentic systems based on the Model Context Protocol (MCP), we propose AttestMCP, which attests tool calls with HMAC-protected packets at under 0.1 ms per call, and the Commit Boundary isolation pattern. On the MCPBench benchmark of 847 scenarios they reduce the average ASR from 53.7% to 12.4%. The methods are implemented in the JudgeGuard and TrojanArmor software suites and the MCPSec module.

View source

Similar papers

Conference Sep 2026

Evaluating Robustness of AI-Generated Text Detectors Under Simulated Iterative Obfuscation

AI text generators are usually evaluated with their output being fed directly into detectors, while in actuality, users tend to paraphrase or back-translate texts before submitting them to be graded. In the following study, four detectors are tested at each of five increasing levels of attacks based on HC3, RAID, and M...

Batyr Sharimbayev, S. Kadyrov, Adil Akhmetov et al. · 0 citations

Enhancing Adversarial Robustness in Natural Language Processing (NLP) Tasks Using Language Models

The adversarial robustness of natural language processing (NLP) models is critical for ensuring their reliability and trustworthiness across real-world applications. This dissertation investigates methods to enhance the robustness of NLP systems against adversarial attacks in diverse contexts, including general NLP tas...

Md Athikul Islam · 0 citations
Conference Sep 2026

Analysis of the Recall Crisis and Semantic Robustness of Llm Detectors Under Hierarchical Deep Adversarial Rewriting Attacks

Current LLM detectors remain vulnerable to adversarial attacks because they focus on superficial statistics of the text. In this study, the robustness of state-of-the-art (SOTA) models was tested on a hierarchical attack dataset of 24,000 examples generated using T5, BART, and PEGASUS, based on the PAN 2025 dataset. An...

F. Özgür, Taner Tuncer, ´brahim Rıza Hallaç et al. · 0 citations
#artificial intelligence Preprint Oct 2026

Exploring Jailbreak Vulnerability Across Depth-Based Dynamic Inference in Large Language Models

This paper makes the following key observations: Shallow exits are consistently more robust to jailbreak attacks than deeper ones; Exit depth affects how easily the adversarial suffix can be optimized, with deeper exits reaching lower attack loss; and adversarial suffixes affect utility uniformly across exit depths.

Lass Najmuldeen, Seyedhamidreza Mousavi · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.