NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Conditional Memory Enhanced Item Representation for Generative Recommendation

Ziwei Liu, Yejing Wang, Shengyu Zhou, Xinhang Li, Xiangyu ZhaoarXiv 2026

TL;DR

ComeIR is a plug-and-play framework for Generative Recommendation (GR) that solves the efficiency-accuracy trade-off when compressing item Semantic IDs (SIDs) into compact representations. By leveraging external, sparse conditional memories to capture intra-item hierarchies and inter-item transitions, ComeIR achieves significant recommendation accuracy improvements alongside a 2.5× average inference speedup.

What Problem Does This Paper Address?

Generative Recommendation (GR) treats recommendation as a language generation task. Instead of using traditional atomic item IDs, it maps items to Semantic IDs (SIDs)—tuples of discrete codes that capture item categories and attributes—and trains a Large Language Model (LLM) to autoregressively predict the next item's SID.

However, how these SIDs are fed into the LLM (the representation stage) remains a major bottleneck:

  1. Flattening SIDs into long token sequences creates massive computational overhead, exploding the input sequence length by a factor of the SID length ($L \times N$).
  2. Token Merging (compressing tokens into a single item vector) reduces sequence length but destroys the hierarchical structure of the SID. This creates an Input-Output Granularity Mismatch, where the LLM receives compressed item-level inputs but must generate fine-grained token-level outputs.

The authors call this the Identity-Structure Preservation Conflict: how do we keep inputs compact for efficiency while preserving the fine-grained structural evidence required for token-level generation?

Figure 1: Overview of GR pipeline. Quantization transforms items from features to SID. Representation organizes SID as input to the LLM. Generation uses the LLM to generate the next item’s SID.

Methods

The authors propose ComeIR (Conditional Memory Enhanced Item Representation), which models representation construction as a memory-conditioned transformation. It consists of four key components:

  1. MM-guided Token Scoring: Uses the original multimodal item features (e.g., text, categories) as an identity query to adaptively score and weight the contribution of each code layer within the SID, ensuring identity-relevant codes are emphasized during compression.
  2. Dual-level Engram Memory: Implements two sparse, hash-addressed memories external to the LLM:
  3. Intra-item Engram: Memorizes how codes are composed hierarchically within a single item's SID.
  4. Inter-item Engram: Tracks transition patterns across different items in the user's history at multiple granularities.
  5. Memory-conditioned Token Merge: Aggregates the scored tokens and retrieved memories into a compact item-level vector via a gated residual update.
  6. Memory-restoring Prediction Head: Re-injects the same intra- and inter-item memories during the decoding phase, bridging the granularity mismatch and allowing the LLM to accurately predict fine-grained tokens from compressed item inputs.
Figure 2: The overall framework of the proposed ComeIR. The code layer 𝐿is set to 3 for illustration.

Datasets

The framework was evaluated on three public sequential recommendation benchmarks:

  • Yelp: 15,720 users, 11,383 items.
  • Amazon Industrial: 27,190 users, 28,461 items.
  • Amazon Instrument: 40,644 users, 30,676 items.

Experiments spanned multiple quantization mechanisms (RQ-VAE and RQ-KMeans) and LLM backbones (Qwen3-0.6B and LLaMA3-1B).

Key Insights and Ideas

  • Decoupling Static Structure from the LLM: By offloading structural patterns to external sparse engram memories, the model can feed compact item-level representations into the LLM without losing the fine-grained token relationships needed for decoding.
  • Granularity Alignment is Crucial: Forcing the decoder to guess token structures from fully compressed vectors degrades performance. Restoring memory at the prediction head ensures the input and output granularities match.
  • Power-Law Scaling for Recommendation Memory: Just like LLM parameters, expanding the capacity of these external sparse hash tables yields predictable, log-linear performance gains up to a certain threshold.

Key Results

  • Superior Accuracy: ComeIR consistently outperforms standard GR (flattening) and naive Token Merging (+TM) across all datasets and backbones. For example, on the Yelp dataset with RQ-VAE, ComeIR yields an average improvement of 8.06% for Qwen3-0.6B and 7.91% for LLaMA3-1B.
  • Significant Speedup: By reducing the input sequence length from $L \times N$ to $N$, ComeIR achieves an average 2.5× speedup in inference latency, even when paired with already-optimized architectures like NEZHA.
  • Clear Scaling Laws: Increasing the sparse capacity of the Engram memories continuously improves representation quality, following a clear power-law scaling trend.
Figure 3: Scaling analysis of dual-level Engram memory on the Yelp dataset.

Limitations and Future Work

  • Sparse Over-allocation: If the inter-item engram memory capacity is scaled too high (e.g., scale factor $\ge 5.0$), performance degrades. This happens because the table size grows exponentially, causing most buckets to rarely receive updates, which hurts the learning of reliable memory vectors.
  • Static Quantization Dependency: ComeIR acts as a bridge between a fixed quantization mechanism and the generator. Future work could explore end-to-end joint optimization where the quantization mechanism and the conditional memories are learned simultaneously.

Summary updated

BibTeX
@misc{liu2026conditional,
  author = {Ziwei Liu and Yejing Wang and Shengyu Zhou and Xinhang Li and Xiangyu Zhao},
  title = {{Conditional Memory Enhanced Item Representation for Generative Recommendation}},
  year = {2026},
  eprint = {2605.11447},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.11447},
}
Figure