Skip to content

Forward mean-field learning rule options by name - #816

Open
AHMETHAKANBEZIR1 wants to merge 1 commit into
BindsNET:masterfrom
AHMETHAKANBEZIR1:fix/meanfield-update-options
Open

AHMETHAKANBEZIR1 wants to merge 1 commit into
BindsNET:masterfrom
AHMETHAKANBEZIR1:fix/meanfield-update-options

Conversation

@AHMETHAKANBEZIR1

@AHMETHAKANBEZIR1 AHMETHAKANBEZIR1 commented Oct 23, 2026 •

Copy link
Copy Markdown

MeanFieldConnection passes its weight_decay positionally into AbstractConnection's reduction slot. The learning rule therefore gets zero weight decay, so a requested decay silently does nothing; providing reduction explicitly also raises a multiple-values TypeError in the constructor.

Forward nu and weight_decay by name so the inherited reduction option can bind correctly. For example, a shared weight0.5 with weight_decay0.1 remains0.5 after three Network.run steps on master, whereas the common learning-rule contract gives0.5*0.9**3=0.3645.

Validation against exact unmodified master78ec02b, Windows / Python3.12 / Torch2.14.0+cpu:

  • Eight regression/control cases: six fail and two zero-decay controls pass on master; all eight pass with the fix. Public Network.run checks repeated decay for scalar and per-target weights, including zero and full decay, while preserving the Parameter. Explicit sum/mean callbacks are accepted and reach the learning rule's reduction.

  • Complete local suite:263passed,1skipped. Package import path verified for this checkout in the Poetry environment.

  • Both configured all-file pre-commit hooks, normal commit hooks and staged diff check pass; changelog updated.

This is independent of #813's normalization and #815's CSRM state handling; no matching open fix or claimed issue was found. No CUDA, speed or task-accuracy benchmark is claimed. AI disclosure: the account owner requested OSS work; OpenAI Codex performed the source diagnosis, implementation, tests and description. The account owner has not independently reviewed the code. This is a constructed training reproducer, not a claimed production incident.

Local compatibility check: the updated heads of #813, #815 and #816 were applied together in a private checkout based on master78ec02b. The complete combined suite passed (297 passed, 1 skipped; Torch2.14 CPU; import path verified). Only the changelog additions needed a conflict resolution, which retained all entries; the implementation changes applied cleanly. This is local integration evidence, not an upstream merge or CUDA result.

Co-authored-by: OpenAI Codex <codex@openai.com>

This branch has not been deployed

No deployments
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.

1 participant