paper-with-me

Papers

LLM-based Source Code Compression via Thresholded Symbol Ranking

2026-07-27 · Angelo Nardone, Paolo Ferragina arxiv

We study the problem of lossless compression of source code, motivated by the storage demands of large-scale software archives, such as Software Heritage (https://www.softwareheritage.org/). General-purpose compressors (e.g., zstd, bzip2) offer a good trade-off between compression ratio and speed, but fail to exploit all special regularities inherent in source code. Recent approaches leverage Large Language Models (LLMs) within Shannon's symbol-ranking framework, relying on a scheme in which the predicted rank can grow arbitrarily. While effective at reducing space, this setting incurs significant throughput degradation, and leaves open the question whether it is necessary to explicitly encode all ranks. In this work, we introduce LLM-based compressors deploying two novel symbol-ranking variants that bound predictions to the top-$T$ ranks ($T=1$ or $63$), with out-of-threshold symbols stored as exceptions and compressed jointly with the rank stream via general-purpose compressors. We conduct the first large-scale evaluation of LLM-based source code compression across 30 LLMs, including general-domain, code-specialized, and quantized models. Our $T$-bounded approach outperforms prior LLM-based compressors both in compression ratio (up to 37% relative improvement) and compression throughput (40% faster). Compared to general-purpose compressors (e.g., zstd, bzip2), we obtain up to 82% relative compression gain but at a lower speed, thus offering a new trade-off point in the compression-speed spectrum. We also show that these gains are stronger on source code than on natural language, suggesting an interesting indication, namely that source code exposes regularities captured by LLMs but missed by general-purpose exact-match-based compressors. We conclude by commenting on open problems that offer theoretical and practical avenues of research.

📄 PDF Abstract BibTeX arXiv:2607.24192

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

A Compression Based Classification Framework Using Symbolic Dynamics of Chaotic Maps

2025-08-04 · Parth Naik, Harikrishnan N B arxiv

We propose a novel classification framework grounded in symbolic dynamics and data compression using chaotic maps. The core idea is to model each class by generating symbolic sequences from thresholded real-valued traini…

The Rate-Distortion-Perception Trade-off: The Role of Private Randomness

2024-04-01 · Yassine Hamdi, Aaron B. Wagner, Deniz Gündüz

In image compression, with recent advances in generative modeling, the existence of a trade-off between the rate and the perceptual quality (realism) has been brought to light, where the realism is measured by the closen…

DecoderImage Compression

Solving Quadratic Systems with Full-Rank Matrices Using Sparse or Generative Priors

2023-09-16 · Junren Chen, Michael K. Ng, Zhaoqiang Liu

The problem of recovering a signal $\boldsymbol x\in \mathbb{R}^n$ from a quadratic system $\{y_i=\boldsymbol x^\top\boldsymbol A_i\boldsymbol x,\ i=1,\ldots,m\}$ with full-rank matrices $\boldsymbol A_i$ frequently aris…

Secure Arithmetic Coding with Error Detection Capability

2010-05-23 · "Mahnaz Sinaie and Vahid Tabataba Vakili"

Recently, arithmetic coding has attracted the attention of many scholars because of its high compression capability. Accordingly, this paper proposed a Joint Source-Cryptographic-Channel Coding (JSCC) based on Arithmeti…

SymED: Adaptive and Online Symbolic Representation of Data on the Edge

2023-09-06 · Daniel Hofstätter, Shashikant Ilager, Ivan Lujic, Ivona Brandic

The edge computing paradigm helps handle the Internet of Things (IoT) generated data in proximity to its source. Challenges occur in transferring, storing, and processing this rapidly growing amount of data on resource-c…

Anomaly DetectionData CompressionDynamic Time WarpingEdge-computing