In this episode I sat down with Lakshay Sharma, a machine learning scientist at Instacart and former member of Microsoft’s geospatial AI team, to discuss self-supervised learning for remote sensing and his recent research on efficient pretraining for semantic segmentation. Lakshay explains the evolution of self-supervised learning, covering predictive, generative, and contrastive approaches, and discusses how foundation models such as DINO have transformed computer vision and geospatial machine learning. We explore the unique challenges of applying these techniques to remote sensing imagery, where assumptions that work for natural images often break down. We then dive into Lakshay’s recent paper, Sub-Image Overlap Prediction: Task-Aligned Self-Supervised Pretraining for Semantic Segmentation in Remote Sensing Imagery, presented at the Computer Vision for Earth Observation Workshop at WACV 2026. He walks through the intuition behind the method, which trains models to localize extracted sub-images within larger scenes as a proxy task for semantic segmentation. We discuss the experimental setup, comparisons against established self-supervised learning approaches, and the surprising finding that the method achieves competitive or superior results using only thousands of pretraining images rather than millions. Along the way, we explore transfer learning across datasets, the growing importance of data efficiency, and why targeted pretraining may offer a compelling alternative to increasingly resource-intensive foundation model development for niche geospatial applications. * 📺 Video of this conversation on YouTube * 👤 Lakshay on LinkedIn * 🖥️ Personal website of Lakshay * 📖 Paper Bio: Lakshay Sharma is a Senior Machine Learning Scientist / Engineer at Instacart. His research spans Computer Vision (CV) and Vision-Language Models (VLMs) with a focus on Self-Supervised and Semi-Supervised Learning. He has previously worked at Microsoft on multi-modal representation learning, and using aerial/satellite and streetside imagery for maps and geospatial applications. He has also worked at Amazon where he was focused on representation learning for videos. Based in New York City, Lakshay is an avid fan of soccer, snowboarding, and cricket. He often daydreams of some day applying his computer vision chops to sports. This is a public episode. If you would like to discuss this with other subscribers or get access to bonus episodes, visit www.satellite-image-deep-learning.com
Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.
Transcript
From the show. Tap a time to play from there.
SPEAKER_01Hi Lakshay, welcome to the podcast.
SPEAKER_00Hey Robin, nice to be here, thanks for having me.
SPEAKER_01Fantastic, let's begin with a brief intro to yourself.
SPEAKER_00Sure. So my name is Lakshir Sharma. I'm a computer vision slash ML scientist and engineer. Presently, I'm with Instacart based out of New York City, where I work on problems related to estimated time of arrival prediction. So using AI, ML for that sort of stuff. Before that, I spent about five years with Microsoft's geospatial division, where I was using computer vision for things like finding roads and buildings and aerial imagery,
SPEAKER_00finding traffic signs, traffic lights, crosswalks, that sort of stuff and street-side imagery. Also doing sort of more traffic and mobility-oriented tasks like figuring out when traffic builds up in cities, things like that, yeah. Fascinating.
SPEAKER_01So we connected on Torchgeo. I'm very interested to learn a bit more about your research. Do you mind giving us some intro to that?
SPEAKER_00Absolutely. So my areas of interest are broadly, I think, things that I am very passionate about. Those include self-supervision and computer vision, and more specifically self-supervision as it's applied to geospatial pre-training. I've also worked a little bit at the intersection of vision and language, so pre-training, Very, very classical contrastive style pre-training for vision language alignment, that sort of stuff.
And self-supervised learning and pre-training has become very significant recently
SPEAKER_01because of the advent of foundational models. But for those that are not familiar with self-supervised learning, can you give a small overview?
SPEAKER_00Yes, absolutely. So generally in computer vision and machine learning, there are tasks that we care about. So a very common one is semantic segmentation, right? Where there's a certain predefined set of classes we're trying to classify every pixel into. However, very often these tasks, because they fall in this paradigm of supervised learning, They require labels which can be a very expensive and time-consuming undertaking. So self-supervised learning is this idea where we train these
models on some kind
SPEAKER_00of auxiliary task first And the idea there is that the labels or the supervision for the auxiliary task is it's free because it's some inherent property of the data distribution itself or of the images that we're dealing with. And so the idea there is that if you train if you train on an auxiliary task which is sufficiently challenging and you do it with enough data for enough number of epochs for enough time you obtain some useful
representation of the image that this model can produce and then this property these parameters of the model can then transfer better to the downstream task as
SPEAKER_00opposed to directly trying to train on the downstream task.
SPEAKER_01Mm-hmm. And how is this similar or different to the original ImageNet pre-training that
SPEAKER_00people might be familiar with? So it's similar in that both of these ideas are classified as what we would call transfer learning, where we train a model on something first and then we train it on the tasks that we actually care about. The difference here would be that ImageNet pre-training does rely on human annotated labels. So the ImageNet dataset has about 1,000 classes exactly, actually. And so this idea of transfer learning sort of began around then
when folks realized
SPEAKER_00that, okay, we can pre-train a model on ImageNet and after that do the tasks that we actually care about and then those properties, those desirable properties in the model transfer better to the downstream task. The difference with self-supervision is that It does borrow this idea of transfer learning, but the labels in the tasks that we tackle first, they don't require human annotation. So in some ways,
SPEAKER_00if you have enough images, you essentially have infinite labels with self-supervision.
SPEAKER_01Right. So more recently, as you say, we've moved to our own self-supervised approach, unlabeled data that allows you to use basically every image that you have available. What kind of approaches have people taken and how has that evolved over the last couple of years? So within vision specifically, broadly I would say there are three umbrellas of approaches.
SPEAKER_00The very first one that was probably very popular maybe about 10, 8 years before now. I'd call it predictive-style self-supervised pre-training. Okay, how about this? I'll list all of them out first, and then I'll do a deep dive into each one. So there's predictive self-supervision, there's generative self-supervision, and then finally there's contrastive self-supervision. Predictive-style self-supervision is where
where we try and predict some sort of label that is directly derived from the image.
SPEAKER_00It does not require human annotation. It's some property of the image itself. So that's predictive. The second one is generative. So that's as the name suggests, You're basically trying to reconstruct the image. So the most natural way of doing this is autoencoder style. Pre-training where there's some original image that is fed through a few neural network layers through a bottleneck, typically,
because you don't want to make the task trivially simple such that an identity
SPEAKER_00matrix can just recreate it. And then from that bottleneck, the image is then reconstructed through expanding neural network layers. So that would be an example of generative. Of course, there are other more popular ones now, like GANs, where quite a popular one for a while. And now there's more like diffusion-style generator pre-training. And finally, there's contrastive pre-training, which is by and large, I'd say, the sort of dominant paradigm at this time.
SPEAKER_00So this is where the network needs to sort of cluster or contrast semantically similar inputs together and then also push apart dissimilar inputs. So an example of this would be maybe the very first The initial set of contrastive pre-training approaches would do this sort of thing where you have the original image, you apply some sort of transformation, some sort of distortion,
SPEAKER_00some alteration to that original image, pass both of these through maybe a Siamese-style neural network, and then try to push these two views of the same image together. And anything else that is not from the same image is pushed apart. And this idea has then broadly been expanded to other things where you can take the same, an aerial image of the same area but from two different points in time and then you can sort of push them closer together using some sort of contrastive loss and then
SPEAKER_00push apart images from other areas. Right, fantastic.
SPEAKER_01So you just touched on some of the sort of remote sensing twists on the approach that'd be a nice point to dive into maybe some of the other approaches that you've seen or specifically what your research has tackled yep absolutely so as I said earlier the contrast of style pre-training that's perhaps
SPEAKER_00the dominant paradigm at this time. And a lot of the state-of-the-art models that we see use this idea. So the Dino series of models from Meta, which that same idea that's been borrowed by some geospatial machine learning teams, that's a combination of using a contrastive style learning loss, but also they combine this idea of self-distillation where
there's a teacher model and then there's often a smaller student model and you're trying to sort of
SPEAKER_00contrast views from the teacher model and the student model together. The thing though with contrastive style pre-training is that While it's a very elegant approach, a very elegant mathematical formulation, it does require a vast amount of data. So you probably need hundreds of thousands, maybe even millions of images to make it work pretty well. So that's with contrastive style pre-training. With more traditional predictive style pre-training,
some examples of that that were very popular a few years ago actually were where you could drop the color channels from an image and then you have a grayscale
SPEAKER_00image and then you're trying to predict the color. So you're trying to predict some inherent property of the image. So if you see there's grass and trees, but they're grayscale, you could naturally infer that they're green and then you hope that the model can predict this from the image. Some other popular approaches were randomly rotating an image. So maybe there's a 90 degree rotation to the image and the model needs to classify what the angle of rotation is. This could be a classification task. You can just have four predefined rotation angles or you can
make it a regression
SPEAKER_00task where it's trying to predict a specific number. The reason a lot of these approaches have actually been applied to geospatial data, but Very often these approaches, they sometimes just don't make sense for geospatial data because of the fact that geospatial images have rotational invariants. So you could rotate a picture of a dog and you can tell that, okay, this dog is upside down. But if you have an aerial image, you could rotate it and it still makes sense. So sometimes these approaches just don't transfer well to the
geospatial domain.
SPEAKER_00Fantastic. You touched on, I guess, some of the challenges in terms of the data volumes, etc.
SPEAKER_01And I guess that would create a barrier to use, right? So efficiency is a big part of the equation in recent years?
SPEAKER_00Yeah, yeah, absolutely. So what we're seeing with the most successful models is the fact that there's a vast amount of training data and therefore a vast amount of compute that is required in this pre-training exercise to then get sort of a general purpose model that can transfer well to a multitude of geospatial remote sensing tasks. There has been less of a focus on sort of efficient pre-training and more targeted
pre-training and that's where my co-author Alex and I focused our energies on was
SPEAKER_00trying to figure out Can we pre-train efficiently and do it in a way that works well for the very specific downstream task that we care about? Right. So the downstream task being classification? In our case, specifically, it was semantic segmentation, actually. So we, because pixel-level classification, you know, to this day remains such a central, maybe one of the most common things that you typically do in
remote sensing. So some examples would be land cover classification where you're trying to figure out if some land area belongs to some predefined set of classes like water
SPEAKER_00bodies or forest cover or things like that, buildings, roads. Chain detection, of course, is also a very popular task where given two views of the same area, you're trying to figure out if some land pixel in that image had undergone some change or not. And so therefore we picked semantic segmentation, A, because it's a very common task in remote sensing, and B, because it's also very expensive to do pixel-wise enabling.
SPEAKER_01Yeah, probably the most common task, at least medium resolution, imagery. As you say, annotation at the pixel level is incredibly time-consuming and therefore expensive. You have set up your objectives in terms of the downstream task. You said you want to be more efficient. How did you go about tackling that? So we tried to design a pre-training task that was sort of more closer in the
SPEAKER_00mechanics of how it operates with our target task, which was semantic segmentation in this case. So I can speak to the specifics of the idea, which was actually fairly simple. So we reasoned that given an image, if there's a sub-image within that image, or I try not to use the word patch because it's such an overloaded term now with VIT and such. So I'm going to say sub-image, but It's a patch, really, is what it is. So given some image and a sub-image within it that you can sort
of copy over, if a network is provided both of these and then asked to localize within the full
SPEAKER_00image where this patch was pulled out of, important distinction here is that we're not cropping this patch or the sub-image out. We're leaving it untouched in the original image, but then we're just making a copy of it. so to speak and then if both of these are passed into a network and then this can be treated as a semantic segmentation task right because the network is then tasked with doing a binary pixel-wise classification where it can say that this specific pixel within the original image belongs to the extracted
sub-image or it's a
SPEAKER_00background pixel that does not belong to the original sub-image. So yeah, so the idea is pretty simple. It's just localizing within a whole image where the sub-image came from as a pixel-wise classification task.
SPEAKER_01Yeah, that sounds very intuitive. And in terms of, I guess, how you set that up, what kind of distances are kind of reasonable? Is there a gradient that you have to apply in terms of starting with small distances moving to larger distances,
SPEAKER_00etc.? ? I think so. There were definitely a lot of hyperparameters that we had to play around with to sort of make this work because this could be a trivial task if it's just a pixel-wise matching exercise effectively, right? some of the things we had to do is we had to apply image augmentations independently to the sub-image and the original image so you can think of this as once this sub-image has been copied over has been extracted you could rotate it you
SPEAKER_00can add some Gaussian noise you can jitter the color you can do all manner of things to it so that it doesn't remain a trivially simple task for the network. We also found that the size of the sub-image matters a lot. If it's too small, it becomes a really difficult task. task and the network doesn't really truly learn useful semantics from the pre-training. If it's too big of an image, then it becomes too easy. Because this is just a binary pixel-wise classification,
SPEAKER_00if the sub-image is say 80% of the area of the original image, you can randomly pick a pixel and classify it to be a positive label and you have an 80% chance then of being right. So there's that like balance. I think you mentioned something about the gradient. I think we didn't focus, we didn't end up having to focus a lot on things like vanishing gradients, exploding gradients, but we did find that
the loss function can affect the pre-trading performance and therefore the
SPEAKER_00downstream performance. So because this is a... Because the pixel is kind of a smaller... Sorry, I don't mean the pixel. I mean the sub-image is a minority of pixels in the original image. They're this class imbalance. And so there we rely quite heavily on very traditional... very well studied loss functions like the focal loss is a good one for this situation where you have an imbalanced set of pixels where
pixels that are harder to classify or are in a minority are penalized harder in the loss function and therefore the gradients from those tends to be stronger than easier to classify
SPEAKER_00pixels.
SPEAKER_01Makes sense. And in terms of the evaluation, what kind of evaluation did you perform and how did it compare to I guess the alternatives?
SPEAKER_00So since this was a pixel-wise classification task, we went with a mean intersection over union, which is generally I think a good intuitive way to evaluate pixel-wide classification. The alternative would be you could do something very simple like class-wide accuracy, but that doesn't take into account the fact that you have this sort of uneven distribution of classes, right? So the positive labels are always going to be in a minority
because we make this
SPEAKER_00task sufficiently hard. So MIOU is the evaluation metric that we went with for this pixel-wise classification task. And I mean, this was not our brainwave. We see that this is very common in semantic segmentation. Fantastic.
SPEAKER_01So you've pre-trained and you want to demonstrate, I think, superior performance and downstream tasks. How did it perform then?
SPEAKER_00So we had a few different training setups that we attempted. So what are the things we can vary here? We can attempt different network architectures. We can try a few different data sets. We can vary the downstream data sets so that it's a different data set, a different distribution from the upstream data set. And so these were some of the things we tried. I can walk over them. one by one. So we attempted two architectures.
SPEAKER_00One was a VIT style, a dyno V2 model specifically, which is a vision transformer, which is sort of the more popular architecture now because it tends to model long-read dependencies better than traditional continents. Well, I say traditional, but they're only about 10 or 15 years old at this point. And then we also tried CNNs, a Resonate 50-style backbone, because those are still very effective.
SPEAKER_00As we know, they're less parameter-heavy very often than transformers, more efficient because, as we know, transformers, the The runtime complexity, it scales as a quadratic function of the number of patches that we divide the image into. So we saw value in trying both of these architectures. We pre-trained one of our first, our initial set of experiments, we pre-trained on the,
SPEAKER_00let me see, I'm forgetting the dataset name very quickly, let me look it up. We tried a few different datasets and okay, we started with Land Cover AI actually, so we pre-trained on the land cover AI dataset, which is aerial imagery from, I think, somewhere in Poland, if I remember correctly. And there are, I think, five, maybe seven distinct land cover classes. So in the pre-training, of course, we don't need the labels from the dataset. We don't need these land cover classes.
SPEAKER_00We just do this localization sub-image overlap pre-training task. And so we pre-trained for about 150 epochs with some of those augmentations and some of those things that I was describing earlier. What we found was that the augmentations do matter. So doing something like jittering the colors of the image, that makes the task quite hard and therefore it's more difficult.
SPEAKER_00for the model to learn from this. And the training, if we see the validation loss, it's quite unstable in the pre-training. We found that just doing simple flipping of the image, flipping and horizontal vertical flips and mirror images of either the patch or the And remember, these are augmented very independently to make the task challenging. So doing that did help the pre-training quite a bit. And so once we did this pre-training and we picked our
best-performing pre-training
SPEAKER_00model, then we fine-tuned on the same data set on LandCover AI downstream. And we did find that our model actually not only had better performance than a model that used pre-trained weights from, say, ImageNet or from the LVDE dataset, which is what Dyno is pre-trained on. So we had better performance by about one to three percentage points, which
SPEAKER_00maybe isn't a huge difference, but I think the biggest difference we saw is in the convergence speed. So our model tends to converge significantly faster than the Dyno V2 pre-trained model, which was pre-trained on LVD or say ImageNet ResNet 50. So this was one set of experiments where we had the same data set downstream. And then the question, the natural question we asked was that, hey, we don't want to because this whole paper was about being efficient. We don't want to pre-train every time on a new data set,
SPEAKER_00given that we want to do the downstream task on some other data set. So therefore, the next thing we attempted was we use the same weights as the LandCover AI dataset pre-trained model. And then we varied the downstream dataset. So we tried two different datasets. We tried the Love DA and DeepClobe datasets, both of which also are semantic segmentation. These are aerial images and there are semantic segmentation labels for land cover classification available for both of
these datasets. And we were able to reproduce the same result where we had a bit of a bump in
SPEAKER_00performance with pre-training versus without. But the big win here was that the convergence was significantly faster across all these experiments. Even when we changed the downstream distribution, we pre-trained on land cover AI, but then the fine-tuning happened on Love DA or on Deep Lobe. so I guess the takeaway there is you pre-train once you perform that pre-training for all different downstream tasks and then the downstream fine-tuning is just much
SPEAKER_01faster therefore more practical
SPEAKER_00Right, right. The one caveat I'd add here is that when you say downstream task, we tried this only on semantic segmentation, but we did change the dataset. It is a natural question, though. What if this was not a semantic segmentation task at all? What if this was, say, classification? What if it was object detection? That is not something we were able to try in the setup experiments, but we did prove that doing the same task, i.e. semantic segmentation, but on a different dataset does transfer well.
and is this something that you see other teams taking this sort of approach you know varying the pre-training task and if so what other kind of approaches do you see being experimented with I think within geospatial pre-training specifically What we're seeing is that there's what I think I personally have seen as a trend towards more large-scale pre-training with approaches that
generalize well to a
SPEAKER_00number of different tasks. And so, which is, I mean, it's a very worthy endeavor. I'm not taking that away. from those pre-training approaches. But of course, that comes at the cost of you need a lot of data to pre-train with. And so we actually did do some experiments where we try to measure the efficiency of our pre-training with some of the other well-known geospatial pre-training tasks, pre-training models. So one of the experiments that we tried was we had our pre-trained model,
we had a ResNet-50 pre-trained model that we pre-trained on our task and then We took some of these other weights that are openly available in TorGio, actually.
SPEAKER_00So this is a good plug for TorGio. If you want to do some experimentation and you need weights from Seasonal Contrastive or Satvis Pre-Train or a lot of the models you can think of, TorGio makes it super easy to load those weights. So the experiment that we tried specifically here was we pre-train using our pre-training task and then we fine-tune downstream on, I'm forgetting the specific dataset we use, but if I'm remembering correctly, it was DeepGlobe.
SPEAKER_00And then we have some performance numbers for our pre-trained weights. Following that, we then use the same architecture, ResNet50, but we preload weights from a few different well-known pre-trained models. So these included Satellis pre-trained, GASL, which stands for Geography Aware Cell Supervised Learning, SECO, which stands for Seasonal Contrastive. We also tried ImageNet Retrained Rates and Random
Initialization at a baseline. So the goal here was to not just benchmark performance and convergence speed on
SPEAKER_00this downstream deep-globe task or deep-globe segmentation task, but also to then compare what is the size of the pre-training dataset that we're using. So what we found was that we did better as well as all of the other models. There was, I think, SSL for EOS 12, which was slightly ahead of ours in terms of the MIOU performance. But we were able to beat all of the other models, all of the other pre-training. And we actually converged faster than all of these other
pre-trained weights that we tried. And the big takeaway here is that the reason this result is so significant is because we... use orders of magnitude, fewer images, fewer spatial pixels in our pre-training. So we only had about 7,000 pre-training images from LandCover AI and I think about
SPEAKER_00300 validation images, whereas all of the other models they use anywhere between a million to three million images, which is the case of SSL for EOS 12. So yeah, we had models that used maybe over 100x the number of images, over 100x the number of spatial pixels as we did, and we are as good, if not better, than those models. One other important finding that I actually forgot to mention
in our initial set of
SPEAKER_00experiments with pre-training on land cover AI and then also fine-tuning on land cover AI is I mentioned that gap in performance and convergence. If the amount of label data is reduced, that gap increases quite drastically. So as an example, I'm going back to my paper. So when 100% of the downstream label data are used, there's maybe about a percentage points worth of difference in performance. But if you use 50% of the label data,
that gap increases to somewhere between 3% to 5%.
SPEAKER_00If you use a quarter, 25% of the label data, that gap in performance and convergence actually keeps increasing. So that was another important finding we had. And there's lots of kind of contemporary criticism about foundational models and
SPEAKER_01pre-training just being very kind of resource-intensive. This sounds like a very promising alternative direction for those kind of scenarios where you're constrained on compute or available data. Maybe you'd be working on some kind of niche platform, say, or you have a limited data set in total. This sounds like a really promising direction.
SPEAKER_00Yeah, absolutely. I mean, of course, the most common and the most, I think, practical way of doing these things is try to find a model that has been pre-trained on a vast amount of data that is known to generalize well and then fine-tune it on whatever it is that you care about. But what if you just have a very niche task and you just want to do some very specific pre-training targeted towards your specific task, towards your specific data set? That's, I think, really where our approach brings value.
One other thing that we didn't actually try because we were trying to make all this work on one single T4 GPU is you could actually pre-train on a lot of data.
SPEAKER_00We only pre-train on about 7,000 to 10,000 images, but what if you could pre-train on a million images, right? What if you could do the sub-image overlap task on a million images and then compare it and then see how the performance downstream varies? That is something that I'd be very curious to see.
SPEAKER_01I'll throw that out there for the next paper. Well, thanks for covering that topic. Really interesting and, like I say, slightly taking it in a different direction from what a lot of what's happening in the field is taking. What's the name of the paper and where is it published?
SPEAKER_00So this paper, it's titled Sub-Image Overlap Prediction Task-Aligned Self-Supervised Pre-Training for Semantic Segmentation in Remote Sensing Imagery. Very wordy, but if you just search for sub-image overlap prediction, it should show up. This was published at the Computer Vision for Earth Observation Workshop in March of 2026, March of this year. And this was a part of the WACV conference, which I think stands for Winter Conference on the Application
of Computer Vision.
SPEAKER_00Happened in Tucson, Arizona. Happened in Tucson, Arizona this year. It's in Orlando next year. One of my favorite conferences. Highly recommend if you're considering attending a conference.
SPEAKER_01Mm-hmm.
SPEAKER_00and hit the water parks afterwards, I guess. Exactly, yeah. I think that's definitely appealing. Fantastic. All right, so if people want to follow along your updates, is LinkedIn the best platform? Yes, yeah. So I can be found on LinkedIn, Lakshay Sharma, my full name. You may find other people with the same name, but if you suffix that with Instacart or Microsoft, I think that should be my profile that shows up.
SPEAKER_01Fantastic. I'll drop by the details in the show notes. And once again, thank you for joining me and all the dust for the future.
SPEAKER_00Awesome. Thanks so much, Robin. Thank you.
In this episode I caught up with Shravya Shetty, who leads research and engineering for Earth AI at Google Research, to discuss how AI agents are changing geospatial analysis and predictive modelling. We begin by...
In this episode I caught up with Justin Guthrie to discuss Infra-Bench CLS, a global benchmark testing seven foundation model backbones on critical infrastructure classification using satellite imagery. We explore how...
In this episode I sat down with Petya Kangalova and Kshitij Sharma from the Humanitarian OpenStreetMap Team (HOT) to discuss how GeoAI and community-driven mapping are being combined to support disaster response and...
In this episode I caught up with Ash Alex and Jimin Seo, co-founders of Hyades, to discuss BlazerOps, an agentic platform for building machine-learning models and pipelines for geospatial data. They explain how the...
In this episode I sat down with Joe Redmond from the Allen Institute for AI (AI2) to discuss OlmoEarth, AI2's open geospatial foundation model for Earth observation. Joe explains how the project emerged from AI2's...