Skip to content

perf: re-measure Aris interferometer routing table under the cost-model gate #419

Closed

Description

@Jammy2211

Overview

PyAutoArray#632 replaced the fixed interferometer_numba_nnz_per_source_max: 60 gate with a two-constant cost model (predicted t_fft vs t_dc). This task re-measures the routing table on both Aris masks (125×125 and 512×512) with the default settings. For each cell it records the chosen route, nnz/col and the predicted t_fft / t_dc. It also records the campaign's owed log-det after-measurement: numba vs JAX log_det_regularization_matrix_term after #631. The result goes into a results note in the #226 bake-off format.

Plan

  • Run the six Aris cells (125: 1,405 / 2,947 / 5,526 vertices; 512: 1,459 / 2,577 / 5,746) on the laptop with default settings (cost model, no explicit gate) on PyAutoArray main 17caf228.
  • Per cell, record the route the factory chose, nnz/col, and the cost model's predicted t_fft and t_dc.
  • Per cell, record numba vs JAX log_det_regularization_matrix_term at one fixed parameter vector. Also record the 125×125 original-vector pair (before the fix: numba 2443.22 vs JAX 2561.98).
  • Carry s/call from the prior laptop measurement (PROGRESS4 / step7). It is not re-timed because the laptop is shared (load 2–14).
  • Write results/notes/interferometer_route_gate_aris_2026_10.md and point the interferometer_likelihood campaign wiki at it, saying the numba kill-gate question is now answered by the cost model.
  • Do not touch the three scripts that set the gate explicitly.

Tier: glance — merge mode: auto-merge on green if the Witness passes, post-merge summary. Under --auto at effective level supervised, the ship checkpoint resolves to decide-and-flag. A decision-taken PR is never auto-merged, so this run ends at PR-open and the merge is a human /prm.

Detailed implementation plan

Affected Repositories

  • autolens_profiling (primary; workspace)

Branch Survey

Repository Current Branch Dirty?
./autolens_profiling main dataset/abell_1201/ untracked (not ours)
./PyAutoArray (read-only) main @ 17caf228 = origin/main —

Suggested branch: feature/interferometer-route-gate-phase2

Implementation Steps

  1. Copy the earlier Aris bench harnesses (step7 for 125×125, step8 for 512×512) into a session scratch dir and adapt them there. Do not set interferometer_numba_nnz_per_source_max. Print the inversion class, nnz/col and inversion_interferometer_numba_util.curvature_route_seconds_from(S, nnz, mask.shape_native_masked_pixels).
  2. Run --check with COMPONENTS=1 for the numba and JAX (jit) log-det components at one fixed vector per cell. For 512 at 5,746 vertices, check free -g first and abort over 9 GB RSS.
  3. Reproduce the 125 original vector (vec0) and the after value, expected ≈ 2468.446 on both backends.
  4. Write the results note: a six-cell table, the vec0 pair before and after, the SHA, the settings, and links to #628/#632, #627/#631, #626/#630 and PyAutoPulse#62.
  5. Update the wiki/campaigns/interferometer_likelihood.md row and section.
  6. Run ruff check . / ruff format --check . (no .py is added); lychee link sanity.

Key Files

  • results/notes/interferometer_route_gate_aris_2026_10.md (new)
  • wiki/campaigns/interferometer_likelihood.md

Heart RED development override

Heart was RED at launch (2026-10-15): Heart: RED — Release RED; monitoring RED · 10/100 · 415 unresolved; [red] release validation FAILED (stage integrate); [red] PyAutoHands/workflows/Python Version Matrix: failure; [red] PyAutoHeart/workflows/Release Integrate: failure; [red] PyAutoMind/workflows/Lifecycle Drift: failure; [red] PyAutoArray/Tests: red; [red] autofit_workspace_test/Smoke Tests: red; [red] autogalaxy_workspace_test/Smoke Tests: red; [red] autolens_workspace_test/Smoke Tests: red; [red] CI wall-clock: 26 gates · slowest PyAutoBrain Nightly Release 63m · 5 hang events; [red] Release readiness: release validation FAILED (stage integrate); [red] autofit_test: red; [red] Release validation: NOT release_ready — v2026.10.15.1.dev81701 profile=release; [red] validation_report/stages/integrate: fail; [red] PyAutoArray: red; [red] autolens_inference: red; [red] autolens_profiling: red; [red] Worktree drift: 5 orphan / 0 missing / 4 dirty; [red] euclid_strong_lens_modeling_pipeline: red.

The live human authorized the development-only override in session 3e3dea38 (AskUserQuestion answer: "Yes, override for both (Recommended)"). Compute decision: "Laptop, routing + log-det only". Permitted: commit, push, PR-open behind the autonomous-ship gate (tests, smoke and review must still pass). Merge stays a separate human act. Heart remains RED for release purposes. Launched --auto.

Original Prompt

Click to expand starting prompt

Interferometer route gate phase 2: re-measure the Aris routing table with the default cost model

Type: feature
Target: autolens_profiling
Repos:

PyAutoArray#632 replaced the fixed interferometer_numba_nnz_per_source_max: 60 gate with a
two-constant cost model (t_fft = c_fft·S·pocketfft-work(padded 2ny×2nx),
t_dc = c_dc·nnz·ny·nx, c_fft 7.62e-10, c_dc 1.77e-09). The packaged default is now null
(cost model); a positive value is a hard gate, 0 turns numba off, and a new
interferometer_route setting forces a route.

Re-measure both Aris masks' routing table (125x125, extent 83²; 512x512, extent 341²) with the
default cost model at the campaign's vertex counts (125: 1,405 / 2,947 / 5,526; 512: 1,459 /
2,577 / 5,746), recording for each cell the chosen route, both measured timings and the
predicted t_fft / t_dc. Record the table in the campaign results/wiki in the
autolens_profiling#226 bake-off format, and link #628 / #632 and
PyAutoLabs/PyAutoPulse#62 (task interferometer_large_mask_aris).
This also supplies the campaign's owed Aris after-measurements.

Note: the three autolens_profiling scripts that set
interferometer_numba_nnz_per_source_max explicitly keep hard-gate meaning — leave them
unchanged unless the re-measurement is meant to exercise the default (then drop the explicit
value in the run, not in the committed script).

  • The record ALSO carries the campaign's owed Aris log-det after-measurement: for each cell,
    log_det_regularization_matrix_term on numba vs JAX at the same parameter vector on
    PyAutoArray main ≥ 17caf228 (post-#631), plus the 125×125 figure at the original vector
    (pre-fix numba 2443.22 vs JAX 2561.98). Timings (s/call) are carried from the prior laptop
    measurement (PROGRESS4 table), not re-timed — the laptop is shared (load 2–14).

Activity

  1. Jammy2211 commented on Oct 15, 2026

    @Jammy2211
    ContributorAuthor

    Workspace PR Created

    #420 (branch feature/interferometer-route-gate-phase2, commits 8e8fd8e + 3237286). Results note results/notes/interferometer_route_gate_aris_2026_10.md + campaign wiki update.

    • Under default settings (PyAutoArray 17caf228), the factory picks the faster measured arm in 6/6 Aris cells. The 512 timing pairs are calibration points of the model (in-sample); the 125 FFT arm is compared against a JAX proxy.
    • log-det numba vs JAX: Δ ≤ 4.4e-8 at every cell. The 125 original vector went from 2443.22 / 2561.98 to 2468.4463180 on both.
    • Gate: tests n/a (no pytest suite; lint.yml checks all pass locally) · smoke n/a (markdown-only diff) · review CLEAN after one fix round · Heart RED under the live-human development override.
    • One flagged decision: s/call is carried from the prior laptop measurement, not re-timed.
    • Stopped at PR-open. The merge is a human /prm.
  2. added a commit that references this issue on Oct 15, 2026
  3. Jammy2211 commented on Oct 15, 2026

    @Jammy2211
    ContributorAuthor

    Shipped — 2026-10-15

    PRs

    Upstream PR

    PyAutoLabs/PyAutoArray#632 (17caf228); also #631, #630

    Summary

    This adds the Aris routing table on both masks, re-measured under PyAutoArray#632's default cost model: results/notes/interferometer_route_gate_aris_2026_10.md plus a campaign wiki update. No scripts changed.

    • Routing. The factory picks the faster measured arm in all 6 cells. The old gate of 60 misrouted the 512 / 2,577 cell.
    • Log-det. numba and JAX log-dets agree to ≤ 4.4e-8 everywhere. The 125 original vector is now 2468.4463180 on both, where before the fix it was 2443.22 vs 2561.98.

    Session Notes

    • Timings. s/call is carried from the prior laptop measurement and was not re-timed (the human's compute decision). To revert, delete the note and revert the wiki hunk.
    • Limits. The 512 pairs are calibration points of the cost model (in-sample). The 125 FFT arm is a JAX-jit proxy.
    • Heart. Heart was RED. The development-only override covered commit/push/PR-open, and the merge was the human's /prm.
    • Follow-ups.
      • Review F3, filed as Mind draft/docs/autolens_profiling/decision_matrix_note_gate_wording.md: the 2026-09 decision-matrix note may still call gate 60 current. That draft also links the wiki to PyAutoPulse's task Knowledge section and its decision records.
      • Copy the table into the Pulse task file (PyAutoPulse#62) at the next check-in.
    • Record. PyAutoMind complete/2026/10/interferometer-route-gate-phase2.md.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions