Generating Attacks for LLMs with GFlowNets

Berkay Ozcam, Irem Onen, Mehmet Fatih Amasyali, Emin Islam Tatli
8/10/2026
cs.AIcs.CR

No confident code implementation found for this paper.

Abstract

The rapid advancement of Large Language Models (LLMs) has facilitated their ubiquitous integration into various domains, leading to widespread adoption. However, this escalating trend has introduced significant security vulnerabilities, necessitating the identification and mitigation of flaws arising from malicious exploitation.

Show full abstract

Red teaming assessments, conducted to evaluate model robustness through diverse adversarial inputs, are essential for exposing security risks and implementing countermeasures. Currently, red teaming is performed either manually by experts or automatically using predefined attack datasets. Nevertheless, manual testing remains time-consuming, while existing automated methods suffer from limited creativity due to their inherent dependency on fixed datasets. In this study, we propose an automated, human-independent, and adaptive approach leveraging GFlowNets to identify LLM vulnerabilities by utilizing one large language model to test another. Within this framework, an attacker model is trained against a specified victim model to perform automated red teaming and provide a quantitative robustness score. This research aims to generate more effective adversarial attacks in English compared to existing benchmarks and, as a novel contribution to the literature, introduces a model capable of generating attack inputs in the Turkish language.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{ozcam2026generating,
  title  = {Generating Attacks for LLMs with GFlowNets},
  author = {Berkay Ozcam and Irem Onen and Mehmet Fatih Amasyali and Emin Islam Tatli},
  year   = {2026},
  eprint = {2608.10171},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2608.10171v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2608.10171.svg)](https://codeofpaper.com/paper/2608.10171)

Discussion