Editor’s introduction
The study examines Agentic-FL, a framework where language model-based agents perform autonomous orchestration in federated learning. It compares dynamic, agent-driven decision-making with traditional static optimization methods, showing improved adaptation to data heterogeneity and resource volatility. The research measures how server-side agents reduce selection bias through contextual reasoning and how client-side agents adjust privacy and model complexity based on local hardware.
Introduction
Federated Learning (FL) has emerged as a paradigm for training Machine Learning (ML) and Artificial Intelligence (AI) models based on distributed and collaborative learning among multiple clients in a network, where models are trained locally, and only the weights are shared with the central server to produce a global model. It enables improvements in learning by leveraging more computational resources and data at the edge, without compromising participants’ privacy by sending raw data to a central server. Within this field, several challenges have been explored in recent years, such as data heterogeneity, since different sources contribute to the same global model, and computational and communication limitations, as edge devices often struggle with the intensive training of large models.
These challenges have driven numerous research efforts aiming to address them through various strategies. For instance, client selection methods focus on the utility and necessity of each client at every round, avoiding unnecessary computational costs. Optimized model aggregation techniques mitigate divergence issues caused by heterogeneous data, while model personalization approaches tailor the global model to meet the specific needs of each client. On the resource side, solutions aim to make FL more efficient through model quantization, which reduces weight precision to lighten training and communication costs, model pruning, which removes redundant parameters, and additional strategies such as Parameter-Efficient Fine-Tuning (PEFT) adapted to FL for recent generative models.
However, despite the progress made in mitigating these challenges, the inherent dynamics, complexity, and heterogeneity of distributed FL require holistic and adaptable methods to manage the evolving demands of the system. Approaches focusing on a single aspect, such as advanced aggregation mechanisms to improve performance, can inadvertently increase latency or computational load on client devices. Similarly, strategies centered solely on client selection or model personalization often overlook broader impacts on energy consumption, communication costs, or total training time. Moreover, as dynamic environments evolve, client and federation requirements, such as resource constraints or data drift, may change over time, rendering static solutions ineffective. Fixed, single-purpose approaches are hampered by the complexity and dynamism that make solving real-world problems difficult, highlighting the necessity for autonomous and flexible systems.
LLM-based Agents
In recent years, LM-Agents have emerged as powerful autonomous systems for adaptive decision-making and coordination across complex environments. Their ability to interpret context, plan actions, and communicate through natural language makes them highly suitable for distributed and dynamic systems. Within the context of FL, agents offer a natural abstraction for both clients and the central server in tasks of coordination and orchestration, enabling analysis, reasoning, self-coordination, and adaptive responses to changing conditions such as varying client availability, resource constraints, and data shifts.
LM-Agents typically comprise four main components. The profile defines the agent’s objectives and behaviors, constraints and limitations, and available skills, shaping its overall behavior and decision-making goals. The memory maintains contextual knowledge in both recent interactions (short-term memory) and accumulated experience (long-term memory), enabling consistent and improved decision-making over time. The planning component is responsible for decomposing goals into executable steps, reasoning about strategies, and selecting actions aligned with the current environment state. Finally, the action component executes these decisions by interacting with the environment, other agents, or external tools. Together, these elements are enhanced by LLMs, which analyze textual descriptions and environment data and generate the planning and action outputs required for agent execution.
Beyond these core components, several complementary techniques have been proposed to enhance the reasoning and operational capabilities of LM-Agents. Tool usage allows agents to access external functions, APIs, or computational resources, extending their abilities beyond the language model itself. Frameworks such as ReAct (Reason + Act) and Chain-of-Thought (CoT) reasoning enable structured problem-solving, combining step-by-step deliberation with interactive action execution. These mechanisms allow agents not only to reason abstractly but also to act in real time, query data, monitor performance, and refine their strategies based on feedback, thereby increasing autonomy and robustness in dynamic environments. Furthermore, more sophisticated solutions were developed to enhance these capabilities, such as Tree-of-Thought (ToT), Proof-of-Thought (PoT), and Graph-of-Thought (GoT). Furthermore, LLM agents enable the use of reinforcement learning for online learning; this capability, coupled with the ability to solve complex problems in LLMs, makes LLM agents powerful in dynamic environments.
In the context of FL, these characteristics make LM-Agents particularly advantageous. Their inherent reasoning and memory mechanisms allow them to model and adapt to system heterogeneity, dynamically select or prioritize clients, personalize training strategies, and adjust aggregation methods based on the current federation state. Furthermore, the ability to use external tools enables real-time communication monitoring and performance analysis, fostering self-adaptive orchestration. Consequently, LM-Agents introduce a promising paradigm for constructing flexible, context-aware, and adaptive FL systems capable of evolving with their environments and optimizing collaboration among distributed participants.
Server-side Agents
In FL, systemic problems such as i) synchronization, ii) communication overhead, and iii) fault tolerance make its implementation challenging. Furthermore, other factors such as iv) mitigation of bias and v) security are also important for maintaining a fair and secure system for users. Therefore, much research is being conducted to mitigate these impacts on FL.
Synchronization. The standard FL protocol relies on synchronous communication, often being limited by slower clients (stragglers). While asynchronous FL attempts to mitigate these delays via partial aggregation with time limits, it introduces the challenge of model staleness. Specifically, updates from resource-limited devices may arrive late, and merging these stale weights degrades the overall model performance compared to the progress already achieved by faster clients.
In this scenario, LM-Agents contribute through their adaptation to dynamic environments. Long-term memory allows contextualization of connectivity patterns: for example, by identifying that a client exhibits high latency only at specific times (e.g., at night), the agent’s reasoning component can set a dynamic timeout adjusted for that round, instead of prematurely discarding it. Furthermore, global reasoning allows distinguishing isolated failures from systemic problems, such as the simultaneous unavailability of devices in the same geographic region, enabling more robust recovery strategies than simple fixed rules.
Another aspect of FL investigates Partial Training Techniques that mitigate latency by adjusting the model size to the local hardware, but make aggregation complex: the weighted average fails when faced with heterogeneous parameters, leaving parts of the architecture underrepresented. In addition, the construction of submodels via “neuron importance” creates a systemic bias in which clients capable of training a complete architecture dominate learning, hindering the generalization capacity of the global model.
Agent-based methods offer a dynamic solution to this aggregation dilemma. Unlike static algorithms, a server agent can use its long-term memory to track the update frequency of each parameter or layer across runs. Upon detecting that certain sections of the model are underrepresented (due to the prevalence of weak devices), the agent’s reasoning mechanism can intervene, assigning higher weights to rare updates or planning future selection to prioritize clients capable of training those neglected sections. This adaptive orchestration mitigates hardware bias and ensures the integrity of the overall model.
Communication overhead. Although many studies aim to reduce the communication overhead caused by FL, this remains an open challenge. The distributed nature of the data requires multiple rounds of communication to achieve convergence during training. Consequently, sending updates over the network incurs a large payload, as these updates are directly linked to the size of the models, including large-scale architectures such as fundational models.
One way to mitigate the impact of communication overhead is through client selection. Traditionally, this is used to reduce communication bottlenecks by decreasing the number of devices sending models in each round. Essentially, client selection aims to identify the best devices within the federated system, given a specific criterion (e.g., loss, amount of data, channel size), to boost training and reduce the number of communication rounds. However, selection algorithms that require hyperparameter optimization are vulnerable to misconfiguration problems. On the other hand, dynamic selection solutions, while more efficient in federated environments, generally consider only a few selection criteria or are computationally expensive. Therefore, adaptive mechanisms that adjust to the system’s needs and utilize multivariate criteria within the federated system are foundational to its evolution.
In this way, agent-based solutions are promising because they introduce a layer of meta-reasoning over client selection. By cross-referencing historical performance (long-term memory) with the current state of the network, the agent can infer which selection strategy maximizes utility at that specific moment, overcoming the rigidity of static algorithms. For example, when detecting a scenario of high hardware homogeneity but heterogeneous data, the agent can dynamically opt for Power-of-choice; while in situations where the balance between efficiency and loss is critical, it can transition to utility-based strategies such as Oort. More than just selecting devices, the reasoning component allows the agent to adjust the cardinality of the selection in real time, avoiding communication bottlenecks that would go unnoticed by fixed heuristics.
In parallel, the agent can act on payload mitigation through intelligent management of compression techniques. Instead of applying uniform quantization, which can degrade the performance of capable clients, an orchestrating agent can negotiate the precision of the model individually. Using inference tools, the agent decides on sparcification or aggressive quantization only on clients with severe battery or bandwidth constraints, maintaining the integrity of the entire model for robust devices. This granularity of decision, unfeasible for traditional optimizers due to the explosion of the search space, becomes tractable through the generalization capabilities of agents.
Challenge and Future Directions
LM-Agents have proven to be a promising methodology for mitigating FL problems, but their introduction also raises issues that require further study. Therefore, in this subsection, we discuss the challenges that emerge in this area as well as the research opportunities that follow.
Reliability and Hallucination. Despite their sophistication, LM-Agents are still susceptible to hallucinations. In the context of FL, these flaws can lead the agent to misinterpret the utility of a client, resulting in the repeated selection of ineffective devices or the exclusion of significant contributors. From the client’s perspective, agents orchestrating local training may hallucinate inappropriate hyperparameters; when aggregated, these updates can cause unintentional model poisoning, degrading the global model and hindering federation convergence. Therefore, the use of safety mechanisms, such as guardrails or structured outputs, to validate values and impose strict operational constraints becomes imperative.
Agent Components. Agent systems can be constructed in several ways, and their architectures are directly shaped by the problems they aim to solve. This applies equally to FL; thus, it is necessary to investigate how each agent component can contribute to the federated learning process, from both the server and client perspectives.
Within FL, actions performed in the past can be very useful for understanding the current state of the federation and for determining what needs to be done to achieve the expected result. Thus, the memory component is fundamental for building an agent in this context. However, there are different ways to represent information to the agent, such as using text, embeddings stored in databases, or structured lists. Finding the best representation for each step and each piece of information within the distributed system is challenging, as is defining how to display client metadata to the agent, namely, how to efficiently leverage the context windows of language models without sending unnecessary information. Furthermore, the large amount of information generated must be stored in a way that enables efficient and practical retrieval, making the study of storage methods and retrieval mechanisms essential.
Within a distributed system, the order and manner in which tasks are performed are important for conserving resources and efficiently utilizing system components. Therefore, planning task sequences based on both past actions and the current state, while aiming for short- and long-term gains, is also challenging. Understanding how to enable the agent to plan its actions using CoT, ToT, and similar techniques to ensure reliability and robustness in its decisions will make its behavior more effective. Furthermore, the planning and reasoning process generally generates a large number of tokens, linked to the information produced by the federated system; therefore, it is important to identify mechanisms to mitigate this impact.
Federated pipeline. Today, there are different FL paradigms, such as asynchronous, hierarchical, horizontal, and vertical federation. With the advancement of agents, we can envision a framework in which agents distributed across clients can request federation when necessary. In this way, a client-side agent could, through internal mechanisms, determine when its model is no longer adequate or is becoming outdated and subsequently request a new model from the server, which would initiate a federation round after receiving a sufficient number of such requests. This new pipeline introduces adaptability to the models and flexibility to the training process, enabling federation to occur only among clients that require it.
Exploring new metrics with Code Agents. Traditional metrics such as accuracy and loss are often insufficient for comprehensive decision-making, and assessing client utility more holistically remains a challenge. Code Agents can propose and implement solutions that evaluate new metrics and combine information to construct previously undefined ones. For example, they can identify a group of disadvantaged clients and generate a minority fairness metric, enabling the system to optimize its actions to benefit this group in subsequent rounds.
Scalability and Contextual Limits Scaling the federation to thousands of clients inevitably hits the physical limits of LM context windows, demanding architectural innovations to reduce information overload. To address this, we envision three complementary directions. First, Retrieval-Augmented Generation (RAG) can dynamically fetch only relevant client metadata, creating similarity clusters rather than processing the entire network at once. Second, hierarchical multi-agent architectures can divide the workload, where local sub-agents analyze specific client subgroups and forward only condensed, high-value candidates to a central orchestrator. Finally, integrating deterministic filtering tools can pre-categorize clients based on heuristics, allowing the agent to focus its reasoning solely on a pre-selected, manageable pool of candidates.
The integration of LM-Agents into FL transcends mitigating isolated challenges; it signals a paradigm shift from centralized and static orchestration to autonomous federated ecosystems. While traditional FL treats clients as passive “workers” our long-term vision projects a scenario where agents act as economic brokers in a decentralized knowledge marketplace. In this future, the training pipeline is no longer triggered by a central server but negotiated peer-to-peer: clients initiate federations based on local needs (e.g., “I need to update my night vision model”) and negotiate participation based on new metrics of utility and fairness, not just accuracy. This evolution transforms FL from a distributed optimization process into a complex mechanism for incentive negotiation and on-demand collaboration, opening frontiers for the intersection between Game Theory and Machine Learning.
Conclusion
In this work, we introduce Agentic-FL, a paradigm shift that evolves FL from a static optimization process to an autonomous trading ecosystem. We argue that the inherent complexity of distributed scenarios, characterized by non-IID data heterogeneity, resource volatility, and security risks, demands more than fixed algorithms; it demands cognitive adaptation.
By mitigating barriers to entry for heterogeneous clients and increasing resilience against attacks, Agentic-FL not only improves training efficiency but also promotes a fairer and more representative system. Looking to the future, we envision these agents as the forerunners of decentralized market models, where collaboration ceases to be merely a computational protocol and becomes an intelligent, self-managed economic exchange.


