Papers
Topics
Authors
Recent
Search
2000 character limit reached

KOTMS: Kronecker Orthogonal Tri-Modal Shaping

Updated 6 July 2026
  • KOTMS is a geometric module in TWLA that learns an orthogonal rotation to reshape pretrained weight distributions into a structured tri-modal form aligned with ternary quantization anchors.
  • It employs a Kronecker-structured rotation that reduces storage and compute overhead while statistically suppressing activation outliers through inverse rotation equivalence.
  • Empirical ablations show that KOTMS, when combined with E2M-ATQ and ILA-AMP, significantly improves low-bit quantization performance of large language models.

to=arxiv_search 大发游戏 _俺去也کرد് code _天天_json {"query":"(Zhao et al., 11 Jun 2026) TWLA Kronecker Orthogonal Tri-Modal Shaping (Wu et al., 10 Jun 2025) KrossFuse", "max_results": 5, "sort_by": "submittedDate"} to=arxiv_search code 北京赛车前json {"query":"(Zhao et al., 11 Jun 2026) TWLA Kronecker Orthogonal Tri-Modal Shaping (Wu et al., 10 Jun 2025) KrossFuse","max_results":5,"sort_by":"submittedDate"} to=search_arxiv 大发快三的 code 天天彩票与你同行_json {"query":"(Zhao et al., 11 Jun 2026)", "max_results": 3} to=search_arxiv code പ്പോൾjson {"query":"(Zhao et al., 11 Jun 2026)","max_results":3} Kronecker Orthogonal Tri-Modal Shaping (KOTMS) is the rotation-and-distribution-shaping component of TWLA, a post-training quantization framework for LLMs that targets ternary weights, denoted W1.58\mathrm{W1.58}, together with low-bit activations, especially A4\mathrm{A4}. KOTMS does not itself perform ternarization. Instead, it learns a structured orthogonal coordinate transform under which pretrained weight matrices become more compatible with a ternary codebook, while the same transform, by orthogonal equivalence, statistically suppresses activation outliers. In this sense, KOTMS is a geometric preprocessing mechanism that links weight-side codebook mismatch to activation-side dynamic-range stabilization (Zhao et al., 11 Jun 2026).

1. Position within TWLA and the meaning of “tri-modal”

Within TWLA, KOTMS is one of three modules. The framework comprises E2M-ATQ, KOTMS, and ILA-AMP, and their roles are explicitly differentiated rather than merged into a single optimization stage (Zhao et al., 11 Jun 2026).

Module Role Main object
E2M-ATQ Optimizes asymmetric ternary quantization parameters for weights (μ,α,T)(\mu,\alpha,T)
KOTMS Learns a structured orthogonal rotation that reshapes weights and indirectly smooths activations R=R1R2\mathbf{R}=\mathbf{R}_1\otimes\mathbf{R}_2
ILA-AMP Assigns mixed activation precision across layers Layerwise activation bits

The motivation for KOTMS is a paired empirical observation about pretrained LLMs. Weights are often approximately unimodal Gaussian-like per channel and concentrated near zero, whereas activations are often heavy-tailed with extreme outliers. This combination is problematic under the aggressive W1.58A4\mathrm{W1.58A4} target. E2M-ATQ can improve continuous ternary parameters for a fixed ternary pattern, but, as the paper states, “such parameter relocation does not change the geometric mismatch between pretrained weights and the ternary codebook” (Zhao et al., 11 Jun 2026).

The phrase “tri-modal shaping” refers to the intended organization of transformed weight values around three attraction regions, namely

{ci,0,+ci}.\{-c_i,0,+c_i\}.

Accordingly, “tri-modal” does not denote three data modalities. It denotes a three-mode distributional structure aligned with ternary quantization. The purpose is to make the final hard projection less sensitive to perturbations: values clustered near negative, zero, and positive anchors are better matched to a ternary codebook than values drawn from a near-unimodal bell shape.

This also clarifies KOTMS’s scope. It is neither a standalone quantizer nor a generic rotation method. Its role is to change the coordinate system in which ternarization is carried out so that the ternary projection becomes lower-error and the same orthogonal mixing statistically suppresses activation outliers.

2. Formal definition and shaping objective

For a weight matrix WRn×m\mathbf{W}\in\mathbb{R}^{n\times m}, KOTMS rotates the ii-th row wi\mathbf{w}_i by a learnable orthogonal transform RRm×m\mathbf{R}\in\mathbb{R}^{m\times m}: A4\mathrm{A4}0 Here A4\mathrm{A4}1 is the number of output rows or channels, A4\mathrm{A4}2 is the rotated hidden dimension, and A4\mathrm{A4}3 is the A4\mathrm{A4}4-th entry in the rotated row (Zhao et al., 11 Jun 2026).

The central shaping loss is a symmetric three-component Gaussian mixture. For each row A4\mathrm{A4}5, the anchors are A4\mathrm{A4}6, and the paper defines

A4\mathrm{A4}7

with

A4\mathrm{A4}8

and

A4\mathrm{A4}9

This objective makes entries near (μ,α,T)(\mu,\alpha,T)0, (μ,α,T)(\mu,\alpha,T)1, and (μ,α,T)(\mu,\alpha,T)2 high-likelihood under a row-wise Gaussian mixture. In the appendix, the paper gives a small-variance interpretation: (μ,α,T)(\mu,\alpha,T)3 That derivation formalizes the shaping loss as a differentiable soft projection onto a ternary-compatible set.

KOTMS also includes explicit zero-mode control. Defining posterior responsibilities

(μ,α,T)(\mu,\alpha,T)4

with

(μ,α,T)(\mu,\alpha,T)5

the average zero responsibility for row (μ,α,T)(\mu,\alpha,T)6 is

(μ,α,T)(\mu,\alpha,T)7

The regularizer is then

(μ,α,T)(\mu,\alpha,T)8

and the full shaping objective is

(μ,α,T)(\mu,\alpha,T)9

where R=R1R2\mathbf{R}=\mathbf{R}_1\otimes\mathbf{R}_20 is the target zero-mode mass and R=R1R2\mathbf{R}=\mathbf{R}_1\otimes\mathbf{R}_21 is the regularization strength.

This formulation shows that KOTMS is not merely encouraging “three bumps.” It is explicitly regulating how much mass should occupy the center mode so that the shaped distribution remains compatible with ternary sparsity.

3. Kronecker-structured orthogonality

A full dense orthogonal transform at LLM hidden sizes would be impractical. KOTMS therefore restricts the rotation to a Kronecker form: R=R1R2\mathbf{R}=\mathbf{R}_1\otimes\mathbf{R}_22 Since both factors are orthogonal,

R=R1R2\mathbf{R}=\mathbf{R}_1\otimes\mathbf{R}_23

This exact invertibility is what permits the transform to be folded into adjacent layers while preserving the full-precision mapping (Zhao et al., 11 Jun 2026).

The practical application identity is also explicit. If a row vector R=R1R2\mathbf{R}=\mathbf{R}_1\otimes\mathbf{R}_24 is reshaped as

R=R1R2\mathbf{R}=\mathbf{R}_1\otimes\mathbf{R}_25

then

R=R1R2\mathbf{R}=\mathbf{R}_1\otimes\mathbf{R}_26

Hence the method applies the large rotation through two smaller matrix multiplies rather than materializing an R=R1R2\mathbf{R}=\mathbf{R}_1\otimes\mathbf{R}_27 dense matrix.

Orthogonality is preserved during optimization through Cayley parameterization. For each factor,

R=R1R2\mathbf{R}=\mathbf{R}_1\otimes\mathbf{R}_28

and

R=R1R2\mathbf{R}=\mathbf{R}_1\otimes\mathbf{R}_29

This guarantees

W1.58A4\mathrm{W1.58A4}0

throughout optimization, avoiding explicit projection steps.

The computational rationale for the Kronecker structure is quantified. Dense storage is

W1.58A4\mathrm{W1.58A4}1

whereas Kronecker storage is

W1.58A4\mathrm{W1.58A4}2

When W1.58A4\mathrm{W1.58A4}3, this is approximately W1.58A4\mathrm{W1.58A4}4, nearly linear rather than quadratic. The appendix gives the example W1.58A4\mathrm{W1.58A4}5, W1.58A4\mathrm{W1.58A4}6: W1.58A4\mathrm{W1.58A4}7 versus

W1.58A4\mathrm{W1.58A4}8

a storage reduction factor of

W1.58A4\mathrm{W1.58A4}9

The same scaling appears in compute. Dense application costs

{ci,0,+ci}.\{-c_i,0,+c_i\}.0

while Kronecker application costs

{ci,0,+ci}.\{-c_i,0,+c_i\}.1

For {ci,0,+ci}.\{-c_i,0,+c_i\}.2, {ci,0,+ci}.\{-c_i,0,+c_i\}.3, this becomes

{ci,0,+ci}.\{-c_i,0,+c_i\}.4

which the appendix describes as roughly {ci,0,+ci}.\{-c_i,0,+c_i\}.5 fewer operations than dense multiplication.

4. Effects on weight geometry and activation statistics

On the weight side, KOTMS reshapes the coordinate system so that each rotated row becomes more compatible with the anchors {ci,0,+ci}.\{-c_i,0,+c_i\}.6, {ci,0,+ci}.\{-c_i,0,+c_i\}.7, and {ci,0,+ci}.\{-c_i,0,+c_i\}.8 (Zhao et al., 11 Jun 2026). The paper characterizes the before-and-after contrast qualitatively: before KOTMS, rows are Gaussian-like and concentrated around zero; after KOTMS, they exhibit a more structured multi-cluster or symmetric tri-modal form. The appendix visualizes this on Layer 12 of Qwen3-8B, where the post-rotation distribution shows reduced tails and fewer outliers.

On the activation side, the same orthogonal transform is shared through inverse rotation equivalence. The paper states that this shared mixing disperses concentrated activation directions, reduces anisotropy, shrinks activation outliers statistically, and stabilizes dynamic range. This is presented as essential for {ci,0,+ci}.\{-c_i,0,+c_i\}.9 quantization, because low-bit activation quantizers are highly sensitive to a few extreme values dominating the scale.

The appendix formalizes the activation argument using the RMS and peak-to-RMS ratio of an activation vector WRn×m\mathbf{W}\in\mathbb{R}^{n\times m}0: WRn×m\mathbf{W}\in\mathbb{R}^{n\times m}1 For orthogonal WRn×m\mathbf{W}\in\mathbb{R}^{n\times m}2,

WRn×m\mathbf{W}\in\mathbb{R}^{n\times m}3

Under random-mixing concentration arguments, the appendix gives

WRn×m\mathbf{W}\in\mathbb{R}^{n\times m}4

and therefore

WRn×m\mathbf{W}\in\mathbb{R}^{n\times m}5

These bounds justify the claim that orthogonal mixing can reduce activation spikiness from worst-case WRn×m\mathbf{W}\in\mathbb{R}^{n\times m}6 behavior to logarithmic dependence. The paper is explicit, however, that this activation improvement is statistical rather than uniformly guaranteed for every layer. That caveat is central to the design of ILA-AMP.

The appendix also reports cross-layer heterogeneity in activation effects. For Q-projection input activations in Layers 4, 12, 24, and 36 of Qwen3-8B, KOTMS improves quantizability unevenly. Some layers, such as Layer 24, exhibit much tighter quantile bands after rotation; weaker-benefit layers, such as Layer 4, retain more residual high-quantile spikes. This observation is not incidental: it is the stated reason a uniform activation precision is suboptimal.

5. Optimization procedure, pipeline placement, and empirical evidence

KOTMS is learned during calibration rather than pretraining or end-to-end finetuning. The implementation details specify 128 calibration samples drawn from WikiText2, each with sequence length 2048. KOTMS parameters are optimized for 100 iterations with fixed learning rate 0.01 (Zhao et al., 11 Jun 2026).

The practical optimization loop is sequential. For each layer, WRn×m\mathbf{W}\in\mathbb{R}^{n\times m}7 and WRn×m\mathbf{W}\in\mathbb{R}^{n\times m}8 are initialized, for example to zeros; skew-symmetric generators are formed as

WRn×m\mathbf{W}\in\mathbb{R}^{n\times m}9

orthogonal factors are built through Cayley transforms; the layer rotation is assembled as

ii0

row-wise ii1 and ii2 are computed, with

ii3

posterior responsibilities are evaluated; and gradient descent updates ii4 using

ii5

The paper also states how the Kronecker dimensions are chosen: start from ii6, search downward for the nearest divisor, and return ii7 with ii8 and ii9. This balancing is used to minimize overhead.

KOTMS is not jointly optimized with the rest of TWLA. The full pipeline is sequential: first KOTMS learns and folds layerwise orthogonal rotations; second E2M-ATQ ternarizes the rotated weights; third ILA-AMP allocates activation bits. This ordering is central to the paper’s interpretation of KOTMS as geometric preprocessing rather than a quantizer.

The modular ablations show that KOTMS is complementary rather than standalone. Without activation quantization (wi\mathbf{w}_i0), on LLaMA2-13B: baseline gives C4 PPL wi\mathbf{w}_i1, MMLU wi\mathbf{w}_i2; E2M-ATQ only gives C4 wi\mathbf{w}_i3, MMLU wi\mathbf{w}_i4; KOTMS only gives C4 wi\mathbf{w}_i5, MMLU wi\mathbf{w}_i6; and E2M-ATQ + KOTMS gives C4 wi\mathbf{w}_i7, MMLU wi\mathbf{w}_i8. On Qwen3-14B: baseline gives C4 wi\mathbf{w}_i9, MMLU RRm×m\mathbf{R}\in\mathbb{R}^{m\times m}0; E2M-ATQ only gives C4 RRm×m\mathbf{R}\in\mathbb{R}^{m\times m}1, MMLU RRm×m\mathbf{R}\in\mathbb{R}^{m\times m}2; KOTMS only gives C4 RRm×m\mathbf{R}\in\mathbb{R}^{m\times m}3, MMLU RRm×m\mathbf{R}\in\mathbb{R}^{m\times m}4; and E2M-ATQ + KOTMS gives C4 RRm×m\mathbf{R}\in\mathbb{R}^{m\times m}5, MMLU RRm×m\mathbf{R}\in\mathbb{R}^{m\times m}6. These ablations show that KOTMS alone does not replace ternary quantization, but materially improves results when paired with E2M-ATQ.

Under RRm×m\mathbf{R}\in\mathbb{R}^{m\times m}7, the same pattern appears but with stronger dependence on KOTMS. For LLaMA2-13B: E2M-ATQ only, without KOTMS or ILA-AMP, gives C4 RRm×m\mathbf{R}\in\mathbb{R}^{m\times m}8, MMLU RRm×m\mathbf{R}\in\mathbb{R}^{m\times m}9; E2M-ATQ + KOTMS, without ILA-AMP, gives C4 A4\mathrm{A4}00, MMLU A4\mathrm{A4}01; E2M-ATQ + ILA-AMP, without KOTMS, gives C4 A4\mathrm{A4}02, MMLU A4\mathrm{A4}03; and full TWLA gives C4 A4\mathrm{A4}04, MMLU A4\mathrm{A4}05. For Qwen3-14B: E2M-ATQ only gives C4 A4\mathrm{A4}06, MMLU A4\mathrm{A4}07; E2M-ATQ + KOTMS only gives C4 A4\mathrm{A4}08, MMLU A4\mathrm{A4}09; E2M-ATQ + ILA-AMP only gives C4 A4\mathrm{A4}10, MMLU A4\mathrm{A4}11; and full TWLA gives C4 A4\mathrm{A4}12, MMLU A4\mathrm{A4}13. The paper’s interpretation is that KOTMS is necessary for low-bit activation viability but still insufficient without ILA-AMP.

The main benchmark results support the same conclusion indirectly. On LLaMA2-70B, W1.58A4, TWLA reaches 71.10 average zero-shot accuracy versus 56.43 for ResQ and 53.64 for QuaRot. On Qwen3-32B, W1.58A4, TWLA reaches 65.25, while GPTQ and PB-LLM collapse near the mid-20s. Since KOTMS is the only TWLA component explicitly designed to reshape weights into ternary-friendly form and suppress activation outliers, these results reinforce its central role.

The overhead study further shows that balanced Kronecker factors are operationally important. On the Qwen3 family, making A4\mathrm{A4}14 and A4\mathrm{A4}15 more balanced reduces orthogonal-transform overhead from roughly 1 bit to <0.01 bit, while average accuracy drops by <2\%. This is why balanced factorizations are used in all experiments.

6. Scope, misconceptions, and relation to adjacent Kronecker methods

Several common misunderstandings can be resolved directly from the formulation. First, KOTMS is not ternarization itself. The ternary projection is handled by E2M-ATQ; KOTMS changes the coordinate system in which that projection is performed. Second, “tri-modal” refers to a three-mode weight distribution centered on A4\mathrm{A4}16, not to three data modalities. Third, KOTMS is not sufficient by itself for robust A4\mathrm{A4}17 PTQ: the paper’s own ablations show that it underperforms the full combination with E2M-ATQ and ILA-AMP (Zhao et al., 11 Jun 2026).

The paper also states clear limitations. Its activation benefit is indirect because the learning objective is defined purely in the weight domain, so the gains are heterogeneous across layers. It does not provide a theorem guaranteeing that every learned rotation will produce a tri-modal structure for every layer. Nor does it discuss catastrophic failure cases in detail beyond the observed dependence on E2M-ATQ and ILA-AMP.

A useful boundary can be drawn by comparing KOTMS to the multimodal embedding method “Fusing Cross-modal and Uni-modal Representations: A Kronecker Product Approach” (Wu et al., 10 Jun 2025). That work also uses Kronecker products for geometry shaping, but in a different regime: it fuses pretrained cross-modal and uni-modal embeddings so that same-modality similarities become multiplicatively sharpened while cross-modal alignment is largely preserved. Its core mechanism is a product-kernel construction, optionally approximated by random projection. By contrast, KOTMS uses a Kronecker-structured orthogonal rotation in LLM post-training quantization, with a tri-modal Gaussian-mixture shaping objective and activation-side effects arising through inverse rotation equivalence. The comparison shows that Kronecker algebra supports multiple kinds of geometric intervention, but only KOTMS combines orthogonality, ternary-codebook alignment, and activation-outlier suppression in the specific setting of A4\mathrm{A4}18 PTQ.

A plausible implication is that KOTMS belongs to a broader family of analytic geometry-shaping techniques in which the coordinate system is redesigned before downstream compression or retrieval. However, the validated scope in the paper remains narrow and specific: KOTMS is presented and evaluated as a PTQ module within TWLA for ternary-weight, low-bit-activation quantization of LLMs, not as a general-purpose rotation framework.

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 Kronecker Orthogonal Tri-Modal Shaping (KOTMS).