HBFresh: Selective Refresh & Markov GC for High-Bandwidth Flash LLMs

HBFresh (arXiv:2611.36929) solves SLC NAND read-disturb wearout on 3.072 TB/s High-Bandwidth Flash (HBF) LLM accelerators using Markov-guided risk-bounded GC and cross-plane striping, cutting page programs 18.75%-60.6% and worst-case latency from 73 ms to 17 ms.
HBFresh: Selective Refresh & Markov GC for High-Bandwidth Flash LLMs: HBFresh (arXiv:2611.36929) solves SLC NAND read-disturb wearout on 3.072 TB/s High-Bandwidth Flash (HBF) LLM accelerators using Markov-guided risk-bounded GC and cross-plane striping, cutting page programs 18.75%-60.6% and worst-case latency from 73 ms to 17 ms. 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.
- Solves the 2.2-Year SLC Wearout Trap: Defers healthy-page rewrites past the 10^6 read mark—where Qwen3-32B blocks serve a median 4.21M reads before their first trigger and 82.5% of sibling pages stay healthy.
- 18.75%–60.6% Fewer Page Programs: Markov chain forecasts of block valid-page counts (h_i) eliminate premature garbage collection across 25%–75% occupancy.
- 4.3x Better Tail Latency: Lowers worst-case inference latency from 73 ms to 17 ms at 25% occupancy by preventing synchronized GC storms.
- Restores 3.072 TB/s Plane Parallelism: Cross-plane destination striping prevents logical-address refresh hotspotting across NAND dies.
import { createAgent } from '@smoke-monkey/harness';const hbfOpsAgent = createAgent({agentId: 'hbfresh-flash-controller-tuner',provider: 'anthropic',model: 'claude-sonnet-4-5',workspacePath: process.cwd(),permissions: {read_file: 'allow',write_file: 'allow',run_command: 'ask',},mcpServers: {hbfMonitor: {command: 'python3',args: ['-m', 'hbfresh_sim_mcp', '--bandwidth-tbps', '3.072', '--reserve', '0.05'],},},});async function optimizeRefreshThreshold() {const result = await hbfOpsAgent.run('Sample base-die ECC correctable-error warnings and per-block read counts, evaluate Markov free-block exhaustion risk Risk_Q(pi | x_hat) <= epsilon, and update the dynamic GC threshold.');console.log('HBFresh Policy Update:', result.summary);}optimizeRefreshThreshold().catch(console.error);
Watch: Related Video Guides
High Bandwidth Flash explained in 7min..
Exploring High-Bandwidth Flash (HBF) for Modern LLM-Serving Systems
What Is HBFresh? Why Read-Only LLM Weights Still Wear Out HBF
High-Bandwidth Flash (HBF) stacks single-level-cell (SLC) NAND dies onto a base logic die co-packaged with GPUs, delivering up to 3.072 TB/s read bandwidth (OCP spec) for storing read-heavy LLM weights while keeping write-heavy KV caches in HBM. However, reading an SLC page applies pass voltage (V_pass) to every unselected wordline in its 256-page block, inducing read-disturb bit errors.
Under the OCP baseline whole-block refresh every 10^6 block reads at 3.072 TB/s, every block in a 512 GiB HBF stack is erased ~124 times per day, exhausting commodity SLC endurance (10^5 P/E cycles) in just 2.2 years—less than half of a 5-year datacenter warranty. Simulating real Qwen3-32B BF16 weights across 96 blocks, arXiv:2611.36929 shows a block's first page reaches the 2-bit ECC refresh trigger after a median 4.21 million block reads (5th–95th percentile: 2.66M–5.47M), and even 995,000 reads later, 82.5% of sibling pages remain healthy. HBFresh refreshes only triggered pages and uses a backend Markov chain to schedule garbage collection (GC) safely.
Markov Risk-Bounded GC Formulation & Inference Latency Results
Because dense LLM decode reads every valid weight page once per step (r_s = 1), and even an 8-of-128 MoE with batch 64 reads 98.4% of experts per step, SSD hot/cold data separation fails on HBF. Instead, HBFresh observes that a block's refresh rate scales quadratically with its valid pages h_i: lambda_i = eta * r_s * h_i * (h_i - 1). An 8-page full block refreshes at rate 56c, while a 4-valid-page partially collected block drops to 12c.
HBFresh maintains a 5% free-block reserve and uses Monte Carlo sampling over horizon Q decode steps to select the cheapest candidate threshold pi* whose probability of exhausting free blocks stays below epsilon. Destination writes are striped across NAND planes to preserve parallel read bandwidth.
| Occupancy / Policy | Page Programs Saved vs Best Static GC | Worst-Case Inference Latency | Free-Block Safety |
|---|---|---|---|
25% Occupancy (vs static theta=0.25) | 60.6% fewer page programs | 17 ms (down from 73 ms) | 0 free-block exhaustions |
40%–60% Occupancy (vs static theta=0.50) | Up to 42%+ savings | Eliminates watermark GC spikes | Maintains >= 5% reserve |
75% Occupancy (vs static theta=0.75) | 18.75% fewer page programs | Near-zero GC stall | Maintains >= 5% reserve |
| Static `theta=0` (No GC) | Fails | Exhausts free blocks | Crashes at all occupancies |
Plane Striping Prevents Post-Refresh Bandwidth Collapse
When pages are refreshed in logical-address order into sequential blocks, reads concentrate on fewer NAND planes and throttle bandwidth. HBFresh stripes migrated pages across dies and planes to restore full 1.536–3.072 TB/s throughput.
Implementing the Markov Block-Refresh Rate & Risk Selector
Host storage drivers can run HBFresh's Markov policy evaluator asynchronously off the GPU inference critical path, querying only base-die read counters and ECC warning flags.
import math
def block_refresh_rate(valid_pages: int, eta: float, reads_per_step: float = 1.0) -> float:
"""Eq. (1): lambda_i = eta * r_s * h_i * (h_i - 1) for block i."""
if valid_pages <= 1:
return 0.0
return eta * reads_per_step * valid_pages * (valid_pages - 1)
def select_risk_bounded_threshold(candidates, mc_simulate_fn, state_hat, horizon_q=4096, eps=1e-4):
"""Eq. (2): Pick threshold minimizing expected page programs within risk bound epsilon."""
feasible = []
for pi in candidates:
risk_q, expected_progs = mc_simulate_fn(state_hat, pi, horizon_q)
if risk_q <= eps:
feasible.append((expected_progs, pi))
return min(feasible, key=lambda x: x[0])[1] if feasible else "watermark_fallback"Lowering Self-Hosted Agent Infrastructure TCO with HBF + Smoke Monkey
For teams serving 32B–285B open-weight coding agents locally or in private clusters, HBF expands weight capacity per GPU socket at a fraction of HBM cost. Pairing HBF hardware with Smoke Monkey Harness telemetry agents allows automated infrastructure monitors to tune epsilon risk bounds and ECC refresh budgets without interrupting live multi-agent sessions.
Frequently Asked Questions
Q:Why does whole-block refresh wear out High-Bandwidth Flash (HBF) in 2.2 years?
At the OCP-specified 3.072 TB/s read rate with a 10^6-read refresh interval, every 256-page block of a 512 GiB SLC HBF stack is erased ~124 times per day, exhausting 10^5 P/E cycles in 2.2 years—under half of a 5-year warranty.
Q:How long do real LLM weights last in SLC HBF before needing a refresh?
In arXiv:2611.36929's simulation of Qwen3-32B BF16 weights, a block's first page reaches the 2-bit ECC trigger after a median 4.21 million block reads, and 82.5% of sibling pages stay healthy 995,000 reads later.
Q:Why can't standard SSD hot/cold read-reclaim policies work for HBF LLM serving?
Dense models read 100% of weight pages equally per decode step, and an 8-of-128 MoE with batch size 64 reads 98.4% of experts per step—leaving no cold blocks for SSD hot/cold separation.
Q:What latency improvement does HBFresh achieve during inference?
By replacing reactive watermark GC bursts with Markov-timed dynamic thresholds and cross-plane striping, HBFresh lowers worst-case inference latency from 73 ms to 17 ms at 25% occupancy while cutting page programs by 18.75%–60.6%.
Related Alternatives & Comparisons
Related Architecture Guides
View all guidesBest Open Source Coding Agents in 2026: Free, Local & Fully Hackable Harnesses
MCP Server Security Best Practices: Hardening Model Context Protocol Agents in 2026
Open Source Coding Agent Harness: Build a Forkable, Local AI Engineering Runtime
Build with Smoke Monkey Harness
Zero dependencies. 24 built-in tools. Human-in-the-loop safety. 100% open source under the MIT License.