scimeatlas

Research map / Large language models / Retrieval and knowledge

Tram: A Token-level Retrieval-augmented Mechanism for Source Code Summarization

Tong Ye, Lingfei Wu, Tengfei Ma, Xuhong Zhang, Yangkai Du, Peiyu Liu, Shouling Ji, Wenhai Wang

NAACL 2024Large language models › Retrieval and knowledgeapproach: Retrieval-augmented reasoningopen problems in this approach14 citations (OpenAlex)

Zhejiang University · Anytime.AI · State University of New York at Stony Brook

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

12measured effects
10improved
2hurt

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 token-level retrieval on the decoder (Tram)base model · Java testBLEU: 46.84 -> 48.32Improved
add token-level retrieval on the decoder (Tram)base model · Python testBLEU: 34.20 -> 35.97Improved
fuse code token and AST node representations into retrieval keys (ablation)Tram · Java testBLEU: 47.85 -> 48.32Improved
fuse code token and AST node representations into retrieval keys (ablation)Tram · Python testBLEU: 35.37 -> 35.97Improved
add additional sentence-level retrieval to TramTram · CCSDBLEU: 21.48 -> 22.23Improved
integrate Tram with CodeT5CodeT5 · Java testBLEU: 46.47 -> 47.85Improved
integrate Tram with UniXcoderUniXcoder · Java testBLEU: 45.32 -> 46.17Improved
use Tram's token-level retrieval instead of Rencos sentence-level retrievalbase model · CCSDBLEU: 19.43 -> 21.48Improved
add noise to 20% of datastore pairs (ablation)Tram · Java testBLEU: 48.32 -> 47.82Hurt
add noise to 10% of datastore pairs (ablation)Tram · Python testBLEU: 35.97 -> 35.68Hurt
use token-level retrieval (Tram) vs Basebase model · human evaluation Java, Relevancerating 1-5: 3.64 -> 3.89Improved
use token-level retrieval (Tram) vs Basebase model · count of correctly generated tokens with frequency 1 (Java)count: 126 -> 307Improved

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 retrieval-augmented reasoning

How can retrieval-augmented reasoning cut its extra LLM calls, storage and dependence on retrieval and LLM-built structures?

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