Pith. sign in

REVIEW 1 cited by

A Closer Look into Transformer-Based Code Intelligence Through Code Transformation: Challenges and Opportunities

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2207.04285 v2 pith:QBKQW3AU submitted 2022-07-09 cs.SE

classification cs.SE
keywords codetransformationtransformerperformanceintelligencetransformer-basedunderchallenges
verification ladder T0 review T1 audit T2 compute T3 formal
0 comments
read the original abstract

Transformer-based models have demonstrated state-of-the-art performance in many intelligent coding tasks such as code comment generation and code completion. Previous studies show that deep learning models are sensitive to the input variations, but few studies have systematically studied the robustness of Transformer under perturbed input code. In this work, we empirically study the effect of semantic-preserving code transformation on the performance of Transformer. Specifically, 24 and 27 code transformation strategies are implemented for two popular programming languages, Java and Python, respectively. For facilitating analysis, the strategies are grouped into five categories: block transformation, insertion/deletion transformation, grammatical statement transformation, grammatical token transformation, and identifier transformation. Experiments on three popular code intelligence tasks, including code completion, code summarization and code search, demonstrate insertion/deletion transformation and identifier transformation show the greatest impact on the performance of Transformer. Our results also suggest that Transformer based on abstract syntax trees (ASTs) shows more robust performance than the model based on only code sequence under most code transformations. Besides, the design of positional encoding can impact the robustness of Transformer under code transformation. Based on our findings, we distill some insights about the challenges and opportunities for Transformer-based code intelligence.

Discussion (0). Continue with ORCID to comment.

Forward citations

Cited by 1 Pith paper

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score. Full citation record

  1. Metamorphic Testing of Deep Code Models: A Systematic Literature Review

    cs.SE 2025-07 conditional novelty 5.0 of 10

    A systematic review of 45 papers shows metamorphic testing of code models relies mostly on identifier renaming and dead code insertion, targets encoder-only models like CodeBERT, and under-covers generative tasks, new...

Pith tools