Skip to main content

Graph Homomorphism Features: Why Not Sample?

  • Conference paper
  • First Online:
Machine Learning and Principles and Practice of Knowledge Discovery in Databases (ECML PKDD 2021)

Abstract

Recent research in the domain of computed graph embeddings has shown that graph homomorphism numbers constitute expressive features that are well-suited for machine learning tasks such as graph classification. In this work-in-progress paper, we attempt to make this methodology scalable by obtaining additive approximations to graph homomorphism densities via a simple sampling algorithm. We show in experiments that these approximate homomorphism densities perform as well as homomorphism numbers on standard graph classification datasets. Moreover, we show that, unlike algorithms that compute homomorphism numbers, our sampling algorithm is highly scalable to larger graphs.

Supported by Agence Nationale de la Recherche (ANR), projects STAP (ANR-17-CE23-0021) and ESIGMA (ANR-17-CE23-0010). F. Yger acknowledges the support of the ANR as part of the “Investissements d’avenir” program (ANR-19-P3IA-0001, PRAIRIE 3IA Institute).

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 129.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 169.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    Standard datasets contain relatively sparse graphs which means that the corresponding complement graphs are dense. Dense graphs have larger homomorphism densities which are easier to detect at fixed precision and more amenable for training machine learning models.

References

  1. Beaujean, P., Sikora, F., Yger, F.: Scaling up graph homomorphism features with efficient data structures. In: ICLR 2021 Workshop on Geometrical and Topological Representation Learning (2021). https://openreview.net/forum?id=EwT8NpZIth8

  2. Beaujean, P., Sikora, F., Yger, F.: Scaling up graph homomorphism for classification via sampling. CoRR abs/2104.04040 (2021). https://arxiv.org/abs/2104.04040

  3. Bouritsas, G., Frasca, F., Zafeiriou, S., Bronstein, M.M.: Improving graph neural network expressivity via subgraph isomorphism counting. CoRR abs/2006.09252 (2020). https://arxiv.org/abs/2006.09252

  4. Bronstein, M.M., Bruna, J., LeCun, Y., Szlam, A., Vandergheynst, P.: Geometric deep learning: going beyond Euclidean data. IEEE Signal Process. Mag. 34(4), 18–42 (2017)

    Google Scholar 

  5. Bulatov, A., Živný, S.: Approximate counting CSP seen from the other side. ACM Trans. Comput. Theory 12, 1–19 (2020). https://doi.org/10.1145/3389390

  6. Curticapean, R., Dell, H., Marx, D.: Homomorphisms are a good basis for counting small subgraphs. In: Proceedings of the 49th Annual ACM SIGACT Symposium on Theory of Computing, pp. 210–223 (2017)

    Google Scholar 

  7. Dalmau, V., Jonsson, P.: The complexity of counting homomorphisms seen from the other side. Theoret. Comput. Sci. 329(1–3), 315–323 (2004)

    Article  MathSciNet  Google Scholar 

  8. Díaz, J., Serna, M., Thilikos, D.M.: Counting H-colorings of partial k-trees. Theor. Comput. Sci. 281(1–2), 291–309 (2002)

    Google Scholar 

  9. Errica, F., Podda, M., Bacciu, D., Micheli, A.: A fair comparison of graph neural networks for graph classification. In: ICLR (2019)

    Google Scholar 

  10. Grohe, M.: word2vec, node2vec, graph2vec, x2vec: towards a theory of vector embeddings of structured data. In: PODS (2020)

    Google Scholar 

  11. Hu, W., Fey, M., Ren, H., Nakata, M., Dong, Y., Leskovec, J.: OGB-LSC: a large-scale challenge for machine learning on graphs. arXiv preprint arXiv:2103.09430 (2021)

  12. Lovász, L.: Operations with structures. Acta Mathematica Academiae Scientiarum Hungarica (1967)

    Google Scholar 

  13. Lovász, L.: Large networks and graph limits. American Mathematical Soc. (2012)

    Google Scholar 

  14. Morris, C., Kriege, N.M., Bause, F., Kersting, K., Mutzel, P., Neumann, M.: TUDataset: A collection of benchmark datasets for learning with graphs. In: ICML Workshop on Graph Representation Learning and Beyond (GRL+) (2020). www.graphlearning.io

  15. NT, H., Maehara, T.: Graph homomorphism convolution. In: ICML (2020)

    Google Scholar 

  16. Shervashidze, N., Vishwanathan, S., Petri, T., Mehlhorn, K., Borgwardt, K.: Efficient graphlet kernels for large graph comparison. In: AIStat (2009)

    Google Scholar 

  17. Wu, Z., Pan, S., Chen, F., Long, G., Zhang, C., Philip, S.Y.: A comprehensive survey on graph neural networks. IEEE Trans. Neural Networks Learn. Syst. (2020)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Paul Beaujean .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2021 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Beaujean, P., Sikora, F., Yger, F. (2021). Graph Homomorphism Features: Why Not Sample?. In: Kamp, M., et al. Machine Learning and Principles and Practice of Knowledge Discovery in Databases. ECML PKDD 2021. Communications in Computer and Information Science, vol 1524. Springer, Cham. https://doi.org/10.1007/978-3-030-93736-2_17

Download citation

  • DOI: https://doi.org/10.1007/978-3-030-93736-2_17

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-030-93735-5

  • Online ISBN: 978-3-030-93736-2

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics