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

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

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

- Step 1 — Measure your own apply time. Time how long your assistant takes from suggestion to merged code.
- Step 2 — Split generate from apply in your prompts. Ask for minimal diffs.
- Step 3 — Verify every merge with git diff. The paper’s standard: preserve everything outside the requested edit.
- Step 4 — If you build tools, copy the pattern: narrow step, dataset from real usage, small specialist, dedicated service.
- 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
Post a Comment