XAMT: Cross-Framework API Matching for Testing Deep Learning Libraries

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Duan, Bin, Dong, Ruican, Dong, Naipeng, Kim, Dan Dongseong, Yang, Guowei
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866908492856557568
author Duan, Bin
Dong, Ruican
Dong, Naipeng
Kim, Dan Dongseong
Yang, Guowei
author_facet Duan, Bin
Dong, Ruican
Dong, Naipeng
Kim, Dan Dongseong
Yang, Guowei
contents Deep learning powers critical applications such as autonomous driving, healthcare, and finance, where the correctness of underlying libraries is essential. Bugs in widely used deep learning APIs can propagate to downstream systems, causing serious consequences. While existing fuzzing techniques detect bugs through intra-framework testing across hardware backends (CPU vs. GPU), they may miss bugs that manifest identically across backends and thus escape detection under these strategies. To address this problem, we propose XAMT, a cross-framework fuzzing method that tests deep learning libraries by matching and comparing functionally equivalent APIs across different frameworks. XAMT matches APIs using similarity-based rules based on names, descriptions, and parameter structures. It then aligns inputs and applies variance-guided differential testing to detect bugs. We evaluated XAMT on five popular frameworks, including PyTorch, TensorFlow, Keras, Chainer, and JAX. XAMT matched 839 APIs and identified 238 matched API groups, and detected 17 bugs, 12 of which have been confirmed. Our results show that XAMT uncovers bugs undetectable by intra-framework testing, especially those that manifest consistently across backends. XAMT offers a complementary approach to existing methods and offers a new perspective on the testing of deep learning libraries.
format Preprint
id arxiv_https___arxiv_org_abs_2508_12546
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle XAMT: Cross-Framework API Matching for Testing Deep Learning Libraries
Duan, Bin
Dong, Ruican
Dong, Naipeng
Kim, Dan Dongseong
Yang, Guowei
Software Engineering
Deep learning powers critical applications such as autonomous driving, healthcare, and finance, where the correctness of underlying libraries is essential. Bugs in widely used deep learning APIs can propagate to downstream systems, causing serious consequences. While existing fuzzing techniques detect bugs through intra-framework testing across hardware backends (CPU vs. GPU), they may miss bugs that manifest identically across backends and thus escape detection under these strategies. To address this problem, we propose XAMT, a cross-framework fuzzing method that tests deep learning libraries by matching and comparing functionally equivalent APIs across different frameworks. XAMT matches APIs using similarity-based rules based on names, descriptions, and parameter structures. It then aligns inputs and applies variance-guided differential testing to detect bugs. We evaluated XAMT on five popular frameworks, including PyTorch, TensorFlow, Keras, Chainer, and JAX. XAMT matched 839 APIs and identified 238 matched API groups, and detected 17 bugs, 12 of which have been confirmed. Our results show that XAMT uncovers bugs undetectable by intra-framework testing, especially those that manifest consistently across backends. XAMT offers a complementary approach to existing methods and offers a new perspective on the testing of deep learning libraries.
title XAMT: Cross-Framework API Matching for Testing Deep Learning Libraries
topic Software Engineering
url https://arxiv.org/abs/2508.12546