Search arXiv⌕ Search

arXiv subjects

Xuanming Shang

Publications and source records attributed to Xuanming Shang.

7 recordsLinked to original sources

Programmatic Multimodal Memory: Learning to Read Long Videos with Code

Answering questions about hours- or days-long videos requires finding a few seconds of evidence in recordings far longer than any model can read at once. Most memory systems decide what matters at write time. Before any question arrives, they consolidate the video into compressed memory banks or structured graphs and lose details that later questions need. We instead defer this decision to read time. Programmatic Multimodal Memory (PMM) writes a multi-scale temporal memory of timestamped captions and transcripts once, without consolidation, and keeps it aligned with the raw video. Single-round retrieval misses much of the evidence, so a Root model reads this memory with code over multiple turns in a persistent Python REPL. Its programs filter records across days, query a frozen submodel in batches, and inspect raw frames on demand. The Root now decides what matters, yet small open-weight models struggle zero-shot to coordinate code search and frame inspection. We therefore train Qwen3.5-9B as the Root in this REPL with evidence-grounded supervised fine-tuning and outcome-reward reinforcement learning. The resulting PMM-9B gains 12.1 points over its zero-shot version and outperforms every open-source model and agent baseline on all five personal-memory and long-video benchmarks. It also beats standalone GPT-5 and Gemini 2.5 Pro on average, and by nearly 20 points on week-long EgoLifeQA. Open-source baselines that use more input tokens per question than PMM-9B are all less accurate, and those that use fewer score at least 16.6 points lower. Project page: https://shadow-weave.github.io/PMM/.

cs.CV↗

Native View Attention: Training-Free Ultra-High-Resolution Image Generation in Linear Time

Diffusion transformers sampled beyond their training resolution lose global structure and produce artifacts, and their attention cost grows quadratically with the number of tokens. We trace both problems to one cause. Attention counts every token once, and in training each token stands for a fixed area of the image. At a higher resolution, the same area is split into many near-identical tokens, so dense attention counts it many times. Comparing attention at both resolutions, we find that the prompt, whose tokens do not multiply, loses most of its attention. Adapting position encodings or sharpening attention does not restore it. Window attention avoids the cost but counts nothing outside its window, so content repeats. We propose Native View Attention (NVA), a training-free attention operator that counts every image area once, as in training. Where detail is not needed, the tokens of an area are pooled into one. Near each token and in the few most relevant distant regions, they are kept and share the count of their area. Pooling also fixes the number of tokens each token attends to, which makes the cost linear. On FLUX.1-dev and Qwen-Image, NVA surpasses prior training-free methods in global fidelity, prompt alignment and human preference, and is the fastest, up to $8.4\times$ faster than dense attention at $8192^2$. Project page: https://nvattention.github.io/.

cs.CV↗

LIFE-VLR: Revisiting Formation, Evolution, and Readout in Visual Latent Reasoning

Visual latent reasoning uses continuous hidden states as intermediate representations and has shown promising gains on multimodal tasks. However, existing systems rely on untested assumptions about where latent states should be extracted, whether they need to change across steps, and what information the model can utilize from them. We systematically examine these assumptions across the three stages of a latent state's lifecycle: formation, evolution, and readout. Specifically, we find that (1) during formation, earlier decoder layers retain stronger visual alignment and often outperform the default final layer as state sources; (2) during evolution, cross-step state variation is not required, whereas preserving visual focus improves accuracy even as state diversity decreases; and (3) during readout, task information is retained in latent states yet underutilized for answer prediction, creating a critical bottleneck alongside visual recovery. Guided by these findings, we propose a unified training procedure that combines visually aligned layer selection, visual subspace grounding, and a staged curriculum for visual and task readout. Across nine benchmarks, two frameworks (LVR and MONET), and three backbones spanning 3B to 27B parameters, our approach improves accuracy in 51 of 54 comparisons by up to 17.35 percentage points and maintains gains after reinforcement learning.

cs.CV↗

From Visual Affinity to Learning Credit in Multimodal Reinforcement Learning

Reinforcement learning with verifiable rewards (RLVR) improves multimodal reasoning, but uniformly assigning a single response-level advantage to all tokens overlooks the distinct roles of visual observations and subsequent reasoning. Visual affinity alone is insufficient: predictive states may align with both image and prompt-context representations, and upweighting valid visual observations can amplify their negative-advantage updates when later reasoning fails. To address this issue, we propose \textbf{Outcome-Conditioned Visual Credit (OVC)}, a plug-in framework that separates visual-association measurement from token-level credit assignment and is adaptable to policy-optimization methods with uniform response-level advantage allocation. Relative Visual Encoding constructs a context-relative visual coordinate by contrasting each predictive state's affinity to image and prompt-context representations. Outcome-conditioned Evidence Calibration combines this coordinate with uncertainty-scaled predictive features and calibrates their contributions to outcome-discriminative evidence through mean contrasts between positive- and negative-advantage responses, scaled by regularized within-side variation. Visual association thus informs credit through observed outcome differences rather than directly determining update priority. Normalized Credit Allocation conditions the calibrated evidence on the response's advantage sign to produce positive token weights with unit global mean. These detached weights preserve advantage signs while modulating individual token-gradient contributions. OVC reuses existing rollouts without auxiliary reward models, process annotations, or inference-time modules. Instantiated through GSPO-token, OVC retains sequence-level clipping and consistently improves six-benchmark mean accuracy over GSPO across three models, with gains of 1.86-2.39 percentage points.

cs.AI↗

PointLAM: Local Attentive Mamba for Efficient Point-based 3D Object Detection

3D object detection from LiDAR point clouds faces a fundamental dilemma: voxel-based methods achieve efficiency at the cost of geometric quantization, while point-based methods preserve fidelity but suffer from prohibitive computational bottlenecks. Specifically, point-based architectures are crippled by slow downsampling strategies (e.g., FPS) and expensive dynamic neighbor queries (e.g., k-NN) coupled with costly continuous interactions. To tackle these systemic inefficiencies, we propose PointLAM, a highly efficient and powerful point-based architecture driven by two synergistic innovations. First, to resolve the downsampling bottleneck, we develop the Laplacian Point Sampler (LPS). LPS employs an implicit discrete Laplacian high-pass filter and Doubly Sorted Sampling to achieve fast, structure-aware foreground preservation. Second, to overcome local modeling latency, we design the Local Hadamard Aggregator (LHA). LHA decouples spatial indexing from feature representation using transient grids, and replaces complex continuous interactions with a Hadamard Gating mechanism for topology-aware, attentive modulation. By coupling this local gating with Bi-Directional Mamba (BDM) layers for global sequence modeling, we formulate the Local Attentive Mamba (LAM) block. Powered by this architecture, PointLAM achieves competitive performance on nuScenes and Waymo for point-based detectors. It rivals highly optimized voxel competitors while requiring a fraction of the computational footprint, demonstrating marked superiority in detecting small instances and handling extreme sparsity. Project page: https://pointlam.github.io/.

cs.CV↗

Octopus: History-Free Gradient Orthogonalization for Continual Learning in Multimodal Large Language Models

Continual learning in multimodal large language models (MLLMs) aims to sequentially acquire knowledge while mitigating catastrophic forgetting, yet existing methods face inherent limitations: architecture-based approaches incur additional computational overhead and often generalize poorly to new tasks, rehearsal-based methods rely on storing historical data, raising privacy and storage concerns, and conventional regularization-based strategies alone are insufficient to fully prevent parameter interference. We propose Octopus, a two-stage continual learning framework based on History-Free Gradient Orthogonalization (HiFGO), which enforces gradient-level orthogonality without historical task data. Our proposed two-stage finetuning strategy decouples task adaptation from regularization, achieving a principled balance between plasticity and stability. Experiments on UCIT show that Octopus establishes state-of-the-art performance, surpassing prior SOTA by 2.14% and 6.82% in terms of Avg and Last.

cs.LG↗

ACE-LoRA: Adaptive Orthogonal Decoupling for Continual Image Editing

State-of-the-art diffusion models often rely on parameter-efficient fine-tuning to perform specialized image editing tasks. However, real-world applications require continual adaptation to new tasks while preserving previously learned knowledge. Despite the practical necessity, continual learning for image editing remains largely underexplored. We propose ACE-LoRA, a dynamic regularization framework for continual image editing that effectively mitigates catastrophic forgetting. ACE-LoRA leverages Adaptive Orthogonal Decoupling to identify and orthogonalize task interference, and introduces a Rank-Invariant Historical Information Compression strategy to address scalability issues in continual updates. To facilitate continual learning in image editing and provide a standardized evaluation protocol, we introduce CIE-Bench, the first comprehensive benchmark in this domain. CIE-Bench encompasses diverse and practically relevant image editing scenarios with a balanced level of difficulty to effectively expose limitations of existing models while remaining compatible with parameter-efficient fine-tuning. Extensive experiments demonstrate that our method consistently outperforms existing baselines in terms of instruction fidelity, visual realism, and robustness to forgetting, establishing a strong foundation for continual learning in image editing.

cs.CV↗