Manuscript Offprint

arXiv:2610.25254

BatchParScale: Sparse Batch-Mixing for Sequence Models

Hans Peter Lyngsøe Raaschou-jensen, M. Onurcan Kaya, Desmond Elliott

Abstract

Recent test-time scaling methods improve model performance by increasing inference-time compute. One practical form of this is parallel scaling, where a model samples multiple independent reasoning streams and aggregates their answers using methods like voting, reranking, or verification. While effective, this approach leaves the streams uncoordinated, and a discovery made in one rollout cannot influence any other. Multi-Sequence Verifiers jointly score candidate answers after generation, but the reasoning streams remain independent during inference. ParScale takes a step toward model-internal parallel scaling by learning to aggregate multiple forward passes, but its streams still do not exchange information while processing a sequence. We introduce BatchParScale, an attention mechanism that allows parallel streams to exchange information through a small set of communication positions. We evaluate BatchParScale on a new Parallel Needle-in-a-Haystack retrieval benchmark and in pretraining, fine-tuning, and cooperative multi-agent reinforcement learning. Across these settings, BatchParScale outperforms ParScale on language-model loss and remains competitive on coordination-sensitive MARL tasks. Masked pretraining runs beat an unmasked single-sequence baseline despite local sequence corruption, and LoRA fine-tuning shows the mechanism can be added to a pretrained Transformer. At the same time, fact retrieval performance for pretrained and fine-tuned BatchParScale models remains unclear.

1 Introduction

Parallel test-time scaling has become a practical way to spend more computation at inference time. The common recipe is to sample several candidate reasoning traces, then choose among them with voting, reranking, or verification (Wang et al., 2023; Snell et al., 2024; Cobbe et al., 2021; Lightman et al., 2023). This can improve answer coverage, but the parallel traces in one rollout cannot reuse information from another. For example, if different traces explore different proof strategies, an intermediate lemma found in one trace is unavailable to the others until final aggregation. Parallel scaling therefore increases the number of computations, but it does not make those computations collaborative.

Final aggregation and verification can compare completed traces, but they do not let one stream change another stream's computation during inference. This work asks whether sequence models can occupy a tunable middle ground between parallel and sequential scaling: keeping the diversity of parallel streams while allowing intentional communication during the forward pass. We introduce batch-mixing as a class of sequence models in which streams can attend to selected hidden states from their peers. Our concrete instantiation, BatchParScale, restricts this exchange to a small set of communication positions, so most tokens remain ordinary per-stream causal computation.

We evaluate this idea from several angles. Parallel Needle-in-a-Haystack tests whether a stream without local evidence can recover information from another stream. TinyStories pretraining and FineWeb-Edu LoRA continued pretraining test whether the mechanism improves ordinary language-model objectives and masked-token recovery. Parallel QA-style probes test whether those gains correspond to reliable transfer of specific facts across streams. Cooperative multi-agent reinforcement learning tests whether the same communication primitive can support learned coordination. Finally, because sparse attention patterns can be asymptotically attractive but slow in practice, we analyze the direct implementation and an efficient two-pass version of BatchParScale.

BatchParScale can learn controlled cross-stream retrieval, improves aggregate language-model loss in our small-scale comparisons, and improves masked-token recovery when neighboring streams contain redundant context. LoRA continued pretraining shows that the mechanism can be added to a pretrained Transformer, and MARL results show competitive performance on several coordination-sensitive tasks. However, aggregate loss improvements and masked-token recovery do not imply reliable transfer of specific facts to streams without local evidence. This failure mode is clearest in PNIAH and PMHQA, where for both pretrained and finetuned models performance remains close to random despite the model being able to solve the task perfectly when information remains in a single stream. On the other hand, performance on parallel-WikiHop remains

Figure

Figure 1: Overview of BatchParScale. (A) BatchParScale lets parallel streams share selected hidden states through sparse communication positions. (B) ParScale streams interact only at final aggregation.

meaningfully above random. This motivates treating better data augmentation and training objectives as open problems for future research.

Our contributions are:

• We formulate batch-mixing as a sequence-modeling primitive for communication between parallel streams, and instantiate it as BatchParScale.

• We introduce Parallel Needle-in-a-Haystack (PNIAH) and parallel QA/MHQA (PQA/PMHQA)-style benchmarks for measuring whether information reaches streams that do not contain the evidence locally.

• We evaluate BatchParScale across language-model pretraining, LoRA continued pretraining, PNIAH and PMHQA, and cooperative MARL, finding that our architecture outperforms ParScale on sequence modelling, but performs poorly on downstream PNIAH and PMHQA-style benchmarks.

• We produce an efficient two-pass implementation that makes BatchParScale communication hardware-friendly.

References (14)