Introduction
In the modern digital marketing landscape, the demand for short-form video content is unprecedented. Advertisers frequently need to adapt long-form master videos into shorter 10- or 15-second clips optimized for various social media platforms. Manually editing these videos is a significant bottleneck, while automated methods often struggle to maintain the "selling points" and narrative logic essential for persuasive advertising.
This paper introduces the Multi-modal Segment Assemblage Network (M-SAN), an end-to-end framework designed to automate ad video editing. By leveraging reinforcement learning and multi-modal data, M-SAN transforms source videos into concise, coherent, and high-impact advertisements.
The Challenge of Automated Ad Editing
Traditional automated video editing typically focuses on two areas: video summarization (identifying representative frames) or highlight detection (finding high-energy segments). Advertising editing is uniquely difficult because its primary goal is persuasion. An effective edit must retain critical narrative elements—such as product features and calls to action—while ensuring the final sequence feels like a logical story rather than a disjointed collection of clips.
Previous state-of-the-art methods often relied on complex, multi-stage pipelines. These systems required heavy, separate models to classify scenes and predict text coherence during inference, leading to slow processing times. Furthermore, these models often lacked a global perspective, resulting in edits that failed to capture the overall narrative arc of the original content.
The M-SAN Framework
M-SAN treats video editing as a combinatorial optimization problem: selecting the optimal subset of $N$ segments and arranging them to meet a target duration while maximizing impact.
Multi-modal Representation
To capture the full context of an advertisement, M-SAN processes three distinct data streams:
- Visual: Utilizes a Swin-Transformer for high-level scene and object understanding.
- Audio: Employs Vggish to extract acoustic cues and emotional tone.
- Text: Uses BERT to process Automatic Speech Recognition (ASR) and Optical Character Recognition (OCR) data, capturing both spoken dialogue and on-screen messaging.
Architecture: Pointer Network and the Glimpse Mechanism
The core of M-SAN is an Encoder-Decoder architecture. The encoder, a Bi-directional GRU, processes the entire source video to establish global context. The decoder then utilizes a Pointer Network (Ptr-Net) to select specific segments for the final edit. A critical innovation is the "Glimpse" mechanism, a two-stage attention process that allows the model to integrate information from the entire video before deciding on the next segment, preventing "myopic" selections that ignore the broader narrative.
Importance-Coherence Reward
Because video editing lacks a single "ground truth" solution, M-SAN is trained using Reinforcement Learning (Policy Gradient). The model is optimized via a dual-component reward system:
- Importance: Scores segments based on their narrative value, such as product displays, brand reinforcement, or problem-solution setups.
- Coherence: Evaluates the logical flow between segments. The authors utilize GPT-2 to calculate the Perplexity (PPL) of the concatenated text from adjacent segments. Lower perplexity indicates a more natural linguistic flow, resulting in a higher reward.
The Ads-1k Dataset
To support this research, the authors introduced Ads-1k, a benchmark that significantly exceeds previous datasets in scale and detail:
- Scale: Over 1,000 ad videos, compared to the previous standard of 50.
- Annotations: Rich labels for narrative techniques (e.g., "foreshadowing," "sore points") and over 19,000 annotated segment pairs for coherence testing.
- Metric: The researchers proposed Imp-Coh@Time, which evaluates importance and coherence only if the final edit falls within a specific tolerance of the target duration (e.g., $0.8\times$ to $1.2\times$).
Key Insights and Results
- Linguistic Coherence: Using GPT-2 perplexity as a proxy for video coherence proved highly effective. If the spoken or written words between two clips transition logically, the visual transition is significantly more likely to feel natural to the viewer.
- The Value of Multi-modality: Integrating audio and text features alongside visual data led to a substantial performance boost, increasing the
Imp-Coh@10score from 65.49 to 74.19. This underscores that in advertising, what is said is often as vital as what is shown. - Performance and Efficiency: M-SAN consistently outperformed the previous state-of-the-art (SAM). Furthermore, its end-to-end design allows for rapid inference; the model can process 99 videos in approximately 2 minutes on a single Tesla T4 GPU.
- Human Evaluation: In studies with advertising professionals, M-SAN achieved an 85.9% usability rate, a significant improvement over the 61.6% achieved by prior methods.
Conclusion and Future Directions
M-SAN represents a major advancement in automated video editing by prioritizing both narrative importance and logical coherence. While the model is highly effective, future work could improve the initial video segmentation modules and incorporate visual continuity rewards—such as motion flow or color consistency—to further refine transitions. Additionally, allowing users to dynamically weight specific narrative elements (e.g., prioritizing celebrity appearances over product specs) could offer even greater flexibility for marketing teams.
Summary updated