Abstract
A gradual semantics takes a weighted argumentation framework as input and outputs a final acceptability degree for each argument, with different semantics performing the computation in different manners. In this work, we consider the problem of attack inference. That is, given a gradual semantics, a set of arguments with associated initial weights, and the final desirable acceptability degrees associated with each argument, we seek to determine whether there is a set of attacks on those arguments such that we can obtain these acceptability degrees. The main contribution of our work is to demonstrate that the associated decision problem, i.e., whether a set of attacks can exist which allows the final acceptability degrees to occur for given initial weights, is NP-complete for the weighted h-categoriser and card-based semantics, and is polynomial for the weighted max-based semantics, even for the complete version of the problem (where all initial weights and final acceptability degrees are known). We then briefly discuss how this decision problem can be modified to find the attacks themselves and conclude by examining the partial problem where not all initial weights or final acceptability degrees may be known.
Introduction
Abstract argumentation semantics associate a justification status with a set of arguments based on interactions between arguments. Such interactions can include inter-argument attacks [17], or preference-based defeats [5,6,21,29,41], or may consider both of these together with some supportive relationship [2,3,12,30]. Given such a framework, an argument may be considered justified if it appears in one (resp. many or all) extensions, where such extensions – sets of non-conflicting arguments accepted together – are computed according to the argumentation semantics, or based on the label assigned to the argument (we refer the reader to [7] for an introduction to the most common argumentation semantics).
Arguments often have associated weights, and different semantics have been proposed which consider the weight associated with an argument [2,14,30,34]. While some semantics developed in this context return whether an argument is, or is not justified [14], many other ranking-based semantics either return a preference ordering over arguments. Such ranking-based semantics have been used to, for example, identify irrationality in reasoning [20] by examining whether the initial weights associated with an argument affect the argument’s final acceptability degree in an appropriate manner (i.e., consistent with the ranking-based semantics being used); refining the results obtained by extension semantics [11,42]; and applied to multi-agent settings [16]. In this paper, we focus on gradual semantics, a subclass of ranking-based semantics which associates a numeric final acceptability degree with each argument to compute a preference ordering over arguments.
The top portion of Fig. 1 shows the reasoning process used when reasoning using gradual semantics. Here, a weighted argumentation framework consisting of arguments, attacks and initial weights associated with arguments is provided as input. A gradual semantics is then used to compute a final acceptability degree for each argument. In many semantics, these final acceptability degrees are then used to compute a preference ordering over the arguments.
More recent work has considered different combinations of inputs and outputs to the problem. For example, [34] seeks to identify a set of initial weights for arguments based on the final argument preference ordering and argumentation semantics, while [27] determines the preferences between arguments given argument justification status, semantics and argumentation framework. In this paper, and as illustrated in the bottom portion of Fig. 1, we consider the problems of determining whether a set of attacks between arguments can be identified given specific argumentation semantics, the final acceptability degrees, and the initial weights. As discussed further in Section 5, we leave the problem of using preferences over arguments as input for our problem as future work. While it is true that the problem we consider is somewhat abstract and has limited real-world applications, it serves as a departure point for potentially important applications of argumentation to opponent modelling [35,37] and preference elicitation [27].

The process (top) by which a gradual semantics is applied to compute an acceptability preference between arguments and (bottom) the inverse problem considered in this paper. The “final acceptability degrees” are now used as input. That is, given arguments, initial weights, and desirable final acceptability degrees, can we find a suitable set of attacks?
While other ranking-based semantics are described in the literature, we consider three popular weighted gradual semantics (the weighted h-categoriser, the weighted card-based, and the weighted max-based semantics [4]). These three semantics were chosen due to their similarity to one another, and due to the way in which a similar approach can be used to solve the problem we consider when these semantics are used. We show that when given all final acceptability degrees and initial weights, the problems for the weighted h-categoriser and the weighted card-based semantics are both NP-complete, while the problem can be solved in polynomial time for the weighted max-based semantics.
The remainder of this paper is structured as follows. In Section 2, we provide the necessary background to understand the remainder of the paper. Section 3 formalises the decision problem of whether attacks can be found for gradual semantics and then demonstrates that it is NP-complete for some semantics. In Section 4, we discuss solvers for our problem, and consider related and future work (including a partial version of the problem) in Section 5.
As discussed above, we situate our work in the context of weighted abstract argumentation frameworks (WAFs), which can be encoded as graphs with weighted nodes. Each argument has an initial weight (also called “basic score” in [36]) drawn from the range
A (abstract) weighted argumentation framework is a triple
Given an argument
A gradual semantics σ takes as input a weighted argumentation framework and outputs a function that associates a final acceptability degree for each argument.1
Often, the final step in using a gradual semantics involves using this final acceptability degree to compute a preference ordering over arguments.
The weighted h-categoriser considers the initial weight of an argument as well as the sum of the acceptability degrees of all its attackers to determine the argument’s final acceptability degree. In this semantics, all (non-zero) attackers will be considered when determining the acceptability degree of an argument and the number of attackers is not used.
The weighted h-categoriser semantics, denoted
Next, we consider the weighted max-based semantics which utilises the initial weight of an argument as well as the highest acceptability degrees of its attackers to determine the argument’s final acceptability degree. In this semantics, only the strongest attacker is considered and the number of attackers is not used.
The weighted max-based semantics, denoted
Finally, the weighted card-based semantics considers the initial weight of an argument, the number of its attackers as well as the sum of the acceptability degrees of its attackers to determine the acceptability degree of the considered argument. In this semantics, the number of attackers is the most important factor to determine the acceptability degree of an argument.
The weighted card-based semantics, denoted
Here,
We note in passing that the properties for these semantics have been researched in depth by Amgoud et al. [4]. Perhaps the most important property, in the context of this paper, is the convergence of the An agent may believe the following arguments.
Tomatoes older than a week can go rotten; these tomatoes are a week and a half old. Tomatoes kept in the fridge (like these ones) can last longer than a week, and so the tomatoes are not rotten. My friend ate one of the tomatoes this morning, and it tasted fine, therefore they are not rotten. My friend is not very good at discriminating whether something is rotten by taste, so the tomatoes might be rotten. Here,
The weighted argumentation framework from Example 1. We consider three different semantics in this paper (defined above); yielding the final acceptability degrees in Table 1. In turn, a reasoner using the weighted h-categoriser semantics

In this paper, we focus on the problem of identifying whether we can infer suitable attacks between arguments given their initial weights and desirable final acceptability degrees (as shown at the bottom of Fig. 1). However, we ground most of our discussion in the following, closely-related decision problem: given a gradual argumentation semantics, a set of arguments, and associated information about these arguments (i.e., initial weights and some or all desirable final acceptability degrees), is there an attack relation over the arguments that, according to the semantics, lead to the desirable final acceptability degrees from the initial weights?
In this section, we consider the complete problem, where the initial weights and desirable final acceptability degrees for all arguments are known. We formalise this problem as follows.
The decision problem
We investigate this decision problem for the three gradual semantics
We create the set
In the Algorithm 1, line 2 checks whether arguments with zero (resp. non-zero) initial weights and non-zero (resp. zero) desired final acceptability degrees exist; the presence of such arguments would mean that the weighted-max-based semantics cannot be satisfied (line 3). Line 5 then checks the existence of an attacking argument with a suitable acceptability degree (via a lookup in the set L) to satisfy the weighted-max-based semantics in

Procedure to solve the decision problem
We show that
To prove
To demonstrate that
Graphical representation of the polynomial transformation (dashed lines) of an 
Turning to the reduction, we begin by reducing
Consider the
We now demonstrate that using the above reduction, denoted g, if there exists a solution to an instance x of
We now show the reduction in the other direction – if an instance
Note that
We have proved that
We see that the subset sum problem has a solution (using values 23,37 and 40). Analogously, a solution to
Representation of how a solution to an 
Similar to the previous proof, we show that
We first observe that the certificate of the problem
We now reduce If there exists an Assume we have a solution to the associated We show that Moreover, it holds that:
This is a contradiction with
□
To recap, our results show that
Rather than simply considering the decision problem, it is useful – if possible – to be able to infer the attacks induced by some set of initial weights and final acceptability degrees. We consider each semantics individually.
The weighted max-based semantics
For the weighted max-based semantics, it is trivial to modify Algorithm 1 from Proposition 1 to infer a suitable set of attacks (when possible). Rather than simply returning True or False, we return, by modifying lines 5 and 6, any set of attacks X that satisfy the condition that for all
(Solution Expansion).
Given a set of arguments
Similarly, if we have a set of attacks that achieve the desirable final acceptability degrees for all arguments and there is an attack from
(Solution Contraction).
Given a set of arguments
Let us consider The argumentation framework of Example 4. Representation of 

Once a solution for the max-based semantics is found, we can reach all the other solutions by expanding this initial solution once and then successively contracting it.
Given a set of arguments
Let us consider
Let us consider the case of the weighted h-categoriser semantics. Given an input
Recall from the definition of the weighted h-categoriser semantics that any solution must mean that the following equation holds.
Moreover, if
For the complete problem, we are given

Procedure to solve
We note in passing that the standard version of the subset-sum problem assumes that T and elements of M are all integers. If we assume that all initial weights and final acceptability degrees are rational, we can easily transform our computed T and M values to integers. The most common dynamic programming based approach to solving standard subset-sum can run in pseudo-polynomial time. However, the integers we obtain become very large very quickly, making this approach impractical. Future work will consider using state-of-the-art techniques for solving subset-sum over real numbers instead, e.g. the recent FPTAS of Costandin [13]. In addition, having transformed our problem to an instance of the subset-sum problem opens up the possibility of transforming the problem to other NP-complete problems for which efficient solvers exist, such as satisfiability.
Moreover, once a set of attacks is found to be a solution, we can obtain other solutions by replacing the attacks to a single argument x by other attacks to this argument so that the sum of the degree of the attackers remains the same. Given the simplicity of this proposition, we do not provide a proof for it here.
Consider two weighted argumentation frameworks
then for all
We can adopt a similar approach for
If
Again, all values on the right-hand side of the equation are given for the complete problem given, allowing us to compute the value of the left-hand side for each argument. Assuming a non-zero number of attacks, while we could (naively) iterate over all
These two equations serve as an upper and lower bound for k. Since k must be an integer, we can avoid the need to iterate over the number of attacks by computing k as follows.
The pseudo-code for this approach is described in Algorithm 3.

Procedure to solve
Since k is known, the
Analogous to the result from Proposition 7, under the weighted card-based semantics, once a set of attacks is found to be a solution, we can obtain other solutions by replacing the k attacks on a single argument x by another set of k attacks to this argument so that the sum of the final acceptability degree of the attackers remains the same. Given the simplicity of this proposition, we do not provide a proof for it here.
Given two weighted argumentation frameworks
then for all
Propositions 4, 5, and 6 demonstrate that there are typically a large number of non-minimal argumentation frameworks for the weighted max-based semantics. For the weighted h-categoriser semantics, attacks can be substituted as long as the sum of the final acceptability degrees of the attacking arguments match (see Proposition 7), while for weighted card-based semantics, attacks can only be substituted by a set of attackers of the same size which final acceptability degree sums to the same value (see Proposition 8). We also note that, for all semantics, any argument with an initial weight of 0 can clearly have any number of attacks against it.
To this point, we have considered only the complete problem of attack inference in gradual argumentation frameworks, and we now briefly discuss the partial problem. Here, we are given a semantics, a set of arguments, a partial mapping between arguments and initial weights, and a partial mapping between arguments and final acceptability degrees, and we must determine whether attacks (and initial weights which were not provided) can be identified which make the given final acceptability degrees consistent with the semantics.
Since the complete problem is a special case of this partial problem, and since we can still verify correctness in polynomial time, the NP-completeness results of Section 3 still apply to the weighted card-based and weighted h-categoriser semantics. The behaviour of the weighted max-based version of the partial problem, which was polynomial in the complete problem, is more challenging to characterise. While it is easy to show that there are polynomial instances of the partial problem (e.g., when all initial weights are given and all but one final acceptability degree is provided), we strongly believe that the general case is NP-complete. We leave proof of this result as an element of future work. Other directions for research include providing a mapping from subset-sum to other problems for which solvers exist (e.g., satisfiability) and evaluating the performance of such solvers.2
An implementation of our algorithms using an optimised depth-first-search SSP solver can be found at
Another variant of the problem under consideration would involve identifying whether a subset of attacks from some given possible attacks (rather than all attacks) can be used to make the final acceptability degrees consistent with the initial weights. While this may be more realistic for some applications, from a complexity point of view, the results from the current work directly translate to this version of the problem.
We note in passing that we can consider another inverse problem, namely the computation of semantics for a given weighted argumentation framework and set of final acceptability degrees or preferences over arguments. This problem is trivial to solve in polynomial time, as one simply needs to check for consistency between the inputs (weighted argumentation framework) and outputs (final acceptability degrees or preferences) for each semantics.
Turning to related work, researchers have examined the notion of argument realisability in abstract argumentation frameworks [25], seeking to identify an attack relation that yields a specific labelling or extension. Recent work by Mumford et al. [31] has shown that for complete semantics and IN/OUT labellings the problem is NP-complete, whereas it can be solved in polynomial time if UNDEC labellings are also allowed. The work of Skiba et al. [38] focuses on whether, for a given ranking and ranking-based semantics, we can find an unweighted argumentation framework such that the selected ranking-based semantics induces the ranking when applied to the argumentation framework. They show that the above problem is true for a number of ranking-based semantics, including burden-based and discussion-based semantics [1], the simple product semantics on social abstract frameworks [10,22], and the probabilistic graded semantics [24,39]. Another related area to the current work is argument synthesis [32], where the attack relation must satisfy some positive and negative constraints, but where the problem is not fully constrained. There are still several open questions regarding the time complexity of these types of problems, even for the case of abstract argumentation semantics [31].
More generally, our work can be seen as a type of inverse argumentation problem. [33,34] has examined one such inverse problem in the context of the gradual semantics, seeking to identify a set of initial weights given a semantics, a set of arguments, attacks and final acceptability degrees. In the context of abstract argumentation, such inverse problems have examined inferring preferences from justified arguments [26,27], and has applications in the context of belief revision [8].
The current paper focuses on the complexity of the underlying decision problem and inferring attacks given the semantics, initial weights, and final acceptability degrees. This is arguably unrealistic and limits the applications of the current work. In most uses of gradual semantics, one considers the preferences obtained from final acceptability degrees rather than the final acceptability degrees themselves, as the latter are not (normally) exposed within an application. Thus, as future work, we intend to consider the problem of inferring attacks from a semantics, initial weights, and preferences over arguments. We believe that the complexity of this problem for a given semantics will be similar to that obtained in the current work. Given this more general problem one could, for example, determine whether an agent is rational given the initial weights they assign to a set of arguments, a semantics, and a resulting preference ordering over the arguments. Other applications, as discussed above, include opponent modelling [37] in the context of dialogue and preference elicitation.
We have considered the problem of inferring an attack relation given a gradual semantics and all initial weights and final acceptability degrees for an argumentation framework. We have shown that for the weighted max-based semantics, this problem can be solved in linear time, but that the obtained solution is (typically) not unique. For the weighted h-categoriser and weighted card-based semantics, where solutions have no redundancies, the problem becomes NP-complete. Our proofs are based on a reduction to variants of the subset-sum problem, and efficient solvers for this problem can be applied to our work, facilitating its application in domains such as opponent modelling. Finally, we have focused on the complete problem, and there are exciting avenues for future research dealing with its partial form.
