TL;DR: We adapt Mamba2's structured mask to 2D scanning and integrates it into the self-attention mechanism of ViTs as an explicit positional encoding. An illustration of the 2D polyline path scanning ...