All models

LETTER

A learnable item tokenizer that turns item embeddings into code identifiers for generative recommendation.

Tabular and recommender · 1,292 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (833 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
22.4M
Operations
1,292
Framework
PyTorch
Recurrent
Yes
Published
CIKM 2024
Cited by
65 (as of 24 October 2026)
Authors
Wenjie Wang, Honghui Bao, Xinyu Lin and others
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m17754
Graph hash
23a9ddd3f0aca10df06997121299f07e6c701fc88df6061fdbcb224747662d45
Skeleton hash
c4453adf464c9001a1b11a80d7086642d4ff7e7dfab893711291ab9aa8adb8bb
Architecture hash
a8fdaf63c4a6f82bedcf159bcfda8110fc439d667b6917d192d9f9b254a7d896
Diagram SHA-256
8aba352b8156339734c65fa320d4a958d5bde6c7c2d3f8dcf376a3435f58d907
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

LETTER, a LEarnable Tokenizer for generaTivE Recommendation, builds the item identifiers that large language models work with when they are used for generative recommendation. The paper calls item tokenization a crucial challenge, because recommendation data has to be transformed into the language space of the LLM.

According to the paper, ID, textual and codebook-based identifiers each have shortcomings in encoding semantic information, incorporating collaborative signals, or handling code assignment bias. LETTER uses one regularizer for each: a Residual Quantized VAE for semantics, a contrastive alignment loss for collaborative signals, and a diversity loss against code assignment bias.

The authors instantiate LETTER on two generative recommender models and propose a ranking-guided generation loss for them. The paper reports experiments on three datasets. This model is the tokenizer itself, which the repository trains with its own script in a folder named RQ-VAE.

Key idea. LETTER is a learnable item tokenizer that combines hierarchical semantics, collaborative signals and code assignment diversity when building item identifiers for LLM-based generative recommendation.

  • letter
  • learnable item tokenization
  • learnable tokenizer for generative recommendation
  • item tokenizer
  • generative recommendation
  • llm-based recommendation
  • item identifiers
  • collaborative signals
  • code assignment diversity
  • residual quantization

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{wang2025learnableitemtokenizationgenerative,
      title={Learnable Item Tokenization for Generative Recommendation}, 
      author={Wenjie Wang and Honghui Bao and Xinyu Lin and Jizhi Zhang and Yongqi Li and Fuli Feng and See-Kiong Ng and Tat-Seng Chua},
      year={2025},
      eprint={2405.07314},
      archivePrefix={arXiv},
      primaryClass={cs.IR},
      url={https://arxiv.org/abs/2405.07314}, 
}