BRo-JEPA: Learning Modular Arithmetic in Latent Space

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Jha, Divyansh, Xie, Yuanfang, Mehra, Varan, Yu, Brennen
Format: Preprint
Published: 2026
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866911738577813504
author Jha, Divyansh
Xie, Yuanfang
Mehra, Varan
Yu, Brennen
author_facet Jha, Divyansh
Xie, Yuanfang
Mehra, Varan
Yu, Brennen
contents Can neural networks learn abstract algebraic rules, or do they merely memorize training patterns? We investigate this using MNIST digits as states and modular arithmetic operations as actions in a JEPA-style latent world model. Standard supervised baselines and JEPA models with additive operation embeddings fit seen operations but fail to extrapolate reliably to unseen ones. To bridge this gap, we introduce a block-rotation predictor that imposes the circular structure of modulo-10 arithmetic in latent space. This enables strong zero-shot generalization, with the best ResNet-based JEPA block-rotation model achieving 99.46\% zero-shot and 99.46\% rollout accuracy. Our results suggest that latent world models can learn symbolic transformation rules when architecture matches the structure of the problem. Our code can be \href{https://github.com/DL-World-Models/mnist-math}{accessed here}.
format Preprint
id arxiv_https___arxiv_org_abs_2606_01372
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle BRo-JEPA: Learning Modular Arithmetic in Latent Space
Jha, Divyansh
Xie, Yuanfang
Mehra, Varan
Yu, Brennen
Machine Learning
Artificial Intelligence
Computer Vision and Pattern Recognition
Can neural networks learn abstract algebraic rules, or do they merely memorize training patterns? We investigate this using MNIST digits as states and modular arithmetic operations as actions in a JEPA-style latent world model. Standard supervised baselines and JEPA models with additive operation embeddings fit seen operations but fail to extrapolate reliably to unseen ones. To bridge this gap, we introduce a block-rotation predictor that imposes the circular structure of modulo-10 arithmetic in latent space. This enables strong zero-shot generalization, with the best ResNet-based JEPA block-rotation model achieving 99.46\% zero-shot and 99.46\% rollout accuracy. Our results suggest that latent world models can learn symbolic transformation rules when architecture matches the structure of the problem. Our code can be \href{https://github.com/DL-World-Models/mnist-math}{accessed here}.
title BRo-JEPA: Learning Modular Arithmetic in Latent Space
topic Machine Learning
Artificial Intelligence
Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2606.01372