Compositional Video Synthesis with Action Graphs
Paper · 2020 · Amir Bar, Roei Herzig, Xiaolong Wang et al.
Summary
An opening image can show which objects are present, but it cannot tell a video generator what they should do, which objects should interact, or when each movement should begin. A label such as slide gives the generator a little more direction. It still leaves open which object should slide and whether it should move while another object is being picked up. Compositional Video Synthesis with Action Graphs treats those decisions as part of the input. The authors give each object a node in an action graph. A directed edge specifies an action, its participants, and its start and end frames. Edges can overlap in time, and some actions can carry additional instructions, such as destination coordinates. The generator, AG2Vid, starts with an image and the classes and bounding boxes of the objects in it.
AG2Vid turns that description into a video by separating the scheduling, layout, and rendering decisions. A clock on each edge tells the system how far the scheduled action has progressed. A graph network uses those clocks and the previous object locations to predict the next arrangement of bounding boxes. The rendering stage estimates where pixels from the preceding frame should move, then corrects the warped image using the new layout. This gives the generator access to both the planned movement and the appearance established in earlier frames. The authors make code and pretrained versions of AG2Vid available.
The paper evaluates the system on synthetic CATER scenes and real clips from Something-Something V2. Human raters generally preferred its outputs to the baseline clips for both visual quality and clarity of action. On CATER, for instance, they preferred AG2Vid’s depiction of the action in 68.8% of comparisons with Vid2Vid, which received the recorded layouts for the whole sequence. In a CATER timing test, the authors changed the schedule of an action while keeping the rest of the graph fixed. Raters identified the clip intended to show the action earlier in 89.45% of cases. The average concealed a substantial difference between actions. Slide reached 96.7% timing accuracy in that test, while Rotate reached 56.7%.
The authors also built new instructions from actions the generator had already learned. A CATER swap coordinated a pick-and-place movement with a slide, while a Something-Something V2 example combined movements along different directions. Human judgments gave these hand-designed compositions average class recall of 96.65 on CATER and 87.5 on Something-Something V2 under their respective evaluation protocols. The experiments show that the graph can control recognizable changes in motion and its relative timing within these settings. The authors report failures with objects that overlap or become occluded, and their results leave open how to control actions with more varied, non-rigid motion.
Deep dive: Compositional Video Synthesis with Action Graphs
Compositional Video Synthesis with Action Graphs shows how to schedule object interactions, turn them into video, and test whether they happen on cue. · about 37 minutes to read
The problem and its context
From describing a clip to directing it
The generation problem begins with a scene that could develop in several ways. A hand near an object might push it in either direction, lift it, or leave it in place while another object moves. A system that predicts a plausible continuation can make any of those choices. A system that takes instructions needs to follow the choice made by the person supplying the input. That difference matters even for a single action, and it becomes more consequential when the visible result depends on several actions occurring together.
The authors illustrate the coordination problem with a ball pass. The positions and movements of the thrower, ball, and receiver need to agree across the sequence. Depicting a plausible throw and a plausible catch in isolation leaves open whether the ball reaches the right place at the right time. The example motivates a representation that identifies participants and gives their actions a schedule. The paper uses simpler scenes to investigate the underlying problem of coordinating motion across objects and frames.
An action label usually says which sort of movement to depict. Directing a scene also requires identifying the particular instance that moves. If several objects share a category, that category alone leaves room for the generator to act on the wrong one. An action that relates objects adds another decision about who takes which role. Schedules add a separate dimension of control. Changing an edge’s timing should alter when its action appears even when the objects, their opening arrangement, and the rest of the instructions stay fixed.
The authors describe video generation as difficult in part because events separated in time can depend on each other. An early movement can determine where an object must be available for a later interaction. Adjacent frames, meanwhile, should preserve enough appearance and motion for the viewer to recognize the same objects. AG2Vid addresses these demands at different levels. A schedule can describe an action long before its visible consequence is complete, while the generator builds the actual clip one frame at a time.
What earlier inputs could specify
The paper discusses earlier video generators that extended ideas from still-image synthesis. In its account, MoCoGAN separated latent representations of motion and content and used recurrence to produce a sequence. TGAN used a temporal generator to capture dynamics across frames while generating the individual frames separately. These approaches supplied precedents for separating sequence dynamics from image content. The authors’ question was how to make those dynamics follow instructions attached to particular objects and times.
Class-conditional generation introduced an explicit action choice. HOI-GAN, for example, was designed to generate a clip for an action and an object, including combinations of action and object that appeared for the first time at test time. That is one kind of compositional generalization. The new task asks a different question. A generator may already know the action categories and the relevant objects, yet still have to execute a new arrangement of multiple action edges with specified timing. A single action–object pair does not carry the additional instructions for that arrangement.
Future-video prediction provides the opening visual evidence directly. The paper describes methods that predict subsequent pixels from preceding images, as well as approaches that forecast changes in an object-centered representation. Object-centered prediction supplies a useful precedent for separating the positions and relations of objects from their visual rendering. In AG2Vid, the action graph supplies information about the future in addition to the evidence in the initial image. A starting position may suggest what usually happens next in a dataset, but the same position can support several requested continuations. Choosing among them is the purpose of the additional input.
Video-to-video translation can take a much fuller specification of how a scene looks over time. The paper describes systems that synthesize a video from a sequence of semantic masks or keypoints. A semantic mask marks which image regions belong to which classes. Such a sequence can guide the renderer with detailed spatial information, although producing a dense annotation at every frame is costly. The authors also note that the class information in masks can leave some movements ambiguous. They cite an example in which the input failed to distinguish a turning car adequately from a car driving normally. Their own task asks a generator to predict intermediate spatial arrangements from named actions and an opening layout. Earlier video translation work includes Recycle-GAN.
Text supplies another way to name actions and participants. The authors describe caption-based systems whose examples include short phrases about playing a sport or flying a kite. They also discuss CRAFT, which works with animated scenes and uses retrieval. The issue for the task in this paper is how reliably a description fixes the details that a generator is expected to obey. A caption may express the action adequately for a reader while leaving the exact onset, duration, or relation between two movements unstated. An action graph makes those details explicit in a form the generator can query at every step. The paper cites Learning Subjective Language in discussing the role of subjectivity in language.
What the graph represents
Scene graphs offered a precedent for describing individual objects and the relations between them. The paper discusses their use for image retrieval, for predicting relationships, and for synthesizing images whose objects satisfy a structured scene description. A scene graph used to generate a still image can specify the arrangement visible at a moment. An action graph supplies instructions that apply over an interval, so the generator can use an edge even when the action’s defining change has yet to appear. The earlier image work includes Generating Semantically Precise Scene Graphs from Textual Descriptions for Improved Image Retrieval and Specifying Object Attributes and Relations in Interactive Scene Generation.
The paper also places its representation alongside work that used graphs to recognize actions in existing video. In such work, links between regions can help a recognizer combine evidence from different objects or moments. Research discussed by the authors identified long-range dependencies and action composition as obstacles to recognition. Video generation gives the graph a different job. The actions and their timing are given, and the system must construct the visual evidence that would allow someone to recognize them.
The task consequently divides the information needed to generate a video between two sources. The opening frame and its layout establish which particular objects are present and where they begin. The action graph describes how those objects are meant to behave. A graph edge can name a displacement or interaction without specifying the next bounding box or the pixels it should contain. Those details are inferred from training examples. The task tests whether a learned generator can fill them in while remaining responsive to the parts of the input that a director would want to change.
The method, step by step
Write the actions against object instances
Start with the opening frame and its annotated layout. A bounding box is a rectangle that locates an object and records its size in the image. The opening layout pairs those rectangles with object categories. In CATER, the category information can include attributes such as color, shape, material, and size. An input graph refers to individual instances in that layout. Two instances may have the same category or attributes and still participate in different actions.
How AG2Vid turns scheduled actions into video
The steps in order.
The action graph is defined using the following tuple.
𝒜 = (C, A, O, E)
Here 𝒜 denotes the full action graph, C is the vocabulary of object categories, A is the vocabulary of actions, O is the collection of object instances, and E is the collection of directed action edges. Object categories can encode attributes. An action can carry attributes of its own, such as the destination supplied for a slide. Keeping the sets of categories and instances distinct lets the graph refer to a particular object while the network uses category information shared across examples.
An edge has the following basic form.
e = (i, a, j, tₛ, tₑ)
Here e is an edge, i is the acting object’s index, a is its action category, and j is the index of the other participant. The start and end timesteps are tₛ and tₑ. If the action is performed by an object alone, i and j identify the same instance. That makes the edge a self-loop, a connection from a node back to itself. Rotate is the paper’s example. An edge connecting two instances can give them different roles, since the order of i and j is part of the instruction.
Several edges can use the same instance, and their time intervals can overlap. This leaves the graph free to describe an object independently of the number of actions attached to it. The role of a recipient or affected object is also explicit. When the layout network gathers information for an object, it can take account of instructions under which the object initiates an action and instructions under which another object acts on it.
The paper uses swapping in two ways to illustrate what this grammar permits. A hypothetical swap label could be written directly on an edge between two objects. In the compositional experiment, the authors instead supplied instructions built from familiar action categories. One object was moved through Pick Place and the other through Slide. This second construction asks the generator to produce a recognizable swap from the actions it already knows. The representation can express both designs, and the test of composition relies on the latter.
Give every action its own clock
A temporal interval tells the system when an action is scheduled. For frame generation, it also helps to know how much of that interval has elapsed. The authors add a scalar to each edge, obtained from the current frame and that edge’s start and end frames.
rₜ = clip((t − tₛ) / (tₑ − tₛ), 0, 1)
Here rₜ is the scheduled progress of the edge at time t, tₛ and tₑ are its start and end timesteps, and clip confines the fraction to the interval from 0 to 1. The numerator measures elapsed time since the scheduled start, and the denominator is the scheduled duration. Before the start and at the starting boundary the value is 0. Strictly between the boundaries it lies between 0 and 1. At the end and afterward it is 1. The ratio describes progress in the schedule. The learned layout network determines what that progress should look like for the action and objects concerned.
The augmented edge at a given time is written as follows.
eₜ = (i, a, j, tₛ, tₑ, rₜ)
Here eₜ is the edge as it appears at time t. The symbols i, a, and j identify the acting instance, action, and other participant. The symbols tₛ and tₑ retain the scheduled boundaries, and rₜ gives the progress value for the current timestep. Every edge has its own value, so concurrent actions can be at different stages even when the generator is rendering the same frame for both.
𝒜ₜ = {eₜ | e ∈ E}
Here 𝒜ₜ is the clocked graph at time t, e ranges over the original edges in E, and eₜ denotes the corresponding augmented edge. The braces collect the augmented edges while the object instances are carried over from the original graph. Taking these snapshots through T, the last timestep, gives the generator an evolving view of the same instructions.
The construction retains the edges while their clock values change. An action scheduled for later can therefore be represented before its visible movement begins, and a completed action still has a place in the graph. This differs from supplying only a list of labels active at each frame. A label would identify an ongoing action but give the generator no explicit indication of how far it should have advanced. A clock makes that distinction available to the layout network. It does not require an object to move at a constant speed. For example, a rotating object can keep the same position in the image while its appearance changes over the interval.
Predict where objects are before drawing them
AG2Vid uses a layout that combines box geometry with a learned descriptor for each object.
ℓₜ = (xₜ, yₜ, wₜ, hₜ, zₜ)
Here ℓₜ is the layout at time t. The vectors xₜ and yₜ specify box position, while wₜ and hₜ specify box width and height across the objects. Those coordinates are normalized to the interval from 0 to 1. The collection zₜ contains an object descriptor for each instance. These learned vectors encode information that can be passed on to the rendering stage. A box can say where a cylinder is and how large it appears. A descriptor can also convey that the graph calls for the cylinder to rotate at that point in the clip.
The authors describe the sequence using a factorization, which specifies the inputs to each prediction.
p(v₂, …, vₜ, …, v_T, ℓ₂, …, ℓₜ, …, ℓ_T | 𝒜, v₁, ℓ₁) = ∏ₜ₌₂^T p(ℓₜ | 𝒜ₜ, ℓₜ₋₁) p(vₜ | vₜ₋₁, ℓₜ, ℓₜ₋₁)
Here p denotes the generating distribution, vₜ is the frame at time t, and ℓₜ is its layout. The full input graph is 𝒜, and 𝒜ₜ is its clocked version. The first frame v₁ and layout ℓ₁ are supplied. The product sign ∏ iterates from the following frame through T, the last frame. A vertical bar separates what is predicted from what the prediction is conditioned on, and the ellipses stand for the intermediate frames and layouts. At each step, the first factor generates the current layout using the clocked graph and previous layout. The second generates the current image from its layout, the previous layout, and the preceding image.
This decomposition gives the schedule a route to influence the video without asking the layout stage to work in pixels. It also lets information persist. Earlier generated images and layouts influence the next step through the most recent ones. The graph supplies the current view of the schedule afresh. Thus a command that concerns a later part of the sequence is present in the instructions even though the frame renderer directly reads only the adjacent image and layouts.
Pass messages along the action edges
The layout generating function uses a graph convolutional network. Its updates combine information along the edges of a graph. Here the neighbors that share information are determined by the action instructions. Each object begins the update with its previous location and a learned category representation. Each action begins with a representation of its label, its progress, and information about the last positions of its participants. The graph convolution follows the approach of operating on connected objects, with separate learned functions for their roles. The paper cites Semi-Supervised Classification with Graph Convolutional Networks.
z⁰ₜ,ᵢ = [φₒ₍ᵢ₎, ℓₜ₋₁,ᵢ]
Here z⁰ₜ,ᵢ is the initial feature vector of object i for the update at time t. The index 0 marks the input to the graph updates. The function o(i) gives the category of instance i, and φₒ₍ᵢ₎ is the learned embedding for that category. An embedding represents a discrete label as a vector. The term ℓₜ₋₁,ᵢ supplies the previous box of object i. The square brackets indicate concatenation, which places the feature vectors together.
u⁰ₜ,ₑ = [ψₐ, rₜ, ℓₜ₋₁,ᵢ, ℓₜ₋₁,ⱼ]
Here u⁰ₜ,ₑ is the initial feature vector of edge e at time t. The embedding ψₐ represents action category a, and rₜ is that edge’s clock value. The terms ℓₜ₋₁,ᵢ and ℓₜ₋₁,ⱼ give the previous boxes of its acting and affected instances. The brackets again concatenate the inputs. Including the previous boxes in the edge input gives the network access to the arrangement of both participants as it begins to interpret the action. The main description also specifies destination attributes for the applicable CATER actions. The supplementary equations show this core initialization without detailing the encoding of those attributes.
A multilayer perceptron projects the initial concatenated features into vectors of dimension D. A multilayer perceptron is a learned sequence of transformations applied here to vectors. At each graph update, the network reads the vector for the acting instance, the vector for the edge, and the vector for the affected instance together. It produces a new edge representation and messages to the two endpoints. An object’s next representation combines the messages from all its incident actions. The authors use different functions for messages to the two roles.
zᵏ⁺¹ₜ,ᵢ = (∑ₑ∈Out(i) Fₛ(zᵏₜ,ᵢ, uᵏₜ,ₑ, zᵏₜ,ⱼ) + ∑ₑ∈In(i) Fₒ(zᵏₜ,ⱼ, uᵏₜ,ₑ, zᵏₜ,ᵢ)) / (|Out(i)| + |In(i)|)
Here zᵏ⁺¹ₜ,ᵢ is the new representation of object i at time t after update k. The zᵏ terms are the object representations before the update, and uᵏₜ,ₑ is the current representation of edge e. Out(i) contains edges directed from i, while In(i) contains edges directed to i. The other endpoint is j in each sum. Fₛ gives a message to the subject, or acting endpoint, and Fₒ gives a message to the object, or affected endpoint. Each function receives the features in subject–action–object order. The summation signs collect the messages and the bars in the denominator count the edges in each role. The supplement notes that an instance can occupy both roles, so the normalization counts role-specific contributions.
uᵏ⁺¹ₜ,ₑ = Fₐ(zᵏₜ,ᵢ, uᵏₜ,ₑ, zᵏₜ,ⱼ)
Here uᵏ⁺¹ₜ,ₑ is the updated edge representation. Fₐ is the learned action update, zᵏₜ,ᵢ and zᵏₜ,ⱼ are the old representations of the acting and affected instances, and uᵏₜ,ₑ is the old edge representation. The step k counts updates within the network’s processing of time t. Updating edges as well as objects allows a subsequent message to use a description of the action already informed by its endpoints.
After K updates, the final object vectors provide the descriptors zₜ. Another multilayer perceptron reads each descriptor and predicts the coordinates of its bounding box. This returns the layout that will condition the next frame and serve as the previous layout at the following step. AG2Vid uses K = 3 hidden graph layers and 128 units in the category embeddings for objects and actions. Because messages for an object are summed by role, the calculation gets its structure from the edges and their endpoints. An arbitrary order for listing the edges is unnecessary.
Turn boxes and descriptors into an image
The frame generating function first makes the layouts usable by an image network. It places each object’s descriptor in the spatial region identified by its box, with zeros outside that region in the object’s feature map. It then adds those maps to produce a layout feature map. H and W are the spatial height and width of the map, and D is the length of the feature vector at each location. If boxes overlap, their feature contributions can meet at the same spatial location. This operation tells the frame generator where it should expect evidence of the objects. It does not delineate their precise silhouettes.
The frame generator constructs these maps for the previous and the current layout. Taken together, they describe a change in position or size at the level of boxes. Pixels need more detailed instructions. An object’s movement may carry part of its old visible texture to the new position, and an action like Rotate can change the image inside a largely stationary box. The generator uses a learned optical-flow field to estimate this finer movement.
fₜ = F(vₜ₋₁, mₜ₋₁, mₜ)
Here fₜ is the flow field for the transition to time t, and F is the flow prediction network. The input vₜ₋₁ is the previous frame, and mₜ₋₁ and mₜ are the spatial feature maps made from the previous and current layouts. Optical flow describes displacement at image locations. Conditioning it on the maps lets the network estimate pixel movement with knowledge of both the earlier arrangement and the one it is supposed to produce.
wₜ = W(fₜ, vₜ₋₁)
Here wₜ denotes the warped image, W is the warping operation, fₜ supplies the predicted displacements, and vₜ₋₁ supplies the image to warp. The paper also uses wₜ in the layout tuple for box widths. In the rendering equations it means the entire warped frame. The warp transfers visible appearance from the preceding image into a preliminary estimate of the current one.
vₜ = wₜ + S(mₜ, wₜ)
Here vₜ is the final predicted frame, wₜ is the warped estimate, mₜ is the target layout’s feature map, and S is the SPADE image generator used to compute an additive correction. The plus sign adds that correction to the warp. Carrying pixels forward can preserve details of the original scene, while the correction gives the network a way to revise what the warp produces. In particular, the input layouts provide a spatial guide even where moving old pixels gives an incomplete account of the target image.
The separation between these operations also clarifies what happens when instructions change. An altered action edge can change the next object descriptors and boxes. The previous and revised feature maps can then imply different pixel displacements or image corrections. The first frame can stay the same throughout this comparison. Its role is to establish appearance and the initial state, while the graph repeatedly informs how the scene develops.
Train the layout and the renderer with different signals
Training uses recorded video frames and object boxes. The layout loss directly compares predicted boxes with their annotations.
Lℓ = ‖ℓₜ − ℓₜᴳᵀ‖₁
Here Lℓ is the layout prediction loss, ℓₜ is the predicted layout at time t, and ℓₜᴳᵀ is the ground-truth layout, meaning the annotated reference. In this equation the layout symbols stand for box coordinates only. The bars of ‖ · ‖₁ denote the sum of the absolute coordinate errors. The loss supervises position and size directly. The descriptors passed to the renderer have no corresponding annotation in this equation.
The warp gets its own supervision from the recorded next frame. This term gives the flow network a reason to explain the motion itself, before the additive correction has the opportunity to improve the image.
L_f = (1 / (T − 1)) ∑ₜ₌₂^T ‖wₜ − vₜᴳᵀ‖₁
Here L_f is the flow loss, T is the last frame, and t indexes the transitions by their target frame, consistent with the generator’s convention of supplying frame 1. The summation sign ∑ gathers the errors, and the factor 1 / (T − 1) averages them across the transitions. The warped image is wₜ, vₜᴳᵀ is the recorded image at the target time, and ‖ · ‖₁ sums absolute pixel differences. Training the flow through this image error requires no ground-truth flow field. It rewards a warp to the extent that pixels moved from the preceding frame can explain the target.
The action discriminator supplies another signal. A discriminator is trained to distinguish generated examples from real ones. For this loss it receives an image together with a spatial description of the actions and the reference layout. The discriminator builds that description by applying a graph network to the clocked graph with ground-truth boxes, arranging the resulting object embeddings using those boxes, and concatenating the map and frame along their feature channels. The paper uses a multi-scale PatchGAN discriminator, which makes judgments over image regions at different scales. Giving it the action and position cues makes the comparison sensitive to the relationship between the image and its instructions. The adversarial setup follows the framework of Generative Adversarial Nets.
L_A = max_{D_A} {𝔼_GT[log D_A(𝒜ₜ, vₜᴳᵀ, ℓₜᴳᵀ)] + 𝔼_p[log(1 − D_A(𝒜ₜ, vₜ, ℓₜᴳᵀ))]}
Here L_A is the adversarial term and D_A is the action discriminator, whose output lies between 0 and 1. The maximization is over the discriminator. The notation 𝔼_GT averages over real samples, while 𝔼_p averages over generated samples from the generating distribution p. The function log is the logarithm. The clocked graph 𝒜ₜ and the recorded layout ℓₜᴳᵀ condition both cases. The real frame vₜᴳᵀ is used in the first term and the generated frame vₜ in the second. The discriminator seeks high scores for the real images and low scores for the generated ones under those conditions. In alternating updates, the authors ascend with respect to the discriminator parameters and descend with respect to the generator parameters.
The paper also compares generated and recorded images in the internal representations of image networks. Its perceptual loss uses VGG features, and feature matching uses activations from the action discriminator. The comparison at a layer uses the absolute error between the respective feature vectors. This provides a training signal in addition to the direct pixel comparison used to supervise the warp. The VGG network is described in Very Deep Convolutional Networks for Large-Scale Image Recognition.
L_P = ∑ₗ (1 / Pₗ) ‖φ⁽ˡ⁾(vₜ) − φ⁽ˡ⁾(vₜᴳᵀ)‖₁
Here L_P is the perceptual and feature-matching term for the displayed frame. The index l runs over the selected feature layers, Pₗ is the number of elements at layer l, and φ⁽ˡ⁾ gives the activations for that layer of VGG or the discriminator. The symbols vₜ and vₜᴳᵀ denote the generated and recorded frame, respectively. The L1 norm sums the absolute feature differences, and the factor 1 / Pₗ normalizes the contribution by the layer’s size. The training term accumulates the layer comparisons over the video frames.
The training objective combines the losses. Written with the discriminator maximization on the joint objective, it has the following form.
min_θ max_{D_A} [L_A(D_A) + λℓ Lℓ + λ_f L_f + λ_P L_P]
Here θ contains the trainable parameters of the generator, and D_A denotes the discriminator being optimized in the inner maximization. In this expression L_A(D_A) denotes the adversarial term evaluated at the current discriminator, before maximization. The layout, flow, and perceptual and feature-matching terms are Lℓ, L_f, and L_P. Their weights are λℓ, λ_f, and λ_P. The paper’s implementation gives the box, flow, and perceptual terms a weight of 10 each and the adversarial term a weight of 1. The layout term teaches the network where to put objects. The frame losses reward different properties of the resulting image and its intermediate warp.
The authors optimize with a learning rate reported as 1e − 4 and Adam coefficients of (0.5, 0.99). The coefficients govern the optimizer’s running estimates of the gradients and their squared values. They use a batch size of 2, which they report as the largest that fit on a single NVIDIA V100 GPU. The optimization procedure is Adam.
Experiments and results
A synthetic setting and a real-video setting
CATER provides synthetic videos created for action recognition and reasoning. Its annotation includes the objects’ boxes and attributes, together with action labels and their timing. The experiments use Rotate, Contain, Pick Place, and Slide. Pick Place and Slide carry destination coordinates, making the endpoint an instruction rather than leaving it to be chosen during generation. This dataset gives the authors scenes with several objects and with actions that can overlap. The standard training partition has 3,849 videos. The authors take 30% of the original validation partition for their own validation set, giving 495 videos, and use the remaining 1,156 videos for testing.
Something-Something V2, abbreviated SmthV2 in the paper, supplies real clips of people manipulating objects. The study uses the eight most frequent action categories. The set includes pushes in either horizontal direction, upward and downward movements, covering and uncovering, and putting and taking. Each training clip contains a single action. There are up to three objects per clip, and the paper reports 122 object classes in the data used, including the acting hand. The bounding boxes come from existing annotations. The authors set an action’s start to the first frame in which the objects are present and its end to the last such frame. This produces a usable schedule, though its boundaries are tied to visibility. They are not independently marked observations of the exact instant the movement begins or ends.
The two evaluations therefore probe different properties of the same procedure. CATER provides action timing and examples of synthetic objects interacting concurrently. Something-Something V2 asks the renderer to handle imagery of real hands and objects and supplies single-action training clips from which to attempt compositions later. The authors use 8 FPS for CATER and 6 FPS for Something-Something V2, with 16-frame clips for evaluation. Most visual comparisons use 256 × 256 output. The HOI-GAN comparison uses 64 × 64, the resolution that baseline supports.
What the comparisons give each system
CVP represents the future-prediction baseline. It sees the initial image and layout, which give it the same opening evidence that AG2Vid uses. It receives no action instruction. It can produce a reasonable continuation when image cues are informative, and any agreement with the requested action in that case can arise from regularities in the data. The comparison asks what an action-conditioned system gains over a system that predicts from the opening state.
HOI-GAN, labeled HG in the results, receives an action–object pair along with an initial frame and layout. This gives it meaningful action information for the Something-Something V2 comparison. Its input cannot express CATER’s collection of action–object pairs and schedules, so the paper omits that comparison on CATER. In particular, the HOI-GAN rows answer a question about single-action generation at their supported resolution. The tests of multiple timed actions use other comparisons and protocols.
Vid2Vid, abbreviated V2V, receives the ground-truth layouts throughout the clip. It has access to the recorded trajectory of each box and does not consume the action graph. This is a strong input for a renderer, and the authors treat results with those layouts as an upper bound on Vid2Vid’s performance for the task. That characterization concerns this Vid2Vid setup. It does not establish an upper bound for all ways of generating video. The comparison shows how rendering from the predicted, action-enriched layouts fares against translation from box information taken from the real sequence.
The recurrent neural network variant, or RNN, changes how AG2Vid reads the graph when predicting layouts. It processes a sequence of edges while retaining the same frame generation stage. AG2Vid-GTL is another variant. It uses ground-truth layouts at inference, giving the authors a way to examine the effect of supplying box trajectories from the recorded clip. Both variants test choices within the system. Their interpretation depends on which part of the pipeline has changed and which inputs remain available.
Visual quality and semantic accuracy
The paper uses both automatic comparisons and human judgments. Learned Perceptual Image Patch Similarity, or LPIPS, compares generated and corresponding recorded visual content through learned image features. Lower values indicate that the generated content is closer by this measure. It can be reported on both datasets. In the CATER test comparison at 256 × 256, AG2Vid’s LPIPS is 0.07 ± 0.02, compared with 0.24 ± 0.04 for CVP, 0.14 ± 0.05 for the RNN variant, and 0.11 ± 0.02 for Vid2Vid. The ground-truth-layout variant reaches 0.06 ± 0.02 on that metric.
CATER test LPIPS at 256 × 256
AG2Vid has lower perceptual error than the prediction and translation baselines, and supplying recorded layouts lowers it further.
The numbers
| System or setting | LPIPS |
|---|---|
| CVP | 0.24 |
| RNN | 0.14 |
| Vid2Vid | 0.11 |
| AG2Vid (this paper) | 0.07 |
| AG2Vid-GTL | 0.06 |
For Something-Something V2 the paper also reports Inception Score and Fréchet Inception Distance, abbreviated IS and FID. Both use a TSM action recognizer pretrained on that dataset. IS summarizes whether generated clips receive confident class predictions while exhibiting variety in predictions across clips. Higher values are preferable. FID compares the distribution of generated clips with real ones in the recognizer’s feature space, with lower values preferable. The CATER results omit these measures because the evaluators are trained for single-action recognition, while the clips there can contain several actions. The paper uses LPIPS and human judgments to address aspects of quality in that setting. The source of Inception Score is Improved Techniques for Training GANs.
In the 256 × 256 Something-Something V2 evaluation, full AG2Vid reaches IS 3.02 ± 0.11 and FID 66.70 ± 1.29. Vid2Vid records IS 2.22 ± 0.07 and FID 67.51 ± 1.42. CVP has IS 1.92 ± 0.03 and FID 67.77 ± 1.43, and the RNN has IS 1.99 ± 0.05 and FID 74.17 ± 1.54. The ground-truth-layout variant records IS 3.52 ± 0.14 and FID 65.04 ± 1.25. The IS for real videos is 7.58 ± 0.20 at this resolution. That reference provides context for the generated scores, even for a system that is ahead of the baselines.
Something-Something V2 Inception Score at 256 × 256
AG2Vid leads the prediction and translation baselines, and its score improves when it receives the recorded layouts.
The numbers
| System or setting | Inception Score |
|---|---|
| CVP | 1.92 |
| RNN | 1.99 |
| Vid2Vid | 2.22 |
| AG2Vid (this paper) | 3.02 |
| AG2Vid-GTL | 3.52 |
The Something-Something V2 LPIPS results at 256 × 256 give a more mixed ordering of the baselines. AG2Vid records 0.25 ± 0.08, and AG2Vid-GTL reaches 0.22 ± 0.09. The RNN’s 0.26 ± 0.08 places it ahead of Vid2Vid at 0.29 ± 0.09 on LPIPS. Its FID is higher than Vid2Vid’s, and its IS is lower. These comparisons illustrate what changes when the measurement moves from similarity to a particular recorded clip to statistics drawn from a recognizer across the evaluation clips.
In the separate 64 × 64 Something-Something V2 comparison, HOI-GAN records IS 1.66 ± 0.03 and FID 35.18 ± 3.60. AG2Vid reaches IS 2.51 ± 0.08 and FID 26.05 ± 0.73 at that resolution. The corresponding real-video IS is 3.90 ± 0.120. The baseline and AG2Vid values are comparable within this block. The real-video references show that the score scale in the low-resolution setting should be read in its own context.
The human evaluation asks a different question. For visual quality, raters choose the better-looking generated output in a pair. For semantic accuracy, they select the output that better depicts the action in a real reference video. The reported percentages give the share of pairwise choices made in favor of AG2Vid. They describe which output was preferred when both were available, rather than the rate at which a rater could recognize a requested action from an AG2Vid clip in isolation.
On CATER, raters pick AG2Vid for semantic accuracy in 85.7% of comparisons with CVP and for visual quality in 76.2%. Against Vid2Vid those preference shares are 68.8% for each criterion. The closest comparison with a variant predicting its own layout is the RNN. AG2Vid takes 56.0% of the semantic choices and 52.0% of the visual-quality choices. Against AG2Vid-GTL, its shares are 48.6% for semantics and 42.9% for visual quality. This last comparison uses a reference layout in the competing system, making it especially relevant to the quality of the intermediate prediction.
On Something-Something V2, the shares favoring AG2Vid against CVP are 90.6% for semantics and 93.8% for visual quality. Against Vid2Vid they are 84.4% and 96.9%, respectively. Against HOI-GAN, the corresponding shares are 84.6% and 88.5%. In the comparison with the RNN they are 80.6% and 77.8%. Against AG2Vid-GTL, AG2Vid is selected in 46.2% of semantic judgments and 50.0% of visual-quality judgments. The largest preferences in these comparisons occur against systems that differ in several respects, so the study also uses narrower comparisons to understand the design choices.
Does the schedule change when the action appears?
The authors construct 90 pairs of CATER action graphs for the timing experiment. The action under examination is scheduled earlier in one graph than in the other. The rest of the graph remains the same. Raters on MTurk see the resulting video pair and choose the clip in which the action happens first. This is a direct test of whether a timing edit to the input produces a visible ordering in the intended direction.
The reported average timing accuracy is 89.45%. Broken down by standard action, the values are 96.7% for Slide, 100.0% for Contain, 90.0% for Pick Place, and 56.7% for Rotate. For the composed CATER actions, Swap reaches 93.3% and Huddle reaches 100.0%. The drop for Rotate is pronounced. The authors point to the relatively subtle visible change associated with rotation as a possible explanation. A rater can judge the beginning of an obvious slide from displacement, whereas the rotation of an object in place calls for distinguishing changes in appearance. Because the test captures which option the rater selected, it cannot tell whether the movement failed to occur or occurred but was hard to time visually.
The experiment establishes more than a resemblance between an ordinary generated clip and its reference. Since the timing choice comes from the graph edit, correct judgments are evidence that the generator is sensitive to the schedule. The outcome is still an earlier-or-later judgment. It does not measure how many frames separate a requested boundary from the visible beginning or end of the action.
Can familiar edges make a new action?
The paper’s zero-shot experiment uses combinations of familiar actions absent from training. In CATER, Swap coordinates Pick Place and Slide. The intended joint result is that the objects exchange positions. Huddle combines Contain actions. In Something-Something V2, the authors pair a leftward push with downward motion, and a rightward push with upward motion. The combined movements, called Left-Down and Right-Up in the main discussion, are specified by the graph. The constituent actions are available from training, even though the combination is new.
Human raters choose an action label after watching the generated clip. The paper reports average class recall of 96.65 for CATER and 87.5 for Something-Something V2 in the composition experiment. Class recall counts how often clips generated for a particular action are assigned its intended label. The supplementary results give 92.1 for Swap and 98.6 for Huddle. The corresponding values for Right-Up and the down-and-left composition are 75.0 and 100. CATER raters choose from the possible CATER actions, whereas the Something-Something V2 composition test asks them to choose between the two composite labels. The datasets’ reported averages therefore come from different recognition tasks.
The supplementary videos also broaden the range of graphs shown for real imagery. In one example the authors use four objects and two simultaneous actions. They manually add the hands to the starting image for that demonstration. Another example uses three consecutive actions, even though each Something-Something V2 training clip contains a single action. The examples demonstrate that the generator accepts and can render some of those longer or denser instructions. The recognition scores for the designed composites and the qualitative examples of more complex graphs are distinct pieces of evidence.
What the ablations show
Graph updates improve the intermediate boxes
The comparison between the graph convolutional network and the recurrent variant holds the layout inputs and supervision fixed. Both have the previous layout and the clocked action graph. Both predict boxes with a multilayer perceptron after producing an updated descriptor for each object. They also share the frame generation stage. The main difference is how they accumulate information from the action edges.
For the recurrent variant, the authors construct a sequence of vectors for each object whose layout they want to update. Each vector pairs the designated object’s initial features with the initial features of an edge and its endpoints.
Uₘ[e] = [z⁰ₜ,ₘ, z⁰ₜ,ᵢ, u⁰ₜ,ₑ, z⁰ₜ,ⱼ]
Here Uₘ is the matrix of edge inputs prepared for designated object m, and Uₘ[e] is its row for edge e. The symbols z⁰ₜ,ₘ, z⁰ₜ,ᵢ, and z⁰ₜ,ⱼ are the input representations at time t of object m and the acting and affected endpoints i and j. The vector u⁰ₜ,ₑ represents the edge. The brackets concatenate the features. With each input vector of length D, a row has length 4D, and there is a row for each edge. The stacked recurrent network reads the rows in sequence. The final hidden state of its Kth layer supplies the new descriptor for m.
The box metric is mean intersection over union, or mIOU. For an individual prediction, intersection over union divides the area shared by the predicted and reference rectangles by the area covered by either rectangle. The metric averages this overlap across boxes. On CATER the graph network reports mIOU 93.09 against the recurrent variant’s 75.71. On Something-Something V2 the corresponding values are 51.32 and 41.28. The authors suggest that processing edges as a sequence imposes an ordering that is unnatural for a graph. The ablation supports their graph update over this recurrent implementation. It does not isolate edge order from every other difference between the architectures.
The supplementary layout evaluation compares the learned predictors with a random baseline and with a rule-based predictor. In the Something-Something V2 layout comparison, mIOU is 13.6 for random boxes and 27.3 for the rule-based method. The recurrent and graph methods have mIOU 41.3 and 51.3 at the precision reported in that comparison. The rules make sense as a control because an instruction such as moving right already describes a direction. During a scheduled rightward movement, the rule adds a constant horizontal increment and leaves the other box coordinates fixed.
(xₜ₊₁, yₜ₊₁, wₜ₊₁, hₜ₊₁) = (xₜ + α, yₜ, wₜ, hₜ)
Here xₜ and yₜ give the box position at time t, and wₜ and hₜ give its width and height. The subscript t + 1 denotes the next step. The increment α is set to 0.1 for the rule described in the paper, and the initial coordinates come from the opening layout at t = 0 in this rule’s convention. The rule is applied when the relevant action operates on the object. The authors identify the initial relative locations, hand position, and object size as factors this type of rule neglects. A learned update can use those cues to predict a trajectory suited to a particular instance and scene.
The supplement also asks how often a predicted box clears a given overlap threshold. At R@0.3, where a hit has intersection over union above 0.3, random, rule-based, recurrent, and graph predictors score 16.5, 18.4, 61.7, and 74.5, respectively. At R@0.5, where the threshold is 0.5, their scores are 4.8, 18.7, 39.2, and 53.9. These measures show how many boxes meet specified overlap criteria. The graph predictor’s advantage appears at both thresholds as well as in average overlap.
Adding frame losses improves the tested sequence of settings
The frame-loss study starts with the flow setting, adds the perceptual term, then adds the action discriminator. This design measures what each addition contributes in the presence of the terms already in the configuration. In the sequence of settings, Something-Something V2 Inception Score rises from 1.59 ± 0.02 to 2.21 ± 0.07 and then to 3.02 ± 0.11. FID on the same dataset falls from 107.26 ± 1.46 to 71.70 ± 1.46 and finally 66.70 ± 1.29.
Something-Something V2 FID as frame losses are added
The perceptual addition lowers FID in the flow setting, and the action discriminator lowers it further.
The numbers
| System or setting | FID |
|---|---|
| Flow | 107.26 |
| Flow with perceptual loss | 71.70 |
| Flow with perceptual loss and action discriminator (this paper) | 66.70 |
The progression also appears in LPIPS. On CATER it goes from 0.14 ± 0.01 in the flow setting to 0.08 ± 0.03 with the perceptual addition and 0.07 ± 0.02 with the action discriminator added. On Something-Something V2 the corresponding values are 0.70 ± 0.06, 0.29 ± 0.07, and 0.25 ± 0.08. The action discriminator addition helps within this particular training sequence. The study does not compare an action-conditioned discriminator with an otherwise identical discriminator lacking the graph input. Its final increment therefore concerns the addition as a whole.
The loss study measures visual criteria. The results show that supervised warping, feature-level comparison, and adversarial training work together in the evaluated configuration. A separate claim about whether a specific loss improves exact action timing would require timing judgments for the corresponding settings. The schedule edit experiment supplies evidence about the complete generator.
What recorded layouts and fixed opening frames reveal
AG2Vid-GTL tests how the pipeline fares when its layouts come from the real sequence. It improves the reported automatic metrics where the paper compares it at the same resolution. The pairwise human preferences are narrower and depend on the dataset and the question raters were asked. On Something-Something V2, visual-quality preferences are evenly divided between AG2Vid and AG2Vid-GTL. The authors show examples where the predicted trajectory presents an action more explicitly than the recorded trajectory does. A real box sequence can improve agreement with a specific recording while a generated sequence makes the defining motion easier to see.
The single-action recognition analysis helps explain that distinction. The authors generate twenty Something-Something V2 videos per action and obtain judgments from three annotators per video. Each annotator chooses an action label, and the reported class recalls use majority voting. The recorded videos go through the same annotation procedure. For instance, Move Down has recall 100. on generated examples and 90. on real ones. Take has recall 80. on generated examples and 65. on real ones. The authors suggest that the generated movements can be more explicit, whereas a real performance can vary.
That effect does not hold for all actions. The generated Up examples achieve recall 50. compared with 100. for real clips, and generated Uncover achieves 25. compared with 100. for real clips. Cover yields 55. on the generated set and 85. on the recorded set. Some movements are much harder to convey with predicted boxes and rendered pixels. This experiment helps distinguish relative preference against a baseline from recognizable action in an individual clip. It also shows why judging all clips by the ease of recognizing a few directional movements would give an incomplete account.
Another check changes the action graph while fixing the opening frame and layout on Something-Something V2. The supplementary examples display continuations that respond to the changed action. This addresses the possibility that the generator mostly follows correlations in the starting image. The layout and image at the start give the same evidence in each comparison, while the instruction is what changes. The figures supply qualitative evidence of responsiveness. The paired CATER timing experiment measures one form of that responsiveness across a set of edits.
The authors further compare AG2Vid with a scene-graph-to-image system that renders each frame from its corresponding scene graph. This supplementary comparison is made on the available frame-level scene graph annotations, and the authors illustrate it on CATER. Individual frames can be synthesized from their scene descriptions, but the displayed sequences maintain objects less consistently over time. The image generator renders frames independently, while AG2Vid has a previous image and a mechanism to carry appearance forward. The comparison involves different conditioning inputs as well as different rendering mechanisms. It illustrates the role of temporal conditioning without measuring the isolated effect of any one difference.
Limitations
Limits the authors identify
The authors report failures with occluded and overlapping objects. Those cases are demanding for the particular intermediate representation used. A box gives an extent in the image, but it does not trace an object’s visible contour. When several boxes overlap, the generator’s layout feature map adds their contributions at the affected locations. The renderer then has to infer which object should be visible and what to do with appearance unavailable in the preceding frame. The authors suggest investigating segmentation masks as a finer representation that could help with these situations. The paper does not evaluate that extension.
The discussion also distinguishes the rigid movements demonstrated in the paper from actions involving more complex, non-rigid motion. The authors suggest that generating such actions could require a source of random variation or additional controls for how an action is performed, including its speed or style. The clock alone supplies a fraction of the allotted time. How an object or body should deform over that interval, and which of several plausible styles to use, are decisions the experiments leave open.
The timing analysis identifies Rotate as unusually challenging. A stable bounding box can be a good layout prediction for an object rotating in place. The frame generator must then convey orientation changes through the image, and a viewer must locate a relatively subtle event in time. The authors’ explanation in terms of subtle visual change is plausible within the experiment. The reported timing judgments do not determine how much of the difficulty arises at generation and how much arises in the observer’s interpretation.
Limits of the evidence
The evaluated task supplies both the opening image and its ground-truth layout. The video generator can therefore reuse the object appearance and has an annotated starting position for every object it needs to track. The authors mention that a scene-graph-to-image generator might supply an initial frame in an extended setup. Their results apply to synthesis from the stated inputs. They do not establish comparable performance when the initial appearance or boxes must also be inferred.
The annotations behind the graph are another condition of the result. CATER comes with action timing, attributes, and boxes. Something-Something V2 uses bounding boxes and defines action boundaries from object visibility. Neither experiment measures the effort required to obtain comparable structured instructions in a new collection. The paper motivates action graphs as less costly than dense frame masks. Its experiments evaluate generation from graphs made with available annotations, rather than measuring the cost or reliability of preparing those annotations.
The control demonstrated by the timing experiment is relative and specific to CATER. Raters identify which of two clips shows a movement earlier. This leaves open whether every visible onset matches the requested start frame, whether the duration matches the commanded interval, and how simultaneous actions affect each other’s timing. The conspicuous differences among the per-action scores also make the average unsuitable as a prediction for an arbitrary action. Something-Something V2 uses a different construction for the input intervals and does not supply a corresponding timing result in the paper.
The short evaluation clips and designed combinations limit the generalization claim. The composite tests use action categories the generator has learned. Recognizing Swap constructed from two learned components supports recombination of those components. It does not show that an unseen atomic action can be generated from its name, or that a generator will continue to execute the specified schedule reliably over much longer sequences. The manually constructed initial image in the concurrent real-video example is part of that example’s setup. It demonstrates what the renderer can do with the prepared scene and graph.
The graph’s individual action edges have one or two participants. A more complex group interaction can be expressed by several edges, as the composed actions illustrate. The learned coordination between those edges is judged from the outputs. The architecture does not provide a separate physical constraint that guarantees compatible contacts, paths, or final arrangements. Whether the relevant relationships are satisfied depends on the layout predictions and the renderer’s ability to make them visible.
Finally, the quality measures answer different questions under different conditions. A perceptual distance to a reference penalizes differences from that recorded clip, even where another realization would satisfy the same instructions. A recognizer-based metric depends on what its features and action labels distinguish. A pairwise preference can favor the clearer of two outputs when both are imperfect. The paper’s tests combine these views with separate timing and action-recognition judgments. Together they support recognizable, controllable synthesis for the tested actions and settings, with uneven performance across actions and no direct measurement of exact schedule adherence.
What came after
No later studies building on the paper are documented.
Cite
Cite as Amir Bar, Roei Herzig, Xiaolong Wang, Anna Rohrbach, Gal Chechik, Trevor Jackson Darrell and Amir Globerson. 2020. Compositional Video Synthesis with Action Graphs. arXiv (Cornell University).
@misc{bar2020compositional,
title = {{Compositional Video Synthesis with Action Graphs}},
author = {Amir Bar, Roei Herzig, Xiaolong Wang, Anna Rohrbach, Gal Chechik, Trevor Jackson Darrell and Amir Globerson},
year = {2020},
doi = {10.48550/arxiv.2006.15327},
eprint = {2006.15327},
archivePrefix = {arXiv},
url = {https://doi.org/10.48550/arxiv.2006.15327}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/bar-2020-compositional-video-synthesis-action-graphs/