Free · Daily brief + weekly playbookDaily 60-sec AI Voice Brief + Weekly Production AI Agent PlaybookGet the brief →
ReleaseInsight · On RadarHabr: Avito→ original

Avito Hands 70% of Disputed Listings to an LLM at About 94% Precision

Avito reviews more than 20 million listings a day, and over 95% of those checks are automated. Hundreds of thousands of disputed cases still go to human moderators every day. Now a large language model (LLM) takes about 70% of those cases: of 100 listings it flags as violations, about 94 actually break the rules. The remaining 30%, the hardest ones, still go to people, and the LLM works alongside classic ML and attack-protection layers.

AI-processed from Habr: Avito; edited by Hamidun News
Avito Hands 70% of Disputed Listings to an LLM at About 94% Precision
Source: Habr: Avito. Collage: Hamidun News.
Listen to article
Article Fact Sheet & Key Figures
ParameterDetails
Primary sourceHabr: Avito ↗
Editor-in-Chief
Key metric #1The 200-page rulebook is compressed into a prompt for Qwen3.5-35B-A3B
Key metric #2The model's answer is a single token, True or False, and the rulebook is cached
Key metric #3Agents and automatic prompt tuning raised quality (F1) by 14%

Picture a stream of hundreds of thousands of listings a day, each one needing to be checked against a 200-page rulebook. People make mistakes at that volume, and a new moderator needs about six months to reach stable quality. Avito faced exactly this problem.

The platform reviews more than 20 million listings a day, and over 95% of those checks are already automated. The remainder, hundreds of thousands of listings a day, is handled by several hundred moderators. Now a large language model (LLM, that is, a neural network that understands the text of the rules) automatically resolves about 70% of these disputed cases.

Precision on this stream is about 94%: of every 100 listings the model considers a violation, roughly 94 really do break the rules. The remaining 30% are the hardest cases, and automating them is the next stage. Below is what the team had to build around the model to make it hold up in production.

How to Give the Model a 200-Page Rulebook

The team compared three approaches. RAG (retrieving the relevant pieces of the rules before the model answers) costs less per request and is easier to update, but search misses happen, it handles overlapping rules poorly, and it requires a separate engineering pipeline with its own metrics. Putting the entire rulebook in context requires minimal infrastructure, but it is expensive and slow, and on long inputs the model's attention and accuracy drop. The third option is a prompt built from the rulebook: it is cheap, fast, and stable, although compression can lose meaning.

They chose the third option because it delivered the best metrics and did not require a second engineering system. There is also a legal constraint: some checks cannot be sent to external LLMs because of personal data, so the models run in a closed environment.

Qwen3.5-35B-A3B is the default: good quality with a small number of active parameters. For violation types where it underperforms, the team fine-tunes a compact Avision-8B. On Avito's checks, its F1 (a summary quality score that accounts for both missed violations and false alarms) is 76%. That is higher than the 35B model and even higher than a 397B model without fine-tuning. However, fine-tuning requires high-quality labeled data.

The Prompt as a Hyperparameter: From Manual Edits to Agents

The rulebook was written for people, not for a model. Examples and breakdowns of borderline cases help a moderator but get in the way of an LLM. The team went through five iterations.

First, they used the rulebook as is. Then they asked moderators to rewrite it as a short instruction. After that, they had the LLM rewrite it itself, with manual review.

Then they started treating the prompt as a hyperparameter and connected algorithmic automatic tuning (an adapted GEPA). Finally, they assembled a set of MCP servers and skills, and now agents analyze errors, launch automatic tuning and adapter training on their own, while people approve the results. From the raw rulebook to the agents, F1 grew by 14%.

The team had to modify GEPA in three places: take the probabilities of the True and False tokens, limit how much the prompt can change in a single step (otherwise the metric jumps around), and translate the framework's internal instructions into Russian. The drawbacks of automatic tuning are candidly acknowledged: it is slow and costly, it can overfit to the sample, and it can add erroneous wording to the prompt, so held-out data and manual review are required. For fine-tuning, they use LoRA only on the language layers and leave the vision layers untouched, since they saw no gain there. The training pool includes candidate prompts, weighted in proportion to their quality.

Production: Routing, One Token, and Protection

Classic ML models remain and now form the "completeness layer": they catch as many potential violations as possible and assign identifiers to suspicions. The identifier selects the appropriate prompt, and the LLM then makes a more precise decision. Suspicious listings go to a moderator, the rest go to the LLM, and when the model's confidence is low, a person re-checks the decision as well. Every check ends with either allow or reject.

The economics rest on two techniques. The rulebook is identical within a single check, and only the listing changes, so prefix caching (reusing the already-processed beginning of the prompt) saves most of the computation. In addition, the output is limited to one deterministic token (True or False) with reasoning_effort set to "none"; generation speed is secondary here, and time to first token is what matters. Logits make it possible to balance precision and recall for each specific check.

Moderation is an environment where users try to get around the rules, and listing text also reaches other AI assistants in the company. So a separate GuardRails layer sits in front of the LLM to guard against prompt injection and jailbreaks: suspicious input goes straight to people. There is also an in-house admin panel for management: prompt versions, flow monitoring, experiments, automatic tuning and fine-tuning, and it is designed so that a non-technical employee can operate it. Additional fields such as price are enabled with a checkbox.

The takeaway for anyone building something similar: the prompt is a system parameter, one model for all checks is not enough, and in production an LLM works only together with classic ML, routing, protection, and people.

Story

Key Questions Answered

How to Give the Model a 200-Page Rulebook?

The team compared three approaches. RAG (retrieving the relevant pieces of the rules before the model answers) costs less per request and is easier to update, but search misses happen, it handles overlapping rules poorly, and it requires a separate engineering pipeline with its own metrics. Putting the entire rulebook in context requires minimal infrastructure, but it is expensive and slow, and on long inputs the model's attention and accuracy drop.

What are the key details on The Prompt as a Hyperparameter: From Manual Edits to Agents?

The rulebook was written for people, not for a model. Examples and breakdowns of borderline cases help a moderator but get in the way of an LLM. The team went through five iterations. First, they used the rulebook as is. Then they asked moderators to rewrite it as a short instruction. After that, they had the LLM rewrite it itself, with manual review. Then they started treating the prompt as a hyperparameter and connected algorithmic automatic tuning (an adapted GEPA).

What are the key details on Production: Routing, One Token, and Protection?

Classic ML models remain and now form the "completeness layer": they catch as many potential violations as possible and assign identifiers to suspicions. The identifier selects the appropriate prompt, and the LLM then makes a more precise decision. Suspicious listings go to a moderator, the rest go to the LLM, and when the model's confidence is low, a person re-checks the decision as well. Every check ends with either allow or reject. The economics rest on two techniques.

ZK
Zhemal Khamidun — Head of AI at Alpina Digital · MIPT (academic supervisor of the Tech Entrepreneurship department). Building AI products since 2019. Hamidun News is a pet project that grew into a production aggregator with 6,000+ readers.
✦ Unified AI Workspace · Nomad

Test Frontier LLMs & Autonomous Agents in One Workspace

Run Claude Opus 5.5, GPT-6, Gemini 3.1, and DeepSeek side-by-side in Nomad AI (nomadnet.ai) — unified model routing, deep research, and multimodal workflows under one subscription.

Try Nomad AI →Launch Nomad Agent
Jemal Hamidun

Editor-in-chief · Cite this analysis

Jemal Hamidun

Head of AI at Alpina Digital · Academic Supervisor of the Tech Entrepreneurship Department at MIPT

Head of AI & CPO of AlpinaGPT at Alpina Digital, Academic Lead of Tech Entrepreneurship at MIPT. Founder of Hamidun News and Vibe Academy.

Ready-to-paste citation for journalists, blogs and Telegram channels

Source: Hamidun News — Avito Hands 70% of Disputed Listings to an LLM at About 94% Precision https://news.hamidun.com/en/news/16886/avito-hands-70-of-disputed-listings-to-an-llm-at-about-94-pr

What do you think?
Loading comments…