Designing an Experiment for an AI Conversation Assistant in Community Forums
Statistics & ExperimentsModel answerLast updated
Design an A/B test for a proactive AI assistant in forum threads, covering metrics, randomization, and evaluation of novelty and interaction effects.
Scenario
A large online community platform wants to roll out an AI-powered conversation assistant that proactively surfaces relevant discussion prompts to users browsing forum threads. The product team hopes this feature will deepen community engagement and encourage users to participate more actively in discussions.
Task
Design an end-to-end A/B test to evaluate whether this AI assistant achieves its goal. Your answer should cover:
- Metric Definition: Choose a primary success metric and at least two guardrail metrics that protect against unintended harm to the platform or its users.
- Experiment Design: Explain how you would randomize users or units into treatment and control, and how you would determine the required sample size.
- Evaluation: Describe how you would interpret the results, specifically accounting for novelty effects, interaction with concurrent experiments, and the risk that the feature feels intrusive or spammy to the community.
Constraints
- You have access to standard event-logging infrastructure (impressions, clicks, comments, votes, etc.).
- The platform's users are known to react negatively to features that feel like advertising or corporate interference.
- The AI assistant requires real-time inference, so latency and compute cost per impression are meaningful concerns.
Hints
Hint 1
Think about whether user-level randomization is valid here. If a treated user's AI-prompted comments appear in threads that control users also read, does that violate independence assumptions?
Hint 2
Consider clustering at a higher level of randomization to capture spillover effects within shared discussion spaces.
Hint 3
Separate novelty-driven engagement from durable value by analyzing treatment effects relative to time since first exposure rather than calendar date.
Model answer
Medium Try it yourself first — then compare your approach, complexity and edge cases.
A strong answer translates the vague goal of "deeper engagement" into measurable metrics, recognizes that shared threads break standard independence assumptions, and separates a genuine lift from a short-lived curiosity spike while weighing cost and community backlash.
1. Metric Definition
Primary metric: Quality-weighted contributions per eligible user over a 14-day window. A "quality-weighted contribution" is a human-authored comment or post that receives at least one reply or a net-positive vote from another user. This filters out low-effort responses and bot-to-user chatter, focusing on whether the feature actually stimulates real community interaction rather than inflating message volume with superficial activity.
Diagnostic metrics (for understanding, not shipping decisions):
- Suggestion click-through rate
- Average reply depth in threads (share of threads reaching two or more levels)
- Distinct commenters per thread
- Session duration in thread pages
Guardrail metrics with pre-registered non-inferiority thresholds:
- Intrusion signals: dismiss/mute rate, "report assistant" actions, moderator mail complaints. Threshold: no more than a 5% relative increase. This captures the "feels like spam" risk directly.
- Content quality: moderator removal rate, downvote ratio, toxicity classifier score. Threshold: no more than 2% relative degradation. Engagement bought with lower quality is a net loss.
- Retention: 7-day and 28-day return rates, subreddit unsubscribe rate. Threshold: no more than 0.5% relative drop.
- System health: p95 thread-page latency, error rate. Threshold: p95 regression under 50 ms. AI inference can slow the core product experience.
- Cost: compute cost per 1,000 impressions and per incremental contribution. Threshold: within the agreed budget envelope.
2. Experiment Design
Randomization unit: the forum community (cluster randomization).
User-level randomization violates the stable unit treatment value assumption here. A treated user's AI-prompted comments appear in threads that control users read and reply to, contaminating the control group and biasing the measured effect toward zero. It also misses the real question: does the community as a whole interact more?
Cluster randomization at the forum level captures these spillovers. The trade-offs are manageable with proper technique:
- Stratify by community size, topic category, and baseline activity level. Use matched pairs or stratified assignment to balance arms.
- Handle large communities separately. A few massive forums can dominate variance. Exclude or isolate them so they don't skew the estimate.
- Respect clustering in analysis. Compute the metric at the forum level or use cluster-robust standard errors. Never treat individual users as independent observations.
- Reduce variance with CUPED. Adjust each unit's post-experiment metric by its pre-experiment baseline. This typically cuts variance by 30 to 50 percent.
- Moderator opt-outs. Analyze intent-to-treat based on assignment, not actual exposure, so opt-outs don't introduce selection bias. Report the opt-out rate as a guardrail.
Sample size. For a two-sided test at alpha 0.05 and power 0.8, the per-arm formula is approximately 15.7 times sigma squared divided by delta squared.
Worked example treating "at least one quality contribution in 14 days" as a binary outcome:
- Baseline rate p = 10%, so variance = 0.09.
- Minimum detectable effect: 2% relative, so delta = 0.002.
- This yields about 353,000 users per arm if users were independent.
Clustering inflates this by the design effect 1 + (m − 1) × ICC. With about 2,000 eligible users per forum and an intra-class correlation of 0.01, the design effect is roughly 21, pushing the requirement to about 7.4 million users or roughly 3,700 forums per arm. CUPED with 40% variance reduction brings this down to around 2,200 forums per arm.
Duration: at least four weeks to cover weekly seasonality and leave time for novelty effects to decay. Also compute the minimum detectable effect for each guardrail so a "no harm" result actually has the power to support that claim.
Pre-launch checks: run an A/A test to validate the pipeline and variance estimates, and monitor for sample ratio mismatch at both the forum and user level.
3. Evaluation
Validity checks before reading results:
- Confirm no sample ratio mismatch.
- Verify symmetric exposure logging. Control should log a counterfactual "would have shown" impression so triggered analyses compare like with like.
- Check pre-period balance between arms.
Novelty effect. An initial spike may reflect curiosity rather than lasting value. To separate the two:
- Plot treatment effect against days since first exposure, not calendar date. A durable effect plateaus; a novelty effect decays toward zero.
- Compare new users (who have no prior baseline to feel novelty against) with tenured users.
- Base the ship decision on the effect in weeks 3 and 4, not the full-period average.
- After launch, keep a 5% holdout of forums for two to three months to confirm durability and catch slow-moving harms like retention erosion or community norm drift.
Interaction effects:
- Check overlap with concurrent experiments on thread ranking or comment UI. Use orthogonal layering or test for treatment-by-experiment interaction.
- Pre-register heterogeneous effect segments: forum size, category, user tenure, platform. Small niche communities may react with hostility while large ones benefit, and a blended average can hide that.
- Apply Benjamini-Hochberg correction across the many segment and metric comparisons to control false positives.
Pre-registered decision rule:
- Ship if the primary metric shows a significant lift in the post-novelty window, every guardrail passes non-inferiority, and cost per incremental contribution is justified.
- Iterate if the primary metric wins but any guardrail fails.
- Do not ship if the lift appears only in the first week.
A common mistake is choosing raw message volume as the primary metric. The AI can inflate it with low-effort replies or bot-to-user conversation, neither of which reflects deeper community interaction. Another is ignoring clustering and treating users as independent, which produces confidence intervals that are far too narrow and leads to shipping features that don't hold up. Finally, skipping the long-term holdout means you may miss slow-moving harms that only appear after the novelty wears off and the feature settles into steady-state usage patterns.