Designing and Evaluating Experiments for Social Feed Ranking Changes
Statistics & ExperimentsModel answerLast updated
Define high-quality engagement metrics and design robust A/B tests to evaluate feed ranking algorithms while managing network interference and multi-metric trade-offs.
You are an lead product data scientist responsible for evaluating feed ranking changes on a professional social platform.
The product and engineering teams want to shift from simple surface-level engagement (e.g., likes, clicks) toward driving Deep Professional Value. They have developed a candidate ML ranking algorithm that scores and ranks feed items primarily based on predicted comment depth and discussion length rather than raw reactions.
Address the following four components:
-
Metric Definition & Taxonomy: Define a primary Overall Evaluation Criterion (OEC) that quantifies high-value engagement while minimizing susceptibility to Goodhart's law. Explain how you distinguish low-effort "vanity" actions from high-intent interactions across both consumer and creator sides of the ecosystem.
-
Experimentation Framework: Design an A/B testing strategy for this algorithmic change. Detail your choice of randomization unit, address interference/SUTVA violations caused by shared network connections between viewers and creators, and outline variance reduction strategies.
-
Multi-Metric Decision Framework: Suppose an initial experiment run yields the following statistically significant results:
- +5% Total Comments
- -2% Total Likes
- -1% New Post Creation Rate
Provide a structured methodology to reconcile these conflicting metrics and state whether you would launch, iterate, or reject the model.
-
Guardrails & Risk Monitoring: Detail at least four essential counter-metrics to monitor unexpected ecosystem degradation, toxic behavior, or economic imbalance caused by optimizing for discussion depth.
Hints
Hint 1
Consider how Optimizing directly for comment count might reward divisive content or spammy, multi-turn exchanges.
Hint 2
Think about creator-viewer network effects: if a viewer in Treatment comments on a post written by a user in Control, does the control user's experience remain clean?
Hint 3
Evaluate creator feedback loops: if low-effort feedback (likes) drops, how does that impact long-tail creators who rely on basic feedback to continue posting?
Model answer
Hard Try it yourself first — then compare your approach, complexity and edge cases.
1. Metric Definition & Taxonomy
The Pitfall of Simple Metrics
Optimizing directly for raw engagement count (e.g., total_comments) falls victim to Goodhart's Law: when a metric becomes a target, it ceases to be a good metric. A ranker tuned purely for comment count will naturally surface controversial, inflammatory, or clickbait content that provokes arguments, or low-effort auto-generated responses.
Interaction Taxonomy
To align algorithmic goals with actual user value, we separate interactions into low-effort passive actions and high-intent, reciprocated contributions:
| Tier | Category | Operational Definition | Value Signal |
|---|---|---|---|
| Tier 1 | Vanity / Passive | Likes, single-tap emoji reactions, short auto-suggested replies (e.g., "Congrats!"), passive impressions. | Low cost to user; low signal of deep connection. |
| Tier 2 | High-Intent Unilateral | Original comments exceeding a minimum length threshold (e.g., $\ge 10$ non-templated words), shares with added commentary, direct messages initiated from post. | High user effort; clear expression of interest. |
| Tier 3 | Reciprocated Value | Comment threads reaching depth $\ge 2$ where the post author or third party responds; connection requests or follows initiated within 10 minutes of viewing post. | High two-sided utility; fosters network density. |
Overall Evaluation Criterion (OEC)
We define the primary metric as Weighted High-Value Interactions (WHVI) per Active Feed User:
$$\text{WHVI} = \frac{\sum_{i \in \text{Feed Actions}} w_i \cdot I_i}{\text{Feed Weekly Active Users (WAU)}}$$
Where the weights $w_i$ are calculated by running historical observational models (using instrumental variables or propensity score matching) estimating the contribution of action type $i$ to 90-day user retention and long-term network activity:
- $w_{\text{Like}} \approx 0.05$
- $w_{\text{Short Comment}} \approx 0.10$
- $w_{\text{Substantive Comment}} \approx 1.00$
- $w_{\text{Reciprocated Discussion}} \approx 2.50$
- $w_{\text{Post Creation}} \approx 15.00$
Creator Supply Metric
To ensure the feedback loop functions for content creators, pair the OEC with Creator Satisfaction Index (CSI): $$\text{CSI} = % \text{ of content creators receiving at least 1 high-intent interaction (Tier 2/3) within 24 hours of posting.}$$
2. Experimentation Framework & Network Effects
The Network Effect Challenge (SUTVA Violation)
The Stable Unit Treatment Value Assumption (SUTVA) states that the treatment applied to one unit must not affect the outcomes of other units.
In a social feed, viewers and creators form a connected graph:
- If User A (Treatment) views a post by User B (Control), User A's altered feed ranker induces them to leave a high-intent comment on User B's post.
- User B (Control) experiences an unexpected increase in feedback, altering their likelihood of posting new content.
- As a result, the Control arm is contaminated, underestimating the true ecosystem effect of treatment.
+-------------------------------------------------------------+
| Network Interference Scenario |
+-------------------------------------------------------------+
| |
| [ User A ] ======= (Comments on post) ======> [ User B ]|
| (Treatment) (Control) |
| * New Ranker * Old Ranker|
| * Contaminated!|
+-------------------------------------------------------------+
Randomization Strategies
+---------------------------------------+
| Randomization Choice |
+---------------------------------------+
|
+----------------------+----------------------+
| |
v v
+---------------------------+ +---------------------------+
| Member-Level Strategy | | Cluster-Graph Strategy |
+---------------------------+ +---------------------------+
| * High Statistical Power | | * Mitigates Interference |
| * SUTVA Contaminated | | * Lowers Effective Power |
| * Best for Viewer Metrics | | * Best for Supply Metrics |
+---------------------------+ +---------------------------+
Option A: Cluster-Graph (Ego-Network) Randomization
- Partitioning: Use graph community detection algorithms (e.g., Louvain or InfoMap) to divide the social graph into distinct topological clusters minimizing cross-cluster edges.
- Assignment: Assign entire clusters to either Treatment or Control.
- Analysis: Perform inference at the cluster level or use cluster-robust standard errors (CRSE).
- Trade-off: Mitigates SUTVA violations on creator metrics, but reduces effective sample size ($N_{\text{eff}} \ll N_{\text{users}}$), lowering statistical power.
Option B: Two-Sided Market (Interleaved / Ego-Network) Design
When cluster isolation is imperfect, measure bias directly using a Bipartite Experiment Design:
- Randomize viewers into arms $V_T, V_C$.
- Randomize creators into arms $C_T, C_C$.
- Measure outcomes across the four intersections ($V_T \rightarrow C_T$, $V_T \rightarrow C_C$, $V_C \rightarrow C_T$, $V_C \rightarrow C_C$) to directly isolate and quantify the spillover effect magnitude.
Variance Reduction & Operational Controls
- CUPED (Controlled Experiment Using Pre-Experiment Data): Apply pre-experiment engagement baseline as a covariate to reduce metric variance: $$\hat{Y}_{\text{CUPED}} = Y - \theta (X - \mathbb{E}[X])$$
- Runtime & Novelty Effect: Run the experiment for a minimum of 4 full weekly cycles (28 days) to filter out novelty effects and observe early creator feedback loop dynamics.
- Sample Ratio Mismatch (SRM): Monitor Chi-square tests on assignment counts daily to ensure pipeline integrity.
3. Multi-Metric Decision Framework
Scenario Results Analysis
- +5% Comments (Positive signal, but requires validation)
- -2% Likes (Substitution effect)
- -1% New Post Creation (Critical negative signal)
Step 1: Validate Quality of Comments
Analyze whether the +5% increase in comments stems from high-value discussions or negative externalities:
- Compute the change in Substantive Comments vs. Single-Word / Toxic Comments.
- If total comments increased by +5%, but substantive comments only grew by +0.5%, the gain is largely noise or engagement-bait.
Step 2: Economic Trade-off Conversion (Value Equivalence)
Convert all metric movements to their net impact on long-term retention using our weighted retention model weights ($w_i$).
Assume a baseline per 1,000 WAU over a week:
- Base Rates: 500 Comments, 4,000 Likes, 100 Posts.
- Absolutes Deltas:
- Comments: $+5% \times 500 = +25 \text{ comments}$
- Likes: $-2% \times 4000 = -80 \text{ likes}$
- Posts: $-1% \times 100 = -1 \text{ post}$
Using historical 90-day retention weights ($w_{\text{Comment}}=1.0$, $w_{\text{Like}}=0.05$, $w_{\text{Post}}=15.0$):
$$\Delta \text{Net Value} = (25 \times 1.0) + (-80 \times 0.05) + (-1 \times 15.0) = 25 - 4 - 15 = +6 \text{ units}$$
While static net value appears slightly positive (+6 units), posts generate downstream compounding inventory. A 1% permanent decline in post creation shrinks future feed inventory, reducing future viewer sessions exponentially over subsequent months.
Step 3: Creator Breakdown & Inequality Analysis
Investigate who stopped posting:
- Top 1% Creators (Influencers): Highly resilient to feedback dips.
- Long-Tail / Casual Creators: Highly sensitive to feedback. If ranking shifts impressions away from broad, easy-to-digest content to deep discussion posts, long-tail creators receive 0 likes, feel unacknowledged, and stop posting ("Creator Starvation").
Launch Decision
DO NOT LAUNCH in its current state.
Justification: The 1% decline in post supply threatens long-term platform health. The increase in comments is offset by inventory degradation and feedback starvation for non-power creators.
Iteration Plan:
- Modify the loss function of the ML ranker: add a term penalizing candidate feeds that yield zero engagement for long-tail creators ($\text{P}(\text{Creator Interaction}) > 0$).
- Implement a diversity re-ranking layer that guarantees a floor of impression distribution to broad interest/casual posts.
- Re-test using the cluster-randomized framework.
4. Guardrails & Risk Monitoring
To prevent unexpected ecosystem failure modes when optimizing for discussion depth, monitor the following four counter-metrics:
+-------------------------------------------------------------------+
| Ecosystem Guardrail Dashboard |
+-------------------------------------------------------------------+
| 1. Creator Gini Coefficient --> Prevents feedback monopolization |
| 2. Toxicity & Report Rate --> Flags rage-bait & conflict |
| 3. Feed Scroll Depth --> Detects user fatigue |
| 4. Ad Impression Density --> Protects business revenue |
+-------------------------------------------------------------------+
-
Creator Impression & Engagement Gini Coefficient:
- Definition: Measures inequality of impression and feedback distribution across all active creators.
- Risk: Optimizing for comment depth tends to concentrate feed traffic on a small set of viral or controversial posters, starving the long-tail.
-
Toxicity and Moderation Report Rate:
- Definition: Ratio of comments flagged by AI safety models or reported by members per 1,000 feed impressions.
- Risk: Deep comment threads can be driven by heated arguments, online harassment, or political outrage.
-
Session Length & Feed Consumption Depth:
- Definition: Average posts viewed per session and total daily session length.
- Risk: Heavy, dense discussion threads increase cognitive load. If users feel exhausted, overall session frequency and daily active users (DAU) will drop despite higher comments per session.
-
Ad Impression Density & Revenue Impact:
- Definition: Injected ad impressions per session and overall Ad Click-Through-Rate (CTR).
- Risk: Long inline comment threads can alter scrolling speed or bypass ad units, damaging primary monetization channels.