数据库历史能用来预测上下文层与语义层未来,因为查询处理长期受 I/O 或内存限制。提升性能的关键是减少或加速传给 LLM 的数据,这正是索引或上下文层的作用。AI 时代的新难点是高质量上下文层,因为检索和摘要会改变 LLM 可见内容,也影响正确性,需要公司特定评测。
100%,我们可以从数据库发展的历史中学到很多,用以预测上下文层/语义层的未来。查询处理一直以来都受限于 I/O 或内存(除了在 monetdb、hyper 等向量化 + 编译型引擎出现前的那几年,以及如今昂贵的 AI 函数或字符串函数)。换句话说,提升性能的方法是**向 LLM 传输更少的数据**或**更快地向 LLM 传输数据**,而这正是索引或上下文层所做的事情。
然而,AI 时代的新挑战是需要一个**高质量**的上下文层。在传统数据库中,质量更容易保证,因为使用索引不会影响正确性。例如用 B-tree,你得到的结果与全表扫描相同,只是更快。而上下文层在设计上就是有损的,因为 LLM 只能看到我们放进上下文的内容(也许还有渐进式披露,比如指示它想继续的话可以读取更多数据)。所以每一个关于检索什么或如何摘要的决策,同时也是关于正确性的决策,而我们还不知道如何严格地对它建模。归根结底,这需要良好的、针对公司自身的评测,恕我直言
上下文层其实并不违背“苦涩教训”(bitter lesson) 它只是系统基础设施:一个本地只读副本 + 由离线 LLM 构建的派生索引(没有硬编码的本体,只是随着模型变好而重新计算) 人们喜欢引用苦涩教训来主张“跳过基础设施,让模型实时自己搞明白”,但搜索恰恰是 Sutton 观点的一半 CPU 速度提升几个数量级并没有消灭 B 树或物化视图。它们存在的原因是算力增长快于 I/O 假设前沿级智能的推理达到 0ms:对分散的 SaaS API 进行实时扇出(fan-out)仍然会让你受限于 I/O。而且在 SaaS 的终局,专有数据是它们守住的最后一条护城河,所以那些 API 吸管只会越来越细。细管道仍然可以通过原始状态的缓慢增量同步来工作,但无法支撑运行时的并行搜索 所有做扇出的人已经在吃 429 限流了,而且情况可能只会更糟 如果你在底层保持原始真实数据同步,让运行时模型能在毫秒级进行搜索和验证,并在写入时和读取时支付算力 --> 恭喜,你仍然可以带上上下文层、坚持苦涩教训信仰
原文
a context layer is actually not counter to the bitter lesson it’s just systems infra: a local read replica + derived indexes built by offline LLMs (no hardcoded ontologies, just recompute as models get better) people love to cite the bitter lesson as “skip the infra, let the model figure it out live,” but search is literally half of sutton’s point CPUs getting orders of magnitude faster didn’t kill b-trees or materialized views. those exist because compute outpaces I/O let's assume frontier-level-intelligence inference hits 0ms: live fan-out across scattered SaaS APIs still leaves you I/O-bound. and then in the SaaS endgame, proprietary state is the last moat they defend so those API straws only get narrower. narrow pipes still work with slow incremental sync of raw state, but not parallel search at runtime everyone fanning out is already eating 429s and it'll probably only get worse if you keep raw ground truth synced underneath so runtime models can search and verify in milliseconds + pay compute at write-time and read-time --> hooray you can still be bitter-lesson pilled with a context layer
来源:Shreya Shankar · x.com