Video Summarization with Long Short-term Memory

Ke Zhang, Wei-Lun Chao, Fei Sha, Kristen Grauman

Introduction

Video has rapidly become one of the most common sources of visual information. The amount of video data is daunting — it takes over 82 years to watch all videos uploaded to YouTube per day! Automatic tools for analyzing and understanding video contents are thus essential. In particular, automatic video summarization is a key tool to help human users browse video data. A good video summary would compactly depict the original video, distilling its important events into a short watchable synopsis. Video summarization can shorten video in several ways. In this paper, we focus on the two most common ones: keyframe selection, where the system identifies a series of defining frames and key subshot selection, where the system identifies a series of defining subshots, each of which is a temporally contiguous set of frames spanning a short time interval .

There has been a steadily growing interest in studying learning techniques for video summarization. Many approaches are based on unsupervised learning, and define intuitive criteria to pick frames without explicitly optimizing the evaluation metrics. Recent work has begun to explore supervised learning techniques . In contrast to unsupervised ones, supervised methods directly learn from human-created summaries to capture the underlying frame selection criterion as well as to output a subset of those frames that is more aligned with human semantic understanding of the video contents.

Supervised learning for video summarization entails two questions: what type of learning model to use? and how to acquire enough annotated data for fitting those models? Abstractly, video summarization is a structured prediction problem: the input to the summarization algorithm is a sequence of video frames, and the output is a binary vector indicating whether a frame is to be selected or not. This type of sequential prediction task is the underpinning of many popular algorithms for problems in speech recognition, language processing, etc. The most important aspect of this kind of task is that the decision to select cannot be made locally and in isolation — the inter-dependency entails making decisions after considering all data from the original sequence.

For video summarization, the inter-dependency across video frames is complex and highly inhomogeneous. This is not entirely surprising as human viewers rely on high-level semantic understanding of the video contents (and keep track of the unfolding of storylines) to decide whether a frame would be valuable to keep for a summary. For example, in deciding what the keyframes are, temporally close video frames are often visually similar and thus convey redundant information such that they should be condensed. However, the converse is not true. That is, visually similar frames do not have to be temporally close. For example, consider summarizing the video “leave home in the morning and come back to lunch at home and leave again and return to home at night.” While the frames related to the “at home” scene can be visually similar, the semantic flow of the video dictates none of them should be eliminated. Thus, a summarization algorithm that relies on examining visual cues only but fails to take into consideration the high-level semantic understanding about the video over a long-range temporal span will erroneously eliminate important frames. Essentially, the nature of making those decisions is largely sequential – any decision including or excluding frames is dependent on other decisions made on a temporal line.

Modeling variable-range dependencies where both short-range and long-range relationships intertwine is a long-standing challenging problem in machine learning. Our work is inspired by the recent success of applying long short-term memory (LSTM) to structured prediction problems such as speech recognition and image and video captioning . LSTM is especially advantageous in modeling long-range structural dependencies where the influence by the distant past on the present and the future must be adjusted in a data-dependent manner. In the context of video summarization, LSTMs explicitly use its memory cells to learn the progression of “storylines”, thus to know when to forget or incorporate the past events to make decisions.

In this paper, we investigate how to apply LSTM and its variants to supervised video summarization. We make the following contributions. We propose vsLSTM, a LSTM-based model for video summarization (Sec. 3.3). Fig. 2 illustrates the conceptual design of the model. We demonstrate that the sequential modeling aspect of LSTM is essential; the performance of multi-layer neural networks (MLPs) using neighboring frames as features is inferior. We further show how LSTM’s strength can be enhanced by combining it with the determinantal point process (DPP), a recently introduced probabilistic model for diverse subset selection . The resulting model achieves the best results on two recent challenging benchmark datasets (Sec. 4). Besides advances in modeling, we also show how to address the practical challenge of insufficient human-annotated video summarization examples. We show that model fitting can benefit from combining video datasets, despite their heterogeneity in both contents and visual styles. In particular, this benefit can be improved by “domain adaptation” techniques that aim to reduce the discrepancies in statistical characteristics across the diverse datasets.

The rest of the paper is organized as follows. Section 2 reviews related work of video summarization, and Section 3 describes the proposed LSTM-based model and its variants. In Section 4, we report empirical results. We examine our approach in several supervised learning settings and contrast it to other existing methods, and we analyze the impact of domain adapation for merging summarization datasets for training (Section 4.4). We conclude our paper in Section 5.

Related Work

Techniques for automatic video summarization fall in two broad categories: unsupervised ones that rely on manually designed criteria to prioritize and select frames or subshots from videos and supervised ones that leverage human-edited summary examples (or frame importance ratings) to learn how to summarize novel videos . Recent results by the latter suggest great promise compared to traditional unupservised methods.

Informative criteria include relevance , representativeness or importance , and diversity or coverage . Several recent methods also exploit auxiliary information such as web images or video categories to facilitate the summarization process.

Because they explicitly learn from human-created summaries, supervised methods are better equipped to align with how humans would summarize the input video. For example, a prior supervised approach learns to combine multiple hand-crafted criteria so that the summaries are consistent with ground truth . Alternatively, the determinatal point process (DPP) — a probabilistic model that characterizes how a representative and diverse subset can be sampled from a ground set — is a valuable tool to model summarization in the supervised setting .

None of above work uses LSTMs to model both the short-range and long-range dependencies in the sequential video frames. The sequential DPP proposed in uses pre-defined temporal structures, so the dependencies are “hard-wired”. In contrast, LSTMs can model dependencies with a data-dependent on/off switch, which is extremely powerful for modeling sequential data .

LSTMs are used in to model temporal dependencies to identify video highlights, cast as auto-encoder-based outlier detection. LSTMs are also used in modeling an observer’s visual attention in analyzing images , and to perform natural language video description . However, to the best of our knowledge, our work is the first to explore LSTMs for video summarization. As our results will demonstrate, their flexibility in capturing sequential structure is quite promising for the task.

Approach

In this section, we describe our methods for summarizing videos. We first formally state the problem and the notations, and briefly review LSTM , the building block of our approach. We then introduce our first summarization model vsLSTM. Then we describe how we can enhance vsLSTM by combining it with a determinantal point process (DPP) that further takes the summarization structure (e.g., diversity among selected frames) into consideration.

We use x={x1,x2,⋯ ,xt,⋯ ,xT}{\bm{x}}=\{{\bm{x}}_{1},{\bm{x}}_{2},\cdots,{\bm{x}}_{t},\cdots,{\bm{x}}_{T}\} to denote a sequence of frames in a video to be summarized while xt{\bm{x}}_{t} is the visual features extracted at the tt-th frame.

The output of the summarization algorithm can take one of two forms. The first is selected keyframes , where the summarization result is a subset of (isolated) frames. The second is interval-based keyshots , where the summary is a set of (short) intervals along the time axis. Instead of binary information (being selected or not selected), certain datasets provide frame-level importance scores computed from human annotations . Those scores represent the likelihoods of the frames being selected as a part of summary. Our models make use of all types of annotations — binary keyframe labels, binary subshot labels, or frame-level importances — as learning signals.We describe below and in the Supplementary Material how to convert between the annotation formats when necessary.

Our models use frames as its internal representation. The inputs are frame-level features x{\bm{x}} and the (target) outputs are either hard binary indicators or frame-level importance scores (i.e., softened indicators).

2 Long Short-Term Memory (LSTM)

LSTMs are a special kind of recurrent neural network that are adept at modeling long-range dependencies. At the core of the LSTMs are memory cells c\bm{c} which encode, at every time step, the knowledge of the inputs that have been observed up to that step. The cells are modulated by nonlinear sigmoidal gates, and are applied multiplicatively. The gates determine whether the LSTM keeps the values at the gates (if the gates evaluate to 11) or discard them (if the gates evaluate to ).

There are three gates: the input gate (i)(\bm{i}) controlling whether the LSTM considers its current input (xt)({\bm{x}}_{t}), the forget gate (f)(\bm{f}) allowing the LSTM to forget its previous memory (ct)(\bm{c}_{t}), and the output gate (o)({\bm{o}}) deciding how much of the memory to transfer to the hidden states (ht)(\bm{h}_{t}). Together they enable the LSTM to learn complex long-term dependencies – in particular, the forget date serves as a time-varying data-dependent on/off switch to selectively incorporating the past and present information. See Fig. 1 for a conceptual diagram of a LSTM unit and its algebraic definitions .

3 vsLSTM for Video Summarization

Our vsLSTM model is illustrated in Fig. 2. There are several differences from the basic LSTM model. We use bidirectional LSTM layers for modeling better long-range dependency in both the past and the future directions. Note that the forward and the backward chains do not directly interact.

We combine the information in those two chains, as well as the visual features, with a multi-layer perceptron (MLP). The output of this perceptron is a scalar

To learn the parameters in the LSTM layers and the MLP for fI(⋅)f_{I}(\cdot), our algorithm can use annotations in the forms of either the frame-level importance scores or the selected keyframes encoded as binary indicator vectors. In the former case, yy is a continuous variable and in the latter case, yy is a binary variable. The parameters are optimized with stochastic gradient descent.

4 Enhancing vsLSTM by Modeling Pairwise Repulsiveness

vsLSTM excels at predicting the likelihood that a frame should be included or how important/relevant a frame is to the summary. We further enhance it with the ability to model pairwise frame-level “repulsiveness” by stacking it with a determinantal point process (DPP) (which we discuss in more detail below). Modeling the repulsiveness aims to increase the diversity in the selected frames by eliminating redundant frames. The modeling advantage provided in DPP has been exploited in DPP-based summarization methods . Note that diversity can only be measured “collectively” on a (sub)set of (selected) frames, not on frames independently or sequentially. The directed sequential nature in LSTMs is arguably weaker in examining all the fames simultaneously in the subset to measure diversity, thus is at the risk of having higher recall but lower precision. On the other hand, DPPs likely yield low recalls but high precisions. In essence, the two are complementary to each other.

Given a ground set Z\mathsf{Z} of N items (e.g., all frames of a video), together with an N ×\times N kernel matrix L\bm{L} that records the pairwise frame-level similarity, a DPP encodes the probability to sample any subset from the ground set . The probability of a subset z{\bm{z}} is proportional to the determinant of the corresponding principal minor of the matrix Lz\bm{L}_{{\bm{z}}}

where I\bm{I} is the N ×\times N identity matrix. If two items are identical and appear in the subset, Lz\bm{L}_{{\bm{z}}} will have identical rows and columns, leading to zero-valued determinant. Namely, we will have zero-probability assigned to this subset. A highly probable subset is one capturing significant diversity (i.e., pairwise dissimilarity).

dppLSTM

Our dppLSTM model is schematically illustrated in Fig. 3. To exploit the strength of DPP in explicitly modeling diversity, we use the prediction of our vsLSTM in defining the L\bm{L}-matrix:

where the similarity between the frames xtx_{t} and xt′x_{t}^{\prime} are modeled with the inner product of another multi-layer perceptron’s outputs

This decomposition is similar in spirit to the quality-diversity (QD) decomposition proposed in . While also parameterizes Ltt′L_{tt^{\prime}} with a single MLP, our model subsumes theirs. Moreover, our empirical results show that using two different sets of MLPs — fI(⋅)f_{I}(\cdot) for frame-level importance and fS(⋅)f_{S}(\cdot) for similarity — leads to better performance than using a single MLP to jointly model the two factors. (They are implemented by one-hidden-layer neural networks with 256 sigmoid hidden units, and sigmoid and linear output units, respectively. See the Supplementary Material for details.)

Learning

To train a complex model such as dppLSTM, we adopt a stage-wise optimization routine. We first train the MLP fI(⋅)f_{I}(\cdot) and the LSTM layers as in vsLSTM. Then, we train all the MLPs and the LSTM layers by maximizing the likelihood of keyframes specified by the DPP model. Denote Z(i)\mathsf{Z}^{(i)} as the collection of frames of the ii-th video and z(i)∗⊂Z(i){\bm{z}}^{(i)*}\subset\mathsf{Z}^{(i)} as the corresponding target subset of keyframes. We learn θ\bm{\theta} that parameterizes (3) by MLE :

Details are in the Supplementary Material. We have found this training procedure is effective in quickly converging to a good local optima.

5 Generating Shot-based Summaries from Our Models

Our vsLSTM predicts frame-level importance scores, i.e., the likelihood that a frame should be included in the summary. For our dppLSTM, the approximate MAP inference algorithm outputs a subset of selected frames. Thus, for dppLSTM we use the procedure described in the Supplementary Material to convert them into keyshot-based summaries for evaluation.

Experimental Results

We first define the experimental setting (datasets, features, metrics). Then we provide key quantitative results demonstrating our method’s advantages over existing techniques (Sec. 4.2). Next we analyze more deeply the impact of our method design (Sec. 4.3) and explore the use of domain adaptation for “homogenizing” diverse summarization datasets (Sec. 4.4). Finally, we present example qualitative results (Sec. 4.5).

We evaluate the performance of our models on two video datasets, SumMe and TVSum . SumMe consists of 25 user videos recording a variety of events such as holidays and sports. TVSum contains 50 videos downloaded from YouTube in 10 categories defined in the TRECVid Multimedia Event Detection (MED). Most of the videos are 1 to 5 minutes in length.

To combat the need of a large amount of annotated data, we use two other annotated datasets whuch are annotated with keyframe-based summarization, Youtube and Open Video Project (OVP) . We process them as to create a ground-truth set of keyframes (then convert to a ground-truth sequence of frame-level importance scores) for each video. We use the ground-truth in importance scores to train vsLSTM and convert the sequence to selected keyframes to train dppLSTM.

For evaluation, both datasets provide multiple user-annotated summaries for each video, either in the form of keyshots (SumMe) or frame-level importance scores (TVSum, convertible to keyshot-based summaries). Such conversions are documented in the Supplementary Material.

Table 10 summarizes key characteristics of these datasets. We can see that these four datasets are heterogeneous in both their visual styles and contents.

Features

For most experiments, the feature descriptor of each frame is obtained by extracting the output of the penultimate layer (pool 5) of the GoogLeNet model (1024-dimensions). We also experiment with the same shallow features used in (i.e., color histograms, GIST, HOG, dense SIFT) to provide a comparison to the deep features.

Evaluation metrics

Following the protocols in , we constrain the generated keyshot-based summary A to be less than 15% in duration of the original video (details in the Supplementary Material). We then compute the precision (P) and recall (R) against the user summary B for evaluation, according to the temporal overlap between the two:

We also follow to compute the metrics when there are multiple human-annotated summaries of a video.

Variants of supervised learning settings

We study several settings for supervised learning, summarized in Table 2:

Canonical This is the standard supervised learning setting where the training, validation, and testing sets are from the same dataset, though they are disjoint.

Augmented In this setting, for a given dataset, we randomly leave 20% of it for testing, and augment the remaining 80% with the other three datasets to form an augmented training and validation dataset. Our hypothesis is that, despite being heterogeneous in styles and contents, the augmented dataset can be beneficial in improving the performance of our models because of the increased amount of annotations.

Transfer In this setting, for a given dataset, we use the other three datasets for training and validation and test the learned models on the dataset. We are interested in investigating if existing datasets can effectively transfer summarization models to new unannotated datasets. If the transfer can be successful, then it would be possible to summarize a large number of videos in the wild where there is virtually no closely corresponding annotation.

2 Main Results

Table 3 summarizes the performance of our methods and contrasts to those attained by prior work. Red-colored numbers indicate that our dppLSTM obtains the best performance in the corresponding setting. Otherwise the best performance is bolded. In the common setting of “Canonical” supervised learning, on TVSum, both of our two methods outperform the state-of-the-art. However, on SumMe, our methods underperform the state-of-the-art, likely due to the fewer annotated training samples in SumMe.

What is particularly interesting is that our methods can be significantly improved when the amount of annotated data is increased. In particular, in the case of Transfer learning, even though the three training datasets are significantly different from the testing dataset, our methods leverage the annotations effectively to improve accuracy over the Canonical setting, where the amount of annotated training data is limited. The best performing setting is Augmented, where we combine all four datasets together to form one training dataset.

The results suggest that with sufficient annotated data, our model can capture temporal structures better than prior methods that lack explicit temporal structures as well as those that consider only pre-defined ones . More specifically, bidirectional LSTMs and DPPs help to obtain diverse results conditioned on the whole video while leveraging the sequential nature of videos. See the Supplementary Material for further discussions.

3 Analysis

Next we analyze more closely several settings of interest.

Table 4 contrasts the performance of the LSTM-based method vsLSTM to a multi-layer perceptron based baseline. In this baseline, we learn a two-hidden-layer MLP that has the same number of hidden units in each layer as does one of the MLPs of our model.

Since MLP cannot explicitly capture temporal information, we consider two variants in the interest of fair comparison to our LSTM-based approach. In the first variant MLP-Shot, we use the averaged frame features in a shot as the inputs to the MLP and predict shot-level importance scores. The ground-truth shot-level importance scores are derived as the average of the corresponding frame-level importance scores. The predicted shot-level importance scores are then used to select keyshots and the resulting shot-based summaries are then compared to user annotations. In the second variant MLP-Frame, we concatenate all visual features within a KK-frame (K=5K=5 in our experiments) window centered around each frame to be the inputs for predicting frame-level importance scores.

It is interesting to note that in the Canonical setting, MLP-based approaches outperform vsLSTM. However, in all other settings where the amount of annotations is increased, our vsLSTM is able to outperform the MLP-based methods noticeably. This confirms the common perception about LSTMs: while they are powerful, they often demand a larger amount of annotated data in order to perform well.

Shallow versus deep features?

We also study the effect of using alternative visual features for each frame. Table 5 suggests that deep features are able to modestly improve performance over the shallow features. Note that our dppLSTM with shallow features still outperforms , which reported results on TVSum using the same shallow features (i.e., color histograms, GIST, HOG, dense SIFT).

What type of annotation is more effective?

There are two common types of annotations in video summarization datasets: binary indicators of whether a frame is selected or not and frame-level importance scores on how likely a frame should be included in the summary. While our models can take either format, we suspect the frame-level importance scores provide richer information than the binary indicators as they represent relative goodness among frames..

Table 6 illustrates the performance of our vsLSTM model when using the two different annotations, in the Canonical setting. Using frame-level importance scores has a consistent advantage.

However, this does not mean binary annotation/keyframes annotations cannot be exploited. Our dppLSTM exploits both frame-level importance scores and binary signals. In particular, dppLSTM first uses frame-level importance scores to train its LSTM layers and then uses binary indicators to form objective functions to fine tune (cf. Section 3 for the details of this stage-wise training). Consequently, comparing the results in Table 3 to Table 6, we see that dppLSTM improves further by utilizing both types of annotations.

4 Augmenting the Training Data with Domain Adaptation

While Table 3 clearly indicates the advantage of augmenting the training dataset, those auxiliary datasets are often different from the target one in contents and styles. We improve summarization further by borrowing the ideas from visual domain adaptation for object recognition . The main idea is first eliminate the discrepancies in data distribution before augmenting.

Table 7 shows the effectiveness of this idea. We use a simple domain adaptation technique to reduce the data distribution discrepancy among all four datasets, by transforming the visual features linearly such that the covariance matrices for the four datasets are close to each other. The “homogenized” datasets, when combined (in both the Transfer and Augmented settings), lead to an improved summary F-score. The improvements are especially pronounced for the smaller dataset SumMe.

5 Qualitative Results

We provide exemplar video summaries in Fig. 4. We illustrate the temporal modeling capability of dppLSTM and contrast with MLP-Shot.

The height of the blue background indicates the ground-truth frame-level importance scores of the video. The marked red and green intervals are the ones selected by dppLSTM and MLP-Shot as the summaries, respectively. dppLSTM can capture temporal dependencies and thus identify the most important part in the video, i.e. the frame depicting the cleaning of the dog’s ears. MLP-Shot, however, completely misses selecting such subshots even though those subshots have much higher ground-truth importance scores than the neighboring frames. We believe this is because MLP-Shot does not capture the sequential semantic flow properly and lacks the knowledge that if the neighbor frames are important, then the frames in the middle could be important too.

It is also very interesting to note that despite the fact that DPP models usually eliminate similar elements, dppLSTM can still select similar but important subshots: subshots of two people with dogs before and after cleaning the dog’s ear are both selected. This highlights dppLSTM’s ability to adaptively model long-range (distant states) dependencies.

Fig. 5 shows a failure case of dppLSTM. This video is an outdoor ego-centric video and records very diverse contents. In particular, the scenes change among a sandwich shop, building, food, and the town square. From the summarization results we see that dppLSTM still selects diverse contents, but fails to capture the beginning frames — those frames all have high importance scores and are visually similar but are temporally clustered crowdedly. In this case, dppLSTM is forced to eliminate some of them, resulting in low recall. On the other hand, MLP-Shot needs only to predict importance scores without being diverse, which leads to higher recall and F-scores. Interestingly, MLP-Shot predicts poorly towards the end of the video, whereas the repulsiveness modeled by dppLSTM gives the method an edge to select a few frames in the end of the video.

In summary, we expect our approaches to work well on videos whose contents change smoothly (at least within a short interval) such that the temporal structures can be well captured. For videos with rapid changing and diverse contents, higher-level semantic cues (e.g., object detection as in ) could be complementary and should be incorporated.

Conclusion

Our work explores Long Short-Term Memory to develop novel supervised learning approaches to automatic video summarization. Our LSTM-based models outperform competing methods on two challenging benchmarks. There are several key contributing factors: the modeling capacity by LSTMs to capture variable-range inter-dependencies, as well as our idea to complement LSTMs’ strength with DPP to explicitly model inter-frame repulsiveness to encourage diverse selected frames. While LSTMs require a large number of annotated samples, we show how to mediate this demand by exploiting the existence of other annotated video datasets, despite their heterogeneity in style and content. Preliminary results are very promising, suggesting future research directions of developing more sophisticated techniques that can bring together a vast number of available video datasets for video summarization. In particular, it would be very productive to explore new sequential models that can enhance LSTMs’ capacity in modeling video data, by learning to encode semantic understanding of video contents and using them to guide summarization and other tasks in visual analytics. Acknowledgements KG is partially supported by NSF IIS-1514118 and a gift from Intel. Others are partially supported by USC Graduate Fellowships, NSF IIS-1451412, 1513966, CCF-1139148 and A. P. Sloan Research Fellowship.

References

Appendix 0.A Converting between different formats of ground-truth annotations

As mentioned in Section 3.1 of the main text, existing video summarization datasets usually provide the ground-truth annotations in (one of) the following three formats — (a) selected keyframes, (b) interval-based keyshots, and (c) frame-level importance scores. See Table 8 for illustration.

In order to combine multiple datasets to enlarge the training set, or to enable any (supervised) video summarization algorithm to be trained under different ground-truth formats, we introduce a general procedure to convert between different formats. Note that we perform this procedure to the ground truths only in the training phase. In the testing phase, we directly compare with the user-generated summaries in their original formats, unless stated otherwise (see Section 0.B). Also note that certain conversions require temporal segmentation to cut a video into disjoint time intervals, where each interval contains frames of similar contents. Since none of the datasets involved in the experiments provides ground-truth temporal segmentation, we apply the kernel temporal segmentation (KTS) proposed by Potapov et al. . The resulting intervals are around 5 seconds on average.

To covert keyframes into keyshots, we first temporally segment a video into disjoint intervals using KTS . Then if an interval contains at least one keyframe, we view such an interval as a keyshot, and mark all frames of it with score 1; otherwise, 0.

To prevent generating too many keyshots, we rank the candidate intervals (those with at least one keyframe) in the descending order by the number of key frames each interval contains divided by its duration. We then select intervals in order so that the total duration of keyshots is below a certain threshold (e.g., using the knapsack algorithm as in ).

A.2 keyshots →→\rightarrow keyframes and frame-level scores

Given the selected keyshots, we can randomly pick a frame, or pick the middle frame, of each keyshot to be a keyframe. We also directly mark frames contained in keyshots with score 1. For those frames not covered by any keyshot, we set the corresponding importance scores to be 0.

A.3 frame-level scores →→\rightarrow keyframes and keyshots

To convert frame-level importance scores into keyshots, we first perform temporal segmentation, as in Section 0.A.1. We then compute interval-level scores by averaging the scores of frames within each interval. We then rank intervals in the descending order by their scores, and select them in order so that the total duration of keyshots is below a certain threshold (e.g., using the knapsack algorithm as in ). We further pick the frame with the highest importance score within each keyshot to be a keyframe. Table 9 summarizes the conversions described above.

Appendix 0.B Details of the datasets

In this section, we provide more details about the four datasets — SumMe , TVSum , OVP , and Youtube — involved in the experiments. Note that OVP and Youtube are only used to augment the training set.

Table 10 lists the training and testing ground truths provided in each dataset. Note that in training, we require a single ground truth for each video, which is directly given in SumMe and TVSum, but not in OVP and Youtube. We thus follow to create a single ground-truth set of keyframes from multiple user-annotated ones for each video.

Table 11 summarizes the formats of training ground truths required by our proposed methods (vsLSTM, dppLSTM) and baselines (MLP-Shot, MLP-Frame). We perform the converting procedure described in Section 0.A to obtain the required training formats if they are not provided in the dataset. We perform KTS for temporal segmentation for all datasets.

B.2 Testing ground truths for TVSum

TVSum provides for each video multiple sequence of frame-level importance scores annotated by different users. We follow to convert each sequence into a keyshot-based summary for evaluation, which is exactly the one in Section 0.A.3. We set the threshold to be 15% of the original video length, following .

Appendix 0.C Details of our LSTM-based models

In this section, we provide more details about the proposed LSTM-based models for video summarization.

As mentioned in Section 3.4 of the main text, we adopt a stage-wise optimization routine to learn dppLSTM — the first stage is based on the prediction error of importance scores; the second stage is based on the maximum likelihood estimation (MLE) specified by DPPs. Denote Z\mathsf{Z} as a ground set of N items (e.g, all frames of a video), and z∗⊂Z{\bm{z}}^{*}\subset\mathsf{Z} as the target subset (e.g., the subset of keyframes). Given the N ×\times N kernel matrix L\bm{L}, the probability to sample z∗{\bm{z}}^{*} is

where Lz∗\bm{L}_{{\bm{z}}^{*}} is the principal minor indexed by z∗{\bm{z}}^{*}, and I\bm{I} is the N ×\times N identity matrix.

In dppLSTM, L\bm{L} is parameterized by θ\bm{\theta}, which includes all parameters in the model. In the second stage, we learn θ\bm{\theta} using MLE

where ii indexes the target subset, ground set, and L\bm{L} matrix of the ii-th video. We optimize θ\bm{\theta} with stochastic gradient descent.

C.2 Generating shot-based summaries for vsLSTM and dppLSTM

As mentioned in Section 3.1 and 3.5 of the main text, the outputs of both our proposed models are on the frame level — vsLSTM predicts frame-level importance scores, while dppLSTM selects a subset of keyframes using approximate MAP inference . To compare with the user-annotated keyshots in SumMe and TVSum for evaluation, we convert the outputs into keyshot-based summaries.

For vsLSTM, we directly apply the conversion in Section 0.A.3. We set the threshold of the total duration of keyshots to be 15% of the original video length (for both datasets), following the protocols in .

For dppLSTM, we apply the conversion in Section 0.A.1. In practice, DPP inference usually leads to high precision yet low recall; i.e., the resulting total duration of keyshots may be far below the threshold (on average, 10%). We thus add in few more keyshots by utilizing the scalar output of the MLP fI(⋅)f_{I}(\cdot), following the procedure in Section 0.A.3. The MLP fI(⋅)f_{I}(\cdot) is pre-trained using the frame-level importance scores (cf. Section 3.4 of the main text) and conveys a certain notion of importance even after fine-tuning with the DPP objective.

Appendix 0.D Comparing different network structures for dppLSTM

The network structure of dppLSTM (cf. Fig. 3 of the main text) involves two MLPs — the MLP fI(⋅)f_{I}(\cdot) outputting yty_{t} for frame-level importance and the MLP fS(⋅)f_{S}(\cdot) outputting ϕt\bm{\phi}_{t} for similarity.

In this section, we compare with another LSTM-based model that learns only a single MLP fS(⋅)f_{S}(\cdot) and then stacks with a DPP. We term this model as dppLSTM-single. See Fig. 6 for illustration. dppLSTM-single also outputs a set of keyframes and is likely to generate a keyshot-based summary of an insufficient duration (similar to dppLSTM in Section 0.C.2). We thus add in few more keyshots by utilizing the diagonal values of L\bm{L} as frame-level scores, following .

Table 12 compares the performance of the two network structures, and dppLSTM obviously outperforms dppLSTM-single. As a well-learned DPP model should capture the notions of both quality (importance) and diversity , we surmise that separately modeling the two factors would benefit, especially when the model of each factor can be pre-trained (e.g, the MLP fI(⋅)f_{I}(\cdot) in dppLSTM).

Appendix 0.E Other implementation details

In this section, we provide the implementation details for both the proposed models (vsLSTM, dppLSTM) and baselines (MLP-Frame, MLP-Shot).

For vsLSTM, dppLSTM, and MLP-Frame, which all take frame features as inputs, we uniformly subsample the videos to 2 fpsFor videos with slow varying contents such as SumMe/TVSum, this scheme seems adequate. For OVP and YouTube, even 1 fps is sufficient for fairly good summarization .. The concatenated feature (of a 5-frame window) to MLP-Frame is thus equivalent to taking a 2-second span into consideration. For MLP-Shot, we perform KTS to segment the video into shots (disjoint intervals), where each shot is around 5 seconds on average.

E.2 Network structures

fI(⋅)f_{I}(\cdot) and fS(⋅)f_{S}(\cdot) are implemented by one-hidden-layer MLPs, while MLP-Shot and MLP-Frame are two-hidden-layer MLPs. For all models, we set the size of each hidden layer of MLPs, the number of hidden units of each unidirectional LSTM, and the output dimension of the MLP fS(⋅)f_{S}(\cdot) all to be 256. We apply the sigmoid activation function to all the hidden units as well as the output layer of MLP-Shot, MLP-Frame, and fI(⋅)f_{I}(\cdot). The output layer of fS(⋅)f_{S}(\cdot) are of linear units. We run for each setting and each testing fold (cf. Section 4.2 of the main text) 5 times and report the average and standard deviation.

E.3 Learning objectives

For MLP-Frame, MLP-Shot, vsLSTM, and the first stage of dppLSTM, we use the square loss. For dppLSTM-single and the second stage of dppLSTM, we use the likelihood (cf. (8)).

E.4 Stopping criteria

For all our models, we stop training after KK consecutive epochs with descending summarization F-score on the validation set. We set K=5K=5.

Appendix 0.F Additional discussions on video summarization

Video summarization is essentially a structured prediction problem and heavily relies on how to model/capture the sequential (or temporal) structures underlying videos. In this work, we focus on modeling the structures making sequentially inter-dependent decisions at three levels: (a) realizing boundaries of sub-events/shots; (b) removing redundant nearby shots/frames; (c) retaining temporally distant events despite being visually similar (cf. the motivating example of “leave home” in Section 1 of the main text). Essentially, any decision including or excluding frames is dependent on other decisions made on a temporal line.