自回归边界扩展:用图机器学习生长树结构
摘要
论文提出了自回归边界扩展(Autoregressive Frontier Expansion)这一生成框架,通过迭代方式生长树状分支结构:在每个边界步骤中,由 SO(2) 等变图神经网络参数化的流匹配模型来决定是分叉还是终止。该方法在皮层神经元和植物树木形态生成任务上进行了评估,涵盖无条件生成、类别条件生成和形态引导生成三种设定,结果与参考分布高度吻合。
查看缓存全文
缓存时间: 2026/10/02 09:50
# Growing Trees with Graph Machine Learning
Source: [https://arxiv.org/html/2609.38506](https://arxiv.org/html/2609.38506)
## Autoregressive Frontier Expansion: Growing Trees with Graph Machine Learning
Umer GuptaAffiliation:Independent ResearcherAffiliation:London, United KingdomEmail:[umer\.gupta152@gmail\.com](mailto:)Martin RitzertAffiliation:Leipzig UniversityAffiliation:Leipzig, GermanyEmail:[martin\.ritzert@uni\-leipzig\.de](mailto:)
###### Abstract
Tree\-like branching structures are common in nature, from botanical trees to neurons, blood vessels and respiratory trees\. Their branching shape often reflects function, making structural modelling central to understanding how these systems work\. Because acquiring real\-world 3D data is often expensive or infeasible, realistic generative models are valuable for simulation and data augmentation\. Existing morphology\-specific models either constrain how topology is generated or rely on hand\-tuned, mechanistic procedures\. Generic 3D graph generators, by contrast, do not exploit or enforce the structure of trees\. We propose Autoregressive Frontier Expansion, a generative framework that constructs trees through an iterative expansion process, simulating the biological growth of real trees\. At each step, a flow\-matching model parameterised by an SO\(2\)\-equivariant GNN expands the frontier by predicting whether each active branch bifurcates or terminates\. We evaluate our method on cortical neurons and botanical trees in unconditional, class\-conditioned, and morphology\-guided generation\. Across both domains, the generated morphologies agree closely with the reference distributions and, in conditional experiments, with the specified targets\.
## 1Introduction
Tree\-like \(acyclic\) branching structures regularly appear in nature: respiratory trees branch to increase surface area for gas exchange; botanical trees branch to improve light capture and resource distribution; and neurons branch to form connections with other neurons\. Across biological systems, morphology – the anatomical shape – is often closely tied to physical constraints and functional requirements\. For example, neuronal morphologies define the wiring patterns of the brain’s circuitry and consequently its function\([Torben\-Nielsen & De Schutter, 2014](https://arxiv.org/html/2609.38506#bib.bib33);[Memelli et al\., 2013](https://arxiv.org/html/2609.38506#bib.bib23);[Lin et al\., 2018](https://arxiv.org/html/2609.38506#bib.bib19)\)\. Generating realistic simulations of branching structures is, hence, valuable for understanding such biological systems, especially where data capture is difficult\. The brain, for example, contains billions of neurons with diverse morphologies\([Markram et al\., 2004](https://arxiv.org/html/2609.38506#bib.bib22)\)that need to be mapped to understand its function\. This is resource\-intensive\([Schmitz et al\., 2011](https://arxiv.org/html/2609.38506#bib.bib30)\), even for volumes as small as a cubic millimetre of a mammalian brain\([MICrONS Consortium, 2025](https://arxiv.org/html/2609.38506#bib.bib24)\)\. Beyond neuroscience, inpainting incomplete scans of trees directly leads to better estimation of their biomass\. In both domains, branching structure is extracted from point clouds and data augmentation with realistic synthetic structures can improve this step\.
Several classical approaches have been used to generate branching morphologies\([Honda, 1971](https://arxiv.org/html/2609.38506#bib.bib9);[Prusinkiewicz & Lindenmayer, 1990](https://arxiv.org/html/2609.38506#bib.bib27);[Kanari et al\., 2022](https://arxiv.org/html/2609.38506#bib.bib13)\), but work on learning\-based methods remains limited\. MorphGrower\([Yang et al\., 2024](https://arxiv.org/html/2609.38506#bib.bib35)\)generates neuronal morphologies layer\-by\-layer, mimicking the growth pattern in nature, but uses a*predefined*branching structure from a seed tree – only the geometry, not the structure, is predicted\. Similarly, MorphoGen\([Zhu et al\., 2025](https://arxiv.org/html/2609.38506#bib.bib36)\)predicts geometry through a point cloud while the tree is recovered post hoc by a skeletonisation heuristic\. In both cases the topology is not explicitly learned but either fixed in advance or recovered afterwards\.
In this work, we propose*autoregressive frontier expansion*, an iterative procedure that conditions future branching on the intermediate morphology, mirroring how branching structures grow in nature\([Barthélémy & Caraglio, 2007](https://arxiv.org/html/2609.38506#bib.bib2);[Niell et al\., 2004](https://arxiv.org/html/2609.38506#bib.bib26)\)\. In contrast to previous approaches, our method predicts both*topology*and*geometry*jointly\. We parameterise this process with an SO\(2\)\-equivariant GNN that accounts for the principal axis of biological structures\. Our method is able to generate structurally valid trees by construction\. Across26,00026\{,\}000cortical neurons as well as botanical trees, the generated morphologies closely match the corresponding reference distributions\. Further, our method follows a target’s branching profile when guided by it, making it well suited for data augmentation\. Lastly, iterative generation is computationally efficient and scales better with tree size compared to baselines\.
TℓT^\{\\ell\}expansioninternal nodefrontier node \(not localised\)frontier nodeT~ℓ\+1\\widetilde\{T\}^\{\\ell\+1\}localisationTℓ\+1T^\{\\ell\+1\}
Figure 1:Overview of a generation step\. Starting from a partial treeTℓT^\{\\ell\}, we \(i\)expandthe current frontier \(a subset of leaves\) by deciding for each frontier node whether it branches or terminates, yielding a treeT~ℓ\+1\\widetilde\{T\}^\{\\ell\+1\}; then \(ii\)localiseby predicting 3D parent\-relative offsets for the previous frontier nodes, producingTℓ\+1T^\{\\ell\+1\}\. The process repeats until all frontier nodes terminate\.### 1\.1Related Work
#### Growth\-rule based approaches
On the classical, non\-learning side, growth\-rule based methods use a predefined set of rules or probabilistic conditioning on priors to model the growth process of branching morphologies\([Yang et al\., 2024](https://arxiv.org/html/2609.38506#bib.bib35)\)\.[Honda \(1971\)](https://arxiv.org/html/2609.38506#bib.bib9)uses preset rules to model a tree as repeated bifurcations of straight segments with fixed branching angles and constant length contraction ratios\. Topological Neuron Synthesis \(TNS\)\([Kanari et al\., 2022](https://arxiv.org/html/2609.38506#bib.bib13)\)simulates growth as a probabilistic procedure that generates neuronal trees conditioned on a topological description of their branching structure\. The conditioning signal is given by persistence barcodes\([Carlsson, 2009](https://arxiv.org/html/2609.38506#bib.bib5)\), formalised for complex branching morphologies by[Kanari et al\. \(2018\)](https://arxiv.org/html/2609.38506#bib.bib12)as the Topological Morphology Descriptor \(TMD\) which we also use in our experiments\.[Li et al\. \(2021\)](https://arxiv.org/html/2609.38506#bib.bib18)combines L\-systems with learning and conditions on individual images\.
#### Learned tree generation
Existing learned methods for generating neuronal trees include MorphVAE\([Laturnus & Berens, 2021](https://arxiv.org/html/2609.38506#bib.bib15)\), which trains a sequence\-to\-sequence variational autoencoder on soma\-to\-tip walks\. New trees are sampled by decoding a set of such walks in 3D, clustering nearby points to merge nodes, and connecting consecutive points along each walk to form edges\. Because the walks are decoded independently and merged only post hoc, MorphVAE does not guarantee a globally consistent tree topology\. MorphGrower\([Yang et al\., 2024](https://arxiv.org/html/2609.38506#bib.bib35)\)grows neuronal trees iteratively, similar to our method\. However, the branching structure is fixed to that of a seed tree, and only new geometry is generated\. Thus, neither method performs the end\-to\-end joint generation of topology and geometry considered in our experiments\. MorphoGen\([Zhu et al\., 2025](https://arxiv.org/html/2609.38506#bib.bib36)\)instead generates the complete point cloud before reconstructing the tree topology\. A DiT\-3D diffusion model\([Mo et al\., 2023](https://arxiv.org/html/2609.38506#bib.bib25)\)generates the neuron as an unordered cloud of2,0482\{,\}048points\. A tree is recovered afterwards by L1\-medial skeletonisation and a greedy linking heuristic\. The connections are therefore added after generation rather than predicted by the model\. We evaluate MorphoGen in the unconditional setting; conditional generation is not supported by the model\.[Lee et al\. \(2023\)](https://arxiv.org/html/2609.38506#bib.bib16)directly produce L\-system\-like strings using a transformer but relies on a large synthetic training set instead of real\-world trees\.
More broadly, TreeGen\([Kollovieh et al\., 2025](https://arxiv.org/html/2609.38506#bib.bib14)\)infers a hierarchical structure based on leaf positions in high\-energy physics, thus focusing on the topology\. Topology\-only tree generation further appears as a subroutine in general learnable graph generation algorithms\. For example,[Jin et al\. \(2018\)](https://arxiv.org/html/2609.38506#bib.bib11)generate molecules by generating and expanding the tree backbone of the molecule and[Shirzad et al\. \(2022\)](https://arxiv.org/html/2609.38506#bib.bib32)expand the idea to general graphs\.[Bergmeister et al\. \(2024\)](https://arxiv.org/html/2609.38506#bib.bib3)use iterative expansion and diffusion for generation of graphs without node features\.
## 2Methodology
A treeTTis a tuple\(V,E,P\)\(V,E,P\)whereV=\{1,…,N\}V=\\\{1,\\dots,N\\\}is the node set,E⊂V×VE\\subset V\\times Vis the edge set, andP∈ℝ\|V\|×3P\\in\\mathbb\{R\}^\{\|V\|\\times 3\}stores the node coordinates \(root\-centred\)\. We writer∈Vr\\in Vfor the root\. Each non\-root nodev≠rv\\neq rhas a unique parentπ\(v\)\\pi\(v\)\. LetLeaves\(T\)⊆V\\operatorname\{Leaves\}\(T\)\\subseteq Vdenote the set of leaves of the tree\. For any node\-indexed matrixMMwe writeM\(v\)M\(v\)for the row of nodevv\.
For modelling trees we restrict ourselves to the overarching branching geometry and thus only consider branching points \(bifurcations\) and leaves \(terminations/tips\), see Appendix[B](https://arxiv.org/html/2609.38506#A2)\. We can do so since most information is encoded in the ‘orientation and length of new branches’ for both botanical trees\([Honda, 1971](https://arxiv.org/html/2609.38506#bib.bib9)\)and neurons\([Kanari et al\., 2018](https://arxiv.org/html/2609.38506#bib.bib12)\)\.
### 2\.1Tree Expansion
We generate trees iteratively as a sequence\{T0,…,TL\}\\\{T^\{0\},\.\.\.,T^\{L\}\\\}\. A partial tree at levelℓ\\ellisTℓ=\(Vℓ,Eℓ,Pℓ\)T^\{\\ell\}=\(V^\{\\ell\},E^\{\\ell\},P^\{\\ell\}\)\. Our generation operates on an*active frontier*𝒜ℓ=Vℓ∖Vℓ−1⊆Leaves\(Tℓ\)\\mathcal\{A\}^\{\\ell\}=V^\{\\ell\}\\setminus V^\{\\ell\-1\}\\subseteq\\operatorname\{Leaves\}\(T^\{\\ell\}\), i\.e\., the leaves created in the previous step\. Each iteration consists of two operations: \(1\) frontier expansion and \(2\) localisation\. See[Fig\.1](https://arxiv.org/html/2609.38506#S1.F1)for an overview and Appendix[A](https://arxiv.org/html/2609.38506#A1)for pseudocode\.
#### Frontier expansion\.
GivenTℓT^\{\\ell\}, we predict a binary expansion stateΓℓ\(v\)∈\{0,1\}\\Gamma^\{\\ell\}\(v\)\\in\\\{0,1\\\}for eachv∈𝒜ℓv\\in\\mathcal\{A\}^\{\\ell\}and attach two children\(vL,vR\)\(v\_\{L\},v\_\{R\}\)to everyvvwithΓℓ\(v\)=1\\Gamma^\{\\ell\}\(v\)=1\. Together with the pairs of new edges\(v,vL\)\(v,v\_\{L\}\)and\(v,vR\)\(v,v\_\{R\}\)this defines the intermediary expanded treeT~ℓ\+1\\tilde\{T\}^\{\\ell\+1\}\.
#### Localisation\.
In the intermediary treeT~ℓ\+1\\tilde\{T\}^\{\\ell\+1\}the coordinates of the new leavesv∈𝒜ℓ\+1v\\in\\mathcal\{A\}^\{\\ell\+1\}are not yet specified\. For each suchv∈𝒜ℓ\+1v\\in\\mathcal\{A\}^\{\\ell\+1\}we get the coordinatesPℓ\+1\(v\)P^\{\\ell\+1\}\(v\)and thus the next partial treeTℓ\+1T^\{\\ell\+1\}by predicting parent\-relative offsetsCℓ\+1\(v\)C^\{\\ell\+1\}\(v\):
Pℓ\+1\(v\)=Pℓ\(π\(v\)\)\+Cℓ\+1\(v\),\\displaystyle P^\{\\ell\+1\}\(v\)=P^\{\\ell\}\\big\(\{\\pi\(v\)\}\\big\)\+C^\{\\ell\+1\}\(v\),\(1\)OffsetsCℓ\+1\(v\)C^\{\\ell\+1\}\(v\)are predicted conditioned on the intermediary treeT~ℓ\+1\\tilde\{T\}^\{\\ell\+1\}\. For all nodes not in the frontier𝒜ℓ\+1\\mathcal\{A\}^\{\\ell\+1\}, the position does not change, soPℓ\+1\(u\)=Pℓ\(u\)P^\{\\ell\+1\}\(u\)=P^\{\\ell\}\(u\)foru∉𝒜ℓ\+1u\\notin\\mathcal\{A\}^\{\\ell\+1\}\.
Figure 2:Stepwise generation of a botanical tree
### 2\.2Modelling and Training
#### Joint prediction\.
Expansion and localisation are two operations, but we model them as a single conditional distribution by shifting the expansion prediction forward by one level: at levelℓ\\ellwe predict the offsetsCℓC^\{\\ell\}that place the current frontier*and*the expansion statesΓℓ\\Gamma^\{\\ell\}that decide the subset of frontier nodes bifurcating next\. GivenT~ℓ\\tilde\{T\}^\{\\ell\}, the pair\(Cℓ,Γℓ\)\(C^\{\\ell\},\\Gamma^\{\\ell\}\)determines bothTℓT^\{\\ell\}andT~ℓ\+1\\tilde\{T\}^\{\\ell\+1\}, so generation factorises over levels as
pθ\(T0,…,TL\)=∏ℓpθ\(Cℓ,Γℓ\|T~ℓ\)\.p\_\{\\theta\}\(T^\{0\},\\dots,T^\{L\}\)\\;=\\;\\prod\_\{\\ell\}p\_\{\\theta\}\\big\(C^\{\\ell\},\\,\\Gamma^\{\\ell\}\\,\\big\|\\,\\tilde\{T\}^\{\\ell\}\\big\)\.\(2\)Each factor conditions on the entire partial tree generated so far\.
#### Sampling\.
We initialiseT0=\(\{r\},∅,P0\(r\)=𝟎\)T^\{0\}=\(\\\{r\\\},\\emptyset,P^\{0\}\(r\)=\\mathbf\{0\}\)and assume the root*has to*expand:Γ0\(r\)=1\\Gamma^\{0\}\(r\)=1\. To properly model neuron morphologies, we allowkkchildren at the root \(soma\) withkkprovided as input\. That is,T~1\\tilde\{T\}^\{1\}is given and𝒜1:=\{r1,r2,…,rk\}\\mathcal\{A\}^\{1\}:=\\\{r\_\{1\},r\_\{2\},\.\.\.,r\_\{k\}\\\}\. Forℓ≥1\\ell\\geq 1, we repeatedly sample positionsCℓC^\{\\ell\}and expansion statesΓℓ\\Gamma^\{\\ell\}conditioned onT~ℓ\\tilde\{T\}^\{\\ell\}, defining the treeTℓT^\{\\ell\}as well asT~ℓ\+1\\tilde\{T\}^\{\\ell\+1\}with the new frontier𝒜ℓ\+1\\mathcal\{A\}^\{\\ell\+1\}according toΓℓ\\Gamma^\{\\ell\}\. Generation stops whenΓℓ=𝟎\\Gamma^\{\\ell\}=\\mathbf\{0\}, i\.e\. the frontier becomes empty\.
#### Equivariant GNN\.
Trees and neurons have an inherent orientation: trees typically grow upward, while neurons are usually oriented perpendicular to the cortical surface\([Cajal, 1911](https://arxiv.org/html/2609.38506#bib.bib4)\)\. To encode this inductive bias, we introduce an SO\(2\)\-EGNN model \(see Appendix[D](https://arxiv.org/html/2609.38506#A4)\), inspired by the fully E\(n\)\-equivariant model proposed by[Satorras et al\. \(2021\)](https://arxiv.org/html/2609.38506#bib.bib29)\. Every learned quantity inside the network is invariant to rotation about that axis\. We achieve equivariance by interpreting predicted values in a local frame built from the global principal axis and the incoming branch direction at the parent node\.
#### Flow Matching\.
The prediction of the positions and expansion states at each level\(Cℓ,Γℓ\)\(C^\{\\ell\},\\Gamma^\{\\ell\}\)follows a flow matching model\. Flow matching learns a continuous transformation from a simple noise distribution to the distribution of training examples\. During training, the network learns the direction in which intermediate noisy samples should move along this transformation\. At generation time, we start from noise and follow these learned directions for a small number of steps to obtain a sample \(see Appendix[C](https://arxiv.org/html/2609.38506#A3)for more details\)\.
#### Training sequence\.
LetTTbe a tree with rootrrandTℓT\_\{\\ell\}the subtree induced by nodes at mostℓ\\ellhops fromrr\. Training uses the sequenceT0,…,TDT\_\{0\},\\ldots,T\_\{D\}, whereDDis the maximum depth andT0T\_\{0\}only containsrr\. CoarseningTℓ\+1→TℓT\_\{\\ell\+1\}\\to T\_\{\\ell\}removes one layer of nodes which provide ground\-truth expansion targets forTℓT\_\{\\ell\}\.
#### Global conditioning\.
For generation we consider unconditional as well as class\- and tree\-conditioned generation\. For class\-conditioning we use a one\-hot encoding of the class to condition each flow step and for tree\-specific conditioning we rely on a compact topological descriptor of the complete tree\. The descriptor works by assigning a value to each node – path length, or straight\-line distance from the root\. Revealing parts of the tree according to the value gives a nested sequence of subgraphs, called a filtration\. Zero\-dimensional persistent homology records when branches appear and merge in the filtration as points in a persistence diagram\. The resulting diagrams are converted to persistence images\([Adams et al\., 2017](https://arxiv.org/html/2609.38506#bib.bib1)\), concatenated, embedded, and supplied to the network at every flow step \(see Appendix[E](https://arxiv.org/html/2609.38506#A5)\)\.
## 3Experiments
Our experiments cover both conditional and unconditional generation for both neuron morphologies and botanical trees\. We also provide ablations to model size and use the botanical trees to show scaling behaviour with increased tree size\.
### 3\.1Setup
Data\.For neurons, we use 26,469 cortical pyramidal cells from the MICrONS project, collected with[Geckt \(2024\)](https://arxiv.org/html/2609.38506#bib.bib7)and cleaned following[Weis et al\. \(2025\)](https://arxiv.org/html/2609.38506#bib.bib34)\. The dataset contains 7 cell\-type labels and is split into 22,773 training, 2,529 validation, and 1,167 test cells\. In the training split, neurons have 61 nodes on average, a mean depth of 8\.2, and a mean soma degree of 7\.7\. The test split contains the neurons from the manually proofread MICrONS Minnie Column[Schneider\-Mizell et al\. \(2025\)](https://arxiv.org/html/2609.38506#bib.bib31)and thus has the highest quality reconstructions\.*Botanical trees*: We use 3,386 QSM reconstructions of broadleaf trees from BioDiv\-3DTrees\([Griese et al\., 2025](https://arxiv.org/html/2609.38506#bib.bib8)\)\. The dataset contains six genus labels, and the trees are truncated to depth 10/15/20 and contain 84/195/378 nodes on average\. In both datasets, we retain only the root, branch points, and leaves and binarise non\-root multifurcations\. Further preprocessing details can be found in[AppendixB](https://arxiv.org/html/2609.38506#A2)\.
Baselines\.We compare with SemlaFlow\([Irwin et al\., 2024](https://arxiv.org/html/2609.38506#bib.bib10)\)and MorphoGen\([Zhu et al\., 2025](https://arxiv.org/html/2609.38506#bib.bib36)\)\. SemlaFlow is an E\(3\)\-equivariant flow\-matching model developed for molecular generation, achieving state\-of\-the\-art performance for molecular generation on QM9\([Ramakrishnan et al\., 2014](https://arxiv.org/html/2609.38506#bib.bib28)\)\. It generates all nodes jointly and predicts their connectivity with a bond head, rather than growing the tree\. Unlike our model, it has no distinguished principal axis\. MorphoGen\([Zhu et al\., 2025](https://arxiv.org/html/2609.38506#bib.bib36)\)is the closest neuron\-specific generator\. It uses a DiT\-3D diffusion model that generates the neuron as an unordered point cloud of2,0482\{,\}048points, from which a tree is recovered post hoc by medial contraction and a greedy growth\-guided linking heuristic\. It is unconditional only and is handed neither a node count nor the soma degree\.
We post\-process baseline generations to ensure valid trees, effectively selecting the largest connected component \([AppendixG](https://arxiv.org/html/2609.38506#A7)\)\. Our model creates valid trees by construction\. We provide SemlaFlow with the reference node count and, for neuronal data, our model with the soma degree\.
Metrics\.We assess how well generated populations reproduce both the*individual morphological properties*and the*joint distribution*of the reference data\. For individual properties, we use 1\-Wasserstein \(W1W\_\{1\}\) to measure distances between distributions, normalised by the corresponding reference standard deviation \(W1/σrefW\_\{1\}/\\sigma\_\{\\text\{ref\}\}, see[AppendixF](https://arxiv.org/html/2609.38506#A6)\)\. For joint comparisons, we use \(1\) a nine\-dimensional morphometric vector of graph statistics \([AppendixF](https://arxiv.org/html/2609.38506#A6)\), and \(2\) TMD persistence images under the path\- and radial\-from\-root filtrations \([AppendixE](https://arxiv.org/html/2609.38506#A5)\)\. For each representation, we compute MMD2, which measures disagreement between joint distributions of generated and reference samples\. To account for finite\-sample variation, we subtract the MMD2between the same reference set and an equally sized, disjoint sample of training morphologies; we report this baseline\-adjusted discrepancy asΔMMD2\\Delta\\text\{MMD\}^\{2\}\(closer to zero is better\)\. For the morphometric vector, we additionally compute*density*and*coverage*: density indicates whether generated samples lie in regions supported by the reference data, whereas coverage measures how much of the reference distribution they represent\.
Reporting conventions\.Samples are drawn with a red circle indicating the root, and branches coloured by depth relative to the projection plane\. Structural validity is measured on raw outputs, morphology metrics use the method\-specific post\-processing that ensures valid trees\.
### 3\.2Unconditional Generation
Figure 3:Unconditional neuronal morphology generation\.Top:Five representative generations from our model\.Bottom:Distributions of eight morphology statistics for the training reference, SemlaFlow, MorphoGen, and our model\. Dashed lines mark training\-reference medians; grey values give the normalisedW1W\_\{1\}to the training reference \(lower is better\)\. Within\-tree distributions weight each morphology equally, and horizontal ranges are determined from the training reference\.For unconditional generation in[Table1](https://arxiv.org/html/2609.38506#S3.T1), we ask whether the generations are valid morphologies \(i\.e\. graph\-theoretic trees\) and how closely the generated population matches the reference\. By design, all our samples are valid trees, as are MorphoGen’s given by a spanning tree over the predicted points\. In contrast,23\.4%23\.4\\%of SemlaFlow’s raw unconditional outputs are not trees, and34\.0%34\.0\\%of the outputs are modified by the postprocessing which contracts degree\-2 nodes\.
On population statistics, our method outperforms both baselines on the structural properties and on the joint distances to the reference\. The density and coverage scores, 0\.88 and 0\.80 respectively, show that the generated samples lie in regions supported by the reference data and cover much of the reference set\. MorphoGen performs poorly on both the marginal and the joint evaluations: it over\-branches, producing more than twice the reference node count with branches less than half as long\. Its density and coverage are near zero, and it has the largest MMD among the evaluated methods\. SemlaFlow is closer to the reference than MorphoGen but remains below our model on density, coverage, and every axis\-independent marginal statistic \([Fig\.3](https://arxiv.org/html/2609.38506#S3.F3), bottom\)\.
Our main systematic gap is the under\-generation of tall neurons: only 24\.2% of generated cells have an axial extent beyond400μm400\\,\\mu\\mathrm\{m\}, compared with 33\.5% of the reference cells\. This recurs in both conditional settings below, although the gap is smaller\. A set of samples from our model is shown in[Figure3](https://arxiv.org/html/2609.38506#S3.F3)\. More extensive samples from Reference, SemlaFlow, MorphoGen, and our model are shown in[Fig\.9](https://arxiv.org/html/2609.38506#A9.F9)in the appendix\.
#### Smaller model size\.
We experiment with narrower models based on a node\-feature widthFFof 64, 128, and the default 256 in[Table1](https://arxiv.org/html/2609.38506#S3.T1)\. We compare1,1671\{,\}167samples from each method with an equally sized sample of training morphologies\. Even atF=64F=64with only1\.571\.57M parameters –14×14\\timesfewer than SemlaFlow and21×21\\timesfewer than MorphoGen – our model still outperforms both\. Increasing the width improves the joint distances and marginals, while coverage is already saturated atF=64F=64\.
Table 1:Unconditional neuronal morphology generation\.Distributional metrics on1,1671\{,\}167samples\. The real–real row compares two disjoint training samples of the same size\. Mean marginalW1W\_\{1\}averages the six rotation\-invariant statistics defined in[AppendixF](https://arxiv.org/html/2609.38506#A6)\. Default for our method isF=256F=256\.StructureDistributional agreementMethodParams\.Valid tree\(%\)↑\\uparrowMorph\.ΔMMD2\\Delta\\mathrm\{MMD\}^\{2\}↓\\downarrowTMDΔMMD2\\Delta\\mathrm\{MMD\}^\{2\}↓\\downarrowCoverage↑\\uparrowDensity→\\toref\.Mean norm\.marginalW1W\_\{1\}↓\\downarrowReal–real—100\.00\.00000\.00000\.9710\.9760\.039SemlaFlow22\.3M76\.60\.25210\.10380\.2230\.1550\.389MorphoGen32\.6M100\.00\.84360\.20770\.0060\.0181\.515Ours \(F=64F=64\)1\.57M100\.00\.05570\.01460\.8080\.8270\.175Ours \(F=128F=128\)5\.69M100\.00\.04710\.01080\.8050\.8620\.163Ours \(default\)21\.6M100\.00\.03930\.00920\.7980\.8760\.133
### 3\.3Class\-Conditioned Generation
Figure 4:Class\-conditioned neuronal morphology generation\.\(A\)Class\-wise morphology discrepancy for our model and SemlaFlow relative to the training trees\. The values represent normalised 1\-Wasserstein distance, averaged over five rotation\-invariant statistics \(lower is better\)\. Whiskers show 95% bootstrap intervals, resampling the generated morphologies while holding the sampled training reference fixed\.nnis the number of generated morphologies\.\(B\)Two selected generations from our model per class\.\(C\)Two selected training\-set references per class\.Conditioning on the seven cell\-type labels yields the expected class differences \([Fig\.4](https://arxiv.org/html/2609.38506#S3.F4)\): compact, bushy arbours for 23P and 4P cells, tall apical trunks for 5P\-ET and 5P\-NP, and long, sparsely branched layer\-6 cells shown next to reference cells\.
The class structure also holds up quantitatively\. We evaluate maximum path length, branch length, bifurcation angle, contraction, and partition asymmetry\. Node count is excluded because it is supplied to SemlaFlow, while directional extents are excluded because SemlaFlow has no fixed vertical axis\. Averaged over the seven classes and five statistics, the normalisedW1W\_\{1\}is0\.1700\.170for our model and0\.3550\.355for SemlaFlow\. MorphoGen only supports unconditional generation and is thus not included\.[Fig\.8](https://arxiv.org/html/2609.38506#A8.F8)reports all statistics for each class separately\. For our method, within\-tree statistics such as branch length and bifurcation angle are matched within one standard deviation in every class\.
### 3\.4Morphology\-Guided Generation
Figure 5:TMD\-conditioned generation\.Top:Each row shows a conditioning target, one generated sample, their path\-based persistence diagrams, and within\-tree distributions of branch length, bifurcation angle and branch order\.Bottom:5 independent samples conditioned on the same target\.Table 2:TMD\-conditioned generation\.Each method generates one morphology for each of 1,167 held\-out targets\. Entries in thepersistence diagramsandwithin\-tree distributionsare means over target–generation pairs\. The former compares normalised persistence diagrams, and the latter compares distributions of within\-tree attributes including branch length, sibling angle, and branch order\. The reference row pairs each target with a different held\-out reference using a fixed\-seed random derangement, providing a no\-conditioning baseline\.ValidityPersistence diagramsWithin\-tree distributionsMethodValid tree\(%\)↑\\uparrowPath PDW1W\_\{1\}↓\\downarrowRadial\-root PDW1W\_\{1\}↓\\downarrowBranch lengthW1W\_\{1\}\(μ\\mum\)↓\\downarrowSibling angleW1W\_\{1\}\(∘\)↓\\downarrowBranch orderW1W\_\{1\}↓\\downarrowReference100\.05\.9146\.45316\.158\.341\.190SemlaFlow63\.23\.1582\.45318\.0110\.610\.668Ours100\.02\.9392\.80313\.389\.500\.548
Our method allows us to condition directly on the morphology of a given tree based on the fixed\-length TMD vector\.[Figure5](https://arxiv.org/html/2609.38506#S3.F5)shows two TMD\-conditioned generations from our model compared to the ground\-truth morphology\. The generations retain the target’s overall shape, with a long main branch and most branching near the top\. Their path persistence diagrams, which the TMD condition directly represents \(see[AppendixE](https://arxiv.org/html/2609.38506#A5)\), align closely\. The distributions of branch length, distance from the root, and branch order also agree well, while branching angles have slightly larger differences\. This suggests that TMD primarily controls overall structure rather than finer geometric details\. The bottom of[Fig\.5](https://arxiv.org/html/2609.38506#S3.F5)illustrates this with five generations from the same target, retaining the overall structure while differing in smaller details\. See[Fig\.11](https://arxiv.org/html/2609.38506#A9.F11)for more examples\.
[Table2](https://arxiv.org/html/2609.38506#S3.T2)evaluates TMD\-conditioned generation across the full test set\. Our method produces a valid tree in every case, compared to63\.2%63\.2\\%for SemlaFlow, and gives lower errors for path persistence, branch length, branching angle\. SemlaFlow performs slightly better on radial persistence\. Both persistence\-diagram distances are roughly halved relative to a randomly paired held\-out tree \(top row\)\. This indicates that the generations follow the specified target rather than simply matching the overall population\. Appendix[Table5](https://arxiv.org/html/2609.38506#A8.T5)provides a stricter comparison, where conditional generations are compared to the target and a root\-degree matched random sample\. Averaged over five seeds, the target is closer in about91%91\\%of comparisons\. In97\.9%97\.9\\%of cases, our generator produces five unique generations out of the five seeds\.
### 3\.5Botanical Trees
We evaluate unconditional and TMD\-conditioned generation on botanical trees \([Table3](https://arxiv.org/html/2609.38506#S3.T3)\)\. Our model gives the lower discrepancy on all four morphometrics in both regimes, with a mean normalisedW1W\_\{1\}of0\.2360\.236unconditionally and0\.1410\.141under TMD guidance – between2\.8×2\.8\\timesand4\.0×4\.0\\timesbetter than SemlaFlow\. SemlaFlow degrades on validity: at most12\.5%12\.5\\%of its raw outputs are trees at all, against76\.6%76\.6\\%on neurons\. As with neurons, morphology guidance is the strongest regime\. Performance is therefore maintained across two structurally and biologically distinct domains, supporting frontier expansion as a general model of branching structure rather than one tuned to a single morphology\.
#### Scaling with tree size\.
Figure 6:Generated botanical trees across depth caps\.Three representative samples are shown for each maximum topological depthdmax∈\{10,15,20\}d\_\{\\max\}\\in\\\{10,15,20\\\}\.Table 3:Botanical\-tree generation\.Population\-level discrepancies on botanical trees restricted to depth 10 \(full dataset\)\. Morphology entries are tree\-balanced 1\-Wasserstein distances normalised by the reference standard deviationW1/σrefW\_\{1\}/\\sigma\_\{\\mathrm\{ref\}\}\(lower is better\)\. Mean averages the distances\. Bold marks the better result per training regime\.RegimeMethodValid tree\(%\)↑\\uparrowMax\. pathlength↓\\downarrowBranchlength↓\\downarrowBifurcationangle↓\\downarrowPartitionasymmetry↓\\downarrowMean↓\\downarrowUnconditionalSemlaFlow3\.91\.2800\.2450\.2970\.8220\.661Ours100\.00\.4430\.1670\.1770\.1570\.236TMD\-conditionedSemlaFlow12\.50\.9820\.1720\.4170\.6830\.564Ours100\.00\.1650\.0870\.2380\.0760\.141[Figure6](https://arxiv.org/html/2609.38506#S3.F6)illustrates the increasingly detailed structures generated at maximum depths of 10, 15, and 20 hops from the root\. For the quantitative comparison, we evaluate unconditional generation on capped test sets \([Table4](https://arxiv.org/html/2609.38506#S3.T4)\)\. To make the largest set feasible for SemlaFlow, we exclude the same 199 trees exceeding 1,110 nodes at every depth\. Our model gives the lower discrepancy on all four morphometrics at every depth: its mean normalisedW1W\_\{1\}ranges from0\.270\.27at D10 to0\.380\.38at D20, whereas for SemlaFlow it ranges from0\.660\.66to1\.841\.84\. Sampling time grows from0\.1920\.192to0\.6170\.617seconds per tree for our method, compared with0\.5620\.562to12\.31712\.317seconds for SemlaFlow\.
Table 4:Unconditional botanical\-tree generation across depth caps\.Columns areW1/σrefW\_\{1\}/\\sigma\_\{\\mathrm\{ref\}\}discrepancies \(lower is better\), Mean averages the four discrepancies, and Time is seconds per tree\. Bold marks the better result within each depth\.DepthMethodMax\. pathlength↓\\downarrowBranchlength↓\\downarrowBifurcationangle↓\\downarrowPartitionasymmetry↓\\downarrowMean↓\\downarrowTime\(s/tree\)D10SemlaFlow1\.3140\.2750\.3300\.7370\.6640\.562Ours0\.5420\.1780\.1970\.1480\.2660\.192D15SemlaFlow2\.3470\.4410\.2721\.8711\.2333\.714Ours0\.6390\.2270\.2000\.1390\.3010\.390D20SemlaFlow2\.5720\.3610\.4523\.9641\.83712\.317Ours0\.7020\.2500\.1980\.3660\.3790\.617
## 4Conclusion
Autoregressive frontier expansion generates 3D tree structures by predicting topology and geometry one level at a time\. On cortical neurons and botanical trees, it produces valid trees by construction, matches reference morphology distributions more closely than the evaluated baselines, and scales to larger trees\. Conditioning on cell type or a topological description enables class\-level and target\-specific control\. These results indicate that iterative tree construction is a useful inductive bias for generative models of branching structures\. Further questions include generation in the context of neighbouring trees and neurons, which the existing conditioning targets do not yet cover\.
### AI use statement
We used large language models for language editing, including spell\-checking, condensing, and clarifying text\. We also used AI tools for coding assistance, including implementing, debugging, and testing research and evaluation code\. All AI\-assisted work was reviewed by the authors\. The research ideas, experimental design, and interpretation of the results are entirely our own\.
## 5Acknowledgements
The authors acknowledge the financial support by the Federal Ministry of Research, Technology and Space of Germany and by Sächsische Staatsministerium für Wissenschaft, Kultur und Tourismus in the programme Center of Excellence for AI\-research “Center for Scalable Data Analytics and Artificial Intelligence Dresden/Leipzig”, project identification number: ScaDS\.AI
## References
- Adams et al\. \(2017\)Henry Adams, Tegan Emerson, Michael Kirby, Rachel Neville, Chris Peterson, Patrick Shipman, Sofya Chepushtanova, Eric Hanson, Francis Motta, and Lori Ziegelmeier\.Persistence images: A stable vector representation of persistent homology\.*Journal of Machine Learning Research*, 18\(8\):1–35, 2017\.
- Barthélémy & Caraglio \(2007\)Daniel Barthélémy and Yves Caraglio\.Plant architecture: a dynamic, multilevel and comprehensive approach to plant form, structure and ontogeny\.*Annals of botany*, 99\(3\):375–407, 2007\.
- Bergmeister et al\. \(2024\)Andreas Bergmeister, Karolis Martinkus, Nathanaël Perraudin, and Roger Wattenhofer\.Efficient and scalable graph generation through iterative local expansion\.In*International Conference on Learning Representations*, volume 2024, pp\. 27698–27736, 2024\.
- Cajal \(1911\)Santiago Ramón Cajal\.*Histologie du système nerveux de l’homme & des vertébrés: Cervelet, cerveau moyen, rétine, couche optique, corps strié, écorce cérébrale générale & régionale, grand sympathique*, volume 2\.A\. Maloine, 1911\.
- Carlsson \(2009\)Gunnar Carlsson\.Topology and data\.*Bulletin of the American Mathematical Society*, 46\(2\):255–308, 2009\.
- Edelsbrunner et al\. \(2008\)Herbert Edelsbrunner, John Harer, et al\.Persistent homology\-a survey\.*Contemporary mathematics*, 453\(26\):257–282, 2008\.
- Geckt \(2024\)Dean Geckt\.Neuron swc editor: A browser\-based tool for visualizing and editing neuronal morphology, 2024\.URL[https://github\.com/deangeckt/swc\_editor](https://github.com/deangeckt/swc_editor)\.[https://deangeckt\.github\.io/swc\_editor/](https://deangeckt.github.io/swc_editor/)\.
- Griese et al\. \(2025\)Nils Griese, Martin Ritzert, and Nils Nölke\.A large dataset of labelled single tree point clouds, qsms and tree graphs\.*Scientific Data*, 2025\.
- Honda \(1971\)Hisao Honda\.Description of the form of trees by the parameters of the tree\-like body: Effects of the branching angle and the branch length on the shape of the tree\-like body\.*Journal of theoretical biology*, 31\(2\):331–338, 1971\.
- Irwin et al\. \(2024\)Ross Irwin, Alessandro Tibo, Jon Paul Janet, and Simon Olsson\.Semlaflow–efficient 3d molecular generation with latent attention and equivariant flow matching\.*arXiv preprint arXiv:2406\.07266*, 2024\.
- Jin et al\. \(2018\)Wengong Jin, Regina Barzilay, and Tommi Jaakkola\.Junction tree variational autoencoder for molecular graph generation\.In*International conference on machine learning*, pp\. 2323–2332\. PMLR, 2018\.
- Kanari et al\. \(2018\)Lida Kanari, Paweł Dłotko, Martina Scolamiero, Ran Levi, Julian Shillcock, Kathryn Hess, and Henry Markram\.A topological representation of branching neuronal morphologies\.*Neuroinformatics*, 16\(1\):3–13, 2018\.
- Kanari et al\. \(2022\)Lida Kanari, Hugo Dictus, Athanassia Chalimourda, Alexis Arnaudon, Werner Van Geit, Benoit Coste, Julian Shillcock, Kathryn Hess, and Henry Markram\.Computational synthesis of cortical dendritic morphologies\.*Cell Reports*, 39\(1\), 2022\.
- Kollovieh et al\. \(2025\)Marcel Kollovieh, Nils Fleischmann, Filippo Guerranti, Bertrand Charpentier, and Stephan Günnemann\.Treegen: A bayesian generative model for hierarchies\.In*The Thirty\-ninth Annual Conference on Neural Information Processing Systems*, 2025\.
- Laturnus & Berens \(2021\)Sophie C\. Laturnus and Philipp Berens\.Morphvae: Generating neural morphologies from 3d\-walks using a variational autoencoder with spherical latent space\.In Marina Meila and Tong Zhang \(eds\.\),*Proceedings of the 38th International Conference on Machine Learning*, volume 139 of*Proceedings of Machine Learning Research*, pp\. 6021–6031\. PMLR, 18–24 Jul 2021\.URL[https://proceedings\.mlr\.press/v139/laturnus21a\.html](https://proceedings.mlr.press/v139/laturnus21a.html)\.
- Lee et al\. \(2023\)Jae Joong Lee, Bosheng Li, and Bedrich Benes\.Latent l\-systems: Transformer\-based tree generator\.*ACM Transactions on Graphics*, 43\(1\):1–16, 2023\.
- Lee et al\. \(2019\)Juho Lee, Yoonho Lee, Jungtaek Kim, Adam Kosiorek, Seungjin Choi, and Yee Whye Teh\.Set transformer: A framework for attention\-based permutation\-invariant neural networks\.In*International conference on machine learning*, pp\. 3744–3753\. PMLR, 2019\.
- Li et al\. \(2021\)Bosheng Li, Jacek Kałużny, Jonathan Klein, Dominik L Michels, Wojtek Pałubicki, Bedrich Benes, and Sören Pirk\.Learning to reconstruct botanical trees from single images\.*ACM Transactions on Graphics \(TOG\)*, 40\(6\):1–15, 2021\.
- Lin et al\. \(2018\)Xianghong Lin, Zhiqiang Li, Huifang Ma, and Xiangwen Wang\.An evolutionary developmental approach for generation of 3d neuronal morphologies using gene regulatory networks\.*Neurocomputing*, 273:346–356, 2018\.
- Lipman et al\. \(2022\)Yaron Lipman, Ricky TQ Chen, Heli Ben\-Hamu, Maximilian Nickel, and Matt Le\.Flow matching for generative modeling\.*arXiv preprint arXiv:2210\.02747*, 2022\.
- Liu et al\. \(2022\)Xingchao Liu, Chengyue Gong, and Qiang Liu\.Flow straight and fast: Learning to generate and transfer data with rectified flow\.*arXiv preprint arXiv:2209\.03003*, 2022\.
- Markram et al\. \(2004\)Henry Markram, Maria Toledo\-Rodriguez, Yun Wang, Anirudh Gupta, Gilad Silberberg, and Caizhi Wu\.Interneurons of the neocortical inhibitory system\.*Nature reviews neuroscience*, 5\(10\):793–807, 2004\.
- Memelli et al\. \(2013\)Heraldo Memelli, Benjamin Torben\-Nielsen, and James Kozloski\.Self\-referential forces are sufficient to explain different dendritic morphologies\.*Frontiers in Neuroinformatics*, 7:1, 2013\.
- MICrONS Consortium \(2025\)MICrONS Consortium\.Functional connectomics spanning multiple areas of mouse visual cortex\.*Nature*, 640\(8058\):435–447, 2025\.
- Mo et al\. \(2023\)Shentong Mo, Enze Xie, Ruihang Chu, Lanqing Hong, Matthias Nießner, and Zhenguo Li\.DiT\-3D: Exploring plain diffusion transformers for 3d shape generation\.In*Advances in Neural Information Processing Systems*, volume 36, 2023\.
- Niell et al\. \(2004\)Cristopher M Niell, Martin P Meyer, and Stephen J Smith\.In vivo imaging of synapse formation on a growing dendritic arbor\.*Nature neuroscience*, 7\(3\):254–260, 2004\.
- Prusinkiewicz & Lindenmayer \(1990\)Przemyslaw Prusinkiewicz and Aristid Lindenmayer\.Graphical modeling using l\-systems\.In*The Algorithmic Beauty of Plants*, pp\. 1–50\. Springer, 1990\.
- Ramakrishnan et al\. \(2014\)Raghunathan Ramakrishnan, Pavlo O Dral, Matthias Rupp, and O Anatole Von Lilienfeld\.Quantum chemistry structures and properties of 134 kilo molecules\.*Scientific data*, 1\(1\):140022, 2014\.
- Satorras et al\. \(2021\)Vıctor Garcia Satorras, Emiel Hoogeboom, and Max Welling\.E \(n\) equivariant graph neural networks\.In*International conference on machine learning*, pp\. 9323–9332\. PMLR, 2021\.
- Schmitz et al\. \(2011\)Sabine K Schmitz, JJ Johannes Hjorth, Raoul MS Joemai, Rick Wijntjes, Susanne Eijgenraam, Petra de Bruijn, Christina Georgiou, Arthur PH de Jong, Arjen van Ooyen, Matthijs Verhage, et al\.Automated analysis of neuronal morphology, synapse number and synaptic recruitment\.*Journal of neuroscience methods*, 195\(2\):185–193, 2011\.
- Schneider\-Mizell et al\. \(2025\)Casey M Schneider\-Mizell, Agnes L Bodor, Derrick Brittain, JoAnn Buchanan, Daniel J Bumbarger, Leila Elabbady, Clare Gamlin, Daniel Kapner, Sam Kinn, Gayathri Mahalingam, et al\.Inhibitory specificity from a connectomic census of mouse visual cortex\.*Nature*, 640\(8058\):448–458, 2025\.
- Shirzad et al\. \(2022\)Hamed Shirzad, Hossein Hajimirsadeghi, Amir H Abdi, and Greg Mori\.Td\-gen: graph generation using tree decomposition\.In*International Conference on Artificial Intelligence and Statistics*, pp\. 5518–5537\. PMLR, 2022\.
- Torben\-Nielsen & De Schutter \(2014\)Benjamin Torben\-Nielsen and Erik De Schutter\.Context\-aware modeling of neuronal morphologies\.*Frontiers in neuroanatomy*, 8:92, 2014\.
- Weis et al\. \(2025\)Marissa A Weis, Stelios Papadopoulos, Laura Hansel, Timo Lüddecke, Brendan Celii, Paul G Fahey, Eric Y Wang, J Alexander Bae, Agnes L Bodor, Derrick Brittain, et al\.An unsupervised map of excitatory neuron dendritic morphology in the mouse visual cortex\.*Nature communications*, 16\(1\):3361, 2025\.
- Yang et al\. \(2024\)Nianzu Yang, Kaipeng Zeng, Haotian Lu, Yexin Wu, Zexin Yuan, Danni Chen, Shengdian Jiang, Jiaxiang Wu, Yimin Wang, and Junchi Yan\.Morphgrower: A synchronized layer\-by\-layer growing approach for plausible neuronal morphology generation\.In*Forty\-first International Conference on Machine Learning*, 2024\.URL[https://openreview\.net/forum?id=ZTN866OsGx](https://openreview.net/forum?id=ZTN866OsGx)\.
- Zhu et al\. \(2025\)Tianfang Zhu, Hongyang Zhou, and Anan Li\.MorphoGen: Efficient unconditional generation of long\-range projection neuronal morphology via a global\-to\-local framework\.In*Proceedings of the IEEE/CVF International Conference on Computer Vision \(ICCV\)*, pp\. 13021–13031, 2025\.
## Appendix
The appendix includes pseudocode for our method \([AppendixA](https://arxiv.org/html/2609.38506#A1)\), details on data preprocessing \([AppendixB](https://arxiv.org/html/2609.38506#A2)\), details on the flow\-matching procedure \([AppendixC](https://arxiv.org/html/2609.38506#A3)\), the SO\(2\)\-equivariant architecture \([AppendixD](https://arxiv.org/html/2609.38506#A4)\), our conditioning vector \([AppendixE](https://arxiv.org/html/2609.38506#A5)\), metrics \([AppendixF](https://arxiv.org/html/2609.38506#A6)\), postprocessing for our baselines \([AppendixG](https://arxiv.org/html/2609.38506#A7)\), as well as additional results and samples \([AppendicesH](https://arxiv.org/html/2609.38506#A8)and[I](https://arxiv.org/html/2609.38506#A9)\)\.
## Appendix APseudocode for Autoregressive Frontier Expansion
Algorithm 1Tree generation procedureInput:root degree
kk
1
V1=\{r,r1,…,rk\};E1=\{\(r,ri\)\}i=1k;P0\(r\)=𝟎V^\{1\}=\\\{r,r\_\{1\},\\dots,r\_\{k\}\\\};\\;E^\{1\}=\\\{\(r,r\_\{i\}\)\\\}\_\{i=1\}^\{k\};\\;P^\{0\}\(r\)=\\mathbf\{0\}//root at the origin
2
𝒜1=\{r1,…,rk\}\\mathcal\{A\}^\{1\}=\\\{r\_\{1\},\\dots,r\_\{k\}\\\};
ℓ=0\\ell=0//
kkunplaced children: this isT~1\\tilde\{T\}^\{1\}
3while*𝒜ℓ\+1≠∅\\mathcal\{A\}^\{\\ell\+1\}\\neq\\emptyset*:
4
ℓ=ℓ\+1\\ell=\\ell\+1
5Sample
\(Cℓ,Γℓ\)∼pθ\(⋅∣T~ℓ\)\(C^\{\\ell\},\\Gamma^\{\\ell\}\)\\sim p\_\{\\theta\}\(\\,\\cdot\\mid\\tilde\{T\}^\{\\ell\}\)//flow matching, Appendix[C](https://arxiv.org/html/2609.38506#A3)
6
Pℓ=Pℓ−1P^\{\\ell\}=P^\{\\ell\-1\}
7foreach*v∈𝒜ℓv\\in\\mathcal\{A\}^\{\\ell\}*:
8
Pℓ\(v\)=Pℓ−1\(π\(v\)\)\+Cℓ\(v\)P^\{\\ell\}\(v\)=P^\{\\ell\-1\}\(\\pi\(v\)\)\+C^\{\\ell\}\(v\)//localise:T~ℓ→Tℓ\\tilde\{T\}^\{\\ell\}\\to T^\{\\ell\}
9
Vℓ\+1=Vℓ;Eℓ\+1=Eℓ;𝒜ℓ\+1=∅V^\{\\ell\+1\}=V^\{\\ell\};\\;E^\{\\ell\+1\}=E^\{\\ell\};\\;\\mathcal\{A\}^\{\\ell\+1\}=\\emptyset
10foreach*v∈𝒜ℓv\\in\\mathcal\{A\}^\{\\ell\}withΓℓ\(v\)=1\\Gamma^\{\\ell\}\(v\)=1*:
11
Vℓ\+1=Vℓ\+1∪\{vL,vR\};Eℓ\+1=Eℓ\+1∪\{\(v,vL\),\(v,vR\)\}V^\{\\ell\+1\}=V^\{\\ell\+1\}\\cup\\\{v\_\{L\},v\_\{R\}\\\};\\;E^\{\\ell\+1\}=E^\{\\ell\+1\}\\cup\\\{\(v,v\_\{L\}\),\(v,v\_\{R\}\)\\\}
12
𝒜ℓ\+1=𝒜ℓ\+1∪\{vL,vR\}\\mathcal\{A\}^\{\\ell\+1\}=\\mathcal\{A\}^\{\\ell\+1\}\\cup\\\{v\_\{L\},v\_\{R\}\\\}//expand:Tℓ→T~ℓ\+1T^\{\\ell\}\\to\\tilde\{T\}^\{\\ell\+1\}
13return*TℓT^\{\\ell\}*
Pseudocode for our autoregressive tree generation\. The root is initialised withkkunplaced children, wherekkis an input to the sampler\. In each iteration the offsetsCℓC^\{\\ell\}and expansion statesΓℓ\\Gamma^\{\\ell\}of the current frontier𝒜ℓ\\mathcal\{A\}^\{\\ell\}are sampled jointly given the intermediary treeT~ℓ\\tilde\{T\}^\{\\ell\}\. The offsets place the frontier relative to its parents, and every node withΓℓ\(v\)=1\\Gamma^\{\\ell\}\(v\)=1receives two children, which form the next frontier\. The process continues until no node expands and the frontier is empty\.
## Appendix BPreprocessing and Tree Representation
We assume trees to consist of binary branching nodes and leaves only\. We thus preprocess all trees to their branching skeletons by contracting all degree\-2\-paths such that only branching nodes and leaves remain\. Degree\-2\-paths encode the local shape of branches rather than structure\. We leave the extension of our method to also predict those local branch shapes as future work\. Performing this simplification also benefits GNNs and message passing: contracting degree\-2 paths shortens the graph distances that message passing must span\. In an unreduced MICrONS tree, even a 10\-layer GNN may fail to propagate information from one branching node to the next\.
We further assume that apart from the root \(to be able to generate neuron morphologies, see next paragraph\) trees are binary, which simplifies the decision space for the learned expansion target\. A three\-way junction is split losslessly by inserting a node at the intersection; at wider junctions we keep the two thickest children and drop the rest, which removes roughly1\.25%1\.25\\%of neuron nodes\. Handling junctions with more than two children natively is kept for future work\.
The root is exempt from this constraint: a soma carries11toKmaxK\_\{\\max\}primary dendrites, and we setKmax=23K\_\{\\max\}=23, the largest number observed in the corpus, so that no neuron is excluded by the bound\. In our data the mean soma degree is7\.77\.7\. Botanical trees have root degree11or22, the base of the trunk being a single cylinder\. The rank of each root child among its siblings is supplied to the model as an input feature;[SectionD\.5](https://arxiv.org/html/2609.38506#A4.SS5)explains why it is needed – all root children share a single local frame, so rank is the only signal that distinguishes them\.
For the scaling experiment, we use the botanical trees as they are much larger and deeper than neurons, reaching 70 hops and 3k nodes on average \(max 326 hops and 27k nodes\), whereas neurons have 8 hops and 61 nodes \(max 35 hops and 537 nodes\)\. We thus use the first 10/15/20 hops of each of the trees and only consider trees where size at 20 hops does not exceed 1,110 nodes to be able to run SemlaFlow\. The cap removes around 6% of trees which would otherwise again have up to 3k nodes, and now reaches 378 nodes on average\. In contrast to the full D10 trees used for unconditional generation in[Table3](https://arxiv.org/html/2609.38506#S3.T3)with an average number of nodes of 84, the cap globally dropped the densest trees such that the average number of nodes in[Table4](https://arxiv.org/html/2609.38506#S3.T4)for D10 is 78\.
## Appendix CFlow Matching
At each expansion step, the newly created frontier𝒜ℓ\\mathcal\{A\}^\{\\ell\}consists of leaves whose coordinates and*next\-step*expansion state must be generated\. As described in the main paper, both predictions are performed jointly using flow matching\. Concretely, we parametrise this as a conditional flow matching problem\([Lipman et al\., 2022](https://arxiv.org/html/2609.38506#bib.bib20);[Liu et al\., 2022](https://arxiv.org/html/2609.38506#bib.bib21)\)on the*frontier state*,Xℓ=\[Cˇℓ,Γℓ\]∈ℝ\|𝒜ℓ\|×4,X^\{\\ell\}=\[\\check\{C\}^\{\\ell\},\\,\\Gamma^\{\\ell\}\]\\in\\mathbb\{R\}^\{\|\\mathcal\{A\}^\{\\ell\}\|\\times 4\},conditioned on the full intermediate expanded treeT~ℓ\\tilde\{T\}^\{\\ell\}\. For flow matching we treatΓ\\Gammaas continuous\.
In this section, we drop the tree expansion levelℓ\\ellfrom the superscript to make the notation easier to read\. In the subscript we now write the*flow time*t∈\[0,1\]t\\in\[0,1\], soPtℓ\(v\)P^\{\\ell\}\_\{t\}\(v\)is the position of nodevvin roundℓ\\ellat flow timett\. Note thatttruns from noise to data:t=0t=0is a draw from the prior andt=1t=1is the data\. The offsetsC\(v\)C\(v\)of[Eq\.1](https://arxiv.org/html/2609.38506#S2.E1)are expressed in world axes for improved readability\. In practice, our method works in*local coordinates*Cˇ\(v\)\\check\{C\}\(v\)to facilitate learning and to incorporate SO\(2\)\-equivariance, see[SectionsD\.3](https://arxiv.org/html/2609.38506#A4.SS3)and[D\.4](https://arxiv.org/html/2609.38506#A4.SS4)\.
#### Probability path\.
We use the linear \(optimal\-transport\) interpolant between a prior sampleX0X\_\{0\}and the dataX1X\_\{1\}:
Xt=\(1−t\)X0\+tX1,X0∼𝒩\(0,Σ\),t∼𝒰\[0,1\],X\_\{t\}=\(1\-t\)\\,X\_\{0\}\+t\\,X\_\{1\},\\qquad X\_\{0\}\\sim\\mathcal\{N\}\(0,\\Sigma\),\\qquad t\\sim\\mathcal\{U\}\[0,1\],\(3\)drawn independently for each frontier nodevv\. HereΣ\\Sigmais diagonal and shared by every node: it has unit variance on the expansion coordinate, and per\-axis scales set to the spread of the ground\-truth offsets along each frame axis, in each corpus’s normalised coordinates\. In training we sample a singlettper graph\. Thus, each training example consists of a treeTTsampled at some levelℓ\\elltogether with a flow timett, and we aim to predict the velocity of the path atXtX\_\{t\}\.
#### Velocity field\.
Because the path in[Eq\.3](https://arxiv.org/html/2609.38506#A3.E3)is a straight line, its velocity is constant along the path and given in closed form by
u\(Xt,t\)=dXtdt=X1−X0\.u\(X\_\{t\},t\)\\;=\\;\\frac\{\\mathrm\{d\}X\_\{t\}\}\{\\mathrm\{d\}t\}\\;=\\;X\_\{1\}\-X\_\{0\}\.\(4\)
#### Network and Inputs\.
Our velocity network is the SO\(2\)\-EGNN model\. It reads node coordinates only to form the rotation\- and translation\-invariant edge quantities of[SectionD\.1](https://arxiv.org/html/2609.38506#A4.SS1), and never updates them\. We constructPtP\_\{t\}by overwriting only the frontier node coordinates:
Pt\(v\)=\{P1\(v\),v∉𝒜,P1\(π\(v\)\)\+Ct\(v\),v∈𝒜\.P\_\{t\}\(v\)=\\begin\{cases\}P\_\{1\}\(v\),&v\\notin\\mathcal\{A\},\\\\ P\_\{1\}\(\\pi\(v\)\)\+C\_\{t\}\(v\),&v\\in\\mathcal\{A\}\.\\end\{cases\}\(5\)All non\-frontier nodes are already placed and provide geometric context\.Cˇt\(v\)\\check\{C\}\_\{t\}\(v\)is converted back to the global frame as input to the invariant network\. However, note thatPtP\_\{t\}is a transient input, not part of the integrated state: it is rebuilt fromP1P\_\{1\}at every step and discarded, while the state itself never leaves frame coordinates\.
LetHHdenote deterministic graph inputs: node features and constructed geometric edge features\. We providettas a broadcast node feature and use the interpolated expansion stateΓt\\Gamma\_\{t\}as an additional node feature on frontier nodes \(and00elsewhere\)\. Then
vθ:\(Pt,H,Γt,t\)↦V^,v\_\{\\theta\}:\\ \(P\_\{t\},H,\\Gamma\_\{t\},t\)\\mapsto\\widehat\{V\},\(6\)giving velocity predictions on the frontier state,V^=\[V^Cˇ,V^Γ\]\\widehat\{V\}=\[\\widehat\{V\}\_\{\\check\{C\}\},\\widehat\{V\}\_\{\\Gamma\}\]\. HereV^Cˇ\(v\)\\widehat\{V\}\_\{\\check\{C\}\}\(v\)is a triple of frame coordinates, in the same basis asCˇt\(v\)\\check\{C\}\_\{t\}\(v\), andV^Γ\(v\)\\widehat\{V\}\_\{\\Gamma\}\(v\)is a scalar\.
#### Training Objective\.
We regress the velocity with an MSE loss on the frontier nodes only\. Letθ\\thetadenote the parameters of the SO\(2\)\-EGNN\.
ℒ\(θ\)=𝔼t,X0\[∑v∈𝒜‖V^Cˇ\(v\)−\(Cˇ1\(v\)−Cˇ0\(v\)\)‖22\+∑v∈𝒜\(V^Γ\(v\)−\(Γ1\(v\)−Γ0\(v\)\)\)2\],\\mathcal\{L\}\(\\theta\)=\\mathbb\{E\}\_\{t,X\_\{0\}\}\\\!\\left\[\\sum\_\{v\\in\\mathcal\{A\}\}\\big\\\|\\widehat\{V\}\_\{\\check\{C\}\}\(v\)\-\\big\(\\check\{C\}\_\{1\}\(v\)\-\\check\{C\}\_\{0\}\(v\)\\big\)\\big\\\|\_\{2\}^\{2\}\+\\sum\_\{v\\in\\mathcal\{A\}\}\\big\(\\widehat\{V\}\_\{\\Gamma\}\(v\)\-\\big\(\\Gamma\_\{1\}\(v\)\-\\Gamma\_\{0\}\(v\)\\big\)\\big\)^\{2\}\\right\],\(7\)where the ground\-truth targetCˇ1\(v\)\\check\{C\}\_\{1\}\(v\)is the observed offset read off in the local frame atvv\. Prediction and target are thus in a common basis and the loss needs no change of coordinates\. The binary expansion label is mapped toΓ1∈\{−1,\+1\}\\Gamma\_\{1\}\\in\\\{\-1,\+1\\\}rather than\{0,1\}\\\{0,1\\\}, so that it is symmetric about the prior mean; the decision threshold at sampling time is therefore00\.
#### Sampling\.
At inference we drawX0X\_\{0\}from the prior and integrate[Eq\.4](https://arxiv.org/html/2609.38506#A3.E4)forward with explicit Euler steps on a uniform gridtk=k/Kt\_\{k\}=k/K,
Xtk\+1=Xtk\+1Kvθ\(Ptk,H,Γtk,tk\),k=0,…,K−1,X\_\{t\_\{k\+1\}\}=X\_\{t\_\{k\}\}\+\\tfrac\{1\}\{K\}\\,v\_\{\\theta\}\(P\_\{t\_\{k\}\},H,\\Gamma\_\{t\_\{k\}\},t\_\{k\}\),\\qquad k=0,\\dots,K\-1,\(8\)withK=10K=10steps\.[Algorithm2](https://arxiv.org/html/2609.38506#algorithm2)gives the procedure in full\. We note that for the algorithm, the integrated stateXXstays in frame coordinates throughout; the frame is used only to hand the network world coordinates to measure, and to place the node at the end\. It is built once from the already\-placed parent positions and held fixed across allKKsteps, so the basis its inputs are measured in and the basis its outputs are decoded in are the same, and neither drifts with the state being integrated \([SectionD\.3](https://arxiv.org/html/2609.38506#A4.SS3)\)\. Only frontier\-adjacent geometry is recomputed between steps\.
Algorithm 2Flow\-matching sampling of the frontier stateInput:intermediate tree
T~ℓ\\tilde\{T\}^\{\\ell\}, frontier
𝒜\\mathcal\{A\}, steps
KK
1local frames
\(𝐟v,𝐬v,𝐮^\)←\(\\mathbf\{f\}\_\{v\},\\mathbf\{s\}\_\{v\},\\hat\{\\mathbf\{u\}\}\)\\leftarrowfrom placed parents//built once,[SectionD\.3](https://arxiv.org/html/2609.38506#A4.SS3)
2
X∼𝒩\(0,Σ\)X\\sim\\mathcal\{N\}\(0,\\Sigma\)//prior sample in frame coords,[Eq\.3](https://arxiv.org/html/2609.38506#A3.E3)
3for*k=0k=0toK−1K\-1*:
4
tk=k/Kt\_\{k\}=k/K
5foreach*v∈𝒜v\\in\\mathcal\{A\}*:
6
Ptk\(v\)=P\(π\(v\)\)\+Ctk\(v\)P\_\{t\_\{k\}\}\(v\)=P\(\\pi\(v\)\)\+C\_\{t\_\{k\}\}\(v\)//decodeXCˇX\_\{\\check\{C\}\},[Eq\.12](https://arxiv.org/html/2609.38506#A4.E12)
7
H←H\\leftarrowrecompute branch angles, edge features for
𝒜\\mathcal\{A\}//frames locked
8
V^=vθ\(Ptk,H,XΓ,tk\)\\widehat\{V\}=v\_\{\\theta\}\(P\_\{t\_\{k\}\},H,X\_\{\\Gamma\},t\_\{k\}\)
9
X=X\+1KV^X=X\+\\tfrac\{1\}\{K\}\\widehat\{V\}//explicit Euler, in frame coords
10foreach*v∈𝒜v\\in\\mathcal\{A\}*:
11
Pℓ\(v\)=P\(π\(v\)\)\+C\(v\)P^\{\\ell\}\(v\)=P\(\\pi\(v\)\)\+C\(v\)//final placement
12return*PℓP^\{\\ell\},Γℓ=𝟏\[XΓ\>0\]\\Gamma^\{\\ell\}=\\mathbf\{1\}\[X\_\{\\Gamma\}\>0\]*//to buildT~ℓ\+1\\tilde\{T\}^\{\\ell\+1\}
## Appendix DSO\(2\)\-EGNN
### D\.1Invariant edge features
The original EGNN achieves E\(n\) equivariance by using only pairwise squared distances as geometric input to edge messages, deliberately avoiding directional information that would break rotational symmetry\([Satorras et al\., 2021](https://arxiv.org/html/2609.38506#bib.bib29)\)\. For structures with a preferred axis, we instead decompose displacements into axis\-parallel and perpendicular components\.
For each directed edge\(i→j\)\(i\\\!\\to\\\!j\)with coordinates𝐱i,𝐱j\\mathbf\{x\}\_\{i\},\\mathbf\{x\}\_\{j\}, we compute the relative displacement𝐫ij=𝐱j−𝐱i\\mathbf\{r\}\_\{ij\}=\\mathbf\{x\}\_\{j\}\-\\mathbf\{x\}\_\{i\}and decompose it with respect to a rotation axis𝐮^\\hat\{\\mathbf\{u\}\}, fixed per corpus\. We form the axial componentdij∥=𝐫ij⊤𝐮^d^\{\\parallel\}\_\{ij\}=\\mathbf\{r\}\_\{ij\}^\{\\top\}\\hat\{\\mathbf\{u\}\}and the perpendicular residual𝐫ij⟂=𝐫ij−dij∥𝐮^\\mathbf\{r\}^\{\\perp\}\_\{ij\}=\\mathbf\{r\}\_\{ij\}\-d^\{\\parallel\}\_\{ij\}\\hat\{\\mathbf\{u\}\}, then takeρij=‖𝐫ij⟂‖2\\rho\_\{ij\}=\\\|\\mathbf\{r\}^\{\\perp\}\_\{ij\}\\\|\_\{2\}\. The pair\(ρij,dij∥\)\(\\rho\_\{ij\},d^\{\\parallel\}\_\{ij\}\)is invariant to rotations around𝐮^\\hat\{\\mathbf\{u\}\}\. We enrich these scalars with two branch angles, shared by both directions of the tree edge betweenvvand its parent\. Let𝐫v=P\(v\)−P\(π\(v\)\)\\mathbf\{r\}\_\{v\}=P\(v\)\-P\(\\pi\(v\)\)be the branch,𝐫^v⟂\\hat\{\\mathbf\{r\}\}^\{\\perp\}\_\{v\}its unit projection onto the plane perpendicular to𝐮^\\hat\{\\mathbf\{u\}\}, and\(𝐟v,𝐬v,𝐮^\)\(\\mathbf\{f\}\_\{v\},\\mathbf\{s\}\_\{v\},\\hat\{\\mathbf\{u\}\}\)the local frame of[SectionD\.3](https://arxiv.org/html/2609.38506#A4.SS3)\. Then
cosψv=𝐟v⊤𝐫^v⟂,sinψv=𝐬v⊤𝐫^v⟂,cosϕv=𝐫v⊤𝐮^‖𝐫v‖2,\\cos\\psi\_\{v\}=\\mathbf\{f\}\_\{v\}^\{\\top\}\\hat\{\\mathbf\{r\}\}^\{\\perp\}\_\{v\},\\qquad\\sin\\psi\_\{v\}=\\mathbf\{s\}\_\{v\}^\{\\top\}\\hat\{\\mathbf\{r\}\}^\{\\perp\}\_\{v\},\\qquad\\cos\\phi\_\{v\}=\\frac\{\\mathbf\{r\}\_\{v\}^\{\\top\}\\hat\{\\mathbf\{u\}\}\}\{\\\|\\mathbf\{r\}\_\{v\}\\\|\_\{2\}\},\(9\)soψv\\psi\_\{v\}is the azimuth of the branch about𝐮^\\hat\{\\mathbf\{u\}\}, measured from the incoming direction at the parent, andϕv\\phi\_\{v\}its tilt from the axis\. Both are invariant to rotations about𝐮^\\hat\{\\mathbf\{u\}\}, since the frame co\-rotates with the branch\.
### D\.2Message passing
Every tree edge is used in both directions\. Writing𝐞ij\\mathbf\{e\}\_\{ij\}for the invariant edge features above, one layer updates the node features𝐡\\mathbf\{h\}as
𝐦ij=MLPe\(𝐡i,𝐡j,𝐞ij\),𝐦j=∑\(i→j\)∈E𝐦ij,𝐡j←𝐡j\+MLPh\(LN\(𝐡j\),𝐦j\),\\mathbf\{m\}\_\{ij\}=\\mathrm\{MLP\}\_\{e\}\\big\(\\mathbf\{h\}\_\{i\},\\mathbf\{h\}\_\{j\},\\mathbf\{e\}\_\{ij\}\\big\),\\qquad\\mathbf\{m\}\_\{j\}=\\sum\_\{\(i\\to j\)\\in E\}\\mathbf\{m\}\_\{ij\},\\qquad\\mathbf\{h\}\_\{j\}\\leftarrow\\mathbf\{h\}\_\{j\}\+\\mathrm\{MLP\}\_\{h\}\\big\(\\mathrm\{LN\}\(\\mathbf\{h\}\_\{j\}\),\\mathbf\{m\}\_\{j\}\\big\),\(10\)whereMLPe,MLPh\\mathrm\{MLP\}\_\{e\},\\mathrm\{MLP\}\_\{h\}are two\-layer perceptrons andLN\\mathrm\{LN\}is layer normalisation\. This is the EGNN layer of[Satorras et al\. \(2021\)](https://arxiv.org/html/2609.38506#bib.bib29)with the squared distance replaced by𝐞ij\\mathbf\{e\}\_\{ij\}and the coordinate update removed: coordinates are read once to form𝐞ij\\mathbf\{e\}\_\{ij\}and never modified\. Since messages only travel along tree edges, we precede every second layer with an induced\-set attention block\([Lee et al\., 2019](https://arxiv.org/html/2609.38506#bib.bib17)\), in which a small set of learned per\-graph tokens attends to all node features and the nodes attend back; it acts on invariant features only, so invariance is preserved\.
### D\.3Local frames
For a nodevvwhose parentπ\(v\)\\pi\(v\)itself has a parentπ\(π\(v\)\)\\pi\(\\pi\(v\)\), let𝐰v=P\(π\(v\)\)−P\(π\(π\(v\)\)\)\\mathbf\{w\}\_\{v\}=P\(\\pi\(v\)\)\-P\(\\pi\(\\pi\(v\)\)\)be the incoming branch direction at the parent\. Projecting it into the plane perpendicular to𝐮^\\hat\{\\mathbf\{u\}\}and normalising gives
𝐟v=𝐰v−\(𝐰v⊤𝐮^\)𝐮^‖𝐰v−\(𝐰v⊤𝐮^\)𝐮^‖2,𝐬v=𝐮^×𝐟v,\\mathbf\{f\}\_\{v\}=\\frac\{\\mathbf\{w\}\_\{v\}\-\(\\mathbf\{w\}\_\{v\}^\{\\top\}\\hat\{\\mathbf\{u\}\}\)\\,\\hat\{\\mathbf\{u\}\}\}\{\\\|\\mathbf\{w\}\_\{v\}\-\(\\mathbf\{w\}\_\{v\}^\{\\top\}\\hat\{\\mathbf\{u\}\}\)\\,\\hat\{\\mathbf\{u\}\}\\\|\_\{2\}\},\\qquad\\mathbf\{s\}\_\{v\}=\\hat\{\\mathbf\{u\}\}\\times\\mathbf\{f\}\_\{v\},\(11\)so that𝐟v⟂𝐮^\\mathbf\{f\}\_\{v\}\\perp\\hat\{\\mathbf\{u\}\}by construction\. We call\(𝐟v,𝐬v,𝐮^\)\(\\mathbf\{f\}\_\{v\},\\mathbf\{s\}\_\{v\},\\hat\{\\mathbf\{u\}\}\)the*local frame*atvv: an in\-plane forward direction inherited from the parent branch, a sideways direction completing the perpendicular plane, and the corpus axis\. A triple𝐜ˇ\\check\{\\mathbf\{c\}\}of coordinates in this frame denotes the world vector
C\(v\)=cˇ1𝐟v\+cˇ2𝐬v\+cˇ3𝐮^\.C\(v\)=\\check\{c\}\_\{1\}\\,\\mathbf\{f\}\_\{v\}\+\\check\{c\}\_\{2\}\\,\\mathbf\{s\}\_\{v\}\+\\check\{c\}\_\{3\}\\,\\hat\{\\mathbf\{u\}\}\.\(12\)For trees, the basis always contains up \(the principal axis\)\. The first horizontal axis aligns with the parent\-branch direction \(projected to the horizontal plane\), and the last axis completes the orthonormal frame\.
### D\.4Equivariance
Because the features of[SectionD\.1](https://arxiv.org/html/2609.38506#A4.SS1)are all invariant, so is everything the network computes from them: the head emits a triple\(av,bv,cv\)\(a\_\{v\},b\_\{v\},c\_\{v\}\)of*frame*coordinates, together with the expansion velocityγv\\gamma\_\{v\}\. Equivariance is supplied by the per\-node local frame, against which[Eq\.12](https://arxiv.org/html/2609.38506#A4.E12)decodes those coordinates into geometry\.
LetQQbe a rotation about𝐮^\\hat\{\\mathbf\{u\}\}, applied to every node coordinate\. The edge quantities of[SectionD\.1](https://arxiv.org/html/2609.38506#A4.SS1)are unchanged by construction, hence so are all node features and the head outputs\. The prior of[Eq\.3](https://arxiv.org/html/2609.38506#A3.E3)is defined in frame coordinates withΣ\\Sigmafixed, so it carries no dependence on orientation either, and the Euler update of[Algorithm2](https://arxiv.org/html/2609.38506#algorithm2)adds invariant increments to an invariant state: the integrated stateXXis therefore invariant\. The frame vectors, by contrast, are built from coordinates and co\-rotate,𝐟v↦Q𝐟v\\mathbf\{f\}\_\{v\}\\mapsto Q\\mathbf\{f\}\_\{v\}and𝐬v↦Q𝐬v\\mathbf\{s\}\_\{v\}\\mapsto Q\\mathbf\{s\}\_\{v\}, with𝐮^\\hat\{\\mathbf\{u\}\}fixed byQQ\. Placement decodes that invariant state against the co\-rotating frame \([Eq\.12](https://arxiv.org/html/2609.38506#A4.E12)\), so each offset maps toQC\(v\)Q\\,C\(v\); with the root at the origin, the generated positions co\-rotate with the input\.
### D\.5The root
The root has no grandparent, so[Eq\.11](https://arxiv.org/html/2609.38506#A4.E11)has no incoming direction to work with, and itskkchildren are created in a single step rather than one at a time \(1≤k≤Kmax1\\leq k\\leq K\_\{\\max\}\)\. To resolve both facts,allkkroot children share a single frame, whose forward direction𝐟0\\mathbf\{f\}\_\{0\}is aligned during training with the child whose*entire subtree*reaches furthest along−𝐮^\-\\hat\{\\mathbf\{u\}\}\. At sampling no child is yet placed, so𝐟0\\mathbf\{f\}\_\{0\}is instead a single azimuth drawn uniformly at random per root; its absolute value is precisely the SO\(2\) degree of freedom the model does not fix\. With the frame shared, no geometric signal distinguishes one root child from another – their frames are identical and their parent is the same node\. We therefore supply each root child’s rank among its siblings as aKmaxK\_\{\\max\}\-wide one\-hot node feature\.
## Appendix ETopological Morphological Conditioning
rrv1v\_\{1\}v2v\_\{2\}v3v\_\{3\}v4v\_\{4\}v5v\_\{5\}v6v\_\{6\}
filtration \(tree distance\)0123\(r,v5\)\(r,v\_\{5\}\)\(v4,v6\)\(v\_\{4\},v\_\{6\}\)\(r,v3\)\(r,v\_\{3\}\)\(v1,v2\)\(v\_\{1\},v\_\{2\}\)
deathbirth00112233\(r,v5\)\(r,v\_\{5\}\)\(v4,v6\)\(v\_\{4\},v\_\{6\}\)\(r,v3\)\(r,v\_\{3\}\)\(v1,v2\)\(v\_\{1\},v\_\{2\}\)
Figure 7:\(Left\)A tree with rootrr\. The nodes are embedded inℝ2\\mathbb\{R\}^\{2\}\. Their coordinates induce Euclidean edge lengths, which define a distance\-to\-root filtration\.\(Middle\)A barcode showing the resultingH0H\_\{0\}persistence under this filtration, with the elder rule deciding which branch survives each merge\. The bars are annotated by \(vd,vbv\_\{d\},v\_\{b\}\), the death and birth nodes respectively\. Note that the barcode itself is unlabelled\.\(Right\)The corresponding persistence diagram\. Points close to the diagonal represent short\-lived features, while points further away represent more persistent features\.To generate a tree with a*specified*structural profile, we additionally condition on a compact topological descriptor of global morphology\([Edelsbrunner et al\., 2008](https://arxiv.org/html/2609.38506#bib.bib6)\)\. This makes the model a controllable source of morphologies: given a descriptor computed from a real cell, it can produce further samples sharing that cell’s branching profile – a form of targeted augmentation an unconditional sampler cannot provide\. We do not evaluate downstream augmentation here; our experiments assess only how closely a generated morphology matches the profile it was conditioned on\. Below we describe the relevant topological background in the context of tree morphologies\.
#### Filtrations\.
LetT=\(V,E,P\)T=\(V,E,P\)be a tree with rootrr\. Each nodev∈Vv\\in Vhas coordinatesP\(v\)∈ℝ3P\(v\)~\\in~\\mathbb\{R\}^\{3\}\. Afiltration functionis a mapf:V→ℝf:V\\to\\mathbb\{R\}\. Givenff, we define thesuperlevel set filtrationofTTas the nested sequence of induced subgraphs\{Tα\}α∈ℝ\\\{T\_\{\\alpha\}\\\}\_\{\\alpha\\in\\mathbb\{R\}\}whereTαT\_\{\\alpha\}contains all nodesvvwithf\(v\)≥αf\(v\)\\geq\\alpha\. Both filtration functions we use grow away from the root, so sweepingα\\alphadownwards grows the tree inwards from the tips\.
#### Barcode and elder rule\.
In this work we only use 0\-dimensional persistent homology \(PH0\), which tracks how connected components appear and merge along the filtration\. A component is born at the filtration valueα\\alphawhen a new connected component appears inTαT\_\{\\alpha\}\. Two components merge at filtration valueα\\alphawhen they become connected inTαT\_\{\\alpha\}\. When two components merge, we apply theelder rule: the older component – the one born at the larger filtration value – persists, and the younger component dies\. The multiset of intervals with endpointsbib\_\{i\}anddid\_\{i\}, the birth and death values of componentii, is called thepersistence barcodeofTTunder filtrationff\. See Figure[7](https://arxiv.org/html/2609.38506#A5.F7)for an example\.
#### Persistence diagram\.
A barcode can equivalently be represented as a multiset of points inℝ2\\mathbb\{R\}^\{2\}, called thepersistence diagram, where each point\(bi,di\)\(b\_\{i\},d\_\{i\}\)corresponds to one bar of the barcode\. Points close to the diagonal represent short\-lived features, while points further away represent more persistent features\. Sincebi\>dib\_\{i\}\>d\_\{i\}under a superlevel filtration, we follow the convention of plotting death on the horizontal axis, placing the points above the diagonal\.
#### Filtration choices used in this work\.
We use two filtrations, both anchored at the root and both computed with the TMD construction of[Kanari et al\. \(2018\)](https://arxiv.org/html/2609.38506#bib.bib12):
- •*Path from root*\(see Figure[7](https://arxiv.org/html/2609.38506#A5.F7)\): the geodesic distance from the root along the tree, with each edge weighted by its Euclidean length\. This captures the branching structure, yielding a compact summary of the global branching allocation across depth –*where*and*how much*branching occurs\.
- •*Radial from root*: the straight\-line distance‖P\(v\)−P\(r\)‖2\\\|P\(v\)\-P\(r\)\\\|\_\{2\}from the root\. Where the path filtration measures reach*along*the tree, this measures reach*through space*, so the pair distinguishes trees that branch at the same topological depth but at different spatial extents\.
Both filtrations are invariant to rotation about the root and therefore introduce no dependence on the distinguished axis of the SO\(2\)\-EGNN \(Appendix[D](https://arxiv.org/html/2609.38506#A4)\)\. Filtration values are min\-max normalised to\[0,1\]\[0,1\]before the barcode is computed, so the descriptor encodes the*shape*of the branching profile rather than absolute scale\.
#### Vectorisation\.
To provide this morphological information to the network with a fixed dimension, we convert persistence diagrams into persistence images\. Apersistence image\(PI\)\([Adams et al\., 2017](https://arxiv.org/html/2609.38506#bib.bib1)\)is a fixed\-dimensional vector representation of a persistence diagram obtained by placing Gaussian kernels at each point and discretising the resulting density on a grid\. We use a16×1616\\times 16grid per filtration, so the PIs for the two filtrations flatten and concatenate into a single512512\-dimensional conditioning vector, which is embedded and broadcast to nodes as a graph\-level condition\. Conditioning on this descriptor produces trees whose branching structure and spatial extent follow the target profile\.
## Appendix FMetrics
This section defines the metrics used in the results tables\. We useT=\(V,E,P\)T=\(V,E,P\)\. Let\(xv,yv,zv\)=P\(v\)\(x\_\{v\},y\_\{v\},z\_\{v\}\)=P\(v\)denote the position of a nodev∈Vv\\in V, letrrbe the root, and𝐮^\\hat\{\\mathbf\{u\}\}the unit vector along the chosen principal axis \(‘up’\)\. For nodesu,v∈Vu,v\\in V, let𝜹uv=P\(v\)−P\(u\)\\bm\{\\delta\}\_\{uv\}=P\(v\)\-P\(u\)denote the displacement fromuutovv, and letduv=∥𝜹uv∥2d\_\{uv\}=\\lVert\\bm\{\\delta\}\_\{uv\}\\rVert\_\{2\}denote its Euclidean length\. Letℬ\\mathcal\{B\}denote the set of nodes with at least two children, andC\(u\)C\(u\)the children ofuu\. We use the following tree statistics:
*Axial Extent*: Extent of the tree along the principal axis \(‘height’ for botanical trees\):
AxialExtent\(T\)=maxv∈V\(P\(v\)⋅𝐮^\)−minv∈V\(P\(v\)⋅𝐮^\)\\operatorname\{AxialExtent\}\(T\)=\\max\_\{v\\in V\}\\bigl\(P\(v\)\\cdot\\hat\{\\mathbf\{u\}\}\\bigr\)\-\\min\_\{v\\in V\}\\bigl\(P\(v\)\\cdot\\hat\{\\mathbf\{u\}\}\\bigr\)
*Radial Span*: Project the tree into the XY\-plane, then take the longest distance between any two points in the projection
Diameter\(T\)=maxu,v∈V‖\(xu,yu\)−\(xv,yv\)‖2\\operatorname\{Diameter\}\(T\)=\\max\_\{u,v\\in V\}\\,\\bigl\\\|\\,\(x\_\{u\},y\_\{u\}\)\-\(x\_\{v\},y\_\{v\}\)\\,\\bigr\\\|\_\{2\}
*Maximum Branch Order*: Maximum length of a path from the root to a leaf \(in hops\):
MaxBranchOrder\(T\)=maxv∈Vlen\(r,v\),\\operatorname\{MaxBranchOrder\}\(T\)=\\max\_\{v\\in V\}\\operatorname\{len\}\(r,v\),wherelen\(u,v\)\\operatorname\{len\}\(u,v\)is the distance in hops betweenuuandvv\.
*Maximum Path Length*: Maximum distance from the root to any node along the edges:
MaxPathLength\(T\)=max∑\(u,w\)∈path\(r,v\)v∈Vduw\.\\operatorname\{MaxPathLength\}\(T\)=\\max\_\{v\\in V\}\\sum\_\{\(u,w\)\\in\\operatorname\{path\}\(r,v\)\}d\_\{uw\}\.
*Total Edge Length*: Sum of the Euclidean lengths of all edges:
TotalEdgeLength\(T\)=∑\(u,v\)∈Eduv\.\\operatorname\{TotalEdgeLength\}\(T\)=\\sum\_\{\(u,v\)\\in E\}d\_\{uv\}\.
*Partition Asymmetry*: For every inner nodeu∈ℬu\\in\\mathcal\{B\}we compute its asymmetry as\|a−b\|a\+b−2\\frac\{\|a\-b\|\}\{a\+b\-2\}whereaaandbbare the number of leaves in the subtree rooted at each of the children ofuu\. We subtract 2 in the denominator since those leaves \(one on each side\) are unavoidable for any inner node by definition\. Averaging over allu∈ℬu\\in\\mathcal\{B\}gives the partition asymmetry forTT\.
*Mean Branch Length*: Mean Euclidean length of all edges:
MeanBranchLength\(T\)=1\|E\|∑\(u,v\)∈Eduv\\operatorname\{MeanBranchLength\}\(T\)=\\frac\{1\}\{\|E\|\}\\sum\_\{\(u,v\)\\in E\}d\_\{uv\}
*Critical\-Branch Length*: LetVcrit=\{r\}∪\{v∈V:\|C\(v\)\|≠1\}V\_\{\\mathrm\{crit\}\}=\\\{r\\\}\\cup\\\{v\\in V:\\lvert C\(v\)\\rvert\\neq 1\\\}contain the root, branching nodes, and leaves\. A critical branchb=\(v0,…,vk\)b=\(v\_\{0\},\\ldots,v\_\{k\}\)is a maximal path whose endpoints are inVcritV\_\{\\mathrm\{crit\}\}and whose internal nodes are not\. Its length is
BranchLength\(b\)=∑i=1kdvi−1,vi\.\\operatorname\{BranchLength\}\(b\)=\\sum\_\{i=1\}^\{k\}d\_\{v\_\{i\-1\},v\_\{i\}\}\.
*Mean Bifurcation Angle*: Mean angle, in degrees, across sibling\-branch pairs at all branching nodes:
MeanBifurcationAngle\(T\)=1\|ℬ\|∑u∈ℬ180πarccos\(𝜹u,c1\(u\)⋅𝜹u,c2\(u\)du,c1\(u\)du,c2\(u\)\)\\operatorname\{MeanBifurcationAngle\}\(T\)=\\frac\{1\}\{\|\\mathcal\{B\}\|\}\\sum\_\{u\\in\\mathcal\{B\}\}\\frac\{180\}\{\\pi\}\\arccos\\\!\\left\(\\frac\{\\bm\{\\delta\}\_\{u,c\_\{1\}\(u\)\}\\cdot\\bm\{\\delta\}\_\{u,c\_\{2\}\(u\)\}\}\{d\_\{u,c\_\{1\}\(u\)\}\\,d\_\{u,c\_\{2\}\(u\)\}\}\\right\)usingC\(u\)=\(c1\(u\),c2\(u\)\)C\(u\)=\(c\_\{1\}\(u\),c\_\{2\}\(u\)\)since we only consider binary trees\. For the root which may have more than two children, we average over all pairs of angles between siblings\.
*Critical\-Branch Bifurcation Angle*: For two critical branchesbib\_\{i\}andbjb\_\{j\}starting at the same nodeuu, lett\(bi\)t\(b\_\{i\}\)andt\(bj\)t\(b\_\{j\}\)denote their endpoints\. Their angle is
θ\(bi,bj\)=180πarccos\(𝜹u,t\(bi\)⋅𝜹u,t\(bj\)du,t\(bi\)du,t\(bj\)\)\.\\theta\(b\_\{i\},b\_\{j\}\)=\\frac\{180\}\{\\pi\}\\arccos\\\!\\left\(\\frac\{\\bm\{\\delta\}\_\{u,t\(b\_\{i\}\)\}\\cdot\\bm\{\\delta\}\_\{u,t\(b\_\{j\}\)\}\}\{d\_\{u,t\(b\_\{i\}\)\}\\,d\_\{u,t\(b\_\{j\}\)\}\}\\right\)\.
*Mean Radial Distance to Root*: Mean straight\-line distance from non\-root nodes to the root:
MeanRadialToRoot\(T\)=1\|V\|−1∑v∈V∖\{r\}drv\\operatorname\{MeanRadialToRoot\}\(T\)=\\frac\{1\}\{\|V\|\-1\}\\sum\_\{v\\in V\\setminus\\\{r\\\}\}d\_\{rv\}
*Root\-to\-Leaf Contraction Ratio*: Letℒ\\mathcal\{L\}denote the set of non\-root leaves\. For eachℓ∈ℒ\\ell\\in\\mathcal\{L\}, the contraction ratio is its straight\-line distance from the root divided by its root\-to\-leaf path length:
Contraction\(ℓ,T\)=drℓ∑\(u,v\)∈path\(r,ℓ\)duv\.\\operatorname\{Contraction\}\(\\ell;T\)=\\frac\{d\_\{r\\ell\}\}\{\\displaystyle\\sum\_\{\(u,v\)\\in\\operatorname\{path\}\(r,\\ell\)\}d\_\{uv\}\}\.
*Mean Contraction*: Mean ratio of straight\-line root\-to\-leaf distance to path length:
MeanContraction\(T\)=1\|ℒ\|∑ℓ∈ℒdrℓ∑\(u,v\)∈path\(r,ℓ\)duv,\\operatorname\{MeanContraction\}\(T\)=\\frac\{1\}\{\|\\mathcal\{L\}\|\}\\sum\_\{\\ell\\in\\mathcal\{L\}\}\\frac\{d\_\{r\\ell\}\}\{\\displaystyle\\sum\_\{\(u,v\)\\in\\operatorname\{path\}\(r,\\ell\)\}d\_\{uv\}\},whereℒ\\mathcal\{L\}is the set of non\-root leaves\.
*Sholl Critical Radius*: To compute this we take a sphere around the root and count how many edges cross that sphere\. We then compute at which radius this count is maximised\. By normalising with the distance between the root and the furthest node in the tree, the radius becomes comparable between different\-size trees\.
#### Evaluation Representations
From these statistics, we form two evaluation representations\. For joint\-distribution comparisons, each tree is represented by the nine\-dimensional morphometric vector comprising axial extent, radial span, maximum branch order, partition asymmetry, mean branch length, mean bifurcation angle, mean radial distance to the root, mean contraction, and Sholl critical radius\. This representation is used for morphometric MMD, density, and coverage\.
For marginal comparisons, we use six selected rotation\-invariant statistics: maximum path length, total edge length, critical\-branch length, critical\-branch bifurcation angle, root\-to\-leaf contraction ratio, and partition asymmetry\. These statistics do not depend on a chosen global axis, allowing comparison with methods whose outputs have no distinguished orientation\.
#### MMD2
We compare the generated and ground\-truth distributions using the squared maximum mean discrepancy \(MMD\) with a Gaussian RBF kernel:
MMD2\(P,Q\)\\displaystyle\\operatorname\{MMD\}^\{2\}\(P,Q\)=𝔼x,x′∼P\[k\(x,x′\)\]\+𝔼y,y′∼Q\[k\(y,y′\)\]−2𝔼x∼P,y∼Q\[k\(x,y\)\],\\displaystyle=\\mathbb\{E\}\_\{x,x^\{\\prime\}\\sim P\}\[k\(x,x^\{\\prime\}\)\]\+\\mathbb\{E\}\_\{y,y^\{\\prime\}\\sim Q\}\[k\(y,y^\{\\prime\}\)\]\-2\\,\\mathbb\{E\}\_\{x\\sim P,\\,y\\sim Q\}\[k\(x,y\)\],k\(x,y\)\\displaystyle k\(x,y\)=exp\(−‖x−y‖222σ2\)\.\\displaystyle=\\exp\\\!\\left\(\-\\frac\{\\\|x\-y\\\|\_\{2\}^\{2\}\}\{2\\sigma^\{2\}\}\\right\)\.It measures how much the within\-distribution similarities exceed cross\-distribution similarities and becomes zero if the two distributionsPPandQQmatch\.
We estimate MMD2using its unbiased finite\-sample estimator,MMD^u2\\widehat\{\\operatorname\{MMD\}\}\_\{u\}^\{2\}\. LetGG,RR, andR′R^\{\\prime\}be equally sized sets, whereGGcontains generated morphologies andRRandR′R^\{\\prime\}are disjoint samples of real training morphologies\. We report the baseline\-adjusted discrepancy
ΔMMD2=MMD^u2\(G,R\)−MMD^u2\(R′,R\)\.\\Delta\\operatorname\{MMD\}^\{2\}=\\widehat\{\\operatorname\{MMD\}\}\_\{u\}^\{2\}\(G,R\)\-\\widehat\{\\operatorname\{MMD\}\}\_\{u\}^\{2\}\(R^\{\\prime\},R\)\.Values close to zero indicate agreement at the level observed between real samples; small negative values can arise from finite\-sample estimation\.
## Appendix GBaseline Post\-Processing
This section describes how raw outputs are processed before scoring\. We distinguish a method’s own tree construction, which is judged as its output, from repair that we add for comparability\. Every added step is neutral or in the baseline’s favour\.
#### SemlaFlow\.
The raw output is a set of coordinates with pairwise bond logits, and the predicted adjacency is not constrained to be a tree\. We keep the largest connected component, take its minimum spanning tree by Euclidean edge length, choose as root the unique maximum\-degree node when one exists and otherwise the base of the principal axis, prune non\-root nodes with more than two children down to the two largest subtrees, and contract non\-root degree\-22nodes\. This yields rooted, connected, and critical trees that are binary except for the root\.
The repair is required for a fair evaluation\. Root\-path and branch\-order statistics assume that every node is reachable from one root, persistence calculations require an acyclic graph, and the reference data contain only critical binary nodes and potentially a soma with more than two children\. We use those repaired graphs to compute the morphology metrics\. For structural validity we resort to the raw outputs to properly measure in how many cases such postprocessing was necessary\.
#### MorphoGen\.
The raw output is a2,0482\{,\}048\-point cloud on the unit sphere\. Tree construction is MorphoGen’s published method and its cost is not subtracted: L1\-medial contraction, farthest\-point subsampling to1,2001\{,\}200points, soma detection as a local density peak, greedy outward growth of a spanning tree \(linker caps non\-root nodes at two children\) and pruning of short terminal branches\. Scale is assigned to each generated tree by a draw from the training\-split scale distribution\. The resulting tree, which carries about3232points per branch, is then contracted to a critical skeleton by removing degree\-2 nodes\.
We make four changes to the released MorphoGen code: two align the implementation with the method described in the paper, and two tune hyperparameters for MICrONS\. First, the released soma radius of55is in micrometres but is applied to unit\-sphere data, so every density ball contains every point and the root is effectively arbitrary; we use a radius calibrated on real clouds, which reduces the normalised soma\-placement error from0\.320\.32to0\.060\.06\. Second, the released code caps all nodes including the root at two children although the paper explicitly exempts the soma; we allowKmax=23K\_\{\\max\}=23\. The two hyperparameters are the seed\-edge weight and the branch\-pruning length which are swept jointly on the training split and confirmed on validation; on reference clouds they reduce the mean normalisedW1W\_\{1\}over seven morphometrics from2\.512\.51to0\.610\.61\. We use this optimised configuration when reporting on MorphoGen in the main text\.
## Appendix HAdditional Quantitative Results
This section collects supplementary analyses of the neuron experiments\. We examine class\-conditioned population structure and test whether repeated TMD\-conditioned samples remain specific to their assigned targets\.
### H\.1Variability of TMD\-Conditioned Sampling
As already indicated in[Fig\.5](https://arxiv.org/html/2609.38506#S3.F5), there is some variability in the generation\. Here we quantify this by producing five generations for each of the test neurons with TMD\-conditioning\.[Table5](https://arxiv.org/html/2609.38506#A8.T5)shows that five distinct topologies are generated for 97\.9% of targets, and the node count varies for 98\.7%\. The persistence\-diagram distance among the five variants is half the distance to alternative neurons with the same root degree\. Note that the rows of the table refer to different channels of the persistence diagram \(path and radial\-root\)\. Larger sets of repeated samples are shown in[Fig\.11](https://arxiv.org/html/2609.38506#A9.F11)\.
Table 5:Repeated sampling under TMD\-conditioning\.Persistence\-diagram distances to the assigned target and to root\-degree\-matched alternatives across five generations per test neuron\. “assigned closer” is the percentage of matched comparisons in which the assigned target has the lower distance\. Variability between samples is much lower than to arbitrary neurons showing the effect of conditioning\.TMDchannelAssigned targetW1W\_\{1\}Matched alternativeW1W\_\{1\}Assigned/matchedratio↓\\downarrowAssigned closer\(%\)↑\\uparrowPath PD2\.9165\.5430\.526±\\pm0\.01591\.1±\\pm0\.8%Radial\-root PD2\.7755\.6660\.490±\\pm0\.01590\.8±\\pm0\.8%
### H\.2Class\-Conditioned Population Structure
In[Fig\.8](https://arxiv.org/html/2609.38506#A8.F8)we report errors by class for class\-conditional generation\. As before, our model receives the soma degree while SemlaFlow gets a reference node count which thus only produces an error when the postprocessing removes nodes after generation, for example when selecting the largest component from a forest\. Our method tends to outperform SemlaFlow over all classes and metrics except for node count as described above and partition asymmetry where the image is mixed\. Also on the axial extent for 23P neurons SemlaFlow is slightly better, while especially on 5P\-NP which are hard for SemlaFlow we see a strong advantage of our method\. Overall, the advantage of our method is visible across cell types and there are clearly easier \(5P\-IT, 6P\-IT\) and harder \(4P, 5P\-ET\) cell types for both models\. Also both models tend to work well on the same cell types, except for 5P\-NP where SemlaFlow struggles while our method works reasonably well\.
Figure 8:Error by cell type\.Class\-conditioned generation errors for our model \(top\) and SemlaFlow \(bottom\)\. Entries are class\-wiseW1W\_\{1\}normalised by the reference standard deviation \(lower is better\)\. Both models work well on the same cell types and ours clearly outperforms SemlaFlow, except for node count that is given to SemlaFlow as input and partition asymmetry where errors are generally low\.
## Appendix IAdditional Samples
The following galleries expand the examples in the main text, showing unconditional samples across methods, class\-conditioned samples, and repeated generations from the same TMD conditions\. Since SemlaFlow and MorphoGen do not have a principal axis, they are plotted such that the root\-to\-centroid axis is used as such \(‘up’\)\. Colour encodes signed depth, and translucent red rings mark the roots\.
Figure 9:Unconditional generation for neurons\.Reference morphologies, post\-processed SemlaFlow generations, MorphoGen generations, and generations from our model are shown\. Neurons are drawn root\-centred and to scale within each method\.Figure 10:Class\-conditioned neuron samples\.Each row corresponds to one of the seven cortical pyramidal\-cell classes; columns compare training examples, SemlaFlow generations, and generations from our model\. The displayed samples are selected per source and class rather than treated as paired reconstructions\.Figure 11:Stochastic variation under TMD\-conditioning\.Each row shows one held\-out conditioning target followed by five independent generations for that target\. The generated samples preserve the target’s coarse dendritic organisation while varying in branch geometry and topology\. Row C shows a more difficult condition for which the generations are visibly more compact than the target\. B4 and E0 are unrealistic since they exhibit two apical dendrites instead of just one\.相似文章
通过轻量级结构引导的自回归模型实现新型图生成的可扩展性
研究人员提出了一种用于图生成的轻量级自回归框架,该框架使用结构引导的拓扑排序实现了接近对数线性的复杂度,解决了现有扩散和自回归方法在可扩展性和新颖性方面的局限性。该方法同时支持LSTM和Mamba风格的主干网络,在分子和非分子基准测试中展示了改进的新颖性,同时保持了有效性和独特性。
利用图on与神经逆算子构建复杂网络的生成模型
这篇来自南加州大学(USC)的论文提出了一种复杂网络生成模型,将机制可解释性与摊销推断相结合:采用多重分步图on(multifractal step graphon)对网络进行参数化,并利用神经逆算子在未见过的图规模上恢复参数。该方法在零样本生成基准测试中超越了图基础模型,并在多被试EEG数据中比传统网络统计量更灵敏地检测脑状态变化。
Graph Machine: Exploring Edge Mechanisms as an Inductive Bias
This paper introduces Graph Machine, an architecture with explicit edge-based mechanisms (edge-augmented attention and edge-centric referral) to improve iterative relational reasoning. Experiments on Sudoku show it outperforms Transformer baselines, with ablations and mechanistic analysis attributing gains to the edge mechanisms.
LEAF: 面向语音感知大语言模型后训练的无分支树生长方法
本文提出LEAF,一种基于回顾树的强化学习方法,用于语音感知大语言模型后训练,无需在线分支即可改进信用分配。在语音问答和语音翻译基准测试中,LEAF优于GRPO。
随机图信号的生成扩散模型
本文提出了一种统一的去噪扩散框架,用于条件生成图信号,引入了一种新颖的U-GNN架构,将U-Net扩展到图结构数据。该方法在股票价格预测和无线资源分配任务中得到了验证。