acceptodds
Published as a conference paper at NeurIPS 2026

Improving LLM Final Representations with Inter-Layer Geometry

Tom Ulanovski, Eyal Blyachman, Maya Bechler-Speicher

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 . 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 9 LLMs, Cayley-Encoder consistently outperforms baselines, achieving improvements of up to 40 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.

Keywords:
Sydney

Reviews

Among:
Shape:
123456this paper, Top 24%
Figure 1. Mean review rating of the reviewed papers at NeurIPS 2026. This paper averages 4.67 over 3 reviews, above 76% of the others.
Reviewer_kFiGOpenReview ↗
Rating
4
Clarity
3
Confidence
4
Originality
3
Quality
2
Significance
2
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

Paper formatting concerns

None

Final justification

My concerns have been addressed.

Reviewer_aHrYOpenReview ↗
Rating
5
Clarity
2
Confidence
4
Originality
3
Quality
3
Significance
3
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

Paper formatting concerns

No Paper Formatting Concerns

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.

Reviewer_8ZrMOpenReview ↗
Rating
5
Clarity
4
Confidence
3
Originality
3
Quality
3
Significance
3
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

Paper formatting concerns

na

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.

Comments on the paper

1 comment
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.

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

Related papers

Loading the map…

Discussion (0)

Sign in to comment.