Code quality assessment using transformers

09/17/2023
by   Mosleh Mahamud, et al.
0

Automatically evaluate the correctness of programming assignments is rather straightforward using unit and integration tests. However, programming tasks can be solved in multiple ways, many of which, although correct, are inelegant. For instance, excessive branching, poor naming or repetitiveness make the code hard to understand and maintain. These subjective qualities of code are hard to automatically assess using current techniques. In this work we investigate the use of CodeBERT to automatically assign quality score to Java code. We experiment with different models and training paradigms. We explore the accuracy of the models on a novel dataset for code quality assessment. Finally, we assess the quality of the predictions using saliency maps. We find that code quality to some extent is predictable and that transformer based models using task adapted pre-training can solve the task more efficiently than other techniques.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
04/20/2022

Multi-Scale Features and Parallel Transformers Based Image Quality Assessment

With the increase in multimedia content, the type of distortions associa...
research
09/19/2016

Color: A Crucial Factor for Aesthetic Quality Assessment in a Subjective Dataset of Paintings

Computational aesthetics is an emerging field of research which has attr...
research
08/13/2023

UGC Quality Assessment: Exploring the Impact of Saliency in Deep Feature-Based Quality Assessment

The volume of User Generated Content (UGC) has increased in recent years...
research
07/20/2022

Action Quality Assessment using Transformers

Action quality assessment (AQA) is an active research problem in video-b...
research
03/22/2023

A Perceptual Quality Assessment Exploration for AIGC Images

AI Generated Content (AIGC) has gained widespread attention with the inc...
research
08/19/2021

Blindly Assess Quality of In-the-Wild Videos via Quality-aware Pre-training and Motion Perception

Perceptual quality assessment of the videos acquired in the wilds is of ...
research
03/11/2015

Automatic Unsupervised Tensor Mining with Quality Assessment

A popular tool for unsupervised modelling and mining multi-aspect data i...

Please sign up or login with your details

Forgot password? Click here to reset