Sequence generation-based video understanding unified architecture implementation method and device and medium
By unifying temporal action detection, temporal action segmentation, and general event boundary detection tasks into an encoder-decoder architecture, the problem of isolated training in traditional video understanding tasks is solved, enabling more efficient multi-task learning and unified model deployment, and improving the generalization ability of video understanding.
Patent Information
- Application Number
- CN202410170987.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-06
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2044-02-06
AI Technical Summary
Traditional video understanding tasks are broken down into multiple isolated subtasks, resulting in low training efficiency, inability to adapt to complex video application scenarios, and a lack of a unified model architecture to handle various video understanding tasks.
We adopt a unified architecture for video understanding based on sequence generation, which integrates three tasks—temporal action detection, temporal action segmentation, and general event boundary detection—into a single encoder-decoder architecture. We extract video features using the ViT-B model and train it using masked multi-head self-attention and multi-head cross-self-attention modules. We combine the AdamW optimizer and loss functions for different tasks to achieve joint learning of multiple tasks.
It achieves unified processing capability for different video understanding tasks, improves the model's generalization ability and deployment efficiency, and can handle multiple video understanding tasks after a single training, achieving better results than training each task separately.
Smart Images

Figure CN118038319B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of computer software technology and relates to time-action detection, time-action segmentation, general boundary detection and multi-task joint training technology. Specifically, it is a method, device and medium for implementing a unified architecture for video understanding based on sequence generation on three tasks. Background Technology
[0002] Temporal Action Detection (TAD) aims to locate the start and end times of each action in an undone video and identify its action category. Temporal Action Segmentation (TAS) aims to predict action labels for each frame of an undone video. Generic Event Boundary Detection (GEBD) aims to locate the generic boundaries that divide a video into semantically coherent and classless units, serving as an important preprocessing step for long-term video understanding. Multi-Task Learning (MTL) attempts to train multiple tasks simultaneously using a single model and achieve better results than training the task alone. In traditional work, TAD, TAS, and GEBD have been studied in isolation, with models trained and tested on different datasets and with vastly different input and output formats. With the explosive growth of videos in daily life, models trained on video datasets from a single task domain often cannot generalize to broader application scenarios, and the types of tasks they can handle are also limited.
[0003] In the field of natural language processing, with the rise of Large Language Models (LLMs), a large number of different language-related tasks have been unified into a single model framework, achieving significant success in sequential causal reasoning. The field of video understanding also urgently needs a unified architectural model to process various video data and improve video understanding capabilities and efficiency. Previous models designed for specific tasks lack the ability to handle different video understanding tasks; their model architectures cannot be directly applied to other understanding tasks, and they cannot provide the required results for other tasks. Furthermore, previous research has not yielded a unified model specifically for this task. Summary of the Invention
[0004] The problem this invention aims to solve is that traditional video understanding tasks are subdivided into multiple sub-tasks, and each task is trained in isolation, which leads to inefficiency. Increasingly complex video application scenarios require a unified architecture that can handle multiple scenarios, making it easier to apply and deploy.
[0005] The technical solution of this invention is: a unified architecture implementation method for video understanding based on sequence generation, which unifies the inputs of three video understanding tasks—Time Action Detection (TAD), Time Action Segmentation (TAS), and General Event Boundary Detection (GEBD)—into a token in the same space, and feeds it into a neural network with an encoder-decoder architecture. The method decodes the corresponding results according to different tasks, thus realizing a unified architecture for video understanding, including the following steps:
[0006] 1) Use the ViT-B model to extract video features from the videos in each dataset to obtain input features F. The datasets are derived from the training datasets of each video understanding task.
[0007] 2) For different task types, the annotations of each task are constructed into a unified encoding of the target sequence to obtain a unified token query representation, i.e., feature query M, which is used to feed into the decoder for processing.
[0008] 3) A unified video understanding model, Frame2Seq, is built based on sequence generation and features an encoder-decoder architecture. During training, the decoder uses a mask to ensure that the current frame does not acquire subsequent temporal information. The Frame2Seq model includes the following configuration:
[0009] 3.1) Encoder: The input feature F obtained in 1) is added to the sinusoidal position code and then fed into the multi-head self-attention module for encoding to obtain the key information of the video features;
[0010] 3.2) Decoder: The input is the feature query M from 2) and the key-value information obtained from 3.1). The output is the task-required content decoded according to different tasks. The decoder includes the following configuration:
[0011] 3.2.1) Masked Multi-Head Self-Attention Module: For the feature query M in 2), after sequence-level positional encoding, it is passed into a masked multi-head self-attention module to obtain an enhanced query, so that the multi-head self-attention module only depends on the query information of the preceding time sequence when generating the current query, and does not obtain the information of the following time sequence.
[0012] 3.2.2) Multi-head cross-attention module: The enhanced query in 3.2.1) and the key-value information in 3.1) are fed into the multi-head cross-attention module to obtain the output similarity information;
[0013] 3.2.3) Feedforward Neural Network: The results of 3.2.2) are fed into a feedforward neural network to classify the results and obtain the category for each dimension. Based on the current task type, the category result required for the current task is taken and processed to obtain the space and output format that conform to the current task category, i.e., the prediction result. In the prediction result, prediction is generated for each token and the corresponding decoding method is adopted according to the current task type. The prediction result is output by decoding the category result.
[0014] 4) Train the established Frame2Seq model. Based on the video understanding task, compare the prediction results output by the model with the target sequence in 2) to calculate the loss. Then, use the AdamW optimizer to train the Frame2Seq model on the training set and update the network parameters through the backpropagation algorithm. The trained Frame2Seq model can be used for various video understanding tasks.
[0015] Furthermore, step 1) is the feature acquisition stage, in which the pre-trained ViT-B is used as the backbone network to extract features from the videos of each dataset, and the video features are sampled adaptively at the video frame rate to obtain frame-by-frame features. Each video obtains an input feature F with dimensions of (T,C), where T is the number of video frames and C is the feature dimension.
[0016] Furthermore, step 2) is the input token query generation stage. Based on the needs of different task types, the ground truth annotations for each task are encoded and converted into a unified token form, which serves as the query input for the decoder. For each dataset video from step 1), T frames are sampled to obtain the corresponding annotation A. A target sequence is constructed and then encoded as (N,C)-dimensional features, serving as the feature query M for multi-task videos, thus unifying the input for each task. N is the target sequence length, and C is the feature dimension. When constructing the input token query, for the TAD task, the video annotations are encoded into triples of start time, end time, and action category. The input for the TAD task consists of several triples. To unify the input length with other tasks, triples of noisy actions are added. For the TAS and GEBD tasks, the video annotations are encoded, and each frame's position is assigned an action category token or a noise token. Finally, all encoded tokens are distributed in a vocabulary, with different tasks occupying different parts of the vocabulary.
[0017] Furthermore, in step 4), the base loss function for all three tasks is the cross-entropy loss function, calculated as follows:
[0018]
[0019] L GEBD =L CE
[0020] Where T represents the number of input feature frames. Representative tags For the predicted probability in frame t, the GEBD task directly uses the cross-entropy loss function;
[0021] For the TAS task, an additional smoothing loss in the form of mean squared error is added, as shown below:
[0022]
[0023] L TAS =L CE +λL sm o
[0024] Where y t,c λ is the predicted probability of label k in frame t, K is the total number of action categories, and λ is the weight that controls the proportion of these two loss functions.
[0025] For the TAD task, a weighted loss is designed based on cross-entropy loss to impose more penalties on predictions that are far from the true boundary. Firstly, through... The predicted temporal boundaries of the action are obtained, where i∈[1,L] represents the sequence number of the actual action, and j∈[1,B] represents the predictable temporal position of the model. Let represent the probability that the model predicts the action belongs to the i-th real action and the action boundary is located at j. The real action predicted by the model with the maximum probability and the predicted action position are taken as the temporal boundary prediction for the action. Then, the loss weight W for the classification loss at the predicted position is constructed and calculated. L =1+abs(DT) i ) / B, where T i This represents the true boundary of the action. Finally, two cross-entropy loss functions are constructed to calculate the action boundary loss L at this point. b and action category loss L c :
[0026] L b =W L *cross_entropy(P i ,T i weight = W b )
[0027] L c =W L *cross_entropy(P i ,T i weight = W c )
[0028] Among them W bW represents the loss weights at the action boundaries. c The loss weights represent the action categories, and `cross_entropy` represents the cross-entropy loss. This forms the loss for the TAD task.
[0029] L TAD =L b +L c .
[0030] The present invention also provides an electronic device, which includes a processor and a memory. The memory stores at least one instruction or at least one program. The at least one instruction or at least one program is loaded and executed by the processor to implement the unified video understanding model Frame2Seq obtained by the above-mentioned unified architecture implementation method for video understanding based on sequence generation. The unified architecture model processes various video data and completes multiple tasks such as Temporal Action Detection (TAD), Temporal Action Segmentation (TAS), and General Event Boundary Detection (GEBD).
[0031] The present invention also provides a computer-readable storage medium storing at least one instruction or at least one program, wherein when the at least one instruction or at least one program is executed, the video understanding unified model Frame2Seq obtained by the above-described sequence generation-based unified architecture implementation method for video understanding is implemented.
[0032] This invention proposes an MTL framework for downstream video temporal tasks. Existing technologies study the TAD, TAS, and GEBD tasks in isolation, and no research has yet attempted multi-task learning on these three tasks. Existing multi-task learning techniques are mostly geared towards static images rather than video. Due to the different characteristics of task and object understanding, existing research cannot be applied to multi-task learning for TAD, TAS, and GEBD.
[0033] Compared with the prior art, the present invention has the following advantages:
[0034] 1) The unified architecture proposed in this invention for three tasks in the video understanding domain possesses the ability to handle different video understanding tasks. It learns more generalizable feature representations using datasets from different video understanding tasks, thus achieving better results compared to training each task individually. This invention proposes a unified model decoding paradigm, enabling different tasks to obtain task-specific output formats through the same paradigm, and allowing joint training from datasets of each task to achieve superior results. Furthermore, it simplifies model deployment, requiring only one training iteration to handle three different video understanding tasks.
[0035] 2) This invention is based on a neural network with an encoding and decoding architecture designed for sequence generation. It integrates three tasks in the field of video understanding, unifies their different inputs and outputs into the same token space, and then performs joint training on the three tasks in the manner of sequence generation.
[0036] 3) This invention is the first attempt at three-task fusion in the field of video understanding, and it has the characteristics of covering many tasks and being easy to deploy in video understanding tasks. Attached Figure Description
[0037] Figure 1 This is a schematic diagram illustrating the overall function of the present invention.
[0038] Figure 2 This is the system framework diagram used in this invention.
[0039] Figure 3 This is a schematic diagram illustrating the token generation during the encoding and decoding stages of this invention.
[0040] Figure 4 This is the result of comparing the present invention with previous work on various dataset samples. Detailed Implementation
[0041] This invention is a unified architecture method for video understanding based on sequence generation, which constructs a unified video understanding model Frame2Seq, such as... Figure 1 As shown, the inputs of three video understanding tasks—Time-Based Action Detection (TAD), Time-Based Action Segmentation (TAS), and General Event Boundary Detection (GEBD)—are decoded using the unified video understanding model Frame2Seq, according to different tasks, to achieve a unified architecture for video understanding and open up new research ideas in the field. The method for achieving this unified architecture includes a feature sampling stage, an input token generation and query stage, a network configuration stage, a training stage, and a testing stage, as follows: Figure 2 As shown, the specific explanation is as follows.
[0042] 1) Feature Sampling Stage: ViT-B is used as the backbone network to extract features from videos in various datasets. Unlike existing technologies that train on video datasets from a single task domain, the datasets described in this invention originate from videos in datasets widely recognized across various video understanding tasks. Each video receives an input feature F with (T, C) dimensions, where T is the number of video frames and C is the feature dimension, here C = 768. In this embodiment, a ViT-B model pre-trained on the Kinetics-400 dataset for VideoMAE is used to adaptively sample video features at the video frame rate. Each feature is obtained by extracting information from 16 adjacent frames, resulting in frame-by-frame features. Due to different video frame rates and varying temporal requirements for different tasks, features need to be sampled before use. Here, videos for TAD and TAS tasks are downsampled by a factor of four, and video features for GEBD are downsampled by a factor of three. Because the ViT-B model is used, all video features have a dimension of 768.
[0043] 2) Input Token Generation Query Stage: Different video understanding tasks have different corresponding supervision signals, i.e., annotation types. Based on the needs of different task types, the ground truth annotations for each task are encoded and constructed into a unified token form, which serves as the query input for the decoder. For each dataset video from step 1), T frames are sampled from each video to obtain the corresponding annotation A. A target sequence is constructed and then encoded into (N,C)-dimensional features, serving as the feature query M for multi-task videos, thus unifying the input for each task. N is the target sequence length, and C is the feature dimension. For example... Figure 2 As shown, the video list V corresponds to the feature sampling in step 1), and label A is the annotation for the videos in video list V. Each task's video has its own corresponding supervision signal, i.e., annotation. In this step, each task's video is sampled for T frames, and its corresponding supervision signal is constructed into the same sequence with a length of N. For example, sampling T frames of a video in the TAD task results in a supervision signal sequence of length N; sampling a video in the TAS task, with a video length of T frames, its supervision signal can still be constructed into a sequence of length N, ensuring that the input for each video task is of a unified form.
[0044] Since the input formats differ for different tasks, the construction of input token queries needs to be discussed separately based on the task type. For the TAD task, the annotation of each video action segment is encoded into a triplet of start time s, end time e, and action category c. The task input consists of several triplets. In order to unify the input length with other tasks, some triplets of noisy actions can be added, such as supervision signal values (s1, e1, c1), (s2, e2, c2), ..., and these supervision signals are uniformly converted into a sequence of length N. For the TAS and GEBD tasks, the annotation of the entire T-frame video segment is encoded, and the position of each frame is assigned an action category token or a noise token.
[0045] This invention, based on the needs of different task types, transforms the ground truth labels of various tasks into a unified token format, which serves as the input for the decoder's query Q-value. All tokens are distributed across a vocabulary, with different tasks occupying different portions of the vocabulary, such as... Figure 3 As shown, the vocabulary includes the time position token of TAD, the category tokens of the three tasks, and the placeholder tokens of the three tasks. During decoding and prediction, the corresponding task understanding result is obtained by decoding the required tokens based on the current task.
[0046] 3) Network Configuration Phase: Based on sequence generation, the unified video task understanding model Frame2Seq of this invention is established. The model includes the following configuration:
[0047] 3.1) Encoder: The input feature F obtained in 1) is added to the sinusoidal position code and then fed into the multi-head self-attention module to obtain the key information of the video features.
[0048] 3.2) Decoder: The input is the token tag query from 2), i.e., the feature query M, and the key-value information from 3.1). The output is the task-required content decoded according to different tasks. The decoder includes the following configuration:
[0049] 3.2.1) Masked Multi-Head Self-Attention Module: For the feature query M in 2), after sequence-level positional encoding, it is passed into a masked multi-head self-attention module to obtain the enhanced query. The mask means that when the features passed into the multi-head self-attention module interact, the features at the current time position cannot interact with the features in the future time sequence. This makes the multi-head self-attention module rely only on the query information of the previous time sequence when generating the current query, and will not obtain the information of the later time sequence.
[0050] 3.2.2) Multi-head cross-attention module: The enhanced query in 3.2.1) and the key-value information in 3.1) are fed into the multi-head cross-attention module to obtain the output similarity information.
[0051] 3.2.3) Feedforward Neural Network: The results from 3.2.2) are fed into a feedforward neural network to classify the results and obtain the category for each dimension. Based on the current task type, the required category results for the current task are taken, and the space and output format that conform to the current task category are obtained, i.e., the prediction result. In the prediction process, predictions are generated token by token, and the corresponding decoding method is adopted according to the current task type. The prediction result is output by decoding the category results.
[0052] For example, when predicting the output of the TAD task, the decoded output is in the form of a triple (s, e, c), representing the start position, end position, and action category, respectively. When predicting the output of the TAS task, the category prediction for each frame of the video is output. When predicting the output of the GEBD task, the category for each frame is output. There are only two categories: background (indicating no action) and action (indicating action occurred in the current frame), such as... Figure 3 As shown, this illustrates the required space and output format for predicting tokens from the vocabulary based on different video understanding tasks.
[0053] 4) Training Phase: A simple cross-entropy loss function is sufficient for good results during training. As a further improvement, for the TAD task, which is not simply a classification problem, a weighted cross-entropy loss function is designed for additional processing; for the TAS task, a smoothing loss function is added after the cross-entropy loss function. The AdamW optimizer is used to update the network parameters through backpropagation. Steps 1), 2), and 3) are repeated continuously until the required number of iterations is reached.
[0054] In this embodiment, the model output and the query generated in step 2) are compared to calculate the loss. Then, the AdamW optimizer is used to train the Frame2Seq model on the training set for 3600 rounds. The network parameters are updated using the backpropagation algorithm, with an initial learning rate of 0.0002. The loss calculation method differs across the three tasks. The basic loss for all three tasks uses the cross-entropy loss function, and its calculation formula is as follows:
[0055]
[0056] L GEBD =L CE
[0057] Where T represents the number of input feature frames. Representative tags The predicted probability in frame t. The GEBD task only uses this simple loss for training. For the TAS task, an additional smoothing loss in the form of mean squared error is required, as shown below:
[0058]
[0059] L TAS =L CE +λL smo
[0060] Where y t,c λ is the predicted probability of label k in frame t, K is the total number of action categories, and λ is the weight that controls the proportion of these two loss functions.
[0061] For the TAD task, since it is a detection task rather than a classification task, using the above loss function leads to insensitivity to the action boundaries of the regression. To address this issue, this invention designs a weighted loss based on cross-entropy loss, imposing more penalties on predictions that are far from the true boundary. Firstly, through... The predicted temporal boundaries of the action are obtained, where i∈[1,L] represents the sequence number of the actual action, and j∈[1,B] represents the predictable temporal position of the model. This represents the probability that the model predicts the action belongs to the i-th true action and the action boundary is located at j. The true action predicted by the model with the highest probability and the predicted action position are taken as the temporal boundary prediction for this action. Next, the loss weight W for calculating the classification loss at this prediction position is constructed. L =1+abs(DT) i ) / B, where T i This represents the true boundary of the action. Finally, two cross-entropy loss functions are constructed to calculate the action boundary loss L at this point. b and action category loss L c :
[0062] L b =W L *cross_entropy(P i ,T i weight = W b )
[0063] L c =W L *cross_entropy(P i ,T i weight = W c )
[0064] Among them Wb W represents the loss weights at the action boundaries. c The loss weights represent the action categories, and `cross_entropy` is the cross-entropy loss. This leads to the loss for the TAD task:
[0065] L TAD =L weightloss =L b +L c
[0066] The implementation of the weighted loss algorithm is shown below:
[0067]
[0068] 5) Testing Phase: The video features to be tested are input into the trained model. Classification results based on task type are obtained through steps 2) and 3). Query features are generated for the video under test based on step 2). Results for different video understanding tasks are obtained based on the model in step 3), followed by subsequent performance measurement. In this embodiment, on the dataset examples, the ViT-B VideoMAE backbone network is used to extract video features. A video is segmented into several segments with a maximum size of M, and then input into the trained Frame2Seq network. Output results for different tasks are obtained through steps 2) and 3), and submitted for subsequent performance measurement. The testing metrics used in this invention differ for different tasks. For TAD, mAP is used as the metric, which refers to the average accuracy when the Intersection over Union (IoU) between the actual bounding box and the predicted bounding box of an object is greater than 0.5, indicating accurate prediction. For TAS, frame-level prediction accuracy (Acc), segmented edit score (Edit), and segmented overlap (F1) metrics are used to evaluate model performance. For GEBD, F1 scores at different relative distance thresholds are used for evaluation. When compared fairly with other existing models, the joint training framework of this invention achieves excellent results on all three tasks, such as... Figure 4 As shown.
Claims
1. A method for implementing a sequence-based video understanding unified architecture, characterized in that The inputs of three video understanding tasks—Time-Based Action Detection (TAD), Time-Based Action Segmentation (TAS), and General Event Boundary Detection (GEBD)—are unified into a single token in the same space. This token is then fed into an encoder-decoder neural network, which decodes the corresponding results according to the different tasks. This achieves a unified architecture for video understanding, including the following steps: 1) Use the ViT-B model to extract video features from the videos in each dataset to obtain input features F. The datasets are derived from the training datasets of each video understanding task. 2) For different task types, the annotations of each task are constructed into a unified encoding of the target sequence to obtain a unified token query representation, i.e., feature query M, which is used to feed into the decoder for processing; 3) A unified video understanding model, Frame2Seq, is built based on sequence generation and features an encoder-decoder architecture. During training, the decoder uses a mask to ensure that the current frame does not acquire subsequent temporal information. The Frame2Seq model includes the following configuration: 3.1) Encoder: The input feature F obtained in 1) is added to the sinusoidal position code and then fed into the multi-head self-attention module for encoding to obtain the key information of the video features; 3.2) Decoder: The input is the feature query M from 2) and the key-value information obtained from 3.1). The output is the task-required content decoded according to different tasks. The decoder includes the following configuration: 3.2.1) Masked Multi-Head Self-Attention Module: For the feature query M in 2), after sequence-level positional encoding, it is passed into a masked multi-head self-attention module to obtain an enhanced query, so that the multi-head self-attention module only depends on the query information of the preceding time sequence when generating the current query, and does not obtain the information of the following time sequence; 3.2.2) Multi-head cross-attention module: The enhanced query in 3.2.1) and the key-value information in 3.1) are fed into the multi-head cross-attention module to obtain the output similarity information; 3.2.3) Feedforward Neural Network: The results of 3.2.2) are fed into a feedforward neural network to classify the results and obtain the category for each dimension. Based on the current task type, the category result required for the current task is taken, and the space and output format that conform to the current task category are obtained, i.e., the prediction result. In the prediction result, prediction is generated for each token, and the corresponding decoding method is adopted according to the current task type. The prediction result is output by decoding the category result. 4) Train the established Frame2Seq model. Based on the video understanding task, compare the prediction results output by the model with the target sequence in 2) to calculate the loss. Then, use the AdamW optimizer to train the Frame2Seq model on the training set and update the network parameters through the backpropagation algorithm. The trained Frame2Seq model can be used for various video understanding tasks. During training, the cross-entropy loss function is used as the base loss function for all three tasks, and its calculation formula is as follows: where T represents the number of input feature frames, representative label in frame The prediction probability, GEBD task directly uses cross-entropy loss function; For the TAS task, an additional smoothing loss in the form of mean squared error is added, as shown below: in It is a tag In frame The predicted probability, It is the total number of action categories. These are the weights that control the proportion of these two loss functions; For the TAD task, a weighted loss is designed based on cross-entropy loss to impose more penalties on predictions that are far from the true boundary. Firstly, through... }) to obtain the prediction of the temporal boundary of the action, where Indicates the sequence number of the actual action. This indicates the predictable temporal position of the model. Let represent the probability that the model predicts the action belongs to the i-th real action and the action boundary is located at j. The real action predicted by the model with the maximum probability and the predicted action position are taken as the temporal boundary prediction for the action. Then, the loss weight W for the classification loss at the predicted position is constructed and calculated. L =1+abs(D- ) / B, where This represents the true boundary of the action, and finally, two cross-entropy loss functions are constructed to calculate the action boundary loss at this point. and action category loss : ) in The loss weights represent the action boundaries. The loss weights represent the action categories, and `cross_entropy` represents the cross-entropy loss. This forms the loss for the TAD task: 。 2. The unified architecture implementation method for video understanding based on sequence generation according to claim 1, characterized in that: Step 1) is the feature sampling stage. The pre-trained ViT-B is used as the backbone network to extract features from the videos of each dataset. The video features are sampled adaptively at the video frame rate. For each task, T frames are sampled to obtain frame-by-frame features. Each video obtains an input feature F with dimensions of (T, C), where T is the number of video frames and C is the feature dimension.
3. The unified architecture implementation method for video understanding based on sequence generation according to claim 1, characterized in that: Step 2) is the input token query stage. According to the needs of different task types, the ground truth annotations of each task are encoded and converted into a unified token form as the query input of the decoder: For each dataset video in Step 1), T frames are sampled for each video to obtain the corresponding annotation A, construct the target sequence, and then encode it into (N, C) dimensional features as the feature query M for multi-task videos to unify the input of each task. N is the length of the target sequence and C is the feature dimension. In constructing the input token query, for the TAD task, the video annotations are encoded into triples of start time, end time, and action category. The input for the TAD task consists of several triples. To ensure consistent input length with other tasks, triples for noisy actions are added. For the TAS and GEBD tasks, the video annotations are encoded, and each frame's position is assigned an action category token or a noise token. Finally, all the encoded tokens are distributed in a vocabulary, with different tasks occupying different parts of the vocabulary.
4. An electronic device, characterized in that: The electronic device includes a processor and a memory. The memory stores at least one instruction or at least one program. The at least one instruction or at least one program is loaded and executed by the processor to implement the unified video understanding model Frame2Seq obtained by the unified architecture implementation method based on sequence generation of any one of claims 1-3. The unified architecture model processes various video data and completes multiple tasks such as Temporal Action Detection (TAD), Temporal Action Segmentation (TAS), and General Event Boundary Detection (GEBD).
5. A computer-readable storage medium, characterized in that... The computer-readable storage medium stores at least one instruction or at least one program, which, when executed, implements the unified video understanding model Frame2Seq obtained by the sequence generation-based unified architecture implementation method as described in any one of claims 1-3.
