Task-Specific Sparse Feature Masks for Molecular Toxicity Prediction with Chemical Language Models

Kwun Sy Lee, Jiawei Chen, Fuk Sheng Ford Chung, Tianyu Zhao, Zhenyuan Chen +1 more
12/12/2025
cs.CEcs.AIcs.CL

No confident code implementation found for this paper.

Abstract

Reliable in silico molecular toxicity prediction is a cornerstone of modern drug discovery, offering a scalable alternative to experimental screening. However, the black-box nature of state-of-the-art models remains a significant barrier to adoption, as high-stakes safety decisions demand verifiable structural insights alongside predictive performance. To address this, we propose a novel multi-task learning (MTL) framework designed to jointly enhance accuracy and interpretability. Our architecture integrates a shared chemical language model with task-specific attention modules. By imposing an L1 sparsity penalty on these modules, the framework is constrained to focus on a minimal set of salient molecular fragments for each distinct toxicity endpoint. The resulting framework is trained end-to-end and is readily adaptable to various transformer-based backbones. Evaluated on the ClinTox, SIDER, and Tox21 benchmark datasets, our approach consistently outperforms both single-task and standard MTL baselines. Crucially, the sparse attention weights provide chemically intuitive visualizations that reveal the specific fragments influencing predictions, thereby enhancing insight into the model's decision-making process.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{lee2025taskspecific,
  title  = {Task-Specific Sparse Feature Masks for Molecular Toxicity Prediction with Chemical Language Models},
  author = {Kwun Sy Lee and Jiawei Chen and Fuk Sheng Ford Chung and Tianyu Zhao and Zhenyuan Chen and Debby D. Wang},
  year   = {2025},
  eprint = {2512.11412},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2512.11412v1}
}

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/2512.11412.svg)](https://codeofpaper.com/paper/2512.11412)

Discussion