VideoJev: Why Video LLMs Should Score, Not Write

1 Video Models Don’t Need to Write Answers Token by Token
On the same 1,549 LVBench multiple-choice video questions, Qwen3.5-4B Thinking spends 144.9 seconds per question on average, while VideoJev-4B takes 1.12 seconds. The gap comes from how answers are produced rather than model size: standard multimodal large language models (MLLMs) write answers one token at a time, whereas VideoJev turns both finding event timestamps and answering multiple-choice video questions into candidate scoring. In a single pass through the model, it reads internal representations at the candidate and decision markers and feeds them to one shared scoring layer, without generating any answer tokens.
- Event timestamps: slice the video into time bins as candidates, judge each bin independently, and pick the single continuous stretch of video with the highest combined score.
- Multiple-choice QA: treat the given answer options as candidates and use softmax (which turns raw scores into probabilities summing to 1) to pick the highest-probability choice.
- Shared prefix: compute the video prefix (the video frame data at the start of the input) once, then answer follow-up questions one by one (Cached) or all together (Joint).
Paper: VideoJev (arXiv 2610.18615) (2026/10).
2 Why Small Decisions in Video Shouldn’t Be Generated
Video understanding relies heavily on two structured ‘small decisions’: temporal grounding takes an event description and finds its start and end timestamps in the video, while multiple-choice Video QA picks one answer from options like A through D.
Both answers are tiny, yet current MLLMs still generate them token by token. The paper highlights three bottlenecks with that approach:
- Generation is expensive: producing a single option letter or a few timestamp digits can still take over a hundred seconds in long-reasoning mode (as in the opening LVBench comparison; full numbers in Table 2 below).
- Discriminative classifiers are fast but rigid: traditional classifiers only handle fixed label sets and lack an LLM’s ability to match arbitrary natural-language descriptions.
- Videos are often queried repeatedly: recomputing the entire video’s visual input for every single question wastes compute.
Temporal grounding adds a structural requirement: the output must be one contiguous time interval rather than scattered seconds. The next section’s binning and decoding steps are built around that rule.
3 How One Scoring Head Handles Both Grounding and QA
3.1 Input Layout and Scoring Head: One Video Prefix, Two Readout Positions
Both tasks share the upper half of the pipeline: the model sends each candidate’s hidden state into Eq. (1) to produce a raw score (a logit, a real-valued score before probability conversion), and training and inference both branch from that same . Temporal grounding applies sigmoid (squashing each real score into a 0-to-1 probability) independently to each bin, trained with BCE (binary cross-entropy) and Soft IoU (a differentiable version of IoU, which measures overlap between predicted and ground-truth intervals). Multiple-choice QA applies softmax across all options and trains with cross-entropy (CE).
| Stage | Temporal Grounding | Multiple-Choice QA |
|---|---|---|
| Shared | Hidden state -> Eq. (1) -> score | Hidden state -> Eq. (1) -> score |
| Training | -> BCE (Eq. 2) + Soft IoU (Eq. 3) | softmax -> cross-entropy (Eq. 5) |
| Inference | Subtract threshold -> max-sum segment (Eq. 4) | Pick highest-probability option |

A single forward pass reads the whole sequence, yet the model only extracts hidden states at two special marker positions: <|option_end|> at the end of each candidate, and <|decide|> at the very end of the question. For example, a 20-second video sampled at 4 fps yields 40 time candidates; the video prefix is computed once, and each question appends its own suffix:
[Video prefix: image tokens + timestamps] -> computed once
[Instruction] [Question] [Candidate 1 <|option_end|>] [Candidate 2 <|option_end|>] ... [Candidate 40 <|option_end|>] [<|decide|>] -> one per questionThe scoring head’s job is straightforward: map the question-level decision summary and each candidate into equal-length direction vectors, measure how closely their directions align (closer means higher score), scale the result, and add a baseline offset. Concretely, after reading <|decide|>’s hidden state and the -th <|option_end|> hidden state , Eq. (1) projects them to 512 dimensions with two separate linear projections and , normalizes both to unit vectors and , takes their dot product (cosine similarity in ), multiplies by a fixed factor of 10, and adds one learnable scalar bias to get candidate ’s logit :
Take a 2-dimensional vector example: suppose and ; their directions align closely with a cosine similarity of 0.96, giving when . The paper does not explain why the scale is fixed at 10 or why vectors are unit-normalized; my guess is that scaling sharpens the softmax distribution. The architecture also trims the tail of the language backbone (the core language model): VideoJev removes the final-layer MLP (multi-layer perceptron) and replaces the vocabulary output head with this scoring head, which ablation (removing a component to measure score impact) shows changes scores by under 0.2 points. The bias only matters for temporal grounding’s sigmoid and cancels out completely in QA’s softmax (proof in Further Reading below).
A standard LLM’s final layer runs attention -> MLP -> hidden state -> output head -> full-vocabulary logits -> next token. VideoJev instead reads before the final MLP and replaces the output head with the Eq. (1) scorer. The paper cites FreeRet to state that pre-MLP features work better for semantic similarity without offering its own analysis; my guess is that the final MLP mainly serves next-token prediction and becomes redundant once generation is removed.
Table 7’s ablation confirms the impact is tiny: removing the final MLP averages 65.3 (temporal grounding) and 74.3 (QA), compared to 65.1 and 74.1 when keeping it.

An LLM’s input is just a sequence of vectors: text tokens look up embedding vectors and image tokens come from the vision encoder, and once inside the language model they are treated identically. Timestamps are text tokens interleaved beside every pair of frames to mark the seconds. Temporal grounding candidates are not chosen by the model; they are sliced sequentially from the video at two frames per candidate (), independent of the query text. Each candidate label uses the two frames’ midpoint rounded to one decimal place, such as formatted as 12.1s, while labels and boundaries still use unrounded timestamps. The paper does not specify the exact prefix layout beyond saying candidate timestamp strings are copied from the video prefix; my guess is that VideoJev follows the Qwen convention of interleaving one timestamp per frame group.
After a forward pass, every position outputs a vector of the backbone’s hidden dimension (the paper does not report ), yet the model only reads <|option_end|> and <|decide|> positions and ignores video, instruction, and question outputs. Under causal attention, sees the video, question, and earlier candidates, while at the end sees everything. The paper does not explain how a candidate attends to its matching frames; my guess is that matching timestamp strings in the candidate and video prefix let attention align them.
| Step | Action | Illustrative Seventh-Bin Example |
|---|---|---|
| 1 | Read hidden states | and |
| 2 | Project to 512-dim unit vectors | and (one per question, one per bin) |
| 3 | Dot product x 10 + for logit | , assume 2.2 |
| 4 | Convert to probability via sigmoid | |
| 5 | Select one high contiguous segment via Eq. (4) | Assume bins six through 9 (independent of the main-text 10-bin decoding example) |
| 6 | Convert to seconds | Left edge of the sixth bin to right edge of the ninth bin |
3.2 Temporal Grounding in Four Steps: Bins, BCE, Soft IoU, and Decoding
Temporal grounding turns a continuous video into scorable candidates in four steps: binning, per-bin yes/no classification, whole-interval overlap loss, and contiguous decoding. Step 1 is binning and labeling: the backbone merges every two adjacent frames (twofold temporal compression) into one bin. At evaluation, videos are sampled at 4 fps, making each bin about 0.5 seconds; a 20-second video has 80 frames, or bins, named by their midpoint (e.g., <12.1s>). If bin ’s time falls inside the union of annotated event intervals , its label is 1, otherwise 0:
Figure 2(a) confirms the 4 fps slicing: two adjacent frames sit at 00:12.00 and 00:12.25, 0.25 seconds apart. Part 3.1 of the paper leaves an unresolved ambiguity, stating that training videos are sampled at 2 fps without specifying per-task settings, which admits two readings:
- Reading (a): temporal grounding also trains at 2 fps, meaning ~1-second bins in training vs. 0.5-second bins at test time, a width mismatch the paper does not discuss.
- Reading (b): 2 fps refers to QA or general settings while grounding trains at 4 fps, keeping bin widths consistent.
Step 2 is per-bin yes/no scoring (BCE, Eq. 2): because an event spans multiple bins that must all be able to say ‘yes’ at once, each bin gets its own independent sigmoid probability , and binary cross-entropy penalizes each bin before averaging across all bins:
BCE’s blind spot is that it judges each bin in isolation and never sees whole-interval coverage (temporal grounding is evaluated by IoU, predicted-vs-ground-truth overlap divided by union, averaged across queries as mIoU). Step 3 therefore adds differentiable Soft IoU (Eq. 3): is bin ’s duration (canceling out when bins have equal width), the numerator is the intersection (only event bins with contribute), and the denominator is the union (event bins count in full, while non-event bins add whatever probability the model over-predicted):
Take a 10-bin illustrative example (we will reuse these summary figures for decoding and total loss without listing every individual bin): suppose ground truth spans the sixth through bin 9 (four bins), and the model assigns probabilities between 0.6 and 0.9 to those four bins (the last one is 0.6), summing to a numerator of 3.2. The denominator adds those four ground-truth bins to the over-predicted probabilities outside the event for a total of 5.0, giving Soft IoU 0.64 and loss 0.36 (the same 10 bins have a per-bin BCE loss of about 0.21). In practice this term matters: Table 6 shows adding Soft IoU lifts average mIoU across three grounding benchmarks from 60.7 to 65.3 (+4.6).

Step 4 is decoding one contiguous interval (Eq. 4). The intuition is simple: bins above a threshold earn positive points, bins below lose points, and we pick the contiguous span with the highest total score. Concretely, convert the probability threshold into logit space as , subtract it from each bin’s logit to get weight ( is equivalent to ), and run Kadane’s algorithm (a single linear scan that finds the maximum-sum contiguous subarray) to obtain , outputting the left edge of bin to the right edge of bin :
Continuing the 10-bin illustrative example (2 seconds per bin): ground truth is the sixth through bin 9 (10 to 18 seconds), but the adjacent fifth bin happens to exceed the 0.25 threshold (earning positive weight), so the maximum-sum subarray selects the fifth through bin 9 with a sum of about 10.83 and outputs 8 to 18 seconds. Against the 10 to 18 seconds ground truth, Hard IoU is 0.8.
Because the answer is a continuous span rather than a fixed set of options, discretizing into time bins lets the model score each bin. BCE grades a row of yes/no questions: when the label is 1, lower probability costs more (); when the label is 0, higher probability costs more (). Each bin must use an independent sigmoid so multiple event bins can be ‘yes’ together instead of competing under softmax. In the 10-bin example, the average penalty across all bins is BCE (~0.21), and the ninth bin — even though 0.6 is above 0.5 — lacks confidence and incurs a 0.51 penalty, the highest of any bin.
One common trap in Soft IoU: bins outside the event still have model probabilities ; they only vanish from the intersection because multiplies them to 0. They remain in the union denominator as over-predicted mass that lowers IoU. Conversely, inside the event makes , which can create the illusion that only event bins carry probabilities.
On the in Eq. (4): the real model first computes an unbounded real logit via Eq. (1), then converts it to a probability in with sigmoid. Useful landmarks: gives , gives , and corresponds to threshold . Because Eq. (4)’s already subtracts the threshold and is equivalent to , decoding works directly on without converting back to probabilities. Since the paper gives no real values, our illustrative examples pick first and invert via logit.
A plain threshold only tells you which bins pass; it does not say how to assemble them into one contiguous span. Eq. (4) also has a threshold ; the real distinction is that threshold value and segment-selection rule are two separate choices.
Consider another illustrative set of probabilities (unrelated to the 10-bin decoding example, using point-sum summaries): all three rules use threshold 0.7, the fifth bin is a brief dip inside the event, and the tenth bin is a stray false positive far away.
- Rule A (leftmost to rightmost): stretched all the way to the tenth-bin false positive, dropping IoU to 0.75.
- Rule B (longest contiguous run): split in half by the fifth-bin dip so only half survives, dropping IoU to 0.50.
- Rule C (Eq. 4 maximum sum): convert each bin to . The fifth bin only loses 0.44 while both sides add 8.24 (the third bin and bin 4 add 3.45, the sixth through bin 8 add 4.80), so bridging the dip pays off for a third-through-bin-8 total of 7.80. The tenth bin adds only 0.25 after crossing the ninth bin’s -3.04 penalty, so it is rejected. Result: exact match, IoU 1.00.
| Rule | Method | Weakness |
|---|---|---|
| A: Leftmost to rightmost | Span from first to last bin above threshold | One distant false positive stretches the whole interval |
| B: Longest contiguous run | Take the longest unbroken run above threshold | A single mid-event dip splits the event in two |
| D: Expand from peak | Start at highest-probability bin and expand until below threshold | Stops at any dip; fails completely if the peak is a false positive |
| C: Maximum sum (Eq. 4) | Add/subtract weights and find max-sum contiguous span | Needs a threshold; too low a threshold lets barely-passing bins stretch the span |
This comparison of decoding rules is general modeling knowledge rather than paper content: when probabilities are clean and events are simple, Rules A or B are easy to debug; when scores jitter with dips or false positives, Rule C balances trade-offs (all four output a single interval). Note that the paper never benchmarks Eq. (4) against simple thresholding and never compares threshold 0.7 vs. 0.25, so its experiments alone do not prove this decoding rule beats simple thresholds on these benchmarks.
3.3 Multiple-Choice QA and Task Comparison: Competing Options
Multiple-choice QA reuses the exact same input layout, readout positions, and Eq. (1) scoring head, simply swapping the suffix candidates for the question’s option text (4 or 5 options per training question instead of video bins). Because exactly one option is correct, Eq. (5) applies softmax so the option probabilities sum to 1 and compete, then takes the negative log probability of the correct option as cross-entropy loss:
Pushing up the right option’s score automatically pushes down the others. Using Figure 2(c)’s three illustrative probabilities (0.72, 0.18, 0.10, with scores back-computed), the loss gap depending on which option is correct is stark; at inference time, options stay in their original order and the model picks the highest-probability choice:
| If Correct Answer Is | Assigned Probability | Cross-Entropy Loss |
|---|---|---|
| A | 0.72 | 0.33 |
| B | 0.18 | 1.71 |
| C | 0.10 | 2.30 |
To keep the model from memorizing option positions, training applies a reproducible, label-independent shuffle to eligible questions and updates the target label accordingly. For example, if the answer was A and shuffling moves it to C, the label updates to C. Questions whose wording explicitly references option positions or prior conversation turns keep their original order to preserve meaning.
| Component | Temporal Grounding | Multiple-Choice QA |
|---|---|---|
| Candidates | Time bins (sliced from video) | Option text from the question |
| Candidate count | Frames (e.g., 40) | 4 or 5 (training data) |
| Scoring | Eq. (1), shared head | Eq. (1), shared head |
| Probabilities | sigmoid (independent bins) | softmax (competing options) |
| Loss | BCE + Soft IoU | cross-entropy |
| Output | Contiguous segment via Eq. (4) | Highest-probability option |
4 Multi-Question Inference and the Two-Stage Training Recipe
4.1 Cached vs. Joint Inference: Sequential Arrival vs. All-at-Once
Since one video often fields many questions, VideoJev computes the video prefix once; the difference lies in how question suffixes attach. Cached runs one forward pass (prefill) on the video prefix, caches it, and branches off to score each incoming question independently, fitting scenarios where questions arrive over time. Joint appends every question (prompt, candidates, and <|decide|>) behind the same prefix and scores them in one forward pass under standard causal attention (each position can only see itself and earlier tokens, never later ones). Joint requires all questions to be available upfront, and training uses this same concatenated layout.
| Currently Reading (Three-Question Example) | Cached Sees | Joint Sees |
|---|---|---|
| , | , | |
| , | , , | |
| , | , , , |
In Joint mode, later questions can see earlier questions’ prompts and options, but never any answers. The paper states it kept standard causal attention to preserve FlashAttention (a memory-saving, fast low-level attention kernel), without quantifying that trade-off; it also claims to have verified that no answer leakage occurs, without explaining how.
From basic systems intuition (the paper does not spell this out): Cached runs a new forward pass and re-reads the cached prefix for every additional question, whereas Joint amortizes that into one pass. More questions per video widen Joint’s advantage, while a single question sees no difference. Figure 3’s 4B curves show this split clearly.

4.2 Two-Stage Training: Same Quality, Lower Backbone Update Cost
Training runs in two stages, one epoch (full pass through that stage’s data) each; the vision encoder that reads frames and the merger (connector layer into the language model) stay frozen (weights never updated) throughout:
- Stage One (30% of videos): train only the new scoring head, using BCE for temporal grounding and CE for QA.
- Stage Two (70% of videos): unfreeze the language backbone and the token embeddings (input vectors) of the two new special tokens alongside the scoring head, adding Soft IoU with weight 2 for grounding while keeping CE for QA.
Plugging in the 10-bin illustrative example (BCE ~0.21, Soft IoU loss 0.36) gives a Stage Two grounding loss of ; the paper does not say how the weight of 2 was chosen.
The paper explains that warming up the scoring head first gives it a stable representation space (borrowing from multimodal projector alignment). My guess is that a randomly initialized head produces noisy gradients at first, which could disrupt pretrained weights if backpropagated straight into the backbone.
Table 8’s ablation delivers a pragmatic verdict: two-stage training does not win on quality. Two-stage averages 65.3 (grounding) and 74.3 (QA), while single-stage training on all videos reaches 65.4 and 74.7. The real reason for two stages is training cost: Stage One skips backbone updates, so the backbone only updates on 70% of videos. As for ‘potentially more stable’, the paper never verifies it. Full hyperparameters live in part 3.1 of the paper.

The paper never states whether the language backbone uses full-parameter fine-tuning or LoRA (low-rank adaptation, a memory-saving method that trains small add-on weights); neither ‘LoRA’ nor ‘adapter’ appears in the text. My guess is full fine-tuning based on three clues: first, backbone learning rates are 5e-6 (4B) and 2e-6 (35B-A3B), typical for full fine-tuning whereas LoRA usually runs one to two orders of magnitude higher (general practice); second, 4B uses DeepSpeed ZeRO-2 and 35B-A3B uses ZeRO-3, which shard optimizer states and gradients (with ZeRO-3 also sharding parameters) and are standard for full training; third, Appendix A.3’s autoregressive baseline also fine-tunes Qwen3.5-4B at 5e-6 while freezing only the vision encoder and merger. The paper never tests LoRA and never reports head-only scores after Stage One; Table 8’s single-stage run trains everything together.
| Component (Data-Flow Order) | Stage One | Stage Two |
|---|---|---|
| Vision encoder, merger | Frozen | Frozen |
| Language backbone | Frozen | Trained |
Token embeddings (<|option_end|>, <|decide|>) | Frozen | Trained |
| Scoring head | Trained | Trained |
- Language backbone: if full fine-tuning, all Transformer attention and MLP weights update (inference); whether the general vocabulary embedding table and 35B-A3B’s MoE (Mixture of Experts) router and experts all update is unspecified (the appendix only notes the router stays FP32 at inference), and the removed final-layer MLP sits off the forward path with no gradient (inference).
- Token embeddings:
<|option_end|>and<|decide|>each add one length- input vector initialized from pretrained<|im_end|>, frozen in Stage One and trained in Stage Two with an unspecified learning rate; only input embeddings are needed because the output head was replaced by the scorer (inference). - Scoring head: Eq. (1)’s and scalar (the fixed 10 is non-learnable), totaling about parameters across two linear layers. The paper omits ; if is 2,000-4,000 (typical for multi-billion models), that is roughly 2M-4M parameters, three orders of magnitude smaller than the 4B backbone. Weights initialize from a 0.005-std Gaussian with bias 0, using learning rates 3e-4 in Stage One and 1e-4 in Stage Two.
5 Results: Accuracy, Speed Breakdown, and Cached vs. Joint
5.1 Accuracy: Sweeps Same-Backbone Instruct, Trails 4B Thinking Slightly
Accuracy spans 7 benchmarks: average mIoU across 3 grounding benchmarks (3,363, 4,500, and 1,541 test queries) and average accuracy across 4 multiple-choice QA benchmarks (1,549, 2,700, 1,337, and 2,174 questions). Baselines come in two modes: Instruct outputs the answer directly, while Thinking generates a long reasoning trace first. On both the 4B dense model and the 35B-A3B Mixture-of-Experts (MoE) model, VideoJev beats same-backbone Instruct on both tasks; trailing 4B Thinking by 0.6 points on QA is the only loss, and Thinking pays over 100x the latency for it:
| Comparison | Grounding mIoU | QA Accuracy |
|---|---|---|
| 4B: VideoJev vs. same-backbone Instruct | 65.3 vs. 58.6 (+6.7) | 74.3 vs. 66.3 (+8.0) |
| 4B: vs. strongest open 4B grounding baseline TimeLens2-4B | 65.3 vs. 62.0 (+3.3) | — |
| 4B: vs. same-backbone Thinking | — | 74.3 vs. 74.9 (-0.6) |
| 35B-A3B: vs. same-backbone Instruct | 67.7 vs. 56.9 (+10.8) | 79.5 vs. 73.8 (+5.7) |
| 35B-A3B: vs. same-backbone Thinking | — | 79.5 vs. 78.8 (+0.7) |
5.2 Speed: ‘Over 100x Faster’ Depends Entirely on the Baseline
The table below reports average forward time per question (in seconds): grounding is measured on Charades test (3,363 queries across 1,313 videos), and QA on LVBench (1,549 questions across 103 videos). VideoJev is timed in Joint mode, while baselines share the video prefix and generate each answer separately:
| Task & Scale | VideoJev | Same-Backbone Instruct | Same-Backbone Thinking |
|---|---|---|---|
| Grounding 4B | 0.276 | 0.763 (2.8×) | — |
| Grounding 35B-A3B | 0.336 | 1.054 (3.1×) | — |
| QA 4B | 1.123 | 1.355 (1.2×) | 144.929 (129×) |
| QA 35B-A3B | 1.493 | 2.379 (1.6×) | 149.777 (100×) |
- The headline ‘over 100× faster’ compares against Thinking mode (129× and 100×).
- Against direct-answer Instruct, multiple-choice QA is only 1.2× and 1.6× faster (computed from Table 2 latencies).
- The 2.8× to 3.1× gain on temporal grounding is a fairer comparison, since generating timestamp strings inherently takes longer than reading scores.
One more condition applies: those headline latencies use Joint mode, which assumes every question is known upfront. In an interactive agent loop where questions arrive one by one, Cached inference is the realistic regime.
5.3 Cached vs. Joint: Batching Wins on 13 of 14 Test Pairs
Comparing Joint against Cached using the exact same trained model weights (checkpoint, Table 4): across 2 models × 7 benchmarks (14 pairs total), Joint actually scores higher on 13 of them. On 4B, Joint leads by 0.8 on grounding and 0.5 on QA; on 35B-A3B, it leads by 0.3 on grounding and 0.7 on QA. By contrast, an autoregressive (token-by-token) Direct baseline on LVBench (implementation details omitted here) drops from 60.0% under Cached to 58.7% under Joint, while VideoJev rises from 67.1% to 67.9%, showing Joint does not hurt accuracy.

6 Limitations and Unanswered Details in the Paper
Beyond the closed-world evaluation boundary noted earlier (pre-supplied questions, options, and queries, untested agent workflows in Future Work, and Joint-mode headline speeds), several implementation details remain unspecified:
- Grounding decoding edge cases: when every bin has a negative , the system falls back to the highest-probability bin, yet the paper never specifies what ’lightweight boundary post-processing’ does, how ‘smoothing window = 1’ smooths anything (my guess is window 1 means no smoothing), how was picked, or why simple thresholding was never compared.
- Multiple-choice shuffling details: the paper does not clarify whether option letters are re-indexed after shuffling (our A-to-C example assumes re-indexing, which is an inference) and does not report the pre-shuffle answer distribution.
- Other scattered gaps: why Eq. (1) fixes the scale at 10 and unit-normalizes, the trade-off of keeping standard causal attention (to preserve FlashAttention) and how non-leakage was verified, how Soft IoU weight 2 was chosen and whether two-stage training improves stability, the 2 fps training vs. 4 fps evaluation bin-width ambiguity, and whether backbone training is full fine-tuning or add-on low-rank weights (LoRA), the token-embedding learning rate, and whether 35B-A3B’s MoE router updates.
7 Three Takeaways You Can Reuse
Three portable lessons from VideoJev you can use when evaluating other video models or designing your own:
- Skip token generation for structured small decisions: pack time bins or answer options into one sequence, score them in one forward pass with a shared head, and compute the video prefix once. When questions arrive in a batch, Joint is both cheaper and slightly more accurate than Cached on 13 of 14 test pairs.
- Always ask ‘compared to what, and in which mode?’ on speed claims: VideoJev beats same-backbone Instruct across the board on accuracy, yet ‘over 100× faster’ is against Thinking mode; against Instruct QA it is 1.2× to 1.6×, and sequential agent queries must look at Cached rather than Joint.
- Align the training loss with the evaluation metric: use softmax for exclusive choices and sigmoid for independent bins; per-bin BCE misses whole-interval overlap, so adding Soft IoU adds 4.6 mIoU, paired with logit-space maximum-sum decoding.
8 Further Reading: Three Modeling Principles Beyond This Paper
8.1 Logits, Sigmoid, and Softmax: Independent Checks vs. Competing Choices
A logit is the model’s raw real-valued score; sigmoid and softmax both turn scores into probabilities, differing in whether candidates compete with each other. Viewed uniformly, sigmoid is just a two-class softmax with the second class fixed at 0: the first entry of is :
Because multiplying numerator and denominator by cancels out, adding a constant to every score leaves softmax completely unchanged, whereas for independent sigmoids it shifts the threshold. Suppose three options have base scores 9.00, 7.61, and 7.03 (score = base + ); changing from 0 to leaves the softmax column frozen while transforming the sigmoid column:
| Scores | softmax | sigmoid | |
|---|---|---|---|
| 0 | 9.00, 7.61, 7.03 | 72.0%, 17.9%, 10.0% (sum 100%) | 99.99%, 99.95%, 99.91% (sum ~300%) |
| -8 | 1.00, -0.39, -0.97 | 72.0%, 17.9%, 10.0% (sum 100%) | 73.1%, 40.4%, 27.5% (sum ~141%) |
The same holds in temporal grounding: suppose three bins have cosine similarities 0.9, 0.5, and 0.1 (base scores 9, 5, and 1). At all three exceed 0.5; shifting to moves their probabilities to 0.953, 0.269, and 0.007, leaving only the first bin above 0.5. Softmax implementations exploit this same shift invariance by subtracting the maximum score first to avoid exponential overflow:
e = exp(s - max(s))
p = e / sum(e)- Exactly one answer (single-label) -> softmax with cross-entropy; probabilities sum to 1 and compete.
- Independent yes/no per item (multi-label) -> sigmoid with BCE; probabilities need not sum to 1.
- Thresholding, summing, or fusing signals -> work directly in logit space, converting thresholds via .
- Bias or constant shift -> affects sigmoid only, never softmax.
The logit formula is simply the inverse of sigmoid: is the odds (ratio of happening to not happening), and taking its log gives log-odds. A model’s raw output behaves like log-odds because training through sigmoid and BCE forces it onto that scale. The name comes from logistic regression in statistics, and machine learning broadened it to mean raw pre-probability scores (general knowledge):
| Score | Probability | Odds | Log-Odds |
|---|---|---|---|
| -1.10 | 0.25 | 0.333 (1 to 3) | -1.10 |
| 0 | 0.50 | 1 | 0 |
| 1.0 | 0.731 | 2.718 | 1.0 |
| 2.2 | 0.900 | 9 (9 to 1) | 2.20 |
Softmax follows a different relation: , where . On the same illustrative scores , probabilities are about and log probabilities are about ; subtracting log probability from each score yields about 9.33 everywhere, which is why softmax is shift-invariant.
8.2 Why Per-Bin Correctness Does Not Equal Interval Quality
Summing per-bin penalties does not equal whole-interval quality. Suppose ground truth spans the third through bin 6 (4 bins): Model A misses 2 event bins (assigning 0.1), while Model B over-predicts 2 non-event bins (assigning 0.9), with identical penalties on all other bins. Both models have the exact same BCE of 0.54, yet their Hard IoU diverges:
| Metric | Model A: Misses 2 Bins | Model B: Over-Predicts 2 Bins |
|---|---|---|
| Penalty per wrong bin | ||
| BCE | 0.54 | 0.54 |
| Hard IoU |
BCE ties because every wrong bin costs the same; IoU splits because for a -bin event, missing bins gives while over-predicting bins gives , which is strictly larger, meaning misses hurt IoU more than extra bins. The fix is adding a differentiable surrogate loss for the global metric alongside the per-bin loss. VideoJev’s BCE + 2 x Soft IoU raises average mIoU from 60.7 to 65.3 (+4.6, Table 6 above).
8.3 Hard IoU vs. Soft IoU: Training Signal vs. Evaluation Metric
Hard IoU operates on final binary decisions (each bin is either in or out of the predicted span), dividing overlap length by union length and averaging across queries to get mIoU. It cannot be differentiated directly for training (general knowledge) because thresholding is a step function with gradient 0 almost everywhere, giving no smooth signal between 0.49 and 0.51. Soft IoU replaces binary decisions with continuous probabilities ; it matches Hard IoU whenever is strictly 0 or 1 and takes four lines of Python:
def soft_iou_loss(p, y, d):
inter = sum(d * p * y)
union = sum(d * (y + p * (1 - y)))
return 1 - inter / unionTraining Soft IoU and evaluation Hard IoU move in the same direction, yet their values can differ sharply. On the same 10-bin illustrative predictions (ground truth sixth through bin 9), three methods produce three distinct numbers:
| Method | Result | Meaning |
|---|---|---|
| Soft IoU (training) | IoU 0.64, loss 0.36 | Blends overlap and confidence |
| Hard IoU, threshold 0.5 | 1.00 | Predicted sixth through bin 9 match ground truth exactly |
| Hard IoU, Eq. (4) decoding () | 0.80 | Outputs fifth through bin 9 (8 to 18 seconds) |
In this example, a plain 0.5 threshold hits the exact span because of the threshold value (the fifth bin clears 0.25 but not 0.5) rather than the decoding rule; the paper does not compare thresholds. Soft IoU also penalizes correct bins whose confidence sits between 0.6 and 0.9, whereas Hard IoU only judges the final span, so the two correlate without being equal.






