Papers
Topics
Authors
Recent
Search
2000 character limit reached

Sqrank: Partition Statistic & LoRA Scaling

Updated 5 July 2026
  • Sqrank is a technical term with dual meanings, defining a combinatorial statistic on integer partitions and a scaling rule in parameter-efficient fine-tuning.
  • In partition theory, sqrank is computed via Durfee squares, rim-hook removals, and Frobenius coordinates, linking its distribution to odd minimal excludants and Gaussian q-binomials.
  • In LoRA fine-tuning, sqrank refers to the rank-stabilized scaling factor (α/√r) that maintains stable activation and gradient moments during training.

Searching arXiv for papers relevant to “Sqrank,” including partition-theoretic and LoRA-related usages. I’m going to look up the most relevant arXiv entries for “sqrank” and closely related usages. Sqrank is a polysemous technical term in current arXiv literature. In partition theory, it denotes a recently introduced statistic on integer partitions defined through the Durfee square, repeated rim-hook removal, and Frobenius coordinates; its distribution is linked to odd minimal excludants, Gaussian qq-binomials, configuration sums, and affine-crystal combinatorics (Takagi, 2024). In parameter-efficient fine-tuning for LLMs, “Sqrank” is also used for the rank-stabilized LoRA scaling rule that replaces the original α/r\alpha/r factor by α/r\alpha/\sqrt r in low-rank adapters (Kalajdzievski, 2023). These usages are distinct, and both should also be separated from “stable rank” in representation-geometry-based alignment and from classical rank queries in succinct data structures [(Tang et al., 2 Dec 2025); (0907.1103)].

1. Partition-theoretic definition

For an integer partition λn\lambda\vdash n with Ferrers diagram λ\lambda, the partition-theoretic sqrank is defined from the Durfee square D0(λ)D_0(\lambda) of side

n0(λ)=d0.n_0(\lambda)=d_0.

Let A0(λ)A_0(\lambda) be the subdiagram consisting of the first n0n_0 rows of λ\lambda outside α/r\alpha/r0. From α/r\alpha/r1, one repeatedly removes the longest of the rightmost rim hooks of arm-length α/r\alpha/r2 until the residual diagram α/r\alpha/r3 has fewer than α/r\alpha/r4 columns. If the Frobenius representation of α/r\alpha/r5 is

α/r\alpha/r6

with

α/r\alpha/r7

then

α/r\alpha/r8

The same source states an equivalent interpretation: sqrank measures how “deep” one can strip horizontal–vertical rim-hooks of length α/r\alpha/r9 from the subdiagram to the right of the Durfee square, and then reads off the maximal difference of leg–arm lengths in the residual shape plus an offset (Takagi, 2024).

A later affine-crystal treatment restates the same statistic as

α/r\alpha/\sqrt r0

and adds an equivalent characterization in terms of a α/r\alpha/\sqrt r1–α/r\alpha/\sqrt r2 encoding of α/r\alpha/\sqrt r3. If α/r\alpha/\sqrt r4 is encoded as a binary string α/r\alpha/\sqrt r5 of length α/r\alpha/\sqrt r6 via

α/r\alpha/\sqrt r7

then sqrank is the unique α/r\alpha/\sqrt r8 with α/r\alpha/\sqrt r9 such that the Kashiwara function satisfies λn\lambda\vdash n0 (Miyazawa et al., 29 May 2026).

2. Enumerative formulas and the odd minimal excludant

Fix λn\lambda\vdash n1, and define

λn\lambda\vdash n2

The generating function given for this distribution is

λn\lambda\vdash n3

where

λn\lambda\vdash n4

The same generating function is also written in closed form as

λn\lambda\vdash n5

This leads to the principal equidistribution statement: if λn\lambda\vdash n6 is the smallest positive odd integer not appearing as a part of λn\lambda\vdash n7, then

λn\lambda\vdash n8

The paper presents this as Theorem 2.1(1) and proves it by deriving the same generating function from mex-count arguments and from an energy-preserving bijection through restricted partitions and bit-sequences (Takagi, 2024).

The crystal-theoretic treatment gives the same one-variable generating function in the notation

λn\lambda\vdash n9

namely

λ\lambda0

and also records the two-variable series

λ\lambda1

From the identical generating function for odd mex, it concludes that for each λ\lambda2, partitions of λ\lambda3 with sqrank λ\lambda4 are equinumerous with those of odd mex λ\lambda5, and in particular that λ\lambda6 (Miyazawa et al., 29 May 2026).

3. Bosonic polynomials, bit-paths, and affine crystals

A central structural feature of sqrank is its appearance in a polynomial bosonic form. The polynomial

λ\lambda7

enumerates length-λ\lambda8 bit sequences with λ\lambda9 ones by the energy

D0(λ)D_0(\lambda)0

The unrefined configuration sum satisfies

D0(λ)D_0(\lambda)1

while the refined form

D0(λ)D_0(\lambda)2

counts paths of fixed path-minimum D0(λ)D_0(\lambda)3. The same source states that these exactly match the statistical-mechanics configuration sums of an integrable box–ball automaton, and that sqrank arises via an energy-preserving mapping from partitions to bit-paths (Takagi, 2024).

The same work isolates the special case

D0(λ)D_0(\lambda)4

with recursion

D0(λ)D_0(\lambda)5

boundary conditions

D0(λ)D_0(\lambda)6

and solution

D0(λ)D_0(\lambda)7

This places sqrank within a family of Gaussian-polynomial identities rather than as an isolated partition statistic (Takagi, 2024).

In affine-crystal language, sqrank controls the position of a partition inside D0(λ)D_0(\lambda)8 representation-theoretic structure. For D0(λ)D_0(\lambda)9, the level-n0(λ)=d0.n_0(\lambda)=d_0.0 crystal, there is an explicit bijection

n0(λ)=d0.n_0(\lambda)=d_0.1

such that the image path is n0(λ)=d0.n_0(\lambda)=d_0.2-highest, lies in the n0(λ)=d0.n_0(\lambda)=d_0.3-node n0(λ)=d0.n_0(\lambda)=d_0.4-component, and has left-energy

n0(λ)=d0.n_0(\lambda)=d_0.5

The construction proceeds by encoding n0(λ)=d0.n_0(\lambda)=d_0.6 as a binary string, applying n0(λ)=d0.n_0(\lambda)=d_0.7 to obtain an n0(λ)=d0.n_0(\lambda)=d_0.8-highest element in a tensor crystal, inflating adjacent n0(λ)=d0.n_0(\lambda)=d_0.9, and then inserting blocks of type A0(λ)A_0(\lambda)0 or A0(λ)A_0(\lambda)1 according to the remaining partition data. The resulting bijection preserves grading (Miyazawa et al., 29 May 2026).

The 2026 paper also interprets the same structure in the Bernard–Pasquier–Serban spinon picture. For a vacuum-sector path, if the A0(λ)A_0(\lambda)2-th string carries two spinons of momenta

A0(λ)A_0(\lambda)3

then

A0(λ)A_0(\lambda)4

It then states that sqrank enters as A0(λ)A_0(\lambda)5 in the A0(λ)A_0(\lambda)6-dimensional component and controls the total number of spinon excitations and the form of the Virasoro generator A0(λ)A_0(\lambda)7 spectrum in the spinon basis (Miyazawa et al., 29 May 2026).

4. Worked examples and source-level discrepancies

The supplied literature contains incompatible worked examples for partitions of A0(λ)A_0(\lambda)8. One source lists the five partitions of A0(λ)A_0(\lambda)9 and assigns the following sqrank values: n0n_00, n0n_01, n0n_02, n0n_03, and n0n_04 (Takagi, 2024). A later source gives instead: n0n_05, n0n_06, n0n_07, n0n_08, and n0n_09 (Miyazawa et al., 29 May 2026).

Partition of λ\lambda0 Value in (Takagi, 2024) Value in (Miyazawa et al., 29 May 2026)
λ\lambda1 λ\lambda2 λ\lambda3
λ\lambda4 λ\lambda5 λ\lambda6
λ\lambda7 λ\lambda8 λ\lambda9
α/r\alpha/r00 α/r\alpha/r01 α/r\alpha/r02
α/r\alpha/r03 α/r\alpha/r04 α/r\alpha/r05

The 2026 source explicitly flags a correction issue for α/r\alpha/r06 by first writing a computation that would suggest a different value and then stating: “Careful,” followed by the assertion that the explicit bijection in Section 1 yields α/r\alpha/r07 (Miyazawa et al., 29 May 2026). A plausible implication is that small-α/r\alpha/r08 examples require consultation of the full combinatorial convention being used, especially for the empty residual diagram α/r\alpha/r09 and its interaction with the crystal-theoretic normalization.

5. “Sqrank” in rank-stabilized LoRA

In large-language-model fine-tuning, “Sqrank” is used as a name for the rank-stabilized LoRA scaling factor. For a pre-trained linear layer

α/r\alpha/r10

LoRA adds a trainable low-rank adapter

α/r\alpha/r11

where

α/r\alpha/r12

The original LoRA choice is

α/r\alpha/r13

Kalajdzievski studies the limit α/r\alpha/r14 and defines “rank-stabilized” to mean that both activations and gradients remain α/r\alpha/r15. Under initialization α/r\alpha/r16, α/r\alpha/r17 iid, and adapter

α/r\alpha/r18

the only choice of α/r\alpha/r19 as α/r\alpha/r20 that makes all forward-pass moments α/r\alpha/r21 and all backward-pass moments α/r\alpha/r22 remain α/r\alpha/r23 for every fixed α/r\alpha/r24 is

α/r\alpha/r25

The derivation uses the expansions

α/r\alpha/r26

and hence

α/r\alpha/r27

Because α/r\alpha/r28, the dominant term scales like α/r\alpha/r29, so stability requires

α/r\alpha/r30

The paper refers to the resulting method as rank-stabilized LoRA, or rsLoRA (Kalajdzievski, 2023).

The practical prescription is correspondingly simple: replace the usual α/r\alpha/r31 scaling by α/r\alpha/r32, leaving the training loop and optimizer step unchanged. At inference, one folds α/r\alpha/r33 into α/r\alpha/r34 exactly as in standard LoRA, so there is zero extra cost at inference time (Kalajdzievski, 2023).

The empirical results summarized for this usage are specific. On Llama 2 7B with OpenOrca instruction tuning on α/r\alpha/r35K examples, using ranks α/r\alpha/r36 and AdamW with learning rate α/r\alpha/r37, original LoRA produces perplexity curves that “essentially overlap,” while rsLoRA improves perplexity monotonically with rank. The same study reports that, at step α/r\alpha/r38, LoRA gradient norms drop roughly like α/r\alpha/r39, whereas rsLoRA keeps all ranks within the same order of magnitude throughout training. Additional ablations report the same pattern with SGD, with GPT-J 6B on GSM8K using Adafactor, when adapters are inserted only in attention, and in learning-rate sweeps where LoRA rank α/r\alpha/r40 cannot match rsLoRA rank α/r\alpha/r41 even at the best learning rate (Kalajdzievski, 2023).

6. Distinction from neighboring “rank” notions

Two nearby notions are easily conflated with Sqrank but are mathematically separate.

First, “stable rank” in SR-GRPO is a geometric statistic of hidden-state matrices, not the partition statistic and not the rsLoRA scaling rule. For a response with final hidden activations assembled into α/r\alpha/r42 and singular values α/r\alpha/r43, stable rank is

α/r\alpha/r44

which lies in α/r\alpha/r45 and measures effective dimensionality. In SR-GRPO it is used as an intrinsic reward, with the reported figures of α/r\alpha/r46 accuracy on RewardBench and an average improvement of α/r\alpha/r47 percentage points over greedy decoding via Best-of-α/r\alpha/r48 sampling (Tang et al., 2 Dec 2025).

Second, “rank” in succinct data structures is the prefix-sum query

α/r\alpha/r49

on a static bit-vector α/r\alpha/r50. In the cell-probe model with α/r\alpha/r51-bit cells, the lower bound states that any data structure answering rank in α/r\alpha/r52 probes must use at least

α/r\alpha/r53

bits of space, matching the upper bound up to the distinction between α/r\alpha/r54 and α/r\alpha/r55 when α/r\alpha/r56 (0907.1103).

This separation matters because the shared word “rank” masks unrelated objects: a partition statistic derived from Ferrers diagrams, a scaling law for low-rank adaptation, a matrix effective-dimensionality functional, and a prefix-sum query primitive.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Sqrank.