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•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•12mo 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.

Haiku OS runs on M1 Macs now

https://discuss.haiku-os.org/t/my-haiku-arm64-progress/19044?page=2
109•tekkertje•1h ago•39 comments

Anthropic acquires Stainless

https://www.anthropic.com/news/anthropic-acquires-stainless
203•tomeraberbach•2h ago•136 comments

We stopped AI bot spam in our GitHub repo using Git's –author flag

https://archestra.ai/blog/only-responsible-ai
304•ildari•4h ago•145 comments

Elon Musk has lost his lawsuit against Sam Altman and OpenAI

https://techcrunch.com/2026/05/18/elon-musk-has-lost-his-lawsuit-against-sam-altman-and-openai/
417•nycdatasci•2h ago•206 comments

Show HN: Files.md – Open-source alternative to Obsidian

https://github.com/zakirullin/files.md
405•zakirullin•6h ago•221 comments

The Quiet Renovation at Bitwarden

https://blog.ppb1701.com/the-quiet-renovation-at-bitwarden
337•DaSHacka•1d ago•151 comments

Hyperpolyglot Lisp: Common Lisp, Racket, Clojure, Emacs Lisp

https://hyperpolyglot.org/lisp
9•veqq•26m ago•0 comments

Agora-1: The Multi-Agent World Model

https://odyssey.ml/introducing-agora-1
21•olivercameron•1h ago•4 comments

The Fil-C Optimized Calling Convention

https://fil-c.org/calling_convention
54•pizlonator•2d ago•6 comments

We let AIs run radio stations

https://andonlabs.com/blog/andon-fm
10•lukaspetersson•1h ago•1 comments

Cutting inference cold starts by 40x with LP, FUSE, C/R, and CUDA-checkpoint

https://modal.com/blog/truly-serverless-gpus
28•charles_irl•1h ago•6 comments

Two computers, one monitor, zero fiddling (2025)

https://alexplescan.com/posts/2025/08/16/kvm/
93•ankitg12•2d ago•59 comments

Iran starts Bitcoin-backed ship insurance for Hormuz strait

https://www.bloomberg.com/news/articles/2026-05-18/iran-starts-bitcoin-backed-shipping-insurance-...
105•srameshc•2h ago•148 comments

Project Glasswing: what Mythos showed us

https://blog.cloudflare.com/cyber-frontier-models/
200•Fysi•6h ago•85 comments

What Is Date:Italy?

http://aesthetikx.info/blog/date_italy.html
86•jollyjerry•2d ago•39 comments

New York to tax luxury second homes in NYC

https://apnews.com/article/mamdani-nyc-hochul-tax-rich-a30833850bfdbd638634def266ca76dd
26•geox•1h ago•2 comments

Voice AI Systems Are Vulnerable to Hidden Audio Attacks

https://spectrum.ieee.org/voice-ai-audio-attacks
83•SVI•8h ago•24 comments

I 3D Printed Origami [video]

https://www.youtube.com/watch?v=FNVBK7-h9Fs
24•Teever•2d ago•4 comments

Learn Harness Engineering

https://walkinglabs.github.io/learn-harness-engineering/en/
80•redbell•7h ago•7 comments

Stratum: System-Hardware Co-Design with 3D-Stackable DRAM for Efficient Moe

https://dl.acm.org/doi/10.1145/3725843.3756043
7•rbanffy•3d ago•2 comments

Qwen 3.7 Preview

https://twitter.com/Alibaba_Qwen/status/2056403591464984753
131•theanonymousone•3h ago•48 comments

The Aperiodic Table

https://blog.jgc.org/2026/05/the-aperiodic-table.html
68•jgrahamc•3d ago•30 comments

Haiku OS runs on M1 Macs now

https://www.osnews.com/story/144985/haiku-os-runs-on-m1-macs-now/
28•speckx•1h ago•5 comments

Mocked by a scandal sheet, Kierkegaard endured months of personal attacks

https://www.plough.com/en/topics/faith/discipleship/when-kierkegaard-got-cancelled
62•bookofjoe•7h ago•28 comments

Garry Tan, the CEO of YC, accused me of unethical reporting

https://radleybalko.substack.com/p/truth-power-and-honest-journalism
280•gok•4h ago•36 comments

It is time to give up the dualism introduced by the debate on consciousness

https://www.noemamag.com/there-is-no-hard-problem-of-consciousness/
255•ahalbert4•16h ago•634 comments

'We mould trees to grow into the shape of chairs'

https://www.bbc.co.uk/news/articles/cvg0yy3gp71o
184•bauc•6h ago•47 comments

Show HN: InsForge – Open-source Heroku for coding agents

https://github.com/InsForge/InsForge
19•mrcoldbrew•4h ago•3 comments

1024000^2 Blocks, 2B2T Minecraft Server World Download Project, and Discoveries

https://github.com/2b2tplace/1m_release
110•exploraz•5h ago•71 comments

Linux security mailing list 'almost unmanageable'

https://www.theregister.com/security/2026/05/18/linus-torvalds-says-ai-powered-bug-hunters-have-m...
179•jonbaer•7h ago•86 comments