How to Evaluate and Verify Output Similarity Between Large Language Models
This article explains why similar outputs from two large language models do not prove shared origin, and how to turn subjective impressions into measurable, reproducible checks. It covers the three causes of similarity (prompt constraints, common public implementations, and genuine data transfer), four measurement dimensions, a token-overlap comparison script, reproducibility-first experiment design, a three-tier evidence framework with clear conclusion boundaries, and how to validate vendor cost-reduction claims using total cost per task. It closes with practical engineering recommendations for evaluation sets, full-chain logging, monitoring, and compliance.
1. The Starting Point: Similar Does Not Mean Shared Origin
A typical model comparison experiment triggered a dispute: a newly released large model produced results that “looked very similar” to another widely used model across several generation tasks. Observers listed a set of common points, such as a red scarf trailing backward that both added spontaneously (the prompt did not ask for it), an identical sun center and radius, identical wheel-center coordinates, and the same starting point for the neck line plus the same two stroke widths. In game-generation tasks, they then found a cell-for-cell identical classic maze layout, a shared resource and unit system, and the same random seed constant.
After rerunning, the conclusion reversed: some of the “common points” did not reappear, an 89-lexical-unit sound-effect snippet no longer matched, the maze data representation switched to a different one, and similarity actually fell back to an earlier version. This shows that single-point similarity is highly unstable and cannot serve as a basis for judgment.
It is worth being clear that “similar” has at least three possible causes:
- Prompt induction: the task itself carries strong constraints (such as “pelican riding a bicycle” or “Pac-Man”), so converging on a similar answer is normal.
- Common public implementations: classic mazes, public algorithms such as Mulberry32, common constants such as 0x6D2B79F5, and general rendering approaches such as Three.js are public knowledge.
- Actual data transfer: only after ruling out the first two does a stable, reproducible, highly specific snippet carry evidential value.
2. Turning “Looks Alike” Into Measurable Metrics
To make a conclusion defensible, subjective impressions must be converted into quantifiable, reproducible metrics. At least four dimensions should be covered:
- Structural consistency: whether hard parameters such as coordinates, radii, stroke widths, and grid sizes match digit by digit.
- Lexical-unit overlap: measure the longest common snippets at token granularity, and annotate whether each snippet is a common implementation.
- Cross-version stability: whether the same model hits the same snippets across repeated runs and at different temperatures.
- Specificity: the lower the probability that a snippet appears in public corpora, the higher its evidential weight.
The comparison logic can be sketched as:
def compare(a_tokens, b_tokens, min_len=40):# Return the longest common snippets above the threshold for manual specificity reviewfrom difflib import SequenceMatchersm = SequenceMatcher(None, a_tokens, b_tokens)hits = []for m in sm.get_matching_blocks():if m.size >= min_len:hits.append((m.a, m.b, m.size))return sorted(hits, key=lambda x: -x[2])
What matters is not the code itself but the process: fix the prompt and random seed first, sample repeatedly over multiple rounds, annotate the matched snippets for “publicly common or not,” and only then discuss shared origin.
3. Experiment Design: Reproducibility First
- Control variables: keep the prompt, temperature, maximum length, and system instructions all fixed; change only the model under test.
- Repeated sampling: run multiple rounds per task and record hit rates rather than single outcomes.
- Layered tasks: pick one task each from geometric drawing, mazes, real-time strategy, voxels, and flight simulation to avoid single-task bias.
- Blind review and withholding: reviewers should not know the “expected conclusion” in advance, reducing confirmation bias.
- Version comparison: place different minor versions in the same matrix for cross-comparison and observe whether similarity drifts with version.
A typical phenomenon in practice is that similarity “jumps” between versions, which is precisely what suggests it more likely comes from training-data distribution and prompt convergence than from stable code-level copying.
4. Evidence Tiers and Conclusion Boundaries
A three-tier evidence system is recommended:
- Weak evidence: visual or stylistic resemblance with no quantitative support; cannot support a conclusion.
- Medium evidence: coordinate-level or structural-level agreement that can still be explained by the task constraints.
- Strong evidence: a specific long snippet that hits stably across multiple rounds and temperatures, and that lacks public commonness.
Even with strong evidence, the statement can only be that “the results are compatible,” because shared corpora, similar prompts, and public implementations all produce compatibility. Proving a distillation relationship would additionally require model-side information, which is usually unavailable. So the more sound engineering-level phrasing is: under the given experimental conditions, no stable specific evidence sufficient to confirm data transfer was found.
5. The Cost Angle: How to Verify Claimed Cost Reduction
New models often use “lower task cost” as a selling point. Verifying cost reduction should not look at unit price alone but at total cost per task:
Cost per task ≈ input token cost + output token cost + retry cost + orchestration and storage cost
Cost reduction usually comes from three places: shorter prompts and outputs, a higher first-pass rate (fewer retries), and more sensible context trimming. On the engineering side, caching, batching, and tiered model routing (simple tasks to small models) can push costs down further. It is worth noting that any cost-reduction percentage should be re-measured on your own dataset; publicly claimed figures serve only as a reference range.
6. Engineering Recommendations
- Build an evaluation set: turn drawing, game, and code tasks into fixed regression cases.
- Log the full chain: record prompts, parameters, outputs, latency, and cost into a logging service for traceability.
- Monitoring and alerting: set threshold alerts for first-pass rate, retry rate, and cost per task.
- Compliance first: similarity investigations should target only publicly obtainable outputs and must not involve unauthorized access to other parties’ models or data.
- Keep conclusions on record: write the evidence tier and experimental conditions into the report to avoid “it just looks similar” judgments.
7. Conclusion
“Two models produce similar outputs” is not a technical conclusion in itself, but an experimental question that needs to be designed. Only by separating prompt constraints, public implementations, and actual data transfer, and by replacing subjective impressions with reproducible sampling and quantitative metrics, can you make defensible trade-offs among cost, quality, and compliance.
