Datasets:
domain stringclasses 1
value | scorer stringclasses 1
value | em_checkpoint stringclasses 1
value | split stringclasses 2
values | uid int64 0 71 | sample_id int64 0 51 | timestep int64 0 21 | system_prompt stringclasses 1
value | messages listlengths 1 50 | target_action stringlengths 58 4.92k | thoughts listlengths 1 4 | likelihoods listlengths 1 4 | rewards listlengths 1 4 | thought_tokens listlengths 1 4 | best_index int64 0 3 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
retail | base | best | eval | 24 | 0 | 0 | You are a helpful customer service agent.
<policy>
# Retail agent policy
As a retail agent, you can help users:
- **cancel or modify pending orders**
- **return or exchange delivered orders**
- **modify their default user address**
- **provide information about their own profile, orders, and related products**
At t... | [
{
"role": "user",
"content": "Um, hi. I, uh, wanted to see if I could exchange a jacket I bought."
}
] | <tool_call>
{"name": "respond_user", "arguments": {"text": "Sure \u2014 I can help with an exchange. First I need to find your account. Please provide either the email on your account or your first name, last name, and zip code. Also please tell me the order ID (if you have it), which jacket item(s) from that order you... | [
"I need to find details about the jacket. I will retrieve the user's information based on the email ID or the order ID."
] | [
0.07886303608296194
] | [
0.07886303608296194
] | [
26
] | 0 |
retail | base | best | eval | 24 | 0 | 1 | You are a helpful customer service agent.
<policy>
# Retail agent policy
As a retail agent, you can help users:
- **cancel or modify pending orders**
- **return or exchange delivered orders**
- **modify their default user address**
- **provide information about their own profile, orders, and related products**
At t... | [
{
"role": "user",
"content": "Um, hi. I, uh, wanted to see if I could exchange a jacket I bought."
},
{
"role": "assistant",
"content": "<tool_call>\n{\"name\": \"respond_user\", \"arguments\": {\"text\": \"Sure \\u2014 I can help with an exchange. First I need to find your account. Please provi... | <tool_call>
{"name": "find_user_id_by_email", "arguments": {"email": "yusuf.hernandez8836@example.com"}}
</tool_call> | [
"I need to get the user ID from the email. I will use the user ID to fetch the user's details."
] | [
0.6027413487147011
] | [
0.6027413487147011
] | [
24
] | 0 |
retail | base | best | eval | 24 | 0 | 2 | You are a helpful customer service agent.
<policy>
# Retail agent policy
As a retail agent, you can help users:
- **cancel or modify pending orders**
- **return or exchange delivered orders**
- **modify their default user address**
- **provide information about their own profile, orders, and related products**
At t... | [
{
"role": "user",
"content": "Um, hi. I, uh, wanted to see if I could exchange a jacket I bought."
},
{
"role": "assistant",
"content": "<tool_call>\n{\"name\": \"respond_user\", \"arguments\": {\"text\": \"Sure \\u2014 I can help with an exchange. First I need to find your account. Please provi... | <tool_call>
{"name": "get_user_details", "arguments": {"user_id": "yusuf_hernandez_6785"}}
</tool_call> | [
"I now need to fetch the user's order details so I can find the order ID associated with the user. This will be used to determine the user's order history and identify the specific jacket they want to exchange. The order history contains the user's order records, which may include the jacket they want to exchange.\... | [
0.4133519846822257
] | [
0.4133519846822257
] | [
76
] | 0 |
retail | base | best | eval | 24 | 0 | 3 | You are a helpful customer service agent.
<policy>
# Retail agent policy
As a retail agent, you can help users:
- **cancel or modify pending orders**
- **return or exchange delivered orders**
- **modify their default user address**
- **provide information about their own profile, orders, and related products**
At t... | [
{
"role": "user",
"content": "Um, hi. I, uh, wanted to see if I could exchange a jacket I bought."
},
{
"role": "assistant",
"content": "<tool_call>\n{\"name\": \"respond_user\", \"arguments\": {\"text\": \"Sure \\u2014 I can help with an exchange. First I need to find your account. Please provi... | <tool_call>
{"name": "get_order_details", "arguments": {"order_id": "#W2166301"}}
</tool_call> | [
"I need to get the order ID associated with this user. I will use the order ID to get the order details for this user. The order details will include the items in the order, which can help determine the user's order history and identify the specific jacket they want to exchange. I will fetch the order details using... | [
0.8009466344068352
] | [
0.8009466344068352
] | [
83
] | 0 |
retail | base | best | eval | 24 | 0 | 4 | You are a helpful customer service agent.
<policy>
# Retail agent policy
As a retail agent, you can help users:
- **cancel or modify pending orders**
- **return or exchange delivered orders**
- **modify their default user address**
- **provide information about their own profile, orders, and related products**
At t... | [
{
"role": "user",
"content": "Um, hi. I, uh, wanted to see if I could exchange a jacket I bought."
},
{
"role": "assistant",
"content": "<tool_call>\n{\"name\": \"respond_user\", \"arguments\": {\"text\": \"Sure \\u2014 I can help with an exchange. First I need to find your account. Please provi... | <tool_call>
{"name": "get_order_details", "arguments": {"order_id": "#W2466703"}}
</tool_call> | [
"I need to retrieve the details of the second order to determine if it contains the jacket. I will pass the order ID to the function.\n\nI need to retrieve the user's order details using the order ID. I will pass the order ID to get the order details function."
] | [
0.9926980450352291
] | [
0.9926980450352291
] | [
55
] | 0 |
retail | base | best | eval | 24 | 0 | 5 | You are a helpful customer service agent.
<policy>
# Retail agent policy
As a retail agent, you can help users:
- **cancel or modify pending orders**
- **return or exchange delivered orders**
- **modify their default user address**
- **provide information about their own profile, orders, and related products**
At t... | [
{
"role": "user",
"content": "Um, hi. I, uh, wanted to see if I could exchange a jacket I bought."
},
{
"role": "assistant",
"content": "<tool_call>\n{\"name\": \"respond_user\", \"arguments\": {\"text\": \"Sure \\u2014 I can help with an exchange. First I need to find your account. Please provi... | <tool_call>
{"name": "get_order_details", "arguments": {"order_id": "#W6832752"}}
</tool_call> | [
"I need to retrieve the third order to determine if it contains the jacket. I will pass the order ID to the function.\n\nI need to retrieve the user's order details using the order ID. I will pass the order ID to get the order details function."
] | [
0.9930865524661912
] | [
0.9930865524661912
] | [
52
] | 0 |
retail | base | best | eval | 24 | 0 | 6 | You are a helpful customer service agent.
<policy>
# Retail agent policy
As a retail agent, you can help users:
- **cancel or modify pending orders**
- **return or exchange delivered orders**
- **modify their default user address**
- **provide information about their own profile, orders, and related products**
At t... | [
{
"role": "user",
"content": "Um, hi. I, uh, wanted to see if I could exchange a jacket I bought."
},
{
"role": "assistant",
"content": "<tool_call>\n{\"name\": \"respond_user\", \"arguments\": {\"text\": \"Sure \\u2014 I can help with an exchange. First I need to find your account. Please provi... | <tool_call>
{"name": "get_order_details", "arguments": {"order_id": "#W7739115"}}
</tool_call> | [
"I need to retrieve the fourth order to determine if it contains the jacket. I will pass the order ID to the function.\n\nI need to retrieve the user's order details using the order ID. I will pass the order ID to get the order details function."
] | [
0.9895048758296334
] | [
0.9895048758296334
] | [
52
] | 0 |
retail | base | best | eval | 24 | 0 | 7 | You are a helpful customer service agent.
<policy>
# Retail agent policy
As a retail agent, you can help users:
- **cancel or modify pending orders**
- **return or exchange delivered orders**
- **modify their default user address**
- **provide information about their own profile, orders, and related products**
At t... | [
{
"role": "user",
"content": "Um, hi. I, uh, wanted to see if I could exchange a jacket I bought."
},
{
"role": "assistant",
"content": "<tool_call>\n{\"name\": \"respond_user\", \"arguments\": {\"text\": \"Sure \\u2014 I can help with an exchange. First I need to find your account. Please provi... | <tool_call>
{"name": "get_order_details", "arguments": {"order_id": "#W1994898"}}
</tool_call> | [
"I need to retrieve the fifth order to determine if it contains the jacket. I will pass the order ID to the function.\n\nI need to retrieve the user's order details using the order ID. I will pass the order ID to get the order details function."
] | [
0.9485048444486539
] | [
0.9485048444486539
] | [
52
] | 0 |
retail | base | best | eval | 24 | 0 | 8 | You are a helpful customer service agent.
<policy>
# Retail agent policy
As a retail agent, you can help users:
- **cancel or modify pending orders**
- **return or exchange delivered orders**
- **modify their default user address**
- **provide information about their own profile, orders, and related products**
At t... | [
{
"role": "user",
"content": "Um, hi. I, uh, wanted to see if I could exchange a jacket I bought."
},
{
"role": "assistant",
"content": "<tool_call>\n{\"name\": \"respond_user\", \"arguments\": {\"text\": \"Sure \\u2014 I can help with an exchange. First I need to find your account. Please provi... | <tool_call>
{"name": "respond_user", "arguments": {"text": "Thanks \u2014 I found your account (user id yusuf_hernandez_6785). I checked your orders and did not find a delivered order containing a Fleece Jacket. However, order #W2466703 (status: pending) contains a Fleece Jacket (item id 9385662952, size L, color black... | [
"I need to retrieve the user's information from their email. I will pass the email to the function.\n\nI need to retrieve the user's details by using their email address. I will retrieve the user's details from the database using their email address."
] | [
0.249509826168443
] | [
0.249509826168443
] | [
50
] | 0 |
retail | base | best | eval | 24 | 0 | 9 | You are a helpful customer service agent.
<policy>
# Retail agent policy
As a retail agent, you can help users:
- **cancel or modify pending orders**
- **return or exchange delivered orders**
- **modify their default user address**
- **provide information about their own profile, orders, and related products**
At t... | [
{
"role": "user",
"content": "Um, hi. I, uh, wanted to see if I could exchange a jacket I bought."
},
{
"role": "assistant",
"content": "<tool_call>\n{\"name\": \"respond_user\", \"arguments\": {\"text\": \"Sure \\u2014 I can help with an exchange. First I need to find your account. Please provi... | <tool_call>
{"name": "get_product_details", "arguments": {"product_id": "8560156827"}}
</tool_call> | [
"I need to get the details of the product with the product ID 8560156827. I will retrieve the product details to get the variant options for the product.\n\nI need to retrieve the product details for the product with the product ID 8560156827. I will pass the product ID to get the product details function."
] | [
0.990062586083752
] | [
0.990062586083752
] | [
79
] | 0 |
retail | base | best | eval | 24 | 0 | 10 | You are a helpful customer service agent.
<policy>
# Retail agent policy
As a retail agent, you can help users:
- **cancel or modify pending orders**
- **return or exchange delivered orders**
- **modify their default user address**
- **provide information about their own profile, orders, and related products**
At t... | [
{
"role": "user",
"content": "Um, hi. I, uh, wanted to see if I could exchange a jacket I bought."
},
{
"role": "assistant",
"content": "<tool_call>\n{\"name\": \"respond_user\", \"arguments\": {\"text\": \"Sure \\u2014 I can help with an exchange. First I need to find your account. Please provi... | <tool_call>
{"name": "respond_user", "arguments": {"text": "I found the Fleece Jacket product variants. The large red half-zip variant you asked about is item 8733974883 (size L, color red, zipper: half) \u2014 it\u2019s available and priced $153.18. Your current jacket on order #W2466703 is item 9385662952 (size L, co... | [
"I need to retrieve the product details by using the product ID. I will pass the product ID to get the product details function.\n\nI need to retrieve the product details using the product ID. I will pass the product ID to the get_product_details function."
] | [
0.4500581609074218
] | [
0.4500581609074218
] | [
51
] | 0 |
retail | base | best | eval | 24 | 0 | 11 | You are a helpful customer service agent.
<policy>
# Retail agent policy
As a retail agent, you can help users:
- **cancel or modify pending orders**
- **return or exchange delivered orders**
- **modify their default user address**
- **provide information about their own profile, orders, and related products**
At t... | [
{
"role": "user",
"content": "Um, hi. I, uh, wanted to see if I could exchange a jacket I bought."
},
{
"role": "assistant",
"content": "<tool_call>\n{\"name\": \"respond_user\", \"arguments\": {\"text\": \"Sure \\u2014 I can help with an exchange. First I need to find your account. Please provi... | <tool_call>
{"name": "modify_pending_order_items", "arguments": {"order_id": "#W2466703", "item_ids": ["9385662952"], "new_item_ids": ["8733974883"], "payment_method_id": "paypal_7529813"}}
</tool_call> | [
"I need to modify the pending order to replace item 9385662952 with item 8733974883. I will retrieve the order ID for this user to use it to modify the order items. I will pass the order ID to the modify_pending_order_items function.\n\nI need to retrieve the user's order ID to modify the pending order. I will retr... | [
0.5142513912927956
] | [
0.5142513912927956
] | [
96
] | 0 |
retail | base | best | eval | 24 | 0 | 12 | You are a helpful customer service agent.
<policy>
# Retail agent policy
As a retail agent, you can help users:
- **cancel or modify pending orders**
- **return or exchange delivered orders**
- **modify their default user address**
- **provide information about their own profile, orders, and related products**
At t... | [
{
"role": "user",
"content": "Um, hi. I, uh, wanted to see if I could exchange a jacket I bought."
},
{
"role": "assistant",
"content": "<tool_call>\n{\"name\": \"respond_user\", \"arguments\": {\"text\": \"Sure \\u2014 I can help with an exchange. First I need to find your account. Please provi... | <tool_call>
{"name": "respond_user", "arguments": {"text": "Done \u2014 I modified order #W2466703 as requested.\n\nSummary of update:\n- Order: #W2466703 (user: yusuf_hernandez_6785)\n- Replaced item 9385662952 (Fleece Jacket, L, black, full zipper, $159.92) with item 8733974883 (Fleece Jacket, L, red, half zipper, $1... | [
"I need to retrieve the user's details from their email. I will pass the email to the function.\n\nI need to retrieve the user's details by using their email address. I will retrieve the user's details from the database using their email address."
] | [
0.38222533512580276
] | [
0.38222533512580276
] | [
50
] | 0 |
Act-PRM SFT thoughts — tau2-bench retail
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 | retail_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 fullG=4sampled thoughts; the held-outeval-split rows were relabeled with a single sample (G=1), so theirthoughts/rewardslists have length 1 andbest_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-tau2-retail-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 tau2-bench retail 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
- 47