potentialpaper

Improving LLM Final Representations with Inter-Layer Geometry

Tom Ulanovski, Eyal Blyachman, Maya Bechler-Speicher

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

TL;DR. We propose a structured method to aggregate representation from all the llm's intermediate layers, which is both efficient and effective.

Abstract. The standard in LLM-based prediction is to use the final-layer representation as the input to a downstream predictor. However, intermediate layers may encode complementary task-relevant signals. Existing approaches therefore either search for the best layer for each task or apply expensive attention-based mechanisms to learn inter-layer aggregation. In this work, we first show that such complexity is unnecessary: a lightweight Graph Neural Network over a fully connected graph of LLM layers is more efficient and achieves significantly stronger predictive performance than existing approaches. We then introduce the Cayley-Encoder, which further improves both efficiency and predictive performance by replacing the fully connected graph with a Cayley graph over SL(2,Zn)SL(2,\mathbb{Z}_n). These Cayley graphs provide a mathematically grounded topology that is sparse, regular by construction, and has low diameter. This enables effective communication across layers while constraining the aggregation structure and reducing the risk of GNN overfitting. In an evaluation of Cayley-Encoder across 13 tasks and 13 LLMs, Cayley-Encoder consistently outperforms baselines, achieving improvements of up to 48 percentage points in accuracy, while introducing at most 0.1% additional parameters relative to the LLM size. We further show that Cayley-Encoder is effective in few-shot regimes. Finally, we show that Cayley-Encoder outperforms LoRA fine-tuning while operating on the frozen LLM. We conclude with an explainability analysis showing that multiple layers contribute meaningfully to the final prediction, supporting our hypothesis.

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 paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
4 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]PDF[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:47 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

The submission proposes the Cayley-Encoder a method for aggregating intermediate layer representations of frozen Large Language Models (LLMs) by formulating inter-layer communication as a graph learning problem on a Cayley graph over SL(2,Zn)SL(2, \mathbb{Z}_n). Reviewers recognized the innovative framing of inter-layer aggregation as a geometric graph learning problem and noted the method's parameter efficiency. However, the paper is currently categorized as borderline due to concerns regarding experimental rigor, the theoretical justification of the chosen graph topology, and potential conflation with existing techniques.

To move toward an acceptance recommendation, the authors must address the following prioritized items:

Clarification of Theoretical vs. Heuristic Motivation: Reviewers questioned whether the success of the Cayley graph stems from the specific algebraic structure or if it acts primarily as a structural regularizer. Please provide a more rigorous discussion on why the Cayley topology is ideal and include a head-to-head comparison against other sparse regular/expander topologies (e.g., random kk-regular graphs or small-world graphs) to isolate the benefit of the group-specific structure.

Addressing Experimental Concerns: Please clarify the discrepancy regarding the number of LLMs tested, as the introduction claims nine while the experiments highlight three. Furthermore, perform a more robust comparison with state-of-the-art baselines, including more recent backbones (e.g., Qwen series) and clarify the distinction between a fully connected GNN and vanilla attention.

Sensitivity Analysis on Mapping: Given that the mapping of layers to Cayley nodes is random, please clarify if the dilution caused by virtual nodes (padding) impacts performance when the number of virtual nodes significantly exceeds the number of actual layers.

Ablation of Projection and LoRA: Please include results for DWAtt with and without the 256-dim projection to ensure fair performance comparisons. Additionally, specify which modules and layers were adapted in the LoRA baseline to ensure the comparison is appropriately rigorous.

Final justification

The paper provides an efficient and well-validated approach to enhancing LLM representations through the application of Cayley graph-based GNNs, addressing the critical trade-off between model performance and parameter overhead. The rebuttal successfully clarified concerns regarding the unique algebraic advantages of the Cayley topology over generic sparse baselines, demonstrated robustness across a broad range of backbone architectures, and provided convincing evidence that its performance gains are not simply artifacts of parameter count or heuristic design. Given the thorough empirical validation and the significant performance improvements over stronger, more parameter-intensive baselines like LoRA and full-dimensional DWAtt, this work offers a valuable and highly practical contribution that merits publication.

Area Chair DyJR · Meta-reviewOpenReview ↗
Read meta-review
Meta-review

The submission proposes the Cayley-Encoder a method for aggregating intermediate layer representations of frozen Large Language Models (LLMs) by formulating inter-layer communication as a graph learning problem on a Cayley graph over SL(2,Zn)SL(2, \mathbb{Z}_n). Reviewers recognized the innovative framing of inter-layer aggregation as a geometric graph learning problem and noted the method's parameter efficiency. However, the paper is currently categorized as borderline due to concerns regarding experimental rigor, the theoretical justification of the chosen graph topology, and potential conflation with existing techniques.

To move toward an acceptance recommendation, the authors must address the following prioritized items:

Clarification of Theoretical vs. Heuristic Motivation: Reviewers questioned whether the success of the Cayley graph stems from the specific algebraic structure or if it acts primarily as a structural regularizer. Please provide a more rigorous discussion on why the Cayley topology is ideal and include a head-to-head comparison against other sparse regular/expander topologies (e.g., random kk-regular graphs or small-world graphs) to isolate the benefit of the group-specific structure.

Addressing Experimental Concerns: Please clarify the discrepancy regarding the number of LLMs tested, as the introduction claims nine while the experiments highlight three. Furthermore, perform a more robust comparison with state-of-the-art baselines, including more recent backbones (e.g., Qwen series) and clarify the distinction between a fully connected GNN and vanilla attention.

Sensitivity Analysis on Mapping: Given that the mapping of layers to Cayley nodes is random, please clarify if the dilution caused by virtual nodes (padding) impacts performance when the number of virtual nodes significantly exceeds the number of actual layers.

Ablation of Projection and LoRA: Please include results for DWAtt with and without the 256-dim projection to ensure fair performance comparisons. Additionally, specify which modules and layers were adapted in the LoRA baseline to ensure the comparison is appropriately rigorous.

Final justification

The paper provides an efficient and well-validated approach to enhancing LLM representations through the application of Cayley graph-based GNNs, addressing the critical trade-off between model performance and parameter overhead. The rebuttal successfully clarified concerns regarding the unique algebraic advantages of the Cayley topology over generic sparse baselines, demonstrated robustness across a broad range of backbone architectures, and provided convincing evidence that its performance gains are not simply artifacts of parameter count or heuristic design. Given the thorough empirical validation and the significant performance improvements over stronger, more parameter-intensive baselines like LoRA and full-dimensional DWAtt, this work offers a valuable and highly practical contribution that merits publication.

1 comment
Authors · CommentOpenReview ↗

We thank the Area Chair for the clear synthesis. All four prioritized items are addressed in our responses to reviewers; we consolidate the evidence below.

1. Theoretical vs. heuristic motivation, and comparison to other sparse/expander topologies

(Addressed in our responses to Reviewer 8ZrM — W1, W3, W4, Q2 — and Reviewer aHrY — W1, W3 — and Reviewer kFiG — W4.)

The Cayley topology is chosen from three required properties, not heuristically: sparsity (linear vs. quadratic cost — 10–30× less GPU than FC in the token-graph setting), regularity (robust to the GNN overfitting a task-irrelevant fixed structure, Bechler-Speicher et al., 2024), and expansion / low diameter (efficient communication, reduced over-squashing). Cayley graphs of SL(2, Z_n) are the deterministic construction satisfying all three. To isolate the algebraic structure from mere regularity, Appendix F (Tables 11–12) compares against a degree-matched random 4-regular graph across 3 LLMs and 13 tasks: Cayley wins on 22/24 STS and 9/15 classification pairs, confirming the benefit stems from guaranteed expansion, not degree/sparsity alone. We additionally tested degree-6 and degree-8 generators (8ZrM-W3), where degree-4 remains on par or better.

2. Experimental concerns: number of LLMs, recent backbones, and FC-GNN vs. attention

(Addressed in our responses to Reviewer kFiG — Q1, W1, W2, W3 — and Reviewer 8ZrM — Q1.)

  • "Nine vs. three" LLMs: a clarity issue, not a coverage gap — beyond the three main-table backbones, Section 4.2 evaluates seven Pythia models (14M–2.8B), totaling nine. We will state this explicitly.
  • Recent backbones: we added the Qwen3 family (1.7B–14B); Cayley matches or outperforms FC throughout, with the advantage markedly larger for the two largest models (8B, 14B).
  • Baselines: DWAtt is the most recent method for our setting; we also compare against Best-Layer, Weighted, MLP, and DeepSet.
  • FC-GNN vs. attention: a GNN over a fully-connected graph does not in general reduce to attention — it does so only when the GNN itself uses attention (e.g., a GAT [Veličković et al., 2018]). Our framework supports attention but does not require it: simpler, non-attentional GNNs (GCN, GIN) already match or outperform attention-based DWAtt on all 15 classification and 22 of 24 STS configurations, at fewer parameters.

3. Sensitivity to layer→node mapping and virtual-node dilution

(Addressed in our responses to Reviewer aHrY — Q1, W3.)

Robustness is by design (the Cayley graph is vertex-transitive). Our Pythia-14M/70M experiments already run at 71% virtual nodes with no degradation (Figure 2). A controlled sweep on Gemma2-2B (44% → 78% → 81% virtual) shows mean STS stable from 44% to 78% (64.45 → 64.50) and only a modest drop at 81% (62.01), with 5 of 8 tasks still stable. An 81% ratio is usually far above any practical configuration, so this is a stress test; within all practical regimes (≤78%) performance is essentially unchanged. Robustness to the random layer-to-node assignment is further shown across 10 permutations (Table 5).

4. Ablation of the DWAtt projection and LoRA configuration

(Addressed in our responses to Reviewer aHrY — Q2, Q3.)

  • DWAtt with/without the 256-dim projection: we re-ran DWAtt at full dimensionality on four backbones (response to aHrY-Q2). The projection is used for fairness, without it DWAtt requires 69×–541× more parameters than Cayley. Even at full dimensionality, the Cayley-Encoder outperforms DWAtt on every classification task and backbone (except one OOM run), with the largest margins on Gemma2-2B (Poem Sentiment +43.2, Banking77 +29.4). The corresponding STS comparison will be added in the camera-ready version.
  • LoRA coverage: LoRA adapters were applied to all attention projections (WQ,WK,WV,WOW_Q, W_K, W_V, W_O) in every layer, with feed-forward modules frozen (response to aHrY-Q3). At r = 16, LoRA already trains 6–12× more parameters than Cayley, yet Cayley outperforms it on 21/24 STS and 11/15 classification configurations (Table 3). We will state this coverage explicitly.

In short, every prioritized item is backed by new experiments or existing evidence in the paper, which we will surface more clearly in the camera-ready version.

Reviewer kFiGOpenReview ↗
Rating
4/6
Confidence
4/5
Quality
2/4
Clarity
3/4
Significance
2/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The paper addresses an important question, how to organize the representations of each layers in LLMs to obtain the optimal performance. The authors first employ a lightweight GNN over the fully connected graph of LLM layers, finding it alreadly has better performance compared with existing methods. Then, the authors propose the Cayley-Encoder, utilizing a Cayley graph to improve both efficiency and predictive performance. Extensive performance indicate the effectiveness of proposed methods. The additional GNN is also proven to be lightweight compared with LLM.

Strengths and weaknesses

Strengths:

  1. The Cayley graph mitigates the over-suqashing and overfitting of the LLM representaions, providing the structural relations for the LLM representation learning.

  2. The experiments are comprehensive. The proposed mudule is validated across various LLM backbones, including Pythia-410m, Gemma2-2B and Llama3-8B and extensive MTEB benchmarks. The authors also compare it with LoRA baseline and demonstrate the performance improvement.

  3. The ablation study contributes additional insights, such as the layer-to-node assignment, layer indentification and the contribution of different layers.

Weaknesses:

  1. One major concern is the experimental setting, the first question is whether the baselines are comprehensive enough. For example, the most recent baseline is DWAtt, published in 2024. Is there any more recent works solving this problem? Also, the backbones are extensive. However, these backbones are not up-to-data. It will be much more convincing if the authors also incorporate Qwen-series model into consideration.

  2. A interesting understanding is, applying GNN on fully connected graph will be reduced to attention model itself. The thing is, if we model the fully connected graph by GNN, all nodes will interact all other nodes, which is just vanilla attention module. We can see such mechanism already possesses strong abilty. However, in the introduction part, the authors also critize other models apply expensive attention-based mechanism. This also let me wonder whether the baselines have been properly considered or implemented.

  3. The fact that positional encodings harm the final performance weakens the geometric motivation. It indicates the success of Cayley graph might not stem from a meaningful alignment with LLM's internal representation manifold, but because it is a structural regularizer for the GNN.

  4. Is is possible also visualize the Cayley graph for discovering the important layers for each LLMs?

Typo: Line 140 Section ??.

Questions
  1. Where are 9 LLMs? In introduction part, the authors claim that there are 9 LLMs are tested. However, in experiment section, it seems the authors only conducted experiments on Pythia-410m, Gemma2-2B and Llama3-8B.

  2. More morden backbones.

  3. Discussion on the distinction from fully graph and vanilla attention model.

  4. Discussion on positional encodings.

  5. Visualization of the Cayley graph.

Limitations

yes

Final justification

My concerns have been addressed.

Formatting concerns

None

3 comments
Authors · CommentOpenReview ↗

We thank the reviewer for the positive assessment, and for recognizing that the Cayley graph mitigates over-squashing and overfitting, that our experiments are comprehensive across diverse LLM backbones and benchmarks, and that our ablation study provides additional insights.

Before addressing the specific points, we briefly summarize the significance of our contribution. The Cayley-Encoder adapts a frozen LLM to downstream tasks with ≤0.1% additional trainable parameters, 6–12× fewer than LoRA and far fewer than DWAtt, while matching or outperforming all baselines consistently across 9 LLMs (14M–14B), including the recent Qwen3 family. Beyond accuracy, it is 10–30× more memory-efficient than a fully-connected encoder in the token-graph setting and is strongly data-efficient in few-shot regimes. We believe a simple, principled, and broadly effective recipe for aggregating frozen-LLM layer representations is of practical significance to the community.

Weakness 1: The reviewer asks whether a newer baseline for aggregating inter-layer information exists other than DWAtt (2024). We thank the reviewer for this question. To our knowledge, DWAtt is the most recent method for our setting of inter-layer aggregation with fine-tuning over a frozen LLM. In addition to DWAtt, we added 5 additional baselines spanning diverse approaches, including optimizing for the best layer (inspired by [1], 2025) and Weighted [2].

[1] Skean, Oscar, et al. "Layer by layer: Uncovering hidden representations in language models.", 2025. [2] Peters et al. "Deep contextualized word representations", 2018.

Weakness 2: The reviewer suggests adding an evaluation using a Qwen model. We thank the reviewer. Following the suggestion, we repeated our experiments with Qwen3-8B, which shows similar patterns to the other backbones. The Cayley-Encoder achieves the best performance overall.

STS:

Method STSB STS12 STS13 STS14 STS15 STS16 BIOSSES SICK-R Avg
Last-Layer 29.26 58.45 37.48 33.88 47.65 46.36 51.83 41.07 43.25
Best-Layer 54.20 58.45 59.74 51.52 62.63 60.03 69.67 58.11 59.29
MLP 26.36 45.20 35.55 31.01 47.06 36.56 53.64 40.93 39.54
Weighted 38.45 52.03 45.05 38.63 57.53 49.71 59.45 50.34 48.90
DeepSet 39.53 49.10 33.01 32.24 46.16 48.54 57.05 44.74 43.80
DWAtt - no projection 36.8 58.9 31.2 34.0 55.6 49.3 59.5 46.8 46.51
DWAtt - with projection 38.63 44.96 41.00 40.56 53.98 45.68 54.26 42.05 45.14
FC-Encoder 54.24 64.87 49.30 59.51 69.34 57.47 65.11 56.20 59.51
Cayley-Encoder 58.69 63.52 64.81 68.85 73.69 58.28 54.77 57.89 62.56

Classification:

Method Banking77 Emotion MTOPDomain MTOPIntent PoemSentiment Avg
Last-Layer 48.12 30.18 71.79 56.67 37.31 48.81
Weighted 60.51 28.52 81.71 53.63 43.08 53.49
MLP Last-Layer 81.37 56.95 98.09 87.10 68.65 78.43
DWAtt - original 85.39 59.92 97.31 73.86 63.56 76.01
DWAtt - with projection 91.22 68.31 98.97 92.10 73.94 84.91
DeepSet 85.71 69.25 97.92 53.11 71.15 75.43
FC-Encoder 91.90 69.66 99.02 95.60 80.48 87.33
Cayley-Encoder 92.34 75.70 98.99 95.99 85.38 89.68

Weakness 3: The reviewer observes that a GNN over a fully-connected graph resembles attention. We thank the reviewer for this observation. A GNN over a fully-connected graph does not in general reduce to attention; it coincides with attention only when the GNN itself uses attention, as in a GAT [1]. Both the FC-Encoder and the Cayley-Encoder are general and can be instantiated with attention (e.g., by using a GAT as the GNN). Our framework therefore does not preclude attention; rather, we find that even simpler, non-attentional GNNs such as GCN and GIN already achieve strong performance, matching or outperforming the attention-based DWAtt on all 15 classification and 22 of 24 STS configurations, at fewer parameters. For completeness, all baselines follow their original architectures and are tuned under the same Optuna protocol as our methods (Appendix C), with our complete code already provided in the paper.

[1] Veličković et al., "Graph Attention Networks", ICLR 2018.

Authors · CommentOpenReview ↗

Weakness 4: The reviewer suggests that positional encodings not helping weakens the geometric motivation. We thank the reviewer for the comment. Our geometric motivation aims to allow rigorous, efficient aggregation of information from layers, without overfitting to the introduced structure or biasing specific layers. Our extensive empirical results show that our proposed methodology, motivated this way, achieves significant empirical gains, including across diverse LLM sizes and data regimes. Layer-position encodings inject layer identity, and their lack of benefit indicates that this information is not useful to the model when it learns the aggregation. This is further supported in our explainability analysis, as Figure 4 shows that all layers' contributions are roughly uniform to the final representation, suggesting that layer position is not helpful as general information for where useful information lies for the task.

Weakness 5: The reviewer asks for a visualization of the Cayley graph to identify important layers per LLM. We thank the reviewer for this question. We are unable to provide it here in this rebuttal due to restrictions on including links in the rebuttal. We provide importance scores for the layers per LLM in Section 4.6 (Figure 4), which shows that all layers contribute roughly equally. These charts can additionally be visualized on the Cayley graph, where the size of nodes corresponds to the importance of the layer.

Weakness 6: The reviewer points out a typo (Line 140, "Section ??"). We thank the reviewer for pointing out a typo. We will fix it in the camera-ready version.

Question 1: The reviewer questions the report of 9 evaluated LLMs, where only Pythia-410m, Gemma2-2B and Llama3-8B appear in the main experiments. Beyond these three main backbones, Section 4.2 evaluates seven additional Pythia models, amounting to nine LLMs overall.

Questions 2–5: addressed in the responses to Weaknesses 2, 3, 4, and 5, respectively.

Reviewer kFiG · CommentOpenReview ↗

Thank you for your rebuttal, which has addressed my concerns. I have adjusted my rating accordingly.

Reviewer aHrYOpenReview ↗
Rating
5/6
Confidence
4/5
Quality
3/4
Clarity
2/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The paper proposes a novel post-training method to aggregate internal layer representations of frozen LLMs for downstream tasks. Instead of relying solely on the final-layer representation or using attention-based layer fusion, the authors formulate inter-layer aggregation as a graph learning problem. They introduce the Fully-Connected Encoder and the Cayley-Encoder. The Cayley-Encoder maps LLM layer representations to nodes in a Cayley graph over the Special Linear group SL(2,Zn)SL(2,\mathbb{Z}_{n}). This creates a sparse, regular, and low-diameter graph topology, which mitigates GNN overfitting while ensuring efficient communication between all layers. Evaluated across 13 diverse tasks and 9 LLMs ranging from 14M to 8B parameters, the Cayley-Encoder consistently outperforms baselines. Notably, the method adds at most 0.1% trainable parameters relative to the base LLM and demonstrates strong data efficiency in few-shot regimes.

Strengths and weaknesses

Strengths

  1. A primary strength is the innovative framing of inter-layer aggregation as a geometric graph learning problem. By leveraging the algebraic properties of Cayley graphs, the authors achieve an excellent balance between expressive inter-layer communication and computational/parameter efficiency.
  2. Broad empirical evaluation spanning 13 tasks and multiple LLM families/sizes, including few-shot regimes and a comparison to LoRA fine-tuning.
  3. Demonstrates that simple, low-depth GNNs can effectively aggregate across layers without attention, and that sparse expander-like topologies improve efficiency and robustness over dense graphs.

Weaknesses

  1. The choice of Cayley graphs is motivated by theory, but there is no head-to-head comparison versus other sparse regular/expander topologies (e.g., random 4-regular graphs, rings + chords, small-world graphs, learned sparse graphs), leaving unclear how much the group-specific structure matters beyond degree/diameter.
  2. Minor formatting artifacts and incomplete sentences (e.g., “Section ??”) and some copy-editing issues reduce polish.
  3. Mapping layers to Cayley nodes is random. While this is a strength of robustness, it also suggests the particular group labeling brings no additional inductive bias beyond being a good expander.
Questions
  1. The Cayley graph pads missing layer representations with virtual nodes initialized with zero vectors. While the ablation study demonstrates robustness to layer-to-node assignments, does a high ratio of virtual nodes to real layers degrade the message-passing efficiency? For example, if a small LLM requires a Cayley graph where virtual nodes vastly outnumber real nodes, does the propagation of zero-vector signals dilute the learned representations?
  2. For DWAtt, how much performance is lost due to the 256-dim projection? Can you include results with and without the projection to ensure fairness?
  3. For LoRA, which modules were adapted and in which layers? If only a subset, might broader coverage change the comparison?
Limitations

yes

Final justification

The authors provide a strong and detailed rebuttal that adequately addresses my main questions, including comparisons with a matched random regular graph, robustness to high virtual-node ratios, the full-parameter DWAtt baseline, and clarification of the LoRA configuration. These responses reinforce my positive assessment, and I therefore maintain my original high score. However, I do not believe the paper reaches the bar for Strong Accept, which I reserve for technically flawless work with clearly groundbreaking impact, exceptionally comprehensive and controlled evaluation, outstanding reproducibility and resources, and essentially no remaining concerns. In particular, the contribution appears to rely primarily on favorable expander properties rather than a uniquely demonstrated Cayley-specific inductive bias, and some additional evidence is newly reported in the rebuttal rather than fully established in the submitted paper. Thus, the rebuttal strengthens the case for acceptance but does not justify upgrading the score to Strong Accept.

Formatting concerns

No Paper Formatting Concerns

3 comments
Authors · CommentOpenReview ↗

Rebuttal

We thank the reviewer for the positive assessment, and for recognizing the innovative framing of inter-layer aggregation as a geometric graph learning problem and our broad empirical evaluation across 13 tasks and multiple LLM families and sizes.

Weakness 1: The reviewer suggests comparing against other sparse regular or expander topologies. We thank the reviewer for this comment. This comparison is included in Appendix F (Tables 11–12): we replace the Cayley-Encoder with a random 4-regular graph encoder matched in degree and regularity, across all three LLMs and all 13 tasks. The Cayley graph outperforms this baseline on 22 of 24 STS task–model pairs and 9 of 15 classification pairs. This indicates the contribution goes beyond degree and sparsity alone.

Weakness 2: The reviewer points out minor formatting issues. We thank the reviewer. We will fix this for the camera-ready version.

Weakness 3: The reviewer mentions that the robustness of the Cayley-Encoder to layer mapping suggests that the particular group labeling brings no additional inductive bias beyond being a good expander. We thank the reviewer for this observation. One of the motivations for the Cayley-Encoder is to allow good information flow between layers without overfitting to the structure introduced to the GNN, which indeed relies on it being a good expander. The explainability results in Section 4.6 further support this by showing that the GNN uses the layers roughly uniformly. We believe this is an interesting property of our approach rather than a weakness.

Authors · CommentOpenReview ↗

Rebuttal

Question 1: The reviewer suggests examining the sensitivity of the Cayley-Encoder to settings with a high ratio of virtual nodes that outnumber the real nodes. We thank the reviewer for this suggestion. We note that our experiments with Pythia-14M/70M already cover this regime, where 7 layers are mapped to 24 nodes, so 71% of the nodes are virtual. Also in this setting, Figure 2 shows that the Cayley-Encoder systematically outperforms all baselines. Following the reviewer's suggestion, we conducted an additional experiment specifically targeting the virtual-to-real node ratio. Using Gemma2-2B on STSBenchmark tasks, we raised the virtual-node fraction from 44% (n=4, #nodes=48) to 78% (n=5, #nodes=120) and 81% (n=6, #nodes=144). Mean STS performance is stable from 44% to 78% virtual (64.45 → 64.50) and declines only modestly at 81% (62.01). This decline is driven by a few tasks (e.g., STS12, −9.5), while 5 of 8 tasks remain stable even at 81% virtual. Importantly, an 81% virtual-node ratio is usually far higher than any configuration required in practice, where real LLMs are mapped with substantially lower padding, so this represents a deliberate stress test rather than a realistic setting. Within all practical regimes (≤78%), performance is essentially unchanged. We will add this analysis to the camera-ready version.

Task n=4 (44%) n=5 (78%) n=6 (81%)
STSBenchmark 61.62 61.96 60.56
STS12 64.36 61.08 54.84
STS13 63.98 64.19 60.36
STS14 64.59 64.38 59.28
STS15 73.94 74.76 74.03
STS16 62.69 64.13 63.51
BIOSSES 64.07 64.50 63.38
SICK-R 60.32 61.02 60.14
Mean 64.45 64.50 62.01

Question 2: The reviewer suggests evaluating DWAtt with its complete parameter count (which is drastically higher than the Cayley-Encoder's) for fairness. We thank the reviewer for the suggestion. We wish to clarify that the reason we use the 256-dim projection is to ensure fairness, as without it DWAtt requires 69× (Pythia-410m), 206× (Gemma2-2B), 484× (Llama3-8B), and 541× (Qwen3-8B) more params than the Cayley-Encoder. Following the reviewer's question, we re-evaluated DWAtt with its original parameter count (without the 256-dim projection) on the classification tasks across four backbones. Removing the projection reduces DWAtt's performance, so the Cayley-Encoder's advantage grows even further: it outperforms unprojected DWAtt on every classification task and backbone (except Banking77 on Llama3-8B, which ran out of memory), with the largest margins on Gemma2-2B (Poem Sentiment +43.2, Banking77 +29.4). The full results are provided below. We will additionally include the corresponding STS comparison (with and without the projection) in the camera-ready version.

Classification:

Base Model Method Banking77 Emotion MTOPDomain MTOPIntent PoemSentiment Avg
Pythia-410m DWAtt (no projection) 84.81 57.98 98.14 88.26 61.83 78.20
DWAtt (projection) 83.23 58.60 98.03 91.66 70.87 80.48
Gemma2-2B DWAtt (no projection) 63.20 59.11 96.06 85.42 40.10 68.78
DWAtt (projection) 88.82 61.22 98.39 90.93 67.79 81.43
Llama3-8B DWAtt (no projection) OOM 59.03 84.05 86.91 75.19 76.30
DWAtt (projection) 90.04 66.55 97.97 92.41 75.00 84.39
Qwen3-8B DWAtt (no projection) 85.39 59.92 97.31 73.86 63.56 76.01
DWAtt (projection) 91.22 68.31 98.97 92.10 73.94 84.91

Question 3: The reviewer asks which modules and layers were adapted in the LoRA baseline, and whether broader module coverage might change the comparison. We thank the reviewer for the question. LoRA adapters were inserted into all attention projections WQ,WK,WVW_Q, W_K, W_V and WOW_O in every layer of the LLM, with the feed-forward modules frozen, as in [1]. In our current comparison, at r = 16, LoRA already trains 6–12× more parameters than the Cayley-Encoder, yet the Cayley-Encoder still outperforms it in 21 of 24 STS configurations and in 11 of 15 classification configurations (Table 3). We will state the module and layer coverage explicitly in the camera-ready version.

[1] Hu, Edward J., et al. "LoRA: Low-rank adaptation of large language models." ICLR, 2022.

Reviewer aHrY · CommentOpenReview ↗

I really appreciate the authors' efforts and labour. Since I already gave you a 5, I will keep the score. Thank you.

Reviewer 8ZrMOpenReview ↗
Rating
5/6
Confidence
3/5
Quality
3/4
Clarity
4/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper hypothesizes that using a structural representation of intermediate representations of LLM can produce better representation than a single layer embedding. The paper first show that applying GNN onto fully connected graph (layer representations as nodes), produce better than single layer representation, and then propose to map layer nodes onto Cayley-graphs, and shows that Cayley-graphs further improves performance and latency.

Strengths and weaknesses

Strength

The paper propose a simple yet very effective way to apply GNN for final representation generation. The Caylay graph formulation provides good efficiency with succesful regularization over fully connected layer graphs.

The paper provides a very interesting structural perspective into how to utilize intermediate representations, and the idea and experiments are presented nicely.

Weakness

Using intermediate layer is not new [1], many works following [1] has studies different composition techniques of different layers. While the proposed Cayley-graph mapping is new, it still appears somewhat heuristic, the authors didn't reason about why this proposal is ideal apart from "avoiding overfitting in FC encoder". Also, given an LLM architecture (essentially layer number), the connectivity between nodes is fixed. This essentially assume the layers' roles are static across different tasks, the author didn't discuss why the assumption and why it is valid.

Related to above, while Cayley-graph is a natural construction. You can extend to 6-degree or above with a different generator, why not those options are also not discussed.

The efficiency is not really an issue. Compared to the length of text input, the number of layer, and hence the GNN computation is negligiable compared to the LLM cost. Then this comes back to the problem of why not fully-connected layers. If you add enough regularization, or when the training data is sufficient, will FC-encoder be just as effective. This is important to establish Cayley-graph as a standard encoder rather then a heuristic regularizer.

[1] Skean, Oscar, et al. "Layer by layer: Uncovering hidden representations in language models." arXiv preprint arXiv:2502.02013 (2025).

Questions
  • Have you tried model in the same family but different sizes? Like qwen 1.5b all the way up to 16B. I am asking because we observe Cayley-encoder seem to outperform FC when parameter sizes increase, but no experiments shown on larger model. Hence, we cannot tell if it is just this particualr model family, or it's the sizes.

  • While the paper seems to promote a sense that the structure is important, but all experiments shows that structure does not matter: layer identify is not helpful, layer-to-node assignment is not important. But the adjacency introduced the structural inductive bias. Seems like the results just show we need a way to progressively aggregate information, then why do you claim the structure is important?

Limitations

yes

Final justification

The authors addressed my concern, and I will raise my score to 5.

Reason for raising my score:

Additional Experiments on the selection of degrees and size variations show the method is more promising.

Formatting concerns

na

2 comments
Authors · CommentOpenReview ↗

Rebuttal

We thank the reviewer for the positive assessment, and for recognizing that our method is a simple yet effective way to apply GNNs for final representation generation, and that it offers an interesting structural perspective on utilizing intermediate representations.

Weakness 1: The reviewer asks for clarification on the motivation of using the Cayley-Encoder compared to [1] and the FC encoder. We thank the reviewer for this comment. First, we note that [1] serves as motivation to our work, and we refer to it in our paper in line 34. [1] reveals that intermediate layers may be more useful than the last layer, depending on the task. In our evaluation, we therefore also compare against the optimal layer for the task following [1]. Following [1], our goal is to propose a rigorous approach for using information from all layers, rather than biasing or optimizing for a single layer. Indeed, in our empirical evaluation we show that this approach leads to a much improved representation, which improves downstream performance significantly.

Our goal is to propose a parameter-efficient method with minimal overhead. To that end, we suggest using a small GNN probe to learn how to aggregate the information over the layers. However, as GNNs are known to overfit the structure introduced to them even when it does not carry any useful information for the task itself [2], as in our case, we introduce a regular structure that is robust to overfitting [2]. To that end, a fully connected structure already suffices, and we show empirically that even without attention between layers (which is also an FC graph between layers) performance can already improve substantially (i.e., results of FC-encoder vs. DWAtt, which applies attention between layers). The main caveat of FC-encoders (and attention between layers) is the quadratic complexity. Then, to enable an even more efficient probe, we suggest Cayley as another regular graph that is both regular (and therefore robust to overfitting) and also sparse. Moreover, Cayley is also an expander, and we show that this property is critical for its performance, as random regular graphs (which are also sparse and regular) perform strictly worse. Together, these considerations motivate our construction of the Cayley-Encoder, whose benefits are verified through extensive experiments.

[1] Skean, Oscar, et al. "Layer by layer: Uncovering hidden representations in language models.(2025). [2] Bechler-Speicher et al., "Graph neural networks use graphs when they shouldn't", ICML 2024.

Weakness 2: The reviewer suggests that the fixed connectivity between nodes assumes the layers' roles are static across tasks, and asks for motivation for this assumption. We thank the reviewer for pointing this out. While the structure is fixed and guarantees robustness to overfitting and efficient communication between layers, the optimization is done separately for each task, and therefore the network can still use the layout differently for different tasks. Specifically, it does not assume that the layers' roles are static across tasks. We will clarify that in our camera-ready version.

Weakness 3: The reviewer suggests analyzing 6-degree or above generators, in addition to our 4-degree Cayley generator used in the paper. We thank the reviewer for the suggestion and provide new results below. We evaluated Cayley with 6-degree and 8-degree using the Qwen3-8B LLM backbone on classification tasks. We can see that deg-6 and deg-8 perform comparably to the degree-4 Cayley graph. The degree-4 Cayley graph used in the paper outperforms them in 4 out of 5 cases. We will add this analysis to the camera-ready version.

Method Banking77 Emotion MTOPDomain MTOPIntent PoemSentiment Avg
Cayley-Encoder (deg-4) 92.34 75.70 98.99 95.99 85.38 89.68
Cayley deg-6 92.01 75.23 98.96 95.77 78.75 88.14
Cayley deg-8 92.31 66.28 98.74 94.76 87.21 87.86

Weakness 4: The reviewer asks for the motivation of using the Cayley-Encoder over the FC-Encoder, as the number of layers in an LLM is usually small compared to the token input length. We thank the reviewer for the question. First, we note that the FC-Encoder is one of the contributions of our work, showing that it does not require heavy attention between layers and can improve performance significantly without it (e.g., see Table 1 compared to DWAtt). Nevertheless, Cayley is both more efficient (even if this efficiency matters less relative to the token sequence length) and performs better than FC in 10 out of 15 cases in classification tasks and 17 out of 24 cases in STS. In addition, when using the token-graph setup where the number of nodes depends on the input length, the Cayley-Encoder uses 10–30× less GPU than the FC-Encoder, while also improving performance. Together, these points summarize the advantages of the Cayley-Encoder over the FC-Encoder.

Authors · CommentOpenReview ↗

Rebuttal

Question 1: The reviewer suggests trying an additional scale-range LLM family for parameter-size analysis, such as Qwen. We thank the reviewer for the suggestion. We ran experiments on the Qwen3 family with sizes 1.7B, 4B, 8B and 14B with Cayley and FC setups, and the last layer as a single baseline for comparison on the classification tasks. We can see that the Cayley-Encoder matches or outperforms the FC-Encoder on all tasks in this family of models as well. The advantage of the Cayley-Encoder is markedly larger for the two largest models (8B: +2.35, 14B: +1.47) than for the smaller ones (1.7B: +0.74, 4B: +0.31).

Method Emotion Banking77 MTOPIntent MTOPDomain PoemSent Avg
Qwen3-1.7B
Last-Layer 31.88 53.23 58.12 72.98 39.52 51.15
FC-Encoder 68.96 91.56 94.91 98.94 79.33 86.74
Cayley-Encoder 70.01 92.27 95.36 98.87 80.87 87.48
Qwen3-4B
Last-Layer 31.45 55.39 62.54 74.61 39.13 52.62
FC-Encoder 76.05 91.39 95.51 98.60 79.62 88.23
Cayley-Encoder 75.91 91.78 95.90 98.83 80.29 88.54
Qwen3-8B
Last-Layer 30.18 48.12 56.67 71.79 37.31 48.81
FC-Encoder 69.66 91.90 95.60 99.02 80.48 87.33
Cayley-Encoder 75.70 92.34 95.99 98.99 85.38 89.68
Qwen3-14B
Last-Layer 29.96 47.79 58.10 69.32 41.35 49.30
FC-Encoder 73.54 92.41 96.34 98.81 80.19 88.26
Cayley-Encoder 78.68 92.52 96.16 99.15 82.12 89.73

Question 2: The reviewer suggests that, since layer identity is not helpful and the layer-to-node assignment is not important, this contradicts the idea the paper promotes that the structure is important. We thank the reviewer for the comment. We note that our work does not promote the idea that the structure is important per se; instead, it proposes a rigorous way to aggregate information between layers without biasing toward specific layers, in a way that is efficient and guaranteed not to overfit the imposed connectivity. The structure itself is decoupled from the target variable, and therefore it is not important on its own, nor do we claim so in our work. Nevertheless, as any aggregation between layers introduces an implicit structure (e.g., attention introduces a fully-connected structure), our hypothesis is that it is more beneficial to introduce a structure that reduces the risk of overfitting to it (as it is independent of the target variable), and also ensures efficient communication between the layers, which in turn improves performance substantially across model sizes and sample budgets. Our explainability analysis in Figure 4 further supports this and suggests the network learned solutions that improved performance while using information from different layers almost uniformly, showing that no specific layer is more important for the task. We will add this discussion to the camera-ready version to improve clarity.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…