Trust, but Verify: An Agent-Based Model of How Grading Shapes Students' Reliance on Generative AI 1.0.0
Trust, but Verify: an agent-based model of how university grading shapes whether students use generative AI and check its answers. Students in a network of study groups update their stance through graded work and peer influence. Includes NumPy and Mesa implementations, and an interactive Solara dashboard.
Release Notes
Version 1.0.0 - initial release accompanying the manuscript
“Trust, but Verify: An Agent-Based Model of How Grading Shapes
Students’ Reliance on Generative AI”.
Contents
- model.py: vectorised NumPy implementation used for all experiments
in the paper, including the mean-field equilibrium and expected dynamics.
- mesa_model.py: independent implementation in Mesa 3 (Student, TrustModel),
used to verify the NumPy version.
- experiments.py, ensemble.py: computational experiments E1, H1, H2, H3,
sensitivity analysis (S) and run-to-run variability (B) with bootstrap
confidence intervals.
- figures.py, network_viz.py: figures.
- app.py, dashboard.js, dashboard.css: interactive dashboard (Mesa + Solara).
- docs/ODD.pdf: full model description following the ODD protocol,
including mean-field analysis and verification.
- out/: figures and saved results of all experiments.
Reproducibility
All results reported in the paper are reproduced with
pip install -r requirements.txt
python run_all.py 200
(about one minute on a laptop). Randomness is controlled by explicit
seeds; the same seed gives the same population across scenarios.
Requirements: Python >= 3.10, NumPy, NetworkX, pandas, Matplotlib,
Mesa 3, Solara (see requirements.txt).