Processing agent controller configured to operate in the distributed agent-based simulation system

The processing agent controller in distributed agent-based simulation systems improves performance by using observed access patterns to predict and prefetch required information, addressing the inefficiencies of ghost cells and enhancing resource utilization and communication efficiency.

WO2024199660A1PCT designated stage expired Publication Date: 2024-10-03HUAWEI CLOUD COMPUTING TECHNOLOGIES CO LTD +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
PCT/EP2023/058275
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-30
Publication Date
2024-10-03

AI Technical Summary

Technical Problem

Distributed agent-based simulation systems face performance issues due to high communication costs and inefficient resource usage, particularly in scenarios where the set of remote sectors required for agent state updates is unknown or dynamic, leading to over- or under-approximation of ghost cells, which affects simulation performance.

Method used

A processing agent controller that employs a cache populated based on observed access patterns, predicting and prefetching required information for each simulation step, eliminating the need for domain-specific knowledge and enabling self-adaptive, decentralized optimization without expert supervision.

Benefits of technology

This approach reduces communication costs, improves resource efficiency, and enhances simulation performance by ensuring all required information is locally available, minimizing synchronous remote communication and cache overhead.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure EP2023058275_03102024_PF_FP_ABST
    Figure EP2023058275_03102024_PF_FP_ABST
Patent Text Reader

Abstract

A processing agent controller (104) configured to operate in a distributed agent-based simulation system (102) with spatial partitioning of the simulation domain is provided. The processing agent controller (104) is further configured to employ a cache for required information retrieved from a different partition. The cache is populated based on observed access patterns.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] PROCESSING AGENT CONTROLLER CONFIGURED TO OPERATE IN THE DISTRIBUTED AGENT-BASED SIMULATION SYSTEM

[0002] TECHNICAL FIELD

[0003] The disclosure relates generally to a distributed agent-based simulation system, and more particularly, the disclosure relates to a processing agent controller configured to operate in the distributed agent-based simulation system with spatial partitioning of the simulation domain. Moreover, the disclosure relates to a method for the processing agent controller configured to operate in the distributed agent-based simulation system with spatial partitioning of the simulation domain.

[0004] BACKGROUND

[0005] Microscopic agent-based simulation is a simulation that has discrete simulation entities / agents (e.g., a car). Microscopic traffic simulation is typically executed according to a parallel agentbased discrete event simulation paradigm. Each simulation agent has custom and fine-grained properties or state and custom behavioral models (e.g., for car following and changing lanes) that define how the agent states evolve as the simulation is executed. The agents may be heterogeneous as their set of properties and behavioral models may not be uniform. The behavioral model comprises a function (i.e., a computer implemented function) that produces a new full or partial agent state (i.e., values for some or all of the properties) based on the current agent state and the state of other spatially nearby agents. The behavioral models are treated as black boxes due to design considerations of a simulator. That is, the concrete logic for updating the agent state is unknown and the set of agents whose state is considered is also unknown before invoking the respective models. However, it can be observed agents from which locations in the simulation domain are queried for agents whose states are considered for producing a new agent state.

[0006] Distributed simulation system is a simulation system that carries out simulations collectively and coherently by multiple computers. These computers do not share any main memory but can communicate through a network. A simulation system with spatial domain- decomposition / partitioning is a system in which the simulation domain / space is decomposed into disjoint subsets / partitions. Typically, in the distributed execution, each computer is responsible for a subset / partition of the simulation domain (e.g., a part of a road network), such that every position in the simulation domain can be uniquely mapped to exactly one partition. Each partition is further subdivided into smaller spatial elements / sectors (e.g., road segments) which are addressable by identifiers and can be processed in parallel. Each computer is responsible for maintaining and updating the state of all agents within its partition.

[0007] Typically, the simulation is performed in discrete timesteps, and all computers in the distributed execution execute the simulation in lock step. All computers / machines are synchronized such that they all logically execute the simulation in the same simulation time. The simulation may proceed only when all partitions are processed and reach the same “step barrier”. That is, at any time, all computers in the distributed execution are in the same timestep of the simulation. In each simulation step, the state of each agent is updated in three distinct phases: (1) perception phase, (2) planning phase, and (3) control phase. During the perception phase, the information required by the various behavioral models (e.g., information on nearby agents) for each agent is gathered from the environment. During the planning phase, the changes to the current state of the agents are determined based on the perceived information. For instance, in the case of traffic simulation, one behavioral model may determine an acceleration to be applied for a vehicle in a given situation, and another behavioral model may change a fuel level state based on the acceleration. During the control phase, the computed updates to the state of agents are applied. For example, a driving agent perceives the agents around it and plans the best strategy according to a route and travelling objectives or other driving style parameters (e.g., accelerate or brake, or initiate lane change). Then, the behavioral models are updated to change position and the speed of the agents consistently with the modeled physics.

[0008] The simulation time increases monotonically throughout the simulation. Without loss of generality, the simulation time is a natural number (i.e., starting with 1) and a length of each simulation step is 1 (i.e., an arbitrary unit). The simulation space is subdivided into a set of nonoverlapping partitions. That is, the union of all partitions is equal to the simulation space, and each position in the simulation space is contained in exactly one partition. In the distributed execution, without loss of generality, each computer is responsible for carrying out the simulation in its partition. The set of partitions is denoted as P = P1U ... U PM, where P^ 1 < i < M, denotes the i ’th partition out of M partitions in total. Without loss of generality, each computer participating in the execution of the simulation is responsible for exactly one partition, and moreover, there is a one-to-one correspondence between partitions and computers. Technically, each computer may be responsible for multiple partitions, as long as one computer is responsible for each partition.

[0009] Each partition of the simulation space is subdivided into sectors, which are individually addressable sectors. For instance, in the case of the microscopic traffic simulation, a sector may correspond to a road segment or a lane segment. The perception phase operates at the granularity of sectors when perceiving the state of nearby agents. That is, for perceiving nearby agents, nearby sectors are queried for other agents included in them. A dedicated API call is available to retrieve the agents including all relevant states required during the perception phase located in a specific sector.

[0010] In distributed execution, updating an agent’ s state may require information on the state of agents in a sector located in a different partition managed by a different computer. From the perspective of any computer, a sector located in a partition is managed by a different computer is a remote sector. The API call for querying the state of agents in a given sector retrieves this information from the responsible computer if the sector is remote. This remote interaction between different computers incurs communication costs, which overall negatively impacts the performance of the simulation system.

[0011] For updating a state of agent a, at a simulation time / , the set of sectors that are queried during the perception phase is denoted as the neighborhood set N(a,t). Since the behavioral models are considered as black boxes, the exact neighborhood set of an agent at a particular simulation time may not be known ahead of execution. However, the exact neighborhood set may be observed during execution. This may be achieved by intercepting the API call for retrieving the agents located in a specific sector.

[0012] An existing traffic simulation scenario includes two partitions, four agents (e.g., car), sectors on a path of one agent, and the neighborhood set for the same agent. For a computer managing partition / ?, a set of all remote sectors (i.e., over all agents located in partition p) that are required at a simulation time t as a neighborhood union set Np(t). For instance, for two agents a1, a2located in a partition p with neighborhood sets N altt) = {s1(s2}, N a2, t) = {^3} , the neighborhood union set Np(t = {s1(s2, s3] is a set of all sectors required to update the state of all agents (a1, a2) on the partition p. Each computer maintains a cache with a state of remote sectors including states of agents located in these sectors. Such a cache avoids querying the state of remote sectors multiple times within the same simulation step, which may improve the simulation performance. Since the agent states may only change as the simulation progresses from one timestep to the next timestep, maintaining cache coherency can be achieved by invalidating all cache entries at the end of each simulation step.

[0013] An existing solution uses ghost cells that reduce the communication cost incurred by retrieving information on remote sectors (i.e., sectors residing in a partition not owned by a current computer) not on demand when they are required during the perception phase of the agent state update, but rather in bulk ahead of time. As a result, the communication latency required for the interaction with a remote computer is incurred only once when the remote sectors are retrieved before the agent state updates are performed, rather than multiple times on each access of a remote sector. Further, such a batched data transmission incurs lower total overheads (i.e., in the communication protocol, in the number of system calls, and other aspects) than transmitting each sector individually. Once all required sectors are retrieved, they are used to populate a cache with that information. During the agent state updates, all required information may be already available in the cache, thereby eliminating a need for any further remote interaction and hence, avoiding their costs.

[0014] Further, the ghost cells approach relies on the precise specification of the remote sectors that may be required during the agent state updates. These remote sectors may then be subject to prefetching and may be used to populate the cache, as described above. In simulations where the simulation domain is a metric space or has an intuitive notion of distance, the required remote cells can be specified by providing a distance expressing a range within the remote sectors around a computer’s own partition. Further, this range or the explicit set of remote sectors has to be configured according to the properties of the simulation.

[0015] Further, statically specifying the set of required remote sectors is equivalent to specifying the neighborhood union set per partition without considering the simulation time. That is, the same neighborhood union set is assumed throughout the simulation for each partition as follows:

[0016] Another problem in the distributed simulation system is that it is not generally possible to know a priory the set of remote sector required for the creation of the ghost cells, particularly when models are treated as black boxes. This forces an overprovisioning in a visible range of the remote sector that may impact performance and resource utilization. Further, in order to make sure that all necessary information is available to the remote sector, an overestimation of these may be used, which increases communication and as well as computation costs.

[0017] Another existing solution discloses a ghost cell approach for stencil operation in a matrix. The matrix (e.g., 8x8 matrix) is decomposed into four sub-matrices (each 4x4 matrix). The matrix and the sub-matrices correspond to the full simulation domain and partitions respectively. Applying a 3x3 stencil operation on a cell depends on the values from neighboring cells (including diagonals). These neighboring cells correspond to a neighborhood region. The ghost cells for each partition are defined to be all neighboring cells in the matrix located in other partitions.

[0018] Another existing approach uses caches in a computer hardware device. The caches are an established building block of the computer hardware device where accessing data residing on a separate storage device incurs costs that may reduce an overall performance. In this case, the caches are usually small, but fast and are used as a storage layer. The caches in the computer hardware device are often employed in combination with logic for prefetching data items for populating the caches before they are required so that the data items are readily available when required without any additional overhead. This approach bears similarity with the ghost cells approach as it aims to reduce the cost of retrieving data from a separate storage device.

[0019] Further, the existing ghost cells approach relies on a specification of which remote sectors may be required by the behavioral models to update the agent states. This specification generally requires expert knowledge, but in some simulation scenarios, it is impossible to derive the required sectors before executing the simulation. For example, if the set of required sectors depends on the simulation state itself, then this is unknown before running the simulation. In the case of traffic simulation, if an agent model requires a state of a next agent ahead, then a set of required sectors cannot be determined without knowing ahead of time where the next agent ahead is located.

[0020] One approach is to over-approximate the set of required sectors. That is, some sectors are assumed to be required, even though they are not. However, this does not restrict the usability of the approach but potentially results in reduced performance since these sectors have to be transmitted and processed, incurring communication and processing cost without any benefit. Another approach is to under-approximate the set of required sectors which results in a performance reduction since required sectors may not be pre-fetched and readily available in the cache when needed, hence, incurring additional communication costs for retrieving them on demand.

[0021] The static specification of required sectors is complicated as they may change throughout the simulation (e.g., as traffic patterns vary throughout the day in case of traffic simulation) or across partitions (e.g., as different regions may exhibit different traffic properties in case of traffic simulation). Thus, specifying the required remote sectors can be difficult, but also crucial for obtaining performance benefits from employing the ghost cells approach. Further, in some simulation systems, as pointed out above, statically specifying the required remote sectors is inherently impossible, as it relies on information not available before executing the simulation.

[0022] The disadvantages of the existing ghost cells approach are that the ghost cells may overapproximate the neighborhood set since they are defined based on a maximum distance and require domain-knowledge and configuration to perform such approximation. The precise neighborhood set may be unknown before evaluating the agent models. That is, the agent models may choose, in each simulation step, what information and from what sectors is incorporated to update the state. For example, the agent model may require information on the state of the nearest other agents. Since the model logic is treated as a black box, the precise neighborhood set is unknown before evaluating the model. Since the precise neighborhood set is unknown before evaluating the model, the ghost cells are likely either larger or smaller than required. If the ghost cells are larger than required, communication cost is obsolete since some of the information is not used. If the ghost cells are smaller than required, the simulation performance decreases since some of the required information is not retrieved before executing a simulation step, and hence, it has to be retrieved while executing the simulation step, which incurs additional communication costs.

[0023] Existing simulation systems, especially related to scientific computing, use the ghost cell approach which assumes precise knowledge on what information from other nodes is required. Another existing approach uses a CPU or memory cache that prefetches (i.e., implicit / transparent prefetching) in a pipelined or out-of-order CPU architecture. The CPU or memory cache performs explicit prefetches when some architectures have explicit support. The CPU or memory cache assumes precise knowledge of what information may be required and the prefetch may still cause additional overhead. However, in this case, the prefetching component needs to be configured and optimized or acts according to standard configuration. Another problem in the existing simulation is cache and cache optimization. Existing apparatus solves the problem of cache retention and removal, and other issues related to memory access optimization, however, it does not optimize the cache.

[0024] Therefore, there arises a need to address the aforementioned technical problem / drawbacks in the distributed simulation system.

[0025] SUMMARY

[0026] It is an object of the disclosure to provide a processing agent controller configured to operate in a distributed agent-based simulation system with spatial partitioning of the simulation domain and a method for the processing agent controller configured to operate in the distributed agent-based simulation system with spatial partitioning of the simulation domain while avoiding one or more disadvantages of prior art approaches.

[0027] This objective is achieved by the features of the independent claims. Further, implementation forms are apparent from the dependent claims, the description, and the figures.

[0028] The disclosure provides a processing agent controller configured to operate in a distributed agent-based simulation system with spatial partitioning of the simulation domain and a method for the processing agent controller configured to operate in the distributed agent-based simulation system with spatial partitioning of the simulation domain.

[0029] According to a first aspect, there is provided a processing agent controller configured to operate in a distributed agent-based simulation system with spatial partitioning of the simulation domain. The processing agent controller is further configured to employ a cache for required information retrieved from a different partition. The cache is populated based on observed access patterns.

[0030] The processing agent controller improves the performance of the distributed agent-based simulation system with spatial partitioning of the simulation domain. The processing agent controller reduces the communication cost by eliminating the need for relying on domainspecific knowledge and improving the performance by exploiting the observed access patterns. The processing agent controller improves the efficiency of resource usage (e.g., a network) compared with statically defined ghost cells. The processing agent controller does not retain the cached items for more than one simulation step.

[0031] The processing agent controller eliminates the need for statically configuring the cache according to simulation-specific expert knowledge. The present approach employed by the processing agent controller is self-adaptive and fully decentralized which allows to perform optimization in large configurations with heterogeneous workloads without expert supervision as it only relies on information locally available on each machine. Hence, no centralized coordination or storage is required. Further, the present approach can be employed in fully decentralized or centrally coordinated simulator designs or hybrids thereof.

[0032] The processing agent controller that is used for the execution of the distributed simulation configures partitions and controls over the computing resources / machines available. The processing agent controller removes the cached data entirely after each simulation step and observes and predicts the amount of data that needs to be prefetched to make all required information locally available.

[0033] Optionally, the processing agent controller is further configured to observe actual access patterns. An access pattern indicates what information is requested from which partition, and base a prediction of the information required for executing the next simulation step on these observed access patterns. The processing agent controller leverages the performance gain from the impact of the communication in the execution of the simulation step and reduces the latency of data transfer through the cache, thereby reducing the blocking of communication. Preloading of data in the cache as part of asynchronous simulation execution reduces the latency of communication in the execution of the simulation step thereby improving the performance of the simulation.

[0034] Optionally, the processing agent controller is further configured to execute two phases for each simulation step. The two phases comprise a cache warmup phase and an agent state update phase. The cache warmup phase is executed before agent states are updated. During the cache warmup phase, the cache is populated with information on remote sectors predicted to be required for the current simulation step.

[0035] Optionally, the processing agent controller is further configured to: (i) clear the cache; (ii) and provide the observed accesses to remote sectors to a predictor, whereby the predictor is configured to process the access records to enable a subsequent prediction providing a prediction on the neighborhood union set for the current timestep. The predictor determines which remote sectors to be prefetched. The cache size is not predetermined, but it fits all remote sectors from the neighborhood union set. The predictor leverages continuity of the agent that is simulated to improve efficiency of communication anticipating the necessary data. The cache warmup phase anticipated by the predictor minimizes the synchronous remote communication, thereby improving overall simulation performance.

[0036] Optionally, the processing agent controller is further configured to: for each partition p: (i) clear the cache with information on remote sectors; (ii) pass the neighborhood union set recorded in the previous simulation step (t-1) to the predictor; (iii) invoke the predictor to obtain the predicted neighborhood union set (N_pA* (t)) for the current simulation step t; (iv) request information on each remote sector contained in the predicted neighborhood union set (N_pA* (t)) from the responsible remote machines; and (v) populate the cache with the information on the requested remote sectors.

[0037] Optionally, the processing agent controller is further configured to execute the Agent State Update Phase, which comprises during simulation step t: for each partition p: (i) record each access of a remote sector; (ii) determine that the accessed sector is available in the cache, and then utilize the cached accessed sector; and (iii) determine that the accessed sector is not available in the cache, and then retrieve it from a responsible remote machine, add it to the cache, and utilize the accessed sector.

[0038] Optionally, the processing agent controller is further configured to utilize the accessed sector to (i) observe and record the exact neighborhood (N(a,t)) used by models of an agent (a) at time t; and (ii) after processing all agents for time t, compute the neighborhood union set (N_p(t)) that is, the union of all neighborhood sets of all agents processed by the machine responsible for partition p.

[0039] Optionally, the processing agent controller is further configured to, before executing the next simulation step, feed N_p(t) to the predictor to predict the neighborhood union set for the next simulation step N*_p(t+1), and request and retrieve the agent states from all sectors in N*_p(t+1) from the responsible machines and populate the cache with this information. Optionally, the predictor is configured to provide empty predictions. The predictor may be configured to provide predictions based on statically predicting the neighborhood union set to be all sectors within a maximum distance of the partition.

[0040] Optionally, the predictor is configured to exploit properties of the domain being simulated. When agent movement is not stochastic, but exhibits locality the position of an agent is close to the position in the next timestep. The predictor may be configured to provide a set of recently accessed remote sectors.

[0041] Optionally, the processing agent controller is further configured to request and retrieve remote sectors from a predicted neighborhood union set asynchronously during the cache warmup phase, enabling processing state updates for agents not requiring information on remote sectors before receiving replies from the remote machines.

[0042] According to a second aspect, there is provided a method for a processing agent controller configured to operate in a distributed agent-based simulation system with spatial partitioning of the simulation domain. The method includes employing a cache for required information retrieved from a different partition. The cache is populated based on observed access patterns.

[0043] The method improves the performance of the distributed agent-based simulation system with spatial partitioning of the simulation domain. The method reduces the communication cost by eliminating the need for relying on domain-specific knowledge and improving the performance by exploiting the observed access patterns. The method improves the efficiency of resource usage (e.g., a network) compared with statically defined ghost cells. The method does not retain the cached items for more than one simulation step. The method eliminates the need for statically configuring the cache according to simulation-specific expert knowledge. The present method performed by the processing agent controller is self-adaptive and fully decentralized which allows to perform optimization in large configurations with heterogeneous workloads without expert supervision as it only relies on information locally available on each machine. Hence, no centralized coordination or storage is required.

[0044] According to a third aspect, there is provided a computer program product including program instructions for performing the above method, when executed by one or more processors in a processing agent system. Therefore, in contradistinction to the existing solutions, the processing agent controller improves the performance of the distributed agent-based simulation system with spatial partitioning of the simulation domain. The processing agent controller reduces the communication cost by eliminating the need for relying on domain-specific knowledge and improving the performance by exploiting the observed access patterns. The processing agent controller improves the efficiency of resource usage (e.g., a network) compared with statically defined ghost cells. The processing agent controller does not retain the cached items for more than one simulation step. The method eliminates the need for statically configuring the cache according to simulation-specific expert knowledge. The processing agent controller is self- adaptive and fully decentralized which allows to perform optimization in large configurations with heterogeneous workloads without expert supervision as it only relies on information locally available on each machine. Hence, no centralized coordination or storage is required.

[0045] These and other aspects of the disclosure will be apparent from the implementation(s) described below.

[0046] BRIEF DESCRIPTION OF DRAWINGS

[0047] Implementations of the disclosure will now be described, by way of example only, with reference to the accompanying drawings, in which:

[0048] FIG. 1 is a block diagram that illustrates a processing agent controller configured to operate in a distributed agent-based simulation system with spatial partitioning of the simulation domain in accordance with an implementation of the disclosure;

[0049] FIG. 2 illustrates a schematic illustration of a distributed agent-based simulation system in accordance with an implementation of the disclosure;

[0050] FIG. 3 illustrates a control flow diagram of a simulation executed by a processing agent controller in accordance with an implementation of the disclosure;

[0051] FIG. 4 is a control flow diagram that illustrates execution of a cache warmup phase by a processing agent controller in accordance with an implementation of the disclosure;

[0052] FIG. 5 is a control flow diagram that illustrates execution of an agent state update phase by a processing agent controller in accordance with an implementation of the disclosure; FIG. 6 illustrates a control flow of an execution of a cache warmup phase and an agent state update phase by a processing agent controller before executing a next simulation step for an agent in accordance with an implementation of the disclosure;

[0053] FIG. 7 illustrates a control flow of an execution of a cache warmup phase and an agent state update phase by a processing agent controller before executing a next simulation step for all agents in accordance with an implementation of the disclosure;

[0054] FIGS. 8A-8F are exemplary illustrations of an execution of a simulation by a processing agent controller in accordance with an implementation of the disclosure;

[0055] FIG. 9 is a graph that illustrates a performance increase in a distributed agent-based simulation system using a processing agent controller in accordance with an implementation of the disclosure;

[0056] FIG. 10 is a flow diagram that illustrates a method for a processing agent controller configured to operate in a distributed agent-based simulation system with spatial partitioning of the simulation domain in accordance with an implementation of the disclosure; and

[0057] FIG. 11 is an illustration of a computer system (e.g., a distributed agent-based simulation system) in which the various architectures and functionalities of the various previous implementations may be implemented.

[0058] DETAILED DESCRIPTION OF THE DRAWINGS

[0059] Implementations of the disclosure provide a processing agent controller configured to operate in a distributed agent-based simulation system with spatial partitioning of the simulation domain and a method for the processing agent controller configured to operate in the distributed agent-based simulation system with spatial partitioning of the simulation domain.

[0060] To make solutions of the disclosure more comprehensible for a person skilled in the art, the following implementations of the disclosure are described with reference to the accompanying drawings.

[0061] Terms such as "a first", "a second", "a third", and "a fourth" (if any) in the summary, claims, and foregoing accompanying drawings of the disclosure are used to distinguish between similar objects and are not necessarily used to describe a specific sequence or order. It should be understood that the terms so used are interchangeable under appropriate circumstances, so that the implementations of the disclosure described herein are, for example, capable of being implemented in sequences other than the sequences illustrated or described herein. Furthermore, the terms "include" and "have" and any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, a method, a system, a product, or a device that includes a series of steps or units, is not necessarily limited to expressly listed steps or units but may include other steps or units that are not expressly listed or that are inherent to such process, method, product, or device.

[0062] FIG. 1 is a block diagram that illustrates a processing agent controller 104 configured to operate in a distributed agent-based simulation system 102 with spatial partitioning of the simulation domain in accordance with an implementation of the disclosure. The processing agent controller 104 is further configured to employ a cache 106 for required information retrieved from a different partition. The cache 106 is populated based on observed access patterns.

[0063] The processing agent controller 104 improves the performance of the distributed agent-based simulation system 102 with spatial partitioning of the simulation domain. The processing agent controller 104 reduces the communication cost by eliminating the need for relying on domainspecific knowledge and improving the performance by exploiting the observed access patterns. The processing agent controller 104 improves the efficiency of resource usage (e.g., a network) compared with statically defined ghost cells. The processing agent controller 104 does not retain the observed access patterns for more than one simulation step. The processing agent controller 104 eliminates the need for statically configuring the cache 106 according to simulation-specific expert knowledge.

[0064] Optionally, the processing agent controller 104 is further configured to observe actual access patterns. An access pattern indicates what information is requested from which partition, and base a prediction of the information required for executing the next simulation step on these observed access patterns.

[0065] Optionally, the processing agent controller 104 observes the actual access patterns (i.e., what information from other partitions is actually requested) and uses them to predict the information required for executing the next simulation step, instead of statically defining the cache. Similar to the ghost cell approach, the processing agent controller 104 may request this information before executing the next simulation step. When executing the next simulation step, all information predicted to be required may be readily available to the processing agent controller 104 without any additional communication cost. The effectiveness of the present approach (i.e., dynamic adaptive ghost cell approach) employed by the processing agent controller 104 depends on the accuracy of the prediction. For example, incorrectly predicting that some information may be used may result in obsolete communication, or incorrectly predicting that some information may not be used may result in having to retrieve that information remotely while executing the simulation step, and hence, the performance loss may occur due to incorrect predicting.

[0066] The processing agent controller 104 leverages the performance gain from the impact of the communication in the execution of the simulation step and reduces the latency of data transfer through the cache 106, thereby reducing the blocking of communication. Preloading of data in the cache 106 as part of asynchronous simulation execution reduces the latency of communication in the execution of the next simulation step thereby improving the performance of the simulation.

[0067] Optionally, the processing agent controller 104 is further configured to execute two phases for each simulation step. The two phases include a cache warmup phase and an agent state update phase. The cache warmup phase is executed before agent states are updated. During the cache warmup phase, the cache 106 is populated with information on remote sectors predicted to be required for the current simulation step.

[0068] In the distributed agent-based simulation system 102, it is not possible to specify ahead of time which remote sectors may be required exactly. For example, in the case of traffic simulation, the processing agent controller 104 employs a behavioral agent model that needs to inspect a state of the next other agent ahead. Finding the next other agent may require information from just one remote sector (e.g., in case of dense traffic where the next agent ahead is close) or multiple remote sectors (e.g., in case of light traffic where multiple remote sectors without agents may need to be inspected before finding a sector with an agent). In this case, the required set of remote sectors may not be provided (i.e., either by a distance or explicitly) before conducting the simulation step. The processing agent controller 104 addresses both problems by not relying on a static configuration of the cache 106.

[0069] Optionally, the processing agent controller 104 is further configured to: (i) clear the cache 106; (ii) and provide the observed accesses to remote sectors to a predictor, whereby the predictor is configured to process the access records to enable a subsequent prediction providing a prediction on the neighborhood union set for the current timestep.

[0070] Optionally, the processing agent controller 104 relies on a black-box predictor suitable for predicting the neighborhood union set for the next simulation step when the neighborhood union sets are observed in the current and previous simulation steps. The processing agent controller 104 does not pose any requirements on the internal functioning or the accuracy of the predictor employed. However, the time taken during the cache warmup phase may not exceed the benefits of avoiding on-demand retrieval of the remote sectors.

[0071] Optionally, the predictor determines which remote sectors to be prefetched, but not based on scoring and a score threshold. The cache size is not predetermined, but it fits all remote sectors from the neighborhood union set. The predictor leverages continuity of the agent that is simulated to improve efficiency of communication anticipating the necessary data. The cache warmup phase anticipated by the predictor minimizes the synchronous remote communication, thereby improving overall simulation performance.

[0072] Optionally, the processing agent controller 104 is further configured to: for each partition p: (i) clear the cache 106 with information on remote sectors; (ii) pass the neighborhood union set recorded in the previous simulation step (t- 1) to the predictor; (iii) invoke the predictor to obtain the predicted neighborhood union set (N_pA* (t)) for the current simulation step t; (iv) request information on each remote sector contained in the predicted neighborhood union set (N_pA* (t)) from the responsible remote machines; and (v) populate the cache 106 with the information on the requested remote sectors.

[0073] Optionally, the processing agent controller 104 is further configured to execute the Agent State Update Phase. The Agent State Update Phase comprises during simulation step t: for each partition p: (i) record each access of a remote sector; (ii) determine that the accessed sector is available in the cache 106, and then utilize the cached accessed sector; and (iii) determine that the accessed sector is not available in the cache 106, and then retrieve it from a responsible remote machine, add it to the cache 106, and utilize the accessed sector.

[0074] Optionally, the processing agent controller 104 is further configured to utilize the accessed sector to observe and record the exact neighborhood (N(a,t)) used by models of an agent (a) at time t. After processing all agents for time t, the processing agent controller 104 computes the neighborhood union set (N_p(t)) that is, the union of all neighborhood sets of all agents processed by the machine responsible for partition p.

[0075] Optionally, the processing agent controller 104 is further configured to, before executing the next simulation step, feed N_p(t) to the predictor to predict the neighborhood union set for the next simulation step N*_p(t+1), and request and retrieve the agent states from all sectors in N*_p(t+1) from the responsible machines and populate the cache 106 with this information.

[0076] Optionally, the predictor is configured to provide empty predictions. The accuracy of the execution of the simulation step does not depend on the predictor that is employed. Because, inaccurate or even empty predictions may affect performance, but not the accuracy of the simulation step. In existing predictor, the empty predictions result in effectively disabling the cache 106, which results in all remote sectors in the neighborhood union set to be retrieved while updating agent states. Statically predicting the neighborhood union set to be all remote sectors within a maximum distance of the own partition results in the same behavior as with the statically defined ghost cells with the same distance. However, the potential performance benefit of using the predictors stems from the availability of predictors performing better than existing predictors in the simulation domain.

[0077] The predictor may be configured to provide predictions based on statically predicting the neighborhood union set to be all sectors within a maximum distance of the partition. However, the processing agent controller 104 does not statically define the cache based on a maximum range of interference between the agents. The processing agent controller 104 eliminates the need for configuring the remote sectors or for expert knowledge required to configure the required remote sectors. Further, the processing agent controller 104 eliminates the need for configuring a maximum range based on domain-specific knowledge required. The processing agent controller 104 makes sure that no possible errors from the expert knowledge can affect the accuracy of execution of the simulation step.

[0078] Optionally, the predictor is configured to exploit properties of the domain being simulated. When agent movement is not stochastic, but exhibits locality, then the current position of an agent is close to the position in the next timestep. The predictor may exploit this property and may be configured to provide a set of recently accessed remote sectors. Optionally, the processing agent controller 104 is further configured to request and retrieve remote sectors from a predicted neighborhood union set asynchronously during the cache warmup phase, enabling processing state updates for agents not requiring information on remote sectors before receiving replies from the remote machines. Optionally, the processing agent controller 104 requests and retrieves the remote sectors from the predicted neighborhood union set asynchronously while the next simulation step is executed. This requires appropriate synchronization that a sector is requested, but not received yet at the time it is required for updating the agent’s state.

[0079] Optionally, the processing agent controller 104 is used for the execution of the distributed simulation configures partitions and controls over the computing resources / machines available. The processing agent controller 104 removes the cached data entirely at each simulation step and observes and predicts the amount of data that needs to be prefetched to ensure all required information is locally available.

[0080] The present approach employed by the processing agent controller 104 is self-adaptive and fully decentralized which allows to perform optimization in large configurations with heterogeneous workloads without expert supervision as it only relies on information locally available on each machine. Hence, no centralized coordination or storage is required. Further, the present approach can be employed in a fully decentralized or centrally coordinated simulator designs or hybrids thereof. The present approach employed by the processing agent controller 104 can scale arbitrarily with a size of the simulation domain and is based on observation / prediction of the communication requirements based on a specific state of the simulation.

[0081] FIG. 2 illustrates a schematic illustration of a distributed agent-based simulation system 200 in accordance with an implementation of the disclosure. A processing agent controller is configured to operate in the distributed agent-based simulation system 200. Each computer participating in the distributed agent-based simulation system 200 is running an instance of a simulation engine 202. Each instance of the simulation engine 202 is responsible for carrying out the simulation for one partition consisting of a subset of the simulation space (e.g., a road network). The distributed agent-based simulation system 200 includes a communication network 204 that communicates multiple instances of the simulation engine 202 using a message passing interface (MPI). In the distributed agent-based simulation system 200, the simulation space is subdivided into sectors (e.g., road segments). The states of agents (208A- C) are updated in each simulation step on the granularity of spatial queues (206A-C). Each spatial queue corresponds to one sector and also acts as a container for the agents (208A-C) located in that sector. The distributed agent-based simulation system 200 uses a pool of processing threads 210 to process the spatial queues / sectors (206A-C) and update the states of the contained agents (208A-C) in parallel.

[0082] The distributed agent-based simulation system 200 maintains a set of communication threads 212 for coordination and communication among the computers (e.g., remote machines). The communication threads 212 are used both for handling incoming MPI messages and asynchronously performing actions related to interaction with other computers. Most functionality related to interacting with other simulation instances is encapsulated in a remote state provider 214 of the distributed agent-based simulation system 200. The remote state provider 214 implements a logic for synchronizing the execution among the simulation instances such that all instances (i.e., logically) always execute the same simulation step and even the same phase within each step. This synchronization is achieved using MPI primitives. In order to compute traffic-aware routes for the agents (208A-C) independently in each simulation instance, the remote state provider 214 includes a functionality to globally distribute information on traffic and traffic light plans from each partition. For retrieving information on remote spatial queues (206A-C) / sectors, the remote state provider 214 provides an API that is used within the agent state update logic. Information on the remote spatial queues (206A-C) is cached to avoid redundant communication negatively impacting performance. The cached entries are invalidated / cleared at the beginning of each simulation step.

[0083] For example, if an agent 208A moves out of its current partition, it is migrated to the computer responsible for the partition to which the agent 208A moved to. This is achieved by serializing the agent's full state including all behavioral models and their respective state, transferring it, and re-instantiating the agent 208A in the simulation engine 202 responsible for the partition in which the agent 208A moved into.

[0084] The simulation engine 202 for which it is possible to define a discrete partitioning of the space such that a neighborhood union set can be defined, and for which the involved interaction physics has some continuity such that a predictor has a good chance to predict the future demand maximizes the impact of the processing agent controller. The examples of the simulation engine 202 are microscopic agent-based simulators (e.g., traffic simulators, crowd simulators, bicycles simulators, etc.) where weak scaling can be achieved through distributed partitioning and execution.

[0085] Optionally, the distributed agent-based simulation system 200 further includes a remote state provider cache 216 and a simulation phase coordinator 218. Optionally, the distributed agentbased simulation system 200 further performs a remote migration and teleport handling.

[0086] Optionally, the processing agent controller relies on means for communication among the computers (e.g., remote machines) for the sake of retrieving the required remote sectors from the respective computers responsible for them. However, no specific requirements are imposed on communication channels, frameworks, or abstraction. Since the communication is an inherent requirement for carrying out the distributed simulation at least when executing the simulation in lock-step, the same means for communication can be employed by the processing agent controller.

[0087] FIG. 3 illustrates a control flow diagram of a simulation executed by a processing agent controller in accordance with an implementation of the disclosure. The processing agent controller is configured to operate in a distributed agent-based simulation system with spatial partitioning of the simulation domain. The processing agent controller is further configured to employ a cache for required information retrieved from a different partition. The cache is populated based on observed access patterns. Optionally, the processing agent controller is further configured to execute two phases for each simulation step. The two phases includes a cache warmup phase and an agent state update phase. The cache warmup phase is executed before agent states are updated. At a step 302, the processing agent controller starts a simulation. At a step 304, during the cache warmup phase, the cache is populated with information on remote sectors predicted to be required for the current simulation step. At a step 306, the processing agent controller executes the agent state update phase to update a state of the agent. At a step 308, other simulation / sy stem-specific operations such as writing the full or partial simulation state to persistent storage for subsequent analysis are executed in each simulation step. At a step 310, the processing agent controller checks whether the simulation is completed or not, if not completed, goes to the step 304. At a step 312, the simulation ends.

[0088] Optionally, the processing agent controller is further configured to request and retrieve remote sectors from a predicted neighborhood union set asynchronously during the cache warmup phase, enabling processing state updates for agents not requiring information on remote sectors before receiving replies from the remote machines.

[0089] FIG. 4 is a control flow diagram that illustrates execution of a cache warmup phase by a processing agent controller in accordance with an implementation of the disclosure. The processing agent controller is further configured to execute two phases i.e., a cache warmup phase and an agent state update phase for each simulation step. The cache warmup phase is executed before agent states are updated. During the cache warmup phase, the cache is populated with information on remote sectors predicted to be required for the current simulation step. At a step 402, the processing agent controller clears cache with information on the remote sectors. At a step 404, the processing agent controller provides recorded / ob served accesses to the remote sectors to a predictor 412. The predictor 412 is configured to process the recorded / ob served accesses to enable a subsequent prediction providing a prediction on the neighborhood union set for the current timestep. At a step 406, the predictor 412 is invoked to obtain the predicted neighborhood union set for the current timestep, that is, the set of required remote sectors. At a step 408, the processing agent controller requests / retrieves information on each remote sector contained in the predicted neighborhood union set from the responsible remote machines (e.g., machine 2). At a step 410, the processing agent controller populates the cache with the information on the requested remote sectors.

[0090] Optionally, during the cache warmup phase, the processing agent controller is configured to: for each partition p and before each simulation step t, t > 1: (i) clear the cache with information on remote sectors; (ii) pass the neighborhood union set recorded in the previous simulation step (t-1) to the predictor 412; (iii) invoke the predictor 412 to obtain the predicted neighborhood union set (N_pA* (t)) for the current simulation step t; (iv) request information on each remote sector contained in the predicted neighborhood union set (N_pA* (t)) from the responsible remote machines; and (v) upon receiving the information on the requested remote sectors, populate the cache with the information on the requested remote sectors.

[0091] FIG. 5 is a control flow diagram that illustrates execution of an agent state update phase by a processing agent controller in accordance with an implementation of the disclosure. At a step 502, during simulation step t, t > 1, for each partition p, the processing agent controller records each access of a remote sector. At a step 504, the processing agent controller determines that the accessed sector is available in the cache. At a step 506, if the accessed sector is available in the cache, the processing agent controller utilizes / retrieves the cached accessed sector and returns it to the agent state update logic. At a step 508, if the accessed sector is not available in the cache, and then the processing agent controller retrieves it from a responsible remote machine. At a step 510, the processing agent controller adds the accessed sector to the cache, and utilizes / retrieves the accessed sector and returns it to the agent state update logic.

[0092] Optionally, the processing agent controller is further configured to utilize the accessed sector to observe and record the exact neighborhood (N(a,t)) used by models of an agent (a) at time t.; After processing all agents for time t, the processing agent controller is further configured to compute the neighborhood union set (N_p(t)) that is, the union of all neighborhood sets of all agents processed by the machine responsible for partition p.

[0093] Optionally, the predictor is configured to exploit properties of the domain being simulated. When agent movement is not stochastic, but exhibits locality the position of an agent is close to the position in the next timestep.

[0094] FIG. 6 illustrates a control flow of an execution of a cache warmup phase and an agent state update phase by a processing agent controller before executing a next simulation step for an agent in accordance with an implementation of the disclosure. The control flow depicts a prestep execution / cache warmup phase to retrieve a remote sector of a remote machine (e.g., machine 2) in steps 602 to 610. At a step 602, the processing agent controller clears a cache 624 with information on remote sectors. At a step 604, the processing agent controller provides recorded / ob served accesses to the remote sectors to a predictor 622. The predictor 622 is configured to process the recorded / ob served accesses to enable a subsequent prediction providing a prediction on the neighborhood union set for the current timestep. At a step 606, the predictor 622 is invoked to obtain the predicted neighborhood union set for the current timestep, that is, the set of required remote sectors. At a step 608, the processing agent controller requests / retrieves information on each remote sector contained in the predicted neighborhood union set from the responsible remote machines (e.g., machine 2). At a step 610, the processing agent controller populates the cache 624 with the information on the requested remote sectors.

[0095] Optionally, the processing agent controller is further configured to, before executing the next simulation step, feed N_p(t) to the predictor 622 to predict the neighborhood union set for the next simulation step N*_p(t+1), and request and retrieve the agent states from all sectors in N*_p(t+1) from the responsible machines and populate the cache 624 with this information. The control flow depicts the agent state update phase / simulation step computation for an agent in steps 612 to 620. At a step 612, during simulation step t, t > 1: for each partition p, the processing agent controller records each access of the remote sector. At a step 614, the processing agent controller determines that the accessed sector is available in the cache 624. At a step 616, if the accessed sector is available in the cache 624, the processing agent controller utilizes / retrieves the cached accessed sector and returns it to the agent state update logic. At a step 618, if the accessed sector is not available in the cache 624, and then the processing agent controller retrieves it from a responsible remote machine. At a step 620, the processing agent controller adds the accessed sector to the cache 624, utilizes / retrieves the accessed sector, and returns it to the agent state update logic.

[0096] Optionally, the processing agent controller is further configured to utilize the accessed sector to observe and record the exact neighborhood (N(a,t)) used by models of an agent (a) at time t. After processing all agents for time t, the processing agent controller is further configured to compute the neighborhood union set (N_p(t)) that is, the union of all neighborhood sets of all agents processed by the machine responsible for partition p.

[0097] Optionally, the predictor 622 is configured to provide empty predictions. The predictor 622 may be configured to provide predictions based on statically predicting the neighborhood union set to be all sectors within a maximum distance of the partition. Optionally, the predictor 622 is configured to exploit properties of the domain being simulated. When agent movement is not stochastic, but exhibits locality the position of an agent is close to the position in the next timestep. The predictor 622 may be configured to provide a set of recently accessed remote sectors.

[0098] FIG. 7 illustrates a control flow of an execution of a cache warmup phase and an agent state update phase by a processing agent controller before executing a next simulation step for all agents in accordance with an implementation of the disclosure. Optionally, the processing agent controller is further configured to execute two phases i.e., a cache warmup phase and an agent state update phase for each simulation step. The cache warmup phase is executed before agent states are updated. The cache warmup phase is executed in steps 702 to 710. At a step 702, the processing agent controller clears a cache 724 with information on remote sectors. At a step 704, the processing agent controller provides recorded / ob served accesses to remote sectors to a predictor 722. The predictor 722 is configured to process the recorded / ob served accesses to enable a subsequent prediction providing a prediction on the neighborhood union set for the current timestep. At a step 706, the predictor 722 is invoked to obtain the predicted neighborhood union set for the current timestep, that is, the set of required remote sectors. At a step 708, the processing agent controller requests / retrieves information on each remote sector contained in the predicted neighborhood union set from the responsible remote machines (e.g., machine 2). At a step 710, the processing agent controller populates the cache 724 with the information on the requested remote sectors.

[0099] Optionally, the processing agent controller is further configured to, before executing the next simulation step, feed N_p(t) to the predictor 722 to predict the neighborhood union set for the next simulation step N*_p(t+1), and request and retrieve the agent states from all sectors in N*_p(t+1) from the responsible machines and populate the cache 724 with this information.

[0100] The agent state update phase for all agents is executed in steps 712 to 720 for each partition p. At a step 712, during simulation step t for each partition p, the processing agent controller records each access of the remote sector. At a step 714, the processing agent controller determines that the accessed sector is available in the cache 724. At a step 716, if the accessed sector is available in the cache 724, the processing agent controller utilizes / retrieves the cached accessed sector and returns it to the agent state update logic. At a step 718, if the accessed sector is not available in the cache 724, and then the processing agent controller retrieves it from a responsible remote machine. At a step 720, the processing agent controller adds the accessed sector to the cache 724, and utilizes / retrieves the accessed sector and returns it to the agent state update logic.

[0101] Optionally, the processing agent controller is further configured to utilize the accessed sector to observe and record the exact neighborhood (N(a,t)) used by models of all agent (a) at time t. After processing all agents for time t, the processing agent controller is configured to compute the neighborhood union set (N_p(t)) that is, the union of all neighborhood sets of all agents processed by the machine responsible for partition p.

[0102] FIGS. 8A-8F are exemplary illustrations of an execution of a simulation by a processing agent controller in accordance with an implementation of the disclosure. The processing agent controller is configured to operate in a distributed agent-based simulation system with spatial partitioning of the simulation domain. FIGS. 8A-8F depict a simple traffic simulation scenario with two partitions (e.g., a machine 1 802 and a machine 2 804) enclosed by dashed black lines, three agents (808A-C) that are depicted by car icons, remote sectors (e.g., sectors 43-48) on the path 810 of an agent 2 808B and the neighborhood union set for agent 2 808B is sector 43, sector 44 and sector 45. The processing agent controller is configured to employ a cache 806 for required information retrieved from a different partition (e.g., the machine 2804). The cache 806 is populated based on observed access patterns. Optionally, the processing agent controller is further configured to observe actual access patterns. An access pattern indicates what information is requested from which partition, and base a prediction of the information required for executing the next simulation step on these observed access patterns.

[0103] Optionally, the processing agent controller is further configured to execute two phases i.e., a cache warmup phase and an agent state update phase for each simulation step. The cache warmup phase is executed before agent states are updated. During the cache warmup phase, the cache 806 is populated with information on remote sectors predicted to be required for the current simulation step.

[0104] FIG. 8A depicts an exemplary execution step 1 performed by the processing agent controller. At execution step 1, the processing agent controller is configured to clear the cache 806 with information on remote sectors (e.g., sector 43-48) and if there are no remote sectors in the cache 806, the processing agent controller of the machine 1 802 requests to the machine 2 804 about the information of remote sectors to be required for a current simulation step, t=l, for the partition p (e.g., the machine 1 802).

[0105] FIG. 8B depicts an exemplary execution step 2 performed by the processing agent controller. At execution step 2, the processing agent controller records each access of the remote sector (i.e., sector 43, sector 44, sector 45) for the partition p (e.g., the machine 1 802), during the simulation step, t=l.

[0106] FIG. 8C depicts an exemplary execution step 3 performed by the processing agent controller. At execution step 3, the processing agent controller provides the recorded / ob served accesses to remote sectors to a predictor. The predictor is configured to process the recorded / ob served accesses to enable a subsequent prediction providing a prediction on the neighborhood union set for the current simulation step, t=l. The predictor is invoked to obtain the predicted neighborhood union set for the current simulation step, t=l, that is, the set of required remote sectors. The processing agent controller of the machine 1 802 requests / retrieves information on each remote sector contained in the predicted neighborhood union set from the responsible remote machines (e.g., the machine 2).

[0107] FIG. 8D depicts an exemplary execution step 4 performed by the processing agent controller. At execution step 4, the processing agent controller populates the cache 806 with the information on the requested remote sectors for the current simulation step, t=l.

[0108] FIG. 8E depicts an exemplary execution step 5 performed by the processing agent controller. At execution step 5, during the simulation step, t=2, for the partition p (e.g., the machine 1 802), the processing agent controller records each access of a remote sector (i.e., sector 46) and determines that the accessed sector (i.e., sector 46) is available in the cache 806. If the accessed sector (i.e., sector 46) is available in the cache 806, the processing agent controller utilizes / retrieves the cached accessed sector (i.e., sector 46) and returns it to the agent state update logic. If the accessed sector (i.e., sector 46) is not available in the cache 806, and then the processing agent controller retrieves it from a responsible remote machine (i.e., the machine 2 804).

[0109] FIG. 8F depicts an exemplary execution step 6 performed by the processing agent controller. At execution step 6, during the simulation step, t=2, for the partition p (e.g., machine 1 802), the processing agent controller adds the accessed sector (i.e., sector 46) to the cache 806, and utilizes / retrieves the accessed sector (i.e., sector 46) and returns it to the agent state update logic.

[0110] FIG. 9 is a graph that illustrates a performance increase in a distributed agent-based simulation system using a processing agent controller in accordance with an implementation of the disclosure. The graph indicates that the performance of the distributed agent-based simulation system using the processing agent controller 902 is higher than the performance of the distributed agent-based simulation system with statically defined ghost cells 904. The lower values in the graph correspond to higher performance (i.e., -20% performance gain). If the neighborhood union set is predictable, the distributed agent-based simulation system provides an improved overall performance for spatially partitioned distributed agent-based simulation systems and an improved efficiency of resource usage (e.g., a network), when compared with statically defined ghost cells. The distributed agent-based simulation system with the processing agent controller does not require a domain-specific knowledge or parameter tuning on the simulation scenario compared to the statically defined ghost cells, which require prior knowledge. The distributed agent-based simulation system with the processing agent controller enables the use of arbitrary generic black-box predictors or predictors exploiting domainspecific simulation properties.

[0111] FIG. 10 is a flow diagram that illustrates a method for a processing agent controller configured to operate in a distributed agent-based simulation system with spatial partitioning of the simulation domain in accordance with an implementation of the disclosure. At a step 1002, a cache is employed for required information retrieved from a different partition. The cache is populated based on observed access patterns.

[0112] The method improves the performance of the distributed agent-based simulation system with spatial partitioning of the simulation domain. The method reduces the communication cost by eliminating the need for relying on domain-specific knowledge and improving the performance by exploiting the observed access patterns. The method improves the efficiency of resource usage (e.g., a network) compared with statically defined ghost cells. The method does not retain the observed access patterns for more than one simulation step. The method eliminates the need for statically configuring the cache according to simulation-specific expert knowledge. The present method performed by the processing agent controller is self-adaptive and fully decentralized which allows to perform optimization in large configurations with heterogeneous workloads without expert supervision as it only relies on information locally available on each machine. Hence, no centralized coordination or storage is required.

[0113] In an embodiment, a computer program product including program instructions for performing the above method, when executed by one or more processors in a processing agent system.

[0114] FIG. 11 is an illustration of a computer system (e.g., a distributed agent-based simulation system) in which the various architectures and functionalities of the various previous implementations may be implemented. As shown, the computer system 1100 includes at least one processor 1104 that is connected to a bus 1102, wherein the computer system 1100 may be implemented using any suitable protocol, such as PCI (Peripheral Component Interconnect), PCI-Express, AGP (Accelerated Graphics Port), Hyper Transport, or any other bus or point-to- point communication protocol (s). The computer system 1100 also includes a memory 1106.

[0115] Control logic (software) and data are stored in the memory 1106 which may take a form of random-access memory (RAM). In the disclosure, a single semiconductor platform may refer to a sole unitary semiconductor-based integrated circuit or chip. It should be noted that the term single semiconductor platform may also refer to multi-chip modules with increased connectivity which simulate on-chip modules with increased connectivity which simulate on- chip operation, and make substantial improvements over utilizing a conventional central processing unit (CPU) and bus implementation. Of course, the various modules may also be situated separately or in various combinations of semiconductor platforms per the desires of the user.

[0116] The computer system 1100 may also include a secondary storage 1110. The secondary storage 1110 includes, for example, a hard disk drive and a removable storage drive, representing a floppy disk drive, a magnetic tape drive, a compact disk drive, digital versatile disk (DVD) drive, recording device, universal serial bus (USB) flash memory. The removable storage drive at least one of reads from and writes to a removable storage unit in a well-known manner.

[0117] Computer programs, or computer control logic algorithms, may be stored in at least one of the memory 1106 and the secondary storage 1110. Such computer programs, when executed, enable the computer system 1100 to perform various functions as described in the foregoing. The memory 1106, the secondary storage 1110, and any other storage are possible examples of computer-readable media.

[0118] In an implementation, the architectures and functionalities depicted in the various previous figures may be implemented in the context of the processor 1104, a graphics processor coupled to a communication interface 1112, an integrated circuit (not shown) that is capable of at least a portion of the capabilities of both the processor 1104 and a graphics processor, a chipset (namely, a group of integrated circuits designed to work and sold as a unit for performing related functions, and so forth).

[0119] Furthermore, the architectures and functionalities depicted in the various previous-described figures may be implemented in a context of a general computer system, a circuit board system, a game console system dedicated for entertainment purposes, an application-specific system. For example, the computer system 1100 may take the form of a desktop computer, a laptop computer, a server, a workstation, a game console, an embedded system.

[0120] Furthermore, the computer system 1100 may take the form of various other devices including, but not limited to a personal digital assistant (PDA) device, a mobile phone device, a smart phone, a television, and so forth. Additionally, although not shown, the computer system 1100 may be coupled to a network (for example, a telecommunications network, a local area network (LAN), a wireless network, a wide area network (WAN) such as the Internet, a peer-to-peer network, a cable network, or the like) for communication purposes through an I / O interface 1108

[0121] It should be understood that the arrangement of components illustrated in the figures described are exemplary and that other arrangement may be possible. It should also be understood that the various system components (and means) defined by the claims, described below, and illustrated in the various block diagrams represent components in some systems configured according to the subject matter disclosed herein. For example, one or more of these system components (and means) may be realized, in whole or in part, by at least some of the components illustrated in the arrangements illustrated in the described figures.

[0122] In addition, while at least one of these components are implemented at least partially as an electronic hardware component, and therefore constitutes a machine, the other components may be implemented in software that when included in an execution environment constitutes a machine, hardware, or a combination of software and hardware.

[0123] Although the disclosure and its advantages have been described in detail, it should be understood that various changes, substitutions, and alterations can be made herein without departing from the spirit and scope of the disclosure as defined by the appended claims.

Claims

CLAIMS1. A processing agent controller (104) configured to operate in a distributed agent-based simulation system (102, 200) with spatial partitioning of the simulation domain, wherein the processing agent controller is further configured to employ a cache (106, 624, 724, 806) for required information retrieved from a different partition, wherein the cache is populated based on observed access patterns.

2. The processing agent controller according to claim 1, wherein the processing agent controller is further configured to observe actual access patterns, wherein an access pattern indicates what information is requested from which partition, and base a prediction of the information required for executing the next simulation step on these observed access patterns.

3. The processing agent controller according to claim 1 or 2, wherein the processing agent controller is further configured to execute two phases for each simulation step; a cache warmup phase and an agent state update phase, wherein the cache warmup phase is executed before agent states are updated, wherein, during the cache warmup phase, the cache is populated with information on remote sectors predicted to be required for the current simulation step.

4. The processing agent controller according to claim 3, wherein the processing agent controller is further configured to: clear the cache; and provide the observed accesses to remote sectors to a predictor (412, 622, 722), whereby the predictor is configured to process the access records to enable a subsequent prediction providing a prediction on the neighborhood union set for the current timestep.

5. The processing agent controller according to claim 3 or 4, wherein the processing agent controller is further configured to: for each partition p: clear the cache with information on remote sectors; pass the neighborhood union set recorded in the previous simulation step (t-1) to the predictor; invoke the predictor to obtain the predicted neighborhood union set (N_pA* (t)) for the current simulation step t; request information on each remote sector contained in the predicted neighborhood union set (N_pA* (t)) from the responsible remote machines; andpopulate the cache with the information on the requested remote sectors.

6. The processing agent controller according to any of claims 3 to 5, wherein the processing agent controller is further configured to execute the Agent State Update Phase, which comprises during simulation step t: for each partition p: record each access of a remote sector; determine that the accessed sector is available in the cache, and then utilize the cached accessed sector; and determine that the accessed sector is not available in the cache, and then retrieve it from a responsible remote machine, add it to the cache, and utilize the accessed sector.

7. The processing agent controller according to any of claims 3 to 6, wherein the processing agent controller is further configured to utilize the accessed sector to observe and record the exact neighborhood (N(a,t)) used by models of an agent (a) (208A, 808A) at time t; and after processing all agents (208A-C, 808A-C) for time t, compute the neighborhood union set (N_p(t)) that is, the union of all neighborhood sets of all agents processed by the machine responsible for partition p.

8. The processing agent controller according to any of claims 3 to 7, wherein the processing agent controller is further configured to before, executing the next simulation step, feed N_p(t) to the predictor to predict the neighborhood union set for the next simulation step N*_p(t+1); and request and retrieve the agent states from all sectors in N*_p(t+1) from the responsible machines and populate the cache with this information.

9. The processing agent controller according to any of claims 3 to 8, wherein the predictor is configured to provide empty predictions.

10. The processing agent controller according to any of claims 3 to 9, wherein the predictor is configured to provide predictions based on statically predicting the neighborhood union set to be all sectors within a maximum distance of the partition.

11. The processing agent controller according to any of claims 3 to 8, wherein the predictor is configured to exploit properties of the domain being simulated, wherein when agent movement is not stochastic, but exhibits locality the position of an agent is close to the position in the next timestep.

12. The processing agent controller according to any of claims 3 to 8, wherein the predictor is configured to provide a set of recently accessed remote sectors.

13. The processing agent controller according to any preceding claim, wherein the processing agent controller is further configured to request and retrieve remote sectors from a predicted neighborhood union set asynchronously during the cache warmup phase, enabling processing state updates for agents not requiring information on remote sectors before receiving replies from the remote machines.

14. A method for a processing agent controller configured to operate in a distributed agentbased simulation system with spatial partitioning of the simulation domain, wherein the method comprises: employing a cache for required information retrieved from a different partition, wherein the cache is populated based on observed access patterns.

15. A computer program product comprising program instructions for performing the method according to claim 14, when executed by one or more processors in a processing agent system.

Citation Information

Patent Citations

  • Multi-agent simulation system

    US20220391559A1