DiffSDS: A language diffusion model for protein backbone inpainting under geometric conditions and constraints

Zhangyang Gao, Cheng Tan, Stan Z. LiarXiv 2023 · DOI

Abstract

Protein backbone inpainting—the generation of missing structural segments within a fixed scaffold—is a fundamental task in de novo protein design. Current approaches often struggle to balance computational efficiency with the rigorous geometric constraints of 3D space. We present DiffSDS, a novel language diffusion model that bridges this gap by introducing a hidden Atomic Direction Space (ADS). By mapping sequence-based features to direction vectors, DiffSDS enables the enforcement of 3D physical constraints, such as connectivity and non-overlap, within a highly efficient transformer-based framework. Our results on the CATH4.3 dataset demonstrate that DiffSDS significantly outperforms state-of-the-art methods in connectivity, physical realism, and designability.

Introduction

In protein engineering, designing a stable scaffold around a functional site requires "filling in the blanks" of a 3D structure. This task, known as inpainting, has traditionally been approached via two distinct paradigms: SE(3) equivariant models and angle-based language models. While SE(3) models are geometrically rigorous, they are computationally intensive. Conversely, angle-based models are efficient but struggle to enforce global 3D constraints, such as ensuring a generated segment accurately connects two distant endpoints or avoids steric clashes.

Figure 1: The challenge of protein inpainting. Traditional models often fail to maintain connectivity between generated segments and fixed endpoints, leading to physically impossible gaps.

DiffSDS addresses these limitations by integrating a Sequence-Direction-Sequence (SDS) framework into a conditional diffusion model, allowing for 3D geometric control without sacrificing the speed of sequence-based architectures.

Methods

The core of DiffSDS is the SDS framework, which operates across three distinct representations: Angle, Frame, and Direction.

Atomic Direction Space (ADS)

The model utilizes a Seq2Direct encoder to map internal transformer features to a hidden space of direction vectors ($d^A, d^N, d^C$). Unlike torsion angles, which require recursive trigonometry to determine 3D coordinates, direction vectors allow for the calculation of relative positions through simple linear addition. This parallelism is crucial for the iterative nature of diffusion models.

Figure 6: Overview of the DiffSDS framework. (a) The model utilizes multiple representations, including an Atomic Direction Space. (b) The conditional diffusion process operates on these representations. (c) The SDS model architecture integrates a language transformer with an ADS layer and geometric constraints.

Geometric Constraints and Diffusion

The ADS representation enables the implementation of two vital loss functions:

  • Length Loss ($L_{len}$): Ensures the generated segment's total length matches the gap between fixed endpoints.
  • Overlapping Loss ($L_{overlap}$): A repulsion-based penalty that prevents the generated backbone from colliding with existing atoms.

The model employs a diffusion process with a "wrapped normal" distribution to account for the periodic nature of protein torsion angles during denoising.

Results and Discussion

DiffSDS was evaluated on 378 diverse protein structures from the CATH4.3 dataset, filtered to ensure low similarity to the training set (TM-score < 0.5).

Connectivity and Physical Realism

DiffSDS achieved a connectivity error between 6.93 and 10.61, a dramatic improvement over RFDesign (errors > 140) and FoldingDiff (14.77 to 59.08). Furthermore, the generated structures exhibited lower Rosetta energies (specifically rama and omega terms), indicating that the backbones more closely resemble naturally occurring proteins.

Designability

Using the self-consistency metric (scTM)—where a separate model designs a sequence for the backbone and another folds it back to see if it matches—DiffSDS achieved a success rate of 61%, outperforming both FoldingDiff (57%) and RFDesign (47%).

Conclusion

DiffSDS demonstrates that a standard Transformer architecture, when augmented with a direction-based hidden space, can effectively solve complex 3D geometric problems. While the model currently focuses on backbone atoms, future work will aim to incorporate full-atom side chains and address more complex topological challenges. By bridging the gap between sequence modeling and 3D physics, DiffSDS provides a powerful and efficient tool for the next generation of protein design.

Summary updated

BibTeX
@misc{gao2023diffsds,
  author = {Zhangyang Gao and Cheng Tan and Stan Z. Li},
  title = {{DiffSDS: A language diffusion model for protein backbone inpainting under geometric conditions and constraints}},
  year = {2023},
  eprint = {2301.09642},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2301.09642},
}
Figure