Avito Home Feed Ranking: How Neural Networks Decide Which Listings Get ShownLongread · digest for October 15
Product still life on a wooden table featuring a smartphone with the Recommendations tab open, a kraft parcel, and a craftsman's measuring tool in warm light.
Longread6 sections≈ 9 min

Avito Home Feed Ranking: How Neural Networks Decide Which Listings Get Shown

Have you ever noticed a weird pattern in your profile stats? Your title is polished down to the last character, your keywords are spot-on, and your price matches the market. Yet you get total silence. Your listing sits in a vacuum. In moments like this, most sellers immediately look for someone to blame: they curse moderation, complain about technical glitches, or whisper about a mythical 'shadowban.'

I used to think classic search was the main and only source of buyers, too. It felt simple: rank at the top of search for a specific query, and sales are guaranteed. But when I dug into the platform's real data, I found a striking engineering split.

Why search no longer decides everything

Classic search by categories and keywords only delivers part of your reach. Personalized recommendations on the Avito home page account for about half (50%) of all listing views on the platform. Even better, this feed generates roughly 30% of all direct contacts (calls and chat messages) between buyers and sellers.

If your offer doesn't appeal to the home feed recommendation algorithms, you're voluntarily cutting your business off from half of the potential market. Recently, practicing expert Viktor Malyshev (the 'Aviclub.ru Avitolog' channel) highlighted a major engineering article by the AvitoTech team on Habr, written by DS Tech Lead Yaroslav Khnykov. In it, the developers laid out without corporate fluff how Avito's recommendation funnel works under the hood and why old promotion tricks no longer produce explosive results.

Let's take this mechanism apart piece by piece.

How the three-stage selection funnel works

Hundreds of millions of listings are active on Avito every second. Showing all of them to a single user is technically impossible. A person opens the app on their phone, and the system has fractions of a second to build a personal storefront for them.

Infographic blueprint of Avito's three-stage recommendation funnel from hundreds of millions of listings down to the top 300 positions.

To pull this off, Avito runs a complex multi-stage pipeline:

  1. Candidate generation (L1). Fast specialized engines sift through the massive pool of hundreds of millions of active items and pull a shortlist of a few thousand potentially relevant listings. They use signals like the user's location, recent searches, interest categories, and item similarity.
  2. Initial filtering and ranking (L2). Those few thousand candidates are narrowed down to a compact list of the top 300 listings. Since 2020, this job on Avito was handled reliably by proven CatBoost gradient boosting.
  3. Heavy neural re-ranking (L3). Inside those selected 300 items, a lightweight yet deep neural ranker kicks in. It solves the main problem: in what exact order should these 300 items appear on the phone screen to maximize valuable actions?
  4. Diversification layer. This is the final protective filter. It makes sure a user's feed doesn't get flooded with identical offers from the same seller or listings from a single narrow category.

In our earlier article on shadowbans and recommendation architecture, we already touched on how falling out of this funnel starves a seller of traffic. Now, however, engineers have taken a major leap forward by completely rebuilding the second and third ranking levels.

Why CatBoost hit a ceiling

CatBoost gradient boosting served the platform well for years. The team scaled it from 80,000 training feeds and 19 basic features up to a million feeds and 200 complex features built on embeddings. By 2024–2025, though, the model hit a classic physical saturation point: feeding in terabytes of new data stopped improving quality.

The core issue was that CatBoost can't work directly with raw vector representations (embeddings) of items and users. Engineers had to manually compress vectors into dot products and complex counters. Hand-crafting features became a bottleneck, and the model couldn't capture subtle contextual links between what a buyer searched for half an hour ago and what they're ready to buy right now.

It became clear that ranking the top 300 required moving to neural networks. Doing that in production on a giant classifieds platform, however, is a massive challenge.

Five attempts to build the ideal neural ranker

The AvitoTech team's engineering journey clearly shows that in real-world machine learning, neat academic theories often crash into harsh reality. They went through five consecutive iterations:

  • Iteration 1 (Failure with complex models). First, the developers tried a trendy DCNv2 architecture with a Mixture of Experts. The result was discouraging: the NDCG ranking metric dropped by 3%, and real contacts with sellers fell by 6%. The model was overcomplicated.
  • Iteration 2 (Simplification and ListMLE loss). They simplified the architecture to a classic multilayer perceptron (MLP) and replaced standard binary cross-entropy with a specialized loss function called ListMLE. Instead of scoring each listing in isolation ('click or no click'), this loss optimizes the order of the entire batch at once using a triangular mask and softmax. That produced the first steady growth signal.
  • Iteration 3 (Embedding projections). They added a projection layer for unique items stored in fast memmap memory. Ranking quality for target actions rose by 0.8%, but contacts dipped by 1.9%. The algorithm learned to push clickable listings that didn't lead to calls.
  • Iteration 4 (Contact penalties and blending). Engineers added strict penalties in the loss function for losing contacts and blended the predictions of CatBoost and the neural network. That pushed the model into solid positive territory: platform-wide contacts grew by 0.7%, and target actions rose by 0.4%.
  • Iteration 5 (Transformer and user history). The real breakthrough happened when they built a self-attention mechanism into the architecture and connected user history.

How the transformer sees the buyer

Let's break this down in plain terms. Imagine feeding the model not just faceless view counts, but a live chain of a specific person's recent actions on Avito.

Engineers set a strict rule: the user history takes exactly the last 50 useful events. Crucially, random casual clicks were intentionally thrown out! If someone accidentally tapped a funny sofa or opened a listing out of curiosity, the algorithm won't pollute their interest vector with it. Only strong intent counts: sending a chat message, calling a seller, saving a listing to favorites, or starting a delivery order.

Each event is encoded as a compact vector containing:

  • a projection of the item's numerical embedding;
  • a positional embedding (how long ago it happened);
  • the action type (a call is weighted differently than a bookmark);
  • the traffic source (whether the user came from organic search, clicked in the feed, or arrived from an external ad).

Next, the top 300 candidates and the 50 user history events are merged into a single input stream for the transformer. That's where the magic happens: a masked attention mechanism forces the candidates to look not only at the user's history, but also at each other.

The neural network evaluates your listing in the context of its immediate neighbors. If three identical smartphones sit side by side in the top 300, the model checks which seller has a higher rating, a clearer price, and livelier photos. Accounting for this competitive environment alone added +0.6% to overall feed quality.

In production, this lightweight 2.5-million-parameter model runs on GPU servers managed by Triton Inference Server. It ranks the top 300 in just 30 milliseconds, adding a modest 6% to total backend response time.

Hard numbers from the live A/B test

The results of large-scale A/B testing of the new hybrid system across 10 million feeds are impressive:

  • +4.3% users who made at least one contact from recommendations;
  • +3.3% users who completed a target action on the platform;
  • +0.8% growth in users who reached an actual closed deal on Avito.

For a platform of Avito's scale, where hundreds of thousands of transactions happen daily, fractions of a percent in conversion translate into billions in turnover for small and medium businesses.

How to hook the L3 neural ranker with real actions

Because the algorithm trains on sequences of 50 target actions, empty clickbait traffic is pointless. If users open your listing and immediately close it without calling or messaging, the neural network quickly pushes your position down in the top 300. Your goal is to motivate visitors to take a simple micro-action: ask about availability in chat, request a video overview, or tap 'Add to Favorites.'

What this practically changes for sellers

Understanding the platform's engineering logic clears away illusions and stops wasted spending on chaotic promotion. Here are four takeaways I recommend putting into practice right now:

  1. Spotless attributes for L1. To make the initial cut out of hundreds of millions of listings, your item must have clean metadata. Fill out every available specification field, pick the exact category and subcategory, and enter the right brand and model variant. Any mistake in parameters keeps your listing's embedding from matching the buyer's interest vector.
  2. Focus on messages and favorites, not empty clicks. Forget flashy, clickbait titles that don't match the content. Offer a clear reason to reach out in your description: a free estimate in chat, a locked-in discount when saved to favorites, or a guaranteed five-minute reply. Every such action raises your profile's weight in the user's history.
  3. Visual contrast inside the top 300. Remember that the transformer judges your listing against its direct neighbors in the feed. Your main photo shouldn't be a sterile stock render on a white background. Show the real product in daylight, add a clean badge with a key benefit, or show a live shot of your team at work if you sell services.
  4. Respect the diversification layer. Trying to flood a category with dozens of identical clone listings from one account gets shut down hard by the final diversification filter. The system artificially mixes up the feed to leave room for other sellers. Instead of mindless mass posting, focus on distinct product groups, varied titles, and honestly solving real customer needs.

Avito's neural networks no longer treat the platform as a static bulletin board. It's a dynamic living organism that reads audience behavior every second. And the sellers who understand the rules of this game from the inside capture the lion's share of the hottest buyers.

Want a deep diveVotes help us choose what to break down in detail. This material has 0 votes.
Sources · 2