Robustness Over Time: Understanding Adversarial Examples’ Effectiveness on Longitudinal Versions of Large Language Models

Yugeng Liu, Tianshuo Cong, Zhengyu Zhao, Michael Backes, Yun Shen, Yang Zhang

TL;DR

This paper investigates how the adversarial robustness of Large Language Models (LLMs) changes over time as they are updated. Surprisingly, the study found that LLM updates don't consistently improve robustness against attacks like misclassification, jailbreaking, and hallucination, and sometimes even degrade it. This highlights the need for continuous, version-specific robustness evaluations rather than assuming updates inherently make models safer.

What Problem Does This Paper Address?

Large Language Models (LLMs) are constantly being updated to improve their performance and user experience. However, most security and safety research on LLMs focuses on single, static versions. This leaves a critical gap: how do these continuous updates affect the LLMs' vulnerability to adversarial attacks? The authors aim to address this by conducting a longitudinal study to understand the effectiveness of adversarial examples across different versions of popular LLM families (GPT, Llama, and Qwen) over time. This is crucial because users and developers need to know if newer versions are truly more secure or if they might introduce new vulnerabilities.

Methods

The researchers employed a comprehensive evaluation framework to assess LLM robustness against three types of adversarial attacks: misclassification, jailbreak, and hallucination. They used an in-context learning (ICL) approach, where adversarial examples were injected into queries.

  1. Adversarial Example Generation: Surrogate language models were used to generate adversarial examples.
  2. Targeted LLM Evaluation: These adversarial examples were then tested against various longitudinal versions of the target LLMs (GPT, Llama, Qwen).
  3. Attack Taxonomy:
    • Misclassification: Perturbing inputs to elicit incorrect predictions.
  4. Jailbreak: Bypassing safety mechanisms to generate disallowed content.
  5. Hallucination: Generating factually incorrect or nonsensical outputs.
  6. Evaluation Metrics:
    • Clean Test Score (CTS): Performance on clean queries.
  7. Robust Test Score (RTS): Performance on adversarial queries.
  8. Performance Drop Rate (PDR): Quantifies the performance decline under attacks.

The study distinguished between "upgrades" (significant changes) and "updates" (minor, incremental improvements) to analyze their impact.

Datasets

The paper utilized several datasets for evaluation:

  • Misclassification:
    • Description Dataset: Curated from PromptBench [80], containing clean and adversarial descriptions.
  • Question Dataset: GLUE [55] and AdvGLUE [58] were used, including both benign and adversarial question variants. Specific GLUE tasks included SST-2, QQP, MNLI, QNLI, and RTE.
  • Jailbreak: Samples from the Forbidden Question (FQ) dataset [12] were used with three mainstream jailbreak algorithms (GPTfuzz, PAIR, TAP).
  • Hallucination: Datasets derived from HotpotQA [69] (QA), OpenDialKG [36] (dialogue), and CNN/Daily Mail [46] (summarization) were used.

Key Insights and Ideas

  • Updates Don't Guarantee Robustness: The most striking finding is that LLM updates do not consistently improve adversarial robustness. In some cases, newer versions performed worse than older ones on specific attack types.
  • Trade-offs Exist: For instance, GPT-3.5's improved jailbreak resistance in a later version came at the cost of degraded performance in misclassification and hallucination tasks, suggesting a complex trade-off between different safety and performance aspects.
  • Model Size Isn't Everything: Increasing model size, particularly for Llama and Qwen families, did not uniformly lead to better robustness across all attack types.
  • Minor Updates Can Be Problematic: Small, incremental updates, especially those without explicit robustness improvements, can sometimes exacerbate existing issues or introduce new vulnerabilities.
  • Longitudinal Evaluation is Crucial: The study emphasizes the necessity of evaluating LLMs not just as static entities but as evolving systems, requiring continuous monitoring of their robustness over time.

Key Results

  • GPT-3.5: Version v1106 showed the worst performance in misclassification and hallucination, despite better jailbreak resilience. Version v0125 underperformed v0613 on several datasets.
  • GPT-4: The latest version v0409 performed worst on many datasets for misclassification. v0613 generally showed better robustness.
  • GPT-4o: While showing incremental improvements, the study noted that adversarial examples remained effective, and upgrades didn't always lead to better defense capabilities.
  • Llama & Qwen: Upgrades did not consistently improve robustness. For Llama, larger models didn't guarantee better security. Qwen models were found to be more vulnerable to adversarial questions.
  • Jailbreak: In some cases, newer versions showed improved jailbreak resistance (e.g., GPT-3.5 v1106), but this wasn't a universal trend across all models or attacks.
  • Hallucination: Results varied significantly, with no clear pattern of consistent improvement across versions for all tasks.

Limitations and Future Work

  • Limited Access to Proprietary Data: The authors couldn't access proprietary training processes and datasets, which might influence results. They used existing datasets for adversarial examples due to the cost of generating them.
  • ICL Complexity: The sensitivity of ICL to minor wording changes complicates query design and evaluation.
  • Output Evaluation: Evaluating LLM outputs objectively remains a challenge, as no single method is optimal for all tasks.
  • Potential Data Overlap: There's a small risk of evaluation datasets overlapping with training data, though the authors believe this is unlikely.

Future Work: The authors suggest constructing or selecting non-overlapping datasets for future LLM evaluations. They also call for more systematic and lightweight robustness evaluations integrated into LLM update lifecycles and for exploring adversarial training or alignment procedures to decouple generative quality from robustness.

Summary updated

BibTeX
@article{liu2026robustness,
  author = {Yugeng Liu and Tianshuo Cong and Zhengyu Zhao and Michael Backes and Yun Shen and Yang Zhang},
  title = {{Robustness Over Time: Understanding Adversarial Examples’ Effectiveness on Longitudinal Versions of Large Language Models}},
  journal = {IEEE Transactions on Information Forensics and Security},
  year = {2026},
  url = {https://openreview.net/forum?id=NsC2VhX06z},
}
Figure