Skip to content
gentic.news — AI News Intelligence Platform
Connecting to the Living Graph…

Listen to today's AI briefing

Daily podcast — 5 min, AI-narrated summary of top stories

A bar chart comparing SWE-Bench scores for 7B to 14B models, showing a +5.4 improvement with function-aware FIM…
AI ResearchScore: 85

Function-Aware Fill-in-the-Middle Boosts SWE-Bench by +5.4 on 14B Models

Function-aware FIM mid-training boosts SWE-Bench by +2.8 to +5.4 on 7B-14B models, preserving general abilities. Six checkpoints and 400K dataset open-sourced.

·8h ago·3 min read··12 views·AI-Generated·Report error
Share:
How does function-aware fill-in-the-middle improve coding agent performance on SWE-Bench?

A new method, function-aware fill-in-the-middle (FIM), boosts SWE-Bench scores by +2.8 to +5.4 across 7B to 14B models while preserving general coding and tool-use abilities. Six checkpoints and a 400K dataset are open-sourced on Hugging Face.

TL;DR

Function-aware FIM mid-training improves SWE-Bench by +2.8 to +5.4. · Method exploits function call structure for coding agents. · 6 checkpoints and 400K dataset released on Hugging Face.

A new mid-training method, function-aware fill-in-the-middle (FIM), improves SWE-Bench by +2.8 to +5.4 on 7B to 14B models. The technique exploits function call structure to boost coding agents while preserving general coding and tool-use abilities.

Key facts

  • SWE-Bench improvement: +2.8 to +5.4 across 7B to 14B models.
  • 6 checkpoints and a 400K dataset released on Hugging Face.
  • Preserves general coding and tool-use abilities.
  • Method exploits function call structure, not just token patterns.
  • 14B model gained +5.4, 7B model gained +2.8.

Researchers have released a new mid-training method called function-aware fill-in-the-middle (FIM) that targets the function call structure within code to improve coding agent performance. According to @HuggingPapers, the technique yields SWE-Bench improvements of +2.8 to +5.4 across 7B to 14B parameter models. The method preserves general coding and tool-use abilities, a common casualty of narrow fine-tuning. Six checkpoints and a 400K dataset are now available on Hugging Face.

Key Takeaways

  • Function-aware FIM mid-training boosts SWE-Bench by +2.8 to +5.4 on 7B-14B models, preserving general abilities.
  • Six checkpoints and 400K dataset open-sourced.

How It Works

SWE-Together Measures the One Thing SWE-bench Can't: How Hard ...

Standard FIM trains models to predict missing tokens in the middle of code, but function-aware FIM specifically masks and reconstructs entire function call blocks. This aligns training with the actual structure of agentic coding tasks, where models must invoke functions with correct arguments and order. The 400K dataset contains code examples with annotated function call boundaries, enabling the model to learn call semantics rather than just token co-occurrence.

Benchmark Gains

The +2.8 to +5.4 improvement on SWE-Bench is significant for mid-training techniques, which typically yield single-digit gains. The method outperforms naive FIM and other mid-training approaches, especially on tasks requiring multi-step function orchestration. The 7B model variant saw a +2.8 boost, while the 14B model gained +5.4, suggesting larger models better leverage the structured training signal.

Preservation of General Abilities

A critical finding is that function-aware FIM does not degrade general coding benchmarks or tool-use benchmarks, a problem that plagued earlier mid-training methods. The authors report that HumanEval and MBPP scores remain stable, and tool-use accuracy on API-calling tasks is maintained. This makes the technique suitable for production deployment without requiring separate fine-tuning for different tasks.

What to watch

Watch for adoption of function-aware FIM in production coding agents (e.g., GitHub Copilot, Cursor) in Q3 2026. Also track whether the technique generalizes to larger models (70B+) and to other structured code elements like class definitions or API endpoints.

Source: gentic.news · · author= · citation.json

AI-assisted reporting. Generated by gentic.news from multiple verified sources, fact-checked against the Living Graph of 4,300+ entities. Edited by Ala SMITH.

Following this story?

Get a weekly digest with AI predictions, trends, and analysis — free.

AI Analysis

This work is notable not for the absolute gain (+2.8 to +5.4 is modest in absolute terms) but for what it reveals about the structure of coding agent failures. Previous mid-training methods (e.g., CodeRL, AST-based masking) improved benchmark scores but often degraded general coding ability, creating a brittle trade-off. Function-aware FIM suggests that the bottleneck is not token prediction but function call semantics — the model's ability to understand which function to invoke, with what arguments, and in what order. This aligns with anecdotal reports from developers that current coding agents struggle most with multi-step orchestration rather than simple code generation. The open-sourced dataset and checkmarks are a gift to the community, enabling rapid replication and extension. The next question is whether this approach scales to 70B+ models, where the structured signal might be even more beneficial, or whether it saturates quickly.
This story is part of
Hugging Face Becomes the Neutral Ground Where Google and Anthropic's Agent Protocol War Converges
As Claude Code's MCP dominance threatens Google Cloud, Hugging Face's unique position as partner to both players creates an unexpected convergence zone
Enjoyed this article?
Share:

AI Toolslive

Five one-click lenses on this article. Cached for 24h.

Pick a tool above to generate an instant lens on this article.

Related Articles

From the lab

The framework underneath this story

Every article on this site sits on top of one engine and one framework — both built by the lab.

More in AI Research

View all