RXNRECer Skips EC Numbers to Predict Enzyme Reactions With 85% Accuracy
A transformer ensemble skips Enzyme Commission numbers to predict which biochemical reactions a protein catalyzes, gaining 16.5% F1 over baselines.
ProTakeaways
- RXNRECer predicts enzyme-catalyzed reactions directly from sequences, skipping unstable Enzyme Commission number intermediaries.
- Three stages: ESM2-based classifier, dynamic ensemble with EC and PLM baselines, and LLM-driven interpretability.
- Gains of 16.54% F1 and 15.43% accuracy over six EC-based baselines on curated benchmarks.
- Active learning cuts training cost by prioritizing samples with high attention-based prediction divergence.
- Case studies show substrate-specific refinement and detection of enzyme promiscuity missed by canonical annotations.
- Code, models, and web server available at github.com/kingstdio/rxnrecer.
Predicting what an enzyme actually does from its amino acid sequence has been stuck on a workaround for decades. Instead of directly guessing the reaction, models predict an Enzyme Commission (EC) number, then look up the reaction in an external database. A new framework called RXNRECer throws out that middle step and predicts the reaction end-to-end, reporting sizable accuracy gains and some interesting side effects like uncovering enzyme promiscuity.
Why EC numbers are a leaky abstraction
The Enzyme Commission system is a hierarchical taxonomy maintained by the IUBMB that groups enzymes by broad reaction class. It is convenient, but EC numbers primarily encode reaction classes rather than specific biochemical reactions, so mapping an enzyme to a concrete equation still requires manual database alignment.
Worse, the taxonomy is a moving target. EC classifications are frequently updated through reassignment, splitting, and deletion, and asynchronous update schedules across databases produce inconsistencies. The paper points to EC 4.2.1.13, reassigned to EC 4.3.1.17 in 2001, which still had 186 protein entries annotated under the obsolete number in SwissProt as of March 2022. When the label itself is unstable, any classifier built on top of it inherits that noise.
Scale makes it worse. In June 2025 alone, UniProt added 2,299,276 protein sequences to TrEMBL, whereas only 434 sequences were manually curated and incorporated into the SwissProt database. Manual annotation is not catching up.
A three-stage direct predictor
RXNRECer reformulates the task as multi-label classification over roughly 10,479 reactions, with a virtual "no catalysis" label so non-enzymes fit the same framework. The pipeline has three stages.

Stage 1 (RXNRECer-S1) is the workhorse classifier. Protein sequences are embedded using the ESM2-650M model to capture amino acid-level, sequence-level, and co-evolutionary information, processed through a Gated Recurrent Unit layer to model long-range dependencies, followed by a Transformer layer to capture short-range contextual features, and a fully connected layer with sigmoid activation generates reaction prediction scores. The model has roughly 208 million trainable parameters, with the first 23 layers of ESM2 frozen and only the last 10 fine-tuned to keep costs sane.
Stage 2 (RXNRECer-S2) is a dynamic ensemble that mixes RXNRECer-S1 with EC-based tools (ECRECer, CLEAN, DeepEC, PRIAM, CatFam) and PLM-similarity methods (T5, ESM, UniRep with cosine distance). The clever bit is that it switches strategies based on how similar the query is to known sequences:
- Majority voting when sequence identity is at least 75%, favoring precision by picking the most-agreed-on reaction.
- Recall-boost when identity drops below 75%, unioning candidate reactions to maximize coverage on novel proteins.
The 75% cutoff was chosen based on prior studies showing enzyme function is generally conserved above 70 to 80% identity, and it is user-configurable.
Stage 3 (RXNRECer-S3) hands the top candidates to a general-purpose LLM with a structured prompt containing the sequence, candidate reactions, RHEA IDs, SMILES, and ChEBI metadata. The LLM re-ranks and generates a natural-language rationale grounded in catalytic motifs and domain features. It is explicitly not the predictor. It is a filter and explainer.
Active learning to make training tractable
Training a 200M-parameter model on the full curated pool would take a small eternity. By extrapolation, training a 200M-parameter RXNRECer model for a single epoch on an 8-by-A800 GPU cluster would take over 100 days. The authors sidestep this with a two-strategy active learning loop:
- Attention-based sampling: for each unlabeled protein, compute predictions with and without the Transformer attention head. Samples with the biggest disagreement are the ones the model is most confused about, so they get labeled first.
- Clustering-based sampling: partition the unlabeled pool into clusters, measure per-cluster error, and draw samples proportionally to keep both diversity and hard cases in play.
The numbers
Evaluation uses two datasets: a 10-fold cross-validation split (ds_rcv) from the January 2018 SwissProt snapshot, and a temporal test set (ds_rcp) built from proteins added between 2018 and 2024 to simulate distribution shift.
On cross-validation, RXNRECer-S1 hit 98.73% mAccuracy, 98.90% mPrecision, 98.04% mRecall, and 98.47% mF1. For reference, the best EC-based baseline (ECRECer) reached about 82% mF1, and the best unsupervised PLM-similarity baseline (ESM-cosine) hit 93.52%.
The temporal test is more revealing because it stresses generalization to genuinely new proteins. MSA-via-EC accuracy dropped from 82.10% to 43.43%, and MSA-via-RXN fell from 83.80% to 50.13%, decreases of over 36 percentage points, while 4,280 test proteins lacked valid alignments to training sequences. RXNRECer-S1 held up at 83.47% mAccuracy, 89.40% mPrecision, 81.84% mRecall, and 80.60% mF1, and the dynamic ensemble in Stage 2 pushed the F1 to 85.45%.

What it unlocks in practice
Skipping EC numbers isn't just a benchmark trick. It changes what you can do downstream. Four case studies stand out:
- Proteome-wide annotation: applied to Fusarium venenatum, RXNRECer annotated 25.69% of proteins with known reactions. MSA, DeepEC, and PRIAM failed to annotate over 50% of proteins, and CLEAN inflated coverage by labeling everything as an enzyme.
- Substrate specificity: generic templates like "aldehyde + NAD+ + H2O = carboxylate + NADH" get refined to the actual substrate (acetaldehyde), matching experimental evidence.
- Uncurated proteins: for reviewed SwissProt entries with no assigned reactions, the model produces high-confidence guesses that match published biochemistry (for instance, predicting glycerate kinase activity for Slr1840 from Synechocystis).
- Enzyme promiscuity: because the output is multi-label, one enzyme can be flagged for multiple substrates. Two daffodil 4-coumarate:CoA ligases annotated with a single reaction get expanded to ferulate, caffeate, and cinnamate variants, matching known homolog activity in rice and tobacco.
Limitations worth knowing
The predictor is bounded by what curated reaction databases contain. Rare or genuinely novel reactions outside Rhea and SwissProt will be missed. The LLM interpretability layer relies on prompt engineering and lacks formal mechanistic grounding, so the rationales are useful but shouldn't be treated as proofs. And the framework does not currently use 3D structural or ligand-binding information, which limits atomic-level resolution.
Getting your hands on it
Code, trained models, datasets, and evaluation results are on GitHub, and there is a hosted web server at rxnrecer.biodesign.ac.cn. The stack is PyTorch, with DIAMOND for alignment, FastAPI for the REST endpoints, and Singularity containers for reproducible deployment on HPC clusters. If your work touches metabolic modeling, biocatalyst discovery, or annotating a freshly sequenced proteome, this is a drop-in upgrade over the usual EC-number pipeline.