paper-with-me

홈 › Papers

code2seq: Generating Sequences from Structured Representations of Code

2018-08-04 · ICLR 2019 5 · Uri Alon, Shaked Brody, Omer Levy, Eran Yahav

The ability to generate natural language sequences from source code snippets has a variety of applications such as code summarization, documentation, and retrieval. Sequence-to-sequence (seq2seq) models, adopted from neural machine translation (NMT), have achieved state-of-the-art performance on these tasks by treating source code as a sequence of tokens. We present ${\rm {\scriptsize CODE2SEQ}}$: an alternative approach that leverages the syntactic structure of programming languages to better encode source code. Our model represents a code snippet as the set of compositional paths in its abstract syntax tree (AST) and uses attention to select the relevant paths while decoding. We demonstrate the effectiveness of our approach for two tasks, two programming languages, and four datasets of up to $16$M examples. Our model significantly outperforms previous models that were specifically designed for programming languages, as well as state-of-the-art NMT models. An interactive online demo of our model is available at http://code2seq.org. Our code, data and trained models are available at http://github.com/tech-srl/code2seq.

📄 PDF Abstract BibTeX arXiv:1808.01400

Code (6)

tech-srl/code2seq 공식 구현 tf
Attn-to-FC/Attn-to-FC tf
hukuda222/code2seq pytorch
m3yrin/code2seq pytorch
superli3/CYRMPR tf
superli3/codenavi tf

Tasks

Code SummarizationNMTRetrievalSource Code SummarizationTranslation

Similar Papers 제목 키워드 기반

Prompting for Numerical Sequences: A Case Study on Market Comment Generation

2024-04-03 · Masayuki Kawarada, Tatsuya Ishigaki, Hiroya Takamura

Large language models (LLMs) have been applied to a wide range of data-to-text generation tasks, including tables, graphs, and time-series numerical data-to-text settings. While research on generating prompts for structu…

Comment GenerationData-to-Text GenerationText GenerationTime Series

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

Aligning Actions and Walking to LLM-Generated Textual Descriptions

2024-04-18 · Radu Chivereanu, Adrian Cosma, Andy Catruna, Razvan Rughinis 외

Large Language Models (LLMs) have demonstrated remarkable capabilities in various domains, including data augmentation and synthetic data generation. This work explores the use of LLMs to generate rich textual descriptio…

Action RecognitionData AugmentationSynthetic Data Generation

MAGMA: Music Aligned Generative Motion Autodecoder

2023-09-03 · Sohan Anisetty, Amit Raj, James Hays

Mapping music to dance is a challenging problem that requires spatial and temporal coherence along with a continual synchronization with the music's progression. Taking inspiration from large language models, we introduc…

Audio CompressionDecoderMotion Generation

DiffusionPhase: Motion Diffusion in Frequency Domain

2023-12-07 · Weilin Wan, Yiming Huang, Shutong Wu, Taku Komura 외

In this study, we introduce a learning-based method for generating high-quality human motion sequences from text descriptions (e.g., ``A person walks forward"). Existing techniques struggle with motion diversity and smoo…

DiversityMotion Generation