arXiv:2610.03330cs.LGOct 2026

Manuscript Offprint

arXiv:2610.03330

Cordial Learning: Distributed Training with Correlated Data

Sarah Shitrit, Ilai Bistritz

Abstract

We consider a distributed learning task with agents that have correlated data. Specifically, the label of an agent depends on the input of other agents for the same sample, and these inputs are also correlated. Correlated data is the reality when agents share the same environment. Existing decentralized methods, such as federated learning, ignore the structure of the problem and perform poorly on correlated data. On the other hand, centralized approaches are infeasible due to privacy and communication constraints. We introduce cordial (correlated and distributed) learning to address this gap by sharing only low-dimensional outputs between the agents while training local models to extract informative signals from peers. This distributed learning induces a game in which the loss function of each agent depends on the models of others. Assuming a linear model, we prove that cordial learning converges with probability one to a globally optimal solution, despite the nonconvex global objective. Experiments on structured multi-digit MNIST tasks demonstrate that cordial learning remains highly effective even in highly nonlinear settings.

Keywords: Federated Learning, Distributed Training, Game Theory, Collaborative Learning, Stochastic Optimization

1. Introduction

When deployed, ML systems rarely operate in a vacuum. Their data comes from a shared environment with many ML systems. Thus, the data of many ML systems can be highly correlated. Current ML architectures are trained in solitude, ignoring any interaction they may encounter after deployment.

In distributed learning, and federated learning (FL) in particular, all edge devices (agents) face the same learning task. The data collected by an edge device is valuable to all others since it extends their effective training dataset. FL then avoids sending explicit data to the server, maintaining user privacy, while still allowing agents to learn from each other's data indirectly.

When ML agents share an environment, one agent's data is helpful not only because more data is better, but mostly because it shows the agent the part of the bigger picture that it cannot see alone. Technically, it means that the label of one agent depends on the input of others. Even if the agents have different ML tasks, so they cannot learn directly from others' data, the data of others contains information that explains their label better.

The current distributed learning paradigm cannot benefit from the correlated data of ML agents that share an environment after deployment. In this paper, we introduce a new paradigm we term cordial learning (CL), since it is correlated and distributed. Similar to FL, CL is concerned with edge devices that each have a private dataset. However, the l-th datapoint of all devices is correlated (input and label), for every index l.

CL is the practical reality in the following example applications:

Multi-Digit MNIST: Each classifier sees a handwritten digit as input. However, the digits of all agents are dependent (e.g., credit card numbers, error correction codes, or the same handwriting). For example, adjacent digits must add up to 10, or all digits tend to equal a common hidden digit.

Remote Sensors: The agents are sensors that collect local environmental features (e.g., temperature, vibration, gas). The task is to classify whether a global phenomenon, such as a fire or earthquake, is occurring. Since all sensors in the same region are exposed to the same event, their data (inputs and labels) are correlated. However, each sensor only observes part of the full picture. Sharing model outputs, rather than raw data, allows the agents to benefit from the collective information while meeting the communication constraints.

Medical Wearables in Shared Environments: Each agent monitors a different patient using wearable sensors that record local physiological signals (e.g., heart rate, skin temperature). The task is to detect the onset of a disease. When patients are nearby, such as on a hospital ward or during an outbreak, their health outcomes are correlated, as infection spreads. In this case, leveraging cross-patient correlations can improve prediction accuracy. However, direct data sharing is prohibited due to privacy constraints. A distributed learning approach that shares only model outputs can enable collaboration without compromising sensitive health data.

Formation Control: A group of moving agents often has to maintain a target formation. Examples are platoons of autonomous vehicles or drones. Each vehicle collects local sensor data (e.g., LiDAR, radar, velocity) and must classify whether to accelerate, maintain speed, or decelerate. Since vehicles influence each other's decisions, especially those of their neighbors, their data is correlated. However, each vehicle observes only partial information. Sharing embedded outputs rather than raw sensory data allows collaborative real-time decision-making while preserving autonomy.

Our goal is to design a distributed training scheme that achieves close to optimal performance in this cordial learning scenario, while maintaining low communication overhead. We measure performance by the sum of loss functions of all agents.

A centralized architecture would collect data from all agents and train one large model to fit their combined input to their combined labels. Then, the central server is needed in real-time, so all devices can send their input data to the server and receive the result back. Such a centralized architecture requires significant communication between a central server and the agents to collect all their data, both in training and in real-time. Then the central server must train a huge ML model with a large dataset to obtain all agent models. Perhaps even worse, collecting user data in the central server can violate user privacy. It also creates a single point of failure. Communication, latency, complexity, and privacy are known issues with any centralized architecture. In the context of cordial learning, the centralized architecture is also data-inefficient. The classification tasks are inherently distributed in the sense that each agent observes a different part of the whole problem. A centralized agent will waste a lot of data “understanding” the distributed nature of the problem (e.g., that there are N digits in the multi-digit example). In other words, since the problem is distributed, a data-efficient architecture will also have to be distributed.

In CL, the learning tasks of the agents are intertwined. If two agents each observe a digit, knowing that both digits are even or odd together, then each agent only needs the other agent to detect the parity of its digit. However, being able to classify a digit is very much related to classifying its parity. On the other hand, only sending the decision is not enough information. If an agent believes that the digit is six, but digits nine and three together are more likely, then this information is lost. A similar tradeoff exists in remote sensors that detect fire - even if one sensor is sure that currently there is no fire in its region, some indicators can help sensors in more sensitive areas to lower their detection threshold.

We propose using an embedded output as the basic communication unit between the agents. The embedding is in the dimension of the output, a short vector compared to the input vectors. This embedded output is similar to the softmax output of a neural network (NN), but not the same. The softmax output of our agents is computed after incorporating the information from other agents, while the embedded output is processed before.

In CL, agents maintain coordination layers dedicated to extracting useful information from the inputs they receive from other agents for the same sample. Thus, each agent simultaneously trains its NN along with these additional layers. This introduces a unique coupling (or interaction) between the agents. The weights of the NN of agent n affect not only the loss of agent n, but also the loss of all other agents, since it changes the information they receive from agent n. As our analysis reveals, this interaction requires careful design. The sum of loss functions is nonconvex even in the linear regression case. Thus, many suboptimal stationary points may exist.

For the linear theoretical model, we show that if the learning of the “coordination layers” is slower than the learning of the embedding layers, then CL is guaranteed to converge to the optimal agent models that minimize the nonconvex sum of loss functions. This happens even though each agent locally optimizes only its loss function, ignoring the effect of its model on the loss of others. This makes CL a scalable, distributed training algorithm that can incorporate many devices, with little communication overhead.