Old and new document embeddings coexist during incremental gallery re-encoding. RELAY trains a new query encoder with a learned projection against the original gallery, then freezes both to train the new document encoder. The same query vector scores both document versions throughout a single re-encoding pass. After backfill, optional query refinement drops the projection and reuses the stored document vectors. Across three text-to-image retrieval upgrades on COCO and Flickr30K, RELAY improves Recall@1 on untouched galleries by 8.66-10.23 percentage points over the original systems. For direct re-encoding, RELAY ranks first in both Qwen-to-Qwen upgrades and second in CLIP-to-Qwen by area under the Recall@1 curve, under both native scoring and matched calibration. With embeddings held fixed, calibrating scores separately for each document version can reduce drops in Recall@1 during backfill and change which method achieves the highest backfill AUC. After query refinement, final Recall@1 is within 0.97 percentage points of conventional joint training in all three upgrades.
Figures & tables
Figure 1: RELAY uses the deployed query encoder to train the new document encoder. The temporary-projection variant is shown. Query adaptation learns Q1 (LoRA and query projection WQ ) against the old D0 gallery. Document adaptation freezes Q1 , including WQ , and trains the new document encoder. For retrieval, D1 takes the first d coordinates of the encoder output and L2-normalizes the resulting vector, where d is the dimension of the original gallery embeddings. After backfill, optional refinement removes the query projection and learns Q2 against the frozen D1 . Subscripts count updates within each role. Continuous bands trace the fixed reference; dashed elements denote optional refinement. Optional score calibration acts on the mixed-gallery scores.
Qwen 2B → 2B
CLIP → Qwen 2B
Qwen 2B → 8B
Old-system R@1 61.05
Old-system R@1 50.09
Old-system R@1 61.05
Method
Entry R@1
Re-encoding AUC
Final R@1
Entry R@1
Re-encoding AUC
Final R@1
Entry R@1
Re-encoding AUC
Final R@1
Native
Calib.
Native
Calib.
Native
Calib.
Joint (reference)
67.45
67.84
69.41
74.02
0.06
38.71
37.55
73.15
0.03
39.67
38.78
75.58
XBT [ 7 ] ICCV ’25
63.76
57.74
67.05
71.38
48.47
39.68
58.04
69.69
63.84
58.47
67.53
72.49
MKP [ 1 ] ECCV ’26
65.07
67.55
68.61
73.20
53.03
40.94
59.27
68.31
65.51
67.87
69.40
74.04
Table 1: Retrieval quality during model upgrades. Macro text-to-image Recall@1 (%, TEST). MKP denotes MKP-Adapter, RankMerge denotes RankMerge-basic, and EC denotes Embedding-Converter. Entry uses the original gallery in both panels. For SLERP, DEV Entry R@1 selects α=1 (SVD alignment) in both Qwen-to-Qwen upgrades and α=0.5 in CLIP-to-Qwen. Re-encoding starts from the original gallery in A and the fully converted gallery in B. Conversion R@1 is measured at full conversion. Calib. applies DEV-fitted isotonic maps to the same features as Native. Bold and underline mark the top two in each AUC column. ∗ Classification objectives adapted to paired retrieval. † Re-encoding extends BiCT and EC. ‡ Final ranking equals Joint’s by construction. EC’s Final R@1 follows full conversion. After query refinement, RELAY (P100) trails Joint by 0.56, 0.97, and 0.01 percentage points in Final R@1, respectively.
Figure 2: Retrieval during gallery migration. (A) Direct re-encoding starts on the original gallery. Dashed lines show native scores and solid lines use matched isotonic calibration. The diamond (RELAY after refinement) and plus (Joint final R@1) fall outside the AUC. (B) The conversion and re-encoding axes meet at 100/0%; their widths are for display. Curves use native scores. The diamond marks Embedding-Converter’s endpoint and the dotted line its re-encoding extension. Gray dashed lines mark the old system. Markers show all seven fractions per phase, and both rows share the R@1 scale within each setting.
Joint recipe
2B → 2B 2048-d eval.
CLIP → 2B 768-d eval.
2880 steps, single schedule
74.54
73.71
4800 steps, single schedule
73.93
73.24
4800 steps, staged schedule
74.23
73.14
Table 2: Joint schedule selection for the 2B target. The query and document encoders use Qwen 2B in each setting. For 2B-to-2B, training averages losses over the 2048-, 1024-, 768-, and 512-dimensional prefixes. For CLIP-to-2B, training uses the 768-dimensional prefix. We choose the recipe with the highest development-set Recall@1 (%), averaged equally across COCO and Flickr30K.
Setting
Mask
Start
Raw AUC
Calibrated AUC
Backfill end
Final system
Final projections
Q
D
2B-to-2B
P000
70.81
71.11
72.00
73.62
73.85
×
×
P111
71.28
64.21
70.30
72.69
72.04
✓
✓
P110
71.28
64.21
70.30
72.69
73.25
×
✓
P100
71.28
71.74
72.23
73.59
73.46
×
×
CLIP-to-2B
P000
54.58
40.16
58.14
66.84
70.64
×
×
Table 3: Stage projection ablations (%, TEST). Bits specify a learned output projection on the trained role at each stage. P100 and P111 share the entry query. P110 and P111 share the backfill curve. Final Q/D marks indicate retained ( ✓ ) or absent ( × ) learned output projections. The adapted LoRAs remain in both cases. Bold marks best displayed values within each setting.
Setting
Recipe
Stage 1
Stage 2
Stage 3
Sum
Joint
Reduction
2B-to-2B
P000
11.32
4.10
6.63
22.06
25.35
13.0%
2B-to-2B
P100
10.78
4.06
6.63
21.47
25.35
15.3%
CLIP-to-2B
P000
11.10
2.78
3.70
17.58
25.32
30.6%
CLIP-to-2B
P100
11.32
2.78
3.69
17.79
25.32
29.7%
2B-to-8B
P000
15.94
9.59
18.69
44.22
67.22
34.2%
2B-to-8B
P100
16.00
9.55
18.80
44.36
67.22
34.0%
Table 4: Training GPU-hours. The compared runs use eight GPUs of the same model. RELAY includes all three stages and counts reused query adaptation once per recipe. Joint trains both roles for 2880 steps. Totals include loading and saving within successful training processes. The supplement describes the scope of feature-encoding measurements.
Upgrade
Native AUC
Calib. AUC
Calib. min.
100% R@1
2B-to-2B
+0.50
+0.41
0.00
+0.94
CLIP-to-2B
-11.50
+1.01
-0.75
+5.06
2B-to-8B
+1.05
+0.97
-0.17
+3.07
Table 5: Fixed-query document control. Differences (RELAY minus mapped Joint, points) on TEST. Both arms share Q1 throughout. The minimum is taken over the seven fractions.
Setting
Start
Backfill end
Raw min.
Calibrated min.
2B-to-2B
71.28
73.59
71.09
71.28
CLIP-to-2B
59.74
69.22
36.60
58.99
2B-to-8B
69.71
74.77
69.58
69.53
Table 6: P100 endpoint and mixed-gallery diagnostics, TEST macro R@1 (%). Minima use the seven measured fractions. The same features are used with and without calibration; Start and Backfill end are unchanged. Final query refinement is excluded.
Appendix figures & tables7 assets
Supplementary material from the paper’s appendix.
Appendix
Method / phase
0%
10%
25%
50%
75%
90%
100%
Joint / re-enc.
67.45
64.96
64.75
66.82
69.89
72.07
74.02
XBT / re-enc.
63.76
53.11
50.17
54.14
61.83
67.29
71.38
MKP / re-enc.
65.07
64.49
64.84
66.90
69.64
71.66
73.20
SLERP / re-enc.
66.71
67.01
67.69
69.54
71.41
72.89
74.02
BT 2∗ / re-enc.
67.65
60.31
58.02
60.75
66.10
69.83
72.69
RACT ∗ / re-enc.
67.30
67.78
68.40
70.29
71.86
73.01
74.04
Appendix
Table 7: Qwen 2B to 2B: seed 42 TEST macro R@1 (%) at every measured fraction.
Method / phase
0%
10%
25%
50%
75%
90%
100%
Joint / re-enc.
0.06
9.03
21.24
39.65
57.06
66.81
73.15
XBT / re-enc.
48.47
10.02
20.70
38.17
54.40
63.65
69.69
MKP / re-enc.
53.03
17.66
22.77
38.01
53.86
62.69
68.31
SLERP / re-enc.
55.83
15.25
22.41
39.20
55.82
65.16
71.20
BT 2∗ / re-enc.
61.27
13.81
22.07
39.46
56.64
66.05
72.32
RACT ∗ / re-enc.
50.93
32.13
31.47
42.11
56.04
64.39
69.85
Appendix
Table 8: CLIP to Qwen 2B: seed 42 TEST macro R@1 (%) at every measured fraction.
Method / phase
0%
10%
25%
50%
75%
90%
100%
Joint / re-enc.
0.03
9.08
21.44
40.46
58.71
68.84
75.58
XBT / re-enc.
63.84
53.49
50.51
55.05
62.84
68.27
72.49
MKP / re-enc.
65.51
64.80
64.97
67.03
69.98
72.38
74.04
SLERP / re-enc.
66.82
66.66
67.40
69.48
72.07
74.18
75.58
BT 2∗ / re-enc.
67.77
59.17
57.02
60.57
66.53
70.98
74.12
RACT ∗ / re-enc.
62.96
63.68
64.57
66.26
68.56
70.21
71.72
Appendix
Table 9: Qwen 2B to 8B: seed 42 TEST macro R@1 (%) at every measured fraction.
Setting
Mask
Pool
Split
Raw / calibrated AUC
Backfill end (R1/R5/R10/AP5)
Final system (R1/R5/R10/AP5)
2B-to-2B
P000
COCO
DEV
58.63 / 59.54
61.81 / 84.25 / 90.52 / 70.53
61.73 / 84.41 / 90.56 / 70.54
2B-to-2B
P000
Flickr
DEV
84.69 / 85.81
87.18 / 97.36 / 98.90 / 91.47
86.98 / 97.20 / 98.88 / 91.34
2B-to-2B
P000
COCO
TEST
58.07 / 58.91
61.15 / 83.89 / 90.40 / 70.08
61.49 / 84.10 / 90.54 / 70.30
2B-to-2B
P000
Flickr
TEST
84.15 / 85.10
86.10 / 97.42 / 98.84 / 90.86
86.22 / 97.44 / 98.90 / 90.92
2B-to-2B
P111
COCO
DEV
50.77 / 57.51
60.83 / 83.82 / 90.22 / 69.76
60.13 / 83.42 / 90.20 / 69.18
2B-to-2B
P111
Flickr
DEV
78.63 / 84.27
86.09 / 97.36 / 98.82 / 90.79
85.62 / 97.28 / 98.78 / 90.47
Appendix
Table 10: Current projection masks by dataset and split (%). Each endpoint reports all four retrieval metrics; AUC uses R@1.
Setting
Method / phase
Dataset
Phase start
Phase AUC
Phase end (R1/R5/R10/AP5)
2B-to-2B
XBT
COCO
49.58
44.24
58.69 / 82.96 / 89.90 / 68.10
2B-to-2B
XBT
Flickr
77.94
71.24
84.06 / 96.80 / 98.50 / 89.45
2B-to-2B
MKP-Adapter
COCO
51.79
54.39
60.65 / 83.49 / 89.87 / 69.55
2B-to-2B
MKP-Adapter
Flickr
78.34
80.72
85.76 / 97.28 / 98.76 / 90.61
2B-to-2B
FastFill ∗ / conv.
COCO
54.18
33.36
53.63 / 80.22 / 87.77 / 63.81
2B-to-2B
FastFill ∗ / conv.
Flickr
80.72
51.93
81.14 / 96.06 / 98.08 / 87.34
Appendix
Table 11: Newly completed matched controls, seed 42 TEST (%). Phase start and Phase end refer to the listed phase; Phase end lists R@1/R@5/R@10/mAP@5. Conversion end equals re-encoding start. The uncertainty-order FastFill rows are supplementary; the main table uses the common hash order. The re-encoding endpoint is Backfill end, with no query refinement for these controls.
Setting
Joint recipe
Base LR(s)
Cosine horizon(s)
DEV
TEST
Qwen
2880 steps, single schedule
5×10−4
2880
74.54
74.02
Qwen
4800 steps, single schedule
5×10−4
4800
73.93
73.54
Qwen
4800 steps, staged schedule
(1,5,5)×10−4
5760/960/960
74.23
73.85
CLIP
2880 steps, single schedule
5×10−4
2880
73.71
73.15
CLIP
4800 steps, single schedule
5×10−4
4800
73.24
72.36
CLIP
4800 steps, staged schedule
(3,5,5)×10−4
2880/960/960
73.14
72.51
Appendix
Table 17: Rank-32 Joint controls, seed 42. DEV and TEST give native text-to-image R@1 (%), averaged equally over both datasets. The 2880-step run gives the highest development-set R@1. All runs start from the pretrained Qwen backbone with fresh role adapters and update both roles at every step. The staged schedule carries model weights forward and resets the optimizer and learning-rate scheduler after steps 2880 and 3840. Qwen’s first phase uses the first 2880 steps of its 5760-step cosine schedule. The remaining optimizer and batch settings are shared with encoder training above.
Method
query encoder calls
Preparation / document work
final mechanism
Encoder compatibility
RACT ∗
1 new encoder
Old query/document TRAIN features; train both roles with compatibility; one document re-encoding pass
Native trained new pair
XBT
1 new encoder plus projection
Joint teacher; text projection and additional Qwen LoRA
Retains compatible projection
BT 2∗
1 new encoder, expanded by 32
Frozen old and Joint teacher features; paired-retrieval student with cosine supervision; one document re-encoding pass; old vectors zero-padded during migration
Expanded student pair; the basis transformation stays inside the encoder
Feature alignment
SLERP
1 at α=1 ; 2 for 0<α<1
Joint teacher, paired-feature fit, map each freshly encoded document
query interpolation and document rotation; pure SVD preserves native scores
Appendix
Table 18: Mixed-gallery requirements per method: query encoder branches, preparation and document work, and the mechanism that remains at the endpoint.