Designing Graph-Based Cluster Experiments for Social Features
Statistics & ExperimentsModel answerLast updated
Learn how to design cluster-randomized experiments under network interference, handle edge spillover, choose non-gameable metrics, and compute variance design effects.
You are asked to design an experiment to evaluate a new multi-participant social interaction feature (e.g., live group audio calls). Because a user's experience and likelihood to engage depend heavily on whether their close contacts also have access to the feature, standard individual-level randomized A/B testing will violate the Stable Unit Treatment Value Assumption (SUTVA).
Please provide a comprehensive experimental design addressing the following six areas:
- Exposure & Estimand Definitions: Define your exposure states and state the exact causal estimand of interest (comparing global launch vs. zero launch). Explain how cluster-level Intent-to-Treat (ITT) relates to per-user Average Treatment Effects (ATE).
- Graph Clustering Strategy: Detail how you construct non-overlapping clusters from a social graph. Specify edge weight formulas (measuring relationship strength), the graph partitioning method, and rules for preventing user overlap and assigning new sign-ups.
- Randomization & Boundary (Frontier) Mitigation: Explain how clusters are randomized. How do you handle "frontier users" who have strong cross-cluster ties to opposite arms? Discuss exposure mapping, buffer zones, and partial saturation designs.
- Metric Selection & Critique: Critically evaluate using average daily active minutes per user as a success metric (pros, cons, and vulnerability to gaming). Propose a better primary metric and two key guardrail metrics.
- Sample Size & Design Effect: Calculate the Design Effect ($DE$) for cluster randomization where the baseline average cluster size is $m = 20$ and the intracluster correlation is $ICC = 0.05$. What happens to $DE$ if the cluster size doubles to $m = 40$ while the $ICC$ drops to $0.025$?
- Spillover Bias Direction: If network interference is ignored and randomization is performed at the individual level, under what conditions will the naive treatment effect estimate be biased downward vs. upward? Explain the mechanistic intuition for both positive and negative spillovers with realistic product examples.
Hints
Hint 1
Remember that SUTVA requires that a unit's outcome is unaffected by the treatment assignments of other units. Graph cluster randomization attempts to encapsulate interference within clusters.
Hint 2
The Design Effect formula for equal cluster sizes is DE = 1 + (m - 1) * ICC.
Hint 3
Positive spillovers (encouraging friends to join) dilute the control group upwards, leading to an underestimate of the global treatment effect.
Hint 4
Negative spillovers occur when treated users pull activity or attention away from control users (e.g., competing for limited zero-sum resources).
Model answer
Hard Try it yourself first — then compare your approach, complexity and edge cases.
Comprehensive Guide to Cluster-Randomized Experiments under Network Interference
1. Exposure and Estimand Definition
SUTVA Violation
In social products, a user's potential outcome $Y_i$ depends not only on their own assignment $W_i \in {0, 1}$, but also on the assignment vector of their network neighbors $\mathbf{W}_{-i}$. This violates the Stable Unit Treatment Value Assumption (SUTVA).
Estimand Selection
The business goal is to measure the Global (Total) Treatment Effect: $$\tau_{\text{global}} = E[Y_i(\mathbf{1})] - E[Y_i(\mathbf{0})]$$ where $\mathbf{1}$ represents full feature rollout across the entire population, and $\mathbf{0}$ represents zero availability.
A standard per-user Average Treatment Effect (ATE) under individual randomization measures $E[Y_i(W_i=1, \mathbf{W}{-i}) - Y_i(W_i=0, \mathbf{W}{-i})]$, which is heavily polluted by neighbor assignments and fails to capture the network reinforcement loop.
Exposure Levels
To model interference explicitly, we define three levels of exposure:
- Assigned Unit: Cluster assigned to Treatment ($W_c = 1$) vs. Control ($W_c = 0$).
- Triggered/Eligible User: A user within a treated cluster who encounters an surface where the feature can be initiated or consumed.
- Effective/Network Exposure: A user $i$ who is assigned to treatment and has at least a fraction $q$ (e.g., $q \ge 0.75$) of their strong-tie connections also assigned to treatment.
Primary Analysis Framework
- Primary Estimand: Cluster-level Intent-to-Treat (ITT). We compute the difference in cluster-aggregated means between treatment and control clusters.
- Secondary Analysis: Inverse Probability of Exposure Weighting (IPW) or Horvitz-Thompson estimation using the Exposure Mapping to isolate users who experienced high network saturation versus those on boundaries.
2. Graph Clustering Strategy
Edge Weighting for Relationship Strength
To build clusters that maximize internal interactions while minimizing external boundaries, we construct a weighted graph using pre-period user interaction data over a trailing 28-day window:
$$w_{ij} = \log\left(1 + \alpha \cdot \text{Calls}{ij} + \beta \cdot \text{Messages}{ij} + \gamma \cdot \text{GroupCoPresence}_{ij}\right)$$
Requirements:
- Reciprocity constraint: Take $\min(w_{ij}, w_{ji})$ so that one-sided outreach does not falsely represent a strong mutual bond.
- Pre-period freeze: Calculate weights purely on historical data prior to experiment launch to prevent treatment-induced graph dynamics from distorting cluster definitions.
Partitioning Rule
- Filtering: Remove weak edges below a noise threshold (e.g., fewer than 3 reciprocal interactions in 28 days).
- Community Detection: Avoid simple connected components, which typically yield one massive sub-graph and thousands of isolated nodes. Instead, apply modularity-optimization algorithms like Leiden or Louvain, or a balanced partitioner like Balanced Label Propagation.
- Cluster Size Bounds: Enforce an upper bound on cluster size (e.g., $m_{\max} = 500$ users) by recursively splitting large communities. Merge singletons or micro-clusters into their highest-weighted neighboring cluster.
Boundary Integrity and Overlap Prevention
- Partition Lock: Every user is assigned to exactly one mutually exclusive cluster ID.
- Hash Assignment: Randomization is executed by hashing the
cluster_id(e.g.,MurmurHash3(cluster_id + salt) % 100), ensuring all members of a cluster move together. - New Sign-ups: Mid-experiment users are assigned dynamically by taking a majority vote of their immediate strong-tie neighbors' cluster assignments. If isolated, assign via user-level hash into a separate non-clustered pool.
3. Cluster Randomization & Frontier User Mitigation
Stratified Cluster Randomization
To reduce variance, cluster-level assignment should be stratified by key cluster metrics:
- Pre-period activity volume (total call minutes/messages within cluster).
- Cluster size ($m$).
- Geographic/demographic dominance.
Apply variance-reduction techniques like CUPED using pre-experiment cluster means.
Handling Boundary ("Frontier") Users
Frontier users have close ties spanning treatment and control clusters. We utilize three core strategies:
[ Control Cluster ] <--- Buffer Region (Excluded from analysis) ---> [ Treatment Cluster ]
- Exposure Mapping: Categorize users post-hoc into Core (e.g., $\ge 75%$ neighbors in-arm) and Boundary users. Primary ITT is evaluated on Core users, while Boundary users are analyzed via IPW.
- Graph Buffering: Form an isolation ring around treated clusters. Boundary clusters situated between treatment and control zones are kept in the control state but dropped from the primary evaluation dataset to reduce spillover leakage.
- Partial Saturation Design: Vary the proportion of treated users across different clusters (e.g., assign clusters to $0%$, $25%$, $75%$, or $100%$ treatment saturation). This design separates:
- Direct Effect: Comparing treated vs. untreated users within the same saturation tier.
- Indirect/Spillover Effect: Comparing untreated users across $0%$ vs. $50%$ saturation tiers.
4. Metric Selection & Critique
Critique of "Average Daily Active Minutes per User"
- Pros: High variance-sensitivity; continuous variable; easily available; directly reflects raw engagement.
- Cons: Measures duration rather than value. Highly skewed by "heavy tail" users (whales). Encourages negative anti-patterns (e.g., poor connection drops leading to re-dials, un-ended background calls inflating duration).
- Manipulation Risks: Features that auto-dial, delay call tear-downs, or push aggressive spam notifications will boost active minutes while severely degrading user trust.
Recommended Metrics
+-------------------------------------------------------------------------------+
| Primary Metric: Weekly Successful Group Calls per User |
| (≥ 3 participants, duration ≥ 2 minutes, non-abandoned) |
+---------------------------------------------------+---------------------------+
|
+---------------------------------------+---------------------------------------+
| |
v v
+---------------------------------------+ +---------------------------------------+
| Guardrail 1: Call Quality Metrics | | Guardrail 2: System Health & Friction |
| - Join failure rate | | - Block / Mute / Report rates |
| - Audio/video disconnect rate | | - Opt-out / Notification disable rate |
| - Latency p95 | | - Total 1:1 message & call volume |
+---------------------------------------+ +---------------------------------------+
-
Primary Metric: Weekly Successful Group Calls per User
- Definition: Count of group interactions containing $\ge 3$ active participants lasting at least 2 minutes without early drop-offs.
- Why: Directly measures the core value proposition of multi-user engagement while filtering out low-quality or accidental calls.
-
Guardrail Metric 1: Call Quality & Reliability
- Track join failure rate, unexpected disconnect rate, and p95 media latency to ensure feature growth is not masking technical degradation.
-
Guardrail Metric 2: Network Health & Cannibalization
- Track block/report rates, notification opt-outs, and total baseline 1:1 communication volume (messaging + standard calls) to confirm the new feature builds additive value rather than cannibalizing existing interaction channels.
5. Design Effect & Sample Size Calculations
Randomizing by cluster increases variance because units within the same cluster behave similarly. The Design Effect ($DE$) quantifies the required sample size inflation factor relative to individual randomization:
$$DE = 1 + (m - 1) \cdot ICC$$
where $m$ is the average cluster size and $ICC$ is the Intracluster Correlation Coefficient.
Case 1: Baseline Scenario
- Average cluster size $m = 20$
- $ICC = 0.05$
$$DE_1 = 1 + (20 - 1) \times 0.05 = 1 + 19 \times 0.05 = 1 + 0.95 = \mathbf{1.95}$$
Interpretation: You require 1.95× more total users (or effectively half the independent power) compared to an unclustered A/B test.
Case 2: Doubled Cluster Size, Halved ICC
- Doubled cluster size $m' = 40$
- Halved $ICC' = 0.025$
$$DE_2 = 1 + (40 - 1) \times 0.025 = 1 + 39 \times 0.025 = 1 + 0.975 = \mathbf{1.975}$$
Interpretation: $DE$ increases slightly from 1.95 to 1.975.
Analytical Insight
The variance penalty is governed primarily by the product $m \cdot ICC$. When $m \gg 1$, doubling $m$ while halving $ICC$ keeps $m \cdot ICC$ roughly constant ($20 \times 0.05 = 1.0$ vs. $40 \times 0.025 = 1.0$), resulting in virtually identical variance inflation.
Note on Unequal Cluster Sizes: If cluster sizes vary significantly, the formula becomes: $$DE \approx 1 + \left[(1 + CV^2) \cdot \bar{m} - 1\right] \cdot ICC$$ where $CV$ is the coefficient of variation of cluster sizes. Skewed cluster sizes severely inflate $DE$, reinforcing the necessity of capping maximum cluster size during graph partitioning.
6. Spillover Bias Direction Under Individual Randomization
If network effects exist but an experiment is naively randomized at the individual user level, the estimated treatment effect $\hat{\tau}_{\text{naive}} = \bar{Y}_T - \bar{Y}C$ will be biased relative to the true global launch effect $\tau{\text{global}}$.
Spillover Bias Summary
┌───────────────────────┬─────────────────────────────────┬─────────────────────────────────┐
│ Spillover Type │ Mechanism │ Impact on Naive Estimate │
├───────────────────────┼─────────────────────────────────┼─────────────────────────────────┤
│ Positive Spillover │ Treatment boosts Control │ Underestimate / Downward Bias │
│ │ engagement (e.g. invites) │ (Y_C inflated) │
├───────────────────────┼─────────────────────────────────┼─────────────────────────────────┤
│ Negative Spillover │ Treatment steals activity/time │ Overestimate / Upward Bias │
│ │ from Control (zero-sum budget) │ (Y_C depressed) │
└───────────────────────┴─────────────────────────────────┴─────────────────────────────────┘
Downward Bias (Underestimating True Benefit)
- Condition: Positive Spillover ($\text{Treatment} \rightarrow \text{Control}$). Treated users induce control users to interact more.
- Mechanism: A treated user gains access to Group Calls and sends invites or out-of-band links to control friends. The control users join or respond, elevating $\bar{Y}_C$ above its unexposed baseline $E[Y(\mathbf{0})]$.
- Result: $\hat{\tau}_{\text{naive}} = \bar{Y}_T - \bar{Y}_C$ is biased downward. The measured treatment effect is smaller than the true launch impact because the control group was indirectly boosted by the feature.
- Real-World Example: File sharing or collaborative document editing. When treated users share a document with untreated contacts, untreated users sign up or log in to view it, artificially driving up control group engagement.
Upward Bias (Overestimating True Benefit)
- Condition: Negative Spillover ($\text{Treatment} \rightarrow \text{Control}$). Treated users siphon fixed resources or time away from control users.
- Mechanism: Time or social attention is a zero-sum budget. Treated users shift their communications into newly accessible treatment channels (e.g., group calls), reducing their 1:1 interactions with control users. This depresses control group engagement $\bar{Y}_C$ below $E[Y(\mathbf{0})]$.
- Result: $\hat{\tau}_{\text{naive}} = \bar{Y}_T - \bar{Y}_C$ is biased upward. The feature appears highly successful relative to control, but part of the observed lift is merely stolen activity from untreated users.
- Real-World Example: Marketplace driver dispatch or ad auctions. Giving treated drivers an algorithmic advantage causes them to capture rides that would have otherwise gone to control drivers, artificially depressing control earnings.