SkillOpt
SkillOpt copied to clipboard
Slow update: paper describes a dev-gated update, but the default since 4a1b984 force-writes it. Why the change?
Hi, I have a question about how the epoch-end slow update is accepted. The paper and the current default code seem to disagree, and I'd like to understand why.
What the paper says
§3.6, Appendix C.3, and Algorithm 1 (line 33) describe the slow-update candidate as going through the same validation (selection-set) gate as step-level edits. It is kept only if it passes.
What the code does
- In v0.1.0 (244e346), the slow update is gated. The candidate is scored on the selection set and passed to
evaluate_gate()againstcurrent_score/best_score. - 4a1b984 ("refactor: rename teacher/student …") includes "Fix slow update gate (force write into skill)". After this commit, the guidance is written into the skill unconditionally.
- 00602df re-adds gating as an opt-in switch,
optimizer.slow_update_gate_with_selection. It defaults tofalse(force-injected), described as "unchanged behavior". - ffe5810 then limits the forced write to the current skill and keeps
bestunpolluted.
So with default settings, the slow update is never validated. Also, current_score is not re-measured after the injection: the selection cache keeps the pre-injection score for the new skill hash. In effect, the next step's gate compares against a stale score.
Questions
- What was the reason for switching from gated to force-write in 4a1b984? For example, was the gate rejecting slow updates too often because the selection set is small and noisy?
- Which variant produced the numbers reported in the paper: gated, as in v0.1.0, or force-written?
- Which setting do you recommend for reproducing the paper:
slow_update_gate_with_selection: trueorfalse? - If force-write is intended, should
current_scorebe re-evaluated after the injection? As it stands, step-level gates after an epoch boundary compare against a score that the current skill never achieved.
Thanks!