🧠 世界模型调研与精读
精读笔记 · 批次4 · T1 视频/世界基础模型

Cosmos World Foundation Model Platform for Physical AI — 精读笔记

✅ 引文已 grep 验证原文arXiv:2501.03575 arXiv 页面 · 提取正文 txt

数据源:auto_docs\papers\txt\Cosmos.txt(arXiv:2501.03575v3,3178 行,正文 L1–2564,参考文献 L2565–3178)。所有引用为 txt 逐字原句,行号按该 txt;「原文未写」= 论文无此内容;【推断】= 笔者解读。

1. 原文信息

2. Abstract 全文逐字(L5–12)

"Physical AI needs to be trained digitally first. It needs a digital twin of itself, the policy model, and a digital twin of the world, the world model. In this paper, we present the Cosmos World Foundation Model Platform to help developers build customized world models for their Physical AI setups. We position a world foundation model as a general-purpose world model that can be fine-tuned into customized world models for downstream applications. Our platform covers a video curation pipeline, pre-trained world foundation models, examples of post-training of pre-trained world foundation models, and video tokenizers. To help Physical AI builders solve the most critical problems of our society, we make Cosmos open-source and our models open-weight with permissive licenses available via NVIDIA Cosmos-Predict1."

3. 问题与动机

问题:Physical AI 卡在数据扩展。L14–16:"Physical AI is an AI system equipped with sensors and actuators: the sensors allow it to observe the world, and the actuators allow it to interact with and modify the world." L17–19:"While several fields of AI have advanced significantly thanks to data and compute scaling in the recent decade, Physical AI only inches forward. This is largely because scaling training data for Physical AI is much more challenging, as the desired data must contain sequences of interleaved observations and actions." 解法定位(L21–22):"A World Foundation Model (WFM), a digital twin of the physical world that a Physical AI can safely interact with, has been a long-sought remedy to the data scaling problem." 范式(L25–29):"we present a pre-training-and-then-post-training paradigm, where we divide WFMs into pre-trained and post-trained WFMs. To build a pre-trained WFM, we leverage a large-scale video training dataset to expose the model to a diverse set of visual experiences to become a generalist. To build a post-trained WFM, we fine-tune the pre-trained WFM to arrive at a specialized WFM using a dataset collected from a particular Physical AI environment for the targeted, specialized Physical AI setup." 后训练数据量小的理由(L82–83):"As the pre-trained WFM provides a great foundation, the dataset for post-training can be much smaller." 为什么双路线(扩散+自回归)。L40–41:"We explore two scalable approaches for building pre-trained WFMs discussed in Sec. 5. These approaches are transformer-based diffusion models and transformer-based autoregressive models." 机制差异(L85–87):"A diffusion model generates videos by gradually removing noise from a Gaussian noise video. An autoregressive model generates videos piece by piece, conditioned on the past generations following a preset order. Both approaches decompose a difficult video generation problem into easier sub-problems, making it more tractable." 表征差异(L91–93):"Both the transformer-based diffusion model and transformer-based autoregressive model use tokens as representations of videos, where the former uses continuous tokens in the form of vectors, and the latter uses discrete tokens in the form of integers." 各自优劣(L2399–2403):"We believe that the diffusion-based and autoregressive-based models both have their pros and cons. Diffusion-based models could render videos with better visual quality. Autoregressive-based models can better leverage all sorts of techniques developed by the LLM community."

4. 方法逐机制

4.1 数据管线(Sec.3):五步——split/filtering/annotation/dedup/sharding(L211–212)。规模(L33–35):"We use it to extract about 100M clips of videos ranging from 2 to 60 seconds from a 20M hour-long video collection. For each clip, we use a visual language model (VLM) to provide a video caption per 256 frames."(L257:raw 视频 "about 20M hours of raw videos with resolutions from 720p to 4k")。数据构成(L236):"We use both proprietary video datasets and publicly available open-domain Internet videos to train our models." 类别占比(L239–247):Driving 11%、Hand motion and object manipulation 16%、Human motion and activity 10%、Spatial awareness and navigation 16%、First person point-of-view 8%、Nature dynamics 20%、Dynamic camera movements 8%、Synthetically rendered 4%、Others 7%。产出量(L263–264,txt 中上标丢失):"We generate about108 video clips for pre-training and about107 for fine-tuning."(即 10^8 / 10^7)。去重(L422–423,同上标丢失):"We remove about30% of training data during deduplication." 标注 VLM(L399–403):"We use an internal VILA model with 13B parameters, fine-tuned for video captioning. It has an enlarged context window suitable for processing long, multi-frame contexts, with a max input and output token length of 5904 and 256, respectively. To improve the inference efficiency, we use an FP8-quantized TensorRT-LLM engine, resulting in a 10× speed-up in throughput compared to a PyTorch half-precision baseline"。 4.2 Tokenizer(Sec.4):causal 设计(L518–521):"We design Cosmos Tokenizer using a lightweight and computationally efficient architecture with a temporally causal mechanism. Specifically, we employ causal temporal convolution layers and causal temporal attention layers to preserve the natural temporal order of video frames, ensuring seamless tokenization of images and videos using a single unified network architecture." 小波域(L612–615):"Unlike common approaches, our tokenizer operates in the wavelet space, where inputs are first processed by a 2-level wavelet transform. Specifically, the wavelet transform maps the input video 𝑥0:𝑇 in a group-wise manner to downsample the inputs by a factor of four along 𝑥, 𝑦, and 𝑡." 连续/离散实现(L668–672):"We employ the vanilla autoencoder (AE) formulation to model the continuous tokenizer's latent space. For discrete tokenizers, we adopt the Finite-Scalar-Quantization (FSQ) (Mentzer et al., 2023) as the latent space quantizer. The latent dimension for the continuous tokenizers is 16, whereas for the discrete tokenizers, it is 6, which represents the number of the FSQ levels, which are (8, 8, 8, 5, 5, 5). This configuration corresponds to a vocabulary size of 64,000." 压缩率(L714–717):图像 CI/DI 两种 8×8、16×16;视频 CV/DV 三种 4×8×8、8×8×8、8×16×16。效率(L596–597):"It runs up to 12× faster and can encode videos up to 8 seconds at 1080p and 10 seconds at 720p in one shot without running out of memory on a single NVIDIA A100 GPU with 80GB memory." 4.3 Diffusion 系列(Sec.5.1):两代各两档。L843–848:"For the diffusion-based WFM family, we start by building two Text2World models of 7B and 14B, respectively, which render Cosmos-Predict1-7B-Text2World and Cosmos-Predict1-14B-Text2World. These models can map text prompts to videos of visual worlds. We then fine-tune the Text2World models to take additional video input…These diffusion models are latent diffusion models that take continuous tokens. We use Cosmos-Tokenize1-CV8×8×8-720p to produce the visual tokens." 训练框架(L873–874):"To train our diffusion WFMs, we adopt the approach outlined in EDM (Karras et al., 2022, 2024)." 骨干(L912–913):"we describe the design of our denoiser network 𝐷𝜃 that builds upon DiT (Peebles and Xie, 2023), which was originally designed for label-conditioned image generation." 3D patchify(L924–929):"we first “patchify” the state using a linear layer and subsequently flatten it…We use 𝑝𝑡 = 1, 𝑝ℎ = 𝑝𝑤 = 2 for our denoiser network." 位置编码(L930–931):"We employ a 3D-factorized Rotary Position Embedding (RoPE) (Su et al., 2024) to allow the generation of arbitrary size, aspect ratio, and video length." 文本条件(L946–949):"We rely on cross-attention layers in our network for incorporating linguistic information…cross-attention integrates semantic context using T5-XXL (Raffel et al., 2020) embeddings as keys and values"(T5 序列定长 512,L1038)。AdaLN-LoRA(L959–961):"For Cosmos-Predict1-7B, this architectural optimization achieves a 36% reduction in parameter count (from 11B to 7B parameters) while maintaining performance parity across all evaluation metrics"。Tab.11 配置:7B 28 层/维度 4096,14B 36 层/维度 5120(FFN 16384/20480,头数 32/40)。算力(L830–831):"We train all of the WFM models reported in the paper using a cluster of 10,000 NVIDIA H100 GPUs in a time span of three months." Prompt upsampler(L1176–1177):"We fine-tune Mistral-NeMo-12B-Instruct (Mistral and NVIDIA, 2024) to build our prompt upsampler." 4.4 Autoregressive 系列(Sec.5.2):L853–858:"we first build two base models that are 4B and 12B in size, respectively, to predict future videos purely based on the current video observation. We name them Cosmos-Predict1-4B and Cosmos-Predict1-12B, respectively. These are Llama3-style GPT models trained from scratch for the video prediction task and bear no language understanding." 文本接入(L859–861):"we incorporate T5 embeddings of the input text prompt into the WFMs through cross-attention layers added to the transformer blocks. These autoregressive WFMs use Cosmos-Tokenize1-DV8×16×16-720p, which maps an input video to a few integers." 派生(L1374–1379):5B-Video2World 由 4B 派生、13B-Video2World 由 12B 派生(各加 cross-attention)。Tab.14 配置:4B 16 层/维度 4096;12B 40 层/维度 5120;词表 64,000;"3D RoPE (𝜃 = 500,000) + 3D APE"(L1367);训练分辨率(L1349):"All our models are trained with a fixed spatial resolution of 640× 1024." 推理加速(L1385–1387):"To further accelerate our autoregressive WFMs, we apply the Medusa speculative decoding framework (Cai et al., 2024)." 扩散解码器(L1465–1470):"As a result of aggressive compression, it could sometimes lead to blurriness and visible artifacts in video generation, especially in the autoregressive WFM setting…We resort to the diffusion decoder design (OpenAI, 2024; Ramesh et al., 2022) to address the limitation. Specifically, we build a more powerful tokenizer decoder by fine-tuning Cosmos-Predict1-7B-Text2Video in Sec. 5.1." 4.5 Post-training 与 3D 世界生成(Sec.6):相机控制(L1741–1742):"We include examples from post-training our WFM with camera control to achieve 3D navigable visual world generation"(对应模型 Cosmos-Predict1-7B-Video2World-Sample-CameraCond,Plücker 嵌入注入位姿,L1776–1777)。机器人两个任务(L1874–1880):指令驱动视频预测与动作驱动 next-frame 预测,输入为当前帧+文本指令或 7 维动作向量。AD 六视世界模型(L2069–2072):"It comprises approximately 3.6 million 20-second surround-view video clips (equivalent to approximately 20,000 hours of data) captured using an NVIDIA internal driving platform. Each clip is recorded from six camera views: front, left, right, rear, rear-left, and rear-right." 输出规格(L2101–2102):"All three models output 6 views of 57 frames of video at a resolution of 848× 480." 注意:论文未用「4D 世界生成」一词(txt 中 "4D" 仅出现在数据集名 EgoExo-4D,L757);其 3D+时间+相机可控的表述为「3D navigable visual world generation」,原文未写 4D 生成。

5. 实验与主结果

指标定义(L798–800):"The evaluation metrics include Peak Signal-to-Noise Ratio (PSNR), Structural Similarity (SSIM), reconstruction Fréchet Inception Distance (rFID) (Heusel et al., 2017) for images, and reconstruction Fréchet Video Distance (rFVD) (Unterthiner et al., 2019) for videos." 3D 几何一致性(L1588–1589):"The Sampson error is the first-order approximation of the distance from one interest point to its corresponding epipolar line in another view." 物理对齐三级指标(L1703–1716):像素级 PSNR/SSIM、特征级 DreamSim、物体级 IoU(用 SAMURAI 从首帧真值 mask 传播跟踪)。多视一致性(L2198–2202):TSE(单视相邻帧 Sampson 中位数)、CSE(跨视 Sampson 误差)。轨迹指标(L2236–2237):"we compute the Absolute Trajectory Error (ATE) and Relative Pose Error for both the translational component (RPE-t) and the rotational component (RPE-R)."

视频生成质量(tokenizer 重建,Tab.5/6,DAVIS 与 TokenBench):CogVideoX-4×8×8 DAVIS PSNR 29.29/SSIM 0.864/rFVD 19.58;Cosmos-0.1-Tokenizer-CV4×8×8 为 32.80/0.900/15.93;Cosmos-Tokenize1-CV4×8×8-360p 为 35.85/0.920/10.057(TokenBench 38.42/0.950/3.34)。离散侧 Cosmos-Tokenize1-DV4×8×8-360p DAVIS 32.97/0.840/53.44。Tab.9 延迟:CV4×8×8 每帧 34.8 ms vs CogVideoX 414 ms;CI8×8 每图 62.7 ms vs FLUX 242 ms(单 A100 80GB,L817)。L801–806:"Cosmos Tokenizer achieves state-of-the-art performance in all the metrics compared to prior arts on both the DAVIS video dataset and TokenBench, with a spatial-temporal compression ratio of 4× 8× 8. Moreover, even with 2× and 8× higher compression ratios (i.e., 8× 8× 8 and 8× 16× 16), Cosmos Tokenizer still achieves better quality than prior art"。

3D 一致性(Tab.19,RealEstate10K 500 视频):

方法 Sampson↓ 位姿成功率↑ PSNR↑ SSIM↑ LPIPS↓
VideoLDM 0.841 4.4% 26.23 0.783 0.135
7B-Text2World 0.355 62.6% 33.02 0.939 0.070
7B-Video2World 0.473 68.4% 30.66 0.929 0.085
4B 0.433 35.6% 32.56 0.933 0.090
5B-Video2World 0.392 27.0% 32.18 0.931 0.090
Real Videos 0.431 56.4% 35.38 0.962 0.054

物理对齐(Tab.20,PhysX/Isaac Sim 8 场景、800 段 1080p×100 帧,33 帧评测):最优为扩散 9 帧条件:7B-Video2World PSNR 21.06/SSIM 0.691/DreamSim 0.859/Avg.IoU 0.592;14B-Video2World IoU 0.598;自回归最高 12B-9 帧 IoU 0.487。结论(L1723–1730):"we also find that our diffusion WFMs perform better in pixel-level prediction than our autoregressive WFMs on the 9-frame conditional setting…We also note that our results do not suggest that the larger model performs better on our physics alignment…all the WFMs equally struggle with physics adherence and require better data curation and model design."

相机控制(Tab.22,RealEstate10K 500 样本 vs CamCo):位姿成功率 82.0% vs 43.0%;旋转误差 1.646° vs 8.277°;平移误差 0.038 vs 0.185;FID 14.30 vs 57.49;FVD 120.49 vs 433.24。

机器人(Sec.6.2):指令预测人工评测(23 个测试片段,10 名评估者,L2037):7B-Sample-Instruction 综合偏好 78.3% vs VideoLDM-Instruction 13.0%(L2040–2041);5B 版 56.5% vs 13.0%(Fig.24)。动作预测(Bridge,100 片段,Tab.23):IRASim-Action PSNR 19.13/SSIM 0.64/Latent L2 0.38/FVD 593;5B-Sample-ActionCond 19.95/0.80/0.36/434;7B-Sample-ActionCond 21.14/0.82/0.32/190。

自动驾驶(Sec.6.3,Tab.24/25):生成质量 VideoLDM-MultiView FID 60.84/FVD 884.46 vs Cosmos-7B-Text2World-Sample-MultiView 32.16/210.23;一致性 TSE 1.24 vs 0.68、CSE 6.48 vs 2.11(TrajectoryCond 0.59/2.02;真值 0.69/1.71)。轨迹:TAE-ATE 0.88/0.77/0.54(真值 0.49);TFE 20.20 cm(真值 oracle 13.49 cm),L2248–2250:"the trajectory error estimated using the generated videos from our Cosmos post-trained world models is only <7cm less precise than the ground-truth oracle"。物体追踪(L2262–2264):"Remarkably, none of the 157 objects exhibited any physically impossible scenarios"。

6. 消融

7. 局限与安全

局限(L2478–2482):"Despite the progress, the development of world foundation models is still in the early stages. Current models, including ours, fall short as reliable simulators of the physical world. We observe that our models still suffer from issues, including the lack of object permanence, inaccuracies in contact-rich dynamics, and inconsistency in instruction following. Additionally, the realism of the generated videos does not always reflect adherence to fundamental physical principles, such as gravity, light interactions, and fluid dynamics." 自回归典型失败(L1530–1531):"One notable failure case observed in the generated videos of our autoregressive WFMs is objects unexpectedly appearing from below." 物理评测观察(L1732–1734):"These range from low-level issues like object impermanence (spontaneous appearance and disappearance of objects) and deformation (shape changes) to more complex problems such as implausible kinematics, violation of gravity"。用途声明(L155–156):"While we list the possibilities, this paper does not include empirical results in applying Cosmos WFMs to them. We are eager to verify the claims in future work." 安全护栏(L2266–2269):"we develop a comprehensive guardrail system. It consists of two stages: the pre-Guard stage and the post-Guard stage. The pre-Guard stage leverages Aegis (Ghosh et al., 2024) and a keyword list to block harmful prompts. The post-Guard stage blocks harmful visual outputs using a video content safety classifier and a face blur filter." pre-Guard(L2293–2294):"Our pre-Guard is a text-domain guardrail comprising an LLM-based guardrail for semantically complex prompts and a simple blocklist-based checker for explicitly unsafe keywords.";Aegis(L2304–2306):"a fine-tuned version of Llama-Guard (Inan et al., 2023) trained on NVIDIA's Aegis Content Safety Dataset covering NVIDIA's broad taxonomy of 13 critical safety risk categories",拦截类别(L2311–2313):"violence, sexual, criminal planning, weapons, substance abuse, suicide, child sexual abuse material, hatred, harassment, threat, and profanity"。post-Guard 人脸模糊(L2335–2337):"For any detected face region larger than 20× 20 pixels, we apply pixelation to obscure the regions while preserving the overall scene composition for Physical AI applications." 红队(L2345–2346):"the red team has tested and annotated over 10,000 distinct prompt-video pairs"。

8. 叙事关联【推断,5 条】

  1. 世界模型 vs VLA 的产业定位:Cosmos 把 WFM 明确定位为与 policy 并列的 digital twin(L5–6),并列出四类用途——policy evaluation / initialization / training / planning(L130–149),即世界模型是策略的外围基础设施而非替代策略。支持句(L130–133):"Policy evaluation. This refers to evaluating the quality of a policy model in a Physical AI system. Instead of evaluating a trained policy by deploying it to a Physical AI system operating in the real world, one could instead let the digital copy of the Physical AI system interact with the world foundation model."【推断】该平台刻意不产出 policy/VLA,快脑层(VLA 类策略)可整体作为「policy model」接入其评估与合成数据管线;论文未直接讨论 VLA,原文未写。
  2. 对快脑层的可用性(推理速度/规模):自回归 4B 经 320×512 低分辨率适配+Medusa 后在 8×H100 上达 806.61 tokens/s、10.08 frames/s(Tab.17,L1459);"We observe that our model can generate 10 video frames in less than 1 second, demonstrating that we can achieve real-time video generation at 10 FPS."(L1462–1463)【推断】10 FPS 实时对服务器端在环训练/仿真可用;但该配置为 8×H100+BF16+10FPS 低分辨率输入,且 4B 单卡推理 VRAM 即 29GB(Tab.16),边缘/车载快脑层无法直接部署——原文未给单卡端到端延迟与边缘数据。
  3. 双路线分工作为产业决策依据:L2489–2493:"Our evaluation results in 3D consistency (Sec. 5.3.1) and video generation for robotics (Sec. 6.2) indicate that diffusion-based WFMs currently deliver better generation quality…However, autoregressive-based WFMs possess significant untapped potential. They could (1) leverage pre-trained weights from large language models (LLMs) to inherit extensive world knowledge and (2) enable faster generation through the use of advanced inference optimization techniques designed for causal attention."【推断】质量敏感场景(合成数据、仿真)选扩散,实时/交互场景选自回归。
  4. 开源的边界:权重开源,但数据(20M 小时、100M clips)与算力(10,000×H100×3 个月)不可复制(L33–35、L830–831;数据含 proprietary,L236)。支持句(L82–83):"As the pre-trained WFM provides a great foundation, the dataset for post-training can be much smaller."【推断】第三方最经济的路径是拿预训练权重做领域 post-training(如论文 Sec.6 的三个 -Sample 示例),而非复现预训练。
  5. 3D 可导航世界→4D 仿真雏形:相机位姿条件化创造 "navigable virtual world"(L101–102:"This post-training creates a navigable virtual world where users can explore the created world by moving the virtual viewpoint around.");AD 轨迹控制生成 TFE 20.20 cm(真值 13.49 cm,Tab.25)。【推断】相机可控+轨迹可控+多视一致构成「3D 场景+时间」的世界仿真,接近 4D 世界生成能力,但论文全文未使用「4D」术语(txt 中 4D 仅见于 EgoExo-4D 数据集名)。

9. 主要图注/表注抄录