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
71
sample_id
int64
0
79
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
policy
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...
[ "The user is asking about an exchange, which is unrelated to the previous revenue query. I should respond with a helpful, polite message that guides them through the necessary details to proceed with the exchange. Since there's no data about the company's revenue in the current context, I can't provide a numerical ...
[ 0.054265848955726906 ]
[ -0.06760915104427309 ]
[ 78 ]
0
retail
policy
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 locate Yusuf Hernandez's account using his email. Once I have his user ID, I can proceed to retrieve his order history to find the relevant order with the Fleece Jacket. This will help identify the correct order ID for the exchange request." ]
[ 0.40773957296378904 ]
[ 0.32492707296378903 ]
[ 53 ]
0
retail
policy
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>
[ "Now that I have Yusuf's user ID, I need to retrieve his order history to locate the order containing the Fleece Jacket. This will allow me to find the order ID and confirm the details of the original purchase, which is essential for processing the exchange request." ]
[ 0.2150125600177364 ]
[ 0.1290750600177364 ]
[ 55 ]
0
retail
policy
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 now have Yusuf's order history, which includes several order IDs. I need to check the details of each order to find the one containing the Fleece Jacket. Starting with the first order, #W2166301, I'll retrieve its item details to confirm if it includes the Fleece Jacket. If not, I'll proceed to the next order in...
[ 0.45355930606633527 ]
[ 0.3254343060663353 ]
[ 82 ]
0
retail
policy
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>
[ "The Fleece Jacket is not in order #W2166301. I need to check the next order in Yusuf's history, #W2466703, to see if it contains the Fleece Jacket. This will allow me to identify the correct order for the exchange request." ]
[ 0.6973817891419261 ]
[ 0.592694289141926 ]
[ 67 ]
0
retail
policy
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>
[ "The Fleece Jacket is in order #W2466703, so I don’t need to check further orders. I now have the full details of that order, including the original item (black Fleece Jacket, size L). Next, I should verify if the red half-zip Fleece Jacket exists in the product catalog and is available for exchange. Once confirmed...
[ 0.20321559398642988 ]
[ 0.05321559398642989 ]
[ 96 ]
0
retail
policy
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've confirmed that the Fleece Jacket was purchased in order #W2466703. I now need to verify if a large red Fleece Jacket with a half zipper is available in the product catalog. This is necessary to ensure the exchange is possible. Once availability is confirmed, I will create the exchange request with the correct...
[ 0.2312398264347914 ]
[ 0.11717732643479142 ]
[ 73 ]
0
retail
policy
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 have now checked all relevant orders, and the Fleece Jacket was purchased in order #W2466703, which was delivered. This order qualifies for an exchange since it is a delivered order. I need to verify the availability of the large red Fleece Jacket with a half zipper in the product catalog. If it exists and is av...
[ 0.147656608818912 ]
[ -0.002343391181088006 ]
[ 96 ]
0
retail
policy
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 have thoroughly reviewed all of Yusuf's order history and confirmed that the Fleece Jacket was part of order #W2466703, which is currently in \"pending\" status. Since exchanges are only allowed for delivered orders, this order does not qualify. I have identified the correct order and item details and now need t...
[ 0.239073777421301 ]
[ 0.08907377742130101 ]
[ 96 ]
0
retail
policy
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>
[ "The user has asked to look up available variants for a large red half-zip Fleece Jacket. The original Fleece Jacket in their order has product ID 8560156827. I need to retrieve the full product details, including all available size, color, and zipper options, to confirm if a large red half-zip variant exists. This...
[ 0.5124486176210284 ]
[ 0.3749486176210285 ]
[ 88 ]
0
retail
policy
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...
[ "The user has requested the available variants for a large red half-zip Fleece Jacket. I have retrieved the product details and confirmed that such a variant exists (item 8733974883, size L, color red, half zipper, price $153.18). The price difference is $6.74 (refund to user). I now need to clearly present the det...
[ 0.4442651678209269 ]
[ 0.29426516782092693 ]
[ 96 ]
0
retail
policy
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>
[ "The user has confirmed they want to modify order #W2466703 to replace the black full-zip Fleece Jacket (item 9385662952) with the large red half-zip Fleece Jacket (item 8733974883) and receive a $6.74 refund to PayPal. I now need to execute the order modification request with the specified item change and refund" ...
[ 0.44890055407466256 ]
[ 0.29890055407466254 ]
[ 96 ]
0
retail
policy
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...
[ "The order modification has been successfully completed. The user's request has been fulfilled with all relevant details confirmed. I now provide a clear, concise summary of the changes made, including the new item, the refund amount, and the updated order status. The user is informed of next steps if needed, and I...
[ 0.40637839153537625 ]
[ 0.2923158915353763 ]
[ 73 ]
0
End of preview. Expand in Data Studio

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) - 0.15 * len_frac

(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)

Four relabel passes = 2 scorers x 2 EM checkpoints:

file / split scorer em_checkpoint
policy_best.jsonl policy best
base_best.jsonl base best
policy_last.jsonl policy last
base_last.jsonl base last
  • 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 all four 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-tau2-retail", 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.15. The held-out RL-eval tasks are excluded. Built with scripts/export_sft_dataset_hf.py.

Downloads last month
50