TLDR: AF-Xray is a new platform that enhances the understanding of complex legal arguments represented in Argumentation Frameworks (AFs). It addresses the challenge of ambiguity in AFs by providing novel layered visualizations, categorizing attack types, and, most importantly, identifying ‘critical attacks’ whose temporary suspension resolves undecided arguments. This allows users to visually explore and explain different legal outcomes, making the reasoning process more transparent and accessible for both legal professionals and non-experts.
Understanding complex legal arguments can be a daunting task, especially when those arguments are represented in formal structures known as Argumentation Frameworks (AFs). These frameworks are powerful tools for representing and reasoning about case law, but they often present a challenge: ambiguity. When an argument’s status is ‘undecided’ (neither accepted nor defeated), it means the framework is ambiguous, requiring additional assumptions or choices to resolve these uncertainties.
Traditional approaches, like Value-based and Extended AFs, have been used to resolve such ambiguities by discounting certain attack edges, often based on social value preferences. However, for individuals not deeply familiar with AFs, it can be difficult to pinpoint the exact reasons—the ‘critical attacks’—that cause this ambiguity, or to visualize the framework’s semantics in an easily understandable way.
Enter AF-Xray, a novel platform designed to demystify these complex legal argumentation frameworks. Building upon the existing PyArg system, AF-Xray offers new analysis and visualization components that delve deeper into the structure of AFs. Its primary goal is to explain the acceptance of arguments under skeptical reasoning and to identify those crucial ‘critical attacks’ whose temporary suspension can resolve undecided arguments under credulous reasoning.
AF-Xray introduces several key innovations to achieve this clarity:
Layered Visualizations
One of AF-Xray’s standout features is its novel layered visualization. This layering is based on the ‘length’ or ‘remoteness’ of argument nodes, which helps in understanding the derivation structure of the grounded semantics. Arguments are colored based on their status: blue for ‘in’ (accepted), orange for ‘out’ (defeated), and yellow for ‘undecided’. The bottom layer typically shows arguments that are trivially ‘in’ because they have no attackers, with subsequent layers showing arguments defeated by lower-layer attackers. Undecided arguments, resulting from unfounded attack-chains, are displayed separately, making the well-founded derivation structure explicit.
Visualizing Attack Types
AF-Xray also categorizes and visualizes attack edges based on their role in determining argument labels. ‘Successful’ attacks are shown in blue, further classified as ‘primary’ (solid blue) or ‘secondary’ (dashed blue). Secondary attacks point to arguments whose defeat was established in a lower layer. ‘Blunders’—dotted gray edges—are attacks irrelevant to an argument’s acceptance status and are de-emphasized, allowing users to focus on the most critical interactions.
Also Read:
- Measuring Argument Strength in Assumption-Based Reasoning
- Making AI Decisions Adaptable: A New Approach to User-Driven Adjustments
Resolving Ambiguity and Explaining Credulous Solutions
To tackle the ‘undecided’ portion of a 3-valued grounded solution, AF-Xray allows users to explore less skeptical 2-valued semantics, such as stable or preferred solutions. These alternative solutions represent different choices for resolving circular conflicts that lead to ambiguities. AF-Xray depicts these solutions as hybrid overlays on the original 3-valued grounded solution. The colors of the stable solutions are visualized ‘on top’ of the grounded solution, with lighter colors and dashed outlines marking the original undecided subgraph, showing how these arguments are now resolved.
Perhaps most powerfully, AF-Xray explains these credulous solutions by identifying ‘critical attacks’. These are minimal sets of edges that, if temporarily suspended, will result in every previously undecided argument becoming either ‘in’ or ‘out’. This feature allows users to pinpoint exactly which attacks and arguments are crucial to support a desired outcome, providing a deeper semantic analysis than many state-of-the-art systems. Unlike earlier approaches that assume users already know which edges to attack, AF-Xray systematically generates all such sets of critical edges.
The platform facilitates new use cases for legal reasoning, complementing existing methods. For instance, it can illustrate the mutual attack between arguments like ‘mere pursuit is not enough’ and ‘bodily seizure is not necessary’ in the context of real-world cases like Pierson v. Post. Users can toggle between different stable solutions and view the critical attack sets that explain each legally possible outcome, supporting the teleological structure of legal reasoning where different assumptions can lead to different justified conclusions.
AF-Xray represents a significant step forward in making complex legal argumentation more transparent and understandable for both experts and non-experts, offering a powerful visual and analytical tool for exploring and resolving ambiguities in legal reasoning. To learn more, you can access the full research paper here.


