scimeatlas

Research map / Architectures and efficiency / Attention and transformers

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

Daya Guo, Canwen Xu, Nan Duan, Jian Yin, Julian McAuley

ICML 2023Architectures and efficiency › Attention and transformersapproach: Efficient language transformersopen problems in this approach7 citations (OpenAlex)

Sun Yat-sen University · Microsoft Research Asia · University of California, San Diego

Read the paperPlace an idea next to itCheck your own paper ↗

8measured effects
7improved
1hurt

AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Measured effects reported in the paper

What was changedWhereMeasuredEffect
add memory tokens (global attention to import/class/function statements) (ablation)LongCoder · LCC Python/Java/C#EM: Python 17.61 -> 16.80 when removed; Java 25.96 -> 24.87; C# 31.22 -> 30.16 when removedImproved
add bridge tokens (ablation)LongCoder · LCC Python/Java/C#Edit Sim: Python 54.82 -> 51.92 when removed; Java 60.81 -> 57.48; C# 64.18 -> 59.09Improved
use out-of-window context (full long context) instead of last 512 tokens (ablation)LongCoder · LCC Python/Java/C#EM: Python 17.61 -> 16.66 when restricted to 512-token windowImproved
selecting memory tokens every 64 tokens instead of statement-based global tokens (ablation)LongCoder · LCC PythonEM: 17.61 -> 17.16Hurt
sparse window+bridge+memory attention initialized from UniXcoder vs UniXcoder full attentionLongCoder · LCC Python/Java/C#EM: Python 16.55 -> 17.88; Java 23.93 -> 26.42; C# 27.97 -> 31.34Improved
sparse attention (LongCoder) vs UniXcoder on CodeXGLUELongCoder · PY150 and JavaCorpusEM: PY150 43.12 -> 43.77; JavaCorpus 32.90 -> 33.13Improved
sparse attention (LongCoder) vs UniXcoder on RepoBench XF-RLongCoder · RepoBench XF-R Python and JavaEM: Python 18.0 -> 21.4; Java 16.5 -> 19.7Improved
pre-training on CodeSearchNet with next-token prediction (ablation)LongCoder · LCC Python/Java/C#EM: Python 17.61 -> 17.88; Java 25.96 -> 26.42; C# 31.22 -> 31.34Improved

Later papers that compared with this method

1 later accepted paper reports LongCoder as a baseline in their results tables; 1 of them report a better number on most of the results they share with it.

Earlier methods this paper compares with

Named baselines from earlier accepted papers in this paper's results tables: better than 1 of 1 on most shared results.

Matched by method name in results tables read by AI. Authors' own tables tend to favour the newer method, and a comparison can be missed when a method is renamed.

Open problems in efficient language transformers

Which efficient transformer designs keep their quality, speed and memory gains at larger scale and in more languages?

All 5 open problems and what was already tried →

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy