MCP
HH

Haoqi He

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

Papers

14
Attention Sees, MLP Refuses: Tracing the Attention-to-MLP Safety Pathway in LLMs
Zixuan WengHaoqi HeWeifei JinYue HuangYang Bai
This paper reframes LLM safety failures as a pathway question, measuring within residual-stream updates how harmfulness recognition and refusal writing separately contribute. Across 18 Base-Instruct pairs and six reasoning-enabled models, attention updates expose harmfulness more readily (especially in early layers), while MLP updates drive harm-selective refusal writing, strengthened by post-training and concentrated in deeper layers. Causal interventions confirm this attention-to-MLP pathway. The authors introduce Sentinel, combining attention-derived perception and MLP-derived decision scores, whose joint routing lowers error across eight models versus single signals or fixed reminders.
arXivarXiv · · October 9, 2026
0
The Sampling Ceiling: Why Test-Time Self-Consistency Saturates and an Oracle Rule for Allocating Samples
Zhiqiang HaoHongming FeiHaoqi HeXinran ZhengChen XiongZhiyuan HeFan YangJunxian HuangJiaqi ZhuXiaokang ZhaoXiao Fu
This paper studies why test-time self-consistency saturates, distinguishing confidence in the current answer from the value of drawing more samples. In a modular-addition setting, 40 samples contain a correct answer on 95.34% of instances, yet voting accuracy converges to 63.32%. Modeling sampling as a systematic-stochastic mixture, the authors show that on some instances voting removes random errors while on others the model always repeats one wrong answer, so each added pair of samples yields diminishing majority-vote gains; a greedy oracle allocation is then optimal for equally weighted queries with known per-query mixture parameters. When these are unknown, Correlation-Aware Self-Consistency (CASC) uses labeled population data to score correctness and systematic-error risk, and the resulting accuracy/cost tradeoffs on GSM8K depend on the model.
OpenReviewOpenReview · September 16, 2026
0
CABRA: Cost-Aware Bayesian Rollout Allocation
Zhiqiang HaoFan YangChen XiongZhiyuan HeHaoqi HeJunxian HuangJiaqi ZhuXinran ZhengChuanyi LiXiaokang ZhaoXiao FuBin Luo
Cost-Aware Bayesian Rollout Allocation (CABRA) addresses the wasted computation in group-relative reinforcement learning when response groups have near-uniform rewards. Instead of discarding such groups or searching for replacements, CABRA fixes each prompt's response count before generation and, from past outcomes, estimates per expected token the probability that a group will mix correct and incorrect responses; a fixed number of top-ranked prompts receive full dense groups, while skipped prompts with past outcomes receive two-response refills if their expected token cost fits the remaining budget, with all groups generated once. On Qwen2.5-1.5B and GSM8K, CABRA uses 38.5% less LoRA backward-pass work than dense DAPO across five seeds with comparable mean correct answers (623.2 vs. 621.4 of 1,319), a non-significant difference; without refills, savings reach 52.2%, showing most savings come from limiting complete groups.
OpenReviewOpenReview · September 16, 2026
0
Safety Alignment with Adaptive Preference Weighting
Zhiqiang HaoJiaqi ZhuHaoqi HeZhiyuan HeXinran ZhengJunxian HuangFan YangChen XiongXiaokang ZhaoXiao FuChuanyi LiBin Luo
Adaptive Preference Weighting (APW) tracks harmful and benign preference losses separately during safety alignment and adjusts their coefficients within bounded intervals, rather than averaging a single loss. It scores responses by mean log probabilities relative to a frozen reference model and trains one adapter with the weighted loss; when training reuses the model's current errors, it caps each harmful category's share and clips example weights to prevent any category or example from dominating. Under matched base model, 5,333 ordered pairs, adapter budget, decoder, and evaluation pipeline, APW attains an Overall error of 18.20%, lower than all seven preference-optimization baselines, and also the lowest error (20.29%) on a 600-prompt extension subset.
OpenReviewOpenReview · September 16, 2026
0
EPIC-CIM: Training Convolutional Neural Networks on a Coherent Ising Machine via Equilibrium Propagation
Xingrui YinShenwei KangHaoqi HeYan XiaoHongdong ZhuHai WeiYin MaQi GaoXiaochun CaoKai Wen
This paper proposes EPIC-CIM, a framework for training convolutional neural networks on a Coherent Ising Machine. It reformulates network training as an energy minimization process using equilibrium propagation. The network energy combines convolutional feature matching, linear coupling, and global output constraints. Parameter updates are driven by the energy difference between free and weakly clamped phases, avoiding explicit gradient computation. This enables stable learning in non-differentiable, discrete quantum spaces.
arXivarXiv · · July 8, 2026
0
0
HERDS: : Multi-Key Fully Homomorphic Encryption with Sublinear Bootstrapping
Binwu XiangSeonhong MinIntak HwangZhiwei WangHaoqi HeYuanju WeiKang YangJiang ZhangYi DengYu Yu
HERDS is a new multi-key fully homomorphic encryption scheme whose central contribution is a bootstrapping framework that reduces the best-known complexity from $O(dkn)$ to $O(kn)$, and further to $O(\sqrt{kn})$ under parallelization, where $d$ is the gadget length (typically scaling with the number of parties $k$) and $n$ the LWE dimension. The framework converts a multi-key LWE ciphertext into $k$ vectorized RLWE ciphertexts through $k$ optimized blind rotations and $dk$ key-switching operations, then aggregates them into a single multi-key RLWE ciphertext via a hybrid accumulator. CPU and GPU implementations confirm practicality: for $k=16$, $3.3\times$ and $7.2\times$ CPU improvements over the schemes of Kwak et al. (PKC 2024) and Xiang et al. (ASIACRYPT 2024), and $195\times$ GPU acceleration over the CPU runtime. A new distributed-decryption protocol is also given as a byproduct, yielding a ciphertext with a small noise bound without blowing up parameters.
IACR ePrintIACR ePrint · October 2, 2025
0
6
Q-Detection: A Quantum-Classical Hybrid Poisoning Attack Detection Method
Haoqi HeXiaokai LinJiancai ChenYan Xiao
Q-Detection is a quantum-classical hybrid method that detects data poisoning attacks by introducing quantum computing's speedup into the task. It leverages a quantum-optimized weight adjustment network (Q-WAN) to identify poisoned samples. Experiments on quantum simulations show it defends against label manipulation and backdoor attacks, outperforming baselines and matching state-of-the-art, with theoretical expectation of over 20% speedup.
arXivarXiv · · July 7, 2025
0
4
HiQ-Lip: A Hierarchical Quantum-Classical Method for Global Lipschitz Constant Estimation of ReLU Networks
Haoqi HeYan XiaoWenzhi XuRuoying LiuXiaokai LinKai Wen
HiQ-Lip is a hybrid quantum-classical method for estimating the global Lipschitz constant of ReLU neural networks, a task that is NP-hard. The method reformulates the estimation as a Quadratic Unconstrained Binary Optimization (QUBO) problem and employs a hierarchical multilevel graph coarsening and refinement strategy to fit current quantum hardware. On two-layer fully connected networks with 256 hidden neurons, HiQ-Lip yields upper bounds comparable to the state-of-the-art SDP-based LiPopt while doubling the solving speed, demonstrating the potential of small-scale quantum devices for neural network robustness analysis.
arXivarXiv · · March 20, 2025
0
1
Probabilistic Quantum SVM Training on Ising Machine
Haoqi HeYan Xiao
This paper proposes a probabilistic quantum SVM training framework for Coherent Ising Machines (CIMs). It formulates SVM training as a QUBO model and uses a Boltzmann distribution to sample multiple solutions, improving robustness over binary optimal solutions. Batch and multi-batch ensemble strategies address qubit limitations, enabling training on larger datasets and multi-class classification via one-vs-one. On the banknote dataset, the CIM-based QSVM achieved up to 20% higher accuracy than the original QSVM, with training up to $10^4$ times faster than simulated annealing.
arXivarXiv · · March 20, 2025
0
5
Chameleon: An Efficient FHE Scheme Switching Acceleration on GPUs
Zhiwei WangHaoqi HeLutan ZhaoPeinan LiZhihao LiDan MengRui Hou
Chameleon accelerates GPU-based switching between CKKS and TFHE in hybrid FHE schemes. It proposes a scalable NTT design that adapts to different polynomial sizes through stage fusion, coefficient shuffling, and SM-aware combination to reduce synchronization. For critical switching operations, it introduces CMux-level parallelization for LUT evaluation and a homomorphic rotation-free matrix-vector multiplication to improve repacking efficiency. Chameleon achieves up to 4.87x speedup for TFHE gate bootstrapping over CPU and 1.51x over GPU, and 67.3x average speedup for scheme switching over CPU.
arXivarXiv · · October 8, 2024
0
10
HiQ-Lip: A Quantum-Classical Hierarchical Method for Global Lipschitz Constant Estimation of ReLU Networks
Haoqi HeYan XIAO
HiQ-Lip is a hybrid quantum-classical method using Coherent Ising Machines (CIMs) to estimate the global Lipschitz constant of ReLU networks. It converts the NP-hard estimation into a QUBO problem and employs multilevel graph coarsening and refinement to fit current quantum hardware. On fully connected neural networks, HiQ-Lip achieves estimates comparable to state-of-the-art SDP methods while significantly accelerating computation; in two-layer networks with 256 hidden neurons, it doubles the speed and yields tighter upper bounds than LiPopt.
OpenReviewOpenReview · September 27, 2024
0
Quantum Annealing and Graph Neural Networks for Solving TSP with QUBO
Haoqi He
This paper uses Quadratic Unconstrained Binary Optimization (QUBO) models to formulate the Travelling Salesman Problem (TSP) and solves them via two complementary approaches. Quantum Annealing (QA) on Coherent Ising Machines directly minimizes the QUBO objective, while a Graph Neural Network (QGNN-TSP) treats the QUBO as a loss function and learns approximate solutions through gradient descent. Experiments show that both methods yield competitive computation times against classical solvers, demonstrating the promise of combining deep learning with quantum-inspired optimization for NP-hard problems.
arXivarXiv · · February 21, 2024
0
HiQ-Lip: A Hierarchical Quantum-Classical Method for Global Lipschitz Constant Estimation of ReLU Networks
Haoqi HeYan XiaoWenzhi XuRuoying LiuXiaokai LinKai Wen
DBLP · AAAI 2026
0
Q-Detection: A Quantum-Classical Hybrid Poisoning Attack Detection Method
Haoqi HeXiaokai LinJiancai ChenYan Xiao
DBLP · IJCAI 2025
0
Frequent collaborators
Yan Xiao (6)
Xiaokai Lin (4)
Zhiqiang Hao (3)
Xinran Zheng (3)
Chen Xiong (3)
Zhiyuan He (3)
Fan Yang (3)
Junxian Huang (3)
Jiaqi Zhu (3)
Xiaokang Zhao (3)
Xiao Fu (3)
Kai Wen (3)