Combo: Fourier PE padding fix + warmup 15 epochs#1685
Closed
Conversation
|
I have read the CLA Document and I hereby sign the CLA 0 out of 2 committers have signed the CLA. |
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Hypothesis
Two near-misses from round 22 that address different pipeline aspects:
Both individually showed strong ood_cond improvement. The Fourier PE fix changes the feature encoding quality, while warmup 15 changes the optimization trajectory. With cleaner Fourier PE features (no padding contamination), the longer warmup may find a better basin because the loss landscape is smoother. The ood_cond improvements from both changes (+0.29 and +4.1% respectively) target the same split, suggesting this combination could yield a substantial ood_cond improvement that drags overall val_loss below baseline.
Instructions
Apply BOTH changes to
train.py:Fix 1: Fourier PE padding — TRAINING loop (lines 663-666)
Replace:
With:
Fix 1: Fourier PE padding — VALIDATION loop (lines 897-899)
Apply the same xy_min/xy_max masking fix.
Fix 2: Warmup 15 epochs
Line 580 — Change
total_iters=10tototal_iters=15:Line 583 — Change the milestone from
[10]to[15]:No other changes. Run with
--wandb_group noam-r23-combo-fourier-warmup15.Baseline
Results
W&B run:
vk4jwq3d(runtime: ~32 min, state: failed due to pre-existing visualization error)Surface MAE detail (this run):
Volume MAE detail (this run):
What happened
Negative result. Both changes individually showed improvements on r22, but their combination is significantly worse across all splits. The largest degradation is tandem (+3.20), followed by in_dist (+0.74). Notably, even ood_cond — the split both changes were supposed to improve — got worse (+0.41).
This likely reflects an interaction effect. The Fourier PE padding fix changes the encoding so that padded positions now get PE values that are far outside [0,1] (since the masking uses inf/-inf for range computation, padded positions map to extreme values). This creates large PE values for padded positions that were previously near-zero. Combined with a longer 15-epoch warmup, the model may be spending more of its warmup time learning to ignore these extreme padding artifacts rather than fitting the actual signal.
Additionally, extending warmup from 10→15 epochs with this new PE encoding means the cosine annealing has fewer effective epochs (65→57), potentially cutting off convergence prematurely.
Suggested follow-ups
xy_normto [0,1] after the masking computation to prevent extreme values at padded positions.