Inferensys

Glossary

Candidate Scoring

Candidate scoring is the process of assigning a numerical weight to each candidate keyphrase based on features like frequency, position, and semantic similarity to rank their relevance.
Developer reviewing semantic search engine results on laptop, relevance scores visible, technical search demo.
KEYPHRASE EXTRACTION

What is Candidate Scoring?

Candidate scoring is the algorithmic process of assigning a numerical weight to each potential keyphrase to quantify its relevance and salience relative to a source document.

Candidate scoring is the computational step in keyphrase extraction where a numerical relevance weight is assigned to every phrase in the candidate pool. This score is derived from a combination of statistical features—such as term frequency, inverse document frequency, and positional bias—and semantic features like embedding similarity to the document centroid. The goal is to transform a raw list of n-grams into a ranked list where the highest-scoring items represent the document's core topics.

Scoring functions range from simple unsupervised heuristics like TF-IDF averaging to complex neural models that compute the cosine similarity between a candidate's BERT embedding and the document embedding. Advanced implementations incorporate phraseness and informativeness as distinct scoring dimensions, then fuse them via weighted linear combination or Maximal Marginal Relevance (MMR) to penalize redundancy among top-ranked candidates.

CANDIDATE SCORING

Core Scoring Features

The quantitative engine that assigns a relevance weight to each candidate keyphrase, transforming raw n-grams into a ranked list based on statistical, positional, and semantic signals.

01

Term Frequency-Inverse Document Frequency (TF-IDF)

A foundational statistical measure that evaluates how important a word is to a document in a collection. Term Frequency (TF) counts how often a term appears, while Inverse Document Frequency (IDF) penalizes terms that appear across many documents.

  • Mechanism: TF-IDF = TF * log(N/DF)
  • Strength: Excellent at filtering out common stop words and corpus-specific noise.
  • Limitation: A pure bag-of-words approach that ignores word order and semantics.
02

Positional Weighting

A heuristic scoring boost based on the location of a candidate phrase within a document's structure. The assumption is that authors place critical terms in prominent positions.

  • Title & Abstract: Phrases appearing here receive the highest multipliers.
  • First Paragraph: Often contains the core thesis statement.
  • Section Headers: Terms in H1/H2 tags are weighted more heavily than body text.
03

Phraseness vs. Informativeness

A dual-component scoring model that separates linguistic quality from topical relevance.

  • Phraseness: Measures how grammatically well-formed a candidate is as a multi-word unit, independent of the document's topic. It penalizes fragments like "the quick" while boosting "quick brown fox".
  • Informativeness: Quantifies how well the phrase captures domain-specific content. It rewards terms with high TF-IDF or strong alignment with the document's central theme.
04

Semantic Similarity Scoring

A neural approach that ranks candidates by computing the cosine similarity between their dense vector embeddings and the document's overall embedding.

  • KeyBERT: Embeds both the document and candidate phrases using a transformer model, then selects the top-K most similar phrases.
  • EmbedRank: Extends this by using sentence embeddings and applying Maximal Marginal Relevance (MMR) for diversity.
  • Advantage: Captures synonyms and paraphrases that statistical methods miss.
05

Graph-Based Centrality

Algorithms that represent text as a network where nodes are candidate words or phrases and edges represent co-occurrence within a sliding window. Centrality scores determine salience.

  • TextRank: Builds a co-occurrence graph and runs the PageRank algorithm. Words with high eigenvector centrality are selected as keyphrases.
  • SingleRank: A variant that adds weighted edges based on co-occurrence distance.
  • Benefit: Unsupervised and domain-independent, requiring no training data.
06

Ensemble & Fusion Scoring

Combines the ranked outputs of multiple extraction algorithms to produce a more robust final ordering. This mitigates the individual biases of any single method.

  • Reciprocal Rank Fusion (RRF): A simple, effective method that sums the reciprocal of each candidate's rank across multiple lists: score = Σ 1/(k + rank).
  • Weighted Voting: Assigns confidence weights to each base algorithm based on historical performance on a validation set.
  • Use Case: Ideal when combining a fast statistical method like YAKE with a semantic method like KeyBERT.
CANDIDATE SCORING INSIGHTS

Frequently Asked Questions

Explore the core mechanisms behind how keyphrase extraction systems assign numerical weights to candidate phrases, distinguishing signal from noise in unstructured text.

Candidate Scoring is the algorithmic process of assigning a numerical weight to each potential keyphrase (candidate) to quantify its relevance to the source document. Unlike simple frequency counting, modern scoring functions synthesize multiple features—including term frequency, inverse document frequency, phraseness, and informativeness—to rank candidates. The goal is to elevate phrases that are both linguistically well-formed and topically central while suppressing generic or noisy n-grams. This step directly follows phrase candidate generation and precedes final selection or re-ranking.

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.