Repository navigation
Conversation
`becker_lecun(t, outidx)` and `becker_lecun(f, x0)` compute the gradient and the Becker–LeCun estimate of diag(H) in one reverse sweep beside the adjoints, returning a `BeckerLeCunEstimate`. The estimate is signed and not guaranteed to bound the diagonal. With `exactness=true`, a second sweep tracks the structural sparsity of the edge-pushing matrix V (Gower and Mello, 2012) and certifies, per input, that no dropped term `2 (∂v_ℓ/∂v_p) V[ℓ,p]` can reach that input's diagonal entry. The check is conservative; its cost grows with the number of structurally nonzero entries of V, so it runs only on request. On interval tapes, certified entries enclose H[i,i] over the box. A tape with a declared sub-map is refused, since it records no signed second partials. Assisted-by: Claude Opus 5.5 <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.
becker_lecun(t, outidx)andbecker_lecun(f, x0)compute the gradient and the Becker–LeCun estimate of diag(H) in one reverse sweep beside the adjoints, returning aBeckerLeCunEstimate. The estimate is signed and its magnitude is not guaranteed to bound the diagonal.With
exactness=true, a second sweep tracks the structural sparsity of the edge-pushing matrix V (Gower and Mello, 2012) and certifies, per input, that no dropped term2 (∂v_ℓ/∂v_p) V[ℓ,p]can reach that input's diagonal entry. The check is conservative; its cost grows with the number of structurally nonzero entries of V, so it runs only on request. On interval tapes, certified entries enclose H[i,i] over the box.A tape with a declared sub-map is refused, since it records no signed second partials.
Assisted-by: Claude Opus 5.5 noreply@anthropic.com