arXiv:2610.32510cs.NIOct 2026

Manuscript Offprint

arXiv:2610.32510

Quantum-Classical Link Prediction on Dark Web Hyperlink Graphs

Vojtěch Novák, Radovan Rečka, Ondřej Knebl, Aktham Youssef, Ivan Zelinka

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

We analyze HTML content and hyperlinks from an offline Tor crawl containing 383 onion hosts and 2,067 directed cross-host links. The study combines semantic analysis with degree-controlled quantum-classical link prediction. Two directory groups emit 94.8% of the observed host links. Directed preferential attachment reaches ROC-AUC 0.976 with random non-edges, but falls to 0.550±0.0140.550 \pm 0.014 under source-conditioned target-degree matching. With disjoint training and test pairs, multimodal logistic regression reaches 0.672±0.0210.672 \pm 0.021, GAE 0.899±0.0160.899 \pm 0.016, and VGAE 0.906±0.0160.906 \pm 0.016. A four-qubit variational quantum classifier (VQC) comparison tests two encodings across 20 disjoint-pair graph splits under exact and 1,024-shot simulation, with classical controls using the same inputs and training examples. Its best exact mean ROC-AUC is 0.549±0.0230.549 \pm 0.023, compared with 0.551±0.0160.551 \pm 0.016 for RBF SVC and 0.573±0.0290.573 \pm 0.029 for a 16-parameter MLP on the same inputs and training examples. These results support predictive signal in combined graph/content features and show why degree control, feature compression, and optimization conditions matter in quantum-classical comparisons.

Keywords: dark web, Tor onion services, link prediction, graph machine learning, quantum machine learning, variational quantum classifier, degree bias, evolutionary optimization

1 Introduction

Tor onion services form a web ecosystem that is difficult to observe completely. Services appear and disappear, discovery depends on crawl seeds and traversal rules, and directories can have a large influence on the observed hyperlink graph. Previous studies have examined Tor connectivity, content categories, community structure, redirects, and page/site relationships [1−4][1-4].

Earlier crawls show large differences between the linking patterns of Tor services. Griffith et al. found that most sites in their sample had no outgoing links to other sites [5]. Bernaschi et al. described a small strongly connected core in which directories link to many peripheral services [3]. Zabihimayvan et al. studied page topics together with hyperlink structure to characterize service categories and their connections [6]. Al-Nabki et al. proposed ToRank to identify influential onion domains from hyperlink connectivity and compared it with PageRank, HITS, and Katz [7]. Node embeddings and graph autoencoders also provide methods for learning features used in link prediction [8, 9]. We study whether graph and content features predict withheld hyperlinks when the evaluation reduces the advantage of using endpoint degree alone.

Our dataset contains HTML snapshots and hyperlinks but no verified malware, activity, or service labels. We use the content to describe the sampled services and the observed graph to define a self-supervised link-prediction task. The DUTA study illustrates supervised content classification when activity labels are available [10]. Al Nabki et al. later combined textual, HTML, visual, and topological features for supervised ranking, using manually ranked Tor services for evaluation [11]. For our study, the observed hyperlinks supply the prediction targets.

Link prediction is useful for studying incomplete networks, but its evaluation depends strongly on how absent edges are sampled. Common heuristics and learned models can exploit endpoint degree when positive and negative examples have different degree distributions [12–14]. This is especially relevant in crawled web graphs with hubs and directories. We therefore measure this bias directly and use degree-matched negatives for the main comparison.

Quantum machine learning (QML) models can use quantum feature maps to introduce nonlinear interactions between numerical inputs [15]. Parameterized circuits are trained with classical optimizers, allowing shallow models to be studied with limited qubit counts [16]. Schuld et al. showed how data-encoding gates determine the Fourier frequencies available to a broad class of circuit models [17]. In our setting, graph and content features must be compressed to fit a small qubit register. Link prediction therefore gives a task on which to test how much useful signal a compact circuit retains after compression. Huang et al. showed that training data can make classical learners competitive on quantum-motivated tasks [18], and Bowles et al. found that standard classical models generally performed better than the quantum classifiers in their small-task benchmarks [19]. Studies of variational energy minimization also report changes in optimizer performance under finite-shot noise [20, 21]. We compare variational quantum classifiers (VQCs) with classical models using the same inputs and training examples, and examine the effects of encoding, optimization, and finite-shot measurement.

Related QML studies include a framework for moving from classical to hybrid learning [22], a combined convolutional and quantum model for image classification [23], and a clinical comparison of quantum and classical classifiers [24]. Earlier quantum link-prediction studies include PQCLP, which uses trainable quantum circuit classifiers [25]; PQKELP, which combines graph embeddings with projected quantum kernels [26]; and QGCNLP, which applies quantum circuits to features aggregated within graph-convolutional layers [27]. Our comparison uses a directory-dominated Tor hyperlink graph with degree-matched negatives and disjoint training and test pairs. Classical controls use the same inputs and training data, with additional comparisons for parameter count and optimization budget. The circuit design accounts for the influence of feature order and the measurement observable [28].

This study combines semantic analysis of the crawl with a degree-controlled link-prediction benchmark. We measure how negative sampling affects the scores of degree-based methods, evaluate classical graph and content models on withheld links, and compare compact VQCs with classical controls. The comparisons account for input representation, training data, parameter count, and optimization.

References (46)