Detect and stop repetitive generation loops
Detect excessive repetition in generated content, including reasoning blocks and n-gram or near-identical text patterns, then interrupt the degraded generation and notify the user. The guard should avoid false positives on legitimate long reasoning where possible.
Explore challenge
The problem
Detect excessive repetition in generated content, including reasoning blocks and n-gram or near-identical text patterns, then interrupt the degraded generation and notify the user. The guard should avoid false positives on legitimate long reasoning where possible.
Start with these discussions
- 长会话下输出陷入重复循环(degenerate repetition),建议加输出重复检测github · ▲1 · 1 comments
- Runaway repetition in the reasoning channel: one 736 KB block with 48,898 repeated phrases, and no guard to stop itgithub · ▲1 · 0 comments