# Testing Deep Learning Library APIs via Cross-Framework Differential Fuzzing

DevFeed: [Testing Deep Learning Library APIs via Cross-Framework Differential Fuzzing](<https://devfeed.tech/articles/testing-deep-learning-library-apis-via-cross-framework-differential-fuzzing-107350.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2608.11886>)

Author: Bin Duan, Ruican Dong, Naipeng Dong, Dan Dongseong Kim, Guowei Yang

Published: 2026-10-30T04:00:00Z

Content type: article

Language: en

Sources: [arXiv: Software Engineering](<https://devfeed.tech/sources/arxiv-software-engineering.md>)

Topics: [Fuzzing/Fuzz testing](<https://devfeed.tech/topics/fuzzing.md>), [Test automation](<https://devfeed.tech/topics/test-automation.md>), [Deep learning](<https://devfeed.tech/topics/deep-learning.md>)

Tags: [abstract](<https://devfeed.tech/tags/abstract.md>), [aliases](<https://devfeed.tech/tags/aliases.md>), [analysis](<https://devfeed.tech/tags/analysis.md>), [api](<https://devfeed.tech/tags/api.md>), [apis](<https://devfeed.tech/tags/apis.md>), [applications](<https://devfeed.tech/tags/applications.md>), [approach](<https://devfeed.tech/tags/approach.md>), [arxiv](<https://devfeed.tech/tags/arxiv.md>), [backends](<https://devfeed.tech/tags/backends.md>), [boundary](<https://devfeed.tech/tags/boundary.md>), [candidate](<https://devfeed.tech/tags/candidate.md>), [cross](<https://devfeed.tech/tags/cross.md>), [cs-se](<https://devfeed.tech/tags/cs-se.md>), [deep](<https://devfeed.tech/tags/deep.md>), [deep-learning](<https://devfeed.tech/tags/deep-learning.md>), [differential-fuzzing](<https://devfeed.tech/tags/differential-fuzzing.md>), [framework](<https://devfeed.tech/tags/framework.md>), [fuzzing](<https://devfeed.tech/tags/fuzzing.md>), [learning](<https://devfeed.tech/tags/learning.md>), [library](<https://devfeed.tech/tags/library.md>), [testing](<https://devfeed.tech/tags/testing.md>)

## AI overview

Xamt tests deep learning library APIs by comparing execution-validated groups of APIs intended to perform equivalent operations across seven libraries. It uses API aliases and parameter-role normalization to propose matches, then checks them pairwise and as groups on ordinary inputs. Variance-guided fuzzing explores ordinary, boundary, and non-finite inputs; crash and output-inconsistency oracles flag cases for reproduction. Xamt reports 676 validated groups spanning 2,563 APIs and 72 independently reproduced discrepancies: 4 crashes and 68 output inconsistencies. Of 72 developer reports, 25 were confirmed and 23 fixed.

## Source excerpt

arXiv:2608.11886v2 Announce Type: replace Abstract: Deep learning libraries underpin many safety- and reliability-critical applications, yet existing API-level testing techniques often rely on intra-library properties or CPU--GPU differential oracles and may miss defects that behave consistently across hardware backends. We present Xamt, a cross-framework differential fuzzing approach for deep learning library APIs. Xamt constructs and tests execution-validated groups of APIs intended to implement equivalent operations across seven libraries. It uses explicit API aliases and parameter-role normalization to construct candidate correspondences and validates them through pairwise execution and a group-level behavioral check on canonical ordinary inputs. The resulting groups are explored using variance-guided differential fuzzing with ordinary, boundary, and non-finite inputs. Crash and inconsistency oracles flag executions exhibiting abnormal termination or inconsistent outputs for subsequent reproduction and analysis. Across the seven libraries, Xamt constructs 676 execution-validated groups containing 2,563 matched APIs. Among these, Xamt identifies 72 independently reproduced discrepancy cases, including 4 crash cases and 68 output inconsistencies. Among the 72 developer reports, 25 have been confirmed, including 23 that have been fixed.