TL;DR
SYNTRA is a new "agentic" framework that automates the creation of high-quality training data for text embedding models. By using a self-improvement loop to iteratively refine its own data-generation instructions based on just a few examples, it allows researchers to rapidly adapt search and retrieval models to specialized domains—like legal, medical, or code—with minimal human effort.
What Problem Does This Paper Address?
Modern AI agents rely heavily on "retrieval"—the ability to find relevant information in a massive corpus (like a company's internal documents or a library of scientific papers). This is usually handled by embedding models. However, a model trained on general web search (like MS MARCO) often fails when dropped into a specialized domain. A "relevant" document in a legal case is defined very differently than one in a medical forum.
The traditional solution is to manually label thousands of query-document pairs for every new task, which is prohibitively expensive and slow. While Large Language Models (LLMs) can be used to synthesize this data, generic prompts often produce "shallow" queries that just summarize the document rather than reflecting how a real user would ask a question. As shown in Figure 1, different tasks (like finding a similar argument vs. a counterargument) require very different relevance criteria even within the same domain.
Methods
The authors introduce SYNTRA (SYNthetic TRaining Adaptation), which operates in two distinct phases: Test Mode and Production Mode.
1. Test Mode: The Self-Improvement Loop
Instead of relying on a human to write the perfect prompt, SYNTRA takes a small set of "few-shot" examples (e.g., 5 queries and their corresponding documents) and an unlabeled corpus.
- Inference: It first infers a high-level task definition.
- The Loop: It generates trial data, evaluates it against the few-shot examples, and generates "diagnostic feedback."
- Refinement: This feedback is used to rewrite the internal instructions for query generation and relevance labeling. This cycle repeats until the output matches the quality and style of the examples.
2. Production Mode: Scaling Up
Once the instructions are refined, they are fixed and used to process the entire corpus.
- Identifier & Attribute Extraction: The system identifies "anchors" in a document (entities or relations) and creates "attributes" (dimensions like reasoning depth or specificity) to ensure query diversity.
- Query Synthesis: It plans and then writes queries based on these attributes.
- Relevance Labeling: It retrieves candidate documents from the full corpus and uses the refined instructions to label them as positives, "hard negatives" (documents that look relevant but aren't), or "easy negatives."
Datasets
The researchers evaluated SYNTRA across a massive breadth of data:
- 24 retrieval datasets spanning 15 domains, including Legal (LeCaRDv2), Finance (FiQA), Scientific Literature (SCIDOCS), Medicine (MedicalQA), and Coding (CosQA).
- They used MS MARCO as a primary baseline and scaling benchmark.
- Evaluation was performed using the BEIR and NanoBEIR suites to ensure consistency.
Key Insights and Ideas
- The "Aha" Moment in Instruction Refinement: The system learned to stop summarizing. In a FiQA (financial Q&A) case study, the initial prompt produced queries that echoed the document. After the self-improvement loop, the system realized it needed to "imagine the messy, real-life scenario" that would lead a user to search for that info.
- Synthetic Data > Human Data: In a head-to-head comparison on MS MARCO, models trained on SYNTRA’s synthetic queries actually outperformed models trained on original human-generated queries from Bing search logs. This suggests that LLM-generated queries can be more "instructive" for training than noisy human data.
- Scaling Still Works: Retrieval performance continued to improve as the synthetic dataset was scaled up to 32 times its initial size (320,000 examples), showing no immediate ceiling for synthetic data utility.
Key Results
- Universal Improvement: SYNTRA-generated data improved retrieval performance over the MS MARCO baseline in every single one of the 24 task-specific comparisons.
- Outperforming Humans: The automated self-improvement loop outperformed manual human calibration of instructions on 4 out of 6 evaluated tasks.
- Boosting Strong Models: Even for state-of-the-art models like BGE-M3 and Qwen3-Embedding-8B, SYNTRA provided significant gains (up to +7.2 nDCG@10 points) by providing task-specific "fine-tuning" data where none existed.
- Label Reliability: The LLM-generated relevance labels showed a 91.3% binary agreement with human annotators, proving the labels are highly trustworthy for training.
Limitations and Future Work
- Human Setup: While minimal (~10 minutes), a human is still required to provide the initial few-shot examples and review the inferred task definition.
- Compute Costs: Generating high-quality data requires a relatively large "teacher" model (the authors used Qwen3-30B), though the authors note this is still more economical than human labeling.
- Future Directions: The authors suggest extending this "self-improving agent" approach to other types of data synthesis, such as mathematical reasoning or code generation, where automated checks (like code execution) could provide even stronger feedback loops.
Summary updated