# Igor Shalamov — full site text > AI systems architect who designs AI growth systems: referral and recommendation systems, Telegram services, AI-driven communication automation. Every English page of https://igorshalamov.com in one file, in reading order. Russian pages: https://igorshalamov.com/ru/. Updated: 2026-11-21. ![Igor Shalamov, portrait](https://igorshalamov.com/press-kit/igor-shalamov-480.jpg) # Igor Shalamov AI systems architect who designs AI growth systems Founder of Shalamov.io. He designs AI growth systems: referral and recommendation systems, AI-driven communication automation, semantic search and classification. [Biography](https://igorshalamov.com/about/), [research](https://igorshalamov.com/research/), [press kit](https://igorshalamov.com/press-kit/) and [contact](https://igorshalamov.com/contact/). ## [Appvillis (Nicegram)](https://igorshalamov.com/work/ai-systems-architecture/) Since April 2023 Igor Shalamov has worked with Appvillis, the company behind the Nicegram messenger, as AI Software Architect and Head of Referral Marketing. The work covers AI-driven feedback automation and content filtering. ## [Research](https://igorshalamov.com/research/) Five articles, 2024–2025: semantic news search, real-time neural news classification, news personalization and neural network architectures for referral and sales funnels. ## [Shalamov.io](https://igorshalamov.com/products/) Since 2021: a referral-marketing automation platform with an academy and an AI implementation agency. AI growth system: three layers and a feedback loopBehaviour data: what people open, share, ignore and reply to; Models: recommendation and ranking, classification of intent and sentiment; Communication: personal replies, invitations and content at the right moment. Feedback loop: every reply and every invitation becomes new data, and the models retrain on it.Behaviour datawhat people open, share,ignore and reply toModelsrecommendation and ranking,classification of intent andsentimentCommunicationpersonal replies,invitations and content atthe right momentFeedback loop: every reply and every invitation becomes new data, and the modelsretrain on it AI growth system: three layers and a feedback loopBehaviour data: what people open, share, ignore and reply to; Models: recommendation and ranking, classification of intent and sentiment; Communication: personal replies, invitations and content at the right moment. Feedback loop: every reply and every invitation becomes new data, and the models retrain on it.Behaviour datawhat people open, share,ignore and reply toModelsrecommendation and ranking,classification of intent andsentimentCommunicationpersonal replies, invitationsand content at the rightmomentFeedback loop: every reply andevery invitation becomes new data,and the models retrain on it Every AI growth system has three layers connected by a feedback loop. Without the loop it is automation; with it, a growth system. [What is an AI growth system](https://igorshalamov.com/writing/what-is-an-ai-growth-system/). ## AI growth systems Igor Shalamov is an AI systems architect and entrepreneur who designs AI growth systems. He founded Shalamov.io, a platform for referral funnels and Telegram services, plus an academy and an AI implementation agency. He has designed referral and recommendation systems for education and Web3 platforms and worked on AI automation within the Nicegram messaging ecosystem. He writes on semantic search and neural news classification. Referral and recommendation systems for education and Web3 platforms: lead architect of referral systems at Like Center (2021–2023), head of referral marketing and IT development at the Web3 accelerator LaunchHub (since 2022). What this class of systems is and how it is built: [AI growth systems](https://igorshalamov.com/ai-growth-systems/). ## [Writing](https://igorshalamov.com/writing/) [Recommendation System Design Interview: A Complete Answer in 6 Steps](https://igorshalamov.com/writing/recommendation-system-design-interview/) 5 December 2026. A six-step answer for a 45-minute interview, with a video feed as the example: agree on the goal, put numbers on scale, draw the pipeline, then data, evaluation and trade-offs. [Collaborative Filtering vs Content Based Filtering: When to Use Each](https://igorshalamov.com/writing/collaborative-vs-content-based-filtering/) 5 December 2026. Content based filtering shows a new item from its first minute but repeats itself. Collaborative filtering brings discovery but cannot see new items. Production systems combine both. [Two Tower Model Explained: Recommendation Retrieval at Scale](https://igorshalamov.com/writing/two-tower-model-explained/) 29 November 2026. Why a recommender cannot rank its whole catalogue, and how the two tower model solves candidate retrieval: separate user and item towers, a shared vector space, training on clicks with in-batch negati [All notes](https://igorshalamov.com/writing/) ## [Research](https://igorshalamov.com/research/) [Semantic news search using artificial intelligence: technologies, problems and prospects](https://igorshalamov.com/research/semantic-news-search-ai/) Семантический поиск новостей с использованием искусственного интеллекта: технологии, вызовы и перспективы Article in Russian. Aktualnye issledovaniya (Current Research), APNI, No. 20 (202). Published 16 May 2024. ISSN 2713-1513. [Neural network architectures for automating user funnels in referral marketing](https://igorshalamov.com/research/neural-architectures-referral-funnels/) Нейросетевые архитектуры для автоматизации пользовательских воронок в реферальном маркетинге Article in Russian. Aktualnye issledovaniya (Current Research), APNI, No. 29 (264), part I, pp. 29–38. Published 24 July 2025. ISSN 2713-1513. [AI-driven marketing: the evolution of sales funnels in digital ecosystems](https://igorshalamov.com/research/ai-driven-sales-funnels/) AI-driven маркетинг: эволюция воронок продаж в цифровых экосистемах Article in Russian. Internauka (electronic scientific journal), No. 25 (389), section “Information technologies”. Published 2025. [Neural networks for real-time news classification: computational approaches, applications and open problems](https://igorshalamov.com/research/neural-news-classification-real-time/) Нейронные сети для классификации новостей в реальном времени: вычислительные подходы, приложения и вызовы Article in Russian. Internauka (electronic scientific journal), No. 35 (399), section “Information technologies”. Published 2025. [Personalization of news content using AI: architecture and efficiency of neural network systems](https://igorshalamov.com/research/news-personalization-ai/) European Journal of Technical and Natural Sciences, Premier Publishing s.r.o., No. 4–5 (2025), pp. 18–29. Published 30 October 2025. ISSN 2414-2352. ## [In the media](https://igorshalamov.com/press/) [От интеграции искусственного интеллекта в digital-маркетинг до создания академии, готовящей профильных экспертов](https://b-mag.ru/ot-integracii-iskusstvennogo-intellekta-v-digital-marketing-do-sozdanija-akademii/) B-Mag.ru, 12 October 2023. Interview, by Igor Sotnikov. In Russian. [Игорь Шаламов: как ИИ совершит революцию в реферальном маркетинге](https://apni.ru/interview/igor-shalamov-kak-ii-sovershit-revolyucziyu-v-referalnom-marketinge) APNI.ru, 25 January 2024. Interview, by Kira Danilova. In Russian. [Игорь Шаламов о будущем реферального маркетинга](https://www.pravda.ru/economics/2311498-igor-shalamov-referalnyi-marketing/) Pravda.ru, 20 December 2024. Article, by Alexander Prikhodko. In Russian. ## Facts and sources Verified names, roles, bios and profiles are on the [press kit](https://igorshalamov.com/press-kit/) page. Short answers with sources are on the [FAQ](https://igorshalamov.com/faq/) page. Full biography and timeline: [About](https://igorshalamov.com/about/). --- Canonical page: https://igorshalamov.com/. Author: Igor Shalamov, AI systems architect who designs AI growth systems. Site guide for AI assistants: https://igorshalamov.com/llms.txt # Igor Shalamov Igor Shalamov (Russian: Игорь Шаламов) is an AI systems architect and founder of Shalamov.io. He designs AI growth systems: referral and recommendation systems, AI-driven communication automation, semantic search and classification. ![Igor Shalamov, portrait](https://igorshalamov.com/press-kit/igor-shalamov-480.jpg) ## Biography Igor Shalamov is an AI systems architect and entrepreneur working at the intersection of machine learning, product analytics and marketing. In 2021 he launched Shalamov.io, a referral-marketing automation platform that lets businesses build referral funnels, Telegram services and Mini Apps, as well as no-code AI modules for segmentation, analytics and customer conversations. The platform anchors an academy and an implementation agency. From 2021 to 2023 Igor led referral-systems development at the Like Center education ecosystem; since 2022 he has been responsible for referral marketing and IT development at the Web3 accelerator LaunchHub; and since April 2023 he has worked with Appvillis, the company behind the Nicegram messenger, as AI Software Architect on AI-driven feedback automation and content filtering. He is the author of research articles on semantic news search, real-time neural news classification, news personalization and neural architectures for referral funnels. He is now building the international Shalamov.io ecosystem. ## Roles and periods | Organization | Role | Period | |---|---|---| | Shalamov.io | Founder and platform architect | since 2021 | | Shalamov.io Academy | Founder, instructor | since 2021 | | Shalamov Agency | Founder | since 2020 | | Appvillis UAB (Nicegram) | AI Software Architect, Head of Referral Marketing | since April 2023 | | LaunchHub | Head of referral marketing and IT development (project-based) | since 2022 | | Like Center | Lead architect of referral systems | 2021–2023 | | Bolshie Cheki | Head of partner marketing, founder of the IT department | c. 2021–2022 | | NL International | Network marketing, start of career | before 2021 | The work with Appvillis covers AI-driven feedback automation and content filtering for the Nicegram messenger. More on this direction: [AI systems architecture](https://igorshalamov.com/work/ai-systems-architecture/). The field as a whole: [AI growth systems](https://igorshalamov.com/ai-growth-systems/). ## Areas of expertise - Architecture of AI growth systems - Referral and recommendation systems - Telegram Mini Apps and Telegram services - AI-driven communication automation: chat assistants, Smart Feedback, content filtering - User segmentation and predictive behaviour analytics - Semantic search and news classification - AI aggregators and white-label AI products - No-code AI adoption for small and mid-sized businesses - Training specialists in AI automation ## Research and media Five research articles, each with its own page, citation data and a link to the journal, are on the [Research](https://igorshalamov.com/research/) page. Interviews and articles about him in the media are on the [Press](https://igorshalamov.com/press/) page. ## Name Igor Shalamov is the only Latin spelling of the name (not Shalamoff, not Schalamov). Full name in Russian: Игорь Станиславович Шаламов. Handle on social platforms: shalamoov. --- Canonical page: https://igorshalamov.com/about/. Author: Igor Shalamov, AI systems architect who designs AI growth systems. Site guide for AI assistants: https://igorshalamov.com/llms.txt # AI growth systems AI growth systems are software systems in which machine-learning models decide how a digital product attracts, engages and keeps its users. Igor Shalamov, an AI systems architect and founder of Shalamov.io, designs systems of this class and publishes research on them. ## What belongs to this class ### Referral systems A referral system turns existing users into a channel for new ones: invitations, partner links, attribution of each new user to the person who invited them, and rewards. Neural networks take over the parts that used to be manual: generating messages, analysing the audience, adapting each user's path through the funnel and optimising campaigns. Research: [Neural network architectures for automating user funnels in referral marketing](https://igorshalamov.com/research/neural-architectures-referral-funnels/); [AI-driven marketing: the evolution of sales funnels in digital ecosystems](https://igorshalamov.com/research/ai-driven-sales-funnels/). ### Recommendation systems A recommendation system ranks content or offers for each user from the text of the items and the history of the user's actions. In [his article on news personalization](https://igorshalamov.com/research/news-personalization-ai/), Igor Shalamov proposes a hybrid model that combines BERT for the meaning of the text with LSTM for the order of user interactions; on the MIND dataset it is compared with TextCNN, LSTM, BERT-base and matrix factorisation baselines. ### AI-driven communication automation In a messaging product AI classifies incoming feedback, routes it, drafts replies and filters content that breaks the rules. This is the direction of his work with Appvillis, the company behind the Nicegram messenger, where his role since April 2023 is AI Software Architect. The architecture of this layer is described on the [AI systems architecture](https://igorshalamov.com/work/ai-systems-architecture/) page. ### Semantic search and classification Semantic search finds content by meaning rather than by keywords; classification assigns topic, language and risk to each item as it arrives. Research: [Semantic news search using artificial intelligence: technologies, problems and prospects](https://igorshalamov.com/research/semantic-news-search-ai/), which reviews vector databases, hybrid and cascade search and contextual retrieval; [Neural networks for real-time news classification: computational approaches, applications and open problems](https://igorshalamov.com/research/neural-news-classification-real-time/). ## How the architecture is built The four kinds of systems share one structure: 1. **Event intake.** Actions, messages and content enter through one entry point with a stable schema, so that every later decision can be traced to its input. 2. **Models.** Compact models handle high-volume steps such as classification and embedding; larger models are used for ranking and generation where quality pays for the cost. 3. **Policy layer.** Rules and confidence thresholds decide whether the system acts on its own, suggests an action to a person or escalates. 4. **Attribution and safeguards.** In referral systems, attribution has to survive retries and duplicates, and anti-fraud checks run before any reward. 5. **Measurement.** Each change is compared with a baseline on the same sample or in an A/B test before rollout. ## Igor Shalamov's work in this field - Shalamov.io (since 2021), founder and platform architect: a platform for referral funnels, lead distribution, automatic messages, partner links, segmentation and analytics, with AI modules for chat assistants, AI segmentation, data analysis and content generation. [Products](https://igorshalamov.com/products/). - Appvillis UAB (Nicegram), AI Software Architect since April 2023: AI-driven feedback automation and content filtering. - LaunchHub, head of referral marketing and IT development (since 2022, project-based): referral systems for international Web3 projects. - Like Center, lead architect of referral systems (2021–2023). ## Research articles [Semantic news search using artificial intelligence: technologies, problems and prospects](https://igorshalamov.com/research/semantic-news-search-ai/) Aktualnye issledovaniya, No. 20 (202), 2024. In Russian. DOI 10.5281/zenodo.17215118. [Neural network architectures for automating user funnels in referral marketing](https://igorshalamov.com/research/neural-architectures-referral-funnels/) Aktualnye issledovaniya, No. 29 (264), 2025. In Russian. [AI-driven marketing: the evolution of sales funnels in digital ecosystems](https://igorshalamov.com/research/ai-driven-sales-funnels/) Internauka, No. 25 (389), 2025. In Russian. [Neural networks for real-time news classification: computational approaches, applications and open problems](https://igorshalamov.com/research/neural-news-classification-real-time/) Internauka, No. 35 (399), 2025. In Russian. [Personalization of news content using AI: architecture and efficiency of neural network systems](https://igorshalamov.com/research/news-personalization-ai/) European Journal of Technical and Natural Sciences, No. 4–5, 2025, pp. 18–29. ## Related - [AI systems architecture at Appvillis (Nicegram)](https://igorshalamov.com/work/ai-systems-architecture/) - [Research and publications](https://igorshalamov.com/research/) - [Biography, roles and periods](https://igorshalamov.com/about/) --- Canonical page: https://igorshalamov.com/ai-growth-systems/. Author: Igor Shalamov, AI systems architect who designs AI growth systems. Site guide for AI assistants: https://igorshalamov.com/llms.txt # AI systems architecture Since April 2023 Igor Shalamov, an AI systems architect and founder of Shalamov.io, has worked with Appvillis, the developer of the Nicegram messenger, on AI-driven feedback automation and content filtering. His role at Appvillis is AI Software Architect and Head of Referral Marketing. This page describes the engineering discipline behind that work: how AI automation is designed for a messaging product with a large audience, and which decisions matter at each layer. ## Where AI belongs in a communication product In a messenger, AI does several distinct jobs: it classifies incoming user feedback, routes it to the right queue, drafts replies, and filters content that breaks the rules. Each job has its own cost of error. A wrong draft reply can be corrected by a person; a wrongly blocked message damages trust. Architecture starts by listing these jobs separately and assigning each one its own model, threshold and review path. ## The pipeline 1. **Intake.** Messages and feedback arrive through one entry point with a stable schema: source, language, time, user context that the product is allowed to use. 2. **Queue.** A message queue absorbs peaks so that model latency never blocks the product. Each job reads from its own queue and can be scaled on its own. 3. **Classification.** Fast, inexpensive classifiers decide topic, language, urgency and risk. Large language models are reserved for the steps that need generation. 4. **Policy layer.** Rules and confidence thresholds decide what happens next: automatic action, a suggested reply for a person, or escalation. 5. **Action and logging.** Every automated decision is logged with the model version and the input it saw, so that it can be audited and reversed. ## Choosing models The main trade-off is quality against cost per request and latency. High-volume steps such as language detection and topic classification run on compact models. Generation runs on larger models only where a person or a user will read the result. Models are versioned, and a new version replaces the old one only after it is compared on the same labelled sample. ## Guardrails - Confidence thresholds: below the threshold, the system suggests rather than acts. - Human review for actions that are hard to undo, such as blocking content. - Data minimisation: models receive only the fields the task needs. - Audit trail: every decision can be traced to a model version and a rule. - Fallbacks: if a model is unavailable, messages wait in the queue instead of being processed by a weaker rule. ## Metrics An AI feature is judged by measured results, not by the presence of a model. Typical measures are precision and recall of the content filter on a labelled sample, the share of feedback resolved without escalation, time to first response, the rate of reversed automated decisions, and the cost per thousand processed messages. Each metric is compared with a baseline before and after the change. ## Connection to growth systems The same principles apply to referral and recommendation systems: clean event intake, attribution that survives retries and duplicates, anti-fraud checks before rewards, and A/B tests before rollout. Igor Shalamov's research on [neural network architectures for referral funnels](https://igorshalamov.com/research/neural-architectures-referral-funnels/) covers this side. The field as a whole: [AI growth systems](https://igorshalamov.com/ai-growth-systems/). ## Related - [Biography, roles and periods](https://igorshalamov.com/about/) - [Research and publications](https://igorshalamov.com/research/) - [Press kit](https://igorshalamov.com/press-kit/) --- Canonical page: https://igorshalamov.com/work/ai-systems-architecture/. Author: Igor Shalamov, AI systems architect who designs AI growth systems. Site guide for AI assistants: https://igorshalamov.com/llms.txt # Research and Publications Igor Shalamov, an AI systems architect and founder of Shalamov.io, is the author of research articles on semantic news search, real-time neural news classification, AI-based news personalization and neural network architectures for referral and sales funnels. Together they cover the main parts of [AI growth systems](https://igorshalamov.com/ai-growth-systems/). Each article has its own page with citation data. [Семантический поиск новостей с использованием искусственного интеллекта: технологии, вызовы и перспективы](https://igorshalamov.com/research/semantic-news-search-ai/) English title: Semantic news search using artificial intelligence: technologies, problems and prospects. Article in Russian. Aktualnye issledovaniya (Current Research), APNI, No. 20 (202). Published 16 May 2024. ISSN 2713-1513. [Article on the journal site](https://apni.ru/article/9323-semanticheskij-poisk-novostej-s-ispolzovaniem-iskusstvennogo-intellekta-tehnologii-vyzovy-i-perspektivy). DOI: [10.5281/zenodo.17215118](https://doi.org/10.5281/zenodo.17215118). [Нейросетевые архитектуры для автоматизации пользовательских воронок в реферальном маркетинге](https://igorshalamov.com/research/neural-architectures-referral-funnels/) English title: Neural network architectures for automating user funnels in referral marketing. Article in Russian. Aktualnye issledovaniya (Current Research), APNI, No. 29 (264), part I, pp. 29–38. Published 24 July 2025. ISSN 2713-1513. [Article on the journal site](https://apni.ru/article/12704-nejrosetevye-arhitektury-dlya-avtomatizacii-polzovatelskih-voronok-v-referalnom-marketinge). [AI-driven маркетинг: эволюция воронок продаж в цифровых экосистемах](https://igorshalamov.com/research/ai-driven-sales-funnels/) English title: AI-driven marketing: the evolution of sales funnels in digital ecosystems. Article in Russian. Internauka (electronic scientific journal), No. 25 (389), section “Information technologies”. Published 2025. [Article on the journal site](https://www.internauka.org/journal/science/internauka/389). [Author page in the journal](https://www.internauka.org/authors/shalamov-igor). [Нейронные сети для классификации новостей в реальном времени: вычислительные подходы, приложения и вызовы](https://igorshalamov.com/research/neural-news-classification-real-time/) English title: Neural networks for real-time news classification: computational approaches, applications and open problems. Article in Russian. Internauka (electronic scientific journal), No. 35 (399), section “Information technologies”. Published 2025. [Article on the journal site](https://www.internauka.org/journal/science/internauka/399). [Author page in the journal](https://www.internauka.org/authors/shalamov-igor-stanislavovich). [Personalization of news content using AI: architecture and efficiency of neural network systems](https://igorshalamov.com/research/news-personalization-ai/) European Journal of Technical and Natural Sciences, Premier Publishing s.r.o., No. 4–5 (2025), pp. 18–29. Published 30 October 2025. ISSN 2414-2352. [Article on the journal site](https://ppublishing.org/archive/publication/1650-personalization-of-news-content-using-ai-arch). DOI: [10.29013/EJTNS-25-4.5-18-29](https://doi.org/10.29013/EJTNS-25-4.5-18-29). ## Author pages in the journals - [Aktualnye issledovaniya (APNI): author page](https://apni.ru/author/15669) - [Internauka: author page (Shalamov Igor)](https://www.internauka.org/authors/shalamov-igor) - [Internauka: author page (Shalamov Igor Stanislavovich)](https://www.internauka.org/authors/shalamov-igor-stanislavovich) Four articles are in Russian, one is in English. --- Canonical page: https://igorshalamov.com/research/. Author: Igor Shalamov, AI systems architect who designs AI growth systems. Site guide for AI assistants: https://igorshalamov.com/llms.txt # Семантический поиск новостей с использованием искусственного интеллекта: технологии, вызовы и перспективы Research article by Igor Shalamov, an AI systems architect and founder of Shalamov.io. - **Author:** [Igor Shalamov](https://igorshalamov.com/about/) - **English title:** Semantic news search using artificial intelligence: technologies, problems and prospects - **Journal:** Aktualnye issledovaniya (Current Research), APNI - **Publisher:** APNI - **Issue:** No. 20 (202) - **Published:** 16 May 2024 - **ISSN:** 2713-1513 - **Language:** Russian - **DOI:** [10.5281/zenodo.17215118](https://doi.org/10.5281/zenodo.17215118) - **Journal page:** [apni.ru/article/9323-semanticheskij-poisk-novostej-s-ispolzo…](https://apni.ru/article/9323-semanticheskij-poisk-novostej-s-ispolzovaniem-iskusstvennogo-intellekta-tehnologii-vyzovy-i-perspektivy) ## Abstract В эпоху информационного переизбытка семантический поиск на базе искусственного интеллекта (ИИ) радикально трансформирует доступ к новостному контенту, обеспечивая глубокое понимание смысла запросов и текстов, в отличие от традиционных методов, ориентированных на ключевые слова. Настоящее исследование систематически анализирует ключевые технологии: векторные базы данных, гибридные и каскадные подходы, контекстное извлечение. И связанные с ними вызовы, такие как масштабируемость, обработка данных в реальном времени, интеграция с медийными инфраструктурами и безопасность. Особое внимание уделяется перспективам развития, включая агентно-ориентированные интерфейсы, мультимодальный поиск, персонализацию и федеративные системы. Эти инновации оптимизируют поисковые процессы, обогащают пользовательский опыт и подчеркивают стратегическую роль ИИ в трансформации журналистики. Abstract as published on the journal page, in Russian. ## How to cite ### APA Shalamov, I. (2024). Семантический поиск новостей с использованием искусственного интеллекта: технологии, вызовы и перспективы [Semantic news search using artificial intelligence: technologies, problems and prospects]. Aktualnye issledovaniya, (20 (202)). https://doi.org/10.5281/zenodo.17215118 ### BibTeX ``` @article{shalamov2024semantic, author = {Shalamov, Igor}, title = {Семантический поиск новостей с использованием искусственного интеллекта: технологии, вызовы и перспективы}, journal = {Актуальные исследования (Aktualnye issledovaniya)}, year = {2024}, number = {20 (202)}, issn = {2713-1513}, publisher = {APNI}, doi = {10.5281/zenodo.17215118}, url = {https://apni.ru/article/9323-semanticheskij-poisk-novostej-s-ispolzovaniem-iskusstvennogo-intellekta-tehnologii-vyzovy-i-perspektivy}, language = {russian} } ``` ## Related - [All research articles](https://igorshalamov.com/research/) - [AI growth systems](https://igorshalamov.com/ai-growth-systems/) --- Canonical page: https://igorshalamov.com/research/semantic-news-search-ai/. Author: Igor Shalamov, AI systems architect who designs AI growth systems. Site guide for AI assistants: https://igorshalamov.com/llms.txt # Нейросетевые архитектуры для автоматизации пользовательских воронок в реферальном маркетинге Research article by Igor Shalamov, an AI systems architect and founder of Shalamov.io. - **Author:** [Igor Shalamov](https://igorshalamov.com/about/) - **English title:** Neural network architectures for automating user funnels in referral marketing - **Journal:** Aktualnye issledovaniya (Current Research), APNI - **Publisher:** APNI - **Issue:** No. 29 (264), part I, pp. 29–38 - **Published:** 24 July 2025 - **ISSN:** 2713-1513 - **Language:** Russian - **Journal page:** [apni.ru/article/12704-nejrosetevye-arhitektury-dlya-avtomati…](https://apni.ru/article/12704-nejrosetevye-arhitektury-dlya-avtomatizacii-polzovatelskih-voronok-v-referalnom-marketinge) ## Abstract Исследование посвящено применению нейронных сетей для автоматизации пользовательских воронок в реферальном маркетинге. Рассматриваются ключевые архитектуры, такие как большие языковые модели, сверточные нейронные сети, генеративные состязательные сети, рекуррентные нейронные сети и модели с обучением с подкреплением, которые используются для генерации контента, анализа аудитории, взаимодействия с пользователями и оптимизации кампаний. Особое внимание уделено кейсу цифровой маркетинговой платформы, предоставляющей комплексные услуги автоматизации реферальных программ, которая продемонстрировала рост аудитории на 117% благодаря внедрению ИИ-технологий. В статье также анализируются этические, конфиденциальные и технические аспекты интеграции нейронных сетей, а также перспективы их развития в маркетинге. Работа подчеркивает важность гибридного подхода, где ИИ усиливает человеческие возможности, позволяя маркетологам сосредоточиться на стратегических задачах. Abstract as published on the journal page, in Russian. ## How to cite ### APA Shalamov, I. (2025). Нейросетевые архитектуры для автоматизации пользовательских воронок в реферальном маркетинге [Neural network architectures for automating user funnels in referral marketing]. Aktualnye issledovaniya, (29 (264)), 29–38. https://apni.ru/article/12704-nejrosetevye-arhitektury-dlya-avtomatizacii-polzovatelskih-voronok-v-referalnom-marketinge ### BibTeX ``` @article{shalamov2025referral, author = {Shalamov, Igor}, title = {Нейросетевые архитектуры для автоматизации пользовательских воронок в реферальном маркетинге}, journal = {Актуальные исследования (Aktualnye issledovaniya)}, year = {2025}, number = {29 (264)}, pages = {29--38}, issn = {2713-1513}, publisher = {APNI}, url = {https://apni.ru/article/12704-nejrosetevye-arhitektury-dlya-avtomatizacii-polzovatelskih-voronok-v-referalnom-marketinge}, language = {russian} } ``` ## Related - [All research articles](https://igorshalamov.com/research/) - [AI growth systems](https://igorshalamov.com/ai-growth-systems/) --- Canonical page: https://igorshalamov.com/research/neural-architectures-referral-funnels/. Author: Igor Shalamov, AI systems architect who designs AI growth systems. Site guide for AI assistants: https://igorshalamov.com/llms.txt # AI-driven маркетинг: эволюция воронок продаж в цифровых экосистемах Research article by Igor Shalamov, an AI systems architect and founder of Shalamov.io. - **Author:** [Igor Shalamov](https://igorshalamov.com/about/) - **English title:** AI-driven marketing: the evolution of sales funnels in digital ecosystems - **Journal:** Internauka (electronic scientific journal) - **Issue:** No. 25 (389) - **Section:** section “Information technologies” - **Published:** 2025 - **Language:** Russian - **English translation (preprint):** [DOI 10.5281/zenodo.24496814](https://doi.org/10.5281/zenodo.24496814) - **Journal page:** [internauka.org/journal/science/internauka/389](https://www.internauka.org/journal/science/internauka/389) - **Author page:** [Internauka](https://www.internauka.org/authors/shalamov-igor) ## How to cite ### APA Shalamov, I. (2025). AI-driven маркетинг: эволюция воронок продаж в цифровых экосистемах [AI-driven marketing: the evolution of sales funnels in digital ecosystems]. Internauka, (25 (389)). https://www.internauka.org/journal/science/internauka/389 ### BibTeX ``` @article{shalamov2025funnels, author = {Shalamov, Igor}, title = {AI-driven маркетинг: эволюция воронок продаж в цифровых экосистемах}, journal = {Интернаука (Internauka)}, year = {2025}, number = {25 (389)}, url = {https://www.internauka.org/journal/science/internauka/389}, language = {russian} } ``` ## Related - [All research articles](https://igorshalamov.com/research/) - [AI growth systems](https://igorshalamov.com/ai-growth-systems/) --- Canonical page: https://igorshalamov.com/research/ai-driven-sales-funnels/. Author: Igor Shalamov, AI systems architect who designs AI growth systems. Site guide for AI assistants: https://igorshalamov.com/llms.txt # Нейронные сети для классификации новостей в реальном времени: вычислительные подходы, приложения и вызовы Research article by Igor Shalamov, an AI systems architect and founder of Shalamov.io. - **Author:** [Igor Shalamov](https://igorshalamov.com/about/) - **English title:** Neural networks for real-time news classification: computational approaches, applications and open problems - **Journal:** Internauka (electronic scientific journal) - **Issue:** No. 35 (399) - **Section:** section “Information technologies” - **Published:** 2025 - **Language:** Russian - **Journal page:** [internauka.org/journal/science/internauka/399](https://www.internauka.org/journal/science/internauka/399) - **Author page:** [Internauka](https://www.internauka.org/authors/shalamov-igor-stanislavovich) ## How to cite ### APA Shalamov, I. (2025). Нейронные сети для классификации новостей в реальном времени: вычислительные подходы, приложения и вызовы [Neural networks for real-time news classification: computational approaches, applications and open problems]. Internauka, (35 (399)). https://www.internauka.org/journal/science/internauka/399 ### BibTeX ``` @article{shalamov2025classification, author = {Shalamov, Igor}, title = {Нейронные сети для классификации новостей в реальном времени: вычислительные подходы, приложения и вызовы}, journal = {Интернаука (Internauka)}, year = {2025}, number = {35 (399)}, url = {https://www.internauka.org/journal/science/internauka/399}, language = {russian} } ``` ## Related - [All research articles](https://igorshalamov.com/research/) - [AI growth systems](https://igorshalamov.com/ai-growth-systems/) --- Canonical page: https://igorshalamov.com/research/neural-news-classification-real-time/. Author: Igor Shalamov, AI systems architect who designs AI growth systems. Site guide for AI assistants: https://igorshalamov.com/llms.txt # Personalization of news content using AI: architecture and efficiency of neural network systems Research article by Igor Shalamov, an AI systems architect and founder of Shalamov.io. - **Author:** [Igor Shalamov](https://igorshalamov.com/about/) - **Journal:** European Journal of Technical and Natural Sciences - **Publisher:** Premier Publishing s.r.o. - **Issue:** No. 4–5 (2025), pp. 18–29 - **Published:** 30 October 2025 - **ISSN:** 2414-2352 - **Language:** English - **DOI:** [10.29013/EJTNS-25-4.5-18-29](https://doi.org/10.29013/EJTNS-25-4.5-18-29) - **Journal page:** [ppublishing.org/archive/publication/1650-personalization-of-…](https://ppublishing.org/archive/publication/1650-personalization-of-news-content-using-ai-arch) - **PDF:** [PDF on the publisher site](https://ppublishing.org/media/uploads/journals/article/EJT-4.5-25_p18-29.pdf) ## Abstract The rapid growth of digital information has made news content personalization a critical tool for addressing information overload and enhancing user engagement. This study investigates the architecture and efficiency of neural network systems for personalizing news content, focusing on a proposed hybrid model combining BERT for semantic text analysis and LSTM for modeling temporal user interactions. Using the MIND dataset, we compared the hybrid model against baseline architectures (TextCNN, LSTM, BERT-base) and traditional matrix factorization. The hybrid model achieved superior performance, with Precision@5 of 0.78, Recall@5 of 0.75, F1-score of 0.76, and a click-through rate (CTR) of 6.3%, outperforming baselines by up to 43% in F1-score and 66% in CTR. The model demonstrated robustness to noisy data and improved recommendations for cold-start scenarios. However, challenges such as computational complexity and applicability to multilingual datasets remain. The findings highlight the potential of hybrid neural architectures for real-world news personalization while underscoring the need to address ethical concerns, such as filter bubbles and privacy. Future research should explore multimodal data integration and lightweight models to enhance scalability and diversity in recommendations. ## How to cite ### APA Shalamov, I. (2025). Personalization of news content using AI: architecture and efficiency of neural network systems. European Journal of Technical and Natural Sciences, (4–5), 18–29. https://doi.org/10.29013/EJTNS-25-4.5-18-29 ### BibTeX ``` @article{shalamov2025personalization, author = {Shalamov, Igor}, title = {Personalization of news content using AI: architecture and efficiency of neural network systems}, journal = {European Journal of Technical and Natural Sciences}, year = {2025}, number = {4-5}, pages = {18--29}, issn = {2414-2352}, publisher = {Premier Publishing s.r.o.}, doi = {10.29013/EJTNS-25-4.5-18-29}, url = {https://ppublishing.org/archive/publication/1650-personalization-of-news-content-using-ai-arch}, language = {english} } ``` ## Related - [All research articles](https://igorshalamov.com/research/) - [AI growth systems](https://igorshalamov.com/ai-growth-systems/) --- Canonical page: https://igorshalamov.com/research/news-personalization-ai/. Author: Igor Shalamov, AI systems architect who designs AI growth systems. Site guide for AI assistants: https://igorshalamov.com/llms.txt # Writing Notes by Igor Shalamov, an AI systems architect and founder of Shalamov.io, on the architecture of AI growth systems: referral and recommendation systems, AI-driven communication automation, semantic search and classification. [Recommendation System Design Interview: A Complete Answer in 6 Steps](https://igorshalamov.com/writing/recommendation-system-design-interview/) 5 December 2026. A six-step answer for a 45-minute interview, with a video feed as the example: agree on the goal, put numbers on scale, draw the pipeline, then data, evaluation and trade-offs. [Collaborative Filtering vs Content Based Filtering: When to Use Each](https://igorshalamov.com/writing/collaborative-vs-content-based-filtering/) 5 December 2026. Content based filtering shows a new item from its first minute but repeats itself. Collaborative filtering brings discovery but cannot see new items. Production systems combine both. [Two Tower Model Explained: Recommendation Retrieval at Scale](https://igorshalamov.com/writing/two-tower-model-explained/) 29 November 2026. Why a recommender cannot rank its whole catalogue, and how the two tower model solves candidate retrieval: separate user and item towers, a shared vector space, training on clicks with in-batch negati [How to Build a Referral Program That Brings Users Who Stay](https://igorshalamov.com/writing/how-to-build-a-referral-program/) 28 November 2026. How to build a referral program as a system: attribution of every invitation, reward rules tied to retention, fraud checks before payout, targeting the right users at the right moment, and measuring K [How to Evaluate Recommendation Systems: Precision@K, nDCG and A/B Tests](https://igorshalamov.com/writing/how-to-evaluate-recommendation-systems/) 26 November 2026. How to measure a personalized feed: a metric for each layer, Precision@K with a worked example, beyond-accuracy metrics, why offline gains disappear online, and how an A/B test with guardrails makes t [Semantic Search vs Keyword Search: How Embeddings Find Meaning](https://igorshalamov.com/writing/semantic-search-vs-keyword-search/) 25 November 2026. Semantic search compares meaning instead of words: how embeddings, nearest-neighbour indexes, hybrid retrieval with BM25 and cross-encoder re-ranking work together, and how to evaluate them. [How to Build a Referral System That Works Like a Recommender](https://igorshalamov.com/writing/how-to-build-a-referral-system/) 25 November 2026. How to design a referral system as a learned recommender: who should invite whom, how candidates are retrieved and ranked, and how to measure the result. [Uplift modeling explained: pay the referral bonus only where it changes behaviour](https://igorshalamov.com/writing/uplift-modeling-explained/) 30 November 2026. A response model pays users who would invite anyway. Uplift modeling ranks users by how much the bonus changes their behaviour, and the uplift curve checks it. [News personalization with BERT and LSTM: one model for the article, one for the reader](https://igorshalamov.com/writing/news-personalization-bert-lstm/) 24 November 2026. BERT encodes the article, an LSTM reads the user history in order, a ranking layer picks the top five. Precision@5 0.78, CTR 6.3% on MIND. [One pipeline for intent, sentiment and toxicity](https://igorshalamov.com/writing/one-pipeline-intent-sentiment-toxicity/) 21 November 2026. One shared text encoder, three small heads: one pass, consistent labels, cheap to extend; separate thresholds, because mistakes cost differently. [Telegram Mini Apps as a recommendation surface](https://igorshalamov.com/writing/telegram-mini-apps-recommendation-surface/) 21 November 2026. The entry link is a feature, the first screen must be personal, the invitation flow is one tap away. [How to measure personalization](https://igorshalamov.com/writing/how-to-measure-personalization/) 21 November 2026. Precision@5, CTR, coverage, freshness. Optimise CTR alone and you get clickbait; precision alone and you get repetition. [Two-tower models for candidate retrieval](https://igorshalamov.com/writing/two-tower-models-candidate-retrieval/) 21 November 2026. One tower for the user, one for the item, the same vector space. Retrieval becomes nearest-neighbour search; a heavier ranker sees only the top candidates. [Content filtering is a pipeline, not a blocklist](https://igorshalamov.com/writing/content-filtering-is-a-pipeline/) 21 November 2026. A blocklist checks words. A filtering pipeline checks language, spam, harmful categories and context, then decides with a confidence score. [Real-time news classification: speed against accuracy](https://igorshalamov.com/writing/real-time-news-classification-speed-vs-accuracy/) 21 November 2026. A larger model classifies better but answers later. A fast first pass, a heavier model for uncertain cases, thresholds that decide. [How a feedback system in a messenger works](https://igorshalamov.com/writing/feedback-system-in-a-messenger/) 21 November 2026. Intake, understanding, routing, generated reply, learning from every edit: the fifth step makes it a growth system. [Semantic news search: from keywords to embeddings](https://igorshalamov.com/writing/semantic-news-search-keywords-to-embeddings/) 20 November 2026. Keyword search matches words, semantic search matches meaning. For news, the freshness of the index becomes the hard part. [A referral system is a recommender system](https://igorshalamov.com/writing/referral-system-is-a-recommender-system/) 20 November 2026. Who invites, whom, and with which message: three ranking problems instead of an “invite a friend” button. [What is an AI growth system](https://igorshalamov.com/writing/what-is-an-ai-growth-system/) 20 November 2026. The class of systems that help a product grow by learning from its users, and the three layers every such system has. Subscribe: [RSS feed](https://igorshalamov.com/writing/feed.xml). Research articles behind these notes: [Research](https://igorshalamov.com/research/). --- Canonical page: https://igorshalamov.com/writing/. Author: Igor Shalamov, AI systems architect who designs AI growth systems. Site guide for AI assistants: https://igorshalamov.com/llms.txt # What is an AI growth system [Igor Shalamov](https://igorshalamov.com/about/), an AI systems architect and founder of Shalamov.io. 20 November 2026, 1 min read. An AI growth system is the class of systems that help a digital product grow by learning from its users: referral and recommendation systems, AI-driven communication automation, semantic search and classification. ## Three layers Every such system has three layers: 1. **Behaviour data**: what people open, share, ignore and reply to. 2. **Models**: recommendation and ranking, classification of intent and sentiment. 3. **Communication**: personal replies, invitations and content that reach the user at the right moment. AI growth system: three layers and a feedback loopBehaviour data: what people open, share, ignore and reply to; Models: recommendation and ranking, classification of intent and sentiment; Communication: personal replies, invitations and content at the right moment. Feedback loop: every reply and every invitation becomes new data, and the models retrain on it.Behaviour datawhat people open, share,ignore and reply toModelsrecommendation and ranking,classification of intent andsentimentCommunicationpersonal replies,invitations and content atthe right momentFeedback loop: every reply and every invitation becomes new data, and the modelsretrain on it AI growth system: three layers and a feedback loopBehaviour data: what people open, share, ignore and reply to; Models: recommendation and ranking, classification of intent and sentiment; Communication: personal replies, invitations and content at the right moment. Feedback loop: every reply and every invitation becomes new data, and the models retrain on it.Behaviour datawhat people open, share,ignore and reply toModelsrecommendation and ranking,classification of intent andsentimentCommunicationpersonal replies, invitationsand content at the rightmomentFeedback loop: every reply andevery invitation becomes new data,and the models retrain on it Every AI growth system has three layers connected by a feedback loop. Without the loop it is automation; with it, a growth system. [What is an AI growth system](https://igorshalamov.com/writing/what-is-an-ai-growth-system/). ## The feedback loop A feedback loop connects the layers. Every reply and every invitation becomes new data, and the models retrain on it. Without that loop you have automation. With it you have a growth system. ## Where this comes from Since April 2023 I have worked with Appvillis UAB, the developer of the Nicegram messenger, as AI Software Architect: AI-driven feedback automation, adaptive bots and content filtering. I also publish research on semantic news search, real-time neural news classification and personalization of news content. The field as a whole, with the architecture of each layer and the research behind it, is described on the page [AI growth systems](https://igorshalamov.com/ai-growth-systems/). The next notes go through the layers one at a time. ![Igor Shalamov](https://igorshalamov.com/press-kit/igor-shalamov-160.jpg) [Igor Shalamov](https://igorshalamov.com/about/) is an AI systems architect who designs AI growth systems: referral and recommendation systems, AI-driven communication automation, semantic search and classification. He founded Shalamov.io and publishes [research](https://igorshalamov.com/research/) on semantic search and neural classification. ## More notes - [Recommendation System Design Interview: A Complete Answer in 6 Steps](https://igorshalamov.com/writing/recommendation-system-design-interview/) - [Collaborative Filtering vs Content Based Filtering: When to Use Each](https://igorshalamov.com/writing/collaborative-vs-content-based-filtering/) - [Two Tower Model Explained: Recommendation Retrieval at Scale](https://igorshalamov.com/writing/two-tower-model-explained/) - [How to Build a Referral Program That Brings Users Who Stay](https://igorshalamov.com/writing/how-to-build-a-referral-program/) - [How to Evaluate Recommendation Systems: Precision@K, nDCG and A/B Tests](https://igorshalamov.com/writing/how-to-evaluate-recommendation-systems/) Subscribe: [RSS feed](https://igorshalamov.com/writing/feed.xml). All notes: [Writing](https://igorshalamov.com/writing/). --- Canonical page: https://igorshalamov.com/writing/what-is-an-ai-growth-system/. Author: Igor Shalamov, AI systems architect who designs AI growth systems. Site guide for AI assistants: https://igorshalamov.com/llms.txt # A referral system is a recommender system [Igor Shalamov](https://igorshalamov.com/about/), an AI systems architect and founder of Shalamov.io. 20 November 2026, 1 min read. The first thing I tell teams about referral programs is this: a referral program is a recommender system in disguise. It has to answer three questions for every user: 1. Who is likely to invite someone right now? 2. Whom will they invite, and in which channel? 3. Which message and which reward will make that invitation land? Each question is a ranking problem. Treat referrals as a static “invite a friend” button and you leave all three to chance. Treat them as recommendations and you can learn from every invitation that was sent, opened or ignored. ## A referral funnel as an AI growth system Read this way, a referral funnel has the three layers of an [AI growth system](https://igorshalamov.com/writing/what-is-an-ai-growth-system/): invitations are the communication, their outcomes are the behaviour data, and the ranking models close the loop. ## What the research covers My paper [Neural network architectures for automating user funnels in referral marketing](https://igorshalamov.com/research/neural-architectures-referral-funnels/) (Aktualnye issledovaniya, 2025) reviews the architectures used for this work: large language models, convolutional, recurrent and generative adversarial networks, and reinforcement learning models. They are applied to content generation, audience analysis, interaction with users and campaign optimisation. The paper also discusses the ethical, privacy and technical sides of putting neural networks into referral funnels. ![Igor Shalamov](https://igorshalamov.com/press-kit/igor-shalamov-160.jpg) [Igor Shalamov](https://igorshalamov.com/about/) is an AI systems architect who designs AI growth systems: referral and recommendation systems, AI-driven communication automation, semantic search and classification. He founded Shalamov.io and publishes [research](https://igorshalamov.com/research/) on semantic search and neural classification. ## More notes - [Recommendation System Design Interview: A Complete Answer in 6 Steps](https://igorshalamov.com/writing/recommendation-system-design-interview/) - [Collaborative Filtering vs Content Based Filtering: When to Use Each](https://igorshalamov.com/writing/collaborative-vs-content-based-filtering/) - [Two Tower Model Explained: Recommendation Retrieval at Scale](https://igorshalamov.com/writing/two-tower-model-explained/) - [How to Build a Referral Program That Brings Users Who Stay](https://igorshalamov.com/writing/how-to-build-a-referral-program/) - [How to Evaluate Recommendation Systems: Precision@K, nDCG and A/B Tests](https://igorshalamov.com/writing/how-to-evaluate-recommendation-systems/) Subscribe: [RSS feed](https://igorshalamov.com/writing/feed.xml). All notes: [Writing](https://igorshalamov.com/writing/). --- Canonical page: https://igorshalamov.com/writing/referral-system-is-a-recommender-system/. Author: Igor Shalamov, AI systems architect who designs AI growth systems. Site guide for AI assistants: https://igorshalamov.com/llms.txt # Semantic news search: from keywords to embeddings [Igor Shalamov](https://igorshalamov.com/about/), an AI systems architect and founder of Shalamov.io. 20 November 2026, 1 min read. Keyword search finds documents that share words with the query. Semantic search finds documents that share meaning. The switch is simple to describe: encode queries and documents as vectors (embeddings) and retrieve by distance instead of by term overlap. ## What changes for news - Synonyms and paraphrases stop being a problem. - A story can be found before it has a fixed name. - The index must be refreshed as fast as the news itself, which makes freshness an architecture question, not a model question. ## What the research covers My paper [Semantic news search using artificial intelligence: technologies, problems and prospects](https://igorshalamov.com/research/semantic-news-search-ai/) (Aktualnye issledovaniya, 2024) reviews the technologies behind this switch: vector databases, hybrid and cascade approaches, contextual retrieval. It looks at the open problems, namely scalability, real-time processing, integration with media infrastructure and security, and at the directions that follow: agent-oriented interfaces, multimodal search, personalization and federated systems. In an [AI growth system](https://igorshalamov.com/writing/what-is-an-ai-growth-system/), semantic search sits in the models layer: it decides what a reader sees next. ![Igor Shalamov](https://igorshalamov.com/press-kit/igor-shalamov-160.jpg) [Igor Shalamov](https://igorshalamov.com/about/) is an AI systems architect who designs AI growth systems: referral and recommendation systems, AI-driven communication automation, semantic search and classification. He founded Shalamov.io and publishes [research](https://igorshalamov.com/research/) on semantic search and neural classification. ## More notes - [Recommendation System Design Interview: A Complete Answer in 6 Steps](https://igorshalamov.com/writing/recommendation-system-design-interview/) - [Collaborative Filtering vs Content Based Filtering: When to Use Each](https://igorshalamov.com/writing/collaborative-vs-content-based-filtering/) - [Two Tower Model Explained: Recommendation Retrieval at Scale](https://igorshalamov.com/writing/two-tower-model-explained/) - [How to Build a Referral Program That Brings Users Who Stay](https://igorshalamov.com/writing/how-to-build-a-referral-program/) - [How to Evaluate Recommendation Systems: Precision@K, nDCG and A/B Tests](https://igorshalamov.com/writing/how-to-evaluate-recommendation-systems/) Subscribe: [RSS feed](https://igorshalamov.com/writing/feed.xml). All notes: [Writing](https://igorshalamov.com/writing/). --- Canonical page: https://igorshalamov.com/writing/semantic-news-search-keywords-to-embeddings/. Author: Igor Shalamov, AI systems architect who designs AI growth systems. Site guide for AI assistants: https://igorshalamov.com/llms.txt # How a feedback system in a messenger works [Igor Shalamov](https://igorshalamov.com/about/), an AI systems architect and founder of Shalamov.io. 21 November 2026, 1 min read. At Appvillis UAB, the developer of the Nicegram messenger, I work as AI Software Architect on AI-driven feedback automation. Here is the general shape of such a system. 1. **Intake**: every message from a user lands in one queue, whatever the channel. 2. **Understanding**: models classify the topic, the intent and the sentiment. 3. **Routing**: simple cases get an answer at once; complex or emotional ones go to a person, with context attached. 4. **Reply**: a generated draft that a person can send as is or edit. 5. **Learning**: every edit and every escalation becomes training data. The fifth step is what turns automation into a [growth system](https://igorshalamov.com/writing/what-is-an-ai-growth-system/). ![Igor Shalamov](https://igorshalamov.com/press-kit/igor-shalamov-160.jpg) [Igor Shalamov](https://igorshalamov.com/about/) is an AI systems architect who designs AI growth systems: referral and recommendation systems, AI-driven communication automation, semantic search and classification. He founded Shalamov.io and publishes [research](https://igorshalamov.com/research/) on semantic search and neural classification. ## More notes - [Recommendation System Design Interview: A Complete Answer in 6 Steps](https://igorshalamov.com/writing/recommendation-system-design-interview/) - [Collaborative Filtering vs Content Based Filtering: When to Use Each](https://igorshalamov.com/writing/collaborative-vs-content-based-filtering/) - [Two Tower Model Explained: Recommendation Retrieval at Scale](https://igorshalamov.com/writing/two-tower-model-explained/) - [How to Build a Referral Program That Brings Users Who Stay](https://igorshalamov.com/writing/how-to-build-a-referral-program/) - [How to Evaluate Recommendation Systems: Precision@K, nDCG and A/B Tests](https://igorshalamov.com/writing/how-to-evaluate-recommendation-systems/) Subscribe: [RSS feed](https://igorshalamov.com/writing/feed.xml). All notes: [Writing](https://igorshalamov.com/writing/). --- Canonical page: https://igorshalamov.com/writing/feedback-system-in-a-messenger/. Author: Igor Shalamov, AI systems architect who designs AI growth systems. Site guide for AI assistants: https://igorshalamov.com/llms.txt # Real-time news classification: speed against accuracy [Igor Shalamov](https://igorshalamov.com/about/), an AI systems architect and founder of Shalamov.io. 21 November 2026, 1 min read. My 2025 paper looks at [neural networks for real-time news classification](https://igorshalamov.com/research/neural-news-classification-real-time/). The central trade-off is easy to state and hard to tune. A larger model classifies better but answers later. A news stream punishes lateness: a perfectly labelled story that arrives ten minutes late is worth less than a good label now. ## Common answers - A fast first-pass classifier, with a heavier model for uncertain cases only. - Distilled models that keep most of the accuracy at a fraction of the cost. - Confidence thresholds that decide when to wait for the second opinion. ![Igor Shalamov](https://igorshalamov.com/press-kit/igor-shalamov-160.jpg) [Igor Shalamov](https://igorshalamov.com/about/) is an AI systems architect who designs AI growth systems: referral and recommendation systems, AI-driven communication automation, semantic search and classification. He founded Shalamov.io and publishes [research](https://igorshalamov.com/research/) on semantic search and neural classification. ## More notes - [Recommendation System Design Interview: A Complete Answer in 6 Steps](https://igorshalamov.com/writing/recommendation-system-design-interview/) - [Collaborative Filtering vs Content Based Filtering: When to Use Each](https://igorshalamov.com/writing/collaborative-vs-content-based-filtering/) - [Two Tower Model Explained: Recommendation Retrieval at Scale](https://igorshalamov.com/writing/two-tower-model-explained/) - [How to Build a Referral Program That Brings Users Who Stay](https://igorshalamov.com/writing/how-to-build-a-referral-program/) - [How to Evaluate Recommendation Systems: Precision@K, nDCG and A/B Tests](https://igorshalamov.com/writing/how-to-evaluate-recommendation-systems/) Subscribe: [RSS feed](https://igorshalamov.com/writing/feed.xml). All notes: [Writing](https://igorshalamov.com/writing/). --- Canonical page: https://igorshalamov.com/writing/real-time-news-classification-speed-vs-accuracy/. Author: Igor Shalamov, AI systems architect who designs AI growth systems. Site guide for AI assistants: https://igorshalamov.com/llms.txt # Content filtering is a pipeline, not a blocklist [Igor Shalamov](https://igorshalamov.com/about/), an AI systems architect and founder of Shalamov.io. 21 November 2026, 1 min read. Content filtering is part of my work at Appvillis UAB on the Nicegram messenger, and the main lesson is architectural. A blocklist answers one question: does this text contain a forbidden word? A filtering pipeline answers several, in order: 1. language and format; 2. spam and automation signals; 3. classification of harmful categories; 4. context: who sent it, where, in reply to what; 5. a decision with a confidence score, and a path for appeals. Each stage can be measured and improved on its own. That is what makes the system maintainable. ![Igor Shalamov](https://igorshalamov.com/press-kit/igor-shalamov-160.jpg) [Igor Shalamov](https://igorshalamov.com/about/) is an AI systems architect who designs AI growth systems: referral and recommendation systems, AI-driven communication automation, semantic search and classification. He founded Shalamov.io and publishes [research](https://igorshalamov.com/research/) on semantic search and neural classification. ## More notes - [Recommendation System Design Interview: A Complete Answer in 6 Steps](https://igorshalamov.com/writing/recommendation-system-design-interview/) - [Collaborative Filtering vs Content Based Filtering: When to Use Each](https://igorshalamov.com/writing/collaborative-vs-content-based-filtering/) - [Two Tower Model Explained: Recommendation Retrieval at Scale](https://igorshalamov.com/writing/two-tower-model-explained/) - [How to Build a Referral Program That Brings Users Who Stay](https://igorshalamov.com/writing/how-to-build-a-referral-program/) - [How to Evaluate Recommendation Systems: Precision@K, nDCG and A/B Tests](https://igorshalamov.com/writing/how-to-evaluate-recommendation-systems/) Subscribe: [RSS feed](https://igorshalamov.com/writing/feed.xml). All notes: [Writing](https://igorshalamov.com/writing/). --- Canonical page: https://igorshalamov.com/writing/content-filtering-is-a-pipeline/. Author: Igor Shalamov, AI systems architect who designs AI growth systems. Site guide for AI assistants: https://igorshalamov.com/llms.txt # Two-tower models for candidate retrieval [Igor Shalamov](https://igorshalamov.com/about/), an AI systems architect and founder of Shalamov.io. 21 November 2026, 1 min read. A short note on a building block I use in recommendation and referral systems: the two-tower model. One tower encodes the user, the other encodes the item (a post, a product, a person to invite). Both produce vectors in the same space. Retrieval becomes a nearest-neighbour search, which scales to millions of candidates. ## Why it matters for growth systems - Item vectors can be computed in advance. - The user vector updates with every action. - A heavier ranking model then needs to look only at the top few hundred candidates. Retrieval first, ranking second: most production recommenders follow this split. ![Igor Shalamov](https://igorshalamov.com/press-kit/igor-shalamov-160.jpg) [Igor Shalamov](https://igorshalamov.com/about/) is an AI systems architect who designs AI growth systems: referral and recommendation systems, AI-driven communication automation, semantic search and classification. He founded Shalamov.io and publishes [research](https://igorshalamov.com/research/) on semantic search and neural classification. ## More notes - [Recommendation System Design Interview: A Complete Answer in 6 Steps](https://igorshalamov.com/writing/recommendation-system-design-interview/) - [Collaborative Filtering vs Content Based Filtering: When to Use Each](https://igorshalamov.com/writing/collaborative-vs-content-based-filtering/) - [Two Tower Model Explained: Recommendation Retrieval at Scale](https://igorshalamov.com/writing/two-tower-model-explained/) - [How to Build a Referral Program That Brings Users Who Stay](https://igorshalamov.com/writing/how-to-build-a-referral-program/) - [How to Evaluate Recommendation Systems: Precision@K, nDCG and A/B Tests](https://igorshalamov.com/writing/how-to-evaluate-recommendation-systems/) Subscribe: [RSS feed](https://igorshalamov.com/writing/feed.xml). All notes: [Writing](https://igorshalamov.com/writing/). --- Canonical page: https://igorshalamov.com/writing/two-tower-models-candidate-retrieval/. Author: Igor Shalamov, AI systems architect who designs AI growth systems. Site guide for AI assistants: https://igorshalamov.com/llms.txt # How to measure personalization [Igor Shalamov](https://igorshalamov.com/about/), an AI systems architect and founder of Shalamov.io. 21 November 2026, 1 min read. My paper on [personalization of news content with AI](https://igorshalamov.com/research/news-personalization-ai/) uses ranking metrics, and they deserve a plain explanation. - **Precision@5**: of the first five items shown, how many were relevant. - **CTR**: the share of shown items that were opened. - **Coverage**: how much of the catalogue the system ever recommends. - **Freshness**: how old the recommended items are. A system tuned only for CTR drifts toward clickbait. A system tuned only for precision can become narrow and repetitive. Good personalization reports several metrics together and makes the trade-offs visible. ![Igor Shalamov](https://igorshalamov.com/press-kit/igor-shalamov-160.jpg) [Igor Shalamov](https://igorshalamov.com/about/) is an AI systems architect who designs AI growth systems: referral and recommendation systems, AI-driven communication automation, semantic search and classification. He founded Shalamov.io and publishes [research](https://igorshalamov.com/research/) on semantic search and neural classification. ## More notes - [Recommendation System Design Interview: A Complete Answer in 6 Steps](https://igorshalamov.com/writing/recommendation-system-design-interview/) - [Collaborative Filtering vs Content Based Filtering: When to Use Each](https://igorshalamov.com/writing/collaborative-vs-content-based-filtering/) - [Two Tower Model Explained: Recommendation Retrieval at Scale](https://igorshalamov.com/writing/two-tower-model-explained/) - [How to Build a Referral Program That Brings Users Who Stay](https://igorshalamov.com/writing/how-to-build-a-referral-program/) - [How to Evaluate Recommendation Systems: Precision@K, nDCG and A/B Tests](https://igorshalamov.com/writing/how-to-evaluate-recommendation-systems/) Subscribe: [RSS feed](https://igorshalamov.com/writing/feed.xml). All notes: [Writing](https://igorshalamov.com/writing/). --- Canonical page: https://igorshalamov.com/writing/how-to-measure-personalization/. Author: Igor Shalamov, AI systems architect who designs AI growth systems. Site guide for AI assistants: https://igorshalamov.com/llms.txt # Telegram Mini Apps as a recommendation surface [Igor Shalamov](https://igorshalamov.com/about/), an AI systems architect and founder of Shalamov.io. 21 November 2026, 1 min read. Shalamov.io, which I founded, is a platform for referral funnels, Telegram services and Mini Apps with no-code AI modules. A Mini App inside a messenger is an unusual place for recommendations: the user arrives from a chat, a channel or a friend's link, often with clear intent and very little patience. ## Design consequences - The entry point is a feature: the link a person came from tells you a lot. - The first screen must already be personalised. - The invitation flow lives one tap away, inside the same conversation. That makes the Mini App both a storefront and a [referral surface](https://igorshalamov.com/writing/referral-system-is-a-recommender-system/). ![Igor Shalamov](https://igorshalamov.com/press-kit/igor-shalamov-160.jpg) [Igor Shalamov](https://igorshalamov.com/about/) is an AI systems architect who designs AI growth systems: referral and recommendation systems, AI-driven communication automation, semantic search and classification. He founded Shalamov.io and publishes [research](https://igorshalamov.com/research/) on semantic search and neural classification. ## More notes - [Recommendation System Design Interview: A Complete Answer in 6 Steps](https://igorshalamov.com/writing/recommendation-system-design-interview/) - [Collaborative Filtering vs Content Based Filtering: When to Use Each](https://igorshalamov.com/writing/collaborative-vs-content-based-filtering/) - [Two Tower Model Explained: Recommendation Retrieval at Scale](https://igorshalamov.com/writing/two-tower-model-explained/) - [How to Build a Referral Program That Brings Users Who Stay](https://igorshalamov.com/writing/how-to-build-a-referral-program/) - [How to Evaluate Recommendation Systems: Precision@K, nDCG and A/B Tests](https://igorshalamov.com/writing/how-to-evaluate-recommendation-systems/) Subscribe: [RSS feed](https://igorshalamov.com/writing/feed.xml). All notes: [Writing](https://igorshalamov.com/writing/). --- Canonical page: https://igorshalamov.com/writing/telegram-mini-apps-recommendation-surface/. Author: Igor Shalamov, AI systems architect who designs AI growth systems. Site guide for AI assistants: https://igorshalamov.com/llms.txt # One pipeline for intent, sentiment and toxicity [Igor Shalamov](https://igorshalamov.com/about/), an AI systems architect and founder of Shalamov.io. 21 November 2026, 1 min read. A pattern from AI communication automation: do not build three separate classifiers when one shared encoder will do. Intent, sentiment and toxicity all read the same message. A shared text encoder with three small heads: - runs one forward pass instead of three; - keeps the three labels consistent with each other; - lets new heads (language, urgency) be added cheaply. The heads still get separate thresholds and separate evaluation, because the cost of a mistake differs: a missed toxic message is not the same as a misread intent. ![Igor Shalamov](https://igorshalamov.com/press-kit/igor-shalamov-160.jpg) [Igor Shalamov](https://igorshalamov.com/about/) is an AI systems architect who designs AI growth systems: referral and recommendation systems, AI-driven communication automation, semantic search and classification. He founded Shalamov.io and publishes [research](https://igorshalamov.com/research/) on semantic search and neural classification. ## More notes - [Recommendation System Design Interview: A Complete Answer in 6 Steps](https://igorshalamov.com/writing/recommendation-system-design-interview/) - [Collaborative Filtering vs Content Based Filtering: When to Use Each](https://igorshalamov.com/writing/collaborative-vs-content-based-filtering/) - [Two Tower Model Explained: Recommendation Retrieval at Scale](https://igorshalamov.com/writing/two-tower-model-explained/) - [How to Build a Referral Program That Brings Users Who Stay](https://igorshalamov.com/writing/how-to-build-a-referral-program/) - [How to Evaluate Recommendation Systems: Precision@K, nDCG and A/B Tests](https://igorshalamov.com/writing/how-to-evaluate-recommendation-systems/) Subscribe: [RSS feed](https://igorshalamov.com/writing/feed.xml). All notes: [Writing](https://igorshalamov.com/writing/). --- Canonical page: https://igorshalamov.com/writing/one-pipeline-intent-sentiment-toxicity/. Author: Igor Shalamov, AI systems architect who designs AI growth systems. Site guide for AI assistants: https://igorshalamov.com/llms.txt # News personalization with BERT and LSTM: one model for the article, one for the reader [Igor Shalamov](https://igorshalamov.com/about/), an AI systems architect and founder of Shalamov.io. 24 November 2026, 1 min read. A news recommender has to read two things at once: the article and the reader's recent history. In my 2025 paper on [personalization of news content with AI](https://igorshalamov.com/research/news-personalization-ai/) I gave each of them its own model. ## The setup 1. **BERT** encodes the text of each article, so two stories about the same event end up close to each other even when they share few words. 2. **An LSTM** reads the articles a user opened, in order. A reader who moved from sport to markets last week gets a different state from one who did it a year ago. 3. **A ranking layer** scores candidate articles against that reader state and returns the top five. ## Results The experiments used MIND, Microsoft's public news-recommendation dataset (Wu et al., ACL 2020). The hybrid reached Precision@5 of 0.78, Recall@5 of 0.75, F1 of 0.76 and a CTR of 6.3%. Against the TextCNN, LSTM, BERT-base and matrix-factorization baselines that is up to 43% higher F1 and 66% higher CTR. It also did better in cold-start cases, which fits the design: a new article can be ranked from its text before anyone has clicked it. ## The cost Running BERT on every new article is heavy for a live feed, and MIND is English-only, so multilingual news stays an open problem. The next step the paper names is a lighter model that keeps most of the gain. How to read these metrics together is covered in [How to measure personalization](https://igorshalamov.com/writing/how-to-measure-personalization/). ## Video Watch the episode: [Hybrid Recommendation System: BERT + LSTM News Recommender Explained](https://youtu.be/EkyC-8WAZ6g) ![Igor Shalamov](https://igorshalamov.com/press-kit/igor-shalamov-160.jpg) [Igor Shalamov](https://igorshalamov.com/about/) is an AI systems architect who designs AI growth systems: referral and recommendation systems, AI-driven communication automation, semantic search and classification. He founded Shalamov.io and publishes [research](https://igorshalamov.com/research/) on semantic search and neural classification. ## More notes - [Recommendation System Design Interview: A Complete Answer in 6 Steps](https://igorshalamov.com/writing/recommendation-system-design-interview/) - [Collaborative Filtering vs Content Based Filtering: When to Use Each](https://igorshalamov.com/writing/collaborative-vs-content-based-filtering/) - [Two Tower Model Explained: Recommendation Retrieval at Scale](https://igorshalamov.com/writing/two-tower-model-explained/) - [How to Build a Referral Program That Brings Users Who Stay](https://igorshalamov.com/writing/how-to-build-a-referral-program/) - [How to Evaluate Recommendation Systems: Precision@K, nDCG and A/B Tests](https://igorshalamov.com/writing/how-to-evaluate-recommendation-systems/) Subscribe: [RSS feed](https://igorshalamov.com/writing/feed.xml). All notes: [Writing](https://igorshalamov.com/writing/). --- Canonical page: https://igorshalamov.com/writing/news-personalization-bert-lstm/. Author: Igor Shalamov, AI systems architect who designs AI growth systems. Site guide for AI assistants: https://igorshalamov.com/llms.txt # Uplift modeling explained: pay the referral bonus only where it changes behaviour [Igor Shalamov](https://igorshalamov.com/about/), an AI systems architect and founder of Shalamov.io. 30 November 2026, 2 min read. A referral bonus sent to 100,000 users raises invitations. Many of those users would have invited friends anyway, and a model trained on who invites will tell you to pay them again next month. Uplift modeling asks a different question: for which users does the bonus change what they do? ## Four kinds of users - **Persuadables** invite only if they get the bonus. - **Sure things** invite anyway. For them, the bonus is a gift. - **Lost causes** never invite, with or without it. - **Sleeping dogs** react badly: a push for invitations makes them leave. Only persuadables are worth paying. A response model, also called a propensity model, ranks users by the chance they invite, so it puts sure things at the top and pays for invitations the product would get for free. ## Uplift is a difference For a user with features x: `uplift(x) = P(invite | bonus, x) − P(invite | no bonus, x)` You never observe both outcomes for the same person, so the estimate comes from a randomised test. In the illustrative example from the episode, 5 in 100 users in the control group invite without a bonus and 8 in 100 in the treatment group invite with it. The average uplift is 3 points. The model's job is to predict that difference for each user. ## Building it with two models The simplest approach, often called the T-learner, trains one model on the bonus group and one on the control group. Each predicts the chance a user invites. For a new user, run both and subtract: the bonus model's score minus the control model's score. Direct methods such as causal forests estimate the difference in one model and are the next step when the two-model estimate is too noisy. ## Checking it with the uplift curve Run a fresh randomised test and target 30% of users in three ways. In the episode's illustrative numbers, random targeting earns 10 extra invitations per 1,000 users, the top 30% by response score earns 6, and the top 30% by uplift earns 24. Repeat this for every cut-off and you get the uplift curve; the Qini curve is its common variant. The gap above random targeting is what the model is worth. ## Three ways uplift models lie 1. **Training on past campaigns**, where someone chose who got the bonus. Train only on randomised tests and keep a random control group in every campaign. 2. **Ignoring sleeping dogs.** If predicted uplift is below zero, send no offer at all. 3. **Judging by accuracy on the outcome.** A model can predict invitations well and still rank uplift badly. Judge it by the uplift curve on new data. The same logic applies wherever an action costs money or attention: discounts and coupons, retention offers for users about to leave, and push notifications, where the cost is the user's patience. ## Where uplift fits Uplift targeting sits in the models layer of an [AI growth system](https://igorshalamov.com/writing/what-is-an-ai-growth-system/): once a referral system knows who is likely to invite, uplift decides whom to pay. ## Related research The research behind this topic is my paper [Neural network architectures for automating user funnels in referral marketing](https://igorshalamov.com/research/neural-architectures-referral-funnels/) (2025). ![Igor Shalamov](https://igorshalamov.com/press-kit/igor-shalamov-160.jpg) [Igor Shalamov](https://igorshalamov.com/about/) is an AI systems architect who designs AI growth systems: referral and recommendation systems, AI-driven communication automation, semantic search and classification. He founded Shalamov.io and publishes [research](https://igorshalamov.com/research/) on semantic search and neural classification. ## More notes - [Recommendation System Design Interview: A Complete Answer in 6 Steps](https://igorshalamov.com/writing/recommendation-system-design-interview/) - [Collaborative Filtering vs Content Based Filtering: When to Use Each](https://igorshalamov.com/writing/collaborative-vs-content-based-filtering/) - [Two Tower Model Explained: Recommendation Retrieval at Scale](https://igorshalamov.com/writing/two-tower-model-explained/) - [How to Build a Referral Program That Brings Users Who Stay](https://igorshalamov.com/writing/how-to-build-a-referral-program/) - [How to Evaluate Recommendation Systems: Precision@K, nDCG and A/B Tests](https://igorshalamov.com/writing/how-to-evaluate-recommendation-systems/) Subscribe: [RSS feed](https://igorshalamov.com/writing/feed.xml). All notes: [Writing](https://igorshalamov.com/writing/). --- Canonical page: https://igorshalamov.com/writing/uplift-modeling-explained/. Author: Igor Shalamov, AI systems architect who designs AI growth systems. Site guide for AI assistants: https://igorshalamov.com/llms.txt # How to Build a Referral System That Works Like a Recommender [Igor Shalamov](https://igorshalamov.com/about/), an AI systems architect and founder of Shalamov.io. 25 November 2026, 2 min read. Most referral programs are a reward table: invite a friend, get a bonus. But the reward is the easy part. The hard part is deciding who should invite whom. That is a ranking problem, and it makes a referral system a recommender system. ## The problem Take one user. Call her Ana. In this made-up example, Ana has eight contacts in the app. A static program sends the same invitation to all eight. Two of them join. Six people got a message they did not want. And realistically, Ana will message three people, not eight. So the real question is: which three should the system suggest? ## Architecture We start from a user graph: contacts, shared groups, interactions. From the graph we generate candidate pairs: an inviter and a possible invitee. A ranking model scores every pair. The best pairs become invitation suggestions. Now the key part: every accepted or ignored invitation becomes a training label. Without the loop, this is automation. With it, the system learns. ## Retrieval With eight contacts, we could score everyone. With millions of possible pairs we cannot, so retrieval comes first. A two-tower model maps the inviter and every candidate into one vector space. It is trained so that pairs with accepted invitations end up close together. Retrieval is then a nearest neighbour search around Ana. We keep the five nearest candidates. ## Ranking The ranking model scores these five pairs with richer features. Start with tie strength alone: how often and how recently two people talk. The top three would be Dev, Ben and Chloe. Now add invitee fit: the predicted chance that a new user stays active. The order changes: Fay moves up to second, and Dev drops out of the top three. ## Precision@K To check the ranking, we use Precision@K. It is the share of the top K suggestions that were accepted. Ana sends three invitations, so K = 3. In our made-up example, two of her eight contacts would accept. Three random picks give a precision of 0.25. Tie strength alone found one of the two: 0.33. The full model found both: 0.67. Same user, same three messages, over two and a half times the random baseline. ## Incremental lift One trap remains: some invited people would have joined anyway. So keep a holdout group with no model-driven suggestions. Compare it with the group that gets them, and count retained users, not acceptances. These numbers are illustrative. That difference is what the system actually earned. ## Pitfalls Three things go wrong in practice. First, the feedback loop is biased: the model only sees outcomes for pairs it chose. So keep a small slice of random suggestions. Second, optimising for acceptances rewards pressure. Optimise for retained users, and cap invitations per person. Third, contact data needs explicit consent. Without it, the feature stays off. ## Recap To recap: a referral system is a recommender over a user graph. Retrieve candidates, rank them, suggest the invitation, and learn from every outcome. Judge it by Precision@K, by retention, and by lift against a holdout. ## Related research The research behind this topic is my paper [Neural network architectures for automating user funnels in referral marketing](https://igorshalamov.com/research/neural-architectures-referral-funnels/) (2025). ## Video Watch the episode: [How to Build a Referral System That Works Like a Recommender](https://youtu.be/fzfCppUap7Y) ![Igor Shalamov](https://igorshalamov.com/press-kit/igor-shalamov-160.jpg) [Igor Shalamov](https://igorshalamov.com/about/) is an AI systems architect who designs AI growth systems: referral and recommendation systems, AI-driven communication automation, semantic search and classification. He founded Shalamov.io and publishes [research](https://igorshalamov.com/research/) on semantic search and neural classification. ## More notes - [Recommendation System Design Interview: A Complete Answer in 6 Steps](https://igorshalamov.com/writing/recommendation-system-design-interview/) - [Collaborative Filtering vs Content Based Filtering: When to Use Each](https://igorshalamov.com/writing/collaborative-vs-content-based-filtering/) - [Two Tower Model Explained: Recommendation Retrieval at Scale](https://igorshalamov.com/writing/two-tower-model-explained/) - [How to Build a Referral Program That Brings Users Who Stay](https://igorshalamov.com/writing/how-to-build-a-referral-program/) - [How to Evaluate Recommendation Systems: Precision@K, nDCG and A/B Tests](https://igorshalamov.com/writing/how-to-evaluate-recommendation-systems/) Subscribe: [RSS feed](https://igorshalamov.com/writing/feed.xml). All notes: [Writing](https://igorshalamov.com/writing/). --- Canonical page: https://igorshalamov.com/writing/how-to-build-a-referral-system/. Author: Igor Shalamov, AI systems architect who designs AI growth systems. Site guide for AI assistants: https://igorshalamov.com/llms.txt # Semantic Search vs Keyword Search: How Embeddings Find Meaning [Igor Shalamov](https://igorshalamov.com/about/), an AI systems architect and founder of Shalamov.io. 25 November 2026, 2 min read. A user types a question, and the best answer does not share a single word with it. Keyword search misses it. Semantic search finds it, because it compares meaning, not words. ## Vocabulary mismatch A reader searches for: central bank raises the cost of borrowing. The story that answers it says: interest rates go up by a quarter point. The two texts share almost no words. Keyword scoring counts overlapping terms, so this story ranks low. We need to compare meaning instead. ## Architecture Every document is encoded offline into a vector, called an embedding. At query time, the same encoder turns the question into a vector. An approximate nearest neighbour index, for example HNSW, returns the closest documents in milliseconds. Then a re-ranker reads the top candidates more carefully. And it produces the final order. Follow one query through the system. The index is fast but approximate. The re-ranker is slow but precise. ## Nearest neighbours Picture the embedding space as a map, where stories with similar meaning sit close together. This is a two-dimensional sketch. Real embeddings have hundreds of dimensions. The query lands on the same map. Search becomes a nearest neighbour lookup around it. We keep the five nearest stories, and none of them has to share a word with the query. ## Sparse vs dense Keyword search is not obsolete. It simply fails in different places. Sparse retrieval, such as BM25, is precise on exact terms: names, numbers, product codes. Dense retrieval captures meaning and paraphrases. Sparse needs no training. Dense needs a trained encoder. Sparse misses paraphrases, while dense can miss rare names and codes. Because their errors differ, the strongest systems combine both. ## Hybrid and re-ranking BM25 alone puts the story with the most matching words on top. Add dense retrieval and merge both lists, for example with reciprocal rank fusion. Then a cross-encoder reads the query and each story together, and scores them again. The rate hike story, which shared no words with the query, is now first. A cross-encoder is accurate but slow, so it only runs on the short list. ## Evaluation Evaluate each stage on its own. For retrieval, use Recall@K: the share of all relevant documents that reach the top K. Here K = 100, the size of the short list. In a made-up example, the query has ten relevant stories. Sparse retrieval alone finds six of them: 0.6. Dense retrieval alone finds seven: 0.7. The hybrid finds nine: 0.9. For the final order, add nDCG@10, and track latency at the 95th percentile. ## News search News adds four requirements. Freshness: relevance is blended with a time decay. Deduplication: many outlets publish near-identical stories, so results are clustered. Streaming: a new story must be searchable within seconds. And entities: names and places must stay exact, one more reason to keep sparse retrieval in the mix. ## Recap To recap: encode documents and queries into one vector space. Retrieve with a hybrid of sparse and dense search, then re-rank the short list. Measure recall for retrieval, nDCG for the final order, and latency for the user. ## Related research The research behind this topic is my paper [Semantic news search using artificial intelligence: technologies, problems and prospects](https://igorshalamov.com/research/semantic-news-search-ai/) (2024). ## Video Watch the episode: [Semantic Search vs Keyword Search: How Embeddings Find Meaning](https://youtu.be/x8RKXt7atjw) ![Igor Shalamov](https://igorshalamov.com/press-kit/igor-shalamov-160.jpg) [Igor Shalamov](https://igorshalamov.com/about/) is an AI systems architect who designs AI growth systems: referral and recommendation systems, AI-driven communication automation, semantic search and classification. He founded Shalamov.io and publishes [research](https://igorshalamov.com/research/) on semantic search and neural classification. ## More notes - [Recommendation System Design Interview: A Complete Answer in 6 Steps](https://igorshalamov.com/writing/recommendation-system-design-interview/) - [Collaborative Filtering vs Content Based Filtering: When to Use Each](https://igorshalamov.com/writing/collaborative-vs-content-based-filtering/) - [Two Tower Model Explained: Recommendation Retrieval at Scale](https://igorshalamov.com/writing/two-tower-model-explained/) - [How to Build a Referral Program That Brings Users Who Stay](https://igorshalamov.com/writing/how-to-build-a-referral-program/) - [How to Evaluate Recommendation Systems: Precision@K, nDCG and A/B Tests](https://igorshalamov.com/writing/how-to-evaluate-recommendation-systems/) Subscribe: [RSS feed](https://igorshalamov.com/writing/feed.xml). All notes: [Writing](https://igorshalamov.com/writing/). --- Canonical page: https://igorshalamov.com/writing/semantic-search-vs-keyword-search/. Author: Igor Shalamov, AI systems architect who designs AI growth systems. Site guide for AI assistants: https://igorshalamov.com/llms.txt # How to Evaluate Recommendation Systems: Precision@K, nDCG and A/B Tests [Igor Shalamov](https://igorshalamov.com/about/), an AI systems architect and founder of Shalamov.io. 26 November 2026, 2 min read. A new ranking model wins every offline metric. It goes into an A/B test, and nothing changes. This happens more often than teams expect. ## Where metrics apply A personalized feed is built in layers, and each layer needs its own metric. Candidate generation narrows millions of items to a few hundred. We measure its recall. A ranking model orders them. We measure ranking quality. A re-ranking step adds diversity, freshness and business rules. Only then does the user see the feed, and there we measure outcomes. A good number for one layer says little about the next one. ## Precision@K Offline, we replay historical data. Precision@K is the share of relevant items among the top K recommendations. Take K = 5. In a made-up example, one reader later opened three stories we could have shown. A popularity baseline gets one of them into its top five: 0.2. The old model gets two: 0.4. The new model gets all three: 0.6. Always split by time: train on the past, test on the future, or every number is inflated. ## Beyond accuracy Accuracy is not the whole picture. Precision and recall at K count relevant items in the top K. Coverage shows how much of the catalogue is ever recommended. nDCG also rewards placing relevant items higher, because people rarely scroll far. Diversity measures how different the items in one feed are. But none of the accuracy metrics tells you that a feed has become boring. Novelty and calibration check that the feed goes beyond the obvious and matches the reader's real mix of interests. ## The offline-online gap So why do offline gains disappear? First, position bias: people click what is shown on top, so the logs favour the old ranking. Second, a feedback loop: the training data was produced by the previous model. Third, there is no data on items that were never shown. Inverse propensity scoring helps, but it does not remove the bias. Finally, a click is only a proxy for satisfaction. The feedback loop is the one most teams underestimate. ## Online test Offline evaluation is a filter. The A/B test makes the decision. Split real traffic between the old model and the new one. Then measure what matters: click-through rate, dwell time, and above all, whether readers come back. These numbers are illustrative. The difference in return rate is the result that counts. ## Recap To recap: measure each layer with its own metric, and look beyond accuracy. Split offline data by time, and treat offline results as a filter. Then let a well-guarded A/B test make the final call. ## Related research The research behind this topic is my paper [Personalization of news content using AI: architecture and efficiency of neural network systems](https://igorshalamov.com/research/news-personalization-ai/) (2025). ## Video Watch the episode: [How to Evaluate Recommendation Systems: Precision@K, nDCG and A/B Tests](https://youtu.be/eW9FAuHuYTI) ![Igor Shalamov](https://igorshalamov.com/press-kit/igor-shalamov-160.jpg) [Igor Shalamov](https://igorshalamov.com/about/) is an AI systems architect who designs AI growth systems: referral and recommendation systems, AI-driven communication automation, semantic search and classification. He founded Shalamov.io and publishes [research](https://igorshalamov.com/research/) on semantic search and neural classification. ## More notes - [Recommendation System Design Interview: A Complete Answer in 6 Steps](https://igorshalamov.com/writing/recommendation-system-design-interview/) - [Collaborative Filtering vs Content Based Filtering: When to Use Each](https://igorshalamov.com/writing/collaborative-vs-content-based-filtering/) - [Two Tower Model Explained: Recommendation Retrieval at Scale](https://igorshalamov.com/writing/two-tower-model-explained/) - [How to Build a Referral Program That Brings Users Who Stay](https://igorshalamov.com/writing/how-to-build-a-referral-program/) - [Semantic Search vs Keyword Search: How Embeddings Find Meaning](https://igorshalamov.com/writing/semantic-search-vs-keyword-search/) Subscribe: [RSS feed](https://igorshalamov.com/writing/feed.xml). All notes: [Writing](https://igorshalamov.com/writing/). --- Canonical page: https://igorshalamov.com/writing/how-to-evaluate-recommendation-systems/. Author: Igor Shalamov, AI systems architect who designs AI growth systems. Site guide for AI assistants: https://igorshalamov.com/llms.txt # How to Build a Referral Program That Brings Users Who Stay [Igor Shalamov](https://igorshalamov.com/about/), an AI systems architect and founder of Shalamov.io. 28 November 2026, 3 min read. Your referral program brings sign-ups. Then they never pay. Some are fake accounts. The rest leave within a week. The reward is not the problem. The system around it is. ## Architecture A referral program is not a share button. It is a system with five parts. Attribution records who brought whom. Reward rules decide what each side gets, and for what. Fraud checks stop fake invitations before anyone is paid. Targeting chooses who to ask, and when. Measurement tells you whether any of it worked. And the results flow back: they retrain targeting and tune the rewards. ## Attribution Start with attribution, because every reward depends on it. Each inviter gets a unique link or code. Then set an attribution window: for example, the friend must sign up within 7 days of the click. The hard part is devices. The friend taps the link on a phone, then signs up on a laptop. So carry the code through the app install, or ask for it at sign-up. And when two people invited the same friend, one written rule decides who gets credit. ## Rewards Paying for a sign-up rewards empty accounts. Pay for a target action instead: a first purchase, or still being active on day 30. If only the inviter is paid, the friend has no reason to act. A two-sided reward gives both people something real. And cash for any invitation attracts people who farm rewards. Product value, like credits or extra plan time, with a cap per person, attracts people who use the product. ## Fraud Any reward worth having will be gamed. The simplest fraud is a self-invite: a second account for yourself. The signal: the same device or the same payment card on both sides. Then account farms: dozens of sign-ups from one source. The signal: many accounts behind one IP address. And bots that rush through the target action. The signal is velocity: too many steps, too fast. Combine the signals into a risk score, and hold the reward until the checks pass. ## Targeting Most programs ask everyone right after sign-up, before the user has seen any value. Ask after the aha moment, the first time the product delivers real value. Ranked by activity alone, the busiest users come first. A propensity model predicts something better: the chance that this user invites a friend who stays. Chloe is quiet, but her friends stay. She moves up to second. Ask the top users first, and cap how often anyone is asked. ## K-factor Now measurement. The classic number is the K-factor. It equals invitations per user, times the share of invitations that convert. In a made-up example, 100 users send 3 invitations each, and 10% convert. 3 × 0.1 gives a K-factor of 0.3. Now count only the invited users still active on day 30: 12 of them. The K-factor that matters is 0.12. Above one, growth feeds itself. Below one, referrals amplify your other channels, but do not replace them. ## Incrementality The K-factor has a blind spot: some invited friends would have joined anyway. So keep a holdout: a random group of users who never see the program. Compare them with everyone else, and count retained users, not sign-ups. These numbers are illustrative. If the gap is close to zero, you are paying rewards for users you would have had anyway. ## Mistakes Four mistakes show up again and again. Paying for sign-ups instead of users who stay. Paying rewards before the fraud checks are done. Asking for invitations before the user has seen any value. And trusting the K-factor without a holdout. Fix these four, and each part of the system starts to work for the next one. ## Recap To recap: attribute every invitation, reward the action that matters, and check for fraud before paying. Ask the right users after the aha moment, and judge the result against a holdout. ## Related research The research behind this topic is my paper [Neural network architectures for automating user funnels in referral marketing](https://igorshalamov.com/research/neural-architectures-referral-funnels/) (2025). ## Video Watch the episode: [How to Build a Referral Program That Brings Users Who Stay](https://youtu.be/PbHN5ZZMan4) ![Igor Shalamov](https://igorshalamov.com/press-kit/igor-shalamov-160.jpg) [Igor Shalamov](https://igorshalamov.com/about/) is an AI systems architect who designs AI growth systems: referral and recommendation systems, AI-driven communication automation, semantic search and classification. He founded Shalamov.io and publishes [research](https://igorshalamov.com/research/) on semantic search and neural classification. ## More notes - [Recommendation System Design Interview: A Complete Answer in 6 Steps](https://igorshalamov.com/writing/recommendation-system-design-interview/) - [Collaborative Filtering vs Content Based Filtering: When to Use Each](https://igorshalamov.com/writing/collaborative-vs-content-based-filtering/) - [Two Tower Model Explained: Recommendation Retrieval at Scale](https://igorshalamov.com/writing/two-tower-model-explained/) - [How to Evaluate Recommendation Systems: Precision@K, nDCG and A/B Tests](https://igorshalamov.com/writing/how-to-evaluate-recommendation-systems/) - [Semantic Search vs Keyword Search: How Embeddings Find Meaning](https://igorshalamov.com/writing/semantic-search-vs-keyword-search/) Subscribe: [RSS feed](https://igorshalamov.com/writing/feed.xml). All notes: [Writing](https://igorshalamov.com/writing/). --- Canonical page: https://igorshalamov.com/writing/how-to-build-a-referral-program/. Author: Igor Shalamov, AI systems architect who designs AI growth systems. Site guide for AI assistants: https://igorshalamov.com/llms.txt # Two Tower Model Explained: Recommendation Retrieval at Scale [Igor Shalamov](https://igorshalamov.com/about/), an AI systems architect and founder of Shalamov.io. 29 November 2026, 3 min read. You have 10 million items, and 50 milliseconds to choose what one user sees. Your best ranking model cannot score them all in time. Every large recommender hits this wall, and most solve it the same way. With a two tower model. ## Two stages Example numbers: a good ranking model needs about 10 microseconds per item. 10 million items times 10 microseconds is 100 seconds. The budget is 50 milliseconds, so we are 2,000 times too slow. So the work is split into two stages. Retrieval cheaply narrows 10 million items to about 1,000 candidates. Ranking scores those 1,000 with the heavy model, in 10 milliseconds. Only the top 20 reach the feed. Two towers are the standard design for retrieval. ## Two towers The model has two separate neural networks, called towers. The user tower starts from a learned embedding of the user ID. The item tower does the same for the item. The user side adds history: recent clicks, watches and purchases. The item side adds content: text, category and creator. Both sides add more: context for the user, age and popularity for the item. Each tower outputs a vector of the same size, say 64 numbers. ## Scoring Both towers write into one shared space. This is a two-dimensional sketch of it. The user vector lands somewhere in that space. The score of a user and an item is the dot product of their two vectors. Normalise both vectors, and the dot product becomes cosine similarity. Retrieval is then a nearest neighbour search around the user. The key constraint: the towers never see each other's inputs. That is why item vectors can be precomputed. ## Training Training data: pairs of a user and an item they clicked. For each user in a batch, the other users' clicks serve as negatives. These are in-batch negatives: no extra sampling needed. The loss pushes the clicked item up and the others down. One catch: popular items appear in many batches, so they are punished as negatives too often. The fix, sampling bias correction: subtract the log of each item's sampling probability. ## Serving The two towers run at different times. The item tower runs offline, in batch, over the whole catalogue. It produces one vector per item. Those vectors go into an approximate nearest neighbour index, for example HNSW. At request time, only the user tower runs: one forward pass, one vector. The index returns the top 1,000 items in a few milliseconds. Whenever the item tower changes, the index is rebuilt. ## Recall@K Retrieval has one job: do not lose the good items. The ranker never sees what retrieval dropped. So we measure Recall@K: the share of all relevant items that reach the top K. Here K = 1,000, the candidate list size. In a made-up example, one user clicks 20 items in the test week. A popularity baseline retrieves six of them: 0.3. Two towers with ID features only find eleven: 0.55. Add content features, and they find fifteen: 0.75. Always split by time: train on the past, test on the next week. ## Pitfalls First, cold start: a new item has no clicks, so its ID embedding is noise. Content features in the item tower give it a sensible vector from day one. Second, leakage: a feature computed after the click, like a total view count. Offline metrics look great, and production does not. Use point-in-time features. Third, version skew: the user tower is updated, but the index still holds old item vectors. The vectors stop sharing a space. Version both towers and the index together. ## Uses and recap The pattern appears wherever a catalogue is too large to rank. Video, music and news feeds. Products for a shopper. Documents for a search query. And referral systems: who should a user invite? There, the inviter is the query, and possible invitees are the items. That is the retrieval step of the referral system from our first video. To recap: two towers, one space, items indexed offline, users encoded online, checked with Recall@K. It covers neural network architectures for referral funnels. ## Related research The research behind this topic is my paper [Neural network architectures for automating user funnels in referral marketing](https://igorshalamov.com/research/neural-architectures-referral-funnels/) (2025). ## Video Watch the episode: [Two Tower Model Explained: Recommendation Retrieval at Scale](https://youtu.be/ZJXA4Q7RtdQ) ![Igor Shalamov](https://igorshalamov.com/press-kit/igor-shalamov-160.jpg) [Igor Shalamov](https://igorshalamov.com/about/) is an AI systems architect who designs AI growth systems: referral and recommendation systems, AI-driven communication automation, semantic search and classification. He founded Shalamov.io and publishes [research](https://igorshalamov.com/research/) on semantic search and neural classification. ## More notes - [Recommendation System Design Interview: A Complete Answer in 6 Steps](https://igorshalamov.com/writing/recommendation-system-design-interview/) - [Collaborative Filtering vs Content Based Filtering: When to Use Each](https://igorshalamov.com/writing/collaborative-vs-content-based-filtering/) - [How to Build a Referral Program That Brings Users Who Stay](https://igorshalamov.com/writing/how-to-build-a-referral-program/) - [How to Evaluate Recommendation Systems: Precision@K, nDCG and A/B Tests](https://igorshalamov.com/writing/how-to-evaluate-recommendation-systems/) - [Semantic Search vs Keyword Search: How Embeddings Find Meaning](https://igorshalamov.com/writing/semantic-search-vs-keyword-search/) Subscribe: [RSS feed](https://igorshalamov.com/writing/feed.xml). All notes: [Writing](https://igorshalamov.com/writing/). --- Canonical page: https://igorshalamov.com/writing/two-tower-model-explained/. Author: Igor Shalamov, AI systems architect who designs AI growth systems. Site guide for AI assistants: https://igorshalamov.com/llms.txt # Collaborative Filtering vs Content Based Filtering: When to Use Each [Igor Shalamov](https://igorshalamov.com/about/), an AI systems architect and founder of Shalamov.io. 5 December 2026, 3 min read. A new song is uploaded and nobody has played it yet. One kind of recommender will never show it to anyone. The other can recommend it in the first minute, and then keeps showing you more of the same. These are collaborative filtering and content based filtering, and the choice between them depends on the data your product has. ## Content based filtering: match the item itself Content based filtering looks at the items. Each song is described by its features: genre, tempo, instruments, even the lyrics. A user's taste is the average of the songs they liked, and the recommendations are the songs nearest to that point. The strength is that an item needs no history. A new jazz song with zero plays sits close to a jazz listener's taste and enters the list straight away. The weakness is that the method only finds more of the same, and over time the user ends up in a filter bubble. ## Collaborative filtering: learn from other users Collaborative filtering ignores what the item is and looks only at who played what. In a small made-up example, Ana played songs A, B and C. Ben played the same three, plus song D. Their histories overlap, so Ben is Ana's nearest neighbour, and song D is recommended to Ana. Nobody described the song. The users did the work. Modern systems learn these overlaps with matrix factorisation or neural embeddings. The weakness is cold start: a new song has no plays, so it is invisible, and the same goes for a new user. ## Head to head - **Data needed.** Collaborative filtering needs interaction history. Content based filtering needs good item features: text, tags, audio or images. - **Strength.** Collaborative filtering finds things a user would never search for, because other people bridged the gap. Content based filtering works for a brand-new item from its first minute. - **Failure.** Collaborative filtering fails on cold start, for new items and new users. Content based filtering fails by repeating itself. ## When to use each Four questions settle most cases: 1. Little interaction history but rich item data, as in a new marketplace? Start content based. 2. Millions of interactions? Collaborative filtering will usually win. 3. Should users discover things outside their usual taste? Collaborative again. 4. New items every day, as in news or video? You need both. The last case describes most production systems. ## How production systems combine them The common hybrid is a pipeline. Collaborative filtering supplies candidates from interaction history. Content based filtering fills the gap for new items and new users. A ranking model scores all candidates using both kinds of signal, and only the top 20 reach the feed. The other option is one model: a [two tower model](https://igorshalamov.com/writing/two-tower-model-explained/) with content features in the item tower. Either way, the hybrid gets discovery from users and cold start coverage from content. ## Measure coverage next to accuracy Accuracy alone will not tell you which approach your product needs. One useful extra number is catalogue coverage, the share of items that get recommended at all: `coverage = items ever recommended / all items` Take a made-up catalogue of 10,000 songs. Collaborative filtering recommends 3,100 of them, a coverage of 0.31. Content based filtering reaches 7,400, or 0.74. The hybrid reaches 8,200, or 0.82. Report coverage next to Recall@K, on a split by time; [how to evaluate a recommender](https://igorshalamov.com/writing/how-to-evaluate-recommendation-systems/) covers the rest of the metrics. ## Three common mistakes 1. **Popular items take over.** Collaborative filtering keeps pushing the same hits. Penalise popularity and track coverage. 2. **Thin item features.** A title and a category are not enough for content based filtering. Use learned embeddings of the text, audio or images. 3. **Testing on a random split.** A random train and test split leaks the future and flatters collaborative filtering. Split by time, the way production works. ## The same choice in referral systems A [referral system is a recommender system](https://igorshalamov.com/writing/referral-system-is-a-recommender-system/), and it faces the same choice. Who a user should invite comes from what similar users did, which is collaborative, plus profile features, which are content. In an [AI growth system](https://igorshalamov.com/writing/what-is-an-ai-growth-system/) both signals feed the models layer. To recap: collaborative filtering learns from what people do, content based filtering learns from what the item is. Content wins on cold start. At scale, combine them. ## Related research The research behind this topic is my paper [Personalization of news content using AI: architecture and efficiency of neural network systems](https://igorshalamov.com/research/news-personalization-ai/) (2025). ![Igor Shalamov](https://igorshalamov.com/press-kit/igor-shalamov-160.jpg) [Igor Shalamov](https://igorshalamov.com/about/) is an AI systems architect who designs AI growth systems: referral and recommendation systems, AI-driven communication automation, semantic search and classification. He founded Shalamov.io and publishes [research](https://igorshalamov.com/research/) on semantic search and neural classification. ## More notes - [Recommendation System Design Interview: A Complete Answer in 6 Steps](https://igorshalamov.com/writing/recommendation-system-design-interview/) - [Two Tower Model Explained: Recommendation Retrieval at Scale](https://igorshalamov.com/writing/two-tower-model-explained/) - [How to Build a Referral Program That Brings Users Who Stay](https://igorshalamov.com/writing/how-to-build-a-referral-program/) - [How to Evaluate Recommendation Systems: Precision@K, nDCG and A/B Tests](https://igorshalamov.com/writing/how-to-evaluate-recommendation-systems/) - [Semantic Search vs Keyword Search: How Embeddings Find Meaning](https://igorshalamov.com/writing/semantic-search-vs-keyword-search/) Subscribe: [RSS feed](https://igorshalamov.com/writing/feed.xml). All notes: [Writing](https://igorshalamov.com/writing/). --- Canonical page: https://igorshalamov.com/writing/collaborative-vs-content-based-filtering/. Author: Igor Shalamov, AI systems architect who designs AI growth systems. Site guide for AI assistants: https://igorshalamov.com/llms.txt # Recommendation System Design Interview: A Complete Answer in 6 Steps [Igor Shalamov](https://igorshalamov.com/about/), an AI systems architect and founder of Shalamov.io. 5 December 2026, 3 min read. The interviewer says: design the recommendations for a video app. You have 45 minutes, and most candidates start by drawing a model. That is the mistake that sinks the interview. Strong candidates follow a structure, and this one has six steps, about five to seven minutes each: 1. **Goal**: the metric and the users. 2. **Scale**: requests per second and catalogue size. 3. **Design**: retrieval, ranking and re-ranking. 4. **Data**: features and labels. 5. **Evaluation**: offline metrics, then an A/B test. 6. **Risks**: where the design breaks, and the trade-offs. ## Step 1: clarify the goal Never start designing before you agree on the goal. Ask three questions. - **What are we optimising?** Clicks are easy to game, so agree on watch time or long-term retention. - **Who are the users?** If new users matter, cold start is part of the design. - **What are the constraints?** For example, 200 milliseconds per request, and new videos every day. ## Step 2: put numbers on it These are example numbers, so state your assumptions out loud. - 100 million daily users, 10 feed loads each: 1 billion requests a day. - 1 billion divided by 86,400 seconds in a day: about 12,000 requests per second. - Peak traffic is around 3 times the average: about 35,000 requests per second. - 10 million videos in the catalogue. These numbers decide the design: you cannot score 10 million videos 35,000 times a second. ## Step 3: retrieval, ranking, re-ranking Draw this diagram first. Everything else hangs on it. 1. **Retrieval** narrows 10 million videos to about 1,000, from several sources, such as a [two tower model](https://igorshalamov.com/writing/two-tower-model-explained/) and fresh uploads. 2. **Ranking** scores those 1,000 with a heavy model that predicts watch time and keeps about 100. 3. **Re-ranking** applies the rules: diversity, freshness, no repeats. The feed shows the top 20. Explain why the stages exist: each stage is cheaper per item than the next, and the next one sees fewer items. ## Step 4: features and labels - **User features**: watch history, language, device. - **Video features**: topic, creator, age, and content embeddings. - **Context**: time of day and network quality. The label: did the user watch more than half of the video? Clicks alone reward clickbait. Negatives are videos that were shown but skipped. Log features at serving time, so training sees exactly what production saw. ## Step 5: offline, then online Evaluate in two layers. Offline, measure Recall@K for retrieval and nDCG for ranking, on a split by time; [how to evaluate recommendation systems](https://igorshalamov.com/writing/how-to-evaluate-recommendation-systems/) explains both. Online, run an A/B test, because offline gains often vanish in production. In a made-up test, the control group on the current system watches 41 minutes a day. With the new ranker, it is 43. The two extra minutes are the headline. Also check the guardrails: user reports, creator diversity and latency. ## Step 6: risks and trade-offs Show that you know where the design breaks. - **Cold start.** New videos have no history. Add content features and a dedicated source for fresh uploads; the trade-off is covered in [collaborative vs content based filtering](https://igorshalamov.com/writing/collaborative-vs-content-based-filtering/). - **Feedback loops.** The model only learns from what it showed, so popular videos get more popular. Reserve a small share of slots for exploration. - **Latency.** The ranker blows the budget at peak. Cache results, precompute user vectors, or distil the ranker into a smaller one. ## What interviewers score - You agreed on the goal before designing. - You used numbers to justify the architecture. - You split the problem into stages. - You knew offline metrics are not enough. ## Beyond the interview The same six steps work for search, ads and referral systems. In a [referral system](https://igorshalamov.com/writing/referral-system-is-a-recommender-system/), the inviter is the query and possible invitees are the items. I use this structure when I design [AI growth systems](https://igorshalamov.com/writing/what-is-an-ai-growth-system/). ## Related research The research behind this topic is my paper [Neural network architectures for automating user funnels in referral marketing](https://igorshalamov.com/research/neural-architectures-referral-funnels/) (2025). ![Igor Shalamov](https://igorshalamov.com/press-kit/igor-shalamov-160.jpg) [Igor Shalamov](https://igorshalamov.com/about/) is an AI systems architect who designs AI growth systems: referral and recommendation systems, AI-driven communication automation, semantic search and classification. He founded Shalamov.io and publishes [research](https://igorshalamov.com/research/) on semantic search and neural classification. ## More notes - [Collaborative Filtering vs Content Based Filtering: When to Use Each](https://igorshalamov.com/writing/collaborative-vs-content-based-filtering/) - [Two Tower Model Explained: Recommendation Retrieval at Scale](https://igorshalamov.com/writing/two-tower-model-explained/) - [How to Build a Referral Program That Brings Users Who Stay](https://igorshalamov.com/writing/how-to-build-a-referral-program/) - [How to Evaluate Recommendation Systems: Precision@K, nDCG and A/B Tests](https://igorshalamov.com/writing/how-to-evaluate-recommendation-systems/) - [Semantic Search vs Keyword Search: How Embeddings Find Meaning](https://igorshalamov.com/writing/semantic-search-vs-keyword-search/) Subscribe: [RSS feed](https://igorshalamov.com/writing/feed.xml). All notes: [Writing](https://igorshalamov.com/writing/). --- Canonical page: https://igorshalamov.com/writing/recommendation-system-design-interview/. Author: Igor Shalamov, AI systems architect who designs AI growth systems. Site guide for AI assistants: https://igorshalamov.com/llms.txt # Igor Shalamov in the Media Editorial interviews and articles about Igor Shalamov, with outlet, date and author. All materials are in Russian. [От интеграции искусственного интеллекта в digital-маркетинг до создания академии, готовящей профильных экспертов](https://b-mag.ru/ot-integracii-iskusstvennogo-intellekta-v-digital-marketing-do-sozdanija-akademii/) B-Mag.ru, 12 October 2023. Interview, by Igor Sotnikov. In Russian. [Игорь Шаламов: как ИИ совершит революцию в реферальном маркетинге](https://apni.ru/interview/igor-shalamov-kak-ii-sovershit-revolyucziyu-v-referalnom-marketinge) APNI.ru, 25 January 2024. Interview, by Kira Danilova. In Russian. [Игорь Шаламов о будущем реферального маркетинга](https://www.pravda.ru/economics/2311498-igor-shalamov-referalnyi-marketing/) Pravda.ru, 20 December 2024. Article, by Alexander Prikhodko. In Russian. --- Canonical page: https://igorshalamov.com/press/. Author: Igor Shalamov, AI systems architect who designs AI growth systems. Site guide for AI assistants: https://igorshalamov.com/llms.txt # Products — Shalamov.io, its academy and agency ## Shalamov.io Shalamov.io is a referral-marketing automation platform, launched by Igor Shalamov in 2021, that lets businesses build referral funnels, Telegram services and Mini Apps, as well as no-code AI modules for segmentation, analytics and customer conversations. Igor Shalamov is the founder and platform architect. [shalamov.io](https://shalamov.io/) ## Shalamov.io Academy The academy of the platform trains specialists in AI automation. Founded in 2021; Igor Shalamov is the founder and an instructor. ## Shalamov Agency An AI implementation agency founded by Igor Shalamov in 2020. The engineering side of this work is described on the [AI growth systems](https://igorshalamov.com/ai-growth-systems/) page. --- Canonical page: https://igorshalamov.com/products/. Author: Igor Shalamov, AI systems architect who designs AI growth systems. Site guide for AI assistants: https://igorshalamov.com/llms.txt # Igor Shalamov — Press Kit and Facts Igor Shalamov is an aI systems architect who designs AI growth systems: referral and recommendation systems, Telegram services, AI-driven communication automation. ![Igor Shalamov, portrait](https://igorshalamov.com/press-kit/igor-shalamov-480.jpg) Photos: [portrait, 1200 × 1800, JPEG](https://igorshalamov.com/press-kit/igor-shalamov.jpg); [horizontal, 1200 × 630, JPEG](https://igorshalamov.com/press-kit/igor-shalamov-og.jpg). ## Profession - **Profession:** AI systems architect - **Field:** AI growth systems: referral and recommendation systems, AI-driven communication automation, semantic search and classification - **Role at Appvillis:** AI Software Architect (Appvillis UAB, the company behind Nicegram; since April 2023) - **First mention:** Igor Shalamov, an AI systems architect and founder of Shalamov.io ## Name - **English:** Igor Shalamov (the only Latin spelling; not Shalamoff, not Schalamov) - **Russian:** Игорь Шаламов (full name: Игорь Станиславович Шаламов) - **Handle:** shalamoov (Instagram, YouTube, LinkedIn) - **Websites:** igorshalamov.com (personal), shalamov.io (platform) ## One line EN: AI systems architect who designs AI growth systems: referral and recommendation systems, Telegram services, AI-driven communication automation. RU: Архитектор ИИ-систем роста: реферальные и рекомендательные системы, Telegram-сервисы, ИИ-автоматизация коммуникаций. ## Short bio, about 50 words Igor Shalamov is an AI systems architect and entrepreneur who designs AI growth systems. He founded Shalamov.io, a platform for referral funnels and Telegram services, plus an academy and an AI implementation agency. He has designed referral and recommendation systems for education and Web3 platforms and worked on AI automation within the Nicegram messaging ecosystem. He writes on semantic search and neural news classification. Игорь Шаламов — архитектор ИИ-систем роста и основатель Shalamov.io, платформы для реферальных воронок и Telegram-сервисов, а также академии и агентства по внедрению ИИ. Проектировал реферальные и рекомендательные системы для образовательных и Web3-платформ, работал над ИИ-автоматизацией в экосистеме мессенджера Nicegram. Автор статей о семантическом поиске и нейросетевой классификации. ## Medium bio, about 150 words Igor Shalamov is an AI systems architect and entrepreneur working at the intersection of machine learning, product analytics and marketing. In 2021 he launched Shalamov.io, a referral-marketing automation platform that lets businesses build referral funnels, Telegram services and Mini Apps, as well as no-code AI modules for segmentation, analytics and customer conversations. The platform anchors an academy and an implementation agency. From 2021 to 2023 Igor led referral-systems development at the Like Center education ecosystem; since 2022 he has been responsible for referral marketing and IT development at the Web3 accelerator LaunchHub; and since April 2023 he has worked with Appvillis, the company behind the Nicegram messenger, as AI Software Architect on AI-driven feedback automation and content filtering. He is the author of research articles on semantic news search, real-time neural news classification, news personalization and neural architectures for referral funnels. He is now building the international Shalamov.io ecosystem. Russian version: [press kit in Russian](https://igorshalamov.com/ru/press-kit/). ## Boilerplate About Igor Shalamov. Igor Shalamov is an AI systems architect who designs AI growth systems: referral and recommendation systems and AI-driven communication automation. He founded Shalamov.io in 2021 and has worked with Appvillis UAB (Nicegram) since 2023. More: igorshalamov.com. ## Roles and periods | Organization | Role | Period | |---|---|---| | Shalamov.io | Founder and platform architect | since 2021 | | Shalamov.io Academy | Founder, instructor | since 2021 | | Shalamov Agency | Founder | since 2020 | | Appvillis UAB (Nicegram) | AI Software Architect, Head of Referral Marketing | since April 2023 | | LaunchHub | Head of referral marketing and IT development (project-based) | since 2022 | | Like Center | Lead architect of referral systems | 2021–2023 | | Bolshie Cheki | Head of partner marketing, founder of the IT department | c. 2021–2022 | | NL International | Network marketing, start of career | before 2021 | ## Official profiles - LinkedIn: [www.linkedin.com/in/shalamoov](https://www.linkedin.com/in/shalamoov) - Instagram: [www.instagram.com/shalamoov/](https://www.instagram.com/shalamoov/) - YouTube: [www.youtube.com/@shalamoov](https://www.youtube.com/@shalamoov) - Telegram: [t.me/shalamovtg](https://t.me/shalamovtg) - Crunchbase: [www.crunchbase.com/person/igor-shalamov](https://www.crunchbase.com/person/igor-shalamov) - Google Scholar: [scholar.google.com/citations?user=HuXnpkUAAAAJ](https://scholar.google.com/citations?user=HuXnpkUAAAAJ) - ORCID: [orcid.org/0009-0001-2366-4278](https://orcid.org/0009-0001-2366-4278) ## Not to be confused with There are other people named Igor Shalamov online, including the president of Optimum Computer Solutions, a producer listed on IMDb, a specialist in the spirits industry, marketers, an athlete and a restaurant-app developer. The Igor Shalamov this site is about is an AI systems architect and the founder of Shalamov.io. His profiles use the handle shalamoov. ## Media contact Telegram [t.me/shalamovtg](https://t.me/shalamovtg) or LinkedIn [linkedin.com/in/shalamoov](https://www.linkedin.com/in/shalamoov). Last updated: 20 November 2026. --- Canonical page: https://igorshalamov.com/press-kit/. Author: Igor Shalamov, AI systems architect who designs AI growth systems. Site guide for AI assistants: https://igorshalamov.com/llms.txt # Igor Shalamov — Facts and Answers ## Who is Igor Shalamov? Igor Shalamov is an AI systems architect who designs AI growth systems: referral and recommendation systems, Telegram services, AI-driven communication automation. He founded the Shalamov.io platform in 2021. Source: [Biography](https://igorshalamov.com/about/). ## What are AI growth systems? AI growth systems are the field Igor Shalamov works in: referral and recommendation systems, AI-driven communication automation, semantic search and classification. The site has a separate page on how such systems are built, with his work and five research articles. Source: [AI growth systems](https://igorshalamov.com/ai-growth-systems/). ## What does he work on now? He is building the international Shalamov.io ecosystem, with its academy and AI implementation agency. Since April 2023 he has also worked with Appvillis, the company behind the Nicegram messenger, as AI Software Architect. Source: [Products](https://igorshalamov.com/products/). ## What is Shalamov.io? Shalamov.io is a referral-marketing automation platform, launched by Igor Shalamov in 2021, that lets businesses build referral funnels, Telegram services and Mini Apps, as well as no-code AI modules. An academy and an implementation agency work on top of the platform. Source: [shalamov.io](https://shalamov.io/). ## What is his connection to Nicegram and Appvillis? Since April 2023 Igor Shalamov has worked with Appvillis UAB, the company behind the Nicegram messenger, as AI Software Architect and Head of Referral Marketing. His work there covers AI-driven feedback automation and content filtering. Source: [AI systems architecture](https://igorshalamov.com/work/ai-systems-architecture/), [Roles and periods](https://igorshalamov.com/about/). ## Which companies has he worked with? Shalamov.io, its academy and Shalamov Agency (founder); Appvillis (Nicegram), since April 2023; the Web3 accelerator LaunchHub, since 2022; the Like Center education ecosystem, 2021–2023; Bolshie Cheki, around 2021–2022. Roles for each are listed on the biography page. Source: [Roles and periods](https://igorshalamov.com/about/). ## What research has he published? Five articles: on semantic news search (Aktualnye issledovaniya, 2024), neural network architectures for referral funnels (Aktualnye issledovaniya, 2025), AI-driven sales funnels (Internauka, 2025), real-time neural news classification (Internauka, 2025) and AI news personalization (European Journal of Technical and Natural Sciences, 2025). Each entry links to the journal page. Source: [Research](https://igorshalamov.com/research/). ## Where has he been featured in the media? In an interview with B-Mag.ru (12 October 2023), an interview with APNI.ru (25 January 2024) and an article on Pravda.ru (20 December 2024). All three are in Russian. Source: [Press](https://igorshalamov.com/press/). ## How can I verify information about Igor Shalamov? Each fact on this site links to its source: journal pages for articles, editorial pages for interviews, the official profiles for contacts. The press kit holds the single approved version of the name, bios and roles. Source: [Press kit](https://igorshalamov.com/press-kit/). ## Is this the same Igor Shalamov as…? There are other people named Igor Shalamov online, including the president of Optimum Computer Solutions, a producer listed on IMDb, a specialist in the spirits industry, marketers, an athlete and a restaurant-app developer. The Igor Shalamov this site is about is an AI systems architect and the founder of Shalamov.io. His profiles use the handle shalamoov. Source: [Press kit](https://igorshalamov.com/press-kit/). ## Where are his official profiles and how do I contact him? Official profiles: LinkedIn, Instagram and YouTube under the handle shalamoov, the Telegram channel shalamovtg and Crunchbase. Media and partnership requests: Telegram t.me/shalamovtg or LinkedIn linkedin.com/in/shalamoov. Source: [Contact](https://igorshalamov.com/contact/). --- Canonical page: https://igorshalamov.com/faq/. Author: Igor Shalamov, AI systems architect who designs AI growth systems. Site guide for AI assistants: https://igorshalamov.com/llms.txt # Contact Media and partnership requests: Telegram [t.me/shalamovtg](https://t.me/shalamovtg) or LinkedIn [linkedin.com/in/shalamoov](https://www.linkedin.com/in/shalamoov). For facts, bios and name spelling, see the [press kit](https://igorshalamov.com/press-kit/). ## Official profiles - LinkedIn: [www.linkedin.com/in/shalamoov](https://www.linkedin.com/in/shalamoov) - Instagram: [www.instagram.com/shalamoov/](https://www.instagram.com/shalamoov/) - YouTube: [www.youtube.com/@shalamoov](https://www.youtube.com/@shalamoov) - Telegram: [t.me/shalamovtg](https://t.me/shalamovtg) - Crunchbase: [www.crunchbase.com/person/igor-shalamov](https://www.crunchbase.com/person/igor-shalamov) - Google Scholar: [scholar.google.com/citations?user=HuXnpkUAAAAJ](https://scholar.google.com/citations?user=HuXnpkUAAAAJ) - ORCID: [orcid.org/0009-0001-2366-4278](https://orcid.org/0009-0001-2366-4278) --- Canonical page: https://igorshalamov.com/contact/. Author: Igor Shalamov, AI systems architect who designs AI growth systems. Site guide for AI assistants: https://igorshalamov.com/llms.txt