# Poster 29828

- Kind: Poster
- Talk page and recording: https://iclr.cc/virtual/2025/poster/29828

> Transcript of the talk's recording (session_asr), made by speech recognition or taken from the host's captions. It may contain errors. The words are the speakers'; listen to the recording on the talk's page before quoting it.

Hello and welcome to a quick overview about our paper on how self supervised contrastive learning performs nonlinear systems identification. My name is Tobias Schmidt and this work has been done jointly with Rodrigo Gonzalez -Lez and Stefan Schneider of the Dynamical Inference Lab at Hayworth's Munich.
To start with, I'd like to introduce previous work related to non-linear ICA. This work has explored the problem of identifiably estimating latent states from observed data. So they start by assuming that there exists some unknown hidden latent states and an unknown non-linear but invertible function that transforms these hidden states into the observed data. The task then is to find an encoder that can recover
can recover a latent representation that is equivalent to a true latent state up to some known class of transformation. We extend that work and consider a data joining process defined by some unknown dynamical system that generates the true hidden states. The task then is to both recover the latent states and to identify the dynamical system governing the latent states and doing both while providing identifiability guarantees.
To achieve this, we propose the framework of dynamics contrastive learning and we start by sampling a reference point from the data set and encoding it into latent space. We then take a data point close in time and also encode it into latent space and use a dynamics model to predict forward in time again in latent space. This prediction and the embedding of the positive sample becomes the positive pair.
And we then sample uniformly from the dataset and code this into latent space and consider those or negative samples. We then train according to the InfoNCE loss and this allows us to jointly estimate the latent space and latent dynamics. We show that this learning framework allows us to prove identifiability guarantees.
Ensure that if the data generating process is invertible, then we A find that the recovered latent space is guaranteed to be an affine transform of the true latent space and B the dynamical system we recover in the process is equivalent to a true dynamical system up to the same transform. Of theoretical results have two important implications. First, it is impossible to identify the latent dynamics using standard contrastive learning.
And we verify this empirically and tests of theory on data generated by identity, so a random walk, linear or switching linear dynamics. Our results confirm that we cannot identify linear or switching linear dynamical systems without explicitly modeling the respective class of dynamics.
On the flip side, our theory states that if we do include a suitable dynamics model and use dynamics contrastive learning, then we can identify these dynamics. Again, we confirmed this empirically and we can see that when the data is generated by linear or switching linear dynamics, we are indeed able to identify these dynamics by explicitly modeling them.
We also show that empirically holds for more complex nonlinear dynamics. For example, when the true latents follow a Lorentz attractor system, we can recover the latents and the dynamics by using a switching nonlinear dynamics model to approximate the Lorentz attractor.
Finally, we also applied our framework to some real world dataset, in this case a dataset from the Allen Institute where mice were repeatedly shown a 30 second video while the activity of the visual cortex was recorded. We trained two types of model to recover the latent states of the neural activity, one with linear dynamics and one without any dynamics, and our evaluation shows that we get higher consistency scores when using a dynamics model.
model compared to when we don't use dynamics model. Additionally, we also find that using real dynamics models allows us to recover a latent space of the brain activity that reflects the repetition of the visual stimuli across trials as is apparent here by the color coding.
So to sum up, we propose a dynamics contrastive learning framework for identifying linear, switching linear and nonlinear dynamics under a nonlinear observation model. We show both that latent space and the underlying dynamics can be and need to be jointly estimated and we show that the improvements of our framework translate into a real -world application where we recover meaningful embeddings with higher consistency.
If you have any questions or would like to learn more about our paper, we'd like to invite you to come to our poster presentation on Friday, April 25th.
