Manuscript Offprint
arXiv:2610.26824SpecMRL: Redesign Matryoshka Representation Learning within Parametric Spectrum
ABSTRACT
Matryoshka Representation Learning (MRL) is designed to support flexible representation sizes by jointly optimizing nested prefixes. While effective, this design lacks an explicit constraint to ensure that the leading portion provides a suitable compact encoding. To address this, we propose SpecMRL, which reorganizes the feature space to enable more effective prefix readout. Specifically, we extend MRL with a parameter-derived spectral basis organized with feature importance. SpecMRL otherwise follows standard MRL, with prefix readout performed in the learned spectral space. Experiments on MTEB show that SpecMRL outperforms MRL at all evaluated reduced dimensions, with larger gains under more aggressive compression. These results suggest that the learned spectral basis better prioritizes informative directions, enabling more effective representation compression. Notably, SpecMRL extends the performance frontier of MRL, surpassing full-dimensional MRL with only half the embedding dimensions.
1 INTRODUCTION
Representation learning has been a well-established research topic in the ML community (Chen et al., 2020; Gao et al., 2021b) and underpins a wide range of downstream applications (Reimers & Gurevych, 2019; Karpukhin et al., 2020). The growing applications call for more flexible representation schemes that can adapt to varying latency and storage constraints across use cases. Matryoshka Representation Learning (MRL, Kusupati et al., 2022) was introduced to address this need, offering an approach that can be easily adopted in existing representation learning frameworks.
The central idea of MRL is to extend full-dimensional representation learning to a set of nested prefixes. In practice, each nested readout is constructed from the leading portion of the full representation. This design enables representations at multiple output dimensions to be learned within a single training run. While simple and effective, it does not explicitly ensure that earlier dimensions are better suited for nested readout, motivating a more principled design for MRL.
For such prefix readout to be effective, the leading dimensions should ideally concentrate the information most useful for compact representations. However, standard MRL provides no explicit constraint for establishing this ordering. Earlier studies (LI et al., 2025; Huy et al., 2026) have sought to improve low-dimensional readouts through cross-dimensional supervision. Yet, these approaches keep the original coordinate system unchanged, which may itself be ill-suited to effective prefix truncation. Figure 1 depicts how a more suitable basis can better organize semantic information and improve the quality of low-dimensional representations. This motivates us to rethink how the representation space itself should be organized to better support nested prefix readout in MRL.
To this end, we propose SpecMRL, a parameter-derived spectral redesign of MRL that organizes the representation space by feature importance. Such an organization better aligns with the prefix-based design of MRL and provides a natural foundation for dimension reduction. Starting from a
These authors contributed equally. Zhongxin Chen was responsible for the design, implementation, optimization, and evaluation of SpecMRL. Songhao Wu proposed the initial idea of SpecMRL and led this project.
Corresponding authors.
Our code is available at https://github.com/CentreChen/spec-mrl.
(a) MRL

(b) SpecMRL
Intensity Direction
Figure 1: Schematic comparison of standard MRL and SpecMRL. Text embeddings are shown as points in the middle, with colors and marker shapes denoting distinct semantic groups. MRL retains coordinate prefixes in the original basis as compact representations, whereas SpecMRL performs the readout in an ordered spectral basis derived from the parameter structure of . The 2D views and enlarged neighborhoods of (red star) illustrate how this change better organizes the semantic space and supports more effective low-dimensional representations.
backbone representation, SpecMRL differs from standard MRL only in its choice of basis. Figure 1 presents a comparative overview of MRL and SpecMRL, highlighting different organizations of representation space for nested readout. Specifically, SpecMRL changes only the representation basis, with standard MRL subsequently applied in the resulting space.
Concretely, we introduce a matrix and derive from its Gram matrix an ordered spectral basis that serves as the desired coordinate system. Although this is simple in design, a direct implementation poses two challenges: (1) the computational overhead of standard eigen solvers and (2) the numerical instability of eigen vector gradients. To address these challenges, we introduce several technical refinements and develop a power-iteration-based alternative to approximate the eigen decomposition of the Gram matrix. Our empirical observations further confirm that this design avoids training collapse due to numerical instability while achieving throughput comparable to vanilla MRL.
We conduct experiments to validate the effectiveness of SpecMRL and provide further insights into its design. Specifically, we evaluate SpecMRL on widely used MTEB datasets (Muennighoff et al., 2022) with backbones from multiple model families. The empirical results show that SpecMRL substantially improves performance at reduced dimensions, outperforming MRL by up to 3.80 points under compression. Beyond these gains, SpecMRL further extends the performance frontier of MRL, surpassing its full-capacity performance with only half the dimensions. Further validation shows that these gains persist with larger backbones and longer training, confirming the potential of its further scaling. Our analyses also provide initial insights into why SpecMRL is effective. Taken together, these results motivate a rethink of the design principles of MRL and we hope it can inspire improvements for future representation learning.
Given a training batch , is typically optimized via the following contrastive loss:
where and denote the positive and negative samples of , and controls the temperature of the similarity function . MRL extends this contrastive learning over a set of nested dimensions , with loss applied at each dimension. Specifically, for any nested dimension , MRL retains the first entries of as the reduced representation:
and aggregates the losses across nested dimensions into a weighted objective:
where denotes the weight assigned to each dimension m. This nested structure motivates the name, Matryoshka Representation Learning (MRL). Here, the “Matryoshka” metaphor is motivated by Russian nesting dolls, reflecting the intuition that more informative features should occupy earlier dimensions. Despite this motivation, MRL does not explicitly ensure such an ordering, leaving the distribution of information across dimensions unspecified. Prior work (LI et al., 2025; Yang & Zhao, 2026; Zhang et al., 2025) has also considered this issue, but mainly introduces additional constraints across nested representations instead of directly ordering the feature dimensions. In this paper, we seek to establish refined design principles toward better dimension reduction. Below, we present SpecMRL as a refined perspective on how the core motivation behind MRL can be realized.
3 METHODOLOGY
3.1 SPECMRL: PARAMETRIC SPECTRAL DESIGN FOR IMPROVED MRL
In this section, we first present the implementation of SpecMRL and defer its design principles to later sections. By design, MRL relies on a heuristic prior that favors earlier dimensions to construct nested representations. SpecMRL breaks this paradigm and recasts MRL's predefined dimension ordering as a learnable spectral organization. Specifically, it encodes this latent structure in and recovers an ordered basis from the spectrum of the corresponding Gram matrix:
where returns the basis , with eigen values ordered as . Keeping the leading columns as the nested readout basis, we define
where denotes the projection of onto the leading basis vectors. With this definition, SpecMRL is a drop-in modification to MRL, replacing the nested representation with the spectral prefix in each loss term while leaving the rest of the pipeline unchanged.
Given the constructed spectrum, the training objective of SpecMRL can be formulated as:
This substitution changes only the construction of nested representations while preserving the vanilla MRL framework, and requires no additional loss terms or modifications to the training pipeline. Figure 2 provides an overview of the key stages in the SpecMRL pipeline.
We present a parameter-space view to help interpret our SpecMRL design. Conceptually, the learned parameters of can be viewed as an encoding of the embedding-space geometry. From this perspective, SpecMRL may organize feature channels in a more principled manner than vanilla MRL, offering one possible explanation for the observed performance gains. We provide additional empirical observations in Appendix C to further support this interpretation.

(a) Spectral readout.
W: learnable factor [D, R]
U: cached spectral basis [D, D]
def specmrl(q, p, W, U, y): # Warm-started spectral update G = W @ W.T U, _ = torch.linalg.qr(G @ U.detach()) # Spectral readout q, p = q @ U, p @ U
Original Matryoshka loss
loss = mrl_loss(q, p, y)
return loss, U.detach()
(b) PyTorch-style pseudocode.
Figure 2: Illustration and pseudocode of SpecMRL. (a) Embeddings are rotated into a learned spectral basis before prefix readouts. (b) The basis is updated by one warm-started orthogonal iteration per training step and cached for the next step. mrl_loss denotes the original Matryoshka objective.
3.2 SPECMRL WITH EFFICIENT AND SCALABLE SPECTRAL SOLVER
While SpecMRL is simple in design, its naive implementation can involve several subtle technical challenges that are easy to overlook. A straightforward approach is to directly decompose the Gram matrix using off-the-shelf numerical tools, such as the built-in eigen solvers in PyTorch (Paszke et al., 2019), to obtain the spectral basis. However, this is (1) computationally expensive and (2) sensitive to ill-conditioned eigenvalue distribution, making it unsuitable in practice.
To address these challenges, we approximate the ordered basis in Eq. 4 with a streaming power-iteration design. Specifically, we first initialize the basis with the ordered eigen vectors of the initial Gram matrix. Starting from this initialization, each subsequent step updates the previous basis through a single matrix multiplication followed by QR orthogonalization (Householder, 1958):
where QR returns the orthogonal factor. Gradients propagate through the Gram matrix and QR factorization, while basis is held fixed. Similar approaches have been explored in optimizer designs to reduce decomposition overhead (Ahn et al., 2025; Vyas et al., 2025). Figure 2 (b) provides PyTorch-style pseudocode for this design. We further validate the convergence of this solver in Appendix C by comparing its solved basis against the exact eigen decomposition solution.
The benefits of our power iteration design are empirically validated in practice. In particular, our power-iteration design avoids training collapse across all experimental settings with only modest computational overhead. Once training is complete, the spectral basis is fixed and no longer requires recomputation from . As a result, SpecMRL incurs only the cost of a linear projection at inference time. We provide a detailed analysis of both training and inference costs in Section 4.1.3 to further assess the practical efficiency of SpecMRL.
4 EXPERIMENT
4.1 METHOD ANALYSIS: CLARIFYING DESIGN PRINCIPLES FOR SPECMRL
We begin with ablation studies to shed light on the research questions regarding SpecMRL, seeking to validate its effectiveness and provide insights into the design principles behind it.
4.1.1 HOW DOES SPECMRL PERFORM RELATIVE TO TRADITIONAL MRL?
We train SpecMRL alongside MRL on backbones from various model families and evaluate their performance on MTEB (Muennighoff et al., 2022). Table 1 summarizes the results, while detailed experimental setups are provided in Appendix A. SpecMRL highlights the following advantages:
For readers unfamiliar with this issue, we provide a detailed discussion in Section 4.1.3.
Table 1: Performance of SpecMRL averaged across MTEB tasks, with task-level breakdown provided in Table 15. controls the reduction ratio, reducing the output dimension to of its original size. Colored entries highlight improvements over vanilla MRL, while bold text marks the best result for each backbone. Parenthetical values denote the gains of SpecMRL over MRL.
| Qwen3-0.6B | Qwen2-0.5B | Llama3.2-1B | ||||
|---|---|---|---|---|---|---|
| MRL | SpecMRL | MRL | SpecMRL | MRL | SpecMRL | |
| 1 | 60.97 | 60.94 (-0.03) | 58.96 | 58.74 (-0.22) | 61.92 | 61.87 (-0.05) |
| 2 | 60.54 | 61.61 (+1.07) | 58.67 | 59.44 (+0.77) | 61.74 | 62.42 (+0.68) |
| 4 | 59.40 | 61.28 (+1.88) | 58.32 | 59.20 (+0.88) | 61.36 | 62.23 (+0.87) |
| 8 | 57.88 | 60.46 (+2.58) | 57.26 | 58.44 (+1.18) | 60.62 | 61.80 (+1.18) |
| 16 | 54.73 | 58.53 (+3.80) | 55.23 | 56.61 (+1.38) | 59.42 | 60.91 (+1.49) |
(1) SpecMRL outperforms MRL across all reduced dimensions. The observed improvements are consistent across backbones and compression ratios, while SpecMRL preserves the nested structure of MRL. Importantly, the performance gap widens under stronger compression. The larger gains at lower dimensions suggest that SpecMRL more effectively prioritizes informative directions for low-dimensional readouts, which may explain its advantage over MRL.
(2) SpecMRL extends the frontier of MRL, achieving superior performance using a compact representation. As shown in Table 1, SpecMRL achieves its best performance with only half of the full dimension. This reduction lowers retrieval costs, with negligible overhead and no compromise in downstream performance. We further analyze this dimension–performance trade-off, including the slight degradation observed at the full dimension, in Section 4.3.
We argue that these findings position SpecMRL as a promising alternative to standard MRL, pushing the performance frontier toward more compact representations.
4.1.2 WHAT MOTIVATES THE USE OF PARAMETRIC SPECTRUM FOR SPECMRL?
The spectral basis in SpecMRL can, in principle, be derived from sources beyond the learned parameter matrix. Below, we introduce several alternatives to clarify the rationale behind our choice.
Parameter-Derived Spectrum Proves Effective. One natural alternative to SpecMRL's parameter-derived spectrum is to construct the spectral basis directly from the input features. Prior work (LI et al., 2025) has also explored exploiting feature-space structure to guide MRL, making feature-derived basis a plausible choice. We further discuss the relation to ESE in Section 4.4.
Based on this motivation, we introduce a feature-derived variant FeatMRL for comparison:
where the basis is obtained directly from the Gram matrix of the current input batch . We further consider a momentum-based variant to mitigate potential batch-to-batch variations:
Table 2: Comparison of SpecMRL and FeatMRL on MTEB. Bold values indicate the best performance, while parenthetical values denote performance drops relative to SpecMRL.
| SpecMRL | FeatMRL () | FeatMRL () | FeatMRL () | FeatMRL () | |
|---|---|---|---|---|---|
| 1 | |||||
| 2 | |||||
| 4 | |||||
| 8 | |||||
| 16 |
Table 2 reports the results, where denotes vanilla FeatMRL. Detailed results for all evaluated values are provided in the Table 16. FeatMRL improves over vanilla MRL at several reduced dimensions, but remains below SpecMRL at every evaluated dimension. Momentum smoothing does not close this gap. These results favor the learned parameter-derived basis over the feature-derived alternatives evaluated here.
Over-Parameterization of Brings Additional Gains. In principle, any choice of is sufficient for to attain full row rank. However, SpecMRL adopts an over-parameterized design with . This is motivated by our observation that increasing beyond this threshold can further improve the performance of SpecMRL.
To study the effect of , we conduct a hyperparameter search over on Qwen3-0.6B and report the performance on MTEB. As shown in Table 3, we observe that (1) over-parameterizing improves performance, and (2) larger values of continue to improve performance, while the benefit of further scaling decreases. Based on these observations, we use throughout this paper.
Table 3: Hyperparameter search for the over-parameterization scale of . Darker shades indicate better relative performance; the top-two results are shown in bold and underline.
| τ | D | 4D | 16D | 64D | 128D | 256D |
|---|---|---|---|---|---|---|
| 1 | 60.77 | 60.73 | 60.92 | 60.72 | 60.94 | 60.90 |
| 2 | 61.02 | 61.27 | 61.34 | 61.45 | 61.61 | 61.55 |
| 4 | 60.65 | 60.84 | 61.04 | 61.14 | 61.28 | 61.26 |
| 8 | 59.64 | 60.00 | 60.27 | 60.43 | 60.46 | 60.44 |
| 16 | 57.80 | 58.12 | 58.30 | 58.38 | 58.53 | 58.41 |
| AVG. | 59.98 | 60.19 | 60.37 | 60.42 | 60.56 | 60.51 |
One possible explanation for this advantage is that SpecMRL makes it feasible to extend MRL to higher-dimensional spaces. expands the feature space from to , while SpecMRL avoids the need to directly perform MRL at dimension . This enables finer-grained similarity modeling at a manageable computational cost, thereby extending the model capacity beyond that of traditional MRL. Similar benefits of over-parameterized designs have also been observed in prior representation learning studies (Chen et al., 2020).
4.1.3 EFFICIENCY AND NUMERICAL STABILITY
The over-parameterized design, together with the complexity of eigen decomposition, naturally raises concerns about SpecMRL's end-to-end efficiency. In practice, power iteration confines most of the additional computation to standard matrix operations supported by modern hardware, keeping the overhead affordable. Moreover, this overhead is input-independent and remains small relative to the backbone computation. We provide a more comprehensive complexity analysis in Appendix E.
Table 4 reports SpecMRL's training throughput drop relative to MRL for different eigen solvers in the main experiments. Specifically, we benchmark SVD and Eigh using torch.linalg.svd and torch.linalg.eigh, respectively. For Eigh, we use the MAGMA backend following PyTorch's guidance on numerical stability (Paszke et al., 2019). As shown in Table 4, our design incurs less overhead than established eigen solvers, achieving throughput nearly identical to that of MRL. Beyond efficiency, these eigen solvers are also unstable when the eigen gap vanishes.
Formally, for any eigenvector , its gradient with respect to the Gram matrix takes the form:
Our implementation avoids this gradient dependence, thereby mitigating sensitivity to the ill-conditioned eigenvalues and improving numerical stability of SpecMRL.
At inference time, once the basis is fixed, SpecMRL incurs only the overhead of a matrix multiplication. Meanwhile, it halves the dimension without compromising performance, leading to faster vector retrieval. Our evaluation confirms that SpecMRL incurs negligible overhead while providing a retrieval speedup of up to . Section 4.6 provides the detailed experimental setup.
4.2 ABLATION STUDIES
We conduct ablation studies to further validate the effectiveness of the design choices behind SpecMRL and better understand why they lead to improved performance.
Table 5: Results of ablation studies. Parenthetical values denote drops relative to SpecMRL.
| τ | MRL | SpecMRL | (a) MRL w. Gram | (b) MRL w. Orth |
|---|---|---|---|---|
| 1 | 60.97 | 60.94 | 61.35 (+0.41) | 60.59 (-0.35) |
| 2 | 60.54 | 61.61 | 60.80 (-0.81) | 60.91 (-0.70) |
| 4 | 59.40 | 61.28 | 59.64 (-1.64) | 60.24 (-1.04) |
| 8 | 57.88 | 60.46 | 57.70 (-2.76) | 59.28 (-1.18) |
| 16 | 54.73 | 58.53 | 54.11 (-4.42) | 57.19 (-1.34) |
4.2.1 SPECTRUM CONTRIBUTES BEYOND GRAM-MATRIX OVER-PARAMETERIZATION.
Compared with vanilla MRL, SpecMRL introduces a learnable factor and derives its ordered spectral basis from the corresponding Gram matrix. To examine whether the improvement can be explained merely by this additional parameterization, we construct an ablated variant that retains the same learnable factor but removes spectral decomposition.
For a nested dimension , let . This variant retains the original coordinate prefixes and evaluates similarity after the implicit lifting . Equivalently, its similarity is induced by the Gram matrix . We therefore refer to this variant as MRL w. Gram. The full formulation and details are provided in Appendix A.3.
As shown in Table 5, the Gram-based variant provides only limited improvements over vanilla MRL and degrades rapidly under stronger compression. In contrast, SpecMRL consistently performs better at reduced dimensions. These results show that introducing the same learnable factor through Gram-based similarity does not reproduce the gains of SpecMRL, supporting the proposed spectral readout over this alternative. Extra comparison with a learnable linear is provided in Appendix B.
4.2.2 EIGEN DECOMPOSITION PROVIDES MORE THAN LEARNABLE ORTHOGONALITY
Eigen decomposition organizes the learned structure into an ordered set of orthogonal directions. This suggests two possible sources of improvement: learning a favorable orthogonal basis and imposing a spectral ordering. To disentangle their effects, we construct an ablated variant that retains only learnable orthogonality. This allows us to assess whether the learned spectral ordering benefits MRL's nested readouts. Specifically, we replace the orthogonal basis in Eq. 4 as:
where QR is applied to the Gram matrix alone to retain orthogonality. Table 5 (b) reports its results. Compared with vanilla MRL, learned orthogonality provides a clear advantage, but remains inferior to the full SpecMRL design. This further highlights the value of ordering feature directions by learned importance, which is naturally compatible with MRL's nested readout design.
4.3 VALIDATE SPECMRL AT LARGER DIMENSIONS AND TRAINING SCALES
We scale both model width and training scale to further evaluate SpecMRL from two perspectives: (1) whether its effectiveness persists in larger representation spaces, and (2) whether its gains truly extend the performance frontier of MRL rather than merely resulting from faster convergence.
Empirical Observations at Larger Representation Dimensions. We first increase the model width and scale the Qwen3 backbone from 0.6B to 4B to extend our evaluation. Table 6 compares
Table 6: Comparison between MRL and SpecMRL on Qwen3-4B. SpecMRL remains effective as the representation space scales up.
| Qwen3-4B | |||
|---|---|---|---|
| D | Bands | MRL | SpecMRL |
| 2560 | 0 : 20 | 64.71 | 64.29 (-0.42) |
| 2432 | 0 : 19 | 64.73 | 64.98 (+0.25) |
| 1024 | 0 : 8 | 64.38 | 65.06 (+0.68) |
| 512 | 0 : 4 | 63.51 | 64.86 (+1.35) |
| 256 | 0 : 2 | 62.40 | 64.49 (+2.09) |
| 128 | 0 : 1 | 60.20 | 63.51 (+3.31) |

Figure 3: MTEB performance trends of SpecMRL across nested dimensions. The final spectral band introduces an unexpected performance drop.
SpecMRL with MRL on Qwen3-4B using MTEB. The relative gains of SpecMRL over MRL follow trends similar to those observed on the 0.6B model in the main results reported in Table 1.
Leveraging the larger hidden size of Qwen3-4B, we further conduct a fine-grained sweep over nested dimensions to investigate SpecMRL's behavior under different spectral truncations. Specifically, we partition the spectral basis into 20 bands and report the average MTEB score over a subset of tasks with the first bands retained. Figure 3 visualizes the resulting trend, where SpecMRL exhibits a pattern similar to that of MRL: enlarging the representation leads to improved performance for most retained spectral bands. Moreover, the learned spectral basis remains effective across unseen dimensions, indicating stability at dimensions unseen during training.
However, we observe an unexpected degradation when the final spectral bands are retained. We therefore remove these bands in other experimental settings to examine whether the same effect persists. Table 7 summarizes the results, where denotes retaining bands through .
Table 7: Comparison of SpecMRL performance with and without the final spectral bands.
| Qwen3-0.6B | Qwen2-0.5B | Llama3.2-1B | ||||
|---|---|---|---|---|---|---|
| Bands | MRL | SpecMRL | MRL | SpecMRL | MRL | SpecMRL |
| 0 : 20 | 60.97 | 60.94 (-0.03) | 58.96 | 58.74 (-0.22) | 61.92 | 61.87 (-0.05) |
| 0 : 19 | 60.94 | 61.35 (+0.41) | 59.00 | 59.20 (+0.20) | 61.93 | 62.37 (+0.44) |
| 0 : 10 | 60.54 | 61.61 (+1.07) | 58.67 | 59.44 (+0.77) | 61.74 | 62.42 (+0.68) |
The degradation in the smallest-singular-value bands remains consistent across different settings. Similar behavior was observed for the spectrum of the LLM unembedding matrix (Wu et al., 2026). Our further analysis attributes this phenomenon to disproportionate projection onto the corresponding spectral subspace, which partially disrupts isotropy. We defer this analysis to Appendix D and hope these findings may motivate more principled designs for embedding training.
SpecMRL Extends the Performance Frontier Beyond Faster Convergence. We next investigate whether SpecMRL's gains persist beyond faster convergence at larger training scales. Therefore, we extend Qwen3-0.6B training beyond main experiments and monitor its downstream performance relative to MRL in an over-training regime. As shown in Figure 4, SpecMRL not only retains

Figure 4: MTEB subset results evaluated every 100 steps. The advantage of SpecMRL is consistent throughout the training process.
As shown in Figure 4, SpecMRL not only retains its advantage over MRL throughout training but also attains a higher performance ceiling. Table 17 reports the full MTEB evaluation in an over-training regime.
Taken together, these results highlight the potential of SpecMRL toward training with larger models and longer horizons. We hope to further validate this scalability under larger computational budgets.
4.4 COMPARISON OF SPECMRL WITH EXISTING IMPROVEMENTS TO MRL
Table 8: Comparison of SpecMRL with MRL variants on Qwen3-0.6B.
| τ | MRL | ESE (L2C) | MIPIC (SIA) | SpecMRL |
|---|---|---|---|---|
| 1 | 60.97 | 57.97 (-3.00) | 60.42 (-0.55) | 60.94 (-0.03) |
| 2 | 60.54 | 57.26 (-3.28) | 59.93 (-0.61) | 61.61 (+1.07) |
| 4 | 59.40 | 56.38 (-3.02) | 59.08 (-0.32) | 61.28 (+1.88) |
| 8 | 57.88 | 55.18 (-2.70) | 57.74 (-0.14) | 60.46 (+2.58) |
| 16 | 54.73 | 50.26 (-4.47) | 55.09 (+0.36) | 58.53 (+3.80) |
We also compare SpecMRL with other MRL variants (ESE, LI et al., 2025; MIPIC, Huy et al., 2026) to further validate its effectiveness. Both ESE and MIPIC are designed to enhance information retention at lower dimensions through additional supervision. Specifically, they augment the standard MRL objective with different loss designs for cross-dimensional supervision. Given that, we restrict our comparison to their reduced-dimension variants, ESE (L2C) and MIPIC (SIA), excluding other design elements. Further discussion of their full designs is provided in Section 5.
We compare SpecMRL with these baselines on Qwen3-0.6B using the same setup as in our main experiments. Table 8 presents the comparative results, where SpecMRL achieves the best overall performance among the methods considered. Notably, ESE (L2C) shows a performance collapse on classification tasks. Therefore, we also report the average over the non-classification subset in Table 18, where the same conclusion holds. Beyond these gains, SpecMRL provides additional advantage in practice, since it only changes the prefix-readout basis. As a consequence, this makes SpecMRL a compatible extension to MRL, requiring no extra hyperparameter tuning while remaining robust across diverse tasks. Further details for baselines implementation and additional evaluation results are provided in Appendix A.2 for clarity.
4.5 ROBUSTNESS TO MRL CONFIGURATIONS
We further evaluate SpecMRL under different MRL settings to assess whether its advantages are robust across configurations. Specifically, we conduct two experiments on Qwen3-0.6B: (1) setting all nested loss weights to 1, and (2) adopting sparse supervision by dropping the last two dimensions (128 and 64) from the nested training set. All other training settings are kept unchanged.
Table 9 compares MRL and SpecMRL under different configurations. Across these configurations, SpecMRL consistently preserves the low-dimensional advantage observed in the main experiments, indicating robustness to MRL training settings. Notably, under sparse supervision, SpecMRL achieves larger gains over MRL at the two prefixes without dedicated loss terms, including a 7.29-point improvement at 64 dimensions. This suggests that SpecMRL depends less on direct supervision at individual prefixes to preserve low-dimensional information, enabling effective readout under sparser nested supervision and demonstrating robustness to the choice of training dimensions.
4.6 INFERENCE AND RETRIEVAL EFFICIENCY
Embedding Encoding. We compare MRL and SpecMRL with Qwen3-0.6B on the same 100,000 passages. The measured time includes the forward pass and the additional projection in SpecMRL. With a precomputed spectral basis, SpecMRL performs a full projection yet increases total encoding time from 312.85 s for MRL to 313.99 s, corresponding to an overhead of only .
Vector Retrieval. We randomly select 8,192 passages from one million MS MARCO passages as queries and use the remainder as the retrieval database. Using FAISS's GpuIndexFlatIP
Table 9: Robustness to different MRL training configurations.
| Default | Uniform Weights | Sparse Supervision | ||||
|---|---|---|---|---|---|---|
| τ | MRL | SpecMRL | MRL | SpecMRL | MRL | SpecMRL |
| 1 | 60.97 | 60.94 (-0.03) | 60.35 | 60.37 (+0.02) | 60.73 | 60.76 (+0.03) |
| 2 | 60.54 | 61.61 (+1.07) | 60.09 | 61.79 (+1.70) | 60.11 | 61.53 (+1.42) |
| 4 | 59.40 | 61.28 (+1.88) | 59.31 | 61.60 (+2.29) | 58.76 | 61.20 (+2.44) |
| 8 | 57.88 | 60.46 (+2.58) | 58.38 | 61.04 (+2.66) | 55.88 | 60.15 (+4.27) |
| 16 | 54.73 | 58.53 (+3.80) | 56.48 | 59.30 (+2.82) | 49.94 | 57.23 (+7.29) |
on a single NVIDIA A100 PCIe 40GB GPU, we perform FP32 exact top-100 retrieval. Indices are prebuilt and remain in GPU memory. We measure retrieval throughput in queries per second (QPS) across different dimensions and query batch sizes. As shown in Table 10, speedups generally increase with query batch size before leveling off. Using half the dimensions, SpecMRL achieves the best score (Table 1) and up to a retrieval speedup, improving both quality and efficiency.
Table 10: Retrieval throughput (QPS) across compression ratios and query batch sizes , with output dimension . Parentheses show speedups over at the same . Bold highlights the retrieval speedup of the representation with the highest average MTEB score in Table 1.
| τ | B = 1 | B = 64 | B = 256 | B = 1024 | B = 2048 |
|---|---|---|---|---|---|
| 1 | 140 (1.00×) | 5,207 (1.00×) | 7,103 (1.00×) | 7,859 (1.00×) | 7,961 (1.00×) |
| 2 | 176 (1.26×) | 7,713 (1.48×) | 12,558 (1.77×) | 14,605 (1.86×) | 14,791 (1.86×) |
| 4 | 205 (1.46×) | 9,891 (1.90×) | 20,174 (2.84×) | 25,508 (3.25×) | 25,906 (3.25×) |
| 8 | 231 (1.65×) | 11,414 (2.19×) | 28,986 (4.08×) | 40,594 (5.17×) | 41,282 (5.19×) |
| 16 | 352 (2.52×) | 12,319 (2.37×) | 36,712 (5.17×) | 56,884 (7.24×) | 57,814 (7.26×) |
5 RELATED WORK
Modern applications use models to encode data into embeddings for a wide range of downstream tasks. Despite continued improvements in quality, the storage and computational costs of fixed, high-dimensional embeddings remain a practical bottleneck. MRL (Kusupati et al., 2022) addresses this limitation through joint supervision of nested prefixes, enabling flexible output dimensions. While MRL is simple, several methods seek further improvements by introducing auxiliary objectives. ESE (LI et al., 2025) introduces a learn-to-compress (L2C) objective that supervises truncated prefixes with PCA-based compression targets. Similarly, MIPIC (Huy et al., 2026) aligns token-level relations across dimensions through self-distilled intra-relational alignment (SIA), matching token-importance distributions with KL divergence and inter-token geometry with centered kernel alignment. Both methods derive alignment targets from full-dimensional embeddings to supervise low-dimensional prefixes, while also incorporating intermediate-layer supervision to improve embeddings at shallower depths. In contrast to alignment-based supervision, MIC (Hong et al., 2026) introduces geometric regularization to reduce redundancy between prefix and residual dimensions.
MRL has also been extended to frozen models by adding lightweight trainable layers, supporting effective prefix truncation at multiple dimensions without backbone update. Following this idea, Matryoshka-Adaptor (Yoon et al., 2024) learns nested embeddings through lightweight adapters, while SMEC (Zhang et al., 2025) further improves this adaptation process through sequential training and adaptive dimension selection. More recently, AdaWidth (Yang & Zhao, 2026) learns an orthogonal rotation of frozen embeddings, providing a learnable orthogonal basis without explicit spectral ordering. This design is conceptually closely related to the learnable-basis ablation considered in our analysis, which underperforms the proposed spectral basis.
6 CONCLUSION
We present SpecMRL, a parametric-spectral redesign of MRL that addresses the limitations of fixed basis-prefix readout. By exploiting the ordered orthogonal structure of the learned spectrum, SpecMRL reorganizes representations into a form naturally suited to nested truncation. Across diverse experimental settings, SpecMRL consistently outperforms MRL at reduced dimensions with negligible overhead, while further extending the performance frontier. These findings highlight the readout space as an important learning target in nested representation. We hope this perspective motivates further exploration of information organization and inspires more principled MRL designs.
REFERENCES
Kwangjun Ahn, Byron Xu, Natalie Abreu, Ying Fan, Gagik Magakyan, Pratyusha Sharma, Zheng Zhan, and John Langford. Dion: Distributed orthonormalized updates, 2025. URL https://arxiv.org/abs/2504.05295.
Vera Boteva, Demian Gholipour, Artem Sokolov, and Stefan Riezler. A full-text learning to rank dataset for medical information retrieval. In European Conference on Information Retrieval, 2016. URL https://api.semanticscholar.org/CorpusID:14355670.
Iñigo Casanueva, Tadas Temčinas, Daniela Gerz, Matthew Henderson, and Ivan Vulić. Efficient intent detection with dual sentence encoders. In Tsung-Hsien Wen, Asli Celikyilmaz, Zhou Yu, Alexandros Papangelis, Mihail Eric, Anuj Kumar, Iñigo Casanueva, and Rushin Shah (eds.), Proceedings of the 2nd Workshop on Natural Language Processing for Conversational AI, pp. 38–45, Online, July 2020. Association for Computational Linguistics. doi: 10.18653/v1/2020.nlp4convai-1.5. URL https://aclanthology.org/2020.nlp4convai-1.5.
Daniel Cer, Mona Diab, Eneko Agirre, I
nigo Lopez-Gazpio, and Lucia Specia. SemEval-2017 task 1: Semantic textual similarity multilingual and crosslingual focused evaluation. In Steven Bethard, Marine Carpuat, Marianna Apidianaki, Saif M. Mohammad, Daniel Cer, and David Jurgens (eds.), Proceedings of the 11th International Workshop on Semantic Evaluation (SemEval-2017), pp. 1–14, Vancouver, Canada, August 2017a. Association for Computational Linguistics. doi: 10.18653/v1/S17-2001. URL https://aclanthology.org/S17-2001.
Daniel Cer, Mona Diab, Eneko Agirre, Iñigo Lopez-Gazpio, and Lucia Specia. SemEval-2017 task 1: Semantic textual similarity multilingual and crosslingual focused evaluation. In Steven Bethard, Marine Carpuat, Marianna Apidianaki, Saif M. Mohammad, Daniel Cer, and David Jurgens (eds.), Proceedings of the 11th International Workshop on Semantic Evaluation (SemEval-2017), pp. 1–14, Vancouver, Canada, August 2017b. Association for Computational Linguistics. doi: 10.18653/v1/S17-2001. URL https://aclanthology.org/S17-2001/.
Ting Chen, Simon Kornblith, Mohammad Norouzi, and Geoffrey Hinton. A simple framework for contrastive learning of visual representations. In Proceedings of the 37th International Conference on Machine Learning, ICML'20. JMLR.org, 2020.
Arman Cohan, Sergey Feldman, Iz Beltagy, Doug Downey, and Daniel Weld. SPECTER: Document-level representation learning using citation-informed transformers. In Dan Jurafsky, Joyce Chai, Natalie Schluter, and Joel Tetreault (eds.), Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pp. 2270–2282, Online, July 2020. Association for Computational Linguistics. doi: 10.18653/v1/2020.acl-main.207. URL https://aclanthology.org/2020.acl-main.207.
Jack FitzGerald, Christopher Hench, Charith Peris, Scott Mackie, Kay Rottmann, Ana Sanchez, Aaron Nash, Liam Urbach, Vishesh Kakarala, Richa Singh, Swetha Ranganath, Laurie Crist, Misha Britan, Wouter Leeuwis, Gokhan Tur, and Prem Natarajan. Massive: A 1m-example multilingual natural language understanding dataset with 51 typologically-diverse languages, 2022.
Luyu Gao, Yunyi Zhang, Jiawei Han, and Jamie Callan. Scaling deep contrastive learning batch size under memory limited setup. In Anna Rogers, Iacer Calixto, Ivan Vulić, Naomi Saphra, Nora Kassner, Oana-Maria Camburu, Trapit Bansal, and Vered Shwartz (eds.), Proceedings of the 6th
Workshop on Representation Learning for NLP (RepL4NLP-2021), pp. 316–321, Online, August 2021a. Association for Computational Linguistics. doi: 10.18653/v1/2021.repl4nlp-1.31. URL https://aclanthology.org/2021.repl4nlp-1.31/.
Tianyu Gao, Xingcheng Yao, and Danqi Chen. SimCSE: Simple contrastive learning of sentence embeddings. In Marie-Francine Moens, Xuanjing Huang, Lucia Specia, and Scott Wen-tau Yih (eds.), Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pp. 6894–6910, Online and Punta Cana, Dominican Republic, November 2021b. Association for Computational Linguistics. doi: 10.18653/v1/2021.emnlp-main.552. URL https://aclanthology.org/2021.emnlp-main.552/.
Aaron Grattafiori, Abhimanyu Dubey, Abhinav Jauhri, Abhinav Pandey, Abhishek Kadian, Ahmad Al-Dahle, Aiesha Letman, Akhil Mathur, Alan Schelten, Alex Vaughan, et al. The llama 3 herd of models. arXiv preprint arXiv:2407.21783, 2024.
Dang Nguyen Hong, Nhi Ngoc-Yen Nguyen, and Huy-Hieu Pham. Mic: Maximizing informational capacity in adaptive representations via isotropic subspace alignment, 2026. URL https://arxiv.org/abs/2605.29987.
Alston S. Householder. Unitary triangularization of a nonsymmetric matrix. J. ACM, 5(4):339–342, October 1958. ISSN 0004-5411. doi: 10.1145/320941.320947. URL https://doi.org/10.1145/320941.320947.
Xinshuo Hu, Zifei Shan, Xinping Zhao, Zetian Sun, Zhenyu Liu, Dongfang Li, Shaolin Ye, Xinyuan Wei, Qian Chen, Baotian Hu, Haofen Wang, Jun Yu, and Min Zhang. Kalm-embedding: Superior training data brings a stronger embedding model, 2025. URL https://arxiv.org/abs/2501.01028.
Phung Gia Huy, Hai An Vu, Minh-Phuc Truong, Thang Duc Tran, Linh Ngo Van, Thanh Hong Nguyen, and Trung Le. MIPIC: Matryoshka representation learning via self-distilled intra-relational and progressive information chaining. In Maria Liakata, Viviane P. Moreira, Jiajun Zhang, and David Jurgens (eds.), Findings of the Association for Computational Linguistics: ACL 2026, pp. 13824–13838, San Diego, California, United States, July 2026. Association for Computational Linguistics. ISBN 979-8-89176-395-1. doi: 10.18653/v1/2026.findings-acl.676. URL https://aclanthology.org/2026.findings-acl.676/.
Jared Kaplan, Sam McCandlish, Thomas Henighan, Tom B. Brown, Benjamin Chess, Rewon Child, Scott Gray, Alec Radford, Jeff Wu, and Dario Amodei. Scaling laws for neural language models. ArXiv, abs/2001.08361, 2020. URL https://api.semanticscholar.org/CorpusID:210861095.
Vladimir Karpukhin, Barlas Oguz, Sewon Min, Patrick Lewis, Ledell Wu, Sergey Edunov, Danqi Chen, and Wen-tau Yih. Dense passage retrieval for open-domain question answering. In Bonnie Webber, Trevor Cohn, Yulan He, and Yang Liu (eds.), Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pp. 6769–6781, Online, November 2020. Association for Computational Linguistics. doi: 10.18653/v1/2020.emnlp-main.550. URL https://aclanthology.org/2020.emnlp-main.550/.
Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization, 2017. URL https://arxiv.org/abs/1412.6980.
Aditya Kusupati, Gantavya Bhatt, Aniket Rege, Matthew Wallingford, Aditya Sinha, Vivek Ramanujan, William Howard-Snyder, Kaifeng Chen, Sham Kakade, Prateek Jain, et al. Matryoshka representation learning. In Proceedings of the 36th International Conference on Neural Information Processing Systems, pp. 30233–30249, 2022.
Ken Lang. Newsweeder: Learning to filter netnews. In Armand Prieditis and Stuart Russell (eds.), Machine Learning Proceedings 1995, pp. 331–339. Morgan Kaufmann, San Francisco (CA), 1995. ISBN 978-1-55860-377-6. doi: https://doi.org/10.1016/B978-1-55860-377-6.50048-7. URL https://www.sciencedirect.com/science/article/pii/B9781558603776500487.
Xianming LI, Zongxi Li, Jing Li, Haoran Xie, and Qing Li. ESE: Espresso sentence embeddings. In The Thirteenth International Conference on Learning Representations, 2025. URL https://openreview.net/forum?id=plgLA2YBLH.
Xueqing Liu, Chi Wang, Yue Leng, and ChengXiang Zhai. Linkso: a dataset for learning to retrieve similar question answer pairs on software development forums. Proceedings of the 4th ACM SIGSOFT International Workshop on NLP for Software Engineering, 2018. URL https://api.semanticscholar.org/CorpusID:53111679.
Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization, 2019. URL https://arxiv.org/abs/1711.05101.
Marco Marelli, Stefano Menini, Marco Baroni, Luisa Bentivogli, Raffaella Bernardi, and Roberto Zamparelli. A SICK cure for the evaluation of compositional distributional semantic models. In Nicoletta Calzolari, Khalid Choukri, Thierry Declerck, Hrafn Loftsson, Bente Maegaard, Joseph Mariani, Asuncion Moreno, Jan Odijk, and Stelios Piperidis (eds.), Proceedings of the Ninth International Conference on Language Resources and Evaluation (LREC'14), pp. 216–223, Reykjavik, Iceland, May 2014. European Language Resources Association (ELRA). URL http://www.lrec-conf.org/proceedings/lrec2014/pdf/363_Paper.pdf.
Niklas Muennighoff, Nouamane Tazi, Loïc Magne, and Nils Reimers. Mteb: Massive text embedding benchmark. arXiv preprint arXiv:2210.07316, 2022. doi: 10.48550/ARXIV.2210.07316. URL https://arxiv.org/abs/2210.07316.
Tri Nguyen, Mir Rosenberg, Xia Song, Jianfeng Gao, Saurabh Tiwary, Rangan Majumder, and Li Deng. MS MARCO: A human generated machine reading comprehension dataset. CoRR, abs/1611.09268, 2016. URL http://arxiv.org/abs/1611.09268.
Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, Alban Desmaison, Andreas Köpf, Edward Yang, Zach DeVito, Martin Raison, Alykhan Tejani, Sasank Chilamkurthy, Benoit Steiner, Lu Fang, Junjie Bai, and Soumith Chintala. Pytorch: An imperative style, high-performance deep learning library, 2019. URL https://arxiv.org/abs/1912.01703.
Nils Reimers and Iryna Gurevych. Sentence-BERT: Sentence embeddings using Siamese BERT-networks. In Kentaro Inui, Jing Jiang, Vincent Ng, and Xiaojun Wan (eds.), Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), pp. 3982–3992, Hong Kong, China, November 2019. Association for Computational Linguistics. doi:10.18653/v1/D19-1410. URL https://aclanthology.org/D19-1410/.
Elvis Saravia, Hsien-Chi Toby Liu, Yen-Hao Huang, Junlin Wu, and Yi-Shin Chen. CARER: Contextualized affect representations for emotion recognition. In Ellen Riloff, David Chiang, Julia Hockenmaier, and Jun'ichi Tsujii (eds.), Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pp. 3687–3697, Brussels, Belgium, October-November 2018. Association for Computational Linguistics. doi: 10.18653/v1/D18-1404. URL https://aclanthology.org/D18-1404.
Darsh Shah, Tao Lei, Alessandro Moschitti, Salvatore Romeo, and Preslav Nakov. Adversarial domain adaptation for duplicate question detection. In Ellen Riloff, David Chiang, Julia Hockenmaier, and Jun'ichi Tsujii (eds.), Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pp. 1056–1063, Brussels, Belgium, October-November 2018. Association for Computational Linguistics. doi: 10.18653/v1/D18-1131. URL https://aclanthology.org/D18-1131.
Qwen Team. Qwen3 technical report, 2025. URL https://arxiv.org/abs/2505.09388.
Nikhil Vyas, Depen Morwani, Rosie Zhao, Itai Shapira, David Brandfonbrener, Lucas Janson, and Sham M. Kakade. SOAP: Improving and stabilizing shampoo using adam for language modeling. In The Thirteenth International Conference on Learning Representations, 2025. URL https://openreview.net/forum?id=IDxZhXrpNf.
Henning Wachsmuth, Shahbaz Syed, and Benno Stein. Retrieval of the best counterargument without prior topic knowledge. In ACL, 2018.
David Wadden, Shanchuan Lin, Kyle Lo, Lucy Lu Wang, Madeleine van Zuylen, Arman Cohan, and Hannaneh Hajishirzi. Fact or fiction: Verifying scientific claims. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pp. 7534–7550, Online, November 2020. Association for Computational Linguistics. doi: 10.18653/v1/2020.emnlp-main.609. URL https://aclanthology.org/2020.emnlp-main.609.
Songhao Wu, Zhongxin Chen, Yuxuan Liu, Heng Cui, Cong Li, and Rui Yan. Your unembedding matrix is secretly a feature lens for text embeddings. In Proceedings of the 32nd ACM SIGKDD Conference on Knowledge Discovery and Data Mining V.2, KDD '26, pp. 5454–5463, New York, NY, USA, 2026. Association for Computing Machinery. ISBN 9798400722592. doi: 10.1145/3770855.3818204. URL https://doi.org/10.1145/3770855.3818204.
An Yang, Baosong Yang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Zhou, Chengpeng Li, Chengyuan Li, Dayiheng Liu, Fei Huang, Guanting Dong, Haoran Wei, Huan Lin, Jialong Tang, Jialin Wang, Jian Yang, Jianhong Tu, Jianwei Zhang, Jianxin Ma, Jianxin Yang, Jin Xu, Jingren Zhou, Jinze Bai, Jinzheng He, Junyang Lin, Kai Dang, Keming Lu, Keqin Chen, Kexin Yang, Mei Li, Mingfeng Xue, Na Ni, Pei Zhang, Peng Wang, Ru Peng, Rui Men, Ruize Gao, Runji Lin, Shijie Wang, Shuai Bai, Sinan Tan, Tianhang Zhu, Tianhao Li, Tianyu Liu, Wenbin Ge, Xiaodong Deng, Xiaohuan Zhou, Xingzhang Ren, Xinyu Zhang, Xipin Wei, Xuancheng Ren, Xuejing Liu, Yang Fan, Yang Yao, Yichang Zhang, Yu Wan, Yunfei Chu, Yuqiong Liu, Zeyu Cui, Zhenru Zhang, Zhifang Guo, and Zhihao Fan. Qwen2 technical report, 2024. URL https://arxiv.org/abs/2407.10671.
Shubing Yang and Dongfang Zhao. Adawidth: Query-adaptive embedding width for dense retrieval, 2026. URL https://arxiv.org/abs/2608.23862.
Jinsung Yoon, Rajarishi Sinha, Sercan O Arik, and Tomas Pfister. Matryoshka-adaptor: Unsupervised and supervised tuning for smaller embedding dimensions. In Yaser Al-Onaizan, Mohit Bansal, and Yun-Nung Chen (eds.), Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, pp. 10318–10336, Miami, Florida, USA, November 2024. Association for Computational Linguistics. doi: 10.18653/v1/2024.emnlp-main.576. URL https://aclanthology.org/2024.emnlp-main.576/.
Biao Zhang, Lixin Chen, Tong Liu, and Bo Zheng. SMEC:rethinking matryoshka representation learning for retrieval embedding compression. In Christos Christodoulopoulos, Tanmoy Chakraborty, Carolyn Rose, and Violet Peng (eds.), Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, pp. 26209–26222, Suzhou, China, November 2025. Association for Computational Linguistics. ISBN 979-8-89176-332-6. doi:10.18653/v1/2025.emnlp-main.1332. URL https://aclanthology.org/2025.emnlp-main.1332/.
A IMPLEMENTATION DETAILS
A.1 GENERAL SETUP
Training Setup. We conduct the main experiments reported in Table 1 using backbones from widely used model families, including Qwen3-0.6B-Base (Team, 2025), Qwen2-0.5B (Yang et al., 2024), and Llama-3.2-1B (Grattafori et al., 2024). We further include Qwen3-4B-Base in the scaling experiments to evaluate performance at a larger model scale. Unless otherwise specified, we instantiate P as mean pooling to derive the embeddings. For MRL training setup, we follow the setup of Hu et al. (2025) and summarize the configuration for each backbone in Table 13, where denotes the i-th nested dimension and denotes its corresponding loss weight. For brevity, denotes the compression ratio rounded to the nearest power of two throughout the tables.
We provide further details on our training setup. For data preparation, we use the publicly available KaLM-embedding-finetuning-data dataset (Hu et al., 2025). By default, we train on a randomly sampled subset of 1,152,000 examples, approximately 1/5 of the full dataset, to keep the experimental cost manageable. Specifically, each training example consists of one query, one positive example, and seven hard negatives. We also use in-batch negatives across GPUs. For the long-run experiments in Section 4.3, we use the full dataset to evaluate performance under extended training.
Regarding the training hyperparameters, the per-device batch size is set to 96 queries, resulting in a global batch size of 384 across four GPUs. We adopt GradCache (Gao et al., 2021a) to reduce memory usage. The maximum sequence length is set to 512 tokens for both queries and passages. We use the AdamW optimizer (Kingma & Ba, 2017; Loshchilov & Hutter, 2019) with a learning rate of , a warmup ratio of 0.1 followed by linear decay, and a weight decay of 0.01. For contrastive learning, the temperature is set to 0.01 across all experimental settings. We initialize the entries of from and obtain the initial spectral basis via the eigenvectors of its Gram matrix. More implementation details and reproducibility information are provided in our codebase.
Evaluation. We conduct experiments on the widely used English MTEB benchmark (Muennighoff et al., 2022), which comprises 56 datasets spanning seven task categories: Semantic Textual Similarity (STS.), Classification (Class.), Clustering (Cluster.), Pair Classification (PairClass.), Reranking (Rerank.), Retrieval (Retr.), and Summarization (Sum.). For experiments presented in Figures 3 and 4, we report the average score over a 15-dataset evaluation subset detailed in Table 14.
For sentence encoding, both MRL and SpecMRL follow KaLM's task-specific inference instructions (Hu et al., 2025). For SpecMRL, we perform one orthogonal iteration in FP32 using the final parameter Gram matrix, starting from the spectral basis saved in the checkpoint. The resulting basis remains fixed throughout evaluation. For Qwen2-0.5B, we use the same nested dimensions for training and evaluation, following KaLM (Hu et al., 2025). We use unnormalized embeddings for classification and apply normalization at each target dimension for all other tasks.
A.2 IMPLEMENTATION OF ESE AND MIPIC
To focus on dimensional compression and facilitate a controlled comparison with MRL and SpecMRL, we adapt ESE and MIPIC to use only the final-layer representations of Qwen3-0.6B. Method-specific hyperparameters are selected following the original papers (LI et al., 2025; Huy et al., 2026). The implementations of all baselines are also available in our code repository. Detailed evaluation results for all compared methods are presented in Table 18.
ESE (L2C). We retain the learn-to-compress objective and apply it to the final-layer sentence embeddings, omitting intermediate-layer supervision. Contrastive losses are applied to the full 1024-dimensional representation and its 128-dimensional prefix. The latter additionally receives alignment supervision from the compression targets. Representations at other dimensions are obtained by prefix truncation at evaluation time, without additional training losses at those dimensions.
MIPIC (SIA). We combine the MRL objective with SIA applied to final-layer token representations. The nested dimensions and MRL loss weights follow Table 13. Using mean-pooled sentence
huggingface.co/datasets/KaLM-Embedding/KaLM-embedding-finetuning-data embeddings as anchors, SIA aligns token-importance distributions across dimensions through KL divergence. Linear CKA further aligns the relational structures of full-dimensional and truncated representations on token subsets selected by full-dimensional importance scores.
A.3 IMPLEMENTATION OF THE GRAM-MATRIX ABLATION
In this ablated variant, we retain the same learnable projection factor as in SpecMRL. For each nested dimension , we define and , and let denote the corresponding truncated backbone embeddings. To investigate whether the performance gains of SpecMRL arise solely from the introduction of additional learnable parameters, we directly apply to the corresponding truncated backbone embeddings, without performing any spectral decomposition. This produces the resulting -dimensional representations and , whose cosine similarity can be computed implicitly as:
At evaluation, we compute the Cholesky factorization for each target dimension. Each truncated embedding is mapped to the -dimensional embedding . This preserves the inner products and norms of the lifted representations, and hence their cosine similarities.
B COMPARISON WITH A LEARNABLE LINEAR READOUT
To assess whether a generic learnable readout can reproduce the gains of SpecMRL, we augment vanilla MRL with a linear layer as the readout. We jointly train this layer with the backbone and denote the resulting as MRL w. Linear.
As shown in Table 11, although both readouts can integrate all original channels, MRL w. Linear underperforms SpecMRL at every evaluated dimension, with the gap widening as the dimension decreases. In principle, an unconstrained linear layer can represent the orthogonal transformation used by SpecMRL. However, under the same MRL objective, this expressive capacity does not translate into comparable prefix quality, further supporting the value of SpecMRL's ordered spectral basis.
Table 11: Comparison with learnable readout.
| τ | SpecMRL | MRL w. Linear |
|---|---|---|
| 1 | 60.94 | 60.92 (-0.02) |
| 2 | 61.61 | 60.72 (-0.89) |
| 4 | 61.28 | 60.14 (-1.14) |
| 8 | 60.46 | 59.13 (-1.33) |
| 16 | 58.53 | 57.03 (-1.50) |
C PARAMETER SPACE REFLECTS EMBEDDING GEOMETRY
From a parametric perspective, each column of can be interpreted as an embedding-space vector, making the weight matrix structurally analogous to a cached collection of embeddings. We contend that encodes high-level semantic information, such that their collective organization in parameter space reflects the geometry of the learned embedding space during training.
We present our empirical observations to substantiate this structural correspondence. Specifically, we randomly sample sentences from the training set and encode them separately using MRL and SpecMRL to obtain calibration embeddings . Using these embeddings as a reference, we extract their principal directions and compare the resulting leading -dimensional subspace with the corresponding readout subspace using principal-angle overlap:
where denotes the readout basis of the model. The score lies in , with higher values indicating greater alignment. For random -dimensional subspaces in , the expected overlap is .
As shown in Table 12, both the overlap scores of MRL and SpecMRL exceed the random baseline, suggesting that the MRL objective encourages alignment between readout subspaces and embedding geometry. Viewed as a collection of embedding vectors, the parameter matrix can be interpreted as a learned proxy for the full population of sentence embeddings, fitting their geometry during training. Compared with the fixed coordinate basis used by MRL, the spectral readout subspaces of SpecMRL exhibit stronger alignment with the dominant subspaces of sentence embeddings. This closer alignment may help preserve informative embedding structure under dimensional readout, thereby partially explaining the improved low-dimensional performance of SpecMRL.
Table 12: Readout subspace alignment.
| k | Rand | MRL | SpecMRL |
|---|---|---|---|
| 64 | 0.0628 | 0.2522 | 0.3025 (+ 5.03%) |
| 128 | 0.1237 | 0.2783 | 0.4295 (+ 15.12%) |
| 256 | 0.2513 | 0.3171 | 0.4715 (+ 15.44%) |
| 512 | 0.4999 | 0.5197 | 0.5518 (+ 3.21%) |
For SpecMRL, the readout basis used is obtained by power iteration, following the procedure described in Appendix A. We further verify this approximation against the ordered eigenbasis computed directly from the same Gram matrix. At the final checkpoint, their subspace overlap exceeds 99.9% for all evaluated k, indicating that the two bases span nearly identical leading subspaces.
D ENERGY CONCENTRATION IN THE TAILING SPECTRAL SUBSPACE
We conduct further analyses to investigate why dropping the final spectral bands can improve SpecMRL's downstream performance. Motivated by the analysis in (Wu et al., 2026), we examine the behavior of SpecMRL-derived representations when projected onto different spectral bands.
Specifically, we first partition the spectrum into 20 consecutive bands ordered by eigenvalue. We then sample passages from the MS MARCO corpus (Nguyen et al., 2016) to obtain the calibration embeddings. Let denote the projection of onto the -th spectral direction. The average energy fraction of band over the calibration embeddings is:
Figure 5 shows that the final band accounts for a large fraction of energy (21.72%), despite spanning only 5% of the spectral directions. Ideally, the energy should decay smoothly across the ordered spectral bands, with the first band accounting for the largest share, consistent with its intended role in capturing the most informative semantic directions in MRL. The decay pattern reflects the decreasing semantic importance of later spectral bands, while the smoothness helps maintain isotropy by avoiding concentration in a small subset of directions. In turn, the disproportionate concentration in the final band indicates increased anisotropy, suggesting a departure from the expected geometry. Similar observations have also been reported by Wu et al. (2026). Although the cause of this phenomenon remains unclear, we hope this analysis provides an initial explanation for the observed improvement and motivates further investigation.

Figure 5: Average projection energy fractions.
E COMPUTATIONAL COMPLEXITY
This section provides a supplementary analysis of SpecMRL's computational overhead relative to MRL. The additional computations consist of Gram matrix construction and orthogonal basis update, followed by projecting a batch of embeddings of dimension . As shown in Fig. 2, the orthogonal basis update involves only one matrix multiplication and one QR factorization (Householder, 1958). Counting a multiply-add as two FLOPs, the matrix multiplication requires FLOPs, while QR factorization costs FLOPs in total: for factorization and another for explicitly forming the full orthogonal matrix. The additional forward cost is therefore given as:
For comparison, let denote the number of linear weights, and the number of tokens processed per device. Following the approximation in (Kaplan et al., 2020), the backbone forward cost is:
Substituting the Qwen3-0.6B model configuration, the additional forward cost remains below 1% of the backbone forward FLOPs, demonstrating the low overhead of our power-iteration design. This computational efficiency is further validated by the empirical results presented in Section 4.1.3.
Table 13: MRL training configurations for different backbone models.
| Checkpoint [HF] | MRL Setup | ||||||
|---|---|---|---|---|---|---|---|
| Qwen3-0.6B-Base 😊 | 1024 (1.0) | 512 (0.3) | 256 (0.2) | 128 (0.1) | 64 (0.1) | ||
| Qwen2-0.5B 😊 | 896 (1.0) | 512 (0.3) | 256 (0.2) | 128 (0.1) | 64 (0.1) | ||
| Llama-3.2-1B 😊 | 2048 (1.0) | 1024 (0.3) | 512 (0.2) | 256 (0.1) | 128 (0.1) | ||
| Qwen3-4B-Base 😊 | 2560 (1.0) | 1024 (0.3) | 512 (0.2) | 256 (0.1) | 128 (0.1) | ||
Table 14: MTEB evaluation metrics and the 15-dataset subset used for scaling experiments.
| Category | Metric | Dataset |
|---|---|---|
| STS. (3) | Spearman | STS17 (Cer et al., 2017a)SICK-R (Marelli et al., 2014)STSBenchmark (Cer et al., 2017b) |
| Class. (3) | Accuracy | Banking77Classification (Casanueva et al., 2020)EmotionClassification (Saravia et al., 2018)MassiveIntentClassification (FitzGerald et al., 2022) |
| Cluster. (3) | V-measure | BiorxivClusteringS2S (Muennighoff et al., 2022)MedrxivClusteringS2S (Muennighoff et al., 2022)TwentyNewsgroupsClustering (Lang, 1995) |
| PairClass. (1) | AP | SprintDuplicateQuestions (Shah et al., 2018) |
| Rerank. (2) | MAP | SciDocsRR (Cohan et al., 2020)StackOverflowDupQuestions (Liu et al., 2018) |
| Retr. (3) | nDCG@10 | SciFact (Wadden et al., 2020)ArguAna (Wachsmuth et al., 2018)NFCorpus (Boteva et al., 2016) |
Table 15: Task-level breakdown of MTEB results in Table 1. Shaded rows denote SpecMRL, bold values indicate better overall results, parenthetical values report gains over MRL under each setup.
| STS. | Class. | Cluster. | PairClass. | Rerank. | Retr. | Sum. | Avg | |
|---|---|---|---|---|---|---|---|---|
| # Datasets | 10 | 12 | 11 | 3 | 4 | 15 | 1 | 56 |
| Qwen3-0.6B | ||||||||
| 1024 | 80.77 | 74.25 | 48.72 | 72.74 | 48.93 | 49.02 | 30.38 | 60.97 |
| 80.24 | 74.45 | 49.06 | 72.44 | 47.67 | 49.30 | 29.66 | 60.94 (-0.03) | |
| 512 | 80.87 | 73.99 | 48.43 | 72.09 | 48.25 | 48.10 | 29.92 | 60.54 |
| 80.83 | 75.11 | 49.43 | 74.49 | 50.98 | 49.24 | 30.46 | 61.61 (+1.07) | |
| 256 | 80.21 | 73.45 | 47.89 | 71.42 | 47.11 | 45.62 | 29.00 | 59.40 |
| 81.04 | 74.98 | 49.44 | 74.46 | 50.75 | 48.08 | 30.30 | 61.28 (+1.88) | |
| 128 | 79.49 | 72.99 | 47.43 | 68.29 | 45.47 | 42.18 | 29.24 | 57.88 |
| 80.76 | 74.56 | 49.28 | 73.90 | 49.95 | 45.93 | 30.74 | 60.46 (+2.58) | |
| 64 | 78.09 | 72.11 | 46.54 | 63.87 | 42.52 | 34.38 | 29.63 | 54.73 |
| 80.18 | 73.89 | 48.89 | 72.43 | 48.07 | 40.79 | 29.86 | 58.53 (+3.80) | |
| Qwen2-0.5B | ||||||||
| 896 | 78.57 | 71.82 | 46.99 | 71.52 | 46.68 | 47.04 | 30.59 | 58.96 |
| 78.72 | 71.80 | 46.59 | 71.33 | 46.24 | 46.75 | 27.87 | 58.74 (-0.22) | |
| 512 | 78.49 | 72.10 | 46.80 | 70.91 | 46.13 | 46.14 | 31.13 | 58.67 |
| 79.25 | 73.07 | 47.05 | 73.22 | 48.98 | 46.51 | 28.31 | 59.44 (+0.77) | |
| 256 | 78.41 | 72.39 | 46.82 | 71.23 | 46.49 | 44.57 | 30.18 | 58.32 |
| 79.40 | 72.94 | 47.11 | 73.07 | 48.85 | 45.64 | 28.37 | 59.20 (+0.88) | |
| 128 | 77.71 | 72.26 | 46.68 | 69.69 | 45.03 | 41.94 | 30.67 | 57.26 |
| 79.29 | 72.79 | 46.96 | 72.25 | 48.53 | 43.34 | 28.52 | 58.44 (+1.18) | |
| 64 | 76.41 | 71.86 | 46.42 | 67.69 | 43.74 | 36.48 | 30.47 | 55.23 |
| 78.33 | 72.37 | 46.72 | 70.00 | 46.55 | 38.72 | 27.59 | 56.61 (+1.38) | |
| Llama3.2-1B | ||||||||
| 2048 | 80.91 | 75.77 | 50.76 | 75.43 | 47.71 | 49.60 | 29.64 | 61.92 |
| 80.71 | 76.05 | 50.28 | 76.02 | 48.19 | 49.39 | 30.18 | 61.87 (-0.05) | |
| 1024 | 80.79 | 75.84 | 50.75 | 75.22 | 46.97 | 49.17 | 30.06 | 61.74 |
| 81.09 | 76.61 | 50.60 | 76.70 | 51.27 | 49.53 | 30.35 | 62.42 (+0.68) | |
| 512 | 80.55 | 75.73 | 50.64 | 74.77 | 46.63 | 48.30 | 29.40 | 61.36 |
| 81.22 | 76.59 | 50.67 | 76.62 | 51.06 | 48.80 | 30.05 | 62.23 (+0.87) | |
| 256 | 80.31 | 75.40 | 50.49 | 74.00 | 45.30 | 46.59 | 29.54 | 60.62 |
| 81.28 | 76.52 | 50.53 | 76.29 | 50.57 | 47.52 | 30.19 | 61.80 (+1.18) | |
| 128 | 79.88 | 74.79 | 50.34 | 73.20 | 44.88 | 43.21 | 30.29 | 59.42 |
| 81.32 | 76.28 | 50.48 | 75.40 | 49.69 | 44.74 | 30.91 | 60.91 (+1.49) | |
Table 16: Task-level breakdown of FeatMRL variants. Bold and underlined average scores indicate the best and second-best FeatMRL variants within each group.
| STS. | Class. | Cluster. | PairClass. | Rerank. | Retr. | Sum. | Avg | |
|---|---|---|---|---|---|---|---|---|
| # Datasets | 10 | 12 | 11 | 3 | 4 | 15 | 1 | 56 |
| 80.24 | 74.45 | 49.06 | 72.44 | 47.67 | 49.30 | 29.66 | 60.94 | |
| 80.70 | 73.08 | 48.86 | 72.31 | 49.35 | 48.99 | 29.80 | 60.72 (-0.22) | |
| 80.73 | 72.54 | 48.77 | 72.27 | 49.82 | 49.10 | 31.06 | 60.68 (-0.26) | |
| 80.65 | 72.30 | 48.79 | 72.87 | 49.54 | 49.29 | 31.65 | 60.69 (-0.25) | |
| 80.78 | 71.97 | 48.85 | 72.37 | 48.71 | 48.72 | 29.69 | 60.38 (-0.56) | |
| 80.83 | 75.11 | 49.43 | 74.49 | 50.98 | 49.24 | 30.46 | 61.61 | |
| 80.85 | 72.86 | 48.79 | 71.78 | 48.62 | 48.43 | 29.41 | 60.45 (-1.16) | |
| 80.86 | 72.37 | 48.68 | 71.72 | 49.22 | 48.31 | 30.96 | 60.36 (-1.25) | |
| 80.79 | 71.98 | 48.56 | 72.45 | 48.96 | 48.85 | 31.85 | 60.42 (-1.19) | |
| 80.97 | 71.69 | 48.69 | 71.77 | 47.89 | 47.92 | 29.47 | 60.01 (-1.60) | |
| 81.04 | 74.98 | 49.44 | 74.46 | 50.75 | 48.08 | 30.30 | 61.28 | |
| 80.98 | 72.73 | 48.66 | 70.87 | 47.60 | 47.28 | 29.31 | 59.99 (-1.29) | |
| 80.98 | 71.98 | 48.46 | 70.98 | 48.32 | 47.20 | 29.82 | 59.84 (-1.44) | |
| 80.79 | 71.69 | 48.51 | 71.68 | 48.02 | 47.66 | 31.25 | 59.91 (-1.37) | |
| 80.99 | 71.32 | 48.48 | 70.76 | 46.82 | 46.34 | 30.29 | 59.35 (-1.93) | |
| 80.76 | 74.56 | 49.28 | 73.90 | 49.95 | 45.93 | 30.74 | 60.46 | |
| 80.54 | 72.27 | 48.47 | 68.55 | 45.75 | 44.56 | 30.96 | 58.82 (-1.64) | |
| 80.49 | 71.67 | 48.17 | 68.77 | 46.44 | 44.58 | 30.41 | 58.68 (-1.78) | |
| 80.39 | 71.21 | 48.22 | 69.37 | 46.24 | 45.12 | 31.54 | 58.75 (-1.71) | |
| 80.45 | 70.89 | 48.24 | 68.63 | 44.96 | 43.54 | 31.35 | 58.14 (-2.32) | |
| 80.18 | 73.89 | 48.89 | 72.43 | 48.07 | 40.79 | 29.86 | 58.53 | |
| 78.85 | 71.60 | 47.86 | 63.11 | 42.51 | 37.47 | 30.86 | 55.83 (-2.70) | |
| 78.73 | 70.95 | 47.58 | 63.54 | 43.23 | 37.26 | 29.82 | 55.62 (-2.91) | |
| 78.71 | 70.78 | 47.76 | 63.82 | 43.15 | 38.35 | 29.59 | 55.90 (-2.63) | |
| 78.82 | 70.28 | 47.79 | 63.63 | 41.91 | 36.18 | 30.12 | 55.15 (-3.38) |
Table 17: Task-level breakdown of MTEB in an over-training regime on Qwen3-0.6B, with training steps extended from 3K to 15K. The improvement of SpecMRL remains consistent with Table 1, suggesting that the gains of SpecMRL persist beyond faster convergence.
| STS. | Class. | Cluster. | PairClass. | Rerank. | Retr. | Sum. | Avg | |
|---|---|---|---|---|---|---|---|---|
| # Datasets | 10 | 12 | 11 | 3 | 4 | 15 | 1 | 56 |
| 1024 () | 80.52 | 81.40 | 52.79 | 70.19 | 48.99 | 50.69 | 28.91 | 63.54 |
| 80.74 | 81.15 | 52.36 | 68.12 | 47.86 | 50.59 | 30.38 | 63.25 (-0.29) | |
| 512 () | 80.53 | 81.34 | 52.74 | 69.44 | 48.43 | 49.80 | 28.28 | 63.19 |
| 81.35 | 81.50 | 52.64 | 71.39 | 50.95 | 50.59 | 29.75 | 63.88 (+0.69) | |
| 256 () | 80.20 | 81.12 | 52.49 | 68.01 | 46.83 | 47.52 | 27.82 | 62.23 |
| 81.55 | 81.41 | 52.60 | 71.44 | 50.85 | 49.69 | 29.50 | 63.64 (+1.41) | |
| 128 () | 79.50 | 80.91 | 52.28 | 64.48 | 45.29 | 44.91 | 28.53 | 61.03 |
| 81.23 | 81.09 | 52.52 | 70.75 | 50.42 | 47.33 | 28.13 | 62.77 (+1.74) | |
| 64 () | 78.21 | 80.29 | 51.88 | 61.40 | 43.08 | 39.03 | 28.71 | 58.69 |
| 80.45 | 80.23 | 52.28 | 69.22 | 49.26 | 42.12 | 28.85 | 60.85 (+2.16) |
Table 18: Task-level breakdown of MTEB results for SpecMRL and existing MRL variants. Column denotes the average MTEB results over non-classification MTEB datasets.
| Method | STS. | Class. | Cluster. | PairClass. | Rerank. | Retr. | Sum. | ||
|---|---|---|---|---|---|---|---|---|---|
| 1024 () | MRL | 80.77 | 74.25 | 48.72 | 72.74 | 48.93 | 49.02 | 30.38 | 57.35 |
| ESE | 81.12 | 59.88 | 48.61 | 70.96 | 49.12 | 49.49 | 29.93 | 57.44 (+0.10) | |
| MIPIC | 79.88 | 73.05 | 48.75 | 69.69 | 48.51 | 49.21 | 30.77 | 56.98 (-0.37) | |
| SpecMRL | 80.24 | 74.45 | 49.06 | 72.44 | 47.67 | 49.30 | 29.66 | 57.26 (-0.09) | |
| 512 () | MRL | 80.87 | 73.99 | 48.43 | 72.09 | 48.25 | 48.10 | 29.92 | 56.87 |
| ESE | 80.92 | 59.12 | 48.47 | 69.47 | 48.49 | 48.23 | 28.85 | 56.75 (-0.12) | |
| MIPIC | 80.02 | 72.82 | 48.56 | 68.49 | 47.94 | 48.03 | 30.12 | 56.41 (-0.45) | |
| SpecMRL | 80.83 | 75.11 | 49.43 | 74.49 | 50.98 | 49.24 | 30.46 | 57.92 (+1.05) | |
| 256 () | MRL | 80.21 | 73.45 | 47.89 | 71.42 | 47.11 | 45.62 | 29.00 | 55.57 |
| ESE | 80.40 | 58.10 | 48.17 | 71.04 | 48.07 | 46.06 | 30.02 | 55.91 (+0.35) | |
| MIPIC | 79.87 | 72.47 | 48.23 | 67.35 | 46.39 | 46.03 | 31.57 | 55.43 (-0.14) | |
| SpecMRL | 81.04 | 74.98 | 49.44 | 74.46 | 50.75 | 48.08 | 30.30 | 57.55 (+1.98) | |
| 128 () | MRL | 79.49 | 72.99 | 47.43 | 68.29 | 45.47 | 42.18 | 29.24 | 53.76 |
| ESE | 79.79 | 57.19 | 47.81 | 68.43 | 47.33 | 43.76 | 29.12 | 54.63 (+0.88) | |
| MIPIC | 79.36 | 72.07 | 47.96 | 63.52 | 44.77 | 43.13 | 30.51 | 53.82 (+0.07) | |
| SpecMRL | 80.76 | 74.56 | 49.28 | 73.90 | 49.95 | 45.93 | 30.74 | 56.61 (+2.85) | |
| 64 () | MRL | 78.09 | 72.11 | 46.54 | 63.87 | 42.52 | 34.38 | 29.63 | 50.00 |
| ESE | 77.59 | 54.63 | 46.45 | 61.87 | 43.13 | 32.43 | 27.75 | 49.07 (-0.92) | |
| MIPIC | 78.08 | 71.20 | 47.20 | 59.58 | 42.22 | 36.88 | 29.96 | 50.70 (+0.70) | |
| SpecMRL | 80.18 | 73.89 | 48.89 | 72.43 | 48.07 | 40.79 | 29.86 | 54.34 (+4.34) |