mirror of
https://github.com/deepseek-ai/DeepSeek-R1.git
synced 2026-11-05 00:47:42 +00:00
[GH-ISSUE #252] [Feature] Integrate Budget Forcing as a Test-Time Compute Control Mechanism Prior to GRPO Execution #184
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
deepseek-ai/DeepSeek-R1#184
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @novvoo on GitHub (Feb 4, 2025).
Original GitHub issue: https://github.com/deepseek-ai/DeepSeek-R1/issues/252
To enhance the efficiency and adaptability of DeepSeek R1’s GRPO (Group Relative Policy Optimization) algorithm, we propose integrating Budget Forcing—a test-time compute control method introduced in the Simple Test-Time Scaling framework (arXiv:2501.19393v1#S3)26. This addition aims to dynamically adjust the model’s reasoning process during inference, aligning computational expenditure with predefined budgets while improving performance on resource-constrained tasks like mathematical reasoning and complex problem-solving.
Proposed Feature Details
Budget Forcing Mechanism
Budget Forcing operates by either:
MAX_TOKENS_THINKING=32000), append an end-of-thinking token to force an answer.Integration with GRPO
Key Benefits
Implementation Steps
budget_mode(e.g.,strict,flexible) andmax_thinking_tokensas configurable hyperparameters.stop_token_idsand append "Wait" tokens dynamically.Expected Outcomes
References to Code/Data:
@manoj633 commented on GitHub (Feb 4, 2025):
The current approach forces early termination if a threshold is exceeded. However, abrupt stopping might lead to incomplete reasoning. Introduce a confidence-based termination metric, where the model assesses its certainty before stopping (e.g., via entropy of token probabilities).
@novvoo commented on GitHub (Feb 5, 2025):
Well, I agree that R1’s intelligent termination is indeed a better solution overall. In addition to that, I have two further suggestions that might help us leverage S1’s strengths while maintaining R1’s inherent flexibility:
Integrate S1's dynamic computation control:
We can adopt the method proposed by S1 to limit the computational budget for candidate answers before executing R1’s GRPO. This would ensure that the reasoning process remains optimal and within our designated resource limits.
Parameterization and adaptive adjustment:
Opening up user-defined budget parameters in R1 could provide greater flexibility. By experimenting with different strategies on benchmarks such as MATH and AIME24, we can verify the effects and maximize computational efficiency while ensuring performance improvements.
I look forward to these suggestions can further improve the intelligence level of R1.
@novvoo commented on GitHub (Feb 6, 2025):
S1's force stopping is being hotly discussed now, so this isuue still has its meaning
https://news.ycombinator.com/item?id=42946854
@Codys12 commented on GitHub (Feb 8, 2025):
I feel as if this can be aproached during training by factoring in Sequence Length into GRPO rewards
@github-actions[bot] commented on GitHub (Apr 1, 2025):
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe this issue is still relevant, please leave a comment to keep it open. Thank you for your contributions!
@github-actions[bot] commented on GitHub (May 8, 2025):
false