UniRef Clusters (UniProt Reference Clusters) are hierarchical groupings of protein sequences that merge identical or highly similar sequences into a single representative entry. The system provides three standard identity thresholds—UniRef100 (100% identity), UniRef90 (≥90% identity), and UniRef50 (≥50% identity)—each progressively collapsing redundancy while preserving biological diversity. The representative sequence for each cluster is typically the longest or most well-annotated member, and cluster membership is recalculated with each UniProt release to incorporate new sequence data.
Glossary
UniRef Clusters

What is UniRef Clusters?
UniRef clusters are pre-computed, non-redundant sets of protein sequences from the UniProt Knowledgebase, grouped at varying sequence identity thresholds to accelerate computational analysis and reduce bias in machine learning training sets.
In protein language model training, UniRef50 and UniRef90 clusters are essential for constructing non-redundant pre-training corpora that prevent models from memorizing near-duplicate sequences, which would inflate performance metrics and obscure true generalization. Models like ESM-2 and ProtBERT rely on UniRef-derived datasets to ensure that evaluation benchmarks measure functional understanding rather than sequence identity leakage. The clustering algorithm uses the CD-HIT greedy incremental approach, which prioritizes sequence length during cluster seed selection, ensuring computationally efficient processing of hundreds of millions of sequences.
Key Features of UniRef Clusters
UniRef clusters provide a foundational, non-redundant dataset by grouping sequences at varying identity thresholds, enabling efficient and unbiased training for protein language models.
Hierarchical Identity Thresholds
UniRef provides three standard clustering levels to balance sequence diversity and dataset size:
- UniRef100: Groups identical sequences and subfragments with 100% identity.
- UniRef90: Clusters sequences with at least 90% identity, reducing dataset size by ~40% compared to UniRef100.
- UniRef50: Clusters sequences with at least 50% identity, reducing size by ~80% and providing the most compact, diverse set for deep homology detection.
Redundancy Reduction for Training
Training a protein language model on raw databases like UniProtKB would bias the model toward over-represented protein families. UniRef clusters mitigate this by:
- Removing bias: Each cluster is represented by a single seed sequence, preventing the model from memorizing near-duplicate entries.
- Improving generalization: The non-redundant nature forces the model to learn generalizable features of protein fitness landscapes rather than dataset artifacts.
- Computational efficiency: Drastically reduces the effective training set size, lowering the compute cost for large models like ProtBERT and ESM-2.
Seed Sequence Selection
Each UniRef cluster is represented by a canonical 'seed' sequence, chosen based on a strict quality hierarchy:
- Curation priority: Entries from Swiss-Prot (manually annotated) are preferred over TrEMBL (automatically annotated).
- Length optimization: The longest sequence with the highest annotation score is selected to maximize information content.
- Taxonomic diversity: The selection process ensures broad representation across the tree of life, preventing model bias toward model organisms.
Cluster Membership and Annotation
While the seed sequence provides the canonical representation, full cluster membership is retained for rich annotation transfer:
- GO term propagation: Experimentally determined Gene Ontology annotations from any member can be reliably transferred to the seed sequence.
- Taxonomic lineage: Each cluster retains the full taxonomic identifiers of all members, enabling domain-specific model fine-tuning.
- Proteome mapping: Clusters provide direct mappings to complete reference proteomes, linking sequence representation to organism-level biology.
Pre-computed Sequence Alignments
UniRef clusters are built using the CD-HIT algorithm, a greedy incremental clustering method that avoids expensive all-vs-all sequence alignments. Key properties include:
- Short word filtering: CD-HIT uses k-mer based filtering to rapidly estimate sequence identity without full alignment.
- Bandwidth optimization: Clustering is performed in order of decreasing sequence length, ensuring the longest, highest-quality sequences become seeds.
- Scalable architecture: The algorithm's linear time complexity allows it to scale to the hundreds of millions of sequences in UniProtKB.
Foundation for Protein Embeddings
UniRef50 and UniRef90 are the standard training corpora for generating robust protein embeddings. Models like ProtBERT and ESM-2 are pre-trained on these clusters to learn:
- Evolutionary representations: The sequence diversity within a 50% identity cluster captures deep evolutionary relationships, teaching models to recognize remote homologs.
- Variant effect baselines: The non-redundant nature provides a clean background distribution for zero-shot variant effect prediction, where a mutation's impact is scored by its deviation from the cluster's consensus.
Frequently Asked Questions
Clear answers to common questions about UniRef sequence clustering, identity thresholds, and their role in building robust protein language models.
UniRef clusters are pre-computed groupings of protein sequences from the UniProt Knowledgebase that share sequence identity above defined thresholds. The system operates through a hierarchical clustering algorithm: sequences are first grouped into UniRef100 (100% identity, merging identical sequences and fragments), then clustered into UniRef90 (≥90% identity) and UniRef50 (≥50% identity). At each level, the longest sequence is selected as the representative, and all members are compressed into a single cluster. This redundancy reduction is critical for machine learning—training a protein language model on raw UniProt would over-represent well-studied proteins like human p53 or GFP, biasing the model. By using UniRef50 as a training set, each cluster contributes roughly equal weight, forcing the model to learn generalizable sequence grammar rather than memorizing over-represented families. The compression is dramatic: UniRef100 contains ~300 million clusters, while UniRef50 collapses this to ~50 million representative sequences, making large-scale pre-training computationally feasible without sacrificing evolutionary diversity.
UniRef100 vs UniRef90 vs UniRef50
Comparison of the three standard UniRef clustering levels defined by sequence identity thresholds, detailing their composition, use cases, and trade-offs for training protein language models.
| Feature | UniRef100 | UniRef90 | UniRef50 |
|---|---|---|---|
Sequence Identity Threshold | 100% | ≥ 90% | ≥ 50% |
Cluster Composition | Identical sequences and subfragments | Sequences with ≥ 90% mutual identity | Sequences with ≥ 50% mutual identity |
Redundancy Reduction | Minimal (removes exact duplicates only) | Moderate (merges close homologs and isoforms) | Aggressive (merges distant homologs) |
Approximate Cluster Count (Release 2024_01) | ~300 million | ~150 million | ~50 million |
Representative Sequence Selection | Longest sequence in cluster | Longest sequence in cluster | Longest sequence in cluster |
Suitable for PLM Pre-training | |||
Captures Natural Variants and Isoforms | |||
Risk of Grouping Paralogs |
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Understanding UniRef clusters requires familiarity with the foundational databases, algorithms, and sequence analysis techniques that underpin non-redundant protein datasets.
CD-HIT Algorithm
A greedy incremental clustering algorithm widely used to generate non-redundant sequence sets. It is the core engine behind the original UniRef construction.
- Mechanism: Sorts sequences by length, then the longest sequence becomes a cluster representative. Subsequent sequences are compared to existing representatives.
- Identity Threshold: Uses a short-word filter to rapidly estimate sequence identity without full alignment.
- Efficiency: Designed for extremely large datasets, trading marginal accuracy for high speed.
MMseqs2 (Many-against-Many Sequence Searching)
A modern, ultra-fast software suite for clustering and searching massive protein sequence sets. It is the current engine for generating UniRef clusters at scale.
- Speed: Achieves orders of magnitude speedup over BLAST through a prefiltering step that reduces the number of expensive sequence alignments.
- Sensitivity: Maintains high alignment quality by using vectorized Smith-Waterman implementations.
- Clustering Modes: Supports both connected component and greedy set-cover clustering, offering flexibility for different redundancy reduction goals.
Sequence Identity Thresholds
The specific percentage cutoffs that define the granularity of a UniRef cluster. They directly control the trade-off between dataset size and evolutionary resolution.
- UniRef100: 100% identity. Groups identical sequences and subfragments, providing the most comprehensive set.
- UniRef90: 90% identity. Clusters sequences with high similarity, often representing close orthologs or strain-level variants.
- UniRef50: 50% identity. Groups distantly related sequences, capturing broad protein families and providing the most compressed, information-dense training set.
Cluster Representative Selection
The heuristic process of choosing a single canonical sequence to represent an entire cluster. This choice impacts downstream model quality.
- Criteria: Typically selects the longest sequence, the one with the highest annotation score, or the entry from a reference proteome.
- Information Density: The representative sequence carries the functional annotations for the entire cluster.
- Bias Mitigation: Proper selection prevents over-representation of heavily sequenced model organisms in training data.
Non-Redundancy in Machine Learning
The core principle motivating UniRef's design. Removing sequence redundancy is critical for preventing data leakage and inflated performance estimates in protein language models.
- Data Leakage: If highly similar sequences appear in both training and test sets, the model memorizes rather than learns generalizable features.
- Homology Reduction: UniRef50 is a standard benchmark split to ensure test proteins share no more than 50% identity with any training protein.
- Training Efficiency: Reduces the computational burden by removing near-duplicate samples without significant loss of biological diversity.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us