Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added caseHOLD task #2570

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Added caseHOLD task #2570

wants to merge 1 commit into from

Conversation

zolastro
Copy link

Hello,

I have been working on implementing caseHOLD within the lm-harness-evaluation framework. While I managed to create the necessary files (casehold.yaml and utils.py) to preprocess and evaluate the dataset, I encountered significant challenges during evaluation. Specifically, all models I tested consistently performed at or below random chance, which indicates an issue I have been unable to resolve.

Results with

lm_eval --model hf v--model_args pretrained=meta-llama/Llama-3.2-1B-Instruct --task casehold --device cuda:1 --batch_size 1 --apply_chat_template

| Tasks  |Version|Filter|n-shot| Metric |   |Value |   |Stderr|
|--------|------:|------|-----:|--------|---|-----:|---|------|
|casehold|      1|none  |     0|acc     |↑  |0.1472|±  |0.0049|
|        |       |none  |     0|acc_norm|↑  |0.2633|±  |0.0060|
|        |       |none  |     0|f1      |↑  |0.1472|±  |   N/A|

I’ve made this pull request to share my implementation and kindly request assistance in debugging or refining it. I’ve also opened an issue linked to this pull request to facilitate further discussion.

For context, here are the resources relevant to the task:

The caseHOLD dataset
Paper on caseHOLD
Any guidance or feedback would be greatly appreciated. Thank you in advance for your support!

Best regards,
David

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Antonio David Ponce Martínez seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@baberabb
Copy link
Contributor

Hi! Have you tried prompting it in the MMLU style, where the choices are all in context and the loglikehood of the answer letter (A,B, etc.) is compared to determine the most probable response? might provide a better signal, as the choice holdings seem to be too subtle for a general model to distinguish

doc_to_text: "{{question.strip()}}\nA. {{choices[0]}}\nB. {{choices[1]}}\nC. {{choices[2]}}\nD. {{choices[3]}}\nAnswer:"
doc_to_choice: ["A", "B", "C", "D"]

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