# PIGRAM: An Interpretable Patch--Motif Interaction Grammar for Protein--Nucleic-Acid Recognition

*Yaru Han*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/149302) · [OpenReview](https://openreview.net/forum?id=rDL8Pa6vyo) · [Open on the map](../papers.html#p149302)

Category: [AI for Molecules, Materials & Genomics](../pcat/8.md) › [Cyclic Peptide and Biomolecular Design](../pgroup/281.md) · Type: new method · Keywords: protein-nucleic-acid recognition, interpretable grammar, patch-motif interaction, aptamer design, residual Transformer

Areas: [AI for Science](../areas/ai-for-science.md) › Protein Sequence and Structure Design › Protein Language Models

## Summary
PIGRAM introduces an interpretable patch-motif interaction grammar that decomposes proteins into local residue patches and nucleic acids into secondary-structure motifs, learns sign-separated rules over explicit physicochemical and geometric attributes, refines heterogeneous rule families into a coarse-to-fine atlas, and adds sparse, bounded corrections via a frozen-grammar residual Transformer, achieving competitive predictive performance and experimentally validated design insights.

## Explained to a 5-year-old
Scientists want to know how tiny protein pieces stick to DNA pieces. They made a simple set of rules that describe how these pieces can touch each other in different ways. They also added a small helper that fixes mistakes when the rules are not enough. This helps them predict which pieces will stick together and also tells them why, so they can design better medicines. The new method works almost as well as the complicated computer models and even helps experiments work better.

## Explained to a 5-year-old, longer
Scientists study how proteins and nucleic acids stick together because this helps them create medicines. They noticed that many computer models are good at predicting the results but hard to understand. They also saw that some models have a hidden part that does all the work while the visible part looks like it does something. To solve this, they created a system that breaks proteins into small pieces and nucleic acids into small shapes. They wrote down simple rules that say which pieces can connect and whether the connection is good or bad. These rules are organized from big ideas to small details, like a map that gets more precise. They also added a tiny assistant that can make small fixes when the rules miss something, but it never takes over the main rules. When they tested the system on many examples, it predicted how well the pieces would bind almost as well as the best computer models. The rules themselves show which parts of the proteins and nucleic acids are important, giving clear explanations. They even ran lab experiments that proved the rules: removing a bad rule helped one protein bind better, and breaking a good rule made another protein bind worse. This means scientists can now design new aptamers-tiny molecules that can bind to targets-by following the clear rules. Overall, the new approach gives both accurate predictions and understandable guidance for building medicines.

## For a technical reader
The system breaks proteins into local residue patches and nucleic acids into secondary-structure motifs, then learns a sign-separated grammar over explicit physicochemical and geometric attributes. Heterogeneous rule families are refined into a coarse-to-fine atlas, while a frozen-grammar residual Transformer supplies sparse, bounded corrections without overriding the grammar. This dual architecture preserves interpretability, provides mechanistic insight, and yields competitive Pearson correlation (0.494) on a strict benchmark, with experimental validation confirming the utility of the learned rules for aptamer design.

## Problem
Computational models for protein-nucleic-acid recognition often sacrifice mechanistic interpretability for predictive power, and hybrid architectures can suffer from fallback takeover where latent branches dominate predictions while explicit components become decorative.

## Method
The approach decomposes proteins into local residue patches and nucleic acids into secondary-structure motifs, learns a sign-separated grammar over explicit physicochemical and geometric attributes, refines heterogeneous rule families into a coarse-to-fine atlas, and adds sparse, bounded corrections via a frozen-grammar residual Transformer.

## Results
On the strict sequence-pair-disjoint benchmark, the approach achieved a Pearson correlation of 0.494, approaching the unconstrained Transformer (0.511), and fluorescence ELISA experiments confirmed that grammar-guided rule relief improved GFP binding while disruption weakened NELF binding.

## Contributions
The paper proposes an interpretable patch-motif grammar that preserves rare favorable interactions, integrates selective rule refinement and residual corrections, and provides experimentally validated design principles for aptamer optimization.

## Practical relevance
The work enables researchers to design aptamers with mechanistic insight, accelerating the development of nucleic-acid therapeutics.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/149302)
