
How synthetic tasks tripled Qwen3.8-27B’s pass rate in Frist’s Accounts Payable world
Remm BrofmanOverview
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
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.
Trained Qwen3.8-27BFrom 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.
Held-out results (%)
Source: Frist. 14 held-out synthetic tasks, one result set per model, up to 400 model calls per task.
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.
One held-out task, 11 checks
Source: Frist. Final verifier checks for base and trained Qwen3.8-27B on the same held-out 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

Frist MedPractice: An enterprise world for accounts payable agents
Read blog↗

Interactive Debugging Environments: Green Tests, Broken Apps
Read blog↗
Annie Hua, Jay Dey·
FristWorld: A synthetic internet for evaluating computer use agents
Read blog↗
Shaheer Aslam·Improving Qwen3.8-27B using GRPO - Frist JetBlue vs WebInfinity
Read blog↗

JJeung Park, Sung Ho Choi, Joannier Pinales, Jonathan Beltran·