KV-SLAM: Real-Time SLAM via Flexible KV Caching

Department of Computing, Imperial College London

* Equal contribution

Abstract

We present KV-SLAM, a real-time monocular dense SLAM system built around flexible key–value (KV) caching with an off-the-shelf geometry model. A bounded local cache supports frame-level tracking, while a persistent global keyframe map retains a longer history. When the cache lacks sufficient geometric support, KV-SLAM selects views from the global map. It rebuilds the cache from these views if they suffice. Otherwise, it adds the current frame as a keyframe and builds the cache from both. This design enables continued localisation in mapped regions while controlling keyframe growth. KV-SLAM achieves state-of-the-art performance across indoor and outdoor benchmarks and runs at approximately 35 FPS end-to-end on 7-Scenes using a single consumer GPU.

Method

KV-SLAM system diagram showing local KV tracking, historical support view selection, map reuse or local mapping, and global optimisation.
System diagram of KV-SLAM. Each frame queries the local KV cache using the off-the-shelf π3X model for pose and dense geometry, with pointmap matches to active keyframes assessing geometric support. When support is insufficient, we select complementary historical keyframes. If their support is sufficient, a rebuilt and validated cache enables map reuse without adding a keyframe. Otherwise, the current frame becomes a keyframe and is jointly processed with the selected views for local mapping, fusing historical pointmaps and rebuilding the cache. Relative-pose constraints connect the new keyframe to its support views in the backend graph, whose global optimisation updates the local-to-world alignment for subsequent tracking.

Results

KV-SLAM reconstructions of a multi-level building, a multi-room interior, and an outdoor square from handheld smartphone video.
3D maps from handheld RGB video. KV-SLAM reconstructs a multi-level building (16,200 frames, 25.6 FPS), a multi-room interior (8,086 frames, 30.4 FPS), and an outdoor square (11,357 frames, 28.5 FPS).
Piano scene during first-pass mapping and later localisation, with keyframe and FPS curves comparing KV-SLAM and VGGT-SLAM 2.0.
Map reuse vs. VGGT-SLAM 2.0. During revisits to the piano scene, KV-SLAM uses the map from its first pass. Its keyframe count stabilises at 11, while VGGT-SLAM 2.0 adds keyframes until it reaches 185.

BibTeX

@misc{zhang2026kvslamrealtimeslamflexible,
  title         = {{KV-SLAM}: Real-Time {SLAM} via Flexible {KV} Caching},
  author        = {Shuyuan Zhang and Yuzhou Cheng and Marwan Taher and Andrew J. Davison},
  year          = {2026},
  eprint        = {2612.00050},
  archivePrefix = {arXiv},
  primaryClass  = {cs.CV},
  url           = {https://arxiv.org/abs/2612.00050}
}