Skip to content

Phase 1: Implement Eq. 21-22 delta-rule momentum variant #3

@georgepullen

Description

@georgepullen

Purpose

Implement Eq. 21-22 delta-rule momentum path in inner optimizer with testable math-level fidelity.

Mandatory Reading (blocking)

First comment must summarize:

  • reports/NL_IMPLEMENTATION_ORACLE.md section 6.1.2
  • reports/paper/NL-print.extracted.clean.txt Eq. (21), Eq. (22)
  • src/nested_learning/optim/deep.py current l2_objective branch

Required Code Anchors

  • src/nested_learning/optim/deep.py
  • src/nested_learning/optim/factory.py
  • src/nested_learning/optim/manager.py
  • tests in tests/

Scope

  • Add new variant name: delta_rule.
  • Implement update equivalent to:
    • m_{i+1} = (alpha*I - g^T g)m_i - eta*P*g
  • Support P=I and diagonal preconditioned mode.
  • Keep legacy variants unchanged for reproducibility.

Test Requirements

  • Analytic toy tensor test against closed-form expected update.
  • State-shape and determinism tests.
  • No regressions in existing optimizer suite.

Deliverables

  • New variant + config support.
  • Dedicated test file and ablation config.

Acceptance Criteria

  • Tests prove formula-level correctness for toy case.
  • 5k pilot run with delta_rule is finite and emits expected telemetry.
  • First issue comment contains mandatory reading summary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestexecution-boardExecution board ticket set for paper alignmentphase-1Phase 1: optimizer equation fidelity (Eq. 21-24)quality-gateHas explicit acceptance criteria and test gates

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions