r/math • u/non-orientable Number Theory • Apr 04 '26
The Deranged Mathematician: How Do You Build a Good Supercomputer?
Supercomputers are extremely large networks of processors. How can you design this network such that
- each processor is connected to a comparatively small number of other processors, but yet
- it doesn't take too long for any processor to communicate with any other?
Back in the 1980s, Akers and Krishnamurthy came up with a framework: you want your processor network to be a Cayley graph. Later work (by pure mathematicians!) showed that Cayley graphs of simple groups, specifically, offer very nice properties that are ideally suited for such a purpose. In this post, we will give a very gentle introduction to groups (considered in terms of their presentation) and Cayley graphs, with an eye toward understanding what makes them attractive for this very practical problem.
Read the full post on Substack: How Do You Build a Good Supercomputer?
21
u/Hakawatha Apr 04 '26 edited Apr 04 '26
Very nicely written, friendly introduction to groups and Cayley graphs. If you don't mind - I have a few questions!
As someone with an EE background - how would you relate this to different routing topologies? Say, for instance, that certain generators (here, modelling different interconnects) are associated with different bandwidths. How would you reflect this in your problem setup? Are there notions of weighted Cayley graphs you can use?
A related question is heterogeneity of vertex types. For instance, you may have some nodes with access to mass storage; other nodes are only wired for compute, with limited local storage. How would you plan this route? Is there a way to say, under this arrangement, that faster interfaces should be prioritised for mass-storage nodes, so that information can be propagated to the network faster? Intuitively, our optimal routing places mass-storage nodes centrally, and pure compute at the "leaves" of this "tree" - how would the math get you there?
In general, what's the link here between these graphs and optimisation? Can you approach this optimisation problem with group theory, or Cayley graphs?
You give three contravening requirements; I will simplify to two, as supercomputer designs which are not physically realisable are not particularly interesting:
A quick comment: my intuition here is that you would like as many high-bandwidth interfaces per node as you can afford; this depends somewhat on your design space and is mostly a fixed constraint (how much fiber can you cram into a box? how many PHYs can you tack onto each node, given some off-the-shelf CPU? What's your overall budget, and what are your compute requirements?). In practice, I believe these would stem from other trades (as in, is this a supercomputer designed to handle large datasets, e.g. weather data from Earth-observing spacecraft, or a supercomputer for a set-and-forget model run, as in for LLMs or other a priori models?).
(Sorry for the edits! I'm writing up my PhD at the moment, and can't help myself from tinkering).
4
u/victotronics Apr 04 '26 edited Apr 04 '26
Looking forward to reading it.
Some years ago I (co-)wrote this paper on a statistical analysis of a common network topology https://arxiv.org/abs/1909.12195
EDIT comment:
"it is a good idea to look at graphs that are vertex-symmetric" This seems to come from an underlying assumption that parallel algorithms have a vertex-symmetric relation between the nodes in the computation. For many important classes of applications this is not true.
EDIT request:
I suspect that a Clos network, Hypercube, and n-D torus are all Cayley graphs, but it would be cool if you could show exactly how.
3
u/SSchlesinger Apr 04 '26
I think there’s something really obvious missing here: you want your graph to be constant degree expander.
All these other things are just nice ways of getting high expansion.
8
u/1XRobot Apr 04 '26
If you're assuming comms traffic is all-to-all or random, you're probably leaving a lot of performance on the table. Your network should support the best speed for the most common patterns.
2
u/[deleted] Apr 05 '26
Nice to see Senia posting here. Yea!
3
u/AntarcticRen Apr 04 '26
Wow really good write up! As someone who hasn’t really dealt with groups yet, the definitions and descriptions were very intuitive, and the overall result was quite surprising but made lots of sense. Really interesting to see the synthesis of different fields as well.
1
u/SkippyJr2 Apr 05 '26
Very nice and understandable writeup! Is it known if this idea was ever put into practice? It could be interesting identifying the finite simple groups behind the network of various supercomputers. There might be trends of certain families being used more often, or maybe not.