Skip to main content
QUICK REVIEW

[Paper Review] dna2vec: Consistent vector representations of variable-length k-mers

Patrick Ng|arXiv (Cornell University)|Jan 23, 2017
Topic ModelingComputer Science6 references147 citations
TL;DR

dna2vec learns distributed, fixed-dimension embeddings for variable-length k-mers using a word2vec-style skip-gram model, and shows that vector arithmetic mirrors nucleotide concatenation and correlates with Needleman-Wunsch similarity.

ABSTRACT

One of the ubiquitous representation of long DNA sequence is dividing it into shorter k-mer components. Unfortunately, the straightforward vector encoding of k-mer as a one-hot vector is vulnerable to the curse of dimensionality. Worse yet, the distance between any pair of one-hot vectors is equidistant. This is particularly problematic when applying the latest machine learning algorithms to solve problems in biological sequence analysis. In this paper, we propose a novel method to train distributed representations of variable-length k-mers. Our method is based on the popular word embedding model word2vec, which is trained on a shallow two-layer neural network. Our experiments provide evidence that the summing of dna2vec vectors is akin to nucleotides concatenation. We also demonstrate that there is correlation between Needleman-Wunsch similarity score and cosine similarity of dna2vec vectors.

Motivation & Objective

  • Motivate overcoming the curse of dimensionality in one-hot k-mer representations.
  • Propose a variable-length k-mer embedding in a common vector space.
  • Demonstrate that dna2vec vector arithmetic reflects nucleotide concatenation.
  • Relate embedding similarity to traditional sequence alignment measures.
  • Show potential applications for downstream machine learning on biological sequences.

Proposed method

  • Convert genomes into long non-overlapping fragments and optionally use reverse complements.
  • Generate overlapping variable-length k-mers by sliding windows with k sampled from Uniform(k_low, k_high).
  • Train a shallow two-layer neural network (skip-gram) following word2vec to predict context k-mers around a target k-mer.
  • Decompose the aggregated model into separate models per k-mer length for nearest-neighbor search.

Experimental results

Research questions

  • RQ1Can variable-length k-mers be embedded in a consistent vector space across lengths (3 ≤ k ≤ 8)?
  • RQ2Do dna2vec embeddings support vector arithmetic that mirrors nucleotide concatenation?
  • RQ3Is there a relationship between embedding cosine similarity and traditional sequence similarity measures (e.g., Needleman-Wunsch)?
  • RQ4How do nearest-neighbor relationships of embedded k-mers relate to biological sequence similarity?

Key findings

  • dna2vec embeds k-mers of different lengths into a common 100-dimensional space.
  • Vector summation of two k-mers often yields nearest neighbors that correspond to their concatenation, supporting a nucleotide concatenation analogy.
  • Cosine similarity between dna2vec vectors correlates with Needleman-Wunsch similarity scores (Spearman ρ ≈ 0.831 in a reported analysis).
  • Nearest neighbors of a k-mer in the embedding space tend to have alignment similarity distributions distinct from random pairs, indicating biologically meaningful structure.
  • Analogy experiments show substantial accuracy for both strong and weak concatenations, e.g., strong/constrained concatenations achieve high analogy scores across lengths.

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.