CARL: Camera-Agnostic Representation Learning for Spectral Image Analysis

Alexander Baumann, Leonardo Ayala, Silvia Seidlitz, Jan Sellner, Alexander Studier-Fischer +3 more
4/27/2025
4 citations
cs.CVcs.AIcs.LG
transformer-attention

Official code: IMSY-DKFZ/CARL (5 stars, Python, Apache-2.0, last commit 2026-02-23).

Abstract

Spectral imaging offers promising applications across diverse domains, including medicine and urban scene understanding, and is already established as a critical modality in remote sensing. However, variability in channel dimensionality and captured wavelengths among spectral cameras impede the development of AI-driven methodologies, leading to camera-specific models with limited generalizability and inadequate cross-camera applicability.

Show full abstract

To address this bottleneck, we introduce CARL, a model for Camera-Agnostic Representation Learning across RGB, multispectral, and hyperspectral imaging modalities. To enable the conversion of a spectral image with any channel dimensionality to a camera-agnostic representation, we introduce a novel spectral encoder, featuring a self-attention-cross-attention mechanism, to distill salient spectral information into learned spectral representations. Spatio-spectral pre-training is achieved with a novel feature-based self-supervision strategy tailored to CARL. Large-scale experiments across the domains of medical imaging, autonomous driving, and satellite imaging demonstrate our model's unique robustness to spectral heterogeneity, outperforming on datasets with simulated and real-world cross-camera spectral variations. The scalability and versatility of the proposed approach position our model as a backbone for future spectral foundation models. Code and model weights are publicly available at https://github.com/IMSY-DKFZ/CARL.

View on arXivView PDF

Code Implementations(1)

IMSY-DKFZ/CARLOfficial100%
Apache-2.0

Camera-Agnostic Representation Learning for Spectral Image Analysis

50Python, CudaFeb 17, 20269 months agoApache-2.0

Similar Papers

Cite this paper

@article{baumann2025carl,
  title  = {CARL: Camera-Agnostic Representation Learning for Spectral Image Analysis},
  author = {Alexander Baumann and Leonardo Ayala and Silvia Seidlitz and Jan Sellner and Alexander Studier-Fischer and Berkin Özdemir and Lena Maier-Hein and Slobodan Ilic},
  year   = {2025},
  eprint = {2504.19223},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2504.19223v4}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2504.19223.svg)](https://codeofpaper.com/paper/2504.19223)

Discussion