Video and Temporal Reasoning › Temporal ordering
Language AI HandbookAll chapters 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]Expand
# 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]Expand

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!