From CUDA to MLX: How K-Search Brings Decades of Kernel Expertise to Apple Silicon
2026年7月29日
AI 摘要 AI 生成,可能有误
本文介绍了作者如何为 K-Search——一个演化式 GPU 内核优化框架——扩展了 MLX 后端和一个结构化的 CUDA 到 MLX 转换层,从而将数十年的 CUDA 优化经验迁移到 Apple Silicon 上,而非从零开始重建内核。该转换层结合了概念映射表、MLX 专用优化模式以及可复用的断言,以引导搜索生成在架构上正确的 Metal/MLX 内核。所得内核的性能接近专家水平(达到原生 MLX Attention 内核的 0.97 倍),并且在 Mamba SSM 内核上,相比社区的 mlx-lm 实现获得了高达 20 倍的预填充(prefill)加速。
Figure 1: CUDA-to-MLX optimization translation map. CUDA optimization knowledge can be translated into architecture-native MLX strategies rather than copied instruction-for-instruction.
We face a new epoch in computing. Hardware is changing rapidly — not just faster GPUs, but a growing range of chips from different vendors, each with its own architecture and often tailored to specific AI workloads. Software is changing just as fast, and AI coding tools now generate in minutes what took months of effort a few years ago.
With so much of computing now centered on AI, GPU kernels are a crucial component of its success. These are the low-level programs that run inside the GPU, and writing efficient ones is far from obvious — it takes years of expertise to get right. Transferring a kernel from one vendor’s hardware to another is harder still, and often means rediscovering the same optimizations from scratch. The CUDA ecosystem, for example, has accumulated decades of hard-won kernel expertise: hand-tuned implementations of attention, state space models, and other critical operations representing thousands of engineering hours. Newer hardware ecosystems (Apple Silicon, custom AI accelerators, and others) are growing fast but lack this depth.
继续阅读全文
为了尊重作者,这里只展示开头几段。你可以去原文阅读,或者在 HorizonReader 里读:划线做笔记、让 AI 帮忙。
AI 摘要FrontierCS 2 is a benchmark of 48 open-ended R&D tasks across 13 CS domains, each built by deleting a published paper's key contribution from its repository and requiring frontier AI agents to re-implement it so it beats the authors' original code on every metric and held-out workload. Claude Opus 5.5 leads with 28 of 48 tasks passed (58%), though the top three agents are statistically tied on the FrontierCS Capabilities Index, and a third of the benchmark remains unsolved by any agent. The article also highlights notable agent inventions (like a 27% reduction in PIR lookups), a 400× cost spread across models, and limitations of pass/fail metrics that miss side costs like circuit area or per-workload quality regressions.
AI 摘要BAIR (Berkeley Artificial Intelligence Research) faculty, postdocs, and students will present extensively at the Conference on Robot Learning (CoRL 2026), held November 9–12, 2026, in Austin, Texas. Their contributions include 33 main-conference papers, 4 late-breaking results posters, and 10 orals and spotlights, covering topics such as vision-language-action models, humanoid control, dexterous manipulation, and reinforcement learning. Professor Negar Mehr will also deliver an Early Career Keynote on how robots can learn to interact and coordinate with others.
AI 摘要The article introduces ABBEL, a framework that trains LLM agents to maintain natural-language belief states as compact summaries of long interactions, instead of relying on full-context histories or costly recursive self-summarization. It proposes 'belief grading,' an auxiliary reward inspired by autoencoding that scores beliefs by how well the model can reconstruct recent observations from them, thereby supervising what information summaries retain. Experiments on collaborative coding (CollabBench), a Wordle-like game, and multi-objective QA show that belief grading roughly halves the performance gap to full-context models, improves training efficiency, and reduces memory usage.
AI 摘要The article argues that as AI inference costs plummet toward near-zero, making sufficient intelligence virtually free for knowledge work, data systems must be fundamentally reimagined around agents. It outlines three challenges: data systems 'for' agents (optimizing their high-volume, redundant, speculative queries), 'of' agents (building reliable substrates for agent swarms to manage structured memory, coordinate, and handle failures), and 'by' agents (enabling agents to synthesize custom data systems that can be trusted). The authors propose research directions like agentic speculation optimization, structured memory, proactive data systems, and concurrency control to support an intertwined future where agents become the dominant users and builders of data infrastructure.
AI 摘要The article celebrates the 2026 graduating class of Ph.D. students from the Berkeley Artificial Intelligence Research (BAIR) Lab, highlighting their diverse contributions across robotics, large language models, computer vision, generative modeling, AI safety, human-AI interaction, and AI for healthcare. Each graduate is briefly profiled with their research focus, advisors, and next steps, which range from industry positions at companies like OpenAI, Anthropic, and Mistral AI to faculty appointments, postdoctoral fellowships, and startup ventures. The piece invites readers to congratulate the graduates and notes that several are still exploring opportunities and open to hearing from potential collaborators or employers.