Goto

Collaborating Authors

 spectra


Auditing two-stage MS/MS molecular retrieval on MassSpecGym v1.5: Reranking gains, candidate priors and spectrum dependence

arXiv.org Artificial Intelligence

Two-stage retrieval of molecular structures from tandem mass spectra (MS/MS) can benefit from candidate reranking, but benchmark gains may also reflect candidate priors, replicate spectra, precursor mass, and training-set coverage. We audit a two-stage retrieval system on the official MassSpecGym v1.5 split (17,556 test spectra). A data-safe DreaMS encoder and composite molecular fingerprints provide an initial shortlist; a support-gated reranker combines pair scores, candidate-relative peak coverage, and mass-feasibility features. The final system achieves 31.05% Recall@1, a 10.05-point gain over its Stage 1 ensemble, while preserving its 72.62% Recall@20. Replacing the query spectrum with one from a different molecule matched on adduct and precursor mass reduces Recall@1 by 9.0 points (15.3 points under molecule-balanced weighting); nevertheless, a training-mean spectrum retains 13.75% Recall@1, indicating substantial spectrum-independent signal. Mass-feasibility features improve Recall@1 beyond score and coverage controls, while learned peak-fragment similarities do not outperform constant coverage. Errors cluster by molecule, and removing close training neighbours causes a large decline in Stage 1 shortlist recall among initially well-covered molecules. We conclude that candidate-relative mass-feasibility evidence improves front-rank retrieval and spectrum dependence, but does not establish learned structural discrimination or eliminate candidate priors. Evaluation should separately assess shortlist reachability, spectrum dependence, and molecule-level generalization.


SPECTRA: Revealing the Full Spectrum of User Preferences via Distributional LLM Inference

arXiv.org Artificial Intelligence

Large language models (LLMs) often represent user preferences by generating ranked item lists. These lists can overrepresent frequent categories and omit long-tail interests. We instead treat preference prediction as an LLM classification task, where a fine-tuned LLM assigns a probability to each category. Given a user's interaction history, we estimate the share of future interactions in each category. We propose SPECTRA (Softmax Probing for Extracted Category-level Token Readouts and Analysis), which reads a distribution over interpretable preference categories from a fine-tuned LLM's token scores. We evaluate SPECTRA on MovieLens, Yelp, and a large-scale short-video platform. SPECTRA delivers (i) distributional alignment, reducing Jensen-Shannon divergence to the empirical preference distribution by 38--44% across public datasets; (ii) long-tail recovery with cross-user fairness, raising top-3 category exposure entropy by $23%$ on MovieLens and producing a larger gain on tail-preference users than on head-preference users; and (iii) downstream application value, with a 41--46% category-NDCG boost on MovieLens and Yelp, and an increase in long-tail NDCG@$20$ from $0.024$ to $0.197$ against a production ranker on logged short-video data.


PepSpecBench: A Unified Evaluation Benchmark for Peptide Tandem Mass Spectrometry Prediction

arXiv.org Artificial Intelligence

Tandem mass spectrometry provides a high-throughput framework for identifying and quantifying proteins in complex biological samples. In computational proteomics, predicting peptide MS/MS spectra is a critical task, enabling downstream applications such as large-scale peptide identification and quantification. While deep learning architectures have substantially improved prediction accuracy, three evaluation challenges obscure the true progress of the field. First, inconsistent data preprocessing and incompatible model output spaces hinder fair model comparison. Second, flawed data splitting strategies can permit hidden sequence leakage and inflate reported performance. Third, existing evaluations typically lack systematic assessment of heterogeneous zero-shot domain shift and robustness to collision energy and precursor charge. To address these challenges, we propose PepSpecBench, a unified benchmark for peptide MS/MS spectrum prediction. The main leaderboard scores all six predictors on a shared b/y fragmention intensity subtask, so their outputs are directly comparable. PepSpecBench standardizes data preprocessing across complementary public datasets, enforces a strict backbone-disjoint splitting strategy to prevent exact backbone overlap across partitions, and evaluates diverse architectures within a shared fragment-ion representation space. It further introduces a heterogeneous zero-shot domainshift suite and metadata perturbation probes to assess robustness and whether models respond to fragmentation-relevant experimental conditions. Across six representative models, we uncover changes in model rankings across training sources and external test subsets, along with differences in their responses to collision-energy and precursor-charge perturbations. Code and data are available at https://github.com/zwYang2004/PepSpecBench.


Finite-Cadence Refresh Equilibria for Streaming Prior-Anchored Ridge: A Closed-Form Forgetting Window and Spectral Correction

arXiv.org Artificial Intelligence

Recursive estimators on drifting streams must forget stale data fast enough to track the target, yet slowly enough to average out noise. In prior-anchored ridge regression, this trade-off admits a closed-form spectral decomposition in which each eigen-direction interpolates between the data solution and the prior with pull weight $s_i = ρ/ (μ_i + ρ)$. When the anchor is refreshed every $k$ steps, we show that the moving-frame offset converges to a finite-cadence equilibrium that lags the pure-leaky path by an explicit $Δ_k(s)$ while reducing estimation variance by a factor $Ψ(s, r_k)$. Minimizing the cycle-averaged risk gives $ω^* = (4ν^2 Σ/ c')^{1/3}$, $c' = σ^2 d_{\mathrm{eff}}(ρ)$, and the plug-in strength $ρ^* = σ^2 / (nδ^2)$. A random-matrix deterministic equivalent extends both laws to finite dimension, renormalizing the anchor to $ρ_{\mathrm{eff}} = ρ(e^{ζq} - 1) / (ζq)$; it matches simulation within 5% at fixed operating points and within 13% at the method's own, and rank-deficient populations reduce exactly to their active subspace. The resulting method, SPAR, calibrates window and strength online from residuals. On a 27-configuration grid the calibrated window opens on drift without divergence, and the grid defaults transfer to an hourly electricity stream and to BCI IV 2b. The core algebra, refresh chain, and regret bounds are formalized in Lean 4.


Minimax Optimal Early-Stopped Gradient Descent for Gaussian Mixture Classification

arXiv.org Artificial Intelligence

While interpolation [26] and early-stopping in gradient descent (GD) [39] are both known to generalise in classification settings under suitable conditions, their relative statistical efficiency remains less well-understood than in regression settings. In this work, we study classification in Gaussian mixtures with label-flipping noise, a canonical model that captures key challenges of highdimensional classification, including misspecification under the logistic loss. In this setting, we show that early-stopped GD, with an appropriately chosen stopping time, is minimax-optimal in certain regimes, whereas interpolating estimators can require exponentially more samples to achieve the same excess risk. Overparameterisation has been extensively studied in least-squares regression. Foundational studies [6; 7; 15; 35; 25] show that GD on least-squares converges to the minimum ℓ2-norm interpolator, which, under sufficient overparameterisation and suitable spectral conditions on the data covariance, achieves vanishing excess risk as n, a phenomenon termed "benign overfitting". Complementary to these results, early stopping for GD methods has been shown to act as an implicit regulariser in overparameterised regimes, closely connected to explicit ℓ2-regularisation in least-squares regression [41; 33]. Under suitable spectral and signal regularity conditions, appropriately early-stopped iterates achieve statistically optimal rates for oracle stopping times [8; 41; 22; 27] and, despite the added difficulty, data-dependent stopping times [28; 38; 2; 19]. Most recently, it was shown in [40] that GD with a data-dependent stopping rule is minimax-optimal over a range of power-law spectral classes defined via the capacity and source conditions [10]. These regression results rely heavily on closed-form solutions and linear GD dynamics under least-squares loss.


LLMs Depend on Specialist Tools for Out-of-Distribution Generalization in MS/MS Structural Elucidation

arXiv.org Artificial Intelligence

A frontier language model was recently reported to solve 1D NMR structural elucidation without tools. We ask whether this capability transfers to tandem mass spectrometry (MS/MS) in the de novo setting, where the model must propose a structure directly from the spectrum without a candidate list or reference library. To separate reasoning from recall, we build a 100-analyte benchmark from MassSpecGym, split by each analyte's textual footprint into in-distribution (well documented in literature) and out-of-distribution (essentially undocumented) arms. We hold the model, harness, and output format fixed and vary only the LLM's access to domain-specific tools. Without tools, a frontier LLM reaches 52% Top-1 accuracy in-distribution but only 2% out-of-distribution. Only access to de novo structure generators improves out-of-distribution accuracy, raising it to as much as 38% Top-1, and the resulting agent outperforms the standalone de novo models both in and out of distribution. These results suggest that LLMs are not effective at de novo MS/MS structural elucidation on their own, and that further gains depend on the specialist tools available to the agent rather than on the LLM itself.


MS-GPT: Rethinking MS/MS De Novo Structure Elucidation as Spectrum-Induced Posterior Querying of a Molecule-Language Model

arXiv.org Artificial Intelligence

Molecular structure elucidation from tandem mass spectra (MS/MS) is a central inverse problem in analytical chemistry. Most existing approaches to MS/MS identification remain tied to reference libraries or predefined candidate sets, whereas de novo methods aim to generate structures directly from spectra. A common de novo route predicts a molecular fingerprint from the spectrum and then decodes structures from it, enabling decoder pretraining on large molecule-only corpora. However, this paradigm creates a training-inference mismatch: the decoder is trained on oracle fingerprints computed from molecules, but at inference it is queried with a noisy spectrum-induced fingerprint posterior that is typically collapsed to a single thresholded fingerprint. We introduce MS-GPT, which recasts fingerprint-mediated de novo elucidation as spectrum-induced posterior querying of a conditional molecule-language model. MS-GPT conditions a molecule-language model on fingerprints and formulas, then converts the spectrum-induced posterior into a band of fingerprint queries near the oracle-fingerprint manifold through active-bit density calibration. Candidates sampled across this band are pooled and ranked by generation frequency and posterior similarity. A lightweight LoRA adapter further mitigates domain-specific posterior bias while preserving the pretrained molecular prior. On NPLIB1 and MassSpecGym, MS-GPT sets a new state of the art, reaching Top-1/Top-10 exact-match accuracy of 17.1%/27.6% and 10.2%/13.2%, respectively, and candidate-pool scaling improves recovery with a near-linear increase in inference cost. The source code and model checkpoints are available at https://github.com/VIKI623/MS-GPT.


Cross-Attentive Bayesian Low-Rank Adaptation for Multimodal Uncertainty Estimation

arXiv.org Artificial Intelligence

Parameter-efficient fine-tuning (PEFT) enables efficient adaptation of frozen language models, but most PEFT methods remain deterministic or unimodal, limiting their reliability in low-resource audio-text settings where uncertainty depends on both linguistic evidence and acoustic conditions. We introduce SPECTRA (Stochastic Posterior Estimation with Cross-modal Token-level Rank Adaptation), a multimodal Bayesian low-rank adaptation framework for uncertainty-aware audio-text learning. SPECTRA keeps the text and audio backbones frozen and confines stochasticity to a compact rank-$r$ latent matrix inside each LoRA adapter. At each transformer layer, text-derived low-rank token features query frame-level audio embeddings through lightweight cross-attention; the resulting token-specific acoustic context parameterizes the mean and variance of an amortized variational posterior over the adapter latent. Audio thus acts not merely as an additional feature stream, but as a localized reliability signal that modulates both adaptation and confidence. Posterior prediction uses Monte Carlo adapter samples, enabling a decomposition of predictive uncertainty into total, aleatoric, and adapter-space epistemic components. Across IEMOCAP and clinical interview prediction tasks, SPECTRA is consistently competitive with or improves upon text-only Bayesian PEFT and conventional multimodal transfer-learning baselines, with token-level cross-attention yielding the most reliable gains. Modality-disagreement stress tests show that mismatched audio causes substantially larger degradation in AUC, likelihood, calibration, and Brier score than noisy but matched audio, highlighting the importance of modeling cross-modal reliability. These results suggest that Bayesian cross-modal conditioning in low-rank adapter space provides an efficient and principled mechanism for calibrated multimodal adaptation.


Response-state Learning for Transferable Vibrational Spectroscopic Characterization with Electron Prior

arXiv.org Artificial Intelligence

A defining feature of vibrational spectroscopy is that chemically characteristic signals arise predominantly from functional groups and their local chemical and electronic environments, rather than from equivalent contributions across the whole molecule. Consequently, cross-system generalization is governed not simply by molecular size, but by changes in these local environments that reshape vibrational responses. We therefore treat transferable vibrational spectroscopy as a local response-state problem linking structure, electronic environment and spectral signals. We introduce SO(3) Equivariant Neural Kalman Networks (SENK), combining an equivariant backbone for Hessian, dipole-derivative and polarizability-derivative prediction, an Equivariant Neural Kalman bridge for state-dependent calibration, and an NBO-informed electronic prior for bounded, branch-specific calibration. Across molecular benchmarks, drug-like and biomolecular systems, crystal-derived noncovalent assemblies and π-conjugated oligothiophenes, SENK maintains IR/Raman prediction without system-specific retraining. These results establish local response-state modeling as a physically grounded route to transferable vibrational characterization across molecular and materials-relevant systems.


Analysis of Binary O-type Star Systems Using Recurrent Neural Networks

arXiv.org Artificial Intelligence

This work presents an initial analysis of the estimation of effective temperature and surface gravity for simulated O-type binary systems using a recurrent neural network. The proposed system uses 34 equivalent-width measurements from the optical region of a stellar spectrum. Two methods were applied to observed IACOB spectra before normalization: the addition of a blackbody continuum and the addition of a second observed spectrum. The first method produces only small differences in the normalized line profiles and in the estimated physical parameters over 3700-7000 Å. In the second method, the secondary spectrum is added with contributions of 5, 10, 20, 30, 50, and 75 per cent, as defined relative to the original primary spectrum. The general comparison includes 192 simulated systems and 1152 modified spectra. For most of these spectra, the estimated effective temperature and surface gravity decrease as the contribution of the secondary component increases. Individual examples using HD14947, HD190429, HD48099, and HD206267 show that this behavior is not the same for every combination: some estimated effective temperatures fall below the estimates for both isolated spectra, and some surface gravity estimates increase. Comparisons with previously published values also depend on the physical parameter and reference considered. The results show that the proposed system is sensitive to the addition of a secondary spectrum, but do not establish a unique contribution for the secondary component of an observed binary. Keywords: Methods: data analysis, Machine learning, Stars: binaries, Stars: fundamental parameters, Astronomical databases: miscellaneous 1. Introductionmates obtained after adding a secondary contribution.