PGM-artifacts / README.md
Ever2after's picture
Add v2 replay inputs and posterior/VOI traces; manifest and card for v2
6a5c31e verified
|
Raw History Blame Contribute Delete
4.01 kB
metadata
pretty_name: PGM adaptive self-consistency — response banks, cohorts and fitted policies
license: other
task_categories:
  - question-answering
language:
  - en
tags:
  - self-consistency
  - adaptive-sampling
  - mathematical-reasoning
  - llm-evaluation
size_categories:
  - 100K<n<1M

PGM adaptive self-consistency: released artifacts

Data for github.com/Ever2after/PGM, which studies when to stop sampling in adaptive self-consistency with a small probabilistic graphical model of the sampled answers (v2: latent difficulty, CRP over wrong answers, value-of-information stopping) against the SC / ASC / ESC / ReASC baselines on MATH500, GSM8K and Omni-MATH. Banks cover Gemma-3-4B-IT, Qwen2.5-3B-Instruct, Qwen2.5-7B-Instruct and Llama-3.1-8B-Instruct (v2 uses Gemma-3-4B, Qwen2.5-7B and Llama-3.1-8B). The archived v1 study (partition-mixture heads) is also reproducible from these files.

Folder Files Content
cohorts/ 3 Questions and gold answers per dataset, splits calibration / train / dev / test
banks/ 36 Per (model, dataset): 16 sampled responses per question with teacher-forcing features, extraction costs, ReASC self-certainty and xVerify-3B-Ia labels (.parquet), plus row-aligned reasoning embeddings (.embeddings.npy, float32) and per-token top-20 log-probabilities (.top_logprobs.parquet, 18 GB in total, optional)
policies/ 24 (v1) Per (model, dataset): fitted policy (.json: partition thresholds, scalers, temperatures, dev-selected thresholds, baseline calibration) and the 36 head checkpoints (.checkpoints.pt)
decisions/ 16 (v1) Per evaluation cell: the decision of every method on every test question
v2/ 18 (v2) Compact replay inputs per (model, dataset) (<model>_<dataset>.npz: answer slots, labels, self-certainty, token costs, text/hidden-state similarity matrices) and posterior/VOI traces of every arm (traces/); 37 MB
manifest.json 1 Size and SHA256 of every file

396,928 responses in total (12 banks of 26,048–39,152 responses).

Use

git clone https://github.com/Ever2after/PGM && cd PGM
pip install -e .
pgm download --only v2       # 37 MB: enough to rescore v2 and to evaluate a new method on the same protocol
pgm v2 rescore && pgm v2 report
pgm v2 method --plugin examples/plurality_margin.py   # a new baseline, drawn on the same figures
pgm download                 # everything except log-probabilities (~7 GB): needed to refit v2 (pgm v2 prepare/run) or replay v1
pgm download --only logprobs  # per-token top-20 log-probabilities (18 GB)

Without the code:

import numpy as np, pyarrow.parquet as pq
bank = pq.read_table("banks/qwen7b_math.parquet")
emb = np.load("banks/qwen7b_math.embeddings.npy", mmap_mode="r")   # emb[i] belongs to bank row i
v2 = np.load("v2/qwen7b_math.npz")                                  # arrays "<split>.<name>", e.g. v2["test.ids"] [500, 16]

Column definitions, the v2 arrays and the policy format are documented in docs/DATA.md.

Provenance and licenses

Responses were sampled with vLLM 0.11.0 from the pinned model revisions in configs/models.json using each model's official sampling defaults; labels come from the pinned public xVerify-3B-Ia judge. The questions come from MATH (Hendrycks et al.; MATH500 subset of OpenAI PRM800K), GSM8K (OpenAI) and Omni-MATH (KbsdJames/Omni-MATH), and remain under their original licenses. Generated responses are subject to the terms of the respective model licenses (Gemma Terms of Use, Qwen license, Llama 3.1 Community License). This release adds no rights to the upstream datasets or models.

The complete original run archive (including earlier V2/V5 experiments) is in Ever2after/PGM-experiment-artifacts.