The SpatialLM-Mini prototype was developed to test whether replacing full attention with a sparse graph can accelerate training for small language models on long sequences. The experiment involved three architectures: spatial attention, a standard Transformer, and a hybrid model.

Training was conducted on the novel Pride and Prejudice using a 16,384-token context window. The models were tested on an NVIDIA RTX 3050 with 8 GB of VRAM. The spatial model demonstrated a 2.47x faster training speed compared to the standard Transformer, while the hybrid model was 1.43x faster.

Despite the speed gains, the spatial model consumed more memory due to the materialization of intermediate tensors during neighbor collection. The number of parameters was kept nearly identical across all models, ranging from 9,323,248 to 9,323,392 parameters.

The experiment results indicate that while spatial attention allows for faster updates on long sequences, it does not currently prove a definitive benefit of the geometric approach over other sparse attention methods. Further testing is required to isolate the impact of learned coordinates versus the sparse graph structure.