CF-JEPA
INFO
Esta página aún no está traducida. Leer en inglés
Byrd, Wright and Ha, CF-JEPA: Improving Robustness of JEPA World Models via Controllability Factorization, 2026. Paper · Code: not released · Notebook
CF-JEPA (controllability factorization) is LeWM with its latent split in two,
Usage
from torch_world.models import CFJEPA
from torch_world.nn import CLSEncoder
model = CFJEPA(CLSEncoder(img_size=64, patch_size=8, embed_dim=128, depth=4, num_heads=4), action_dim=2,
embed_dim=128, ctrl_dim=96, history=3, depth=4, num_heads=4, head_dim=32, mlp_dim=512, proj_dim=512)
out = model(pixels, actions) # (B, history + 1, C, H, W), (B, history + 1, A)
# out: {"loss", "pred_loss", "inverse_loss", "adversary_loss", "sigreg_loss"}
z = model.encode(pixels) # (B, T, embed_dim), controllable dims first
zc, zu = model.split(z) # (B, T, ctrl_dim), (B, T, embed_dim - ctrl_dim)
cost = model.cost(model.rollout(z[:, :1], plan), goal) # distance on z^c onlyThe paper uses alpha = 3. rollout advances both parts, and CEM uses the model's cost, which reads only
The paper does not give every detail, so these are this implementation's choices:
- The encoder output goes through LeWM's projector before the split. The paper mentions no projector, but it builds on the LeWM code, and keeping the projector makes CF-JEPA match the LeWM baseline.
- SIGReg runs on the whole latent. The paper says only that it uses LeWM's SIGReg.
has half of 's depth. The paper says only that is smaller. and are two-layer GELU MLPs with inv_dimhidden units. The paper gives the depth and activation but not the width.- The gradient reversal scale is
reversal = 1. The paper does not state it. - Both predictors use the same
historywindow as LeWM.
The paper splits ViT-tiny's 192 dimensions into 128 for recompute_batchnorm before planning.
Reference
Arguments and methods: CFJEPA in the API reference.
