All models

regLM

A label-conditioned autoregressive DNA language model for generating regulatory sequences with a requested activity.

Molecules, proteins and genomics · 504 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (25 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
6.6M
Operations
504
Framework
PyTorch
Recurrent
No
Published
Genome Research 2024
Cited by
6 (as of 29 October 2026)
Authors
Avantika Lal, David Garfield, Tommaso Biancalani, Gokcen Eraslan
License
MIT
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m21687
Graph hash
1e49ebbca11b314d66eb73f98aa5392fbba9254f1fdb3b44cc9c861cc29153a7
Skeleton hash
fbc749e83c85fc79d85dd1feefc77c035ebd3799038927564b0edeac3ecca228
Architecture hash
c179912fb00a0d8a4539f509503eec095ca80978bceee8dc4a0685cc77c5bbe9
Diagram SHA-256
93f7a433d317420ee00f027713d9a8abde3444e67b3a7b5a0144bf336faae4d7
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

regLM is an autoregressive language model for DNA, used to design synthetic cis-regulatory elements (CREs) such as promoters and enhancers with a desired level of activity. The authors write that, to their knowledge, this is the first time language modeling has been used for DNA in a generative setting.

The model is built on HyenaDNA, a decoder-only architecture made of a stack of blocks, each a Hyena operator followed by normalization and a feed-forward network. The Hyena operator uses implicit convolutions to scale sub-quadratically with sequence length. Conditioning works through prompt tokens: each DNA sequence is prefixed with tokens for its functional label, and the model is trained on next token prediction beginning with those tokens. Prompted with the tokens for a desired function, it generates a DNA sequence one nucleotide at a time.

For yeast promoters, the paper trains a HyenaDNA model from scratch with the architecture of hyenadna-medium-160k-seqlen. The data are randomly generated 80 base pair sequences with their measured promoter activities in yeast. Each sequence gets a two-token label, where each token ranges from 0 to 4 and represents the promoter activity in one of the growth media. The paper reports that this yeast model reached 33.8% next-nucleotide accuracy on the test set, compared to 25% expected by chance.

Key idea. regLM prefixes DNA sequences with prompt tokens that encode functional labels and trains a HyenaDNA model on next token prediction, so prompting generates regulatory elements with desired properties.

  • regLM
  • regulatory DNA design
  • cis-regulatory elements
  • DNA language model
  • synthetic promoters
  • synthetic enhancers
  • autoregressive DNA generation
  • regulatory genomics
  • CRE design

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@article{Lal_2024, title={regLM: Designing realistic regulatory DNA with autoregressive language models}, url={http://dx.doi.org/10.1101/2024.02.14.580373}, DOI={10.1101/2024.02.14.580373}, publisher={openRxiv}, author={Lal, Avantika and Garfield, David and Biancalani, Tommaso and Eraslan, Gokcen}, year={2024}, month=Feb }