Designing Falsifiable NLP Experiments: Power, Annotation, and Paired Inference

CMU Advanced NLP · Lecture 14: Research Skills and Experimental Design

NLP
Experimental Design
Power Analysis
Annotation
Statistics
How to turn NLP ideas into falsifiable research questions, size evaluation sets via statistical power analysis, measure chance-corrected inter-annotator agreement, and isolate real model differences with paired inference.
Author

Chao Ma

Published

December 1, 2026

Running an experiment before specifying what would falsify the hypothesis wastes compute, annotator budget, and analysis time. A percentage gain on a test set tells us very little unless the research question isolates why a change helps, the evaluation set has enough statistical power to detect the target effect, and the annotated labels rest on both task validity and chance-corrected rater consistency.

Sean Welleck’s Lecture 14 on the CMU Advanced NLP Fall 2025 schedule (slides PDF, 59 pp.; course code in 14_experimental, linked as 14_experimentation on the syllabus; instructor’s Fall 2025 lecture recording on YouTube, posted separately from the syllabus table) walks through the full empirical lifecycle in four stages:

  1. Statistical bridge from evaluation to study design: Summarizing standard errors, clustered benchmarks, unpaired vs. paired comparisons, and variance reduction from Miller (2024) (slides, pp. 2–15).
  2. Research framing and falsifiable hypotheses: Distinguishing application-driven and curiosity-driven questions, surveying prior work without getting boxed in, and decomposing broad "Does X help?" claims into explicit sub-hypotheses (slides, pp. 17–34).
  3. Statistical power analysis: Sizing test sets from a pilot study via the normal planning approximation \(n = \lceil (z_{\alpha/2}+z_\beta)^2(\omega^2 + \sigma_A^2/K_A + \sigma_B^2/K_B)/\delta^2 \rceil\), showing why halving the minimum detectable effect quadruples required items under fixed design assumptions, and separating resampling gains from the across-question variance floor (slides, pp. 42–46; power.ipynb).
  4. Data annotation, agreement, and analysis: Iterating annotation guidelines before hiring raters, measuring chance-corrected agreement with Cohen’s \(\kappa\), Fleiss’ \(\kappa\), and Krippendorff’s \(\alpha\), and pairing quantitative error bars with qualitative inspection (slides, pp. 37–41, 47–58; iaa.ipynb).

Two-panel chart titled Halving the Detectable Effect Quadruples Required Eval Items (4x). Panel A plots required paired items n on a base-10 logarithmic axis against minimum detectable difference delta in percentage points: saved power.ipynb snapshot points sit at 1,013 (3.0 pp), 2,279 (2.0 pp), 4,052 (1.5 pp), and 9,115 (1.0 pp), with a dotted callout linking 2.0 pp to 1.0 pp as a 4.0x jump under fixed design; Slide 45 prints 674 (672 from rounded 0.077) at 3.0 pp, and Miller Sec. 5 (omega^2 = 1/9) sits at 969 at 3.0 pp. Panel B uses a zero-baseline y-axis for fixed n = 198 and shows the author-plotted Miller Sec. 5 MDE curve dropping from 13.3 pp (Miller 13.2%) at K = 1 to 7.6 pp (Miller 7.5%) at K = 10, approaching an irreducible shaded floor at 6.64 pp set by omega^2 = 1/9.

Power analysis scaling and resampling limits across CMU ANLP Lecture 14 (Slides 44–45), the saved course notebook (power.ipynb), Miller (2024, §5), and author-plotted formula curves. Left (base-10 log scale): At 80% power and two-sided \(\alpha = 0.05\), halving the minimum detectable effect \(\delta\) from \(2.0\text{ pp}\) to \(1.0\text{ pp}\) increases required paired items \(4.0\times\) from \(2{,}279\) to \(9{,}115\) under fixed variance \(\hat{\omega}^2 = 0.1161\) (power.ipynb saved snapshot); Slide 45 prints \(n = 674\) at \(\delta = 3.0\text{ pp}\) (its displayed rounded \(\hat{\omega}^2 = 0.077\) gives \(672\)), and Miller (§5, \(\omega^2 = 1/9\)) gives \(n = 969\). Right (zero baseline): At fixed \(n = 198\) in Miller (2024, §5, \(\omega^2 = 1/9\), \(\sigma_A^2 = \sigma_B^2 = 1/6\)), resampling \(K_A = K_B\) from \(1\) to \(10\) reduces the MDE from \(13.27\text{ pp}\) (\(13.2\%\) printed) to \(7.57\text{ pp}\) (\(7.5\%\) printed), plateauing at an irreducible question-sampling floor of \(6.64\text{ pp}\) as \(K \to \infty\).

From evaluation inference to experimental design

Lecture 14 opens by connecting the statistical inference toolkit from Lecture 13 directly to how researchers plan new studies (slides, pp. 2–16). Before collecting data or running ablations, four estimators from Miller (2024) govern what an experiment can conclude:

  • Single-model uncertainty and clustering (slides, pp. 3–8): For \(n\) independently drawn questions with scores \(s_1, \dots, s_n\) and sample mean \(\bar{s} = \frac{1}{n}\sum_{i=1}^n s_i\), the i.i.d. standard error is \(\text{SE}_{\text{CLT}} = \sqrt{\frac{1}{n(n-1)}\sum_{i=1}^n (s_i - \bar{s})^2}\), yielding a \(95\%\) confidence interval \(\bar{s} \pm 1.96 \times \text{SE}\). When items are drawn in independent clusters \(c\) (such as MGSM translations of the same math problem, DROP questions sharing a passage, or RACE-H questions on one reading), within-cluster residual products add \(\frac{1}{n^2}\sum_c \sum_{i\in c} \sum_{j \in c,\, j \neq i}(s_{i,c}-\bar{s})(s_{j,c}-\bar{s})\) inside the variance under \(\text{SE}_{\text{clustered}}\) (slide 7). In general, within-cluster cross-terms can take either sign depending on item correlations; on the three empirical evaluations reported on slide 8 (Miller 2024, Table 4), clustering inflates standard errors by \(1.10\times\) on RACE-H (\(0.46\text{ pp} \to 0.51\text{ pp}\)), \(1.88\times\) on MGSM (\(0.86\text{ pp} \to 1.62\text{ pp}\)), and \(3.05\times\) on DROP (\(0.44 \to 1.34\) F1 pts).
  • Unpaired vs. paired comparison (slides, pp. 9–12): Comparing independent evaluations gives \(\text{SE}_{A-B}^{\text{unpaired}} = \sqrt{\text{SE}_A^2 + \text{SE}_B^2}\) and test statistic \(z_{A-B} = \hat{\mu}_{A-B} / \text{SE}_{A-B}\). Evaluating both models on the same items \((x_i, y_{A,i}, y_{B,i})\) reduces variance whenever model scores co-vary positively across questions: \[ d_i = s_{A,i} - s_{B,i}, \qquad \text{SE}_{A-B,\text{paired}} = \frac{s_d}{\sqrt{n}}, \qquad \operatorname{Var}(\bar{s}_A - \bar{s}_B) = \operatorname{Var}(\bar{s}_A) + \operatorname{Var}(\bar{s}_B) - 2\operatorname{Cov}(\bar{s}_A, \bar{s}_B), \] where \(s_d\) is the sample standard deviation of question-level differences \(d_i\) (slide 11; when questions share clusters, cluster the differences \(d_{i,c}\) as in Miller Eq. 8). On Miller’s hypothetical/fictional "Galleon" vs. "Dreadnought" example (Miller 2024, Table 5; slide 12), paired correlations (\(\rho = 0.37\)–\(0.64\)) isolate MATH (\(+2.5\text{ pp}\), \(95\%\) CI \((+1.2, +3.8)\text{ pp}\)) while showing HumanEval (\(-3.1\text{ pp}\), CI \((-7.2, +1.0)\text{ pp}\)) and MGSM (\(-2.7\text{ pp}\), CI \((-6.1, +0.7)\text{ pp}\)) cross zero.
  • Two levers to cut variance (slides, pp. 14–15): Because \(\operatorname{Var}(\hat{\mu}) = \operatorname{Var}(s)/n\), we shrink standard errors as \(1/\sqrt{n}\) by evaluating more questions. Under the Bernoulli plug-in convention \(\sqrt{\hat{p}(1-\hat{p})/n}\) at \(\hat{p} = 0.86\) on Slide 15, \(\text{SE}\) falls from \(0.0347\) at \(n=100\) to \(0.0110\) at \(n=1{,}000\) and \(0.0049\) at \(n=5{,}000\). When decoding is stochastic, resampling \(K\) outputs per question and averaging their scores cuts within-question variance.

Framing a falsifiable NLP research question

Slides 17–34 step back to the scientific method cycle: Observation/question \(\to\) Research topic area \(\to\) Form hypothesis \(\to\) Test with experiment \(\to\) Analyze data \(\to\) Report conclusions (returning to observation on slides, pp. 17–18). Two design choices determine whether an experiment yields clear scientific insight or an uninformative leaderboard run.

Application-driven vs. curiosity-driven research, and how ideas form

Welleck contrasts two complementary motivations (slides, pp. 19–21):

  • Application-driven research aims to build a useful system or improve one: sentiment summaries for movie reviews (Pang et al., 2002), conversational QA grounded in common context (Reddy et al., 2019), bottom-up content selection in abstractive summarization (Gehrmann et al., 2018), or language-agnostic subword segmentation via SentencePiece (Kudo & Richardson, 2018).
  • Curiosity-driven research aims to understand language or models: linguistic differences across news, satire, hoaxes, and propaganda (Rashkin et al., 2017, printed as "Rankin et al. (2017)" on Slide 21), whether all languages are equally hard to language-model (Cotterell et al., 2018), or where syntactic and semantic information lives inside BERT layers (Tenney et al., 2019).

Both motivations can enter via two discovery paths (slide 22): bottom-up discovery starts from a concrete failure of existing systems and generalizes to a broader question (effective for steady progress, though it can miss paradigm shifts), whereas top-down design starts from a high-level scientific question and builds concrete tests (favoring bigger leaps, but risking solving a non-problem or forcing a pre-chosen method onto an ill-fitting task).

When surveying the literature—via ACL Anthology, Google Scholar, arXiv, OpenReview (NeurIPS, ICLR, COLM, TMLR), and ICML, starting with the past 3–5 years and tracing citations backward and forward (slides, pp. 24–28)—the lecture flags a subtle tradeoff (slide 29): reading extensively prevents duplicate work and expands your methodological toolbox, yet over-immersion before formulating your own problem can constrain original thinking (citing Hal Varian, 1994).

Devising falsifiable hypotheses instead of "Does X make Y better?"

A research question states explicitly what you want to know—often framed better as a yes-no question than an open-ended “how to”—and a hypothesis states your a priori answer in a falsifiable form so that one experimental outcome validates it and the opposite outcome disproves it (slide 31).

Framing style Lecture example (slides, pp. 32–34) Lecture annotation / prior Diagnostic behavior if a test fails
Monolithic yes/no trap “Does X make Y better?” (e.g., Zhang et al., 2021 on contextual E2E speech translation: “whether and how contextual information benefits E2E ST”) Slide 33 annotation: “Probably will help?” If final score does not improve, slide 34 asks how you tell what went wrong—an unresolved aggregate score cannot pinpoint which assumption failed
Sub-question decomposition Qi et al. (2018) on pretrained embeddings in NMT: splits into Q1–Q5 (language family, training data size, source–target similarity, embedding alignment, bilingual vs. multilingual) Slide 33 priors: Yes?, Yes?, Not much?, Yes?, Unclear Probes each stated assumption separately (though a nonsignificant test can leave an effect unresolved rather than isolating a mechanism on its own)
Curiosity-driven contrast Cotterell et al. (2018): “Are all languages equally hard to language-model?”; Reddy et al. (2021) (printed as "Reddy et al. (2018)" on Slide 32): “What makes a particular podcast broadly engaging?” Rejects naive cross-linguistic parity; probes measurable linguistic correlates Ties empirical observations to specific hypotheses about language structure or listener engagement

The warning on slide 34 is practical: behind any proposal “X makes Y better”, you already hold intuitions about why X helps. Turning those intuitions into explicit sub-hypotheses gives you diagnostic leverage even when the headline metric stays flat.

Four-stage horizontal diagram titled Falsifiable Research Loops Test Why a Method Works, Not Just Whether It Wins, labeled Author Synthesis of CMU ANLP Lecture 14 Experimental Workflow (Slides 7-58). Stage 1 Frame and Survey (Slides 19-29) lists application vs curiosity modes, bottom-up vs top-down discovery, and literature venues with the Varian 1994 caveat. Stage 2 Falsifiable Hypotheses (Slides 31-34) contrasts the indirect trap Does X make Y better with Qi et al. sub-questions Q1, Q2, and Q4 plus lecture priors and a falsifiability contract. Stage 3 Power and Annotation Gate (Slides 38-52) shows pilot n0 = 156 estimating omega^2, the deterministic power formula n = ceil((z_a/2+z_b)^2 w^2 / d^2) giving 674 printed at d = 3 pp, guideline-first annotation, and Cohen's kappa quality gating. Stage 4 Paired Analysis and Report (Slides 7-15, 55-58) covers paired SE = s_d/sqrt(n) and clustered SEs, quantitative plus qualitative inspection, and an author reporting checklist, with a dashed feedback loop returning from error analysis to refine hypotheses and guidelines.

Author synthesis of the end-to-end experimental workflow across CMU ANLP Lecture 14 (Slides 7–58; Slide 17’s original six-step cycle returns from reporting to observation). Each stage enforces an explicit check: framing falsifiable sub-questions instead of monolithic “Does X help?” claims, sizing test sets via deterministic power analysis, gating human labels on Cohen’s kappa after guideline iteration, and combining paired/clustered SEs with qualitative failure inspection.

Statistical power analysis: how much test data is enough?

Once hypotheses are fixed, the next experimental decision is sample size (slides, pp. 42–46). Evaluating too few questions leaves real model improvements buried under sampling noise; annotating or running inference on far more than needed wastes budget.

Deriving the paired sample-size and MDE formulas

Assume we compare two systems \(A\) and \(B\) on the same \(n\) independently drawn questions (\(i = 1, \dots, n\)), sampling \(K_A\) responses from \(A\) and \(K_B\) responses from \(B\) per question (Miller 2024, §5 & App. B; slide 44). Decompose each question score as \(s_{M,i} = x_{M,i} + \epsilon_{M,i}\), where \(x_{M,i} = \mathbb{E}[s_{M,i} \mid q_i]\) is the model’s true conditional mean on question \(i\) and \(\epsilon_{M,i}\) captures per-question stochasticity (decoding or stochastic grading) with average variance \(\sigma_M^2 = \mathbb{E}[\sigma_{M,i}^2]\). Assuming conditionally uncorrelated repeated draws within each model and zero cross-model residual covariance (\(\operatorname{Cov}(\epsilon_{A,i}, \epsilon_{B,i}) = 0\)), let

\[ \omega^2 = \operatorname{Var}(x_A) + \operatorname{Var}(x_B) - 2\operatorname{Cov}(x_A, x_B) = \operatorname{Var}(x_A - x_B) \]

denote the across-question variance of the true paired performance difference. Under the average of \(K_A\) and \(K_B\) samples per question, the variance of the estimated mean difference \(\hat{\mu}_{A-B}\) across \(n\) questions is

\[ \operatorname{Var}(\hat{\mu}_{A-B}) = \frac{1}{n}\left(\omega^2 + \frac{\sigma_A^2}{K_A} + \frac{\sigma_B^2}{K_B}\right). \]

To plan for two-sided Type I error rate \(\alpha\) (false positive probability under \(H_0: \mu_A = \mu_B\)) and Type II error rate \(\beta\) (power \(1 - \beta\) under \(H_1: \mu_A - \mu_B = \delta\)), Miller’s Appendix B uses the standard normal planning approximation matching the rejection tail in the direction of \(\delta\) (exact two-sided normal power also adds a negligible opposite-tail term): \(\tilde{s}_{A-B} = z_{\alpha/2}\sqrt{\operatorname{Var}(\hat{\mu}_{A-B})}\) and \(\delta - \tilde{s}_{A-B} = z_\beta\sqrt{\operatorname{Var}(\hat{\mu}_{A-B})}\), where \(z_p = \Phi^{-1}(1-p)\). Eliminating \(\tilde{s}_{A-B}\) and taking the integer ceiling gives Miller’s Eq. (9) (slide 44; power.ipynb):

\[ n = \left\lceil \frac{(z_{\alpha/2} + z_\beta)^2 \left(\omega^2 + \frac{\sigma_A^2}{K_A} + \frac{\sigma_B^2}{K_B}\right)}{\delta^2} \right\rceil. \]

Two special cases and one pilot-design caveat govern practical planning:

  1. Deterministic decoding and evaluation (\(\sigma_A^2 = \sigma_B^2 = 0\), slide 44): The formula simplifies to \(n = \lceil (z_{\alpha/2} + z_\beta)^2 \omega^2 / \delta^2 \rceil\). Larger paired covariance \(\operatorname{Cov}(x_A, x_B)\) shrinks \(\omega^2\), and—holding variance \(\omega^2\), error rates (\(\alpha, \beta\)), and sampling design (\(K_A, K_B\)) fixed—halving the target effect \(\delta\) multiplies required \(n\) by \(4\times\) (up to integer ceiling rounding).
  2. Fixed benchmark size \(n\) (Miller 2024, Eq. 10): Inverting for the Minimum Detectable Effect (MDE) gives \[ \delta = (z_{\alpha/2} + z_\beta)\sqrt{\frac{\omega^2 + \sigma_A^2/K_A + \sigma_B^2/K_B}{n}}. \] When questions are grouped in clusters, Miller’s Appendix C replaces \(\omega^2, \sigma_A^2, \sigma_B^2\) with cluster-adjusted \(\omega_{\text{clustered}}^2, \sigma_{A,\text{clustered}}^2, \sigma_{B,\text{clustered}}^2\) and recommends sampling pilot data at the cluster level.
  3. Separating \(\omega^2\) from \(\sigma^2\) in stochastic pilots: A single response per model per pilot question (\(K=1\)) estimates the variance of observed differences (\(\omega^2 + \sigma_A^2 + \sigma_B^2\)), which cannot separate decoding noise \(\sigma_M^2\) from \(\omega^2\) to plan a different \(K\). Planning \(K\) under stochastic decoding requires replicated pilot draws (\(K > 1\), Miller App. C), and actual achieved power remains sensitive to uncertainty in the pilot variance estimate.

Reconciling Slide 45, power.ipynb, and Miller (2024) §5

Four concrete calculations across the lecture slides, saved course notebook, and primary reading show how \(n\) and \(\delta\) behave (at \(\alpha = 0.05 \implies z_{0.025} \approx 1.9600\), power \(1-\beta = 0.80 \implies z_{0.20} \approx 0.8416\), so \((z_{\alpha/2}+z_\beta)^2 \approx 7.8489\)):

Source Regime & inputs Output Precision / verification note
Lecture Slide 45 Pilot \(n_0 = 156\), acc \(0.86\), \(\hat{\omega}^2 = 0.077\), deterministic, \(\delta = 3.0\text{ pp}\) \(n = 674\) printed Plugging displayed rounded \(\hat{\omega}^2 = 0.077\) gives \(\lceil 671.52 \rceil = 672\); an unprinted variance in \((0.07717, 0.07728]\) yields \(674\)
Course power.ipynb (saved snapshot) Unseeded simulated pilot \(n_0 = 156\) (\(\mu_A = \mu_B = 0.86\), latent \(\rho = 0.8\), \(\hat{\omega}^2 = 0.1161\)) \(\delta = 3.0\text{ pp} \to 1{,}013\)
\(\delta = 2.0\text{ pp} \to 2{,}279\)
\(\delta = 1.5\text{ pp} \to 4{,}052\)
\(\delta = 1.0\text{ pp} \to 9{,}115\)
Using displayed 0.1161 gives \(9{,}113\) and \(4{,}051\) at \(\delta = 1.0, 1.5\text{ pp}\); the saved notebook outputs match \(\hat{\omega}^2 = 18/155\)
Miller (2024, §5) Deterministic (\(\omega^2 = 1/9\) stipulated, \(\sigma_A^2 = \sigma_B^2 = 0\), \(\delta = 3.0\text{ pp}\)) \(n = 969\) Exact check: \(\lceil 7.8489 \times (1/9) / 0.0009 \rceil = 969\) (note: Miller §4.2’s marginal moments \(1/12, 1/12\) and covariance \(1/24\) would give \(\omega^2 = 1/12 \implies 727\))
Miller (2024, §5) Nondeterministic fixed \(n = 198\) (\(\omega^2 = 1/9\) stipulated, \(\sigma_A^2 = \sigma_B^2 = 1/6\)) \(K = 1 \to \delta = 13.2\%\)
\(K = 10 \to \delta = 7.5\%\)
Exact formula values: \(13.27\text{ pp}\) (\(K=1\)), \(7.57\text{ pp}\) (\(K=10\)), and \(6.64\text{ pp}\) floor as \(K \to \infty\) (under \(\omega^2 = 1/12\), the floor would be \(5.75\text{ pp}\))

That final row teaches a structural design limit (plotted in Panel B of the lead figure using Miller §5’s stipulated \(\omega^2 = 1/9\)): resampling \(K\) answers per question shrinks conditional noise \(\sigma^2/K\) rapidly between \(K=1\) and \(K=10\), but it cannot reduce across-question variance \(\omega^2\). Only evaluating more questions \(n\) lowers the \(6.64\text{ pp}\) floor.

For training data rather than test data (slide 46), power formulas do not apply directly; instead, Welleck recommends collecting in phases, plotting learning curves of marginal gain vs. training size, and using active learning when labeling is costly.

Obtaining data, guidelines, and inter-annotator agreement

Before hiring annotators or labeling thousands of examples, Slides 38–40 and 47–52 outline a strict ordering:

  1. Reuse before creating (slides, pp. 38–39): When extending prior work, start with the same benchmarks (huggingface/datasets, ELRA, Papers with Code); if testing a new hypothesis, check whether an existing dataset can be repurposed before commissioning a new one.
  2. Self-annotate and iterate guidelines first (slide 47): Annotate pilot items yourself, write explicit boundary rules for confusing edge cases (for instance, Slide 47 cites Santorini, 1990 Penn Treebank POS annotation guidelines distinguishing coordinating conjunction CC vs. determiner DT in “Either/CC a boy or/CC a girl” vs. “Either/DT child”), and iterate before scaling up.
  3. Pilot-test annotators and verify IRB (slide 48): Whether annotating yourself, recruiting colleagues, or hiring via UpWork or Mechanical Turk, run a small paid pilot first to measure timeliness and accuracy, and check whether Institutional Review Board (IRB) approval is required.

Measuring chance-corrected agreement: Cohen’s \(\kappa\), Fleiss’ \(\kappa\), and Krippendorff’s \(\alpha\)

Raw percentage agreement \(p_o\) is deceptive because two raters guessing independently still agree by chance—especially when one class is common. Moreover, inter-annotator agreement measures consistency between raters; claiming that labels represent valid ground truth also requires checking that the guidelines capture the intended construct. Given a \(2\times 2\) confusion matrix \(C\) over \(n\) doubly annotated items (slides, pp. 49–50):

\[ p_o = \frac{C_{00} + C_{11}}{n}, \qquad p_e = p_0^{(A)} p_0^{(B)} + p_1^{(A)} p_1^{(B)}, \qquad p_a^{(A)} = \frac{C_{a0} + C_{a1}}{n}, \]

(where Slide 50 writes \(p_a^{(A)}\) using the row \(a=0\) numerator \(C_{00}+C_{01}\) over \(n=674\)). Whenever \(p_e < 1\), Cohen’s Kappa (Cohen 1960, slide 49) measures the fraction of chance-expected disagreement eliminated by the raters (and is undefined at \(p_e = 1\), as iaa.ipynb explicitly handles):

\[ \kappa = \frac{p_o - p_e}{1 - p_e} = 1 - \frac{1 - p_o}{1 - p_e}. \]

Reproducing the course iaa.ipynb simulation (seeded 2025 for \(n = 674\) tweets labeled positive 1 or not-positive 0, matching Slide 49’s task size), Rater 1 labels \(49.7\%\) positive (\(335/674\)) and Rater 2 labels \(51.9\%\) positive (\(350/674\)), with confusion counts \(C = \begin{pmatrix} 293 & 46 \\ 31 & 304 \end{pmatrix}\):

\[ p_o = \frac{293 + 304}{674} = \frac{597}{674} \approx 0.8858, \qquad p_e = 0.5030 \times 0.4807 + 0.4970 \times 0.5193 \approx 0.4999, \]

yielding \(\kappa = (0.8858 - 0.4999)/(1 - 0.4999) = 0.7716\), with a \(B = 3{,}000\) bootstrap \(95\%\) percentile CI (seeded 7) of \([0.7239, 0.8161]\). While slide 50 lists the Landis & Koch (1977) thresholds (\(<0\) no agreement, \(0\)–\(0.20\) slight, \(0.21\)–\(0.40\) fair, \(0.41\)–\(0.60\) moderate, \(0.61\)–\(0.80\) substantial, \(0.81\)–\(1.0\) almost perfect), the slide explicitly warns they are “Arbitrary, based on opinion”.

(Constructed numerical check, not lecture data: Why does marginal skew matter so much? Suppose two raters achieve the exact same \(p_o = 0.85\) observed agreement with identical positive rate \(p\) for both raters, so \(p_e = p^2 + (1-p)^2\). When classes are balanced at \(p = 0.50\), chance agreement is \(p_e = 0.50\) and \(\kappa = (0.85 - 0.50)/0.50 = 0.700\). At the highlighted comparison \(p = 0.90\), independent raters agree by chance \(p_e = 0.90^2 + 0.10^2 = 0.82\) of the time, collapsing \(\kappa\) to \((0.85 - 0.82)/(1 - 0.82) = 0.167\) despite identical \(85\%\) raw agreement; plotting through \(p = 0.915\) reaches \(\kappa = 0.036\), and the full feasible range at \(p_o = 0.85\) extends to \(p = 0.925\) where \(\kappa = -0.081\).)

Two-panel figure titled Raw Agreement Masks Chance; Cohen's Kappa Discounts Marginals. Panel A shows the reproduced 2x2 confusion matrix from course notebook iaa.ipynb for n = 674 simulated tweets: R1 Not-Pos / R2 Not-Pos = 293, R1 Not-Pos / R2 Pos = 46, R1 Pos / R2 Not-Pos = 31, R1 Pos / R2 Pos = 304, yielding p_o = 0.8858, p_e = 0.4999, Cohen's kappa = 0.7716, and 95% bootstrap CI [0.7239, 0.8161]. Panel B is a zero-baseline constructed check (not lecture data) plotting fixed p_o = 0.85 (blue dashed), p_e = p^2 + (1-p)^2 (ochre dotted), and Cohen's kappa (terracotta solid with square markers) across p in [0.50, 0.915]: highlighting balanced p = 0.50 (p_e = 0.50, kappa = 0.700) versus skewed p = 0.90 (p_e = 0.82, kappa = 0.167).

Left: Reproduced 674-item confusion matrix and bootstrap confidence interval from the course notebook (iaa.ipynb, seeds 2025 and 7, implementing Slide 49–50’s \(n=674\) sentiment task). Right: Constructed prevalence-paradox check (not lecture data) holding observed agreement fixed at \(p_o = 0.85\) while plotting symmetric rater positive rate over \(p \in [0.50, 0.915]\) with a zero baseline, highlighting how skew from \(p=0.50\) to \(p=0.90\) raises \(p_e\) from \(0.50\) to \(0.82\) and drops \(\kappa\) from \(0.700\) to \(0.167\).

When annotation moves beyond two nominal raters (slide 51), choose the agreement metric to match the study design:

  • Cohen’s \(\kappa\): Exactly 2 annotators on nominal categories.
  • Fleiss’ \(\kappa\): Any fixed number (\(\ge 2\)) of raters per item on nominal categories (using pooled category proportions rather than rater-specific marginals).
  • Krippendorff’s \(\alpha\): Flexible across nominal, ordinal, and interval scales, varied numbers of raters per item, and missing annotations.

If agreement comes back low, slide 52 prescribes three concrete remedies before training or evaluating on noisy labels: revise the guidelines to resolve ambiguous boundary cases, hire or train stronger annotators, or rethink whether the task itself is well-defined.

Compute, error analysis, and reporting conclusions

The closing slides (slides, pp. 53–58) bridge execution and communication:

  • Computational resources (slide 54): Use cloud credits (AWS, Google Cloud/Colab, TPU Research Cloud) or commodity local GPUs (RTX 3090 24 GB, A6000 48 GB) sized to your experiment’s pilot requirements.
  • Look at the data (slide 56): Combine quantitative analysis (ablation tables, paired confidence intervals, cluster-adjusted SEs) with qualitative error analysis—reading actual model failures and annotation disagreements to discover confounds or refine hypotheses.
  • Writing the paper (slide 58): Welleck points to Simon Peyton Jones’s How to Write a Great Research Paper—leading with a concrete problem and crisp, falsifiable contributions rather than burying readers in chronological logs.

Practical takeaways for your next NLP experiment

(Author synthesis across Lecture 14 and Miller 2024:)

  1. Decompose "Does X help?" into falsifiable sub-claims before coding. State in advance what experimental outcome will refute each underlying assumption.
  2. Run a paired pilot before committing full annotation or GPU budgets. For deterministic evaluation, estimate \(\hat{\omega}^2\) (Slide 45 uses \(n_0 = 156\) items); for stochastic decoding, collect replicated draws (\(K > 1\)) so \(\sigma_M^2\) can be separated from \(\omega^2\). At fixed variance, error rates, and \(K\), halving \(\delta\) requires \(4\times\) the evaluation set, and resampling \(K\) outputs cannot lower the across-question variance floor \(\omega^2\).
  3. Iterate guidelines yourself and gate labeling on chance-corrected agreement. Pair Cohen’s \(\kappa\) (or Krippendorff’s \(\alpha\) for multi-rater/ordinal/missing labels) with a bootstrap CI, verify task validity beyond rater consistency, and inspect confusion matrices whenever class prevalence is skewed.
  4. Report paired intervals, cluster structure, and qualitative failures together. Match statistical power at design time with paired inference (\(\text{SE} = s_d/\sqrt{n}\), clustered by shared context when applicable) and concrete error inspection at analysis time.

Primary sources and verification

  • Course slides: Sean Welleck, CS11-711 Advanced NLP (Fall 2025) — Lecture 14: Research Skills & Experimental Design, 59 pp. (PDF).
  • Instructor’s lecture recording: Sean Welleck, CMU Advanced NLP Fall 2025 (14): Research Skills and Experimental Design (YouTube, posted Oct 10, 2025).
  • Course code: 14_experimental (power.ipynb and iaa.ipynb; linked as 14_experimentation on the course schedule).
  • Primary reading: Evan Miller (2024), Adding Error Bars to Evals: A Statistical Approach to Language Model Evaluations (arXiv:2411.00640).
  • Figure generation & numerical verification: create_figures.py and manifest.json.