Which evidence unit should stay together across a split?
Hypothetical scenario. Northwind wants better supervision for its support-routing adapter. Maya sees a growing set of paraphrased requests, but Dev finds descendants of the same conversation in training and evaluation. Priya asks what independent behavior the reported improvement actually tests.
Maya: “More examples look useful, but are these genuinely different source conversations?”
Dev: “The strings differ while their parent evidence is shared.”
Priya: “Choose the split unit before generating descendants, and retain their lineage.”
This optional depth chapter builds on adaptation, preference labels and held-out evaluation. You will specify usable training examples, assign independent groups to splits and inspect synthetic supervision without treating fluent generation as accepted labeling.
Start with a dataset specification, not a target row count. State the input that the deployed model will receive, the response behavior it should learn, the allowed evidence and the reasons to reject a candidate example. Include unknown and disputed labels explicitly. A pipeline that turns every uncertainty into a confident target silently changes the problem.
Choose the independent unit before assigning a split
A row is a storage unit. It is not necessarily an independent observation. A conversation can have many turns, an incident can create multiple tickets, and a policy document can produce many generated questions. If those related rows cross partitions, an evaluation may reward remembering the underlying source.
Choose grouping keys appropriate to the intended generalization. Group by conversation when evaluating new conversations; by source document when evaluating new documents; by customer or time interval when those define the deployment change. There can be several useful evaluations with different boundaries. One split cannot answer all questions merely because it uses a familiar percentage.
Perform this assignment before paraphrasing or generating descendants. Children inherit the partition of their parent evidence. Deduplicating exact strings afterward is insufficient because a paraphrase can preserve the same answer-bearing facts. Keep parent identifiers and transformation history so the relationship remains inspectable even when the words differ.
Split by source lineage before generating examples
Hypothetical scenario. Several synthetic questions are generated from one policy document. Randomly splitting those questions can put nearly identical evidence into training and test, overstating generalization. Choose the independent source group before expansion.
| Artifact | Concrete evidence | Decision boundary |
|---|---|---|
| Source group | document/family identity and revision | Split unit |
| Example lineage | transform, teacher, label evidence | Traceable supervision |
| Disposition | accepted/rejected/corrected and reason | Quality funnel |
An example records original source revision, transformation, label/rubric and any generated teacher output. Synthetic supervision is a proposal requiring checks, not new independent ground truth. Corrections and deletion obligations need a path back through generated descendants. Keep contamination checks and held-out acceptance cases separate from the training objective, and document where source permissions permit the selected use.
A usable example has a traceable target decision
For each example, retain source identity, the input presented to the model, the target, the label policy and relevant review state. For generated material, also retain the generator configuration and parent source. Store this information under appropriate access controls; provenance should not become a second uncontrolled copy of sensitive source data.
The label policy should distinguish evidence-derived facts from preferred response style. A target may be factually supported but too verbose, or concise but unsupported. Training these as one undifferentiated “good” label hides the correction required. Specify how disagreements are resolved and preserve unresolved cases outside the accepted training pool.
Hugging Face's dataset-card documentation provides a concrete documentation mechanism for a dataset's scope and use. Such a card helps communicate the record. It is not evidence that every row is correct or that a claimed restriction is actually enforced by the storage and training systems.
Work through a candidate funnel with explicit denominators
Hypothetical scenario. Begin with 1,200 source conversations. A selected review finds 100 conversations whose data may not be used for this training purpose and 100 without a supportable target. Assume these groups do not overlap. The eligible set is 1,200 − 100 − 100 = 1,000 conversations.
Assign these conversation groups before augmentation: 800 to training, 100 to validation and 100 to final testing. The sum is 800 + 100 + 100 = 1,000. Choose to generate two additional candidate demonstrations from each training conversation. There are 800 × 2 = 1,600 generated candidates, alongside 800 original training examples.
If a chosen review rejects 400 generated candidates, 1,600 − 400 = 1,200 remain. The training pool becomes 800 + 1,200 = 2,000 examples. The final test still represents 100 independent conversations, not 2,000. Generation enlarged the training representation, not the amount of independent held-out evidence.
Suppose a separate audit samples 100 accepted generated examples and finds 8 incorrect targets. The observed sample error fraction is 8 / 100 = 8%. It is not proof that precisely 8% of all 1,200 accepted generated examples are wrong. Sampling design, category coverage and uncertainty matter; the result is a reason to investigate the acceptance process rather than a license to extrapolate a precise count.
Generation proposes supervision; validation accepts it
A model can propose alternative requests, candidate answers or difficult contrasts. Each operation has a different failure mode. A paraphrase can change the requested action; a generated answer can add an unsupported exception; a negative example can actually be a valid alternative. Evaluate the transformation against the source and the intended task.
Using the same generator to produce and approve every answer can reproduce its blind spots. Another model is not automatically an independent authority either. For facts, compare with the underlying authorized source. For executable constraints, use the relevant deterministic check. For subjective response quality, use a clear human-review policy and record disagreement rather than pretending the label is a measurement of truth.
Separate generation novelty from useful coverage. Many paraphrases of easy examples may teach surface variety without covering rare decisions. Select candidates for missing behaviors and failure categories. Do not claim synthetic data is intrinsically better or worse; its value depends on what was generated, what was filtered and how the resulting model performs on independent tasks.
In the wild: a documented process for generated instructions
The Self-Instruct paper describes generating instruction data and filtering candidates. It is a primary example of a generation-and-selection approach. Its existence does not establish that Northwind can copy its conclusions to different data, task requirements or source restrictions.
The useful mechanism is the separation between candidate production and acceptance. Northwind still needs a target policy, lineage and a held-out task. Treat the paper as a worked research approach, not as a guarantee that increasing generated row count improves a particular deployed assistant.
A correct historical target can become unsuitable supervision
Training records often outlive the policy version used to label them. Preserve that context and decide whether the desired response pattern should remain stable across policy changes. If the task should consult current evidence, demonstrations should teach evidence use rather than memorize a policy detail that will soon change.
Hypothetical scenario. Northwind generates many answers from a returns document, then revises the eligible return window. An adapter continues answering from the old target wording despite receiving a current paragraph. The training pool contains an objective conflict. Repair examples and retest evidence-following behavior rather than merely replacing the retrieval index.
Removing a source from a dataset manifest does not prove that an already trained artifact no longer reflects it. Track which model releases used each dataset version and decide what rebuilding or withdrawal is needed. Do not promise exact model unlearning from an ordinary file deletion.
Balance is a task choice with competing costs
A uniform category mix may help diagnose rare cases but differ from production traffic. A traffic-weighted mix may reflect average use while hiding important low-frequency failures. Maintain a diagnostic view by category alongside the deployment-weighted view. If weighting changes, record it; an apparent metric improvement can otherwise be a change in the question being asked.
Likewise, overly aggressive duplicate removal can discard legitimate repeated patterns, while weak grouping can leak answer-bearing evidence. Define what similarity means for this task. Exact matching, approximate text matching and shared-source grouping catch different relationships. Review boundary cases instead of treating one threshold as a universal data-quality rule.
Build the pipeline when labeling decisions can be explained
A curated training pipeline is useful when recurring behavior failures can be demonstrated and a release evaluation exists. Start smaller when target correctness is disputed, source access is unclear or the deployed input contract keeps changing. Improving the task definition can be more valuable than producing additional examples.
Record exclusions without exposing the excluded data in public reports. Publish aggregate counts only when they are real measurements or explicitly chosen examples. The counts in this chapter describe a hypothetical derivation, not a Northwind dataset, reader volume or an owner experiment.
Before training, sample complete examples from each category and trace them back to their source and review decision. Verify that the model receives only the information available at deployment. A label generated using privileged future information can make a target impossible to infer from the actual runtime input.
Review the target decision before reviewing fluency
A fluent response can conceal an unsupported label, while an awkward response may contain the correct decision. Ask reviewers to identify the source that supports the answer and the rule that determines the response category before polishing wording. Keep those decisions separate in the review record so a later policy correction can find affected examples without searching for one phrase.
Use a small shared review set to expose disagreements early. Agreement after discussion is a resolved labeling choice, not proof that the policy is universally correct. Record the adopted interpretation and preserve cases that remain unresolved outside the training target set.
Test the source group boundary
Two test questions differ in wording but derive from a training passage. Are they independent evidence?
Reveal the design reasoning
Not for evaluating unseen-source generalization. Group by the appropriate lineage and report the narrower claim if the overlap is intentional. Do not count paraphrases as new independent sources.
Decision: Preserve source groups, supervision provenance and correction obligations.
Test the evidence behind the dataset
Two thousand paraphrases are randomly split after generation. What is the evaluation problem?
Related descendants can appear on both sides, allowing the test to reward familiarity with the same parent facts. Partition independent source groups first, then keep descendants with their parent. Exact-string deduplication cannot remove every semantic relationship.
An audit finds eight wrong targets among 100 sampled accepted examples. Are exactly 96 of 1,200 accepted examples wrong?
No. The sample fraction is 8%, and 1,200 × 0.08 = 96 is an extrapolated estimate under assumptions, not an observed count. Inspect sampling, uncertainty and category concentrations before deciding how to repair the pipeline.
A policy document is withdrawn from the training manifest. Is a previously trained adapter thereby corrected?
No. The manifest change affects future dataset construction; the existing parameters remain. Use lineage to identify affected releases and evaluate rebuilding or withdrawing them. Do not claim that deleting a row performs model unlearning.
Northwind decision log
- Split conversation and source groups before producing generated descendants.
- Accept supervision using a documented target policy and inspectable source evidence.
- Track dataset versions into model releases and evaluate on independent task cases.
Go deeper: data representation and repeatability
- Video lecture: The spelled-out intro to language modeling: building makemore, Andrej Karpathy. Work through likelihood training and distinguish a prediction objective from target correctness.
- Book chapter: Machine Learning Design Patterns, chapter 2: Data Representation Design Patterns, Valliappa Lakshmanan, Sara Robinson and Michael Munn. Consider what information examples preserve or omit.
- Book chapter: Machine Learning Design Patterns, chapter 6: Reproducibility Design Patterns, the same authors. Connect lineage and versioning to a repeatable training decision.
- Primary paper: Self-Instruct: Aligning Language Models with Self-Generated Instructions, Yizhong Wang and colleagues. Examine generation and filtering as separate stages.
Northwind can trace the data behind an adaptation candidate. Page 52 examines whether the training computation can run: revisit adaptation and serving memory before inventorying gradients, optimizer state, activations and distributed communication.