Apple ML ★ 105 3 min

Scaling Categorical Flow Maps

🔗 https://machinelearning.apple.com/research/scaling-categorical-flow-maps

📌 【Apple ML 研究】擴展 Categorical Flow Maps:17 億參數模型實現 4 步快速生成高品質文本

TL;DR:透過自蒸餾技術,1.7B 參數的 CFM 模型能在僅需 4 步推論下,生成高熵值的高品質文本。

🎣 語言模型(LM)目前多依賴自迴歸(autoregressive)架構,但連續擴散(continuous diffusion)與流匹配(flow matching)模型正展現出巨大的潛力,能為語言建模帶來加速採樣與傾斜(tilting)等連續模態才有的優勢。

🤔 從離散數據的連續生成問題談起

目前的技術研究已證明,可以透過簡單的流匹配流程,在高斯分佈與 one-hot 編碼的數據分佈之間進行轉換,進而實現離散數據的連續生成。雖然 Categorical Flow Maps (CFMs) 已能在少步數(few-step) regime 下達到具競爭力的樣本品質,但過往研究的規模大多侷限在 1B 參數以下,大規模擴展(scalability)的能力仍是未知數。

🧩 訓練 1.7B 參數模型並透過自蒸餾加速

為了驗證規模化效能,研究團隊採取了以下技術路徑:

  1. 在 2.1T tokens 上訓練一個擁有 17 億參數(1.7B)的基礎流模型(base flow model)。
  2. 透過自蒸餾(self-distill)技術將其轉化為 CFM 模型。
  3. 實現在僅需 4 步推論(inference steps)的情況下,生成具備多樣性且高品質的文本,同時保持接近數據層級的 token entropy(token 熵值)。

📊 引入似然界限與基準測試評估

研究進一步在半離散(semi-discrete)設定下,為 CFMs 引入了似然界限(likelihood bound),並證明該模型可以用於標準語言模型基準測試(LM benchmarks)的評分,其結果與離散擴散方法(discrete diffusion methods)處於同等量級。

💡 大規模訓練的挑戰與實務建議

在將此類模型推向大規模規模時,研究發現並總結了相關挑戰,並針對以下兩點提供了具體的實務見解(prescriptive insights):

  • 損失權重(loss weighting)的設定。
  • 時間調度(time scheduling)的安排。

🎯 實務啟示

對於追求推論效能的語言模型開發者而言,這項研究證明了 CFM 架構在擴展至十億級參數規模時,仍能透過蒸餾技術在極短的步數內維持高品質生成,為替代傳統自迴歸架構提供了可行的路徑。

🔗 來源

  • 標題:Scaling Categorical Flow Maps
  • 作者/機構:Oscar Davis, Anastasiia Filippova, Victor Turrisi, Amitis Shidani, Pierre Ablin, Marco Cuturi, Louis Béthune @ Apple / University of Oxford
  • 連結:machinelearning.apple.com/research/scaling-categorical-flow-maps

#AI #MachineLearning #NLP #FlowMatching #AppleML #GenerativeAI #DeepLearning #LLM #DiffusionModels #Research

原始資料 Apple ML · 收集於 2026-08-08
來源原標題
Scaling Categorical Flow Maps
原始連結
https://machinelearning.apple.com/research/scaling-categorical-flow-maps

摘要原文

research area Speech and Natural Language Processing content type paper published August 2026 Scaling Categorical Flow Maps Authors Oscar Davis†**, Anastasiia Filippova, Victor Turrisi, Amitis Shidani, Pierre Ablin, Marco Cuturi, Louis Béthune View publication Copy Bibtex Continuous diffusion and flow matching models could represent a powerful alternative to autoregressive approaches for language modelling (LM), as they unlock a host of advantages currently reserved for continuous modalities, including accelerated sampling and tilting. Recently, several works have demonstrated the possibility of generating discrete data continuously by a simple flow matching process between a Gaussian and the one-hot encoded data distribution. They have further shown the feasibility of accelerated sampling via Categorical Flow Maps (CFMs), resulting in competitive sample quality in the few-step regime. However, this method had only been evaluated at relatively modest scales (< 1B), leaving the question of its scalability completely open. In this article, we train a 1.7B-parameter base flow model on 2.1T tokens and self-distill it into a CFM that generates diverse, high-quality text in as few as 4 inference steps while maintaining near-data-level token entropy. Furthermore, we introduce a likelihood bound for CFMs in the semi-discrete setting, and show that they can be used to score the model on standard LM benchmarks, achieving results in the same range as discrete diffusion methods. Finally, we uncover some of the challenges that arise from training these models at scale, and we provide prescriptive insights on loss weighting and time scheduling. † University of Oxford ** Work done while at Apple Related readings and updates. Score Distillation of Flow Matching Models December 16, 2025 research area Computer Vision , research area Methods and Algorithms Diffusion models achieve high-quality image generation but are limited by slow iterative sampling. Distillation methods alleviate this by enabling one- or few-step generation. Flow matching, originally introduced as a distinct framework, has since been shown to be theoretically equivalent to diffusion under Gaussian assumptions, raising the question of whether distillation techniques such as score distillation transfer directly. We provide a… Read more CAR-Flow: Condition-Aware Reparameterization Aligns Source and Target for Better Flow Matching November 12, 2025 research area Computer Vision conference NeurIPS Conditional generative modeling aims to learn a conditional data distribution from samples containing data-condition pairs. For this, diffusion and flow-based methods have attained compelling results. These methods use a learned (flow) model to transport an initial standard Gaussian noise that ignores the condition to the conditional data distribution. The model is hence required to learn both mass transport and conditional injection. To ease the… Read more Discover opportunities in Machine Learning. Our research in machine learning breaks new ground every day. Work with us

tencent/hy3:free 自動生成