Problem
Listings with long descriptions match more queries, index better and sell faster, so a classifieds platform wants full descriptions. Avito's first auto-description service had two flaws: it read only the main photo, so part of what the other photos show was lost, and its texts were too dry. A second problem sits in search. If a description omits or mislabels an attribute, full-text search never shows the listing for that query.
Example from the article: a khaki jacket whose description names a different color cannot be found by the query "khaki jacket".
Solution in brief
Drop the encoder-decoder cross-attention link: encode every photo separately with an image encoder (CLIP's image tower in experiments) and feed the embeddings with the prompt to the LLM. Train on targets rewritten by a multimodal model from photos, user text and parameters, so descriptions read well. Reuse the same model to turn the main photo into attribute keywords, validate them, and add them to the search index.
Questions this case answers
- How to make items whose text attributes are missing or wrong retrievable by keyword search when the attributes are visible only in the images
- How to train a text generator on human-written targets that are too terse and stylistically poor, when the inputs include several images
- How to make an LLM that writes listing descriptions use all the seller's photos instead of one
- How to get livelier, easier-to-read generated descriptions when user-written texts are too terse to train on
Tools and methods
- CLIP (image tower) — encodes photos into embeddings that go into the LLM input with the prompt.
- Multimodal model for relabeling — rewrites training descriptions from photos, user text and parameters under style rules.
- Post-validation — drops generic keywords such as "bright print".
- Redis — holds generated keywords by listing ID until the search engine reads them.
Google or a one-time email code. No password.