Skip to content

feat(genrm_compare): add style density penalty for formatting control - #1543

Merged
bxyu-nvidia merged 2 commits into
mainfrom
amahishi/style-control-genrm
Jun 9, 2026
Merged

bxyu-nvidia merged 2 commits into
mainfrom
amahishi/style-control-genrm

Conversation

@macandro96

@macandro96 macandro96 commented Jun 5, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Adds group_style_penalty_coeff to GenRMCompareConfig and wires it through both call sites in aggregate_scores (single-response and cohort paths)
  • Implements style density scoring in utils.py: counts markdown formatting elements (headers h1-h6, ordered/unordered lists, bold, emoji) excluding code blocks, following Arena-Hard conventions
  • Lower formatting density relative to the group gets a bonus; higher density gets a penalty that discourages "style hacking" where models over-format to appear more helpful
  • Fixes duplicate genrm_simple_agent_reasoning_off config block in genrm_compare.yaml

Cherry pick commit: f5f1429e8447595bbb78151cb921d81785f7b39e

Signed-off-by: Anish Mahishi <[email protected]>
@copy-pr-bot

copy-pr-bot Bot commented Jun 5, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@macandro96
macandro96 requested review from ananthsub and yfw June 5, 2026 22:48
@yfw
yfw requested a review from bxyu-nvidia June 9, 2026 01:14
@macandro96
macandro96 requested a review from HeyyyyyyG June 9, 2026 16:00
@HeyyyyyyG

Copy link
Copy Markdown
Contributor

LGTM

@macandro96
macandro96 enabled auto-merge (squash) June 9, 2026 19:14
@bxyu-nvidia
bxyu-nvidia disabled auto-merge June 9, 2026 19:47
@bxyu-nvidia
bxyu-nvidia merged commit f82b601 into main Jun 9, 2026
6 checks passed
@bxyu-nvidia
bxyu-nvidia deleted the amahishi/style-control-genrm branch June 9, 2026 19:47
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.

3 participants