Add conditional query information for correlated partial gauges - #344
Merged
Conversation
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.
Scientific purpose
Advance the paper contribution beyond the already implemented observable-subspace factor (#332) and query-observability projection (#338): select and assimilate an additional learned window according to its conditional query information after the actual history, rather than its standalone covariance.
This is a method plus an executed controlled mechanism study, not another real-provider qualification protocol. No protected dataset, source residual, target outcome, BayesianPhysTwin result, or Causal4D outcome was opened.
Method
For the complete, externally justified joint observation-noise covariance, condition candidate noise on consumed history:
The outcome-free selector evaluates expected metric-squared query-error reduction per cost. The session tracks consumed evidence, preserves partial gauge information without a ridge, supports compatible singular replay covariance, rejects informative deterministic constraints instead of silently dropping them, and returns the same local gauge-belief object for exact source replay.
The guide includes a proof of the query-value identity and a counterexample: a shared-noise reference has zero standalone state information, but after a signal-bearing window reduces scalar posterior variance from 1/2 to 1/12. Consequently no generic submodularity or multi-step greedy guarantee is asserted.
Gaussian conditioning, goal-oriented design, and correlated sensor selection are established prior work. The candidate contribution is their explicit composition with partial learned-window gauges, source-replay semantics, downstream queries, and executable failure controls; not invention of those general formulas.
Executed controlled study
10,000 independent synthetic episodes; one additional-window budget; all choices made before drawing outcomes; known local-linear Gaussian model; 2,000 paired episode-bootstrap replicates.
The conditional-query arm reduces average query RMSE by about 14.93%. Its paired mean-squared-query-error improvement has a 95% percentile bootstrap interval of [0.7636, 0.8272] mm². 31.94% of individual episodes still worsen relative to history; this is an expected-value result, not per-update safety.
The conditional kernel agrees with a separately computed dense joint posterior to 1.93e-15 maximum absolute error. The correlation sweep retains the exact-replay zero-information endpoint.
Validation
Before push: 29 focused tests pass locally, including random correlated batch/sequential parity in every window order, singular repeated histories, exact object-identity preservation, no mutation after inconsistent replay, coordinate/unit invariance, deterministic constraints, and reproducible study decisions.
The hosted workflow additionally checks formatting, lint, typing, compatibility with the real existing observable-factor/query APIs, the existing observability regressions, and a full 10,000-episode reproduction. Repository-wide CI remains authoritative; no unexecuted integration or global test pass is claimed here.
Boundaries
Paper-facing generated results and the exact source manifest belong in FlorianPfaff/BayesianPhysTwin-Paper.