Extend recursive-relation detection to complex machine-learning algorithms

Extend the ProvQML recursive-relation detection algorithm to support more complex machine-learning algorithms, such as neural networks, by accounting for additional base cases per recursive relation and deeper recursive dependencies.

Background

ProvQML identifies mutually recursive and non-linearly recursive relations in machine-learning queries using a single-pass scan of each recursive case. The paper notes that this procedure is sufficient for the fixed recursive structure of the machine-learning queries considered, which contain a primary recursive relation and auxiliary relations for prediction and gradient computation.

The authors explicitly leave open the extension of this detection procedure to more complex machine-learning algorithms, including neural networks. Such an extension would require the algorithm to recognize additional base cases for each recursive relation and to inspect deeper recursive dependencies beyond the fixed structure supported in the paper.

References

Note that the detection algorithm can be extended to support more complex ML algorithms, such as neural networks, by generalizing the inspection to account for additional base cases per recursive relation in 𝑄𝑀𝐿 and deeper recursive dependencies which we leave as future work.

— ProvQML: Efficient Provenance Capture for Machine Learning as Recursive Aggregate SQL [Extended Version]  (2610.13756 - Akinwale et al., 9 Oct 2026) in Section 5.1, p. 13