arXiv:2611.24567cs.CLNov 2026

Manuscript Offprint

arXiv:2611.24567

Objective-Specialized Residual Streams in Manifold-Constrained Hyper-Connections

Shantanu Agarwal, Ruchita V. Maitri, Zhiqi Huang, Vivek Datla, Alfy Samuel

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Manifold-constrained Hyper-Connections (mHC) extend a Transformer’s residual stream into multiple parallel streams with learned cross-stream connections. Prior work trains all streams toward a shared objective. We instead study whether assigning distinct learning objectives to different streams can improve task performance and induce objective-specific specialization. Using complementary lexical (sparse) and semantic (dense) retrieval objectives as a test case, we find that objective-specialized mHC consistently outperforms a non-specialized mHC model across the full sparse–dense fusion range, for both two- and four-stream models and at two model scales. We then examine how specialization changes the model internally using probes of stream representations, residual mixing, objective-specific gradient flow, and read/write gates. The specialized and non-specialized models behave similarly through most of the network but diverge in the final layers: the specialized model develops increasingly objective-specific gradient flow, distinct read/write routing patterns, and reduced cross-stream mixing, and streams assigned to different objectives become increasingly dissimilar while those trained toward the same objective remain highly similar. Fixing the residual mixing to the identity leaves the specialization benefit intact, indicating that the benefit stems from objective-specific read/write routing rather than learned cross-stream mixing. These results show that assigning distinct objectives to mHC streams can improve multi-objective retrieval while inducing structured, depth-dependent specialization in the residual computation.

1 Introduction

Manifold-constrained Hyper-Connections (mHC) Xie et al. (2025) replace a Transformer’s single residual stream with multiple parallel streams Zhu et al. (2024), whose interactions are learned at each layer’s attention and feed-forward modules. Existing applications of mHC jointly optimize all streams toward a shared objective Xie et al. (2025); Oldenburg et al. (2026); Mishra (2026), leaving open a basic question: what happens when different streams are assigned different objectives?

Distinct objectives can benefit from shared representations and computation Caruana (1997); Liu et al. (2019), while task-specific processing can be beneficial when objectives require different information Misra et al. (2016); Sun et al. (2019). This motivates objective-specialized mHC, in which different streams are assigned distinct learning objectives while retaining the ability to interact through learned connections.

We investigate two questions. RQ1: Can mHC streams specialize toward distinct learning objectives while improving joint task performance? (Section 4) RQ2: How does this specialization emerge across depth, as reflected in inter-stream representations, gradient flow, and read, write, and residual-mixing gates? (Section 5).

As a concrete test case, we consider two complementary information-retrieval objectives: lexical and semantic matching Lin and Lin (2023); Lee et al. (2023). We train two- and four-stream mHC models, assigning each objective to a disjoint subset of streams, and evaluate at two model scales, ModernBERT-base and ModernBERT-large Warner et al. (2024), to test whether the effect of specialization holds beyond a single model size. Across 13 BEIR benchmarks Thakur et al. (2021), the pattern is consistent at both scales: objective specialization improves average nDCG@10 from 0.43100.4310 to 0.44860.4486 with two streams and from 0.44100.4410 to 0.45290.4529 with four streams at the base scale, and from 0.45740.4574 to 0.46670.4667 and from 0.45730.4573 to 0.47480.4748, respectively, at the larger scale. In addition, we demonstrate that the specialized models outperform their non-specialized counterparts across the full sparse–dense fusion range at both scales.

Beyond retrieval performance, we analyze how objective specialization emerges within the mHC stack using complementary measurements of stream routing, gradient flow, and inter-stream representations. These diagnostics reveal a consistent depth-dependent pattern. Through most of the Transformer, specialized and non-specialized models exhibit similar residual mixing and read/write routing, while gradients from the two objectives remain broadly distributed across streams. In the final layers, however, the specialized models exhibit a distinct pattern absent in the non-specialized models: gradient flow becomes increasingly concentrated on the streams assigned to each objective, read/write routing becomes asymmetric, with the MLP increasingly reading from the sparse-objective streams and writing toward the dense-objective streams, and residual mixing moves toward the identity. Additionally, the representation analysis provides a clear contrast: in the non-specialized model, all streams remain highly similar throughout the network, whereas in the specialized model, streams assigned to different objectives become increasingly dissimilar in the final layers. These effects persist when increasing from two to four streams, suggesting that mHC supports shared computation at early depths followed by objective-specific processing near the output. Finally, fixing the residual mixing to the identity leaves the specialization benefit intact, indicating that the benefit stems from the objective-specific read/write routing rather than from learned cross-stream mixing.

Together, these results show how objective specialization in mHC emerges across depth, connecting retrieval gains to changes in stream representations, gradient flow, and routing. To our knowledge, we are the first to assign distinct learning objectives to different mHC streams and characterize the resulting specialization across the Transformer stack.