Biologically Informed Representation Learning for Robust Cross-Center Generalization of MALDI-TOF Mass Spectrometry

arXiv cs.LG 论文

摘要

Introduces DALMA, a probabilistic representation learning framework that uses biological supervision to improve cross-center generalization of MALDI-TOF mass spectrometry models for clinical microbiology tasks like microbial identification and antimicrobial resistance prediction.

arXiv:2608.08182v1 Announce Type: new Abstract: Machine learning models for MALDI-TOF mass spectrometry have shown considerable promise for clinical microbiology tasks such as microbial identification and antimicrobial resistance prediction. However, their deployment across institutions remains limited by domain shift, as acquisition-specific variability often leads models to capture technical artifacts rather than transferable biological information. Existing representation learning approaches primarily address this problem through statistical domain alignment while largely overlooking the biological supervision naturally available in microbiology datasets. We introduce DALMA, a probabilistic representation learning framework that jointly models acquisition-specific variability and biological supervision to learn biologically structured latent representations. By combining domain-specific reconstruction with biologically guided representation learning, DALMA learns transferable representations that generalize across heterogeneous clinical centers without requiring institution-specific components at inference, enabling zero-shot deployment on previously unseen sites. We evaluate DALMA on a multi-center benchmark comprising seven datasets from three countries. DALMA consistently achieves state-of-the-art zero-shot microbial identification across two held-out clinical centers, while the learned representations also transfer effectively to antimicrobial resistance prediction. Furthermore, latent-space novelty estimation enables reliable selective prediction under previously unseen domain shifts. These results demonstrate that biologically informed representation learning provides an effective strategy for robust and transferable ML in clinical microbiology.
查看原文
查看缓存全文

缓存时间: 2026/08/11 08:10

# Biologically Informed Representation Learning for Robust Cross-Center Generalization of MALDI-TOF Mass Spectrometry
Source: [https://arxiv.org/html/2608.08182](https://arxiv.org/html/2608.08182)
Carlos Sevilla\-Salcedo1Belén Rodríguez\-Sánchez2,3Vanessa Gómez\-Verdejo1,2

\(1Department of Signal Theory and Communications, Universidad Carlos III de Madrid, Leganés, 28911, Spain 2Instituto de Investigación Sanitaria Gregorio Marañón \(IiSGM\), Madrid, 28009 Spain 3Clinical Microbiology and Infectious Diseases Department at Hospital General Universitario Gregorio Marañón, Madrid, 28007, Spain\)

###### Abstract

Machine learning models for MALDI\-TOF mass spectrometry have shown considerable promise for clinical microbiology tasks such as microbial identification and antimicrobial resistance prediction\. However, their deployment across institutions remains limited by domain shift, as acquisition\-specific variability often leads models to capture technical artifacts rather than transferable biological information\. Existing representation learning approaches primarily address this problem through statistical domain alignment while largely overlooking the biological supervision naturally available in microbiology datasets\.

We introduce DALMA, a probabilistic representation learning framework that jointly models acquisition\-specific variability and biological supervision to learn biologically structured latent representations\. By combining domain\-specific reconstruction with biologically guided representation learning, DALMA learns transferable representations that generalize across heterogeneous clinical centers without requiring institution\-specific components at inference, enabling zero\-shot deployment on previously unseen sites\.

We evaluate DALMA on a multi\-center benchmark comprising seven datasets from three countries\. DALMA consistently achieves state\-of\-the\-art zero\-shot microbial identification across two held\-out clinical centers, while the learned representations also transfer effectively to antimicrobial resistance prediction\. Furthermore, latent\-space novelty estimation enables reliable selective prediction under previously unseen domain shifts\. These results demonstrate that biologically informed representation learning provides an effective strategy for robust and transferable ML in clinical microbiology\.

Keywords—Clinical microbiology, MALDI\-TOF mass spectrometry, Microbial identification, Antimicrobial resistance, Domain shift, Representation learning, Biological supervision\.

## 1Introduction

Precise and timely identification of microorganisms is fundamental to clinical microbiology, as it directly guides antimicrobial treatment decisions and shapes infection control strategies\[[21](https://arxiv.org/html/2608.08182#bib.bib2)\]\. Delays in species characterisation often force clinicians to rely on broad\-spectrum treatments, increasing patient risk and promoting the emergence and spread of antimicrobial resistance \(AMR\)\[[19](https://arxiv.org/html/2608.08182#bib.bib3)\]\. Consequently, technologies capable of providing reliable microbial profiling within clinically relevant timeframes are essential to improve patient care\.

Matrix\-Assisted Laser Desorption/Ionisation Time\-of\-Flight Mass Spectrometry \(MALDI\-TOF MS\) has transformed this process into fast and low\-cost species identification directly from microbial colonies\[[20](https://arxiv.org/html/2608.08182#bib.bib4),[12](https://arxiv.org/html/2608.08182#bib.bib5),[4](https://arxiv.org/html/2608.08182#bib.bib6)\]\. The technique generates a proteomic fingerprint that reflects the abundance of highly expressed proteins across the mass\-to\-charge \(m/zm/z\) spectrum and has become the standard identification platform in clinical microbiology laboratories worldwide\. Beyond species identification, recent studies have demonstrated that the same spectra can support more advanced predictive tasks, including AMR prediction, fine\-grained taxonomic characterisation, and other clinically relevant downstream applications, opening new possibilities for data\-driven clinical microbiology\[[16](https://arxiv.org/html/2608.08182#bib.bib7),[1](https://arxiv.org/html/2608.08182#bib.bib8),[5](https://arxiv.org/html/2608.08182#bib.bib9)\]\.

The success of Machine Learning \(ML\) on MALDI\-TOF MS data has further expanded these possibilities\. Classical approaches such as Support Vector Machines and Random Forests, as well as more recent deep learning models, have achieved competitive performance across a variety of microbiological tasks\[[20](https://arxiv.org/html/2608.08182#bib.bib4),[12](https://arxiv.org/html/2608.08182#bib.bib5),[16](https://arxiv.org/html/2608.08182#bib.bib7)\]\. However, despite these promising results, a critical obstacle remains largely unresolved: models trained on data from one institution often experience substantial performance degradation when deployed at another\.

This limitation stems from*domain shift*, caused by systematic non\-biological variation from differing data acquisition conditions\. In MALDI\-TOF MS, spectra are influenced by the biological identity of the isolate as well as by technical and epidemiological factors associated with the acquisition site\. Differences in instrumentation, calibration procedures, sample preparation protocols, and preprocessing pipelines, together with epidemiological differences across patient populations, alter the observed spectral distribution\[[18](https://arxiv.org/html/2608.08182#bib.bib10)\]\. As a result, ML models may inadvertently learn acquisition\-specific patterns that correlate with microbial species in the training data but fail to generalise beyond the original institution\.

This phenomenon has been repeatedly documented in the literature\. Previous studies have shown substantial performance degradation when transferring models across hospitals\[[19](https://arxiv.org/html/2608.08182#bib.bib3),[13](https://arxiv.org/html/2608.08182#bib.bib11),[11](https://arxiv.org/html/2608.08182#bib.bib12)\], even between institutions using identical MALDI\-TOF MS instrumentation and acquisition protocols\[[11](https://arxiv.org/html/2608.08182#bib.bib12)\]\. More recently, Chen et al\.\[[3](https://arxiv.org/html/2608.08182#bib.bib13)\]showed that retraining models using target\-domain data remains necessary to recover competitive performance\. Together, these studies establish domain shift as one of the principal barriers to the large\-scale deployment of ML models in clinical microbiology\.

A common strategy for addressing domain shift is representation learning, where models seek latent representations that preserve biologically relevant information while suppressing acquisition\-specific variability\[[2](https://arxiv.org/html/2608.08182#bib.bib14)\]\. Existing approaches pursue this objective primarily through statistical alignment\. Variational Autoencoders \(VAEs\)\[[9](https://arxiv.org/html/2608.08182#bib.bib15)\]learn compact latent representations but provide no explicit mechanism to separate biological and technical sources of variation\. Domain adaptation methods such as Domain\-Adversarial Neural Networks \(DANN\)\[[7](https://arxiv.org/html/2608.08182#bib.bib16)\]and Correlation Alignment \(CORAL\)\[[17](https://arxiv.org/html/2608.08182#bib.bib17)\]explicitly align feature distributions across domains, while more recent large\-scale pretraining approaches, including the Maldi Transformer\[[6](https://arxiv.org/html/2608.08182#bib.bib21)\], learn reusable spectral representations from large collections of MALDI\-TOF spectra\. Despite their methodological differences, these approaches largely treat domain shift as a distribution\-matching problem\.

Unlike many domain adaptation settings, MALDI\-TOF MS datasets naturally provide reliable biological annotations that can guide representation learning\. Microbial species labels are available for every spectrum and constitute an acquisition\-invariant source of supervision, while downstream microbiological tasks such as AMR prediction provide complementary biological information\. Despite their availability, these sources of biological supervision remain largely underexploited\. This perspective extends the objective of representation learning beyond removing acquisition\-specific variability, emphasising the preservation of biologically meaningful structure despite domain heterogeneity\.

Table 1:Summary of the MALDI\-TOF MS benchmark\. For each acquisition domain, we report the country, institution, acquisition period, instrumentation, and the number of spectra available for each target species\.DatasetCountryInstitutionYearsHardwareECCEcoliEfaeciumKpnPaerSaurDRIAMS\-ASwitzerlandUniv\. Hospital Basel2015–2018Microflex LT/SH \+ Smart LS235673201751392148526994DRIAMS\-BSwitzerlandCanton Hospital Basel\-Land2018Microflex LT\-SH13983871189190528DRIAMS\-CSwitzerlandCanton Hospital Aarau2018Microflex LT\-SH19692793366357738DRIAMS\-DSwitzerlandViollier2018Microflex Smart LS437199817121513442168MARISMaSpainHospital G\. U\. Gregorio Marañón2018–2024Microflex LT/SH \+ Smart LS1534212112716185911406118059RKIGermanyRobert Koch InstituteVariousaAutoflexb46623571160228MS\-UMGGermanyUniv\. Medical Center Göttingen2020–2021Microflex LT\-SH \+ Smart1610110412115316936476708

aThe original publication reports data collected over nearly 20 years, although the exact acquisition dates are not specified\.bInstrument family inferred from acquisition metadata; the exact model is not explicitly reported\.

To investigate this hypothesis, we introduceDALMA\(DomainALignment forMALDI\-TOF MS\), a probabilistic representation learning framework that combines a shared encoder, domain\-specific decoders, a species\-conditioned latent prior, and auxiliary biological supervision to integrate complementary sources of biological information into a unified latent representation\. By explicitly disentangling biological information from acquisition\-specific variability during representation learning, DALMA learns transferable latent representations that generalize to unseen clinical centers\. Importantly, domain information is only required during training\. At inference, DALMA reduces to a single shared encoder, enabling straightforward integration into existing MALDI\-TOF MS workflows\.

The main contributions of this work are as follows:

- •We introduce DALMA, a probabilistic representation learning framework that combines domain\-specific reconstruction with biologically structured latent representations to disentangle biological and acquisition\-specific sources of variability in MALDI\-TOF spectra\.
- •We demonstrate, through a large multi\-center benchmark, that biologically informed representations substantially improve zero\-shot \(ZS\) transfer across heterogeneous clinical centers\.
- •We show that the learned representations support multiple downstream tasks, including microbial identification and transferable AMR prediction, while enabling selective prediction through latent\-space novelty estimation\.

## 2Materials

To evaluate DALMA under realistic cross\-institutional conditions, we assembled a benchmark of seven independent MALDI\-TOF MS datasets from three countries, multiple acquisition sites, and heterogeneous preprocessing pipelines\.

### 2\.1Datasets

The benchmark comprises seven acquisition domains extracted from four publicly available repositories: DRIAMS\[[19](https://arxiv.org/html/2608.08182#bib.bib3)\], MARISMa\[[15](https://arxiv.org/html/2608.08182#bib.bib23)\], RKI\[[10](https://arxiv.org/html/2608.08182#bib.bib24)\], and MS\-UMG\[[13](https://arxiv.org/html/2608.08182#bib.bib11)\]\(Table[1](https://arxiv.org/html/2608.08182#S1.T1)\)\. Together, these datasets capture variability arising from different institutions, acquisition periods, instrumentation, and preprocessing strategies\. In particular, DRIAMS contributes four independent hospital cohorts acquired under a common protocol, MARISMa extends the benchmark with data from a Spanish tertiary\-care hospital, RKI provides a curated reference collection, and MS\-UMG introduces an additional source of variability through an independent preprocessing pipeline\.

Experiments focus on six clinically relevant bacterial groups represented across all datasets:Enterobacter cloacaecomplex \(ECC\),Escherichia coli\(Ecoli\),Enterococcus faecium\(Efaecium\),Klebsiella pneumoniae\(Kpn\),Pseudomonas aeruginosa\(Paer\), andStaphylococcus aureus\(Saur\)\. Table[1](https://arxiv.org/html/2608.08182#S1.T1)summarizes the number of spectra available for each species and acquisition domain\.

For AMR, resistance annotations were available for the DRIAMS cohorts, MARISMa, and MS\-UMG\.The evaluation is restricted toKpn, the species with the most complete resistance annotations across all domains and confirmed proteomic AMR biomarkers within the MALDI\-TOF MS detection range\[[14](https://arxiv.org/html/2608.08182#bib.bib32)\]\. Species–antibiotic pairs were retained if they contained at least 10 resistant and 10 susceptible isolates in the evaluation cohort and at least 50 isolates per class across a minimum of two acquisition domains, yielding five prediction tasks for the following antibiotics: Imipenem, Meropenem, Ceftazidime, Ciprofloxacin, and Piperacillin\-Tazobactam\.

### 2\.2Preprocessing

All spectra were preprocessed using the standardized pipeline in\[[16](https://arxiv.org/html/2608.08182#bib.bib7)\], including variance stabilization, smoothing, baseline correction, intensity thresholding, trimming to 2,000–20,000m/zm/z, 3\-Da binning, and logarithmic scaling, yielding 6,000\-dimensional feature vectors\.

MS\-UMG is publicly available only in preprocessed form and therefore could not be subjected to the same pipeline, making it an additional source of variability\. Nevertheless, both preprocessing procedures produce spectra in the same 6,000\-dimensional feature space\.

## 3Methodology

### 3\.1Problem Formulation

We consider a multi\-center MALDI\-TOF MS dataset\{\(𝐱i,di,𝐲i\)\}i=1N\\\{\(\\mathbf\{x\}\_\{i\},d\_\{i\},\{\\color\[rgb\]\{0,0,0\}\\definecolor\[named\]\{pgfstrokecolor\}\{rgb\}\{0,0,0\}\\pgfsys@color@gray@stroke\{0\}\\pgfsys@color@gray@fill\{0\}\{\\mathbf\{y\}\_\{i\}\}\}\)\\\}\_\{i=1\}^\{N\}, whereNNdenotes the number of spectra\. Theii\-th spectrum𝐱i∈\[0,1\]M\\mathbf\{x\}\_\{i\}\\in\[0,1\]^\{M\}is represented byMMspectral bins after preprocessing, and is associated with an acquisition domaindi∈\{1,…,D\}d\_\{i\}\\in\\\{1,\\ldots,D\\\}\.Additionally, each spectrum is accompanied by a task\-dependent annotation𝐲i\\mathbf\{y\}\_\{i\}, corresponding either to a categorical label \(e\.g\., microbial species identity\) or a multi\-label vector \(e\.g\., a panel of AMR phenotypes\), depending on the prediction task under consideration\.Our objective is to learn a latent representation𝐳i∈ℝL\\mathbf\{z\}\_\{i\}\\in\\mathbb\{R\}^\{L\}, withL≪ML\\ll M, that captures the biologically relevant information from the spectrum while remaining robust to acquisition\-specific variability\.

To achieve robust transfer across institutions, the latent space should satisfy two complementary properties:

- •Domain Invariance: Conditioned on the biological information, latent representations should be consistent across acquisition sites\. Formally, the conditional latent representation distribution should exhibit minimal dependence on the acquisition domain: p​\(𝐳i∣yi,d=a\)≈p​\(𝐳i∣yi,d=b\),∀a,b∈\{1,…,D\}\.p\(\\mathbf\{z\}\_\{i\}\\mid y\_\{i\},d\{=\}a\)\\approx p\(\\mathbf\{z\}\_\{i\}\\mid y\_\{i\},d\{=\}b\),\\,\\forall\\,a,b\\in\\\{1,\\ldots,D\\\}\.\(1\)
- •Biological Manifold Structure: Latent representations should be organized according to biologically information rather than acquisition variability\. Depending on the available supervision, this biological structure can be imposed either through conditioned latent priors for unique labels, such as microbial species, or through auxiliary supervision for multi\-label settings, such as AMR\.

As described in next subsections,DALMA addresses these objectives by learning biologically structured latent representations while modeling acquisition\-specific variability during reconstruction\.

### 3\.2Domain Invariance

DALMA models acquisition\-specific variability through a shared probabilistic encoder and domain\-specific decoders \(Fig\.[1](https://arxiv.org/html/2608.08182#S3.F1)\)\. The shared encoder projects spectra acquired at different institutions into a common latent space, while domain\-specific decoders model acquisition\-dependent variability during reconstruction\. This design encourages acquisition\-invariant latent representations without requiring explicit domain alignment losses\.

![Refer to caption](https://arxiv.org/html/2608.08182v1/x1.png)Figure 1:Overview of DALMA during training\. A shared probabilistic encoder projects spectra from multiple acquisition domains into a common latent representation, while domain\-specific decoders reconstruct spectra using acquisition\-specific characteristics\. Biological supervision is incorporated through a species\-conditioned latent prior for microbial identification and, when a unique prior cannot be naturally defined \(e\.g\., AMR\), through an auxiliary prediction head jointly optimized during training\.To map spectra into a shared latent space, DALMA employs a shared encoder

qϕ​\(𝐳∣𝐱\)=𝒩​\(𝐳∣𝝁ϕ​\(𝐱\),diag​\(𝝈ϕ2​\(𝐱\)\)\),q\_\{\\phi\}\(\\mathbf\{z\}\\mid\\mathbf\{x\}\)=\\mathcal\{N\}\\left\(\\mathbf\{z\}\\mid\\bm\{\\mu\}\_\{\\phi\}\(\\mathbf\{x\}\),\\mathrm\{diag\}\\left\(\\bm\{\\sigma\}\_\{\\phi\}^\{2\}\(\\mathbf\{x\}\)\\right\)\\right\),\(2\)parameterized by a neural network that predicts the mean and variance of the approximate posterior for each spectrum\. Latent samples are obtained using the standard reparameterization trick:

𝐳=𝝁ϕ​\(𝐱\)\+𝝈ϕ​\(𝐱\)⊙𝜺,𝜺∼𝒩​\(𝟎,𝐈\)\.\\mathbf\{z\}=\\bm\{\\mu\}\_\{\\phi\}\(\\mathbf\{x\}\)\+\\bm\{\\sigma\}\_\{\\phi\}\(\\mathbf\{x\}\)\\odot\\bm\{\\varepsilon\},\\qquad\\bm\{\\varepsilon\}\\sim\\mathcal\{N\}\(\\mathbf\{0\},\\mathbf\{I\}\)\.\(3\)
To reconstruct spectra, DALMA employs a domain\-specific decoder for each acquisition domain,\{pθd​\(𝐱∣𝐳\)\}d=1D\\left\\\{p\_\{\\theta\_\{d\}\}\(\\mathbf\{x\}\\mid\\mathbf\{z\}\)\\right\\\}\_\{d=1\}^\{D\}, such that each decoder models the acquisition\-dependent characteristics of its corresponding domain\. Letfθd​\(𝐳\)∈\[0,1\]M\\textbf\{f\}\_\{\\theta\_\{d\}\}\(\\mathbf\{z\}\)\\in\[0,1\]^\{M\}denote the output of decoderdd, and letfθd\(m\)​\(𝐳\)f\_\{\\theta\_\{d\}\}^\{\(m\)\}\(\\mathbf\{z\}\)be itsmm\-th component\. The conditional likelihood is then modeled as

pθd​\(𝐱∣𝐳\)=∏m=1MBernoulli​\(xm∣fθd\(m\)​\(𝐳\)\),p\_\{\\theta\_\{d\}\}\(\\mathbf\{x\}\\mid\\mathbf\{z\}\)=\\prod\_\{m=1\}^\{M\}\\mathrm\{Bernoulli\}\\left\(x\_\{m\}\\mid f\_\{\\theta\_\{d\}\}^\{\(m\)\}\(\\mathbf\{z\}\)\\right\),\(4\)wherexmx\_\{m\}denotes the intensity of themm\-th spectral bin\. By delegating acquisition\-specific reconstruction to independent decoders, the shared latent representation is encouraged to capture information that is transferable across acquisition domains while leaving center\-dependent effects to the decoder associated with each domain\.

### 3\.3Biological Supervision

While the architecture described above models acquisition\-specific variability, DALMA explicitly organizes the latent space according to the available biological supervision, whose implementation depends on the downstream task\.

For microbial identification, each spectrum is associated with a single species labels∈\{1,…,S\}s\\in\\\{1,\\ldots,S\\\}\. This naturally enables defining a species\-conditioned latent prior, where each species is represented by its own learnable Gaussian distribution,

p​\(𝐳∣s\)=𝒩​\(𝐳∣𝝁s,diag​\(𝝈s2\)\),p\(\\mathbf\{z\}\\mid s\)=\\mathcal\{N\}\\left\(\\mathbf\{z\}\\mid\\bm\{\\mu\}\_\{s\},\\mathrm\{diag\}\(\\bm\{\\sigma\}\_\{s\}^\{2\}\)\\right\),\(5\)where𝝁s,𝝈s2∈ℝL\\bm\{\\mu\}\_\{s\},\\bm\{\\sigma\}\_\{s\}^\{2\}\\in\\mathbb\{R\}^\{L\}are learnable species\-specific parameters\. Instead of using a single isotropic Gaussian prior, DALMA computes the KL divergence with respect to the Gaussian associated with the ground\-truth species, encouraging spectra from the same microorganism to cluster around a shared latent distribution across acquisition domains\.

The resulting objective for microbial identification is therefore given by the modified Evidence Lower Bound \(ELBO\),

ℒDALMA=𝔼qϕ​\(𝐳\|𝐱\)\[logpθd\(𝐱\|𝐳\)\]−KL\(qϕ\(𝐳\|𝐱\)∥p\(𝐳\|s\)\),\\mathcal\{L\}\_\{\\mathrm\{DALMA\}\}=\\mathbb\{E\}\_\{q\_\{\\phi\}\(\\mathbf\{z\}\|\\mathbf\{x\}\)\}\\left\[\\log p\_\{\\theta\_\{d\}\}\(\\mathbf\{x\}\|\\mathbf\{z\}\)\\right\]\-\\mathrm\{KL\}\\left\(q\_\{\\phi\}\(\\mathbf\{z\}\|\\mathbf\{x\}\)\\,\\\|\\,p\(\\mathbf\{z\}\|s\)\\right\),\(6\)where the KL divergence is computed with respect to the species\-conditioned prior\.

AMR presents a different supervision setting, where each isolate is associated with multiple resistance labels rather than a single biological label\. Consequently, a unique latent prior cannot be naturally defined\. Instead, DALMA incorporates this biological information through an auxiliary prediction head that guides the latent representation during training\. This auxiliary head is jointly optimized using a weighted binary cross\-entropy loss computed only over samples with available AMR annotations\. The overall training objective becomes

ℒtotal=ℒDALMA−λAMR​ℒAMR,\\mathcal\{L\}\_\{\\mathrm\{total\}\}=\\mathcal\{L\}\_\{\\mathrm\{DALMA\}\}\-\\lambda\_\{\\mathrm\{AMR\}\}\\mathcal\{L\}\_\{\\mathrm\{AMR\}\},\(7\)
whereℒAMR\\mathcal\{L\}\_\{\\mathrm\{AMR\}\}denotes the weighted binary cross\-entropy loss andλAMR\\lambda\_\{\\mathrm\{AMR\}\}controls the contribution of the auxiliary supervision\. For microbial identification experiments,λAMR=0\\lambda\_\{\\mathrm\{AMR\}\}=0\.

### 3\.4Downstream Representation

![Refer to caption](https://arxiv.org/html/2608.08182v1/x2.png)Figure 2:Overview of DALMA during inference\. After training, only the shared encoder is retained to generate transferable latent representations from unseen spectra\. These representations are subsequently used for three downstream tasks: microbial identification using a linear classifier, AMR prediction through the trained auxiliary prediction head, and OOD detection using a GMM fitted to the latent representations of the source domains\.After training, the goal of DALMA shifts from spectrum reconstruction to representation extraction\. Accordingly, only the shared encoder is retained, while the domain\-specific decoders are discarded \(Fig\.[2](https://arxiv.org/html/2608.08182#S3.F2)\)\. Consequently, every spectrum, independently of its acquisition center, is mapped into the common biologically structured latent space through the same encoder\.

Rather than sampling from the approximate posterior, downstream tasks use the posterior mean,

𝐳∗=𝝁ϕ​\(𝐱\),\\mathbf\{z\}^\{\*\}=\\bm\{\\mu\}\_\{\\phi\}\(\\mathbf\{x\}\),\(8\)which yields a deterministic spectrum representationthat preservesthe biological organization learned during training\.

These latent representations constitute the input to the downstream analyses considered in this work\. Depending on the target application, different lightweight models are built on top of the frozen representation\. For microbial identification, a linear classifier\(linear probe\)is trained using the latent embeddings obtained from the source domains\. For AMR prediction, the auxiliary prediction head learned during training is directly used for inference\. Finally, for out\-of\-distribution \(OOD\) detection, a Gaussian Mixture Model \(GMM\) is fitted to the latent representations of the source training data, allowing the likelihood of unseen samples to be used as a confidence measure\.

Therefore, DALMA can be viewed as a transferable representation learning framework in which spectrum reconstruction is only used during training to learn biologically structured latent embeddings, while downstream analyses rely exclusively on the frozen encoder\.

## 4Experimental Setup

### 4\.1Source and Target Domains

All experiments are designed to evaluate the ability of learned representations to generalize across acquisition domains\. Hence, we use a multi\-source OOD protocol in which the downstream classifier described in Section[3\.4](https://arxiv.org/html/2608.08182#S3.SS4)is trained and validated exclusively on spectra from the source domains \(DRIAMS\-A, DRIAMS\-B, DRIAMS\-C, MARISMa, and RKI\) and evaluated directly on the held\-out target domains \(DRIAMS\-D and MS\-UMG\) without any adaptation\.

The two target domains were selected to represent different degrees of distribution shift\. DRIAMS\-D \(Viollier AG, Switzerland\) is moderately shifted: although it belongs to the same collection as several source domains, Viollier operates as a diagnostic service provider receiving samples from private practices and hospitals across Switzerland, and spectra are acquired using the Bruker Smart LS platform rather than the Microflex LT\-SH systems used at the other DRIAMS sites\. These differences were already observed in the original study\[[19](https://arxiv.org/html/2608.08182#bib.bib3)\], where DRIAMS\-D yielded smaller cross\-site performance gains than the remaining domains\.

MS\-UMG is more challenging, differing simultaneously in instrumentation, geography, acquisition period, and preprocessing pipeline\[[13](https://arxiv.org/html/2608.08182#bib.bib11)\], making it a particularly demanding benchmark for evaluating the robustness of learned representations under severe domain shift\.

For each source domain, spectra are partitioned into training, validation, and test subsets using stratified sampling to preserve the species distribution\. Unless otherwise specified, 80% of the spectra are used for training, 10% for validation, and 10% as source\-domain test data\. The validation split is used exclusively for model selection and early stopping\. The held\-out target domains, DRIAMS\-D and MS\-UMG, are never used during training or validation\.

### 4\.2Baseline Methods

To assess DALMA’s effectiveness, we first include a fully supervised MLP trained directly on the spectra, without an intermediate latent representation\. This baseline tests whether domain shift can be mitigated by a sufficiently large classifier on the original feature space, or if explicit representation learning is required\.

We then compare DALMA against representative approaches spanning four different strategies for handling domain shift in MALDI\-TOF MS: unsupervised representation learning, adversarial domain adaptation, distribution alignment, and large\-scale pretraining\.

- •Standard VAE\[[9](https://arxiv.org/html/2608.08182#bib.bib15)\]: A variational autoencoder trained with a standard isotropic Gaussian prior, used as a baseline to test whether latent representation learning alone can mitigate domain shift, without explicit domain alignment or biological structuring\.
- •DANN\(Domain\-Adversarial Neural Network\)\[[7](https://arxiv.org/html/2608.08182#bib.bib16)\]: A domain adaptation approach that encourages domain\-invariant representations through adversarial training\. A domain classifier is trained jointly with the encoder using a gradient reversal layer, forcing the learned representation to remain predictive of the task while minimizing domain\-specific information\.
- •MultiVAE\-CORAL: A domain\-alignment baseline that extends CORAL\[[17](https://arxiv.org/html/2608.08182#bib.bib17)\]to the multi\-domain setting by minimizing the Frobenius distance between covariance matrices of all source\-domain pairs in the latent space, using the same multi\-decoder VAE backbone as DALMA\.
- •Maldi Transformer\[[6](https://arxiv.org/html/2608.08182#bib.bib21)\]: A Transformer\-based representation learning model for MALDI\-TOF spectra that operates on peak\-selected spectra and models them as a sequence of informative peaks\. We evaluate the pretrained XL variant to assess whether large\-scale pretraining improves cross\-domain generalization\.

Whenever applicable, baseline models were configured to use latent spaces of the same dimensionality as DALMA to ensure a fair comparison\. Detailed architectural specifications and hyperparameter settings for all baselines are provided in the Appendix[A](https://arxiv.org/html/2608.08182#A1)\.

### 4\.3Experimental Protocols

#### 4\.3\.1Domain Similarity Analysis

To quantify the magnitude of the domain shift between acquisition centers, we compare the similarity between domains both in the original spectral space and in the latent representation learned by DALMA, computed on held\-out test spectra from the source domains and all available spectra from the target domains\. This analysis is intended solely to characterize how the learned representation modifies the geometric relationships between acquisition domains, independently of the downstream classification task\.

For two sets of spectra,XXandYY, we compute their average cosine similarity as

sim​\(X,Y\)=1\|X\|​\|Y\|​∑𝐱∈X∑𝐲∈Y𝐱⊤​𝐲‖𝐱‖​‖𝐲‖\.\\mathrm\{sim\}\(X,Y\)=\\frac\{1\}\{\|X\|\|Y\|\}\\sum\_\{\\mathbf\{x\}\\in X\}\\sum\_\{\\mathbf\{y\}\\in Y\}\\frac\{\\mathbf\{x\}^\{\\top\}\\mathbf\{y\}\}\{\\\|\\mathbf\{x\}\\\|\\\|\\mathbf\{y\}\\\|\}\.\(9\)To compare acquisition centers, similarities are computed independently for each microbial species and then averaged across species, ensuring that the analysis is not biased by differences in class prevalence between datasets\. LetCi​jC\_\{ij\}denote the resulting average similarity between domainsiiandjj\. Since the original spectral space and the DALMA latent space have different dimensionalities and similarity scales, and to ensure a fair comparison, these values are normalized with respect to the within\-domain similarities of the corresponding centers,

Ri​j=Ci​jCi​i​Cj​j,R\_\{ij\}=\\frac\{C\_\{ij\}\}\{\\sqrt\{C\_\{ii\}C\_\{jj\}\}\},\(10\)whereRi​i=1R\_\{ii\}=1by construction and off\-diagonal values closer to one indicate greater similarity between acquisition domains\.

#### 4\.3\.2Species\-Conditioned Biological Supervision

The primary objective of this work is to evaluate the ability of the learned representations to transfer across acquisition domains\. Following the downstream classification procedure described in Section[3\.4](https://arxiv.org/html/2608.08182#S3.SS4), the linear probe is trained exclusively on spectra from the source domains and evaluated directly on the held\-out target domain without any adaptation\. This protocol measures the ability of each representation learning method to support ZS deployment across previously unseen clinical sites\.

Additionally, to assess each component of DALMA, we evaluate several ablated variants by independently replacing the species\-conditioned prior with a standard isotropic Gaussian prior, and the domain\-specific decoders with a single shared decoder, yielding four combinations\. All variants are trained under identical conditions and evaluated using the same OOD protocol\.

#### 4\.3\.3Auxiliary Biological Supervision

Unlike microbial identification, AMR prediction is incorporated through an auxiliary prediction head rather than a species\-conditioned prior, since each isolate is associated with multiple resistance labels\.

ConsideringKpnand the antibiotics described in Section[2\.1](https://arxiv.org/html/2608.08182#S2.SS1), AMR prediction is first evaluated under a ZS cross\-domain setting, where the downstream classifier is trained exclusively on source\-domain isolates and directly applied to the held\-out target domain111DRIAMS\-D is excluded from AMR evaluation since, unlike DRIAMS\-A–C, which report R/S/I labels under the EUCAST version current at collection \(v6–v8\), DRIAMS\-D provides raw MIC values converted using EUCAST v9 \(2019\), released after data collection \(2018\)\.\. We then evaluate a few\-shot \(FS\) adaptation scenario by progressively incorporating small numbers of labeled target\-domain isolates into the downstream training set while keeping the learned representation frozen\. This protocol assesses both the intrinsic transferability of the learned representation and the amount of target\-domain supervision required to achieve optimal performance\. Each FS setting is repeated over 10 independent random partitions of the target\-domain labeled samples\.

For this FS evaluation, two baselines are included: an MLP trained on source\-domainKpnspectra and fine\-tuned on target\-domain isolates following the approach of\[[3](https://arxiv.org/html/2608.08182#bib.bib13)\], and a target\-only variant trained exclusively on MS\-UMGKpnisolates\.

#### 4\.3\.4Robustness to Unseen Domain Shifts

Although DALMA is designed to reduce acquisition\-specific variability, complete robustness to every possible domain shift cannot be guaranteed in real clinical deployment\. We therefore evaluate the robustness of the learned representations to unseen domain shifts through an OOD selective prediction protocol based on latent\-space novelty detection\.

To this end, a GMM is fitted to the latent representations of the training spectra produced by the DALMA encoder\. The GMM likelihood is used as a novelty score, where lower likelihood values indicate that a sample lies farther from the high\-density regions occupied by the training data\.

Novelty detection is evaluated using a selective prediction protocol on the held\-out target domains\. Spectra with novelty scores below a threshold are rejected, and classification performance is computed on the remaining samples together with the corresponding*coverage*, defined as the proportion of accepted spectra\. This evaluates whether the learned latent representation can reliably identify OOD samples\.

### 4\.4Implementation Details

The encoder and decoder networks were implemented using fully connected neural networks operating on the preprocessed binned spectra\. For DALMA, the encoder consists of three hidden layers with20482048,10241024, and512512units, respectively, followed by two linear projections that output the mean and log\-variance of the latent posterior distribution\. The latent dimensionality was fixed toL=64L=64\.

Each domain\-specific decoder mirrors the encoder architecture, using hidden layers of512512,10241024, and20482048units, followed by a sigmoid output layer of dimensionMM\. One decoder was instantiated for each training domain\. ReLU activations were used in all hidden layers, while a sigmoid activation was applied at the output to constrain the reconstructed spectrum to the interval\[0,1\]\[0,1\]\. Since input spectra were normalized to the same range, decoder outputs were interpreted as Bernoulli parameters and the reconstruction term was implemented using a Bernoulli likelihood \(equivalently, binary cross\-entropy reconstruction loss\)\.

The species\-conditional prior was implemented as two learnable parameter matrices of sizeS×LS\\times L, storing the mean𝝁s∈ℝL\\bm\{\\mu\}\_\{s\}\\in\\mathbb\{R\}^\{L\}and log\-variancelog⁡𝝈s2∈ℝL\\log\\bm\{\\sigma\}\_\{s\}^\{2\}\\in\\mathbb\{R\}^\{L\}associated with each speciesss\. These parameters are randomly initialized at the start of training and jointly optimized with the encoder and decoders through the ELBO objective in Eq\.[6](https://arxiv.org/html/2608.08182#S3.E6)\.

DALMA was trained using mini\-batches of size128128and the Adam optimizer\[[8](https://arxiv.org/html/2608.08182#bib.bib28)\]with learning rate10−410^\{\-4\}and weight decay10−510^\{\-5\}\. Early stopping based on validation ELBO was employed with a patience of2020epochs\. To prevent numerical instabilities from extremely small or large variance estimates, all log\-variance parameters \(encoder outputs and species embeddings\) were clamped to the interval\[−6,6\]\[\-6,6\]\.

### 4\.5Evaluation Metrics

Microbial identification experiments are primarily evaluated using*Balanced Accuracy*\(BA\), defined as the average recall across microbial species:

BA=1S​∑s=1ST​PsT​Ps\+F​Ns,\\text\{BA\}=\\frac\{1\}\{S\}\\sum\_\{s=1\}^\{S\}\\frac\{TP\_\{s\}\}\{TP\_\{s\}\+FN\_\{s\}\},\(11\)whereT​PsTP\_\{s\}andF​NsFN\_\{s\}denote the number of true positives and false negatives for speciesss, andSSis the total number of species\. BA is preferred over standard accuracy because species are unevenly represented across datasets, ensuring that minority species contribute equally to the final score\.

AMR prediction experiments are evaluated using the area under the receiver operating characteristic curve \(AUROC\), computed independently for each species–antibiotic prediction task\. This metric is appropriate for the class imbalance typically observed in AMR prediction and provides a threshold\-independent assessment of discrimination performance\.

For the robustness to unseen domain shifts experiments, performance is evaluated using a selective prediction framework\. Specifically, we report the BA obtained after rejecting spectra identified as potential outliers together with the corresponding coverage, defined as the proportion of samples for which the model issues a prediction\. This allows us to characterize the trade\-off between predictive performance and abstention under increasing levels of distribution shift\.

Additional metrics, including macro\-averaged F1\-score, recall, specificity, and AUROC for microbial identification, are provided in the Appendix[B](https://arxiv.org/html/2608.08182#A2)\.

## 5Results

The experiments are designed to evaluate the proposed latent representations from four complementary perspectives\. First, we assess their discriminative quality for microbial identification\. We then analyze the contribution of each architectural component through ablation studies, evaluate their ability to generalize across unseen acquisition domains, investigate whether they preserve clinically relevant phenotypic information through AMR prediction, and finally assess the reliability of the learned representations for OOD detection\.

### 5\.1Learning Domain\-Invariant Representations

![Refer to caption](https://arxiv.org/html/2608.08182v1/Figures/single_cosine_similarity_colours.png)Figure 3:Pairwise normalized cosine similarity between acquisition centers, averaged across microbial species\. The lower triangle \(blue\) shows values in the original spectral space; the upper triangle \(green\) shows values in the DALMA latent space\.Since the first objective of DALMA is to learn domain\-invariant latent representations, we first evaluate whether the learned embeddings effectively reduce acquisition\-specific variability before considering downstream prediction tasks\.

Figure[3](https://arxiv.org/html/2608.08182#S5.F3)compares the normalized pairwise cosine similarity matrices computed in the original spectral space and in the latent space learned by DALMA, following the protocol described in Section[4\.3\.1](https://arxiv.org/html/2608.08182#S4.SS3.SSS1)\. Higher values indicate greater similarity between acquisition centers and therefore reduced domain\-specific variability\.

The original spectral space \(blue\) shows heterogeneous similarity, with several acquisition centers—particularly DRIAMS\-D and RKI—being much less similar to the remaining institutions\. In contrast, the latent representations learned by DALMA \(green\) produce a far more homogeneous similarity pattern across centers\. The average normalized cross\-domain similarity rises from0\.8260\.826to0\.9310\.931, while its standard deviation falls from0\.0720\.072to0\.0430\.043, indicating that spectra from different acquisition protocols become substantially more consistent in the learned representation\.

Importantly, this increased cross\-domain similarity does not arise from collapsing spectra into an undifferentiated latent space\. Instead, acquisition\-specific variability is absorbed by the domain\-specific decoders while the shared encoder learns a common latent representation\. As shown in the next sections, this representation remains biologically discriminative despite the increased alignment across acquisition domains\.

### 5\.2Species\-Conditioned Biological Supervision

We next evaluate the first biological supervision mechanism proposed in DALMA, namely the species\-conditioned latent prior\. The objective of these experiments is to assess whether organizing the latent representation according to microbial identity improves the quality and transferability of the learned embeddings\. To this end, we evaluate microbial identification under a challenging ZS cross\-domain setting and subsequently analyze the contribution of each architectural component through an ablation study\.

#### 5\.2\.1Microbial Identification

To investigate whether the learned latent representations preserve microbial identity across clinical centers, following the protocol described in Section[4\.3\.2](https://arxiv.org/html/2608.08182#S4.SS3.SSS2), we froze the shared encoder after training and fitted a linear classifier on the latent representations extracted from the source domains\. Generalization is evaluated under a ZS protocol, where the classifier is tested on acquisition centers that were not observed during representation learning\.

![Refer to caption](https://arxiv.org/html/2608.08182v1/Figures/cm_raw_ALL_DRIAMS-D.png)\(a\)Raw spectra \(DRIAMS\-D\)
![Refer to caption](https://arxiv.org/html/2608.08182v1/Figures/cm_DALMA_ALL_DRIAMS-D.png)\(b\)DALMA \(DRIAMS\-D\)
![Refer to caption](https://arxiv.org/html/2608.08182v1/Figures/cm_raw_ALL_MSUMG.png)\(c\)Raw spectra \(MS\-UMG\)
![Refer to caption](https://arxiv.org/html/2608.08182v1/Figures/cm_DALMA_ALL_MSUMG.png)\(d\)DALMA \(MS\-UMG\)

Figure 4:Confusion matrices illustrating the transferability of microbial identity across previously unseen clinical centers under the ZS protocol\.Figure[4](https://arxiv.org/html/2608.08182#S5.F4)provides a qualitative comparison between classifiers trained on the original spectral space and on DALMA latent representations\. Classifiers trained on raw spectra show systematic cross\-species confusions after deployment to unseen hospitals, most severely forEfaeciumon the MS\-UMG cohort, whose spectra are acquired across two distinct instrument configurations \(LT\-SH and Smart\) and share overlapping ribosomal\-protein mass ranges with several gram\-negative species, causing its raw\-space signal to be dominated by acquisition artifacts rather than species identity\. DALMA substantially reduces these errors by removing this acquisition\-correlated variance, though it slightly overfits toEcolion the MS\-UMG cohort, likely because its large sample size still offers some batch\-correlated cues the model can latch onto\. These results indicate that the learned representation preserves microbial identity while reducing the presence of severe acquisition shifts\.

Table 2:OOD BA comparison across architectures\. Each model is used as a frozen feature extractor, and linear probing is applied on top of the resulting embeddings\. Raw spectra reports performance of a fully supervised MLP trained on the original spectral space\. Best result per row is highlighted inbold\.TrainTestRawVAEDANNCORALMaldiTDALMADRIAMS\-ADRIAMS\-D0\.9040\.8910\.9010\.8530\.7830\.910MS\-UMG0\.9500\.7230\.9450\.5190\.1670\.952DRIAMS\-BDRIAMS\-D0\.8430\.2950\.6010\.5640\.1680\.910MS\-UMG0\.8600\.3450\.6490\.4580\.1610\.949DRIAMS\-CDRIAMS\-D0\.8820\.4520\.8930\.5020\.2940\.909MS\-UMG0\.9280\.4080\.9470\.3300\.1580\.948MARISMaDRIAMS\-D0\.8990\.7860\.8300\.5800\.5700\.906MS\-UMG0\.8840\.3310\.9030\.1750\.2130\.945RKIDRIAMS\-D0\.6630\.3960\.5570\.3570\.2040\.903MS\-UMG0\.7320\.2200\.5470\.2410\.1520\.954AllDRIAMS\-D0\.9110\.8940\.9020\.8210\.8410\.911MS\-UMG0\.8700\.5110\.9490\.2400\.2240\.949

Table[2](https://arxiv.org/html/2608.08182#S5.T2)provides a quantitative comparison across all source\-target configurations\. DALMA consistently achieves the highest BA across nearly all experimental settings, maintaining performance above 0\.90 for both unseen target cohorts, irrespective of the acquisition center used for training\.

The improvements are particularly remarkable for challenging source domains such as DRIAMS\-B and RKI, where conventional VAEs and domain adaptation methods exhibit severe performance degradation\. Even large pretrained MALDI foundation models fail to generalize consistently across hospitals, whereas DALMA remains remarkably stable\. These results demonstrate that explicitly organizing the latent representation around microbial identity yields substantially more transferable representations than existing representation learning or domain adaptation approaches\.

The strong ZS performance also leaves little room for improvement through FS adaptation\. As reported in the Appendix[C](https://arxiv.org/html/2608.08182#A3), fine\-tuning with a small number of labeled target samples produces only marginal performance gains, indicating that the learned latent representation has already captured most transferable biological information\.

#### 5\.2\.2Ablation Study

To better understand the origin of these improvements, here we analyze the contribution of the two architectural components responsible for learning biologically transferable representations: the species\-conditioned latent prior and the domain\-specific decoder architecture\.

Table 3:Architectural analysis of DALMA, isolating the contribution of the species\-conditioned latent prior \(standard vs\. conditional\) and the domain\-specific decoder architecture to cross\-center transfer \(single vs\. multi\-decoder\)\. Best result in each row is highlighted inbold\.TrainTestShared decoderMulti\-decoderStandardConditionedStandardConditionedDRIAMS\-ADRIAMS\-D0\.8910\.9120\.9000\.910MS\-UMG0\.7230\.9500\.5620\.952DRIAMS\-BDRIAMS\-D0\.2950\.9100\.3860\.910MS\-UMG0\.3450\.9490\.3000\.949DRIAMS\-CDRIAMS\-D0\.4520\.9120\.4210\.909MS\-UMG0\.4080\.9500\.2120\.948MARISMaDRIAMS\-D0\.7860\.9130\.7200\.906MS\-UMG0\.3310\.9390\.5910\.945RKIDRIAMS\-D0\.3960\.7310\.2820\.903MS\-UMG0\.2200\.9520\.1700\.954AllDRIAMS\-D0\.8940\.9100\.9000\.911MS\-UMG0\.5110\.9380\.6180\.949

Table[3](https://arxiv.org/html/2608.08182#S5.T3)compares the four possible combinations obtained by replacing the species\-conditioned prior with a standard isotropic Gaussian prior and the domain\-specific decoders with a single shared decoder\.

The conditioned latent prior consistently provides the largest performance improvement across all source\-target configurations\. Replacing the standard Gaussian prior with species\-conditioned distributions dramatically increases BA, confirming that explicitly organizing the latent representation according to microbial identity is the primary source of the observed transferability\.

The domain\-specific decoder provides a complementary improvement by further reducing acquisition\-specific variability during reconstruction\. Although the conditioned prior alone already produces highly transferable representations, combining it with acquisition\-specific decoders consistently eliminates the remaining failure cases, yielding the most robust performance across all experimental settings\.

### 5\.3AMR Auxiliary Supervision

We next evaluate the second biological supervision mechanism proposed in DALMA\. Unlike microbial identification, AMR prediction cannot be naturally incorporated through a species\-conditioned latent prior, since each isolate is simultaneously associated with multiple antibiotic\-specific resistance labels\. Instead, DALMA injects biological information into the latent representation through the auxiliary AMR prediction head introduced in Section[3\.3](https://arxiv.org/html/2608.08182#S3.SS3)\.

Following the experimental protocol described in Section[4\.3\.3](https://arxiv.org/html/2608.08182#S4.SS3.SSS3), the evaluation is focused onKpn\.We evaluate the learned representations under both ZS and FS transfer settings, assessing whether auxiliary biological supervision successfully captures transferable phenotypic information across previously unseen acquisition domains\.

![Refer to caption](https://arxiv.org/html/2608.08182v1/Figures/amr_finetuning_Klebsiella_Pneumoniae.png)Figure 5:ZS and FS transfer performance for AMR prediction inKpn\. Results are shown for five clinically relevant antibiotics as a function of the number of labeled target\-domain samples used for FS \(x\-axis\), with 0 denoting the ZS setting\. Shaded regions denote the standard deviation across 10 random partitions\.Figure[5](https://arxiv.org/html/2608.08182#S5.F5)summarizes AMR prediction performance for the five antibiotics evaluated inKpn\. The leftmost point in each subplot corresponds to the ZS setting, where models are directly transferred to the target acquisition domain without observing any labeled target samples\. The remaining points report FS adaptation as progressively larger numbers of labeled isolates become available for fine\-tuning\.

Across all antibiotics, DALMA consistently achieves the strongest ZS performance, demonstrating that auxiliary biological supervision successfully incorporates AMR information into the learned latent representation despite never observing target\-domain labels during training\.

When limited labeled data are available, DALMA rapidly improves its predictive performance while maintaining a clear advantage over both pretrained and task\-specific baselines\. This behavior indicates that the learned representations already capture general resistance\-related patterns, requiring only minimal adaptation to accommodate acquisition characteristics\.

The magnitude of these improvements depends on the intrinsic difficulty of each resistance phenotype\. For carbapenems, such as Imipenem and Meropenem, ZS performance is already remarkably high, leaving little room for additional improvement through fine\-tuning\. In contrast, more challenging antibiotics, including Ceftazidime and Ciprofloxacin, benefit more substantially from the incorporation of labeled target samples while preserving the relative advantage of DALMA over competing approaches\.

Overall, these experiments demonstrate that the proposed auxiliary supervision strategy effectively extends biologically informed representation learning beyond taxonomic identity\. Whereas microbial identification naturally enables species\-conditioned latent priors, AMR can instead be incorporated through auxiliary supervision, allowing DALMA to learn transferable representations that capture both acquisition\-invariant and clinically relevant phenotypic information\.

### 5\.4Robustness to Unseen Domain Shifts

The previous experiments demonstrate that DALMA learns latent representations that are largely invariant to the acquisition domains observed during training\. However, real clinical deployment inevitably involves previously unseen sources of variability that cannot be fully anticipated during representation learning\. Rather than assuming complete robustness to every possible domain shift, an equally important requirement is the ability to recognize when an incoming sample falls outside the learned distribution\. We therefore evaluate whether the latent representations learned by DALMA support reliable OOD detection\.

Following the protocol described in Section[4\.3](https://arxiv.org/html/2608.08182#S4.SS3), GMMs are fitted to the latent representations learned from the source acquisition domains\. OOD detection is then evaluated on spectra from previously unseen clinical centers by using the latent likelihood as a novelty score for selective prediction\.

Table 4:Selective prediction under domain shift\. BA after progressively rejecting spectra with the lowest latent likelihood \(highest novelty\)\. Coverage denotes the percentage of retained samples\.SetPercentileDiscarded / TotalCoverage \(%\)BADRIAMS\-DNo rejection0 / 7,269100\.00\.9110\.0112 / 7,26999\.80\.9110\.0592 / 7,26998\.70\.9180\.10401 / 7,26994\.50\.9410\.50738 / 7,26989\.80\.977MS\-UMGNo rejection0 / 28,290100\.00\.9490\.010 / 28,290100\.00\.9500\.051,147 / 28,29095\.90\.9920\.103,476 / 28,29087\.70\.9970\.5020,940 / 28,29026\.00\.996

Table[4](https://arxiv.org/html/2608.08182#S5.T4)summarizes the trade\-off between coverage and BA obtained by progressively rejecting spectra with the lowest latent likelihood\. For both target domains, discarding only a small fraction of the most atypical samples consistently improves classification performance while maintaining high coverage\. The 0\.10 percentile threshold offers a favorable operating point, achieving substantial BA improvement while retaining more than 94% and 87% of samples in DRIAMS\-D and MS\-UMG, respectively\. These results indicate that the learned latent representation provides a meaningful estimate of sample novelty, allowing DALMA to identify potentially unreliable predictions arising from previously unseen domain shifts rather than forcing confident predictions for every incoming sample\.

## 6Conclusions

We presented DALMA, a probabilistic framework for learning biologically informed latent representations from MALDI\-TOF spectra\. Rather than pursuing domain invariance as an objective in itself, DALMA structures the latent space around biological characteristics while explicitly modeling acquisition\-specific variability through domain\-specific decoders, allowing technical differences between laboratories to be absorbed without distorting the shared representation\. Building on this domain\-corrected representation, the species\-conditioned latent prior emerges as the principal driver of biological transferability, enabling generalization across heterogeneous clinical centers without requiring target\-domain adaptation\. This disentanglement of technical and biological sources of variation provides a more effective strategy than enforcing complete domain invariance through adversarial or distribution\-alignment objectives\.

Beyond microbial identification, the learned representations transferred clinically relevant phenotypic information to downstream AMR prediction through an auxiliary supervision mechanism, achieving strong zero\-shot performance and rapid adaptation from limited labeled target samples — indicating that the representations capture both conserved biological signatures and task\-specific phenotypic information\.

As complete robustness to every possible distribution shift cannot be guaranteed, the proposed novelty detection framework further allows the model to recognize spectra falling outside the learned latent distribution and abstain from unreliable predictions, providing an additional layer of safety for clinical deployment\.

More broadly, our results suggest that biological supervision offers a principled alternative to purely domain\-invariant representation learning, a paradigm that may extend beyond MALDI\-TOF MS to other biomedical problems where biological variability and acquisition heterogeneity coexist\.

## Acknowledgements

CSS and VGV acknowledge financial support from grant TEC\-2024/COM\-89 funded by the Autonomous Community of Madrid\. CSS is also supported by the Comunidad de Madrid through the 2025 César Nombela programme \(Grant 2025\-T1/COM\-36091\) and by grant PID2025\-174087OA\-I00 funded by MCIN/AEI/10\.13039/501100011033 and ERDF/EU\. VGV is partially supported by grant PID2023\-146684NB\-I00 funded by MCIN/AEI/10\.13039/501100011033 and ERDF/EU\.

## References

- \[1\]C\. A\. Astudilloet al\.\(2024\)Multi\-label classification to predict antibiotic resistance from raw clinical MALDI\-TOF mass spectrometry data\.Sci\. Rep\.14,pp\. 31283\.Cited by:[§1](https://arxiv.org/html/2608.08182#S1.p2.1)\.
- \[2\]Y\. Bengio, A\. Courville, and P\. Vincent\(2013\)Representation learning: a review and new perspectives\.IEEE Trans\. Pattern Anal\. Mach\. Intell\.35\(8\),pp\. 1798–1828\.Cited by:[§1](https://arxiv.org/html/2608.08182#S1.p6.1)\.
- \[3\]M\.\-I\. Chenet al\.\(2026\)Benchmarking domain adaptation methods for cross\-site antimicrobial resistance prediction from MALDI\-TOF mass spectrometry data\.Comput\. Biol\. Chem\.124,pp\. 109097\.Cited by:[§1](https://arxiv.org/html/2608.08182#S1.p5.1),[§4\.3\.3](https://arxiv.org/html/2608.08182#S4.SS3.SSS3.p3.1)\.
- \[4\]A\. Croxatto, G\. Prod’hom, and G\. Greub\(2012\)Applications of MALDI\-TOF mass spectrometry in clinical diagnostic microbiology\.FEMS Microbiol\. Rev\.36\(2\),pp\. 380–407\.Cited by:[§1](https://arxiv.org/html/2608.08182#S1.p2.1)\.
- \[5\]G\. De Waeleet al\.\(2024\)An antimicrobial drug recommender system using MALDI\-TOF MS and dual\-branch neural networks\.eLife\.Cited by:[§1](https://arxiv.org/html/2608.08182#S1.p2.1)\.
- \[6\]G\. De Waeleet al\.\(2025\)Pre\-trained maldi transformers improve MALDI\-TOF MS\-based prediction\.Comput\. Biol\. Med\.186,pp\. 109695\.Cited by:[§A\.5](https://arxiv.org/html/2608.08182#A1.SS5.p1.1),[§1](https://arxiv.org/html/2608.08182#S1.p6.1),[4th item](https://arxiv.org/html/2608.08182#S4.I1.i4.p1.1)\.
- \[7\]Y\. Ganinet al\.\(2016\)Domain\-adversarial training of neural networks\.J\. Mach\. Learn\. Res\.17\(59\),pp\. 1–35\.Cited by:[§A\.3](https://arxiv.org/html/2608.08182#A1.SS3.p1.5),[§1](https://arxiv.org/html/2608.08182#S1.p6.1),[2nd item](https://arxiv.org/html/2608.08182#S4.I1.i2.p1.1)\.
- \[8\]D\. P\. Kingma and J\. Ba\(2014\)Adam: a method for stochastic optimization\.arXiv preprint arXiv:1412\.6980\.Cited by:[§A\.6](https://arxiv.org/html/2608.08182#A1.SS6.p1.1),[§4\.4](https://arxiv.org/html/2608.08182#S4.SS4.p4.5)\.
- \[9\]D\. P\. Kingma and M\. Welling\(2013\)Auto\-encoding variational bayes\.arXiv preprint arXiv:1312\.6114\.Cited by:[§1](https://arxiv.org/html/2608.08182#S1.p6.1),[1st item](https://arxiv.org/html/2608.08182#S4.I1.i1.p1.1)\.
- \[10\]P\. Laschet al\.\(2023\)Version 4 of the MALDI\-ToF mass spectrometry database for identification and classification of highly pathogenic microorganisms from the Robert Koch\-Institute\.Note:Zenodo datasetCited by:[§2\.1](https://arxiv.org/html/2608.08182#S2.SS1.p1.1)\.
- \[11\]J\. E\. Martínez\-Manjónet al\.\(2026\)Toward robust machine learning models for MALDI\-TOF MS: novel approaches forMycobacterium abscessussubspecies identification\.J\. Proteome Res\.\.Cited by:[§1](https://arxiv.org/html/2608.08182#S1.p5.1)\.
- \[12\]T\. Mortieret al\.\(2021\)Bacterial species identification using MALDI\-TOF mass spectrometry and machine learning techniques: a large\-scale benchmarking study\.Comput\. Struct\. Biotechnol\. J\.19,pp\. 6157–6168\.Cited by:[§1](https://arxiv.org/html/2608.08182#S1.p2.1),[§1](https://arxiv.org/html/2608.08182#S1.p3.1)\.
- \[13\]Y\. Parket al\.\(2024\)Effect of data heterogeneity in clinical MALDI\-TOF mass spectra profiles on direct antimicrobial resistance prediction through machine learning\.bioRxiv\.Cited by:[§1](https://arxiv.org/html/2608.08182#S1.p5.1),[§2\.1](https://arxiv.org/html/2608.08182#S2.SS1.p1.1),[§4\.1](https://arxiv.org/html/2608.08182#S4.SS1.p3.1)\.
- \[14\]D\. Rodríguez\-Temporalet al\.\(2026\)Prediction of KPC\-producingKlebsiella pneumoniaeby MALDI\-TOF MS, ensemble learning, and spectral peak annotation\.J\. Clin\. Microbiol\.64,pp\. e01466–25\.Cited by:[§2\.1](https://arxiv.org/html/2608.08182#S2.SS1.p3.1.1)\.
- \[15\]L\. Schmidt\-Santiagoet al\.\(2025\)MARISMa: a routine MALDI\-TOF MS dataset from 2018 to 2024 from spain\.bioRxiv\.Cited by:[§2\.1](https://arxiv.org/html/2608.08182#S2.SS1.p1.1)\.
- \[16\]L\. Schmidt\-Santiagoet al\.\(2026\)A systematic review of machine learning on clinical MALDI\-TOF MS\.Brief\. Bioinform\.27\(3\),pp\. bbag208\.Cited by:[§1](https://arxiv.org/html/2608.08182#S1.p2.1),[§1](https://arxiv.org/html/2608.08182#S1.p3.1),[§2\.2](https://arxiv.org/html/2608.08182#S2.SS2.p1.1)\.
- \[17\]B\. Sun and K\. Saenko\(2016\)Deep CORAL: correlation alignment for deep domain adaptation\.InProc\. ECCV Workshops,pp\. 443–450\.Cited by:[§1](https://arxiv.org/html/2608.08182#S1.p6.1),[3rd item](https://arxiv.org/html/2608.08182#S4.I1.i3.p1.1)\.
- \[18\]J\. Topić Popovićet al\.\(2023\)Sample preparation and culture condition effects on MALDI\-TOF MS identification of bacteria: a review\.Mass Spectrom\. Rev\.42\.Cited by:[§1](https://arxiv.org/html/2608.08182#S1.p4.1)\.
- \[19\]C\. Weiset al\.\(2022\)Direct antimicrobial resistance prediction from clinical MALDI\-TOF mass spectra using machine learning\.Nat\. Med\.28,pp\. 164–174\.Cited by:[§1](https://arxiv.org/html/2608.08182#S1.p1.1),[§1](https://arxiv.org/html/2608.08182#S1.p5.1),[§2\.1](https://arxiv.org/html/2608.08182#S2.SS1.p1.1),[§4\.1](https://arxiv.org/html/2608.08182#S4.SS1.p2.1)\.
- \[20\]C\. V\. Weis, C\. R\. Jutzeler, and K\. Borgwardt\(2020\)Machine learning for microbial identification and antimicrobial susceptibility testing on MALDI\-TOF mass spectra: a systematic review\.Clin\. Microbiol\. Infect\.26\(10\),pp\. 1310–1317\.Cited by:[§1](https://arxiv.org/html/2608.08182#S1.p2.1),[§1](https://arxiv.org/html/2608.08182#S1.p3.1)\.
- \[21\]M\. E\. Żukowska\(2021\)Advanced methods of bacteriological identification in a clinical microbiology laboratory\.J\. Pre\-Clin\. Clin\. Res\.15\(2\),pp\. 68–72\.Cited by:[§1](https://arxiv.org/html/2608.08182#S1.p1.1)\.

## Appendix ABaseline Architectures and Training Details

This section provides architectural and training details for the baseline models used in the comparative evaluation\. DALMA’s architecture and training procedure are described in Sections[3](https://arxiv.org/html/2608.08182#S3)and[4\.4](https://arxiv.org/html/2608.08182#S4.SS4)of the main paper\.

### A\.1Raw Spectra Baseline

The fully supervised MLP trained directly on the raw spectra mirrors the hidden\-layer structure of DALMA’s encoder, with hidden layers of 2,048, 1,024, and 512 units \(ReLU activations\), followed by an additional 64\-unit ReLU layer matching DALMA’s latent dimensionality, and a final linear classification layer withSSoutput units \(one per target species\), trained with cross\-entropy loss\. This ensures that differences in performance relative to DALMA reflect the value of the learned latent representation itself, rather than differences in raw model capacity\.

### A\.2Standard VAE

The standard VAE baseline uses the same encoder and decoder architecture as DALMA, with a fixed isotropic Gaussian priorp​\(z\)=𝒩​\(0,I\)p\(z\)=\\mathcal\{N\}\(0,I\)instead of the species\-conditioned prior\. Architectural details are summarized in Tables[5](https://arxiv.org/html/2608.08182#A1.T5)and[6](https://arxiv.org/html/2608.08182#A1.T6)\.

Table 5:VAE Encoder Architecture\.LayerConfigurationActivationInput6,000 m/z bins–Fully Connected 12,048 unitsReLUFully Connected 21,024 unitsReLUFully Connected 3512 unitsReLULatent Mean \(μ\\mu\)64 units–Latent Log\-variance \(log⁡σ2\\log\\sigma^\{2\}\)64 unitsClamp\(−6,6\)\(\-6,6\)Table 6:VAE Decoder Architecture\.LayerConfigurationActivationInputLatentzz\(64 units\)–Fully Connected 1512 unitsReLUFully Connected 21,024 unitsReLUFully Connected 32,048 unitsReLUOutput Layer6,000 unitsSigmoid
### A\.3Domain\-Adversarial Neural Network \(DANN\)

DANN is implemented following the original formulation in\[[7](https://arxiv.org/html/2608.08182#bib.bib16)\], comprising a feature extractor \(GfG\_\{f\}\), a label predictor \(GyG\_\{y\}\), and a domain discriminator \(GdG\_\{d\}\)\. A gradient reversal layer is inserted betweenGfG\_\{f\}andGdG\_\{d\}, reversing the gradient sign during backpropagation to encourage domain\-invariant representations\.

Table 7:DANN Architecture Specification\.ModuleLayerConfigurationFeature Extractor \(GfG\_\{f\}\)FC 11,024 units \(ReLU\)FC 21,024 units \(ReLU\)Latentzz64 units \(Linear\)Label Predictor \(GyG\_\{y\}\)FC 31,024 units \(ReLU\)FC 41,024 units \(ReLU\)OutputSSspecies \(Softmax\)Discriminator \(GdG\_\{d\}\)FC 51,024 units \(ReLU\)FC 61,024 units \(ReLU\)OutputDDdomains \(Softmax\)
### A\.4MultiVAE\-CORAL

MultiVAE\-CORAL extends the multi\-decoder VAE framework with a correlation alignment regularizer\. It shares the same encoder and decoder architecture as DALMA\. During training, the ELBO is augmented with a multi\-domain CORAL loss that minimizes the Frobenius distance between covariance matrices of all source\-domain pairs in the latent space:

Ck=1nk−1​\(Zk−Z¯k\)⊤​\(Zk−Z¯k\),C\_\{k\}=\\frac\{1\}\{n\_\{k\}\-1\}\(Z\_\{k\}\-\\bar\{Z\}\_\{k\}\)^\{\\top\}\(Z\_\{k\}\-\\bar\{Z\}\_\{k\}\),\(12\)
ℒCORAL=1P​∑i=1K∑j\>iK14​d2​‖Ci−Cj‖F2,\\mathcal\{L\}\_\{\\mathrm\{CORAL\}\}=\\frac\{1\}\{P\}\\sum\_\{i=1\}^\{K\}\\sum\_\{j\>i\}^\{K\}\\frac\{1\}\{4d^\{2\}\}\\\|C\_\{i\}\-C\_\{j\}\\\|^\{2\}\_\{F\},\(13\)
wherePPis the number of domain pairs,d=64d=64is the latent dimensionality, and the final objective isℒ=ℒELBO\+λCORAL​ℒCORAL\\mathcal\{L\}=\\mathcal\{L\}\_\{\\mathrm\{ELBO\}\}\+\\lambda\_\{\\mathrm\{CORAL\}\}\\mathcal\{L\}\_\{\\mathrm\{CORAL\}\}\. Hyperparameters are summarized in Table[8](https://arxiv.org/html/2608.08182#A1.T8)\.

Table 8:MultiVAE\-CORAL Training Hyperparameters\.HyperparameterValueOptimizerAdamLearning Rate10−410^\{\-4\}Weight Decay10−510^\{\-5\}λCORAL\\lambda\_\{\\mathrm\{CORAL\}\}10−310^\{\-3\}Latent Dimension64Early Stopping Patience20 epochs
### A\.5Maldi Transformer

The Maldi Transformer\[[6](https://arxiv.org/html/2608.08182#bib.bib21)\]comparison uses the pretrained Extra\-Large \(XL\) variant as a frozen feature extractor\. Each input spectrum is restricted to the top\-200 highest\-intensity peaks, and the 512\-dimensional\[CLS\]token embedding is extracted without any fine\-tuning and used as input to the downstream linear classifier\.

### A\.6Training Hyperparameters

Optimization was performed using the Adam optimizer\[[8](https://arxiv.org/html/2608.08182#bib.bib28)\]for all models except DANN, which uses SGD\. Hyperparameters are summarized in Table[9](https://arxiv.org/html/2608.08182#A1.T9)\.

Table 9:Optimization and Training Hyperparameters\.HyperparameterVAE\-basedDANNOptimizerAdamSGD \(mom: 0\.9\)Learning Rate10−410^\{\-4\}10−510^\{\-5\}Weight Decay10−510^\{\-5\}–Gradient Clipping–1\.0Batch Size128128Max Epochs100100Early Stopping Patience2020

## Appendix BExtended Evaluation Results

This section complements the main results of Section V\.B with the full set of evaluation metrics across all architectures and out\-of\-distribution targets\. Table[10](https://arxiv.org/html/2608.08182#A2.T10)reports macro\-averaged F1, Table[11](https://arxiv.org/html/2608.08182#A2.T11)macro\-averaged recall, Table[12](https://arxiv.org/html/2608.08182#A2.T12)macro\-averaged specificity, and Table[13](https://arxiv.org/html/2608.08182#A2.T13)AUROC\.

Across all four metrics, the pattern observed for balanced accuracy in Section V\.B is largely reproduced\. DALMA achieves the highest or near\-highest F1\-macro and recall in nearly every source\-target combination, with the largest differences on the smallest source domains \(DRIAMS\-B, RKI\)\. Specificity is uniformly high across all methods, reflecting its lower sensitivity to minority\-species misclassification\. AUROC shows a more mixed picture: DALMA remains strongest on DRIAMS\-D, but the raw spectral baseline is occasionally competitive on MS\-UMG, suggesting that ranking\-based metrics can mask the larger gaps seen in hard classification performance\.

Table 10:OOD F1\-macro comparison across architectures\. Best result per row inbold\.TrainTestRawVAEDANNCORALMaldiT\-XLDALMADRIAMS\-ADRIAMS\-D0\.8420\.8760\.8420\.8150\.7080\.867MS\-UMG0\.9610\.7170\.9390\.5000\.0550\.967DRIAMS\-BDRIAMS\-D0\.8320\.2570\.6170\.4430\.0880\.874MS\-UMG0\.8910\.2900\.6060\.4660\.0390\.965DRIAMS\-CDRIAMS\-D0\.8230\.4340\.8510\.4480\.2470\.872MS\-UMG0\.9510\.3900\.9270\.2520\.0600\.959MARISMaDRIAMS\-D0\.8710\.7340\.7910\.5650\.5670\.853MS\-UMG0\.8690\.2410\.8920\.0600\.0930\.961RKIDRIAMS\-D0\.5590\.1830\.4190\.2010\.0320\.840MS\-UMG0\.6940\.1110\.4740\.1260\.0270\.969AllDRIAMS\-D0\.8380\.8840\.8340\.8380\.8090\.860MS\-UMG0\.8390\.4670\.9450\.1700\.1060\.965

Table 11:OOD macro\-averaged recall comparison across architectures\. Best result per row inbold\.TrainTestRawVAEDANNCORALMaldiT\-XLDALMADRIAMS\-ADRIAMS\-D0\.9040\.8910\.9010\.8530\.7830\.910MS\-UMG0\.9500\.7230\.9450\.5190\.1670\.952DRIAMS\-BDRIAMS\-D0\.8430\.2950\.6010\.5640\.1680\.910MS\-UMG0\.8600\.3450\.6490\.4580\.1610\.949DRIAMS\-CDRIAMS\-D0\.8820\.4520\.8930\.5020\.2940\.909MS\-UMG0\.9280\.4080\.9470\.3300\.1580\.948MARISMaDRIAMS\-D0\.8990\.7860\.8300\.5800\.5700\.906MS\-UMG0\.8840\.3310\.9030\.1750\.2130\.945RKIDRIAMS\-D0\.6630\.3960\.5570\.3570\.2040\.903MS\-UMG0\.7320\.2200\.5470\.2410\.1520\.954AllDRIAMS\-D0\.9110\.8940\.9020\.8210\.8410\.911MS\-UMG0\.8700\.5110\.9490\.2400\.2240\.949

Table 12:OOD macro\-averaged specificity comparison across architectures\. Best result per row inbold\.TrainTestRawVAEDANNCORALMaldiT\-XLDALMADRIAMS\-ADRIAMS\-D0\.9790\.9800\.9800\.9650\.9590\.979MS\-UMG0\.9910\.9680\.9920\.9370\.8330\.992DRIAMS\-BDRIAMS\-D0\.9590\.8670\.9590\.9180\.8340\.980MS\-UMG0\.9790\.9070\.9670\.9270\.8320\.992DRIAMS\-CDRIAMS\-D0\.9790\.9000\.9800\.9240\.8610\.979MS\-UMG0\.9900\.9200\.9910\.9080\.8300\.991MARISMaDRIAMS\-D0\.9770\.9560\.9720\.9100\.9330\.979MS\-UMG0\.9850\.8580\.9880\.8350\.8380\.992RKIDRIAMS\-D0\.9220\.8560\.9020\.8750\.8350\.979MS\-UMG0\.9550\.8410\.9360\.8490\.8320\.992AllDRIAMS\-D0\.9800\.9760\.9800\.9660\.9740\.980MS\-UMG0\.9730\.9020\.9920\.8520\.8400\.991

Table 13:OOD AUROC comparison across architectures\. Best result per row inbold\.TrainTestRawVAEDANNCORALMaldiT\-XLDALMADRIAMS\-ADRIAMS\-D0\.9880\.9810\.9810\.9730\.9380\.995MS\-UMG0\.9990\.9660\.9920\.9550\.5720\.984DRIAMS\-BDRIAMS\-D0\.9660\.8070\.9670\.8730\.5800\.990MS\-UMG0\.9940\.8740\.9730\.9290\.5630\.984DRIAMS\-CDRIAMS\-D0\.9870\.9330\.9720\.9350\.7850\.995MS\-UMG0\.9980\.8800\.9860\.9360\.5050\.989MARISMaDRIAMS\-D0\.9870\.9630\.9850\.9220\.8990\.995MS\-UMG0\.9920\.9240\.9930\.9050\.6350\.975RKIDRIAMS\-D0\.9160\.8220\.8600\.8220\.5940\.971MS\-UMG0\.9790\.7950\.8680\.7980\.5320\.984AllDRIAMS\-D0\.9950\.9860\.9890\.9850\.9670\.996MS\-UMG0\.9750\.9710\.9940\.9650\.6290\.989

## Appendix CFew\-Shot Domain Adaptation

![Refer to caption](https://arxiv.org/html/2608.08182v1/Figures/finetuning_DRIAMS_D.png)Figure 6:Few\-shot domain adaptation performance on DRIAMS\-D\. Shaded areas represent standard deviation across 10 random partitions\.![Refer to caption](https://arxiv.org/html/2608.08182v1/Figures/finetuning_MSUMG.png)Figure 7:Few\-shot domain adaptation performance on MS\-UMG\. Shaded areas represent standard deviation across 10 random partitions\.This section complements Section V\.B by reporting the full few\-shot domain adaptation experiments\.

On DRIAMS\-D \(Figure[6](https://arxiv.org/html/2608.08182#A3.F6)\), both zero\-shot baselines stabilize around0\.9050\.905regardless of sample size\. A target\-only classifier trained from scratch starts at0\.730\.73with 50 samples and needs 250 samples to reach0\.930\.93, while fine\-tuning DALMA already reaches0\.9380\.938with only 50 samples\.

On MS\-UMG \(Figure[7](https://arxiv.org/html/2608.08182#A3.F7)\), DALMA in zero\-shot \(0\.9540\.954\) already outperforms the raw spectral MLP \(0\.8700\.870\), the opposite trend observed on DRIAMS\-D\. Training from scratch is unstable, peaking near0\.830\.83before dropping to0\.790\.79at 250 samples\. Fine\-tuning DALMA starts at0\.9140\.914with 50 samples and converges to0\.9520\.952by 100 samples\.

相似文章

MOLAR:从噪声标签中学习多模态分子表征

arXiv cs.LG

MOLAR提出了一种噪声感知框架,通过将干净属性推理与观测到的标签噪声分离,从噪声标签中学习多模态分子表征,在分子基准测试中优于基线方法。

从残差到推理:基于LLM的表格数据机制推断

arXiv cs.LG

介绍了多智能体残差上下文学习(MARICL),这是一种智能体框架,利用LLM智能体分析基础模型在表格数据上的残差,假设缺失的结构,并通过文本梯度优化产生显式的修正项。在九个基准测试中,MARICL持续优于其基础模型,并在无细胞蛋白质预测中展示了机制泛化能力。

LDARNet:用于基因组建模的具有可学习分词的DNA自适应表示网络

arXiv cs.CL

LDARNet 是一个拥有1.2亿参数的层次化基因组基础模型,引入了可学习的自适应分词机制(灵感来源于 H-Net 的动态分块),用于DNA序列的掩码语言建模。该模型在5项组蛋白修饰任务上取得了最先进的结果,并在多项基因组基准测试中超越了参数量多达其20倍的模型。其学习到的分词边界与启动子motif和剪接位点等生物学特征高度吻合。

超越表面统计:通过内部表示实现LLM鲁棒共形预测

arXiv cs.CL

本论文提出了一个利用内部表示而非输出层统计的LLM共形预测框架,引入层级信息(LI)评分作为非一致性度量,在分布偏移下改进有效性-效率权衡。该方法在QA基准上相比文本级基线展现出更强的对校准-部署不匹配的鲁棒性。