paper-with-me

Papers

Relevance Transformer: Generating Concise Code Snippets with Relevance Feedback

2020-07-06 · Carlos Gemmell, Federico Rossetto, Jeffrey Dalton

Tools capable of automatic code generation have the potential to augment programmer's capabilities. While straightforward code retrieval is incorporated into many IDEs, an emerging area is explicit code generation. Code generation is currently approached as a Machine Translation task, with Recurrent Neural Network (RNN) based encoder-decoder architectures trained on code-description pairs. In this work we introduce and study modern Transformer architectures for this task. We further propose a new model called the Relevance Transformer that incorporates external knowledge using pseudo-relevance feedback. The Relevance Transformer biases the decoding process to be similar to existing retrieved code while enforcing diversity. We perform experiments on multiple standard benchmark datasets for code generation including Django, Hearthstone, and CoNaLa. The results show improvements over state-of-the-art methods based on BLEU evaluation. The Relevance Transformer model shows the potential of Transformer-based architectures for code generation and introduces a method of incorporating pseudo-relevance feedback during inference.

📄 PDF Abstract BibTeX arXiv:2007.02609

Code (0)

등록된 구현이 없습니다.

Tasks

Code GenerationDecoderDiversityMachine TranslationRetrievalTranslation

Methods 이 논문이 사용한 방법론

Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Absolute Position Encodings Absolute Position Encodings are a type of position embeddings for [Transformer-based models] where positional encodings are…
Position-Wise Feed-Forward Layer 설명 없음
Multi-Head Attention 설명 없음
Residual Connection 설명 없음
Attention 설명 없음
ReLU How Do I Communicate to Expedia? How Do I Communicate to Expedia? – Call ☎️ +1-(888) 829 (0881) or +1-805-330-4056 or +1-805-330-4056 for Live Support & Special Travel…
Adam 설명 없음

Similar Papers 제목 키워드 기반

Automating API Documentation with LLMs: A BERTopic Approach

2025-09-06 · AmirHossein Naghshzan arxiv

Developers rely on API documentation, but official sources are often lengthy, complex, or incomplete. Many turn to community-driven forums like Stack Overflow for practical insights. We propose automating the summarizati…

Improving Scientific Document Retrieval with Academic Concept Index

2026-01-02 · Jeyun Lee, Junhyoung Lee, Wonbin Kweon, Bowen Jin 외 arxiv

Adapting general-domain retrievers to scientific domains is challenging due to the scarcity of large-scale domain-specific relevance annotations and the substantial mismatch in vocabulary and information needs. Recent ap…

Natural Language to Code Using Transformers

2022-02-01 · Uday Kusupati, Venkata Ravi Teja Ailavarapu

We tackle the problem of generating code snippets from natural language descriptions using the CoNaLa dataset. We use the self-attention based transformer architecture and show that it performs better than recurrent atte…

DecoderTranslation

Generating Concise Patches for Newly Released Programming Assignments

2023-01-23 · IEEE Transactions on Software Engineering 2023 1 · Leping Li, Hui Liu, Kejun Li, Yanjie Jiang 외

In programming courses, providing students with concise and constructive feedback on faulty submissions (programs) is highly desirable. However, providing feedback manually is often time-consuming and tedious. To releas…

Uncovering Intention through LLM-Driven Code Snippet Description Generation

2025-06-18 · Yusuf Sulistyo Nugroho, Farah Danisha Salam, Brittany Reid, Raula Gaikovina Kula 외

Documenting code snippets is essential to pinpoint key areas where both developers and users should pay attention. Examples include usage examples and other Application Programming Interfaces (APIs), which are especially…

Descriptive