Compressed Token Memory: Visual Encoding for Efficient LLM Inference

This work introduces a novel token memory system that encodes transformer token sequences into 16-bit grayscale PNG images, addressing the pervasive inefficiency of repetitive dialogue history tokenization in large language models. The proposed method achieves a 2.93-fold reduction in storage requirements compared to uncompressed text while maintaining full compatibility with the Hugging Face ecosystem. By converting token IDs into a GPU-ready visual format, the system eliminates redundant preprocessing steps that currently consume 30-40% of inference time in conventional pipelines. Zero-Copy GPU Access Large Language Models (LLMs) Efficient Inference Memory Optimization Sustainable AI Deployment Transformer Architecture Persistent Dialogue Memory Preprocessing Bottleneck Elimination Language Model Scalability AI Storage Efficiency Compressed Token Encoding DeepSeek Tokenizer Integration

Institutions

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2025-04-27
DOI
https://doi.org/10.5281/zenodo.15291754
Primary Topic
MicroRNA in disease regulation
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Compressed Token Memory: Visual Encoding for Efficient LLM Inference

Zenodo (CERN European Organization for Nuclear Research)
MicroRNA in disease regulation
article

Compressed Token Memory: Visual Encoding for Efficient LLM Inference

article en

Abstract

This work introduces a novel token memory system that encodes transformer token sequences into 16-bit grayscale PNG images, addressing the pervasive inefficiency of repetitive dialogue history tokenization in large language models. The proposed method achieves a 2.93-fold reduction in storage requirements compared to uncompressed text while maintaining full compatibility with the Hugging Face ecosystem. By converting token IDs into a GPU-ready visual format, the system eliminates redundant preprocessing steps that currently consume 30-40% of inference time in conventional pipelines. Zero-Copy GPU Access Large Language Models (LLMs) Efficient Inference Memory Optimization Sustainable AI Deployment Transformer Architecture Persistent Dialogue Memory Preprocessing Bottleneck Elimination Language Model Scalability AI Storage Efficiency Compressed Token Encoding DeepSeek Tokenizer Integration

Zenodo (CERN European Organization for Nuclear Research)
Lokman Hekim Üniversitesi (TR)
Responsible consumption and production
Openalex Percentile: Top 46%
MicroRNA in disease regulation
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.