Video and Temporal Reasoning › Causal reasoning

Michael BrenndoerferDecember 1, 20264 min read
Language AI HandbookAll chapters
Part 52 of 67Omni-Modal and Embodied Language Systems
Chapter 399Video and Temporal Reasoning › Causal reasoning
Reading section 8 of 12 · Causal reasoning · 4 minSection 8 of 12 · 4 min

Section 8 of 12 · 4 min read

Reading settings

Definitions

Choose how many terms have tooltips.

Article links

Make inline references clickable

Notes & comments

A temporal sequence can help decide which mechanisms are possible. Establishing that one event produced another needs additional evidence or explicitly stated assumptions.

Start by identifying the candidate cause, the outcome, and possible common causes.

In the sequential examples here, a cause acts before its outcome. An earlier observation can still be incidental. A causal comparison asks how the outcome changes when the earlier event changes under a specified intervention.

An unobserved condition can cause two visible events. For example, a gust can move a curtain and close a door. Their order alone does not tell us whether the curtain moved the door. Identifying a causal effect from observations requires assumptions about what was measured and what was held fixed.

Paired causal comparisons. To test whether a bump changes the outcome in a toy setup, start from the same placement and toggle the bump while keeping the other conditions fixed. Record whether the glass falls in each run. Changing the glass placement while keeping the bump fixed instead tests how placement changes the outcome in those bumped runs. In an observational video, a hidden cause can produce both the apparent cause and the outcome.

Recorded interventions or valid simulations can provide paired evidence. Editing two clips to change the image order tests order sensitivity. A causal comparison additionally requires a justified change to the generating conditions and a measured outcome.

A mean over a fixed collection of features is invariant to their ordering. If the tokens already contain time information, the features may still carry positional evidence after pooling. In the following toy, the event vectors are identical in both clips and contain no time features.

The next toy tests a narrower question by changing event order while holding the observed outcome fixed.

An order-swapped toy pair

We'll represent events as labeled feature vectors and build two clips that differ only in event order, then check whether a simple order-sensitive versus order-insensitive scoring rule distinguishes them.

PythonIn [17]
CollapseExpand
# Two events as feature vectors, plus a shared "setup" and "outcome".
setup = np.array([0.1, 0.1, 0.1, 0.1])
bump = np.array([1.0, 0.0, 0.0, 0.0])
tilt = np.array([0.0, 1.0, 0.0, 0.0])
fall = np.array([0.0, 0.0, 1.0, 0.0])

# Clip A: setup -> bump -> tilt -> fall   (bump precedes tilt)
clip_a = np.stack([setup, bump, tilt, fall])
# Clip B: setup -> tilt -> bump -> fall   (tilt precedes bump)
clip_b = np.stack([setup, tilt, bump, fall])

row_a_bump = np.where((clip_a == bump).all(axis=1))[0]
row_b_bump = np.where((clip_b == bump).all(axis=1))[0]
ConsoleOut [18]
CollapseExpand
Clip A event lengths: [4, 4, 4, 4]
Clip A row index of bump: [1]
Clip B row index of bump: [2]

The two clips contain the same events; only the order of bump and tilt differs. An order-insensitive scorer that pools frames (e.g., takes the mean) cannot tell them apart, because the multiset of events is identical.

PythonIn [19]
CollapseExpand
# Order-insensitive: mean-pool the events into one summary vector.
summary_a = clip_a.mean(axis=0)
summary_b = clip_b.mean(axis=0)
summaries_identical = bool(np.allclose(summary_a, summary_b))


def event_index(clip, event):
    matches = np.flatnonzero((clip == event).all(axis=1))
    if matches.size != 1:
        raise ValueError("The target event must match exactly one row.")
    return int(matches[0])


# Order-sensitive: does bump precede tilt?
def bump_before_tilt(clip):
    return event_index(clip, bump) < event_index(clip, tilt)


clip_a_bump_first = bump_before_tilt(clip_a)
clip_b_bump_first = bump_before_tilt(clip_b)
ConsoleOut [20]
CollapseExpand
Mean-pooled summaries identical: True
Clip A bump-before-tilt: True
Clip B bump-before-tilt: False

The two clips have identical means and opposite answers to the ordering question. They also end in the same outcome, so this pair does not identify the effect of changing either event. The toy compares exact labeled vectors and raises an error when a target has no matching row or more than one. Real videos require a way to recognize and associate the repeated actions before comparing their times.

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