AGENTIC RL · COMPLETE PROJECT REPORT

IntraSkill

Skill–model co-evolution
for shopping agents

A four-round applied study of one idea: let an agent policy learn while its external procedural skill is measured, revised, and retained where it still helps.

TEST SUCCESS · WITHOUT SKILLS

51.75%84.25%
Qwen3.5-4B · BaseQwen3.5-4B · Iter80
+32.50 percentage points

400 shared tasks · one training run

4BPolicy parameters
80Rollout steps
4Evolution rounds
10 → 8Initial → final chunks

READING GUIDE

A project overview with the details intact.

Start with the method, or enter through a specific question. Every chapter is available in English and Chinese; the reference library preserves the original engineering documents.

01 / BACKGROUND & METHOD

Keep mutable procedures explicit.
Train reusable behavior.

A skill is useful precisely because some SOPs should remain readable and replaceable. Yet stale guidance can restrict exploration. IntraSkill measures the residual value of minimal chunks while the policy learns under randomized omission.

01One scene-level skill

Shopping categories share search, evidence, option, and purchase procedures. The evolving unit is a chunk inside the shared bank.

02Same prompt within a group

Eight GRPO siblings share one chunk mask. Scaffold exposure never becomes a hidden difference inside the relative-advantage baseline.

03Separate skill gate

A frozen model, paired bare/masked tasks, and chunk-level regression decide what is rewritten, retained, or retired.

IntraSkill timeline with individual GRPO rollout steps, a validation gate, a new skill bank, and the next training interval
Each blue block is one GRPO rollout step. After 20 steps, the frozen checkpoint enters a validation gate; the selected new SkillBank then conditions the next 20-step interval.
01

Sample a shared context

20% skill-free groups; otherwise sample chunks by contribution. Eight sibling trajectories share one mask.

02

Update the policy

GRPO compares trajectories under the same context. Only generated tokens carry the training loss.

03

Investigate failures

Retry all-wrong groups with the full skill. Trace2Skill investigates remaining failures and proposes additions or rewrites.

04

Validate and revise

Every 20 steps, pair bare and random-mask validation at the same checkpoint. Retain positive-contribution winners.

Rᵢ − Bᵢ = Cᵢᵀβ + εᵢ

Same task, same checkpoint. No-intercept main-effect OLS; coefficients guide selection and are not independent causal guarantees.

02 / EVALUATION

Stronger performance,
with the guidance removed.

All four conditions use the same 400 test tasks, with one completed rollout per task. Strict reward is the training objective; success requires full credit.

Frozen test evaluation · coverage 100% in every condition
ModelGuidanceStrict rewardSuccess
BaseNone0.542251.75%
BaseInitial skill S₀0.566354.50%
Iter80None0.850184.25%
Iter80Final skill Sₜ0.867186.25%
Validation reward increases over four rounds; paired test intervals show a large training gain while skill-only gains span zero.
Task-level paired bootstrap, 10,000 resamples. Intervals quantify test-task uncertainty conditional on this training run; they do not measure variation across training seeds.
OBSERVED

139 tasks newly succeed

Comparing base and Iter80 without skills: 139 failures become successes, 9 successes regress, and 252 tasks keep the same outcome.

OPEN QUESTION

The final skill adds 2 points

Its success gain has a 95% interval of −0.50 to +4.75 points. A plain-GRPO control and repeated training seeds are needed to isolate the benefit of co-evolution.

03 / TRAINING DYNAMICS

Follow the learning process.

80 rollout steps, four 20-step rounds. 20,480 generated episodes; 10,240 admitted to the trainer after filtering.

Light: raw · Solid: 5-step mean

Reward covers all completed, scored generation, including filtered groups. Zero-variance drop rate measures discarded groups, not the prevalence of equal-reward groups. Public data cover four completed rounds, steps 1–80.

BEHAVIOR EXPLORER

Shorter generation.
A more complex interaction story.

20,480 training episodes and 3,600 evaluations. On fixed validation tasks, tokens per turn fall 43.5%; the paired change in model steps remains uncertain. Explore the outcome and weighting behind each mean.

Inspect numerical values

Training uses re-encoded saved output; evaluation uses API completion tokens. Each episode contributes one per-turn average. Outcome groups change with training. Product option refreshes do not count as new page visits.

W&B · OPTIMIZATION

Inside 160 optimizer updates.

Four finished runs, complete history, and 3,118 numerical matches with local logs. Entropy declines across rounds; PPO KL, clipping, gradient norms, and throughput add context to reward and behavior.

Six optimizer diagnostics over 160 updates: entropy, sampled PPO log-probability difference, clipping, gradient norm, loss and rollout consistency
Metric definitions, systems analysis & W&B source data →

04 / SKILL EVOLUTION

Inspect the guidance
at each checkpoint.

Chunks can be retained, rewritten, added, or retired. Their contribution is specific to a checkpoint and mask distribution. The skill bank need not shrink monotonically.

The original Chinese skill text is shown verbatim in both languages. Scores are selection coefficients, not confidence-adjusted estimates.

Explore the failure funnel and contribution history
Active chunk counts and the failure analysis funnel across rounds
Heatmap of winning-version coefficients by logical chunk across four gates; dots mark retained chunks
A dot marks a retained version. Grey cells mean the chunk was not evaluated in that gate. Rewrites keep their logical identity.

05 / REPRODUCIBILITY

From evidence to artifacts.

The public bundle includes step metrics, group summaries, paired task outcomes, contribution estimates, and skill texts. Rebuild the analysis without a GPU or model API.

python -m pip install -e ".[analysis,site]"
python scripts/analyze_training.py
python scripts/analyze_behavior.py
python scripts/analyze_wandb.py
python scripts/plot_training.py
python scripts/plot_behavior.py
python scripts/plot_wandb.py
python scripts/build_site.py
python scripts/check_publication.py
Interpretation & unfinished comparisons
  • One training run. No plain-GRPO, fixed-skill, no-mask, or repeated-seed control is included in this release.
  • Initial S₀ was recovered from frozen recorded contexts; its recovery did not use test outcomes and is not a newly completed calibration run.
  • In the base-model ranking appendix, top4 success is 51.75%, bottom4 55.00%, and one random4 subset 54.25%. This does not establish ranking validity; four planned random subsets were not run.
  • Reported scores use the local ShopSimulator protocol and frozen persona split; they are not a direct benchmark comparison against the upstream paper.