REVIEW 4 major objections 5 minor 22 references
Generating Attacks for LLMs with GFlowNets
T0 review · 4 major / 5 minor · reviewed 2026-08-14 · deepseek-v4-flash
Pith's one-line read A small attacker model trained with GFlowNets automatically generates diverse adversarial prompts that make LLMs produce toxic content, in English and Turkish.
desk verdict A clean, honest extension of Lee et al.'s GFlowNet red-teaming method to a new dataset and to Turkish, but the evaluation is undercut by using the same toxicity classifier as both the training reward and the success metric. read the letter →
The pith
A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.
The reading
What carries the argument
The central object is a GFlowNet, a generative model that samples compositional objects in proportion to a reward rather than greedily maximizing it; that diversity-seeking property is what the paper uses to avoid the single-direction collapse typical of reinforcement learning. It is embedded in a three-model loop: attacker generates a prompt, victim responds, evaluator scores the response, and the score is the reward. Maximum likelihood estimation then acts as a smoothing step that makes the attacker's probability mass converge on high-reward samples. The measured quantity is the attack success rate, defined as the percentage of generated prompts whose mean toxicity score across five victim responses exceeds 0.5.
What would settle it
Present a fixed set of the generated attacks to an independent toxicity classifier or to human annotators and count how many victim responses are judged harmful; if the proportion falls well below the reported success rates, the central claim is falsified.
Extended reading notes
Core claim
The paper claims that a comparatively small attacker model can be turned into an automated red-team: after supervised fine-tuning on a curated attack dataset, a GFlowNet reinforcement loop rewards prompts that elicit toxic responses from a victim model, and an MLE smoothing step stabilizes the learning. The reported outcome is that this pipeline raises success from 0.08 (SFT only) to 0.79 (SFT plus GFN plus MLE) and mean toxicity from 0.14 to 0.71 in the tested configuration, with the expanded, deduplicated dataset improving both English and Turkish. The paper further claims that the resulting English attacker keeps most of its success rate when moved from Gemma3-4b to Gemma3-12b, while the Turkish attacker's success drops significantly, and that the choice of evaluator model shifts the balance between attack success and diversity. In the authors' framing, this makes the method a human-independent way to produce a quantitative robustness score for any given victim model.
Load-bearing premise
The load-bearing premise is that the guard model's toxicity score is a valid measure of a successful attack; if that classifier is inaccurate or gameable, the reported success rates do not reflect real model vulnerabilities.
Editorial extensions
If this is right
- If the reported numbers hold, the method offers an automated robustness score: run the trained attacker against a victim and report the percentage of prompts whose responses exceed the toxicity threshold.
- The GFN plus MLE combination is load-bearing: without it, the same SFT model succeeds only 8 percent of the time; with it, 79 percent.
- Deduplicated and expanded training data improves attacks in both languages, suggesting that prompt diversity in the SFT stage directly improves later attack coverage.
- English attacks transfer to a larger model of the same family, while Turkish attacks do not, tying transferability to the diversity of the generated attack set.
- Evaluator choice is not neutral: switching the guard model changes the success-diversity trade-off and reverses direction between languages, so reported scores are evaluator-dependent.
Reading between the lines
- A natural extension not pursued in the paper is to use the same reward loop for defense: attacks that succeed against a victim could be fed back as safety-training examples or guard-model hardening data.
- Since success is defined by guard-model scores, the paper's numbers should be read as alignment with those classifiers; human-annotation studies could produce substantially different absolute rates.
- The transfer experiment only moves within the same model family; testing against an unrelated victim would separate genuinely general attack strategies from family-specific quirks.
Editorial analysis
A structured set of objections, weighed in public.
Referee Report
Summary. The paper proposes an automated red-teaming framework in which a small attacker LLM is first supervised-fine-tuned on attack prompts and then trained with a GFlowNet objective plus an MLE smoothing step to generate prompts against a victim LLM. During training, the victim's response is scored by a guard model (Qwen3Guard-8b or LlamaGuard3-8b), and that score is used as the reward signal. In evaluation, the same type of guard-model score, thresholded at 0.5, defines attack success. The experiments vary the dataset version, the evaluator model, and transfer from Gemma3-4b to Gemma3-12b, for both English and Turkish. The paper reports high attack success rates after adding the GFN and MLE steps and claims that the method is more effective than existing benchmarks, with the Turkish-language attacker presented as a novel contribution.
Significance. If the reported results are valid, the paper demonstrates a practical, automated method for probing LLM safety that can operate in Turkish, which is a useful and relatively underexplored direction. The motivation for using GFlowNets to encourage diverse attacks is sensible, and the high-level architecture (attacker, victim, evaluator) is clearly stated. The paper also provides sample generated attacks, which gives some qualitative grounding. However, the evaluation is weakened by three load-bearing problems: the success metric and the training reward come from the same guard model, so the reported success rates may reflect optimization of that guard rather than genuine victim vulnerability; no statistical rigor (seeds, error bars, tests) supports the key quantitative claims; and no comparison against any existing red-teaming benchmark is reported, despite the abstract and related-work sections explicitly promising such a comparison. These issues must be addressed before the paper's central claims can be accepted.
major comments (4)
- [Section IV.1 and Section III-C] The success metric and the training reward use the same type of toxicity classifier. In Section III-C the attacker is rewarded with the evaluator model's toxicity score of the victim's response, and in Section IV.1 the same classifier output, thresholded at 0.5, defines whether an attack is successful. The attacker is therefore trained to maximize exactly the scalar that later defines success, which is a classic reward-hacking setup: reported success rates may reflect the attacker exploiting the guard model's blind spots rather than eliciting genuinely harmful content. The paper's own limitation statement in Section V — "the success rates of the evaluator models used directly affect the overall success rate of the applied method" — concedes this dependency but does not quantify or mitigate it. This is a load-bearing issue for the headline claim of "quite high attack success rates." An independent evaluation (e.g., a held-out guard model, human annotation, or manual inspection of a sample) is needed.
- [Section IV-A, Table I] Table I is the primary quantitative evidence for the paper's central methodological claim that the GFN and MLE steps play a "significant role": it reports SFT-only success rate 0.08 versus SFT+GFN+MLE 0.79. However, no number of seeds, confidence intervals, or significance tests are reported, and the text does not state whether the reported values are from a single run or a selected best run. With a single run, the observed gap could be due to training stochasticity or checkpoint selection. The same issue applies to Figures 2-4, which report success rates and similarity scores without any uncertainty quantification. The authors should provide multi-seed results and, at minimum, report means and ranges or standard deviations.
- [Abstract and Section II versus Section IV] The abstract promises that the method "generate[s] more effective adversarial attacks in English compared to existing benchmarks," and Section II frames the contribution as building on and improving Lee et al. [10]. Yet Section IV contains no comparison against any existing red-teaming benchmark or baseline method: the experiments only compare internal variants (expanded vs. original dataset, QwenGuard vs. LlamaGuard as evaluator, and transfer to a larger same-family victim). Without reproducing at least one prior method, such as Lee et al. [10] or Rainbow Teaming [7], under identical conditions and reporting its success rate and diversity, the comparative claim is unsupported. This is a major omission relative to the paper's stated contribution.
- [Section IV-C] The transferability experiment does not test "a different victim model" as the research question in Section IV states. It only transfers an attacker trained against Gemma3-4b to Gemma3-12b, i.e., a larger parameter version of the same model family. While this is a meaningful scale-transfer test, it does not support the more general claim in the introduction that the tool can attack "a variety of victim models." A cross-family transfer experiment (e.g., to a Llama or GPT victim) would be needed to substantiate that broader claim.
minor comments (5)
- [Section IV and Section V] Section IV states that answers were sought through "11 separate experiments," while Section V says "12 separate experiments were conducted." Please reconcile the count.
- [Figures and tables] The captions "¸ Sekil 1" and "Tablo I" are in Turkish; for an English-language venue these should be translated to "Figure" and "Table." Also, the main text refers to Figures 2-4 for results, but the figures themselves are not described numerically in the text, making it hard for a reader to extract exact values.
- [Section III-A] The dataset expansion pipeline uses a cosine similarity cutoff to eliminate similar inputs, but the cutoff value is never reported. Without this value, the construction of the "expanded" dataset is not reproducible.
- [Section III-C and III-D] The GFlowNet and MLE training details (learning rates, number of training steps, reward normalization, whether the victim and evaluator are frozen, and how successful samples are selected for MLE) are omitted. The method description is too high-level to allow replication.
- [Section IV, metric 3] The Similarity Score is based on pairwise cosine similarities of generated inputs, but the embedding model used to project inputs into the vector space is not specified. This should be stated for reproducibility.
Circularity Check
Reported attack success is defined by the same toxicity classifier that supplies the training reward, so the headline rates are partly constructed by the evaluation protocol.
-
self definitional
[Section III-C (reward loop) and Section IV.1 (Success Rate metric); experiments in Sections IV.A and IV.B]
"In this loop, the attacker generates an input, the victim model responds, the evaluator model audits the response, and if the victim model responded to the attack, the attacker model receives a reward that reinforces that strategy. ... The toxicity scores of these five different responses obtained from the target model were computed using a classifier model, and their arithmetic mean was taken. If an input’s score exceeded the threshold value of 0.5, that attack was labeled 'successful.' ..."
The reward that trains the attacker is produced by the evaluator model checking the victim’s response, and the experiments use the same classifier models (Qwen3Guard-8b or LlamaGuard3-8b) as both the evaluator in the reward loop and the classifier in the success metric. Success Rate is then defined as the fraction of attack inputs whose victim responses receive mean toxicity score above 0.5 from that same classifier. The attacker was trained to maximize exactly this scalar, so the reported success rate is the thresholded version of the training objective, not an independent measurement of victim vulnerability. The Section V limitation concedes the dependency. If the classifier is gameable, the numbers measure classifier-specific optimization rather than general LLM safety.
full rationale
No load-bearing self-citation or imported uniqueness argument was found; the relationship to Lee et al. [10] is ordinary method inheritance. The one significant circularity is the identity between the training reward (classifier toxicity of the victim response) and the evaluation success metric (same classifier toxicity above 0.5). Because the experiments use this closed loop without an independent classifier, human evaluation, or held-out evaluator, the central empirical claims in Section V reduce in part to how well the attacker learned to trigger the chosen guard model. This is a partial, protocol-level circularity rather than a formal derivation collapse, and the paper itself acknowledges the direct dependence of the success rate on the evaluator models. A score of 6 reflects that the central reported quantity is constructed by the evaluation protocol while the method itself remains an independently trainable system.
Assumptions & free parameters
free parameters (2)
- success threshold for toxicity score =
0.5
- cosine similarity cutoff for dataset deduplication
assumptions (4)
- domain assumption The toxicity classifier (Qwen3Guard or LlamaGuard) is a valid measure of whether an attack is successful.
- domain assumption The GFlowNet training loop from Lee et al. [10] works when transferred to new datasets and languages.
- domain assumption Machine translation of the English attack dataset preserves attack semantics in Turkish.
- domain assumption Five sampled victim responses are enough to estimate the success of an attack.
Cite this review
Pith. "Pith review of Generating Attacks for LLMs with GFlowNets." pith.science (2026). https://pith.science/paper/SAQVRP3C
@misc{pith2026260810171,
author = {Pith},
title = {Pith review of: Generating Attacks for LLMs with GFlowNets},
year = {2026},
howpublished = {\url{https://pith.science/paper/SAQVRP3C}},
note = {Machine review of arXiv:2608.10171}
}
read the original 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. 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.
Reference graph
Works this paper leans on
-
[10]
Learning diverse attacks on large language models for robust red-teaming and safety tuning,
S. Lee, M. Kim, L. Cherif, D. Dobre, J. Lee, S. J. Hwang, K. Kawaguchi, G. Gidel, Y . Bengio, N. Malkinet al., “Learning diverse attacks on large language models for robust red-teaming and safety tuning,” inProceedings of the 13th International Conference on Learning Representations (ICLR), 2025
work page 2025
-
[7]
garak: A framework for security probing large language models,
L. Derczynski, E. Galinkin, J. Martin, S. Majumdar, and N. Inie, “garak: A framework for security probing large language models,”arXiv preprint arXiv:2406.11036, 2024
arXiv 2024
-
[1]
Our experiments are based on evaluating the results obtained by varying these four main components. ¸ Sekil 1: Applied Method Figure 1 presents the technical details of each stage. Following these stages, the resulting attacker model is used to generate attack inputs, and the success rate of the generated attacks against the victim model, along with the q...
-
[2]
Success Rate:Each generated attack input was presented to the target model five separate times. The toxicity scores of these five different responses obtained from the target model were computed using a classifier model, and their arithmetic mean was taken. If an input’s score exceeded the threshold value of 0.5, that attack was labeled "successful." The ...
-
[3]
Toxicity Score:This is the average, across the entire dataset, of the mean toxicity score obtained from all attack inputs. It numerically indicates how closely the attacker model approaches the target model’s vulnerability threshold
-
[4]
The average of the pairwise cosine similarities between these input vectors was then computed
Similarity Score:All generated attack inputs were pro- jected into a high-dimensional vector space. The average of the pairwise cosine similarities between these input vectors was then computed. A low value for this average similarity score demonstrates that the attacker model is able to discover attack strategies that are semantically and structurally di...
-
[5]
Red teaming language models with language models,
E. Perez, S. Huang, F. Song, T. Cai, R. Ring, J. Aslanideset al., “Red teaming language models with language models,”arXiv preprint arXiv:2202.03286, 2022
arXiv 2022
-
[6]
Build it break it fix it for dialogue safety: Robustness from adversarial human attack,
E. Dinan, S. Humeau, B. Chintagunta, and J. Weston, “Build it break it fix it for dialogue safety: Robustness from adversarial human attack,” arXiv preprint arXiv:1908.06083, 2019
arXiv 1908
Show all 22 references
-
[8]
GPT-4 technical report,
OpenAI, “GPT-4 technical report,”arXiv preprint arXiv:2303.08774, 2023
2023 arXiv
-
[9]
Constitutional AI: Harmlessness from AI feedback,
Y . Bai, S. Kadavath, S. Kundu, A. Askell, J. Kernion, A. Joneset al., “Constitutional AI: Harmlessness from AI feedback,”arXiv preprint arXiv:2212.08073, 2022
2022 arXiv
-
[11]
Query-efficient black-box red teaming via bayesian optimization,
D. Lee, J. Lee, J.-W. Ha, J.-H. Kim, S.-W. Lee, H. Lee, and H. O. Song, “Query-efficient black-box red teaming via bayesian optimization,” arXiv preprint arXiv:2305.17444, 2023
2023 arXiv
-
[12]
Rainbow teaming: Open-ended generation of diverse adversarial prompts,
M. Samvelyan, S. C. Raparthy, A. Lupu, E. Hambro, A. H. Markosyan, M. Bhatt, Y . Mao, M. Jiang, J. Parker-Holder, J. Foerster, T. Rock- taschel, and R. Raileanu, “Rainbow teaming: Open-ended generation of diverse adversarial prompts,”arXiv:2402.16822, 2024
2024 arXiv
-
[13]
Ruby teaming: Improving quality diversity search with memory for automated red teaming,
V . T. Y . Han, R. Bhardwaj, and S. Poria, “Ruby teaming: Improving quality diversity search with memory for automated red teaming,”arXiv preprint arXiv:2406.11654, 2024
2024 arXiv
-
[14]
Curiosity-driven red-teaming for large language models,
Z.-W. Hong, I. Shenfeld, T.-H. Wang, Y .-S. Chuang, A. Pareja, J. R. Glass, A. Srivastava, and P. Agrawal, “Curiosity-driven red-teaming for large language models,” inProceedings of the 12th International Conference on Learning Representations (ICLR), Vienna, Austria, 2024
2024
-
[15]
Gemma 3 technical report,
K. Team, A. Du, B. Yin, B. Xing, B. Qu, B. Wang, C. Chen, C. Zhang, C. Du, C. Weiet al., “Gemma 3 technical report,”arXiv preprint arXiv:2503.19786, 2025
2025 arXiv
-
[16]
The results obtained are shown in Figure 2
as the classifier model. The results obtained are shown in Figure 2. According to the results, the improvement made to the dataset had a positive effect in both languages. These experimental results also allow for inferences to be drawn about cross-language performance. While ...
-
[17]
Training language models to follow instructions with human feedback,
L. Ouyang, J. Wu, X. Jiang, D. Almeida, C. Wainwright, P. Mishkin, C. Zhang, S. Agarwal, K. Slama, A. Rayet al., “Training language models to follow instructions with human feedback,”Advances in Neural Information Processing Systems (NeurIPS), vol. 35, pp. 27 730– 27 744, 2022
2022
-
[18]
Flow network based generative models for non-iterative diverse candidate generation,
E. Bengio, M. Jain, M. Korablyov, D. Precup, and Y . Bengio, “Flow network based generative models for non-iterative diverse candidate generation,”Neural Information Processing Systems (NeurIPS), 2021
2021
-
[19]
Deep reinforcement learning from human preferences,
P. F. Christiano, J. Leike, T. Brown, M. Martic, S. Legg, and D. Amodei, “Deep reinforcement learning from human preferences,”Advances in Neural Information Processing Systems (NeurIPS), vol. 30, 2017
2017
-
[20]
Qwen3 technical report,
A. Yang, A. Li, B. Yang, B. Zhang, B. Hui, B. Zheng, B. Yu, C. Gao, C. Huang, C. Lvet al., “Qwen3 technical report,”arXiv preprint arXiv:2505.09388, 2025
2025 arXiv
-
[21]
Qwen3Guard technical report,
H. Zhao, C. Yuan, F. Huang, X. Hu, Y . Zhang, A. Yang, B. Yu, D. Liu, J. Zhou, J. Linet al., “Qwen3Guard technical report,”arXiv preprint arXiv:2510.14276, 2025
2025 arXiv
-
[22]
The Llama 3 herd of models,
A. Dubey, A. Jauhri, A. Pandey, A. Kadian, A. Al-Dahle, A. Letman, A. Mathur, A. Schelten, A. Yang, A. Fanet al., “The Llama 3 herd of models,”arXiv preprint arXiv:2407.21783, 2024
2024 arXiv
Reviewed August 14, 2026 · model on record in the stance chip above.
Discussion (0). Continue with ORCID to comment.