🧠 世界模型调研与精读
精读笔记 · 批次2 · T5 决策/模拟器

UniSim 精读笔记(arXiv 2310.06114)

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

唯一数据源:papers/txt/UniSim.txt(1102 行)。所有引文逐字复制自该 txt,行号即 txt 行号;「原文未写」= 论文中查无;【推断】= 本笔记作者的解读。

1. 原文信息

2. Abstract 全文逐字(行 7–27)

Generative models trained on internet data have revolutionized how text, image, and video content can be created. Perhaps the next milestone for generative models is to simulate realistic experience in response to actions taken by humans, robots, and other interactive agents. Applications of a real-world simulator range from controllable content creation in games and movies, to training embodied agents purely in simulation that can be directly deployed in the real world. We explore the possibility of learning a universal simulator (UniSim) of real-world interaction through generative modeling. We first make the important observation that natural datasets available for learning a real-world simulator are often rich along different dimensions (e.g., abundant objects in image data, densely sampled actions in robotics data, and diverse movements in navigation data). With careful orchestration of diverse datasets, each providing a different aspect of the overall experience, we can simulate the visual outcome of both high-level instructions such as “open the drawer” and low-level controls such as “move by∆x, ∆y” from otherwise static scenes and objects. We use the simulator to train both high-level vision-language policies and low-level reinforcement learning policies, each of which can be deployed in the real world in zero shot after training purely in simulation. We also show that other types of intelligence such as video captioning models can benefit from training with simulated experience, opening up even wider applications. Video demos can be found at https://universal-simulator.github.io.

注:行 21 原文为 “move by∆x, ∆y”(无空格,照抄)。

3. 问题与动机

总体动机:生成模型已能造文本/图像/视频,终极目标是模拟动作的视觉后果。逐字(行 29–35):

Generative models trained on internet data can now produce highly realistic text (OpenAI, 2023), image (Ramesh et al., 2022), and video (Ho et al., 2022a). Perhaps the ultimate goal of generative models is to be able to simulate the visual effects of a wide variety of actions, from how cars are driven on a street to how furniture and meals are prepared. With a real-world simulator, humans can “interact” with diverse scenes and objects, robots can learn from simulated experience without risking physical damage, and a vast amount of “real-world” like data can be simulated to train other types of machine intelligence.

核心难题=数据壁垒(行 36–43):

One roadblock to building this simulator lies in the datasets — different datasets cover different information that have to be brought together to simulate realistic experience. For instance, paired text-image data from the internet contains rich scenes and objects but little movement (Schuhmann et al., 2022; Zhai et al., 2022), video captioning and question answering data contain rich high-level descriptions but little low-level movement detail (Xu et al., 2016; Krishna et al., 2017), human activity data contains rich human action but little mechanical motion (Miech et al., 2019; Grauman et al., 2022), and robotics data contains rich robot action but are limited in quantity (Dasari et al., 2019; Mandlekar et al., 2018).

Since different datasets are curated by different industrial or research communities for different purposes, divergence in information is natural and hard to overcome, posing difficulties to a real-world simulator that seeks to capture all visual aspects of the world. (行 43–45)

「多数据集编排」论证:摘要里给出图像/机器人/导航三类数据各自的贡献维度(行 15–19):

natural datasets available for learning a real-world simulator are often rich along different dimensions (e.g., abundant objects in image data, densely sampled actions in robotics data, and diverse movements in navigation data). With careful orchestration of diverse datasets, each providing a different aspect of the overall experience,

即【逐字归纳】:图像数据→物体丰富(abundant objects);机器人数据→动作稠密采样(densely sampled actions);导航数据→运动多样(diverse movements)。正文引言又把四类数据各自的「有/缺」讲全(见上引行 36–43)。解法宣言(行 46–48):

In this work, we propose to combine a wealth of data in a conditional video generation framework to instantiate a universal simulator (UniSim) 1. Under a unified action-in-video-out interface, the simulator enables rich interaction through fine-grained motion control of otherwise static scenes and objects.

「universal」的含义限定(行 50–51):Note that by “universal”, we mean the model can simulate through the unified interface of actions and videos, as opposed to being able to simulate everything. Sound, for instance, is not being simulated.

贡献三条(行 74–82):① combining diverse datasets rich in along different dimensions — e.g., objects, scenes, actions, motions, language, and motor controls — in a unified action-in-video-out generative framework;② 把该框架表述为有限历史条件下的 observation prediction model,以视频扩散模型参数化并可自回归 rollout;③ how the simulator can enable both high-level language policies, low-level control policies, and video captioning models to generalize to the real world when trained purely in simulation, thereby bridging the sim-to-real gap.

4. 方法逐机制

模拟器定义(行 84–86):We define a simulator of the real world as a model that, given some state of the world (e.g., an image frame), can take in some action as input, and produce the visual consequence of the action (in the form of a video) as output.

4.1 数据构成与动作统一(Section 2.1,逐类逐字)

训练数据明细(Table 5,行 892–906 逐字数值):

类别 数据集 # Examples Weight
Simulation Habitat HM3D (Ramakrishnan et al., 2021) 710 0.1
Language Table sim (Lynch & Sermanet, 2020) 160k 0.05
Real Robot Bridge Data (Ebert et al., 2021) 2k 0.05
RT-1 data (Brohan et al., 2022) 70k 0.1
Language Table real (Lynch & Sermanet, 2020) 440k 0.05
Miscellaneous robot videos 133k 0.05
Human activities Ego4D (Grauman et al., 2022) 3.5M 0.1
Something-Something V2 (Goyal et al., 2017) 160k 0.1
EPIC-KITCHENS (Damen et al., 2018) 25k 0.1
Miscellaneous human videos 50k 0.05
Panorama scan Matterport Room-to-Room scans (Anderson et al., 2018) 3.5M 0.1
Internet text-image LAION-400M (Schuhmann et al., 2021) 400M 0.05
ALIGN (Jia et al., 2021) 400M 0.05
Internet video Miscellaneous videos 13M 0.05

权重策略(行 889–891):The choice of mixture weights are either 0.1 or 0.05 without careful tuning. How data mixture weights affect simulation performance is an interesting line of future work.

4.2 模型架构(observation prediction + 视频扩散)

形式化(行 140–147):We define an observation space O and an action space A... At a specific interactive step t, an agent, having observed a set of history frames ht−1 ∈ O, decides on some temporally extended action at−1 ∈ A, which can be resolved into a sequence of low-level robot commands to be executed in the real world. During the execution, the next set of video frames ot ∈ O are captured from the real world. The goal of a simulator is to predict ot from ht−1 and at−1. 即学 p(ot|ht−1, at−1)。

有限历史(行 148–151):While an ideal predictive model should condition on all information of the past, i.e., (o0, a0 . . . , at−2, ot−1), through some recurrent state, we found conditioning on a finite set of frames (e.g., frames from the most recent interaction, ot−1) greatly simplifies the modeling problem.

自回归 rollout(行 151–153):To simulate long interactions, we can sample from the observation prediction model p(ot|ht−1, at−1) autoregressively conditioned on the previously sampled observations. 与奖励解耦(行 153–156):One advantage of this observation prediction model is that the simulator stays the same across all tasks and can be used in combination with any reward function, which can be separately learned.

扩散参数化(行 158–165):We parametrize p(ot|ht−1, at−1) using diffusion models... Specifically, the reverse process learns a denoising model ϵθ(o(k)t, k|ht−1, at−1) that, conditioned on the history, generates the next observation from initial noise samples using K denoising steps. In practice, we only use previous video frames and omit previous actions as history, and concatenate previous video frames with initial noise samples o(K)t ∼ N(0, I) channelwise to serve as conditional inputs to the denoising model. To condition on an action at−1, we leverage classifier-free guidance (Ho & Salimans, 2022).

条件化方式(CFG 公式,行 166–168):

ϵθ(o(k)t, k|ht−1, at−1) = (1 + η)ϵθ(o(k)t, k|ht−1, at−1) − ηϵθ(ot, k|ht−1), (1) where η controls action conditioning strength.

训练目标(行 169–171,公式中部在 txt 中乱码,两端逐字):we train ϵθ by minimizing LMSE = ... where ϵ ∼ N(0, I), and β(k) ∈ R are a set of K different noise levels for each k ∈ [1, K]. 采样迭代(行 172–176):

o(k−1)t = α(k)(o(k)t − γ(k)ϵθ(o(k)t, k|ht−1, at−1)) + ξ, ξ ∼ N(0, σ2kI), (2) where γ(k) is the denoising step size, α(k) is a linear decay on the current denoised sample, and σk is a time varying noise level that depends on α(k) and β(k).

U-Net 架构(行 177–181):We use the video U-Net architecture (Ho et al., 2022b) to implement UniSim by employing interleaved temporal and spatial attention and convolution layers in both the downsampling and upsampling passes. For history conditioning, we replicate the conditioning frames at all future frame indices, and concatenate the conditioning frames with the noise sample for each of the future frame to serve as input to the U-Net.

规模(行 181–182):UniSim model has 5.6B parameters and requires 512 TPU-v3 and 20 days to train on all data.

分辨率结构(附录 C,行 914–922):The video models in UniSim consist of one history conditioned video prediction model as the base and two additional spatial super-resolution models similar to Ho et al. (2022a). The history conditioned base model operates at temporal and spatial resolution [16, 24, 40], and the two spatial super-resolution models operate at spatial resolution [24, 40] → [48, 80] and [48, 80] → [192, 320], respectively. To condition the base video model on the history, we take 4 frames from the previous video segment and concatenate them channelwise to the noise samples inputted to the U-Net.(行 920–922 补充:We employ temporal attention for the forward model to allow maximum modeling flexibility but temporal convolution to the super-resolution models for efficiency reasons similar to Ho et al. (2022a).)

超参(Table 6,行 924–945 逐字):Base channels 1024;Optimizer Adam (β1 = 0.9, β2 = 0.99);Channel multipliers 1, 2, 4;Learning rate 0.0001;Blocks per resolution 3;Batch size 256;Attention resolutions 6, 12, 24;Num attention heads 16, 16, 8;Conditioning embedding dimension 4096;Conditioning embedding MLP layers: 4;Conditioning token length 64;EMA 0.9999;Dropout 0.1;Training hardware 512 TPU-v3 chips;Training steps 1000000;Diffusion noise schedule cosine;Noise schedule log SNR range [-20, 20];Sampling timesteps 256;Sampling log-variance interpolation γ = 0.1;Weight decay 0.0;Prediction target ϵ。

4.3 高/低层动作条件化

5. 实验与主结果

5.1 仿真质量(定性展示)

5.2 指标定义

5.3 应用一:高层 VLM 策略(hindsight relabeling,Section 4.1)

5.4 应用二:低层 RL 策略(model-based RL,Section 4.2)

5.5 应用三:视频 captioning(Section 4.3)

训练数据 Activity MSR-VTT VATEX SMIT
No finetune 15.2 21.91 13.31 9.22
Activity(真数据) 54.90 24.88 36.01 16.91
Simulator(纯生成数据) 46.23 27.63 40.03 20.58

6. 消融(全部抄录)

表 1:历史条件化消融(Ego4D,行 247–250)

Condition FID ↓ FVD ↓ IS ↑ CLIP ↑
1 frame 59.47 315.69 3.03 22.55
4 distant 34.89 237 3.43 22.62
4 recent 34.63 211.3 3.52 22.63

正文(行 283–287):Conditioning on 4 frames is better than conditioning on a single frame, but conditioning on history that is too far in the past (4 frames with exponentially increasing distances) can hurt performance. Increasing the number of conditioning frames beyond 4 did not further improve performance on Ego4D, but it could be helpful for applications that require memory from distant past (e.g., navigation for retrieval).

表 8:数据集消融(附录 E.1,行 1048–1051;1024 个 test split 样本)

Dataset FVD ↓ CLIP ↑
Internet only 219.62 22.27
Without internet 307.80 21.99
Universal simulator 211.30 22.63

正文(行 1045–1047):We observe that including internet data and various activity and robot data performs the best. Removing the internet data led to significantly worse FVD, highlighting the importance of using internet data in UniSim.

表 9:模型规模消融(附录 E.2,行 1061–1064;1024 个 test split 样本)

Model size FVD ↓ CLIP ↑
500M 277.85 22.08
1.6B 224.61 22.27
5.6B 211.30 22.63

正文(行 1056–1058):We found that while increasing the model size improves the video modeling performance, the amount of improvement measured by FVD plateaus as the model gets bigger, which is slightly disappointing from a scaling point of view.

低数据域消融(Section 3.2,行 288–295):During joint training of UniSim on diverse data, we found that naïvely combining datasets of highly varying size can result in low generation quality in low-data domains. While we can increase the weight of these domains in the data mixture during training, we found that attaching a domain identifier such as the name of the dataset to the actions being conditioned on improves generation quality in low-data domains, as shown in Figure 6. While such domain identifier improves in-distribution generation quality, we found domain-specific identifiers to hurt generalization to other domains, and should only be applied with the test domain is in distribution of the training domain.

失败对照(附录 F):图 13 注(行 1070–1072)与图 14 注(行 1099–1101)说明只训 SSV2、只训互联网数据、或只训 RT-1 数据时仿真失败。

7. 局限/未来工作(原文逐字,行 484–501)

Our simulator has a few limitations that call for future work: • Hallucination. When an action is unrealistic given the scene (e.g., “wash hands” is given to a tabletop robot), we observe hallucinations (e.g., the table turns into a sink or the view turns away from the tabletop robot and a sink shows up). Ideally, we want UniSim to detect actions that are not possible to simulate as opposed to hallucinating unrealistic outcomes. • Limited memory. The simulator conditioned on a few frames of the recent history cannot capture long-term memory (e.g., an apple in a drawer could disappear when the drawer is opened if putting the apple in the drawer is not a part of the history for conditioning). How much history to condition on depends on the application of the (e.g., whether the simulator will be used for policy learning in a near-Markov setting or question answering that requires long-term memory). • Limited out-of-domain generalization. This is especially true for domains that are not represented in the training data. For instance, the simulator is mostly trained on 4 robot morphologies, and its ability to generalize to an unseen robot is limited. Further scaling up training data could help, as the training data is nowhere near all the video data available on the internet. • Visual simulation only. Our simulator is not suitable for environments where actions do not cause visual observation change (e.g., different forces in grasping a static cup). A true universal simulator should capture all aspects of the world beyond visual experience (e.g., sound, sensory, etc).

结论(行 480–483):We have shown it is possible to learn a simulator of the real world in response to various action inputs ranging from texts to robot controls. UniSim can simulate visually realistic experiences for interacting with humans and training autonomous agents. We hope UniSim will instigate broad interest in learning and applying real-world simulators to improve machine intelligence.

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

1.【推断】UniSim 是「通用模拟器/数据复用」方向最直接的论文级证据:它把论文自身明确的「多数据集编排」主张(不同数据各贡献一个维度)落成了可训、可评测的单一模型,且摘要把 orchestration 作为核心贡献之一。支持原句(行 15–19):We first make the important observation that natural datasets available for learning a real-world simulator are often rich along different dimensions (e.g., abundant objects in image data, densely sampled actions in robotics data, and diverse movements in navigation data). With careful orchestration of diverse datasets, each providing a different aspect of the overall experience...(注:论文通篇不用「data reuse/数据复用」措辞,该词是本笔记的概括标签,原文未写。)

2.【推断】「复用」是二阶的:先复用异构数据集学出模拟器,再用模拟器产出仿真经验去训练下游模型(VLM 策略/RL/视频 captioning),等于把已有数据间接复用到新任务。支持原句(行 306–307):UniSim can generate large amounts of training data for VLM policies through hindsight relabeling. 及(行 447–448):These results suggest that UniSim can serve as an effective data generator for improving broader vision-language models.

3.【推断】UniSim 把「数据稀缺是 RL 落地瓶颈」作为叙事锚点,通用模拟器被定位为「无限环境访问」的替代品,这正是数据复用叙事的社会价值主张。支持原句(行 459–461):We focus on this exact bottleneck by learning universal simulators of the real world, enabling realistic and unlimited “environment” access for training sophisticated agents interactively.

4.【推断】编排并非简单拼接:低数据域会退化、需要 domain identifier;移除互联网数据 FVD 显著恶化——说明「复用哪些数据、如何复用」本身就是该方法的核心技术贡献而非工程细节。支持原句(行 1045–1047):Removing the internet data led to significantly worse FVD, highlighting the importance of using internet data in UniSim. 及(行 288–292):naïvely combining datasets of highly varying size can result in low generation quality in low-data domains... we found that attaching a domain identifier such as the name of the dataset to the actions being conditioned on improves generation quality in low-data domains.

5.【推断】「仿真训练→零样本真机」是 UniSim 数据复用价值的最强实证闭环:摘要与 4.1/4.2 均宣称 purely in simulation 训练可零样本部署真机,若成立则等于「数据复用可以绕开真机数据采集」。支持原句(行 23–25):We use the simulator to train both high-level vision-language policies and low-level reinforcement learning policies, each of which can be deployed in the real world in zero shot after training purely in simulation. 及(行 409–411):We then directly deploy the RL policy trained in the simulator onto the real robot in zero-shot, and observe successful task executions as shown in Figure 8 (bottom row).(【推断】注意:真机部分无量化成功率,证据强度为定性级。)

9. 图注/表注逐字抄录