The journey to Rank 20 in the ICML 2026 Efficient Qwen Competition and the key optimizations that made it possible.
Team / Authors: Prashant Takale , Vibhav Agarwal
Team ID: AFM-7mpasa9x
LeaderBoard: Link
Competition Link: Link
The ICML 2026 Efficient Qwen Competition posed a deceptively simple challenge : minimize inference latency for Qwen3.5–4B running on a single NVIDIA A10G GPU while preserving model quality.
The competition encouraged participants to explore every layer of the inference stack, from quantization and pruning to speculative decoding and kernel level optimizations. Over 550 submissions came in from teams around the world, and our team finished at Rank 20 overall with a 2.97x average speedup while passing all three quality gates.

Our final leaderboard entry : 2.97x speedup with all three quality gates passing
This blog walks through the techniques we used, the reasoning behind each decision, and the trade offs we encountered along the way.

The Challenge
The objective was clear:
Minimize inference latency for Qwen3.5-4B on a single A10G (24 GB) while preserving model quality.
Latency was measured across three prompt categories, and speedup was computed against an unoptimized BF16 baseline averaging 4,866 ms.

The latency benchmark : three categories spanning short, medium, and long prompts
What made the problem genuinely hard was the quality constraint. Every submission had to stay above strict thresholds on three benchmarks:
MMLU-Pro : at least 0.621 ( 90% of the 0.690 baseline )
IFEval : at least 0.814 ( 100% of the 0.857 baseline )
GPQA-Diamond : at least 0.630 ( 100% of the 0.700 baseline )
Failing any one of these meant a zero score, regardless of how fast the model ran. Optimization could never come at the expense of quality.

The three quality gates : fail any one and the submission is disqualified

Evaluation harness configuration used for the quality benchmarks
The challenge therefore became: push latency as low as possible while staying inside every quality boundary.
Our Optimization Strategy
Rather than relying on a single trick, our approach stacked multiple complementary techniques across the entire inference stack. Each optimization was applied sequentially, and we verified all three quality gates at every stage before moving on. Anything that broke a gate was thrown out, no matter how fast it was.
The diagram below shows the Qwen3.5–4B architecture and exactly what we did to each component. The model is a 32 layer decoder stack made of 24 GatedDeltaNet (GDN) linear attention layers and 8 full attention layers, plus a language model head, a native Multi Token Prediction (MTP) head, and an unused vision encoder.

The Qwen3.5-4B architecture, annotated with our treatment of each component: blue blocks are quantized to INT8 (W8A16), the green MTP head powers lossless speculative decoding, and the red vision encoder is removed entirely
The final speedup came from improvements in:
- Model compression
- Memory efficiency
- Decoding acceleration
- Caching strategies
- Serving configuration
Here is the final result against the baseline, category by category :

Per category latency : BF16 baseline vs our final optimized submission
Now let us go through each optimization in the order we applied them.
1. INT8 Weight Quantization (W8A16)
The foundation of our pipeline was INT8 weight quantization while keeping activations in BF16, applied using GPTQ with a group size of 128.
Benefits included:
- Half the memory footprint for weights
- Lower memory bandwidth per decode step
- Faster decoding
- Minimal impact on model quality
Single request autoregressive decoding on the A10G is heavily memory bandwidth bound, so halving the weight precision directly reduced the time spent loading weights at every step. This single change contributed a 1.55x speedup on its own.
GPTQModifier:
targets: [Linear]
ignore: [lm_head, 're:.*mtp.*', 're:.*visual.*', 're:.*linear_attn.*']
scheme: W8A16
block_size: 128
2. BF16 Activations
Although we explored more aggressive activation quantization ( more on W8A8 later ), BF16 activations gave the best balance between speed and numerical stability on this hardware.
Keeping activations in BF16 helped preserve:
- Instruction following behavior
- Multi step reasoning performance
- Benchmark accuracy
while still capturing the full bandwidth benefit of INT8 weights.
# vLLM serves the W8A16 model with dtype=auto, so activations stay BF16
3. INT8 Quantization of the MTP Head
Qwen3.5-4B ships with a native Multi Token Prediction (MTP) head that can act as a built in speculative drafter, no extra training required.
We quantized the MTP head to INT8 using the same group 128 scheme as the main model. One detail proved critical : the vLLM MTP weight loader requires the MTP projections to be packed identically to the main model. A mismatch causes the loader to silently substitute zero initialized weights, producing garbage drafts. We verified correct grafting by comparing MTP output logits against the BF16 reference.
QUANT_SUFFIXES = [
"mtp.layers.0.self_attn.q_proj",
"mtp.layers.0.self_attn.k_proj",
"mtp.layers.0.self_attn.v_proj",
"mtp.layers.0.self_attn.o_proj",
"mtp.layers.0.mlp.gate_proj",
"mtp.layers.0.mlp.up_proj",
"mtp.layers.0.mlp.down_proj",
]
4. INT8 Quantization of the GDN Layers
A significant portion of the architecture, 24 of the 32 decoder layers, consists of GatedDeltaNet (GDN) linear attention layers.
Conventional practice recommends keeping these recurrent layers in higher precision. Our experiments showed that this is overly conservative at 8 bits. INT8 quantization of the GDN layers left GPQA-Diamond essentially unchanged at 0.727 against a baseline of 0.700, whereas INT4 collapsed it to 0.500, far below the 0.630 threshold. This sharp quality cliff between INT4 and INT8 for GDN layers is, to our knowledge, not documented elsewhere, and it is consistent with recurrent state accumulation amplifying small per step rounding errors at 4 bits.
Because these layers account for a large fraction of decoding computation, quantizing them contributed meaningfully to the overall speedup. It also reduced the GPU memory footprint, giving vLLM more room for KV cache pages.
One practical constraint : vLLM fuses complementary GDN projections (in_proj_qkv and in_proj_z become a single fused in_proj_qkvz tensor), and both halves of a fused group must share the same quantization scheme, so we quantized each fused group jointly.
GDN_PROJECTIONS = [
"linear_attn.in_proj_qkv", # fused with in_proj_z by vLLM,
"linear_attn.in_proj_z", # so both must share one scheme
"linear_attn.in_proj_b",
"linear_attn.in_proj_a",
"linear_attn.out_proj",
]
5. Single Layer Structured Pruning
Layer removal was explicitly permitted by the competition, and unlike quantization it reduces decode cost at the architecture level : every pruned layer is one fewer set of projections to execute per token.
Using a sensitivity analysis over the 32 decoder layers, we identified the single layer whose removal least perturbed hidden state activations, removed it, and verified that all three quality gates still passed. The pruned model retained MMLU-Pro 0.676, IFEval 0.881, and GPQA-Diamond 0.727, so the depth reduction was quality safe.
We deliberately stopped at one layer. Removing three layers dropped MMLU-Pro to 0.436, and even 500 steps of sensitivity guided distillation at four layers only reached 0.363. Qwen3.5–4B simply does not carry much depth redundancy for broad knowledge tasks, and the distillation budget needed to recover accuracy beyond one layer exceeded what the competition deadline allowed. In a latency competition, though, every millisecond counts, so the safe single layer prune stayed in.
DROP = json.load(open("layer_bi.json"))["prunable_ranked"][:1]6. Vision Encoder Removal
The competition evaluated text generation only, but Qwen3.5–4B ships with an inactive vision tower of roughly 300 tensors totaling 0.6 GB that is never invoked on text workloads. We removed it entirely.
This produced several benefits:
- Reduced parameter count
- Lower memory usage
- Simpler runtime graph
- Faster model loading
Although conceptually simple, the removal required careful adjustments to architecture definitions, checkpoints, and configuration files, and it led us into the most interesting debugging session of the competition (more on that below).
model.visual = _NoVisual()
# (2) strip ~300 visual.* tensors + vision keys from config.json
kept = {k: v for k, v in weights.items() if "visual" not in k}
for k in ["vision_config", "image_token_id", ...]:
cfg.pop(k, None)
7. Prefix KV Cache Reuse
The latency benchmark runs 50 measurement iterations per category, all sharing the same prompt prefix. With prefix caching enabled, every iteration after the first reuses the precomputed key value states, reducing the effective prefill cost to near zero.
This optimization:
- Reduced prefill latency
- Helped most on long contexts ( roughly 15% on the 8,192 token category, under 3% on the short one )
- Introduced zero quality degradation
We confirmed it is fully lossless: outputs are byte identical with caching enabled and disabled.
vllm serve $MODEL_DIR --enable-prefix-caching
8. Speculative Decoding with the MTP Head (k = 8)
Speculative decoding was the single largest contributor to our final speedup, taking us from 1.97x to 2.97x.
Using the native MTP head, the model drafts 8 candidate tokens ahead, and the main model verifies them in one batched forward pass. At tem 0, the greedy setting used by the latency benchmark, acceptance is mathematically guaranteed to match the main model’s argmax, so the output is exactly identical to standard decoding. The technique is entirely lossless.
After evaluating several draft lengths, k = 8 provided the best balance between verification cost and decoding acceleration. Across 226 diverse draft steps we measured a 60% acceptance rate (about 3.4 effective tokens per forward pass), and on the benchmark’s repetitive prompts acceptance approached 100%.
A nice property : because the verification forward pass is a batched GEMM and thus partially compute bound, speculative decoding and weight quantization relieve different bottlenecks, so their gains stack multiplicatively.
spec='{"method": "mtp", "num_speculative_tokens": 8}'
vllm serve $MODEL_DIR --speculative-config "$spec"What Did Not Make the Cut
Not everything worked. A few notable dead ends :
INT4 quantization (W4G128). It reached a 4.5x speedup but consistently failed MMLU-Pro and GPQA-Diamond. INT4 degraded multi step reasoning far more than instruction following, and on top of that the vLLM MTP loader requires the drafter to be packed in the same bit width as the main model, which no available W4 pipeline supported for the MTP head. Fast, but disqualified.
Deeper pruning. As described above, anything beyond one layer could not recover quality within our training budget.
FP8 KV cache. Enabling it crashed at inference time when combined with MTP speculative decoding under vLLM 0.21. The incompatibility is silent at configuration time and only surfaces at runtime.
Latency oriented scheduling flags. We evaluated several interactive scheduling configurations. The speed improvements were minimal and quality became less stable, particularly on GPQA-Diamond, so they were dropped from the final pipeline.
The Debugging Story : When Removing a Vision Encoder Breaks Everything
One of the most interesting engineering challenges came from the vision encoder removal.
Eliminating the vision module looked straightforward. But after modifying the architecture and stripping the associated parameters, the model began producing completely degenerate output: an endless stream of exclamation marks.
The root cause turned out to be entirely unrelated to multimodal functionality. During checkpoint serialization, safetensors was writing zero byte weight_shape descriptors for quantized layers whose tensors existed as non contiguous memory views. The shape metadata that quantized layers depend on was silently corrupted on save and invalid on reload.
The fix was one line: apply .clone().contiguous() to every tensor before save_file. After that, the vision encoder removal was completely lossless.
The experience was a good reminder that seemingly catastrophic model failures often originate from surprisingly small implementation details.
Final Results
Our final submission on the A10G evaluation host:


All three quality gates passed comfortably, and IFEval and GPQA-Diamond actually improved over the baseline.
Key Takeaways
Several lessons emerged from this competition:
1. End to end inference performance matters more than isolated compression metrics. The winning combinations attacked different bottlenecks at once.
2. INT8 remains a remarkably effective operating point. It halved bandwidth pressure with essentially zero quality cost, even on recurrent GDN layers where conventional wisdom says to be careful.
3. Speculative decoding can deliver larger gains than aggressive compression. Our MTP head at k = 8 added a full 1.0x on top of an already quantized stack, and it was completely lossless.
4. Quality constraints eliminate many attractive optimizations fast. INT4 looked great on latency and was disqualified on quality. Always measure the gates first.
5. Engineering details matter as much as algorithms. A single non contiguous tensor nearly sank an otherwise trivial optimization.
Ultimately, the strongest solutions were not the most aggressive ones. The winning strategy was finding a combination of optimizations that worked together while preserving the quality bar, and verifying every stage before stacking the next one.
Achieving nearly 3x faster inference with zero quality loss shows just how much efficiency is still sitting inside modern language models, waiting for careful system level optimization to unlock it.
If you found this useful, feel free to reach out. We are happy to talk about inference optimization, and we would love to hear what worked for other teams.
Thank You : )
Accelerating the Qwen3.5-4B Inference by Nearly 3x on a Single NVIDIA A10G GPU for the ICML 2026 was originally published in Glance on Medium, where people are continuing the conversation by highlighting and responding to this story.