Research
Mesh Cognition
Distributed Intelligence Through Coupled Continuous-Time Neural Networks
Abstract
We present Mesh Cognition, a framework for distributed intelligence in which autonomous devices running continuous-time neural networks form cognitive meshes through real-time peer-to-peer hidden state exchange. Unlike federated learning, which shares gradients offline, or multi-agent reinforcement learning, which shares discrete observations, Mesh Cognition enables live inference-time coupling — each node’s neural dynamics are directly influenced by peer cognitive states, producing emergent group intelligence without central coordination. The framework comprises three contributions: (1) a continuous-time emotional intelligence architecture that models affect as trajectory rather than discrete state, deployed on-device via Closed-form Continuous-time (CfC) neural networks; (2) the Mesh Memory Protocol (MMP), a peer-to-peer protocol for real-time exchange of CfC hidden state vectors over local networks; and (3) a theoretical analysis connecting coupled CfC dynamics to generalized Kuramoto synchronization, predicting emergent properties including collective memory, stability amplification, and phase-locked cognitive alignment. Mesh Cognition is validated in production within MeloTune, an emotion-aware music platform where connected devices develop shared emotional trajectories that influence music curation across the mesh.
1. Introduction
1.1 The Problem: Centralized Dependency
Modern multi-device AI depends on a central brain. Devices share cognitive state only through cloud servers — when the server is available, connected, and responsive. When the central brain is down, sharing stops. Each device falls back to isolated intelligence, cognitively blind to the others despite physical proximity. Phones in the same room, robots in the same warehouse, vehicles on the same highway — all capable, all disconnected.
Existing approaches to multi-device AI fall into three categories, none achieving distributed cognition:
| Approach | Mechanism | Limitation |
|---|---|---|
| Federated Learning | Gradient sharing | Offline training only; no real-time inference coupling |
| Multi-Agent RL | Observation/reward sharing | Discrete time steps; requires joint training |
| Cloud Aggregation | Centralized processing | Single point of failure; latency; privacy exposure |
1.2 The Insight
Closed-form Continuous-time (CfC) neural networks (Hasani et al., 2022) maintain hidden states that evolve through learned time constants. Each neuron’s time constant τ governs its temporal scale — how quickly it responds to input and how long it retains memory. This creates natural frequency bands within the network: fast-τ neurons for reactive processing, slow-τ neurons for integrative memory.
This property makes CfC networks uniquely suited as a coupling medium for distributed cognition. When two CfC networks exchange hidden states, their time constants create natural synchronization dynamics analogous to coupled oscillators in physics. The closed-form solution enables rigorous analysis of coupling behavior, and the compact hidden state requires minimal bandwidth for exchange.
We did not invent CfC networks — that is the work of Hasani et al. at MIT. What we invented is how to couple them: the protocol for real-time peer-to-peer exchange of CfC hidden states between autonomous devices, and the theoretical framework for predicting the emergent behaviour of coupled continuous-time neural networks.
1.3 Contribution
- —Continuous-time emotional intelligence — replacing discrete classification with trajectory modeling, enabling anticipatory rather than reactive AI
- —The Mesh Memory Protocol (MMP) — the first protocol for real-time peer-to-peer coupling of continuous-time neural network hidden states
- —Theoretical analysis — connecting coupled CfC dynamics to Kuramoto synchronization theory, providing predictive tools for mesh behavior
- —Production validation — deployed in MeloTune with on-device learning and zero cloud dependency
To our knowledge, this is the first system achieving real-time continuous-time cognitive coupling between autonomous devices through continuous-time neural dynamics.
2. Background
2.1 Continuous-Time Neural Networks
CfC networks (Hasani et al., 2022) derive from Liquid Time-Constant (LTC) networks (Hasani et al., 2021). The key property is that LTC dynamics admit a closed-form solution, eliminating numerical ODE solvers during inference. Each neuron evolves according to learned time constants that determine its temporal memory scale.
CfC networks handle irregular time intervals natively, making them robust to network latency and asynchronous sampling — essential properties for distributed operation.
2.2 Kuramoto Synchronization
The Kuramoto model (1975) describes spontaneous synchronization in populations of coupled oscillators. Above a critical coupling strength, oscillators with different natural frequencies undergo a phase transition from incoherence to coherence. This model provides the theoretical foundation for understanding how coupled CfC networks achieve cognitive synchronization.
2.3 Emotional Intelligence Foundations
Mesh Cognition builds on two prior frameworks developed at SYM.BOT Research:
SVAF (Symbolic-Vector Attention Fusion) — a protocol for semantic alignment in multi-agent systems, introducing field-wise attention-weighted fusion with drift quantification and clarifier-mediated intervention (Xu, 2025).
EI-3 (Emotional Intelligence — 3 Layer Architecture) — an emotional governance protocol establishing source separation between user declarations and machine inferences, drift-bounded fusion, and append-only provenance records. Validated across 1.64M+ query combinations in production (Xu, 2025).
EI-3’s limitation is fundamental: it operates on discrete snapshots with static weighted averaging. It sees where emotion is but not where it is going. Mesh Cognition addresses this directly.
3. Continuous-Time Emotional Intelligence
3.1 Core Paradigm
Emotion is a continuous trajectory, not a discrete state. This is not a metaphor — it is a mathematical formalization. A user is not “calm” or “anxious” at a point in time. They occupy a position in emotional space with velocity, acceleration, and intent. The difference between stable calm and the leading edge of rising anxiety is invisible to discrete systems but explicit in trajectory representation.
3.2 Three-Layer Architecture
Mesh Cognition preserves EI-3’s separation of concerns while replacing every discrete component with its continuous-time equivalent:
| Layer | Name | Purpose |
|---|---|---|
| 1 | UET | User Emotional Trajectory — immutable user declarations as trajectory (position, velocity, intent, bounds) |
| 2 | MEC | Machine Emotional Continuum — CfC-based continuous modeling of emotional dynamics |
| 3 | CRE | Continuous Resolution Engine — ODE-governed dynamic equilibrium between user and machine |
3.3 User Emotional Trajectory (UET)
Users declare emotion through four progressively richer modes:
| Mode | Example | Representation |
|---|---|---|
| Point | “I feel calm” | Position only |
| Direction | “I’m getting anxious” | Position + velocity |
| Goal | “I want to feel energized” | Position + intended direction |
| Bounds | “Keep me above 50 energy” | Position + constraint region |
Affective Integrity. UET records are immutable. Machine inference can never modify a user trajectory record. The user’s declared emotional state is sovereign — a non-negotiable principle.
3.4 Machine Emotional Continuum (MEC)
MEC produces continuous emotional modeling through CfC networks with input-dependent time constants. The critical innovation is that time constants adapt based on input context: shortening during volatile emotional signals for rapid response, lengthening during stable periods for greater inertia. This is learned per-user from behavioral data, not configured.
MEC output is continuous: emotional position, velocity, trajectory forecast with confidence envelope, soft-learned pattern activations, and inferred user intent.
3.5 Continuous Resolution Engine (CRE)
CRE replaces EI-3’s static weighted fusion with ODE-governed resolution. The resolved emotional state evolves toward dynamic equilibrium between user trajectory, machine continuum, and contextual forces through differential equations with time-varying weight functions.
Unlike EI-3’s scalar threshold conflict detection, CRE detects four categories of trajectory divergence: position divergence, velocity divergence (via dot product), acceleration conflict, and boundary violation. This enables nuanced intervention — a machine inference trending toward the user’s state is treated differently from one diverging, even at the same positional distance.
3.6 Trajectory Provenance
Every resolved emotional trajectory carries complete temporal attribution: user contributions, machine contributions, resolution traces, and conflict resolutions over its temporal span. Any resolved trajectory can be decomposed back to constituent inputs. This provides auditability for regulatory frameworks (GDPR emotional data processing, EU AI Act) and explainability for user trust.
4. The Mesh Memory Protocol
4.1 From Single-Agent to Mesh
The continuous-time architecture described in Section 3 operates on a single device. MMP extends it to the multi-agent case: each node runs its own CfC model, and MMP provides the transport for sharing cognitive state across nodes in real time.
4.2 Design Principles
Cognitive Autonomy. Each node runs a complete model and operates independently. Mesh coupling influences but never overrides local cognition.
Peer-to-Peer. No central server. Nodes discover each other via zero-configuration networking, negotiate capabilities, and exchange state bilaterally.
Continuous-Time Native. State exchange, blending, and decay operate in continuous time, matching CfC dynamics.
Domain Agnostic. MMP carries hidden state vectors. Semantic meaning depends on the application; the protocol provides transport and coupling mechanics.
Privacy by Design. Hidden states are compact, opaque neural representations. No raw data crosses the mesh. Peer approval is required before exchange.
4.3 Protocol Overview
MMP operates through a layered architecture:
- —Discovery Layer — zero-configuration peer discovery on local networks with capability negotiation and version compatibility
- —Transport Layer — TCP connections with deterministic deduplication and length-prefixed protobuf framing
- —Cognitive Layer — frame types for continuous sync, deep sync with CfC hidden vectors, heartbeat, and discrete event signaling
- —Application Layer — CfC model integration with hidden state blending
4.4 Cognitive Coupling
When nodes exchange hidden states via MMP, each node blends its local CfC hidden state with the aggregated mesh state before inference. The coupling strength α ∈ [0, 1] is configurable per node and determines how strongly the mesh influences local cognition. Mesh state aggregation uses confidence-weighted averaging across connected peers, incorporating source priority and temporal recency.
4.5 Connection to Kuramoto Dynamics
The coupled CfC system can be analyzed through Kuramoto synchronization theory. The coupling between CfC neurons across nodes acts as a restoring force proportional to state difference, modulated by each neuron’s time constant. This analysis yields three key predictions:
Synchronization timescale. Neurons synchronize on a timescale proportional to τ/α. Fast neurons establish rapid consensus; slow neurons converge gradually, creating a natural hierarchy.
Critical coupling threshold. Below a critical α_c, nodes evolve independently. Above it, the mesh undergoes a phase transition to synchronized cognition.
Frequency-dependent coupling. Unlike classical Kuramoto (uniform coupling), CfC coupling is heterogeneous. Each neuron’s coupling rate is inversely proportional to its time constant. Fast-τ neurons synchronize for immediate alignment while slow-τ neurons maintain individual long-term memory.
4.6 Stability
The coupled system is stable under standard conditions: contraction mapping guarantees from bounded activations, bounded drift proportional to (1−α), and graceful degradation — when peers disconnect, local state smoothly transitions to autonomous operation with no discontinuity.
5. Emergent Properties
The coupled CfC mesh exhibits properties that no individual node possesses:
5.1 Collective Memory
When multiple nodes experience the same event, the mesh’s CfC hidden states encode a collective memory distributed across slow-τ neurons. This memory persists even if individual nodes reset — reconnecting nodes re-absorb the collective state through hidden state blending.
Collective memory states can be cryptographically committed via Merkle state roots and hash-chained provenance, enabling tamper-evident verification of shared cognitive history without requiring blockchain infrastructure. Zero-knowledge proofs offer a path to verified mesh participation without hidden state disclosure — nodes can prove they hold authentic collective memory without revealing their cognitive state.
5.2 Emergent Stability
Individual nodes may exhibit volatile trajectories. Mesh coupling introduces damping: each node’s trajectory is pulled toward the mesh mean, reducing individual volatility. This is mathematically equivalent to adding a diffusive term to the CfC dynamics.
5.3 Distributed Pattern Detection
Pattern activations exchanged across the mesh create a natural voting mechanism. When multiple nodes detect the same pattern independently, the mesh amplifies the signal. Single-node detections are dampened unless confidence is high. The mesh achieves more reliable pattern recognition than any individual node.
5.4 Phase-Locked Alignment
Fast-τ CfC neurons across coupled nodes tend to phase-lock — a direct analog of neural synchronization observed in biological systems (e.g., gamma-band synchronization during attention). In the MMP context, phase-locking indicates cognitive alignment between devices.
5.5 Scaling
| Mesh Size | Behavior |
|---|---|
| N=1 | Autonomous operation |
| N=2 | Bilateral cognitive resonance |
| N=3–5 | Group dynamics emerge; majority creates gravitational center |
| N=10+ | Collective patterns dominate; individual influence decreases as 1/N |
The transition from individual to collective cognition occurs at small N (typically 3–5), making Mesh Cognition immediately useful for small-group scenarios.
6. Production Validation: MeloTune
6.1 Application Context
MeloTune is a mood-driven music platform developed by SYM.BOT Ltd. It uses a CfC neural network to model the user’s emotional trajectory and proactively curate music. The model operates entirely on-device via CoreML with zero cloud dependency for personal data.
6.2 Proactive Curation
MeloTune’s Proactive Curation Engine (PCE) consumes MEC output to predict not just what the user feels but what they want. By projecting the emotional trajectory forward and applying inferred intent (energize, calm, uplift, maintain, focus, process), PCE pre-curates playlists before the user requests them. Music is ready when the user opens the app.
This collapses the traditional emotion-AI pipeline — observe, classify, display, wait for user action — into a single anticipatory step.
6.3 Mesh Cognition in Practice
When two MeloTune devices connect via MMP:
- —Emotional convergence — over 30–60 seconds, devices’ mood trajectories begin to align. Convergence rate depends on coupling strength and CfC time constant distribution.
- —Coordinated curation — music selections develop thematic and emotional coherence across devices, without playing the same tracks.
- —Resilient individuality — at moderate coupling, each device maintains its unique emotional character while participating in the group field. Strong local signals override mesh influence.
6.4 Validation
Alignment is validated through an automated pipeline covering 164 industry genres, 400 moods per genre, and ~10,000 emotion-energy meter variations — 1.64M+ systematic query combinations. Production telemetry supplements automated testing with real behavioral feedback loops.
7. Applications Beyond Music
Mesh Cognition is domain-agnostic. The same continuous-time coupling mechanics apply wherever multiple devices benefit from shared cognitive state:
- —Collaborative Robotics — swarm coordination via coupled CfC dynamics. Fast-τ neurons synchronize for collision avoidance; slow-τ neurons coordinate task allocation. No central planner required.
- —Autonomous Vehicle Fleets — fleet-level situational awareness. One vehicle detecting a hazard shifts the mesh’s hidden state, causing nearby vehicles to adjust before direct observation.
- —Therapeutic Group Monitoring — real-time collective emotional state across session participants. The mesh detects group emotional events and enables computational co-regulation.
- —Smart Environment Orchestration — devices in a smart environment share cognitive state, developing emergent “atmosphere” that no single device computes.
- —Creative Collaboration — co-creators’ tools develop shared creative understanding through coupled intent trajectories.
8. Architecture Comparison
| Dimension | Discrete Systems | Federated Learning | Multi-Agent RL | Mesh Cognition |
|---|---|---|---|---|
| Temporal model | Snapshot | Snapshot | Discrete steps | Continuous trajectory |
| Coupling time | None (isolated) | Offline (training) | Per-step | Real-time (inference) |
| Coordination | N/A | Central aggregator | Central or decentralized | Peer-to-peer |
| State shared | N/A | Gradients | Observations/rewards | CfC hidden states |
| Emergent properties | None | Improved model | Learned policies | Collective memory, stability, pattern detection |
| Privacy | Device-local | Gradient exposure risk | Observation sharing | Opaque hidden vectors |
| Deployment | Single device | Training infrastructure | Training infrastructure | Local network, zero cloud |
9. Research Directions
| Direction | Description |
|---|---|
| Lateral CfC Connections | Retraining CfC models with explicit peer hidden state input dimensions, enabling learned coupling dynamics |
| Attention-Based Aggregation | Multi-head attention over peer hidden vectors for selective peer influence |
| Internet-Scale Mesh | Extending MMP beyond local networks via relay infrastructure for wide-area cognitive coupling |
| Heterogeneous Mesh | Projection layers mapping between CfC models of different architectures for cross-application mesh cognition |
| Differential Privacy | Formal privacy guarantees for exchanged hidden states while preserving mesh properties |
| Hierarchical Mesh | Multi-scale architecture where local meshes couple into regional meshes via aggregated super-states |
| Cross-Domain Handoff | Governed emotional trajectory transfer between applications with provenance preservation |
10. Conclusion
Mesh Cognition introduces a new paradigm for distributed AI: real-time cognitive coupling of on-device continuous-time neural networks through peer-to-peer hidden state exchange.
The framework makes three advances over the state of the art. First, it replaces discrete emotional classification with continuous-time trajectory modeling, enabling anticipatory intelligence that sees where emotion is going rather than where it is. Second, it introduces the Mesh Memory Protocol for live inference-time coupling — fundamentally different from federated learning’s offline gradient sharing or multi-agent RL’s discrete observation exchange. Third, the theoretical connection to Kuramoto synchronization provides analytical tools for predicting and engineering mesh behavior, including synchronization timescales, critical coupling thresholds, and emergent collective properties.
The contribution is not the underlying neural network — CfC is the work of Hasani et al. The contribution is the coupling: the protocol, the theoretical framework, and the production architecture that turns isolated CfC models into a distributed cognitive mesh. Any application running a CfC model can participate in mesh cognition by implementing the protocol.
We own the protocol, the architecture, and the production implementation. We believe this work opens a research direction at the intersection of continuous-time neural networks, distributed systems, and collective intelligence.
References
1. Hasani, R., Lechner, M., Amini, A., Liebenwein, L., Ray, A., Tschaikowski, M., ... & Rus, D. (2022). Closed-form continuous-time neural networks. Nature Machine Intelligence, 4(11), 992–1003.
2. Hasani, R., Lechner, M., Amini, A., Rus, D., & Grosu, R. (2021). Liquid time-constant networks. Proceedings of the AAAI Conference on Artificial Intelligence, 35(9), 7657–7666.
3. Kuramoto, Y. (1975). Self-entrainment of a population of coupled non-linear oscillators. International Symposium on Mathematical Problems in Theoretical Physics, 420–422.
4. Strogatz, S. H. (2000). From Kuramoto to Crawford: exploring the onset of synchronization in populations of coupled oscillators. Physica D, 143(1–4), 1–20.
5. McMahan, B., Moore, E., Ramage, D., Hampson, S., & y Arcas, B. A. (2017). Communication-efficient learning of deep networks from decentralized data. AISTATS, 1273–1282.
6. Foerster, J., Assael, Y., de Freitas, N., & Whiteson, S. (2016). Learning to communicate with deep multi-agent reinforcement learning. NeurIPS, 2137–2145.
7. Xu, H. (2025). EI-3 Emotional Intelligence Architecture. SYM.BOT Research Technical Specification v1.0.
8. Xu, H. (2025). Symbolic-Vector Attention Fusion for Semantic Alignment in Multi-Agent Cognitive Systems. SYM.BOT Research.
Open Source
The Mesh Memory Protocol and autonomous coupling logic are open source under Apache 2.0:
sym-bot/mesh-cognition-sdkThe SDK includes the complete MMP transport layer, protobuf schema, drift-bounded coupling engine, and Kuramoto metrics logger. Any application running a CfC model can participate in mesh cognition by integrating the SDK.
Intellectual Property
Mesh Cognition is original work by Hongwei Xu and SYM.BOT Ltd. The protocol is open source (Apache 2.0). The following remain proprietary: trained CfC models and training procedures, domain-specific product integrations (MeloTune, MeloMove), and production configurations.
Academic citation of this work is permitted and encouraged.
For partnership inquiries: info@sym.bot
Mesh Cognition, Mesh Memory Protocol, MMP, EI-3, SVAF, MeloTune, MeloMove, and MeloMotion are trademarks of SYM.BOT Ltd. © 2026 SYM.BOT Ltd. All Rights Reserved.