← Latest papers
💻 computer science

Tokenizing Numerical and Embedding Features for LLM RecSys

This paper proposes a soft-token fusion framework that maps continuous numerical and embedding features into the LLM embedding space via an interaction-based module, significantly improving retrieval performance on recommendation benchmarks compared to existing LLM-based baselines.

Original authors: Zhe Xu, Ankit Peshin, Chiyu Zhang, Feng Qi, Johnson Lui, Anil Ramakrishna, Justin Johnson, Carl Hu, Kaushik Rangadurai, Luke Simon

Published 2026-07-14
📖 5 min read🧠 Deep dive

Original authors: Zhe Xu, Ankit Peshin, Chiyu Zhang, Feng Qi, Johnson Lui, Anil Ramakrishna, Justin Johnson, Carl Hu, Kaushik Rangadurai, Luke Simon

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you have a super-smart robot librarian (a Large Language Model, or LLM) who is amazing at reading stories, understanding jokes, and chatting about books. You want to hire this robot to recommend the perfect video game or toy to a customer.

Here's the problem: The robot only speaks "Text." It understands words like "cool," "expensive," or "action-adventure." But the real world of recommendations is messy. It's full of numbers (like a price tag of $19.99) and secret codes (dense embeddings) that other computer systems use to know what a user likes.

If you just tell the robot, "This item costs 19.99," it might get confused. Is 19.99 a date? A score? A tiny number? If you just mash these numbers and secret codes into the robot's text stream without thinking, they might get lost in the noise, like trying to hear a whisper in a rock concert.

The Big Idea: The "Soft Token" Translator
The authors of this paper came up with a clever solution called Soft-Token Fusion. Instead of forcing the robot to read raw numbers, they built a special translator. This translator turns those tricky numbers and secret codes into "soft tokens."

Think of a soft token like a custom-made, invisible LEGO brick. It's not a word you can read, but it's a shape the robot understands perfectly. The translator takes a price like $19.99, wraps it in a special mathematical blanket (using something called Fourier features, which is like turning a smooth curve into a specific pattern of waves), and turns it into a soft token. Now, the robot can hold this "price brick" right next to the "toy description brick" and understand how they fit together.

The Secret Sauce: Making Them Talk to Each Other
The researchers tried a few ways to feed these bricks to the robot.

  1. The "Just Pile It Up" Method: They tried just dumping the text, the price-bricks, and the code-bricks all in a line. They found this didn't work well. It's like throwing a pile of LEGOs, a book, and a sandwich on a table and expecting the robot to instantly know which piece goes with which. The robot got confused, and the recommendations weren't great.
  2. The "Conversation" Method (The Winner): Instead of just piling them up, they built a little meeting room (an interaction-based fusion module) where the price-bricks and code-bricks could chat with each other before meeting the robot. They figured out how the price relates to the item's secret code, refined the message, and then presented the whole package to the robot.

What They Found
The team tested this on three huge sets of real-world data from Amazon: Beauty products, Sports and Outdoors gear, and Toys and Games.

  • The Results: When they used the "Conversation" method, the robot got much better at picking the right item.
    • On the Beauty dataset, the "Conversation" method got a Recall@5 score of 0.0459, beating the "Just Pile It Up" method which only got 0.0423.
    • On Sports and Outdoors, the "Conversation" method hit 0.0253, while the simple pile-up method dropped to 0.0220.
    • On Toys and Games, the improvement was huge. The "Conversation" method scored 0.0695, whereas the simple pile-up method actually did worse than just using text alone, scoring only 0.0575.

What They Ruled Out
The paper explicitly argues against a few things:

  • Don't just mash it all together: Simply sticking numerical features and text features together in a long list (direct concatenation) is not the answer. In fact, on the Toys dataset, this simple method performed worse than just using text alone.
  • Don't just turn numbers into words: You can't just write "nineteen point nine nine" and hope the robot understands the math. The numbers need to stay as continuous, smooth signals (soft tokens) to be useful.
  • Don't skip the meeting: You can't just feed the raw data to the robot without letting the different types of data (price vs. code) interact first.

How Sure Are They?
The authors are quite confident in these results because they ran actual experiments on real data, not just simulations. They compared their new method against many other famous recommendation systems (like GRU4Rec, SASRec, and TIGER).

The results show a nuanced picture: On the Toys and Games dataset, their method beat the previous top contender, TIGER, by a significant margin (improving Recall@5 from 0.0521 to 0.0695). However, on the Beauty and Sports and Outdoors datasets, TIGER remained competitive on ranking-sensitive NDCG metrics, even though the new model was stronger on Recall@10. This shows that while the new method is highly effective, the best approach can depend on which specific metric you care about most.

The Takeaway
The paper suggests that if you want a super-smart language model to be a great recommender, you can't just feed it text. You have to translate the numbers and secret codes into a language it understands (soft tokens) and, most importantly, let those different pieces of information talk to each other before they meet the robot. It's not just about having more information; it's about how you introduce that information to the brain.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →