Dataset Viewer
Auto-converted to Parquet Duplicate
domain
stringclasses
1 value
scorer
stringclasses
1 value
em_checkpoint
stringclasses
1 value
split
stringclasses
2 values
uid
int64
0
278
sample_id
int64
0
179
timestep
int64
0
19
system_prompt
stringclasses
1 value
messages
listlengths
1
39
target_action
stringlengths
65
5.63k
thoughts
listlengths
1
4
likelihoods
listlengths
1
4
rewards
listlengths
1
4
thought_tokens
listlengths
1
4
best_index
int64
0
3
insurance
base
best
eval
1
0
0
You are an assistant helping a P&C underwriter at All National Insurance, a fictional small-business insurance company. Your job is to use the provided tools to look up underwriting guidelines, query database tables, and answer the underwriter's question accurately. Key concepts: - LOB (Line of Business): A type of in...
[ { "role": "user", "content": "Here is the company information:\n\nCompany: Franklin Community News\nDescription: Franklin Community News is a local newspaper publisher providing both print and digital publication to small towns in Massachusetts. Their operations include investigative reporting, local featur...
<tool_call> {"name": "list_tables", "arguments": {}} </tool_call>
[ "I need revenue data. I'll first check if revenue is stored in a column. I can query revenue from the tables, but I need to see what fields are available. This will help me locate revenue figures." ]
[ 0.04618751442534241 ]
[ 0.04618751442534241 ]
[ 43 ]
0
insurance
base
best
eval
1
0
1
You are an assistant helping a P&C underwriter at All National Insurance, a fictional small-business insurance company. Your job is to use the provided tools to look up underwriting guidelines, query database tables, and answer the underwriter's question accurately. Key concepts: - LOB (Line of Business): A type of in...
[ { "role": "user", "content": "Here is the company information:\n\nCompany: Franklin Community News\nDescription: Franklin Community News is a local newspaper publisher providing both print and digital publication to small towns in Massachusetts. Their operations include investigative reporting, local featur...
<tool_call> {"name": "get_table_descriptions", "arguments": {}} </tool_call>
[ "The revenue is stored in the 'annual_revenue' column of the'small_business_insurance_appetite' table. I'll check if revenue data is available in that table." ]
[ 0.22944929518302948 ]
[ 0.22944929518302948 ]
[ 37 ]
0
insurance
base
best
eval
1
0
2
You are an assistant helping a P&C underwriter at All National Insurance, a fictional small-business insurance company. Your job is to use the provided tools to look up underwriting guidelines, query database tables, and answer the underwriter's question accurately. Key concepts: - LOB (Line of Business): A type of in...
[ { "role": "user", "content": "Here is the company information:\n\nCompany: Franklin Community News\nDescription: Franklin Community News is a local newspaper publisher providing both print and digital publication to small towns in Massachusetts. Their operations include investigative reporting, local featur...
<tool_call> {"name": "get_underwriting_guidelines", "arguments": {}} </tool_call>
[ "I need revenue data, so I'll query revenue data to see if it's available. I can check if revenue data is in any of these tables." ]
[ 0.38770272504541625 ]
[ 0.38770272504541625 ]
[ 31 ]
0
insurance
base
best
eval
1
0
3
You are an assistant helping a P&C underwriter at All National Insurance, a fictional small-business insurance company. Your job is to use the provided tools to look up underwriting guidelines, query database tables, and answer the underwriter's question accurately. Key concepts: - LOB (Line of Business): A type of in...
[ { "role": "user", "content": "Here is the company information:\n\nCompany: Franklin Community News\nDescription: Franklin Community News is a local newspaper publisher providing both print and digital publication to small towns in Massachusetts. Their operations include investigative reporting, local featur...
<tool_call> {"name": "get_table_schema", "arguments": {"table_name": "small_business_lobs"}} </tool_call>
[ "I need revenue data, so I'll check if revenue is in the \"annual_revenue\" column of the \"small_business_insurance_appetite\" table." ]
[ 0.5391253757982409 ]
[ 0.5391253757982409 ]
[ 33 ]
0
insurance
base
best
eval
1
0
4
You are an assistant helping a P&C underwriter at All National Insurance, a fictional small-business insurance company. Your job is to use the provided tools to look up underwriting guidelines, query database tables, and answer the underwriter's question accurately. Key concepts: - LOB (Line of Business): A type of in...
[ { "role": "user", "content": "Here is the company information:\n\nCompany: Franklin Community News\nDescription: Franklin Community News is a local newspaper publisher providing both print and digital publication to small towns in Massachusetts. Their operations include investigative reporting, local featur...
<tool_call> {"name": "read_query", "arguments": {"query": "SELECT * FROM small_business_lobs;"}} </tool_call>
[ "I should see if the revenue data is available in any of the tables. I'll check revenue data to see if any revenue figures exist in the revenue table." ]
[ 0.4850483729330554 ]
[ 0.4850483729330554 ]
[ 32 ]
0
insurance
base
best
eval
1
0
5
You are an assistant helping a P&C underwriter at All National Insurance, a fictional small-business insurance company. Your job is to use the provided tools to look up underwriting guidelines, query database tables, and answer the underwriter's question accurately. Key concepts: - LOB (Line of Business): A type of in...
[ { "role": "user", "content": "Here is the company information:\n\nCompany: Franklin Community News\nDescription: Franklin Community News is a local newspaper publisher providing both print and digital publication to small towns in Massachusetts. Their operations include investigative reporting, local featur...
<tool_call> {"name": "get_table_schema", "arguments": {"table_name": "small_business_insurance_appetite"}} </tool_call>
[ "I should check if revenue data is stored in the \"small_business_insurance_appetite\" table. I'll check revenue data to see if any revenue figures exist in the revenue table." ]
[ 0.9871398682264565 ]
[ 0.9871398682264565 ]
[ 38 ]
0
insurance
base
best
eval
1
0
6
You are an assistant helping a P&C underwriter at All National Insurance, a fictional small-business insurance company. Your job is to use the provided tools to look up underwriting guidelines, query database tables, and answer the underwriter's question accurately. Key concepts: - LOB (Line of Business): A type of in...
[ { "role": "user", "content": "Here is the company information:\n\nCompany: Franklin Community News\nDescription: Franklin Community News is a local newspaper publisher providing both print and digital publication to small towns in Massachusetts. Their operations include investigative reporting, local featur...
<tool_call> {"name": "read_query", "arguments": {"query": "SELECT DISTINCT lob FROM small_business_insurance_appetite;"}} </tool_call>
[ "I need revenue data. I'll check if revenue data exists in revenue tables. This might show revenue data in the revenue table." ]
[ 0.5243917763126462 ]
[ 0.5243917763126462 ]
[ 26 ]
0
insurance
base
best
eval
1
0
7
You are an assistant helping a P&C underwriter at All National Insurance, a fictional small-business insurance company. Your job is to use the provided tools to look up underwriting guidelines, query database tables, and answer the underwriter's question accurately. Key concepts: - LOB (Line of Business): A type of in...
[ { "role": "user", "content": "Here is the company information:\n\nCompany: Franklin Community News\nDescription: Franklin Community News is a local newspaper publisher providing both print and digital publication to small towns in Massachusetts. Their operations include investigative reporting, local featur...
<tool_call> {"name": "read_query", "arguments": {"query": "SELECT * FROM small_business_insurance_appetite WHERE naics = 513110;"}} </tool_call>
[ "I need revenue data. I'll check revenue data from the \"small_business_insurance_appetite\" table, specifically revenue figures for 2024. This might show revenue data from the revenue table." ]
[ 0.8589048426380722 ]
[ 0.8589048426380722 ]
[ 43 ]
0
insurance
base
best
eval
1
0
8
You are an assistant helping a P&C underwriter at All National Insurance, a fictional small-business insurance company. Your job is to use the provided tools to look up underwriting guidelines, query database tables, and answer the underwriter's question accurately. Key concepts: - LOB (Line of Business): A type of in...
[ { "role": "user", "content": "Here is the company information:\n\nCompany: Franklin Community News\nDescription: Franklin Community News is a local newspaper publisher providing both print and digital publication to small towns in Massachusetts. Their operations include investigative reporting, local featur...
<tool_call> {"name": "get_table_schema", "arguments": {"table_name": "sba_size_standards_by_2012_naics"}} </tool_call>
[ "I need revenue data. I'll check revenue data in the revenue table. I'll check revenue data from the revenue table." ]
[ 0.7771889792498349 ]
[ 0.7771889792498349 ]
[ 25 ]
0
insurance
base
best
eval
1
0
9
You are an assistant helping a P&C underwriter at All National Insurance, a fictional small-business insurance company. Your job is to use the provided tools to look up underwriting guidelines, query database tables, and answer the underwriter's question accurately. Key concepts: - LOB (Line of Business): A type of in...
[ { "role": "user", "content": "Here is the company information:\n\nCompany: Franklin Community News\nDescription: Franklin Community News is a local newspaper publisher providing both print and digital publication to small towns in Massachusetts. Their operations include investigative reporting, local featur...
<tool_call> {"name": "read_query", "arguments": {"query": "SELECT * FROM sba_size_standards_by_2012_naics WHERE \"NAICS Codes\" = 513110;"}} </tool_call>
[ "I need revenue data. I'll check revenue data in the revenue table. I'll check revenue data in revenue tables." ]
[ 0.7284335950136865 ]
[ 0.7284335950136865 ]
[ 24 ]
0
insurance
base
best
eval
1
0
10
You are an assistant helping a P&C underwriter at All National Insurance, a fictional small-business insurance company. Your job is to use the provided tools to look up underwriting guidelines, query database tables, and answer the underwriter's question accurately. Key concepts: - LOB (Line of Business): A type of in...
[ { "role": "user", "content": "Here is the company information:\n\nCompany: Franklin Community News\nDescription: Franklin Community News is a local newspaper publisher providing both print and digital publication to small towns in Massachusetts. Their operations include investigative reporting, local featur...
<tool_call> {"name": "read_query", "arguments": {"query": "SELECT lob, appetite FROM small_business_insurance_appetite WHERE naics=513110 AND state='MA';"}} </tool_call>
[ "I need revenue data. I'll check revenue data in the revenue table. I'll check revenue data in revenue tables." ]
[ 0.49102894222731874 ]
[ 0.49102894222731874 ]
[ 24 ]
0
End of preview. Expand in Data Studio

Act-PRM SFT thoughts — snorkel-insurance insurance

Act-PRM (Action Process Reward Models) infers the latent thoughts behind logged, action-only agent demonstrations via an offline EM. For each logged action x in state s we sample G=4 candidate thoughts z, score each by the length-penalized action likelihood

reward(z) = p(x | s, z)

(len_frac grows with the thought's token length), and mark the best thought (argmax reward). The (thought + action) span is then what downstream SFT / RL trains on.

This dataset publishes the full E-step: every one of the G sampled thoughts per logged action, each with its reward, likelihood (p(x|s,z)) and thought_tokens, plus the best_index. That is, it is not reduced to the top-1 — you can re-derive top-1, top-half, EM-weighted, or any other selection downstream (see below).

Variants (files / splits)

file / split scorer em_checkpoint relabel run
base_best.jsonl base best insurance_s1relabel_base_adamw30
  • scorer — which model computed p(x|s,z) in the E-step: the trained policy LoRA, or the frozen base model (--score_with_base).
  • em_checkpoint — which EM training checkpoint the scorer was resumed from: the best-metric step, or the last step.

Every row also carries scorer / em_checkpoint columns, so you can also concatenate the files and filter.

Note: train-split rows have the full G=4 sampled thoughts; the held-out eval-split rows were relabeled with a single sample (G=1), so their thoughts/rewards lists have length 1 and best_index == 0.

Schema (one row per relabel-variant x logged action-step)

field type meaning
domain str {domain}
scorer str policy or base
em_checkpoint str best or last
split str train or eval (eval = held-out; G=1)
uid str/int source trajectory id
sample_id int dataloader sample id within the relabel pass
timestep int index of this action among the trajectory's actions
system_prompt str the agent system prompt
messages list[{role, content}] state s: context up to (not incl.) the action
target_action str the logged ground-truth action x (a <tool_call>...</tool_call>)
thoughts list[str] the G sampled candidate thoughts z
likelihoods list[float] `p(x
rewards list[float] length-penalized reward for each thought
thought_tokens list[int] token length of each thought
best_index int argmax-reward thought index

Selecting thoughts

from datasets import load_dataset
ds = load_dataset("mzio/aprm-sft-thoughts-snorkel-insurance-base_best-adamw30-lp0", split="policy_best")   # or base_best / policy_last / base_last
row = ds[0]

# top-1 (what the paper's SFT commits): the best length-penalized thought
top1 = row["thoughts"][row["best_index"]]
assert row["rewards"][row["best_index"]] == max(row["rewards"])

# the SFT target span is thought + action:
sft_target = top1 + "\n\n" + row["target_action"]

# top-half: keep the thoughts whose reward is in the top 50%
import numpy as np
order = np.argsort(row["rewards"])[::-1]
top_half = [row["thoughts"][i] for i in order[: max(1, len(order) // 2)]]

# EM weights: group-normalized (softmax-like) weights over all G thoughts,
# e.g. a temperature-1 softmax over rewards (or normalize exp(likelihood)):
import math
r = row["rewards"]
Z = sum(math.exp(x) for x in r)
em_weights = [math.exp(x) / Z for x in r]   # weight every (thought+action) span

Provenance

Generated by Act-PRM Stage-1 relabel passes over snorkel-insurance insurance expert demonstrations (no_train generate-only passes), model hf_qwen3_4b_instruct, group_size=4, length_penalty=0.0. The held-out RL-eval tasks are excluded. Built with scripts/export_sft_dataset_hf.py.

The LoRA that scored p(x | s, z) was itself trained by the Stage-1 EM:

EM setting value
optimizer adamw
learning_rate 4e-05
num_batches 30
advantage_mode action_probs
length_penalty 0.0
lora_config r32_a32_linear
Downloads last month
19