frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

EM-LLM: Human-Inspired Episodic Memory for Infinite Context LLMs

https://github.com/em-llm/EM-LLM-model
113•jbotz•6mo ago

Comments

MacsHeadroom•6mo ago
So, infinite context length by making it compute bound instead of memory bound. Curious how much longer this takes to run and when it makes sense to use vs RAG.
zfountas•6mo ago
Hi MacsHeadroom, first author here. Thanks for the great questions about compute/memory trade-offs.

The quick take: To give you an example of processing speed, with a 7B model on an NVIDIA V100, EM-LLM processes (or generates) about 326 tokens/sec with a 51.2K context window (which is quite competitive for these old GPUs).

More broadly, EM-LLM is designed to make ultra-long contexts (memory-prohibitive for standard O(n^2) attention) computationally tractable. The Appendix C of our paper https://openreview.net/pdf?id=BI2int5SAC details how: significantly better attention scaling, efficient O(nm) memory formation, and large KV cache management via CPU/disk offloading. While there's a slight per-chunk overhead compared to the simplest retrieval methods initially, the crucial part is our ability to handle sequences at scales infeasible for full-context models. For instance, we're successfully using 8B models with 10M token contexts on a single GPU without prohibitive delays.

Regarding RAG in particular, EM-LLM often shows significant gains on tasks needing deep understanding of a single, long, coherent context. A key reason is that EM-LLM allows each layer to retrieve and integrate relevant information from different "episodes" of the context independently, offering more nuance than a typical single RAG step, for similar overall resource use.

mountainriver•6mo ago
TTT, cannon layers, and titans seem like a stronger approach IMO.

Information needs to be compressed into latent space or it becomes computationally intractable

searchguy•6mo ago
do you have references to

> TTT, cannon layers, and titans

najarvg•6mo ago
This was the nearest reference I could find. Links to an unofficial pytorch implementation on Github are also linked in the threads somewhere - https://www.reddit.com/r/LocalLLaMA/comments/1i0q8nw/titans_...
vessenes•6mo ago
is titans replicated? I feel like lucidrains couldn't replicate.
logicchains•6mo ago
I think something like Titans explains Gemini's excellent long context performance. That would explain why the Titan team hasn't released the training code or hyperpameters used even though they said in the paper that they would, and why soon after that it came out that DeepMind would be holding off publishing new results for 6 months to avoid giving away competitive advantages.
p_v_doom•6mo ago
Interesting. Before there even was attention I was thinking that the episodic memory model offers something that could be very useful for neural nets, so its cool to see people testing that
killerstorm•6mo ago
Note that this works within a single sequence of tokens. It might be consistent with "episodic memory" metaphor if we consider a particular transformer run as its experience.

But this might be very different from what people expect from "memory" - i.e. ability to learn vast amounts of information and retrieve it as necessary.

This is more like a refinement of transformer attention: instead of running attention over all tokens (which is very expensive as it's quadratic), it selects a subset of token spans and runs fine-grained attention only on those. So it essentially breaks transformer attention into two parts - coarse-grained (k-NN over token spans) and fine-grained (normal).

It might be a great thing for long-context situations. But it doesn't make sense when you want millions of different facts to be considered - making them into long context is rather inefficient.

yorwba•6mo ago
It would be inefficient if you had to do it from scratch for every query, but if you can do it once as a preprocessing step and reuse the prepared context for many queries, it might start to become more efficient than a shorter context that includes only some documents but has to be reprocessed because it's different every time.
killerstorm•6mo ago
Yes, I think it might be a good solution where you have a context up to 10M of tokens and you do a lot of requests with that context. It might be relevant for agentic stuff which tends to produce long chat logs - especially with some gadgets on top, e.g. some 'episodes' might be completely removed as obsolete.

But I don't think it's a good solution for bigger amounts of data - as in that case it's more beneficial if that can be formed into independent memories.

A new bridge links the math of infinity to computer science

https://www.quantamagazine.org/a-new-bridge-links-the-strange-math-of-infinity-to-computer-scienc...
130•digital55•7h ago•36 comments

A DOOM vector engine for rendering in KiCad, and over an audio jack

https://www.mikeayles.com/#kidoom
81•mikeayles•4h ago•9 comments

Show HN: We built an open source, zero webhooks payment processor

https://github.com/flowglad/flowglad
229•agreeahmed•9h ago•144 comments

Space Truckin' – The Nostromo (2012)

https://alienseries.wordpress.com/2012/10/23/space-truckin-the-nostromo/
5•exvi•24m ago•0 comments

Ironwood, our latest TPU

https://blog.google/products/google-cloud/ironwood-google-tpu-things-to-know/
44•zdw•4h ago•8 comments

The fall of Labubus and the mush of modern internet trends

https://www.michigandaily.com/arts/digital-culture/the-fall-of-labubus-and-the-mush-of-modern-int...
46•gnabgib•2d ago•48 comments

The Definitive Classic Mac Pro (2006-2012) Upgrade Guide

https://blog.greggant.com/posts/2018/05/07/definitive-mac-pro-upgrade-guide.html
14•surprisetalk•2d ago•5 comments

Google Antigravity exfiltrates data via indirect prompt injection attack

https://www.promptarmor.com/resources/google-antigravity-exfiltrates-data
575•jjmaxwell4•8h ago•156 comments

Reinventing how .NET builds and ships (again)

https://devblogs.microsoft.com/dotnet/reinventing-how-dotnet-builds-and-ships-again/
103•IcyWindows•4h ago•42 comments

Trillions spent and big software projects are still failing

https://spectrum.ieee.org/it-management-software-failures
321•pseudolus•14h ago•291 comments

FLUX.2: Frontier Visual Intelligence

https://bfl.ai/blog/flux-2
249•meetpateltech•11h ago•75 comments

How to repurpose your old phone into a web server

https://far.computer/how-to/
181•louismerlin•3d ago•73 comments

Unifying our mobile and desktop domains

https://techblog.wikimedia.org/2025/11/21/unifying-mobile-and-desktop-domains/
109•todsacerdoti•9h ago•27 comments

Launch HN: Onyx (YC W24) – Open-source chat UI

169•Weves•12h ago•124 comments

Jakarta is now the biggest city in the world

https://www.axios.com/2025/11/24/jakarta-tokyo-worlds-biggest-city-population
259•skx001•20h ago•169 comments

Someone at YouTube Needs Glasses: The Prophecy Has Been Fulfilled

https://jayd.ml/2025/11/10/someone-at-youtube-needs-glasses-prophecy-fulfilled.html
337•jaydenmilne•4h ago•251 comments

1,700-year-old Roman sarcophagus is unearthed in Budapest

https://apnews.com/article/hungary-roman-sarcophagus-discovery-budapest-77a41fe190bbcc167b43d0514...
25•gmays•1d ago•13 comments

CS234: Reinforcement Learning Winter 2025

https://web.stanford.edu/class/cs234/
27•jonbaer•2h ago•2 comments

Ilya Sutskever: We're moving from the age of scaling to the age of research

https://www.dwarkesh.com/p/ilya-sutskever-2
203•piotrgrabowski•9h ago•178 comments

Marble Springs (1993)

https://www.eastgate.com/MS/Title_184.html
5•prismatic•5d ago•0 comments

Brand New Layouts with CSS Subgrid

https://www.joshwcomeau.com/css/subgrid/
15•soheilpro•2h ago•1 comments

The Generative Burrito Test

https://www.generativist.com/notes/2025/Nov/25/generative-burrito-test.html
90•pathdependent•3h ago•44 comments

Constant-time support coming to LLVM: Protecting cryptographic code

https://blog.trailofbits.com/2025/11/25/constant-time-support-coming-to-llvm-protecting-cryptogra...
48•ahlCVA•13h ago•20 comments

What they don't tell you about maintaining an open source project

https://andrej.sh/blog/maintaining-open-source-project/
94•andrejsshell•4h ago•68 comments

Space: 1999 – Special Effects Techniques

https://catacombs.space1999.net/main/pguide/upsfx.html
10•exvi•1h ago•1 comments

Notes on the Troubleshooting and Repair of Computer and Video Monitors

https://www.repairfaq.org/sam/monfaq.htm
20•WorldPeas•4h ago•5 comments

Python is not a great language for data science

https://blog.genesmindsmachines.com/p/python-is-not-a-great-language-for
146•speckx•10h ago•155 comments

What Now? Handling Errors in Large Systems

https://brooker.co.za/blog/2025/11/20/what-now
9•thundergolfer•2h ago•0 comments

Inflatable Space Stations

https://worksinprogress.co/issue/inflatable-space-stations/
68•bensouthwood•4d ago•28 comments

Making Crash Bandicoot (2011)

https://all-things-andy-gavin.com/video-games/making-crash/
209•davikr•14h ago•36 comments