Manuscript Offprint
arXiv:2611.08085Linguistic boundaries emerge from pressure-constrained processing dynamics
Rui He, Philipp Homan, and Wolfram Hinzen
Grammar and Cognition Lab, Department of Translation & Language Sciences, Universitat Pompeu Fabra, Barcelona 08018, Spain
Department of Adult Psychiatry and Psychotherapy, University Hospital of Psychiatry Zurich, University of Zurich, Zurich 8032, Switzerland
Neuroscience Center Zurich, University of Zurich and ETH Zurich, Zurich 8057, Switzerland
Institució Catalana de Recerca i Estudis Avançats, Barcelona 08010, Spain
Human cognition organizes continuous experience into bounded units while maintaining continuity across them. Linguistic elements are also organized into bounded structural units such as words and phrases, with the sentence marking the final bound of a grammatical construction process. How do such boundaries emerge? We propose that boundaries emerge from interacting demands to maintain unresolved dependencies, integrate completed relations, and update semantic context, with structural completion allowing but not determining closure. First, in an abstract generative simulation without predefined boundary positions or constituent labels, these demands produced sentence-like segment-length distributions and distinct characteristic timescales, with structural completion allowing but not determining closure. Near boundaries, unresolved dependency load declined, integration cost peaked, and accumulated pressure reset. Then, we tested whether the same demands predicted human listeners' boundary choices during comprehension. Listeners were more likely to mark boundaries with fewer unresolved dependencies, higher integration cost and semantic mismatch, and elevated preceding memory load, beyond syntactic and prosodic cues. Third, in naturalistic self-paced reading, sentence-final slowing coincided with declining memory load and increasing integration cost and semantic mismatch, broadly consistent with the simulation. Processing the same narratives with a large language model revealed increased local intrinsic dimensionality and straighter hidden-state trajectories at sentence endings, followed by larger representational updates. Explicit boundary status explained additional variation in reading time and hidden-state geometry beyond graded processing demands, but considerably less in next-token surprisal. Together, these findings suggest that linguistic boundaries emerge as discrete manifestations of characteristic transitions in continuous information processing dynamics.
language processing | event boundaries | processing pressure | dynamical systems | large language models
Correspondence: rui.he@upf.edu
Introduction
Everyday experience reaches us as a continuous stream. Scenes change, actions unfold, sounds decay, and interactions move forward without clear physical cuts. Yet cognition does not simply mirror this continuity. It must maintain and integrate incoming information while organizing experience into bounded units. Linguistic experience presents this organization in a grammatically structured form. Words combine into phrases and clauses, and clauses can be recursively embedded within larger constructions. Diverse linguistic traditions have characterized this organization in terms of syntactic constituents and clausal categories, functional and discourse units, and prosodic hierarchies (1–3). This organization is also reflected in language processing: behavioral studies show sensitivity to recurring multiword sequences (4), while neural responses track linguistic structures at phrase and sentence scales (5–9). Although this process can, in principle, continue without a fixed grammatical limit, actual linguistic constructions eventually come to an end (10). While working memory constraints can limit sentence length (11), they do not by themselves explain why closure occurs at a particular point (12). One possibility is that linguistic boundaries emerge, at least in part, from the interaction of processing demands as language unfolds over time.
The now-or-never bottleneck view provides a basis for this possibility: transient linguistic input must be rapidly processed and recoded before it is lost (12). Sentence processing involves demands at both structural and semantic levels (13). At the structural level, dependency locality theory (DLT) identifies the memory costs of maintaining unresolved dependencies and the integration costs incurred when these relations are resolved (14, 15). For example, in 'John, who wears a suit, talked to Mary', 'John' must remain active across the intervening clause until it can be integrated with the predicate 'talked'. Meanwhile, incoming information must be integrated with the evolving semantic context, with processing difficulty depending on contextual expectations (16, 17): following 'talked to', 'Mary' is more contextually compatible than 'the table'. These demands evolve as information unfolds: unresolved relations must be maintained and eventually integrated, while contextual representations are continually updated. Crucially, structural completion makes closure possible, but does not necessarily determine when it occurs. We propose that the combined effects of these demands accumulate as processing pressure, increasing the likelihood of closure at structurally permissible points.
Under this account, boundaries represent discrete transitions within continuously evolving processing dynamics. Such transitions should involve coordinated changes in processing demands and local representations, rather than a uniform increase in processing difficulty. Existing findings provide clues to these changes. Event boundaries are associated with increased processing time (18–20), clause and sentence endings produce wrap-up effects (21, 22), and boundary words evoke event-related potential signatures associated with memory formation (23). Computational modeling of fMRI responses during narrative comprehension further suggests that information updating between word and sentence levels is concentrated at sentence boundaries (24). Large language models (LLMs) also exhibit boundary-sensitive processing, although such effects are not always strongly expressed in next-token prediction (25). Changes in hidden-state dynamics, particularly in deeper layers, have instead been linked to sentence-level organization (26). These findings suggest that boundaries involve changes in ongoing processing and internal representations, but how such changes relate to the demands that shape boundary formation remains unclear.
We investigate both the formation of boundaries and the processing transitions associated with their occurrence. First, an abstract generative simulation tests whether interacting maintenance, integration, and contextual demands can produce bounded segments without predefined boundary positions or constituent labels. The model generates sentence-like length distributions and distinct interacting timescales, while pressure-dependent closure produces less variable segment lengths than a control simulation where structurally complete segments terminate at a fixed probability. We next test whether corresponding demands predict human boundary placement in continuous speech. In a speech-chunking task, listeners' choices were associated with reduced remaining memory load, elevated preceding memory load, higher integration cost, and greater semantic mismatch, beyond syntactic and prosodic cues. Finally, we examine established sentence boundaries using naturalistic self-paced reading and LLM processing of the same texts. Sentence-final reading time increased alongside changes in processing costs, while the LLM showed pronounced reorganization of internal representational geometry. Explicit boundary status explained additional variation in reading time and hidden-state geometry beyond graded processing demands, with a much smaller contribution to next-token surprisal. Together, these findings support a view of linguistic boundaries as discrete transitions shaped by continuous processing demands and accompanied by changes in representational organization.
Emergent boundary from pressure-constrained organization
We first asked whether boundary-like organization could arise from local processing demands without predefined sentence boundaries or constituent labels. To test this, we developed an abstract generative model with interacting structural and contextual streams (Figure 1A). The structural stream generated operations that opened, maintained, and resolved dependency-like relations. Drawing on dependency locality theory (DLT), we distinguished memory cost, reflecting the number of unresolved relations held active, from integration cost, incurred when these relations were resolved. In DLT, integration cost reflects both the distance between dependent elements and the introduction of new discourse referents. Because our synthetic model contained neither lexical categories nor explicit discourse referents, we treated each generated token as a minimal discourse unit and approximated integration cost by the number of intervening units crossed when a relation was resolved. This captures the distance-sensitive component of DLT without implementing the full theory. In parallel, the contextual stream operated over a synthetic semantic space in which each item in a finite pseudo-vocabulary was assigned a randomly initialized vector sampled around latent semantic centers, allowing nearby items to share semantic similarity. Preceding token representations were combined into an exponentially decaying context state that assigned greater weight to recent input. Tokens were generated according to their compatibility with this evolving state, and contextual surprisal quantified how unexpected each new token was given the preceding context.
At each step, memory cost, integration cost, and contextual surprisal were combined with residual pressure carried over from earlier steps. The resulting processing pressure was transformed through a sigmoid function into a probabilistic boundary drive. When relations remained open, increasing pressure promoted their closure. Once all relations had been resolved, the same accumulated pressure increased the probability of emitting a boundary. Boundary emission reset pressure, contextual state, and open relations, allowing a new segment to begin. Thus, segment boundaries were determined by the interaction of processing demands and structural operations rather than supplied as predefined positions.
We explored a broad parameter space, evaluating each configuration across ten random seeds (SI, Tables S1 and S2). To identify non-degenerate regimes without requiring the model to reproduce natural language in detail, we constructed a language-likeness score based on dependency-length decay (27), approximately Zipf-like lexical rank-frequency distributions (28), and controls against lexical collapse (Figure 1B).
The parameter scan identified regimes that reproduced basic statistical regularities of natural language without predefined linguistic boundaries. We compared three model families differing in the sources of processing pressure: memory and integration costs alone (DLT-only), contextual surprisal alone (surprisal-only), or all three combined (DLT-surprisal). Among the top 10% of configurations ranked by language-likeness, the combined model achieved the highest numerical overall scores (Figure 1C). Configurations incorporating memory and integration costs scored higher than those driven by contextual surprisal alone. Compared with DLT-only configurations, adding contextual surprisal did not significantly improve the overall language-likeness score within this selected subset, although it was associated with a closer fit to Zipf-like lexical distributions (SI, Figure S1). High-scoring configurations were found across a range of boundary thresholds, pressure carry-over values, contextual strengths, and structural-cost weights (SI, Figure S2). These results show that pressure-dependent segmentation can generate basic language-like statistical properties across multiple parameter settings. We selected the highest-scoring combined configuration (SI, Table S3) for subsequent analysis of its boundary dynamics.
(A) Simulation model

(B) Language-likeness score



(C) Model family comparison of language-like score

Fig. 1. Pressure-constrained simulation and parameter selection. (A) Simulation model. Dependency-locality costs and contextual surprisal jointly contribute to processing pressure. Accumulated pressure is transformed by a sigmoid function into a probabilistic boundary drive. When open relations remain unresolved, pressure promotes the resolution of open relations. When no relation remains open, pressure increases the probability of a boundary, which resets accumulated pressure and the local contextual states. (B) Language-likeness score. Parameter regimes were evaluated using dependency-length decay, Zipf-like lexical rank-frequency structure, and anti-collapse lexical quality control. (C) Top 10% language-like regimes. Model families were compared within the subset of parameter combinations retained by the language-likeness score.
Pressure-release transitions
Having identified the highest-scoring combined parameter regime, we next examined how processing demands evolved around the boundaries generated by the selected model. The configuration was rerun across 500 random seeds, and model variables were aligned to emitted boundaries. Position 0 corresponded to the final pre-boundary event, and position +1 to the first post-boundary event. For comparison, an equal number of non-boundary control positions were sampled from the same sequences, at least three positions away from any boundary.
Consistent with the model's boundary-generation rule, accumulated processing pressure and boundary probability increased toward boundary emission and dropped sharply afterward (Figure 2A,B). These transitions were absent around non-boundary control positions. Beyond this expected pressure reset, we examined whether the individual processing demands exhibited coordinated changes around boundaries.
The structural and contextual components showed distinct temporal profiles. As boundaries approached, open relations were progressively resolved, resulting in declining memory cost and increasing integration cost, which peaked around boundary emission (Figure 2D,E). Contextual surprisal and semantic mismatch exhibited more gradual changes, increasing around boundaries and peaking shortly after emission (Figure 2C,F). These contextual changes were broader and delayed relative to the sharper structural closure and integration profiles. No comparable coordination was observed around non-boundary control positions.
Although structural completion and pressure reset were specified in the model, the detailed temporal profiles of processing demands were not. The simulation produced distinct structural and contextual dynamics around closure, with sharper changes in dependency-related costs and more gradual contextual changes. These coordinated patterns emerged from the interaction of local processing operations rather than from predefined temporal profiles.

(D) Memory cost
(E) Integration cost
(F) Semantic mismatch
Fig. 2. Boundary-aligned profiles in the best-performing pressure-constrained model. Analyses were performed on the highest-scoring DLT-surprisal parameter regime, rerun across 500 random seeds. Model variables were aligned to emitted boundaries and compared with non-boundary control positions sampled from the same simulations. The vertical dashed line marks the boundary crossing. Six variables of interest: (A) Processing pressure; (B) Boundary probability; (C) Contextual surprisal costs; (D) Memory costs; (E) Integration costs; and (F) Semantic mismatch.
(A) Continuous dynamics (Welch peak period)

(B) Discrete structural scales (Inter-event interval)
Fig. 3. Temporal scales of continuous dynamics and discrete structural events in the selected model. Analyses were performed on the highest-scoring DLT-surprisal parameter regime rerun across 500 random seeds. Points show mean period or scale across seeds. Error bars indicate 95% bootstrap confidence intervals. (A) Dominant periods of continuous model variables estimated from Welch peak periods. Boundary probability and integration cost showed similar segment-scale periods, whereas memory cost varied over a longer scale and contextual surprisal over a much slower scale. (B) Discrete structural scales estimated from median inter-event intervals or relation spans. Relation openings, relation closures, and relation spans occurred at short local scales, whereas actual boundaries occurred at a longer segmental scale.
Distinct characteristic timescales in model dynamics
Beyond these boundary-centered changes, we examined whether different processing demands operated over distinct characteristic timescales (Figure 3). For continuous variables, timescales were estimated from the dominant non-zero frequencies in Welch power spectra. For discrete structural events, they were estimated from median inter-event intervals or relation spans.
The continuous variables exhibited distinct temporal profiles (Figure 3A). Boundary probability and integration cost showed similar dominant timescales of approximately 16 events, suggesting that boundary drive and the integration of re-solved relations varied at a common segmental scale. Memory cost varied over a longer timescale of approximately 38 events, reflecting slower fluctuations in the load of unresolved relations. Contextual surprisal was dominated by still lower frequencies, indicating that contextual compatibility varied over a broader temporal window than the structural processing demands.
Discrete structural events revealed a complementary organization (Figure 3B). Relation openings, closures, and spans occurred at short local scales of approximately four events, whereas emitted boundaries were separated by approximately 18 events. Inter-boundary intervals followed a strongly right-skewed, long-tailed distribution (SI, Figure S3), qualitatively resembling natural sentence-length distributions (29).
Together, these findings reveal a multiscale organization in which local dependency operations occur at short timescales, integration and boundary formation vary at an intermediate segmental scale, memory load fluctuates over longer periods, and contextual information evolves most slowly. Thus, the pressure-constrained model generates distinct but interacting temporal scales of linguistic-like organization without imposing an explicit hierarchy of linguistic units.
Processing pressure beyond structural completion
To assess the contribution of pressure-dependent boundary formation, we compared the model with a completion-only control in which boundaries occurred with a fixed, pressure-independent probability once all open relations had been resolved. The two models were calibrated to produce comparable mean segment lengths. Pressure-dependent closure yielded a more constrained segment-length distribution and a sharper increase in integration cost preceding boundaries, whereas completion-only closure produced greater length variability and weaker boundary-centered coordination of processing demands (SI, Figure S4). These findings suggest that processing pressure contributes to determining when structurally permissible boundaries are realized.
Processing costs predict human boundary choices
The simulation revealed coordinated changes in structural and contextual processing demands around generated boundaries. To test whether corresponding structural and contextual demands predict human boundary choices in natural speech, we analyzed an independent perceptual chunking dataset (30). In the original experiment, 50 listeners marked perceived boundaries while listening to extracts of spontaneous speech. The accompanying transcripts were presented without sentence punctuation, so listeners marked perceived boundaries without written punctuation cues. Across 5,140 candidate word positions, we quantified memory cost remaining after each word, integration cost associated with dependency resolution, and local semantic mismatch.
Structural costs were derived from dependency parses produced by the Stanza English parser (31). Following the distinction in DLT (15), memory cost indexed the number of dependency relations remaining unresolved after each word. Integration cost summed the distance costs of relations resolved at the current word, measured by the number of intervening discourse referents. Nouns, proper nouns, and verbs were treated as content-bearing referential units.
Lexical-semantic mismatch was estimated separately using static fastText embeddings (32). We used static word embeddings to capture distributional semantic relationships between words, without introducing the sentence-specific syntactic and contextual information encoded by contextualized embeddings. For each word, semantic mismatch was defined as the cosine dissimilarity between its embedding and the mean embedding of the preceding four words. This provided a local measure of lexical-semantic dissimilarity independent of the dependency-derived structural costs.
Adding these predictors substantially improved model fit (Akaike information criterion, ; joint Wald ; Figure 4A). All three costs independently predicted boundary choices. Higher post-word memory cost was associated with lower odds of a boundary choice (odds ratio [OR] = 0.689, ), while higher integration cost (OR = 1.094, ) and semantic mismatch (OR = 1.158, ) were associated with increased odds. To ensure that these effects were not driven by the endpoints of the largest syntactic units identified in the original annotations, where memory cost necessarily reached zero, we repeated the analysis after excluding these positions. All three associations remained significant (SI, Figure S5), and the results were also robust to treating grammatical boundary strength as a categorical rather than a continuous predictor (SI, Figure S6).
We further examined whether boundary choices depended on recent changes in memory load rather than its current level alone. Adding memory cost at the preceding word and the mean cost across the preceding three words further improved model fit ( , joint Wald ; Figure 4B). Memory cost at the immediately preceding word positively predicted boundary choices after accounting for current processing demands (OR = 1.581, ), while the three-word mean showed no additional association (OR = 1.014, ).
These findings provide behavioral support for the predicted relationships between structural and contextual processing demands and boundary placement, broadly consistent with the simulation.
Human reading shows a pressure-release profile at sentence boundaries
The speech-chunking task recorded listeners' boundary choices but did not measure reading time, which provides a complementary behavioral measure of how processing difficulty evolves as a sentence unfolds. We therefore analyzed word-by-word
(A) Computational cost effects

(B) Local memory history

Fig. 4. Processing costs and local memory history in human boundary judgments. (A) Adjusted boundary-choice probabilities across standardized memory cost after the current word, integration cost, and local semantic mismatch. Shading indicates 95% confidence intervals. (B) Odds ratios for memory cost at the preceding word and mean memory cost across the preceding three words. Error bars indicate 95% confidence intervals; the dashed line marks an odds ratio of 1.
self-paced reading time from the Naturalistic Stories corpus (33) to examine processing dynamics around established sentence boundaries. To reduce spillover from preceding words, we residualized log-transformed reading time against previous-word log reading time and story identity (34).
Residual reading time showed a clear sentence-boundary profile. It increased as the boundary approached, peaked at the sentence-final word, and dropped immediately afterward (Figure 5A). This pattern is consistent with a sentence-final wrap-up effect, in which readers allocate additional processing time at clause or sentence boundaries to integrate or close the preceding material (21).
To examine the processing demands accompanying this behavioral profile, we estimated dependency-based memory and integration costs and local semantic mismatch using the same procedures as in the chunking analysis. Memory cost declined toward sentence endings, as expected from dependency parsing within sentences. Integration cost peaked at the sentence-final word and dropped immediately afterward (Figure 5B,C). Semantic mismatch also reached its maximum at the sentence boundary (Figure 5D).
Together, these profiles indicate that the sentence-final increase in reading time coincided with the resolution of open dependencies, elevated integration demands, and increased local semantic mismatch. The structural dynamics closely resembled those observed in the simulation, with declining memory load and integration costs concentrated around closure. A temporal difference emerged in the contextual component: semantic mismatch peaked at the sentence-final word in naturalistic reading, rather than immediately after boundary emission as in the simulation. Thus, the human reading data revealed a boundary-centered processing profile that broadly paralleled the simulated pressure-release dynamics, while differing in the timing of contextual changes.
LLM representations reorganize at sentence boundaries
We also examined how sentence boundaries affect prediction and internal representations in a large language model. Using Qwen3-4B (35), we processed the same naturalistic stories and measured next-token surprisal, word-to-word representational updates, and hidden-state geometry across words and model layers.
At the output level, contextual surprisal increased toward sentence boundaries and peaked immediately afterward (Figure 5E), resembling the delayed contextual changes observed in the simulation (Figure 2C,F). This post-boundary increase in prediction difficulty suggested a transition in contextual processing, which we further examined through the model's hidden-state geometry.
Cosine distance between consecutive token representations, measuring the magnitude of word-to-word representational updates, also peaked immediately after the boundary (Figure 5F). In contrast, local intrinsic dimensionality (ID), reflecting the effective dimensionality of the local representational neighborhood (36), reached its maximum at the sentence-final word (Figure 5G). These profiles suggest that local representational complexity was greatest at closure, followed by a pronounced update as the model entered the next sentence.
We further examined the geometry of representational trajectories. Temporal trajectory curvature, which captures changes in the direction of successive token representations, increased immediately before the boundary, dropped to a minimum at the sentence-final word, and recovered afterward (Figure 5H). The boundary was therefore associated with a transient straightening

(E) Qwen surprisal
(F) Cosine update
(G) Local intrinsic dimensionality
(H) Trajectory curvature
(I) Layer curvature mean
(J) Layer curvature length-to-chord ratio
Fig. 5. Sentence-boundary-aligned profiles of human reading time, model-derived surprisal, and LLM measures. All measures were aligned to sentence boundaries in the naturalistic stories. The vertical dashed line marks the sentence boundary position. (A) Mean log reading-time residuals, including spillover correction. (B) Memory cost from dependency parsing. (C) Integration cost from dependency parsing. (D) Semantic mismatch increased at the boundary. (E) LLM surprisal. (F) Cosine distance between consecutive hidden states. (G) Local intrinsic dimensionality. (H) Trajectory curvature among tokens. (I) Averaged layer curvature. (J) Length-to-chord ratio of layer curvature.
of the representational trajectory following increased pre-boundary turning.
A similar pattern emerged across model depth. Mean layer curvature and the layer-wise length-to-chord ratio, characterizing the geometry of each token's transformation across successive layers, both decreased at sentence-final positions and recovered afterward (Figure 5I,J). These decreases indicate that layer-wise transformations became more direct at closure, paralleling the reduction in temporal trajectory curvature. Sentence boundaries were thus associated with transient straightening along both the temporal and layer-wise dimensions of representational change.
Together, these measures revealed distinct but coordinated boundary-centered dynamics. Local intrinsic dimensionality and representational straightening were concentrated at the sentence-final word, while surprisal and the magnitude of token-to-token updates peaked immediately afterward. Rather than producing a uniform change in representational activity, sentence boundaries were associated with a temporally structured transition between the processing of the preceding sentence and the representation of the next.
Graded pressure and discrete closure make distinct contributions across outcomes
The boundary-aligned profiles revealed distinct changes in human reading time and LLM processing at sentence endings. We tested whether these changes could be explained by graded processing demands or whether categorical sentence-boundary status accounted for additional variation. To distinguish these contributions, we compared two regression models for each outcome. The first included memory cost, integration cost, and semantic mismatch as graded predictors that varied across words. The second additionally included categorical boundary status, indicating whether a word was sentence-final. Both models controlled for word position and story identity (Figure 6). Adding boundary status improved model fit across all outcomes, although the magnitude of this improvement varied substantially (Figure 6B; SI, Figure S7).
Human reading time was positively associated with integration cost and semantic mismatch, with memory cost also showing a positive association after boundary status was included (Figure 6A). Boundary status produced a substantial reduction in AIC, indicating that the selected continuous processing costs did not fully account for sentence-final reading difficulty. This additional association need not imply an independent boundary-generating mechanism, as categorical boundary status may also capture sentence-final properties not represented by the continuous predictors.
LLM surprisal showed a different pattern. Semantic mismatch was its strongest predictor, while memory and integration costs showed comparatively weaker associations (Figure 6A). Adding boundary status yielded only a small improvement in model fit (Figure 6B), suggesting that output-level prediction difficulty was primarily associated with graded lexical-semantic demands.
The LLM's internal representations showed greater sensitivity to boundary status. Although cosine update was asso-
(A) Constraint and boundary sensitivity across behavioral and LLM outcomes

(B) Boundary-control gain
Fig. 6. (A) Constraint sensitivity across behavioral and LLM outcomes. Each panel shows the Wald z-statistics for memory cost, integration cost, and static semantic mismatch as predictors of one outcome. Outcomes included spillover-adjusted reading-time residuals, Owen surprisal, cosine update, local intrinsic dimensionality, trajectory curvature, mean layer curvature, and layer length-to-chord ratio (LCR). Circles show models without explicit sentence-boundary control. Squares show models including sentence-boundary status as an additional categorical predictor. Stars indicate statistical significance corrected by False Discovery Rate. (B) Boundary-control gain. Points show AIC, defined as AIC with boundary control minus AIC without boundary control. More negative values indicate better model fit after adding explicit sentence-boundary status.
ciated with all three processing costs, its additional improvement from boundary control remained small. In contrast, local intrinsic dimensionality, trajectory curvature, mean layer curvature, and layer length-to-chord ratio showed substantially larger reductions in AIC after boundary status was included (Figure 6B). Thus, several aspects of hidden-state geometry captured boundary-related variation beyond that explained by the measured processing costs.
This dissociation distinguishes the graded demands preceding closure from the representational changes associated with the boundary itself. Human reading difficulty and LLM representational geometry retained substantial boundary-related effects, while LLM surprisal predominantly tracked lexical-semantic mismatch. The results suggest that sentence closure is expressed differently in observable processing difficulty: next-token prediction and internal representational dynamics.
Discussion
This study examined how linguistic boundaries emerge from interacting processing demands and how closure is expressed during language processing. Our generative simulation showed that structural completion made closure possible, while accumulating memory, integration, and contextual demands shaped when it occurred. The model produced bounded segments with sentence-like length distributions and coordinated changes in processing demands around boundaries. We examined two implications of these findings in natural language. First, corresponding processing demands predicted listeners' boundary choices in spontaneous speech beyond grammatical and prosodic cues, providing behavioral support for the proposed account of boundary formation. Second, the simulation predicted characteristic changes in processing demands around closure. In human self-paced reading, sentence-final slowing coincided with changes in memory load, integration cost, and semantic mismatch, broadly consistent with the simulated profiles. Analyzing the same texts with an LLM allowed us to examine the associated internal representations, which showed pronounced geometric changes at sentence boundaries. Moreover, categorical boundary status explained additional variation in human reading time and LLM representational geometry beyond graded processing demands, but contributed much less to next-token surprisal. Together, these findings suggest that linguistic boundaries can emerge from interacting processing demands and that their occurrence marks a characteristic transition in ongoing processing.
This account complements formal descriptions of linguistic structure. Constituency and dependency representations characterize how linguistic elements are organized and the structural conditions under which a sentence is complete. A distinct mechanistic question is why an unfolding sequence closes at one structurally permissible point rather than continuing into a larger structure. Our model addresses this question through the interaction of dependency resolution and processing pressure: the former makes closure possible, while accumulating structural and contextual demands regulate when it occurs. The completion-only control reinforces this distinction, showing that structural completion permits segmentation, but pressure-dependent gating further shapes segment-length distributions and boundary-centered dynamics. Human boundary choices provide converging evidence, with processing costs predicting boundary placement beyond grammatical and prosodic cues. Sentence closure thus reflects the interaction of grammatical constraints and processing dynamics, rather than either alone. Although our analysis focuses on sentence-level closure, the distinct characteristic timescales observed in the simulation suggest that related organizing principles may extend to other levels of linguistic organization.
Linguistic closure in the simulation was organized across multiple characteristic timescales. Local dependency operations occurred over approximately four generated units, while integration cost and boundary drive varied over a segmental scale of 16–18 units. Memory load evolved over longer intervals, and contextual surprisal showed the slowest variation. The resulting segment lengths exhibited a right-skewed, long-tailed distribution, qualitatively resembling natural sentence-length distributions (29). This multiscale organization suggests that larger linguistic units can arise through the coordination of local structural operations and more persistent contextual demands, without requiring a fixed chunking window or a predefined hierarchy of units (37). Such coordination is consistent with local capacity constraints on online processing (38, 39) and the accumulation of information across multiple temporal windows (40–43). It also suggests a possible connection to metastability. A boundary occurred when the current configuration was brought to completion and the system transitioned to a new one. In this limited sense, the results are compatible with a metastable view of language processing: sentence-level configurations remain temporarily organized without becoming permanently fixed and are reorganized when the demands sustaining the current state reach a transition point and move the system beyond its current stable range. We suggest this interpretation cautiously and as provisional, as formal metastability was not directly quantified.
The role of processing dynamics in boundary formation raises a further question about what happens once closure is realized. In the speech-chunking analysis, processing costs remained predictive after excluding top-level unit endings, whereas sentence-final memory release in the reading analysis was partly constrained by sentence-level parsing. Nevertheless, sentence-final slowing coincided with elevated integration cost and semantic mismatch. Moreover, categorical boundary status improved model fit beyond these graded processing demands, suggesting that the measured costs did not fully capture the processing changes associated with closure.
LLM next-token surprisal showed a different pattern. Although surprisal peaked immediately after sentence boundaries, it was most strongly associated with lexical-semantic mismatch, and adding boundary status yielded only a small improvement in model fit. Surprisal quantifies the unexpectedness of incoming words under the model's current context, but may not fully capture the computations associated with closure itself. This interpretation is consistent with evidence that next-token prediction can be comparatively insensitive to segment boundaries (25).
The internal representations of the LLM revealed a more pronounced signature of sentence closure. Boundary status accounted for substantial additional variation in local intrinsic dimensionality and representational curvature, even though its contribution to output surprisal was relatively small. These geometric measures also showed a distinct temporal organization: local intrinsic dimensionality peaked at sentence-final positions, representational trajectories became straighter around closure, and token-to-token updates reached their maxima immediately afterward. Sentence boundaries thus coincided with a reorganization of internal representations that was not fully captured by next-token prediction. This provides a possible computational counterpart to the increased processing demands observed at sentence endings in human reading.
The reduction in layer-wise curvature further raises the possibility that representational closure reflects the progressive satisfaction of grammatical constraints. Previous studies have linked curvature across transformer layers to contextual processing (44, 45), while grammatical structure has been shown to constrain the organization of contextual meaning (46). As a sentence unfolds, dependency resolution and the narrowing of possible interpretations may progressively constrain its internal representation, leading to more direct transformations across model layers at closure. The observed straightening may therefore reflect a convergence of structural and contextual constraints as the sentence reaches a locally complete configuration. This interpretation connects representational geometry to the interaction between grammatical organization and incremental language processing (14, 47), suggesting a potential mechanism through which grammatical constraints shape the dynamics of sentence closure.
Several limitations qualify these findings. The simulation deliberately simplified linguistic structure and meaning through synthetic semantic representations, abstract dependency operations, and an approximate integration-cost measure. Pressure-dependent boundary gating and post-boundary resets were specified by design, while the resulting segment distributions and component-specific dynamics arose from their interaction with local processing operations. The completion-only comparison tested a specific alternative based on fixed termination probability, rather than all possible mechanisms of structural closure. The human analyses were observational: processing costs predicted boundary choices beyond grammatical and prosodic cues, but these associations do not establish causality. Similarly, sentence-boundary effects in reading time and LLM measures may reflect additional linguistic properties not captured by our predictors. Dependency-derived costs and semantic mismatch were selective approximations of processing demands, and the LLM findings were limited to written English narratives and a single model. Extending these analyses across languages, model architectures, and linguistic levels will help establish the generality of the proposed mechanism.
In conclusion, the present findings support a mechanistic account of linguistic closure in which structural completion makes boundaries possible, while interacting memory, integration, and contextual demands contribute to when they are realized. These dynamics organize segmentation across multiple timescales, predict human boundary choices, and are reflected in distinct behavioral and representational changes around sentence boundaries. Sentence closure thus emerges as a transition in ongoing language processing, linking the organization of linguistic structure to the dynamics through which it is realized.
Materials and methods
Simulation model
We implemented an abstract pressure-constrained sequence model to test whether boundary-like organization could emerge from local structural and contextual demands without pre-specified sentence boundaries or constituent labels. The model generated two coupled streams: a structural stream representing the opening, maintenance, and closure of relations, and a lexical stream representing context-sensitive token generation. Full implementation details and parameter definitions are provided in the Supplementary Information.
The structural stream consisted of relation-opening, relation-maintaining, and relation-closing operations. At each step , memory cost () was defined as the number of currently open relations. Integration cost () was computed when a relation was closed. Following the logic of dependency locality theory (DLT), integration cost increased with the number of intervening generated units crossed by the resolved relation. Because the synthetic model did not contain explicit representations of discourse referents, each generated unit was treated as a minimal discourse unit. Integration cost therefore provided a simplified analogue of discourse-referent distance.
The lexical stream was generated from a finite vocabulary embedded in a synthetic semantic space. Before generating token , the model maintained an exponentially decaying context state,
where is the embedding of the preceding token and controls the context update rate. The probability of each candidate token was computed from its similarity to the current context state,
where is the vocabulary, denotes cosine similarity, and controls the strength of contextual constraint. Contextual surprisal was then defined as
Total processing pressure combined the structural and contextual terms:
where controls pressure carry-over, and weight memory and integration costs, and weights contextual surprisal. Processing pressure was transformed into a boundary drive using a sigmoid function,
where specifies the midpoint of the sigmoid transformation, controls its steepness, and denotes the sigmoid function. When no relations remained open, entered a categorical event distribution as the weight assigned to boundary emission. The corresponding weights for an ordinary event and the opening of a new relation were 1 and , respectively. These weights were normalized before an event was sampled. When one or more relations remained open, boundary emission was prohibited, and increasing instead increased the weight assigned to relation closure. Boundaries were therefore emitted stochastically as a function of accumulated pressure, rather than deterministically whenever pressure crossed . Boundary emission reset accumulated pressure and the local contextual state. Because boundaries were permitted only after all open relations had been resolved, their locations were determined by the evolving interaction among structural load, integration demand, contextual mismatch, and pressure accumulation, rather than supplied as target labels.
Language-likeness score
Each parameter configuration was simulated using ten random seeds. Each resulting synthetic corpus was evaluated using a language-likeness score. The score combined three broad criteria: dependency-length decay (27), Zipf-like lexical rank-frequency structure (28), and anti-collapse quality control.
The dependency component assessed whether the frequency of generated relations decreased with relation length and whether the resulting dependency-length distribution was compatible with the exponential or power-law-like decay observed in natural language (27). The lexical component assessed whether token rank and frequency followed an approximately Zipf-like relationship (28).
Quality-control components were used to identify degenerate simulations. These included simulations dominated by a single token, simulations with insufficient lexical diversity, and simulations that produced too little material for reliable estimation. Each quality-control measure was transformed into a bounded score between 0 and 1 according to a pre-specified heuristic threshold. The final language-likeness score was obtained by summing the dependency, lexical, and quality-control component scores. Component scores were first calculated separately for each seed and then averaged across the ten seeds to obtain one score for each parameter configuration. Full definitions and scoring functions are provided in the SI.
Model-family comparison
We compared three model families: DLT-only models, surprisal-only models, and combined DLT-surprisal models. DLT-only models included memory and integration costs but no contextual-surprisal contribution to pressure. Surprisal-only models included contextual surprisal but no memory or integration contribution, whereas combined models included all three sources of processing pressure. Parameter configurations were ranked by their mean language-likeness score, and the top 10% were retained to characterize the highest-performing region of parameter space. Within this retained subset, model families were compared using Kruskal–Wallis tests followed by Dwass–Steel–Critchlow–Fligner pairwise comparisons. These post-selection comparisons were used to characterize differences among model families within the high-performing parameter region and should not be interpreted as unconditional tests across the full parameter space. Statistical significance was assessed at p < 0.05. The individual parameter configuration with the highest language-likeness score was selected for the subsequent dynamical analyses.
Completion-only control
To assess the contribution of processing pressure beyond structural completion, we compared the selected DLT-surprisal model with a completion-only control. Both models used the same parameters and structural and contextual generation processes, including pressure-dependent resolution of open relations. They differed in how boundaries were generated once all relations had been resolved. In the pressure-dependent model, boundary probability depended on accumulated processing pressure. In the completion-only control, boundaries were emitted with a fixed probability, while continuation and the opening of new relations were sampled independently of pressure. Both models prohibited boundaries before a minimum segment length of three events and enforced closure after 99 events when no relations remained open.
The fixed termination probability was calibrated to match the mean segment length of the pressure-dependent model using 30 random seeds, with 120 segments per seed, through an 18-iteration bisection search. Both models were then evaluated across 500 random seeds, each generating 120 segments. We compared seed-level segment-length statistics, including mean, standard deviation, coefficient of variation, and skewness, alongside language-likeness scores and boundary-aligned profiles of processing demands. Statistical comparisons used paired t-tests across matched random seeds.
Boundary-aligned simulation dynamics
The selected parameter configuration belonged to the combined DLT-surprisal model family. The complete parameter set is reported in Supplementary Table S3. To assess the stability of its behavior, the selected configuration was rerun across 500 random seeds.
For each simulation, emitted boundary markers were identified from the model output. Because a boundary marker occurred immediately after the final generated unit of a segment, the boundary center was defined as the index of the boundary marker minus one. Aligned position 0 therefore corresponded to the final pre-boundary unit, and position +1 corresponded to the first post-boundary unit. The boundary crossing was located between positions 0 and +1. Boundary-aligned windows extended from six positions before to six positions after the boundary center. Boundary centers for which a complete alignment window was unavailable were excluded.
Within each window, we extracted total processing pressure, normalized boundary probability, contextual surprisal, memory cost, integration cost, and semantic mismatch. Semantic mismatch was defined as the complement of the similarity between the current token embedding and the model's context state.
For each variable, boundary-aligned profiles were first averaged across all eligible boundaries within each simulation. Seed-level profiles were then averaged across the 500 simulations. This procedure prevented simulations containing more boundary events from contributing disproportionately to the group-level profile. Uncertainty was quantified by bootstrap resampling across random seeds.
Non-boundary controls were sampled from the same simulated sequences. Candidate control centers were required to have a complete alignment window and to be more than three positions away from any true boundary center. For each simulation, control centers were randomly sampled to match the number of true boundary centers; sampling with replacement was used only when the number of eligible control positions was smaller than the number of true boundaries. The same variables and alignment window were then extracted around control centers and averaged for comparison.
Timescale estimation at multiple levels
We analyzed the temporal scales generated by the selected pressure-constrained model across 500 random seeds. For continuous model variables, including boundary probability, memory cost, integration cost, and contextual surprisal, we estimated the dominant period using Welch spectral analysis. For each seed and variable, the power spectrum was computed after mean-centering the time series. The dominant period was defined as the inverse of the non-zero frequency with maximal spectral power. For discrete structural events, we estimated timescales from event intervals rather than spectral peaks. Relation openings, relation closures, and emitted boundaries were converted into binary event series, and the characteristic scale was defined as the median inter-event interval within each seed. Relation span was computed as the distance between the opening and closure of a resolved relation. Seed-level estimates were averaged across the 500 simulations, with uncertainty summarized using bootstrap confidence intervals. Full spectral settings and event-scale definitions are provided in the SI.
Human perceptual chunking: dataset and boundary choices
We reanalyzed the publicly available perceptual chunking dataset (30). In the original experiment, 50 linguistically naive participants listened to 97 short extracts of natural speech and marked perceived chunk boundaries in real time using a tablet-based application. The dataset provides individual boundary judgments aligned to word positions, together with annotations of grammatical structure, prosodic boundary strength, and pauses. After excluding extract-final positions, our analysis included 5,140 candidate word positions. For each position, boundary choices were aggregated across the 50 listeners into the number of boundary selections and non-selections.
Dependency-based memory and integration costs
Structural processing costs were derived from dependency parses generated by the English parser of Stanza (31). For the chunking dataset, parsing was performed separately within the top-level syntactic units identified in the original annotations. We quantified two complementary costs following the distinction in dependency locality theory (DLT): memory cost, reflecting unresolved dependency relations, and integration cost, reflecting the resolution of dependencies across intervening material.
Memory cost was defined as the number of dependency arcs remaining open after each word. An arc connecting positions i and j was treated as active between its leftmost and rightmost endpoints. Post-word memory cost was calculated as
where denotes the set of dependency arcs within the parsing unit.
Integration cost was assigned when a dependency relation was resolved at its rightmost endpoint. For each resolved relation, we counted the intervening content-bearing discourse referents, operationalized as nouns, proper nouns, and verbs. For lexical dependencies, the current content-bearing word was additionally counted as a newly introduced referent, while function-word dependencies did not receive this additional cost. Heuristic antecedent links were also included for relative pronouns where applicable. Integration costs from multiple relations resolved at the same word were summed:
where denotes relations resolved at position and their corresponding integration costs.
Local semantic mismatch
Lexical-semantic mismatch was estimated using 300-dimensional fastText word embeddings. For each word , a local context vector was constructed by averaging the embeddings of the preceding words. Semantic mismatch was defined as the cosine distance between the current word representation and its local context:
Higher values indicate greater semantic dissimilarity between the incoming word and the preceding context. The primary analysis used a window of four preceding words (). Context was maintained within each speech extract without resetting at syntactic unit boundaries. Unlike the simulation, which quantified contextual demands using surprisal, the human analyses used local semantic mismatch as a complementary measure of contextual processing.
Statistical analysis of boundary choices
We fitted grouped binomial logistic regression models to predict boundary choices at each candidate word position. Let denote the number of listeners selecting a boundary at position in extract , with , where is the number of listener choices and is the probability of boundary selection.
The baseline model included grammatical boundary strength, prosodic boundary strength, normalized word position within the extract, and extract fixed effects. The full model additionally included post-word memory cost, integration cost, and local semantic mismatch:
where denotes normalized word position, grammatical boundary strength, prosodic boundary strength, post-word memory cost, integration cost, semantic mismatch, and extract fixed effects. The three processing-cost predictors were z-standardized across candidate positions. The baseline model omitted , , and .
To examine the contribution of recent memory history, we extended the full model with memory cost at the immediately preceding word and the mean memory cost across the preceding three words:
where denotes the linear predictor of the full model. Memory-history measures were computed within individual syntactic parsing units and z-standardized within the analysis sample. Positions without a complete three-word history and annotated top-level unit endings were excluded, leaving 3,660 candidate positions.
We performed two sensitivity analyses. First, we excluded 300 annotated top-level unit endings and repeated the primary analysis on the remaining 4,840 positions. Second, we replaced the numeric grammatical-strength predictor with a categorical specification. Model fit was compared using the Akaike information criterion (AIC), and the joint contributions of added predictors were evaluated using Wald tests. Standard errors were clustered by speech extract, and individual associations were reported as odds ratios (ORs).
Naturalistic Stories corpus: reading time analysis
We analyzed word-level self-paced reading time from the Naturalistic Stories corpus, in which participants read narrative texts word by word and reading time was recorded at each word (33). Within each participant and each story, we replaced outliers in reading time (outside the range of 100-3000 ms (33)) by the median value, following (39). Reading time was then averaged across participants and log-transformed. To reduce spillover from the preceding word, we residualized current log reading time using an ordinary least-squares model that included previous-word log reading time and story identity as predictors (34):
The residuals from this model were used as the spillover-adjusted reading-time measure in subsequent analyses.
Sentence-boundary coding
Sentence boundaries were defined at the word level. A word was coded as a boundary word when it was the final lexical word of a sentence, and the following lexical word was coded as the first post-boundary word. Punctuation was used to identify sentence segmentation but was not treated as an independent word-level observation. Sentence-final status was obtained from the sentence segmentation of the Naturalistic Stories corpus and was kept identical across the reading-time, dependency-based, semantic, and LLM analyses.
For LLM analyses, each story was processed as a continuous sequence without resetting model context at sentence boundaries. Consequently, temporal trajectory measures at a sentence-final word incorporated both the incoming transition from the preceding word and the outgoing transition toward the first word of the following sentence. Across-layer measures, by contrast, described the transformation of the same word across model layers and did not incorporate the following word.
Processing cost estimation
Memory cost, integration cost, and local semantic mismatch were computed following the procedures described for the human chunking analysis. Dependency-based costs were derived from sentence-level Stanza parses, while semantic mismatch was calculated using a four-word context window within each story. All measures were aligned with the word-level reading-time data.
LLM processing dynamics
We used a Qwen3 model with 4 billion parameters (Qwen/Qwen3-4B) to derive word-level prediction and representation measures. The model was evaluated without parameter updating, with dropout disabled and gradients turned off. Each story was entered into the model as a continuous text. The model tokenizer occasionally divided corpus words into multiple sub-word tokens. Tokenizer offset mappings were used to align model tokens with the original corpus word spans. Whereas the speech-chunking transcripts contained no sentence punctuation, the LLM input retained the original punctuation of the written narratives to match the word-level input presented to human readers. Tokens encoding punctuation within a corpus word's character span were assigned to that word and included in its word-level measures. Word-level surprisal was obtained by summing the surprisals of all assigned tokens, and word-level hidden states were obtained by averaging their representations separately at each model layer. For temporal measures based on distances or directions between words, each hidden-state dimension was standardized across word positions within each story before geometric quantities were calculated. For word-to-word geometric measures, hidden-state dimensions were z-scored within each story. Cosine updates were computed from L2-normalized word representations, while temporal curvature was calculated from the directions of successive representational changes. Local intrinsic dimensionality was estimated from the original last-layer hidden states. Layer curvature and length-to-chord ratio were computed from the original word-level representations across layers, without additional normalization of the hidden-state vectors.
Contextual surprisal
For each token , contextual surprisal was defined as the negative log probability assigned by the model to the word given its preceding context. When a word was split into multiple subword tokens word-level surprisal was computed as the sum of subword surprisals:
Higher values indicate lower model probability, and therefore greater contextual prediction difficulty.
Cosine update
To characterize representational dynamics, we extracted word-level hidden states from the model. Let denote the hidden-state representation of word . For measures based on changes across words, hidden-state dimensions were z-scored within each story before computing distances or angles, so that measures were not dominated by story-specific differences in representation scale. Cosine update was defined as the cosine dissimilarity between consecutive word representations:
Higher values indicate larger representational changes from the preceding word.
Local intrinsic dimensionality
Local intrinsic dimensionality (ID) estimated the local complexity of the hidden-state space around each word. Pointwise local ID was estimated from the last-layer word representations using the TwoNN algorithm with Python package scikit-dimension. For each word, a local neighborhood containing the 100 nearest word representations was identified within the same story, and intrinsic dimensionality was estimated from the relative nearest-neighbor distances within that neighborhood. Words for which a complete neighborhood could not be defined were excluded. Higher values indicate that the local representation occupies a higher-dimensional and less compressible neighborhood.
Trajectory curvature
Trajectory curvature measured how much the model's representational trajectory changed direction as the story unfolded word by word. This measure was computed from last-layer word representations. Let denote the hidden-state representation of word , after averaging over all subword tokens aligned to that word. For word-to-word geometry, hidden-state dimensions were z-scored within each story before computing trajectory measures.
For each word , we first computed two adjacent step vectors in hidden-state space. The incoming step captured the representational change from the previous word to the current word,
and the outgoing step captured the representational change from the current word to the next word,
Trajectory curvature was then defined as the cosine distance between these two step vectors:
Low values indicate that the trajectory continued in a similar direction across , whereas high values indicate a sharper turn in representational space.
Layer curvature
Trajectory curvature characterizes changes in representational direction across successive words. We additionally quantified how the representation of a single word changed as it passed through the internal layers of the model. Following the layer-trajectory approach used in prior work on LLM representational curvature (44), for each word, hidden states from successive transformer layers were treated as an across-layer representational trajectory. The input embedding state was excluded, and only transformer-layer outputs were included.
Let denote the hidden-state representation of word at layer , after averaging over all subword tokens aligned to that word. For a model with layers, each word therefore has a layer-wise trajectory . We first computed the step vector between consecutive layers:
which describes how the representation of word changes from layer to layer .
Layer curvature was then computed by comparing the directions of adjacent layer steps. For each intermediate layer, we calculated the cosine distance between the incoming layer step and the outgoing layer step:
This value is low when the representation continues to move in a similar direction across adjacent layers, and high when the layer-wise transformation changes direction sharply. We summarized this local turning by averaging across intermediate layers:
Mean layer curvature therefore captures the average local bending of a word's representation as it is transformed through the model hierarchy.
We also computed the layer length-to-chord ratio (LCR), which captures the global indirectness of the same across-layer trajectory. The layer path length was defined as the total distance traveled across consecutive layers:
The chord length was defined as the direct distance between the first and final layer representations:
The length-to-chord ratio was then
A value close to 1 indicates that the representation moves along an approximately straight path from lower to higher layers. Larger values indicate that the across-layer transformation follows a more indirect or curved path. Thus, mean layer curvature and LCR provide complementary descriptions of within-token geometry: mean layer curvature measures local turning between adjacent layer steps, whereas LCR measures the global deviation of the full layer trajectory from a straight line.
Regression analysis of pressure-derived predictors and boundary control
To test whether pressure-derived variables explained behavioral and LLM outcomes beyond boundary-aligned visualization, we fitted regression models at the word level. The predictors of interest were memory cost, integration cost, and static semantic mismatch. Outcomes included spillover-adjusted reading-time residuals, Qwen surprisal, cosine update, local intrinsic dimensionality, trajectory curvature, mean layer curvature, and layer length-to-chord ratio.
All continuous predictors and outcomes were standardized within story. For each outcome , we first fitted a model without explicit sentence-boundary control:
where is memory cost, is integration cost, is static semantic mismatch, and is normalized word position within the story. Story identity was included as a fixed effect. We then fitted a second model including explicit sentence-boundary status:
where indicates whether word occurred at a sentence boundary.
Models were fitted using ordinary least squares with cluster-robust standard errors at the sentence level. For each predictor, we reported Wald (z)-statistics and FDR-corrected significance across coefficient tests. To quantify the contribution of explicit boundary status, we compared the two models using
Negative values indicate that adding sentence-boundary status improved model fit. This comparison allowed us to distinguish graded pressure-derived effects from the additional contribution of discrete sentence-boundary position.
Data and code availability
The perceptual speech-chunking data are publicly available through the Chunk Boundary Predictors dataset (https://osf.io/7bta5/). The narrative texts and self-paced reading data are available from the Natural Stories corpus (https://github.com/languageMIT/naturalstories). All analysis scripts and simulation data are available at https://github.com/RuiHe1999/boundary_simulation_RTLLM.
Acknowledgements
This study was funded by European Research Council (ERC-2023-SyG, 101118756 to WH, IS, and PH). The views and opinions expressed are those of the author(s) only and do not necessarily reflect those of the European Union.
References
-
Noam Chomsky. Syntactic structures. Walter de Gruyter, 2002.
-
Michael Alexander Kirkwood Halliday and Christian MIM Matthiessen. Halliday's introduction to functional grammar. Routledge, 2013.
-
Marina Nespor and Irene Vogel. Prosodic phonology: with a new foreword, volume 28. Walter de Gruyter, 2007.
-
Inbal Arnon and Neal Snider. More than words: Frequency effects for multi-word phrases. Journal of memory and language, 62(1):67–82, 2010.
-
Christophe Pallier, Anne-Dominique Devauchelle, and Stanislas Dehaene. Cortical representation of the constituent structure of sentences. Proceedings of the National Academy of Sciences of the United States of America, 108(6):2522–2527, February 2011. ISSN 1091-6490. doi: 10.1073/pnas.1018711108.
-
Jonathan R. Brennan, Edward P. Stabler, Sarah E. Van Wagenen, Wen-Ming Luh, and John T. Hale. Abstract linguistic structure correlates with temporal activity during naturalistic comprehension. Brain and Language, 157:158:81–94, 2016. ISSN 1090-2155. doi: 10.1016/j.bandl.2016.04.008.
-
Nai Ding, Lucia Melloni, Hang Zhang, Xing Tian, and David Poeppel. Cortical tracking of hierarchical linguistic structures in connected speech. Nature Neuroscience, 19(1):158–164, January 2016. ISSN 1546-1726. doi: 10.1038/nn.4186.
-
Matthew J. Nelson, Imen El Karoui, Kristof Giber, Xiaofang Yang, Laurent Cohen, Hilda Koopman, Sydney S. Cash, Lionel Naccache, John T. Hale, Christophe Pallier, and Stanislas Dehaene. Neurophysiological dynamics of phrase-structure building during sentence processing. Proceedings of the National Academy of Sciences of the United States of America, 114(18):E3669–E3678, May 2017. ISSN 1091-6490. doi: 10.1073/pnas.1701590114.
-
Liina Pylkkänen. Neural basis of basic composition: what we have learned from the red-boat studies and their extensions. Philosophical Transactions of the Royal Society B: Biological Sciences, 375(1791):20190299, December 2019. doi: 10.1098/rstb.2019.0299.
-
Boban Arsenijević and Wolfram Hinzen. On the Absence of X-within-X Recursion in Human Grammar. Linguistic Inquiry, 43(3):423–440, 2012. ISSN 0024-3892.
-
Ronald T. Kellogg. Working memory components in written sentence generation. The American Journal of Psychology, 117(3):341–361, 2004. ISSN 0002-9556.
-
Morten H. Christiansen and Nick Chater. The Now-or-Never bottleneck: A fundamental constraint on language. Behavioral and Brain Sciences, 39:e62, January 2016. ISSN 0140-525X, 1469-1825. doi: 10.1017/S0140525X1500031X.
-
Neil Rathi. Dependency locality and neural surprisal as predictors of processing difficulty: Evidence from reading times. In Emmanuele Chersoni, Nora Hollenstein, Cassandra Jacobs, Yohel Oseki, Laurent Prévot, and Enrico Santus, editors. Proceedings of the Workshop on Cognitive Modeling and Computational Linguistics, pages 171–176, Online, June 2021. Association for Computational Linguistics. doi: 10.18653/v1/2021.cmlc1-1.21.
-
E. Gibson. Linguistic complexity: locality of syntactic dependencies. Cognition, 68(1):1–76, August 1998. ISSN 0010-0277. doi: 10.1016/s0010-0277(98)00034-1.
-
Edward Gibson et al. The dependency locality theory: A distance-based theory of linguistic complexity. Image, language, brain, 2000:95–126, 2000.
-
John Hale. A Probabilistic Earley Parser as a Psycholinguistic Model. In Second Meeting of the North American Chapter of the Association for Computational Linguistics, 2001.
-
Marta Kutas and Kara D. Federmeier. Thirty years and counting: finding meaning in the N400 component of the event-related brain potential (ERP). Annual Review of Psychology, 62:621–647, 2011. ISSN 1545-2085. doi: 10.1146/annurev.psych.09.00308.131123.
-
Nicole K. Speer and Jeffrey M. Zacks. Temporal changes as event boundaries: Processing and memory consequences of narrative time shifts. Journal of Memory and Language, 53(1):125–140, July 2005. ISSN 0749-596X. doi: 10.1016/j.jml.2005.02.009.
-
Jeffrey M. Zacks, Nicole K. Speer, and Jeremy R. Reynolds. Segmentation in Reading and Film Comprehension. Journal of experimental psychology. General, 138(2):307–327, May 2009. ISSN 0096-3445. doi: 10.1037/a0015305.
-
Maverick E. Smith, Kimberly M. Newberry, and Heather R. Bailey. Differential effects of knowledge and aging on the encoding and retrieval of everyday activities. Cognition, 196:104159, March 2020. ISSN 0010-0277. doi: 10.1016/j.cognition.2019.104159.
-
Tessa Warren, Sarah J. White, and Erik D. Reichle. Investigating the causes of wrap-up effects: Evidence from eye movements and E-Z Reader. Cognition, 111(1):132–137, April 2009. ISSN 0010-0277. doi: 10.1016/j.cognition.2008.12.011.
-
Clara Meister, Tiago Pimentel, Thomas Clark, Ryan Cotterell, and Roger Levy. Analyzing Wrap-Up Effects through an Information-Theoretic Lens. In Smaranda Muresan, Preslav Nakov, and Aline Villavicencio, editors. Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), pages 20–28, Dublin, Ireland, May 2022. Association for Computational Linguistics. doi: 10.18653/v1/2022.ac1-short.3
-
Doruntiné Zogai, Regine Bader, and Axel Mecklinger. How the brain segments experience: ERP evidence of event boundaries enhancing memory formation in narratives. Cognitive, Affective, & Behavioral Neuroscience, 26(3):885–902, June 2026. ISSN 1531-135X. doi: 10.3758/s13415-026-01399-0.
-
Faxin Zhou, Siyuan Zhou, Yuhang Long, Adeen Flinker, and Chunming Lu. Hierarchical linguistic predictions and cross-level information updating during narrative comprehension. Communications Biology, 9(1):107, December 2025. ISSN 2399-3642. doi: 10.1038/s42003-025-09377-x.
-
Jiajie Zou, David Poeppel, and Nai Ding. Constituent-constrained word prediction during language comprehension. Nature Neuroscience, 29(6):1498–1509, June 2026. ISSN 1546-1726. doi: 10.1038/s41593-026-02272-6.
-
David Skrill and Sam V. Norman-Haignere. Large language models transition from integrating across position-yoked, exponential windows to structure-yoked, power-law windows. Advances in neural information processing systems, 36:638–654, December 2023. ISSN 1049-5258.
-
Xinying Chen and Kim Gerdes. The relation between dependency distance and frequency. In Xinying Chen and Ramon Ferrer-i Cancho, editors. Proceedings of the First Workshop on Quantitative Syntax (Quasy; SyntaxFest 2019), pages 75–82, Paris, France, August 2019. Association for Computational Linguistics. doi: 10.18653/v1/W19-7909.
-
Steven T Plantadosi. Zipf's word frequency law in natural language: A critical review and future directions. Psychonomic bulletin & review, 21(5):1112–1130, 2014. doi: 10.3758/s13423-014-0585-6.
-
Gábor Borbély and András Kornai. Sentence length. In Philippe de Groote, Frank Drewes, and Gerald Penn, editors. Proceedings of the 16th Meeting on the Mathematics of Language, pages 114–125, Toronto, Canada, July 2019. Association for Computational Linguistics. doi: 10.18653/v1/W19-5710.
-
Svetlana Vetchinnikova, Alena Konina, Nitin Williams, Nina Mikušová, and Anna Mauranen. Chunking up speech in real time: linguistic predictors and cognitive constraints. Language and Cognition, 15(3):453–479, September 2023. ISSN 1866-9808, 1866-9859. doi: 10.1017/langcog.2023.8.
-
Peng Qi, Yuhao Zhang, Yuhui Zhang, Jason Bolton, and Christopher D. Manning. Stanza: A Python Natural Language Processing Toolkit for Many Human Languages. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics: System Demonstrations, pages 101–108, Online, July 2020. Association for Computational Linguistics. doi: 10.18653/v1/2020.acl-demos.14.
-
Edouard Grave, Piotr Bojanowski, Prakhar Gupta, Armand Joulin, and Tomas Mikolov. Learning Word Vectors for 157 Languages. In Proceedings of the Eleventh International Conference on Language Resources and Evaluation (LREC 2018), February 2018.
-
Richard Futrell, Edward Gibson, Harry J. Tily, Idan Blank, Anastasia Vishnevetsky, Steven T. Piantadosi, and Evelina Fedorenko. The Natural Stories corpus: a reading-time corpus of English texts containing rare syntactic constructions. Language Resources and Evaluation, 55(1):63–77, March 2021. ISSN 1574-0218. doi: 10.1007/s10579-020-09503-7.
-
Shravan Vasishth. On the proper treatment of spillover in real-time reading studies: Consequences for psycholinguistic theories. In Proceedings of the international conference on linguistic evidence, pages 96–100, 2006.
-
Qwen Team. Qwen3 technical report, 2025.
-
Hayato Tsukagoshi and Ryohei Sasano. Redundancy, Isotropy, and Intrinsic Dimensionality of Prompt-based Text Embeddings. In Wanxiang Che, Joyce Nabende, Ekaterina Shutova, and Mohammad Taher Pilehwar, editors. Findings of the Association for Computational Linguistics: ACL 2025, pages 25915–25930, Vienna, Austria, July 2025. Association for Computational Linguistics. ISBN 979-8-89176-256-5. doi: 10.18653/v1/2025.findings-acl.1330.
-
Nai Ding. Sequence chunking through neural encoding of ordinal positions. Trends in Cognitive Sciences, 29(7):641–654, July 2025. ISSN 1364-6613, 1879-307X. doi: 10.1016/j.tics.2025.01.014.
-
Cowan N. The magical number 4 in short-term memory: a reconsideration of mental storage capacity. The Behavioral and brain sciences, 24(1), February 2001. ISSN 0140-525X. doi: 10.1017/s0140525x01003922.
-
Chia-Wen Lo, Mark Anderson, Lena Henke, and Lars Meyer. Periodic fluctuations in reading times reflect multi-word-chunking. Scientific Reports, 13(1):18522, October 2023. ISSN 2045-2322. doi: 10.1038/s41598-023-45536-y.
-
Uri Hasson, Eunice Yang, Ignacio Vallines, David J. Heeger, and Nava Rubin. A hierarchy of temporal receptive windows in human cortex. The Journal of Neuroscience: The Official Journal of the Society for Neuroscience, 28(10):2539–2550, March 2008. ISSN 1529-2401. doi: 10.1523/JNEUROSCI.5487-07.2008.
-
Christopher J. Honey, Thomas Thesen, Tobias H. Donner, Lauren J. Silbert, Chad E. Carlson, Orrin Devinsky, Werner K. Doyle, Nava Rubin, David J. Heeger, and Uri Hasson. Slow cortical dynamics and the accumulation of information over long timescales. Neuron, 76(2):423–434, October 2012. ISSN 1097-4199. doi: 10.1016/j.neuron.2012.08.011.
-
David Clewett, Sarah DuBrow, and Lila Davachi. Transcending time in the brain: How event memories are constructed from experience. Hippocampus, 29(3):162–183, March 2019. ISSN 1098-1063. doi: 10.1002/hipo.23074.
-
Davide Staub, Finn Rabe, Akhil Misra, Yves Pauli, Roya Hüppi, Ni Yang, Nils Lang, Lars Michels, Victoria Edkins, Sascha Frühholz, Iris Sommer, Wolfram Hinzen, and Philipp Homan. Coherence in the brain unfolds across separable temporal regimes. April 2026. arXiv:2512.20481 [q-bio.NC].
-
Riccardo Di Sipio, Jairo Diaz-Rodriguez, and Luis Serrano. The Curved Spacetime of Transformer Architectures, November 2025. arXiv:2511.03060 [cs.LG].
-
Jack King, Evelina Fedorenko, and Eghbal A. Hosseini. Representational Curvature Modulates Behavioral Uncertainty in Large Language Models, April 2026. arXiv:2604.23985 [cs.AI].
-
Rui He, Claudio Palominos, Samuele Vallisa, Ni Yang, Han Zhang, Miguel Ángel Santos Santos, Nguine Rezai, Sergi Valero, Yonghua Huang, Huan Li, Hong Jiang, Yongjun Peng, Maria Francisca Alonso-Sánchez, Frederike Stein, Tilo Kircher, Philipp Homan, Iris Sommer, Lena Palaniyappan, and Wolfram Hinzen. The grip of grammar on meaning uncertainty: cross-linguistic evidence, neural correlates, and clinical relevance, May 2026. arXiv:2605.01537 [cs.CL].
-
Roger Levy. Expectation-based syntactic comprehension. Cognition, 106(3):1126–1177, March 2008. ISSN 0010-0277. doi: 10.1016/j.cognition.2007.05.006.
-
Laurie A Stowe, Edith Kaan, Laura Sabourin, and Ryan C Taylor. The sentence wrap-up dogma. Cognition, 176:232–247, 2018.
-
Pentti Kanerva. Hyperdimensional Computing: An Introduction to Computing in Distributed Representation with High-Dimensional Random Vectors. Cognitive Computation, 1(2):139–159, June 2009. ISSN 1866-9964. doi: 10.1007/s12559-009-9009-8.
-
Peter D Turney and Patrick Pantel. From frequency to meaning: Vector space models of semantics. Journal of Artificial Intelligence Research, 37:141–188, 2010. doi: 10.1613/jair.2934.
-
Eric DeGiuli. Random language model. Physical Review Letters, 122(12):128301, 2019. doi: 10.1103/PhysRevLett.122.128301.
Simulation Model
Model overview
We implemented a stochastic generative simulation to examine whether boundary-like organization can emerge from local constraints on sequential processing. The model generates a stream of discrete events and lexical tokens. Crucially, sentence boundaries are not supplied to the model. Instead, boundaries are generated endogenously as a consequence of accumulated processing pressure from structural dependency and contextual compatibility. The simulation is based on the assumption that linguistic boundaries are not arbitrary delimiters, but tend to occur at positions where processing demands accumulate or where previously processed material must be integrated. This is consistent with the wrap-up effects at sentence final (48), in which boundary positions are associated with increased processing time and have been interpreted as sites of syntactic, semantic, or discourse-level integration.
We model this processing pressure as arising from two complementary sources (13). First, dependency locality theory (DLT) proposes that sentence processing difficulty depends on the cost of maintaining incomplete dependencies in memory and integrating syntactically related elements across distance. Second, surprisal-based accounts propose that processing difficulty increases when an incoming word is less expected given the preceding context. The present simulation combines these two sources of difficulty in a stochastic generative model, asking whether boundary-like structures can emerge from the accumulation and release of structural and lexical-informational pressure.
This simulation is not intended to reproduce the full grammatical structure of natural language. Rather, it formalizes a minimal mechanistic hypothesis: boundary-like segmentation can emerge from the accumulation and release of processing pressure in a sequential system.
Event alphabet
At each position , the model emits one event () from a four-symbol event alphabet:
The four event types are defined as follows:
X : ordinary lexical event,
O : opening of a dependency-like relation,
C : closure of a dependency-like relation,
| : boundary event.
The events (X), (O), and (C) emit lexical tokens. The boundary event (l) does not emit a lexical token. Instead, it terminates the current segment, resets the structural state, resets processing pressure, and initializes a new semantic context.
The model tracks the set of referential positions generated within the current segment, , and a stack of currently open dependency-like relations, . An opening event (O) pushes the current position onto the stack, whereas a closing event (C) pops the most recent opening from the stack. This last-in-first-out mechanism allows nested dependencies, because other events, including additional openings, may occur before an earlier opening is closed. However, it rules out crossing dependencies. A boundary event is legal only when the stack is empty.
A boundary is structurally legal only when no relation remains open:
If at least one relation is still open, the model cannot generate a boundary. This constraint prevents the system from terminating a segment before the unresolved structural material has been integrated.
Synthetic lexical-semantic embedding system
At each position , the model selects a token from a synthetic lexical-semantic space. The vocabulary contains 200 token types, and each word is represented by a 32-dimensional embedding vector . The lexical space is generated from latent topic centers. Each topic center is sampled from a Gaussian distribution and normalized to unit length. Each word is assigned to one latent topic , and its embedding is generated by adding Gaussian noise to the corresponding topic center:
This creates a weak semantic geometry, where words from the same topic tend to be more similar than words from different topics. We did not generate 200 word embeddings as independent random vectors, because random vectors in high-dimensional spaces tend to be approximately orthogonal to each other (49), which would eliminate the local similarity structure expected in a lexical-semantic space (50).
Structural costs: memory and integration
As inspired by the dependency locality theory (13), structural costs include both memory and integration. Memory cost is defined as the number of currently open relations after the current event has been processed:
This term captures the burden of maintaining unresolved structural relations during sequential processing. More open relations imply greater memory pressure.
Integration cost is incurred when the model closes a relation. Suppose that a relation was opened at position j and closed at position t. The integration cost is defined as the number of referential positions between the opening and closing positions:
For ordinary events (X) and opening events (O), integration cost is zero. Each non-boundary event also carries a unit discourse cost of 1,
, while boundary events incurred no discourse cost. The structural contribution to processing pressure therefore included both this unit cost and the distance-based integration cost
Thus, for a non-boundary event, the structural contribution to pressure depends on the current memory load and on the cost of integrating a relation when a closure occurs.
Surprisal costs: contextual surprisal
Contextual surprisal was derived from the probability of a token given its preceding semantic context. Every segment starts with setting up a local semantic context. At a non-boundary position , compatibility between a token vector and the current context is computed using cosine similarity:
The semantic context is not based on a fixed window. Instead, it is continuously updated using exponentially decaying memory of previous tokens:
and then normalized as:
The parameter controls the context update rate. In the present simulations, . Semantic context changes gradually within a segment and is reset after a boundary.
The probability of sampling token is then given by a softmax over contextual compatibility:
The parameter controls the strength of the semantic contextual constraint. When , the lexical distribution is approximately uniform. As increases, words that are more compatible with the current segment context become more likely. After a word is sampled, its lexical surprisal is computed as the negative log-likelihood conditioned by the context:
Processing pressure
The central dynamic variable of the simulation is processing pressure, denoted by . For non-boundary events, pressure is updated as a non-negative weighted sum from structural and surprisal costs.
Rectification by prevents pressure from becoming negative. controls the persistence of pressure across events. , , and are, respectively, the weights for memory, integration, and surprisal costs. Although does not directly add a separate term to processing pressure, it shapes the contextual probability distribution, and therefore affects pressure indirectly through surprisal . is the standard deviation of pressure noise and set as 0.05 in the present simulations.
Pressure is reset at the boundary event to zero. In other words, pressure accumulates during non-boundary processing and gets released at boundaries.
Boundary drive
Processing pressure is transformed into boundary drive using a sigmoid function:
where the sigmoid function is defined as:
In this drive function, controls the steepness of the mapping from pressure to boundary drive and is the pressure threshold. When pressure is far below threshold, is close to zero. When pressure exceeds threshold, increases, making a boundary or closure event more likely depending on the current structural state.
Event emission
The event-emission rule depends on whether the model currently has unresolved open relations. At each position, the model first computes a pressure-derived drive from the current pressure state. It then samples one legal event according to the current structural state. If the sampled event is non-boundary, the model samples a lexical token, computes memory, integration, and surprisal costs, updates pressure, and updates the semantic context. If the sampled event is a boundary, no lexical token is emitted; pressure, open relations, referents, segment length, and semantic context are reset.
No open relation
When no relation is open, a boundary is structurally legal. The model defines unnormalized event weights for ordinary events, opening events, and boundary events: , , . The closure weight is zero , because there is no open relation to close. The event probabilities are obtained by normalizing the legal event weights:
where is the set of legal events at position t.
In plain terms, when pressure is low, the model is more likely to continue the segment or open a new relation. When pressure is high and no relation remains open, the boundary weight increases, making a boundary more likely.
The model also imposes minimum and maximum segment-length constraints. If the current segment length is below the minimum segment length (set as 3), the boundary weight is forced to zero. If the current segment length reaches the maximum segment length (set as 99), the boundary weight is forced to one.
At least one open relation
When at least one relation is open, a boundary is illegal. In this state, pressure promotes closure rather than boundary insertion.
When the number of opening relations is below the maximum allowed number (set as 6), the opening and closing weights are:
If the maximum number of open relations has been reached, opening is disallowed:
This emission system creates a pressure-sensitive structural cycle. When pressure is low, the system can continue the segment and open relations. When pressure rises while relations remain open, the system tends to close them. Once all relations are closed, high pressure increases the probability of a boundary. The boundary then resets pressure and starts a new segment.
Boundary as pressure release
A boundary event is treated as a transition in the model dynamics, not as an input label or externally supplied delimiter. At each step, segmentation is possible only when the current structural state can be closed, and its probability increases with accumulated processing pressure. When such an event occurs, it has four consequences. First, it terminates the current segment. Second, it resets the segment length to zero. Third, it clears all referents and open relations from the current structural state. Fourth, it resets processing pressure and initializes a new segment-level semantic context. Boundaries are therefore defined by the system's own pressure-release dynamics. Boundary probability increases with accumulated processing pressure when the structural configuration permits closure.
Parameter scan
We performed a systematic parameter scan over the main pressure and boundary-generation parameters. The fixed architectural parameters are listed in Table 1. These parameters define the background simulation environment and were held constant across the parameter scan.
The manipulated parameters are summarized in Table 2. These parameters control boundary threshold, pressure persistence, structural pressure, lexical surprisal, contextual constraint, and the baseline tendency to open or close relations. The parameter grid was organized into three model families. In the DLT-only family, memory and integration weights were varied while lexical surprisal was removed from the pressure equation by setting . In the surprisal-only family, memory and integration costs were removed by setting , while was varied, including a zero-surprisal baseline. In the DLT-surprisal family, both DLT-inspired structural costs and lexical surprisal contributed to pressure.
Across all families, the scan contained 20,580 unique parameter combinations. Each parameter combination was first evaluated across ten random seeds (7,14,21,28,35,42,49,56,63,70). For each seed, the model generated 120 completed segments.
Parameter Selection and Language-Likeness Score
Rationale
The simulation is not a natural language model, and it is not intended to generate fully linguistic sequences. Its output could therefore be only evaluated at the level of broad statistical signatures that are characteristic of linguistic organization. We focused on two such signatures: a Zipf-like lexical rank-frequency distribution and a decay of dependency-like relations with linear distance (28, 51). These statistics provide weak but useful constraints on whether a simulated corpus has non-degenerate language-like structure, without implying that the generated sequences are equivalent to natural language.
The remaining components served as quality-control criteria, excluding simulations with insufficient lexical diversity, excessive dominance by individual tokens, limited vocabulary coverage, or too few generated tokens. The resulting language-likeness score was therefore a heuristic ranking criterion: it identified parameter regimes that produced statistically plausible and analyzable sequences, rather than estimating a formal likelihood or model evidence.
Each simulated corpus corresponded to one parameter combination and one random seed. For each corpus, we extracted dependency-length statistics, lexical frequency statistics, and quality control based on lexical diversity statistics and generated sequence length.
Dependency-length decay
The first component evaluated whether dependency-like links showed systematic length-frequency decay. Each closed relation defined a link between its opening position and its closing position . The link length was defined as .
For each simulated corpus, we computed the empirical frequency distribution of link lengths, . Previous studies showed that the relations between and could fit either an exponential model () or a power-law model ().
For each model, we retained the coefficient of determination, , for the exponential model and for the power-law model. These statistics quantified whether dependency-like links showed systematic distance decay.
The dependency decay score summarized whether dependency-like link lengths showed systematic distance decay. It was defined as the mean of the power-law and exponential values:
The resulting value was clipped to the interval from 0 to 1:
Lexical distribution: Zipf's law
Lexical frequency statistics were computed from the generated token sequence, excluding boundary events. Token types were ranked by frequency. Let denote token frequency rank and let denote relative token frequency. We fitted a Zipf-like rank-frequency relation . This yielded a Zipf exponent and a coefficient of determination .
The Zipf score evaluated whether the generated lexical distribution showed a clear rank-frequency scaling relation and whether the estimated Zipf exponent was close to one (28). For each simulated corpus, we fitted a linear model to the log-log rank-frequency relation and extracted both the coefficient of determination, , and the estimated exponent, . We then defined an exponent score as
This score equals one when and decreases exponentially as the exponent deviates from one.
Thus, a simulated corpus received a high Zipf score only when the rank-frequency relation was strong and the estimated exponent was close to the canonical Zipf value.
Anti-collapse quality control
Four binary quality-control checks were conducted. They were used only as broad sanity checks, not as theoretical targets. Each criterion was coded as 1 if it was satisfied and 0 otherwise.
First, normalized lexical entropy was computed as
Second, the frequency share of the most common token was computed as
Third, vocabulary coverage was computed as
Fourth, the total number of generated lexical tokens was recorded as
The quality control score was defined as the conjunction of these four criteria:
Composite language-likeness score
The final language-likeness score was defined as the sum of three components:
The maximum possible value of the score is 3. A score close to 3 indicates that the simulated corpus simultaneously showed strong dependency-length decay, Zipf-like lexical rank-frequency structure, and passed all lexical quality-control criteria.
Aggregation across seeds
The language-likeness score was first computed at the seed level. Scores were then averaged across seeds for each unique parameter combination. Parameter combinations were ranked by their mean language-likeness score across seeds. This aggregation reduced sensitivity to a single favorable stochastic realization.
Parameter selection
We first retained the top 10% of parameter combinations ranked by mean language-likeness score. We then excluded any combination for which one or more seeds failed the quality-control criteria. This procedure retained a high-performing region of the parameter space rather than relying only on a single best parameter combination. The best parameter set was specifically picked up for later analysis.
Simulation evaluation
Model family comparison
Figure 7 showed that different pressure components contributed to different aspects of language-like organization. Dependency-distance metrics were strongly affected by model family, including exponential fit, power-law fit, and the combined dependency-decay score. Models containing DLT-inspired structural costs outperformed the surprisal-only model on these dependency-based measures, indicating that structural pressure was the main driver of broad sequence-level organization. Lexical distribution metrics also differed across model families. Adding contextual surprisal to the structural model did not significantly improve the overall language-likeness score relative to the DLT-only model, but it improved the Zipf-related lexical profile, including the rank-frequency fit and Zipf-score components. Thus, structural costs primarily supported dependency-like organization and overall language-likeness, whereas surprisal contributed more specifically to the lexical-statistical structure of the generated sequences. For all measures, omnibus differences were tested using Kruskal–Wallis tests, followed by Dwass–Steel–Critchlow–Fligner pairwise comparisons.
Parameter effects on language-like score
We next used a descriptive marginal analysis to visualize how individual parameters were associated with language-likeness across the scanned parameter space. This analysis was not intended to estimate the independent causal effect of each parameter. Instead, it summarized which regions of the parameter space tended to produce more language-like simulated sequences. In Figure 8, each point shows the mean language-likeness score for simulations sharing a given parameter value, computed separately for each model family and averaged over the remaining parameters.
Language-likeness was not controlled by a single parameter. The boundary threshold had only a modest effect, with scores remaining relatively stable across the tested threshold range. Pressure carry-over showed a clearer positive association, especially in the DLT-only family, indicating that some persistence of accumulated pressure helped generate more structured sequence organization rather than purely local boundary fluctuations.
Context strength showed a nonlinear profile. Scores increased from weak to moderate context strength, but declined when contextual constraint became too strong, most clearly in the surprisal-only family. This suggests that contextual information was beneficial only within a bounded range: weak context provided little structure, whereas overly strong context could make lexical sampling too constrained and reduce the balance of the generated sequences.
Baseline opening and closure tendencies also shaped language-likeness. Opening tendency showed relatively weak effects in the DLT-containing families, whereas closure tendency showed a more consistently positive association. This pattern suggests that allowing relations to close at an appropriate rate helped maintain plausible dependency-like organization, preventing relations from remaining unresolved for too long.
The DLT-specific parameters showed the most stable associations with language-likeness. Higher total DLT strength, defined as , was associated with higher scores in both DLT-containing families. The separate memory and integration weights also showed positive associations, with integration cost displaying the clearest monotonic increase. In contrast, the balance term showed no simple monotonic trend, suggesting that performance depended more on the presence and overall strength of structural pressure than on a narrowly tuned dominance of memory over integration, or vice versa.
Surprisal-related parameters showed more selective effects. Increasing the direct surprisal weight did not monotonically improve language-likeness and could reduce scores at high values. Effective surprisal strength, defined as , was also variable, indicating that lexical surprisal contributed to the final score only when appropriately scaled by contextual strength.
Best parameter regime
The best parameter regime, in terms of the highest language-likeness score, was presented in Table 3. The parameter set was rerun across 500 random seeds, from 0 to 499, for stability. This parameter regime was used for the timescale analysis as below.
Timescale analysis of simulated dynamics
For each seed, we extracted both continuous model variables and discrete structural events from the simulated sequence.
For continuous variables, we estimated the dominant period using Welch spectral analysis. The analyzed variables were boundary probability, integration cost, memory cost, and contextual surprisal. Integration cost was defined as the combined integration load,
where denotes the intervening-unit cost and denotes the resolved-relation cost. For each variable and seed, the time series was converted to a numeric array, missing values were removed, and the mean was subtracted. Power spectra were then estimated using Welch's method with sampling frequency , segment length , 50% overlap, constant detrending, and density scaling. The zero-frequency component was removed. The dominant frequency was defined as the positive frequency at which the power spectral density reached its maximum:
The corresponding timescale was then computed as:
This provided a seed-wise estimate of the dominant oscillatory scale for each continuous model variable.
For discrete structural events, we estimated characteristic scales using event intervals rather than spectral peaks. Relation opening events were defined as positions where the generated operation was O, relation closure events as positions where the operation was C, and actual boundaries as positions where a boundary marker was emitted. For each binary event series and seed, event positions were identified and the median inter-event interval was computed:
Seeds with fewer than two events of a given type were excluded for that variable. Relation span was computed separately as the distance between the opening and closure of a resolved relation,
and summarized by the median span within each seed.
All periods and scales were computed separately for each seed. Figure values show the mean across seeds, with 95% bootstrap confidence intervals. Thus, continuous variables are reported as dominant Welch peak periods, whereas discrete structural quantities are reported as median inter-event intervals or median relation spans.
Specifically, we plotted the distribution of the median inter-boundary intervals (i.e. segment length) across all seeds, as in Figure 9.
Completion-only control model
To isolate the contribution of pressure-dependent boundary gating, we constructed a completion-only control using the same generative framework and parameters as the selected pressure-driven model (SI, Table S 3). Both models generated sequences through four possible operations: emitting an ordinary token (X), opening a dependency-like relation (O), closing an existing relation (C), or emitting a segment boundary (B). Boundaries were permitted only when all open relations had been resolved. The models differed in how boundaries and subsequent continuation events were selected at these structurally permissible positions.
In the pressure-driven model, accumulated processing pressure was transformed into a gating signal through
where k controls sigmoid steepness and the pressure threshold. When no relations remained open, the unnormalized weights for ordinary token emission, relation opening, and boundary emission were
where is the baseline weight for relation opening. Event probabilities were obtained by normalizing these weights by their sum. Increasing pressure therefore simultaneously favored boundary emission and suppressed the opening of new relations.
In the completion-only model, this pressure-dependent choice was replaced by a fixed boundary hazard h. At positions with no open relations, the event probabilities were
Thus, once structural completion was reached, boundary emission and the relative probabilities of continuation events were independent of accumulated pressure.
Importantly, all processing-pressure dynamics preceding structural completion remained unchanged. When one or more relations were open, both models sampled ordinary token emission, relation opening, and relation closure from the same unnormalized weights:
with relation opening disabled when the maximum number of open relations was reached. Hence, accumulated pressure continued to promote the resolution of outstanding relations in both models. The memory, integration, and contextual surprisal contributions to pressure accumulation were identical, as were lexical generation and contextual updating. Both models also enforced a minimum segment length of three tokens and forced boundary emission at the maximum segment length of 99 tokens whenever no relations remained open. Boundary emission reset accumulated pressure to zero, cleared the local dependency and referent states, and initialized a new contextual state.
To control for differences in average segment length, the fixed hazard was calibrated against the pressure-driven model. The reference mean segment length was estimated from 30 random seeds, each generating 120 segments. A binary search over h was then performed for 18 iterations using the same calibration seeds and segment count. This procedure yielded h = 0.13423, corresponding to a target mean segment length of 22.07 tokens. Both models were subsequently evaluated over 500 paired random seeds, generating 120 segments per seed. We compared segment-length distributions, language-likeness scores, and boundary-aligned processing dynamics. Seed-level summary statistics were compared using paired t-tests.
Supplementary results
Sentence length distribution
The intervals between actual sentence boundaries showed a strongly right-skewed distribution with a long tail (Figure 9). Most boundaries occurred after relatively short-to-intermediate token spans, with the highest density around the typical sentence-length range, whereas a smaller number of intervals extended far into a long right tail.
Completion-only model comparison
To evaluate the contribution of pressure-dependent boundary gating, we compared the pressure-driven model with a completion-only control using 500 paired random seeds. The two models produced approximately matched mean segment lengths (21.57
± 1.37 vs. 22.04 ± 1.74 tokens, mean ± standard deviation across seeds). Despite their similar mean lengths, the models differed substantially in their segment-length distributions (Figure 10A). Pressure-driven segmentation showed lower length variability, with a standard deviation of 14.21 compared with 18.51 in the completion-only model (). The difference persisted after normalization by mean length, with coefficients of variation of 0.657 and 0.840, respectively (). The pressure-driven model also exhibited greater positive skewness (2.18 vs. 1.64, ).
The models achieved comparable overall language-likeness scores (2.652 vs. 2.649, ). The completion-only model showed a slightly higher dependency-decay score (0.888 vs. 0.883, ), whereas the pressure-driven model showed a slightly higher Zipf score (0.769 vs. 0.760, ). Thus, both mechanisms reproduced the broad statistical properties included in the language-likeness criterion, despite generating different segment-length distributions.
The comparable overall language-likeness scores partly reflected offsetting differences in their component measures: the completion-only model showed slightly better dependency-length decay, while the pressure-driven model showed a better fit to Zipf-like lexical distributions. Despite similar aggregate scores, the models exhibited distinct boundary-aligned processing dynamics (Figure 10B–E). In the pressure-driven model, accumulated pressure increased toward boundary emission, accompanied by a pronounced decline in memory cost and a sharp increase in integration cost immediately before closure. The completion-only model showed a weaker decline in memory cost and a substantially smaller pre-boundary integration peak. Lexical surprisal also followed different pre-boundary trajectories but converged to similar profiles after boundary emission. Both models exhibited post-boundary resets, as specified by their shared generative framework. Together, these results indicate that pressure-dependent gating contributes to the organization of segment lengths and boundary-centered processing dynamics beyond structural completion alone.
Robustness of processing-cost effects on boundary judgments
To examine whether the observed associations were driven by structurally defined unit endings, we repeated the analysis after excluding 300 annotated top-level unit-ending positions (Figure 11). All three processing costs retained their directions and statistical significance: memory cost after the current word (OR = 0.739, 95% CI [0.691, 0.791], ), integration cost (OR = 1.088, 95% CI [1.022, 1.159], ), and semantic mismatch (OR = 1.170, 95% CI [1.099, 1.245], ). Adding these predictors continued to improve model fit beyond grammatical and prosodic controls (; joint Wald ), indicating that their associations with boundary choices were not restricted to top-level unit endings.
We further tested whether these associations depended on how grammatical structure was represented. Replacing the numeric grammar predictor with a categorical specification yielded similar effects for memory cost (OR = 0.711, 95% CI [0.665, 0.761], ), integration cost (OR = 1.092, 95% CI [1.033, 1.154], ), and semantic mismatch (OR = 1.159, 95% CI [1.099, 1.223], ; Figure 12). The three predictors also improved model fit under this alternative specification (; joint Wald ). These analyses indicate that the relationships between processing costs and perceived boundaries were robust to the exclusion of structurally defined endings and to alternative grammatical coding.
Boundary effect for behavioral and LLM-derived outcomes in the SPR experiment
After accounting for pressure-derived predictors, word position, and item fixed effects, explicit sentence-boundary status still showed statistically significant associations with all behavioral and LLM-derived outcomes (Figure 13).
Table 1. Fixed architectural parameters used in the parameter scan.
| Parameter | Value | Interpretation |
|---|---|---|
| 1.2 | Steepness of the pressure-to-boundary sigmoid | |
| 6 | Maximum number of simultaneously open relations | |
| 3 | Minimum segment length | |
| 99 | Maximum segment length | |
| 0.0 | Pressure value after a boundary reset | |
| 0.05 | Standard deviation of pressure noise | |
| 200 | Vocabulary size | |
| 32 | Word embedding dimensionality | |
| 8 | Number of latent semantic topics | |
| 0.25 | Noise level in synthetic word embeddings | |
| 0.15 | Semantic context update rate | |
| Lexical seed | 42 | Fixed seed for constructing the lexical space |
Table 2. Tuned parameters used in the parameter scan.
| Parameter | Candidate values | Interpretation | Applied family |
|---|---|---|---|
| 5.0, 8.0, 12.0 | Boundary threshold; controls how much pressure is required before boundary drive increases. | All | |
| 0.3, 0.5, 0.8, 0.95 | Pressure carry-over; controls how strongly pressure persists across events. | All | |
| (0.15, 0.15), (0.30, 0.30), (0.50, 0.50), (0.15, 0.50), (0.50, 0.15) | Baseline tendency to open and close dependency-like relations. | All | |
| (0.2, 0.0), (0.0, 0.2), (0.2, 0.2), (0.5, 0.2), (0.2, 0.5), (0.5, 0.5) | DLT-inspired memory and integration cost weights. | DLT-only; DLT-surprisal | |
| 0.0, 0.02, 0.05, 0.1, 0.3, 0.6, 0.9 | Weight of lexical surprisal in the pressure equation. | Surprisal-only | |
| 0.02, 0.05, 0.1, 0.3, 0.6, 0.9 | Non-zero lexical surprisal weight; ensures that lexical surprisal is active. | DLT-surprisal | |
| 0.0, 1.0, 3.0, 6.0, 9.0, 12.0, 15.0 | Semantic context strength; controls how strongly context shapes lexical sampling. | All |
Table 3. The best parameter regime.
| Parameter | Value | Interpretation |
|---|---|---|
| Model family | DLT-surprisal | Combined structural and contextual pressure model |
| Combination ID | 13777 | Parameter combination selected by language-likeness score |
| 0.50 | Baseline tendency to open dependency-like relations | |
| 0.50 | Baseline tendency to close dependency-like relations | |
| 0.50 | Weight of memory cost from currently open relations | |
| 0.20 | Weight of integration cost from resolved relations | |
| 0.30 | Weight of contextual surprisal in processing pressure | |
| 9.00 | Strength of contextual constraint on lexical sampling | |
| 8.00 | Boundary threshold | |
| 0.80 | Pressure carry-over across time steps | |
| Context condition | context-sensitive | Lexical probabilities depended on semantic context |
| Mean language-likeness score | 2.680 | Mean score used for regime selection |
| Quality-control pass rate | 1.00 | Proportion of simulations passing anti-collapse criteria |

(D) Lexical distribution: Zipf Kruskal-Wallis: H = 69.52, p < 0.001
(E) Lexical distribution: Zipf (rank-wise) Kruskal-Wallis: H = 15.34, p < 0.001

(F) Lexical distribution: Zipf score Kruskal-Wallis: H = 16.44, p < 0.001
(G) QC pass Kruskal-Wallis: H = nan, p = nan
(H) Language-like score Kruskal-Wallis: H = 24.64, p < 0.001
Fig. 7. Model-family differences in component language-likeness metrics. Model families were compared among the retained top 10% parameter regimes: DLT-only, surprisal-only, and combined DLT-surprisal models. DLT stands for dependency locality theory. Panels show group differences in dependency-distance exponential fit ( ; A), dependency-distance power-law fit ( ; B), dependency-distance decay score (C), lexical Zipf fit ( ; D), deviation of the Zipf exponent from the ideal value of 1 (E), lexical Zipf score (F), quality-control pass rate (G), and the overall language-likeness score (H). Omnibus differences were tested using Kruskal–Wallis tests, followed by Dwass–Steel–Critchlow–Fligner pairwise comparisons. Significance brackets indicate pairwise comparisons: ns, not significant; ; ; . Quality-control pass rate was constant across retained regimes and was therefore not tested.

Fig. 8. Parameter sensitivity of language-likeness across model families among the retained top 10% parameter regimes. Mean language-likeness scores are shown as a function of individual simulation parameters, separately for DLT-only, surprisal-only, and combined DLT-plus-surprisal models. For each panel, scores were averaged over all other parameter settings within the scanned parameter space. Panels show (A) the boundary threshold , (B) pressure carry-over , (C) context strength , (D) baseline opening tendency, (E) baseline closure tendency, (F) total DLT strength , (G) DLT balance , (H) memory-cost weight , (I) integration-cost weight , (J) surprisal weight , and (K) effective surprisal strength . The analyses show that language-like organization was not restricted to a single parameter setting. Models containing DLT-inspired structural costs generally achieved higher language-likeness scores than surprisal-only models across a broad range of thresholds, carry-over values, opening/closure tendencies, and structural-cost weights. Contextual parameters showed a more nonlinear profile, with strongest performance at intermediate context strengths and reduced scores when surprisal pressure became too dominant.

Fig. 9. Actual sentence boundaries occur at a characteristic but variable timescale. The plot shows the empirical distribution of token intervals between consecutive sentence boundaries. Most intervals clustered around short-to-intermediate spans, while the distribution showed a pronounced right tail, indicating that sentence lengths are variable rather than periodic. This empirical distribution was used as a reference for assessing whether emergent boundaries in the simulation occurred at naturalistic sentence-like intervals.

Fig. 10. Pressure-dependent versus completion-only boundary formation. (A) Survival distributions of generated segment lengths, , for the pressure-driven and completion-only models, calibrated to produce approximately matched mean segment lengths. (B–E) Boundary-aligned trajectories of accumulated processing pressure (B), memory cost (C), integration cost (D), and lexical surprisal (E). Position 0 denotes the final token before boundary emission, and position +1 denotes the first token of the following segment, with the vertical dashed line marking the boundary crossing. The pressure-driven model exhibited stronger pre-boundary pressure accumulation, memory-cost reduction, and integration-cost increases, while post-boundary trajectories converged across models. Blue solid lines represent the pressure-driven model, and orange dashed lines represent the completion-only control. Shading indicates mean 1.96 SEM across 500 random seeds.
Unit-ending sensitivity

Fig. 11. Sensitivity of processing-cost effects to unit endings. Odds ratios and 95% confidence intervals for memory cost after the current word, integration cost, and semantic mismatch in the full sample and after excluding 300 top-level unit-ending positions. The dashed vertical line indicates an odds ratio of 1.
Grammar coding sensitivity

Fig. 12. Sensitivity of processing-cost effects to grammatical coding. Odds ratios and 95% confidence intervals for the three processing-cost predictors under numeric and categorical representations of grammatical structure. The dashed vertical line indicates an odds ratio of 1.

Fig. 13. Sentence-boundary sensitivity differs across human behavioral and LLM representational measures. For each outcome, the plot shows the z value associated with the sentence-boundary coefficient from an ordinary least-squares regression model controlling for pressure-derived predictors, word position, and item fixed effects, with cluster-robust standard errors at the sentence level. Lines extend from zero to the estimated boundary effect. Positive values indicate increased outcome values at sentence boundaries, whereas negative values indicate decreased outcome values at sentence boundaries. Reading-time residuals and LLM local intrinsic dimensionality increased at boundaries, while LLM surprisal, cosine update, trajectory curvature, and layer-curvature measures decreased at boundaries. Reported values are corrected across outcomes using False Discovery Rate (FDR).