arXiv Science⌕ Search

arXiv subjects

Zakaria El Ouahidi

Publications and source records attributed to Zakaria El Ouahidi.

2 recordsLinked to original sources

Let Expert Confidence Guide LoRA Merging: Margin-Aware Spectral Adaptation

Model merging combines LoRA experts specialized in different tasks into a single model without retraining, at the cost of interference between them. Recent methods reduce this interference by flattening the spectrum of each LoRA's weights, which can also weaken what each expert has learned. We show that flattening should adapt to the confidence of the experts. Less confident experts merge best when fully flattened, while more confident experts benefit from keeping more of their spectrum. We introduce MASAR, which measures this confidence with the margin, defined as the difference between an expert's top two class scores. Our method needs only one unlabeled example per task to compute this margin and set the amount of flattening. Since one example covers few input directions, we complement it with those encoded in the LoRA weights. This yields a closed-form merge that needs no labels, no training and no hyperparameter search. MASAR thus adapts to experts trained with different levels of confidence, where uniform flattening does not. On CLIP ViT-B/32, MASAR outperforms the best label-free baseline by more than 7 accuracy points. It even surpasses merges tuned on labeled data and gives the best label-free average on both ViT-L/14 and language tasks with Llama-3-8B. Our code is available at https://github.com/Harvard-AI-and-Robotics-Lab/masar-merging

cs.LG↗

Parsing Visual Latents for Multimodal Spatial Reasoning

Spatial reasoning across multiple views requires inferring the 3D relations between objects and the camera from 2D observations, which depends on cross-view correspondence and scene geometry that vision-language models (VLMs) do not reliably extract. Pretrained vision encoders already capture this information in their latent features, with CLIP linking objects to image regions, DINOv3 matching semantics across views, and VGGT encoding multi-view geometry. However, VLMs do not benefit from these features when we present them directly in context as grayscale feature images. We therefore propose LatentParse, a training-free framework that parses latent features into explicit spatial evidence for VLMs. In LatentParse, an analyst VLM probes the features of all three encoders with predefined tools that locate objects, track them across views, and measure motion between views. It then distills the results into a concise text report, which is provided together with the images to the VLM to answer the question. We evaluate LatentParse on MMSI-Bench, MV-RoboBench and SPAR-Bench, where it improves all five VLMs over the photo-only baseline by 0.7-2.4 percentage points on average. On MMSI-Bench, it raises Qwen3.8-27B from 34.4% to 39.5%, with the largest improvements of 19.2 percentage points on the camera-related questions. These results suggest that latent features become useful for spatial reasoning once they are parsed into relation evidence, without training. Code is available at https://github.com/Harvard-AI-and-Robotics-Lab/LatentParse.

cs.CV↗