Video and Temporal Reasoning › Temporal ordering

Michael BrenndoerferDecember 1, 20263 min read
Language AI HandbookAll chapters
Part 52 of 67Omni-Modal and Embodied Language Systems
Chapter 399Video and Temporal Reasoning › Temporal ordering
Reading section 7 of 12 · Temporal ordering · 3 minSection 7 of 12 · 3 min

Section 7 of 12 · 3 min read

Reading settings

Definitions

Choose how many terms have tooltips.

Article links

Make inline references clickable

Notes & comments

An ordering question asks which event came first or how several events were arranged. A model can infer relative order without exact times. It can also misread two timestamps after localizing both events correctly.

Two useful formats are pairwise comparisons and reconstruction of a shuffled sequence. Either can be answered from a familiar script in some examples. Swap the relative order of two events while keeping their identities fixed to test whether the answer follows the clip.

A long clip can exceed the active context. A system can summarize earlier frames, retrieve earlier evidence from an index, or process the clip in stages and compare the retained information.

  • Compressed frame memory: maintain a running summary of past frames as a fixed-size set of "memory tokens," which get attended to alongside the current window. This is analogous to a recurrent memory state: it was covered for text in Part XVIII, Ch 7: Recurrent Memory, and the video version applies the same idea to a stream of frames.
  • Retrieval memory: index frames (or their captions) and retrieve relevant ones when a question refers back to an earlier time. This is Part XLIV: Retrieval-Augmented Generation applied to a timestamped video index.

A summary can omit a brief event. A retrieval policy can miss an indexed frame when its query, index, or similarity rule selects a different entry.

The next figure uses two invented curves to demonstrate a reporting format. The score at each distance is assigned by an exponential formula. The two curves use different floors, decay constants, and amplitudes, so their gap has no causal interpretation about either memory mechanism.

PythonIn [15]
CollapseExpand
# Synthetic distance-stratified ordering accuracy. This is an illustrative
# model, not measured data. The "compressed" curve decays exponentially with
# distance; the "hybrid" (retrieval + compression) curve decays more slowly.
# Parameters are fixed, no random sampling.
distances_s = np.array([2, 5, 10, 15, 30, 60, 120, 180, 240])
# Exponential decay toward a long-range floor.
compressed_acc = 0.05 + 0.90 * np.exp(-distances_s / 40.0)
hybrid_acc = 0.15 + 0.80 * np.exp(-distances_s / 110.0)
stratified = {"compressed": compressed_acc, "hybrid": hybrid_acc}
VisualizationOut [16]
CollapseExpand
Line plot of ordering accuracy against evidence distance for two memory strategies.
Two illustrative ordering score curves use fixed exponential decays. The retrieval-plus-compression curve is higher at each plotted distance. The displayed gap is largest at 60 seconds, then narrows. These are formula values.

The curves are close at two seconds, separate across the middle distances, and come closer again at the far right. Mixing different distance buckets into a single score changes their relative weight. Report the count as well as the score in each bucket.

A retrieval path can recover an indexed frame when it finds the right entry. A summary is available within its window and can omit details. Combining both gives the model two sources of evidence, and the evaluation can test whether using both helps.

Compare evidence-distance slices while controlling for event type and visibility. Shorter distance alone does not make a question easy. Conversely, a long-range question can remain easy when an earlier event is distinctive and correctly indexed.

Comments

Add to the conversation

A question, a correction, or an example from your own work.

No comments yet. Be the first to share your thoughts!

Newsletter

Stay up to date

Get new articles, book updates, and notes on AI and technology.

Unsubscribe at any time. Privacy policy