Introduction
Large language models (LLMs) rely heavily on supervised fine-tuning (SFT) to acquire problem-solving capabilities. However, as AI expands into specialized, knowledge-intensive domains like medicine, law, and the humanities, high-quality SFT data becomes exceedingly scarce. Expert curation is expensive, privacy constraints are strict, and label consistency is difficult to maintain.
To bypass these bottlenecks, researchers increasingly turn to synthetic data generation. This typically involves prompting a "teacher" model to generate question-answer pairs based on domain documents, guided by handcrafted rubrics. OptimSyn introduces a principled alternative: treating rubric design as a reinforcement learning problem. Instead of relying on human intuition to guess what makes a good training prompt, OptimSyn uses gradient-based influence scores from the target model to automatically evolve data-generation rules that maximize actual downstream performance.
The Pitfalls of Heuristic Data Generation
The standard approach to synthetic data generation suffers from two major flaws:
- The Brittle Heuristic Loop: Currently, researchers write a rubric, generate data, train a model, and then guess how to tweak the rubric based on the final results. This trial-and-error process lacks reliable, quantitative feedback about a rubric's true contribution to learning.
- The "Looks Good" Trap: Data that appears semantically correct—and sits close to real data in embedding space—often fails to help the model learn. There is a fundamental gap between a sample's superficial appearance and its actual training utility in gradient space.
As shown in the data, embedding proximity is a poor predictor of training success. Synthetic samples can be semantically identical to real ones but steer optimization in suboptimal directions. Gradient alignment serves as a much more reliable compass for data quality.
The OptimSyn Framework
OptimSyn closes the feedback loop by making the target model the judge of its own training data. The framework shifts away from manual engineering and instead delegates rubric generation to a specialized model conditioned on the task.
The system consists of three core components:
- Optimizer-Aware Influence Estimation: Inspired by classic influence functions, OptimSyn uses an Adam-compatible estimator. It calculates the dot product between the gradient of a synthetic sample and the gradient of a validation set. If these gradients align, the sample has high "influence" and is likely to improve the model's performance.
- The Prompter (Policy Model): Instead of a human writing static rubrics, a "prompter" model dynamically generates them based on a seed document and the specific task.
- Reinforcement Learning (GRPO): The prompter is trained using Group Relative Policy Optimization. The reward signal combines basic validity checks (format, safety) with the crucial Influence Score. By using this score as a reward, the prompter learns to generate rubrics that produce high-utility data—data that actively pushes the model's weights in the right direction during optimization.
Key Findings and Results
The authors evaluated OptimSyn in two knowledge-intensive domains: Humanities and Social Sciences (HSS) and Medical/Health. The framework was tested across 12 benchmarks, including MMLU-pro, SuperGPQA, Humanity’s Last Exam (HLE), PubMedQA, and MedQA.
- Superior Performance: OptimSyn consistently outperformed both human-authored datasets and state-of-the-art synthetic baselines. On HSS tasks, it achieved a remarkable +27.2% relative gain on the challenging HLE benchmark compared to the next best baseline.
- Rivaling "Instruct" Models: In many instances, a base model trained exclusively on OptimSyn data outperformed the official "Instruct" version of that same model, despite the Instruct version being trained on vastly more data.
- Data Efficiency: OptimSyn achieved better results with significantly fewer tokens. For example, it outperformed the massive OpenHermes 2.5 dataset (which contains over 1 million samples) using only ~25,000 high-influence samples.
- Model-Agnostic Portability: A prompter trained to optimize data for a Qwen model also generated data that significantly boosted Llama models. This suggests that the characteristics of "high-quality data" discovered by OptimSyn transcend specific model architectures.
- Rubric Evolution: Qualitative analysis revealed that after RL training, the generated rubrics shifted from generic imperatives (e.g., "be concise") to highly specific, domain-grounded criteria (e.g., "logical soundness," "information density," "medicalization process").
Limitations and Future Work
While highly effective, the OptimSyn framework has limitations. The reward mechanism relies on indirect credit assignment; because gradients cannot flow directly through the discrete text generation step, the RL process can be noisy and exhibit high variance. Additionally, calculating per-sample influence scores across multiple checkpoints introduces significant computational overhead during the warm-up and RL phases.
Future work may explore ways to propagate gradients directly through the generation process, potentially smoothing the RL optimization. Furthermore, applying this influence-guided framework to even more complex reasoning tasks—such as code generation or mathematical proofing—presents an exciting frontier for synthetic data generation.
Summary updated