mlsanityData to 14 Oct 2026

Neuron-Guided Interpretation of Code LLMs: Where, Why, and How?

arXiv 2512.19980 ↗First posted 23 Dec 2025cs.SE cs.AIcited by 5

Not on the map. Why?

Abstract (arXiv)

Code language models excel on code intelligence tasks, yet their internal interpretability is underexplored. Existing neuron interpretability techniques from NLP are suboptimal for source code due to programming languages formal, hierarchical, and executable nature. We empirically investigate code LLMs at the neuron level, localizing language-specific neurons (selectively responsive to one language) and concept layers (feed-forward layers encoding language-agnostic code representations). We analyze Llama-3.1-8B and Qwen2.5-Coder-32B on multilingual inputs in C++, Java, Python, Go, and JavaScript, measuring neuron selectivity and layerwise contributions during generation. We find (1) neurons specialized for individual languages alongside a universal subset supporting general-purpose generation; and (2) lower layers mainly encode language-specific syntax, while middle layers capture semantic abstractions shared across languages, emerging as concept layers. We demonstrate utility on three tasks: neuron-guided fine-tuning for code generation, clone detection via concept-layer embeddings, and concept-layer-guided transfer for code summarization, each yielding consistent gains in multilingual settings.

Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Builds on 46 of its 67 references that are in the map. First posted on arXiv 23 Dec 2025.

Builds on

46 of 67 references.

References · 46

  1. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
  2. 2024The Llama 3 Herd of Modelscited by 14,715
  3. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  4. 2016Overcoming catastrophic forgetting in neural networkscited by 4,787
  5. 2017Axiomatic Attribution for Deep Networkscited by 3,384
  6. 2013Deep Inside Convolutional Networks: Visualising Image Classification Models and Saliency Mapscited by 2,371
  7. 2023Representation Engineering: A Top-Down Approach to AI Transparencycited by 1,336
  8. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,310
  9. 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,165
  10. 2019Cross-lingual Language Model Pretrainingcited by 1,090
  11. 2019BERT Rediscovers the Classical NLP Pipelinecited by 1,059
  12. 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 1,003
34 more
  1. 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 654
  2. 2019Designing and Interpreting Probes with Control Taskscited by 640
  3. 2021Knowledge Neurons in Pretrained Transformerscited by 601
  4. 2023Finding Neurons in a Haystack: Case Studies with Sparse Probingcited by 334
  5. 2023Explainability for Large Language Models: A Surveycited by 333
  6. 2023CodeGeeX: A Pre-Trained Model for Code Generation with Multilingual Benchmarking on HumanEval-Xcited by 300
  7. 2020Unsupervised Translation of Programming Languagescited by 263
  8. 2024Patchscopes: A Unifying Framework for Inspecting Hidden Representations of Language Modelscited by 235
  9. 2023Text Embeddings Reveal (Almost) As Much As Textcited by 192
  10. 2020A Transformer-based Approach for Source Code Summarizationcited by 133
  11. 2023Circuit Component Reuse Across Tasks in Transformer Language Modelscited by 108
  12. 2019How Does BERT Answer Questions? A Layer-Wise Analysis of Transformer Representationscited by 63
  13. 2020Pareto Probing: Trading Off Accuracy for Complexitycited by 55
  14. 2020Cross-lingual Retrieval for Iterative Self-Supervised Trainingcited by 54
  15. 2022What Do They Capture? -- A Structural Analysis of Pre-Trained Language Models for Source Codecited by 50
  16. 2025Taxonomy, Opportunities, and Challenges of Representation Engineering for Large Language Modelscited by 34
  17. 2022Probing Pretrained Models of Source Codecited by 26
  18. 2021Counterfactual Explanations for Models of Codecited by 25
  19. 2025EvoC2Rust: A Skeleton-guided Framework for Project-Level C-to-Rust Translationcited by 19
  20. 2023On the Reliability and Explainability of Language Models for Program Generationcited by 17
  21. 2023Towards a fuller understanding of neurons with Clustered Compositional Explanationscited by 15
  22. 2023Benchmarking Causal Study to Interpret Large Language Models for Source Codecited by 14
  23. 2024Do Large Code Models Understand Programming Concepts? Counterfactual Analysis for Code Predicatescited by 14
  24. 2022An Exploratory Study on Code Attention in BERTcited by 12
  25. 2023Toward a Theory of Causation for Interpreting Neural Code Modelscited by 12
  26. 2021Practitioners' Perceptions of the Goals and Visual Explanations of Defect Prediction Modelscited by 9
  27. 2022What does Transformer learn about source code?cited by 9
  28. 2022Explainable AI for Pre-Trained Code Models: What Do They Learn? When They Do Not Work?cited by 8
  29. 2024Looking into Black Box Code Language Modelscited by 5
  30. 2025How Programming Concepts and Neurons Are Shared in Code Language Modelscited by 5
  31. 2023Clustering Pseudo Language Family in Multilingual Translation Models with Fisher Information Matrixcited by 2
  32. 2025CodeSCM: Causal Analysis for Multi-Modal Code Generationcited by 2
  33. 2023Naturalness of Attention: Revisiting Attention in Code Language Modelscited by 1
  34. 2024On the Use of Deep Learning Models for Semantic Clone Detectioncited by 1

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 5.

5 papers.