This is the public research snapshot for:
Uncertainty-Calibrated KV Cache Compression for Efficient LLM Inference
The repository contains the LaTeX manuscript draft, reproducible local experiment code, synthetic prompt generators, public pilot-result summaries, and figures. It intentionally omits private infrastructure notes, remote-machine operational scripts, model weights, and raw private execution logs.
The current manuscript is conservative. It reports pilot evidence and negative confirmation results honestly: uncertainty-gated heavy-hitter scoring produced a small-model signal but did not transfer reliably to a 7B setting. The next research step is to redesign uncertainty as a calibrated budget/risk controller over strong KV-cache backbones rather than as the main token-ranking signal.
An external-review audit on 2026-07-12 further narrowed that direction. Adaptive or uncertainty-aware budget control is already covered by several recent works, so the remaining constructive hypothesis is finite-sample audited risk control over a fixed strong backbone, with explicit coverage, abstention, and shift evaluation. This is a hypothesis under test, not a current novelty claim.
main.tex: top-level LaTeX document.sections/: manuscript sections.references.bib: bibliography.experiments/run_kv_cache_pilot.py: core KV-cache compression pilot runner.experiments/test_kv_cache_selection.py: selection-contract and hard-budget tests.experiments/generate_synthetic_benchmark.py: controlled retrieval prompt generator.experiments/analyze_*.py: aggregation and plotting scripts.experiments/prompts/: deterministic synthetic prompt sets.figures/: manuscript figures.outputs/analysis_*: public aggregate summaries and plots.notes/research_status_2026-07-12.md: current evidence, corrections, and decision gates.
With tectonic:
make pdfWith a traditional LaTeX setup:
make pdf-latexmkThe public repository is designed for local or self-managed experiments. Any large-model or remote-hardware runs should be adapted to the user's own compute environment. Private infrastructure automation has been deliberately excluded.
For controlled score comparisons, h2o_matched_B reuses the same recent-token
rule, probe layers, and eviction cadence configured for UCKV2. Free-run outputs
now record maximum retained tokens and budget-overrun diagnostics. Historical
results produced before this repair remain labeled as nominal-budget rather
than strictly matched-memory comparisons.
This is an in-progress research draft. Please cite the repository only as a work in progress unless a formal preprint is released.