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.

elect.horse

https://elect.horse/
406•solarist•6h ago•107 comments

Backdoor in Claude Code for VS Code extension on the Cursor Marketplace

https://phorion.io/blog/offical-claude-code-vsx-compromise/
161•_chall•8h ago•313 comments

Azure's Weakest Link – Five Full Cross-Tenant Compromises

https://www.binarysecurity.no/posts/2026/10/one-root-case
137•swq115•5h ago•13 comments

US Reps Lead Democratic Resolution Opposing A.I. Bubble Bailout for Big Tech

https://progressives.house.gov/2026/10/reps-casar-waters-lead-democratic-resolution-opposing-a-i-...
320•DeepLogin•3h ago•203 comments

Binance-hacker-1029 – $5.6B stolen from Binance

https://arkm.com/explorer/entity/21a94755-f604-45e5-9501-6542e23005e8
1627•Tiberium•17h ago•1088 comments

5-MeO-DMT sometimes cancels the Ebbinghaus illusion

https://psychotechnology.substack.com/p/5-meo-dmt-sometimes-cancels-the-ebbinghaus
16•surprisetalk•1h ago•8 comments

We're releasing the weights of Mistral Large 4

https://mistral.ai/news/mistral-large-4-oss/
1621•kuberwastaken•1d ago•425 comments

The $6.3B Binance Hack Was Pulled Off in Just 20 Minutes

https://www.wired.com/story/the-dollar63-billion-binance-hack-was-pulled-off-in-just-20-minutes/
109•domhudson•2h ago•72 comments

Medicare Will Pay $50k for Your Heart Attack. It Should Pay $100 to Prevent It

https://www.medpagetoday.com/opinion/second-opinions/123553?trw=no
28•brandonb•49m ago•11 comments

Finding Panics with Call Graph Analyzer

https://tweedegolf.nl/en/blog/242/finding-panics-with-call-graph-analyzer/
28•ndr•2d ago•0 comments

Why a program doesn't work when run from a batch file, but works when clicked

https://devblogs.microsoft.com/oldnewthing/20261026-00/?p=112797/
72•ibobev•3d ago•37 comments

Gilgamesh by Simon Armitage review – an ancient epic is brilliantly translated

https://www.theguardian.com/books/2026/oct/20/gilgamesh-by-simon-armitage-review-an-ancient-epic-...
124•benbreen•2d ago•37 comments

Herdr has released native app

https://github.com/herdrdev/herdr-app
298•cherioo•14h ago•193 comments

Cisco gives engineer unlimited AI tokens to rewrite 98% of the company's code

https://www.tomshardware.com/tech-industry/big-tech/cisco-gives-27-year-old-engineer-unlimited-ai...
17•taubek•1h ago•19 comments

Anthropic Cracking Down on Video Game Rewrites

https://twitter.com/chasmmmmmmmmmmm/status/2116062991686721968
26•jacquesm•53m ago•10 comments

Commodore 1600 VICmodem

https://dfarq.homeip.net/commodore-1600-vicmodem/
21•ibobev•4d ago•11 comments

I'm so bad at billiards that I ended up in the hyperbolic plane [video]

https://www.youtube.com/watch?v=kL9BTbIGxLg
198•surprisetalk•2d ago•32 comments

We ran AI agent swarms in Minecraft and Mindustry

https://labs.ycombinator.com/projects/games/index.html
353•sandslash•17h ago•144 comments

Artificial Analysis v5 and the benchmarker's dilemma

https://www.interconnects.ai/p/artificial-analysis-v5-and-the-benchmarkers
50•6thbit•2d ago•32 comments

Astroterm: A Planetarium for Your Terminal

https://github.com/da-luce/astroterm
198•nvmdbljstm•2d ago•22 comments

Lighthouses, War and a Puffling

https://adcochrane.wordpress.com/2026/10/29/lighthouses-war-and-a-puffling-the-isle-of-may/
12•aways•17h ago•0 comments

Wasmer (YC S19) Is Hiring OS/Hypervisor Experts in Europe

https://www.workatastartup.com/jobs/98722
1•syrusakbary•8h ago

Just Noting That Your Candy Corn Is Made of Bug Secretions

https://www.theatlantic.com/science/2026/10/candy-corn-bug-shellac/689213/
25•fortran77•1h ago•40 comments

Compile-Time Dependent Types

https://thenumb.at/Syl-Intro/
3•ibobev•3d ago•0 comments

H.264 Is Magic (2016)

https://sidbala.com/h-264-is-magic/
482•ea016•23h ago•155 comments

A tiny world model running games on a Raspberry Pi Pico 2 W

https://github.com/SheepSeb/tinyworldformer
253•airinei•18h ago•17 comments

Cuis: The Modern Smalltalk-80

https://cuis.st/
157•theanonymousone•3d ago•19 comments

Neal Stephenson on AI and What Comes Next [video]

https://www.youtube.com/watch?v=Ii-aeW5pHPQ
10•justin66•58m ago•0 comments

Show HN: I Turned DOOM into a Transformer

https://github.com/mottopanikeiku/doomformer
118•falperc•15h ago•35 comments

LLM Voice

https://martinfowler.com/bliki/LLM-Voice.html
540•ibobev•1d ago•290 comments