When Model Outputs Look Alike: A Reproducible Methodology for Evaluating Similarity in Large Language Models

    This article presents a reproducible methodology for assessing whether two large language models (LLMs) produce suspiciously similar outputs, using code generation tasks as a stable fingerprint. It details the experimental design, key findings from multi-round comparisons, and four criteria for distinguishing genuine distillation from common knowledge or sampling coincidence. The goal is to help developers and enterprises avoid false conclusions when evaluating model independence and cost-saving claims.

    1. Background: When “60% Cost Reduction” Meets “Strikingly Similar Outputs”

    A vendor recently released a new flagship large language model, with one of its key marketing points being “task cost reduction exceeding 60%.” Such claims are not uncommon in the industry, but they often spark community speculation: does a significant cost drop imply that the model was not independently trained, but rather had its capabilities “transferred” from another model via distillation?

    Answering this question requires more than intuition or a few screenshots. We designed a controlled experiment: we prompted the new model and a known reference model (including multiple historical versions) with identical prompts to generate outputs across several task types, including vector illustration code, pixel games, flight simulations, and real-time strategy games. We then performed structured comparisons of the generated outputs. This article does not draw conclusions about any specific model; instead, it abstracts the experimental process into a reusable methodology for developers and enterprises evaluating model choices.

    All models in the experiment are anonymized, because the method matters more than the brand—if you can use it to evaluate Model A vs. Model B today, you can use it to evaluate any newly released model tomorrow.

    2. Experimental Design: Why Code-Generated Artifacts Are Used as Fingerprints

    2.1 Direct Weight Comparison Is Not Feasible

    For closed-source models, we cannot access weights or training data. The only observable inputs and outputs are prompts and generated results. Therefore, “distillation detection” effectively reduces to “output distribution similarity detection.”

    2.2 Why Code Rather Than Conversational Text

    Similarity in open-ended dialogue is hard to attribute: politeness phrases, common expressions, and general knowledge all contribute to superficial resemblance. Code generation tasks—especially generating a complete mini-game or complex graphic from scratch—offer several advantages:

    • High degrees of freedom: For a task like “a pelican riding a bicycle” as a vector graphic, the coordinate origin, canvas size, element positions, colors, and control points are all freely chosen by the model. The theoretical solution space is enormous.
    • Precise quantifiability: Coordinate values, random seeds, maze dimensions, and audio lexical units are discrete and directly comparable.
    • Reproducibility: The same prompt can be run multiple times to verify whether similarities persist.

    2.3 Control Group Setup

    The experiment includes multiple historical versions of the reference model (denoted V5, V5.1, V5.2). This multi-version control is critical: if the new model resembles only one version but differs from others, the similarity may stem from version-specific implementation. If it resembles all versions, the similarity more likely arises from common knowledge or shared training data.

    3. Key Findings: Similarities Exist but Lack Stability

    3.1 Round One: “Suspicious Coincidences” in Illustration Tasks

    In the vector illustration generation task, cross-comparing outputs under different reasoning intensity levels revealed several fine-grained overlaps:

    • Detail coincidence: Both models drew a “red scarf fluttering backward” that was not explicitly requested, but the background compositions differed (one a grassy slope, the other a seaside).
    • Numeric coincidence: The center coordinates of one graphic element were identical at (690, 90), with the same radius of 45, differing only in fill color. In another task, the wheel center coordinates matched exactly, and the neck line starting point and two stroke widths were also identical.
    • Coexisting differences: The control points of the neck curve were not identical, indicating the overall outline was not copied byte-for-byte.

    Consistency at the coordinate level is extremely unlikely in free-form generation, so initially these looked like genuine fingerprints.

    3.2 Round Two: Reruns Did Not Reproduce the “Common Points”

    The critical step: when we reran the same model with the same prompt, the above coincidences did not reappear. This directly changed the nature of the conclusion:

    • Unstable similarities can only be explained as both models sampling from high-probability regions of “common implementations.” For example, placing a circle in the upper right of the canvas or using symmetric wheel layouts are common composition choices.
    • A true distillation fingerprint should exhibit cross-sampling stability: after changing random seeds, rephrasing prompts, and running multiple times, specific long fragments should still recur with high probability.

    Therefore, this type of evidence neither confirms nor rules out distillation; it only demonstrates that the two outputs are “compatible,” and their similarity could stem from public common implementations, shared training corpora, or similar prompt-induced behavior.

    3.3 Round Three: Multi-Task Game Generation Comparison

    We then used four game categories for a larger sample comparison, and the results further supported the above conclusion:

    • Classic arcade game: The new model and reference versions V5 and V5.1 all reproduced the identical 31×28 grid-based classic maze, while V5.2 used a different data representation. However, the classic maze layout is publicly available; any model trained on similar corpus could reproduce it from memory. We also found a 89-lexical-unit audio snippet match between some versions, but this snippet did not reappear on rerun—again confirming “unstable means not a fingerprint.”
    • Real-time strategy game: All versions showed similarity in architecture-level concepts (resource, building, unit, fog of war, enemy system), but code overlap was extremely low. Similarity at the conceptual level combined with different implementations points toward shared domain knowledge rather than distillation.
    • Voxel sandbox and flight simulation: All four outputs used the same mainstream 3D rendering library, similar terrain generation and collision detection patterns, and even the same pseudo-random number generator constant. However, this constant belongs to a public and widely known algorithm (a common 32-bit seed hashing function). Its appearance in any model’s output cannot serve as evidence of distillation.

    4. Methodology: How to Rigorously Evaluate Model Similarity

    Based on these experiments, we derive four criteria for judgment:

    1. Distinguish “conceptual similarity” from “implementation similarity.” Both using fog of war or ray picking is domain common sense; only bit-level consistency of coordinates, constants, or long lexical fragments holds evidentiary value.
    2. Reproducibility is the gold standard. Any similarity point must be verified through multiple reruns. For models with non-zero sampling temperature, a single-output coincidence has no statistical significance.
    3. Exclude common-knowledge priors. Classic maze dimensions, well-known algorithm constants, and mainstream library usage are “high-frequency items in public corpora.” Matching them only indicates that both models have read the internet.
    4. Use multi-version controls to avoid false positives. An isolated similarity with a single version may be coincidental; similarity with all versions of a series more likely points to shared data rather than targeted distillation.

    A simplified similarity evaluation flow:

    1. for task in high-freedom-tasks:
    2. for run in range(N): # N >= 5 reruns
    3. outputs_A.append(model_A(task))
    4. outputs_B.append(model_B(task))
    5. extract quantifiable features (coordinates/constants/long-token segments)
    6. count stable hit rate across runs
    7. Verdict: stable hits AND not common public implementation → strong evidence
    8. single hit OR part of public common sense → not evidence

    5. Back to the Cost Question: 60% Cost Reduction and Model Provenance Are Separate Issues

    Finally, we should clarify a common misunderstanding: a reduction in inference cost is not inherently related to whether a model was distilled. Cost optimization can come from more efficient attention implementations, lower-precision quantized inference, better scheduling and caching, and improvements in training data and architecture. When selecting a model, enterprises should:

    • Use their own business prompt sets for private benchmark testing, focusing on four hard metrics: task completion quality, latency, throughput, and stability.
    • For “cost reduction” claims, require a reproducible testing protocol: whether input/output length, concurrency conditions, and billing units are consistent.
    • If private deployment or elastic compute is required, build a self-hosted evaluation pipeline based on common cloud platform capabilities (such as container platforms, object storage, logging, and monitoring services). Major cloud providers—including Baidu AI Cloud—offer general-purpose product suites for LLM inference deployment and observability, which can serve as infrastructure options for enterprise self-hosted evaluation and production environments.

    6. Conclusion

    The biggest takeaway from this experiment is not “who distilled whom,” but a calm evaluation approach: when faced with similarity evidence, first test reproducibility, then exclude common-knowledge priors, and only then consider attribution. A single screenshot of “hard evidence” often fails under reruns. Responsible model evaluation should be built on multi-task, multi-round, quantifiable comparison experiments. For developers, mastering this methodology offers greater long-term value than memorizing any single benchmark result.