Inferensys

Glossary

Template Modeling Score (TM-score)

A length-independent metric for assessing global structural similarity that is more sensitive to overall topology than RMSD, commonly used in RNA-Puzzles and CASP-RNA benchmarks.
ML engineer running AI model benchmarks, performance charts on multiple screens, late night home office setup.
STRUCTURAL SIMILARITY METRIC

What is Template Modeling Score (TM-score)?

The Template Modeling Score (TM-score) is a length-independent metric for assessing global structural similarity between two macromolecular conformations, designed to be more sensitive to overall topology than Root Mean Square Deviation (RMSD).

The Template Modeling Score (TM-score) is a quantitative metric that evaluates the global structural similarity between a predicted model and a reference structure, typically an experimentally determined native conformation. Unlike Root Mean Square Deviation (RMSD), which is dominated by large local deviations, TM-score is designed to be length-independent and more sensitive to the overall fold topology, making it the standard assessment metric in community-wide blind challenges like RNA-Puzzles and CASP-RNA.

TM-score is calculated by optimally superposing the predicted and reference structures, then computing a weighted sum of residue-pair distances normalized by a length-dependent scale factor d0. The score ranges from 0 to 1, where a value above 0.5 generally indicates the model shares the same global fold as the reference, and a value below 0.17 corresponds to random structural similarity. This normalization ensures comparability across RNA molecules of vastly different sizes, from small hairpins to large ribosomal domains.

Structural Similarity Metric

Key Properties of TM-score

The Template Modeling Score (TM-score) is a length-independent metric designed to assess global structural similarity, offering greater sensitivity to overall topology than RMSD. It is a standard benchmark in RNA-Puzzles and CASP-RNA.

01

Length-Independent Normalization

TM-score solves a critical flaw of RMSD by normalizing the error by the length of the target structure. This ensures a score of 0.5 has the same statistical significance for a 50-nucleotide hairpin as it does for a 500-nucleotide ribozyme. The normalization factor, d₀, scales with the structure size, making scores directly comparable across different RNA families and sizes without bias toward smaller structures.

0.0–1.0
Score Range
02

Topology-Weighted Scoring

Unlike RMSD, which treats all atomic distances equally, TM-score uses a Levitt-Gerstein weight function:

  • Small errors (< d₀) contribute near-linearly to the score
  • Large errors (> d₀) are down-weighted, preventing local outliers from dominating This weighting makes TM-score more sensitive to the global fold topology and less sensitive to flexible loop regions or terminal tails, aligning better with human expert assessment of structural similarity.
03

Statistical Significance Thresholds

TM-score values map to well-defined statistical confidence levels:

  • TM-score > 0.5: Indicates the two structures share the same global fold with high probability
  • TM-score < 0.17: Corresponds to random structural similarity
  • TM-score > 0.6: Considered a high-quality prediction in CASP-RNA benchmarks This statistical grounding allows researchers to set objective quality thresholds without subjective visual inspection.
> 0.5
Same Fold Threshold
< 0.17
Random Similarity
04

Optimal Superposition Independence

TM-score calculation involves finding the optimal rotation and translation that maximizes the score between two structures. This is performed using a heuristic iterative alignment algorithm rather than a single least-squares fit. The result is a superposition that prioritizes the core structural motif over peripheral elements, making it particularly effective for comparing RNA structures where conserved helical cores are more important than variable loop conformations.

05

Benchmark Standard in RNA-Puzzles

TM-score is the primary evaluation metric in RNA-Puzzles and CASP-RNA community-wide assessments. It is used alongside:

  • INF (Interaction Network Fidelity): Measures base-pairing and stacking accuracy
  • GDT-TS (Global Distance Test): Evaluates residue-level superposition
  • lDDT (local Distance Difference Test): Assesses per-residue accuracy TM-score's role is specifically to quantify whether the global tertiary architecture has been correctly captured, distinguishing topology-level success from local refinement quality.
06

Relationship to RMSD and GDT-TS

TM-score complements rather than replaces other metrics:

  • RMSD: Sensitive to local precision but length-dependent; a 5 Å RMSD is excellent for a ribosome but poor for a tetraloop
  • GDT-TS: Uses multiple distance thresholds but requires predefined cutoff values
  • TM-score: Provides a single, normalized score that balances global topology and local fit In practice, CASP-RNA evaluations report all three metrics, with TM-score serving as the primary indicator of fold-level correctness.
STRUCTURAL SIMILARITY METRICS

TM-score vs RMSD: Key Differences

Comparison of the two primary metrics for evaluating global structural similarity between predicted and experimental RNA 3D structures, highlighting their sensitivity to domain alignment, length dependence, and topological accuracy.

FeatureTM-scoreRMSDGDT-TS

Scale invariance

Length-normalized (0-1)

Length independence

Topology sensitivity

High (global fold)

Low (local deviations dominate)

Moderate

Score range

0.0 to 1.0

0 Å to ∞

0.0 to 1.0

Random structure score

~0.17

Depends on length

~0.05

Native structure score

1.0

0.0 Å

1.0

Penalizes domain misalignment

Used in CASP-RNA

Used in RNA-Puzzles

STRUCTURAL SIMILARITY

Frequently Asked Questions

Answers to common questions about the Template Modeling Score, a critical metric for evaluating the global accuracy of predicted RNA and protein structures.

The Template Modeling Score (TM-score) is a length-independent metric designed to assess the global structural similarity between a predicted model and an experimentally determined reference structure. It is calculated by optimally superimposing the two structures and measuring the residue-to-residue distances, applying a length-dependent scaling factor d0 to normalize the score. The formula is:

code
TM-score = (1 / L_target) * Σ [1 / (1 + (d_i / d0)^2)]

Where L_target is the length of the target sequence, d_i is the distance between the i-th pair of aligned residues, and d0 = 1.24 * ∛(L_target - 15) - 1.8 is the normalization scale. This scaling ensures that a random structure pair yields a TM-score of approximately 0.17, while a perfect match yields a score of 1.0, independent of the protein or RNA's size.

Prasad Kumkar

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.