Policy-Embedded Graph Expansion: Networked HIV Testing with Diffusion-Driven Network Samples
Proceedings of the Thirty-Fifth International Joint Conference on Artificial Intelligence. AI and Social Good. Pages 7248-7256.
https://doi.org/10.24963/ijcai.2026/806
Keywords
- Multidisciplinary Topics and Applications: Multidisciplinary Topics and Applications
Abstract
HIV is a retrovirus that attacks the human immune system and can lead to death without proper treatment. In collaboration with the WHO and the University of Witwatersrand, we study how to improve the efficiency of HIV testing with the goal of eventual deployment, directly supporting progress toward UN Sustainable Development Goal 3.3. While prior work has demonstrated the promise of intelligent algorithms for sequential, network-based HIV testing, existing approaches rely on assumptions that are impractical in our real-world implementations. Here, we study sequential testing on incrementally revealed disease networks and introduce Policy-Embedded Graph Expansion (PEGE), a novel framework that directly embeds a generative distribution over graph expansions into the decision-making policy rather than attempting explicit topological reconstruction. We further propose Dynamics-Driven Branching (DDB), a diffusion-based graph expansion model that supports decision making in PEGE and is designed for data-limited settings where forest structures arise naturally, as in our real-world referral process. Experiments on real HIV transmission networks show that the combined approach (PEGE + DDB) consistently outperforms baselines (e.g., 17.3% improvement in discounted reward and 15.4% more HIV detections with 25% of the population tested) and explore key tradeoffs that drive solution quality.
- [Chiotellis and Cremers, 2020] Ioannis Chiotellis and Daniel Cremers. Neural online graph exploration. arXiv preprint arXiv:2012.03345, 2020.
- [Choo et al., 2025] Davin Choo, Yuqi Pan, Tonghan Wang, Milind Tambe, Alastair van Heerden, and Cheryl Johnson. Adaptive Frontier Exploration on Graphs with Applica- tions to Network-Based Disease Testing. Conference on Neural Information Processing Systems (NeurIPS), 2025.
- [Cui et al., 2021] Yapeng Cui, Shunjiang Ni, and Shifei Shen. A network-based model to explore the role of test- ing in the epidemiological control of the COVID-19 pan- demic. BMC Infectious Diseases, 21(1):58, 2021.
- [Cui et al., 2024] Xinru Cui, Qiming Liu, Zhe Liu, and Hes- heng Wang. Frontier-enhanced topological memory with improved exploration awareness for embodied visual nav- igation. In European Conference on Computer Vision, pages 296-313. Springer, 2024.
- [Eberle et al., 2022] Franziska Eberle, Alexander Linder- mayr, Nicole Megow, Lukas Nölke, and Jens Schlöter. Ro- bustification of online graph exploration methods. In Pro- ceedings of the AAAI Conference on Artificial Intelligence, volume 36, pages 9732-9740, 2022.
- [Fey and Lenssen, 2019] Matthias Fey and Jan Eric Lenssen. Fast graph representation learning with PyTorch Geomet- ric. Workshop on Representation Learning on Graphs and Manifolds, ICLR, 2019. [FHI 360, nd] FHI 360. LINKAGES En- hanced Peer Outreach Approach, n.d. Available at https://www.fhi360.org/wp- content/uploads/drupal/documents/resource-linkages- accelerating-implementation.PDF. Accessed June 12th, 2026. Link
- [Gilmer et al., 2017] Justin Gilmer, Samuel S Schoenholz, Patrick F Riley, Oriol Vinyals, and George E Dahl. Neural message passing for quantum chemistry. In International Conference on Machine Learning (ICML), pages 1263- 1272. Pmlr, 2017.
- [Jubilee et al., 2019] Makhahliso Jubilee, Faith Jiyeong Park, Knowledge Chipango, Kenoakae Pule, Albert Machinda, and Noah Taruberekera. HIV index testing to improve HIV positivity rate and linkage to care and treat- ment of sexual partners, adolescents and children of PL- HIV in Lesotho. PLoS One, 14(3):e0212762, 2019.
- [Juher et al., 2017] David Juher, Joan Saldaña, Robert Kohn, Kyle Bernstein, and Caterina Scoglio. Network-centric in- terventions to contain the syphilis epidemic in San Fran- cisco. Scientific Reports, 7(1):6464, 2017.
- [Keidar and Kaminka, 2014] Matan Keidar and Gal A Kaminka. Efficient frontier detection for robot explo- ration. The International Journal of Robotics Research, 33(2):215-236, 2014.
- [Keller and Oldale, 2003] Godfrey Keller and Alison Oldale. Branching bandits: a sequential search process with corre- lated pay-offs. Journal of Economic Theory, 113(2):302- 315, 2003.
- [Kong et al., 2026] Lingkai Kong, Anagha Satish, Hezi Jiang, Akseli Kangaslahti, Andrew Ma, Wenbo Chen, Mingxiao Song, Lily Xu, and Milind Tambe. Latent Spherical Flow Policy for Reinforcement Learning with Combinatorial Actions. International Conference on Ma- chine Learning (ICML), 2026.
- [Mattie et al., 2022] Heather Mattie, Ravi Goyal, Victor De Gruttola, and Jukka-Pekka Onnela. A review of net- work models for HIV spread. JAIDS Journal of Acquired Immune Deficiency Syndromes, pages 10-1097, 2022.
- [McFall et al., 2021] Allison M McFall, Bryan Lau, Carl Latkin, Aylur K Srikrishnan, Santhanam Anand, Can- jeevaram K Vasudevan, Shruti H Mehta, and Sunil S Solomon. Optimizing respondent-driven sampling to find undiagnosed HIV-infected people who inject drugs. AIDS, 35(3):485-494, 2021.
- [Megow et al., 2012] Nicole Megow, Kurt Mehlhorn, and Pascal Schweitzer. Online graph exploration: New results on old and new algorithms. Theoretical Computer Science, 463:62-72, 2012.
- [Mnih et al., 2015] Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Andrei A Rusu, Joel Veness, Marc G Belle- mare, Alex Graves, Martin Riedmiller, Andreas K Fidje- land, Georg Ostrovski, et al. Human-level control through deep reinforcement learning. Nature, 518(7540):529-533, 2015.
- [Monroe-Wise et al., 2025] Aliza Monroe-Wise, Magdalena Barr-DiChiara, Antons Mozalevskis, Busisiwe Msimanga, Maeve Brito de Mello, Kafui Senya, Niklas Luhmann, Cheryl Case Johnson, and Rachel Baggaley. Can network- based testing services have an impact beyond testing for HIV? Sexual Health, 22(2):SH24027, 2025.
- [Morgan et al., 2019] Ethan Morgan, Britt Skaathun, Geor- gios K Nikolopoulos, Dimitrios Paraskevis, Leslie D Williams, Pavlo Smyrnov, Samuel R Friedman, and John A Schneider. A network intervention to locate newly HIV infected persons within MSM networks in Chicago. AIDS and Behavior, 23(1):15-20, 2019.
- [Morris and Rothenberg, 2011] Martina Morris and Richard Rothenberg. HIV Transmission Network Metastudy Project: An Archive of Data From Eight Network Stud- ies, 1988-2001 (ICPSR 22140). ICPSR Data Holdings, 2011. Available at doi.org/10.3886/ICPSR22140.v1. DOI
- [Murai et al., 2018] Fabricio Murai, Diogo Rennó, Bruno Ribeiro, Gisele L Pappa, Don Towsley, and Krista Gile. Selective harvesting over networks. Data Mining and Knowledge Discovery, 32(1):187-217, 2018.
- [Nikolopoulos et al., 2016] Georgios K Nikolopoulos, Eirini Pavlitina, Stephen Q Muth, John Schneider, Mina Psi- chogiou, Leslie D Williams, Dimitrios Paraskevis, Vana Sypsa, Gkikas Magiorkinis, Pavlo Smyrnov, et al. A net- work intervention that locates and intervenes with recently HIV-infected persons: The Transmission Reduction Inter- vention Project (TRIP). Scientific Reports, 6(1):38100, 2016.
- [Pan et al., 2026] Yuqi Pan, Davin Choo, Haichuan Wang, Milind Tambe, Alastair van Heerden, and Cheryl John- son. Adaptive Multi-Round Allocation with Stochastic Arrivals. International Conference on Machine Learning (ICML), 2026.
- [Pedregosa et al., 2011] Fabian Pedregosa, Gaël Varoquaux, Alexandre Gramfort, Vincent Michel, Bertrand Thirion, Olivier Grisel, Mathieu Blondel, Peter Prettenhofer, Ron Weiss, Vincent Dubourg, et al. Scikit-learn: Machine Learning in Python. Journal of Machine Learning Re- search, 12:2825-2830, 2011.
- [Peng and Chen, 2019] Binghui Peng and Wei Chen. Adap- tive influence maximization with myopic feedback. Advances in Neural Information Processing Systems (NeurIPS), 32, 2019.
- [Sewell, 2022] Daniel K Sewell. Leveraging network struc- ture to improve pooled testing efficiency. Journal of the Royal Statistical Society Series C: Applied Statistics, 71(5):1648-1662, 2022.
- [Silva and Singh, 2021] Arlei Silva and Ambuj Singh. Group testing on a network. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 35, pages 4348-4356, 2021.
- [Srinivasavaradhan et al., 2024] Sundara Rajan Srini- vasavaradhan, Pavlos Nikolopoulos, Christina Fragouli, and Suhas Diggavi. Dynamic group testing to control and monitor disease progression in a population. IEEE Journal on Selected Areas in Information Theory, 2024.
- [Stein et al., 2018] Mart L Stein, Vincent Buskens, Pe- ter GM Van Der Heijden, Jim E Van Steenbergen, Albert Wong, Martin CJ Bootsma, and Mirjam EE Kretzschmar. A stochastic simulation model to study respondent-driven recruitment. PLOS One, 13(11):e0207507, 2018.
- [Tan et al., 2025] Chee Wei Tan, Pei-Duo Yu, Siya Chen, and H Vincent Poor. DeepTrace: Learning to optimize contact tracing in epidemic networks with graph neural networks. IEEE Transactions on Signal and Information Processing over Networks, 11:97-113, 2025.
- [Ten Brink et al., 2025] Debra Ten Brink, Rowan Martin- Hughes, Anna L Bowring, Nisaa Wulan, Kelvin Burke, Tom Tidhar, Shona Dalal, and Nick Scott. Impact of an in- ternational HIV funding crisis on HIV infections and mor- tality in low-income and middle-income countries: a mod- elling study. The Lancet HIV, 12(5):e346-e354, 2025.
- [Tran et al., 2024] Cong Tran, Won-Yong Shin, and An- dreas Spitz. IM-META: Influence maximization us- ing node metadata in networks with unknown topology. IEEE Transactions on Network Science and Engineering, 11(3):3148-3160, 2024.
- [Tsui et al., 2024] Joseph L.-H. Tsui, Mengyan Zhang, Prathyush Sambaturu, Simon Busch-Moreno, Marc A. Suchard, Oliver G. Pybus, Seth Flaxman, Elizaveta Se- menova, and Moritz U. G. Kraemer. Optimal disease surveillance with graph-based Active Learning. medRxiv, 2024. [UNAIDS, 2022] UNAIDS. Political Declaration on HIV and AIDS: Summary of 10 Targets, 2022. Available at https://www.unaids.org/en/resources/documents/2022/ political-declaration summary-10-targets. Accessed June 12th, 2026. Link
- [UNAIDS, 2024] UNAIDS. 2024 global AIDS report -The Urgency of Now: AIDS at a Crossroads, 2024. Available at www.unaids.org/en/resources/documents/2024/global- aids-update-2024. Accessed June 12th, 2026. Link
- United Nations, nd] United Nations. Goal 3: Good Health and Well-being -Targets and Indicators, n.d. Available at https://sdgs.un.org/goals/goal3#targets and indicators. Accessed June 12th, 2026. Link
- [Wang et al., 2013] Xuezhi Wang, Roman Garnett, and Jeff Schneider. Active search on graphs. In Proceedings of the 19th ACM SIGKDD International Conference on Knowl- edge Discovery and Data Mining, pages 731-738, 2013.
- [Wilder et al., 2019] Bryan Wilder, Eric Ewing, Bistra Dilk- ina, and Milind Tambe. End to end learning and optimiza- tion on graphs. Advances in Neural Information Process- ing Systems (NeurIPS), 32, 2019.
- [Wilder et al., 2021] Bryan Wilder, Laura Onasch-Vera, Graham Diguiseppi, Robin Petering, Chyna Hill, Amulya Yadav, Eric Rice, and Milind Tambe. Clinical trial of an AI-augmented intervention for HIV prevention in youth experiencing homelessness. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 35, pages 14948-14956, 2021.
- [World Health Organization, 2024] World Health Or- ganization. Consolidated guidelines on differen- tiated HIV testing services, 2024. Available at https://www.who.int/publications/i/item/9789240096394. Accessed June 12th, 2026. Link
- [Yuan and Tang, 2017] Jing Yuan and Shaojie Tang. No time to observe: Adaptive influence maximization with par- tial feedback. Proceedings of the Twenty-Sixth Interna- tional Joint Conference on Artificial Intelligence (IJCAI- 17), 2017. IJCAI
- [Zhang and Heath, 2023] Jingyi Zhang and Lenwood S Heath. Adaptive group testing strategy for infectious dis- eases using social contact graph partitions. Scientific Re- ports, 13(1):12102, 2023.
References were extracted automatically from the PDF and may contain errors.
Full text extracted automatically from the PDF; figures, tables and equations may differ. The PDF is the version of record.
1 Introduction
Human immunodeficiency virus (HIV) attacks the human immune system and, without treatment, can lead to acquired immunodeficiency syndrome (AIDS). Although there is currently no cure available for HIV, proper medical treatment can help control the virus and its spread. UNAIDS has proposed the 95-95-95 targets for HIV that aim for 95% of individuals with HIV to be aware of their status, 95% of those aware of their positive status to receive treatment, and 95% of people that are treated to reach viral suppression [UNAIDS, 2022]. However, a more recent UNAIDS report has shown that the first of these goals has proven to be the most difficult to reach, as about 1 in 7 individuals with HIV have not been diagnosed and 1.3 million new infections occur each year [UNAIDS, 2024]. Furthermore, with recent funding shifts, projections expect these gaps to grow further [Ten Brink et al., 2025]. Therefore, in line with the UN Sustainable Development Goal 3.3 [United Nations, nd], we aim to help people with HIV get tested as quickly as possible so that they can begin receiving treatment and eventually achieve viral suppression. This also facilitates efficient delivery of HIV prevention such as pre-exposure prophylaxis (PrEP) to high-risk individuals with connections to people who test positive.
In some countries like South Africa with high HIV prevalence, the concept of Universal Test and Treat (UTT) is in place. In UTT, everyone in a community is offered HIV testing and anyone who tests positive is immediately started on antiretroviral therapy (ART) to suppress the virus, reduce transmission, and improve individual health. However, testing resources such as test kits and staff can be limited in practice, so we need to develop approaches for determining an efficient testing order. The World Health Organization (WHO) has recommended network-based testing (NBT) for HIV [World Health Organization, 2024], which has proven to be effective in South Africa [Jubilee et al., 2019] and for infectious diseases beyond HIV (e.g., [Juher et al., 2017; Monroe-Wise et al., 2025]). The goal of NBT is to identify individuals at risk for STIs by engaging their social, sexual, or family networks. This strategy helps reach stigmatized populations that are often inaccessible via centralized outreach through peer referrals that leverage existing social trust between individuals. A prominent instantiation is the Enhanced Peer Outreach Approach (EPOA), where influential "seeds" from key populations use performance-based incentives to recruit high-risk contacts, effectively bridging the gap between hidden networks and clinical services [FHI 360, nd]. However, the complexity of NBT makes it difficult for humans to determine optimal decisions by hand, motivating the need for an intelligent decision-making framework. Prior work has proposed network-based testing strategies for HIV [Zhang and Heath, 2023; Choo et al., 2025] and other diseases like COVID-19 [Cui et al., 2021]. However, these approaches require full network observability, which is prohibitively expensive to collect in practice. While some work on unknown networks exists, many efforts target different testing problems [McFall et al., 2021] or base recommendations on time of infection data, which we do not have access to [Nikolopoulos et al., 2016; Morgan et al., 2019].
With these considerations in mind, we study the problem of allocating a limited number of HIV tests across individuals in a network to identify as many HIV-positive individuals as possible, as quickly as possible. Specifically, we consider a sequential frontier-based formulation (see Section 3) where the network is revealed incrementally as test recipients refer contacts to testing services. Furthermore, as in many health domains, we need to adapt to small and noisy training data, which is an especially difficult challenge when combined with the high-dimensional node covariates that we observe and the combinatorial explosions that are natural in graph-based problems.
1.1 Contributions
In this paper, we study how generative graph expansion can be embedded in the sequential decision-making loop to tackle the limited observability of the disease network and data limitations. Specifically, our contributions are:
- We formalize our HIV testing setting into a new sequential decision-making problem on incrementally revealed graphs, which has applications beyond HIV testing.
2) We introduce a new approach called Policy-Embedded Graph Expansion (PEGE) for solving sequential decisionmaking problems on incrementally revealed graphs. PEGE is the first approach to this class of problems that directly embeds a generative graph expansion model into the sequential decision-making policy loop, enabling intelligent decisions that respect network uncertainty without requiring full topological accuracy on hidden network reconstruction. PEGE is well suited for problems with data limitations and/or high variance in the realization of the unobservable graph.
- We further propose Dynamics Driven Branching (DDB), a new generative graph expansion model tailored to data-scarce settings where forest topologies occur naturally, e.g., our network referral system, that trains without graph-level supervision and supports decision-making in PEGE. DDB is a hybrid diffusion and Gaussian Process Regression (GPR) model that learns to capture the node-to-node dynamics that drive variation in the unobservable portion of the network.
4) We empirically evaluate our approach (PEGE + DDB), along with several baseline algorithms, showing that it outperforms all baselines on real-world HIV networks. We also provide additional experiments that highlight key tradeoffs that drive solution quality.
1.2 Interdisciplinary Collaboration and Impact
Our interdisciplinary research team consists of both AI researchers and domain experts from the WHO and the University of Witwatersrand. This work on network-based testing strategies for intelligent HIV diagnosis and prevention is a part of a larger ongoing collaboration to study how AI can be used to support HIV prevention and treatment efforts in South Africa. The domain experts on our team have played a crucial and iterative role in designing the problem formulation to make it as practical as possible, assessing real-world applicability of proposed approaches, and connecting our research to avenues for deployment.




We are currently aiming to deploy the work presented in this paper to have a real-world impact in improving our HIV testing efforts in South Africa. Figure 1 shows the team distributing HIV self-test kits in the region. Specifically, we want to integrate our methods to determine testing sequences in clinics with limited testing resources like test kits and staff.
2 RelatedWork
2.1 Network-Based Disease Testing
Network-based modeling of HIV and other infectious diseases is a well-studied field [Mattie et al., 2022]. One area is in algorithms for selecting groups from known networks for pooled testing to maximize resource efficiency [Silva and Singh, 2021; Sewell, 2022], with some efforts incorporating dynamically updating networks [Srinivasavaradhan et al., 2024]. Another effort has proposed a Gittins index-based policy for sequential frontier-based testing that we leverage in this work [Choo et al., 2025]. However, these efforts assume full network observability, which is often unrealistic in practice. Other studies on unknown networks have either focused on other types of testing-based problem formulations [McFall et al., 2021; Tan et al., 2025] or on higher-level strategies reliant on temporal infection data [Nikolopoulos et al., 2016; Morgan et al., 2019], which are not applicable to our setting.
2.2 Sequential Decision-Making on Incrementally Revealed Graphs
Many types of sequential decision-making problems on incrementally revealed graphs have close ties to the problem that we study in this work (see Section 3). For example, in active search on graphs, the goal is to query as many nodes with a hidden target label as possible given a budget and graph topology [Wang et al., 2013; Tsui et al., 2024]. Active Learning is a common approach to such problems. Other areas include online graph exploration, where the goal is to discover all nodes in an initially unknown graph with minimal path cost [Megow et al., 2012], for which learning-augmented and reinforcement learning approaches have been proposed [Eberle et al., 2022; Chiotellis and Cremers, 2020]. Another relevant problem class is influence maximization (IM) with partial or myopic feedback, where the goal is to sequentially select a small set of root/seed nodes in a network that maximizes influence (e.g., spread of information) in a network [Yuan and Tang, 2017; Peng and Chen, 2019]. In fact, IM has been used in real network-based HIV interventions [Wilder et al., 2021], although these algorithms do not apply to our settings since we cannot query the network to learn more information. One closely related effort in IM shows how partial graph observability can be aided via maximum likelihood link prediction conditioned on known node metadata [Tran et al., 2024], solving an intermediate learning task to address partial observability similarly to PEGE. Similar approaches have been proposed in online graph exploration [Tan et al., 2025]. Other efforts in robotic navigation have employed intermediate learning to supplement information about uncertain frontier nodes in a graph [Cui et al., 2024]. Decisionfocused learning is an alternative strategy where intermediate learning tasks such as link prediction can be directly optimized with respect to downstream decision-making outcomes [Wilder et al., 2019]. In contrast, in PEGE, the generated graph expansions represent a distribution rather than a single prediction. The model is not trained on intermediate topological accuracy or downstream decision quality; rather, its goal is to iteratively capture variation in decision-relevant areas of a graph, which change as the graph grows incrementally. This makes PEGE more suitable for high-dimensional and data-scarce settings with high variance in the realization of the unobservable graph, where topology prediction is challenging and learned decision-focused dynamics from training may not transfer well to test graphs.
3 ProblemDefinition
We first define a more abstract problem class and solution approach for generalization beyond HIV testing, and in Section 5 show how it applies to our HIV testing application. Specifically, we define Sequential Acting on Partially Observed Graphs (SAPOG) as a class of sequential decisionmaking problems in which an agent acts on vertices of a fixed but initially partially observed graph, with actions revealing additional structure and node information over time.
Throughout this section, we will use ⊆ to denote subsets and subgraphs, | · | to denote set cardinality, N(v) to refer to the neighbors of a node v, and \ to denote set subtraction. We will also refer to node attributes as covariates.
Definition 1 (Sequential Acting on Partially Observed Graphs (SAPOG)). A SAPOG instance is specified by the tuple P = (G,X,Y, s(0) ,R, γ, T), where the fixed ground truth graph G = (V,E) is revealed incrementally over T ∈ N≥1 rounds with respect to discount factor γ ∈ (0, 1]. Functions X : V → Rdc and Y : V → Rdℓ map each node to covariates and labels (e.g., binary HIV status) respectively. At any timestep t ∈ [T], the state s(t) = (V(t) ,V(t) Y ) is a pair of vertex subsets with V(t) Y ⊆ V(t) ⊆ V, where V(t) is the set of nodes discovered up to time t and V(t) Y is the subset with revealed labels. In other words, given state s(t) , we observe the induced subgraph G (t) = G[V(t) ], along with covariates X(t) = {X(v) ∈ Rdc : v ∈ V(t) } and labels Y(t) = {Y(v) ∈ Rdℓ : v ∈ V(t) Y }. Upon picking an action from the frontier a ∈ V(t) \ V(t) Y , we reveal the label of node a and its previously undiscovered neighbors, i.e., V(t+1) = V(t) ∪N(a) and V(t+1) Y =V(t) Y ∪{a}. Given some initial state s(0) = (V(0) , ∅), the goal is to compute a policy π that maps each state s(t) to a node in V(t) , maximizing the expected total discounted reward:

where π(s(t) ) ∈ V(t) \ V(t) Y is the frontier node selected by policy π and R(s(t) , v) is the (possibly label-dependent) reward for acting on node v = π(s(t) ) at round t.
Figure 2 shows an example timestep in a SAPOG instance. The SAPOG class captures several other existing problem formulations. For example, Adaptive Frontier Exploration on Graphs [Choo et al., 2025] is a special case where V(0) = V. Additionally, active search on graphs [Wang et al., 2013] and selective harvesting [Murai et al., 2018] are example undiscounted cases where γ = 1 and T < |V| and, in active search, V(0) = V. The frontier-based decision-making in SAPOG is also analogous to other fields where local actions reveal information about the neighboring environment, such as robotic exploration [Keidar and Kaminka, 2014].
4 Methods
4.1 SAPOGApproach Analysis
There are several challenges in solving SAPOG instances. First, since (G,X,Y) \ (G (t) ,X(t) ,Y(t) ) is unknown, the agent needs to make decisions without knowledge of their long-term impact or even their short-term rewards. Second, it is common that in practice, there are multiple different possible realizations of the completed graph, i.e., the agent should view (G,X,Y) as a distribution conditioned on (G (t) ,X(t) ,Y(t) ). While algorithms for the case where V(0) = V can be formulated, they are difficult to apply to general SAPOG instances where the graph and covariates are only partially observable and incrementally revealed.
Prior work has shown that even in the fully observable case where V(0) = V, directly learning the Q function of nodes is not an effective approach [Choo et al., 2025], motivating some intermediate learning step to address the uncertainty in the unobservable portion of the graph. One natural approach is used in prior work for similar decision-making problems on partially observable graphs [Tran et al., 2024]. In the context of SAPOG, the analogous approach would be to learn to predict the maximum-likelihood graph and covariate completion conditioned on the observable (G (t) ,X(t) ,Y(t) ), then iteratively plug the learned completion into an oracle that solves for optimal actions under the assumption that the learned completion is correct. More formally, we define such a decision-making oracle O as an algorithm that returns a realvalued evaluation (e.g., Q-value) of any action v given Y(t) and any (G ′ ⊇ G (t) ,X′ ⊇ X(t) ), i.e., any possible completion of the observed (G (t) ,X(t) ) that is assumed by O to be the ground truth. However, we show in Proposition 1 that this strategy is not necessarily effective in SAPOG.
Proposition 1 (Non-Optimality of Maximum-Likelihood Graph Completion). Assume that, during any timestep t of a SAPOG instance, an agent:
- Has access to a decision-making oracle O that returns the Q-value of given actions.
- Has access to (G ⋆ ⊇ G (t) ,X⋆ ⊇ X(t) ), the maximumlikelihood completion of the observed (G (t) ,X(t) ).
Then, the action v⋆ = argmax v∈V(t) \V(t) Y O(v | Y(t) , G ⋆ ,X⋆ ), is not necessarily optimal in expectation.
Proof. Suppose that (G1,X1), (G2,X2) are the only two possible completions of (G (t) ,X(t) ), with Pr(G1,X1 | Y(t) , G (t) ,X(t) ) = 35 and Pr(G2,X2 | Y(t) , G (t) ,X(t) ) = 25 . Thus, G ⋆ = G1 and X⋆ = X1. Now, for some constant c > 0, suppose that there exist two possible actions v1, v2 ∈ V(t) \ V(t) Y such that O(v1 | Y(t) , G1,X1) = 2c, O(v2 | Y(t) , G1,X1) = c, O(v1 | Y(t) , G2,X2) = c, and O(v2 | Y(t) , G2,X2) = 10c. Then, v⋆ = v1, which is suboptimal since the expected Q-value v1 is 8c 5 while v2 has a larger expected Q-value of 23c 5 .
Algorithm 1 Policy-Embedded Graph Expansion (PEGE)
Input: SAPOG instance P = (G,X,Y, s(0) ,R, γ, T), sampling parameter k ∈ N, generative graph expansion model M, decision-making oracle O
Output: Actions a(1) , . . . , a(T) for each time step t ∈ [T]
- 1: for t = 0, 1, . . . , T -1 do
- 2: Observe state s(t) = (G (t) ,X(t) ,Y(t) )
- 3: Using M(s(t) ), sample k graph completions ¯ s(t) 1 , . . . , ¯ s(t) k where ¯ s(t) j = (G (t) j ,X(t) j )
- 4: For all actions a ∈ V(t) \ V(t) Y , define f(a) as the empirical estimate of E¯ s(j)∼M(s(t) )[O(a | Y(t) , ¯ s(j) )]:
- 5: Take action a(t+1) ∈ argmax a∈V(t) \V(t) Y f (a)
- 6: end for
- 7: return a(1) , . . . , a(T)
Let D(t) be the true distribution of possible graph completions given (Y(t) , G,X(t) ). Since we do not know the true future, we wish to evaluate an action v by maximizing
As shown in Proposition 1, we should not decide on the action via O(v | Y(t) ,mode(D(t) )), where mode(D(t) ) denotes the maximum-likelihood completion in D(t) , but instead learn the distribution D(t) itself. This would then allow us to approximate Eq. (2) via samples. For this task, we consider a generative graph expansion model M that, given any state s(t) = (G (t) ,X(t) ,Y(t) ), can be sampled to produce a graph expansion ¯ s(t) = (G ′ ,X′ ) such that G (t) ⊆ G ′ and X(t) ⊆ X′ . We will see in Section 4.2 that M does not need to accurately predict the fully topologies in D(t) in order to support decision-making in PEGE.
4.2 Policy-Embedded Graph Expansion (PEGE)
With the challenges of SAPOG and our analysis in mind, we propose Policy-Embedded Graph Expansion (PEGE), a new approach to sequential decision-making problems over incrementally revealed graphs. To the best of our knowledge, PEGE is the first attempt at leveraging a generative graph expansion model to address limited graph observability in the sequential decision-making loop for an incrementally revealed graph. PEGE solves SAPOG instances as described in Algorithm 1 and illustrated in Figure 3.
The generative graph expansion model M and the decision-making oracle O (defined in Section 4.1) have a closely intertwined relationship: the graph expansions are plugged into O to decide which node to test on timestep t, which influences which nodes M expands from during timestep t+1 after neighboring true graph nodes are revealed. Further, there can be less of a burden on M of learning the full distribution D(t) conditioned on the partially observed graph since its output is only used for downstream discounted decision-making. Normally, learning D(t) is very challenging, as |V| is unknown, so the model has no sense of how large G is. However, with a discount factor γ < 1 in place, generated nodes become less relevant to decision-making as they get further from the frontier nodes. Thus, we can limit the graph expansion to a maximum depth d from frontier nodes to help address the unknown size of the complete G while ensuring that M can still capture the variation in possible graph completions that most strongly impacts decisionmaking. M must be able to adapt when these decisionrelevant areas of the graph (i.e., the areas near the frontier) change as the graph is incrementally revealed and the frontier updates. The Monte-Carlo nature of PEGE helps produce actions that are more robust to variation in this decision-relevant portion of (G,X,Y) conditioned on (G (t) ,X(t) ,Y(t) ).

5 Application to Network-Based HIV Testing
In our sequential network-based HIV testing setting (see Section 1.2), we are interested in producing an efficient testing order that identifies as many HIV-positive individuals as possible as quickly as possible. With budgeted testing kits and staff, this makes efficient use of limited testing resources, helps people with HIV and associated high-risk contacts get started with treatment and prevention as early as possible, and limits further spread of the virus. In this application, G represents a sexual contact network that grows incrementally from a set of root individuals V(0) with initially unknown statuses (V(0) Y = ∅) as we allocate tests and test recipients refer contacts. One additional and important property in our application is that G is known to be a forest (see Section 6.1). X represents binary covariates that are collected about each individual in the network, e.g., gender and occupation, (dc = 72) and Y represents binary HIV status (dℓ = 1). Our reward function is simply R(a) = Y(a). For the oracle O used in PEGE, we use a Gittins index-based policy that produces real-valued evaluations of nodes and has proven performance guarantees when G is a forest [Choo et al., 2025]. This oracle learns a joint distribution of infection statuses, modeled via potential functions of individual covariates; see Appendix B of [Choo et al., 2025] for details. At test time, the oracle uses the learned function parameters θ to compute scores via a discrete version of the branching bandit formulation of [Keller and Oldale, 2003], and selects the node with the largest score.
However, one significant challenge remains with applying PEGE to our application: the choice of the generative graph expansion model M. While off-the-shelf models may be more applicable in different problem instances, we have quite specific requirements for M given the PEGE setting, our application of the SAPOG problem, and our small, noisy dataset (see Section 6.1):
- Mmust be a generative model that can produce a distribution of possible graph expansions.
- M must be able to generate both edges and highdimensional node covariates.
- M must be adaptable to various sizes of known partial graphs and tunable expansion depth limits (d).
- Mmust preserve the forest property in the graphs that it generates (see Section 6.1).
- Mmust be suited to data-scarce settings.
No current model that we are aware of meets all of these criteria. Thus, we design Dynamics-Driven Branching (DDB), a new generative graph expansion model that trains only on low-level node-to-node dynamics with no graph or sequencelevel supervision. DDB is a hybrid model that fuses denoising diffusion with Gaussian Process Regression (GPR) and learns to recursively expand branches off of the observed frontier nodes. The forest prior of G and the recursive property of DDB allow us to tabularize data from training graphs, reducing training of DDB to only node-to-node dynamics. Specifically, let vparent and vchild be a pair of parent and child nodes with covariates xparent and xchild, respectively. Then:
- We train a GPR model [Pedregosa et al., 2011] to produce a Gaussian distribution of |N(vparent)| conditioned on xparent. 2) We train a denoising diffusion model to learn a distribution
- of xchild conditioned on xparent. Our diffusion model employs a sinusoidal time embedding followed by four linear layers with GELU activations, trained via MSE loss.
At inference, DDB starts at each frontier node and recursively samples the GPR model to generate the number of successors at each expanded node, then samples the diffusion model to generate a vector of covariates for each of those successors. This way, DDB generates the stochastic node-to-node dynamics that drive variation in possible graph completions near frontier nodes, rather than directly learning specific structures and sequences present in the limited training data.
The task of generating neighboring node covariates is especially challenging since the covariates have 72 dimensions and it is unclear which specific features in the parent node covariates are the most relevant. The diffusion model is thus a critical element of DDB, as its mode covering property helps learn an expressive distribution of the high-dimensional xchild conditioned on xparent. Additionally, targeting this task rather than learning to generate the entire graph in one shot helps limit training time of the diffusion model to only a few minutes and reduce overfitting or mode collapse.
Since DDB only expands new child nodes from parent nodes, it always preserves the forest structure of the input graph. Expansion ends when either the branching naturally terminates or the maximum node depth of d from frontier nodes is reached. DDB is sampled to produce the k graph expansions used in PEGE. Since DDB is conditioned on frontier nodes only and has a tunable expansion depth d, it is indifferent to the size of the known partial graph and can generate graph expansions of any specified depth.
The Gittins index-based oracle operates in O(m2 ) time on trees with m nodes [Choo et al., 2025]. In the worst-case, a frontier of n nodes each generating bd descendants results in m = nbd , yielding a per-sample complexity of O(n2 b2d ). However this is a very loose upper bound. In practice, the frontier is a small subset of the n nodes in the known graph, and the average branching factor is much lower than the maximum branching factor b. Furthermore, our method is embarrassingly parallel: disjoint connected components (i.e., "communities" that make up a larger population) and each graph expansion can be processed independently across parallel threads before being their results are combined. On an M4 Pro MacBook using 12 threads, a sample run for k = 24 and d = 3 takes approximately 7, 11, 16 seconds when the observed graph has 50, 100, 150 nodes, respectively.
6 Evaluation
6.1 Dataset
We build our experiments on a publicly available real-world HIV sexual contact network dataset with anonymized entries provided by the Inter-university Consortium for Political and Social Research (ICPSR) [Morris and Rothenberg, 2011] 1 . This dataset contains 778 nodes comprising 188 connected components and has an 11.3% HIV prevalence rate. This small size is important for our setting since we expect similar data constraints as we deploy (see Section 1.2). Figure 4 shows an overview of the HIV sexual contact network.
Each node is associated with a 72-dimensional vector of binary covariates that are one-hot encoded from 17 categorical covariates related to gender, sexual orientation, occupation, etc. Additionally, to mirror the real-world data-collection process from our HIV prevention efforts in South Africa (see Section 1.2), we project each connected component in the test graph to a tree, forming a forest. In practice, edges are recorded as people refer their contacts to testing clinics and services. However, people are unlikely to (or may not be allowed to) accept a second referral to the same service, especially when referrals are limited. As such, the forest structure arises naturally and noise is introduced in the form of randomly unrecorded edges. These forest structures have been observed in other studies on peer-to-peer network recruitment as well (e.g., [Stein et al., 2018]). Furthermore, prior research has observed that actual STI transmission networks are often sparse and tree-like, and that the Gittins index-based policy remains robust to non-tree graphs [Choo et al., 2025].
1 Our codebase is publicly available at https://github.com/ akanga-harvard/policy-embedded-graph-expansion. The ICPSR dataset is publicly available after completing the user agreement in the ICPSR portal [Morris and Rothenberg, 2011]. Our full paper with additional experiments is available at arxiv.org/abs/2601.16233

We split the ICPSR HIV sexual contact network data into 5 partitions with an equal number of connected components such that no connected components are split up. We also ensure that partitions roughly match the distribution of connected component sizes that is present in the overall dataset. For each experiment in this section, we run 5 SAPOG instances with static test graphs and average the normalized results, weighting each instance by how many nodes are in the test graph. Each of the 5 data partitions serves as the test graph once and serves as part of the training data four times.
6.2 Baseline Algorithms
In addition to our method (PEGE + DDB), we evaluate five baseline algorithms for reference, which we describe below:
- Random (R): Always select a random frontier node.
- Greedy Neighbor (GN): During each timestep, select a frontier node that has a parent node that tested positive. If no such node exists, return a random frontier node. This is an intuitive strategy that a human might apply.
- Greedy Classifier (GC): Use the training data to train a linear support vector classifier (SVC) with balanced class weights [Pedregosa et al., 2011] to predict the probability that a given node tests positive conditioned on its covariates. A linear SVC was selected for the greedy baseline as it outperformed logistic regression, RBF-SVC, and gradient boosting. At test time, we always select the frontier node with the greatest probability of testing positive. This is a heuristic approach that is indifferent to any network-based data and is representative of an individual risk-based algorithm that has been proposed for real-world deployment (see Section 1.2).
4) Deep Q-Network (DQN): We implement a DQN baseline [Mnih et al., 2015] with the Pytorch NNConv neural architecture [Fey and Lenssen, 2019] that uses a message-passing GNN with edge-conditioned weights [Gilmer et al., 2017]. We allow the DQN to train on G and X (but not Y), which serves as a conservative buffer against other learned policies. 5) Fully Observable Gittins (FOG): Apply the Gittins index-based policy to G,X,Y(t) on each timestep and select the frontier node with the highest Gittins index. The feature mapping θ used in the Gittins index policy is allowed to train on the test set, meaning the oracle itself is also stronger in this case. Since this algorithm can observe the entire ground truth network, FOG serves as an unattainable upper bound for any policy with the same information described in our model.
6.3 Experiments and Results
We evaluate methods based on how much normalized discounted reward they accrue throughout the experiments (see Eq. (1) for reward model), which captures our real-world goal of identifying as many HIV-positive individuals as possible as quickly as possible. First, we compare the average performance of our method (PEGE + DDB) to that of each baseline. For this experiment, we fix the expansion depth in DDB at d = 3, the number of graph expansions in PEGE at k = 24, the discount factor at γ = 0.99, and the number of tests at T = |V|. We also cap the maximum expansion width at b = 25 to guarantee bounded graph expansions. The left side of Figure 5 shows the empirical results. Table 1 also summarizes some performance statistics, including area under the cumulative discounted reward curve (AUC) and cumulative discounted reward at different testing budgets.
On average, our PEGE + DDB method outperforms all baselines. The total AUC for PEGE + DDB is about 9.42% greater than that of the closest baseline (Greedy Classifier). Furthermore, PEGE + DDB remains advantageous under different testing budgets, outperforming the strongest baseline by 17.3%, 8.06%, and 6.83% under testing budgets of 25%, 50%, and 75% of the population, respectively. PEGE also captures about 78.4% of the AUC of FOG, and 76.3%, 76.6%, and 80.6% of the cumulative discounted reward accrued by FOG under testing budgets of 25%, 50%, and 75% of the population, respectively. The remaining gap is likely due to the observability gap, the stronger oracle that FOG accesses, and error in DDB. These boosts that we observe in discounted reward also indicate more positive detections early on. For example, when testing only 25% of the population, PEGE + DDB discovers about 15.4% more positive cases than the strongest baseline. If network-based testing algorithms are eventually deployed with tens or hundreds of thousands of participants, improvements of this scale can translate to hundreds or thousands of additional positive HIV identifications, assuming the same population-wide positivity rate of 11.3%.
Next, to isolate contributions of each component of our method, we present an ablation study comparing PEGE + DDB against Naive Gittins (no graph expansion), PEGE + DDB (Full Theta), which uses the θ trained on the full (train and test) network in the oracle, and the FOG upper bound. The results are shown in the right side of Figure 5. We observe: (i) Data Richness: Training θ on the full network increases PEGE + DDB's AUC by 9.87%, highlighting possible gains from larger datasets. (ii) Framework Value: PEGE + DDB outperforms the AUC of Naive Gittins by about 10.2% (similar to improvements over other heuristics), isolating the framework's benefit from the oracle's baseline performance. (iii) Early Impact: DDB expansions are most useful in early rounds when graph uncertainty is highest. This makes the framework especially fit for resource-critical problems (e.g., at 10% budget we outperform Naive Gittins by 66.7%).

| Algorithm | AUC | 25% | 50% | 75% |
|---|---|---|---|---|
| Random | 0.506 | 0.389 | 0.598 | 0.670 |
| Greedy Neighbor | 0.561 | 0.473 | 0.622 | 0.715 |
| Greedy Classifier | 0.616 | 0.526 | 0.682 | 0.737 |
| DQN | 0.603 | 0.504 | 0.665 | 0.747 |
| PEGE + DDB (Ours) | 0.674 | 0.617 | 0.737 | 0.798 |
| Fully Observable Gittins | 0.860 | 0.809 | 0.962 | 0.990 |
7 Conclusion
In this work, we explore a sequential HIV testing problem over an incrementally revealed graph that addresses gaps in prior network-based HIV testing work. We propose a new approach (PEGE + DDB) and perform experiments on realworld HIV networks that show that it consistently outperforms all other baselines. In future work, we are studying related problems in HIV testing, such as referral and incentive distribution algorithms for peer-to-peer network recruitment [Pan et al., 2026] and batched HIV testing policies [Kong et al., 2026]. We are also working to explore how PEGE can be applied to other applications of SAPOG.
Our interdisciplinary team is motivated by our real-world efforts in South Africa, where we are working to deploy the algorithms that we demonstrate in this paper. The improvements that our approach provides can lead to hundreds or thousands of additional HIV detections when deployed at a larger scale of tens or hundreds of thousands of testing participants, which is crucial for getting people with HIV started with treatment, getting their high-risk contacts started with prevention like PrEP, and limiting further spread of the virus. This represents direct progress towards the first of the 95-9595 targets for HIV [UNAIDS, 2022] and the UN Sustainable Development Goal 3.3 [United Nations, nd].
Acknowledgements
This work was supported by ONR MURI N00014-24-1-2742. The findings and conclusions in this report are those of the authors and do not necessarily represent the official position of the WHO.
@inproceedings{ijcai2026p806,
title = {Policy-Embedded Graph Expansion: Networked HIV Testing with Diffusion-Driven Network Samples},
author = {Kangaslahti, Akseli and Choo, Davin and Kong, Lingkai and Tambe, Milind and van Heerden, Alastair and Johnson, Cheryl},
booktitle = {Proceedings of the Thirty-Fifth International Joint Conference on
Artificial Intelligence, {IJCAI-26}},
publisher = {International Joint Conferences on Artificial Intelligence Organization},
editor = {Diego Calvanese},
pages = {7248--7256},
year = {2026},
month = {8},
note = {AI and Social Good},
doi = {10.24963/ijcai.2026/806},
url = {https://doi.org/10.24963/ijcai.2026/806},
}
TY - CPAPER TI - Policy-Embedded Graph Expansion: Networked HIV Testing with Diffusion-Driven Network Samples AU - Kangaslahti, Akseli AU - Choo, Davin AU - Kong, Lingkai AU - Tambe, Milind AU - van Heerden, Alastair AU - Johnson, Cheryl T2 - Proceedings of the Thirty-Fifth International Joint Conference on Artificial Intelligence, IJCAI-26 PB - International Joint Conferences on Artificial Intelligence Organization PY - 2026 SP - 7248 EP - 7256 DO - 10.24963/ijcai.2026/806 UR - https://doi.org/10.24963/ijcai.2026/806 ER -Copied
Machine-readable versions of this paper, for tools and AI agents: