Skip to content

docs: JAX gradient audit README (status table + mesh verdicts)#88

Merged
Jammy2211 merged 2 commits into
mainfrom
feature/jax-autodiff-gradients-audit
Jul 9, 2026
Merged

docs: JAX gradient audit README (status table + mesh verdicts)#88
Jammy2211 merged 2 commits into
mainfrom
feature/jax-autodiff-gradients-audit

Conversation

@Jammy2211

@Jammy2211 Jammy2211 commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Part of the JAX autodiff gradients audit — #87.

Scripts Changed

  • jax_profiling/gradient/README.md (new) — the audit's central artifact: per-likelihood gradient status table (all FD-validated results with dates + tolerances), the rectangular-mesh staircase verdict (RectangularUniform exact; RectangularAdaptDensity at os_pix=1 piecewise-constant in mass/shear — autodiff correct, smooth mass information destroyed by the empirical rank transform, os_pix>1 restores it; measured FD step-size table included), the three-layer Delaunay infeasibility write-up (pure_callback no-JVP → custom_jvp zero-rule path), and the findings log.

Companion PR (FD test scripts): PyAutoLabs/autolens_workspace_test#157 — see the audit issue for cross-references.

Validation

Documentation only; all numbers reproduced 2026-07-09 against current mains by the probes in jax_profiling/gradient/ and the jax_grad FD suite. Heart YELLOW acknowledged by the user at ship (pre-existing, unrelated).

🤖 Generated with Claude Code

https://claude.ai/code/session_01XGDp54jKUd3kUziTF77pNu

… verdicts

Adds the per-likelihood gradient status table for the JAX autodiff audit (#87):
FD-validated results for Sersic / linear Sersic / MGE / point-source source-
plane / weak lensing, the re-confirmed Delaunay pure_callback-no-JVP hard
error with the three-layer infeasibility write-up, and the rectangular-mesh
staircase verdict (RectangularUniform exact; RectangularAdaptDensity at
os_pix=1 is piecewise-constant in mass/shear — autodiff correct, smooth mass
information destroyed by the empirical rank transform; os_pix>1 restores it).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XGDp54jKUd3kUziTF77pNu
@Jammy2211 Jammy2211 added the pending-release Pending release build label Jul 9, 2026
… at os_pix=4

Both adaptive rectangular meshes FD-validated at production over-sampling:
RectangularAdaptImage (reg.Adapt + AdaptImages + border relocator) <= ~1% on
mass/shear, AdaptDensity <= ~3%; implications section updated — gradient-based
mass inference works in the production config, only the os_pix=1 adaptive
corner is unusable.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XGDp54jKUd3kUziTF77pNu
@Jammy2211 Jammy2211 merged commit 6c41fa8 into main Jul 9, 2026
@Jammy2211 Jammy2211 deleted the feature/jax-autodiff-gradients-audit branch July 9, 2026 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pending-release Pending release build

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant