- Rating
- 5
- Clarity
- 3
- Confidence
- 3
- Originality
- 3
- Quality
- 3
- Significance
- 3
Read review
Summary
The paper introduces PIGRAM, an interpretable machine learning model designed to predict how proteins interact with nucleic acids like DNA and RNA. Instead of operating as a black-box model, PIGRAM breaks proteins down into local physical "patches" and nucleic acids into structural "motifs" to learn a set of clear, human-readable rules about how they bind together. To ensure the model remains highly accurate without sacrificing its transparency, the authors freeze the foundational rules in place before allowing a neural network to make small, targeted corrections only on the most difficult predictions. The paper presents a tool that can help researchers understand the biological logic behind biomolecular interactions, which might be useful for designing new therapeutics and biosensors.
Strengths and weaknesses
Strengths
- The strategy of training and freezing a coarse-to-fine grammar before applying a bounded residual Transformer is a highly effective, structural solution to the "fallback takeover" problem. It ensures interpretability is a primary feature.
- The inclusion of downstream wet-lab experiments measuring shifts for GFP and NELF aptamers is a major strength. It grounds the machine learning claims in physical reality, demonstrating that relieving a "suppressive" rule or disrupting a "favorable" rule yields the expected biological outcomes.
- The use of a strict pair-disjoint sequence split ensures the model is evaluated on its ability to generalize to novel protein-nucleic-acid pairs, rather than memorizing training data.
Weaknesses
- PIGRAM requires 3D coordinates for proteins and secondary structures for nucleic acids. In the domain of de novo aptamer discovery, solving or predicting these structures accurately beforehand can be a bottleneck, which limits the model's immediate applicability to sequence-only screening.
- The model is trained on a relatively small dataset (K training examples). While the pair-disjoint split is rigorous, it remains to be seen will generalise over more diverse protein-RNA/DNA interaction datasets.
- While the baselines (MLPs, generic Transformers) validate the architecture's internal logic, the paper omits direct quantitative comparisons to recent interpretable geometric or graph-based models in the biomolecular space.
Questions
-
The current baselines successfully validate the internal logic of PIGRAM by comparing it against generic architectures like Concat-MLP and a standard Transformer. However, the paper omits comparisons to recent structure-aware or interpretable models designed specifically for protein-nucleic-acid or spatial interactions, such as PNAbind, GraphRBF. Please provide a comparison to these domain-specific models. If feasible, an empirical comparison against at least one spatial/GNN baseline would be ideal. Additionally, even a qualitative discussion in the main text highlighting how PIGRAM's grammar approach fundamentally differs from or improves upon these spatial methods would clarify your state-of-the-art positioning.
-
A central and compelling claim of the paper is that the bounded residual Transformer acts only as a sparse local rescue, preventing the latent branch from silently overtaking the interpretable grammar. While the routing gate analysis supports this, it would be highly reassuring to prove this using standard Explainable AI (XAI) techniques. Could you run an attribution method (e.g., Integrated Gradients or SHAP) specifically on the residual Transformer branch for a subset of predictions? Showing that the attribution scores for the residual branch concentrate strictly on the "rescued" regions and do not dominate the global prediction would be useful.
-
PIGRAM relies heavily on its intermediate structural resolutions, specifically, the definitions of protein patches and nucleic-acid motifs. Currently, the exact details of how these are constructed (e.g., the nearest residues for patches, or the specific sequence/3D features of motifs) are entirely deferred to the Appendix. Please bring a concise summary of the patch and motif featurization process into the main text (likely around Section 3.1 or 3.3). Readers should not have to flip to the supplementary material to understand the fundamental inputs of your model.
-
The overall dataset is relatively small (K training examples) and heavily focused on aptamer-like scenarios. It is not entirely clear how well the learned explicit rules generalise to drastically different targets or larger-scale interactions. I think providing a small zero-shot evaluation on a completely held-out class of proteins (or discussing the potential benefits of pretraining with a larger structural language model) would help address concerns about the model's scalability and generalizability.
Limitations
Yes, the authors address some limitations in Section 5, explicitly noting the model's dependence on 3D structural inputs and its inability to capture full-atomic physics. However, as noted in the questions above, briefly discussing how the relatively small dataset size might impact the model's scalability to completely novel biomolecular targets would further strengthen this section.
Paper formatting concerns
None
Final justification
The authors have addressed the majority of my concerns, so I have updated my score to 5.
We thank the reviewer for these constructive comments. PIGRAM bridges predictive flexibility and actionable biomolecular interpretation. Unlike protein side binding site models, it conditions predictions on a specific protein and nucleic acid pair. Unlike unconstrained sequence or spatial models, it uses explicit signed patch and motif rules with bounded local corrections. Its significance lies in supporting partner specific prediction, aptamer screening, and interpretable affinity engineering rather than post hoc explanation alone.
1. Structural Requirements and Aptamer Candidate Screening
We thank the reviewer for highlighting this distinction. PIGRAM uses experimentally resolved protein–nucleic-acid complexes during training to construct the structure-aware target Ystruct. During screening aptamers for a fixed target protein, the protein structure is processed once into residue patches. Each candidate requires only its sequence, from which ViennaRNA and deterministic segmentation generate secondary-structure motifs, without candidate-specific three-dimensional prediction or docking. Section 4.5 and Table 5 evaluate this workflow on five complete candidate pools. On average, 4.3 of PIGRAM’s top 10 candidates per target were experimentally annotated positives, the best Top10 result among all compared models. PIGRAM also achieved the best AUPRC and AUROC. Separately, the signed rules provided directional hypotheses for affinity modification. Removing suppressive Rule 0 strengthened two GFP aptamers by decreasing KD from 676 to 490 nM and from 659 to 516 nM. Disrupting favorable Rule 4 weakened two NELF aptamers by increasing KD from 287 to 564 nM and from 439 to 688 nM. Thus, PIGRAM supports both candidate screening and rule-guided affinity engineering.
We therefore describe PIGRAM as sequence-driven screening after one-time target-structure preprocessing, while acknowledging target-structure availability and secondary-structure prediction accuracy as limitations.
2. Comparison with Structure-Aware Spatial Models
PNAbind takes a single protein molecular surface and predicts nucleic-acid-binding function, DNA or RNA preference, and protein-side binding sites. GraphRBF uses a single protein’s residue features and 3D coordinates to predict, for each protein residue, its probability of belonging to a protein–protein, protein–DNA, or protein–RNA interface. Neither conditions on a specific nucleic-acid partner, so their outputs and metrics are not directly comparable to PIGRAM’s partner-specific patch–motif prediction or downstream aptamer ranking. We implemented a task-matched Spatial GNN using the same inputs, motif encoder, Ystruct, split, loss, and evaluation. It encodes residue-graph patches with three edge-conditioned layers and predicts patch–motif scores through a neural head, without grammar or residual routing. Subscripts report SD over five seeds, following Table 1.
A 10,000-replicate paired bootstrap resampled unique sequence pairs using shared indices.
PIGRAM improved Pearson, AUROC, and AUPRC over Spatial GNN, while its Spearman difference was positive but unresolved. The smaller rank gain likely reflects compressed weak-interaction scores and local rather than global residual correction. PIGRAM also exceeded Spatial GNN in downstream Top10 (0.430 versus 0.322), AUPRC (0.314 versus 0.246), and AUROC (0.641 versus 0.608).
The unconstrained Transformer remains strongest on raw correlations, so we do not claim universal predictive superiority. PNAbind and GraphRBF provide protein-side geometric interpretations, whereas PIGRAM conditions on a specific protein–nucleic-acid pair and makes its primary prediction through explicit signed rules with bounded corrections. We will add this task distinction and empirical comparison to the main text and Related Work.
3. Residual Transformer Attribution and Global Contribution
We combined an exact contribution audit with Integrated Gradients (IG). Because Sijfinal=HijA+rijΔBij, the exact residual contribution is rijΔBij. Across all 259 test structures, we calculated
\frac{\sum_{ij}|r_{ij}\Delta B_{ij}|} {\sum_{ij}|H_{ij}^{A}|+\sum_{ij}|r_{ij}\Delta B_{ij}|}.$$ The median residual share was 6.6%, and 98.1% of structures (254/259) were below 25%. The residual magnitude exceeded the grammar magnitude in only 3.2% of cells, and only 1.4% crossed the logit-zero boundary corresponding to probability 0.5. Thus, the residual rarely overturns the grammar globally. We applied 64-step IG to 90 test structures, equally sampled from high-route rescued, high-route unrescued, and low-route cases. A cell was rescued when adding the residual reduced its absolute error relative to $Y^{\mathrm{struct}}$. IG was computed for both the ungated proposal $\Delta B$ and gated correction $r\Delta B$ with respect to the detached patch and motif embeddings entering the residual Transformer. Route values were fixed for gated attribution, and training-set mean embeddings were used as the baseline. Absolute attribution was $$A_{ij}=\sum_k|\mathrm{IG}_{ijk}|.$$ For gated $r\Delta B$, the top 10% of route-ranked cells contained 74.5% of attribution mass. Rescued cells constituted 24.6% of evaluated cells but received 71.2% of attribution, a 2.9-fold enrichment. For ungated $\Delta B$, the corresponding fractions were 47.9% and 63.8%, with a 2.6-fold enrichment in rescued cells. Localization therefore remained before route multiplication. Together with the frozen grammar, bounded $\Delta B$, detached residual inputs, and mean route of 0.0377, these results support localized rescue without global residual takeover. We will add the protocol and representative IG maps to the Appendix. ## 4. Input Construction and Clarity We agree that the fundamental inputs should be clear from the main text. Sections 3.1 and 3.3 will state that each protein patch contains the $k=8$ nearest residues by atom-centroid distance and is represented by 56 compositional, physicochemical, geometric, and topological features. ViennaRNA secondary structures are segmented into consecutive motifs represented by 27 type, pairing, length, composition, positional, and biophysical features. Full definitions remain in the Appendix. We will also distinguish training from deployment, define symbols at first use, enlarge Figure 2 labels and color bars, and add a compact model comparison. ## 5. Data Scale, Generalization, and Limitations ### Dataset scale and scope The structural dataset contains 4,228 complexes, including 3,680 for training. Such paired structures are scarce because they require complete sequences, resolved coordinates for both macromolecules, and a usable interaction interface. Each complex produces a patch–motif matrix rather than one global label, yielding approximately 11.7 million training cells. These cells provide dense local supervision but are correlated within each complex and do not represent independent proteins or families. The training corpus is not restricted to aptamers. It contains broader protein–RNA and protein–DNA complexes from PDB, NDB, and RNASolo. The five aptamer pools are used only for downstream screening and do not train the structural model. PIGRAM therefore learns local patch–motif compatibility across general protein–nucleic-acid complexes rather than aptamer-level labels. ### Cross-target generalization Because the explicit rules depend on local patch and motif attributes rather than protein identity, they are designed to transfer across targets. We tested this using a protein-cluster split at 30% sequence identity and 80% bilateral coverage. Each connected protein component was assigned to one split, leaving no test protein with a training match at this threshold. Rules learned from the training clusters were applied unchanged to unseen test clusters. |Model|Pearson|Spearman| |-|-:|-:| |Transformer|0.495|0.454| |PIGRAM|0.479|0.367| |Grammar Foundation|0.447|0.362| PIGRAM retained 97.0% of its original Pearson and exceeded Grammar Foundation by 0.032, with a 95% CI of [0.012, 0.052]. This supports transfer to unseen protein sequence clusters. This provides a stringent evaluation of transfer to sequence-distant targets within the curated corpus. Complementary functional-family, domain, fold, and independent-dataset holdouts would further characterize generalization to entirely novel target classes. ### Scalability and pretraining PIGRAM accepts variable numbers of protein patches and nucleic-acid motifs, allowing it to process different molecular lengths and interface sizes. Performance and computational cost on substantially larger or multicomponent interfaces remain to be evaluated. Structural language model pretraining on larger collections of individual structures and sequences could provide broader geometry, fold, family, and motif priors, reducing dependence on scarce paired structures and improving transfer to unseen families. These priors could support the latent encoders and refinement modules while the explicit signed grammar remains unchanged, preserving interpretability. We will retain the existing structural-input and full-atomic limitations and add these data-scale and target-diversity considerations to Section 5.