Statute Drift: IPC-to-BNS offence table, benchmark questions, model answers, parser and Colab notebook
Authors/Creators
- 1. Vellore Institute of Technology
Description
Data and code for the paper Section 302 No Longer Means Murder: Statute Drift in Open Language Models after India's Criminal-Code Replacement (submitted to ICCIDSDT-2027, Springer LNNS).
On 1 July 2024 the Bharatiya Nyaya Sanhita, 2023 (BNS) replaced the Indian Penal Code, 1860 (IPC), and nearly every offence was renumbered. This deposit holds:
- a benchmark of 407 offences whose IPC-to-BNS mapping two independent public sources agree on;
- 4,884 English and Hindi questions and 407 number-meaning multiple-choice items;
- every answer that 15 open-weight language models gave on 3 October 2026;
- seven repair runs (date line, law notice, BM25 retrieval, era-vector steering and three LoRA variants) on Qwen2.5-7B and Mistral-7B-v0.3;
- the rule-based answer parser and the Colab notebook that produced every result.
Files
statute_drift_offence_table_IPC_to_BNS.csv: the 407 cross-checked offences, with IPC and BNS sections and headings, collision/void kind and dev/test split.statute_drift_benchmark.zip: offences, questions and MCQs (Parquet and CSV), the 500-question MMLU slice, BNS titles, source disagreements and the Source A table.statute_drift_model_outputs.zip: for each model and repair, the raw and scored answers, forced-choice and letter log-probabilities, MMLU and era-probe outputs, and the run log.statute_drift_code_and_results.zip: the Colab notebook,reanalyse.py(re-scores the saved outputs on a CPU, with 30 parser self-tests),paper_tables.py(recomputes Table 2), and the result tables, figures and summary.README.mdandCITATION.cff.
Re-running reanalyse.py and paper_tables.py on these files reproduces Tables 1 and 2 of the paper exactly.
Only public statutes and datasets were used, and no personal or case data is included. Source B (NyayaLabs98/nyaya-statute-db, revision 7e13be9) is not redistributed; the notebook downloads it at that revision. The derived tables and model outputs are released under CC BY 4.0, and the code under the MIT licence.
Notes
Files
README.md
Files
(10.0 MB)
| Name | Size | |
|---|---|---|
|
md5:c868d1a678c8bafb1e6ccff7d740cc00
|
1.3 kB | Download |
|
md5:57f7d9a9054d171c1b34b326c3a1b3e9
|
5.9 kB | Preview Download |
|
md5:8fa69808bea972f46992532d2f9a5100
|
640.3 kB | Preview Download |
|
md5:eb2d8883017eb0ef902b237752445a08
|
1.7 MB | Preview Download |
|
md5:887bc4bd9d09923175d6a1fd39130757
|
7.6 MB | Preview Download |
|
md5:6aab2d02661979d182a51609a384b538
|
67.1 kB | Preview Download |
Additional details
Related works
- Is derived from
- Dataset: https://huggingface.co/datasets/nandhakumarg/IPC_and_BNS_transformation (URL)
- Dataset: https://huggingface.co/datasets/NyayaLabs98/nyaya-statute-db (URL)