Recommender systems
Capstone: Design and Defend a Recommendation System
Design an end-to-end recommendation system and produce the evidence needed to deploy, limit, or reject it.
By the end you can
- Integrate product objectives, exposure-aware data, retrieval, ranking, re-ranking, and interface design
- Construct a complete offline, counterfactual, experimental, and long-term evaluation program
- Design privacy, fairness, user-control, marketplace, and incident safeguards
- Defend a deploy, limited-deploy, research, or reject decision with traceable evidence
Visual
The capstone system map
Five rows, and a defensible answer fills every one. Candidates want to start at the recommendation architecture row. The row above it decides whether that architecture was the right thing to build at all.
Two of the five rows now answer to someone outside the team. Problem and policy answers to the EU's Digital Services Act, which has applied since 17 February 2024. The Act fixes what a recommender must disclose and what option it must offer. The operating model answers to MANAGE 2.4 of the NIST AI Risk Management Framework, published in 2023. That is where the stop-and-retire plan gets graded against an external standard instead of against the team's taste. The three rows between them — evidence, architecture, evaluation — are graded against published results. The sections below name which ones.
Problem and policy
Surface, users, items, objectives, non-goals, constraints, and fallback.
Evidence system
Exposure, candidates, labels, time, identity, privacy, and data quality.
Recommendation architecture
Sources, retrieval, ranking, re-ranking, layout, and user control.
Evaluation program
Baselines, splits, metrics, counterfactual limits, experiment, and long-term follow-up.
Operating model
Freshness, SLOs, monitoring, incidents, governance, and retirement.
Example
A marketplace asks for “personalized discovery”
A regional marketplace with 800,000 active listings wants a new home feed. Users include anonymous visitors, returning buyers, professional purchasers, and households. Sellers range from individuals to large retailers, inventory changes rapidly, and some categories carry safety or age restrictions.
The hard part of this brief is not the feed. It is the log the feed will be built from. That difficulty is not particular to this marketplace. Schnabel and Joachims gave the general statement of it in 2016: “Most data for evaluating and training recommender systems is subject to selection biases, either through self-selection by the users or through the actions of the recommendation system itself.” Their answer was to treat a recommendation as a treatment. Propensity-based estimators, adapted from causal inference, then give unbiased performance estimates from data collected under a previous recommendation policy. That is what a capstone team cites when it says what it can and cannot recover from this marketplace's history. A team that cannot name a method for it has not designed an evidence system at all.
- User problem: Help people discover useful items without overwhelming or trapping them in previous behavior.
- Provider problem: Allocate qualified exposure without letting early advantage become permanent dominance. In 2018 Singh and Joachims set that out as a constrained allocation of exposure across ranked items — so the re-ranking stage has something to optimise rather than a value to profess.
- System problem: Serve fresh, valid slates under strict latency with partial identity and sparse feedback.
- Evidence problem: Historical interactions were created by a popularity-heavy feed with limited exposure logging. That is the second of the two selection biases named above, the actions of the recommendation system itself. It is the one propensity weighting was built to undo, and the one this marketplace never logged the propensities for.
- Governance problem: The organization must support user controls, seller complaints, incident response, and retirement.
The capstone is a deploy-or-reject decision, not a model-building contest
Students must translate the product request into a surface contract, entity schema, exposure log, label and outcome design, candidate portfolio, ranking policy, evaluation plan, experiment, monitoring system, and lifecycle controls.
Two lines of that contract are no longer the team's to choose. The Digital Services Act was adopted on 19 October 2022 and has applied since 17 February 2024. Article 27(1) requires online platforms to set out the main parameters of their recommender systems in plain and intelligible language. Article 38, headed “Recommender systems”, goes further for the largest services: “In addition to the requirements set out in Article 27, providers of very large online platforms and of very large online search engines that use recommender systems shall provide at least one option for each of their recommender systems which is not based on profiling as defined in Article 4, point (4), of Regulation (EU) 2016/679.” A non-profiling option and published ranking parameters have article numbers and a date. They are not design preferences a reviewer can be talked out of.
What a student finally recommends may be a sophisticated multi-stage system, a limited hybrid, a non-personalized baseline for some states, or a decision not to deploy at all when the evidence and the controls are inadequate. Note what has happened to the third of those. For a service of that size, the non-personalized baseline is no longer only a fallback the team chose. It is a thing the law already obliges the surface to carry.
Choosing not to deploy can be the strongest submission, as long as the evidence and the controls are what settled it.
Case
Model cards and datasheets, two documentation standards
Two standards for writing that down belong in the package. Model cards came first, in 2019: “short documents accompanying trained machine learning models that provide benchmarked evaluation in a variety of conditions”, disaggregated across groups and intersectional categories. Datasheets came second. In Communications of the ACM in December 2021, Gebru and six co-authors proposed that “every dataset be accompanied with a datasheet that documents its motivation, composition, collection process, recommended uses, and so on”.
The two describe different objects, which is why the package needs both. A popularity-heavy feed with limited exposure logging is a fact about collection process, so it goes in the datasheet. How the trained ranker then behaves for professional purchasers against households is benchmarked evaluation disaggregated by group, so it goes in the model card. Neither is a formality. A defence without them is a claim without a record.
Example
Capstone risk register
The register runs from objective risk to operational risk, and a capstone defense is judged on both ends. Clicks and purchases may not stand for satisfaction, trust or marketplace health. Stale indexes, inventory, experiments and fallbacks can invalidate a slate that was correct when it was computed.
One entry in this register is not a worry but a proved result. Score a recommender against the relevant items plus a small random sample of the others — the standard shortcut — and the score can lie about which system is better. Krichene and Rendle showed it at Google in 2020: “This paper investigates sampled metrics in more detail and shows that they are inconsistent with their exact version, in the sense that they do not persist relative statements, e.g., recommender A is better than B, not even in expectation. Moreover, the smaller the sampling size, the less difference there is between metrics, and for very small sampling size, all metrics collapse to the AUC metric.” The failure is not that a sampled metric is noisy. It is that the metric can hand back the wrong ordering of two systems. And a small enough sample flattens every metric the team thought it was choosing between into one.
- Objective risk: Clicks and purchases may not represent satisfaction, trust, or marketplace health.
- Data risk: Missing exposure and policy history limit offline conclusions. The propensities Schnabel and Joachims weight by are exactly what this marketplace's popularity-heavy feed did not record.
- Representation risk: Shared accounts, new items, and provider metadata create unstable profiles.
- Policy risk: Ranking can amplify popularity, sensitive inference, unsafe supply, or provider concentration. Singh and Joachims begin from the position that “there is a substantial precedent that ranking systems have a responsibility not only to their users but also to the items being ranked”. Their algorithms maximise user utility while provably satisfying specified exposure constraints — demographic parity, disparate treatment, disparate impact. The re-ranking stage can cite a published constrained-optimisation formulation instead of a slogan.
- Operational risk: Stale indexes, inventory, experiments, and fallbacks can invalidate the slate.
- Evaluation risk: Sampled negatives and short experiments can overstate value. Krichene and Rendle proved the sampled half in 2020; Google measured the short half in 2015, in step 4 below.
- Lifecycle risk: Old profiles, models, and indexes may persist after policy changes. That is the risk MANAGE 2.4 assigns a named owner to.
Steps
Build the final recommendation decision package
The product contract is step one: surface, choice unit, outcomes, non-goals and stop rules. The decision is step six — progressive deployment, limited scope, more research, or rejection. The four steps between them are evidence, architecture, evaluation, and operations. A capstone that opens on architecture has skipped the part that makes everything after it defensible. Step two specifies exposure-aware logs, time, identity, labels, privacy and data gates. Step three compares baselines, hybrid sources, ranking, re-ranking and fallbacks.
Step four builds the evaluation ladder. Its last rung — long-term follow-up, after the experiment has already read out — is the rung teams cut. Google built experiment methodology for measuring long-term user learning rather than short-term treatment effects. It quantified ads blindness and sightedness on Google search, and in 2015 it reported what it did with the result: “We describe two major applications of our findings: a conceptual change to our search ads auction that further increased the importance of ads quality, and a 50% reduction of the ad load on Google's mobile search interface.” A short-horizon metric and a long-horizon one disagreed by enough that the company cut its own mobile ad load in half. That is the size of the gap a capstone leaves unmeasured when the evaluation program ends at the experiment.
Step five defines operations and governance: SLOs, monitoring, user and provider controls, incident ownership, and retirement. It has a numbered external referent. Subcategory MANAGE 2.4 of the NIST AI Risk Management Framework, published in 2023, reads: “Mechanisms are in place and applied, and responsibilities are assigned and understood, to supersede, disengage, or deactivate AI systems that demonstrate performance or outcomes inconsistent with intended use.” Two nouns in that sentence are what capstone submissions usually miss. Mechanisms that are applied, not merely available. Responsibilities assigned to a person, not to the team in general.
1. Write the product contract
Define surface, choice unit, outcomes, non-goals, and stop rules.
2. Design the evidence system
Specify exposure-aware logs, time, identity, labels, privacy, and data gates.
3. Propose architecture alternatives
Compare baselines, hybrid sources, ranking, re-ranking, and fallbacks.
4. Build the evaluation ladder
Use offline protocols, stage metrics, guarded experiment, and long-term follow-up.
5. Define operations and governance
Set SLOs, monitoring, user and provider controls, incident ownership, and retirement.
6. Make the decision
Recommend progressive deployment, limited scope, more research, or rejection.
Analogy
A public infrastructure proposal
Nobody approves a bridge on the elegance of the structure. The proposal has to answer demand, route, safety, cost, environmental impact, maintenance, emergency plans, and the case for building nothing at all. A recommendation capstone is owed that same width of scrutiny, plus one question no bridge raises: this structure changes the demand it was built to serve, and retrains itself on the traffic it creates.
That question has been simulated, and it has a direction. In 2018 Chaney and colleagues modelled recommenders trained on data their own earlier recommendations had produced: “These systems are often evaluated or trained with data from users already exposed to algorithmic recommendations; this creates a pernicious feedback loop. Using simulations, we demonstrate how using data confounded in this way homogenizes user behavior without increasing utility.” Note both halves of the finding. Users converge, and they get nothing for it. The loop does not trade diversity away in exchange for relevance. It takes the diversity and returns no utility. A defense that says the feed will keep learning from its own traffic has to say why this marketplace escapes that result. A bridge proposal is never asked to.
A complete design includes evidence, operations, governance, and a credible option not to build.
The final defense must connect every claim to evidence
The submission should include a system diagram, surface contract, entity and exposure schema, baseline table, candidate-source analysis, ranking objective, evaluation protocol, experiment design, fairness and privacy review, monitoring dashboard, incident scenario, and retirement checklist.
Reviewers should challenge the weakest link rather than admire the most complex model. There is a measurement of what happens when a field does the opposite. A 2019 replication re-ran the recent neural top-n recommendation literature: “Specifically, we considered 18 algorithms that were presented at top-level research conferences in the last years. Only 7 of them could be reproduced with reasonable effort. For these methods, it however turned out that 6 of them can often be outperformed with comparably simple heuristic methods, e.g., based on nearest-neighbor or graph-based techniques.” The seventh did not consistently beat a well-tuned non-neural linear ranking method. Eighteen published systems. Seven reproducible. Six of those seven beaten by nearest-neighbour or graph-based heuristics. That is the arithmetic the baseline table exists to catch before a capstone repeats it. A well-tuned simple baseline is a rival, not a formality.
The capstone passes when another team can reproduce the reasoning, identify uncertainties, and stop the system when assumptions fail.
Assemble the package so a reviewer can find the weakest link fast, because that is where the defense will be decided.
Key idea
The capstone standard
Completeness means the design can justify what it shows, what it withholds, who benefits, who bears risk, how it learns, and how it stops. Each of those six has an anchor in this lesson. What it shows and withholds: Articles 27(1) and 38 of the Digital Services Act. Who benefits and who bears risk: the exposure constraints of Singh and Joachims, and the model card's disaggregated reporting. How it learns: a feedback loop that “homogenizes user behavior without increasing utility”. How it stops: MANAGE 2.4.
Each pair has a comfortable half and an uncomfortable one; a submission that answers only the comfortable half has finished half a design.
Key takeaways
- The strongest recommendation system is the one whose value, limits, and alternatives can survive an adversarial design review.
- Students must translate the product request into a surface contract, entity schema, exposure log, label and outcome design, candidate portfolio, ranking policy, evaluation plan, experiment, monitoring system, and lifecycle controls.
- A technically impressive architecture is the wrong answer when a simpler policy delivers comparable value with lower risk and clearer control. Of 18 neural recommenders from top-level conferences, a 2019 replication could reproduce 7, and 6 of those 7 were often outperformed by nearest-neighbour or graph-based heuristics.
- Problem and policy is where the contract is written, and two of its lines are law: Article 27(1) of the Digital Services Act requires the main parameters of a recommender in plain and intelligible language, and Article 38 requires at least one recommender option not based on profiling.
- Objective risk and evaluation risk compound. Clicks and purchases may not represent satisfaction, trust, or marketplace health, and Krichene and Rendle showed that sampled metrics do not preserve which recommender is better, “not even in expectation”.
- A capstone defense has to end in a verdict — progressive deployment, limited scope, more research, or rejection — and the plan to “supersede, disengage, or deactivate” the system is graded against MANAGE 2.4 of the NIST AI Risk Management Framework.