diff --git a/.ipynb_checkpoints/README-checkpoint.md b/.ipynb_checkpoints/README-checkpoint.md new file mode 100644 index 0000000000000000000000000000000000000000..cafeec77e5e6c11a8cb9689b48322229153a1220 --- /dev/null +++ b/.ipynb_checkpoints/README-checkpoint.md @@ -0,0 +1,159 @@ +# Introduction to AI — Practical Exam Grading Dataset (Stage 2) + +1,038 anonymized student submissions to a university-level practical AI exam, +each independently graded by **two** teaching assistants, plus the rubric and +the instructor reference solutions. + +The 18 LLM grading runs measured on this data, the graders that produced them, +and the analysis code all live in the project repository alongside the +equivalent Computer Vision dataset; this folder is the data itself. + +The dataset was built to test how sensitive LLM graders are to the *prompt* they +are given — specifically, what happens when an instructor adds a plausible +"be strict" instruction to an otherwise well-behaved grading prompt. + +## What is here + +| path | contents | +|---|---| +| `Practical_AI_exam_grades.csv` | ground truth: two TA grades per student, per question and total | +| `submissions_extracted//Q{1,2,3}.ipynb` | the anonymized student notebooks | +| `Solutions/` | instructor reference solution per question | +| `stage_2_rubrics_ta.md` | the marking scheme the TAs graded against | + +Students are identified only by a number (1–1038) that is stable across every +file. Notebook `submissions_extracted/7/Q2.ipynb` belongs to the student in row +`Number == 7` of the grades CSV. + +## The exam and its scale + +Three questions: **Q1** tabular regression (predict food delivery time), +**Q2** PyTorch (predict age from face images), **Q3** classification (find the +most predictive feature in an anonymized dataset). + +Marks come from the rubric's task tables, not its header totals — the two +disagree in the distributed PDF, which is preserved here as `stage_2_rubrics_ta.md`: + +| question | base | bonus | +|---|---|---| +| Q1 Regression | 23 | 3 | +| Q2 PyTorch | 14 | 3 | +| Q3 Classification | 19 | 3 | + +Two instructor corrections were issued by email *during* grading, both affecting +Q3 only (Part 1 dropped a task and became 2 marks; Part 4 dropped a task and +became 5). Both are folded into the rubric file and marked ⚠. + +## Ground truth quality + +Every student is graded by two TAs, so the dataset carries its own noise floor: + +| statistic | value | +|---|---| +| TA-vs-TA mean absolute difference (totals) | 5.13 | +| **floor: \|TA − TA mean\|**, the quantity an AI grader is scored against | **2.57** (95% CI 2.41–2.74) | +| inter-TA correlation (totals) | 0.871 | + +The floor is ~4% of the ~65-point scale. Any AI grader should be read against +2.57, not against zero. + +## Anonymization + +Student names, ID numbers, emails, and submission links are absent. Notebooks +were rebuilt from scratch keeping only code cells: markdown cells, outputs, +execution counts, and all per-cell metadata were dropped, so Colab +`executionInfo` blocks (which embed a Google account name and user id) do not +survive. Remaining identifiers inside code — names in variable names or +comments, emails, ID numbers, phone numbers, filesystem usernames — were +replaced with `ANON` (identifier-safe) or `[REDACTED]`. + +Scrubbing was verified two ways: an exhaustive scan against the full roster +(every student and TA name, email and ID, plus generic email/ID/phone patterns +and notebook-format regressions), and an LLM review of all ~25k comment and +string literals looking for identifiers the roster could not know about. The +second pass is what caught a reference to an instructor by first name and one +student who had loaded the exam data from a personal account. + +TAs appear only as pseudonyms (`TA_1`, `TA_2`, …). One slot carries the +composite id `TA_49+TA_50`: those 18 students had Q1 and Q2 graded by one TA and +Q3 by another. The pseudonym-to-person mapping is **not** published, so grading +behaviour cannot be attributed to any individual. + +One deliberate difference between the released grader and the script that +produced `results/`: the prompt's opening sentence named the institution and +programme running the course, and reads *"an introductory AI practical exam"* +here instead. That phrase is the only difference, and it changes no grading +rule — but a run reproduced from this bundle sends a prompt one phrase +different from the published one. + +## Known gaps, stated plainly + +- 24 students from the original cohort are absent: they uploaded nothing, an + unreadable archive, or files that were not the exam. The remaining 1,038 are + numbered contiguously. +- Roughly 96 students are missing a notebook for at least one question — they + did not submit that question. An absent `Q.ipynb` means exactly that, and + the grading code scores it 0. +- The rubric's header totals contradict its own task tables in all three + questions. This is preserved rather than corrected; it is part of what a real + grading prompt has to cope with. +- A handful of TA grades exceed the rubric maximum for a question. +- Two TA grades awarded credit for a question the student never submitted + (8.0 and 10.0, each contradicted by the paired TA's 0). Both were set to 0 + and the totals recomputed: ground truth that credits work no grader can see + would penalise every grader, human or machine. + +## The LLM runs in `results/` + +Nine open-weights models, each run twice over the full cohort with an identical +prompt except for one leading persona sentence: + +- **neutral** — "You are a strict but fair teaching assistant." +- **strict** — "You are a HARSH teaching assistant. Award the MINIMUM defensible + score for any task that is incomplete, buggy, or deviates from the rubric. + Never give partial credit if the task does not run correctly." + +Everything else is held fixed: reference solution included, per-task breakdown +requested, no chain-of-thought, temperature 0, one sample per question. Each +workbook holds the AI score, bonus, and reasoning per question alongside the TA +columns. `runs_summary.csv` carries MAE against the TA average with a +2,000-resample bootstrap CI. + +`behaviour` classes: `refusal` (≥90% of students zeroed, awarded-total std +< 0.5), `near-refusal` (≥90% zeroed but still varying), `collapse` (MAE ≥ 8, +i.e. ≥3× the human floor, while still discriminating between students), +`graded` otherwise. + +## Reproducing + +The grading and analysis code lives in the project repository, which expects +this folder at `introduction_to_ai_dataset/`: + +```bash +# serve a model with vLLM, then: +python introduction_to_ai_grade_with_local.py --all \ + --model --api-base http://localhost:8000/v1 \ + --with-solution --no-reasoning --with-breakdown \ + --strictness strict --temperature 0.0 --runs 1 \ + --tag IA02_m-_sol1_gd0_rs0_bd1_str-strict_t00_n1 + +python introduction_to_ai_analyze_run.py # MAE, CI, behaviour class +``` + +`introduction_to_ai_submit_persona_sweep.sbatch` is the SLURM launcher: an +array job, one task per persona (`--array=0,1` gives the published +neutral+strict pair). `STUDENTS=1-5` turns it into a smoke run that writes +outside the results tree. It also supports splitting one persona across +`SHARDS=K` concurrent jobs, reassembled with +`introduction_to_ai_merge_shards.py`. +Shards must never share an output workbook — the grader holds the whole workbook +in memory and rewrites it after every question, so two writers silently destroy +each other's grades. + +The published runs used vLLM 0.19.1. Grading is not bitwise reproducible: +generation is unconstrained, and JSON is parsed leniently. + +## Licence and intended use + +The student work belongs to its authors and is released for research on +automated grading. Do not attempt to re-identify students or TAs. diff --git a/README.md b/README.md index cafeec77e5e6c11a8cb9689b48322229153a1220..50fd5de4963b4863e0fe8b4ac9c541bbe96e7e2a 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,21 @@ +--- +license: other +license_name: research-use-only +task_categories: +- text-classification +- text-generation +language: +- en +tags: +- education +- automated-grading +- llm-evaluation +- prompt-sensitivity +- code-assessment +size_categories: +- 1K