← Back to Leaderboard
Tshuyansy

shuyansy/TGR-Reliance

HF Paper ↗

VideoQA benchmark and training toolkit for testing reliance on temporal evidence

AI BenchmarkQuickstart ↓
Engineering Health (Methodology)
B+ · 67/100
Maintenance Activity
● Updated today
Latest Release
Rolling commits (main)
Commercial License Check
Apache-2.0 · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption1/25
Release Cadence11/20
License Clarity20/20
GPUCLI
Total Stars
★ 33
24h Growth
+29
7d Growth
+33
Forks
0

GitHub Star History

Tracked from daily D1 telemetry snapshots. Hover any data point for exact daily star counts.

shuyansy/TGR-Reliance Star History (2026-11-24 - 2026-12-01) DAILY STAR HISTORY (8-DAY D1 TELEMETRY) +32 in 7d · avg +5/day 37 19 0 2026-11-24: ★ 12026-11-25: ★ 42026-11-26: ★ 42026-11-27: ★ 42026-11-28: ★ 42026-11-29: ★ 42026-11-30: ★ 42026-12-01: ★ 33 ★ 33 11-24 11-27 12-01

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

TGR-Reliance separates video inference, reliance scoring, and model training. evaluation/eval_relianeedle.py takes ReliaNeedle JSON annotations and MP4 files, configures the model, frame sampler, and prompt, and writes per-run JSONL. evaluation/compute_regap.py aggregates those results separately, so scoring can be rerun on saved outputs without launching model inference again.

The evaluation stack combines vLLM for inference, PyTorch and Transformers for model execution and integration, and video/image dependencies including decord, OpenCV, torchvision, and Pillow. Model adaptation is explicit: use --system and --suffix to supply prompting and adjust evaluation/utils/parsing.py for the model's answer and span syntax. The training path is separate, with LLaMA-Factory for SFT and verl for GRPO.

Key Capabilities & Differentiators

ReliaNeedle includes 725 questions whose answers require evidence within an annotated time span. ReGAP measures reliance on the predicted span relative to random frames; R@0.3 is the share of predictions with temporal IoU of at least 0.3 against the evidence annotation. The trained Qwen3-VL-8B reaches ReGAP 1.225, 64.6% accuracy and 75.7% R@0.3. The trained Qwen2.5-VL-7B records 1.147, 60.8%, and 81.1%, respectively.

For training, RelyGen proposes candidate evidence spans for VideoQA pairs and keeps samples only when both judges answer correctly from the span alone and fail after its removal. This process yields the 20,000-sample EviCe dataset. The single-turn recipe fine-tunes Qwen2.5-VL-7B and Qwen3-VL-8B on EviCe, then applies GRPO with temporal IoU as the sole reward. A separate multi-turn implementation builds on Video-o3.

Trade-offs & Limitations

Use ReGAP alongside accuracy and temporal localization, not as their replacement. On ReliaNeedle, Video-o3 has higher answer accuracy than the trained Qwen3-VL-8B (67.3% vs. 64.6%), despite lower ReGAP (0.611 vs. 1.225). The trained Qwen2.5-VL-7B achieves higher R@0.3 than the trained Qwen3-VL-8B despite lower ReGAP. Which model is preferable depends on whether the priority is answer correctness, localization, or reliance on the located evidence.

The reliance comparison adds inference work and is sensitive to frame sampling, prompts, and parsing. The supplied base and trained Qwen2.5-VL examples change both sampler and prompt, so reproduce those settings for a leaderboard comparison, but match them where possible when isolating the effect of training. EviCe's evidence labels are operational: they reflect the two judges' behavior under ablation, not proof that no other segment can support an answer.

Hardware & Deployment Guide

The evaluation path is a local GPU CLI workflow. It requires Python 3.10 or newer and specifies vllm==0.11.0, transformers==4.57.1, and torch==2.8.0, plus torchvision, decord, opencv-python, Pillow, and NumPy. Fetch sy1998/ReliaNeedle from Hugging Face and pass relianeedle.json via --annotations and the dataset directory via --video_root. Make the selected model weights available to vLLM; the evaluation commands do not require a hosted inference API.

Check GPU driver compatibility with the pinned runtime, then pilot the exact model and frame sampler before a full run. VRAM and throughput depend on checkpoint size, visual token load, and concurrency; no fixed hardware minimum is specified. Training adds LLaMA-Factory, verl, and the separately downloaded EviCe dataset, with commands under training/README.md. There is no listed GitHub release; pin a repository revision, checkpoint revisions, and dataset revisions for repeatable runs.

Evidence reliance: ReGAP tests the contribution of the model's predicted span against random frames; a score of 0 indicates no advantage over that baseline.
Benchmark design: ReliaNeedle pairs 725 needle-in-a-haystack VideoQA questions with evidence spans and reports ReGAP, answer accuracy, and temporal recall at IoU ≥ 0.3.
Evaluation interfaces: evaluation/eval_relianeedle.py writes JSONL results, which evaluation/compute_regap.py aggregates separately.
Model integration: Qwen2.5-VL-7B and Qwen3-VL-8B examples exercise grid, qwen25, and qwen3 samplers and the tga and train prompt presets.
Evidence certification: RelyGen constructs EviCe's 20,000 VideoQA samples using two judges and both span-only and span-deletion tests.
Training: LLaMA-Factory handles supervised fine-tuning before verl GRPO with a temporal IoU-only reward; training/multiturn/ covers the Video-o3 tool-calling variant.
Best For

Multimodal research and model QA teams with GPU capacity that need to measure whether a VideoQA model uses the evidence it locates, or reproduce evidence-certified SFT followed by grounding-only GRPO.

Skip If

You only need a generic answer-accuracy test, require turnkey evaluation for arbitrary inference backends, or need a production video-serving system rather than a research benchmark.

Reviewed on 2026-12-01 · Grounded in GitHub README, root file tree & releasesMethodologyReport inaccuracy

Quick Start & Installation

GPUCLI
hf download sy1998/ReliaNeedle --repo-type dataset --local-dir data/ReliaNeedle

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/shuyansy/TGR-Reliance.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

shuyansy/TGR-Reliance Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about TGR-Reliance

How do I integrate a model with a different output format?

Start with evaluation/eval_relianeedle.py, supply a custom prompt through --system or --suffix, and adapt evaluation/utils/parsing.py to extract the answer and temporal span. Validate the resulting JSONL before scoring it with evaluation/compute_regap.py. The supplied examples use vLLM and Qwen-VL; adapting prompts and parsing alone does not establish support for another inference backend.

How should I size GPU memory and evaluation runtime?

No fixed VRAM minimum is specified. Profile the target checkpoint on a small video subset with the intended sampling settings before scaling up. Model size, sampled frames and resulting visual tokens, and inference concurrency all affect memory use. The span and random-frame comparisons also make reliance evaluation more expensive than a single answer-only pass. Size SFT and GRPO separately from evaluation.

Can we self-host it for commercial evaluation?

The repository code is Apache-2.0 and includes THIRD_PARTY_NOTICES.md. Commercial self-hosting requires checking the applicable terms for dependencies, checkpoints, and datasets, including video rights where relevant. The code license does not automatically grant commercial or redistribution rights for separately downloaded assets.

When is ReGAP more useful than accuracy or temporal IoU alone?

Use ReGAP when you need to distinguish a plausible timestamp from a span that actually helps the model answer. Keep accuracy for answer quality and R@0.3 for overlap with annotated evidence. Compare models under matched sampling, prompting, and parsing where possible; out-of-the-box runs with different configurations are useful integration baselines, not clean ablations.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining shuyansy/TGR-Reliance? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature shuyansy/TGR-Reliance on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare