Layout-to-image (L2I) generation for remote sensing imagery requires realistic small objects aligned with prescribed oriented bounding boxes (OBBs). However, global box descriptions in prior L2I methods leave local geometry within image-token regions implicit. Coarse, uniform latent grids may also represent small objects with only one or a few image tokens. Together, these constraints hinder the generation of small objects with accurate shapes and orientations. To address these limitations, we present GeoGrain, a granularity-aware L2I framework for precise small-object control in remote sensing imagery. GeoGrain introduces (i) Granularity-Aware Geometry Encoding (GAGE), which constructs layout tokens from global OBB descriptions with local geometric conditions at image-token positions, and (ii) Granularity-Aware Token Expansion (GATE), which subdivides image-token grid cells overlapping the input OBBs, producing finer image tokens while retaining coarse tokens elsewhere. GAGE encodes local OBB geometry on the resulting mixed-resolution grid, aligning each layout token with its corresponding image token. Experiments on the oriented small-object detection datasets SODA-A and AI-TOD-R demonstrate state-of-the-art layout fidelity alongside high generation quality. On these datasets, GeoGrain improves AP over the strongest baseline by 18.6 and 6.3 points, respectively, reaching AP comparable to that measured on real images. Data augmentation with our generated images also improves downstream detection and outperforms augmentation with images from the baselines.
Industrial Anomaly Detection (IAD) has evolved from 2D image-based approaches to multi-modal methods that leverage the complementary nature of RGB images and 3D point clouds. Among these, memory bank-based methods, which identify anomalies by the discrepancy between each query patch feature and its nearest normal prototype, have proven particularly effective. However, two limitations remain: (i) employing frozen pretrained encoders yields insufficient discrimination between normal and anomalous features due to the domain gap, while existing contrastive learning-based adaptation struggles to capture the spatial relationships required for precise localization; and (ii) pixel-level anomaly maps interpolated from patch-level distance scores remain coarse, lacking fine-grained detail. To address these limitations, we propose EPAR (Embedding Predictive Adaptation and Refinement). We adapt encoders by predicting the embeddings of masked regions to capture spatial relationships, together with patch-level Variance-Invariance-Covariance (VIC) regularization, resolving the poor discriminability between normal and anomalous features caused by the domain gap. We further propose a Noise Suppression Network that refines coarse maps by learning the relational discrepancy between each patch feature and its nearest normal prototype, rather than the anomaly's appearance. This relational signal remains valid for unseen real defects, despite being learned from synthetic anomalies. EPAR demonstrates strong practical applicability, excelling in few-shot settings and improving AUPRO@1% on MVTec 3D-AD and Eyecandies by +1.8% and +1.9%, respectively.