atlas

Research map / Large language models / Language, safety and interpretability

Large Language Models for Lossless Image Compression: Next-Pixel Prediction in Language Space is All You Need

NeurIPS 2025 · Large language models › Language, safety and interpretability · approach: LLM unlearning and benchmarks · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes P²-LLM, a fine-tuned Llama 3 8B that losslessly compresses RGB images by next-subpixel prediction in language space using a chat-style task prompt, numerical digit tokens, and sampled predictive logits for arithmetic coding.

Problem

Existing LLM-based lossless compressors work on grayscale images and lag far behind SOTA codecs on RGB benchmarks because of channel-independent modeling, proxy ASCII tokens that break pixel-value semantics, and lack of domain adaptation.

Approach

Treat each RGB pixel as a channel-joint sequence with a pixel prediction chat template, map each subpixel value 0-255 to its own numerical token (one-to-one), sample the 256 pixel-value logits before softmax as the coding distribution, and LoRA-fine-tune the LLM on DIV2K.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
replace DLPR with P²-LLMLossless image compression · CLIC.mbpsp: 2.16 -> 2.08Helped
replace DLPR with P²-LLMLossless image compression · Kodakbpsp: 2.86 -> 2.83Helped
add channel-joint prediction instead of channel-independent prediction (ablation)P²-LLM without fine-tuning or task prompt · Kodakbpsp: 4.55 -> 3.96Helped
add the task prompt (ablation)P²-LLM with channel-joint prediction, without fine-tuning · Kodakbpsp: 3.96 -> 3.83Helped
add fine-tuning (ablation)P²-LLM with channel-independent prediction and no task prompt · Kodakbpsp: 4.55 -> 3.95Helped
add fine-tuning (ablation)P²-LLM with channel-independent prediction and task prompt · Kodakbpsp: 4.46 -> 3.76Helped
add fine-tuning (ablation)P²-LLM with channel-joint prediction and no task prompt · Kodakbpsp: 3.96 -> 2.99Helped
add fine-tuning (ablation)P²-LLM with channel-joint prediction and task prompt · Kodakbpsp: 3.83 -> 2.83Helped
add the task prompt (ablation)P²-LLM with channel-independent prediction, without fine-tuning · Kodakbpsp: 4.55 -> 4.46Helped
add the task prompt (ablation)P²-LLM with channel-independent prediction and fine-tuning · Kodakbpsp: 3.95 -> 3.76Helped
use patch size 16×16 instead of 8×8×3 (ablation)P²-LLM · Kodakbpsp: 3.10 -> 2.83Helped
use patch size 16×16 instead of 12×12×3 (ablation)P²-LLM · Kodakbpsp: 2.95 -> 2.83Helped

Surprising findings

Limitations

Experimental setup

Datasets: DIV2K-Training

Benchmarks: DIV2K-Validation Kodak CLIC.p CLIC.m SCID BRACS24

Metrics: bpsp encoding time decoding time

Baselines: PNG JPEG-LS CALIC JPEG2000 WebP BPG FLIF JPEG-XL L3C RC iVPF iFlow

Builds on: LLM-based lossless compression (LLMZip-style / Language modeling is compression) LoRA Llama 3 DLPR

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy