LogitLens4LLMs: Extending Logit Lens Analysis to Modern Large Language Models
Not on the map. Why?
Abstract (arXiv)
This paper introduces LogitLens4LLMs, a toolkit that extends the Logit Lens technique to modern large language models. While Logit Lens has been a crucial method for understanding internal representations of language models, it was previously limited to earlier model architectures. Our work overcomes the limitations of existing implementations, enabling the technique to be applied to state-of-the-art architectures (such as Qwen-2.5 and Llama-3.1) while automating key analytical workflows. By developing component-specific hooks to capture both attention mechanisms and MLP outputs, our implementation achieves full compatibility with the HuggingFace transformer library while maintaining low inference overhead. The toolkit provides both interactive exploration and batch processing capabilities, supporting large-scale layer-wise analyses. Through open-sourcing our implementation, we aim to facilitate deeper investigations into the internal mechanisms of large-scale language models. The toolkit is openly available at https://github.com/zhenyu-02/LogitLens4LLMs.
Key facts. Cited by 22 papers in the map (data through 7 Oct 2026). Builds on 8 of its 10 references that are in the map. First posted on arXiv 24 Feb 2025.
Builds on
8 of 10 references.
References · 8
- 2023Eliciting Latent Predictions from Transformers with the Tuned Lenscited by 579
- 2024Do Llamas Work in English? On the Latent Language of Multilingual Transformerscited by 275
- 2024Patchscopes: A Unifying Framework for Inspecting Hidden Representations of Language Modelscited by 225
- 2024The Semantic Hub Hypothesis: Language Models Share Semantic Representations Across Languages and Modalitiescited by 69
- 2024Understanding and Patching Compositional Reasoning in LLMscited by 45
- 2024Backward Lens: Projecting Language Model Gradients into the Vocabulary Spacecited by 30
- 2024Mechanistic interpretability of large language models with applications to the financial services industrycited by 5
- 2025Unraveling Token Prediction Refinement and Identifying Essential Layers in Language Modelscited by 3
Built on by
Citing papers per year: 2025: 6; 2026: 16.
22 papers.
Sort:
By area:
- 2026Locate, Steer, and Improve: A Practical Survey of Actionable Mechanistic Interpretability in Large Language Modelscited by 22
- 2025AudioLens: A Closer Look at Auditory Attribute Perception of Large Audio-Language Modelscited by 18
- 2025Rethinking Explainability in the Era of Multimodal AIcited by 6
- 2026From Data to Behavior: Predicting Unintended Model Behaviors Before Trainingcited by 6
- 2026Global Evolutionary Steering: Refining Activation Steering Control via Cross-Layer Consistencycited by 4
- 2026SafeSeek: Universal Attribution of Safety Circuits in Language Modelscited by 4
- 2025Distributional Semantics Tracing: A Framework for Explaining Hallucinations in Large Language Modelscited by 3
- 2025DFAMS: Dynamic-flow guided Federated Alignment based Multi-prototype Searchcited by 2
- 2026When Does a Language Model Commit? A Finite-Answer Theory of Pre-Verbalization Commitmentcited by 2
- 2026Understanding Performance Collapse in Layer-Pruned Large Language Models via Decision Representation Transitionscited by 2
- 2026When Reasoning Traces Become Performative: Step-Level Evidence that Chain-of-Thought Is an Imperfect Oversight Channelcited by 2
- 2025On the Effect of Uncertainty on Layer-wise Inference Dynamicscited by 1
10 more
- 2025Momentum Point-Perplexity Mechanics in Large Language Modelscited by 1
- 2026LoRA-Drop: Temporal LoRA Decoding for Efficient LLM Inferencecited by 1
- 2026Layer-Order Inversion: Rethinking Latent Multi-Hop Reasoning in Large Language Modelscited by 1
- 2026Mechanist: AI as a Scientific Instrument for Discovering the Mechanisms of Intelligencecited by 1
- 2026Mechanistic Indicators of Steering Effectiveness in Large Language Modelscited by 0
- 2026HyperLens: Quantifying Cognitive Effort in LLMs with Fine-grained Confidence Trajectorycited by 0
- 2026Arithmetic Pedagogy for Language Modelscited by 0
- 2026MechLens: Late Crystallization of Factual Knowledge Explains Intervention Effectiveness in Language Modelscited by 0
- 2026When Can We Trust the Sparse Lens? A Certification Framework for SAE Faithfulnesscited by 0
- 2026VisLens: Single-Pass Interpretable Visual Search for Multimodal LLMscited by 0
- 2026VisLens: Single-Pass Interpretable Visual Search for Multimodal LLMs31 Aug 2026
- 2026Mechanist: AI as a Scientific Instrument for Discovering the Mechanisms of Intelligence12 Aug 2026
- 2026When Can We Trust the Sparse Lens? A Certification Framework for SAE Faithfulness16 Jun 2026
- 2026MechLens: Late Crystallization of Factual Knowledge Explains Intervention Effectiveness in Language Models6 Jun 2026
- 2026Arithmetic Pedagogy for Language Models3 Jun 2026
- 2026When Reasoning Traces Become Performative: Step-Level Evidence that Chain-of-Thought Is an Imperfect Oversight Channel12 May 2026
- 2026Understanding Performance Collapse in Layer-Pruned Large Language Models via Decision Representation Transitions8 May 2026
- 2026When Does a Language Model Commit? A Finite-Answer Theory of Pre-Verbalization Commitment7 May 2026
- 2026HyperLens: Quantifying Cognitive Effort in LLMs with Fine-grained Confidence Trajectory7 May 2026
- 2026SafeSeek: Universal Attribution of Safety Circuits in Language Models24 Mar 2026
- 2026Global Evolutionary Steering: Refining Activation Steering Control via Cross-Layer Consistency12 Mar 2026
- 2026From Data to Behavior: Predicting Unintended Model Behaviors Before Training4 Feb 2026
10 more
- 2026Mechanistic Indicators of Steering Effectiveness in Large Language Models2 Feb 2026
- 2026Locate, Steer, and Improve: A Practical Survey of Actionable Mechanistic Interpretability in Large Language Models20 Jan 2026
- 2026Layer-Order Inversion: Rethinking Latent Multi-Hop Reasoning in Large Language Models7 Jan 2026
- 2026LoRA-Drop: Temporal LoRA Decoding for Efficient LLM Inference5 Jan 2026
- 2025Distributional Semantics Tracing: A Framework for Explaining Hallucinations in Large Language Models7 Oct 2025
- 2025DFAMS: Dynamic-flow guided Federated Alignment based Multi-prototype Search28 Aug 2025
- 2025Momentum Point-Perplexity Mechanics in Large Language Models11 Aug 2025
- 2025On the Effect of Uncertainty on Layer-wise Inference Dynamics9 Jul 2025
- 2025Rethinking Explainability in the Era of Multimodal AI16 Jun 2025
- 2025AudioLens: A Closer Look at Auditory Attribute Perception of Large Audio-Language Models5 Jun 2025
- 2026When Does a Language Model Commit? A Finite-Answer Theory of Pre-Verbalization Commitmentcited by 2
- 2026When Reasoning Traces Become Performative: Step-Level Evidence that Chain-of-Thought Is an Imperfect Oversight Channelcited by 2
- 2026Layer-Order Inversion: Rethinking Latent Multi-Hop Reasoning in Large Language Modelscited by 1
- 2026Arithmetic Pedagogy for Language Modelscited by 0
- 2026Arithmetic Pedagogy for Language Models3 Jun 2026
- 2026When Reasoning Traces Become Performative: Step-Level Evidence that Chain-of-Thought Is an Imperfect Oversight Channel12 May 2026
- 2026When Does a Language Model Commit? A Finite-Answer Theory of Pre-Verbalization Commitment7 May 2026
- 2026Layer-Order Inversion: Rethinking Latent Multi-Hop Reasoning in Large Language Models7 Jan 2026
- 2026Locate, Steer, and Improve: A Practical Survey of Actionable Mechanistic Interpretability in Large Language Modelscited by 22
- 2025AudioLens: A Closer Look at Auditory Attribute Perception of Large Audio-Language Modelscited by 18
- 2025Rethinking Explainability in the Era of Multimodal AIcited by 6
- 2026From Data to Behavior: Predicting Unintended Model Behaviors Before Trainingcited by 6
- 2026Global Evolutionary Steering: Refining Activation Steering Control via Cross-Layer Consistencycited by 4
- 2025Distributional Semantics Tracing: A Framework for Explaining Hallucinations in Large Language Modelscited by 3
- 2025DFAMS: Dynamic-flow guided Federated Alignment based Multi-prototype Searchcited by 2
- 2026Understanding Performance Collapse in Layer-Pruned Large Language Models via Decision Representation Transitionscited by 2
- 2025On the Effect of Uncertainty on Layer-wise Inference Dynamicscited by 1
- 2025Momentum Point-Perplexity Mechanics in Large Language Modelscited by 1
- 2026Mechanist: AI as a Scientific Instrument for Discovering the Mechanisms of Intelligencecited by 1
- 2026Mechanistic Indicators of Steering Effectiveness in Large Language Modelscited by 0
12 most cited of 15 All 15 (JSON)
- 2026Mechanist: AI as a Scientific Instrument for Discovering the Mechanisms of Intelligence12 Aug 2026
- 2026When Can We Trust the Sparse Lens? A Certification Framework for SAE Faithfulness16 Jun 2026
- 2026MechLens: Late Crystallization of Factual Knowledge Explains Intervention Effectiveness in Language Models6 Jun 2026
- 2026Understanding Performance Collapse in Layer-Pruned Large Language Models via Decision Representation Transitions8 May 2026
- 2026HyperLens: Quantifying Cognitive Effort in LLMs with Fine-grained Confidence Trajectory7 May 2026
- 2026Global Evolutionary Steering: Refining Activation Steering Control via Cross-Layer Consistency12 Mar 2026
- 2026From Data to Behavior: Predicting Unintended Model Behaviors Before Training4 Feb 2026
- 2026Mechanistic Indicators of Steering Effectiveness in Large Language Models2 Feb 2026
- 2026Locate, Steer, and Improve: A Practical Survey of Actionable Mechanistic Interpretability in Large Language Models20 Jan 2026
- 2025Distributional Semantics Tracing: A Framework for Explaining Hallucinations in Large Language Models7 Oct 2025
- 2025DFAMS: Dynamic-flow guided Federated Alignment based Multi-prototype Search28 Aug 2025
- 2025Momentum Point-Perplexity Mechanics in Large Language Models11 Aug 2025
12 newest of 15 All 15 (JSON)