mlsanityData to 7 Oct 2026

Glyph: Scaling Context Windows via Visual-Text Compression

arXiv 2510.17800 ↗First posted 20 Oct 2025cs.CV cs.CL cs.LGcited by 49

Not on the map. Why?

Abstract (arXiv)

Large language models (LLMs) increasingly rely on long-context modeling for tasks such as document understanding, code analysis, and multi-step reasoning. However, scaling context windows to the million-token level brings prohibitive computational and memory costs, limiting the practicality of long-context LLMs. In this work, we take a different perspective-visual context scaling-to tackle this challenge. Instead of extending token-based sequences, we propose Glyph, a framework that renders long texts into images and processes them with vision-language models (VLMs). This approach substantially compresses textual input while preserving semantic information, and we further design an LLM-driven genetic search to identify optimal visual rendering configurations for balancing accuracy and compression. Through extensive experiments, we demonstrate that our method achieves 3-4x token compression while maintaining accuracy comparable to leading LLMs such as Qwen3-8B on various long-context benchmarks. This compression also leads to around 4x faster prefilling and decoding, and approximately 2x faster SFT training. Furthermore, under extreme compression, a 128K-context VLM could scale to handle 1M-token-level text tasks. In addition, the rendered text data benefits real-world multimodal tasks, such as document understanding. Our code and model are released at https://github.com/thu-coai/Glyph.

Key facts. Cited by 49 papers in the map (data through 7 Oct 2026). Builds on 13 of its 28 references that are in the map. First posted on arXiv 20 Oct 2025.

Builds on

13 of 28 references.

References · 13

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
  3. 2025Gemini 2.5: Pushing the Frontier with Advanced Reasoning, Multimodality, Long Context, and Next Generation Agentic Capabilitiescited by 3,655
  4. 2020Longformer: The Long-Document Transformercited by 3,362
  5. 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,378
  6. 2024ChatGLM: A Family of Large Language Models from GLM-130B to GLM-4 All Toolscited by 1,096
  7. 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,085
  8. 2022PaLI: A Jointly-Scaled Multilingual Language-Image Modelcited by 762
  9. 2023Gated Linear Attention Transformers with Hardware-Efficient Trainingcited by 490
  10. 2025RWKV-7 "Goose" with Expressive Dynamic State Evolutioncited by 134
  11. 2024Summary of a Haystack: A Challenge to Long-Context LLMs and RAG Systemscited by 87
  12. 2024Michelangelo: Long Context Evaluations Beyond Haystacks via Latent Structure Queriescited by 85
1 more
  1. 2024Extending Context Window of Large Language Models from a Distributional Perspectivecited by 6

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 6; 2026: 43.

49 papers.

Sort:

By area:

  1. 2026AgentOCR: Reimagining Agent History via Optical Self-Compressioncited by 22
  2. 2026Render-of-Thought: Rendering Textual Chain-of-Thought as Images for Visual Latent Reasoningcited by 19
  3. 2025Context Cascade Compression: Exploring the Upper Limits of Text Compressioncited by 17
  4. 2026MemOCR: Layout-Aware Visual Memory for Efficient Long-Horizon Reasoningcited by 15
  5. 2025VTCBench: Can Vision-Language Models Understand Long Context with Vision-Text Compression?cited by 11
  6. 2026VTC-R1: Vision-Text Compression for Efficient Long-Context Reasoningcited by 8
  7. 2026ReGuLaR: Variational Latent Reasoning Guided by Rendered Chain-of-Thoughtcited by 8
  8. 2026VISTA-Bench: Do Vision-Language Models Really Understand Visualized Text as Well as Pure Text?cited by 8
  9. 2026EfficientPosterGen: Semantic-aware Efficient Poster Generation via Token Compression and Accurate Violation Detectioncited by 8
  10. 2026Reading, Not Thinking: Understanding and Bridging the Modality Gap When Text Becomes Pixels in Multimodal LLMscited by 6
  11. 2026Can Vision-Language Models Handle Long-Context Code? An Empirical Study on Visual Compressioncited by 5
  12. 2026FSVideo: Fast Speed Video Diffusion Model in a Highly-Compressed Latent Spacecited by 5
37 more
  1. 2025InnoGym: Benchmarking the Innovation Potential of AI Agentscited by 4
  2. 2026OneLatent: Single-Token Compression for Visual Latent Reasoningcited by 4
  3. 2025From Context to EDUs: Faithful and Structured Context Compression via Elementary Discourse Unit Decompositioncited by 3
  4. 2026When Text-as-Vision Meets Semantic IDs in Generative Recommendation: An Empirical Studycited by 3
  5. 2026Proxy Compression for Language Modelingcited by 3
  6. 2026VERA: Identifying and Leveraging Visual Evidence Retrieval Heads in Long-Context Understandingcited by 3
  7. 2026MapTab: A Diagnostic Benchmark for Long-Horizon Multi-Criteria Multimodal Reasoning on Heterogeneous Topological Graphscited by 3
  8. 2026WebNavigator: Global Web Navigation via Interaction Graph Retrievalcited by 3
  9. 2026LensVLM: Selective Context Expansion for Compressed Visual Representation of Textcited by 2
  10. 2026PIXELRAG: Web Screenshots Beat Text for Retrieval-Augmented Generationcited by 2
  11. 2026Decoupling semantics from vision: A framework for faithful visual-text compression evaluationcited by 2
  12. 2026Same Semantics, Different Paths: Self-Improving Alignment for Vision-Text Compressioncited by 2
  13. 2025Optical Context Compression Is Just (Bad) Autoencodingcited by 1
  14. 2026Global Context Compression with Interleaved Vision-Text Transformationcited by 1
  15. 2026ImgCoT: Compressing Long Chain of Thought into Compact Visual Tokens for Efficient Reasoning of Large Language Modelcited by 1
  16. 2026Document-as-Image Representations Fall Short for Scientific Retrievalcited by 1
  17. 2026Hard to Read, Easy to Jailbreak: How Visual Degradation Bypasses MLLM Safety Alignmentcited by 1
  18. 2026Magnifying What Matters: Attention-Guided Adaptive Rendering for Visual Text Comprehensioncited by 1
  19. 2026Reading is not Reasoning: Bridging the Agentic Policy Gap in Vision-Text Compressioncited by 1
  20. 2026LatentPress: Context Compression Beyond Text and Visioncited by 1
  21. 2025Selective LoRA for Visual Tokens and Attention Headscited by 0
  22. 2026Rethinking Genomic Modeling Through Optical Character Recognitioncited by 0
  23. 2026How to Utilize Complementary Vision-Text Information for 2D Structure Understandingcited by 0
  24. 2026TableVision: A Large-Scale Benchmark for Spatially Grounded Reasoning over Complex Hierarchical Tablescited by 0
  25. 2026When 2D Tasks Meet 1D Serialization: On Serialization Friction in Structured Taskscited by 0
  26. 2026LoMo: Local Modality Substitution for Deeper Vision-Language Fusioncited by 0
  27. 2026Optical Reasoning: Rethinking Images as an Expressive Reasoning Medium Beyond Textcited by 0
  28. 2026The Verbose Context Problem in Medical Recordscited by 0
  29. 2026Mapping Text to Multiplex Graph: Prompt Compression as L'evy Walk-Guided Graph Pruningcited by 0
  30. 2026A First-Principles Theory of Slow Thinking and Active Perceptioncited by 0
  31. 2026RAGOCR: Optical Compression of Retrieval-Augmented Text via Visual Representationcited by 0
  32. 2026DeepVoyager-VL: Incentivizing Vision-in-the-Loop Search for Long-Horizon Multimodal Agentscited by 0
  33. 2026Can Coding Agents Solve Repository-Level Issues with Rendered Code? An Exploratory Study of Visual Representationscited by 0
  34. 2026Text-Guided Visual Dependency Graph Learning with Cross-Modal Attention Priorscited by 0
  35. 2026A Table Is Worth 64 Tokens: Pixel-level Compression for Multi-Table Document Question Answeringcited by 0
  36. 2026On the Design Fundamentals of Pixel Text Representation Learningcited by 0
  37. 2026FocusVTC: Efficient and High-Performance Visual Text Compression with Adaptive Resolutioncited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2024Efficient Large Multi-modal Models via Visual Context Compression
  2. 2025FCoT-VL:Advancing Text-oriented Large Vision-Language Models with Efficient Visual Token Compression
  3. 2026VLZip: Unified Visual and Textual Compression for Interleaved Long-Context Modeling
  4. 2024FocusLLaVA: A Coarse-to-Fine Approach for Efficient and Effective Visual Token Compression
  5. 2025Text or Pixels? It Takes Half: On the Token Efficiency of Visual Text Inputs in Multimodal LLMs
  6. 2025A Survey of Token Compression for Efficient Multimodal Large Language Models
  7. 2026Resolution as a First-Class Decision: Task-Conditioned Routing for Efficient Multimodal Large Language Models
  8. 2026Training Long-Context Vision-Language Models Effectively with Generalization Beyond 128K Context