Search papers, labs, and topics across Lattice.
K\mathbf{C}=\{\mathbf{e}_{k}\in\mathbb{R}^{D}\}_{k=1}^{K} with codebook size KK. We choose KK to be small to capture coarse primary action prototypes and make primary policy easy to learn. Given an action chunk π\mathbf{a}, the encoder produces π³e=EΟβ(π)\mathbf{z}_{e}=E_{\phi}(\mathbf{a}) and we quantize it to the nearest codebook vector: kβ=argβminkβ‘βπ³eβπkβ2,π³~=πkβ,m:=kβ.k^{*}={\textstyle\mathrm{arg}\,\min_{k}}\|\mathbf{z}_{e}-\mathbf{e}_{k}\|_{2},\qquad\tilde{\mathbf{z}}=\mathbf{e}_{k^{*}},\qquad m:=k^{*}. (2) We define mm as the primary mode. Reconstruction is π^(m)=DΟβ(π³~)\hat{\mathbf{a}}^{(m)}=D_{\psi}(\tilde{\mathbf{z}}). We train the VQ-VAE with the standard commitment and reconstruction terms: βVQβ(π)=βπβDΟβ(π³~)β22+βsgβ[EΟβ(π)]βπ³~β22+Ξ²ββEΟβ(π)βsgβ[π³~]β22,\mathcal{L}_{\text{VQ}}(\mathbf{a})\;=\;\|\mathbf{a}-D_{\psi}(\tilde{\mathbf{z}})\|_{2}^{2}\;+\;\|\text{sg}[E_{\phi}(\mathbf{a})]-\tilde{\mathbf{z}}\|_{2}^{2}\;+\;\beta\|E_{\phi}(\mathbf{a})-\text{sg}[\tilde{\mathbf{z}}]\|_{2}^{2}, (3) where sgβ[β ]{\rm sg}[\cdot] denotes stop-gradient and Ξ²\beta is the commitment weight. The primary policy is a classifier Ο1β(mβ£π¨)\pi_{1}(m\mid\mathbf{o}) trained to predict the VQ code mm from observation π¨\mathbf{o}. At test time, we select the discrete mode mm for the current chunk by choosing the highest predicted probability from Ο1\pi_{1}. Both encoder EΟE_{\phi} and decoder DΟD_{\psi} are implemented as compact MLPs. Primary Mode Policy. The primary policy Ο1β(mβ£π¨)\pi_{1}(m\mid\mathbf{o}) maps the shared observation embedding to a categorical distribution over the KK VQ bins. We implement Ο1\pi_{1} as a lightweight MLP classifier. During training Ο1\pi_{1} is optimized with a standard cross-entropy objective that matches the encoder-assigned VQ indices. At test time we use greedy mode selection for reliability. The separation of primary-mode selection as an explicit classifier drastically reduces coarse mode bouncing. 3.4 Mode Conditioned MeanFlow Policy After selecting a primary mode mm, we recover a high-quality continuous action chunk that respects the selected mode. To balance generation quality and real-time responsiveness, we use a one-step generative modeling inspired by MeanFlow (Geng et al., 2025). Instead of multi-step denoising iterations, a learned average velocity field predicts the displacement from noise to the desired action in one function evaluation. Let mm be the selected discrete mode and π^(m):=DΟβ(πm)\hat{\mathbf{a}}^{(m)}:=D_{\psi}(\mathbf{e}_{m}) be the VQ-decoder reconstruction of the mode. The role of the one-step generator is to produce a residual Ξβπ\Delta\mathbf{a} conditioned on observation π¨\mathbf{o} and mode mm, such that the final action chunk is π^=π^(m)+Ξβπ\hat{\mathbf{a}}=\hat{\mathbf{a}}^{(m)}+\Delta\mathbf{a}. Mode and Observation Conditioned Average Velocity Field. Following MeanFlow (Geng et al., 2025), we implement the residual as an average velocity field π―Β―ΞΈβ(π³r,Ο,r;π¨,m)\bar{\mathbf{v}}_{\theta}\big(\mathbf{z}_{r},\,\tau,\,r;\;\mathbf{o},m\big), where π³r\mathbf{z}_{r} denotes a state on the interpolation path between noise sample and the target action, Οβ[0,1]\tau\in[0,1] is the interpolation start time, and rβ(0,1]r\in(0,1] is the end time. The MeanFlow field is trained to match the ground-truth average velocity over arbitrary intervals [Ο,r][\tau,r], which is written as π―Β―ββ(π³r,Ο,r)=sgβ(dβπ³rdβrβ(rβΟ)β(dβπ³rdβrββπ―Β―ΞΈβπ³+βπ―Β―ΞΈβr)).\bar{\mathbf{v}}^{*}(\mathbf{z}_{r},\tau,r)=\text{sg}\!\Big(\tfrac{d\mathbf{z}_{r}}{dr}-(r-\tau)\Big(\tfrac{d\mathbf{z}_{r}}{dr}\tfrac{\partial\bar{\mathbf{v}}_{\theta}}{\partial\mathbf{z}}+\tfrac{\partial\bar{\mathbf{v}}_{\theta}}{\partial r}\Big)\Big). (4) The dβπ³rdβr\tfrac{d\mathbf{z}_{r}}{dr} is the instantaneous velocity of π³r\mathbf{z}_{r} at time rr. βπ―Β―ΞΈβπ³\tfrac{\partial\bar{\mathbf{v}}_{\theta}}{\partial\mathbf{z}} describes how the average velocity responds to perturbations in the residual draft, and βπ―Β―ΞΈβr\tfrac{\partial\bar{\mathbf{v}}_{\theta}}{\partial r} captures how it evolves as the interpolation approaches the target residual. We train π―Β―ΞΈ\bar{\mathbf{v}}_{\theta} with squared-error objective that supervises the predicted average velocity. More detailed derivations of the formulation are provided in Appendix. Implementation Details. For backbone modeling we use a DiT-style transformer backbone (Peebles and Xie, 2023). Each action chunk is represented as a sequence of tokens. The time-related scalars Ο\tau and rr are expanded via sinusoidal embeddings (Vaswani et al., 2017), which are added to observation embedding, as well as a learnable embedding of the discrete mode mm. During training, (Ο,r)(\tau,r) is sampled from a uniform distribution and π³0\mathbf{z}_{0} is from standard normal distribution. 3.5 Theoretical analysis With the two-stage architecture defined, we now provide a concise theoretical analysis that explains why this coarse-to-fine decomposition strictly reduces the minimum achievable MSE compared to single-stage generative predictors. Single-stage generative methods produce actions by sampling a latent code π³βΌπ©β(0,I)\mathbf{z}\sim\mathcal{N}(0,I) and decoding π^g=Οβ(π¨,π³)\hat{\mathbf{a}}_{g}=\pi(\mathbf{o},\mathbf{z}). Under the squared-error criterion, the best point estimate is the conditional expectation π^gββ(π¨)=πΌπ³β[Οβ(π¨,π³)]\hat{\mathbf{a}}_{g}^{*}(\mathbf{o})=\mathbb{E}_{\mathbf{z}}[\pi(\mathbf{o},\mathbf{z})]. The resulting expected MSE decomposes into an irreducible data variance term and a model bias: πΌπ¨,π[β₯πβπ^gβ(π¨)β₯2]=πΌπ¨[Var(πβ£π¨)]+πΌπ¨[β₯πΌ[πβ£π¨]βπ^gβ(π¨)β₯2].\mathbb{E}_{\mathbf{o},\mathbf{a}}\!\big[\|\mathbf{a}-\hat{\mathbf{a}}_{g}^{*}(\mathbf{o})\|^{2}\big]=\mathbb{E}_{\mathbf{o}}\big[\mathrm{Var}(\mathbf{a}\mid\mathbf{o})\big]+\mathbb{E}_{\mathbf{o}}\big[\|\mathbb{E}[\mathbf{a}\mid\mathbf{o}]-\hat{\mathbf{a}}_{g}^{*}(\mathbf{o})\|^{2}\big]. (5) When the model is unbiased the second term vanishes and the minimum achievable error equals πΌπ¨β[Varβ(πβ£π¨)]\mathbb{E}_{\mathbf{o}}[\mathrm{Var}(\mathbf{a}\mid\mathbf{o})]. In our two-stage scheme the primary stage selects a discrete mode m^β(π¨)\hat{m}(\mathbf{o}) and the second stage outputs π^β(π¨,m,π³)=Ο2β(π¨,m,π³)\hat{\mathbf{a}}(\mathbf{o},m,\mathbf{z})=\pi_{2}(\mathbf{o},m,\mathbf{z}). For any fixed (π¨,m)(\mathbf{o},m), the optimal MSE predictor collapses the stochasticity in π³\mathbf{z} to the conditional expectation π^ββ(π¨,m)=πΌπ³β[Ο2β(π¨,m,π³)]\hat{\mathbf{a}}^{*}(\mathbf{o},m)=\mathbb{E}_{\mathbf{z}}[\pi_{2}(\mathbf{o},m,\mathbf{z})], yielding the irreducible residual πΌπ¨,mβ[Varβ(πβ£π¨,m)]\mathbb{E}_{\mathbf{o},m}[\mathrm{Var}(\mathbf{a}\mid\mathbf{o},m)] when the model is unbiased. By the law of total variance, πΌπ¨,mβ[Varβ(πβ£π¨,m)]=πΌπ¨β[Varβ(πβ£π¨)]βπΌπ¨β[Varmβ£π¨β(πΌβ[πβ£π¨,m])],\mathbb{E}_{\mathbf{o},m}\big[\mathrm{Var}(\mathbf{a}\mid\mathbf{o},m)\big]=\mathbb{E}_{\mathbf{o}}\big[\mathrm{Var}(\mathbf{a}\mid\mathbf{o})\big]-\mathbb{E}_{\mathbf{o}}\big[\mathrm{Var}_{m\mid\mathbf{o}}\!\big(\mathbb{E}[\mathbf{a}\mid\mathbf{o},m]\big)\big], (6) which is no greater than πΌπ¨β[Varβ(πβ£π¨)]\mathbb{E}_{\mathbf{o}}[\mathrm{Var}(\mathbf{a}\mid\mathbf{o})], and is strictly smaller whenever Varmβ£π¨β(πΌβ[πβ£π¨,m])>0\mathrm{Var}_{m\mid\mathbf{o}}\!\big(\mathbb{E}[\mathbf{a}\mid\mathbf{o},m]\big)>0. Intuitively, discretizing into primary modes removes inter-mode variance from the residual error, lowering the MSE bound compared to single-stage latent samplers. 4 Experiments 4.1 Simulation Evaluation Adroit DexArt MetaWorld Method Hammer Door Pen Laptop Faucet Toilet Bucket Medium (6) Hard (5) Success IBC 0.00Β±0.000.00\scriptstyle{\pm 0.00} 0.00Β±0.000.00\scriptstyle{\pm 0.00} 0.10Β±0.010.10\scriptstyle{\pm 0.01} 0.01Β±0.010.01\scriptstyle{\pm 0.01} 0.07Β±0.020.07\scriptstyle{\pm 0.02} 0.15Β±0.010.15\scriptstyle{\pm 0.01} 0.00Β±0.000.00\scriptstyle{\pm 0.00} 0.11Β±0.020.11\scriptstyle{\pm 0.02} 0.09Β±0.030.09\scriptstyle{\pm 0.03} 0.08 BC-H 0.10Β±0.090.10\scriptstyle{\pm 0.09} 0.07Β±0.050.07\scriptstyle{\pm 0.05} 0.16Β±0.030.16\scriptstyle{\pm 0.03} 0.09Β±0.020.09\scriptstyle{\pm 0.02} 0.13Β±0.040.13\scriptstyle{\pm 0.04} 0.21Β±0.020.21\scriptstyle{\pm 0.02} 0.10Β±0.010.10\scriptstyle{\pm 0.01} 0.15Β±0.030.15\scriptstyle{\pm 0.03} 0.18Β±0.050.18\scriptstyle{\pm 0.05} 0.15 DP 0.48Β±0.170.48\scriptstyle{\pm 0.17} 0.50Β±0.050.50\scriptstyle{\pm 0.05} 0.25Β±0.040.25\scriptstyle{\pm 0.04} 0.69Β±0.040.69\scriptstyle{\pm 0.04} 0.23Β±0.080.23\scriptstyle{\pm 0.08} 0.58Β±0.020.58\scriptstyle{\pm 0.02} 0.46Β±0.010.46\scriptstyle{\pm 0.01} 0.20Β±0.050.20\scriptstyle{\pm 0.05} 0.19Β±0.030.19\scriptstyle{\pm 0.03} 0.30 DP3 1.00Β±0.00\mathbf{1.00\scriptstyle{\pm 0.00}} 0.62Β±0.040.62\scriptstyle{\pm 0.04} 0.43Β±0.060.43\scriptstyle{\pm 0.06} 0.83Β±0.010.83\scriptstyle{\pm 0.01} 0.63Β±0.020.63\scriptstyle{\pm 0.02} 0.82Β±0.04\mathbf{0.82\scriptstyle{\pm 0.04}} 0.46Β±0.020.46\scriptstyle{\pm 0.02} 0.45Β±0.050.45\scriptstyle{\pm 0.05} 0.35Β±0.020.35\scriptstyle{\pm 0.02} 0.51 FlowPolicy 1.00Β±0.00\mathbf{1.00\scriptstyle{\pm 0.00}} 0.58Β±0.050.58\scriptstyle{\pm 0.05} 0.53Β±0.120.53\scriptstyle{\pm 0.12} 0.85Β±0.020.85\scriptstyle{\pm 0.02} 0.42Β±0.100.42\scriptstyle{\pm 0.10} 0.80Β±0.050.80\scriptstyle{\pm 0.05} 0.39Β±0.060.39\scriptstyle{\pm 0.06} 0.47Β±0.070.47\scriptstyle{\pm 0.07} 0.37Β±0.070.37\scriptstyle{\pm 0.07} 0.51 PF-DAG (Ours) 1.00Β±0.00\mathbf{1.00\scriptstyle{\pm 0.00}} 0.65Β±0.03\mathbf{0.65\scriptstyle{\pm 0.03}} 0.65Β±0.01\mathbf{0.65\scriptstyle{\pm 0.01}} 0.90Β±0.02\mathbf{0.90\scriptstyle{\pm 0.02}} 0.72Β±0.05\mathbf{0.72\scriptstyle{\pm 0.05}} 0.82Β±0.02\mathbf{0.82\scriptstyle{\pm 0.02}} 0.47Β±0.02\mathbf{0.47\scriptstyle{\pm 0.02}} 0.68Β±0.04\mathbf{0.68\scriptstyle{\pm 0.04}} 0.72Β±0.03\mathbf{0.72\scriptstyle{\pm 0.03}} 0.72\mathbf{0.72} Table 1: Quantitative comparison of PF-DAG against state-of-the-art baselines on 18 tasks from three simulation benchmarks. Benchmarks and Datasets. We evaluate our method on manipulation benchmarks that cover a broad range of control domains. We use Adroit (Rajeswaran et al., 2017), DexArt (Bao et al., 2023) and MetaWorld (Yu et al., 2020) as our simulation benchmarks. These are implemented on physics engines like MuJoCo (Todorov et al., 2012) and IsaacGym (Makoviychuk et al., 2021). For fair comparison we adopt the same task splits and data collection pipelines as in prior work (Ze et al., 2024): Adroit tasks with high-dimensional Shadow hand and MetaWorld with low-dimensional gripper are trained with 10 expert demos per task, while DexArt with Allegro hand uses 90 expert demos. Demonstrations are collected using scripted policies for MetaWorld tasks, and RL-trained expert agents (Wang et al., 2022; Schulman et al., 2017) for Adroit and DexArt. Each experiment is run with three random seeds. For each seed we evaluate the policy for 20 episodes every 200 training epochs and then compute the average of the top-5 highest success rates (Ze et al., 2024). The final metric is the mean and standard deviation across the three seeds. Experiment Setup. All networks are optimized with AdamW (Loshchilov and Hutter, 2017). We apply a short linear warmup followed by cosine decay for the learning rate. Training proceeds in stages: first we pretrain the VQ-VAE to learn compact primary prototypes; then we freeze the codebook and jointly train the Primary Mode Policy Ο1\pi_{1} (cross-entropy to the VQ indices) and the mode-conditioned MeanFlow generator vΒ―ΞΈ\bar{v}_{\theta} (squared-error supervision on sampled (Ο,r)(\tau,r) intervals). At inference we set (Ο,r)=(0,1)(\tau,r)=(0,1) for one-step continuous action chunk generation. Baselines. We compare against the following representative baselines. Implicit Behavioral Cloning (IBC) (Florence et al., 2022) serves as a representative implicit BC method. BC-H (Foster et al., 2024) represents non-generative approaches for mitigating mode instability. Diffusion Policy (DP) (Chi et al., 2023) pioneers the original formulation of image-conditioned diffusion-based policies. While
1
0
3
2
Robots can now learn dexterous manipulation skills across different hand designs, thanks to a new Transformer architecture that treats actions as a flexible arrangement of joint movements, rather than a fixed sequence.