Elamur Research

TF-Blender: Temporal Feature Blender for Video Object Detection

Paper · 2021 · Yiming Cui, Liqi Yan, Zhiwen Cao et al.

Summary

A car can be easy to spot in one frame of a video and hard to recognize in the next. Fast motion can blur its outline, another object can hide part of it, and a shift in the camera can make the image less clear. A detector working on the difficult frame can draw on the clearer views around it. The challenge is to bring over the evidence that helps. A neighboring frame can contain a useful view of the car and, in the same image, a strong response to a traffic cone that contributes little to identifying it.

TF-Blender changes how a video detector combines these internal visual features. It first compares the frame being processed with each candidate neighbor and learns a weight for individual entries in their feature maps. This lets the detector use evidence from one region of a neighbor while suppressing evidence from another. It also compares each neighbor with the other neighbors before using it to help the current frame. The final stage normalizes the adjusted features and can exclude a neighbor when its representation is already highly similar to the current frame's. The result is a feature representation that the existing prediction network can use to detect objects or produce instance masks.

On the ImageNet VID validation set with a ResNet-101 backbone, adding TF-Blender improved mean average precision for FGFA, SELSA, RDN, and MEGA. FGFA went from 77.8% to 79.3% and had the largest reported gain. MEGA went from 82.9% to 83.8% and had the highest final score. On the YouTube-VIS validation set, all the tested instance segmentation systems improved on the reported precision and recall measures. SipMask, for example, went from 33.7 to 35.1 AP. The versions with TF-Blender ran at lower frame rates wherever the paper gives a paired runtime measurement.

The authors tested the module's design choices using FGFA. All of its stages helped in that setting, and the complete module scored highest. The representation used to compare frames mattered too. Supplying the original features and their differences in both directions worked best among the tested inputs. The breakdown by object size and speed puts the gains in perspective. Large objects and slow-moving objects benefited most in their respective groups. The method was motivated by difficult frames, and the results show where that motivation translated most clearly into improved detection.

Deep dive: TF-Blender: Temporal Feature Blender for Video Object Detection

TF-Blender improves video object detection and segmentation by weighting features locally and comparing neighboring frames before combining them. · about 32 minutes to read

The problem and its context

When a frame gives an incomplete view

Object detection asks what objects appear in an image and where they are. A detector usually reports a class and a bounding box, the rectangle that locates an object in the image. In a video, the same object can appear repeatedly while its visibility changes from frame to frame. Camera movement, rapid object motion, or a loss of focus can degrade the view. Occlusion can hide part of an object even when the visible part is sharp. A detector processing each frame separately has to make a decision using whatever evidence survives in that particular image.

The same sequence also offers an opportunity. The occluded part might be visible just before the obstruction. A nearby frame might capture a sharper outline or a more recognizable pose. The frame being processed, which the paper calls the current frame or keyframe, can therefore benefit from information extracted at another time. Here the word keyframe identifies the target of an aggregation operation. The method is described around a current frame and a set of candidate neighbors, with the detection task still referring to the current frame.

A neighboring image is useful to the extent that the detector can recover relevant evidence from it. Whole images contain background, other objects, and regions where visual details are unreliable. They also change across time. An object can move to another position or present a different shape as it turns. A feature map gives a detector a way to work with this evidence. It is an array of learned responses organized by spatial position and by channel, with channels carrying different kinds of visual information. Combining feature maps allows another frame to contribute before the detector settles on its boxes and classes.

The paper's car and traffic cone illustration makes the distinction between a useful neighbor and useful information within a neighbor concrete. The moving car is the object of interest. The cone is stationary and produces a substantial response in the visual features. A common weight on the entire neighboring representation would scale both responses together. A local weight can preserve a region that helps identify the car while reducing a response elsewhere. The example is especially relevant to a small or partially visible target, whose usable evidence may occupy only a limited part of the feature map.

This is why the paper treats temporal aggregation as a spatial problem as well. Temporal information comes from the object appearing across frames. The decision about where that information is useful takes place within their representations. The current frame can benefit from features associated with the same object under a change in pose or visibility, and the neighboring frames can help establish whether their responses are consistent. Those considerations are distinct from the question of how far apart the frames are in time.

From linking detections to combining features

The authors describe earlier approaches that start with detections from a still-image system. A separate stage then links or revises the outputs across time. Seq-NMS, for example, connects boxes using their overlap and changes the scores of linked detections. The overlap measure is intersection over union, or IoU. It compares the area shared by two boxes with the area covered by either box. A sequence of sufficiently overlapping detections can give the system a reason to revise the scores it originally assigned to individual frames.

The other examples in this family use different ways to associate observations. T-CNN uses optical flow to connect detections produced by an image detector. Optical flow estimates apparent movement between images. TCN uses tubelets, sequences of candidate object regions over time, and temporal convolution to incorporate information from across frames. In the paper's account, these approaches have a separate stage for making use of time. The quality of the frame-level detections constrains what that stage can recover. If a poor view yields weak predictions, linking the available outputs leaves the underlying visual representation as it was.

Feature aggregation brings information across time earlier. The detector first extracts a representation from each input, and evidence drawn from other frames can improve the representation from which it makes the current prediction. An optical-flow-based method can use motion estimates to bring features into correspondence across frames. A similarity-based method can assign more weight to features that agree with the current representation. The distinction matters because a weak view can benefit from information before the detector has committed to a particular class, location, or confidence score.

The paper groups earlier aggregation systems by the temporal evidence they use. FGFA and MANet use optical flow to align and combine features across nearby frames. SELSA considers semantic similarity across a longer range, drawing on the sequence to find features relevant to the current frame. MEGA combines nearby and more distant information with a memory mechanism. These approaches address different ways a useful view might arise. Nearby frames capture continuity, while a more distant frame can contain evidence absent from the immediate neighborhood.

TF-Blender addresses what happens inside the aggregation operation after candidate evidence has been gathered. The paper describes existing aggregation using similarity weights and recognizes that earlier systems already make adaptive choices. Its criticism concerns the granularity of those choices and the relations they represent. A weight shared over a region or applied as a global judgment can retain irrelevant local responses. Comparing every neighbor independently with the target leaves the relations among the neighbors implicit. A predetermined input count can also require the aggregation operation to accept candidates whose participation is unhelpful.

What relation learning adds

The paper puts this proposal in the context of earlier attempts to learn relations between features. In point-cloud analysis, RS-CNN and PointConv use properties of the local geometry to describe how nearby points relate. DGCNN constructs relations in learned feature space and can update the neighborhood as the representation changes. The examples illustrate two choices a relation-based system makes. It decides which observations to compare, and it decides what representation to use for the comparison.

In object detection, the paper traces relation learning from a module for relations among objects in still images to RDN's use of object relations for video feature aggregation. MEGA extends that line by managing both short-range and long-range information with memory. TF-Blender takes the pairwise comparison down to feature maps and applies it in two places. It asks how a neighbor relates to the current frame, and it asks how that neighbor relates to the other candidates. The comparison can preserve spatial detail available within each map.

The authors also connect the problem to video instance segmentation. Instance segmentation assigns a mask to each detected object, outlining the image locations that belong to that particular instance. In video, the system must also identify the same instance across frames. The paper describes MaskTrack R-CNN as an extension from image instance segmentation and discusses MaskProp and EnsembleVIS as work concerned with following instances through time. TF-Blender asks whether improving the visual representation before the prediction stages can help the systems that generate masks and associate objects. That question gives the architecture a test beyond bounding-box detection.

The method, step by step

What enters and leaves the module

Start with the frame for which the detector needs an answer and the nearby or otherwise selected frames the underlying system makes available. An encoder turns each image into a feature map. For a bounding-box detector, the aim is to build a more informative representation of the current frame before classifying and locating objects. For an instance segmentation system, the same enhancement supplies features for a task that also needs to delineate and associate instances. TF-Blender acts on the intermediate representations shared by these tasks.

There are two preparatory operations in the module. The first computes a map of weights for each current-frame and neighboring-frame pair. This map can assign different levels of importance to different entries in the neighboring representation. The second prepares the representation that the neighbor will actually contribute. It does so by comparing that neighbor with the rest of the candidate set. The blender takes the weight map from the first operation and the adjusted features from the second. It transforms them, applies a rule that can remove a candidate's contribution, and combines the contributions that remain.

How TF-Blender builds features for the current frame

The steps in order.

How TF-Blender builds features for the current frameStep 1: Encode the current frame and candidate neighbors1. Encode the current frame and candidate neighborsStep 2: Compare each neighbor with the current frame2. Compare each neighbor with the current frameStep 3: Compute weights across the feature map3. Compute weights across the feature mapStep 4: Adjust each neighbor using relations among neighbors4. Adjust each neighbor using relations among neighborsStep 5: Rectify weights and normalize adjusted features5. Rectify weights and normalize adjusted featuresStep 6: Skip neighbors that exceed the similarity threshold6. Skip neighbors that exceed the similarity thresholdStep 7: Combine the weighted features for prediction7. Combine the weighted features for prediction

The two sets of comparisons play different roles. A current-frame comparison asks which portions of another view should matter to the target. A comparison among neighbors supplies context for interpreting that other view before it contributes. The same relation function can serve both roles because it takes a pair of feature maps. Changing the pair changes the question. In the first case, the pair includes the target. In the second, the pair consists of candidate neighbors of that target.

It helps to keep the objects in the notation distinct. An upper-case frame symbol with a subscript identifies an image at a particular position in the sequence. A lower-case feature symbol with the same subscript denotes the array extracted from that image. The calligraphic neighborhood symbol denotes the set of candidate frames associated with the current frame. The paper also uses a function written with an upper-case F to denote an adjusted representation. Its arguments distinguish that function from the indexed frame symbols.

The weighted sum TF-Blender starts from

The paper expresses conventional aggregation as a sum of weighted neighboring features.

Δfᵢ = ∑_{Fⱼ ∈ ℕ(Fᵢ)} (wᵢⱼ × fⱼ)

Here Fᵢ is the current frame and Fⱼ is a candidate neighboring frame. The indices i and j identify those frames. ℕ(Fᵢ) is the candidate set for the current frame, and ∈ restricts the sum ∑ to its members. fⱼ is the feature representation of candidate Fⱼ. The weight wᵢⱼ controls that candidate's contribution to the current frame, and × applies the weight to the feature. Δfᵢ denotes the resulting aggregate for frame i. The delta is part of the name of the aggregate. The equation gives a sum and leaves the details of weight estimation to the aggregation system.

This expression separates the weight a candidate receives from the feature it supplies. With a broadly shared weight, all the entries affected by it are scaled together. A stronger traffic cone response and a weaker car response may both survive if the candidate is useful overall. TF-Blender changes both terms of the conventional sum. Its weight is an array that can vary within a map, and its input to the weighted sum is an adjusted representation obtained with reference to the other candidates.

The neighborhood has a role before and after the network computes its weights. Initially it defines which inputs the method can inspect. At the end, some members of this set can contribute zero through the gate. The paper's description of a dynamic number of frames concerns this final participation. The pool of candidates remains the basis on which comparisons are computed, and a candidate considered for removal has already supplied information to the processing leading up to that decision.

Learning a local weight map

The temporal relation module starts from the features of the current frame and one candidate and predicts an array of weights with the same size as the features being combined.

W(fᵢ, fⱼ) = M(g(fᵢ, fⱼ))

In this equation fᵢ and fⱼ are the feature maps of current frame i and neighbor j. g describes a pair of features in a form that the weighting network can process. M is the learned masking function that converts this description into weights. W(fᵢ, fⱼ) is the resulting tensor, an array indexed like the feature representation it will weight. The order of the arguments identifies which feature is being evaluated in relation to which.

The input function used in the main experiments retains both original feature maps and their signed differences.

g(fᵢ, fⱼ) = concat(fᵢ, fⱼ, fᵢ − fⱼ, fⱼ − fᵢ)

Here g is the pair representation, and fᵢ and fⱼ are the feature maps for the current and neighboring frames, respectively. concat joins the listed feature arrays into one input while preserving their separate values. The − operations subtract corresponding entries to give a difference in each direction. The result preserves the responses observed in the original maps alongside explicit information about where and how they differ.

Concatenation keeps the comparisons available to the following network in a form that an elementwise sum would collapse. If a feature entry has a strong response in the current frame and a weaker response in the neighbor, the original inputs retain both responses. The difference terms make the ordering of those responses explicit. When a neighbor comes from before or after the target, the same construction applies. The signs encode the order of the feature arguments. They are derived from visual responses, without a separate timestamp in the expression.

The masking network applies three convolution layers to the pair representation. A convolution uses learned weights repeatedly over a feature map. Using the supplied channels, the network can learn when a combination of original and difference features warrants a strong or weak weight at a given location. Its output has the dimensions required to modulate the entries of the neighboring representation. This is the operation that lets TF-Blender favor a region of interest and reduce irrelevant responses within the same pair of frames.

The example with the car and cone illustrates the effect the designers seek. A weight for the entire neighbor would have to reconcile two different facts about it. It may show the car clearly enough to help, and it may activate strongly at the cone. A feature-sized weighting tensor gives the learning procedure separate values through which to express those judgments. The module yields relevance weights. Its equation contains no movement vector or explicit position shift, so the weighting should be understood as modulation of features already available to the aggregation pipeline.

Adjusting a neighbor using the other candidates

The adjustment stage begins from the observation that the representation of one neighbor can itself be weak or ambiguous. A candidate might contain a clear feature in one area and an unreliable one elsewhere. If each candidate is weighted only through its relation to the current frame, a weak target representation supplies the common point of comparison for every candidate. Relations among the neighbors offer additional evidence about the features that recur and those that stand out.

The authors first write down the simpler case in which a neighbor supplies its features for the current frame directly.

F(fᵢ, fⱼ) = fⱼ→ᵢ

Here F(fᵢ, fⱼ) denotes the feature contribution associated with neighbor j when the system is processing frame i. fᵢ and fⱼ are the target and neighboring feature maps. fⱼ→ᵢ denotes the neighboring representation as supplied to the current frame, with ⱼ→ᵢ indicating the direction of that contribution. The expression introduces no comparison among the neighbors. A host method can have its own way of preparing the representation to be passed from j to i.

TF-Blender replaces this assignment with an operation that holds neighbor j in focus while comparing it with each other candidate. Each comparison generates a map of weights. The adjusted representation is then obtained by summing weighted features. The paper writes the operation as follows.

F(fᵢ, fⱼ) = ∑_{Fₘ ∈ ℕ(Fᵢ), Fₘ ≠ Fⱼ} W(fⱼ, fₘ) ⊗ fⱼ

F(fᵢ, fⱼ) is the adjusted contribution of candidate j for current frame i. The index m runs over the frames Fₘ in the candidate set ℕ(Fᵢ). The condition Fₘ ≠ Fⱼ excludes the candidate currently being adjusted. fₘ is the feature map of comparison frame m, and fⱼ is the map of candidate j. W(fⱼ, fₘ) gives the weights inferred from the pair. The operator ⊗ multiplies corresponding entries, and ∑ adds the resulting arrays across the eligible comparisons. Frame i determines which candidates take part in the sum.

The factor on the right of ⊗ is fⱼ in the printed equation. Under that expression, the other neighboring maps affect the representation through the weights inferred from them. Every term in the sum modulates the feature of the candidate being adjusted. The authors also describe the stage in broader terms as aggregating a neighbor with the other neighboring features. The displayed operation makes the distinction concrete. The comparison map from frame m influences the feature contributed by j through W(fⱼ, fₘ).

The paper specifies that this weight comes from the same type of relation calculation used for target-to-neighbor pairs.

W(fⱼ, fₘ) = M(g(fⱼ, fₘ))

W(fⱼ, fₘ) is the feature-sized weight map for candidate j as compared with candidate m. fⱼ and fₘ are the respective feature maps, with m belonging to the current frame's neighborhood and differing from j. g forms the pair representation, and M maps it to the weights. The current frame is absent from the arguments of this particular weight function because the pair being evaluated consists of neighbors. Its influence is in defining the set from which those neighbors are drawn.

The construction therefore uses multiple viewpoints on the same candidate. A single target-to-neighbor weight map can only express what that pair reveals. With adjustment, the candidate also receives weights that reflect how its features relate to the other available views. The method defines this operation separately for each candidate. As the candidate set grows, the stated adjustment rule introduces additional pair comparisons. This matters when interpreting the runtime discussion, which expresses the cost of the new module using a compact per-frame term.

Preparing and filtering the contributions

The blender first applies a nonlinearity to the relation weights for the current frame and each neighbor. The one used here is the rectified linear unit, or ReLU. It leaves positive entries as they are and replaces negative entries with zero. This allows suppression at individual entries of the weight map before the method makes a separate decision about suppressing a whole contribution.

Ŵ(fᵢ, fⱼ) = ReLU(W(fᵢ, fⱼ))

W(fᵢ, fⱼ) is the raw temporal relation tensor for current feature fᵢ and candidate feature fⱼ. ReLU applies the rectification separately to each entry. Ŵ(fᵢ, fⱼ) is the rectified weight tensor, marked with a hat to distinguish it from the raw output of the masking network. The adjustment step has its own uses of the raw relation function. This equation describes the preparation of the weights for the final target-frame aggregate.

The adjusted neighbor features are prepared with softmax. This function turns a group of values into positive relative weights by exponentiating each entry and dividing by the total across the group. Larger responses retain a larger share of the result. The paper specifies that the operation runs across channels, so the normalization concerns the adjusted representation's channels and preserves the spatial organization needed for the final multiplication.

F̂(fᵢ, fⱼ) = softmax(F(fᵢ, fⱼ))

F(fᵢ, fⱼ) is the adjusted feature for neighbor j in the neighborhood of target i. The arguments fᵢ and fⱼ identify the corresponding target and neighboring features. softmax normalizes the adjustment across channels. F̂(fᵢ, fⱼ) is the normalized tensor, with the hat marking the output of this preparation step. Each candidate has its own channel normalization. The operation leaves the summation across candidates to a later step.

The final decision about whole candidates uses a similarity test. The paper computes an inner product between the normalized neighbor representation and the current frame's features, then divides by their magnitudes. This is the cosine similarity expression. A larger value reflects greater agreement in the directions of the representations. The authors call the quantity a cosine distance in prose. The displayed quotient, together with the direction of the inequality, specifies how it acts in the method.

Ŵ(fᵢ, fⱼ) = 0  if  [F̂(fᵢ, fⱼ) · fᵢ] / [|F̂(fᵢ, fⱼ)| |fᵢ|] > δ

F̂(fᵢ, fⱼ) is the normalized feature from neighbor j, and fᵢ is the current frame's feature. fⱼ identifies the neighbor whose contribution is under consideration. The dot · denotes the inner product, the bars | | denote vector magnitudes, and / divides the inner product by the product of those magnitudes. δ is the similarity threshold, set to 0.7 in the experiments. The strict comparison > triggers removal when the quotient exceeds that threshold. Ŵ(fᵢ, fⱼ) is the rectified weight tensor, and setting it to 0 clears the entire candidate's weight. When the test does not trigger, the candidate keeps the rectified weight given by the preceding step.

The high-similarity rule is motivated by redundancy. A candidate that resembles the current frame too closely may add little. A candidate with complementary evidence can still contribute, with the weight map deciding which entries matter. The paper also invokes severe blur and defocus as reasons a fixed set of contributing neighbors can be undesirable. The gate itself tests feature similarity. A quality judgment about blur or focus would have to arise from how such a frame is represented and weighted, since the decision rule contains no separate test for those conditions.

Forming the aggregate and training the system

After rectification, normalization, and gating, the blender multiplies each prepared weight tensor by its corresponding normalized feature tensor. It then sums the resulting contributions over the candidate neighborhood.

Δfᵢ = ∑_{Fⱼ ∈ ℕ(Fᵢ)} [Ŵ(fᵢ, fⱼ) ⊗ F̂(fᵢ, fⱼ)]

Δfᵢ is the aggregated temporal representation for current frame i. Fⱼ is a candidate frame, ℕ(Fᵢ) is the set of candidates for current frame Fᵢ, and ∈ indicates membership. The index j ranges over that set under the sum ∑. fᵢ and fⱼ identify the corresponding feature maps in the two functions. Ŵ(fᵢ, fⱼ) is the weight tensor after rectification and the similarity gate. F̂(fᵢ, fⱼ) is the adjusted feature after channel normalization. The ⊗ operation multiplies corresponding entries. Thus a candidate cleared by the similarity test adds nothing to the sum, while a retained candidate can still receive small or zero weights in particular locations.

The final equation describes the temporal aggregate. Its surrounding detector supplies the task-specific machinery that turns enhanced features into predictions. The paper implements TF-Blender using the original methods' code as the starting point. That design permits a paired comparison between an existing system and its augmented counterpart. The paper also names the authors' public implementation, TF-Blender. Its reported training procedure combines the module with existing prediction systems and specifies settings separately for detection and segmentation.

For video object detection, the authors train on ImageNet VID together with ImageNet DET. They use stochastic gradient descent, or SGD, which updates trainable parameters using gradients computed from the current training inputs. Training uses 8 RTX 2080Ti GPUs, and each GPU holds one set of images or frames during training and inference. The encoder parameters are frozen during training. Consequently, the augmentation is evaluated with the encoder weights held fixed while the relevant trainable parts can adapt around the extracted representations.

The detection setup also uses non-maximum suppression, or NMS, with an IoU setting of 0.5. NMS reduces repeated detections by using their scores and overlap to suppress redundant boxes. This is separate from the similarity gate. NMS operates on overlapping detection outputs. The gate operates earlier on an adjusted neighboring representation and its resemblance to the current frame's features. The settings therefore address different kinds of redundancy at different points in the pipeline.

For video instance segmentation, the authors start with weights pretrained on Microsoft COCO and use SGD on 8 RTX 6000 GPUs. They resize video frames to 640 × 360 for training and evaluation. The reported segmentation systems use ResNet-50-FPN, a backbone with a feature pyramid that supplies features at different scales. This setup tests whether the temporal enhancement carries over when the prediction pipeline needs masks and continuity of instance identity as well as object recognition.

Experiments and results

Bounding-box detection on ImageNet VID

ImageNet VID contains 3,862 training videos and 555 validation videos. The detection systems use the combined ImageNet VID and DET training protocol and are evaluated on the VID validation set. The paper reports mean average precision, or mAP, for detection. Average precision summarizes how precision and recall behave as the confidence cutoff varies. Precision describes how many accepted detections are correct, and recall describes how much of the annotated target set has been recovered. The mean combines average precision across categories.

The main comparison uses a ResNet-101 backbone throughout. Each augmented system is compared with the original implementation of its own underlying method. This gives TF-Blender several starting points. FGFA represents the local flow-guided approach, SELSA uses sequence-level semantic aggregation, and RDN and MEGA represent the stronger aggregation systems with which the paper compares its proposal. The paired scores show what happened after integration with each host. The absolute scores also reflect the different capabilities of the hosts themselves.

ImageNet VID validation mAP with and without TF-Blender using ResNet-101

Each detector improves with TF-Blender, and the augmented MEGA system finishes highest.

ImageNet VID validation mAP with and without TF-Blender using ResNet-101FGFA: 77.8FGFA77.8FGFA with TF-Blender (this paper): 79.3FGFA with TF-Blender (this paper)79.3SELSA: 81.5SELSA81.5SELSA with TF-Blender: 82.5SELSA with TF-Blender82.5RDN: 81.7RDN81.7RDN with TF-Blender: 82.4RDN with TF-Blender82.4MEGA: 82.9MEGA82.9MEGA with TF-Blender: 83.8MEGA with TF-Blender83.8
The numbers
System or settingmAP %
FGFA77.8
FGFA with TF-Blender (this paper)79.3
SELSA81.5
SELSA with TF-Blender82.5
RDN81.7
RDN with TF-Blender82.4
MEGA82.9
MEGA with TF-Blender83.8

FGFA's rise from 77.8% to 79.3% is the largest gain in the table, which reports it as 1.5. The reported gain for SELSA is 1.0, with mAP moving from 81.5% to 82.5%. RDN goes from 81.7% to 82.4%, with a reported gain of 0.7. MEGA goes from 82.9% to 83.8%, with a reported gain of 0.9. These gains refer to absolute changes in validation mAP. The distinction between paired gain and final score matters here. FGFA moves farthest from its starting point, and augmented MEGA gives the highest detection score.

The authors suggest that systems already combining different ranges of temporal evidence may have less room to benefit. Their explanation is that local and global information already helps such systems cope with problems such as motion blur. The pattern of gains is consistent with that possibility. The comparison varies the entire host system, including its initial performance and its aggregation design. It therefore demonstrates that several hosts benefit, while the reason some benefit more remains an interpretation of the results.

The runtime results give the other side of the comparison. They were measured on a single RTX 2080Ti GPU and are expressed in frames per second, or FPS. FGFA goes from 7.3 to 6.9 FPS, SELSA from 10.6 to 10.1 FPS, and MEGA from 5.3 to 4.9 FPS. The table gives no paired runtime for RDN. These measurements place the accuracy gains in the setting in which they were obtained. Each of the timed integrations incurs a throughput cost, and the magnitude depends on the system receiving the new module.

The paper also shows examples of results before and after augmentation. It points to cases involving an uncommon pose and partial occlusion as illustrations of how a difficult detection can improve. Such examples make the feature-level motivation easier to see. The validation mAP comparison establishes the aggregate gain. The selected examples show what an individual improvement looks like without assigning an average gain to either uncommon poses or occlusions as separate categories.

Instance segmentation on YouTube-VIS

YouTube-VIS contains 3,471 videos for training and 507 for validation. The authors report results on the validation set using ResNet-50-FPN and pretraining on Microsoft COCO. The comparison includes the one-stage systems Stem-Seg, SipMask, and SG-Net, along with the two-stage MaskTrack R-CNN. These systems already address mask production and the association of instances across frames. The experiment tests the effect of the enhanced feature representation within their existing pipelines.

The principal quantity in the comparison is AP, or average precision, for video instance segmentation. The authors also report AP 50 and AP 75, which show performance at different overlap requirements, and AR 1 and AR 10, which summarize average recall under different limits on predictions. The metrics provide views of the same task from different angles. A system can benefit by recovering instances it previously missed, by making its accepted predictions more reliable, or by improving how closely its predicted instances agree with the annotations.

YouTube-VIS validation AP with and without TF-Blender using ResNet-50-FPN

Every segmentation system gains AP, with augmented SG-Net scoring highest.

YouTube-VIS validation AP with and without TF-Blender using ResNet-50-FPNStem-Seg: 30.6Stem-Seg30.6Stem-Seg with TF-Blender (this paper): 31.3Stem-Seg with TF-Blender (this paper)31.3SipMask: 33.7SipMask33.7SipMask with TF-Blender: 35.1SipMask with TF-Blender35.1SG-Net: 34.8SG-Net34.8SG-Net with TF-Blender: 35.7SG-Net with TF-Blender35.7MaskTrack R-CNN: 30.3MaskTrack R-CNN30.3MaskTrack R-CNN with TF-Blender: 31.4MaskTrack R-CNN with TF-Blender31.4
The numbers
System or settingAP
Stem-Seg30.6
Stem-Seg with TF-Blender (this paper)31.3
SipMask33.7
SipMask with TF-Blender35.1
SG-Net34.8
SG-Net with TF-Blender35.7
MaskTrack R-CNN30.3
MaskTrack R-CNN with TF-Blender31.4

The AP values in the table give a consistent direction across the tested systems. Stem-Seg goes from 30.6 to 31.3, SipMask from 33.7 to 35.1, SG-Net from 34.8 to 35.7, and MaskTrack R-CNN from 30.3 to 31.4. SG-Net has the highest AP both before and after the change. The paper's prose describes the AP improvements for MaskTrack R-CNN and SipMask as more than 1.6%. The validation AP entries are the direct paired scores, and the prose gives no calculation that reconciles that blanket description with those entries.

The other reported metrics also improve for each pair. With TF-Blender, SipMask reaches 55.5 on AP 50 and 36.9 on AP 75, from 54.1 and 35.8 respectively. Its AR 1 goes from 35.4 to 36.1, and its AR 10 goes from 40.1 to 41.3. MaskTrack R-CNN shows the same direction. Its AP 50 and AP 75 move from 51.1 and 32.6 to 52.3 and 33.5. Its AR 1 and AR 10 go from 31.0 and 35.5 to 31.9 and 36.5. The improvements are therefore visible beyond the main AP column, including under the more demanding of the two reported AP overlap settings.

ImageNet VID and YouTube-VIS use different hardware for the reported runtime comparisons. On YouTube-VIS, the paper measures throughput on a single RTX TITAN GPU. Stem-Seg goes from 12.1 to 11.3 FPS, SipMask from 28.0 to 26.6 FPS, SG-Net from 22.9 to 21.3 FPS, and MaskTrack R-CNN from 10.0 to 9.4 FPS. The paired measurements show a throughput decrease in exchange for improved metrics in both detector categories on this benchmark.

The segmentation results broaden the evidence for using TF-Blender at the feature level. The same idea helps systems with different prediction arrangements, and the improvements cover both precision and recall measures. Those metrics describe the output of the full instance segmentation system. A better feature could improve object recognition, mask quality, or the association of an instance across frames. The reported comparisons measure the combined outcome of these stages.

What the ablations show

The contributions of the three stages

The paper uses FGFA on ImageNet VID to isolate the effects of architectural choices. The starting point is the original detector at 77.8% mAP. Adding temporal relation on its own raises the score to 78.5%, adding feature adjustment alone gives 78.1%, and adding the feature blender alone gives 78.3%. In this comparison, the strongest standalone change is the learned local weighting. The adjustment and blender also help when introduced separately, which gives evidence for including operations beyond the current-to-neighbor relation map.

FGFA component ablations on ImageNet VID validation mAP

Each module improves the baseline on its own, and the complete system scores highest.

FGFA component ablations on ImageNet VID validation mAPOriginal FGFA: 77.8Original FGFA77.8Temporal relation only: 78.5Temporal relation only78.5Feature adjustment only: 78.1Feature adjustment only78.1Feature blender only: 78.3Feature blender only78.3All modules (this paper): 79.3All modules (this paper)79.3
The numbers
System or settingmAP %
Original FGFA77.8
Temporal relation only78.5
Feature adjustment only78.1
Feature blender only78.3
All modules (this paper)79.3

The pairwise combinations in the component table score 78.6%, 78.8%, and 78.5% mAP. Each improves on original FGFA. The lowest pair score matches the strongest single-module score, so the tested pairings vary in how far they move the result. The full configuration reaches 79.3% mAP, with an absolute improvement reported as 1.5%. The complete system has the highest score among these settings. The experiment measures what happens when groups of operations are introduced together. In particular, the blender includes transformations and the thresholding rule, so its score alone does not isolate a contribution from the similarity gate.

These results correspond to distinct questions about the architecture. The temporal relation result tests finer control over what the current frame receives. The adjustment result tests whether a candidate feature benefits from being conditioned on relations with the rest of the neighborhood. The blender result tests the value of its contribution rule in the host pipeline. Their combination can exploit information produced by both branches, with the final weighted sum using the locally selective weights and the adjusted representations together.

What to show the relation network

The experiments with the relation function keep the other experimental settings fixed and alter the input seen by the masking network. Simply supplying the two original features gives 78.3% mAP. Supplying their difference alone gives 78.6%, while supplying their sum alone gives 77.9%. The difference makes disagreement explicit at corresponding entries. A sum can make different pairs look alike after strong and weak responses are pooled. The authors offer this pooling effect as an explanation for the weaker sum-based result.

The mixed inputs show how the original features and the comparison terms behave together. The original features with their sum give 78.1% mAP. A difference combined with a sum gives 78.5%. Keeping the original features with one signed difference reaches 78.9%. The selected input, which keeps the originals and both signed differences, gives 79.3%. This tests how easily the learned masking function can use the pair representation. The high-scoring input retains the observed responses and gives the network an explicit way to use the direction of a difference.

The authors relate the two signs to the fact that a candidate may precede or follow the target in time. The equations make the sign depend on which feature is subtracted from which. The two difference tensors are determined by the same pair of feature maps, so they contain the same underlying comparison in opposite forms. The empirical finding is that presenting both forms helps this learned weighting network in the tested configuration. A separate before-versus-after evaluation would be needed to compare their effects by temporal direction.

How large the weighting network needs to be

The masking-network ablation changes convolutional depth and kernel size. A convolution kernel determines the local extent of the input used to compute an output at a position. With a single 1 × 1 layer, FGFA with the tested configuration obtains 78.8% mAP. With the same kernel size, the version with 2 layers reaches 79.0% and the one with 3 layers reaches 79.2%. The setting with 4 layers slips to 79.1%. The authors suggest that the extra parameters can produce overfitting. The table measures a decline in validation mAP at that depth, while the proposed explanation concerns what the network may have learned from training.

With the depth held at 3 layers, the setting using a 3 × 3 kernel reaches 79.3% mAP. The companion result with 1 × 1 kernels is 79.2%. The larger kernel gives the convolution access to surrounding feature positions when computing an output. The comparison shows a small gain from this choice in the tested setting. Together with the depth comparison, it supports the paper's choice of a compact masking network that can incorporate some local context.

Which objects benefit most

The paper groups ImageNet VID objects by size using the Microsoft COCO definition and by motion speed using FGFA's definition. It then examines the change in mAP for those groups. The slow-motion group shows greater improvement than the medium-motion and fast-motion groups. The authors propose that rapid motion remains hard even after aggregation. They also point to the benchmark composition. Slow motion accounts for 37.9% of the objects, medium motion for 35.9%, and fast motion for 26.2%.

The distribution gives context to the comparison. It shows that the groups have unequal representation on ImageNet VID. It does not on its own establish how group frequency affected learning or how much the gain would change under a different distribution. The result the figure establishes is an ordering of improvements in the reported analysis. The strongest measured benefit by speed is for slower objects, even though fast motion supplies one of the central motivations for feature enhancement.

The size breakdown shows the largest improvement on large objects. The authors connect this outcome to the resolution of the representation. A large object generally occupies more of the feature map, giving the weight tensor more positions at which to retain useful evidence or suppress interference. A small object has fewer such positions available. The traffic cone example illustrates why selective weights can help with competing responses. The group analysis shows that the greatest observed benefit from this kind of weighting is on objects with more spatial extent in the feature representation.

Accuracy as the frame count grows

The paper describes computational cost in terms of the feature encoder, the prediction network, and the TF-Blender computation. For an ordinary detector in its accounting, the cost is written as follows.

O(Nₑₓ) + O(Nₜₖ)

O( ) denotes computational cost in the paper's notation. Nₑₓ denotes the feature extraction network, and Nₜₖ denotes the task network that produces predictions. The subscript ₑₓ marks the encoding component, and ₜₖ marks the task component. The plus sign adds their costs.

With TF-Blender, the authors introduce an additional term that depends on the number of frames aggregated.

O(Nₑₓ) + i · O(Nₜբ) + O(Nₜₖ)

Nₑₓ and Nₜₖ again denote the encoder and task network. Nₜբ denotes the TF-Blender module, and O(Nₜբ) denotes its cost in this accounting. Here i is the number of aggregated frames. In this cost expression it serves as a count, while in the feature equations it indexed the current frame. The dot · multiplies the module cost by that count. The plus signs add the resulting temporal processing cost to the encoder and task costs.

The paper then expresses the ratio of the augmented cost to the ordinary detector's cost.

r = 1 + [i · O(Nₜբ)] / [O(Nₑₓ) + O(Nₜₖ)]

r is the cost ratio in the paper's accounting. The constant 1 represents the original detector relative to itself. i is the aggregated frame count, and · multiplies it by O(Nₜբ), the cost assigned to the TF-Blender module. The slash / divides the resulting overhead by the original encoder and task cost. O(Nₑₓ) and O(Nₜₖ) are those two costs, joined by +. The formula presents the overhead relative to the original workload. The authors reason that encoding typically dominates the other costs.

The corresponding speed and accuracy figure uses FGFA with ResNet-50. As the number of input frames increases, the augmented detector's accuracy rises, with an accompanying increase in runtime. This is a separate configuration from the ResNet-101 comparison that gives the main detection scores. The measured curve supports the authors' claim that extra frames can improve FGFA within the runtime range they studied. The cost expressions give a compact account of that tradeoff. The feature adjustment equation still calls for comparisons among neighbors, so detailed scaling would depend on how those operations are carried out as the candidate set changes.

Limitations

Limits identified by the authors

Fast motion remains difficult. The speed breakdown gives the largest improvement to slow-moving objects, and the authors say that accurate detection of rapidly moving objects remains a challenge. They point to the smaller share of fast-moving objects in ImageNet VID as another possible explanation for the observed pattern. The benchmark result thus supports an overall improvement while leaving room for substantial difficulty in a group that motivated the method.

The authors likewise identify a constraint for small objects. A feature map provides fewer spatial entries for a small target, which limits the opportunities for individually weighted responses to improve its representation. The size analysis is consistent with that explanation, since the largest objects show the strongest improvement. This is a limit of what local reweighting can recover from the representation it receives. The encoder and the underlying detector still shape the amount of target detail available to the new module.

The paper acknowledges additional computation and records lower FPS for the paired systems with reported runtimes. The authors judge the overhead affordable in the configurations they study. The runtime figures are measurements for particular systems and hardware. They establish the cost observed in those evaluations and give a basis for interpreting the accuracy gains alongside it.

Limits visible in the evaluation

The claim of a flexible addition is supported across the tested detectors and segmentation systems. Its broader applicability remains an extrapolation from those integrations. The detection benchmark uses a common backbone and training protocol across the paired table, and the segmentation benchmark uses its own common backbone and pretraining setup. These choices make the comparisons interpretable. They also leave performance with other backbones, input conventions, or application conditions unmeasured. The two validation benchmarks support generality across the tasks that were actually tested.

The design ablations are concentrated on FGFA. They identify settings that work well in that host, including the particular relation input and masking-network configuration. The main tables show the score obtained after integrating the selected method elsewhere. They do not establish that each host would rank all the alternative designs in the same order. The paper reports point estimates and gives no repeated-run variability for the validation scores. The smallest differences, including those between close masking-network settings, therefore have unreported uncertainty.

The feature blender contains both entrywise transformations and a whole-candidate similarity gate. The paper uses a threshold of 0.7 and reports the effect of adding the blender as a unit. The effect of using a different threshold or of removing just the gate is unreported in the ablations. The experiments also leave open how many candidates the gate removes, how those counts vary across videos, and how the removed candidates differ in image quality. Those details would help separate the claimed benefit of dynamic participation from the effects of rectification and channel normalization.

The gate uses similarity to the current representation as a proxy for redundancy. A high similarity value can explain why a candidate adds little new information. Blur, occlusion, or defocus could also affect similarity in ways that depend on the scene and the encoder. The selected qualitative examples and the size and speed breakdowns give evidence about particular conditions. They leave the gains for explicitly annotated levels of blur, defocus, or occlusion unmeasured. In the segmentation experiment, the aggregate metrics likewise leave the individual effects on masks and instance association unresolved.

The equations also leave implementation details to the host pipeline. The adjusted-feature sum uses the candidate feature as the value modulated by each comparison, and the last sum defines the aggregate. The specification provides no separate rule for handling a neighborhood with no eligible comparison partner or for using an aggregate whose candidates are all gated out. Similarly, a neighbor can precede or follow the target. The paper gives no past-only detection result from which to judge performance in a live setting where future frames are unavailable.

Finally, the cost ratio counts TF-Blender through an overhead term multiplied by frame count. The pairwise adjustment makes the practical cost sensitive to the neighborhood and to how relations are computed or reused. The runtime curve shows behavior over the configurations exercised in the paper. Its evidence is about that tested range, with separate paired throughput measurements on the detection and segmentation hardware. The computational behavior of much larger neighborhoods remains open.

What came after

No later citing work is documented here. The extension the authors themselves demonstrate is from bounding-box detection to video instance segmentation. That experiment carries the same feature-weighting and neighbor-adjustment mechanism into systems whose outputs include masks and instance associations, and reports gains on YouTube-VIS. It belongs to the original evaluation. Subsequent use of the method remains undocumented.

Cite

Cite as Yiming Cui, Liqi Yan, Zhiwen Cao and Dongfang Liu. 2021. TF-Blender: Temporal Feature Blender for Video Object Detection. IEEE/CVF International Conference on Computer Vision (ICCV).

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.1109/iccv48922.2021.00803 · arXiv 2108.05821

@inproceedings{cui2021tf,
  title = {{TF-Blender: Temporal Feature Blender for Video Object Detection}},
  author = {Yiming Cui, Liqi Yan, Zhiwen Cao and Dongfang Liu},
  booktitle = {IEEE/CVF International Conference on Computer Vision (ICCV)},
  year = {2021},
  doi = {10.1109/iccv48922.2021.00803},
  eprint = {2108.05821},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.1109/iccv48922.2021.00803}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/cui-2021-tf-blender-temporal-feature-blender/