paper-with-me

홈 › Papers

Exploring Software Naturalness through Neural Language Models

2020-06-22 · Luca Buratti, Saurabh Pujar, Mihaela Bornea, Scott McCarley, Yunhui Zheng, Gaetano Rossiello, Alessandro Morari, Jim Laredo, Veronika Thost, Yufan Zhuang, Giacomo Domeniconi

The Software Naturalness hypothesis argues that programming languages can be understood through the same techniques used in natural language processing. We explore this hypothesis through the use of a pre-trained transformer-based language model to perform code analysis tasks. Present approaches to code analysis depend heavily on features derived from the Abstract Syntax Tree (AST) while our transformer-based language models work on raw source code. This work is the first to investigate whether such language models can discover AST features automatically. To achieve this, we introduce a sequence labeling task that directly probes the language models understanding of AST. Our results show that transformer based language models achieve high accuracy in the AST tagging task. Furthermore, we evaluate our model on a software vulnerability identification task. Importantly, we show that our approach obtains vulnerability identification results comparable to graph based approaches that rely heavily on compilers for feature extraction.

📄 PDF Abstract BibTeX arXiv:2006.12641

Code (0)

등록된 구현이 없습니다.

Tasks

Language ModelingLanguage Modelling

Methods 이 논문이 사용한 방법론

Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Absolute Position Encodings Absolute Position Encodings are a type of position embeddings for [Transformer-based models] where positional encodings are…
Position-Wise Feed-Forward Layer 설명 없음
Residual Connection 설명 없음
Label Smoothing Label Smoothing is a regularization technique that introduces noise for the labels. This accounts for the fact that datasets may have mistakes in them, so maximizing the…
Multi-Head Attention 설명 없음
Adam 설명 없음
ReLU How Do I Communicate to Expedia? How Do I Communicate to Expedia? – Call ☎️ +1-(888) 829 (0881) or +1-805-330-4056 or +1-805-330-4056 for Live Support & Special Travel…

Similar Papers 제목 키워드 기반

Language Modelling for Source Code with Transformer-XL

2020-07-31 · Thomas Dowdell, Hongyu Zhang

It has been found that software, like natural language texts, exhibits "naturalness", which can be captured by statistical language models. In recent years, neural language models have been proposed to represent the natu…

Language Modelling

Natural Language Generation and Understanding of Big Code for AI-Assisted Programming: A Review

2023-07-04 · Man Fai Wong, Shangxin Guo, Ching Nam Hang, Siu Wai Ho 외

This paper provides a comprehensive review of the literature concerning the utilization of Natural Language Processing (NLP) techniques, with a particular focus on transformer-based large language models (LLMs) trained u…

Clone DetectionCode CompletionCode GenerationCode Summarization+3

On The Cross-Modal Transfer from Natural Language to Code through Adapter Modules

2022-04-19 · Divyam Goel, Ramansh Grover, Fatemeh H. Fard

Pre-trained neural Language Models (PTLM), such as CodeBERT, are recently used in software engineering as models pre-trained on large source code corpora. Their knowledge is transferred to downstream tasks (e.g. code clo…

Clone DetectionCloze TestTransfer Learning

Exploring the Naturalness of AI-Generated Images

2023-12-09 · Zijian Chen, Wei Sun, HaoNing Wu, ZiCheng Zhang 외

The proliferation of Artificial Intelligence-Generated Images (AGIs) has greatly expanded the Image Naturalness Assessment (INA) problem. Different from early definitions that mainly focus on tone-mapped images with limi…

Exploring Opinion-unaware Video Quality Assessment with Semantic Affinity Criterion

2023-02-26 · HaoNing Wu, Liang Liao, Jingwen Hou, Chaofeng Chen 외

Recent learning-based video quality assessment (VQA) algorithms are expensive to implement due to the cost of data collection of human quality opinions, and are less robust across various scenarios due to the biases of t…

Video Quality AssessmentVisual Question Answering (VQA)