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

Comments

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

> TTT, cannon layers, and titans

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

Introduction to Computer Music [pdf]

https://composerprogrammer.com/introductiontocomputermusic.pdf
20•luu•46m ago•2 comments

Show HN: A game where you build a GPU

https://jaso1024.com/mvidia/
525•Jaso1024•9h ago•138 comments

OpenScreen is an open-source alternative to Screen Studio

https://github.com/siddharthvaddem/openscreen
113•jskopek•4d ago•16 comments

LLM Wiki – example of an "idea file"

https://gist.github.com/karpathy/442a6bf555914893e9891c11519de94f
81•tamnd•9h ago•20 comments

Advice to Young People, the Lies I Tell Myself (2024)

https://jxnl.co/writing/2024/06/01/advice-to-young-people/
32•mooreds•3h ago•8 comments

How many products does Microsoft have named 'Copilot'?

https://teybannerman.com/strategy/2026/03/31/how-many-microsoft-copilot-are-there.html
436•gpi•7h ago•224 comments

AWS Engineer Reports PostgreSQL Perf Halved by Linux 7.0, Fix May Not Be Easy

https://www.phoronix.com/news/Linux-7.0-AWS-PostgreSQL-Drop
119•crcastle•2h ago•26 comments

Embarrassingly simple self-distillation improves code generation

https://arxiv.org/abs/2604.01193
556•Anon84•16h ago•167 comments

A case study in testing with 100+ Claude agents in parallel

https://imbue.com/product/mngr_part_2/
8•thejash•1d ago•1 comments

Show HN: I made open source, zero power PCB hackathon badges

https://github.com/KaiPereira/Overglade-Badges
56•kaipereira•12h ago•7 comments

Shooting down ideas is not a skill

https://scottlawsonbc.com/post/shooting-down-ideas
90•zdw•1h ago•86 comments

Isseven

https://isseven.app/
20•philipreasa•1h ago•13 comments

Ruckus: Racket for iOS

https://ruckus.defn.io/
82•nsm•2d ago•7 comments

Show HN: sllm – Split a GPU node with other developers, unlimited tokens

https://sllm.cloud
129•jrandolf•11h ago•65 comments

The Indie Internet Index – submit your favorite sites

https://iii.social
106•freshman_dev•12h ago•22 comments

Show HN: Contrapunk – Real-time counterpoint harmony from guitar input, in Rust

https://contrapunk.com/
13•waveywaves•2h ago•2 comments

Show HN: TurboQuant-WASM – Google's vector quantization in the browser

https://github.com/teamchong/turboquant-wasm
143•teamchong•11h ago•6 comments

Apple approves driver that lets Nvidia eGPUs work with Arm Macs

https://www.theverge.com/tech/907003/apple-approves-driver-that-lets-nvidia-egpus-work-with-arm-macs
373•naves•10h ago•163 comments

Components of a Coding Agent

https://magazine.sebastianraschka.com/p/components-of-a-coding-agent
175•MindGods•13h ago•63 comments

Emotion concepts and their function in a large language model

https://www.anthropic.com/research/emotion-concepts-function
146•dnw•20h ago•159 comments

Some Unusual Trees

https://thoughts.wyounas.com/p/some-unusual-trees
256•simplegeek•17h ago•75 comments

Functional programming accellerates agentic feature development

https://cyrusradfar.com/thoughts/functional-programming-is-the-only-way-to-scale-with-ai
10•cyrusradfar•3d ago•3 comments

Breaking Enigma with Index of Coincidence on a Commodore 64

https://imapenguin.com/2026/03/breaking-enigma-with-index-of-coincidence-on-a-commodore-64/
24•saganus•4d ago•4 comments

The CMS is dead, long live the CMS

https://next.jazzsequence.com/posts/the-cms-is-dead-long-live-the-cms
122•taubek•15h ago•76 comments

Training mRNA Language Models Across 25 Species for $165

125•maziyar•3d ago•28 comments

IBM 3270 Information Display System: Color and Programmed Symbols (1979) [pdf]

https://bitsavers.org/pdf/ibm/3278/GA33-3056-0_3270_Information_Display_System_Color_and_Programm...
42•hggh•9h ago•10 comments

Show HN: M. C. Escher spiral in WebGL inspired by 3Blue1Brown

https://static.laszlokorte.de/escher/
24•laszlokorte•6h ago•2 comments

The Cathedral, the Bazaar, and the Winchester Mystery House

https://www.dbreunig.com/2026/03/26/winchester-mystery-house.html
169•dbreunig•3d ago•60 comments

Tell HN: Anthropic no longer allowing Claude Code subscriptions to use OpenClaw

1038•firloop•1d ago•787 comments

Plague Ships (2020)

https://www.afloat.com.au/feature/plague-ships/
44•bryanrasmussen•9h ago•8 comments