Rethinking Position Embedding as a Context Controller for Multi-Reference and Multi-Shot Video Generation

Binyuan Huang, Yuning Lu, Weinan Jia, Hualiang Wang, Mu Liu, Daiqing YangarXiv 2026

TL;DR

The paper introduces PoCo (Position Embedding as a Context Controller), a novel framework that solves "reference confusion" in multi-character, multi-shot video generation. By embedding metadata tags directly into a modified Rotary Position Embedding (SideInfo-RoPE), PoCo enables precise character tracking across shots without sacrificing background consistency or adding computational overhead.

What Problem Does This Paper Address?

Creating a cohesive multi-shot video featuring multiple characters is a massive challenge for open-source AI models. Current state-of-the-art systems face a frustrating trade-off:

  1. Independent generation: If you generate each shot in isolation using separate prompts, the character identities stay intact, but the background, lighting, and style clash wildly from shot to shot.
  2. Joint generation: If you feed all character references and shot prompts into a single Diffusion Transformer (DiT) simultaneously, the model gains global context but suffers from reference confusion. When characters look even remotely similar, the attention mechanism gets confused, leading to identity swaps or blended, ambiguous characters.
Figure 1. Comparison of different strategies for multi-reference, multi-shot video generation. (A) Independent single-shot reference- to-video generation produces each shot separately, leading to inconsistent backgrounds and appearance details across shots. (B) Joint multi-shot reference-to-video generation improves global coherence, but without explicit side information, the model may associate a shot with the wrong reference, causing identity confusion. (C) Our PoCo with SideInfo-RoPE enables accurate shot-reference association, yielding consistent identity and background across shots. Right: spatially averaged self-attention over concatenated reference and shot tokens. AttnScore(Shoti →Refj) denotes the mean attention from Shoti to Refj.

The authors identify that relying solely on semantic similarity in native attention is insufficient for complex context retrieval. They propose using position embeddings not just to track where a token is in space and time, but as an explicit controller to dictate which reference context a video token should attend to.

Methods

PoCo splits the attention mechanism into two functional components: a learnable, semantics-driven retrieval component and a manually designed positional embedding space that acts as a context organizer.

The core technical innovations are:

1. SideInfo-RoPE

Standard video DiTs use 3D Rotary Position Embeddings (3D-RoPE) to encode temporal and spatial dimensions $(t, h, w)$. PoCo extends this by adding a new axis: Side Information ($s$).

When a user provides a prompt with character tags (e.g., @character1), these tags are treated as metadata coordinates. In the RoPE phase space, tokens that share the same side information remain phase-aligned, allowing them to interact normally. Tokens that disagree on entity presence are rotated by a predefined phase offset ($\phi_i$), which naturally attenuates their cross-attention score. This acts as a soft, mathematically elegant routing mechanism directly inside the native attention computation.

2. Hierarchical Cross-Attention

To prevent text prompts from interfering across shots, PoCo structures cross-attention globally and locally. Reference image tokens act as global anchors and attend to all text captions to capture overall style. Meanwhile, video tokens from a specific shot are masked so they only attend to the text segment describing their current shot.

Figure 2. We propose a multi-reference, multi-shot video generation model conditioned on reference images and per-shot captions. (a) The overall architecture integrates reference images, shot captions, and latent video features through VAE and MultiShot-DiT blocks. Each block contains Hierarchical Cross-Attention (b) and Self-Attention with SideInfo-RoPE (c). (b) The hierarchical mask allows reference tokens to attend to all captions, while video tokens in each shot attend only to their corresponding text segment. (c) SideInfo-RoPE assigns reference-specific phase codes in the rotary embedding space, so that temporally aligned shots inherit the corresponding phase patterns. Colored planes denote active rotations, while gray planes denote unrotated ones.

Datasets

Because no off-the-shelf dataset perfectly fits multi-reference, multi-shot video generation, the authors built a robust data curation pipeline:

  • Source: Long-form videos filtered via Visual Quality Assessment (VQA) models for aesthetics, sharpness, and stability.
  • Segmentation: Divided into single shots using AutoShot and PySceneDetect.
  • Annotation: Captions generated via a multimodal LLM. Faces were detected, clustered by identity across shots, and enhanced using face-refinement techniques (SeeDream) to create clean reference portraits mapped to explicit character tags.
  • Evaluation Set: A curated out-of-distribution test set consisting of 54 shots from 18 multi-shot videos, specifically utilizing 9 pairs of look-alike characters to rigorously test reference confusion.

Key Insights and Ideas

  • Position Embedding as a Traffic Controller: Instead of adding heavy external retrieval modules or cross-attention layers to handle identity gating, modifying the position embedding space achieves the same routing effect for free.
  • Discretizing Metadata into Phase Space: The authors map discrete character tags into uniform partitions of a $2\pi$ phase circle. This geometric separation prevents look-alike characters from bleeding into each other's shots.
  • Low-Frequency Channels Matter Most: Through ablation, the authors discovered that reallocating low-frequency temporal channels for side information yields much better results than high-frequency channels. High-frequency channels are critical for rapid motion modeling; disrupting them introduces severe motion artifacts.

Key Results

PoCo was evaluated against strong baselines like Phantom and EchoShot on a 14B parameter backbone (VACE-14B).

  • Quantitative Superiority: PoCo achieved the highest overall benchmark score (83.46). Crucially, it blew baselines away in background consistency (CrossShot-DINO of 92.66 vs. Phantom-14B's 73.24) and character fidelity (CrossShot-FaceSim of 89.35).
  • Qualitative Impact: As shown in look-alike testing, models without SideInfo-RoPE frequently swapped identities or generated mixed faces. PoCo consistently grounded the correct character to the correct shot while maintaining a flawless, unchanging background across the entire sequence.
Qualitative comparison showing how SideInfo-RoPE prevents identity swaps and ambiguous grounding for look-alike characters compared to the baseline.

Limitations and Future Work

While PoCo excels at cross-shot reference control, it is currently less suited for complex intra-shot scenarios. For instance, if two highly similar twin characters appear in the same frame and need to perform distinct actions, PoCo's current shot-level side information cannot differentiate them. The authors note that extending PoCo to handle denser, instance-level spatiotemporal control within a single frame is the next major frontier.

Summary updated

BibTeX
@misc{huang2026rethinking,
  author = {Binyuan Huang and Yuning Lu and Weinan Jia and Hualiang Wang and Mu Liu and Daiqing Yang},
  title = {{Rethinking Position Embedding as a Context Controller for Multi-Reference and Multi-Shot Video Generation}},
  year = {2026},
  eprint = {2604.03738},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2604.03738},
}
Figure