Daily Tech Briefing
AI 科技速览

每天 5 分钟内学习 AI。获取最新的人工智能新闻,理解其重要性,并学习如何将其应用于您的工作。

AI 快讯
MarkTechPost · 2026/7/29 09:38:42

Liquid AI Releases LFM2.5-Encoder-230M and LFM2.5-Encoder-350M: Bidirectional Encoders That Stay Fast at 8K Context on CPU

AI 中文解读
Liquid AI最新发布了两款开源双向编码器模型,让AI理解长文本的速度和效率再上新台阶。这两款模型名为LFM2.5-Encoder-230M和LFM2.5-Encoder-350M,参数规模不大,却能轻松处理8000多字的上下文,甚至在普通CPU上也能飞快运行——这打破了以往大模型依赖昂贵显卡的惯例。 通俗来说,它们就像AI世界的“阅读理解高手”。以前的编码器模型(比如著名的BERT)虽然能干但速度慢,尤其当文本变长时成本急剧上升。Liquid AI用了一种巧妙的方法:把现有的解码器“改造”成编码器,让每个词都能同时看左右两侧的上下文,并用更密集的30%遮罩训练(传统只有15%),结果在17项文本理解测试中,350M版本仅落后于几个比它大十倍的超级模型,而230M版本甚至击败了比自己大两倍的竞争对手。 对普通人来说,这意味着身边那些需要实时“理解”文字的AI应用会变得更快、更省电。比如手机上的智能助理、垃圾信息过滤器、身份识别系统,甚至法律文档的自动审核——这些场景通常跑在电脑CPU上,没有显卡支持。新模型让它们能处理更长的对话或文件,且响应几乎感觉不到延迟。开发者也能免费使用这些模型,降低AI服务的成本,未来我们可能会在更多日常工具里体验到“秒懂长文”的便捷。
Liquid AI has released two open-weight bidirectional encoders, LFM2.5-Encoder-230M and LFM2.5-Encoder-350M. Both are masked language models built on the LFM2 hybrid backbone. Both carry an 8,192-token context. Encoders sit underneath classifiers, intent routers, safety filters, and PII detectors. Those jobs run continuously, usually without a GPU, and increasingly on longer inputs. BERT established the class. ModernBERT pushed its accuracy, speed, and context. Liquid AI’s argument is that the LFM2 architecture continues that line, because its cost grows more slowly as inputs get longer. How a decoder became an encoder The encoders are not trained from scratch. They are initialized from the LFM2.5-230M and LFM2.5-350M decoder backbones, then converted with three changes: First, the causal attention mask is replaced with a bidirectional one, so every token attends to both sides. Second, the LFM2 short convolutions are made non-causal using symmetric center padding, so each token’s convolution mixes in neighbours on both sides. Third, the model is trained with a masked language modeling objective at a 30% mask rate. That is denser than BERT’s 15%, following evidence Liquid AI cites that a higher mask rate helps at this scale. Training runs in two stages: Stage one establishes general language competence with a short-context MLM objective on a large web corpus at 1,024 tokens. Stage two extends context to 8,192 tokens on the full data mix, strengthening factual, legal, and multilingual competence. Architecturally, the backbone interleaves gated short-convolution blocks with grouped-query attention, the same design described in the LFM2 technical report. Both checkpoints use a hidden size of 1024 and a 65,536-token vocabulary, and support 15 languages. The license is the LFM Open License v1.0. The embed below breaks down the conversion, the full ranking table, the per-task scores, and the CPU latency figures. (function(){ window.addEventListener("message", function(e){ if(!e.data || !e.data.lfmEncHeight) return; var f = document.getElementById("mtp-lfm-enc-1"); if(f) f.style.height = e.data.lfmEncHeight + "px"; }); })(); The benchmark results Liquid AI evaluated 14 models on 17 tasks pulled from GLUE, SuperGLUE, and multilingual classification. Every model is fully fine-tuned per task, and the reported score is that fine-tuned model’s result. LFM2.5-Encoder-350M posts a 17-task mean of 81.02 (±1.00), ranking fourth. The three models ahead of it are all larger. They are XLM-R XL at 3.5B (83.06), ModernBERT-large at 395M (81.68), and XLM-R large at 560M (81.34). The top model is nearly 10 times its size. LFM2.5-Encoder-230M posts 79.29 (±1.02), ranking sixth. It beats ModernBERT-base at 78.19 and every EuroBERT model in the table, including EuroBERT-610M (75.87) and EuroBERT-2.1B (72.19). Both new encoders also score above Liquid AI’s own retrieval siblings, LFM2.5-ColBERT-350M (76.18) and LFM2.5-Embedding-350M (75.68). That gap is the stated reason Liquid AI built a general-purpose encoder instead of reusing the retrievers. The methodology is the more interesting part, and it is open-sourced under Apache-2.0. Every model is loaded with fp32 master weights and bf16 autocast, so the table compares models rather than number formats. Every model uses the same AdamW recipe, taken from the EuroBERT card. Learning rate is selected per model and task across 10 rates and 3 seeds. Scores are then reported as the mean over 5 fresh seeds that never touched selection. The transformers version is pinned to 4.56.2 so dependency drift is not an uncontrolled variable. Use Cases and Deployment Environments The release names three settings. Edge and embedded devices come first. A car’s onboard compute or an industrial controller has no spare GPU, and cannot afford a cloud round trip. Regulated and on-premise systems in finance,
分享
阅读原文