<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Subarna Tripathi on Medium]]></title>
        <description><![CDATA[Stories by Subarna Tripathi on Medium]]></description>
        <link>https://medium.com/@subarna.tripathi?source=rss-2498d3333c07------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*IiET-CtXqIrFAtaoWbjf1Q.png</url>
            <title>Stories by Subarna Tripathi on Medium</title>
            <link>https://medium.com/@subarna.tripathi?source=rss-2498d3333c07------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 03:56:10 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@subarna.tripathi/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[A journey towards approaching “why” question-answering for video]]></title>
            <link>https://medium.com/data-science-collective/a-journey-towards-approaching-why-question-answering-for-video-3248f41ecac6?source=rss-2498d3333c07------2</link>
            <guid isPermaLink="false">https://medium.com/p/3248f41ecac6</guid>
            <category><![CDATA[video-understanding]]></category>
            <dc:creator><![CDATA[Subarna Tripathi]]></dc:creator>
            <pubDate>Sat, 31 May 2025 19:27:08 GMT</pubDate>
            <atom:updated>2025-08-14T16:08:40.863Z</atom:updated>
            <content:encoded><![CDATA[<p>Let’s take a super fast journey summarizing the strides taken in an era (2012 to 2025 period) from simple image classification to recent video-LLMs to understand how to proceed with “why” questions in video understanding.</p><p>The answering part in Q&amp;A has changed from selecting one among many to “generating” one. Let’s start from the beginning. How visual question-answering in its earlier days worked?</p><p>Assume there is a black-box that converts an image or each frame of a video to a fixed-size vector, called embedding vector. From initial day’s AlexNet (2012) to relatively recent day’s ViT (Vision transformer, 2020) are such converters. Once projected to that space, it becomes a lot easier for a computer to separate different classes by utilizing linear separators (called classifiers). This was impossible if the same had to be done on pixel space.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/468/1*6YKdC5t8zrF4kBwtcEopNw.jpeg" /><figcaption>Fig 1: Image representation learning using classification (field exploded with the introduction of AlexNet in 2012)</figcaption></figure><p><em>Quick note: Before deep learning era, the linear classifier was trained on human generated feature space out of those images e.g. different combinations of edge detected images to roughly create a notion of shape etc. Deep learning gave us this freedom of getting those converters directly from labeled data, i.e. image and their corresponding classes. Since the embedding vectors need to be linearly separable, it directly influences the choices of that embedding space. It’s understandable that the more data you provide, the embedding space will be better amenable for the classification task at hand. Please note, not only image classification, tasks such as object detection also uses similar classification at the core.</em></p><p>These embedding vectors provided simple image classification. How image question-answering worked in its initial days? You can’t expect the same answer to different questions even if the input image is the same, right? That means, at the very least the system needs to convert the question to a vector, the image to a vector and then somehow combine image vector and question vector. Each question will be a different vector, so their combination hopefully will be different, too.</p><p>Please note, the answers in this early VQA systems (introduced around 2016) were all about selecting one option among many. Meaning, they were multiple choice question answering system. VQA was trained to learn a classifier that can choose one answer over k-options. They must be trained for this particular dataset. The dataset changed? Or the options changed? You must train or at least finetune the model again. So you essentially rely on question-answer pair for each image as labels for training such models. Most of the time, the image to vector converter and the question to vector converter weren’t trained from scratch. They were kept frozen, only the combination and the final classifier is trained.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/660/1*GnVHTiwifpSksCKimaD5mw.jpeg" /><figcaption>Fig 2. Visual question-Answering system (the idea introduced around 2016)</figcaption></figure><p>It was a great start, but as explained it did not generalize. Any time the test data changed, you had to fine-tune the VQA model again. Only good thing about such models are that they were very easy to evaluate. You can always evaluate the accuracy of a classifier, it’s all about measuring whether the answer matches with the ground truth or not.</p><p>Now, there’s a paradigm shift in today’s video question answering system. They no longer select one answer among many, they actually generate the answer in free-form text, thanks to the power of large language models, popularly known as LLM. You no longer need to train your system simply because the number of options has changed!</p><p>Why the LLMs are so powerful? Quick recap time: LLMs are pre-trained on really really large data without labels. They are optimized for next word prediction. So they can easily leverage huge data to learn from. Now <strong>next word prediction</strong> isn’t the final application. Most often, we want the LLM to answer whatever question I use it as an input. In-context learning (ICL 2019) and Instruction tuning (IT) are two ways to get the desired output.</p><p>It’s amazing how “in-context learning” uses examples within the prompt itself at inference time (introduced in GPT-2, 2019), updating the model’s hidden states without training. On the other hand, instruction tuning (introduced in Google’s FLAN, 2022) involves fine-tuning the model’s parameter during training, using instructions and examples, and doesn’t rely on examples at inference time. However, for both in-context learning and instruction tuning, we are talking about actual application, such as question-answering supplemented by labels, not the next word prediction the language models had originally optimized for. The cool thing about this strategy is that the pre-training already makes the internal / intermediate representation so powerful, that even after tuning with “not so many” labels, they become generalizable. So, that’s about LLM. Now, how visual QnA leverage LLM?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/350/1*QLgIQAOBX_P00p5AbfsDVg.jpeg" /><figcaption>Fig 3. Visual instruction tuning, LlaVA (2023)</figcaption></figure><p>The core idea is to convert the image to a vector (similar to the previous section), this time the constraint is that this vector would be in a way that looks very similar to a token used in LLMs. Basically, convert the image in the language space; not much training needed. Because the LLM already has been trained for following instruction. You still need a light-weight fine-tuning on image question-answering dataset, simply because pure LLM didn’t take images as inputs. Now you need the system to take a free-form text question, an image as input and by virtue of the LLM integration, you are getting free-form textual output — your desired answers.</p><p>Until this part, we know how LLMs are being super useful for chatting with an image. Generally, such models are referred to as “multimodal-LLMs”. LlaVA is an example of one such useful and widely popular method. There exists plenty of such multimodal LLMs. They generalize well. Since they are generating answers, instead of choosing one among many, you can apply such models without fine-tuning on a new domain / on any new image (called zero-shot) — and often get decent quality free-form textual output. Of course, with fine-tuning on the new domain or dataset, the quality of answers become better.</p><p>Such amazing utility also comes at a cost, that is hallucination. Since the answers are being generated, a lot of times the generated output will just hallucinate — i.e. talk about objects and scene which may not be present in the image at all. The other issue is, since these are “generative models”, evaluation is not as straightforward as it was for classification models.</p><p>Next comes the question of interacting with videos. All the previous principles hold; however, a set of new challenges arrive. How to convert a video to the language space? Should we first sample some video frames and convert each of them into the language space as above, or convert the whole video to something like a token in the language space? Some video-LLM models pursue the first approach, while some others use the second approach — while the first one is more popular and widely used. Please note, the similar light-weight tuning is also needed on the video question answering dataset. By virtue of the generalization property of the generative models, you can apply the model on a different set of questions or videos, and still expect some decent free-form textual output and understandably with an inherent issue of hallucination.</p><p>While the video-LLM literature is getting rich, <a href="https://github.com/yunlong10/Awesome-LLMs-for-Video-Understanding">https://github.com/yunlong10/Awesome-LLMs-for-Video-Understanding</a>. The number of Image-LLM papers probably would be at least 2-order of magnitude higher than the number of video-LLM papers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/256/1*VEjWq66jjURHN182OvrpGA.png" /><figcaption>Fig 4. Video-LLM general architecture (Video-LlaVA, 2024)</figcaption></figure><p>The current challenge the community is facing is that not all different kinds of questions are handled equally by the video-LLM models. Some questions can still be answered simply by looking at only one video frame. Such as “how many persons are wearing (or not wearing) safety hats in this video?” Since the answer and the underlying reasoning may utilize “grounding” (meaning putting things into the image space), we call them “spatial reasoning task”. They are very different than questions that need inherent orders of actions such as “what the person did immediately after getting off the bike?” Answers for such questions cannot be “grounded” on space / images. Video-LLM may hallucinate more and evaluating the correctness becomes even more difficult.</p><p>Please note, even in video-LLM cases, you need some labeled data on which you’ll need to train your model; meaning each sample consists of a video, one question and expected output. The question and answer can be in free-form text, and not restricted to multiple choice Q&amp;A like the early days when visual question answering as a research field emerged only a decade ago. In the last 12-months, there has been tremendous growth in algorithms and deployment in frameworks supporting video-LLMs.</p><p>Models such as Gemini1.5 Pro and GPT-4O, from Google and OpenAI respectively, are closed-sourced. On the other hand, open-sourced models like Qwen2.5-VL from Alibaba and plenty of others offer very high-quality video-LLM capability. However, we still observe that there is room to improve the spatio-temporal reasonings. We hypothesize that the power of LLMs can be harnessed in more efficient ways when needing to interact with videos, especially for such temporal understanding tasks.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3248f41ecac6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science-collective/a-journey-towards-approaching-why-question-answering-for-video-3248f41ecac6">A journey towards approaching “why” question-answering for video</a> was originally published in <a href="https://medium.com/data-science-collective">Data Science Collective</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Long-form video representation learning (Part 3: Long-form egocentric video representation…]]></title>
            <link>https://medium.com/data-science/long-form-video-representation-learning-part-3-latest-and-greatest-in-long-form-video-1b6dee0f5f6e?source=rss-2498d3333c07------2</link>
            <guid isPermaLink="false">https://medium.com/p/1b6dee0f5f6e</guid>
            <category><![CDATA[egocentric-videos]]></category>
            <category><![CDATA[cvpr-2024]]></category>
            <category><![CDATA[long-form-video]]></category>
            <category><![CDATA[cvpr]]></category>
            <dc:creator><![CDATA[Subarna Tripathi]]></dc:creator>
            <pubDate>Tue, 14 May 2024 21:51:18 GMT</pubDate>
            <atom:updated>2024-05-21T19:22:30.281Z</atom:updated>
            <content:encoded><![CDATA[<h3>Long-form video representation learning (Part 3: Long-form egocentric video representation learning)</h3><h4>We explore novel video representation learning methods that are equipped with long-form reasoning capability. This is Part III providing a sneak peek into our latest and greatest explorations for “long-form” egocentric video representation learning. See <a href="https://medium.com/@subarna.tripathi/long-form-video-representation-learning-part-1-video-as-graphs-c55b609d9100">Part I</a> on video as a graph and is <a href="https://medium.com/@subarna.tripathi/long-form-video-representation-learning-part-2-video-as-sparse-transformers-29fbd0ed9e71">Part II</a> on sparse video-text transformers.</h4><p>The first two blogs in this series described how different architectural motifs ranging from graph neural networks to sparse transformers addressed the challenges of “long-form” video representation learning. We showed how explicit graph based methods can aggregate 5-10X larger temporal context, but they were two-stage methods. Next, we explored how we can make memory and compute efficient end-to-end learnable models based on transformers and aggregate over 2X larger temporal context.</p><p>In this blog, I’ll take you to our latest and greatest explorations, especially for egocentric video understanding. As you can imagine, an egocentric or first-person video (captured usually by head-mounted cameras) is most likely coming from an always-ON camera, meaning the videos are really really long, with a lot of irrelevant visual information, specially when the camera wearer move their heads. And, this happens a lot of times with head mounted cameras. A proper analysis of such first-person videos can enable a detailed understanding of how humans interact with the environment, how they manipulate objects, and, ultimately, what are their goals and intentions. Typical applications of egocentric vision systems require algorithms able to represent and process video over temporal spans that last in the order of minutes or hours. Examples of such applications are action anticipation, video summarization, and episodic memory retrieval.</p><h3>Egocentric action scene graphs:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lMZNEYch4MHZMGZiift9FQ.png" /><figcaption>Figure 1: (Image by author) <em>Egocentric Action Scene Graphs are temporal dynamic graphs (G(t)) capturing the action verbs (nodes in blue), direct or active objects (nodes in green), and other objects (nodes in yellow) involved in the activity performed by a camera wearer (the orange CW node). Edges between nodes represent relationship between the verb and the objects or between object pairs. The graph evolves through time providing a long-from representation of the egocentric video (dashed lines). Objects of interaction are grounded with bounding boxes</em></figcaption></figure><p>In this joint work with University of Catania, we present Egocentric Action Scene Graphs (EASGs), a new representation for long-form understanding of egocentric videos. EASGs extend standard manually-annotated representations of egocentric videos, such as verb-noun action labels, by providing a temporally evolving graph-based description of the actions performed by the camera wearer. The description also includes interacted objects, their relationships, and how actions unfold in time. Through a novel annotation procedure, we extend the Ego4D dataset adding manually labeled Egocentric Action Scene Graphs which offer a rich set of annotations for long-from egocentric video understanding.</p><p>EASGs provide annotations for a video clip in the form of a dynamic graph. We formalize an EASG as a time-varying directed graph G(t) = (V (t), E(t)), where V (t) is the set of nodes at time t and E(t) is the set of edges between such nodes (Figure 2). Each temporal realization of the graph G(t) corresponds to an egocentric action spanning over a set of three frames defined as in [<a href="https://openaccess.thecvf.com/content/CVPR2022/papers/Grauman_Ego4D_Around_the_World_in_3000_Hours_of_Egocentric_Video_CVPR_2022_paper.pdf">Ego4D</a>]: the precondition (PRE), the point of no return (PNR) and the postcondition (POST) frames. The graph G(t) is hence effectively associated to three frames: F(t) = {PREₜ, PNRₜ, POSTₜ}, as shown in figure 1 below.</p><h4>Egocentric scene graph generation:</h4><p>Figure 2 shows an example of an annotated graph in details.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h5HvS40yHbIp-mjS_N30oA.png" /><figcaption>Image by author</figcaption></figure><p>We obtain an initial EASG leveraging existing annotations from Ego4D, with initialization and refinement procedure. e.g. we begin with adding the camera wearer node, verb node and and the default action edge from camera wearer node to the verb node. The annotation pipeline is shown in figure 3 below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-djVawZoslQmxP3kYu_VKQ.png" /><figcaption>image by author</figcaption></figure><p>Next, we do the graph refinement via inputs from 3 annotators. The validation stage aggregates the data received from three annotators and ensures the quality of the final annotations as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bEuFwzDwpJaGNIZrbsl0dQ.png" /><figcaption>Figure 4 (Image by author): Examples of questions (with correct answers in red) asked to the annotators in the validation stage to resolve ambiguities between<br>the labels provided in the annotation stage.</figcaption></figure><p>As it can be noted, the EASG dataset is unique in its labels. And, in the table below you can see how this new dataset compares with other video datasets with visual relations, in terms of labels and size.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kbwrJppbOB3LQBT1Yr-tEA.png" /><figcaption>Image by author: Comparison with existing video scene graph datasets. Our Ego4D-EASG dataset is the only one explicitly designed for long-form egocentric video understanding, featuring egocentric videos, dynamic graphs, an average sequence length of 3.1 minutes and an average number of 28.3 graphs per sequence. *measured in object-relation-object triplets. **intransitive + transitive verb predicates</figcaption></figure><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FnUqBE2obZx4%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DnUqBE2obZx4&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FnUqBE2obZx4%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/eac989d35feef6c2e0f473847c622ff9/href">https://medium.com/media/eac989d35feef6c2e0f473847c622ff9/href</a></iframe><p>The above video visually demonstrates one example EASG for annotation as it dynamically changes as the content of the video changes.</p><p>After the creation of this unique dataset, we will now describe different tasks that are evaluated on this dataset. The first set of tasks is about generating action scene graphs which stems from the image scene graph generation literature. In other words we aim to learn EASG representations in a supervised way and measure its performance in standard Recall metrics used in scene graph literature. We devise baselines and compare the EASG generation performance of different baselines on this dataset.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hHonBD3xEsDm_2r-oNB_IA.png" /><figcaption>(image by author) Baseline results for three EASG generation tasks (i.e. Edge Cls, SG Cls, and EASG Cls) in terms of Recall@K</figcaption></figure><h4><strong>Long-from understanding tasks with EASG:</strong></h4><p>We show the potential of the EASG representation in the downstream tasks of action anticipation and activity summarization. Both tasks require to perform long-form reasoning over the egocentric video, processing long video sequences spanning over different time-steps. Following recent results showing the flexibility of Large Language Models (LLMs) as symbolic reasoning machines, we perform these experiments with LLMs accessed via the OpenAI API. The experiments aim to examine the expressive power of the EASG representation and its usefulness for downstream applications. We show that EASG offers an expressive way of modeling long-form activities, in comparison with the gold-standard verb-noun action encoding, extensively adopted in egocentric video community.</p><p><strong>Action anticipation with EASGs:</strong></p><p>For the action anticipation task, we use the GPT3 text-davinci-003 model. We prompt the model to predict the future action from a sequence of length T ∈ {5, 20}. We compare two types of representations — EASG and sequences of verb-noun pairs. Below table shows the results of this experiment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*30G23pB1qWlTQ-P-9pLL1A.png" /><figcaption>Image by author: Performance Comparison for the Action anticipation task</figcaption></figure><p>Even short EASG sequences (T =5) tend to outperform long V-N sequences (T = 20), highlighting the higher representation power of EASG, when compared to standard verb-noun representations. EASG representations achieve the best results for long sequences (T = 20).</p><p><strong>Long-form activity summarization with EASGs:</strong></p><p>We select a subset of 147 Ego4D-EASG clips containing human-annotated summaries describing the activities performed within the clip in 1–2 sentences from Ego4D. We construct three types of input sequences: sequences of graphs S-EASG = [G(1), G(2), …, G(Tmax)], sequences of verb-noun pairs svn = [s-vn(1), s-vn(2), …, s-vn(Tmax)], and sequences of original Ego4D narrations, matched with the EASG sequence. This last input is reported for reference, as we expect summarization from narrations to bring the best performance, given the natural bias of language models towards this representation.</p><p>Results reported in the below table indicate strong improvement in CIDEr score over the sequence of verb-noun inputs, showing that models which process EASG inputs capturing detailed object action relationships, will generate more specific, informative sentences that align well with reference descriptions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*2oJ0UuVVToEmiP2eGPCMig.png" /><figcaption>Image by author: Results of activity summarization with EASGs and verb-noun representations</figcaption></figure><p>We believe that these contributions mark a step forward in long-form egocentric video understanding.</p><p><strong>Highlights:</strong></p><ul><li>We introduce Egocentric Action Scene Graphs, a novel representation for long-form understanding of egocentric videos;</li><li>We extend Ego4D with manually annotated EASG labels, which are gathered through a novel annotation procedure;</li><li>We propose a EASG generation baseline and provide initial baseline results;</li><li>We present experiments that highlight the effectiveness of the EASG representation for long-form egocentric video understanding. We will release the dataset and the code to replicate data annotation and the<br>experiments;</li><li>We will present this work at <strong>CVPR 2024</strong>, next month.</li><li>Paper: <a href="https://arxiv.org/abs/2312.03391">https://arxiv.org/abs/2312.03391</a> and Code: <a href="https://github.com/fpv-iplab/EASG">https://github.com/fpv-iplab/EASG</a></li></ul><h3>Temporal grounding for episodic tasks:</h3><p>In recent years, egocentric video-language pre-training (VLP) has been adopted significantly in academia and in industry. A line of works such as <a href="https://github.com/showlab/EgoVLP/blob/main/README.md">EgoVLP</a>, <a href="https://shramanpramanick.github.io/EgoVLPv2/">EgoVLPv2</a> learn transferable spatial-temporal representations from large-scale video-text datasets. Recently, <a href="https://facebookresearch.github.io/LaViLa/">LaViLa</a> showed that VLP can benefit from the dense narrations generated by Large Language Models (LLMs). However, all such methods do hit the memory and compute bottleneck while processing video sequences, each consisting of a small number of frames (e.g. 8 or 16 frame models), leading to limited temporal context aggregation capability. On the contrary, our model, called <strong>LAVITI</strong>, is equipped with long-form reasoning capability (<strong>1,000</strong> frames vs 16 frames) and is not limited to a small number of input frames.</p><p>In this ongoing work, we devised a novel approach to learning language, video, and <strong><em>temporal representations</em></strong> in long-form videos via contrastive learning. Unlike existing methods, this new approach aims to align language, video, and temporal features by extracting meaningful moments in <strong>untrimmed</strong> videos by formulating it as a direct set prediction problem. LAVITI outperforms existing state-of-the-art methods by a significant margin on egocentric action recognition, yet is trainable on memory and compute-bound systems. Our method can be trained on the Ego4D dataset with only 8 NVIDIA RTX-3090 GPUs in a day.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*Htoifux3n-t8PFzsyfg1hA.png" /><figcaption>Image by author: Performance on CharadesEgo. Our approach achieves significant gains in both zero-shot and fine-tuned settings. ZS and FT stand for zero-shot and finetuning, respectively.</figcaption></figure><p>As our model is capable of long-form video understanding with explicit temporal alignment, the Ego4D Natural Language Query (NLQ) task is a natural fit with the pre-training targets. We can directly predict intervals which are aligned with language query given a video; therefore, LAVITI can<br>perform the NLQ task under the zero-shot setting (without modifications of the architecture and re-training on NLQ annotations).</p><p>In the near future, we plan on assessing its potential to learn improved representations for episodic memory tasks including NLQ and Moment Query (MQ). To summarize, we are leveraging existing foundation models (essentially “short-term”) for creating “long-form” reasoning module aiming at 20X-50X larger context aggregation.</p><p><strong>Highlights:</strong></p><p>We devised exciting new ways for egocentric video understanding. Our contributions are manifold.</p><ul><li>Pre-training objective aligns language, video, and <em>temporal features</em> jointly by extracting meaningful moments in <strong>untrimmed</strong> videos;</li><li>formulating the video, language and temporal alignment as a direct set prediction problem;</li><li>enabling long-form reasoning over potentially <strong><em>thousands of frames</em></strong> of a video in a memory-compute efficient way;</li><li>demonstrating the efficacy of LAVITI by its superior performance on CharadesEgo action recognition;</li><li>Enabling zero-shot natural language query (NLQ) task without needing to train additional subnetworks or NLQ annotations.</li></ul><p>Watch out for more exciting results with this new paradigm of “long-form” video representation learning!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1b6dee0f5f6e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/long-form-video-representation-learning-part-3-latest-and-greatest-in-long-form-video-1b6dee0f5f6e">Long-form video representation learning (Part 3: Long-form egocentric video representation…</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Long-form video representation learning (Part 2: Video as sparse transformers)]]></title>
            <link>https://medium.com/data-science/long-form-video-representation-learning-part-2-video-as-sparse-transformers-29fbd0ed9e71?source=rss-2498d3333c07------2</link>
            <guid isPermaLink="false">https://medium.com/p/29fbd0ed9e71</guid>
            <category><![CDATA[cvpr]]></category>
            <category><![CDATA[video-text-pretraining]]></category>
            <category><![CDATA[sparse-transformer]]></category>
            <category><![CDATA[cvpr-2024]]></category>
            <dc:creator><![CDATA[Subarna Tripathi]]></dc:creator>
            <pubDate>Tue, 14 May 2024 18:33:34 GMT</pubDate>
            <atom:updated>2024-05-20T21:07:36.811Z</atom:updated>
            <content:encoded><![CDATA[<h4>We explore novel video representations methods that are equipped with long-form reasoning capability. This is part II focusing on sparse video-text transformers. See <a href="https://medium.com/@subarna.tripathi/long-form-video-representation-learning-part-1-video-as-graphs-c55b609d9100">Part I</a> on video as graphs. And <a href="https://medium.com/@subarna.tripathi/long-form-video-representation-learning-part-3-latest-and-greatest-in-long-form-video-1b6dee0f5f6e">Part III</a> provides a sneak peek into our latest and greatest explorations.</h4><p>The <a href="https://medium.com/@subarna.tripathi/long-form-video-representation-learning-part-1-video-as-graphs-c55b609d9100">first blog</a> in this series was about learning explicit sparse graph-based video representation methods for “long-form” video representation learning. They are effective methods; however, they were not end-to-end trainable. We needed to rely on other CNN or transformer-based feature extractors to generate the initial node embeddings. In this blog, our focus is to devising an end-to-end methods using transformers, but with the same goal of “long-form” reasoning.</p><h4>Sparse Video-Text Transformers</h4><p>As an end-to-end learnable architecture, we started exploring transformers. The first question we needed an answer for is that do video-text transformers learn to model temporal relationships across frames? We oberved that despite their immense capacity and the abundance of multimodal training data, recent video models show strong tendency towards frame-based spatial representations, while temporal reasoning remains largely unsolved. For example, if we shuffle the order of video frames in the input to the video models, the output do not change much!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4VWbPIsxvlKL4LdiorKYZw.png" /><figcaption>Image by author</figcaption></figure><p>Upon a closer investigation, we identify a few key challenges to incorporating multi-frame reasoning in video-language models. First, limited model size implies a trade-off between spatial and temporal learning (a classic example being 2D/3D convolutions in video CNNs). For any given dataset, optimal performance requires a careful balance between the two. Second, long-term video models typically have larger model sizes and are more prone to overfitting. Hence, for long-form video models, it becomes more important to carefully allocate parameters and control model growth. Finally, even if extending the clip length improves the results, it is subject to diminishing returns since the amount of information provided by a video clip does not grow linearly with its sampling rate. If the model size is not controlled, the compute increase may not justify the gains in accuracy. This is critical for transformer-based architectures, since self-attention mechanisms have a quadratic memory and time cost with respect to input length.</p><p>In summary, model complexity should be adjusted adaptively, depending on the input videos, to achieve the best trade-off between spatial representation, temporal representation, overfitting potential, and complexity. Since existing video-text models lack this ability, they either attain a suboptimal balance between spatial and temporal modeling, or do not learn meaningful temporal representations at all.</p><h4>What can be made “sparse” in video transformers ? Nodes and Edges:</h4><p>We argue that video-text models should learn to allocate modeling resources to the video data. Rather than uniformly extending the model to longer clips, the allocation of these resources to the relevant spatio-temporal locations of the video is crucial for efficient learning from long clips. For transformer models, this allocation is naturally performed by pruning redundant attention connections. We then accomplish these goals by exploring transformer sparsification techniques. This motivates the introduction of a <em>Sparse Video-Text Transformer </em>SViTT inspired by graph models. As illustrated in Figure 1, SViTT treats video tokens as graph vertices, and self-attention patterns as edges that connect them.</p><p>We design SViTT to pursue sparsity for both: <strong>Node </strong>sparsity reduces to identifying informative tokens (e.g., corresponding to moving objects or person in the foreground) and pruning background feature embeddings; <strong>edge</strong> sparsity aims at reducing query-key pairs in attention module while maintaining its global reasoning capability. To address the diminishing returns for longer input clips, we propose to train SViTT with temporal sparse expansion, a curriculum learning strategy that increases clip length and model sparsity, in sync, at each training stage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6adtKEayLB-gq1yHLQxuAA.png" /><figcaption>(image by author) Figure 2: (Image by author) we show the following qualitative<br>results: (1) Left: A training sample includes a description (sentence at the top) and a video clip (the sequence of frames of a video), (2) Middle: video encoder’s layer 10 after visual token pruning; (3) Right: Multimodal encoder’s output after token pruning.</figcaption></figure><h4>Applications, Evaluation and Results</h4><p>SViTT is evaluated on diverse video-text benchmarks from video retrieval to question answering, comparing to prior art and our own dense modeling baselines. First, we perform a series of ablation studies to understand the benefit of sparse modeling in transformers. Interestingly, we find that both nodes (tokens) and edges (attention) can be pruned drastically at inference, with a small impact on test performance. In fact, token selection using cross-modal attention improves retrieval results by 1% without re-training. Figure 2 shows that SViTT isolates informative regions from background patches to facilitate efficient temporal reasoning.<br>We next perform full pre-training with the sparse models and evaluate their downstream performance. We observe that SViTT scales well to longer input clips, where the accuracy of dense transformers drop due to optimization difficulties. On all video-text benchmarks, SViTT reports comparable or better performance than their dense counterparts with lower computational cost, outperforming prior arts including those trained with additional image-text corpora.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1F6GG6Yf9RzdVKMIUNKkpw.png" /><figcaption>Image by author</figcaption></figure><p>We can see from the above tables, with sparsification, immediate temporal context aggregation could be made 2X longer (table 2). Also see how sparsification maintains the final task accuracies (table 1), rather improves them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VZK2E8trhT9ytIwNPoRN3w.png" /><figcaption>image by author</figcaption></figure><p>In the above table, we show how our proposed training paradigm helps improve task performance with respect to the different levels of sparsity. In table 4, you can see the zero-shot performance on text-to-video retrieval task on two standard benchmarks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Cj09Pnkg7iyNvu6dwe-MvA.png" /><figcaption>image by author</figcaption></figure><p>Finally, we show the results on different benchmarks on multimodal retrieval and video question-answering. SViTT outperforms all existing methods, and even required less number of pre-training pairs.</p><p>More details on SViTT can be found <a href="http://svcl.ucsd.edu/projects/svitt/">here </a>. To summarize, Compared to original transformers, SViTT is 6–7 times more efficient, capable of 2X more context aggregation. Pre-training with SViTT improves accuracy SoTA on 5 benchmarks : retrieval, VideoQ&amp;A.</p><h4>SViTT-Ego for egocentric videos:</h4><p>Pretraining egocentric vision-language models has become essential to improving downstream egocentric video-text tasks. These egocentric foundation models commonly use the transformer architecture. The memory footprint of these models during pretraining can be substantial. Therefore, we pre-train our own sparse video-text transformer model, SViTT-Ego, the first sparse egocentric video-text transformer model integrating edge and node sparsification. We pretrain on the <a href="https://proceedings.neurips.cc/paper_files/paper/2022/file/31fb284a0aaaad837d2930a610cd5e50-Paper-Conference.pdf">EgoClip</a> dataset and incorporate the egocentric-friendly objective EgoNCE, instead of the frequently used InfoNCE. Most notably, SViTT-Ego, obtains a 2.8% gain on EgoMCQ (intra-video) accuracy compared to the current SOTA, with no additional data augmentation techniques other than standard image augmentations, yet pre-trainable on memory-limited devices. One such visual example is shown below. We are preparing to participate in the EgoVis workshop at CVPR with our SViTT-ego.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v4TsbudM3pblfi37K-TXkQ.png" /><figcaption>(image by author) Figure 3: Screenshot from the Huggingface demo of EgoMCQ</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/592/1*KAjiDcGtJ0bk43_Wf3FYhw.png" /><figcaption>(image by author) Table 7: SViTT-Ego outperforms all state-of-the-art models on<br>intra-video accuracy. When considering models trained solely on<br>3.8M samples without narration augmentations, SViTT-Ego out-<br>performs all models in inter-video and intra-video accuracy</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/938/1*R6LI6TRnkpmGSQFWAbnS8w.png" /><figcaption>(Image by author) Figure 4: Given qv = 0.7, we show the following qualitative<br>results with the vision encoder: row 1, shows 4 frame input; row<br>2, shows video encoder’s layer 4 after visual token pruning; row 3,<br>shows video encoder’s layer 7 after visual token pruning; and row<br>4, shows video encoder’s layer 10 after visual token pruning. We<br>follow SViTT to prune visual tokens</figcaption></figure><h4>Highlights:</h4><p>We propose, <strong>SViTT</strong>, a video-text architecture that unifies edge and node sparsity; We show its temporal modeling efficacy on video-language tasks. Compared to original transformers, <strong>SViTT</strong> is 6–7 times more efficient, capable of 2X more context aggregation. Pre-training with SViTT improves accuracy over SoTA on 5 benchmarks : retrieval, VideoQ&amp;A. Our video-text sparse transformer work was first published at <a href="https://openaccess.thecvf.com/content/CVPR2023/papers/Li_SViTT_Temporal_Learning_of_Sparse_Video-Text_Transformers_CVPR_2023_paper.pdf">CVPR 2023</a>.</p><p>Next, we show how we are leveraging such sparse transformer for egocentric video understanding applications. We show our <strong>SViTT-Ego</strong> (built atop SViTT) outperforms dense transformer baselines on the EgoMCQ task with significantly lower peak memory and compute requirements thanks to the inherent sparsity. This shows that sparse architectures such as <strong>SViTT-Ego</strong> is a potential foundation model choice, especially for pretraining on memory-bound devices. Watch out for exciting news in the near future!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=29fbd0ed9e71" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/long-form-video-representation-learning-part-2-video-as-sparse-transformers-29fbd0ed9e71">Long-form video representation learning (Part 2: Video as sparse transformers)</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Long-form video representation learning (Part 1: Video as graphs)]]></title>
            <link>https://medium.com/data-science/long-form-video-representation-learning-part-1-video-as-graphs-c55b609d9100?source=rss-2498d3333c07------2</link>
            <guid isPermaLink="false">https://medium.com/p/c55b609d9100</guid>
            <category><![CDATA[cvpr]]></category>
            <category><![CDATA[cvpr-2024]]></category>
            <category><![CDATA[multimodal-learning]]></category>
            <category><![CDATA[long-form-video]]></category>
            <category><![CDATA[editors-pick]]></category>
            <dc:creator><![CDATA[Subarna Tripathi]]></dc:creator>
            <pubDate>Tue, 14 May 2024 17:27:53 GMT</pubDate>
            <atom:updated>2024-05-17T01:03:25.307Z</atom:updated>
            <content:encoded><![CDATA[<h4>We explore novel video representations methods that are equipped with long-form reasoning capability. This is part 1 focusing on video representation as graphs and how to learn light-weights graph neural networks for several downstream applications. <a href="https://medium.com/@subarna.tripathi/long-form-video-representation-learning-part-2-video-as-sparse-transformers-29fbd0ed9e71">Part II</a> focuses on sparse video-text transformers. And <a href="https://medium.com/@subarna.tripathi/long-form-video-representation-learning-part-3-latest-and-greatest-in-long-form-video-1b6dee0f5f6e">Part III</a> provides a sneak peek into our latest and greatest explorations.</h4><p>Existing video architectures tend to hit computation or memory bottlenecks after processing only a few seconds of the video content. So, how do we enable accurate and efficient long-form visual understanding? An important first step is to have a model that practically runs on long videos. To that end, we explore novel video representations methods that are equipped with long-form reasoning capability.</p><h4><strong>What is long-form reasoning and why ?</strong></h4><p>As we saw the huge leap of success of image-based understanding tasks with deep learning models such as convolutions or transformers, the next step naturally became going beyond still images and exploring video understanding. Developing video understanding models require two equally important focus areas. First is a large scale video dataset and the second is the learnable backbone for extracting video features efficiently. Creating finer-grained and consistent annotations for a dynamic signal such as a video is not trivial even with the best intention from both the system designer as well as the annotators. Naturally, the large video datasets that were created, took the relatively easier approach of annotating at the whole video level. About the second focus area, again it was natural to extend image-based models (such as CNN or transformers) for video understanding since videos are perceived as a collection of video frames each of which is identical in size and shape of an image. Researchers made their models that use sampled frames as inputs as opposed to all the video frames for obvious memory budget. To put things into perspective, when analyzing a 5-minute video clip at 30 frames/second, we need to process a bundle of 9,000 video frames. Neither CNN nor Transformers can operate on a sequence of 9,000 frames as a whole if it involves dense computations at the level of 16x16 rectangular patches extracted from each video frame. Thus most models operate in the following way. They take a short video clip as an input, do prediction, followed by temporal smoothing as opposed to the ideal scenario where we want the model to look at the video in its entirety.</p><p>Now comes this question. If we need to know whether a video is of type ‘swimming’ vs ‘tennis’, do we really need to analyze a minute-worth content? The answer is most certainly NO. In other words, the models optimized for video recognition, most likely learned to look at background and other spatial context information instead of learning to reason over what is actually happening in a ‘long’ video. We can term this phenomenon as learning the spatial shortcut. These models were good for video recognition tasks in general. Can you guess how do these models generalize for other tasks that require actual temporal reasoning such as action forecasting, video question-answering, and recently proposed episodic memory tasks? Since they weren’t trained for doing temporal reasoning, they turned out not quite good for those applications.</p><p>So we understand that datasets / annotations prevented most video models from learning to reason over time and sequence of actions. Gradually, researchers realized this problem and started coming up with different benchmarks addressing long-form reasoning. However, one problem still persisted which is mostly memory-bound i.e. how do we even make the first practical stride where a model can take a long-video as input as opposed to a sequence of short-clips processed one after another. To address that, we propose a novel video representation method based on Spatio-Temporal Graphs Learning (SPELL) to equip the model with long-form reasoning capability.</p><h3>Video as a temporal graph</h3><p>Let G = (V, E) be a graph with the node set V and edge set E. For domains such as social networks, citation networks, and molecular structure, the V and E are available to the system, and we say the graph is given as an input to the learnable models. Now, let’s consider the simplest possible case in a video where each of the video frame is considered a node leading to the formation of V. However, it is not clear whether and how node t1 (frame at time=t1) and node t2 (frame at time=t2) are connected. Thus, the set of edges, E, is not provided. Without E, the topology of the graph is not complete, resulting into unavailability of the “ground truth” graphs. One of the most important challenges remains how to convert a video to a graph. This graph can be considered as a latent graph since there is no such labeled (or “ground truth”) graph available in the dataset.</p><p>When a video is modeled as a temporal graph, many video understanding problems can be formulated as either node classification or graph classification problems. We utilize a SPELL framework for tasks such as Action Boundary Detection, Temporal Action Segmentation, Video summarization / highlight reels detection.</p><h4>Video Summarization : Formulated as a node classification problem</h4><p>Here we present such a framework, namely VideoSAGE which stands for Video Summarization with Graph Representation Learning. We leverage the video as a temporal graph approach for video highlights reel creation using this framework. First, we convert an input video to a graph where nodes correspond to each of the video frames. Then, we impose sparsity on the graph by connecting only those pairs of nodes that are within a specified temporal distance. We then formulate the video summarization task as a binary node classification problem, precisely classifying video frames whether they should belong to the output summary video. A graph constructed this way (as shown in Figure 1) aims to capture long-range interactions among video frames, and the sparsity ensures the model trains without hitting the memory and compute bottleneck. Experiments on two datasets(SumMe and TVSum) demonstrate the effectiveness of the proposed nimble model compared to existing state-of-the-art summarization approaches while being one order of magnitude more efficient in compute time and memory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DAXCx9aiQkqK0qcTLyHnXg.png" /><figcaption>(image by author) Figure 1: <em>VideoSAGE constructs a graph from the input video with each node encoding a frame. We formulate the video summarization problem as a binary node classification problem</em></figcaption></figure><p>The tables below show the comparative results of our method, namely VideoSAGE, on performances and objective scores. This has recently been accepted in a workshop at CVPR 2024. The paper details and more results are available <a href="https://arxiv.org/pdf/2404.10539">here.</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vz7E6ygXTKFpX_KN-GxiqA.png" /><figcaption><em>(image by author) Table 1: (left) Comparison with SOTA methods on the SumMe and TVSum datasets and (right) profiling inference using A2Summ, PGL-SUM and VideoSAGE.</em></figcaption></figure><h4>Action Segmentation : Formulated as a node classification problem</h4><p>Similarly, we also pose the action segmentation problem as a node classification in such a sparse graph constructed from the input video. The GNN structure is similar to the above, except the last GNN layer is Graph Attention Network (GAT) instead of SageConv as used in the video summarization. We perform experiments on 50-Salads dataset. We leverage MSTCN or ASFormer as the stage 1 initial feature extractors. Next, we utilize our sparse, Bi-Directional GNN model that utilizes concurrent temporal “forward” and “backward” local message-passing operations. The GNN model further refine the final, fine-grain per-frame action prediction of our system. Refer to table 2 for the results.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0nv4a6BGdxLK79mdExCC3w.png" /><figcaption><em>(image by author) Table 2: Action Segmentation results on 50-Salads dataset as measured by F1@.1 and Accuracy.</em></figcaption></figure><h3>Video as “object-centric” spatio-temporal graph</h3><p>In this section, we will describe how we can take the similar graph based approach where nodes denote “objects” instead of one whole video frame. We will start with a specific example to describe the spatio-temporal graph approach.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/684/1*H08fqs1FHftbLhctZXnp7Q.png" /><figcaption><em>(image by author) Figure 2: We convert a video into a canonical graph from the audio-visual input data, where each node corresponds to a person in a frame, and an edge represents a spatial or temporal interaction between the nodes. The constructed graph is dense enough for modeling long-term dependencies through message passing across the temporally-distant but relevant nodes, yet sparse enough to be processed within low memory and computation budget. The ASD task is posed as a binary node classification in this long-range spatial-temporal graph.</em></figcaption></figure><h4>Active Speaker Detection : Task formulated as node classification</h4><p>Figure 2 illustrates an overview of our framework designed for Active Speaker Detection (ASD) task. With the audio-visual data as input, we construct a multimodal graph and cast the ASD as a graph node classification task. Figure 3 demonstrates the graph construction process. First, we create a graph where the nodes correspond to each person within each frame, and the edges represent spatial or temporal relationships among them. The initial node features are constructed using simple and lightweight 2D convolutional neural networks (CNNs) instead of a complex 3D CNN or a transformer. Next, we perform binary node classification i.e. active or inactive speaker — on each node of this graph by learning a light-weight three-layer graph neural network (GNN). Graphs are constructed specifically for encoding the spatial and temporal dependencies among the different facial identities. Therefore, the GNN can leverage this graph structure and model the temporal continuity in speech as well as the long-term spatial-temporal context, while requiring low memory and computation.</p><p>You can ask why the graph construction is this way? Here comes the influence of the domain knowledge. The reason the nodes within a time distance that share the same face-id are connected with each other is to model the real-world scenario that if a person is taking at t=1 and the same person is talking at t=5, the chances are that person is talking at t=2,3,4. Why we connect different face-ids if they share the same time-stamp? That’s because, in general, if a person is talking others are most likely listening. If we had connected all nodes with each other and made the graph dense, the model not only would have required huge memory and compute, they would also have become noisy.</p><p>We perform extensive experiments on the AVA-ActiveSpeaker dataset. Our results show that SPELL outperforms all previous state-of-the-art (SOTA) approaches. Thanks to sparsity (~95%) of the constructed graphs, SPELL requires significantly less hardware resources for the visual feature encoding (11.2M #Params) compared to ASDNet (48.6M #Params), one of the leading state-of-the-art methods of that time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/999/1*mDEOaKxN-9pUG3LfKds9Gg.png" /><figcaption><em>(image by author) Figure 3: (a): An illustration of our graph construction process. The frames above are temporally ordered from left to right. The three colors of blue, red, and yellow denote three identities that are present in the frames. Each node in the graph corresponds to each face in the frames. SPELL connects all the inter-identity faces from the same frame with the undirected edges. SPELL also connects the same identities by the forward/backward/undirected edges across the frames (controlled by a hyperparameter, τ) . In this example, the same identities are connected across the frames by the forward edges, which are directed and only go in the temporally forward direction. (b): The process for creating the backward and undirected graph is identical, except in the former case the edges for the same identities go in the opposite direction and the latter has no directed edge. Each node also contains the audio information which is not shown here.</em></figcaption></figure><h4>How long the temporal context is?</h4><p>Refer to figure 4 below that shows the temporal context achieved by our methods on two different applications.</p><p>The hyper-parameter τ (= 0.9 second in our experiments) in SPELL imposes additional constraints on direct connectivity across temporally distant nodes. The face identities across consecutive timestamps are always connected. Below is the estimate of the effective temporal context size of SPELL. The AVA-ActiveSpeaker dataset contains 3.65 million frames and 5.3 million annotated faces, resulting in 1.45 faces per frame. Averaging 1.45 faces per frame, a graph with 500 to 2000 faces in sorted temporal order can span 345 to 1379 frames, corresponding to anywhere between 13 and 55 seconds for a 25 frame/second video. In other words, the nodes in the graph might have a time difference of about 1 minute, and SPELL is able to effectively reason over that long-term temporal window within a limited memory and compute budget. It is noteworthy that the temporal window size in <a href="https://openaccess.thecvf.com/content/ICCV2021/papers/Alcazar_MAAS_Multi-Modal_Assignation_for_Active_Speaker_Detection_ICCV_2021_paper.pdf">MAAS </a>is 1.9 seconds and TalkNet uses up to 4 seconds as long-term sequence-level temporal context.</p><p>The work on spatio-temporal graphs for active speaker detection has been published at ECCV 2022. The manuscript can be found <a href="https://link.springer.com/chapter/10.1007/978-3-031-19833-5_22">here </a>. In an earlier <a href="https://community.intel.com/t5/Blogs/Tech-Innovation/Artificial-Intelligence-AI/Spatio-Temporal-Graphs-for-Long-Term-Video-Understanding/post/1425258#.Y1oG7jhUOBs.linkedin">blog </a>we provided more details.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fUsv2EiGQbZI_jxsKkgkAA.png" /><figcaption><em>(image by author) Figure 4: Left and right figure demonstrate the compartive time-support of our method compared to others for Active Speaker Detection and Action Detection applications, respectively.</em></figcaption></figure><h4>Action Detection : Task formulated as node classification</h4><p>The ASD problem setup in Ava active speaker dataset has access to the labeled faces and labeled face tracks as input to the problem setup. That largely simplifies the construction of the graph in terms of identifying the nodes and edges. For other problems, such as Action Detection, where the ground truth object (person) locations and tracks are not provided, we use pre-processing to detect objects and object tracks, then utilize SPELL for the node classification problem. Similar to the previous case, we utilize domain knowledge and construct a sparse graph. The “object-centric” graphs are first created keeping the underlying application in mind.</p><p>On an average, we achieve ~90% sparse graphs; a key difference compared to visual transformer-based methods which rely on dense General Matrix Multiply (GEMM) operations. Our sparse GNNs allow us to (1) achieve better performance than transformer-based models; (2) aggregate temporal context over 10x longer windows compared to transformer-based models (100 seconds vs 10 seconds); and (3) Achieve 2–5X compute savings compared to transformers-based methods.</p><h3>GraVi-T: Open Source Software Library</h3><p>We have open-sourced our software library, GraVi-T. At present, GraVi-T supports multiple video understanding applications, including Active Speaker Detection, Action Detection, Temporal Segmentation, Video Summarization. See our opensource software library <a href="https://github.com/IntelLabs/GraVi-T">GraVi-T</a> to more on the applications.</p><h3>Highlights</h3><p>Compared to transformers, our graph approach can aggregate context over 10x longer video, consumes ~10x lower memory and 5x lower FLOPs. Our first and major work in this topic (Active Speaker Detection) was published at <a href="https://link.springer.com/chapter/10.1007/978-3-031-19833-5_22">ECCV’22</a>. Watch out for our latest publication at upcoming CVPR 2024 on video summarization aka video highlights reels creation.</p><p>Our approach of modeling video as a sparse graph outperformed complex SOTA methods on several applications. It secured top places in multiple leaderboards. The list includes ActivityNet 2022, Ego4D audio-video diarization challenges at ECCV 2022, CVPR 2023. <a href="https://intelailabpage.github.io/2023/03/29/gravi-t.html">Source code</a> for the training the past challenge winning models are also included in our open-sourced software library, <a href="https://intelailabpage.github.io/2023/03/29/gravi-t.html">GraVi-T</a>.</p><p>We are excited about this generic, lightweight and efficient framework and are working towards other new applications. More exciting news coming soon !!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c55b609d9100" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/long-form-video-representation-learning-part-1-video-as-graphs-c55b609d9100">Long-form video representation learning (Part 1: Video as graphs)</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>