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•4mo ago

Comments

MacsHeadroom•4mo 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•3mo 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•4mo 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•4mo ago
do you have references to

> TTT, cannon layers, and titans

najarvg•4mo 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•4mo ago
is titans replicated? I feel like lucidrains couldn't replicate.
logicchains•4mo 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•4mo 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•4mo 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•4mo 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•4mo 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.

Public static void main(String[] args) is dead

https://mccue.dev/pages/9-16-25-psvm
31•charles_irl•30m ago•8 comments

Hosting a website on a disposable vape

https://bogdanthegeek.github.io/blog/projects/vapeserver/
806•BogdanTheGeek•11h ago•388 comments

William Gibson Reads Neuromancer (2004)

http://bearcave.com/bookrev/neuromancer/neuromancer_audio.html
185•exvi•7h ago•45 comments

Learn x86-64 assembly by writing a GUI from scratch

https://gaultier.github.io/blog/x11_x64.html
22•ibobev•3d ago•3 comments

React is winning by default and slowing innovation

https://www.lorenstew.art/blog/react-won-by-default/
369•dbushell•11h ago•389 comments

macOS Tahoe

https://www.apple.com/os/macos/
345•Wingy•11h ago•473 comments

Wanted to spy on my dog, ended up spying on TP-Link

https://kennedn.com/blog/posts/tapo/
358•kennedn•12h ago•121 comments

I feel Apple has lost its alignment with me and other long-time customers

https://morrick.me/archives/10137
175•mgrayson•4h ago•162 comments

Addendum to GPT-5 system card: GPT-5-Codex

https://openai.com/index/gpt-5-system-card-addendum-gpt-5-codex/
197•wertyk•10h ago•121 comments

Linux phones are more important now than ever

https://feddit.org/post/18353777
290•wicket•4h ago•156 comments

PayPal to support Ethereum and Bitcoin

https://newsroom.paypal-corp.com/2025-09-15-PayPal-Ushers-in-a-New-Era-of-Peer-to-Peer-Payments,-...
399•DocFeind•15h ago•307 comments

GPT-5-Codex

https://openai.com/index/introducing-upgrades-to-codex/
254•meetpateltech•12h ago•77 comments

Why do we keep gravitating toward complexity?

https://kyrylo.org/software/2025/08/21/why-do-software-developers-love-complexity.html
56•PaulHoule•6h ago•79 comments

How big a solar battery do I need to store all my home's electricity?

https://shkspr.mobi/blog/2025/09/how-big-a-solar-battery-do-i-need-to-store-all-my-homes-electric...
280•FromTheArchives•16h ago•391 comments

People Who Hunt Down Old TVs

https://www.bbc.com/future/article/20250911-the-people-who-hunt-down-old-tvs
50•tmendez•3d ago•22 comments

Launch HN: Trigger.dev (YC W23) – Open-source platform to build reliable AI apps

131•eallam•13h ago•53 comments

I wish my web server were in the corner of my room (2022)

https://interconnected.org/home/2022/10/10/servers
52•jonassaid•3d ago•26 comments

From unit tests to whole universe tests (with will wilson of antithesis) [video]

https://www.youtube.com/watch?v=_xJ4maWhSNU
19•zdw•2d ago•7 comments

CubeSats are fascinating learning tools for space

https://www.jeffgeerling.com/blog/2025/cubesats-are-fascinating-learning-tools-space
178•warrenm•15h ago•74 comments

Massive Attack turns concert into facial recognition surveillance experiment

https://www.gadgetreview.com/massive-attack-turns-concert-into-facial-recognition-surveillance-ex...
192•loteck•7h ago•91 comments

How People Use ChatGPT [pdf]

https://cdn.openai.com/pdf/a253471f-8260-40c6-a2cc-aa93fe9f142e/economic-research-chatgpt-usage-p...
88•nycdatasci•9h ago•52 comments

Debian Upgrade Marathon: 3.1 Sarge

https://wrongthink.link/posts/debian-upgrade-marathon-sarge/
28•zdw•3d ago•4 comments

Removing newlines in FASTA file increases ZSTD compression ratio by 10x

https://log.bede.im/2025/09/12/zstandard-long-range-genomes.html
247•bede•3d ago•97 comments

When Your Father Is a Magician, What Do You Believe?

https://thereader.mitpress.mit.edu/when-your-father-is-a-magician-what-do-you-believe/
53•pseudolus•4d ago•11 comments

How to self-host a web font from Google Fonts

https://blog.velocifyer.com/Posts/3,0,0,2025-8-13,+how+to+self+host+a+font+from+google+fonts.html
128•Velocifyer•14h ago•106 comments

RustGPT: A pure-Rust transformer LLM built from scratch

https://github.com/tekaratzas/RustGPT
344•amazonhut•19h ago•162 comments

Boring work needs tension

https://iaziz786.com/blog/boring-work-needs-tension/
109•iaziz786•13h ago•57 comments

GuitarPie: Electric Guitar Fretboard Pie Menus

https://andreasfender.com/publications.php
36•DonHopkins•14h ago•4 comments

The Rising Sea: Foundations of Algebraic Geometry Notes

https://math.stanford.edu/~vakil/216blog/
34•ibobev•3d ago•3 comments

The Revised Report on Scheme or An UnCommon Lisp (1985) [pdf]

https://dspace.mit.edu/bitstream/handle/1721.1/5600/AIM-848.pdf
36•swatson741•7h ago•3 comments