IN THIS TRACK

TECHNICAL REPORT 01 / PALWORLD

Learning to Fight.
Measuring What Changed.

Reading edition · English / 中文Report and data

The Agent at a Glance

The planner (System 2) sets the goal, a local 4B Jev-style decision model (System 1) chooses the next move, and the execution layer (System 0) carries it out in Palworld.

Overall RSI architecture →

The planner sends a goal to the decision model. The model selects an action, the execution layer sends controls to Palworld, and the game returns updated observations.
The game interface feeds updated observations into the next decision. Open full-size figure ↗
How the three layers divide the work
Three layers of the game agent
LayerResponsibilityTiming / interface
Planner · System 2Reads the game state and sets the goal in natural language.Reasoning model; outside the rapid action loop.
Decision model · System 1Chooses from the currently offered combat actions. While an action runs, it also answers the situations the world model predicts, so the next action is often ready in advance.Small 4B model on a local GPU; roughly one choice per 2 seconds.
Code execution · System 0Runs learned skills and fight code. Reflex rules written by RSI can interrupt an action when a boss-specific condition is met.Code runs without a model call. Reflex rules are checked on every 100 ms status update.

THREE TOWER BOSSES / 76 SECONDS

Three Bosses.
How the Agent’s Tactics Changed.

Watch how refining the harness changes when the agent dodges Grizzbolt, retreats from Lyleen’s tornado and adjusts its distance from Orserk.

How did it get there?
76 seconds. Zoe & Grizzbolt, Lily & Lyleen, and Axel & Orserk: the agent before RSI on the left, and the same agent after RSI on the right, using the skills it learned for each boss.

Can an agent learn from losing a fight and still react in time to dodge the next charge? In Palworld, two Recursive Self-Improvement (RSI) loops use combat records. One tests changes to the harness. The other trains the decision model to choose better moves. RSI also writes the code that keeps the agent quick during a fight: a world model predicts the next situations so the decision model can answer them ahead, and reflexes interrupt an action when danger arrives.

How the Agent Learns and Acts

Learning from Fights

Acting in Real Time

Three separate comparisons. The harness study evaluated the final harness. The real-time pilot used the round-22 harness in both groups.

01 /

The Challenge

An AI agent plays Palworld, a commercial 3D open-world game, on its own and in real time. Our first test is the tower boss Zoe & Grizzbolt. The player has one life and a party of Pals, with only one Pal out at a time. The boss has telegraphed attacks that can end the fight in one or two hits.

The agent sees only part of the arena and makes a decision every couple of seconds. A bad call may show up seconds later, and the same fight can go very differently each time. The agent reads structured state through a game mod and may do only what a normal player can do.

We also tested whether the harness loop could learn skills specific to the second and third tower bosses, Lily & Lyleen and Axel & Orserk. See the held-out results for all three bosses.

02 /

Overall RSI System Architecture

System architecture connecting the game agent, fight records, harness refinement, decision model fine-tuning, and the prediction and reflex code RSI writes.
The harness loop returns verified skills to the agent. The fine-tuning loop returns new decision-model weights after a held-out test and a live trial. The real-time loop returns a world model for System 1 and reflex rules for System 0, each kept only after live fights. Open full-size figure ↗

System 2 sets the objective. In combat, System 1 chooses the next move, and the agent records the situation, the choice and its outcome. The harness loop can change which moves are available. The System 1 loop uses those same fights to train the model to choose more effectively among the available moves. Once a candidate passes held-out and live tests, it plays the next fights and supplies the next set of records.

In the first-tower cost comparison, both agents used RSI to refine their harness. With System 1, the local model chose a move from the harness menu. Without System 1, the combat rules in the harness chose each move directly (code-as-policy). We measured the time and System 2 tokens each agent needed to reach a 60% validation win rate. A three-tower cost analysis estimates how fine-tuning System 1 changes that token budget at each tower’s target win rate.

Explore the harness RSI loop and the decision model RSI loop, or see how RSI writes the prediction and reflex code that lets the agent act without waiting for the model.

Before Improvement

Against Zoe & Grizzbolt, the initial agent recorded 0% wins, about 39 seconds survived, and approximately 4% of boss health removed per attempt. The early setup repeatedly retried fights; it is not the same evaluation protocol as the later frozen validation.

40 seconds. The three tower fights before RSI show missed dodges, poor spacing and knockouts. The second-tower clip ends in a win with 14% player health remaining. No losing attempt from that opening round was saved on video.
03 /

Learning from Fights

Each fight records what the agent saw, which action it chose and what happened next. The harness loop uses those records to revise the rules and code around the model. The fine-tuning loop uses them to update the decision model’s weights so it can make better choices itself.

Online Harness Improvement

The harness shapes what the agent can do in a fight through its prompts, action menu, execution code and per-boss settings. Refining it lets the agent correct recurring mistakes while the decision model’s weights stay fixed.

The RSI Loop

The observer reviews each fight, and the event scheduler groups repeated failures. The round reviewer looks for patterns across fights. The improver then proposes a change to the harness. An independent verifier compares play with and without the change and keeps it only if it measurably helps. The agent uses the accepted skills in its next fights, generating fresh evidence for the next round.

The harness RSI loop observes fights, groups recurring failures, proposes skills, verifies them in play and deploys the accepted changes.
The verifier tests proposed skills in live play. Its scoring rules are fixed, so the improver cannot change how a skill is judged. Open full-size figure ↗

Model Configuration

These models and tools improve the harness. The System 2 models provide inference with fixed weights.

In these experiments, KEV is the local four-billion-parameter (4B) decision model used for System 1. It serves the same action-selection role as Jev: it receives the current state and chooses from the actions the harness offers. The fine-tuning study trains KEV on recorded combat decisions.

Models and responsibilities in harness improvement
ComponentRoleReported configuration
PlannerSystem 2 strategyClaude Sonnet, low reasoning; Claude Opus in the earlier setup.
Decision modelSystem 1 tactical choicesSmall off-the-shelf 4B model on one local GPU.
ObserverFight-level diagnosisClaude Opus, high reasoning.
ImproverProposes editsClaude Opus, very high reasoning.
Round reviewerCross-fight reviewClaude Opus, very high reasoning.
JudgeAccepts / rolls back changesFixed scoring rules; no model; protected from RSI edits.

The reasoning roles communicate through prompts and written proposals, making alternate backends possible. Interchangeable interfaces do not establish equal quality across models; this package does not provide a comparative evaluation of those alternatives.

Learning & Evidence

Watch the agent put new skills to use against Zoe & Grizzbolt as its training win rate changes across rounds (24 seconds).

After refining the harness for each boss, we froze its configuration and ran five held-out fights per tower, recording win rates of 80% on Grizzbolt, 100% on Lyleen and 80% on Orserk.

Pre-Improvement Performance and Validation Results Across Three Towers
Pre-Improvement Performance and Validation Results Across Three Towers
MeasurementZoe & GrizzboltLily & LyleenAxel & Orserk
Measured win rate before refinement0%60%0%
Held-out win rate after refinement80%100%80%
Boss health removed per fight98%100%95%
Player health kept57%88%60%
Fight length4.2 min3.2 min3.4 min
Win rate on earlier bosses—Boss 1: 100% (one fight)Boss 1 and Boss 2: 100% each (two fights per boss)
Training rounds27719
Skills kept34328
Tokens used~120M~17M~160M

For each new boss, the harness loop learned boss-specific skills from a save point and a short brief. Between bosses, the team fixed bugs and added game sensors. Each held-out fight allowed one attempt with learning turned off.

On Grizzbolt, the training win rate was 93% across 14 fights in rounds 24–27. On Lyleen, the initial round recorded 60% wins before any Lyleen-specific harness refinement. Seven rounds later, the frozen harness won 100% of its validation fights. The zero-shot transfer experiment evaluates the decision model trained on Grizzbolt under a different setup.

On Orserk, one party Pal was level 30 in the initial evaluation and level 32 in validation. Some training rounds were replayed after a GPU fault.

Cost to Reach a Target Win Rate After Adding System 1

Measured in Opus-RSI

Both groups used RSI to refine the harness between rounds. With System 1, the local decision model KEV chose the next combat action. Without System 1, combat rules in the harness chose the action directly (code-as-policy). RSI revised those rules using the fight records. The model-driven group reached a 60% win rate in frozen validation six rounds earlier. We tracked elapsed time and cumulative System 2 tokens through the first passing round in each run.

Cumulative tokens against elapsed time on Grizzbolt. Each line ends at the first round to reach 60% wins in frozen validation.
Each point marks one round of harness refinement. With KEV choosing actions (blue), the run reached the target at round 2 using 3.5M tokens in 61 minutes. With combat rules choosing actions (gray), it reached the target at round 8 using 17.6M tokens in 4 hours 28 minutes. Open full-size figure ↗

The KEV run used 80% fewer tokens to reach the milestone. By the end of ten rounds, the totals were close at 20.0M with KEV and 20.4M without it. Each configuration ran once under slightly different conditions.

Observed results on Lyleen and Orserk

Lyleen. With KEV, the agent won 100% of round 3’s training fights at 6.35M cumulative tokens. It lost that round’s Grizzbolt regression check, and frozen validation on Lyleen was still pending. Without KEV, it reached 80% in frozen validation at 14.4M tokens.

Orserk. Without KEV, the run had spent 41.1M tokens by round 20 and had yet to pass. A corresponding Opus-RSI run with KEV has yet to be measured.

For a breakdown by role and skill across all 27 rounds of Boss 1 harness improvement and validation, see RSI token usage.

Online Decision Model Fine-Tuning

After the RSI harness loop finishes and settles on a boss, we freeze the game code, sensors, and boss cards, and fine-tune the local System 1 decision model in two sequential stages: Supervised Fine-Tuning (SFT) followed by Group Relative Policy Optimization (GRPO)—turning a fixed-weight prompt follower into a specialized combat policy at zero additional frontier-model token cost.

The RSI Loop

Fine-tuning starts only after RSI finishes—never in the middle of an RSI run. While the harness RSI loop is active, the improver edits action menus, Lua movement/dodge code, and boss cards. Updating model weights mid-run would train System 1 on stale rules and confound credit assignment between code edits and weight updates. Instead, we wait until the RSI harness passes frozen validation and settles, locking the state representation, action set, and execution mechanics into a stationary environment.

Post-RSI two-stage fine-tuning pipeline: RSI harness settles, 10 to 21 settled-loop fights are logged, Stage 1 SFT distills the settled policy and passes a holdout gate, Stage 2 GRPO collects 6 safety-shielded live rollouts pooled with the buffer, passes a holdout gate, and is evaluated across 20 live fights per arm.
Two-stage post-RSI pipeline: Stage 1 (SFT) distills the settled harness rules; Stage 2 (GRPO) refines tactical choices from live combat rewards. Both stages update the same 33.8M-parameter System 1 policy (~100 ms per decision).
Why Both SFT and GRPO?

Even after the RSI harness settles, the base model’s weights remain frozen, leaving three limits that code edits alone cannot solve: (1) on plain menus without rule masks, the base model misses safety rules (10.2% safety agreement on Boss 1, 73.1% on Boss 3 holdout); (2) enforcing safe play on a frozen model piles up per-boss action filters and long instructions; and (3) binary code thresholds (dist < 1000, hp < 30) cannot weigh continuous 5-second damage against HP risk.

  • Stage 1 (SFT) solves reliability and safety compliance: It teaches the model to obey every settled rule and emergency reflex (96.9%–100% holdout safety across Boss 1–3) before any RL exploration begins. Starting RL directly from the weak base model causes early knockouts and unsafe exploration.
  • Stage 2 (GRPO) solves outcome optimality: SFT only copies fixed teacher rules and cannot improve beyond them. GRPO learns from live combat rewards (5-second damage dealt minus HP lost, plus win/speed return) to reinforce moves that win faster and preserve HP.
Data and Training Method

Both stages share the same prefill-only Qwen3.5-4B-Base (bf16) backbone with LoRA (r = 16, all projections) and a 256-dim bilinear PointerHead (33.8M trainable parameters). One forward pass scores every offered action in ~100 ms (inside the 1.5 s fight deadline), guarantees valid action outputs, and gives exact action probabilities.

Stage 1 (SFT) and Stage 2 (GRPO) data creation, objectives, and gates
  • Stage 1 · SFT Data & Balancing: Replay every (state, offer, action) decision from 10–21 live fights under the settled RSI loop (1,120–3,168 balanced training rows across Boss 1–3). Hold out the last 2–7 complete fights untouched (103–455 unseen decisions; ±1.3%–2.7% 95% binomial margin at 98% accuracy). Label with the deterministic settled teacher plus empirical trajectory overrides (0 label conflicts), cap routine moves (retreat ≈ 280–300), and upsample rare safety branches up to 8× (synthesizing edge states when a rare safety branch has < 15 raw hits).
  • Stage 1 · SFT Training & Gate: Train for 2 epochs (lr 4e-5 LoRA / 1e-4 head) with cross-entropy plus permutation-invariance KL (0.05) on 15% of multi-option steps so choices depend on state rather than menu order. Warm-start sequentially (Base → Boss 1 → Boss 2 → Boss 3) and require Gate 2 (safety ≥ 95%, override ≥ 80%) before Stage 2. After distillation, policy filters and per-action hints can be dropped (BOSS_MENU=plain, ~803 chars vs. ~1,300 chars).
  • Stage 2 · GRPO Rollouts & Bucketing: Serve the SFT checkpoint for 6 live practice fights with a safety shield: greedy on safety-critical states (hp < 30, dodge, brace, held_roll, run_switch/switch_pal, best_pal), stochastic (τ = 1.2, ε = 0.15) elsewhere. Pool with settled fights (26–46 episodes, 1,949–2,912 raw steps), score each step with G_t = r_5s + 1.5 · R_e, normalize within state buckets (distance | boss motion | HP | canShoot | offer; 66–102 buckets, median 4–7 samples/bucket), clip advantages to ±2.5, keep |A_t| ≥ 0.15, cap at 35 rows per (bucket, action) (752–1,556 GRPO rows), and mix in 220 SFT safety anchors.
  • Stage 2 · GRPO Training & Gate: Train for 1 epoch (lr 2e-5 / 5e-5) with a clipped surrogate loss (clip = 0.2) and an exact discrete KL penalty (kl_w = 0.06) anchored to the Stage-1 SFT policy so RL improves tactical choices without forgetting safety reflexes. Re-verify Gate 2 (safety ≥ 95%, override ≥ 75%) before live evaluation.

Results: Win Rate, Damage Ratio & Latency

Under each boss’s settled RSI harness, we compared the base model, Stage-1 SFT, and Stage-2 SFT + GRPO (20 live fights per fine-tuned arm; 21 for Boss 1 base).

Silent 36-second side-by-side comparison: base model on the left, fine-tuned model on the right (some dodges are triggered by the safety reflex).
Win rate and damage ratio across three tower bosses
BossWin rateDamage ratio
BaseSFTSFT + GRPOBaseSFTSFT + GRPO
Boss 1 · Grizzbolt50%70%85%0.921.091.55
Boss 2 · Lyleen90%100%100%2.332.242.24
Boss 3 · Orserk50%75%75%1.451.732.39

Damage ratio is boss damage dealt per 1% of player HP lost. Higher is better. Bold marks an increase from SFT to SFT + GRPO.

  • Wins & HP preservation: GRPO lifted Grizzbolt wins from 70% to 85% and cut HP loss from 28.7% (Base) → 25.7% (SFT) → 19.0%/min; on Orserk both stages won 75% while HP loss fell 18.8% → 14.1% → 9.9%/min (Welch’s t = −3.30); on Lyleen both held 100%.
  • Decision latency: Dropping policy filters and per-action hints (prompt ~1,300 → 803 chars) cut latency from ~200 ms (Base + round-22 rules) to ~100 ms (90–110 ms).
  • Transfer: See the zero-shot transfer test for Boss-1-only models evaluated on Boss 2 without Boss-2 RSI.

Zero-Shot Transfer Across Bosses

Against Lyleen, the base model won 0% of fights. A model trained only on Grizzbolt with SFT and GRPO won 40%. Both fought with the first boss’s policy rules disabled.

All four groups used the same execution code, fought without a bow and received no Boss 2 training or harness refinement. The base, SFT and SFT + GRPO models chose directly from the available actions. In the fourth group, the Boss 1 round-22 rules filtered the base model’s choices.

Boss 2 zero-shot transfer without Boss 2 training or RSI
Decision modelAction policyBoss 2 win rate
kev-4bBoss 1 harness policy rules disabled0%
kev-4bOptimized Boss 1 harness
Final version won 80% of held-out Boss 1 fights
15%
SFT · kevboss-plain-v1Boss 1 harness policy rules disabled15%
SFT + GRPO · kevboss1-grpo-v1Boss 1 harness policy rules disabled40%

The base model with the Boss 1 rules disabled and the GRPO model each played 10 fights. The round-22 rules and SFT groups each played 20.

With the Boss 1 policy rules disabled, supervised fine-tuning (SFT) won 15% of fights. Adding group relative policy optimization (GRPO) raised the observed rate to 40%, a 25 percentage-point gain. The base model using the round-22 rules also won 15%.

Cost to Reach a Target Win Rate After Fine-Tuning System 1

In Astra-RSI fights, fine-tuning raised win rates from 60% to 85% on Grizzbolt, 90% to 100% on Lyleen and 50% to 75% on Orserk. We used Astra-RSI round counts and token usage to estimate how many System 2 tokens each configuration would need to reach the fine-tuned win rate on each boss.

Projected System 2 token use per boss on linear scales for fine-tuned KEV, base KEV and no KEV.
Solid orange bars show KEV + Finetune; dashed blue and gray bars show linear lower-bound estimates for Base KEV and Without KEV to reach the same 85%, 100% and 75% win-rate targets on each boss. Each panel uses its own linear scale (millions of System 2 tokens). Open full-size figure ↗
04 /

Acting in Real Time

A boss fight does not pause while the agent thinks. Acting in time means solving two problems:

  • Every decision takes time. When an action ends, the agent asks System 1 for the next one, and the player stands still until the answer arrives (0.1–0.4 seconds per live call).
  • Some moments cannot wait. A boss can charge in the middle of an action. Waiting for that action to end is too late, so the agent has to interrupt it at once.

Two parts of the agent solve these two problems, and both run in every fight (figure below):

  • Prediction removes the wait between actions. Near the end of an action, a world model predicts how the fight may look when that action ends, from a state close to that end. System 1 answers those predicted states in the background, so the next action is usually ready when the current one finishes (steps 1–3 in the figure).
  • Reflexes handle emergencies. On every 100 ms status update, reflex rules in System 0 check for moments that cannot wait. When a rule’s condition is met, it acts at once and can interrupt the running action, with no model call (step 4).

Both are code-as-policy: small programs, not model weights. Both start empty. RSI writes and tunes them for each boss from fight records, and keeps a change only if it helps in live fights (how RSI learns both).

Two timelines. Without prediction, the player waits for System 1 after action N. With prediction and reflexes, the world model is called near the end of action N, while the state is close to the end: from the old state and the running action it applies the action effect and builds one new state for each weighted boss guess, and System 1 answers each one. When action N ends, a matching and recent answer starts action N+1 at once; otherwise System 1 is called live. In the middle of action N+1 the boss starts a charge, and a reflex rule in System 0 interrupts the action and dodges at once. The RSI loop writes both the world model and the reflex rules.
Acting in real time, not to scale. Prediction prepares action N+1 while action N runs (steps 1–3); a reflex rule cuts an action short the moment its condition is met (step 4). Both are code written by RSI. Open full-size figure ↗

Prediction: A Code World Model for System 1

The world model answers one question: if the fight looks like this now and the player is doing this action, what might it look like when the action ends? It works like a transition function: from the old state and the running action, it builds one new state for each guess about what happens meanwhile.

RSI writes the world model as code, in two parts:

  • Action effect. What the player’s own action changes. A retreat ends farther from the boss; a Pal summon brings a fresh Pal into the fight.
  • Boss hypotheses. Named guesses about what the boss and the arena do meanwhile: the boss holds its distance, charges in or backs off, or the shot line becomes blocked. Each guess turns the state after the action effect into its own new state. Each boss’s prediction card switches guesses on and gives each one a weight.

A fixed engine merges guesses that lead to the same new state, ranks the rest by weight and keeps only as many as the decision model can answer in time, at most three. The RSI loop rewrites the action effects and guesses and retunes the weights, so the new states get closer to what really happens from one round to the next.

One Decision, Step by Step

Steps 1–3 of the figure at the start of this section show one decision:

  1. Predict. Near the end of an action, the agent calls the world model with the current state and the running action, so the state it sees is close to the end.
  2. Prepare. System 1 answers each predicted state in the background. It chooses from the actions that would be offered in that state, exactly as in a live call.
  3. Match. When the action ends, the agent compares the real state with each prediction. Danger, health, distance, Pal readiness, the ability to shoot and the set of offered actions must all match. The answer must also be recent: no older than 0.7 seconds in danger, 1.5 seconds in a tense moment and 3 seconds when calm.
  4. Act or fall back. A matching answer starts the next action with no new model wait. If nothing matches, the agent calls System 1 live on the real state, as it would without prediction.
20-second silent illustration: deciding after each action on the left, preparing answers during the action on the right. The pauses are added to explain prediction, preparation and matching. The footage comes from an earlier pilot.

Reflexes: Code Policy in System 0

Reflexes act in the moments that cannot wait for an action to end, even when the next answer is already prepared. In step 4 of the figure at the start of this section, the boss charges in the middle of action N+1, and a reflex rule cuts the action short and dodges at once, without calling the decision model.

A reflex is a rule written as code by RSI. It works like this:

  • When it runs. On every status update, every 100 ms, the agent runs the boss’s active rules in order. The first rule whose condition is met acts.
  • What it reads. The current state (distance, closing speed, player health, Pal status), the last five seconds of the fight (time since the last hit, how long the boss has stood still) and the actions offered right now.
  • What it returns. One action, such as dodge, or nothing. The action starts at once, even in the middle of a running action.
  • Its limits. Only an offered action; never interrupting a roll, a sprint or a Pal summon; at most one interruption per action.

Per-boss cards. All rules live in one shared file. A boss’s reflex card switches individual rules on for that boss and sets their numbers, such as how close a charging boss must be before the agent dodges.

How Reflexes and Prediction Fit Together

The two cover different moments. Prediction prepares the decision at the end of an action; reflexes can act at any moment in between. When a reflex interrupts an action, the agent discards the answers prepared for that action’s end, because that moment will not come. When no rule matches, the decision goes to System 1, which uses a prepared answer if one fits.

Prediction and reflexes side by side
PredictionReflexes
LayerSystem 1: the world model feeds the decision modelSystem 0: rules inside the fight code
Kind of codeWorld model: old state + action → new statesPolicy: current state and last 5 seconds → one action, or nothing
When it runsOnce, near the end of each actionOn every 100 ms status update
Who picks the actionThe decision model, as in a live call, only earlierThe rule itself, with no model call
Can it interrupt?No. It acts when the action ends.Yes, except a roll, a sprint or a Pal summon, and at most once per action
Best atRoutine next steps: attack, reposition, switch PalSudden danger mid-action, such as a charge
When it does not applyThe agent asks System 1 live, as without predictionNo rule matches, so System 1 decides
What can go wrongGuesses miss, or answers are not ready in timeA rule fires too late, without need, or into worse danger

How RSI Learns Both

The world model and the reflex rules both start empty. RSI writes them with the same propose, test and judge pattern as the harness loop. Each round can change at most one prediction and one reflex, and each change is judged on its own.

The RSI loop drawn as its parts: the agent with its world model for System 1 and reflex rules for System 0; then record, find problems, propose with Claude Opus, pre-check by replaying all logs and a live trial in the next round. A failed pre-check drops the change; the trial ends in keep, revert or play again. A ledger links each trial to the next proposal, and kept changes go live from the next fight.
The RSI loop for prediction and reflexes. Pre-checks replay a change on logged fights; only live fights decide whether it stays. Open full-size figure ↗
  1. Record. Every fight logs each action boundary: the predictions sent, whether each answer was ready in time and what really happened. It also logs a 100 ms timeline of the fight with every reflex firing. Recording runs even when prediction or reflexes are off.
  2. Find problems. Analyzers read these logs after each fight, and an observer follows fights as they stream. They report recurring problems, such as predictions that keep missing the distance, answers not ready in time, a reflex that fires too late or hits that no reflex tried to avoid.
  3. Propose. One improver (Claude Opus) reads the fight reports, the problems and the session ledger, and proposes at most one prediction change and one reflex change.
  4. Pre-check. Each proposal is replayed on the logged fights of every boss before it goes live. It may edit only the files RSI is allowed to change, must run on every logged fight, must actually change some decisions and must not be clearly harmful. In situations covered by an earlier kept change, it must act the same way unless the improver gives evidence.
  5. Live trial. The next round plays the change in real fights. The trial counts only if the change actually acted. It compares what happened at the moments where the new code behaved differently, such as damage taken in the seconds after a reflex fired or the share of decisions made without a model wait, and checks that the whole fight did not get worse. The verdict is keep, revert or play another game.
  6. Remember. A ledger records every proposal and its outcome. The improver builds on kept changes and does not retry a failed idea without new evidence.

The analyzers give each problem they find a name. The table lists the main ones and the kind of change the improver usually proposes for each. RSI edits only the world-model and reflex code and the per-boss cards; the engines, the records and the judges stay fixed.

Problems RSI looks for, and what it usually changes
Problem the analyzers findAreaWhat RSI usually changes
No predictions are sent for a boss, so every decision waits for a live callPredictionWrites a first hypothesis for that boss and switches it on in its card
Predicted new states keep missing the real one, for example on distancePredictionFixes the action effect or the hypothesis that misses, or changes the weights
Answers are not ready, or too old, when the action endsPredictionSends fewer, sharper guesses on short actions
The player is hit while waiting for a live call at the end of an actionPredictionCovers that moment with a new or better hypothesis
Hits land with no reflex trying to avoid themReflexesWrites a defensive rule from the readings just before those hits
A reflex fires, but the player is still hitReflexesMakes the rule fire earlier, or picks a different action
A reflex fires when there is no dangerReflexesTightens the rule’s condition
A reflex leads into close range or into a follow-up attackReflexesChanges the action the rule picks, or when it fires
Reflex interruptions leave the next decision with no prepared answerBothNarrows when the reflex interrupts, or adds a hypothesis for the moment after it
How a change for one boss avoids hurting another
  • Numbers that fit only one boss go in that boss’s card.
  • A new hypothesis or rule is added switched off and turned on only in the card of the boss that needs it. A rule an earlier boss relies on is not rewritten.
  • The shared default card cannot be edited, so a default changed in code alone changes nothing for other bosses.
  • The pre-check replays every proposal on the logged fights of every boss.
  • RSI learns only from fights played with the current fight setup and normal decision-model speed. A fight slowed down by a slow model is not counted as evidence.

Results: In Progress

Boss 1 win rates are below. With prediction and reflexes, the win rate reaches 90%. Bold marks a higher win rate than the result to its left. Results for the other bosses are in progress.

Boss 1 win rate
BossWin rate
BaseSFTSFT + GRPOPrediction and reflexes
Boss 1 · Grizzbolt50%70%85%90%

For each boss we will report:

  • win rate, boss health removed and player health lost per minute;
  • the share of decisions made without a new model wait, and the mean wait per decision;
  • how often a prepared answer matched the real state and was ready in time;
  • what followed each reflex firing: damage taken and dealt in the next few seconds;
  • the predictions and reflex rules RSI kept for each boss.
05 /

Impact: Beyond the Boss Fight

A decision policy learned against Grizzbolt carried over to Lyleen. With the first boss’s policy rules disabled and no training on the second boss, the base model won 0% of fights and the fine-tuned model won 40%. See the zero-shot transfer experiment.

A service-recovery agent offers one way to test the learning loop outside games. After a service fails to recover from a timeout, the agent could use the incident log to propose a change to its recovery procedure. It could then replay the failure and previously successful cases in a test environment before adopting the change. Such cross-domain transfer remains to be tested.

← All technical notes