Skip to content

EMNLP papers

Search EMNLP papers by title, author, or track. Open a paper’s abstract to read more.

Explore the EMNLP analysis

Search results

401–420 of 589

  • EMNLP · Findings

    ReContext: Recursive Evidence Replay as LLM Harness for Long-Context Reasoning

    Yanjun Zhao, Ruizhong Qiu, Tianxin Wei, Yuanchen Bei, Zhining Liu, Lingjie Chen, Ismini Lourentzou, Hanghang Tong, Jingrui He

    Abstract

    Understanding and reasoning over long contexts has become a key requirement for deploying large language models (LLMs) in realistic applications. Although recent LLMs support increasingly long context windows, they often fail to use relevant evidence that is already present in the input, revealing a gap between context access and effective context utilization. In this work, we propose Recursive Evidence Replay as LLM Harness for Long-Context Reasoning (RECONTEXT), a training-free inference method for improving long-context reasoning. RECONTEXT uses model-internal relevance signals to construct a query-conditioned evidence scaffold and replays it before final generation while preserving the full original context. This recursive sifting process separates evidence organization from answer generation without training, external memory, or context pruning. We also provide a theoretical analysis based on associative memory, which characterizes the context as a memory store, the question as a retrieval cue, attention as cue-trace association, and replay as trace reactivation. Experiments on eight long-context datasets with 128K context length show that RECONTEXT consistently improves evidence utilization across Qwen3-4B, Qwen3-8B, and Llama3-8B, achieving the best average rank on all three backbones. Code is available in the supplementary software.

    Abstract source
  • EMNLP · Findings

    Bias Before the Model: Detecting and Removing Cognitive Bias Triggers in Financial Text

    Triantafillos Papadopoulos, Venetis Charilaos, John Pavlopoulos, Ion Androutsopoulos, Sophia Ananiadou

    Abstract

    Financial text frequently contains cognitive bias triggers, such as an authority cue like “according to Goldman Sachs”, that can distort sentiment judgments without altering the underlying facts. While prior work has established that LLMs are susceptible to cognitive biases, existing evaluations treat bias exclusively as a property of the model, overlooking triggers already present in the input text. We ask whether LLMs can (i) detect such triggers, (ii) rewrite text to remove them, and (iii) whether doing so improves sentiment predictions, a task central to automated financial decision-making. We introduce TriggerBank, a dataset of 3,006 financial sentences with six types of synthetically injected bias triggers, and evaluate 11 LLMs across tasks (i)–(iii). Detection remains challenging, with framing and overconfidence hardest to detect, and removal fails for anchoring. Despite this, rewriting outperforms all instruction-based defenses for most models in downstream sentiment classification, while chain-of-thought prompting generally degrades performance. Debiasing the input text via rewriting is thus a more robust strategy than prompt-based approaches.

    Abstract source
  • EMNLP · Findings

    Extending LLM Context via Associative Recurrent Memory

    Gleb Kuzmin, Ivan Rodkin, Aydar Bulatov, Yuri Kuratov, Lyudmila Rvanova, Mikhail Katkov, Ilia Sochenkov, Misha Tsodyks, Timothy Baldwin, Mikhail Burtsev, Artem Shelmanov

    Abstract

    Extending the context length of large language models (LLMs) is critical for many real-world applications, yet standard transformers remain constrained by quadratic compute and linear memory scaling. In this work, we investigate the Associative Recurrent Memory Transformer (ARMT) as a practical approach for enabling long-context processing in LLMs, constant memory scaling, and better efficiency. We make three main contributions. First, we construct two domain-specific long-context datasets designed to evaluate realistic workloads, focusing on narrow-domain fine-tuning scenarios. Second, we propose a comprehensive training recipe for ARMT-based context extension, combining continued pre-training, synthetic long-context data generation, curriculum learning, and selective integration of associative memory into chosen model layers. Third, we present an extensive experimental study demonstrating that ARMT-augmented models: (i) process inputs well beyond their original context limits without degrading performance relative to in-limit baselines; (ii) generalize more effectively to out-of-distribution context lengths; and (iii) need 30% fewer FLOPs while preserving baseline performance within the original context window.

    Abstract source
  • EMNLP · Findings

    When Users Don’t Ask: Benchmarking Context-Driven Memory Retrieval in Conversational Agents

    Wen Yu Chang, Yun-Nung Chen

    Abstract

    Large Language Models (LLMs) are increasingly deployed as long-horizon conversational agents, motivating growing interest in memory systems. However, existing benchmarks primarily evaluate memory through QA-style probing rather than in-situ conversational usage. We introduce LOCOMO-CONV, a conversational memory benchmark derived from LoCoMo with four query styles: dialog, implicit, counterfactual, and composed. Across four representative memory systems, we evaluate both retrieval recall and end-to-end response quality. Our experiments show that conversational framing exposes substantial retrieval gaps overlooked by QA benchmarks, especially on implicit and composed queries, which multi-facet query rewriting narrows for raw-turn but not abstractive memory. We further find that strong retrieval does not fully translate into response quality, and that implicit queries exhibit silent grounding, where memory improves contextual grounding without explicitly surfacing the gold fact. These results point to reasoning-based memory elaboration as a promising direction, and we release auxiliary supportive_memory annotations capturing conversationally useful context beyond the original gold evidence.

    Abstract source
  • EMNLP · Findings

    Context Modeling for LLM-Based Behavioral Simulation

    Dongyang Zhen, Ruize Qin, Ali Mansouri, Abdolmajid Erfani, Qingbin Cui

    Abstract

    Large language models (LLMs) offer new opportunities for simulating human decision making at scale, yet prompting-based approaches often fail to recover realistic population-level response distributions, particularly for heterogeneous demographic groups and high-entropy questions. This paper introduces context modeling with agentic AI, a structured simulation framework that explicitly constructs latent, individual-level decision contexts prior to response generation. By separating persona construction from decision making and introducing structured stochasticity through context sampling, the method captures within-group heterogeneity and mitigates mode collapse inherent in single-prompt simulations. Extensive empirical evaluation across population-level and group-conditioned settings shows that context modeling consistently improves simulation fidelity, with especially strong gains on high-entropy questions and demographic subpopulations, while preserving performance on low-entropy tasks. Detailed tail analysis further reveals that the primary improvement arises from recovering minority and low-probability response options that are systematically underrepresented by direct prompting. Overall, the results demonstrate that faithful behavioral simulation requires explicit modeling of contextual heterogeneity and structured uncertainty, establishing context modeling as a robust foundation for LLM-based behavioral simulation.

    Abstract source
  • EMNLP · Findings

    Dropping the Anchor: Statistical Context Summarization for Distributed Systems via Pulsar Attention

    Aryan Sood, Shantanu Acharya, Gaurav Kumar Nayak

    Abstract

    Inference with large language models (LLMs) on long sequences is computationally expensive due to the quadratic complexity of self-attention. Distributed blockwise methods such as Star Attention reduce this cost by sharding context across hosts, but rely on prepending a static, content-blind copy of the first block to every host. We propose Pulsar Attention, which replaces the static anchor with two lightweight, content-aware components: a small attention-sink prefix that stabilizes softmax, and compact cross-block summaries built via a Max-IDF heuristic that selects chunks containing globally rare tokens. This reduces the Phase 1 per-GPU FLOPs by up to 3.3\times over Star Attention while retaining an identical KV cache footprint. On RULER with Llama-3.1-8B-Instruct, Pulsar Attention outperforms Star Attention at sequence lengths up to 128K tokens and remains competitive with dense attention across most tasks, with task-dependent absolute gains of up to 4.7% over the dense baseline.

    Abstract source
  • EMNLP · Findings

    Folding Context into Executable States: Structured Strategy Folding for Long-Horizon Reasoning Agent

    Zhengyu Chen, Luan Zhang, Zhaoyi Li, Jinluan Yang, Zheqi Lv, Teng Xiao, Wei Wang, Jingang Wang

    Abstract

    Current Large Language Model (LLM) agents struggle with long-horizon reasoning tasks, such as competition-level mathematics, where sustaining precision over hundreds of steps is critical. A primary bottleneck is the reliance on natural language context or summaries to track progress; these linguistic representations are inherently "lossy," introducing semantic drift and accumulating errors that derail the reasoning chain. To address this, we propose Structured Strategy Folding (SSF), a novel paradigm that shifts the agent’s memory mechanism from linguistic description to computational verification. Instead of compressing history into text, SSF "folds" the reasoning trajectory into a sequence of Executable Symbolic States (ESS). Each ESS serves as a verifiable anchor—comprising either executed code artifacts or formally judged symbolic lemmas—generated through a dual-pathway validation mechanism. By interacting with these rigorous state artifacts rather than raw textual history, the agent effectively eliminates ambiguity and prevents error propagation. Experiments on challenging mathematical benchmarks demonstrate that SSF significantly outperforms standard Chain-of-Thought and existing summarization baselines, achieving substantial accuracy improvements while maintaining robust performance over extended reasoning horizons.

    Abstract source
  • EMNLP · Findings

    Latent-Level Uncertainty Resolution for Stable EEG-to-Text Decoding under Cross-Subject Variability

    Sejin Park, Jedong Lee, Yunhui So, Byung Hyung Kim

    Abstract

    Autoregressive generators often rely on fixed conditioning representations, so uncertainty in noisy inputs can be amplified during rollout under distribution shift. We address this by resolving uncertainty in latent space before decoding: Latent-Level Uncertainty Resolution (LURS) encodes inputs as stochastic latent sequences and learns a denoising refinement operator. At inference, a single deterministic refinement step, without reference tokens or iterative sampling, feeds a refined latent memory to the decoder via cross-attention. In teacher-forced and teacher-forcing-free decoding on open-vocabulary EEG-to-text, LURS improves generation quality and substantially reduces cross-subject variability, while remaining competitive in shared-subject settings. Ablations and stability analysis attribute gains to latent refinement rather than decoder changes or hyperparameter effects.

    Abstract source
  • EMNLP · Findings

    Measuring Cultural Alignment Beyond the Average: A Framework for Evaluating Maternal-Health LLM Interactions in Indian Contexts

    Umaira Izhar, Gunjan Arora, Pushpendra Singh

    Abstract

    Existing evaluation methods for healthcare LLMs primarily assess factual correctness, safety, and fluency, while providing limited insight into whether generated interactions reflect culturally situated healthcare reasoning. This limitation is particularly important in maternal health, where care decisions are shaped by social and relational norms. We introduce MH-INDIC, a culturally grounded evaluation framework for maternal-health interactions in Indian contexts that operationalises cultural behaviour through ten dimensions of maternal-health reasoning. Using a 26-item survey administered to 102 pregnant and postpartum women from urban and semi-urban North India, we evaluate ten LLMs under profile-conditioned prompting. Our evaluation separates aggregate cultural alignment and context-dependent sensitivity to demographic and household factors. While several proprietary models approximate human population-level distributions, all evaluated systems exhibit substantially reduced behavioural variation across profiles. We further show that human-grounded conditioning enhances the realism and contextual coherence of synthetic maternal health dialogues. Together, our findings highlight the importance of evaluating healthcare LLMs not only for factual correctness but also for their ability to model socially situated reasoning in culturally embedded healthcare settings.

    Abstract source
  • EMNLP · Findings

    Randomized YaRN Improves Length Generalization for Long-Context Reasoning

    Manas Mehta, Fangcong Yin, Greg Durrett

    Abstract

    Large language models (LLMs) are typically pretrained on short sequences and then extended to work on longer sequences with additional training. However, LLMs still struggle to generalize to very long sequences. We propose Randomized YaRN, a training method that improves length generalization by combining YaRN-based positional extrapolation with randomized positional encoding and a length curriculum. During training on short context data, tokens are assigned YaRN positional encodings sampled from a larger position range, exposing the model to out-of-distribution positional representations without requiring long-context inputs. We evaluate Randomized YaRN on two challenging long-context reasoning benchmarks, BABILong and Multi-Round Coreference Resolution (MRCR). When training on data with <8K context, Randomized YaRN consistently improves reasoning performance on context lengths from 16K to 128K and outperforms standard fine-tuning baselines, with the largest gains appearing at far out-of-distribution lengths. Our results suggest that progressively exposing models to OOD positional distributions provides an effective recipe for generalizable long-context reasoning.

    Abstract source
  • EMNLP · Findings

    TextNCA: Neural Cellular Automata for Language Modeling via Hierarchical Local Attention

    Avni Mittal, Avinash Anand, Ashutosh Kumar, Dikshant Kukreja, Kritarth Prasad, Sushane Dulloo, Erik Cambria, Timothy Liu, Zhengkui Wang, Rajiv Ratn Shah

    Abstract

    Neural Cellular Automata (NCAs) generate complex spatial patterns in vision by repeatedly applying a shared local rule to persistent cell states, combining local perception, weight-shared iteration, and gated in-place updates. We test this principle in language modelling with TextNCA, a 1D causal model in which token positions act as cells, windowed attention provides local perception, and a GRU-style gate updates their states. Its hierarchical variant cascades increasingly wide attention windows w ∈ 8,32,128 and reuses each stage’s parameters for T_s iterations. We train roughly 30M-parameter models on SlimPajama for 60k steps and evaluate on WikiText-103. TextNCA trails a similarly sized Transformer-6L (60.3 versus 52.8 best-run PPL), so we study it as an analytical probe rather than a performance alternative. Reordering or flattening the windows raises PPL by 16.7–70.8, whereas a non-iterating sliding-window Transformer preserving the staged order performs comparably across three seeds. These results identify the narrow-to-wide schedule as the dominant factor and provide no reliable evidence that iterated weight sharing improves perplexity at this scale. Intermediate-state analyses support a prepare-then-decode account in which early stages reorganise representations and the final wide stage performs most next-token loss reduction.

    Abstract source
  • EMNLP · Findings

    Long-Context Demonstration Selection Using State Space Models

    Ziniu Zhang, Zhenshuo Zhang, Ruoxuan Xiong, Gene Cooperman, Hongyang R. Zhang

    Abstract

    We study the problem of demonstration selection, which involves selecting a subset of examples for pre-pending to a query to a language model. This problem is closely related to in-context learning and model inference. Since the inference cost of a transformer model scales quadratically with sequence length, the selection problem becomes especially challenging in a long-context scenario. In this paper, we tackle this problem by building on state space models (SSMs), which has linear inference time given the input embeddings. Our approach works in two stages. First, we learn a small set of SSMs through a distillation procedure — given a (trained) transformer model, we partition all the layers into consecutive (layer) groups — for each group, we learn one SSM to mimic the input-output behavior, thereby capturing structural similarity in adjacent layers. Second, we map the SSM outputs to a small set of tokens, and apply them for downstream demonstration selection. We run extensive experiments in both synthetic and real-world datasets to validate this approach. We show that the SSMs trained from distillation incur a relative approximation error of less than 0.7%. As for downstream demonstration selection, we find that on several text classification and reasoning tasks, our approach reduces FLOPs by 14.2\times and improves accuracy by 6.48% relative to baseline selection methods.

    Abstract source
  • EMNLP · Findings

    What Gets Unmasked First? Trajectory Analysis of Diffusion Models for Graph-to-Text Generation

    Qing Wang, Jacob Devasier, Chengkai Li

    Abstract

    We present the first systematic study of masked diffusion language models (MDLMs) for graph-to-text generation. We analyze MDLM generation trajectories—the order in which tokens are unmasked during iterative decoding—and find that, unlike autoregressive LLMs which generate text linearly, MDLMs naturally prioritize entities first, followed by relational and function words, with structural tokens resolved last. We further identify a previously undocumented failure mode of supervised fine-tuning: SFT disrupts this strategy by prematurely anchoring structural sentence-ending tokens early in the decoding trajectory, effectively fixing the output length which can lead to omitted or hallucinated information. To address this, we propose \lambda-scaled structural decoding, a training-free inference-time modification that downweights structural token confidence and recovers +9.4 BLEU-4. Finally, we introduce Graph-LLaDA, which integrates a Graph Transformer encoder into LLaDA’s decoding process to explicitly incorporate relational graph structure. Cross-dataset evaluation on LAGRANGE reveals that previous baselines overfit to dataset-specific patterns, while LLM- and MDLM-based approaches generalize significantly better. All code and datasets used in our experiments are publicly available at https://github.com/idirlab/Graph_LLaDA.

    Abstract source
  • EMNLP · Findings

    MegaCode: A Repository-Level Dataset for Long-Context Code Reasoning

    Wenyang Luo, Shuang Sun, Yiwen Hu, Fei Bai, Yanzipeng Gao, Shuo Wang, Hongyu Lu, Xin Zhao, Ji-Rong Wen

    Abstract

    Code reasoning is essential for building AI systems that can understand, generate, and verify complex software. Yet most open-source code corpora focus on isolated snippets or single functions, failing to capture the long-range dependencies and cross-file interactions that define real-world repositories. We introduce MegaCode, a 300B repository-level corpus designed to support structured code reasoning and long-context modeling. MegaCode preserves full project structure—including build scripts, configuration files, and inter-file links—and is constructed through a multi-stage curation pipeline combining deduplication, rule-based filtering, and model-based quality assessment. Models pretrained on MegaCode demonstrate consistent gains on code reasoning and long-context benchmarks compared with those trained on flattened code datasets. Also, we validate the effectiveness of adding repo relevent infomation such as LSP, repo structure and repo summary. These results highlight the importance of maintaining repository structure for next-generation code intelligence. We release the dataset, curation pipeline, and evaluation suite to facilitate research on large-scale code pretraining and repository-level understanding.

    Abstract source
  • EMNLP · Findings

    REIGN: Refurbished Embeddings with Integrated Guidance Networks for Efficient Context-Length Scaling

    Devrim Çavuşoğlu, Emre Akbas

    Abstract

    Dense retrieval over long documents is expensive. Token-level encoders scale quadratically in sequence length, and most long-context embedding models reach 32K tokens only through architectural workarounds or by stretching billion-parameter LLMs. We propose REIGN (Refurbished Embeddings with Integrated Guidance Networks), a contrastively trained bi-encoder that operates on sequences of contextualised chunk embeddings from a frozen Guidance Network (GN) rather than on raw tokens. REIGN targets multi-chunk inputs and primarily document-to-document retrieval; single-chunk inputs stay with the GN. Decoupling token-level processing from document-level reasoning, and caching the GN embeddings to disk, cuts per-document training cost by roughly four orders of magnitude relative to chunked Transformer fine-tuning. We also release a synthetic long-document retrieval benchmark for contrastive training and evaluation at long context lengths. Across an in-distribution Wikipedia benchmark, the LoCo out-of-distribution suite, and a real-world patent retrieval case study, REIGN matches dense long-context retrievers at smaller parameter budgets per regime. A paired significance test puts it on par with models 1.6–4.3× larger on the patent task, and it stays within 0.65 nDCG@10 of a 20×-larger model on LoCo.

    Abstract source
  • EMNLP · Findings

    LongPIBench: A Long-Context Benchmark for Prompt Injection

    Yupei Liu, Yuqi Jia, Neil Zhenqiang Gong, Jinyuan Jia

    Abstract

    Prompt injection attacks pose a serious security risk to large language models in real-world applications. However, existing prompt injection benchmarks primarily focus on short-context inputs, leaving the attacks and defenses in long-context settings largely unexplored. This gap leads to a substantial overestimation of the effectiveness of current defenses. In this paper, we bridge the gap by introducing LongPIBench, a long-context benchmark for prompt injection covering 4 realistic application scenarios: paper peer review, resume screening, code review, and email summary. For each scenario, we construct a synthetic dataset and a real-world dataset, with context lengths ranging from thousands to tens of thousands of tokens. The evaluation results on LongPIBench reveal significant vulnerabilities of prompt injection defenses under long-context settings: even simple heuristic prompt injection attacks achieve high success rates and frequently bypass state-of-the-art defenses. We hope LongPIBench can serve as a practical benchmark for systematically evaluating prompt injection defenses in realistic long-context scenarios.

    Abstract source
  • EMNLP · Findings

    Ada-SQL: Efficient and Adaptive Reasoning for Text-to-SQL

    Xiaohan Shen, Xiao Ling, Jie Liu

    Abstract

    Reasoning efficiency in Text-to-SQL is an important yet underexplored problem. Chain-of-Thought (CoT) reasoning models simplify traditional Text-to-SQL workflows and significantly improve the ability to handle complex queries. However, existing methods typically generate long reasoning processes for all queries. This leads to high token consumption and inference latency, increasing system cost and limiting practical deployment. To address this issue, we propose Ada-SQL, an adaptive reasoning model for Text-to-SQL that jointly optimizes reasoning mode selection and token budget control via a two-stage reinforcement learning framework coupled with a token budget model. This enables the model to adaptively decide whether to reason and how much reasoning budget to allocate based on query difficulty. Experimental results show that Ada-SQL reduces output token consumption by more than 65% while maintaining competitive execution accuracy, achieving a favorable performance-efficiency trade-off. Code and models will be released at https://github.com/sxhText2SQL/Ada-SQL.

    Abstract source
  • EMNLP · Findings

    When AI-Text Detectors Become Evidence: Rethinking Detection for Human Decisions

    Jiatao Li, Mao Ye, Xinyu Hu, Cheng Peng, Xunjian Yin, Xiaojun Wan

    Abstract

    AI-generated-text detectors are evaluated as classifiers, yet consequential deployments use detector outputs as evidence that people inspect, trust, contest, or use to escalate decisions. We call this mismatch the classification–evidence gap. The gap makes scalar detector scores a weak deployment interface: they hide the basis of a judgment, invite overtrust, and can turn false positives into accusations. We argue that AI-text detection should be evaluated as evidence-grounded decision support rather than as authorship proof. We introduce AGENT-XTrust, a guideline-expert detector that returns direct MetaAgent labels without target-domain scalar-cutoff calibration and converts each document-level judgment into inspectable evidence records containing local labels, rationales, confidence estimates, and linked spans. Across three domains and four generators, AGENT-XTrust preserves strong binary accuracy while producing inspectable, contestable evidence. In a controlled fixed-stimulus user study, participants assigned to the full AGENT-XTrust system-and-interface package achieved 19.8 and 11.3 points higher decision accuracy than those assigned to the score-only and score-plus-explanation packages, respectively; overtrust on each condition’s detector-wrong cases was 17.8 and 18.3 points lower. These results suggest a broader evaluation target for AI-text detection: not only whether a detector is correct, but whether complete detector-and-evidence packages support reliable human decisions under uncertainty.

    Abstract source
  • EMNLP · Findings

    SCP-ISA: Spatial Cross-attention Projection for Textual Spatial Semantic Anomaly Detection and Attribution

    Bei Xu, Mengqi Ding

    Abstract

    Textual spatial semantic anomaly detection and attribution requires deciding whether a sentence contains an implausible spatial relation and assigning the corresponding attribution label. Prior prompting and Low-Rank Adaptation (LoRA) fine-tuning methods rely on raw tokenlevel representations, leaving spatial roles and cross-triple conflicts implicit. We propose SCP-ISA, a Spatial Cross-attention Projection (SCP) method with an Inter-Slot Attention (ISA) layer that uses a frozen MacBERT-large encoder to build input-conditioned spatial slots and injects the projected slots into Qwen2.5 as soft prefix embeddings. The ISA layer enables structured cross-slot interaction that collapses co-referring spatial mentions into a shared entity-anchored representation before generation. On the CRSARC benchmark, SCP-ISA improves test cascade attribution F1 (Attr-F1) by 22.7 percentage points (0.509 to 0.736) over Direct LoRA, and detection macro-F1 (Det-F1) from 0.846 to 0.881.

    Abstract source
  • EMNLP · Findings

    SurrogateKV: Representation-Preserving KV Cache Compression for Long-Context LLMs

    Junwon Kim, Junghyun Ryu, Farid Talibli, Jungmin So, Youngjae Kim

    Abstract

    KV cache compression is essential for long-context LLM inference. Most token-level KV compressors reduce cache length by retaining selected token KV entries and evicting the rest. Once evicted, those spans no longer receive attention, even though some may still carry information useful enough to preserve in compact form. We propose SurrogateKV, a training-free, runtime-only method that reframes KV compression as region-level representation allocation. Under the same KV-slot budget, SurrogateKV assigns historical regions to raw KV, surrogate KV, or drop. It does not train a compressor, modify model weights, or introduce a new attention operator. After prefill, SurrogateKV constructs lightweight surrogate entries as ordinary KV pairs, keeping their information available during standard attention decoding. This representation decision is orthogonal to layer- and head-wise budget allocation. We evaluate SurrogateKV-Snap, SurrogateKV-Dynamic, and SurrogateKV-Ada, obtained by applying SurrogateKV to SnapKV, DynamicKV, and Ada-KV, respectively. As representative results, SurrogateKV-Snap raises Needle-in-a-Haystack (NIAH) retrieval accuracy from 87.51 to 98.84 at 128 slots per layer. SurrogateKV-Ada raises the LongBench average score from 40.77 to 41.26 at 512 slots per layer while preserving 98.4% of full-cache performance with only 10.5% of the prefill KV cache. Code is available at https://github.com/kimjunewon/SurrogateKV.

    Abstract source