SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2606.28831 · ICML · 2026

HARD-KV: Head-Adaptive Regularization for Decoding-time KV Compression

Gang Chen, Huan Li, Yuxuan Yang, Dalin Zhang, Jinpeng Chen, Feiyang Ren, Bowen Zeng

arXiv · PDF · Open in the Atlas

Code that ran

9 of 9 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 3 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 5 failures of our instrument; 0 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2606.28831.json · badge: /api/ran/2606.28831.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
SuDIS-ZJU/HARDInfer canonical (classifier label)
classifier basis: census
9 ran · 0 no recorded run
FunctionStatusWhere it lives
calculate_method_totals Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
SuDIS-ZJU/HARDInfer/viz/tasks_metrics.py
pointer only (licence: NONE) · get_code("da6b97a0fba184e7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, SuDIS-ZJU/HARDInfer when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

cdiv Ran
ran, honoured the contract we drafted
SuDIS-ZJU/HARDInfer/src/core/utils.py
pointer only (licence: NONE) · get_code("19d9189e59909545")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, SuDIS-ZJU/HARDInfer when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

cropped Ran
ran; our contract draft was wrong, not the code
SuDIS-ZJU/HARDInfer/viz/sparsity_utilization.py
pointer only (licence: NONE) · get_code("5acffa4eedd2caf1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, SuDIS-ZJU/HARDInfer when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

custom_color_map Ran
ran, honoured the contract we drafted
SuDIS-ZJU/HARDInfer/viz/sparsity_utilization.py
pointer only (licence: NONE) · get_code("5ccda1f2a872595f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, SuDIS-ZJU/HARDInfer when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

extract_latency_data Ran
ran; our contract draft was wrong, not the code
SuDIS-ZJU/HARDInfer/viz/latency_sparsity_utilization.py
pointer only (licence: NONE) · get_code("052e22c7b1d7cf38")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, SuDIS-ZJU/HARDInfer when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

filter_stats_by_num_seqs Ran
ran; our contract draft was wrong, not the code
SuDIS-ZJU/HARDInfer/viz/tasks_metrics.py
pointer only (licence: NONE) · get_code("7194aa598af1c5e9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, SuDIS-ZJU/HARDInfer when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

generate_matrix Ran
ran; our contract draft was wrong, not the code
SuDIS-ZJU/HARDInfer/viz/sparsity_utilization.py
pointer only (licence: NONE) · get_code("e174497506b060f1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, SuDIS-ZJU/HARDInfer when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_sequence_lengths Ran
ran, honoured the contract we drafted
SuDIS-ZJU/HARDInfer/viz/tasks_metrics.py
pointer only (licence: NONE) · get_code("7fbf4019d4fe2a7e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, SuDIS-ZJU/HARDInfer when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

str_to_bool Ran
ran, violated the contract we drafted
SuDIS-ZJU/HARDInfer/eval/baseline.py
pointer only (licence: NONE) · get_code("60288e0371fe1b60")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, SuDIS-ZJU/HARDInfer when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 0 later) and 8 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
str_to_bool 1 other paper
1 dated earlier
2308.07416 (2023-08)
DiffHopp: A Graph Diffusion Model for Novel Drug Design via Scaffold Hopping

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Long-context LLM inference faces a fundamental conflict: head-adaptive compression algorithms (e.g., Top-p nucleus sampling) offer superior accuracy by dynamically fluctuating memory budgets, yet modern inference engines (e.g., vLLM) demand rigid, static memory patterns to leverage CUDA Graphs and PagedAttention. We resolve this "Static-Dynamic" mismatch with HARD-KV, a unified framework that that bridges dynamic selection with rigid system constraints. HARD-KV introduces a Cascade Cache hierarchy, managing the token lifecycle across dense, sparse, and condensed tiers. Crucially, we propose a Logits Calibration mechanism that normalizes diverse importance metrics into a unified probability space, enabling consistent Top-p budgeting across heterogeneous heads. To bridge the efficiency gap, we offer a system-level solution, which rewrites fragmented, dynamic indices into contiguous physical layouts compatible with highperformance inference engine. Extensive experiments on math-reasoning benchmarks (AIME, U-Math) verify that HARD-KV achieves up to 2× throughput improvement over static baselines while maintaining high-fidelity generation in 10k+ token scenarios. Code is available at https: //github.com/SuDIS-ZJU/HARDInfer.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2606.28831")
get_code_for_paper("2606.28831")
have("2606.28831")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2606.28831.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2606.28831.svg)](https://syntology.ai/paper/2606.28831)

Connect an agent — have() is free.