←
Blog

How synthetic tasks tripled Qwen3.8-27B’s pass rate in Frist’s Accounts Payable world

Remm BrofmanJoannier Pinales

Overview

Frist is creating data infrastructure to enable next generation computer use agents and coding models. To advance the frontier, we build reinforcement learning environments at internet scale.

In our last post, we introduced Frist MedPractice, an enterprise world where an agent works as an accounts payable (AP) specialist across pixel-perfect clones of NetSuite, Bill.com, Gmail, and Google Sheets. In this post, we train a model inside it.

The original tasks were too hard for Qwen3.8-27B, an open-weight model, so we built 100 synthetic variations and post-trained it with reinforcement learning (RL). We then tested it on 14 held-out tasks, which we kept out of training so the model had never seen them. Trained Qwen passes 10 of the 14, up from 3 before training. That puts trained Qwen only one task behind Gemini 4 Argon.

Why we built synthetic tasks

MedPractice started with 14 tasks designed by an AP expert in collaboration with NewtonX, an expert network specializing in recruitment for AI training. Base Qwen passed none of them. A model learns from RL by comparing its better attempts with its worse ones, and when every attempt fails, there is little to learn from.

To train Qwen we generated 100 synthetic variations in the same world using rejection sampling. Some vary the details of the expert-created tasks. Others are built from our catalog of verifiers. A typical variation reads: "Create a journal entry dated January 31, 2026, for Northfield Health Partners, with memo 'Reclass.' Debit 1,000 to Medical Supplies Expense and credit 1,000 to Phone and Internet Expense."

We held out 14 synthetic tasks for evaluation and trained on the other 86. The model never saw a held-out task during training. We picked the 14 to represent the tools and workflows in MedPractice, with a spread of difficulty.

How we trained

Algorithm

GRPO with an IPO loss on Prime-RL. The IPO loss stays stable when rollouts are collected ahead of the trainer. Each update uses 96 rollouts: 4 tasks with 24 attempts each.

Reward

A task that passes its verifier earns 1.0. Partial credit counts business outcomes, and an outcome only counts when all of its checks pass. Undoing finished work lowers the score, an incomplete task is capped at 0.99, and each invalid tool call costs 0.01, up to 0.20.

Curriculum

Two epochs with uniform sampling, then a second run weighted by difficulty. Medium tasks (9 to 19 checks) get full weight, hard tasks (20 or more checks) get half, and easy tasks (8 or fewer checks) get 0.1. We evaluate step 50 of the curriculum run.

Limits

A 128k context window, a 32k output budget, and 150 turns per task during training.

How we evaluated

We use a standard desktop CUA harness. Every model got the same 14 held-out tasks, up to 400 model calls per task, and 32,768 output tokens per call.

Results

Held-out tasks14
Training tasks86
Calls per task400
CheckpointStep 50

Pass@1 is the percentage of held-out tasks the model completes fully, getting every rubric item right, in a single attempt. Check pass is the percentage of rubric items the model gets right.

Model
Pass@1
Tasks
Check pass
Claude Fable 5.2
100.0%
14/14
100.0%
GPT-6.1 Sol
92.9%
13/14
99.5%
Gemini 4 Argon
78.6%
11/14
86.0%
Trained Qwen3.8-27B
71.4%
10/14
74.3%
Base Qwen3.8-27B
21.4%
3/14
50.3%

From 3 to 10 tasks. Trained Qwen passes 10 of 14 held-out tasks, up from 3 for untrained (base) Qwen. Its share of checks passed rises from 50.3% to 74.3%.

One task behind Argon. Gemini 4 Argon passes 11 tasks compared to 10 for our trained Qwen. Trained Qwen passes 2 tasks that Argon fails, though Argon still gets more checks right overall, 86.0% to 74.3%.

No task got worse. The trained model kept all 3 tasks the base model passed and solved 7 more. It matched or beat the base model's checks on all 14 tasks.

Less wasted work. Trained Qwen averaged 228 model calls per task, down from 361 for the base model.

Figure 1
Base QwenTrained QwenGemini 4 Argon

Held-out results (%)

0255075100TASKS PASSED21.471.4BASETRAINED+50.0 PTSARGON 78.6CHECKS PASSED50.374.3BASETRAINED+24.0 PTSARGON 86.0

Source: Frist. 14 held-out synthetic tasks, one result set per model, up to 400 model calls per task.

Qwen3.8-27B before and after training in MedPractice

What improved

In one held-out task, the agent has to update a vendor, create a new clinic and an accounting category, and change company and user settings in Bill.com. The base model created the requested document folder, then kept scrolling the Documents list and never reached Settings. It passed 1 of 11 checks and used all 400 calls. The trained model found Settings and passed all 11 checks in just 207 calls.

Figure 2

One held-out task, 11 checks

Required result
Base
Trained
Create the requested document folder
✓
✓
Save the vendor's bank account and payment settings
✕
✓
Send the W-9 tax-form request to the right contact
✕
✓
Mark the vendor's virtual-card invitation as sent
✕
✓
Save the vendor's name, check payments, and Net 30 terms
✕
✓
Keep the vendor record active for later work
✕
✓
Turn on accounting categories and customers, turn off locations
✕
✓
Create the “Advisory practice” accounting category
✕
✓
Create the “Coverage satellite clinic” location
✕
✓
Save the user's first and last name
✕
✓
Show the user in the team directory
✕
✓
Checks passed
1/11
11/11
Model calls used
400 (limit)
207

Source: Frist. Final verifier checks for base and trained Qwen3.8-27B on the same held-out task.

What each version of the model got done on the same task

What's next

Synthetic variations of expert tasks gave a small open model enough signal to learn, and the gains carried over to tasks it never saw. Next, we will explore an RL grounding stage, the recipe we used for JetBlue, supervised fine-tuning (SFT), and larger task sets, both expert-designed and synthetic. More to come.

The MedPractice environment, tasks, and verifiers are available upon request. We build the highest quality RL environments for consumer and enterprise applications. Research teams interested in collaborating, please reach out: research@frist.ai

We make the observable world verifiable.

Related articles