Fix critical bugs in function_of_decision_section task - #47
Open
zealoushacker wants to merge 1 commit into
Open
Conversation
This commit fixes two critical data quality issues that significantly impact model performance: 1. Typo correction: "faction background" → "factual background" - Fixed in base_prompt.txt, claude_prompt.txt, and README.md - The typo appears to be unintentional and confuses the task definition 2. Mislabeled example: - Text containing "judgment...is Affirmed" was incorrectly labeled as "Facts" - Corrected to "Decree" (the proper category for court orders) - Fixed in base_prompt.txt, claude_prompt.txt, and train.tsv - This mislabeling directly contradicts other correct examples in the few-shot prompts These bugs were causing models to receive contradictory few-shot examples, explaining the poor baseline performance (~49% accuracy) on this task. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
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
This PR fixes two critical data quality issues in the
function_of_decision_sectiontask that significantly impact model performance.Bugs Fixed
1. Typo: "faction background" → "factual background"
The typo appears in the definition of the "Facts" category and confuses the task definition.
2. Mislabeled Example
Text containing "judgment of the district court is Affirmed" was incorrectly labeled as "Facts" when it should be "Decree". This creates contradictory examples in the few-shot prompts.
Evidence
The first example in the prompt shows:
While the seventh example correctly shows:
Performance Impact
These bugs cause models to receive contradictory signals from the few-shot examples, which significantly degrades performance on this task. Correcting these issues should lead to more consistent and accurate model outputs.