Towards Understanding What Code Language Models Learned

Toufique Ahmed, Dian Yu, Chengxuan Huang, Cathy Wang, Prem Devanbu +1 more
6/20/2023
cs.SEcs.CLcs.LG

No confident code implementation found for this paper. 6 possible matches can be shown below.

Abstract

Pre-trained language models are effective in a variety of natural language tasks, but it has been argued their capabilities fall short of fully learning meaning or understanding language. To understand the extent to which language models can learn some form of meaning, we investigate their ability to capture semantics of code beyond superficial frequency and co-occurrence. In contrast to previous research on probing models for linguistic features, we study pre-trained models in a setting that allows for objective and straightforward evaluation of a model's ability to learn semantics. In this paper, we examine whether such models capture the semantics of code, which is precisely and formally defined. Through experiments involving the manipulation of code fragments, we show that code pre-trained models of code learn a robust representation of the computational semantics of code that goes beyond superficial features of form alone

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 6 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{ahmed2023towards,
  title  = {Towards Understanding What Code Language Models Learned},
  author = {Toufique Ahmed and Dian Yu and Chengxuan Huang and Cathy Wang and Prem Devanbu and Kenji Sagae},
  year   = {2023},
  eprint = {2306.11943},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2306.11943v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2306.11943.svg)](https://codeofpaper.com/paper/2306.11943)

Discussion