Beating Frontier Models on a Turkish Classification task for $30 of GPU + RL
From the publisher’s feed, collected in the ZeroLabs newsroom.
Last weekend I got inspired and post-trained a small Turkish model for e-commerce attribute extraction. It beat Opus 4.7, GPT-5.5, and Gemini 3.1 Pro at 1,635× lower inference cost. Here’s what I learned, and how you can do something similar cheaply if you have nothing to do this weekend.Pipeline: scrape Trendyol (Amazon of Turkey) products, score with verifiable rewards, train Asure-12B with GRPO, evaluate against frontier APIsMost teams reach for frontier APIs by default.That is usually the right move. Frontier models are broad, robust, and convenient. But they are not automatically the best choice for every production task.This experiment is a counterexample.I took Trendyol/Trendyol-LLM-Asure-12B, a 12B open weight Turkish model, and trained a LoRA adapter with GRPO on a narrow, verifiable task:Given a Turkish product title, extract four catalog attributes: Renk (color), Materyal (material), Kalıp (fit), and Desen (pattern).On a out of distribution test set, the trained model beat all three frontier flagships I tested:Claude Opus 4.7 by +0.026 macro F1.GPT-5.5 by +0.040 macro F1.Gemini 3.1 Pro by +0.044 macro F1.All three wins are statistically significant under paired bootstrap testing. The task-specific post trained adapter is public on Hugging Face:KocKaankk/asure-12b-tr-attr-grpoThe point is not that a 12B Turkish model is better than Claude in general. It is not.For specific non English tasks with verifiable rewards, task RL on a small open model can be cheaper, faster, and more accurate than calling the frontier.The TaskTurkish e-commerce titles are messy but structured.Example:Product title: Erkek Slim Fit %100 Pamuk Basic Tişört Beyaz English gloss: “Men’s slim fit 100% cotton basic t-shirt, white.”Expected catalog output:{Renk: “Beyaz”, Materyal: “Pamuklu”, Kalıp: “Slim”, Desen: “Düz”} English: color = white, material = cotton, fit = slim, pattern = plain.The useful property is that Trendyol product pages already contain those structured attributes. Scrape the page, and you get both the input title and the gold labels. No human annotation. No LLM judge. No preference model.The data used here is available on Hugging Face, already has 100+ downloads :)KocKaankk/tr-rl-eval-artifactsIt is stored as eval artifacts: each row has url, title, brand, gold, and predicted. The gold field contains the catalog labels. The dataset includes the 8 field schema, but this post focuses on the first four fields.The reward is just exact match macro F1 across those fields after Turkish-aware normalization. The same scorer is used for training reward and evaluation.In words: the model gets paid for matching the catalog value on each of the four fields.That matters. No train/eval mismatch.The Cheap Test Before TrainingBefore training, I ran a best-of-N diagnostic.For each prompt, sample 8 completions from the base policy at temperature 0.8. Score all 8. Compare the average completion to the best completion.If the best completion is much better than the average one, the base model already knows how to produce good answers sometimes. RL does not need to create new capability. It just needs to move probability mass toward the outputs that already score well.That is exactly what happened: the diagnostic showed a +0.127 macro F1 headroom signal before any training.Cost: about $0.50 and five minutes of GPU timeThis is the most reusable part of the project.Do not start by asking “should we do RL?”Start by asking:Does best-of-N reveal a better policy hiding inside the base model?If the answer is no, RL is probably the wrong tool. Do SFT, change the base model, or change the reward. If the answer is yes, training is much less of a gamble.This diagnostic is not a trick. It follows the same intuition behind best-of-N distillation in RLHF: best-of-N approximates the ceiling that RL can distill into the greedy policy.The Training RunThe actual training was small.One AWS g6e.4xlarge. One NVIDIA L40S. About three hours. About six dollars for the GRPO run itself.End to end, across scraping, baseline evaluation, failed prompts, training, and frontier shootout runs, the project cost about $30 of GPU.GRPO training recipe: LoRA, QLoRA, vLLM rollouts, G=8, T=0.8, KL beta 0.02Training was stable. KL stayed bounded. There was no policy collapse.GRPO training dynamics: rollout reward stable, KL bounded, production checkpoint at step 250The final production checkpoint was step 250.The ResultSame OOD test set. Same prompt. Same scorer.Asure-12B + GRPO scored 0.364 macro F1.Claude Opus 4.7 scored 0.338.GPT-5.5 scored 0.324.Gemini 3.1 Pro scored 0.320.The base Asure model, before RL, scored 0.306.OOD shootout table: ours vs Claude Opus 4.7, GPT-5.5, Gemini 3.1 Pro, and base AsureThe trained model also beat Claude Opus 4.7 on every individual field.Per field F1 table: Renk, Materyal, Kalıp, DesenThe gains are not magic.The biggest mechanism is the catalog default prior for Desen.In this catalog, if a product has no visible pattern, the common label is often Düz (“plain”). Prompting can encode that rule, but it is brittle. RL learns it directly because the reward keeps paying it for emitting the catalog-modal value when appropriate.On the other fields, the gains are smaller but consistent. The Turkish model already has a small domain advantage on catalog-shaped text; RL makes that advantage show up in greedy decoding.What The Frontier Gets WrongFrontier models are not dumb. They often understand the product. But they do not always match the catalog. That difference matters here. The task is not “describe the product.” The task is “emit the exact value the catalog would use.” That is where the smaller Turkish model helps:It learns that Desen (pattern) often defaults to Düz (plain).It learns catalog specific Turkish values like Altın (gold) instead of a more literal Sarı (yellow).It learns when to leave fields null instead of forcing an apparel-style answer onto a non-apparel product.Simple catalog conventions: Desen means pattern and often maps to Düz/plain; Sarı/yellow is not Altın/gold; non-apparel products should often stay nullThis is why “use the best model” is not always the right strategy.The best general model is not necessarily the best model for your metric, your language, and your catalog conventions.Cost Changes The DecisionThe accuracy win is only half the story.Self-hosted Asure-12B on a g6e.4xlarge serves at roughly $0.008 per 1,000 inferences under batched vLLM throughput.Claude Opus 4.7 costs roughly $13.75 per 1,000 inferences on this prompt.GPT-5.5 costs roughly $1.10 per 1,000 inferences.Gemini 3.1 Pro costs roughly $4.40 per 1,000 inferences once hidden thinking tokens are included.So the trained model is not cheaper but worse. It is cheaper and better.Cost vs quality scatter: ours is the only model in the cheap and accurate cornerThis is the part that matters for production.At low volume, frontier APIs are still simpler. No infra, no serving stack, no monitoring. But once volume is meaningful, and the task is narrow enough, the economics flip quickly.What This Does Not ProveThis does not prove that small open models beat frontier models in general.It proves something more specific:If your task has cheap gold labels, a verifiable reward, and measurable best-of-N headroom, RL on a small domain model can beat frontier APIs on that task.Those conditions matter.If you do not have gold labels, you need a reward model or judge. That is a harder project.If best-of-N does not beat mean-of-N, RL probably will not help. The base policy is not hiding a better behavior for training to distill.If the task needs broad world knowledge, a 12B model may simply not have the capability. In my expanded 8-field experiment, the model got closer to Claude but did not maintain a statistically significant lead. The recipe worked best where catalog priors mattered.So the claim is not “RL always wins.”The frontier API should not be the default endpoint for every narrow production task. Measure headroom first.Why This MattersMost teams skip the diagnostic.They either overestimate RL and burn weeks training something that cannot move, or underestimate RL and pay frontier prices forever on tasks where a cheap domain model would dominate.The best of N test is the bridge between those two mistakes.Run it once. If there is no headroom, stop. If there is headroom and the reward is verifiable, a weekend of RL is now a reasonable engineering bet.That is the main result.Not “small model beats big model.”“For the right task, you can know before training whether a small model is worth improving.”Further ReadingScaling laws for reward model overoptimization, Gao, Schulman & Hilton: the best paper for understanding why best of N is a useful proxy for the reward ceiling RL can reach.BOND: Aligning LLMs with best-of-n distillation, Sessa et al.: frames post training as distilling a best-of-N distribution into the policy.ResourcesProduction adapter — KocKaankk/asure-12b-tr-attr-grpoEval artifacts and product labels — KocKaankk/tr-rl-eval-artifactsBase model — Trendyol/Trendyol-LLM-Asure-12BThis is a research note, not a product announcement. The numbers reflect my actual AWS/GPU spend across the experiment. Statistical tests are paired bootstrap with N=2,000 resamples.Beating Frontier Models on a Turkish Classification task for $30 of GPU + RL was originally published in Towards AI on Medium, where people are continuing the conversation by highlighting and responding to this story.