Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Commit ·
7aaccb8
1
Parent(s): d1d52e1
move transition sentences after the charts
Browse files25 unmodified lines262728293031323314 unmodified lines4849505152538 unmodified lines626364656667686917 unmodified lines8788899091922 unmodified lines959697989910010110214 unmodified lines1171181191201211226 unmodified lines12913013113213313413513627 unmodified lines1641651661671681692 unmodified lines17217317417517617717817935 unmodified lines2152162172182192206 unmodified lines22722822923023123223323453 unmodified lines2882892902912922931 unmodified line29529629729829930010 unmodified lines31131231331431531615 unmodified lines33233333433533633733833925 unmodified lines36536636736836937037137237337437537637737837931 unmodified lines4114124134144154162 unmodified lines41942042142242342442542656 unmodified lines4834844854864874888 unmodified lines4974984995005015025035044 unmodified lines50951051151251351451551651751851925 unmodified lines5455465475485495502 unmodified lines55355455555655755855956011 unmodified lines57257357457557657725 unmodified linesDCLM, Nemotron-HQ-Synth, and REWIRE lead by a significant margin (see [Baseline Comparison](#baselines-comparison)). The remaining datasets, including Cosmopedia, FineWeb-Edu (both HQ and LQ), Ultra-FineWeb, and SYNTH, fall notably behind. <mark>TLDR: DCLM is the strongest baseline and becomes our primary comparison target for all following experiments.</mark>The synthetic baselines use different prompts internally. Which individual prompts actually carry the weight?<HtmlEmbedid="baselines-comparison"src="d3-benchmark-comparison.html"14 unmodified lines}}/>#### Dissecting the Synthetic BaselinesPrior synthetic datasets bundle multiple prompts together. We want to understand what makes them tick.8 unmodified linesOnly [diverse_qa_pairs](#diverse_qa_pairs) (driven by very strong SQuAD performance) and REWIRE's [guided_rewrite](#guided_rewrite_original) match DCLM (see [Dissecting Synthetic Baselines](#dissecting-baselines)). The BeyondWeb-inspired [continue](#continue) and [summarize](#summarize) prompts do not reach DCLM level. <mark>TLDR: Apart from two prompts, no existing synthetic method outperforms the DCLM baseline.</mark>Can we design prompts that consistently beat DCLM?<HtmlEmbedid="dissecting-baselines"src="d3-benchmark-comparison.html"17 unmodified lines}}/>### Which New Prompts Work Well?Since most existing prompts fail to beat DCLM, we designed new prompt formats targeting different skills. <mark>Can any of them outperform the baseline?</mark>2 unmodified linesFour prompts ([math](#math), [table](#table), [faq](#faq), [tutorial](#tutorial)) outperform both FineWeb-Edu-HQ and DCLM, while [article](#article), [commentary](#commentary), and [discussion](#discussion) fall short (see [New Prompt Performance](#new-prompts)). The best-performing prompts all restructure the source content into pedagogically rich formats. <mark>TLDR: Math, table, FAQ, and tutorial prompts beat the DCLM baseline, while article, commentary, and discussion are at or below DCLM level.</mark>We used Gemma-3-1B for all experiments so far. Can we do even better by changing the rephrasing model?<HtmlEmbedid="new-prompts"src="d3-benchmark-comparison.html"14 unmodified lines}}/>### Impact of the Rephrasing ModelWe want to know whether using a stronger model leads to better synthetic data. We look at this dimension from three angles: model size, model family, and model generation.6 unmodified linesThe 270M model underperforms, but 1B through 27B show no significant difference on either prompt (see [Model Size](#model-size)). Even for the harder [math](#math) prompt, larger models do not help. <mark>TLDR: Beyond a baseline capability (reached at 1B), larger models do not improve synthetic data quality.</mark>On high-quality source data, we see no evidence that larger models help. But REWIRE claims large models are needed specifically for low-quality data. Does that claim hold?<HtmlEmbedid="model-size"src="d3-benchmark-comparison.html"27 unmodified lines}}/>#### Do we need better models for rephrasing low-quality data?The REWIRE [@rewire] paper claims that upcycling low-quality data requires large models (Llama-3.3 70B in their case). <mark>Does this claim hold?</mark>2 unmodified linesThe results are mixed: for some prompts 12B helps slightly with LQ data, but for the [FAQ](#faq) prompt the 1B model actually wins (see [Model Size vs Data Quality](#size-quality)). We see no consistent advantage of using larger models for low-quality data. <mark>TLDR: We cannot reproduce the claim that large models are needed for low-quality data.</mark>Since model size barely matters, does the model family make a difference?<HtmlEmbedid="size-quality"src="d3-benchmark-comparison.html"35 unmodified lines}}/>#### Does the model family matter?Different model families may be better suited for rephrasing based on their training data. <mark>Do some families produce better synthetic data than others?</mark>6 unmodified linesWe hypothesize that SmolLM2's consistently strong rephrasing performance originates from explicit rewrite tasks in its instruction tuning data (smoltalk). This would mean the model already "knows" how to rewrite well before we even prompt it.</Sidenote>SmolLM2 is already a year old. Are newer model generations better?<HtmlEmbedid="model-family"src="d3-benchmark-comparison.html"53 unmodified lines}}/>#### Does the model generation matter?We've seen that model family matters. But within a family, <mark>do newer versions produce better synthetic data?</mark>1 unmodified lineWe compare Qwen models from versions 1.5 [@qwen], 2 [@qwen2], 2.5 [@qwen25], and 3 on the [tutorial](#tutorial) prompt.While the differences are small, we find a consistent trend: newer versions lead to higher evaluation performance (see [Model Generation](#model-generation)). <mark>TLDR: Newer model generations tend to produce slightly better synthetic data.</mark><HtmlEmbedid="model-generation"src="d3-benchmark-comparison.html"10 unmodified lines}}}/><Note title="Summary: Impact of the Rephrasing Model" variant="info">**Model size**: 1B is sufficient. Larger models do not help.**Model family**: SmolLM2 dominates across all prompts.15 unmodified linesSynthetic-only training beats FineWeb-Edu-HQ but falls short of both DCLM and mixed training (see [Is Synthetic Data Enough?](#synthetic-only)). Mixed training consistently improves over both the synthetic-only and original-data-only baselines. <mark>TLDR: Synthetic data alone is not enough. Mixing with original data consistently improves performance.</mark>So the mix-in dataset clearly matters. But how much does the specific choice of mix-in dataset affect performance?<HtmlEmbedid="synthetic-only"src="d3-benchmark-comparison.html"25 unmodified lines}}/>#### Does the mix-in dataset matter?We just saw that mixing in original data is essential. <mark>How much does the choice of mix-in dataset affect performance?</mark>We apply the [tutorial](#tutorial) prompt using Gemma-3-1B on FineWeb-Edu-HQ, then mix in one of four datasets: DCLM, Cosmopedia, FineWeb-Edu-HQ, or FineWeb-Edu-LQ. Use the Setup dropdown to also see results with LQ source data.The differences are huge. DCLM and FineWeb-Edu-HQ vastly outperform Cosmopedia and FineWeb-Edu-LQ as mix-in datasets. Adding synthetic data improves performance for all mix-in datasets, with the effect especially pronounced for the weaker ones (see [Mix-in Dataset Effect](#mixin-dataset)). <mark>TLDR: The mix-in dataset is a major performance driver, sometimes more important than the synthetic data itself.</mark>The mix-in dataset matters enormously. But what about the source dataset we feed to the rephrasing model?<HtmlEmbedid="mixin-dataset"31 unmodified lines}}/>#### Does the source dataset matter?We know the mix-in dataset is critical. <mark>But does the quality of the source documents we feed to the rephrasing model also matter?</mark>2 unmodified linesWhen mix-in varies with source, source quality appears to matter: FineWeb-Edu-HQ and DCLM clearly outperform FineWeb-Edu-LQ and Cosmopedia (see [Source Dataset: Mix-in = Source](#source-dataset-mixin-source)). But when we fix the mix-in to FineWeb-Edu-HQ, the source effect nearly vanishes (see [Source Dataset: Fixed Mix-in](#source-dataset-fixed-mixin)). This corroborates our finding that the mix-in matters much more than the source. <mark>TLDR: Source dataset quality is secondary to mix-in dataset quality. With a strong mix-in, even low-quality sources produce competitive synthetic data.</mark>We've seen that mixing matters and the mix-in dataset is key. Can we squeeze out more performance by increasing diversity in the synthetic portion?<HtmlEmbedid="source-dataset-mixin-source"src="d3-benchmark-comparison.html"56 unmodified lines}}/>#### Does increased diversity help?Given that mixing matters, a natural next step is to maximize diversity in the synthetic portion. <mark>Does combining multiple prompts or model families increase performance?</mark>8 unmodified lines<mark>TLDR: At our 20B token scale, diversity does not compound. Mixing datasets averages rather than improves performance, though larger-scale experiments may tell a different story.</mark>Let's turn to some unexpected findings from our experiments.<HtmlEmbedid="diversity"src="d3-benchmark-comparison.html"4 unmodified lines"Mixing Prompts": {datasetNames: {"mix-fw_edu_hq-tutorial_1b_hq-fw_edu_hq-faq_1b_hq-table_1b_hq-math_1b_hq": "All Prompts + FineWeb-Edu-HQ","mix-fw_edu_hq-math_1b_hq": "Math","mix-tutorial_1b_hq-faq_1b_hq-table_1b_hq-math_1b_hq": "All Prompts (No Source)","mix-fw_edu_hq-table_1b_hq": "Table","mix-fw_edu_hq-faq_1b_hq": "FAQ","mix-fw_edu_hq-tutorial_1b_hq": "Tutorial",dclm: "DCLM",fw_edu_hq: "FineWeb-Edu-HQ"}25 unmodified lines}}/>### Do Typos in the Prompt Hurt?The original REWIRE prompt contains many typos and grammar errors. <mark>Do these imperfections degrade the quality of the synthetic data?</mark>2 unmodified linesSurprisingly, typos don't have a negative effect on downstream model performance. For the 1B model, the typo-laden original actually performs slightly better (see [Effect of Typos](#typos-effect)). <mark>TLDR: Typos in prompts do not hurt downstream performance.</mark>Our final experiment explores an even more counterintuitive finding.<HtmlEmbedid="typos-effect"src="d3-benchmark-comparison.html"11 unmodified lines}}/>{/*### Does edu-score or DCLM-score predict model performance?25 unmodified lines26272829303114 unmodified lines46474849505152538 unmodified lines62636465666717 unmodified lines85868788899091922 unmodified lines959697989910014 unmodified lines1151161171181191201211226 unmodified lines12913013113213313427 unmodified lines1621631641651661671681692 unmodified lines17217317417517617735 unmodified lines2132142152162172182192206 unmodified lines22722822923023123253 unmodified lines2862872882892902912922931 unmodified line29529629729829930030110 unmodified lines31231331431531631731815 unmodified lines33433533633733833925 unmodified lines36536636736836937037137237337437537637737837931 unmodified lines4114124134144154164174182 unmodified lines42142242342442542656 unmodified lines4834844854864874884894908 unmodified lines4995005015025035044 unmodified lines50951051151251351451551651751851925 unmodified lines5455465475485495505515522 unmodified lines55555655755855956011 unmodified lines57257357457557657757857925 unmodified linesDCLM, Nemotron-HQ-Synth, and REWIRE lead by a significant margin (see [Baseline Comparison](#baselines-comparison)). The remaining datasets, including Cosmopedia, FineWeb-Edu (both HQ and LQ), Ultra-FineWeb, and SYNTH, fall notably behind. <mark>TLDR: DCLM is the strongest baseline and becomes our primary comparison target for all following experiments.</mark><HtmlEmbedid="baselines-comparison"src="d3-benchmark-comparison.html"14 unmodified lines}}/>The synthetic baselines use different prompts internally. Which individual prompts actually carry the weight?#### Dissecting the Synthetic BaselinesPrior synthetic datasets bundle multiple prompts together. We want to understand what makes them tick.8 unmodified linesOnly [diverse_qa_pairs](#diverse_qa_pairs) (driven by very strong SQuAD performance) and REWIRE's [guided_rewrite](#guided_rewrite_original) match DCLM (see [Dissecting Synthetic Baselines](#dissecting-baselines)). The BeyondWeb-inspired [continue](#continue) and [summarize](#summarize) prompts do not reach DCLM level. <mark>TLDR: Apart from two prompts, no existing synthetic method outperforms the DCLM baseline.</mark><HtmlEmbedid="dissecting-baselines"src="d3-benchmark-comparison.html"17 unmodified lines}}/>Can we design prompts that consistently beat DCLM?### Which New Prompts Work Well?Since most existing prompts fail to beat DCLM, we designed new prompt formats targeting different skills. <mark>Can any of them outperform the baseline?</mark>2 unmodified linesFour prompts ([math](#math), [table](#table), [faq](#faq), [tutorial](#tutorial)) outperform both FineWeb-Edu-HQ and DCLM, while [article](#article), [commentary](#commentary), and [discussion](#discussion) fall short (see [New Prompt Performance](#new-prompts)). The best-performing prompts all restructure the source content into pedagogically rich formats. <mark>TLDR: Math, table, FAQ, and tutorial prompts beat the DCLM baseline, while article, commentary, and discussion are at or below DCLM level.</mark><HtmlEmbedid="new-prompts"src="d3-benchmark-comparison.html"14 unmodified lines}}/>We used Gemma-3-1B for all experiments so far. Can we do even better by changing the rephrasing model?### Impact of the Rephrasing ModelWe want to know whether using a stronger model leads to better synthetic data. We look at this dimension from three angles: model size, model family, and model generation.6 unmodified linesThe 270M model underperforms, but 1B through 27B show no significant difference on either prompt (see [Model Size](#model-size)). Even for the harder [math](#math) prompt, larger models do not help. <mark>TLDR: Beyond a baseline capability (reached at 1B), larger models do not improve synthetic data quality.</mark><HtmlEmbedid="model-size"src="d3-benchmark-comparison.html"27 unmodified lines}}/>On high-quality source data, we see no evidence that larger models help. But REWIRE claims large models are needed specifically for low-quality data. Does that claim hold?#### Do we need better models for rephrasing low-quality data?The REWIRE [@rewire] paper claims that upcycling low-quality data requires large models (Llama-3.3 70B in their case). <mark>Does this claim hold?</mark>2 unmodified linesThe results are mixed: for some prompts 12B helps slightly with LQ data, but for the [FAQ](#faq) prompt the 1B model actually wins (see [Model Size vs Data Quality](#size-quality)). We see no consistent advantage of using larger models for low-quality data. <mark>TLDR: We cannot reproduce the claim that large models are needed for low-quality data.</mark><HtmlEmbedid="size-quality"src="d3-benchmark-comparison.html"35 unmodified lines}}/>Since model size barely matters, does the model family make a difference?#### Does the model family matter?Different model families may be better suited for rephrasing based on their training data. <mark>Do some families produce better synthetic data than others?</mark>6 unmodified linesWe hypothesize that SmolLM2's consistently strong rephrasing performance originates from explicit rewrite tasks in its instruction tuning data (smoltalk). This would mean the model already "knows" how to rewrite well before we even prompt it.</Sidenote><HtmlEmbedid="model-family"src="d3-benchmark-comparison.html"53 unmodified lines}}/>SmolLM2 is already a year old. Are newer model generations better?#### Does the model generation matter?We've seen that model family matters. But within a family, <mark>do newer versions produce better synthetic data?</mark>1 unmodified lineWe compare Qwen models from versions 1.5 [@qwen], 2 [@qwen2], 2.5 [@qwen25], and 3 on the [tutorial](#tutorial) prompt.While the differences are small, we find a consistent trend: newer versions lead to higher evaluation performance (see [Model Generation](#model-generation)). <mark>TLDR: Newer model generations tend to produce slightly better synthetic data.</mark><HtmlEmbedid="model-generation"src="d3-benchmark-comparison.html"10 unmodified lines}}}/><Note title="Summary: Impact of the Rephrasing Model" variant="info">**Model size**: 1B is sufficient. Larger models do not help.**Model family**: SmolLM2 dominates across all prompts.15 unmodified linesSynthetic-only training beats FineWeb-Edu-HQ but falls short of both DCLM and mixed training (see [Is Synthetic Data Enough?](#synthetic-only)). Mixed training consistently improves over both the synthetic-only and original-data-only baselines. <mark>TLDR: Synthetic data alone is not enough. Mixing with original data consistently improves performance.</mark><HtmlEmbedid="synthetic-only"src="d3-benchmark-comparison.html"25 unmodified lines}}/>So the mix-in dataset clearly matters. But how much does the specific choice of mix-in dataset affect performance?#### Does the mix-in dataset matter?We just saw that mixing in original data is essential. <mark>How much does the choice of mix-in dataset affect performance?</mark>We apply the [tutorial](#tutorial) prompt using Gemma-3-1B on FineWeb-Edu-HQ, then mix in one of four datasets: DCLM, Cosmopedia, FineWeb-Edu-HQ, or FineWeb-Edu-LQ. Use the Setup dropdown to also see results with LQ source data.DCLM and FineWeb-Edu-HQ outperform Cosmopedia and FineWeb-Edu-LQ as mix-in datasets. Adding synthetic data improves performance for all mix-in datasets, with the effect especially pronounced for the weaker ones (see [Mix-in Dataset Effect](#mixin-dataset)). <mark>TLDR: The mix-in dataset is a major performance driver, sometimes more important than the synthetic data itself.</mark><HtmlEmbedid="mixin-dataset"31 unmodified lines}}/>The mix-in dataset matters enormously. But what about the source dataset we feed to the rephrasing model?#### Does the source dataset matter?We know the mix-in dataset is critical. <mark>But does the quality of the source documents we feed to the rephrasing model also matter?</mark>2 unmodified linesWhen mix-in varies with source, source quality appears to matter: FineWeb-Edu-HQ and DCLM clearly outperform FineWeb-Edu-LQ and Cosmopedia (see [Source Dataset: Mix-in = Source](#source-dataset-mixin-source)). But when we fix the mix-in to FineWeb-Edu-HQ, the source effect nearly vanishes (see [Source Dataset: Fixed Mix-in](#source-dataset-fixed-mixin)). This corroborates our finding that the mix-in matters much more than the source. <mark>TLDR: Source dataset quality is secondary to mix-in dataset quality. With a strong mix-in, even low-quality sources produce competitive synthetic data.</mark><HtmlEmbedid="source-dataset-mixin-source"src="d3-benchmark-comparison.html"56 unmodified lines}}/>This is exciting because it shows the potential of upcycling low-quality data through rephrasing with format prompts. Can we squeeze out more performance by increasing diversity in the synthetic portion?#### Does increased diversity help?Given that mixing matters, a natural next step is to maximize diversity in the synthetic portion. <mark>Does combining multiple prompts or model families increase performance?</mark>8 unmodified lines<mark>TLDR: At our 20B token scale, diversity does not compound. Mixing datasets averages rather than improves performance, though larger-scale experiments may tell a different story.</mark><HtmlEmbedid="diversity"src="d3-benchmark-comparison.html"4 unmodified lines"Mixing Prompts": {datasetNames: {"mix-fw_edu_hq-tutorial_1b_hq-fw_edu_hq-faq_1b_hq-table_1b_hq-math_1b_hq": "All Prompts + FineWeb-Edu-HQ","mix-fw_edu_hq-math_1b_hq": "Math + FineWeb-Edu-HQ","mix-tutorial_1b_hq-faq_1b_hq-table_1b_hq-math_1b_hq": "All Prompts (No Source)","mix-fw_edu_hq-table_1b_hq": "Table + FineWeb-Edu-HQ","mix-fw_edu_hq-faq_1b_hq": "FAQ + FineWeb-Edu-HQ","mix-fw_edu_hq-tutorial_1b_hq": "Tutorial + FineWeb-Edu-HQ",dclm: "DCLM",fw_edu_hq: "FineWeb-Edu-HQ"}25 unmodified lines}}/>Let's turn to some unexpected findings from our experiments.### Do Typos in the Prompt Hurt?The original REWIRE prompt contains many typos and grammar errors. <mark>Do these imperfections degrade the quality of the synthetic data?</mark>2 unmodified linesSurprisingly, typos don't have a negative effect on downstream model performance. For the 1B model, the typo-laden original actually performs slightly better (see [Effect of Typos](#typos-effect)). <mark>TLDR: Typos in prompts do not hurt downstream performance.</mark><HtmlEmbedid="typos-effect"src="d3-benchmark-comparison.html"11 unmodified lines}}/>Our final experiment explores an even more counterintuitive finding.{/*### Does edu-score or DCLM-score predict model performance?
app/src/content/chapters/experiments.mdx+29-27