Exploiting Latent Linearity in LLMs Improves Explainable Molecular Representation Learning

Zhuoran Li, Xu Sun, Wanyu Lin, Jiannong Cao
10/11/2024
cs.LGcs.AI

No confident code implementation found for this paper.

Abstract

Large language models (LLMs) have demonstrated broad utility across molecular domains, spanning drug discovery and materials design. Analyzing LLMs' latent representations is crucial for elucidating their underlying mechanisms, improving explainability, and ultimately advancing downstream performance. We propose MoleX, a simple yet effective framework that decomposes molecular embeddings within LLM representations into a concept-aligned space for explainable molecular representation learning. We further show that these high-dimensional embeddings admit a linear mapping onto chemically consistent concepts. Our analysis suggests that the uncovered linearity aligns with established chemical principles, indicating a mechanistically explainable latent structure in LLM representations for scientific applications. When applied to downstream tasks, this latent linearity improves both predictive and explanatory performance. Extensive experiments demonstrate that MoleX outperforms existing approaches in accuracy, explainability, and efficiency, achieving CPU inference on large-scale datasets 300 times faster with 100,000 fewer parameters than LLMs.

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{li2024exploiting,
  title  = {Exploiting Latent Linearity in LLMs Improves Explainable Molecular Representation Learning},
  author = {Zhuoran Li and Xu Sun and Wanyu Lin and Jiannong Cao},
  year   = {2024},
  eprint = {2410.08829},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.08829v2}
}

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

Discussion