﻿# MOMENT embedding pooling: one vector hides channel averaging and complete-patch selection

Preserve MOMENT embedding reduction, channel averaging and patch-validity masks before using a pooled vector for time-series retrieval or classification.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-moment-embedding-pooling-complete-patch-mask/
Language: en

## Define what one embedding represents

MOMENT can return a pooled sequence representation or unreduced encoder outputs. The [project guide](https://raw.githubusercontent.com/moment-timeseries-foundation-model/moment/main/README.md) presents embedding workflows, but a vector's fixed width alone does not define its information content. Record the selected reduction before storing vectors in a retrieval index or fitting a classifier. A pooled representation and an array retaining channels and patches are different artifacts with different downstream possibilities.

## Follow the channel average

The [embedding implementation](https://raw.githubusercontent.com/moment-timeseries-foundation-model/moment/main/momentfm/models/moment.py) first averages across channels in its mean-reduction path, then pools patch representations using a validity mask. This removes explicit channel identity from the returned summary. It does not prove that the underlying encoder modeled all channel relationships jointly. Preserve unreduced outputs when a task requires separate channel features, rather than trying to recover those distinctions later from an already averaged vector.

## Inspect complete-patch validity

The [mask conversion helper](https://raw.githubusercontent.com/moment-timeseries-foundation-model/moment/main/momentfm/utils/masking.py) marks a patch valid when its sequence positions satisfy the complete-patch rule. A partially invalid patch can therefore be excluded as a whole from the pooling mask. This is different from averaging over every individually valid time step. Record patch length and mask handling because a small gap or padding boundary can change the set of patches contributing to the final vector.

## Define insufficient-evidence behavior

A short or heavily masked input can leave too little valid patch evidence for the intended pooling operation. The adapter should detect that condition and apply an explicit application policy rather than indexing an unusable vector. The [Moirai packed-mask guide](/journal/fg2-moirai-packed-sample-variate-identity-scaling/) provides a contrasting identity boundary. Numerical replacement of nonfinite input does not by itself establish adequate observed context or justify treating missing positions as fully valid evidence.

## Evaluate the representation used by the application

Compare mean and unreduced features on a fixed downstream task, while preserving masks, channel schema and the actual pooling policy. The [MOMENT task-head guide](/journal/fg2-moment-pretrained-reconstruction-new-task-head-init/) distinguishes representation extraction from training a task-specific head. Validate index dimensionality and retrieval quality separately. A reliable report states what the embedding summarizes and what was discarded, rather than interpreting one successful vector extraction as proof that all original channel and temporal information survived.
