paper-with-me

홈 › Papers

Improving BM25 Code Retrieval Under Fixed Generic Tokenization: Adaptive q-Log Odds as a Drop-In BM25 Fix

2026-05-18 · Santosh Kumar Radha, Oktay Goktas arxiv

In retrieval-augmented coding, failures often begin when the relevant file is absent from the retrieved context. Under frozen generic tokenization, where a BM25 index has been built by a search system whose analyzer the practitioner does not control, this failure is routine: BM25's logarithmic RSJ-odds IDF under-separates the identifier tail that distinguishes one function from another. We replace the outer logarithm of the Robertson-Spärck-Jones odds with a q-logarithm. At q=1 the transform recovers BM25 exactly by L'Hôpital's rule, and for q<1 it is a Box-Cox transform of the RSJ odds with lambda = 1-q. On CoIR CodeSearchNet Go (182K documents), oracle-tuned NDCG@10 rises from 0.2575 to 0.4874 (absolute +0.2299; +89.3% relative; zero sign reversals in 10,000 paired-bootstrap resamples, reported as p <= 10^-4). The effect is graded across code languages and is near-zero on BEIR text. A one-parameter closed form estimates a corpus-level q from hapax density and stays near q=1 on corpora where BM25 is already optimal. The index-time cost is a single pass over the sparse score matrix and query latency is unchanged. A tokenizer ablation shows that identifier-aware tokenization largely removes the incremental gain from q-IDF.

📄 PDF Abstract BibTeX arXiv:2605.18561

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Beyond Fixed Frames: Dynamic Character-Aligned Speech Tokenization

2026-01-30 · Luca Della Libera, Cem Subakan, Mirco Ravanelli arxiv

Neural audio codecs are at the core of modern conversational speech technologies, converting continuous speech into sequences of discrete tokens that can be processed by LLMs. However, existing codecs typically operate a…

One Trajectory, One Token: Grounded Video Tokenization via Panoptic Sub-object Trajectory

2025-05-29 · Chenhao Zheng, Jieyu Zhang, Mohammadreza Salehi, Ziqi Gao 외

Effective video tokenization is critical for scaling transformer models for long videos. Current approaches tokenize videos using space-time patches, leading to excessive tokens and computational inefficiencies. The best…

Contrastive LearningText RetrievalToken ReductionVideo-Text Retrieval+1

Zero-shot sketch-based remote sensing image retrieval based on multi-level and attention-guided tokenization

2024-02-03 · Bo Yang, Chen Wang, Xiaoshuang Ma, Beiping Song 외

Effectively and efficiently retrieving images from remote sensing databases is a critical challenge in the realm of remote sensing big data. Utilizing hand-drawn sketches as retrieval inputs offers intuitive and user-fri…

Cross-Modal RetrievalImage RetrievalRetrievalZero-Shot Learning

DNACHUNKER: Learnable Tokenization for DNA Language Models

2026-01-06 · Taewon Kim, Jihwan Shin, Hyomin Kim, Youngmok Jung 외 arxiv

DNA language models are increasingly used to represent genomic sequence, yet their effectiveness depends critically on how raw nucleotides are converted into model inputs. Unlike natural language, DNA offers no canonical…

Beat-Synchronous Tokenization for ECG Transformers

2026-08-31 · Ahmed Sameh, Nolan Wilson, Max Enderlein, Yogatheesan Varatharajah arxiv

Transformer-based electrocardiogram (ECG) models commonly tokenize waveforms into fixed temporal patches. Though convenient, fixed patching can split heartbeat structures across token boundaries. We study beat-synchronou…