Skip to main content
QUICK REVIEW

[Paper Review] Neural Distance Embeddings for Biological Sequences

Gabriele Corso, Rex Ying|arXiv (Cornell University)|Sep 20, 2021
Bioinformatics and Genomic NetworksBiochemistry, Genetics and Molecular Biology77 references12 citations
TL;DR

NeuroSEED is a neural framework that embeds biological sequences into geometric vector spaces to preserve evolutionary edit distances, with hyperbolic space reducing embedding RMSE by 22% compared to competing geometries. It enables fast, accurate approximations of core bioinformatics tasks like hierarchical clustering and multiple sequence alignment, achieving up to 30x faster runtime than baselines while matching or exceeding accuracy.

ABSTRACT

The development of data-dependent heuristics and representations for biological sequences that reflect their evolutionary distance is critical for large-scale biological research. However, popular machine learning approaches, based on continuous Euclidean spaces, have struggled with the discrete combinatorial formulation of the edit distance that models evolution and the hierarchical relationship that characterises real-world datasets. We present Neural Distance Embeddings (NeuroSEED), a general framework to embed sequences in geometric vector spaces, and illustrate the effectiveness of the hyperbolic space that captures the hierarchical structure and provides an average 22% reduction in embedding RMSE against the best competing geometry. The capacity of the framework and the significance of these improvements are then demonstrated devising supervised and unsupervised NeuroSEED approaches to multiple core tasks in bioinformatics. Benchmarked with common baselines, the proposed approaches display significant accuracy and/or runtime improvements on real-world datasets. As an example for hierarchical clustering, the proposed pretrained and from-scratch methods match the quality of competing baselines with 30x and 15x runtime reduction, respectively.

Motivation & Objective

  • To address the computational bottleneck of exact edit distance computation in large-scale biological sequence analysis.
  • To develop a data-dependent, geometric representation learning framework that captures the hierarchical structure inherent in biological evolution.
  • To accelerate core bioinformatics tasks—hierarchical clustering and multiple sequence alignment—by replacing slow, combinatorial algorithms with differentiable, learnable embeddings.
  • To demonstrate that hyperbolic geometry significantly outperforms Euclidean and other geometries in preserving edit distance in sequence embeddings.
  • To enable efficient, scalable, and accurate inference for sequence similarity and consensus sequence prediction using neural distance embeddings.

Proposed method

  • NeuroSEED maps biological sequences into geometric vector spaces using a learnable encoder fθ that preserves edit distance D(s1, s2) as a vector distance d(fθ(s1), fθ(s2)).
  • The framework evaluates multiple geometries (Euclidean, cosine, hyperbolic) and finds that hyperbolic space best captures hierarchical evolutionary relationships.
  • For training, the model minimizes mean squared error (MSE) between predicted vector distances and true edit distances, using a contrastive loss or triplet loss for improved generalization.
  • A variational autoencoder-based decoder is trained to reconstruct sequences from latent embeddings, with noise injected via the reparameterization trick to improve robustness to out-of-distribution points.
  • In hyperbolic space, the Wrapped Normal distribution generalizes Gaussian noise to maintain uniformity in the Poincaré ball model.
  • At test time, the Steiner string (consensus sequence) is approximated by finding the vector in latent space that minimizes sum of distances to all sequence embeddings, then decoding it via the generator network.

Experimental results

Research questions

  • RQ1Can a learnable, data-dependent embedding framework effectively approximate the discrete, combinatorial edit distance in biological sequences?
  • RQ2Does hyperbolic geometry provide a significant advantage over Euclidean or cosine spaces in preserving edit distance and capturing evolutionary hierarchy?
  • RQ3Can NeuroSEED-based models accelerate hierarchical clustering and multiple sequence alignment while maintaining or improving accuracy?
  • RQ4How does the use of continuous relaxation and variational autoencoding improve the robustness and performance of sequence reconstruction and consensus prediction?
  • RQ5To what extent can unsupervised and self-supervised training on edit distance approximations generalize to downstream bioinformatics tasks?

Key findings

  • NeuroSEED reduces embedding RMSE by an average of 22% when using hyperbolic space compared to the best competing geometry.
  • For hierarchical clustering, the proposed method achieves comparable accuracy to baselines with a 30x runtime reduction when using pretrained models and a 15x reduction when training from scratch.
  • On the Qiita dataset, the best-performing model (CNN with triplet loss in hyperbolic space) achieved 85.7% top-10 accuracy in closest string retrieval, outperforming k-mer and FFP baselines.
  • The variational autoencoder-based approach for multiple sequence alignment achieves performance on par with competitive baselines while significantly reducing runtime complexity.
  • The use of triplet loss in hyperbolic space led to unstable training, suggesting that MSE-based training is more stable in this geometry, though further analysis is needed.
  • The continuous relaxation of Dasgupta’s cost in hyperbolic space enabled a 15x speedup in hierarchical clustering with similar quality to state-of-the-art methods.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.