Papers
Topics
Authors
Recent
Search
2000 character limit reached

XCom: Cross Completion Methods

Updated 8 July 2026
  • XCom is a methodological pattern that reconstructs missing data by inferring correlated structure from complementary representations, such as different views, client embeddings, or tensor measurements.
  • It spans diverse applications including self-supervised 3D vision, vertical federated learning, cross-file code completion, and tensor recovery, each using tailored models and objectives.
  • The approach integrates techniques like transformer-based networks, CUR tensor approximations, and contrastive alignment to boost downstream performance and ensure consistent recovery.

Cross Completion, often abbreviated XCom, denotes a family of methods in which missing, masked, or otherwise unavailable content in one representation is reconstructed by conditioning on complementary information drawn from another representation. In the cited literature, the term is used across self-supervised 3D vision, vertical federated learning, repository-level code completion, tensor recovery, and several cross-modal completion settings. This suggests that XCom is best understood not as a single standardized algorithm but as a recurrent methodological pattern: infer unavailable structure in a target space from correlated structure in a different view, modality, client, file, or sampled substructure (Weinzaepfel et al., 2022, Ding et al., 2022, Yao et al., 7 Aug 2025).

1. Terminological scope and recurring structure

The label “XCom” appears with distinct technical meanings in different subfields. In self-supervised vision, it denotes cross-view completion from paired images of the same scene or person. In vertical federated learning, it denotes feature completion across clients with disjoint feature subsets. In software engineering, it denotes cross-file code completion. In tensor methods, “Cross” denotes a measurement and reconstruction scheme for low-rank tensor completion (Zhang, 2016), and later work studies cross tensor approximation or tensor CUR approximation for image and video completion (Ahmadi-Asl et al., 2022).

Area Representative formulation Representative paper
Self-supervised vision Reconstruct masked content in one image from another view (Weinzaepfel et al., 2022)
Vertical federated learning Complete missing client features from other clients’ embeddings (Yao et al., 7 Aug 2025)
Code completion Predict code using in-file and cross-file context (Ding et al., 2022)
Tensor completion Recover low-rank tensors from body-and-arm or CUR-style observations (Zhang, 2016)

A common structural template recurs across these uses. A target object is partially observed; an auxiliary source carries correlated information; a model reconstructs the missing target component; and downstream supervision or recovery criteria enforce consistency. The auxiliary source may be another camera view, another client’s embedding, another repository file, a retrieved reference sample, or sampled rows, columns, fibers, and subtensors.

2. Cross-view completion in self-supervised vision

In "CroCo: Self-Supervised Pre-training for 3D Vision Tasks by Cross-View Completion" (Weinzaepfel et al., 2022), the pretext task masks patches in a first image and reconstructs them using both the visible patches and a second image of the same scene from a different viewpoint. With images I1I_1 and I2I_2, masking operator MM, and a transformer-based network fθf_\theta, the formulation is

I^1=fθ(M(I1),I2),\hat I_1 = f_\theta(M(I_1), I_2),

with a per-pixel 2\ell_2 loss computed over the masked patches. The encoder is a standard ViT-Base/16 with $12$ layers, hidden dimension D=768D=768, and $12$ heads; the decoder uses L=8L=8 blocks, hidden dimension I2I_20, and I2I_21 heads. The masking ratio is typically I2I_22. Pre-training on synthetic indoor scenes from HM3D, ScanNet, Replica, and ReplicaCAD totals approximately I2I_23 million image pairs. Reported downstream results include [email protected] improving from approximately I2I_24 to approximately I2I_25 on NYUv2 depth estimation, MPI-Sintel AEPE dropping from approximately I2I_26 to approximately I2I_27, and stereo matching on VKITTI reaching average I2I_28-px error approximately I2I_29 versus approximately MM0 for PSMNet (Weinzaepfel et al., 2022).

"Cross-view and Cross-pose Completion for 3D Human Understanding" (Armando et al., 2023) specializes the same principle to human-centric data. It uses either stereoscopic pairs at the same time or temporal pairs from the same camera at times MM1 and MM2. With masked target patches MM3, reference image MM4, and reconstruction network MM5, the loss is

MM6

The total pre-training objective sums cross-view and cross-pose losses. A human-segmenter is used so that MM7 of human patches are masked while background patches pad the visible-token sequence to fixed length. Pre-training uses HUMBI, AIST, synthetic SMPL renders, and monocular video datasets including 3DPW, PoseTrack, PennAction, JRDB, MARS, and InterHand2.6M. Reported downstream results include PA-MPJPE MM8 mm for model-based body mesh recovery on 3DPW, MM9 mm for model-free vertex regression, fθf_\theta0 mm for hand mesh recovery on FreiHand, and AUCfθf_\theta1 on COCO-Part DensePose. Cross-view only yields PA-MPJPE approximately fθf_\theta2 mm, cross-pose only fθf_\theta3 mm, and combining both fθf_\theta4 mm (Armando et al., 2023).

A later analysis, "Cross-View Completion Models are Zero-shot Correspondence Estimators" (An et al., 2024), shows that the cross-attention map inside cross-view completion models functions as a dense cost volume. With target queries fθf_\theta5, source keys fθf_\theta6, and source values fθf_\theta7, the cross-attention map is

fθf_\theta8

and the warped features are

fθf_\theta9

The paper reports zero-shot matching AEPE of I^1=fθ(M(I1),I2),\hat I_1 = f_\theta(M(I_1), I_2),0 on HPatches-240 average and I^1=fθ(M(I1),I2),\hat I_1 = f_\theta(M(I_1), I_2),1 on ETH3D average, outperforming DINOv2, DIFT, and SD-DINO. With lightweight heads, ZeroCo-flow reaches HPatches-Original average AEPE I^1=fθ(M(I1),I2),\hat I_1 = f_\theta(M(I_1), I_2),2 and ETH3D average AEPE I^1=fθ(M(I1),I2),\hat I_1 = f_\theta(M(I_1), I_2),3, while ZeroCo-depth ties state of the art on KITTI with AbsRel I^1=fθ(M(I1),I2),\hat I_1 = f_\theta(M(I_1), I_2),4 and achieves RMSE I^1=fθ(M(I1),I2),\hat I_1 = f_\theta(M(I_1), I_2),5 (An et al., 2024). This suggests that, in these models, completion and correspondence are not separate phenomena: the completion operator already contains an implicit matching mechanism.

3. Cross completion in vertical federated learning

In "X-VFL: A New Vertical Federated Learning Framework with Cross Completion and Decision Subspace Alignment" (Yao et al., 7 Aug 2025), XCom is a front-end module for non-aligned data samples with partially missing features. For two clients I^1=fθ(M(I1),I2),\hat I_1 = f_\theta(M(I_1), I_2),6 and I^1=fθ(M(I1),I2),\hat I_1 = f_\theta(M(I_1), I_2),7, each client has a bottom model I^1=fθ(M(I1),I2),\hat I_1 = f_\theta(M(I_1), I_2),8 producing embedding I^1=fθ(M(I1),I2),\hat I_1 = f_\theta(M(I_1), I_2),9. If client 2\ell_20 has missing features, XCom defines a feature completer

2\ell_21

and analogously 2\ell_22. The reconstructed features are re-embedded:

2\ell_23

For partially missing features, only the missing block is replaced and the existing coordinates are left untouched.

XCom is trained indirectly through the joint classification objective. In the two-client case, the decision loss includes five cross-entropy terms:

2\ell_24

Decision Subspace Alignment adds two MSE terms:

2\ell_25

and

2\ell_26

The full objective is

2\ell_27

The paper provides convergence theorems under average-smoothness and bounded variance assumptions. For SGD-type algorithms, the rate is 2\ell_28; for PAGE-type variance-reduced algorithms, it is 2\ell_29. Correspondingly, reaching an $12$0-stationary point requires $12$1 iterations for vanilla SGD and $12$2 rounds for PAGE-type algorithms. Inference modes include independent no-missing, independent with missing, and collaborative inference. The reported empirical gains are a $12$3 improvement in accuracy on CIFAR-10 and a $12$4 improvement on MIMIC-III. An illustrative example reports that when the left client has zero pixels, standalone confidence in “fish” is $12$5, and XCom reconstruction raises local confidence to $12$6, above the $12$7 obtained with full joint features (Yao et al., 7 Aug 2025).

4. Cross-file code completion

In code intelligence, XCom denotes cross-file code completion: generating code in file $12$8 from in-file context $12$9 and cross-file context D=768D=7680 drawn from the repository D=768D=7681. "CrossCodeEval: A Diverse and Multilingual Benchmark for Cross-File Code Completion" (Ding et al., 2023) formalizes the task with ground-truth completion D=768D=7682 and evaluates Exact Match, Edit Similarity, and identifier-based metrics. The benchmark spans Python, Java, TypeScript, and C#, and uses static-analysis-based construction to ensure the completion strictly requires cross-file context. Final dataset sizes are D=768D=7683 Python examples, D=768D=7684 Java, D=768D=7685 TypeScript, and D=768D=7686 C#. For StarCoder-D=768D=7687B, in-file exact match is D=768D=7688 across Python/Java/TypeScript/C#, rising to D=768D=7689 with retrieval and $12$0 with retrieval w/ Ref. The paper states that even with highest-performing models and strong prompting, “the pinnacle of performance remains notably unattained” (Ding et al., 2023).

"CoCoMIC: Code Completion By Jointly Modeling In-file and Cross-file Context" (Ding et al., 2022) implements XCom by retrieving relevant project entities with CCFinder and integrating them into an autoregressive code LLM. CCFinder builds a multi-relational directed project context graph whose nodes are files, classes, functions, and globals, and retrieves the $12$1-hop neighborhood of imported nodes, with $12$2 in all experiments. Each retrieved entity is summarized by a special $12$3 token, and at every transformer layer the next-token query attends jointly to in-file keys/values and cross-file embeddings:

$12$4

The training objective is standard autoregressive log-likelihood conditioned on both contexts. On a Python test set of $12$5 prompts, CoCoMIC improves exact match from $12$6 to $12$7, BLEU-4 from $12$8 to $12$9, identifier-match EM from L=8L=80 to L=8L=81, and reduces perplexity from L=8L=82 to L=8L=83. The paper reports a L=8L=84 relative increase in exact match and a L=8L=85 relative increase in identifier matching when cross-file context is provided (Ding et al., 2022).

"Impact-driven Context Filtering For Cross-file Code Completion" (Li et al., 8 Aug 2025) addresses a central difficulty of repository-level retrieval: many retrieved chunks are neutral or negative. It defines a likelihood-based contribution score

L=8L=86

where L=8L=87 is the log-likelihood of the ground-truth completion under generator L=8L=88. With thresholds L=8L=89 and I2I_200, retrieved chunks are labeled Positive, Neutral, or Negative. On RepoEval-API with StarCoderBase-3B, only approximately I2I_201 of retrieved chunks are Positive, approximately I2I_202 are Negative, and the remaining approximately I2I_203 are Neutral. CODEFILTER trains a generator to emit adaptive-retrieval tokens I2I_204 and polarity tokens I2I_205. Reported gains include roughly I2I_206–I2I_207 pp EM over strong RAG baselines and approximately I2I_208 reduction in cross-file prompt tokens (Li et al., 8 Aug 2025). This directly counters the misconception that more repository context is automatically beneficial.

5. Cross-modal completion under missing modalities and reference retrieval

Incomplete text-based person re-identification provides an explicit missing-modality setting. "Prototype-guided Cross-modal Completion and Alignment for Incomplete Text-based Person Re-identification" (Gong et al., 2023) defines an incomplete text-based ReID task in which person images and text descriptions are not completely matched and contain partially missing modality data. The proposed PCCA framework uses cross-modal nearest neighbor construction by computing the cross-modal similarity between existing images and texts, then builds relation graphs with the nearest-neighbor sets and corresponding prototypes to complete missing modal features. It also introduces a prototype-aware cross-modal alignment loss to reduce the modality heterogeneity gap for better fine-grained alignment in common space. The abstract reports that the method consistently outperforms state-of-the-art text-image ReID approaches across benchmarks with different missing ratios (Gong et al., 2023).

Cross-modal point-cloud completion extends the same principle to geometric data. "Benefit from Reference: Retrieval-Augmented Cross-modal Point Cloud Completion" (Hou et al., 19 Jul 2025) builds a 3D-image database and retrieves the top-I2I_209 most similar reference samples using CLIP or ULIP image embeddings. Its Structural Shared Feature Encoder jointly extracts cross-modal features from the incomplete point cloud, the paired image, and the retrieved complete point cloud, while a dual-channel control gate enhances relevant structural features and suppresses irrelevant information. The Progressive Retrieval-Augmented Generator fuses reference prior information from global to local. The overall loss combines Chamfer Distance on seed and output point sets with a Gram-matrix-based cross-modal feature-transfer loss. On ShapeNet-ViPC, the method reports CD I2I_210 and F1 I2I_211, compared with EGIINet CD I2I_212 and F1 I2I_213; on unseen categories it reports CD I2I_214 and F1 I2I_215; and with only I2I_216 noisy input points it reports CD@2048 I2I_217 and F1 I2I_218 (Hou et al., 19 Jul 2025).

"HGACNet: Hierarchical Graph Attention Network for Cross-Modal Point Cloud Completion" (Zeng et al., 17 Sep 2025) uses a Hierarchical Graph Attention encoder, a Multi-Scale Cross-Modal Fusion module, and a contrastive InfoNCE-style loss to align the point and image branches. The decoder upsamples fused features to a complete point cloud, and the loss combines I2I_219 with contrastive alignment. Reported results on ShapeNet-ViPC are CD I2I_220 and F1 I2I_221, versus EGIINet CD I2I_222 and F1 I2I_223; on YCB-Complete, known objects reach CD I2I_224 and F1 I2I_225, while unknown objects reach CD I2I_226 and F1 I2I_227 (Zeng et al., 17 Sep 2025). A plausible implication is that retrieval-based priors and hierarchical fusion are two distinct but convergent strategies for supplying missing geometric structure.

6. Tensor “Cross” schemes and theoretical guarantees

In low-rank tensor recovery, “Cross” denotes a measurement and reconstruction scheme rather than a neural completion module. "Cross: Efficient Low-rank Tensor Completion" (Zhang, 2016) studies a third-order tensor of Tucker rank-I2I_228 in I2I_229 space. The method observes a “body” subtensor and three “arms,” then reconstructs

I2I_230

With the optimal noiseless choice I2I_231, the required number of measurements is

I2I_232

which the paper states matches the sample-complexity lower bound. The noisy theory provides an upper bound and a matching minimax lower bound for recovery error, and the framework extends to higher-order tensors (Zhang, 2016).

"Cross Tensor Approximation for Image and Video Completion" (Ahmadi-Asl et al., 2022) adapts cross approximation and tensor CUR approximation to incomplete images and videos. Its multistage completion loop alternates between a CUR-based low-rank update and mask enforcement:

I2I_233

For highly structured missingness or very high missing rate, the method smooths sampled fibers before applying CUR. The paper reports that this smoothing can yield up to I2I_234–I2I_235 dB PSNR when more than I2I_236 of entries are missing or entire rows and columns are absent. On I2I_237 color images with I2I_238 missingness, PSNR is approximately I2I_239–I2I_240 dB for all methods, but Smooth Tucker CUR runs in approximately I2I_241 s versus TR-WOPT approximately I2I_242 s and TR-ALS approximately I2I_243 s. At I2I_244 missingness, Smooth Tucker CUR achieves PSNR approximately I2I_245 dB in I2I_246 s; at I2I_247 missingness it still recovers approximately I2I_248 dB PSNR in approximately I2I_249 s (Ahmadi-Asl et al., 2022).

Taken together, these tensor papers show a different branch of the XCom lineage: exact or approximate recovery from strategically chosen low-rank measurements, rather than semantic completion from auxiliary modalities. This distinction is important. The shared word “Cross” points to the use of intersecting substructures or complementary observations, but the operational objects differ substantially: arms and body subtensors in one case, transformer embeddings and retrieved context in another.

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 Cross Completion (XCom).