rref
From Dilution to Alignment: Understanding and Mitigating Long-Context Safety Degradation
Guan, Jiyang, Chu, Zhixuan, Xie, Yong, Tao, Jialing, Xue, Hui, Ren, Kui
As large language models (LLMs) become more capable, their safety risks become increasingly consequential. Existing safety research has focused primarily on short-context settings, leaving long-context safety alignment largely underexplored. Prior studies show that model safety degrades markedly as inputs grow longer, even when the surrounding context is entirely benign. We use safety-vector projection to trace this degradation through the attention and MLP pathways. Our analysis identifies two coupled mechanisms: input-side risk dilution, which reduces attention to risky queries, and downstream safety-perception decline in MLP layers. Guided by these findings, we propose SALSA (Safety-Aware Long-context Self-distillation Alignment). Its first component, Safety-Aware Group Sequence Policy Optimization (SA-GSPO), strengthens safety perception through response-level safety judgment. Its second component, Segment Summary On-Policy Self-Distillation (SS-OPSD), re-encodes diluted risk in segment summaries generated within reasoning and distills this behavior into a prompt-free policy. An exponential moving average (EMA) anchor on benign samples helps preserve response rates and general capabilities. Extensive experiments show that SALSA substantially improves long-context safety over Plain GSPO baselines and mitigates length-induced safety degradation, bringing long- and short-context safety rates into close agreement. General capability and response rates remain largely unaffected in both long- and short-context settings. Further mechanistic analysis also confirms that SALSA alleviates the attention- and MLP-level failures underlying long-context safety degradation.
Collaborative target-tracking control using multiple autonomous fixed-wing UAVs with constant speeds
Sun, Zhiyong, de Marina, Hector Garcia, Anderson, Brian D. O., Yu, Changbin
This paper considers a collaborative tracking control problem using a group of fixed-wing unmanned aerial vehicles (UAVs) with constant and non-identical speeds. The dynamics of fixed-wing UAVs are modelled by unicycle-type equations with nonholonomic constraints, assuming that UAVs fly at constant altitudes in the nominal operation mode. The controller is designed such that all fixed-wing UAVs as a group can collaboratively track a desired target's position and velocity. We first present conditions on the relative speeds of tracking UAVs and the target to ensure that the tracking objective can be achieved when UAVs are subject to constant speed constraints. We construct a reference velocity that includes both the target's velocity and position as feedback, which is to be tracked by the group centroid. In this way, all vehicles' headings are controlled such that the group centroid follows a reference trajectory that successfully tracks the target's trajectory. A spacing controller is further devised to ensure that all vehicles stay close to the group centroid trajectory. Trade-offs in the controller design and performance limitations of the target tracking control due to the constant-speed constraint are also discussed in detail. Experimental results with three fixed-wing UAVs tracking a target rotorcraft are provided.
Analysis of Shuffling Beyond Pure Local Differential Privacy
Shuffling is a powerful way to amplify privacy of a local randomizer in private distributed data analysis. Most existing analyses of how shuffling amplifies privacy are based on the pure local differential privacy (DP) parameter $\varepsilon_0$. This paper raises the question of whether $\varepsilon_0$ adequately captures the privacy amplification. For example, since the Gaussian mechanism does not satisfy pure local DP for any finite $\varepsilon_0$, does it follow that shuffling yields weak amplification? To solve this problem, we revisit the privacy blanket bound of Balle et al. (the blanket divergence) and develop a direct asymptotic analysis that bypasses $\varepsilon_0$. Our key finding is that, asymptotically, the blanket divergence depends on the local mechanism only through a single scalar parameter $χ$ and that this dependence is monotonic. Therefore, this parameter serves as a proxy for shuffling efficiency, which we call the shuffle index. By applying this analysis to both upper and lower bounds of the shuffled mechanism's privacy profile, we obtain a band for its privacy guarantee through shuffle indices. Furthermore, we derive a simple structural, necessary and sufficient condition on the local randomizer under which this band collapses asymptotically. $k$-RR families with $k\ge3$ satisfy this condition, while for generalized Gaussian mechanisms the condition may not hold but the resulting band remains tight. Finally, we complement the asymptotic theory with an FFT-based algorithm for computing the blanket divergence at finite $n$, which offers rigorously controlled relative error and near-linear running time in $n$, providing a practical numerical analysis for shuffle DP.
FedLAD: A Linear Algebra Based Data Poisoning Defence for Federated Learning
Xiong, Qi, Dong, Hai, Sohrabi, Nasrin, Tari, Zahir
Sybil attacks pose a significant threat to federated learning, as malicious nodes can collaborate and gain a majority, thereby overwhelming the system. Therefore, it is essential to develop countermeasures that ensure the security of federated learning environments. We present a novel defence method against targeted data poisoning, which is one of the types of Sybil attacks, called Linear Algebra-based Detection (FedLAD). Unlike existing approaches, such as clustering and robust training, which struggle in situations where malicious nodes dominate, FedLAD models the federated learning aggregation process as a linear problem, transforming it into a linear algebra optimisation challenge. This method identifies potential attacks by extracting the independent linear combinations from the original linear combinations, effectively filtering out redundant and malicious elements. Extensive experimental evaluations demonstrate the effectiveness of FedLAD compared to five well-established defence methods: Sherpa, CONTRA, Median, Trimmed Mean, and Krum. Using tasks from both image classification and natural language processing, our experiments confirm that FedLAD is robust and not dependent on specific application settings. The results indicate that FedLAD effectively protects federated learning systems across a broad spectrum of malicious node ratios. Compared to baseline defence methods, FedLAD maintains a low attack success rate for malicious nodes when their ratio ranges from 0.2 to 0.8. Additionally, it preserves high model accuracy when the malicious node ratio is between 0.2 and 0.5. These findings underscore FedLAD's potential to enhance both the reliability and performance of federated learning systems in the face of data poisoning attacks.