paper-with-me

Papers

Evaluation of LLMs on Syntax-Aware Code Fill-in-the-Middle Tasks

2024-03-07 · Linyuan Gong, Sida Wang, Mostafa Elhoushi, Alvin Cheung

We introduce Syntax-Aware Fill-In-the-Middle (SAFIM), a new benchmark for evaluating Large Language Models (LLMs) on the code Fill-in-the-Middle (FIM) task. This benchmark focuses on syntax-aware completions of program structures such as code blocks and conditional expressions, and includes 17,720 examples from multiple programming languages, sourced from recent code submissions after April 2022 to minimize data contamination. SAFIM provides a robust framework with various prompt designs and novel syntax-aware post-processing techniques, facilitating accurate and fair comparisons across LLMs. Our comprehensive evaluation of 15 LLMs shows that FIM pretraining not only enhances FIM proficiency but also improves Left-to-Right (L2R) inference using LLMs. Our findings challenge conventional beliefs and suggest that pretraining methods and data quality have more impact than model size. SAFIM thus serves as a foundational platform for future research in effective pretraining strategies for code LLMs. The evaluation toolkit and dataset are available at https://github.com/gonglinyuan/safim, and the leaderboard is available at https://safimbenchmark.com.

📄 PDF Abstract BibTeX arXiv:2403.04814

Code (1)

gonglinyuan/safim 공식 구현 pytorch

Tasks

Code Completion

Similar Papers 제목 키워드 기반

Structure-Aware Fill-in-the-Middle Pretraining for Code

2025-05-30 · Linyuan Gong, Alvin Cheung, Mostafa Elhoushi, Sida Wang

Fill-in-the-Middle (FIM) is a common pretraining method for code LLMs, where models complete code segments given surrounding context. However, existing LLMs treat code as plain text and mask random character spans. We pr…

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

2025-02-21 · Hang Zhang, Yanxin Shen, Lun Wang, Chuanqi Shi 외

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 sign…

Code CompletionCode Generation

SIMCOPILOT: Evaluating Large Language Models for Copilot-Style Code Generation

2025-05-21 · Mingchao Jiang, Abhinav Jain, Sophia Zorek, Chris Jermaine

We introduce SIMCOPILOT, a benchmark that simulates the role of large language models (LLMs) as interactive, "copilot"-style coding assistants. Targeting both completion (finishing incomplete methods or code blocks) and …

BenchmarkingCode Generation

JumpCoder: Go Beyond Autoregressive Coder via Online Modification

2024-01-15 · Mouxiang Chen, Hao Tian, Zhongxin Liu, Xiaoxue Ren 외

While existing code large language models (code LLMs) exhibit impressive capabilities in code generation, their autoregressive sequential generation inherently lacks reversibility. This limitation hinders them from timel…

Code Generation

DecoRTL: A Run-time Decoding Framework for RTL Code Generation with LLMs

2025-07-03 · Mohammad Akyash, Kimia Azar, Hadi Kamali arxiv

As one of their many applications, large language models (LLMs) have recently shown promise in automating register transfer level (RTL) code generation. However, conventional LLM decoding strategies, originally designed …

Code Generation