Project

LLM Based Keyword Extraction

  • Research Scientist Consultant
  • Allref
  • 2022-2023

Keyword extraction makes categorization possible in large-scale recommendation systems, and LLMs outperform earlier statistical and graph-based methods. However, directly prompting an LLM across millions of documents can require thousands of dollars of compute and weeks of processing time. At Allref, I built an LLM-based extraction method that scores candidate spans directly from the next-token distribution, costing a single output token per keyword rather than a full generation pass. It processed the full 34-million-article corpus in a few days on a single RTX 3090, with quality comparable to direct prompting.