Detecting and Evaluating Uncredited Reposts
Easy · Analytics & Experimentation · Data Scientist · Technical Screen
Prompt
You are a Data Scientist working on a short-form social feed product. Product leadership suspects a surge in uncredited reposts—accounts copying text, images, or videos from earlier creators without attribution—and the engineering team has built a new detection-and-ranking intervention to curb them.
Walk through how you would investigate the problem and evaluate the intervention across four areas:
- Data & instrumentation gaps: Suppose your warehouse currently exposes only a minimal posts table (
post_id,author_id,created_at,type,content,parent_id). What additional telemetry, metadata, and labels would you collect to distinguish genuine plagiarism from benign look-alikes? - Detection blind spots: Assuming you field an automated detection pipeline (such as near-duplicate hashing, multimodal embeddings, heuristic rules, or a supervised pair classifier), what are its major limitations and failure modes?
- Ecosystem & system harms: How do uncredited reposts damage original creators, everyday viewers, and business health? Include at least one way they distort product metrics or corrupt machine-learning ranking feedback loops.
- Causal evaluation plan: Design an online experiment (or quasi-experiment where randomization is infeasible) to verify that the new intervention lowers uncredited reposts without harming legitimate activity. Cover:
- Your primary success metric, diagnostic metrics, and guardrail metrics
- Your strategy for mitigating confounders and biases (such as seasonal spikes, shifting creator cohorts, or account suspensions)
- How you will confirm ground-truth accuracy despite noisy, delayed, or evaded labels
- A concrete ship / iterate / roll back decision framework
Scope & Expectations
- Define what qualifies as an uncredited repost operationally, and group requested telemetry by authorship provenance, prior viewer exposure, attribution, consent, and human review labels.
- Analyze practical detector pitfalls including cross-platform scraping, memes and trends, adversarial evasion, and the low-prevalence false-positive trap.
- Connect creator churn and viewer fatigue to inflated engagement counters and self-reinforcing recommender bias toward content aggregators.
- Design a rigorous experiment using a non-circular, impression-weighted primary metric, appropriate unit randomization, label-maturity controls, and pre-registered launch thresholds.
Step-by-step walkthrough
Define an uncredited repost precisely before touching data
Before requesting logs, building a classifier, or choosing an A/B test metric, write down an unambiguous operational definition of what counts as an uncredited repost (a "stolen post"):
Post B is stolen if it reproduces distinctive content (text, image, video, or audio) from an earlier Post A created by a different person, without visible attribution to A's creator and without permission.
Every word in that definition rules out a common false alarm:
- Distinctive content: Everyday phrases (
"happy friday everyone"), blank meme templates, famous quotes, song lyrics, and breaking-news headlines belong to nobody. - A different person: A creator cross-posting from a secondary account, or a company's regional brand handles sharing the same announcement, is self-reposting rather than theft.
- Without visible attribution: Native reposts and quote-posts (where
parent_idis populated),"credit: @alice"text, links to the source, or intact creator watermarks already give credit. - Without permission: Licensed news aggregators, talent agencies, and authorized fan clubs repost legally, even when permission is invisible inside raw post text.
Finally, note that harm scales with reach (impressions), not raw post count: a stolen viral video that racks up
400,000views inflicts vastly more damage than an uncredited joke seen by10friends. That insight shapes our evaluation metrics later.- Distinctive content: Everyday phrases (
Request the additional data needed beyond the basic post table
The starter schema (
post_id,author_id,created_at,type,content,parent_id) can show that two posts look alike on our app, but cannot prove multi-modal similarity, true authorship, prior exposure, or consent. Request additional signals grouped by the exact question each signal resolves:Question to resolve Additional data to request Do two posts carry the same content across formats? Normalized text, near-duplicate hashes, semantic embeddings (dense numeric vectors where paraphrases and translations sit close together), OCR text (optical character recognition extracted from screenshots), image perceptual hashes (visual fingerprints resilient to resizing/cropping), audio/video fingerprints, and EXIF/encoding metadata Which post is genuinely the original? Millisecond upload & edit history, deleted posts, client upload source (live camera capture vs camera-roll download), and external web/cross-platform first-seen timestamps Did B's author actually see Post A first? Impression logs ( did author B view Post A before posting B?), plus tap-to-copy-text, save-image, video-download, and share-sheet events by author B on Post AWas attribution given outside parent_id?Parsed @mentions, outbound URLs,"via / credit / h/t"strings, follow-up self-replies crediting the source, and watermark-detection flagsDid the original creator consent or own both accounts? Creator copyright/claim submissions, syndication allowlists, and same-owner account-linking signals (shared verified phone/email or device tokens under strict privacy controls) Is this account a repeat content-farming bot? Account age, follower/following ratio, posting cadence, historical duplicate share, prior policy strikes, and API/automation fingerprints What is human ground truth (and how slow is it)? User report events ( "stole my post"), human moderator rubric labels, creator appeal outcomes, and exact timestamps for each report/decisionHow much reach shifted, and what did the algorithm do? Impressions split by surface (in-network following vs algorithmic For-You feed), engagements/follows/payouts earned, plus model score, version, action taken (demote, label, block), and experiment bucket Why exposure logs are gold: Two strangers occasionally type a similar short joke independently, so text similarity alone is circumstantial. Seeing that
author_Bviewedpost_Afor 8 seconds, tapped Copy Text, and publishedpost_B90 seconds later turns similarity into near-certain plagiarism.Build a two-stage detection pipeline
Comparing every new post against hundreds of millions of historical posts pairwise (
N × Nwork) is computationally impossible. Production systems split detection into Stage 1 (cheap candidate retrieval) and Stage 2 (rich pair classification + tiered enforcement):- Normalize & fingerprint: Lowercase text, strip URLs and boilerplate, extract word shingles (sliding windows of
kconsecutive words), and compute image perceptual hashes, OCR text, and semantic embeddings. - Retrieve likely matches fast: Use MinHash with Locality-Sensitive Hashing (LSH) (a fast randomized hashing method that drops similar shingle sets into the same hash bucket so only likely duplicates get compared) for text, Hamming-distance indexes for perceptual hashes, and approximate nearest-neighbor search for embeddings.
- Filter direction, credit, and ownership: Check timestamps,
parent_id/mentions, same-owner links, and licensed allowlists. - Score candidate pairs & tier actions: Feed pair features (similarity, phrase rarity, prior exposure, time gap, account history) into a supervised classifier and match action severity to confidence—auto-blocking or demoting only at very high precision while routing borderline matches to attribution labels or human review.
Measure text overlap on
k-word shingles using Jaccard similarity (|A ∩ B| ÷ |A ∪ B|, the fraction of unique shingles shared between two sets):def word_shingles(text, k=3): """Split text into a set of overlapping k-word tuples (falling back to whole text if short).""" words = text.lower().split() if not words: return set() if len(words) < k: return {tuple(words)} # Slide a window of length k across the word list. shingles = set() for i in range(len(words) - k + 1): shingles.add(tuple(words[i:i + k])) return shingles def jaccard_similarity(set_a, set_b): """Compute |A intersect B| / |A union B|, returning 0.0 when both sets are empty.""" if not set_a and not set_b: return 0.0 return len(set_a & set_b) / len(set_a | set_b) original = "Just saw the northern lights from my backyard in Ohio wow" plagiarized = "just saw the northern lights from my backyard wow" # 9 shingles in original, 7 in plagiarized; 6 overlap out of 10 distinct -> 6 / 10 = 0.6 print(jaccard_similarity(word_shingles(original, 3), word_shingles(plagiarized, 3))) # 0.6With MinHash LSH using
100hash functions grouped intob = 20bands ofr = 5rows each, two posts with true Jaccard similarityscollide in at least one bucket with probability1 − (1 − s^5)^20:s = 0.3 -> 4.7% | s = 0.5 -> 47.0% | s = 0.6 -> 80.2% | s = 0.8 -> 99.96%Always weight matches by phrase rarity (IDF) and enforce minimum length—otherwise two users posting
"good morning everyone"(s = 1.0) would trigger false positives!- Normalize & fingerprint: Lowercase text, strip URLs and boilerplate, extract word shingles (sliding windows of
Analyze the drawbacks and failure modes of detection
Every plagiarism detector faces six structural limitations you should call out proactively:
- First on our app does not prove authorship: If a scraper copies a viral post from TikTok or Reddit onto our app at
10:00 AM, and the real creator cross-posts their own work at11:00 AM, naive timestamp ordering punishes the real creator as the thief! - Benign viral duplication: Copypasta memes, song lyrics, sports scores, and breaking headlines produce exact matches without malicious intent.
- Unobserved attribution and off-platform consent: Credit placed inside a follow-up reply, spoken in audio, or covered by a private syndication deal is easy for automated rules to miss.
- Adversarial evasion: Once enforcement launches, bad actors adapt—using LLMs to paraphrase sentences, cropping/mirroring videos, overlaying filters, or posting screenshots of text to bypass text hashes. Over time, easy copies vanish and remaining thieves become harder to catch.
- Biased, delayed ground-truth labels: User reports skew heavily toward famous creators whose fans spot copies, arrive days after most impressions already happened, and almost never cover unflagged posts—making raw user reports useless for measuring missed theft.
- The low-base-rate precision trap: Suppose only
1%(prevalence, or base rate) of1,000,000daily posts are truly stolen (10,000stolen,990,000legitimate). Even a strong model with90%recall (fraction of true thefts caught) and a2%false-positive rate produces terrible precision (fraction of flagged posts that are actually stolen):
True positives (caught thefts) = 10,000 stolen × 0.90 = 9,000 False positives (innocent posts) = 990,000 legit × 0.02 = 19,800 Precision = 9,000 / (9,000 + 19,800) = 9,000 / 28,800 = 31.25%More than **two out of every three** automatic takedowns would hit legitimate users! Automated removals therefore demand ultra-low false-positive thresholds, reserving softer actions (ranking demotion or attribution prompts) for uncertain scores.- First on our app does not prove authorship: If a scraper copies a viral post from TikTok or Reddit onto our app at
Map user, creator, platform, metric, and feedback-loop harms
Stolen posts damage people, business health, product metrics, and ML systems simultaneously:
- Original creators: Lose attribution, follower growth, ad-revenue share, and motivation. When small creators watch big aggregators harvest their best jokes, they stop posting original work—starving the platform's unique content supply.
- Users (viewers): Suffer repetitive feeds, stripped context (old disaster videos reposted as breaking news today), and bait-and-switch scams once thief accounts sell or pivot their farmed audiences to spam links.
- Platform: Faces DMCA copyright takedown costs, brand-safety risk for advertisers, and reputational decay as an unoriginal clone feed.
- Corrupted product metrics: Plagiarized posts inflate Total Posts Created and short-term Engagement, masking a dangerous drop in Unique Original Posts and misdirecting creator fund payouts to aggregators.
- Self-reinforcing ML recommender feedback loop: Feed-ranking models optimize predicted engagement. Because thieves cherry-pick posts already proven to go viral, copies achieve high click/like rates and teach the ranker the wrong lesson:
Original creator (5k followers) posts joke A -> 10,000 views Aggregator account (500k followers) copies B -> 400,000 views (97.6% of total exposure!) | v Ranking ML model sees huge engagement on B -> boosts aggregator's authority score | v Future stolen posts by aggregator get MORE For-You distribution -> more reward to steal!Design the experiment, metrics, and stratified audit budget
- Primary metric — Stolen-Post Impression Share:
Impressions on confirmed stolen posts ÷ Total platform impressions, evaluated via blind human review on sampled impressions in both control and treatment. Weighting by impressions measures true ecosystem harm, and using an independent human audit avoids circularity: never use the new algorithm's own flag count as the primary metric, because removing posts the algorithm flags forces "flagged impressions" down mechanically even if the model is wrong or easily evaded! - Diagnostic metrics (explain why the primary moved): Audited stolen posts created per
1,000posts (deterrence), action rate + audited precision/recall by action tier, median latency from upload to enforcement, impression share captured by originals vs copies,"stolen content"user reports per million views, and creator appeal overturn rate. - Guardrail metrics (protect product health): Original posts per active creator, small-creator 28-day retention, DAU and session time, engagement per impression, legitimate native reposts/quote-posts, false-positive rate on memes/news, serving latency/compute cost, and precision across non-English languages.
- Choose the randomization unit to match the intervention:
- If the algorithm only demotes copies during feed ranking, viewer-level randomization cleanly measures exposure changes (though not creator deterrence).
- If the algorithm acts on posts or accounts (blocking uploads, adding public labels, issuing strikes), randomize at the author level clustered by account owner (so multi-account thieves cannot dodge treatment) for at least 4 full weeks, clustering standard errors by author. Note subtle feed spillover: removing a treatment-arm thief's copy frees feed slots filled partly by control-arm originals.
Estimate raw human-labeling volume upfront before running the test (
0.5%baseline stolen exposure vs a20%relative cut to0.4%, at two-sidedalpha = 5%and80%power):def samples_per_arm(p_control, p_treatment, z_alpha=1.96, z_power=0.84): """Independent impressions needed per arm for a two-proportion test (alpha=5%, power=80%).""" pooled_var = p_control * (1.0 - p_control) + p_treatment * (1.0 - p_treatment) effect = p_control - p_treatment return (z_alpha + z_power) ** 2 * pooled_var / (effect ** 2) print(round(samples_per_arm(0.005, 0.004))) # 70239 independent impressions per armAuditing
70,000+random impressions per arm (even more once author/viral-post clustering inflates variance) is expensive because99.5%are clean. Solve this with stratified sampling: sample100%(or a high fraction) of impressions that match any loose candidate-similarity pre-filter, sample a smaller random slice of completely unmatched impressions to catch pre-filter blind spots, and combine both strata using inverse-probability weights (with a post/author-clustered bootstrap for confidence intervals).- Primary metric — Stolen-Post Impression Share:
Control confounding, survivorship bias, and delayed or evaded labels
- Confounding & bias inside a randomized test:
- Verify split health via Sample Ratio Mismatch (SRM) checks and pre-experiment balance, and apply CUPED (Controlled-experiment Using Pre-Experiment Data, a regression adjustment using each author's pre-test duplicate rate to shrink variance).
- Prevent enforcement survivorship bias with Intent-to-Treat (ITT): If treatment suspends repeat offenders, comparing only still-active authors biases the denominator. Keep every randomized author in their assigned arm (
0new stolen posts after suspension). - Track week-over-week decay: Plot treatment effect separately for Weeks 1, 2, 3, and 4 to detect thief adaptation early.
- When randomization is impossible (e.g., legal/policy launch across an entire country): Use Difference-in-Differences (DiD) (comparing before-vs-after change in the launched market against before-vs-after change in a matched unlaunched market after verifying parallel pre-trends over ~8 prior weeks):
Launched market: 1.0% -> 0.7% stolen exposure (change = −0.3 percentage points) Comparison market: 1.1% -> 1.0% stolen exposure (change = −0.1 pp from seasonality) Net causal effect: (−0.3) − (−0.1) = −0.2 percentage points (−20% relative reduction)- Validate label quality, delayed labels, and proxy honesty:
- Rubric + inter-rater agreement: Give reviewers a concrete rubric (memes, quotes, watermark credit) blind to treatment arm, double-label a subset, and check Cohen's kappa (agreement beyond chance:
(observed − chance) ÷ (1 − chance)). If two raters agree on180/200(90%) posts and each flags20%(chance = 0.20² + 0.80² = 68%),kappa = (0.90 − 0.68) / (1 − 0.68) = 0.69. - Fixed label maturity window: Creator claims and appeals take days to arrive. Evaluate posts created in Days
1–14using claims collected through Day28so both arms share identical label maturity. - Audit proxy recall across arms: If thieves in treatment switch to screenshots, automated detector recall might drop from
60%in control to40%in treatment—making1.0%true theft look like0.6%vs0.4%(a fake33%win!) unless blind human audits verify recall in both arms.
- Rubric + inter-rater agreement: Give reviewers a concrete rubric (memes, quotes, watermark credit) blind to treatment arm, double-label a subset, and check Cohen's kappa (agreement beyond chance:
- Confounding & bias inside a randomized test:
Pre-register the launch, iterate, and rollback decision rule
Lock in launch criteria before unblinding results, separating a small set of decision guardrails from informational monitoring metrics (testing 12 independent guardrails at
5%significance creates a1 − 0.95^12 ≈ 46%chance of at least one false alarm unless you apply a multiple-testing correction like Bonferroni):- Launch if all three conditions hold:
- Audited stolen-post impression share drops significantly (
p < 0.05) and meets the minimum practically meaningful target (e.g.,>= 15%relative reduction). - Audited precision of automated enforcement has a 95% lower confidence bound
>= 85%across every major language, and appeal overturns stay below cap. - Core decision guardrails stay within pre-set non-inferiority margins (maximum tolerable tiny dip—e.g., original posts created no worse than
−0.5%, small-creator retention no worse than−0.3 pp).
- Audited stolen-post impression share drops significantly (
- Iterate if stolen exposure drops nicely but precision or a specific language/meme segment misses bar: calibrate model thresholds using cost-benefit math—act when
p × Benefit > (1 − p) × Harm, orp > H / (B + H). If wrongly deleting an original post causes4×more harm than deleting a copy (H = 4B), auto-remove only whenp > 0.80, while applying gentler"Possible original: @alice"attribution banners (H = B) down top > 0.50. - Roll back if decision guardrails breach their limits or a well-powered audit shows flat stolen-post exposure. After launching, maintain a
1–5%long-term holdout and recurring blind audits to catch adversarial drift.
- Launch if all three conditions hold:
Intuition & how it works
Think of fighting stolen posts on a social app like catching plagiarized essays across a university of 100 million students—while simultaneously running a scientific study to prove your new honor-code filter reduces cheating without accidentally punishing students who quoted a famous book or shared a campus meme.
Two naive shortcuts fail every time in practice. First, flagging every near-identical post by text/image similarity alone fails because memes, breaking news headlines, licensed aggregators, and cross-posting creators look identical to plagiarism unless you check who saw what first, attribution, and permission. Second, evaluating the new algorithm by checking whether the algorithm's own flag count went down is completely circular: a treatment that deletes flagged posts—or pushes thieves to post screenshots that evade the detector—makes flags drop on paper even if viewers still see just as much stolen content.
Walk through two concrete numbers to see how both detection and evaluation work cleanly. First, suppose 1% (prevalence, or base rate) of 1,000,000 posts are stolen (10,000 stolen, 990,000 legitimate). Even a classifier with 90% recall (9,000 thefts caught) and a 2% false-positive rate (19,800 false alarms) yields only 9,000 / (9,000 + 19,800) = 31.25% precision—meaning two-thirds of automatic removals would hit innocent creators unless we combine strong exposure signals (author B viewed Post A 90 seconds before posting B) and tiered confidence thresholds (p > 0.80 for removal vs p > 0.50 for soft attribution labels). Second, to verify a real reduction from 0.5% to 0.4% stolen-post impressions without circularity, we run a 4-week owner-clustered author A/B test and measure stolen-post impression share via blind, stratified human audits alongside creator-supply guardrails.
Key points
- Operationalize "stolen" carefully. Require four elements—distinctive content, earlier creation by a different owner, no visible credit, and no permission—and weight metrics by impressions rather than post counts because viral copies drive almost all real harm.
- Gather context beyond raw post rows. Combine multi-modal fingerprints (word shingles for text overlap, OCR for screenshots, perceptual hashes for cropped/re-encoded media, and neural embeddings for paraphrases/translations) with prior exposure logs (
did B's author view/copy/download A?), edit/upload metadata, mentions/watermarks, creator claims, allowlists, and owner account-linking. - Use two-stage retrieval plus cost-sensitive tiers. Filter millions of posts cheaply via MinHash LSH (Locality-Sensitive Hashing) and vector indexes, score candidate pairs with a classifier, and set enforcement cutoffs via
p > H / (B + H)so high-harm removals require much higher precision than soft ranking demotions or credit labels. - Account for detection failure modes. Earliest timestamp on our app fails when thieves scrape external platforms first; memes and trends create benign duplicates; adversaries adapt with LLM paraphrases and screenshots; and low base rates (
~1%) turn small false-positive rates into poor precision. - Capture metric distortion and ML feedback loops. Beyond hurting creator income/retention, viewer feed quality, and platform DMCA liability, stolen viral hits inflate engagement metrics and trick engagement-trained ranking models into promoting aggregator accounts over original creators.
- Evaluate via blind stratified audits and proper randomization. Use blind human-audited stolen-post impression share as the primary metric, pair it with deterrence/precision diagnostics and creator-retention guardrails, randomize by owner-clustered authors when acting on posts (using intent-to-treat to avoid suspension survivorship bias, or Difference-in-Differences across matched markets when randomization isn't possible), lock label maturity windows, and pre-register launch/iterate/rollback thresholds.
Common mistakes
- Using the detector's own flag rate as the primary experiment metric: Deleting flagged posts or triggering thief evasion drives model flags down automatically even when real viewer exposure to stolen content did not improve.
- Counting raw stolen posts instead of stolen impressions: Treating a
10-view copied joke identically to a400,000-view stolen viral video mismeasures both harm and model impact. - Assuming earliest timestamp on your platform proves authorship: Cross-platform scrapers routinely upload content before the real creator cross-posts it.
- Ignoring the base-rate trap (
accuracyvsprecision): A98%-accurate classifier (2%false positives) still punishes~2innocent posts for every1true theft when true prevalence is1%. - Randomizing viewers to measure creator deterrence: Viewer-level A/B splits cannot tell whether enforcement discouraged thieves from uploading copies in the first place.
- Dropping suspended accounts from treatment denominators: Analyzing only surviving active authors introduces survivorship bias; always analyze Intent-to-Treat (ITT) across all originally assigned authors.
- Comparing unmatured user reports across arms: Reports take days to arrive and change mechanically when posts are removed or labeled, making raw report counts biased as a primary metric.
Follow-up questions
- How can you measure your plagiarism detector's recall in production when unflagged posts rarely get reviewed? Auditing flagged posts only measures precision; measuring recall (
caught thefts ÷ all true thefts) requires blind human review on a sample of posts the detector did not flag. Because sampling purely at random among1,000,000unflagged posts finds very few thefts (6stolen out of2,000audited estimates~3,000missed thefts with a wide confidence interval), stratify unflagged posts by model score and candidate similarity—sampling heavily right below the action threshold and lightly near zero—then combine strata with inverse-probability weights to get a tight recall estimate on a modest review budget. - How does your attribution logic break when a scraper uploads content from an external app before the real creator posts it here? When a thief scrapes a viral video from another app before the real creator cross-posts here, our local
created_atordering flips victim and thief. Mitigate this by indexing public fingerprints from major external platforms, inspecting upload provenance (camera-roll downloads carrying third-party metadata or watermarks vs native camera captures), letting verified creators link external profiles for fast claim resolution, and applying softer actions (attribution prompts or review) whenever external-origin signals fire. - Why is the volume of user plagiarism reports a poor primary metric for an A/B test? User reports suffer from severe selection bias (famous creators with big fanbases get notified while small creators rarely notice copies), multi-day reporting delays, and direct treatment interference: deleting copies prevents viewers from ever seeing or reporting them, whereas adding a
"Similar to @alice"label might actually increase clicks on the report button! Keep report rate as a fast diagnostic signal and audit candidate source, while anchoring launch decisions on blind, stratified human audits of impressions.
Follow-up questions
- How can you measure your plagiarism detector's recall in production when unflagged posts rarely get reviewed?
- How does your attribution logic break when a scraper uploads content from an external app before the real creator posts it here?
- Why is the volume of user plagiarism reports a poor primary metric for an A/B test?
Similar questions
- Social Feed Reply Engagement Metrics
- Independent vs. Stratified Ad Placement in a 100-Item Feed
- Customer Support Costing, Metric Drops, and Order Defects
- Causal Evaluation of a Regional Feature Rollout
- Evaluating a Paid-Plan Trial Experiment
- Experiment Analysis Under Margin and Capacity Trade-Offs