
ZymCTRL
Language1,597 ops710.3M params
A causal transformer language model that generates sequences conditioned on a leading control code.
Language · 1,356 operations Checked
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.
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
How this diagram was made
transformers.AutoModelForCausalLM.from_config()
This model is CTRL itself, with the 48 layers and 16 heads per layer that the paper describes.
About this model's family
CTRL is a language model whose output can be steered by a control code placed at the start of the text. The codes govern style, content and task-specific behavior, and they come from structure that already accompanies raw text, so the training stays unsupervised. In training, each sequence has its domain control code prepended as the first token. Because of the codes, the model can also predict which parts of the training data are most likely given a sequence, which the paper proposes as a method of source attribution.
The network is a Transformer with causal masking, and positions are added as sinusoidal embeddings. The paper gives a model dimension of 1280, an inner dimension of 8192, 48 layers and 16 heads per layer, and reports 1.63 billion parameters. Token embeddings are tied with the final output embedding layer. Training used 140 GB of text from a wide variety of domains.
ZymCTRL carries the same conditioning idea to proteins. Its card describes it as based on the CTRL Transformer architecture, with 36 layers and a model dimensionality of 1280. It was pre-trained on raw enzyme sequences with the Enzyme Commission (EC) classes prepended to each sequence. Given an EC number, it generates protein sequences meant to carry out that catalytic reaction.
Key idea. The paper released CTRL, a 1.63 billion-parameter transformer language model trained to condition on control codes that govern style, content and task-specific behavior.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@misc{keskar2019ctrlconditionaltransformerlanguage,
title={CTRL: A Conditional Transformer Language Model for Controllable Generation},
author={Nitish Shirish Keskar and Bryan McCann and Lav R. Varshney and Caiming Xiong and Richard Socher},
year={2019},
eprint={1909.05858},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/1909.05858},
}