ORIGINAL RESEARCH article

Front. Syst. Neurosci., 07 May 2026

Volume 20 - 2026 | https://doi.org/10.3389/fnsys.2026.1822122

Convergence-divergence circuits for multimodal integration of innate and learned opponent valences

  • 1. Fudan University, Shanghai, China

  • 2. Key Laboratory of Growth Regulation and Translational Research of Zhejiang Province, Research Center for Industries of the Future, School of Life Sciences, Westlake University, Hangzhou, China

  • 3. Westlake Laboratory of Life Sciences and Biomedicine, Hangzhou, China

  • 4. Institute of Basic Medical Sciences, Westlake Institute for Advanced Study, Hangzhou, China

  • 5. Zhejiang University, Hangzhou, China

Abstract

Valence detection in complex environment is critical for natural behaviors like foraging. Previous studies have explored valence processing in brain regions like lateral horn (LH) and mushroom body (MB) using simple synthetic stimuli in Drosophila. However, the neural basis for valence detection of natural objects in complex contexts remains unclear. Here, by brain-wide connectome analysis, we identified the evolutionarily conserved superior protocerebrum (SP) that integrates brain-wide multimodal inputs mainly via LH and MB, and sends widespread outputs particularly to the central complex (CX). This forms a convergence-divergence circuit resembling an autoencoder architecture, with SP as the bottleneck integrating multimodal information into low-dimensional valence signals. Specifically, SP input LH neurons integrate ethologically related innate valences for robust valence detection in natural environments, and the integration can be unimodal, such as that of diverse odors signaling food, or multimodal, such as that of wind and temperature signaling lousy weather. Opponent valences of attraction and aversion are further integrated into SP for complex valence detection. MB learned valences are also integrated into SP to update LH innate valences with recent experience for flexible valence detection. Attractive and aversive valences, either innate or learned, are integrated via excitatory and inhibitory synapses, respectively to form complex valence signals in a single SP neuron. Organized synaptic compartments support dendritic computation, with SP neurons exhibiting opposite synaptic organizations for opponent valences, indicating dendritic integration for complex valence detection. Our study highlights the importance of SP in multimodal opponent valence integration and suggests generalizable network and dendritic structures for complex valence processing.

1 Introduction

During natural behaviors like foraging and social interactions in the complex environment, animals must parse contextual cues to extract valence information and integrate it with their internal goals and states to plan appropriate actions (Keleman et al., 2012; Kohl et al., 2013; Sayin et al., 2019; Lin et al., 2022; Münch et al., 2022; Ning et al., 2022; Taisz et al., 2023; Cazalé-Debat et al., 2024; Gautham et al., 2024). These contextual cues are often complex and multisensory. For example, hungry animals during foraging must process food cues, which are multisensory objects characterized by distinct appearances, textures, and scents that convey their identities and valences. Valences of some cues are innate, such as the attractive scent of yeast or the aversive smell of toxic bacteria, whereas others are acquired through experience, such as visual cues linked to unpleasant food. Internal states further modulate the valences of food, for example, food becomes more attractive when the animal is hungry. How animals integrate innate and learned valences in dynamic multimodal external contexts while accounting for internal states to plan actions is remarkable yet elusive.

Processing multisensory contextual cues for valence detection in complex environment requires integrating multimodal information distributed across multiple brain regions. Understanding how different brain regions interact is a fascinating yet challenging question. The recent completion of the whole-brain connectome for the numerically tractable Drosophila brain (Zheng et al., 2018; Scheffer et al., 2020; Dorkenwald et al., 2021, 2024; Winding et al., 2023; Eckstein et al., 2024) – complemented by advanced manipulation and measurement tools and a rich behavioral repertoire – offers an ideal model for investigating inter-regional interactions, where dissecting the structural basis is the first step.

Drosophila central brain regions lateral horn (LH) and mushroom body (MB) are implicated in innate and learned valence processing, while the central complex (CX) has been implicated in goal-directed action selection informed by valence (Hulse and Jayaraman, 2020; Modi et al., 2020; Wilson, 2023; Fulton et al., 2024), making them candidate inputs and outputs for the interaction question. Theoretical and experimental studies are starting to uncover the interactions between these regions (Dolan et al., 2018; Sun et al., 2020; Matheson et al., 2022; Goulard et al., 2023), and direct inter-regional connectivity between MB, LH, and CX has been examined (Frechter et al., 2019; Li et al., 2020; Hulse et al., 2021; Winding et al., 2023). However, the circuit architecture integrating LH, MB, and CX is unclear. In particular, it remains unknown whether an interneuron network exists to route information between these three regions, and if so, where it is located. Dissecting this interneuron network may elucidate complex valence integration in natural environments.

Across many arthropod species, the evolutionarily conserved superior protocerebrum (SP) sits anatomically among MB, LH, and CX, making it a prime candidate for the interneuron network (Heinze et al., 2012; Phillips-Portillo and Strausfeld, 2012; Ito et al., 2014; El Jundi et al., 2018; von Hadeln et al., 2019; Hensgen et al., 2020; Kaiser et al., 2022). We focused on SP connectivity with these key regions, and found that SP heavily innervates LH, MB, and CX, forming convergence-divergence network, an architecture resembling autoencoders in machine learning (Lecun and Soulie Fogelman, 1987; Kramer, 1991; Goodfellow et al., 2014). We further identified synaptic distribution patterns that underlie dendritic computation in this convergence-divergence network. Our findings reveal that by integrating innate and learned opponent valences from diverse sensory modalities, convergence-divergence circuit design robustly and flexibly transforms high-dimensional sensory inputs into low-dimensional valence signals, which can be broadcasted for adaptive behavior in natural settings. These results are consistent between the hemibrain (Scheffer et al., 2020) and the FAFB/FlyWire (Zheng et al., 2018; Dorkenwald et al., 2024) connectome datasets, indicating the generality.

2 Materials and methods

2.1 Datasets

We used the morphology, connectivity, and synapse position data from hemibrain (v1.2.1) (Scheffer et al., 2020) and FlyWire (v783) (Schlegel et al., 2024) for this manuscript.

2.2 Nomenclature

For the anatomical nomenclature of brain regions in this manuscript, we used the systematic nomenclature of the insect brain by the Insect Brain Name Working Group (Ito et al., 2014). We used the nomenclature for LH, MB, and FB neurons, as well as OPN, VPN, WEDPN, DN, and modulatory neurons based on published studies (Wu et al., 2016; Dolan et al., 2019; Li et al., 2020; Hulse et al., 2021; Schlegel et al., 2021).

2.3 Threshold setting

In the hemibrain and FlyWire datasets, the number of synapses between two neurons refers to the number of postsynaptic sites on the postsynaptic neuron (Scheffer et al., 2020; Dorkenwald et al., 2024). To eliminate spurious connections, we filtered out connections with less than two synapses between two neurons in all connectivity analyses.

2.4 Definition of SP intrinsic neuron (SPIN)

2.4.1 Superior protocerebrum (SP)

Crepine (CRE), which surrounds the MB medial lobe, is traditionally not considered part of superior neuropils. We found a strong connection between CRE and superior neuropils (Supplementary Figure 1B). CRE and SIP warp around MB horizontal and vertical lobes, respectively (Figure 1B). We reasoned that such an organization, which is evolutionarily conserved (El Jundi et al., 2010, 2018; Phillips-Portillo and Strausfeld, 2012; Ito et al., 2014; Habenstein et al., 2023), enhances wiring efficiency with MB. Indeed, CRE is connected with MB as heavily as superior neuropils (Supplementary Figure 1C; Aso et al., 2014a). Similarly, both CRE and SMP are adjacent regions and strong connection partners of the fan-shaped body (FB) (Supplementary Figure 1C). Reasoning that having intrinsic neurons is a signature of an independent region, we looked for intrinsic neurons in CRE. We defined CRE-related neurons as “traced” fragments with at least two pre- or post-synaptic sites located in CRE in the hemibrain dataset. We calculated the pre- and post-synaptic site counts of all CRE-related neurons in each brain region, and plotted their synapse distribution in the brain regions connected with more than half of the CRE-related neurons in Supplementary Figure 1B. We found no intrinsic neurons in CRE, and most CRE-related neurons are CRE-SMP or CRE-SMP-SIP neurons (other than CRE innervating MBON), indicating that CRE is anatomically associated with superior neuropils. Finally, we quantified the connectivity strengths between major neuron types in CRE, SP, and MB/FB (Supplementary Figure 1C), and found that CRE and SMP are both crucial hubs in this network, further indicating that CRE shares a similar pattern of connectivity with superior neuropils.

FIGURE 1

2.4.2 SP intrinsic neuron (SPIN) in hemibrain

To decompose the compartments in SP, we first collected all fragments in the right hemisphere of the hemibrain dataset that transmit information through SP (including SMP, SIP, SLP, and CRE) with at least two pre- or post-synaptic sites. There are 11288 fragments with pre-/post- synaptic sites in unilateral SP (right side), in which 9384 fragments are “well-traced” (Supplementary Figure 1D), since the left hemisphere in hemibrain is incomplete. To distinguish well-reconstructed neurons from all fragments, we then quantified the relation between total synapse counts of each continuous fragment and the number of fragments in this dataset, and found that both populations consist of two regimes. The left regime shows a weaker relation between synapse counts and fragments count, representing the partially-traced short fragments (Supplementary Figure 1D); while the right regime exhibits a stronger relation. Thus, we set the approximate turning point (75 synaptic sites, green dashed-line in Supplementary Figure 1D) as a threshold between properly traced neurons and partially-traced short fragments. We defined the properly-traced neurons as SP-related neurons. By calculating the distribution of SP-related neurons synapse percentage in SP (Figure 1C, Supplementary Figure 1H), we found that a subset of SP-related neurons exhibited a strong preference (over 85% of synapses) for the SP region, as highlighted by the green rectangle in Figure 1C. We defined this SP-related neuron population as the SP intrinsic neurons (SPINs). After analyzing the statistical distribution of the pre- and post-synaptic sites of all SPINs (Supplementary Figure 1E, upper panel), we found that the threshold of 75 was very close to the peak of the distribution for pre-synaptic sites, and seemed to truncate the histogram. Thus, we added those neurons that belong to types with at least one neuron counted as SPINs but with pre-synaptic sites less than 75 to SPINs, making the histogram more natural (Supplementary Figure 1E, lower panel). To avoid confusion, we manually examined all SPINs, and removed neurons belonging to reported cell types, such as LHONs, descending neurons (DNp25), and known modulatory neurons like PPL107. The final count for the total number of neurons in the SPIN population in the right hemisphere of hemibrain is 1411.

2.4.3 SP intrinsic neuron (SPIN) in FlyWire

We also decomposed the SP neurons in FlyWire. Since fragments in FlyWire lack tracing result estimation as in hemibrain, we used all fragments across the brain to derive the whole-brain synapse count distribution, and to distinguish well-traced neurons in FlyWire. We reasoned that the whole-brain synapse count distribution in FlyWire comprises two populations, including partially-traced fragments and well-traced neurons. We found two peaks in both pre-synaptic and post-synaptic site count distribution curves of FlyWire, corresponding to the synapse distribution of partially-traced fragments and well-traced neurons, respectively (Supplementary Figure 1F). Thus, we set the intersection point (40 synapses, see dashes in Supplementary Figure 1F) between the two peaks in both pre- and post-synaptic site count distribution, as the threshold to filter out partially-traced fragments in FlyWire. We only considered the fragments containing more than 40 pre- and post-synaptic sites for the following analyses in FlyWire. Next, we defined SP-related neurons by collecting all fragments that transmit information through SP (including SMP, SIP, SLP, and CRE) with at least two pre- or post-synaptic sites in FlyWire. We calculated the pre-/post-synaptic site percentage in SP of each SP-related neuron in FlyWire, and found a similar distribution as in hemibrain (Figures 1C,D, Supplementary Figure 1H). We also found a subset of SP-related neurons in FlyWire exhibiting a strong preference (over 85% of synapses) for the SP region by adding the synapse percentage of the left and right SP together. We defined this SP-related neuron population as the SPIN in FlyWire, as highlighted by the green rectangle in Figure 1D. The final SPIN count in FlyWire is 2844 neurons in the left and right hemispheres. This number is very close to the double of 1411 for the hemibrain dataset. There are 1479 and 1365 SPINs in the right and left hemispheres, respectively (Figure 1O).

2.5 Connectivity

2.5.1 Clustering methods

We mainly performed hierarchical clustering on SPINs connectivity analyses based on their normalized connectivity strength matrix with neurons or regions. We used the logarithmic function for SPIN intrinsic connectivity matrix normalization and used the connectivity percentage of each SPIN to represent the connectivity strength with other neuron types or regions. We first used the Bray-Curtis distance (Bray and Curtis, 1957) during clustering to calculate the pairwise distances between SPINs. The distance d(u,v) between two SPINs u and v is:

where u and v are vectors of brain-wide connectivity of a single SPIN. Then, we used the Ward variance minimization algorithm (Ward, 1963) to compute the distance between clusters in hierarchical clustering, due to its superior performance on large datasets. The algorithm begins with a forest of clusters yet to be used in the hierarchy being formed. When two clusters s and t from this forest are combined into a single cluster u, s and t are removed from the forest, and u is added to the forest. The algorithm stops when only one cluster is left in the forest, and this cluster becomes the root. We set s and t to be combined to form cluster u, and v is an unused cluster in the forest. The distance d(u,v) between two clusters u and v is computed as follows:

where T=|u| + |s| + |t|, and |*| refers to the cardinality of its argument. The d(i,j) entry corresponds to the distance between cluster i and j in the original forest.

2.5.2 SPIN extrinsic connectivity with brain regions

We first studied SPIN input and output regions (Supplementary Figures 1I,J). Since SPIN synapses are concentrated in the SP, we traced the SPIN first stage upstream and downstream locations in the brain. We calculated the distribution of SPIN upstream dendrite and downstream axon counts by brain regions in hemibrain (Supplementary Figure 1I) and FlyWire (Supplementary Figure 1J), respectively, and sorted the brain regions in descending order. These panels showed that SPINs have a special preference for LH, MB, and FB, as highlighted in purple in Supplementary Figures 1I,J.

2.5.3 Major cell groups

From the above analysis, we found that the main upstream and downstream regions of SPINs are MB, FB, and LH, whose major cell groups were already known (Li et al., 2020; Hulse et al., 2021; Schlegel et al., 2021). Therefore, we further investigated the relationship between SPINs and these brain regions through major cell groups. In the MB, we considered the main output cell group MBON, and the modulatory DAN. Similarly, we selected LHON and LHCENT for LH, and selected FBt and FBc in FB, such as FC, FS, PFR, PFG, and PFL. Intrinsic neurons, such as Delta neurons in FB, were not considered. As to the sensorimotor system, we examined the olfactory projection neuron (OPN) (Schlegel et al., 2021), visual projection neuron (mainly LC and LT neurons) (Wu et al., 2016; Schlegel et al., 2024), WED projection neuron (WEDPN) (Schlegel et al., 2021), and descending neurons (DN) (Namiki et al., 2018). In addition, large modulatory neurons (e.g., PPL107, 5-HTPMPD01, OA-VPM3, AstA1) (Deng et al., 2019) and some reported neurons passing through SP, such as pC1 (Hoopfer et al., 2015) and oviIN (Wang F. et al., 2020), were also examined.

2.5.4 SPIN extrinsic connectivity with major cell groups

We calculated the connectivity percentage of SPINs with major cell groups in hemibrain and FlyWire, and selected SPINs with strong connectivity preferences for these cell groups by setting a threshold of their connectivity strength. We defined SPINs with over 5% pre- or post-synaptic sites with any major cell groups as having preference with this cell group. We collected this SPIN subset and clustered them based on their connectivity percentage with all major cell groups by hierarchical clustering (Figures 1G–J, Supplementary Figures 6A,B).

2.5.5 SPINs clusters with regional preferences

We defined SPINs with regional preferences as SPINs having strong connectivity (>5% of this SPIN total input or output) with either major cell group in that region. We then performed hierarchical clustering on SPINs with regional preference (e.g., LH-related SPINs) based on their connectivity percentage with major cell groups in that region, and defined SPIN clusters by cutting the hierarchical tree dynamically.

2.6 UMAP

2.6.1 UMAP generation

We used the uniform manifold approximation and projection (UMAP) algorithm (McInnes and Healy, 2018) to reduce the dimensionality of the SPIN connectivity matrix to visualize these populations. UMAP is a k-neighbor-based graph learning technique for dimensionality reduction that favors the preservation of local distances over global distances (McInnes and Healy, 2018). UMAP is widely used (Becht et al., 2019; Cao et al., 2019) for its better visualization quality that preserves more of the global structure and its superior run-time performance than t-SNE (McInnes and Healy, 2018). The first step of the UMAP algorithm is to generate a weighted k-neighbor graph by Laplacian eigenmaps that approximate the uniform manifold of the dataset. Next, we used fuzzy simplicial sets to transform the graph from metric space to fuzzy topological representations and computed a low-dimensional layout of this graph. This layout was optimized by stochastic gradient descent. To run UMAP on the SPIN connectivity, we first generated the SPIN upstream and downstream connectivity matrices, by counting the synapse counts of SPIN and its post- and pre-synaptic neurons for the upstream matrix and downstream matrix, respectively. We then normalized the upstream or downstream connectivity vector in the upstream or downstream connectivity matrix of each SPIN with the total number of post-/pre-synaptic sites of this SPIN. We concatenated the upstream and downstream connectivity vectors of each SPIN into a single line vector as the combined connectivity vector of each SPIN. We generated a combined connectivity matrix of all SPINs using these line vectors. We performed UMAP on the combined connectivity matrix. To generate the weighted graph of SPINs, we identified a proper representation of SPIN distances with each other. Here, we used the Bray-Curtis distance (Bray and Curtis, 1957) to calculate the distance between each of the two SPINs and generated the distance matrix of SPINs. Next, we tested different parameter combinations (e.g., neighbor numbers, layout dimensions) of UMAP to better approximate the real manifold of the SPIN graph. After thousands of rounds of testing, we found the best combination of parameters for UMAP rendering in hemibrain is, neighbor = 36, layout dimension = 3, mindist = 0.1, with a random initialization factor of layout graph = 50. As to SPINs in FlyWire, we used the same method (Bray-Curtis distance) to calculate the distance matrix of SPIN, and the best combination of UMAP parameters in FlyWire is, neighbor = 32, layout dimension = 3, mindist = 0.13, with the random initialization factor of layout graph also equals 50. To assess the robustness of the UMAP embedding, we systematically varied n_neighbors ([24, 32, 40, 48]) and min_dist ([0.1, 0.15, 0.2, 0.25]) parameters and confirmed that the backbone structure is stable across parameter combinations in hemibrain (Supplementary Figure 2A) and FlyWire (Supplementary Figure 2E). We mainly used the 2D projection in the Component 1/2 plane of 3D UMAP to show the SPIN distribution in UMAP space (e.g., Figures 1K–O). We also used 3D view UMAP for videos. Each node in the UMAP atlas denotes a SPIN neuron.

2.6.2 Clustering on UMAP

We performed clustering on UMAP with HDBSCAN (McInnes et al., 2017), a density-based algorithm particularly suitable for 3D dot array data after UMAP dimensionality reduction, rather than k-means and other traditional clustering ways. In hemibrain, we clustered SPINs into 15 clusters based on this result and colored the points according to the clusters (Figure 1K), while we clustered SPINs into 12 clusters in FlyWire (Figure 1M). It is worth noting that one feature of HDBSCAN is that it can refuse to cluster some points and classify them as noise (McInnes et al., 2017). We colored the noise points as gray.

To assess whether SPIN clusters represent discrete types or a continuous gradient, we computed the local density of each SPIN in the original high-dimensional connectivity space. For each SPIN, we calculated the mean Bray-Curtis distance to its k nearest neighbors (k = 15, matching the min_samples parameter used in HDBSCAN) in the concatenated upstream–downstream connectivity matrix (the same matrix used for UMAP embedding). Local density was defined as the inverse of the mean k-NN distance and rendered on UMAP (Supplementary Figure 2B for hemibrain, Supplementary Figure 2F for FlyWire). To visualize the density landscape, we additionally computed a 2D kernel density estimate (KDE, Scott’s bandwidth) on the UMAP coordinates (Supplementary Figure 2C for hemibrain, Supplementary Figure 2G for FlyWire).

2.6.3 Rendering on UMAP

We rendered the UMAP in various ways, including SPIN connectivity preference to LH, MB, and FB (Figures 1L,N), morphological clustering results (Supplementary Figures 5D,E), predicted neurotransmitters (Figures 2J,K, Supplementary Figures 5A,B), connectivity strength to specific neuron groups (e.g., Figure 3A), and sensory modality preferences (Figure 3G) in both hemibrain and FlyWire. We also rendered the UMAP by SPINs location by brain side (Figure 1O) in FlyWire. To visualize the SPIN connectivity preference of LH, MB, and FB (Figures 1L,N), for each SPIN, we first summarized the input and output connectivity percentage with all major cell groups in a brain region (LH, MB, or FB), respectively. Then we choose the larger one of summarized input and output connectivity percentage with this brain region as the SPIN connectivity preference parameter to this brain region. By this, we got a 3-elements vector to represent a SPIN connectivity preference with LH, MB, and FB. We then transformed this vector to a color vector by CMY color code (cyan channel, MB preference parameter; magenta channel, LH preference parameter; yellow channel, FB preference parameter) to visualize the connectivity preference vectors with the three brain regions for each SPIN. For the connection strength rendering (Figures 3A,H,L), we used the connectivity percentage with specific major cell groups to visualize the connectivity strengths. Neurons with higher connectivity percentages are labeled with darker colors. To visualize the SPIN connectivity preference with its disynaptic and trisynaptic sensory inputs in FlyWire (Figure 3F), we first calculated the disynaptic and trisynaptic relative connectivity strength from olfactory, mechanosensory, and visual neurons to SPINs, respectively. After this, we got a 3-elements vector to represent connectivity strength with olfactory, mechanosensory, and visual neurons for each SPIN. We then transformed this vector to a color vector by RGB color code (red channel, mechanosensory connectivity strength; green channel, olfactory connectivity strength; blue channel, visual connectivity strength) to visualize the sensory input preference with each SPIN.

FIGURE 2

FIGURE 3

2.7 Motif

2.7.1 Shannon entropy analysis

To quantify the diversity of SPIN input and output connectivity as an independent test of the three hypothesized circuit models, we computed the Shannon entropy (Shannon, 1948) of the synaptic weight distribution for each SPIN. For each SPIN, we constructed a weight vector across all its upstream sources (for input circuits) or downstream targets (for output circuits), normalized by total synaptic weight to obtain a proportion vector p, and calculated

where pi is the proportion of synaptic weight from source (or to target) i. Shannon entropy is bounded between 0 (all weight concentrated on a single partner) and log2⁡N (weight uniformly distributed across N partners), and is sensitive to both the number of partners and the evenness of their contributions (Betzel et al., 2024; Moon et al., 2026). To test whether the observed entropy distributions are consistent with specific circuit models, we constructed three null models and applied statistical tests to reject each.

In the labeled-line null, all synaptic weight of each SPIN was assigned to a single randomly chosen partner, simulating a network in which each SPIN is dominated by one source or target (expected H  0). To reject this null, we performed a one-sample t-test of observed entropy values against 0.

In the mixed-model null, weight was distributed uniformly across all partners of each SPIN, simulating a mixed (all-to-all) network (Hexpect = log2N). To reject this null, we computed the entropy deficit (Hobserved-log2N) for each SPIN and performed a one-sample t-test against 0.

In the shuffled null, source or target labels were randomly reassigned across all connections while preserving the degree sequence (number of partners and weight distribution per SPIN), testing whether the observed entropy structure reflects specific wiring rather than a trivial consequence of the number of connections. The shuffled null was repeated 100 times to generate a distribution of mean entropy values. To reject this null, we computed

where μshuffled and σshuffled are the mean and standard deviation of the shuffled null distribution, and derived a two-sided p-value from the standard normal distribution.

2.7.2 Circuit motif analysis

We counted the number of triplet motifs in SPIN upstream, downstream circuits, respectively. We first generated possible triplet and motif sets based on the full permutation of directed edges between 3 nodes, and equivalent motifs were then merged into one. Next, we divided the SPIN connectivity matrix into 2 parts: SPIN upstream connectivity matrix (SPIN and its non-SPIN upstream) and SPIN downstream connectivity matrix (SPIN and its non-SPIN downstream). We then simplified the three SPIN connectivity matrices by setting a threshold of connection strength: connections with at least 5 synapses in hemibrain and 2 synapses in FlyWire were included in the triplet motif analysis. The 5 synapse threshold is the most commonly used standard in the Drosophila connectomics field for filtering false-positive connections (Li et al., 2020; Hulse et al., 2021; Schlegel et al., 2024). The lower ≥ 2 threshold for FlyWire reflects the ∼5-fold difference in z-resolution between hemibrain (FIB-SEM, ∼8 nm) and FlyWire (ssTEM, ∼40 nm). Because a typical Drosophila central brain synapse spans approximately 200–500 nm along the z-axis (Scheffer et al., 2020; Buhmann et al., 2021), each synapse is captured across 25–60 serial sections in hemibrain but only 5–12 sections in FlyWire. This reduced sampling causes each biological synapse to be represented by fewer postsynaptic density annotations in FlyWire, resulting in systematically lower synapse counts per connection. To verify that this threshold difference does not affect our conclusions, we repeated the motif analysis on FlyWire at T = 5, and the results are consistent with the T = 2 analysis (Supplementary Figure 4).

Then we counted the number of each triplet motif in SPIN circuits and calculated the network significance profile (NSP) (Matelsky et al., 2021) of each motif (Figures 2C,D,F,G, right panel to detect motifs significance in SPIN circuits). The network motifs are the subgraph for which the probability of appearing in a real network is greater than in the randomized network. Thus, the null hypothesis is that the number of subgraphs appears not to be significantly different between the real network and the randomized network, while the alternative hypothesis is that the number of subgraphs is significantly different between the real network and the randomized network. So, for each subgraph i, the statistical significance is described by the Zscore:

where the Nreal is the count of the subgraph i appearing in the real network, Nrand and std(Nrand) are the mean and standard deviation of the subgraph i appearance in the randomized network ensemble. In this paper, we generated a random network by reshuffling the real network. The mean and standard deviation of each subgraph appearance were calculated from the results of 100 times reshuffling. The network significance profile (NSP) is defined as a normalized vector of Zscore:

2.8 Relative connectivity for multi-layer networks

We calculated the relative connectivity matrix of the SPIN multimodal input circuit (e.g., Figure 3F; Li et al., 2020). The relative connectivity strength between SPINs and sensory neurons (e.g., OPNs) is computed by normalizing the upstream connectivity matrix (sensory neurons → intermediate neurons) and downstream connectivity matrix (intermediate neurons → SPINs) by rows and columns respectively, and multiplying these matrices. For each SPIN i, its connectivity with sensory neurons (like OPNs) can be described as an upstream matrix U (for OPN i, the upstream vector is Ui) and downstream vector Di,

in which K denotes to the total intermediate neuron number, uij denotes the synapse percentage that OPN i projected to intermediate neuron j, dij denotes to the synapse percentage that intermediate neuron j projected to SPIN i, and m denotes to the number of OPNs. Thus, the relative connectivity matrix C between all SPINs and OPNs in the brain can be described as:

where n denotes the number of SPINs. The resulting matrix C captures the aggregate relative structural path strength through all intermediate relay neurons. Note that this measure captures the aggregate relative structural path strength through intermediate relay neurons, rather than causal influence in the sense of dynamic causal modeling (Friston et al., 2003).

2.9 Representative SPIN ensembles

2.9.1 Identifying SPIN ensemble in hemibrain

Neurons similar in morphology and connectivity are more likely to be developmentally and functionally related, thus we identified ensembles based on morphology and connectivity similarity. To filter clusters defined by connectivity further with morphology, we estimated the morphological similarity for each SPIN cluster. We first used the NBLAST algorithm (Costa et al., 2016) (see Geometry session) to quantify the morphological similarity of all SPIN pairs and normalized the similarity matrix of all SPINs (Supplementary Figure 5C). Next, for clusters with the same regional connectivity preference (e.g., LH-related SPINs), we used a t-test to determine if the mean intra-cluster and inter-cluster similarity scores of a specific cluster are significantly different. SPIN clusters with significantly different morphological similarities are selected as ensembles, SMP34x (Figures 4, 5) and SIP01x (Figure 6).

FIGURE 4

FIGURE 5

FIGURE 6

2.9.2 Matching SPIN ensemble in FlyWire

We matched all ensembles between hemibrain and FlyWire based on cross-brain morphological similarity. We first aligned all SPINs in both hemibrain and FlyWire datasets to the same standard brain template (JRC2018F) (Bogovic et al., 2020). For FlyWire SPINs, we then mirrored the SPINs in left hemisphere to the right hemisphere in order to compare the morphological similarity together. Next, we used the NBLAST algorithm (Costa et al., 2016) to calculate the pairwise similarity score between all SPINs from both datasets (see Geometry session). After that, we calculated the similarity score distribution for each ensemble and for all SPINs. We took the (mean−sd) of similarity score for each ensemble in hemibrain as the morphological threshold. FlyWire SPINs with intra-cluster similarity scores higher than the morphological threshold defined in hemibrain, (mean−sd), were considered the same ensemble as in hemibrain.

2.9.3 Comparison of the connectivity strength of major cell types with SPIN ensembles

To calculate the average connectivity percentage of all neurons in each SPIN ensemble with each major cell type in LH, MB, and FB, we used the number of synapses connected with major cell types divided by the numbers of all synapses of each SPIN, and then averaged across SPINs, for pre-synaptic and post-synaptic sites. Only major cell types whose average connectivity percentages with SPIN ensemble are more than 0.1% in hemibrain or FlyWire are shown. We also calculated the percentage difference between the two datasets by subtracting the percentage in FlyWire from that in hemibrain (Supplementary Figures 7F, 9D).

2.10 Geometry

We used the NBLAST algorithm (Costa et al., 2016) to calculate the pair-wise morphological similarity score among all SPINs. NBLAST works by decomposing neurons into point and tangent vector representations. One neuron is designated the query and the other the target. For each query segment (defined by a midpoint and tangent vector) the nearest neighbor (using straight-forward Euclidean distance) is identified in the target neuron. A score for the segment pair is calculated as a function of two measurements: d, the distance between the matched segments (indexed by i), and , the absolute dot product of the two tangent vectors; the absolute dot product is used because the orientation of the tangent vectors has no meaning in our data representation. The scores are then summed over each segment pair to give a raw score, S:

To determine a suitable f, we developed an approach inspired by the scoring system of the BLAST algorithm. For each segment pair we defined the score as the log probability ratio:

the probability that the segment pair was derived from a pair of neurons of the same type, versus a pair of unrelated neurons. As NBLAST (Costa et al., 2016) is a point- and vector-based searching algorithm, to prevent the node number of neuron skeletons from influencing the calculation of similarity scores, we first aligned the node distribution of the SPIN skeleton in hemibrain and FlyWire. We downsampled FlyWire and hemibrain SPINs by 10 and 2 times, respectively to align the two node-count distribution of SPIN skeleton. Next, considering that the SPINs in FlyWire are located in both hemispheres, while the SPINs in hemibrain are located in the right hemisphere only, we mirrored all SPIN in left hemisphere of FlyWire to the right side so that we can compare their morphological similarity with SPINs in hemibrain. To compare the SPINs from the two datasets, we then aligned these neurons to the same brain template JRC2018F (Bogovic et al., 2020). After that, we transformed the skeleton tree of SPIN to a point and tangent vector representation (using 5 nearest neighbors to calculate tangent vector) of neurons (dotdrops) to calculate the NBLAST pairwise similarity score among all SPINs, and to obtain the pairwise similarity score matrix. We then diagonalized the similarity score matrix and normalized it by line. We performed hierarchical clustering on the matrix to anatomically divide SPINs into 40 clusters (Supplementary Figure 5C). We also counted the cell numbers of each cell type of SPIN and central complex neurons in hemibrain and calculated the cell number distribution across cell types (Figures 2M,N).

2.11 Subcellular topology

Skeletons in hemibrain and FlyWire are saved as hierarchical trees. As such they can be visualized as graph-like dendrograms. In this paper, we used the scalable force-directed placement (sfdp) algorithm (Hu, 2006) and the hierarchical layout algorithm (Gansner et al., 1993) to embed neuron skeletons onto 2D dendrograms. Notice that before embedding, we usually rerooted the neurons to the soma to better visualize the topological relationship of the branches.

2.11.1 Force-directed dendrogram

We transformed the skeleton tree of the complete neuron by the sfdp algorithm (Hu, 2006) (e.g., Figures 5B, 6I). Based on the spring-electrical model (Fruchterman and Reingold, 1991), sfdp is a fast, multilevel, force-directed algorithm that efficiently lays out large graphs (Hu, 2006). This model assigned two forces between vertices in the graph, and finding the optimal layout by minimizing the energy of the graph. The repulsive force, which exists between any two vertices, is inversely proportional to the distance between them. Meanwhile, the attractive force exists only between neighboring vertices, and is proportional to the square of the distance. The combined force of all vertices is therefore the energy of the graph. We optimized the graph layout by minimizing the energy. The energy of the spring-electrical model can be minimized iteratively by moving the vertices along the direction of forces exerted on them. And we measured the progress by the decrease in system energy.

2.11.2 Ranked dendrogram

We transformed the skeleton tree of selected branches to a ranked dendrogram by a hierarchical layout algorithm (Gansner et al., 1993) in Figures 5E,N, 6L,O. We first assigned a specific vertical level (rank) to each node to organize the layout from top to bottom. If an edge spans multiple levels, we split it by adding temporary “virtual nodes” (like stepping stones) to break long connections into shorter, single-level segments. Nodes on the same vertical level were rearranged horizontally to prevent overlapping edges and keep connections visually clear. Finally, we adjusted the horizontal positions of all nodes to minimize edge lengths.

2.11.3 Locate synapse position on dendrogram

For the visualization of the synaptic sites on the dendrogram, we calculated the nearest point on the original skeleton tree for each synaptic site detected and reassigned the position of the nearest point to the synaptic site. We visualized the synaptic sites on the dendrogram based on the reassigned positions.

2.12 Neurotransmitter prediction

We combined the LM and EM data (Chiang et al., 2011; Aso et al., 2014a; Dolan et al., 2019; Li et al., 2020; Hulse et al., 2021; Eckstein et al., 2024) to predict the neurotransmitters of neurons. For the prediction for SPINs, we mainly referred to the “top” neurotransmitter prediction of hemibrain and FlyWire. If the neurons of the same SPIN type have different transmitter prediction results, we preferentially select the neurotransmitter with a higher proportion as the prediction result. Moreover, if the prediction result differs from the LM data, we preferred to label the neuron with LM results.

2.12.1 Neurotransmitter comparison between hemibrain and FlyWire

We compared the transmitter percentages of the whole brain, all SPINs (Figures 2H,I), SMP34x (Supplementary Figure 7E), and SIP01x (Supplementary Figure 9C) in hemibrain and Flywire based on their neurotransmitter predictions. For SMP34x and SIP01x neurons, we calculated the average percentage of pre-synaptic sites that are predicted to express specific kinds of transmitter (including acetylcholine, glutamate, GABA, dopamine, serotonin, and octopamine) of all neurons in both hemibrain and FlyWire, and generated the heatmaps with the contrast denoting the average percentage of each neurotransmitter.

2.13 Single-cell sequencing analysis

Expression analyses were performed by using the digital expression matrix of the existing sequencing datasets with preprocessing (Croset et al., 2018; Davie et al., 2018; Janssens et al., 2022; Li et al., 2022). We considered glutamate receptor genes for GluClα, GluRIA, GluRIB, and GluRIIA. Cells containing more than 0 UMIs of the marker gene were considered. There were a small number of non-neuronal cells in the original dataset, including astrocytes, fat body cells, and other glial cells, which may influence the results to some extent.

2.14 Code and data information

All analyses were done in the Python3 environment. Analysis and visualization of connectivity data was performed by numpy, pandas, and matplotlib packages in python. UMAP downsampling analysis was performed by umap package1 in python. Analysis and visualization of morphological data were performed based on the NAVis package2. Motif analysis in Figures 2B–G was done by dotmotif package (Matelsky et al., 2021)3. EM raw images and segmentation masks in 2D views (Figure 5H, Supplementary Figures 8A–C) were visualized by Neuroglancer4. The 3D reconstruction of neurons (Figures 5I–L) was generated by Blender. The structures of chemicals in Figures 4C–E were generated by MolView5.

3 Results

3.1 Intrinsic neurons of the superior protocerebrum

To identify regions connected with LH, MB, and CX, we focused on superior neuropils amid MB, LH, and CX, occupying the superiormost parts of the brain (Figures 1A,B), including superior medial protocerebrum (SMP), superior intermediate protocerebrum (SIP), and superior lateral protocerebrum (SLP) (Supplementary Figure 1A; Ito et al., 2014). The crepine (CRE) surrounding the MB medial lobe forms a concrete network with superior neuropils (Supplementary Figures 1B,C, also see Methods). This study refers to them as superior protocerebrum (SP). To improve robustness, we examined both the hemibrain and the FAFB/FlyWire datasets throughout this study.

To study SP circuits, we reasoned that its intrinsic neurons are likely central to its core functions. Thus, we systematically identified SP intrinsic neurons. We statistically filtered well-traced SP neurons via synaptic distribution (Supplementary Figures 1D–H, also see Methods). By examining pre- and post-synaptic site distribution of well-traced SP neurons in unilateral SP, we identified a neuron cluster with over 85% of their synapses within SP (Figures 1C,D, green squares) as SP intrinsic neurons (SPIN) in hemibrain and FlyWire. After further statistical filtering via synaptic distribution (see Methods), the final counts for the total SPINs are 1411 in the right hemisphere in hemibrain, and 2844 bilaterally in FlyWire (Figures 1E,F), which are highly consistent. We focused on SPINs in this study. Interestingly, well-traced SP neurons, with arborizations both in and out of SP, have more pre-synaptic than post-synaptic sites in SP (Figures 1C,D, orange lines are polynomial fittings, see Methods). Alternatively, SP neurons have more post-synaptic sites outside SP. Given that pre-synaptic and post-synaptic sites correspond to synaptic outputs and inputs, respectively, the observed asymmetry suggests that the SP region receives a greater number of inputs via SP neurons from outside than it provides outputs. This leads to the hypothesis that SP may play a role in information integration. To further test the information integration hypothesis, we next examined the SPIN-connected circuits, on the level of brain regions, neuronal cell groups, and single neurons across the brain.

3.2 Brain-wide connectivity of SPINs linking LH, MB, and FB

To explore the brain-wide connectivity of SPINs, we examined at the brain region, cell type, and single-cell levels. We first traced their major inputs and outputs by brain regions (Supplementary Figures 1I,J). We analyzed the post-synaptic site locations of SPIN upstream neurons and the pre-synaptic site locations of SPIN downstream neurons. Apart from SP, the primary input regions are LH and MB, whereas the top output region is FB, consistent between hemibrain and FlyWire. To further pinpoint SPIN connectivity with cell type resolution, we then examined the major input and output cell groups of MB, LH, and FB. These include dopaminergic neuron (abbreviated as DAN) and MB output neuron (MBON) in MB, LH centrifugal neuron (LHCENT) and LH output neuron (LHON) in LH, FB tangential neuron (FBt) and FB columnar neuron (FBc) in FB, as well as modulatory neurons (Figures 1G–J). The numbers of synaptic sites are in the order of tens of thousands, with about twice as many SPIN post-synaptic as pre-synaptic sites (Figures 1G–J). These results are consistent between hemibrain and FlyWire, supporting prominent connections for information integration into SPINs. In both hemibrain and FlyWire, we found the most abundant upstream and downstream synaptic partners of SPINs to be LHON and FBt neurons, respectively (Figures 1G–J, arrows), suggesting LHON-SPIN-FBt connectivity as the dominant direction of information flow. To gain single-cell resolution, given the complexity of connectome data, we performed dimensionality reduction on the complete connectivity of SPINs with all neurons in the connectome to map whole-brain single-cell connectivity of all SPINs holistically. Using UMAP, we generated a SPIN brain-wide connectivity atlas (Figures 1K–N, Supplementary Video 1, see Methods). To examine whether specific cell populations are clustered, we classified SPINs via connectivity using density-based clustering (Figures 1K,M, see Methods). We indeed found that each arm of the pentagram-shaped embedding is populated by cells with similar connectivity. Wondering how these cell classes are related to major input and output regions, we quantified the ratios of SPIN connections with MB, LH, and FB to color-code the SPINs on the atlas (Figures 1L,N). Indeed, MB- and LH-related SPINs occupy discrete arms, while FB-related SPINs are located in the middle, adjacent to all arms (Figure 1L, Supplementary Video 2). Because proximity in a UMAP embedding reflects similarity in the high-dimensional data, such an organization suggests that FB may serve as a hub of the SPIN circuit, consistent with the information integration hypothesis. In the FlyWire dataset, we observed distribution patterns similar to those in the hemibrain atlas (Figure 1O). With a single-cell connectome, these results support information integration from MB and LH into FB.

Collectively, our connectivity analyses at the brain region, cell type, and single-cell levels reveal the LH/MB-SP-FB pathway as the dominant route of information flow. Wondering about the topological structure of SP circuit linking MB, LH, and FB, we proposed three circuit models (Figure 2A): (1) a labeled-line model, in which specific SPINs process dedicated inputs and outputs to form parallel channels; (2) a mixed model, in which all SPINs process all inputs and outputs, yielding an all-to-all fully-connected network; and (3) an integration model, inspired by the information integration nature of SP, wherein specific SPINs integrate multiple dedicated inputs and outputs to establish a convergence-divergence network.

To distinguish between these models, we calculated the Shannon entropy (Shannon, 1948; Betzel et al., 2024; Moon et al., 2026) of the input and output connectivity distributions for individual SPINs (Supplementary Figure 3). The observed entropies were significantly above zero yet well below the theoretical maximum, rejecting both the labeled-line (Supplementary Figures 3D,G,J,M) and the mixed (Supplementary Figures 3E,H,K,N) model, respectively. Furthermore, to determine whether SPIN connectivity exhibits non-random topological structures, we evaluated a random wiring model generated by shuffling the network connectivity. The observed entropy deviated significantly from that of the shuffled networks (Supplementary Figures 3F,I,L,O), effectively ruling out the random wiring model. Ultimately, the observed entropy profile, moderate mean with high variance across SPINs (distributions in Supplementary Figures 3D,G,J,M), confirms that SPINs exhibit structured, non-uniform connectivity with dedicated input and output partners. This observed architecture of the SPIN circuit strongly aligns with the preceding cell-class analyses. Under a strict labeled-line model, individual SPINs would connect exclusively to dedicated neurons, resulting in discrete cell classes. Conversely, a mixed model dictates that SPINs would innervate completely overlapping neuronal populations, leading to a smooth, uniform gradient of cell classes. Instead, because the circuit exhibits structured, non-random connectivity, the resulting SPIN cell-class fingerprints form a complex gradient characterized by cell-class-specific slopes that reflect their precise connectivity profiles.

3.3 Circuit motifs as combinatorial building blocks of SPIN networks

Complex neural circuits can be decomposed into simpler fundamental units (Luo, 2021). Because networks can be modeled as directed graphs, with recurring motifs serving as fundamental units (Milo et al., 2002; Bullmore and Sporns, 2009; Ma et al., 2009), we asked if complex SPIN circuits are combinatorically assembled from generic motifs.

Given that Shannon entropy analyses indicated structured SPIN connectivity, we next sought to identify the specific network architecture by analyzing triplet motifs, which served as an alternative validation of SPIN network models (Figure 2A). We posited that a strict labeled-line model would yield very few triplet motifs. Instead, we found a high frequency of triplet motifs (Figures 2B–G), arguing against labeled-line architecture. To distinguish between the remaining two models, we examined the balance of motif types: a mixed model should exhibit roughly equal numbers of convergence and divergence motifs. However, we observed unequal frequencies in both hemibrain and FlyWire datasets, favoring the integration model. Finally, we tested a key prediction of the integration model: that convergence and divergence motifs should be enriched in input and output circuits, respectively. Our data confirmed this distribution in both datasets. Together, these analyses indicate that the integration model, rather than the labeled-line or mixed models, best describes SPIN circuitry.

Convergence and divergence motifs can facilitate information integration and broadcasting (Jeanne and Wilson, 2015; Luo, 2021), and our analyses indicate that these are key functions of SP input and output circuits, respectively (Figures 2B–G, Supplementary Figure 3). Interestingly, the convergence-divergence network is analogous to an autoencoder network (Lecun and Soulie Fogelman, 1987; Kramer, 1991; Goodfellow et al., 2014), enabling the processing of complex inputs to generate complex outputs via sequential dimensionality reduction and expansion.

3.4 SPINs are primarily inhibitory or modulatory

Neural circuits with identical connectivity can execute profoundly different functions depending on their constituent cell types and neurotransmitter profiles. To further probe how the SP convergence network integrates information, we posited that this integration occurs via either summation or subtraction. Ultimately, the neurotransmitter identities of the constituent neurons largely determine whether a triple convergence motif is configured for additive or subtractive computation.

We examined the neurotransmitter profiles of all SPINs based on neurotransmitter predictions (Eckstein et al., 2024). Compared to the whole brain, the proportion of glutamatergic and cholinergic SPINs are significantly enriched and depleted, respectively (Figures 2H,I). Glutamate can act as an inhibitory transmitter via glutamate-gated chloride channel GluClα (Liu and Wilson, 2013). However, ionotropic glutamate receptor subunits homologous to mammalian AMPA and NMDA receptors are also expressed in Drosophila, indicating excitatory transmission. To estimate the extent of glutamate-mediated inhibition in the central brain, we reasoned that the expression frequency of GluClα serves as a proxy for the probability of inhibitory glutamatergic transmission. Analysis of published central brain single-cell sequencing data (Croset et al., 2018; Davie et al., 2018; Janssens et al., 2022; Li et al., 2022) revealed that GluClα is indeed the dominant glutamate receptor (Li et al., 2022; Figure 2L), suggesting that glutamatergic SPINs predominantly act as inhibitory neurons. Consequently, by combining glutamatergic and GABAergic populations, over half of SPINs are inhibitory. Furthermore, inhibitory and modulatory neurons together constitute three-quarters of SPINs in hemibrain, posing constraints on SP function. To determine whether SPINs with specific neurotransmitters profiles exhibit regional clustering, we mapped these cell types onto a brain-wide connectivity atlas (Figures 2J,K, Supplementary Figures 5A,B, and Supplementary Video 3). Dopaminergic SPINs are clustered, primarily comprising FB- and MB-related SPINs. Conversely, cholinergic and glutamatergic SPINs are broadly distributed with a bias toward LH- and MB-related SPINs (Supplementary Figures 5A,B). This distribution suggests a trend wherein the convergence-divergence circuit funnels widespread excitatory and inhibitory inputs to drive focused dopaminergic outputs, an organization similar to mammalian dopaminergic circuits (Hu, 2016; Watabe-Uchida et al., 2017).

3.5 SPIN cell types are composed of single neurons or small ensembles

Neural information can be encoded either by ensembles of similar neurons or by individual neurons. Neuron ensembles facilitate population coding to reliably represent complex variables (Vyas et al., 2020), such as head direction tracked by central complex EPG compass neurons (Seelig and Jayaraman, 2015). Conversely, individual neurons efficiently encode simpler signals, as seen in the giant fiber neurons mediating escape choices (Asinof and Card, 2024). Because neurons are metabolically expensive, the brain likely minimizes the number of neurons allocated to each function; thus, the size of a neuron population reflects the complexity of the information it processes. Consequently, single neurons or small ensembles are more efficient at encoding low-dimensional features than larger ones. Because the convergence-divergence topology of the SP network functions much like the bottleneck layer of an autoencoder, compressing data into a lower dimension, we hypothesized that SPINs are composed of single neurons and small ensembles optimized for encoding low-dimensional information. To examine the cell numbers across SPIN cell types, we first examined cell types defined in hemibrain and FlyWire. We reasoned that cells of the same type should be similar in morphology and connectivity. To check morphology, we quantified the morphological similarity between SPINs using the NBLAST algorithm (Costa et al., 2016), and indeed found that neurons within each ensemble exhibit homogeneous morphology by clustering (Supplementary Figure 5C). Wondering whether neurons with similar morphology also assume similar connectivity, we mapped SPINs on whole-brain connectivity atlas based on morphology (Supplementary Figures 5D,E), and found that neurons with similar morphology are clustered on the atlas, similar to connectivity, supporting cell type definition in hemibrain and FlyWire, further supporting consistency between datasets. We then examined the distribution of cell numbers across all SPIN cell types. Indeed, most SPIN types contain one or two neurons on each hemisphere, while only nine types of SPINs contain more than six neurons (Figures 2M,N, Supplementary Figure 5F). Six of the nine types are inhibitory, and the remaining three are dopaminergic, consistent with the inhibitory or modulatory neurochemical signature of all SPINs (Figures 2H,I). Together with the neurochemical distribution, SPINs are composed of glutamatergic populations and cholinergic single neurons as inputs, and dopaminergic populations as outputs. These single neuron or small ensemble results indicate low-dimensional information in SPINs, as elaborated later.

Based on our connectivity, motif, and cell-type analyses, we propose a SPIN circuit architecture model (Figure 2O). SPINs receive inputs from major output cell groups LHON, MBON, and FBc and project to key input cell groups LHCENT, DAN, and FBt. Notable differences in connection strengths suggest that the LHON/MBON-SPIN-FBt axis serves as the dominant pathway for information flow (Figure 2O). While convergence and divergence network motifs characterize SPIN input and output circuits, reinforcing an integration model, it remains uncertain whether the SPIN circuit also employs a mixed model or a labeled-line model. Furthermore, despite receiving widespread inputs, it is unclear whether these inputs are driven by a single sensory modality or exhibit multimodal characteristics. We investigated these questions by analyzing specific SPIN input and output regions.

3.6 SPINs integrate multimodal convergent inputs

The lateral horn (LH) receives diverse sensory inputs to mediate innate behaviors (Dolan et al., 2019; Frechter et al., 2019; Bates et al., 2020; Schlegel et al., 2021). Connectivity analysis revealed that most SPINs receive substantial synaptic inputs from LHONs (Figures 1G,I) while sending relatively less output back to LHONs and LHCENTs (Figures 1H,J), positioning LH upstream of SPINs (Figure 3A). To further probe the LH-SPIN network, we traced the multi-layer connectivity with major cell groups of SPINs with strong LH preferences (see Methods). LHONs serve as the primary direct inputs, followed by MBONs, while FBt neurons emerge as the principal outputs via two SPIN layers (Figure 3B, arrows), consistent between hemibrain and FlyWire. To pinpoint the topology of LHON to SPIN circuit, we classified SPINs via hierarchical clustering of the SPIN-LH connection matrix (see Methods). Each SPIN cluster samples feedforward input from many dedicated LHONs (Figures 3C,D). This LHON to SPIN mapping is largely exclusive: each LHON targets a specific SPIN cluster rather than the entire population. Thus, multiple LHONs converge onto dedicated SPINs in a many-to-one relation, ruling out a mixed model and supporting a convergence integration model. We then asked whether SPINs directly interact with sensory or motor neurons. A survey of connections from olfactory (OPNs), mechanosensory (WEDPNs), and visual (VPNs) projection neurons, alongside descending motor neurons (DNs) (Wu et al., 2016; Namiki et al., 2018; Bates et al., 2020), revealed clear direct inputs only from OPNs (Supplementary Figures 6A,B, upper panels). These OPN-recipient SPINs integrate both OPN and LHON inputs before projecting to FBt neurons via two SPIN layers (Supplementary Figure 6D). This pattern parallels the LH inputs, suggesting a functional coupling between OPN and LHON signals. Most SPIN-targeting OPNs are multiglomerular (mPN) rather than uniglomerular (uPN) (Supplementary Figure 6E; Bates et al., 2020). These mPNs pool information across multiple antennal lobe glomeruli (Tanaka et al., 2012; Bates et al., 2020; Schlegel et al., 2021), with many mediating thermosensory and hygrosensory processing. To assess the mPN-SPIN network topology, we clustered SPINs based on their PN connectivity. Unlike the convergent LHON-SPIN network (Figure 3D), each OPN-SPIN cluster is exclusively innervated by only one or two specific mPNs (Supplementary Figure 6E), supporting a labeled-line model.

Olfactory projection neuron inputs are considerably weaker than those from LH and MB (Supplementary Figure 6D, compare with Figures 3B,M), indicating that higher-order neurons dominate SPIN inputs while direct sensory connections contribute minimally. Given this lack of direct sensory drive, we hypothesized that SPINs acquire sensory information indirectly via higher-order networks. This is highly plausible: the lateral horn (LH), traditionally viewed as an olfactory center, is now recognized as a multisensory hub processing visual, mechanosensory, thermosensory, and hygrosensory inputs (Fişek and Wilson, 2014; Dolan et al., 2019; Frechter et al., 2019; Bates et al., 2020; Marin et al., 2020; Schlegel et al., 2021). Furthermore, the AVLP, a higher-order region rich in visual, auditory, and somatosensory information (Wu et al., 2016; Tsubouchi et al., 2017; Baker et al., 2022) funnels vital input to SP (Supplementary Figures 1I,J). To systematically map sensory modalities, we traced visual, olfactory, and mechanosensory inputs to SPINs across 0–5 intermediate layers. Most sensory inputs arrive via circuits with 1–3 intermediate layers, peaking at 2 layers, in both hemibrain and FlyWire (Supplementary Figures 6F,G). Focusing on disynaptic and trisynaptic circuits (Figures 3E–G), we found that SPINs receive massive multimodal drives, especially via trisynaptic pathways (Figure 3F, Supplementary Figure 6G). Mapping the anatomical origins of the first-layer neurons in both disynaptic and trisynaptic circuits (Figure 3G) revealed contributions from nearly every brain region, demonstrating that SPINs integrate brain-wide sensory inputs.

Together, SPINs integrate deeply processed multimodal inputs from diverse sources but barely from direct sensory inputs. This pronounced detachment from early sensorimotor pathways contrast sharply with C. elegans connectome, where most neurons are innervated by primary sensory and motor neurons (Cook et al., 2019), implying that SPINs mediate evolutionary advanced, higher-order computations. Situated downstream of deep multimodal circuits, SPINs are well poised to compute higher-order abstractions from sensory streams rather than participating in basic sensory feature detection. Valence is a strong candidate: LH is a known innate valence center (Dolan et al., 2019; Frechter et al., 2019; Bates et al., 2020; Schlegel et al., 2021), MB governs learned valence, while FB uses valence information, as discussed below.

3.7 SPINs send divergent outputs to FB

The fan-shaped body (FB) of the central complex (CX) is implicated in goal-directed action selection informed by valence (Cayco-Gajic and Silver, 2019; Shiozaki et al., 2020; Matheson et al., 2022; Ishida et al., 2026; Mussells Pires et al., 2024; Westeinde et al., 2024). FB contains columnar and tangential neurons (FBc and FBt) (Hulse et al., 2021). To further analyze the connectivity of the SP-FB network, we focused on SPINs with strong FB connections (Figure 3H, arrows, also see Methods). These SPINs are located in the middle of the atlas, in contrast to LH-, MB-, and OPN-related SPINs on the arms (Figures 1L,N, 3H, Supplementary Figure 6C), indicating integration of broad inputs. To test this, we analyzed SPIN connections with major cell groups across layers (Figure 3I). LHON and MBON neurons are major direct inputs, and FBt neurons are the dominant outputs. Thus, SPINs integrate LHON and MBON inputs and feed into FBt. SPINs send most of the synaptic outputs to FBt (Figures 1H,J, arrows), while receiving a small number of synaptic inputs from FBc, in both hemibrain and FlyWire (Figures 1G,I, 3H). Thus, FB acts as the main output of SPINs, in contrast to LH. To examine the network topology of SPIN-FBt connectivity, we clustered SPINs based on their connections with FB neurons (see Methods). We analyzed the connectivity between SPIN clusters and FBt neurons. Opposite to the many-to-one topology in LHON to SPIN inputs (Figure 3D), SPINs send divergent outputs to many FBt neurons in a one-to-many relation (Figures 3J,K), supporting the convergence-divergence integration model.

3.8 MB modulates SPINs via mixed network

The mushroom body (MB) is the center for learned valence and internal state (Davis, 1993; Heisenberg, 2003; Hattori et al., 2017; Cognigni et al., 2018; Cayco-Gajic and Silver, 2019; Sayin et al., 2019; Modi et al., 2020; Zolin et al., 2021). MBONs provide substantial synaptic inputs to SPINs (Figures 1G,I). To examine MB and SPIN interaction, we focused on SPINs with strong MB connections clustered within one arm on the atlas (Figure 3L), indicating a tightly related population. We analyzed these SPIN connections with major cell groups across layers (Figure 3M), and found that both MBONs and LHONs are primary direct inputs. This indicates that MB learned inputs are strongly coupled with LH innate inputs to supply SPIN, in contrast to LH innate inputs that tend to dominate SPIN input (Figure 3B). FBt neurons are the primary outputs, especially via two intermediate layers of SPINs. This again supports that SPINs integrate LHON and MBON inputs into FBt. To examine the topology of MBON-SPIN connectivity, we clustered SPINs based on their connections with MB neurons. We analyzed the connectivity of SPIN clusters with MBONs. Unlike the many-to-one and one-to-one connectivity in LH- and OPN-related SPINs, most MBON types send outputs to multiple SPIN clusters, and most SPIN clusters integrate inputs from multiple MBON types (Figures 3N,O). This forms a many-to-many connectivity, supporting the mixed model.

We found network topologies including many-to-one for LHON-SPIN, one-to-many for SPIN-FBt, many-to-many for MBON-SPIN, and one-to-one for OPN-SPIN, support convergence-divergence integration model, mixed model, and labeled-line model we hypothesized, respectively (Figures 3P,Q). These results illustrate the implementation of diverse networks for information processing at different stages of the SPIN circuit.

3.9 Convergence-divergence SPIN network for complex valence processing

Given the convergence-divergence LHON/MBON-SPIN-FBt network topology (Figure 3Q), we wondered what information SPINs might be encoding. Based on our results, we argued that such information should satisfy three conditions: (1), it can be encoded as low-dimensional information in SPINs like in the bottleneck of the autoencoder network; (2), it requires brain-wide multimodal inputs from the convergence network; (3), it needs to be broadcasted via divergence network. Besides, SPINs integrate deep sensory inputs rather than direct ones, suggesting involvement in higher-order functions that require deep sensory inputs. Given that SPIN input LHONs and MBONs are both implicated in valence while output FBt uses valence (Aso et al., 2014b; Das Chakraborty et al., 2022), and valence as a scalar is low dimensional, we hypothesized that SPINs further process valence. We reasoned that valence satisfies the aforementioned conditions. First, low-dimensional constraints exclude complex information such as spatial maps, better represented by population coding, and instead favor simple scalar variables like valence. Second, reliable processing of even a seemingly simple variable of valence is actually quite demanding (Tye, 2018; Tye et al., 2024). Valence information is distributed across modalities (Wang et al., 2018; Wang P. Y. et al., 2020; Das Chakraborty et al., 2022), and thus requires multimodal integration, a feature of SPIN inputs. Related variables such as value, which is also seemingly simple, require complex circuits for its computation (Hu, 2016; Watabe-Uchida et al., 2017; Knudsen and Wallis, 2022) that also exhibit convergence topology (Watabe-Uchida et al., 2017). Third, valence is an important variable that is useful for various functions and needs to be broadcasted. Furthermore, valence processing requires deep sensory information, not sensory features per se. We hypothesized that SPINs process valence via a convergence-divergence network, from LHON and MBON inputs to FBt outputs.

To directly address the valence hypothesis, we next focused on specific SPIN circuits, identifying the SMP34x ensemble. Comprising cholinergic and dopaminergic neurons, this ensemble integrates inputs from many LHONs and MBONs and projects to many FBt neurons (Figure 4A, Supplementary Figures 7A–E; see Methods), a pattern consistent between hemibrain and FlyWire (Supplementary Figure 7F). Thus, SMP34x forms a convergence-divergence circuit suitable for multimodal integration and broadcasting of valence signals. To understand the integration process, we focused on the SMP353 neuron, which, similar to other SMP34x neurons, samples broadly from multiple LHONs and MBONs.

Integration of diverse inputs generates increasingly complex representations. In the visual system, for instance, organized integration of excitatory and inhibitory signals from the ON and OFF pathways creates receptive fields with distinct components, enabling feature detection impossible with single components alone (Hubel and Wiesel, 1962; Seelig and Jayaraman, 2013; Sun et al., 2017). This integration can be hierarchically cascaded to form complex cells, facilitating advanced object detection and even visual invariance (Riesenhuber and Poggio, 2000). We asked whether a similar hierarchical, convergent design is employed for complex valence detection. While SMP353 already integrates both LHONs and MBONs, we wondered whether SMP353 receives excitatory or inhibitory inputs alone, or a combination of both. Based on the literature and neurotransmitter predictions, we examined the neurotransmission of SMP353 input cell types. SMP353 integrates cholinergic, GABAergic, and glutamatergic LHON inputs, as well as cholinergic and glutamatergic MBON inputs (Figure 4B). Thus, SMP353 integrates excitatory and inhibitory inputs for innate and learned valences. A related circuit design for reliable valence detection by integrating excitatory and inhibitory inputs has been reported in C. elegans (Dobosiewicz et al., 2019), suggesting that this may be a general principle across species. Prior work has shown that SMP353 drives wind-oriented movement (Aso et al., 2023), confirming its role in positive valence. However, the exact function of SMP353 in complex environments remains uncertain. We hypothesized that combining excitatory and inhibitory inputs for innate and learned valences yields complex valence representations, similar to visual receptive fields, making SMP353 SPIN a “complex valence” neuron. To further explore the complex valence hypothesis, we systematically mapped the inputs to SMP353.

3.10 SPIN input LHON integrates unimodal and multimodal valences

We began by analyzing LHONs, the predominant input to SMP353. While the LH is known for processing innate valence (Jefferis et al., 2007; Dolan et al., 2018; Das Chakraborty et al., 2022), prior studies largely relied on synthetic monomolecular stimuli. In contrast, natural behaviors like foraging involve complex “olfactory objects” defined by a diverse array of odors (Mansourian and Stensmyr, 2015). We hypothesized that integrating multiple ethologically related odors enhances the robustness of valence signals in natural contexts. Furthermore, while LH has been studied as a whole, the functions of individual LHONs remain largely unknown. To derive these functions at single-cell resolution, we analyzed their synaptic integration rules. While upstream uPNs receive homogeneous inputs from olfactory receptor neuron ORNs expressing the same receptors and generally follow a linear normalization model (Wilson, 2013; Badel et al., 2016; Bates et al., 2020), LHONs and SPINs receive broad multimodal inputs that likely require more complex processing. Indeed, many central brain neurons exhibit nonlinear integration (Tye et al., 2024). This is necessary because single chemicals often possess ambiguous valence depending on the natural olfactory object they belong to, while a single glomerulus can process different chemicals of opposite valences. For example, acetoin and its derivatives elicit opposite valences in different glomeruli (VM3 and VA2), and the single DM3 glomerulus processes both attractive ethyl acetate and aversive pathogenic bacterial product 2,5-dimethylpyrazine (Mathew et al., 2013; Badel et al., 2016; Mohamed et al., 2019). Thus, we hypothesized that LHONs and SPINs integrate inputs nonlinearly. By integrating multiple chemically distinct but ethologically relevant odors, nonlinear integration enables reliable valence detection of natural objects. If this hypothesis is true, we should see the integration of uPN glomeruli with diverse valences that collectively signal a definitive valence of natural object, either attractive or aversive. To test the nonlinear integration hypothesis, we examined LHONs and their upstream uPNs. LHONs consistently integrate diverse inputs from multiple uPNs processing ethologically related odors (Figures 4C–E). For instance, the prominent SMP353 input LHPV6a1 integrates uPN inputs from over twenty glomeruli that process wide-ranging odors such as decaying fruits (DL2d, DL2v), fruity esters (VA3, VM2), and yeast alcoholic fermentation of fruits (DP1l/m, VA2) (de Bruyne et al., 2001; Hallem et al., 2004; Hallem and Carlson, 2006; Silbering et al., 2011; Prieto-Godino et al., 2017; Figure 4C). Although specific glomeruli carry ambiguous valences, such as attractive VA3, VA2, VM2, and aversive DP1m, these glomeruli jointly signal the presence of overripe fruits. This supports nonlinear integration, indicating that LHPV6a1 may mediate attraction by resolving these ambiguous inputs into a coherent food signal. A similar case is LHAD1b2 (Figure 4D). While LHPV6a1 prefers fruit-related odors, LHAD1b2 prefers yeast-related odors, such as yeast alcoholic fermentation (VL2p, DP1l/m, VA2) and yeast volatiles (VA3, DM6) (de Bruyne et al., 2001; Hallem et al., 2004; Hallem and Carlson, 2006; Silbering et al., 2011). Specifically, VL2p, DP1m/l, and VA2 glomeruli process pyruvic acid, 2,3-butanedione, acetoin, and acetic acid, compounds representing distinct steps of the alcoholic fermentation pathway. By integrating across these metabolic steps, LHAD1b2 is positioned to achieve invariant detection of yeast growing on overripe fruits, one of the favorite foods for flies, regardless of its fermentation stage. Integration of attractive (VA3, VA2) and aversive (DP1m) inputs further supports nonlinear integration. Complex natural olfactory objects are composed of multiple related odors instead of single synthetic molecules generally used in the lab. By integrating numerous channels of related odors, the convergence network is well suited for processing complex natural olfactory objects, potentially providing robustness and invariance to valence processing. Such invariant detection of complex objects has also been explored in the visual system using convergence network topology (Riesenhuber and Poggio, 2000). By integrating fruit-preferring LHPV6a1 with yeast-preferring LHAD1b2, alongside other food-related LHONs, SMP353 is well positioned to detect food resources and signals attractive valence for foraging. As an aversive valence example, LHPV4b2 integrates uPN inputs specifically from danger-sensing glomeruli, such as toxic mold and bacteria products like geosmin by DA2 (Stensmyr et al., 2012) and 2-nonanone by DL5 (Mathew et al., 2013; Figure 4E), thus mediating strong aversion.

Natural objects are inherently multisensory. For example, a male fly releases the male-specific volatile pheromone cVA, sings pulse songs to females during courtship, and displays visual cues such as color and motion (Kurtovic et al., 2007; Dickson, 2008; Agrawal et al., 2014; Coen et al., 2014; Clowney et al., 2015; Ribeiro et al., 2018; Deutsch et al., 2019; Baker et al., 2022; Ning et al., 2022; Taisz et al., 2023). To investigate whether the convergence pathway integrates multisensory features, we examined sensory inputs to LHONs. The glutamatergic SMP353 input LHPV4b9 integrates auditory and visual cues. We reasoned that such auditory and visual cues likely signal a social object. Indeed, LHPV4b9 receives input from highly selective pulse song detectors, AVLP_pr36, pC2l, and AVLP_pr12 (Deutsch et al., 2019; Baker et al., 2022), indicating conspecific male detection (Figure 4F). This is complemented by visual inputs from motion detectors T4 and T5, and color vision detectors Tm5 and Tm20 (Song and Lee, 2018; Borst and Groschner, 2023; Christenson et al., 2024; Matsliah et al., 2024). These cues strongly indicate the presence of a conspecific male. We further examined whether olfactory cues reinforce this social signal. LHPV4b9 also integrates olfactory inputs from glomeruli including DA1, VA1d, VA1v, DC3, and DL3 (Figure 4F), all of which respond to pheromones (Ronderos et al., 2014; Dweck et al., 2015; Lin et al., 2016; Sethi et al., 2019). Notably, this includes DA1 and DL3 glomeruli for cVA (Kurtovic et al., 2007; Wang and Anderson, 2010; Liu et al., 2011). Together, these inputs constitute the complete set of major pheromones, providing robust chemosensory detection of conspecifics. By integrating highly specific olfactory, auditory, and visual detectors, LHPV4b9 can achieve specific and invariant conspecific male detection in complex natural environments. Furthermore, LHPV4b9 connects with LHAD1g1, a known multimodal conspecific detector (Taisz et al., 2023), potentially further reinforcing detection robustness. Finally, we observed broad multisensory inputs, indicating that multimodal integration is a general feature of SMP353 inputs (Figure 4G).

3.11 SPIN integrates opponent innate valences of attraction and aversion from LHONs

Each LHON input to SMP353 forms a definitive valence signal by multimodal integration. We investigated how SMP353 resolves these opponent valences. We observed a correlation between neurotransmitter identity and valence: attractive LONHs (e.g., LHPV6a1 and LHAD1b series) are cholinergic, whereas aversive LHONs (e.g., LHPV4b2) are glutamatergic (Figures 4B,H). A systematic comparison of upstream uPN inputs confirmed the generality (Figure 4I). Cholinergic LHONs receive substantial inputs from glomeruli associated with yeast and fruit (Semmelhack and Wang, 2009; Mansourian and Stensmyr, 2015), indicative of attractive food cues, while glutamatergic LHONs are dominated by inputs from glomeruli associated with toxic bacteria (Stensmyr et al., 2012), temperature (Gallio et al., 2011; Marin et al., 2020), and humidity (Frank et al., 2017), indicative of aversive environmental cues. Thus, SMP353 combines excitatory attractive inputs with inhibitory aversive inputs. Specifically, SMP353 balances attractive valence of food against aversive valence of toxic bacteria (via glutamatergic LHPV4b2) and conspecific (via glutamatergic LHPV4b9). The glutamatergic nature of LHPV4b9, which encodes social cues, is notable. Actually, pheromone dominates glutamatergic LHON inputs in general, while food-related cues dominate cholinergic LHON inputs (Figure 4I). Since social interaction and foraging are competing goals (Lin et al., 2022), the inhibition of SMP353 by social cues suggests a circuit mechanism for arbitrating between these behaviors, suppressing foraging when potential mates or rivals are present. The integration of opponent valences parallels feature detection in the visual system, where convergence of opponent ON and OFF features generates complex ON-OFF receptive fields (Figure 4J, upper panel). Similarly, the LHON-SPIN convergent integration circuit transforms simple monomeric valence in LHON into a “complex valence receptive field” (Wilson, 2013) in SPIN with both attractive and aversive valence components (Figure 4J, lower panel). This transformation likely enhances performance in natural environments, allowing the organism to map a sophisticated valence landscape rather than simply detecting single cues. In summary, by hierarchical convergence to integrate unimodal and multimodal cues in LHONs, and excitatory attractive and inhibitory aversive valence in SPIN, SMP353 assumes complex multimodal valence receptive fields for robust valence detection. While LH inputs provide a hard-wired innate valence baseline, we asked whether learned valences and internal states also modulate SMP353 for flexible valence processing.

3.12 SPIN integrates state-dependent attractive and aversive learned valences from MBONs

To investigate learned valence modulation, we analyzed SMP353 inputs from the mushroom body. The most prominent MB inputs are MBON07 and MBON14 (Figure 4B), both implicated in long-term memory (Plaçais et al., 2013; Aso et al., 2014b). Anatomically, axons of these MBONs, alongside input LHONs, converge with SMP353 dendrites to form a medial-to-lateral corridor spanning SIP and SLP (Aso et al., 2014a,2023; Figure 4K), providing a structural basis for valence integration on SMP353 dendrite. Notably, the neurotransmitter logic mirrors that of innate valence: the attractive MBON14 is cholinergic while the aversive MBON07 is glutamatergic. Thus, SMP353 integrates opponent learned valences via the same excitatory/inhibitory mechanism used for innate valence, a design conserved across development (Eschbach et al., 2021). Previous studies have shown innate and learned valence integration via MBON direct modulation of LHON (Dolan et al., 2018). We next examined whether MBONs also indirectly modulate SPIN via LHONs. Monosynaptic connectivity analysis between all MBONs and input LHONs revealed that MBONs preferentially modulate excitatory LHONs, with negligible input to glutamatergic LHONs (Figure 4L, green square). Over ten MBON types, both cholinergic and glutamatergic, strongly modulate cholinergic LHONs most heavily connected with SMP353 (like LHAD1b2, LHAD1b5, and LHPV6a1, Figure 4L). In some LHONs (like LHAD1b5), MBON even outweighs uPN synaptic inputs, facilitating strong modulation of innate valence by learned valence. Internal states, such as hunger, are essential for complex behaviors (Anderson, 2016; Flavell et al., 2022). Hungers signals in MB γ lobe dopaminergic neurons (Cognigni et al., 2018; Lin, 2023) propagate through a layered MB intrinsic network linking γ, β, and α lobes to MBON07 and MBON14, which in turn target SMP353 (Aso et al., 2014b; Li et al., 2020; Figure 4M). Thus, SMP353 is informed by hunger state information via a multilayer circuit originating in the γ lobe. Crucially, MBON07 and MBON14 (Figure 4L, arrows) provide the majority of both direct inputs and indirect inputs to SMP353, constituting a novel two-layer motif where MBONs modulate a feedforward circuit at two levels (Figure 4M). Functionally, this allows bidirectional learned valence and internal states to hierarchically modulate innate food attractions (via excitatory LHONs) for flexible foraging decisions. Conversely, glutamatergic LHONs encoding innate aversion bypass this modulation via hardwired inhibition (Figure 4M), effectively prohibiting foraging decisions in hazardous conditions.

3.13 SPIN sends complex valence to FB and MB modulatory neurons via divergence network

SMP353 integrates innate and learned valences via a convergence network of excitatory and inhibitory inputs, creating a hub for complex valence processing. To explore how complex valence is read out, we examined the SMP353 downstream circuit in the fan-shaped body of the central complex. SMP353 heavily innervates tangential neurons in dorsal FB, especially layer 6 (Figures 4A,B). These neurons are implicated in context-dependent action selections related to foraging, metabolism, and sleep, processes critical for homeostasis (Donlea et al., 2011, 2014, 2018; Hu et al., 2018; Dag et al., 2019; Li et al., 2021; Sareen et al., 2021; Lei et al., 2022; Flores-Valle and Seelig, 2023; Goldschmidt et al., 2023). To balance competing needs, like foraging versus energy conservation, flies must weigh internal states against external risks and opportunities. By integrating multimodal inputs from LHONs and MBONs, SPIN-FB pathway provides a circuit basis for context-dependent action selection. Given the high level of processing, SPINs should broadcast outputs broadly via the divergence network. Indeed, SPINs project not only to FB but also to MB DANs, and diverse modulatory systems (dopaminergic, serotonergic, octopaminergic, and peptidergic neurons, Figure 4A). This divergence network provides a well-suited structural basis that allows SPIN valence signals to influence global brain function.

3.14 SPIN dendritic integration of conflicting valences

Single SMP353 neuron integrates complex, potentially conflicting synaptic inputs. To understand how a single cell resolves conflicts between attractive/aversive and innate/learned signals, we reasoned that evolutionarily optimized priority rules might shape its subcellular structure. We hypothesized that in attractive valence neurons like SMP353, innate aversion should be prioritized over broad attraction, while learned valence should be prioritized over innate valence for behavioral flexibility. Such priority rules can be implemented via dendritic computation. To test the hypotheses, we examined synaptic organization of SMP353. To facilitate topological analysis, we mapped 3D synaptic locations onto a 2D dendrogram for SMP353 (Figures 5A,B, also see Methods). Neurons often assume a compartmentalized structure (Kondo et al., 2020; Liu et al., 2022; Sanfilippo et al., 2024), where inputs and outputs are separated by the site of action potential initiation (Figures 5A,B). Although many fly neurons exhibit intermixed processes, our analysis of SMP353 revealed a clear spatial segregation (Figure 5C). Pre-synaptic sites onto FB neurons are clustered together on the opposite side of the putative action potential initiation site than post-synaptic sites (Figures 5B,C), assuming that the branch point of the axonal processes from the primary process designates the site of action potential initiation (Gouwens and Wilson, 2009), indicating compliance with compartmentalization model.

For survival, aversive valences, like toxic bacteria, must be prioritized over attractive valences, like yeast food. To investigate how SMP353 solves this conflict via dendritic computation, we examined the organization of its synaptic inputs. Inhibitory synapses are known to block excitatory inputs via shunting inhibition, mediated by chloride-permeable ionotropic GABA receptors in mammals (Burman et al., 2023), and chloride-permeable ionotropic glutamate receptor GluClα in Drosophila (Liu and Wilson, 2013; Groschner et al., 2022; Ammer et al., 2023). Given that SMP353 integrates synaptic inputs for both attractive (excitatory) and aversive (inhibitory) innate valence, we hypothesized that inhibitory aversive inputs are positioned closer to the action potential initiation site to block excitatory attractive inputs. Mapping the locations of cholinergic and glutamatergic synapses onto the dendrogram (Figures 5D,E) confirmed that glutamatergic synapses are indeed located more proximally than cholinergic synapses (Figures 5D–F). Asking whether synapses for shunting inhibition are clustered to form a potent centralized inhibition or distributed on the dendritic tree to form hierarchically inhibition, we found that glutamatergic synapses tend to be located on dendritic trunks near branches at various stages of the dendritic tree, forming hierarchical shunting inhibition (Figures 5E,F, green arrows). Intriguingly, glutamatergic synapses are significantly fewer in number than cholinergic ones (Figures 5D,E). For such sparse inhibition to be effective, individual glutamatergic synapses should be significantly stronger than cholinergic ones, consistent with reports that GluClα receptors can be tenfold stronger than cholinergic ones (Ammer et al., 2023). Structural analysis revealed the basis for this strength: (Figures 5G–L, Supplementary Figure 8) a spine-like enlarged protrusion on the SMP353 dendrite (Figures 5K,L) apposed to a bouton from LHPV4b2 primary neurite (Figures 5J,K), forming a prominent “root” synapse (Figures 5G–L, Supplementary Figure 8) strategically positioned to gate upstream cholinergic inputs via potent shunting inhibition.

To adapt to changing circumstances, learned valences must override innate valences to drive behavior. For example, an odor that innately signals food might become undesirable if that food recently led to sickness. As SMP353 integrates both innate (LHON) and learned (MBON) valences, we examined how it solves the conflict via dendritic computation. We hypothesized that MBON synapses should be positioned more proximally than LHON ones to override innate valence when circumstances change. Consistent with this, the dominant LHON inputs are excitatory, while the dominant MBON inputs are inhibitory (Figure 4B). This arrangement supports a shunting inhibition mechanism, where inhibitory MBON learned valence effectively override excitatory LHON innate valence. Indeed, MBON synapses are located more proximally than LHON synapses (Figures 5M–S). Specifically, a glutamatergic MBONα1 synapse is located on the SMP353 dendritic trunk (Figures 5N,O), effectively gating this dendrite. Across the SMP353 dendritic tree, MBON proximal arrangement provides a structural basis for MBONs to modulate LHON inputs (Figures 5P–S).

Together, we found a hierarchical dendritic organization, where glutamatergic MBON synapses gate LHON inputs, and glutamatergic LHON synapses gate cholinergic ones. By delicate dendritic organization of conflicting synaptic inputs, SPINs prioritize ethologically critical valence signals.

3.15 Glutamatergic SIP015 integrates multimodal inputs into complex aversive valence

SMP34x ensemble exemplifies a convergence-divergence network from multimodal inputs to FB outputs for valence processing via dendritic computation. SIP01x ensemble exhibits similar patterns (Figure 6A, Supplementary Figure 9), integrating broad LHON inputs and projecting divergently to FBt in both hemibrain and FlyWire (Supplementary Figure 9D). Unlike the single cholinergic SMP353, SIP015 within SIP01x comprises 4 (hemibrain) to 6 (FlyWire) glutamatergic neurons per hemisphere (Supplementary Figures 9A–C). SIP015 integrates a wide array of LHON and MBON excitatory and inhibitory inputs (Figure 6B), akin to SMP353. Unlike SMP353, where excitatory LHON and inhibitory MBON inputs dominate, we found a higher proportion of inhibitory LHON and excitatory MBON inputs in SIP015. Together with its glutamatergic identity, these connectivity patterns suggest that SIP015 may mediate a function opposite to SMP353, potentially encoding aversive valence.

Ethologically relevant sensory inputs converge onto SIP015, paralleling SMP353. Glutamatergic LHPD2d1 relays mechanosensory signals monosynaptically from WEDPN3 (Bates et al., 2020) and WEDPN12 (also called WED_pr01 and WPNb) (Suver et al., 2019; Coates et al., 2020; Baker et al., 2022), and disynaptically from WEDPN6A and WEDPN8C via interneurons like WEDPN3 (Figure 6C). These WEDPNs process acoustic white noise and wind direction (Suver et al., 2019; Bates et al., 2020; Baker et al., 2022), with morphologically similar WPNs linearly encoding wind direction from broad wedge inputs (Suver et al., 2019). Comprising inhibitory (GABAergic WEDPN3/6A, glutamatergic WEDPN12) and excitatory (cholinergic WEDPN8C) neurons, with an inhibition bias, these WEDPNs bidirectionally signal aversive-biased wind cues. LHPD2d1 thus unimodally integrates mechanosensory cues to convey wind signals to SIP015.

Multimodal integration yields complex valence, paralleling SMP353. Glutamatergic LHPD2d2 fuses thermosensory/hygrosensory inputs: cold (GABAergic VP3), warm/humid (cholinergic VP1m), hot (cholinergic VP2) (Figures 6C,E), plus circadian DN1a (Alpert et al., 2020; Li et al., 2024; Reinhard et al., 2024), signaling environmental conditions spanning aversive coldness to attractive warm and humid conditions for flies (Marin et al., 2020). SIP015 also integrates olfactory inputs, aversive VA6/DC1 glomeruli via LHPD2d2 (Schlief and Wilson, 2007; Mathew et al., 2013; Badel et al., 2016); V glomeruli for CO2 via LHPD2d1/LHPD2d2 (Figure 6E, yellow square). CO2 from various sources is generally aversive to flies, with state-dependent complexity (Suh et al., 2004; Faucher et al., 2006; Jones et al., 2007, Ai et al., 2010; Lin et al., 2013; van Breugel et al., 2018), underscoring the importance of putting features into context. SIP015 thus integrates multisensory LHON inputs, both excitatory attractive and inhibitory aversive (Figure 6F), both chemosensation and physical sensation (Figures 6D,E), to signal innate aversion. Combining wind, temperature, humidity, circadian, and olfactory cues, SIP015 reliably detects conditions unfit for exploration. Thus, while SMP353 depicts an attractive chemosensory scene rich in food, SIP015 portrays an aversive physical condition characterized by inclement weather.

Like SMP353, SIP015 integrates innate and learned valences from LHONs and MBONs (Figure 6B), with a higher MBON proportion, including both cholinergic and glutamatergic MBONs. Cholinergic MBONs comprise vertical lobe V3/4 and V2 clusters for long-term memory retrieval (Séjourné et al., 2011; Plaçais et al., 2013; Aso et al., 2014b; Bouzaiane et al., 2015): MBON13 (α’2), MBON12 (γ2α’1), MBON14 (α3), MBON17 (α’3m), MBON18 (α2sc), and MBON19 (α2p3p). Glutamatergic MBONs include comprising horizontal lobe M4/6 cluster: MBON1 (γ5β’2a), MBON2 (β2β’2a), and MBON3 (β’2mp). These cholinergic and glutamatergic MBONs signal positive and negative valence, respectively. Thus, SIP015 integrates excitatory attractive and inhibitory aversive MBONs, similar to SMP353, indicating a general design principle. Like two-layer MBON modulation in SMP353, prominent SIP015 input MBONs also target its input LHONs (Figure 6G). Cholinergic (MBON18/13/12) and glutamatergic (MBON04/03/01) MBONs target cholinergic LHPV5e1/LHPV10d1. Specifically, MBON18 (MBONα2sc), implicated in memory retrieval and interaction with LHONs (Séjourné et al., 2011; Hige et al., 2015; Dolan et al., 2018), provides strong inputs to LHPV5e1/LHPV10d1, indicating similar MB-LB interaction functions. Unlike SMP353 where MBONs exclusively target cholinergic LHONs, MBONs target both cholinergic and glutamatergic input LHONs in SIP015 (Figure 6G). For example, cholinergic (MBON23/13/12) and glutamatergic (MBON02/03/04) MBONs target glutamatergic LHPD2d1. All three MBON input pathways-monosynaptic, disynaptic via cholinergic LHONs, and disynaptic via glutamatergic LHONs-arise from identical MB compartments: cholinergic α2, α’2, and α’1 (MBON23/18/13/12), and glutamatergic β’2 (MBON02/03/04), a pattern similar to SMP353 except for the dominant glutamatergic LHON pathway (Figure 4M), suggesting a more complex version of the two-layer MBON modulation circuit model.

SIP015 targets multiple FB tangential neurons (Figure 6B), akin to SMP353. Together, we discovered that SIP015 integrates multimodal innate and learned inputs into FB via a convergence and divergence network, similar to SMP353 but differ in LHON/MBON composition: cholinergic SMP353 contains more cholinergic LHON and glutamatergic MBON, glutamatergic SIP015 contains more glutamatergic LHON and cholinergic MBON, exhibiting symmetric opponency.

SMP353-SIP015 symmetry extends to dendritic implementation. SIP015 pre-synaptic sites onto FB tangential neurons cluster near the putative action potential initiation site, indicating compartmentalization (Figures 6H–J). Cholinergic LHON synapses distribute downstream of glutamatergic LHON inputs (Figures 6K–M, pink arrows), opposite to the pattern in SMP353. Similarly, LHON synapses tend to lie downstream of MBON synapses (Figures 6N–S). Thus, aversive SIP015 prioritize innate aversion over learned ones, while innate attraction over aversion, opposite SMP353. This synaptic distribution pattern correlates with synapse strengthens, as SIP015 exhibits higher MBON-LHON and glutamatergic-cholinergic synapse proportions than SMP353. SIP015 dendritic integration patterns thereby symmetrically oppose SMP353, underpinning valence opponency.

4 Discussion

Transforming complex sensory information into valence is vital for complex behaviors in natural environments. Significant progress has been made in valence processing with simple synthetic stimuli (Semmelhack and Wang, 2009; Choi et al., 2011; Badel et al., 2016), yet mechanisms for complex valence processing for natural objects remain unclear. We identified a convergence-divergence SPIN circuit that integrates multimodal innate and learned opponent valences from LH and MB, and discovered circuit and dendritic organizations underpinning complex valence processing in Drosophila, in both hemibrain and FlyWire connectome datasets. These structural organization rules may represent generalizable principles for complex valence processing.

4.1 Convergence-divergence network for complex valence processing

Along the valence transformation, such as the uPN-LHON/MBON-SPIN pathway we studied, the AL, the LH, and the MB have been implicated in valence processing. Here, we extended this valence pathway into SP. Why are there multiple layers of valence processing? We reason that as valence is critical for survival, the brain must consider all possible factors to ensure its reliability and robustness. Although valence signals appear simple and low-dimensional, deducing high-dimensional multimodal cues and experience from the natural environment into simple valence signals for actions is demanding. By flexible use of the convergence-divergence motif, the SPIN circuit evolved four solutions to this challenge: integrating relevant cues within modality, integrating multiple cues across modalities, combining attractive and aversive opponent valences, and updating innate valence with learned valence (Figures 7A–D). These four solutions are jointly applied to individual SPIN neuron input circuits (Figure 7E). Besides, unimodal and multimodal convergent integration of coherent valences generates monomeric valence in LHONs, while convergent integration of attractive-aversive and innate-learned opponent valences gives rise to complex valence in SPINs. This monomeric to complex valence transformation defines the functions of LHONs and SPINs as well as the convergence circuit. During interactions with natural objects such as food or mates, animals must parse complex sensory cues from the object and robustly transform them into valence to select appropriate actions. However, valence processing is traditionally studied using simple stimuli, such as synthetic chemicals (Semmelhack and Wang, 2009; Choi et al., 2011; Fosque et al., 2015; Badel et al., 2016). Natural objects tend to exhibit complex yet related sensory profiles that reflect complementary aspects of the object under scrutiny, such as a group of associated odors (Mansourian and Stensmyr, 2015) or different views of an object (Logothetis et al., 1994; Ning et al., 2022). Combining related cues improves the invariance of identification and robustness of valence detection under complex and dynamic environments. Related cues include both single-modality cues, such as associated odors of a specific food, and multi-modality cues, such as male pheromones and courtship songs. SPIN input LHON convergence circuits integrate both single modality cues, such as the complete set of pheromones, and key steps of yeast alcoholic fermentation pathway, and multi-modality cues such as olfactory, auditory, and visual tri-modality integration of conspecific male cues (Figures 7A,B).

FIGURE 7

In more challenging cases, valence signals can be ambiguous or even conflicting, such as a food source with weak signatures of bacterial infection. Animals must evaluate conflicting evidence of both edibility and harmfulness to balance cost and benefit. In stark contrast to uPNs and LHONs, which generally exhibit monomeric valence of either attraction or aversion, SPINs integrate attractive and aversive valences (Figure 7C). Such valence opponency design is similar to visual receptive fields combining ON and OFF pathways via excitation and inhibition for complex feature detection (Seelig and Jayaraman, 2013; Sun et al., 2017), as well as motion and color opponency (Mauss et al., 2015; Schnaitmann et al., 2018; Ammer et al., 2023). Furthermore, to facilitate consistent valence computation, the convergence network is organized to mediate attractive and aversive valences by excitatory and inhibitory synapses, respectively. We can further reason that by flipping the sign on the convergence motif such that attractive and aversive valences are integrated with the same sign of transmission, either excitatory or inhibitory, SPIN neurons can compute salience based on the same set of valence inputs. Indeed, valence and salience are processed in the same region, including the mushroom body and the amygdala (Aso et al., 2014b; Gore et al., 2015; Hattori et al., 2017; Yang et al., 2023).

In even more challenging scenarios, typically attractive or aversive cues may switch their valence based on recent experiences. To flexibly update valence in complex behaviors, innate valence must be integrated with learned valence (Figure 7D). Valence processing is segregated from sensory inputs into innate and learned pathways across species (Choi et al., 2011; Fulton et al., 2024), and identifying the hub of innate and learned valence pathway integration is a critical question across model organisms (Gore et al., 2015; Isosaka et al., 2015). Recent studies have examined learned and innate valence interaction in LH and MB (Dolan et al., 2018; Huang et al., 2024). However, whether the key integration process takes place within LH or MB, or in a separate hub is unclear. We identified the SP region that deeply integrates valence from both LH and MB (Figure 7E). Convergence neurons (CNs) that integrate innate and learned valence have been reported in the fly larva brain, which also integrate attractive and aversive learned valences from vertical and horizontal lobe MBONs via excitatory and inhibitory pathways (Eschbach et al., 2021), similar to SPINs. It is intriguing whether larval CNs and adult SPINs are developmentally related. Another factor where subjective experience affects valence processing is the internal state, such as the hunger state biasing the choice of contaminated food. We found SPIN modulation by MB and other modulatory neurons that have been implicated in internal state representation. By combining learning with the internal state via the convergence network, SPINs can update valence flexibly and timely.

While the neural circuits for sensory feature detection have been heavily studied (Harris and Mrsic-Flogel, 2013), those for valence processing are less understood. Although circuit motifs have been proposed for valence-driven behavioral outputs (Tye, 2018), neural circuits transforming sensory inputs into complex valence signals remain unclear. Oppositely structured to the divergence-convergence network in the PN-KC-MBON circuit implicated in pattern separation (Cayco-Gajic and Silver, 2019), we identified the convergence-divergence network of the LHON/MBON-SPIN-FBt circuit. Interestingly, the convergence-divergence network is essentially an autoencoder network, widely used for representation learning and generative models (Lecun and Soulie Fogelman, 1987; Kramer, 1991; Goodfellow et al., 2014). Autoencoder network features low-dimensional latent representations that extract key information while suppressing noise from convergent inputs to reconstruct the inputs as divergent outputs. Given that SP receives inputs from nearly the entire brain, SPINs are uniquely positioned to compute valence in complex natural environments and broadcast this information to inform goal-directed action planning in FB.

4.2 Dendritic integration of valence opponency

We identified an excitation-inhibition convergence network mediating multimodal integration of appetitive and aversive, as well as innate and learned valence opponency (Figure 7E). Interestingly, we found symmetric but opponent structural organization in the SMP353 and SIP015 convergent input networks, reflecting their valence opponency (Figure 7G). Strikingly, such a convergence network, which samples information from across most of the brain, converges onto a single SPIN neuron (Figure 7F). Why such a design? What function would single neuron implementation confer that is harder with neuron populations? We reasoned that such opponency integration is required for complex environments with opponent valences, where the coincidence of both valences activates the SPIN, potentially for multiplication to signal the spatiotemporal contingency. Such multiplication can be implemented with multiplicative disinhibition, through inhibitory glutamatergic transmission via the GluClα channel (Groschner et al., 2022; Ammer et al., 2023). In line with this, we found the SPIN aversive inputs to be glutamatergic (Figure 7G). Similar single-cell computations have been reported for visual motion and color opponency, as well as for visual feature and auditory coincidence detection, among others (Peña and Konishi, 2001; Gabbiani et al., 2002; Lin et al., 2014; Klapoetke et al., 2017; Groschner et al., 2018; Schnaitmann et al., 2018; Amin et al., 2020; Ammer et al., 2023). Interestingly, the glutamatergic shunting inhibition in SPINs is provided by bacteria infection, conspecific males, and learned aversion, indicating the ethological priority of these valences.

Statements

Data availability statement

The original contributions presented in this study are included in the article/Supplementary material, further inquiries can be directed to the corresponding author.

Ethics statement

The manuscript presents research on animals that do not require ethical approval for their study.

Author contributions

WW: Writing – original draft, Data curation, Formal analysis, Investigation, Methodology, Visualization. YY: Writing – original draft, Data curation, Formal analysis, Investigation, Methodology, Resources, Validation, Visualization. QL: Writing – original draft, Investigation, Resources. YG: Writing – original draft, Formal analysis. QL: Writing – original draft, Investigation. KZ: Writing – original draft, Investigation. JN: Writing – original draft, Resources. YS: Conceptualization, Formal analysis, Funding acquisition, Investigation, Methodology, Project administration, Resources, Supervision, Visualization, Writing – original draft, Writing – review & editing.

Funding

The author(s) declared that financial support was received for this work and/or its publication. This work was supported by National Natural Science Foundation of China (32371055), “Pioneer” and “Leading Goose” R&D Program of Zhejiang (2024SSYS0031), Research Center for Industries of the Future of Westlake University (WU2022C011), Westlake Laboratory of Life Sciences and Biomedicine (W101386022101), Key Laboratory of Growth Regulation and Translational Research of Zhejiang Province, Westlake Education Foundation, and Westlake University to YS.

Acknowledgments

We thank W.-B. Wang and J.-Z. Dong for technical assistance; B. Li, Q.-F. Ma, V. Jayaraman, T. Yang, R. Franconville, Y. L iu, and H.-B. Yang for suggestions; and members of Sun Lab for discussions and comments on the manuscript.

Conflict of interest

The author(s) declared that this work was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

Generative AI statement

The author(s) declared that generative AI was not used in the creation of this manuscript.

Any alternative text (alt text) provided alongside figures in this article has been generated by Frontiers with the support of artificial intelligence and reasonable efforts have been made to ensure accuracy, including review by the authors wherever possible. If you identify any issues, please contact us.

Publisher’s note

All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.

Supplementary material

The Supplementary Material for this article can be found online at: https://www.frontiersin.org/articles/10.3389/fnsys.2026.1822122/full#supplementary-material

References

  • 1

    AgrawalS.SafarikS.DickinsonM. (2014). The relative roles of vision and chemosensation in mate recognition of Drosophila melanogaster.J. Exp. Biol.217(Pt 15), 2796–2805. 10.1242/jeb.105817

  • 2

    AiM.MinS.GrosjeanY.LeblancC.BellR.BentonR.et al.. (2010). Acid sensing by the Drosophila olfactory system.Nature468691–695. 10.1038/nature09537

  • 3

    AlpertM. H.FrankD. D.KaspiE.FlourakisM.ZaharievaE. E.AlladaR.et al.. (2020). A circuit encoding absolute cold temperature in Drosophila.Curr. Biol.302275–2288.e5. 10.1016/j.cub.2020.04.038

  • 4

    AminH.ApostolopoulouA. A.Suárez-GrimaltR.VrontouE.LinA. C. (2020). Localized inhibition in the Drosophila mushroom body.Elife9:e56954. 10.7554/eLife.56954

  • 5

    AmmerG.Serbe-KampE.MaussA. S.RichterF. G.FendlS.BorstA. (2023). Multilevel visual motion opponency in Drosophila.Nat. Neurosci.261894–1905. 10.1038/s41593-023-01443-z

  • 6

    AndersonD. J. (2016). Circuit modules linking internal states and social behaviour in flies and mice.Nat. Rev. Neurosci.17692–704. 10.1038/nrn.2016.125

  • 7

    AsinofS. K.CardG. M. (2024). Neural control of naturalistic behavior choices.Annu. Rev. Neurosci.47369–388. 10.1146/annurev-neuro-111020-094019

  • 8

    AsoY.HattoriD.YuY.JohnstonR. M.IyerN. A.NgoT. T.et al.. (2014a). The neuronal architecture of the mushroom body provides a logic for associative learning.Elife3:e04577. 10.7554/eLife.04577

  • 9

    AsoY.SitaramanD.IchinoseT.KaunK. R.VogtK.Belliart-GuérinG.et al.. (2014b). Mushroom body output neurons encode valence and guide memory-based action selection in Drosophila.Elife3:e04580. 10.7554/eLife.04580

  • 10

    AsoY.YamadaD.BusheyD.HibbardK. L.SammonsM.OtsunaH.et al.. (2023). Neural circuit mechanisms for transforming learned olfactory valences into wind-oriented movement.Elife12:e85756. 10.7554/eLife.85756

  • 11

    BadelL.OhtaK.TsuchimotoY.KazamaH. (2016). Decoding of context-dependent olfactory behavior in Drosophila.Neuron91155–167. 10.1016/j.neuron.2016.05.022

  • 12

    BakerC. A.McKellarC.PangR.NernA.DorkenwaldS.PachecoD. A.et al.. (2022). Neural network organization for courtship-song feature detection in Drosophila.Curr. Biol.323317–3333.e7. 10.1016/j.cub.2022.06.019

  • 13

    BatesA. S.SchlegelP.RobertsR. J. V.DrummondN.TamimiI. F. M.TurnbullR.et al.. (2020). Complete connectomic reconstruction of olfactory projection neurons in the fly brain.Curr. Biol.303183–3199.e6. 10.1016/j.cub.2020.06.042

  • 14

    BechtE.McInnesL.HealyJ.DutertreC.-A.KwokI. W. H.NgL. G.et al.. (2019). “Dimensionality reduction for visualizing single-cell data using UMAP.Nat. Biotechnol.3738–44. 10.1038/nbt.4314

  • 15

    BetzelR.PuxedduM. G.SeguinC. (2024). Hierarchical communities in the larval Drosophila connectome: Links to cellular annotations and network topology.Proc. Natl. Acad. Sci. U. S. A.121:e2320177121. 10.1073/pnas.2320177121

  • 16

    BogovicJ. A.OtsunaH.HeinrichL.ItoM.JeterJ.MeissnerG.et al.. (2020). An unbiased template of the Drosophila brain and ventral nerve cord.PLoS One15:e0236495. 10.1371/journal.pone.0236495

  • 17

    BorstA.GroschnerL. N. (2023). How flies see motion.Annu. Rev. Neurosci.4617–37. 10.1146/annurev-neuro-080422-111929

  • 18

    BouzaianeE.TrannoyS.ScheunemannL.PlaçaisP. Y.PreatT. (2015). Two independent mushroom body output circuits retrieve the six discrete components of Drosophila aversive memory.Cell Rep.111280–1292. 10.1016/j.celrep.2015.04.044

  • 19

    BrayJ. R.CurtisJ. T. (1957). An ordination of the upland forest communities of Southern Wisconsin.Ecol. Monographs27325–349. 10.2307/1942268

  • 20

    BuhmannJ.SheridanA.Malin-MayorC.SchlegelP.GerhardS.KazimiersT.et al.. (2021). Automatic detection of synaptic partners in a whole-brain Drosophila electron microscopy data set.Nat. Methods18771–774. 10.1038/s41592-021-01183-7

  • 21

    BullmoreE.SpornsO. (2009). Complex brain networks: Graph theoretical analysis of structural and functional systems.Nat. Rev. Neurosci.10186–198. 10.1038/nrn2575

  • 22

    BurmanR. J.BrodersenP. J. N.RaimondoJ. V.SenA.AkermanC. J. (2023). Active cortical networks promote shunting fast synaptic inhibition in vivo.Neuron1113531–3540.e6. 10.1016/j.neuron.2023.08.005

  • 23

    CaoJ.SpielmannM.QiuX.HuangX.IbrahimD. M.HillA. J.et al.. (2019). The single-cell transcriptional landscape of mammalian organogenesis.Nature566496–502. 10.1038/s41586-019-0969-x

  • 24

    Cayco-GajicN. A.SilverR. A. (2019). Re-evaluating circuit mechanisms underlying pattern separation.Neuron101584–602. 10.1016/j.neuron.2019.01.044

  • 25

    Cazalé-DebatL.ScheunemannL.DayM.Fernandez-DV.AlquiciraT.DimtsiA.et al.. (2024). Mating proximity blinds threat perception.Nature634635–643. 10.1038/s41586-024-07890-3

  • 26

    ChiangA. S.LinC. Y.ChuangC. C.ChangH. M.HsiehC. H.YehC. W.et al.. (2011). Three-dimensional reconstruction of brain-wide wiring networks in Drosophila at single-cell resolution.Curr. Biol.211–11. 10.1016/j.cub.2010.11.056

  • 27

    ChoiG. B.StettlerD. D.KallmanB. R.BhaskarS. T.FleischmannA.AxelR. (2011). Driving opposing behaviors with ensembles of piriform neurons.Cell1461004–1015. 10.1016/j.cell.2011.07.041

  • 28

    ChristensonM. P.Sanz DiezA.HeathS. L.Saavedra-WeisenhausM.AdachiA.NernA.et al.. (2024). Hue selectivity from recurrent circuitry in Drosophila.Nat. Neurosci.271137–1147. 10.1038/s41593-024-01640-4

  • 29

    ClowneyE. J.IguchiS.BussellJ. J.ScheerE.RutaV. (2015). Multimodal chemosensory circuits controlling male courtship in Drosophila.Neuron871036–1049. 10.1016/j.neuron.2015.07.025

  • 30

    CoatesK. E.Calle-SchulerS. A.HelmickL. M.KnottsV. L.MartikB. N.SalmanF.et al.. (2020). The wiring logic of an identified serotonergic neuron that spans sensory networks.J. Neurosci.406309–6327. 10.1523/JNEUROSCI.0552-20.2020

  • 31

    CoenP.ClemensJ.WeinsteinA. J.PachecoD. A.DengY.MurthyM. (2014). Dynamic sensory cues shape song structure in Drosophila.Nature507233–237. 10.1038/nature13131

  • 32

    CognigniP.FelsenbergJ.WaddellS. (2018). Do the right thing: Neural network mechanisms of memory formation, expression and update in Drosophila.Curr. Opin. Neurobiol.4951–58. 10.1016/j.conb.2017.12.002

  • 33

    CookS. J.JarrellT. A.BrittinC. A.WangY.BloniarzA. E.YakovlevM. A.et al.. (2019). Whole-animal connectomes of both Caenorhabditis elegans sexes.Nature57163–71. 10.1038/s41586-019-1352-7

  • 34

    CostaM.MantonJ. D.OstrovskyA. D.ProhaskaS.JefferisG. S. (2016). NBLAST: Rapid, sensitive comparison of neuronal structure and construction of neuron family databases.Neuron91293–311. 10.1016/j.neuron.2016.06.012

  • 35

    CrosetV.TreiberC. D.WaddellS. (2018). Cellular diversity in the Drosophila midbrain revealed by single-cell transcriptomics.Elife7:e34550. 10.7554/eLife.34550

  • 36

    DagU.LeiZ.LeJ. Q.WongA.BusheyD.KelemanK. (2019). Neuronal reactivation during post-learning sleep consolidates long-term memory in Drosophila.Elife8:e42786. 10.7554/eLife.42786

  • 37

    Das ChakrabortyS.ChangH.HanssonB. S.SachseS. (2022). Higher-order olfactory neurons in the lateral horn support odor valence and odor identity coding in Drosophila.Elife11:e74637. 10.7554/eLife.74637

  • 38

    DavieK.JanssensJ.KoldereD.De WaegeneerM.PechU.KreftŁet al.. (2018). A single-cell transcriptome atlas of the aging Drosophila brain.Cell174982–998.e20. 10.1016/j.cell.2018.05.057

  • 39

    DavisR. L. (1993). Mushroom bodies and Drosophila learning.Neuron111–14. 10.1016/0896-6273(93)90266-t

  • 40

    de BruyneM.FosterK.CarlsonJ. R. (2001). Odor coding in the Drosophila antenna.Neuron30537–552. 10.1016/s0896-6273(01)00289-6

  • 41

    DengB.LiQ.LiuX.CaoY.LiB.QianY.et al.. (2019). Chemoconnectomics: Mapping chemical transmission in Drosophila.Neuron101876–893.e4. 10.1016/j.neuron.2019.01.045

  • 42

    DeutschD.ClemensJ.ThibergeS. Y.GuanG.MurthyM. (2019). Shared song detector neurons in Drosophila male and female brains drive sex-specific behaviors.Curr. Biol.293200–3215.e5. 10.1016/j.cub.2019.08.008

  • 43

    DicksonB. J. (2008). Wired for sex: The neurobiology of Drosophila mating decisions.Science322904–909. 10.1126/science.1159276

  • 44

    DobosiewiczM.LiuQ.BargmannC. I. (2019). Reliability of an interneuron response depends on an integrated sensory state.Elife8:e50566. 10.7554/eLife.50566

  • 45

    DolanM. J.Belliart-GuérinG.BatesA. S.FrechterS.Lampin-Saint-AmauxA.AsoY.et al.. (2018). Communication from learned to innate olfactory processing centers is required for memory retrieval in Drosophila.Neuron100651–668.e8. 10.1016/j.neuron.2018.08.037

  • 46

    DolanM. J.FrechterS.BatesA. S.DanC.HuovialaP.RobertsR. J.et al.. (2019). Neurogenetic dissection of the Drosophila lateral horn reveals major outputs, diverse behavioural functions, and interactions with the mushroom body.Elife8:e43079. 10.7554/eLife.43079

  • 47

    DonleaJ. M.PimentelD.MiesenböckG. (2014). Neuronal machinery of sleep homeostasis in Drosophila.Neuron81860–872. 10.1016/j.neuron.2013.12.013

  • 48

    DonleaJ. M.PimentelD.TalbotC. B.KempfA.OmotoJ. J.HartensteinV.et al.. (2018). Recurrent circuitry for balancing sleep need and sleep.Neuron97378–389.e4.10.1016/j.neuron.2017.12.016

  • 49

    DonleaJ. M.ThimganM. S.SuzukiY.GottschalkL.ShawP. J. (2011). Inducing sleep by remote control facilitates memory consolidation in Drosophila.Science3321571–1576. 10.1126/science.1202249

  • 50

    DorkenwaldS.MatsliahA.SterlingA. R.SchlegelP.YuS. C.McKellarC. E.et al.. (2024). Neuronal wiring diagram of an adult brain.Nature634124–138. 10.1038/s41586-024-07558-y

  • 51

    DorkenwaldS.McKellarC. E.MacrinaT.KemnitzN.LeeK.LuR.et al.. (2021). FlyWire: Online community for whole-brain connectomics.Nat. Methods19119–128. 10.1038/s41592-021-01330-0

  • 52

    DweckH. K.EbrahimS. A.ThomaM.MohamedA. A.KeeseyI. W.TronaF.et al.. (2015). Pheromones mediating copulation and attraction in Drosophila.Proc. Natl. Acad. Sci. U. S. A.112E2829–E2835. 10.1073/pnas.1504527112

  • 53

    EcksteinN.BatesA. S.ChampionA.DuM.YinY.SchlegelP.et al.. (2024). Neurotransmitter classification from electron microscopy images at synaptic sites in Drosophila melanogaster.Cell1872574–2594.e23. 10.1016/j.cell.2024.03.016

  • 54

    El JundiB.HeinzeS.LenschowC.KurylasA.RohlfingT.HombergU. (2010). The locust standard brain: A 3D standard of the central complex as a platform for neural network analysis.Front. Syst. Neurosci.3:21. 10.3389/neuro.06.021.2009

  • 55

    El JundiB.WarrantE. J.PfeifferK.DackeM. (2018). Neuroarchitecture of the dung beetle central complex.J. Comp. Neurol.5262612–2630. 10.1002/cne.24520

  • 56

    EschbachC.FushikiA.WindingM.AfonsoB.AndradeI. V.CocanougherB. T.et al.. (2021). Circuits for integrating learned and innate valences in the insect brain.Elife10:e62567. 10.7554/eLife.62567

  • 57

    FaucherC.ForstreuterM.HilkerM.de BruyneM. (2006). Behavioral responses of Drosophila to biogenic levels of carbon dioxide depend on life-stage, sex and olfactory context.J. Exp. Biol.209(Pt 14), 2739–2748. 10.1242/jeb.02297

  • 58

    FişekM.WilsonR. I. (2014). Stereotyped connectivity and computations in higher-order olfactory neurons.Nat. Neurosci.17280–288. 10.1038/nn.3613

  • 59

    FlavellS. W.GogollaN.Lovett-BarronM.ZelikowskyM. (2022). The emergence and influence of internal states.Neuron1102545–2570. 10.1016/j.neuron.2022.04.030

  • 60

    Flores-ValleA.SeeligJ. D. (2023). Dynamics of sleep and feeding homeostasis in Drosophila glia and neurons.bioRxiv [Preprint]10.1101/2022.07.07.499175

  • 61

    FosqueB. F.SunY.DanaH.YangC. T.OhyamaT.TadrossM. R.et al.. (2015). Neural circuits. Labeling of active neural circuits in vivo with designed calcium integrators.Science347755–760. 10.1126/science.1260922

  • 62

    FrankD. D.EnjinA.JouandetG. C.ZaharievaE. E.ParaA.StensmyrM. C.et al.. (2017). Early integration of temperature and humidity stimuli in the Drosophila brain.Curr. Biol.272381–2388.e4. 10.1016/j.cub.2017.06.077

  • 63

    FrechterS.BatesA. S.TootoonianS.DolanM. J.MantonJ.JamasbA. R.et al.. (2019). Functional and anatomical specificity in a higher olfactory centre.Elife8:e44590. 10.7554/eLife.44590

  • 64

    FristonK. J.HarrisonL.PennyW. (2003). Dynamic causal modelling.Neuroimage191273–1302. 10.1016/s1053-8119(03)00202-7

  • 65

    FruchtermanT. M. J.ReingoldE. M. (1991). Graph drawing by force-directed placement.Softw. Pract. Exp.211129–1164. 10.1002/spe.4380211102

  • 66

    FultonK. A.ZimmermanD.SamuelA.VogtK.DattaS. R. (2024). Common principles for odour coding across vertebrates and invertebrates.Nat. Rev. Neurosci.25453–472. 10.1038/s41583-024-00822-0

  • 67

    GabbianiF.KrappH. G.KochC.LaurentG. (2002). Multiplicative computation in a visual neuron sensitive to looming.Nature420320–324. 10.1038/nature01190

  • 68

    GallioM.OfstadT. A.MacphersonL. J.WangJ. W.ZukerC. S. (2011). The coding of temperature in the Drosophila brain.Cell144614–624. 10.1016/j.cell.2011.01.028

  • 69

    GansnerE. R.KoutsofiosE.NorthS. C.VoK. P. (1993). A technique for drawing directed graphs.IEEE Trans. Softw. Eng.19214–230. 10.1109/32.221135

  • 70

    GauthamA. K.MinerL. E.FrancoM. N.ThornquistS. C.CrickmoreM. A. (2024). Dopamine biases decisions by limiting temporal integration.Nature632850–857. 10.1038/s41586-024-07749-7

  • 71

    GoldschmidtD.TastekinI.MünchD.ParkJ.-Y.HaberkernH.SerraL.et al.. (2023). A neuronal substrate for translating nutrient state and resource density estimations into foraging decisions.bioRxiv [Preprint]10.1101/2023.07.19.549514

  • 72

    GoodfellowI. J.Pouget-AbadieJ.MirzaM.XuB.Warde-FarleyD.OzairS.et al.. (2014). “Generative Adversarial Nets,” in Proceedings of the 27th International Conference on Neural Information Processing Systems, (Montreal: MIT Press).

  • 73

    GoreF.SchwartzE. C.BrangersB. C.AladiS.StujenskeJ. M.LikhtikE.et al.. (2015). Neural representations of unconditioned stimuli in basolateral amygdala mediate innate and learned responses.Cell162134–145. 10.1016/j.cell.2015.06.027

  • 74

    GoulardR.HeinzeS.WebbB. (2023). Emergent spatial goals in an integrative model of the insect central complex.PLoS Comput Biol.19:e1011480. 10.1371/journal.pcbi.1011480

  • 75

    GouwensN. W.WilsonR. I. (2009). Signal propagation in Drosophila central neurons.J. Neurosci.296239–6249. 10.1523/JNEUROSCI.0764-09.2009

  • 76

    GroschnerL. N.Chan Wah HakL.BogaczR.DasGuptaS.MiesenböckG. (2018). Dendritic integration of sensory evidence in perceptual decision-making.Cell173894–905.e13. 10.1016/j.cell.2018.03.075

  • 77

    GroschnerL. N.MalisJ. G.ZuidingaB.BorstA. (2022). A biophysical account of multiplication by a single neuron.Nature603119–123. 10.1038/s41586-022-04428-3

  • 78

    HabensteinJ.GrübelK.PfeifferK.RösslerW. (2023). 3D atlas of cerebral neuropils with previously unknown demarcations in the honey bee brain.J. Comp. Neurol.5311163–1183. 10.1002/cne.25486

  • 79

    HallemE. A.CarlsonJ. R. (2006). Coding of odors by a receptor repertoire.Cell125143–160. 10.1016/j.cell.2006.01.050

  • 80

    HallemE. A.HoM. G.CarlsonJ. R. (2004). The molecular basis of odor coding in the Drosophila antenna.Cell117965–979. 10.1016/j.cell.2004.05.012

  • 81

    HarrisK. D.Mrsic-FlogelT. D. (2013). Cortical connectivity and sensory coding.Nature50351–58. 10.1038/nature12654

  • 82

    HattoriD.AsoY.SwartzK. J.RubinG. M.AbbottL. F.AxelR. (2017). Representations of novelty and familiarity in a mushroom body compartment.Cell169956–969.e17. 10.1016/j.cell.2017.04.028

  • 83

    HeinzeS.FlormanJ.AsokarajS.El JundiB.ReppertS. M. (2012). Anatomical basis of sun compass navigation II: The neuronal composition of the central complex of the monarch butterfly.J. Comp. Neurol.521267–298. 10.1002/cne.23214

  • 84

    HeisenbergM. (2003). Mushroom body memoir: From maps to models.Nat. Rev. Neurosci.4266–275. 10.1038/nrn1074

  • 85

    HensgenR.EnglandL.HombergU.PfeifferK. (2020). Neuroarchitecture of the central complex in the brain of the honeybee: Neuronal cell types.J. Comp. Neurol.529159–186. 10.1002/cne.24941

  • 86

    HigeT.AsoY.RubinG. M.TurnerG. C. (2015). Plasticity-driven individualization of olfactory coding in mushroom body output neurons.Nature526258–262. 10.1038/nature15396

  • 87

    HoopferE. D.JungY.InagakiH. K.RubinG. M.AndersonD. J. (2015). P1 interneurons promote a persistent internal state that enhances inter-male aggression in Drosophila.Elife4:e11346. 10.7554/eLife.11346

  • 88

    HuH. (2016). Reward and aversion.Annu. Rev. Neurosci.39297–324. 10.1146/annurev-neuro-070815-014106

  • 89

    HuW.PengY.SunJ.ZhangF.ZhangX.WangL.et al.. (2018). Fan-Shaped body neurons in the Drosophila brain regulate both innate and conditioned nociceptive avoidance.Cell Rep.241573–1584. 10.1016/j.celrep.2018.07.028

  • 90

    HuY. (2006). Efficient, high-quality force-directed graph drawing.Mathematica J.1037–71.

  • 91

    HuangC.LuoJ.WooS. J.RoitmanL. A.LiJ.PieriboneV. A.et al.. (2024). Dopamine-mediated interactions between short- and long-term memory dynamics.Nature6341141–1149. 10.1038/s41586-024-07819-w

  • 92

    HubelD. H.WieselT. N. (1962). Receptive fields, binocular interaction and functional architecture in the cat’s visual cortex.J. Physiol.160106–154. 10.1113/jphysiol.1962.sp006837

  • 93

    HulseB. K.JayaramanV. (2020). Mechanisms underlying the neural computation of head direction.Annu. Rev. Neurosci.4331–54. 10.1146/annurev-neuro-072116-031516

  • 94

    HulseB. K.HaberkernH.FranconvilleR.Turner-EvansD.TakemuraS. Y.WolffT.et al.. (2021). A connectome of the Drosophila central complex reveals network motifs suitable for flexible navigation and context-dependent action selection.Elife10:e66039. 10.7554/eLife.66039

  • 95

    IshidaI. G.SethiS.MohrenT. L.HaraguchiM. K.AbbottL. F.MaimonG. (2026). Neuronal calcium spikes enable vector inversion in the Drosophila brain.Cell189748–764.e25. 10.1016/j.cell.2025.11.040

  • 96

    IsosakaT.MatsuoT.YamaguchiT.FunabikiK.NakanishiS.KobayakawaR.et al.. (2015). Htr2a-Expressing cells in the central amygdala control the hierarchy between innate and learned fear.Cell1631153–1164. 10.1016/j.cell.2015.10.047

  • 97

    ItoK.ShinomiyaK.ItoM.ArmstrongJ. D.BoyanG.HartensteinV.et al.. (2014). A systematic nomenclature for the insect brain.Neuron81755–765. 10.1016/j.neuron.2013.12.017

  • 98

    JanssensJ.AibarS.TaskiranI. I.IsmailJ. N.GomezA. E.AugheyG.et al.. (2022). Decoding gene regulation in the fly brain.Nature601630–636. 10.1038/s41586-021-04262-z

  • 99

    JeanneJ. M.WilsonR. I. (2015). Convergence, divergence, and reconvergence in a feedforward network improves neural speed and accuracy.Neuron881014–1026. 10.1016/j.neuron.2015.10.018

  • 100

    JefferisG. S.PotterC. J.ChanA. M.MarinE. C.RohlfingT.MaurerC. R.et al.. (2007). Comprehensive maps of Drosophila higher olfactory centers: Spatially segregated fruit and pheromone representation.Cell1281187–1203. 10.1016/j.cell.2007.01.040

  • 101

    JonesW. D.CayirliogluP.KadowI. G.VosshallL. B. (2007). Two chemosensory receptors together mediate carbon dioxide detection in Drosophila.Nature44586–90. 10.1038/nature05466

  • 102

    KaiserA.HensgenR.TschirnerK.BeetzE.WüstenbergH.PfaffM.et al.. (2022). A three-dimensional atlas of the honeybee central complex, associated neuropils and peptidergic layers of the central body.J. Comp. Neurol.5302416–2438. 10.1002/cne.25339

  • 103

    KelemanK.VrontouE.KrüttnerS.YuJ. Y.Kurtovic-KozaricA.DicksonB. J. (2012). Dopamine neurons modulate pheromone responses in Drosophila courtship learning.Nature489145–149. 10.1038/nature11345

  • 104

    KlapoetkeN. C.NernA.PeekM. Y.RogersE. M.BreadsP.RubinG. M.et al.. (2017). Ultra-selective looming detection from radial motion opponency.Nature551237–241. 10.1038/nature24626

  • 105

    KnudsenE. B.WallisJ. D. (2022). Taking stock of value in the orbitofrontal cortex.Nat. Rev. Neurosci.23428–438. 10.1038/s41583-022-00589-2

  • 106

    KohlJ.OstrovskyA. D.FrechterS.JefferisG. S. (2013). A bidirectional circuit switch reroutes pheromone signals in male and female brains.Cell1551610–1623. 10.1016/j.cell.2013.11.025

  • 107

    KondoS.TakahashiT.YamagataN.ImanishiY.KatowH.HiramatsuS.et al.. (2020). Neurochemical organization of the drosophila brain visualized by endogenously tagged neurotransmitter receptors.Cell Rep.30284–297.e5. 10.1016/j.celrep.2019.12.018

  • 108

    KramerM. A. (1991). Nonlinear principal component analysis using autoassociative neural networks.Aiche J.37233–243. 10.1002/aic.690370209

  • 109

    KurtovicA.WidmerA.DicksonB. J. (2007). A single class of olfactory neurons mediates behavioural responses to a Drosophila sex pheromone.Nature446542–546. 10.1038/nature05672

  • 110

    LecunY.Soulie FogelmanF. (1987). Modeles connexionnistes de l’apprentissage.Intell. Special Issue Apprentissage Mach.2114–143. 10.3406/intel.1987.1804

  • 111

    LeiZ.HendersonK.KelemanK. (2022). A neural circuit linking learning and sleep in Drosophila long-term memory.Nat. Commun.13:609. 10.1038/s41467-022-28256-1

  • 112

    LiF.LindseyJ. W.MarinE. C.OttoN.DreherM.DempseyG.et al.. (2020). The connectome of the adult Drosophila mushroom body provides insights into function.Elife9:e62576. 10.7554/eLife.62576

  • 113

    LiH.JanssensJ.De WaegeneerM.KolluruS. S.DavieK.GardeuxV.et al.. (2022). Fly cell atlas: A single-nucleus transcriptomic atlas of the adult fruit fly.Science375:eabk2432. 10.1126/science.abk2432

  • 114

    LiH.LiZ.YuanX.TianY.YeW.ZengP.et al.. (2024). Dynamic encoding of temperature in the central circadian circuit coordinates physiological activities.Nat. Commun.15:2834. 10.1038/s41467-024-47278-5

  • 115

    LiW.WangZ.SyedS.LyuC.LincolnS.O’NeilJ.et al.. (2021). Chronic social isolation signals starvation and reduces sleep in Drosophila.Nature597239–244. 10.1038/s41586-021-03837-0

  • 116

    LinA. C.BygraveA. M.de CalignonA.LeeT.MiesenböckG. (2014). Sparse, decorrelated odor coding in the mushroom body enhances learned odor discrimination.Nat. Neurosci.17559–568. 10.1038/nn.3660

  • 117

    LinH. H.CaoD. S.SethiS.ZengZ.ChinJ. S. R.ChakrabortyT. S.et al.. (2016). Hormonal modulation of pheromone detection enhances male courtship success.Neuron901272–1285. 10.1016/j.neuron.2016.05.004

  • 118

    LinH. H.ChuL. A.FuT. F.DicksonB. J.ChiangA. S. (2013). Parallel neural pathways mediate CO2 avoidance responses in Drosophila.Science3401338–1341. 10.1126/science.1236693

  • 119

    LinH. H.KuangM. C.HossainI.XuanY.BeebeL.ShepherdA. K.et al.. (2022). A nutrient-specific gut hormone arbitrates between courtship and feeding.Nature602632–638. 10.1038/s41586-022-04408-7

  • 120

    LinS. (2023). Internal-state-dependent modulation of olfactory responses: A tale of dopamine neurons in the adult Drosophila mushroom body.Curr. Opin. Insect Sci.59:101104. 10.1016/j.cois.2023.101104

  • 121

    LiuT. X.DavoudianP. A.LizbinskiK. M.JeanneJ. M. (2022). Connectomic features underlying diverse synaptic connection strengths and subcellular computation.Curr. Biol.32559–569.e5. 10.1016/j.cub.2021.11.056

  • 122

    LiuW. W.WilsonR. I. (2013). Glutamate is an inhibitory neurotransmitter in the Drosophila olfactory system.Proc. Natl. Acad. Sci. U. S. A.11010294–10299. 10.1073/pnas.1220560110

  • 123

    LiuW.LiangX.GongJ.YangZ.ZhangY. H.ZhangJ. X.et al.. (2011). Social regulation of aggression by pheromonal activation of Or65a olfactory neurons in Drosophila.Nat. Neurosci.14896–902. 10.1038/nn.2836

  • 124

    LogothetisN. K.PaulsJ.BülthoffH. H.PoggioT. (1994). View-dependent object recognition by monkeys.Curr. Biol.4401–414. 10.1016/s0960-9822(00)00089-0

  • 125

    LuoL. (2021). Architectures of neuronal circuits.Science373:eabg7285. 10.1126/science.abg7285

  • 126

    MaW.TrusinaA.El-SamadH.LimW. A.TangC. (2009). Defining network topologies that can achieve biochemical adaptation.Cell138760–773. 10.1016/j.cell.2009.06.013

  • 127

    MansourianS.StensmyrM. C. (2015). The chemical ecology of the fly.Curr. Opin. Neurobiol.3495–102. 10.1016/j.conb.2015.02.006

  • 128

    MarinE. C.BüldL.TheissM.SarkissianT.RobertsR. J. V.TurnbullR.et al.. (2020). Connectomics analysis reveals first-, second-, and third-order thermosensory and hygrosensory neurons in the adult Drosophila brain.Curr. Biol.303167–3182.e4. 10.1016/j.cub.2020.06.028

  • 129

    MatelskyJ. K.ReillyE. P.JohnsonE. C.StisoJ.BassettD. S.WesterB. A.et al.. (2021). DotMotif: An open-source tool for connectome subgraph isomorphism search and graph queries.Sci. Rep.11:13045. 10.1038/s41598-021-91025-5

  • 130

    MathesonA. M. M.LanzA. J.MedinaA. M.LicataA. M.CurrierT. A.SyedM. H.et al.. (2022). A neural circuit for wind-guided olfactory navigation.Nat. Commun.13:4613. 10.1038/s41467-022-32247-7

  • 131

    MathewD.MartelliC.Kelley-SwiftE.BrusalisC.GershowM.SamuelA. D.et al.. (2013). Functional diversity among sensory receptors in a Drosophila olfactory circuit.Proc. Natl. Acad. Sci. U. S. A.110E2134–E2143. 10.1073/pnas.1306976110

  • 132

    MatsliahA.YuS. C.KrukK.BlandD.BurkeA. T.GagerJ.et al.. (2024). Neuronal parts list and wiring diagram for a visual system.Nature634166–180. 10.1038/s41586-024-07981-1

  • 133

    MaussA. S.PankovaK.ArenzA.NernA.RubinG. M.BorstA. (2015). Neural circuit to integrate opposing motions in the visual field.Cell162351–362. 10.1016/j.cell.2015.06.035

  • 134

    McInnesL.HealyJ. (2018). UMAP: Uniform manifold approximation and projection for dimension reduction.ArXiv [Preprint]10.48550/arXiv.1802.03426

  • 135

    McInnesL.HealyJ.AstelsS. (2017). hdbscan: Hierarchical density based clustering.J. Open Source Softw.2:205. 10.21105/joss.00205

  • 136

    MiloR.Shen-OrrS.ItzkovitzS.KashtanN.ChklovskiiD.AlonU. (2002). Network motifs: Simple building blocks of complex networks.Science298824–827. 10.1126/science.298.5594.824

  • 137

    ModiM. N.ShuaiY.TurnerG. C. (2020). The Drosophila mushroom body: From architecture to algorithm in a learning circuit.Annu. Rev. Neurosci.43465–484. 10.1146/annurev-neuro-080317-0621333

  • 138

    MohamedA. A. M.RetzkeT.Das ChakrabortyS.FabianB.HanssonB. S.KnadenM.et al.. (2019). Odor mixtures of opposing valence unveil inter-glomerular crosstalk in the Drosophila antennal lobe.Nat. Commun.10:1201. 10.1038/s41467-019-09069-1

  • 139

    MoonS. S.Ripoll-SánchezL.VértesP.SchaferW. R.AhnertS. E. (2026). An entropic measure of diverse specialization highlights multifunctional neurons in annotated connectomes.Netw. Neurosci.10204–220. 10.1162/NETN.a.533

  • 140

    MünchD.GoldschmidtD.RibeiroC. (2022). The neuronal logic of how internal states control food choice.Nature607747–755. 10.1038/s41586-022-04909-5

  • 141

    Mussells PiresP.ZhangL.ParacheV.AbbottL. F.MaimonG. (2024). Converting an allocentric goal into an egocentric steering signal.Nature626808–818. 10.1038/s41586-023-07006-3

  • 142

    NamikiS.DickinsonM. H.WongA. M.KorffW.CardG. M. (2018). The functional organization of descending sensory-motor pathways in Drosophila.Elife7:e34272. 10.7554/eLife.34272

  • 143

    NingJ.LiZ.ZhangX.WangJ.ChenD.LiuQ.et al.. (2022). Behavioral signatures of structured feature detection during courtship in Drosophila.Curr. Biol.321211–1231.e7. 10.1016/j.cub.2022.01.024

  • 144

    PeñaJ. L.KonishiM. (2001). Auditory spatial receptive fields created by multiplication.Science292249–252. 10.1126/science.1059201

  • 145

    Phillips-PortilloJ.StrausfeldN. J. (2012). Representation of the brain’s superior protocerebrum of the flesh fly, Neobellieria bullata, in the central body.J. Comp. Neurol.5203070–3087. 10.1002/cne.23094

  • 146

    PlaçaisP. Y.TrannoyS.FriedrichA. B.TanimotoH.PreatT. (2013). Two pairs of mushroom body efferent neurons are required for appetitive long-term memory retrieval in Drosophila.Cell Rep.5769–780. 10.1016/j.celrep.2013.09.032

  • 147

    Prieto-GodinoL. L.RytzR.CruchetS.BargetonB.AbuinL.SilberingA. F.et al.. (2017). Evolution of acid-sensing olfactory circuits in Drosophilids.Neuron93661–676.e6. 10.1016/j.neuron.2016.12.024

  • 148

    ReinhardN.FukudaA.ManoliG.DerksenE.SaitoA.MöllerG.et al.. (2024). Synaptic connectome of the Drosophila circadian clock.Nat. Commun.15:10392. 10.1038/s41467-024-54694-0

  • 149

    RibeiroI. M. A.DrewsM.BahlA.MachacekC.BorstA.DicksonB. J. (2018). Visual projection neurons mediating directed courtship in Drosophila.Cell174607–621.e18. 10.1016/j.cell.2018.06.020

  • 150

    RiesenhuberM.PoggioT. (2000). Models of object recognition.Nat. Neurosci.3(Suppl.), 1199–1204. 10.1038/81479

  • 151

    RonderosD. S.LinC. C.PotterC. J.SmithD. P. (2014). Farnesol-detecting olfactory neurons in Drosophila.J. Neurosci.343959–3968. 10.1523/JNEUROSCI.4582-13.2014

  • 152

    SanfilippoP.KimA. J.BhukelA.YooJ.MirshahidiP. S.PandeyV.et al.. (2024). Mapping of multiple neurotransmitter receptor subtypes and distinct protein complexes to the connectome.Neuron112942–958.e13. 10.1016/j.neuron.2023.12.014

  • 153

    SareenP. F.McCurdyL. Y.NitabachM. N. (2021). A neuronal ensemble encoding adaptive choice during sensory conflict in Drosophila.Nat. Commun.12:4131. 10.1038/s41467-021-24423-y

  • 154

    SayinS.De BackerJ. F.SijuK. P.WosniackM. E.LewisL. P.FrischL. M.et al.. (2019). A neural circuit arbitrates between persistence and withdrawal in hungry Drosophila.Neuron104544–558.e6. 10.1016/j.neuron.2019.07.028

  • 155

    SchefferL. K.XuC. S.JanuszewskiM.LuZ.TakemuraS.-Y.HayworthK. J.et al.. (2020). A connectome and analysis of the adult Drosophila central brain.ELife9:e57443. 10.7554/eLife.57443

  • 156

    SchlegelP.BatesA. S.StürnerT.JagannathanS. R.DrummondN.HsuJ.et al.. (2021). Information flow, cell types and stereotypy in a full olfactory connectome.Elife10:e66018. 10.7554/eLife.66018

  • 157

    SchlegelP.YinY.BatesA. S.DorkenwaldS.EichlerK.BrooksP.et al.. (2024). Whole-brain annotation and multi-connectome cell typing of Drosophila.Nature634139–152. 10.1038/s41586-024-07686-5

  • 158

    SchliefM. L.WilsonR. I. (2007). Olfactory processing and behavior downstream from highly selective receptor neurons.Nat. Neurosci.10623–630. 10.1038/nn1881

  • 159

    SchnaitmannC.HaikalaV.AbrahamE.OberhauserV.ThestrupT.GriesbeckO.et al.. (2018). Color processing in the early visual system of Drosophila.Cell172318–330.e18. 10.1016/j.cell.2017.12.018

  • 160

    SeeligJ. D.JayaramanV. (2013). Feature detection and orientation tuning in the Drosophila central complex.Nature503262–266. 10.1038/nature12601

  • 161

    SeeligJ. D.JayaramanV. (2015). Neural dynamics for landmark orientation and angular path integration.Nature521186–191. 10.1038/nature14446

  • 162

    SéjournéJ.PlaçaisP. Y.AsoY.SiwanowiczI.TrannoyS.ThomaV.et al.. (2011). Mushroom body efferent neurons responsible for aversive olfactory memory retrieval in Drosophila.Nat. Neurosci.14903–910. 10.1038/nn.2846

  • 163

    SemmelhackJ. L.WangJ. W. (2009). Select Drosophila glomeruli mediate innate olfactory attraction and aversion.Nature459218–223. 10.1038/nature07983

  • 164

    SethiS.LinH. H.ShepherdA. K.VolkanP. C.SuC. Y.WangJ. W. (2019). Social context enhances hormonal modulation of pheromone detection in Drosophila.Curr. Biol.293887–3898.e4. 10.1016/j.cub.2019.09.045

  • 165

    ShannonC. E. (1948). A mathematical theory of communication.Bell Syst. Tech. J.27379–423. 10.1002/j.1538-7305.1948.tb01338.x

  • 166

    ShiozakiH. M.OhtaK.KazamaH. (2020). A multi-regional network encoding heading and steering maneuvers in Drosophila.Neuron106126–141.e5. 10.1016/j.neuron.2020.01.009

  • 167

    SilberingA. F.RytzR.GrosjeanY.AbuinL.RamdyaP.JefferisG. S.et al.. (2011). Complementary function and integrated wiring of the evolutionarily distinct Drosophila olfactory subsystems.J. Neurosci.3113357–13375. 10.1523/JNEUROSCI.2360-11.2011

  • 168

    SongB. M.LeeC. H. (2018). Toward a mechanistic understanding of color vision in insects.Front. Neural Circuits12:16. 10.3389/fncir.2018.00016

  • 169

    StensmyrM. C.DweckH. K.FarhanA.IbbaI.StrutzA.MukundaL.et al.. (2012). A conserved dedicated olfactory circuit for detecting harmful microbes in Drosophila.Cell1511345–1357. 10.1016/j.cell.2012.09.046

  • 170

    SuhG. S.WongA. M.HergardenA. C.WangJ. W.SimonA. F.BenzerS.et al.. (2004). A single population of olfactory sensory neurons mediates an innate avoidance behaviour in Drosophila.Nature431854–859. 10.1038/nature02980

  • 171

    SunX.YueS.ManganM. (2020). A decentralised neural model explaining optimal integration of navigational strategies in insects.Elife9:e54026. 10.7554/eLife.54026

  • 172

    SunY.NernA.FranconvilleR.DanaH.SchreiterE. R.LoogerL. L.et al.. (2017). Neural signatures of dynamic stimulus selection in Drosophila.Nat. Neurosci.201104–1113. 10.1038/nn.4581

  • 173

    SuverM. P.MathesonA. M. M.SarkarS.DamiataM.SchoppikD.NagelK. I. (2019). Encoding of wind direction by central neurons in Drosophila.Neuron102828–842.e7. 10.1016/j.neuron.2019.03.012

  • 174

    TaiszI.DonàE.MünchD.BaileyS. N.MorrisB. J.MeechanK. I.et al.. (2023). Generating parallel representations of position and identity in the olfactory system.Cell1862556–2573.e22. 10.1016/j.cell.2023.04.038

  • 175

    TanakaN. K.EndoK.ItoK. (2012). Organization of antennal lobe-associated neurons in adult Drosophila melanogaster brain.J. Comp. Neurol.5204067–4130. 10.1002/cne.23142

  • 176

    TsubouchiA.YanoT.YokoyamaT. K.MurtinC.OtsunaH.ItoK. (2017). Topological and modality-specific representation of somatosensory information in the fly brain.Science358615–623. 10.1126/science.aan4428

  • 177

    TyeK. M. (2018). Neural circuit motifs in valence processing.Neuron100436–452. 10.1016/j.neuron.2018.10.001

  • 178

    TyeK. M.MillerE. K.TaschbachF. H.BennaM. K.RigottiM.FusiS. (2024). Mixed selectivity: Cellular computations for complexity.Neuron1122289–2303. 10.1016/j.neuron.2024.04.017

  • 179

    van BreugelF.HudaA.DickinsonM. H. (2018). Distinct activity-gated pathways mediate attraction and aversion to CO2 in Drosophila.Nature564420–424. 10.1038/s41586-018-0732-8

  • 180

    von HadelnJ.HensgenR.BockhorstT.RosnerR.HeidaschR.PegelU.et al.. (2019). Neuroarchitecture of the central complex of the desert locust: Tangential neurons.J. Comp. Neurol.528906–934. 10.1002/cne.24796

  • 181

    VyasS.GolubM. D.SussilloD.ShenoyK. V. (2020). Computation through neural population dynamics.Annu. Rev. Neurosci.43249–275. 10.1146/annurev-neuro-092619-094115

  • 182

    WangF.WangK.ForknallN.PatrickC.YangT.ParekhR.et al.. (2020). Neural circuitry linking mating and egg laying in Drosophila females.Nature579101–105. 10.1038/s41586-020-2055-9

  • 183

    WangL.AndersonD. J. (2010). Identification of an aggression-promoting pheromone and its receptor neurons in Drosophila.Nature463227–231. 10.1038/nature08678

  • 184

    WangL.Gillis-SmithS.PengY.ZhangJ.ChenX.SalzmanC. D.et al.. (2018). The coding of valence and identity in the mammalian taste system.Nature558127–131. 10.1038/s41586-018-0165-4

  • 185

    WangP. Y.BoboilaC.ChinM.Higashi-HowardA.ShamashP.WuZ.et al.. (2020). Transient and persistent representations of odor value in prefrontal cortex.Neuron108209–224.e6. 10.1016/j.neuron.2020.07.033

  • 186

    WardJ. H. (1963). Hierarchical grouping to optimize an objective function.J. Am. Statist. Assoc.58236–244. 10.1080/01621459.1963.10500845

  • 187

    Watabe-UchidaM.EshelN.UchidaN. (2017). Neural circuitry of reward prediction error.Annu. Rev. Neurosci.40373–394. 10.1146/annurev-neuro-072116-031109

  • 188

    WesteindeE. A.KelloggE.DawsonP. M.LuJ.HamburgL.MidlerB.et al.. (2024). Transforming a head direction signal into a goal-oriented steering command.Nature626819–826. 10.1038/s41586-024-07039-2

  • 189

    WilsonR. I. (2013). Early olfactory processing in Drosophila: Mechanisms and principles.Annu. Rev. Neurosci.36217–241. 10.1146/annurev-neuro-062111-150533

  • 190

    WilsonR. I. (2023). Neural networks for navigation: From connections to computations.Annu. Rev. Neurosci.46403–423. 10.1146/annurev-neuro-110920-032645

  • 191

    WindingM.PedigoB. D.BarnesC. L.PatsolicH. G.ParkY.KazimiersT.et al.. (2023). The connectome of an insect brain.Science379:eadd9330. 10.1126/science.add9330

  • 192

    WuM.NernA.WilliamsonW. R.MorimotoM. M.ReiserM. B.CardG. M.et al.. (2016). Visual projection neurons in the Drosophila lobula link feature detection to distinct behavioral programs.Elife5:e21022. 10.7554/eLife.21022

  • 193

    YangT.YuK.ZhangX.XiaoX.ChenX.FuY.et al.. (2023). Plastic and stimulus-specific coding of salient events in the central amygdala.Nature616510–519. 10.1038/s41586-023-05910-2

  • 194

    ZhengZ.LauritzenJ. S.PerlmanE.RobinsonC. G.NicholsM.MilkieD.et al.. (2018). A Complete Electron Microscopy Volume of the Brain of Adult Drosophila melanogaster.Cell174730–743.e22. 10.1016/j.cell.2018.06.019

  • 195

    ZolinA.CohnR.PangR.SilicianoA. F.FairhallA. L.RutaV. (2021). Context-dependent representations of movement in Drosophila dopaminergic reinforcement pathways.Nat. Neurosci.241555–1566. 10.1038/s41593-021-00929-y

Summary

Keywords

connectomics, convergence-divergence circuit, dendritic computation, multimodal integration, superior protocerebrum, valence

Citation

Wang W, Yang Y, Liu Q, Gao Y, Lv Q, Zhang K, Ning J and Sun Y (2026) Convergence-divergence circuits for multimodal integration of innate and learned opponent valences. Front. Syst. Neurosci. 20:1822122. doi: 10.3389/fnsys.2026.1822122

Received

03 March 2026

Revised

06 April 2026

Accepted

13 April 2026

Published

07 May 2026

Volume

20 - 2026

Edited by

Yuri B. Saalmann, University of Wisconsin-Madison, United States

Reviewed by

Anna Phan, University of Alberta, Canada

Ayaka Kato, Icahn School of Medicine at Mount Sinai, United States

Updates

Copyright

*Correspondence: Yi Sun,

Disclaimer

All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.

Outline

Figures

Cite article

Copy to clipboard


Export citation file


Share article

Article metrics