Skip to content

Adds pixel-loss to the decoder#502

Closed
gabrieltseng wants to merge 47 commits intomainfrom
gabi/exp17-ndvi-supervision
Closed

Adds pixel-loss to the decoder#502
gabrieltseng wants to merge 47 commits intomainfrom
gabi/exp17-ndvi-supervision

Conversation

@gabrieltseng
Copy link
Copy Markdown
Collaborator

@gabrieltseng gabrieltseng commented Feb 25, 2026

This PR builds on #501

Here, we add a pixel loss to the decoder.

Q: How is this different from the MAE loss?

A: MAE loss applies the same loss (e.g. L2 loss) to all modalities. This supervision loss is modality aware, and applies a classification or regression loss as appropriate.

The hypothesis with this approach was twofold: firstly, this would help maintain high resolution at higher patch sizes, and secondly that this might help with stability too.

Colour Time-aware masking ? Supervision? Other notes
pink OlmoEarth v1
grey Random decode with ERA5 and NDVI
mauve Time decode with ERA5 and NDVI
purple Supervision with ERA5 and NDVI, random
green Supervision with ERA5 and NDVI, time
Screenshot 2026-03-02 at 2 05 10 PM

Here, the time masking seems to really help, providing a significant boost to both pastis and so2sat.

Since the instance-contrastive loss was in part designed to add stability to the model, I wondered if we could do away with it and only have a single forward pass per batch. This is in orange below:

Screenshot 2026-03-02 at 2 16 07 PM

This seems to help a lot with MADOS (>6% improvement!) but hurts quite a bit on pastis.

Base automatically changed from gabi/exp17-with-ndvi to main March 3, 2026 11:51
@gabrieltseng
Copy link
Copy Markdown
Collaborator Author

Closing in favor of #528

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant