LLM Response Authenticity with Verifiable Inference: Detecting Diluted Relay Services

    This article examines the trust gap in large language model (LLM) call chains, where users often reach a model through gateways, proxies, aggregation platforms, and relay services rather than a bare model. It outlines three major risks—model substitution, capability downgrade, and impersonation or distillation—and explains why existing checks such as response-style comparison and upstream signature verification are insufficient. It then introduces verifiable inference as a way to bind model identity, input and output, inference process, and minimal disclosure requirements through commitments and zero-knowledge proofs. The article describes a general commitment–proof–verification workflow, shows how verifiable inference constrains relay dilution, and offers phased engineering recommendations centered on a verification gateway, audit logs, tiered policies, and contract and process controls.

    LLM Response Authenticity with Verifiable Inference: Detecting Diluted Relay Services

    1. Background: The Trust Gap in Model Call Chains

    In large language model (LLM) applications, users often do not call a bare model directly. Instead, they call through a chain that includes gateways, proxies, aggregation platforms, and relay services. A provider may connect to multiple model versions at the same time and route requests based on price, load, region, or policy. For ordinary users, a page may say “high-capability model,” but whether the actual response was generated by that model has historically depended mainly on the provider’s self-discipline.

    This trust gap creates three typical risks.

    The first is model substitution. A user pays for a high-capability model, but the proxy forwards the request to a lower-cost model and returns the result as-is. Because natural-language answers are open-ended, ordinary users find it very difficult to determine model identity from a single response.

    The second is capability downgrade. Even if the upstream provider is indeed the same vendor, a proxy may reduce costs by shortening context, lowering the maximum output, changing sampling parameters, or skipping reasoning steps. What users notice is that “the answers have become less capable,” but they lack evidence that can be reviewed.

    The third is impersonation and distillation. Some low-cost models trained on specific data can imitate the writing style of high-capability models; a proxy can then use a system prompt to require the model to “claim” to be a certain model. Asking “Who are you?” has almost no diagnostic value, because system prompts can easily rewrite self-description.

    Most existing detection methods focus on response-style comparison, returned-field checks, and upstream signature verification. These methods can prove that “a request reached some upstream,” but they can hardly prove “which specific weight version generated this response, with what parameters, and through what inference process.” The industry therefore needs a mechanism closer to an anti-counterfeiting code: one that turns “trusting the provider” into “verifying a proof.”

    2. The Goal of Verifiable Inference: Bind Model Identity to Output

    The core goal of verifiable inference is not to judge whether an answer is “good,” but to verify whether the answer satisfies a set of publicly checkable constraints:

    1. Model identity binding: The response must correspond to a publicly committed model weight and version.
    2. Input-output binding: The proof must bind the request digest, response digest, and key parameters for this request.
    3. Inference process binding: Under public verification rules, the response should be generated by the committed model according to the agreed process.
    4. Minimal information disclosure: The verifier does not need to obtain model weights or see the full sensitive input.

    In implementation, a common approach is a combination of “hash commitments + zero-knowledge proofs.” The model vendor first generates commitments for weight shards, version numbers, and inference configuration, which is equivalent to publishing a fingerprint. When the server generates an answer, it generates a proof for the request, proving that a verifiable computational relationship exists among the response, the committed model, the request digest, and the parameter digest. Users or auditors use the public commitment and proof to complete verification. The value of zero-knowledge proofs is that the prover can convince the verifier that the computational relationship holds without exposing weights and intermediate activation values.

    It is important to emphasize that this type of mechanism is not a “universal watermark.” It proves that “a response is bound to a verifiable computation,” but it cannot by itself guarantee that the model’s capability is absolutely leading, nor can it replace contracts, audits, and reputation systems. It addresses the problem of “verifiable origin,” not the problem of “absolute quality.”

    3. General Workflow: Commitment, Proof, and Verification

    1. Commitment Stage: Generate a Public Fingerprint for a Model Version

    When a model vendor releases a version, it generates commitments for weight file shards, inference code version, and key configuration, and writes the commitments to a public transparency log. A commitment can be understood as a cryptographic hash binding: once weights or configuration change, the commitment changes. When selecting a service, users should be able to obtain a public record of “which version the current commitment corresponds to, who issued it, and when it took effect.”

    The key at this stage is version transparency. If a provider can replace commitments at will without leaving a trace, authenticity protection loses its meaning. Therefore, commitments need to be used together with version logs, signatures, and revocation mechanisms.

    2. Proof Stage: Generate a Verifiable Proof for Each Response

    When the server processes a request, it records public inputs such as the request digest, response digest, sampling parameters, and model commitment, and generates a proof. The goal of the proof is to convince the verifier that there exists a computation satisfying the public rules, whose input digest matches the user request, whose output digest matches the returned response, and whose model commitment matches the public record.

    A pseudocode sketch is as follows:

    1. public_input = {
    2. request_hash: hash(request),
    3. response_hash: hash(response),
    4. params_hash: hash(sampling_params),
    5. model_commitment: commitment
    6. }
    7. proof = prove(
    8. private_witness = { weights, activations, random_seed },
    9. public_input = public_input,
    10. rule = published_inference_rule
    11. )

    In engineering practice, zero-knowledge proofs for full LLM inference are expensive. The industry usually combines sampling verification, segmented proofs, hardware trusted execution environments, and audit logs. The specific combination depends on the security level, latency budget, and cost constraints. It is not accurate to simply claim that “all inference can be proven in real time at low cost”; this requires rigorous engineering evaluation.

    3. Verification Stage: Users or Gateways Check the Proof

    After receiving a response, the verifier checks the model commitment, parameter commitment, proof, and signature carried in the response, and invokes the public verification rules. Passing verification does not mean the answer is necessarily correct, but it can prove that a binding relationship exists between the response, the committed model, and the request.

    1. def verify_response(resp, public_commitment, proof):
    2. assert resp.model_commitment == public_commitment
    3. assert verify_signature(resp.audit_record)
    4. assert verify_proof(
    5. proof,
    6. public_input={
    7. "request_hash": hash(resp.request),
    8. "response_hash": hash(resp.output),
    9. "params_hash": hash(resp.params),
    10. "model_commitment": public_commitment
    11. }
    12. )
    13. return True

    4. Where Verifiable Inference Constrains Relay “Dilution”

    Verifiable inference constrains relay proxies mainly in three ways.

    First, model substitution becomes visible. If a proxy forwards a request to another model, it cannot generate a proof that matches the committed model. Users or verification gateways can require responses to carry proofs; when a proof is missing, verification fails, or the commitment does not match, the request can be rejected or downgraded according to policy.

    Second, capability downgrade becomes auditable. If a proxy secretly changes context length, output limits, sampling parameters, or inference configuration, the parameter commitment and configuration commitment will change. Public rules can bring key parameters into the scope of the proof, so that “silent parameter changes” leave verifiable traces.

    Third, impersonation through distillation is difficult to pass directly. A distilled model can imitate style, but it cannot forge a proof bound to the target model’s commitment. Unless it can obtain the target model’s weights and proving capability, it cannot pass strict verification.

    Of course, all of this depends on the model vendor being willing to cooperate and the verifier having a clear admission policy. If a proxy refuses to provide proofs, users can at least identify an “unverifiable” state instead of continuing to trust blindly. For high-value business, “support for verifiable proofs” can be written into procurement and service-level requirements to form an auditable supply-chain constraint.

    5. Engineering Recommendations: Start with a Verification Gateway

    In deployment, it is not necessary to pursue full end-to-end real-time proofs from the beginning. Progress can be made in stages.

    1. Build a model commitment directory: Record model versions, commitments, signatures, effective times, and revocation status.
    2. Add a verification gateway at the access layer: Perform proof verification, commitment verification, and audit recording on responses.
    3. Use tiered policies: Apply strong verification to high-risk tasks and sampling verification to low-risk tasks.
    4. Set up anomaly alerts: Trigger alerts for missing proofs, commitment mismatches, and parameter drift.
    5. Retain audit logs: Write request digests, response digests, commitments, and verification results to the logging system for traceability.
    6. Align contracts and processes: Include verifiable proofs in service admission and audit terms.

    A pseudocode example for the verification gateway is as follows:

    1. def gateway_check(response, policy):
    2. if not response.has_proof:
    3. return policy.on_missing_proof # reject or downgrade
    4. if not verify_response(response, response.public_commitment, response.proof):
    5. return policy.on_invalid_proof
    6. if not commitment_in_transparency_log(response.public_commitment):
    7. return policy.on_unknown_commitment
    8. audit_log(response.audit_record, result="pass")
    9. return "pass"

    6. Conclusion: No One-Click Elimination of All Problems, but Trust Can Become Evidence

    Verifiable inference is not magic. It requires vendor cooperation, public standards, and controllable verification costs, and it must acknowledge the real-world boundaries of LLM inference proofs in terms of performance and engineering complexity. However, it provides a clear path: create checkable binding relationships among model identity, version, parameters, and responses, so that model substitution, silent parameter changes, and impersonation by relay proxies leave verifiable evidence.

    For developers and enterprises, a more practical approach is to incorporate “verifiable origin” into the model service admission system: prioritize what can be verified, clearly mark the risk of what cannot be verified, apply strong verification to high-risk scenarios and sampling verification to low-risk scenarios, and use contracts, logs, and audits to complement technical boundaries. In this way, even if all “dilution” cannot be eliminated at once, the steps that previously relied only on trust can gradually become reviewable and accountable engineering processes.