arXiv Science⌕ Search

arXiv subjects

Haorui Gao

Publications and source records attributed to Haorui Gao.

2 recordsLinked to original sources

GhostAPI-V: Evaluating Audited Diagnostics for Internal API Migration Repair

API migrations require callers to adopt target-version usages while removing incompatible legacy usages. GhostAPI-V represents these obligations as human-audited temporal contracts and supplies candidate-specific repair diagnostics, with correctness assessed by independent behavioral tests. We evaluate 48 internal migrations from eight Python repositories using Claude Code and Codex, with two initial runs per agent and task. Five revision arms branch from the same 192 initial candidates, controlling generation budget, version evidence, and development-test feedback. Hidden-test success is 120/192 (62.5%) for raw version-difference feedback, 130/192 (67.7%) for required-only contracts, and 148/192 (77.1%) for full bidirectional contracts. Full feedback improves over raw version-difference feedback and required-only feedback by 14.6 and 9.4 percentage points, respectively. The package-level effect is positive in all eight repositories and survives the reported repository sensitivity analyses; the forbidden increment is analysis-sensitive. Postfreeze challenges expose symbolic-behavioral disagreement. The results support the complete audited package beyond the same raw evidence and test failures, while leaving human interpretation, obligation wording, and checking entangled.

cs.SE↗

Scale-Separated Conditioning for Style-Encoder-Free Diffusion Stylization

Reference-based diffusion stylization requires separating target geometry from transferable appearance. Existing tuning-based methods often rely on aligned content-style-target triplets or auxiliary visual encoders, which increases data cost and can transfer unintended scene structure from the style reference. We propose SEFS (Style-Encoder-Free Stylization), a style-encoder-free conditioning framework for diffusion transformers. SEFS forms style tokens from stochastic low-resolution crops of single training images. This crop bottleneck preserves local appearance statistics such as palette, stroke, texture, and material, while reducing access to global layout cues. Target content is encoded by edge and segmentation cues and fused with the noisy latent through parameter-efficient trainable projections. We add style-to-denoising re-normalization for token-statistic alignment and cross-block skip fusion for spatial detail. SEFS trains on unpaired single images; the frozen diffusion VAE is used only to place image conditions in the latent space. On artistic stylization benchmarks, SEFS improves content consistency and leakage diagnostics while retaining reference-style affinity, and ablations support the crop-resolution, re-normalization, and skip-fusion choices. The code of SEFS will be made publicly available.

cs.CV↗