Mental model
Decentralized GPU compute schedules a workload across providers that operate separate machines, networks, and service policies. The marketplace helps match capacity and price; a pinned job manifest defines what should run; the verification layer checks what the worker actually returned. A lease or an output hash alone does not prove that the requested model ran correctly on the advertised hardware.
Learning outcomes
- Trace a GPU job from immutable manifest through provider assignment, execution, verification, and settlement.
- Explain what a container digest, a TDX quote, and repeated execution each prove and leave unproven.
- Estimate the reliability and cost trade-off of replicating a job across independent providers.
Theory
Provider networks such as Akash, io.net, and Render expose different request, matching, deployment, and payment flows, but a production scheduler needs a common workload contract. Before dispatch, record a job ID, input digest or protected object reference, container image digest, model-weight digest, inference code revision, expected accelerator type, memory requirement, deterministic settings, output schema, deadline, and maximum lease cost. Hash the canonical representation so every provider and verifier can identify the same job. A mutable tag such as latest is not a reproducible software identity.
The marketplace stage compares offers with the workload's capacity and policy constraints. The scheduler then leases a provider, transfers only the authorized inputs, starts the pinned image, and captures a result plus execution metadata. The result should be bound to the manifest digest, provider identity, software measurements, and an idempotency key. If the scheduler retries after a timeout, it can query the same job ID rather than paying for an accidental duplicate. Provider documentation explains how each market handles deployment or GPU capacity; those product claims still need workload-specific measurement before they become an SLA.
Verification can combine several methods. An output digest proves that bytes match a reported value, not that the output is correct. A trusted execution environment can produce a signed quote tied to a measured launch state. With Intel TDX, the verifier must check the quote signature, certificate collateral, TCB status, expected measurement, freshness, and any nonce in the challenge. A valid quote gives evidence about a trust domain's measured VM state. It does not automatically prove which GPU ran the kernel or that the accelerator is inside the attested trust boundary; device attestation and data-path coverage must be checked separately.
For deterministic inference, a scheduler can also send the same manifest to several providers and compare canonical outputs. Replication detects some provider faults but multiplies GPU time and fails when workers share a faulty image, poisoned weights, or a systematic model bug. Floating point kernels can differ across GPU architectures, so define whether verification uses exact output bytes, a quantized representation, a bounded numerical tolerance, or a proof over a specified arithmetic circuit. A zero-knowledge inference proof can attest to the circuit's computation, but it only proves the encoded circuit and committed model/input relation; it does not certify that the model is useful or that the training data is honest.
Worked example
Suppose one provider has an independent 1% probability of returning an incorrect result for a deterministic job. Running the job on three providers and accepting a strict majority reduces the probability that the majority is wrong to about 0.0298%, under the independence assumption. That is a substantial reduction from 1%, but it consumes three times the accelerator work and still fails if all providers run the same buggy container. The scheduler should diversify provider, image build, and hardware where the risk justifies the expense, and retain golden test vectors to catch common-mode errors.
Quantitative model
For three independent workers with per-worker error probability p, majority error occurs when at least two workers are wrong:
At p = 0.01, this is 0.000298, or 0.0298%. This model assumes independent failures and exact output comparison. Correlated providers, nondeterministic kernels, and a shared incorrect model violate that assumption, so evaluate disagreement and false acceptance on production-like workloads rather than treating the formula as a guarantee.
Implementation pattern
This Python example accepts a deterministic result only when multiple distinct workers report the same manifest and output digest. It detects disagreement and duplicate identities; it does not prove execution correctness, so a production verifier must add attestation, a golden test, or an appropriate computation proof.
pythonfrom collections import defaultdictimport hashlibimport jsondef digest(data: bytes) -> str:return hashlib.sha256(data).hexdigest()def manifest_hash(manifest: dict) -> str:canonical = json.dumps(manifest, sort_keys=True, separators=(",", ":"))return digest(canonical.encode("utf-8"))def accept_quorum(manifest: dict, results: list[tuple[str, str, bytes]], quorum: int = 2) -> dict:expected_manifest = manifest_hash(manifest)seen_workers: set[str] = set()votes: dict[str, set[str]] = defaultdict(set)for worker, reported_manifest, output in results:if worker in seen_workers:raise ValueError(f"duplicate provider identity: {worker}")seen_workers.add(worker)if reported_manifest != expected_manifest:raise ValueError(f"provider {worker} ran a different job manifest")votes[digest(output)].add(worker)winners = [(output_hash, workers) for output_hash, workers in votes.items() if len(workers) >= quorum]if len(winners) != 1:raise RuntimeError("no unique output reached the required provider quorum")output_hash, workers = winners[0]return {"manifest": expected_manifest, "output": output_hash, "providers": sorted(workers)}job = {"id": "infer-204", "image": "sha256:" + "a" * 64, "model": "sha256:" + "b" * 64, "seed": 7}job_digest = manifest_hash(job)result = accept_quorum(job, [("provider-a", job_digest, b"class=cat"), ("provider-b", job_digest, b"class=cat")])assert len(result["providers"]) == 2
Trade-offs
Marketplace competition can expose capacity that a single cloud account cannot reach, but providers differ in hardware, geographic location, runtime image, network bandwidth, and failure history. A cheaper GPU-second rate can become expensive after cold starts, data egress, retries, failed leases, and duplicated verification are included. Keep a fallback provider for deadline-sensitive work and compare effective cost per accepted result, not the quoted hourly rate alone.
Attestation reduces the trust placed in a host operator only for the hardware and software covered by the quote. Replication uses more compute but can detect divergent outputs without requiring a specialized enclave. A proof system can provide stronger cryptographic assurance for supported models while adding prover latency, memory, and a constrained numeric representation. Select verification per task: private input, model size, determinism, error cost, and deadline all change the right choice.
Failure modes and misconceptions
- A digest is treated as a correctness proof: a worker can hash an incorrect output. Keep the manifest and output hash for identity, then use a separate correctness mechanism.
- The TDX quote is over-interpreted: a valid quote does not necessarily bind an attached GPU or each device kernel. Verify the whole hardware chain needed by the threat model, including quote freshness and revocation status.
- Provider replicas are not independent: two marketplaces may route to the same operator or use an identical compromised image. Record provider and hardware identities, diversify the verification set, and test a deliberately faulty worker.
- Floating point disagreement rejects valid work: different GPU kernels may produce small rounding differences. Define the output canonicalization or tolerance before dispatch; do not widen it after seeing a mismatch.
- Retries create duplicate charges or outputs: use a stable job ID and idempotent settlement keyed to the manifest hash, and query a lease after a timeout before resubmitting.
- A lease is confused with an SLA: record startup delay, throughput, completion rate, data-transfer time, and rejected-result rate for each workload class; compare them with the actual contract.
Decision scenario
A privacy-sensitive inference job returns identical logits from two providers. Both reports name the expected container digest, but neither provider supplies a fresh quote and the input snapshot has no retained digest. The matching output alone is insufficient to settle the job: it cannot show which inputs were used or whether the host changed the runtime. Hold settlement, reproduce the manifest from the source object, require fresh attestation or a third independent execution, and compare the result with a golden vector. If the deadline makes those checks uneconomic, route future jobs to a provider path whose measurement and data-retention policy meets the requirement rather than silently lowering verification.