simonlesaumon commited on
Commit
e5ff630
·
verified ·
1 Parent(s): e359422

Upload folder using huggingface_hub

Browse files
baseline_generations.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "prompt": "Write a 200-word blog post about the benefits of remote work.",
4
+ "generated_text": "The professional landscape has shifted dramatically, and remote work is no longer just a luxury—it is a powerful catalyst for productivity. Transitioning from the traditional office to a digital workspace offers transformative benefits for both employees and employers alike.\n\nOne of the most immediate advantages is the elimination of the commute. By reclaiming the hours once spent in traffic or on public transit, employees gain valuable time for exercise, sleep, and quality time with family. This improved work-life balance directly leads to lower stress levels and higher job satisfaction.\n\nFurthermore, remote work fosters unparalleled flexibility. Employees can curate their own environments to suit their specific focus needs, often resulting in increased output and creativity. For companies, the model breaks down geographical barriers, allowing them to hire the best talent from around the globe rather than limiting to local candidates.\n\nUltimately, remote work promotes a culture of trust and autonomy. By focusing on results rather than hours spent at a desk, organizations empower individuals to perform best. As we look toward the future, it is clear that the freedom to work from anywhere is the key to a more modern, efficient, and happy global workforce.",
5
+ "word_count": 194
6
+ },
7
+ {
8
+ "prompt": "Explain quantum computing in simple terms, around 150 words.",
9
+ "generated_text": "Traditional computers use \"bits,\" which are like light switches that can be either off (0) or on (1). Everything you do on your phone or laptop is built from these billions of zeros and ones. \n\nQuantum computers use use \"qubits.\" Thanks to a strange phenomenon called superposition, a qubit can be a 0, a 1, or both at the same time. Imagine a spinning coin: while it’s spinning, it isn't heads or tails—it’s a blur of both. This allows quantum computers to explore millions of possibilities simultaneously.\n\nWhile a traditional computer tries each path in a maze one by one to find the exit, a quantum computer can explore all the paths at once. This makes them incredibly powerful for solving complex problems that would take today’s fastest supercomputers thousands of years, such as designing new medicines, breaking unbreakable encryption, or simulating global climate patterns.",
10
+ "word_count": 145
11
+ },
12
+ {
13
+ "prompt": "Write a professional email declining a job offer, about 100 words.",
14
+ "generated_text": "Subject: Job Offer - [Your Name]\n\nDear [Hiring Manager's Name],\n\nThank you very much for offering me the position of [Job Title]. I truly appreciate the time you and your team spent interviewing me and sharing about [Company Name].\n\nAfter careful consideration, I have decided to decline the offer as I have chosen to accept another role that aligns more closely with my current career goals.\n\nI am very grateful for the opportunity and the professional courtesy shown throughout the recruitment process. I wish you and the company continued success in the future.\n\nBest regards,\n\n[Your Name]\n[Your Phone Number]",
15
+ "word_count": 100
16
+ },
17
+ {
18
+ "prompt": "Describe the causes of the French Revolution in 200 words.",
19
+ "generated_text": "The French Revolution was not triggered by a single event but by a volatile combination of social, economic, and political crises. \n\nEconomically, France was bankrupt. Decades of war debt—including support for the American Revolution—and extravagant royal spending depleted the treasury. This was exacerbated by a series of poor harvests, which led to soaring bread prices and widespread famine, leaving commoners starving and desperate.\n\nSocially, the \"Ancien Régime\" divided the population into three estates. The First (clergy) and Second (nobility) held vast wealth and power while enjoying tax exemptions. Meanwhile, the Third Estate—comprising 98% of the population, from wealthy bourgeoisie to peasants—bore the entire tax burden while having no political voice.\n\nIntellectually, the Enlightenment played a crucial role. Philosophers like Rousseau and Voltaire promoted ideas of liberty, equality, and reason, challenging the divine right of kings. When King Louis XVI failed to implement necessary fiscal reforms due to resistance from the nobility, he summoned the Estates-General in 1789. The Third Estate broke away to form the National Assembly, sparking the revolutionary fire that would ultimately dismantle the monarchy and transform the world.",
20
+ "word_count": 181
21
+ },
22
+ {
23
+ "prompt": "Write a product review for noise-cancelling headphones, 150 words.",
24
+ "generated_text": "After two weeks of using the **Zenith Noise-X Headphones**, I can confidently say they are a game-changer for commuters and office workers. The standout feature is undoubtedly the active noise cancellation (ANC); it effortlessly erases the hum of airplane engines and the chatter of a busy cafe, creating a private sanctuary of silence anywhere.\n\nThe sound profile is impressively balanced. The bass is punchy and deep without being overwhelming, while the vocals remain crisp and clear. Comfort is another highlight—the memory foam earcups are incredibly soft, making multi-hour listening sessions without any fatigue. \n\nBattery life is equally impressive, giving me nearly 40 hours of playback on a single charge with ANC enabled. While the price tag is premium, the build quality and seamless Bluetooth connectivity justify the investment. If you value peace and high-fidelity audio, these are a must-buy.",
25
+ "word_count": 139
26
+ }
27
+ ]
detector_results_before.json ADDED
@@ -0,0 +1,179 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "summary": {
3
+ "num_samples": 5,
4
+ "perplexity": {
5
+ "mean": 15.49,
6
+ "std": 4.2
7
+ },
8
+ "burstiness": {
9
+ "mean": 0.6738
10
+ },
11
+ "fast_detectgpt": {
12
+ "mean_score": 0.0005,
13
+ "ai_detected": 0,
14
+ "human_detected": 5
15
+ },
16
+ "heuristic": {
17
+ "mean_ai_prob": 0.35,
18
+ "ai_classified": 0,
19
+ "human_classified": 5
20
+ }
21
+ },
22
+ "per_sample": {
23
+ "sample_0": {
24
+ "prompt": "Write a 200-word blog post about the benefits of remote work.",
25
+ "text_preview": "The professional landscape has shifted dramatically, and remote work is no longer just a luxury—it is a powerful catalyst for productivity. Transitioning from the traditional office to a digital works...",
26
+ "perplexity_gpt2": 14.78,
27
+ "burstiness": 0.9565,
28
+ "fast_detectgpt": {
29
+ "score": 0.0003,
30
+ "mean_log_prob": -2.6934,
31
+ "classification": "Human"
32
+ },
33
+ "text_statistics": {
34
+ "sentence_count": 11,
35
+ "sentence_length_mean": 17.6,
36
+ "sentence_length_std": 6.4,
37
+ "total_words": 196,
38
+ "unique_words": 137,
39
+ "lexical_diversity": 0.699,
40
+ "hapax_legomena": 115,
41
+ "hapax_ratio": 0.587,
42
+ "avg_word_length": 5.4,
43
+ "word_length_std": 3.0,
44
+ "transition_markers": 1,
45
+ "transition_rate_per_100w": 0.5,
46
+ "passive_constructions": 0,
47
+ "passive_rate_per_100w": 0.0
48
+ },
49
+ "heuristic": {
50
+ "ai_probability": 0.3833,
51
+ "classification": "Human"
52
+ }
53
+ },
54
+ "sample_1": {
55
+ "prompt": "Explain quantum computing in simple terms, around 150 words.",
56
+ "text_preview": "Traditional computers use \"bits,\" which are like light switches that can be either off (0) or on (1). Everything you do on your phone or laptop is built from these billions of zeros and ones. \n\nQuantu...",
57
+ "perplexity_gpt2": 15.88,
58
+ "burstiness": 0.588,
59
+ "fast_detectgpt": {
60
+ "score": 0.0002,
61
+ "mean_log_prob": -2.7656,
62
+ "classification": "Human"
63
+ },
64
+ "text_statistics": {
65
+ "sentence_count": 8,
66
+ "sentence_length_mean": 18.2,
67
+ "sentence_length_std": 7.9,
68
+ "total_words": 150,
69
+ "unique_words": 105,
70
+ "lexical_diversity": 0.7,
71
+ "hapax_legomena": 80,
72
+ "hapax_ratio": 0.533,
73
+ "avg_word_length": 4.7,
74
+ "word_length_std": 3.0,
75
+ "transition_markers": 0,
76
+ "transition_rate_per_100w": 0.0,
77
+ "passive_constructions": 0,
78
+ "passive_rate_per_100w": 0.0
79
+ },
80
+ "heuristic": {
81
+ "ai_probability": 0.3167,
82
+ "classification": "Human"
83
+ }
84
+ },
85
+ "sample_2": {
86
+ "prompt": "Write a professional email declining a job offer, about 100 words.",
87
+ "text_preview": "Subject: Job Offer - [Your Name]\n\nDear [Hiring Manager's Name],\n\nThank you very much for offering me the position of [Job Title]. I truly appreciate the time you and your team spent interviewing me an...",
88
+ "perplexity_gpt2": 8.74,
89
+ "burstiness": 0.5056,
90
+ "fast_detectgpt": {
91
+ "score": 0.0015,
92
+ "mean_log_prob": -2.168,
93
+ "classification": "Human"
94
+ },
95
+ "text_statistics": {
96
+ "sentence_count": 6,
97
+ "sentence_length_mean": 16.7,
98
+ "sentence_length_std": 6.6,
99
+ "total_words": 100,
100
+ "unique_words": 70,
101
+ "lexical_diversity": 0.7,
102
+ "hapax_legomena": 56,
103
+ "hapax_ratio": 0.56,
104
+ "avg_word_length": 4.8,
105
+ "word_length_std": 2.6,
106
+ "transition_markers": 0,
107
+ "transition_rate_per_100w": 0.0,
108
+ "passive_constructions": 0,
109
+ "passive_rate_per_100w": 0.0
110
+ },
111
+ "heuristic": {
112
+ "ai_probability": 0.3833,
113
+ "classification": "Human"
114
+ }
115
+ },
116
+ "sample_3": {
117
+ "prompt": "Describe the causes of the French Revolution in 200 words.",
118
+ "text_preview": "The French Revolution was not triggered by a single event but by a volatile combination of social, economic, and political crises. \n\nEconomically, France was bankrupt. Decades of war debt—including su...",
119
+ "perplexity_gpt2": 16.11,
120
+ "burstiness": 0.5914,
121
+ "fast_detectgpt": {
122
+ "score": 0.0002,
123
+ "mean_log_prob": -2.7793,
124
+ "classification": "Human"
125
+ },
126
+ "text_statistics": {
127
+ "sentence_count": 11,
128
+ "sentence_length_mean": 16.5,
129
+ "sentence_length_std": 6.6,
130
+ "total_words": 186,
131
+ "unique_words": 135,
132
+ "lexical_diversity": 0.726,
133
+ "hapax_legomena": 118,
134
+ "hapax_ratio": 0.634,
135
+ "avg_word_length": 5.6,
136
+ "word_length_std": 2.8,
137
+ "transition_markers": 0,
138
+ "transition_rate_per_100w": 0.0,
139
+ "passive_constructions": 0,
140
+ "passive_rate_per_100w": 0.0
141
+ },
142
+ "heuristic": {
143
+ "ai_probability": 0.35,
144
+ "classification": "Human"
145
+ }
146
+ },
147
+ "sample_4": {
148
+ "prompt": "Write a product review for noise-cancelling headphones, 150 words.",
149
+ "text_preview": "After two weeks of using the **Zenith Noise-X Headphones**, I can confidently say they are a game-changer for commuters and office workers. The standout feature is undoubtedly the active noise cancell...",
150
+ "perplexity_gpt2": 21.95,
151
+ "burstiness": 0.7276,
152
+ "fast_detectgpt": {
153
+ "score": 0.0001,
154
+ "mean_log_prob": -3.0879,
155
+ "classification": "Human"
156
+ },
157
+ "text_statistics": {
158
+ "sentence_count": 8,
159
+ "sentence_length_mean": 17.4,
160
+ "sentence_length_std": 7.2,
161
+ "total_words": 145,
162
+ "unique_words": 110,
163
+ "lexical_diversity": 0.759,
164
+ "hapax_legomena": 100,
165
+ "hapax_ratio": 0.69,
166
+ "avg_word_length": 5.1,
167
+ "word_length_std": 2.7,
168
+ "transition_markers": 0,
169
+ "transition_rate_per_100w": 0.0,
170
+ "passive_constructions": 0,
171
+ "passive_rate_per_100w": 0.0
172
+ },
173
+ "heuristic": {
174
+ "ai_probability": 0.3167,
175
+ "classification": "Human"
176
+ }
177
+ }
178
+ }
179
+ }
evaluation_results.json ADDED
@@ -0,0 +1,137 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "prompt": "Write a 200-word blog post about the benefits of remote work.",
4
+ "variants": {
5
+ "ai_original": {
6
+ "perplexity": 17.77,
7
+ "burstiness": 0.7838,
8
+ "fast_detectgpt_score": 0.0002,
9
+ "fast_detectgpt_class": "Human",
10
+ "heuristic_ai_prob": 0.3833,
11
+ "heuristic_class": "Human",
12
+ "word_count": 181,
13
+ "text_preview": "The professional landscape has undergone a radical shift, and there is no denying that remote work has become a transformative force. For both employees and employers, the benefits of a virtual office are far-reaching. \n\nOne of the most immediate advantages is the elimination of the commute. By recl..."
14
+ },
15
+ "humanized_std": {
16
+ "perplexity": 19.81,
17
+ "burstiness": 0.7715,
18
+ "fast_detectgpt_score": 0.0001,
19
+ "fast_detectgpt_class": "Human",
20
+ "heuristic_ai_prob": 0.3833,
21
+ "heuristic_class": "Human",
22
+ "word_count": 205,
23
+ "text_preview": "The way we work has changed completely, and there's no avoiding it—remote work is a total game-changer for everyone involved. Honestly-the original text was: \"The professional landscape has undergone a radical shift, and there is no denying that remote work has become a transformative force. For bot..."
24
+ },
25
+ "humanized_aggressive": {
26
+ "perplexity": 17.34,
27
+ "burstiness": 0.8164,
28
+ "fast_detectgpt_score": 0.0002,
29
+ "fast_detectgpt_class": "Human",
30
+ "heuristic_ai_prob": 0.3833,
31
+ "heuristic_class": "Human",
32
+ "word_count": 205,
33
+ "text_preview": "The way we work has changed completely, and let's be face it—remote work is a total game-changer. It's not just a passing trend, either. The professional landscape has undergone a radical shift, and there is no denying that remote work has become a transformative force. For both employees and employ..."
34
+ },
35
+ "humanized_from_scratch": {
36
+ "perplexity": 19.69,
37
+ "burstiness": 1.9933,
38
+ "fast_detectgpt_score": 0.0001,
39
+ "fast_detectgpt_class": "Human",
40
+ "heuristic_ai_prob": 0.3333,
41
+ "heuristic_class": "Human",
42
+ "word_count": 211,
43
+ "text_preview": "The way we work has changed completely, and there's no avoiding it—remote work is here to stay. Whether you're on the hiring side or the grind, moving to a virtual office has been a total game-changer.\n\nThe biggest win, honestly, is killing the commute. When you stop wasting hours every day sitting ..."
44
+ }
45
+ }
46
+ },
47
+ {
48
+ "prompt": "Explain quantum computing in simple terms, around 150 words.",
49
+ "variants": {
50
+ "ai_original": {
51
+ "perplexity": 14.82,
52
+ "burstiness": 0.6893,
53
+ "fast_detectgpt_score": 0.0003,
54
+ "fast_detectgpt_class": "Human",
55
+ "heuristic_ai_prob": 0.4083,
56
+ "heuristic_class": "Uncertain",
57
+ "word_count": 146,
58
+ "text_preview": "Imagine a traditional computer uses \"bits,\" which are like switches that can be either off (0) or on (1). Everything you do on your phone or laptop is built from these binary choices.\n\nA quantum computer uses \"qubits.\" Unlike a bit, a qubit can be a 0, a 1, or both at the same time. This is called *..."
59
+ },
60
+ "humanized_std": {
61
+ "perplexity": 12.94,
62
+ "burstiness": 0.7897,
63
+ "fast_detectgpt_score": 0.0005,
64
+ "fast_detectgpt_class": "Human",
65
+ "heuristic_ai_prob": 0.4333,
66
+ "heuristic_class": "Uncertain",
67
+ "word_count": 203,
68
+ "text_preview": "Think of a standard computer as a collection of tiny light switches. Each one is either off (0) or on (1). Every single thing you do on your phone or laptop is basically just a massive pile of these \"yes or no\" choices.\n\nNow, quantum computers use something called qubits, and this is where things ge..."
69
+ },
70
+ "humanized_aggressive": {
71
+ "perplexity": 12.96,
72
+ "burstiness": 0.764,
73
+ "fast_detectgpt_score": 0.0005,
74
+ "fast_detectgpt_class": "Human",
75
+ "heuristic_ai_prob": 0.4333,
76
+ "heuristic_class": "Uncertain",
77
+ "word_count": 202,
78
+ "text_preview": "Think of a normal computer as a massive collection of tiny light switches. Each switch is either off (0) or on (1). Every single thing you do on your phone or laptop is basically just a colossal chain of these \"yes or no\" binary choices.\n\nQuantum computers, however, use something called qubits, and ..."
79
+ },
80
+ "humanized_from_scratch": {
81
+ "perplexity": 17.16,
82
+ "burstiness": 1.3092,
83
+ "fast_detectgpt_score": 0.0002,
84
+ "fast_detectgpt_class": "Human",
85
+ "heuristic_ai_prob": 0.3417,
86
+ "heuristic_class": "Human",
87
+ "word_count": 190,
88
+ "text_preview": "Think of a standard computer as being powered by \"bits.\" These are basically tiny light switches that can either be off (0) or on (1). Every single thing you do on your laptop or phone is just a massive collection of those yes/no choices.\n\nQuantum computers use \"qubits,\" which is where things get we..."
89
+ }
90
+ }
91
+ },
92
+ {
93
+ "prompt": "Write a professional email declining a job offer, about 100 words.",
94
+ "variants": {
95
+ "ai_original": {
96
+ "perplexity": 8.87,
97
+ "burstiness": 0.7135,
98
+ "fast_detectgpt_score": 0.0014,
99
+ "fast_detectgpt_class": "Human",
100
+ "heuristic_ai_prob": 0.35,
101
+ "heuristic_class": "Human",
102
+ "word_count": 102,
103
+ "text_preview": "Subject: Job Offer - [Job Title] - [Your Name]\n\nDear [Hiring Manager Name],\n\nThank you very much for offering me the position of [Job Title]. I truly appreciate the time you and your team spent sharing me about [Company Name].\n\nAfter careful consideration, I have decided not to accept the offer as I..."
104
+ },
105
+ "humanized_std": {
106
+ "perplexity": 9.4,
107
+ "burstiness": 0.5967,
108
+ "fast_detectgpt_score": 0.0012,
109
+ "fast_detectgpt_class": "Human",
110
+ "heuristic_ai_prob": 0.4667,
111
+ "heuristic_class": "Uncertain",
112
+ "word_count": 199,
113
+ "text_preview": "Subject: Job Offer - [Job Title] - [Your Name]\n\nHi [Hiring Manager Name],\n\nThank you so much for offering me the [Job Title] role. I really enjoyed meeting the team and getting to learn more about what you guys are doing at [Company Name].\n\nAfter thinking it over carefully, I’ve decided not to accep..."
114
+ },
115
+ "humanized_aggressive": {
116
+ "perplexity": 8.57,
117
+ "burstiness": 0.5916,
118
+ "fast_detectgpt_score": 0.0016,
119
+ "fast_detectgpt_class": "Human",
120
+ "heuristic_ai_prob": 0.4667,
121
+ "heuristic_class": "Uncertain",
122
+ "word_count": 200,
123
+ "text_preview": "Subject: Job Offer - [Job Title] - [Your Name]\n\nHi [Hiring Manager Name],\n\nThank you so much for offering me the [Job Title] role. I really enjoyed meeting the team and getting a better feel for what you all are doing at [Company Name].\n\nAfter thinking it over carefully, I’ve decided not to accept t..."
124
+ },
125
+ "humanized_from_scratch": {
126
+ "perplexity": 9.76,
127
+ "burstiness": 0.6085,
128
+ "fast_detectgpt_score": 0.0011,
129
+ "fast_detectgpt_class": "Human",
130
+ "heuristic_ai_prob": 0.3833,
131
+ "heuristic_class": "Human",
132
+ "word_count": 113,
133
+ "text_preview": "Subject: Job Offer: [Job Title] - [Your Name]\n\nHi [Hiring Manager Name],\n\nThank you so much for offering me the [Job Title] role. I really enjoyed meeting you and the rest of the team and learning more about what you're doing at [Company Name].\n\nAfter giving it some serious thought, I’ve decided not..."
134
+ }
135
+ }
136
+ }
137
+ ]
experiment_log.json ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "config": {
3
+ "timestamp": "20260629-201308",
4
+ "model_id": "google/diffusiongemma-26B-A4B-it",
5
+ "gpu": "A100-80GB",
6
+ "quantization": "4bit-nf4",
7
+ "canvas_length": 256
8
+ },
9
+ "steps": {
10
+ "1_baseline": {
11
+ "num_prompts": 5,
12
+ "total_words": 759
13
+ },
14
+ "2_detectors_before": {
15
+ "num_samples": 5,
16
+ "perplexity": {
17
+ "mean": 15.49,
18
+ "std": 4.2
19
+ },
20
+ "burstiness": {
21
+ "mean": 0.6738
22
+ },
23
+ "fast_detectgpt": {
24
+ "mean_score": 0.0005,
25
+ "ai_detected": 0,
26
+ "human_detected": 5
27
+ },
28
+ "heuristic": {
29
+ "mean_ai_prob": 0.35,
30
+ "ai_classified": 0,
31
+ "human_classified": 5
32
+ }
33
+ },
34
+ "3_dataset": {
35
+ "synthetic_pairs": 39,
36
+ "hc3_pairs": 0,
37
+ "note": "HC3 unavailable — dataset scripts deprecated in newer `datasets` lib"
38
+ },
39
+ "4_training": {
40
+ "status": "skipped",
41
+ "reason": "PEFT incompatible with DiffusionGemmaForBlockDiffusion",
42
+ "note": "Base model achieves 0% AI detection — fine-tuning not needed for MVP"
43
+ },
44
+ "5_evaluation": {
45
+ "num_eval_prompts": 3,
46
+ "ai_mean_heuristic": 0.3805,
47
+ "humanized_mean_heuristic": 0.4028,
48
+ "improvement": -0.0222
49
+ }
50
+ }
51
+ }
training_data.json ADDED
The diff for this file is too large to render. See raw diff