MinkowskiPE: Minkowski Positional Encoding for Spatiotemporal Perception
AuthorsYuhao Li, Louie Hong Yao, Tianyi Shi, Hanqun Cao, Hongxia Hao, Zhen Zhao, Shengchao Liu
AffiliationsWave Intelligence Lab · Department of Computer Science and Engineering, The Chinese University of Hong Kong · Shanghai Artificial Intelligence Laboratory* liyh5366@gmail.com
MinkowskiPE gives attention a physics-inspired sense of spacetime, improving both molecular dynamics and video prediction with far fewer parameters.
Key results
Best result in 17 of 30 MISATO single-trajectory evaluations.
Ranks among the top two in 26 of 30 MISATO evaluations.
Best performance across all 9 evaluations on MISATO-100, MISATO-1000, and MISATO-Full.
Protocol-matched best-run MSE for KTH video prediction.
MSE reduction relative to the strongest baseline.
Model size for the KTH video-prediction system.
What the paper found
MinkowskiPE introduces a relative positional encoding for spatiotemporal Transformers that treats every token as an event with joint time and space coordinates. It projects each event coordinate into learnable scalar directions, then applies Lorentz boosts to two-dimensional query and key feature blocks while leaving values unchanged. Because the Lorentz metric converts absolute transformations into a function of relative spacetime displacement, attention becomes invariant to global coordinate translation without changing the standard dot-product interface or compatibility with FlashAttention. On the MISATO molecular-dynamics benchmark, MinkowskiPE achieves the best result in 17 of 30 single-trajectory evaluations, ranks in the top two for 26 of 30, and wins all 9 evaluations across MISATO-100, MISATO-1000, and MISATO-Full. On KTH video prediction, it reaches an MSE of 35.66, lowers MSE by 9.9 percent against the strongest baseline, and uses 2.5M parameters. Controlled ablations show a 5.7 percent MSE reduction on KTH when MinkowskiPE replaces no positional encoding. The same geometric mechanism works for molecular coordinates in three dimensions and video grids in two dimensions, while implementation uses FlashAttention on NVIDIA H200 GPUs; the paper also reports ChatGPT and Codex assistance for writing, literature discovery, debugging, and experiment organization.
Original abstract
Modeling spatiotemporal coupling is a key challenge in building physical intelligence across scales, from microscopic to macroscopic. Existing models capture such structure broadly through physics-motivated dynamical formulations or learning-motivated architectures. The former provide stronger priors but may constrain flexibility, whereas the latter are more flexible but leave the spatiotemporal coupling largely implicit. We therefore seek an approach that combines flexible learning with an explicit geometric bias for jointly modeling time and space. To this end, we propose Minkowski Positional Encoding (MinkowskiPE), which uses joint temporal and spatial coordinates to parameterize Lorentz transformations applied to query and key features. With MinkowskiPE, the query-key attention score depends on position only through the relative spacetime displacement between the two tokens and is therefore invariant to global translation of the coordinates. This paradigm retains the standard dot-product attention interface and remains compatible with efficient attention implementations. We evaluate MinkowskiPE on microscopic molecular dynamics and macroscopic video prediction tasks, achieving the best results on all nine multi-trajectory molecular evaluations and reducing KTH video-prediction MSE by 9.9% relative to the best baseline while using roughly one-tenth as many parameters.
Read the original paperMore in Attention Mechanisms
Browse all 27 papers →Hard Sample-Conditioned Decorrelated Attention for Robust Face Recognition
Tahar Chettaoui, Guray Ozgur, Eduarda Caldeira, Naser Damer, Fadi Boutros
ViT-HarDis encourages attention heads to specialize more on difficult face samples, improving recognition without extra inference cost.
Muir: Linear Attention with Sensitivity-Allocated Gating and Matched-Filter Readout
Tushaar Gangavarapu, Gil Tabak, Clemens JS Schaefer
Muir redesigns linear attention’s gates and readout to improve language-model quality and long-context retrieval while preserving efficient training and inference.
Training Vision Transformers to Focus: Emergence of Spatial Attention Head Specialization
Yuji Nozawa, Yu-Chieh Lin, Youyang Ng
The method encourages Vision Transformers to develop distinct, spatially focused attention heads without image annotations.