Code2Snapshot: Using Code Snapshots for Learning Representations of Source Code
There are several approaches for encoding source code in the input vectors of neural models. These approaches attempt to include various syntactic and semantic features of input programs in their encoding. In this paper, we investigate Code2Snapshot, a novel representation of the source code that is based on the snapshots of input programs. We evaluate several variations of this representation and compare its performance with state-of-the-art representations that utilize the rich syntactic and semantic features of input programs. Our preliminary study on the utility of Code2Snapshot in the code summarization and code classification tasks suggests that simple snapshots of input programs have comparable performance to state-of-the-art representations. Interestingly, obscuring input programs have insignificant impacts on the Code2Snapshot performance, suggesting that, for some tasks, neural models may provide high performance by relying merely on the structure of input programs.
Code (0)
등록된 구현이 없습니다.
Tasks
Code ClassificationMethod name predictionSimilar Papers 제목 키워드 기반
ISAR imaging of space objects using encoded apertures
A major threat to satellites is space debris with their low mass and high rotational speed. Accordingly, the short observation time of these objects is a major limitation in space research for appropriate detection and d…
Compressive SensingSingle Snapshot Distillation for Phase Coded Mask Design in Phase Retrieval
Phase retrieval (PR) reconstructs phase information from magnitude measurements, known as coded diffraction patterns (CDPs), whose quality depends on the number of snapshots captured using coded phase masks. High-quality…
global-optimizationKnowledge DistillationRetrievalIdentifiability Limits of Physics-Informed Inference for Spatial Stochastic Dynamics from Static Snapshots
Despite increasing scale and resolution, many biological measurements remain destructive, revealing only spatial information rather than the dynamics it encodes. By combining flexible representations with mechanistic con…
Nonasymptotic performance analysis of ESPRIT and spatial-smoothing ESPRIT
This paper is concerned with the problem of frequency estimation from multiple-snapshot data. It is well-known that ESPRIT (and spatial-smoothing ESPRIT in presence of coherent sources or given limited snapshots) can loc…
Historically Relevant Event Structuring for Temporal Knowledge Graph Reasoning
Temporal Knowledge Graph (TKG) reasoning focuses on predicting events through historical information within snapshots distributed on a timeline. Existing studies mainly concentrate on two perspectives of leveraging the h…