<?xml version="1.0" encoding="UTF-8"?>
<TEI xml:space="preserve" xmlns="http://www.tei-c.org/ns/1.0" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://www.tei-c.org/ns/1.0 https://raw.githubusercontent.com/kermitt2/grobid/master/grobid-home/schemas/xsd/Grobid.xsd"
 xmlns:xlink="http://www.w3.org/1999/xlink">
	<teiHeader xml:lang="en">
		<fileDesc>
			<titleStmt>
				<title level="a" type="main">Extended abstract: 𝑓 𝐶𝐴𝑆𝑃 -A forgetting technique for XAI based on goal-directed constraint ASP models</title>
			</titleStmt>
			<publicationStmt>
				<publisher/>
				<availability status="unknown"><licence/></availability>
			</publicationStmt>
			<sourceDesc>
				<biblStruct>
					<analytic>
						<author>
							<persName><forename type="first">Luciana</forename><surname>Fidilio-Allende</surname></persName>
							<affiliation key="aff0">
								<orgName type="department">CETINIA</orgName>
								<orgName type="institution">Universidad Rey Juan Carlos</orgName>
								<address>
									<settlement>Móstoles</settlement>
									<country key="ES">Spain</country>
								</address>
							</affiliation>
						</author>
						<author role="corresp">
							<persName><forename type="first">Joaquin</forename><surname>Arias</surname></persName>
							<email>joaquin.arias@urjc.es</email>
							<affiliation key="aff0">
								<orgName type="department">CETINIA</orgName>
								<orgName type="institution">Universidad Rey Juan Carlos</orgName>
								<address>
									<settlement>Móstoles</settlement>
									<country key="ES">Spain</country>
								</address>
							</affiliation>
						</author>
						<title level="a" type="main">Extended abstract: 𝑓 𝐶𝐴𝑆𝑃 -A forgetting technique for XAI based on goal-directed constraint ASP models</title>
					</analytic>
					<monogr>
						<idno type="ISSN">1613-0073</idno>
					</monogr>
					<idno type="MD5">5A8451DF75E6DDCF8EED25D9CB50AF4A</idno>
				</biblStruct>
			</sourceDesc>
		</fileDesc>
		<encodingDesc>
			<appInfo>
				<application version="0.7.2" ident="GROBID" when="2025-04-23T19:51+0000">
					<desc>GROBID - A machine learning software for extracting information from scholarly documents</desc>
					<ref target="https://github.com/kermitt2/grobid"/>
				</application>
			</appInfo>
		</encodingDesc>
		<profileDesc>
			<textClass>
				<keywords>
					<term>Privacy</term>
					<term>Value Awareness</term>
					<term>XAI</term>
					<term>ASP</term>
					<term>s(CASP)</term>
					<term>Forgetting {a</term>
					<term>p}</term>
					<term>{b</term>
					<term>q} {a</term>
					<term>neg_2}</term>
					<term>{b</term>
					<term>neg_1} {c</term>
					<term>neg_1}</term>
				</keywords>
			</textClass>
			<abstract>
<div xmlns="http://www.tei-c.org/ns/1.0"><p>The automation of all sorts of processes through Artificial Intelligence (AI) systems has made significant progress. More recently, whether through self-regulation and soft law such as guidelines or through legal regulation (e.g., the General Data Protection Regulation (GDPR) or the Regulation on AI, both by the EU), it has become apparent that this development needs to be accompanied by measures that safeguard the fundamental rights and safety of people affected by AI systems. In this sense, Explainable Artificial Intelligence (XAI) [2] is of foremost importance to design trustworthy systems. Proposals such as s(LAW) <ref type="bibr" target="#b2">[3]</ref>, which are based on Answer Set Programming, have shown their ability to model values and explain the reasons for their decisions, thanks to their rule-based models. But these explanations could lead to the disclosure of sensitive information, such as details about victims of gender-based violence. This could violate the right to privacy and confidentiality, or even cause legal issues, among other concerns. Although explanations can be adjusted to prevent leaks, e.g., using the s(CASP) framework to control which elements are shown and/or hidden [4], adapting the models requires the application of techniques such as forgetting (variable elimination) to avoid revealing sensitive information during an audit. However, current forgetting techniques are mostly only applied in propositional ASP programs, and they have limitations dealing with even loops.</p><p>In this work, we present 𝑓 𝐶𝐴𝑆𝑃 , a new forgetting technique that supports the presence of nonstratified negations in Constraint Answer Set Programs. 𝑓 𝐶𝐴𝑆𝑃 is based on the dual rules of s(CASP), a goal-directed CASP reasoner, and therefore, we believe that it can be applied to generic CASP programs without grounding. We have validated our proposal by solving flagship examples from the literature, and we plan to use this technique in the context of school places allocation while preserving the privacy of victims of gender-based violence.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Table 1</head><p>Comparison of the more relevant forgetting operators vs. 𝑓 𝐶𝐴𝑆𝑃</p></div>
			</abstract>
		</profileDesc>
	</teiHeader>
	<text xml:lang="en">
		<body>
<div xmlns="http://www.tei-c.org/ns/1.0"><p>In Table <ref type="table">1</ref>, we compare f CASP with other relevant operators such as those described in <ref type="bibr" target="#b8">[9]</ref> and <ref type="bibr" target="#b9">[10]</ref>, evaluating its preliminary performance and properties. Through validation using literature examples, we believe that 𝑓 𝐶𝐴𝑆𝑃 can generate programs with the same answer sets, even when additional facts (when complying with UP) or propositional rules (when complying with SP) are added to both programs, avoiding the removed or auxiliary predicates. Additionally, we have tested the operator with programs involving even loops, and it can generate equivalent programs regardless of the order in which predicates are removed, that is, it is commutative. In the future, there is potential to extend it to programs with variables and constraints, thanks to the use of s(CASP) dual rules.</p><p>The preliminary design of the algorithm involves three steps repeated iteratively for each predicate marked to be forgotten, plus a final optional step.</p><p>Figure <ref type="figure" target="#fig_0">1</ref> shows an implementation sketch of the operator's steps:</p><p>• The first step (lines 2 − 4) involves adding auxiliary predicates (neg_x) and clauses when the predicate to be forgotten is part of an even loop, is a fact, or is a missing predicate. • The second step (lines 5 and 6) is generating the dual rule of the predicate to forget, being the dual rule the negated version of all the predicate's clauses. • The third step (lines 7 and 8) is forgetting the predicate, replacing its appearances with the content of its clauses and its negation with the content of its dual rule. • The final step (line 12) is transforming the double negations (not not) into even loops, as s(CASP)</p><p>does not explicitly support them. This step is optional.</p><p>We have performed an evaluation of f CASP using examples from the literature.</p><p>In the first example, we forget predicates in even loops. To conserve the symmetry in answer sets <ref type="bibr" target="#b10">[11]</ref>, (preserving the predicates not forgotten in the answer sets even when adding additional rules), it is necessary to add additional predicates (neg_x) as strong persistence (SP) cannot be achieved (in some cases) without them <ref type="bibr" target="#b11">[12,</ref><ref type="bibr" target="#b7">8]</ref>. Below we can see the result of forgetting p and q, and the answer sets of both the original program and the generated one. As they have the same answer sets (ignoring the forgotten and auxiliary predicates), the programs are equivalent.</p><p>To evaluate the practicality of 𝑓 𝐶𝐴𝑆𝑃 , we have defined two (real) use cases in which we use the operator to remove private and confidential information.</p><p>In the first use case, we model the Spanish Organic Law 2/2004, May 3, Articles 116 and 117 and the Spanish Constitution Articles 27 and 149.1.30. This legislation establishes the criteria used for assigning public school places in the Comunidad de Madrid, Spain, when the number of applications for a given center is greater than the offer. After applying 𝑓 𝐶𝐴𝑆𝑃 , we can successfully remove the students' medical, socio-economical and gender-based violence related private information while conserving the original model decisions and explainability, complying with the need for transparency required by the applicable regulations such as the recent European AI Act.</p><p>In the second use case <ref type="bibr" target="#b12">[13]</ref>, we propose an automated decision-making system for energy assignment in agricultural cooperatives. In this case, the energy is assigned based on how fairly the workers are paid, pondering their salary and productivity, which are considered confidential and, in some cases, private. After applying forgetting, we can preserve the confidentiality of the stakeholders without affecting the decisions and justifications of the model, crucial to make these answers trustworthy.</p><p>In conclusion, we have presented a new forgetting operator, 𝑓 𝐶𝐴𝑆𝑃 , designed to work with goaldirected Answer Set Programs and support dual rules and double negations while being commutative. As potential lines of work for the future, we have identified the extension of the algorithm to support variables and constraints, formally determining and proving 𝑓 𝐶𝐴𝑆𝑃 's properties, and applying the operator to real use cases.</p></div><figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_0"><head>Figure 1 :</head><label>1</label><figDesc>Figure 1: Sketch of the implementation of the predicate f_casp/4 1 f_casp (Flag , [Pred|Preds], P_0, P_Forgetting) :-</figDesc></figure>
		</body>
		<back>
			<div type="annex">
<div xmlns="http://www.tei-c.org/ns/1.0"><p>In the second example, we forget predicates present in double negations. This case cannot be resolved without the use of additional predicates. As we can see on the next example, both the original program and the one generated with 𝑓 𝐶𝐴𝑆𝑃 forgetting p are equivalent. 𝑃 2 = Example 4 from <ref type="bibr" target="#b10">[11]</ref> {p, q}, {r} 1 p :-not not p.  𝑓 𝐶𝐴𝑆𝑃 (𝑃 2 , {𝑝}) {q}, {r, neg_1} 1 q :-not neg_1.  In the third example we forget multiple predicates regardless of the order. <ref type="bibr" target="#b6">[7]</ref> {p}, {q} 1 a :-p, q. 2 q :-not p.  In the final example, we compare the performance of 𝑓 𝐶𝐴𝑆𝑃 with 𝑓 𝐴𝐶 , the operator that is closer to the desired properties. As we can see, 𝑓 𝐴𝐶 may generate a program that outputs redundant answers, while the one generated with 𝑓 𝐶𝐴𝑆𝑃 preserves the original count. 𝑃 4 = Example 5 from <ref type="bibr" target="#b7">[8]</ref> {c} 1 q :-not not q, b.  𝑓 𝐴𝐶 (𝑃 4 , {𝑞}).   </p></div>			</div>
			<div type="references">

				<listBibl>

<biblStruct xml:id="b0">
	<analytic>
		<title level="a" type="main">𝑓 𝐶𝐴𝑆𝑃 : A forgetting technique for XAI based on goal-directed constraint ASP models</title>
		<author>
			<persName><forename type="first">L</forename><surname>Fidilio-Allende</surname></persName>
		</author>
		<author>
			<persName><forename type="first">J</forename><surname>Arias</surname></persName>
		</author>
		<ptr target="https://hdl.handle.net/11705/PROLE/2024/13" />
	</analytic>
	<monogr>
		<title level="m">XXIII Jornadas sobre Programación y Lenguajes (PROLE)</title>
				<imprint>
			<date type="published" when="2024">2024</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b1">
	<analytic>
		<title level="a" type="main">DARPA&apos;s Explainable Artificial Intelligence (XAI) Program</title>
		<author>
			<persName><forename type="first">D</forename><surname>Gunning</surname></persName>
		</author>
		<author>
			<persName><forename type="first">D</forename><surname>Aha</surname></persName>
		</author>
		<idno type="DOI">10.1609/aimag.v40i2.2850</idno>
	</analytic>
	<monogr>
		<title level="j">AI Magazine</title>
		<imprint>
			<biblScope unit="volume">40</biblScope>
			<biblScope unit="page" from="44" to="58" />
			<date type="published" when="2019">2019</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b2">
	<analytic>
		<title level="a" type="main">Automated legal reasoning with discretion to act using s</title>
		<author>
			<persName><forename type="first">J</forename><surname>Arias</surname></persName>
		</author>
		<author>
			<persName><forename type="first">M</forename><surname>Moreno-Rebato</surname></persName>
		</author>
		<author>
			<persName><forename type="first">J</forename><forename type="middle">A</forename><surname>Rodriguez-García</surname></persName>
		</author>
		<author>
			<persName><forename type="first">S</forename><surname>Ossowski</surname></persName>
		</author>
		<idno type="DOI">10.1007/s10506-023-09376-5</idno>
	</analytic>
	<monogr>
		<title level="j">LAW</title>
		<imprint>
			<date type="published" when="2023">2023</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b3">
	<monogr>
		<title level="m" type="main">Justifications for goal-directed constraint answer set programming</title>
		<author>
			<persName><forename type="first">J</forename><surname>Arias</surname></persName>
		</author>
		<author>
			<persName><forename type="first">M</forename><surname>Carro</surname></persName>
		</author>
		<author>
			<persName><forename type="first">Z</forename><surname>Chen</surname></persName>
		</author>
		<author>
			<persName><forename type="first">G</forename><surname>Gupta</surname></persName>
		</author>
		<idno type="DOI">10.4204/EPTCS.325.12</idno>
		<imprint>
			<date type="published" when="2020">2020</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b4">
	<analytic>
		<title level="a" type="main">On Syntactic Forgetting under Uniform Equivalence</title>
		<author>
			<persName><forename type="first">R</forename><surname>Gonçalves</surname></persName>
		</author>
		<author>
			<persName><forename type="first">T</forename><surname>Janhunen</surname></persName>
		</author>
		<author>
			<persName><forename type="first">M</forename><surname>Knorr</surname></persName>
		</author>
		<author>
			<persName><forename type="first">J</forename><surname>Leite</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="m">European Conference on Logics in Artificial Intelligence</title>
				<imprint>
			<publisher>Springer</publisher>
			<date type="published" when="2021">2021</date>
			<biblScope unit="page" from="297" to="312" />
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b5">
	<monogr>
		<title level="m" type="main">When you must forget: Beyond Strong Persistence when Forgetting in Answer Set Programming</title>
		<author>
			<persName><forename type="first">R</forename><surname>Gonçalves</surname></persName>
		</author>
		<author>
			<persName><forename type="first">M</forename><surname>Knorr</surname></persName>
		</author>
		<author>
			<persName><forename type="first">J</forename><surname>Leite</surname></persName>
		</author>
		<author>
			<persName><forename type="first">S</forename><surname>Woltran</surname></persName>
		</author>
		<imprint>
			<date type="published" when="2017">2017</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b6">
	<analytic>
		<title level="a" type="main">On Syntactic Forgetting with Strong Persistence</title>
		<author>
			<persName><forename type="first">M</forename><surname>Berthold</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="m">Proceedings of the Int. Conf. on Principles of Knowledge Representation and Reasoning</title>
				<meeting>the Int. Conf. on Principles of Knowledge Representation and Reasoning</meeting>
		<imprint>
			<date type="published" when="2022">2022</date>
			<biblScope unit="volume">19</biblScope>
			<biblScope unit="page" from="43" to="52" />
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b7">
	<monogr>
		<title level="m" type="main">Forgetting in Answer Set Programming with Anonymous Cycles</title>
		<author>
			<persName><forename type="first">M</forename><surname>Berthold</surname></persName>
		</author>
		<author>
			<persName><forename type="first">R</forename><surname>Gonçalves</surname></persName>
		</author>
		<author>
			<persName><forename type="first">M</forename><surname>Knorr</surname></persName>
		</author>
		<author>
			<persName><forename type="first">J</forename><surname>Leite</surname></persName>
		</author>
		<idno type="DOI">10.1007/978-3-030-30244-3_46</idno>
		<imprint>
			<date type="published" when="2019">2019</date>
			<publisher>Springer</publisher>
			<biblScope unit="page" from="552" to="565" />
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b8">
	<monogr>
		<title level="m" type="main">A Brief Survey on Forgetting from a Knowledge Representation and Reasoning Perspective</title>
		<author>
			<persName><forename type="first">T</forename><surname>Eiter</surname></persName>
		</author>
		<author>
			<persName><forename type="first">G</forename><surname>Kern-Isberner</surname></persName>
		</author>
		<imprint>
			<date type="published" when="2019">2019</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b9">
	<monogr>
		<title level="m" type="main">Forgetting in Answer Set Programming-A Survey</title>
		<author>
			<persName><forename type="first">R</forename><surname>Gonçalves</surname></persName>
		</author>
		<author>
			<persName><forename type="first">M</forename><surname>Knorr</surname></persName>
		</author>
		<author>
			<persName><forename type="first">J</forename><surname>Leite</surname></persName>
		</author>
		<imprint>
			<date type="published" when="2023">2023</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b10">
	<analytic>
		<title level="a" type="main">Preserving Strong Equivalence while Forgetting</title>
		<author>
			<persName><forename type="first">M</forename><surname>Knorr</surname></persName>
		</author>
		<author>
			<persName><forename type="first">J</forename><forename type="middle">J</forename><surname>Alferes</surname></persName>
		</author>
		<idno type="DOI">10.1007/978-3-319-11558-0_29</idno>
	</analytic>
	<monogr>
		<title level="m">Logics in Artificial Intelligence: 14th European Conference, JELIA 2014</title>
				<imprint>
			<publisher>Springer</publisher>
			<date type="published" when="2014">2014</date>
			<biblScope unit="page" from="412" to="425" />
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b11">
	<analytic>
		<title level="a" type="main">You can&apos;t always forget what you want: on the limits of forgetting in Answer Set Programming</title>
		<author>
			<persName><forename type="first">R</forename><surname>Gonçalves</surname></persName>
		</author>
		<author>
			<persName><forename type="first">M</forename><surname>Knorr</surname></persName>
		</author>
		<author>
			<persName><forename type="first">J</forename><surname>Leite</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="m">Proceedings of the Twenty-second European Conference on Artificial Intelligence</title>
				<meeting>the Twenty-second European Conference on Artificial Intelligence</meeting>
		<imprint>
			<date type="published" when="2016">2016</date>
			<biblScope unit="page" from="957" to="965" />
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b12">
	<analytic>
		<title level="a" type="main">Private-safe (logic-based) decision systems for energy assignment in agricultural cooperatives</title>
		<author>
			<persName><forename type="first">L</forename><surname>Fidilio-Allende</surname></persName>
		</author>
		<author>
			<persName><forename type="first">J</forename><surname>Arias</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="m">Highlights in Practical Applications of Agents, Multi-Agent Systems, and Cognitive Mimetics. The PAAMS Collection: International Workshops of PAAMS 2024</title>
				<meeting><address><addrLine>Salamanca, Spain</addrLine></address></meeting>
		<imprint>
			<publisher>Springer</publisher>
			<date type="published" when="2024">June 26-28, 2024. 2024</date>
		</imprint>
	</monogr>
</biblStruct>

				</listBibl>
			</div>
		</back>
	</text>
</TEI>
