System Design Space
Knowledge graphSettings

Updated: June 21, 2026 at 11:15 PM

Programming Meanings by Alexey Gusakov (CTO Yandex)

medium

A talk by Yandex CTO Alexey Gusakov on how AI products move from hand-coded algorithms to designing intent, constraints, evaluation loops, and useful system behavior.

The idea of programming meanings matters because it shifts attention away from hand-describing an algorithm and toward designing system behavior.

The chapter shows how intent, constraints, evaluation loops, and the reward model become the working engineering loop of an AI product rather than a thin layer around the model.

For design reviews, it is a strong case for discussing utility design, product semantics, and the part of AI architecture that rarely appears on a standard service diagram.

Practical value of this chapter

Behavior design

The chapter helps you discuss an AI product not only through code and models, but through intent, constraints, and the working evaluation loop.

Quality loop

It is a strong case for showing how product rules, reward design, and evaluation combine into one improvement cycle.

Engineering usefulness

The material makes it clear that usefulness in an AI system is designed and measured rather than automatically produced by a strong model.

Interview material

It is a strong case for discussing product semantics, reward design, and observability in AI features.

Programming Meanings by Alexey Gusakov (CTO Yandex)

A breakdown of Alexey Gusakov's talk: once you can no longer spell out the algorithm by hand, the engineer stops describing steps and starts setting intent, constraints, evaluation loops, and the boundaries of useful system behavior.

Speaker:Alexey Gusakov, CTO of the Search and Advertising Technologies business group (Yandex)
Format:Tech talk on product development and AI system architecture
Focus:LLM assistants, reward modeling, orchestration, and measurable answer quality

Source

Telegram: Book Cube

A review of the talk with engineering and product-architecture takeaways.

Read the review

What “programming meanings” means

Model behavior cannot be finished with code paths alone: it is set by intent, constraints, knowledge context, tools, and success metrics. That is the thing you design, not a side effect of the code.

The cost of that shift is giving up the single delivery of a “perfect algorithm.” Value accrues step by step along the loop hypothesis → prototype → measurement → additional training → integration, and every step has to be measurable — otherwise there is nothing to improve.

How the approach evolved

2022: “Product Guru” and the first mistakes

A conversational assistant for product selection hit a wall fast: a questionnaire disguised as a dialogue frustrates users. Those failures turned out more useful than the wins — they showed which scenario actually helps a person.

The turn after ChatGPT

The temptation was one big magical release. The team did the opposite: improve the existing experience in small, verifiable steps, each of which can be rolled back and measured.

Answers grounded in structured sources

So an answer can be checked, the model first plans which documents to use and assembles it from verifiable fragments. Without that grounding it generates out of thin air — and the cost of an error grows.

A system of constraints instead of one metric

A single metric always lies — it can be gamed. Quality is held by a set of rules and metrics at once: factual accuracy, answer length, personalization, variety, and a ban on invented facts.

A repeatable learning loop

Answers are evaluated by people and automated checks; the results update the generative model and the reward model, and the changes are then measured again against real feedback. The loop is closed — otherwise improvements do not accumulate.

Orchestrating multiple models

You do not have to touch the base weights: quality grows through a pipeline of multiple models, tools, and additional compute. That is cheaper than full retraining and pays off faster.

Related chapter

AI Engineering

How to carry an AI product through its whole lifecycle in production, not just train a model.

Open chapter

The working loop for model improvement

1. Evaluation

Answers are labeled and ranked by people and automated evaluators.

2. Training

The generative model and reward model are updated.

3. Rollout

Changes move into online experiments and A/B tests.

4. Feedback

Metrics and feedback start the next improvement cycle.

Common problems and fixes

Optimizing for the evaluator instead of user value

Symptom: The model learns to please the checker, not to help: it lengthens answers, copies sources, and piles on caveats. The metric goes up; user value does not.

Fix: Length constraints, penalties for copy-paste and bureaucratic style, and caveats only where they actually change the user’s decision.

Vague product requirements

Symptom: An instruction like “be smart and useful” sounds good but never turns into a stable product outcome or a reproducible loop — there is nothing to check and nothing to roll back.

Fix: Treat intent, constraints, test sets, and quality metrics as mandatory release artifacts, not verbal wishes.

Related topic

Observability & Monitoring Design

Where signals of degradation come from and how to set up alerting that catches a regression before users do.

Open chapter

What this changes in system design

  • The prompt, rule set, and reward model move into the category of system artifacts alongside API contracts and source code — they get versioned, reviewed, and rolled back.
  • Without an observability loop for answer quality, a regression stays invisible until users complain: you need factual accuracy, length, duplication, click-through, satisfaction, and escalation rate.
  • Product development and model development stop being separate processes and merge into one cycle: hypothesis -> experiment -> measurement -> additional training -> staged rollout.
  • The assistant can rely on checkable evidence only with a ready source base and a retrieval loop — without them, verifiability stays a promise on paper.

Additional materials

Related chapters

Enable tracking in Settings