Related Experiment Video
Updated: Jun 27, 2025

Augmenting Large Language Models via Vector Embeddings to Improve Domain-Specific Responsiveness
Published on: December 6, 2024
Scoring alignments by embedding vector similarity
Sepehr Ashrafzadeh1, G Brian Golding2, Silvana Ilie3
1Department of Computer Science, University of Western Ontario, London, N6A 5B7, Ontario, Canada.
Abstract:
Sequence similarity is of paramount importance in biology, as similar sequences tend to have similar function and share common ancestry. Scoring matrices, such as PAM or BLOSUM, play a crucial role in all bioinformatics algorithms for identifying similarities, but have the drawback that they are fixed, independent of context. We propose a new scoring method for amino acid similarity that remedies this weakness, being contextually dependent. It relies on recent advances in deep learning architectures that employ self-supervised learning in order to leverage the power of enormous amounts of unlabelled data to generate contextual embeddings, which are vector representations for words. These ideas have been applied to protein sequences, producing embedding vectors for protein residues. We propose the E-score between two residues as the cosine similarity between their embedding vector representations. Thorough testing on a wide variety of reference multiple sequence alignments indicate that the alignments produced using the new $E$-score method, especially ProtT5-score, are significantly better than those obtained using BLOSUM matrices. The new method proposes to change the way alignments are computed, with far-reaching implications in all areas of textual data that use sequence similarity. The program to compute alignments based on various $E$-scores is available as a web server at e-score.csd.uwo.ca. The source code is freely available for download from github.com/lucian-ilie/E-score.
Related Concept Videos
Wilcoxon Signed-Ranks Test for Matched Pairs
Kendall's Coefficient of Concordance
Position Vectors
For instance, we want to locate a point P(x, y, z) relative to the origin of coordinates O. In that case, we can define a position...
Sign Test for Matched Pairs
To conduct the sign test, we first calculate the differences in...
Spearman's Rank Correlation Test
Spearman's test calculates...
Vector Product (Cross Product)
Consider the cross product of two vectors. Imagine rotating the first vector about...

