Online Relational Inference for Evolving Multi-agent Interacting Systems

We introduce a novel framework, Online Relational Inference (ORI), designed to efficiently identify hidden interaction graphs in evolving multi-agent interacting systems using streaming data. Unlike traditional offline methods that rely on a fixed training set, ORI employs online backpropagation, updating the model with each new data point, thereby allowing it to adapt to changing environments in real-time. A key innovation is the use of an adjacency matrix as a trainable parameter, optimized through a new adaptive learning rate technique called AdaRelation, which adjusts based on the historical sensitivity of the decoder to changes in the interaction graph. Additionally, a data augmentation method named Trajectory Mirror (TM) is introduced to improve generalization by exposing the model to varied trajectory patterns. Experimental results on both synthetic datasets and real-world data (CMU MoCap for human motion) demonstrate that ORI significantly improves the accuracy and adaptability of relational inference in dynamic settings compared to existing methods. This approach is model-agnostic, enabling seamless integration with various neural relational inference (NRI) architectures, and offers a robust solution for real-time applications in complex, evolving systems.

Paper

References (31)

Scroll for more · 19 remaining

Similar papers

Peer review

Reviewer arYB5/10 · confidence 1/52024-06-20

Summary

The paper introduces the Online Relational Inference (ORI) framework to identify hidden interaction graphs in evolving multi-agent systems using streaming data. The framework employs online backpropagation, updating the model with each new data point, thus adapting to dynamic environments in real-time. ORI features a trainable adjacency matrix optimized through an adaptive learning rate technique, which adjusts based on the historical sensitivity of the decoder to changes in the interaction graph. Experimental results on synthetic datasets and the CMU MoCap dataset demonstrate ORI's effectiveness in improving relational inference accuracy and adaptability.

Strengths

1. The paper is well-written. 2. The studied problem is interesting. 3. The experimental validation on both synthetic and real-world datasets is sufficient.

Weaknesses

1. The efficiency analysis is not sufficient. I suggest authors should include the comparison of training time. 2. The compared baselines are weak and limited. Authors should include stronger baselines published in 2023-2024. 3. The technical contribution is a little weak. The Eqn. 1 seems to be a natural way to optimize the graph structure. Moroever, I'm not sure whether there is overfitting when minimizing Eqn. 1. 4. The limitation of the work is not sufficiently discussed.

Questions

See above.

Rating

5

Confidence

1

Soundness

3

Presentation

2

Contribution

2

Limitations

NA

Authorsrebuttal2024-08-13

Follow-up from Authors

Dear Reviewer arYB, Following our previous response, we have carefully addressed all the concerns raised during the review process. We trust that our answers have adequately resolved the issues highlighted. If our answers meet your expectations, we kindly ask for your consideration in updating the final scores accordingly. Please don't hesitate to reach out if any further clarification or discussion is needed. Thank you for your time and consideration. Best regards, Authors

Reviewer arYB2024-08-13

To be honest, I'm not familiar with the topic. I remain neutral with the paper. Thank you. However, I do expect more baselines. There are only four baselines now. (3 in submission and 1 in rebuttal).

Authorsrebuttal2024-08-14

Response to Reviewer arYB

We understand that the reviewer may not be familiar with this field. The authors still sincerely appreciate your efforts to understand our paper and provide insightful comments! We will include these discussions in the revised paper so that readers who are not familiar with the topic can easily follow the contributions of our paper. Also, we will prepare more stronger and recent baselines. Thank you once again for your thorough review. Sincerely, Authors

Reviewer mc8m5/10 · confidence 3/52024-07-04

Summary

The paper introduces a novel framework called Online Relational Inference (ORI) designed to identify hidden interaction graphs in evolving multi-agent systems using streaming data. ORI employs online backpropagation and treats the adjacency matrix as a trainable parameter, optimized through an adaptive learning rate technique called AdaRelation. Additionally, a data augmentation method named Trajectory Mirror (TM) is introduced to improve generalization by exposing the model to varied trajectory patterns. Experimental results were carried on synthetic and real-world datasets.

Strengths

- The proposed method is the first addressing the dynamics in relational inference with online-learning approach. - ORI is the first model-agnostic online relational inference framework for multi-agent systems.

Weaknesses

- The reliance on an encoder-less design may not fully leverage the potential benefits of more sophisticated encoder architectures. Such as how to perform supervised learning? - Several statements in the paper need to be explained, please refer to questions. - The model does not explicitly address the inference of directed interactions between components. - The evaluation metrics like AVG. Accuracy in Table 2 confused me a lot. Usually we report the final accuracy instead of the AVG. Accuracy over the entire training period.

Questions

Here are my questions: 1. In line 30 "They generally perform training offline assuming the well-aligned distribution in training and testing data." Actually, I don't think this really matters, as the previous methods are unsupervised on the relations. 2. Line 40 "... primarily due to the slow optimization of the encoder." I could not reach this statement from the results in table 2. BTW, table 2 is too far from this sentence. 3. As stated: the method "employs the historical adjacency matrix to indirectly estimate the decoder’s sensitivity over the adjacency matrix and determine whether the learning needs to be accelerated." Will the errors be accumulated as well? 4. Line 145 "This means the learning is performed from the loss generated by the decoder... " Please check the ELBO loss in NRI. It contains a part called KL-term, which works on the output of encoder. 5. It would be great if the authors can elaborate more about the deviation in Eq. 1. What might be the intuition behind the deviation? How did this value change during training? Or possibly, it would be better if the equation comes with a proof on it actually works. 6. As the $I(t)$ is initially filled with 0.5. Then how to get the adjacency matrix from it to feed to the GNN? 7. What is the meaning behind the norm of gradient $\|\|\frac{dL_{mse}}{dI(t)}\|\|_1$? 8. Can you explain more about the biased data mentioned in line 200? How are these kinds of data characterized? 9. Honestly speaking, I do not get the point of Trajectory Mirror. The operations of Trajectory Mirror blurred the dynamics of the system. 10. In the experiments, how do the interaction graphs evolve? Does the performance of the proposed method correlated with the similarity between the graphs before and after change? 11. Does the method scale well to larger dynamical systems?

Rating

5

Confidence

3

Soundness

2

Presentation

2

Contribution

2

Limitations

Although the authors state the limitation in just one sentence in the conclusion, I would like to encourage the authors discuss the limitations with more details. Such as the scalability, the adaption to directed graphs, and so on.

Authorsrebuttal2024-08-11

Response to Reviewer mc8m (2)

**Q1. [Alignment in Train and Test Data]** As stated in the above answer, in online learning, the training and testing steps are **NOT** separated. Therefore, we do not explicitly train the model on springs systems, stop training, and then test the model on charged systems. Rather, given a series of streaming observations, the model repeatedly performs online learning (no separate supervised training). Our goal is to study, whether a randomly initialized model, successfully learn a mixed dynamical system where the interaction dynamics changes with time. In our setup, the dynamics continuously changes from spring system to charge particles (and vice-versa) every 3-k iteration, as demonstrated in Figure 3(b) (main paper). The first such period of 6-k iteration, the ORI does exactly what the reviewer commented (“Such as trained on springs but then tested on charged particles”). In this period, an un-trained (randomly initialized model), only observes and learns from spring dynamics data for the first 3k iteration. At the end of 3k iterations, the (unknown) input dynamics for generating observations (data) suddenly switches to charge system. In other words, during the duration of 3k to 6k iterations, an ORI model ONLY learned spring system is being adapted on *unseen* dynamics of charge particles. As ORI continuously learns this new dynamics, it can still achieve 96.7% accuracy at the end of 6k iteration. Therefore, the first 6k iteration in Figure 3(b) exactly shows the case where the model is “trained on springs but then tested on charged particles” and performs very well. As the model continues to observe more periods of such 6k-iterations (mixed dynamics), it learns to adapt even faster to the dynamics shift. This is evident from the result in the second period of mixed-dynamics (6k-12k iterations) the model reaches 97% accuracy after 3.7k-iteration, instead of 6k-iteration in the first period. In summary, ORI can successfully adapt to the “unseen” dynamics (“trained on springs but then tested on charged particles”) without learning from mixed-dynamics data. We also see that once ORI learns from sequences of mixed dynamics (springs->charged, charged->springs), it adapts to the dynamics change faster. We will add this discussion in the main paper to clarify our contributions. **Q3. [Error Accumulation in AdaRelation]** Yes, the past adjacency matrix is also learned. We assume that, the reviewer is referring to the error in the relational accuracy. However, as we observed from experimental results in Figure 3, ORI with AdaRelation indeed showcases higher accuracy than ORI without AdaRelation (i.e., constant learning rates), which does not employ the past “learned” adjacency matrix. For example, in Figure 3(a), ORI with AdaRelation shows average accuracy of 84.8% while ORI with constant learning rates, such as relation lr 100 and relation lr 200, show 83.4% and 73.8%, respectively. Also, in Figure 3(b), the average accuracy of AdaRelation, relation lr 20, and relation lr 50 are 91.3%, 86.5%, and 90.7% respectively. We would like to clarify in AdaRelation (equation (2) & (3)), that the deviation between the current “learned” adjacency matrix and the past “learned” one is employed only for “adjusting the learning rate”, not the gradient (i.e., dL_mse/dI). We agree that unstable learning rates may influence the gradient as well in the future time steps, as in any gradient-based optimization methods, but as our adaptive learning rate in AdaRelation is bounded by equation (4), the errors due to adaptation of the learning rate are not infinitely accumulated.

Authorsrebuttal2024-08-11

Response to Reviewer mc8m (3)

**Q6. [Initial Adjacency Matrix filled with 0.5]** It’s unfortunate that the reviewer did not find our code. We have already provided the link to our codebase in the abstract of the initial manuscript. Please check the attached manuscript. The role of the adjacency matrix is to provide the graph’s edge structure to message passing layers in GNN. Instead of “vanilla message passing” where the associated edges are simply represented by binary, we consider “weighted message passing”, with the edges having continuous values. ORI performs weighted message passing from all nodes with continuous weights. Our “initial” adjacency matrix is filled with 0.5 to start with a scenario where ORI performs equally weighted message passing. As ORI performs online learning from the observations, the weights of adjacency matrix evolve according to the underlying (unknown) graph structure and dynamics. Please note, the “actual” adjacency matrices used to generate an experimental sequence is a binary one. Hence, to compute the relation accuracy, i.e., the similarity between “learned” and “actual” adjacency matrix, we threshold the “learned” matrix by 0.5 to create a binary matrix before comparing with the “actual” matrix. We will clarify ORI does weighted message passing in the main paper. Note, we do not claim “weighted message passing” as a new contribution of this paper. NRI also provides such functionality (in line 203 in train.py of NRI codebase, their edges can be either binary or continuous by a function argument “hard”). **Q5. [Intuition behind the Deviation D_I(t)]** The deviation is a function of |I(t)-I(t-w)|, where both I(t) and I(t-w) are the "learned" adjacency matrix, not the actual one. Hence, the significant change in the “actual” adjacency matrix used for generating the observed time series, may not necessarily lead to large values of the deviation. This depends on the how quickly ORI learns the “new” adjacency matrix as discussed below. We would like to remind that actual adjacency matrix is *not* available to the model for supervision. Consider a scenario when the actual adjacency matrix significantly changes between the time step ‘t-w’ and ‘t’. Assume ORI has “learned” the “actual” adjacency matrix at time step “t-w”. Now, at time step “t”, ORI can respond in two possible ways. First, ORI may quickly identify the new adjacency matrix at the time step “t”. In this case, I(t) and I(t-w) will be related to the new and previous “actual” adjacency matrices, respectively. Assuming the two “actual” adjacency matrices are significantly different, the deviation between two “learned” adjacency matrices will also be large. Hence, based on equation (3), the learning rate will decrease. This will make the learned adjacency matrix stable, thereby helping ORI to stay at the new “learned” adjacency matrix at time “t”, which is desirable as that is also the actual adjacency matrix. Let us now consider the second case where ORI does not quickly learn the new “actual” adjacency matrix and hence, the “learned” adjacency matrix at time “t” stays close to the one “learned” at time step “t-w”. In other words |I(t) - I(t-w)| remains low even if the “actual” adjacency matrices have changes. In this case, following equation (2), the learning rate increases to rapidly update the “learned” adjacency matrix, which is desirable to quickly move the “learned” matrix to the “actual” one. In summary, the equation (2) and (3) appropriately updates the learning rate when “actual” adjacency matrix changes, even without any knowledge/supervision of that “actual” matrices. **Q8. [Biased Learning without Trajectory Mirror]** Thank you for the suggestion. We will include it in the main paper. The coordinates of springs and charged systems are -5≤x≤5 and -5≤y≤5. The coordinates of CMU MoCap is -5.1≤x≤11.6, 0.0≤y≤29.5, and -35.2≤z≤58.2. These coordinates are same as the setup in NRI and dNRI, as we mentioned in line 220 and 227: “The synthetic datasets were generated using the open-source code from NRI” and “processed using dNRI’s open-source code”.

Authorsrebuttal2024-08-13

Follow-up from Authors

Dear Reviewer mc8m, Following our previous response, we have carefully addressed all the concerns raised during the review process. We trust that our answers have adequately resolved the issues highlighted. If our answers meet your expectations, we kindly ask for your consideration in updating the final scores accordingly. Please don't hesitate to reach out if any further clarification or discussion is needed. Thank you for your time and consideration. Best regards, Authors

Reviewer mc8m2024-08-13

Dear Authors, I apologize for my late reply, as it really took much time to get through the implementation line-by-line. I would also like to apologize for my mistake regarding the link in the paper. Many thanks for the new results and clarification of my questions. Yet I have another follow-up question: where does the 0.5 appear in the code? I checked both NRI and MPM in the anonymous github repo, and seems to be that neither of them explicitly shows the initial values of 0.5. By the way, what is the 'es' in the online_load_nri() of MPM? Does it contain groundtruth adjacency matrix? Best regards, Reviewer mc8m

Authorsrebuttal2024-08-13

Response to Reviewer mc8m

Dear Reviewer mc8m, We sincerely appreciate the reviewer's reply and additional questions! We are glad to know that the reviewer could find our code and provide follow-up questions. **[Where does the 0.5 appear in the code?]** initial edges are defined by “torch.ones / 2” (i.e., 0.5). For NRI, please check the line 334 in NRI/train.py, “edges = nn.Parameter( torch.ones((1, args.num_atoms*(args.num_atoms-1), 2), requires_grad=True) / 2 )”. For NRI-MPM, please check the line 385 in NRI-MPM/instructors/XNRI.py, “self.edges = nn.Parameter( torch.ones((n_atoms*(n_atoms-1),1,2), requires_grad=True) / 2 )”. We will leave the comments in the code later. **[what is the 'es' in the online_load_nri() of MPM]** We believe the reviewer is referring to ‘es’ in the line 148 in NRI-MPM/run.py. ‘es’ is to provide the node index of senders and receivers for all "possible" edges during message passing, hence *not related to the ground-truth adjacency matrix*. Please note that, we **never** use the ground-truth adjacency matrix to train the model. For example, for systems with 10 agents, ‘es’ is (2,90) matrix, where 90 represents the number of all "possible" edges excluding self-interaction (i.e., number of agents * (number of agents - 1)), and 2 represents sender and receiver node. This contains the same elements regardless of datasets: [[0, 0, 0, 0, 0, 0, 0, 0, 0, - e.g., node that can send message (0-th node) 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9], [1, 2, 3, 4, 5, 6, 7, 8, 9, - e.g., nodes that can receive message from 0-th node 0, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8]] The usage of this matrix is to know the node indices of "possible" sender and receiver (e.g., for k-th edge, es[0][k] is sender and es[1][k] is receiver). We will also clarify this in the code later. As the discussion period ends soon, again, please don't hesitate to reach out if any further clarification or discussion is needed. We are always glad to answer the concerns of the reviewer. Best regards, Authors

Reviewer mc8m2024-08-13

Dear Authors, Many thanks for the response. I do not have any concerns regarding the implementation. I will raise the score to 5. Cheers, Reviewer mc8m

Authorsrebuttal2024-08-14

Response to Reviewer mc8m

Thank you for your insightful and detailed feedback throughout the rebuttal and discussion period! We are grateful for your decision to raise your score to 5. We appreciate your suggestion and will include these discussions in the revised paper. Sincerely, Authors

Reviewer fSnF7/10 · confidence 4/52024-07-05

Summary

This paper focuses on online relational inference (ORI) for dynamical systems. It points out from the optimization perspective that in the existing encoder-decoder framework, the encoder responds slowly to streaming data when inferring the evolving interaction graphs. It proposes to learn the adjacency matrix directly via a model-agnostic online learning scheme. The key design is an adaptive learning rate scheduling strategy based on the important observation that the predicted trajectory is sensitive to the change of the adjacency matrix. Delicately designed experiments show how ORI responds timely to the change of interaction graphs and dynamics, and reveal the limitations of existing methods.

Strengths

S1. This paper makes the first attempt to tackle online relational inference under the streaming data setting. S2. The observation that the predicted trajectory is sensitive to the change of the adjacency matrix is important for relational inference. It directly inspires the simple yet effective design of the online learning strategy. S3. The carefully designed experiments help the readers understand from a mechanistic perspective how some key factors limit the inferring accuracy of existing methods, and how ORI properly overcomes these issues by its delicate design. Both the results and the analyzing procedure will be beneficial for later research.

Weaknesses

W1. This paper considers the adjacency matrix as a trainable parameter. This is reasonable when the set of nodes does not change. However, with node addition and deletion, the meaning of each element in the adjacency matrix becomes inconsistent. It is unclear if ORI can handle this scenario. W2. The trajectory mirror is indeed a data augmentation trick, although it may not be widely adopted in relational inference. I am not sure if this can be highlighted as a contribution.

Questions

Q1. The setting for graph evolution can be too idealistic. The graph regularly evolves every 3k iterations, while the duration can be irregular in real-world scenarios. Will that affect the performance of the proposed method? Q2. Do you instantiate a trainable adjacency matrix for each sample/simulation? Can ORI achieve inductive learning, i.e., generalizing to unseen samples? Q3. How can you extend ORI to handle multiple types of interaction relations? Q4. In the testing stage, how many iterations are required for updating the adjacency matrix at each time step? Although ORI is encoder-free, it requires at least one extra backward pass of the decoder to update the adjacency matrix. Can compare the running time of ORI with the encoder-based methods, e.g., dNRI, NRI, MPM? I believe responding in real-time is a desirable property for ORI.

Rating

7

Confidence

4

Soundness

3

Presentation

3

Contribution

3

Limitations

N/A

Reviewer fSnF2024-08-08

Thanks for your response and insightful discussion. The ability to infer irregularly evolving graphs with a single update at each step and slightly more running time than the decoding process is promising. Please also consider adding these discussions to the revised paper. I would tend to maintain my current rating.

Authorsrebuttal2024-08-11

Response to Reviewer fSnF

Thank you for your positive feedback and for recognizing the potential of our approach in inferring irregularly evolving graphs. We appreciate your suggestion and will include these discussions in the revised paper. We are grateful for your decision to maintain your current rating. Thank you once again for your thorough review. Best regards, Authors

Reviewer mc8m2024-08-09

Many thanks for the rebuttal and additional experimental results. Based on the rebuttal, I have the following questions that need to be clarified with more details. **W1. [Encoder-less Design for Supervised Learning?] ** In my initial review, I intended to say that the previous works, like NRI, ACD and so on, consist of a clear design of encoder-decoder setup. So they can be splited into two. For example, we can perform supervised learning by just using the encoder, and we can perform simulations with just the trained decoder. So in this work, it would be hard to use the encoder separately for supervised learning. **W4. [Why avg Accuracy]** Could you please elaborate more on the "Iteration" mentioned in the answer? Does it refer to all iterations during training? Or just the last iteration? Some models do not learn that fast, and therefore using the Avg. Accuracy over all iterations as metric may not be fair. **Q1. [Alignment in Train and Test Data]** I do agree with the answer on the part of pervious works. Most of the relational inference methods do not generalize well to unseen distributions on which they are not trained. But it does not state clear the contribution of this work. In this work, the method is trained with a mixed dynamics directly, so the method does not like what is stated in this answer: trained on one distribution and then test on the other. Such as trained on springs but then tested on charged particles. **Q3. [Error Accumulation in AdaRelation]** Is the past adjacency matrix also learned? If it is, there would be error accumulation. **Q6. [Initial Adjacency Matrix filled with 0.5]** Please elaborate more on the answer. Sorry I did not get the point of how to have the input adjacency matrix as a collection of 0.5 instead of binary values to GNN? As there is no implementation or code attached, I am kind of frustrated on it. **Q5. [Intuition behind the Deviation D_I(t)]** What if the actual adjacency matrix changes significantly? Will it also cause large values in this term even if the learned adjacent matrix matches the actual one? **Q8. [Biased Learning without Trajectory Mirror]** It would be better to include how the coordinates are set in each dataset.

Program Chairsdecision2024-09-25

Decision

Accept (poster)

© 2026 NYSGPT2525 LLC