frontpage.
newsnewestaskshowjobs

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•1y ago

Comments

MacsHeadroom•1y 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•1y 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•1y 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•1y ago
do you have references to

> TTT, cannon layers, and titans

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

I Don't Understand Quantum Physics (2018)

https://www.southampton.ac.uk/~doug/quantum_physics/index.html
176•rramadass•5h ago•113 comments

OBS Studio 33

https://github.com/obsproject/obs-studio/releases/tag/33.0.0
304•pentagrama•10h ago•93 comments

TornadoVM 7 Enables GPU-Native Workloads from Java Applications

https://www.infoq.com/news/2026/10/tornadovm-7-gpu/
17•pjmlp•2d ago•0 comments

One Must Fall 2097 Remastered

https://github.com/Jared-woodruff/OMF-2097-Remastered/
38•hmm37•1h ago•21 comments

Around a dozen banking apps began specifically permitting GrapheneOS

https://grapheneos.social/@GrapheneOS/117492375462459244
357•privacyishuman•13h ago•105 comments

Node2Shell evolves to HTTP2Shell, blast radius affects many HTTP libs and apps

https://www.aikido.dev/blog/python-packages-vulnerable-node2shell-brotli-cve-2026-111497
112•theanonymousone•6h ago•61 comments

Kimi K3.1 Pro and K3.1 Pro Highspeed

https://www.kimi.ai/blog/kimi-k3-1-pro
992•Jowsey•21h ago•596 comments

Physicists trap a single antimatter particle for a month

https://www.scientificamerican.com/article/physicists-trap-a-single-antimatter-particle-for-a-month/
150•mooreds•2d ago•56 comments

Today, we hacked what we'd set out to hack: the iPhone

https://blog.calif.io/p/iphone
982•pavel_lishin•22h ago•624 comments

Appreciating the beauty of all your body's scars and scratches

https://1000awesomethings.com/2026/10/08/576-appreciating-the-beauty-of-all-your-bodys-scars-and-...
41•surprisetalk•3d ago•25 comments

Twelve years of distributed SQLite

https://philipotoole.com/twelve-years-of-distributed-sqlite/
282•otoolep•13h ago•42 comments

Apple Music 404 Not Found

https://music.apple.com/this-url-doesnt-exist
838•frizlab•1d ago•246 comments

Local Wikipedia: Wikipedia, but only for things a half hour walk from you

https://edjefferson.com/localwiki/
1449•sohkamyung•1d ago•238 comments

How close can pure functional programming get to C?

https://rtfeldman.com/fp-vs-c
180•stmonty•11h ago•39 comments

How to run a city builder on 16 MHz

https://larstofus.com/2025/11/16/how-to-run-a-city-builder-on-12-5-mhz/
56•rex64•2d ago•13 comments

A practical guide to AI image generation, from diffusion to agents

https://danielball.com/notes/ai_image_generation.html
164•westsmith•3d ago•51 comments

Bringing uv and ty together

https://astral.sh/blog/uv-ty-integration
215•Ravencentric•3d ago•68 comments

Dessa: Conversation Model trained only on speech

https://block.xyz/dessa
429•dsr12•19h ago•161 comments

AI-Assisted Paper on Z-Library Cites a TorrentFreak Article That Doesn't Exist

https://torrentfreak.com/ai-assisted-paper-on-z-library-cites-a-torrentfreak-article-that-doesnt-...
59•TangerineDream•3h ago•17 comments

Canadians are running out of time to oppose Bill C-22

https://www.eff.org/deeplinks/2026/10/canadians-are-running-out-time-oppose-dangerous-c-22-survei...
465•hn_acker•1d ago•242 comments

The Chalk and the Airplane

https://unintendedconsequenc.es/chalk-and-the-airplane/
20•paulorlando•2d ago•7 comments

Hacker reverses Samsung TV, finds on-board AI listening OpenAI account suspended

https://www.reddit.com/r/antiai/comments/1xdv3e5/hacker_reverse_engineers_his_samsung_tv_and_finds/
345•testing22321•9h ago•108 comments

Apple Security Research Device

https://security.apple.com/research-device/
106•neom•12h ago•45 comments

GPU-unlock: FP/BF16 instruction issue rate on Nvidia 3000's cards

https://github.com/Zagitta/gpu-unlock
20•fragebogen•4h ago•9 comments

Show HN: Autonomous root for Tcl Android TV via CVE-2022-22706

https://gitlab.com/c4psu13/mali-pagecache-root
14•t20n•4h ago•2 comments

CVE Tracker

https://cve.0xosprey.com/
197•Group_B•17h ago•69 comments

Elon Musk Just Gave Europe a Reason to Replace American Technology

https://steveblank.com/2026/10/24/europe-gets-a-wake-up-call/
250•sblank•1h ago•244 comments

The Real Kevin Bacon

https://pudding.cool/2026/10/kevin-bacon/
337•xnx•3d ago•84 comments

Google illegally cut down 250K trees in Finland for data center

https://nypost.com/2026/10/24/business/google-illegally-tore-down-250k-trees-for-finland-data-cen...
4•rustybolt•16m ago•2 comments

C vs. C#: racing VLC's Gaussian blur

https://martinfinkel.com/blog/gaussian-blur-c-vs-csharp/
111•martz•3d ago•34 comments