---
title: Boundary-Centric Pretraining
url: https://www.emergentmind.com/topics/boundary-centric-pretraining
type: topic
---

# Boundary-Centric Pretraining

Boundary-centric pretraining is a family of pretraining designs in which a boundary is treated as a first-class organizing variable for representation learning. The relevant boundary may be a partition in the pretraining distribution, such as whether an entity ever appears in a compositional context; an initialization boundary, such as whether multilingual alignment is established before large-scale language modeling; a latent segmentation boundary, such as word or phrase spans in Chinese or multilingual sequence labeling; a document boundary across which contextual dependence can be made predictive; a temporal event boundary in video; or a spatial and geometric discontinuity in images, medical scans, and CAD boundary representations. Taken together, these works suggest that pretraining often fails not because information is absent, but because the model was not trained to use that information across the relevant boundary [2606.09338][2407.16222][2404.05560][2607.05247].

## 1. Scope and organizing principle

The literature grouped under boundary-centric pretraining does not define a single loss family. Rather, it repeatedly reassigns epistemic importance to boundaries that generic objectives underuse. In some cases the boundary is distributional: a model memorizes atomic facts but fails to compose them outside the region of entities exposed to compositional contexts. In others it is structural: Chinese PLMs are asked to encode latent word boundaries, decoder features for segmentation are encouraged to align cluster transitions with image edges, or a vision transformer is forced to allocate masked modeling capacity to boundary-bearing tokens rather than randomly chosen patches. In still others it is topological or sequential: semantically related documents are packed across document boundaries, temporal transitions are synthesized as pretraining targets, or native CAD faces and edges are preserved as the substrate of multimodal alignment [2606.09338][2310.10638][2011.10830][2202.02371][2512.16413].

| Domain | Operative boundary | Representative pretraining move |
|---|---|---|
| LLM factual reasoning | Exposure to compositional contexts | Partition entities into exposed and held-out populations |
| Multilingual LM | Early alignment boundary | Align translated words before main LM pretraining |
| Chinese PLMs | Latent word/span boundaries | Add boundary-aware auxiliary objectives |
| Long-context LM | Document boundaries | Sort related documents adjacently |
| Video | Temporal action boundaries | Synthesize and classify boundary types |
| Vision and medical imaging | Spatial discontinuities | Boundary-forced masking or edge-aligned dense clustering |
| CAD-language models | Faces, edges, and topology | Encode native Brep entities before language alignment |

A plausible implication is that “boundary-centric pretraining” is best understood as a design principle about where learning pressure is applied. The common intervention is not merely to add information, but to decide which transitions, interfaces, or partitions should become predictive during pretraining.

## 2. Exposure and initialization as pretraining boundaries

A particularly explicit formulation appears in work on implicit multi-hop composition in language models. The central setup separates individuals into a compositionally exposed population \(\mathcal{P}_{\text{comp}}\) and a held-out population \(\mathcal{P}_{\text{held}}\), with the guarantee that no member of \(\mathcal{P}_{\text{held}}\) appears as a head, bridge, or target entity in any compositional sequence during pretraining. The task is to answer composed queries such as \(f_2(f_1(x))\) in a single forward pass when the model already retrieves both constituent facts separately. On LoRA fine-tuning with 1-hop questions only, 1-hop accuracy is \(1.00\) on \(\mathcal{P}_{\text{comp}}\) and \(0.97\) on \(\mathcal{P}_{\text{held}}\), but 2-hop and 3-hop are both \(0.01\). Under 1+2-hop fine-tuning, \(\mathcal{P}_{\text{comp}}\) reaches 2-hop accuracy \(0.08\), whereas \(\mathcal{P}_{\text{held}}\) remains at \(0.01\); GPT-2 Small, Medium, and Large all stay at \(0.01\) 2-hop on \(\mathcal{P}_{\text{held}}\) despite 1-hop \(0.93/0.94/0.94\). Even conditioning on both constituent 1-hop subquestions being answered correctly, the conditional composition success rate on \(\mathcal{P}_{\text{held}}\) is \(0.00\). Data-centric augmentation changes performance only inside the exposed region: implicit 2-hop NL reaches \(0.62\) on \(\mathcal{P}^{\text{test}}_{\text{comp}}\), implicit RDF \(0.79\), implicit+explicit NL-RDF \(0.83\), while 2-hop accuracy on \(\mathcal{P}_{\text{held}}\) remains at chance across conditions. The paper therefore identifies a strict exposure boundary: compositional training transfers to unseen questions about exposed individuals, but not to individuals absent from compositional pretraining contexts [2606.09338].

A second boundary appears earlier in the training trajectory. PreAlign argues that multilingual correspondence is too weak if it is left to emerge spontaneously during standard language-model pretraining. Its intervention is to establish multilingual alignment before the main LM phase using a layer-wise contrastive objective,
\[
L_{\text{align}} = \sum_{l=0}^{L+1} L_{\text{align}}^l,
\]
with word representations \(h_w^l = \mathrm{MeanPool}(f(w,l))\), and then preserve that geometry by input-only code-switching during pretraining. In the synthetic English–English-Clone setting with 10B English tokens and 0.1B English-Clone tokens, Joint Training gives English-Clone LM perplexity \(21.6\), XNLI zero-shot accuracy \(74.9\), and CLKA \(27.7\), whereas PreAlign reaches \(16.5\), \(79.3\), and \(64.6\). The ablation shows that code-switching alone improves to \(19.7/76.1/32.6\), alignment initialization alone to \(17.1/77.8/54.5\), and the combination to \(16.5/79.3/64.6\). Input-only code-switching also reduces mixed-script contamination from \(4.17\%\) under vanilla code-switching to \(0.02\%\). This makes the initialization boundary itself part of the pretraining hypothesis: early geometry is not a neutral starting condition but a determinant of later knowledge sharing [2407.16222].

These two lines of work treat different objects—entity-specific composition and multilingual transfer—but converge on the same structural claim. Failure can persist despite strong local competence, and scale alone need not remove it. What matters is whether pretraining crosses the right boundary at the right stage.

## 3. Lexical and span boundaries in text models

Chinese boundary-aware pretraining makes latent lexical segmentation an explicit pretraining target rather than a downstream afterthought. BABERT derives unsupervised statistical boundary information from raw corpora by computing PMI, Left Entropy, and Right Entropy for \(N\)-grams up to length \(N=4\), constructing a character-level boundary-aware representation \(E=\{e_1,\ldots,e_n\}\), and supervising shallow BERT states through
\[
L_{\text{BABERT}} = L_{\text{MLM}} + L_{\text{UBA}}.
\]
The model keeps the BERT architecture unchanged at inference time. On ten Chinese sequence-labeling benchmarks, BABERT improves the average F1 from \(89.80\) for BERT to \(90.47\), with consistent gains on all ten datasets. In few-shot Onto4 NER, BERT scores \(14.87\) with 10 examples, whereas BABERT reaches \(32.07\). The results support the claim that unsupervised boundary statistics can substitute for a substantial amount of manually curated lexical knowledge while remaining complementary to lexicon-enhanced fine-tuning [2210.15231].

Semi-BABERT extends the same boundary-centric logic by adding supervised, lexicon-derived span supervision to BABERT’s unsupervised statistical signals. Its full objective,
\[
L_{\text{Semi-BABERT}} = L_{\text{MLM}} + L_{\text{UBA}} + L_{\text{SBR}},
\]
adds a span-based supervised boundary recognition task trained with Positive-Unlabeled learning over 2–4 character \(N\)-grams. The lexicon is built from the OwnThink Knowledge Graph, filtered to 30 million words; corpus quality is also filtered with Qwen-7B, removing the bottom \(10\%\) of scored sentences and retaining \(90\%\) of a 3B-token corpus. Semi-BABERT-base reaches average F1 \(90.3\) versus \(89.6\) for BABERT and \(89.2\) for BERT, and Semi-BABERT-lite reaches \(88.8\) versus \(87.9\) for BERT-lite. In low-resource Onto4 with 10 examples, Semi-BABERT-base scores \(50.8\) versus \(32.1\) for BABERT. The paper also introduces the Boundary Information Metric,
\[
\text{BIM} = \text{SIM}_{pos} - \text{SIM}_{neg},
\]
which gives \(15.2\) for Semi-BABERT-base, \(14.0\) for BABERT, and \(10.5\) for BERT on CTB6, indicating that the pretrained representations themselves become more boundary-aware [2404.05560].

A multilingual variant of the same idea appears in CalibreNet, where the pretraining target is not wordhood but span correction. The calibration architecture receives an initial answer and full context, then refines start and end positions. Its dedicated pretraining task, Phrase Boundary Recovery, corrupts Wikipedia anchor-text spans by add, delete, and shift operations and trains the calibration module to recover the original boundaries with an MRC-style objective. The motivation is quantitative: on XGLUE-NER with XLM-R\(_{\text{base}}\), boundary errors account for \(66.4\%\) of errors in Spanish and \(75.2\%\) in German. Full CalibreNet reaches average F1 \(80.92\) on XGLUE-NER, while removing both PBR objectives drops performance to \(79.38\); on MLQA it improves from \(64.92/47.94\) to \(65.40/48.84\) in F1/EM. Here the boundary-centric pretraining signal is explicitly about repairing span extent, not merely encoding semantics around the span [2011.05723].

Across these text models, the recurring pattern is that boundary information is injected before task-specific supervision, either as statistical lexical structure, semi-supervised span recognition, or boundary recovery from corrupted spans. This suggests that sequence labeling benefits when a PLM is pretrained to represent unit boundaries directly rather than only infer them indirectly from generic contextual prediction.

## 4. Boundaries across documents and time

In-context Pretraining reinterprets document boundaries as wasted supervision under random packing. Standard causal LM pretraining concatenates short documents to fill context windows, but prior documents provide no signal for predicting the next document if ordering is random. ICPT changes only the ordering policy: documents are embedded with Contriever, top-\(k\) neighbors are retrieved by FAISS over 235,266,464 documents, a sparse document graph is constructed, and a greedy graph traversal approximates a maximum traveling-salesman ordering so that adjacent documents are semantically related without repetition. The next-token loss is unchanged, but tokens immediately after a document boundary are now often conditioned on useful prior documents. Empirically, average in-context learning accuracy rises from \(66.0\) under Standard to \(71.3\) under ICLM, reading comprehension from \(37.6\) to \(43.2\), NQ-Swap from \(39.6\) to \(45.8\), and MemoTrap from \(48.4\) to \(56.2\). An ablation on ordering quality gives perplexity \(8.2\) for Random, \(7.9\) for Clustering, and \(7.3\) for Links; omitting semantic deduplication degrades perplexity from \(7.3\) to \(8.3\). The operative claim is boundary-aware rather than boundary-labeled: cross-document transitions become predictive because the data stream is reordered [2310.10638].

Temporal boundaries are made explicit in video pretraining. Boundary-sensitive Pre-training synthesizes temporal boundaries from trimmed action clips and uses boundary-type classification as a pretext task for temporal localization. The rebuttal document does not provide the full method section, but it does establish several concrete properties: the model uses equal ratio for each boundary type in training; the Diff-class boundary includes an action transition period controlled by \(\epsilon\), set empirically to \(3\); and the goal is to transfer to temporal action localization and video grounding rather than clip classification alone. Relative to a vanilla encoder pretrained on Kinetics-400 in a fully supervised manner, BSP improves ActivityNet 1.3 from \(34.26\) to \(34.75\), THUMOS14 from \(30.14\) to \(39.80\), and HACS 1.1 from \(24.25\) to \(25.03\). In this case the boundary is literally the onset, offset, or transition zone that downstream localization must recover, and pretraining is redesigned to make that transition salient [2011.10830].

These methods occupy opposite ends of explicitness. ICPT does not introduce a boundary-specific label, whereas BSP does. Yet both alter pretraining by asking what should happen immediately across a sequential boundary and by making that transition informative rather than incidental.

## 5. Spatial, anatomical, and geometric boundary modeling

The most direct visual formulation appears in masked boundary modeling for dense spatial perception. LingBot-Vision starts from the claim that DINO-style self-distillation, CLIP-style language supervision, and standard masked image modeling favor semantic invariance and do not explicitly preserve dense spatial structure. Its solution is to predict a sub-pixel categorical boundary field, identify boundary-bearing tokens online, and force them into the student mask via \(\mathcal{M}^{+}=\mathcal{M}\cup\mathcal{B}\). Boundary tokens then receive dual supervision from semantic masked-token distillation and a geometric boundary loss,
\[
\mathcal{L}=\mathcal{L}_{DINO}+\lambda_i\mathcal{L}_{iBOT}+\lambda_b\mathcal{L}_{bnd}+\lambda_k\mathcal{L}_{KoLeo}.
\]
On ViT-L/16, the DINO+iBOT baseline gives \(81.6\%\) k-NN and NYUv2 linear depth \(81.4\%\ \delta_1 / 0.474\) RMSE. Adding only the categorical boundary target improves depth to \(84.4\%\ \delta_1 / 0.446\) RMSE, adding dual supervision reaches \(82.0\%\) k-NN and \(84.7\%\ \delta_1 / 0.443\) RMSE, and the final RoPE recipe reaches \(82.4\%\) k-NN and \(84.9\%\ \delta_1 / 0.440\) RMSE. With ViT-g, LingBot-Vision obtains \(0.296\) RMSE on NYUv2, compared with \(0.309\) for DINOv3-7B and \(0.307\) for V-JEPA 2.1 ViT-G. The paper therefore treats boundaries not as a downstream contour target but as the organizing signal of scalable self-supervision for dense perception [2607.05247].

In medical imaging, boundary-centric pretraining appears as edge-aligned dense clustering. Boundary-aware Information Maximization uses a U-Net-like encoder-decoder and replaces local dense contrastive learning with an over-segmentation pretext task. Dense decoder features are projected to \(K=40\) clusters, the joint distribution across transformed views is regularized by a modified mutual-information objective, and the entropy map of the predicted cluster distribution is aligned with a Sobel-filter edge map through a local normalized cross-correlation loss. The total pretraining objective is
\[
L_{\mathrm{total}} = L_{\mathrm{con}} + \lambda L_{\mathrm{CC}} + L_{\mathrm{MI}},
\]
with \(\lambda=1.0\). On ACDC-RV, MI alone gives mean \(71.42\), whereas MI+CC reaches \(77.30\); on ACDC-Myo, \(77.08\) rises to \(79.49\); on PROMISE12, \(75.23\) rises to \(76.30\). CC alone performs poorly, indicating that edge alignment is a regularizer on meaningful clusters rather than a standalone pretext task. The boundary cue here is not a human-annotated contour but the coincidence between high-entropy cluster transitions and image gradients [2202.02371].

Boundary-centric pretraining in CAD adopts a still more literal meaning. BrepLLM operates directly on raw CAD boundary representations rather than point clouds, voxels, images, or tokenized CAD programs. Faces are adaptively sampled in UV space into 10D attributes, boundary edges are adaptively sampled into 8D attributes, and both are constrained to sampling counts in \([16,32]\). A hierarchical BrepEncoder extracts \(F_f\in\mathbb{R}^{32}\) from face geometry, \(F_e\in\mathbb{R}^{32}\) from edge-conditioned neighborhood aggregation, and \(F_t\in\mathbb{R}^{64}\) from topology, concatenating them into 128-dimensional node tokens and a global graph token. Pretraining aligns the global Brep token with a frozen CLIP text encoder using the symmetric loss
\[
\mathcal{L}_{\text{CLIP}} = -\frac{1}{2N}\sum_{i=1}^{N}(\log P_{ii}+\log Q_{ii}).
\]
On downstream Brep2Text tasks, BrepLLM reaches \(74.46\) by SimCSE and \(57.05\%\) average generative classification accuracy. The ablations most relevant to pretraining show adaptive UV sampling gains of \(+2.05\), \(+1.16\), and \(+0.64\) across stages, and hierarchical BrepEncoder gains of \(+2.78\), \(+2.87\), and \(+2.42\). In this literature, “boundary-centric” denotes learning directly from faces, edges, and their topology as the native representation of the object [2512.16413].

These vision, medical, and CAD systems differ in objective and substrate, but they share a strong commonality: the model is trained not to smooth over discontinuities, but to concentrate representational capacity where discontinuities occur.

## 6. Interpretive consequences, misconceptions, and open problems

Several misconceptions are directly challenged by this body of work. One is that strong local retrieval should automatically yield strong composition. The multi-hop study shows the opposite: \(97\%\) 1-hop accuracy on held-out entities can coexist with chance 2-hop composition, and larger GPT-2 variants do not change that pattern outside the exposure region [2606.09338]. A second is that multilingual transfer will emerge “for free” if enough data or scale is applied. PreAlign shows that spontaneous alignment exists but remains weaker than alignment established prior to LM pretraining; most of the synthetic CLKA gain comes from aligned initialization rather than code-switching alone [2407.16222]. A third is that boundary awareness is merely a byproduct of model size. Semi-BABERT-lite exceeds larger BABERT in BIM, and BERT and BERT-lite have the same BIM despite different scales [2404.05560].

A broader lesson is that boundary-centric interventions often change *where* transfer occurs rather than simply improving average performance. In multi-hop factual QA, augmentation transfers across unseen questions but not across unexposed individuals. In ICPT, ordering related documents helps tasks that depend on using prior context, such as in-context learning, reading comprehension, retrieval augmentation, and faithfulness to previous context. In LingBot-Vision, the gains are strongest on dense spatial tasks, and the paper notes that depth gains are stronger in boundary-rich settings like NYUv2 than in driving scenes like KITTI. This suggests that boundary-centric pretraining is typically task-aligned and locality-sensitive rather than uniformly beneficial across all axes [2606.09338][2310.10638][2607.05247].

The literature also leaves several open questions. The multi-hop work leaves open whether long-context natural corpora might substitute for explicit compositional supervision and whether retrieval-augmented or architectural methods can overcome the exposure boundary without relying on parametric implicit composition [2606.09338]. PreAlign is limited to models up to 1.3B parameters and depends on GPT-4-derived translation tables, raising questions about scale, lexical noise, and coverage in richer multilingual settings [2407.16222]. Semi-BABERT and BABERT remain tied to Chinese lexical statistics and lexicon heuristics, while BIM still requires segmented text for evaluation [2404.05560][2210.15231]. LingBot-Vision adds considerable complexity through dense field prediction and a-contrario validation, and some images yield too few validated segments for boundary loss [2607.05247]. BrepLLM aligns only the global token during pretraining and truncates node-token sequences to \(T_{\max}=128\), leaving fine-grained node-level alignment and larger CAD assemblies as open problems [2512.16413].

Taken together, these papers support a precise interpretation. Boundary-centric pretraining is not simply pretraining with extra side information. It is pretraining that assigns algorithmic importance to the interfaces at which generic objectives are known to underperform: compositional interfaces between facts, alignment interfaces between languages, latent lexical boundaries, transitions across documents and events, and discontinuities in spatial or topological structure. The empirical record across these domains suggests that pretraining succeeds when those interfaces are made predictive, and fails in systematic ways when they are not.

Source: https://www.emergentmind.com/topics/boundary-centric-pretraining