Why synthesis needs a common execution model

The authors position DataFlow between conventional data-processing engines and model-training applications. They argue that generic ETL frameworks require substantial custom logic for semantic generation and verification, while curation libraries emphasize extraction and filtering. Table 1 is the authors' qualitative comparison with Data-Juicer and NeMo Curator, rather than an independently measured ranking of every capability.

DataFlow's focus is LLM-driven synthesis and refinement. The report describes over 180 operators, summarized as nearly 200, and reusable pipelines for text, mathematics, code, Text-to-SQL, agentic retrieval and knowledge extraction. The intended benefit is a common language for sharing recipes while allowing domain-specific algorithms. Outputs feed downstream training or retrieval systems; DataFlow does not itself replace all those systems. Source: §§2–3, pp.6–8.

DataFlow's system boundary: core execution, reusable pipelines, CLI, agent and extension packages. Original Figure 1, PDF p.8.
DataFlow's system boundary: core execution, reusable pipelines, CLI, agent and extension packages. Original Figure 1, PDF p.8.Open original figure

Storage, operators, prompts and pipelines

A shared tabular storage abstraction holds samples and named fields. Operators read the needed fields, transform them, and write results through the storage API. The default implementation uses Pandas and common file formats. Alternative backends can implement the same abstraction.

Initialization binds static resources such as a model-serving backend or prompt template; an operator's run method receives storage plus named input and output keys. A scoring operator can therefore read either a question/answer pair or differently named columns without rewriting its internal logic. Prompt construction is separated through build_prompt, so an SQL operator can change database-specific instructions without duplicating its transformation code.

The serving layer exposes a common generation interface for local engines and remote APIs. Pipelines compose operators in an ordered sequence or lightweight directed acyclic graph. Optional compilation records dependencies and validates field-level structure before execution, while checkpoints support resumption. Structural checks can expose missing fields and incompatible dependencies together; they do not prove the factual correctness of generated data.

The four functional categories clarify how state changes: generation adds fields or rows; evaluation attaches scores or labels; filtering removes rows; refinement edits existing fields without changing row count. The report also separates modalities and core versus domain-specific operators. Extension packages and CLI scaffolding make new operators and recipes distributable Python components. Figure 5 visualizes changing sample counts, not downstream accuracy: some recipes expand candidates before filtering, whereas the illustrated text and code pipelines do not use generative row expansion. Source: §4, pp.8–14; Figures 2–5.

Retrieve, reuse, synthesize, then verify

DataFlow-Agent uses LangGraph to coordinate specialized roles. Intent analysis breaks a request into sub-intents. Data routing identifies the input category or creates mock data for a dry run. Retrieval finds candidate library operators, and sequencing checks their input/output compatibility. The system first tries reuse through a suitable prompt template; only a remaining functional gap calls for new operator code and unit-level debugging.

Pipeline construction connects validated operators into a DAG. Verification runs it with a sample in a sandbox and adjusts connections or parameters after runtime errors. A reporting role returns the executable definition and a report. This separates reusable execution units from the agent that proposes their composition.

Figure 6 makes that four-stage progression visible: intent decomposition, operator synthesis, assembly, verification. A sample-based sandbox check can demonstrate connectivity and some runtime behavior. It cannot by itself establish semantic correctness over an entire dataset or production safety under every input. Source: §5, pp.14–16.

The specialized roles and verification loop in DataFlow-Agent. Original Figure 6, PDF p.14.
The specialized roles and verification loop in DataFlow-Agent. Original Figure 6, PDF p.14.Open original figure

What an executable recipe actually checks

The Text-to-SQL case study shows why operators need different acceptance criteria. SQL generation uses a schema, sampled values, complexity instructions and selected functions. Augmentation changes seed queries along six directions, including values, structure, business logic and complexity. The execution filter rejects queries that fail or exceed a runtime threshold, while a separate consistency filter judges whether a question matches its SQL.

A question generator produces natural-language variants. A reasoning generator creates solution traces; validation extracts the resulting SQL and compares execution results with reference SQL on the given database. The prompt generator combines task instructions, question and schema. A component classifier estimates structural difficulty; an execution classifier instead samples a model k times and uses n successful executions out of k, so that difficulty depends on the model.

The generation pipeline starts from a database; refinement starts from existing question/SQL seeds and validates them before augmentation. A database connector separates schema retrieval and execution from operator logic. Successful execution and answer consistency are useful distinct checks, but agreement on one database is not a universal proof that two queries express the same intent. Source: §6.1, pp.16–18; Figure 7.

Data quality results, with their comparison conditions

Text experiments cover pretraining filtering, small SFT subsets and conversation synthesis. At a fixed 30B-token pretraining budget for Qwen2.5-0.5B, Table 2 reports a six-benchmark average of 35.69 for DataFlow, versus 35.26 for random sampling, 35.57 for FineWeb-Edu and 35.02 for Qurating. This is a modest gain, not a dramatic scaling result. Table 3's 5K filtering study shows aggregate improvements but individual metrics can decline. The conversation experiment with Qwen2.5-7B reports a general-benchmark average of 28.21 after DataFlow-Chat-15K, versus 26.36 for its baseline; Arena-Hard is 1.10 versus 0.60, while ShareGPT-15K reaches 1.30 on that individual metric. Source: §7.1, pp.18–20; Tables 2–4.

For mathematics, o4-mini expands NuminaMath seeds, MathQ-Verify filters questions, and DeepSeek-R1 generates reasoning traces. Qwen2.5-32B-Instruct is fine-tuned on 10K examples. After two epochs, the eight-metric average is 55.7 with DataFlow, 54.2 with Open-R1 and 54.0 with Synthetic-1. DataFlow does not lead every test: AIME24@32 is 45.4 versus Open-R1's 51.0, and MATH is 76.6 versus Synthetic-1's 78.4. AIME uses different sampling from the non-AIME evaluations, so results should retain their reported conditions. Source: §7.2, pp.20–21; Table 5.

Code experiments start from 20K Ling-Coder-SFT seeds and construct 1K, 5K and 10K datasets. For Qwen2.5-14B-Instruct, Table 6 reports an average of 48.4 before additional training, 50.9 with DataFlow-Code-1K and 51.0 with 10K. Code Alpaca and Self-OSS comparison subsets contain 1K examples: the matched-size comparison is therefore the 1K row. The 10K result also changes data quantity. The table does not support universal monotonic improvement: the 5K average is 50.7, below 1K, and LiveCodeBench is 33.2 at 10K versus the original model's 33.4. Source: §7.3, pp.21–22; Table 6.

Gains depend on the benchmark and decoding strategy

DataFlow-Text2SQL-90K contains 89,544 synthesized examples derived from Spider, BIRD and EHRSQL training seeds. Models are evaluated with greedy decoding and with majority voting over eight sampled SQL responses. For Qwen2.5-Coder-7B-Instruct, DataFlow-90K reaches average execution accuracy of 71.6 under greedy decoding and 74.0 under voting. SynSQL-90K reaches 65.5 and 69.9; SynSQL-2.5M reaches 70.0 and 71.6.

The distribution of gains matters. EHRSQL greedy accuracy rises from the original model's 24.3 to 56.1, while DataFlow-90K's BIRD-dev score of 59.2 is below SynSQL-2.5M's 63.9. The result supports strong aggregate performance and data efficiency in these settings, not superiority on every domain. Training on synthesized data plus the original Spider/BIRD data is a separate row and should not be conflated with synthesized-only training. Source: §7.4, pp.22–24; Table 7.

Training retrieval behavior and extracting knowledge

AgenticRAG synthesis chooses Wikipedia documents after excluding documents appearing in test benchmarks, uses o4-mini to draft multihop questions, and filters leakage, logical errors and unsuitable difficulty. ReCall trains Qwen2.5-7B-Instruct with GRPO. Retrieval uses E5-base-v2 over the 2018 Wikipedia dump; the default top-k is five, with the model allowed to choose it.

Table 8's matched out-of-domain comparisons remove the same in-domain test from both datasets. At an effective 20K training scale, DataFlow scores 43.6 versus Musique's 42.4; at an effective 30K scale, it scores 36.4 versus 2Wiki's 33.8. These matched exclusions, rather than incomparable raw averages, support the generalization claim.

The knowledge-extraction pipeline normalizes documents, segments them, filters noise and generates checked QA pairs. A medical example uses 140M raw tokens, then fine-tunes Qwen2.5-7B-Instruct for five epochs. Accuracy is 53.40 on PubMedQA, 68.33 on Covert and 40.86 on PubHealth, above the reported zero-shot CoT and RAG baselines. This compares training with inference-time baselines; it is not a controlled demonstration that retrieval is generally unnecessary, nor an evaluation of clinical deployment. Source: §§7.5–7.6, pp.24–26; Tables 8–9.

A small mixture helps some capabilities more than others

DataFlow-Instruct-10K mixes 3K math, 2K code and 5K general instruction examples. For Qwen2.5-7B-Base, the math average is 46.7, compared with 33.3 after Infinity-Instruct-1M and 49.8 for Qwen2.5-7B-Instruct. The code averages are 78.6, 78.0 and 80.6 respectively.

The Qwen2-7B results prevent a blanket claim that 10K beats 1M everywhere: DataFlow's code average is 66.2, below Infinity-Instruct-1M's 68.2, and its knowledge average is 76.1 versus 76.2. The strongest evidence is for the selected math mixture and Qwen2.5 configuration. Dataset size is only one changed variable; provenance, composition and synthesis also differ. Source: §7.7, pp.26–28; Tables 10–11.

The agent evaluation is the critical boundary

Six representative pipelines, each described at three difficulty levels, produce just 18 requests. Easy descriptions name key operators; medium descriptions give goals and constraints; hard descriptions provide little intermediate guidance. An external LLM compares operator coverage and order against textual specifications or reference Python code.

LLM-judge alignmentEasyMediumHardOverall
Text specification0.920.860.600.80
Reference code0.600.590.230.49

These scores quantify agreement with a reference. They neither count verified task completions nor resolve whether a different pipeline is equally valid. The authors explicitly note that underspecified requests may produce plausible alternatives that diverge from one reference program. The gap shows why a strong data library and an agent that selects and composes it should be evaluated separately. Source: §7.8, pp.28–29; Table 12.

The two orchestration judging modes and their sharp decline on underspecified requests. Original Table 12, PDF p.29.
The two orchestration judging modes and their sharp decline on underspecified requests. Original Table 12, PDF p.29.Open original figure

What an agent developer can take from this

The authors conclude with planned table, graph, multimodal and industry extensions. Those are future directions, not results already established by this report. The paper has no standalone limitations section; its orchestration discussion identifies ambiguity and reference divergence, and its tables expose mixed outcomes that broad prose claims can obscure. Source: §§7.8–8, p.29.

AI analysis

Our assessment is that DataFlow's most transferable contribution is the execution substrate: explicit fields, reusable operators, separated prompts and a checkable graph give an agent concrete objects to inspect and repair. For an initial evaluation, specify accepted output fields and semantic checks, compare against a hand-built recipe, and measure both completed runs and output quality. Retain the actual model calls and data budget when judging efficiency. These are engineering implications drawn from the architecture and the evaluation gap; the report does not establish them as a universally optimal workflow.

The practical question is whether a particular pipeline produces useful data under its stated checks. DataFlow makes that question more inspectable. The 18-request study leaves open how reliably its agent can answer it for unfamiliar, ambiguous production requirements.