Abstract
Deep learning models for scholarly big data often face significant bottlenecks during data ingestion and preprocessing. This paper introduces P3SAPP, a Spark ML-driven framework designed to parallelize these tasks, drastically reducing ingestion time and operational costs. By leveraging Apache Spark, the proposed pipeline achieves over a 90% reduction in ingestion time for massive datasets, ensuring high-end GPUs are utilized efficiently during training rather than sitting idle during data preparation.
Introduction
In the domain of Deep Learning (DL), research often focuses on model architectures and training loops. However, for "Scholarly Big Data"—comprising millions of research papers and metadata—the data pipeline is frequently the primary bottleneck. A common "cloud-computing pain point" occurs when expensive GPUs remain idle while the CPU handles single-threaded, resource-intensive data cleaning tasks. This underutilization leads to increased project costs and slower development cycles.
The challenge lies in creating a scalable, parallelized pipeline capable of preparing data at a rate that keeps the training process efficient. The workflow typically follows a sequence from acquisition to visualization, where preprocessing often consumes the bulk of the time.
Methodology
The authors propose the Preprocessing Pipeline for Scholarly Applications (P3SAPP), which shifts data preparation from single-threaded environments like standard Python/Pandas to Apache Spark.
Core Components
- Parallel Ingestion: Spark SQL is used to ingest massive JSON-formatted scholarly data into Spark DataFrames.
- Spark ML Pipelines: Four custom APIs were implemented for text-cleaning:
ConvertToLower: Case standardization.RemoveHTMLTags: Stripping noise from web-crawled data.RemoveUnwantedCharacters: Handling punctuation and contractions.RemoveShortWords: Noise filtering based on word length.
Dataset and Case Study
The study utilized the CORE dataset, containing 123 million metadata items (1.44 TB unzipped). Subsets ranging from 4.18 GB to 23.58 GB were used for benchmarking. To validate the pipeline, an LSTM-based encoder-decoder model with an attention mechanism was developed for abstractive text summarization.
Algorithmic Comparison
The primary innovation of P3SAPP is its parallelized approach to data handling compared to the Conventional Approach (CA).
As shown in the algorithmic comparison, P3SAPP utilizes Spark DataFrames and ML Pipelines to handle ingestion and cleaning in a distributed manner. In contrast, the CA relies on iterative Pandas operations which scale poorly with data volume, leading to non-linear growth in processing time.
Key Results and Insights
The quantitative improvements were substantial:
- Ingestion Speedup: For datasets larger than 5 GB, P3SAPP reduced ingestion time by over 99%.
- Preprocessing Efficiency: An average reduction of 40% in preprocessing time was observed.
- Cumulative Savings: For a 23.58 GB dataset, total time dropped from ~33,563 seconds (CA) to ~581 seconds (P3SAPP)—a 98.2% reduction.
- Accuracy: The pipeline maintained a 97.9% average accuracy in record matching compared to conventional methods.
A key insight is the "Conversion Bottleneck": the time taken to convert Spark DataFrames back to Pandas for DL libraries is currently the most significant overhead in P3SAPP. Additionally, the cost-benefit of this pipeline is most pronounced when training for fewer epochs, as preprocessing time constitutes a larger portion of the total cloud bill.
Conclusion
P3SAPP demonstrates that distributed data processing is essential for big data scholarly applications. While the "Pandas bridge" remains a bottleneck, future work will focus on integrating deep learning models directly into the Spark environment (e.g., Spark DL) and testing on full-fledged distributed clusters to further enhance performance.
Summary updated