Abstract
Reproducing Deep Learning (DL) projects is frequently hindered by "dependency hell"—complex version incompatibilities across libraries, runtimes, drivers, and hardware. This paper presents DECIDE, a novel tool that extracts compatibility knowledge from Stack Overflow discussions using a pre-trained Question-Answering (QA) model. By constructing a cross-layer knowledge graph, DECIDE identifies version issues with 91.7% precision, significantly outperforming existing metadata-based tools.
Introduction
Deep Learning development relies on a multi-layered stack: Libraries (e.g., PyTorch), Runtimes (Python), Drivers (CUDA), OS/Containers (Docker), and Hardware (Nvidia GPU). Traditional dependency management tools often fail because they rely on official metadata (like PyPI), which is frequently incomplete or silent on cross-layer interactions—such as how a specific library version interacts with a specific GPU driver or hardware architecture like Apple's M1 chip.
The DECIDE Framework
The authors propose DECIDE, a pipeline designed to transform unstructured forum discussions into actionable engineering data. The system operates in four primary stages:
- Data Filtering: 53 million Stack Overflow posts were filtered to ~355,000 relevant discussions using linguistic patterns and DL-specific keywords.
- Component Recognition: The system identifies 48 popular DL components and their versions. A weighted stable matching algorithm ensures version numbers are correctly linked to components within complex natural language sentences.
- QA-based Extraction: Instead of rigid rule-based NLP, DECIDE reformulates knowledge extraction as a Question-Answering task. It prompts the UnifiedQA model with specific questions (e.g., "Is TensorFlow 1.15 compatible with Python 3.8?") based on the context of the post.
- Knowledge Consolidation: Individual extractions are aggregated into a weighted knowledge graph. A confidence score resolves conflicting information by weighing "votes" from multiple discussions.
Experimental Results
DECIDE was evaluated against 10 real-world GitHub projects containing 17 verified version issues. The tool achieved a precision of 91.7% and a recall of 64.7%. In comparison, existing state-of-the-art tools like PyEGo and Watchman achieved significantly lower precision (33.3% and 16.7%, respectively).
A key finding was that 13 out of 17 benchmark issues were cross-layer (e.g., Library vs. Driver), confirming that tools restricted to single-layer metadata are insufficient for modern DL development. DECIDE's ability to treat Stack Overflow as "living documentation" allows it to capture these undocumented edge cases.
Conclusion
DECIDE demonstrates that large-scale forum data, when processed through modern QA models, can effectively bridge the gap in official software documentation. While currently limited to 48 components, the framework provides a scalable path toward automated "dependency hell" resolution in complex software ecosystems.
Summary updated