From 503c37496856336b7299abbd2744999bfb1a5c9c Mon Sep 17 00:00:00 2001 From: Diego Resendez Date: Mon, 7 Sep 2026 17:45:03 -0500 Subject: [PATCH] docs: correct the omega comment -- it claimed something now measured false core.py said omega "wants tuning against the domain's length scale". Measured in experiments/results/omega.md: the optimum sits at 2-4 while the domain bandwidth varies 4.7x, and omega=8 is an optimisation cliff regardless of the domain. What the domain changes is the penalty for being under-banded, not where the optimum is. The default of 10.0 is outside that plateau and every chess number was produced at it. Left alone rather than silently changed: those results are comparisons at a fixed omega and remain fair, and one synthetic teacher family is not grounds to move a library default. Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_01HCydQraDSoZ9WoTm2v23Eb --- src/ailed/core.py | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/ailed/core.py b/src/ailed/core.py index b734389..75f46c3 100644 --- a/src/ailed/core.py +++ b/src/ailed/core.py @@ -16,9 +16,17 @@ class AffectiveCPPN(nn.Module): super().__init__() self.l1 = nn.Linear(coord_dim + n_edge_types + context_dim, hidden) self.l2 = nn.Linear(hidden, out_dim) - # omega scales the sine pre-activation and sets the kernel bandwidth; it is - # a calibration knob that wants tuning against the domain's length scale - # (the particles domain's sigma). l1 deliberately keeps PyTorch's default init. + # omega scales the sine pre-activation and sets the kernel bandwidth. This was + # documented as "a calibration knob that wants tuning against the domain's length + # scale"; experiments/results/omega.md measured that and it is FALSE over the range + # tested -- the best omega sits at 2-4 for a domain bandwidth varying 4.7x, and 8 is + # an optimisation cliff for every domain tried. What the domain changes is the + # penalty for being under-banded, not where the optimum is. + # The default of 10.0 is OUTSIDE that plateau and every chess result was produced at + # it. It is left alone rather than silently changed: those results are comparisons at + # a fixed omega and stay fair, and one synthetic teacher family is not enough to move + # a library default. Pass omega explicitly, and measure it for a new domain. + # l1 deliberately keeps PyTorch's default init. self.omega = omega def forward(self, r: Tensor, edge_onehot: Tensor, context: Tensor) -> Tensor: