mlsanityData to 14 Oct 2026

Comparative Analysis of Large Language Models for Context-Aware Code Completion using SAFIM Framework

arXiv 2502.15243 ↗First posted 21 Feb 2025cs.SE cs.AIcited by 3

Not on the map. Why?

Abstract (arXiv)

The advent of Large Language Models (LLMs) has revolutionized code completion, transforming it into a more intelligent and context-aware feature in modern integrated development environments. These advancements have significantly enhanced developers' ability to write efficient and error-free code. This study evaluates the performance of several chat-based LLMs, including Gemini 1.5 Flash, Gemini 1.5 Pro, GPT-4o, GPT-4o-mini, and GPT-4 Turbo, using the Syntax-Aware Fill-in-the-Middle (SAFIM) dataset. This benchmark is specifically designed to assess models' capabilities in syntax-sensitive code generation. Performance metrics, such as cosine similarity with ground-truth completions and latency, were employed to measure both accuracy and efficiency. The findings reveal substantial differences in the models' code completion abilities, offering valuable insights into their respective strengths and weaknesses. This work provides a comparative analysis that underscores the trade-offs between accuracy and speed, establishing a benchmark for future advancements in LLM-based code completion.

Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 6 of its 16 references that are in the map. First posted on arXiv 21 Feb 2025.

Builds on

6 of 16 references.

References · 6

  1. 2024Emu3: Next-Token Prediction is All You Needcited by 781
  2. 2023Using an LLM to Help With Code Understandingcited by 228
  3. 2022Ask Me Anything: A simple strategy for prompting language modelscited by 155
  4. 2022GitHub Copilot AI pair programmer: Asset or Liability?cited by 152
  5. 2024Evaluation of LLMs on Syntax-Aware Code Fill-in-the-Middle Taskscited by 25
  6. 2025CT-PatchTST: Channel-Time Patch Time-Series Transformer for Long-Term Renewable Energy Forecastingcited by 16

Built on by

Cited by year

Citing papers per year: 2025: 3.

3 papers.