Learning efficient representations for generalizable segmentation in data-limited scenarios