Repository navigation
Abstention Environment (HotpotQA) - #954
Merged
Merged
Conversation
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
Signed-off-by: Mahan Fathi <[email protected]>
Signed-off-by: Mahan Fathi <[email protected]>
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
reviewed
Mar 26, 2026
Contributor
|
otherwise lgtm |
Signed-off-by: Mahan Fathi <[email protected]>
Resolve README.md conflict: keep both Aalcr and Abstention entries. Signed-off-by: Mahan Fathi <[email protected]>
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
abstentionresources server that trains a policy model to abstain from answering when unsure rather than hallucinatingcorrect (1.0) > abstain (lambda) > incorrect (0.0)with LLM judge verification (OMNISCIENCE_GRADER) instead of string matching\boxed{[IDK]}to signal abstention; the judge grades answers as CORRECT, INCORRECT, or NOT_ATTEMPTED