Papers › Bio-xLSTM: Generative modeling, representation and in-context learning of biological...

Bio-xLSTM: Generative modeling, representation and in-context learning of biological and chemical sequences

6 Nov 2024arXiv:2411.04165archive 2025-07-28

Niklas Schmidinger, Lisa Schneckenreiter, Philipp Seidl, Johannes Schimunek, Pieter-Jan Hoedt, Johannes Brandstetter, Andreas Mayr, Sohvi Luukkonen, Sepp Hochreiter, Günter Klambauer

Language models for biological and chemical sequences enable crucial applications such as drug discovery, protein engineering, and precision medicine. Currently, these language models are predominantly based on Transformer architectures. While Transformers have yielded impressive results, their quadratic runtime dependency on the sequence length complicates their use for long genomic sequences and in-context learning on proteins and chemical sequences. Recently, the recurrent xLSTM architecture has been shown to perform favorably compared to Transformers and modern state-space model (SSM) architectures in the natural language domain. Similar to SSMs, xLSTMs have a linear runtime dependency on the sequence length and allow for constant-memory decoding at inference time, which makes them prime candidates for modeling long-range dependencies in biological and chemical sequences. In this work, we tailor xLSTM towards these domains and propose a suite of architectural variants called Bio-xLSTM. Extensive experiments in three large domains, genomics, proteins, and chemistry, were performed to assess xLSTM's ability to model biological and chemical sequences. The results show that models based on Bio-xLSTM a) can serve as proficient generative models for DNA, protein, and chemical sequences, b) learn rich representations for those modalities, and c) can perform in-context learning for proteins and small molecules.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2411.04165")

Code

Syntology Ran 3 of 29 code samples harvested from 3 repositories linked to this paper; 26 have no recorded run. Of those that ran: 1 ran · violated contract; 2 ran · our draft was wrong.

By repository: official repository: 29 samples from 3 repositories, 3 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

ml-jku/chem-xlstm officialmentioned in papermentioned on GitHubpytorchApache-2.0 report
ml-jku/dna-xlstm officialmentioned in papermentioned on GitHubpytorchApache-2.0 report
ml-jku/prot-xlstm officialmentioned in papermentioned on GitHubpytorchApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

29 samples harvested; 3 ran; 0 honoured the contract we drafted; 26 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · violated contract
2ran · our draft was wrong
26unverified

Licence: 0 of the 29 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 3 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

bias_linspace_init_ ml-jku/dna-xlstm/models/dna_xlstm/xlstm/components/init.py official repository ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 705d17e5f5c0489b · report
exists ml-jku/dna-xlstm/models/dna_xlstm/xlstm/xlstm_block_stack.py official repository ran · violated contract Apache-2.0 (permissive) · aa5486a3650902d8 · report
krylov ml-jku/chem-xlstm/chemxlstm/module_library/krylov.py official repository ran · our draft was wrong Apache-2.0 (permissive) · 1f3623588b61ca31 · report
apply_rotary_emb ml-jku/prot-xlstm/protxlstm/xlstm/components/rotary_position.py official repository unverified Apache-2.0 (permissive) · ac829870c326eb73 · report
cauchy_naive ml-jku/chem-xlstm/chemxlstm/module_library/cauchy.py official repository unverified Apache-2.0 (permissive) · bf0be6c26af1d44e · report
combination ml-jku/chem-xlstm/chemxlstm/module_library/dplr.py official repository unverified Apache-2.0 (permissive) · 5688929ec94f213a · report
compute_freqs_cis ml-jku/prot-xlstm/protxlstm/xlstm/components/rotary_position.py official repository unverified Apache-2.0 (permissive) · 2a573b08e6c410c8 · report
conditional_decorator ml-jku/dna-xlstm/models/dna_xlstm/xlstm/components/util.py official repository unverified Apache-2.0 (permissive) · 683dd071b7bcb7c7 · report
conv1d_step ml-jku/prot-xlstm/protxlstm/xlstm/components/conv.py official repository unverified Apache-2.0 (permissive) · 25766cf2cb87920f · report
create_dataloader ml-jku/chem-xlstm/chemxlstm/dataloaders.py official repository unverified Apache-2.0 (permissive) · b52fb76a05e95adb · report
dplr ml-jku/chem-xlstm/chemxlstm/module_library/dplr.py official repository unverified Apache-2.0 (permissive) · 7c3fe064733e56b3 · report
embed_c2r ml-jku/chem-xlstm/chemxlstm/module_library/hippo.py official repository unverified Apache-2.0 (permissive) · e6845c8558af2604 · report
get_act_fn ml-jku/dna-xlstm/models/dna_xlstm/xlstm/components/feedforward.py official repository unverified Apache-2.0 (permissive) · ed05db9cecbe4f40 · report
get_mlstm_inner_dim ml-jku/dna-xlstm/models/dna_xlstm/xlstm/xlstm_block_stack.py official repository unverified Apache-2.0 (permissive) · 3b07afcb40c29e2a · report
krylov_sequential ml-jku/chem-xlstm/chemxlstm/module_library/krylov.py official repository unverified Apache-2.0 (permissive) · b060864a3e29a600 · report
learn_label_encoding ml-jku/chem-xlstm/chemxlstm/fasta_utils.py official repository unverified Apache-2.0 (permissive) · 1fb8af0f651b45c7 · report
load_file ml-jku/chem-xlstm/chemxlstm/evaluate_cond_gen.py official repository unverified Apache-2.0 (permissive) · 4208c567af7da5a8 · report
load_model ml-jku/chem-xlstm/chemxlstm/evaluate_cond_gen.py official repository unverified Apache-2.0 (permissive) · df4c6239424d356d · report
load_smiles_from_zip ml-jku/chem-xlstm/chemxlstm/metrics.py official repository unverified Apache-2.0 (permissive) · 8a748a919db6ec4d · report
power ml-jku/chem-xlstm/chemxlstm/module_library/krylov.py official repository unverified Apache-2.0 (permissive) · 5df4043c60e49613 · report
precompute_freqs_cis ml-jku/dna-xlstm/models/dna_xlstm/xlstm/xlstm_block_stack.py official repository unverified Apache-2.0 (permissive) · 2bf924786015498d · report
rank_correction ml-jku/chem-xlstm/chemxlstm/module_library/hippo.py official repository unverified Apache-2.0 (permissive) · 433b3d872e02032c · report
read_fastas ml-jku/chem-xlstm/chemxlstm/fasta_utils.py official repository unverified Apache-2.0 (permissive) · 6e10ab4b4709a633 · report
round_to_multiple ml-jku/dna-xlstm/models/dna_xlstm/xlstm/components/util.py official repository unverified Apache-2.0 (permissive) · 3a70ec6e0ac819b2 · report
segment_fasta ml-jku/chem-xlstm/chemxlstm/fasta_utils.py official repository unverified Apache-2.0 (permissive) · c0dc66eb84a1479a · report
small_init_init_ ml-jku/dna-xlstm/models/dna_xlstm/xlstm/components/init.py official repository unverified Apache-2.0 (permissive) · cfe16cc8552a2332 · report
ssm ml-jku/chem-xlstm/chemxlstm/module_library/dplr.py official repository unverified Apache-2.0 (permissive) · a59eccfb252a06f0 · report
transition ml-jku/chem-xlstm/chemxlstm/module_library/hippo.py official repository unverified Apache-2.0 (permissive) · 34b2aa570368722c · report
wang_init_ ml-jku/dna-xlstm/models/dna_xlstm/xlstm/components/init.py official repository unverified Apache-2.0 (permissive) · 431c81ae48403967 · report

Tasks

Drug DiscoveryIn-Context Learning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Absolute Position EncodingsAdamAttentionBPEDense ConnectionsDropoutLabel SmoothingLayer NormalizationLinear LayerMulti-Head AttentionPosition-Wise Feed-Forward LayerResidual ConnectionSoftmaxTransformer

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections