Share
Embed
Introducing graphons: a tool for modeling graphs
Cyber security is intimately connected with graphs. From event graphs and attack graphs to networks of telecommunication scams, graphs are everywhere in a cyber context. Understanding and modeling their underlying structure is therefore important. In this talk, we introduce graphons—a non-parametric framework for modeling graphs—and explore recent advances, including their use in generative modeling. We discuss how this perspective could help us model and generate graphs relevant to cyber security.
Sevvandi Kandanaarachchi
November 25, 2026
Annual Pro sale · Save $30
Have presentations of your own?
Share with private links, password protection, and more control over your work.
Transcript
61 slides
-
Introducing graphons: a tool for modeling graphs Sevvandi Kandanaarachchi Cybersecurity
Group Seminar, CSIRO, 10 Nov 2026 1 -
Joint work with… a Cheng Soon Ong Asiri Wijesinghe Piotr
Koniusz D n Steinberg -
Graphs in cyber security • Network security nd tt ck
gr phs • M lw re n lysis nd prop g tion • Intrusion nd nom ly detection • User beh vior nd identity security • Softw re supply-ch in security • Phishing nd cybercrime networks a a a a a a a a a a a a a a a a a a a • Crypto networks -
Overview • Introducing gr phons • Recent gr ph gener
tion using gr phons • Gr phon mixtures a a a a a a a a • Flow m tching ppro ches -
What are graphons? • A symmetric, me sur ble function
W : [0,1] Stoch stic Block Model gr phon 2 → [0,1] Ring gr phon Erdos-Renyi gr phon • Comp ct dom in, bounded function, no need to be continuous a a a a a a a a 7 -
Sampling graphs from a graphon • S y your gr
ph h s n nodes l beled {1,2,…, n} • Uniformly s mple n points from the interv l [0,1] - {u1, u2, …, un} • For every (ui, uj) the v lue W(ui, uj) is the edge prob bility ui uj • Edge eij ∼ Bernoulli(W(ui, uj)) • Toss coin with prob bilityW(ui, uj) nd connect the nodes i nd j if you get he ds • E ch edge is connected independently - we’ll get b ck to this l ter on! a a a a a a a a a a a a a a a a 8 -
Consider edge e23 Consider edge e21 Resulting gr ph Example
u2 u3 u1 u2 Bernoulli(W(u2, u1)) = 0 => No edge Bernoulli(W(u2, u3)) = 1 => Add edge Consider edge e31 u3 u1 Resulting gr ph W(x, y) = 0.6 a a Bernoulli(W(u3, u1)) = 1 => Add edge 9 -
Graphons as graph generators W • Cl ssic l Stoch
stic Block Model type gr phon a a a a 11 -
Graphons as graph generators W • Gr ph gener ted
from W h s ring structure (but dense) a a a a 12 -
Graphons as graph generators W • W = exp( −
(x + y)/30) 13 -
Three related objects • Adj cency m trix - Empiric
l gr phon - pixel pictures Adj cency m trix a a a a a a a a a a a a M trix gets converted to function on unit squ re Empiric l gr phon Pixel picture 1 => bl ck 0 => white 15 -
Graph limits • As the number of nodes n incre
ses in Gn, do the pixel pictures converge • The limit is the gr phon Erdos-Renyi gr phs Growing uniform tt chment gr phs Bi-p rtite gr phs 16 a gr phon. Notices of the AMS, 62(1), 46-48. a a a a a a a a a a a Gl sscock, D. (2015). Wh t is... -
Graphon estimation techniques • E rlier methods focus on single
gr ph. Estim ting from multiple gr phs more ch llenging. • Bec use you h ve to order the nodes to lign with the gr phon 18 a a a a a a a a a a a • Recently, neur l network methods -
Sorting and Smoothing algorithm • Step 1: Sort degrees in
Gn nd l bel nodes in th t order • Step 2: Histogr m estim tor • Step 3: Smoothing • Only for Monotonic gr phons: degree function g(x) = 1 ∫0 W(x, y) dy ϕ • If ϕ exists such th tg (x) is strictly incre sing or decre sing, where ϕ g (x) = 1 ∫0 ϕ W (x, y) dy then the gr phon is strictly monotonic a a a a a a a a a a Chan, Stanley, and Edoardo Airoldi. "A consistent histogram estimator for exchangeable graph models." International Conference on Machine Learning. PMLR, 2014. 19 -
Dense and sparse graphs • Consider gr ph sequence {Gn}n,
where Gn h s n nodes nd m edges. m • Dense gr phs: lim inf 2 = c > 0 n→∞ n Dense • Edges grow qu dr tic lly with nodes m • Sp rse gr phs: lim 2 = 0 n→∞ n • Edges grow subqu dr tic lly with nodes Sp rse a a a a a a a a a a a a a a 21 -
Limitation of traditional graphons • Gr phs represented by gr
phon re dense • These gr phons c nnot model sp rse gr phs St r gr ph ex mple • Why? 2m The volume from converges to (x, y, W(x, y)) lim • n→∞ n 2 m • For sp rse gr phs lim 2 = 0 ⟺ W = 0 n→∞ n a a a a a a a a a a a a a 22 -
What happens when W = 0? gr ph from W
= 0 • S mple • You h ve W=0 gr ph with n nodes, but no edges — not represent tive of sp rse gr phs This is the fund ment l problem of gr phons! a a a a a a a a a a a a 23 -
Graphons for sparse graphs Caron, F., & Fox, E. B.
(2017). Sparse graphs using exchangeable random measures. Journal of the Royal Statistical Society Series B: Statistical Methodology, 79(5), 1295-1366. Borgs, C., Chayes, J. T., Cohn, H., & Holden, N. (2018). Sparse exchangeable graphs and their limits via graphon processes. Journal of Machine Learning Research, 18(210), 1-71. Crane, H., & Dempsey, W. (2018). Edge exchangeable models for interaction networks. Journal of the American Statistical Association, 113(523), 1311-1326. Veitch, V., & Roy, D. M. (2015). The class of random graphs arising from exchangeable random measures. arXiv 25 preprint arXiv:1512.03099. -
Graphon mixtures fi Sevvandi Kandanaarachchi, Cheng Soon Ong Proceedings of
The 29th International Conference on Arti cial Intelligence and Statistics, PMLR 300:514-522, 2026. -
Basic idea • 2 gr phons (U, W) • W
- produces the dense gr ph • U - produces the sp rse gr ph • Join the two gr phs r ndomly with given budget of edges a a a a a a a 27 -
Basic idea • 2 gr phons (U, W) • W
- produces the dense gr ph • U - produces the sp rse gr ph - Hold on! But How? We can’t get sparse graphs from a graphon. • Join the two gr phs r ndomly with given budget of edges a a a a a a a 28 -
Basic idea • 2 gr phons (U, W) • U
- produces the sp rse gr ph - Hold on! But How? We can’t get sparse graphs from a graphon. Tr nsform tion a a a a a Transform sparse graphs into dense graphs 29 -
The line graph transformation • Edges M pped to vertices
• Vertices re connected, if they sh re n edge • Work origin ted by H ssler Whitney in 1932 Gr ph G Line gr ph H = L(G) a a a a a a a a 30 -
Star graphs • St r gr phs Gn Inverse line
gr ph • Line gr phs of st rs (complete subgr phs) Hm = L(Gn) S mple Gr ph • Gr phons of line gr phs 31 a a a a a a a a a a Kandanaarachchi, S., & Ong, C. S. (2024). Graphons of line graphs. arXiv preprint arXiv:2409.01656. -
Graphon mixtures S mple dense gr ph S mple sp
rse gr ph Gnd −1 R ndomly join the two gr phs Gns = L (Hms) First s mple disjoint cliques Then compute the inverse line gr ph • P r meters: dense nodes nd, sp rse edges ms, the number of edges when joining mnew fi a a a a a a a a a a a a Sevvandi Kandanaarachchi, Cheng Soon Ong Proceedings of The 29th International Conference on Arti cial Intelligence and Statistics, PMLR 300:514-522, 2026. 32 -
A sample from a sparse mixture S mple dense gr
ph Gnd S mple sp rse gr ph Mixture gr ph fter joined −1 Gns = L (Hms) First s mple disjoint cliques Then compute the inverse line gr ph a a a a a a a a a • ndi = 50, nsi = 100 33 -
A sample from a dense mixture S mple dense gr
ph Gnd S mple sp rse gr ph Mixture gr ph fter joined −1 Gns = L (Hms) First s mple disjoint cliques Then compute the inverse line gr ph a a a a a a a a a 34 -
A sample from a sparse mixture S mple dense gr
ph Gnd S mple sp rse gr ph Mixture gr ph fter joined −1 Gns = L (Hms) First s mple disjoint cliques Then compute the inverse line gr ph a a a a a a a a a 35 -
Inference • Inference results in the p per • Given
(U, W)-mixture gr ph, c n we estim te U? • Yes, we c n if the mixture is sp rse. And we c n bound the error • We c n predict the top-k degrees in gr ph. 36 fi a a a a a a a a a a a Sevvandi Kandanaarachchi, Cheng Soon Ong Proceedings of The 29th International Conference on Arti cial Intelligence and Statistics, PMLR 300:514-522, 2026. -
Graphettes Im ge credits: Wikimedi Commons a a Wijesinghe, A.,
Kandanaarachchi, S., Steinberg, D. M., & Ong, C. S. (2026). Flowette: Flow Matching with Graphette Priors for Graph Generation. NeurIPS (Accepted). -
D t Noise • Noise gets tr nsformed to d
t by le rning velocity ield • Noise is e sily speci ied for im ges • What is noise for a given graph distribution? a a a a f a f a a 39 a a A slide from Lipman’s tutorial -
What is the noise for a graph distribution? • The
noise depends on the gr ph distribution • If we re gener ting sp rse gr phs, the noise needs to be sp rse • Simil rly for dense • A bit more co rse m tching between the noise nd the ctu l gr phs • The noise should be somewh t like the gr ph structur lly a a a a a a a a a a a a a a a a 40 -
Graphettes • Gr phette • W is = (W, ρn,
f ) 2 gr phon on [0,1] • {ρn}n = (ρ1, …, ρi, …) , • f is sequence, c n converge to zero gr ph edit function - eg. ring ddition, st r ddition, cycle deletion • First consider Wn = ρnW • S mple G̃n ∼ Wn • Then the gr ph edit function cts on the gr ph Gn = f(G̃n) a a a a a a a a a a a a a a 𝒲 Graphettes can generate dense or sparse graphs with different motif structures 42 -
= (W, ρn, f ) with ρn = 1 and
f = Id Example Gn W • In this c se it Gn ∼ is the s me s s mpling from the gr phon Gn ∼ W (s mple from Wn = ρnW nd then f cts on the gr ph) 43 a a a a a a a a a a a a 𝒲 𝒲 • Ex mple gener tes dense gr phs -
= (W, ρn, f ) with ρn = c/n and
f = Id Example Wn = ρnW W • In this c se it Gn ∼ Gn is the s me s s mpling from the gr phon Gn ∼ Wn 𝒲 • Ex mple gener tes sp rse gr phs a a a a a a a a a 𝒲 44 -
= (W, ρn, f ) with ρn = 1 and
f = S Example G̃n W Gn = S(G̃n) • S denotes st r ddition - Poisson r.v. • First G̃n ∼ W nd then Gn = S(G̃n) a a a a a a a a 𝒲 • Ex mple gener tes sp rse gr phs if the st r function is big enough 45 -
= (W, ρn, f ) with ρn = c/n and
f = R Example Wn = ρnW W G̃n Gn = R(G̃n) • R denotes ring ddition - Bernoulli r.v. • First G̃n ∼ Wn = ρnW nd then Gn = R(G̃n) a a a a a a 𝒲 • Ex mple gener tes sp rse gr phs 46 -
Flowette Dataset {G1 } → D <latexit sha1_base64="aSJQh6njb0+f4/42WEqL5NO9SA8=">AAACgnicfVFdS+NAFJ1Ed9W6H9V99GW0FKKUbqKiPqwgKrgPPrhgrdBpw2Q6aQcnkzBzI5SQH+Lf8s1fo5NawbXLXhg4nHPux9wbZVIY8P0nx11Y/PR5aXmltvrl67fv9bX1G5PmmvEOS2WqbyNquBSKd0CA5LeZ5jSJJO9Gd2eV3r3n2ohUXcMk4/2EjpSIBaNgqbD+0CQJhTGjsuiW+Bh73RYmepyGqoXj7VqTRGLkXYT+QLTwRRgMCpKJwQ7Z9MR2WWmV5a3AZekRGHOgFVnYJFJiYkSC/9uicgZzzvMyrDf8tj8NPA+CGWigWVyF9UcyTFmecAVMUmN6gZ9Bv6AaBJO8rJHc8IyyOzriPQsVTbjpF9MVlrhpmSGOU22fAjxl32cUNDFmkkTWWY1oPmoV+S+tl0N81C+EynLgir02inOJIcXVPfBQaM5ATiygTAs7K2ZjqikDe7WaXULw8cvz4Ga3HRy0D/7sN05OZ+tYRhtoC3koQIfoBP1GV6iDGHp2mk7b+ekuujtu4O69Wl1nlvMD/RXurxcenryl</latexit> Fused GromovWasserstein
Coupling Minibatch Pairs {( <latexit sha1_base64="QHxHpWkW0Rl/wSkaFIfwnHpHRrM=">AAACv3ichVFda9swFJW9tevSr3R73IvWEHBLCHYZ7R426D6ge+hDCk1TiBIjK3IiIstGuh4E4z+5h8H+zaQ0K11T6AXB4Zxzdb+SQgoDYfjH81+83Nh8tfW6sb2zu7ffPHhzY/JSM95nucz1bUINl0LxPgiQ/LbQnGaJ5INk/s3pg59cG5Gra1gUfJTRqRKpYBQsFTd/t0lGYcaorAY1/oyDQQcTPctj1cHpUaNNEjENLuJwLDr4Io7GFSnE+Ji8D8RR7TRn+ffBZR0QmHGgjqxsEqkxMSLDz5Sw1mjN+r1u3OOeS3PVSPVsP0tbHTdbYTdcBl4H0Qq00Cp6cfMXmeSszLgCJqkxwygsYFRRDYJJbnspDS8om9MpH1qoaMbNqFruv8Zty0xwmmv7FOAl+zCjopkxiyyxTjeSeaw58iltWEL6cVQJVZTAFbsrlJYSQ47dMfFEaM5ALiygTAvbK2YzqikDe/KGXUL0eOR1cHPSjU67p1cfWudfV+vYQu/QIQpQhM7QOfqBeqiPmPfJS7y5J/0v/tRXfnFn9b1Vzlv0X/iLv06+0nU=</latexit> P= Graphette prior, {G0 } → W = (W, ωn , f ) )} , !" Flow Matching Update Velocity Field Transformer, vθ ω →(i) #$ i G0 , G1 Flow Matching Loss <latexit sha1_base64="QPdLtpi3bBEnCpbvjqz2TERjU2Y=">AAACaHicfVHRatswFJXdre3crnW7lTH2ojYEnBKCXUq3l0HpHrqHPrSwNIUoMbIiJ6KybKTrQjBm/7i3fcBe9hWT0wzWdvSC4HDOubpXR0khhYEw/Om4Ky9erq6tv/I2Nl9vbfs7u9cmLzXjfZbLXN8k1HApFO+DAMlvCs1plkg+SG6/NPrgjmsjcvUN5gUfZXSqRCoYBUvF/vc2ySjMGJXVoMafcTDoYqJneay6OO14bZKIaXAeh2PRxedxNK5IIcaHZD8QnbrRGsvfCy7qgMCMA+14pLI9pMbEiAw/NyH2W2EvXBR+CqIlaKFlXcb+DzLJWZlxBUxSY4ZRWMCoohoEk7z2SGl4QdktnfKhhYpm3IyqRVA1bltmgtNc26MAL9h/OyqaGTPPEutsdjaPtYb8nzYsIf00qoQqSuCK3Q9KS4khx03qeCI0ZyDnFlCmhd0VsxnVlIH9G8+GED1+8lNwfdSLTnonV8et07NlHOvoAzpAAYrQR3SKvqJL1EcM/XI2nLfOnvPb9d137vt7q+sse96gB+Ue/AEoVbOT</latexit> Velocity Loss End-point Loss Chem. Reg. Wijesinghe, A., Kandanaarachchi, S., Steinberg, D. M., & Ong, C. S. (2026). Flowette: Flow Matching with Graphette Priors for Graph Generation. NeurIPS (Accepted) 47 -
Flowette can generate diverse graphs Molecul r gr phs (sp
rse) Trees (sp rse) SBM (dense) Egonets (sp rse) a a a a a 48 -
GraphonFlow Wijesinghe, A., Kandanaarachchi, S., Steinberg, D. M., Koniusz P.,
& Ong, C. S. (2026). GraphonFlow: Learning Latent Graphon Distributions for StructurePreserving Graph Generation. -
The idea Dataset • In Flowette we h d to
prescribe the prior - gr phette {G1 } → D <latexit sha1_base64="aSJQh6njb0+f4/42WEqL5NO9SA8=">AAACgnicfVFdS+NAFJ1Ed9W6H9V99GW0FKKUbqKiPqwgKrgPPrhgrdBpw2Q6aQcnkzBzI5SQH+Lf8s1fo5NawbXLXhg4nHPux9wbZVIY8P0nx11Y/PR5aXmltvrl67fv9bX1G5PmmvEOS2WqbyNquBSKd0CA5LeZ5jSJJO9Gd2eV3r3n2ohUXcMk4/2EjpSIBaNgqbD+0CQJhTGjsuiW+Bh73RYmepyGqoXj7VqTRGLkXYT+QLTwRRgMCpKJwQ7Z9MR2WWmV5a3AZekRGHOgFVnYJFJiYkSC/9uicgZzzvMyrDf8tj8NPA+CGWigWVyF9UcyTFmecAVMUmN6gZ9Bv6AaBJO8rJHc8IyyOzriPQsVTbjpF9MVlrhpmSGOU22fAjxl32cUNDFmkkTWWY1oPmoV+S+tl0N81C+EynLgir02inOJIcXVPfBQaM5ATiygTAs7K2ZjqikDe7WaXULw8cvz4Ga3HRy0D/7sN05OZ+tYRhtoC3koQIfoBP1GV6iDGHp2mk7b+ekuujtu4O69Wl1nlvMD/RXurxcenryl</latexit> Fused GromovWasserstein Coupling • We speci ied the gr phette prior m nu lly {( • C n we do without the gr phette prior? • Le rn n end-to-end system from the given gr phs? Le rned Model Graphette prior, a a a a a a a a f a a a a a • Le rn the gr phon? {G0 } → W = (W, ωn , f ) <latexit sha1_base64="QPdLtpi3bBEnCpbvjqz2TERjU2Y=">AAACaHicfVHRatswFJXdre3crnW7lTH2ojYEnBKCXUq3l0HpHrqHPrSwNIUoMbIiJ6KybKTrQjBm/7i3fcBe9hWT0wzWdvSC4HDOubpXR0khhYEw/Om4Ky9erq6tv/I2Nl9vbfs7u9cmLzXjfZbLXN8k1HApFO+DAMlvCs1plkg+SG6/NPrgjmsjcvUN5gUfZXSqRCoYBUvF/vc2ySjMGJXVoMafcTDoYqJneay6OO14bZKIaXAeh2PRxedxNK5IIcaHZD8QnbrRGsvfCy7qgMCMA+14pLI9pMbEiAw/NyH2W2EvXBR+CqIlaKFlXcb+DzLJWZlxBUxSY4ZRWMCoohoEk7z2SGl4QdktnfKhhYpm3IyqRVA1bltmgtNc26MAL9h/OyqaGTPPEutsdjaPtYb8nzYsIf00qoQqSuCK3Q9KS4khx03qeCI0ZyDnFlCmhd0VsxnVlIH9G8+GED1+8lNwfdSLTnonV8et07NlHOvoAzpAAYrQR3SKvqJL1EcM/XI2nLfOnvPb9d137vt7q+sse96gB+Ue/AEoVbOT</latexit> F -
GraphonFlow Le rn Gr phon nd node/edge ttribute decoder from
d t D t set a a a a a a a a a Le rned model -
GraphonFlow D t set a a a a a Le
rned model Le rned gr phon model -
Learning the graphon • Use gr phon b sis •
Inste d of le rning 2 function W(x, y) on [0,1] , specify b sis nd le rn the coe icients. • W(x, y) ≈ a0B0 + a1B1 + … + anBn ̂ y) = a0B0 + a1B1 + … + anBn • W(x, ff a a a a a a a a a a a a • We do Bernstein nd Fourier b ses -
Bernstein polynomials • De ined in the unit interv l,
v lues between 0 nd 1 • Choose k, this is the highest degree, k k k k−i B (x) = x (1 − x) where x ∈ [0,1] • i (i) k k k E ch Bi (x) ∈ [0,1] nd Bi (x) = 1 ∑ • i=0 a a a a a f a a Im ge credits: Wikipedi -
Bernstein polynomials in 1D • The pproxim tion using the
5th degree b sis B5(x) • The pproxim tion using the 1000th degree b sis B1000(x) • Sh rp edges re di icult a ff a a a a a a a a a Im ge credits: Wikipedi -
Bernstein polynomials in 2D • Given K, the highest degree
in x nd y K K (K) i K−i j K−j ϕ (x, y) = x (1 − x) y (1 − y) • ij ( i )( j ) • These re not symmetric a a 1 (K) (K) (K) B (x, y) = ϕ (x, y) + ϕ (y, x) • ij ( ) ij ij 2 -
Example • S y you w nted to estim te
W(x, y) = e −2(x+y) a a a (2) (2) (2) (2) (2) (2) ̂ • W = 0.96B00 + 0.35B01 + 0.13B02 + 0.13B11 + 0.05B02 + 0.02B22 -
Thoughts • Gr phons - non-p r metric tool for
modeling nd gener ting gr phs • Gr phons combined with other methods, such s low m tching to gener te gr phs • C n gr phons be used in cybersecurity pplic tions? • In cybersecurity, wh t kind of gr phs would you w nt to model/gener te? • Att ck gr phs? a a a a a a f a a a a a a a a a a a a a a a a a a a a • M lw re prop g tion? -
Thank you! NeurIPS education track showcase: Graphons for Machine Learning:
Theory, Estimation, and Applications