A LoRA adapter for Qwen/Qwen3-VL-2B-Instruct that writes audio description for slides in recorded
lectures, for blind and low-vision students. For each moment in a lecture it decides whether a
description is needed and, if so, writes one that fits the pause in the lecturer's speech.
Training code, configuration and the rule set it was trained against are at https://github.com/psychias/ad_for_edu.
The adapter is trained on the AD4Edu corpus, which pairs moments from recorded lectures with reference descriptions written against a 45-rule standard. That standard was curated from five sources of professional audio description guidance, including WCAG 2.2 and the DCMP Description Key. Of its 45 rules, 14 are mechanically checkable and 17 are evaluated by a judge.
The adapter reads no image. The visual reaches it as text: the slide OCR, a written summary of what is on screen, the transcript window and the length of the pause that follows. It returns a JSON object that either carries a description or declines to describe the moment, with a reason. Declining matters as much as describing: a listener who already has the information from the lecturer's words does not need it a second time.
Qwen/Qwen3-VL-2B-Instruct, pinned at revision 89644892e4d85e24eaac8bacfd4f463576704203Generating audio description for slide-based lecture recordings, one moment at a time, given the keyframes, the slide text, the surrounding transcript and the available pause.
The pauses in a real lecture are short. In the corpus the available pause has a median of 0.5 seconds and a 90th percentile of 1.6 seconds, so most moments allow one brief clause at most. A deployment has to decide what to do when the description does not fit, by pausing playback, shortening the text or staying silent.
The 2B multimodal supervised adapter is the one deployed in the offline macOS player at https://github.com/psychias/blv_mediaplayer, which prepares a whole lecture and speaks the descriptions through synthesised speech. The same interface works for any of these adapters.
from peft import PeftModel
from transformers import AutoModelForImageTextToText, AutoProcessor
BASE = "Qwen/Qwen3-VL-2B-Instruct"
REV = "89644892e4d85e24eaac8bacfd4f463576704203"
model = AutoModelForImageTextToText.from_pretrained(
BASE, revision=REV, dtype="bfloat16", device_map="auto"
)
processor = AutoProcessor.from_pretrained(BASE, revision=REV)
# This adapter was trained on top of the supervised adapter for the same row, so load
# that one first and merge it. Applying this adapter to the raw base model is wrong.
#
# Note: the seed0/ref/ folder inside this repo is NOT that parent. It is the trainer's
# reference adapter, whose lora_B tensors are all zero, so it changes nothing. Use the
# repo named below.
model = PeftModel.from_pretrained(model, "Psychias/ad4edu-qwen3vl-2b-textonly-sft", subfolder="seed0")
model = model.merge_and_unload()
# Now apply this adapter.
model = PeftModel.from_pretrained(model, "Psychias/ad4edu-qwen3vl-2b-textonly-r3-dpo", subfolder="seed0")
The adapters live in per-seed subfolders, so the subfolder argument is required. The Qwen3-VL processor needs torchvision, which is not a dependency of transformers:
pip install torch torchvision transformers peft accelerate
The prompt format matters. The adapter was trained on a fixed layout and will degrade if the fields
are renamed or reordered. The system prompt below is reproduced from
src/ad4edu/training/build_sft.py in https://github.com/psychias/ad_for_edu, which is the
authoritative copy:
You are an audio describer for slide-based lecture videos, writing for blind and low-vision learners. For each lecture moment you receive the on-screen visuals (keyframe images and slide OCR text), the lecturer's speech around the moment, the moment type, and the length of the pause available.
Follow the operative standard:
- Redundancy gate: describe on-screen content ONLY to the extent the lecturer's speech does not already convey it. If the speech already carries the content, suppress (do not describe).
- Fit the pause: keep the description within what the available pause allows.
- Be faithful: describe only what is actually visible; never invent content.
- Style: present tense, active voice, third person; concise; no meta-language ("the slide shows", "an image of").
Output ONLY a JSON object: {"emit": <true|false>, "ad_text": <string or null>, "rung": <1-4 or null>, "rationale": <string>}. Use emit=false with ad_text=null when the moment should not be described; give the reason for suppressing in rationale.
The user turn carries labelled lines, one per field:
Moment type: chart
Lecturer said (+/-8s): <transcript window around the moment>
On-screen text (OCR): <slide text>
What is on screen: <written summary of the visual>
Pause available after the moment: 2.5s
No image is attached.
Psychias/AD4Edu-SFT for the supervised stage and Psychias/AD4Edu-Preferences (train_prefs,
2,261 pairs) for the preference stage.
Both the corpus and the preference pairs are private. Every record derives from copyrighted lecture video, which is not redistributed. This adapter contains no video, no frame and no transcript.
Two stages. The supervised adapter for this row is merged into the base weights, which makes the supervised model the reference policy for the preference step. A fresh LoRA is then trained with Direct Preference Optimisation for 2 epochs at learning rate 1.5e-5, beta 0.1, with an auxiliary supervised term weighted 0.1, for 686 steps. A holdout of 488 pairs covering 7 whole lectures is kept out of training, so no lecture appears on both sides.
q_proj, k_proj, v_proj, o_proj516 held-out moments, on a course-level split so no lecture appears in both training and test. The scores in the table are averaged over seeds. They come from forced decoding, where the assistant turn is prefilled so that every system produces a description, so these columns score the text and not the decision to describe or stay silent.
chrF, BERTScore and LLM-AD-Eval are reference-based and are taken over three reference descriptions. BERTScore is baseline-rescaled, with the raw F1 in parentheses where the paper reports it. LLM-AD-Eval is given for two judges, GPT-3.5-turbo and Llama-2. CLIPScore and the two AD4Edu-Eval columns are reference-free. AD4Edu-Eval scores compliance with the 45-rule standard: the mechanical mode runs the deterministic kernel alone, and the local mode adds the inference and embedding based checks.
The rows below are the five published adapters together with the paper's no-model control. The paper's own table covers 23 trained systems, of which these five are a subset.
| system | chrF | BERTScore (raw) | CLIPScore | LLM-AD-Eval (GPT-3.5 / Llama-2) | AD4Edu-Eval mech | AD4Edu-Eval local |
|---|---|---|---|---|---|---|
| ad4edu-qwen3vl-8b-sft | 0.352 | 0.528 (0.885) | 0.656 | 0.666 / 0.743 | 0.750 | 0.743 |
| ad4edu-qwen3vl-2b-sft | 0.328 | 0.514 (0.882) | 0.663 | 0.615 / 0.737 | 0.778 | 0.768 |
| ad4edu-qwen3vl-8b-textonly-r3-dpo | 0.321 | 0.473 | 0.683 | 0.687 / 0.745 | 0.745 | 0.785 |
| ad4edu-qwen3vl-2b-r3-dpo | 0.314 | 0.414 | 0.775 | 0.722 / 0.742 | 0.630 | 0.664 |
| ad4edu-qwen3vl-2b-textonly-r3-dpo (this model) | 0.301 | 0.464 | 0.677 | 0.655 / 0.740 | 0.756 | 0.791 |
| slide-title readout, no model | 0.152 | 0.340 (0.840) | 0.735 | 0.220 / 0.688 | 0.532 | 0.501 |
Across that full table no single configuration leads on every metric. Among the supervised rows the multimodal models take the highest chrF and the highest LLM-AD-Eval, while the text-only models take the highest compliance, 0.813 to 0.858 against 0.750 to 0.805 for their multimodal counterparts.
A LoRA adapter over a Qwen3-VL decoder. The objective is next-token prediction of a JSON object holding the describe or suppress decision, the description text, a placement rung and a short reason. The decision and the text are trained as one output, because the benchmark scores the text.
One NVIDIA RTX 3090, 24 GB, per run, on an eight-GPU Linux node, with PyTorch, PEFT and TRL.
A paper describing the benchmark and these models is in preparation. Until it appears, cite the repository:
@software{ad4edu,
author = {Psychias, Stylianos},
title = {AD4Edu: audio description for slide-based lecture recordings},
url = {https://github.com/psychias/ad_for_edu},
year = {2026}
}
Stylianos Psychias, University of Zurich. Questions and problem reports are best filed as issues at https://github.com/psychias/ad_for_edu.
seed0/adapter_model.safetensors 26 MBseed0/ref/adapter_model.safetensors 26 MBseed0/training_args.bin 5.9 kBQwen/Qwen3-VL-2B-Instruct