Skip to content

Add EchoPress - #300

Open
ljwljwljwljw wants to merge 1 commit into
NVIDIA:mainfrom
ljwljwljwljw:echo-press
Open

ljwljwljwljw wants to merge 1 commit into
NVIDIA:mainfrom
ljwljwljwljw:echo-press

Conversation

@ljwljwljwljw

Copy link
Copy Markdown

PR description

Add EchoPress, a training-free approximation to KVzip that reuses prefill queries and cached keys to score virtual context repetitions. Paper: https://arxiv.org/abs/2610.00412

echo_press_overview

EchoPress virtually reconstructs context by rotating queries during prefill. It performs a single KVzip-style reconstruction pass on the first chunk, capped at 2K tokens, then uses the exact KVzip scores from that chunk to calibrate the virtual scores of subsequent chunks.

Evaluation

eval

EchoPress matches KVZip's accuracy on both RULER-4K and LongBench. Benchmark details can be found in our paper.

Code changes

  • PyTorch scoring and an optional Triton backend.
  • Public export and an echo entry in the evaluation registry.
  • README documentation, shared test configurations, and the unit test for EchoPress.

Checklist

Before submitting a PR, please make sure:

  • Tests are working (make test)

  • Code is formatted correctly (make style, on errors try fix with make format)

  • Copyright header is included

  • All commits are signed-off using git commit -s

  • (new press) mypress_press.py is in the presses directory

  • (new press) MyPress is in __init__.py

  • (new press) README.md is updated with a 1 liner about the new press in the Available presses section

  • (new press) New press is in the default_presses list in tests/default_presses.py

  • (new press) A docstring is provided that follows the same structure as the existing ones

Approximate KVzip scores through virtual context reconstruction during
prefill. Reconstruct the first chunk exactly and calibrate later virtual
scores per request, layer, and KV head.

Signed-off-by: Jiawei Lin <jiawei.lin@epfl.ch>
@copy-pr-bot

copy-pr-bot Bot commented Oct 2, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant