“Neural Networks learn Bloom Filters” by Alex Gibson

EPISODE · May 10, 2026 · 20 MIN

“Neural Networks learn Bloom Filters” by Alex Gibson

from LessWrong (30+ Karma)

Overview: We train a tiny ReLU network to output sparse top- distributions over a vocabulary much larger than its residual dimension. The trained network seems to converge to a mechanism closely resembling a Bloom filter: tokens are assigned sparse binary hashes, the hidden layer computes an approximate union indicator, and the output logits are linearly read from this union. Here's what a small network trained on a toy version of the sparse top- distribution task learns to use: Weight matrix of a 1-layer ReLU network trained via gradient descent on the toy -sparse distribution task below, for , , . Truncated at first tokens for visualisation purposes. Plot of the range of values of , it forms a bimodal distribution. That's the input weight matrix of the trained network. Every entry is either or . The network has effectively encoded a binary hash for each token - and as we'll show, this seems to enable the network to approximately simulate a Bloom filter, and so output the correct set of top- tokens with high probability. We provide a theoretical construction showing how to set the weights to exactly implement a Bloom filter. The real network [...] ---Outline:(00:10) Overview:(02:02) The Task:(03:27) Construction:(04:17) Formal construction:(04:47) Analysis of a single forward pass:(06:13) Training:(07:04) Behavioural analysis of the trained network:(10:14) Mechanistic analysis of the trained network:(16:21) Conclusion / Reflections:(18:24) Related work:(19:25) Further work: --- First published: May 9th, 2026 Source: https://www.lesswrong.com/posts/buxBdp8NtHGgBwabv/neural-networks-learn-bloom-filters --- Narrated by TYPE III AUDIO. ---Images from the article:Apple Podcasts and Spotify do not show images in the episode description. Try Pocket Casts, or another podcast app.

NOW PLAYING

“Neural Networks learn Bloom Filters” by Alex Gibson

0:00 20:24

No transcript for this episode yet

We transcribe on demand. Request one and we'll notify you when it's ready — usually under 10 minutes.

Accidental Accountant Regan Williams Hi, I'm Regan! I'm a CPA of 30+ years helping "accidental accountants" navigate tax & accounting issues with confidence! Here, we find solutions to common challenges bookkeepers, accountants and CPAs face. Don't see an answer to your question? Then ask! I'm here to help people like you. Profit Powerhouse Glenn Poulos Glenn Poulos is the co-founder, Vice President, and General Manager of Gap Wireless Inc., a leading product and service distributor for the mobile broadband and wireless markets. With over three decades of experience in sales, he has spent thousands of hours in the field or on the phone with customers and working with salespeople to help create several very successful companies. He is now also the host of this podcast, Profit Powerhouse!Our 20 to 30-min podcast shares amazing founder stories who reveal the smartest strategies for scaling TODAY. Love My Quarter Life Beth Schofield In a world filled with countless decisions and societal pressures, navigating our twenties & thirties can be tough. But you’re not alone, and you’re in the right place because this podcast is dedicated to supporting 20 & 30-somethings to overcome the overwhelm of Quarter Life Confusion. The weekly episodes offer you the motivation and inspiration you need to get unstuck, find what’s missing and move forward in life with meaning, passion and purpose. Two Recruiters: Zero Filter Two Recruiters At Two Recruiters: Zero Filter, we're on a mission to demystify the hiring process, share insider tips, and empower you to maneuver through the professional world with confidence. With more than 30 years of combined experience navigating the intricate web of job markets, talent acquisition, and career development, we're here to spill the tea on everything career related. But wait, there’s more! We will dive into many life topics that are interesting to us as well.  Get ready for a rollercoaster of insights, stories, and no-holds-barred advice!Join us for conversations that matter – where work, life, and authenticity collide in the most unexpected and rewarding ways.
URL copied to clipboard!