mlsanityData to 7 Oct 2026

INSPECT: Intrinsic and Systematic Probing Evaluation for Code Transformers

arXiv 2312.05092 ↗First posted 8 Dec 2023cs.SE cs.LGcited by 2

Not on the map. Why?

Abstract (arXiv)

Pre-trained models of source code have recently been successfully applied to a wide variety of Software Engineering tasks; they have also seen some practical adoption in practice, e.g. for code completion. Yet, we still know very little about what these pre-trained models learn about source code. In this article, we use probing--simple diagnostic tasks that do not further train the models--to discover to what extent pre-trained models learn about specific aspects of source code. We use an extensible framework to define 15 probing tasks that exercise surface, syntactic, structural and semantic characteristics of source code. We probe 8 pre-trained source code models, as well as a natural language model (BERT) as our baseline. We find that models that incorporate some structural information (such as GraphCodeBERT) have a better representation of source code characteristics. Surprisingly, we find that for some probing tasks, BERT is competitive with the source code models, indicating that there are ample opportunities to improve source-code specific pre-training on the respective code characteristics. We encourage other researchers to evaluate their models with our probing task suite, so that they may peer into the hidden layers of the models and identify what intrinsic code characteristics are encoded.

Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 51 of its 77 references that are in the map. First posted on arXiv 8 Dec 2023.

Builds on

51 of 77 references.

References · 51

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  4. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  5. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  6. 2020Scaling Laws for Neural Language Modelscited by 6,411
  7. 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,874
  8. 2018Deep contextualized word representationscited by 2,285
  9. 2022Competition-Level Code Generation with AlphaCodecited by 1,427
  10. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
  11. 2016Understanding intermediate layers using linear classifier probescited by 1,279
  12. 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 994
38 more
  1. 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
  2. 2021Probing Classifiers: Promises, Shortcomings, and Advancescited by 831
  3. 2020A Primer in BERTology: What we know about how BERT workscited by 807
  4. 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
  5. 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 638
  6. 2019Designing and Interpreting Probes with Control Taskscited by 608
  7. 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 600
  8. 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 492
  9. 2018What you can cram into a single vector: Probing sentence embeddings for linguistic propertiescited by 452
  10. 2019What do you learn from context? Probing for sentence structure in contextualized word representationscited by 436
  11. 2021Unified Pre-training for Program Understanding and Generationcited by 361
  12. 2022UniXcoder: Unified Cross-Modal Pre-training for Code Representationcited by 355
  13. 2020IntelliCode Compose: Code Generation Using Transformercited by 225
  14. 2017Learning to Represent Programs with Graphscited by 219
  15. 2016Fine-grained Analysis of Sentence Embeddings Using Auxiliary Prediction Taskscited by 216
  16. 2018code2seq: Generating Sequences from Structured Representations of Codecited by 177
  17. 2017What do Neural Machine Translation Models Learn about Morphology?cited by 165
  18. 2018Dissecting Contextual Word Embeddings: Architecture and Representationcited by 146
  19. 2021Acquisition of Chess Knowledge in AlphaZerocited by 120
  20. 2020Behind the Scene: Revealing the Secrets of Pre-trained Vision-and-Language Modelscited by 90
  21. 2020Big Code != Big Vocabulary: Open-Vocabulary Models for Source Codecited by 53
  22. 2022What Do They Capture? -- A Structural Analysis of Pre-Trained Language Models for Source Codecited by 50
  23. 2019When Choosing Plausible Alternatives, Clever Hans can be Clevercited by 39
  24. 2021What do pre-trained code models know about code?cited by 36
  25. 2015On the "Naturalness" of Buggy Codecited by 35
  26. 2019Learning and Evaluating Contextual Embedding of Source Codecited by 33
  27. 2022Probing Pretrained Models of Source Codecited by 26
  28. 2022AST-Probe: Recovering abstract syntax trees from hidden representations of pre-trained language modelscited by 16
  29. 2022AI-driven Development Is Here: Should You Worry?cited by 15
  30. 2022Codex Hacks HackerRank: Memorization Issues and a Framework for Code Synthesis Evaluationcited by 14
  31. 2021Long-range and hierarchical language predictions in brains and algorithmscited by 10
  32. 2022What does Transformer learn about source code?cited by 9
  33. 2022Evaluation Beyond Task Performance: Analyzing Concepts in AlphaZero in Hexcited by 8
  34. 2021Making the most of small Software Engineering datasets with modern machine learningcited by 6
  35. 2022On The Cross-Modal Transfer from Natural Language to Code through Adapter Modulescited by 6
  36. 2022CAT-probing: A Metric-based Approach to Interpret How Pre-trained Models for Programming Language Attend Code Structurecited by 6
  37. 2021JavaBERT: Training a transformer-based model for the Java programming languagecited by 5
  38. 2022Follow-up Attention: An Empirical Study of Developer and Neural Model Code Explorationcited by 5

50 most cited of 51 All 51 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 1; 2025: 0; 2026: 1.

2 papers.