Search arXiv⌕ Search

arXiv subjects

Ivan Krivorotov

Publications and source records attributed to Ivan Krivorotov.

3 recordsLinked to original sources

Compressing Gated DeltaNet States with a Shared Value Basis and an Adaptive Residual

Gated DeltaNet maintains a recurrent state matrix for every active request. With the model weights fixed, we calibrate a value basis shared across layers and requests and pair it with a low-rank residual that adapts during generation. Each write introduces at most one new direction. The model reads from the updated factors before reducing the residual by spectral truncation (Spectral) or a single plane rotation (Plane). On Qwen3.5-2B, sharing uses 11.4% less persistent recurrent storage at batch eight than a fully adaptive factorization matched for FP32 storage at batch one. The fully adaptive control scores slightly higher on RULER and similarly on LongBench. Packing the coefficients in INT8 gives $9.17\times$ compression relative to dense FP32 states at batch eight, including bases and scales. With 4K prompt budgets, Spectral and Plane score 0.09 and 0.26 points below dense on RULER, respectively, and both are within 0.11 points on LongBench. On Qwen3.5-4B at batch one, Plane compresses the recurrent states by $7.21\times$ and scores 0.04 points below dense on RULER and 0.12 below on LongBench. At batch 64 on Qwen3.5-2B, INT8 Plane reaches $9.49\times$ compression with near-dense decode throughput under CUDA Graph replay.

cs.LG↗

DCKV: Learned Transform Coding of the Prompt KV Cache in Hybrid Language Models

Hybrid language models keep a key-value (KV) cache only in their few full-attention layers, but this cache is still the part of a prompt's state that grows with the prompt and that must be stored or moved to reuse it. We present DCKV, a differentiable codec for the KV cache and the first KV-cache codec that is trained end to end. Its transform, its quantizer and its entropy models, which are conditioned on the prompt tokens and on already decoded neighbouring positions, are optimized together against the frozen language model, both for the code length that the entropy models assign and for the change of the model's output. On Qwen3.5-2B, DCKV stores a compressed token in more than 55 times fewer bytes than bf16 at a loss of at most 1.8 points on three long-context benchmarks, and in more than 100 times fewer bytes at a loss of at most 3.6 points.

cs.LG↗

Data Generation for Post-OCR correction of Cyrillic handwriting

This paper introduces a novel approach to post-Optical Character Recognition Correction (POC) for handwritten Cyrillic text, addressing a significant gap in current research methodologies. This gap is due to the lack of large text corporas that provide OCR errors for further training of language-based POC models, which are demanding in terms of corpora size. Our study primarily focuses on the development and application of a synthetic handwriting generation engine based on Bézier curves. Such an engine generates highly realistic handwritten text in any amounts, which we utilize to create a substantial dataset by transforming Russian text corpora sourced from the internet. We apply a Handwritten Text Recognition (HTR) model to this dataset to identify OCR errors, forming the basis for our POC model training. The correction model is trained on a 90-symbol input context, utilizing a pre-trained T5 architecture with a seq2seq correction task. We evaluate our approach on HWR200 and School_notebooks_RU datasets as they provide significant challenges in the HTR domain. Furthermore, POC can be used to highlight errors for teachers, evaluating student performance. This can be done simply by comparing sentences before and after correction, displaying differences in text. Our primary contribution lies in the innovative use of Bézier curves for Cyrillic text generation and subsequent error correction using a specialized POC model. We validate our approach by presenting Word Accuracy Rate (WAR) and Character Accuracy Rate (CAR) results, both with and without post-OCR correction, using real open corporas of handwritten Cyrillic text. These results, coupled with our methodology, are designed to be reproducible, paving the way for further advancements in the field of OCR and handwritten text analysis. Paper contributions can be found in https://github.com/dbrainio/CyrillicHandwritingPOC

cs.CV↗