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
Zhejiang University · Anytime.AI · State University of New York at Stony Brook
Read the paperPlace an idea next to itCheck your own paper ↗
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 changed | Where | Measured | Effect |
|---|---|---|---|
| add token-level retrieval on the decoder (Tram) | base model · Java test | BLEU: 46.84 -> 48.32 | Improved |
| add token-level retrieval on the decoder (Tram) | base model · Python test | BLEU: 34.20 -> 35.97 | Improved |
| fuse code token and AST node representations into retrieval keys (ablation) | Tram · Java test | BLEU: 47.85 -> 48.32 | Improved |
| fuse code token and AST node representations into retrieval keys (ablation) | Tram · Python test | BLEU: 35.37 -> 35.97 | Improved |
| add additional sentence-level retrieval to Tram | Tram · CCSD | BLEU: 21.48 -> 22.23 | Improved |
| integrate Tram with CodeT5 | CodeT5 · Java test | BLEU: 46.47 -> 47.85 | Improved |
| integrate Tram with UniXcoder | UniXcoder · Java test | BLEU: 45.32 -> 46.17 | Improved |
| use Tram's token-level retrieval instead of Rencos sentence-level retrieval | base model · CCSD | BLEU: 19.43 -> 21.48 | Improved |
| add noise to 20% of datastore pairs (ablation) | Tram · Java test | BLEU: 48.32 -> 47.82 | Hurt |
| add noise to 10% of datastore pairs (ablation) | Tram · Python test | BLEU: 35.97 -> 35.68 | Hurt |
| use token-level retrieval (Tram) vs Base | base model · human evaluation Java, Relevance | rating 1-5: 3.64 -> 3.89 | Improved |
| use token-level retrieval (Tram) vs Base | base model · count of correctly generated tokens with frequency 1 (Java) | count: 126 -> 307 | Improved |
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.
- CodeT5 — CodeT: Code Generation with Generated Tests (ICLR 2023) · better on 1 of 1 shared result
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?
- Multi-step retrieval needs extra LLM calls and slows inference. · 22 papers state it
- Tested on English, or English and one other language, only. · 15 papers state it
- Graphs, trees and memories built by LLMs or parsers pass on their errors. · 12 papers state it
Closest papers by meaning
- Retrieval-Augmented Generation for Code Summarization via Hybrid GNN (ICLR 2021 · similarity 0.90)
- A Transformer-based Approach for Source Code Summarization (ACL 2020 · similarity 0.89)
- Syntax-Aware Retrieval Augmented Code Generation (EMNLP 2023 · similarity 0.88)
- Retrieval-Based Neural Code Generation (EMNLP 2018 · similarity 0.88)
- Retrieval Augmented Code Generation and Summarization (EMNLP 2021 · similarity 0.88)
- PinNet: Pinpoint Instructive Information for Retrieval Augmented Code-to-Text Generation (ICML 2024 · similarity 0.87)
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.