Manuscript Offprint

arXiv:2611.07755

Automated Video-to-QA Pipeline: End-to-End Question Generation and Verification Using Large Language Models

Jaival Chauhan, Vikram Singh, Pruthwik Mishra

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.

Jaival Chauhan, Vikram Singh, Pruthwik Mishra

Sardar Vallabhbhai National Institute of Technology, Surat, India

Abstract—The exponential growth of educational and informational video content on platforms like YouTube presents a challenge for efficient knowledge retrieval and assessment. This paper proposes an end-to-end automated pipeline for extracting structured summaries and generating high-fidelity Question-Answer (QA) pairs from video streams. The framework integrates a cascade of state-of-the-art models: audio extraction is handled via FFmpeg, followed by automatic speech recognition (ASR) using Whisper (A library in Python) to generate accurate transcripts. Due to the token constraints of Large Language Models (LLMs), transcripts are segmented and summarized using Facebook's BART.

A key innovation of this work is a Self-Verification and Fine-Tuning Loop. We utilize meta-llama/Llama-3.1-8B-Instruct to generate candidate QA pairs from transcript chunks, which are then fed back into the model to rigorously assess their relevance and importance. Only verified, high-quality pairs are retained to construct a synthetic dataset. This dataset is subsequently used to fine-tune the Llama model using Low-Rank Adaptation (LoRA), resulting in a specialized model capable of generating domain-aligned assessment questions. This approach demonstrates a scalable method for creating self-improving educational tools without the need for manual data annotation. The proposed model can be downloaded from Kaggle with all the codes from GitHub.

I. INTRODUCTION

In the digital age, video has established itself as the dominant medium for information dissemination. Platforms like YouTube host billions of hours of educational content, ranging from university lectures to technical tutorials. However, the sheer volume of this data presents a significant challenge: video is an inherently unstructured modality. Unlike text, which can be easily skimmed, searched, and indexed, extracting specific knowledge from video requires linear consumption, which is time-inefficient for learners and professionals alike.

Furthermore, the pedagogical value of video content is often limited by the lack of accompanying structured resources, such as concise summaries and assessment materials (Question-Answer pairs). Creating these resources manually is a labor-intensive process requiring domain expertise. While recent advancements in Deep Learning, specifically in Automatic Speech Recognition (ASR) and Large Language Models (LLMs), have enabled the automation of individual tasks, integrating these technologies into a coherent, reliable pipeline remains a complex engineering challenge. A primary hurdle in automated Question Generation (QG) is the tendency of LLMs to "hallucinate" or generate questions that are not grounded in the source material, thereby reducing the utility of the system for educational purposes.

To address these challenges, this paper proposes an end-to-end automated pipeline designed to transform raw video data into structured, high-quality educational assets. Our system leverages a multi-stage architecture beginning with audio extraction via FFmpeg and high-fidelity transcription using Whisper. To handle the context window constraints of LLMs, we employ a chunking strategy combined with abstractive summarization using Facebook's BART model.

A distinguishing feature of our work is the implementation of a closed-loop verification mechanism. Rather than relying solely on zero-shot generation, we utilize meta-llama/Llama-3.1-8B-Instruct to both generate questions and subsequently evaluate them for relevance and answerability against the source transcript. This self-supervised filtering process creates a curated dataset of high-quality QA pairs. Finally, we demonstrate how this synthetic dataset can be used to fine-tune the Llama model using Low-Rank Adaptation (LoRA), resulting in a specialized model that produces superior educational content with significantly lower computational overhead than full model training.