diff --git a/README.md b/README.md index 4260bc7..c29e400 100644 --- a/README.md +++ b/README.md @@ -85,15 +85,15 @@ The public human texts above may be in the models' training data, and they are n detectors are mostly used on. So the detectors were also run on one student's private Google Docs, with the flagging bar left exactly where the public data put it (5% of public human texts). 300-word passages: -| Detector | Public human texts | Private, dated before 30 Nov 2022 | Private school work, undated | Private journal, 2024 | Private, dated since (AI use unknown) | -|---|---|---|---|---|---| -| Clef 27B, asked | 5% | 42% (21 of 50) | 31% (20 of 65) | not run | 50% (42 of 84) | -| Binoculars (0.5B pair) | 4% | 4% (2 of 50) | 6% (4 of 65) | 2% (1 of 65) | 19% (16 of 84) | -| Classifier, RAID only | 3% | 6% (3 of 50) | 12% (8 of 65) | 2% (1 of 65) | 32% (27 of 84) | -| Classifier, RAID + mirrors | 3% | 8% (4 of 50) | 6% (4 of 65) | 3% (2 of 65) | 48% (40 of 84) | -| Binoculars + classifier | 6% | 22% (11 of 50) | 11% (7 of 65) | 2% (1 of 65) | 57% (48 of 84) | -| Clef + Binoculars | 5% | 64% (32 of 50) | 43% (28 of 65) | not run | 76% (64 of 84) | -| All three combined | 5% | 44% (22 of 50) | 29% (19 of 65) | not run | 77% (65 of 84) | +| Detector | Public human texts | Private, dated before 30 Nov 2022 | Private school work, undated | Private journal, 2024 | +|---|---|---|---|---| +| Clef 27B, asked | 5% | 42% (21 of 50) | 31% (20 of 65) | not run | +| Binoculars (0.5B pair) | 4% | 4% (2 of 50) | 6% (4 of 65) | 2% (1 of 65) | +| Classifier, RAID only | 3% | 6% (3 of 50) | 12% (8 of 65) | 2% (1 of 65) | +| Classifier, RAID + mirrors | 3% | 8% (4 of 50) | 6% (4 of 65) | 3% (2 of 65) | +| Binoculars + classifier | 6% | 22% (11 of 50) | 11% (7 of 65) | 2% (1 of 65) | +| Clef + Binoculars | 5% | 64% (32 of 50) | 43% (28 of 65) | not run | +| All three combined | 5% | 44% (22 of 50) | 29% (19 of 65) | not run | - **Asking Clef is not safe on real student essays.** It flagged 21 of 50 passages (15 of 29 documents) written between 2019 and November 2022, eight times the rate the public data suggested. Passages from @@ -103,9 +103,6 @@ the flagging bar left exactly where the public data put it (5% of public human t - **The combinations did not.** Their weights were fitted on public human text, where this writer's essays would have looked unusual: the classifier's typical score for these essays sits far closer to AI text than public human text does, although mostly under the bar. Stacking detectors amplified that. -- **The classifier, not Clef, tells this writer's older work from recent work.** The writer says much of - the recent work was AI-written or AI-revised. The classifier flags 48% of it against 8% of the older - work (AUROC 0.78 between the two); Clef flags 50% against 42% (AUROC 0.59). - **Re-setting the bar on these essays costs the classifier little.** With the bar moved to flag 5% of the pre-ChatGPT passages, it still catches 85% of AI text at 300 words (91% before); Clef drops from 76% to 65% and its AUROC against this human writing is 0.77, against 0.94 for public human text. diff --git a/results/private_writing.json b/results/private_writing.json index ac016d0..67e5991 100644 --- a/results/private_writing.json +++ b/results/private_writing.json @@ -2,15 +2,13 @@ "target_fpr": 0.05, "passages": { "own_pre_ai": 60, - "own_recent": 99, "own_school_undated": 82, "own_journal_2024": 66 }, "documents": { "own_journal_2024": 1, - "own_pre_ai": 32, "own_school_undated": 59, - "own_recent": 61 + "own_pre_ai": 32 }, "rungs": { "75": { @@ -36,17 +34,6 @@ "documents": 32, "documents_flagged": 15 }, - "own_recent": { - "n": 99, - "flagged": 32, - "share": 0.32323232323232326, - "ci95": [ - 0.23919862826396276, - 0.4204721664339027 - ], - "documents": 61, - "documents_flagged": 26 - }, "own_school_undated": { "n": 82, "flagged": 24, @@ -82,17 +69,6 @@ "documents": 32, "documents_flagged": 5 }, - "own_recent": { - "n": 99, - "flagged": 20, - "share": 0.20202020202020202, - "ci95": [ - 0.13475627715378938, - 0.29154591962261234 - ], - "documents": 61, - "documents_flagged": 18 - }, "own_school_undated": { "n": 82, "flagged": 4, @@ -139,17 +115,6 @@ "documents": 32, "documents_flagged": 10 }, - "own_recent": { - "n": 99, - "flagged": 26, - "share": 0.26262626262626265, - "ci95": [ - 0.18598028163201125, - 0.3570062141051224 - ], - "documents": 61, - "documents_flagged": 21 - }, "own_school_undated": { "n": 82, "flagged": 11, @@ -196,17 +161,6 @@ "documents": 32, "documents_flagged": 7 }, - "own_recent": { - "n": 99, - "flagged": 30, - "share": 0.30303030303030304, - "ci95": [ - 0.2212615693494659, - 0.3995144590281556 - ], - "documents": 61, - "documents_flagged": 28 - }, "own_school_undated": { "n": 82, "flagged": 4, @@ -253,17 +207,6 @@ "documents": 32, "documents_flagged": 9 }, - "own_recent": { - "n": 99, - "flagged": 32, - "share": 0.32323232323232326, - "ci95": [ - 0.23919862826396276, - 0.4204721664339027 - ], - "documents": 61, - "documents_flagged": 27 - }, "own_school_undated": { "n": 82, "flagged": 6, @@ -310,17 +253,6 @@ "documents": 32, "documents_flagged": 22 }, - "own_recent": { - "n": 99, - "flagged": 50, - "share": 0.5050505050505051, - "ci95": [ - 0.4082299868548984, - 0.6014937047251627 - ], - "documents": 61, - "documents_flagged": 38 - }, "own_school_undated": { "n": 82, "flagged": 32, @@ -356,17 +288,6 @@ "documents": 32, "documents_flagged": 14 }, - "own_recent": { - "n": 99, - "flagged": 49, - "share": 0.494949494949495, - "ci95": [ - 0.39850629527483744, - 0.5917700131451018 - ], - "documents": 61, - "documents_flagged": 38 - }, "own_school_undated": { "n": 82, "flagged": 18, @@ -404,17 +325,6 @@ "documents": 32, "documents_flagged": 11 }, - "own_recent": { - "n": 99, - "flagged": 28, - "share": 0.2828282828282828, - "ci95": [ - 0.20351825976230095, - 0.3783630022950766 - ], - "documents": 61, - "documents_flagged": 24 - }, "own_school_undated": { "n": 82, "flagged": 25, @@ -450,17 +360,6 @@ "documents": 32, "documents_flagged": 7 }, - "own_recent": { - "n": 99, - "flagged": 18, - "share": 0.18181818181818182, - "ci95": [ - 0.11821769885745204, - 0.2691897315987058 - ], - "documents": 61, - "documents_flagged": 14 - }, "own_school_undated": { "n": 82, "flagged": 7, @@ -507,17 +406,6 @@ "documents": 32, "documents_flagged": 13 }, - "own_recent": { - "n": 99, - "flagged": 34, - "share": 0.3434343434343434, - "ci95": [ - 0.25731989006284084, - 0.44124567095526857 - ], - "documents": 61, - "documents_flagged": 26 - }, "own_school_undated": { "n": 82, "flagged": 11, @@ -564,17 +452,6 @@ "documents": 32, "documents_flagged": 5 }, - "own_recent": { - "n": 99, - "flagged": 35, - "share": 0.35353535353535354, - "ci95": [ - 0.2664470798753757, - 0.45156586430285567 - ], - "documents": 61, - "documents_flagged": 31 - }, "own_school_undated": { "n": 82, "flagged": 4, @@ -621,17 +498,6 @@ "documents": 32, "documents_flagged": 9 }, - "own_recent": { - "n": 99, - "flagged": 38, - "share": 0.3838383838383838, - "ci95": [ - 0.29408494593454726, - 0.48227014772404997 - ], - "documents": 61, - "documents_flagged": 31 - }, "own_school_undated": { "n": 82, "flagged": 6, @@ -678,17 +544,6 @@ "documents": 32, "documents_flagged": 24 }, - "own_recent": { - "n": 99, - "flagged": 45, - "share": 0.45454545454545453, - "ci95": [ - 0.3599919588990025, - 0.5524948168804487 - ], - "documents": 61, - "documents_flagged": 36 - }, "own_school_undated": { "n": 82, "flagged": 31, @@ -724,17 +579,6 @@ "documents": 32, "documents_flagged": 21 }, - "own_recent": { - "n": 99, - "flagged": 59, - "share": 0.5959595959595959, - "ci95": [ - 0.4974671538075806, - 0.6872829862135781 - ], - "documents": 61, - "documents_flagged": 45 - }, "own_school_undated": { "n": 82, "flagged": 16, @@ -772,17 +616,6 @@ "documents": 29, "documents_flagged": 15 }, - "own_recent": { - "n": 84, - "flagged": 42, - "share": 0.5, - "ci95": [ - 0.39543750035009767, - 0.6045624996499024 - ], - "documents": 54, - "documents_flagged": 33 - }, "own_school_undated": { "n": 65, "flagged": 20, @@ -818,17 +651,6 @@ "documents": 29, "documents_flagged": 2 }, - "own_recent": { - "n": 84, - "flagged": 16, - "share": 0.19047619047619047, - "ci95": [ - 0.12078595196346183, - 0.2872394027659602 - ], - "documents": 54, - "documents_flagged": 14 - }, "own_school_undated": { "n": 65, "flagged": 4, @@ -875,17 +697,6 @@ "documents": 29, "documents_flagged": 3 }, - "own_recent": { - "n": 84, - "flagged": 27, - "share": 0.32142857142857145, - "ci95": [ - 0.23125977350162447, - 0.42721639268842665 - ], - "documents": 54, - "documents_flagged": 21 - }, "own_school_undated": { "n": 65, "flagged": 8, @@ -932,17 +743,6 @@ "documents": 29, "documents_flagged": 4 }, - "own_recent": { - "n": 84, - "flagged": 40, - "share": 0.47619047619047616, - "ci95": [ - 0.3727826732247559, - 0.5816808156005842 - ], - "documents": 54, - "documents_flagged": 35 - }, "own_school_undated": { "n": 65, "flagged": 4, @@ -989,17 +789,6 @@ "documents": 29, "documents_flagged": 11 }, - "own_recent": { - "n": 84, - "flagged": 48, - "share": 0.5714285714285714, - "ci95": [ - 0.4647675967027547, - 0.6718419368212247 - ], - "documents": 54, - "documents_flagged": 36 - }, "own_school_undated": { "n": 65, "flagged": 7, @@ -1046,17 +835,6 @@ "documents": 29, "documents_flagged": 23 }, - "own_recent": { - "n": 84, - "flagged": 64, - "share": 0.7619047619047619, - "ci95": [ - 0.6606473307381485, - 0.8402542921831097 - ], - "documents": 54, - "documents_flagged": 45 - }, "own_school_undated": { "n": 65, "flagged": 28, @@ -1092,17 +870,6 @@ "documents": 29, "documents_flagged": 20 }, - "own_recent": { - "n": 84, - "flagged": 65, - "share": 0.7738095238095238, - "ci95": [ - 0.6735289274916636, - 0.8501409510169247 - ], - "documents": 54, - "documents_flagged": 48 - }, "own_school_undated": { "n": 65, "flagged": 19, @@ -1140,17 +907,6 @@ "documents": 25, "documents_flagged": 12 }, - "own_recent": { - "n": 72, - "flagged": 43, - "share": 0.5972222222222222, - "ci95": [ - 0.4818046137128726, - 0.702790647990467 - ], - "documents": 52, - "documents_flagged": 35 - }, "own_school_undated": { "n": 43, "flagged": 12, @@ -1186,17 +942,6 @@ "documents": 25, "documents_flagged": 3 }, - "own_recent": { - "n": 72, - "flagged": 10, - "share": 0.1388888888888889, - "ci95": [ - 0.07722647811471899, - 0.23713397841573391 - ], - "documents": 52, - "documents_flagged": 7 - }, "own_school_undated": { "n": 43, "flagged": 5, @@ -1243,17 +988,6 @@ "documents": 25, "documents_flagged": 6 }, - "own_recent": { - "n": 72, - "flagged": 28, - "share": 0.3888888888888889, - "ci95": [ - 0.2846554187000152, - 0.5043785679247396 - ], - "documents": 52, - "documents_flagged": 20 - }, "own_school_undated": { "n": 43, "flagged": 9, @@ -1300,17 +1034,6 @@ "documents": 25, "documents_flagged": 4 }, - "own_recent": { - "n": 72, - "flagged": 39, - "share": 0.5416666666666666, - "ci95": [ - 0.42739664196707616, - 0.6517156130486407 - ], - "documents": 52, - "documents_flagged": 33 - }, "own_school_undated": { "n": 43, "flagged": 7, @@ -1357,17 +1080,6 @@ "documents": 25, "documents_flagged": 7 }, - "own_recent": { - "n": 72, - "flagged": 43, - "share": 0.5972222222222222, - "ci95": [ - 0.4818046137128726, - 0.702790647990467 - ], - "documents": 52, - "documents_flagged": 32 - }, "own_school_undated": { "n": 43, "flagged": 13, @@ -1414,17 +1126,6 @@ "documents": 25, "documents_flagged": 14 }, - "own_recent": { - "n": 72, - "flagged": 49, - "share": 0.6805555555555556, - "ci95": [ - 0.5660743422203383, - 0.7767454295144354 - ], - "documents": 52, - "documents_flagged": 37 - }, "own_school_undated": { "n": 43, "flagged": 18, @@ -1460,17 +1161,6 @@ "documents": 25, "documents_flagged": 11 }, - "own_recent": { - "n": 72, - "flagged": 53, - "share": 0.7361111111111112, - "ci95": [ - 0.6242391943879235, - 0.8240635840344728 - ], - "documents": 52, - "documents_flagged": 39 - }, "own_school_undated": { "n": 43, "flagged": 15, diff --git a/results/private_writing.md b/results/private_writing.md index 2e17c65..4936101 100644 --- a/results/private_writing.md +++ b/results/private_writing.md @@ -8,58 +8,57 @@ Long documents are cut into consecutive passages of up to 500 words, so passages |---|---|---| | Personal journal, 2024 | 1 | 66 | | Dated before ChatGPT (30 Nov 2022) | 32 | 60 | -| Dated since, AI use unknown | 61 | 99 | | School work, undated (2019 to mid-2023) | 59 | 82 | The texts, titles and per-document scores are not in this repository. A blank cell means the detector was not run on that group. ## At 75 words -| Detector | Public human texts (test half) | Personal journal, 2024 | Dated before ChatGPT (30 Nov 2022) | Dated since, AI use unknown | School work, undated (2019 to mid-2023) | -|---|---|---|---|---|---| -| Clef 27B, asked | 19 of 263 (7%; 5%-11%) | | 19 of 60 (32%; 21%-44%); 15 of 32 documents | 32 of 99 (32%; 24%-42%); 26 of 61 documents | 24 of 82 (29%; 21%-40%); 20 of 59 documents | -| Binoculars (0.5B pair) | 6 of 263 (2%; 1%-5%) | 2 of 66 (3%; 1%-10%); 1 of 1 documents | 5 of 60 (8%; 4%-18%); 5 of 32 documents | 20 of 99 (20%; 13%-29%); 18 of 61 documents | 4 of 82 (5%; 2%-12%); 4 of 59 documents | -| Classifier, RAID only | 12 of 263 (5%; 3%-8%) | 0 of 66 (0%; 0%-6%); 0 of 1 documents | 10 of 60 (17%; 9%-28%); 10 of 32 documents | 26 of 99 (26%; 19%-36%); 21 of 61 documents | 11 of 82 (13%; 8%-22%); 10 of 59 documents | -| Classifier, RAID + mirrors | 15 of 263 (6%; 3%-9%) | 0 of 66 (0%; 0%-6%); 0 of 1 documents | 8 of 60 (13%; 7%-24%); 7 of 32 documents | 30 of 99 (30%; 22%-40%); 28 of 61 documents | 4 of 82 (5%; 2%-12%); 4 of 59 documents | -| Binoculars + classifier (mirrors) | 8 of 263 (3%; 2%-6%) | 0 of 66 (0%; 0%-6%); 0 of 1 documents | 10 of 60 (17%; 9%-28%); 9 of 32 documents | 32 of 99 (32%; 24%-42%); 27 of 61 documents | 6 of 82 (7%; 3%-15%); 6 of 59 documents | -| Clef + Binoculars | 17 of 263 (6%; 4%-10%) | | 35 of 60 (58%; 46%-70%); 22 of 32 documents | 50 of 99 (51%; 41%-60%); 38 of 61 documents | 32 of 82 (39%; 29%-50%); 25 of 59 documents | -| All three combined | 10 of 263 (4%; 2%-7%) | | 19 of 60 (32%; 21%-44%); 14 of 32 documents | 49 of 99 (49%; 40%-59%); 38 of 61 documents | 18 of 82 (22%; 14%-32%); 16 of 59 documents | +| Detector | Public human texts (test half) | Personal journal, 2024 | Dated before ChatGPT (30 Nov 2022) | School work, undated (2019 to mid-2023) | +|---|---|---|---|---| +| Clef 27B, asked | 19 of 263 (7%; 5%-11%) | | 19 of 60 (32%; 21%-44%); 15 of 32 documents | 24 of 82 (29%; 21%-40%); 20 of 59 documents | +| Binoculars (0.5B pair) | 6 of 263 (2%; 1%-5%) | 2 of 66 (3%; 1%-10%); 1 of 1 documents | 5 of 60 (8%; 4%-18%); 5 of 32 documents | 4 of 82 (5%; 2%-12%); 4 of 59 documents | +| Classifier, RAID only | 12 of 263 (5%; 3%-8%) | 0 of 66 (0%; 0%-6%); 0 of 1 documents | 10 of 60 (17%; 9%-28%); 10 of 32 documents | 11 of 82 (13%; 8%-22%); 10 of 59 documents | +| Classifier, RAID + mirrors | 15 of 263 (6%; 3%-9%) | 0 of 66 (0%; 0%-6%); 0 of 1 documents | 8 of 60 (13%; 7%-24%); 7 of 32 documents | 4 of 82 (5%; 2%-12%); 4 of 59 documents | +| Binoculars + classifier (mirrors) | 8 of 263 (3%; 2%-6%) | 0 of 66 (0%; 0%-6%); 0 of 1 documents | 10 of 60 (17%; 9%-28%); 9 of 32 documents | 6 of 82 (7%; 3%-15%); 6 of 59 documents | +| Clef + Binoculars | 17 of 263 (6%; 4%-10%) | | 35 of 60 (58%; 46%-70%); 22 of 32 documents | 32 of 82 (39%; 29%-50%); 25 of 59 documents | +| All three combined | 10 of 263 (4%; 2%-7%) | | 19 of 60 (32%; 21%-44%); 14 of 32 documents | 18 of 82 (22%; 14%-32%); 16 of 59 documents | ## At 150 words -| Detector | Public human texts (test half) | Personal journal, 2024 | Dated before ChatGPT (30 Nov 2022) | Dated since, AI use unknown | School work, undated (2019 to mid-2023) | -|---|---|---|---|---|---| -| Clef 27B, asked | 11 of 263 (4%; 2%-7%) | | 16 of 60 (27%; 17%-39%); 11 of 32 documents | 28 of 99 (28%; 20%-38%); 24 of 61 documents | 25 of 82 (30%; 22%-41%); 22 of 59 documents | -| Binoculars (0.5B pair) | 13 of 263 (5%; 3%-8%) | 2 of 66 (3%; 1%-10%); 1 of 1 documents | 7 of 60 (12%; 6%-22%); 7 of 32 documents | 18 of 99 (18%; 12%-27%); 14 of 61 documents | 7 of 82 (9%; 4%-17%); 7 of 59 documents | -| Classifier, RAID only | 15 of 263 (6%; 3%-9%) | 0 of 66 (0%; 0%-6%); 0 of 1 documents | 14 of 60 (23%; 14%-35%); 13 of 32 documents | 34 of 99 (34%; 26%-44%); 26 of 61 documents | 11 of 82 (13%; 8%-22%); 10 of 59 documents | -| Classifier, RAID + mirrors | 12 of 263 (5%; 3%-8%) | 0 of 66 (0%; 0%-6%); 0 of 1 documents | 6 of 60 (10%; 5%-20%); 5 of 32 documents | 35 of 99 (35%; 27%-45%); 31 of 61 documents | 4 of 82 (5%; 2%-12%); 4 of 59 documents | -| Binoculars + classifier (mirrors) | 13 of 263 (5%; 3%-8%) | 0 of 66 (0%; 0%-6%); 0 of 1 documents | 9 of 60 (15%; 8%-26%); 9 of 32 documents | 38 of 99 (38%; 29%-48%); 31 of 61 documents | 6 of 82 (7%; 3%-15%); 6 of 59 documents | -| Clef + Binoculars | 10 of 263 (4%; 2%-7%) | | 30 of 60 (50%; 38%-62%); 24 of 32 documents | 45 of 99 (45%; 36%-55%); 36 of 61 documents | 31 of 82 (38%; 28%-49%); 25 of 59 documents | -| All three combined | 9 of 263 (3%; 2%-6%) | | 23 of 60 (38%; 27%-51%); 21 of 32 documents | 59 of 99 (60%; 50%-69%); 45 of 61 documents | 16 of 82 (20%; 12%-29%); 14 of 59 documents | +| Detector | Public human texts (test half) | Personal journal, 2024 | Dated before ChatGPT (30 Nov 2022) | School work, undated (2019 to mid-2023) | +|---|---|---|---|---| +| Clef 27B, asked | 11 of 263 (4%; 2%-7%) | | 16 of 60 (27%; 17%-39%); 11 of 32 documents | 25 of 82 (30%; 22%-41%); 22 of 59 documents | +| Binoculars (0.5B pair) | 13 of 263 (5%; 3%-8%) | 2 of 66 (3%; 1%-10%); 1 of 1 documents | 7 of 60 (12%; 6%-22%); 7 of 32 documents | 7 of 82 (9%; 4%-17%); 7 of 59 documents | +| Classifier, RAID only | 15 of 263 (6%; 3%-9%) | 0 of 66 (0%; 0%-6%); 0 of 1 documents | 14 of 60 (23%; 14%-35%); 13 of 32 documents | 11 of 82 (13%; 8%-22%); 10 of 59 documents | +| Classifier, RAID + mirrors | 12 of 263 (5%; 3%-8%) | 0 of 66 (0%; 0%-6%); 0 of 1 documents | 6 of 60 (10%; 5%-20%); 5 of 32 documents | 4 of 82 (5%; 2%-12%); 4 of 59 documents | +| Binoculars + classifier (mirrors) | 13 of 263 (5%; 3%-8%) | 0 of 66 (0%; 0%-6%); 0 of 1 documents | 9 of 60 (15%; 8%-26%); 9 of 32 documents | 6 of 82 (7%; 3%-15%); 6 of 59 documents | +| Clef + Binoculars | 10 of 263 (4%; 2%-7%) | | 30 of 60 (50%; 38%-62%); 24 of 32 documents | 31 of 82 (38%; 28%-49%); 25 of 59 documents | +| All three combined | 9 of 263 (3%; 2%-6%) | | 23 of 60 (38%; 27%-51%); 21 of 32 documents | 16 of 82 (20%; 12%-29%); 14 of 59 documents | ## At 300 words -| Detector | Public human texts (test half) | Personal journal, 2024 | Dated before ChatGPT (30 Nov 2022) | Dated since, AI use unknown | School work, undated (2019 to mid-2023) | -|---|---|---|---|---|---| -| Clef 27B, asked | 12 of 263 (5%; 3%-8%) | | 21 of 50 (42%; 29%-56%); 15 of 29 documents | 42 of 84 (50%; 40%-60%); 33 of 54 documents | 20 of 65 (31%; 21%-43%); 16 of 48 documents | -| Binoculars (0.5B pair) | 10 of 263 (4%; 2%-7%) | 1 of 65 (2%; 0%-8%); 1 of 1 documents | 2 of 50 (4%; 1%-13%); 2 of 29 documents | 16 of 84 (19%; 12%-29%); 14 of 54 documents | 4 of 65 (6%; 2%-15%); 4 of 48 documents | -| Classifier, RAID only | 8 of 263 (3%; 2%-6%) | 1 of 65 (2%; 0%-8%); 1 of 1 documents | 3 of 50 (6%; 2%-16%); 3 of 29 documents | 27 of 84 (32%; 23%-43%); 21 of 54 documents | 8 of 65 (12%; 6%-22%); 7 of 48 documents | -| Classifier, RAID + mirrors | 7 of 263 (3%; 1%-5%) | 2 of 65 (3%; 1%-11%); 1 of 1 documents | 4 of 50 (8%; 3%-19%); 4 of 29 documents | 40 of 84 (48%; 37%-58%); 35 of 54 documents | 4 of 65 (6%; 2%-15%); 4 of 48 documents | -| Binoculars + classifier (mirrors) | 17 of 263 (6%; 4%-10%) | 1 of 65 (2%; 0%-8%); 1 of 1 documents | 11 of 50 (22%; 13%-35%); 11 of 29 documents | 48 of 84 (57%; 46%-67%); 36 of 54 documents | 7 of 65 (11%; 5%-21%); 7 of 48 documents | -| Clef + Binoculars | 12 of 263 (5%; 3%-8%) | | 32 of 50 (64%; 50%-76%); 23 of 29 documents | 64 of 84 (76%; 66%-84%); 45 of 54 documents | 28 of 65 (43%; 32%-55%); 23 of 48 documents | -| All three combined | 12 of 263 (5%; 3%-8%) | | 22 of 50 (44%; 31%-58%); 20 of 29 documents | 65 of 84 (77%; 67%-85%); 48 of 54 documents | 19 of 65 (29%; 20%-41%); 17 of 48 documents | +| Detector | Public human texts (test half) | Personal journal, 2024 | Dated before ChatGPT (30 Nov 2022) | School work, undated (2019 to mid-2023) | +|---|---|---|---|---| +| Clef 27B, asked | 12 of 263 (5%; 3%-8%) | | 21 of 50 (42%; 29%-56%); 15 of 29 documents | 20 of 65 (31%; 21%-43%); 16 of 48 documents | +| Binoculars (0.5B pair) | 10 of 263 (4%; 2%-7%) | 1 of 65 (2%; 0%-8%); 1 of 1 documents | 2 of 50 (4%; 1%-13%); 2 of 29 documents | 4 of 65 (6%; 2%-15%); 4 of 48 documents | +| Classifier, RAID only | 8 of 263 (3%; 2%-6%) | 1 of 65 (2%; 0%-8%); 1 of 1 documents | 3 of 50 (6%; 2%-16%); 3 of 29 documents | 8 of 65 (12%; 6%-22%); 7 of 48 documents | +| Classifier, RAID + mirrors | 7 of 263 (3%; 1%-5%) | 2 of 65 (3%; 1%-11%); 1 of 1 documents | 4 of 50 (8%; 3%-19%); 4 of 29 documents | 4 of 65 (6%; 2%-15%); 4 of 48 documents | +| Binoculars + classifier (mirrors) | 17 of 263 (6%; 4%-10%) | 1 of 65 (2%; 0%-8%); 1 of 1 documents | 11 of 50 (22%; 13%-35%); 11 of 29 documents | 7 of 65 (11%; 5%-21%); 7 of 48 documents | +| Clef + Binoculars | 12 of 263 (5%; 3%-8%) | | 32 of 50 (64%; 50%-76%); 23 of 29 documents | 28 of 65 (43%; 32%-55%); 23 of 48 documents | +| All three combined | 12 of 263 (5%; 3%-8%) | | 22 of 50 (44%; 31%-58%); 20 of 29 documents | 19 of 65 (29%; 20%-41%); 17 of 48 documents | ## At 500 words -| Detector | Public human texts (test half) | Personal journal, 2024 | Dated before ChatGPT (30 Nov 2022) | Dated since, AI use unknown | School work, undated (2019 to mid-2023) | -|---|---|---|---|---|---| -| Clef 27B, asked | 7 of 111 (6%; 3%-12%) | | 13 of 37 (35%; 22%-51%); 12 of 25 documents | 43 of 72 (60%; 48%-70%); 35 of 52 documents | 12 of 43 (28%; 17%-43%); 9 of 29 documents | -| Binoculars (0.5B pair) | 4 of 111 (4%; 1%-9%) | 1 of 65 (2%; 0%-8%); 1 of 1 documents | 3 of 37 (8%; 3%-21%); 3 of 25 documents | 10 of 72 (14%; 8%-24%); 7 of 52 documents | 5 of 43 (12%; 5%-24%); 5 of 29 documents | -| Classifier, RAID only | 6 of 111 (5%; 3%-11%) | 1 of 65 (2%; 0%-8%); 1 of 1 documents | 6 of 37 (16%; 8%-31%); 6 of 25 documents | 28 of 72 (39%; 28%-50%); 20 of 52 documents | 9 of 43 (21%; 11%-35%); 9 of 29 documents | -| Classifier, RAID + mirrors | 2 of 111 (2%; 0%-6%) | 2 of 65 (3%; 1%-11%); 1 of 1 documents | 4 of 37 (11%; 4%-25%); 4 of 25 documents | 39 of 72 (54%; 43%-65%); 33 of 52 documents | 7 of 43 (16%; 8%-30%); 7 of 29 documents | -| Binoculars + classifier (mirrors) | 2 of 111 (2%; 0%-6%) | 1 of 65 (2%; 0%-8%); 1 of 1 documents | 7 of 37 (19%; 9%-34%); 7 of 25 documents | 43 of 72 (60%; 48%-70%); 32 of 52 documents | 13 of 43 (30%; 19%-45%); 12 of 29 documents | -| Clef + Binoculars | 9 of 111 (8%; 4%-15%) | | 16 of 37 (43%; 29%-59%); 14 of 25 documents | 49 of 72 (68%; 57%-78%); 37 of 52 documents | 18 of 43 (42%; 28%-57%); 15 of 29 documents | -| All three combined | 3 of 111 (3%; 1%-8%) | | 13 of 37 (35%; 22%-51%); 11 of 25 documents | 53 of 72 (74%; 62%-82%); 39 of 52 documents | 15 of 43 (35%; 22%-50%); 13 of 29 documents | +| Detector | Public human texts (test half) | Personal journal, 2024 | Dated before ChatGPT (30 Nov 2022) | School work, undated (2019 to mid-2023) | +|---|---|---|---|---| +| Clef 27B, asked | 7 of 111 (6%; 3%-12%) | | 13 of 37 (35%; 22%-51%); 12 of 25 documents | 12 of 43 (28%; 17%-43%); 9 of 29 documents | +| Binoculars (0.5B pair) | 4 of 111 (4%; 1%-9%) | 1 of 65 (2%; 0%-8%); 1 of 1 documents | 3 of 37 (8%; 3%-21%); 3 of 25 documents | 5 of 43 (12%; 5%-24%); 5 of 29 documents | +| Classifier, RAID only | 6 of 111 (5%; 3%-11%) | 1 of 65 (2%; 0%-8%); 1 of 1 documents | 6 of 37 (16%; 8%-31%); 6 of 25 documents | 9 of 43 (21%; 11%-35%); 9 of 29 documents | +| Classifier, RAID + mirrors | 2 of 111 (2%; 0%-6%) | 2 of 65 (3%; 1%-11%); 1 of 1 documents | 4 of 37 (11%; 4%-25%); 4 of 25 documents | 7 of 43 (16%; 8%-30%); 7 of 29 documents | +| Binoculars + classifier (mirrors) | 2 of 111 (2%; 0%-6%) | 1 of 65 (2%; 0%-8%); 1 of 1 documents | 7 of 37 (19%; 9%-34%); 7 of 25 documents | 13 of 43 (30%; 19%-45%); 12 of 29 documents | +| Clef + Binoculars | 9 of 111 (8%; 4%-15%) | | 16 of 37 (43%; 29%-59%); 14 of 25 documents | 18 of 43 (42%; 28%-57%); 15 of 29 documents | +| All three combined | 3 of 111 (3%; 1%-8%) | | 13 of 37 (35%; 22%-51%); 11 of 25 documents | 15 of 43 (35%; 22%-50%); 13 of 29 documents | ## If the bar were set on the private human group ("Dated before ChatGPT (30 Nov 2022)") diff --git a/src/detecteval/private_eval.py b/src/detecteval/private_eval.py index ecf9a8c..f945288 100644 --- a/src/detecteval/private_eval.py +++ b/src/detecteval/private_eval.py @@ -13,7 +13,9 @@ {"id": "doc-001", "group": "own_pre_ai", "text": "...", "modified": "2021-04-02"} -``group`` is free text; every group is reported separately. The texts and the per-document scores stay +``group`` is free text; every group is reported separately, except groups named with ``--omit-group`` +on the report step (use it for documents whose authorship you are not sure of). The texts and the +per-document scores stay under RAW_DATA_DIR/private, outside the repository. The report holds counts and rates only: no text, no titles and no document ids. The flagging bar and the combination weights are the ones set on the calibration half of the long set, so the private documents play no part in choosing them. @@ -75,10 +77,11 @@ def rate(values: np.ndarray, threshold: float, documents: list | None = None) -> return out -def analyse(target_fpr: float = 0.05) -> dict: +def analyse(target_fpr: float = 0.05, omit: set[str] | None = None) -> dict: + """``omit`` names groups to leave out entirely, for example ones whose authorship is uncertain.""" texts, public = compare.load_texts(), compare.load_scores() private = load_private_scores() - manifest = private_documents() + manifest = [row for row in private_documents() if row["group"] not in (omit or set())] groups = {row["id"]: row["group"] for row in manifest} source = {row["id"]: row.get("doc", row["id"]) for row in manifest} # passages cut from one document out: dict = {"target_fpr": target_fpr, "passages": dict(collections.Counter(groups.values())), @@ -210,6 +213,8 @@ def main() -> None: parser.add_argument("step", choices=["clef", "local", "report"]) parser.add_argument("--skip-group", action="append", default=[], help="with 'clef': keep this group's texts on this machine (may be repeated)") + parser.add_argument("--omit-group", action="append", default=[], + help="with 'report': leave this group out of the written report (may be repeated)") args = parser.parse_args() config.load_env() if args.step == "clef": @@ -222,7 +227,7 @@ def main() -> None: binoculars.run(private_items(), scores_dir() / "binoculars.jsonl") classify.run(["raid", "mirrors"], private_items(), scores_dir()) else: - summary = analyse() + summary = analyse(omit=set(args.omit_group)) (config.RESULTS_DIR / "private_writing.json").write_text(json.dumps(summary, indent=1) + "\n") (config.RESULTS_DIR / "private_writing.md").write_text(markdown(summary)) print(markdown(summary))