AI NewsProductivityAnnouncement
Canva cut its image review model's latency 15x and cost 85 percent
Canva's engineering team published how its 4-billion-parameter vision-language model reviews 100,000 images a day. Serving tricks took p50 latency from 3.5 seconds to 240 milliseconds.

Why it mattersTraining a 4B model is the easy half. The serving work paid most of the bill.
Most teams treat training a model and serving it as two separate jobs. Canva's engineering team says that framing leaves the savings on the floor. Sachinthaka Abeywardana wrote up today how Canva put a vision-language model into production. The model reviews images for the public library.
The model is a fine-tuned Qwen3.5 with 4 billion parameters. It runs over 100,000 images a day. It checks each one against more than 30 content and quality criteria. The serving cost dropped 85 percent against the previous setup. The p50 latency fell from 3.5 seconds to 240 milliseconds. The p99 moved from 4.6 seconds to 520 milliseconds. The false negative rate halved, with no rise in false positives.
Training against the real decisions
Canva only computed training loss on the response JSON. Prompt tokens and image tokens were masked. "Loss is calculated only on the response JSON, not the prompt or image tokens," the post says. That focused the model on the decisions, not on repeating the input.
A second training phase used a binary classification loss on the logit difference between the true and false tokens. Canva says this gave direct pressure on the only tokens that carry a decision. They applied LoRA to every linear layer at rank 24, which left 4.8 percent of the weights trainable. QLoRA then let them raise the batch size from 4 to 24. Liger kernel fusion added about 20 percent more training throughput and 30 percent more memory headroom.
Where the serving minutes came from
Each review returns 190 output tokens, but only 33 carry real information. The rest is the fixed JSON shape. Canva used that to skip the draft model that speculative decoding usually needs. The draft is the template with every slot set to false and an end-of-sequence token. One forward pass can verify up to 32 tokens against the main model.
A three-state mask then forces the structural JSON tokens at known positions. Boolean slots are restricted to the two allowed tokens, with their logits kept. The end-of-sequence token is inserted at the right place. XGrammar enforces the schema during draft verification. The model runs at temperature zero, so no sampling is needed.
Canva also merged the LoRA adapter into the base weights in production. Dynamic adapters are useful in development but add 27 to 140 milliseconds per request. "That overhead was the single biggest fixed cost," the post notes. Prefix caching of the system message and the feature list cut tail latency further.
Two bugs the team calls out
The post names two quiet failures that cost real time. The first was a missing ensure_weight_tying flag in the LoRA configuration, which made vLLM discard the trained output head. The second was reentrant gradient checkpointing, which silently zeroed the gradients in the vision tower rather than raising an error. Both produced a trained model that looked fine in logs and failed in production.
Canva also says the speedup from speculative decoding depends on how much spare GPU there is. A single request saw 12.5 to 15.8 times faster decoding with 32 to 128 draft tokens. At 32 concurrent requests the gain fell to 3.7 times. The GPU had less capacity to spend on the draft check.
The final sentence of the post is the one the piece turns on. The author writes that the results came from treating training and serving as parts of the same system. They used what they knew about the task at each stage. A team that hands the trained weights to a separate serving group will miss the biggest saving every time.
Source
This item was written by an AI system from the linked source. Reveneau is responsible for what it publishes.
Get AI News in your inbox
New developer tools, model and agent releases, and how teams are actually using them to release software. Short, and only when there is something worth reading.

