arXiv:2610.21630cs.LGOct 2026

Manuscript Offprint

arXiv:2610.21630

Local Temporal Contrasts on Human Motion Data Induce a Latent Geometry

Lourenço A. Rodrigues, Felix Putze

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.

ABSTRACT

Time series such as recordings of human motion data often encode structure across multiple temporal scales, and when a latent state determining this sequence evolves, this structure needs to survive in the representation space for downstream use. Yet the currently prevalent attention-based encoders paired with sequence-level pooling have made single-vector, pointwise comparison the default mode of inference, discarding the trajectory a sequence traces through the representation space. We propose recovering this geometric structure directly, without relying on forecasting-based objectives, by training an encoder model (SemTAC) with a temporal-neighborhood contrastive loss: representations that satisfy local consistency everywhere must give rise to a coherent global structure, letting inference happen at temporal scales beyond those seen during training. We evaluate SemTAC against four baselines on a five-step motion sequence discrimination task: the same architecture trained with a classification or a standard contrastive objective, and two established self-supervised time-series methods, TS-TCC and TS2Vec. At the full sequence length all five are broadly competitive, but on incomplete, truncated sequences SemTAC holds a large advantage: a median F1 of 0.77 one step before the sequence completes, against 0.27–0.70 for the four baselines. A hyperparameter-matched ablation attributes this effect specifically to the temporal-contrastive objective. SemTAC's representation trajectories are also the only ones among these five to exhibit interpretable geometric structures, exceeding a no-structure chance baseline on a displacement-smoothness metric which we introduce. This is evidence that its objective, not classification accuracy alone, produces genuinely temporally-ordered trajectories.

1 INTRODUCTION

Capturing the temporal structure of data has long been a focus of time-series research, and classical models such as ARIMA as well as modern architectures such as recurrent networks and Transformers have made substantial progress in this direction. In domains such as biosignals, this has enabled applications ranging from medical diagnosis to activity recognition. Two challenges, however, still limit how much temporal structure these models retain for downstream use: identifying the right timescale for analysis, and preserving how the latent state evolves once that timescale is chosen. This latent state is what conditions the observed signals, similar to how the intended action of a subject conditions their physical movements, or the progression of a disease changes the symptoms that are presented.

Biosignals often encode information across multiple temporal scales, from fast, beat-to-beat variability to slower trends such as disease progression. Existing approaches typically address this by fixing a single temporal resolution or aggregating information over time, which limits their ability to capture dynamics that occur at other scales.

A separate issue concerns what happens to the representation once a scale is chosen. Recurrent architectures were built around an evolving state, representing a sequence as a trajectory rather than a single point. Attention-based architectures shifted this convention: they aggregate a sequence

Classification

Figure

(a)

TimeEncoder

(b)

(c)

Figure 1: Training our model with temporal contrasts induces a structure in the latent space that mirrors the temporal structure of the data. (a) shows the representation space when trained with purely discrimination-centric objective, (b) shows the original data structure (see Fig. 2), and (c) is the latent space created by our approach.

directly and are typically paired with a pooling step that collapses it into a single vector, so inference reduces to comparing or clustering points and discards the structure of how those points were reached. Such representations can say that two states are similar, but not where a given state lies within a process, or what is likely to follow it.

This matters especially when states evolve in stages rather than continuously. Many approaches to temporal representation rely on forecasting (e.g. Eldele et al. (2021)), assuming a signal's own dynamics are enough to extrapolate what comes next: an assumption that breaks down when, for instance, a health condition advances through the appearance of a qualitatively new symptom rather than the gradual evolution of existing ones.

We propose that this trajectory structure can be induced directly, without forecasting, via contrastive learning approaches such as Temporal Neighborhood Coding (Tonekaboni et al., 2021), which contrasts temporally proximal states against distant ones. A model trained to correctly capture these local interactions must give rise to a global structure that supports them everywhere along the trajectory, not only at points seen during training.

This global structure lets us compose individually-encoded states into longer trajectories and compare them geometrically at inference, without retraining at a coarser scale and directly addressing the first challenge. It is also useful for early prediction and monitoring, e.g. of an individual's health state, since it lets us identify which states precede others in the representation space, not only distinguish between labels.

Figure 1 illustrates the perspective shift this work introduces: Instead of learning representations that hold isolated clusters of defined categories, induce a geometric structure over which the temporal structure of the dataset is represented. That structure can then be used to identify what "type" of sequence a new set of samples belongs to. Finally, if finer scales correspond to their own classes, it is possible to recover those as granular components of the overall structure.

Our contributions are as follows:

• We introduce a geometry-based perspective on representation learning for time series data, where they are modeled as structures in latent space rather than static embeddings, and portions of those structures remain informative for instantaneous state classification.

• We show that contrastive learning with temporally-informed transformations induces structured latent dynamics, linking local temporal constraints to global geometric organization in representation space.

• We propose geometry-level inference via sequence similarity measures applied in latent space, enabling comparison of entire representation geometries rather than individual points.

• We empirically demonstrate that this approach improves robustness to partial sequences, consistently outperforming contrastive and classification baselines in sub-sequence-based inference tasks.

• We measure structural properties of the learned representation spaces and show that our contrastive approach based on local temporal interactions results in significantly better structured spaces.

References (27)