In indoor 3D localization inside multistory buildings, an elevator or an escalator accelerates for a few seconds and then cruises at constant velocity for tens of seconds. Gait excitation disappears, the specific force degenerates into a constant gravity reaction, and instantaneous velocity becomes unobservable within a 1-2 s window. The output of short-window learned inertial odometry consequently degrades toward the conditional mean of the training set, and vertical displacement is systematically underestimated. We propose Local-Token Causal Attention (LTCA), a long-horizon architecture that compresses each 1 s inertial window into a 1 Hz motion token and sustains, over a bounded 60 s causal cache, the motion state established at the onset event. We further introduce a pluggable barometer branch that, when online, supplies a direct elevation constraint to the vertical channel through local differential height observations, and we train it with paired online/fallback conditional training so that the barometer also regularizes the representation shared by the two modes during training. On MSIO, our benchmark of nine buildings, the RoNIN and TLIO instances reach 3D trajectory errors (ATE-3D) of 2.83/4.18 m and 2.44/5.12 m on the Seen and Unseen splits, respectively, with the barometer online. With the barometer disabled at inference, the same weights fall back to pure inertial inference and reach 3.24/4.28 m and 2.64/5.23 m, still below every native short-window baseline. We further validate the framework on the public RoNIN and TLIO benchmarks.
Figures & tables
Split
Seq.
Dur. (h)
Description
Training
290
29.34
Used for training
Validation
30
2.64
Used for model selection
Seen test
30
2.61
Buildings seen in training; sessions disjoint from training
Unseen test
17
1.67
Buildings and test subjects unseen in training
TABLE I: Splits of the MSIO dataset. All sequences were recorded with a 100 Hz six-axis IMU and a synchronized barometer; reference trajectories were generated by LiDAR-inertial mapping. The Unseen split participates in neither training nor model selection.
(a) Seen
Model
LTCA
Baro
Mode
ATE-3D
ATE-XY
Z-RMSE
RTE-60s
DTE-1m
Native RoNIN
×
×
–
5.64
3.93
3.54
3.60
0.31
Native TLIO
×
×
–
5.91
3.57
4.23
4.01
0.31
IDOL
×
×
–
5.87
3.95
3.89
3.99
0.32
CTIN
×
×
–
5.68
3.52
3.90
3.69
0.30
EqNIO
×
×
–
5.48
3.45
3.80
3.67
0.30
TABLE II: 3D dead reckoning results on MSIO. For each backbone, “online” and “fallback” are two inference modes of the same set of weights; IDOL is inferred with a 1 s window following its official deployment configuration. Best results on each split are in bold. Unit: m.
Fig. 1: Error cumulative distributions over the 17 Unseen sequences: (a) ATE-3D; (b) Z-RMSE; (c) RTE-60s ( n=17 ).
Fig. 2: Planar trajectories of four representative sequences: (a) and (d) are Seen sequences that contain elevator segments, (b) is a Seen sequence without elevators, and (c) is an Unseen sequence. Ground truth, the native baselines, and the complete architecture in online and fallback modes are compared.
(a) Seen
Model
Flat
Stairs
Escalator
Elevator
Native RoNIN
1.10 / 0.18
0.54 / 0.16
1.23 / 1.82
0.28 / 2.79
Native TLIO
1.07 / 0.08
0.44 / 0.13
1.66 / 1.93
0.16 / 3.76
RoNIN-LTCA
0.92 / 0.12
0.49 / 0.11
0.75 / 0.36
0.14 / 0.43
TLIO-LTCA
0.91 / 0.12
0.42 / 0.11
0.65 / 0.34
0.14 / 0.63
RoNIN-LTCA+Baro (online)
0.84 / 0.12
0.46 / 0.10
0.67 / 0.36
0.14 / 0.39
TABLE III: Diagnostic error breakdown by motion mode; each cell reports ATE-XY / Z-RMSE. This table is not comparable with Table II, because within each segment the origin is reset to the segment start and the RMS is computed per segment, then averaged over segments of the same mode; “online” and “fallback” are two inference modes of the same weights. Unit: m.
Fig. 3: Accumulated vertical displacement when the visible history is restricted: (a) 24 s elevator segment; (b) 45 s escalator segment. The horizontal axis is sequence time in (a) and the time since the onset event in (b).
Input condition
Elevator
Escalator
True input
1.358
0.242
Mask attention to event tokens
0.347 ( −74% )
0.175 ( −28% )
Mask attention to control tokens
1.379 (+2%)
0.242 (0%)
TABLE IV: Vertical speed output after masking attention to the onset-event tokens (60 s pure-IMU model, median). The model is the inertial-only model without the barometric branch; masking affects attention only and leaves all other inputs unchanged. Unit: m/s.
Baro at
ATE-3D
Z-RMSE
Cfg.
Training
inference
Seen
Unseen
Seen
Unseen
A
single-path NLL (no barometric branch)
none
3.26
6.91
1.18
2.98
B
paired conditional training
cut (fallback)
2.64
5.23
0.95
1.84
C
paired conditional training
online
2.44
5.12
0.64
1.56
TABLE V: Barometric branch and training conditions (TLIO backbone). A is the pure inertial control without the barometric branch and uses a single-path NLL; B and C are the two inference modes of paired conditional training, B being the fallback configuration in which the availability mask is set to zero at inference. For the RoNIN backbone, A is 3.44/4.55 m, B is 3.24/4.28 m, and C is 2.83/4.18 m. Unit: m.
Fig. 4: Effect of the barometer availability ratio (0–100%) on ATE-3D and Z-RMSE for both backbones: (a)(b) Seen; (c)(d) Unseen.
Model
Split
ATE
RTE-60s
DTE-1m
Native RoNIN
Seen
7.08
4.66
0.23
Native RoNIN
Unseen
10.48
7.29
0.33
RoNIN-LTCA (60 s)
Seen
6.14
4.06
0.18
RoNIN-LTCA (60 s)
Unseen
9.10
6.44
0.27
TABLE VI: Evaluation on the public RoNIN and TLIO benchmarks. Unit: m.
TABLE VII: Ablation on data augmentation. Unit: m.
Metric
TLIO-LTCA
Increase over native TLIO
Parameters
5.66 M
+0.63 M (+12.5%)
Per-step computation (MMACs)
21.67
+1.38 (+6.8%)
Per-step latency (ms, mean/p95)
2.75 / 3.12
—
TABLE VIII: Per-step inference cost (TLIO backbone, batch size 1, FP32). Latency was measured on an Apple M4 CPU; the RoNIN-LTCA+Baro instance takes 3.39 / 3.67 ms. With the KV cache enabled, a step computes only the current token, and the latency is independent of the history length.