One score, many turns.
A trajectory-level reward is broadcast to every turn. The training signal cannot distinguish what an individual turn changed or how much it contributed.
Turn-level credit assignment for lifelong memory.
arXiv:2612.01942
Incremental user-memory evaluation
+Cur vs SFT · 78.80% → 81.80%WebShop · 7B success rate
GiGPO 82.8% → ours 84.4% · +1.6 ppFiner-grained credit assignment
Turn-level advantages support object-level span creditLifelong user memory turns noisy, multi-domain implicit behavior into traceable facts and structured memory objects, rather than simply recalling explicit conversations. As new facts arrive, the L2 memory-building policy must continually update what it knows.
A trajectory-level reward is broadcast to every turn. The training signal cannot distinguish what an individual turn changed or how much it contributed.
The input fact set changes from turn to turn. A score may drop even when memory stays unchanged; a raw difference can therefore mix real updates with a changing evaluation target.
Collapsing quality and penalties into one scalar can hide real improvements and even encourage writing less to avoid penalties.
Understanding users underpins advertising, recommendation, and commercial agents, yet implicit behavior across videos, articles, and conversions is noisy and difficult to reuse. Lifelong user memory refines this behavior stream (L0) into traceable facts (L1), then aggregates them across windows into structured episodic memory objects (L2). Incremental construction is a long-horizon, multi-turn decision problem. A single trajectory-level GRPO reward cannot distinguish each turn's contribution, isolate the effects of inherited memory, or disentangle quality from penalties.
KuaFu-Credit decomposes each turn's advantage into a trajectory-level baseline and separate quality and penalty differences. For quality channels with changing L1 anchors, it re-evaluates old L2 on the current input to isolate the update's controllable increment. Per-axis normalization aligns the signal scales, and a γp curriculum gradually strengthens penalties to mitigate empty-memory collapse. Span credit further supports attribution to individual updated memory objects.
Experiments start from an SFT-aligned Qwen3.5-4B memory policy and ablate turn-level differencing, axis decoupling, and the penalty curriculum, with ProxMO as an external comparison. The value of credit assignment depends on task length: the base method leads at T=5–7, while the curriculum variant improves key retention on longer tasks and leads across reward, quality, and retention at T=9. Incremental evaluation improves over SFT by 1.8 pp for KuaFu-Credit and 3.0 pp for +Cur; removing axis decoupling instead loses 0.7 pp.
Follow the signal along the timeline. Each stop reveals its computation: complete the rollout first, then assign credit back to each turn. The return order is a storytelling device, not an advantage recurrence.
Forward pass: collect q / p at each turn. The terminal baseline has not been computed yet.
Select a step or node to inspect it. The default walkthrough takes about 70 seconds: it starts when this section enters view, pauses when you leave, and resumes on return. Pause or slow it down to read details; a manual pause is never overridden. Reduced-motion mode disables autoplay by default.
SFT first aligns turn-by-turn understanding; dual-axis counterfactual-difference RL then learns finer credit assignment. The interactive timeline breaks down the calculations, while the diagram below shows the complete training framework.
Evaluate old and new L2 against the same current L1. Changing-input channels then measure what this update actually added, rather than comparing scores from different evaluation targets.
Normalize each axis before composing the advantage. A large raw quality scale should not silently overwhelm the signal from structural violations.
Use weaker penalties early to allow memory-building exploration, then gradually restore their weight to constrain violations over longer trajectories.
Four of five key facts are covered.
The input grows to eight facts; old memory still covers four.
Raw difference: −0.30. The actual update increment is zero.
This illustrates changing-input coverage only, not the full weighted key_ret_po metric or total quality score.
From incremental user memory to multi-turn WebShop decisions. Main-task performance, difficulty segments, and cross-domain generalization are reported separately, with their respective comparison baselines.
The dual-axis method improves over SFT by 1.8 pp, and the curriculum variant reaches +3.0 pp. Removing axis decoupling instead puts end-to-end performance below the starting point.
| Method | Score | vs SFT |
|---|---|---|
| SFT baseline | 0.7880 | — |
| GRPO w/o Diff | 0.7951 | +0.7 pp |
| w/o dual axes | 0.7810 | −0.7 pp |
| ProxMO | 0.8000 | +1.2 pp |
| KuaFu-Credit | 0.8060 | +1.8 pp |
| KuaFu-Credit + Cur | 0.8180 | +3.0 pp |
Internal benchmark: 50 users, 10 ground-truth anchors per user, and 12 checks evaluated by a Qwen3.8-27B judge. These are not scores from uniformly selected final checkpoints.
Both model scales share their base model and common hyperparameters, with 400 steps and seed=0; only credit assignment changes. Cross-seed significance evidence is not provided. Main-task difficulty segments are associated with curriculum order, not an independently controlled causal study of difficulty.
Beyond performance, inspect how credit is allocated. Mechanism diagnostics are neither final-task accuracy nor an independent absolute ground truth.
Among 854 aligned observations, KuaFu-Credit has five sign disagreements; GRPO achieves 45.1% agreement.
This diagnostic uses pre-z-score differences with base=0 and reference Δq−Δp. It does not imply 99.4% accuracy for the final advantage.The paper is available on arXiv. Code and citation resources will be added when available.