paper-with-me

Papers

LongCoder: A Long-Range Pre-trained Language Model for Code Completion

2023-06-26 · Daya Guo, Canwen Xu, Nan Duan, Jian Yin, Julian McAuley

In this paper, we introduce a new task for code completion that focuses on handling long code input and propose a sparse Transformer model, called LongCoder, to address this task. LongCoder employs a sliding window mechanism for self-attention and introduces two types of globally accessible tokens - bridge tokens and memory tokens - to improve performance and efficiency. Bridge tokens are inserted throughout the input sequence to aggregate local information and facilitate global interaction, while memory tokens are included to highlight important statements that may be invoked later and need to be memorized, such as package imports and definitions of classes, functions, or structures. We conduct experiments on a newly constructed dataset that contains longer code context and the publicly available CodeXGLUE benchmark. Experimental results demonstrate that LongCoder achieves superior performance on code completion tasks compared to previous models while maintaining comparable efficiency in terms of computational resources during inference. All the codes and data are available at https://github.com/microsoft/CodeBERT.

📄 PDF Abstract BibTeX arXiv:2306.14893

Code (1)

microsoft/CodeBERT 공식 구현 pytorch

Tasks

Code CompletionLanguage ModelingLanguage Modelling

Methods 이 논문이 사용한 방법론

Multi-Head Attention 설명 없음
Attention 설명 없음
Cosine Annealing Cosine Annealing is a type of learning rate schedule that has the effect of starting with a large learning rate that is relatively rapidly decreased to a minimum value before…
Absolute Position Encodings Absolute Position Encodings are a type of position embeddings for [Transformer-based models] where positional encodings are…
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Layer Normalization Unlike batch normalization, Layer Normalization directly estimates the normalization statistics from the summed inputs…
Position-Wise Feed-Forward Layer 설명 없음
Linear Warmup With Cosine Annealing Linear Warmup With Cosine Annealing is a learning rate schedule where we increase the learning rate linearly for $n$ updates and then anneal according to a cosine schedule…

Similar Papers 제목 키워드 기반

Efficient Long-Text Understanding with Short-Text Models

2022-08-01 · Maor Ivgi, Uri Shaham, Jonathan Berant

Transformer-based pretrained language models (LMs) are ubiquitous across natural language understanding, but cannot be applied to long sequences such as stories, scientific articles and long documents, due to their quadr…

ArticlesDecoderLong-range modelingNatural Language Understanding

EpMAN: Episodic Memory AttentioN for Generalizing to Longer Contexts

2025-02-20 · Subhajit Chaudhury, Payel Das, Sarathkrishna Swaminathan, Georgios Kollias 외

Recent advances in Large Language Models (LLMs) have yielded impressive successes on many language tasks. However, efficient processing of long contexts using LLMs remains a significant challenge. We introduce \textbf{Ep…

16kDecoderQuestion AnsweringRetrieval-augmented Generation

How Long Is Enough? Exploring the Optimal Intervals of Long-Range Clinical Note Language Modeling

2022-10-25 · Samuel Cahyawijaya, Bryan Wilie, Holy Lovenia, Huan Zhong 외

Large pre-trained language models (LMs) have been widely adopted in biomedical and clinical domains, introducing many powerful LMs such as bio-lm and BioELECTRA. However, the applicability of these methods to real clinic…

Language ModelingLanguage Modelling

Retrieval-Pretrained Transformer: Long-range Language Modeling with Self-retrieval

2023-06-23 · Ohad Rubin, Jonathan Berant

Retrieval-augmented language models (LMs) have received much attention recently. However, typically the retriever is not trained jointly as a native component of the LM, but added post-hoc to an already-pretrained LM, wh…

Language ModelingLanguage ModellingRetrieval

Speech Token Prediction via Compressed-to-fine Language Modeling for Speech Generation

2025-05-30 · Wenrui Liu, Qian Chen, Wen Wang, Yafeng Chen 외

Neural audio codecs, used as speech tokenizers, have demonstrated remarkable potential in the field of speech generation. However, to ensure high-fidelity audio reconstruction, neural audio codecs typically encode audio …

Language ModelingLanguage Modellingtext-to-speechText to Speech