Anchored Adversarial Fine-Tuning of Language Models with Gumbel-Softmax
Anonymous authors
ICLR 2027
TL;DR. We fine tune a language model adversarially, using Gumbel Softmax to permit gradient propagation, achieving better results than standard supervised fine-tuning.
Abstract. Language models trained with supervised fine-tuning generate the next token based on ground-truth tokens during training but on their own predictions during inference, introducing a training--inference mismatch that can cause errors to compound over a generated sequence. We investigate generative adversarial fine-tuning as a means of introducing autoregressively generated response segments into language-model training, exposing the model to its own predictions during training. To permit gradient propagation to the generator, we leverage Gumbel-Softmax sampling rather than standard discrete token sampling to obtain a differentiable next-token representation, allowing generative adversarial network-based training. Using a convolutional discriminator, which distinguishes generated responses from reference ones, and a transformer language model as the generator, we attempt to improve training stability and response quality through the use of regularization techniques. In particular, during training we progressively unfreeze the discriminator's convolutional layers and optimize the generator using a weighted combination of adversarial and standard supervised fine-tuning objectives. Using an LLM-based evaluator, our best anchored configuration improves over the supervised fine-tuning baseline in all three evaluated categories, including relative gains of $6.5$ percent and percent in Summarization and Science, respectively. These results provide preliminary evidence that the adversarial generation objective can complement supervised fine-tuning in the studied setting.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
ICLR 2027
Under review · 3 reviews · OpenReview
Updated 24 Nov 2026, 17:19 UTC.
- Rating
- 2/4
- Confidence
- 2/4
- Soundness
- 2/3
- Presentation
- 2/3
- Informativeness
- 1/3
Read review
Summary
To address the training–inference mismatch in fine-tuning large language models, an adversarial fine-tuning method is proposed. During fine-tuning, Gumbel-Softmax sampling is used to obtain a differentiable next-token representation and to enable the computation of a biased but low-variance pathwise gradient, while a CNN-based discriminator and several stabilization techniques are used to limit potential drift. An exploratory experiment is conducted to demonstrate the effectiveness of the proposed method.
Strengths
- To explicitly train a task-specific generator, a joint objective is used, comprising an adversarial loss and an SFT loss.
- To alleviate training instability, several stabilization methods, such as progressively unfreezing layers in the discriminator and learning-rate annealing, are jointly used.
Weaknesses
- Both adversarial training and Gumbel-Softmax sampling have been investigated in previous work. This paper merely combines them for fine-tuning large language models, so the novelty is limited.
- The experimental evaluation is limited in scope: the method is not tested across a variety of SFT-trained models, and the assessment relies on an LLM-based evaluator.
Questions for the authors
More experiments are needed to demonstrate the effectiveness of the proposed method, such as a comparison between Gumbel-Softmax sampling and standard sampling methods, and an ablation study of the proposed method.
- Rating
- 2/4
- Confidence
- 3/4
- Soundness
- 2/3
- Presentation
- 2/3
- Informativeness
- 2/3
Read review
Summary
This paper revisits the long-standing idea of using GAN-style adversarial training to fine-tune autoregressive language models, motivated by the well-known training–inference (exposure) mismatch of supervised fine-tuning (SFT). The authors replace hard token sampling with a straight-through Gumbel-Softmax relaxation so that gradients can flow from a learned discriminator back through the autoregressive generation process into the generator (a 360M-parameter SmolLM2). To keep adversarial training stable—an issue reported by prior Gumbel-Softmax-based attempts such as Zhang et al. (2023)—they add several engineering components: progressive unfreezing of a Kim-style multi-kernel CNN discriminator, performance-triggered adaptive learning-rate annealing for generator/discriminator, dropout, training the discriminator on generator embeddings rather than one-hot token vectors, and an "anchored" generator objective that linearly combines the adversarial BCE loss with the standard SFT NLL. A short theory section proves (i) the differentiability of the soft Gumbel-Softmax adversarial path, (ii) convergence in gradient norm of the fixed-discriminator generator subproblem under L-smoothness and a fixed step size, and (iii) a local drift bound ||θ*−θ†|| ≤ λ_adv C / (λ_sft μ) showing that increasing the SFT weight tightens the neighborhood of the SFT optimum at a stationary point. Empirically, the authors fine-tune on Dolly-15k for a single epoch on one A100, generate only 64 tokens, and evaluate with an LLM-as-judge (GPT-5.6) on 50 randomly generated prompts across Science, Summarization, and Synthesis. The best anchored configuration (λ_adv=0.15, λ_sft=0.85) reports +9.9% / +6.5% / +4.5% over a fixed SFT baseline in the three categories, with paired t-test p-values 0.04, 0.03, 0.24 (uncorrected). The authors themselves characterize the results as exploratory and a proof of concept.
Strengths
- A pragmatic, well-engineered stabilization recipe for Gumbel-Softmax text-GANs, with a sensible anchoring mechanism. The most valuable contribution of the paper is the combination of (a) straight-through Gumbel-Softmax for gradient flow, (b) training the discriminator on generator embeddings rather than one-hot token IDs (a clean, easy-to-overlook trick that plausibly removes a major shortcut for the discriminator), (c) progressive unfreezing of a multi-kernel CNN discriminator, (d) performance-triggered adaptive LR annealing, and (e) the anchored objective L_total,G = λ_adv L_adv + λ_sft L_sft. This is a coherent, implementable recipe. It matters because prior attempts (most visibly Zhang et al., 2023, and Kusner & Hernández-Lobato, 2016) reported instability, so a paper that documents a working configuration—even at small scale—is useful to the community. The fact that the best model has λ_adv=0.15 / λ_sft=0.85 is itself an informative negative result: at this scale, the adversarial term is best viewed as a regularizer that nudges the SFT solution, not a standalone training signal.
Weaknesses
-
Severely limited empirical scope undermines the central claim. The entire empirical study uses a 360M-parameter SmolLM2 model, a single epoch of adversarial training on Dolly-15k, maximum generation length of 64 tokens, and 50 LLM-generated prompts per category for evaluation. This is fine as a proof of concept but it is not enough to support the implicit claim that adversarial fine-tuning with Gumbel-Softmax is a viable complement to SFT at the scale where the training–inference mismatch actually matters (i.e., long-form generation). At 64 tokens, exposure bias is a much smaller problem than at typical assistant-response lengths (hundreds to thousands of tokens). Worse, the SFT baseline is trained for 5 epochs (and was selected as the best of 10 epochs, see Appendix B) while the adversarial model is trained for a single epoch, so the comparison is not compute-matched. The headline +9.9% and +6.5% numbers would shrink substantially—or vanish—against a 1-epoch SFT baseline or against an SFT model trained with the same total FLOPs. Given how small the absolute score differences are (3.04 → 3.34 on a 1–10 scale), this is a major threat to validity.
-
Evaluation is LLM-judge-only, on LLM-generated prompts, with no human study and no automatic metric. The authors acknowledge that LLMs can be biased evaluators (citing Wang et al., 2024) and mitigate by averaging 20 scoring evaluations per prompt, but the deeper issue is that (a) the 50 prompts per category are themselves synthetic (Section 7.3, item 1), so the study is evaluating model output on AI-generated prompts scored by an AI judge, which risks a closed-loop artifact; (b) no human evaluation is performed even on a small subsample; (c) no standard automatic metric (BLEU/ROUGE against reference responses, perplexity on held-out Dolly data, MAUVE, etc.) is reported, which would have provided a non-LLM signal at trivial cost; and (d) the statistical analysis is a paired t-test without multiple-comparison correction across three categories and six configurations, so the two significant results (p=0.04 and p=0.03, uncorrected) are not robust to standard corrections (Bonferroni across 3 categories would push Summarization to p≈0.09). The paper's own conclusion correctly calls this preliminary evidence, but the framing elsewhere in the abstract and introduction does not match that caution.
Questions for the authors
-
Compute-matched baseline. Can you report results for (a) a 1-epoch SFT baseline (same total optimizer steps as the adversarial runs) and (b) an SFT run with matched total FLOPs (accounting for the cost of autoregressive generation during adversarial training)? Without these, it is impossible to tell whether the reported gains come from the adversarial objective or simply from a different effective training budget. This is the single most important clarification.
-
Discriminator behavior. What has the discriminator actually learned? A short analysis—for example, kernel-level saliency over the input embeddings, or an evaluation of held-out discrimination accuracy of the final discriminator versus a length-controlled baseline—would clarify whether the adversarial signal is capturing "human-like" content or trivial surface cues (token-frequency, n-gram regularity) that the embedding-space input does not fully suppress. Relatedly, did you try a stronger discriminator (e.g., a small transformer) and observe the same effect, or does the Kim-CNN play a non-trivial role?
-
Sensitivity to τ and the anchoring weight. The straight-through estimator is known to be sensitive to the Gumbel temperature τ. You report τ=1.0 only. Does the method still train stably at τ ∈ {0.5, 0.7, 2.0}? Similarly, is the pattern in Table 1 monotone in λ_adv, or is the apparent optimum at 0.15 sharp? A small 1-D sensitivity sweep over one category would substantially strengthen the claim that the recipe is robust rather than a lucky point in hyperparameter space.
-
Empirical verification of the drift bound. Section 4.3 predicts that increasing λ_sft / λ_adv tightens the neighborhood around the SFT optimum. Did you measure ||θ_adversarial − θ_SFT||₂ (or in function space, KL between the two models on a held-out prompt set) for the configurations in Table 1? Even a single plot would connect the theory to the empirical finding that high λ_adv models degrade badly.
1 comment
- Rating
- 1/4
- Confidence
- 4/4
- Soundness
- 2/3
- Presentation
- 2/3
- Informativeness
- 1/3
Read review
Summary
This paper investigates adversarial fine tuning of language models using Gumbel-Softmax to propagate surrogate gradients through autoregressive generation. A CNN discriminator distinguishes generated responses from reference responses, while the generator combines adversarial loss with an SFT anchoring objective. Progressive discriminator unfreezing and adaptive learning rates are used to stabilize training. Experiments on SmolLM2-360M show modest improvements in LLM judged response quality for the best anchored configuration over an SFT baseline.
Strengths
The framework introduces self-generated response segments into training while retaining token level supervision. SFT anchoring appropriately addresses the limitation that distinguishing reference from generated text does not directly ensure factual or task specific correctness.
Weaknesses
- Evaluation uses only a 360M model, responses capped at 64 tokens, and 50 self-generated prompts per category, scored by a single LLM judge. This provides limited evidence for addressing error accumulation over longer generations or improving larger language models
- Gumbel-Softmax text generation, adversarial language model training, and combining supervised and adversarial objectives have precedents acknowledged by the paper. The contribution primarily combines these techniques with stabilization heuristics, but lacks direct comparisons with closely related methods and controlled ablations establishing the benefits of progressive unfreezing and the other components.
Questions for the authors
All experiments use a 360M parameter model and cap responses at 64 tokens. What evidence supports the method’s effectiveness and computational feasibility for larger models and substantially longer generations? Since the motivation concerns error accumulation during autoregressive generation, can the current short response experiments adequately assess this benefit? Please clarify the runtime and memory bottlenecks that imposed these limits.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
We thank the reviewer for their careful reading and deep technical analysis and their valuable feedback as such.
W1 Review: "Severely limited empirical scope undermines the central claim. The entire empirical study uses a 360M-parameter SmolLM2 model, a single epoch of adversarial training on Dolly-15k, maximum generation length of 64 tokens, and 50 LLM-generated prompts per category for evaluation. This is fine as a proof of concept but it is not enough to support the implicit claim that adversarial fine-tuning with Gumbel-Softmax is a viable complement to SFT at the scale where the training–inference mismatch actually matters (i.e., long-form generation). At 64 tokens, exposure bias is a much smaller problem than at typical assistant-response lengths (hundreds to thousands of tokens). Worse, the SFT baseline is trained for 5 epochs (and was selected as the best of 10 epochs, see Appendix B) while the adversarial model is trained for a single epoch, so the comparison is not compute-matched. The headline +9.9% and +6.5% numbers would shrink substantially—or vanish—against a 1-epoch SFT baseline or against an SFT model trained with the same total FLOPs. Given how small the absolute score differences are (3.04 → 3.34 on a 1–10 scale), this is a major threat to validity."
W1 Response: We partially accept this fault as-is with experiments already completed. We simply did not have access to the level of compute required to run an experiment with a larger model on higher generation lengths. Further, we should note that the 5 epoch SFT baseline was chosen against all other epoch amounts due to its higher performance. We do choose to report a 1-epoch SFT baseline as a data-matched comparison while the main baseline remains the 5-epoch one. When doing this experiment, we recognise that the 5-epoch model strictly outperforms the 1-epoch SFT model. Second, we choose not to include a compute-matched baseline as since the SFT model performance has an approximate optimum at 5 epochs and is decreasing from thereafter, added training would harm behavior. If we use compute time as an approximate indicator for total FLOPS, it would require about 30 epochs of SFT to approximately equalize the number of FLOPS used. This would likely hurt the SFT model more than a less fine-tuned version as research suggests LLMs are optimal after just a few epochs of finetuning. This would then serve as waste of compute.
W2 Review: "Evaluation is LLM-judge-only, on LLM-generated prompts, with no human study and no automatic metric. The authors acknowledge that LLMs can be biased evaluators (citing Wang et al., 2024) and mitigate by averaging 20 scoring evaluations per prompt, but the deeper issue is that (a) the 50 prompts per category are themselves synthetic (Section 7.3, item 1), so the study is evaluating model output on AI-generated prompts scored by an AI judge, which risks a closed-loop artifact; (b) no human evaluation is performed even on a small subsample; (c) no standard automatic metric (BLEU/ROUGE against reference responses, perplexity on held-out Dolly data, MAUVE, etc.) is reported, which would have provided a non-LLM signal at trivial cost; and (d) the statistical analysis is a paired t-test without multiple-comparison correction across three categories and six configurations, so the two significant results (p=0.04 and p=0.03, uncorrected) are not robust to standard corrections (Bonferroni across 3 categories would push Summarization to p≈0.09). The paper's own conclusion correctly calls this preliminary evidence, but the framing elsewhere in the abstract and introduction does not match that caution."
W2 Response: First we would like to thank the reviewer in particular for this very useful feedback. To address (a) and (b) we perform a human evaluation on a subset of 25 of the 150 total generated prompts for only the 0.15 | 0.85 vs SFT-5 comparison, observing a +10.1% relative improvement from the 5 epoch sft baseline. To address (c) we calculate mean per-token perplexity on a held out subset of Dolly 15k. Though this may not be a perfect measure of response quality, per-token perplexity serves as an approximate reflection of the models confidence in its generative ability. We observe that our 0.15|0.85 model has the lowest mean per-token perplexity, indicative of clearer and somewhat confident generation. We hope these added empirical evaluations can sufficiently strengthen the, relatively thin, empirical section we had previously. Also, during the rebuttals, we have made concerted efforts to implement a more cautious, exploratory framing consistent with our scale of experiment and our statistical significance.
Once again, thanks for your review, we will respond shortly to the questions in a seperate comment.