Skip to content

Abstention Environment (HotpotQA) - #954

Merged
mahanfathi merged 7 commits into
mainfrom
mfathi/abstention-env
Mar 30, 2026
Merged

mahanfathi merged 7 commits into
mainfrom
mfathi/abstention-env

Conversation

@mahanfathi

Copy link
Copy Markdown
Contributor

Summary

  • Adds a new abstention resources server that trains a policy model to abstain from answering when unsure rather than hallucinating
  • Uses a three-tier reward scheme: correct (1.0) > abstain (lambda) > incorrect (0.0) with LLM judge verification (OMNISCIENCE_GRADER) instead of string matching
  • The model outputs \boxed{[IDK]} to signal abstention; the judge grades answers as CORRECT, INCORRECT, or NOT_ATTEMPTED
  • Includes HotPotQA dataset preprocessing script, example data, comprehensive unit tests (36 tests), and README

Trains a policy model to abstain from answering when unsure rather
than hallucinating, using a three-tier reward scheme:
  correct (1.0) > abstain (lambda) > incorrect (0.0)

The model outputs \boxed{[IDK]} to signal abstention. Correctness
is verified by an LLM judge (OMNISCIENCE_GRADER) instead of string
matching. Includes HotPotQA dataset preprocessing and example data.
- Add unit tests (36 tests covering all server logic)
- Add README.md with usage examples and licensing info
- Add data/.gitignore to exclude train/validation data from git
- Apply ruff lint and format fixes
@mahanfathi
mahanfathi requested a review from bxyu-nvidia March 25, 2026 15:53
@mahanfathi mahanfathi added the env-infra Infra related to creating new environments label Mar 25, 2026
@copy-pr-bot

copy-pr-bot Bot commented Mar 25, 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.

Expanded example.jsonl from 3 to 5 entries (required by data validation)
and generated example_metrics.json and example_rollouts.jsonl.

Signed-off-by: Mahan Fathi <[email protected]>
@cmunley1

Copy link
Copy Markdown
Contributor

otherwise lgtm

Resolve README.md conflict: keep both Aalcr and Abstention entries.

Signed-off-by: Mahan Fathi <[email protected]>

@cmunley1 cmunley1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, @bxyu-nvidia

@mahanfathi
mahanfathi merged commit 6cee3b5 into main Mar 30, 2026
5 checks passed
kajalj22 pushed a commit that referenced this pull request Apr 7, 2026
## Summary

- Adds a new `abstention` resources server that trains a policy model to
abstain from answering when unsure rather than hallucinating
- Uses a three-tier reward scheme: `correct (1.0) > abstain (lambda) >
incorrect (0.0)` with LLM judge verification (OMNISCIENCE_GRADER)
instead of string matching
- The model outputs `\boxed{[IDK]}` to signal abstention; the judge
grades answers as CORRECT, INCORRECT, or NOT_ATTEMPTED
- Includes HotPotQA dataset preprocessing script, example data,
comprehensive unit tests (36 tests), and README

---------

Signed-off-by: Mahan Fathi <[email protected]>
jsw-zorro pushed a commit to niletron/Gym that referenced this pull request Apr 7, 2026
## Summary

- Adds a new `abstention` resources server that trains a policy model to
abstain from answering when unsure rather than hallucinating
- Uses a three-tier reward scheme: `correct (1.0) > abstain (lambda) >
incorrect (0.0)` with LLM judge verification (OMNISCIENCE_GRADER)
instead of string matching
- The model outputs `\boxed{[IDK]}` to signal abstention; the judge
grades answers as CORRECT, INCORRECT, or NOT_ATTEMPTED
- Includes HotPotQA dataset preprocessing script, example data,
comprehensive unit tests (36 tests), and README

---------

Signed-off-by: Mahan Fathi <[email protected]>
cmunley1 pushed a commit that referenced this pull request Apr 8, 2026
## Summary

- Adds a new `abstention` resources server that trains a policy model to
abstain from answering when unsure rather than hallucinating
- Uses a three-tier reward scheme: `correct (1.0) > abstain (lambda) >
incorrect (0.0)` with LLM judge verification (OMNISCIENCE_GRADER)
instead of string matching
- The model outputs `\boxed{[IDK]}` to signal abstention; the judge
grades answers as CORRECT, INCORRECT, or NOT_ATTEMPTED
- Includes HotPotQA dataset preprocessing script, example data,
comprehensive unit tests (36 tests), and README

---------

Signed-off-by: Mahan Fathi <[email protected]>
Signed-off-by: cmunley1 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

env-infra Infra related to creating new environments

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants