Model architecture of YieldFormer, our model for predicting crop yield from satellite images and weather. Draw it for a slide. Two inputs. A time series of Sentinel-2 image patches goes through a patch embedding and then a vision transformer encoder with 6 transformer blocks. A daily weather sequence (temperature, rainfall, radiation) goes through a 1D convolution and then a 2-layer LSTM. The two feature streams meet in a cross-attention fusion module, where the weather features attend to the image features. The fused features pass through global average pooling and an MLP regression head that outputs the yield in tonnes per hectare. Training uses a mean squared error loss against county yield statistics. A dashed auxiliary branch from the image encoder predicts the crop type with a cross-entropy loss.