Searcharxiv⌕ Search

arXiv subjects

Yihan Wang

Publications and source records attributed to Yihan Wang.

At least 91 records · Page 5Linked to original sources

On the Loss of Context-awareness in General Instruction Fine-tuning

Pre-trained Large Language Models (LLMs) require post-training methods such as supervised fine-tuning (SFT) on instruction-response pairs to enable instruction following. However, this process can potentially harm existing capabilities learned during pre-training. In this paper, we investigate the loss of context awareness after SFT, where context awareness is defined as the ability to extract and understand information from user-provided context and respond accordingly. We identify and demonstrate that the loss of context awareness, particularly in open-source models, occurs in instruction fine-tuned LLMs when the chat template is applied to input prompts. We identify that the performance decline is associated with a bias toward different roles learned during conversational instruction fine-tuning. We demonstrate this correlation by visualizing changes in attention allocation after the chat template is applied and manually steering the attention heads. The bias can be learned from training examples that align with the model's internal knowledge and rely less on the user-provided context to generate correct responses. Based on these observations, we propose a metric to identify context-dependent examples from general instruction fine-tuning datasets. We then apply conditional instruction fine-tuning with a context-dependency indicator, enabling the model to preserve context awareness after SFT. Empirical experiments on four context-dependent downstream tasks and three pre-trained LLMs of different sizes show that our method effectively mitigates the loss of context awareness without compromising general instruction-following capabilities.

cs.CL↗

A Deep State Space Model for Rainfall-Runoff Simulations

The classical way of studying the rainfall-runoff processes in the water cycle relies on conceptual or physically-based hydrologic models. Deep learning (DL) has recently emerged as an alternative and blossomed in hydrology community for rainfall-runoff simulations. However, the decades-old Long Short-Term Memory (LSTM) network remains the benchmark for this task, outperforming newer architectures like Transformers. In this work, we propose a State Space Model (SSM), specifically the Frequency Tuned Diagonal State Space Sequence (S4D-FT) model, for rainfall-runoff simulations. The proposed S4D-FT is benchmarked against the established LSTM and a physically-based Sacramento Soil Moisture Accounting model across 531 watersheds in the contiguous United States (CONUS). Results show that S4D-FT is able to outperform the LSTM model across diverse regions. Our pioneering introduction of the S4D-FT for rainfall-runoff simulations challenges the dominance of LSTM in the hydrology community and expands the arsenal of DL tools available for hydrological modeling.

cs.LG↗

All-electric mimicking synaptic plasticity based on the noncollinear antiferromagnetic device

Neuromorphic computing, which seeks to replicate the brain's ability to process information, has garnered significant attention due to its potential to achieve brain-like computing efficiency and human cognitive intelligence. Spin-orbit torque (SOT) devices can be used to simulate artificial synapses with non-volatile, high-speed processing and endurance characteristics. Nevertheless, achieving energy-efficient all-electric synaptic plasticity emulation using SOT devices remains a challenge. We chose the noncollinear antiferromagnetic Mn3Pt as spin source to fabricate the Mn3Pt-based SOT device, leveraging its unconventional spin current resulting from magnetic space breaking. By adjusting the amplitude, duration, and number of pulsed currents, the Mn3Pt-based SOT device achieves nonvolatile multi-state modulated by all-electric SOT switching, enabling emulate synaptic behaviors like excitatory postsynaptic potential (EPSP), inhibitory postsynaptic potential (IPSP), long-term depression (LTD) and the long-term potentiation (LTP) process. In addition, we show the successful training of an artificial neural network based on such SOT device in recognizing handwritten digits with a high recognition accuracy of 94.95 %, which is only slightly lower than that from simulations (98.04 %). These findings suggest that the Mn3Pt-based SOT device is a promising candidate for the implementation of memristor-based brain-inspired computing systems.

physics.app-ph↗

Stellar/BH Population in AGN Disks: Direct Binary Formation from Capture Objects in Nuclei Clusters

The Active Galatic Nuclei(AGN) disk has been proposed as a potential channel for the merger of binary black holes. The population of massive stars and black holes in AGN disks captured from the nuclei cluster plays a crucial role in determining the efficiency of binary formation and final merger rate within the AGN disks. In this paper, we investigate the capture process using analytical and numerical approaches. We discover a new constant integral of motion for one object's capture process. Applying this result to the whole population of the nuclei cluster captured by the AGN disk, we find that the population of captured objects depends on the angular density and eccentricity distribution of the nuclei clusters and is effectively independent of the radial density profile of the nuclei cluster and disk models. An isotropic nuclei cluster with thermal eccentricity distribution predicts a captured profile $d N/d r \propto r^{-1/4}$. The captured objects are found to be dynamically crowded within the disk. Direct binary formation right after the capture would be promising, especially for stars. The conventional migration traps that help pile up single objects in AGN disks for black hole mergers might not be required.

astro-ph.GA↗

Evidence of a Past Merger of the Galactic Center Black Hole

The origin of supermassive black holes (SMBHs) residing in the centers of most galaxies remains a mystery. The Event Horizon Telescope (EHT) provided direct imaging of the SMBH Sgr A* at the Milky Way's center, indicating it likely spins rapidly with its spin axis significantly misaligned relative to the Galactic plane's angular momentum. Through investigating various SMBH growth models, here we show that the inferred spin properties of Sgr A* provide evidence of a past SMBH merger. Inspired by the merger between the Milky Way and Gaia-Enceladus, which has a 4:1 mass ratio as inferred from Gaia data, we have discovered that a 4:1 major merger of SMBH with a binary angular momentum inclination angle of 145-180 degrees with respect to the line of sight (LOS), can successfully replicate the measured spin properties of Sgr A*. This merger event in our galaxy provides potential observational support for the theory of hierarchical BH mergers in the formation and growth of SMBHs. The inferred merger rate, consistent with theoretical predictions, suggests a promising detection rate of SMBH mergers for space-borne gravitational wave detectors expected to operate in 2030s.

astro-ph.GA↗

Diffuse-UDA: Addressing Unsupervised Domain Adaptation in Medical Image Segmentation with Appearance and Structure Aligned Diffusion Models

The scarcity and complexity of voxel-level annotations in 3D medical imaging present significant challenges, particularly due to the domain gap between labeled datasets from well-resourced centers and unlabeled datasets from less-resourced centers. This disparity affects the fairness of artificial intelligence algorithms in healthcare. We introduce Diffuse-UDA, a novel method leveraging diffusion models to tackle Unsupervised Domain Adaptation (UDA) in medical image segmentation. Diffuse-UDA generates high-quality image-mask pairs with target domain characteristics and various structures, thereby enhancing UDA tasks. Initially, pseudo labels for target domain samples are generated. Subsequently, a specially tailored diffusion model, incorporating deformable augmentations, is trained on image-label or image-pseudo-label pairs from both domains. Finally, source domain labels guide the diffusion model to generate image-label pairs for the target domain. Comprehensive evaluations on several benchmarks demonstrate that Diffuse-UDA outperforms leading UDA and semi-supervised strategies, achieving performance close to or even surpassing the theoretical upper bound of models trained directly on target domain data. Diffuse-UDA offers a pathway to advance the development and deployment of AI systems in medical imaging, addressing disparities between healthcare environments. This approach enables the exploration of innovative AI-driven diagnostic tools, improves outcomes, saves time, and reduces human error.

cs.CV↗

Evolution of Extremely Soft Binaries in Dense Star Clusters: On the Jupiter Mass Binary Objects

Star-forming regions, characterized by dense environments, experience frequent encounters that significantly influence binary systems, leading to their hardening, softening, or ionization. We extend the Hut \& Bahcall formalism to derive an analytical expression for the ionization cross-section in extreme mass ratio binary systems, allowing us to investigate the orbital evolution and population dynamics of binary planets and binary brown dwarfs in star clusters, while considering ongoing binary system formation. Our findings reveal that for low-mass soft binaries, the semi-major axis distribution asymptotes to a universal power law between $\propto a^{-8/3}$ and $\propto a^{-5/3}$ over the derived ionization timescale. We also discuss the implications of our results for the candidate Jupiter-mass binary objects putatively reported in the Trapezium cluster. We demonstrate that if their existence is verified, they likely form continuously with a spectrum proportional to $a^{1}$, aligning better with the ejection mechanism than with the in-situ formation mechanism, which predicts a distribution roughly proportional to $a^{-1}$. However, this implies an impractically high ejection formation rate. Alternatively, if these objects are binary brown dwarfs, continuous in-situ formation ($\propto a^{-1}$) with an initial minimal semi-major axis around 20 AU and a formation rate of 100 Myr$^{-1}$ plausibly matches the observed number of single objects, binary number, binary fraction, and semi-major axis distribution.

astro-ph.EP↗

Area-minimizing Hypersurfaces in Singular Ambient Manifolds

We study area-minimizing hypersurfaces in singular ambient manifolds whose tangent cones have nonnegative scalar curvature on their regular parts. We prove that the singular set of the hypersurface has codimension at least 3 in our settings. We also give an example in which n-dimensional minimizing hypersurface in an ambient space as given above may have singularities of dimension $n-3$. This shows that our regularity result is sharp.

math.DG↗

Conditions for Changing-Look AGNs from Accretion Disk-Induced Tidal Disruption Events

The phenomenon of changing-look (CL) behavior in active galactic nuclei (AGN) is characterized by dramatic changes in luminosity and/or emission line profiles over relatively short periods, ranging from months to years. The origin of CL-AGNs remains a mystery, but one proposed explanation involves the response of the inner AGN disk to tidal disruption events (TDEs) around the supermassive black hole (SMBH). In this Letter, we calculate the predicted frequency of AGN TDEs as a function of SMBH mass and compare the results to the observed CL-AGN distribution. We find that if the fraction of CL-AGNs caused by AGN-TDEs is high, then: (1) most SMBHs in CL-AGN are near maximal spin, with the dimensionless spin parameter $a>0.9$; (2) AGN inner disks have a high surface density ($\geq 10^{7}\, {\rm g\, cm^{-2}}$); (3) typical AGN lifetimes are $\sim 10$-$100$ Myr; and (4) a nuclear star cluster initial mass function (IMF) that scales as $\sim m_*^{-1.6}$ is preferred. Future observations of CL-AGN will help constrain the fraction of CL-AGNs caused by AGN-TDEs, SMBH spins, AGN lifetimes, and the nuclear star cluster IMF.

astro-ph.HE↗

Defending LLMs against Jailbreaking Attacks via Backtranslation

Although many large language models (LLMs) have been trained to refuse harmful requests, they are still vulnerable to jailbreaking attacks which rewrite the original prompt to conceal its harmful intent. In this paper, we propose a new method for defending LLMs against jailbreaking attacks by ``backtranslation''. Specifically, given an initial response generated by the target LLM from an input prompt, our backtranslation prompts a language model to infer an input prompt that can lead to the response. The inferred prompt is called the backtranslated prompt which tends to reveal the actual intent of the original prompt, since it is generated based on the LLM's response and not directly manipulated by the attacker. We then run the target LLM again on the backtranslated prompt, and we refuse the original prompt if the model refuses the backtranslated prompt. We explain that the proposed defense provides several benefits on its effectiveness and efficiency. We empirically demonstrate that our defense significantly outperforms the baselines, in the cases that are hard for the baselines, and our defense also has little impact on the generation quality for benign input prompts. Our implementation is based on our library for LLM jailbreaking defense algorithms at \url{https://github.com/YihanWang617/llm-jailbreaking-defense}, and the code for reproducing our experiments is available at \url{https://github.com/YihanWang617/LLM-Jailbreaking-Defense-Backtranslation}.

cs.CL↗

Tidal Disruption Events from three-body scatterings and eccentricity pumping in the disks of Active Galactic Nuclei

Tidal Disruption Events (TDEs) are routinely observed in quiescent galaxies, as stars from the nuclear star cluster are scattered into the loss cone of the central supermassive black hole (SMBH). TDEs are also expected to occur in Active Galactic Nuclei (AGN), due to scattering or orbital eccentricity pumping of stars embedded in the innermost regions of the AGN accretion disk. Encounters with embedded stellar-mass black holes (BH) can result in AGN $μ$TDEs. AGN TDEs and $μ$TDEs could therefore account for a fraction of observed AGN variability. Here, by performing scattering experiments with the few-body code {\tt SpaceHub}, we compute the probability of AGN TDEs and $μ$TDEs as a result of 3-body interactions between stars and binary BHs. We find that AGN TDEs are more probable during the early life of the AGNs, when rates are $\sim (6\times 10^{-5}-5 \times 10^{-2}) (f_\bullet/0.01)$ $~\rm{AGN}^{-1}$~yr$^{-1}$ (where $f_\bullet$ is the ratio between the number density of BHs and stars), generally higher than in quiescent galactic nuclei. By contrast, $μ$TDEs should occur throughout the AGN lifetime at a rate of $\sim (1\times 10^{-4} - 4\times 10^{-2} (f_\bullet/0.01)$ $~\rm{AGN}^{-1}$~yr$^{-1}$. Detection and characterization of AGN TDEs and $μ$ AGN TDEs with future surveys using {\em Rubin} and {\em Roman} will help constrain the populations of stars and compact objects embedded in AGN disks, a key input for the LVK AGN channel.

astro-ph.HE↗

SEA-RAFT: Simple, Efficient, Accurate RAFT for Optical Flow

We introduce SEA-RAFT, a more simple, efficient, and accurate RAFT for optical flow. Compared with RAFT, SEA-RAFT is trained with a new loss (mixture of Laplace). It directly regresses an initial flow for faster convergence in iterative refinements and introduces rigid-motion pre-training to improve generalization. SEA-RAFT achieves state-of-the-art accuracy on the Spring benchmark with a 3.69 endpoint-error (EPE) and a 0.36 1-pixel outlier rate (1px), representing 22.9% and 17.8% error reduction from best published results. In addition, SEA-RAFT obtains the best cross-dataset generalization on KITTI and Spring. With its high efficiency, SEA-RAFT operates at least 2.3x faster than existing methods while maintaining competitive performance. The code is publicly available at https://github.com/princeton-vl/SEA-RAFT.

cs.CV↗

Floating binary planets from ejections during close stellar encounters

The discovery of planetary systems beyond our solar system has challenged established theories of planetary formation. Planetary orbits display a variety of unexpected architectures, and free-floating planets appear ubiquitous. The recent detection of candidate Jupiter Mass Binary Objects (JuMBOs) by the James Webb Space Telescope (JWST) has added another puzzling layer. Here, through direct few-body simulations, we demonstrate that JuMBOs could arise from the ejection of double giant planets following a close encounter with a passing star, if the two planets are nearly aligned at the closest approach. These ejected JuMBOs typically possess an average semi-major axis approximately three times the orbital separation within their original planetary system and a high eccentricity, characterized by a superthermal distribution that sets them apart from those formed primordially. We estimate the JuMBO formation rate per planetary system in typical and densely populated clusters, revealing a significant environmental dependence. In dense clusters, this formation rate can reach a few percent for wide planetary systems. Comparative analysis of JuMBO rates and properties with current and forthcoming JWST observations across various environments promises insights into the conditions under which these giant planets formed in protoplanetary disks, thereby imposing constraints on theories of giant planet formation.

astro-ph.EP↗

Using Long Short-term Memory (LSTM) to merge precipitation data over mountainous area in Sierra Nevada

Obtaining reliable precipitation estimation with high resolutions in time and space is of great importance to hydrological studies. However, accurately estimating precipitation is a challenging task over high mountainous complex terrain. The three widely used precipitation measurement approaches, namely rainfall gauge, precipitation radars, and satellite-based precipitation sensors, have their own pros and cons in producing reliable precipitation products over complex areas. One way to decrease the detection error probability and improve data reliability is precipitation data merging. With the rapid advancements in computational capabilities and the escalating volume and diversity of earth observational data, Deep Learning (DL) models have gained considerable attention in geoscience. In this study, a deep learning technique, namely Long Short-term Memory (LSTM), was employed to merge a radar-based and a satellite-based Global Precipitation Measurement (GPM) precipitation product Integrated Multi-Satellite Retrievals for GPM (IMERG) precipitation product at hourly scale. The merged results are compared with the widely used reanalysis precipitation product, Multi-Radar Multi-Sensor (MRMS), and assessed against gauge observational data from the California Data Exchange Center (CDEC). The findings indicated that the LSTM-based merged precipitation notably underestimated gauge observations and, at times, failed to provide meaningful estimates, showing predominantly near-zero values. Relying solely on individual Quantitative Precipitation Estimates (QPEs) without additional meteorological input proved insufficient for generating reliable merged QPE. However, the merged results effectively captured the temporal trends of the observations, outperforming MRMS in this aspect. This suggested that incorporating bias correction techniques could potentially enhance the accuracy of the merged product.

cs.LG↗

Highway Discretionary Lane-change Decision and Control Using Model Predictive Control

To enable autonomous vehicles to perform discretionary lane change amidst the random traffic flow on highways, this paper introduces a decision-making and control method for vehicle lane change based on Model Predictive Control (MPC). This approach divides the driving control of vehicles on highways into two parts: lane-change decision and lane-change control, both of which are solved using the MPC method. In the lanechange decision module, the minimum driving costs for each lane are computed and compared by solving the MPC problem to make lane-change decisions. In the lane-change control module, a dynamic bicycle model is incorporated, and a multi-objective cost function is designed to obtain the optimal control inputs for the lane-change process. Additionally, A long-short term memory (LSTM) model is used to predict the trajectories of surrounding vehicles for both the MPC decision and control modules. The proposed lane-change decision and control method is simulated and validated in a driving simulator under random highway traffic conditions.

eess.SY↗

Two-stage LLM Fine-tuning with Less Specialization and More Generalization

Pretrained large language models (LLMs) are general purpose problem solvers applicable to a diverse set of tasks with prompts. They can be further improved towards a specific task by fine-tuning on a specialized dataset. However, fine-tuning usually makes the model narrowly specialized on this dataset with reduced general in-context learning performances, which is undesirable whenever the fine-tuned model needs to handle additional tasks where no fine-tuning data is available. In this work, we first demonstrate that fine-tuning on a single task indeed decreases LLMs' general in-context learning performance. We discover one important cause of such forgetting, format specialization, where the model overfits to the format of the fine-tuned task.We further show that format specialization happens at the very beginning of fine-tuning. To solve this problem, we propose Prompt Tuning with MOdel Tuning (ProMoT), a simple yet effective two-stage fine-tuning framework that reduces format specialization and improves generalization.ProMoT offloads task-specific format learning into additional and removable parameters by first doing prompt tuning and then fine-tuning the model itself with this soft prompt attached. With experiments on several fine-tuning tasks and 8 in-context evaluation tasks, we show that ProMoT achieves comparable performance on fine-tuned tasks to standard fine-tuning, but with much less loss of in-context learning performances across a board range of out-of-domain evaluation tasks. More importantly, ProMoT can even enhance generalization on in-context learning tasks that are semantically related to the fine-tuned task, e.g. ProMoT on En-Fr translation significantly improves performance on other language pairs, and ProMoT on NLI improves performance on summarization. Experiments also show that ProMoT can improve the generalization performance of multi-task training.

cs.CL↗

Efficient dual-scale generalized Radon-Fourier transform detector family for long time coherent integration

Long Time Coherent Integration (LTCI) aims to accumulate target energy through long time integration, which is an effective method for the detection of a weak target. However, for a moving target, defocusing can occur due to range migration (RM) and Doppler frequency migration (DFM). To address this issue, RM and DFM corrections are required in order to achieve a well-focused image for the subsequent detection. Since RM and DFM are induced by the same motion parameters, existing approaches such as the generalized Radon-Fourier transform (GRFT) or the keystone transform (KT)-matching filter process (MFP) adopt the same search space for the motion parameters in order to eliminate both effects, thus leading to large redundancy in computation. To this end, this paper first proposes a dual-scale decomposition of the target motion parameters, consisting of well designed coarse and fine motion parameters. Then, utilizing this decomposition, the joint correction of the RM and DFM effects is decoupled into a cascade procedure, first RM correction on the coarse search space and then DFM correction on the fine search spaces. As such, step size of the search space can be tailored to RM and DFM corrections, respectively, thus avoiding large redundant computation effectively. The resulting algorithms are called dual-scale GRFT (DS-GRFT) or dual-scale GRFT (DS-KTMFP) which provide comparable performance while achieving significant improvement in computational efficiency compared to standard GRFT (KT-MFP). Simulation experiments verify their effectiveness and efficiency.

eess.SY↗

Efficient Availability Attacks against Supervised and Contrastive Learning Simultaneously

Availability attacks can prevent the unauthorized use of private data and commercial datasets by generating imperceptible noise and making unlearnable examples before release. Ideally, the obtained unlearnability prevents algorithms from training usable models. When supervised learning (SL) algorithms have failed, a malicious data collector possibly resorts to contrastive learning (CL) algorithms to bypass the protection. Through evaluation, we have found that most of the existing methods are unable to achieve both supervised and contrastive unlearnability, which poses risks to data protection. Different from recent methods based on contrastive error minimization, we employ contrastive-like data augmentations in supervised error minimization or maximization frameworks to obtain attacks effective for both SL and CL. Our proposed AUE and AAP attacks achieve state-of-the-art worst-case unlearnability across SL and CL algorithms with less computation consumption, showcasing prospects in real-world applications.

cs.LG↗