paper-with-me

Papers

Code Representation Learning with Prüfer Sequences

2021-11-14 · Tenzin Jinpa, Yong Gao

An effective and efficient encoding of the source code of a computer program is critical to the success of sequence-to-sequence deep neural network models for tasks in computer program comprehension, such as automated code summarization and documentation. A significant challenge is to find a sequential representation that captures the structural/syntactic information in a computer program and facilitates the training of the learning models. In this paper, we propose to use the Pr\"ufer sequence of the Abstract Syntax Tree (AST) of a computer program to design a sequential representation scheme that preserves the structural information in an AST. Our representation makes it possible to develop deep-learning models in which signals carried by lexical tokens in the training examples can be exploited automatically and selectively based on their syntactic role and importance. Unlike other recently-proposed approaches, our representation is concise and lossless in terms of the structural information of the AST. Empirical studies on real-world benchmark datasets, using a sequence-to-sequence learning model we designed for code summarization, show that our Pr\"ufer-sequence-based representation is indeed highly effective and efficient, outperforming significantly all the recently-proposed deep-learning models we used as the baseline models.

📄 PDF Abstract BibTeX arXiv:2111.07263

Code (0)

등록된 구현이 없습니다.

Tasks

Code SummarizationRepresentation Learning

Similar Papers 제목 키워드 기반

CAT: Beyond Efficient Transformer for Content-Aware Anomaly Detection in Event Sequences

2022-08-14 · ACM SIGKDD Conference on Knowledge Discovery and Data Mining 2022 8 · Shengming Zhang, Yanchi Liu, Xuchao Zhang, Wei Cheng 외

It is critical and important to detect anomalies in event sequences,which becomes widely available in many application domains.In-deed,various efforts have been made to capture abnormal patterns from event sequences thro…

Anomaly DetectionDecoder

SkexGen: Autoregressive Generation of CAD Construction Sequences with Disentangled Codebooks

2022-07-11 · Xiang Xu, Karl D. D. Willis, Joseph G. Lambourne, Chin-Yi Cheng 외

We present SkexGen, a novel autoregressive generative model for computer-aided design (CAD) construction sequences containing sketch-and-extrude modeling operations. Our model utilizes distinct Transformer architectures …

Efficient Exploration

Learning Representations of Spatial Displacement through Sensorimotor Prediction

2018-05-16 · Michael Garcia Ortiz, Alban Laflaquière

Robots act in their environment through sequences of continuous motor commands. Because of the dimensionality of the motor space, as well as the infinite possible combinations of successive motor commands, agents need co…

Prediction

Dynamic Variational Autoencoders for Visual Process Modeling

2018-03-20 · Alexander Sagel, Hao Shen

This work studies the problem of modeling visual processes by leveraging deep generative architectures for learning linear, Gaussian representations from observed sequences. We propose a joint learning framework, combini…

Unsupervised Learning of Sentence Representations Using Sequence Consistency

2018-08-10 · Siddhartha Brahma

Computing universal distributed representations of sentences is a fundamental task in natural language processing. We propose ConsSent, a simple yet surprisingly powerful unsupervised method to learn such representations…

FormSentenceTransfer Learning