r/PromptDesign • • 11d ago

Discussion 🗣 how much does a single example in your prompt steer the output? A small test you can run

Many of us add an example to a prompt to show the format we want. My working assumption is that models often copy more from the example than we intend: its length, its structure, its wording, even its topic. I haven’t measured this rigorously, so here’s a small experiment instead of a claim. If you try it, I’d like to compare notes.

Setup
Pick one task where output style matters, for example “write a one-paragraph product description” or “summarize this support ticket.” Keep the instruction text identical across variants and change only the examples.

  • Variant A: no example, just the instruction.
  • Variant B: one example.
  • Variant C: three examples that differ from each other on purpose (different length, different tone, different subject).
  • Variant D: the same three examples, plus one line saying which properties are required and which are just illustrative (“only the JSON fields are required; length and wording are free”).

Run each variant on the same set of, say, 10 different inputs, with the same model and settings. If your setup is random, run each input a few times.

What to look at

  • Length: does the output length cluster around the example’s length?
  • Wording: do phrases from the example show up in outputs where they don’t fit?
  • Topic leakage: do details from the example appear in unrelated inputs?
  • Diversity: how similar are the outputs to each other across inputs?
  • Format compliance: does the structure still hold?

My hypotheses (not results)

  1. B will look most like its example and C less so, because varied examples signal what’s fixed and what’s free.
  2. D will reduce copying of incidental features compared with C, though it might not eliminate it.
  3. A will be the most variable in format, which may or may not matter for your use case.

Caveats

  • Results will depend on the model, the task, and the settings, so a pattern on one setup may not hold on another.
  • Ten inputs is a smoke test, not evidence.
  • If your outputs are parsed by code, format compliance may matter more than diversity, and the best variant may be different.

If you run this, what did you see? In particular, did “explicitly marking what’s illustrative” help, or did the model copy anyway?

1 Upvotes

1 comment sorted by

1

u/ArchitecturalGravity 10d ago

Using an example can bias a model if the example contains 'example' data. Think more in terms of templating than an example; that is, provide it the shape of the structure, and placeholders for where the data should be.

See:

Experiment:
  • Objective:
- Measure incidental style imitation from few-shot examples - Distinguish required output properties from illustrative properties [InstructionTemplate]: """ Summarize the support ticket as a JSON object containing:
  • `summary`
  • `impact`
  • `nextAction`
""" [InputTemplate]: """ Ticket: <TICKET> """ [ExampleSpecifications]:
  • E1:
- Subject: Billing - Length: Short - Tone: Neutral
  • E2:
- Subject: Technical support - Length: Long - Tone: Empathetic
  • E3:
- Subject: Account access - Length: Medium - Tone: Direct [ClarificationTemplate]: """ Only the JSON fields are required; length and wording are free. """ [Variants]:
  • A:
- Instruction: [InstructionTemplate] - Examples: None
  • B:
- Instruction: [InstructionTemplate] - Examples: - E1
  • C:
- Instruction: [InstructionTemplate] - Examples: - E1 - E2 - E3
  • D:
- Instruction: [InstructionTemplate] - Examples: - E1 - E2 - E3 - Append: [ClarificationTemplate] [Protocol]:
  • Preparation:
- Generate three fixed input-output demonstrations from [ExampleSpecifications] - Generate 10 distinct test tickets - Exclude demonstration subjects from test inputs where practical
  • Controls:
- Model: Identical - Settings: Identical - Instruction: Verbatim across variants - Inputs: Identical across variants - Demonstrations: Reuse without modification - Repetitions: - Deterministic: 1 per input - Stochastic: 3 per input
  • Assembly:
1. Insert [InstructionTemplate] 2. Insert demonstrations selected by [Variants] 3. Append [ClarificationTemplate] only for D 4. Append [InputTemplate] populated with current test ticket [Evaluation]:
  • Length:
- Measure output length - Compare distributions against demonstration lengths
  • Wording:
- Detect copied phrases - Distinguish appropriate reuse from incidental imitation
  • TopicLeakage:
- Detect demonstration-specific details in unrelated outputs
  • Diversity:
- Compare output similarity across test inputs - Compare variation across repeated runs
  • FormatCompliance:
- Validate JSON syntax - Verify required fields - Record structural failures [Hypotheses]:
  • A:
- Greatest format variability
  • B:
- Strongest resemblance to its example
  • C:
- Reduced incidental imitation through example diversity
  • D:
- Less incidental copying than C - Copying may persist [Constraints]:
  • Preserve the same base instruction across all variants
  • Change only demonstration selection and D's clarification
  • Treat [Hypotheses] as predictions rather than findings
  • Separate measured observations from interpretation
  • Preserve failed and noncompliant outputs
  • Avoid generalizing beyond the tested model and settings
  • Treat 10 inputs as exploratory evidence rather than proof
  • Prioritize format compliance when outputs require machine parsing
[ReportTemplate]: """ Configuration:
  • Task: <TASK>
  • Model: <MODEL>
  • Settings: <SETTINGS>
  • Input Count: <INPUT_COUNT>
  • Repetition Count: <REPETITION_COUNT>
Results:
  • Per-Variant Measurements: <MEASUREMENTS>
  • Cross-Variant Comparisons: <COMPARISONS>
  • Representative Outputs: <EXAMPLES>
Interpretation:
  • Supported Hypotheses: <SUPPORTED>
  • Contradicted Hypotheses: <CONTRADICTED>
  • Unresolved Observations: <UNRESOLVED>
Limitations:
  • Sample Size: <SAMPLE_LIMITATIONS>
  • Model Dependence: <MODEL_LIMITATIONS>
  • Task Dependence: <TASK_LIMITATIONS>
  • Sampling Variability: <SAMPLING_LIMITATIONS>
""" Task: 1. Generate demonstrations from [ExampleSpecifications] 2. Instantiate [Variants] using [InstructionTemplate] 3. Execute [Protocol] across all test inputs 4. Measure outputs against [Evaluation] 5. Compare observations with [Hypotheses] 6. Populate [ReportTemplate] using observed evidence 7. Return findings with limitations and unresolved uncertainty