Papers
Topics
Authors
Recent
Search
2000 character limit reached

Positional Embedding Transplant Techniques

Updated 9 July 2026
  • Positional Embedding Transplant is a design pattern that repurposes positional signals to inject structural information into transformer models, enhancing task-specific geometry and hierarchy.
  • It applies in three contexts: source code representation via AST-derived signals, length extrapolation through relative bias schemes, and image editing via region-based embedding swaps.
  • Careful implementation—including fusion methods, receptive field calibration, and timing thresholds—is crucial to maintain alignment and model fidelity while mitigating potential artifacts.

Positional embedding transplant denotes a family of operations in which positional information is re-used, replaced, or augmented outside its original placement in a model. In recent arXiv literature, the phrase has been used in three distinct technical senses: transplanting AST-derived tree structure into a Transformer embedding stack for source code representation; re-using a relative positional-bias scheme beyond the training context length for length extrapolation; and swapping spatial positional embeddings between reference and target regions during diffusion denoising for identity-aware image editing (Bartkowiak et al., 5 Jul 2025, Chi et al., 2022, Xiong et al., 24 Aug 2025). In all three cases, the central object is not token content itself but the positional prior that constrains attention, geometry, or structural correspondence.

1. Terminological scope and operational forms

The literature does not present a single canonical algorithm under the name “positional embedding transplant.” Instead, it presents a recurring design pattern: a positional signal is transferred from one representational regime to another in order to preserve structure that the baseline positional mechanism does not capture directly.

Setting Positional object transplanted Operational goal
Source code Transformer AST-derived depth and sibling embeddings Encode hierarchical structure
Length extrapolation Relative positional bias beyond LtrL_{tr} Preserve perplexity at LexLtrL_{ex}\gg L_{tr}
Diffusion image editing Reference-region spatial positional embeddings Transfer coarse geometry and viewpoint

In the source-code setting, the transplant is additive and architectural: two new lookup tables are fused into the input embedding block. In length extrapolation, the transplant is range-extending: a positional-bias design trained up to a maximum context length LtrL_{tr} is safely re-used at a longer evaluation length LexL_{ex}. In image editing, the transplant is regional and time-dependent: positional embeddings of a target region are replaced by those of a reference region only during the early denoising steps. This suggests that “transplant” is best understood as a structural intervention on the positional channel, rather than as a single modality-specific method.

2. Tree-based transplant in Transformer models for source code

In "Seamlessly Integrating Tree-Based Positional Embeddings into Transformer Models for Source Code Representation" (Bartkowiak et al., 5 Jul 2025), the transplanted positional object is derived from Abstract Syntax Trees. Let ii index a token or node, with depth(i){1,,Dmax}\mathrm{depth}(i)\in\{1,\dots,D_{\max}\} the AST depth and sib(i){1,,Smax}\mathrm{sib}(i)\in\{1,\dots,S_{\max}\} the sibling index among immediate siblings ordered left to right. Two embedding tables are learned,

EdepthRDmax×H,EsibRSmax×H,E_{\mathrm{depth}}\in\mathbb{R}^{D_{\max}\times H},\qquad E_{\mathrm{sib}}\in\mathbb{R}^{S_{\max}\times H},

and for each token

di=Edepth[depth(i)],si=Esib[sib(i)],pi=di+si.d_i = E_{\mathrm{depth}}[\mathrm{depth}(i)],\qquad s_i = E_{\mathrm{sib}}[\mathrm{sib}(i)],\qquad p_i = d_i + s_i.

The same construction is also written as

P(x)=Aggregate(h(F(x)1),h(F(x)2)),P(x) = \mathrm{Aggregate}\bigl(h(F(x)_1), h(F(x)_2)\bigr),

with LexLtrL_{ex}\gg L_{tr}0, LexLtrL_{ex}\gg L_{tr}1, and LexLtrL_{ex}\gg L_{tr}2.

The transplant enters the Transformer by extending the standard embedding block with LexLtrL_{ex}\gg L_{tr}3 and LexLtrL_{ex}\gg L_{tr}4. Three fusion strategies were explored, and the most robust was Weighted Sum. For position LexLtrL_{ex}\gg L_{tr}5,

LexLtrL_{ex}\gg L_{tr}6

where LexLtrL_{ex}\gg L_{tr}7 are learnable scalar weights initialized uniformly, for example all LexLtrL_{ex}\gg L_{tr}8. In code, the recipe adds LexLtrL_{ex}\gg L_{tr}41 and replaces the final embedding combination by the weighted sum. An optional but recommended Tree Attention Mask uses LexLtrL_{ex}\gg L_{tr}9, with LtrL_{tr}0 if tokens LtrL_{tr}1 and LtrL_{tr}2 are in direct AST relation or share the same parent, and LtrL_{tr}3 otherwise; the mask is added to attention scores before the softmax.

The paper illustrates the transplant in CodeBERTa-small, whose base model has 6 Transformer layers, 12 attention heads, and hidden size LtrL_{tr}4, or approximately LtrL_{tr}5 M parameters. Adding LtrL_{tr}6 and LtrL_{tr}7 contributes roughly LtrL_{tr}8 K parameters each for LtrL_{tr}9, for a total of LexL_{ex}0 K parameters, which is stated as less than LexL_{ex}1 overhead. The new tables are initialized with Xavier uniform, the embedding weights are initialized to LexL_{ex}2, and no extra adapter layers are needed because the structural embeddings are fused directly at the input.

Training uses masked language modeling pretraining for 3 epochs on CodeSearchNet with batch size LexL_{ex}3, AdamW, learning rate LexL_{ex}4, weight decay LexL_{ex}5, dropout LexL_{ex}6, linear warm-up over the first LexL_{ex}7 of steps, then linear decay to zero. Clone detection is then run for 3 epochs on PoolC with 600 K pairs, using the same optimizer and hyperparameters, and seeds LexL_{ex}8 are averaged. For MLM, the objective is standard cross-entropy over LexL_{ex}9 randomly masked tokens; for clone detection, binary cross-entropy or equivalently classification cross-entropy is used over “clone” versus “non-clone.”

Empirically, Weighted Sum is reported as best on both tasks. On CodeSearchNet MLM, original CodeBERTa-small gives loss ii0, acc ii1, F1 ii2, P ii3, R ii4, whereas Weighted Sum gives loss ii5, acc ii6, F1 ii7, P ii8, R ii9. On PoolC clone detection, original gives loss depth(i){1,,Dmax}\mathrm{depth}(i)\in\{1,\dots,D_{\max}\}0, acc depth(i){1,,Dmax}\mathrm{depth}(i)\in\{1,\dots,D_{\max}\}1, F1 depth(i){1,,Dmax}\mathrm{depth}(i)\in\{1,\dots,D_{\max}\}2, P depth(i){1,,Dmax}\mathrm{depth}(i)\in\{1,\dots,D_{\max}\}3, R depth(i){1,,Dmax}\mathrm{depth}(i)\in\{1,\dots,D_{\max}\}4, whereas Weighted Sum gives loss depth(i){1,,Dmax}\mathrm{depth}(i)\in\{1,\dots,D_{\max}\}5, acc depth(i){1,,Dmax}\mathrm{depth}(i)\in\{1,\dots,D_{\max}\}6, F1 depth(i){1,,Dmax}\mathrm{depth}(i)\in\{1,\dots,D_{\max}\}7, P depth(i){1,,Dmax}\mathrm{depth}(i)\in\{1,\dots,D_{\max}\}8, R depth(i){1,,Dmax}\mathrm{depth}(i)\in\{1,\dots,D_{\max}\}9. In both tasks, Weighted Sum yields the largest absolute gains in loss, accuracy, F1, precision, and recall.

3. Relative positional-bias transplant for length extrapolation

In "Dissecting Transformer Length Extrapolation via the Lens of Receptive Field Analysis" (Chi et al., 2022), positional-embedding transplant refers to taking a relative positional-bias scheme trained on maximum context length sib(i){1,,Smax}\mathrm{sib}(i)\in\{1,\dots,S_{\max}\}0 and safely re-using it at much longer evaluation lengths sib(i){1,,Smax}\mathrm{sib}(i)\in\{1,\dots,S_{\max}\}1. The analysis is organized around receptive field rather than around positional formulas alone.

The theoretical receptive field of an sib(i){1,,Smax}\mathrm{sib}(i)\in\{1,\dots,S_{\max}\}2-layer transformer with window size sib(i){1,,Smax}\mathrm{sib}(i)\in\{1,\dots,S_{\max}\}3 is sib(i){1,,Smax}\mathrm{sib}(i)\in\{1,\dots,S_{\max}\}4. The empirical receptive field is defined as the smallest tail of input tokens that contributes sib(i){1,,Smax}\mathrm{sib}(i)\in\{1,\dots,S_{\max}\}5 of the gradient mass when predicting the next token. It is measured through cumulative normalized gradients: sib(i){1,,Smax}\mathrm{sib}(i)\in\{1,\dots,S_{\max}\}6 and

sib(i){1,,Smax}\mathrm{sib}(i)\in\{1,\dots,S_{\max}\}7

This criterion underlies the paper’s transplant guidelines: if ERF sib(i){1,,Smax}\mathrm{sib}(i)\in\{1,\dots,S_{\max}\}8, further tokens are ignored, which is safe for transplant but does not exploit new information; if ERF sib(i){1,,Smax}\mathrm{sib}(i)\in\{1,\dots,S_{\max}\}9 and bias decay is too slow, perplexity may explode.

The best-known linear-bias design in this discussion is ALiBi, whose head-specific bias takes the form

EdepthRDmax×H,EsibRSmax×H,E_{\mathrm{depth}}\in\mathbb{R}^{D_{\max}\times H},\qquad E_{\mathrm{sib}}\in\mathbb{R}^{S_{\max}\times H},0

with head parameters EdepthRDmax×H,EsibRSmax×H,E_{\mathrm{depth}}\in\mathbb{R}^{D_{\max}\times H},\qquad E_{\mathrm{sib}}\in\mathbb{R}^{S_{\max}\times H},1. The effect is a linear decay in attention preference with token offset EdepthRDmax×H,EsibRSmax×H,E_{\mathrm{depth}}\in\mathbb{R}^{D_{\max}\times H},\qquad E_{\mathrm{sib}}\in\mathbb{R}^{S_{\max}\times H},2. When EdepthRDmax×H,EsibRSmax×H,E_{\mathrm{depth}}\in\mathbb{R}^{D_{\max}\times H},\qquad E_{\mathrm{sib}}\in\mathbb{R}^{S_{\max}\times H},3 becomes large, the negative bias can dominate the scale of dot products and approximate a window. This produces a transplant regime in which long-context evaluation is stable only if the implicit window, and hence the ERF, remains within the range learned during training.

The same paper introduces Sandwich, described as the first parameter-free relative positional embedding design that truly uses longer than the training sequence. Starting from sinusoidal embeddings and retaining only the inner-product positional term, the multi-head bias is written as

EdepthRDmax×H,EsibRSmax×H,E_{\mathrm{depth}}\in\mathbb{R}^{D_{\max}\times H},\qquad E_{\mathrm{sib}}\in\mathbb{R}^{S_{\max}\times H},4

for large EdepthRDmax×H,EsibRSmax×H,E_{\mathrm{depth}}\in\mathbb{R}^{D_{\max}\times H},\qquad E_{\mathrm{sib}}\in\mathbb{R}^{S_{\max}\times H},5. The paper compares this bias shape to KERPLE,

EdepthRDmax×H,EsibRSmax×H,E_{\mathrm{depth}}\in\mathbb{R}^{D_{\max}\times H},\qquad E_{\mathrm{sib}}\in\mathbb{R}^{S_{\max}\times H},6

and to T5, which buckets relative distances into EdepthRDmax×H,EsibRSmax×H,E_{\mathrm{depth}}\in\mathbb{R}^{D_{\max}\times H},\qquad E_{\mathrm{sib}}\in\mathbb{R}^{S_{\max}\times H},7 bins and assigns a bias per bucket. The key distinction is decay pattern: ALiBi is linear, while Sandwich, KERPLE, and T5 are logarithmic or logarithmically bucketed. The paper states that logarithmic decay produces rapid initial decay for small EdepthRDmax×H,EsibRSmax×H,E_{\mathrm{depth}}\in\mathbb{R}^{D_{\max}\times H},\qquad E_{\mathrm{sib}}\in\mathbb{R}^{S_{\max}\times H},8, followed by a plateau for large EdepthRDmax×H,EsibRSmax×H,E_{\mathrm{depth}}\in\mathbb{R}^{D_{\max}\times H},\qquad E_{\mathrm{sib}}\in\mathbb{R}^{S_{\max}\times H},9, which allows true incorporation of novel tokens beyond di=Edepth[depth(i)],si=Esib[sib(i)],pi=di+si.d_i = E_{\mathrm{depth}}[\mathrm{depth}(i)],\qquad s_i = E_{\mathrm{sib}}[\mathrm{sib}(i)],\qquad p_i = d_i + s_i.0 without exploding ERF or diverging perplexity.

The transplant guidelines follow directly from this analysis. For linear-bias schemes such as ALiBi or windowed attention, slopes or window size should be chosen so that di=Edepth[depth(i)],si=Esib[sib(i)],pi=di+si.d_i = E_{\mathrm{depth}}[\mathrm{depth}(i)],\qquad s_i = E_{\mathrm{sib}}[\mathrm{sib}(i)],\qquad p_i = d_i + s_i.1. For log-decaying schemes such as Sandwich, KERPLE, and T5, the early-di=Edepth[depth(i)],si=Esib[sib(i)],pi=di+si.d_i = E_{\mathrm{depth}}[\mathrm{depth}(i)],\qquad s_i = E_{\mathrm{sib}}[\mathrm{sib}(i)],\qquad p_i = d_i + s_i.2 regime should be sharp enough to limit ERF around di=Edepth[depth(i)],si=Esib[sib(i)],pi=di+si.d_i = E_{\mathrm{depth}}[\mathrm{depth}(i)],\qquad s_i = E_{\mathrm{sib}}[\mathrm{sib}(i)],\qquad p_i = d_i + s_i.3, while the tail bias should plateau instead of tending to di=Edepth[depth(i)],si=Esib[sib(i)],pi=di+si.d_i = E_{\mathrm{depth}}[\mathrm{depth}(i)],\qquad s_i = E_{\mathrm{sib}}[\mathrm{sib}(i)],\qquad p_i = d_i + s_i.4. The paper also notes that both ALiBi and Sandwich support sliding-window caching with cache size di=Edepth[depth(i)],si=Esib[sib(i)],pi=di+si.d_i = E_{\mathrm{depth}}[\mathrm{depth}(i)],\qquad s_i = E_{\mathrm{sib}}[\mathrm{sib}(i)],\qquad p_i = d_i + s_i.5 for di=Edepth[depth(i)],si=Esib[sib(i)],pi=di+si.d_i = E_{\mathrm{depth}}[\mathrm{depth}(i)],\qquad s_i = E_{\mathrm{sib}}[\mathrm{sib}(i)],\qquad p_i = d_i + s_i.6 generation. A stated limitation is that these relative positional embeddings still exhibit a strong recency bias and are not optimal for tasks, such as parity, where all tokens must contribute equally.

4. Regional positional embedding transplant in diffusion image editing

"PosBridge: Multi-View Positional Embedding Transplant for Identity-Aware Image Editing" (Xiong et al., 24 Aug 2025) uses Positional Embedding Transplant, abbreviated PET, as a zero-training, mask-guided technique that swaps the transformer positional encodings of a target editable region with those of a reference region during the early timesteps of diffusion denoising. The stated rationale is that transformer-based diffusion models rely heavily on positional embeddings to encode structural layout, so the swap transfers coarse geometry and viewpoint from the reference object into the target region. After a threshold di=Edepth[depth(i)],si=Esib[sib(i)],pi=di+si.d_i = E_{\mathrm{depth}}[\mathrm{depth}(i)],\qquad s_i = E_{\mathrm{sib}}[\mathrm{sib}(i)],\qquad p_i = d_i + s_i.7, the original positional embeddings are restored so that the model refines appearance details and blends the content into the background.

The pipeline begins with a background image di=Edepth[depth(i)],si=Esib[sib(i)],pi=di+si.d_i = E_{\mathrm{depth}}[\mathrm{depth}(i)],\qquad s_i = E_{\mathrm{sib}}[\mathrm{sib}(i)],\qquad p_i = d_i + s_i.8, a binary edit mask di=Edepth[depth(i)],si=Esib[sib(i)],pi=di+si.d_i = E_{\mathrm{depth}}[\mathrm{depth}(i)],\qquad s_i = E_{\mathrm{sib}}[\mathrm{sib}(i)],\qquad p_i = d_i + s_i.9, reference images P(x)=Aggregate(h(F(x)1),h(F(x)2)),P(x) = \mathrm{Aggregate}\bigl(h(F(x)_1), h(F(x)_2)\bigr),0 with segmentation masks P(x)=Aggregate(h(F(x)1),h(F(x)2)),P(x) = \mathrm{Aggregate}\bigl(h(F(x)_1), h(F(x)_2)\bigr),1, and a prompt text P(x)=Aggregate(h(F(x)1),h(F(x)2)),P(x) = \mathrm{Aggregate}\bigl(h(F(x)_1), h(F(x)_2)\bigr),2. Spatial tokens are encoded at P(x)=Aggregate(h(F(x)1),h(F(x)2)),P(x) = \mathrm{Aggregate}\bigl(h(F(x)_1), h(F(x)_2)\bigr),3 resolution: P(x)=Aggregate(h(F(x)1),h(F(x)2)),P(x) = \mathrm{Aggregate}\bigl(h(F(x)_1), h(F(x)_2)\bigr),4

P(x)=Aggregate(h(F(x)1),h(F(x)2)),P(x) = \mathrm{Aggregate}\bigl(h(F(x)_1), h(F(x)_2)\bigr),5

P(x)=Aggregate(h(F(x)1),h(F(x)2)),P(x) = \mathrm{Aggregate}\bigl(h(F(x)_1), h(F(x)_2)\bigr),6

with P(x)=Aggregate(h(F(x)1),h(F(x)2)),P(x) = \mathrm{Aggregate}\bigl(h(F(x)_1), h(F(x)_2)\bigr),7, P(x)=Aggregate(h(F(x)1),h(F(x)2)),P(x) = \mathrm{Aggregate}\bigl(h(F(x)_1), h(F(x)_2)\bigr),8, P(x)=Aggregate(h(F(x)1),h(F(x)2)),P(x) = \mathrm{Aggregate}\bigl(h(F(x)_1), h(F(x)_2)\bigr),9, and LexLtrL_{ex}\gg L_{tr}00. Text is encoded by LexLtrL_{ex}\gg L_{tr}01. Each reference image is cropped by its segmentation mask, placed in one corner of a blank LexLtrL_{ex}\gg L_{tr}02 canvas, then VAE-encoded with a zero mask.

The positional objects are then extracted from the FLUX.1-Fill U-Net backbone, which adds learned 2D positional embeddings to each spatial location in the LexLtrL_{ex}\gg L_{tr}03 grid. PET defines LexLtrL_{ex}\gg L_{tr}04 as the positional embeddings of reference-object tokens and LexLtrL_{ex}\gg L_{tr}05 as those of the editable region, with LexLtrL_{ex}\gg L_{tr}06 matched to the model hidden dimension, for example LexLtrL_{ex}\gg L_{tr}07. The transplanted embedding set at timestep LexLtrL_{ex}\gg L_{tr}08 is

LexLtrL_{ex}\gg L_{tr}09

The model then performs denoising conditioned on LexLtrL_{ex}\gg L_{tr}10: LexLtrL_{ex}\gg L_{tr}11 The paper also gives an optional LoRA objective,

LexLtrL_{ex}\gg L_{tr}12

to improve appearance fidelity.

A distinctive component is the Corner Centered Layout. The background image is placed in the center of a blank canvas, and up to four reference-object patches are arranged in the corners. Each corner slot is the same size, for example LexLtrL_{ex}\gg L_{tr}13, and is aligned to the 16-pixel grid so that the VAE encoder and U-Net operate on a uniform LexLtrL_{ex}\gg L_{tr}14 token grid. The edit mask for the corners is all black so PET never edits reference regions; their positional embeddings are only read. During tokenization, the method crops just the five informative windows, namely the four corners and the center, and concatenates their tokens diagonally while carrying the corresponding positional embeddings in the same order.

The implementation details are unusually explicit. With LexLtrL_{ex}\gg L_{tr}15, one has LexLtrL_{ex}\gg L_{tr}16, hence LexLtrL_{ex}\gg L_{tr}17 spatial tokens. Channel dimensions before projection are LexLtrL_{ex}\gg L_{tr}18, which gives LexLtrL_{ex}\gg L_{tr}19 before a linear projection to LexLtrL_{ex}\gg L_{tr}20. Token cropping uses five windows of size LexLtrL_{ex}\gg L_{tr}21, or LexLtrL_{ex}\gg L_{tr}22 tokens per window, for a total of LexLtrL_{ex}\gg L_{tr}23 tokens. No additional interpolation is used; positional embeddings are swapped one-to-one between matching grid indices. The swap threshold is chosen small, specifically LexLtrL_{ex}\gg L_{tr}24, to avoid ghosting, and values LexLtrL_{ex}\gg L_{tr}25 are reported to produce artifacts. Optional LoRA uses rank-32 adapters trained for LexLtrL_{ex}\gg L_{tr}26k steps.

5. Implementation patterns, correspondences, and pitfalls

Across the three literatures, the transplanted object differs, but the engineering problem is consistently one of correspondence. In the code setting, the correspondence is between tokens and AST attributes LexLtrL_{ex}\gg L_{tr}27. In length extrapolation, it is between training-time and evaluation-time positional offsets. In diffusion editing, it is between editable-region indices and reference-patch indices. This suggests a shared invariant: positional transplant only functions when the model is given a stable mapping between the recipient positions and the donor positional structure.

The source-code recipe makes this correspondence requirement explicit. AST leaves must be mapped to subword tokens, and all subtokens of a word should inherit the parent’s tree position. Depth and sibling indices should be clamped at LexLtrL_{ex}\gg L_{tr}28 and LexLtrL_{ex}\gg L_{tr}29, for example LexLtrL_{ex}\gg L_{tr}30, to bound embedding-table size. The paper identifies several pitfalls: misalignment between AST tokens and subtokens, excessive LexLtrL_{ex}\gg L_{tr}31 growth, ignoring the tree mask, and learning rates that are too high for the newly added embeddings; it recommends a smaller learning rate for the added embeddings, for example LexLtrL_{ex}\gg L_{tr}32 the base learning rate, and notes that if overfitting occurs on small datasets, LexLtrL_{ex}\gg L_{tr}33 and LexLtrL_{ex}\gg L_{tr}34 can be frozen for a few epochs and later unfrozen (Bartkowiak et al., 5 Jul 2025).

The length-extrapolation setting replaces token-level alignment with receptive-field calibration. The practical rule is to inspect the ERF versus LexLtrL_{ex}\gg L_{tr}35 trade-off by cumulative gradients. If ERF remains within or near LexLtrL_{ex}\gg L_{tr}36, the transplant is safe but may ignore new information; if it extends far beyond LexLtrL_{ex}\gg L_{tr}37 with too-slow decay, perplexity may diverge. Linear-bias schemes therefore require sufficiently steep slopes, whereas log-decaying schemes require a plateau in the large-distance regime (Chi et al., 2022).

The image-editing setting imposes a spatial and temporal alignment constraint. PET uses one-to-one swapping between matching grid indices and explicitly avoids interpolation. The reference patches are zero-masked so they are not edited, and the transplant is confined to early denoising steps. The choice of LexLtrL_{ex}\gg L_{tr}38 is therefore not an incidental hyperparameter but part of the transplant specification: the source states that LexLtrL_{ex}\gg L_{tr}39 avoids ghosting, whereas LexLtrL_{ex}\gg L_{tr}40 produces artifacts (Xiong et al., 24 Aug 2025).

6. Conceptual significance and limitations

The three uses of positional embedding transplant differ in modality and objective, yet they converge on a common principle: structural information can be injected more directly by manipulating positional channels than by altering semantic token embeddings. In the code model, the structural prior is AST hierarchy. In length extrapolation, it is the decay law over token distance. In image editing, it is the coarse spatial geometry and viewpoint implied by learned 2D positional embeddings. A plausible implication is that positional mechanisms function as a compact control surface for structure, especially when the baseline model already has sufficient content capacity.

At the same time, the papers delimit the benefits carefully. In the source-code setting, tree embeddings improve loss, accuracy, F1, precision, and recall, but the method still depends on correct AST extraction, token alignment, and bounded embedding tables. In the length-extrapolation setting, “safe transplant” can mean merely that positions beyond the empirical receptive field are ignored; only log-decaying schemes such as Sandwich, KERPLE, and T5 are described as genuinely integrating novel distant tokens, and even they retain a strong recency bias (Chi et al., 2022). In the image-editing setting, PET is explicitly early-stage guidance rather than a full replacement of native positional structure: the original positional embeddings are restored after the threshold so that the model can refine local appearance, lighting, blur, and background cues (Xiong et al., 24 Aug 2025).

These constraints also guard against a common misconception. Positional transplant is not simply the act of making a model “more positional.” In the cited works, it is a targeted intervention for missing hierarchy, out-of-range context, or cross-region structural transfer. Its success depends less on the presence of additional positional parameters than on whether the transplanted signal matches the geometry of the task: AST relations for code, decay shape for extrapolation, and region-to-region spatial correspondence for diffusion editing.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Positional Embedding Transplant.