paper-with-me

Papers

Benchmarking Language Models for Code Syntax Understanding

2022-10-26 · Da Shen, Xinyun Chen, Chenguang Wang, Koushik Sen, Dawn Song

Pre-trained language models have demonstrated impressive performance in both natural language processing and program understanding, which represent the input as a token sequence without explicitly modeling its structure. Some prior works show that pre-trained language models can capture the syntactic rules of natural languages without finetuning on syntax understanding tasks. However, there is limited understanding of how well pre-trained models understand the code structure so far. In this work, we perform the first thorough benchmarking of the state-of-the-art pre-trained models for identifying the syntactic structures of programs. Specifically, we introduce CodeSyntax, a large-scale dataset of programs annotated with the syntactic relationships in their corresponding abstract syntax trees. Our key observation is that existing language models pretrained on code still lack the understanding of code syntax. In fact, these pre-trained programming language models fail to match the performance of simple baselines based on positional offsets and keywords. We also present a natural language benchmark to highlight the differences between natural languages and programming languages in terms of syntactic structure understanding. Our findings point out key limitations of existing pre-training methods for programming languages, and suggest the importance of modeling code syntactic structures.

📄 PDF Abstract BibTeX arXiv:2210.14473

Code (1)

dashends/codesyntax 공식 구현 pytorch

Tasks

Benchmarking

Methods 이 논문이 사용한 방법론

fail 설명 없음

Similar Papers 제목 키워드 기반

Unveiling Code Pre-Trained Models: Investigating Syntax and Semantics Capacities

2022-12-20 · Wei Ma, Shangqing Liu, Mengjie Zhao, Xiaofei Xie 외

Past research has examined how well these models grasp code syntax, yet their understanding of code semantics still needs to be explored. We extensively analyze seven code models to investigate how code models represent …

Code CompletionCode SearchLanguage ModellingProgram Synthesis

LMs: Understanding Code Syntax and Semantics for Code Analysis

2023-05-20 · Wei Ma, Shangqing Liu, ZhiHao Lin, Wenhan Wang 외

Large language models~(LLMs) demonstrate significant potential to revolutionize software engineering (SE) by exhibiting outstanding performance in SE tasks such as code and document generation. However, the high reliabil…

Syntax Encoding with Application in Authorship Attribution

2018-10-01 · EMNLP 2018 10 · Richong Zhang, Zhiyuan Hu, Hongyu Guo, Yongyi Mao

We propose a novel strategy to encode the syntax parse tree of sentence into a learnable distributed representation. The proposed syntax encoding scheme is provably information-lossless. In specific, an embedding vector …

Authorship AttributionBenchmarkingFeature EngineeringSentence+1

Continual Pre-training of Language Models for Math Problem Understanding with Syntax-Aware Memory Network

2022-05-01 · ACL 2022 5 · Zheng Gong, Kun Zhou, Xin Zhao, Jing Sha 외

In this paper, we study how to continually pre-train language models for improving the understanding of math problems. Specifically, we focus on solving a fundamental challenge in modeling math problems, how to fuse the …

Math

Wave to Syntax: Probing spoken language models for syntax

2023-05-30 · Gaofei Shen, Afra Alishahi, Arianna Bisazza, Grzegorz Chrupała

Understanding which information is encoded in deep models of spoken and written language has been the focus of much research in recent years, as it is crucial for debugging and improving these architectures. Most previou…