Skip to content

Support hard and soft reasoning budget controls for RL rollouts #2946

Open

Description

@kota-row

Context

Nemotron-3-Nano-Omni style reasoning models expose two related budget controls that matter for RL rollouts:

  • a hard vLLM limit, thinking_token_budget, which can force reasoning to close by injecting the configured reasoning end token; and
  • soft prompt-level controls such as HF chat template reasoning_budget / reasoning_grace, which guide the model's own reasoning length rather than imposing a hard stop.

For GRPO/GSPO vision rollouts, missing or mismatched reasoning-budget handling can make many samples never reach the answer segment after </think>. Reward functions that evaluate only the post-thinking answer can then see many zero-reward samples, which can make training appear stalled even when the model and reward are otherwise reasonable.

Hard Budget

The hard-limit path is vLLM's thinking_token_budget. NeMo-RL can expose this as a generation config option and forward it to vLLM SamplingParams.
https://docs.vllm.ai/en/latest/features/reasoning_outputs/#thinking-budget-control

Related PR: #2947

When using thinking_token_budget, vLLM also requires reasoning_config, for example:

policy:
  generation:
    thinking_token_budget: 1024
    vllm_kwargs:
      reasoning_config:
        reasoning_parser: nemotron_v3
        reasoning_start_str: <think>
        reasoning_end_str: </think>

Soft Budget

Some model chat templates also reference reasoning_budget / reasoning_grace as soft controls. This is different from vLLM's hard token budget: the template text conditions the model to choose a target reasoning length, but it does not itself guarantee that </think> is emitted at a fixed token boundary.

One possible NeMo-RL interface would be to support these values through policy.tokenizer.chat_template_kwargs, but that can be awkward when the desired budget varies per training example.

Current Workaround

For per-sample soft budgets during training with Nano 3 Omni, a practical workaround is to add the budget instruction directly to the dataset prompt, for example:

\n\n{thinking token budget: <budget>}

https://huggingface.co/nvidia/Nemotron-3-Nano-Omni-30B-A3B-Reasoning-BF16/blob/main/chat_template.jinja#L245

This keeps the budget attached to the data example and avoids needing a global chat_template_kwargs value for all samples in a run.

Open Question

Should NeMo-RL add first-class config support for model-specific soft reasoning budget controls in chat template kwargs, or should that remain dataset/template-specific guidance while NeMo-RL only exposes vLLM's hard thinking_token_budget?

Activity

  1. changed the title [-]Clarify hard and soft reasoning budget controls for RL rollouts[/-] [+]Support hard and soft reasoning budget controls for RL rollouts[/+] on Jun 26, 2026
  2. Keesan12 commented on Jun 27, 2026

    @Keesan12

    My bias would be to keep the hard budget first-class in the runtime and treat the soft budget as guidance that can vary by model/template.

    Reason: they solve different failure modes. The hard budget protects rollout liveness and spend posture at the engine boundary. The soft budget shapes model behavior, but it is still part of the prompt/template contract and can drift across checkpoints, templates, or sample formats.

    The place they meet is observability. If NeMo-RL exposes both, it would help a lot to record for each sample whether the run had:

    • hard budget configured
    • soft budget guidance configured
    • reasoning segment actually closed
    • answer segment actually emitted

    That makes it much easier to separate “reward is bad” from “samples are dying in the reasoning phase.” We’ve seen the same pattern in governed runs more generally: budget controls are useful, but the real unlock is being able to tell which boundary actually stopped progress.

  3. added
    waiting-on-customer
    waiting-on-maintainers
    and removed
    waiting-on-customer
    on Jun 27, 2026
  4. added
    waiting-on-customer
    and removed
    waiting-on-maintainers
    on Jul 10, 2026
  5. added
    waiting-on-maintainers
    waiting-on-customer
    and removed
    waiting-on-customer
    waiting-on-maintainers
    on Aug 5, 2026
  6. added
    waiting-on-maintainers
    and removed
    waiting-on-customer
    on Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    community-requestwaiting-on-maintainers

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions