Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Generation RL
Reasoning RL
1. Structured interleaved rollout
Reasoning rollouts use
<think> ... <perception page="N">...</perception> ... </think><answer>...</answer>.<perception>marks an explicit perception action; it is not treated as a hard visual-token class.2. Hard construction-aware verification
reasoning_process_verifier.pyreuses Finance World evidence facts and executable-program metadata to check:Explicit process contradictions veto an otherwise correct terminal answer.
3. True multi-advantage optimization
Reasoning no longer collapses outcome / perception / reasoning into one scalar reward.
For mixed Pass@8 groups the trainer maintains three separate channels:
Perception and reasoning criteria are normalized independently inside each rollout group and zero-variance criteria receive no pressure.
4. Soft visual-token dependency
Perception advantage is distributed with a model-derived token weight instead of an XML span mask.
The trainer performs an additional zero-image counterfactual forward and uses the per-token log-probability change as soft visual dependency, with a mild later-token compensation inspired by VGPO.
This avoids assuming that every token inside
<perception>is visually dependent or that visually dependent tokens cannot appear elsewhere in the CoT.5. Save the good prefix
The deterministic verifier exposes the earliest hard error. For a rejected rollout:
<answer>spanThis follows the process-credit principle of Save the Good Prefix / Verifiable Prefix Policy Optimization instead of broadcasting a negative rollout reward over every earlier correct step.
6. Pass@8 interaction
k=0: keep the existing partial-reward + batch-scale normalization path; no perception/reasoning auxiliary channel1<=k<=7: use strict binary outcome advantage plus independent perception/reasoning token-level channelsk=8: keep the mastered-group RL skip7. Training cost
The soft visual dependency requires one additional counterfactual model forward for Reasoning RL training batches. It is not used by Generation RL.
Main references reflected in the implementation