Architecture
~8 min readUpdated: December 2026

SplitVerify: Exact CPU-GPU Speculative Verification for 128K KV Offloading

SplitVerify CPU-GPU Speculative Verification Architecture for 128K Long Context

SplitVerify (arXiv:2611.39543) eliminates the PCIe bottleneck in 128K offloaded KV-cache serving by partitioning each layer's speculative verification attention concurrently between host CPU DRAM (329–344 GB/s) and the GPU, delivering exact lossless decoding up to 2.5x faster than SpecStream and 4.3x faster than TriForce.

Technical Review: Smoke Monkey Core Architecture Team
Tested on Node.js 18+ & BunTypeScript 5.x
Quick Answer & Executive Definition

SplitVerify: Exact CPU-GPU Speculative Verification for 128K KV Offloading: SplitVerify (arXiv:2611.39543) eliminates the PCIe bottleneck in 128K offloaded KV-cache serving by partitioning each layer's speculative verification attention concurrently between host CPU DRAM (329–344 GB/s) and the GPU, delivering exact lossless decoding up to 2.5x faster than SpecStream and 4.3x faster than TriForce. Designed as a zero-dependency, open-source TypeScript architecture under the MIT License with native Model Context Protocol (MCP) support and deterministic phase state machines.

Key Architectural Takeaways
Quick Implementation Examplesplitverify-offload-agent.ts
splitverify-offload-agent.tstypescript
import { createAgent } from '@smoke-monkey/harness';
const exactLongContextAgent = createAgent({
agentId: 'splitverify-exact-128k-agent',
provider: 'openai-compatible',
model: 'meta-llama/Llama-3.1-8B-Instruct',
baseUrl: 'http://127.0.0.1:8080/v1',
workspacePath: process.cwd(),
permissions: {
read_file: 'allow',
write_file: 'allow',
run_command: 'ask',
},
});
async function auditExactFullRepo() {
const result = await exactLongContextAgent.run(
'Verify security invariants across the full 128K-token monorepo context with exact full-attention outputs.'
);
console.log('Exact 128K Verification Summary:', result.summary);
}
auditExactFullRepo().catch(console.error);
Video Guides

Watch: Related Video Guides

Faster LLMs: Accelerate Inference with Speculative Decoding

Speculative Decoding Explained: How LLMs Write Several Tokens at Once

What Is SplitVerify? Why Speculative Verification Accelerates CPU Attention

SplitVerify (arXiv:2611.39543, Microsoft Research) is a heterogeneous CPU-GPU inference architecture for exact long-context speculative decoding when the KV cache exceeds GPU HBM and resides in host DRAM. By partitioning each layer's verification attention concurrently across host CPU cores and the GPU, SplitVerify reads offloaded KV blocks in place at 329–344 GB/s rather than stalling on 26.7–56.7 GB/s PCIe transfers.

Plain CPU-offloaded decoding on Llama-3.1-8B at 128K context crawls at 1.2–1.6 tokens/s because each layer's ~530 MB BF16 KV cache takes 20 ms (PCIe Gen4) or 9.4 ms (Gen5) to copy over PCIe. Speculative verification evaluates gamma + 1 query positions simultaneously ((gamma + 1) * G query rows per GQA KV head), amortizing host memory reads so CPU cores become compute-efficient without sacrificing exactness.

A100 & H100 Bandwidth Specs and Paired 128K Benchmarks

Evaluated on PG-19 at 128K context under a 23.8 GiB GPU memory cap, SplitVerify is the only offloaded system combining exact decoding, speculative verification, in-place CPU attention, and simultaneous same-layer CPU+GPU splitting.

Hardware PlatformHost CPU & DRAM BWPCIe Link & Latency (530 MB/layer)SplitVerify Speedup vs Baselines
A100 PCIe (80 GB)2x EPYC 7V13 (96 cores) · 329 GB/sGen4 · 26.7 GB/s (~20 ms)Up to 2.5x vs SpecStream / 4.3x vs TriForce
H100 PCIe (80 GB)EPYC 9554 (64 cores) · 344 GB/sGen5 · 56.7 GB/s (~9.4 ms)1.65x–1.87x paired (64 cores) · 1.94x–2.09x vs Dovetail (16 cores)

Unlike approximate offloading engines (ShadowKV, MagicPIG, TriForce), SplitVerify performs full attention over 100% of cached keys and values, guaranteeing bit-equivalent greedy outputs to an un-offloaded target GPU.

Tune Draft Length gamma Against Host Core Budget

Streaming KV over PCIe is constant-time in gamma, whereas CPU attention scales with (gamma+1)*G. Use SplitVerify's cost model to shrink the CPU fraction when running on <=16 cores or high gamma values.

Measuring Host DRAM vs PCIe Bandwidth for CPU-GPU Partitioning

Before configuring an offloaded speculative server on multi-socket EPYC or single-GPU workstation nodes, profile actual host DRAM read throughput vs PCIe H2D bandwidth so the cost model allocates the optimal split ratio.

bash
# Check NUMA topology and PCIe link speed/width for GPU offload budgeting
lscpu | grep -E "Model name|NUMA|Core\(s\)"
nvidia-smi -q | grep -E "PCIe Generation|Link Width|Memory"

# Benchmark host-to-device pinned memory bandwidth (MB/s)
python3 -c "
import torch, time
x = torch.empty(134_217_728, dtype=torch.bfloat16, pin_memory=True) # 256 MiB
t0 = time.perf_counter()
y = x.to('cuda', non_blocking=False)
torch.cuda.synchronize()
print(f'H2D Bandwidth: {0.25 / (time.perf_counter() - t0):.2f} GiB/s')
"

Running Exact 128K Code Audits on Workstation GPUs

When Smoke Monkey Harness audits security-critical cryptographic code or multi-file financial logic across 128K tokens, approximate KV eviction risks missing a single subtle invariant line. Pairing workstation GPUs (24 GB VRAM cap) with SplitVerify's exact CPU-GPU verification keeps multi-hundred-gigabyte host RAM productive while preserving 100% target-model fidelity.

Google Search Questions & Answers

Frequently Asked Questions

Q:Does SplitVerify approximate attention or degrade 128K accuracy?

No. SplitVerify computes exact full attention over the entire KV cache by merging CPU-computed and GPU-computed attention outputs, guaranteeing identical outputs to full un-offloaded inference.

Q:Why is SplitVerify faster than copying the offloaded KV cache to the GPU?

Host DRAM delivers 329–344 GB/s of bandwidth—6–12x higher than PCIe Gen4 (26.7 GB/s) or Gen5 (56.7 GB/s)—and speculative verification's gamma+1 query tokens give CPU cores high arithmetic reuse per fetched KV block.

Q:What speedups does SplitVerify achieve over TriForce and SpecStream?

On A100 and H100 servers at 128K context, SplitVerify achieves up to 2.5x higher decoding throughput than SpecStream and up to 4.3x higher throughput than TriForce.

Q:Is SplitVerify tied to a specific speculative draft model?

No. Because SplitVerify only modifies the target model's verification pass, it works cleanly with any speculative drafter.

Related Alternatives & Comparisons

Related Architecture Guides

View all guides

Build with Smoke Monkey Harness

Zero dependencies. 24 built-in tools. Human-in-the-loop safety. 100% open source under the MIT License.

npm install smoke-monkey-harness