<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>LLM | Chang Nie</title><link>https://changnie.top/tags/llm/</link><atom:link href="https://changnie.top/tags/llm/index.xml" rel="self" type="application/rss+xml"/><description>LLM</description><generator>HugoBlox Kit (https://hugoblox.com)</generator><language>en-us</language><lastBuildDate>Sun, 19 Oct 2025 00:00:00 +0000</lastBuildDate><image><url>https://changnie.top/media/icon_hu_3dd7560279821d57.png</url><title>LLM</title><link>https://changnie.top/tags/llm/</link></image><item><title>MovSAM: A Single-image Moving Object Segmentation Framework Based on Deep Thinking</title><link>https://changnie.top/publications/movsam/</link><pubDate>Sun, 19 Oct 2025 00:00:00 +0000</pubDate><guid>https://changnie.top/publications/movsam/</guid><description>&lt;h2 id="a-photograph-contains-no-motion"&gt;A photograph contains no motion&lt;/h2&gt;
&lt;p&gt;Moving object segmentation is normally a measurement problem. You compare successive frames, or you compute optical flow, and the pixels that changed are the pixels that moved. The assumption is so standard that it stops being visible.&lt;/p&gt;
&lt;p&gt;It breaks in specific, practical ways. A pedestrian shifting their weight at the curb before stepping off produces almost no pixel change, and the intent is invisible to a frame-difference method. A vehicle&amp;rsquo;s own motion contaminates the comparison, since apparent movement in the image is a mixture of the other object&amp;rsquo;s motion and the camera&amp;rsquo;s own, and separating the two is not something a two-frame difference does. Occlusion makes pixel changes unreliable for anything partly hidden. And sometimes there is only one frame: if a camera fails or a communication link drops, the multi-frame pipeline does not degrade, it stops.&lt;/p&gt;
&lt;p&gt;There is also a simpler observation behind this work. A person looking at a photograph can usually point at the thing that is about to move. Not because they measured displacement, but because they read the scene: the posture, the contact, the loose fabric, the blur along an edge. The motion is inferred from semantics rather than observed from change.&lt;/p&gt;
&lt;p&gt;We wanted a system that could do that. Which means the temporal signal has to be replaced by something else, and language is the obvious candidate.&lt;/p&gt;
&lt;h2 id="what-earlier-methods-assume"&gt;What earlier methods assume&lt;/h2&gt;
&lt;p&gt;Optical-flow-based approaches use short-term motion cues to separate moving objects from static background. Generating accurate optical flow requires multiple frames, so it is not a substitute for frames. It consumes them.&lt;/p&gt;
&lt;p&gt;Multi-frame and video-based methods relate appearance to motion patterns and are genuinely effective. They also require either flow computations or temporal information from more than one frame, and on a single image they have nothing to work with.&lt;/p&gt;
&lt;p&gt;Segment Anything is the natural tool for the segmentation half, and it has two problems here. It was built for point and box prompts, and text prompts are not its native interface, so a bridge has to be constructed rather than configured. More fundamentally, SAM analyzes image texture. It has no scene comprehension, so it cannot tell you which texture is moving.&lt;/p&gt;
&lt;p&gt;The line of work that connects a multimodal language model to SAM for instructed segmentation is closer, and the distinction that matters is between recognizing and reasoning. Those methods enhance SAM with text and focus on identifying object categories. They answer what something is, not whether it is moving or whether the mask captured all of it. Generic open-vocabulary segmentation has a related blind spot: it does not address problems specific to motion, such as motion illusions, where appearance suggests movement that is not happening.&lt;/p&gt;
&lt;p&gt;And stacking an MLLM, SAM and a vision-language model together directly does not work either. That composition still produces inaccuracies from hallucinations or flawed reasoning, and it produces visible contradictions between what was predicted and what was expected. Building a loop that can notice and repair those contradictions is the part that had to be designed.&lt;/p&gt;
&lt;h2 id="what-makes-it-hard"&gt;What makes it hard&lt;/h2&gt;
&lt;p&gt;The deepest difficulty is that a still image contains no displacement information at all. Motion has to be inferred from static correlates, and those correlates are heuristics. A flowing effect in hair or clothing, motion blur along contours, an object suspended in mid-air without support, a pose resting on minimal support such as a single toe touching the ground: all of these suggest motion, and none of them prove it. The paper is explicit that the model identifies the moving object based on these features but not limited to them.&lt;/p&gt;
&lt;p&gt;Motion illusions follow directly. Appearance that suggests movement can be wrong, and genuine movement can look static.&lt;/p&gt;
&lt;p&gt;Ego-motion is unobservable in a single frame by construction. Nothing in one photograph distinguishes &amp;ldquo;they moved&amp;rdquo; from &amp;ldquo;I moved,&amp;rdquo; and no amount of reasoning recovers a distinction the data does not contain.&lt;/p&gt;
&lt;p&gt;There is also a representation mismatch at the centre of the architecture. SAM&amp;rsquo;s image embedding is spatially rich and semantically empty. A vision-language model&amp;rsquo;s features are semantic and spatially coarse. Something has to make SAM&amp;rsquo;s detail legible to the VLM without destroying it.&lt;/p&gt;
&lt;p&gt;Then there is the feedback problem, which is subtler than it first appears. For a loop to work, a mask has to be turned back into something the reasoner can critique. Not just whether the right object was chosen, but whether the mask is complete and whether it contains anything that does not belong. A prediction has to become an arguable claim.&lt;/p&gt;
&lt;p&gt;Finally, supervision barely exists. There is no dataset of single images labelled with the moving object, because the label is inherently a judgement. We had to construct the training data by filtering existing video datasets down to images where the moving object is clearly distinguishable.&lt;/p&gt;
&lt;h2 id="the-mask-as-something-you-can-argue-with"&gt;The mask as something you can argue with&lt;/h2&gt;
&lt;p&gt;Our idea is to replace the missing temporal measurement with an explicit linguistic hypothesis, and then make that hypothesis revisable.&lt;/p&gt;
&lt;p&gt;The loop has three parts. A reasoner looks at the scene and writes a sentence describing the object it believes is moving. That sentence is not a bare category label. It carries the category, the position and the motion, in the form of something like &amp;ldquo;A red ball is flying in the air, in the upper right corner of the frame.&amp;rdquo; A segmentation stack turns that sentence into a mask. Then the mask goes back to the reasoner as visual evidence, and the reasoner is allowed to change its mind.&lt;/p&gt;
&lt;p&gt;The last step is what makes this work. Reasoning about a still image is unreliable, and a single pass produces confident mistakes. Showing the result back closes the gap between what the model meant and what it produced.&lt;/p&gt;
&lt;p&gt;The prompt is generated under a chain-of-thought guide, which converts an under-specified open judgement into something closer to a checklist: observe the objects and their relations, attend to the plausible movers, apply the motion features above, then emit a prompt or conclude that nothing is moving. The guide is hand-authored, and we did not test alternatives against it. That is a limitation we accept rather than hide.&lt;/p&gt;
&lt;h2 id="turning-language-into-pixels-cross-modal-feature-aggregation"&gt;Turning language into pixels: Cross-modal feature aggregation&lt;/h2&gt;
&lt;p&gt;The segmentation network takes the prompt and the image together and produces the mask. SAM2 is the core, and we keep its image encoder and mask decoder because they are well suited to the job. We add BEiT-3 features because SAM&amp;rsquo;s weakness is exactly semantic understanding, and the vision-language model supplies what it lacks. The prompt encoder is modified so that the VLM&amp;rsquo;s multimodal features can serve as a prompt directly, rather than being squeezed into a spatial point or bounding box.&lt;/p&gt;
&lt;p&gt;The feature aggregation network is our answer to the representation mismatch, and it runs in the direction people usually do not expect. Instead of trying to make SAM semantic, we give the VLM SAM&amp;rsquo;s spatial detail.&lt;/p&gt;
&lt;p&gt;Let $F_{\text{sam}} \in \mathbb{R}^{H \times W \times C_s}$ denote SAM2&amp;rsquo;s high-resolution spatial feature map. The aggregation network $\Phi_{\text{agg}}$ applies five convolutional layers with residual bottlenecks followed by adaptive spatial pooling and a linear projection, extracting a compressed global context descriptor:&lt;/p&gt;
$$
\mathbf{v}_{\text{ctx}} = \Phi_{\text{agg}}(F_{\text{sam}}) \in \mathbb{R}^{C_v}.
$$&lt;p&gt;This global descriptor is broadcast and concatenated across every spatial location of the visual embedding:&lt;/p&gt;
$$
\tilde{F}_{\text{sam}} = \left[ F_{\text{sam}}, \; \operatorname{tile}(\mathbf{v}_{\text{ctx}}, H \times W) \right] \in \mathbb{R}^{H \times W \times (C_s + C_v)}.
$$&lt;p&gt;The augmented representation is fed alongside prompt tokens $T_{\text{beit}} \in \mathbb{R}^{L \times D}$ into bidirectional cross-attention layers. Removing this aggregation pathway degrades validation performance noticeably, confirming that cross-modal feature alignment is functionally active rather than merely cosmetic.&lt;/p&gt;
&lt;p&gt;
&lt;figure id="figure-movsam-uses-scene-semantics-and-appearance-to-infer-likely-moving-objects-from-one-image"&gt;
&lt;div class="flex justify-center"&gt;
&lt;div class="w-full"&gt;&lt;img
alt="Single-image segmentation in real scenes with missing temporal evidence."
srcset="https://changnie.top/publications/movsam/real-world_hu_fdd3e3d84b35e7e.webp 320w, https://changnie.top/publications/movsam/real-world_hu_8b117b5a9a447be8.webp 480w, https://changnie.top/publications/movsam/real-world_hu_97190992ddd4bf6a.webp 768w, https://changnie.top/publications/movsam/real-world_hu_5848f1e99d66c1c.webp 1024w, https://changnie.top/publications/movsam/real-world_hu_2898729165f47d62.webp 1080w"
sizes="(max-width: 480px) 100vw, (max-width: 768px) 90vw, (max-width: 1279px) 88vw, 928px"
src="https://changnie.top/publications/movsam/real-world_hu_fdd3e3d84b35e7e.webp"
width="1080"
height="408"
loading="lazy"
data-zoomable&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;a class="paper-image-original" href="https://changnie.top/publications/movsam/real-world_hu_3c2a3dfb1be8e7d9.webp" target="_blank" rel="noopener"&gt;View full-size image ↗&lt;/a&gt;
&lt;figcaption&gt;MovSAM uses scene semantics and appearance to infer likely moving objects from one image.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;h2 id="the-reasoning-loop-propose-segment-critique"&gt;The reasoning loop: Propose, segment, critique&lt;/h2&gt;
&lt;p&gt;The critique stage has its own guided procedure. Given the original image with the candidate mask overlaid, the multimodal reasoner executes a four-point verification protocol:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Object Identity &amp;amp; Attribution&lt;/strong&gt;: Does the segmented boundary correspond cleanly to the entity identified in the prompt?&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Physical Motion Plausibility&lt;/strong&gt;: Does the entity exhibit unambiguous static motion heuristics (unbalanced dynamic pose, airborne suspension, motion blur, directionally trailing fabric/hair)?&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Segmentation Completeness&lt;/strong&gt;: Has any contiguous functional part of the moving entity (extended limbs, carried equipment, attached garments) been erroneously severed from the mask?&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Mask Purity&lt;/strong&gt;: Has any non-moving background structure (road surface, cast contact shadows, adjacent stationary furniture) been incorrectly absorbed into the mask?&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Notice that completeness and purity are separate questions from correctness. A mask can cover the right object and still be a bad answer.&lt;/p&gt;
&lt;p&gt;When the reasoner rejects the result, it rewrites the prompt and the mask is regenerated. When it accepts, it must provide an explicit physical rationale. The published example illustrates how much work the loop accomplishes. The first prompt asks for the runner on the right side of the image, and the reasoner rejects it: that runner is in mid-stride but grounded and secondary. The second prompt targets the primary moving subject, identifying an upside-down breakdancer in the center. That proposal is accepted, justified by the physical observation that the dancer is inverted in mid-air with minimal support contact and impending rotational displacement.&lt;/p&gt;
&lt;p&gt;That exchange embodies the architecture in miniature: the initial output was plausible but suboptimal; the second revision emerged directly from visually critiquing the concrete artifacts of the first pass.&lt;/p&gt;
&lt;p&gt;We cap the reasoning loop at five iterations and terminate upon acceptance. If the budget expires without convergence, the candidate with highest verification confidence is selected.&lt;/p&gt;
&lt;p&gt;
&lt;figure id="figure-because-each-frame-is-processed-independently-occlusion-does-not-propagate-errors-across-time"&gt;
&lt;div class="flex justify-center"&gt;
&lt;div class="w-full"&gt;&lt;img
alt="Segmentation examples with occlusion and fine boundaries."
srcset="https://changnie.top/publications/movsam/occlusion-sequence_hu_a8bef3682e30af07.webp 320w, https://changnie.top/publications/movsam/occlusion-sequence_hu_ee73a7e961fb26a.webp 480w, https://changnie.top/publications/movsam/occlusion-sequence_hu_22ad7e4717be5865.webp 768w, https://changnie.top/publications/movsam/occlusion-sequence_hu_ea4d44652760c68e.webp 1024w, https://changnie.top/publications/movsam/occlusion-sequence_hu_bf80be13c0d163d8.webp 1080w"
sizes="(max-width: 480px) 100vw, (max-width: 768px) 90vw, (max-width: 1279px) 88vw, 928px"
src="https://changnie.top/publications/movsam/occlusion-sequence_hu_a8bef3682e30af07.webp"
width="1080"
height="210"
loading="lazy"
data-zoomable&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;a class="paper-image-original" href="https://changnie.top/publications/movsam/occlusion-sequence_hu_82f335a5de7d31cc.webp" target="_blank" rel="noopener"&gt;View full-size image ↗&lt;/a&gt;
&lt;figcaption&gt;Because each frame is processed independently, occlusion does not propagate errors across time.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;h2 id="what-is-and-is-not-trained"&gt;What is and is not trained&lt;/h2&gt;
&lt;p&gt;The SAM image encoder remains frozen, preserving its pre-trained visual primitives without incurring massive training overhead. The vision-language model, feature aggregation module, prompt encoder adapter, and mask decoder are jointly optimized for moving object segmentation. The high-level multimodal language model runs off-the-shelf in zero-shot mode without parameter fine-tuning, preserving its general reasoning and linguistic breadth.&lt;/p&gt;
&lt;p&gt;The training objective combines balanced soft Dice overlap with focal binary cross-entropy:&lt;/p&gt;
$$
\mathcal{L}_{\text{seg}} = \lambda_{\text{dice}} \mathcal{L}_{\text{dice}}(M_{\text{pred}}, M_{\text{gt}}) + \lambda_{\text{focal}} \mathcal{L}_{\text{focal}}(M_{\text{pred}}, M_{\text{gt}}).
$$&lt;p&gt;The soft Dice loss penalizes boundary and spatial volume discrepancies:&lt;/p&gt;
$$
\mathcal{L}_{\text{dice}} = 1 - \frac{2 \sum_{i} m_i \hat{m}_i + \epsilon}{\sum_i m_i + \sum_i \hat{m}_i + \epsilon},
$$&lt;p&gt;while the focal loss counteracts extreme foreground-background class imbalance where dynamic targets occupy an extremely small fraction of the image frame:&lt;/p&gt;
$$
\mathcal{L}_{\text{focal}} = - \sum_{i} \alpha_t (1 - p_{t, i})^\gamma \log(p_{t, i}).
$$&lt;p&gt;In practice, this composite formulation provides superior boundary sharpness and training stability compared to either loss alone.&lt;/p&gt;
&lt;h2 id="what-we-take-from-this"&gt;What we take from this&lt;/h2&gt;
&lt;p&gt;Text is a usable control channel for frozen foundation models. A prompt can carry category, position and a motion verb at once, which is far richer than a class label and requires no retraining at all.&lt;/p&gt;
&lt;p&gt;The awkward representation mismatch has a clean resolution that runs against intuition: feed spatial detail into the semantic model rather than trying to make the spatial model semantic.&lt;/p&gt;
&lt;p&gt;Making the output criticisable is the generalizable trick. It applies to any task where the supervision signal is a judgement rather than a measurement, and where a plausible wrong answer is the main failure mode.&lt;/p&gt;
&lt;p&gt;And it is worth noticing that the composition itself can be the contribution. We say this plainly in the paper rather than pretending otherwise. The novelty is in the loop and in the way the parts are connected, not in any single component.&lt;/p&gt;
&lt;p&gt;One more practical note. The training set was filtered down to images where the moving object is clearly distinguishable, which means the supervision concentrates exactly where static inference is easiest. We state the filter and we do not resolve the tension it creates.&lt;/p&gt;
&lt;p&gt;
&lt;figure id="figure-qualitative-comparison-of-single-image-moving-object-segmentation"&gt;
&lt;div class="flex justify-center"&gt;
&lt;div class="w-full"&gt;&lt;img
alt="The language prompt carries category, position and motion together."
srcset="https://changnie.top/publications/movsam/benchmark-results_hu_4d94e4217ff1f0cd.webp 320w, https://changnie.top/publications/movsam/benchmark-results_hu_96332d1ae8662b09.webp 480w, https://changnie.top/publications/movsam/benchmark-results_hu_10c4bea432cc968e.webp 768w, https://changnie.top/publications/movsam/benchmark-results_hu_4ad3ec365e4d4267.webp 1024w, https://changnie.top/publications/movsam/benchmark-results_hu_dffb249ef0fcb1a9.webp 1080w"
sizes="(max-width: 480px) 100vw, (max-width: 768px) 90vw, (max-width: 1279px) 88vw, 928px"
src="https://changnie.top/publications/movsam/benchmark-results_hu_4d94e4217ff1f0cd.webp"
width="1080"
height="343"
loading="lazy"
data-zoomable&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;a class="paper-image-original" href="https://changnie.top/publications/movsam/benchmark-results_hu_e77a1f793974da7d.webp" target="_blank" rel="noopener"&gt;View full-size image ↗&lt;/a&gt;
&lt;figcaption&gt;Qualitative comparison of single-image moving object segmentation.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;h2 id="what-this-opens"&gt;What this opens&lt;/h2&gt;
&lt;p&gt;Single-image moving object segmentation is worth treating as its own problem rather than as a degraded video task. Recovering temporal information from one image is a capability we think has independent value, and it changes what a robot can do when its perception stream is degraded rather than healthy.&lt;/p&gt;
&lt;p&gt;The reasoning mechanism is also portable. Any task that needs logical inference over a scene from a large model, including cross-modal settings such as reasoning about the relationships between objects in an image and a point cloud, could use the same propose, segment, critique structure.&lt;/p&gt;
&lt;p&gt;The application we care most about is the one we started from. A robot that receives an isolated image, because a link dropped or a sensor failed, can still form an object-level interpretation of what is moving and what to watch. The paper&amp;rsquo;s closing claim is that this makes systems more robust in exactly the situations where conventional methods stop working.&lt;/p&gt;</description></item></channel></rss>