Synthetic Data for any Differentiable Target

Tristan Thrush, Sung Min Park, Herman Brunborg, Luke Bailey, Marcel Roed +3 more
4/9/2026
cs.CLcs.AIcs.LG

No confident code implementation found for this paper.

Abstract

What are the limits of controlling language models via synthetic training data? We develop a reinforcement learning (RL) primitive, the Dataset Policy Gradient (DPG), which can precisely optimize synthetic data generators to produce a dataset of targeted examples. When used for supervised fine-tuning (SFT) of a target model, these examples cause the target model to do well on a differentiable metric of our choice. Our approach achieves this by taking exact data attribution via higher-order gradients and using those scores as policy gradient rewards. We prove that this procedure closely approximates the true, intractable gradient for the synthetic data generator. To illustrate the potential of DPG, we show that, using only SFT on generated examples, we can cause the target model's LM head weights to (1) embed a QR code, (2) embed the pattern $\texttt{67}$, and (3) have lower $\ell^2$ norm. We additionally show that we can cause the generator to (4) rephrase inputs in a new language and (5) produce a specific UUID, even though neither of these objectives is conveyed in the generator's input prompts. These findings suggest that DPG is a powerful and flexible technique for shaping model properties using only synthetic training examples.

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{thrush2026synthetic,
  title  = {Synthetic Data for any Differentiable Target},
  author = {Tristan Thrush and Sung Min Park and Herman Brunborg and Luke Bailey and Marcel Roed and Neil Band and Christopher Potts and Tatsunori Hashimoto},
  year   = {2026},
  eprint = {2604.08423},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2604.08423v1}
}

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/2604.08423.svg)](https://codeofpaper.com/paper/2604.08423)

Discussion