Skip to content

docs: explain OIS and TIS training metrics - #2580

Open
Gavin-Meng wants to merge 1 commit into
THUDM:mainfrom
Gavin-Meng:docs/explain-importance-ratio-metrics-1907
Open

Gavin-Meng wants to merge 1 commit into
THUDM:mainfrom
Gavin-Meng:docs/explain-importance-ratio-metrics-1907

Conversation

@Gavin-Meng

Copy link
Copy Markdown

Summary

  • Explain what the token-level train/ois and built-in train/tis metrics measure in the English and Chinese policy-mismatch guides.
  • Describe when the two ratios match and where clipping is visible. Include the current PPO/GRPO compatibility check for --use-rollout-logprobs and --use-tis.

Related to #1907. The explanation follows the current main branch. The issue was reported on v0.2.4.

Verification

  • Exercised the current policy_loss_function, built-in TIS callback, and response-mask reducer with synthetic logits on Apple Silicon CPU. Only the single-rank Megatron parallel state was stubbed.
  • PPO/GRPO returned OIS/TIS values of (1, 2) with equal current and old trainer probabilities and about (1.2, 2) after changing the current probability.
  • REINFORCE using the sampler as the baseline returned (3, 3) for the logged ratios and tis_clipfrac=1. The loss used the clipped weight 2.
  • git diff --check passed.

@Gavin-Meng
Gavin-Meng marked this pull request as ready for review November 30, 2026 04:27

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant