Argumentation · Tools & methods

Software for argumentation reasoning

From numerical iteration over argumentation frameworks to computing extensions and testing acceptance: an overview of GRIS, EqArgSolver and totle.

Three generationsGRIS → EqArgSolver → totle

One line of work, different ways to reason

GRIS iterates numerical values assigned to arguments. EqArgSolver developed these ideas into a solver, and totle is the latest version of that line of tools for decision and enumeration problems under several argumentation semantics.

01 · Numeric schema

GRIS

The Gabbay–Rodrigues Iteration Schema updates argument values from initial values, with the resulting extension depending on the starting configuration.

02 · Solver

EqArgSolver

A C++ solver for enumeration and decision problems, using a more specialised algorithm for three-valued semantics.

03 · Current generation

totle

A newer C++ implementation with memory-management and algorithm improvements, and a parallel extension-computation algorithm in development.

totle

Use totle to compute extensions or decide whether an argument is accepted under grounded, complete, preferred and stable semantics.

Latest solver version

Decision and enumeration

For an argumentation framework ⟨S, R⟩, totle can compute one or all extensions, or test the acceptance of a chosen argument across some or all extensions.

C++
Compute one extensionFind one solution under a selected semantics.
Enumerate extensionsCompute all extensions for the selected semantics.
Test acceptanceCheck whether an argument is accepted credulously or skeptically.

Problems use probo's syntax. The framework is provided in Trivial Graph Format (TGF).

GR · groundedCO · completePR · preferredST · stable

Basic usage

Run the solver from a terminal, supplying the executable, input file, output format and problem code.

Command pattern

The executable depends on your platform; the input file must be in TGF format.

<command> -f <inputfile> -p <problem> -fo tgf [-a <argumenttocheck>]
  • Linux 64-bit: totle
  • Windows 32-bit: totle32.exe
  • Windows 64-bit: totle64.exe

Problem codes

Replace σ with GR, CO, PR or ST.

SE-σ compute one extension EE-σ compute all extensions DC-σ accepted in some extension DS-σ accepted in all extensions

For single-extension semantics such as grounded, only SE-GR and DC-GR are available.

Run a framework in TGF

This example uses the framework shown in Figure 6.2 of “Efficient Computation of Argumentation Semantics”.

Input file · f6.2.tgf

TGF lists one argument per line, then a line containing #, followed by attack pairs: attacker first, target second. Each pair occupies one line.

a1
a2
a3
a4
a5
a6
a7
a8
a9
a10
#
a1 a2
a2 a1
a2 a5
a2 a3
a3 a4
a4 a5
a5 a6
a6 a5
a7 a6
a7 a7
a8 a7
a9 a8
a10 a9

Compute all preferred extensions

./totle -f f6.2.tgf -fo tgf -p EE-PR

Example result

[[a10,a2,a4,a6,a8], [a1,a10,a3,a6,a8], [a1,a10,a3,a5,a8]]
ArgumentCredulous · DC-PRSkeptical · DS-PR
a10YesYes
a2YesNo
a9NoNo
Argumentation framework from Figure 6.2, with arguments a1 to a10 and directed attack links
Example argumentation frameworkFigure 6.2 from the cited example source. Download its TGF input ↗
Diagram showing the overall execution behaviour of EqArgSolver
Solver execution overviewOriginal system diagram from the solver page.

GRIS and the Gabbay–Rodrigues Iteration Schema

The schema iteratively computes values for a numerical argumentation framework from initial values assigned to its arguments. It is essentially numerical and has applications beyond three-valued semantics.

Iteration schema

At each iteration, an argument’s value is updated using the values of its attackers. The sequence corrects the initial values and, in the limit, yields an extension in Dung’s sense. The equation and notation are shown in the original schema figure.

Equation defining the Gabbay–Rodrigues Iteration Schema
The Gabbay–Rodrigues Iteration Schema
V(X) = 1X is in (accepted)
0 < V(X) < 1X is undecided
V(X) = 0X is out (defeated)

If the initial values already form an extension, the sequence stabilises immediately. Otherwise, the schema corrects the values, and the resulting extension depends on the initial values. The associated paper discusses the relationship between the final extension and admissible sets represented by those initial values.

Python implementation

The gris.py script takes an augmented TGF file, where each argument has an initial numerical value, and iterates until a threshold is met.

python3 gris.py [example.tgf]

Example input

Arguments are followed by their starting values; attack pairs follow the # separator.

a 0.5 b 0.5 c 0.5 d 0.5 # a b b a b d c d
Example of initial and approximated final argument values produced by gris.py
GRIS output exampleInitial values and approximated final values for the simple framework.
Second argumentation framework example with initial and approximated final values
GRIS output exampleA second framework and its initial and approximated final values.

Performance and ongoing work

totle is used as a laboratory for experimenting with algorithms for argumentation reasoning and is continually updated.

Current limitation: Preferred-semantics problems can be challenging for very large frameworks, especially those with large strongly connected components (SCCs), many non-trivial SCCs, or complex SCCs close to source nodes in the SCC graph. The original page reports successful runs on less complex frameworks with up to 2,500,000 arguments.

The latest version described on the original page uses an improved algorithm, fixes bugs and is more efficient than the version submitted to ICCMA 2019. A parallel algorithm for computing extensions was noted as in development. The current totle version is not generally distributed; a copy may be requested by email.

Papers, code & competition

Descriptions of the solver algorithms, the GRIS implementation and related competition material.

Request a copy of totle

The latest version is available on request.

Email Odinaldo ↗