Skip to content

fix: rerankers crash on video QA tasks - #5777

Merged
Samoed merged 2 commits into
embeddings-benchmark:mainfrom
AdnanElAssadi:fix/cross-encoder-video-queries
Oct 25, 2026
Merged

Samoed merged 2 commits into
embeddings-benchmark:mainfrom
AdnanElAssadi:fix/cross-encoder-video-queries

Conversation

@AdnanElAssadi

@AdnanElAssadi AdnanElAssadi commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Rerankers crash on the video QA tasks (EgoSchemaVideoCentricQA, OmniVideoBenchVideoCentricQA) with ArrowInvalid: offset overflow while concatenating arrays.

To rerank, mteb pairs each question with each of its answer options, so every question is repeated once per option. The questions are then prepared for the model, and that step copies each repeated row, including the question's video. On EgoSchema that is 2036 copies of the videos, more than Arrow allows in one column.

This prepares each question once and repeats it afterwards, so nothing is copied. It adds an indices argument to create_dataloader for that. The corpus side is unchanged.

Qwen3-VL-Reranker-2B:

Task main This PR
EgoSchemaVideoCentricQA (32-question slice) crash 0.75
OmniVideoBenchVideoCentricQA (32-question slice) crash runs, but needs a smaller batch size than the default
XModBenchT2VReranking 0.53125 0.53125 (identical)

ms-marco-MiniLM-L6-v2 on AskUbuntuDupQuestions also gives identical scores (0.55516).

@AdnanElAssadi AdnanElAssadi changed the title fix: cross-encoders crash on video QA tasks fix: rerankers crash on video QA tasks Oct 25, 2026

@Samoed Samoed left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I updated implementation to not add extra parameters to create_dataloader

@AdnanElAssadi

Copy link
Copy Markdown
Contributor Author

I updated implementation to not add extra parameters to create_dataloader

looks good, we can merge?

@Samoed
Samoed merged commit 8d9a84c into embeddings-benchmark:main Oct 25, 2026
14 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants