437 research outputs found
Enhancing Adversarial Robustness via Score-Based Optimization
Adversarial attacks have the potential to mislead deep neural network
classifiers by introducing slight perturbations. Developing algorithms that can
mitigate the effects of these attacks is crucial for ensuring the safe use of
artificial intelligence. Recent studies have suggested that score-based
diffusion models are effective in adversarial defenses. However, existing
diffusion-based defenses rely on the sequential simulation of the reversed
stochastic differential equations of diffusion models, which are
computationally inefficient and yield suboptimal results. In this paper, we
introduce a novel adversarial defense scheme named ScoreOpt, which optimizes
adversarial samples at test-time, towards original clean data in the direction
guided by score-based priors. We conduct comprehensive experiments on multiple
datasets, including CIFAR10, CIFAR100 and ImageNet. Our experimental results
demonstrate that our approach outperforms existing adversarial defenses in
terms of both robustness performance and inference speed
Purify++: Improving Diffusion-Purification with Advanced Diffusion Models and Control of Randomness
Adversarial attacks can mislead neural network classifiers. The defense
against adversarial attacks is important for AI safety. Adversarial
purification is a family of approaches that defend adversarial attacks with
suitable pre-processing. Diffusion models have been shown to be effective for
adversarial purification. Despite their success, many aspects of diffusion
purification still remain unexplored. In this paper, we investigate and improve
upon three limiting designs of diffusion purification: the use of an improved
diffusion model, advanced numerical simulation techniques, and optimal control
of randomness. Based on our findings, we propose Purify++, a new diffusion
purification algorithm that is now the state-of-the-art purification method
against several adversarial attacks. Our work presents a systematic exploration
of the limits of diffusion purification methods
Displacement and Deformation of the First Tunnel Lining During the Second Tunnel Construction
A three-dimensional twin tunnels scale model was established utilizing the discrete element method (DEM) with PFC3D. This model aims to investigate the displacement (in horizontal and vertical directions) and deformation of the first tunnel lining in four different cases which the clear distance of twin tunnels are 5, 10, 15 and 20 m during the second tunnel construction process. The numerical results indicate that the clear distance between twin tunnels and the distance between the measurement points of the first tunnel and the excavation area of the second tunnel are two most critical factors that influence the displacement and deformation of the first tunnel lining. Meanwhile, the soil arching effect, gravity, water pressure and lateral pressure also have an impact on the behavior of the first tunnel. The maximum disturbance of horizontal and vertical displacements occurred in the time points of finishing of the second tunnel. However, the horizontal displacement of the first tunnel is much more sensitive to the vertical displacement. The first tunnel turns to the right and down in direction while having an anticlockwise rotation (φ) during the process of construction of the second tunnel. In addition, the displacement and deformation of the lining of the first tunnel are critical to monitor, and the necessary precautions should be taken to decrease the risk of craze. In conclusion, the influence of the second tunnel excavation on the first tunnel lining could be neglected when their distance is more than 15 m
Free surface flow over square bars at different Reynolds numbers
Large-eddy simulations of free surface flow over bed-mounted square bars are performed for laminar, transitional and turbulent flows at constant Froude number. Two different bar spacings are selected corresponding to transitional and k-type (reattaching flow) roughness, respectively. The turbulent flow simulations are validated with experimental data and convincing agreement between simulation and measurement is obtained in terms of water surface elevations and streamwise velocity profiles. The water surface deforms in response to the underlying bed roughness ranging from mild undulation for transitional roughness to distinct standing waves for k-type roughness. The instantaneous water surface deformations increase with an increase in Reynolds number. Contours of the mean streamwise and wall-normal velocities, the total shear stress and the streamfunction reveal the presence and extension of recirculation zones in the trough between two consecutive bars. The flow is governed by strong local velocity gradients as a result of the rough bed and the deformed water surface. The local Froude number at the free surface increases for low Reynolds number in the flow over transitional roughness and decreases for low Reynolds number in the flow over k-type roughness. The transitional and turbulent flows exhibit a very similar distribution of the pressure coefficient Cp in both cases, whilst Cp is generally lower for the laminar flow. Regarding the friction coefficient, Cf, it is significantly lower in the turbulent case than in the transitional and laminar cases. The bar spacing does not affect significantly the relative contribution of friction and pressure forces to the total force, neither does the Reynolds number. The friction factor is greater for transitional roughness and decreases with increasing Reynolds number
Diff-Instruct: A Universal Approach for Transferring Knowledge From Pre-trained Diffusion Models
Due to the ease of training, ability to scale, and high sample quality,
diffusion models (DMs) have become the preferred option for generative
modeling, with numerous pre-trained models available for a wide variety of
datasets. Containing intricate information about data distributions,
pre-trained DMs are valuable assets for downstream applications. In this work,
we consider learning from pre-trained DMs and transferring their knowledge to
other generative models in a data-free fashion. Specifically, we propose a
general framework called Diff-Instruct to instruct the training of arbitrary
generative models as long as the generated samples are differentiable with
respect to the model parameters. Our proposed Diff-Instruct is built on a
rigorous mathematical foundation where the instruction process directly
corresponds to minimizing a novel divergence we call Integral Kullback-Leibler
(IKL) divergence. IKL is tailored for DMs by calculating the integral of the KL
divergence along a diffusion process, which we show to be more robust in
comparing distributions with misaligned supports. We also reveal non-trivial
connections of our method to existing works such as DreamFusion, and generative
adversarial training. To demonstrate the effectiveness and universality of
Diff-Instruct, we consider two scenarios: distilling pre-trained diffusion
models and refining existing GAN models. The experiments on distilling
pre-trained diffusion models show that Diff-Instruct results in
state-of-the-art single-step diffusion-based models. The experiments on
refining GAN models show that the Diff-Instruct can consistently improve the
pre-trained generators of GAN models across various settings
- …