Brief Announcement: Adaptive Self-Organization in Anonymous Dynamic Networks
Abstract
We introduce the problem of adaptive self-organization in which the nodes of an anonymous, synchronous dynamic network must distributively change the collective distribution of their responses (or “colors”) as a function of time-varying environmental signals, even when these signals are only perceived locally and the network topology changes adversarially. Specifically, a signal adversary may change the type of signal and which node(s) witness that signal arbitrarily between rounds. If a signal (or lack thereof) persists in the system for sufficiently long, the dynamic network must stabilize such that nodes’ colors reach and remain in a distribution closely approximating , a goal distribution defined by the problem instance. We first prove that if nodes are deterministic, the only solvable instances of adaptive self-organization are those with homogeneous goal distributions, i.e., those where all nodes must stabilize with the same color. We then present a linear-time, logarithmic-memory, deterministic algorithm for this subclass of instances that works even when the multiplicity and location of signal witnesses change arbitrarily. When nodes know , the number of nodes in the network, a small adaptation of this algorithm achieves a stronger convergence property in which adversarial edge and signal dynamics are entirely unable to disturb stabilized configurations. Finally, we present a randomized extension of these algorithms that solves arbitrary (i.e., not necessarily homogeneous) instances of adaptive self-organization with high probability when nodes know the goal distributions.
Keywords and phrases:
Dynamic networks, anonymous nodes, broadcast, self-organization, biological distributed algorithmsCopyright and License:
2012 ACM Subject Classification:
Theory of computation Distributed algorithmsAcknowledgements:
J.J.D. thanks Annie Daymude, Monty Carson, and Julie Carson for the many hours of childcare that created the working time to complete the full version of this paper.Funding:
This work is supported in part by National Science Foundation award CCF-2312537.Editors:
George B. Mertzios and Andréa W. RichaSeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl – Leibniz-Zentrum für Informatik
1 Introduction
The theory of dynamic networks analyzes nodes’ abilities to distributively solve problems of coordination and communication even as the edges between them change over time. Many fundamental problems such as broadcast, leader election, and consensus have been studied in these models, but always as isolated goals. In this paper, we consider an orthogonal dimension of dynamics, not only of changes to a network’s topology, but also of time-varying stimuli that a network must respond to. We are specifically interested in collectives’ fundamental ability to achieve adaptive self-organization of their members among a set of discrete behaviors in response to time-varying environmental signals, even when these signals may only be perceived locally by a few members and the possible interactions among members are dynamic.
Biological distributed systems rarely have just one collective function. Instead, members respond to locally-perceived environmental signals by altering their individual behaviors which may then induce a collective adaptation to the environment at the system level. For example, the discovery of a food source in an ant colony’s vicinity triggers a shift in foraging behaviors from exploration to gathering; its depletion does the opposite. When slime molds (i.e., Dictyostelium discoideum) experience nutrient scarcity, most of their cells aggregate to form a fruiting body of spores while other “loners” stay behind to exploit the possible return of food to the area. In mammalian immune systems, helper T cells secrete different combinations of cytokines based on the type of invading pathogen (i.e., parasites, fungi, viruses, or bacteria) to coordinate the appropriate immune response and then return to a passive state of immune memory after the pathogen is cleared. Each of these examples showcases a biological collective’s ability to fluidly adapt among response behaviors in the presence of stimuli and gracefully “reset” to a baseline behavior in their absence.
1.1 Anonymous Dynamic Networks
We consider synchronous dynamic networks comprising a fixed set of nodes. Nodes communicate with each other via message passing over a communication graph whose topology changes over time. Following the standard time-varying graphs formulation [1], we assume an adversary controls which edges are present in each round, restricted only by 1-interval connectivity; i.e., the topology may change arbitrarily between rounds so long as the corresponding snapshots are connected. Nodes are anonymous, lacking unique identifiers, and – unless explicitly stated otherwise – have no knowledge or approximation of any global measure, including the number of nodes .111We emphasize that allowing memory per node, as our algorithm does, is not the same as having a priori knowledge of . Such an equivalence would, among other undesirable consequences, trivialize the deep technical literature on exact counting in anonymous dynamic networks [12, 7, 6, 3, 2, 11, 4, 5]. We further assume that nodes are port-indistinguishable; i.e., they cannot count or locally distinguish among their neighbors. Consequently, when a node communicates with its neighbors via message passing, it must send the same message to all its current neighbors. Algorithms execute synchronously, with each round comprising a communication phase followed by a state transition phase (see Figure 1).
1.2 Adaptive Self-Organization
In each round , the environment – represented by a signal adversary – emits one of distinct signals or no signal at all, denoted by . We assume that the number of signals is a fixed constant , independent of . Any signal is perceived by a non-empty set of witnesses chosen by the signal adversary. Thus, whether a signal exists in the system, which signal is emitted, and what nodes witness an emitted signal may all change arbitrarily and independent of each other between rounds. A signal is persistent if for all rounds (though its witnesses may still change).
Each node may change its color over time to indicate its fluctuating response to different signals (or lack thereof). Formally, we denote by the color of node at time (i.e., at the start of round ) and by the number of nodes at time with color . We assume the number of colors is a fixed constant, independent of .
Let be all fractional probability distributions over the colors. An instance of the adaptive self-organization problem takes the form of a response function mapping each distinct signal and the absence of a signal to a goal distribution over colors. Informally, if a signal (or lack thereof) is persistent, the nodes must collectively change their colors to reach and remain in a distribution approximating . Formally, suppose a signal becomes persistent at time . An algorithm execution stabilizes (w.r.t. signal ) if there exists a time such that for all times and nodes . A dynamic network configuration approximates a goal distribution at time if its nodes’ color frequencies satisfy
| (1) |
where is an error term satisfying . An algorithm solves an instance of adaptive self-organization if, for all sufficiently large , every execution stabilizes w.r.t. any persistent signal in a configuration approximating .
1.3 Related Work
Adaptive self-organization is fundamentally a communication problem in that nodes disseminate local knowledge (i.e., the presence and type of signal they witness) to coordinate the appropriate response across an entire dynamic network. But related works on broadcast [13, 15, 10], -token dissemination [9, 8], and aggregate computation [12, 7, 6, 3, 2, 11, 4, 5] in anonymous dynamic networks are not directly applicable here. Unlike most algorithms which use progress as a structural feature – e.g., tracking informed vs. uninformed nodes in broadcast or local symmetries that remain to be broken in aggregate computation – our problem allows signals to change or disappear at any moment, suddenly requiring past progress be undone in pursuit of a different goal. In this sense, our algorithms feature a kind of self-stabilization, though our concern is achieving continuously changing goals from in-progress configurations rather than recovering from arbitrary corruption of node memory.
Most relevant to our work is Oh, Randall, and Richa’s recent results on “adaptive collective responses” which are also driven by local stimuli and operate on anonymous dynamic networks [14]. If a stimulus (resp., no stimulus) is witnessed for sufficiently long, they desire for all nodes to become Aware (resp., Unaware), akin to a one-signal, two-color, homogeneous version of our problem. In their randomized solution, witnesses continuously generate “alert” tokens that spread through the network using degree-weighted random walks and cause nodes they reach to become Aware. Whenever a node stops witnessing stimuli, it broadcasts an “all clear” token that causes other nodes to become Unaware. This algorithm solves the problem in constant memory, expected time for becoming Unaware, and expected time for becoming Aware. But they make several assumptions that are incompatible with ours: (1) their scheduler sequentially activates nodes uniformly at random while we assume synchrony, (2) they restrict dynamics such that each Aware node’s set of Aware neighbors always form a connected component while we assume standard 1-interval connectivity, (3) they assume the number of active stimulus locations and the dynamic degree are both upper bounded by constants known to the nodes a priori while we make no such assumptions, and (4) they guarantee all nodes will become Aware if the stimuli remain unchanged for sufficiently long while we allow the number and locations of stimuli to change arbitrarily so long as at least one stimulus is present anywhere in the network for sufficiently long. In comparison, our algorithms solve a more general formulation of the problem under more standard assumptions in optimal time, but require logarithmic memory.
2 Main Results
2.1 Hardness of Non-Homogeneous Instances
We first prove that the only instances of adaptive self-organization that can possibly be solved by deterministic algorithms are those with homogeneous goal distributions, i.e., those in which all nodes stabilize with the same color. Formally, an instance of adaptive self-organization is homogeneous if for each signal , there exists a color such that if and otherwise. An instance is non-homogeneous otherwise, i.e., if there exists a signal whose distribution places non-zero probability mass on multiple colors. The following impossibility result follows from the interaction of highly-symmetric topologies and port-indistinguishable message passing.
Theorem 1.
No non-homogeneous instance of adaptive self-organization can be solved by a deterministic algorithm.
2.2 A Deterministic Algorithm for Homogeneous Instances
Theorem 1 shows that deterministic algorithms can only hope to solve homogeneous instances of adaptive self-organization. The deterministic algorithm we present next solves exactly these instances. Its performance guarantees are given by the following theorem.
Theorem 2.
There is a deterministic algorithm that solves any homogeneous instance of adaptive self-organization. It strongly converges for in rounds, weakly converges for signals in rounds, and uses memory.
A naïve approach to homogeneous adaptive self-organization would have all witness nodes for a signal continuously send messages indicating this fact, causing nodes that receive these messages to change their color to (i.e., the color with ). This flooding approach works if signals and their witnesses never change, but fails as soon as nodes must locally resolve conflicting evidence about which signal is currently in the system, if any.
We address this challenge by assigning every message a time-to-live value ttl that is initialized as some maximum value max-ttl by witness nodes. A message is forwarded (with a decremented ttl) if and only if it has the largest ttl value among all received messages, thus reflecting something about the temporal distance between the recipient node and the closest originating witness. If signals ever disappear from the network (i.e., is persistent), there will be no witnesses to send new messages with , so eventually all messages will expire, causing nodes to “reset” their color to the baseline color . If instead one signal is replaced by another signal , messages about will have higher ttl values than – and thus preempt – any messages about that are still being propagated.
It remains to define a mechanism that eventually finds an max-ttl value that is large enough for messages to reach all nodes in the network (i.e., at least the temporal eccentricity of any witness) but does not grow indefinitely. We distinguish between three node state values, loosely interpreted as: (1) Reset nodes that either do not believe a signal is present in the system or are otherwise not participating in forwarding messages, (2) Set nodes that are participating in forwarding messages and have set their color accordingly, and (3) Locked nodes that believe their color correctly represents the current signal present in the system. Set nodes use a variable timer to count rounds from zero up to max-ttl, effectively waiting until the broadcast they are participating in reaches its furthest extent, at which point they become Locked. If ever a non-Locked node receives a message from a Locked node, it knows max-ttl was not large enough; this recipient thus doubles its max-ttl value and resets itself, ultimately initiating a new broadcast with double the reach. Otherwise, if no such recipient exists, all nodes must be Locked with the desired color.
The statement of Theorem 2 differentiates between two types of convergence: strong and weak. A network strongly converges in rounds if, within rounds of a persistent signal appearing, every node adopts and remains the corresponding color. On the other hand, a network weakly converges in rounds if, from the time a persistent signal appears, there are at most (not necessarily consecutive) rounds in which any node does not have the corresponding color. Weak convergence for present signals arises from the fact that the dynamics adversary can keep eccentricities – and, by extension, max-ttl values – small for arbitrarily long periods of time. If the adversary suddenly increases witness eccentricities, some node that is “far” from a witness may now have its ttl expire, causing it to incorrectly reset to color despite a signal being present in the network. This isn’t a correctness issue – such nodes will eventually double their max-ttl value until the network once again stabilizes at the correct color – but it creates intermediate periods of restabilization. If nodes had knowledge of , this situation could be avoided entirely by initializing , which always upper bounds eccentricity. In this case, ttl values will never expire with a signal present, ensuring strong convergence.
Corollary 3.
If nodes have knowledge of , there is a deterministic algorithm that solves any homogeneous instance of adaptive self-organization using memory and achieves strong convergence in rounds for all signals .
2.3 A Randomized Algorithm for Arbitrary Instances
Theorems 1 and 2 show that deterministic algorithms can only solve homogeneous instances of adaptive self-organization and then gives a deterministic algorithm for exactly these instances. We conclude with a simple, randomized extension of the deterministic algorithm that solves any instance of adaptive self-organization w.h.p., homogeneous or otherwise: now, whenever a node updates its signal, it samples a new color from the goal distribution .
Corollary 4.
There is an algorithm that solves any instance of adaptive self-organization, w.h.p. It strongly converges for in rounds, weakly converges for signals in rounds, and uses memory.
References
- [1] Arnaud Casteigts, Paola Flocchini, Walter Quattrociocchi, and Nicola Santoro. Time-Varying Graphs and Dynamic Networks. International Journal of Parallel, Emergent and Distributed Systems, 27(5):387–408, 2012. doi:10.1080/17445760.2012.668546.
- [2] Maitri Chakraborty, Alessia Milani, and Miguel A. Mosteiro. A Faster Exact-Counting Protocol for Anonymous Dynamic Networks. Algorithmica, 80(11):3023–3049, 2018. doi:10.1007/s00453-017-0367-4.
- [3] Giuseppe Di Luna and Roberto Baldoni. Non Trivial Computations in Anonymous Dynamic Networks. In 19th International Conference on Principles of Distributed Systems (OPODIS 2015), volume 46 of Leibniz International Proceedings in Informatics (LIPIcs), pages 33:1–33:16, 2016. doi:10.4230/LIPIcs.OPODIS.2015.33.
- [4] Giuseppe A. Di Luna and Giovanni Viglietta. Computing in Anonymous Dynamic Networks Is Linear. In 2022 IEEE 63rd Annual Symposium on Foundations of Computer Science (FOCS), pages 1122–1133, 2022. doi:10.1109/FOCS54457.2022.00108.
- [5] Giuseppe A. Di Luna and Giovanni Viglietta. Optimal Computation in Leaderless and Multi-Leader Disconnected Anonymous Dynamic Networks. In 37th International Symposium on Distributed Computing (DISC 2023), volume 281 of Leibniz International Proceedings in Informatics (LIPIcs), pages 18:1–18:20, 2023. doi:10.4230/LIPIcs.DISC.2023.18.
- [6] Giuseppe Antonio Di Luna, Roberto Baldoni, Silvia Bonomi, and Ioannis Chatzigiannakis. Conscious and Unconscious Counting on Anonymous Dynamic Networks. In Distributed Computing and Networking, volume 8314 of Lecture Notes in Computer Science, pages 257–271, 2014. doi:10.1007/978-3-642-45249-9_17.
- [7] Giuseppe Antonio Di Luna, Roberto Baldoni, Silvia Bonomi, and Ioannis Chatzigiannakis. Counting in Anonymous Dynamic Networks under Worst-Case Adversary. In 2014 IEEE 34th International Conference on Distributed Computing Systems, pages 338–347, 2014. doi:10.1109/ICDCS.2014.42.
- [8] Michael Dinitz, Jeremy Fineman, Seth Gilbert, and Calvin Newport. Smoothed Analysis of Information Spreading in Dynamic Networks. In 36th International Symposium on Distributed Computing (DISC 2022), volume 246 of Leibniz International Proceedings in Informatics (LIPIcs), pages 18:1–18:22, 2022. doi:10.4230/LIPIcs.DISC.2022.18.
- [9] Michael Dinitz, Jeremy T. Fineman, Seth Gilbert, and Calvin Newport. Smoothed analysis of dynamic networks. Distributed Computing, 31(4):273–287, 2018. doi:10.1007/s00446-017-0300-8.
- [10] Walter Hussak and Amitabh Trehan. Termination of amnesiac flooding. Distributed Computing, 36(2):193–207, 2023. doi:10.1007/s00446-023-00448-y.
- [11] Dariusz R. Kowalski and Miguel A. Mosteiro. Polynomial Counting in Anonymous Dynamic Networks with Applications to Anonymous Dynamic Algebraic Computations. Journal of the ACM, 67(2):1–17, 2020. doi:10.1145/3385075.
- [12] Othon Michail, Ioannis Chatzigiannakis, and Paul G. Spirakis. Naming and Counting in Anonymous Unknown Dynamic Networks. In Stabilization, Safety, and Security of Distributed Systems, volume 8255 of Lecture Notes in Computer Science, pages 281–295, 2013. doi:10.1007/978-3-319-03089-0_20.
- [13] Regina O’Dell and Roger Wattenhofer. Information dissemination in highly dynamic graphs. In Proceedings of the 2005 Joint Workshop on Foundations of Mobile Computing, pages 104–110, 2005. doi:10.1145/1080810.1080828.
- [14] Shunhao Oh, Dana Randall, and Andréa W. Richa. Adaptive collective responses to local stimuli in anonymous dynamic networks. Theoretical Computer Science, 1024:114904, 2025. doi:10.1016/j.tcs.2024.114904.
- [15] Garrett Parzych and Joshua J. Daymude. Memory Lower Bounds and Impossibility Results for Anonymous Dynamic Broadcast. In 38th International Symposium on Distributed Computing (DISC 2024), volume 319 of Leibniz International Proceedings in Informatics (LIPIcs), pages 35:1–35:18, 2024. doi:10.4230/LIPIcs.DISC.2024.35.
