Pattern-Based Matrix Analysis Under Permutations
Andrei Ermakov
NeurIPS 2026
TL;DR. A unified framework fits geometric matrix patterns through permutations and combines them with low-rank structure.
Abstract. Low-rank approximation captures one important notion of matrix simplicity: a matrix is simple if it is well described by a low-dimensional linear model. This paper studies a complementary notion. We consider matrices that become structurally simple only after permuting rows and columns, so that their mass concentrates in a prescribed geometric pattern such as a band, block-diagonal, arrowhead, or related form. We introduce a pattern distance that measures how close a matrix is to a given pattern after optimal reordering, giving a common framework for structural problems such as latent ordering, community detection, and bandwidth minimization. The problem is NP-hard in general; we derive an alternating algorithm based on Linear Assignment subproblems. We further introduce a pattern-plus-low-rank decomposition that combines permutation-structured fitting with a low-rank residual, whose permutation step is pattern fitting on the residual; its gains across pattern families persist at a matched parameter budget and are substantially reduced under a density-matched random-mask control. We evaluate the framework on synthetic recovery tasks, real correlation and graph adjacency matrices, and transformer attention heads, showing that a single universal algorithm recovers qualitatively different forms of matrix structure.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:49 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
This paper introduces a unified framework for "permutation-structural simplicity": a matrix is simple if reordering its rows and columns concentrates its mass onto a target binary mask (band, block-diagonal, arrowhead, etc.). It formalizes an off-pattern distance, reduces the one-sided problem to a linear assignment problem, and builds an alternating solver (altLAP), a pattern-plus-low-rank decomposition (PatLR), and an adaptive pattern-selection procedure. The reviewers unanimously recommend acceptance, praising the clean formulation, the sound and convergent alternating-LAP machinery, and the compelling attention-head application, which recovers consistent structural "routing styles" across GPT-2 and Qwen2.5.
My initial recommendation was reject, on one major concern: the central object is heavily studied, and the paper could not be assessed without explicit comparison to the QAP/graph-matching, seriation, block-model, and Birkhoff-polytope literatures. The rebuttal resolved this. The authors give precise correspondences to these areas, claim novelty only for the arbitrary-mask formulation, PatLR, the identifiability result, and the attention application, and corrected the hardness theorem and the altLAP description. They added strong specialized baselines (convex seriation, GPS, QAP-FAQ, RPCA, spectral co-clustering, and — following further discussion — Bethe–Hessian, non-backtracking, regularized spectral, and Leiden at the SBM detectability scale) with matched parameter and mask-density controls. Critically, they demonstrated regimes where the general solver helps, scored by the baselines' own metrics: latent-order recovery, capacity-controlled decomposition (with a random-mask control isolating structural alignment from capacity), composite targets no single specialist handles, and a refinement mode over a specialist pipeline. Their candid account of the SBM crossover below detectability their criterion is correctly not competitive with belief-propagation methods, above it it matches or beats the panel thus strengthening the contribution.
Evaluated under its "Concept and Feasibility" type, the paper offers a novel, general formulation with clear feasibility evidence, and the reviewers converged toward acceptance after the rebuttal. I recommend acceptance. For camera-ready, the authors should include the related-work correspondence table and full baseline pass, the corrected hardness/convergence statements, an explicit O(n³) scalability limitation, and the promised clarity fixes. The citation checker flagged 0/19 references.
Final justification
Included.
- Final justification
- Included.
Read meta-review
Meta-review
This paper introduces a unified framework for "permutation-structural simplicity": a matrix is simple if reordering its rows and columns concentrates its mass onto a target binary mask (band, block-diagonal, arrowhead, etc.). It formalizes an off-pattern distance, reduces the one-sided problem to a linear assignment problem, and builds an alternating solver (altLAP), a pattern-plus-low-rank decomposition (PatLR), and an adaptive pattern-selection procedure. The reviewers unanimously recommend acceptance, praising the clean formulation, the sound and convergent alternating-LAP machinery, and the compelling attention-head application, which recovers consistent structural "routing styles" across GPT-2 and Qwen2.5.
My initial recommendation was reject, on one major concern: the central object is heavily studied, and the paper could not be assessed without explicit comparison to the QAP/graph-matching, seriation, block-model, and Birkhoff-polytope literatures. The rebuttal resolved this. The authors give precise correspondences to these areas, claim novelty only for the arbitrary-mask formulation, PatLR, the identifiability result, and the attention application, and corrected the hardness theorem and the altLAP description. They added strong specialized baselines (convex seriation, GPS, QAP-FAQ, RPCA, spectral co-clustering, and — following further discussion — Bethe–Hessian, non-backtracking, regularized spectral, and Leiden at the SBM detectability scale) with matched parameter and mask-density controls. Critically, they demonstrated regimes where the general solver helps, scored by the baselines' own metrics: latent-order recovery, capacity-controlled decomposition (with a random-mask control isolating structural alignment from capacity), composite targets no single specialist handles, and a refinement mode over a specialist pipeline. Their candid account of the SBM crossover below detectability their criterion is correctly not competitive with belief-propagation methods, above it it matches or beats the panel thus strengthening the contribution.
Evaluated under its "Concept and Feasibility" type, the paper offers a novel, general formulation with clear feasibility evidence, and the reviewers converged toward acceptance after the rebuttal. I recommend acceptance. For camera-ready, the authors should include the related-work correspondence table and full baseline pass, the corrected hardness/convergence statements, an explicit O(n³) scalability limitation, and the promised clarity fixes. The citation checker flagged 0/19 references.
4 comments
Comment by Authors part 2
(iii) Where the general solver wins. We agree, and part of the difficulty is one of framing. The objective is not new as a QAP; what is new is the formulation, where the target enters as an auxiliary binary mask matrix and the reported quantity is the mass left outside that mask after the best reordering. No existing literature reports that quantity, so a result stated in it is hard to place. In the paper PatLR was already scored by a domain metric, reconstruction error against the clean matrix, though without capacity control, while AltLAP was scored by the objective it optimizes. We therefore added experiments that attack established tasks and score them as those fields do.
Decomposition, scored by reconstruction error. We score against the clean matrix, a metric that mentions no pattern; truncated SVD is the canonical baseline and is the optimal rank-constrained approximation of the observed matrix under Frobenius loss, and the blockmodel follows Dhillon (2001). Setup: , a rank-3 residual, noise 0.3, 20 seeds, score against the clean , higher is better. At the matched budget above, PatLR wins on all 7 planted patterns: block 0.96 against SVD 0.41, RPCA 0.18 and blockmodel 0.43; banded 0.58 against 0.10, 0.07 and 0.27; checkerboard 0.97 against 0.68, 0.31 and 0.62. The most informative control is the random mask: same parameter count, same pipeline, and PatLR drops to the SVD level, so the advantage comes from structural alignment rather than capacity.
Latent ordering, scored by reversal-adjusted Kendall . The solver is plain AltLAP. We plant a Robinson matrix, scramble it by a known permutation, add noise, and measure against the planted order — the seriation literature's own metric, with no mask in it. The baselines are spectral seriation (Atkins et al. 1998) and the convex relaxation of Fogel et al. (2013), which we implemented for this reply (its penalty weight is selected by its own 2-SUM value, never by ); both recover the planted order on our noiseless instances. AltLAP starts from the spectral ordering, so comparisons are paired on identical instances, and a configuration counts as a win or a loss only when the bootstrap CI of the paired difference over seeds excludes zero. Over 24 configurations (three correlation lengths, , four noise levels, 20 seeds, with the band mask width set to the correlation length) AltLAP wins 18, ties 2 and loses 4 against spectral seriation, and wins 12, ties 10 and loses 2 against the convex relaxation, the stronger of the two. Gains concentrate at the larger size under noise: at and the highest noise level is 0.982 against 0.950 convex and 0.933 spectral, ahead on all 20 seeds, at 0.05 s against 0.20 s. The losses sit at the longest correlation length with , where the mask then covers 44% of the matrix and both baselines are already at 0.96-0.999, every gap being within 0.02. FAQ, on the same objective and with three starts against one, never exceeds 0.64 at : a generic QAP heuristic on this objective does not reliably recover the order.
Composite targets, where no single specialized method applies. A band inside blocks needs both a grouping and an order within each group, and the target , same block and , is met only when both are right, so each specialist solves half of it: spectral clustering recovers the blocks perfectly but leaves the within-block order arbitrary (Kendall 0.09), while a global spectral ordering loses the blocks (ARI 0.84). A practitioner would hand-build a two-stage pipeline, cluster and then order inside each cluster, and that is our baseline (, 16 configurations over two block counts, equal or unequal sizes, two bandwidths and two noise levels, 20 seeds). Our framework needs no new algorithm here, only the composite mask; used as a refinement step on top of that pipeline it improves the fit in 16 of 16 configurations (median 65% relative) while block recovery stays at ARI 1.00 and the within-block order improves as well ( 0.44 to 0.47).
We recognize that the general framing is hard to evaluate itself. Our aim was to introduce a general method rather than to push one application, precisely because the objective covers many of them, and that choice made the work harder to position. These experiments are our attempt to fix that without narrowing the paper to a single task.
Thanks
Thanks for adding these clarification! I feel like there are other special cases where the state of the art is not reported (i.e. block models with Bethe Hessian or non-backtracking walks) so please try to do your best citing and comparing to the state of the art.
Official Comment by Authors
1. Block models against SOTA
Because our objective is defined on the same partitions, every method can be scored by both metrics: the ARI against the planted partition and the value of our criterion. That locates a crossover in the signal, and we report both sides of it.
1a. Sparse binary SBM at the detectability scale
Setup. Standard sparse symmetric SBM with equal blocks, and , so is the detectability scale [1]. , , mean degree , 20 seeds. Panel: adjacency spectral clustering; regularized spectral clustering (Qin and Rohe, 2013); the Bethe Hessian with [3]; the non-backtracking operator in Ihara-Bass form [2]; Leiden; and the block mask fitted by our solver, from random restarts and from the Bethe-Hessian partition. All methods see the same graphs and receive the true , except Leiden, which estimates it. Our mask also encodes that the blocks are equal in size, which the planted model satisfies and the spectral methods do not use.
Mean ARI, with the value of our criterion (error reduction on the block mask, higher is better) in brackets. , .
| Bethe Hessian | Non-backtr. | Reg. spectral | Leiden | Ours, cold | BH + ours | |
|---|---|---|---|---|---|---|
| 1.3 | 0.43 (0.24) | 0.39 (0.22) | 0.35 | 0.13 | 0.24 (0.33) | 0.48 |
| 1.6 | 0.74 (0.34) | 0.74 (0.34) | 0.75 | 0.75 | 0.81 (0.41) | 0.82 |
| 2.0 | 0.91 (0.46) | 0.92 (0.46) | 0.92 | 0.95 | 0.96 (0.51) | 0.95 |
Above the block mask is the better estimator and our solver realizes it: at and it beats every method in the panel on the ARI while also reaching a strictly better value of our own criterion, from random restarts and with no external initialization. Paired over the same 20 graphs, the gain over the Bethe Hessian at is [], on 20 of 20 seeds. The crossover moves with the mean degree, as expected of a criterion that becomes the likelihood in the dense limit: at it sits above , at below it.
Below that the limit is the criterion, not the search. At our solver fits the block mask better than the Bethe-Hessian partition does (0.33 against 0.24) and still recovers the communities worse (ARI 0.24 against 0.43): near the detectability scale a minimum-bisection criterion is not a consistent estimator of the planted partition, which is why belief propagation and its spectral linearizations were introduced [1,2,3]. There we compose with them instead — refining the Bethe-Hessian partition with our criterion gives 0.48 against its 0.43, for 0.2 s on top of its 0.04 s.
- Rating
- 5/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- concept_feasibility
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper studies permutation-structural simplicity as a matrix structure complementary to low-rankness. The authors define a pattern distance that measures how well a matrix can be reordered to match a target binary mask that represent a matrix structure pattern. They further propose an alternating LAP solver, a pattern-plus-low-rank decomposition model, and an adaptive procedure for discovering patterns.
Strengths and weaknesses
Strengths:
- The pattern-distance formulation is clean and intuitive. It provides a unified way to describe problems where row and column permutations reveal hidden matrix structure.
- The attention-head application is attractive.
- Substantial theoretical analysis.
Weaknesses:
- The alternating LAP solver is useful, but probably not a major algorithmic novelty. I can see it basically a block coordinate descent over permutations. Additionally, It has high computation cost of O(n^3) and can only guarantee convergence to a coordinate-wise local minimum.
- The adaptive pattern-selection method does not truly discover arbitrary patterns, it selects from a predefined vocabulary. I think the density-normalized score is reasonable, but mask density alone does not capture the full complexity of a pattern family.
Update 2026.07.30:
AC has pointed out the contribution type mismatch, and this work should be evaluated under the "Concept and Feasibility" category. My overall positive assessment remains, as I find the proposed notion of permutation-structural simplicity to be an interesting and potentially valuable perspective complementary to traditional low-rank formulations. However, I agree with the AC that the relationship to existing literature requires clearer positioning. My original review focused more on the internal formulation and algorithmic framework, while the broader novelty question depends on how this framework differs from and improves upon established approaches. Stronger comparisons and discussion with these related methods would be important to better assess the scope and impact of the proposed concept.
Update 2026.08.07
The authors' rebuttal has substantially addressed this concern through clearer positioning, stronger specialized baselines and capacity-controlled comparisons, and additional clarifications showing settings in which the general formulation is useful. I am comfortable with an accept recommendation.
Questions
Overall, I think this is a strong paper with a clean formulation and interesting applications. I have no additional questions and suggestions.
Limitations
yes
Final justification
After considering the author response and the AC discussion, I have revised my assessment of the paper. I continue to find the proposed notion of permutation-structural simplicity interesting and the formulation technically clean. However, I agree with the AC that the current paper does not sufficiently establish the novelty and distinctiveness of the proposed framework relative to substantial prior work, under the "Concept and Feasibility" category. My overall positive assessment remains, therefore, I have adjusted my recommendation accordingly.
Formatting concerns
I do not notice any major issues in this paper with respect to violation of formatting, anonymity, etc.
3 comments
Rebuttal
We thank the reviewer for the positive assessment of our work and for the careful, precise reading of the algorithmic part. We respond to the two points raised in Weaknesses below.
W1. We agree: AltLAP is block coordinate descent over the two permutations, with the specific property that each block subproblem is solved exactly as an LAP, hence monotone descent, finite termination, and, as the reviewer notes, convergence only to a coordinatewise local minimum. We do not claim the solver as the main novelty; the contribution lies in the pattern-based formulation (one solver for all patterns), the identifiability analysis, and the PatLR decomposition. On cost: all experiments in the paper (up to ) take seconds per instance, and a wall-clock check we ran on planted banded instances gives 41 s at and 4 min at for a single CPU run. Scaling further via approximate LAP steps and related ideas is future work, outlined in our response to Reviewer 8mc6 (Q3).
W2. We agree on both points. The procedure is indeed finite-vocabulary pattern selection, so the structure is identified within the provided vocabulary. We also agree that density normalization is only a first-order correction — two masks of equal density can still differ in how easily arbitrary matrices fit them (e.g. in how many permutations leave the mask invariant). We consider two directions promising for lifting these limitations: estimating mask parameters (e.g. block boundaries) from data within a pattern family instead of enumerating fixed masks, and calibrating each mask's score against its own random-permutation null rather than a density correction; both are future work.
Thank you for the response. I have read the authors’ clarification. I appreciate the additional explanations and will take them into account in my final evaluation.
On Update 2026.07.30
We thank the reviewer for the attention to the issues raised. Positioning against existing literature is where most of our rebuttal effort went: our reply to the Area Chair, points (i)-(iii), tries to cover it, the added baselines , and where the general formulation is useful. Please also check our reply to Reviewer Z2Lf. An improved Related Work section will be in the revised version.
- Rating
- 5/6
- Confidence
- 4/5
- Quality
- 4/4
- Clarity
- 2/4
- Significance
- 4/4
- Originality
- 4/4
- Contribution type
- concept_feasibility
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper introduces a formal matrix-analysis framework. The authors say that a matrix is simple if its entries concentrate into a clean, prescriptive geometric layout (such as a band, block-diagonal, or arrowhead) once its rows and columns are properly reordered.
They define a pattern distance metric () that measures the "off-pattern" Frobenius mass that leaks outside a given template/stencil after optimal row and column sorting. Because finding the exact global permutation of rows & columns is NP-hard, the paper leverages a structural property termed column-separability—showing that freezing one dimension decouples the other into independent subproblems.
The framework is highly modular, separating the target geometry, the error metric, and the optimization engine. This flexibility allows it to serve as a unified formalism for diverse problems such as community detection, latent seriation, and bandwidth minimization. Furthermore, the paper introduces a hybrid decomposition model, PatLR, which splits a matrix into a sharp structural pattern and a smooth low-rank background, bypassing the "blurring" artifacts that occur when standard tools like SVD attempt to fit sharp topological boundaries.
Overall, the paper shows how the framework can be used both as a data science toolkit for solving messy real-world engineering problems, and as a diagnostic tool for auditing black-box AI models.
Strengths and weaknesses
Overall, this is a well-written paper of a well-done research. The approach of permuting rows while keeping columns fixed and then permuting columns keeping rows fixed is valid and converges. I have used the technique in solving some problems in the past and hence can vouch for the method's validity and complexity.
The authors have demonstrated that freezing the row permutations completely decouples the column dimensions into independent subproblems, transforming an intractable quadratic assignment bottleneck into a sequence of exact Linear Assignment Problems (LAPs). By alternating between solving row-LAPs and column-LAPs, they construct an algorithm that guarantees monotone convergence to a local minimum. This formal mathematical formulation was an enlightening and joyful read.
Quality:
The claims are well supported through both theory and analysis. The methods are appropriate. The authors discuss limitations clearly.
Clarity: The paper is well organized. But I would expect the authors to provide a glossary of terms (in the appendix) that they use without definition, to derive the results in the paper (e.g. Fielder vector in Spectral initialization paragraph pg 3). An expert reader who is up to date with the maths can understand the paper but clarity is questionable in general. Demonstrating the algorithm through an example (say 10*10 toy matrix with any template) is highly recommended for the paper's final version. There's a repetition (line 477).
Significance: Because the authors provide a practical, universally applicable solver (Alternating LAP) that works for any binary mask without code changes, practitioners are highly likely to adopt this tool. Researchers building on this work can easily extend the vocabulary of patterns or apply the Adaptive PatLR pipeline to new domains, such as biological networks, financial correlation matrices, or deeper interpretability studies of neural architectures.
The paper successfully tackles an inherently NP-hard combinatorial problem: the simultaneous reordering of matrix rows and columns. Instead of relying on rigid, specialized heuristics, the Alternating LAP approach elegantly decouples the row and column permutations, reducing the search to easily solvable Linear Assignment Problems. The empirical results demonstrate that this method clearly outperforms classic baselines like Reverse Cuthill-McKee (RCM) and greedy Fiedler swaps in recovering banded structures. Additionally, the Pattern-plus-Low-Rank (PatLR) decomposition addresses a critical flaw of traditional SVD and Robust PCA—which blur sharp topological boundaries—by provably isolating crisp structural blocks from low-rank background noise.
The application of this framework to the internal attention heads of large language models yields a striking conclusion: disparate AI architectures (GPT-2, Qwen2.5-0.5B, Qwen2.5-7B) naturally organize information using invariant structural routing styles (e.g., local bands, block clusters, and arrowhead hubs) at nearly identical relative network depths.
Originality: The use of a density-normalized score () combined with simulated annealing for adaptive pattern selection is highly innovative. It allows the algorithm to automatically discover the best geometric blueprint without requiring the user to know what shape is hidden in the data. I find this submission to be a substantial, original, and highly practical contribution that bridges the gap between combinatorial optimization and continuous matrix analysis, offering a robust toolkit that will clearly benefit the broader research community.
Questions
-
Can you add a toy example demonstrating the method step by step?
-
The pattern distance () is formulated using the Frobenius norm (an penalty) for the off-pattern mass. While this works beautifully for Gaussian noise, penalties are notoriously sensitive to sparse outliers or heavy-tailed noise distributions. Hence, can you justify your choice of Frobenius norm before using it directly?
-
The attention head analysis is fascinating, but it is currently limited to a maximum context length of . Given that the Alternating LAP solver scales at , applying this to modern LLM contexts (e.g., 4k, 8k, or 32k tokens) seems computationally prohibitive. A small experiment or discussion outlining a path to scale this framework to would drastically improve its practical impact for the AI community.
-
Adaptive PatLR uses simulated annealing over a fixed dictionary of 9 patterns. What happens when the true underlying structure is a hybrid or novel shape not present in the vocabulary? Does the density-normalized score strongly favor the "closest" mask, or does it default to rejecting all of them? Expanding the discussion on how the framework behaves with out-of-distribution patterns would clarify the limits of the automated discovery loop. It is really important to at least openly discuss this in the final version.
Limitations
Yes. I have a few suggestions that I have included with the questions.
Final justification
As pointed out by the AC I have reassessed my evaluation to weigh the category mismatch. I have read the other reviews as well as the author's response to my original review. I maintain my original scores as I believe there is room for improvement with respect to clarity of the paper, building a narrative by starting with properly discussing related prior work.
Formatting concerns
no concerns.
1 comment
Rebuttal by Authors
We thank the reviewer for the positive evaluation of our work and for the questions, and apologize for the delay in rebuttal.
Q1. Yes. Below is the example. Take , the band mask iff , and the reference matrix . Scramble it by , i.e. . The task: given , recover an order that makes it banded again.
B (reference) A (scrambled)
5 3 1 0 0 0 5 1 0 3 0 0
3 5 3 1 0 0 1 5 1 3 3 0
1 3 5 3 1 0 0 1 5 0 3 3
0 1 3 5 3 1 3 3 0 5 1 0
0 0 1 3 5 3 0 3 3 1 5 1
0 0 0 1 3 5 0 0 3 0 1 5
is concentrated near the diagonal but not exactly supported on the mask: its eight entries at have magnitude one. So the optimum is , while the objective at the initial ordering is .
With rows fixed, placing column at position costs — the off-pattern mass this placement would create. For the mask and above:
M (band, w = 1) Q (rows = positions q, columns = c)
1 1 0 0 0 0 9 19 43 26 36 35
1 1 1 0 0 0 9 18 18 26 27 26
0 1 1 1 0 0 25 10 18 10 26 26
0 0 1 1 1 0 26 26 10 18 10 25
0 0 0 1 1 1 26 27 26 18 18 9
0 0 0 0 1 1 35 36 26 43 19 9
An optimal LAP solution on orders the columns at cost 74 — exactly the off-pattern mass after the move. Each step is the global optimum of its subproblem, so the objective never increases; the row step is symmetric.
Run. The successive exact one-sided minimizations give . Both final orders equal , so the reordered matrix is exactly . This does not imply global convergence in general: other initializations or tied LAP solutions can end at coordinatewise local minima, which is what spectral initialization and random restarts address.
Q2. First, sign invariance: classical pattern/LAP formulations [1] optimize the plain sum of in-pattern entries for CO objectives, which breaks on signed matrices — a large negative off-pattern entry would be rewarded even though it is large mass. Squaring measures magnitude regardless of sign. Second, it keeps every subproblem exact: the LAP costs are sums of squares, and in PatLR the low-rank step is a truncated SVD, with L1 this closed form is lost. The robustness concern is valid, but the solver does not depend on the choice: the objective is separable for any elementwise penalty, so an L1 or similar variant only changes the LAP cost matrix from squared to absolute values. In our main applications entries are bounded anyway. Robust variants are future work.
Q3. We agree this is the main practical limitation. A direct wall-clock check on planted banded instances (one solver run, CPU) gives 4 s at , 41 s at , and 4 min at , so analysing selected heads at 4k–8k contexts is already feasible; what remains prohibitive is screening thousands of heads across a mask vocabulary. For genuine scaling we see two paths, both future work: 1) coarsening - solve the pattern problem on a token-clustered matrix, then refine the order locally; 2) approximate LAP steps - sparse assignment solvers or a GPU Sinkhorn step with final rounding.
Q4. The selector never rejects: it always returns the best-scoring mask in the vocabulary, so for a structure outside the vocabulary it picks the closest available mask. We checked that selector always picks the nearest single-family mask, never a noise-level answer. Two practical points: (a) out-of-vocabulary structure can be detected — if even the best mask scores close to the random-permutation baseline, then no pattern in the vocabulary explains the matrix, and a simple threshold can flag this; (b) the vocabulary is easy to extend by adding a new (e.g. hybrid) mask, and the cost grows linearly with vocabulary size. We agree this deserves an open discussion and the direction of working unknown patterns will be our further research.
[1] Goldengorin, B., Krushinsky, D. Linear Assignment Problems in Combinatorial Optimization. In: Optimization Methods and Applications, Springer, 2017, pp. 183–216.
- Rating
- 5/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 2/4
- Originality
- 3/4
- Contribution type
- concept_feasibility
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The singular value decomposition of matrix can be described as a pair of orthogonal matrices such that has a simple structure: it is a diagonal matrix. But suppose and are restricted to be permutation matrices, which are a particular kind of orthogonal matrix. (Hereafter and will denote permutation matrices.) Then in most cases there are no such that is diagonal. But if the goal is being close in Frobenius norm to a diagonal matrix, or if the target structure is broadened from diagonality to, for example, banded, block diagonal, anti-banded, triangular, and so on, then finding the best such permutations becomes a general version of a number of previously studied problems. Here the structure is specified as a mask matrix , when is ; the goal is to make , the norm of the Hadamard product, as large as possible.
The classical problem of training a recommender system could be described as finding appropriate rank- square projection and , such that is maximized, where is the mask with nonzeros where entries of are known. A standard training technique is to repeatedly fix , and maximize with respect to , and then fix , and max with respect to . In this paper an algorithm altLAP is proposed that similarly applies alternating maximization to find good ; the maximization problem with one matrix fixed can be readily reduced to a linear assignment problem (LAP).
In this formulation, only a particular block diagonal matrix structure can be specified.
However, the paper also considers the broader pattern discovery problem where optimal , , and within a family are sought. An algorithm Adaptive PatLR is proposed that applies altLAP to candidates picked using uniform random selection, and updating the current best candidate with a trial candidate under an annealing random decision.
Also considered is the problem of finding and rank- such that is as small as possible outside the mask, that is, the masked entries contribute zero to the loss. This could be expressed as finding also such that and with
loss is as small as possible. An iterative algorithm PatLR is proposed, optimizing , alternating among these, again applying altLAP to find for given . Here for fixed and , the optimal is simply , so as noted, the masked entries contribute zero to the loss.
The paper gives some basic theoretical results, and evaluates the algorithms experimentally in a number of settings of matrices and masks. This includes comparison of altLAP against Reverse Cuthill-McKee (RCM) for band matrix masks; PatLR and Adaptive PatLR against SVD and robust PCA for "community" matrices (e.g., Karate Club) and others; and adaptive pattern-selection, via density-normalized pattern-distance scoring over a fixed mask vocabulary, to transformer attention matrices. In the latter, notably patterns relevant to the "attention sink" phenomenon are found.
Strengths and weaknesses
The formulation of a general matrix permutation problem subsuming several known such problems, and then attacking it with an effective algorithm, is a novel idea, and the main appeal here. This is true even while the theoretical contributions and the proposed algorithms involved are not surprising. NB: they were clearly stated. A few possible correctness issues: the NP-hardness proof appears to use the symmetric restriction and then infer hardness for the unrestricted row/column problem; this implication is not immediate. The “fixed width ” statement for banded masks also seems stronger than what the standard bandwidth reduction directly gives. Finally, the finite-termination claim for PatLR' is less clear than monotone descent, since the low-rank variable is continuous.
A difficulty here is that one might compare the general algorithm with specialized algorithms for any given special case; when does the unified view actually help?
The adaptive pattern-selection setting of Adaptive PatLR is useful, but it is limited by the fixed finite vocabulary of masks. For example, arbitrary block sizes are not discovered unless the corresponding masks are explicitly included. Thus claims about discovering block-diagonal or community structure should be interpreted as discovery within the provided vocabulary rather than unconstrained structural discovery.
The experimental results are interesting, and show the strength of the approach, although the discussion in the main body of the submission was packed enough that it was a bit hard to understand, particularly the part discussing attention. (And while I suppose the meaning of mask block_k4 or banded_w2 is not hard to figure out, a definition would still be helpful. And generally, double checking that terms are defined before use is always good.)
More substantively, I'm not sure that RCM is the best current bandwidth minimizer (I see there is "Gibbs-Poole-Stockmeyer"), and anyway, its main role seems to be to reduce fill-in of Gaussian elimination, a problem outside the paper's scope. Another issue is that RCM is surely much faster than altLAP, which is cubic time in general, and likely much slower even with careful exploitation of sparsity. The comparison doesn't seem entirely "apples to apples".
The comparison of PatLR to SVD or robust PCA is somewhat tricky. Although the reported DQ/EV metrics use full reconstruction error, the PatLR fitting objective allows the pattern-supported component to absorb all in-mask residuals exactly. Thus PatLR has substantially more effective capacity than a rank- SVD/RPCA model, especially for dense masks. A comparison controlling for parameter count, mask density, or compression cost would make the empirical advantage easier to interpret. Here again, something more clearly "apples to apples" would be helpful.
Applying adaptive pattern-selection to get a better understanding of attention seems very interesting; I wonder if significant permutations were needed to discover the arrowhead pattern. That is, if the input matrix doesn't need permuting to have the arrowhead pattern, the approach seems a bit overpowered for the application.
Questions
My understanding of the weaknesses of the paper, as given in that section, either imply that more clarity of exposition would be helpful (if it's just my misunderstanding), or that indeed further study is needed. Is there a way to detect and exploit a more general block diagonal structure? Is RCM the right benchmark? Is "structured + low-rank" as useful as "low-rank"? Do the proposed algorithms scale for large problems well enough (that cubic time!), relative to specialized algorithms? Do we need the full power of the permutation approach to see arrowhead structure?
Here are some wording issues found by the LLM. To be clear: they are just included to be helpful; I don't feel it necessary to address them during the response period.
Clear typos / grammar
-
p.6, line 190:
“...dominates all baselines on every pattern. the three lower-DQ cases...”
→ “The three lower-DQ cases...” -
p.8, line 245:
“asymmetric setting”
→ “asymmetric setting” -
p.15, lines 477–478:
“Denser patterns ... tolerate higher noise before recovery fails; denser patterns tolerate more noise...”
→ Repetitive. Delete one clause. -
p.18, lines 532–533:
“...the mean EV gap ... is 0.011, 26/29 cells stay...”
→ Comma splice. Use semicolon or split sentence. -
p.13, line 378:
“with ”
→ should be .
Wording / clarity
-
p.5, Eq. (8) and Appendix Definition 2:
The density-normalized score is easy to misread. The text says “superlinear denominator,” so the equation should clearly show -
p.6, line 196:
“matches Oracle PatLR in DQ to within 94.9%”
→ Awkward. Better: “achieves at least 94.9% of Oracle PatLR’s DQ” or “matches Oracle PatLR with a minimum ratio of 94.9%.” -
p.7, line 213:
“CIs of width ±0.5%”
→ “half-width ±0.5 percentage points” or simply “95% bootstrap CIs of ±0.5 percentage points.” -
p.8, line 229:
“which is direct evidence...”
→ This is a bit strong. Consider “which suggests” or “which provides evidence.” -
p.20, line 569:
“recognised”
→ Use “recognized” if the paper is otherwise using American English.
Consistency issues
-
Model naming varies:
- “Qwen0.5B and Qwen7B”
- “Qwen2.5-0.5B”
- “Qwen-0.5B”
- “Qwen-7B”
Suggest standardizing to Qwen2.5-0.5B and Qwen2.5-7B throughout.
-
Algorithm/name capitalization varies:
- “PATLR”
- “PatLR”
- “Adaptive PATLR”
- “Adaptive PatLR”
Pick one convention, probably PatLR and Adaptive PatLR.
-
Pattern names vary:
block_k2- “block-k2”
- “Block k=2”
block_band_k3w2
It would help to define the naming convention once and use it consistently.
-
“HuggingFace” should usually be Hugging Face.
-
“sklearn datasets” is informal; use scikit-learn datasets.
Possibly misleading wording
-
Table 2: Some entries such as Monge and Robinson are not simple binary support masks in the same sense as Definition 1. The table may need wording to clarify whether these are literal masks or related pattern/ordering constraints.
-
Conclusion, line 262:
“outperforms SVD/NMF/RPCA” — NMF appears mainly in the appendix, not the main experimental narrative. This is okay if intentional, but worth checking consistency with the main claims.
Overall, the writing is generally clear, but the paper would benefit from a pass focused on notation/name consistency and overcompressed experimental wording, especially in the attention section.
Limitations
Yes
Final justification
Update 2026.07.30:
AC has pointed out the contribution type mismatch, and this work should be evaluated under the "Concept and Feasibility" category. (If a reviewer is not to make their own judgment of the contribution type, why is it something for the reviewer to select? I have changed my selection to match the authors.) As such, my question "when does the unified view actually help?" rises in significance, although it is also true that a general technique that is "good enough" for a broad range of applications might be valuable even if its performance can be beaten for any given application by a specialized technique. Relatedly and more significant for a revised evaluation is that the contribution type is to be something that is "highly novel, high potential reward". I can't see the submission as such a contribution: novel, good potential reward would be it.
Update 2026.08.03: The improvements and discussions lead me to raise my score.
Formatting concerns
None
2 comments
Rebuttal by Authors part 1
We thank the reviewer for the detailed review and for the many useful comments, they will make the paper considerably stronger. We also apologize for the slightly late reply. Please also see our response to AC.
W1–W2 (hardness theorem). Thank you; both observations are correct. The original proofs did not establish the theorem in the stated generality. We have revised the statement and the reductions.
2-block mask. For independent row and column permutations we reduce from MINIMUM BISECTION. Take for a graph with edges and even , and let and be the vertices placed in the first row block and the first column block. A mismatch costs , more than all edges together, while costs . So every optimum has , and its value is exactly twice the minimum bisection.
Banded mask. With part of the input, the same diagonal gadget forces at zero distance, hence ; conversely gives distance zero with . The factor-2 gap is closed by the constant-factor gap hardness of BANDWIDTH [1], so deciding whether the distance is zero is NP-hard. For fixed you are right that this route gives nothing, since bandwidth- recognition is polynomial [2]. Under , however, exact computation is NP-hard already at : maximizing the in-band mass then means maximizing , which reaches exactly when the graph has a Hamiltonian path, binary weights included.
We do not claim the fixed-width case for independent permutations.
[1] W. Unger, The Complexity of the Approximation of the Bandwidth Problem, FOCS 1998.
[2] J. B. Saxe, Dynamic-Programming Algorithms for Recognizing Small-Bandwidth Graphs in Polynomial Time, SIAM Journal on Algebraic and Discrete Methods, 1980.
W3 (finite termination of PatLR). Correct: with a continuous low-rank variable we can only claim monotone non-increase and convergence of the objective values, not finite termination, and we will state it that way. The implementation already stops on an criterion with a capped iteration count, so no reported result changes.
W4 (when does the unified view help?). We made additional experiments and show that in three cases, all measured by the baselines' own metrics rather than ours: directly on the specialist's own task under noise (latent-order recovery in Kendall , decomposition at a matched parameter budget), on composite targets where we are not aware of a specialized method, and as a refinement step on top of a specialized pipeline. The setups and numbers are in our reply to the Area Chair, see point (iii), so we do not repeat them here.
Q1 (more general block structure). We agree, and we will describe the method as finite-vocabulary selection rather than unconstrained discovery: with masks in the vocabulary, unequal or nested block structures are only approximated by the closest available mask. The natural try is to estimate the mask parameters from the data instead of enumerating fixed masks - for the block family, block boundaries can be found by change-point segmentation of the reordered matrix, alternating boundary estimation with the permutation step. We consider it as future work direction.
Q2 (is RCM the right benchmark?). We implemented Gibbs-Poole-Stockmeyer, which is indeed the better bandwidth reducer, and every ordering is now scored under ours and the bandwidth family both objectives, on the same support: the graph itself in the sparse regime, the KNN-20 sparsification in the Gaussian one, as used for RCM. The numbers and the rest of the baseline pass are in our reply to the Area Chair, point (ii).
Reporting both makes the gap between the two goals concrete. Bandwidth is set by the single non-zero farthest from the diagonal, so on noisy inputs it has little discriminative power: at in the Gaussian regime every ordering — RCM, GPS, seriation, ours — lands between 399 and 494 out of 499, while the error reduction over the same orderings spans 0.05 to 0.57. Our objective counts the mass left outside the band, which is what matters when the band is an approximation rather than an exact support.
So we do not claim to be a better bandwidth minimizer; for that task GPS and RCM are the right tools. The banded experiment checks the solver where the true order is known, and shows that methods built for the exact-support objective do not transfer to the approximate one.
Rebuttal by Authors part 2
Q3 (structured + low-rank vs low-rank). You are right about the mechanism: the pattern step is the projection , so the in-mask residual is absorbed exactly and PatLR carries parameters more than SVD at the same rank. The published comparison was at fixed residual rank, not at equal capacity, and we will call it that. We have added two controls.
First, we match the nominal parameter budget: for PatLR against for SVD, giving SVD the rank $r' = \mathrm{round}(n - \sqrt{n^2 - \mathrm{df}})$ clipped to . PatLR still wins on 7 of 8 planted patterns — block 0.96 vs 0.41 at , checkerboard 0.97 vs 0.68 at , banded 0.58 vs 0.10 at — with RPCA below both.
Second, we run PatLR with a random mask of the same density: identical parameter count, identical pipeline. It falls back to the SVD level (0.32 on block, 0.54 on checkerboard). So the gain comes from the mask matching the structure after reordering, not from in-mask capacity; fitting the mask exactly also copies the in-mask noise, which is why extra capacity is not free here.
The control also exposed a degenerate case: our hierarchical mask has density 1.0, so the matched rank saturates at and all methods reach 0.98. Mask densities and parameter counts will be reported in the tables.
Q4 (scalability). The cubic cost is the real price and we will state it as a limitation. Measured on planted banded instances, one solve on a single CPU takes 0.5 s at , 13 s at , 41 s at and about 4 min at . Pointwise analysis at long context is therefore feasible, while mass screening is problematic.
For scaling further, a banded mask gives a banded LAP cost matrix and hence a sparse assignment step, and coarsen then refine methods or a GPU Sinkhorn step with final rounding are the natural routes; we consider these as future work.
Q5 (are permutations needed for arrowhead?). We ran the requested identity-order ablation on Qwen2.5-7B at . Under the native token order, arrowhead is already the top-1 pattern for 51% of instances, supporting the connection to the attention-sink phenomenon. After permutation optimization, this rises to 82%, and the selected top-1 label changes in 63% of instances. Thus the arrowhead structure is partly visible without reordering, but the permutation step reveals a substantially stronger and more consistent latent organization.
W6 (clarity). We thank the reviewer and will make the discussion clearer, define the pattern names and other terms, and fix the wording issues you list.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Comment by Authors part 1
We thank the AС for the close reading and for naming the weaknesses that matter most.
What we add.
(i) Relation to the literature. We will add the literature listed below to еhe revised version.
The objective is an assignment problem, in two variants. Write B=A⊙A. With σ=π, which is the case we report, minimizing the pattern distance means maximizing tr(M⊤PBP⊤): a Koopmans-Beckmann QAP (Koopmans and Beckmann 1957; Lawler 1963; Çela 1998), for which FAQ (Vogelstein et al. 2015) is a standard heuristic — it relaxes the problem over the Birkhoff polytope and projects back, so it is not exact either. With independent row and column permutations the objective is maxP,Q⟨M,PBQ⊤⟩, a bilinear assignment problem (Ćustić et al. 2017), not graph matching, which permutes both axes by the same P. This also corrects how we describe AltLAP: it does not keep σ=π while iterating. It descends on the two-sided problem — a relaxation of the joint one, since {(P,P)} lies inside {(P,Q)} — and rounds to a single order at the end. AltLAP and FAQ are therefore two heuristics for the same reported score, with different internal problems. The LAP subproblem itself uses the auxiliary-matrix construction of Goldengorin and Krushinsky (2017), which the paper builds on.
The special cases are known problems. For a banded mask and a single permutation the exact link is at zero loss: dM(AG)=0 iff bw(G)≤w. On noisy weighted inputs the objective is the off-band mass, a robust alternative to the 2-SUM objective of seriation rather than the same criterion (Atkins et al. 1998; Fogel et al. 2013). A block-diagonal mask with fixed block sizes is a balanced partitioning objective, related to co-clustering, community detection and latent block models (Holland et al. 1983). Birkhoff-polytope relaxations are the standard continuous approach (Cuturi 2013; Mena et al. 2018). We will give these correspondences as a table, and separate literal binary masks from ordering criteria that are not binary supports: Monge and Robinson are currently listed with literal masks in Table 2.
What we claim as new. An arbitrary binary mask as the specification of the target: one objective and one solver for any mask, so a composite or unusual target needs no new algorithm. PatLR: , a permuted mask-supported component plus a global low-rank residual has not been studied in this form. The identifiability. The attention application and etc. We claim no novelty for the QAP or for the special cases themselves.
(ii) Strong baselines and matched controls. Added, as requested.
Ordering. The banded tables now include spectral 2-SUM (Atkins et al. 1998), the convex relaxation of Fogel et al. (2013), GPS and FAQ. GPS beats RCM as a bandwidth reducer (349 vs 364 at n=500), and every ordering is now scored both by our objective and by the bandwidth family on the same {0,1} support;
FAQ deserves care, since it is not a method for a different problem: it optimizes the score we report directly, while AltLAP reaches that score through the relaxation above. Which one wins depends on the regime, and we report both. FAQ is better on sparse banded graphs (error reduction — the fraction of off-mask mass removed by the reordering — 0.20 vs 0.11 at n=500) and marginally better on the dense ones at n=500 (0.57 vs 0.55). AltLAP is better on the dense instances (0.85 vs 0.59 and 0.98 vs 0.85 at n=300), on the planted seriation instances (higher error reduction in 20 of 24 configurations; 0.83 vs 0.67 with τ 0.999 vs 0.26 at n=300), and on the composite band-in-block target (0.144 vs 0.137, with block recovery ARI 0.78 vs 0.18).
Decomposition. We match the nominal parameter budget of PatLR, ∣M∣+r(2n−r): SVD is given the rank whose count r′(2n−r′) comes closest to it, and the blockmodel the number of clusters whose k2 block means come closest. RPCA is added as a structured-low-rank baseline, and the density control is a random mask of the same density, redrawn for each of the 20 seeds. Mask densities and parameter counts are reported with every result; the numbers are in (iii).