What is a semantic ID?

Definition

A semantic ID represents an item with discrete symbols derived from its content or behavior, rather than using only an arbitrary catalogue number. Similar items can receive representations that help a model learn useful patterns across a large collection.

In a recommendation model, these identifiers can become tokens in the model's vocabulary. The model can then connect item patterns to natural-language requests. The identifier is a learned representation, so it does not guarantee that every pair of similar-looking codes describes equally similar items.

ELI5

A semantic ID is a short code for an item that tries to carry useful clues about it. The code lets an AI system handle many catalogue items using a small set of symbols.

For example, a music service could give tracks codes learned from their descriptions and listening patterns. A model might then connect a request for gentle acoustic music to tracks with related codes.

Frequently asked questions

How is a semantic ID different from a catalogue number?

A catalogue number mainly identifies one item. A semantic ID is designed so its symbols can help a model learn relationships among items.

Does a semantic ID describe an item perfectly?

No. It compresses information and can lose detail, so recommendations still need evaluation against real user intent.

Videos explaining semantic ID

  1. Yves Raimond and Jacqueline Wood in blue shirts around the headline “SPOTIFY'S LLM RECS” on a black background.