PhD defense, Rickard Brüel Gabrielsson: Feature Learning for Foundation Models Across Tasks, Modalities, and Scales