Your AI Writes the Fix in Seconds — Then Takes 50 Seconds to Paste It In. A Tiny 4B Model Ends the Wait

AI coding assistant applying a code fix instantly

Your AI coding assistant writes the perfect fix in seconds — then takes 50 seconds to paste it in. A new paper (AiXapply, arXiv:2611.07634, 5 Nov 2026, Siyuan Jiang et al.) names that step the Code Integration (“Apply”) task and shows a specialised 4B model, aiXapply, scoring 94.4% accuracy vs DeepSeek-V3.2’s 91.6%, cutting mean apply latency in a real IDE deployment from 50 seconds to 1.89 seconds.

What the researchers did

Concept visual: the Apply task, original file plus update snippet becomes a complete merged file

They formalised the Apply task: original file + update snippet → complete merged file, preserving unrelated content. They built a multi-language dataset from real commits with verification and filtering, then trained aiXapply (4B) with supervised fine-tuning + RL (GRPO).

  • 94.4% accuracy (language-aware comparison) vs DeepSeek-V3.2’s 91.6%.
  • Speculative decoding at ~2,700 tokens/s on a single A100 (decoding subset), ~75x lower latency than the API-served DeepSeek-V3.2 baseline on the full benchmark.
  • Deployed in the aiXcoder IDE plugin as a dedicated Apply service — mean latency 50s → 1.89s.
  • Replacing one of five upstream serving instances would save 20% of upstream machine cost before the additional shared A100 service cost.

Why it matters

  1. The last mile is the product — a 50-second apply makes the assistant feel slow however good its suggestions are.
  2. Small beats big on narrow tasks — use a right-sized model per step.
  3. Latency is a feature — 50 seconds breaks flow; 1.89 seconds keeps you in the problem.
  4. Cost and privacy follow the small model — a single A100, runnable on your own hardware.
  5. Accuracy went UP, not down — specialisation bought both speed and quality.

How YOU can use it

Workflow visual: measure, split, verify, copy the pattern, watch for small-model apply services

  1. Step 1 — Measure your own apply time. Time how long your assistant takes from suggestion to merged code.
  2. Step 2 — Split generate from apply in your prompts. Ask for minimal diffs.
  3. Step 3 — Verify every merge with git diff. The paper’s standard: preserve everything outside the requested edit.
  4. Step 4 — If you build tools, copy the pattern: narrow step, dataset from real usage, small specialist, dedicated service.
  5. Step 5 — Watch for small-model apply services and judge assistants by apply speed, not just suggestions.

Note: the paper announces no public download of aiXapply — do not assume one exists. The illustrative code sketch below is illustrative only, NOT the paper’s code.

# Illustrative sketch (not the paper's code):
# original.py + suggested snippet -> merged file
# Always check: git diff --stat

Key takeaways

  • 4B aiXapply: 94.4% beats DeepSeek-V3.2’s 91.6% on the Apply task.
  • ~75x lower latency, ~2,700 tokens/s on one A100.
  • aiXcoder deployment: 50s → 1.89s, 20% upstream cost saving.
  • Practical move: measure apply time, ask for minimal diffs, verify merges with git diff.

Read the original paper: https://arxiv.org/abs/2611.07634

Comments

Popular posts from this blog

3,000 Lines vs 512,000: The Tiny Agent Harness That Nearly Matches Claude Code

Silent AI Video Is Dead: This Open-Source Model Dreams Up Movies and Soundtracks Together

Your AI Agent Works in the Lab and Fails at Your Desk — Training It in 18 Setups Fixes That