barexam-hints / README.md
bhavanaNannuru's picture
Update README.md
9dc7c45 verified
|
Raw History Blame Contribute Delete
6.16 kB
metadata
license: cc-by-sa-4.0
language:
  - en
pretty_name: Bar Exam QA Hints
size_categories:
  - 1K<n<10K
task_categories:
  - question-answering
tags:
  - legal
  - bar-exam
  - hints
  - cot-monitorability
  - confidence
  - synthetic
source_datasets:
  - reglab/barexam_qa
configs:
  - config_name: gpt_generated
    data_files: ai_generated/gpt_generated.jsonl
  - config_name: copilot_generated
    data_files: ai_generated/copilot_generated.jsonl

Bar Exam QA Hints

Each question in reglab/barexam_qa is paired with a helpful hint and an unhelpful hint written in the same style. The helpful hint points to the governing rule without giving away the answer. The unhelpful hint sounds relevant but carries no information about the answer.

This dataset is the hint-generation step of a larger experiment. The goal is for helpful hints to raise a model's confidence and unhelpful hints to lower it. That effect is measured in later stages, not here.

Source data

  • reglab/barexam_qa, QA config: train (954), validation (124), test (117). Total: 1,195 questions.
  • qa.csv was not used because it is the union of the three splits.
  • Rows are deduplicated by idx and ordered train → validation → test.

Repository layout

Folder Contents
prep/ Prepared input: the three splits merged and deduplicated, with the full question text built and the gold_passage attached. This is the input to every generation run.
smoke2/ … smoke7/ Smoke tests: small trial runs of the generation pipeline used to debug prompts, the output format, and the style checks before the full run. Kept for reference. Not final data.
run1/ First full pipeline run over all 1,195 questions, sharded across three Colab sessions.
ai_generated/ Hints written directly by chat assistants, one file per assistant (see below).

ai_generated/

File Written by Rows Mean words (helpful / unhelpful) needs_review = true
gpt_generated.jsonl ChatGPT 1,195 17.2 / 17.3 672
copilot_generated.jsonl Microsoft Copilot 1,195 18.2 / 16.1 424

All rows in both files have unhelpful_kind = "uninformative", no duplicate idx values, and no empty hints.

Inside run1/

run1/gen/: raw generation output (one file per Colab shard)

File What it is
gen_shard_0.jsonl Hints generated for shard 0 of the questions (Colab account 1)
gen_shard_1.jsonl Hints generated for shard 1 (Colab account 2)
gen_shard_2.jsonl Hints generated for shard 2 (Colab account 3)

Why it exists: the questions were split into three shards so three free Colab accounts could generate hints in parallel. Each shard writes to its own file, so an interrupted session can resume where it stopped. This is unedited model output. Do not use it directly in experiments.

run1/final/: merged and filtered output

File Rows What it is Use
final_full.jsonl 886 All shards merged. Keeps every generated row and adds two audit columns: clean (true/false) and flags (the checks the row failed). Audit trail: shows which rows were dropped and why.
final_clean.jsonl 807 The rows of final_full with clean = true. The 79 dropped rows failed at least one check: hint too close to an option's wording (helpful 51, unhelpful 15), hint lengths too far apart (40), or hints too similar to each other (1). First filtered version. Superseded by v2.
final_clean_v2.jsonl 738 final_clean with 69 more rows removed, where the unhelpful hint was a near-paraphrase of the helpful one (average word overlap between the two hints 0.43, against 0.15 in the rows kept). The hint text is unchanged. Use this file for the confidence experiments.

Why it exists: turns the raw shard output into one filtered dataset. Each filtering stage is saved as its own file so every step can be traced or redone.

Notes

  • final_full covers 886 of the 1,195 source questions. The other 309 have no generated row in run1.
  • Columns in the clean files: uid, question, options, correct_option, helpful_hint, unhelpful_hint, negative_type. There is no idx or split column, so use uid to join back to prep/.
  • final_clean_v2 has 391 easy and 347 hard negatives. The v2 filter removed mostly hard rows (53 of 69), because same-area hints are the ones most likely to paraphrase each other.

Fields

Field Description
idx Original example ID
split train, validation, or test
question prompt + "\n\n" + question, leaving out whichever part is empty
options The four options, A–D
correct_option A, B, C, or D
helpful_hint Names the legal issue or rule. Never states the answer, an option letter, or wording copied from an option.
unhelpful_hint Same style and length (±15%) as the helpful hint, about a different rule
negative_type easy: rule from a different area of law. hard: same area of law, different doctrine. Alternates by row position, about 50/50.
unhelpful_kind uninformative (gives no information favoring any option)
needs_review true when gold_passage is empty or unrelated, so the hint relies on general knowledge of the rule
source Which generator wrote the row

Limitations

  • No lawyer has reviewed the hints.
  • The needs_review rate differs a lot between generators, so the generators applied the flag differently. Do not treat it as a measure of quality.
  • Some source rows are missing their shared fact pattern or have a mismatched gold_passage.
  • The hints follow the source answer key as given.

License

CC BY-SA 4.0, inherited from reglab/barexam_qa.

Citation

Please cite the source benchmark: A Reasoning-Focused Legal Retrieval Benchmark (Zheng et al., CS&Law 2025) — https://reglab.github.io/legal-rag-benchmarks/