PIGRAM: An Interpretable Patch–Motif Interaction Grammar for Protein–Nucleic-Acid Recognition
Abstract
Protein–nucleic-acid recognition underlies aptamer discovery and nucleic-acid therapeutics, yet computational models often trade mechanistic interpretability for predictive flexibility. Hybrid models risk fallback takeover, where the latent branch dominates prediction and sidelines the explicit pathway. We introduce PIGRAM, which represents proteins as local residue patches and nucleic-acid partners as secondary-structure motifs. It learns a sign-separated grammar over explicit physicochemical and geometric attributes to preserve rare favorable interactions, selectively refining heterogeneous rules into a coarse-to-fine atlas. The frozen grammar remains the primary predictor, while a residual Transformer applies sparse, bounded corrections in regions poorly captured by the grammar. On an exact-sequence-pair-disjoint benchmark, PIGRAM achieves Pearson 0.494 versus 0.511 for an unconstrained Transformer, with lower local Spearman correlation but numerically higher Top10 precision and AUPRC in downstream candidate screening. The atlas exposes signed patch–motif compatibility regimes; motif patterns aligned with supervision priors are interpreted as prior-informed. Wet-lab experiments show that suppressive-rule relief improves GFP binding, whereas favorable-rule disruption weakens NELF binding. These results support interpretable grammar as a predictive scaffold and an experimentally actionable guide for optimizing synthetic nucleic acids.