XTRIDE recovers struct layouts with 90.15% accuracy, 70-2300× faster than prior work
The authors claim their n-gram-based approach achieves comparable struct recovery performance while being dramatically faster and yields the highest fully-correct layout ratio
Security & privacy arXiv 9 Mar 2026 Method Prototype evidence
Published as “Practical Type Inference: High-Throughput Recovery of Real-World Structures and Function Signatures”
Why it matters
The speed and calibrated confidence make XTRIDE suitable for large-scale automated binary analysis pipelines where runtime constraints previously prevented type recovery.
Summary
XTRIDE achieves 90.15% overall type inference accuracy on the DIRT benchmark, improving the by 5.09 percentage points, while its Rust implementation runs at 0.04 ms per function-70 to 2300× faster than prior systems. It also attains 68.66% accuracy on out-of-training functions and up to 61.27% precision for function-signature recovery on embedded firmware. The paper reports calibrated confidence scores that let users trade coverage for reliability. The evaluation covers both the public DIRT dataset and several real-world binaries, but some results (e.g., struct identification precision) remain modest.
What they found 2
- Overall type inference accuracy of 90.15% on DIRT, surpassing prior work by 5.09 points
“our model outperforms the current on the DIRT dataset by 5.09 percentage points, achieving 90.15% type inference accuracy overall.”
- Inference speed of 0.04 ms per function, orders of magnitude faster than baselines
“Our Rust implementation processes the DIRT test set at 0.04 ms per function, where the original Python STRIDE implementation is reported to take 8.2 ms [12] and DIRTY takes between 200 (low beam setting on GPU) and 8500 ms (high beam setting in CPU), resulting in a 200 to 100, 000× speed-up.”
Caveats 5
- Struct identification precision is only 0.512 (51.2%) for XTRIDE, far below HyRES (95.8%).
- Function-signature recovery achieves moderate precision (average 51.47%) and low recall, limiting its practical utility.
- Out-of-training accuracy remains at 68.66%, indicating substantial errors on unseen code.
- XTRIDE in its base configuration without grounding in the test set has notable difficulties correctly identifying struct types.
- A significant share (15.68%) of all unidentified structs had a groundtruth label outside of XTRIDE’s vocabulary.
What’s new here 4
- Provides a calibrated confidence score for threshold-based filtering of type predictions.
- Implements the n-gram approach in Rust, yielding 70-2300× speedups over Python-based STRIDE and Transformer baselines.
- Optimized training regimen with larger n-gram databases that improves overall accuracy without increasing memory footprint.
- Extends the n-gram matching technique to function-signature recovery for embedded firmware.