Enzyme function annotation remains a challenging problem, even with many advancements in machine learning and deep learning. Most computational tools predict Enzyme Commission numbers, which are occasionally reassigned, or retrieve reactions from a candidate pool. We introduce RxnPred, which instead generates reaction SMILES from protein sequence and structure inputs, using an encoder-decoder transformer model trained on protein-reaction pairs. We evaluate RxnPred on three data splits of increasing difficulty in terms of sequence identity, and on three external test sets, comparing against a homology baseline, a contrastive learning reaction screening tool, and four EC prediction tools. On reactions seen during training, RxnPred is competitive with these tools and achieves higher recall under beam search, though at lower precision; the homology baseline nevertheless remains the strongest method. Performance drops when test sequences become more dissimilar from training data, and on unseen reactions, the model does not recover the correct answer, whereas a retrieval framework can rank such reactions because they are supplied as input. Its predictions for these entries are nonetheless closer to the ground truth by fingerprint similarity than those of the homology baseline and an EC prediction tool. The model does generate reaction SMILES absent from its training data, a small fraction of which map to existing reactions, but assigns them to the wrong enzymes. We identify metabolite-level tokenization and protein-reaction alignment, rather than reaction generation, as the main bottleneck, and granular tokenization, chemical validity constraints, and strong alignment as directions for improvement.
