Skip to content

Remove skip_index and simultaneous hessian/build#301

Open
luciaquirke wants to merge 2 commits into
mainfrom
simplify-hess
Open

Remove skip_index and simultaneous hessian/build#301
luciaquirke wants to merge 2 commits into
mainfrom
simplify-hess

Conversation

@luciaquirke

@luciaquirke luciaquirke commented Jun 22, 2026

Copy link
Copy Markdown
Collaborator

We've had this efficiency optimization where the autocorrelation hessian can be computed simultaneously with the index build, but it's a bit convoluted and my understanding is that the amount of data you need for a good autocorrelation estimate is quite low anyway, so the speed gains are limited. Removing for simplicity.

Comment on lines +138 to +139
# The autocorrelation Hessian is a dense per-module gradient Gram so
# it computes in one pass and skips the factored eigendecomposition

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.

Hmmh I think it may be better to modify approxmiate hessians to control whether we do EV computations

@LouisYRYJ

Copy link
Copy Markdown
Contributor

nice, this looks good! I think we can probably unify the hessian approaches even more, but that may be done in another PR. Also important to be aware that everything outside of the autocorr hessian uses Fisher and not empirical Fisher (i.e. uses sampled labels from the logits, not actual data labels)

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.

2 participants