TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Monolith: Real time recommendation system with collisionless embedding table

70 pointsby wallflowerover 2 years ago

4 comments

kordlessagainover 2 years ago
The document discusses a monolith real-time recommendation system with collisionless embedding table. The system is designed to provide personalized content for each individual user in real-time. The data for recommendation mostly contain sparse categorical features, some of which appear with low frequency.<p>A collisionless embedding table is a type of data structure that is used to store information in a way that minimizes the chances of two pieces of information colliding or conflicting with each other. This is often done by using a hashing algorithm to map data to specific locations in the table, which reduces the likelihood of two pieces of data being stored in the same location.<p>Embeddings are a way of representing data in a lower-dimensional space. In this case, the embedding is used to represent the data from the user&#x27;s interactions. This can be used to make predictions about relationships between vectors.<p>The advantage of storing the dot products of the embeddings would be that it would allow for a more efficient calculation of the similarity between two vectors. Dot products are a measure of how similar two vectors are, so by storing the dot products of the embeddings, it would be possible to quickly calculate the similarity between any two vectors. This would be especially useful in a recommendation system, where it is often necessary to calculate the similarity between a user&#x27;s vector and a large number of other vectors in order to find the most similar items.
eggie5over 2 years ago
Interesting work on Online Learning:<p>There are many empirical studies which show for feature hashing, a few collisions don&#x27;t have a sig impact on perf (<a href="https:&#x2F;&#x2F;youtu.be&#x2F;ARjNMdCzN-Q?t=599" rel="nofollow">https:&#x2F;&#x2F;youtu.be&#x2F;ARjNMdCzN-Q?t=599</a>).<p>However, for some archs, the impact is catastrophic. Eg matrix factorization. Any collision leads to an incorrect item. Zero Collision Hashing addresses the problem of mapping collisions. One technique is to introduce state into the hashing fn using the current id assignments.<p>real time publishing protocol:<p>* minute-level weight syncing * delta pushes only * ignore machine failures and rely on (possibly stale) full snapshot loading to bootstrap the new hosts
评论 #33519880 未加载
alsurenover 2 years ago
Does anyone have an archive of their code for this?<p><a href="https:&#x2F;&#x2F;github.com&#x2F;bytedance&#x2F;monolith" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;bytedance&#x2F;monolith</a> exists, but is an empty repo. A Web Search for &quot;github bytedance monolith&quot; finds a bunch of files in that repo that are 404s when you click on them.
评论 #33517841 未加载
jamesblondeover 2 years ago
It is an interesting architecture. Flink for real time feature computation and Kafka to share training samples with clients for low end to end latency.<p>Nothing on use of embeddings for similarity search, though. I assume they are using FAIS?