mlsanityData to 13 Oct 2026

TreeRanker: Fast and Model-agnostic Ranking System for Code Suggestions in IDEs

arXiv 2508.02455 ↗First posted 4 Aug 2025cs.SE cs.AI cs.IRcited by 0

Not on the map. Why?

Abstract (arXiv)

Token-level code completion is one of the most critical features in modern Integrated Development Environments (IDEs). It assists developers by suggesting relevant identifiers and APIs during coding. While completions are typically derived from static analysis, their usefulness depends heavily on how they are ranked, as correct predictions buried deep in the list are rarely seen by users. Most current systems rely on hand-crafted heuristics or lightweight machine learning models trained on user logs, which can be further improved to capture context information and generalize across projects and coding styles. In this work, we propose a new scoring approach to ranking static completions using language models in a lightweight and model-agnostic way. Our method organizes all valid completions into a prefix tree and performs a single greedy decoding pass to collect token-level scores across the tree. This enables a precise token-aware ranking without needing beam search, prompt engineering, or model adaptations. The approach is fast, architecture-agnostic, and compatible with already deployed models for code completion. These findings highlight a practical and effective pathway for integrating language models into already existing tools within IDEs, and ultimately providing smarter and more responsive developer assistance.

Key facts. No citing papers in the map yet (data through 13 Oct 2026). Builds on 26 of its 43 references that are in the map. First posted on arXiv 4 Aug 2025.

Builds on

26 of 43 references.

References · 26

  1. 2017Attention Is All You Needcited by 60,106
  2. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,072
  3. 2019HuggingFace's Transformers: State-of-the-art Natural Language Processingcited by 2,215
  4. 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,173
  5. 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 884
  6. 2024A Survey on RAG Meeting LLMs: Towards Retrieval-Augmented Large Language Modelscited by 450
  7. 2025SmolLM2: When Smol Goes Big -- Data-Centric Training of a Small Language Modelcited by 321
  8. 2023Large Language Models are Effective Text Rankers with Pairwise Ranking Promptingcited by 305
  9. 2017Beam Search Strategies for Neural Machine Translationcited by 232
  10. 2023Grammar-Constrained Decoding for Structured NLP Tasks without Finetuningcited by 188
  11. 2022Repository-Level Prompt Generation for Large Language Models of Codecited by 106
  12. 2023Automatic Semantic Augmentation of Language Model Prompts (for Code Summarization)cited by 72
14 more
  1. 2020Code Prediction by Feeding Trees to Transformerscited by 70
  2. 2019Pythia: AI-assisted Code Completion Systemcited by 55
  3. 2024FIRST: Faster Improved Listwise Reranking with Single Token Decodingcited by 54
  4. 2022CodeFill: Multi-token Code Completion by Jointly Learning from Structure and Naming Sequencescited by 50
  5. 2024Long Code Arena: a Set of Benchmarks for Long-Context Code Modelscited by 48
  6. 2024Language Models for Code Completion: A Practical Evaluationcited by 39
  7. 2024Greed is All You Need: An Evaluation of Tokenizer Inference Methodscited by 34
  8. 2023Better Context Makes Better Code Language Models: A Case Study on Function Call Argument Completioncited by 14
  9. 2018When to Finish? Optimal Beam Search for Neural Text Generation (modulo beam size)cited by 10
  10. 2022All You Need Is Logs: Improving Code Completion by Learning from Anonymous IDE Usage Logscited by 9
  11. 2023Practitioners' Expectations on Code Completioncited by 8
  12. 2021Toward Less Hidden Cost of Code Completion with Acceptance and Ranking Modelscited by 5
  13. 2024Full Line Code Completion: Bringing AI to Desktopcited by 4
  14. 2024APIGen: Generative API Method Recommendationcited by 3

Built on by

Not cited yet.