[Paper Review] Metamorphic Relation Based Adversarial Attacks on Differentiable Neural Computer
This paper proposes metamorphic relation-based adversarial attacks on Differentiable Neural Computers (DNCs) to evaluate their robustness in natural language question-answering tasks. By generating grammatically correct, semantically altered inputs using automated strategies like Pick-n-Plug and Pick-Permute-Plug, the method disrupts DNCs' memory operations—particularly read, write, and erase functions—leading to significant performance degradation despite near-perfect baseline accuracy.
Deep neural networks (DNN), while becoming the driving force of many novel technology and achieving tremendous success in many cutting-edge applications, are still vulnerable to adversarial attacks. Differentiable neural computer (DNC) is a novel computing machine with DNN as its central controller operating on an external memory module for data processing. The unique architecture of DNC contributes to its state-of-the-art performance in tasks which requires the ability to represent variables and data structure as well as to store data over long timescales. However, there still lacks a comprehensive study on how adversarial examples affect DNC in terms of robustness. In this paper, we propose metamorphic relation based adversarial techniques for a range of tasks described in the natural processing language domain. We show that the near-perfect performance of the DNC in bAbI logical question answering tasks can be degraded by adversarially injected sentences. We further perform in-depth study on the role of DNC's memory size in its robustness and analyze the potential reason causing why DNC fails. Our study demonstrates the current challenges and potential opportunities towards constructing more robust DNCs.
Motivation & Objective
- To investigate the robustness of Differentiable Neural Computers (DNCs) against adversarial attacks in natural language processing.
- To address the challenge of generating adversarial examples in NLP due to the discrete, non-differentiable nature of text inputs.
- To evaluate the role of memory size in DNC robustness against such attacks.
- To analyze how adversarial inputs disrupt the DNC controller’s control signals (read, write, erase functions).
Proposed method
- Proposes a metamorphic relation-based framework to generate adversarial examples that preserve grammatical correctness and semantic coherence in NLP tasks.
- Introduces two automated, scalable attack strategies: Pick-n-Plug and Pick-Permute-Plug, which inject adversarial sentences into training or test sequences.
- Uses cosine similarity and KL-divergence to compare control signals (keys, vectors, gate values) between clean inputs and adversarial inputs.
- Analyzes controller behavior across three input segments: story, adversarial sentence, and question, to localize adversarial effects.
- Employs bAbI task #19 as a benchmark to evaluate attack success and performance degradation.
- Compares gate value distributions (free, allocate, write, erase) using KL-divergence to detect significant deviations under adversarial inputs.
Experimental results
Research questions
- RQ1Can metamorphic relation-based adversarial attacks effectively degrade the performance of DNCs in natural language question-answering tasks?
- RQ2How do adversarial sentence injections affect the DNC’s memory operations (read, write, erase) as reflected in controller control signals?
- RQ3Does increasing the memory size of the DNC significantly improve its robustness against such adversarial attacks?
- RQ4What is the role of input position, content type, and length in determining the success of adversarial attacks on DNCs?
Key findings
- The proposed adversarial attacks successfully degrade the DNC’s performance on bAbI task #19, reducing near-perfect accuracy to significantly lower levels despite grammatically correct inputs.
- KL-divergence analysis shows that gate values (especially allocate and write gates) in the adversarial segment exhibit significantly higher divergence under successful attacks compared to clean or unsuccessful attacks.
- Cosine similarity between DNC controller keys and vectors drops notably in the adversarial segment (e.g., 0.8593 for write keys between UAA and SAA), indicating substantial signal disruption.
- The largest KL-divergence in gate values occurs in the adversarial segment for allocate and write gates, suggesting these operations are primary targets of the attack.
- Larger memory size provides only limited improvement in robustness, indicating that memory capacity alone does not mitigate the vulnerability to such attacks.
- Control signal analysis reveals that adversarial attacks disrupt the DNC’s read, write, and erase functions, with the most pronounced effects observed in the controller’s gate values and attention mechanisms.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.