1
0
Fork 0
mirror of https://github.com/p-e-w/heretic.git synced 2026-12-03 18:42:57 +07:00

[GH-ISSUE #249] Feature request: Display baseline PIQA acc_norm for user interpretation #142

Closed
opened 2026-11-01 04:17:59 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @erm14254 on GitHub (Mar 24, 2026).
Original GitHub issue: https://github.com/p-e-w/heretic/issues/249

I understand that Optuna doesn't need a baseline to perform minimization (#246). However, the end user needs the baseline to interpret results and document them.

The problem:

When I upload a hereticated model to Hugging Face, I need know what to check for to properly select a result and to show users whether quality was preserved, but yet as of right now this the sort of result that gets displayed on Hugging Face:

Metric This model Original model
PIQA acc_norm 0.8305 Unknown
Refusals 5/100 98/100

With refusals and KL divergence, the baseline is either measured at start or inherently 0. Users can see the original refusal at the start with:

Loading bad evaluation prompts from mlabonne/harmful_behaviors...

  • 100 prompts loaded
  • Counting model refusals...
  • Initial refusals: 98/100

And you already know that the KL divergence is 0, both these baselines act as pointers that lets the user evaluate the results, such as:

10/100 refusals or KL 0.0350 = much lower refusals with minimal drift

With PIQA, I get a result that might say 0.8280 but have no idea if:

Original was 0.85 → quality degraded
Original was 0.83 → quality preserved

Request:

Run PIQA once on the original model at the start and display it:

Example: Baseline PIQA acc_norm: 0.8248

This way the user will have baseline refusals and baseline PIQA acc_norm and this would serve to give users the context needed to evaluate and publish results that other users will be able to understand.

Originally created by @erm14254 on GitHub (Mar 24, 2026). Original GitHub issue: https://github.com/p-e-w/heretic/issues/249 I understand that Optuna doesn't need a baseline to perform minimization (#246). However, the end user needs the baseline to interpret results and document them. The problem: When I upload a hereticated model to Hugging Face, I need know what to check for to properly select a result and to show users whether quality was preserved, but yet as of right now this the sort of result that gets displayed on Hugging Face: | Metric | This model | Original model | |--------|------------|----------------| | PIQA acc_norm | 0.8305 | **Unknown** | | Refusals | 5/100 | 98/100 | With refusals and KL divergence, the baseline is either measured at start or inherently 0. Users can see the original refusal at the start with: > Loading bad evaluation prompts from mlabonne/harmful_behaviors... > * 100 prompts loaded > * Counting model refusals... > * Initial refusals: 98/100 And you already know that the KL divergence is 0, both these baselines act as pointers that lets the user evaluate the results, such as: 10/100 refusals or KL 0.0350 = much lower refusals with minimal drift With PIQA, I get a result that might say 0.8280 but have no idea if: Original was 0.85 → quality degraded Original was 0.83 → quality preserved Request: Run PIQA once on the original model at the start and display it: Example: `Baseline PIQA acc_norm: 0.8248` This way the user will have baseline refusals and baseline PIQA acc_norm and this would serve to give users the context needed to evaluate and publish results that other users will be able to understand.
Author
Owner

@p-e-w commented on GitHub (Mar 24, 2026):

Sorry if I wasn't clear enough earlier: The PIQA-related code in #211 has no future. At all. It's going to be completely removed before the PR is merged. It's a research hack, not the seed of a feature. There's a reason I didn't announce it anywhere, not even in #236.

<!-- gh-comment-id:4116319870 --> @p-e-w commented on GitHub (Mar 24, 2026): Sorry if I wasn't clear enough earlier: The PIQA-related code in #211 has no future. At all. It's going to be completely removed before the PR is merged. It's a research hack, not the seed of a feature. There's a reason I didn't announce it anywhere, not even in #236.
Author
Owner

@erm14254 commented on GitHub (Mar 24, 2026):

The PIQA-related code in #211 has no future. At all. It's going to be completely removed before the PR is merged.

Oh wow okay, so if it's going to be removed and it has no future, should I revert all the code change done in commit c925f5e?

<!-- gh-comment-id:4116678969 --> @erm14254 commented on GitHub (Mar 24, 2026): > The PIQA-related code in [#211](https://github.com/p-e-w/heretic/pull/211) has no future. At all. It's going to be completely removed before the PR is merged. Oh wow okay, so if it's going to be removed and it has no future, should I revert all the code change done in commit `c925f5e`?
Author
Owner

@erm14254 commented on GitHub (Mar 24, 2026):

Nevermind I just reverted.

<!-- gh-comment-id:4117089752 --> @erm14254 commented on GitHub (Mar 24, 2026): Nevermind I just reverted.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
p-e-w/heretic#142
No description provided.