Skip to content

docs(pd-conjugate): record #276 end-to-end optimization result (16.1% improvement)#282

Merged
ericchansen merged 1 commit into
masterfrom
experiment/pd-conjugate-no-ratio-tol
May 26, 2026
Merged

docs(pd-conjugate): record #276 end-to-end optimization result (16.1% improvement)#282
ericchansen merged 1 commit into
masterfrom
experiment/pd-conjugate-no-ratio-tol

Conversation

@ericchansen
Copy link
Copy Markdown
Owner

Summary

Resolves issue #276 (pd-conjugate end-to-end optimization with --ratio-tol none).

Companion data PR: ericchansen/q2mm-data#5

Background

#276 was filed against the pre-refactor convergence baseline where pd-conjugate's JaxLoss/ObjectiveFunction ratio sat at 1.20 — borderline above the [0.85, 1.15] gate. The hypothesis was that bypassing the gate via --ratio-tol none would unlock useful optimization.

What changed

The loader API refactor (#281) resolved the underlying surrogate mismatch by no longer overwriting Wahlers OPT values with raw QFUERZA projections. As a result, pd-conjugate's ratio is now 0.985 — comfortably inside the default gate. The --ratio-tol none flag in this experiment is effectively a no-op.

Result

End-to-end optimization (700 s, 2 evaluations):

Initial Final
ObjectiveFunction 8,608,266.10 7,234,668.17
Improvement 16.09 %

Per-category R² (published → optimized):

Category n_refs published optimized
bond_length 473 0.939 0.950
bond_angle 892 −0.182 0.037
eig_diagonal 1286 −10.056 −9.642

Decision

Per the issue's decision rule (>5 % improvement = success), this exceeds threshold. No change to the default ratio_tol is recommended — the gate was diagnosing a real problem (the overwritten OPT values), and the fix lived in the loader, not in the gate threshold.

This PR

Provenance

  • q2mm git_sha: 8c7f898 (master, post-loader-refactor)
  • q2mm-data git_sha: 65faf95
  • ratio_tol: null
  • jax_devices: ["cuda:0"]

Raw artifacts (optimized FF, validation_results.json, paper_metrics.json) live in the companion data PR.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the pd-conjugate system documentation to record the issue #276 end-to-end optimization outcome and to reflect the post-loader-refactor ratio and benchmark metrics.

Changes:

  • Updates the reported JaxLoss/ObjectiveFunction ratio to 0.985 and refreshes the benchmark summary table (initial/final ObjectiveFunction + improvement).
  • Replaces the per-category table with published vs optimized R² columns.
  • Adds an “End-to-end optimization (issue #276 follow-up)” section documenting the experiment conclusion.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docs/systems/pd-conjugate.md Outdated
Comment thread docs/systems/pd-conjugate.md Outdated
@ericchansen ericchansen force-pushed the experiment/pd-conjugate-no-ratio-tol branch from ea4cef8 to 768bbfd Compare May 26, 2026 22:41
… improvement)

Issue #276 asked whether bypassing the JaxLoss ratio gate
(`--ratio-tol none`) would unlock useful optimization for pd-conjugate
at its pre-refactor borderline ratio of 1.20.

The loader API refactor (#281) already resolved the underlying
surrogate mismatch — pd-conjugate's ratio is now 0.985 (passing the
default [0.85, 1.15] gate without intervention).  Running the
experiment with `--ratio-tol none` confirms a 16.1% real
ObjectiveFunction improvement (8.61e6 → 7.23e6), well past the 5%
decision threshold from the issue.

No change to the default ratio_tol is recommended — the gate was
diagnosing a real problem (the overwritten OPT values), and the fix
lived in the loader, not in the gate threshold.

Updates docs/systems/pd-conjugate.md with:
- Real ratio (0.985, was 0.96 estimate)
- Initial/final ObjectiveFunction scores
- Per-category R² for the optimized FF
- A short "End-to-end optimization (issue #276 follow-up)" section
  with the conclusion

Optimized FF + validation_results.json + paper_metrics.json are
committed to ericchansen/q2mm-data on a companion branch.

Closes #276.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@ericchansen ericchansen merged commit 85dc8c9 into master May 26, 2026
11 checks passed
@ericchansen ericchansen deleted the experiment/pd-conjugate-no-ratio-tol branch May 26, 2026 22:43
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