MCP
CS

Chenhao Sun

20 papers in the library · Same-name authors told apart using DBLP

Papers

20
Coding Agents Propagate Vulnerabilities in Code Bases
Chenhao SunNiels Mündler-SasaharaMark VeroMartin Vechev
This paper studies whether vulnerable existing code leads LLM-based coding agents to write similarly vulnerable code. Across backend application generation (96 tasks) and memory-critical C/C++ repository-level coding (20 task pairs), insecure contexts increased the rate of vulnerable agent output, with gaps up to 35.4%. Prompting agents to imitate existing style amplified the effect while security warnings reduced it, but neither fully prevented propagation. Agents attributed choices to following another code site in 76.5% of cases yet often recognized the vulnerability, suggesting existing vulnerabilities serve as templates, degrading code-base security as agents write more production code.
arXivarXiv · · November 8, 2026
0
Optimizing the Cost-Quality Tradeoff of Agentic Theorem Provers in Lean
Kári RögnvaldssonChenhao SunJasper DekoninckMartin Vechev
This work introduces an action routing agent for Lean theorem proving that improves the cost-quality tradeoff by splitting the task into a data plane and a control plane. The data plane generates natural-language lemma decompositions, formalizes them in Lean, and samples proof attempts for the resulting targets; the control plane instead observes previous failed Lean attempts, estimates both the likelihood of success and the cost of another attempt, and decides whether to keep proving the current target or restart from a new breakdown. On a subset of PutnamBench, this agent lowers cost by 28.2% on average over a fixed-step baseline while preserving performance, indicating that failed Lean trajectories offer actionable signals for cost-aware resource allocation.
arXivarXiv · · June 3, 2026
0
3
OmniCD: A Foundational Framework for Remote Sensing Image Change Detection Guided by Multimodal Semantics
Chenhao Sun
OmniCD unifies remote sensing change detection (CD) under a single architecture guided by multimodal semantics. It accepts image and text prompts (e.g., descriptions, semantic maps, geospatial metadata) to handle tasks from binary CD to zero-shot semantic change understanding. A style disentanglement mechanism improves cross-domain robustness. The authors also introduce RSITCD, a dataset of 300K+ annotated image-text pairs. OmniCD achieves state-of-the-art performance across benchmarks, providing a general-purpose CD framework.
arXivarXiv · · May 28, 2026
0
Optimizing the Cost-Quality Tradeoff of Agentic Theorem Provers in Lean
Kári RögnvaldssonChenhao SunJasper DekoninckMartin Vechev
This paper introduces an action routing agent for LLM-based theorem proving in Lean that optimizes the cost-quality tradeoff. It separates into a data plane (for lemma decomposition, formalization, and sampling proof attempts) and a control plane, which uses feedback from failed Lean attempts to estimate success likelihood and cost, deciding whether to continue or restart. On PutnamBench, it reduces cost by 28.9% over a fixed-step baseline while preserving performance, showing failed trajectories guide cost-aware resource allocation.
OpenReviewOpenReview · · May 26, 2026
0
Beyond Benchmarks: MathArena as an Evaluation Platform for Mathematics with LLMs
Jasper DekoninckNikola JovanovićTim GehrungerKári RögnvaldssonIvo PetrovChenhao SunMartin Vechev
MathArena, originally a single benchmark, is broadened into a continuously maintained evaluation platform for mathematical reasoning with LLMs, moving beyond saturating static benchmarks. It covers proof-based competitions, research-level arXiv problems, and formal proof generation in Lean, with a clear protocol and regular benchmark additions as models improve. Demonstrating frontier capability, GPT-5.5 reaches 98% on the 2026 USA Math Olympiad and 74% on research-level questions, underscoring the need for such evolving platforms to track progress.
OpenReviewOpenReview · · May 13, 2026
0
Beyond Benchmarks: MathArena as an Evaluation Platform for Mathematics with LLMs
Jasper DekoninckNikola JovanovićTim GehrungerKári RögnvaldssonIvo PetrovChenhao SunMartin Vechev
The paper extends the original MathArena benchmark into a continuously maintained evaluation platform for research mathematics with LLMs, arguing that static benchmarks, being narrow, quickly saturated, and rarely updated, cannot reliably compare models or track progress over time. The platform therefore regularly evaluates new models, reviews their execution, and publishes analyses that feed back into benchmark and protocol updates. It comprises three research benchmarks: ArXivMath for final-answer questions, BrokenArXiv for responses to false mathematical claims, and ArXivLean for formal proof generation in Lean. Currently, GPT-6.1 Sol leads, reaching 80.6% expected performance on the non-deprecated benchmarks.
arXivarXiv · · May 1, 2026
0
127
Dual Randomized Smoothing: Beyond Global Noise Variance
Chenhao SunYuhao MaoMartin Vechev
Randomized Smoothing (RS) certifies neural-network robustness against adversarial perturbations, but a single global noise variance cannot achieve strong certified accuracy at both small and large radii. This paper introduces dual RS, which permits input-dependent noise variances. The authors prove RS remains valid when the variance is locally constant around each input, then use a variance estimator, itself independently smoothed, to predict an optimal variance per input that a standard RS classifier employs. Training strategies jointly optimize both components. On CIFAR-10 and ImageNet, dual RS outperforms prior input-dependent approaches across most radii, with notable accuracy gains, while adding only 60% inference overhead.
arXivarXiv · · December 1, 2025
0
0
Vehicle-Mounted Mid-Infrared Dual-Comb Spectroscopy for On-Road Trace Gas Detection
Xutian JingKaiwen WeiXiong QinJunwei LiXingyin YangZhaoting HuangJianping ZhangChenhao SunChenyu LiuZejiang DengZhiwei ZhuDaping Luo  +3
This paper reports the first vehicle-mounted mid-infrared dual-comb spectroscopy system that continuously samples atmospheric trace gases while moving. The system maintained stable signal-to-noise performance during on-road driving at up to 100 km/h, and was used to locate natural-gas leakage sources and reconstruct a two-dimensional methane concentration field around a controlled release. The demonstration shows that dual-comb spectroscopy can be deployed on a mobile platform for trace gas detection in realistic outdoor environments.
arXivarXiv · · November 25, 2025
1
0
Don't Think of the White Bear: Ironic Negation in Transformer Models Under Cognitive Load
Logan MannNayan SaxenaSarah TandonChenhao SunSavar TotejaKevin Zhu
Transformer models exhibit ironic rebound, where negating a concept (e.g., "do not mention $X$") paradoxically increases its accessibility. This paper shows that rebound arises immediately after negation and intensifies with longer or semantic distractors, while repetition supports suppression. Stronger separation between neutral and negative framings of the same concept predicts more persistent rebound. A circuit tracing analysis identifies sparse middle-layer attention heads that amplify forbidden tokens, while early layers suppress them, linking human cognitive predictions to mechanistic long-context interference. The ReboundBench dataset (5,000 prompts) is released for future probing.
arXivarXiv · · November 15, 2025
0
6
Dual Randomized Smoothing: Beyond Global Noise Variance
Chenhao SunYuhao MaoMartin Vechev
Randomized Smoothing (RS) normally uses a global noise variance, which cannot achieve strong certified robustness at both small and large radii simultaneously. This paper proposes dual RS, an input-dependent variance framework. It proves RS remains valid when the variance is locally constant around each input, then uses a variance estimator (itself smoothed via RS) to predict per-input variance for a standard RS classifier. Efficient training optimizes both components. Experiments on CIFAR-10 and ImageNet show improved accuracy-robustness trade-offs, outperforming prior input-dependent approaches, with modest inference overhead.
OpenReviewOpenReview · · September 16, 2025
0
Don’t Think of the White Bear: Ironic Negation in Transformer Models under Cognitive Load
Logan MannNayan SaxenaSarah TandonChenhao SunSavar TotejaKevin Zhu
In a study of negation in transformer models, the authors introduce ReboundBench, a dataset of 5,000 varied negation prompts, to probe ironic rebound—the paradox that instructing a model not to mention X can increase its accessibility. Experiments varying distractor types show rebound emerges immediately after negation, intensifies with longer or semantic distractors while repetition suppresses it, and stronger polarity separation between neutral and negative framings predicts more persistent rebound. Circuit tracing identifies sparse middle-layer attention heads amplifying forbidden tokens, linking cognitive predictions to mechanistic long-context interference.
OpenReviewOpenReview · · August 28, 2025
0
Average Certified Radius is a Poor Metric for Randomized Smoothing
Chenhao SunYuhao MaoMark Niklas MuellerMartin Vechev
Randomized smoothing (RS) certifies robustness against adversarial attacks, and the average certified radius (ACR) is widely used to track progress. This paper shows, for the first time, that ACR is a poor metric: it can be arbitrarily large for a trivial classifier, is overly sensitive to easy samples, and depends heavily on the certification budget. Empirically, methods that improve ACR consistently reduce robustness on hard samples; the authors reproduce state-of-the-art CIFAR-10 ACR without robustness training on the full distribution, recommending instead the empirical distribution of $p_A$, the base model's accuracy on noisy data, as an alternative.
OpenReviewOpenReview · January 22, 2025
0
Average Certified Radius is a Poor Metric for Randomized Smoothing
Chenhao SunYuhao MaoMark Niklas MuellerMartin Vechev
Randomized smoothing provides certified robustness against adversarial attacks, and the average certified radius (ACR) has become the dominant metric for comparing methods. This paper shows that ACR is a poor metric: theoretically, a trivial classifier can achieve arbitrarily large ACR, and ACR is disproportionately sensitive to easy samples. Empirically, training strategies that boost ACR—such as discarding hard samples, reweighting data by certified radius, and extreme optimization on easy samples—reach state-of-the-art ACR while ignoring robustness for the general distribution, confirming an undesired bias and the need for better metrics.
OpenReviewOpenReview · September 26, 2024
0
Integrated Dynamic Phenological Feature for Remote Sensing Image Land Cover Change Detection
Yi LiuChenhao SunHao YeXiangying LiuWeilong Ju
Land cover change detection from remote sensing images is challenged by pseudo-changes caused by intra-class phenological dynamics. The InPhea model integrates a detector with a differential attention module for better change feature representation and a constrainer with four constraint modules using multi-stage contrastive learning to capture phenological regularities. Experiments on HRSCD, SECD, and PSCD-Wuhan datasets show InPhea outperforms existing models, confirming its effectiveness in filtering phenological pseudo-changes.
arXivarXiv · · August 8, 2024
0
DeepAngle: Fast calculation of contact angles in tomography images using deep learning
Arash RabbaniChenhao SunMasoud BabaeiVahid J. NiasarRyan T. ArmstrongPeyman Mostaghimi
DeepAngle uses deep learning to estimate contact angles of phases in 3-D tomography images of porous materials directly, bypassing the costly surface-vectorization step required by traditional methods. The network takes image voxels as input and outputs angles, improving the $r^2$ score by 5–16% over the direct measurement technique while reducing computational cost by a factor of 20. This makes it suitable for large and time-resolved tomography datasets.
arXivarXiv · · November 28, 2022
0
16
Universal description of wetting on multiscale surfaces using integral geometry
Chenhao SunJames McClureSteffen BergPeyman MostaghimiRyan T. Armstrong
By coupling integral geometry with thermodynamics, this work develops a universal wetting description for multiscale surfaces that is not tied to any specific wetting state. The framework separates hierarchical physical levels from thermodynamic description, recovers the classical Wenzel, Cassie-Baxter, and wicking models as limiting cases, and introduces a topological wetting metric of purely geometrical origin. Direct simulations of droplets on rough and chemically heterogeneous surfaces validate the approach, which applies to any complex fluid topology and multiscale surface.
arXivarXiv · · August 21, 2021
0
39
Two-Way Passive Beamforming Design for RIS-Aided FDD Communication Systems
Bei GuoChenhao SunMeixia Tao
This paper proposes a two-way passive beamforming design for RIS-aided FDD systems, where the same RIS reflection coefficients must serve both downlink and uplink. The authors jointly optimize transmit/receive beamformers at the base station and RIS coefficients to maximize the weighted sum of downlink and uplink rates, developing a manifold optimization algorithm to find a stationary solution. Simulations show that this approach significantly enlarges the achievable rate region compared to heuristic one-way designs like time-sharing and phase-averaging.
arXivarXiv · · January 25, 2021
0
28
Characterization of wetting using topological principles
Chenhao SunJames E. McClurePeyman MostaghimiAnna L. HerringDouglas E. MeisenheimerDorthe WildenschildSteffen BergRyan T. Armstrong
This paper introduces a macroscopic contact angle based on a topological principle, namely the deficit curvature of fluid interfaces imposed by contacts with immiscible phases, as a robust alternative to the traditional geometric contact angle for characterizing wetting. The approach, grounded in the Gauss-Bonnet theorem, is shown via variational analysis to be consistent with thermodynamics under simple conditions. Using sessile droplet simulations and multiphase experiments on porous media, the authors demonstrate that at high resolution, this topological measure matches local contact angle measurements, but at lower resolution it provides more accurate results by being robust to resolution-based effects. This work offers a new pathway for characterizing wetting in complex systems.
arXivarXiv · · May 6, 2020
0
73
Linking continuum-scale state of wetting to pore-scale contact angles in porous media
Chenhao SunJames E. McClurePeyman MostaghimiAnna L. HerringMehdi ShabaninejadSteffen BergRyan T. Armstrong
The paper applies the Gauss-Bonnet theorem to derive a direct link between continuum-scale capillary pressure–saturation $P_c(S_w)$ data and pore-scale contact angle distributions in porous media. Using measurements in sandstone and Lattice Boltzmann simulations, the authors show that the mean pore-scale contact angle can be predicted from petrophysical data, providing a framework that connects continuum-scale wetting state (e.g., USBM index) to the geometrical state of immiscible fluids at the pore scale.
arXivarXiv · · October 1, 2019
0
68
PrivSV: Differentially Private Steering Vector for Large Language Models
Haocheng YangXiang Cheng 0003Chenhao SunPengfei Zhang 0010Sen Su
DBLP · AAAI 2026
0
1
Frequent collaborators
Martin Vechev (9)
Kári Rögnvaldsson (4)
Jasper Dekoninck (4)
Yuhao Mao (4)
Ryan T. Armstrong (4)
Peyman Mostaghimi (4)
Steffen Berg (3)
Nikola Jovanović (2)
Tim Gehrunger (2)
Ivo Petrov (2)
Logan Mann (2)
Nayan Saxena (2)