Measuring Robustness and Efficiency in a Connectome-Constrained Fly Visual System Model: Linking an Adversarial and a Perceptual Illusion
Alexandre Garcia-Duran, Alejandro Rodriguez-Garcia, Manuel Molano-Mazon, Alexandre Hyafil, Srikanth Ramaswamy, Janne K Lappalainen
NeurIPS 2026
TL;DR. A connectome-constrained fly visual model evaluated on collision detection suggests biological wiring contributes efficiency over robustness, with adversarial attacks and reverse-phi illusions sharing a common motion-detection vulnerability.
Abstract. Biological visual systems compute reliably under tight metabolic and wiring constraints, whereas artificial vision systems consume far more energy and can be sensitive to adversarial perturbations. Whether networks with brain-like wiring are more robust at lower computational cost is unclear. We address this by benchmarking a task-optimized, continuous-time recurrent neural network of the fly visual system constrained by its synaptic connectome (FlyNet) against artificial neural networks. We compare it against CNNs, RAFT, and continuous-time recurrent neural networks without detailed connectome constraints (sCTRNN, CTRNN) on a looming-based collision-detection task within a differentiable 3D rendering pipeline. FlyNet is adversarially vulnerable but, relative to its compute, more robust to common video corruptions than RAFT, while using up to five orders of magnitude fewer FLOPs. The CTRNNs remain more robust than FlyNet across almost all tested perturbations, suggesting that connectome constraints benefit efficiency, through their low edge count, over robustness. Recurrence improves robustness to white-box attacks in RAFT and temporal context improves robustness to common corruptions. FlyNet's position and velocity representations degrade under adversarial textures but recover under counterfactual textures that restore correct classification while staying equally far from training, ruling out unfamiliar textures as the cause of failure. The reverse-phi illusion similarly disrupts these representations and inverts the same low-level motion statistic as the adversarial textures. Optimizing this input statistic alone, without access to the network, suffices to induce classification failure, attributing both perturbations to the same circuit vulnerability. Connectome-constrained models can thus surface adversarial failure mechanisms as testable hypotheses about biological perceptual vulnerabilities.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (spotlight) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:49 UTC.
- Decision
- Accept (spotlight)
Read decision
Meta-review
This paper evaluates the robustness and efficiency of FlyNet, a connectome-constrained model of the fly visual system, on a synthetic looming collision-detection task. Its differentiable 3D rendering pipeline enables physically coherent adversarial optimization in object-texture space. The results show that FlyNet is not maximally robust—the unconstrained CTRNN performs better in absolute terms—but offers favorable robustness per FLOP. Reverse-phi and counterfactual-restoration analyses further suggest that adversarial failures arise through disrupted motion representations rather than texture statistics alone. The paper is clear, technically substantial, and addresses a timely question at the intersection of neuroscience and efficient machine learning. ZubW and MV7o particularly highlight the rendering pipeline and mechanistic analyses as valuable contributions with potential relevance to future in-vivo experiments. The main limitation, emphasized by all reviewers, is attribution: FlyNet and the CTRNN differ in connectivity density and parameter count, while other baselines also differ in input resolution, temporal context, and decoders. Sparsity-matched or degree-preserving randomized controls would therefore strengthen claims about connectome constraints. The evaluation is also limited to one synthetic binary task, as g5tf notes. Despite these limitations, the novel experimental platform, careful robustness characterization, and biologically grounded failure analysis constitute a meaningful contribution. I recommend acceptance, with causal efficiency claims appropriately qualified.
Final justification
I appreciate the clarifications and comments from the authors. I remain highly enthusiastic about this work, which can lead to novel models of brain function and also to novel AI architectures.
Read meta-review
Meta-review
This paper evaluates the robustness and efficiency of FlyNet, a connectome-constrained model of the fly visual system, on a synthetic looming collision-detection task. Its differentiable 3D rendering pipeline enables physically coherent adversarial optimization in object-texture space. The results show that FlyNet is not maximally robust—the unconstrained CTRNN performs better in absolute terms—but offers favorable robustness per FLOP. Reverse-phi and counterfactual-restoration analyses further suggest that adversarial failures arise through disrupted motion representations rather than texture statistics alone. The paper is clear, technically substantial, and addresses a timely question at the intersection of neuroscience and efficient machine learning. ZubW and MV7o particularly highlight the rendering pipeline and mechanistic analyses as valuable contributions with potential relevance to future in-vivo experiments. The main limitation, emphasized by all reviewers, is attribution: FlyNet and the CTRNN differ in connectivity density and parameter count, while other baselines also differ in input resolution, temporal context, and decoders. Sparsity-matched or degree-preserving randomized controls would therefore strengthen claims about connectome constraints. The evaluation is also limited to one synthetic binary task, as g5tf notes. Despite these limitations, the novel experimental platform, careful robustness characterization, and biologically grounded failure analysis constitute a meaningful contribution. I recommend acceptance, with causal efficiency claims appropriately qualified.
Final justification
I appreciate the clarifications and comments from the authors. I remain highly enthusiastic about this work, which can lead to novel models of brain function and also to novel AI architectures.
1 comment
- Rating
- 5/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 4/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
In this work the authors design a behaviorally grounded collision detection task to evaluate robustness in optic flow models as well as connectome constrained networks. The authors implement their collision detection task in a 3D rendering pipeline and evaluate the different models under adversarial attacks and common video perturbations.
Strengths and weaknesses
Strengths
The paper is well organized and writing is clear. Specifically, the explanation of different network types in the main manuscript can allow the readers to compare different architectures and their contributions better. Also, the use of differentiable 3D rendering pipeline is more realistic than many standard pixel-space attack paradigms. In addition, investigations into the role of things such as recurrence in terms of how it contributes to robustness and efficiency is very valuable, and has been largely missing in the space.
Weaknesses
I think the general message of ‘connectome constraints contributing to efficiency’ is moderately convincing but using only comparison with CTRNN seems a bit limited. Because CTRNN differs from FlyNet not only in connectome constraints but also in things like connectivity density or parameter count (e.g. 734 vs 11593), it is hard to determine or pinpoint what aspects of ‘connectome constraints’ contribute to the observed results. It would be helpful to compare against controls such as degree matched random networks (or sparsity matched architectures) that preserve connectivity statistics while removing biological structure.
Questions
- I noticed that the plot in Fig2e did not have a title like Fig2a&c, is that intentional?
- Have the authors tested these models under different tasks such as object tracking? And if so, how did the connectome constraint contribute to the results? (e.g. was the advantage mainly the efficiency?)
Limitations
yes
Formatting concerns
n/a
2 comments
Rebuttal to Reviewer MV7o
We thank R-MV7o for the positive assessment, for describing the paper as clear, and especially for highlighting the importance of realistic attacks. We appreciate the opportunity to improve our manuscript based on your observations. Please let us know if there is further clarification we can provide; we address your questions (Q) and concerns (W) below:
W1[CTRNN density/parameter count confounds]: We agree that this comparison does not isolate connectome structure alone. We plan to address this as stated in the next paragraph. For context, to clarify the numbers: While CTRNN is in the same model class as FlyNet, and FlyNet and CTRNN have the same number of neurons, continuous-time dynamics, input representation, and readout dimensionality, and number of activations, CTRNN adds 6M connections, totaling 7.51M connections, and has 11,593 pretrained optical-flow parameters, compared with 1.51M synapses and 734 pretrained parameters in FlyNet. While their parameters are frozen during hit/miss decoder training and robustness evaluation, they define representations learned during Sintel training.
We agree that rewiring the FlyNet model to match the exact number of connections is a feasible additional control to avoid conflation with confounding numbers of connections and better isolate the effect of the connectome structure. We will address this with additional model analysis in the camera-ready version, to more appropriately characterize claims about connectome constraints. To do so, we plan to carefully prune the CTRNN connectivity matrix (7.51M edges), retaining up to 1.51M connections from FlyNet, retrain on the collision detection task, and evaluate robustness. This control helps more appropriately characterize claims about connectome constraints and isolate the effect of the connectome on robustness by using connection counts that are more similar to those in FlyNet.
Q1[Fig. 2]: This was not intentional. We thank the reviewer for flagging it. For the camera-ready version, we'll standardize titles across all Fig. 2 panels and place the title “Counterfactual restoration” in Fig. 2e.
Q2[test under other tasks]: We acknowledge that the current evaluation is limited to a single behavioral task and therefore does not speak to general task performance or robustness across different tasks; instead, it serves as a pragmatic testbed for a controlled robustness analysis focused on architectural properties and the comparison of illusory and adversarial perturbations, as we further explain in the following.
As also noted by R-ZubW, the looming task is well-motivated: it represents a canonical behavior evoked by a well-studied computation that is ideal for a controlled analysis. For instance, looming stimuli reliably elicit escape behavior (Card and Dickinson, 2008; Muijres et al., 2014). At the circuit level, looming-relevant variables are integrated along the motion pathway, from T4/T5 direction-selective signals to the LPLC2/LC4-giant-fiber circuit, while the same early motion computations are known to underlie reverse-phi susceptibility (Clark et al., 2011; Ache et al., 2019). Our rationale was therefore to use a well-established neural and behavioral paradigm in which adversarial failures could be directly linked to a known biological illusion, thereby providing a common testbed for both artificial and biological vision systems.
To address the question of FlyNet's generalization to other tasks, it is important to note that FlyNet (and the other evaluated backbones) was trained for optical flow estimation rather than directly for binary hit/miss classification (see Methods). The backbones remain frozen, and hit/miss is obtained only through a downstream decoder trained and evaluated on their motion representations. This ensures the FlyNet model is faithful to the originally published model (Lappalainen et al. 2024) and implies adversarial failures must arise from disruption of the biologically realistic, internal motion code.
We actually trained continuous-position and velocity decoders, enabling an object-state estimation task beyond binary looming detection. Although this is not equivalent to full object tracking in natural scenes, it tests whether the representation preserves the spatial and dynamical variables required for tracking, and shows that adversarial and reverse-phi perturbations disrupt these variables alongside hit/miss classification.
We will clarify these distinctions and acknowledge object tracking in naturalistic scenes as an important direction for future work.
References
- Card and Dickinson, 2008: https://doi.org/10.1016/j.cub.2008.07.094
- Muijres et al., 2014: https://doi.org/10.1126/science.1248955
- Clark et al., 2011: https://doi.org/10.1016/j.neuron.2011.05.023
- Ache et al., 2019: https://doi.org/10.1016/j.cub.2019.01.079
- Lappalainen et al. 2024: https://doi.org/10.1038/s41586-024-07939-3
Thank you again for your valuable feedback. We hope our rebuttal has successfully clarified the remaining questions and concerns. We remain fully available for any further discussion until the review window closes.
- Rating
- 2/6
- Confidence
- 5/5
- Quality
- 2/4
- Clarity
- 3/4
- Significance
- 1/4
- Originality
- 2/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This manuscript explores the robustness to adversarial noise as well as the compute efficiency of a publicly-released connectome-constrained model of the fruit fly visual system versus other artificial models inspired by machine learning. The architectural components tested are recurrence (by controlling the number of recurrent passes in RAFT models), global integration (CNN models with and without global integration) and connectome constraints (FlyNet with connectome constraint and CTRNN without). These models are tested on a task of determining whether an incoming object will "hit" or "miss" the fly (collision task). The key finding is that while the connectome-constrained model is not the most robust (a continuous time RNN with more synaptic connections is), FlyNet is robust and efficient versus most other models. The adversarial noise is found not to be related to the texture of the incoming object but rather dynamic changes (such as a change in contrast, similar to reverse phi illusion). The conclusions from this work are that the connectome does not support robustness but rather efficiency (fewer flops).
Strengths and weaknesses
Strengths: The paper is well written, straightforward, and clearly a lot of work has gone into model training and analyses. The work tests a wide variety of adversarial attacks ranging from simple video corruptions (flicker, pixel noise) and optimized adversarial attacks made possible by the end-to-end differentiable modeling pipeline.
Weaknesses: My main criticism is that this work appears too specialized for the NeurIPS audience. It does not provide new insights into neural processing (to excite computational neuroscientists) and little excitement for machine learning researchers (simple task, standard architectures). After reading the intro and background, I was not convinced that the fruit fly community is interested in answering this question about robustness, as the field barely knows how these neurons respond to naturalistic stimuli. The collision task is a small part of the larger visual diet of the fruit fly without actual behavioral data to know the fly's true performance of the task. That a biological network is not impervious to adversarial noise is not surprising --- obviously the illusion of reverse phi suggests there are likely many non-natural adversarial videos that can trick the visual system but are rare in nature. It is unclear from this work how the identified adversarial videos, if shown to real flies, would improve our knowledge about the underlying computations. Moreover, I find few insights into building better artificial vision systems. The claim that the connectome model achieves robustness via sparse connections and continuous time is not well supported by rigorous analysis (e.g., training CTRNNs with varied sparseness). It also seems one could optimize a very simple model to perform this task well that is i) robust and ii) efficient without invoking the connectome. There are technical concerns I lay out further in Questions to the Authors. The overwhelming concern is that because one has access to the full model, rigorously proving the model elements contributing to robustness is warranted.
In my reviewer opinion, this work is tailored for a particular community and will not speak to enough broad NeurIPS readers. Extending this work to multiple visual tasks, isolating particular relevant cell types for different tasks, and more rigorous analyses to tease apart the reasons for robustness would make this work more exciting.
Questions
Technical comments:
-
It seems robustness is likely related to the spatial size of the input video. The connectome and CTRNN models take in 721 "pixels" (I believe without RGB channels) while other models take in 416 x 416 x 3 inputs (line 149). A careful control understanding how spatial resizing affects robustness is needed. It was not clear how the hexagon sampler played a role in this.
-
Another possible difference for robustness is the decoder. The different models have different sizes of output embeddings, which may affect robustness. Controlling for this is needed.
-
The Lappalainen work had an ensemble of 50 trained networks. Not clear from the main text which network was chosen. Also, unclear if the CTRNN was trained only once.
-
Showing the reverse phi effect is nice but does not exactly pin down why the adversarial noise affects FlyNet---because this is a model, I assume you could exactly pinpoint the cause with the right analysis. E.g. you could limit the optimization of adversarial noise to different low-level motion or spatial features. In the same vein, finding the restored adversarial stimulus is interesting but does not rigorously prove that texture information does not convey any help to the adversarial noise. I was very confused why the restored adversarial stimulus (Fig 2e) had black background where the adversarial stimulus (Fig. 2b) did not.
-
Lines 262-264: "FlyNet's robustness...could stem from continuous-time dynamics and connectome-derived sparsity" You have access to the entire model, why not definitely prove this hypothesis?
-
"Continuous-time recurrent neural networks" It is not clear how you trained the CTRNN...on the same Sintel dataset as for FlyNet?
-
Why not attempt to obtain adversarially trained networks? Would this lead each model to be 1) better at this task and 2) more robust to adversarial noise?
-
Fig. 2f, significance testing needed.
-
Unclear if the chosen speed is behaviorally relevant. E.g., a fly might decrease its velocity while landing or a predator may speed up its approach as it gets nearer to its target. I believe there are variable speeds for the colliding object, but unclear if this range is behavioral relevant and realistic to walking or flight.
Limitations
yes
Final justification
Final justification in last review. The comparison to MNIST seems overblown...MNIST is in the same format as future object recognition challenges. Unclear how binary collision task is in the same format as future challenges.
Formatting concerns
adequate
5 comments
Rebuttal to Reviewer g5tf (Part 1)
We thank R-g5tf for describing our paper as well-written and straightforward, and for complimenting the amount of work that has gone into it. We appreciate the reviewer's engagement, constructive criticism, and the opportunity to improve our manuscript. Please find the responses to your questions (Q) and concerns (W) below:
W1[NeurIPS relevance]: We respectfully disagree that the work is too specialized for a NeurIPS audience. As also noted by the reviewers and AC, the differentiable 3D rendering pipeline provides a generally applicable CV/ML framework for optimizing adversarial object textures while preserving geometric and temporal coherence (R-ZubW, R-MV7o, AC-xmHw), and our counterfactual-restoration analysis offers a new way to test whether adversarial failure is driven merely by out-of-distribution appearance or by disruption of task-relevant internal representations (R-ZubW, AC-xmHw). More broadly, the paper investigates how recurrence, temporal context, global integration, and structured sparsity shape robustness--efficiency trade-offs--questions that extend well beyond fly vision and have received comparatively limited systematic study.
Central to our contribution is using the exhaustively validated Flynet from Lappalainen et al. (2024) to connect perceptual (adversarial) robustness and classical visual illusions in a biologically faithful model, not previously studied together.
A central insight that we find exciting is that the stationary adversarial texture disrupts the motion code the same way the dynamic reverse-phi illusion does (quantified in the response to R-ZubW [Q3]). Both acting by decorrelating neighboring input pixel intensities -- aligned with the canonical correlation-based motion detector (Hassenstein & Reichardt, 1956).
Finally, the goal of understanding biology’s efficient performance aligns with the ML community's timely interest in sparse, efficient architectures. Our work directly addresses this by asking whether connectome-derived wiring properties provide an efficient and robust solution to the looming detection task.
We hope this contextualizes our contribution and audience as one the NeurIPS community will find relevant, and we will sharpen this framing in the paper intro and background.
W2[looming-task rationale]: As discussed in our response to R-MV7o [Q2] and recognized by R-ZubW as well motivated, looming is a canonical and behaviorally grounded computation rather than an arbitrary benchmark, used here as a well-established neural and behavioral paradigm in which adversarial failures could be directly linked to a known biological illusion. We do neither rule out nor claim that the resulting robustness or efficiency findings generalize beyond this task. A small non-connectomic model trained directly on the binary collision task might also perform well and robustly. However, this would address a different question: Our backbones are trained for optical-flow estimation on naturalistic Sintel movies, remain frozen, and are evaluated through downstream decoders. Thus, the comparison addresses which robustness properties emerge from specific motion-processing architectures, rather than what the minimal classifier is or how to find it for this benchmark.
The reviewer rightly notes that it could be clarified how showing adversarial videos to real flies would improve our knowledge about the underlying computations. Our framework generates candidate illusory stimuli together with hypotheses about the computations they exploit. These hypotheses can be tested in vivo by comparing the neural and behavioral effects of the generated stimuli with the model-predicted disruptions and with the reverse-phi signatures characterized in Section 4.1. We do not assume that additional illusory stimuli simply exist because flies are susceptible to reverse-phi. Initial experimental confirmation would therefore expand our knowledge of illusory visual stimuli that may or may not exploit the same vulnerability as reverse-phi, a possibility that could be addressed in targeted follow-up experiments. Rejection by experiment would instead point to specific mechanisms FlyNet lacks and represent valuable information to improve the model in future (e.g. adaptation, inhibition, LPLC2/giant-fiber integration).
W3[explicit characterization of Flynet’s robustness] & Q5[l. 262-264]: We share the reviewer's optimism about having access to the entire model and addressing this hypothesis directly; the access to these questions is also a direct result of the framework that we built. We deliberately toned down the claim due to the cross-family confounds that we now discuss in our response to R-MV7o [W1]. We believe our work has significantly narrowed it down, and the additional results have strengthened our claims.
Rebuttal to Reviewer g5tf (Part 2)
Q1[spatial size mismatch]: We acknowledge that the spatial size of the input videos can be a cross-family confound. We trained additional RAFT-1/6/12 variants on the same hexagonally sampled Sintel input, matching the input size, sampling procedure, and training dataset.
RAFT-S variants
| Attack | Metric | RAFT-1-S | RAFT-6-S | RAFT-12-S |
|---|---|---|---|---|
| GFLOPs | 3,332 | 6,495 | 10,290 | |
| Adversarial | ||||
| PGD L2 | R | 0.531 ± 0.019 | 0.515 ± 0.025 | 0.524 ± 0.019 |
| LERS | 0.042 ± 0.002 | 0.040 ± 0.002 | 0.040 ± 0.001 | |
| PGD Linf | R | 0.631 ± 0.013 | 0.651 ± 0.014 | 0.632 ± 0.009 |
| LERS | 0.050 ± 0.001 | 0.051 ± 0.001 | 0.049 ± 0.001 | |
| Transfer L2 | R | 0.540 ± 0.017 | 0.522 ± 0.020 | 0.525 ± 0.023 |
| LERS | 0.043 ± 0.001 | 0.041 ± 0.002 | 0.040 ± 0.002 | |
| Transfer Linf | R | 0.648 ± 0.011 | 0.636 ± 0.010 | 0.650 ± 0.013 |
| LERS | 0.052 ± 0.001 | 0.050 ± 0.001 | 0.050 ± 0.001 | |
| NES | R | 0.654 ± 0.018 | 0.680 ± 0.022 | 0.726 ± 0.026 |
| LERS | 0.052 ± 0.001 | 0.053 ± 0.002 | 0.056 ± 0.002 | |
| CW | dinf | 0.975 ± 0.013 | 0.978 ± 0.009 | 0.980 ± 0.006 |
| d2 | 24.51 ± 5.31 | 24.87 ± 9.59 | 26.14 ± 6.41 | |
| Ecological | ||||
| AWN texture | R | 0.961 ± 0.013 | 0.976 ± 0.008 | 0.970 ± 0.009 |
| LERS | 0.077 ± 0.001 | 0.076 ± 0.001 | 0.075 ± 0.001 | |
| AWN frames | R | 1.000 ± 0.000 | 0.995 ± 0.002 | 0.979 ± 0.005 |
| LERS | 0.080 ± 0.000 | 0.078 ± 0.000 | 0.075 ± 0.000 | |
| Shot noise | R | 1.000 ± 0.000 | 0.998 ± 0.000 | 0.995 ± 0.001 |
| LERS | 0.080 ± 0.000 | 0.078 ± 0.000 | 0.076 ± 0.000 | |
| Flicker | R | 1.000 ± 0.000 | 1.000 ± 0.000 | 1.000 ± 0.000 |
| LERS | 0.080 ± 0.000 | 0.078 ± 0.000 | 0.077 ± 0.000 | |
| Motion jitter | R | 0.992 ± 0.005 | 1.000 ± 0.000 | 0.996 ± 0.001 |
| LERS | 0.079 ± 0.000 | 0.078 ± 0.000 | 0.077 ± 0.000 | |
| Fog | R | 1.000 ± 0.000 | 1.000 ± 0.000 | 1.000 ± 0.000 |
| LERS | 0.080 ± 0.000 | 0.078 ± 0.000 | 0.077 ± 0.000 |
This control changes RAFT’s robustness profile: Adversarial robustness decreases, presumably because of Sintel’s smaller size. In contrast, mean robustness to common video corruptions increases, likely through the hexagonal rendering step, which acts as a spatial filter. Recurrence is no longer uniformly beneficial: performance is largely flat or mixed for PGD, transfer attacks, and common corruptions, but improves for NES and CW. The matched RAFT variants use $\sim$2.7 fewer FLOPs than the original models. Nevertheless, their common-corruption LERS remains below FlyNet’s. We will include these matched controls in the camera-ready version and emphasize the quantitative results in the existing discussion (l.322-324), showing that input representation and training regime strongly affect raw robustness while the main robustness--efficiency conclusion remains unchanged.
Q2[decoder differences]: We agree with the reviewer that changes in decoder architecture could affect robustness. All models use the same MLP decoder architecture and training procedure (see R-ZubW [Q1]), with the only difference being decoder input dimensionality. Within families (i.e. CNNs, CTRNN/Flynet, RAFT), networks have identical output dimensionality and thus identical decoder architecture, so within-family comparison of robustness profiles cannot be impacted. Across families, we argue that the decoder input dimensionality follows from the output dimensionality of the flow-trained architecture; therefore, it is a viable variable to influence robustness. Nevertheless, we will clarify this point and acknowledge architecture dimensionality as a potential analytical axis for future work.
Q3[Flynet & CTRNN ensemble choices]: FlyNet is the best-Sintel-validation-error network; CTRNN is also from Lappalainen et al. 2024 (Extended Data Fig. 2, DMN[11,593]), chosen by the same criterion. We'll state this explicitly in Methods.
Rebuttal to Reviewer g5tf (Part 3)
Q4[mechanistic analysis & Fig. 2e]: We agree with the reviewer that an analysis of the mechanistic explanation for the failure would strengthen our results.
To identify the low-level computation disrupted by the illusion, we computed the classical Hassenstein-Reichardt correlator (Hassenstein & Reichardt, 1956; Clark et al., 2011) between each input hexal and its next-outward radial neighbor at a fixed delay . Below we report, per condition, average correlation across hexals, frame pairs, and trajectories. Positive values indicate looming-direction motion, negative indicate contraction, $\sim$0 indicates static/non-directional input; contrast is taken relative to each frame's spatial mean, so whole-field brightness changes leave it unchanged. This statistic is positive for the original stimulus (), flips negative under the adversarial illusion (), and returns positive after counterfactual restoration () (, n=30 trajectories; paired t-test original vs. adversarial: ; adversarial vs. recovered: ). Reverse-phi gives (SEM ), statistically indistinguishable from the adversarial illusion , demonstrating that the adversarial illusion and reverse-phi both reverse the sign of local intensity correlation (and therefore the local motion sign) in the inputs.
Critically, we directly optimized the texture to maximize/minimize this low-level motion feature alone (as proposed), without using the network output or classification loss. Minimizing the statistic reduced from to on average, whereas maximizing it preserved at . Thus, manipulating local intensity correlation is sufficient to induce or prevent adversarial failure. Together with the numbers above, our analysis provides mechanistic evidence that the illusion operates by disrupting a canonical delayed-correlation-based motion computation, thereby ruling out other hypotheses, such as merely exploiting the classifier. We'll add this to section 4.1 and Fig. 2.
The panels in Fig. 2e show textures rather than the stimulus's time evolution. We will add it in the caption. Thank you for flagging it.
Q6[CTRNN training]: CTRNN was trained exactly as FlyNet, the CNNs and the new versions of RAFT (Sintel, hexagonal input). We’ll add it explicitly to the Methods for the camera-ready version.
Q7[adversarial training]: An interesting direction: future work could ask whether the connectome is structurally closer to an adversarially-trained network than a regularly-trained one. But adversarially training CTRNN and the other backbones for comparison is substantial additional work, which we'll flag as follow-up.
Q8[significance test]: We will assess statistical significance using paired t-tests in Fig. 2f. We have found that all groups differ significantly ().
Q9[behavioral relevance of speed]: Our trajectories span angular sizes from $\sim$5 deg to $\sim$110 deg, with peak angular expansion speeds of up to 1,420 deg/s; consistent with the looming-escape literature (Ache et al. 2019: 5-90 deg; Muijres et al. 2014: 650-2,100 deg/s). We'll add this to the camera-ready text.
Refs.:
- Hassenstein and Reichardt, 1956: https://doi.org/10.1515/znb-1956-9-1004
- Clark et al., 2011: https://doi.org/10.1016/j.neuron.2011.05.023
- Muijres et al., 2014: https://doi.org/10.1126/science.1248955
- Ache et al., 2019: https://doi.org/10.1016/j.cub.2019.01.079
- Lappalainen et al. 2024: https://doi.org/10.1038/s41586-024-07939-3
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 2/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper studies robustness and efficiency in a previously published connectome-constrained model of the fly visual system, FlyNet, on a synthetic looming collision-detection task.
The major contributions includes a 3D rendering pipeline in which textured objects follow hit or miss trajectories toward an observer, the use of adversarial attacks and an optical illusion to a connectome-constrained motion-task model, and findings which link failure to motion code disruptions rather than texture. Moreover, the authors find that FlyNet is more robust per FLOP than other tested architectures on various video injected artifacts.
FlyNet is compared to a vanilla CNN and a CNN with channel-wise global pooling. They also consider a recurrent model (RAFT), and an unconstrained "CTRNN". FlyNet is found to be robust under video corruptions, but is not robust to adversarial attack. Notably, the unconstrained CTRNN outperforms FlyNet in raw robustness, suggesting that the detailed connectome constraint contributes more to efficiency than robustness.
The authors further analyze FlyNet’s failure modes using reverse-phi stimuli and counterfactual restoration, arguing that adversarial textures disrupt motion representations rather than merely inducing out-of-distribution texture statistics.
Strengths and weaknesses
Strengths:
- Connectome-constrained computing is topical and likely to be of interest for the conference.
- the differentiable 3D rendering framework is a strong methodological contribution, since it allows adversarial perturbations to be optimized in object texture space rather than independently in pixel space.
- The reverse-phi and counterfactual restoration analyses move the paper beyond benchmarks and provide a sort of mechanistic hypothesis for why FlyNet fails under adversarial textures. The connection between adversarially optimized stimuli and a known biological motion illusion is especially interesting and could be valuable for future in vivo experiments.
Weaknesses:
- Originality/literature: Numerous others have used structural constraints from the fruit fly applied to visual motion tasks (Tschopp et al, 2018) and continuous time recurrent neural networks (Morra et al, 2023)
- The synapse count of FlyNet is different from the CTRNN. Could you not have simply re-wired the FlyNet model instead of adding more synapses, variance to the model?
- The claim that FlyNet’s advantage comes from sparsity/locality and continuous-time dynamics is plausible, but not obvious or evidence-based. As I lightly alluded to, FlyNet and CTRNN differ in connectome structure/parameter count.
- The RAFT and CNN baselines differ from FlyNet/CTRNN in temporal context, training regime, input representation, etc. These differences make it difficult to attribute robustness to one feature: e.g. recurrence, global pooling, sparsity, connectome constraints.
Questions
- Because FlyNet includes task-specific MLP decoders for the hit/miss classifying, do you estimate that different decoder architectures would change the robustness conclusions?
- The looming task is well-motivated, but still this is a single binary hit/miss task. Do you think FlyNet would also generalize to other fly-relevant computations such as i.e. object tracking?
- The counterfactual restoration result is interesting. Could the authors quantify representational similarity between reverse-phi, adversarial, and restored conditions more directly, beyond decoder error and T4/T5 implications?
Limitations
- FlyNet was designed for motion detection, and so your experiment may already be biased towards that. An additional task may improve the efficiency/robustness claims.
- The synthetic stimuli shown may not capture the full statistical structure of natural visual scenes
Formatting concerns
No concerns.
3 comments
Rebuttal to Reviewer ZubW (Part 1)
We thank R-ZubW for the constructive assessment as topical and of interest for the conference, and particularly for highlighting the differentiable 3D rendering framework, the mechanistic analyses, and the potential relevance of the reverse-phi/adversarial connection for future in vivo experiments. We agree that the current manuscript does not fully isolate all architectural factors that distinguish FlyNet from the baselines and appreciate the opportunity to improve this aspect of our manuscript. We will clarify the scope of the claims and address the points raised (Weakness W, Question Q, Limitation L):
W1[originality]: We thank the reviewer for pointing this out. Fly connectome-derived constraints on motion tasks are indeed not new, and we will add Tschopp et al. (2018), Mano et al. (2021), and Morra et al. (2023) to the related-work discussion to appropriately reflect that fact (Mano et al. (2021) trained a miniature version of the fly motion pathways on scene velocity detection). We emphasize that our contribution is not a novel fly connectome-constrainedmodel; rather, we use a pretrained FlyNet (Lappalainen et al. (2024)) to address our questions about robustness and efficiency.
W2&3[synapse count & Flynet/CTRNN differences]: We agree with the reviewer that having a re-wired version of FlyNet is an important control. For the camera-ready version, we will prune CTRNN's weakest connections from 7.5M down to FlyNet's 1.5M, retrain on the collision detection task, and evaluate the robustness. This control will let us isolate the effect of the connectome on robustness.
W4[cross-family differences]: We agree that cross-family comparisons are potentially confounded by differences in (i) temporal context, (ii) training regime and input representation. To address (i), we trained additional vCNN variants using 5- and 10-frame inputs, in addition to the original 2-frame model, while holding the CNN family and training procedure fixed. As shown in the Table, longer context produces a large increase in robustness to common video corruptions, with larger gains in frame noise, shot noise and flicker. Adversarial robustness, however, improves only weakly and non-monotonically with context length. This suggests a causal role for temporal context on common corruptions specifically. We will add these new results to the camera-ready version of the manuscript.
vCNN variants
| Attack | Metric | vCNN-2f | vCNN-5f | vCNN-10f |
|---|---|---|---|---|
| GFLOPs | 78.8 | 75.6 | 71.7 | |
| Adversarial | ||||
| PGD L2 | R | 0.387 ± 0.054 | 0.318 ± 0.033 | 0.448 ± 0.033 |
| LERS | 0.036 ± 0.005 | 0.029 ± 0.003 | 0.041 ± 0.003 | |
| PGD Linf | R | 0.592 ± 0.026 | 0.583 ± 0.015 | 0.605 ± 0.010 |
| LERS | 0.054 ± 0.002 | 0.054 ± 0.001 | 0.056 ± 0.001 | |
| Transfer L2 | R | 0.681 ± 0.036 | 0.779 ± 0.037 | 0.721 ± 0.038 |
| LERS | 0.062 ± 0.003 | 0.072 ± 0.003 | 0.066 ± 0.004 | |
| Transfer Linf | R | 0.751 ± 0.019 | 0.778 ± 0.021 | 0.785 ± 0.014 |
| LERS | 0.069 ± 0.002 | 0.072 ± 0.002 | 0.072 ± 0.001 | |
| NES | R | 0.633 ± 0.078 | 0.607 ± 0.060 | 0.599 ± 0.030 |
| LERS | 0.058 ± 0.007 | 0.056 ± 0.006 | 0.055 ± 0.003 | |
| CW | dinf | 0.964 ± 0.020 | 0.968 ± 0.012 | 0.947 ± 0.027 |
| d2 | 20.21 ± 3.78 | 20.49 ± 7.64 | 17.14 ± 5.32 | |
| Ecological | ||||
| AWN texture | R | 0.931 ± 0.032 | 0.991 ± 0.007 | 0.992 ± 0.005 |
| LERS | 0.085 ± 0.003 | 0.091 ± 0.001 | 0.091 ± 0.000 | |
| AWN frames | R | 0.441 ± 0.014 | 0.896 ± 0.022 | 0.930 ± 0.013 |
| LERS | 0.041 ± 0.001 | 0.082 ± 0.002 | 0.086 ± 0.001 | |
| Shot noise | R | 0.684 ± 0.029 | 0.964 ± 0.009 | 0.963 ± 0.011 |
| LERS | 0.063 ± 0.003 | 0.089 ± 0.001 | 0.089 ± 0.001 | |
| Flicker | R | 0.661 ± 0.019 | 0.889 ± 0.017 | 0.871 ± 0.014 |
| LERS | 0.061 ± 0.002 | 0.082 ± 0.002 | 0.080 ± 0.001 | |
| Motion jitter | R | 0.605 ± 0.017 | 0.855 ± 0.009 | 0.645 ± 0.021 |
| LERS | 0.055 ± 0.002 | 0.079 ± 0.001 | 0.059 ± 0.002 | |
| Fog | R | 0.809 ± 0.024 | 0.929 ± 0.013 | 0.943 ± 0.013 |
| LERS | 0.074 ± 0.002 | 0.085 ± 0.001 | 0.087 ± 0.001 |
To address (ii), we trained RAFT using the same hexagonally-sampled Sintel input as the CNN/FlyNet/CTRNN families (see response to R-g5tf [Q1] for the full Table). This lowers adversarial robustness (presumably because of Sintel’s smaller size); raises robustness to common video corruptions (the hex sampling likely filters input); keeps recurrence largely beneficial, and cuts FLOPs $\sim$2.7 times. We will add these new results and caution that training regimes confound cross-family comparisons.
Refs.:
- Hassenstein and Reichardt, 1956: https://doi.org/10.1515/znb-1956-9-1004
- Tschopp et al. 2018: https://doi.org/10.48550/arXiv.1806.04793
- Mano et al. 2021: https://doi.org/10.1016/j.cub.2021.06.090
- Morra et al. 2023: https://doi.org/10.1109/IJCNN54540.2023.10191832
- Lappalainen et al. 2024: https://doi.org/10.1038/s41586-024-07939-3
Rebuttal to Reviewer ZubW (Part 2)
Q1[decoder differences affecting robustness conclusions]: Our decoder choice is deliberate and pragmatic: The fly’s LPLC2 neurons detect radial expansion patterns and, by nonlinearly integrating dendritic inputs from T4 and T5 neurons (spatially), trigger the animal's escape response (Klapoetke et al. 2017). Since this integration measures spatial patterns (rather than temporal), and the essential temporal computation happens earlier in FlyNet, we used a nonlinear, spatial-only decoder architecture -- thought to abstract LPLC2 computation.
Our new analysis shows (see our answer to R-g5tf [Q2]) that the computation disrupted by adversarial illusions is a local correlation between input pixels and their neighbors across timesteps (a motion-detection mechanism postulated historically by Hassenstein and Reichardt, 1956). A decoder with its own temporal structure (e.g., frame pairs, per-timestep weights) could compute this correlation itself, confounding its robustness with the network's. We will acknowledge the decoder as a potential confound in the limitations paragraph.
Q2&L1[generalization to other fly-relevant computations]: We acknowledge that the current evaluation is limited to a single behavioral task and therefore cannot establish general performance or robustness across fly-relevant computations. However, as discussed in our response to R-MV7o [Q2], such a comparison goes beyond the central rationale of the present work, which was to use a well-established neural and behavioral paradigm in which adversarial failures could be directly linked to a known biological illusion, thereby providing a common testbed for both artificial and biological vision systems.
FlyNet and all other evaluated backbones were pretrained for optical flow rather than directly for binary hit/miss classification and remained frozen; hit/miss predictions were obtained only through a downstream decoder trained and evaluated on their motion representations (see Methods). This preserves FlyNet as originally published (Lappalainen et al., 2024) and implies that adversarial failures arise from disruption of its internal motion code rather than task-specific retraining. We additionally trained continuous position and velocity decoders, showing that adversarial and reverse-phi perturbations disrupt spatial and dynamical object representations relevant to tracking. However, this is not equivalent to a matched cross-model evaluation of naturalistic object tracking, which we acknowledge as an important direction for future work to strengthen broader efficiency-robustness claims.
Q3[representational similarity]: We thank the reviewer for the suggestion. In the paper, we noted that the neurons' responses to the adversarial stimuli resembled those to reverse-phi, but our quantification was limited. Now, we quantified representational similarity to reverse-phi, using the full T4/T5 population (5,768 units) in a 200 ms window locked to the reverse-phi switches, via RSA (correlation), Euclidean distance, and a signed projection onto the original–reverse-phi axis (: original, : reverse-phi). The projection gives an intuitive, single scalar () for how close the activity of condition c is to reverse-phi versus original, complementing the two similarity metrics that only consider pairwise comparisons. Here we report these metrics, averaged across n=30 trajectories, with respect to reverse-phi (p-values are from paired t-test):
- RSA correlation. (adversarial) vs. (recovered) vs. (original): adversarial vs. original , adversarial vs. recovered .
- Euclidean distance. vs. vs. : adversarial vs. original , adversarial vs. recovered .
- Projection. vs. vs. (by definition): adversarial vs. original , adversarial vs. recovered .
All three converge, the adversarial illusion pushes the T4/T5 representation toward reverse-phi and away from original, more so than the recovered representation -- linking the adversarial failure mode to reverse-phi's. We further trace the underlying disrupted computation in our response to R-g5tf [Q4]. We will add these results to the camera-ready version.
L2[synthetic stimuli]: We agree that our stimuli do not capture the full statistical structure of natural visual scenes. This choice is intentional, since it enables biologically grounded analyses (see above in Q2&L1). We will update the discussion to emphasize that our analyses and findings are limited to the robustness of looming motion detection, leaving naturalistic, freely moving behavior for future work.
Refs.:
- Hassenstein and Reichardt, 1956: https://doi.org/10.1515/znb-1956-9-1004
- Klapoetke et al. 2017: https://doi.org/10.1038/nature24626
Thank you again for your valuable feedback. We hope our rebuttal has successfully clarified the remaining questions and concerns. We remain fully available for any further discussion until the review window closes.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Response to Area Chair xmHw
We thank the Area Chair xmHw for this clear summary, and for recognizing the novel experimental platform, careful robustness characterization and mechanistic analyses as valuable contributions to address a timely question at the intersection of neuroscience and efficient machine learning. We've strengthened that mechanistic link in this rebuttal: New representational-similarity analyses show the adversarial illusion moves the T4/T5 population toward reverse-phi more than the recovered condition does, and new analyses explain the motion-detection mechanism that the gradient-optimized adversarial stimulus exploits through decorrelation of neighboring input pixels (see our responses to Reviewers ZubW and g5tf for details). We acknowledge and address the attribution issue with two new controls that disentangle potentially confounding factors (see responses to reviewers ZubW and g5tf). First, by testing vCNN with additional temporal context (5 and 10 frames), we find that temporal context improves robustness to naturalistic perturbations, supporting our claim that Flynet’s robustness to these perturbations is partly due to the temporal context it uses, provided by the continuous-time dynamics. Second, by matching RAFT's input resolution and training regime to the other architectures, we find substantial increases in robustness to naturalistic perturbations and decreases in adversarial robustness. We will add this result to the existing discussion of potential confounding factors (l.322-324) when comparing RAFT and FlyNet/CTRNN families. As the Area Chair suggests, a sparsity-matched, degree-preserving control would further strengthen claims about connectome constraints specifically; we will add this by pruning CTRNN's connections down to FlyNet's count and retraining, for the camera-ready version. Finally, as g5tf notes, our evaluation centers on a single task. However, as detailed in our responses to the reviewers, looming detection is a well-motivated, canonical paradigm tightly linked to known fly motion circuitry and behavior, not an arbitrary benchmark. We will state this explicitly and highlight naturalistic stimuli and object tracking as future directions for extending the framework. We appreciate the opportunity to improve our submission, the recommendation to accept, and we will incorporate these new controls and mechanistic analyses into the final manuscript to further strengthen our work.