mlsanityData to 7 Oct 2026

Frozen Transformers in Language Models Are Effective Visual Encoder Layers

arXiv 2310.12973 ↗First posted 19 Oct 2023cs.CV cs.AI cs.CLcited by 39

Not on the map. Why?

Abstract (arXiv)

This paper reveals that large language models (LLMs), despite being trained solely on textual data, are surprisingly strong encoders for purely visual tasks in the absence of language. Even more intriguingly, this can be achieved by a simple yet previously overlooked strategy -- employing a frozen transformer block from pre-trained LLMs as a constituent encoder layer to directly process visual tokens. Our work pushes the boundaries of leveraging LLMs for computer vision tasks, significantly departing from conventional practices that typically necessitate a multi-modal vision-language setup with associated language prompts, inputs, or outputs. We demonstrate that our approach consistently enhances performance across a diverse range of tasks, encompassing pure 2D and 3D visual recognition tasks (e.g., image and point cloud classification), temporal modeling tasks (e.g., action recognition), non-semantic tasks (e.g., motion forecasting), and multi-modal tasks (e.g., 2D/3D visual question answering and image-text retrieval). Such improvements are a general phenomenon, applicable to various types of LLMs (e.g., LLaMA and OPT) and different LLM transformer blocks. We additionally propose the information filtering hypothesis to explain the effectiveness of pre-trained LLMs in visual encoding -- the pre-trained LLM transformer blocks discern informative visual tokens and further amplify their effect. This hypothesis is empirically supported by the observation that the feature activation, after training with LLM transformer blocks, exhibits a stronger focus on relevant regions. We hope that our work inspires new perspectives on utilizing LLMs and deepening our understanding of their underlying mechanisms. Code is available at https://github.com/ziqipang/LM4VisualEncoding.

Key facts. Cited by 39 papers in the map (data through 7 Oct 2026). Builds on 75 of its 87 references that are in the map. First posted on arXiv 19 Oct 2023.

Builds on

75 of 87 references.

References · 75

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
  4. 2020Language Models are Few-Shot Learnerscited by 32,199
  5. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  6. 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,694
  7. 2014Microsoft COCO: Common Objects in Contextcited by 17,498
  8. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  9. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  10. 2023Segment Anythingcited by 8,158
  11. 2021Masked Autoencoders Are Scalable Vision Learnerscited by 7,339
  12. 2021Emerging Properties in Self-Supervised Vision Transformerscited by 6,893
38 more
  1. 2016Grad-CAM: Visual Explanations from Deep Networks via Gradient-based Localizationcited by 6,690
  2. 2020Scaling Laws for Neural Language Modelscited by 6,411
  3. 2023BLIP-2: Bootstrapping Language-Image Pre-training with Frozen Image Encoders and Large Language Modelscited by 6,069
  4. 2016Layer Normalizationcited by 5,579
  5. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
  6. 2016SGDR: Stochastic Gradient Descent with Warm Restartscited by 4,993
  7. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
  8. 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
  9. 2022Flamingo: a Visual Language Model for Few-Shot Learningcited by 4,337
  10. 2022BLIP: Bootstrapping Language-Image Pre-training for Unified Vision-Language Understanding and Generationcited by 4,310
  11. 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
  12. 2016Gaussian Error Linear Units (GELUs)cited by 3,431
  13. 2015ShapeNet: An Information-Rich 3D Model Repositorycited by 2,880
  14. 2019Benchmarking Neural Network Robustness to Common Corruptions and Perturbationscited by 2,857
  15. 2016Visual Genome: Connecting Language and Vision Using Crowdsourced Dense Image Annotationscited by 2,646
  16. 2022Locating and Editing Factual Associations in GPTcited by 2,609
  17. 2016Making the V in VQA Matter: Elevating the Role of Image Understanding in Visual Question Answeringcited by 2,498
  18. 2022BLOOM: A 176B-Parameter Open-Access Multilingual Language Modelcited by 1,968
  19. 2020The Many Faces of Robustness: A Critical Analysis of Out-of-Distribution Generalizationcited by 1,842
  20. 2017Accurate, Large Minibatch SGD: Training ImageNet in 1 Hourcited by 1,479
  21. 2019Natural Adversarial Examplescited by 1,401
  22. 2015Flickr30k Entities: Collecting Region-to-Phrase Correspondences for Richer Image-to-Sentence Modelscited by 1,352
  23. 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,307
  24. 2022VideoMAE: Masked Autoencoders are Data-Efficient Learners for Self-Supervised Video Pre-Trainingcited by 1,305
  25. 2021ViLT: Vision-and-Language Transformer Without Convolution or Region Supervisioncited by 1,224
  26. 2023HuggingGPT: Solving AI Tasks with ChatGPT and its Friends in Hugging Facecited by 1,173
  27. 2017The "something something" video database for learning and evaluating visual common sensecited by 1,092
  28. 2021Perceiver: General Perception with Iterative Attentioncited by 1,089
  29. 2019Learning Robust Global Representations by Penalizing Local Predictive Powercited by 1,010
  30. 2022Mass-Editing Memory in a Transformercited by 976
  31. 2023Vision Transformers Need Registerscited by 844
  32. 2022GLM-130B: An Open Bilingual Pre-trained Modelcited by 837
  33. 2023LLaMA-Adapter: Efficient Fine-tuning of Language Models with Zero-init Attentioncited by 776
  34. 2019Argoverse: 3D Tracking and Forecasting with Rich Mapscited by 728
  35. 2017Network Dissection: Quantifying Interpretability of Deep Visual Representationscited by 703
  36. 2019Deep Hough Voting for 3D Object Detection in Point Cloudscited by 648
  37. 2021Point-BERT: Pre-training 3D Point Cloud Transformers with Masked Point Modelingcited by 647
  38. 2023ViperGPT: Visual Inference via Python Execution for Reasoningcited by 591

50 most cited of 75 All 75 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 17; 2025: 18; 2026: 4.

39 papers.

Sort:

By area:

  1. 2024RandAR: Decoder-only Autoregressive Visual Generation in Random Orderscited by 82
  2. 2026DeepSeek-OCR 2: Visual Causal Flowcited by 68
  3. 2024Knowledge Graphs Meet Multi-Modal Learning: A Comprehensive Surveycited by 50
  4. 2024Lexicon3D: Probing Visual Foundation Models for Complex 3D Scene Understandingcited by 46
  5. 2024Situational Awareness Matters in 3D Vision Language Reasoningcited by 32
  6. 2024LLM4GEN: Leveraging Semantic Representation of LLMs for Text-to-Image Generationcited by 30
  7. 2024Prior Knowledge Integration via LLM Encoding and Pseudo Event Regulation for Video Moment Retrievalcited by 30
  8. 2024Residual-based Language Models are Free Boosters for Biomedical Imagingcited by 23
  9. 2025Learning to See Before Seeing: Demystifying LLM Visual Priors from Language Pre-trainingcited by 23
  10. 2024Mobility-LLM: Learning Visiting Intentions and Travel Preferences from Human Mobility Data with Large Language Modelscited by 21
  11. 2025Large Language Model for Lossless Image Compression with Visual Promptscited by 15
  12. 2025Embodied Intelligence for 3D Understanding: A Survey on 3D Scene Question Answeringcited by 11
27 more
  1. 2025DSPNet: Dual-vision Scene Perception for Robust 3D Question Answeringcited by 9
  2. 2024Learning Modality Knowledge Alignment for Cross-Modality Transfercited by 8
  3. 2025seq-JEPA: Autoregressive Predictive Learning of Invariant-Equivariant World Modelscited by 7
  4. 2025Pre-Trained LLM is a Semantic-Aware and Generalizable Segmentation Boostercited by 7
  5. 2024Swiss Army Knife: Synergizing Biases in Knowledge from Vision Foundation Models for Multi-Task Learningcited by 6
  6. 2024Enhancing Cross-Modal Fine-Tuning with Gradually Intermediate Modality Generationcited by 5
  7. 2024TrajCogn: Leveraging LLMs for Cognizing Movement Patterns and Travel Purposes from Trajectoriescited by 4
  8. 2024MedVisionLlama: Leveraging Pre-Trained Large Language Model Layers to Enhance Medical Image Segmentationcited by 4
  9. 2024Robust and Minimally Invasive Watermarking for EaaScited by 4
  10. 2024Adapting LLaMA Decoder to Vision Transformercited by 3
  11. 2024Advancing Anomaly Detection: Non-Semantic Financial Data Encoding with LLMscited by 3
  12. 2025Revisiting Medical Image Retrieval via Knowledge Consolidationcited by 3
  13. 2025Computer-Aided Layout Generation for Building Design: A Reviewcited by 3
  14. 2025Bob's Confetti: Phonetic Memorization Attacks in Music and Video Generationcited by 3
  15. 2025Knowledge Transfer from Interaction Learningcited by 2
  16. 2026Reducing Tokenization Premiums for Low-Resource Languagescited by 2
  17. 2025Plug-in and Fine-tuning: Bridging the Gap between Small Language Models and Large Language Modelscited by 1
  18. 2025Enhancing Self-Supervised Visual Representation Learning via Low-Rank Adapted LLMscited by 1
  19. 2025Remote Sensing Image Intelligent Interpretation with the Language-Centered Perspective: Principles, Methods and Challengescited by 1
  20. 2026TA-Prompting: Enhancing Video Large Language Models for Dense Video Captioning via Temporal Anchorscited by 1
  21. 2024Scale Contrastive Learning with Selective Attentions for Blind Image Quality Assessmentcited by 0
  22. 2025MLVTG: Mamba-Based Feature Alignment and LLM-Driven Purification for Multi-Modal Video Temporal Groundingcited by 0
  23. 2025CircuitProbe: Tracing Visual Temporal Evidence Flow in Video Language Modelscited by 0
  24. 2025Category-level Text-to-Image Retrieval Improved: Bridging the Domain Gap with Diffusion Models and Vision Encoderscited by 0
  25. 2025Consolidating Diffusion-Generated Video Detection with Unified Multimodal Forgery Learningcited by 0
  26. 2025HMR3D: Hierarchical Multimodal Representation for 3D Scene Understanding with Large Vision-Language Modelcited by 0
  27. 2026PanguMotion: Continuous Driving Motion Forecasting with Pangu Transformerscited by 0