Manuscript Offprint

arXiv:2608.27451

Tacet: A Language and Type System for Automatic Statistical Validity Accounting

Chiké Abuah

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

CHIKÉ ABUAH

Walla Walla University, College Place, Washington, USA

e-mail address: chike.abuah@wallawalla.edu

ABSTRACT. Empirical comparisons between systems are a standard form of evidence in computer science research, but few are checked for statistical validity: most are never framed as statistical tests at all. Existing multiple-comparison procedures could control the resulting error, but need inputs (what an analysis examined, and how its observations are arranged) that are not recoverable from a list of p-values.

We introduce TACET, a language in which an analysis declares what it generated, states what it expects to find, and is refused any claim it cannot afford or cannot properly test. Its core calculus T pairs a free estimation sublanguage, carrying a reported footprint and a purity bit that records whether any outcome was consulted in building a value, with a priced claim sublanguage, carrying a wealth transformer, connected only by a mechanism that prices a comparison. A sample selected by reading outcomes sets the purity bit and is recorded as having examined everything it read, permanently, so it can never be granted a one-sided or confirmatory price, without the system ever asking whether the analyst intended to cherry-pick. Whether a comparison is paired or clustered is computed statically from the artifact schema, from declared functional dependencies between key fields alone and before any data is read, and a mechanism that assumes that structure away is refused rather than priced. Because the wealth transformer is antitone in the realized p-value, affordability can be checked before the analysis runs too, turning pre-registration into a typing rule. We prove the metatheory machine-checked in Lean 4 with no admitted gaps, and demonstrate the approach on a reference implementation and two case studies on published artifacts, the SWE-bench Verified leaderboard and BIG-Bench Hard.

1. INTRODUCTION

Empirical comparison has become the standard method of evaluation in machine learning and software engineering research: new systems are measured on shared benchmarks, and the results are published as leaderboards and results tables. However, experience has shown that the statistical validity of these comparisons is rarely checked. Dror et al. [DBSR18] annotated 180 experimental papers from ACL and TACL and found that only 63 checked statistical significance at all, that 42 named the test they used, and that 36 used a correct one. Marie et al. [MFR21] hand-annotated 769 machine translation papers published between 2010 and 2020 and titled the relevant section The Disappearing Statistical Significance Testing: the rate never exceeded 65% in any year, it has fallen sharply since 2016, and most papers, in their words, drew conclusions without checking whether their results were coincidental.

Key words and phrases: multiple comparisons, graded types, statistical validity, unit of analysis, alpha-investing.

Preprint submitted to Logical Methods in Computer Science

© C. Abuah Creative Commons

C. ABUAH

Two facts that live in the program. This paper claims that two of the inputs multiple-comparison procedures need are properties of the program, recoverable from it alone.

First, the price a claim is eligible for depends on what selecting its sample required looking at. Consider two clinical trials reporting the same subgroup finding. The first reports on patients over 65, a subgroup read off the enrollment records and fixed before any outcome was observed. The second reports on the patients who responded to treatment, a subgroup that became available only after every patient had been measured. The two trials can report identical p-values, and a multiple-comparison procedure given one of them has no way to tell which trial produced it. What separates them survives in the program that computed the subgroup: selecting on a property of the key (“the patients over 65”, “the instances from one repository”) records a footprint of the observations it keeps, while selecting on a property of the outcome (“the patients who responded”, “the instances this system failed”) records a footprint of every observation it examined. The record is permanent: an outcome-selected sample can never satisfy a pre-registration and is never granted a one-sided or confirmatory price (Section 5). QUDE [ZDSZ +^{+}17], the closest prior system, integrates multiple-hypothesis control into interactive data exploration, but it assumes the hypotheses are independent and names dependence as an open limitation (Section 11).

Second, the correct statistical instrument depends on how the observations are arranged. Every comparison in a leaderboard is paired, because both systems attempt the same instances, and an unpaired test is the wrong instrument for it. This fact is legible from the artifact keys, where a checker can see it, and absent from the results, where a reader cannot. Section 9.2 measures what moving this paper's running example, the SWE-bench Verified leaderboard, from the instance level to the declared cluster level does to individual p-values and to the family as a whole. A one-sentence prose disclaimer acknowledging the clustering, the common substitute for running the correct test, costs the author about as many words to write as the correct test costs to run.

Our goal in this work is to answer the following four questions:

  • Can the inputs that multiple-comparison procedures require (what selecting an analysis's sample required looking at, and how its observations are arranged) be recovered from the program rather than from its results?

  • Can an outcome-selected sample be caught, and refused the prices that assume no selection occurred, without the system asking whether the analyst intended to cherry-pick?

  • Can the experimental design of a comparison (whether it is paired or clustered) be computed statically, and soundly?

• Can the affordability of an analysis be checked before the analysis runs?

We answer all four questions in the affirmative, in TACET: a language in which an analysis declares what it generated, states what it expects to find, and is refused any claim it cannot afford or cannot properly test.

Contributions. In summary, this paper makes the following contributions:

• We introduce T (Section 5), a core calculus with a free estimation sublanguage carrying a footprint and a constraint, a priced claim sublanguage carrying a wealth transformer, and a mechanism as the only route between them. Each sublanguage is graded in a sense with a long lineage (Section 11), but by a grade outside that lineage's usual numeric, commutative shape: a dependency judgment for what was read, a non-commutative monoid of functions for what can still be afforded (Section 5.3's "Grades outside the numeric lineage").

• We show that a footprint reports what was read rather than pricing it (Section 5): a narrowing predicate that reads outcomes is recorded, permanently, as having examined everything it read, so an outcome-selected sample can never match a pre-registration and is never granted a one-sided or confirmatory price, with no model of the analyst's intentions involved. Appendix B proves the tracking sound: a clean selection is a function of the artifact keys alone, and outcomes outside a value's footprint cannot affect it.

• We show that the experimental design can be read off the artifact schema (Section 5): whether a comparison is paired or clustered is computed statically from declared functional dependencies between key fields, and Theorem 7.3 (Section 7), machine-checked in Lean 4, proves that computation sound, given declared dependencies and an identifying key that are genuine facts about the run. A mechanism that assumes structure away is refused rather than priced.

• We show that declared bounds make affordability static (Section 6), soundly, because the wealth transformer is antitone in the p-value. This turns pre-registration from a methodological norm into a typing rule.

• We establish the metatheory (Section 7) in Lean 4 with no admitted gaps: the checker under-approximates the monitor (Theorem 7.1), the monitor controls mFDRηmFDR_{\eta} at α\alpha under explicitly stated side conditions (Theorem 7.4), and checker acceptance implies mFDRηmFDR_{\eta} control without conditioning on the honesty of declared bounds (Theorem 7.5).

• We present a reference implementation (Section 8) requiring two declarations per analysis (the artifact key and the cluster level) and an evaluation (Section 9) on a published leaderboard and a published benchmark corpus.

The rest of the paper is organized as follows. First we introduce TACET through a worked example (Section 2) and summarize the necessary statistical background (Section 3). We then describe what an analysis must declare (Section 4), formalize the core language T (Section 5) and its grade structure (Section 6), and establish its metatheory (Section 7). We describe our implementation (Section 8) and evaluate the system on published artifacts (Section 9). Finally we state the limitations of the guarantee and the threats to this paper's validity (Section 10), outline related work (Section 11), and conclude (Section 12).

References (78)