Skip to content

feat: schedule LM learning rates and warn on weak learning - #32

Open
soomro-abd wants to merge 1 commit into
feat/stackoverflow-medical-causal-lmfrom
feat/lm-training-protocol
Open

soomro-abd wants to merge 1 commit into
feat/stackoverflow-medical-causal-lmfrom
feat/lm-training-protocol

Conversation

@soomro-abd

Copy link
Copy Markdown
Collaborator

Causal-LM clients previously used one fixed learning rate, and successful execution did not distinguish useful learning from a negligible change over the initial model. This adds an optional cosine schedule shared by server and clients, plus a configurable warning against the same run's round-zero baseline.

Depends on #31. The base is feat/stackoverflow-medical-causal-lm so this PR contains only the training-protocol changes. Merge the stack in dependency order and retarget after the parent lands.

Changes

  • Schedule one learning rate per federated round, from client_lr to the configured minimum; validate the rate reported by every client. Preserve fixed-rate behavior and existing run identities when the schedule is absent.
  • Warn when a successful clean LM run misses the configured accuracy or loss improvement. Skip this learning-signal assessment for attack/defense runs and invalid or missing evidence.
  • Surface initial/final values, improvement and learning rates in saved and terminal reports without rounding small rates to zero.
  • Add a three-round GPU example, configuration guards, regression tests and documentation.

Validation

  • Full Linux/Python 3.11 suite at this commit: 272 passed, 1 optional NVFlare test skipped.
  • Two-node Quadro RTX 6000 smoke: both nodes trained clients, and recorded rates matched 5e-5, 2.55e-5, 1e-6 across the three rounds.
  • Accuracy stayed at 25% while loss decreased from 2.727 to 2.304; the learning-gap warning correctly identified the missing accuracy gain. Saved checkpoint weights were finite and the parameter manifest matched.
  • Strict MkDocs build, saved-report rendering and git diff --check passed. Ray was stopped after GPU validation.

This validates schedule propagation and warning behavior. The short smoke does not establish the full experiment's learning quality.

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