diff --git a/ICLR/2025/Learning Robust Representations with Long-Term Information for Generalization in Visual Reinforcement Learning/de981152-8e4e-4286-b6be-a8fd60e80dab_content_list.json b/ICLR/2025/Learning Robust Representations with Long-Term Information for Generalization in Visual Reinforcement Learning/de981152-8e4e-4286-b6be-a8fd60e80dab_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..4bf58b2feb1546656fafd66daf27d359032fe38a
--- /dev/null
+++ b/ICLR/2025/Learning Robust Representations with Long-Term Information for Generalization in Visual Reinforcement Learning/de981152-8e4e-4286-b6be-a8fd60e80dab_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:147d761e348840aa2395bc701d354a451ad45cdf48d076bb7569634e2b32608f
+size 196133
diff --git a/ICLR/2025/Learning Robust Representations with Long-Term Information for Generalization in Visual Reinforcement Learning/de981152-8e4e-4286-b6be-a8fd60e80dab_model.json b/ICLR/2025/Learning Robust Representations with Long-Term Information for Generalization in Visual Reinforcement Learning/de981152-8e4e-4286-b6be-a8fd60e80dab_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..d01abfae382f8477cf1a7af6fe31c4940722265d
--- /dev/null
+++ b/ICLR/2025/Learning Robust Representations with Long-Term Information for Generalization in Visual Reinforcement Learning/de981152-8e4e-4286-b6be-a8fd60e80dab_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:df72661086195b667bd1ed179bb28a78ccffd6f0569897de02fcfda56cad4085
+size 231467
diff --git a/ICLR/2025/Learning Robust Representations with Long-Term Information for Generalization in Visual Reinforcement Learning/de981152-8e4e-4286-b6be-a8fd60e80dab_origin.pdf b/ICLR/2025/Learning Robust Representations with Long-Term Information for Generalization in Visual Reinforcement Learning/de981152-8e4e-4286-b6be-a8fd60e80dab_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..00ed509207a27d09a1bafb08c528ae067448d9b3
--- /dev/null
+++ b/ICLR/2025/Learning Robust Representations with Long-Term Information for Generalization in Visual Reinforcement Learning/de981152-8e4e-4286-b6be-a8fd60e80dab_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0cadee5ce6a378dc2f4a47f3e2bfe5e1b31f897140597f62159ce6c04e0bbbec
+size 1563626
diff --git a/ICLR/2025/Learning Robust Representations with Long-Term Information for Generalization in Visual Reinforcement Learning/full.md b/ICLR/2025/Learning Robust Representations with Long-Term Information for Generalization in Visual Reinforcement Learning/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..870d5d1ca1a70f93d6d8935aa2ecc61553663f5f
--- /dev/null
+++ b/ICLR/2025/Learning Robust Representations with Long-Term Information for Generalization in Visual Reinforcement Learning/full.md
@@ -0,0 +1,777 @@
+# LEARNING ROBUST REPRESENTATIONS WITH LONG-TERM INFORMATION FOR GENERALIZATION IN VISUAL REINFORCEMENT LEARNING
+
+Rui Yang $^{1,2}$ , Jie Wang $^{1,2}$ , Qijie Peng $^{1,2}$ , Ruibo Guo $^{2}$ , Guoping Wu $^{2}$ , Bin Li $^{2}$ $^{1}$ MoE Key Laboratory of Brain-inspired Intelligent Perception and Cognition
+ $^{2}$ University of Science and Technology of China
+{yr0013, sa24006073, ruiboguo, guoping}@mail.ustc.edu.cn
+{jiewangx, binli}@ustc.edu.cn
+
+# ABSTRACT
+
+Generalization in visual reinforcement learning (VRL) aims to learn agents that can adapt to test environments with unseen visual distractions. Despite advances in robust representations learning, many methods do not take into account the essential downstream task of sequential decision-making. This leads to representations that lack critical long-term information, impairing decision-making abilities in test environments. To tackle this problem, we propose a novel robust action-value representation learning (ROUSER) under the information bottleneck (IB) framework. ROUSER learns robust representations to capture long-term information from the decision-making objective (i.e., action values). Specifically, ROUSER uses IB to encode robust representations by maximizing their mutual information with action values for long-term information, while minimizing mutual information with state-action pairs to discard irrelevant features. As action values are unknown, ROUSER proposes to decompose robust representations of state-action pairs into one-step rewards and robust representations of subsequent pairs. Thus, it can use known rewards to compute the loss for robust representation learning. Moreover, we show that ROUSER accurately estimates action values using learned robust representations, making it applicable to various VRL algorithms. Experiments demonstrate that ROUSER outperforms several state-of-the-art methods in eleven out of twelve tasks, across both unseen background and color distractions.
+
+# 1 INTRODUCTION
+
+Generalization in visual reinforcement learning (VRL) has received considerable attention (Mnih et al., 2015; Yarats et al., 2021; Kirk et al., 2021; Zhu et al., 2023) due to its potential to learn agents that can address complex tasks across diverse environments in real-world applications, e.g., autonomous driving (Zhou et al., 2023b; Cao et al., 2023), robot control (Xing et al., 2021; Liu et al., 2023b), and chip design (Geng et al., 2024; Wang et al., 2024c; 2025b). It refers to agents' capability to directly use their learned skills to unknown environments, where visual distractions (e.g., dynamic backgrounds or object colors under control) may differ from those encountered during training (Li et al., 2021; Ali et al., 2023). Thus, the generalizable agents can execute tasks with high performance when encountering environments under unseen distractions without extensive retraining.
+
+To learn generalizable agents, one of promising approaches in VRL aims to develop robust representations against visual distractions in environments (Kemertas & Augmented-Armstrong, 2021; Mazoure et al., 2022). Specifically, some methods introduce data augmentations (Hansen & Wang, 2021; Huang et al., 2022) and contrastive learning (Laskin et al., 2020; Kim et al., 2021) to learn representations that are robust to irrelevant and spurious information. Other methods apply metric learning (Zhang et al., 2021; Lopez et al., 2022) to encode task-relevant information for robust representation learning. Then, based on the learned robust representations, these methods can directly use traditional VRL algorithms (Schulman et al., 2017; Fujimoto et al., 2018; Haarnoja et al., 2018)
+
+to optimize the objectives of the downstream task of sequential decision-making, i.e., maximizing the expected cumulative rewards (i.e., action values) over these environments.
+
+However, the aforementioned representation learning approaches often do not take into account the essential downstream decision-making. This results in the representations that cannot capture critical long-term robust information in sequential data, which is a key factor for generalization in VRL (Zhou et al., 2022; Qi et al., 2022; Wang et al., 2023a). Although such representations are robust against visual distractions, they cannot facilitate the generalization of sequential decision-making.
+
+In this paper, we propose a robust action-value representation learning (ROUSER) for VRL generalization under the information bottleneck (IB). ROUSER introduces IB to learn robust representations that capture long-term information from the sequential decision-making objective (i.e., action values).
+
+Specifically, ROUSER first applies IB to propose a robust action-value representation, which is correlated with the action value. This robust representation for each state-action pair maximizes mutual information with the action value, while minimizing mutual information with the associated state-action pair. Thus, this representation can capture long-term information without irrelevant features. Then, as the true action values are unknown, we cannot directly predict action values to learn the robust action-value representation. Inspired by task decomposition methods (Dietterich, 2000; Russell & Zimdars, 2003; Dayan, 1993; Barreto et al., 2017), ROUSER proposes to decompose the robust action-value representation into a compressed reward representation—which captures only information from a one-step reward—and a subsequent robust action-value representation. With this recursive form, ROUSER can use the known one-step rewards instead of unknown action values to compute the loss associated with robust action-value representations.
+
+Moreover, for compressed reward representations, ROUSER introduces a reward model in the IB framework. This model maximizes mutual information between one-step rewards and compressed reward representations, while minimizing it between such representations and associated state-action pairs. Therefore, ROUSER can use one-step rewards and state-action pairs to learn compressed reward representations that encode only information from rewards.
+
+This study proposes robust action-value representations in the IB framework, capturing long-term information during the robust representation learning process. Thus, it significantly enhances performance in sequential decision-making against unseen visual distractions. In addition, we provide a theoretical guarantee for ROUSER, establishing a bound between the true action-value function and the action-value function on top of learned robust action-value representations. This shows that ROUSER can accurately estimate true action values using learned robust action-value representations. Building upon this proof, we present an advantage of ROUSER, which is its applicability to various VRL algorithms to improve generalization. We can integrate ROUSER with the VRL critic for action-value estimation, using a critic's embedding as a robust action-value representation. Experiments in Section 5.2 demonstrate the applicability by combining ROUSER with traditional VRL algorithms, including policy gradient (Yarats et al., 2022) and value-based (Hosu & Rebedea, 2016) methods.
+
+It is worth noting that our study differs from task decomposition methods, which learn the representations from action values but do not take into account robustness against visual distractions. We use one-step rewards to extract long-term information from action values and leverage IB to discard irrelevant features in VRL. We summarize the major contributions below.
+
+- To the best of our knowledge, this study is the first to learn representations from action values against visual distractions. It encodes robust and long-term information rather than just robust features to facilitate downstream decision-making for generalization.
+- We show that ROUSER can accurately estimate action values using the learned robust action-value representations. With this proof, we can integrate ROUSER with various VRL algorithms to estimate the action values, thereby enhancing robustness.
+- Extensive experiments demonstrate that ROUSER outperforms several state-of-the-art VRL methods in eleven out of twelve tasks across both unseen background and color distractions.
+
+# 2 RELATED WORK
+
+Representation Learning for Generalization in VRL. Representation learning approaches for generalization in VRL aim to improve agents' performance on unseen test environments by extracting
+
+robust representations from training environments. Some approaches design an auxiliary contrastive task to maximize the mutual information between representations from similar observations while minimizing the mutual information between representations from dissimilar observations (Kim et al., 2019; Laskin et al., 2020; Fan & Li, 2022). To obtain similar observations, they always leverage data augmentations to generate observations (Hansen et al., 2021; Hansen & Wang, 2021; Huang et al., 2022; Ye et al., 2023; Wang et al., 2025a). However, they often do not take into account the downstream task of sequential decision-making, leading to representations that lack long-term information. Some approaches introduce the bisimulation metric with a recursive form (Ferns & Precup, 2014; Castro, 2020; Agarwal et al., 2021) to identify robust representations using long-term information, similar to our approach. However, it is difficult to directly compute the recursive metric. Thus, for implementation, they often simplify the computation to capture information from the immediate future. Other methods directly predict reward sequences to learn robust representations (Yang et al., 2022; Zhou et al., 2023a), which captures long-term task-relevant information for generalization. Instead of using reward sequences, our approach simply applies one-step rewards to encode the sequential information, and we further introduce the IB principle to improve robustness.
+
+Task Decomposition in RL. We use the task decomposition to represent methods that decompose a task into independent sub-tasks, so that each task has the same environment dynamics but a different reward function. Then, they propose to learn action-value representations invariant to different tasks/reward functions. Some of them, namely successor feature methods (Dayan, 1993; Barreto et al., 2017; 2018; 2020), use such representations to generalize to different tasks for transfer learning. Others, namely value decomposition methods (Sutton et al., 1999; Russell & Zimdars, 2003; Makino, 2023), apply such representations to improve sample efficiency in new tasks. See Appendix A for details. Motivated by their framework where action-value representations can be decomposed into an infinite sequence of reward representations, we (1) learn the action-value representations for long-term information using one-step rewards and (2) filter out irrelevant information from the one-step reward representations to improve robustness of overall action-value representations.
+
+It is worth noting that in this article, we aim to learn agents in training environments to generalize to test environments with unseen visual distractions, while remaining a consistent reward function. This differs from task decomposition methods, which primarily extract knowledge invariant to tasks between tasks with varying reward functions and no visual distractions. Moreover, task decomposition methods can easily encode irrelevant features in the setting of this article, as they learn representations from environment dynamics, which involve visual distractions in VRL (Yang et al., 2022).
+
+Information Bottleneck (IB). The IB principle in supervised learning (Tishby & Zaslavsky, 2015; Saxe et al., 2018) aims to learn compressed representations including minimal information relevant to downstream tasks, improving generalization performance. Specifically, it regularizes representations by minimizing the mutual information between inputs and representations, while maximizing the mutual information between representations and labels. In VRL, recent methods (Pei & Hou, 2019; Xiang et al., 2023) also focus on the IB principle that can learn compressed representations to improve generalization capabilities of agents. Different from supervised learning, in VRL, these methods only have one-step rewards but action values, i.e., the targets in VRL corresponding to labels in supervised learning. Thus, some of them (Federici et al., 2020; Fan & Li, 2022) follow the unsupervised learning paradigm, using the IB framework to regularize representations from similar inputs or multi-view image observations. Since the unsupervised learning in the IB framework is more challenging than supervised learning (Federici et al., 2020), we use one-step rewards—the known supervised signals in RL—to extract their compressed representations for robust action-value representation learning.
+
+# 3 PRELIMINARIES
+
+Visual RL. We consider a family of environments $\mathcal{E}$ . Each environment $e\in \mathcal{E}$ is a block Markov decision process (BMDP) (Zhang et al., 2020) denoted by $\mathcal{M}^e = \langle S,\mathcal{O}^e,\mathcal{A},\mathcal{R},p,p^e,\gamma \rangle$ . Here, $\mathcal{S}$ is the state space, $\mathcal{O}^e$ is the observation space in $e$ , $\mathcal{A}$ is the action space, $\mathcal{R}$ is the reward space, $p(s',r\mid s,a)$ is the state transition probability, $p^e (o',r\mid o,a)$ is the observation transition probability (i.e., environment dynamics) varying with the environment $e\in \mathcal{E}$ , and $\gamma \in [0,1)$ is the discount factor. For simplicity, we use bold letters (e.g., o and a) to denote random variables, normal letters (e.g., o and a) to denote samples, and $\mathcal{O}$ to denote the set of $\mathcal{O}^e$ for all $e\in \mathcal{E}$ .
+
+We suppose that an agent reaches an unseen latent state $s$ and obtains an observation $o$ on an environment $e \in \mathcal{E}$ . In a BMDP, the observation is determined by a state and some task-irrelevant visual factors varying with environments, e.g., backgrounds or agent colors in decision-making process. Each state $s$ does not involve irrelevant features in VRL and is invariant to the family of environments. Formally, let $\mathcal{X}$ be the set of such visual factors. We introduce an observation function $g: S \times \mathcal{X} \to \mathcal{O}$ (Zhang et al., 2020; Song et al., 2020) such that $\mathbf{o} = g(\mathbf{s}, \mathbf{x})$ . Here, $\mathbf{x}$ is a random variable in $\mathcal{X}$ , which is independent of $s$ and $\mathbf{a}$ with a specific transition probability $q^{e}(x' | x)$ .
+
+Moreover, we assume that the environments follow a generalized Block structure Zhang et al. (2020). That is, an observation $o \in \mathcal{O}$ uniquely determines its generating state $s$ and the visual factor $x$ . This assumption implies that the observation function $g(s,x)$ is invertible with respect to both $s$ and $x$ . Then, we have $p^e (o',r|o,a) = p(s',r|s,a)q^e (x' | x)$ . Note that the expected reward $r(o,a) = r(s,a) = \mathbb{E}_p[\mathbf{r}|s,a]$ depends on the corresponding state-action pair rather than the observation-action pair, where $\mathbf{r}$ is the random variable of the one-step reward.
+
+We aim to learn an agent with a policy $\pi : \mathcal{O} \to \Delta(\mathcal{A})$ that maximizes the expected cumulative reward $\mathbb{E}^e\left[\sum_{t=0}^\infty \gamma^t r_t\right]$ simultaneously in all $e \in \mathcal{E}$ , where $\mathbb{E}^e[\cdot]$ means that the expectation is taken in $e$ . We use $Q^\pi(o_t, a_t) = Q^\pi(s_t, a_t) = \mathbb{E}_{\pi,p}\left[\sum_{i=0}^\infty \gamma^i r(o_{t+i}, a_{t+i})\right]$ to denote the action values.
+
+# 4 ALGORITHM
+
+In this paper, we propose to learn robust action-value representations that capture long-term information for decision-making. Then, we introduce robust and compressed reward representations and use temporal-difference (TD) learning (Sutton & Barto, 2018) paradigm to learn robust action-value representations, guided by an IB-based objective to ensure robustness throughout the learning process.
+
+# 4.1 ROBUST ACTION-VALUE REPRESENTATIONS IN THE IB FRAMEWORK
+
+In this subsection, we propose robust action-value representations in the IB framework.
+
+Firstly, motivated by task decomposition methods, we provide the action-value representation in Definition 4.1. This action-value representation is linearly correlated with the action-value function following a given policy, containing the long-term information from the action-value function. Therefore, we propose using the action-value representation to facilitate the agent's decision-making performance in VRL test environments.
+
+Definition 4.1. A representation in a $D$ -dimensional space $\mathcal{Z}$ is an action-value representation $H^{\pi}(o_t, a_t)$ if there exists a linear mapping $\Phi: \mathcal{Z} \to \mathbb{R}$ such that
+
+$$
+Q ^ {\pi} \left(o _ {t}, a _ {t}\right) = \Phi \left(H ^ {\pi} \left(o _ {t}, a _ {t}\right)\right) = \left\langle \omega , H ^ {\pi} \left(o _ {t}, a _ {t}\right) \right\rangle , \quad \forall o _ {t} \in \mathcal {O}, a _ {t} \in \mathcal {A}, \tag {1}
+$$
+
+where the dimension $D > 1$ , $\langle \cdot, \cdot \rangle$ denotes the inner product, and $w$ denotes the weight vector of $\Phi$ .
+
+Then, for VRL generalization, due to visual factors $x_{t} \in \mathcal{X}$ , the action-value representation may involve irrelevant information. This motivates us to introduce the IB principle, compressing the action-value representation to discard irrelevant information. Specifically, we employ the conditional IB (Chechik & Tishby, 2002) to provide Definition 4.2. In this definition, we propose a robust action-value representation, the action-value representation for each observation-action pair maintains maximum mutual information with the corresponding action value while minimizing mutual information with the observation-action pair given the action value.
+
+Definition 4.2. An action-value representation is a robust action-value representation $Z^{\pi}(o_t, a_t) = \mathbb{E}[\mathbf{Z}_t]$ such that for all $o_t \in \mathcal{O}$ and $a_t \in \mathcal{A}$ ,
+
+$$
+\mathbf {Z} _ {t} = \underset {\mathbf {H} _ {t}} {\arg \min } \mathcal {I} \left(\mathbf {u} _ {t}; \mathbf {H} _ {t} \mid \mathbf {Q} _ {t}\right) - \beta \mathcal {I} \left(\mathbf {Q} _ {t}; \mathbf {H} _ {t}\right), \tag {2}
+$$
+
+where $\mathbf{H}_t$ is the random variable of $H^{\pi}(o_t, a_t)$ , $\mathbf{Q}_t$ is the random variable of $Q^{\pi}(o_t, a_t)$ , $\mathbf{u}_t$ is the random variable of $(o_t, a_t)$ , $\mathcal{I}(\mathbf{y}_1; \mathbf{y}_2)$ is the mutual information between random variables $\mathbf{y}_1$ and $\mathbf{y}_2$ , $\mathcal{I}(\mathbf{y}_1; \mathbf{y}_2 | \mathbf{y}_3)$ is the conditional mutual information to quantify the information between $\mathbf{y}_1$ and $\mathbf{y}_2$ given $\mathbf{y}_3$ , and $\beta$ is a hyperparameter.
+
+However, it is worth noting that we do not have the true action values during the training process of VRL, and we thus cannot directly use Equations 1 and 2 to learn robust action-value representations.
+
+# 4.2 COMPRESSED REWARD REPRESENTATIONS FROM ONE-STEP REWARDS
+
+To address the aforementioned challenge posed by unknown action values, we propose using one-step rewards instead. We first present how to learn simple action-value representations, and we then discuss how to learn our proposed robust action-value representations in this section.
+
+The Recursive Form of Action-Value Representations and the Reward Representations. To learn simple action-value representations, following task decomposition methods, we introduce a reward representation $h \in \mathcal{Z}$ that is linearly related to the one-step reward, with a linear mapping $f: \mathcal{Z} \to \mathbb{R}$ and the weight vector $\omega'$ .
+
+$$
+r \left(o _ {t}, a _ {t}\right) = f \left(h \left(o _ {t}, a _ {t}\right)\right) = \left\langle \omega^ {\prime}, h \left(o _ {t}, a _ {t}\right) \right\rangle . \tag {3}
+$$
+
+Based on the reward representations, we can derive the action-value representations such that
+
+$$
+H ^ {\pi} \left(o _ {t}, a _ {t}\right) = \mathbb {E} _ {\pi , p} \left[ \sum_ {i = 0} ^ {\infty} \gamma^ {i} h \left(o _ {t + i}, a _ {t + i}\right) \right], \quad Q ^ {\pi} \left(o _ {t}, a _ {t}\right) = \left\langle \omega^ {\prime}, H ^ {\pi} \left(o _ {t}, a _ {t}\right) \right\rangle . \tag {4}
+$$
+
+Equation 4 shows that the action-value representation is linearly correlated with the infinite sequence of reward representations. We provide the details in Appendix C.1.
+
+With Equation 4, we can derive a recursive form, i.e., the action-value representation for each observation-action pair consists of a reward representation and the action-value representation of its subsequent observation-action pair.
+
+$$
+H ^ {\pi} \left(o _ {t}, a _ {t}\right) = h \left(o _ {t}, a _ {t}\right) + \gamma \mathbb {E} _ {\pi , p} \left[ H ^ {\pi} \left(o _ {t + 1}, a _ {t + 1}\right) \right]. \tag {5}
+$$
+
+With the linear relation in Equation 3 and the recursive form in Equation 5, we can simply compute the loss for learning such action-value representations. Moreover, we show that using Equation 5 can converge in tabular settings in Appendix C.2.
+
+Compressed Reward Representations for Robust Action-Value Representations. Based on Definition 4.2, Equations 4, and 5, as the action-value representations are decomposed into an infinite sequence of reward representations, which serve as their foundation, we can directly filter out task-irrelevant information from such reward representations to improve robustness of overall action-value representations, learning robust action-value representations without irrelevant features. Thus, we propose using the IB framework to regulate the reward representations.
+
+Since (1) the one-step reward is task-relevant without irrelevant features, and (2) the observation may involve irrelevant visual factors, we propose a compressed reward representation in Definition 4.3. This representation for each observation-action pair is linearly related to the corresponding one-step reward and does not involve any irrelevant information by preserving maximum mutual information with this one-step reward while minimizing mutual information with its observation-action pair.
+
+Definition 4.3. A reward representation is a compressed reward representation $z(o_{t},a_{t}) = \mathbb{E}\left[\mathbf{z}_{t}\right]$ such that for all $o_{t} \in \mathcal{O}$ and $a_{t} \in \mathcal{A}$ ,
+
+$$
+\mathbf {z} _ {t} = \underset {\mathbf {h} _ {t}} {\arg \min } \mathcal {I} \left(\mathbf {u} _ {t}; \mathbf {h} _ {t} \mid \mathbf {r} _ {t}\right) - \beta \mathcal {I} \left(\mathbf {r} _ {t}; \mathbf {h} _ {t}\right), \tag {6}
+$$
+
+where $\mathbf{h}_t$ is the random variable of $h(o_t, a_t)$ , and $\beta$ is a hyperparameter.
+
+In Equation 6, given the one-step reward $\mathbf{r}_t$ , the conditional mutual information $\mathcal{I}(\mathbf{u}_t; \mathbf{h}_t | \mathbf{r}_t)$ quantifies information in $\mathbf{h}_t$ that is irrelevant. The mutual information $\mathcal{I}(\mathbf{r}_t; \mathbf{h}_t)$ quantifies task-relevant information shared between the reward $\mathbf{r}_t$ and the representations $\mathbf{h}_t$ . $\beta$ is a hyperparameter that determines the preference over the trade-off between task-relevant and task-irrelevant information.
+
+Based on Definition 4.3 and Equation 4, the robust action-value representation is linearly correlated with the infinite sequence of compressed reward representations. Thus, we can also use the recursive form of robust action-value representations, as shown in Equation 5, to learn these representations.
+
+Furthermore, in the following of this part, we discuss how to compute mutual information on Equation 6. We provide detail formulas of Equation 6 given the joint distribution and conditional joint distribution of $\mathbf{u}_t$ , $\mathbf{z}_t$ , and $\mathbf{r}_t$ . Note that for simplicity, we use $\mathbf{z}$ instead of $\mathbf{h}$ .
+
+$$
+\mathcal {I} (\mathbf {u} _ {t}; \mathbf {z} _ {t} | \mathbf {r} _ {t}) = \mathbb {E} _ {\mathbf {u} _ {t}, \mathbf {z} _ {t}, \mathbf {r} _ {t}} \left[ \log \frac {p (\mathbf {z} _ {t} | \mathbf {u} _ {t})}{p (\mathbf {z} _ {t} | \mathbf {r} _ {t})} \right], \quad \mathcal {I} (\mathbf {r} _ {t}; \mathbf {z} _ {t}) = \mathbb {E} _ {\mathbf {r} _ {t}, \mathbf {z} _ {t}} \left[ \log \frac {p (\mathbf {r} _ {t} | \mathbf {z} _ {t})}{p (\mathbf {r} _ {t})} \right]. (7)
+$$
+
+To estimate the probability density $p(\mathbf{z}_t|\mathbf{u}_t)$ on Equation 7, we assume that a compressed reward representation $z(\mathbf{o}_t,\mathbf{a}_t)$ for any observation-action pair $(\mathbf{o}_t,\mathbf{a}_t)$ follows a Gaussian distribution $\mathcal{N}_{\psi}$ , and we provide the detailed implementation in the next subsection.
+
+However, due to the modelling of $\mathbf{z}_t$ , the approximation of $p(\mathbf{z}_t|\mathbf{r}_t)$ is intractable. Inspired by the method that estimates conditional mutual information (Alemi et al., 2017; Fan & Li, 2022), we introduce a new representation $\mathbf{k}_t \in \mathcal{Z}$ extracted directly from the one-step reward $\mathbf{r}_t$ to estimate $p(\mathbf{k}_t|\mathbf{r}_t)$ instead of $p(\mathbf{z}_t|\mathbf{r}_t)$ . Thus, we can derive an upper bound of the conditional mutual information.
+
+$$
+\mathcal {I} \left(\mathbf {u} _ {t}; \mathbf {z} _ {t} \mid \mathbf {r} _ {t}\right) \leq \mathcal {D} _ {\mathcal {K L}} \left(p \left(\mathbf {z} _ {t} \mid \mathbf {u} _ {t}\right) \| p \left(\mathbf {k} _ {t} \mid \mathbf {r} _ {t}\right)\right). \tag {8}
+$$
+
+We provide details in Appendix C.3. We then can minimize the upper bound—i.e., the Kullback-Leibler (KL) divergence between $p(\mathbf{z}_t|\mathbf{u}_t)$ and $p(\mathbf{k}_t|\mathbf{r}_t)$ —to discard irrelevant and redundant information for compressed reward representation learning. Moreover, the representation $\mathbf{k}_t$ is directly mapped from the one-step reward $\mathbf{r}_t$ . To prevent this mapping from introducing potential redundant information into $\mathbf{k}_t$ , we first use $\mathcal{I}(\mathbf{r}_t;\mathbf{k}_t|\mathbf{u}_t)$ to quantify this information and then minimize $\mathcal{I}(\mathbf{r}_t;\mathbf{k}_t|\mathbf{u}_t)$ . Therefore, we have the whole optimization objective to minimize for compressed reward representation learning.
+
+$$
+\mathcal {L} _ {\mathrm {c i b}} = \mathcal {I} \left(\mathbf {u} _ {t}; \mathbf {z} _ {t} \mid \mathbf {r} _ {t}\right) - \beta \mathcal {I} \left(\mathbf {r} _ {t}; \mathbf {z} _ {t}\right) + \mathcal {I} \left(\mathbf {r} _ {t}; \mathbf {k} _ {t} \mid \mathbf {u} _ {t}\right). \tag {9}
+$$
+
+# 4.3 ROUSER ALGORITHM
+
+Here, we present the detailed algorithm of ROUSER. Firstly, we provide the losses for compressed reward representations. Then, we introduce the loss with TD learning paradigm for robust action-value representation learning. Moreover, we provide the theoretical analysis of learned robust action-value representations. We provide the architecture and pseudocode of ROUSER in Appendix D.
+
+IB-based Losses for Compressed Reward Representation Learning. The optimization objective for learning compressed reward representations consists of two parts: a prediction loss based on Equation 3 and a conditional IB loss based on Equation 9.
+
+Firstly, we introduce a reward model $\psi$ to encode the compressed reward representation from an observation-action pair and assume that a compressed reward representation $z(o_{t},a_{t}) = \mathbb{E}[\mathbf{z}_{t}]$ for any observation-action pair $(o_t,a_t)$ follows a Gaussian distribution $\mathcal{N}_{\psi} = \mathcal{N}\big(z_{\psi}(o_t,a_t),\Sigma_{\psi}(o_t,a_t)\big)$ where $z_{\psi}(o_t,a_t)$ is the mean and $\Sigma_{\psi}(o_t,a_t)$ is the diagonal covariance. We also provide a parameterized model $\eta$ to estimate the representation $k(r_{t}) = \mathbb{E}[\mathbf{k}_{t}]$ . $\mathbf{k}_t$ is drawn from the Gaussian distribution $\mathcal{N}_{\eta} = \mathcal{N}\big(k_{\eta}(r_{t}),\Sigma_{\eta}(r_{t})\big)$ , where $k_{\eta}(r_{t})$ is the mean of $\mathbf{k}_t$ , and $\Sigma_{\eta}(r)$ is the diagonal covariance.
+
+Secondly, we provide the prediction loss based on Equation 3 to maintain the linear mapping relationship between the compressed reward representations and corresponding one-step rewards. Building upon model-based RL methods (Janner et al., 2019; Wang et al., 2022; 2023c) that model one-step rewards as a Gaussian distribution, we predict the mean and the standard deviation of reward distribution to learn reward representations. We formulate the prediction loss based on KL divergence:
+
+$$
+\mathcal {L} _ {\text {p r e d}} (\psi , \omega^ {\prime}, \omega^ {\prime \prime}) = \mathbb {E} _ {(\mathbf {o} _ {t}, \mathbf {a} _ {t}, \mathbf {r} _ {t}) \sim \mathcal {B}} \left[ \frac {\left\| \left\langle \omega^ {\prime} , z _ {\psi} (\mathbf {o} _ {t} , \mathbf {a} _ {t}) \right\rangle - \mathbf {r} _ {t} \right\| _ {2} ^ {2}}{2 \cdot \left\langle \omega^ {\prime \prime} , z _ {\psi} (\mathbf {o} _ {t} , \mathbf {a} _ {t}) \right\rangle^ {2}} + \log \left\langle \omega^ {\prime \prime}, z _ {\psi} (\mathbf {o} _ {t}, \mathbf {a} _ {t}) \right\rangle \right], \tag {10}
+$$
+
+where $\omega^{\prime}$ denote the weight vector mentioned in Equation 3 for the computation of the mean of one-step rewards, $\omega''$ denote the weight vector to compute the standard deviation of one-step rewards, and $\mathcal{B}$ denotes the replay buffer.
+
+Finally, we propose the conditional IB loss based on Equation 9 to learn compressed reward representations, discarding task-irrelevant information while preserving task-relevant information. With the models $\psi$ and $\eta$ , we can reformulate Equation 9 as:
+
+$$
+\mathcal {L} _ {\text {i n f o}} (\psi , \eta) = \mathbb {E} _ {\mathcal {B}} \left[ - \mathcal {I} \left(\mathbf {z} _ {t}; \mathbf {k} _ {t}\right) + \alpha \mathcal {D} _ {\mathcal {S K L}} \left(\mathcal {N} _ {\psi} | | \mathcal {N} _ {\eta}\right) \right], \tag {11}
+$$
+
+where $\alpha$ derived from $\beta$ is a hyperparameter that is tuned by an exponential scheduler during training, and $\mathcal{D}_{\mathcal{SKL}}$ represents the symmetrized KL divergence (Jeffreys, 1998) obtained by averaging the KL divergences $\mathcal{D}_{\mathcal{KL}}(\mathcal{N}_{\psi}||\mathcal{N}_{\eta})$ and $\mathcal{D}_{\mathcal{KL}}(\mathcal{N}_{\eta}||\mathcal{N}_{\psi})$ . Please refer to Appendix C.3.
+
+The first term of $\mathcal{L}_{\mathrm{info}}$ in Equation 11 maximizes mutual information between the representation $\mathbf{z}_t$ and the one-step reward $\mathbf{r}_t$ . This term in fact maximizes task-relevant information in the representation $\mathbf{z}_t$ . The second term of $\mathcal{L}_{\mathrm{info}}$ minimizes the conditional mutual information between the observation-action pair $(\mathbf{o}_t, \mathbf{a}_t)$ and the representation $\mathbf{z}_t$ . It represents that we can minimize irrelevant and redundant information in the representation $\mathbf{z}_t$ . See Appendix C.3 for the derivation of Equation 11.
+
+Further, to estimate the mutual information $\mathcal{I}(\mathbf{z}_t; \mathbf{k}_t)$ between $\mathbf{z}_t$ and $\mathbf{k}_t$ for a transition $(\mathbf{o}, \mathbf{a}, \mathbf{r}) \sim \mathcal{B}$ , we can leverage the InfoNCE (van den Oord et al., 2018; Laskin et al., 2020) function. Thus, we have
+
+$$
+\mathcal {I} \left(\mathbf {z} _ {t}; \mathbf {k} _ {t}\right) = - \log \frac {\exp \left(\operatorname {s i m} \left(\mathbf {z} _ {t} , \mathbf {k} _ {t} ^ {+}\right)\right)}{\exp \left(\operatorname {s i m} \left(\mathbf {z} _ {t} , \mathbf {k} _ {t} ^ {+}\right)\right) + \sum_ {i = 1} ^ {N - 1} \exp \left(\operatorname {s i m} \left(\mathbf {z} _ {t} , \mathbf {k} _ {t , i}\right)\right)}, \tag {12}
+$$
+
+where $\mathrm{sim}(\mathbf{x},\mathbf{y}) = \mathbf{x}^T\mathbf{y}$ $N$ is the batch size.
+
+TD-Based Loss for Robust Action-Value Representation Learning. As the robust action-value representation has a recursive nature, we employ the TD learning paradigm—the commonly used technique to learn an objective with a recursive form—to learn the representation.
+
+Based on Equations 2, 5, and 6, we derive a recursive form of the robust action-value representation.
+
+$$
+Z ^ {\pi} \left(\mathbf {o} _ {t}, \mathbf {a} _ {t}\right) = z \left(\mathbf {o} _ {t}, \mathbf {a} _ {t}\right) + \gamma \mathbb {E} _ {\pi , p} \left[ Z ^ {\pi} \left(\mathbf {o} _ {t + 1}, \mathbf {a} _ {t + 1}\right) \right], \tag {13}
+$$
+
+where $Z^{\pi}$ and $z$ subject to Equations 2 and 6, respectively.
+
+Then, we model the critic using the parameter $\theta$ to estimate the action values. For robust action-value representation learning, we do not change critic's structure and directly use embeddings from critic's center layer as robust action-value representations (see Figure 1). Therefore, we also parameterize the robust action-value representations as $Z_{\theta}$ . Based on Equation 13, we have the TD-based loss as:
+
+$$
+\mathcal {L} _ {\text {r o b u s t}} (\theta) = \mathbb {E} _ {\mathcal {B}} \left[ \left\| Z _ {\theta} \left(\mathbf {o} _ {t}, \mathbf {a} _ {t}\right) - \hat {Z} \left(\mathbf {o} _ {t}, \mathbf {a} _ {t}\right) \right\| _ {2} ^ {2} \right], \hat {Z} \left(\mathbf {o} _ {t}, \mathbf {a} _ {t}\right) = z _ {\psi} \left(\mathbf {o} _ {t}, \mathbf {a} _ {t}\right) + \gamma \mathbb {E} _ {\pi} \left[ Z _ {\bar {\theta}} \left(\mathbf {o} _ {t + 1}, \mathbf {a} _ {t + 1}\right) \right], \tag {14}
+$$
+
+where $(\mathbf{o}_t,\mathbf{a}_t,\mathbf{r}_t,\mathbf{o}_{t + 1})\sim \mathcal{B}$ , and $\bar{\theta}$ denotes the parameter of the target critic that are obtained as an exponentially moving average of the parameter $\theta$ of the critic (Mnih et al., 2015). Moreover, if we apply the soft actor-critic framework (Haarnoja et al., 2018) that adds entropy of the policy to one-step rewards, we will also add this entropy into each dimension of compressed reward representations.
+
+According to Equation 14, we provide a theoretical guarantee for the robust action-value representation learning in the following theorem. It gives a bound between the true action-value function and the action-value function on top of learned robust action-value representations (see Appendix C.4).
+
+Theorem 4.4. Let $Z$ be a learned robust action-value representation from any observation-action pair $(o, a) \in \mathcal{O} \times \mathcal{A}$ , $Q_e^\pi : \mathcal{O} \times \mathcal{A} \to \mathbb{R}$ be the true action-value function of a policy $\pi$ in the environment $e \in \mathcal{E}$ , $f_e^* : \mathcal{Z} \to \mathbb{R}$ be the optimal linear mapping on the representation space, and $\epsilon$ be a bound of estimation error for each compressed reward representation $z$ , i.e., $|f_e^*(z) - r| \leq \epsilon$ . For any $(o, a) \in \mathcal{O} \times \mathcal{A}$ and $e \in \mathcal{E}$ , we have
+
+$$
+0 \leq \left| Q _ {e} ^ {\pi} (o, a) - f _ {e} ^ {*} (Z (o, a)) \right| \leq \frac {1}{1 - \gamma} \epsilon .
+$$
+
+This theoretical proof allows us to directly use embeddings of the critic's center layer as robust action-value representations for estimating action values. This shows that ROUSER can be integrated with various VRL methods. We combine ROUSER with traditional VRL methods in Section 5.2.
+
+In addition, to alleviate the overestimation bias of action values, Fujimoto et al. (2018) introduces double critics with $\theta_{1}$ and $\theta_{2}$ . We note that our representation learning based on Equation 14 also suffers from the overestimation bias as well as the action-value function approximation (Fujimoto et al., 2018). Thus, we propose to leverage the overestimation bias of robust action-value representations to alleviate the bias of estimated action values. We reformulate Equation 14 as:
+
+$$
+\mathcal {L} _ {\text {r o b u s t}} \left(\theta_ {1}, \theta_ {2}\right) = \mathbb {E} _ {\left(\mathbf {o} _ {t}, \mathbf {a} _ {t}, \mathbf {r} _ {t}, \mathbf {o} _ {t + 1}\right) \sim \mathcal {B}} \left[ \sum_ {i = 1, 2} \left\| Z _ {\theta_ {i}} \left(\mathbf {o} _ {t}, \mathbf {a} _ {t}\right) - \hat {Z} \left(\mathbf {o} _ {t}, \mathbf {a} _ {t}\right) \right\| _ {2} ^ {2} \right], \tag {15}
+$$
+
+$$
+\hat {Z} (\mathbf {o} _ {t}, \mathbf {a} _ {t}) = z _ {\psi} (\mathbf {o} _ {t}, \mathbf {a} _ {t}) + \gamma \mathbb {E} _ {\pi} \left[ \min _ {i = 1, 2} \mathbb {I} Z _ {\bar {\theta} _ {i}} \left(\mathbf {o} _ {t + 1}, \mathbf {a} _ {t + 1}\right) \right],
+$$
+
+$$
+\min _ {i = 1, 2} \mathbb {I} Z _ {\bar {\theta} _ {i}} \left(\mathbf {o} _ {t}, \mathbf {a} _ {t}\right) = \min _ {i = 1, 2} \mathbb {I} _ {\omega^ {\prime} \geq 0} \cdot Z _ {\bar {\theta} _ {i}} \left(\mathbf {o} _ {t}, \mathbf {a} _ {t}\right) + \max _ {i = 1, 2} \mathbb {I} _ {\omega^ {\prime} < 0} \cdot Z _ {\bar {\theta} _ {i}} \left(\mathbf {o} _ {t}, \mathbf {a} _ {t}\right), \tag {16}
+$$
+
+
+Figure 1: The architecture of ROUSER. We first input $(o_t, a_t, r_t)$ into the reward model to compute the reward loss, updating the reward model. Next, we input $(o_t, a_t)$ into the critic model to compute the robust loss, which updates $(\theta_1, \theta_2)$ to learn robust action-value representations. Moreover, we use traditional actor and critic losses to update the actor and the entire critic model, respectively.
+
+where $\bar{\theta}_{1}$ and $\bar{\theta}_{2}$ are parameters of target critics, $\mathbb{I}_{\omega^{\prime} \geq 0}$ and $\mathbb{I}_{\omega^{\prime} < 0}$ denote $D$ -dimensional vectors of binary values from the indicator function $\mathbb{I}$ , and $\bar{\omega}^{\prime}$ is the parameter of the linear mapping $f$ equivalent to $\Phi$ . With the operator $\min \mathbb{I}$ , we select minimums of robust action-value representations positively related to action values and maximums negatively related to action values. Thus, based on the linear relation between action values and robust action-value representations, we can alleviate the overestimation bias in the action-value estimation.
+
+To clearly overview our method, we provide the architecture in Figure 1. It illustrates our proposed two loss functions: the robust loss $\mathcal{L}_{\mathrm{robust}}(\theta_1,\theta_2)$ and the reward loss $\mathcal{L}_{\mathrm{pred}}(\psi ,\omega^{\prime},\omega^{\prime \prime}) + \mathcal{L}_{\mathrm{info}}(\psi ,\eta)$ . The detailed implementation of this architecture are presented in Appendix D.
+
+# 5 EXPERIMENTS
+
+We conduct extensive experiments to evaluate the generalization performance of ROUSER on testing environments with unseen visual distractions. Firstly, we demonstrate the effectiveness of ROUSER for solving the visual control tasks on DeepMind Control Suite (DMC, Tassa et al. (2018)) with task-irrelevant visual distractions, including background and color distractions. Then, we assess the applicability of ROUSER by combining it with traditional policy gradient and value-based VRL algorithms. Finally, we visualize the captured long-term information and evaluate the robustness of ROUSER. Moreover, we conduct careful ablation studies to show the effectiveness of ROUSER. We provide additional results of ROUSER in Appendix E.
+
+# 5.1 GENERALIZATION PERFORMANCE ON DMC BENCHMARK WITH CONTINUOUS ACTIONS
+
+We apply visual distractions in DMC benchmark, including color and background distractions (Stone et al., 2021), to investigate the generalization performance of VRL agents. For color distractions, we train the agents in a training environment with a weak color change and evaluate in various test environments with strong color changes. It is worth noting that the variance of the color distractions we use is larger than the hard setting proposed in Stone et al. (2021), which poses greater challenges for the agents. For background distractions, we follow the hard setting (Agarwal et al., 2021; Yang et al., 2022) to use 2 videos as backgrounds during training and evaluate the generalization performance on 30 unseen videos. See Appendix E.1 for more details. We conduct main experiments on six tasks of DMC. For each task, we train the agents with six random seeds and present means and standard errors of their cumulative rewards at 500,000 environment steps.
+
+We integrate ROUSER with DrQv2 (Yarats et al., 2022) and SRM (Huang et al., 2022) to evaluate the effectiveness of ROUSER on generalization. Note that in all experiments under both color and background distractions, ROUSER-DrQv2 consistently outperforms DrQv2, and ROUSER-SRM
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Figure 2: We evaluate ROUSER on DMC with unseen color and video background distractions. Each result is averaged over 100 episodes at 500K environment steps using six random seeds.
+
+surpasses SRM. We also compare our approach ROUSER against several state-of-the-art (SOTA) methods: (1) CURL (Laskin et al., 2020), (2) RAP (Chen & Pan, 2022), (3) CRESP (Yang et al., 2022), (4) TACO (Zheng et al., 2024). See Appendix E.1 for detailed settings.
+
+Figure 2 illustrates results under color and background distractions, demonstrating that ROUSER outperforms other baselines in 11 out of 12 experiments. See Appendix E.1 for detailed results.
+
+It is worth noting that although ROUSER uses one-step rewards to learn robust action-value representations, it significantly improves generalization performance on tasks with sparse reward functions (e.g., ball_in_cup Catch, finger_spin, and reach easy tasks from DMC benchmark). Considering that the actor-critic algorithms (Fujimoto et al., 2018; Haarnoja et al., 2018)—which estimate action values using one-step rewards—also perform well on sparse reward tasks, we believe that our approach ROUSER is also effective in the contexts beyond sparse rewards.
+
+# 5.2 EXTENDING ROUSER TO PROCGEN WITH DISCRETE ACTIONS
+
+In this subsection, motivated by the result in Theorem 4.4, we extend ROUSER to decision tasks with discrete actions, assessing its applicability.
+
+Firstly, Figure 2 shows that ROUSER can enhance generalization when combined with policy gradient VRL algorithms, such as DrQv2 and SRM. Then, to demonstrate that ROUSER can be integrated with value-based methods, we conduct experiments in Procgen (Cobbe et al., 2020), a benchmark with image observations where each game has multiple levels to evaluate generalization. See Appendix E.2 for detailed settings. We integrate ROUSER with QR-DQN (Dabney et al., 2018), a prior SOTA value-based VRL method on Procgen for generaliz
+
+
+Figure 3: Results on Procgen.
+
+Figure 3 shows Progen scores on test levels that are averaged over five random seeds with a batch size of 256 at $25\mathrm{M}$ environment steps. The results demonstrate that ROUSER can also improve the generalization performance of agents when combined with the value-based VRL method for discrete control tasks. In addition, we provide the details of these results and the implementation for the combination of ROUSER and QR-DQN in Appendix E.2.
+
+
+(a) Long-Term Information
+
+
+(b) Conditional IB Loss
+
+
+(c) Noise in Rewards
+
+
+(d) Different Dimensions
+Figure 4: We report four results on cheetah_run task with unseen color distractions.
+
+# 5.3 ANALYZING THE REPRESENTATIONS LEARNED BY ROUSER
+
+Long-Term Robust Information. We assess how ROUSER can capture long-term robust information. Specifically, we first collect 200K samples under unseen color distractions using a DrQv2's policy. Next, we compute the representations learned by each method from state-action pairs in the collected data. Such representations are extracted from the center layer of the critic in each method. Then, we fix these representations and input them into a 2-layer trainable MLP to predict the future reward sequences over a length of 300. During the prediction process, we use the Adam optimizer with a learning rate of 1e-4. As shown in Figure 4(a), we plot curves of the MSE loss on 1K evaluation samples across three seeds. The lower MSE losses of ROUSER indicate that its learned representations capture long-term information more effectively.
+
+
+Figure 5: Results with different $\alpha$ in different color scales.
+
+Effectiveness of IB. To assess the effectiveness of IB, we remove the conditional IB loss from the objectives of ROUSER. We then train agents to evaluate their generalization performance. Results (i.e., means and standard deviations) over three seeds in Figure 4(b) demonstrate the effectiveness of the conditional IB loss. Moreover, by tuning $\alpha$ in the conditional IB loss from Equation 11, we find that larger values of $\alpha$ result in smaller $\mathcal{D}_{\mathcal{SK},\mathcal{L}}$ , potentially improving generalization performance. This observation aligns with our analysis in Section 4.3, demonstrating that minimizing $\mathcal{D}_{\mathcal{SK},\mathcal{L}}$ (the second term of $\mathcal{L}_{\mathrm{info}}$ ) effectively discards irrelevant and redundant information. We illustrate the results for different values of $\alpha$ over three seeds in Figure 5. Each result is evaluated at $200\mathrm{K}$ steps on cartpole-swingup task under color distractions (scale from 0.3 to 0.6, see Appendix E.5 for details).
+
+Noisy One-Step Rewards. We add noise drawn from $\mathcal{N}(0,0.1)$ for each reward to show how ROUSER can be robust against noisy rewards. Figure 4(c) demonstrates that ROUSER-DrQv2 significantly outperforms DrQv2, remaining effective under the noisy reward setting.
+
+Ablation Study for Dimension. We illustrate results of ROUSER-DrQv2 for different dimensions of robust action-value representations in Figure 4(d). The results, averaged over three seeds on cheetah_run task with color distractions, show that ROUSER is not sensitive to the dimension $D$ .
+
+# 6 CONCLUSION
+
+Many existing VRL approaches focus on learning robust representations against irrelevant visual distractions but often do not take into account the long-term decision-relevant information. This may degrade generalization performance of VRL agents. In this paper, we propose robust action-value representations in the IB framework, which encodes long-term information from action values while discarding irrelevant features from image observations during the robust representation learning process. Considering that action values are unknown, we propose to decompose robust action-value representations into infinite sequences associated with rewards. Thus, we can directly use known rewards to learn robust action-value representations. Experiments demonstrate that our approach significantly enhances generalization capabilities in the majority of tasks. We believe this method is general and applicable to other real-word applications, such as end-to-end autonomous driving.
+
+# REPRODUCIBILITY STATEMENT
+
+In this study, to ensure the reproducibility of our approach, we provide key information from the main text and Appendix as follows.
+
+1. Algorithm. We provide the architecture and pseudocode of our approach ROUSER in Appendix D. We also provide the detailed implementation of ROUSER in Appendices E.1 and E.2. See Appendix E.5 for the hyperparameters of ROUSER.
+2. Source Code. According to the architecture and pseudocode in Appendix D, our approach ROUSER can directly build upon traditional VRL algorithms. Specifically, in Section 5.1, we follow Yuan et al. (2023) to use the provided code for DrQv2 and SRM, available at https://github.com/gemcollector/RL-ViGen. In Section 5.2, we apply the code from Wang et al. (2020) for QR-DQN, available at https://github.com/kaixin96/mixreg. Moreover, we implement our codes in Python version 3.7 and make the code available online1.
+3. Experimental Details. We provide detailed experiment settings in Section 5.1, Appendices E.1, E.2, and E.3.
+4. Theoretical Proofs. We provide all proofs in Appendix C.
+
+# ACKNOWLEDGMENTS
+
+The authors would like to thank all the anonymous reviewers for their valuable suggestions. This work was supported by the National Key R&D Program of China under contract 2022ZD0119801 and the National Nature Science Foundations of China grants U23A20388 and 62021001.
+
+# REFERENCES
+
+Majid Abdolshah, Hung Le, Thommen George Karimpanal, Sunil Gupta, Santu Rana, and Svetha Venkatesh. A new representation of successor features for transfer across dissimilar environments. In Proceedings of the 38th International Conference on Machine Learning, volume 139 of Proceedings of Machine Learning Research, pp. 1-9. PMLR, 2021.
+Rishabh Agarwal, Marlos C. Machado, Pablo Samuel Castro, and Marc G. Bellemare. Contrastive behavioral similarity embeddings for generalization in reinforcement learning. In 9th International Conference on Learning Representations, 2021.
+Alexander A. Alemi, Ian Fischer, Joshua V. Dillon, and Kevin Murphy. Deep variational information bottleneck. In 5th International Conference on Learning Representations, 2017.
+Haider Ali, Dian Chen, Matthew Harrington, Nathaniel Salazar, Mohammad Al Ameedi, Ahmad Faraz Khan, Ali Raza Butt, and Jin-Hee Cho. A survey on attacks and their countermeasures in deep learning: Applications in deep neural networks, federated, transfer, and deep reinforcement learning. IEEE Access, 11:120095–120130, 2023.
+Andre Barreto, Will Dabney, Rémi Munos, Jonathan J. Hunt, Tom Schaul, David Silver, and Hado van Hasselt. Successor features for transfer in reinforcement learning. In Advances in Neural Information Processing Systems 30, pp. 4055-4065, 2017.
+André Barreto, Diana Borsa, John Quan, Tom Schaul, David Silver, Matteo Hessel, Daniel J. Mankowitz, Augustin Zídek, and Rémi Munos. Transfer in deep reinforcement learning using successor features and generalised policy improvement. In Proceedings of the 35th International Conference on Machine Learning, volume 80 of Proceedings of Machine Learning Research, pp. 510-519. PMLR, 2018.
+André Barreto, Shaobo Hou, Diana Borsa, David Silver, and Doina Precup. Fast reinforcement learning with generalized policy updates. Proc. Natl. Acad. Sci. USA, 117(48):30079-30087, 2020.
+
+David Bertoin, Adil Zouitine, Mehdi Zouitine, and Emmanuel Rachelson. Look where you look! saliency-guided q-networks for generalization in visual reinforcement learning. In Sanmi Koyejo, S. Mohamed, A. Agarwal, Danielle Belgrave, K. Cho, and A. Oh (eds.), Advances in Neural Information Processing Systems 35, 2022.
+Zhong Cao, Kun Jiang, Weitao Zhou, Shaobing Xu, Huei Peng, and Diange Yang. Continuous improvement of self-driving cars using dynamic confidence-aware reinforcement learning. Nature Machine Intelligence, 5(2):145-158, 2023.
+Wilka Carvalho, Andre Saraiva, Angelos Filos, Andrew K. Lampinen, Loic Matthew, Richard L. Lewis, Honglak Lee, Satinder Singh, Danilo Jimenez Rezende, and Daniel Zoran. Combining behaviors with the successor features keyboard. In Advances in Neural Information Processing Systems 36, 2023.
+Pablo Samuel Castro. Scalable methods for computing state similarity in deterministic markov decision processes. In The Thirty-Fourth AAAI Conference on Artificial Intelligence, pp. 10069-10076. AAAI Press, 2020.
+Gal Chechik and Naftali Tishby. Extracting relevant structures with side information. In Advances in Neural Information Processing Systems 15, pp. 857-864, 2002.
+Jianda Chen and Sinno Jialin Pan. Learning representations via a robust behavioral metric for deep reinforcement learning. In Sanmi Koyejo, S. Mohamed, A. Agarwal, Danielle Belgrave, K. Cho, and A. Oh (eds.), Advances in Neural Information Processing Systems 35, 2022.
+Karl Cobbe, Christopher Hesse, Jacob Hilton, and John Schulman. Leveraging procedural generation to benchmark reinforcement learning. In Proceedings of the 37th International Conference on Machine Learning, volume 119 of Proceedings of Machine Learning Research, pp. 2048-2056. PMLR, 2020.
+Will Dabney, Mark Rowland, Marc G. Bellemare, and Rémi Munos. Distributional reinforcement learning with quantile regression. In Sheila A. McIlraith and Kilian Q. Weinberger (eds.), Proceedings of the Thirty-Second AAAI Conference on Artificial Intelligence, pp. 2892–2901. AAAI Press, 2018.
+Peter Dayan. Improving generalization for temporal difference learning: The successor representation. Neural Comput., 5(4):613-624, 1993.
+Thomas G. Dietterich. Hierarchical reinforcement learning with the MAXQ value function decomposition. J. Artif. Intell. Res., 13:227-303, 2000.
+Jiameng Fan and Wenchao Li. DRIBO: robust deep reinforcement learning via multi-view information bottleneck. In International Conference on Machine Learning, volume 162 of Proceedings of Machine Learning Research, pp. 6074-6102. PMLR, 2022.
+Linxi Fan, Guanzhi Wang, De-An Huang, Zhiding Yu, Li Fei-Fei, Yuke Zhu, and Animashree Anandkumar. SECANT: self-expert cloning for zero-shot generalization of visual policies. In Marina Meila and Tong Zhang (eds.), Proceedings of the 38th International Conference on Machine Learning, volume 139 of Proceedings of Machine Learning Research, pp. 3088-3099. PMLR, 2021.
+Mehdi Fatemi and Arash Tavakoli. Orchestrated value mapping for reinforcement learning. In *The Tenth International Conference on Learning Representations*. OpenReview.net, 2022.
+Marco Federici, Anjan Dutta, Patrick Forre, Nate Kushman, and Zeynep Akata. Learning robust representations via multi-view information bottleneck. In 8th International Conference on Learning Representations. OpenReview.net, 2020.
+Norman Ferns and Doina Precup. Bisimulation metrics are optimal value functions. In Proceedings of the Thirtieth Conference on Uncertainty in Artificial Intelligence, pp. 210-219. AUAI Press, 2014.
+
+Scott Fujimoto, Herke van Hoof, and David Meger. Addressing function approximation error in actor-critic methods. In Proceedings of the 35th International Conference on Machine Learning, volume 80 of Proceedings of Machine Learning Research, pp. 1582-1591. PMLR, 2018.
+Zijie Geng, Jie Wang, Ziyan Liu, Siyuan Xu, Zhentao Tang, Mingxuan Yuan, Jianye HAO, Yongdong Zhang, and Feng Wu. Reinforcement learning within tree search for fast macro placement. In *Forty-first International Conference on Machine Learning*, 2024. URL https://openreview.net/forum?id=AJGwSx0RUV.
+Christopher Grimm and Satinder Singh. Learning independently-obtainable reward functions. CoRR, abs/1901.08649, 2019.
+Jeongsoo Ha, Kyungsoo Kim, and Yusung Kim. Dream to generalize: Zero-shot model-based reinforcement learning for unseen visual distractions. In Brian Williams, Yiling Chen, and Jennifer Neville (eds.), Thirty-Seventh AAAI Conference on Artificial Intelligence, pp. 7802-7810. AAAI Press, 2023.
+Tuomas Haarnoja, Aurick Zhou, Pieter Abbeel, and Sergey Levine. Soft actor-critic: Off-policy maximum entropy deep reinforcement learning with a stochastic actor. In Proceedings of the 35th International Conference on Machine Learning, volume 80 of Proceedings of Machine Learning Research, pp. 1856-1865. PMLR, 2018.
+Nicklas Hansen and Xiaolong Wang. Generalization in reinforcement learning by soft data augmentation. In IEEE International Conference on Robotics and Automation, pp. 13611-13617. IEEE, 2021.
+Nicklas Hansen, Hao Su, and Xiaolong Wang. Stabilizing deep q-learning with convnets and vision transformers under data augmentation. In Advances in Neural Information Processing Systems 34, pp. 3680-3693, 2021.
+Matteo Hessel, Joseph Modayil, Hado van Hasselt, Tom Schaul, Georg Ostrovski, Will Dabney, Dan Horgan, Bilal Piot, Mohammad Gheshlaghi Azar, and David Silver. Rainbow: Combining improvements in deep reinforcement learning. In Proceedings of the Thirty-Second AAAI Conference on Artificial Intelligence, pp. 3215-3222. AAAI Press, 2018.
+Ionel-Alexandru Hosu and Traian Rebedea. Playing atari games with deep reinforcement learning and human checkpoint replay. CoRR, abs/1607.05077, 2016.
+Yangru Huang, Peixi Peng, Yifan Zhao, Guangyao Chen, and Yonghong Tian. Spectrum random masking for generalization in image-based reinforcement learning. In Advances in Neural Information Processing Systems 35, 2022.
+Michael Janner, Justin Fu, Marvin Zhang, and Sergey Levine. When to trust your model: Model-based policy optimization. In Advances in Neural Information Processing Systems 32, pp. 12498-12509, 2019.
+Harold Jeffreys. The theory of probability. OuP Oxford, 1998.
+Mete Kemertas and Tristan Aumentado-Armstrong. Towards robust bisimulation metric learning. In Advances in Neural Information Processing Systems 34, pp. 4764-4777, 2021.
+Hyoungseok Kim, Jaekyeom Kim, Yeonwoo Jeong, Sergey Levine, and Hyun Oh Song. EMI: exploration with mutual information. In Proceedings of the 36th International Conference on Machine Learning, ICML 2019, 9-15 June 2019, Long Beach, California, USA, volume 97 of Proceedings of Machine Learning Research, pp. 3360-3369. PMLR, 2019.
+Jaekyeom Kim, Minjung Kim, Dongyeon Woo, and Gunhee Kim. Drop-bottleneck: Learning discrete compressed representation for noise-robust exploration. In 9th International Conference on Learning Representations. OpenReview.net, 2021.
+Robert Kirk, Amy Zhang, Edward Grefenstette, and Tim Rocktäschel. A survey of generalisation in deep reinforcement learning. CoRR, abs/2111.09794, 2021.
+
+Yufei Kuang, Jie Wang, Haoyang Liu, Fangzhou Zhu, Xijun Li, Jia Zeng, HAO Jianye, Bin Li, and Feng Wu. Rethinking branching on exact combinatorial optimization solver: The first deep symbolic discovery framework. In *The Twelfth International Conference on Learning Representations*, 2024.
+Michael Laskin, Aravind Srinivas, and Pieter Abbeel. CURL: contrastive unsupervised representations for reinforcement learning. In Proceedings of the 37th International Conference on Machine Learning, volume 119 of Proceedings of Machine Learning Research, pp. 5639-5650. PMLR, 2020.
+Bonnie Li, Vincent François-Lavet, Thang Doan, and Joelle Pineau. Domain adversarial reinforcement learning. CoRR, abs/2102.07097, 2021.
+Timothy P. Lillicrap, Jonathan J. Hunt, Alexander Pritzel, Nicolas Heess, Tom Erez, Yuval Tassa, David Silver, and Daan Wierstra. Continuous control with deep reinforcement learning. In 4th International Conference on Learning Representations, 2016.
+Zichuan Lin, Li Zhao, Derek Yang, Tao Qin, Tie-Yan Liu, and Guangwen Yang. Distributional reward decomposition for reinforcement learning. In Advances in Neural Information Processing Systems 32, pp. 6212-6221, 2019.
+Haotian Ling, Zhihai Wang, and Jie Wang. Learning to stop cut generation for efficient mixed-integer linear programming. Proceedings of the AAAI Conference on Artificial Intelligence, 38(18): 20759-20767, Mar. 2024.
+Haoyang Liu, Yufei Kuang, Jie Wang, Xijun Li, Yongdong Zhang, and Feng Wu. Promoting generalization for exact solvers via adversarial instance augmentation, 2023a. URL https://arxiv.org/abs/2310.14161.
+Haoyang Liu, Jie Wang, Wanbo Zhang, Zijie Geng, Yufei Kuang, Xijun Li, Bin Li, Yongdong Zhang, and Feng Wu. MILP-studio: MILP instance generation via block structure decomposition. In The Thirty-eighth Annual Conference on Neural Information Processing Systems, 2024. URL https://openreview.net/forum?id=W433RI0VU4.
+Haoyang Liu, Jie Wang, Zijie Geng, Xijun Li, Yuxuan Zong, Fangzhou Zhu, Jianye HAO, and Feng Wu. Apollo-MILP: An alternating prediction-correction neural solving framework for mixed-integer linear programming. In The Thirteenth International Conference on Learning Representations, 2025. URL https://openreview.net/forum?id=mFY0tPDWK8.
+Qiyuan Liu, Qi Zhou, Rui Yang, and Jie Wang. Robust representation learning by clustering with bisimulation metrics for visual reinforcement learning with distractions. In Thirty-Seventh AAAI Conference on Artificial Intelligence, pp. 8843-8851. AAAI Press, 2023b.
+Martin Bertran Lopez, Walter Talbott, Nitish Srivastava, and Joshua M. Susskind. Efficient embedding of semantic similarity in control policies via entangled bisimulation. CoRR, abs/2201.12300, 2022.
+Chen Ma, Dylan R. Ashley, Junfeng Wen, and Yoshua Bengio. Universal successor features for transfer reinforcement learning. CoRR, abs/2001.04025, 2020.
+Hiroshi Makino. Arithmetic value representation for hierarchical behavior composition. Nature Neuroscience, 26(1):140-149, 2023.
+Bogdan Mazoure, Ahmed M. Ahmed, R. Devon Hjelm, Andrey Kolobov, and Patrick MacAlpine. Cross-trajectory representation learning for zero-shot generalization in RL. In The Tenth International Conference on Learning Representations. OpenReview.net, 2022.
+Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Andrei A. Rusu, Joel Veness, Marc G. Bellemare, Alex Graves, Martin A. Riedmiller, Andreas Fidjeland, Georg Ostrovski, Stig Petersen, Charles Beattie, Amir Sadik, Ioannis Antonoglou, Helen King, Dharshan Kumaran, Daan Wierstra, Shane Legg, and Demis Hassabis. Human-level control through deep reinforcement learning. Nat., 518(7540):529-533, 2015.
+Yingjun Pei and Xinwen Hou. Learning representations in reinforcement learning: An information bottleneck approach. CoRR, abs/1911.05695, 2019.
+
+Han Qi, Yi Su, Aviral Kumar, and Sergey Levine. Data-driven offline decision-making via invariant representation learning. In Advances in Neural Information Processing Systems 35, 2022.
+Roberta Raileanu and Rob Fergus. Decoupling value and policy for generalization in reinforcement learning. In Marina Meila and Tong Zhang (eds.), Proceedings of the 38th International Conference on Machine Learning, volume 139 of Proceedings of Machine Learning Research, pp. 8787-8798. PMLR, 2021.
+Roberta Raileanu, Maxwell Goldstein, Denis Yarats, Ilya Kostrikov, and Rob Fergus. Automatic data augmentation for generalization in reinforcement learning. In Marc' Aurelio Ranzato, Alina Beygelzimer, Yann N. Dauphin, Percy Liang, and Jennifer Wortman Vaughan (eds.), Advances in Neural Information Processing Systems 34, pp. 5402-5415, 2021.
+Stuart Russell and Andrew Zimdars. Q-decomposition for reinforcement learning agents. In Machine Learning, Proceedings of the Twentieth International Conference, pp. 656-663. AAAI Press, 2003.
+Andrew M. Saxe, Yamini Bansal, Joel Dapello, Madhu Advani, Artemy Kolchinsky, Brendan D. Tracey, and David D. Cox. On the information bottleneck theory of deep learning. In 6th International Conference on Learning Representations. OpenReview.net, 2018.
+John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. CoRR, abs/1707.06347, 2017.
+Zhihao Shi, Xize Liang, and Jie Wang. LMC: Fast training of GNNs via subgraph sampling with provable convergence. In The Eleventh International Conference on Learning Representations, 2023. URL https://openreview.net/forum?id=5VBBA91N6n.
+Zhihao Shi, Jie Wang, Fanghua Lu, Hanzhu Chen, Defu Lian, Zheng Wang, Jieping Ye, and Feng Wu. Label deconvolution for node representation learning on large-scale attributed graphs against learning bias. IEEE Trans actions on Pattern Analysis and Machine Intelligence, 46(12):11273-11286, 2024. doi: 10.1109/TPAMI.2024.3459408.
+Zhihao Shi, Jie Wang, Zhiwei Zhuang, Xize Liang, Bin Li, and Feng Wu. Accurate and scalable graph neural networks via message invariance. In The Thirteenth International Conference on Learning Representations, 2025. URL https://openreview.net/forum?id=UqrFPhcmFp.
+Xingyou Song, Yiding Jiang, Stephen Tu, Yilun Du, and Behnam Neyshabur. Observational overfitting in reinforcement learning. In 8th International Conference on Learning Representations, 2020.
+Austin Stone, Oscar Ramirez, Kurt Konolige, and Rico Jonschkowski. The distracting control suite - A challenging benchmark for reinforcement learning from pixels. CoRR, abs/2101.02722, 2021.
+Richard S Sutton and Andrew G Barto. Reinforcement learning: An introduction. MIT press, 2018.
+Richard S. Sutton, Doina Precup, and Satinder Singh. Between mdps and semi-mdps: A framework for temporal abstraction in reinforcement learning. Artif. Intell., 112(1-2):181-211, 1999.
+Hongyao Tang, Zhaopeng Meng, Guangyong Chen, Pengfei Chen, Chen Chen, Yaodong Yang, Luo Zhang, Wulong Liu, and Jianye Hao. Foresee then evaluate: Decomposing value estimation with latent future prediction. In Thirty-Fifth AAAI Conference on Artificial Intelligence, pp. 9834-9842. AAAI Press, 2021.
+Yuval Tassa, Yotam Doron, Alistair Muldal, Tom Erez, Yazhe Li, Diego de Las Casas, David Budden, Abbas Abdelmaleki, Josh Merel, Andrew Lefrancq, Timothy P. Lillicrap, and Martin A. Riedmiller. Deepmind control suite. CoRR, abs/1801.00690, 2018.
+Naftali Tishby and Noga Zaslavsky. Deep learning and the information bottleneck principle. In 2015 IEEE Information Theory Workshop, pp. 1-5. IEEE, 2015.
+Emanuel Todorov, Tom Erez, and Yuval Tassa. Mujoco: A physics engine for model-based control. In 2012 IEEE/RSJ International Conference on Intelligent Robots and Systems, pp. 5026-5033. IEEE, 2012.
+
+Aäron van den Oord, Yazhe Li, and Oriol Vinyals. Representation learning with contrastive predictive coding. CoRR, abs/1807.03748, 2018.
+Harm van Seijen, Mehdi Fatemi, Romain Laroche, Joshua Romoff, Tavian Barnes, and Jeffrey Tsang. Hybrid reward architecture for reinforcement learning. In Advances in Neural Information Processing Systems 30, pp. 5392-5402, 2017.
+Jie Wang, Rui Yang, Zijie Geng, Zhihao Shi, Mingxuan Ye, Qi Zhou, Shuiwang Ji, Bin Li, Yongdong Zhang, and Feng Wu. Generalization in visual reinforcement learning with the reward sequence distribution. CoRR, abs/2302.09601, 2023a.
+Jie Wang, Zhihai Wang, Xijun Li, Yufei Kuang, Zhihao Shi, Fangzhou Zhu, Mingxuan Yuan, Jia Zeng, Yongdong Zhang, and Feng Wu. Learning to cut via hierarchical sequence/set model for efficient mixed-integer programming. IEEE Transactions on Pattern Analysis and Machine Intelligence, pp. 1-17, 2024a. doi: 10.1109/TPAMI.2024.3432716.
+Jie Wang, Mingxuan Ye, Yufei Kuang, Rui Yang, Wengang Zhou, Houqiang Li, and Feng Wu. Long-term feature extraction via frequency prediction for efficient reinforcement learning. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2025a.
+Kaixin Wang, Bingyi Kang, Jie Shao, and Jiashi Feng. Improving generalization in reinforcement learning with mixture regularization. In Hugo Larochelle, Marc'Aurelio Ranzato, Raia Hadsell, Maria-Florina Balcan, and Hsuan-Tien Lin (eds.), Advances in Neural Information Processing Systems 33, 2020.
+Shuo Wang, Zhihao Wu, Jinwen Wang, Xiaobo Hu, Youfang Lin, and Kai Lv. How to learn domain-invariant representations for visual reinforcement learning: An information-theoretical perspective. In Proceedings of the Thirty-Third International Joint Conference on Artificial Intelligence, pp. 1389-1397. ijcai.org, 2024b.
+Zhihai Wang, Jie Wang, Qi Zhou, Bin Li, and Houqiang Li. Sample-efficient reinforcement learning via conservative model-based actor-critic. In Thirty-Sixth AAAI Conference on Artificial Intelligence, pp. 8612-8620. AAAI Press, 2022.
+Zhihai Wang, Xijun Li, Jie Wang, Yufei Kuang, Mingxuan Yuan, Jia Zeng, Yongdong Zhang, and Feng Wu. Learning cut selection for mixed-integer linear programming via hierarchical sequence model. In The Eleventh International Conference on Learning Representations, 2023b.
+Zhihai Wang, Taoxing Pan, Qi Zhou, and Jie Wang. Efficient exploration in resource-restricted reinforcement learning. Proceedings of the AAAI Conference on Artificial Intelligence, 37(8): 10279-10287, Jun. 2023c.
+Zhihai Wang, Jie Wang, Dongsheng Zuo, Yunjie Ji, Xinli Xia, Yuzhe Ma, Jianye Hao, Mingxuan Yuan, Yongdong Zhang, and Feng Wu. A hierarchical adaptive multi-task reinforcement learning framework for multiplier circuit design. In *Forty-first International Conference on Machine Learning*. PMLR, 2024c.
+Zhihai Wang, Jie Wang, Xilin Xia, Dongsheng Zuo, Lei Chen, Yuzhe Ma, Jianye Hao, Mingxuan Yuan, and Feng Wu. Computing circuits optimization via model-based circuit genetic evolution. In The Thirteenth International Conference on Learning Representations, 2025b.
+Guofei Xiang, Songyi Dian, Shaofeng Du, and Zhonghui Lv. Variational information bottleneck regularized deep reinforcement learning for efficient robotic skill adaptation. Sensors, 23(2):762, 2023.
+Eliot Xing, Abhinav Gupta, Sam Powers, and Victoria Dean. *Kitchenshift: Evaluating zero-shot generalization of imitation-based policy learning under domain shifts*. In *NeurIPS 2021 Workshop on Distribution Shifts: Connecting Methods and Applications*, 2021.
+Rui Yang, Jie Wang, Zijie Geng, Mingxuan Ye, Shuiwang Ji, Bin Li, and Feng Wu. Learning task-relevant representations for generalization via characteristic functions of reward sequence distributions. In The 28th ACM SIGKDD Conference on Knowledge Discovery and Data Mining, pp. 2242-2252. ACM, 2022.
+
+Denis Yarats, Ilya Kostrikov, and Rob Fergus. Image augmentation is all you need: Regularizing deep reinforcement learning from pixels. In 9th International Conference on Learning Representations. OpenReview.net, 2021.
+Denis Yarats, Rob Fergus, Alessandro Lazaric, and Lerrel Pinto. Mastering visual continuous control: Improved data-augmented reinforcement learning. In *The Tenth International Conference on Learning Representations*. OpenReview.net, 2022.
+Mingxuan Ye, Yufei Kuang, Jie Wang, Rui Yang, Wengang Zhou, Houqiang Li, and Feng Wu. State sequences prediction via fourier transform for representation learning. In Alice Oh, Tristan Naumann, Amir Globerson, Kate Saenko, Moritz Hardt, and Sergey Levine (eds.), Advances in Neural Information Processing Systems 36, 2023.
+Zhecheng Yuan, Zhengrong Xue, Bo Yuan, Xueqian Wang, Yi Wu, Yang Gao, and Huazhe Xu. Pre-trained image encoder for generalizable visual reinforcement learning. In Sanmi Koyejo, S. Mohamed, A. Agarwal, Danielle Belgrave, K. Cho, and A. Oh (eds.), Advances in Neural Information Processing Systems 35, 2022.
+Zhecheng Yuan, Sizhe Yang, Pu Hua, Can Chang, Kaizhe Hu, Xiaolong Wang, and Huazhe Xu. Rl-vigen: A reinforcement learning benchmark for visual generalization. CoRR, abs/2307.10224, 2023.
+Amy Zhang, Clare Lyle, Shagun Sodhani, Angelos Filos, Marta Kwiatkowska, Joelle Pineau, Yarin Gal, and Doina Precup. Invariant causal prediction for block mdps. In Proceedings of the 37th International Conference on Machine Learning, volume 119 of Proceedings of Machine Learning Research, pp. 11214-11224. PMLR, 2020.
+Amy Zhang, Rowan Thomas McAllister, Roberto Calandra, Yarin Gal, and Sergey Levine. Learning invariant representations for reinforcement learning without reconstruction. In 9th International Conference on Learning Representations. OpenReview.net, 2021.
+Ruijie Zheng, Xiyao Wang, Yanchao Sun, Shuang Ma, Jieyu Zhao, Huazhe Xu, Hal Daumé III, and Furong Huang. Temporal latent action-driven contrastive loss for visual reinforcement learning. Advances in Neural Information Processing Systems, 36, 2024.
+Qi Zhou, Jie Wang, Qiyuan Liu, Yufei Kuang, Wengang Zhou, and Houqiang Li. Learning robust representation for reinforcement learning with distractions by reward sequence prediction. In Robin J. Evans and Ilya Shpitser (eds.), Uncertainty in Artificial Intelligence, volume 216 of Proceedings of Machine Learning Research, pp. 2551-2562. PMLR, 2023a.
+Weitao Zhou, Zhong Cao, Yunkang Xu, Nanshan Deng, Xiaoyu Liu, Kun Jiang, and Dange Yang. Long-tail prediction uncertainty aware trajectory planning for self-driving vehicles. In 2022 IEEE 25th International Conference on Intelligent Transportation Systems (ITSC), pp. 1275-1282. IEEE, 2022.
+Weitao Zhou, Zhong Cao, Nanshan Deng, Kun Jiang, and Diange Yang. Identify, estimate and bound the uncertainty of reinforcement learning for autonomous driving. IEEE Transactions on Intelligent Transportation Systems, 24(8):7932-7942, 2023b.
+Zhuangdi Zhu, Kaixiang Lin, Anil K. Jain, and Jiayu Zhou. Transfer learning in deep reinforcement learning: A survey. IEEE Trans. Pattern Anal. Mach. Intell., 45(11):13344-13362, 2023.
+
+# APPENDIX
+
+# A RELATED WORK OF TASK DECOMPOSITION
+
+Value Decomposition. Hierarchical RL aims to solve complex tasks into layered sub-goals, enabling agents to tackle challenges at varying levels of abstraction for efficient and scalable learning (Wang et al., 2023b; 2024a; Ling et al., 2024; Kuang et al., 2024; Liu et al., 2024; 2025; 2023a). Some methods suggest that reusing learned skills from simple tasks can effectively improve the sample efficiency in solving the complex composite tasks (Sutton et al., 1999; Dietterich, 2000; Russell & Zimdars, 2003; Makino, 2023). Thus, for a complex sequential decision-making task that can be divided into a series of simple individual sub-tasks, these approaches estimate the action-value function for each sub-task to learn these reusable skills.
+
+Inspired by this hierarchical RL, some methods propose the reward decomposition for composite tasks, which decomposes the one-step rewards into a series of sub-rewards instead of breaking down the composite task (van Seijen et al., 2017; Lin et al., 2019; Grimm & Singh, 2019; Fatemi & Tavakoli, 2022). Specifically, under the assumption that one-step rewards of composite tasks are linear combinations of independent sub-rewards, these methods decompose each one-step reward either manually or automatically (i.e., leveraging deep learning techniques). Then, they combine the action values for each sub-task associated with each sub-reward additively to estimate the overall action-value function, thus efficiently addressing the complex composite task.
+
+In this article, although the reward representations extracted by ROUSER are similar to the sub-rewards from reward decomposition methods, they do not rely on the prior assumption that one-step rewards are linear combinations of independent sub-rewards.
+
+Successor Features. Successor features have garnered attention in the field of transfer RL, which allows flexible knowledge transfer across tasks with different reward functions. Barreto et al. (2017) assume a set of tasks with different reward functions but similar environment dynamics, and thus propose the successor features, which represent the features from environment dynamics involving the long-term sequential information. To learn such features, Barreto et al. (2017; 2018; 2020); Ma et al. (2020); Carvalho et al. (2023) first decouple rewards into the component associated with environment dynamics and the weight vector associated with different tasks. Then, they can use the reward component to learn successor features from the environment dynamics. By using the successor features and the weight vector, they can achieve the transfer learning. Moreover, based on successor features, Abdolshah et al. (2021) propose transferring knowledge across different environments by using a Gaussian distribution to capture the changes in environment dynamics.
+
+Our study differs from these methods, which do not take into account robustness against visual distractions. Also, the successor features learned by the aforementioned methods often involve irrelevant information from environment dynamics in the VRL generalization challenge. Instead, we use one-step rewards to extract long-term information from action values and leverage the IB framework to discard irrelevant features. It is worth NOTING that in all the aforementioned successor feature works, fine-tuning the successor features is essential when encountering unseen testing environments. In contrast, our approach focuses on zero-shot generalization without any fine-tuning.
+
+# B IMPACT STATEMENTS AND LIMITATIONS
+
+This paper proposes a novel approach called ROUSER to advance the field of generalization in VRL, enhancing the potential of agents in real-world applications. Although our primary focus is on technical innovation, we recognize the potential societal consequences of our work, as generalization in VRL has the potential to influence various domains such as autonomous driving and the financial field. We are committed to ethical research practices and attach great importance to the social implications and ethical considerations in the development of generalization research in VRL.
+
+It is essential for our approach to use the artificially designed rewards for robust action-value representation learning. We look forward to advancing the representation learning in VRL using inverse RL techniques that can derive the reward function from data. This will enable us to introduce a framework that supports autonomic iterative optimization. Moreover, our work may inspire some
+
+studies about the message invariance for message passing-based graph neural networks (Shi et al., 2023; 2025; 2024).
+
+# C PROOFS
+
+# C.1 PROOF OF THE MAPPING
+
+In this subsection, we prove that the action-value representation is linearly correlated with the infinite sequence of reward representations.
+
+Proof. Based on Equations 1, 3, and the definition of the action-value function, we have
+
+$$
+\begin{array}{l} Q ^ {\pi} \left(o _ {t}, a _ {t}\right) = \mathbb {E} _ {\pi , p} \left[ \sum_ {i = 0} ^ {\infty} \gamma^ {i} r \left(o _ {t + i}, a _ {t + i}\right) \right] (17) \\ = \mathbb {E} _ {\pi , p} \left[ \sum_ {i = 0} ^ {\infty} \gamma^ {i} \langle \omega^ {\prime}, h \left(o _ {t + i}, a _ {t + i}\right) \rangle \right] (18) \\ = \left\langle \omega^ {\prime}, \mathbb {E} _ {\pi , p} \left[ \sum_ {i = 0} ^ {\infty} \gamma^ {i} h \left(o _ {t + i}, a _ {t + i}\right) \right] \right\rangle (19) \\ = \left\langle \omega^ {\prime}, H ^ {\pi} \left(o _ {t}, a _ {t}\right) \right\rangle . (20) \\ \end{array}
+$$
+
+Therefore, we derive an action-value representation $H^{\pi}(o_t, a_t)$ .
+
+
+
+# C.2 PROOF OF THE CONVERGENCE OF ACTION-VALUE REPRESENTATION LOSS
+
+In this section, we provide a detailed derivation of the convergence of action-value representation. ROUSER leverages the reward representations to introduce an auxiliary objective function with a recursive form. Similar to the TD-learning of action-value functions, we prove that Equations 4 and 5 can be reformulated as a contraction mapping $\mathbf{T}$ . Here, we define $Z^{\pi}$ as a generic function $Z^{\pi}:\mathcal{O}\times \mathcal{A}\to \mathcal{Z}$ , and we define the mapping $\mathbf{T}:\mathcal{Z}\rightarrow \mathcal{Z}$ .
+
+Theorem There exists a contraction mapping $\mathbf{T}:\mathcal{Z}\to \mathcal{Z}$ defined as
+
+$$
+\left(\mathbf {T} Z ^ {\pi}\right) \left(o _ {t}, a _ {t}\right) = z \left(o _ {t}, a _ {t}\right) + \gamma \cdot \mathbb {E} _ {\pi , p} \left[ Z ^ {\pi} \left(o _ {t + 1}, a _ {t + 1}\right) \mid o _ {t}, a _ {t} \right].
+$$
+
+Proof. Let $\left|Z^{\pi}(o_{t},a_{t})\right|_{d}$ denote the L1 value of the $d$ th dimension of $Z^{\pi}(o_{t},a_{t})$ , where $1 \leq d \leq D$ . Due to the properties of contraction mappings (Sutton & Barto, 2018; Zhou et al., 2023b), we can apply the operator $\mathbf{T}$ to compute the target auxiliary loss function until convergence in tabular settings. $\mathbf{T}$ operator is a contraction in the sup-norm, which we provide as follows.
+
+$$
+\left| \left| \mathbf {T} Z _ {1} ^ {\pi} - \mathbf {T} Z _ {2} ^ {\pi} \right| \right| _ {\infty} \leq \gamma \cdot \left| \left| Z _ {1} ^ {\pi} - Z _ {2} ^ {\pi} \right| \right| _ {\infty}. \tag {21}
+$$
+
+We provide a detailed proof of Equation 21.
+
+$$
+\begin{array}{l} \left| \left| \mathbf {T} Z _ {1} ^ {\pi} - \mathbf {T} Z _ {2} ^ {\pi} \right| \right| _ {\infty} \\ = \max _ {d} | z + \gamma \cdot \mathbb {E} _ {\pi , p} \left[ Z _ {1} ^ {\pi} (o _ {t + 1}, a _ {t + 1}) | o _ {t}, a _ {t} \right] - z - \gamma \cdot \mathbb {E} _ {\pi , p} \left[ Z _ {2} ^ {\pi} (o _ {t + 1}, a _ {t + 1}) | o _ {t}, a _ {t} \right] | _ {d} \\ = \gamma \cdot \max _ {d} | \mathbb {E} _ {\pi , p} \left[ Z _ {1} ^ {\pi} (o _ {t + 1}, a _ {t + 1}) | o _ {t}, a _ {t} \right] - \mathbb {E} _ {\pi , p} \left[ Z _ {2} ^ {\pi} (o _ {t + 1}, a _ {t + 1}) | o _ {t}, a _ {t} \right] | _ {d} \\ = \gamma \cdot \max _ {d} | \mathbb {E} _ {\pi , p} \left[ Z _ {1} ^ {\pi} (o _ {t + 1}, a _ {t + 1}) - Z _ {2} ^ {\pi} (o _ {t + 1}, a _ {t + 1}) | o _ {t}, a _ {t} \right] | _ {d} \\ \leq \gamma \cdot \max _ {d} \mathbb {E} _ {\pi , p} \left[ \left| Z _ {1} ^ {\pi} \left(o _ {t + 1}, a _ {t + 1}\right) - Z _ {2} ^ {\pi} \left(o _ {t + 1}, a _ {t + 1}\right) \right| _ {d} \mid o _ {t}, a _ {t} \right] \\ \leq \gamma \cdot \max_{\substack{d\\ o_{t + 1}\in \mathcal{O}\\ a_{t + 1}\in \mathcal{A}}}|Z_{1}^{\pi}(o_{t + 1},a_{t + 1}) - Z_{2}^{\pi}(o_{t + 1},a_{t + 1})|_{d} \\ = \gamma \cdot | | Z _ {1} ^ {\pi} - Z _ {2} ^ {\pi} | | _ {\infty}. \\ \end{array}
+$$
+
+
+
+Based on Equation 21, we can derive the convergence of auxiliary loss similar to action-value function estimation. So we can apply $\mathbf{T}$ to compute the auxiliary loss until convergence in tabular settings.
+
+# C.3 INFORMATION BOTTLENECK
+
+Here, we provide a derivation of the formulas involved in the IB techniques in our ROUSER approach. We first list the mathematical formulas used in our proof.
+
+(P.1) KL Divergence
+
+$$
+\mathcal {D} _ {\mathcal {K L}} \left(p (\mathbf {x}) | | q (\mathbf {x})\right) = \mathbb {E} _ {\mathbf {x}} \left[ \log \frac {p (\mathbf {x})}{q (\mathbf {x})} \right]. \tag {22}
+$$
+
+(P.2) Mutual Information
+
+$$
+\mathcal {I} (\mathbf {x}; \mathbf {y}) = \mathbb {E} _ {\mathbf {x}, \mathbf {y}} \left[ \log \frac {p (\mathbf {x} , \mathbf {y})}{p (\mathbf {x}) p (\mathbf {y})} \right] = \mathcal {D} _ {\mathcal {K L}} \left(p (\mathbf {x}, \mathbf {y}) | | p (\mathbf {x}) p (\mathbf {y})\right). \tag {23}
+$$
+
+(P.3) Chain rule of Mutual Information
+
+$$
+\mathcal {I} (\mathbf {x}, \mathbf {y}; \mathbf {z}) = \mathcal {I} (\mathbf {y}; \mathbf {z}) + \mathcal {I} (\mathbf {x}; \mathbf {z} | \mathbf {y}). \tag {24}
+$$
+
+(P.4) Symmetry of Mutual Information
+
+$$
+\mathcal {I} (\mathbf {x}; \mathbf {y}) = \mathcal {I} (\mathbf {y}; \mathbf {x}). \tag {25}
+$$
+
+Then, for Equation 6, we can leverage (P.2) to expand the computation of mutual information and conditional mutual information as follows.
+
+$$
+\begin{array}{l} \mathcal {I} (\mathbf {r}; \mathbf {z}) = \mathbb {E} _ {\mathbf {r}, \mathbf {z}} \left[ \log \frac {p (\mathbf {r} , \mathbf {z})}{p (\mathbf {r}) p (\mathbf {z})} \right] \\ = \mathbb {E} _ {\mathbf {r}, \mathbf {z}} \left[ \log \frac {p (\mathbf {z}) p (\mathbf {r} | \mathbf {z})}{p (\mathbf {r}) p (\mathbf {z})} \right] \tag {26} \\ = \mathbb {E} _ {\mathbf {r}, \mathbf {z}} \left[ \log \frac {p (\mathbf {r} | \mathbf {z})}{p (\mathbf {r})} \right]. \\ \end{array}
+$$
+
+$$
+\begin{array}{l} \mathcal {I} (\mathbf {u}; \mathbf {z} | \mathbf {r}) = \mathbb {E} _ {\mathbf {u}, \mathbf {z}, \mathbf {r}} \left[ \log \frac {p (\mathbf {u} , \mathbf {z} | \mathbf {r})}{p (\mathbf {u} | \mathbf {r}) p (\mathbf {z} | \mathbf {r})} \right] \\ = \mathbb {E} _ {\mathbf {u}, \mathbf {z}, \mathbf {r}} \left[ \log \frac {p (\mathbf {u} | \mathbf {r}) p (\mathbf {z} | \mathbf {u} , \mathbf {r})}{p (\mathbf {u} | \mathbf {r}) p (\mathbf {z} | \mathbf {r})} \right] \tag {27} \\ = \mathbb {E} _ {\mathbf {u}, \mathbf {z}, \mathbf {r}} \left[ \log \frac {p (\mathbf {z} | \mathbf {u} , \mathbf {r})}{p (\mathbf {z} | \mathbf {r})} \right] \\ \stackrel {*} {=} \mathbb {E} _ {\mathbf {u}, \mathbf {z}, \mathbf {r}} \left[ \log \frac {p (\mathbf {z} | \mathbf {u})}{p (\mathbf {z} | \mathbf {r})} \right]. \\ \end{array}
+$$
+
+Here in $*$ , since $\mathbf{z}$ is the representation of $\mathbf{u}$ , we have $p(\mathbf{z}|\mathbf{u},\mathbf{r}) = p(\mathbf{z}|\mathbf{u})$ . As discussed in Equation 8, we can introduce a new feature $\mathbf{k}$ to provide an upper bound to estimate the conditional mutual information. The details of the proof in Equation 8 are as follows,
+
+$$
+\begin{array}{l} \mathcal {I} (\mathbf {u}; \mathbf {z} | \mathbf {r}) \\ = \mathbb {E} _ {\mathbf {u}, \mathbf {z}, \mathbf {r}} \left[ \log \frac {p (\mathbf {z} | \mathbf {u})}{p (\mathbf {z} | \mathbf {r})} \right] \\ = \mathbb {E} _ {\mathbf {u}, \mathbf {z}, \mathbf {r}} \left[ \log \frac {p (\mathbf {z} | \mathbf {u})}{p (\mathbf {k} | \mathbf {r})} \frac {p (\mathbf {k} | \mathbf {r})}{p (\mathbf {z} | \mathbf {r})} \right] \\ = \mathbb {E} _ {\mathbf {u}, \mathbf {z}, \mathbf {r}} \left[ \log \frac {p (\mathbf {z} \mid \mathbf {u})}{p (\mathbf {k} \mid \mathbf {r})} \right] - \mathbb {E} _ {\mathbf {u}, \mathbf {z}, \mathbf {r}} \left[ \log \frac {p (\mathbf {z} \mid \mathbf {r})}{p (\mathbf {k} \mid \mathbf {r})} \right] (28) \\ = \mathbb {E} _ {\mathbf {r} | \mathbf {u}, \mathbf {z}} \left(\mathbb {E} _ {\mathbf {u}, \mathbf {z}} \left[ \log \frac {p (\mathbf {z} | \mathbf {u})}{p (\mathbf {k} | \mathbf {r})} \right]\right) - \mathbb {E} _ {\mathbf {u} | \mathbf {z}, \mathbf {r}} \left(\mathbb {E} _ {\mathbf {z}, \mathbf {r}} \left[ \log \frac {p (\mathbf {z} | \mathbf {r})}{p (\mathbf {k} | \mathbf {r})} \right]\right) (26) \\ = \mathbb {E} _ {\mathbf {u}, \mathbf {z}} \left[ \log \frac {p (\mathbf {z} | \mathbf {u})}{p (\mathbf {k} | \mathbf {r})} \right] - \mathbb {E} _ {\mathbf {z}, \mathbf {r}} \left[ \log \frac {p (\mathbf {z} | \mathbf {r})}{p (\mathbf {k} | \mathbf {r})} \right] \\ = \mathcal {D} _ {\mathcal {K L}} \left(p (\mathbf {z} | \mathbf {u}) | | p (\mathbf {k} | \mathbf {r})\right) - \mathcal {D} _ {\mathcal {K L}} \left(p (\mathbf {z} | \mathbf {r}) | | p (\mathbf {k} | \mathbf {r})\right) \\ \leq \mathcal {D} _ {\mathcal {K L}} \Big (p (\mathbf {z} | \mathbf {u}) | | p (\mathbf {k} | \mathbf {r}) \Big) = \mathcal {D} _ {\mathcal {K L}} \Big (\mathcal {N} _ {\psi} | | \mathcal {N} _ {\eta} \Big). \\ \end{array}
+$$
+
+Since the features $\mathbf{z} \sim \mathcal{N}_{\psi}$ and $\mathbf{k} \sim \mathcal{N}_{\eta}$ , we can directly use the Gaussian distribution $\mathcal{N}$ to replace the probability density function $p$ . Note that the equality holds if the two distributions coincide. Similar to $\mathcal{I}(\mathbf{u}; \mathbf{z}|\mathbf{r}), \mathcal{I}(\mathbf{r}; \mathbf{k}|\mathbf{u})$ is upper bounded by $\mathcal{D}_{\mathcal{KL}}\big(\mathcal{N}_{\eta}||\mathcal{N}_{\psi}\big)$ .
+
+We can also leverage $\mathbf{k}$ to provide a lower bound for the mutual information:
+
+$$
+\mathcal {I} (\mathbf {r}; \mathbf {z}) \stackrel {\text {(P . 3)}} {=} \mathcal {I} (\mathbf {k}, \mathbf {r}; \mathbf {z}) - \mathcal {I} (\mathbf {z}; \mathbf {k} | \mathbf {r}) \tag {29}
+$$
+
+$$
+\stackrel {*} {=} \mathcal {I} (\mathbf {k}, \mathbf {r}; \mathbf {z}) \tag {30}
+$$
+
+$$
+\stackrel {(\mathrm {P . 3})} {=} \mathcal {I} (\mathbf {k}; \mathbf {z}) + \mathcal {I} (\mathbf {z}; \mathbf {r} | \mathbf {k}) \tag {31}
+$$
+
+$$
+\geq \mathcal {I} (\mathbf {k}; \mathbf {z}). \tag {32}
+$$
+
+Since $\mathbf{k}$ is the representation of $\mathbf{r}$ , we have $\mathcal{I}(\mathbf{z};\mathbf{k}|\mathbf{r}) = 0$ , and we thus derive the equality with $*$ of Equation 30. Moreover, the equality in Equation 32 holds if $\mathcal{I}(\mathbf{z};\mathbf{r}|\mathbf{k}) = 0$ , i.e., the representation $\mathbf{k}$ captures all the information associated with the reward $\mathbf{r}$ .
+
+Based on Equation 9, we can further derive the whole optimization objective $\mathcal{L}_{\mathrm{cib}}$ as:
+
+$$
+\begin{array}{l} \mathcal {L} _ {\mathrm {c i b}} = \left[ \mathcal {I} (\mathbf {u}; \mathbf {z} | \mathbf {r}) + \mathcal {I} (\mathbf {r}; \mathbf {k} | \mathbf {u}) \right] - \beta \mathcal {I} (\mathbf {r}; \mathbf {z}) \\ \leq \mathcal {D} _ {\mathcal {K L}} \left(\mathcal {N} _ {\psi} | | \mathcal {N} _ {\eta}\right) + \mathcal {D} _ {\mathcal {K L}} \left(\mathcal {N} _ {\eta} | | \mathcal {N} _ {\psi}\right) - \beta \mathcal {I} (\mathbf {k}; \mathbf {z}) \tag {33} \\ = \mathcal {D} _ {\mathcal {S K L}} \left(\mathcal {N} _ {\psi} | | \mathcal {N} _ {\eta}\right) - \beta \mathcal {I} (\mathbf {k}; \mathbf {z}). \\ \end{array}
+$$
+
+By reparameterizing the objective, we can derive the final loss function:
+
+$$
+\mathcal {L} _ {\text {i n f o}} (\psi , \eta) = \mathbb {E} _ {\mathcal {B}} \left[ - \mathcal {I} (\mathbf {z}; \mathbf {k}) + \alpha \mathcal {D} _ {\mathcal {S K L}} \left(\mathcal {N} _ {\psi} | | \mathcal {N} _ {\eta}\right) \right]. \tag {34}
+$$
+
+# C.4 PROOF OF THE ACTION VALUE BOUND
+
+We provide the detailed proof of the Theorem 4.4.
+
+Theorem 4.4. Let $Z$ be a learned robust action-value representation from any observation-action pair $(o, a) \in \mathcal{O} \times \mathcal{A}$ , $Q_{e}^{\pi} : \mathcal{O} \times \mathcal{A} \to \mathbb{R}$ be the true action-value function of a policy $\pi$ in the environment $e \in \mathcal{E}$ , $f_{e}^{*} : \mathcal{Z} \to \mathbb{R}$ be the optimal linear mapping on the representation space, and $\epsilon$ be a bound of estimation error for each compressed reward representation $z$ , i.e., $|f_{e}^{*}(z) - r| \leq \epsilon$ . For any $(o, a) \in \mathcal{O} \times \mathcal{A}$ and $e \in \mathcal{E}$ , we have
+
+$$
+0 \leq \left| Q _ {e} ^ {\pi} (o, a) - f _ {e} ^ {*} (Z (o, a)) \right| \leq \frac {1}{1 - \gamma} \epsilon .
+$$
+
+Proof.
+
+$$
+\begin{array}{l} \left\| Q _ {e} ^ {\pi} (o, a) - f _ {e} ^ {*} \big (Z (o, a) \big) \right\| _ {1} = \left\| \mathbb {E} _ {\pi^ {*}} ^ {e} \left[ \sum_ {t = 0} ^ {\infty} \gamma^ {t} r _ {t} \right] - \mathbb {E} _ {\pi^ {*}} ^ {e} \left[ \sum_ {t = 0} ^ {\infty} \gamma^ {t} f _ {e} ^ {*} (z) \right] \right\| _ {1} \\ = \left\| \mathbb {E} _ {\pi^ {*}} ^ {e} \left[ \sum_ {t = 0} ^ {\infty} \gamma^ {t} \left(r _ {t} - f _ {e} ^ {*} (z)\right) \right] \right\| _ {1} \\ \leq \mathbb {E} _ {\pi^ {*}} ^ {e} \left[ \sum_ {t = 0} ^ {\infty} \gamma^ {t} \| r _ {t} - f _ {e} ^ {*} (z) \| _ {1} \right] \\ \leq \mathbb {E} _ {\pi^ {*}} ^ {e} \left[ \sum_ {t = 0} ^ {\infty} \gamma^ {t} \cdot \epsilon \right] \\ = \frac {1}{1 - \gamma} \epsilon . \\ \end{array}
+$$
+
+
+
+# D ARCHITECTURE AND PSEUDOCODE
+
+As we directly use the embeddings from critic's center layer as robust action-value representations, we do not need to change the architecture of commonly used VRL algorithms. Specifically, we follow the traditional VRL actor-critic architecture to use a 3-layer feed-forward ConvNet with no residual connection as the encoder. Then, we apply a 3-layer MLP with hidden size 1024 as each critic, and we use Equation 15 to regulate the embeddings of the second layer of each critic. The actor uses the same architecture as the critic. Moreover, we use an additional 2-layer MLP with hidden size 1024 as the reward model $\psi$ to output the compressed reward representations $\mathbf{z}$ , as well as $\eta$ to output the representations $\mathbf{k}$ from one-step rewards. As the inputs are image observations, the reward model $\psi$ is after the shared encoder for the actor and critic. We provide the architecture and the algorithm of ROUSER in Figure 1 and Algorithm 1, respectively.
+
+Algorithm 1 ROUSER in a general actor-critic framework
+Initialize the critic network $Q_{\theta}$ with parameters $\theta$ actor network $\pi_{\phi}$ with parameters $\phi$ reward model $\psi$ , and the linear mapping $f$
+Initialize target network $Q_{\bar{\theta}}$ with weight $\bar{\theta}\gets \theta$
+Initialize the replay buffer $\mathcal{B}$
+for $t = 1,\dots ,T$ do if $t\leq T_0$ then Randomly select $a$ under $o$ Execute $a$ to obtain $r$ and $o^{\prime}$ else $a\sim \pi_{\phi}(\cdot |o)$ $o^\prime \sim p(o^\prime |o,a)$ Sample a batch $\{o,a,r,o'\}$ from $\mathcal{B}$ Update: $f\gets f - \lambda_f\nabla_f\mathcal{L}_{\mathrm{pred}}$ linear network $\psi \gets \psi -\lambda_{\psi}\nabla_{\psi}\bigl (\mathcal{L}_{\mathrm{pred}} + \mathcal{L}_{\mathrm{info}}\bigr)$ reward network $\theta \leftarrow \theta -\lambda_{\theta}\nabla_{\theta}(\mathcal{L}_{\mathrm{robust}} + \mathcal{L}_{\mathrm{critic}})$ critic network $\phi \gets \phi -\lambda_{\phi}\nabla_{\phi}\mathcal{L}_{\mathrm{actor}}$ actor network end if $\mathcal{B}\gets \mathcal{B}\cup \{o,a,r,o'\}$
+end for
+
+# EXPERIMENTS
+
+# E.1 EXPERIMENTS ON DMC
+
+**Environment Setting.** Color Distractions. On DMC benchmark, we apply the similar treatment of dynamic color distraction (Stone et al., 2021) to the objects of the environments. Specifically, we uniformly sample the color $x_0 \sim \mathcal{U}(x - \beta, x + \beta)$ for each channel at the start of each episode, where $x$ is the origin color in DCS, and $\beta$ is a hyperparameter. We leverage a dynamic setting where the color $x_t$ can change to $x_{t+1} = \text{clip}(\widehat{x}_{t+1}, x_t - \beta, x_t + \beta)$ , where $\widehat{x}_{t+1} \sim \mathcal{N}(x_t, 0.03 \cdot \beta)$ . We train the agents on the environment with weak dynamic color distractions ( $\beta = 0.2$ ). Then, we evaluate all agents in the test environments with strong dynamic color distractions ( $\beta = 0.5$ ).
+
+Background Distractions. We adopt the dynamic background settings from Stone et al. (2021). To establish different training environments, we utilize $N$ videos from the DAVIS 2017 training set, where $N$ represents the number of training environments. Each environment uses one video as the background and randomly samples a scene and a frame from the video at the start of every episode. Additionally, we set $\beta_{\mathrm{bg}} = 1.0$ , indicating that we use the distracting background instead of the original skybox. For evaluation, we apply 30 videos from the DAVIS 2017 validation dataset as the unseen backgrounds. In each episode of the test environment, we randomly select one of the 30 dynamic backgrounds.
+
+
+
+
+Figure 6: The dynamics color and background distractions using in Section 5.1. The first row illustrates the dynamic color changes, and the second row shows one of dynamic backgrounds.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Figure 7: On cheetah_run task under color changes, the left of this figure shows the curves of MSE loss for capturing long-term information, and the right illustrates the performance of weight $c$ .
+
+
+
+Network. For the shared encoder, we use the default setting of baselines combined with our approach. For example, in ROUSER-SRM, we use a shared pixel encoder with 11 convolutional layers to extract the image information, and employ $3 \times 3$ kernels and 32 filters with a stride of 2 for the first convolutional layer and 1 for others. After each convolution, following the commonly used setting of VRL methods (e.g., DrQ, DrQv2, and SRM), we apply a fully connected layer to output 50-dimensional representations normalized by LayerNorm and a tanh activation. Note that the actor and critic each have a fully connected layer.
+
+After the fully connected layer, the actor network is parameterized with 3 fully connected layers using ReLU activations up until the last layer. The critic network employs Double Q-learning technique, where each Q-value is learned using a 3-layer fully connected network, similar to the one used in the actor network. The output dimension of these hidden layers in the actor and the critic network is 1024. Moreover, the gradients of the shared pixel encoder are computed through the critic's optimizer rather than the actor's.
+
+The reward model also has a fully connected layer to output 50-dimensional representations normalized by LayerNorm and a tanh activation from the outputs of the shared encoder. After the fully connected layer, the reward model has a 3-layer MLP. The output dimension of these hidden layers in the reward model is also 1024. The final outputs of the reward model is twice the dimension of compressed reward representations, half of which is the mean and half of which is the variance. Thus, we can use the outputs to model the Gaussian distribution of compressed reward representations. Then, we use a linear layer, mapping compressed reward representations into the corresponding one-step rewards. Moreover, we use a linear layer to get the representations $\mathbf{k}$ from one-step rewards.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Figure 8: Training curves over six seeds on DMC benchmark with color and video background distractions. Each point from the curves is evaluated over ten episodes on test environments with unseen distractions.
+
+**Implementations.** In the implementation of VRL, the multi-step reward is a commonly used trick without any theoretical guarantee: $r(o_{t},a_{t}) = \sum_{i = 0}^{N}\gamma^{i}\hat{r} (o_{t + i},a_{t + i})$ , where $\hat{r} (\cdot ,\cdot)$ is the raw reward function. Many VRL methods (Yarats et al., 2022; Huang et al., 2022; Hessel et al., 2018) use $N = 3$ . In our approach, we do not change the default setting when combined with baselines. It is worth noting that we change the mode of our reward model. Specifically, we map the outputs of reward model into the $N$ raw rewards instead of the multi-step reward, thus learning the compressed reward representations. Unlike CRESP, which predicts reward sequence distributions to update the shared encoder for representation learning, our reward model does not update the shared encoder with this mapping, although it establishes a mapping from the shared encoder's outputs to the multi-step rewards. This is because that we believe the multi-step rewards with length of $N = 3$ do not involve much long-term robust information for sequential decision-making. We demonstrate this in the left of Figure 7. The experiment setting for this figure is the same as in Figure 4 (a). We use 200K collected data to learn a 2-layer MLP projector that maps the fixed representations from CRESP and ROUSER-DrQv2 to the long-term sequential rewards with the length of 300. The curves demonstrate that ROUSER can effectively capture more long-term robust information than CRESP.
+
+Compute Resource. We use NVIDIA GeForce RTX 3090 GPUs for six tasks on DMC benchmark under backgrounds or color changes. Trials of DrQv2, SRM, ROUSER-DrQv2, and ROUSER-SRM
+
+Table 1: Means and standard errors on six DMC environments with unseen dynamic color changes. Each result is averaged over 100 episodes at 500K environment steps using six random seeds.
+
+
ALGO
ball_in_cup Catch
cartpole_swingup
cheetah_run
finger_spin
walker_walk
reacher_easy
ROUSER-SRM
942.6 ± 12.3
683.5 ± 37.8
370.0 ± 25.1
853.4 ± 25.6
814.0 ± 19.2
754.8 ± 39.7
ROUSER-DrQv2
780.9 ± 60.3
461.4 ± 15.6
371.6 ± 23.7
424.2 ± 49.8
417.7 ± 22.7
154.6 ± 52.8
SRM
826.0 ± 125.6
640.2 ± 15.8
299.5 ± 23.4
779.7 ± 46.8
776.5 ± 27.8
659.4 ± 18.4
DrQv2
632.1 ± 49.5
377.0 ± 24.7
140.2 ± 10.2
234.0 ± 54.9
115.3 ± 41.8
93.7 ± 20.4
CRESP
584.8 ± 57.4
410.6 ± 15.2
241.5 ± 87.3
574.0 ± 204.2
394.1 ± 65.0
270.9 ± 17.6
CURL
339.2 ± 51.5
205.5 ± 31.5
173.3 ± 46.6
279.2 ± 27.6
278.2 ± 46.3
198.2 ± 37.4
TACO
360.5 ± 192.8
385.9 ± 26.3
138.7 ± 17.2
130.8 ± 45.7
177.8 ± 31.8
122.9 ± 28.2
RAP
149.2 ± 34.2
304.4 ± 44.4
90.8 ± 57.6
1.5 ± 0.5
86.5 ± 62.5
209.8 ± 59.7
+
+Table 2: Means and standard errors on six DMC environments with unseen dynamic backgrounds. Each result is averaged over 100 episodes at 500K environment steps using six random seeds.
+
+
ALGO
ball_in_cupCatch
cartpole_swingup
finger_spin
cheetah_run
walker_walk
reacher_easy
ROUSER-SRM
868.9 ± 47.0
822.4 ± 10.8
776.8 ± 24.0
372.9 ± 10.8
894.0 ± 12.6
901.5 ± 18.2
ROUSER-DrQv2
523.1 ± 67.5
731.9 ± 10.5
348.2 ± 174.1
408.0 ± 22.1
358.6 ± 74.7
440.0 ± 70.9
SRM
818.1 ± 47.6
807.7 ± 14.5
527.5 ± 27.2
333.8 ± 22.9
823.1 ± 17.5
889.2 ± 14.2
DrQv2
474.3 ± 72.6
717.8 ± 15.0
309.7 ± 113.8
359.2 ± 19.2
237.7 ± 106.9
404.5 ± 32.9
CRESP
665.3 ± 75.5
689.8 ± 20.0
778.1 ± 62.9
327.4 ± 20.1
794.1 ± 33.9
667.7 ± 33.5
CURL
167.0 ± 57.4
329.6 ± 18.4
745.9 ± 31.8
185.0 ± 15.9
746.1 ± 16.7
714.9 ± 33.1
TACO
816.1 ± 42.6
726.6 ± 67.4
737.2 ± 99.4
64.3 ± 59.5
505.4 ± 151.2
198.8 ± 51.2
RAP
76.1 ± 14.6
170.8 ± 21.7
6.9 ± 4.0
96.7 ± 12.4
115.1 ± 5.7
150.9 ± 16.4
+
+on `reacher_easy` task from DMC under dynamic backgrounds are trained for 12.24, 10.83, 16.93, and 15.83 hours on average. Moreover, the agents of ROUSER-DrQv2 and ROUSER-SRM require approximately 2800MB and 3600MB of memory using the batch size of 256, respectively.
+
+Results. We compare our approach ROUSER against several SOTA method: (1) CURL (Laskin et al., 2020), which leverages contrastive learning to maximize the mutual information between representations from observations and augmentations. (2) DrQv2 (Yarats et al., 2022), which is the prior state-of-the-art DRL algorithm for sample efficiency. (3) SRM (Huang et al., 2022), which adopts augmentation in the frequency domain to facilitate the learning of robust policies. (4) RAP (Chen & Pan, 2022), which effectively enhances the robustness of representations by leveraging the behavioral similarity. (5) CRESP (Yang et al., 2022), which predicts the characteristic function of reward sequences to learn task-relevant representations for generalization. (6) TACO (Zheng et al., 2024), which learns state and action representations that encompass sufficient information for control to improve sample efficiency. Moreover, we illustrate image observations from the environments with dynamic color and background distractions in Figure 6.
+
+We provide the means and standard errors at 500K environment steps in Tables 1 and 2. Note that Table 1 lists the detailed results of Figure 2 under unseen dynamic color changes, and Table 2 lists the detailed results of Figure 2 under unseen dynamic video backgrounds. As shown in Tables 1 and 2, ROUSER outperforms other baselines in 11 out of 12 experiments. Even in finger_spin task under dynamic backgrounds, our approach ROUSER is almost on par with the highest performance. In addition, we illustrate the training curves over six seeds in Figure 8.
+
+Analysis of learned Representations for Capturing Long-Term Robust Information. In Section 5.3, we present results from a task where learned representations are used to predict the average of future reward sequences over a length of 300. These results indicate the effectiveness of ROUSER in capturing long-term information.
+
+Moreover, we conduct additional experiments with varying reward sequence lengths, including 50, 100, 300, and 500. We report the results in Table 3, which are averaged over three seeds on cheetah_run task with unseen color distractions. These results, averaged over three seeds on cheetah_run task with unseen color distractions, demonstrate that the representations learned by ROUSER are able to accurately predict reward sequences of different lengths, with performance improving as the reward sequences become longer.
+
+
Reward Sequence
ROUSER-SRM
SRM
ROUSER-DrQv2
DrQv2
Length=50
0.0169 ± 0.0051
0.0170 ± 0.0056
0.0169 ± 0.0053
0.0173 ± 0.0029
Length=100
0.0213 ± 0.0070
0.0210 ± 0.0069
0.0205 ± 0.0065
0.0211 ± 0.0004
Length=300
0.0244 ± 0.0122
0.0268 ± 0.0179
0.0239 ± 0.0182
0.0283 ± 0.0029
Length=500
0.0294 ± 0.0091
0.0383 ± 0.0004
0.0287 ± 0.0087
0.0319 ± 0.0011
+
+Table 3: MSE results and standard deviations with different reward sequence lengths over three seeds, including 50, 100, 300, and 500.
+
+
Game
PPO
MixReg
QR-DQN
ROUSER-QRDQN
bigfish
3.7 ± 1.3
7.1 ± 1.6
12.2 ± 1.1
13.6 ± 5.2
caveflyer
5.1 ± 0.4
6.1 ± 0.6
6.0 ± 0.7
6.4 ± 0.4
dodgeball
1.6 ± 0.1
1.7 ± 0.4
7.2 ± 0.2
8.0 ± 0.4
+
+Table 4: Average Progen scores on test levels after training on 25M environment steps. The mean and standard deviation are computed using five results with different random seeds. We boldface the results that have highest means. This table corresponds to the results in Figure 3.
+
+# E.2 EXPERIMENTS ON PROCGEN
+
+Settings. Procgen benchmark consists of 16 procedurally generated games. Each of these games has procedurally generated levels which present agents with meaningful generalization challenges (Raileanu et al., 2021). All environments of these games use a discrete 15-dimensional action space, and produce $64 \times 64 \times 3$ RGB observations. Following Raileanu et al. (2021), we use the easy setting, where agents are learned on the training environments with 200 levels and tested on environments with unseen levels.
+
+**Implementation.** Value-based VRL methods mainly focus on non-continuous control tasks. They often use a critic to estimate the action-value function without a actor/policy network. Thus, their critic inputs an image observation and outputs a vector of action values for all possible discrete actions. Note that the last layer of their critic maps the representations of image observations into the action values of all possible discrete actions. Therefore, in the combination of ROUSER and QR-DQN, for the action value of each possible discrete action, we replace its last layer mapping into a 2-layer ensemble MLP, where the ensemble size is the number of discrete actions. The inputs of this 2-layer ensemble MLP are robust action-value representations, and this MLP outputs the quantile values of the action-value function for each discrete action.
+
+Moreover, we use the same design for the reward model $\psi$ with a 3-layer MLP. Specifically, the reward model uses the image observations as inputs and outputs the compressed reward representations for each discrete action. It uses actions from a batch to select compressed representations for updating.
+
+Results. We compare our approach with: (1) PPO (Schulman et al., 2017), a popular policy gradient baseline upon which many competitive methods are developed; (2) MixReg (Wang et al., 2020), a regularization method applicable to both policy gradient and value-based RL algorithms to enhance generalization on Procogen; (3) QR-DQN, a prior SOTA value-based method on Procgen.
+
+Table 4 lists the Procgen scores on test levels after training on 25M environment steps using the batch size of 256. The mean and standard deviation are averaged over five runs with different random seeds. We adapt the tables from Raileanu & Fergus (2021). These results demonstrate that ROUSER can be also applicable to value-based RL algorithms, outperforming several previous methods.
+
+# E.3 EXPERIMENTS ON MUJoCo
+
+To demonstrate that ROUSER can not only improve robustness in VRL but also enhance sample efficiency in traditional state-based RL (i.e., RL using a vector as a state), we further conduct experiments on MuJoCo (Todorov et al., 2012) using vector states. We combine our approach with DDPG (Lillicrap et al., 2016) and SAC (Haarnoja et al., 2018), and further compare it against the
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Figure 9: Training curves during the training process with 1M steps over six random seeds.
+
+
+
+
+
+Table 5: Hyperparameters of ROUSER on DMC and Progen benchmarks.
+
+
Parameter
DMC Value
Progen Value
Optimizer
Adam
Adam
learning rate of critic/action-value network
1·10-4
2.5·10-4
learning rate of robust action-value representations
1·10-5
2.5·10-5
learning rate of actor network
1·10-4
None
learning rate of reward model
1·10-4
2.5·10-4
target smoothing coefficient
0.01
0.005
update frequency of target network
2
1
dimension of robust action-value representations D
512
512
batch size
256
512
total environment steps T
10^6
2.5·10^7
α scheduler start value
10-3
10-2
α scheduler end value
10-2
10-1
reward model update times for each step
5
5
nstep
3
3
+
+SOTA of task decomposition methods, VDFP (Tang et al., 2021). We illustrate training curves (mean and standard deviation) on six tasks from MoJoCo during the training process in Figure 9. Each result is run for 1 million time steps over six random seeds. Figure 9 shows that ROUSER outperforms baselines, achieving an average improvement of $+18.7\%$ .
+
+# E.4 EXPERIMENTS ON DMC-GB
+
+Environment Setting. To comprehensively evaluate our approach, we have conducted additional experiments on six DMC-GB (Hansen & Wang, 2021) tasks across all their settings (i.e., coloreasy, color-hard, video_easy, and video-hard). All these experiment settings are the same as Hansen & Wang (2021) and Hansen et al. (2021). Moreover, we compare our approach against several SOTA generalization VRL methods, including PIE-G (Yuan et al., 2022), SVEA (Hansen et al., 2021), DrG (Ha et al., 2023), SECANT (Fan et al., 2021), SGQN (Bertoin et al., 2022), and MIIR (Wang et al., 2024b). Most of the baseline results we report are taken directly from their respective papers. For cases where results are not provided, we ran experiments using the available source code and hyperparameters under three random seeds.
+
+Table 6: Hyperparameters of ROUSER on MuJoCo benchmark for sample efficiency.
+
+
Parameter
Value
Optimizer
Adam
learning rate of critic network
1·10-3
learning rate of robust action-value representations
1·10-4
learning rate of actor network
1·10-4
learning rate of reward model
5·10-5
target smoothing coefficient
0.01
update frequency of target network
2
dimension of robust action-value representations D
512
batch size
256
total environment steps T
10^6
α scheduler start value
10-3
α scheduler end value
10-2
nstep
1
+
+Table 7: Results and standard deviations on DMC-GB under the color_easy and color-hard settings. Results of our approach are averaged over three random seeds.
+
+
colorEasy
ROUSER-SRM
PIE-G
DrG
SVEA
SGQN
TIA
SECANT
ball_in_cup Catch
963 ± 8
955 ± 4
831 ± 92
959 ± 2
907 ± 71
652 ± 402
-
cartpole_swingup
841 ± 20
624 ± 52
701 ± 43
826 ± 20
598 ± 92
483 ± 62
-
cheetah_run
616 ± 13
429 ± 12
375 ± 31
587 ± 39
304 ± 43
281 ± 2
-
finger_spin
933 ± 11
845 ± 5
876 ± 79
892 ± 59
628 ± 46
410 ± 49
-
walker_walk
942 ± 6
909 ± 40
812 ± 33
907 ± 23
845 ± 26
780 ± 140
-
walker_stand
971 ± 2
968 ± 4
910 ± 20
965 ± 10
963 ± 11
895 ± 39
-
color-hard
ROUSER-SRM
PIE-G
DrG
SVEA
SGQN
TIA
SECANT
ball_in_cup Catch
964 ± 5
960 ± 3
607 ± 46
961 ± 7
905 ± 71
575 ± 375
958 ± 7
cartpole_swingup
799 ± 24
520 ± 69
523 ± 38
837 ± 23
540 ± 76
407 ± 173
866 ± 15
cheetah_run
562 ± 10
376 ± 27
219 ± 8
456 ± 62
277 ± 43
249 ± 25
582 ± 64
finger_spin
979 ± 9
838 ± 10
758 ± 124
977 ± 5
461 ± 5
408 ± 79
910 ± 115
walker.walk
916 ± 9
824 ± 92
725 ± 134
760 ± 145
692 ± 153
616 ± 243
856 ± 31
walker_stand
962 ± 2
948 ± 15
731 ± 21
942 ± 26
905 ± 34
841 ± 37
939 ± 7
+
+1. We run PIE-G, DrG, and SGQN on all DMC-GB tasks across color_easy and color-hard settings.
+2. We run DrG on finger_spin and walker_stand tasks across videoeasy and video-hard settings.
+3. We run SVEA on all DMC-GB tasks in the color_easy setting and on cheetah_run task in the color-hard setting.
+4. We run TIA ${}^{2}$ on all DMC-GB tasks in all four settings.
+
+Note that since SECANT and MIIR did not release their source code, we only include the results reported in their respective papers.
+
+Results. We provide all results in Tables 7 and 8. These results indicate that ROUSER outperforms the aforementioned baselines in 17 out of 24 settings, demonstrating ROUSER's robustness and effectiveness in DMC-GB tasks.
+
+# E.5 HYPERPARAMETERS
+
+Hyperparameters. We provide the hyperparameters for DMC, Procgen, and MuJoCo in Tables 5 and 6. In DMC benchmark, the hyperparameter $\alpha$ in the loss function $\mathcal{L}_{\mathrm{info}}$ can be tuned from a small value $10^{-3}$ to $10^{-2}$ by an exponential scheduler.
+
+Table 8: Results and standard deviations on DMC-GB under the videoeasy and video-hard settings. Results of our approach are averaged over three random seeds.
+
+
videoeasy
ROUSER
PIE-G
DrG
SVEA
SGQN
MIIR
TIA
SECANT
ball_in_cupCatch
979 ± 21
922 ± 20
701 ± 36
871 ± 22
950 ± 24
973 ± 2
664 ± 416
903 ± 49
cartpole_swingup
830 ± 21
587 ± 61
572 ± 25
782 ± 27
761 ± 28
858 ± 16
326 ± 139
752 ± 38
cheetah_run
397 ± 30
287 ± 20
547 ± 21
249 ± 20
308 ± 34
393 ± 57
225 ± 41
428 ± 70
finger_spin
970 ± 6
837 ± 107
751 ± 43
808 ± 33
956 ± 26
978 ± 9
295 ± 16
861 ± 102
walker_walk
925 ± 17
871 ± 22
902 ± 23
819 ± 71
910 ± 24
919 ± 30
696 ± 245
842 ± 47
walker_stand
973 ± 3
957 ± 12
910 ± 17
961 ± 8
955 ± 9
971 ± 3
903 ± 18
932 ± 15
video-hard
ROUSER
PIE-G
DrG
SVEA
SGQN
MIIR
TIA
SECANT
ball_in_cupCatch
940 ± 5
786 ± 47
635 ± 26
403 ± 174
782 ± 57
929 ± 9
314 ± 36
-
cartpole_swingup
769 ± 37
401 ± 21
545 ± 23
393 ± 45
544 ± 43
765 ± 22
189 ± 29
-
cheetah_run
270 ± 12
154 ± 17
489 ± 11
105 ± 37
135 ± 44
268 ± 73
76 ± 25
-
finger_spin
937 ± 10
762 ± 59
437 ± 61
335 ± 58
822 ± 24
956 ± 18
182 ± 55
-
walker.walk
868 ± 59
600 ± 28
782 ± 37
377 ± 93
739 ± 21
821 ± 58
166 ± 60
-
walker_stand
968 ± 4
852 ± 56
819 ± 58
834 ± 46
851 ± 24
965 ± 2
673 ± 142
-
+
+Hyperparameter Search. In the right of Figure 7, we illustrate the results (mean and standard deviation) of ROUSER-DrQv2 on cheetah_run task from DMC benchmark under color changes for searching the learning rate $l$ of robust action-value representations. Based on the learning rate $\hat{l} = 0.0001$ , we introduce the weight $c$ such that $l = c \cdot \hat{l}$ . Each curve is averaged over three seeds.
+
+Moreover, in Figure 5 of the main text, we report the results without standard errors of different $\alpha$ with three random seeds. Here, we provide the detailed results (refer to Table 9).
+
+Table 9: The mean and standard error of the results in Figure 5.
+
+
α
scale-0.3
scale-0.4
scale-0.5
scale-0.6
0.01-0.1
649.7 ± 9.1
488.0 ± 15.7
363.0 ± 17.3
316.1 ± 9.1
0.001-0.01
663.7 ± 7.5
524.4 ± 14.5
398.4 ± 19.4
283.3 ± 11.2
0.0001-0.001
683.1 ± 2.2
510.3 ± 16.8
367.9 ± 12.5
251.4 ± 11.5
\ No newline at end of file
diff --git a/ICLR/2025/Learning Robust Representations with Long-Term Information for Generalization in Visual Reinforcement Learning/images.zip b/ICLR/2025/Learning Robust Representations with Long-Term Information for Generalization in Visual Reinforcement Learning/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..f3d7699dfb723607cf72fa5d63b9f1887594f725
--- /dev/null
+++ b/ICLR/2025/Learning Robust Representations with Long-Term Information for Generalization in Visual Reinforcement Learning/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c1da73b1bef7224247c000d30bba86f6b2f09a2ebca825d4ab4210545329f509
+size 1508714
diff --git a/ICLR/2025/Learning Robust Representations with Long-Term Information for Generalization in Visual Reinforcement Learning/layout.json b/ICLR/2025/Learning Robust Representations with Long-Term Information for Generalization in Visual Reinforcement Learning/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..5757e4b74c92164fa95c3342c9eec1ea2752622d
--- /dev/null
+++ b/ICLR/2025/Learning Robust Representations with Long-Term Information for Generalization in Visual Reinforcement Learning/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d73e212a590120f3b9907d4158f8cec6608644470cca654a329f26094808e009
+size 1012055
diff --git a/ICLR/2025/Learning Shape-Independent Transformation via Spherical Representations for Category-Level Object Pose Estimation/6bb1e17e-0635-49ed-b2ba-406db97ce30d_content_list.json b/ICLR/2025/Learning Shape-Independent Transformation via Spherical Representations for Category-Level Object Pose Estimation/6bb1e17e-0635-49ed-b2ba-406db97ce30d_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..c94d197755f10e7a141061059aa1599886e91d40
--- /dev/null
+++ b/ICLR/2025/Learning Shape-Independent Transformation via Spherical Representations for Category-Level Object Pose Estimation/6bb1e17e-0635-49ed-b2ba-406db97ce30d_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ae5e867c3b718b8dfc3ef337639657ebb42146d09bbfc71467a8170543cdd096
+size 138339
diff --git a/ICLR/2025/Learning Shape-Independent Transformation via Spherical Representations for Category-Level Object Pose Estimation/6bb1e17e-0635-49ed-b2ba-406db97ce30d_model.json b/ICLR/2025/Learning Shape-Independent Transformation via Spherical Representations for Category-Level Object Pose Estimation/6bb1e17e-0635-49ed-b2ba-406db97ce30d_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..45bce19deb5c606ec42326045bc126845308976f
--- /dev/null
+++ b/ICLR/2025/Learning Shape-Independent Transformation via Spherical Representations for Category-Level Object Pose Estimation/6bb1e17e-0635-49ed-b2ba-406db97ce30d_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:268eae5e0fdd08f4e4b1b1abbbc5a356cac3a814c019274e27629b08a377c725
+size 159852
diff --git a/ICLR/2025/Learning Shape-Independent Transformation via Spherical Representations for Category-Level Object Pose Estimation/6bb1e17e-0635-49ed-b2ba-406db97ce30d_origin.pdf b/ICLR/2025/Learning Shape-Independent Transformation via Spherical Representations for Category-Level Object Pose Estimation/6bb1e17e-0635-49ed-b2ba-406db97ce30d_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..9dbaa01be095b0a771c9f0fb8d256ef7aa8a0325
--- /dev/null
+++ b/ICLR/2025/Learning Shape-Independent Transformation via Spherical Representations for Category-Level Object Pose Estimation/6bb1e17e-0635-49ed-b2ba-406db97ce30d_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0eca0ddd57badb1d02a78e915301d37ad885ce15b338fca95744a123eb94c328
+size 4619873
diff --git a/ICLR/2025/Learning Shape-Independent Transformation via Spherical Representations for Category-Level Object Pose Estimation/full.md b/ICLR/2025/Learning Shape-Independent Transformation via Spherical Representations for Category-Level Object Pose Estimation/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..0ffc3ff27a0e2a727c314d29bfc7eec1fcd05ba0
--- /dev/null
+++ b/ICLR/2025/Learning Shape-Independent Transformation via Spherical Representations for Category-Level Object Pose Estimation/full.md
@@ -0,0 +1,474 @@
+# LEARNING SHAPE-INDEPENDENT TRANSFORMATION VIA SPHERICAL REPRESENTATIONS FOR CATEGORY-LEVEL OBJECT POSE ESTIMATION
+
+Huan Ren $^{1,2}$ Wenfei Yang $^{1,2,3}$ Xiang Liu $^{4}$ Shifeng Zhang $^{5}$ Tianzhu Zhang $^{1,2*}$
+
+1University of Science and Technology of China
+
+$^{2}$ National Key Laboratory of Deep Space Exploration, Deep Space Exploration Laboratory
+
+$^{3}$ Jianghuai Advance Technology Center $^{4}$ Dongguan University of Technology $^{5}$ Sangfor Technologies rh.hr_666@mail.ustc.edu.cn {yangwf, tzzhang}@ustc.edu.cn
+
+# ABSTRACT
+
+Category-level object pose estimation aims to determine the pose and size of novel objects in specific categories. Existing correspondence-based approaches typically adopt point-based representations to establish the correspondences between primitive observed points and normalized object coordinates. However, due to the inherent shape-dependence of canonical coordinates, these methods suffer from semantic incoherence across diverse object shapes. To resolve this issue, we innovatively leverage the sphere as a shared proxy shape of objects to learn shape-independent transformation via spherical representations. Based on this insight, we introduce a novel architecture called SpherePose, which yields precise correspondence prediction through three core designs. Firstly, We endow the pointwise feature extraction with SO(3)-invariance, which facilitates robust mapping between camera coordinate space and object coordinate space regardless of rotation transformation. Secondly, the spherical attention mechanism is designed to propagate and integrate features among spherical anchors from a comprehensive perspective, thus mitigating the interference of noise and incomplete point cloud. Lastly, a hyperbolic correspondence loss function is designed to distinguish subtle distinctions, which can promote the precision of correspondence prediction. Experimental results on CAMERA25, REAL275 and HouseCat6D benchmarks demonstrate the superior performance of our method, verifying the effectiveness of spherical representations and architectural innovations.
+
+# 1 INTRODUCTION
+
+Object pose estimation, which involves predicting the 3D rotation $\mathbf{R} \in \mathrm{SO}(3)$ and 3D translation $t \in \mathbb{R}^3$ of observed objects, has received considerable attention from the research community due to its crucial applications in augmented reality (Marchand et al., 2015; Su et al., 2019), robotic manipulation (Liu et al., 2023a; Wen et al., 2022), and hand-object interaction (Lin et al., 2023c), etc. While many prior instance-level object pose estimation methods (Peng et al., 2019; Wang et al., 2019a; 2021a) have achieved promising performance, their dependence on CAD models restricts the generalization ability. To mitigate this problem, category-level object pose estimation has been introduced in Wang et al. (2019b), which aims to reason about the 6D pose $\{\mathbf{R}, t\} \in \mathrm{SE}(3)$ and 3D size $s \in \mathbb{R}^3$ of unseen objects in specific categories, without the need for their CAD models.
+
+Existing category-level methods can be mainly divided into two groups, i.e., direct regression-based methods (Chen et al., 2021; Di et al., 2022; Lin et al., 2023b) and correspondence-based methods (Wang et al., 2019b; Tian et al., 2020; Liu et al., 2023b; Lin et al., 2024). The former approaches seek to directly regress object pose in an end-to-end manner. Although conceptually simple, they struggle with the pose-sensitive feature learning due to the non-linearity of the entire pose search space SE(3) (Lin et al., 2022a; 2023b). In contrast, the latter methods focus on establishing the correspondence between camera coordinate space and the Normalized Object Coordinate Space
+
+
+Figure 1: We propose a novel approach for category-level object pose estimation based on spherical representations. (a) The classical pipeline of correspondence-based methods, where representations denote the organization form of observation data, e.g., point-based representations in $\mathbb{R}^3$ , which is straightforward and commonly adopted in previous methods. (b) The overview of comparison between our method and previous methods. Note that each XYZ position of representations and NOCS coordinates is visualized as an RGB tuple. Our method employs spherical representations to learn shape-independent transformation, yielding smaller NOCS angle errors compared to DPDN (Lin et al., 2022b), which adopts point-based representations and suffers from the shape-dependence.
+
+(NOCS) (Wang et al., 2019b), and then solve the pose through the Umeyama algorithm (Umeyama, 1991) or deep estimators (Lin et al., 2022b), as illustrated in Figure 1(a). We follow this paradigm, where the correspondences in the linear coordinate search space $\mathbb{R}^3$ are easier to learn.
+
+Nevertheless, existing correspondence-based methods typically adopt point-based representations, where discrete points back-projected from observed depth maps serve as the representations of observation data. Subsequently, the NOCS coordinates of these points are derived by geometric normalization and alignment of object shapes, which are inherently shape-dependent. As a result, observed points with similar semantics across diverse object shapes are mapped to distinct NOCS coordinates, also known as semantic incoherence in Wan et al. (2023). For example, points on the camera lens are mapped to different coordinates in NOCS if the camera length is different. Since the correspondence prediction need to take into account both pose information and large shape variation, it is hard to learn and generalize, which results in large NOCS angle errors as demonstrated in Figure 1(b)(Top). To resolve the above issue, we propose to innovatively leverage the sphere as a shared proxy shape of objects to learn shape-independent transformation via spherical representations. Specifically, we first uniformly divide the sphere with the Hierarchical Equal Area iso-Latitude Pixelation (HEALPix) grids (Gorski et al., 2005), each of which is represented by its center anchor. Then observed points are projected onto the spherical grids, with point-wise features assigned to the corresponding spherical anchors, which serves as the new representations of observation. Since these spherical anchors are coherent across various object shapes, the spherical NOCS coordinates are shape-independent, and thus more precise correspondence prediction can be achieved by focusing only on the pose information, as shown in Figure 1(b)(Bottom).
+
+Based on the sphere representations, we introduce a novel architecture for category-level object pose estimation, termed SpherePose. Given a centralized and scale-normalized observation1, point-wise features are first extracted and then assigned to spherical anchors with HEALPix spherical projection, yielding the spherical representations. The shape-independent transformation is subsequently
+
+learned between the spherical anchors and the spherical NOCS coordinates for rotation estimation. In order to boost the precision of correspondence prediction, we further present three core designs. The first design is the SO(3)-invariant point-wise feature extraction. It is intuitive that no matter how an object is rotated, the feature of a specific point on that object should remain invariant as it is mapped to a static coordinate in NOCS. Driven by this insight, for deep image features, we employ pretrained DINOv2 (Oquab et al., 2024) features with patch-wise consensus semantics, which are robust to rotations (Chen et al., 2024). As for deep point cloud features, we propose the ColorPointNet++ network by making minimal adjustments to PointNet++ (Qi et al., 2017), which derives input features from RGB values rather than absolute XYZ coordinates, inherently ensuring SO(3)-invariance by focusing on the color information and relative proximity of point cloud. The second design is the spherical feature interaction. Due to self-occlusion, depth cameras fail to perceive the occluded regions on the backside of objects, resulting in incomplete point cloud. Consequently, after projecting point-wise features onto the sphere, there exist numerous spherical anchors with no assigned features. To this end, we adopt the attention mechanism (Vaswani, 2017) with learnable position embedding to facilitate the interaction and propagation of features among anchors, where initially unassigned spherical features can be reasoned out. Moreover, by holistically integrating the relationship among spherical anchors, we acquire comprehensive spherical features which are robust to noise. The third design is a hyperbolic correspondence loss function. For the supervision of correspondences, we derive the gradients of several typical loss functions and realize that they exhibit minor gradients around zero, which is prone to yield ambiguous prediction. To achieve more precise prediction, we leverage the computation of correspondence distance in hyperbolic space (Lin et al., 2023a), which yields higher gradients near zero and can discern more subtle distinctions.
+
+To sum up, the main contributions of this paper are as follows:
+
+- We present an innovative approach that utilizes the sphere as a proxy shape of objects to learn shape-independent transformation via HEALPix spherical representations, which addresses the semantic inconsistency of shape-dependent canonical coordinates that plagues existing correspondence-based methods with point-based representations.
+- We introduce an architecture for category-level object pose estimation that achieves precise correspondence prediction through three core designs: SO(3)-invariant point-wise feature extraction, spherical feature interaction, and a hyperbolic correspondence loss function.
+- Extensive experiments on existing benchmarks demonstrate the superior performance of our method over state-of-the-art approaches, verifying the effectiveness of spherical representations and architectural innovations.
+
+# 2 RELATED WORK
+
+The task of category-level object pose estimation is first introduced in Wang et al. (2019b) to predict the 6D pose and size of unseen objects in a given category, and existing methods can be categorized into two groups, i.e., direct regression-based methods and correspondence-based methods.
+
+Direct Regression-based Methods. This category of approaches intends to directly regress the object pose in an end-to-end manner. FS-Net (Chen et al., 2021) proposes to decouple the rotation into two perpendicular vectors that simplifies the prediction, and utilizes a 3D graph convolution (3D-GC) autoencoder for feature extraction. GPV-Pose (Di et al., 2022) enhances the learning of pose-sensitive features with geometric consistency, and HS-Pose (Zheng et al., 2023) further extends 3D-GC to extract hybrid scope latent features that combine both global and local geometric information. VI-Net (Lin et al., 2023b) presents a novel rotation estimation network that decouples the rotation into a viewpoint rotation and an in-plane rotation, simplifying the task by leveraging spherical representations. Based on the decoupled rotation, SecondPose (Chen et al., 2024) extracts SE(3)-consistent semantic and geometric features to further enhance the pose estimation. However, these methods struggle with the pose-sensitive feature learning due to the non-linearity of SE(3).
+
+Correspondence-based Methods. This group of approaches aims to establish the correspondence between camera coordinate space and object coordinate space, and then acquire the pose through pose fitting algorithm, such as Umayama (Umayama, 1991). As a cornerstone, the Normalized Object Coordinate Space (NOCS) is introduced in Wang et al. (2019b), which serves as a shared canonical representation to align object instances within a given category. Later, SPD (Tian et al., 2020) proposes to handle the intra-class shape variation by reconstructing the 3D object model from
+
+a pre-learned categorical shape prior, and then match the observed point cloud to the reconstructed 3D model. Inspired by it, CR-Net (Wang et al., 2021b) and SGPA (Chen & Dou, 2021) are presented to improve the reconstruction quality. DPDN (Lin et al., 2022b) learns the shape prior deformation in the feature space, and replaces the traditional Umeyama algorithm with a deep estimator to directly regress the pose and size. Query6DoF (Wang et al., 2023) and IST-Net (Liu et al., 2023b) eliminate the dependence on explicit shape priors with implicit counterparts and implicit space transformation, respectively. More recently, AG-Pose (Lin et al., 2024) proposes to detect a set of sparse keypoints to represent the geometric structures of objects and establish robust keypoint-level correspondences for pose estimation. Although these methods have demonstrated strong performance, they all adopt point-based representations, where the NOCS coordinates are derived by geometric normalization and alignment of object shapes. When handling diverse object shapes, the NOCS coordinates become semantically incoherent, which are hard to learn and generalize. To tackle this issue, Semantically-aware Object Coordinate Space (SOCS) is presented in Wan et al. (2023), where semantically meaningful SOCS coordinates are built by keypoint-guided non-rigid object alignment to the categorical average shape. However, due to the non-rigid alignment process, there is a mismatch between the geometric structure of the observed point cloud and the SOCS coordinates. This discrepancy plagues the pose fitting, as the transformation may not be optimal for all parts of the object. In this work, we instead resort to spherical representations, where the sphere is leveraged as a shared proxy shape of objects to learn shape-independent transformation between spherical anchors and spherical NOCS coordinates. Thus precise correspondence prediction can be achieved without the need to account for large shape variation, thereby enhancing subsequent pose estimation.
+
+# 3 METHOD
+
+Target. Given an RGB-D image, we first acquire the instance segmentation masks with an offline Mask R-CNN (He et al., 2017), which then yield the cropped RGB image $\pmb{I} \in \mathbb{R}^{H \times W \times 3}$ and segmented depth image for each instance. Partially observed point cloud $P^O \in \mathbb{R}^{N \times 3}$ is derived by back-projecting and downsampling the segmented depth image, where $N$ denotes the number of points. With $I$ and $P^O$ as inputs, our method predicts the rotation $R \in \mathrm{SO}(3)$ , translation $t \in \mathbb{R}^3$ , and size $s \in \mathbb{R}^3$ of the observed instance.
+
+Overview. As illustrated in Figure 2, the proposed method mainly consists of two components. First, in the spherical representation projection phase (Section 3.1), point-wise features are extracted and then assigned to spherical anchors with HEALPix spherical projection, yielding the spherical representations. Subsequently, in the spherical rotation estimation phase (Section 3.2), spherical anchors perform feature interaction with each other through the attention mechanism, and then they are mapped to the spherical NOCS coordinates for rotation estimation. In Section 3.3, we elaborate on the training and testing workflow, including additional translation and size prediction for complete category-level object pose estimation. Finally, in Section 3.4, we emphasize the distinctions between our method and some relevant works on spherical representations and the proxy shape.
+
+# 3.1 SPHERICAL REPRESENTATION PROJECTION
+
+SO(3)-invariant Point-wise Feature Extraction. Taking image $\pmb{I}$ and normalized points $P^2$ as inputs, we start with point-wise feature extraction. Note that for point-wise image features, we first employ a 2D feature extractor to $\pmb{I}$ and then leverage $\pmb{P}$ to perform point-wise selection on the extracted features. To facilitate the transformation between camera coordinate space and object coordinate space, we recognize that the point-wise features $\pmb{F}^{P} \in \mathbb{R}^{N \times C}$ should be SO(3)-invariant:
+
+$$
+\psi_ {\boldsymbol {G}} \left(\boldsymbol {F} ^ {P}\right) = \boldsymbol {F} ^ {P}, \quad \forall \boldsymbol {G} \in \mathrm {S O} (3), \tag {1}
+$$
+
+where $\psi_G$ indicates the transformation of features when rotating points $P$ by rotation $G$ . Intuitively, the feature of a particular point on an object should remain invariant regardless of the object's rotation, given that the point is mapped to a fixed coordinate in NOCS. To this end, we synthesize the features of observation with SO(3)-invariance from a comprehensive perspective. Specifically, for image features, we employ RGB values with low-level texture information and the pretrained DINOv2 (Oquab et al., 2024) features with high-level semantic information. Owing to the pretraining on large-scale datasets, DINOv2 possesses robust generalization capabilities and can provide
+
+
+Figure 2: Overview of the proposed SpherePose. Given the observation $\mathbf{I}$ and $P$ , we first extract SO(3)-invariant point-wise features from four distinct perspectives and assign them to the spherical anchors $\mathbf{A}$ with HEALPix spherical projection, yielding initial spherical features $\mathbf{F}^{\mathbf{A}}$ . Then, the Transformer encoder module is employed for spherical feature interaction and integrates comprehensive spherical features $\mathbf{F}$ . Finally, we predict the corresponding spherical NOCS coordinates $\mathbf{O}$ via a NOCS predictor, which is applied to the estimation of rotation $\mathbf{R}$ .
+
+semantically consistent patch-wise features that are robust to rotations (Chen et al., 2024). As for point cloud features, we adopt radius3 values with low-level spatial information, along with features with high-level geometric information from the proposed ColorPointNet++, which is a variant of PointNet++ (Qi et al., 2017). The input features of the original PointNet++ are derived from absolute XYZ coordinates, which are inherently SO(3)-equivariant. To validate the importance of SO(3)-invariance for correspondence prediction, we make minimal adjustments to adapt the architecture for extracting SO(3)-invariant features, by replacing raw XYZ coordinates with RGB values. Given the SO(3)-invariance of color attributes and kNN operation in grouping and interpolating, our ColorPointNet++ yields SO(3)-invariant point-wise features, as detailed in Appendix A.1. The final point-wise features $F^P \in \mathbb{R}^{N \times C}$ are the concatenation of all four point-wise features that capture distinct information from the observation, followed by feature dimension reduction to $C$ .
+
+HEALPix Spherical Projection. Once point-wise features are extracted, previous methods adopt point-based representations to directly predict the NOCS coordinates corresponding to the observed points, which causes semantic incoherence across diverse object shapes, as introduced in Section 1. Instead, we propose to employ the sphere as a shared proxy shape of objects to learn shape-independent transformation via spherical representations. Specifically, we first uniformly divide the sphere with HEALPix grids (Gorski et al., 2005) as illustrated in Figure 4(b), each of which is equal in area and represented by its center anchor $A_{m} \in \mathbb{R}^{3}, m \in \{1, \dots, M\}$ , where $M$ denotes the number of grids. We then project the normalized points $P$ onto the spherical grids, and assign point-wise features $F^{P}$ to the corresponding spherical anchors, which serve as the new representations of observation with spherical features $F^{A} \in \mathbb{R}^{M \times C}$ . In detail, consider a grid indexed by $m$ , we follow VI-Net (Lin et al., 2023b) to search within this grid region for the point with the largest radius value, denoted as $P_{n}$ , and assign its feature $F_{n}^{P}$ to the anchor $A_{m}$ . If there is no point projected onto the grid, we set $F_{m}^{A} = 0$ . Since these spherical anchors are coherent across diverse objects, the corresponding spherical NOCS coordinates are shape-independent.
+
+# 3.2 SPHERICAL ROTATION ESTIMATION
+
+Spherical Feature Interaction. Due to self-occlusion, depth cameras fail to perceive the occluded regions on the backside of objects, causing incomplete point cloud. This phenomenon deteriorates when projected onto spherical grids, leaving almost half of the spherical anchors without assigned features. To this end, we employ a Transformer encoder with attention mechanism (Vaswani, 2017) to facilitate feature interaction and propagation among spherical anchors $\mathbf{A} \in \mathbb{R}^{M \times 3}$ in a global perspective, yielding comprehensive spherical features $\mathbf{F} \in \mathbb{R}^{M \times C}$ from the initial spherical features $\mathbf{F}^A$ with a sequence of self-attention layers and MLP blocks, formulated as follows:
+
+$$
+\begin{array}{l} \boldsymbol {F} ^ {l + 1} = \operatorname {M L P} \left(\hat {\boldsymbol {F}} ^ {l + 1}\right) + \hat {\boldsymbol {F}} ^ {l + 1}, \\ \hat {\boldsymbol {F}} ^ {l + 1} = \operatorname {A t t e n t i o n} \left(\boldsymbol {F} ^ {l}\right) + \boldsymbol {F} ^ {l}, \end{array} \quad l \in \{0, \dots , L - 1 \}, \tag {2}
+$$
+
+where $L$ is the number of layers and $\pmb{F} = \pmb{F}^{L}$ , $\pmb{F}^{0} = \pmb{F}^{A}$ . Due to the disorder of spherical anchors, the learnable position embeddings $\pmb{E}^{pos} \in \mathbb{R}^{M \times C}$ are assigned to corresponding anchors and contribute to the computation of attention for feature propagation. In formula, the self-attention in $l$ -th layer is defined as:
+
+$$
+\operatorname {A t t e n t i o n} \left(\boldsymbol {F} ^ {l}\right) = \operatorname {S o f t m a x} \left(\frac {\left(\boldsymbol {Q} ^ {l} \boldsymbol {W} ^ {Q}\right) \left(\boldsymbol {K} ^ {l} \boldsymbol {W} ^ {K}\right) ^ {\top}}{\sqrt {C}}\right) \left(\boldsymbol {V} ^ {l} \boldsymbol {W} ^ {V}\right), \tag {3}
+$$
+
+$$
+\boldsymbol {Q} ^ {l} = \boldsymbol {F} ^ {l} + \boldsymbol {E} ^ {\text {p o s}}, \quad \boldsymbol {K} ^ {l} = \boldsymbol {F} ^ {l} + \boldsymbol {E} ^ {\text {p o s}}, \quad \boldsymbol {V} ^ {l} = \boldsymbol {F} ^ {l}, \tag {4}
+$$
+
+where $W^{Q / K / V} \in \mathbb{R}^{C \times C}$ denotes learnable projection matrix for query, key and value, respectively, with independent parameters across layers. Through global feature interaction and propagation, those spherical features that are initially unassigned can be reasoned out. Moreover, by attending to the relationship among spherical anchors from a holistic perspective, we integrate pose-coherent spherical features which can alleviate the interference of noise.
+
+Correspondence-based Rotation Estimation. Given the spherical features $\pmb{F}$ , we follow previous methods (Lin et al., 2022b; 2024) to first predict the spherical NOCS coordinates $\pmb{O} \in \mathbb{R}^{M \times 3}$ corresponding to spherical anchors $\pmb{A}$ with an MLP-based NOCS predictor. Since the spherical anchors and NOCS coordinates are on the unit sphere, we $L^2$ normalize the output of MLP:
+
+$$
+\boldsymbol {O} _ {m} = \frac {\operatorname {M L P} \left(\boldsymbol {F} _ {m}\right)}{\| \operatorname {M L P} \left(\boldsymbol {F} _ {m}\right) \| _ {2}}, \quad m \in \{1, \dots , M \}. \tag {5}
+$$
+
+After acquiring the correspondences between spherical anchors and spherical NOCS coordinates, there are several approaches to acquire the rotation $\mathbf{R} \in \mathrm{SO}(3)$ , such as the Umayama algorithm (Umayama, 1991) or deep estimators (Lin et al., 2022b). We adopt the Umayama algorithm with RANSAC (Fischler & Bolles, 1981) for outlier removal as it does not require extra training.
+
+# 3.3 CATEGORY-LEVEL OBJECT POSE ESTIMATION
+
+Training. For the estimation of translation $t \in \mathbb{R}^3$ and size $s \in \mathbb{R}^3$ , we follow VI-Net (Lin et al., 2023b) to employ a simple and lightweight PointNet++ (Qi et al., 2017). It takes the observed point cloud $P^O$ and the point-wise selected RGB attributes from image $I$ as input, and directly regresses $t$ and $s$ with $L^1$ loss as follows:
+
+$$
+\mathcal {L} _ {\boldsymbol {t} \boldsymbol {s}} = \| \boldsymbol {t} - \boldsymbol {t} ^ {g t} \| _ {1} + \| \boldsymbol {s} - \boldsymbol {s} ^ {g t} \| _ {1}. \tag {6}
+$$
+
+As for the estimation of rotation $\mathbf{R} \in \mathrm{SO}(3)$ , we adopt the correspondence-based paradigm to supervise the spherical NOCS coordinates $\mathbf{O}$ . Specifically, we generate ground truth spherical NOCS coordinates $\mathbf{O}^{gt}$ by mapping spherical anchors $\mathbf{A}$ into NOCS using the ground truth rotation $\mathbf{R}^{gt}$ :
+
+$$
+\boldsymbol {O} _ {m} ^ {g t} = \left(\boldsymbol {R} ^ {g t}\right) ^ {\top} \boldsymbol {A} _ {m}, \quad m \in \{1, \dots , M \}, \tag {7}
+$$
+
+and the prediction errors $e$ can then be measured by the distance between them, defined as:
+
+$$
+\boldsymbol {e} _ {m} = \left\{ \begin{array}{l l} \| \boldsymbol {O} _ {m} - \boldsymbol {O} _ {m} ^ {g t} \| _ {1}, & \text {a s} L ^ {1} \text {d i s t a n c e} \\ \| \boldsymbol {O} _ {m} - \boldsymbol {O} _ {m} ^ {g t} \| _ {2}, & \text {a s} L ^ {2} \text {d i s t a n c e} \end{array} , \quad m \in \{1, \dots , M \}. \right. \tag {8}
+$$
+
+Previous methods employ either $e$ directly as the loss function or the smooth $L^1$ loss (Wang et al., 2019b), which uses a squared term $e^2$ if $e$ fall below a certain threshold and the term $e$ otherwise. However, we examine the gradients of these loss functions in Figure 3 and discover that they exhibit minor gradients around zero, which is prone to generate ambiguous prediction. To promote the precision of correspondence prediction, we leverage the computation of distance in hyperbolic space (Lin et al., 2023a), which yields higher gradients near zero and can discern more subtle distinctions. In detail, the $\operatorname{arccosh}(1 + x)$ function is employed to the errors $e$ with $L^2$ distance, and the final hyperbolic correspondence loss function for $O$ is formulated as follows:
+
+$$
+\mathcal {L} _ {\text {c o r r}} = \frac {1}{M} \sum_ {m = 1} ^ {M} \operatorname {a r c o s h} \left(1 + \boldsymbol {e} _ {m}\right) = \frac {1}{M} \sum_ {m = 1} ^ {M} \operatorname {a r c o s h} \left(1 + \| \boldsymbol {O} _ {m} - \boldsymbol {O} _ {m} ^ {g t} \| _ {2}\right). \tag {9}
+$$
+
+Inference. Given the cropped RGB image $\pmb{I}$ and point cloud $P^O$ , we first predict the translation $t$ and size $s$ via PointNet++, and then normalize4 the point cloud as $P = (P^O - t) / \|s\|_2$ , which is fed into our SpherePose for the estimation of rotation $R$ .
+
+
+Figure 3: Illustration of several correspondence loss functions and their gradients.
+
+
+Figure 4: Overview of (a) equirectangular grids and (b) HEALPix grids.
+
+
+
+# 3.4 DISCUSSION
+
+Spherical Representations. Although several previous methods (Lin et al., 2021; 2023b; Chen et al., 2024) have also adopted spherical representations for category-level object pose estimation, there are two fundamental distinctions. Firstly, they employ the equirectangular grids (Driscoll & Healy, 1994), which are evenly divided along latitude and longitude, as shown in Figure 4(a). However, this partition of sphere is non-uniform in area, with a higher sampling density near the poles, which is suboptimal for representing the point cloud data. This characteristic is particularly detrimental for objects with diverse poses, as non-uniform sampling of distinct semantic components results in a biased distribution of sampled data. Instead, we resort to the HEALPix grids (Gorski et al., 2005), which consistently yield the uniformly sampled spherical representations across various object poses, as illustrated in Figure 4(b). This uniform spherical partition is a more appropriate choice for the capture of point cloud structures, thereby enhancing the performance of pose estimation. Secondly, they intend to directly regress the pose in an end-to-end manner, which struggle with the pose-sensitive feature learning due to the non-linearity of $\mathrm{SE}(3) / \mathrm{SO}(3)$ . DualPoseNet (Lin et al., 2021) employs spherical convolution in the spectral domain to learn $\mathrm{SO}(3)$ -equivariant features. However, the Fourier transforms require tensors in the Fourier domain of $\mathrm{SO}(3)$ that scale with the cube of the bandwidth, limiting the resolution. VI-Net (Lin et al., 2023b) utilizes spherical convolution in the spatial domain to learn viewpoint-equivariant features. Although it simplifies the regression process by decoupling the rotation into viewpoint rotation and in-plane rotation, the spatial convolution has a limited receptive field. Different from them, we follow with the correspondence-based paradigm to establish the correspondences between spherical anchors and spherical NOCS coordinates, which is easier to learn in the linear space $\mathbb{R}^3$ . As for the spherical feature extraction, we adopt the attention mechanism to facilitate the feature interaction and propagation among spherical anchors from a holistic perspective, yielding the comprehensive spherical features.
+
+Proxy Shape. SAR-Net (Lin et al., 2022a) aims to deform the category-level proxy template point cloud to align with the observed point cloud for implicitly representing its rotational state. The object rotation is then solved from the categorical and deformed template point clouds by Umeyama algorithm. Although it learns shape-independent transformation by leveraging the category-shared template shape, the representations of the proxy shape are not well exploited to facilitate correspondence prediction. Specifically, the rotation information for guidance during the deformation process is derived from a single global feature vector of the observed point cloud, which leads to difficulties with rotation-sensitive feature learning. In contrast, we resort to the sphere as a shared proxy shape to learn shape-independent transformation via spherical representations. By projecting the observed point cloud onto the spherical grids, we preserve the intact information from the observation. The comprehensive spherical features are further extracted through the interaction and integration of features among spherical anchors from a holistic perspective, which can mitigate the interference of noise and promote the correspondence prediction. The proxy shape is also incorporated in MFOS (Lee et al., 2024) for image-aligned pose representation, which transforms the pose into a 2D image by rendering the 3D coordinates of a proxy shape (e.g., a cuboid or an ellipsoid) positioned according to the pose. Since MFOS operates with only 2D images as input, the proxy shape provides a mechanism for achieving 3D geometric perception, and the object pose is recovered by solving a PnP problem from the dense 2D-3D mapping. We differ by directly learning the 3D-3D transformation of the proxy sphere between the camera and object coordinate spaces.
+
+Table 1: Performance comparison with state-of-the-art methods on REAL275 dataset.
+
+
Method
Representation
IoU50
IoU75
5°2cm
5°5cm
10°2cm
10°5cm
Direct Regression
GPV-Pose (Di et al., 2022)
Point-based
-
64.4
32.0
42.9
-
73.3
HS-Pose (Zheng et al., 2023)
Point-based
82.1
74.7
46.5
55.2
68.6
82.7
GenPose (Zhang et al., 2023)
Point-based
-
-
52.1
60.9
72.4
84.0
DualPoseNet (Lin et al., 2021)
Spherical
79.8
62.2
29.3
35.9
50.0
66.8
VI-Net (Lin et al., 2023b)
Spherical
-
-
50.0
57.6
70.8
82.1
SecondPose (Chen et al., 2024)
Spherical
-
-
56.2
63.6
74.7
86.0
Correspondence
NOCS (Wang et al., 2019b)
Point-based
78.0
30.1
7.2
10.0
13.8
25.2
SPD (Tian et al., 2020)
Point-based
77.3
53.2
19.3
21.4
43.2
54.1
SGPA (Chen & Dou, 2021)
Point-based
80.1
61.9
35.9
39.6
61.3
70.7
DPDN (Lin et al., 2022b)
Point-based
83.4
76.0
46.0
50.7
70.4
78.4
IST-Net (Liu et al., 2023b)
Point-based
82.5
76.6
47.5
53.4
72.1
80.5
Query6DoF (Wang et al., 2023)
Point-based
82.5
76.1
49.0
58.9
68.7
83.0
AG-Pose (Lin et al., 2024)
Point-based
83.7
79.5
54.7
61.7
74.7
83.1
SpherePose
Spherical
84.0
79.0
58.2
67.4
76.2
88.2
+
+# 4 EXPERIMENTS
+
+# 4.1 EXPERIMENTAL SETUP
+
+Datasets. We evaluate our methods on three benchmarks including CAMERA25, REAL275 (Wang et al., 2019b) and HouseCat6D (Jung et al., 2024). CAMERA25 is a synthetic dataset that contains 275K training images and 25K testing images from 6 object categories, which are generated by rendering foreground objects with real-world backgrounds using the mixed-reality technique. REAL275 is a real-world dataset that consists of 4.3K training images of 7 scenes and 2.75K testing images of 6 scenes, which shares the same categories with CAMERA25. HouseCat6D is an emerging real-world dataset that comprises 20K training frames of 34 scenes, 3K testing frames of 5 scenes and 1.4K validation frames of 2 scenes from 10 household categories. This collection encompasses a diverse range of photometrically challenging objects, including glass and cutlery, which are captured in a comprehensive manner across various viewpoints and occlusions.
+
+Evaluation Metrics. Following previous works (Wang et al., 2019b; Chen et al., 2024), we report the mean Average Precision (mAP) of $n^{\circ}m$ cm for 6D pose estimation, which denotes the percentage of prediction with rotation error less than $n^{\circ}$ and translation error less than $m$ cm. We also report the mAP of Intersection over Union $(\mathrm{IoU}_x)$ for 3D bounding boxes with thresholds of $x\%$ .
+
+Implementation Details. For a fair comparison, we employ the same instance segmentation masks as DPDN (Lin et al., 2022b) from Mask R-CNN (He et al., 2017). The number of sampled points is $N = 2,048$ . For DINOv2 features, images are first cropped and resized to $224 \times 224$ and then fed into the frozen DINOv2, followed by bilinear interpolation upsampling to the original resolution for point-wise selection. After extracting four point-wise features, we concatenate them at the feature dimension, followed by a linear layer activated by GeLU (Hendrycks & Gimpel, 2016) that reduces the dimension to $C = 128$ . The resolution of HEALPix grids is expressed by the parameter $N_{side}$ , and we set it to 8, which results in $M = 768$ grids. The number of the Transformer encoder layers is set to $L = 6$ by default. All experiments are conducted on a single RTX3090Ti GPU with a batch size of 64 for 200K iterations. More details can be found in Appendix A.2.
+
+# 4.2 COMPARISON WITH STATE-OF-THE-ART METHODS
+
+Results on REAL275 and CAMERA25 Datasets. Table 1 shows the comparison of our method with existing direct regression-based methods and correspondence-based methods on REAL275 dataset. It should be noted that our approach represents a pioneering application of spherical representations within the correspondence-based paradigm. From the results we can see that SpherePose outperforms the prior state-of-the-art methods on the precision of 6D pose estimation. Specifically, when compared with direct regression-based methods, SpherePose surpasses SecondPose (Chen et al., 2024) by $2.0\%$ on $5^{\circ}2\mathrm{cm}$ and $2.2\%$ on $10^{\circ}5\mathrm{cm}$ , which also employs spherical representations and DINOv2 (Oquab et al., 2024) backbone. And when compared with correspondence-based methods, SpherePose outperforms AG-Pose (Lin et al., 2024) by $3.5\%$ on $5^{\circ}2\mathrm{cm}$ and $5.1\%$ on $10^{\circ}5\mathrm{cm}$ , which encounters the intra-class semantic incoherence arising from point-based representations. As
+
+Table 2: Performance comparison with state-of-the-art methods on HouseCat6D dataset.
+
+
Method
Representation
IoU25
IoU50
5°2cm
5°5cm
10°2cm
10°5cm
Direct Regression
FS-Net (Chen et al., 2021)
Point-based
74.9
48.0
3.3
4.2
17.1
21.6
GPV-Pose (Di et al., 2022)
Point-based
74.9
50.7
3.5
4.6
17.8
22.7
VI-Net (Lin et al., 2023b)
Spherical
80.7
56.4
8.4
10.3
20.5
29.1
SecondPose (Chen et al., 2024)
Spherical
83.7
66.1
11.0
13.4
25.3
35.7
Correspondence
AG-Pose (Lin et al., 2024)
Point-based
81.8
62.5
11.5
12.0
32.7
35.8
SpherePose
Spherical
88.8
72.2
19.3
25.9
40.9
55.3
+
+for the precision of 3D bounding boxes, we achieve comparable performance. Similar results on CAMERA25 dataset can be found in Table 8, please refer to Appendix A.3 for the details.
+
+Results on HouseCat6D Dataset. Table 2 provides the quantitative results of existing methods on HouseCat6D dataset. As can be seen from the table, SpherePose achieves the best performance against state-of-the-art approaches by a large margin under all metrics. Specifically, SpherePose surpasses SecondPose (Chen et al., 2024) by $6.1\%$ on $\mathrm{IoU}_{50}$ and $8.3\%$ on $5^{\circ}2\mathrm{cm}$ , and outperforms AG-Pose (Lin et al., 2024) by $10.3\%$ on $\mathrm{IoU}_{50}$ and $7.8\%$ on $5^{\circ}2\mathrm{cm}$ . When compared under the $10^{\circ}5\mathrm{cm}$ metric, our method surpasses them by almost $20\%$ (19.6% and $19.5\%$ , respectively). It is notable that this dataset includes objects with photometric complexities and extensive viewpoint distributions, which is extremely challenging. The significant improvements on this benchmark further demonstrate the effectiveness of the proposed method.
+
+Results of Correspondence Errors. To validate the effectiveness of the proposed spherical representations compared to point-based representations in correspondence prediction, we calculate the mean NOCS errors on the REAL275 dataset. As shown in Table 3, the NOCS errors of Sphere-Pos are lower than DPDN (Lin et al., 2022b) and AG-Pose (Lin et al., 2024) on both the angle and
+
+Table 3: Comparison of correspondence errors.
+
+
Method
Mean NOCS Error
Angle (°)
Distance (cm)
DPDN (Lin et al., 2022b)
16.62
10.50
AG-Pose (Lin et al., 2024)
10.36
5.88
SpherePose
4.52
3.89
+
+Euclidean distance, which indicates that the proposed method achieves more accurate correspondence prediction by learning shape-independent transformation on the proxy sphere.
+
+# 4.3 ABLATION STUDIES
+
+To shed more light on the superiority of our method, we conduct comprehensive ablation studies on REAL275 dataset, as detailed below.
+
+# Efficacy of SO(3)-invariant Point-wise Feature Extraction.
+
+Table 4 illustrates the impact of different deep point cloud backbones on the performance of object pose estimation. The original PointNet++ (Qi et al., 2017)
+
+Table 4: Ablation studies on the deep point cloud backbone.
+
+
Point Cloud Backbone
5°2cm
5°5cm
10°2cm
10°5cm
Parameters
None
55.9
64.6
74.3
86.7
0
PointNet++
56.3
64.7
73.2
84.4
1,391,104
ColorPointNet++
58.2
67.4
76.2
88.2
1,389,664
+
+inherently lacks SO(3)-invariance due to the injection of SO(3)-equivariant absolute XYZ coordinates. To validate the importance of SO(3)-invariant features for correspondence-based methods, we introduce minimal adaptations to PointNet++ to derive our ColorPointNet++, which enables the extraction of inherently SO(3)-invariant point cloud features while maintaining the architecture and the number of parameters almost unchanged. As shown in the table, with comparable number of parameters, our ColorPointNet++ outperforms the original PointNet++ by $1.9\%$ on $5^{\circ}2\mathrm{cm}$ and $3.8\%$ on $10^{\circ}5\mathrm{cm}$ . Notably, PointNet++ performs even worse than no point cloud backbone at all, showing a $2.3\%$ drop on $10^{\circ}5\mathrm{cm}$ . These results demonstrate the effectiveness of SO(3)-invariant point-wise features for correspondence-based object pose estimation methods.
+
+Efficacy of Spherical Feature Interaction. Table 5 illustrates the impact of varying numbers $L$ of the Transformer encoder layers. When the Transformer encoder is not employed, there is a significant drop in performance to $20.7\%$ on $5^{\circ}2\mathrm{cm}$ , while when two layers of encoder are applied, the performance on $5^{\circ}2\mathrm{cm}$ goes up to $53.6\%$ . This result demonstrates the effectiveness of spherical
+
+Table 5: Impact of the number of encoder layers.
+
+
Encoder Layers
5°2cm
5°5cm
10°2cm
10°5cm
0
20.7
23.9
56.2
65.8
2
53.6
61.3
74.0
85.8
4
55.7
64.5
75.2
86.5
6
58.2
67.4
76.2
88.2
8
57.9
66.7
74.9
86.2
+
+Table 6: Impact of distinct loss functions.
+
+
Loss Function
5°2cm
5°5cm
10°2cm
10°5cm
L1
56.0
64.6
74.4
86.1
Smooth L1
54.6
63.2
72.6
83.3
Hyperbolic L1
58.0
66.5
73.5
85.0
L2
54.2
62.6
72.2
83.2
Hyperbolic L2
58.2
67.4
76.2
88.2
+
+feature interaction, which yields comprehensive spherical features from a holistic perspective. As the number of encoder layers increases, the precision of pose estimation is also improved, reaching a saturation at six layers. Further increasing the number of encoder layers does not lead to enhanced performance, but rather increases the inference overhead. Therefore, we set $L = 6$ in our method.
+
+Efficacy of the Hyperbolic Correspondence Loss Function. Table 6 presents the impact of distinct loss functions on correspondence. As for the error with $L^1$ distance in Equation 8, we conduct evaluations using $L^1$ loss, smooth $L^1$ loss and hyperbolic $L^1$ loss, respectively. Since the smooth $L^1$ loss has minor gradients near zero, it exhibits the worst performance of $54.6\%$ on $5^\circ 2\mathrm{cm}$ . Conversely, the hyperbolic $L^1$ loss augments the gradients around zero to distinguish subtle distinctions, which improves the $5^\circ 2\mathrm{cm}$ metric from $56.0\%$ of the $L^1$ loss to $58.0\%$ . With regard to the error with $L^2$ distance in Equation 8, we also derive the hyperbolic $L^2$ loss, which results in an improvement on $5^\circ 2\mathrm{cm}$ from $54.2\%$ of the $L^2$ loss to $58.2\%$ . We assume that the $L^2$ distance in Euclidean space is a better measure of the correspondence errors, so we adopt the hyperbolic $L^2$ loss for correspondence prediction. For detailed formulas of these loss functions, please refer to Appendix A.2.
+
+Choice of Spherical Grids. Table 7 provides the performance comparison of adopting different spherical grids. To ensure a fair comparison, we use $M = 768$ grids for both HEALPix (Gorski et al., 2005) and Super-Fibonacci Spirals (Alexa, 2022) grids. For Equirectangular (Driscoll
+
+& Healy, 1994) grids, the latitude and longitude resolution is set to $28 \times 28$ , resulting in 784 grids, which is close to 768 in number. Since the HEALPix grids are area-uniform for the partition of sphere and can better capture the structure of point cloud, it achieves $2.5\%$ and $4.6\%$ higher performance on the $5^{\circ}2\mathrm{cm}$ and $10^{\circ}5\mathrm{cm}$ metrics, respectively, compared to the Equirectangular grids. In addition, we experiment with other nearly uniform spherical partitions, such as Super-Fibonacci Spirals, which also outperforms Equirectangular grids with a $3.6\%$ gain on $10^{\circ}5\mathrm{cm}$ , though still slightly below the performance of HEALPix.
+
+Table 7: Impact of the choice of spherical grids.
+
+
Spherical Grids
5°2cm
5°5cm
10°2cm
10°5cm
HEALPix
58.2
67.4
76.2
88.2
Equirectangular
55.7
64.7
72.1
83.6
Super-Fibonacci Spirals
56.5
65.0
75.8
87.2
+
+# 5 CONCLUSION
+
+In this work, we investigate the prevalent issue of intra-class semantic inconsistency of the canonical coordinates within existing correspondence-based approaches for category-level object pose estimation. We attribute this issue to shape-dependent point-based representations and propose to leverage the sphere as a shared proxy shape of objects to learn shape-independent transformation via spherical representations. In light of this insight, we introduce SpherePose, a novel architecture that achieves precise correspondence prediction through three core designs: SO(3)-invariant point-wise feature extraction for robust mapping between camera and object coordinate space, spherical feature interaction for holistic relationship integration, and a hyperbolic correspondence loss function for diagnosis of subtle correspondence errors. Experimental evaluations on existing benchmarks demonstrate the superiority of our method over state-of-the-art approaches.
+
+Limitations and Future Works. Although the employment of spherical representations equipped with spherical attention mechanism yields superior performance, the computational complexity of the attention mechanism, which scales quadratically with the number of tokens, limits the resolution of spherical grids. When the sphere is evenly partitioned into $M = 768$ grids, each grid corresponds to an area of approximately 53.71 square degrees. For future work, we may explore linear attention mechanism (Wang et al., 2020) to facilitate spherical feature interaction. This could potentially enhance the resolution of spherical partitioning and improve the quality of spherical representations.
+
+# ACKNOWLEDGEMENT
+
+This work was partially supported by the National Nature Science Foundation of China (Grant 62306294, 62071122), Basic Strengthening Program Laboratory Fund (No.NKLDSE2023A009), Dreams Foundation of Jianghuai Advance Technology Center (NO.2023M743385), Youth Innovation Promotion Association of CAS.
+
+# REFERENCES
+
+Marc Alexa. Super-fibonacci spirals: Fast, low-discrepancy sampling of so (3). In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 8291-8300, 2022. 10
+Kai Chen and Qi Dou. Sgpa: Structure-guided prior adaptation for category-level 6d object pose estimation. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 2773-2782, 2021. 4, 8, 16
+Wei Chen, Xi Jia, Hyung Jin Chang, Jinming Duan, Linlin Shen, and Ales Leonardis. Fs-net: Fast shape-based network for category-level 6d object pose estimation with decoupled rotation mechanism. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 1581-1590, 2021. 1, 3, 9, 16
+Yamei Chen, Yan Di, Guangyao Zhai, Fabian Manhardt, Chenyangguang Zhang, Ruida Zhang, Federico Tombari, Nassir Navab, and Benjamin Busam. Secondpose: Se (3)-consistent dual-stream feature fusion for category-level pose estimation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 9959-9969, 2024. 3, 5, 7, 8, 9, 14, 16, 18
+Yan Di, Ruida Zhang, Zhiqiang Lou, Fabian Manhardt, Xiangyang Ji, Nassir Navab, and Federico Tombari. Gpv-posed: Category-level object pose estimation via geometry-guided point-wise voting. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 6781-6791, 2022. 1, 3, 8, 9, 16
+Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, et al. An image is worth 16x16 words: Transformers for image recognition at scale. In International Conference on Learning Representations, 2020. 15
+James R Driscoll and Dennis M Healy. Computing fourier transforms and convolutions on the 2-sphere. Advances in applied mathematics, 15(2):202-250, 1994. 7, 10
+Martin A Fischler and Robert C Bolles. Random sample consensus: a paradigm for model fitting with applications to image analysis and automated cartography. Communications of the ACM, 24 (6):381-395, 1981. 6
+Krzysztof M Gorski, Eric Hivon, Anthony J Banday, Benjamin D Wandelt, Frode K Hansen, Mstvos Reinecke, and Matthia Bartelmann. Healpix: A framework for high-resolution discretization and fast analysis of data distributed on the sphere. The Astrophysical Journal, 622(2):759, 2005. 2, 5, 7, 10, 15
+Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 770-778, 2016. 16
+Kaiming He, Georgia Gkioxari, Piotr Dollar, and Ross Girshick. Mask r-cnn. In Proceedings of the IEEE international conference on computer vision, pp. 2961-2969, 2017. 4, 8
+Dan Hendrycks and Kevin Gimpel. Gaussian error linear units (gelus). arXiv preprint arXiv:1606.08415, 2016. 8
+HyunJun Jung, Shun-Cheng Wu, Patrick Ruhkamp, Guangyao Zhai, Hannah Schieber, Giulia Rizzoli, Pengyuan Wang, Hongcheng Zhao, Lorenzo Garattoni, Sven Meier, et al. Housecat6d-a large-scale multi-modal category level 6d object perception dataset with household objects in realistic scenarios. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 22498-22508, 2024. 8, 16
+
+Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In International Conference on Learning Representations (ICLR), San Diego, CA, USA, 2015. 15
+Jongmin Lee and Minsu Cho. 3d equivariant pose regression via direct wigner-d harmonics prediction. In The Thirty-eighth Annual Conference on Neural Information Processing Systems, 2024. 18
+JongMin Lee, Yohann Cabon, Romain Brégier, Sungjoo Yoo, and Jerome Revaud. Mfos: Model-free & one-shot object pose estimation. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 38, pp. 2911-2919, 2024. 7
+Fangzhou Lin, Yun Yue, Songlin Hou, Xuechu Yu, Yajun Xu, Kazunori D Yamada, and Ziming Zhang. Hyperbolic chamfer distance for point cloud completion. In Proceedings of the IEEE/CVF international conference on computer vision, pp. 14595-14606, 2023a. 3, 6
+Haitao Lin, Zichang Liu, Chilam Cheang, Yanwei Fu, Guodong Guo, and Xiangyang Xue. Sar-net: Shape alignment and recovery network for category-level 6d object pose and size estimation. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 6707-6717, 2022a. 1, 7
+Jiehong Lin, Zewei Wei, Zhihao Li, Songcen Xu, Kui Jia, and Yuanqing Li. Dualposenet: Category-level 6d object pose and size estimation using dual pose network with refined learning of pose consistency. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 3560-3569, 2021. 7, 8, 16
+Jiehong Lin, Zewei Wei, Changxing Ding, and Kui Jia. Category-level 6d object pose and size estimation using self-supervised deep prior deformation networks. In European Conference on Computer Vision, pp. 19-34. Springer, 2022b. 2, 4, 6, 8, 9, 17, 18, 19
+Jiehong Lin, Zewei Wei, Yabin Zhang, and Kui Jia. Vi-net: Boosting category-level 6d object pose estimation via learning decoupled rotations on the spherical representations. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 14001-14011, 2023b. 1, 2, 3, 5, 6, 7, 8, 9, 15, 16, 17, 18
+Xiao Lin, Wenfei Yang, Yuan Gao, and Tianzhu Zhang. Instance-adaptive and geometric-aware keypoint learning for category-level 6d object pose estimation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 21040-21049, 2024. 1, 4, 6, 8, 9, 15, 16, 17, 18, 19
+Zhifeng Lin, Changxing Ding, Huan Yao, Zengsheng Kuang, and Shaoli Huang. Harmonious feature learning for interactive hand-object pose estimation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 12989-12998, 2023c. 1
+Jian Liu, Wei Sun, Chongpei Liu, Xing Zhang, and Qiang Fu. Robotic continuous grasping system by shape transformer-guided multiobject category-level 6-d pose estimation. IEEE Transactions on Industrial Informatics, 19(11):11171-11181, 2023a. 1
+Jianhui Liu, Yukang Chen, Xiaqing Ye, and Xiaojuan Qi. Ist-net: Prior-free category-level pose estimation with implicit space transformation. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 13978-13988, 2023b. 1, 4, 8, 16
+Eric Marchand, Hideaki Uchiyama, and Fabien Spindler. Pose estimation for augmented reality: A hands-on survey. IEEE Transactions on Visualization and Computer Graphics (TVCG), 22(12): 2633-2651, 2015. 1
+Octave Mariotti, Oisin Mac Aodha, and Hakan Bilen. Improving semantic correspondence with viewpoint-guided spherical maps. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 19521-19530, 2024. 18
+Maxime Oquab, Timothee Darcet, Theo Moutakanni, Huy Vo, Marc Szafraniec, Vasil Khalidov, Pierre Fernandez, Daniel Haziza, Francisco Massa, Alaaeldin El-Nouby, et al. DINOV2: Learning robust visual features without supervision. Transactions on Machine Learning Research, 2024. ISSN 2835-8856. 3, 4, 8, 14, 15, 16
+
+Sida Peng, Yuan Liu, Qixing Huang, Xiaowei Zhou, and Hujun Bao. Pvnet: Pixel-wise voting network for 6dof pose estimation. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 4561-4570, 2019. 1
+Charles Ruizhongtai Qi, Li Yi, Hao Su, and Leonidas J Guibas. Pointnet++: Deep hierarchical feature learning on point sets in a metric space. Advances in neural information processing systems, 30, 2017. 3, 4, 5, 6, 9, 14, 16
+Yongzhi Su, Jason Rambach, Nareg Minaskan, Paul Lesur, Alain Pagani, and Didier Stricker. Deep multi-state object pose estimation for augmented reality assembly. In 2019 IEEE International Symposium on Mixed and Augmented Reality Adjunct (ISMAR-Adjunct), pp. 222-227. IEEE, 2019. 1
+Meng Tian, Marcelo H Ang, and Gim Hee Lee. Shape prior deformation for categorical 6d object pose and size estimation. In Computer Vision-ECCV 2020: 16th European Conference, Glasgow, UK, August 23-28, 2020, Proceedings, Part XXI 16, pp. 530-546. Springer, 2020. 1, 3, 8, 16
+Shinji Umeyama. Least-squares estimation of transformation parameters between two point patterns. IEEE Transactions on Pattern Analysis & Machine Intelligence, 13(04):376-380, 1991. 2, 3, 6, 14
+A Vaswani. Attention is all you need. Advances in Neural Information Processing Systems, 2017. 3, 5
+Boyan Wan, Yifei Shi, and Kai Xu. Socs: Semantically-aware object coordinate space for category-level 6d object pose estimation under large shape variations. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 14065-14074, 2023. 2, 4
+Chen Wang, Danfei Xu, Yuke Zhu, Roberto Martin-Martin, Cewu Lu, Li Fei-Fei, and Silvio Savarese. Densefusion: 6d object pose estimation by iterative dense fusion. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 3343-3352, 2019a. 1
+Gu Wang, Fabian Manhardt, Federico Tombari, and Xiangyang Ji. Gdr-net: Geometry-guided direct regression network for monocular 6d object pose estimation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 16611-16621, 2021a. 1
+He Wang, Srinath Sridhar, Jingwei Huang, Julien Valentin, Shuran Song, and Leonidas J Guibas. Normalized object coordinate space for category-level 6d object pose and size estimation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 2642-2651, 2019b. 1, 2, 3, 6, 8, 16
+Jiaze Wang, Kai Chen, and Qi Dou. Category-level 6d object pose estimation via cascaded relation and recurrent reconstruction networks. In 2021 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pp. 4807-4814. IEEE, 2021b. 4
+Ruiqi Wang, Xinggang Wang, Te Li, Rong Yang, Minhong Wan, and Wenyu Liu. Query6dof: Learning sparse queries as implicit shape prior for category-level 6dof pose estimation. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 14055-14064, 2023. 4, 8, 16
+Sinong Wang, Belinda Z Li, Madian Khabsa, Han Fang, and Hao Ma. Linformer: Self-attention with linear complexity. arXiv preprint arXiv:2006.04768, 2020. 10
+Bowen Wen, Wenzhao Lian, Kostas Bekris, and Stefan Schaal. You only demonstrate once: Category-level manipulation from single visual demonstration. Robotics: Science and Systems (RSS), 2022. 1
+Jiyao Zhang, Mingdong Wu, and Hao Dong. Generative category-level object pose estimation via diffusion models. Advances in Neural Information Processing Systems, 36, 2023. 8
+Linfang Zheng, Chen Wang, Yinghan Sun, Esha Dasgupta, Hua Chen, Ales Leonardis, Wei Zhang, and Hyung Jin Chang. Hs-posed: Hybrid scope feature extraction for category-level object pose estimation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 17163-17173, 2023. 3, 8, 16
+
+# A APPENDIX
+
+# A.1 CLARIFICATIONS ON SO(3)-INVARIANCE
+
+In this section, we first provide a detailed explanation of SO(3)-invariance and equivariance. Subsequently, we elaborate on the SO(3)-invariance of DINOv2 and ColorPointNet++, respectively.
+
+SO(3)-Invariance/Equivariance. (1) Rotation estimation network should be SO(3)-equivariant. The rotation estimation task can be defined as $\pmb{R} = \mathrm{Net}(\pmb{P})$ , where Net denotes the rotation estimation network. The SO(3)-equivariance between the input observed point cloud $\pmb{P} \in \mathbb{R}^{N \times 3}$ and the output estimated rotation $\pmb{R} \in \mathrm{SO}(3)$ is then formulated as:
+
+$$
+\operatorname {N e t} \left(\psi_ {\boldsymbol {G}} (\boldsymbol {P})\right) = \psi_ {\boldsymbol {G}} \left(\operatorname {N e t} (\boldsymbol {P})\right). \tag {10}
+$$
+
+(2) Correspondence predictor should ensure SO(3)-invariance. Correspondence-based methods can be expressed as $\mathbf{R} = \operatorname{Net}(\mathbf{P}) = \Phi (\mathbf{P},\operatorname {Corr}(\mathbf{P}))$ , where $\Phi$ is the rotation solver (e.g., the Umayama (Umayama, 1991) algorithm) and Corr is the correspondence (NOCS) predictor. Then, SO(3)-equivariance between the network input and output is formulated as:
+
+$$
+\Phi \left(\psi_ {\boldsymbol {G}} (\boldsymbol {P}), \operatorname {C o r r} \left(\psi_ {\boldsymbol {G}} (\boldsymbol {P})\right)\right) = \psi_ {\boldsymbol {G}} \left(\Phi (\boldsymbol {P}, \operatorname {C o r r} (\boldsymbol {P}))\right). \tag {11}
+$$
+
+Given fixed reference coordinates $\mathrm{Corr}(\pmb {P})\in \mathbb{R}^{N\times 3}$ , the rotation solver $\Phi$ is SO(3)-equivariant with respect to the other input $\pmb{P}$ , which is written as:
+
+$$
+\Phi \left(\psi_ {G} (\boldsymbol {P}), \operatorname {C o r r} (\boldsymbol {P})\right) = \psi_ {G} \left(\Phi (\boldsymbol {P}, \operatorname {C o r r} (\boldsymbol {P}))\right). \tag {12}
+$$
+
+Consequently, the correspondence predictor Corr needs to be designed to ensure SO(3)-invariance:
+
+$$
+\operatorname {C o r r} \left(\psi_ {\boldsymbol {G}} (\boldsymbol {P})\right) = \operatorname {C o r r} (\boldsymbol {P}). \tag {13}
+$$
+
+It means that no matter how an object is rotated, a specific point on that object should be mapped to a static coordinate in NOCS.
+
+(3) Feature extractor in correspondence-based methods should be SO(3)-invariant. Since the correspondence predictor is typically defined as $\mathrm{Corr}(\pmb {P}) = \mathrm{MLP}(f(\pmb {P}))$ , the point-wise feature extractor $f(P)$ in correspondence-based approaches also needs to be SO(3)-invariant, formulated as:
+
+$$
+f \left(\psi_ {\mathbf {G}} (\mathbf {P})\right) = f (\mathbf {P}), \tag {14}
+$$
+
+which is consistent with Equation 1.
+
+SO(3)-invariance of DINOv2. To illustrate the SO(3)-invariance of DINOv2 (Oquab et al., 2024), Figure 5 presents a PCA visualization of DINOv2 features from the same instance under different rotations. The visualization shows that the DINOv2 features of the camera lens remain relatively consistent across various rotations, indicating their robustness to rotation variations. However, since DINOv2 does not strictly guarantee such semantic consistency, we conclude the features as approximately SO(3)-invariant, in line with the terminology stated in Second-Pose (Chen et al., 2024).
+
+
+Figure 5: PCA visualization of DINOv2 features.
+
+SO(3)-invariance of ColorPointNet++. To further illustrate the SO(3)-invariance of the proposed ColorPointNet++ network, we show the pipeline comparison between ColorPointNet++ and PointNet++ (Qi et al., 2017) in Figure 6. Given the input points $P \in \mathbb{R}^{N \times d}$ , where $d$ denotes the coordinate dimension and is equal to 3 in Euclidean space, and associated point attributes $F^{attr} \in \mathbb{R}^{N \times C_0}$ (e.g., RGB colors with $C_0 = 3$ ), PointNet++ first concatenates them to yield the input features $F^{in} \in \mathbb{R}^{N \times (d + C_0)}$ , and then aggregates the point-wise features $F^{out} \in \mathbb{R}^{N \times C}$ by a hierarchical grouping and propagation strategy. It should be noted that in each set abstraction level and feature propagation level, PointNet++ concatenates the absolute XYZ coordinates onto the output features. The injection of SO(3)-equivariant XYZ coordinates on features results in the output features of PointNet++ lacking SO(3)-invariance. In contrast, the proposed ColorPointNet++ is structured to
+
+
+(a) PointNet++
+
+
+(b) ColorPointNet++
+Figure 6: Overview of comparison between the PointNet++ and our ColorPointNet++ network.
+
+achieve SO(3)-invariant feature extraction by avoiding the injection of absolute XYZ coordinates on the features. Specifically, XYZ coordinates are not used for input features and are not concatenated in each level, where the input features are derived exclusively from RGB values. Given that the k Nearest Neighbor (kNN) operation employed in the grouping and interpolation processes is SO(3)-invariant, the output features of our ColorPointNet++ network therefore exhibit SO(3)-invariance.
+
+# A.2 MORE IMPLEMENTATION DETAILS
+
+Training Details. For deep image feature extraction, we use the DINOv2 (Oquab et al., 2024) model with a ViT-S/14 (Dosovitskiy et al., 2020) architecture and feature dimension of 384. And for deep point cloud feature extraction, we implement the ColorPointNet++ network incorporating 4 set abstraction levels with multi-scale grouping, and the output feature dimension is 256. In terms of HEALPix grids (Gorski et al., 2005), the resolution is expressed by the parameter $N_{side}$ and the number of grids is equal to $N_{pix} = 12N_{side}^2$ , where we set $N_{side} = 8$ and yield $M = N_{pix} = 768$ . For data augmentation, we follow previous works (Lin et al., 2023b; 2024) to use perturbations with random translation $\Delta t \sim U(-0.02, 0.02)$ , random scale $\Delta s \sim U(0.8, 1.2)$ , and random rotational degree sampled from $U(0, 20)$ for each axis. Regarding network optimization, we train SpherePose using the Adam (Kingma & Ba, 2015) optimizer for 200K iterations, with an initial learning rate of 0.001 and a cosine annealing schedule.
+
+Correspondence Loss Functions. The specific formulas corresponding to the loss functions in Table 6 within the ablation study section (Section 4.3) are provided below:
+
+$$
+\mathcal {L} _ {L ^ {1}} = \frac {1}{M} \sum_ {m = 1} ^ {M} \| O _ {m} - O _ {m} ^ {g t} \| _ {1}, \tag {15}
+$$
+
+$$
+\mathcal {L} _ {\text {S m o o t h} L ^ {1}} = \frac {1}{M} \sum_ {m = 1} ^ {M} \left\{ \begin{array}{l l} 5 \| \boldsymbol {O} _ {m} - \boldsymbol {O} _ {m} ^ {g t} \| _ {1} ^ {2}, & \| \boldsymbol {O} _ {m} - \boldsymbol {O} _ {m} ^ {g t} \| _ {1} \leq 0. 1 \\ \| \boldsymbol {O} _ {m} - \boldsymbol {O} _ {m} ^ {g t} \| _ {1} - 0. 0 5, & \| \boldsymbol {O} _ {m} - \boldsymbol {O} _ {m} ^ {g t} \| _ {1} > 0. 1 \end{array} , \right. \tag {16}
+$$
+
+$$
+\mathcal {L} _ {\text {H y p e r b o l i c} L ^ {1}} = \frac {1}{M} \sum_ {m = 1} ^ {M} \operatorname {a r c o s h} \left(1 + \| O _ {m} - O _ {m} ^ {g t} \| _ {1}\right), \tag {17}
+$$
+
+$$
+\mathcal {L} _ {L ^ {2}} = \frac {1}{M} \sum_ {m = 1} ^ {M} \| O _ {m} - O _ {m} ^ {g t} \| _ {2}, \tag {18}
+$$
+
+$$
+\mathcal {L} _ {\text {H y p e r b o l i c} L ^ {2}} = \frac {1}{M} \sum_ {m = 1} ^ {M} \operatorname {a r c o s h} \left(1 + \| O _ {m} - O _ {m} ^ {g t} \| _ {2}\right), \tag {19}
+$$
+
+Table 8: Performance comparison with state-of-the-art methods on CAMERA25 dataset.
+
+
Method
Representation
IoU50
IoU75
5°2cm
5°5cm
10°2cm
10°5cm
Direct Regression
GPV-Pose (Di et al., 2022)
Point-based
93.4
88.3
72.1
79.1
-
89.0
HS-Pose (Zheng et al., 2023)
Point-based
93.3
89.4
73.3
80.5
80.4
89.4
DualPoseNet (Lin et al., 2021)
Spherical
92.4
86.4
64.7
70.7
77.2
84.7
VI-Net (Lin et al., 2023b)
Spherical
-
-
74.1
81.4
79.3
87.3
Correspondence
NOCS (Wang et al., 2019b)
Point-based
83.9
69.5
32.3
40.9
48.2
64.4
SPD (Tian et al., 2020)
Point-based
93.2
83.1
54.3
59.0
73.3
81.5
SGPA (Chen & Dou, 2021)
Point-based
93.2
88.1
70.7
74.5
82.7
88.4
IST-Net (Liu et al., 2023b)
Point-based
93.7
90.8
71.3
79.9
79.4
89.9
Query6DoF (Wang et al., 2023)
Point-based
91.9
88.1
78.0
83.1
83.9
90.0
AG-Pose (Lin et al., 2024)
Point-based
93.8
91.3
77.8
82.8
85.5
91.6
SpherePose
Spherical
94.8
92.4
78.3
84.3
84.8
92.3
+
+Table 9: IoU metric comparison with state-of-the-art methods on HouseCat6D dataset.
+
+
Method
Representation
IoU25 / IoU50
Bottle
Box
Can
Cup
Remote
Teapot
Cutlery
Glass
Tube
Shoe
Direct Regression
FS-Net(Chen et al., 2021)
Point-based
74.9 / 48.0
65.3 / 45.0
31.7 / 1.2
98.3 / 73.8
96.4 / 68.1
65.6 / 46.8
69.9 / 59.8
71.0 / 51.6
99.4 / 32.4
79.7 / 46.0
71.4 / 55.4
GPV-Pose(Di et al., 2022)
Point-based
74.9 / 50.7
66.8 / 45.6
31.4 / 1.1
98.6 / 75.2
96.7 / 69.0
65.7 / 46.9
75.4 / 61.6
70.9 / 52.0
99.6 / 62.7
76.9 / 42.4
67.4 / 50.2
VI-Net(Lin et al., 2023b)
Spherical
80.7 / 56.4
90.6 / 79.6
44.8 / 12.7
99.0 / 67.0
96.7 / 72.1
54.9 / 17.1
52.6 / 47.3
89.2 / 76.4
99.1 / 93.7
94.9 / 36.0
85.2 / 62.4
SecondPose(Chen et al., 2024)
Spherical
83.7 / 66.1
94.5 / 79.8
54.5 / 23.7
98.5 / 93.2
99.8 / 82.9
53.6 / 35.4
81.0 / 71.0
93.5 / 74.4
99.3 / 92.5
75.6 / 35.6
86.9 / 73.0
Correspondence
NOCs(Wang et al., 2019b)
Point-based
50.0 / 21.2
41.9 / 5.0
43.3 / 6.5
81.9 / 62.4
68.8 / 2.0
81.8 / 59.8
24.3 / 0.1
14.7 / 6.0
95.4 / 49.6
21.0 / 4.6
26.4 / 16.5
AG-Pose(Lin et al., 2024)
Point-based
81.8 / 62.5
82.3 / 62.8
57.2 / 7.7
97.1 / 83.6
97.9 / 79.6
87.0 / 66.2
63.4 / 60.9
77.2 / 62.0
100.0 / 99.4
83.4 / 53.4
72.0 / 50.0
SpherePose
Spherical
88.8 / 72.2
98.6 / 87.4
58.9 / 5.6
97.4 / 87.2
100.0 / 97.7
79.0 / 63.5
94.8 / 87.3
85.5 / 74.5
99.6 / 98.0
74.5 / 30.0
99.8 / 90.8
+
+# A.3 ADDITIONAL EXPERIMENTAL RESULTS
+
+Results on CAMERA25 Dataset. In Table 8, we compare our method with the existing ones for category-level object pose estimation on CAMERA25 (Wang et al., 2019b) dataset. From the results we can see that SpherePose achieves the best performance. In detail, SpherePose outperforms the state-of-the-art correspondence-based method AG-Pose (Lin et al., 2024) by $1.0\%$ on $\mathrm{IoU}_{50}$ , $1.1\%$ on $\mathrm{IoU}_{75}$ , $0.5\%$ on $5^{\circ}2\mathrm{cm}$ and $1.5\%$ on $5^{\circ}5\mathrm{cm}$ , respectively.
+
+Results of IoU Metric on HouseCat6D Dataset. Table 9 presents the quantitative comparison of IoU metrics between our method and existing methods on HouseCat6D (Jung et al., 2024) dataset. Once again, our SpherePose attains the state-of-the-art performance, surpassing the second-best method SecondPose (Chen et al., 2024) by $5.1\%$ on $\mathrm{IoU}_{25}$ and $6.1\%$ on $\mathrm{IoU}_{50}$ .
+
+Ablation Studies on Point-wise Features. Table 10 presents the results of detailed ablation studies on point-wise features. For low-level image features, RGB values provide the low-level texture information, bringing a performance gain of $1.4\%$ on $5^{\circ}2\mathrm{cm}$ . For high-level image features, the frozen pretrained DINOv2 (Oquab et al., 2024) achieves a $4.4\%$ higher performance on $5^{\circ}2\mathrm{cm}$ compared to
+
+Table 10: Ablation studies on point-wise features.
+
+
Point-wise Features
5°2cm
5°5cm
10°2cm
10°5cm
Low-level Image
RGB
58.2
67.4
76.2
88.2
None
56.8
65.9
75.9
87.7
High-level Image
DINOv2
58.2
67.4
76.2
88.2
None
48.7
57.1
69.2
80.3
ResNet18
53.8
62.5
72.8
83.8
Low-level Point Cloud
Radius
58.2
67.4
76.2
88.2
None
52.3
58.9
72.3
83.6
High-level Point Cloud
ColorPointNet++
58.2
67.4
76.2
88.2
None
55.9
64.6
74.3
86.7
PointNet++
56.3
64.7
73.2
84.4
HP-PPF
55.1
64.2
74.2
85.9
+
+the end-to-end trained ResNet18 (He et al., 2016). Due to the large-scale pretraining, DINOv2 produces semantically consistent patch-wise features that are robust to rotations, which facilitates correspondence prediction. For low-level point cloud features, removing the radius information results in a $5.9\%$ drop on $5^{\circ}2\mathrm{cm}$ , which highlights the importance of spatial structure awareness. Since the proposed ColorPointNet++ eliminates the injection of raw XYZ coordinates, its features lack implicit encoding of the underlying spatial structure, making explicit SO(3)-invariant radius information essential. For high-level point cloud features, ColorPointNet++ outperforms the original PointNet++ (Qi et al., 2017) by $3.8\%$ on $10^{\circ}5\mathrm{cm}$ , emphasizing the significance of SO(3)-invariant features. Additionally, We have tried HP-PPF (Chen et al., 2024), which is also SO(3)-invariant, but the performance is suboptimal compared to not using it. This might stem from the fact that HP-PPF samples 300 points from 2048 observed points to estimate point-wise normal vectors, making it prone to noise due to the sparse sampling. Moreover, as a parameter-free approach, HP-PPF lacks the deep feature extraction capabilities compared to the learnable architecture of ColorPointNet++.
+
+Table 11: Per-category results of our Sphere- Pose on REAL275 dataset.
+
+
Category
IoU50
IoU75
5°2cm
5°5cm
10°2cm
10°5cm
bottle
57.6
51.3
71.7
76.8
81.4
88.7
bowl
100.0
100.0
87.7
96.9
90.8
100.0
camera
90.9
77.5
5.4
5.7
43.9
50.1
can
71.4
70.6
76.5
81.6
91.9
98.4
laptop
84.8
75.5
59.5
92.7
60.0
97.0
mug
99.6
99.3
48.5
50.3
89.2
94.9
average
84.0
79.0
58.2
67.4
76.2
88.2
+
+Table 13: Per-category results of our SpherePose on CAMERA25 dataset.
+
+
Category
IoU50
IoU75
5°2cm
5°5cm
10°2cm
10°5cm
bottle
93.8
90.6
78.0
93.3
79.5
96.4
bowl
97.0
96.7
95.1
95.6
98.6
99.2
camera
94.5
91.6
69.2
72.8
78.9
86.9
can
92.2
91.7
96.7
97.9
97.2
98.6
laptop
97.9
91.4
73.1
87.4
75.6
92.1
mug
93.6
92.3
57.6
58.9
78.7
80.4
average
94.8
92.4
78.3
84.3
84.8
92.3
+
+Table 12: Per-category results of AG-Pose (Lin et al., 2024) on REAL275 dataset.
+
+
Category
IoU50
IoU75
5°2cm
5°5cm
10°2cm
10°5cm
bottle
57.7
50.3
62.0
64.9
83.4
88.0
bowl
100.0
100.0
88.7
94.3
94.1
99.7
camera
90.8
82.9
1.2
1.3
24.8
27.3
can
71.3
71.2
83.4
85.3
96.3
98.6
laptop
83.3
74.1
59.6
91.1
61.2
95.6
mug
99.4
98.5
32.9
33.4
88.3
89.3
average
83.7
79.5
54.7
61.7
74.7
83.1
+
+Table 14: Per-category results of AG-Pose (Lin et al., 2024) on CAMERA25 dataset.
+
+
Category
IoU50
IoU75
5°2cm
5°5cm
10°2cm
10°5cm
bottle
93.7
91.4
80.9
96.4
82.3
99.0
bowl
96.9
96.7
98.7
99.0
99.7
99.8
camera
89.2
84.3
57.0
60.9
73.6
81.1
can
92.1
92.0
99.7
99.8
99.7
99.9
laptop
97.5
90.8
76.1
85.9
80.6
92.4
mug
93.6
92.7
54.5
54.6
77.1
77.3
average
93.8
91.3
77.8
82.8
85.5
91.6
+
+Per-category Results. The REAL275 and CAMERA25 datasets share the same categories, including bottle, bowl, camera, can, laptop and mug. In order to conduct an in-depth analysis of the relative merits of our method, we show the per-category and average results of our Sphere-Pose and AG-Pose (Lin et al., 2024) on REAL275 dataset in Table 11 and Table 12, and on CAMERA dataset in Table 13 and Table 14, respectively. It can be observed that SpherePose outperforms AG-Pose mainly in the camera and mug categories, which have large intra-class shape variations. This result demonstrates the effective
+
+ness of our approach to learn shape-independent transformation via spherical representations, which can resolve the issue of intra-class semantic incoherence arising from point-based representations. We also provide the per-category results on HouseCat6D dataset in Table 15, which contains 10 household categories: bottle, box, can, cup, remote, teapot, cutlery, glass, tube and shoe. Note that we deal with all categories by a single model as in Lin et al. (2022b; 2023b; 2024).
+
+Convergence Speed of the Hyperbolic Correspondence Loss Function. Figure 7 visualizes the training convergence speed and accuracy comparison between our hyperbolic correspondence loss function and the traditional loss function. As discussed in Section 3.3, the hyperbolic $L^2$ loss function is designed to improve the gradient of the traditional $L^2$ loss function around zero, facilitating more fine-grained correspondence prediction. As shown in the figure, the hyperbolic $L^2$ loss not only accelerates convergence during training but also achieves higher accuracy, demonstrating its effectiveness in improving correspondence prediction precision.
+
+Table 15: Per-category results of our SpherePose on HouseCat6D dataset.
+
+
Category
IoU25
IoU50
5°2cm
5°5cm
10°2cm
10°5cm
bottle
98.6
87.4
51.0
55.7
67.9
79.1
box
58.9
5.6
0.0
0.0
0.2
0.2
can
97.4
87.2
33.9
41.4
63.0
79.2
cup
100.0
97.7
2.8
3.0
60.6
68.4
remote
79.0
63.5
15.7
16.3
46.9
50.1
teapot
94.8
87.3
25.2
44.4
53.6
86.8
cutlery
85.5
74.5
1.4
1.6
8.2
13.0
glass
99.6
98.0
54.8
66.3
78.5
96.4
tube
74.5
30.0
1.0
1.2
5.3
6.7
shoe
99.8
90.8
7.3
29.3
24.5
73.2
average
88.8
72.2
19.3
25.9
40.9
55.3
+
+
+Figure 7: Training comparison between the hyperbolic $L^2$ and traditional $L^2$ loss functions.
+
+Inference Speed and Overhead. Table 16 shows the comparison of the pose estimation performance, total number of parameters, and inference speed on REAL275 dataset. As demonstrated by the results, the increase in the number $L$ of encoder layers leads to enhanced performance, reaching saturation at six layers. A further increase in the number of layers does not result in further perfor
+
+Table 16: Comparison of different methods in terms of performance on REAL275, inference speed and overhead. All the experiments for inference speed are conducted on a single RTX3090Ti GPU.
+
+
Method
5°2cm
5°5cm
10°2cm
10°5cm
Parameters (M)
Speed (FPS)
VI-Net (Lin et al., 2023b)
50.0
57.6
70.8
82.1
28.9
29.7
SecondPose (Chen et al., 2024)
56.2
63.6
74.7
86.0
60.2
14.3
DPDN (Lin et al., 2022b)
46.0
50.7
70.4
78.4
24.6
27.4
AG-Pose (Lin et al., 2024)
54.7
61.7
74.7
83.1
28.9
27.5
SpherePose with L = 2
53.6
61.3
74.0
85.8
25.7
26.4
SpherePose with L = 4
55.7
64.5
75.2
86.5
26.1
25.9
SpherePose with L = 6
58.2
67.4
76.2
88.2
26.5
25.3
SpherePose with L = 8
57.9
66.7
74.9
86.2
26.9
24.5
+
+mance gains, but rather increases the number of parameters and slows down the inference. Therefore, we set $L = 6$ in our method. Moreover, our approach demonstrates superior performance over existing methods, retaining a comparable number of parameters and inference speed. Specifically, in comparison to the leading correspondence-based method AG-Pose (Lin et al., 2024), our SpherePose achieves a $3.5\%$ improvement on $5^{\circ}2\mathrm{cm}$ , with 2.4 million fewer parameters and only a slight decrease in FPS. When compared to the direct regression-based methods, SpherePose outperforms the advanced SecondPose (Chen et al., 2024) by $2\%$ on $5^{\circ}2\mathrm{cm}$ , with substantially fewer parameters (26.5 million and 60.2 million, respectively) and higher FPS (25.3 and 14.3, respectively).
+
+# A.4 CONCURRENT RELATED WORKS
+
+In this section, we discuss the distinctions between our approach and two concurrent related works.
+
+Correspondence-based work. Mariotti et al. (2024) propose a semantic correspondence estimation approach, which deal with the challenges of object symmetries and repeated parts by incorporating a weak geometric spherical prior to supplement leading self-supervised features with 3D perception capabilities. They project image features onto a spherical map and use viewpoint information to guide correspondence prediction. While both this work and ours utilize spherical representations, the primary focus and application are different. Mariotti et al. (2024) aim to improve semantic correspondence estimation, which involves finding local regions that correspond to the same semantic entities across images. In contrast, our SpherePose focuses on correspondence-based category-level object pose estimation, which involves establishing correspondences between observed points and normalized object coordinates, and then fitting the object pose. Mariotti et al. (2024) use spherical representations to learn 3D perception-driven semantic features, while we leverage spherical representations to learn shape-independent transformation, which is beneficial for handling large intra-class shape variations.
+
+Regression-based work. Lee & Cho (2024) propose a 3D rotation regression approach that directly predicts Wigner-D coefficients in the frequency domain, aligning with the operations of spherical CNNs. They use an SO(3)-equivariant pose harmonics predictor to ensure consistent pose estimation under arbitrary rotations, overcoming limitations of spatial parameterizations such as discontinuities and singularities. While both this work and ours aim to improve 3D rotation estimation, the operating domains and the way to estimate rotation are different. Lee & Cho (2024) focus on predicting Wigner-D coefficients in the frequency domain to capture 3D rotations, which is useful for ensuring consistent pose estimation under different rotations. Instead, our method operates in the spatial domain, leveraging spherical representations to learn shape-independent transformation rather than directly predicting rotations through the network.
+
+# A.5 VISUALIZATION
+
+Qualitative Comparison. In Figure 8, we provide the qualitative comparison of existing correspondence-based methods, i.e., DPDN (Lin et al., 2022b), AG-Pose (Lin et al., 2024) and our SpherePose on REAL275 dataset. The visualization results indicate that previous methods adopting point-based representations do not perform well when dealing with novel objects with large shape variations, such as the length variation in camera lenses and the curvature distinctions in mug han
+
+
+Figure 8: Qualitative comparison of DPDN (Lin et al., 2022b), AG-Pose (Lin et al., 2024) and our SpherePose on REAL275 dataset. Red/Green indicates the predicted/GT results.
+
+dles. By learning shape-independent transformation on the sphere, the proposed method allows for enhanced pose estimation.
+
+More Visualization. We provide more visualization results of pose estimation from our SpherePose, including successful cases in Figure 9 and failed cases in Figure 10. We visualize all six previously unseen scenes within the REAL275 testing dataset, with three images for each scene. It can be observed that failures predominantly occur due to the omission of objects in the detection process and significant viewpoint variations that result in incomplete capture of some objects.
+
+
+Figure 9: Visualization of successful cases from our SpherePose on the 6 testing scenes of REAL275 dataset. Red/Green indicates the predicted/GT results.
+
+
+Scene 1
+
+
+
+
+
+
+Scene 2
+
+
+
+
+
+
+Scene 3
+
+
+
+
+
+
+Scene 4
+
+
+
+
+
+
+Scene 5
+
+
+
+
+
+
+Scene 6
+
+
+Figure 10: Visualization of failed cases from our SpherePose on the 6 testing scenes of REAL275 dataset. Red/Green indicates the predicted/GT results.
+
+
\ No newline at end of file
diff --git a/ICLR/2025/Learning Shape-Independent Transformation via Spherical Representations for Category-Level Object Pose Estimation/images.zip b/ICLR/2025/Learning Shape-Independent Transformation via Spherical Representations for Category-Level Object Pose Estimation/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..e17a0b1724f72496961999baff17334c5a004562
--- /dev/null
+++ b/ICLR/2025/Learning Shape-Independent Transformation via Spherical Representations for Category-Level Object Pose Estimation/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0e8b0a835da0871f55de1e2be8ec388ab58de873fa10401a9f2f31654aaa8dd9
+size 1755675
diff --git a/ICLR/2025/Learning Shape-Independent Transformation via Spherical Representations for Category-Level Object Pose Estimation/layout.json b/ICLR/2025/Learning Shape-Independent Transformation via Spherical Representations for Category-Level Object Pose Estimation/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..32a860df70b323ad623c58d339db2c5d4c46c36e
--- /dev/null
+++ b/ICLR/2025/Learning Shape-Independent Transformation via Spherical Representations for Category-Level Object Pose Estimation/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:227fd6e3ad20fa9ac3e2a6248889cc44a582a925d34225cacd3fc009e6aecb5e
+size 686005
diff --git a/ICLR/2025/Learning Spatial-Semantic Features for Robust Video Object Segmentation/1ca798a2-cae1-4941-9627-bebfd0981126_content_list.json b/ICLR/2025/Learning Spatial-Semantic Features for Robust Video Object Segmentation/1ca798a2-cae1-4941-9627-bebfd0981126_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..172255cc535f9000641b7ccbea93e8c371529b24
--- /dev/null
+++ b/ICLR/2025/Learning Spatial-Semantic Features for Robust Video Object Segmentation/1ca798a2-cae1-4941-9627-bebfd0981126_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1d41f93710e82b4f0d58e97ed56f7bd3c9580e3fd4cd73ae0adec4ff19e5cdab
+size 113851
diff --git a/ICLR/2025/Learning Spatial-Semantic Features for Robust Video Object Segmentation/1ca798a2-cae1-4941-9627-bebfd0981126_model.json b/ICLR/2025/Learning Spatial-Semantic Features for Robust Video Object Segmentation/1ca798a2-cae1-4941-9627-bebfd0981126_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..1f7e8f32d569e21212eaa2f29ca1167f915f8062
--- /dev/null
+++ b/ICLR/2025/Learning Spatial-Semantic Features for Robust Video Object Segmentation/1ca798a2-cae1-4941-9627-bebfd0981126_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1d5ba62e9832f83293b49598db144e70fb129e3f934d23d6b15166b335f886fc
+size 137456
diff --git a/ICLR/2025/Learning Spatial-Semantic Features for Robust Video Object Segmentation/1ca798a2-cae1-4941-9627-bebfd0981126_origin.pdf b/ICLR/2025/Learning Spatial-Semantic Features for Robust Video Object Segmentation/1ca798a2-cae1-4941-9627-bebfd0981126_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..f9bf082d6a301cc6b92521081adeeeed0c93cb9a
--- /dev/null
+++ b/ICLR/2025/Learning Spatial-Semantic Features for Robust Video Object Segmentation/1ca798a2-cae1-4941-9627-bebfd0981126_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2270aa2439a3c53ecd3bb905b6fd511a046fa43e8f0183976c61df7fd666d80c
+size 27685672
diff --git a/ICLR/2025/Learning Spatial-Semantic Features for Robust Video Object Segmentation/full.md b/ICLR/2025/Learning Spatial-Semantic Features for Robust Video Object Segmentation/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..ab907bb082b3fcd0503771dbbf3c723d179217f4
--- /dev/null
+++ b/ICLR/2025/Learning Spatial-Semantic Features for Robust Video Object Segmentation/full.md
@@ -0,0 +1,361 @@
+# LEARNING SPATIAL-SEMANTIC FEATURES FOR ROBUST VIDEO OBJECT SEGMENTATION
+
+Xin Li $^{1,2,3\dagger}$ , Deshui Miao $^{2\dagger}$ , Zhenyu He $^{2,1*}$ , Yaowei Wang $^{2,1*}$ , Huchuan Lu $^{4}$ , and Ming-Hsuan Yang $^{5,6}$
+
+$^{1}$ Pengcheng Laboratory $^{2}$ Harbin Institute of Technology, Shenzhen $^{3}$ Pazhou Lab (Huangpu)
+
+$^{4}$ Dalian University of Technology $^{5}$ University of California at Merced $^{6}$ Yonsei University
+
+# ABSTRACT
+
+Tracking and segmenting multiple similar objects with distinct or complex parts in long-term videos is particularly challenging due to the ambiguity in identifying target components and the confusion caused by occlusion, background clutter, and changes in appearance or environment over time. In this paper, we propose a robust video object segmentation framework that learns spatial-semantic features and discriminative object queries to address the above issues. Specifically, we construct a spatial-semantic block comprising a semantic embedding component and a spatial dependency modeling part for associating global semantic features and local spatial features, providing a comprehensive target representation. In addition, we develop a masked cross-attention module to generate object queries that focus on the most discriminative parts of target objects during query propagation, alleviating noise accumulation to ensure effective long-term query propagation. Extensive experimental results show that the proposed method achieves state-of-the-art performance on benchmark data sets, including the DAVIS2017 test (87.8%), YoutubeVOS 2019 (88.1%), MOSE val (74.0%), and LVOS test (73.0%), and demonstrate the effectiveness and generalization capacity of our model. The source code and trained models are released at https://github.com/yahooo-m/S3.
+
+# 1 INTRODUCTION
+
+Video Object Segmentation (VOS) aims to track and segment target objects specified in the initial frame with mask annotations in a video sequence (Xu et al., 2018; Pont-Tuset et al., 2017; Voigtlaender et al., 2019; Yang et al., 2021). This practice holds significant promise in various applications, particularly as the prevalence of video content increases in domains such as autonomous driving, augmented reality, and interactive video editing (Park et al., 2022; Bao et al., 2018). The main challenges faced by VOS include drastic target appearance change, occlusion, and identity confusion caused by similar objects and background clutter, which becomes more difficult in long-term videos.
+
+Existing VOS methods (Oh et al., 2019; Cheng et al., 2021a) typically perform video object segmentation by comparing the test frame with past frames. Specifically, they first use an association model to generate the correlated features of the test sample and target templates. Then, the target masks are predicted based on the correlated features. The pixel-wise correlated features (Wu et al., 2023) contribute to accurate mask predictions. To account for targets that appear differently over time, some methods (Yang et al., 2021; Cheng & Schwing, 2022) utilize a memory module to store these changing appearances. In addition, several recent approaches (Wang et al., 2023; Cheng et al., 2023a) introduce object queries to help distinguish different target objects to alleviate identity confusion.
+
+Although significant advances have been made in video object segmentation, existing methods do not perform well in challenging scenarios. First, when dealing with target objects with multiple complex or separate parts caused by occlusion, background clutter, and shape complexity, existing methods often generate incomplete prediction masks. This is because the pixel-wise correlation adopted by existing methods mainly focuses on detailed spatial information at the pixel level and neglects the semantic information at the instance level. Second, although object query improves the ID association
+
+
+Figure 1: Performance comparison in terms of the $\mathcal{I}\&\mathcal{F}$ score on various datasets. The proposed method achieves favorable performance against state-of-the-art methods, including AOT_L (Yang et al., 2021), XMem (Cheng & Schwing, 2022), and Cutie (Cheng et al., 2023a) on all the datasets. All methods are trained using the YoutubeVOS and DAVIS datasets.
+
+accuracy, it does not work well in sequences with dramatic target appearance changes. Existing methods (Wang et al., 2023; Cheng et al., 2023a) update target queries based on the entire predicted sample, which can introduce noise and errors and further lead to tracking failures when targets are missed or their identities are swapped.
+
+To address the aforementioned issues, we propose a VOS algorithm, called S3, to learn spatial-semantic features and generate discriminative object queries for robust VOS. Specifically, we design a spatial semantic block with a semantic embedding module and a spatial dependencies modeling part. This block efficiently utilizes the semantic information and local details from pre-trained ViTs for VOS, avoiding the need to train all ViT backbone parameters. In addition, we propose a discriminative query that emphasizes representative target parts, enabling more reliable target representation and query updates. This approach mitigates noise accumulation during query propagation and enhances robustness in long-term videos. We evaluate the proposed method extensively on five benchmarks, including DAVIS 2017 (Pont-Tuset et al., 2017), Youtube VOS2018 (Xu et al., 2018), Youtube VOS2019, LVOS (Hong et al., 2023), and MOSE (Ding et al., 2023). Extensive experimental results show that our approach achieves state-of-the-art performance on all these datasets including the DAVIS2017 test $(89.1\%)$ , YoutubeVOS 2019 $(88.5\%)$ , MOSE $(75.1\%)$ , and LVOS test $(73.0\%)$ datasets. In addition, the results achieved by only using the DAVIS and Youtube datasets for training show that our method generalizes well to different scenarios, as shown in Figure 1.
+
+In this work, we make the following contributions:
+
+- We propose a spatial-semantic network block to incorporate semantic information with spatial information for Video Object Segmentation. The spatial-semantic block integrates global semantic information from the CLS token of a pre-trained ViT backbone into the base features of the input sample and then models spatial dependencies using a spatial dependency modeling module, enhancing robust VOS performance when handling target objects with complex or separate parts.
+
+- We develop a discriminative query mechanism to capture the most representative region of the target for better target representation learning and updating. This significantly improves VOS datasets, especially in long-term VOS datasets.
+- We demonstrate that the proposed method achieves state-of-the-art performance on five diverse datasets and evaluate the contribution of each proposed component with comprehensive ablation studies.
+
+# 2 RELATED WORK
+
+Video Object Segmentation. Video Object Segmentation (VOS) aims to separate objects from the background and identify each target object across frames based on the target mask annotations given in the initial frame. Early VOS methods (Caelles et al., 2017; Xiao et al., 2018; Voigtlaender & Leibe, 2017; Hu et al., 2017; Luiten et al., 2018) use test-time learning to adapt pre-trained segmentation models to separate the specified targets online. The test-time learning of a deep model is time-consuming and significantly reduces the run speed. To avoid online learning, propagation-based methods (Duke et al., 2021; Cheng et al., 2018; Tsai et al., 2016) use offline shift attention to model temporal correlations between adjacent frames, propagating target masks from the previous frame to the current one. Despite promising performance, these methods suffer from error accumulation caused by inaccurate predictions. Matching-based methods (Chen et al., 2018; Hu et al., 2018; Bhat et al., 2020; Yang et al., 2020) enable fast and efficient inference by comparing the target template with the test image and predicting target masks based on feature matching. For example, OML (Chen et al., 2018) and VideoMatch (Hu et al., 2018) perform pixel matching between adjacent frames for mask prediction. Several methods (Oh et al., 2019; Yang et al., 2021; Yang & Yang, 2022; Cheng & Schwing, 2022) improve the matching-based VOS framework by introducing target memory to enrich target templates and developing advanced matching strategies to generate more comprehensive correlated features. For example, SimVOS (Wu et al., 2023) and JointFormer (Mao et al., 2021) use ViT blocks (Dosovitskiy et al., 2021) to model features and patch correspondence for object modeling jointly. For better target association across frames, some recent methods (Wang et al., 2023; Cheng et al., 2023a) introduce object queries to enrich target representation. Despite good performance on simple target objects, existing methods lack modeling of object-level semantic information, so they do not work well on dealing with objects with complex structures and long-term deformation. Unlike existing methods, the proposed approach performs pixel- and object-level feature learning through a novel object-aware backbone and a query-level correlation mechanism, enabling robust VOS performance, particularly in complex and long-term video scenarios.
+
+Query-Based VOS Frameworks. DETR (Carion et al., 2020) introduces the transformer network (Dosovitskiy et al., 2021) to object detection tasks by using queries to represent target regions. In the segmentation domain, some methods (Cheng et al., 2022; Cavagnero et al., 2024) introduce masked cross-attention modules to use queries to represent targets for segmentation tasks. Motivated by the above methods, ISVOS (Wang et al., 2023) uses additional queries generated by Mask2Former (Cheng et al., 2022) to represent instance information for target modeling, enhancing target representation in the matching-based VOS framework. To enable end-to-end training, Cutie (Cheng et al., 2023a) learns object-level features and enhances the interaction between object-level and pixel-level information, leading to improved segmentation accuracy and efficiency. However, query-based VOS methods suffer from query drift due to ineffective propagation. These methods model the entire target sample in the query, incorporating redundant information that diminishes the saliency of the target object. Instead, the proposed method generates discriminative queries for target representation and propagation, which preserves key distinguishing information of target objects and offers greater robustness to variations.
+
+Adapters for Dense Tasks. The ViT-Adapter (Chen et al., 2022) efficiently leverages pre-trained models by introducing a dense adapter for enhanced information exchange within ViT blocks, improving detection and segmentation performance. To enhance spatial hierarchical features, ViT-CoMer (Xia et al., 2024) introduces a multi-receptive field feature pyramid module to provide multi-scale spatial features. However, both methods require a complete fine-tuning step, which is inefficient, particularly in the video domain. Meanwhile, they focus on spatial information enhancement while lacking semantic feature interaction between ViT blocks and multi-scale features.
+
+To better adapt to VOS tasks, the proposed method improves adapter-based VOS frameworks in the following aspects. First, we introduce a spatial-semantic module to integrate the global semantic features from ViT to multi-scale features. This module does not need extra modules to transmit information to ViT blocks, which is more efficient. Second, the proposed spatial-semantic integration block associates semantic priors with dense local features. Third, the proposed method freezes the ViT blocks during training, eliminating the need for full fine-tuning.
+
+# 3 PROPOSED ALGORITHM
+
+Our method aims to learn comprehensive target features that contain semantic, spatial, and discriminative information for video object segmentation. This helps us cope with complex target appearance variations and ID confusion between target objects with similar appearances in long-term videos. To this end, we propose a spatial-semantic feature learning network that first embeds semantic information from a trained ViT network with multi-scale features from a trainable CNN network. Then, we model spatial dependencies upon the fused feature, enabling spatial-semantic features for VOS. In addition, to ensure that the target query retains discriminative information during long-term appearance changes, we develop a discriminative query propagation module to capture and update local representations of the target object.
+
+# 3.1 OVERALL FRAMEWORK
+
+Figure 2(a) shows the overall framework of the proposed method, consisting of two core modules: a spatial-semantic feature generation module and a pixel-and-query dual-level target association module. Given a test frame $\mathbf{X}_t \in \mathbb{R}^{3 \times H \times W}$ , the proposed method predicts the mask of all specified objects within it based on the initial frame $\mathbf{X}_{init} \in \mathbb{R}^{3 \times H \times W}$ and its corresponding annotation mask $\mathbf{M}_{init} \in \mathbb{R}^{H \times W}$ . First, the feature generation module takes the test frame $\mathbf{X}_t$ as input and generates spatial-semantic features. Then, the target association module associates the spatial-semantic features with the reference samples pixel-wise and query-wise to better represent the correlated features. Finally, a decoder predicts the mask based on these correlated features. In addition, we develop a dual-level memory module consisting of target features and target queries to better represent video targets that vary over frames. Both kinds of memory are updated every few frames using the online predicted masks, enabling adaptive target representations for effective target association.
+
+# 3.2 SPATIAL-SEMANTIC FEATURE LEARNING
+
+Figure 2(b) shows the spatial-semantic network, which consists of a semantic embedding module that incorporates semantic information from a pre-trained ViT model into multi-scale features and a spatial dependency modeling module that learns spatial dependencies based on semantic features.
+
+Semantic embedding. As the VOS task is designed for generic objects and no class labels are given, it is challenging to learn semantic representations directly from the VOS dataset during training. Fortunately, the CLS token in a trained ViT model aggregates semantic information from the entire image and provides a rich, global representation of the image content. Thus, we incorporate the semantic features generated from the CLS token with the multi-scale features generated from CNN networks to obtain detailed semantic features at different scales. To be specific, we first concatenate the CLS token $\mathcal{F}_{cls}^{i}$ with a global token representation $\mathcal{F}_g$ , which is generated by averagely pooling the features from a ViT block, to generate global semantic features denoted as $(\mathcal{F}_{cls}^{i},\mathcal{F}_{g})$ . Then, we use a cross-attention operation to generate the semantic-aware features $\mathcal{F}_{sem}^{i}$ by taking $(\mathcal{F}_{cls}^{i},\mathcal{F}_{g})$ as the Key and Value, and the spatial-temporal features $(\mathcal{F}_{spsem}^{i - 1})$ from the $(i - 1)$ -th spatial-semantic block as the Query, which is formulated as:
+
+$$
+\mathcal {F} _ {s e m} ^ {i} = f _ {s o f t m a x} \left(\frac {\left(W ^ {q} \left(\mathcal {F} _ {c l s} ^ {i} , \mathcal {F} _ {g} ^ {i}\right)\right) \left(W ^ {k} \mathcal {F} _ {s p s e m} ^ {i - 1}\right) ^ {\top}}{\sqrt {d}}\right) \left(W ^ {v} \mathcal {F} _ {s p s e m} ^ {i - 1}\right), \tag {1}
+$$
+
+where $f_{\text{softmax}}$ is the SoftMax operation, and $W^q$ , $W^k$ , and $W^v$ are the projection matrices for Query, Key, and Value.
+
+Spatial dependency modeling. We note that learning spatial dependencies between semantic features is important for the VOS model to understand the relationships between different object parts, which
+
+
+Figure 2: Architecture of the proposed method. (a) shows the overall framework of the proposed method comprising a feature generation part, a target association component, and a decoder-based prediction part. The feature generation part contains multiple spatial-semantic blocks, as illustrated in (b), which learn spatial-semantic features by integrating semantic priors and spatial details. (c) illustrates the discriminative query propagation process, which learns to generate discriminative queries that represent high-level object information.
+
+helps handle objects with complex structures or separate parts. Given the features of the input image patches generated by a ViT backbone model $\mathcal{F}_{vit}^{i}$ , we adopt the Multi-scale Deformable Cross-Attention operation (Carion et al., 2020) to capture the spatial information $\mathcal{F}_{spa}^{i}$ as:
+
+$$
+\mathcal {F} _ {s p a} ^ {i} = \sum_ {j} f _ {\alpha} \left(\mathcal {F} _ {v i t} ^ {i}, f _ {g s} \left(\mathcal {F} _ {s e m} ^ {i}, \Delta p\right)\right) \cdot f _ {g s} \left(\mathcal {F} _ {s e m} ^ {i}, \Delta p\right), \tag {2}
+$$
+
+where $\Delta p$ indicates the deformable offsets generated based on the query features $\mathcal{F}_{vit}^{i}, f_{gs}$ performs grid sampling on $\mathcal{F}_{sem}^{i}$ using the offsets $\Delta p, f_{\alpha}$ denotes the attention weights generated based on the query features $\mathcal{F}_{vit}^{i}$ and the grid sampled features, and $\sum_{j}$ is the summation over all sampled points. To enable an effective long-range propagation through the cascade blocks, we use the residual connection (He et al., 2016) followed by a convolution-feed-forward to generate the final spatial-semantic feature of the current block:
+
+$$
+\mathcal {F} _ {s p s e m} ^ {i} = \mathcal {F} _ {s p a} ^ {i} + f _ {C o n F F N} \left(\mathcal {F} _ {s p a} ^ {i} + \mathcal {F} _ {s p s e m} ^ {i - 1}\right). \tag {3}
+$$
+
+The spatial-semantic block leverages the strengths of both a pre-trained ViT network for providing semantic information and a multi-scale CNN network for rich spatial information, enabling comprehensive spatial-semantic feature learning for robust VOS.
+
+Figure 3(a) shows how the feature changes during the processing of the proposed model by visualizing the feature maps in different processing steps. It shows that the semantic embedding module enhances the semantic information (boundaries) of the objects in the feature maps. In contrast, after spatial dependence modeling, the feature maps pay more attention to the details of the objects. Figure 3(b) compares the features generated by different networks. Compared to ViT and ResNet models, the proposed Spatial-Semantic model exhibits better target representation capabilities with significantly higher activations in target object areas.
+
+# 3.3 DISCRIMINATIVE QUERY PROPAGATION
+
+To propagate target queries effectively across frames, we update the target queries with the most distinctive feature of the target object.
+
+
+Figure 3: Visualized feature maps from different backbones and stages. It shows that the proposed spatial-semantic model generates effective features for target representation.
+
+Discriminative feature generation. We select the discriminative feature of a target object by comparing the target query $\mathcal{Q} \in \mathbb{R}^{N \times C}$ with every channel activation in the correlated feature map of the target and taking the most similar one. Formally, given the feature map $\mathcal{F} \in \mathbb{R}^{H \times W \times C}$ , the salient channel activation feature of a target is computed as:
+
+$$
+\mathcal {Q} _ {s} = \mathcal {F} [ \underset {i \in (1, H * W)} {\arg \max } (\mathcal {F Q} ^ {T} \odot \mathcal {M}) ], \tag {4}
+$$
+
+where $\odot$ denotes the dot product, $\mathcal{M}$ represents a binary mask of the target, and $\mathcal{F}[i]$ denotes the $i$ -th channel activation of the feature map $\mathcal{F}$ . We use the strategy in Cutie (Cheng et al., 2023a) to generate the target mask $\mathcal{M}$ , which uses the predicted segmentation results in the previous frame.
+
+Query propagation. Based on the discriminative target feature $\mathcal{Q}_s$ generated from the target sample and the input target query $\mathcal{Q}_{\mathrm{in}}$ at the current stage, the output query $\mathcal{Q}_{\mathrm{out}}$ is propagated as:
+
+$$
+\mathcal {Q} _ {\text {o u t}} = \left(\alpha \odot \frac {\mathcal {A}}{\| \mathcal {A} \| _ {2}} + \mathcal {Q} _ {s}\right) \mathcal {W} _ {\text {o u t}} + \mathcal {Q} _ {\text {i n}}, \tag {5}
+$$
+
+where $\alpha$ is a learnable parameter to scale the matrix, $\mathcal{W}_{\mathrm{out}}$ is a learnable projection matrix, and $\mathcal{A}$ denotes the correspondence between salient query and salient pixel features, which is computed as.
+
+$$
+\mathcal {A} = \mathcal {Q} \odot \mathcal {Q} _ {s}. \tag {6}
+$$
+
+The proposed discriminative query propagation scheme adaptively refines target queries with the most representative features, which helps deal with the challenges of dramatic appearance variations in long-term videos. We also present the similarity map between the discriminative query and the feature in the last two rows, which indicates that our proposed discriminative query can represent and distinguish different objects.
+
+# 4 EXPERIMENTS
+
+# 4.1 EXPERIMENTAL SETTINGS
+
+Network. The full version of the proposed method uses a pre-trained ViT-base (Dosovitskiy et al., 2021) model as the ViT branch and constructs a simple CNN module for multi-scale feature generation.
+
+Table 1: Ablation study. All the variants are well aligned using the same settings and trained on the YoutubeVOS and DAVIS datasets. S3 denotes the proposed algorithm.
+
+
Dataset
MOSE-val
DAVIS 2017 test
LVOS test
LVOS val
YouTube-VOS 2019 val
Method
J&F
J
F
J&F
J
F
J&F
J
F
G
J
F
G
Js
Fs
Ju
Fu
XMem (Cheng & Schwing, 2022) (Baseline)
53.3
62.0
57.6
81.0
77.4
84.5
50.0
45.5
54.4
49.5
45.2
53.7
85.5
84.3
88.6
80.3
88.6
Cutie (Cheng et al., 2023a)
64.0
60.0
67.9
84.2
80.6
87.7
56.2
51.8
60.5
60.1
55.9
64.2
86.1
85.8
90.5
80.0
88.0
+Discriminative Query
64.2
60.3
68.1
85.2
81.8
88.5
57.4
53.3
61.5
62.1
57.9
66.2
86.5
86.2
90.7
80.6
88.8
+ViT
64.2
60.2
68.3
85.6
82.0
89.2
58.3
53.7
62.8
58.9
54.1
63.6
86.7
86.4
90.3
81.0
88.7
+Spatial-semantic (S3)
68.5
64.5
72.6
86.7
82.7
90.8
66.5
62.1
70.8
67.7
63.1
72.2
87.5
86.8
91.8
81.3
89.9
+
+The Spatial-Semantic block performs feature modeling after every block of the ViT branch. Upon the target association part, the Decoder predicts target masks based on multi-scale features. We use a soft aggregation operation for the scenario containing multiple target objects to merge the predicted masks.
+
+In all experiments, we set the number of Spatial-Semantic Blocks to $N = 4$ .
+
+Training. We adopt similar training settings as those of Cutie (Cheng et al., 2023a). Note that, apart from ResNet pre-training, we do not pre-train other models on static images and directly trained them on video datasets (YoutubeVOS (Xu et al., 2018) and DAVIS (Pont-Tuset et al., 2017)). To enhance the performance of our model, we use the MEGA dataset constructed by Cutie, which includes the YouTubeVOS (Xu et al., 2018), DAVIS (Pont-Tuset et al., 2017), OVIS (Qi et al., 2022), MOSE (Ding et al., 2023) and BURST (Athar et al., 2023) datasets. We sample 8 frames to train the model and randomly select 3 of them to train the matching process. For each sequence, we randomly choose at most 3 targets for training. Point supervision in loss is adopted to reduce the memory requirements.
+
+For optimization, the AdamW (Kingma & Ba, 2014) optimizer is used with a learning rate of 5e-5 and a weight decay of 0.5. We train the model for 125K with a batch size of 16 on the video dataset, and 195k on the MEGA dataset. For specific parameter settings, please refer to our supplementary material. All our models are trained on a machine with 8 x NVIDIA V100 GPUs and tested using one NVIDIA V100 GPU.
+
+Inference. Our feature and query memories are updated every 5th frame during the testing phase. For longer sequences, we employ a long-term fusion strategy (Cheng & Schwing, 2022) for updating. We skip frames without targets. We use two kinds of input sizes, 480 and 600/720, for more detailed comparisons. In this section, we compare all methods with input size 480p.
+
+# 4.2 ABLATION STUDY
+
+Effect of every component. Table 1 provides a comprehensive analysis of the components of our method. The first two rows describe the current methods upon which we build improvements. Cutie improves performance by using a query transformer within the model.
+
+Baseline. We adopt XMem as the baseline model, a representative VOS framework with a well-designed memory mechanism.
+
++ Discriminative Query, which performs discriminative query generation by adaptively refining target queries with the most representative features of the query transformer. To validate the effectiveness of our proposed discriminative query propagation, we first choose ResNet50 as the backbone for feature generation (simply comparing query propagation with Cutie (Cheng et al., 2023a)). Performance gains compared to Cutie demonstrate the advantages of target modeling of discriminative queries for VOS, especially in long-term benchmarks.
++ ViT, which directly utilizes ViTDet (Li et al., 2022b) to incorporate pre-trained model features at multiple scales. The performance indicates that directly employing ViT to generate multi-scale features is minimally beneficial for VOS tasks.
++ Spatial-semantic, which applies the spatial-semantic blocks to integrate semantic information and multi-scale features. It is clear that the proposed spatial dependency modeling significantly boosts model performance in terms of $\mathcal{J}\&\mathcal{F}$ on all VOS benchmarks. These improvements validate the benefits of the spatial-semantic network, which improves the semantic understanding of targets.
+
+Table 2: Effect of different settings in every component. The ablation study examines the impact of pre-trained weights and the number of queries on training results for the YoutubeVOS and DAVIS datasets. Additionally, it explores the effects of different adapters on the MEGA dataset.
+
+
Dataset
+Method
MOSE-val
DAVIS 2017 test
LVOS test
YouTube-VOS 2018 val
YouTube-VOS 2019 val
J&F
J
F
J&F
J
F
J&F
J
F
G
Jn
Fn
Ju
Fu
G
Jn
Fn
Ju
Fu
Effect of different pre-trained weights.
ResNet (He et al., 2016) (Baseline)
64.2
60.3
68.1
85.2
81.8
88.5
57.4
53.3
61.5
86.3
86.2
91.0
79.9
88.3
86.5
86.2
90.7
80.6
88.8
MAE (He et al., 2022)
67.0
62.6
71.3
85.3
81.3
89.3
64.4
60.2
68.7
86.4
85.6
90.2
80.6
89.0
86.4
85.4
89.7
81.2
89.3
DINov2 (Oquab et al., 2023)
67.5
63.5
71.6
86.1
82.7
89.6
63.2
58.7
67.6
87.3
86.6
91.7
80.9
89.9
86.7
86.2
91.0
80.6
89.1
ViT-small (Yang et al., 2024)
64.3
60.0
68.5
85.3
81.5
89.1
55.9
51.6
60.1
86.0
85.3
90.4
79.9
88.5
86.3
85.3
90.1
80.6
89.1
Depth_Anything
68.5
64.5
72.6
86.7
82.7
90.8
66.5
62.1
70.8
87.4
87.0
92.0
80.9
89.7
87.5
86.8
91.8
81.3
89.9
Effect of different query numbers.
32-query
68.3
64.3
72.3
85.8
81.7
89.9
64.8
60.4
69.6
86.8
86.9
92.0
79.8
88.6
86.9
86.8
91.6
80.3
88.8
16-query
67.7
63.6
71.8
86.6
82.7
90.2
66.4
62.0
70.9
86.9
86.7
91.8
80.1
88.9
87.0
86.6
91.6
80.6
89.3
8-query
68.5
64.5
72.6
86.7
82.7
90.8
66.5
62.1
70.8
87.4
87.0
92.0
80.9
89.7
87.5
86.8
91.8
81.3
89.9
Effect off different adapters.
Ours (Adapter (Chen et al., 2022))
72.2
67.8
76.4
87.2
84.1
90.4
71.1
66.7
75.6
87.1
86.1
91.0
81.6
89.8
87.1
85.9
90.9
81.4
90.1
Ours (CoMer (Xia et al., 2024))
73.2
69.1
77.3
87.0
83.2
90.8
73.4
68.8
77.9
87.3
87.1
92.2
80.7
89.4
87.4
87.0
91.7
81.3
89.6
Ours (Spatial-Semantic)
74.0
69.8
78.3
87.8
84.0
91.7
73.0
68.3
77.8
88.0
87.0
91.8
82.5
90.7
88.1
87.4
92.5
81.9
90.7
+
+Effect of different pre-trained weights. Table 2 also compares the performance of using different training parameters. We conduct experiments using three different pre-training parameters, and the results indicate that better pre-training parameters lead to more significant improvements in the model, especially those from Depth Anything (Yang et al., 2024) (8-query in Table 2). The Depth Anything model implicitly contains depth information about the scene, which contributes to its stronger representation capability, consistent with the findings of the Depth Anything paper.
+
+Effect of different query numbers. Table 2 shows that performance drops as the number of queries increases. This is because more queries introduce additional background noise, given the fewer targets in most VOS benchmarks, except MOSE (Ding et al., 2023).
+
+Effect of adapters. Table 2 presents a performance comparison between different adapters and our method. We replace the fusion module with various adapters and fully fine-tune them on the MEGA dataset, as indicated in related research that full fine-tuning achieves optimal performance (Chen et al., 2022; Xia et al., 2024). The experimental results demonstrate that our method is efficient in training and outperforms the other two methods in accuracy.
+
+# 4.3 COMPARISONS WITH STATE-OF-THE-ART METHODS
+
+DAVIS 2017 (Pont-Tuset et al., 2017) is a benchmark that offers densely annotated, high-quality, full-resolution videos with multiple objects of interest. Table 3 shows that our method achieves favorable performance $(86.7\%)$ against state-of-the-art methods when trained on YoutubeVOS and DAVIS, without any pre-training. The gains are primarily due to the injection of semantic information, which helps handle sequences with object occlusion. When using the MEGA dataset as the training data, our method performs best on the DAVIS test set $(87.8\%)$ .
+
+YouTubeVOS 2018 (Xu et al., 2018) contains 347 videos of 65 categories for training and videos for validation. For validation, there are 26 categories that the model has not seen in its training, allowing us to evaluate its generalization ability for 350 class-agnostic targets. Table 3 illustrates that our method performs better on seen and unseen categories than existing state-of-the-art models. The performance gain can be attributed to spatial-semantic feature representation and representative target correlation.
+
+YouTubeVOS 2019 is an extension of YouTube-VOS 2018, featuring a larger number of masked targets and more challenging sequences in its validation set. In Table 3, our approach exhibits competitive performance compared to the leading state-of-the-art methods. Remarkably, our model achieves the highest performance (87.5%) without relying on pre-training. This underscores the effectiveness of our method in leveraging inherent semantic-spatial information and discriminative query representation.
+
+MOSE (Ding et al., 2023) contains 2149 video clips and 5200 objects from 36 categories under more complex scenes. Compared to existing state-of-the-art methods, our model gains great improvement in this dataset. The benefits stem primarily from the discriminative query that captures more
+
+Table 3: Quantitative comparisons on the MOSE, LVOS, DAVIS 2017, YouTube-VOS 2018 & 2019 dataset. The best two results are shown in red and blue color. In the table, * denotes that the models are pre-trained using the static image datasets (Shi et al., 2016; Li et al., 2020; Zeng et al., 2019; Cheng et al., 2020; Wang et al., 2017). In the Appendix, we compare methods with external training data (e.g., large BL30K dataset for pre-training) and improved test size (600p/720p).
+
+
Dataset
MOSE-val
LVOS test
DAVIS 2017 test
YouTube-VOS 2018 val
YouTube-VOS 2019 val
FPS
Method
J&F
J
F
J&F
J
F
J&F
J
F
G
Js
Fs
Ju
Fu
G
Js
Fs
Ju
Fu
Trained only on the YouTube VOS, and DAVIS datasets
MiVOS (Cheng et al., 2021b)*
-
-
-
-
-
-
78.6
74.9
82.2
82.6
81.1
85.6
77.7
86.2
82.4
80.6
84.7
78.1
86.4
-
STCN (Cheng et al., 2021a)*
52.5
48.5
56.6
45.8
41.1
50.5
77.8
74.3
81.3
84.3
83.2
87.9
79.0
87.3
84.2
82.6
87.0
79.4
87.7
13.2
Swin-B-AOT-L (Yang et al., 2021)*
59.4
53.6
65.2
54.4
49.3
59.4
81.2
77.3
85.1
85.1
90.1
78.4
86.9
85.3
84.6
89.5
79.3
87.7
12.1
DeAOT-R50 (Yang & Yang, 2022)
59.0
54.6
63.4
-
-
-
80.7
76.9
84.5
86.0
84.9
89.9
80.4
88.7
85.6
84.2
89.2
80.2
88.8
11.7
XMem (Cheng & Schwing, 2022)
-
-
-
-
-
-
79.8
76.3
83.4
84.3
83.9
88.8
77.7
86.7
84.2
83.8
88.3
78.1
86.7
XMem (Cheng & Schwing, 2022)*
53.3
62.0
57.6
50.0
45.5
54.4
81.0
77.4
84.5
85.7
84.6
89.3
80.2
88.7
85.5
84.3
88.6
80.3
88.6
22.6
ISVOS (Wang et al., 2023)*
-
-
-
-
-
-
82.8
79.3
86.2
86.3
85.5
90.2
80.5
88.8
86.1
85.2
89.7
80.7
88.9
5.8
SimVOS-B (Wu et al., 2023)
61.6
57.9
65.3
-
-
-
82.3
78.7
85.8
-
-
-
-
-
84.2
83.1
87.5
79.1
87.2
3.3
Cutie (Cheng et al., 2023a)*
64.0
60.0
67.9
56.2
51.8
60.5
84.2
80.6
87.7
86.1
85.5
90.0
80.6
88.3
86.1
85.8
90.5
80.0
88.0
36.4
JointFormer (Zhang et al., 2023)
-
-
-
-
-
-
87.0
83.4
90.6
86.0
86.0
91.0
79.5
87.5
86.2
85.7
90.5
80.4
88.2
3.0
JointFormer (Zhang et al., 2023)*
-
-
-
-
-
-
87.6
84.2
91.1
87.0
86.2
91.0
81.4
89.3
87.0
86.1
90.6
82.0
89.5
3.0
S3 (Ours)
68.5
64.5
72.6
66.5
62.1
70.8
86.7
82.7
90.8
87.4
87.0
92.0
80.9
89.7
87.5
86.8
91.8
81.3
89.9
13.1
Trained on the MEGA dataset
DEVA (Cheng et al., 2023b)
66.5
62.3
70.8
54.0
49.0
59.0
83.2
79.6
86.8
86.2
85.4
89.9
80.5
89.1
85.8
84.8
89.2
80.3
88.8
25.3
Cutie (Cheng et al., 2023a)*
69.9
65.8
74.1
66.7
62.4
71.0
86.1
82.4
89.9
87.0
86.4
91.1
81.4
89.2
87.0
86.0
90.5
82.0
89.6
36.4
S3 (Ours)
74.0
69.8
78.3
73.0
68.3
77.8
87.8
84.0
91.7
88.0
87.0
91.8
82.5
90.7
88.1
87.4
92.5
81.9
90.7
13.1
+
+Table 4: Comparison with SAM 2 (Ravi et al., 2024). It shows that our method performs favorably against SAM 2.
+
+
Dataset
LVOSV2-val
LVOS-val
DAVIS17-test
MOSE-val
YouTube-VOS 2019 val
Method
J&F
J
F
J&F
J
F
J&F
J
F
G
J
F
G
J
F
SAM 2 (Hiera-B+)
75.8
72.0
79.6
74.9
70.2
79.6
88.3
85.0
91.5
75.8
71.8
79.9
88.4
85.2
91.6
SAM 2 (Hiera-L)
78.1
74.3
81.9
76.1
71.6
80.6
89.0
85.8
92.2
77.2
73.3
81.2
89.1
86.0
92.2
S3 (ViTb+)
(+7.9)
83.7
80.1
(+1.1)
76.0
71.2
80.8
(+1.5)
89.8
86.4
93.1
(+0.1)
75.9
71.8
79.8
(+0.3)
88.7
85.5
91.9
+
+representative target information. Additionally, the feature extraction module provides matching with more semantic and spatially informative features.
+
+LVOS (Hong et al., 2023) is a new long-term dataset to validate the robustness of VOS methods when faced with these challenges. It contains videos 20 times longer than existing VOS datasets, typically featuring a single target per video. In this benchmark, our method achieves a performance gain $(66.5\%)$ compared to $56.2\%$ . This improvement is attributed to the quality of memorized features and queries, which enhances the robustness of our approach in long-term video scenarios. Our method demonstrates enhanced stability and effectiveness in long-duration contexts by incorporating more discriminative queries that capture crucial target information into the object memory.
+
+Comparison with Segment Anything 2 (Ravi et al., 2024). Table 4 shows the detailed comparison results between our method and SAM2. Specifically, SAM2 used a large-scale mixed training dataset (comprising 1. $3\%$ DAVIS, approximately $9.4\%$ MOSE, approximately $9.2\%$ YouTubeVOS, approximately $15.5\%$ SA-1B, approximately $49.5\%$ SA-V, and approximately 15. $1\%$ Internal, approximately $120.6\mathbf{k}$ videos). In contrast, our model is trained solely on VOS datasets (DAVIS, MOSE, YouTubeVOS, OVIS, and BURST, about $11.4\mathbf{K}$ videos). To ensure a relatively fair comparison, we use the same model size (ViTb) and the same input image size (1024p). In all benchmarks evaluated, our method outperforms SAM2 in all metrics, especially on the challenging LVOSV2 val dataset $(+7.9\%)$ . Even when SAM2 (Ravi et al., 2024) uses Hiera-L as a feature extractor, our model demonstrates comparable results, especially on LVOS V2 (Hong et al., 2023) val dataset ( $83.7\%$ vs $78.1\%$ ).
+
+Visualized Results. We visualize some challenging sequences, including scenarios involving part-to-whole-changing and faint objects and those where targets closely resemble the background. In Figure 4(a), our approach shows favorable segmentation performance against the state-of-the-art methods. For example, our model accurately segments targets and provides detailed results in a video that includes gorillas, necks, and a riding man. This can be attributed to our proposed discriminative query propagation, which enables our model to capture more detailed target information by focusing on the most representative features, thereby facilitating precise segmentation in these challenging scenarios. Additionally, incorporating semantic features in our model ensures the model understands
+
+
+(b) Qualitative comparisons with target appearance variance.
+Figure 4: Visualized results on challenging scenarios. The proposed method performs well on these challenging sequences, while other methods suffer from semantic understanding and thus cannot segment the whole objects. (b) Our method handles the challenging sequence with fast-motion objects better than Cutie (Cheng et al., 2023a).
+
+the semantic prior of the interested targets, such as in the case of the sequence of man riding from YoutubeVOS 2019.
+
+Figure 4(b) shows the segmentation and tracking performance on long-term sequences with fast motion and dramatic appearance variations. In this sequence, two similar dogs continuously change their position and posture, making it challenging for the model to identify and track them accurately. Our VOS method performs accurately in tracking and segmenting targets, whereas Cutie fails to identify and segment the targets in this scenario. Good performance in scenarios like this is due to the semantic-aware feature and discriminative query representation learned by our model. More visualization and videos can be found in the Supplementary Material.
+
+# 4.4 LIMITATIONS
+
+Our method enhances target representation by introducing spatial-semantic features and discriminative query propagation, significantly improving numerous challenging scenarios. However, in scenes with object parts as the target (some sequences in the VOT challenge, shown in the appendix), the proposed model finds it difficult to represent a part of the target and often extends the predicted mask to the whole target. For example, when the target is the head of a person, our model may gradually shift to segmenting the entire body. This tendency arises because our method tends to interpret the target as the entire object seen during the training phase. A potential direction to improve this issue could be to let the model learn more part-aware semantic features, which also needs a new benchmark. Moreover, the improvement of the inference speed will also be addressed in our future work.
+
+# 5 CONCLUSION
+
+In this paper, we propose a spatial-semantic network to learn comprehensive representations to improve the robustness of video object segmentation in handling objects with complex structures or separate parts. In addition, we develop a discriminative query propagation module that selects representative features from target objects for query update, enabling more reliable query propagation in long-term videos. Our approach achieves favorable performance compared with state-of-the-art methods on numerous datasets. Both quantitative and qualitative results demonstrate the effectiveness of the proposed method in tracking and segmenting video objects in complex and long-term scenes.
+
+Acknowledgments This work is supported by the Guangdong Basic and Applied Basic Research Foundation (Grant No. 2024A1515011292), the National Natural Science Foundation of China (Grant No.62476148, 62172126), and the Shenzhen Research Council (No. JCYJ20210324120202006).
+
+# REFERENCES
+
+Ali Athar, Jonathon Luiten, Paul Voigtlaender, Tarasha Khurana, Achal Dave, Bastian Leibe, and Deva Ramanan. Burst: A benchmark for unifying object recognition, segmentation and tracking in video. In WACV, pp. 1674-1683, 2023. 7
+L. Bao, B. Wu, and W. Liu. Cnn in mrf: Video object segmentation via inference in a cnn-based higher-order spatiotemporal mrf. In CVPR, 2018. 1
+Goutam Bhat, Felix Jaremo Lawin, Martin Danelljan, Andreas Robinson, Michael Felsberg, Luc Van Gool, and Radu Timofte. Learning what to learn for video object segmentation. In ECCV, pp. 777-794, 2020. 3
+Sergi Caelles, Kevis-Kokitsi Maninis, Jordi Pont-Tuset, Laura Leal-Taixe, Daniel Cremers, and Luc Van Gool. One-shot video object segmentation. In CVPR, pp. 221-230, 2017. 3
+Nicolas Carion, Francisco Massa, Gabriel Synnaeve, Nicolas Usunier, Alexander Kirillov, and Sergey Zagoruyko. End-to-end object detection with transformers. In European conference on computer vision, pp. 213-229. Springer, 2020. 3, 5
+Niccolò Cavagnero, Gabriele Rosi, Claudia Ruttano, Francesca Pistilli, Marco Ciccone, Giuseppe Avert, and Fabio Cermelli. Pem: Prototype-based efficient maskformer for image segmentation. arXiv preprint arXiv:2402.19422, 2024. 3
+Y. Chen, J. Pont-Tuset, A. Montes, and L. Van Gool. Blazingly fast video object segmentation with pixel-wise metric learning. In CVPR, pp. 1189-1198, 2018. 3
+Zhe Chen, Yuchen Duan, Wenhai Wang, Junjun He, Tong Lu, Jifeng Dai, and Yu Qiao. Vision transformer adapter for dense predictions. In ICLR, 2022. 3, 8
+Bowen Cheng, Ishan Misra, Alexander G Schwing, Alexander Kirillov, and Rohit Girdhar. Masked-attention mask transformer for universal image segmentation. In CVPR, pp. 1290–1299, 2022. 3
+H. K. Cheng and A. G. Schwing. Xmem: Long-term video object segmentation with an atkinson-shiffrin memory model. In ECCV, 2022. 1, 2, 3, 7, 9, 14, 15, 17
+H. K. Cheng, Y. W. Tai, and C. K. Tang. Rethinking spacetime networks with improved memory coverage for efficient video object segmentation. In NeurIPS, pp. 11781-11794, 2021a. 1, 9, 14, 17
+H.K. Cheng, Y.W. Tau, and C.K. Tang. Modular interactive video object segmentation: Interaction-to-mask, propagation and difference-aware fusion. In CVPR, 2021b. 9, 15
+Ho Kei Cheng, Jihoon Chung, Yu-Wing Tai, and Chi-Keung Tang. Cascadep: Toward class-agnostic and very high-resolution segmentation via global and local refinement. In CVPR, pp. 8890-8899, 2020. 9
+Ho Kei Cheng, Seoung Wug Oh, Brian Price, Joon-Young Lee, and Alexander Schwing. Putting the object back into video object segmentation. arXiv preprint arXiv:2310.12982, 2023a. 1, 2, 3, 6, 7, 9, 10, 14, 15, 17
+Ho Kei Cheng, Seoung Wug Oh, Brian Price, Alexander Schwing, and Joon-Young Lee. Tracking anything with decoupled video segmentation. In ICCV, pp. 1316–1326, 2023b. 9
+J. Cheng, Y.H. Tsai, W.C. Hung, S. Wang, and M.H. Yang. Fast and accurate online video object segmentation via tracking parts. In CVPR, 2018. 3
+
+Henghui Ding, Chang Liu, Shuting He, Xudong Jiang, Philip HS Torr, and Song Bai. Mose: A new dataset for video object segmentation in complex scenes. In ICCV, pp. 20224-20234, 2023. 2, 7, 8, 15, 16
+A. Dosovitskiy, L. Beyer, and A. Kolesnikov. An image is worth 16x16 words: Transformers for image recognition at scale. In ICLR, 2021. 3, 6
+B. Duke, A. Ahmed, C. Wolf, and G. W. Taylor. Sstvos: Sparse spatiotemporal transformers for video object segmentation. In CVPR, pp. 5912-5921, 2021. 3
+Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, pp. 770-778, 2016. 5, 8
+Kaiming He, Xinlei Chen, Saining Xie, Yanghao Li, Piotr Dólár, and Ross Girshick. Masked autoencoders are scalable vision learners. In CVPR, pp. 16000-16009, 2022. 8
+Lingyi Hong, Wenchao Chen, Zhongying Liu, Wei Zhang, Pinxue Guo, Zhaoyu Chen, and Wenqiang Zhang. Lvos: A benchmark for long-term video object segmentation. In ICCV, 2023. 2, 9
+Yuan-Ting Hu, Jia-Bin Huang, and Alexander Schwing. Maskrnn: Instance level video object segmentation. In NeurIPS, 2017. 3
+Yuan-Ting Hu, Jia-Bin Huang, and Alexander G Schwing. Videomatch: Matching based video object segmentation. In ECCV, 2018. 3
+Diederik P. Kingma and Jimmy Lei Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. 7
+Matej Kristan, Jiří Matas, Martin Danelljan, Michael Felsberg, Hyung Jin Chang, Luka Čehovin Zajc, Alan Lukežić, Ondrej Drbohlav, Zhongqun Zhang, Khanh-Tung Tran, et al. The first visual object tracking segmentation votes2023 challenge results. In ICCV, pp. 1796-1818, 2023. 15, 20
+Mingxing Li, Li Hu, Zhiwei Xiong, Bang Zhang, Pan Pan, and Dong Liu. Recurrent dynamic embedding for video object segmentation. In CVPR, 2022a. 17
+Xiang Li, Tianhan Wei, Yau Pun Chen, Yu-Wing Tai, and Chi-Keung Tang. Fss-1000: A 1000-class dataset for few-shot segmentation. In CVPR, June 2020. 5. 9
+Yanghao Li, Hanzi Mao, Ross Girshick, and Kaiming He. Exploring plain vision transformer backbones for object detection. In ECCV, 2022b. 7
+J. Luiten, P. Voigtlaender, and B. Leibe. Premvos: Proposal-generation, refinement and merging for video object segmentation. In CVPR, pp. 565-580, 2018. 3
+Y. Mao, N. Wang, W. Zhao, and H. Li. Joint inductive and transductive learning for video object segmentation. In ICCV, 2021. 3, 14
+Seoung Wug Oh, Joon-Young Lee, Ning Xu, and Seon Joo Kim. Video object segmentation using space-time memory networks. In ICCV, pp. 9226-9235, 2019. 1, 3
+Maxime Oquab, Timothée Darcet, Théo Moutakanni, Huy Vo, Marc Szafraniec, Vasil Khalidov, Pierre Fernandez, Daniel Haziza, Francisco Massa, Alaaeldin El-Nouby, et al. Dinov2: Learning robust visual features without supervision. arXiv preprint arXiv:2304.07193, 2023. 8
+Kwanyong Park, Sanghyun Woo, Seoung Wug Oh, In So Kweon, and Joon-Young Lee. Per-clip video object segmentation. In CVPR, 2022. 1
+J. Pont-Tuset, F. Perazzi, S. Caelles, P. Arbeláez, A. Sorkine-Hornung, and L. Van Gool. The 2017 davis challenge on video object segmentation. arXiv preprint arXiv:1704.00675, 2017. 1, 2, 7, 8
+Jiyang Qi, Yan Gao, Yao Hu, Xinggang Wang, Xiaoyu Liu, Xiang Bai, Serge Belongie, Alan Yuille, Philip HS Torr, and Song Bai. Occluded video instance segmentation: A benchmark. IJCV, 130 (8):2022-2039, 2022. 7
+
+Nikhila Ravi, Valentin Gabeur, Yuan-Ting Hu, Ronghang Hu, Chaitanya Ryali, Tengyu Ma, Haitham Khedr, Roman Radle, Chloe Rolland, Laura Gustafson, et al. Sam 2: Segment anything in images and videos. arXiv preprint arXiv:2408.00714, 2024. 9
+Jianping Shi, Qiong Yan, Li Xu, and Jiaya Jia. Hierarchical image saliency detection on extended cssd. IEEE TPAMI, 38(4):717-729, 2016. 5. 9
+Yi-Hsuan Tsai, Ming-Hsuan Yang, and Michael J Black. Video segmentation via object flow. In CVPR, pp. 3899-3908, 2016. 3
+P. Voigtlaender and B. Leibe. Online adaptation of convolutional neural networks for video object segmentation. In BMVC, 2017. 3
+P. Voigtlaender, Y. Chai, F. Schroff, H. Adam, and L.C. Chen. Feelvos: Fast end-to-end embedding learning for video object segmentation. In CVPR, pp. 9481-9490, 2019. 1
+Junke Wang, Dongdong Chen, Zuxuan Wu, Chong Luo, Chuanxin Tang, Xiyang Dai, Yucheng Zhao, Yujia Xie, Lu Yuan, and Yu-Gang Jiang. Look before you match: Instance understanding matters in video object segmentation. In CVPR, 2023. 1, 2, 3, 9, 15
+Lijun Wang, Huchuan Lu, Yifan Wang, Mengyang Feng, Dong Wang, Baocai Yin, and Xiang Ruan. Learning to detect salient objects with image-level supervision. In CVPR, 2017. 5. 9
+Qiangqiang Wu, Tianyu Yang, Wei Wu, and Antoni Chan. Scalable video object segmentation with simplified framework. In ICCV, 2023. 1, 3, 9, 14
+Chunlong Xia, Xinliang Wang, Feng Lv, Xin Hao, and Yifeng Shi. Vit-comer: Vision transformer with convolutional multi-scale feature interaction for dense predictions. arXiv preprint arXiv:2403.07392, 2024. 3, 8
+Huaxin Xiao, Jiashi Feng, Guosheng Lin, Yu Liu, and Maojun Zhang. Monet: Deep motion exploitation for video object segmentation. In CVPR, pp. 1140-1148, 2018. 3
+Ning Xu, Linjie Yang, Yuchen Fan, Dingcheng Yue, Yuchen Liang, Jianchao Yang, and Thomas Huang. Youtube-vos: A large-scale video object segmentation benchmark. In ECCV, 2018. 1, 2, 7, 8
+Lihe Yang, Bingyi Kang, Zilong Huang, Xiaogang Xu, Jiashi Feng, and Hengshuang Zhao. Depth anything: Unleashing the power of large-scale unlabeled data. arXiv preprint arXiv:2401.10891, 2024.8
+Zongxin Yang and Yi Yang. Decoupling features in hierarchical propagation for video object segmentation. In NeurIPS, 2022. 3, 9, 14, 17
+Zongxin Yang, Yunchao Wei, and Yi Yang. Collaborative video object segmentation by foreground-background integration. In ECCV, 2020. 3
+Zongxin Yang, Yunchao Wei, and Yi Yang. Associating objects with transformers for video object segmentation. In NeurIPS, 2021. 1, 2, 3, 9, 17
+Yi Zeng, Pingping Zhang, Jianming Zhang, Zhe Lin, and Huchuan Lu. Towards high-resolution salient object detection. In ICCV, 2019. 5. 9
+Jiaming Zhang, Yutao Cui, Gangshan Wu, and Limin Wang. Joint modeling of feature, correspondence, and a compressed memory for video object segmentation. arXiv preprint arXiv:2308.13505, 2023. 9, 15
+
+# A APPENDIX
+
+The appendix is organized as follows:
+
+1. We provide a detailed implementation of training and inference.
+2. We provide more experiments with different training settings and test hyperparameters.
+3. More visualization and failure cases are shown.
+
+# A.1 IMPLEMENT DETAILS.
+
+# A.1.1 MULTI-OBJECT PROCESSING
+
+In this section, we provide additional implementation details for completeness. Our training and inference code will be released to ensure reproducibility.
+
+Following the previous work (Cheng & Schwing, 2022; Cheng et al., 2021a), we extend our methods to the multi-object setting. The predicted mask of each frame undergoes channel separation for different targets. The separated masks for each target are then concatenated with the RGB image and the aggregated mask of other targets for feature extraction. The extracted features are fused with RGB features to obtain pixel-level value features, which are then stored in memory. It is important to note that the pixel-level features stored in memory include the key (RGB feature) and the value.
+
+# A.1.2 TRAINING DETAILS
+
+As mentioned in the main paper, we train our network only on video-level datasets, which differs from other methods (Cheng et al., 2023a; Cheng & Schwing, 2022; Yang & Yang, 2022). The backbone weights are initialized from MAE pre-training, similar to the approaches used in SimVOS (Wu et al., 2023) and JointFormer (Mao et al., 2021). We perform spatial-semantic fusion every three ViT layers and five discriminative query transformer blocks for query propagation. We implement our network using PyTorch and train the model on 8 NVIDIA V100s, employing automatic mixed precision (AMP) during training.
+
+Two different training datasets are used for better improvements. The "DAVIS&YTVOS" settings combine the training sets of YouTubeVOS-2019 and DAVIS-2017, with the DAVIS-2017 dataset expanded five times to increase the data ratio. The "MEGA" set contains four different training sets, including DAVIS-2017, YouTubeVOS-2019, MOSE, and BURST datasets, with the DAVIS-2017 dataset expanded five times to increase the data ratio. To sample a training sequence, we randomly select a "seed" frame from all the frames and then randomly choose 7 other frames from the same video. We re-sample if any two consecutive frames have a temporal distance greater than the max-skip. Following the previous work (Cheng & Schwing, 2022; Cheng et al., 2023a), the max-skip is set to [5, 10, 15, 5] after $[0\%, 10\%, 30\%, 80\%]$ of the training iterations, respectively. To avoid sampling frames without targets, we use the data statistics provided by Cutie (Cheng et al., 2023a).
+
+Table 5: Training parameters.
+
+
Config
DAVIS YTVOS
MEGA
optimizer
AdamW
AdamW
base learning rate
5e-5
5e-5
weight decay
0.05
0.05
droppath rate
0.15
0.15
batch size
16
16
num ref frames
3
3
num frames
8
8
max-skip
[5, 10, 15, 5]
[5, 10, 15, 5]
max-skip-itr
[0.1,0.3,0.8,1]
[0.1, 0.3, 0.8, 1]
Iterations
150,000
190,000
learning rate schedule
steplr
steplr
+
+Table 6: Quantitative comparisons with high-resolution input on the MOSE, LVOS, DAVIS 2017, YouTube-VOS 2018 & 2019 dataset. + means improve the input size.
+
+
Dataset
MOSE-val
DAVIS 2017 test
YouTube-VOS 2018 val
YouTube-VOS 2019 val
Method
J&F
J
F
J&F
J
F
G
Js
Fs
Ju
Fu
G
Js
Fs
Ju
Fu
Cutie-base (Cheng et al., 2023a)*
64.0
60.0
67.9
84.2
80.6
87.7
86.1
85.8
90.5
80.0
88.0
86.1
85.5
90.0
80.6
88.3
ISVOS (Wang et al., 2023)*+BL30K (Cheng et al., 2021b)
-
-
-
84.0
80.1
87.8
86.7
86.1
90.8
81.0
89.0
86.3
85.2
89.7
81.0
89.1
JointFormer (Zhang et al., 2023)*+BL30K (Cheng et al., 2021b)
-
-
-
88.1
84.7
91.6
87.6
86.4
91.0
82.2
90.7
87.4
86.5
90.9
82.0
90.3
Ours
68.5
64.5
72.6
87.1
83.1
91.1
87.4
87.0
92.0
80.9
89.7
87.5
86.8
91.8
81.3
89.9
Cutie-base (Cheng et al., 2023a)*+
66.2
62.3
70.1
85.9
82.6
89.2
-
-
-
-
-
86.9
86.2
90.7
81.6
89.2
Ours+
70.5
66.5
74.6
87.9
84.6
91.3
87.6
86.9
91.7
81.5
90.1
87.8
86.8
91.6
82.2
90.8
Cutie-base* (Cheng et al., 2023a) w/ MEGA
69.9
65.8
74.1
86.1
82.4
89.9
87.0
86.4
91.1
81.4
89.2
87.0
86.0
90.5
82.0
89.6
Ours w/MEGA
73.2
68.8
77.5
88.2
84.3
92.1
88.1
87.4
92.5
81.9
90.7
88.0
88.0
91.8
82.5
90.8
Cutie-base (Cheng et al., 2023a)*+ w/ MEGA
71.7
67.6
75.8
88.1
84.7
91.4
-
-
-
-
-
87.5
86.3
90.6
82.7
90.5
Ours+ w/MEGA
75.1
71.0
79.2
89.1
85.8
92.4
88.5
87.6
92.6
82.7
91.3
88.5
87.3
92.0
83.1
91.4
+
+We conduct data augmentation with methods of random horizontal mirroring, random affine transformations, and cut-and-paste. The training samples are also resized by crop (480 x 480). Then, random color jittering and random grayscaleing are performed in the training samples. The same augmentation is performed in the same video for stability. To ensure the images can be input into the patch embedding of ViT, we apply padding to both the images and masks so that their dimensions are multiples of 32.
+
+We initialize the model with the first frame and ground truth in the training phase. When the number of past frames is three or fewer, we use all of them as memory frames. If there are more than three past frames, we randomly sample three of them to be the memory frames. We compute the loss at all frames except the first one and perform back-propagation through time.
+
+# A.1.3 INFERENCE DETAILS
+
+During the inference phase, the model memorizes the feature every 5th frame like (Cheng & Schwing, 2022; Cheng et al., 2023a). The pixel-level memory always stores the first frame and its mask. The top-K filter is used to augment memory reading in pixel memory. We use the streaming average for object-level memory to accumulate the discriminative query representation like the operation in (Cheng et al., 2023a).
+
+# A.2 ADDITIONAL QUANTITATIVE RESULTS
+
+In this section, we provide additional ablation studies and SOTA comparisons with different settings.
+
+Table 6 shows detailed results about methods with further pre-training (e.g. JointFormer (Zhang et al., 2023) and ISVOS (Wang et al., 2023)) and improved test size (Cutie (Cheng et al., 2023a)) We note that our method achieves comparable results against SOTA methods (Cutie (Cheng et al., 2023a) and JointFormer (Zhang et al., 2023)) without any pre-training. When trained with MEGA datasets or improved test image size, our method achieves state-of-the-art results in all the benchmarks.
+
+In the main paper, we provide ablation studies for different components. To provide a broader comparison, we conduct tests using various combinations of training data and testing settings. The experimental results in Table 7 detail the impact of different components of our model on the performance, facilitating a better understanding of the effectiveness of our model.
+
+To compare with more methods on MOSE, we follow the training strategy from MOSE (Ding et al., 2023), and replace the YouTubeVOS with MOSE in the training process. Table 8 shows the results of the variants of our method. All the variants achieve great improvement in terms of $\mathcal{J}\&\mathcal{F}$ , which further validates the effectiveness of the proposed spatial-semantic feature learning and discriminative query representation.
+
+Table 9 shows the results of our method on the more challenging VOTS2023 (Kristan et al., 2023) benchmark, which indicates that our method outperforms the winner (DMAOT) of last year on most metrics. Our method achieves the highest robustness thanks to our representation of target saliency information and the modeling of target semantic-spatial information.
+
+
+Qualitative comparisons from various sequences.
+
+
+Figure 5: Additional qualitative comparison against state-of-the-art methods including XMem, Swin-DeAOT, and Cutie. All the sequences are selected from YouTubeVOS 2019 and DAVIS 2017 datasets.
+Qualitative comparisons from various sequences with appearance variance.
+Figure 6: Additional qualitative comparison on sequence with giant appearance variance. All the sequences are picked from MOSE (Ding et al., 2023) dataset.
+
+Table 7: Model detailed ablation study.
+
+
Dataset
MOSE-val
DAVIS 2017 test
LVOS test
YouTube-VOS 2019 val
Method
J&F
J
F
J&F
J
F
G
J
F
G
Js
Fs
Ju
Fu
Trained on the YouTubeVOS, and DAVIS datasets
XMem (Cheng & Schwing, 2022) (Baseline)
53.3
62.0
57.6
81.0
77.4
84.5
50.0
45.5
54.4
85.5
84.3
88.6
80.3
88.6
Cutie (Cheng et al., 2023a)
64.0
60.0
67.9
84.2
80.6
87.7
56.2
51.8
60.5
86.1
85.8
90.5
80.0
88.0
+Discriminative Query
64.2
60.3
68.1
85.2
81.8
88.5
57.4
53.3
61.5
86.5
86.2
90.7
80.6
88.8
+ViT
64.2
60.2
68.3
85.6
82.0
89.2
58.3
53.7
62.8
86.7
86.4
90.3
81.0
88.7
+Spatial
68.2
64.0
72.4
86.2
82.4
90.1
67.4
62.9
71.9
87.3
86.4
91.3
81.5
90.3
+Semantic (Full)
68.5
64.5
72.6
86.7
82.7
90.8
66.5
62.1
70.8
87.5
86.8
91.8
81.3
89.9
Improved test size (600/720)
Cutie (Cheng et al., 2023a)
66.2
62.3
70.1
85.9
82.6
89.2
56.2
51.8
60.5
86.9
86.2
90.7
81.6
89.2
+Discriminative Query
66.4
62.4
70.1
87.9
84.6
91.2
57.4
53.3
61.5
87.1
86.3
90.6
82.0
89.5
+Spatial
69.9
67.5
74.1
87.0
83.7
90.2
67.4
62.9
71.9
87.5
86.8
91.6
81.6
90.2
+Semantic ( full )
70.5
66.5
74.6
87.8
84.6
91.3
66.5
62.1
70.8
87.7
86.8
91.6
82.2
90.8
Trained on the MEGA datasets
Cutie (Cheng et al., 2023a)
69.9
65.8
74.1
86.1
82.4
89.9
66.7
62.4
71.0
87.0
86.0
90.5
82.0
90.7
+Discriminative query
70.6
66.5
74.6
86.6
82.7
90.5
66.5
62.1
70.8
87.5
86.0
90.6
82.8
90.6
+Spatial
73.5
69.1
77.7
87.6
83.8
91.5
68.8
64.4
73.1
87.9
86.9
91.8
82.3
90.4
+Semantic ( Full )
74.0
69.8
78.3
87.8
84.0
91.7
73.0
68.3
77.8
88.1
87.4
92.5
81.9
90.7
Improved test size (600/720)
Cutie (Cheng et al., 2023a)
71.7
67.6
75.8
88.1
84.7
91.4
66.7
62.4
71.0
87.5
86.3
90.6
82.7
90.5
+Discriminative query
71.6
67.7
75.5
88.1
84.6
91.4
66.5
62.1
70.8
88.0
86.2
90.6
83.6
91.5
+Spatial
75.3
71.3
79.2
89.0
85.8
92.3
68.8
64.4
73.1
88.3
87.0
91.9
83.0
91.1
+Semantic(Full)
75.1
71.0
79.2
89.1
85.8
92.4
73.0
68.3
77.8
88.5
87.3
92.0
83.1
91.4
+
+Table 8: Results only trained on MOSE datasets.
+
+
Dataset
MOSE-val
Method
J&F
J
F
RDE (Li et al., 2022a)
48.8
44.6
52.9
STCN (Cheng et al., 2021a)
50.8
46.6
55.0
AOT (Yang et al., 2021)
57.2
53.1
61.3
XMem (Cheng & Schwing, 2022)
57.6
53.3
62.0
DeAOT (Yang & Yang, 2022)
59.4
55.1
63.8
ResNet+Discriminative query
69.9
65.8
73.9
+Spatial
72.7
68.3
77.0
+Semantic
72.9
68.4
77.3
Improved test size (720)
ResNet+Discriminative query
71.6
67.7
75.5
+Spatial
74.0
69.9
78.1
+Semantic
74.5
70.2
78.5
+
+Table 9: Results on VOTS2023 Challenge.
+
+
Dataset
VOTS2023
Method
Q↑
A↑
R↑
NER↓
DRE↓
ADQ↓
Dynamic_DEAOT
0.59
0.69
0.84
0.07
0.1
0.57
M-VOSTrack
0.61
0.75
0.76
0.16
0.08
0.71
HQTrack
0.62
0.75
0.77
0.16
0.08
0.70
DMAOT
0.64
0.75
0.80
0.14
0.07
0.73
Ours
0.67 (+0.3)
0.74
0.86 (+0.6)
0.09 (+0.5)
0.05 (+0.02)
0.75 (+0.02)
+
+# A.3 ADDITIONAL QUALITATIVE COMPARISON
+
+We present a more qualitative comparison of most benchmarks in Figure 5 and Figure 6.
+
+In Figure 5, we categorize the scenarios into three main types: overall-to-part segmentation (man on bike and deer), small object segmentation (small monkey), blurry object segmentation (cat toy), and segmentation under varying lighting conditions (man-bike and golf). In these three cases, our method demonstrates precise segmentation compared to other methods. The semantic embedding allows our model to consider semantic information when parsing objects, spatial dependence modeling enhances the understanding of spatial positions and details of the object, and the discriminative query
+
+
+(a) Visualization of the feature map output from different backbones
+
+
+(b) Visualization of the feature map after proposed semantic and spatial layers
+Figure 7: Visualizations of feature maps from different architectural components.
+
+accurately represents the target. The integration of these three components enables the model to achieve excellent segmentation and tracking performance in complex and challenging scenarios.
+
+In Figure 6, we select more sequence results on MOSE, primarily divided into two categories: positional changes of similar targets and rapid movement of targets. In both cases, our method outperforms Cutie. This is attributed to our proposed spatial-semantic feature representation and discriminative query expression, which enable the model to distinguish appearance-similar targets and consistently track the target.
+
+Figure 9 compares sequences that require a semantic understanding of the target. Without the semantic embedding module, the method suffers from segmenting parts of the target. The addition of the semantic embedding module enables the model to fully understand the semantic information of the target, allowing for precise segmentation and tracking in these scenarios.
+
+Visualization of feature maps. Figure 7(a) shows that the proposed Spatial-Semantic block assigns higher activation weights to complex target objects compared to the CNN or ViT model, which indicates that the proposed model makes target representations more distinguishable than ViT and ResNet. Moreover, we show how the feature changes during the processing of the proposed model by visualizing the feature maps at different processing steps in 7(b). After passing through the semantic embedding module, the feature maps (semantic embedding) demonstrate that the module makes the contours of objects clearer, indicating richer semantic information. After passing through the spatial dependence module, the feature maps (spatial modeling) show that the details of the targets are more pronounced. The changes in the feature maps confirm that the proposed two modules significantly enhance the semantic and spatial information of the targets.
+
+We also visualize the similarity between the learned discriminative queries and the feature map using heat maps in Figure 8. The visualization shows that the learned discriminative queries distinctly express the target areas. We also mark the positions of the discriminative queries, which represent the locations of the pixels with the highest similarity.
+
+Failure cases are shown in Figure 10, in which our method tends to segment the whole instance rather than the part of it. The challenging sequences require the model to segment and track the head of the man, the flamingo, and the kangaroo. Our model interprets semantics as the entire instance during tracking and segmentation, such as a person, bird, or kangaroo, resulting in segmentation outcomes gradually favoring the whole instance.
+
+
+Figure 8: Visualization of the similarity map between query and features. The map indicates the discrimination of the target representation. The discriminative queries of different targets are plotted in the similarity map, which can be found in the black box.
+
+
+Figure 9: Qualitative comparison between with and without semantic embedding block. All the sequences are picked from the YouTubeVOS 2019 dataset.
+
+
+Time line
+Figure 10: Failure cases. All the sequences are picked from VOT Challenge (Kristan et al., 2023).
\ No newline at end of file
diff --git a/ICLR/2025/Learning Spatial-Semantic Features for Robust Video Object Segmentation/images.zip b/ICLR/2025/Learning Spatial-Semantic Features for Robust Video Object Segmentation/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..77a392575f23e2a27f1690847c94a4c98f9f6ea7
--- /dev/null
+++ b/ICLR/2025/Learning Spatial-Semantic Features for Robust Video Object Segmentation/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:051ed48c2e9a6b95e9c53c9a95263697407e06f20705ac80943db90b3f1f2fc1
+size 1654170
diff --git a/ICLR/2025/Learning Spatial-Semantic Features for Robust Video Object Segmentation/layout.json b/ICLR/2025/Learning Spatial-Semantic Features for Robust Video Object Segmentation/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..50bb5b162a13cbd870d00a02f4346b803e402da7
--- /dev/null
+++ b/ICLR/2025/Learning Spatial-Semantic Features for Robust Video Object Segmentation/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:dfa4c65da4a4e0e643f06a7f85736c9244e4da2a80092db4de4d1a44a1f56f61
+size 469842
diff --git a/ICLR/2025/Learning Splitting Heuristics in Divide-and-Conquer SAT Solvers with Reinforcement Learning/0d2f6a4c-0158-4d79-ade9-7a675fa98bd4_content_list.json b/ICLR/2025/Learning Splitting Heuristics in Divide-and-Conquer SAT Solvers with Reinforcement Learning/0d2f6a4c-0158-4d79-ade9-7a675fa98bd4_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..6cca274792d4636ea8cae07c45f4081a826c9eac
--- /dev/null
+++ b/ICLR/2025/Learning Splitting Heuristics in Divide-and-Conquer SAT Solvers with Reinforcement Learning/0d2f6a4c-0158-4d79-ade9-7a675fa98bd4_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0d6d106c9c7d21c80ac780b7284280a0d9aedb2a570586a9eaab06356da250a7
+size 129332
diff --git a/ICLR/2025/Learning Splitting Heuristics in Divide-and-Conquer SAT Solvers with Reinforcement Learning/0d2f6a4c-0158-4d79-ade9-7a675fa98bd4_model.json b/ICLR/2025/Learning Splitting Heuristics in Divide-and-Conquer SAT Solvers with Reinforcement Learning/0d2f6a4c-0158-4d79-ade9-7a675fa98bd4_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..90bbf774e48ab85c602b57945946d0a36682f066
--- /dev/null
+++ b/ICLR/2025/Learning Splitting Heuristics in Divide-and-Conquer SAT Solvers with Reinforcement Learning/0d2f6a4c-0158-4d79-ade9-7a675fa98bd4_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f8b68fbad04a59e37cc653c90d99172e1c02742d23a2a3da8d35fee28fa5ef5a
+size 149668
diff --git a/ICLR/2025/Learning Splitting Heuristics in Divide-and-Conquer SAT Solvers with Reinforcement Learning/0d2f6a4c-0158-4d79-ade9-7a675fa98bd4_origin.pdf b/ICLR/2025/Learning Splitting Heuristics in Divide-and-Conquer SAT Solvers with Reinforcement Learning/0d2f6a4c-0158-4d79-ade9-7a675fa98bd4_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..633bb7a06c3bb45ecea2019770faa3a017157318
--- /dev/null
+++ b/ICLR/2025/Learning Splitting Heuristics in Divide-and-Conquer SAT Solvers with Reinforcement Learning/0d2f6a4c-0158-4d79-ade9-7a675fa98bd4_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:cb8c4cf3db5261026701911885b446c0b3d7a88d7408f929de51f744df76a4b0
+size 1274198
diff --git a/ICLR/2025/Learning Splitting Heuristics in Divide-and-Conquer SAT Solvers with Reinforcement Learning/full.md b/ICLR/2025/Learning Splitting Heuristics in Divide-and-Conquer SAT Solvers with Reinforcement Learning/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..e8ca16325cb55e5aa72efbc33832880d5cca4a52
--- /dev/null
+++ b/ICLR/2025/Learning Splitting Heuristics in Divide-and-Conquer SAT Solvers with Reinforcement Learning/full.md
@@ -0,0 +1,376 @@
+# LEARNING SPLITTING HEURISTICS IN DIVIDE-AND-CONQUER SAT SOLVERS WITH REINFORCEMENT LEARNING
+
+Shumao Zhai $^{1}$ , Ning Ge $^{1,2}$ *
+
+1Beihang University 2State Key Laboratory of Complex & Critical Software Environment (CCSE)
+
+# ABSTRACT
+
+We propose RDC-SAT, a novel approach to optimize splitting heuristics in Divide-and-Conquer SAT solvers using deep reinforcement learning. Our method dynamically extracts features from the current solving state whenever a split is required. These features, such as learned clauses, variable activity scores, and clause LBD (Literal Block Distance) values, are represented as a graph. A GNN integrated with an Actor-Critic model processes this graph to determine the optimal split variable. Unlike traditional linear state transitions characterized by Markov processes, divide-and-conquer challenges involve tree-like state transitions. To address this, we developed a reinforcement learning environment based on the Painless framework that efficiently handles these transitions. Additionally, we designed different discounted reward functions for satisfiable and unsatisfiable SAT problems, capable of handling tree-like state transitions. We trained our model using the Decentralized Proximal Policy Optimization (DPPO) algorithm on phase transition random 3-SAT problems and implemented the RDC-SAT solver, which operates in both GPU-accelerated and non-GPU modes. Evaluations show that RDC-SAT significantly improves the performance of D&C solvers on phase transition random 3-SAT datasets and generalizes well to the SAT Competition 2023 dataset, substantially outperforming traditional splitting heuristics.
+
+# 1 INTRODUCTION
+
+The propositional satisfiability problem (SAT) is one of the foundational problems in theoretical computer science. It involves determining the assignment of variables that satisfy a given Boolean formula. Due to its NP-complete nature, SAT plays a crucial role in theoretical computer science and has a wide range of applications, including software verification, hardware design verification, combinatorial optimization, and artificial intelligence, etc. Most modern complete SAT solvers primarily employ the conflict-driven clause learning (CDCL) algorithm (Marques-Silva et al., 2021), which has transformed the field by introducing clause learning mechanisms that effectively optimize the search space. CDCL solvers avoid revisiting previously explored paths and concentrate on promising areas of the search space, establishing them as the leading method for tackling complex and challenging SAT problems.
+
+In the realm of modern SAT solvers, parallelism has been embraced to fully harness the computational power of many-core machines (Hamadi & Sais, 2018). Two dominant parallelization strategies have emerged: Divide-and-Conquer (D&C) and Portfolio. The D&C strategy, often employing the guiding path technique, dynamically divides the problem into smaller, more manageable subspaces. Each subspace is independently tackled by individual sequential solvers, allowing the problem to be processed more efficiently in parallel. This method leverages problem structure to enable targeted sub-formula exploration, reducing overall solving time. The Portfolio approach adopts a competitive strategy in which multiple sequential solvers concurrently tackle the entire problem. This competition continues until one solver successfully solves the problem. Strategic diversity among solvers enhances solution coverage and success probability. Although D&C approaches seem to be the natural way to work in parallel, empirical results from annual SAT competitions indicate that Portfolio-based
+
+solvers currently lead in performance. However, D&C solvers still possess unique advantages in certain domains, such as better scalability in environments with large parallel computing power, like cloud platforms (Heisinger et al., 2020), and have been successfully employed to solve large-scale mathematical problems (Heule et al., 2016).
+
+In modern D&C SAT solvers, the problem is dynamically divided into smaller, more manageable subproblems. The splitting process entails selecting a variable and dividing the problem into subformulas by setting the variable to either True or False, which are subsequently solved using CDCL sequential solvers. This partitioning is guided by splitting heuristics, which largely determine the performance of D&C SAT solvers. An effective splitting heuristic minimizes total solving time while ensuring balanced subspaces for optimal load distribution. Splitting heuristics generally fall into two categories: look-ahead and look-back techniques. Look-ahead heuristics evaluate the potential impact of variables to minimize runtime, as demonstrated in the Cube-and-Conquer solver (Heule et al., 2011; Fleury & Heisinger, 2020), which creates smaller subspaces by choosing variables that maximize unit propagations. In contrast, look-back heuristics evaluate variables based on their historical effectiveness in the search, selecting split variables through methods like VSIDS-based variable activity (Audemard et al., 2016), the number of flips of variables (Le Frioux et al., 2019), and propagation rates (Nejati et al., 2017) of variables.
+
+Machine learning methods have already been widely applied to SAT problems (Holden et al., 2021; Guo et al., 2023; Yolcu & Poczos, 2019; Zhang et al., 2020). In recent years, GNNs and RL have shown potential in optimizing branch splitting, phase selection, clause deletion, etc., heuristics in CDCL solvers (Jaszczur et al., 2020; Kurin et al., 2020; Selsam & Bjørner, 2019; Cameron et al., 2020; Han, 2020; Wang et al., 2023; Shi et al., 2023; Liu et al., 2024). For example, Graph-Q-Sat (Kurin et al., 2019; 2020) uses GNNs and RL to optimize branch heuristics in CDCL solvers, significantly reducing the number of iterations. However, Graph-Q-Sat did not effectively reduce overall runtime due to CDCL's requirement for high-frequency variable selection calls. In contrast, splitting heuristics in D&C solvers are equally critical but invoked far less frequently, making RL and GNN-based optimization of these heuristics particularly promising. A more detailed discussion of related work is provided in Appendix A.
+
+In this paper, we present a technique that employs deep reinforcement learning to optimize the splitting euristics within parallel D&C SAT solvers, resulting in the development of the Reinforced Divide-and-Conquer SAT solver (RDC-SAT). When a split is required, the D&C solver parses information from the sequential solver, including learned clauses, variable activities, and clause LBD(Literal Block Distance), and represents this information as a graph. A GNN is then used to evaluate the importance of each variable and select the optimal split variable.
+
+To optimize this model using reinforcement learning, we developed an RL environment within the Painless (PArallel INstantiabLE Sat Solver) framework (Le Frioux et al., 2017; 2019) that efficiently manages the tree-like state transitions characteristic of D&C methods. Additionally, we designed distinct discounted reward functions for satisfiable and unsatisfiable SAT problems. We then trained a model optimized for splitting heuristics using the Distributed Proximal Policy Optimization(DPPO)(Heess et al., 2017) algorithm, resulting in the creation of RDC-SAT. Moreover, considering the computational overhead of the neural network in the SAT solver, we also implemented an approach similar to NeuroBack (Wang et al., 2023), which supports invoking the neural network only once at the initial stage to guide subsequent splits, making it suitable for GPU resource-poor computing environments. To validate our approach, we trained the model on a random dataset at the phase transition and evaluated its effectiveness and generalization on larger-scale problems. Our empirical results demonstrate that RDC-SAT outperforms baseline methods. On the random 3-SAT dataset, RDC-SAT achieved a $25.08\%$ reduction in PAR2 score; on the SAT Competition 2023 dataset—which includes small to medium-sized SAT problems with hundreds of thousands of variables and clauses—it achieved a $14.95\%$ reduction. Even without GPU acceleration, the insights from the initial neural network call effectively guide subsequent splits, ensuring efficient problem-solving with minimal reliance on neural network computations.
+
+# 2 PRELIMINARIES
+
+SAT problem. The Boolean Satisfiability Problem (SAT)(Biere et al., 2009) concerns the satisfiability determination of propositional logic formulas. A propositional logic formula is composed
+
+of variables and operators such as AND (conjunction, $\land$ ), OR (disjunction, $\lor$ ), NOT (negation, $\neg$ ), and parentheses, typically expressed in Conjunctive Normal Form (CNF). In CNF, a formula is a conjunction of clauses, where a clause is a disjunction of literals, and a literal is either a variable (positive literal) or its negation (negative literal). For example, $(x \lor \neg y) \land (\neg x \lor z)$ is a CNF formula, where $x$ and $z$ are positive literals of their respective variables, and $\neg y$ is a negative literal. In the SAT problem, each variable can be assigned one of two values: True or False. If there is at least one assignment of variables that makes the entire formula True, then the formula is deemed satisfiable (SAT); otherwise, it is considered unsatisfiable (UNSAT). During the process of solving SAT problems, CDCL solvers generate numerous learned clauses to aid in resolving the problem efficiently. These learned clauses help reduce the search space by preventing the solver from revisiting conflicting assignments, thus facilitating quicker convergence towards a solution or proving unsatisfiability.
+
+Divide-and-Conquer SAT solvers. Modern D&C SAT solvers follow a hierarchical master-slave architecture.(Le Frioux et al., 2019) The master node manages the partitioning of the search space into smaller subspaces, which are tackled independently and in parallel by multiple sequential CDCL solvers. These subproblems are solved concurrently by worker nodes, which share learned clauses with each other to accelerate the solving process and reduce redundant computations. To ensure dynamic load balancing, D&C solvers utilize a work-stealing mechanism. When a worker node becomes idle, the master node identifies an ongoing subproblem currently being processed by another node, splits it into smaller tasks, and assigns one to the idle worker. This dynamic redistribution of tasks enhances computational efficiency. Incremental solvers further optimize this approach by enabling solvers to continue from previous states with retained learned clauses and variable activity scores, minimizing redundancy and improving overall solving speed.
+
+Graph Neural Networks. Graph Neural Networks (GNNs) (Wu et al., 2020; Zhou et al., 2020) are designed to handle data structured as graphs, allowing for the modeling of relationships and interactions within data. The GraphNets framework (Battaglia et al., 2018) utilizes an Encoder-Processor-Decoder architecture to effectively process graph-structured data. The encoder maps node and edge features into high-dimensional latent representations. The processor iteratively updates these representations through a message-passing mechanism, where each node aggregates information from its neighbors to refine its embedding. This mechanism enables the network to propagate and integrate information across the graph. Finally, the decoder reconstructs the desired outputs from the node embeddings for tasks such as node classification, graph classification, or link prediction, utilizing the embeddings either directly or through aggregation for graph-level predictions.
+
+Reinforcement Learning. Reinforcement Learning (RL) is a machine learning paradigm where an agent learns to make decisions by interacting with its environment, maximizing cumulative rewards. Central to RL is the classic Markov Decision Process (MDP), which models the decision-making problem through states $s \in S$ , actions $a \in A$ , state-transition probabilities $P(s'|s,a)$ , and a reward function $R(s,a)$ . This framework assumes the state transitions are generally linear, meaning the next state $s'$ depends only on the current state $s$ and action $a$ . Advanced RL algorithms like Actor-Critic methods use a policy network (actor) to select actions and a value network (critic) to estimate the value function, improving both networks iteratively. Proximal Policy Optimization (PPO) (Schulman et al., 2017) introduces a clipped surrogate objective function to stabilize policy updates, preventing drastic changes and ensuring more reliable learning. Distributed Proximal Policy Optimization (DPPO) Heess et al. (2017) extends PPO by employing multiple agents across distributed environments, leveraging data parallelism to speed up learning while maintaining policy stability.
+
+# 3 INTERACTIVE DIVIDE-AND-CONQUER ENVIRONMENT
+
+We selected Painless (Le Frioux et al., 2017; 2019) as the foundational parallel divide-and-conquer framework. The Painless framework is a modular and high-performance parallel SAT-solving system, ideal for comparing different heuristics. It uses a master-slave architecture with a work-stealing strategy for dynamic load balancing and supports clause sharing to enhance solving efficiency. For our experiments, we used the best-performing settings identified, including MapleCOMSPS (Liang et al., 2016b;a) as the sequential solver and the "altoall" clause-sharing strategy. Building on this foundation, to construct a reinforcement learning environment suitable for optimizing splitting heuristics and handling tree-structured state transitions, we implemented features to extract SAT problem states from the SAT solver, store various information required for training using a binary
+
+tree, and retain only simple interfaces. To use Python for model training, we encapsulated the divide-and-conquer environment as a Python library using Pybind11 and created the PainlessEnv environment in Python. Specific implementation details can be found in Appendix B.
+
+# 3.1 ENVIRONMENT INTERFACE
+
+Our custom PainlessEnv environment is specifically designed for the needs of divide-and-conquer SAT problems, addressing the complexities of parallel and branching operations in SAT solving. It manages a binary tree structure to support the non-linear state transitions characteristic of these problems, unlike the linear transitions typical in traditional environments like Gym (Brockman et al., 2016). PainlessEnv primarily provides two interfaces for agent interaction: 'reset' and 'step'. The reset method initializes a new SAT problem and provides the initial state of the first subproblem that needs to be partitioned. Unlike Gym's 'step' method, which returns the next observation, reward, and done flag, our 'step' method only returns the next subproblem state and a 'done' flag. This is because, in the tree-structured state transitions, the next state is not always a direct successor of the previous state, and the reward can only be accurately determined from the tree structure. Therefore, our 'step' method does not return the reward directly.
+
+# 3.2 MANAGING STATE TRANSITIONS WITH BINARY TREES
+
+Due to the non-linear state transitions inherent in D&C problems, PainlessEnv cannot produce a continuous sequence of states and rewards for training. Instead, it utilizes a binary tree, as illustrated in Figure 1, to store all critical information during the solving process. The root node denotes the initial problem, internal nodes correspond to subproblems requiring splitting, and leaf nodes signify fully solved subproblems. When a worker requests a division or completes a solution, a new node is added to the tree with all pertinent data. After solving a SAT problem, the reinforcement learning agent retrieves training information from this binary tree. Additionally, In a D&C solver for SAT problems, once a subproblem is proven satisfiable, it indicates that the entire SAT problem is satisfiable. Typically, the D&C solver would interrupt all other active workers and return the result. However, for reinforcement learning training, the other unresolved subproblems are still meaningful. Interrupting the process leads to missing leaf nodes in the binary tree, which is suboptimal for training. To address this, even if a subproblem is confirmed as satisfiable, we continue processing until all subproblems are resolved before returning a result, ensuring a complete and informative dataset for training.
+
+# 3.3 SAT SUBPROBLEM STATE EXTRACTION
+
+Each time a split is required, the Painless environment interrupts a sequential solver and extracts basic information about the SAT problem to represent its state. MapleCOMSPS categorizes learned clauses into three levels: core, tier2, and local. Core learned clauses are considered the most crucial. They are generally derived from conflicts that involve decisions at deeper levels of the decision tree that are usually kept permanently. Tier2 learned clauses are of intermediate importance. They are often derived from conflicts at shallower depths and are kept as long as they are deemed useful. Local learned clauses are less critical and more temporary, typically generated from recent conflicts and are discarded periodically to manage memory and performance overhead. Additionally, it maintains variable activity values used in branch heuristics, the LBD values of clauses to evaluate their utility, and other statistical information such as the number of decisions and unit propagations. We extract these learned clauses at different levels, along with variable activity scores and other pertinent data, to comprehensively represent the current solving state of the SAT problem. This information is then represented as a graph, which our environment can be configured to utilize.
+
+# 4 REINFORCED DIVIDE-AND-CONQUER SAT
+
+We utilized a state representation and a GNN similar to Graph-Q-Sat (Kurin et al., 2020), with modifications to incorporate additional information that better represents the evolving state of the SAT problem. Additionally, we replaced DQN with an Actor-Critic network and trained it using DPPO.
+
+
+Figure 1: Binary tree maintained by PainlessEnv to store process information. Each node in the tree stores problem states, splitting times, solving times, split variables, satisfiability status, and other relevant information. Internal nodes represent subproblems that have been split, while leaf nodes represent solved subproblems. Dashed lines indicate satisfiable subproblems.
+
+
+Figure 2: State representation of Boolean formula $(x_{1}\lor x_{2})\land (\neg x_{2}\lor x_{3})$ . The first position of the node feature indicates node type: 1 for variable nodes and 0 for clause nodes, and vice versa for the second position. $F_{x}$ $F_{c}$ ,and $F_{g}$ represent variable activity features, clause LBD features, and global SAT problem statistics, respectively. Edge features represent the polarity of literals.
+
+# 4.1 STATE REPRESENTATION
+
+In RDC-SAT, the SAT problem is structured as a graph shown in Figure 2 where nodes represent variables and clauses, with node and edge features indicating variable polarity and type. We extract detailed information from the Maple solver, including variable data and learned clauses at various levels. Incorporating learned clauses provides a more dynamic reflection of the SAT problem's state. Variable activity levels and clause LBD values are normalized to enhance message passing efficiency. Additionally, global characteristics like restart counts, decision counts, conflict counts, and unit propagation counts are included as global features. This comprehensive representation captures the dynamic state changes in the SAT problem, enabling the GNN to process node and edge data more effectively.
+
+# 4.2 REWARD FUNCTION FOR TREE-STRUCTURED STATE TRANSITIONS
+
+In traditional reinforcement learning, rewards are typically calculated for linear state transitions, where the reward for each state is computed from the final state backward through the sequence, applying a discount factor at each step. This process involves calculating the reward for the final state first and then propagating it backward through the sequence. Correspondingly, for tree-structured state transitions, calculating the reward for each state requires first computing the discounted rewards for its child states. This necessitates using a post-order traversal to ensure that the discounted rewards of the child states are available before calculating the reward for the current state. Once the discounted rewards of the child states are obtained, they can be integrated into the discounted reward of current state using methods such as summation, averaging, taking the maximum, or the minimum of the child states' rewards. To illustrate this, consider a binary tree, where each state has two child states. Mathematically, if $R_{L}$ and $R_{R}$ are the discounted rewards of the left and right child states, and $r_{s}$ is the immediate reward for the current state, the current state's reward $R$ can be calculated as
+
+$$
+R = r _ {s} + \gamma \cdot f \left(R _ {L}, R _ {R}\right)
+$$
+
+The primary goal of this optimization is to minimize solving time. Thus, we simply use the negative solving time as the reward, making the maximization of this reward equivalent to minimizing the solving time. After solving SAT problems, we extract the splitting time and solving time from the binary tree in PainlessEnv to calculate the actual solving time for each state. For unsatisfiable problems, the total solving time is the sum of the splitting time and the longer solving time of the two subproblems. In contrast, for satisfiable problems, the total solving time is the sum of the splitting time and the shorter solving time of the satisfiable subproblems. The following formulas encapsulate
+
+the calculation of discounted reward:
+
+$$
+R _ {U} = - \left(T _ {s} + \max \left(\Delta T _ {U c} + \gamma \cdot \left| R _ {U c} \right|\right)\right)
+$$
+
+$$
+R _ {S} = - \left(T _ {s} + \min \left(\Delta T _ {S c} + \gamma \cdot | R _ {S c} |\right)\right)
+$$
+
+Here, $R_U$ and $R_S$ are the discounted rewards for UNSAT and SAT problems, respectively; $T_s$ is the splitting time, which is the time taken to analyze the problem state and decide the split variable; $|R_{Uc}|$ and $|R_{Sc}|$ are the absolute values of the discounted rewards for the child subproblems of UNSAT and SAT states, respectively. If a corresponding child state is a leaf node, its discounted reward is zero; $\Delta T_{Uc}$ and $\Delta T_{Sc}$ are the time intervals from the completion of the division to the return of the next child subproblem state in UNSAT and SAT scenarios, respectively; and $\gamma$ is the discount factor applied to future rewards. Typically, $\gamma$ is less than 1 to prioritize immediate rewards over future rewards. However, in our study, we set $\gamma = 1$ because the solving process terminates within a definite time frame. This ensures that each action considers the entire solving process, and the reward directly reflects the total solving time under the current policy and action.
+
+
+Figure 3: Calculation of discounted reward in tree-structured state transitions.
+
+# 4.3 NEURAL NETWORK, ACTION DEFINITION, AND OBJECTIVE FUNCTION
+
+We use a Graph Neural Network (GNN) with an Encoder-Processor-Decoder architecture (Battaglia et al., 2018) to extract features, followed by an Actor-Critic network to make decisions. The Encoder transforms initial features into higher-dimensional representations. The Processor integrates local and global information through message passing. The Decoder outputs variable, clause, and global features. The RL action corresponds to selecting a variable as the split variable during the Divide-and-Conquer process. The Actor network assigns probabilities to valid variables, excluding those already chosen as split variables or eliminated during the solving process, ensuring the action space only contains currently selectable variables. The Critic network estimates the value of the current state based on clause and global features. We use the Proximal Policy Optimization (PPO)(Schulman et al., 2017) objective function. This objective combines policy loss, value loss, and entropy loss to optimize the learning process.
+
+# 4.4 TRAINING AND DEPLOYMENT
+
+Training data. We utilize randomly generated 3-SAT problems at the phase transition as our training data. The phase transition in SAT problems is characterized by a specific ratio of clauses $(n)$ to variables $(m)$ , given by $n = 4.258m + 58.26m^{-\frac{2}{3}}$ (Crawford & Auton, 1996), where the likelihood of satisfiability sharply transitions from high to low as the number of clauses increases relative to the number of variables. This critical point presents the greatest computational challenge. Although these datasets may initially exhibit a uniform structure, CDCL solvers in D&C solvers can quickly generate a large number of learned clauses, making the subsequent SAT problems input to the neural network inherently rich in structural features. We selected two datasets: one with 300 variables and 1,278 clauses, and another with 350 variables and 1,491 clauses (hereafter referred to as the 300-1278 and 350-1491 datasets, respectively), each comprising 1,000 instances with a balanced ratio of satisfiable to unsatisfiable instances. These training datasets can be solved within seconds to tens of seconds, allowing for the generation of a large amount of training data. All these datasets can be solved within a reasonable timeframe, generating complete binary trees that are used for subsequent extraction of training data.
+
+Training. We implemented DPPO using a multi-agent architecture to enhance both exploration and learning efficiency. The system architecture includes five exploration agents continuously solving SAT problems and collecting training data, complemented by a single dedicated training agent. Each exploration agent runs 16 threads to solve SAT problems continuously. Upon completion, these agents parse the binary tree to extract training data, which is then transmitted to the training agent via
+
+a message queue. The training agent systematically retrieves this data from the queue, stores it in a replay buffer, and samples from this buffer to form batches for neural network training. We represent the state using a graph constructed from variables, original clauses, core learned clauses, and tier2 learned clauses, all extracted from the Sequential CDCL solver. We use the Adam optimizer to train the model. Post-training, the updated network parameters are synchronized across all exploration agents to maintain consistency and optimize policy performance. An $\epsilon$ -greedy strategy is implemented to ensure a balance between exploration and exploitation, with the epsilon parameter decreasing progressively over time. Additionally, all rewards are normalized during training to maintain a consistent learning scale and enhance algorithmic stability. The exploration agents use only CPU resources, while the training agent uses only GPU resources. For exploration processes, we used LRB as the branch heuristics, as it performed better on the random dataset. Training took approximately 2-3 days. After completing this training, we switched the branch heuristics to VSIDS and trained a new model, which took about half a day. This training operation is hosted on a Linux server equipped with an Intel(R) Xeon(R) Platinum 8373C CPU, featuring 72 physical cores and 144 logical cores, supplemented by 256 GB of memory and a Tesla A100 GPU with 80 GB of memory. During training, we observed that even though random 3-SAT problems at the phase transition initially have just over a thousand clauses, the states used for training showed that the CDCL solver generated approximately ten to fifty thousand core and tier2 learned clauses, ensuring a rich structural representation.
+
+Deployment. After the training phase, we utilized TorchScript to export the model and integrate it with the Painless framework, thereby creating the RDC-SAT solver. This solver is a complete D&C SAT solver that no longer depends on Python, and it can dynamically generate variable probability rankings required for splitting decisions using the neural network. The solver can choose to run the neural network's forward propagation on either CPU or GPU. However, the relatively high overhead of neural networks often becomes a bottleneck in SAT solving with GNNs, especially when GPUs are unavailable and the forward propagation is done using CPUs. When multiple threads call the neural network simultaneously, resource contention may occur, slowing down the solving process. To address this and enable RDC-SAT to function effectively without GPU support, we implemented a new strategy: the neural network is used only once during the first required split to generate a ranked list of candidate split variables. For all subsequent splits, the solver directly selects split variables from this precomputed ranking. Additionally, when the problem size is very large, leading to excessive overhead from neural network calls or potential memory limitations, RDC-SAT will switch to the default splitting heuristic.
+
+# 5 EVALUATION
+
+In this chapter, we compare the performance of different splitting heuristics within the Painless framework across various datasets. We evaluate the performance of RDC-SAT against traditional splitting heuristics and analyze the cost of using GNNs.
+
+# 5.1 SETUP
+
+Solvers. We used the Painless framework to evaluate the performance of our RDC methods compared to baseline divide-and-conquer solvers. To ensure a fair comparison, we kept all configurations consistent except for the splitting heuristics. Specifically, we used FLIPS (Audemard et al., 2014b), VSIDS(Audemard et al., 2016), and PR (Nejati et al., 2017) splitting strategies from the work (Le Frioux et al., 2019), with P-CLONE-FLIPS showing the best overall performance, outperforming Treengeling and MapleAmpharos. Our RDC-SAT utilized core and tier2 learned clauses to construct the graph, employing two modes: RDC-GPU-always and RDC-CPU-once. RDC-GPU-always uses the GPU to accelerate neural network calls, selecting the split variable with GNN every time it splits. RDC-CPU-once, on the other hand, does not rely on GPU and only uses the CPU to call the GNN and generate variable sorting. For subsequent splitting, the worker uses the variable probability sorting to select split variables. Due to the poor performance of VSIDS on random datasets compared to LRB (as shown in Appendix E.2), we used Maple's LRB branch heuristics for the random dataset, and the RDC used the LRB model. In contrast, for the SAT Competition dataset, we used Maple's VSIDS branch heuristics, and the RDC used the VSIDS model.
+
+Dataset. We evaluated RDC-SAT on two datasets. (1) To investigate whether RDC-SAT has effectively learned the splitting heuristics, we randomly selected 200 SAT instances from the random
+
+dataset at the phase transition. This set includes 100 problems from the 450-1917 dataset and 100 from the 500-2129 dataset, with a 1:1 ratio of satisfiable to unsatisfiable instances. This dataset provides a suitable level of difficulty for the baseline solvers, enabling us to distinguish their performance. (2) To evaluate whether RDC-SAT, trained on random datasets, can generalize to more extensive, application-oriented datasets, we screened 305 small to medium-sized SAT problems from the 400 instances in the SAT Competition 2023. These problems, which make up the majority of the competition's instances, have a total number of variables and clauses below one million. The SAT Competition dataset includes a diverse range of difficult SAT instances, such as industrial applications and handmade problems. Since our model was trained solely on random datasets, without any knowledge of application-specific or handmade instances, this dataset serves as an ideal benchmark for evaluating the generalization capability of RDC-SAT.
+
+All experiments were conducted on the same machine used for training, with each solver allocated 16 threads. RDC-CPU-once was also limited to using 16 CPU cores for running the neural network's forward propagation process. The timeout for each instance was set to 5000 seconds. For instances that timed out, we used the same PAR2 score as in the SAT Competition, treating the timeouts as requiring double the timeout duration to solve. To analyze the performance of different splitting heuristics, we recorded the splitting and solving time. In our small-scale tests, we found that the PR method was not well-suited for solving random problems, and thus we did not evaluate PR on the random dataset.
+
+# 5.2 EVALUATION RESULT
+
+Table 1 presents all the results. Figure 4 illustrates the comparison of wall-clock time and problems solved across different splitting heuristics on two datasets. Instances that no solver could successfully solve within the time limit were excluded from the statistics.
+
+Table 1: Comparison of Splitting Heuristics across Datasets. #SAT, #UNSAT, and #ALL indicate the number of SAT problems, UNSAT problems, and total problems solved within the time limit. Clock Time is the average wall-clock time in seconds. PAR2 is the penalized average runtime. Splits are the average number of splits per problem. Splitting Time represents the average CPU time spent by all threads on splitting SAT subproblems. Solving Time represents the average CPU time spent by all threads using the Sequential CDCL solver to solve SAT subproblems. All time values are in seconds.
+
+
Dataset
Splitting Heuristics
#SAT
#UNSAT
#All
Clock Time
PAR2
Splits
Splitting Time
Solving Time
Random (141)
RDC-GPU-always
76
53
129
1064.43
1489.96
60.42
20.78
16870.24
RDC-CPU-once
73
53
126
1238.04
1769.95
65.84
0.624
19316.30
FLIPS
74
50
124
1385.80
1988.64
49.21
0.00037
22090.20
LRB
70
50
120
1484.81
2229.49
74.77
0.00054
23617.79
SAT COMP 2023 (140)
RDC-GPU-always
50
85
135
764.00
942.57
162.19
142.47
10678.02
RDC-CPU-once
50
85
135
882.10
1060.67
191.95
8.77
11737.56
FLIPS
50
83
133
858.25
1108.25
80.02
0.0146
12296.52
VSIDS
46
84
130
901.12
1258.26
108.44
0.0013
12602.74
PR
49
72
121
1269.57
1948.14
104.19
0.0155
19232.39
+
+
+(a) Results on Random Dataset
+
+
+(b) Results on SAT COMP 2023 Dataset
+Figure 4: Comparison of wall-clock time and problems solved across splitting heuristics on two datasets.
+
+Evaluation on Random 3-SAT Dataset. For the Random 3-SAT dataset, the RDC-GPU-always and RDC-CPU-once modes were evaluated against traditional heuristics FLIPS and LRB. RDC-GPU-always successfully solved 129 out of 141 problems, while RDC-CPU-once solved 126, both significantly outperforming the traditional splitting heuristics in terms of average clock time and PAR2 score. Specifically, RDC-GPU-always achieved the best performance with an average clock time of 1064.43 seconds and a PAR2 score of 1489.96. Compared to the best baseline method, FLIPS, RDC-GPU-always reduced the PAR2 score by approximately $25.08\%$ , demonstrating the model's capability to effectively learn and apply splitting heuristics from the random dataset, thus significantly enhancing solving efficiency. Even RDC-CPU-once, which only utilizes the initial SAT problem state for its analysis, reduced the PAR2 score by approximately $10.99\%$ , showing substantial performance improvement over traditional heuristics.
+
+Generalization to SAT Competition Dataset. The RDC-SAT model, trained solely on random 3-SAT problems at the phase transition without any additional dataset information, was further evaluated on the SAT Competition dataset to test its generalization capability. This dataset includes a diverse range of problems, many of which are application-specific, providing a comprehensive test of RDC-SAT's robustness. Both RDC-GPU-always and RDC-CPU-once demonstrated competitive performance. Specifically, both methods successfully solved 135 problems, with RDC-GPU-always achieving the best average clock time of 764.00 seconds and a PAR2 score of 942.57. Compared to the best traditional method, FLIPS, which had a PAR2 score of 1108.25, RDC-GPU-always reduced the PAR2 score by approximately $14.95\%$ , showcasing its effectiveness across varied problem types. RDC-CPU-once, while solving the same number of problems, recorded slightly higher average clock time and PAR2 score of 1060.67, yet still achieved a PAR2 reduction of approximately $4.29\%$ , indicating substantial performance improvement even with limited reliance on neural network calls. These results underscore the ability of RDC-SAT to generalize well beyond its training conditions.
+
+Analysis of Splitting Time and Solving Time. To analyze the solving performance of our methods, we consider two key metrics: Splitting Time, which represents the total splitting time across all threads, and Solving Time, which represents the total solving time across all threads. In SAT solvers, incorporating a GNN is beneficial only if its performance improvements outweigh the overhead. In D&C solvers, the average number of splits per problem is relatively low; for example, in the random dataset, it ranges from 49.21 to 74.77 across various splitting heuristics (see Table 1). Therefore, even if the GNN is invoked at each split, it does not introduce significant performance overhead. Figures 5a and 5b illustrate the relationship between the splitting time per split and the total number of nodes for RDC-GPU-always and RDC-CPU-once on the two datasets. From the figures, it can be observed that the Splitting Time is approximately proportional to the total number of nodes. Notably, in RDC-GPU-always, the average time per split is less than 1 second. In RDC-CPU-once, although the initial GNN call takes slightly longer, subsequent splits are faster because they utilize precomputed variable rankings. When considering total CPU time, the Splitting Time of RDC-GPU-always accounts for only $0.12\%$ and $1.33\%$ of the total Solving Time on the random and SAT Competition datasets, respectively. Similarly, for RDC-CPU-once, it accounts for just $0.003\%$ and $0.075\%$ . Despite the slightly higher Splitting Time compared to baseline methods, the RDC methods significantly reduce the overall Solving Time. Specifically, RDC-GPU-always reduces the Solving Time by approximately $23.63\%$ and $13.17\%$ on the random and SAT Competition datasets, respectively, compared to the best-performing baseline, FLIPS. RDC-CPU-once achieves reductions of approximately $12.56\%$ and $4.54\%$ , respectively. Therefore, although the Splitting Time of both RDC-SAT methods is marginally higher than that of the baseline methods, they substantially decrease the Solving Time, leading to superior overall performance compared to the baselines.
+
+# 6 DISCUSSION
+
+In this paper, we propose a method to optimize splitting heuristics in D&C SAT solvers using reinforcement learning. We built a reinforcement learning environment tailored for Divide-and-Conquer tasks and trained a model, resulting in the RDC-SAT solver. Compared to baseline methods, RDC-SAT achieves significant performance improvements in wall-clock time. To the best of our knowledge, this is the first work addressing tree-structured state transitions induced by Divide-and-Conquer tasks using reinforcement learning. However, our focus was on exploring the potential of reinforcement learning and GNNs in optimizing splitting heuristics, rather than constructing a state-of-the-art (SOTA) parallel D&C SAT solver. Therefore, we did not modify any other components of
+
+Figure 5: Analysis of splitting Times for RDC-SAT on two dataset.
+
+(a) Splitting Time on Random Dataset. RDC-GPU-always: Avg. 72803.28 nodes, 0.344s per split. RDCCPU-once: Avg. 9043.16 nodes, 0.624s per split.
+
+
+(b) Splitting Time on SAT Competition 2023 Dataset. RDC-GPU-always: Avg. 248184.79 nodes, 0.878s per split. RDC-CPU-once: Avg. 191098.54 nodes, 8.77s per split.
+
+the Painless framework or train a general model on large-scale datasets containing multiple types of instances, leaving room for further optimization to reach better performance.
+
+Integration of GNNs with SAT Solvers. The integration of GNNs with SAT solving has become a hot research area in recent years. However, for SAT solvers, which are performance-critical tools, the overhead introduced by GNNs—including computational cost and GPU memory usage—is non-negligible, making it challenging to scale to very large SAT problems. Leading SAT solvers have not adopted GNNs. For example, attempts to swap CDCL solvers' branch heuristics with GNNs show that while GNNs can improve decision-making, their significant overhead might extend overall solving time. Our work expands the application of GNNs in SAT solving to a new direction. In a Divide-and-Conquer solver, the splitting heuristic significantly impacts performance, but its invocation frequency is relatively low, allowing RDC-SAT to improve wall-clock time. To extend GNNs to larger-scale SAT problems and reduce overhead, future efforts should prioritize reducing both the size and computational cost of the neural networks. Currently, the GNN employed in RDC-SAT is relatively large, resulting in substantial GPU memory consumption. We plan to reduce the size of the neural network to decrease memory usage and improve efficiency. For large SAT problems, sampling methods can be explored to construct the graph. Techniques such as sampled message passing could further reduce the overhead of GNNs. Minimizing GNN calls is another crucial focus. For example, using the RDC-once method proposed in this work, the GNN is called only initially or at specific points to generate information that guides subsequent decisions. Currently, RDC-once only calls the neural network once initially, without using any new information generated during the solving process. In the future, we will explore a hybrid approach that integrates initial GNN-generated information with default strategies for decision-making. Additionally, training specialized models for domain-specific problems(Li et al., 2022) may yield significant performance improvements for these applications.
+
+Further Improvements for RDC-SAT. The development of D&C solvers has lagged behind portfolio-based parallel solvers in recent years. Many D&C solvers, including the Painless framework we used, have not incorporated high-performance sequential solvers like Kissat and CaDiCal or recent optimizations. RDC-SAT currently uses default configurations of the Painless framework, such as MapleCOMSPS as the sequential solver. Replacing MapleCOMSPS with better-performing solvers, optimizing other components, and exploring different configurations could lead to substantial improvements. Additionally, since our experiments aimed to evaluate RDC-SAT's performance, we trained the model only on the random dataset without training a general model. Training on larger and more diverse datasets could enhance RDC-SAT's effectiveness and generalization. Furthermore, RDC-SAT uses limited information to represent states, focusing on key features of variables and clauses. Future work could explore incorporating additional features to achieve greater performance enhancements.
+
+In future work, we plan to implement these optimizations and evaluate the performance of RDC-SAT on larger datasets to further enhance its effectiveness.
+
+# ACKNOWLEDGMENTS
+
+This work was supported by National Key Research and Development Program of China Grant 2022YFB3305102, Natural Science Foundation of China Grant 61902011, and State Key Laboratory of Complex & Critical Software Environment (CCSE-2024ZX-16).
+
+# REFERENCES
+
+Gilles Audemard, Benoit Hoessen, Saïd Jabbour, and Cédric Piette. Dolius: A distributed parallel sat solving framework. In $POS@SAT$ , pp. 1-11, 2014a.
+Gilles Audemard, Benoit Hoessen, Said Jabbour, and Cédric Piette. An effective distributed d&c approach for the satisfiability problem. In 2014 22nd Euromicro International Conference on Parallel, Distributed, and Network-Based Processing, pp. 183-187. IEEE, 2014b.
+Gilles Audemard, Jean-Marie Lagniez, Nicolas Szczepanski, and Sébastien Tabary. An adaptive parallel sat solver. In International Conference on Principles and Practice of Constraint Programming, pp. 30-48. Springer, 2016.
+Jimmy Lei Ba, Jamie Ryan Kiros, and Geoffrey E Hinton. Layer normalization. arXiv preprint arXiv:1607.06450, 2016.
+Tomas Balyo, Marijn Heule, Markus Iser, Matti Järvisalo, and Martin Suda (eds.). Proceedings of SAT Competition 2023: Solver, Benchmark and Proof Checker Descriptions. Department of Computer Science Series of Publications B. Department of Computer Science, University of Helsinki, Finland, 2023.
+Peter W Battaglia, Jessica B Hamrick, Victor Bapst, Alvaro Sanchez-Gonzalez, Vinicius Zambaldi, Mateusz Malinowski, Andrea Tacchetti, David Raposo, Adam Santoro, Ryan Faulkner, et al. Relational inductive biases, deep learning, and graph networks. arXiv preprint arXiv:1806.01261, 2018.
+Armin Biere, Marijn Heule, and Hans van Maaren. Handbook of satisfiability, volume 185. IOS press, 2009.
+Greg Brockman, Vicki Cheung, Ludwig Pettersson, Jonas Schneider, John Schulman, Jie Tang, and Wojciech Zaremba. Openai gym. arXiv preprint arXiv:1606.01540, 2016.
+Chris Cameron, Rex Chen, Jason Hartford, and Kevin Leyton-Brown. Predicting propositional satisfiability via end-to-end learning. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 34, pp. 3324-3331, 2020.
+Zhihan Chen, Xindi Zhang, Yuhang Qian, and Shaowei Cai. Prs: A new parallel/distributed framework for sat. SAT COMPETITION 2023, pp. 39, 2023.
+James M Crawford and Larry D Auton. Experimental results on the crossover point in random 3-sat. Artificial intelligence, 81(1-2):31-57, 1996.
+Matthias Fey and Jan Eric Lenssen. Fast graph representation learning with pytorch geometric. arXiv preprint arXiv:1903.02428, 2019.
+ABKFM Fleury and Maximilian Heisinger. Radical, kissat, paracooba, plingeling and treengeling entering the sat competition 2020. SAT COMPETITION, 2020:50, 2020.
+Wenxuan Guo, Hui-Ling Zhen, Xijun Li, Wanqian Luo, Mingxuan Yuan, Yaohui Jin, and Junchi Yan. Machine learning methods in solving the boolean satisfiability problem. *Machine Intelligence Research*, 20(5):640–655, 2023.
+Youssef Hamadi and Lakhdar Sais. Handbook of Parallel Constraint Reasoning. Springer, 2018.
+Jesse Michael Han. Enhancing sat solvers with glue variable predictions. arXiv preprint arXiv:2007.02559, 2020.
+
+Nicolas Heess, Dhruva Tb, Srinivasan Sriram, Jay Lemmon, Josh Merel, Greg Wayne, Yuval Tassa, Tom Erez, Ziyu Wang, SM Eslami, et al. Emergence of locomotion behaviours in rich environments. arXiv preprint arXiv:1707.02286, 2017.
+Maximilian Heisinger, Mathias Fleury, and Armin Biere. Distributed cube and conquer with para-cooba. In Theory and Applications of Satisfiability Testing-SAT 2020: 23rd International Conference, Alghero, Italy, July 3-10, 2020, Proceedings 23, pp. 114-122. Springer, 2020.
+Marijn JH Heule, Oliver Kullmann, Siert Wieringa, and Armin Biere. Cube and conquer: Guiding cdcl sat solvers by lookaheads. In Haifa Verification Conference, pp. 50-65. Springer, 2011.
+Marijn JH Heule, Oliver Kullmann, and Victor W Marek. Solving and verifying the boolean pythagorean triples problem via cube-and-conquer. In International Conference on Theory and Applications of Satisfiability Testing, pp. 228-245. Springer, 2016.
+Sean B Holden et al. Machine learning for automated theorem proving: Learning to solve sat and qsat. Foundations and Trends® in Machine Learning, 14(6):807-989, 2021.
+Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In International conference on machine learning, pp. 448-456. pmlr, 2015.
+Sebastian Jaszczur, Michal Łuszczyk, and Henryk Michalewski. Neural heuristics for sat solving. arXiv preprint arXiv:2005.13406, 2020.
+Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
+Vitaly Kurin, Saad Godil, Shimon Whiteson, and Bryan Catanzaro. Improving sat solver heuristics with graph networks and reinforcement learning. 2019.
+Vitaly Kurin, Saad Godil, Shimon Whiteson, and Bryan Catanzaro. Can q-learning with graph networks learn a generalizable branching heuristic for a sat solver? Advances in Neural Information Processing Systems, 33:9608-9621, 2020.
+Ludovic Le Frioux, Souheib Baarir, Julien Sopena, and Fabrice Kordon. Painless: a framework for parallel sat solving. In Theory and Applications of Satisfiability Testing-SAT 2017: 20th International Conference, Melbourne, VIC, Australia, August 28-September 1, 2017, Proceedings 20, pp. 233-250. Springer, 2017.
+Ludovic Le Frioux, Souheib Baarir, Julien Sopena, and Fabrice Kordon. Modular and efficient divide-and-conquer sat solver on top of the painless framework. In Tools and Algorithms for the Construction and Analysis of Systems: 25th International Conference, TACAS 2019, Held as Part of the European Joint Conferences on Theory and Practice of Software, ETAPS 2019, Prague, Czech Republic, April 6-11, 2019, Proceedings, Part I 25, pp. 135-151. Springer, 2019.
+Min Li, Zhengyuan Shi, Qiuxia Lai, Sadaf Khan, Shaowei Cai, and Qiang Xu. Deepsat: An eda-driven learning framework for sat. arXiv preprint arXiv:2205.13745, 2022.
+Jia Hui Liang, Vijay Ganesh, Pascal Poupart, and Krzysztof Czarnecki. Learning rate based branching heuristic for sat solvers. In Theory and Applications of Satisfiability Testing-SAT 2016: 19th International Conference, Bordeaux, France, July 5-8, 2016, Proceedings 19, pp. 123-140. Springer, 2016a.
+Jia Hui Liang, Chanseok Oh, Vijay Ganesh, Krzysztof Czarnecki, and Pascal Poupart. Maple-comsps, maplecomsp s 1rb, maplecomsp s chb. Proceedings of SAT Competition, 2016, 2016b.
+Hongduo Liu, Peng Xu, Yuan Pu, Lihao Yin, Hui-Ling Zhen, Mingxuan Yuan, Tsung-Yi Ho, and Bei Yu. Neuroselect: Learning to select clauses in sat solvers. In ACM/IEEE Design Automation Conference (DAC), 2024.
+Andrew L Maas, Awni Y Hannun, Andrew Y Ng, et al. Rectifier nonlinearities improve neural network acoustic models. In Proc. icml, volume 30, pp. 3. Atlanta, GA, 2013.
+
+Joao Marques-Silva, Inês Lynce, and Sharad Malik. Conflict-driven clause learning sat solvers. In Handbook of satisfiability, pp. 133-182. ios Press, 2021.
+Saeed Nejati and Vijay Ganesh. Maplepainless-dc parallel sat solver for sat competition 2020. SAT COMPETITION 2020, pp. 38.
+Saeed Nejati, Zack Newsham, Joseph Scott, Jia Hui Liang, Catherine Gebotys, Pascal Poupart, and Vijay Ganesh. A propagation rate based splitting heuristic for divide-and-conquer solvers. In Theory and Applications of Satisfiability Testing-SAT 2017: 20th International Conference, Melbourne, VIC, Australia, August 28-September 1, 2017, Proceedings 20, pp. 251-260. Springer, 2017.
+Saeed Nejati, Ludovic Le Frioux, and Vijay Ganesh. A machine learning based splitting heuristic for divide-and-conquer solvers. In *Principles and Practice of Constraint Programming: 26th International Conference*, CP 2020, Louvain-la-Neuve, Belgium, September 7–11, 2020, Proceedings 26, pp. 899–916. Springer, 2020.
+Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, et al. Pytorch: An imperative style, high-performance deep learning library. Advances in neural information processing systems, 32, 2019.
+John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. arXiv preprint arXiv:1707.06347, 2017.
+Daniel Selsam and Nikolaj Björner. Guiding high-performance sat solvers with unsat-core predictions. In Theory and Applications of Satisfiability Testing-SAT 2019: 22nd International Conference, SAT 2019, Lisbon, Portugal, July 9-12, 2019, Proceedings 22, pp. 336-353. Springer, 2019.
+Zhengyuan Shi, Min Li, Yi Liu, Sadaf Khan, Junhua Huang, Hui-Ling Zhen, Mingxuan Yuan, and Qiang Xu. Satformer: Transformer-based unsat core learning. In 2023 IEEE/ACM International Conference on Computer Aided Design (ICCAD), pp. 1-4. IEEE, 2023.
+Wenxi Wang, Yang Hu, Mohit Tiwari, Sarfraz Khurshid, Kenneth McMillan, and Risto Miikkulainen. Neuroback: Improving cdcl sat solving using graph neural networks. In The Twelfth International Conference on Learning Representations, 2023.
+Zonghan Wu, Shirui Pan, Fengwen Chen, Guodong Long, Chengqi Zhang, and S Yu Philip. A comprehensive survey on graph neural networks. IEEE transactions on neural networks and learning systems, 32(1):4-24, 2020.
+Emre Yolcu and Barnabás Póczos. Learning local search heuristics for boolean satisfiability. Advances in Neural Information Processing Systems, 32, 2019.
+Wenjie Zhang, Zeyu Sun, Qihao Zhu, Ge Li, Shaowei Cai, Yingfei Xiong, and Lu Zhang. Nlocalsat: Boosting local search with solution prediction. arXiv preprint arXiv:2001.09398, 2020.
+Jie Zhou, Ganqu Cui, Shengding Hu, Zhengyan Zhang, Cheng Yang, Zhiyuan Liu, Lifeng Wang, Changcheng Li, and Maosong Sun. Graph neural networks: A review of methods and applications. AI open, 1:57-81, 2020.
+
+# A RELATED WORK
+
+# A.1 DIVIDE-AND-CONQUER SAT SOLVERS AND THEIR SPLITTING HEURISTICS
+
+Divide-and-Conquer (D&C) SAT solvers have gained prominence due to their ability to leverage parallel computing resources to tackle large and complex SAT problems efficiently. These solvers divide the problem into smaller subproblems, which are then solved independently. A crucial aspect of their performance is the heuristic used to select the best split variable, which significantly impacts the overall solving time and the balance of the resulting subspaces.
+
+Treengeling (Fleury & Heisinger, 2020) and Paracooba (Heisinger et al., 2020) are advanced SAT solvers that employ the Cube-and-Conquer method to harness parallelism. Treengeling utilizes a look-ahead heuristic during the Cube phase to divide the SAT problem into numerous subproblems, or cubes. This heuristic selects the split variable based on the number of unit propagations, aiming to create balanced subspaces. Treengeling generates more cubes than the available computational cores to ensure efficient utilization of all resources. Each cube is then solved independently by sequential CDCL solvers in the Conquer phase. Similarly, Paracooba extends the Cube-and-Conquer method to a distributed environment. It divides the SAT problem into many cubes using a look-ahead heuristic and distributes these cubes to different nodes across a network. Each node runs a CDCL solver to independently solve its assigned subproblems. By aggregating the computational power of multiple machines, Paracooba effectively handles significantly larger SAT problems, ensuring better load balancing and reducing overall solving time.
+
+In contrast to look-ahead techniques, some solvers use look-back methods that dynamically analyze the search performed by the solver, as well as formula statistics, to identify the best candidate at the current splitting point. For example, Ampharos (Audemard et al., 2016) picks the variable with the highest VSIDS activity, while MapleAmpharos (Nejati et al., 2017) uses a propagation-rate (PR) based splitting heuristic. This heuristic ranks variables by the ratio of the propagations they cause to the number of times they are branched on, selecting the highest-ranking variables for splitting. Another explored track is the number of flips of the variables (Audemard et al., 2014b;a). A flip occurs when a variable is propagated to the reverse of its last propagated value. Ranking the variables according to the number of their flips and choosing the highest one as a split variable helps to generate search subspaces with comparable computational time. This approach can also be used to limit the number of variables on which the look-ahead propagation is applied by preselecting a predefined percentage of variables with the highest number of flips. MaplePainlessDC (Nejati et al., 2020) uses a machine learning-based splitting heuristic to optimize divide-and-conquer parallel Boolean SAT solvers. The paper developed pairwise ranking models and minimum ranking models using a random forest classifier, comparing and selecting split variables based on structural features of the formula and dynamic probing statistics.
+
+The Painless Framework is a modular and high-performance parallel SAT solving framework that supports the implementation of various components, including multiple splitting heuristics. It allows developers to create parallel SAT solvers that can compete with state-of-the-art solvers. The framework implements several splitting heuristics, ensuring its solvers can match the performance of leading SAT solvers. Our reinforcement learning environment and the RDC-SAT solver are developed based on the Painless framework. This framework was also used for comparative experiments to evaluate the effectiveness of our approach.
+
+# A.2 OPTIMIZING SAT SOLVING WITH GNNS AND RL
+
+Graph Neural Networks (GNNs) and Reinforcement Learning (RL) have been increasingly applied to optimize SAT solving, showing promising results. Research like Graph-Q-Sat has utilized GNNs to learn branch heuristics in CDCL solvers, replacing VSIDS. Similarly, RL techniques have been used to train heuristics to enhance decision-making in SAT solvers. However, the overhead of calling GNNs for each variable decision in CDCL solvers is very high, making it difficult to apply to real-world problems. Consequently, recent research in this field has focused on reducing the overhead and frequency of GNN calls.
+
+Graph-Q-Sat(Kurin et al., 2020) is an approach that improves the heuristics of SAT solvers by employing GNNs and reinforcement learning. It uses value-based reinforcement learning to train a branching heuristic that significantly reduces the number of iterations compared to VSIDS. However,
+
+it requires calling GNNs at each decision point, which incurs high computational costs and does not reduce the actual wall-clock solving time. To mitigate this issue, other research, such as NeuroCore (Selsam & Bjørner, 2019), predicts the unsatisfiable core through periodic GNN inferences, reducing the frequency of GNN calls. While this approach enhances solver performance, it still demands substantial computational resources and relies heavily on GPUs. Neuroglue (Han, 2020) enhances SAT solvers by predicting glue variables, which are critical for efficient clause learning. This method periodically updates variable scores using GNN-based insights, significantly improving solver performance without incurring substantial computational costs. NeuroBack (Wang et al., 2023) builds upon these methods by making offline GNN predictions about variable phases before the SAT solving begins, thus eliminating the need for frequent online inferences and reducing computational costs. NeuroBack guides CDCL solvers like Kissat with a single GNN call for phase predictions, increasing performance on recent SAT competition benchmarks. SATformer (Shi et al., 2023) uses a GNN to extract clause representations only once, reducing computational costs, and applies a Transformer to predict unsatisfiability. Integrated into solvers like CaDiCaL and Kissat, SATformer improves solving efficiency over baseline methods. NeuroSelect (Liu et al., 2024) employs a GNN to guide the deletion of learned clauses, making only a single GNN call per instance. On instances with fewer than 400,000 nodes from the SAT Competition 2022, NeuroSelect improves performance over Kissat These methods primarily optimize branch heuristics and phase heuristics in CDCL solvers, but the overhead of GNNs remains a challenge.
+
+In contrast, our approach focuses on the importance of splitting heuristics in Divide-and-Conquer (D&C) solvers. The invocation frequency of these heuristics is relatively low, making it feasible to use GNNs without incurring high computational costs. Our RDC-GPU method leverages GNNs to significantly optimize D&C solver performance with minimal GNN calls. Even without GPUs, we can adopt a strategy similar to NeuroBack. By using RDC-CPU-once, we make a single GNN call to guide subsequent splitting decisions, thereby optimizing splitting heuristics while minimizing GNN overhead.
+
+# B IMPLEMENTATION DETAILS OF INTERACTIVE DIVIDE-AND-CONQUER ENVIRONMENT
+
+# B.1 DIVIDE-AND-CONQUER IN PAINLESS FRAMEWORK
+
+The Painless framework (Le Frioux et al., 2017; 2019) is a modular and high-performance parallel SAT-solving framework that is both flexible and ideal for comparing different algorithms. Within Painless, the D&C algorithm is implemented using a master-slave architecture that employs a workstealing strategy to achieve dynamic load balancing. Whenever a CPU core becomes idle, the master thread interrupts an active worker, splits its subproblem, and assigns it to two separate workers. Painless also supports clause sharing, allowing multiple workers to exchange learned clauses to speed up the solving process. This design makes the framework highly adaptable and efficient, empowering researchers to explore and compare various heuristics for parallel SAT solving.
+
+The Painless framework incorporates several D&C solvers, which can compete effectively with the leading solvers available. For the basic configuration in our experiment, we used the best-performing settings identified through experimentation. This includes utilizing MapleCOMSPS (Liang et al., 2016b) as the sequential solver, the "altoall" clause-sharing strategy, and the "clone" strategy. Specifically, MapleCOMSPS, which won the SAT Competition in 2016, serves as the sequential solver. The "altoall" clause-sharing strategy ensures that all solvers directly share clauses with an LBD below 4, which helps to improve the efficiency of the solving process. Additionally, the "clone" strategy allows a new worker, after requesting and dividing a partition, to duplicate the original solver and tackle the next problem. This helps to reuse learned clauses and internal solver information to accelerate problem-solving.
+
+Our Interactive Divide-and-Conquer Environment is primarily divided into two parts. First, we encapsulate the necessary components in the PainlessSolver within the Painless C++ environment, derived from painless-v2, The basic configuration is based on P-CLONE-FLIP (Le Frioux et al., 2019), and use Pybind11 to create a shared library. Then, we create a custom PainlessEnv in Python to facilitate interaction with the agent. PainlessSolver handles the solving process,
+
+
+Figure 6: Interactive Divide-and-Conquer environment
+
+while PainlessEnv provides the interface for the agent to interact, allowing for dynamic state transitions and reward calculations.
+
+# B.2 PAINLESSSOLVER IN C++
+
+Algorithm 1: PainlessSolver::step
+Input: action
+Output: state, done
+1 if there is a pending splitting request then
+2 pass action as split variable to worker;
+3 while not done do
+4 if no globalEnding, no pending splitting requests, and no finished workers then
+5 wait for signal;
+6 parse finished workers and insert as leaf nodes in binary tree;
+7 if there is a pending splitting request then
+8 state = create graph from subproblem;
+9 parse worker and insert as internal node in binary tree;
+10 return state, done = false;
+11 if globalEnding then
+12 return root, done = true;
+
+We designed a new class, PainlessSolver, to handle all interactions and maintain statistics with the Python environment. When solving a new SAT problem, a PainlessSolver instance is created, initializing the Master thread, Worker threads, and Sharer thread, and setting the initial solving state. The Master thread manages the Worker threads, which use a CDCL solver to solve SAT problems. The Sharer thread handles the sharing of learned clauses among the Worker threads. Additionally, the PainlessSolver thread executes the logic described in the corresponding pseudocode. This class uses the solve() method to start the entire solving process. The interface built with Pybind11 enables the direct transmission of data generated by Painless to Python algorithms for processing and the reception of decision outputs from the Python environment to control the solving process. The core function step() of PainlessSolver is shown in Algorithm 1.
+
+Due to Python's Global Interpreter Lock (GIL), only one thread can execute Python bytecode at a time. In a D&C solver, multiple workers may request splits simultaneously. To manage these requests,
+
+we use a queue. When the master thread detects idle threads, it interrupts a worker, adds its instance to the pending split queue, and signals the PainlessSolver thread(line 5). The worker then blocks, waiting for the split variable. The PainlessSolver thread dequeues the worker instance, parses the problem state, adds it as an internal node to the binary tree, and sends the state to the Python environment(line 7-10). After processing, the PainlessSolver thread returns the split variable, allowing the worker to continue solving(line 2). While one worker waits, others continue solving their subproblems. Additionally, PainlessSolver parses finished workers and inserts them as leaf nodes in the tree(line 6). Once solving is complete, it returns the root node and sets done to true. Locks and signals ensure thread-safe communication and protect data structures.
+
+Finally, we used Pybind11 to package PainlessSolver into a shared library. This allows the shared library to be directly imported into Python, enabling interaction with PainlessSolver through its provided interfaces.
+
+# B.3 PAINLESSENV IN PYTHON
+
+To facilitate interaction between the agent and the environment, we defined a custom environment similar to gym. Env. OpenAI's gym library provides a widely-used framework for custom reinforcement learning environments. However, gym. Env is designed for linear state transitions, where each state follows a sequential order, and rewards are computed based on this continuous sequence. In these environments, the step function returns the "next state," which is not suitable for our case. In a divide-and-conquer reinforcement learning environment, each split creates two subproblems, forming a binary tree structure rather than a direct "forward" relationship between states. Additionally, it is not possible to immediately obtain the reward in divide-and-conquer, as this information is embedded within the tree structure. To address these challenges, we created a custom class PainlessEnv, mimicking the basic structure of the gym library but without inheriting it. This allows us to define state transitions and reward logic flexibly, accurately handling parallel and tree-structured transitions.
+
+PainlessEnv accepts a set of SAT problem paths and related configuration parameters as initial inputs, such as solver timeout, CPU core count, and levels of learned clauses. It provides reset and step methods for interaction. The reset method fully reinitializes the solving environment, creating a new PainlessSolver instance, loading a new SAT problem, and starting the solving process. The agent returns a split variable, which the step method passes to the PainlessSolver environment, then waits for the next split state while recording necessary training data. Upon solving the problem or timeout, PainlessEnv retrieves the root node of the binary tree, analyzes the solving process, and calculates the reward for each action. It performs a post-order traversal from the root node to compute the discounted rewards for all internal node states. This tree structure details the solving paths from root to leaf nodes, storing all this data in a replay buffer for subsequent machine learning model training.
+
+# C DETAILS OF REINFORCED DIVIDE-AND-CONQUER
+
+# C.1 NEURAL NETWORK
+
+Our approach utilizes a modified Graph Neural Network (GNN) structure similar to Graph-Q-Sat, replacing the DQN structure with an Actor-Critic network. As shown in Figure 7, the neural network encodes the SAT problem information as a graph. The Encoder transforms initial features into higher-dimensional representations, the Processor performs iterative message passing between nodes, edges, and global attributes, and the Decoder outputs variable, clause, and global features. The Actor network evaluates the variable features, outputs the probabilities for selecting each variable after removing invalid split variables, and the Critic network uses clause and global features to assess the current state's value. We implemented our neural network using PyTorch(Paszke et al., 2019) and PyTorch Geometric(PyG)(Fey & Lenssen, 2019).
+
+We adopted Graph Networks (Battaglia et al., 2018) as the basis of our GNN architecture. This framework is known for its versatility in handling various graph structures. The GN framework consists of three main parts: Encoder, Processor, and Decoder. The Encoder independently converts node, edge, and global features into higher-dimensional representations using MLPs. The Processor, the core component, updates these features through multiple layers of message passing, aggregating information from connected nodes and edges, and applying batch normalization to ensure scale
+
+
+Figure 7: Network of RDC-SAT.
+
+invariance across nodes. The Decoder simplifies the complex graph structure into actionable outputs, retaining node and global features for the subsequent PPO usage while discarding edge features. Layer normalization (Ba et al., 2016) is applied within MLPs to expedite training convergence and reduce sensitivity to input scale variations.
+
+The Actor-Critic network leverages features derived from the GNN to perform variable selection and value estimation. The Actor network, responsible for decision-making, processes the variable features through an MLP and applies a softmax function to produce a probability distribution over the variables, excluding already chosen or invalid ones via a masking strategy. The Critic network evaluates the cumulative rewards from the current state using clause and global features. It employs attention pooling networks to aggregate clause nodes and global features, which are then fed into an MLP to generate the state value. This architecture allows the system to separate decision-making from value assessment, facilitating more precise policy adjustments and long-term reward optimization.
+
+# C.2 SETTINGS AND HYPERPARAMETERS
+
+We implemented a Distributed Proximal Policy Optimization (DPPO) framework, as shown in Figure 8, to accelerate data collection and training using one training process and multiple exploration processes. This framework includes a message queue for transferring collected data from exploration processes to the training process and a parameter server for synchronizing updated network parameters from the training process to the exploration processes. The message queue allows real-time transmission of states, actions, rewards, and subsequent states to the training process, which then stores them in a replay buffer for training. After updating the network parameters, the training process synchronizes these updates to the parameter server. Exploration processes check the parameter server for updates before solving new problems and update their parameters accordingly.
+
+Table 2 shows hyperparameters were used in our experiments:
+
+# D DATASETS
+
+# D.1 TRAINING DATA
+
+For our task involving reinforcement learning and graph neural networks, the most critical factors are problem size, difficulty, and structural richness. The ideal dataset should have a moderate problem size, which demands less memory during training; moderate difficulty, allowing for the rapid collection of substantial training data; and rich structure, enabling the GNN to learn more information. Although datasets like SAT Competition possess rich structural features, their generally high difficulty and larger size significantly slow down the training process for reinforcement learning. In contrast, random datasets offer highly controllable size and difficulty, and the learning clauses generated during the process can introduce additional structural features. Therefore, we chose to use a random dataset for our experiments.
+
+Our training dataset comes from the dataset provided by the study(Cameron et al., 2020). This study provides 11 datasets ranging from 100 to 600 variables, each containing 5000 satisfiable (SAT) and
+
+
+Figure 8: Architecture of. Exploration agents interact with the PainlessEnv on CPU, collect training data, and send it to the message queue. The training agent on GPU samples data from the replay buffer to update the model parameters, which are then synchronized back to the exploration agents.
+
+5000 unsatisfiable (UNSAT) problems. We randomly selected 500 SAT and 500 UNSAT problems from the datasets with 300 and 350 variables as our training dataset. These problems have solving times ranging from a few seconds to several tens of seconds, and during the solving process, they generate thousands to tens of thousands of core and tier2 learned clauses. Consequently, the resulting graphs have relatively rich structural features.
+
+# D.2 EVALUATION DATA
+
+To investigate whether RDC-SAT has effectively learned the splitting heuristics, we randomly selected 200 SAT instances from the random dataset at the phase transition. This set includes 100 problems from the 450-1917 dataset and 100 from the 500-2129 dataset, with a 1:1 ratio of satisfiable to unsatisfiable instances. This dataset provides a suitable level of difficulty for the baseline solvers, enabling us to distinguish their performance.
+
+To evaluate whether RDC-SAT, trained on random datasets, can generalize to other types of more extensive, application-oriented datasets, we focused on small to medium-sized SAT problems from the SAT Competitions dataset. Some problems in the competition are extremely large, with many SAT instances having tens of millions of clauses. Applying GNNs to these problems would consume significant memory and computational resources. For such large-scale problems, our RDC-SAT solver automatically switches to the default splitting heuristics. Therefore, we primarily focus on the performance of various methods on small to medium-sized SAT problems. We first screened 400 problems from the SAT Competition 2023 (Balyo et al., 2023) dataset and selected those with a total number of variables and clauses less than one million, resulting in 305 SAT problems. These small to medium-sized problems constitute the majority of the SAT Competition.
+
+# EXPERIMENT DETAILS
+
+# E.1 BASELINES SELECTION
+
+The Painless framework provides three splitting heuristics: based on Flips, PR, and using CDCL solver branch heuristics to select split variables. We used these three methods for our evaluations. However, in a small-scale test, we found that the PR method did not perform well on the random dataset, leading us to exclude it from our random dataset tests. Additionally, we chose not to use MaplePainlessDC as a baseline. MaplePainlessDC(Nejati et al., 2020) is also a D&C solver based on the Painless framework, which uses a machine learning method to optimize the splitting heuristic. While the performance reported in the original paper exceeds that of Treengeling, it has been observed
+
+Table 2: Hyperparameters used in our experiments
+
+
Parameter
Value
Description
PainlessEnv Configuration
timeout
1000
Maximum time (in seconds) allowed for exploration agent
ncpus
16
The number of threads used by each exploration agent
use_learnt
2
In addition to the original clause, two levels of learning clauses, core and tire2, are used to build the graph
node feats
4
Number of node features
edge feats
2
Number of edge features
global feats
4
Number of global features
use_LRB
true
Use LRB as branch heuristic
Network Configuration
encoder_out_dims
(32, 32, 32)
Dimensions for the encoder outputs (node, edge, global)
core_out_dims
(64, 64, 32)
Dimensions for the core outputs (node, edge, global)
decoder_out_dims
(32, 1, 32)
Dimensions for the decoder outputs (node, edge, global)
core_steps
4
Number of processing steps in the Processor
n Hidden
1
Number of hidden layers in Processor's MLP
hidden_size
64
Size of hidden layers in GNN's MLP
e2v_aggregator
sum + BN
Aggregation method for edge to vertex. After sum aggregation, we use batch normalization(Ioffe & Szegedy, 2015) to normalize the features
independent_block_layers
0
Number of hidden layer of Encoder and Decoder
n HiddenActor
2
Number of hidden layer of actor's MLP
n Hidden_critic
2
Number of hidden layer of critic's MLP
activation_function
LeakyRelu(Maas et al., 2013)
Activation function unsed in MLP
DPPO Configuration
optimizer
Adam(Kingma & Ba, 2014)
Optimizer used
lr_gnn
1e-3
Learning rate for the GNN
lr_ACTor
1e-3
Learning rate for the actor network
lr_critic
1e-3
Learning rate for the critic network
policy_loss_weight
1.0
Weight of the policy loss
value_loss_weight
0.5
Weight of the value loss
entropy_loss_weight
0.1
Weight of the entropy loss
eps Clip
0.2
Clipping parameter for PPO
epsilon_start
1.0
Starting value for epsilon in epsilon-greedy exploration
epsilon_final
0.01
Final value for epsilon in epsilon-greedy exploration
epsilon Decay
200
Decay rate for epsilon
normalize Reward
True
Whether to normalize rewards
gamma
1.0
Discount factor for future rewards
train_epochs
1
Number of training epochs
train_max_steps
10000
Maximum number of training steps
sample_max_nodes
300000
Maximum number of nodes of one batch to sample
num_of_process
5
Number of exploration processes
+
+from the experimental results of SAT Competition 2020(Nejati & Ganesh) that MaplePainlessDC can produce incorrect results in a small number of SAT instances. This potential unreliability in solving performance led us to exclude MaplePainlessDC as a baseline in our evaluations.
+
+# E.2 EXPLANATION FOR USING LRB OVER VSIDS IN RANDOM DATASET EXPERIMENTS
+
+The decision to use different branching heuristics for random and SAT Competition benchmarks stems from the observed poor performance of VSIDS on random datasets, as commonly noted in empirical studies. We conducted a small experiment using VSIDS as the branching heuristic on 100 instances from the 400-1704 random dataset with a time limit of 1000 seconds. The results of this experiment are presented in Table 3. This performance is significantly worse compared to using LRB as the branching heuristic (see Table 4 for a comparison). Therefore, we opted for Maple's LRB branching heuristics for both training and evaluation on the random datasets. It is also worth noting that even with VSIDS, RDC-SAT still significantly outperforms the baseline.
+
+Table 3: Performance Comparison of Splitting Heuristics on 400-1704 random dataset with VSIDS as Branching Heuristics
+
+
Splitting Heuristics
Clock time (s)
PAR2
Solved
RDC-GPU-always
388.23
588.18
80
RDC-CPU-once
405.48
703.34
77
FLIPS
460.70
720.72
74
VSIDS
502.28
852.20
65
+
+# E.3 MORE EVALUATION RESULT ON RANDOM DATASET
+
+Table 4 shows a detailed comparison of various splitting heuristics across different datasets. This table includes all instances, including those that no solver could solve within the time limit.
+
+Firstly, for relatively easy SAT problems, such as those in the 350-1491 dataset, using the default splitting heuristics like FLIPS and LRB can yield quick results. In these cases, the overhead of using a GNN-based approach might actually slow down the process. For example, FLIPS and LRB both performed better than RDC-GPU-always and RDC-CPU-once in terms of average solving time. This is because the simpler problems do not require the sophisticated analysis that GNN provides, and the additional computation introduces unnecessary delay. However, as the problem difficulty increases, the advantages of RDC-SAT become more apparent. In the 450-1917 dataset, RDC-GPU-always significantly outperformed traditional methods, with a total average solving time of 526.21 seconds compared to FLIPS' 827.07 seconds and LRB's 780.34 seconds. On the most challenging dataset, 500-2129, RDC-GPU-always not only achieved a lower average solving time but also solved more instances than the baselines. Specifically, RDC-GPU-always solved 30 instances in this dataset, whereas the best baseline method solved only 26 instances, representing a $15.38\%$ increase in the number of solved instances.
+
+Additionally, the table reveals that the PR splitting heuristic performed very poorly on the 350-1491 dataset, with an average solving time of 61.65 seconds. This performance suggests that the PR method may not be suitable for solving random SAT problems. Due to this, we did not test the PR method on larger datasets.
+
+Table 4: Comparison of splitting Heuristics across datasets
+
+
Dataset
Splitting Heuristics
SAT Avg (s)
#SAT
UNSAT Avg (s)
#UNSAT
Total Avg (s)
PAR2
random 350-1491
RDC-GPU-always
12.34
50
19.80
50
16.03
16.03
RDC-CPU-once
11.16
50
17.99
50
14.58
14.58
FLIPS
10.76
50
17.22
50
13.99
13.99
LRB
11.02
50
17.96
50
14.49
14.49
PR
22.36
50
103.83
50
61.65
61.65
random 400-1704
RDC-GPU-always
19.14
50
63.38
50
41.27
41.27
RDC-CPU-once
18.29
50
64.35
50
41.32
41.32
FLIPS
18.16
50
80.27
50
49.21
49.21
LRB
17.90
50
67.84
50
42.87
42.87
random 450-1917
RDC-GPU-always
291.48
50
760.94
49
526.21
576.21
RDC-CPU-once
353.63
50
835.91
49
594.75
644.77
FLIPS
390.83
50
1263.31
48
827.07
927.07
LRB
341.64
50
1219.04
47
780.34
930.34
random 500-2129
RDC-GPU-always
3072.05
26
4777.20
4
3924.63
7424.63
RDC-CPU-once
3397.68
23
4804.05
4
4100.86
7750.86
FLIPS
3255.54
24
4898.27
2
4076.91
7776.91
LRB
3627.84
20
4898.62
3
4263.23
8113.23
+
+# E.4 DOMAIN-SPECIFIC BENCHMARK COMPARISON OF RDC-SAT AND SOTA PORTFOLIO SOLVERS
+
+SAT Competition results indicate that D&C solvers generally lag behind portfolio approaches in average performance. However, D&C solvers demonstrate unique advantages in specific scenarios.
+
+For instance, we conducted a small-scale experiment on a dataset containing 100 randomly selected instances from the miter benchmarks, which are used to verify circuit equivalence. The timeout was set to 1000 seconds, with all methods using 16 threads and VSIDS as the branch heuristic for the Sequential Solver. Using the model trained in our work. Table 5 compares our RDC-SAT with the D&C solver FLIPS (Le Frioux et al., 2019) and PRS (Chen et al., 2023) – the SAT Competition 2023 Parallel Track champion portfolio solver.
+
+Table 5: Performance Comparison on Circuit Equivalence Verification
+
+
Method
Solved
Avg. Time (s)
PAR2
RDC-SAT (D&C)
80
313.64
513.64
FLIPS (D&C)
76
333.66
573.66
PRS (Portfolio)
79
385.44
595.44
+
+This result shows that D&C solvers can outperform Portfolio solvers in specific domains. In this experiment, RDC-SAT solved the most instances and achieved the lowest PAR2, reducing PAR2 by $13.74\%$ compared to the SOTA Portfolio solver PRS. The RDC-SAT model, trained on a random dataset, generalized effectively to the circuit equivalence dataset.
+
+# F THREATS TO VALIDITY
+
+During the training phase of our D&C SAT solver using reinforcement learning, several potential threats to validity may impact the results. Firstly, due to Python's Global Interpreter Lock (GIL) enforcing single-threaded execution for Python bytecode, we use a message queue to manage all split requests. When multiple threads simultaneously request splits, only one worker can call the neural network to obtain the split point, while other threads enter a waiting state. This restriction may lead to inefficiencies and does not fully replicate the actual D&C solver's runtime environment. Additionally, during training, multiple threads simultaneously calling the neural network, along with the training process itself, can cause GPU resource contention, leading to delays in split decisions and affecting training performance. Consequently, we opted to use CPUs for neural network calls during training to avoid GPU contention. However, this results in overestimated split times during training, as it does not accurately reflect the performance of the D&C solver in a real-world environment. Furthermore, our current setup limits the efficient use of computational resources, particularly GPUs. If more computational resources were available, such as additional GPUs for running the DPPO framework, this issue could be significantly mitigated. Enhanced computational resources would allow for more realistic training conditions, better reflecting the actual operational environment of the D&C solver, and potentially leading to more effective learning outcomes. These factors may result in the model's performance not reaching its optimal potential. With more computational resources to train the model and better simulate actual environments, RDC-SAT could achieve better results.
+
+Another potential threat to validity pertains to the experimental evaluation of our solvers. All experiments were conducted on a machine equipped with a CPU featuring 144 logical cores, an A100 GPU, and 256 GB of RAM. Due to the extensive time required for the experiments, we executed multiple solvers in parallel, allocating 16 threads to each solver. For the RDC-CPU-once configuration, the neural network calls were restricted to using a maximum of 16 threads. Although the number of threads used per solver is less than the total logical cores, the total number of threads during the SAT Competition experiments exceeded the number of physical cores, potentially leading to resource contention. This contention could affect performance, but it should impact all solvers equally, thus maintaining fairness in the comparisons. We primarily used small to medium-sized SAT problems, so we did not observe significant memory contention.
\ No newline at end of file
diff --git a/ICLR/2025/Learning Splitting Heuristics in Divide-and-Conquer SAT Solvers with Reinforcement Learning/images.zip b/ICLR/2025/Learning Splitting Heuristics in Divide-and-Conquer SAT Solvers with Reinforcement Learning/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..4e8509508423b5ed581df3c53b4aa937cdd7c13e
--- /dev/null
+++ b/ICLR/2025/Learning Splitting Heuristics in Divide-and-Conquer SAT Solvers with Reinforcement Learning/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c942b9bb544cc76454934c564c661da3418b57e11e538a6ca2a56cbd35cfe3ea
+size 684293
diff --git a/ICLR/2025/Learning Splitting Heuristics in Divide-and-Conquer SAT Solvers with Reinforcement Learning/layout.json b/ICLR/2025/Learning Splitting Heuristics in Divide-and-Conquer SAT Solvers with Reinforcement Learning/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..b0102609590060101bbf5e3e0e8956cb5bec3b9a
--- /dev/null
+++ b/ICLR/2025/Learning Splitting Heuristics in Divide-and-Conquer SAT Solvers with Reinforcement Learning/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:052295ff2629e44218212195b3a753de4a06d63207913fc0a282777d7f096ebc
+size 458426
diff --git a/ICLR/2025/Learning Structured Representations by Embedding Class Hierarchy with Fast Optimal Transport/f0dfe709-7ee3-4acf-868b-730d889591c5_content_list.json b/ICLR/2025/Learning Structured Representations by Embedding Class Hierarchy with Fast Optimal Transport/f0dfe709-7ee3-4acf-868b-730d889591c5_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..e3be7bbbbd96ab3ac356ea1943472d5bed8fa451
--- /dev/null
+++ b/ICLR/2025/Learning Structured Representations by Embedding Class Hierarchy with Fast Optimal Transport/f0dfe709-7ee3-4acf-868b-730d889591c5_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a1410f7b50bc17999321e151769c2d6d4e02f132c11aa929b3b3af511e00d8d1
+size 192178
diff --git a/ICLR/2025/Learning Structured Representations by Embedding Class Hierarchy with Fast Optimal Transport/f0dfe709-7ee3-4acf-868b-730d889591c5_model.json b/ICLR/2025/Learning Structured Representations by Embedding Class Hierarchy with Fast Optimal Transport/f0dfe709-7ee3-4acf-868b-730d889591c5_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..2262c76d52f5763b561c51e205009878ad53921d
--- /dev/null
+++ b/ICLR/2025/Learning Structured Representations by Embedding Class Hierarchy with Fast Optimal Transport/f0dfe709-7ee3-4acf-868b-730d889591c5_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:58a9f9b21f615f41e4d2d8f2af5730471b2fceb44f2e6bc0e7b312dfb4694990
+size 224089
diff --git a/ICLR/2025/Learning Structured Representations by Embedding Class Hierarchy with Fast Optimal Transport/f0dfe709-7ee3-4acf-868b-730d889591c5_origin.pdf b/ICLR/2025/Learning Structured Representations by Embedding Class Hierarchy with Fast Optimal Transport/f0dfe709-7ee3-4acf-868b-730d889591c5_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..5611ac8a8cecf4c27fab4d30ee5f3ab451c65646
--- /dev/null
+++ b/ICLR/2025/Learning Structured Representations by Embedding Class Hierarchy with Fast Optimal Transport/f0dfe709-7ee3-4acf-868b-730d889591c5_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9fb9fb6ee70a5d6193af0fe10c42dc78e80083d52a821acf561e570e61dbce51
+size 1974966
diff --git a/ICLR/2025/Learning Structured Representations by Embedding Class Hierarchy with Fast Optimal Transport/full.md b/ICLR/2025/Learning Structured Representations by Embedding Class Hierarchy with Fast Optimal Transport/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..62c2c742e06fce33830401724bbdf164e363f696
--- /dev/null
+++ b/ICLR/2025/Learning Structured Representations by Embedding Class Hierarchy with Fast Optimal Transport/full.md
@@ -0,0 +1,712 @@
+# LEARNING STRUCTURED REPRESENTATIONS BY EMBEDDING CLASS HIERARCHY WITH FAST OPTIMAL TRANSPORT
+
+Siqi Zeng $^{1}$ Sixian Du $^{2}$ Makoto Yamada $^{3}$ Han Zhao $^{1}$
+
+1University of Illinois, Urbana-Champaign 2Stanford University
+
+3Okinawa Institute of Science and Technology
+
+{siqi6, hanzhao}@illinois.edu; dusixian@stanford.edu, makoto.yamada{oist.jp
+
+# ABSTRACT
+
+To embed structured knowledge within labels into feature representations, prior work (Zeng et al., 2022) proposed to use the Cophenetic Correlation Coefficient (CPCC) as a regularizer during supervised learning. This regularizer calculates pairwise Euclidean distances of class means and aligns them with the corresponding shortest path distances derived from the label hierarchy tree. However, class means may not be good representatives of the class conditional distributions, especially when they are multi-mode in nature. To address this limitation, under the CPCC framework, we propose to use the Earth Mover's Distance (EMD) to measure the pairwise distances among classes in the feature space. We show that our exact EMD method generalizes previous work, and recovers the existing algorithm when class-conditional distributions are Gaussian. To further improve the computational efficiency of our method, we introduce the Optimal Transport-CPCC family by exploring four EMD approximation variants. Our most efficient OT-CPCC variant, the proposed Fast FlowTree algorithm, runs in linear time in the size of the dataset, while maintaining competitive performance across datasets and tasks. The code is available at https://github.com/uiuctml/OTCPCC.
+
+# 1 INTRODUCTION
+
+Supervised classification problems have been a cornerstone in machine learning. While traditional classification methods treat class labels as independent entities, there has been a growing interest in leveraging semantic similarity among classes to improve model performance while following existing label dependency. This is particularly important in fine-grained classification tasks where labels are inherently living on a hierarchy, such as in the CIFAR (Krizhevsky & Hinton, 2009) and ImageNet (Deng et al., 2009) datasets. To capture the hierarchical relationship between classes, Zeng et al. (2022) made a significant contribution by embedding the tree metric of a given class hierarchy into the feature space. They introduced a regularizer, the Cophenetic Correlation Coefficient (CPCC), to correlate the tree metric with the Euclidean distance in the class-conditioned representations. This approach of encoding hierarchical relationship in the latent space not only led to more interpretable features compared to other hierarchical classification methods (Shen et al., 2023), but also improved some generalization performance across multiple datasets.
+
+Despite the value of this framework for embedding class hierarchies, it presents a notable limitation. Specifically, Zeng et al. (2022) uses the $\ell_2$ norm between two class Euclidean centroids, or equivalently, maximum mean discrepancy with the linear kernel, as the distance of two class distributions. However, this approach overlooks the difference of samples within the same class, and thus cannot fully capture the global structural information given pairs of class-conditional distributions, especially when they are multi-modal. On the other hand, the use of Optimal Transport (OT) as an alternative to Euclidean centroids has first gained attention in the context of clustering, where Euclidean centroids neglect the intrinsic geometry of data distributions (Cuturi & Doucet, 2014). For the same motivation, we propose addressing the limitation of $\ell_2$ -CPCC (Zeng et al., 2022), by integrating the OT distance,
+
+also known as the Wasserstein distance, and its variants, as a more effective metric for measuring the distance between class distributions in the problem of embedding hierarchical representations.
+
+Our contributions are as follows: (i) We first generalize the $\ell_2$ -CPCC with EMD, and propose a family of OT-CPCC algorithm to address the limitation of using $\ell_2$ centroids that misrepresents class relationships. We provide a detailed comparative analysis of $\ell_2$ -CPCC versus OT-CPCC about their forward and backward computation. (ii) We propose a novel linear time OT approximation algorithm, FastFT, and apply it in the CPCC framework to learn hierarchical representations that is significantly more efficient than the cubic time exact EMD solution. (iii) We empirically analyze the advantage of OT-CPCC over $\ell_2$ -CPCC across a wide range real-world datasets and tasks.
+
+# 2 PRELIMINARIES
+
+Notation and Problem Setup Throughout the paper we focus on the supervised $k$ -class classification problem. We denote a sample of input $x$ with label $y$ living in the space of $\mathcal{X} \subseteq \mathbb{R}^p$ and $\mathcal{Y} = [k] := \{1, \ldots, k\}$ . The dataset $\mathcal{D}$ consists of $N$ data pairs $\{(x_i, y_i)\}_{i=1}^N$ .
+
+Given the label space $\mathcal{V}$ , we have a corresponding label tree $\mathcal{T}$ that characterizes the relationship between different subsets of $\mathcal{V}$ . In particular, each node of $\mathcal{T}$ is associated with a subset of $\mathcal{V}$ : each leaf node $v$ is associated with a particular class in $\mathcal{V}$ ; any internal node corresponds to the subset that is the union of its leaf children classes; the root node of $\mathcal{T}$ corresponds to the full $\mathcal{V}$ . The metric function of $\mathcal{V}$ is called tree metric $t: \mathcal{V} \times \mathcal{V} \to \mathbb{R}_+$ which measures the similarity of two class labels $u, v$ based on the shortest path distance of two leaf nodes on $\mathcal{T}$ . Intuitively, the tree $\mathcal{T}$ could be understood as a dendrogram of $\mathcal{V}$ that characterizes the similarity of different classes.
+
+Let $\mathcal{Z} \subseteq \mathbb{R}^d$ be the representation/feature space. A deep network $h$ is the composition of two functions $h_{w,\theta} = g_w \circ f_\theta : \mathcal{X} \to \Delta_k$ where $\Delta_k$ is a $k-1$ dimensional probability simplex. The feature encoder $f_\theta$ contains all layers until the penultimate layer of a neural network. On top of that, $g_w : \mathcal{Z} \to \Delta_k$ is a linear classifier with weights $w$ . Let $q$ be the one-hot encoding vector of $y$ . The parameters $\theta$ and $w$ are learned by minimizing $\mathcal{L}$ combining the cross entropy loss $\ell_{\mathrm{CE}}$ with an optional regularization term $\mathcal{R}$ :
+
+$$
+\mathcal {L} (x, y; w, \theta) = \sum_ {i = 1} ^ {k} - q _ {i} \log h _ {w, \theta} (x) _ {i} + \lambda \mathcal {R} (x, y, \theta). \tag {1}
+$$
+
+The hyperparameter $\lambda$ is the regularization factor which controls the strength of $\mathcal{R}$ . The goal of the problem is to embed the class hierarchical relationship in the feature space. At a high level, the distance of class-conditioned representations should approximate the tree metric of classes in $\mathcal{T}$ . This extra constraint can be quantitatively characterized by CPCC as the regularizer term $\mathcal{R}$ .
+
+# 2.1 COPHENETIC CORRELATION COEFFICIENT
+
+The Cophenetic Correlation Coefficient (CPCC) (Sokal & Rohlf, 1962) was introduced as a regularization term in Zeng et al. (2022) to embed the class hierarchy $\mathcal{T}$ in the feature space. CPCC has the same formulation as Pearson's correlation coefficient that measures the linear dependence between two metrics $t$ and $\rho$ :
+
+$$
+\operatorname {C P C C} (t, \rho) = \frac {\sum_ {u < v} (t (u , v) - \bar {t}) (\rho (u , v) - \bar {\rho})}{(\sum_ {u < v} (t (u , v) - \bar {t}) ^ {2}) ^ {- 1 / 2} (\sum_ {u < v} (\rho (u , v) - \bar {\rho}) ^ {2}) ^ {- 1 / 2}}, \tag {2}
+$$
+
+where $\rho$ is a distance function between $u, v$ on feature space $\mathcal{Z}$ , and $\bar{t}, \bar{\rho}$ are the average of each metric. Let $\mathcal{D}_u = \{(x_i^u, u)\}_{i=1}^m$ , $\mathcal{D}_v = \{(x_i^v, v)\}_{i=1}^n \subseteq \mathcal{D}$ be datasets with the same class label $u, v$ . When $\ell_2$ -CPCC is used as a regularizer in Eq. 1,
+
+$$
+\rho (u, v) := \left\| \frac {1}{m} \sum_ {(x _ {i} ^ {u}, u) \in \mathcal {D} _ {u}} f (x _ {i} ^ {u}) - \frac {1}{n} \sum_ {(x _ {j} ^ {v}, v) \in \mathcal {D} _ {v}} f (x _ {j} ^ {v}) \right\| _ {2},
+$$
+
+which is the $\ell_2$ distance of the mean of the two class-conditional features. We call $z_i^u$ as the $i$ -th feature vector with label $u$ , when the context is clear, we drop the superscript $u$ for convenience. By
+
+Algorithm 1 Greedy Flow Matching
+Input: number of features $m,n$ weights $a = (a_{1},\dots ,a_{m})$ $b = (b_{1},\ldots ,b_{n})$ 1: $\pmb {P} = \operatorname {Array}[m\times n]$ 3: for each node $v$ at height h do 2: $i = 0$ 4: if $v$ is a leaf then 5: Pass its flow to its parent 6: else 7: $C_a(v) = \{z:a(z) > 0\} ,C_b(v) = \{z:$ $b(z) > 0\}$ . $z$ is the leaf children of $v$ 8: while $\exists z_{a}\in C_{a}(v)$ and $z_{b}\in C_{b}(v)$ do 9: $\eta = \min (a(z_a),b(z_b))$ 10: $P(z_{a},z_{b}) + = \eta ,a(z_{a}) - = \eta ,b(z_{b}) - = \eta$ 11: Pass non-zero unmatched flows in either $a$ or $b$ to its parent Output: $\pmb{P}$
+
+maximizing CPCC $(\lambda < 0)$ , $\rho$ follows the relation in $t$ : classes sharing a close common ancestor will be grouped together while classes with a higher common ancestor are pulled away with respect to Euclidean distance.
+
+# 2.2 EXACT EARTH MOVER'S DISTANCE
+
+Earth Mover's Distance (EMD), or Optimal Transport distances, aims to find the optimal transportation plan between two discrete measures. For $\mathcal{D}_u$ , let $a = (a_1,\ldots ,a_m)\in \Delta_m$ which is not necessarily uniform. Let $b$ defined similarly for $\mathcal{D}_v$ , and $\delta_z$ is the Dirac delta at $z$ . Define two discrete measures as $\mu = \sum_{i = 1}^{m}a_{i}\delta_{z_{i}},\nu = \sum_{j = 1}^{n}b_{j}\delta_{z_{j}}$ . Then, EMD between probability distributions defined over $\mathcal{Z}$ , is the objective value of the following linear program:
+
+$$
+\min _ {\boldsymbol {P}} \langle \boldsymbol {P}, \boldsymbol {D} \rangle , \quad \text {s . t .} \boldsymbol {P} \mathbf {1} _ {n} = a, \boldsymbol {P} ^ {\top} \mathbf {1} _ {m} = b. \tag {3}
+$$
+
+In Eq.3, $\langle \cdot ,\cdot \rangle$ is the Frobenius inner product, $\mathbf{1}_N$ is the $N$ -dimensional all ones vector, $\pmb{D}$ is the $m\times n$ pairwise distance matrix where $D_{ij} = \| z_i - z_j\|$ , and $\pmb{P}$ is called the flow matrix in the computer science literature, or optimal transport plan in the OT literature, the same size with $\pmb{D}$ with nonnegative entries. Intuitively, this is a minimum cost flow problem. Both source and target flow sum to 1, and we want to find the optimal transportation plan $\pmb{P}$ with the minimum cost with respect to ground similarity $\pmb{D}$ . The norm $\| \cdot \|$ depends on the ground metric of $\pmb{D}$ . We use the $\| \cdot \| _2$ norm as the ground metric throughout this paper.
+
+When the dimension of the feature is 1, fast computation of the EMD distance exists (Houry et al., 2024). Instead of solving a linear program in Eq.3, when $m = n$ , $a_{i} = b_{i} = 1 / n$ for all $i$ , the closed form solution for 1d EMD is: $\mathrm{EMD}_{1\mathrm{d}}(\mu ,\nu) = \frac{1}{n}\sum_{i = 1}^{n}\| z_{(i)} - z_{(i)}^{\prime}\|$ , and $z_{(i)}$ is the $i$ -th order statistic of the sequence $\{z_1,\dots z_n\}$ after sorting. When $m\neq n$ , $\mathrm{EMD}_{1\mathrm{d}}$ generalizes to solving inverse CDF of $\mu ,\nu$ (Peyre & Cuturi, 2019) which requires approximation. To avoid this approximation, after sorting, we can compute the flow matrix $\pmb{P}$ (Hoffman, 1963) efficiently via a greedy algorithm in linear time (Alg.1) and use the inner product objective of EMD in Eq.3 to compute the result. This greedy flow matching algorithm that generates the optimal transport plan can be used for any $m,n$ , including the special case when $m = n$ , and fit any non-uniform weights of $a,b$ .
+
+# 3 CPCC WITH OPTIMAL TRANSPORT
+
+# 3.1 OT-CPCC FAMILY
+
+Despite its simplicity, the use of class centroids $\ell_2$ distance as a measure of class distances has two limitations. First, since there is no guarantee of the distribution of class conditional features, the class mean difference may not accurately reflect the average pairwise Euclidean distance between all the pairs of sample. For example, in Fig.1, class $v$ is a non-unimodal (bi-modal in this example) distribution, which is very likely to happen when class $v$ is an abstract concept, such as coarse classes like household furniture in CIFAR100 (Krizhevsky & Hinton, 2009) or the collection of diverse dog breeds in ImageNet Deng et al. (2009). The blue $\ell_2$ line can be a biased estimation of the average of
+
+red lines. We will see later (c.f. Sec.3.3) that the direction of blue vector plays an important role in the feature geometry in $\ell_2$ -CPCC, and therefore we misrepresent the class distribution in $\ell_2$ -CPCC. Second, it is known (Linial et al., 1994) that, for certain trees such as a basic star graph with three edges, it is impossible to embed tree metric $t$ into $\ell_2$ exactly, no matter how large feature dimension $d$ is. It implies if we use the Euclidean centroids to represent a class, we can never reach the optimal CPCC value 1 during training, which always cause some loss of hierarchical information in the learning of structured representation.
+
+How to overcome the above limitations? Instead of finding a one-to-one correspondence of a label and a point estimate of a class, we represent a label class with all samples that belong to the class, which leads to EMD-CPCC. We call the set of data-weight pairs containing $m$ class- $u$ conditioned features as $\mu = \{(z_i,a_i)\}_{i = 1}^m$ and define $\nu$ similarly for the dataset containing $n$ class- $v$ conditioned features. The weight $a_{i}$ can be set as uniform $(1 / m)$ by default, or non-uniform if external prior knowledge is available. We propose EMD-CPCC by implementing $\rho (u,v)\coloneqq \mathrm{EMD}(\mu ,\nu)$ . In Eq.3, $P$ depends on $D$ derived from each sample in two datasets. Besides, EMD is actually a generalization of $\ell_2$ method:
+
+Proposition 3.1 (EMD reduces to $\ell_2$ between means of Gaussian with same covariance). $\operatorname{EMD}(\mathcal{N}(\mu_z, \Sigma), \mathcal{N}(\mu_{z'}, \Sigma)) = \| \mu_z - \mu_{z'}\|$
+
+
+Figure 1: Comparison between EMD (weighted sum of red lines) and the class mean $\ell_2$ distance (blue line).
+
+Although EMD has many appealing properties, the computational cost of EMD is high, where the time complexity of linear programming is cubic time with respect to the data size. Many following work provides approximation methods to reduce the computational cost, such as Sinkhorn (Cuturi, 2013), Sliced Wasserstein Distance (SWD) (Bonneel et al., 2015), Tree Wasserstein Distance (TWD) (Yamada et al., 2022; Le et al., 2019; Takezawa et al., 2021), and FlowTree (FT) (Backurs et al., 2020) (detailed discussion of approximation methods in App.A). Similarly, we can replace $\rho$ with all other EMD approximation methods, and we call all of them as the OT-CPCC family. As a side remark, since all approximation methods provide a $P$ satisfying constraints in Eq.3 and since EMD is lower bounded by $\ell_2$ (see proof of Prop.3.1 in App.C), all OT-CPCC methods are still lower bounded by $\ell_2$ .
+
+# 3.2 FAST FLOWTREE
+
+FlowTree (Backurs et al., 2020) is a tree-based method where the structure of the tree $\mathcal{T}$ is learned using QuadTree (Samet, 1984) to approximate the Euclidean space. Once the tree has been built, it firsts compute the optimal flow matrix $P_{t}$ using $t$ as the ground metric with a linear time bottom-up as shown in Alg.2 (Kalantari & Kalantari, 1995) (see App.Fig.8 in for visualization). Then, it estimates EMD with $\langle P_t,D_{\ell_2}\rangle$ . Given the tree, the time complexity of computing the FT is $O((m + n)d\log (d\Phi))$ where $\Phi$ is the maximum Euclidean distance of any two feature vectors.
+
+Our Fast FlowTree The main computational bottleneck of FT is the construction of the tree. However, in our case, we have access to $\mathcal{T}$ given as prior knowledge, and thus we can skip the tree construction step. To apply tree-based EMD approximation methods, instead of building a QuadTree in FT, we first construct an augmented tree by extending the leaves of the original label tree $\mathcal{T}$ with samples. Specifically, since each leaf node in $\mathcal{T}$ corresponds to a class, we extend each leaf node by adding all samples from the corresponding class, as demonstrated in Fig.2. We set all extended edges to have edge weight 1, and assign the instance weight $a_{i}$ for each data point. The resulting algorithm that applies Alg.2 to the augmented label tree is called Fast FlowTree (FastFT).
+
+Key Insight that allows FastFT to be more efficient than FT is that the tree metric between any two data samples from different classes is always identical in the augmented tree $\mathcal{T}$ , which allows us to reduce the computation of $P_{t}$ to 1d OT greedy flow matching using Alg.1. Now we can prove that Alg.1 and Alg.2 are equivalent given our constructed augmented tree in Fig.2, and the time complexity of FastFT is $O((m + n)d)$ , which is optimal among all OT variants.
+
+Theorem 3.2 (Correctness of Fast FlowTree). For any augmented label tree $\mathcal{T}$ , Alg. 1 and Alg. 2 return the same EMD approximation. The Fast FlowTree can be computed in $O((m + n)d)$ .
+
+
Method
Time Complexity
∂L/∂θ exact
Use Tree
ℓ2
O((nk + k2)d)
✓
N/A
EMD
O(n(d + n2 log n))
✓
Sinkhorn
O(n2(d + I))
✓
TWD
O(n2dI)
✓
SWD
O(np(d + log n))
FT
O(nd log(dΦ))
✓
FastFT
Θ(nd)
✓
+
+Table 1: Time complexity comparison of different CPCC methods. Let $I$ be the number of iterations for iterative methods, $p$ be the number of projections for SWD, $\Phi$ be the maximum Euclidean distance of any two feature vectors. We use $\tilde{\cdot}$ to represent a factor of $k^2$ . For simplicity we assume $m = n$ . In the batch learning setting, $d$ can be much larger than $n$ particularly for the fine-grained classification problems. See App.I for detailed analysis.
+
+
+Figure 2: An example of augmented $\mathcal{T}$ . Leaves become samples of each class, and each sample is assigned some weight (ex., uniform) within a class. Whenever we call FastFT-CPCC, only a subtree rooted at the lowest common ancestor of a pair of class label will be used. For example, we use subtree rooted at $F$ to compute optimal flow of samples with label $A$ , $B$ , and subtree rooted at $H$ for samples with label $A$ , $C$ .
+
+Please refer to App.D for proof details of Theorem 3.2. Note that all OT-CPCC methods inherently need $\Omega((m + n)d)$ because we access each of $m + n$ data points once and look at each entry in $d$ -dimensions. Additionally, FastFT can be applied to any label tree with no restriction on structure or edge weights. To control the importance of data points, the flexibility of FastFT can be achieved by tuning $a_i$ .
+
+Comparison of OT-methods on Synthetic Dataset To further understand the behavior of different OT approximation methods, we present experiments on synthetic datasets in Fig.3 (see App.J for more details). We first measured the computation time for different OT methods across datasets of varying sizes. Second, we evaluated the error of different OT approximation methods, along with the $\ell_2$ distance of the mean of two datasets, in approximating EMD. Two different scenarios were considered, either both distributions were Gaussian or non-Gaussian. Under Gaussian distribution, the OT methods' results were closely aligned with the $\ell_2$ method, except for SWD, which supports Prop.3.1 and implies the similarity in performance between OT and $\ell_2$ -CPCC under Gaussian distributions. In non-Gaussian distribution scenario, notable differences emerged between OT methods and $\ell_2$ , where SWD is closer to $\ell_2$ measurement. FastFT demonstrated exceptional advantage as an approximation method, outperforming Sinkhorn in both computational speed and precision.
+
+
+Figure 3: Efficiency and approximation error comparison of OT methods on synthetic datasets.
+
+
+
+
+
+# 3.3 DIFFERENTIABILITY ANALYSIS OF OT-CPCC
+
+Since we use some non-differentiable algorithms during training (ex., linear programming in EMD, sorting in SWD, tree construction in TWD, greedy algorithm in FT and FastFT), it is unclear how does the backpropagation algorithm work exactly in this problem. Thanks to the Danksin's theorem (Danskin, 1966) and the structure of the underlying optimization problem, we can still
+
+efficiently compute the gradients of OT-CPCC. For simplicity, let us consider the case of EMD-CPCC, i.e., $\rho = \mathrm{EMD}$ exactly. The other approximate variants can be analyzed in a similar way.
+
+The underlying challenge of the problem is to take derivatives of the optimal value of a minimization problem. We state the differentiability section of Danskin's theorem formally and prove a lemma:
+
+Theorem 3.3 (Danskin (1966)). Let $V(x) = \max_{z \in \mathcal{C}} f(x, z)$ , and $Z_0(x)$ is the set of $z$ that achieve the maximum of $V$ at $x$ . If $f: \mathbb{R}^n \times \mathcal{C} \to \mathbb{R}$ is continuous and $\mathcal{C}$ is compact, then the subgradient of $V$ is the convex hull of set $\left\{\frac{\partial f(x, z)}{\partial x} : z \in Z_0\right\}$ . Particularly, if $Z_0 = \{z^*\}$ , $\frac{\partial V}{\partial x} = \frac{\partial f(x, z^*)}{\partial x}$ .
+
+Lemma 3.4. Denote $P^*$ as the optimal flow of EMD problem, then $\frac{\partial \rho_{EMD}}{\partial \theta} = P^* \cdot \frac{\partial D}{\partial \theta}$ .
+
+Proof. We rewrite the objective function as a maximization problem: $\rho_{\mathrm{EMD}} = -\max_{P\in \mathcal{C}} - \langle P,D\rangle$ Roughly speaking, Danksin's theorem states that the derivative of maximization problems can be evaluated at the optimum. We can get (sub-)differential of $\rho_{\mathrm{EMD}}$ with respect to $\theta$ with one step of chain rule:
+
+$$
+\frac {\partial \rho_ {\mathrm {E M D}}}{\partial \theta} = \frac {\partial \rho_ {\mathrm {E M D}}}{\partial \boldsymbol {D}} \cdot \frac {\partial \boldsymbol {D}}{\partial \theta} = - \frac {\partial - \langle \boldsymbol {P} ^ {*} , \boldsymbol {D} \rangle}{\partial \boldsymbol {D}} \cdot \frac {\partial \boldsymbol {D}}{\partial \theta} = \boldsymbol {P} ^ {*} \cdot \frac {\partial \boldsymbol {D}}{\partial \theta},
+$$
+
+where the last term comes from the original flow of backpropagation containing the gradients with respect to network parameters. The key takeaway is the gradient of $\rho_{\mathrm{EMD}}$ w.r.t. the network parameters does not require the gradient from $P$ in the EMD setting, although $P$ depends on $\theta$ .
+
+Differentiability for Other OT-CPCC Methods The application of Danskin's relies on the optimality of $P^*$ . How about the other approximation methods? The differentiability is not a problem in Sinkhorn as the iterative algorithm only involves matrix multiplication. But for the SWD, TWD, FT, the approximate solutions (the flow matrix $P$ ) for these methods are not explicitly formulated as solutions to an optimization problem. Following EMD, except for the Sinkhorn variant, our method is to treat flow matrix $P$ always as a constant for these approximation methods, and stop the gradient through $P$ . For example, in Fast FlowTree, since the tree flow matrix $P$ depends only on the structure of the tree based on external information and not on the model parameters $\theta$ , we have $\frac{\partial \rho_{\mathrm{FastFT}}}{\partial \theta} := P_{\mathrm{FastFT}} \cdot \frac{\partial D}{\partial \theta}$ .
+
+To provide a more fine-grained understanding of the proposed method, in what follows we analyze the gradients of the proposed CPCC variants and compare them with the $\ell_2$ -CPCC.
+
+Gradient of $\ell_2$ -CPCC If we want to know the difference between $\ell_2$ -CPCC and EMD-CPCC, assume the same input and the same network parameters, ignoring the cross-entropy loss, the only difference of the gradient starts from the distance calculation between two classes. Assume representations from two classes are $Z \in \mathbb{R}^{m \times d}$ , $Z' \in \mathbb{R}^{n \times d}$ .
+
+$$
+\frac {\partial \rho_ {l _ {2}}}{\partial Z} = \frac {\partial}{\partial Z} \| \mu_ {z} - \mu_ {z ^ {\prime}} \| = \frac {\mathbf {1} \left(\frac {1}{m} \mathbf {1} ^ {\top} Z - \frac {1}{n} \mathbf {1} ^ {\top} Z ^ {\prime}\right)}{m \left\| \frac {1}{m} Z ^ {\top} \mathbf {1} - \frac {1}{n} Z ^ {\prime} ^ {\top} \mathbf {1} \right\|}.
+$$
+
+Let $i$ -th row of $Z$ be $Z_{i}$ . Each row of $\frac{\partial\rho_{l_2}}{\partial Z}$ is the same, so
+
+$$
+\frac {\partial \rho_ {l _ {2}}}{\partial Z _ {i .}} = \frac {\mu_ {z} - \mu_ {z ^ {\prime}}}{m \| \mu_ {z} - \mu_ {z ^ {\prime}} \|}.
+$$
+
+Gradient of EMD-CPCC Let $D \in \mathbb{R}^{m \times n}$ be the cost matrix and $P$ is any constant flow matrix:
+
+$$
+\rho_ {\mathrm {E M D}} = \left\langle \boldsymbol {P} ^ {*}, \boldsymbol {D} \left(\boldsymbol {Z}, \boldsymbol {Z} ^ {\prime}\right) \right\rangle = \sum_ {i, j} \boldsymbol {P} _ {i j} ^ {*} \left\| Z _ {i \cdot} - Z _ {j \cdot} ^ {\prime} \right\|.
+$$
+
+Let's calculate the derivative by rows of $Z$ . We only keep the terms related to $Z_{i}$
+
+$$
+\frac {\partial \rho_ {\mathrm {E M D}}}{\partial Z _ {i .}} = \frac {\partial}{\partial Z _ {i .}} \sum_ {j} \boldsymbol {P} _ {i j} ^ {*} \| Z _ {i .} - Z _ {j .} ^ {\prime} \| = \sum_ {j = 1} ^ {n} \boldsymbol {P} _ {i j} ^ {*} \frac {Z _ {i .} - Z _ {j .} ^ {\prime}}{\| Z _ {i .} - Z _ {j .} ^ {\prime} \|}.
+$$
+
+Note that since $P^{*}$ is the optimal solution of a linear program, it is a sparse matrix with at most $m + n - 1$ non-zero entries (Peyre et al., 2019, Proposition 3.4). As a comparison to the gradient of $\ell_{2}$ -CPCC, which assigns equal importance to all data points and only depends on the direction of class centroids, the gradient of EMD-CPCC assigns different importance to each pair of data points and depends on the pairwise transport probability between data points. From this analysis, we can see that the gradient provided by EMD-CPCC is more fine-grained and informative than that of $\ell_{2}$ -CPCC.
+
+# 4 EXPERIMENTS
+
+For a fair comparison, we closely aligned our implementation with Zeng et al. (2022) to ensure consistency. This section will cover dataset benchmarks, the multi-modality of features, downstream hierarchical classification retrieval, and interpretability analysis. A detailed description of training hyperparameters is provided in App.F, along with additional experiments, including the effect of label hierarchy structure, label hierarchy tree weights, optimal transport flow settings (distribution of $a$ in Eq.3), and comparisons with non-CPCC hierarchical methods, in App.H. Throughout this section, the Flat objective is the standard cross entropy loss in Eq.1 with $\lambda = 0$ without tree information.
+
+Table 2: Dataset Statistics. Table 3: Preciseness of hierarchical information.
+
+
Dataset
# train
# test
CIFAR10
50K
10K
CIFAR100
50K
10K
INAT
500K
100K
L17
88K
3.4K
N26
132K
5.2K
E13
334K
13K
E30
307K
12K
+
+
+
+
+Figure 4: Hierarchical data split. Source and target dataset share the same coarse labels but different fine labels.
+
+
Dataset
Objective
TestCPCC
CIFAR10
Flat
58.83 (8.80)
\( \ell_2 \)
99.94 (0.02)
FastFT
99.95 (0.00)
EMD
99.95 (0.01)
Sinkhorn
99.94 (0.01)
SWD
99.98 (0.00)
CIFAR100
Flat
22.13 (0.84)
\( \ell_2 \)
83.08 (0.11)
FastFT
93.85 (0.05)
EMD
89.60 (0.34)
Sinkhorn
93.81 (0.10)
SWD
73.17 (2.66)
INAT
Flat
31.97 (0.00)
\( \ell_2 \)
67.01 (0.04)
FastFT
73.20 (0.03)
EMD
65.80 (0.01)
Sinkhorn
73.20 (0.04)
SWD
50.88 (0.03)
+
+
Dataset
Objective
TestCPCC
L17
Flat
47.63 (1.18)
\( \ell_2 \)
92.30 (0.35)
FastFT
91.71 (0.15)
Sinkhorn
91.77 (0.44)
SWD
95.10 (0.51)
N26
Flat
29.77 (0.53)
\( \ell_2 \)
93.03 (0.32)
FastFT
92.68 (0.21)
Sinkhorn
93.31 (0.24)
SWD
92.40 (0.05)
E13
Flat
49.20 (0.86)
\( \ell_2 \)
92.02 (0.08)
FastFT
91.97 (0.20)
Sinkhorn
91.30 (0.57)
SWD
88.32 (0.50)
E30
Flat
51.33 (0.09)
\( \ell_2 \)
93.37 (0.19)
FastFT
91.81 (0.44)
Sinkhorn
91.89 (0.61)
SWD
89.88 (0.68)
+
+# 4.1 DATASETS
+
+We conducted experiments across 7 diverse datasets, CIFAR10, CIFAR100 (Krizhevsky & Hinton, 2009), BREEDS benchmarks (Santurkar et al., 2021) including four settings LIVING17 (L17), ENTITY13 (E13), ENTITY30 (E30), NONLIVING26 (N26), and iNaturalist-mini (Van Horn et al., 2018) (INAT) to thoroughly evaluate the efficacy and influence of OT-CPCC methods. The dataset statistics is shown in Tab.2. Note that BREEDS and INAT are larger scale datasets with high resolution images. As subsets of ImageNet, BREEDS inherit a more complicated label hierarchy and more realistic, possibly multi-modal class distributions. The major difference from ImageNet is that BREEDS's class hierarchy is manually calibrated so that it reflects the visual hierarchy instead of the WordNet semantic hierarchy in the original ImageNet, which removes ill-defined hierarchical relationships unrelated to vision tasks.
+
+# 4.2 EXISTENCE OF MULTI-MODE CLASS-CONDITIONED FEATURE DISTRIBUTION
+
+To verify our hypothesis in Fig.1, we aim to determine whether class-conditioned clusters exhibit a multi-modal structure in practice. We track the class-conditioned features during training: at each epoch, for each class-conditioned feature cluster, we fit a Gaussian Mixture Model (GMM) with the number of components ranging from 1 to 10. We report the optimal number of components based on the lowest Akaike Information Criterion (AIC), averaged across all fine-level class labels. If the best number of Gaussian components exceeds 1, this may indicate the presence of a multi-modal structure in the feature distributions, assuming a sufficiently large batch size. From Fig.5, with default training hyperparameters in App.F, we observe that this phenomenon occurs across most datasets for both $\ell_2$ -CPCC and OT-CPCC training, suggesting that using optimal transport distances in CPCC computation is more appropriate.
+
+
+Figure 5: The average best number of components of learned features (left) across training epochs on CIFAR100 for different CPCC methods (right) for the $\ell_2$ -CPCC final trained features for all datasets.
+
+
Dataset
# Comp.
CIFAR10
9.90
CIFAR100
3.07
INAT
3.48
BREEDS
1.25
+
+
+Figure 6: CIFAR100 Euclidean UMAP for $\ell_2$ -CPCC (left) vs. EMD-CPCC (right). Each cluster represents a fine label and we color data sample by coarse labels.
+
+# 4.3 HIERARCHICAL CLASSIFICATION AND RETRIEVAL
+
+Table 4: Generalization performance on coarse level. The prefix of metric represents the split of test set: $\mathbf{s} =$ source, $\mathbf{t} =$ target. The average number of three seeds are reported. See the detailed version including standard deviation in Tab.16,17 and performance on each BREEDS setting is in Tab.18,19. Due to the computation complexity, we do not report EMD results on training BREEDS from scratch.
+
+
Dataset
Objective
sAcc
tAcc
sMAP
tMAP
Dataset
sAcc
tAcc
sMAP
tMAP
CIFAR10
Flat
99.58
87.30
99.22
89.66
INAT
94.63
38.81
70.41
34.00
FastFT
99.61
87.79
99.91
93.04
94.66
39.43
72.90
35.63
EMD
99.61
87.45
99.88
93.07
94.64
41.01
73.87
35.58
Sinkhorn
99.61
87.41
99.87
92.60
94.30
36.94
68.75
34.92
SWD
99.56
87.63
99.36
90.12
94.52
39.38
75.13
38.11
CIFAR100
Flat
86.17
43.09
82.07
42.09
BREEDS
93.85
82.43
74.47
66.50
FastFT
86.96
44.29
91.71
42.20
94.25
82.89
92.84
79.69
EMD
86.93
44.03
91.82
42.32
-
-
-
-
Sinkhorn
86.93
43.99
91.61
42.45
94.42
83.51
91.84
79.33
SWD
86.42
43.35
87.24
42.39
94.41
82.96
83.58
72.38
+
+Table 5: Generalization performance on fine level.
+
+
Dataset
Objective
sAcc
tAcc
sMAP
Dataset
sAcc
tAcc
sMAP
CIFAR10
l2
96.96
55.71
99.22
INAT
88.62
26.78
56.10
FastFT
96.90
55.99
99.24
88.49
27.10
56.21
EMD
97.05
56.12
99.24
88.68
26.78
56.83
Sinkhorn
96.95
54.89
99.27
88.08
26.77
51.56
SWD
96.96
59.21
99.45
88.46
26.78
54.19
CIFAR100
l2
80.98
23.76
77.52
BREEDS
82.66
45.95
62.86
FastFT
81.09
24.71
78.72
82.58
45.75
63.95
EMD
81.32
23.15
78.88
-
-
-
Sinkhorn
80.99
23.53
78.51
82.99
46.87
61.54
SWD
80.50
26.18
86.82
82.90
46.33
76.24
+
+Hierarchical Dataset Split For downstream classification and retrieval, we split each dataset into source and target subsets, with both further divided into train and test sets, as illustrated in Fig.4. The source and target datasets share the same level of coarse labels but differ in fine labels, where the fine level refers to the more granular class labels that are exactly one level below the coarse labels. For example, in CIFAR10, the source set includes the fine labels (deer, dog, frog, horse) and (ship, truck), while the target set includes (bird, cat) and (airplane, automobile). Both sets share the same coarse labels: animal and transportation. We include details of hierarchical construction and splits for other datasets in App.E.
+
+Given the hierarchical splits, we define two evaluation protocols. First, we pretrain on the source-train set and evaluate on the source-test set, where the train and test distributions are i.i.d. Second, we pretrain on the source-train set and evaluate on the target-test set, introducing a subpopulation shift (Santurkar et al., 2021) between the train and test distributions. For each protocol, we conduct classification and retrieval experiments at two levels of granularity.
+
+Metrics For classification experiments, we measure performance using accuracy (Acc). At the fine level, source accuracy is computed directly using any pretrained model, while coarse source accuracy is calculated by summing the fine-level probabilities for predictions that share the same coarse parent label. Since the source and target sets share the same coarse labels, coarse target accuracy can be similarly computed using the model pretrained on the source split. For fine target accuracy, after pretraining on the source set, we train a linear classifier on top of the frozen pretrained encoder for one-shot learning on the target-train set and evaluate it on the target-test set. We include the visualization of all types of classification tasks evaluation in Fig.9 in the Appendix.
+
+For retrieval experiments, we use mean average precision (MAP) as the evaluation metric. Given a model pretrained on the source set, we compute the fine or coarse class prototypes by calculating the Euclidean centroid of the class-conditioned features. Using these class prototypes, we compute the cosine similarity score between the prototypes and test points, and evaluate whether test points are most similar to the class prototype with the same label via average precision. Since the source and target sets have different fine labels, we do not include target MAP in Tab.5.
+
+Discussion OT-CPCC outperforms $\ell_2$ -CPCC consistently on fine level tasks: the oracle for the fine level tasks should be Flat, and Zeng et al. (2022) reported that $\ell_2$ -CPCC does not perform well for several fine level tasks due to the constraint on coarse level. Tab.5 shows that OT-CPCC methods show better fine-level performance than $\ell_2$ , while maintaining hierarchical information simultaneously. Besides, OT-CPCC outperforms the Flat baseline consistently on coarse level tasks as expected in Tab.4, which implies OT-CPCC methods successfully include the additional hierarchical information by optimizing the regularizer. In Fig.6, we visualize the learned hierarchical embeddings using UMAP (McInnes et al., 2018), with Euclidean distance as the similarity metric. We observe that $\ell_2$ -CPCC displays a clearer coarse-level grouping pattern, likely due to the direct optimization of CPCC in Euclidean space. However, EMD-CPCC also retains a significant amount of hierarchical information and demonstrates better separation between fine-level classes, which aligns with the results observed in our classification and retrieval tasks.
+
+# 4.4 INTERPRETABILITY EVALUATION
+
+
+Figure 7: Test CPCC for various batch size, regularization strength, and architecture, from left to right. FastFT consistently performs the best across all settings.
+
+
+
+
+
+A model is more interpretable when its representations accurately capture hierarchical information. CPCC is a natural measure of the precision of the hierarchical structure embedded in corresponding metric spaces. Unlike rank-based metrics, where only the relative order of distances matters, CPCC not only requires the correct ranking of distances (i.e., fine classes sharing the same coarse class should be closer than fine classes with different coarse parents), but is also influenced by the absolute values of the node-to-node distances, because CPCC is affected by the given label tree weights. Therefore, we report CPCC, a stricter metric, on the test set. In Tab.3, we present $\ell_2$ -CPCC for the Flat and $\ell_2$ objectives, and use the corresponding OT distances for the OT-CPCC experiments.
+
+We observe that OT-CPCC preserves more hierarchical information, leading to better interpretability. As shown in Tab.3, in 5 out of 7 datasets, an OT-CPCC method achieves the best TestCPCC score. For E13 and E30, OT-CPCC methods slightly underperform compared to $\ell_2$ , likely due to the BREEDS representations being less multi-modal than those of other datasets, as indicated in Tab.5.
+
+Ablation Study In our experiments with CIFAR100, shown in Fig.7, we investigated the impact of batch size, the regularization factor $\lambda$ in Eq.1, and architecture on TestCPCC. Given CIFAR100's large number of fine classes, the average sample size per class is relatively small when applying CPCC with a standard batch size of 128. Consequently, there is minimal difference between using the centroid of a few data points, as in $\ell_2$ -CPCC, and using pairwise distances for each data point in OT-CPCC. Therefore, larger batch sizes allow OT-CPCC to better capture class distributions, potentially leading to a more significant advantage in the quality of the learned hierarchy. We compared TestCPCC across various settings, including batch sizes of [64, 128, 512, 1024], $\lambda$ values of [0.01, 0.05, 0.1, 0.5, 1, 2], and backbones such as ResNet18, ResNet34, ResNet50 (He et al., 2016), ViT-B/16, and ViT-L/16 (Dosovitskiy, 2020), using $\ell_2$ , EMD, or FastFT CPCC. Across all comparisons, we observe that FastFT > EMD > $\ell_2$ in terms of the quality of the learned hierarchy, highlighting the advantage of optimal transport-based methods.
+
+# 5 RELATED WORK
+
+Learning Hierarchical Representations We discuss methods that operate on feature representations, thereby directly influencing the geometry of the representation space when hierarchical information is provided. DeVise (Frome et al., 2013) is an early multimodal work to align image and text embedding evaluated on a hierarchical precision metric to reflect semantic knowledge in the representation. Ge et al. (2018); Zhang et al. (2016) modify triplet loss to capture class similarity for metric learning or image retrieval. Barz & Denzler (2019); Garg et al. (2022) embed classes on hypersphere based on hierarchical similarity, and similar ideas have been explored in the hyperbolic space (Kim et al., 2023) where tree can be embedded with low distortion. Yang et al. (2022) provides a multi-task proxy loss for deep metric learning. Nolasco & Stowell (2022) proposes a ranking loss to make Euclidean distance of feature close to a target $d$ -dim sequence determined by the rank of tree metric. We work on the extension of Zeng et al. (2022) which is a special type of hierarchical methods where a regularizer is used. For a broader discussion on various hierarchical methods, we direct readers to the summary provided by Bertinetto et al. (2020).
+
+OT Methods and Hierarchical Learning The application of Optimal Transport (OT) in hierarchical learning contexts is explored in a limited number of studies. Ge et al. (2021), for instance, substitutes the conventional cross-entropy with a novel loss function that optimally transports the predictive distribution to the ground-truth one-hot vector, modifying the ground metric as tree metric and thus utilizing the hierarchical structure of the classes. Additionally, SEAL (Tan et al., 2023) employs the TWD to construct a latent hierarchy, enhancing traditional supervised and semi-supervised learning methodologies. It can be demonstrated that, given a tree $\mathcal{T}$ , the optimization process for TWD aligns with $\ell_1$ loss optimization and is upper bounded by the SumLoss baseline introduced by Zeng et al. (2022). Consequently, these methodologies can be categorized as hierarchical loss functions rather than regularization methods discussed in this work.
+
+# 6 CONCLUSION
+
+Building upon Zeng et al. (2022) using CPCC as a regularizer to learn structured representations, we have identified and targeted the limitations inherent in $\ell_2$ -CPCC. Our proposed OT-CPCC family provides a more nuanced measurement of pairwise class distances in feature space, effectively capturing complex distributions theoretically and empirically. Furthermore, our novel linear FastFT algorithm itself is interesting in nature for OT communities. FastFT-CPCC can be viewed as a successful application in learning tasks, and we welcome future work to investigate more on the properties of our greedy approach.
+
+# ACKNOWLEDGMENT
+
+SZ and HZ are partially supported by an NSF IIS grant No. 2416897. HZ would like to thank the support from a Google Research Scholar Award. MY is partly supported by MEXT KAKENHI Grant Number 24K03004 and by JST ASPIRE JPMJAP2302. The views and conclusions expressed in this paper are solely those of the authors and do not necessarily reflect the official policies or positions of the supporting companies and government agencies.
+
+# REFERENCES
+
+Arturs Backurs, Yihe Dong, Piotr Indyk, Ilya Razenshteyn, and Tal Wagner. Scalable nearest neighbor search for optimal transport. In Hal Daume III and Aarti Singh (eds.), Proceedings of the 37th International Conference on Machine Learning, volume 119 of Proceedings of Machine Learning Research, pp. 497-506. PMLR, 13-18 Jul 2020. URL https://proceedings.mlr.press/v119/backurs20a.html.
+Björn Barz and Joachim Denzler. Hierarchy-based image embeddings for semantic image retrieval. In 2019 IEEE Winter Conference on Applications of Computer Vision (WACV), pp. 638-647, January 2019. doi: 10.1109/WACV.2019.00073. URL http://arxiv.org/abs/1809.09924.arXiv:1809.09924 [cs].
+Yoshua Bengio, Jérôme Louradour, Ronan Collobert, and Jason Weston. Curriculum learning. In Proceedings of the 26th annual international conference on machine learning, pp. 41-48, 2009.
+Luca Bertinetto, Romain Mueller, Konstantinos Tertikas, Sina Samangooei, and Nicholas A Lord. Making better mistakes: Leveraging class hierarchies with deep networks. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 12506-12515, 2020.
+Kush Bhatia, Himanshu Jain, Purushottam Kar, Manik Varma, and Prateek Jain. Sparse local embeddings for extreme multi-label classification. Advances in neural information processing systems, 28, 2015.
+Nicolas Bonneel, Julien Rabin, Gabriel Peyre, and Hanspeter Pfister. Sliced and radon wasserstein barycenters of measures. Journal of Mathematical Imaging and Vision, 1(51):22-45, 2015. doi: 10.1007/s10851-014-0506-3.
+Rich Caruana. Multitask learning. Machine learning, 28(1):41-75, 1997.
+Marco Cuturi. Sinkhorn distances: Lightspeed computation of optimal transport. In Advances in Neural Information Processing Systems, volume 26. Curran Associates, Inc., 2013. URL https://papers.nips.cc/paper_files/paper/2013/bit hash/af21d0c97db2e27e13572cbf59eb343d-Abstract.html.
+Marco Cuturi and Arnaud Doucet. Fast computation of wasserstein barycenters. In Eric P. Xing and Tony Jebara (eds.), Proceedings of the 31st International Conference on Machine Learning, volume 32 of Proceedings of Machine Learning Research, pp. 685-693, Beijing, China, 22-24 Jun 2014. PMLR. URL https://proceedings.mlr.press/v32/cuturi14.html.
+John M. Danskin. The theory of max-min, with applications. SIAM Journal on Applied Mathematics, 14(4):641-664, 1966. ISSN 00361399. URL http://www.jstor.org/stable/2946123.
+Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In 2009 IEEE Conference on Computer Vision and Pattern Recognition, pp. 248-255, 2009. doi: 10.1109/CVPR.2009.5206848.
+Alexey Dosovitskiy. An image is worth 16x16 words: Transformers for image recognition at scale. arXiv preprint arXiv:2010.11929, 2020.
+D.C Dowson and B.V Landau. The frechet distance between multivariate normal distributions. Journal of Multivariate Analysis, 12(3):450-455, 1982. ISSN 0047-259X. doi: https://doi.org/10.1016/0047-259X(82)90077-X.
+
+Itay Evron, Edward Moroshko, and Koby Crammer. Efficient loss-based decoding on graphs for extreme classification. Advances in Neural Information Processing Systems, 31, 2018.
+Andrea Frome, Greg S Corrado, Jon Shlens, Samy Bengio, Jeff Dean, Marc' Aurelio Ranzato, and Tomas Mikolov. Devise: A deep visual-semantic embedding model. In Advances in Neural Information Processing Systems, volume 26. Curran Associates, Inc., 2013. URL https://papers.nips.cc/paper_files/paper/2013/bitstream/7cce53cf90577442771720a370c3c723-Abstract.html.
+Ashima Garg, Depanshu Sani, and Saket Anand. Learning hierarchy aware features for reducing mistake severity. In European Conference on Computer Vision, pp. 252-267. Springer, 2022.
+Weifeng Ge, Weilin Huang, Dengke Dong, and Matthew R. Scott. Deep Metric Learning with Hierarchical Triplet Loss, volume 11210 of Lecture Notes in Computer Science, pp. 272-288. Springer International Publishing, Cham, 2018. ISBN 978-3-030-01230-4. doi: 10.1007/978-3-030-01231-1_17. URL https://link.springer.com/10.1007/978-3-030-01231-1_17.
+Yubin Ge, Site Li, Xuyang Li, Fangfang Fan, Wanqing Xie, Jane You, and Xiaofeng Liu. Embedding semantic hierarchy in discrete optimal transport for risk minimization. In ICASSP 2021-2021 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pp. 2835-2839. IEEE, 2021.
+Vivek Gupta, Rahul Wadbude, Nagarajan Natarajan, Harish Karnick, Prateek Jain, and Piyush Rai. Distributional semantics meets multi-label learning. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pp. 3747-3754, 2019.
+Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 770-778, 2016.
+A. J. Hoffman. On simple linear programming problems, volume 7, pp. 317-327. American Mathematical Society, Providence, Rhode Island, 1963. ISBN 978-0-8218-1407-9. doi: 10.1090/pspum/007/0157778. URL http://www.ams.org/pspum/007.
+Guillaume Houry, Han Bao, Han Zhao, and Makoto Yamada. Fast 1-wasserstein distance approximations using greedy strategies. In International Conference on Artificial Intelligence and Statistics, pp. 325-333. PMLR, 2024.
+Peiyun Hu, Zachary C. Lipton, Anima Anandkumar, and Deva Ramanan. Active learning with partial feedback, 2018. URL https://arxiv.org/abs/1802.07427.
+Ankit Jalan and Purushottam Kar. Accelerating extreme classification via adaptive feature agglomeration. arXiv preprint arXiv:1905.11769, 2019.
+Bahman Kalantari and Iraj Kalantari. A Linear-Time Algorithm for Minimum Cost Flow on Undirected One-Trees, pp. 217-223. Mathematics and Its Applications. Springer US, Boston, MA, 1995. ISBN 978-1-4613-3554-2. doi: 10.1007/978-1-4613-3554-2_13. URL https://doi.org/10.1007/978-1-4613-3554-2_13.
+Sungyeon Kim, Boseung Jeong, and Suha Kwak. Hier: Metric learning beyond class labels via hierarchical regularization. In 2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 19903-19912, Vancouver, BC, Canada, June 2023. IEEE. ISBN 9798350301298. doi: 10.1109/CVPR52729.2023.01906. URL https://ieeexplore.ieee.org/document/10205273/.
+A. Krizhevsky and G. Hinton. Learning multiple layers of features from tiny images. Master's thesis, Department of Computer Science, University of Toronto, 2009.
+Tam Le, Makoto Yamada, Kenji Fukumizu, and Marco Cuturi. Tree-sliced variants of wasserstein distances. Advances in neural information processing systems, 32, 2019.
+N. Linial, E. London, and Y. Rabinovich. The geometry of graphs and some of its algorithmic applications. In Proceedings 35th Annual Symposium on Foundations of Computer Science, pp. 577-591, 1994. doi: 10.1109/SFCS.1994.365733.
+
+Yitao Liu, Chenxin An, and Xipeng Qiu. Y-tuning: An efficient tuning paradigm for large-scale pre-trained models via label representation learning. Frontiers of Computer Science, 18(4):184320, 2024.
+Leland McInnes, John Healy, and James Melville. Umap: Uniform manifold approximation and projection for dimension reduction. arXiv preprint arXiv:1802.03426, 2018.
+George A. Miller. Wordnet: A lexical database for english. Commun. ACM, 38(11):39-41, nov 1995. ISSN 0001-0782. doi: 10.1145/219717.219748. URL https://doi.org/10.1145/219717.219748.
+Quang Nguyen, Hamed Valizadegan, and Milos Hauskrecht. Learning classification models with soft-label information. Journal of the American Medical Informatics Association, 21(3):501-508, 2014.
+Ines Nolasco and Dan Stowell. Rank-based loss for learning hierarchical representations. In ICASSP 2022-2022 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pp. 3623-3627. IEEE, 2022.
+Gabriel Peyré, Marco Cuturi, et al. Computational optimal transport: With applications to data science. Foundations and Trends® in Machine Learning, 11(5-6):355-607, 2019.
+Gabriel Peyré and Marco Cuturi. Computational optimal transport. Foundations and Trends in Machine Learning, 11 (5-6):355-602, 2019. URL https://arxiv.org/abs/1803.00567.
+Hanan Samet. The quadtree and related hierarchical data structures. ACM Computing Surveys (CSUR), 16(2):187-260, 1984.
+Shibani Santurkar, Dimitris Tsipras, and Aleksander Madry. Breeds: Benchmarks for subpopulation shift. In International Conference on Learning Representations, 2021. URL https://openreview.net/forum?id=mQPBMvyAuk.
+Ethan Shen, Ali Farhadi, and Aditya Kusupati. Are" hierarchical" visual representations hierarchical? arXiv preprint arXiv:2311.05784, 2023.
+Robert R. Sokal and F. James Rohlf. The comparison of dendrograms by objective methods. Taxon, 11(2):33-40, 1962. ISSN 00400262. URL http://www.jstor.org/stable/1217208.
+Xu Sun, Bingzhen Wei, Xuancheng Ren, and Shuming Ma. Label embedding network: Learning label representation for soft training of deep networks. arXiv preprint arXiv:1710.10393, 2017.
+Yukihiro Tagami. Annexml: Approximate nearest neighbor search for extreme multi-label classification. In Proceedings of the 23rd ACM SIGKDD international conference on knowledge discovery and data mining, pp. 455-464, 2017.
+Yuki Takezawa, Ryoma Sato, and Makoto Yamada. Supervised tree-waterstein distance. In International Conference on Machine Learning, pp. 10086-10095. PMLR, 2021.
+Zhiquan Tan, Zihao Wang, and Yifan Zhang. Seal: Simultaneous label hierarchy exploration and learning. arXiv preprint arXiv:2304.13374, 2023.
+Grant Van Horn, Oisin Mac Aodha, Yang Song, Yin Cui, Chen Sun, Alex Shepard, Hartwig Adam, Pietro Perona, and Serge Belongie. The inaturalist species classification and detection dataset. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 8769-8778, 2018.
+Jason Weston, Samy Bengio, and Nicolas Usunier. Wsabie: Scaling up to large vocabulary image annotation. In Twenty-Second International Joint Conference on Artificial Intelligence. CiteSeer, 2011.
+Makoto Yamada, Yuki Takezawa, Ryoma Sato, Han Bao, Zornitsa Kozareva, and Sujith Ravi. Approximating 1-wasserstein distance with trees. Transactions on Machine Learning Research, 2022. ISSN 2835-8856. URL https://openreview.net/forum?id=Ig82187ZVU.
+
+Zhibo Yang, Muhammet Bastan, Xinliang Zhu, Doug Gray, and Dimitris Samaras. Hierarchical proxy-based loss for deep metric learning. In 2022 IEEE/CVF Winter Conference on Applications of Computer Vision (WACV), pp. 449-458, Waikoloa, HI, USA, January 2022. IEEE. ISBN 978-1-66540-915-5. doi: 10.1109/WACV51458.2022.00052. URL https://ieeexplore.ieee.org/document/9706697/.
+Hsiang-Fu Yu, Prateek Jain, Purushottam Kar, and Inderjit Dhillon. Large-scale multi-label learning with missing labels. In International conference on machine learning, pp. 593-601. PMLR, 2014.
+Siqi Zeng, Remi Tachet des Combes, and Han Zhao. Learning structured representations by embedding class hierarchy. In The Eleventh International Conference on Learning Representations, 2022.
+Xiaofan Zhang, Feng Zhou, Yuanqing Lin, and Shaoting Zhang. Embedding label structures for fine-grained feature representation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 1114-1123, 2016.
+
+# APPENDIX
+
+# A APPROXIMATION METHODS OF EARTH MOVER'S DISTANCE
+
+Most approximation methods do not rely on any tree structure. Sinkhorn (Cuturi, 2013) is a fully differentiable approximation method which leverages the entropic regularization setup of EMD and the convergence of doubly stochastic matrix. Sliced Wasserstein Distance (SWD) (Bonneel et al., 2015) projects data to 1 dimension through a random projection matrix and uses $\mathrm{EMD}_{\mathrm{ld}}$ for fast calculation, but the quality of approximation highly relies on the number of random projections. Tree Wasserstein Distance (TWD) (Yamada et al., 2022; Le et al., 2019; Takezawa et al., 2021) is a tree based approximation algorithm that can be written in the closed matrix form $\| \mathrm{diag}(\mathbf{w})\mathbf{B}(a - b)\| _1$ , where $\mathbf{w}$ contains weights of $\mathcal{T}$ and $\pmb{B}$ is a 0-1 internal nodes by leaf nodes matrix that represents if a node is the ancestor of a leaf node. To make sure TWD is a good approximation, an extra step of lasso regression is performed to learn w such that the tree metric approximates Euclidean distance between features with iterative gradient based method. In Yamada et al. (2022), it requires us to learn the tree distance between all pairs of nodes, which leads to quadratic computational complexity with respect to sample size as shown in Tab.1.
+
+# B COMPARISON OF STRUCTURED REPRESENTATION LEARNING AND LEARNING LABEL REPRESENTATIONS
+
+Generally speaking, the problem of structured representation learning and the problem of learning label representations, or learning label embeddings, are two different topics. In label representation learning, each label is mapped to a high-dimensional vector for downstream tasks. For example, in standard multi-class classification, we typically use one-hot vector embeddings. Alternative approaches include using a soft label to assign probability values in (0,1) to each class (Nguyen et al., 2014), or learning label embeddings (Weston et al., 2011; Sun et al., 2017; Liu et al., 2024). Label representation learning methods have various downstream applications, such as text summarization (Sun et al., 2017), novelty detection (Barz & Denzler, 2019), and extreme classification (Jalan & Kar, 2019; Tagami, 2017; Bhatia et al., 2015; Yu et al., 2014; Evron et al., 2018; Gupta et al., 2019).
+
+While $\ell_2$ -CPCC falls into this category, OT-CPCC methods are not label embedding methods. Instead of representing a class with a Euclidean centroid in $\ell_2$ , OT-CPCC methods intentionally avoid this step by considering a more nuanced relationship between labels. OT-CPCC relies on pairwise relationships between data points from two classes to include more complex distributional geometry during learning. Since these methods depend on data point relations, there is no one-to-one correspondence between a label and a representation.
+
+# C EMD-CPCC GENERALIZES $\ell_2$ -CPCC
+
+We can show EMD-CPCC is a generalization of previous work of $\ell_2$ -CPCC through the following proposition.
+
+Proposition 3.1 (EMD reduces to $\ell_2$ between means of Gaussian with same covariance). $\mathrm{EMD}(\mathcal{N}(\mu_z,\Sigma),\mathcal{N}(\mu_{z'},\Sigma)) = \| \mu_z - \mu_{z'}\|$
+
+Proof. Since $\mu, \nu$ in EMD definition are probability measures, the definition of EMD can be generalized to continuous distributions as well. Denote $Z$ the random variable from $\mu$ , $Z'$ from $\nu$ , and $q$ the coupling between $\mu$ and $\nu$ , then EMD can be also expressed in the following $p$ -Wasserstein $(\mathcal{W}_p)$ form when $p = 1$ :
+
+$$
+\begin{array}{l} \mathcal {W} _ {p} = \left(\inf _ {q} \int_ {\mathcal {Z} \times \mathcal {Z}} \| z _ {i} - z _ {j} \| ^ {p} q (z _ {i}, z _ {j}) d z _ {i} z _ {j}\right) ^ {\frac {1}{p}} \\ = \inf _ {q} \left(\mathbb {E} \| Z - Z ^ {\prime} \| ^ {p}\right) ^ {\frac {1}{p}} \tag {4} \\ \end{array}
+$$
+
+With this definition, our statement can be proved in two steps. First, we want to show the lower bound of EMD is $\| \mu_z - \mu_{z'}\|$ for any pairs of input random variables. By one step application of Jensen's
+
+inequality, since every norm is convex, we have the following result from the expectation form of $\mathcal{W}_1$ in Eq.4:
+
+$$
+\begin{array}{l} \mathcal {W} _ {1} = \inf \mathbb {E} \| Z - Z ^ {\prime} \| \geq \inf \| \mathbb {E} (Z - Z ^ {\prime}) \| \\ = \| \mathbb {E} Z - \mathbb {E} Z ^ {\prime} \| = \| \mu_ {z} - \mu_ {z ^ {\prime}} \| \tag {5} \\ \end{array}
+$$
+
+Second, we need to show EMD $\leq \| \mu_z - \mu_{z'}\|$ for the given Gaussian constraints. Following the convexity of quadratic function, apply Jensen's again, we have:
+
+$$
+\mathcal {W} _ {1} ^ {2} = \left(\inf \mathbb {E} \| Z - Z ^ {\prime} \|\right) ^ {2} \leq \inf \mathbb {E} \left(\| Z - Z ^ {\prime} \|\right) ^ {2} = \mathcal {W} _ {2} ^ {2} \tag {6}
+$$
+
+Dowson & Landau (1982) showed the following analytical form of
+
+$$
+\mathcal {W} _ {2} ^ {2} = \left\| \mu_ {z} - \mu_ {z ^ {\prime}} \right\| ^ {2} + \operatorname {t r} \left(\Sigma_ {z} + \Sigma_ {z ^ {\prime}} - 2 \left(\Sigma_ {z} \Sigma_ {z ^ {\prime}}\right) ^ {1 / 2}\right) \tag {7}
+$$
+
+This distance metric is also sometimes called Bures-Wasserstein (Bures) distance. The trace term becomes 0 if $\Sigma_z = \Sigma_{z'} = \Sigma$ .
+
+# D DETAILS FOR FAST FLOW TREE CPCC ALGORITHM
+
+In this section, we first present the full pseudocode to compute FastFT-CPCC in Alg.3. Compared to FlowTree (Backurs et al., 2020) which uses the helper function in Alg.2 (Kalantari & Kalantari, 1995), we replace the greedy_flow_MATCHing algorithm with Alg.1 which aligns with algorithm that computes the 1 dimensional OT transportation plan.
+
+Algorithm 3 Train with Fast FlowTree CPCC
+input epoch $E$ , batch size $B$ , train data $\mathcal{D} = \{(x_i,y_i)\}_{i = 1}^N$ dictionary $S$
+1: for iteration $= 0,1,\ldots ,E - 1$ do
+2: for batch $= 0,1,\dots ,\lfloor N / B\rfloor$ do
+3: assume there are $k$ classes in batch
+4: for $(a,b)$ in $\binom{k}{2}$ pairs of classes do
+5: $z_{a} = (a_{1},\dots,a_{m})$
+6: $z_{b} = (b_{1},\dots,b_{n})$
+7: if $(m,n)$ in $S$ or $(n,m)$ in $S$ then
+8: $P\gets S[(m,n)]$
+9: else
+10: $P\gets$ greedy_flow_MATCHing $(m,n,a=$ unif,b=unif) {Alg.1}
+11: $S[(m,n)]\gets P$
+12: idx $\leftarrow$ P.nonzero () {store nonzero index tuples of $P$ }
+13: $\rho (a,b) = 0$
+14: for $(i,j)$ in idx do
+15: $\rho (a,b) + = P[i,j]\cdot \mathrm{norm}(z_a[i],z_b[j])$
+16: Calculate Eq.1 with CPCC as $\mathcal{R}$
+17: Update network parameters with backpropagation
+
+Now we prove the correctness of Fast Flow Tree algorithm and its relation to 1 dimensional optimal transport distance.
+
+Theorem 3.2 (Correctness of Fast FlowTree). For any augmented label tree $\mathcal{T}$ , Alg. 1 and Alg. 2 return the same EMD approximation. The Fast FlowTree can be computed in $O((m + n)d)$ .
+
+Proof Sketch We can observe that the blue code blocks, which contain the update rule of the flow matrix, are almost identical between Alg.1 and Alg.2. According to Kalantari & Kalantari (1995), Alg.2 provides the optimal flow matrix for the optimal transport problem using the tree metric as the ground metric in $D$ . From Fig.1, the tree distance between any two samples in the augmented tree is always the same, meaning the order of encountering any vertex within the source or target distribution does not matter. This effectively reduces the FlowTree problem in Alg.2 to a flat 1d EMD problem in Alg.1. The major difference between two algorithms is that, unlike Alg.2, Alg.1 does not require passing the flow from the leaf to the root node.
+
+Proof. Alg.2 will not start to match leaves until the current node has children from two different distributions, or in our context, from two different fine labels. This is because of the while statement in line 8: based on our construction of $\mathcal{T}$ in Fig.2, if the current node $v$ is either a leaf or a fine label node, then all of its children are from either $C_a(v)$ or $C_b(v)$ , so we will jump to line 11 to send all flows to $v$ 's parent. Therefore, the matching starts at the lowest common ancestor of two label nodes.
+
+Now we have $v$ as the lowest common ancestor of two fine class nodes (ex., $F$ or $H$ in Fig.2). Before entering line 9, we always pass unmatched demands to the parent, and we can see the demands are always from one label until we reach the lowest common ancestor. From Fig.2, we also know at this point, we have collected all flows from both labels. Therefore, the sum of flow is 1 for both fine label nodes when the matching starts.
+
+Both Alg.2 and Alg.1 greedily remove one sample from either distribution. The greedy plan is always feasible and no unmatched flow is left after one scan of all $m + n$ features, because we inherently remove the same amount of flow from both distributions every iteration in the while loop. Thus, on our $\mathcal{T}$ , we can skip most steps in Alg.2: bottom up step in line 2, looping through all vertices at height $h$ , the if-else check from line 4-7, and the last step of passing unmatched demands to parents are all unnecessary. Alg.2 terminates immediately once we run through all while loop steps, thus reducing to Alg.1.
+
+Alg.1, or the flow matrix solution for 1-d EMD problem, can be used when Monge Property or northwest-corner rules (Hoffman, 1963) hold. It can be shown by induction that this $O(m + n)$ greedy algorithm can be applied whenever the following constraint is satisfied: if $\{(z_i, a_i)\}$ , $\{(z_j, b_j)\}$ are indexed (1d feature, weight) sequences, for indices $i_1 < i_2$ and $j_1 < j_2$ :
+
+$$
+D _ {i _ {1}, j _ {1}} + D _ {i _ {2}, j _ {2}} \leq D _ {i _ {1}, j _ {2}} + D _ {i _ {2}, j _ {1}} \tag {8}
+$$
+
+If two sequences are ordered (in ascending order) by metric defining $D$ , we have $z_{i_1} \leq z_{i_2}$ and $z_{j_1} \leq z_{j_2}$ . There are in total six cases for any $i_1 < i_2, j_1 < j_2$ :
+
+1. If $z_{j_1} \leq z_{j_2} \leq z_{i_1} \leq z_{i_2}$ , then Eq.8 $\Leftrightarrow z_{i_1} - z_{j_1} + z_{i_2} - z_{j_2} \leq z_{i_1} - z_{j_2} + z_{i_2} - z_{j_1}$ holds.
+2. If $z_{j_1} \leq \dot{z}_{i_1} \leq z_{j_2} \leq z_{i_2}$ , then Eq.8 $\Leftrightarrow \dot{z}_{i_1} - \dot{z}_{j_1} + \dot{z}_{i_2} - z_{j_2} \leq z_{j_2} - z_{i_1} + z_{i_2} - z_{j_1}$ holds because $z_{i_1} \leq z_{j_2}$ .
+3. If $z_{j_1} \leq z_{i_1} \leq z_{i_2} \leq z_{j_2}$ , then Eq.8 $\Leftrightarrow$ $z_{i_1} - z_{j_1} + z_{j_2} - z_{i_2} \leq z_{j_2} - z_{i_1} + z_{i_2} - z_{j_1}$ holds because $z_{i_1} \leq z_{i_2}$ .
+4. If $z_{i_1} \leq z_{j_1} \leq z_{j_2} \leq z_{i_2}$ , then Eq.8 $\Leftrightarrow$ $z_{j_1} - z_{i_1} + z_{j_2} - z_{i_2} \leq z_{j_2} - z_{i_1} + z_{i_2} - z_{j_1}$ holds because $z_{j_1} \leq z_{i_2}$ .
+5. If $z_{i_1} \leq z_{j_1} \leq z_{i_2} \leq z_{j_2}$ , then Eq.8 $\Leftrightarrow$ $z_{j_1} - z_{i_1} + z_{j_2} - z_{i_2} \leq z_{j_2} - z_{i_1} + z_{i_2} - z_{j_1}$ holds because $z_{j_1} \leq z_{i_2}$ .
+6. If $z_{i_1} \leq z_{i_2} \leq z_{j_1} \leq z_{j_2}$ , then Eq.8 $\Leftrightarrow$ $z_{j_1} - z_{i_1} + z_{j_2} - z_{i_2} \leq z_{j_2} - z_{i_1} + z_{j_1} - z_{i_2}$ holds.
+
+Therefore, if two sequences are ordered with respect to some metric, Eq.8 is satisfied.
+
+Recall we need the extra sorting step in the beginning of 1d OT plan to apply the greedy flow matching algorithm. The distance function in Eq.8 is decided by the ground metric of EMD, which does not make any difference for 1 dimensional features. In Flow Tree, a tree is constructed with QuadTree such that the tree distance of any two features is close to the $\ell_2$ distance between them. In this case, in EMD computation, we can improve computational efficiency by Flow Tree. With extended label tree $\mathcal{T}$ , because all same class sample leaves belong to one single parent, we have a special case here where the tree distance of any two samples from $\mu, \nu$ are always the same, satisfying Eq.8 vacuously. This statement fails only if we assign different edge weights for each sample during the extension of label tree, and does not depend on the weights of original label tree. To avoid the limitation on the extended edge weights, we can instead assign different weights $a_i$ for each sample to adjust the importance of each dat points. Therefore, FastFT is still very flexible.
+
+For the time complexity, Alg.1 requires at most $O(m + n)$ steps from line 4. The most time-consuming aspect is computing the $d$ -dimensional distance of $O(m + n)$ pairs in $D$ , since there will be at most $m + n$ nonzero values in $D$ after applying the greedy matching algorithm, which makes the final time complexity as $O((m + n)d)$ .
+
+
+
+
+First skip leaf nodes.
+Start from vertices on depth - 1.
+
+
+(a) Step 1
+
+
+Greedy match pairs of demand and supply. Find minimum flow, then update. We only have one possible pair: $\frac{1}{5} < \frac{1}{2}$ .
+(b) Step 2
+
+
+(c) Step 3
+
+
+Pass the non-zero remaining flow to the parent of leaf nodes $\mathbf{v}$
+(d) Step 4
+
+
+(e) Step 5
+(g) Step 7
+
+
+Repeat the same steps for $\mathbf{v}'$
+(f) Step 6
+
+
+Repeat the same steps for $\mathbf{v}'$ .
+
+
+(h) Step 8
+
+
+(i) Step 9
+(k) Step 11
+Figure 8: Example run of Alg.2 Bottom-up Tree Flow Matching.
+
+
+Go to one level above. Repeat all steps.
+We get the full flow matrix. $\mu$
+(1) Step 12
+
+$$
+\begin{array}{c c} v & \left[ \begin{array}{c c} 1 / 5 & 0 \\ 0 & 1 / 5 \\ 0 & 1 / 5 \\ 1 / 1 0 & 1 / 1 0 \\ 1 / 5 & 0 \end{array} \right] \end{array}
+$$
+
+# E DATASET HIERARCHY CONSTRUCTION
+
+In this section, we discuss the details of dataset hierarchies and how we created the dataset splits. Throughout the main body of this paper, we consider a two-level hierarchy: coarse and fine. For each coarse node, except for BREEDS, we split the coarse node's fine children into approximately $40\%$ for the target set and $60\%$ for the source set. Following this procedure, the splits are detailed in Tables 6, 7, 8, 9, 10, 11, and 12. The original class labels for CIFAR10 and CIFAR100 are from https://www.cs.toronto.edu/~kriz/cifar.html, for iNaturalist from https://github.com/visipedia/inat_comp/tree/master/2021, and for BREEDS from WordNet (Miller, 1995).
+
+The CIFAR10 hierarchy was manually constructed by us, while the CIFAR100 hierarchy is provided in the original dataset. In INAT, fine and coarse classes correspond to the class and phylum labels from the original annotations. These higher-level labels are particularly suitable for evaluating multimodal settings, where OT-CPCC methods may have a more significant advantage over $\ell_2$ -CPCC.
+
+In Zeng et al. (2022), fine classes in BREEDS are defined one level deeper than the original labels. However, due to the large number of classes and limited samples per class within a batch, the distinction between $\ell_2$ -CPCC and OT-CPCC can become less apparent. To address this, we employ a three-level hierarchy, using the labels from Santurkar et al. (2021) as fine labels and setting their parent categories as mid and coarse labels. Consequently, due to BREEDS setting, the fine classes are the same for both source and target datasets, so there is no source-target split in Tables 9, 10, 11, and 12. Despite this hierarchical structure, as seen in Fig.5, BREEDS exhibits relatively low multi-modality. With this design, in Sec.4.3, for classification and retrieval experiments, one-shot fine-tuning is not required for BREEDS on the target split.
+
+Table 6: CIFAR10 hierarchy and data split.
+
+
Coarse
Source
Target
animal
deer, dog, frog
bird, cat
transportation
ship, truck
airplane, automobile
+
+Table 7: CIFAR100 hierarchy and data split.
+
+
+
+# F TRAINING HYPERPARAMETERS
+
+We conducted all experiments with NVIDIA RTX A6000. The architectural and training setups for each dataset are as follows:
+
+Table 11: ENTITY13 dataset hierarchy.
+
+
Coarse
Fine
living thing, animate thing non-living thing
bird, reptile, reptilian, arthropod, mammal, mammalian garment, accessory, accoutrement, accouterment, craft, equipment, fur-niture, piece of furniture, article of furniture, instrument, man-made structure, construction, wheeled vehicle, produce, green goods, green groceries, garden truck
+
+# F.1 CIFAR10, CIFAR100
+
+We conduct training from scratch using ResNet18, following the ResNet architecture design where the first convolution layer employs a 3x3 kernel size, while the max pooling layer is omitted. The images are preprocessed by normalizing them according to CIFAR10/CIFAR100's mean and standard deviation. We augment the training data by first zero-padding the images by 4 pixels, then cropping them back to their original dimensions, applying a $50\%$ chance of horizontal flipping, and randomly rotating the images between -15 and 15 degrees.
+
+For CIFAR10, the pretraining process spans 100 epochs with a batch size of 64. The learning rate begins at 0.01 and is decreased by a factor of 10 every 60 steps, with momentum set at 0.9 and weight decay set to $5 \times 10^{-4}$ in the SGD optimizer. For CIFAR100, the pretraining process spans 200 epochs with a batch size of 128. The learning rate begins at 0.1 and is decreased by a factor of 5 every 60 steps, with momentum set at 0.9 and weight decay set to $5 \times 10^{-4}$ in the SGD optimizer. Additionally, for both datasets, in the fine-level one-shot transfer learning, we train for 100 epochs starting at a learning rate of 0.1, which is reduced by a factor of 10 every 60 steps. CPCC is applied to coarse, fine level and $\lambda$ in Eq.1 is set to 1. The ratio between the distance between two fine classes sharing the same coarse parent and those sharing different parents is 1:2.
+
+# F.2 BREEDS
+
+We train a ResNet18 model from scratch originally designed for ImageNet, where the first convolution layer uses a 7x7 kernel. Adhering to the BREEDS training setup, we use a batch size of 128, an initial learning rate of 0.1, and SGD optimization with a weight decay of $10^{-4}$ . For the $ENTITY13$ and $ENTITY30$ datasets, the model is trained for 300 epochs, reducing the learning rate by a factor of 10 every 100 steps, while for $LIVING17$ and $NONLIVING26$ , we extend training to 450 epochs, with the learning rate divided by 10 every 150 steps. Data augmentation for the training set includes a RandomResizedCrop to $224 \times 224$ , horizontal flipping with a $50\%$ probability, and color jittering that adjusts brightness, contrast, and saturation within a range of 0.9 to 1.1. The test set, on the other hand, is resized to $256 \times 256$ and then center-cropped to $224 \times 224$ .
+
+Since in our experiments with BREEDS, the source and target split share the same set of fine labels, to calculate fine target accuracy, it is unnecessary to use one-shot transfer learning. We directly use the source set pretrained models for target fine accuracy evaluation.
+
+To apply CPCC methods, we backtrack two levels up to find the mid and coarse labels from the original class labels in BREEDS. CPCC is applied to mid and coarse level and $\lambda$ in Eq.1 is set to 1. The ratio between the distance between two fine classes sharing the same coarse parent and those sharing different parents is 1:2.
+
+# F.3 INAT
+
+We fine-tune an ImageNet-pretrained ResNet18 model where checkpoint can be downloaded in Pytorch (torchvision.models.resnet18(weights='IMAGENET1K_V1'), https://torch.org/vision/main/models/generated/torchvision.models.resnet18.html). The images are preprocessed by normalizing them with mean=[0.466, 0.471, 0.380] and standard deviation=[0.195, 0.194, 0.192]. We augment the training data by cropping a random portion (scale=(0.08, 1.0), ratio=(0.75, 1.33)) of image and resize it to 224x224, and apply a $50\%$ chance of horizontal flipping. We use a batch size of 1024. The learning rate begins at 0.1 and is decreased by a factor of 5 every 60 steps, with momentum set at 0.9 and weight decay set to $5 \times 10^{-4}$ in the SGD optimizer. In the downstream one-shot fine-tuning task, we train for 60 epochs starting at a learning rate of 0.05, which is reduced by a factor of 10 every 15 steps. CPCC is applied to coarse, fine level and $\lambda$ in Eq.1 is set to 0.1. The ratio between the distance between two fine classes sharing the same coarse parent and those sharing different parents is 1:3.
+
+
+Figure 9: Visualization of the evaluation of hierarchical classification.
+
+# G HIERARCHICAL BASELINE OBJECTIVES
+
+In this section, we introduce the details of hierarchical objectives we used in Fig.12.
+
+Flat is the naive cross entropy loss only on the fine level, so the expression is:
+
+$$
+\mathcal {L} _ {\text {F l a t}} (x, y _ {\text {f i n e}}) = \sum_ {(x, y) \in \mathcal {D}} \ell_ {\text {F l a t}} \left(y _ {\text {f i n e}}, h (x)\right). \tag {9}
+$$
+
+We adopt all hierarchical baselines from the comparative study in Zeng et al. (2022), including:
+
+Multi-Task Learning (MTL) (Caruana, 1997), where the backbone model is trained with two linear heads—one for coarse classes and one for fine classes—each with a cross-entropy loss. The total loss, $\mathcal{L}_{\mathrm{MTL}}$ , is the sum of these two cross-entropy terms, with a scaling coefficient of 1 for both. Curriculum Learning (Curr) (Bengio et al., 2009) involves two training phases: first, training a coarse head for 50 epochs, followed by training the full network with a fine head for 200 epochs, starting from the coarse-trained features, assuming that coarse classification is an easier task. Sum Loss (Hu et al., 2018) uses only one fine classifier head, where coarse predictions are obtained by summing the fine class probabilities for the same coarse parent and applying a second cross-entropy loss. Hierarchical Cross Entropy (HXE) (Bertinetto et al., 2020) is the sum of weighted cross-entropy losses ( $\alpha = 0.4$ ), where the hierarchical structure is incorporated into the log-probabilities. The same paper also introduces Soft Label (Soft), which uses a single softmax loss based on the height of the least common ancestor between label pairs, with a hyperparameter $\beta = 10$ . Quadruplet
+
+Loss (Quad) (Zhang et al., 2016) extends triplet loss by defining two types of positive labels based on the hierarchy. For detailed mathematical expressions of these objectives, refer to App.C in Zeng et al. (2022).
+
+We also include several recently published hierarchical losses:
+
+Soft Hierarchical Consistency (SHC) (Garg et al., 2022) is the combination of MTL and Sum Loss. For a two level hierarchy, they jointly train a two-headed network. Define the network as $h: \mathcal{X} \to \Delta_{k_1} \times \Delta_{k_2}$ with a shared feature encoder $f: \mathcal{X} \to \mathcal{Z}$ and two classifiers $g_{\mathrm{coarse}}: \mathcal{Z} \to \Delta_{k_1}, g_{\mathrm{fine}}: \mathcal{Z} \to \Delta_{k_2}$ , with $k_1$ as the number of coarse classes and $k_2$ the number of fine classes. The ground truth coarse probability $p_{\mathrm{coarse}} = g_{\mathrm{coarse}}(f(\cdot))$ is the output of coarse head after softmax normalization, and $\hat{p}_{\mathrm{coarse}}$ is derived from the output of fine head. Let $\mathbf{W}$ be a $k_1$ by $k_2$ matrix representing the relationships in the label tree: if a fine class $i$ belongs to a coarse class $j$ , then $\mathbf{W}_{ji}$ is 1, else the entry is set to 0. Then $\hat{p}_{\mathrm{coarse}} = \mathbf{W}g_{\mathrm{fine}}(f(\cdot))$ , so the probability of belonging to a given coarse class is the sum of the probabilities of its fine class descendants in the tree. Then, the SHC loss is defined as the Jensen-Shannon Divergence between these two probability distributions:
+
+$$
+\mathcal {L} _ {\mathrm {S H C}} \left(x, y _ {\text {c o a r s e}}, y _ {\text {f i n e}}\right) = \mathrm {J S D} \left(p _ {\text {c o a r s e}} \left(x, y _ {\text {c o a r s e}}\right) \| \hat {p} _ {\text {c o a r s e}} \left(x, y _ {\text {f i n e}}\right)\right). \tag {10}
+$$
+
+In Garg et al. (2022), $\mathcal{L}_{\mathrm{SHC}}$ is used in the combination with Flat cross entropy loss. Therefore, we treat it as a counterpart of CPCC losses and use $\mathcal{L}_{\mathrm{Flat}} + \lambda \cdot \mathcal{L}_{\mathrm{SHC}}$ as the training loss, with $\lambda = 1$ .
+
+Geometric Consistency (GC) (Garg et al., 2022) is also computed under the MTL two-head pipeline. The coarse classifier can be decomposed to a linear layer and softmax function, i.e., let $\mathbf{W}^c\in \mathbb{R}^{d\times k_1}$ , $g_{\mathrm{coarse}}(\cdot) = \mathrm{softmax}(\mathbf{W}^c (\cdot))$ , and we define $\mathbf{W}^f$ similarly for the linear fine layer.
+
+$$
+\mathcal {L} _ {\mathrm {G C}} \left(x, y _ {\text {c o a r s e}}, y _ {\text {f i n e}}\right) = \sum_ {i = 1} ^ {k _ {1}} 1 - \cos \left(\mathbf {W} _ {i} ^ {c}, \hat {\mathbf {W}} _ {i} ^ {c}\right). \tag {11}
+$$
+
+As in SHC, GC aims to force the similarity between the predicted coarse weight and the true coarse weight. Here, $\mathbf{W}_i^c$ is part of the linear classifier corresponds to each coarse class, and the predicted coarse weight $\hat{\mathbf{W}}_i^c = \sum_{j\in \mathrm{children}(i)}\mathbf{W}_j^f /\left\| \sum_{j\in \mathrm{children}(i)}\mathbf{W}_j^f\right\|$ is the normalized sum of a part of fine classifiers based on the hierarchical relationship. We combine $\mathcal{L}_{\mathrm{GC}}$ with Flat cross entropy during training and set $\lambda$ in Eq.1 as 1.
+
+RankLoss (Rank) (Nolasco & Stowell, 2022) proposes a ranking loss to make Euclidean distance of feature $\rho$ close to the target $d$ -dim sequence determined by the rank of tree metric:
+
+$$
+\mathcal {L} _ {\text {r a n k}} (x, y _ {\text {c o a r s e}}, y _ {\text {f i n e}}) = \frac {1}{p} \sum_ {p} \left(1 - I _ {p}\right) (\rho - \text {T a r g e t R a n k} (\rho)). \tag {12}
+$$
+
+In this equation above, $I_{p}$ is an indicator variable which shows whether the rank of pairwise $\ell_2$ feature distance is the same as the rank of pairwise tree metric distance, and TargetRank is a function reflecting hierarchical similarity. Since this loss does not focus on discriminative tasks like classification, we combine it with Flat cross entropy, setting $\lambda = 1$ in Eq.1 for downstream tasks evaluation.
+
+# H ADDITIONAL EXPERIMENTS
+
+# H.1 EFFECT OF TREE DEPTH
+
+Although in the main body we focus on a depth-3 label hierarchy consisting of a root node, a coarse level, and a fine level, we also test whether our method can be applied to more complex trees. In CIFAR100, beyond the standard fine-coarse levels, we introduce a mid level by grouping 5 fine classes from the same coarse class into two smaller groups $(2 + 3)$ . Additionally, we create a coarser level by grouping two alphabetically neighboring coarse classes into a single coarser label. For example, for 10 fine labels, the hierarchical grouping is highlighted by the following color scheme: {{(orchids, poppies) (roses, sunflowers, tulips) [ (bottles, bowls) (cans, cups, plates) ]}}.
+
+In Fig.10, we aligned the axes to sort the fine labels based on the hierarchical structure for embeddings learned using trees of varying depth. We then computed the fine-to-fine class distances using either
+
+
+Figure 10: CIFAR100 class embedding pairwise distance matrix for different types of label tree with varying tree depth.
+
+the EMD or FastFT metric. On the left of Fig.10, we used the standard fine-coarse CIFAR100 label tree, where a clear pattern of twenty 5x5 coarse blocks appears on the diagonal for both optimal transport methods. In the middle of Fig.10, we applied CPCC to the fine-mid-coarse hierarchy, and within each 5x5 coarse block, we observed the expected fine-grained $2 \times 2 + 3 \times 3$ patterns. Similarly, on the right of Fig.10, when we included the coarser grouping, we could observe the merging of neighboring 5x5 coarse blocks.
+
+Table 13: EMD and FastFT performance for tree with different depths on the full CIFAR100 dataset. The batch size is set to 128.
+
+
Objective
Setup
CPCC
FineAcc
CoarseAcc
EMD
depth = 3
88.80
71.91
82.21
depth = 4
85.09
72.59
82.93
depth = 5
88.64
72.20
82.50
FastFT
depth = 3
90.75
72.71
83.31
depth = 4
87.86
72.45
83.05
depth = 5
90.27
72.56
83.04
+
+We also include metrics for the preciseness of hierarchical information and hierarchical classification in Tab.13. As observed in Fig.10, the tree information is well-learned, leading us to expect high CPCC scores across all settings in Tab.13. For the hierarchical classification metrics, within the same OT method, the difference between FineAcc and CoarseAcc is small. It is worth noting that, because we train on the full CIFAR100 dataset for visualization purposes, the source-target hierarchical split shown in Fig.4 is not applied here. Both FineAcc and CoarseAcc are reported on the original CIFAR100 test set. This suggests that even when the tree used is not identical to the label hierarchy associated with the dataset, an approximate tree with a similar structure is sufficient for classification tasks.
+
+In summary, EMD-CPCC is a flexible structured representation learning method that adapts well to complex hierarchies, while FastFT-CPCC serves as a good approximation to EMD-CPCC. This
+
+observation is consistent with the results in Tab.3, where optimal transport methods achieve higher Test CPCC values.
+
+# H.2 EFFECT OF TREE WEIGHTS
+
+
+
+
+
+
+
+
+Figure 11: CIFAR100 class embedding pairwise distance matrix for different types of label tree with varying tree weights.
+
+
+
+
+
+In this section, we demonstrate that all CPCC methods, including OT-CPCC, are influenced by input tree weights. In Fig.11, we begin with the original unweighted CIFAR100 tree (where all edges have a default weight of 1) and modify the edge weights of a subtree representing the coarse label aquatic_mammals, which includes five fine labels: beaver, dolphin, otter, seal, and whale. We visualize the learned representation through a distance matrix, as described in Sec.H.1. From left to right in Fig.11, the edge weights of this subtree are set to 1, 2, and 4, respectively. Consequently, we observe a color shift in the top-left coarse block of the matrix, with the block gradually darkening as the subtree weights increase. This demonstrates the flexibility of OT-CPCC methods, which can successfully embed weighted trees, and highlights why CPCC is a sensitive and effective metric for evaluating the interpretability and quality of the hierarchical information embedded in the learned representation, as discussed in Sec.4.4.
+
+Table 14: EMD and FastFT performance for tree with different edge weights within aquatic_mammals classes on the full CIFAR100 dataset. The batch size is set to 1024.
+
+
Objective
Setup
CPCC
FineAcc
CoarseAcc
EMD
weight 1x
89.13
75.76
85.50
weight 2x
88.85
75.57
85.22
weight 4x
79.86
75.56
85.35
FastFT
weight 1x
92.12
75.43
85.43
weight 2x
92.57
75.38
85.10
weight 4x
84.23
75.57
84.98
+
+We use the same experimental settings as those described in Sec.H.1. While the classification metrics remain comparable, the most significant trend emerges in the CPCC metric. As shown in
+
+Fig.11, we observe the expected pattern in the top-left block, which changes as the edge weights are multiplied. However, as the injected hierarchy deviates further from the given label hierarchy, it becomes increasingly unnatural. The increased weights make the tree embedding more challenging, resulting in a drop in CPCC values for larger weights.
+
+# H.3 EFFECT OF FLOW WEIGHT
+
+In Eq.3, the flow weight vectors $a$ and $b$ are set to uniform by default in all other experiments. However, in practice, these vectors can be customized by the user if prior information about the data distribution is available, which may significantly influence the learned embeddings. On CIFAR100, we tested three different flow weight settings:
+
+- Uniform (unif): default setting where we assume each data point is uniformly sampled from the class distribution, so $a = (1/m, \dots, 1/m)$ and $b = (1/n, \dots, 1/n)$ .
+- Distance (dist): is an adaptive weighting method where during training, we compute the Euclidean centroid of each class and compute the distance of each sample to the corresponding class centroid. Then we can apply softmax function to normalize the distances into probabilities. Mathematically, if two class representations are $Z$ , $Z'$ , then for each entry of flow weight vector, $a_i = \frac{\exp(Z_i - \mu_z)}{\sum_{j=1}^m \exp(Z_j - \mu_z)}$ , $b_i = \frac{\exp(Z_i' - \mu_{z'})}{\sum_{j=1}^n \exp(Z_j' - \mu_{z'})}$ .
+- Inverse-Distance (inv): is similar to dist, yet the only difference is we set the weight to be inversely scaled by the distance to the centroid, so the expressions of the flow weights are
+
+$$
+a _ {i} = \frac {\exp (\mu_ {z} - Z _ {i})}{\sum_ {j = 1} ^ {m} \exp (\mu_ {z} - Z _ {j})}, b _ {i} = \frac {\exp (\mu_ {z ^ {\prime}} - Z _ {i} ^ {\prime})}{\sum_ {j = 1} ^ {n} \exp (\mu_ {z ^ {\prime}} - Z _ {j} ^ {\prime})}.
+$$
+
+From Tab.15, we observe two key findings: first, tuning the flow weights can lead to improvements in out-of-distribution generalization metrics for the target set, but this comes at the expense of in-distribution source metrics. Second, the most significant differences are seen in the CPCC values, where it is nearly impossible to recover hierarchical information on the test set when using the Distance flow weight for both EMD and FastFT. The low interpretability scores suggest that not all flow weight settings are suitable for hierarchy learning.
+
+Table 15: Comparison of FastFT and EMD methods with different optimal transport flow weighting schemes across fine and coarse metrics, with cell colors representing the magnitude of values.
+
+
Objective
Weight
CPCC
Fine Metrics
Coarse Metrics
sAcc
sMAP
tAcc
sAcc
sMAP
tAcc
tMAP
FastFT
unif
93.85
81.32
78.88
23.15
86.96
91.71
44.29
42.20
dist
9.30
78.90
67.33
25.28
85.18
91.47
45.00
43.78
inv
66.52
79.73
68.31
25.45
85.81
92.03
43.70
43.70
EMD
unif
89.60
80.99
78.51
23.53
86.93
91.82
44.03
42.32
dist
19.87
79.23
73.79
26.05
85.91
91.30
43.55
42.53
inv
98.13
79.51
75.84
26.80
86.05
91.22
44.15
42.13
+
+# I ANALYSIS FOR THE TIME COMPLEXITY OF OT APPROXIMATION METHODS
+
+In this section, we provide the details and references for the reported time complexities in Tab.1.
+
+In the following time complexity analysis, denote $b$ as batch size. We assume each class-conditioned cluster has the same size $n$ , which implies $b = nk$ , where $k$ is the number of classes.
+
+For $\ell_2$ , given one batch of batch size $b$ , computing Euclidean centroids for all classes requires scanning through all $d$ -dimensional data points once, which requires $O bd) = O(nkd)$ . We have at most $k$ classes in one batch, so computing the pairwise distances between class centroids will cost $O(k^2 d)$ . The total cost for $\ell_2$ is $O((nk + k^2)d)$ .
+
+Table 16: Detailed generalization performance on fine level. Each value is the mean (std) of three seeds of experiments. Flat directly optimizes on the fine level classes, so we treat it as the upper bound of fine metrics and colored in grey. The bold values have the largest mean for a column metric within a dataset, ignoring the upper bound.
+
+
Dataset
Objective
sAcc
tAcc
sMAP
Dataset
sAcc
tAcc
sMAP
CIFAR10
Flat
96.92 (0.14)
54.23 (6.92)
99.43 (0.02)
INAT
88.70 (0.01)
26.77 (0.04)
63.97 (0.04)
\( \ell_2 \)
96.96 (0.16)
55.71 (7.38)
99.22 (0.06)
88.62 (0.01)
26.78 (0.04)
56.10 (0.05)
FastFT
96.90 (0.13)
55.99 (8.19)
99.24 (0.02)
88.49 (0.01)
27.10 (0.04)
56.21 (0.05)
EMD
97.05 (0.18)
56.12 (7.63)
99.24 (0.02)
88.68 (0.00)
26.78 (0.04)
56.83 (0.00)
Sinkhorn
96.95 (0.08)
54.89 (8.59)
99.27 (0.03)
88.08 (0.00)
26.77 (0.04)
51.56 (0.04)
SWD
96.96 (0.05)
59.21 (4.42)
99.45 (0.03)
88.46 (0.00)
26.78 (0.04)
54.19 (0.03)
CIFAR100
Flat
80.53 (0.31)
28.44 (1.89)
86.47 (0.21)
BREEDS
82.08 (0.26)
45.19 (0.38)
73.74 (0.46)
\( \ell_2 \)
80.98 (0.17)
23.76 (1.01)
77.52 (0.12)
82.66 (0.41)
45.95 (0.40)
62.86 (0.38)
FastFT
81.09 (0.18)
24.71 (0.90)
78.72 (0.19)
82.58 (0.34)
45.75 (0.45)
63.95 (0.36)
EMD
81.32 (0.19)
23.15 (0.40)
78.88 (0.18)
-
-
-
Sinkhorn
80.99 (0.12)
23.53 (0.48)
78.51 (0.20)
82.99 (0.31)
46.87 (0.40)
61.54 (0.55)
SWD
80.50 (0.33)
26.18 (1.04)
86.82 (0.22)
82.90 (0.30)
46.33 (0.16)
76.24 (0.39)
+
+Table 17: Detailed generalization performance on coarse level. Each value is the mean (std) of three seeds of experiments. $\ell_2$ directly optimizes on the coarse level classes, so we treat it as the upper bound of coarse metrics and colored in grey.
+
+
Dataset
Objective
sAcc
tAcc
sMAP
tMAP
Dataset
sAcc
tAcc
sMAP
tMAP
CIFAR10
ε2
99.60 (0.01)
87.51 (0.97)
99.88 (0.03)
92.84 (0.63)
INAT
94.52 (0.00)
40.86 (0.01)
74.34 (0.05)
37.35 (0.01)
Flat
99.58 (0.07)
87.30 (0.59)
99.22 (0.05)
89.66 (0.38)
94.63 (0.00)
38.81 (0.01)
70.41 (0.04)
34.00 (0.13)
FastFT
99.61 (0.06)
87.79 (0.41)
99.91 (0.03)
93.04 (0.57)
94.66 (0.00)
39.43 (0.02)
72.90 (0.05)
35.63 (0.01)
EMD
99.61 (0.03)
87.45 (0.60)
99.88 (0.03)
93.07 (0.63)
94.64 (0.00)
41.01 (0.01)
73.87 (0.01)
35.58 (0.01)
Sinkhorn
99.61 (0.05)
87.41 (0.53)
99.87 (0.03)
92.60 (0.13)
94.30 (0.00)
36.94 (0.02)
68.75 (0.02)
34.92 (0.00)
SWD
99.56 (0.04)
87.63 (0.62)
99.36 (0.09)
90.12 (0.43)
94.52 (0.00)
39.38 (0.01)
75.13 (0.03)
38.11 (0.01)
CIFAR100
ε2
87.00 (0.13)
44.55 (0.39)
92.13 (0.23)
43.03 (0.55)
BREEDS
94.24 (0.30)
83.13 (0.23)
95.00 (0.25)
81.73 (0.32)
Flat
86.17 (0.26)
43.09 (0.55)
82.07 (0.34)
42.09 (0.26)
93.85 (0.20)
82.43 (0.27)
74.47 (0.52)
66.50 (0.39)
FastFT
86.96 (0.13)
44.29 (0.33)
91.71 (0.11)
42.20 (0.44)
94.25 (0.27)
82.89 (0.31)
92.84 (0.27)
79.69 (0.34)
EMD
86.93 (0.28)
44.03 (0.31)
91.82 (0.14)
42.32 (0.31)
-
-
-
-
Sinkhorn
86.93 (0.10)
43.99 (0.37)
91.61 (0.31)
42.45 (0.09)
94.42 (0.21)
83.51 (0.30)
91.84 (0.42)
79.33 (0.38)
SWD
86.42 (0.26)
43.35 (0.71)
87.24 (0.29)
42.39 (0.30)
94.41 (0.25)
82.96 (0.17)
83.58 (0.60)
72.38 (0.43)
+
+For OT methods, we have $k$ class-conditioned clusters, resulting in $O(k^2)$ pairs of matrices as input for all OT methods. For each pair, the computation time of OT methods can range from linear to cubic with respect to $n$ . For instance, each FastFT computation takes $O(nd)$ as shown in Theorem 3.2, so the total computation time becomes $O(k^2 nd)$ . In general, the computation time for all OT methods can be expressed as $O(k^2 \cdot \text{OT-time})$ . Next, we elaborate on the "OT-time" term.
+
+For EMD, the complexity is typically $O(n^3 \log n)$ in the past literature (Cuturei, 2013), which primarily focuses on the influence of the number of samples $n$ . However, in our setting, because $d >> n$ , we aim to emphasize the effect of $d$ . In the time complexity expression for EMD, the $O(n^3 \log n)$ term arises from solving the linear programming problem, while the $O(nd)$ term accounts for computing the objective function $\langle P, D \rangle$ . Due to the sparse nature of the linear programming solution, there are only $O(n)$ non-zero values in $P$ . Consequently, we compute $O(n)$ $d$ -dimensional pairwise distances in $D$ , making the dot product computation require $O(nd)$ in total. Therefore, the overall complexity of EMD is $O(n(d + n^2 \log n))$ .
+
+To get the approximated flow matrix, Sinkhorn (Cuturi, 2013) mainly depends on the iterative matrix scaling algorithm. For each $I$ iteration, we normalize the row and column of a matrix of size $O(n^{2})$ , so the complexity for running this iterative algorithm is $O(n^{2}I)$ . Unlike in EMD, the approximated flow matrix $P$ derived from Sinkhorn is not sparse. Therefore, the dot product of the objective function will now take $O(n^{2}d)$ in total. The total complexity of Sinkhorn is $O(n^{2}(d + I))$ .
+
+To obtain the approximated flow matrix, Sinkhorn (Cuturi, 2013) relies on the iterative matrix scaling algorithm. During each of the $I$ iterations, we normalize the rows and columns of a matrix of size $O(n^{2})$ , resulting in a complexity of $O(n^{2}I)$ for the iterative algorithm. Unlike EMD, the approximated flow matrix $\pmb{P}$ derived from Sinkhorn is not sparse. Consequently, computing the dot product for the objective function requires $O(n^{2}d)$ in total. Therefore, the overall complexity of Sinkhorn is $O(n^{2}(d + I))$ .
+
+Table 18: Fine level generalization performance for each BREEDS setting.
+
+
Dataset
Objective
sAcc
tAcc
sMAP
L17
Flat
85.15 (0.30)
46.31 (0.31)
85.94 (0.18)
l2
85.74 (0.69)
47.50 (0.73)
74.07 (0.61)
FastFT
85.21 (0.38)
46.47 (0.75)
74.46 (0.16)
Sinkhorn
85.80 (0.49)
48.37 (0.69)
70.50 (0.53)
SWD
85.88 (0.26)
47.50 (0.09)
86.65 (0.51)
N26
Flat
79.76 (0.27)
36.06 (0.37)
70.75 (1.14)
l2
80.58 (0.54)
37.08 (0.26)
55.51 (0.50)
FastFT
80.78 (0.52)
36.69 (0.19)
58.87 (0.42)
Sinkhorn
81.74 (0.26)
38.16 (0.14)
57.54 (0.92)
SWD
81.79 (0.25)
37.71 (0.09)
76.03 (0.05)
E13
Flat
84.37 (0.24)
56.04 (0.27)
74.04 (0.34)
l2
84.77 (0.18)
55.69 (0.37)
66.92 (0.16)
FastFT
85.04 (0.15)
56.66 (0.44)
67.96 (0.64)
Sinkhorn
85.00 (0.15)
57.14 (0.40)
64.47 (0.20)
SWD
84.49 (0.18)
56.82 (0.12)
75.39 (0.54)
E30
Flat
79.05 (0.23)
42.35 (0.57)
64.23 (0.17)
l2
79.54 (0.21)
43.51 (0.23)
54.92 (0.23)
FastFT
79.29 (0.32)
43.16 (0.42)
54.49 (0.23)
Sinkhorn
79.40 (0.33)
43.82 (0.38)
53.66 (0.53)
SWD
79.42 (0.52)
43.28 (0.34)
66.87 (0.45)
+
+Table 19: Coarse level generalization performance for each BREEDS setting.
+
+
Dataset
Objective
sAcc
tAcc
sMAP
tMAP
L17
l2
93.13 (0.62)
79.03 (0.29)
93.93 (0.54)
69.13 (0.42)
Flat
92.68 (0.39)
78.35 (0.37)
76.66 (0.26)
56.13 (0.36)
FastFT
93.33 (0.26)
78.37 (0.47)
92.11 (0.23)
65.44 (0.24)
Sinkhorn
93.11 (0.20)
79.50 (0.43)
89.14 (0.36)
63.88 (0.32)
SWD
92.96 (0.41)
78.66 (0.26)
83.92 (0.38)
59.66 (0.21)
N26
l2
88.94 (0.42)
70.24 (0.50)
89.59 (0.26)
68.40 (0.52)
Flat
88.44 (0.12)
68.98 (0.41)
61.20 (1.01)
50.86 (0.16)
FastFT
88.83 (0.75)
69.43 (0.42)
83.89 (0.40)
65.22 (0.75)
Sinkhorn
89.94 (0.35)
70.70 (0.41)
83.14 (0.78)
66.07 (0.85)
SWD
89.88 (0.34)
69.93 (0.04)
74.06 (0.57)
58.50 (0.48)
E13
l2
97.80 (0.04)
91.51 (0.01)
98.25 (0.04)
94.15 (0.09)
Flat
97.53 (0.12)
91.30 (0.16)
83.89 (0.13)
82.37 (0.31)
FastFT
97.80 (0.01)
91.78 (0.13)
97.69 (0.13)
93.21 (0.10)
Sinkhorn
97.63 (0.02)
91.97 (0.14)
97.53 (0.23)
92.77 (0.18)
SWD
97.67 (0.13)
91.69 (0.06)
91.43 (0.72)
87.71 (0.16)
E30
l2
97.07 (0.10)
91.74 (0.10)
98.24 (0.14)
95.28 (0.24)
Flat
96.75 (0.18)
91.10 (0.15)
76.12 (0.66)
76.65 (0.74)
FastFT
97.02 (0.07)
91.98 (0.23)
97.65 (0.32)
94.90 (0.26)
Sinkhorn
96.99 (0.25)
91.87 (0.22)
97.54 (0.31)
94.59 (0.18)
SWD
97.12 (0.13)
91.55 (0.31)
84.89 (0.74)
83.66 (0.88)
+
+For FT (Backurs et al., 2020), the most computationally expensive step is the tree construction using the QuadTree algorithm. Backurs et al. (2020) demonstrate that this tree can be built in
+
+$O(nd\log (d\Phi))$ . Once the tree is constructed, as shown in Lemma 3.1 of Backurs et al. (2020), FT requires $O(n(d + \log (d\Phi)))$ to run the bottom-up algorithm and compute the objective function, which is less expensive than the tree construction. Thus, the total complexity of FT is $O(nd\log (d\Phi))$ .
+
+For Fast FlowTree, please refer to the proof of Thm. 3.2.
+
+For TWD, we follow Algorithm 1 in Yamada et al. (2022). The first step is to construct a tree. To save computation, instead of using QuadTree, we leverage the same technique as in FastFT to use our augmented tree, making this step $O(1)$ . For each of the $I$ iterations in supervised learning, we need to compute all entries in the pairwise distance matrix $D$ , which requires $O(n^{2}d)$ . Thus, even when the tree structure is known, the total complexity of TWD is $O(n^{2}dI)$ .
+
+Finally, we want to highlight that Fig.3 is evaluated with $k = 2$ , where we vary the number of samples in one source and one target distribution. In this scenario, although the theoretical computational complexities for $\ell_2$ and Fast FlowTree are both $O(nd)$ , we observe that $\ell_2$ scales better in practice. This is due to the effect of standard vectorization optimizations in common matrix operation packages, which leverage parallelism along the dimension of $n$ .
+
+# I.1 COMPARISON TO OTHER HIERARCHICAL BASELINES
+
+In Fig.12, we compared OT-CPCC methods with other hierarchical objectives described in Sec.G, and we report the Fine/Coarse Metric Avg., which averages all source/target classification and retrieval metrics. Based on CPCC, fine, and coarse metrics, we observe that OT-CPCC methods behave similarly to $\ell_2$ -CPCC, exhibiting higher CPCC values and stronger performance on coarse metrics, but lower fine metrics (though OT methods still outperform $\ell_2$ on fine metrics, as shown in Tab.5). In contrast, all other hierarchical baseline objectives perform more like flat cross-entropy methods, with the opposite trend—lower CPCC and coarse metrics but relatively higher fine metrics. Additionally, we excluded Rank loss from the correlation plot on the right side of Fig.12, as Tab.20 suggests that Rank loss is not suitable for any of the downstream tasks used in our evaluation, making it an outlier compared to the other objectives.
+
+
Objective
CPCC
l2
83.08
FastFT
93.85
EMD
89.60
Sinkhorn
93.81
SWD
73.17
Flat
22.13
MTL
37.07
Curr
22.70
SumLoss
27.48
HXE
22.65
Soft
50.90
Quad
24.01
SHC
30.68
GC
21.88
Rank
24.75
+
+
+
+
+Figure 12: Left: Comparison of CPCC for hierarchical baselines on CIFAR100. Right: CPCC against coarse and fine metrics average. Rank is an outlier, so its value is removed from the visualization.
+
+# J IMPLEMENTATION DETAILS FOR SYNTHETIC DATASETS EXPERIMENTS
+
+Computational Efficiency We measured the computation time for different OT methods across datasets of varying sizes. This involved generating two random 128-dimensional datasets of identical shape and recording the wall-clock time for a single distance computation. This process was repeated
+
+Table 20: Comparison of fine and coarse metrics for Flat vs. Rank Loss.
+
+
Objective
Fine Metrics
Coarse Metrics
sAcc
tAcc
sMAP
sAcc
tAcc
sMAP
tMAP
Flat
80.53
28.44
86.47
86.17
43.09
82.07
42.09
Rank
77.89
20.48
74.39
83.41
39.25
46.60
24.31
+
+10 times, and the average time was reported. For illustrative purposes, we fixed the number of projections at 10 for SWD, and the regularization parameter at 10 for Sinkhorn, the same as in our experiment setting in Tab.4,5.
+
+Approximation Error We evaluated the error of different OT approximation methods, along with the $\ell_2$ distance of the mean of two datasets, in approximating EMD. Two different distribution scenarios were considered:
+
+- Gaussian Distribution: Here, both distributions were created as Gaussian distributions with different means (1 and 4, respectively) and the same standard deviation of 1.
+- Non-Gaussian Distribution: For this scenario, we generated the dataset from Gaussian mixtures. One dataset combined Gaussian distributions with means of 0 and 5, while the other merged Gaussian distributions with means of 2 and 3, all of them with a standard deviation of 1.
+
+Other experiment settings were consistent with those detailed in the Computational Efficiency paragraph above.
+
+# K COMPARISON OF RUNTIME OF OT-CPCC ON REAL-WORLD DATASETS
+
+Table 21: Comparison of the wall clock runtime of OT-methods on real datasets for training one epoch. The results are averaged for three random seeds.
+
+
Dataset
Objective
Per Epoch (s)
Dataset
Objective
Per Epoch (s)
CIFAR10(b=128)
Flat
85.88 (3.69)
INAT(b=1024)
Flat
147.67 (4.54)
l2
83.78 (9.80)
l2
149.39 (1.24)
FastFT
85.21 (4.26)
FastFT
132.01 (3.24)
EMD
87.70 (2.43)
EMD
234.68 (4.40)
Sinkhorn
85.65 (4.15)
Sinkhorn
165.69 (4.60)
SWD
92.90 (4.65)
SWD
152.52 (8.90)
+
+We include the wall clock run times for training different CPCC methods over one epoch in Tab.21, using two distinct settings: CIFAR10 with a batch size of 128 and model training from scratch, and INAT with a batch size of 1024 and model fine-tuning from an ImageNet checkpoint. Despite the differences in settings, we observe that FastFT consistently runs significantly faster than exact EMD computation and outperforms the other two approximation methods, SWD and Sinkhorn. This aligns with our theoretical analysis in Tab.1 and observations on synthetic data in Fig. 3. When comparing FastFT to $\ell_2$ , we find that FastFT is not much slower, and in the case of INAT, it is even faster than $\ell_2$ . Thus, we can confidently conclude that our proposed method, especially FastFT, is scalable.
+
+Similar to $\ell_2$ , one could argue for using another closed-form Wasserstein expression, the Bures-Wasserstein distance (as defined in Eq.7), in CPCC optimization. However, Bures depends on the covariance term of the source and target distributions, which requires at least $O(nd^2)$ computation. As shown in Tab.1, in $\ell_2$ , calculating the mean of a class-conditioned cluster only requires $O(nd)$ , and all other OT methods have a linear $d$ term in their time complexity. In CIFAR100, even with a large batch size of 1024, $n$ is approximately $1024 / 100 \approx 10$ , assuming all classes are of equal size. Using ResNet18 as the backbone, $d = 512$ , which is typically much larger than $n$ . Therefore, the $d^2$ factor from computing the covariance matrix in Bures can make it prohibitively expensive in our case.
+
+Table 22: Comparison of the wall clock runtime of Bures-CPCC vs. OT-CPCC on real datasets for training one batch. The results are averaged for three random seeds.
+
+
Dataset
Objective
Per Batch (s)
CIFAR100
l2
0.35 (0.18)
EMD
1.94 (0.12)
Bures
33.77 (4.73)
+
+To verify this, we computed the running time for CIFAR100 (batch size = 128) for different methods in Tab.22, considering one batch update. The results are averaged over three random seeds.
+
+As observed in Tab.22, Bures-Wasserstein is significantly slower than both $\ell_{2}$ and EMD due to its quadratic dependence on $d$ . Therefore, for scalability concerns, covariance-based Wasserstein metrics are not well-suited to our problem setup.
\ No newline at end of file
diff --git a/ICLR/2025/Learning Structured Representations by Embedding Class Hierarchy with Fast Optimal Transport/images.zip b/ICLR/2025/Learning Structured Representations by Embedding Class Hierarchy with Fast Optimal Transport/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..04a71b03c7c04f3b597b9b0d325b7024c89538d2
--- /dev/null
+++ b/ICLR/2025/Learning Structured Representations by Embedding Class Hierarchy with Fast Optimal Transport/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7c5dea9f55dec80e3bf1f129f05b4dba4004b4cf2d6240023f4932e077ae2588
+size 1962403
diff --git a/ICLR/2025/Learning Structured Representations by Embedding Class Hierarchy with Fast Optimal Transport/layout.json b/ICLR/2025/Learning Structured Representations by Embedding Class Hierarchy with Fast Optimal Transport/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..cb9335c97774f8b7fbc959a5e25ab73e9f1e534c
--- /dev/null
+++ b/ICLR/2025/Learning Structured Representations by Embedding Class Hierarchy with Fast Optimal Transport/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0b436588100bf00fc21d6295760528346d0172dc1faf7c44b0703667e3a13897
+size 1146747
diff --git a/ICLR/2025/Learning Structured Universe Graph with Outlier OOD Detection for Partial Matching/758c83ee-d4db-4794-952f-cc65ea8bf7fc_content_list.json b/ICLR/2025/Learning Structured Universe Graph with Outlier OOD Detection for Partial Matching/758c83ee-d4db-4794-952f-cc65ea8bf7fc_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..757b1152d2b4bf1db305ad024527a1c50d5c6621
--- /dev/null
+++ b/ICLR/2025/Learning Structured Universe Graph with Outlier OOD Detection for Partial Matching/758c83ee-d4db-4794-952f-cc65ea8bf7fc_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f182f49f3a83e9da61eb575d28b12a066674e2e8ca017300d4594c8dd45223d7
+size 105882
diff --git a/ICLR/2025/Learning Structured Universe Graph with Outlier OOD Detection for Partial Matching/758c83ee-d4db-4794-952f-cc65ea8bf7fc_model.json b/ICLR/2025/Learning Structured Universe Graph with Outlier OOD Detection for Partial Matching/758c83ee-d4db-4794-952f-cc65ea8bf7fc_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..ececadc060e206ac7871b85cb67732f8e1d42d86
--- /dev/null
+++ b/ICLR/2025/Learning Structured Universe Graph with Outlier OOD Detection for Partial Matching/758c83ee-d4db-4794-952f-cc65ea8bf7fc_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9bbd976ed3b9216af645ba9bd5b09db54c045e01fb9a5178f3427a3c95b38a1b
+size 129175
diff --git a/ICLR/2025/Learning Structured Universe Graph with Outlier OOD Detection for Partial Matching/758c83ee-d4db-4794-952f-cc65ea8bf7fc_origin.pdf b/ICLR/2025/Learning Structured Universe Graph with Outlier OOD Detection for Partial Matching/758c83ee-d4db-4794-952f-cc65ea8bf7fc_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..59011cd25af5127d0f7b418af552a0ea33bb1b03
--- /dev/null
+++ b/ICLR/2025/Learning Structured Universe Graph with Outlier OOD Detection for Partial Matching/758c83ee-d4db-4794-952f-cc65ea8bf7fc_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7e182af92983ec272e6ef40075ddefa2ddbed26512a3a8ff6c3e2b988ff4248c
+size 2118591
diff --git a/ICLR/2025/Learning Structured Universe Graph with Outlier OOD Detection for Partial Matching/full.md b/ICLR/2025/Learning Structured Universe Graph with Outlier OOD Detection for Partial Matching/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..e6411e4ba160bb07940973e71266583f8a899bb6
--- /dev/null
+++ b/ICLR/2025/Learning Structured Universe Graph with Outlier OOD Detection for Partial Matching/full.md
@@ -0,0 +1,418 @@
+# LEARNING STRUCTURED UNIVERSE GRAPH WITH OUTLIER OOD DETECTION FOR PARTIAL MATCHING
+
+Zetian Jiang $^{1\dagger}$ , Jiaxin Lu $^{3\dagger}$ , Haozhao Fan $^{1}$ , Tianzhe Wang $^{1}$ , Junchi Yan $^{12*}$
+
+$^{1}$ Sch. of Computer Science & Sch. of Artificial Intelligence, Shanghai Jiao Tong University
+$^{2}$ Shanghai Artificial Intelligence Laboratory
+$^{3}$ Department of Computer Science, University of Texas at Austin
+
+{maple_jzt, usedtobe, yanjunchi}@sjtu.edu.cn, lujiaxin@utexas.edu
+
+# ABSTRACT
+
+Partial matching is a kind of graph matching where only part of two graphs can be aligned. This problem is particularly important in computer vision applications, where challenges like point occlusion or annotation errors often occur when labeling key points. Previous work has often conflated point occlusion and annotation errors, despite their distinct underlying causes. We propose two components to address these challenges: (1) a structured universe graph is learned to connect two input graphs $\mathbf{X}_{ij} = \mathbf{X}_{iu}\mathbf{X}_{ju}^{\top}$ , effectively resolving the issue of point occlusion; (2) an energy-based out-of-distribution detection is designed to remove annotation errors from the input graphs before matching. We evaluated our method on the Pascal VOC and Willow Object datasets, focusing on scenarios involving point occlusion and random outliers. The experimental results demonstrate that our approach consistently outperforms state-of-the-art methods across all tested scenarios, highlighting the accuracy and robustness of our method.
+
+# 1 INTRODUCTION
+
+Graph matching has been a fundamental task in traditional computer vision for a long time, applied in areas such as structure from motion (Vijayanarasimhan et al., 2017), object tracking (Nam & Han, 2016; Iqbal et al., 2017), optical flow (Sun et al., 2018), stereo matching (Luo et al., 2016; Chang & Chen, 2018), and pose estimation (Gasse et al., 2019). With the rise of deep learning, integrating graph matching and neural networks has led to significant improvements in accuracy and efficiency (Zanfir & Sminchisescu, 2018; Wang et al., 2019), making it more suitable for downstream tasks. Beyond these, graph matching has also shown great potential in other fields, such as bioinformatics for protein structure comparison (Luo et al., 2021) and drug design (Kriege et al., 2019), as well as in social network analysis for community detection and network alignment (Chen et al., 2020).
+
+In particular, graph matching aims to find node correspondence between graph-structured data via both node and edge affinity (Gold & Rangarajan, 1996; Cho et al., 2010). It is a well-known NP-Hard problem and is often formulated as the quadratic assignment problem (QAP):
+
+$$
+\begin{array}{l} \max _ {\mathbf {X}} \operatorname {v e c} (\mathbf {X}) ^ {\top} \mathbf {K} \operatorname {v e c} (\mathbf {X}) \\ s. t. \quad \mathbf {X} \in \{0, 1 \} ^ {n \times n}, \mathbf {X} \mathbf {1} _ {n} = \mathbf {1} _ {n}, \mathbf {X} ^ {\top} \mathbf {1} _ {n} = \mathbf {1} _ {n}. \\ \end{array}
+$$
+
+(1)
+
+Here, $\mathbf{X}$ represents a binary permutation matrix, where $\mathbf{X}_{ij} = 1$ indicates that node $i$ in the first graph corresponds to node $j$ in the second graph. $\mathbf{K} \in \mathbf{R}^{n^2 \times n^2}$ is a hand-crafted or learned affinity matrix whose diagonal (off-diagonal) encodes node (edge) affinities.
+
+While theoretically elegant, the QAP's assumption of perfect one-to-one node correspondence between graphs rarely holds in real-world applications. Practical scenarios often involve partial matching, where only subsets of nodes between graphs correspond, as illustrated in Figure 1. Traditional approaches attempted to address this limitation by introducing dummy nodes with zero affinity. However, this solution proves inadequate for handling real-world challenges such as occlusions and annotation errors.
+
+
+Figure 1: Overview of the problem setting and UGM. Partial Matching: Due to occlusion, viewpoint differences, and annotation errors, only a subset of key points on each graph can be matched. Left: Prior works have limited capability in detecting and filtering outliers. Right: UGM employs two key components to improve partial matching performance: (1) a universe graph that serves as a bridge to aggregate matches from different graphs, and (2) an outlier filter to remove spurious matches. This design ensures that only inliers are matched, significantly enhancing partial matching performance.
+
+Several recent works have explored ways to overcome this limitation. BBGM (Rolínek et al., 2020a), for instance, bypasses the constraint that each node must find a specific match by learning a negative affinity score. However, this approach heavily relies on the neural network's capacity, and the actual performance gains are often limited. GCAN (Jiang et al., 2022) reformulates graph matching as an integer linear programming (ILP), introducing a placeholder node for each graph to absorb outliers. While this helps, learning for ILP remains a challenging task. AFAT (Wang et al., 2023) predicts which node match to discard by analyzing matched points and the affinity matrix. However, as a post-processing step, its effectiveness is limited because outliers may have already disrupted the initial matching, weakening its ability to correct errors. Another approach, URL (Nurlanov et al., 2023), learns a universe point representation, which serves as a central reference for key point alignment across all images. Although it addresses the issue of point occlusion, it still suffers from redundant matches as the erroneous annotation outliers fail to find the corresponding universe point representation.
+
+A key insight often overlooked by these literature is the distinction between point occlusion and annotation errors: occlusion-caused outliers may find correspondences in other graphs, while annotation errors are inherently meaningless. Building on this observation, we propose Universe Graph Matching (UGM), which addresses these challenges through two key innovations: (1) A latent universe graph learning approach that utilizes the structured universe graph to serve as a bridge for matching graph pairs $\mathbf{X}_{ij} = \mathbf{X}_{iu}\mathbf{X}_{ju}^{\top}$ . This method leverages the inherent structural information from input graphs, enhancing the accuracy and robustness of the learned universe graph for handling point occlusions. (2) An energy-based out-of-distribution detection method that effectively identifies and removes annotation errors at test time. Through training with a margin loss, we effectively differentiate between the energy scores of erroneous annotation outliers and valid in-distribution keypoints. By removing annotation errors, we significantly reduce the complexity of the partial matching problem (as we will discuss in Sec. 3.3), thereby improving overall matching accuracy.
+
+# Our primary contributions are:
+
+- We propose Latent Universe Graph Learning, which enhances universe matching robustness through combined node features and structural information.
+- We are the first to introduce the Energy-based OOD Detection for annotation error identification, enabling pre-matching outlier filtering for improved accuracy.
+- We evaluate the proposed UGM approach on keypoint matching tasks under occlusion and random outlier settings using both Pascal VOC and Willow datasets. Our experimental results demonstrate that UGM consistently outperforms state-of-the-art methods, highlighting the effectiveness and robustness of our method.
+
+# 2 RELATED WORKS
+
+# 2.1 CLASSICAL GRAPH MATCHING
+
+Two-graph matching has been widely studied, which involves constructing graphs for the objects to be matched and aligning the nodes and edges between the two graphs. (Gold & Rangarajan, 1996) solves graph matching via a graduated assignment (GA) algorithm, which computes the partial derivative
+
+of the objective function with Taylor expansion to turn the GM problem into a linear assignment problem. RRWM (Cho et al., 2010) constructs an association graph for matching graphs and applies the random walk algorithm with matching constraints. RRWHM (Lee et al., 2011) is the extended version of RRWM where the association graph is built with higher-order geometric information extracted from the graph. DS++, DS* (Dym et al., 2017; Bernard et al., 2018) design different ways to tightly relax GM to a convex problem and then project the results back to the original solution space. LPMP (Swoboda et al., 2017) proposes several additional Lagrangian relaxations of the graph matching problem and o leading solvers for this problem optimize the Lagrange decomposition duals with sub-gradient and dual ascent updates.
+
+In addition, numerous works have focused on matching multiple graphs, which is called Multi-Graph Matching. There are mainly two forms of methods. The first solves the problem in discrete space, which includes composition-based method CAO (Yan et al., 2015b), MGM-Floyd (Jiang et al., 2021), tree-structure-based approach MatchOpt (Yan et al., 2015a), DPMC (Wang et al., 2020b), and Majorize-Minimization framework based approach M3C (Lu et al., 2024). Another line of works (Pachauri et al., 2013; Huang & Guibas, 2013; Chen et al., 2014; Wang et al., 2018) etc. tries to relax the MGM problem into a continuous space and re-project the solution to obtain a discrete matching result.
+
+# 2.2 DEEP LEARNING OF GRAPH MATCHING
+
+Deep learning has recently been applied to graph matching on images (Zanfir & Sminchisescu, 2018), whereby CNN extracts node features from images followed by spectral matching and is learned using a regression-like node correspondence supervision. This work is improved via introducing GNN to encode structural (Wang et al., 2019; Wang et al., 2020) or geometric (Zhang & Lee, 2019) information, with a combinatorial loss based on cross-entropy loss, and Sinkhorn network (Adams & Zemel, 2011) as a differential matching solver. The work (Yu et al., 2020) extends PCA (Permutation loss and Cross-graph Affinity GM) (Wang et al., 2019) by edge embedding and Hungarian-based (Kuhn, 1955) attention mechanism to stabilize end-to-end training. BBGM (Blackbox Deep Graph Matching) (Rolinić et al., 2020b) proposes a better front-end feature extraction backbone with Spline Convolution (Fey et al., 2018), and the gradient is backpropagated by a fitting linear gradient of the discrete graph matching solver (Pogancić et al., 2019). NGM (Neural Graph Matching Nets) (Wang et al., 2021; 2020a) proposes to address the most general Lawler's QAP form, based on the novel feature extractors e.g. (Rolinić et al., 2020a) with the proposed learnable graph matching solver. DLGM (Deep Latent Graph Matching) (Yu et al., 2021), based on BBGM, predicts consistent graph topology utilizing deterministic and generative models to improve the matching quality. GCAN (Jiang et al., 2022) formulates the graph matching problem as an Integer Linear Programming problem and explores a novel node feature extraction framework with attention. AFAT (Wang et al., 2023) uses the attention model to predict which node match to discard by analyzing matched points and the affinity matrix. COMMON (Lin et al., 2023) adopts a contrastive learning approach, utilizing the infoNEC loss to supervise training similarity matrices for both edges and nodes. URL (Nurlanov et al., 2023) introduces a novel universe point representation learning method, applying universe key point matching to the graph matching field for the first time.
+
+# 2.3 OUT-OF-DISTRIBUTION DETECTION
+
+Out-of-distribution (OOD) detection is a growing field aimed at identifying data points that deviate from the distribution on which a model was trained. This is crucial for improving the robustness and safety of machine learning systems. Many OOD detection methods can be applied to pre-trained models without modifying the training process. These methods often rely on statistics from the model's output, such as maximum softmax probability, to distinguish between in-distribution (ID) and OOD data (Hendrycks & Gimpel, 2016; Liang et al., 2017). Energy-based OOD detection methods, on the other hand, assign an energy score to each input, where OOD data typically results in higher energy values (Liu et al., 2020; Bao et al., 2024). Generative models, such as VAEs and GANs, have also been used to estimate the likelihood that a given data point belongs to the training distribution (Nalisnick et al., 2018). More recently, self-supervised tasks have been employed to improve OOD detection by learning representations that are highly correlated with the training distribution, enabling the model to identify deviations (Sehwag et al., 2021). Contrastive learning has further advanced OOD detection by ensuring that OOD data points are positioned far from ID data in the learned representation space (Winkens et al., 2020).
+
+
+Figure 2: Pipeline of Universe Graph Matching. The pipeline consists of two main components: 1) structured universe graph learning, which includes the training of node and edge affinities, and 2) outlier ood detection through energy score. The dark blue arrows indicate the training phase, while the light blue arrows represent the inference phase.
+
+# 3 METHODOLOGY
+
+In this section, we will introduce our method Universe Graph Matching (UGM) from two parts: structured universe graph learning and outlier ood detection in Section 3.1 and 3.2, respectively. The overall pipeline is shown in Figure 2, and more implementation and training details are provided in Appendix B. Meanwhile, we also discuss UGM in perspective of problem formulation and analyze its strength as well as drawbacks in Section 3.3.
+
+# 3.1 STRUCTURED UNIVERSE GRAPH LEARNING
+
+We begin by defining the structured universe graph, which serves as the foundation for our approach. The universe graph $\mathbf{U} = \{\mathbf{N}_u\in \mathbf{R}^{n_u\times d},\mathbf{E}_u\in \mathbf{R}^{m_u\times d}\}$ is composed of both node embeddings $\mathbf{N}_u$ and edge embeddings $\mathbf{E}_u$ . The number of nodes $n_u$ corresponds to the distinct types of key points present in the input graphs. We define this latent $\mathbf{U}$ as a complete, directed graph, where every pair of nodes is connected by a directed edge, resulting in $m_{u} = n_{u}\times (n_{u} - 1)$ edges. This ensures that any edge in the input graph will have a corresponding edge in the universe graph. Moreover, the directed edges capture the inherent asymmetry in real-world relationships between key points, such as varying geometric or contextual dependencies, offering greater flexibility in encoding complex structural information.
+
+We now introduce the pipeline to match the latent universe graph $\mathbf{U}$ to the input graph $\mathbf{G}_i$ . The input graph $\mathbf{G}_i = \{\mathbf{N}_i \in \mathbf{R}^{n_i \times d}, \mathbf{E}_i \in \mathbf{R}^{m_i \times d}\}$ consists of node features $\mathbf{N}_i$ and edge features $\mathbf{E}_i$ . As in previous works, these features are initially extracted using a CNN-based backbone, followed by refinement through a GNN. Node affinity $\mathbf{K}_n$ and Edge affinity $\mathbf{K}_e$ are constructed by:
+
+$$
+\mathbf {K} _ {n} = \mathbf {N} _ {i} \mathbf {N} _ {u} ^ {\top}, \mathbf {K} _ {e} = \mathbf {E} _ {i} \mathbf {E} _ {u} ^ {\top}. \tag {2}
+$$
+
+The matching between the universe graph $\mathbf{U}$ and the input graph $\mathbf{G}_i$ is then obtained using a traditional graph matching solver, such as LPMP (Swoboda et al., 2017):
+
+$$
+\mathbf {X} _ {i u} = G M S o l v e r \left(\mathbf {K} _ {n}, \mathbf {K} _ {e}\right). \tag {3}
+$$
+
+In our training process, we use the ground truth universe matching $\mathbf{X}_{iu}^{gt}$ , instead of ground truth pairwise matching $\mathbf{X}_{ij}^{gt}$ , as the supervision signal. $\mathbf{X}_{iu}^{gt} \in \{0,1\}^{n_i \times n_u}$ is a permutation matrix which denotes the ground truth correspondence between input graph $\mathbf{G}_i$ and universe latent graph. In fact, the universe matching set $\{\mathbf{X}_{iu}|1 \leq i \leq N\}$ and the pairwise matching set $\{\mathbf{X}_{ij}|1 \leq i,j \leq N\}$ are fully equivalent and can be obtained via non-negative factorisation (Bernard et al., 2019):
+
+$$
+\mathcal {X} _ {p} = \left( \begin{array}{c c c c} \mathbf {X} _ {0 0} & \mathbf {X} _ {0 1} & \dots & \mathbf {X} _ {0 N} \\ \mathbf {X} _ {1 0} & \mathbf {X} _ {1 1} & \dots & \mathbf {X} _ {1 N} \\ \vdots & \vdots & \ddots & \vdots \\ \mathbf {X} _ {N 0} & \mathbf {X} _ {N 1} & \dots & \mathbf {X} _ {N N} \end{array} \right) = \left( \begin{array}{c} \mathbf {X} _ {0 u} \\ \mathbf {X} _ {1 u} \\ \vdots \\ \mathbf {X} _ {N u} \end{array} \right) \left(\mathbf {X} _ {0 u} ^ {\top} \quad \mathbf {X} _ {1 u} ^ {\top} \quad \dots \quad \mathbf {X} _ {N u} ^ {\top}\right) = \mathcal {X} _ {u} \mathcal {X} _ {u} ^ {T}. \tag {4}
+$$
+
+Even if some pairwise matchings are missing, we can still recover the universe matching by first applying spectral decomposition and then projecting the result back into the discrete space (Pachauri et al., 2013). It is worth noting that, in most computer vision tasks, the matching matrix is typically
+
+generated from keypoint annotations, and these annotations naturally serve as the ground truth universe matching.
+
+In practice, we cannot directly supervise $\mathbf{X}_{iu}$ with $\mathbf{X}_{iu}^{gt}$ , as most graph matching algorithms are non-differentiable. Even when using differentiable algorithms, such as RRWM (Cho et al., 2010), the high number of iterations would make gradient-based optimization difficult. Therefore, instead of supervising the solution, we directly act on the node and edge affinities. By treating the universe's nodes and edges indices as labels, we apply the cross-entropy loss to the node affinity $\mathbf{K}_n$ and edge affinity $\mathbf{K}_e$ for training:
+
+$$
+\mathcal {L} _ {\text {g r a p h}} = C E \left(\operatorname {s o f t m a x} \left(\mathbf {K} _ {n}\right), y _ {n}\right) + C E \left(\operatorname {s o f t m a x} \left(\mathbf {K} _ {e}\right), y _ {e}\right) \tag {5}
+$$
+
+where
+
+$$
+y _ {n} = \arg \max \left(\mathbf {X} _ {i u} ^ {g t}\right), y _ {e} = y _ {n} (E d g e I D (0)) \times n _ {u} + y _ {n} (E d g e I D (1)). \tag {6}
+$$
+
+Note $EdgeID \in \mathbb{N}^{2 \times m}$ denotes directed edges in the graph. $EdgeID(0)$ denotes the indices of the source nodes and $EdgeID(1)$ denotes the indices of the target nodes. Another important consideration in the matching process is the diversity of categories. The input may consist of pairs from different categories, each ideally requiring its own distinct latent universe graph. A straightforward approach would be to learn a separate graph representation for each category. However, this method would cause the latent universe graph to grow excessively as the number of categories increases. Consequently, the complexity of the graph matching solver could escalate quadratically or even worse, making it impractical for large-scale problems.
+
+To address this, we propose learning a single latent universe graph, where key points from different categories are mapped to the same universe node. For example, the left front wheel of a car and the left handlebar of a bicycle can share the same universe node embedding. In fact, a single universe node embedding is shared among all categories, allowing the graph's size to be limited by the maximum number of points across all categories. The same principle applies to edge embeddings, which further reduces space complexity.
+
+However, since the latent universe graph shares node and edge embeddings for all categories, the embeddings $\mathbf{N}_u$ and $\mathbf{E}_u$ inherently lack category-specific information. To reintroduce this information for affinity construction, we add a class embedding $\mathbf{C}$ to each key point feature $\mathbf{F}$ extracted by CNN-based backbone. This ensures that the nodes $\mathbf{N}_i$ and edges $\mathbf{E}_i$ of the input graph still carry the necessary class information. The class embedding is derived from the global features $\mathbf{H}$ of the input images pair as follows:
+
+$$
+\mathbf {C} = \operatorname {E n c o d e r} \left(\mathbf {H} _ {i}, \mathbf {H} _ {j}\right), \mathbf {F} _ {i} = \operatorname {C o n c a t} \left(\mathbf {F} _ {i}, \mathbf {C}\right), \mathbf {F} _ {j} = \operatorname {C o n c a t} \left(\mathbf {F} _ {j}, \mathbf {C}\right). \tag {7}
+$$
+
+# 3.2 OUTLIER DETECTION
+
+Although the structured universe graph effectively handles point occlusion, it cannot address error annotation outliers, as these outliers do not have corresponding nodes in the universe graph. We frame the identification of these erroneous annotation outliers as an out-of-distribution (OOD) detection problem.
+
+Out-of-distribution detection typically refers to a model's ability to identify and appropriately handle data that deviates significantly from its training distribution. In the context of keypoint annotation, the correctly annotated keypoints adhere to a well-defined, coherent distribution that is consistent across all data. In contrast, erroneously annotated outliers are generated through random and unpredictable factors, causing them to deviate substantially from this established distribution. This inherent difference in data characteristics enables us to frame the outlier detection problem within an OOD detection framework, leveraging the disparity between the structured nature of valid annotations and the stochastic nature of annotation errors.
+
+Following Liu et al. (2020), we define an energy score function for each node $v_{i}$ of input graph:
+
+$$
+\mathcal {E} \left(v _ {i}\right) = - T \cdot \ln \left(\sum_ {j} e ^ {K _ {n} (i, j) / T}\right), \tag {8}
+$$
+
+where $K_{n}(i,j)$ denotes the node affinity between $v_{i}$ on input graph and $v_{j}$ on universe graph, and $T$ is a temperature constant. When $v_{i}$ is an inlier, it should have a corresponding point in the latent universe graph, resulting in a relatively low energy score. Conversely, when $v_{i}$ is an outlier, all the values of $K_{n}(i,j)$ will be relatively low, leading to a higher energy score.
+
+While the energy score can be used for a pre-trained neural network directly, the energy gap between in-distribution and out-of-distribution data may not always be optimal for differentiation. To address this, we also introduce a margin loss that fine-tunes the neural network to explicitly create a larger energy gap:
+
+$$
+\mathcal {L} _ {\text {e n e r g y}} = \mathbb {E} _ {v \sim \mathcal {D} _ {i n}} (\max (0, \mathcal {E} (v) - m _ {i n})) + \mathbb {E} _ {v \sim \mathcal {D} _ {o u t}} (\max (0, m _ {o u t} - \mathcal {E} (v))), \tag {9}
+$$
+
+where $\mathcal{D}_{in}$ is the in-distribution training data, $\mathcal{D}_{out}$ is the out-of-distribution training data, $m_{in}$ and $m_{out}$ are the margins for in- and out-of-distribution data, respectively. This loss assigns lower energy scores to in-distribution data and higher scores to OOD data. By contrastively shaping the energy landscape during training, the model becomes more effective at distinguishing between in- and out-of-distribution data.
+
+To apply the energy score in our network, we first compute the energy $\mathcal{E}$ for each node in the input graph $\mathbf{G}_i$ based on its affinity with nodes in the latent universe graph $\mathbf{U}$ . Nodes with energy scores above a certain threshold $\tau$ , indicating a high likelihood of being outliers, are removed before the graph matching process:
+
+$$
+\mathbf {G} ^ {\text {f i l t e r e d}} = \left\{\mathbf {V} = \left\{v _ {i} \mid \mathcal {E} \left(v _ {i}\right) \leq \tau \right\}, \mathbf {E} = \left\{e _ {i j} \mid \mathcal {E} \left(v _ {i}\right) \leq \tau , \mathcal {E} \left(v _ {j}\right) \leq \tau \right\} \right\} \tag {10}
+$$
+
+We use the newly obtained graph $\mathbf{G}^{\mathrm{filtered}}$ to construct the filtered node affinity $\mathbf{K}_n^{\mathrm{filtered}}$ and edge affinity $\mathbf{K}_e^{\mathrm{filtered}}$ , and then feed it into the graph matching solver to obtain the matching result.
+
+$$
+\mathbf {X} _ {i u} ^ {\text {f i l t e r e d}} = G M S o l v e r \left(\mathbf {K} _ {n} ^ {\text {f i l t e r e d}}, \mathbf {K} _ {e} ^ {\text {f i l t e r e d}}\right). \tag {11}
+$$
+
+This preprocessing step improves the quality and accuracy of the subsequent matching between the input graph and the latent universe graph. After the matching process, the removed outlier points are reintroduced into the solution to maintain the integrity of the input data.
+
+$$
+\mathbf {X} _ {i u} \left(v _ {i}\right) = \left\{ \begin{array}{l l} \mathbf {0} ^ {\top} & \mathcal {E} \left(v _ {i}\right) > \tau , \\ \mathbf {X} _ {i u} ^ {\text {f i l t e r e d}} \left(v _ {i}\right) & \mathcal {E} \left(v _ {i}\right) \leq \tau . \end{array} \right. \tag {12}
+$$
+
+# 3.3 DISCUSSION
+
+Universe Graph Matching essentially decomposes the ambiguous partial matching problem into two well-defined subgraph matching problems. Partial matching, where only parts of the input graphs are aligned, is difficult to formalize with clear optimization objectives and constraints. Conventional approaches, such as adding dummy nodes or relaxing the condition $\mathbf{X1}_n = \mathbf{1}_n$ to $\mathbf{X1}_n \leq \mathbf{1}_n$ , have proven inadequate. Our key contribution lies in introducing latent universe graph, which enables us to decompose the partial matching problem between two graphs as $\mathbf{X}_{ij} = \mathbf{X}_{iu}\mathbf{X}_{ju}^{\top}$ . This reformulation shifts the objective from maximizing the match $\mathbf{X}_{ij}$ between the input graphs to maximizing the match $\mathbf{X}_{iu}, \mathbf{X}_{ju}$ between each input graph and the latent universe graph. Since the latent universe graph contains all points and edges, the input graphs become its subgraphs, turning the solution of $\mathbf{X}_{iu}$ into a well-defined subgraph matching problem. This more precise and structured problem definition in universe graph matching improves performance over traditional pairwise graph matching on partial matching tasks.
+
+However, the latent universe graph alone cannot fully address the error annotation points, which lack corresponding matches in the universe graph and violate the assumption that input graphs are subgraphs of the universe graph. While introducing dummy nodes in to the universe graph $\mathbf{U}$ could potentially account for these outliers, this approach faces several challenges. Estimating the appropriate number of dummy nodes is difficult, and the randomness of error annotations makes it complicate to learning effective dummy node embeddings. Our solution adopts an OOD detection approach, treating error annotation outliers as out-of-distribution points and excluding them before solving the subgraph matching problem.
+
+Despite its advantages, our approach still faces several challenges: 1) Universe latent graph is inherently limited to closed-set problems, relying on class information and training data, which restricts generalization to unseen categories. However, few-shot learning can significantly alleviate this limitation, as shown in our experiments in Appendix ??, demonstrating the method's potential to adapt to new classes. 2) The universe graph is a complete graph; however, the distribution of edges in the input graphs is uneven. This mismatch leads to suboptimal learning of many edge embeddings, with some edges either absent or appearing only rarely in the training data. 3) While the universe graph is more stable and structured than universe point representation, the universe graph cannot fully prevent errors in $\mathbf{X}_{iu}$ from propagating to all $\mathbf{X}_{ij}$ matches. All in all, expanding graph partial matching to a more general form, both in terms of mathematical modeling and finer design, requires a long-term exploration.
+
+# 4 EXPERIMENT
+
+# 4.1 PROTOCOL
+
+Datasets We evaluate our method on Pascal VOC (Everingham et al., 2010) and Willow Object Class (Cho et al., 2013), two widely recognized datasets.
+
+The Pascal VOC (Everingham et al., 2010) with Berkeley annotations (Bourdev & Malik, 2009) contains images with bounding boxes surrounding objects of 20 classes. We follow the standard data preparation procedure of NGM and BBGM (Wang et al., 2021; Rolínek et al., 2020b). Each object is cropped to its bounding box and scaled to $256 \times 256$ px. We follow the unfiltered setting (Rolínek et al., 2020b), which preserves all key points for graph pairs, to evaluate our method's performance under point occlusion. Moreover, we randomly sample the coordinates on images to add outliers, which serve as error annotation key points. We also follow prior works to split the train and test dataset, where training data includes 7,020 images and test data includes 1,682 images.
+
+The Willow Object Class (Cho et al., 2013) contains images from Caltech-256 (Griffin et al., 2007) and Pascal VOC 2007 (Everingham et al.), which consists of 256 images from 5 categories: 40 cars, 40 motorbikes, 50 ducks, 66 wine bottles, and 109 faces. Each image is annotated with the same ten key points. Following standard procedure, we also rescale the image to $256 \times 256$ px. In experiments, we randomly drop 0 - 6 key points for each image for the 'occlusion' setting. We also add 1 - 10 random outliers as we do in PascalVOC for the 'random outlier' setting. We choose 20 images from each category as our training dataset and leave others for evaluation.
+
+Compared Method We compare our methods UGM with previous work of two kinds: traditional solver with pre-defined affinity and deep graph matching learning model. For the learning-free traditional solvers, we consider four works: GAGM (Gold & Rangarajan, 1996), RRWM (Cho et al., 2010), BPF (Wang et al., 2017), and ZAC (Wang et al., 2020). We generate node and edge affinities using the pre-trained BBGM learning framework and input these affinities into each solver to obtain their respective matching results. For learning-based models, we compare our method with NGMv2 (Wang et al., 2021), BBGM (Roliniak et al., 2020b), DLGM (Yu et al., 2021), GCAN (Jiang et al., 2022), AFAT (Wang et al., 2023), and URL (Lin et al., 2023). To report the performance of prior works, we adhere to the following principles: 1) If a prior work's experimental settings align with ours, we directly report the performance metrics provided in their paper. 2) If the experimental setting is unique to our work, we attempt to replicate the prior methods under their original experimental settings and then adapt them to our setting to obtain comparable performance metrics. However, we failed to replicate the methods of DLGM and URL because they did not release publicly available code. Therefore, we did not report their performance in some of the experiments (Table 2 and Table 3).
+
+Evaluation Metric We see the matching prediction as a binary classification task for each entry. Therefore, F1 score is applied as an evaluation metric, which is introduced by BBGM (Roliniak et al., 2020b). The F1 score is calculated as follows:
+
+$$
+\mathbf {F} _ {1} = 2 \cdot \frac {\text {P r e c i s i o n} \cdot \text {R e c a l l}}{\text {P r e c i s i o n} + \text {R e c a l l}} = \frac {2 \mathrm {T P}}{2 \mathrm {T P} + \mathrm {F P} + \mathrm {F N}} \tag {13}
+$$
+
+where TP denotes true positive, FP denotes false positive, and FN denotes false negative.
+
+# 4.2 PERFORMANCE ON PASCAL VOC
+
+To thoroughly evaluate the performance of our proposed UGM method, we conducted experiments on the Pascal VOC dataset under two distinct settings: the unfiltered setting, where all key points are preserved without the introduction of additional noise, and the random outlier setting, where two random outliers are further added to each input image. All the results are shown in Table 1 and 2.
+
+Our proposed UGM method demonstrates superior performance in both setting, surpassing the state-of-the-art (SOTA) models by a significant margin. Specifically, in the unfiltered setting, UGM outperforms the best-performing SOTA model by $2.2\%$ in terms of average F1 score. Similarly, in the random outlier setting, UGM still leads the comparison, exceeding the next best method by $4.8\%$ . This consistent improvement across both settings highlights the robustness and generalization ability of our approach.
+
+A comparison of the two tables reveals how much performance degrades between the unfiltered and random outlier settings, allowing us to evaluate the robustness of learning-based models in the presence of outliers. Our UGM method experiences a performance drop of $8.8\%$ , ranking second
+
+Table 1: F1 Score performance on Pascal VOC under 'unfiltered' setting. All the key points are preserved, and no additional outliers are added. Top: learning-free graph matching solver with pre-learned affinity. Middle: deep learning graph matching model. Bottom: out method UGM.
+
+
Method
aero
bike
bird
boat
bottle
bus
car
cat
chair
cow
table
dog
horse
motor
person
plant
sheep
sofa
train
tv
avg
GAGM
37.3
60.3
47.7
39.1
75.0
53.7
36.1
59.2
34.8
56.2
40.2
54.4
51.9
54.3
39
83.8
48.8
19
58.3
68.7
50.9
RRWM
39.4
63.7
52.1
39.7
76.5
57.9
28.5
64.3
37.9
60.3
43
57.9
54.2
54
43.3
85
50.4
22
66.1
69.9
53.3
BPF
39.2
66.5
51.2
40.0
77.0
59.0
26.7
63.8
36.9
60.6
49.7
58.1
54.3
58.2
43.6
84.9
50.7
23
66.4
70.4
54.0
ZAC
43.5
62.8
57.5
43.9
72.1
61.2
33.6
69
38.3
64.1
46.4
66.2
61.8
61.4
46.4
83.2
58.1
27.9
69.8
72.6
57.0
NGMv2
45.5
65.3
55.3
45.8
88.4
64.3
45.9
58.6
43.3
59.1
39.2
55.7
58
65.3
44.4
95.4
50.3
41.2
72.4
81.8
58.8
BBGM
42.7
70.9
57.5
46.6
85.8
64.1
51
63.8
42.4
63.7
47.9
61.5
63.4
69
46.1
94.2
57.4
39
78
82.7
61.4
DLGM
43.8
72.9
58.5
47.4
86.4
71.2
53.1
66.9
54.6
67.8
64.9
65.7
66.9
70.8
47.4
96.5
61.4
48.4
77.5
83.9
64.8
GCAN
45
66.7
60.6
49.7
89.7
66.3
65.2
64.9
45.5
66.9
54.4
63.1
62.5
63.5
55
96.1
63.5
49.7
80.6
83.6
64.6
AFAT
47.1
70.8
58.1
45.8
90.8
66.5
49.6
58.8
50.6
64.6
47.2
60.5
62.3
65.7
46.3
95.4
52.7
47.4
74.2
83.8
62.0
URL
62.7
75.2
73
56.7
93.7
66.2
76.7
69.2
64.9
76.6
44.6
74.4
78.8
80.9
62.5
96.9
70.3
55.4
73.6
82.1
71.7
UGM
57.4
76.3
71.2
55.1
91.7
72.3
80.3
72.3
70.1
74.6
61.5
75.3
71.6
76.1
63.8
97.2
73.6
60.0
93.1
84.8
73.9
+
+Table 2: F1 Score performance on Pascal VOC under 'random outlier' setting. Two random outliers are further added to each input image. Top: learning-free graph matching solver with pre-learned affinity. Middle: deep learning graph matching model. Bottom: out method UGM.
+
+
Method
aero
bike
bird
boat
bottle
bus
car
cat
chair
cow
table
dog
horse
motor
person
plant
sheep
sofa
train
tv
avg
GAGM
26.7
49.3
36.6
25.1
61.9
40.7
9.0
45.4
22.5
39.3
13.1
41.0
37.8
39.1
27.9
59.8
29.1
19.7
26.0
54.9
35.2
RRWM
28.3
54.6
40.3
27.4
70.6
46.3
9.0
49.8
23.5
42.8
15.1
44.8
38.1
39.1
30.3
66.8
29.3
18.1
27.1
64
38.3
BPF
25.8
55.2
38.8
26.0
70.7
45.7
9.5
49.4
22.9
40.2
14.4
44.1
36.9
40.0
29.0
68.6
28.6
18.8
28.1
63.8
37.8
ZAC
37.2
62.3
50.8
34.0
76.0
55.9
23.8
63.7
33.2
58.8
37.7
59.4
55.8
55.4
39.1
76.8
49.3
29.0
49.1
68.9
50.8
NGMv2
35.6
60.2
45.0
34.3
72.1
51.3
40.2
50.2
29.5
49.4
23.7
47.6
49.8
51.5
38.7
69.3
42.9
40.8
45.0
62.2
47.0
BBGM
34.4
63.9
44.1
35.0
78.5
57.6
21.5
54.6
33.7
50.3
37.4
49.8
50.8
54.7
29.6
79.8
44.1
23.5
44.5
76.1
48.2
GCAN
44.4
61.7
51.2
47.5
78.8
72.3
48.9
58.0
50.2
62.8
53.0
54.6
60.3
61.2
51.5
83.2
62.6
48.8
70.0
84.8
60.3
AFAT
41.2
66.9
51.4
36.5
82.7
61.8
37.9
56.9
34.8
55.7
28.0
54.4
55.3
60.3
38.2
86.3
48.8
32.6
57.1
77.1
53.1
UGM
49.9
72.2
63.5
48.8
85.3
70.1
71.8
66.5
54.6
67.4
49.5
67.4
65.2
66.2
57.6
88.0
62.2
47.2
65.6
83.4
65.1
+
+among the learning-based models, just behind GCAN. In comparison, models like NGMv2 and BBGM exhibit larger performance declines of $11.8\%$ and $13.2\%$ , respectively. The relatively low decrease in UGM's performance demonstrates its robustness and adaptability, particularly in noisy and complex environments, making it a reliable option for real-world graph matching tasks.
+
+We also perform an random outlier pressure test on our method UGM. Results are shown in Figure 3. Classes like sofa, train, and table see a significant performance drop (32% - 61%) as the number of random outliers increases. This decline is primarily due to the limited amount of training data, particularly for classes like 'table', which has only 28 images, and 'sofa', which has 73 images in the train dataset. The fewer images available, the lower the quality of the constructed latent universe graph, making it more difficult to distinguish between inliers and error annotation outliers. On the other hand, classes like TV, boat, horse, and bus are more robust, with relatively smaller drops in performance (9.9% - 13.9%).
+
+# 4.3 PERFORMANCE ON WILLOW OBJECT
+
+In this experiment, we evaluate the performance of various learning-based graph matching models on the Willow dataset under three settings: occlusion, random outlier, and occlusion + random outlier. These settings simulate real-world challenges, where key points may be missing (occlusion), or noisy data (outliers) may be introduced. All the results are shown in Table 3.
+
+Our proposed UGM method demonstrates superior performance across all three settings. In the occlusion setting, UGM achieves the highest average F1 score of $91.9\%$ , outperforming the next best model, GCAN, by a significant margin of $9.7\%$ . In the random outlier setting, UGM again leads with an average score of $85.4\%$ , surpassing AFAT, the second-best model, by $1.7\%$ . Finally, in the occlusion + random outlier setting, UGM shows exceptional robustness, maintaining the highest average score of $71.1\%$ , which is $5.9\%$ higher than the second-place model.
+
+It is worth noting that the extent of our lead varies across the three settings.
+
+- In the occlusion setting, UGM demonstrates a significant advantage. This suggests that the latent universe graph structure offers a considerable benefit compared to pairwise matching approaches,
+
+
+Figure 3: Random outlier pressure test of UGM on Pascal VOC. All the key points are preserved, and additional outliers are added to each input image.
+
+Table 3: F1 Score performance on Willow Object Class. Occlusion: randomly drop 0-6 key points for each input image. Random Outlier: randomly add 1-10 outliers for each input image. Occlusion + Random Outlier: both operations are applied. Only the learning model's performance is reported.
+
+
Method
Occlusion
Random Outlier
Occlusion + Random Outlier
car
duck
face
motor
bottle
avg
car
duck
face
motor
bottle
avg
car
duck
face
motor
bottle
avg
NGMv2
80.9
73.8
84.9
85.7
76.7
80.4
78.9
66.6
84.3
63.1
76
73.8
46.3
45.2
61.6
42.9
54.6
50.1
BBGM
77.5
78.8
92.7
83.1
82.3
82.9
65.1
60.7
85.5
71.6
65.5
69.7
36.2
35.5
57.2
35.0
52.4
43.3
GCAN
81.4
74.4
88.5
88.3
78.2
82.2
74.8
75.7
92.8
77.1
83.5
80.8
43.7
51.7
60.2
45.8
56.9
51.7
AFAT
77.1
73.7
88.0
76.6
86.4
80.4
82.2
77.7
92.7
77.2
88.6
83.7
70.8
54.7
79.1
53.8
67.9
65.2
UGM
87.7
86.2
99.5
90.2
96.0
91.9
88.1
72.9
96.8
82.5
86.5
85.4
64.4
62.1
89.6
65.1
74.5
71.1
+
+as Universe Graph Matching essentially decomposes the ambiguous pairwise partial matching problem into two well-defined subgraph matching problems, thereby improving its ability to handle missing key points.
+
+- In the random outlier setting, the performance gap between UGM and other models is narrower. While our OOD (out-of-distribution) detection technique offers a clear advantage, the improvement is less pronounced. This is likely due to the fact that our approach does not introduce additional training parameters, which limits the potential for further gains.
+- Finally, in the occlusion + random outlier setting, UGM once again achieves a clear lead. This demonstrates the strong synergy between the latent universe graph learning and our energy based OOD detection technique. The two techniques work in harmony, with no conflicting or contradictory effects, allowing UGM to excel in the most challenging conditions.
+
+# 4.4 ABLATION STUDIES
+
+The ablation study results presented in Table 4 highlight the contribution of each key component—class embedding, universe graph, and outlier filter—to the overall performance. Without the outlier filter component, we matched all the points in the input graph to the latent universe graph. Without edge learning, we only learned the universe node representation and used a linear assignment solver to obtain the matching results between the input graph and the universe point representation. Without class embedding, we directly used the local key point features extracted by the backbone to learn the node embeddings.
+
+Table 4: Ablation study on Pascal VOC with 'random outlier' setting. All the key points are preserved, and two random outliers are added to each input image. F1 score is reported.
+
+
class embedding
edge learning
outlier filter
F1 score
✓
✓
✓
65.12
✓
✓
x
56.88
✓
x
✓
63.49
x
✓
✓
58.71
+
+These results demonstrate that each component plays a unique role in enhancing the model's performance. Specifically, removing the outlier filter has the most significant negative impact, underscoring its importance in handling noise and maintaining robust graph matching.
+
+Furthermore, we also conduct a sensitivity test for hyperparameters on Pascal VOC under the 'random outlier' setting, as shown in Figure 4. In this sensitivity analysis, we investigate the effects of varying three hyperparameters—temperature $T$ , threshold $\tau$ , and the pair of values for $m_{in}$ and $m_{out}$ . Unless
+
+
+Figure 4: Sensitivity test for hyperparameters on Pascal VOC under 'random outlier' setting. Temperature $T$ in energy function, OOD threshold $\tau$ , and $m_{in}, m_{out}$ in energy loss are tested.
+
+
+
+
+
+
+
+
+Figure 5: Visualization on Pascal VOC of UGM and peer methods. The green dashed lines represent correct matches, while the red dashed lines represent incorrect matches. Ground truth matching is shown at the bottom.
+
+specified otherwise, the default parameter values are set to $T = 1.0$ , $m_{in} = -3$ , $m_{out} = -6$ , and $\tau = (m_{in} + m_{out}) / 2$ .
+
+For the temperature experiment, we tested values ranging from 0.8 to 10. The results show that performance peaks at temp=1.0 with an average value of 65.1, and gradually decreases as the temperature increases. The threshold experiment explores a range from -1.5 to -6. The average performance is highest at $\tau = -2.5$ with a value of 66.37, and the performance decreases consistently as the threshold becomes more negative. Although adjusting $\tau$ can achieve a higher F1 score, we are concerned that this might lead to some overfitting in the model. Therefore, we still report the model results using the default value $\tau = (m_{in} + m_{out}) / 2$ in other contexts. For the $m_{\mathrm{in}}$ and $m_{\mathrm{out}}$ experiments, we analyze both their margin (difference) and absolute offset. Performance peaks at (-3, -6), where the margin is 3, but the overall impact of varying the range (from 1 to 7) or shifting their absolute values is minimal.
+
+# 5 CONCLUSION
+
+In summary, this work presents a novel approach to addressing the challenges of partial matching in graph-based keypoint alignment tasks. We introduce Structured Universe Graph Learning to effectively resolve point occlusion by connecting input pairs via a learned latent graph. Additionally, by incorporating both node features and structural information, the robustness of the matching process is further enhanced. We also adopt Energy-based Out-of-Distribution Detection to filter out annotation errors before matching, improving the overall quality of the matching process. Through extensive evaluations of the Pascal VOC and Willow Object datasets, our method consistently outperforms state-of-the-art techniques, particularly in challenging scenarios involving both point occlusion and random outliers, demonstrating the effectiveness and robustness of our approach.
+
+# REFERENCES
+
+Ryan Prescott Adams and Richard S Zemel. Ranking via sinkhorn propagation. arXiv:1106.1925, 2011.
+Tianyi Bao, Qitian Wu, Zetian Jiang, Yiting Chen, Jiawei Sun, and Junchi Yan. Graph out-of-distribution detection goes neighborhood shaping. In *Forty-first International Conference on Machine Learning*, 2024.
+Florian Bernard, Christian Theobalt, and Michael Moeller. Ds*: Tighter lifting-free convex relaxations for quadratic matching problems. In CVPR, pp. 4310-4319, 2018.
+Florian Bernard, Johan Thunberg, Jorge Goncalves, and Christian Theobalt. Synchronisation of partial multi-matchings via non-negative factorisations. Pattern Recognition, 92:146-155, 2019.
+Lubomir D. Bourdev and Jitendra Malik. Poselets: Body part detectors trained using 3d human pose annotations. ICCV, pp. 1365-1372, 2009.
+Jia-Ren Chang and Yong-Sheng Chen. Pyramid stereo matching network. In CVPR, pp. 5410-5418, 2018.
+Hongxu Chen, Hongzhi Yin, Xiangguo Sun, Tong Chen, Bogdan Gabrys, and Katarzyna Musial. Multi-level graph convolutional networks for cross-platform anchor link prediction. In Proceedings of the 26th ACM SIGKDD international conference on knowledge discovery & data mining, pp. 1503-1511, 2020.
+Yuxin Chen, Leonidas Guibas, and Qixing Huang. Near-optimal joint object matching via convex relaxation. In ICML, pp. 100-108, 2014.
+Minsu Cho, Jungmin Lee, and Kyoung Mu Lee. Reweighted random walks for graph matching. In ECCV, pp. 492-505, 2010.
+Minsu Cho, Alahari Karteek, and J. Ponce. Learning graphs to match. ICCV, pp. 25-32, 2013.
+Boris Delaunay et al. Sur la sphere vide. Izv. Akad. Nauk SSSR, Otdelenie Matematicheskii i Estestvennyka Nauk, 7(793-800):1-2, 1934.
+Nadav Dym, Haggai Maron, and Yaron Lipman. $\mathrm{Ds}++$ a flexible, scalable and provably tight relaxation for matching problems. ACM Transactions on Graphics (TOG), 36(6):1-14, 2017.
+M. Everingham, L. Van Gool, C. K. I. Williams, J. Winn, and A. Zisserman. The PASCAL Visual Object Classes Challenge 2007 (VOC2007) Results. http://www.pascalnetwork.org/challenges/VOC/voc2007/workshop/index.html.
+Mark Everingham, Luc Gool, Christopher K. Williams, John Winn, and Andrew Zisserman. The pascal visual object classes (voc) challenge. IJCV, 88(2):303-338, June 2010. ISSN 0920-5691.
+Matthias Fey, Jan Eric Lenssen, Frank Weichert, and Heinrich Müller. Splineconn: Fast geometric deep learning with continuous b-spline kernels. In CVPR, pp. 869-877, 2018.
+Maxime Gasse, Didier Chételat, Nicola Ferroni, Laurent Charlin, and Andrea Lodi. Exact combinatorial optimization with graph convolutional neural networks. arXiv preprint arXiv:1906.01629, 2019.
+S. Gold and Anand Rangarajan. A graduated assignment algorithm for graph matching. IEEE TPAMI, 18:377-388, 1996.
+Gregory Griffin, Alex Holub, and Pietro Perona. Caltech-256 object category dataset. Technical report, California Institute of Technology, 2007.
+Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, pp. 770-778, 2016.
+Dan Hendrycks and Kevin Gimpel. A baseline for detecting misclassified and out-of-distribution examples in neural networks. arXiv preprint arXiv:1610.02136, 2016.
+Qi-Xing Huang and Leonidas Guibas. Consistent shape maps via semidefinite programming. In Computer Graphics Forum, volume 32, pp. 177-186. Wiley Online Library, 2013.
+
+Umar Iqbal, Anton Milan, and Juergen Gall. Posetrack: Joint multi-person pose estimation and tracking. In CVPR, pp. 2011-2020, 2017.
+Zetian Jiang, Tianzhe Wang, and Junchi Yan. Unifying offline and online multi-graph matching via finding shortest paths on supergraph. IEEE TPAMI, 43(10):3648-3663, 2021.
+Zheheng Jiang, Hossein Rahmani, Plamen Angelov, Sue Black, and Bryan M Williams. Graph-context attention networks for size-varied deep graph matching. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 2343-2352, 2022.
+Nils M Kriege, Lina Humbeck, and Oliver Koch. Chemical similarity and substructure searches. 2019.
+Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. NeurIPS, 25:1097-1105, 2012.
+H. W. Kuhn. The hungarian method for the assignment problem. In Export. Naval Research Logistics Quarterly, pp. 83-97, 1955.
+Jungmin Lee, Minsu Cho, and Kyoung Mu Lee. Hyper-graph matching via reweighted random walks. In CVPR, pp. 1633-1640, 2011.
+Shiyu Liang, Yixuan Li, and Rayadurgam Srikant. Enhancing the reliability of out-of-distribution image detection in neural networks. arXiv preprint arXiv:1706.02690, 2017.
+Yijie Lin, Mouxing Yang, Jun Yu, Peng Hu, Changqing Zhang, and Xi Peng. Graph matching with bi-level noisy correspondence. In Proceedings of the IEEE/CVF international conference on computer vision, pp. 23362-23371, 2023.
+Weitang Liu, Xiaoyun Wang, John Owens, and Yixuan Li. Energy-based out-of-distribution detection. Advances in neural information processing systems, 33:21464-21475, 2020.
+Jiaxin Lu, Zetian Jiang, Tianzhe Wang, and Junchi Yan. M3c: A framework towards convergent, flexible, and unsupervised learning of mixture graph matching and clustering. 2024.
+Shitong Luo, Chence Shi, Minkai Xu, and Jian Tang. Predicting molecular conformation via dynamic graph score matching. Advances in Neural Information Processing Systems, 34:19784-19795, 2021.
+Wenjie Luo, Alexander G Schwing, and Raquel Urtasun. Efficient deep learning for stereo matching. In CVPR, pp. 5695-5703, 2016.
+Eric Nalisnick, Akihiro Matsukawa, Yee Whye Teh, Dilan Gorur, and Balaji Lakshminarayanan. Do deep generative models know what they don't know? arXiv preprint arXiv:1810.09136, 2018.
+Hyeonseob Nam and Bohyung Han. Learning multi-domain convolutional neural networks for visual tracking. In CVPR, pp. 4293-4302, 2016.
+Zhakshylyk Nurlanov, Frank R Schmidt, and Florian Bernard. Universe points representation learning for partial multi-graph matching. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 37, pp. 1984-1992, 2023.
+Deepti Pachauri, Risi Kondor, and Vikas Singh. Solving the multi-way matching problem by permutation synchronization. In NeurIPS, pp. 1860-1868, 2013.
+Marin Vlastelica Pogančić, Anselm Paulus, Vit Musil, Georg Martius, and Michal Rolinek. Differentiation of blackbox combinatorial solvers. In ICLR, 2019.
+Michal Rolínek, Paul Swoboda, Dominik Zietlow, Anselm Paulus, Vít Musil, and Georg Martius. Deep graph matching via blackbox differentiation of combinatorial solvers. In ECCV, pp. 407-424, 2020a.
+Michal Rolínek, Paul Swoboda, Dominik Zietlow, Anselm Paulus, Vít Musil, and Georg Martius. Deep graph matching via blackbox differentiation of combinatorial solvers. In ECCV, pp. 407-424, 2020b.
+Vikash Sehwag, Mung Chiang, and Prateek Mittal. Ssd: A unified framework for self-supervised outlier detection. arXiv preprint arXiv:2103.12051, 2021.
+
+Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. In ICLR, 2014.
+Deqing Sun, Xiaodong Yang, Ming-Yu Liu, and Jan Kautz. Pwc-net: Cnns for optical flow using pyramid, warping, and cost volume. In CVPR, pp. 8934-8943, 2018.
+Paul Swoboda, Carsten Rother, Hassan Abu Alhaija, Dagmar Kainmuller, and Bogdan Savchynskyy. A study of lagrangean decompositions and dual ascent solvers for graph matching. In $CVPR$ , pp. 1607-1616, 2017.
+Sudheendra Vijayanarasimhan, Susanna Ricco, Cordelia Schmid, Rahul Sukthankar, and Kate-rina Fragkiadaki. Sfm-net: Learning of structure and motion from video. arXiv preprint arXiv:1704.07804, 2017.
+Fudong Wang, Nan Xue, Jin-Gang Yu, and Gui-Song Xia. Zero-assignment constraint for graph matching with outliers. In $CVPR$ , pp. 3033-3042, 2020.
+Qianqian Wang, Xiaowei Zhou, and Kostas Daniilidis. Multi-image semantic matching by mining consistent features. In CVPR, pp. 685-694, 2018.
+R. Wang, J. Yan, and X. Yang. Combinatorial learning of robust deep graph matching: an embedding based approach. IEEE TPAMI, 2020.
+Runzhong Wang, Junchi Yan, and Xiaokang Yang. Learning combinatorial embedding networks for deep graph matching. In ICCV, pp. 3056-3065, 2019.
+Runzhong Wang, Junchi Yan, and Xiaokang Yang. Neural graph matching network: Learning lawler's quadratic assignment problem with extension to hypergraph and multiple-graph matching. IEEE TPAMI, 2021.
+Runzhong Wang, Ziao Guo, Shaofei Jiang, Xiaokang Yang, and Junchi Yan. Deep learning of partial graph matching via differentiable top-k. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 6272-6281, 2023.
+Tao Wang, Haibin Ling, Congyan Lang, and Songhe Feng. Graph matching with adaptive and branching path following. IEEE TPAMI, 2017.
+Tao Wang, He Liu, Yidong Li, Yi Jin, Xiaohui Hou, and Haibin Ling. Learning combinatorial solver for graph matching. In CVPR, pp. 7568-7577, 2020a.
+Tianzhe Wang, Zetian Jiang, and Junchi Yan. Clustering-aware multiple graph matching via decayed pairwise matching composition. In Proc. AAAI Conf. Artif. Intell, pp. 7-12, 2020b.
+Jim Winkens, Rudy Bunel, Abhijit Guha Roy, Robert Stanforth, Vivek Natarajan, Joseph R Ledsam, Patricia MacWilliams, Pushmeet Kohli, Alan Karthikesalingam, Simon Kohl, et al. Contrastive training for improved out-of-distribution detection. arXiv preprint arXiv:2007.05566, 2020.
+J. Yan, J. Wang, H. Zha, X. Yang, and S. Chu. Consistency-driven alternating optimization for multigraph matching: A unified approach. IEEE TIP, 24(3):994-1009, 2015a.
+Junchi Yan, Minsu Cho, Hongyuan Zha, Xiaokang Yang, and Stephen M Chu. Multi-graph matching via affinity optimization with graduated consistency regularization. IEEE TPAMI, 38(6):1228-1242, 2015b.
+Tianshu Yu, Runzhong Wang, Junchi Yan, and Baoxin Li. Learning deep graph matching with channel-independent embedding and hungarian attention. In ICLR, 2020.
+Tianshu Yu, Runzhong Wang, Junchi Yan, and Baoxin Li. Deep latent graph matching. In ICML, pp. 12187-12197, 2021.
+Andrei Zanfir and Cristian Sminchisescu. Deep learning of graph matching. In CVPR, pp. 2684-2693, 2018.
+Zhen Zhang and Wee Sun Lee. Deep graphical feature learning for the feature matching problem. In ICCV, pp. 5087-5096, 2019.
+
+# APPENDIX
+
+# A NOTATION
+
+We first present all notations used in this paper for a better understanding of proposed algorithms and to facilitate the following discussion.
+
+Table 5: Main notations and description used in this paper.
+
+
Notations
Descriptions
N
Node embedding or node feature on the graph.
E
Edge embedding or node feature on the graph.
U
U = {Nu ∈ Rnun×d, Eu ∈ Rmu×d} denotes the latent universe graph, where nu and mu represents the node and edge number of the latent universe graph.
Gi
Gi = {Ni ∈ Rni×d, Ei ∈ Rmi×d} denotes the input graph, where ni and mi represents the node and edge number of the input graph.
EdgeID
EdgeID ∈ N2×m denotes directed edges in the graph. EdgeID(0) denote the indices of the source nodes and EdgeID(1) denote the indices of the target nodes.
Kn
Kn ∈ Rni×nu denotes the node affinity between the input graph and the universe graph.
Ke
Ke ∈ Rmi×mu denotes the edge affinity between the input graph and the universe graph.
Xij
Xij ∈ {0,1}ni×nu denotes the matching between the input graphs.
Xiu
Xi ∈ {0,1}ni×nu denotes the matching between the input graph and the universe graph.
C
Class embedding for image pair.
Hi
Global feature extracted by backbone for the input image.
Fi
Key point feature extracted by backbone for the input image.
E(vi)
Energy score for node vi.
τ
Energy score threshold for outlier filter.
Din, Dout
Din, Dout denotes in-distribution data and out-of-distribution data respectively.
+
+# B IMPLEMENTATION DETAIL
+
+We utilize the standard feature extractor pipeline with a few modifications.
+
+- Fisrt of all, we replace the VGG16 (Simonyan & Zisserman, 2014) backbone with ResNet50 (He et al., 2016). We compute the outputs of $relu3\_5$ , $relu4\_1$ of the ResNet50 network pre-trained on ImageNet (Krizhevsky et al., 2012), to obtain feature $\mathbf{F}_1$ and $\mathbf{F}_2$ , respectively. These features are then concatenated to create the key point feature $\mathbf{F}$ :
+
+$$
+\mathbf {F} = \text {C O N C A T} \left(\mathbf {F} _ {1}, \mathbf {F} _ {2}\right) \tag {14}
+$$
+
+Class embedding is added to $\mathbf{F}$ as introduced in Equation 7, and we apply an MLP layer to reduce the feature dim to keep the same dimension with the output of the VGG16-based backbone.
+
+- Then we feed the obtained feature $\mathbf{F}$ and the graph adjacency $\mathcal{A}$ into the geometric feature refinement component. The graph adjacency $\mathcal{A}$ is generated using Delaunay triangulation (Delaunay et al., 1934) based on keypoint locations. We apply SplineConv (Fey et al., 2018) to encode higher-order information and the geometric structure of the entire graph into node-wise features $\mathbf{F}^n$ :
+
+$$
+\mathbf {N}, \mathbf {E} = S p l i n e C o n v (\mathbf {F}, \mathcal {A}) \tag {15}
+$$
+
+The Spline Conv operation is calculated as follows:
+
+$$
+\mathbf {F} _ {i} = \frac {1}{| \mathcal {N} (i) |} \sum_ {j \in \mathcal {N} (i)} \mathbf {F} _ {j} \cdot h _ {\Theta} \left(\mathbf {F} _ {i} - \mathbf {F} _ {j}\right) \tag {16}
+$$
+
+where $\mathbf{F}_i$ represents the node feature of $v_i$ , $\mathcal{N}(i)$ denotes the neighborhood of $v_i$ , and $h_\Theta$ denotes a kernel function defined over the weighted B-Spline tensor product basis.
+
+Algorithm 1 Universe Graph Matching
+Require: Input images $I$ input key points $P$ , learnable parameters $\theta$ , learning rate $\eta$ , epoch number $E$ , margins $m_{in},m_{out}$ , Temperature $T$ , OOD threshold $\tau$
+Ensure: Trained parameters $\theta^{*}$ and universe latent graph $\mathbf{U}^*$
+1: Initialize $\theta$ randomly
+2: Initialize node and edge embedding of universe latent graph U randomly
+3: for $e = 1$ to $E$ do
+4: for image pair $I_{i},I_{j}$ in train/test dataset do
+5: # extract features
+6: Extract key point feature F by CNN backbone via Eq. 14
+7: Add class embedding to F via Eq. 7
+8: Refine F with Spline Conv to obtain node N and edge feature E via Eq. 15 and Eq. 16
+9:
+10: # build affinity
+11: Construct node affinity $\mathbf{K}_n$ and edge affinity $\mathbf{K}_e$ via Eq. 2
+12: Calculate energy $\mathcal{E}$ for each node via Eq. 8
+13: Filter out random outlier with OOD threshold $\tau$ via Eq. 10
+14:
+15: if training then
+16: # loss and update
+17: Calculate permutation loss with $\mathbf{K}_n^{\mathrm{filtered}}$ and $\mathbf{K}_e^{\mathrm{filtered}}$ for both $I_{i}$ and $I_{j}$
+18: Calculate energy loss with $\mathcal{E}$ $m_{in}$ ,and $m_{out}$ via Eq. 9 for both $I_{i}$ and $I_{j}$
+19: Final loss $\mathcal{L} = \mathcal{L}_{\mathrm{permutation}} + \mathcal{L}_{\mathrm{energy}}$ , and compute gradient $\nabla_{\theta}\mathcal{L},\nabla_{\mathbf{U}}\mathcal{L}$
+20: Update parameters: $\theta \leftarrow \theta -\eta \nabla_{\theta}\mathcal{L}$
+21: Update universe embedding: $\mathbf{U}\gets \mathbf{U} - \eta \nabla_{\mathbf{U}}\mathcal{L}$
+22: else
+23: # build pairwise matching
+24: Use LPMP solver to obtain universe matching $\mathbf{X}_{iu},\mathbf{X}_{ju}$ via Eq. 11 and Eq. 12
+25: Build pairwise matching by $\mathbf{X} = \mathbf{X}_{iu}\mathbf{X}_{ju}^{\top}$
+26: end if
+27: end for
+28: end for
+29: return $\theta^{*}$ , U\*
+
+Node and edge affinity construction, universe matching, and outlier filter process have been introduced in Section 3.1 and 3.2. We finally build pairwise matching by $\mathbf{X}_{ij} = \mathbf{X}_{iu}\mathbf{X}_{ju}^{\top}$ .
+
+All the models are trained on on a Linux workstation with i9-10920X CPU@3.50GHz CPU, one RTX3090, and 128GB RAM. The training and inference algorithm is shown in Algorithm 1. In default, we train our UGM with hyper parameters $m_{in} = -6$ , $m_{out} = -3$ , $T = 1.0$ , $\tau = -4.5$ , $\eta = 1e - 3$ , and $E = 15$ .
+
+# C BACKBONE COMPARISON
+
+To systematically evaluate the impact of network architecture on performance, we conducted comprehensive experiments comparing VGG and ResNet as backbone models across all methods. This analysis ensures fair comparison by providing results using consistent architectures while also quantifying how architectural choices influence each method's effectiveness.
+
+As demonstrated in Table 6, our method consistently outperforms existing approaches across multiple feature extractor configurations, including VGG+Spline2D, VGG+Attention, and ResNet+Spline2D. The sole exception occurs with VGG+Spline2D+3D, where URL achieves better results through its utilization of spline3D features. However, due to the unavailability of URL's implementation, we were unable to integrate this feature extractor into our UGM model. To facilitate a fair comparison, we adopted ResNet50 as the common backbone architecture.
+
+While evaluating architectural impacts, we observed that not all baseline methods exhibited performance improvements when transitioning to ResNet. To maintain scientific rigor and transparency, we have included these results in this appendix, allowing for a more proper discussion of architectural sensitivities across different approaches.
+
+Table 6: Backbone fairness comparison on Pascal VOC with unfiltered setting. The performance with the VGG backbone is reported by their paper, and the performance with the ResNet backbone is reproduced via publicly available code. $-$ denotes that the method has not released its code.
+
+
Method
Backbone
GNN
F1 score
Backbone
GNN
F1 score
NGMv2
VGG
Spline2D
58.8
ResNet
Spline2D
57.46
BBGM
VGG
Spline2D
61.4
ResNet
Spline2D
64.45
DLGM
VGG
Spline2D
64.8
ResNet
Spline2D
-
GCAN
VGG
Attention
64.6
ResNet
Attention
64.67
AFAT
VGG
Attention
62
ResNet
Attention
59.55
URL
VGG
Spline2D
67.6
ResNet
Spline2D
-
URL
VGG
Spline2D+3D
71.7
ResNet
Spline2D+3D
-
UGM
VGG
Spline2D
70.5
ResNet
Spline2D
73.9
+
+# D EFFECT OF ENERGY MARGIN LOSS
+
+
+Figure 6: Left: Energy histogram of ID and OOD samples without energy loss finetuning, Right: Energy histogram of ID and OOD samples with energy loss finetuning
+
+
+
+The effect of energy margin loss is shown in Figure 6. Left shows the energy distribution of indistribution (ID) and out-of-distribution (OOD) samples before applying the Energy Margin Loss, where the energy values for both ID and OOD samples overlap significantly, making it difficult to distinguish between them. After finetuning with the Energy Margin Loss, the energy values for ID samples shift toward lower energy levels, while OOD samples are pushed toward higher energy levels. This separation of energy distributions effectively enhances the model's ability to distinguish between ID and OOD samples, demonstrating the efficacy of the Energy Margin Loss in improving model robustness.
\ No newline at end of file
diff --git a/ICLR/2025/Learning Structured Universe Graph with Outlier OOD Detection for Partial Matching/images.zip b/ICLR/2025/Learning Structured Universe Graph with Outlier OOD Detection for Partial Matching/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..c92906237e4b4bbefdfe12f1c5154651fe843814
--- /dev/null
+++ b/ICLR/2025/Learning Structured Universe Graph with Outlier OOD Detection for Partial Matching/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f64a4604da775597ce50e00540d09e2384d4412ec61993524b33eb0e43239ef5
+size 854462
diff --git a/ICLR/2025/Learning Structured Universe Graph with Outlier OOD Detection for Partial Matching/layout.json b/ICLR/2025/Learning Structured Universe Graph with Outlier OOD Detection for Partial Matching/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..d508a01a6392f4c982bce5b2cac7f980cfb5804e
--- /dev/null
+++ b/ICLR/2025/Learning Structured Universe Graph with Outlier OOD Detection for Partial Matching/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c8312c7b7d98c3bc90714d6c7651717dd7e6427323833241e37c64258b626984
+size 542736
diff --git a/ICLR/2025/Learning Successor Features with Distributed Hebbian Temporal Memory/4a7a1d6e-17f3-49fa-abaa-b6bfdb8c1ab8_content_list.json b/ICLR/2025/Learning Successor Features with Distributed Hebbian Temporal Memory/4a7a1d6e-17f3-49fa-abaa-b6bfdb8c1ab8_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..7bef8b76b95c80504c79f97115f9283baf45a6a7
--- /dev/null
+++ b/ICLR/2025/Learning Successor Features with Distributed Hebbian Temporal Memory/4a7a1d6e-17f3-49fa-abaa-b6bfdb8c1ab8_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:74b68acde97f6cb60d0b30da7d531e87d8ee75ba375540a580d6c462e318c2cd
+size 141149
diff --git a/ICLR/2025/Learning Successor Features with Distributed Hebbian Temporal Memory/4a7a1d6e-17f3-49fa-abaa-b6bfdb8c1ab8_model.json b/ICLR/2025/Learning Successor Features with Distributed Hebbian Temporal Memory/4a7a1d6e-17f3-49fa-abaa-b6bfdb8c1ab8_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..2e0fcb199a2595d6b87ffc1aa0164fb344a57383
--- /dev/null
+++ b/ICLR/2025/Learning Successor Features with Distributed Hebbian Temporal Memory/4a7a1d6e-17f3-49fa-abaa-b6bfdb8c1ab8_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:37f371156e335f4a55f3ce5eed87fb839aa8430a4c58420075adfe3a076cb5db
+size 168741
diff --git a/ICLR/2025/Learning Successor Features with Distributed Hebbian Temporal Memory/4a7a1d6e-17f3-49fa-abaa-b6bfdb8c1ab8_origin.pdf b/ICLR/2025/Learning Successor Features with Distributed Hebbian Temporal Memory/4a7a1d6e-17f3-49fa-abaa-b6bfdb8c1ab8_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..e8a8a60f63551fb4dfbca62d9388966493a5bc50
--- /dev/null
+++ b/ICLR/2025/Learning Successor Features with Distributed Hebbian Temporal Memory/4a7a1d6e-17f3-49fa-abaa-b6bfdb8c1ab8_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d47495b86cae018b253b520bc00c91c13fc92761384a65b6fcb4ededd78ac307
+size 4666123
diff --git a/ICLR/2025/Learning Successor Features with Distributed Hebbian Temporal Memory/full.md b/ICLR/2025/Learning Successor Features with Distributed Hebbian Temporal Memory/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..e479228c02d2de9b279e6f70c2ec49827a53f5d9
--- /dev/null
+++ b/ICLR/2025/Learning Successor Features with Distributed Hebbian Temporal Memory/full.md
@@ -0,0 +1,595 @@
+# LEARNING SUCCESSOR FEATURES WITH DISTRIBUTED HEBBIAN TEMPORAL MEMORY
+
+Evgenii Dzhivelikian
+
+MIPT, AIRI
+
+Moscow, Russia
+
+dzhivelikian.ea@phystech.edu
+
+Petr Kuderov
+
+AIRI, MIPT
+
+Moscow, Russia
+
+kuderov@airi.net
+
+Aleksandr Panov
+
+AIRI, MIPT
+
+Moscow, Russia
+
+panov@airi.net
+
+# ABSTRACT
+
+This paper presents a novel approach to address the challenge of online sequence learning for decision making under uncertainty in non-stationary, partially observable environments. The proposed algorithm, Distributed Hebbian Temporal Memory (DHTM), is based on the factor graph formalism and a multi-component neuron model. DHTM aims to capture sequential data relationships and make cumulative predictions about future observations, forming Successor Features (SFs). Inspired by neurophysiological models of the neocortex, the algorithm uses distributed representations, sparse transition matrices, and local Hebbian-like learning rules to overcome the instability and slow learning of traditional temporal memory algorithms such as RNN and HMM. Experimental results show that DHTM outperforms LSTM, RWKV and a biologically inspired HMM-like algorithm, CSCG, on non-stationary data sets. Our results suggest that DHTM is a promising approach to address the challenges of online sequence learning and planning in dynamic environments.
+
+# 1 INTRODUCTION
+
+Modelling sequential data is one of the essential tasks in artificial intelligence as it has many applications, including decision-making and learning world models (Moerland et al., 2023), natural language processing (Min et al., 2021), conversational AI (Dwivedi et al., 2023), time series analysis (Eraslan et al., 2019), and video and music generation (Ji et al., 2020). One of the classical approaches to modelling sequential data is to form a representation that stores and condenses the most relevant information about a sequence, and to find a general transformation rule of this information through the dimension of time (Lipton et al., 2015; Harshvardhan et al., 2020; Mathys et al., 2011). We refer to the class of algorithms that use this approach as temporal memory (TM) algorithms because they essentially model the cognitive ability of complex living organisms to remember the past experience and make future predictions based on that memory (Hochreiter & Schmidhuber, 1997; Friston et al., 2016; 2018; Parr & Friston, 2017).
+
+Temporal memories differ in their ability to capture data dependencies and the extent to which they can generalise their predictions to unseen sequences. There are two extremes known in psychology as cognitive maps Tolman (1948), which extract commonalities or schemas generalising experience, and episodic memory Tulving et al. (1972), which stores fragments of experience separately. They both can be viewed as temporal memories, however, the former is slower and require a lot of data to built up a useful schema, according to contemporary computational models based on HMM (George et al., 2021) and Transformers (Dedieu et al., 2024), while the latter is instant and is usually viewed as a data buffer (Zhang et al., 2021).
+
+In this paper, we explore advantages of an episodic-like memory in addressing the problem of online sequence learning for planning and decision-making under uncertainty, which can be formalized as reinforcement learning (RL) for a partially observable Markov decision process (POMDP) (Poupart, 2005; Singh et al., 2021). Inferring the hidden state in a partially observable environment is a sequence modelling problem, since it requires processing a sequence of observations to obtain enough information about the hidden state. One of the most efficient representations of hidden states for discrete POMDPs is the Successor Representation (SR), which disentangles hidden states and goals
+
+given by the reward function (Dayan, 1993; Samuel J. Gershman, 2018; Millidge & Buckley, 2022). The Successor Features framework is an extension of SR to continuous POMDP, using the same idea of value function decomposition, but instead for features of a hidden state (Barreto et al., 2017; Touati et al., 2022). Temporal memory (TM) algorithms can be used to make cumulative predictions about future states and their features, forming SR or SF. This work shows that the proposed algorithm, Distributed Hebbian Temporal Memory (DHTM), can dynamically form SFs for navigation tasks in Gridworld and AnimalAI (Fountas et al., 2020) environments.
+
+The most prominent TM algorithms, such as a Recurrent Neural Network (RNN) (Boden, 2002) or LSTM (Hochreiter & Schmidhuber, 1997), use backpropagation to capture data relationships, which is known to be unstable due to recurrent nonlinear derivatives. They also require complete data sequences to be available during training. Although the gradient vanishing problem can be partially circumvented in a way that Receptance Weighted Key Value (RWKV) (Peng et al., 2023) or Linear Recurrent Unit (LRU) (Orvieto et al., 2023) models do, the problem of online learning, i.e. learning on non-stationary data sets, is still a viable issue. Unlike graphical models such as HMM (Eddy, 2004), RNN models and their descendants also lack a probabilistic theoretical foundation, which is advantageous for modelling sequences captured from stochastic environments (Salaun et al., 2019; Zhao et al., 2020). There is little research on TM models that can be used in fully online adaptive systems interacting with partially observable stochastic environments with access to only one sequence data point at a time, a common case in reinforcement learning (Jahromi et al., 2022).
+
+We propose a Distributed Hebbian Temporal Memory (DHTM) algorithm based on factor graph formalism and a multi-compartment neuron model inspired by the HTM neuron (Hawkins & Ahmad, 2016). Factor graph is a flexible graphical representation of probabilistic distributions, which is commonly used in combination with sum-product algorithm (Loeliger, 2004). We found this representation particularly convenient in our attempt of probabilistic interpretation of the HTM framework. The resulting graphical structure of our model is similar to that of the factorial HMM (Ghahramani & Jordan, 1995). An important feature of our model is that the transition matrices for each factor are stored as different components (segments) of artificial neurons, which makes computation very efficient in the case of sparse transition matrices. Our TM forms sequence representations entirely online and uses only local Hebbian-like learning rules (Hebb, 2005; Churchland & Sejnowski, 1992; Lillicrap et al., 2020), which avoid the drawbacks of gradient methods and make the learning process much more sample efficient than gradient methods. This comes at the expense of hidden state generalization, since DHTM's hidden state uniquely encodes each observation sequence. Different trajectories leading to the same position in the partially observable Gridworld can result in different hidden states inferred by DHTM. In essence, this makes DHTM a model of episodic memory, or an adaptive trajectory buffer, with built-in machinery for making multistep future predictions. In this light, we also show that an agent forming SF with DHTM can be interpreted as a kind of episodic control (EC) (Lengyel & Dayan, 2007; Pritzel et al., 2017; Ritter et al., 2018; Emukpere et al., 2023).
+
+Though our approach is similar to EC, we are not aware of other works, demonstrating its application to partially observable environments. There are other temporal memories that, similarly to DHTM, use Hebbian rules and learn online, like Asymmetric Hopfield Network (AHN) (Chaudhry et al., 2023), Temporal Predictive Coding (tPC) (Tang et al., 2023) and Hierarchical Temporal Memory (Hawkins & Ahmad, 2016). Compared to DHTM, AHN is a first-order memory. That is, it is not able to disentangle identical observations that correspond to different underlying environmental states. Therefore, it is not suitable for partially observable environments. In contrast, tPC has a hidden layer that, potentially, makes it a high-order memory. Despite that it has been tested only in MDP environments (Tang et al., 2024) so far, this method paves a promising direction, which we aim to compare with in future work. Finally, the algorithm that inspired our work, HTM, is also a Hebbian high-order temporal memory, which, opposed to DHTM, doesn't allow for probabilistic predictions due to its all-or-nothing computations.
+
+The proposed TM is tested as an episodic memory for an RL agent architecture navigating in a Gridworld environment and a more challenging AnimalAI testbed (Crosby et al., 2020). The results demonstrate that our algorithm outperforms classical LSTM, RWKV and a biologically inspired HMM-like world model CSCG (George et al., 2021) in changing environments and is in order of magnitude more sample efficient than Dreamer V3 (Hafner et al., 2023). Another advantage of our algorithm is that it can be implemented on neuromorphic processors using only local learning rules.
+
+Our contribution to this work includes the following key elements:
+
+- A novel episodic memory model, called DHTM, which is based on a factor graph formalism and features an efficient, bio-inspired implementation.
+- We demonstrate that the DHTM can operate fully online, using only local Hebbian-like learning rules.
+- We show that DHTM learns at a speed comparable to model-based table episodic control while supporting distributed representations. This capability significantly broadens its applicability.
+
+# 2 BACKGROUND
+
+# 2.1 REINFORCEMENT LEARNING
+
+This paper considers decision-making in a partially observable environment (Poupart, 2005). The environment is defined by its state transition function $P(s,a,s^{\prime}) = Pr(s^{\prime} \mid s,a)$ , determining its dynamics, where $s^{\prime}, s \in S$ is called state space, $a \in A$ — action space. Partial observability means that an agent has access to observations $o \in O$ , which only partially inform about the environment's state $s$ at each moment.
+
+In reinforcement learning (RL), the goal for the agent is set through the reward function $R(s): S \to \mathbb{R}$ . The task of RL is to find the agent's policy $\pi(a|s): S \times A \to [0,1]$ that maximizes the expected return $G = \mathbb{E}[\sum_{t=0}^{T} \gamma^l R_t]$ , where $T$ is an episode length and discount factor $\gamma$ sets the importance of remote rewards. Value-based methods usually aim to estimate the Q-function given a policy $\pi: Q^\pi(s_t, a_t) = \mathbb{E}[\sum_{l \geq t} \gamma^{l-t} R(s_{l+1}) | s_t, a_t, \pi]$ . For an optimal value function $Q^*$ , an optimal policy can be defined as $\pi(a|s) = \operatorname*{argmax}_{a} Q^*(s, a)$ .
+
+One of the drawbacks of value-based methods is that they require learning a new Q-function when the reward function changes, even if the environment remains the same. To get around this, the dynamics of the environment and the reward function can be decoupled, which leads us to the successor representation framework.
+
+# 2.2 SUCCESSOR REPRESENTATION
+
+Successor representations are such representations of hidden states from which we can linearly infer the state value given the reward function (Dayan, 1993). For a discrete state space, such representation can be derived just by rearranging sums in the equation for value function:
+
+$$
+V \left(h _ {t} = i\right) = \mathrm {E} \left[ \sum_ {l = 0} ^ {\infty} \gamma^ {l} R _ {t + l + 1} \mid h _ {t} = i \right] = \sum_ {j} \mathrm {S R} _ {i j} R _ {j}, \tag {1}
+$$
+
+where $\gamma$ is a discount factor, $i$ -th row in the matrix SR is the Successor Representation of a state $i$ , and $\mathrm{SR}_{ij} = \sum_{l=0}^{\infty} \gamma^{l} p(h_{t+l+1} = j \mid h_{t} = i)$ . $R_{j}$ is a reward for observing the state $j$ .
+
+An extension of SR for large or continuous state spaces that we use is Successor Features (Barreto et al., 2017), which is based on a similar idea of value function decomposition, but in a feature space instead (see details in Appendix A).
+
+It is easy to show that, similarly to the Q-function, both SR and SF can be obtained using dynamic programming. However, this limits its use to relatively stable environments, since changes in the transition function can't be taken into account immediately.
+
+The next step to improve an agent's adaptability is to use a world model to approximate the environment's transition function and use it directly to form SR according to its definition. And one of the most basic such world models is the Hidden Markov Model.
+
+# 2.3 HIDDEN MARKOV MODEL
+
+A partially observable environment can be approximated by a Hidden Markov Model (HMM) with hidden state space $H$ and observation space $O$ . Generally, $H$ is not equal to environements state
+
+space $S$ since the environemnt's true structure is usually unknown. For simplicity, we assume that actions are fully observable and that information about them is contained in hidden state. For the process of length $T$ with state values $h_{1:T} = (h_1,\dots ,h_T)$ and observations $o_{1:T} = (o_1,\dots ,o_T)$ , the Markov property yields the following factorization of the generative model:
+
+$$
+p \left(o _ {1: T}, h _ {1: T}\right) = p \left(h _ {1}\right) \prod_ {t = 2} ^ {T} p \left(h _ {t} \mid h _ {t - 1}\right) \prod_ {t = 1} ^ {T} p \left(o _ {t} \mid h _ {t}\right). \tag {2}
+$$
+
+In the case of a discrete hidden state variable, a time-independent stochastic transition matrix can be learned with the Baum-Welch algorithm (Baum et al., 1970), a variant of the expectation maximization (EM) algorithm. To compute the statistics for the expectation step, it uses the forward-backward algorithm, which is a special case of the sum-product algorithm (Kschischang et al., 2001).
+
+Factor graph is a convenient graphical representation (Loeliger, 2004) of probabilistic models like HMM (see Fig.1A for an example). Formally, a factor graph is a bipartite graph, where one part consists of factors (squares), which, replacing conditional probabilities, define dependencies between random variables (circles) constituting the other part. Such representation also allows extension of forward-backward algorithm to sum-product algorithm. As shown in section 3.1, we base DHTM on ideas from the sum-product algorithm and the Factorial HMM, while adapting them for online learning.
+
+# 3 DISTRIBUTED HEBBIAN TEMPORAL MEMORY
+
+# 3.1 FACTOR GRAPH MODEL
+
+Distributed Hebbian Temporal Memory is based on the sum-product belief propagation algorithm in a factor graph (see Figure 1A). Analogous to Factorial HMM (Ghahramani & Jordan, 1997), we divide the hidden space $H$ into subspaces $H^k$ . There are four sets of random variables (RV) in the model: $H_{t-1}^i$ -latent variables representing hidden states from the previous time step (context), $H_t^k$ -latent variables for the current time step, and $\Phi_t^k$ -feature variables. All random variables have categorical distributions. RV state values are denoted by corresponding lowercase letters: $h_{t-1}^i$ , $h_t^k$ , $\varphi_t^k$ , $o_t^{lm}$ .
+
+In this work, each variable $\Phi_t^k$ is considered independent and has a separate graphical model for increased computational efficiency. However, in practice, hidden variables of the same time step are statistically interdependent. We introduce their interdependence through a segment computation trick that goes beyond the standard sum-product algorithm (see Appendix B for details).
+
+The model also has three types of factors: $M_{t-1}^i$ —messages from previous time steps, $F_c^k$ —context factor (generalized transition matrix), $F_e^k$ —emission factor. We assume that messages $M_{t-1}^i$ contain posterior information from time step $t-1$ , so we don't plot observable feature variables for previous time steps in Figure 1A.
+
+We will discuss only the upper block of the graph in Figure 1A, which is DHTM itself. The lower block—an encoder—is described in Appendix D. The only requirement for the encoder is that its output should be represented as states of categorical variables (features) for the current observation.
+
+The main routine of the DHTM is to estimate distributions of hidden state variables given by the equation 3, the computational flow of which is schematically shown in Figure 1B:
+
+$$
+p \left(h _ {t} ^ {k}\right) \propto \sum_ {\Omega_ {k}} \prod_ {i \in \omega_ {k}} M _ {t - 1} ^ {i} \left(h _ {t - 1} ^ {i}\right) F _ {c} ^ {k} \left(h _ {t} ^ {k}, \Omega_ {k}\right), \tag {3}
+$$
+
+where summation is over all possible hidden RV states in $\Omega_{k} = \{h_{t - 1}^{i}:i\in \omega_{k}\}$ , $\omega_{k} = i_{1},\ldots ,i_{n}$ set of previous time step RV indexes included in $F_{c}^{k}$ factor, $(n + 1)$ —factor size.
+
+# 3.2 NEURAL IMPLEMENTATION
+
+For computational purposes, we translate the factor graph shown in Figure 1A to the Hebbian learning neural network architecture shown in Figure 1B (for a biological interpretation of the model,
+
+
+Figure 1: A. Example of a factor graph for the DHTM. The input to the model is a sequence of observations $o_{t}$ . The encoder block forms categorical features $\Phi_t^k$ . Each feature $\Phi$ has its own explaining hidden variable, which may depend on hidden variables of the other features and on itself from the previous time step. $F_{c}^{k}$ and $F_{e}^{k}$ are context and emission factors for the corresponding variables. Unary factors $M_{t - 1}^{i}$ called messages represent accumulated information about previous time steps. B. Neural implementation. Random variables are represented by cell clusters (white circles), where each cell corresponds to a state and its spike frequency to the probability of the state $p(h_{t}^{k})$ . The dendritic segments of the cell correspond to the context factor values $f_{l}$ for a given combination of states (active presynaptic cells). Segments' excitations $E_{l}$ are combined to determine the cell's spike frequency $p(h_{t}^{k})$ . Segment synaptic weights reflect the specificity of the combination of presynaptic cells for the segment. Emission factors $F_{e}^{k}$ are fixed and represented by minicolumns within a variable.
+
+
+
+see Appendix C). Each RV can be viewed as a set of neurons representing the states of the RV, i.e. $p(h_t^k) = p(c_t^j = 1)$ , where $j$ -is the index of a neuron corresponding to the state $h_t^k$ and $c_t^j \in \{0,1\}$ cell's activity. Since RVs are categorical, only one cell per variable can be active at a time and their activity is defined through sampling of RV's distribution.
+
+Since factors $F_{c}^{k}$ represent dependencies between variables, in neural implementation we view them as collections of connections between cell groups corresponding to RVs that $F_{c}^{k}$ takes as arguments. Each factor's entry maps a particular combination of states $h_{t}^{k}, h_{t-1}^{i_{1}}, \ldots, h_{t-1}^{i_{n_{l}}}$ to a factor value $f_{l}$ . We found it useful to represent each such entry as a separate computational unit, which we call segment (alluding to dendritic segments of a biological neuron). As shown in Figure 1B, segment $l$ connects its presynaptic cells $h_{t-1}^{i_{1}}, \ldots, h_{t-1}^{i_{n_{l}}}$ (one per each RV), constituting its receptive field, to the cell it excites $h_{t}^{k}$ . The factor $f_{l}$ value can be thought of as a segment's excitation efficiency, i.e. how strong its presynaptic pattern influences the cell's activation.
+
+Reformulation of belief propagation step in equation 3 in terms of segmental computations results in the following equations:
+
+$$
+p \left(h _ {t} ^ {k}\right) = \operatorname {s o f t m a x} _ {j \in \text {c e l l s} \left[ H _ {t} ^ {k} \right]} \left(\max _ {l \in \operatorname {s e g} (j)} \left(E _ {l}\right)\right), \tag {4}
+$$
+
+$$
+E _ {l} = \log f _ {l} + w _ {l} \log \frac {1}{n _ {l}} \sum_ {u \in \operatorname {r e c} (l)} w _ {u l} m _ {u} + \sum_ {u \in \operatorname {r e c} (l)} \left(1 - w _ {u l}\right) \log m _ {u}, \tag {5}
+$$
+
+where cells $[H_t^k ]$ --indexes of cells corresponding to states of the variable $H_{t}^{k}$ $seg(j)$ all segments for cell $j$ $w_{ul}$ synapse efficacy or neuron's specificity for segment, such that $w_{ul} = p(s_l = 1|c_{t - 1}^u = 1)$ $w_{l} = \frac{1}{n_{l}}\sum_{u}w_{ul}$ average synapse efficacy for segment $l$ , and $n_l$ number of cells in segment's receptive field rec(l). $m_{u}$ is presynaptic cell's activation probability $p(c_{t - 1}^u = 1)$ , which carries messages from the previous time-step and corresponds to entry in $M_{t - 1}^{i}$ For detailed derivation and rationale behind these equations, see Appendix B.
+
+Initially, cells have no segments. As learning progresses, new non-zero connections, grouped into segments, are created. In equation 5, we benefit from having sparse factors because their complexity depends linearly on the number of non-zero entries or segments. And that's usually the case in our
+
+model due to the one-step Monte Carlo learning and the special form of the emission factors $F_{e}^{k}$ :
+
+$$
+F _ {e} ^ {k} \left(h _ {t} ^ {k}, \varphi_ {t} ^ {k}\right) = \mathbb {I} \left[ h _ {t} ^ {k} \in \operatorname {c o l} \left(\varphi_ {t} ^ {k}\right) \right], \tag {6}
+$$
+
+where $\mathbb{I}$ indicator function, $\mathrm{col}(\varphi_t^k)$ is a set of hidden states connected to the feature state $\varphi_t^k$ forming a column. The shape of the emission factor is inspired by the presumed columnar structure of the neocortex and has been shown to induce a sparse transition matrix in HMM (George et al., 2021).
+
+The next step after computing the $p(h_t^k)$ distribution is to incorporate information about the current feature states $p(h_t^k \mid \varphi_t^k) \propto p(h_t^k) \mathbb{I}[h_t^k \in \mathrm{col}(\varphi_t^k)]$ . After that, the learning step is executed. The loop closing step of our TM algorithm is to assign the posterior of the current step $p(h_t^k \mid \varphi_t^k)$ to $M_{t-1}^i$ .
+
+# 3.3 LEARNING
+
+DHTM learns $f_{l}$ and $w_{ul}$ weights by Monte-Carlo Hebbian-like updates. First, $h_{t - 1}^{i}$ and $h_t^k$ are sampled from their posterior distributions: $p(h_{t - 1}^{i}\mid \varphi_{t - 1}^{i})\propto M_{t - 1}^{i}$ and $p(h_t^k\mid \varphi_t^k)$ respectively. Cells that correspond to sampled states become active. For cell $j$ corresponding to $h_t^k$ we check if there are segments matching the pattern of sampled states (active cells) from the previous time-step $\{h_{t - 1}^i\}_i$ . If there are no such segments, the new segment connecting sampled cells is created. For all newly created segments and segments with receptive fields matching active cells from the previous time-step, its activity $s_l$ is set to 1. Then $f_{l}$ is updated according to the activity of the segment $s_l$ and the activity of its cell $c_t^j$ , so that $f_{l}$ is proportional to several coincidences $s_l = c_t^j = 1$ in the recent past (exponential moving average of coincidence):
+
+$$
+\Delta f _ {l} = \alpha \left(c _ {t} ^ {j} - f _ {l}\right) s _ {l}, \tag {7}
+$$
+
+where $\alpha \in [0,1)$ is the segment's learning rate.
+
+That is, $f_{l}$ is trained to be equal to the cell's average activation frequency when the segment is active. It's similar to Baum-Welch's update rule (Baum et al., 1970) for the transition matrix in HMM, which, in effect, counts transitions from one state to another, but in our case, the previous state (context) is represented by a group of RVs.
+
+Weights $w_{ul}$ are also updated by the Hebbian rule to reflect the specificity of a presynaptic $u$ for activating a segment $l$ . That is, they are targeted to represent the probability $p(s_l = 1 \mid c_{t-1}^u = 1)$ that segment $s_l$ is active, given that cell $u$ was active at the previous time step. In our algorithm, it is approximated as an exponential moving average of the frequency activation of segment $s_l$ , given $c_{t-1}^u = 1$ :
+
+$$
+\Delta w _ {u l} = \beta \cdot \mathbb {I} \left[ c _ {t - 1} ^ {u} = 1 \right] \cdot \left(\mathbb {I} \left[ s _ {l} = 1 \right] - w _ {u l}\right), \tag {8}
+$$
+
+where $\beta \in [0,1)$ — learning rate.
+
+# 3.4 AGENT ARCHITECTURE
+
+We incorporate DHTM as a part of an RL agent. The same agent is used for other memories tested. The agent consists of a memory model and a feature reward function. The memory model generates SF by predicting cumulative future distributions of feature variables $\Phi^k$ . We assume that the reward function can be decomposed linearly in feature space as $R_{t} = \frac{1}{n}\sum_{k=1}^{n}r_{i}^{k}$ , where $r_{i}^{k}$ is a reward associated with feature state $\varphi_{t}^{k} = i$ and $n$ -number of feature variables. $r_{i}^{k}$ is learned during interaction with the environment and is used in combination with SF representations to estimate the action value function (see Appendix A for details).
+
+The agent training procedure is outlined in Algorithm 1. For each episode, the memory state is reset to a fixed initial message with RESET MEMORY() and the variable action is set to a fixed initial action. An observation returned by an environment (obs) is encoded as a set of categorical variables. In the OBSERVE() routine, memory learns to predict next feature states as described in section 3. An agent learns associations to map feature states and rewards in the REINFORCE() function:
+
+$$
+r _ {i} ^ {k} \leftarrow r _ {i} ^ {k} + \alpha \mathbb {I} \left[ \varphi_ {t} ^ {k} = i \right] \left(R _ {t} - r _ {i} ^ {k}\right) \tag {9}
+$$
+
+where $\alpha$ is a learning rate, $R_{t}$ —a reward for the current time step.
+
+Algorithm 1 General agent training procedure
+1: for episode=1..n do
+2: RESET MEMORY()
+3: action $\leftarrow$ initial_action
+4: while (not terminal) and (steps $<$ max_steps) do
+5: obs, reward $\leftarrow$ STEP()
+6: features $\leftarrow$ ENCODE(PREPROCESS(obs))
+7: OBSERVE(features, action)
+8: REINFORCE(reward, features)
+9: action $\leftarrow$ SAMPLE_ACTION()
+10: ACT(action)
+11: end while
+12: end for
+
+We include actions in DHTM by forcing some of the hidden variables $H_{t}^{k}$ to represent actions. That is, we assume that information about action is contained in the hidden state of the model. For example, if we have 4 actions, we set 4 states for one of the hidden variables and set its state from observing the action.
+
+In SAMPLE_ACION(), for each action and current state, TM predicts feature states up to time step $T$ under policy $\pi$ , and the predictions are combined to form SF (equation 10). For simplicity, we always build SF under a uniform policy, which doesn't guarantee optimality, but
+
+we found that it doesn't make a significant difference to iterative policy improvement in our experimental setups. The planning horizon $T$ is determined dynamically from the distribution of $\Phi_{t + l}^{k}$ . For each prediction step $l$ , we check whether the distribution of $\Phi_{t + l}^{k}$ is close to uniform (according to Kullback-Leibler distance) or whether any of states with positive reward has probability above a threshold; in that case, the prediction cycle is stopped. The action value is determined by combining the corresponding SF and feature state rewards as shown in equation 11. Finally, the action is sampled from the softmax distribution over the action values.
+
+$$
+\mathrm {S F} _ {t + T} ^ {\pi} \left(\varphi^ {k} = j \mid h _ {t}\right) = \sum_ {l = 0} ^ {T} \gamma^ {l} p _ {\pi} \left(\varphi_ {t + l + 1} ^ {k} = j \mid h _ {t}\right) \tag {10}
+$$
+
+$$
+Q ^ {\pi} \left(h _ {t}, a _ {t}\right) = \sum_ {j k} \sum_ {h _ {t + 1}} \mathrm {S F} _ {t + T} ^ {\pi} \left(\varphi^ {k} = j \mid h _ {t + 1}\right) \cdot p \left(h _ {t + 1} \mid h _ {t}, a _ {t}\right) \cdot r _ {j} ^ {k}, \tag {11}
+$$
+
+# 3.5 DHTM AND EPISODIC CONTROL
+
+Algorithm 2 Episodic memory learning
+Input: $\varphi_{t + 1},a_t$
+1: $h_{t + 1}\leftarrow \mathcal{D}_{a_t}(h_t)$
+2: $\varphi_{t + 1}^{*}\gets \operatorname {argmax}_{\varphi}F_{e}(h_{t + 1},\varphi)$
+3: if $h_{t + 1}$ is null or $\varphi_{t + 1}^{*}$ is not $\varphi_{t + 1}$ then
+4: $h_{t + 1}\gets \underset {h\notin K}{\operatorname{argmax}}F_{e}(h,\varphi_{t + 1})\# K$ is the set of keys for all actions
+5: $\mathcal{D}_{a_t}(h_t)\gets h_{t + 1}$
+6: end if
+7: $h_t\gets h_{t + 1}$
+
+It can be shown that DHTM combined with the agent architecture described in the previous section is similar to episodic control.
+
+DTHM performs best when its hidden state space is large. Since the hidden state for unpredicted observations is formed randomly, it's important that there are no accidental state collisions when remembering transitions. That is, DHTM tries to remember new sequences without interfering with old memories. In effect, this makes DHTM a buffer of agent trajectories with a built-in recall engine. Episodic Control is based on a similar idea, and to investigate its difference from DHTM, we implemented an Episodic Control agent, a simpli
+
+fied counterpart of DHTM, reflecting its core property that presumably helps it solve RL tasks.
+
+Episodic Control (EC) is a general computational approach to storing and reusing an agent's experience, inspired by the notion of episodic memory from psychology (Tulving et al., 1972). The core of EC is a dictionary $\mathcal{D}_a = (K_a, V_a)$ that stores key-value pairs for each discrete action $a \in A$ . In our EC version, $K_a$ is an array of hidden states $h_t$ and $V_a$ is an array of corresponding subsequent hidden states $h_{t+1}$ . If the key state $h_t$ already exists in the dictionary, its value is rewritten. That is, $\mathcal{D}_a$ represents the transition matrix of a deterministic HMM for a feature variable $\Phi_t$ . The hidden state $h_t$ and the feature state $\varphi_t$ have the same dependence as in DHTM (equation 6), but in EC we assume that there are infinite hidden states per feature state. To predict the next state, we just have to look up $\mathcal{D}_a$ for the current state $h_t$ , but if there is no entry for $h_t$ or the prediction does not match the observed state $\varphi_{t+1}$ , then the new state is formed. Unlike DHTM, the new state is not completely
+
+
+Figure 2: POMDP 5x5 Gridworld foraging task using different types of memory: DHTM, CSCG, LSTM, RWKV. All agents, except for DHTM, are trained in two modes. The first mode is with oracle, which tells the agent to reinitialize memory and clear the trajectory buffer during environmental change. The second mode is without oracle, so the agent continues using its current strategy to gather new trajectories and update memory. There is also an episodic control agent (e c) among baselines, which uses a simple dictionary to store trajectories and make predictions. A. Dynamic of steps required for the agent to reach the goal. In the 300th episode, the goal is blocked by a wall, so the agent needs to find a new optimal trajectory. B. Total steps taken during 1000 episodes.
+
+
+
+random, but to avoid collisions, the algorithm makes sure that this state hasn't been chosen before. The learning procedure of the EC agent's memory $\mathcal{D}_a$ is summarized in the algorithm 2.
+
+Since $\mathcal{D}_a$ can be transformed into a transition matrix, the process of forming SF can be reduced to one in Sec. 3.4. However, since the resulting transition matrix is sparse, it's more efficient to consider $\mathcal{D}_a$ as a graph representation and to perform SF formation as a breadth-first search (see Appendix E.3 for details).
+
+# 4 EXPERIMENTS
+
+We test our model in a reinforcement learning task in the Gridworld environment and in a more challenging AnimalAI 3D environment. This section shows how different memory models affect the adaptability of an RL agent. For each setup, the results are averaged over five experiments with different seed values, and one standard deviation is shown everywhere, except for boxplots. See Appendix E for details on the baselines, their model parameters, and training regimes. See Appendix F for a more detailed description of the environments and setups1.
+
+# 4.1 GRIDWORLD
+
+The first test was conducted in partially observable Gridworld in a 5x5 alternating maze with a stationary end state and the agent's starting position. The agent can observe only the colour of the cell it is in and the colour of an obstacle it encounters, while being punished in addition to the constant step penalty. Each episode ends when the reward is collected or when the maximum number of action steps is reached. In each episode, we measure the number of action steps required for the agent to reach the goal.
+
+Each trial lasts 1000 episodes and consists of two phases. In the first phase, there are no obstacles on the shortest path to the terminal state. In the second phase, after 300 episodes, the previously optimal path is blocked by a wall, so the agent has to take a detour to get the reward. The experiment aims to show the ability of a memory to relearn the structure of the maze in the test time. If the agent is able to reach the end state in the second phase, it suggests that the model can forget, or at least suppress,
+
+
+Figure 3: Amount of action steps the agent performs to reach the goal in a $10 \times 10$ -meter room in AnimalAI environment using DHTM, CSCG, LSTM, RWKV and EC dictionary. The agent and the goal have the same initial positions throughout the episodes. Each time-step, the agent gets an encoded image of a first-person view of the environment and produces one of three actions: turn left, turn right, or go forward. A. Dynamic of steps required for the agent to reach the goal. B. Total steps taken during 1000 episodes by the agent with DHTM with K-Means encoder and Categorical VAE. For the latter, DHTM's context factor size is varied (i.e., how many previous time-step hidden variables are considered for prediction).
+
+
+
+the memory of the old shortest path when it is blocked. Otherwise, the agent will continue to hit the wall and fail to reach the terminal state.
+
+In this experiment, we compare our memory model DHTM with CSCG (George et al., 2021), LSTM (Hochreiter & Schmidhuber, 1997) and RWKV (Peng et al., 2023) within the same agent architecture that uses memory to form successor features and evaluate actions (see Sec. 3.4). All memories, except DHTM, are trained in two modes. The first mode is with an oracle that tells the agent to reinitialize memory and clear the trajectory buffer just in time for the environmental change. The second mode is without an oracle, so the agent continues to use its current strategy to collect new trajectories and update memory in the second phase. There is also a simple episodic control agent (EC) among the baselines, which uses a dictionary to store trajectories and make predictions (see Section 3.5 for details).
+
+The results in Figure 2 show that CSCG effectively can't adapt to the environmental change in the online regime, but only if it is retrained from scratch on new trajectories. And, apparently, LSTM and RWKV are only able to learn a predictive model for a small horizon, since they perform significantly worse than other baselines in the second phase, even with oracle enabled. In contrast, DHTM and EC are able to adapt online even without explicit memory's trainable parameters reinitialisation. Another important observation is that the EC agent performs on par with DHTM, suggesting that its mechanism can explain most of DHTM's performance in this task. However, see Appendix H.2 for experiments that show their difference in scalability.
+
+# 4.2 ANIMALAI
+
+AnimalAI is a 3D environment capable of providing rich visual input to an agent in the form of RGB images. The goal of the experiment described here is to show that DHTM can handle distributed representations and is scalable to environments with larger state spaces.
+
+The agent's task is to reach a sphere of radius $0.5\mathrm{m}$ , which is located in a square area of size 10 by 10 meters. The start position of the agent and the position of the ball are the same between episodes. In each episode, we measure the number of actions (steps), which are AnimalAI's standard left/right turn and forward walk, the agent takes to reach the goal, with the maximum number of actions limited to 40. Each action is repeated three times and three frames are skipped, so one agent action step corresponds to three steps in the environment.
+
+We test DHTM and EC agents using two different encoders: K-Means and Categorical VAE (Jang et al., 2017). Both encoders are pre-trained on RGB images collected with a uniform strategy during 2000 episodes in the same room used for agent testing. K-Means represents an image as a single categorical variable with 50 states, and Categorical VAE is configured for distributed representation with five variables with 50 states each (see Appendix D for details). In case of EC agent, since it doesn't support distributed representations, we map each unique VAE encoding to one feature state using a simple dictionary. Since the resulting number of states for such feature variable is large (typically more than 1000), it's infeasible to use the same mapping for CSCG. We also didn't find much difference for LSTM and RWKV using K-Means or VAE, so we only keep the results for VAE encoder.
+
+The results are shown in Figure 3A. It can be seen that after about 150 episodes, the agent with DHTM and the EC agent reach the goal stably, although the DHTM agent with distributed encoding (with a factor size of 4) converges to a slightly shorter path on average. The agent with CSCG slowly improves its strategy, but LSTM and RWKV agents don't show any learning on this time-step scale. To understand a common learning time-step scale for contemporary model-based algorithms, we also tested a small version of Dreamer V3 (18M parameters) (Hafner et al., 2023), which successfully solves the same task after about $35 \times 10^{3}$ action steps (1000 episodes) versus $3.5 \times 10^{3}$ steps (150 episodes) for DHTM (see Appendix H.1 for details).
+
+To show that DHTM can't simply be replaced by multiple parallel EC dictionaries or CSCGs in the case of distributed encoding, we also vary the context factor size of DHTM, that is, how many previous time-step variables are taken into account to predict the current state of a variable. The factor size of 1 corresponds to the graph of the Factorial HMM, with parallel HMMs. It can be seen from Figure 3B that in our case of categorical VAE, knowing only the previous state of the variable is not enough to reliably predict rewarding features, since the agent doesn't converge to the shortest path. We also tested the variant (factor 1*) where each feature variable is represented by three hidden states, to ensure that the result for factor size 1 is not due to DHTM's hidden state collisions. DHTM with a factor that takes into account more than one previous time-step hidden variable (excluding the action variable) performs significantly better. For diagrams depicting factor graphs used in these experiments, see Appendix E.4. For further experiments showing the importance of distributed encoding in DHTM, see Appendix H.3.
+
+# 5 CONCLUSION
+
+This paper introduces a novel episodic memory model, DHTM. It combines ideas from belief propagation, episodic control, and neurophysiological models of the neocortex, resulting in a fast probabilistic sequence memory.
+
+The experiments show that our memory model can quickly learn observation sequences in changing environments and effectively reuse them for RL tasks, on par with model-based table episodic control. We also show that, unlike CSCG and table EC, DHTM is able to handle distributed representations and account for statistical dependencies between variables of these representations. Potentially, it extends the application of our algorithm to higher state spaces, exploiting their factorizations for more efficient computations and to reduce the number of stored parameters.
+
+Our results suggest that DHTM can be viewed as an adaptive trajectory buffer for a slower generalizing algorithm, such as a Neural State Space Model (Jiang et al., 2023). Through prediction error learning, DHTM can selectively discard and replace obsolete transitions in observed trajectories without disrupting relevant experience. It can also provide an initial policy for an agent through episodic control until a slower but more accurate world model takes over. These features of a trajectory buffer are highly desirable in the case of online learning in non-stationary environments.
+
+Further improvements of DHTM can be directed towards the implementation of an automatic feature space factorization discovery to determine an optimal context factor size during learning. To avoid excessive segment growth in noisy environments, it's also possible to implement an adaptive segment activation threshold. One of the main limitations of this study is that the evaluation of the algorithms is limited to basic RL setups due to the simple agent architecture. More advanced use cases could be demonstrated using better exploration strategies and in combination with other memory models, which is also a matter of future research.
+
+# REFERENCES
+
+Andre Barreto, Will Dabney, Rémi Munos, Jonathan J Hunt, Tom Schaul, Hado P van Hasselt, and David Silver. Successor features for transfer in reinforcement learning. Advances in neural information processing systems, 30, 2017.
+Leonard E Baum, Ted Petrie, George Soules, and Norman Weiss. A maximization technique occurring in the statistical analysis of probabilistic functions of markov chains. The annals of mathematical statistics, 41(1):164-171, 1970.
+PENG Bo. Blinkdl/rwkv-lm: 0.01, August 2021. URL https://doi.org/10.5281/ zenodo.5196577.
+Mikael Boden. A guide to recurrent neural networks and backpropagation. the Dallas project, 2(2): 1-10, 2002.
+Hamza Chaudhry, Jacob Zavatone-Veth, Dmitry Krotov, and Cengiz Pehlevan. Long Sequence Hopfield Memory. Advances in Neural Information Processing Systems, 36:54300-54340, December 2023. URL https://proceedings.neurips.cc/paper_files/paper/2023/ hash/aa32ebccd2ce1bed4ef7f456fc8fa5c1-Abstract-Conference.html.
+Patricia Smith Churchland and Terrence Joseph Sejnowski. The computational brain. MIT press, 1992.
+Matthew Crosby, Benjamin Beyret, Murray Shanahan, José Hernández-Orallo, Lucy Cheke, and Marta Halina. The animal-ai testbed and competition. In Hugo Jair Escalante and Raia Hadsell (eds.), Proceedings of the NeurIPS 2019 Competition and Demonstration Track, volume 123 of Proceedings of Machine Learning Research, pp. 164–176. PMLR, 08–14 Dec 2020.
+Peter Dayan. Improving generalization for temporal difference learning: The successor representation. Neural computation, 5(4):613-624, 1993.
+Antoine Dedieu, Nishad Gothoskar, Scott Swingle, Wolfgang Lehrach, Miguel Lázaro-Gredilla, and Dileep George. Learning higher-order sequential structure with cloned hmms. (arXiv:1905.00507), May 2019. URL http://arxiv.org/abs/1905.00507.arXiv:1905.00507 [cs, stat].
+Antoine Dedieu, Wolfgang Lehrach, Guangyao Zhou, Dileep George, and Miguel Lázaro-Gredilla. Learning Cognitive Maps from Transformer Representations for Efficient Planning in Partially Observed Environments, January 2024. arXiv:2401.05946 [cs].
+Yogesh K Dwivedi, Nir Kshetri, Laurie Hughes, Emma Louise Slade, Anand Jeyaraj, Arpan Kumar Kar, Abdullah M Baabdullah, Alex Koohang, Vishnupriya Raghavan, Manju Ahuja, et al. "so what if chatgpt wrote it?" multidisciplinary perspectives on opportunities, challenges and implications of generative conversational ai for research, practice and policy. International Journal of Information Management, 71:102642, 2023.
+Sean R. Eddy. What is a hidden markov model? Nature Biotechnology, 22(10):1315-1316, Oct 2004. ISSN 1546-1696. doi: 10.1038/nbt1004-1315. URL https://doi.org/10.1038/nbt1004-1315.
+David Emukpere, Xavier Alameda-Pineda, and Chris Reinke. Successor Feature Neural Episodic Control, August 2023. URL http://arxiv.org/abs/2111.03110. arXiv:2111.03110 [cs].
+Gökcen Eraslan, Žiga Avsec, Julien Gagneur, and Fabian J Theis. Deep learning: new computational modelling techniques for genomics. Nature Reviews Genetics, 20(7):389-403, 2019.
+Zafeirios Fountas, Noor Sajid, Pedro Mediano, and Karl Friston. Deep active inference agents using monte-carlo methods. In Advances in Neural Information Processing Systems, volume 33, pp. 11662-11675. Curran Associates, Inc., 2020.
+Karl Friston, Thomas FitzGerald, Francesco Rigoli, Philipp Schwartenbeck, Giovanni Pezzulo, et al. Active inference and learning. Neuroscience & Biobehavioral Reviews, 68:862-879, 2016.
+
+Karl J Friston, Richard Rosch, Thomas Parr, Cathy Price, and Howard Bowman. Deep temporal models and active inference. *Neuroscience & Biobehavioral Reviews*, 90:486-501, 2018.
+Dileep George, Rajeev V. Rikhye, Nishad Gothoskar, J. Swaroop Guntupalli, Antoine Dedieu, and Miguel Lázaro-Gredilla. Clone-structured graph representations enable flexible learning and vicarious evaluation of cognitive maps. Nature Communications, 12(11):2392, Apr 2021. ISSN 2041-1723. doi: 10.1038/s41467-021-22559-5.
+Z. Ghahramani and M.I. Jordan. Factorial Hidden Markov Models. Machine Learning, 29(2-3): 245-273, 1997. ISSN 0885-6125. doi: 10.1023/a:1007425814087.
+Zoubin Ghahramani and Michael Jordan. Factorial hidden markov models. Advances in neural information processing systems, 8, 1995.
+J. Swaroop Guntupalli, Rajkumar Vasudeva Raju, Shrinu Kushagra, Carter Wendelken, Danny Sawyer, Ishan Deshpande, Guangyao Zhou, Miguel Lázaro-Gredilla, and Dileep George. Graph schemas as abstractions for transfer learning, inference, and planning, December 2023. URL http://arxiv.org/abs/2302.07350.arXiv:2302.07350 [cs, q-bio].
+Danijar Hafner, Jurgis Pasukonis, Jimmy Ba, and Timothy Lillicrap. Mastering diverse domains through world models. arXiv preprint arXiv:2301.04104, 2023.
+GM Harshvardhan, Mahendra Kumar Gourisaria, Manjusha Pandey, and Siddharth Swarup Rautaray. A comprehensive survey and analysis of generative models in machine learning. Computer Science Review, 38:100285, 2020.
+Jeff Hawkins and Subutai Ahmad. Why neurons have thousands of synapses, a theory of sequence memory in neocortex. Frontiers in Neural Circuits, 10, 2016. ISSN 1662-5110. doi: 10.3389/fncir.2016.00023. URL https://www.frontiersin.org/journals/neural-circuits/articles/10.3389/fncir.2016.00023.
+Donald Olding Hebb. The organization of behavior: A neuropsychological theory. Psychology press, 2005.
+Sepp Hochreiter and Jürgen Schmidhuber. Long short-term memory. Neural computation, 9:1735-80, 12 1997. doi: 10.1162/neco.1997.9.8.1735.
+Mehdi Jafarnia Jahromi, Rahul Jain, and Ashutosh Nayyar. Online learning for unknown partially observable mdps. In International Conference on Artificial Intelligence and Statistics, pp. 1712-1732. PMLR, 2022.
+Eric Jang, Shixiang Gu, and Ben Poole. Categorical reparameterization with gumbel-softmax, 2017. URL https://arxiv.org/abs/1611.01144.
+Shulei Ji, Jing Luo, and Xinyu Yang. A comprehensive survey on deep music generation: Multi-level representations, algorithms, evaluations, and future directions. arXiv preprint arXiv:2011.06801, 2020.
+Xajun Jiang, Ryan Missel, Zhiyuan Li, and Linwei Wang. Sequential latent variable models for few-shot high-dimensional time-series forecasting. In The Eleventh International Conference on Learning Representations, 2023. URL https://openreview.net/forum?id=7C9aRX2nBf2.
+F.R. Kschischang, B.J. Frey, and H.-A. Loeliger. Factor graphs and the sum-product algorithm. IEEE Transactions on Information Theory, 47(2):498-519, 2001. doi: 10.1109/18.910572.
+Máte Lengyel and Peter Dayan. Hippocampal Contributions to Control: The Third Way. In Advances in Neural Information Processing Systems, volume 20. Curran Associates, Inc., 2007. URL https://papers.nips.cc/paper_files/paper/2007/bit/1f4477bad7af3616c1f933a02bfabe4e-Abstract.html.
+Timothy P. Lillicrap, Adam Santoro, Luke Harris, Colin J. Akerman, and Geoffrey Hinton. Backpropagation and the brain. Nature Reviews Neuroscience, 21(6):335-346, Jun 2020. ISSN 1471-003X, 1471-0048. doi: 10.1038/s41583-020-0277-3.
+
+Zachary C Lipton, John Berkowitz, and Charles Elkan. A critical review of recurrent neural networks for sequence learning. arXiv preprint arXiv:1506.00019, 2015.
+H.-A. Loeliger. An introduction to factor graphs. IEEE Signal Processing Magazine, 21(1):28-41, 2004. doi: 10.1109/MSP.2004.1267047.
+Christoph Mathys, Jean Daunizeau, Karl J Friston, and Klaas E Stephan. A bayesian foundation for individual learning under uncertainty. Frontiers in human neuroscience, 5:39, 2011.
+Beren Millidge and Christopher L. Buckley. Successor Representation Active Inference, July 2022. URL http://arxiv.org/abs/2207.09897.arXiv:2207.09897 [cs].
+Bonan Min, Hayley Ross, Elior Sulem, Amir Pouran Ben Veyseh, Thien Huu Nguyen, Oscar Sainz, Eneko Agirre, Ilana Heintz, and Dan Roth. Recent advances in natural language processing via large pre-trained language models: A survey. ACM Computing Surveys, 2021.
+Thomas M Moerland, Joost Broekens, Aske Plaat, Catholijn M Jonker, et al. Model-based reinforcement learning: A survey. Foundations and Trends® in Machine Learning, 16(1):1-118, 2023.
+V. Mountcastle. The columnar organization of the neocortex. *Brain*, 120(4):701-722, April 1997.
+ISSN 14602156. doi: 10.1093/brain/120.4.701. URL https://academic.oup.com/ brain/article-lookup/doi/10.1093/brain/120.4.701.
+Antonio Orvieto, Samuel L Smith, Albert Gu, Anushan Fernando, Caglar Gulcehre, Razvan Pascanu, and Soham De. Resurrecting recurrent neural networks for long sequences. arXiv preprint arXiv:2303.06349, 2023.
+Thomas Parr and Karl J Friston. Working memory, attention, and salience in active inference. Scientific reports, 7(1):14678, 2017.
+Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, Alban Desmaison, Andreas Kopf, Edward Yang, Zachary DeVito, Martin Raison, Alykhan Tejani, Sasank Chilamkurthy, Benoit Steiner, Lu Fang, Junjie Bai, and Soumith Chintala. Pytorch: An imperative style, high-performance deep learning library. In Advances in Neural Information Processing Systems 32, pp. 8024-8035. Curran Associates, Inc., 2019.
+Bo Peng, Eric Alcaide, Quentin Anthony, Alon Albalak, Samuel Arcadinho, Huanqi Cao, Xin Cheng, Michael Chung, Matteo Grella, Kranthi Kiran GV, et al. Rwkv: Reinventing rnns for the transformer era. arXiv preprint arXiv:2305.13048, 2023.
+Pascal Poupart. Exploiting structure to efficiently solve large scale partially observable Markov decision processes. Citeseer, 2005.
+Alexander Pritzel, Benigno Uria, Sriram Srinivasan, Adrià Puigdomènech Badia, Oriol Vinyals, Demis Hassabis, Daan Wierstra, and Charles Blundell. Neural Episodic Control. In Proceedings of the 34th International Conference on Machine Learning, pp. 2827-2836. PMLR, July 2017. URL https://proceedings.mlr.press/v70/pritzel17a.html. ISSN: 2640-3498.
+S. Ritter, J. X. Wang, Z. Kurth-Nelson, and M. Botvinick. Episodic Control as Meta-Reinforcement Learning, July 2018. URL https://www.biorxiv.org/content/10.1101/360537v2. Pages: 360537 Section: New Results.
+Achille Salaun, Yohan Petetin, and François Desbouvries. Comparing the modeling powers of rn and hmm. In 2019 18th iee international conference on machine learning and applications (icmla), pp. 1496-1499. IEEE, 2019.
+Samuel J. Gershman. The Successor Representation: Its Computational Logic and Neural Substrates. The Journal of Neuroscience, 38(33):7193, August 2018. doi: 10.1523/JNEUROSCI.0151-18.2018. URL http://www.jneurosci.org/content/38/33/7193.abstract.
+
+Gautam Singh, Skand Peri, Junghyun Kim, Hyunseok Kim, and Sungjin Ahn. Structured world belief for reinforcement learning in pomdp. In Marina Meila and Tong Zhang (eds.), Proceedings of the 38th International Conference on Machine Learning, volume 139 of Proceedings of Machine Learning Research, pp. 9744-9755. PMLR, 18-24 Jul 2021. URL https://proceedings.mlr.press/v139/singh21a.html.
+Jochen F. Staiger and Carl C. H. Petersen. Neuronal circuits in barrel cortex for whisker sensory perception. Physiological Reviews, 101(1):353-415, 2021. doi: 10.1152/physrev.00019.2019. URL https://doi.org/10.1152/physrev.00019.2019. PMID: 32816652.
+Greg J. Stuart and Nelson Spruston. *Dendritic integration: 60 years of progress.* Nature Neuroscience, 18(12):1713-1721, Dec 2015. ISSN 1546-1726. doi: 10.1038/nn.4157. URL https://doi.org/10.1038/nn.4157.
+A.K Subramanian. Pytorch-vae. https://github.com/AntixK/PyTorch-VAE, 2020.
+Mufeng Tang, Helen Barron, and Rafal Bogacz. Sequential Memory with Temporal Predictive Coding. Advances in Neural Information Processing Systems, 36:44341-44355, December 2023. URL https://proceedings.neurips.cc/paper_files/paper/2023/ hash/8a8b9c7f979e8819a7986b3ef825c08a-AAbstract-Conference.html.
+Mufeng Tang, Helen Barron, and Rafal Bogacz. Learning grid cells by predictive coding, 2024. URL https://arxiv.org/abs/2410.01022.
+Edward C. Tolman. Cognitive maps in rats and men. *Psychological Review*, 55(4):189-208, 1948. ISSN 1939-1471, 0033-295X. doi: 10.1037/h0061626. URL http://doi.apa.org/getdoi.cfm?doi=10.1037/h0061626.
+Ahmed Touati, Jérémy Rapin, and Yann Ollivier. Does Zero-Shot Reinforcement Learning Exist? September 2022. URL https://openreview.net/forum?id=MYEap_OcQI.
+Endel Tulving, Wayne Donaldson, Gordon H. Bower, and United States (eds.). Organization of memory. Academic Press, New York, 1972. ISBN 978-0-12-703650-2.
+Konstantinos Voudouris, Ibrahim Alhas, Wout Schellaert, Matthew Crosby, Joel Holmes, John Burden, Niharika Chaubey, Niall Donnelly, Matishalin Patel, Marta Halina, José Hernández-Orallo, and Lucy G. Cheke. Animal-ai 3: What's new & why you should care, 2023. URL https://arxiv.org/abs/2312.11414.
+Xiaohan Zhang, Lu Liu, Guodong Long, Jing Jiang, and Shenquan Liu. Episodic memory governs choices: An RNN-based reinforcement learning model for decision-making task. Neural Networks, 134:1-10, February 2021. ISSN 0893-6080. doi: 10.1016/j.neunet.2020.11.003. URL https://www.sciencedirect.com/science/article/pii/S0893608020303889.
+Jingyu Zhao, Feiqing Huang, Jia Lv, Yanjie Duan, Zhen Qin, Guodong Li, and Guangjian Tian. Do rnn and lstm have long memory? In International Conference on Machine Learning, pp. 11365-11375. PMLR, 2020.
+
+# A VALUE FUNCTION DECOMPOSITION
+
+In our agent model, we approximate the reward function $\mathbf{R}(\mathbf{s})$ as a sum:
+
+$$
+R _ {t} = \frac {1}{n} \sum_ {k = 1} ^ {n} r \left(\varphi_ {t} ^ {k}\right), \tag {12}
+$$
+
+where $r(\varphi_t^k)$ is a reward associated with state $\varphi_t^k$ , $n$ -number of feature variables. Then, similarly to the Successor Representation idea (see Section 2.2), the value function can be represented as:
+
+$$
+\begin{array}{l} V \left(h _ {t}\right) = \mathrm {E} \left[ \sum_ {l = 0} ^ {\infty} \gamma^ {l} R _ {t + l + 1} \mid h _ {t} \right] = \sum_ {l = 0} ^ {\infty} \gamma^ {l} \mathrm {E} \left[ \frac {1}{n} \sum_ {k = 1} ^ {n} r \left(\varphi_ {t} ^ {k}\right) \mid h _ {t} \right] \\ = \frac {1}{n} \sum_ {k = 1} ^ {n} \sum_ {j} \sum_ {l = 0} ^ {\infty} \gamma^ {l} p (\varphi_ {t + l + 1} ^ {k} = j \mid h _ {t}) r _ {j} ^ {k} \\ = \frac {1}{n} \sum_ {k = 1} ^ {n} \sum_ {j} \mathrm {S F} _ {j} ^ {k} \left(h _ {t}\right) r _ {j} ^ {k}, \tag {13} \\ \end{array}
+$$
+
+where $\mathrm{SF}_j^k (h_t) = \sum_{l = 0}^{\infty}\gamma^l p(\varphi_{t + l + 1}^k = j\mid h_t),h_t = (h_t^1,\dots,h_t^n)$ -hidden state vector of variables $\{H_t^k\}_{k}$ .
+
+# B DETAILS OF NEURONAL IMPLEMENTATION
+
+As shown in Figure 1B, each RV can be viewed as a set of neurons representing the states of the RV, i.e. $p(h_{t}^{k}) = p(c_{t}^{j} = 1)$ , where $j$ -is the index of a neuron corresponding to the state $h_{t}^{k}$ . Cell activity is binary $c_{t}^{j} \in \{0,1\}$ , and the probability can be interpreted as a spike rate. Factors $F_{c}^{k}$ and $M_{t - 1}^{i}$ can be represented as vectors, where elements are factor values for all possible combinations of RV states included in the factor. Let's denote the elements of the vectors as $f_{l}$ and $m_{u}$ respectively, where $l$ corresponds to a particular combination of state values $h_{t}^{k}, h_{t - 1}^{i_{1}}, \ldots, h_{t - 1}^{i_{n_{l}}}$ , and $u$ indexes all neurons representing states of RVs from previous time steps.
+
+Inspired by biological neural networks, we group the connections of a neuron into dendritic segments. A segment acts as an independent computational unit that detects a particular input pattern (a contextual state) defined by its receptive field. In our model, a segment connects the factor value $f_{l}$ and the excitation $E_{l}$ induced by the segment $l$ to the cell to which it is connected. The segment is active, i.e. $s_{l} = 1$ if all its presynaptic cells are active, otherwise $s_{l} = 0$ . Computationally, a segment transmits its factor value $f_{l}$ to the cell to which it is attached if the context matches the corresponding state combination.
+
+We can now rewrite equation 3 as the following:
+
+$$
+p \left(h _ {t} ^ {k}\right) \propto \sum_ {l \in \operatorname {s e g} (j)} L _ {l} f _ {l} ^ {k}, \tag {14}
+$$
+
+where $L_{l} = \prod_{u\in \operatorname{rec}(l)}m_{u}$ is segment's likelihood as long as messages are normalized to probability distributions, $\mathrm{seg}(j)$ — indexes of segments that are attached to cell $j$ , $\operatorname{rec}(l)$ — indexes of presynaptic cells that constitute receptive field of a segment with index $l$ .
+
+Initially, cells have no segments. As learning progresses, new non-zero connections, grouped into segments, are created. In equation 14, we benefit from having sparse factor value vectors because their complexity depends linearly on the number of non-zero components. And that's usually the case in our model due to the one-step Monte Carlo learning and the special form of the emission factors $F_{e}^{k}$ :
+
+$$
+F _ {e} ^ {k} \left(h _ {t} ^ {k}, \varphi_ {t} ^ {k}\right) = \mathbb {I} \left[ h _ {t} ^ {k} \in \operatorname {c o l} \left(\varphi_ {t} ^ {k}\right) \right], \tag {15}
+$$
+
+where $\mathbb{I}$ indicator function, $\operatorname {col}(\varphi_t^k)$ is a set of hidden states connected to the feature state $\varphi_t^k$ forming a column. The shape of the emission factor is inspired by the presumed columnar structure
+
+of the neocortex and has been shown to induce a sparse transition matrix in HMM (George et al., 2021).
+
+The segment likelihood $L_{l}$ resulting from the sum-product algorithm is computed as if the presynaptic cells were independent. However, this isn't usually the case for sparse factors. To account for their interdependence, we substitute the following equation for segment log-likelihood:
+
+$$
+\log L _ {l} = w _ {l} \log \frac {1}{n _ {l}} \sum_ {u \in \operatorname {r e c} (l)} w _ {u l} m _ {u} + \sum_ {u \in \operatorname {r e c} (l)} \left(1 - w _ {u l}\right) \log m _ {u}, \tag {16}
+$$
+
+where $w_{ul}$ — synapse efficacy or neuron specificity for segment, such that $w_{ul} = p(s_l = 1|c_{t - 1}^u = 1)$ , $w_{l} = \frac{1}{n_{l}}\sum_{u}w_{ul}$ average synapse efficacy for segment $l$ , and $n_l$ -number of cells in segment's receptive field $rec(l)$ .
+
+The idea behind the formula is to approximate between two extreme cases. The first is $p(s_{l} = 1|c_{t - 1}^{u} = 1) \to 1$ for all $u$ , which means that all cells in the receptive field are dependent and part of a cluster, i.e. they fire together. In this case, $p(s_{l}) = m_{u}$ for all $u$ , but we also reduce the prediction variance by averaging across different $u$ . In the opposite case, $p(s_{l} = 1|c_{t - 1}^{u} = 1) \to 0$ for all $u$ , presynaptic cells don't cluster and the segment activation probability is just a product of the activation probability of each cell.
+
+The resulting equation for belief propagation in DHTM is the following:
+
+$$
+p \left(h _ {t} ^ {k}\right) = p \left(c _ {t} ^ {j} = 1\right) = \operatorname * {s o f t m a x} _ {j \in \text {c e l l s} \left[ H _ {t} ^ {k} \right]} \left(\max _ {l \in \operatorname {s e g} (j)} \left(E _ {l}\right)\right), \tag {17}
+$$
+
+where $E_{l} = \log f_{l} + \log L_{l}$ , cells $[H_t^k ]$ —indexes of cells representing states for the variable $H_{t}^{k}$ . Here we also approximate the logarithmic sum with the max operation, inspired by the neurophysiological model of segment aggregation by cells (Stuart & Spruston, 2015).
+
+The next step after computing the $p(h_t^k)$ distribution parameters is to incorporate information about the current feature states $p(h_t^k \mid \varphi_t^k) \propto p(h_t^k) \mathbb{I}[h_t^k \in \mathrm{col}(\varphi_t^k)]$ . After that, the learning step is executed. The loop closing step of our TM algorithm is to assign the posterior of the current step $p(h_t^k \mid \varphi_t^k)$ to $M_{t-1}^i$ .
+
+# C BIOLOGICAL INTERPRETATION
+
+Neural implementation of the DHTM is inspired by neocortical neural networks (see Fig. 4). Hidden variables $H^{k}$ may be considered as populations of excitatory pyramidal neurons in cortical layer L2/3 of somatosensory areas, with lateral inhibition modelled as softmax function. Staiger & Petersen (2021) showed that neurons in this layer are responsible for temporal context formation.
+
+The neuronal activity at timestep $t$ can be thought to carry messages $M_{t-1}^{k}$ . Messages are propagated through synapses of dendritic segments, which correspond to factors $F_{c}^{k}$ . Dendritic segments of biological neurons are known to be coincidence detectors of their synaptic input (Stuart & Spruston, 2015). That is, each segment can be thought of as a detector of a particular combination of active cells (states in our interpretation). If we associate a segment's parameter with factor value, a collection of dendritic segments represent a mapping from state space to factor values, representing context factor $F_{c}$ .
+
+Our computational model of neuron and its dendrites is based on HTM neuron model (Hawkins & Ahmad, 2016). In this model, each segment has a receptive field and activates when a number of active cells in this receptive field reaches a threshold. The neuron is active if any of its segments are active. We use the same activation rule, but the threshold is fixed to the receptive field size. Our algorithm of segment's growth on demand is also similar to HTM's. In principle, DHTM can be considered as a probabilistic interpretation of HTM, allowing belief propagation.
+
+Similarly to HTM framework, our temporal memory can be interpreted as a model of cortical layers. Feature variables $\Phi_t^k$ may be considered to represent cells of a granular layer (L4), as they are known to be the main hub for sensory excitation for L2/3. L2/3 cells that have common sensory input from the layer L4 are modelled as columns for particular feature states $\operatorname{col}(\varphi_t^k)$ (Mountcastle, 1997).
+
+
+Figure 4: Biological view of the neural implementation of the DHTM. Variables $H_{t-1}$ correspond to populations of neurons that have common sensory input and lateral inhibitory competition. Dendritic segments correspond to factor values $f_l$ . Spike frequency of a neuron reflects state probability $p(h_t^k)$ of a variable.
+
+# D ENCODING OBSERVATIONS
+
+Since DHTM is designed to process categorical random variables, we need a categorical encoder for RGB images to solve AnimalAI tasks.
+
+To compare our model to CSCG and EC in AnimalAI, we use the approach described in Guntupalli et al. (2023) to quantize observation space. K-Means (implementation from scikit-learn) with 50 clusters pretrained on $4 \times 10^{4}$ 64x64 RGB observations from trajectories sampled by uniform policy. To encode an image, the distance from each cluster is calculated and the index of the closest cluster is returned. In that way, AnimalAI's observation space is represented by one categorical variable.
+
+In order to test DHTM's ability to deal with distributed encoding, we also trained Categorical VAE (Jang et al., 2017) with the latent space represented by five categorical variables with 50 states each. We use a slightly modified implementation from Subramanian (2020). The only difference is that we modify the loss function by adding mean squared reward prediction error, which is linearly calculated from the latent codes to ensure the linear decomposition in feature space (equation 12). The model is trained on $6 \times 10^{4}$ 64x64 RGB images for 20 epochs with batch size 64. An image is encoded by first passing it through VAE's encoder block, then, to ensure stable encoding, instead of sampling from the latent distribution, the state with the highest logit is chosen for each variable.
+
+# E IMPLEMENTATION DETAILS
+
+As mentioned in Section 3.4, we incorporate DHTM as a part of an RL agent, which has a memory model and a feature reward function. All tested memory models share the same pipeline—conditioned on actions, they learn sequences of categorically encoded observations and are used to form SFs.
+
+In all experiments in Section 4.1, the agent uses softmax exploration with temperature equal to 0.04, except for EC agent we set softmax temperature to 0.01, since for higher temperatures its policy is unstable. For SF formation the agent uses $\gamma = 0.8$ and $\gamma = 0.9$ for Gridworld and AnimalAI experiments respectively. Maximum SF horizon is set to 50, but it is usually shorter since we employ early stop condition based on feature variables distribution. That is, if the prediction is close to uniform or the probability of a state with associated positive reward meets a threshold, the
+
+planning is interrupted. We use probability thresholds equal to 0.05 and 0.01 for Gridworld and AnimalAI respectively.
+
+In scaling Gridworld experiments (Appendix H.2), we increase maximum planning horizon up to 100 steps, and we also had to decrease agent's temperature to 0.02 for DHTM and to 0.002 for EC agent. Discount factor is 0.7 for DHTM and 0.9 for EC. We found that, in $10 \times 10$ maze, DHTM's strategy becomes more stable if we increase the positive reward threshold up to 0.4. EC agent converges faster if we increase its softmax temperature, however, it converges to less optimal trajectory on average.
+
+In the noise tolerance AnimalAI experiment (Appendix H.3), for DHTM we use the same set of agent parameters, except we set the goal probability threshold to 0.5. We also set the goal detection threshold equal to the mean positive reward since we found that noise variable states mostly get reward assignment slightly above zero, in contrast to signal variables, in which only several states get positive reward assignment.
+
+# E.1 LSTM AND RWKV
+
+LSTM baseline was implemented with a single LSTMCell from PyTorch library (Paszke et al., 2019). It is supported by an additional symexp-layer to encode input before passing it to the LSTM cell and a symexp-layer to decode the LSTM cell's output from the LSTM's hidden state back to the input representation, where symexp activation function, $\mathrm{symexp}(x) = \mathrm{sign}(x)e^{|x| - 1}$ , is a reverse of symlog function: $\mathrm{symlog} = \mathrm{sign}(x)\log(|x| + 1)$ .
+
+The similar way we implemented RWKV baseline: a single RWKV layer supported by single-layer encoder and decoder. Current public RWKV implementation is a fast evolving framework (Bo, 2021), and for the increased performance it is tightly bound to the offline batch training common for the transformer architectures. In our case we needed a so-called sequential mode for online learning similar to LSTM. Thus, we adapted another public implementation mentioned in the official documentation (RWKV in 150 lines of code).
+
+For both Gridworld and AnimalAI tasks, LSTM and RWKV with a hidden state size of 100 are trained on a buffer of 1000 trajectories with learning rate 0.002 on 50 randomly sampled batches of size 50 every 10 episodes.
+
+We also incorporated some notion of random variables in hidden states by splitting the hidden state of the tested RNNs into groups. In all experiments the hidden state represents 10 categorical variables with 10 states. That is, RNN is forced to learn 10 categorical distributions with multi-cross-entropy loss to explain the observed sequences, which is a somewhat close to the multi-categorical hidden state representation used in Dreamer V2/V3 (Hafner et al., 2023). The idea of using symexp activation function, mentioned above, is inspired by Dreamer too, and is used to remedy the problem of learning extreme probability values. Without symexp the neural network has to represent zero probability with high negative logit values and one-probability with high positive logit values, which is hard to reach with low learning rate and may lead to instabilities. Thus, symexp function makes it faster to reach target values in log space.
+
+# E.2 CSCG
+
+CSCG baseline was implemented using code from the repository accompanying the paper (https: //github.com/vicariousinc/naturecomm_cscg). CSCG was trained on buffers of 500 action steps with 1000 EM steps until convergence. We iteratively calculated the exponential moving average of transition matrices obtained for different batches with a smoothing coefficient $\alpha = 0.05$ as described in the paper (Dedieu et al., 2019). This smoothed transition matrix was used as an initialization for the next training batch and for inference. The first batch of observations is gathered using the uniform policy, and later batches are gathered using the current best policy.
+
+In so-called oracle mode, the transition matrix is trained from scratch every 500 steps. The buffer is discarded at the environmental change and the transition matrix is reinitialised.
+
+# E.3 EPISODIC CONTROL
+
+Here, we provide an algorithm for SF formation using EC dictionary $\mathcal{D}_a$ (see Algorithm 3). In contrast to other memory algorithms, EC dictionary doesn't estimate state transition probabilities, but it stores connections between them in all-or-nothing fashion. Therefore, on each time step, all predicted observations are assumed equally probable. But it's not a limitation in our set of experiments, since we tested our algorithms in deterministic environments.
+
+Algorithm 3 SF formation for EC
+Input: $h_0,\gamma \in (0,1),T$
+Output: SF
+1: SF $\leftarrow$ array of zeros
+2: PS $\leftarrow \{h_0\}$ # PS is the set of all states (nodes) on the current BFS depth
+3: goal_found $\leftarrow$ false
+4: for $l = 1..T$ do
+5: PS $\leftarrow \bigcup_{a\in A}\{\mathcal{D}_a(h)\}_{h\in \mathrm{PS}}$ # get next depth nodes assuming the policy is uniform
+6: counts $\leftarrow$ array of zeros
+7: for all $h\in \mathrm{PS}$ do
+8: $\varphi \gets \operatorname {argmax}F_e(h,\varphi)$
+9: count $\varphi =$ counts+1
+10: goal_found $\leftarrow r_{\varphi} > 0$ # check if the feature state is rewarding
+11: end for
+12: SF $=$ SF $^+\gamma^{l - 1}$ NORMALIZE(counts)
+13: if goal_found is true then
+14: break
+15: end if
+16: end for
+
+# E.4 DHTM
+
+In the Gridworld task and AnimalAI with K-Means encoder, the factor-graph for DHTM consists of three hidden variables $H$ with 40 states per one feature state. Each hidden variable gets the same copied observation, and their predictions are averaged. Using several hidden variables here is essential, as it significantly increases the amount of trajectories memory is able to store by decreasing collision probability for hidden state representations of different trajectories.
+
+In AnimalAI experiments, hidden variables state spaces are of size 40 states per one feature state. For Categorical VAE encoder, we use one hidden variable per feature variable, except the case (factor $1\star$ ) that tests that information from one feature variable is not sufficient for correct prediction, in which three hidden variables per observation variable are used and the factor of size three connecting to only hidden copies of the same feature variable. Examples of typical DHTM's graphical models used in our experiments are presented on Figure 5. It's important to note that edge colours denote separate graphical models, but the variables are shared (copied) between them. So there are no loops in these models. For simplicity, we define context factor size as the number of hidden variables from the previous time-step it has connections to, but it also connects to one hidden variable of the current step and the action variable.
+
+The most important DHTM's parameters, except the factor size, are factor learning rate $\alpha$ and its initial value $f_0$ . For better adaptability in changing and stochastic environments, the initial factor value should be set closer to zero, but in stationary environments, it can be safely set $f_0 = 1$ , allowing faster convergence. In Gridworld we use $\alpha = 0.1$ and $f_0 = 0.05$ , and in AnimalAI we set $\alpha = 0.001$ and $f_0 = 1$ . We also set the limit on the number of segments $5 \times 10^4$ , but practically never reach it in our experiments.
+
+
+Figure 5: Examples of factor-graphs for two main setups. Edge colours show that edges correspond to separate graphical models with copied variables. All context factors are also connected to action variable $A_{t-1}$ . A. Graphical model for one feature variable. In that case, feature value is copied for three hidden variables, to increase hidden state space and avoid memory collisions. B. Graphical model for Categorical VAE distributed encoding, example for factor of size 3 (i.e. takes into account tree hidden variables from the previous time-step).
+
+
+
+# F EXPERIMENTAL SETUPS
+
+# F.1 GRIDWORLD
+
+We use a simple homebrew Gridworld implementation. Each Gridworld position maps to a colour, reward, and terminal state indicator. There are two special colours for the world border and obstacles. Each time-step, an agent gets the colour index of the current agent's position. An agent is able to see obstacles or border colour when trying to go through them, which just replace current position colour for one step without actually changing the agent's position. We also punish an agent trying to go through a wall or world border in addition to base step reward punishment to facilitate faster convergence to optimal trajectories.
+
+Samples of setups used in our experiments are depicted in Figure 6. Additional setups for scaling experiments are shown in Figure 7. Here, the red colour corresponds to obstacles (negative numbers) and the light gray colour to the reward (number 4). Letters A and G correspond to the agent's initial position and goal, correspondingly. Floor colours are resampled for each trial, but we ensure that there are no more than five floor colours, including the terminal state. In each episode, the agent and the terminal rewarding state have the same initial positions. The episode ends when the terminal state is entered or the limit of action steps is reached.
+
+# F.2 ANIMALAI
+
+AnimalAI is a testbed inspired by experiments with animals (Crosby et al., 2020). The environment consists of 3D area surrounded by a wall and many different objects that can be placed using a configuration file, including walls, food, ramps, trees, movable obstacles, and more. We tested our agent in a $10 \times 10$ -meter room surrounded by walls (see Fig. 8). Each timestep, the agent gets an RGB image of a first-person view of the environment and is able to influence its behaviour by choosing one of three actions: turn left, turn right, or go forward. The agent and food item have the same fixed initial positions for each episode. The episode ends if the food item is collected or the maximum episode time is reached. To make an agent's actions more discretized, we repeat its choice three times and skip three frames.
+
+
+Figure 6: Schematic view of POMDP Gridworld setups. The left picture shows the initial setup of the environment, with the reward delivered by the light gray square (number 4). The right picture represents the environment after the reward is blocked by obstacles (red squares or negative numbers). The letter A depicts the agent's initial position and the letter G—the goal.
+
+
+
+
+Figure 7: Schematic view of POMDP Gridworld setups for scale experiments. From left to right: $5 \times 5$ , $7 \times 7$ , $10 \times 10$ . The letter A depicts the agent's initial position and the letter G—the goal.
+
+
+
+
+
+
+Figure 8: Sample of the agent's first-person view of our setup in AnimalAI environment. The green ball represents a goal, a food item to be collected.
+
+
+Figure 9: Dreamer V3 (18M) score in AnimalAI experiment described in this paper.
+
+# G CAPACITY
+
+In this section, we provide basic theoretical analysis of DHTM's capacity. Since the hidden state for unpredicted feature state transition is generated randomly, the main source of errors is accidental collision of hidden states. Due to special form of the emission factor (see equation 6), the collision is possible only for the same feature state. Here we analyse the capacity of DHTM for factor grpah depicted in Figure 5. Let's assume that the stream of feature states is sampled from uniformly distributed categorical random variable. Therefore, the probability to have a collision $p_c = \frac{1}{n_\varphi n_v n_h}$ where $n_v$ — number of hidden variables, $n_\varphi, n_h$ are the number of states for feature and hidden variables correspondingly. Therefore, the probability of having no collisions for a $l$ transitions is equal to $(1 - p_c)^l$ . Let's set a threshold $c \in (0,1)$ , which determines our confidence in that the sequence of transitions is collision free. Solving the equation $1 - c = (1 - p_c)^l$ with respect to $l$ , we get:
+
+$$
+l = \frac {\log (1 - c)}{\log \left(1 - \frac {1}{n _ {\varphi} n _ {v} n _ {h}}\right)}. \tag {18}
+$$
+
+Using the Taylor expansion for $n_{\varphi}n_v n_h \to +\infty$ , we can see that $l$ grows linearly with the total number of states $n_{\varphi}n_v n_h$ . Therefore, DHTM's capacity scales linearly with the number of neurons. This, however, can be easily improved if we set additional prior on hidden state activation probability, which would take into account hidden state usage, but we leave it for future research.
+
+# H ADDITIONAL EXPERIMENTS
+
+# H.1 DREAMER
+
+In order to ground our experiments to state-of-the-art model based algorithms, as an additional baseline, we test the smallest version of Dreamer V3 with 18 million parameters. We use the implementation described in Voudouris et al. (2023), which is based on Hafner et al. (2023) and adapted for AnimalAI.
+
+We tested it with default parameters in the same setup as described in Section 4.2, except we don't apply frame skip. The agent successfully solves the task after $105 \times 10^{3}$ action steps. Taking into account the frame skip used in our experiments with DHTM, it's approximately $35 \times 10^{3}$ action steps versus $3.5 \times 10^{3}$ for the DHTM agent to solve the task.
+
+# H.2 SCALABILITY
+
+In this section, we explore DHTM's scalability properties and compare them to the EC agent. In RL experiments, like presented in section 4, the number of segments largely depends on the RL algorithm used, its exploration strategy, and how fast it converges to a stable policy. We tested DHTM and EC agents in empty Gridworld of different sizes: $5 \times 5$ , $7 \times 7$ and $10 \times 10$ , where the agent and the goal are placed in opposite corners (see Fig. 7). As shown in Figure 10A, the DHTM-based
+
+agent requires fewer episodes to find the goal; however, the policy becomes less stable as the size of the Gridworld grows. As a consequence of faster convergence, DHTM produces fewer segments than the number of EC's dictionary entries throughout experiments. It also can be seen that for both DHTM and EC agents, the number of memory units grows non-linearly with the state space size (see Fig. 10B).
+
+
+Figure 10: Comparison of EC and DHTM-based agents in foraging task in POMDP Gridworld of different sizes: 5x5, 7x7 and 10x10. A. Dynamic of steps required for the agent to reach the goal. B. Number of segments grown (or dictionary entries for EC agent) after 300 episodes with respect to state space size.
+
+
+
+In principle, the number of segments reflects the number of transitions stored, which is proportional to the amount of experience provided to the memory. To show that, we tested DHTM and EC agent in 10x10 empty Gridworld using the same memory parameters as for experiments in section 4.1, but under uniform strategy. That is, agents freely explored the environment during 100 episodes and at the end the number of segments for DHTM and dictionary size for EC was recorded for each episode length. Figure 11 shows that DHTM's number of segments and EC's dictionary size grow linearly with the maximum episode length. In other words, since DHTM lacks generalisation abilities it largely serves as a trajectory buffer, in the same sense as a dictionary in EC.
+
+DHTM's computational complexity (time and memory) of the prediction step grows linearly with respect to the number of segments. Therefore, to use it for huge environments, there is need to prune unnecessary segments or remember only selected episodes. This is a common problem among episodic-like memories. The current approach to form SF also should be adjusted to be scalable, since it requires maximum planning horizon to be equal to the episode length. Among the improved approaches could be to employ n-step TD learning, hierarchical planning or SF caching, to recalculate it less frequently.
+
+# H.3 NOISE TOLERANCE
+
+In order to show the key difference between DHTM and its simplified EC version, we tested agents in the same AnimalAI setup as described in 4.2, but we add one noise variable to the VAE encoder. It's easy to see that the naive mapping from distributed VAE encoding to one categorical variable used for EC doesn't work in this case, since even identical observations will likely be encoded differently due to the noise variable. In contrast, since DHTM is able to handle distributed representations directly (as the name implies), it still can use non-noise variables independently to learn transitions.
+
+In this experiment, we vary DHTM's factor size (see Fig. 12). Since factors formed completely random, probability to include the noisy variable increases with factor size and this consequently worsen the performance of the agent. If the factor size is set to the total number of variables, DHTM becomes effectively unfactorised, similarly to its EC counterpart.
+
+
+Figure 11: Comparison of DHTM's number of segments with EC agent's dictionary size depending on episode length in Gridworld after uniform exploration during 100 episodes.
+
+
+Figure 12: Number of action steps the agent takes to reach the goal in a $10 \times 10$ -meter room in the AnimalAI environment, using DHTM and EC models with a distributed Categorical VAE encoder that includes one additional noisy variable (six variables in total). DHTM's factor size is varied, determining the number of variables sampled for each factor.
+
+# I GLOSSARY
+
+Categorical Random Variable—a discrete random variable that can take on finite $K$ possible states.
+
+Cortical Column or Minicolumn—a population of neurons in the neocortex that spans across layers and shares sensory input.
+
+Dendritic segment—a group of synapses (neuron's connections) that acts as an independent computational unit affecting the resulting neuron's activity.
+
+Factor Graph—bipartite graph representing the factorization of a probability distribution, with one part representing factor nodes and another—random variables.
+
+Factor size—number of variables connected to the factor. For simplicity, we refer only to the number of previous hidden states, used for prediction.
+
+Hidden Markov Model (HMM)—statistical model of a stochastic process where state probability depends only on previous state of the process.
+
+Multi-compartment neuron model—a model of neuron that divides neuron's connections into groups (segments) of different types (compartments), where each group may be considered as partly independent computational unit and groups of each compartment may affect the neuron's activity differently.
+
+Oracle—a mythical creature that gives up to our algorithms insightful information about the environment that is usually hidden.
+
+Successor Representations (SR)—a discounted sum of future [one-hot encoded] observations.
+
+Successor Features (SF)—a generalization of SR, a discounted sum of future latent states.
+
+Temporal Memory (TM)—in this work by this term we mean “memory for sequences”.
\ No newline at end of file
diff --git a/ICLR/2025/Learning Successor Features with Distributed Hebbian Temporal Memory/images.zip b/ICLR/2025/Learning Successor Features with Distributed Hebbian Temporal Memory/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..71b5671873abd6cd15f488f8612c5631bbe9e41b
--- /dev/null
+++ b/ICLR/2025/Learning Successor Features with Distributed Hebbian Temporal Memory/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:12759bf19947039cce8014499b61c145ff488609ca0fac2ae79aaebdcae43960
+size 525999
diff --git a/ICLR/2025/Learning Successor Features with Distributed Hebbian Temporal Memory/layout.json b/ICLR/2025/Learning Successor Features with Distributed Hebbian Temporal Memory/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..003d3f974ba004688dce8a29815f2522f60ed679
--- /dev/null
+++ b/ICLR/2025/Learning Successor Features with Distributed Hebbian Temporal Memory/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b7fc75db417e70b8fd506d005d952fd7569290930cd03abc5c966709e3752763
+size 783027
diff --git a/ICLR/2025/Learning Task Belief Similarity with Latent Dynamics for Meta-Reinforcement Learning/b515e149-7f99-421e-a2bf-aff5ef706bc0_content_list.json b/ICLR/2025/Learning Task Belief Similarity with Latent Dynamics for Meta-Reinforcement Learning/b515e149-7f99-421e-a2bf-aff5ef706bc0_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..7eccb21bf4898d1b87cb1c423e6b8db1ecca44f2
--- /dev/null
+++ b/ICLR/2025/Learning Task Belief Similarity with Latent Dynamics for Meta-Reinforcement Learning/b515e149-7f99-421e-a2bf-aff5ef706bc0_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:fc8c81caf0d0f389af31bdb023ab26f60ccceea5ba385836646230c510895663
+size 177154
diff --git a/ICLR/2025/Learning Task Belief Similarity with Latent Dynamics for Meta-Reinforcement Learning/b515e149-7f99-421e-a2bf-aff5ef706bc0_model.json b/ICLR/2025/Learning Task Belief Similarity with Latent Dynamics for Meta-Reinforcement Learning/b515e149-7f99-421e-a2bf-aff5ef706bc0_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..3ced294b480719143a40ab17e53b82dc7c55fe79
--- /dev/null
+++ b/ICLR/2025/Learning Task Belief Similarity with Latent Dynamics for Meta-Reinforcement Learning/b515e149-7f99-421e-a2bf-aff5ef706bc0_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:91bfe03ac0f95c749d5a913c34245551cfbdd7d36079fe5698398946e701ea6b
+size 206559
diff --git a/ICLR/2025/Learning Task Belief Similarity with Latent Dynamics for Meta-Reinforcement Learning/b515e149-7f99-421e-a2bf-aff5ef706bc0_origin.pdf b/ICLR/2025/Learning Task Belief Similarity with Latent Dynamics for Meta-Reinforcement Learning/b515e149-7f99-421e-a2bf-aff5ef706bc0_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..cce375bef9bfc23f2c89db82ec584516784e7212
--- /dev/null
+++ b/ICLR/2025/Learning Task Belief Similarity with Latent Dynamics for Meta-Reinforcement Learning/b515e149-7f99-421e-a2bf-aff5ef706bc0_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:13519d9d3955f7af10806f444869f5c7302fcc530256aa77bda8bdd695a07270
+size 6437484
diff --git a/ICLR/2025/Learning Task Belief Similarity with Latent Dynamics for Meta-Reinforcement Learning/full.md b/ICLR/2025/Learning Task Belief Similarity with Latent Dynamics for Meta-Reinforcement Learning/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..fbf260660a6aef8ca37cba269390a622e720f82a
--- /dev/null
+++ b/ICLR/2025/Learning Task Belief Similarity with Latent Dynamics for Meta-Reinforcement Learning/full.md
@@ -0,0 +1,811 @@
+# LEARNING TASK BELIEF SIMILARITY WITH LATENT DYNAMICS FOR META-REINFORCEMENT LEARNING
+
+Menglong Zhang, Fuyuan Qian, Quanying Liu*
+
+Southern University of Science and Technology
+
+{zhangml2022, qianfy2023}@mail.sustech.edu.cn
+
+liuqy@sustech.edu.cn
+
+# ABSTRACT
+
+Meta-reinforcement learning requires utilizing prior task distribution information obtained during exploration to rapidly adapt to unknown tasks. The efficiency of an agent's exploration hinges on accurately identifying the current task. Recent Bayes-Adaptive Deep RL approaches often rely on reconstructing the environment's reward signal, which is challenging in sparse reward settings, leading to suboptimal exploitation. Inspired by bisimulation metrics, which robustly extracts behavioral similarity in continuous MDPs, we propose SimBelief—a novel metaRL framework via measuring similarity of task belief in Bayes-Adaptive MDP (BAMDP). SimBelief effectively extracts common features of similar task distributions, enabling efficient task identification and exploration in sparse reward environments. We introduce latent task belief metric to learn the common structure of similar tasks and incorporate it into the specific task belief. By learning the latent dynamics across task distributions, we connect shared latent task belief features with specific task features, facilitating rapid task identification and adaptation. Our method outperforms state-of-the-art baselines on sparse reward MuJoCo and panda-gym tasks.
+
+# 1 INTRODUCTION
+
+In meta-reinforcement learning, an agent is required to efficiently explore the environment to gather information relevant to the current task and use that information to adapt to new, unseen tasks (Duan et al., 2016; Finn et al., 2017; Gupta et al., 2018b; Humplik et al., 2019). However, in real-world scenarios, there are many distractions, and irrelevant information can cause the agent to engage in erroneous exploration behaviors, leading to the learning of a suboptimal policy. This challenge is exacerbated when the exploration space is vast, and rewards are sparse. Humans, on the other hand, have the ability to generalize across similar tasks by quickly identifying common patterns, such as recognizing that both opening a window and a drawer involve a pulling action. These shared structures can be abstracted and applied to new tasks through certain transformations, enabling rapid adaptation by leveraging prior knowledge. This process involves identifying similar features and relationships between tasks, with the underlying task belief facilitating effective knowledge transfer (Figure 1).
+
+Common approaches to task belief modeling include posterior sampling (Thompson, 1933; Osband et al., 2013; Rakelly et al., 2019)
+
+and Bayes-Adaptive Markov Decision Processes (BAMDPs) (Duff, 2002; Ghavamzadeh et al., 2015), where BAMDPs provide a structured framework for learning and adapting to new tasks by integrating prior information (Zintgraf et al., 2019). Previous works have addressed the issue of
+
+
+Figure 1: Learning shared structures among tasks in the latent space as task beliefs enables the agent to rapidly adapt to new tasks.
+
+uninformative rewards in meta-RL by using intrinsic rewards (Zhang et al., 2021c) to extract task-relevant information or exploration bonuses (Zintgraf et al., 2021) to enhance performance in hard exploration tasks. However, they often neglect the potential common structures shared across tasks.
+
+To efficiently learn the structural relationships embedded within task belief and address the challenges of effective task identification and rapid adaptation, it is necessary to develop methods that can efficiently recognize tasks with similar structures. This requires exploring strategies beyond BAMDP-based approaches, which may involve leveraging hierarchical reinforcement learning (Frans et al., 2018), or task embeddings (Liu et al., 2021; Lan et al., 2019) that can capture the underlying structure of tasks and facilitate transfer learning across related tasks.
+
+In this work, we propose SimBelief (Learning Similarity of Task Belief for Meta-RL) as a meta-RL framework under BAMDP to measure the difference of tasks in similar distributions by learning the dynamics and transferring capability in latent space. This results in a task belief similarity, which quantifies the representational relationships between any two random tasks in the learned latent space. However, directly reconstructing and exploring the environment in the latent space may lose crucial detailed information (Yarats et al., 2021; Kemertas & Aumentado-Armstrong, 2021; Hafner et al., 2019), which is important for accurately reconstructing the specific task and ensuring convergence to the Bayesian optimal policy(Zintgraf et al., 2019; Choshen & Tamar, 2023).
+
+Therefore, we combine the task belief similarity learned in the latent space, which provides an overall understanding of the task distribution and the relationships between tasks, with the belief of the specific task currently being learned, significantly enhancing the agent's adaptability to unknown environments. Compared to related meta-RL methods, our approach effectively learns dynamics in the latent space and leverages the learned latent representations to quickly discern relationships between tasks. This enables the agent to utilize prior knowledge from tasks, recognize the current environment, and accelerate exploration and adaptation to unseen tasks.
+
+Our main contributions are as follows:
+
+- We propose a task representation method for context-based meta-reinforcement learning algorithms in BAMDP, which enhances the agent's ability to recognize and adapt to unknown tasks by learning task belief similarity through latent reward model, transition model, and inverse dynamics model.
+- In scenarios with sparse or uninformative reward signals, our algorithm more effectively extracts latent task space representations compared to other baselines and achieves state-of-the-art performance on sparse reward MuJoCo and panda-gym tasks.
+- Our algorithm demonstrates stronger adaptability and generalization capabilities to out-of-distribution (OOD) tasks.
+- We theoretically validate the effectiveness of the latent task belief metric in Bayes-Adaptive Markov Decision Processes (BAMDPs).
+
+# 2 BACKGROUND
+
+# 2.1 PROBLEM FORMULATION
+
+In meta-reinforcement learning (meta-RL), we consider a distribution $p(\mathcal{T})$ over a space of tasks $\mathcal{T}$ , where each task is modeled as a partially observable Markov decision process (POMDP; (Cassandra et al., 1994)) defined as $\mathcal{T} = (\mathcal{S},\mathcal{A},\mathcal{O},P,R,\rho_0,\gamma ,H)$ . Here, $\mathcal{S}$ and $\mathcal{A}$ represent the shared state and action spaces across all tasks, while $\mathcal{O}$ denotes the task-specific observation space. The transition function $P(s^{\prime}\mid s,a)$ , reward function $R(r\mid s,a)$ , and initial state distribution $\rho_0$ define the task-specific dynamics.
+
+For context-based methods, the agent interacts with the environment over a horizon of $H$ time steps in each episode of each task and utilizes a task-specific context $\tau_{t} = (o_{1:t},a_{1:t - 1},r_{1:t - 1})$ to infer the hidden task dynamics. The objective is to learn a policy $\pi (a_t\mid \tau_t)$ that can rapidly adapt to new tasks by leveraging the learned task belief encoded in the context. The full horizon comprises $N$ task episodes, referred to as a meta-episode, each with its own set of $T$ time steps, and the task context is updated as the agent gathers more observations. The objective in meta-RL is to maximize
+
+the expected return:
+
+$$
+J (\pi) = \mathbb {E} _ {\mathcal {T} \sim p (\mathcal {T})} \left[ \sum_ {t = 1} ^ {H} \mathbb {E} _ {\left(o _ {t}, a _ {t}, r _ {t}\right) \sim \pi} [ r _ {t} ] \right]. \tag {1}
+$$
+
+To address the multi-task adaptation problem in POMDPs, it is essential to avoid local optima and balance exploration with exploitation. Utilizing the framework of Bayes-Adaptive Markov Decision Processes (BAMDPs; (Duff, 2002)), we can represent uncertainty over task-relevant information in a belief space. By leveraging the current belief, we can reconstruct the dynamics model to better handle uncertainty, enabling more effective adaptation to the current task. The BAMDP is defined as $M^{+} = (\mathcal{S}^{+},\mathcal{A},\rho_{0}^{+},P^{+},R^{+},H^{+})$ , where the hyper-state space $S^{+} = \mathcal{S}\times \mathcal{B}$ combines the state space $\mathcal{S}$ with the task belief space $\mathcal{B}$ , representing the posterior over MDPs based on past experiences. $P^{+}$ is the transition function, $\rho_0^+$ is the initial hyper-state distribution, and $R^{+}$ is the reward function. The total decision horizon is $H^{+} = N\times H$ . The goal is to learn a meta-policy $\pi^{+}(a_{t}\mid s_{t}^{+})$ that maximizes cumulative reward by balancing exploration of task uncertainty and exploitation of the current belief.
+
+# 2.2 BISIMULATION METRICS IN RL
+
+Bisimulation metrics provide a way to measure state similarity in reinforcement learning (RL) based on behavioral equivalence, focusing on transitions and rewards rather than raw state features. The concept originated in model checking (Givan et al., 2003). In RL, bisimulation aggregates states that lead to similar future outcomes. This allows for more efficient learning. Approximate bisimulation metrics (Ferns et al., 2004; Castro, 2020) extended this idea to high-dimensional environments, allowing RL agents to better generalize, reduce state space complexity, and improve exploration. These metrics are particularly useful in tasks with sparse rewards or partial observability (Guo et al., 2022).
+
+Definition 1 ( $\pi$ -Bisimulation Metric (Castro, 2020)). Given two states $s_i$ and $s_j$ from the state space $S$ , the distance between these states can be evaluated using the $\pi$ -bisimulation metric $d_{\pi}(s_i, s_j)$ which measures behavioral similarity. We define the metric $d_{\pi}(s_i, s_j)$ as:
+
+$$
+d _ {\pi} \left(s _ {i}, s _ {j}\right) = \left| R _ {s _ {i}} ^ {\pi} - R _ {s _ {j}} ^ {\pi} \right| + \gamma W _ {1} \left(d _ {\pi}\right) \left(P _ {s _ {i}} ^ {\pi}, P _ {s _ {j}} ^ {\pi}\right) \tag {2}
+$$
+
+where $R_{s_i}^{\pi}$ and $R_{s_j}^{\pi}$ represent the reward functions under policy, $P^{\pi}$ denotes the transition distributions, and $W_{1}$ is the Wasserstein distance between the distributions.
+
+# 2.3 UNINFORMATIVE REWARDS IN META-REINFORCEMENT LEARNING
+
+Uninformative rewards provide insufficient feedback for agents to quickly learn effective strategies (Andrychowicz et al., 2017; Dulac-Arnold et al., 2019). This issue can impede exploration, slow convergence, and lead to suboptimal policies. To address this challenge, methods such as intrinsic motivation and curiosity-driven exploration have been employed to encourage agents to explore state spaces even when extrinsic rewards are minimal (Pathak et al., 2017; Burda et al., 2018). Reward shaping techniques modify the reward function to offer more informative feedback, thereby accelerating learning (Ng et al., 1999). Balancing the exploration-exploitation trade-off is also crucial for efficient learning (Sutton, 2018). Enhancing meta-RL agents' ability to learn from uninformative rewards can significantly improve their performance across complex, real-world environments by incorporating advanced exploration strategies and reward augmentation methods (Gupta et al., 2018b).
+
+In this work, we learn the dynamics of multiple tasks in a latent space and use a task belief metric to measure the differences between similar tasks. By extracting similar structures within the latent space and representing these structures as task belief similarity, we map them to the current real and unknown environment to assist the agent in exploration. This approach aims to achieve rapid adaptation to multiple tasks in environments with uninformative rewards.
+
+# 3 METHOD
+
+In this section, we provide a detailed introduction to SimBelief (Figure 2), an effective off-policy meta-RL approach for online adaptation within the BAMDP framework. First, we propose a latent
+
+task belief metric to quantify the relationships between different tasks in the latent space in section 3.1. Then, we explain how task belief similarity is learned within the learned latent dynamics in section 3.2. We also describe the overall algorithmic process of SimBelief in detail in section 3.3. Finally, we theoretically prove the conditions under which the policy can transfer between tasks in the latent space in section 3.4.
+
+# 3.1 LATENT TASK BELIEF METRIC
+
+Previous work (Zhang et al., 2021b) learns an environment encoder to capture the relationships between Block MDPs (Du et al., 2019) for multi-task generalization. In (Zhang et al., 2021c), information gain is used as an intrinsic reward for exploration. However, in these approaches, the agent needs to know the current task information (i.e., task ID) during training. In contrast, in context-based meta-RL, these approaches limit adaptability to out-of-distribution tasks, as the agent must infer the task being executed from historical information and reason about the current task distribution during adaptation. Including task ID during training can partially constrain the agent's reasoning capabilities. In real-world scenarios, relying solely on the environment's inherent reward signal or manually designed intrinsic rewards often fails to effectively capture the common structure of tasks (Zheng et al., 2020). Therefore, learning the structural similarities between tasks and leveraging belief to facilitate rapid transfer across similar tasks is more advantageous in complex environments, especially those with sparse reward signals. To measure the relationships between tasks and make it applicable within the BAMDP, we define the latent task belief metric.
+
+Definition 2 (Latent Task Belief Metric). Given two latent task beliefs $b_{i}$ and $b_{j}$ , with corresponding samples $z_{i}$ and $z_{j}$ identified by their latent representations, let $d_{\pi}$ denote the metric that evaluates the distance between these two task beliefs. We define $d_{\pi}(z_i,z_j)$ as follows:
+
+$$
+\begin{array}{l} d _ {\pi} (z _ {i}, z _ {j}) = \left| R _ {i} ^ {\pi} (s _ {i} ^ {+}, a _ {i}) - R _ {j} ^ {\pi} (s _ {j} ^ {+}, a _ {j}) \right| + W _ {2} (d _ {\pi}) \left(T _ {i} ^ {\pi} (s _ {i} ^ {+}, a _ {i}), T _ {j} ^ {\pi} (s _ {j} ^ {+}, a _ {j})\right) \\ + \left\| I _ {i} ^ {\pi} \left(s _ {i} ^ {+}, s _ {i} ^ {\prime +}\right) - I _ {j} ^ {\pi} \left(s _ {j} ^ {+}, s _ {j} ^ {\prime +}\right) \right\| _ {1} \tag {3} \\ \end{array}
+$$
+
+where $s_i^+ = (g(s_i), z_i)$ is the augmented state corresponding to the task $i$ , $r_i = R_i^\pi(s_i^+, a_i)$ is the reward model, $s'_i^+ = T_i^\pi(s_i^+, a_i)^1$ is the transition model, and $a_i = I_i^\pi(s_i^+, s'_i^+)$ is the inverse dynamics model.
+
+Here, we map $s$ to a latent compressed space as $g(s)$ , and learn the task dynamics in the compressed space. Latent dynamic space can be defined as $\mathcal{S}^{+} = \mathcal{G}(\mathcal{S})\times \mathcal{Z}$ . In Figure 2, $z_{l}$ represents the sample from latent task belief $b_{l}$ in the latent space and captures the similarity between different tasks. All task distributions share a common latent dynamic space, with different tasks distinguished by different $z_{l}$ , where $z_{l}$ contains the dynamic similarity information between any two tasks. We employ the inverse dynamics model to predict $a$ , as it not only helps retain information relevant to what the agent can control but also enhances the agent's reasoning capability (see Appendix G.2). Unlike in Definition 1, here we use the dynamic model to measure task belief similarity to enhance exploration efficiency in unknown environments, while preserving the agent's control information in sparse reward settings. This approach is more effective for identifying similar tasks.
+
+# 3.2 LEARNING TASK BELIEF SIMILARITY IN LATENT SPACE
+
+Our goal is to use the latent task belief metric to capture the similarity information between any two tasks, which is embedded within the task belief. This enables SimBelief to achieve rapid task reasoning and adaptation. From the replay buffer $\mathcal{D}$ , we randomly sample trajectories $\tau$ from two tasks (i.e., task $i$ and task $j$ ) in the task set $M$ . The trajectory is then fed into the context encoder $q_{\phi}$ to obtain historical information $h^i$ and $h^j$ , which serve as prior knowledge for the tasks and are input into the latent space. The latent space primarily consists of three components: (1) a state encoder $g_{\theta}$ that maps the original state space to the latent state space $S^{+}$ , (2) a belief similarity learner $\psi_l$ that maps $h$ to the latent task belief $b_l$ , and (3) a latent dynamics model $p_{\theta}$ conditioned on the learned latent task belief (Figure 2).
+
+
+Figure 2: SimBelief architecture. Our framework consists of three components: learning latent task belief similarity, reconstructing the specific task, and the policy. In the compressed state space, $\psi_l$ learns the latent task belief $b_l^i$ through latent dynamics shared among all tasks in the distribution. In the real environment, we reconstruct the dynamics of the specific task using $\psi_r$ to obtain the specific task belief $b_r^i$ . The policy $\pi$ is conditioned on the state and the combined belief $b^i$ , which integrates $b_r^i$ and $b_l^i$ . In this paper, we use $l$ and $r$ to denote the latent space and real space, respectively, and $i$ and $j$ to represent task $i$ and task $j$ , respectively.
+
+To obtain the latent dynamic representation of all tasks conditioned on $z_{l}$ , we reconstruct the latent dynamics $p_{\theta}((s'^{+},r,a)\mid z_l)$ , which includes the reward model $R_{l}$ , the transition model $T_{l}$ , and the inverse dynamics model $I_{l}$ through one-step predictions. The learning objective for the latent dynamics can be expressed as:
+
+$$
+\mathbb {E} _ {p (M)} \left[ \mathbb {E} _ {\psi_ {l} \left(z _ {l} \mid h\right)} \left[ \log p _ {\theta} \left(\left(s ^ {\prime +}, r, a\right) \mid z _ {l}\right) \right] \right]. \tag {4}
+$$
+
+This objective enables the model to capture task-specific latent dynamics by maximizing the likelihood of predicting the next augmented state $s^{\prime +}$ , reward $r$ , and action $a$ given the latent task belief $z_{l}$ .
+
+We aim to learn the similarity relationship between any two tasks using the latent task belief metric and the latent dynamics learned through Equation 4. This similarity relationship is obtained by optimizing the belief similarity learner $\psi_{l}$ . The learning objective for task belief similarity using $\psi_{l}$ is defined as follows:
+
+$$
+\begin{array}{l} \mathcal {L} _ {b i s i m} (\psi_ {l}) = \| \psi_ {l} (h _ {i}) - \psi_ {l} (h _ {j}) \| _ {1} - \left| \hat {R} \left(s _ {i} ^ {+}, a _ {i}\right) - \hat {R} \left(s _ {j} ^ {+}, a _ {j}\right) \right| - W _ {2} \left(\hat {T} (\cdot \mid s _ {i} ^ {+}, a _ {i}), \hat {T} (\cdot \mid s _ {j} ^ {+}, a _ {j})\right) \\ - \left\| \hat {I} (\cdot \mid s _ {i} ^ {+}, s _ {i} ^ {\prime +}) - \hat {I} (\cdot \mid s _ {j} ^ {+}, s _ {j} ^ {\prime +}) \right\| _ {1}, \tag {5} \\ \end{array}
+$$
+
+where the gradients of dynamics model are stopped, and $b_{l}^{i} = \psi_{l}(h_{i})$ . We use the 2-Wasserstein metric because the $W_{2}$ metric has a convenient closed-form solution (Zhang et al., 2021a). During training, through Equation 4 and 5, $z_{l}^{i}$ , sampled from $b_{l}^{i}$ , is optimized to encode both the latent dynamic information required to reconstruct task $i$ and the similarity information between task $i$ and any other task in the task set $M$ . Through this approach, we can utilize $\psi_{l}$ to identify contextual information at the current timestep and represent the similarity between any tasks through its output $b_{l}$ .
+
+# 3.3 SIMBELIEF ALGORITHM
+
+We now proceed to describe how the learned task belief similarity (Section 3.2) can be leveraged to enhance the exploration capability and convergence efficiency of meta-RL. The algorithm pseudocode can be found in Appendix C.
+
+Reconstructing the specific task. In the BAMDP framework (Ghavamzadeh et al., 2015; Zintgraf et al., 2019), even with extremely sparse rewards, it is necessary to construct the specific task's reward model in the original state space using a variational auto-encoder (VAE, (Kingma, 2013))
+
+This is because reconstructing the specific task in the latent state space may result in the loss of crucial information, as the latent space is solely used for learning task belief similarity. Additionally,
+
+along the temporal dimension, we only reconstruct the past history, as we use a one-step prediction approach in the latent space. This approach effectively captures local information about the task distribution, enhancing the agent's reasoning ability for future predictions (see the upper part of Figure 2). The objective is to maximise
+
+$$
+\mathcal {L} _ {\mathrm {V A E}} (\phi) = \mathbb {E} _ {q _ {\phi} \left(z _ {r} \mid \tau : t\right)} \left[ \log p _ {\phi} \left(\tau : t \mid z _ {r}\right) \right] - D _ {\mathrm {K L}} \left(q _ {\phi} \left(z _ {r} \mid \tau : t\right) \| p \left(z _ {r}\right)\right), \tag {6}
+$$
+
+where $q_{\phi}$ generates the specific task belief $z_{r}$ for the current timestep using only the information from the historical trajectory $\tau_{:t}$ . We consider $q_{\phi}$ as the forward reasoning process to infer the task belief $z_{r}$ , corresponding to $z_{r} \sim \psi_{r}(b_{r} \mid h) q_{\phi}(h \mid \tau_{:t})$ in the Algorithm 1.
+
+Integrating latent task belief for effective online exploration. The learned latent task belief $z_{l} \sim b_{l}$ enables the agent to quickly recall the similarities between different tasks during interactions with the environment, enhancing the efficiency of reasoning and exploration. This is the primary reason why SimBelief achieves robust adaptation to OOD tasks (Figure 4). Since the latent state space is an abstraction of the original task, the latent task belief may overlook the specific task information required by the agent during exploration in the real environment. Therefore, we choose to project the two distributions into a joint space $\mathcal{B}$ , and then use a Gaussian mixture of the two distributions $b_{r} = (\mu_{\psi_{r}}(h), \sigma_{\psi_{r}}(h))$ and $b_{l} = (\mu_{\psi_{l}}(h), \sigma_{\psi_{l}}(h))$ , combined with the real environment's augmented state derived from $s_{t}$ , as the input to the policy $\pi$ . The formulation of the Gaussian mixture distribution $b$ is given by:
+
+$$
+b = w _ {r} \cdot \mathcal {N} \left(z _ {r} \mid \mu_ {r}, \sigma_ {r} ^ {2}\right) + w _ {l} \cdot \mathcal {N} \left(z _ {l} \mid \mu_ {l}, \sigma_ {l} ^ {2}\right), \tag {7}
+$$
+
+where $\mathcal{N}(z\mid \mu_r,\sigma_r^2)$ and $\mathcal{N}(z\mid \mu_l,\sigma_l^2)$ are Gaussian distributions with means $\mu_r$ and $\mu_l$ , and variances $\sigma_r^2$ and $\sigma_l^2$ , respectively. The weights $w_{r}$ and $w_{l}$ satisfy $w_{r} + w_{l} = 1$ and are non-negative (see Appendix G.3).
+
+In the early stages of training, the latent task belief enhances the agent's ability to identify tasks and explore efficiently in the real environment, providing a high-level understanding of the overall task distribution (see Appendix F.2). However, for the algorithm to converge stably, it need to incorporate finer-grained information about specific tasks, which is captured in the specific task belief $b_{r}$ . Therefore, we minimize the discrepancy between the latent belief $b_{l}$ and the specific task belief $b_{r}$ when training $\psi_{l}$ . This is achieved by introducing a KL divergence term between the two beliefs, serving as a regularization for the latent task belief. Combined with Equation 5, the overall optimization objective of $\psi_{l}$ can be written as:
+
+$$
+\mathcal {J} (\psi_ {l}) = \mathbb {E} _ {p (M)} \left[ \mathcal {L} _ {\text {b i s i m}} (\psi_ {l}) + D _ {\mathrm {K L}} \left(\hat {q} _ {\phi} \left(z _ {r} \mid \tau_ {: t}\right) \| p (z _ {l})\right) \right], \tag {8}
+$$
+
+where the gradient of $\hat{q}_{\phi}$ is stopped, and $p(z_l)$ represents the distribution of $z_{l} \sim \psi_{l}(b_{l} \mid h)$ .
+
+SimBelief utilizes Soft Actor-Critic (SAC) (Haarnoja et al., 2018) to optimize the policy, where the optimization of latent dynamics and latent task similarity is conducted jointly with policy optimization to ensure convergence to near Bayes-optimal policy. To enhance the consistency between latent dynamics and real environment exploration, without introducing perturbations that could disrupt belief similarity in the latent space, we use the loss of Q-function as the objective to train the offset $(\Delta \mu, \Delta \sigma)$ of $b_{l} = (\mu_{\psi_{l}}(h) + \Delta \mu, \sigma_{\psi_{l}}(h) + \Delta \sigma)$ (see Appendix G.4). The loss of SAC after integrating latent dynamic information is
+
+$$
+\mathcal {J} (\pi) = \mathbb {E} _ {(s, a) \sim \mathcal {D}} [ \alpha \log (\pi (a | (s, b))) - Q _ {\theta} ((s, b), a) ], \tag {9}
+$$
+
+where $(s,b)$ is the augmented state in the real environment under the BAMDP framework.
+
+# 3.4 THEORETICAL ANALYSIS
+
+Based on the latent task belief metric $d_{\pi}(z_i, z_j)$ defined in Definition 2, we can establish the following theorems regarding the difference in task dynamics between two tasks in the latent space within BAMDP.
+
+Theorem 1 (Value difference bound). Given two tasks $\mathcal{M}_i$ and $\mathcal{M}_j$ in the latent space with states $s_i^+, s_j^+ \in S^+$ , and let $V^\pi$ be the value function of policy $\pi$ , the value difference bound between the tasks can be given by:
+
+$$
+\left| V ^ {\pi} \left(s _ {i} ^ {+}\right) - V ^ {\pi} \left(s _ {j} ^ {+}\right) \right| \leq d _ {\pi} \left(z _ {i}, z _ {j}\right), \tag {10}
+$$
+
+where $d_{\pi}(z_i,z_j)$ is the latent task belief metric.
+
+
+
+
+
+
+
+
+Figure 3: Meta-testing performance on sparse reward MuJoCo and panda-gym tasks over 3 random seeds. Our algorithm, SimBelief, demonstrates superior online adaptation capabilities compared to other algorithms.
+
+
+
+
+
+This theorem demonstrates that tasks with similar latent task beliefs $z_{i}$ and $z_{j}$ will have similar value function under the same policy $\pi$ .
+
+Theorem 2 (Latent transfer bound). Let $Q_{\mathcal{M}_j}^*$ be the optimal $Q$ -function for task $\mathcal{M}_j$ . The difference between $Q_{\mathcal{M}_j}^*$ and the $Q$ -function of the policy $\pi$ learned from task $\mathcal{M}_i$ , applied to task $\mathcal{M}_j$ , is bounded as follows:
+
+$$
+\left\| Q _ {\mathcal {M} _ {j}} ^ {*} - \left[ Q _ {\mathcal {M} _ {i}} ^ {\pi} \right] _ {\mathcal {M} _ {j}} \right\| _ {\infty} \leq \epsilon_ {R} + \gamma \left(\epsilon_ {T} + \epsilon_ {I} + \| z _ {i} - z _ {j} \| _ {1}\right) \frac {R _ {\max }}{2 (1 - \gamma)}. \tag {11}
+$$
+
+This extended transfer bound theorem provides a formal bound on how well a policy $\pi$ trained on task $\mathcal{M}_i$ will transfer to task $\mathcal{M}_j$ . $\epsilon_R$ , $\epsilon_T$ , and $\epsilon_I$ are approximation errors for rewards, transitions, and inverse dynamics. All proofs are provided in Appendix B.
+
+# 4 EXPERIMENTS
+
+In this section, we evaluate SimBelief on sparse-reward tasks in MuJoCo (Finn et al., 2017; Rakelly et al., 2019) and the more challenging panda-gym (Gallouédec et al., 2021) environment. We aim to address the following questions: 1. Can SimBelief achieve fast online adaptation in sparse reward tasks? 2. Can SimBelief leverage learned latent belief similarity representations to enhance out-of-distribution generalization? 3. What is the impact of latent task representations on rapid exploration? 4. How does the latent space correspond to the real environment?
+
+**Environments and baselines:** We conducted experiments on six complex sparse reward tasks, including Point-Robot-Sparse, Cheetah-Vel-Sparse, Walker-Rand-Params, Panda-Reach, Panda-Push, and Panda-Pick-And-Place (see Appendix E). While MuJoCo tasks are commonly used by current meta-learning algorithms, panda-gym simulates real-world robotic arm movements with extremely sparse rewards, making it a better benchmark for evaluating an algorithm's ability to handle real-world tasks. We compared SimBelief against PEARL (Rakelly et al., 2019), which is based on posterior sampling, and MetaCURE (Zhang et al., 2021c), which learns a separate policy, as well as VariBAD (Zintgraf et al., 2019), HyperX (Zintgraf et al., 2021), and RL² (Duan et al., 2016), which are based on the BAMDP framework (see Appendix D).
+
+Online Adaptation Performance. During the training phase, we performed meta-testing by calculating the meta-episode average return and success rate across different tasks to evaluate the algorithm's online performance. As shown in Figure 3, SimBelief consistently performed well across all tasks and exhibited superior adaptation capabilities compared to other algorithms. BAMDP-based algorithms often require more interactions with the environment to converge to a Bayes-optimal
+
+
+
+
+
+
+
+
+Figure 4: Average test performance for the first 5 rollouts on out-of-distribution tasks (Cheetah-Vel-Sparse and Point-Robot-Sparse) shows that as the task distribution gradually deviates from the training distribution, SimBelief demonstrates more efficient and robust adaptation compared to other algorithms, while still maintaining a high return.
+
+
+
+
+
+policy, whereas our algorithm, by integrating task belief similarity in the latent space, significantly improved the agent's ability to effectively extract task-relevant information in sparse reward environments, thus accelerating convergence. In sparse reward tasks like those in panda-gym, the performance of Varibad, HyperX, and $\mathrm{RL}^2$ illustrates that overly relying on the environment's reward signal while neglecting task similarity information makes it difficult to achieve online adaptation in more complex scenarios. Additionally, SimBelief demonstrated more stable performance compared to posterior sampling-based algorithms like PEARL and MetaCURE, indicating that SimBelief accurately learned the common structure of the task distribution.
+
+Out-of-distribution Task Inference and Adaptation. We evaluated the algorithm's reasoning and generalization capabilities on out-of-distribution (OOD) tasks. In Figure 4, we show the agent's out-of-domain adaptation and generalization performance on the Cheetah-Vel-Sparse (top) and Point-Robot-Sparse (bottom) tasks. The leftmost column represents the task range used during the training phase, where the agent was trained by generating task goals within this range. During the testing phase, we adjusted the velocity range for Cheetah-Vel-Sparse and the semi-circle radius for Point-Robot-Sparse to assess the agent's robustness and task inference capabilities within five episodes. The results indicate that SimBelief exhibits stable out-of-distribution generalization, demonstrating that learned latent belief similarity representations can be leveraged to enhance out-of-distribution task inference ability. The latent task belief similarity we proposed also equips the agent with strong task transferability.
+
+Exploration Performance. We visualized the exploration and adaptation process of the agent in the Point-Robot-Sparse environment over two episodes, as shown in Figure 5. The test target appeared within a semicircle with a radius of 1.2, and five positions on the semicircle were randomly selected as the agent's targets. Compared to other algorithms, SimBelief successfully identified the randomly appearing target location within the semicircle and controlled the robot to reach the target point within two episodes. Moreover, in the out-of-distribution setting, SimBelief demonstrated more efficient learning of a near Bayes-optimal policy compared to BAMDP-based algorithms like HyperX. The latent task belief enabled the agent to efficiently analogize and identify tasks, leading to more effective exploration.
+
+Task Belief Visualization. We use t-SNE (Van der Maaten & Hinton, 2008) to visualize SimBelief's latent task belief and specific task belief (Figure 6), aim to illustrate how the task common structure learned in the latent space contributes to effective reconstruction of the real environment. This visualization reveals the underlying reason for SimBelief's ability to achieve rapid out-of-distribution generalization. The latent space, as an abstraction and holistic representation of the task distri
+
+
+
+
+
+
+
+
+Figure 5: Exploration and adaptation performance in the 5 random out-of-distribution (radius = 1.2) tasks of Point-Robot-Sparse. SimBelief is capable of robustly learning a near Bayes-optimal policy.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Figure 6: t-SNE visualization of task beliefs learned by the algorithm on 10 randomly sampled OOD tasks. The velocity range for Cheetah-Vel-Sparse is set to 3-4, and the semicircle radius for Point-Robot-Sparse is 1.1. SimBelief demonstrates a more distinct representation in the latent space, enhancing the specific task belief to represent similar tasks in the real environment.
+
+
+
+
+
+
+
+bution, enables efficient transfer of essential task information. This, in turn, allows the agent to leverage prior knowledge for identifying and reasoning quickly about unknown environments.
+
+The mechanism of SimBelief for rapid adaptation. SimBelief, through the latent task belief, essentially learns the transfer relationships between knowledge across different tasks. In extremely sparse reward scenarios, once the agent succeeds in one task, this prior knowledge of success can be quickly propagated to other similar tasks via the latent task belief, enabling the agent to rapidly adapt to similar types of tasks. The latent task belief acts as a bridge, facilitating the generalization of past successes to new, related tasks, significantly reducing exploration time and computational resources. A more detailed discussion is provided in Appendix F.
+
+# 5 RELATED WORKS
+
+Task representation in reinforcement learning focuses on how agents encode and utilize task information to enhance learning efficiency and generalization. Meta-reinforcement learning enables agents to quickly adapt to new tasks by learning task priors; for instance, (Finn et al., 2017) introduced Model-Agnostic Meta-Learning (MAML) for rapid adaptation with minimal updates, while
+
+(Rakelly et al., 2019) proposed PEARL to learn latent task representations for fast probabilistic adaptation. (Zintgraf et al., 2019; Dorfman et al., 2021) learn a latent variable model of task distribution for efficient Bayes-adaptive RL, and (Gupta et al., 2018a) explored unsupervised meta-learning without explicit task labels. Yuan & Lu (2022); Choshen & Tamar (2023) apply contrastive learning to enhance encoder representation. (Lee et al., 2023) decomposes complex tasks into subtasks to handle non-parametric task variability. In multi-task RL, (Teh et al., 2017) introduced Distral to learn shared policies across tasks with task-specific adaptations. Contextual task representations have also been explored: (Sodhani et al., 2021) use metadata to learn interpretable representations, and (Hausman et al., 2018) learned embedding spaces for transferable skills. These studies underscore the importance of efficient task representation to improve RL performance and generalization.
+
+Exploration with task inference. Integrating exploration with task inference in reinforcement learning enables agents to learn efficient policies by understanding task structures. Information-theoretic approaches encourage exploration by maximizing the entropy of state visitation distributions, promoting diverse behaviors (Liu & Abbeel, 2021). (Raileanu & Rocktäschel, 2020) propose a type of intrinsic reward which encourages the agent to take actions that lead to significant changes in its learned state representation. (Wan et al., 2023) introduce DEIR, a method that enhances exploration efficiency and robustness by using discriminative model-based episodic intrinsic rewards. (Yang et al., 2023) propose an unsupervised skill discovery method through contrastive learning among behaviors. (Rana et al., 2023) propose a low-level residual policy for skill adaptation enabling downstream RL agents to adapt to unseen tasks Planning-based methods enable agents to plan exploratory actions that maximize information gain by learning world models (Sekar et al., 2020). (Xie et al., 2020) leverage the idea of partial amortization for fast adaptation at test time.
+
+Bisimulation for control. Bisimulation has been effectively applied in various control tasks, demonstrating its value in reducing computational burdens without sacrificing policy performance (Zhang et al., 2021a). (Zhang et al., 2021b) propose a method for learning state abstractions that generalize across tasks, improving sample efficiency and performance in multi-task and meta-reinforcement learning by leveraging shared dynamics in complex environments. (Gelada et al., 2019) has leveraged bisimulation for efficient exploration by ensuring the agent treats bisimilar states similarly, reducing sample complexity. (Hansen-Estruch et al., 2022) propose a form of state abstraction that captures functional equivariance for goal-conditioned RL. (Kemertas & Aumentado-Armstrong, 2021) generalize value function approximation bounds for on-policy bisimulation metrics to non-optimal policies. These studies highlight the increasing applicability of bisimulation in reinforcement learning and control tasks. They offer a variety of solutions that reduce sample complexity, guide exploration, and enhance learning performance, particularly in goal-conditioned settings and beyond.
+
+# 6 CONCLUSION
+
+We present SimBelief, a meta-RL framework aimed at improving the agent's ability to quickly adapt and generalize in real-world sparse reward tasks. At the core of SimBelief is the latent task belief metric, which learns the similarity between the dynamics of various tasks in a shared latent space and represents this similarity as task belief similarity. This helps the agent efficiently capture the common structure of the task distribution, facilitating the recognition and reasoning about unknown tasks. By combining the latent task belief with the specific task belief learned through interactions in the real environment, SimBelief demonstrates strong adaptation and generalization capabilities during exploration, particularly on out-of-distribution tasks. It overcomes the slow convergence and inefficiency issues inherent in BAMDP. We believe that SimBelief will inspire future research on agent generalization, providing a powerful tool for enabling agents to more efficiently tackle the challenges and complexities of real-world environments.
+
+# ACKNOWLEDGMENTS
+
+This work was funded in part by National Natural Science Foundation of China (62472206), Shenzhen Excellent Youth Project (RCYX20231211090405003), Shenzhen Science and Technology Innovation Committee (2022410129, KJZD20230923115221044, KCXFZ20201221173400001).
+
+# REFERENCES
+
+Marcin Andrychowicz, Filip Wolski, Alex Ray, Jonas Schneider, Rachel Fong, Peter Welinder, Bob McGrew, Josh Tobin, OpenAI Pieter Abbeel, and Wojciech Zaremba. Hindsight experience replay. Advances in neural information processing systems, 30, 2017.
+Yuri Burda, Harrison Edwards, Amos Storkey, and Oleg Klimov. Exploration by random network distillation. arXiv preprint arXiv:1810.12894, 2018.
+Anthony R Cassandra, Leslie Pack Kaelbling, and Michael L Littman. Acting optimally in partially observable stochastic domains. In Aaai, volume 94, pp. 1023-1028, 1994.
+Pablo Samuel Castro. Scalable methods for computing state similarity in deterministic markov decision processes. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 34, pp. 10069-10076, 2020.
+Era Choshen and Aviv Tamar. Contrabar: Contrastive bayes-adaptive deep rl. In International Conference on Machine Learning, pp. 6005-6027. PMLR, 2023.
+Ron Dorfman, Idan Shenfeld, and Aviv Tamar. Offline meta reinforcement learning-identifiability challenges and effective data collection strategies. Advances in Neural Information Processing Systems, 34:4607-4618, 2021.
+Simon Du, Akshay Krishnamurthy, Nan Jiang, Alekh Agarwal, Miroslav Dudik, and John Langford. Provably efficient rl with rich observations via latent state decoding. In International Conference on Machine Learning, pp. 1665-1674. PMLR, 2019.
+Yan Duan, John Schulman, Xi Chen, Peter L Bartlett, Ilya Sutskever, and Pieter Abbeel. R1 2: Fast reinforcement learning via slow reinforcement learning. arXiv preprint arXiv:1611.02779, 2016.
+Michael O'Gordon Duff. Optimal Learning: Computational procedures for Bayes-adaptive Markov decision processes. University of Massachusetts Amherst, 2002.
+Gabriel Dulac-Arnold, Daniel Mankowitz, and Todd Hester. Challenges of real-world reinforcement learning. arXiv preprint arXiv:1904.12901, 2019.
+Norm Ferns, Prakash Panangaden, and Doina Precup. Metrics for finite markov decision processes. In UAI, volume 4, pp. 162-169, 2004.
+Chelsea Finn, Pieter Abbeel, and Sergey Levine. Model-agnostic meta-learning for fast adaptation of deep networks. In International conference on machine learning, pp. 1126-1135. PMLR, 2017.
+Kevin Frans, Jonathan Ho, Xi Chen, Pieter Abbeel, and John Schulman. Meta learning shared hierarchies. In International Conference on Learning Representations, 2018.
+Quentin Gallouédec, Nicolas Cazin, Emmanuel Dellandrea, and Liming Chen. panda-gym: Open-source goal-conditioned environments for robotic learning. In 4th Robot Learning Workshop: Self-Supervised and Lifelong Learning@ NeurIPS 2021, 2021.
+Carles Gelada, Saurabh Kumar, Jacob Buckman, Ofir Nachum, and Marc G Bellemare. Deepmdp: Learning continuous latent space models for representation learning. In International conference on machine learning, pp. 2170-2179. PMLR, 2019.
+Mohammad Ghavamzadeh, Shie Mannor, Joelle Pineau, Aviv Tamar, et al. Bayesian reinforcement learning: A survey. Foundations and Trends® in Machine Learning, 8(5-6):359-483, 2015.
+Robert Givan, Thomas Dean, and Matthew Greig. Equivalence notions and model minimization in markov decision processes. Artificial intelligence, 147(1-2):163-223, 2003.
+Yijie Guo, Qiucheng Wu, and Honglak Lee. Learning action translator for meta reinforcement learning on sparse-reward tasks. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 36, pp. 6792-6800, 2022.
+Abhishek Gupta, Benjamin Eysenbach, Chelsea Finn, and Sergey Levine. Unsupervised meta-learning for reinforcement learning. arXiv preprint arXiv:1806.04640, 2018a.
+
+Abhishek Gupta, Russell Mendonca, YuXuan Liu, Pieter Abbeel, and Sergey Levine. Meta-reinforcement learning of structured exploration strategies. Advances in neural information processing systems, 31, 2018b.
+Tuomas Haarnoja, Aurick Zhou, Pieter Abbeel, and Sergey Levine. Soft actor-critic: Off-policy maximum entropy deep reinforcement learning with a stochastic actor. In International conference on machine learning, pp. 1861-1870. PMLR, 2018.
+Danijar Hafner, Timothy Lillicrap, Jimmy Ba, and Mohammad Norouzi. Dream to control: Learning behaviors by latent imagination. arXiv preprint arXiv:1912.01603, 2019.
+Philippe Hansen-Estruch, Amy Zhang, Ashvin Nair, Patrick Yin, and Sergey Levine. Bisimulation makes analogies in goal-conditioned reinforcement learning. In International Conference on Machine Learning, pp. 8407-8426. PMLR, 2022.
+Karol Hausman, Jost Tobias Springenberg, Ziyu Wang, Nicolas Heess, and Martin Riedmiller. Learning an embedding space for transferable robot skills. In International Conference on Learning Representations, 2018.
+Jan Humplik, Alexandre Galashov, Leonard Hasenclever, Pedro A Ortega, Yee Whye Teh, and Nicolas Heess. Meta reinforcement learning as task inference. arXiv preprint arXiv:1905.06424, 2019.
+Nan Jiang. Notes on state abstractions, 2018.
+Mete Kemertas and Tristan Aumentado-Armstrong. Towards robust bisimulation metric learning. Advances in Neural Information Processing Systems, 34:4764-4777, 2021.
+Diederik P Kingma. Auto-encoding variational bayes. arXiv preprint arXiv:1312.6114, 2013.
+Lin Lan, Zhenguo Li, Xiaohong Guan, and Pinghui Wang. Meta reinforcement learning with task embedding and shared policy. In Proceedings of the 28th International Joint Conference on Artificial Intelligence, pp. 2794-2800, 2019.
+Suyoung Lee, MyungsiK Cho, and Youngchul Sung. Parameterizing non-parametric meta-reinforcement learning tasks via subtask decomposition. Advances in Neural Information Processing Systems, 36:43356-43383, 2023.
+Evan Z Liu, Aditi Raghunathan, Percy Liang, and Chelsea Finn. Decoupling exploration and exploitation for meta-reinforcement learning without sacrifices. In International conference on machine learning, pp. 6925-6935. PMLR, 2021.
+Hao Liu and Pieter Abbeel. Behavior from the void: Unsupervised active pre-training. Advances in Neural Information Processing Systems, 34:18459-18473, 2021.
+Andrew Y Ng, Daishi Harada, and Stuart Russell. Policy invariance under reward transformations: Theory and application to reward shaping. In Icml, volume 99, pp. 278-287, 1999.
+Ian Osband, Daniel Russo, and Benjamin Van Roy. (more) efficient reinforcement learning via posterior sampling. Advances in Neural Information Processing Systems, 26, 2013.
+Deepak Pathak, Pulkit Agrawal, Alexei A Efros, and Trevor Darrell. Curiosity-driven exploration by self-supervised prediction. In International conference on machine learning, pp. 2778-2787. PMLR, 2017.
+Roberta Raileanu and Tim Rocktäschel. Ride: Rewarding impact-driven exploration for procedurally-generated environments. In International Conference on Learning Representations, 2020. URL https://openreview.net/forum?id=rkg-TJBFPB.
+Kate Rakelly, Aurick Zhou, Chelsea Finn, Sergey Levine, and Deirdre Quillen. Efficient off-policy meta-reinforcement learning via probabilistic context variables. In International conference on machine learning, pp. 5331-5340. PMLR, 2019.
+
+Krishan Rana, Ming Xu, Brendan Tidd, Michael Milford, and Niko Sunderhauf. Residual skill policies: Learning an adaptable skill-based action space for reinforcement learning for robotics. In Conference on Robot Learning, pp. 2095-2104. PMLR, 2023.
+Ramanan Sekar, Oleh Rybkin, Kostas Daniilidis, Pieter Abbeel, Danijar Hafner, and Deepak Pathak. Planning to explore via self-supervised world models. In International conference on machine learning, pp. 8583-8592. PMLR, 2020.
+Shagun Sodhani, Amy Zhang, and Joelle Pineau. Multi-task reinforcement learning with context-based representations. In International Conference on Machine Learning, pp. 9767-9779. PMLR, 2021.
+Richard S Sutton. Reinforcement learning: An introduction. A Bradford Book, 2018.
+Yee Teh, Victor Bapat, Wojciech M Czarnecki, John Quan, James Kirkpatrick, Raia Hadsell, Nicolas Heess, and Razvan Pascanu. Distral: Robust multitask reinforcement learning. Advances in neural information processing systems, 30, 2017.
+William R Thompson. On the likelihood that one unknown probability exceeds another in view of the evidence of two samples. Biometrika, 25(3-4):285-294, 1933.
+Laurens Van der Maaten and Geoffrey Hinton. Visualizing data using t-sne. Journal of machine learning research, 9(11), 2008.
+Cédric Villani et al. Optimal transport: old and new, volume 338. Springer, 2009.
+Shanchuan Wan, Yujin Tang, Yingtao Tian, and Tomoyuki Kaneko. Deir: efficient and robust exploration through discriminative-model-based episodic intrinsic rewards. In Proceedings of the Thirty-Second International Joint Conference on Artificial Intelligence, pp. 4289–4298, 2023.
+Kevin Xie, Homanga Bharadhwaj, Danijar Hafner, Animesh Garg, and Florian Shkurti. Latent skill planning for exploration and transfer. arXiv preprint arXiv:2011.13897, 2020.
+Rushuai Yang, Chenjia Bai, Hongyi Guo, Siyuan Li, Bin Zhao, Zhen Wang, Peng Liu, and Xuelong Li. Behavior contrastive learning for unsupervised skill discovery. In International Conference on Machine Learning, pp. 39183-39204. PMLR, 2023.
+Denis Yarats, Amy Zhang, Ilya Kostrikov, Brandon Amos, Joelle Pineau, and Rob Fergus. Improving sample efficiency in model-free reinforcement learning from images. In Proceedings of the aaai conference on artificial intelligence, volume 35, pp. 10674-10681, 2021.
+Haoqi Yuan and Zongqing Lu. Robust task representations for offline meta-reinforcement learning via contrastive learning. In International Conference on Machine Learning, pp. 25747-25759. PMLR, 2022.
+Amy Zhang, Rowan Thomas McAllister, Roberto Calandra, Yarin Gal, and Sergey Levine. Learning invariant representations for reinforcement learning without reconstruction. In International Conference on Learning Representations, 2021a.
+Amy Zhang, Shagun Sodhani, Khimya Khetarpal, and Joelle Pineau. Learning robust state abstractions for hidden-parameter block mdps. In International Conference on Learning Representations, 2021b.
+Jin Zhang, Jianhao Wang, Hao Hu, Tong Chen, Yingfeng Chen, Changjie Fan, and Chongjie Zhang. Metacure: Meta reinforcement learning with empowerment-driven exploration. In International Conference on Machine Learning, pp. 12600-12610. PMLR, 2021c.
+Zeyu Zheng, Junhyuk Oh, Matteo Hessel, Zhongwen Xu, Manuel Kroiss, Hado Van Hasselt, David Silver, and Satinder Singh. What can learned intrinsic rewards capture? In International Conference on Machine Learning, pp. 11436-11446. PMLR, 2020.
+Luisa Zintgraf, Kyriacos Shiarlis, Maximilian Igl, Sebastian Schulze, Yarin Gal, Katja Hofmann, and Shimon Whiteson. Varibad: A very good method for bayes-adaptive deep rl via meta-learning. arXiv preprint arXiv:1910.08348, 2019.
+
+Luisa M Zintgraf, Leo Feng, Cong Lu, Maximilian Igl, Kristian Hartikainen, Katja Hofmann, and Shimon Whiteson. Exploration in approximate hyper-state space for meta reinforcement learning. In International Conference on Machine Learning, pp. 12991-13001. PMLR, 2021.
+
+# A THEORETICAL BACKGROUND AND ANALYSIS
+
+In this section, we introduce the theoretical background and the rationale behind the design of the latent task belief metric.
+
+Definition 3 (Bisimulation Relation (Givan et al., 2003)). Given an MDP $\mathcal{M}$ , an equivalence relation $E \subseteq S \times S$ is a bisimulation relation if whenever $(s, t) \in E$ , the following properties hold, where $S_E$ is the state space $S$ partitioned into equivalence classes defined by $E$ :
+
+$$
+\forall a \in A, \mathcal {R} (s, a) = \mathcal {R} (t, a) \tag {12}
+$$
+
+$$
+\forall a \in A, \forall c \in S _ {E}, \mathcal {P} (s, a) (c) = \mathcal {P} (t, a) (c), \text {w h e r e} \mathcal {P} (s, a) (c) = \sum_ {s ^ {\prime} \in c} \mathcal {P} (s, a) \left(s ^ {\prime}\right) \tag {13}
+$$
+
+Definition 4 (Diffuse Metric). A diffuse metric measures the distance between two points by considering not only the shortest path but also the distribution of multiple paths between the points. The diffuse metric satisfies the following properties:
+
+1. Non-negativity: For any two points $x$ and $y$ , $d(x, y) \geq 0$ , and $d(x, y) = 0$ if and only if $x = y$ .
+2. Symmetry: For any two points $x$ and $y$ , $d(x, y) = d(y, x)$ .
+3. Triangle inequality: For any three points $x, y$ , and $z$ , $d(x, z) \leq d(x, y) + d(y, z)$ .
+
+These properties ensure that the diffuse metric behaves as a valid distance measure across the space.
+
+To prove that the metric $d_{\pi}(z_i,z_j)$ in Definition 2 is valid, we show it satisfies three key properties: non-negativity, symmetry, and the triangle inequality.
+
+Proof. Each term in the metric $d_{\pi}(z_i, z_j)$ is non-negative: $|R_i^\pi(s_i^+, a_i) - R_j^\pi(s_j^+, a_j)|$ is the absolute difference in rewards, which is non-negative. $W_2(T_i^\pi(s_i^+, a_i), T_j^\pi(s_j^+, a_j))$ is the Wasserstein distance, which is non-negative. $\| I_i^\pi(s_i^+, s_{i+1}^+) - I_j^\pi(s_j^+, s_{j+1}^+) \|_1$ is an $L_1$ -norm, which is non-negative. Thus, $d_{\pi}(z_i, z_j) \geq 0$ . Additionally, all three types of distances satisfy symmetry, hence $d_{\pi}(z_i, z_j) = d_{\pi}(z_j, z_i)$ .
+
+To derive the triangle inequality for latent task belief metric, we need to verify that for any three task beliefs $z_{i}, z_{j}$ , and $z_{k}$ , the following holds:
+
+$$
+d _ {\pi} \left(z _ {i}, z _ {k}\right) \leq d _ {\pi} \left(z _ {i}, z _ {j}\right) + d _ {\pi} \left(z _ {j}, z _ {k}\right)
+$$
+
+Expand the distance $d_{\pi}(z_i,z_j)$ and $d_{\pi}(z_j,z_k)$
+
+$d_{\pi}(z_i,z_j) = |R_i^\pi (s_i^+,a_i) - R_j^\pi (s_j^+,a_j)| + W_2(d_\pi)(T_i^\pi (s_i^+,a_i),T_j^\pi (s_j^+,a_j)) + \| I_i^\pi (s_i^+,s_i'^+) - I_j^\pi (s_j^+,s_j'^+)\| _1$ and similarly,
+
+$$
+d _ {\pi} \left(z _ {j}, z _ {k}\right) = \left| R _ {j} ^ {\pi} \left(s _ {j} ^ {+}, a _ {j}\right) - R _ {k} ^ {\pi} \left(s _ {k} ^ {+}, a _ {k}\right) \right| + W _ {2} \left(d _ {\pi}\right) \left(T _ {j} ^ {\pi} \left(s _ {j} ^ {+}, a _ {j}\right), T _ {k} ^ {\pi} \left(s _ {k} ^ {+}, a _ {k}\right)\right) + \left\| I _ {j} ^ {\pi} \left(s _ {j} ^ {+}, s _ {j} ^ {\prime +}\right) - I _ {k} ^ {\pi} \left(s _ {k} ^ {+}, s _ {k} ^ {\prime +}\right) \right\| _ {1}
+$$
+
+Expand the distance $d_{\pi}(z_i,z_k)$
+
+$$
+d _ {\pi} (z _ {i}, z _ {k}) = | R _ {i} ^ {\pi} (s _ {i} ^ {+}, a _ {i}) - R _ {k} ^ {\pi} (s _ {k} ^ {+}, a _ {k}) | + W _ {2} (d _ {\pi}) (T _ {i} ^ {\pi} (s _ {i} ^ {+}, a _ {i}), T _ {k} ^ {\pi} (s _ {k} ^ {+}, a _ {k})) + \| I _ {i} ^ {\pi} (s _ {i} ^ {+}, s _ {i} ^ {' +}) - I _ {k} ^ {\pi} (s _ {k} ^ {+}, s _ {k} ^ {' +}) \| _ {1}
+$$
+
+To prove the triangle inequality, we need to show that:
+
+$$
+\left| R _ {i} ^ {\pi} \left(s _ {i} ^ {+}, a _ {i}\right) - R _ {k} ^ {\pi} \left(s _ {k} ^ {+}, a _ {k}\right) \right| \leq \left| R _ {i} ^ {\pi} \left(s _ {i} ^ {+}, a _ {i}\right) - R _ {j} ^ {\pi} \left(s _ {j} ^ {+}, a _ {j}\right) \right| + \left| R _ {j} ^ {\pi} \left(s _ {j} ^ {+}, a _ {j}\right) - R _ {k} ^ {\pi} \left(s _ {k} ^ {+}, a _ {k}\right) \right|
+$$
+
+This follows directly from the standard triangle inequality for absolute values. Similarly, for the Wasserstein distance term:
+
+$$
+W _ {2} \left(d _ {\pi}\right) \left(T _ {i} ^ {\pi} \left(s _ {i} ^ {+}, a _ {i}\right), T _ {k} ^ {\pi} \left(s _ {k} ^ {+}, a _ {k}\right)\right) \leq W _ {2} \left(d _ {\pi}\right) \left(T _ {i} ^ {\pi} \left(s _ {i} ^ {+}, a _ {i}\right), T _ {j} ^ {\pi} \left(s _ {j} ^ {+}, a _ {j}\right)\right) + W _ {2} \left(d _ {\pi}\right) \left(T _ {j} ^ {\pi} \left(s _ {j} ^ {+}, a _ {j}\right), T _ {k} ^ {\pi} \left(s _ {k} ^ {+}, a _ {k}\right)\right)
+$$
+
+This holds due to the triangle inequality for the Wasserstein distance (Villani et al., 2009). Finally, for the inverse dynamics term:
+
+$$
+\| I _ {i} ^ {\pi} \left(s _ {i} ^ {+}, s _ {i} ^ {\prime +}\right) - I _ {k} ^ {\pi} \left(s _ {k} ^ {+}, s _ {k} ^ {\prime +}\right) \| _ {1} \leq \| I _ {i} ^ {\pi} \left(s _ {i} ^ {+}, s _ {i} ^ {\prime +}\right) - I _ {j} ^ {\pi} \left(s _ {j} ^ {+}, s _ {j} ^ {\prime +}\right) \| _ {1} + \| I _ {j} ^ {\pi} \left(s _ {j} ^ {+}, s _ {j} ^ {\prime +}\right) - I _ {k} ^ {\pi} \left(s _ {k} ^ {+}, s _ {k} ^ {\prime +}\right) \| _ {1}
+$$
+
+This also follows directly from the standard triangle inequality for norms. Since each of the three components satisfies the triangle inequality, we can conclude that the latent task belief metric $d_{\pi}$ also satisfies the triangle inequality:
+
+$$
+d _ {\pi} \left(z _ {i}, z _ {k}\right) \leq d _ {\pi} \left(z _ {i}, z _ {j}\right) + d _ {\pi} \left(z _ {j}, z _ {k}\right)
+$$
+
+
+
+# B THEOREMS AND PROOFS
+
+Lemma 1. Let $S^{+} = \mathcal{G}(S)\times \mathcal{Z}$ be the latent dynamics space, and $\pi$ is the improving policy. The $\mathcal{F}$ function is defined as follows:
+
+$$
+\begin{array}{l} \mathcal {F} (d, \pi) \left(z _ {i}, z _ {j}\right) = \left| R _ {i} ^ {\pi} \left(s _ {i} ^ {+}, a _ {i}\right) - R _ {j} ^ {\pi} \left(s _ {j} ^ {+}, a _ {j}\right) \right| + W _ {2} \left(d _ {\pi}\right) \left(T _ {i} ^ {\pi} \left(s _ {i} ^ {+}, a _ {i}\right), T _ {j} ^ {\pi} \left(s _ {j} ^ {+}, a _ {j}\right)\right) \\ + \left\| I _ {i} ^ {\pi} \left(s _ {i} ^ {+}, s _ {i + 1} ^ {+}\right) - I _ {j} ^ {\pi} \left(s _ {j} ^ {+}, s _ {j + 1} ^ {+}\right) \right\| _ {1}, \tag {14} \\ \end{array}
+$$
+
+where $s_i^+ = (g(s_i), z_i)$ , $s_j^+ = (g(s_j), z_j)$ are the augmented states corresponding to task $i$ and task $j$ , and $z_i, z_j$ represent different task beliefs in latent space $S^+$ . Then, there exists a unique least fixed point $\tilde{d}$ such that $\mathcal{F}(\tilde{d}) = \tilde{d}$ .
+
+Proof. To prove that $\mathcal{F}$ has a unique least fixed point, we need to establish that $\mathcal{F}$ is monotonic and continuous, ensuring the conditions for a least fixed-point result.
+
+We first show that $\mathcal{F}$ is monotonic. Suppose $d \leq d'$ , meaning $d(z_i, z_j) \leq d'(z_i, z_j)$ for all $z_i, z_j$ in a latent space. Then, by the definition of $\mathcal{F}$ , we have:
+
+$$
+W _ {2} \left(d _ {\pi}\right) \left(T _ {i} ^ {\pi} \left(s _ {i} ^ {+}, a _ {i}\right), T _ {j} ^ {\pi} \left(s _ {j} ^ {+}, a _ {j}\right)\right) \leq W _ {2} \left(d _ {\pi} ^ {\prime}\right) \left(T _ {i} ^ {\pi} \left(s _ {i} ^ {+}, a _ {i}\right), T _ {j} ^ {\pi} \left(s _ {j} ^ {+}, a _ {j}\right)\right).
+$$
+
+Since the Wasserstein distance is non-decreasing in $d$ , it follows that $\mathcal{F}(d,\pi)\leq \mathcal{F}(d^{\prime},\pi)$ . Additionally, the reward difference and inverse dynamics term remain unchanged under ordering, confirming that $\mathcal{F}$ is indeed monotonic.
+
+Next, we show that $\mathcal{F}$ is continuous with respect to the pointwise supremum of an $\omega$ -chain $\{d_n\}$ . Consider the sequence $\{d_n\}$ forming an increasing chain in $\mathcal{M}$ , meaning $d_{n}(z_{i},z_{j})$ converges to $d_{\infty}(z_i,z_j)$ . By the properties of the Wasserstein metric and $L1$ norm, limits commute with these operations, leading to:
+
+$$
+\begin{array}{l} \mathcal {F} ^ {\pi} (\bigsqcup_ {n \in \mathbb {N}} d _ {n}) (z _ {i}, z _ {j}) = | R _ {i} ^ {\pi} \left(s _ {i} ^ {+}, a _ {i}\right) - R _ {j} ^ {\pi} \left(s _ {j} ^ {+}, a _ {j}\right) | + W _ {2} (\bigsqcup_ {n \in \mathbb {N}} d _ {n}) \left(T _ {i} ^ {\pi} \left(s _ {i} ^ {+}, a _ {i}\right), T _ {j} ^ {\pi} \left(s _ {j} ^ {+}, a _ {j}\right)\right) \\ + \left\| I _ {i} ^ {\pi} \left(s _ {i} ^ {+}, s _ {i + 1} ^ {+}\right) - I _ {j} ^ {\pi} \left(s _ {j} ^ {+}, s _ {j + 1} ^ {+}\right) \right\| _ {1} \\ = \left| R _ {i} ^ {\pi} \left(s _ {i} ^ {+}, a _ {i}\right) - R _ {j} ^ {\pi} \left(s _ {j} ^ {+}, a _ {j}\right) \right| + \sup _ {n \in \mathbb {N}} W _ {2} \left(d _ {n}\right) \left(T _ {i} ^ {\pi} \left(s _ {i} ^ {+}, a _ {i}\right), T _ {j} ^ {\pi} \left(s _ {j} ^ {+}, a _ {j}\right)\right) \\ + \left\| I _ {i} ^ {\pi} \left(s _ {i} ^ {+}, s _ {i + 1} ^ {+}\right) - I _ {j} ^ {\pi} \left(s _ {j} ^ {+}, s _ {j + 1} ^ {+}\right) \right\| _ {1} \\ = \sup _ {n \in \mathbb {N}} \left(\left| R _ {i} ^ {\pi} \left(s _ {i} ^ {+}, a _ {i}\right) - R _ {j} ^ {\pi} \left(s _ {j} ^ {+}, a _ {j}\right) \right| + W _ {2} \left(d _ {n}\right) \left(T _ {i} ^ {\pi} \left(s _ {i} ^ {+}, a _ {i}\right), T _ {j} ^ {\pi} \left(s _ {j} ^ {+}, a _ {j}\right)\right) \right. \\ + \left\| I _ {i} ^ {\pi} \left(s _ {i} ^ {+}, s _ {i + 1} ^ {+}\right) - I _ {j} ^ {\pi} \left(s _ {j} ^ {+}, s _ {j + 1} ^ {+}\right) \right\| _ {1}) \\ = \left(\bigsqcup_ {n \in \mathbb {N}} \mathcal {F} ^ {\pi} \left(d _ {n}\right)\right) \left(z _ {i}, z _ {j}\right) \tag {15} \\ \end{array}
+$$
+
+This guarantees that $\mathcal{F}$ is continuous. The policy $\pi$ in the above equations is fixed. As the policy updates, it can converge to a fixed point.
+
+Since $\mathcal{M}$ is a complete partial order (ω-CPO) and $\mathcal{F}$ is a monotonic and continuous operator, the fixed-point theorem (Ferns et al., 2004) ensures the existence of a least fixed point $\tilde{d}$ such that $\mathcal{F}(\tilde{d}) = \tilde{d}$ .
+
+
+
+Theorem 1 (Value difference bound). Given two tasks $\mathcal{M}_i$ and $\mathcal{M}_j$ in the latent space with states $s_i^+, s_j^+ \in S^+$ , and let $V^\pi$ be the value function of policy $\pi$ , the value difference bound between the tasks can be given by:
+
+$$
+\left| V ^ {\pi} \left(s _ {i} ^ {+}\right) - V ^ {\pi} \left(s _ {j} ^ {+}\right) \right| \leq d _ {\pi} \left(z _ {i}, z _ {j}\right), \tag {16}
+$$
+
+where $d_{\pi}(z_i, z_j)$ is the latent task belief metric.
+
+Proof. We will use the standard value function update:
+
+$$
+V _ {n} ^ {\pi} (s) = R ^ {\pi} (s, a) + \gamma \sum_ {s ^ {\prime} \in S} P ^ {\pi} (s ^ {\prime} \mid s, a) V _ {n - 1} ^ {\pi} (s ^ {\prime})
+$$
+
+with $V_0^\pi(s) = 0$ , and our task difference metric $d_\pi(z_i, z_j)$ , and prove this by induction, showing that for all $n \in \mathbb{N}$ and states $s_i^+, s_j^+ \in S^+$ :
+
+$$
+\left| V _ {n} ^ {\pi} \left(s _ {i} ^ {+}\right) - V _ {n} ^ {\pi} \left(s _ {j} ^ {+}\right) \right| \leq d _ {\pi} ^ {n} \left(z _ {i}, z _ {j}\right).
+$$
+
+The base case holds trivially:
+
+$$
+0 = V _ {0} ^ {\pi} \left(s _ {i} ^ {+}\right) - V _ {0} ^ {\pi} \left(s _ {j} ^ {+}\right) = 0, \quad \text {s o a s s u m e t h i s h o l d s f o r} n.
+$$
+
+Now, for $n + 1$ :
+
+$$
+| V _ {n + 1} ^ {\pi} (s _ {i} ^ {+}) - V _ {n + 1} ^ {\pi} (s _ {j} ^ {+}) | = | R _ {i} ^ {\pi} (s _ {i} ^ {+}, a _ {i}) + \gamma \sum_ {s ^ {\prime} \in S ^ {+}} T _ {i} ^ {\pi} (s _ {i} ^ {\prime +} \mid s _ {i} ^ {+}, a _ {i}) V _ {n} ^ {\pi} (s _ {i} ^ {\prime +}) - R _ {j} ^ {\pi} (s _ {j} ^ {+}, a _ {j}) - \gamma \sum_ {s ^ {\prime} \in S ^ {+}} T _ {j} ^ {\pi} (s _ {j} ^ {\prime +} \mid s _ {j} ^ {+}, a _ {j}) V _ {n} ^ {\pi} (s _ {j} ^ {\prime +}) |.
+$$
+
+We decompose this into rewards and transition dynamics:
+
+$$
+\leq | R _ {i} ^ {\pi} (s _ {i} ^ {+}, a _ {i}) - R _ {j} ^ {\pi} (s _ {j} ^ {+}, a _ {j}) | + \gamma \left| \sum_ {s ^ {\prime} \in S ^ {+}} \Big (T _ {i} ^ {\pi} (s _ {i} ^ {\prime +} \mid s _ {i} ^ {+}, a _ {i}) V _ {n} ^ {\pi} (s _ {i} ^ {\prime +}) - T _ {j} ^ {\pi} (s _ {j} ^ {\prime +} \mid s _ {j} ^ {+}, a _ {j}) V _ {n} ^ {\pi} (s _ {j} ^ {\prime +}) \Big) \right|.
+$$
+
+Using the Lipschitz property of the value function, we can bound the transition dynamics difference:
+
+$$
+\leq | R _ {i} ^ {\pi} (s _ {i} ^ {+}, a _ {i}) - R _ {j} ^ {\pi} (s _ {j} ^ {+}, a _ {j}) | + \gamma W _ {2} \left(T _ {i} ^ {\pi} (s _ {i} ^ {+}, a _ {i}), T _ {j} ^ {\pi} (s _ {j} ^ {+}, a _ {j})\right) + \left\| I _ {i} ^ {\pi} (s _ {i} ^ {+}, s _ {i} ^ {\prime +}) - I _ {j} ^ {\pi} (s _ {j} ^ {+}, s _ {j} ^ {\prime +}) \right\| _ {1}.
+$$
+
+By the definition of the latent task belief metric $d_{\pi}(z_i,z_j)$ , we know:
+
+$$
+d _ {\pi} (z _ {i}, z _ {j}) = | R _ {i} ^ {\pi} (s _ {i} ^ {+}, a _ {i}) - R _ {j} ^ {\pi} (s _ {j} ^ {+}, a _ {j}) | + W _ {2} \left(T _ {i} ^ {\pi} (s _ {i} ^ {+}, a _ {i}), T _ {j} ^ {\pi} (s _ {j} ^ {+}, a _ {j})\right) + \left\| I _ {i} ^ {\pi} (s _ {i} ^ {+}, s _ {i} ^ {\prime +}) - I _ {j} ^ {\pi} (s _ {j} ^ {+}, s _ {j} ^ {\prime +}) \right\| _ {1}.
+$$
+
+We assume that $z$ contains sufficient information about the task differences at the current time step, and we disregard the effect of the discount factor $\gamma$ during the experiments. Thus, we have:
+
+$$
+| V _ {n + 1} ^ {\pi} (s _ {i} ^ {+}) - V _ {n + 1} ^ {\pi} (s _ {j} ^ {+}) | \leq d _ {\pi} ^ {n + 1} (z _ {i}, z _ {j}).
+$$
+
+Lemma 2. Let $g$ be an $(\epsilon_R, \epsilon_T, \epsilon_I)$ -approximate bisimulation abstraction of $M$ . The states in the real space are mapped to the latent dynamics space $S^+$ through $g$ . For any two states in the real space, $s_1$ and $s_2$ , if their representations in the latent space are identical, i.e., $g(s_1) = g(s_2)$ , then
+
+$$
+\left| R \left(s _ {1}, a\right) - R \left(s _ {2}, a\right) \right| \leq \epsilon_ {R},
+$$
+
+$$
+\left\| T \left(s _ {1}, a\right) - T \left(s _ {2}, a\right) \right\| _ {1} \leq \epsilon_ {T},
+$$
+
+$$
+\| I (s _ {1}, s _ {1} ^ {\prime}) - I (s _ {2}, s _ {2} ^ {\prime}) \| _ {1} \leq \epsilon_ {I}.
+$$
+
+Proof. The proof follows a similar process to Lemma 3 in (Jiang, 2018). Here, we have added a representation constraint on the inverse dynamics. $\square$
+
+Theorem 2 (Latent transfer bound). Let $Q_{\mathcal{M}_j}^*$ be the optimal $Q$ -function for task $\mathcal{M}_j$ . The difference between $Q_{\mathcal{M}_j}^*$ and the $Q$ -function of the policy $\pi$ learned from task $\mathcal{M}_i$ , applied to task $\mathcal{M}_j$ , is bounded as follows:
+
+$$
+\left\| Q _ {\mathcal {M} _ {j}} ^ {*} - \left[ Q _ {\mathcal {M} _ {i}} ^ {\pi} \right] \mathcal {M} _ {j} \right\| _ {\infty} \leq \epsilon_ {R} + \gamma \left(\epsilon_ {T} + \epsilon_ {I} + \| z _ {i} - z _ {j} \| _ {1}\right) \frac {R _ {\max }}{2 (1 - \gamma)}. \tag {17}
+$$
+
+Proof. $\| z_{i} - z_{j}\|_{1}$ is the distance between the latent task beliefs of task $\mathcal{M}_i$ and task $\mathcal{M}_j$ . In the real state space, the augmented state is still conditioned on $z_{l}$ (Section 3.3).
+
+We aim to bound the difference between the Q-function $Q_{\mathcal{M}_j}^*$ (the optimal Q-function for task $\mathcal{M}_j$ ) and $[Q_{\mathcal{M}_i}^\pi ]_{\mathcal{M}_j}$ (the Q-function for policy $\pi$ learned on task $\mathcal{M}_i$ , but applied to task $\mathcal{M}_j$ ). This difference is given by:
+
+$$
+\left\| Q _ {\mathcal {M} _ {j}} ^ {*} - \left[ Q _ {\mathcal {M} _ {i}} ^ {\pi} \right] \mathcal {M} _ {j} \right\| _ {\infty}.
+$$
+
+The Q-function for any task satisfies the Bellman equation:
+
+$$
+Q (s, a) = R (s, a) + \gamma \mathbb {E} _ {s ^ {\prime} \sim T (s, a)} \left[ \max _ {a ^ {\prime}} Q \left(s ^ {\prime}, a ^ {\prime}\right) \right].
+$$
+
+Using this, we decompose the Q-function difference:
+
+$$
+\| Q _ {\mathcal {M} _ {j}} ^ {*} - [ Q _ {\mathcal {M} _ {i}} ^ {\pi} ] _ {\mathcal {M} _ {j}} \| _ {\infty} \leq \frac {1}{1 - \gamma} \| Q _ {\mathcal {M} _ {j}} ^ {*} - \mathcal {T} _ {\mathcal {M} _ {j}} ^ {\pi} Q _ {\mathcal {M} _ {i}} ^ {\pi} \| _ {\infty}.
+$$
+
+Here, $\mathcal{T}_{\mathcal{M}_j}^\pi Q_{\mathcal{M}_i}^\pi = R_{\mathcal{M}_j}(s^+,a) + \gamma \mathbb{E}_{s'\sim T_{M_j}(s^+,a),a\sim I_{M_j}(s^+,s' + )}[Q_{\mathcal{M}_i}^\pi (s'^+,a')]$ .
+
+According to Lemma 2,
+
+$$
+\begin{array}{l} \sup _ {s _ {i} ^ {+}, s _ {j} ^ {+} \in \mathcal {S} ^ {+}, g (s _ {i}) = g (s _ {j})} \left\| T _ {\mathcal {M} _ {i}} \left(s _ {i} ^ {+}, a\right) - T _ {\mathcal {M} _ {j}} \left(s _ {j} ^ {+}, a\right) \right\| _ {1} \\ \leq \sup _ {s _ {i} ^ {+}, s _ {j} ^ {+} \in \mathcal {S} ^ {+}, g (s _ {i}) = g (s _ {j})} \left(\left\| T _ {\mathcal {M} _ {i}} (s _ {i} ^ {+}, a) - T _ {\mathcal {M} _ {i}} (s _ {j} ^ {+}, a) \right\| _ {1} + \left\| T _ {\mathcal {M} _ {i}} (s _ {j} ^ {+}, a) - T _ {\mathcal {M} _ {j}} (s _ {j} ^ {+}, a) \right\| _ {1}\right) \\ \leq \sup_{s_{i}^{+},s_{j}^{+}\in \mathcal{S}^{+},g(s_{i}) = g(s_{j})}\left\| T_{\mathcal{M}_{i}}(s_{i}^{+},a) - T_{\mathcal{M}_{i}}(s_{j}^{+},a)\right\|_{1} + \sup_{s_{i}^{+},s_{j}^{+}\in \mathcal{S}^{+},g(s_{i}) = g(s_{j})}\left\| T_{\mathcal{M}_{i}}(s_{j}^{+},a) - T_{\mathcal{M}_{j}}(s_{j}^{+},a)\right\|_{1} \\ = \epsilon_ {T} + \left\| T _ {\mathcal {M} _ {i}} \left(s _ {j} ^ {+}, a\right) - T _ {\mathcal {M} _ {j}} \left(s _ {j} ^ {+}, a\right) \right\| _ {1}, \tag {18} \\ \end{array}
+$$
+
+$$
+\begin{array}{l} \sup \quad | R _ {\mathcal {M} _ {i}} \left(s _ {i} ^ {+}, a\right) - R _ {\mathcal {M} _ {j}} \left(s _ {j} ^ {+}, a\right) | \\ s _ {i} ^ {+}, s _ {j} ^ {+} \in \mathcal {S} ^ {+}, g (s _ {i}) = g (s _ {j}) \\ \leq \sup_{s_{i}^{+},s_{j}^{+}\in \mathcal{S}^{+},g(s_{i}) = g(s_{j})}\bigl(|R_{\mathcal{M}_{i}}(s_{i}^{+},a) - R_{\mathcal{M}_{i}}(s_{j}^{+},a)| + |R_{\mathcal{M}_{i}}(s_{j}^{+},a) - R_{\mathcal{M}_{j}}(s_{j}^{+},a)|\bigr) \\ \leq \sup_{s_{i}^{+},s_{j}^{+}\in \mathcal{S}^{+},g(s_{i}) = g(s_{j})}|R_{\mathcal{M}_{i}}(s_{i}^{+},a) - R_{\mathcal{M}_{i}}(s_{j}^{+},a)| + \sup_{s_{i}^{+},s_{j}^{+}\in \mathcal{S}^{+},g(s_{i}) = g(s_{j})}|R_{\mathcal{M}_{i}}(s_{j}^{+},a) - R_{\mathcal{M}_{j}}(s_{j}^{+},a)| \\ = \epsilon_ {R} + \left| R _ {\mathcal {M} _ {i}} \left(s _ {j} ^ {+}, a\right) - R _ {\mathcal {M} _ {j}} \left(s _ {j} ^ {+}, a\right) \right|, \tag {19} \\ \end{array}
+$$
+
+$$
+\begin{array}{l} \sup _ {s _ {i} ^ {+}, s _ {j} ^ {+} \in \mathcal {S} ^ {+}, g (s _ {i}) = g (s _ {j})} \left\| I _ {\mathcal {M} _ {i}} \left(s _ {i} ^ {+}, s _ {i} ^ {' +}\right) - I _ {\mathcal {M} _ {j}} \left(s _ {j} ^ {+}, s _ {j} ^ {' +}\right) \right\| _ {1} \\ \leq \sup _ {s _ {i} ^ {+}, s _ {j} ^ {+} \in \mathcal {S} ^ {+}, g (s _ {i}) = g (s _ {j})} \left(\left\| I _ {\mathcal {M} _ {i}} (s _ {i} ^ {+}, s _ {i} ^ {' +}) - I _ {\mathcal {M} _ {i}} (s _ {j} ^ {+}, s _ {j} ^ {' +}) \right\| _ {1} + \left\| I _ {\mathcal {M} _ {i}} (s _ {j} ^ {+}, s _ {j} ^ {' +}) - I _ {\mathcal {M} _ {j}} (s _ {j} ^ {+}, s _ {j} ^ {' +}) \right\| _ {1}\right) \\ \leq \sup_{s_{i}^{+},s_{j}^{+}\in \mathcal{S}^{+},g(s_{i}) = g(s_{j})}\left\| I_{\mathcal{M}_{i}}(s_{i}^{+},s_{i}^{' + }) - I_{\mathcal{M}_{i}}(s_{j}^{+},s_{j}^{' + })\right\|_{1} + \sup_{s_{i}^{+},s_{j}^{+}\in \mathcal{S}^{+},g(s_{i}) = g(s_{j})}\left\| I_{\mathcal{M}_{i}}(s_{j}^{+},s_{j}^{' + }) - I_{\mathcal{M}_{j}}(s_{j}^{+},s_{j}^{' + })\right\|_{1} \\ = \epsilon_ {I} + \left\| I _ {\mathcal {M} _ {i}} \left(s _ {j} ^ {+}, s _ {j} ^ {' +}\right) - I _ {\mathcal {M} _ {j}} \left(s _ {j} ^ {+}, s _ {j} ^ {' +}\right) \right\| _ {1}, \tag {20} \\ \end{array}
+$$
+
+$$
+\begin{array}{l} \left\| T _ {\mathcal {M} _ {i}} \left(s _ {i} ^ {+}, a\right) - T _ {\mathcal {M} _ {j}} \left(s _ {j} ^ {+}, a\right) \right\| _ {1} + \left| R _ {\mathcal {M} _ {i}} \left(s _ {i} ^ {+}, a\right) - R _ {\mathcal {M} _ {j}} \left(s _ {j} ^ {+}, a\right) \right| + \left\| I _ {\mathcal {M} _ {i}} \left(s _ {i} ^ {+}, s _ {i} ^ {' +}\right) - I _ {\mathcal {M} _ {j}} \left(s _ {j} ^ {+}, s _ {j} ^ {' +}\right) \right\| _ {1} \\ \leq \epsilon_ {R} + \epsilon_ {T} + \epsilon_ {I} + \| z _ {i} - z _ {j} \| _ {1}, \tag {21} \\ \end{array}
+$$
+
+$$
+\begin{array}{l} \left\| Q _ {\mathcal {M} _ {j}} ^ {*} - \mathcal {T} _ {\mathcal {M} _ {j}} ^ {\pi} Q _ {\mathcal {M} _ {i}} ^ {\pi} \right\| _ {\infty} \\ = \left| \left(\mathcal {T} _ {\mathcal {M} _ {j}} Q _ {\mathcal {M} _ {j}} ^ {*}\right) \left(s _ {j} ^ {' +}, a\right) - \left(\mathcal {T} \left[ Q _ {\mathcal {M} _ {j}} ^ {*} \right] _ {\mathcal {M} _ {i}}\right) \left(s _ {i} ^ {' +}, a\right) \right| \\ = \Big | R _ {\mathcal {M} _ {j}} (s _ {j} ^ {' +}, a) + \gamma \langle T _ {\mathcal {M} _ {j}} (s _ {j} ^ {' +}, a), V _ {\mathcal {M} _ {j}} ^ {*} \rangle - R _ {\mathcal {M} _ {i}} (s _ {i} ^ {' +}, a) - \gamma \langle T _ {\mathcal {M} _ {i}} (s _ {i} ^ {' +}, a), [ V _ {\mathcal {M} _ {j}} ^ {*} ] _ {\mathcal {M} _ {i}} \rangle \Big | \\ \leq \epsilon_ {R} + \gamma \left| \langle T _ {\mathcal {M} _ {j}} (s _ {j} ^ {' +}, a), V _ {\mathcal {M} _ {j}} ^ {*} \rangle - \langle T _ {\mathcal {M} _ {i}} (s _ {i} ^ {' +}, a), [ V _ {\mathcal {M} _ {j}} ^ {*} ] _ {\mathcal {M} _ {i}} \rangle \right| \\ \leq \epsilon_ {R} + \gamma \left| \langle T _ {\mathcal {M} _ {j}} (s _ {j} ^ {' +}, a), V _ {\mathcal {M} _ {j}} ^ {*} \rangle - \langle T _ {\mathcal {M} _ {i}} (s _ {i} ^ {' +}, a), [ V _ {\mathcal {M} _ {j}} ^ {*} ] _ {\mathcal {M} _ {i}} \rangle \right| + \gamma | I _ {\mathcal {M} _ {i}} (s _ {j} ^ {+}, s _ {j} ^ {' +}) - I _ {\mathcal {M} _ {j}} (s _ {j} ^ {+}, s _ {j} ^ {' +}) | \\ \leq \epsilon_ {R} + \gamma (\epsilon_ {T} + \epsilon_ {I} + \| z _ {i} - z _ {j} \| _ {1}) \| V _ {\mathcal {M} _ {j}} ^ {*} - \frac {R _ {\mathrm {m a x}}}{2 (1 - \gamma)} \mathbf {1} \| _ {\infty} \\ \leq \epsilon_ {R} + \gamma (\epsilon_ {T} + \epsilon_ {I} + \| z _ {i} - z _ {j} \| _ {1}) \frac {R _ {\mathrm {m a x}}}{2 (1 - \gamma)}. \\ \end{array}
+$$
+
+We get the final bound:
+
+$$
+\left\| Q _ {\mathcal {M} _ {j}} ^ {*} - \left[ Q _ {\mathcal {M} _ {i}} ^ {\pi} \right] _ {\mathcal {M} _ {j}} \right\| _ {\infty} \leq \epsilon_ {R} + \gamma \left(\epsilon_ {T} + \epsilon_ {I} + \| z _ {i} - z _ {j} \| _ {1}\right) \frac {R _ {\max }}{2 (1 - \gamma)}.
+$$
+
+
+
+# C SIMBELIEF PSEUDO-CODE
+
+# Algorithm 1 SimBelief algorithm
+
+Input: Task distribution $p(M)$
+
+Initialise: context encoder $q_{\phi}$ , real envs dynamics $p_{\phi}$ , actor $\pi_{\theta}$ , critic $Q_{\omega}$ , replay buffer $\mathcal{D}$ , belief similarity learner $\psi_l$ , latent dynamics $p_{\theta}$ , state encoder $g$ , distribution offset $(\Delta \mu, \Delta \sigma)$
+
+1: while not done do
+2: Sample tasks $M_{train} = \{\mathcal{M}_i\}_{i=1}^N$ from $p(M)$
+3: Collect trajectories with $\pi_{\theta}$ and add to buffer $\mathcal{D}$ Data collection
+4: for step in SAC training steps do
+5: Sample training tasks $M_{\mathrm{train}}$ from $p(M)$
+6: Sample batches from $\mathcal{D}$
+7: Infer specific task beliefs $z_{r} \sim \psi_{r}(b_{r} \mid h) q_{\phi}(h \mid \tau_{:t})$
+8: Infer latent task beliefs $z_{l} \sim \psi_{l}(b_{l} \mid h) q_{\phi}(h \mid \tau_{t})$
+9: Permute $z_{l}^{i}$ to get $z_{l}^{j}$
+0: $s_i^+ = (g(s),z_i),s_j^+ = (g(s),z_j)$
+1: Update latent dynamics $p_{\theta}$ and state encoder $g$ using Eq. 4
+2: Update belief similarity learner $\psi_l$ using Eq. 8
+3: Update distribution offset $(\Delta \mu, \Delta \sigma)$ using Eq. 9
+4: Integrate $b_{l}^{i}$ with $b_{r}^{i}$ to obtain $b^{i}$
+5: Update $(\theta ,\omega)$ with SAC algorithm >SAC update
+6: end for
+7: for step in VAE training steps do
+8: Sample $\tau_{:T} \sim \mathcal{B}$ with trajectory length $T$
+19: Decode only the past trajectories and update $q_{\phi}$ $\psi_r$ and $p_{\phi}$ using Eq. 6 VAE update
+20: end for
+21: end while
+
+# D CONTEXT-BASED META-RL BASELINES
+
+In this section, we provide a detailed overview of the baseline methods compared in our experiments, highlighting their core methodologies and design principles.
+
+PEARL (Rakelly et al., 2019) (Probabilistic Embeddings for Actor-Critic RL) is an off-policy meta-reinforcement learning algorithm designed to enhance both meta-training sample efficiency and
+
+rapid adaptation to new tasks. By disentangling task inference from control, PEARL employs a probabilistic latent context variable that enables structured exploration and efficient posterior sampling. This design allows the policy to reason about task uncertainty and adapt quickly in sparse reward or dynamic environments. Built upon the Soft Actor-Critic framework, PEARL achieves better sample efficiency compared to on-policy meta-RL methods.
+
+MetaCURE (Zhang et al., 2021c) (Meta-RL with Efficient Uncertainty Reduction Exploration) is an off-policy meta-RL framework designed to address the challenges of sparse-reward environments. It explicitly separates exploration and exploitation by learning distinct policies for each, enhancing the efficiency of task inference and adaptation. The exploration policy is driven by an empowerment-based intrinsic reward that maximizes information gain about the task, enabling efficient collection of task-relevant experiences. MetaCURE leverages a shared probabilistic task inference mechanism, which improves sample efficiency by integrating exploration and exploitation processes. Compared to MetaCURE, SimBelief does not require knowledge of task IDs during the training phase. Instead, it learns the common structure of tasks to enable reasoning, resulting in stronger online adaptation capabilities.
+
+VariBAD (Zintgraf et al., 2019) (Variational Bayes-Adaptive Deep RL) is a meta-reinforcement learning framework that approximates Bayes-optimal policies by leveraging variational inference and latent task embeddings. The algorithm learns a posterior belief over tasks using a variational auto-encoder and conditions its policy on this belief to balance exploration and exploitation in uncertain environments. VariBAD is notable for its ability to perform structured online exploration by integrating task uncertainty directly into action selection. Unlike traditional methods that rely on computationally intractable posterior sampling or explicit planning, VariBAD offers a tractable and flexible approach to Bayes-adaptive policies.
+
+HyperX (Zintgraf et al., 2021) (Hyper-State Exploration) is a meta-reinforcement learning method that addresses sparse reward environments by leveraging exploration bonuses to meta-learn approximately Bayes-optimal task-adaptation strategies. It integrates two exploration bonuses during meta-training: (1) a bonus based on hyper-states (combining environment states and task beliefs) to encourage diverse task-exploration strategies, and (2) a reconstruction error bonus to incentivize the agent to collect data where task beliefs are inaccurate. By exploring hyper-states, HyperX efficiently gathers data for belief inference and optimally trades off exploration and exploitation in sparse or complex environments.
+
+$\mathbf{RL}^2$ (Duan et al., 2016) reformulates the reinforcement learning process as a meta-learning problem, embedding task-specific learning within the hidden state of a recurrent neural network (RNN). By leveraging a "slow" reinforcement learning algorithm to optimize the RNN's weights, $\mathrm{RL}^2$ enables the network to store and process information about task dynamics across episodes. This design allows the agent to efficiently adapt to unseen tasks by utilizing its historical trajectory data, including observations, actions, rewards, and termination flags. $\mathrm{RL}^2$ demonstrates competitive performance in solving multi-armed bandits and tabular MDPs, achieving results comparable to theoretically optimal algorithms. Additionally, its scalability to high-dimensional tasks, such as visual navigation in dynamic environments, highlights its potential as a versatile and efficient meta-RL framework.
+
+# E ENVIRONMENTS AND IMPLEMENTATION DETAILS
+
+Table 1: Adaptation length and goal settings for environments used for evaluation
+
+
Environment
# of adaptation episodes
Max steps per episode
Goal type
Goal range
Goal radius
Cheetah-Vel-Sparse
2
200
Velocity
[0,3]
0.5
Point-Robot-Sparse
2
60
Position
Semicircle with radius 1
0.3
Walker-Rand-Params
2
200
Velocity
1.5
0.5
Panda-Reach
3
50
Position
/
0.05
Panda-Push
3
50
Position
/
0.05
Panda-Pick-And-Place
3
50
Position
/
0.05
+
+
+Panda-Reach
+
+
+Panda-Push
+Figure 7: Panda-gym tasks. The Panda-Reach task involves controlling the Panda robotic arm to move its gripper to a randomly generated target position within a defined workspace, the Panda-Push task requires pushing a cube from its initial position to a randomly generated target position on a table, and the Panda-Pick-And-Place task focuses on picking up a cube and placing it at a randomly generated target location above the table.
+
+
+Panda-Pick-And-Place
+
+Table 1 summarizes key settings for the environments used in this work, including the number of adaptation episodes, the maximum number of steps allowed per episode, the type of goal (whether velocity or position-based), the goal range, and the goal radius. The specific environments are described as follows:
+
+Cheetah-Vel-Sparse. The Cheetah-Vel-Sparse environment involves controlling a half-cheetah robot to achieve and maintain a target velocity, which is randomly sampled from a uniform distribution over the range [0, 3]. At each time step, the robot receives a reward based on how closely its current velocity matches the target velocity, with a sparse reward system in place. Specifically, if the difference between the current velocity and the target velocity is within a specified tolerance (goal radius of 0.5), the robot receives a reward; otherwise, the reward is zero. Additionally, a control cost is applied to penalize large actions. The observation space includes the robot's joint positions, velocities, and body orientation, while the action space consists of motor torques controlling the robot's movements. The sparse reward encourages the agent to achieve the target velocity while minimizing control effort.
+
+Point-Robot-Sparse. The Point-Robot-Sparse environment requires a point robot to navigate towards a goal randomly placed along a unit half-circle. The goal position is sampled at the beginning of each episode, and the robot receives rewards only when it reaches within a goal radius of 0.3 units from the target. The observation space consists of the robot's current position, and the action space allows movement in both x and y directions. The reward system is sparse, meaning that rewards are only given when the robot is within the specified goal radius, encouraging the robot to explore and move efficiently towards the target. The sparse reward structure makes the task more challenging, as the robot receives feedback only when it approaches the target, requiring it to learn how to navigate effectively with limited guidance.
+
+Walker-Rand-Params. The Walker-Rand-Params environment involves controlling a bipedal walker robot, with the added complexity of randomized physical parameters such as body mass, leg strength, and joint properties. These parameters are randomized at the start of each episode, requiring the robot to adapt to various physical configurations in order to move forward. The observation space includes the walker's joint angles, positions, and velocities, while the action space consists of motor commands applied to the walker's joints. The reward system is primarily based on how closely the walker's velocity matches a target velocity of 1.5 units per time step. If the deviation from the target velocity exceeds 0.5 units, the reward is set to 0. For smaller deviations, the reward is given as 0.8 - distance from the target velocity. Additionally, a small control cost proportional to the sum of the squared motor actions is subtracted from the reward to penalize large actions.
+
+Panda-Reach. The Panda-Reach task involves controlling the Panda robotic arm's gripper to reach a target position, randomly generated within a $30\mathrm{cm} \times 30\mathrm{cm} \times 30\mathrm{cm}$ workspace. The task is considered successful when the distance between the gripper and the target is less than $5\mathrm{cm}$ . The observation space for this task includes the position and velocity of the gripper (6 coordinates), augmented by two additional vectors representing the desired goal (target position) and the achieved goal (current gripper position). The action space comprises three movement coordinates $(x, y, z)$ for controlling the gripper. The gripper remains closed throughout the task, and its movement along
+
+these axes determines the success of the task. A sparse reward function is used, with a reward of 0 if the target is reached, and -1 otherwise.
+
+Panda-Push. The Panda-Push task requires the robot to push a cube (side length of $4\mathrm{cm}$ ) placed on a table to a target position. Both the target position and the initial position of the cube are randomly generated within a $20\mathrm{cm} \times 20\mathrm{cm}$ area around the neutral position of the robot. The gripper remains closed during the task, and the objective is to move the cube to within $5\mathrm{cm}$ of the target position. The observation space includes the gripper's position and velocity (6 coordinates), along with the cube's position, orientation, and velocity (12 coordinates). The action space consists of three movement coordinates $(x, y, z)$ for controlling the gripper's movement. As in the Panda-Reach task, a sparse reward function is used, providing a reward of 0 if the task is completed successfully, and -1 otherwise.
+
+Panda-Pick-And-Place. The Panda-Pick-And-Place task involves the robot picking up a cube (side length of $4\mathrm{cm}$ ) and placing it at a target location, which is randomly generated within a $20\mathrm{cm} \times 20\mathrm{cm} \times 10\mathrm{cm}$ volume above the table. The task is completed when the cube is placed within $5\mathrm{cm}$ of the target position. The observation space for this task includes the gripper's position and velocity (6 coordinates), the cube's position, orientation, and velocity (12 coordinates), and the opening state of the gripper (1 coordinate). The action space is expanded to include three movement coordinates (x, y, z) for controlling the gripper and an additional coordinate for controlling the gripper's opening and closing. A sparse reward function is employed, rewarding the robot with 0 for completing the task and -1 otherwise (Figure 7).
+
+All experiments were conducted using an Nvidia RTX 4090 GPU, the source code is available at: https://github.com/mlzhang-pr/SimBelief.
+
+Table 2: Hyperparameter settings for SimBelief in different environments
+
+
Parameter Name
Cheetah-Vel-Sparse Walker-Rand-Params
Point-Robot-Sparse
Panda-Reach
Panda-Push Panda-Pick-And-Place
Number of Tasks
120
100
100
60
Number of Training Tasks
100
80
80
50
Number of Evaluation Tasks
20
20
20
10
Number of Episodes
2
2
3
3
Number of Iterations
1000
2000
1000
4000
RL Updates per Iteration
2000
1000
1000
1000
Batch Size
256
256
256
256
Policy Buffer Size
1e6
1e6
1e6
1e6
VAE Buffer Size
1e5
5e4
5e4
5e4
Policy Layers
[128, 128, 128]
[128, 128]
[128, 128]
[128, 128, 128]
Actor Learning Rate
0.0003
0.00007
0.00007
0.00007
Critic Learning Rate
0.0003
0.00007
0.00007
0.00007
Discount Factor (γ)
0.99
0.9
0.9
0.9
Entropy Alpha
0.2
0.01
0.01
0.01
VAE Updates per Iteration
20
25
25
25
VAE Learning Rate
0.0003
0.001
0.001
0.001
KL Weight
1.0
0.1
0.1
0.1
Task Embedding Size
10
10
5
5
+
+# F THE MECHANISM OF SIMBELIEF FOR RAPID ADAPTATION
+
+In this section, we will explain, from the perspective of task belief representation, why SimBelief can quickly converge to a near Bayes-optimal policy during the training phase and how it enables adaptation to OOD tasks within a single episode in sparse reward environments.
+
+# F.1 THE EVOLUTION OF TASK BELIEF DURING THE TRAINING PHASE
+
+During the training phase, the agent needs to explore complex environments to acquire relevant information about the current task, which is represented by the specific task belief $b_{r}$ . Other meta-RL algorithms are limited to task-specific information while ignoring the similarities between tasks. SimBelief's latent dynamics can capture the unique structure shared among tasks and distinguish these structures through the latent task belief $b_{l}$ . Specifically, during the learning process, SimBelief
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Figure 8: Visualization of different task beliefs during the training phase.
+
+Specific task belief
+
+
+Latent task belief
+
+
+Mixture distribution
+
+identifies the distribution of similar tasks via $b_{l}$ , and then uses $b_{r}$ to fit the agent to the exact specific task distribution, as illustrated in Figure 1. In Figure 8, we visualize the specific task belief, latent task belief, and their mixed Gaussian distribution. During the early and middle stages of training, the agent quickly identifies the distribution of the task being executed. After convergence, it can accurately fit the specific task distribution.
+
+# F.2 THE CORRELATION OF BELIEFS BETWEEN DIFFERENT TASKS DURING THE ADAPTATION PHASE
+
+We visualize the correlations of task beliefs across different tasks in Point-Robot-Sparse, PandaReach, Panda-Push, and Panda-Pick-Place environments. In each environment, 20 tasks are randomly generated, and the SimBelief agent's rollouts are used to extract the specific task beliefs and latent task beliefs. The cosine similarity between task beliefs across tasks is calculated, and the correlation matrices are visualized. As shown in Figure 9, specific task belief primarily captures the local information of task distributions (learning weaker correlations between tasks), while latent task belief emphasizes global information (capturing stronger inter-task correlations). This illustrates the principle behind SimBelief's ability to achieve rapid adaptation to OOD tasks in sparse reward environments: latent task belief enhances the agent's reasoning efficiency across tasks and
+
+improves the efficiency of knowledge transfer. Theorem 2 demonstrates the transferability of tasks in the latent space.
+
+# G ABLATION STUDY
+
+# G.1 LATENT DYNAMICS ABLATION
+
+To validate the effectiveness of our algorithm using the learned latent task belief, we froze the overall latent dynamics and, similar to VariBAD (Zintgraf et al., 2019), only used an external VAE for environment reconstruction. Our algorithm demonstrated significant improvements across all six tested tasks, with particularly notable gains in the more exploration-demanding tasks, Panda-Push and Panda-Pick-And-Place (Figure 10).
+
+# G.2 THE IMPACT OF INVERSE DYNAMICS ON ADAPTATION ABILITY
+
+To demonstrate the effectiveness of the inverse dynamics module in facilitating rapid learning of task similarity, we conducted ablation experiments by removing the inverse dynamics module from the latent space on Cheetah-Vel-Sparse (velocity range [4.0,5.0]) and Point-Robot-Sparse (radius=1.2) tasks. The results show that the inverse dynamics module plays a critical role in enabling the agent's reasoning and generalization on OOD tasks (Figure 11).
+
+# G.3 ABLATION STUDY ON $w_{r}$ AND $w_{l}$
+
+When combining $b_{l}$ and $b_{r}$ , we apply a mixture of Gaussians to the two beliefs. To evaluate the impact of different weights, we compared three weighting configurations on the Cheetah-Vel-Sparse task: $[w_{r}, w_{l}] = [0.5, 0.5]$ , $[w_{r}, w_{l}] = [0.25, 0.75]$ , and $[w_{r}, w_{l}] = [0.75, 0.25]$ . Among these, $[w_{r}, w_{l}] = [0.5, 0.5]$ achieved higher exploration efficiency during training and demonstrated stronger adaptability to OOD tasks (Figure 12).
+
+# G.4 ABLATION STUDY ON OFFSET $(\Delta \mu, \Delta \sigma)$
+
+During the training phase, we use the offset $(\Delta \mu, \Delta \sigma)$ applied to the latent task belief primarily to improve the stability of the algorithm's convergence in continuous control tasks (e.g., Cheetah-Vel-Sparse). However, this does not have a significant impact on the overall performance of the algorithm. Even without using the offset during training, SimBelief still outperforms other baselines (Figure 13).
+
+# H ADDITIONAL VISUALIZATIONS
+
+In this section, we provide the task belief representations of SimBelief and other baselines on the Walker-Rand-Param tasks (Figure 14), the adaptation performance on in-distribution tasks PandaPick-And-Place and Walker-Rand-Params (Figure 15), and the exploration performance on the indistribution Point-Robot-Sparse task (Figure 16).
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Figure 9: The correlation matrix of task beliefs across different tasks. Specific task belief focuses more on local information between tasks, while latent task belief captures the global characteristics of task distributions.
+
+
+
+
+
+
+
+
+
+Figure 10: Ablation study on SimBlief's latent task belief.
+
+SimBelief SimBelief w/o Latent Task Belief
+
+
+
+
+
+Figure 11: Ablation study on SimBlief's inverse dynamic module in latent space.
+
+SimBelief
+
+
+— SimBelief w/o inverse dynamic
+
+
+Figure 12: The performance of different Gaussian mixture weights on the Cheetah-Vel-Sparse task.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Figure 13: Ablation study on offset $(\Delta \mu, \Delta \sigma)$ .
+
+
+—SimBelief
+
+
+—SimBelief w/o offset
+
+
+
+
+
+
+
+
+
+
+
+
+Figure 14: The task belief representation of all experimental algorithms for 10 random indistribution Walker-Rand-Param tasks.
+
+
+
+
+
+
+Figure 15: Average test performance for the first 5 rollouts on randomly generated tasks of PandaPick-And-Place and Walker-Rand-Params.
+
+
+
+
+Figure 16: Exploration and adaptation performance in the 5 random in-distribution (radius = 1.0) tasks of Point-Robot-Sparse.
+
+
+
+
\ No newline at end of file
diff --git a/ICLR/2025/Learning Task Belief Similarity with Latent Dynamics for Meta-Reinforcement Learning/images.zip b/ICLR/2025/Learning Task Belief Similarity with Latent Dynamics for Meta-Reinforcement Learning/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..c3e1f261dec3e642fe365844c5bcaac1d38d3e5c
--- /dev/null
+++ b/ICLR/2025/Learning Task Belief Similarity with Latent Dynamics for Meta-Reinforcement Learning/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:23459e64dc02d089ec92f2aae92f7254f511da868c541ba653f530fbf1b0298f
+size 1660342
diff --git a/ICLR/2025/Learning Task Belief Similarity with Latent Dynamics for Meta-Reinforcement Learning/layout.json b/ICLR/2025/Learning Task Belief Similarity with Latent Dynamics for Meta-Reinforcement Learning/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..7c7d3e483d754aa1fe8fbec827e213b3b1cd51ab
--- /dev/null
+++ b/ICLR/2025/Learning Task Belief Similarity with Latent Dynamics for Meta-Reinforcement Learning/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7b68a9fc03e5f4debd4521a4496a6d3c5de3c9515058238ed481a7b0c2e6b58d
+size 1022192
diff --git a/ICLR/2025/Learning Video-Conditioned Policy on Unlabelled Data with Joint Embedding Predictive Transformer/b1dea670-230f-454b-9d49-98f961d52703_content_list.json b/ICLR/2025/Learning Video-Conditioned Policy on Unlabelled Data with Joint Embedding Predictive Transformer/b1dea670-230f-454b-9d49-98f961d52703_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..ef4b0fa2c4bf6ba6e431ca8a4ceee9d833188e70
--- /dev/null
+++ b/ICLR/2025/Learning Video-Conditioned Policy on Unlabelled Data with Joint Embedding Predictive Transformer/b1dea670-230f-454b-9d49-98f961d52703_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a65564806d020a6ab01d800990b4de32da8c60aa75a6eaf6e1fae6f844cacbab
+size 142608
diff --git a/ICLR/2025/Learning Video-Conditioned Policy on Unlabelled Data with Joint Embedding Predictive Transformer/b1dea670-230f-454b-9d49-98f961d52703_model.json b/ICLR/2025/Learning Video-Conditioned Policy on Unlabelled Data with Joint Embedding Predictive Transformer/b1dea670-230f-454b-9d49-98f961d52703_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..86d8d6d360a0a3e9362d1228e51d2c42e3142b54
--- /dev/null
+++ b/ICLR/2025/Learning Video-Conditioned Policy on Unlabelled Data with Joint Embedding Predictive Transformer/b1dea670-230f-454b-9d49-98f961d52703_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b5a31dca652f1e372369c2959c6f90c687b4b6c78b8230337050ad083bfbc4ab
+size 166036
diff --git a/ICLR/2025/Learning Video-Conditioned Policy on Unlabelled Data with Joint Embedding Predictive Transformer/b1dea670-230f-454b-9d49-98f961d52703_origin.pdf b/ICLR/2025/Learning Video-Conditioned Policy on Unlabelled Data with Joint Embedding Predictive Transformer/b1dea670-230f-454b-9d49-98f961d52703_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..c2429bc047eacf7aeabb87624502d3dcf48c6c5b
--- /dev/null
+++ b/ICLR/2025/Learning Video-Conditioned Policy on Unlabelled Data with Joint Embedding Predictive Transformer/b1dea670-230f-454b-9d49-98f961d52703_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0f6476e0193f1b617885e974c004511949b534289d4ec6ded1718bcf95b7b478
+size 25122854
diff --git a/ICLR/2025/Learning Video-Conditioned Policy on Unlabelled Data with Joint Embedding Predictive Transformer/full.md b/ICLR/2025/Learning Video-Conditioned Policy on Unlabelled Data with Joint Embedding Predictive Transformer/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..62a999462cbd56f5ed98cf80135f624e2011d16b
--- /dev/null
+++ b/ICLR/2025/Learning Video-Conditioned Policy on Unlabelled Data with Joint Embedding Predictive Transformer/full.md
@@ -0,0 +1,489 @@
+# LEARNING VIDEO-CONDITIONED POLICY ON UNLABELLED DATA WITH JOINT EMBEDDING PREDICTIVE TRANSFORMER
+
+Hao Luo $^{1}$ and Zongqing Lu $^{1,2*}$
+
+$^{1}$ School of Computer Science, Peking University
+
+$^{2}$ Beijing Academy of Artificial Intelligence
+
+# ABSTRACT
+
+The video-conditioned policy takes prompt videos of the desired tasks as a condition and is regarded for its prospective generalizability. Despite its promise, training a video-conditioned policy is non-trivial due to the need for abundant demonstrations. In some tasks, the expert rollouts are merely available as videos, and costly and time-consuming efforts are required to annotate action labels. To address this, we explore training video-conditioned policy on a mixture of demonstrations and unlabeled expert videos to reduce reliance on extensive manual annotation. We introduce the Joint Embedding Predictive Transformer (JEPT) to learn a video-conditioned policy through sequence modeling. JEPT is designed to jointly learn visual transition prediction and inverse dynamics. The visual transition is captured from both demonstrations and expert videos, on the basis of which the inverse dynamics learned from demonstrations is generalizable to the tasks without action labels. Experiments on a series of simulated visual control tasks evaluate that JEPT can effectively leverage the mixture dataset to learn a generalizable policy. JEPT outperforms baselines in the tasks without action-labeled data and unseen tasks. We also experimentally reveal the potential of JEPT as a simple visual priors injection approach to enhance the video-conditioned policy.
+
+
+Figure 1: Illustration of the BC and JEPT for visual-conditioned policy learning. Video-conditioned Behavior Cloning (BC) (right top) directly models the policy from the demonstrations. JEPT (bottom) decomposes imitation learning into visual transition prediction (solid arrows) and inverse dynamics learning (dashed arrows). BC is constrained to the action-labeled dataset, whereas JEPT enables visual transition prediction on unlabeled data and leverages the mixture dataset.
+
+# 1 INTRODUCTION
+
+Learning generalizable policies through multi-task imitation learning remains a considerable challenge. A generalizable policy should adapt seamlessly to novel tasks whose demonstrations are absent from the training dataset. In response to this, the video-conditioned policy (Jiang et al., 2023; Bahl et al., 2023; Shah et al., 2023) has garnered attention for its superior potential to generalize across tasks. A video-conditioned policy takes a prompt video depicting the task as a condition and executes the desired task in the dynamics encountered. Utilizing a prompt video as a policy condition exhibits a better potential for generalization compared to other forms of task specifications, such as instructions or goals given in language (Brohan et al., 2023; Padalkar & et al., 2023; Jiang et al., 2019; Yenamandra et al., 2023) or image (Bousmalis et al., 2024; Lee et al., 2020; Du et al., 2024; Nair et al., 2018) formats. The abundant information conveyed in videos offers sufficient policy guidance for novel tasks, thus circumventing the misleading caused by language ambiguities or the absence of process depiction in static images (Jain et al., 2024).
+
+Although comprehensive information in prompt videos imbues video-conditioned policy with flexibility and generalization, learning such a policy is more than trivial. Imitating the tasks depicted in prompt videos requires models capable of both temporal reasoning to understand the task and fine-grained control to replicate it. To this end, previous methods (Shah et al., 2023; Jain et al., 2024) typically conduct behavior cloning on large datasets of paired prompt videos and expert demonstrations. However, procuring expert demonstrations can be prohibitively costly and time-consuming. In the tasks where expert policies are hard to obtain, we can acquire the videos of the expert rollouts through human intervention, but these videos are devoid of action labels. Conducting behavior cloning in this scenario requires additional efforts to annotate the action labels. This raises the question: Can these expert videos1 be effectively harnessed without additional annotation, thus alleviating the data collection burden? Accordingly, we explore the possibility of training a generalizable video-conditioned policy on a dataset containing both expert demonstrations and unlabeled expert videos paired with prompt videos.
+
+Unlike methods that directly imitate expert demonstrations, behavior cloning is infeasible on the mixture dataset due to the absence of the action labels from the data samples with expert videos. Intuitively, we decompose the behavior cloning into two synergistic subtasks to fully exploit the mixture dataset of expert demonstrations and expert videos. Specifically, the process of video-conditioned imitation can be broken down into visual transition prediction and inverse dynamics learning. In the visual transition prediction, the model learns how the prompt videos should manifest in the dynamics of the tasks. In inverse dynamics learning, the model infers the actions required to realize the visual transition. By combining them, the model can learn to predict plausible future observations and then convert them into actions, enabling video-conditioned imitation.
+
+This design potentially suits the setting of mixture dataset. On the one hand, visual transition prediction is more task-specific in visual imitation learning task and can be more sufficiently learned from both expert videos and demonstrations. On the other hand, although the inverse dynamics is merely embedded in the demonstrations, it remains universally applicable across tasks. Consequently, the expert videos could enhance the learning of visual transitions, while the inverse dynamics derived from the demonstrations could generalize to guide the execution of the tasks without action labels.
+
+In light of these insights, we propose the Joint Embedding Predictive Transformer (JEPT) to encapsulate both visual transition and inverse dynamics for video-conditioned policy learning. Building on the framework of Decision Transformers (Chen et al., 2021; Lee et al., 2022; Furuta et al., 2022), we employ a video-conditioned Transformer-based architecture to perform sequence modeling, serving as the policy. As shown in Figure 1, we modify the typical behavior cloning sequence into a two-step process. First, JEPT predicts the embeddings of the next observations, thus capturing visual transition. Then, conditioned on these predicted embeddings, JEPT predicts the corresponding actions, thereby learning inverse dynamics. Additionally, we integrate the Joint Embedding Predictive Architecture (JEPA) (LeCun, 2022) into the video-conditioned Transformer. Prior works (Assran et al., 2023; Bardes et al., 2024) have demonstrated that JEPA is an effective visual representation learning approach, compressing visual inputs into predictive features. By incorporating JEPA, we aim to learn
+
+predictive visual representations of future observations, thereby improving the transfer of inverse dynamics between action-labeled and unlabeled data.
+
+To evaluate the effectiveness of JEPT, we conduct experiments on Meta-World (Yu et al., 2020a) and Robosuite (Zhu et al., 2020). In our Meta-World experiments, JEPT outperforms all the baselines regarding the average success rates of the tasks within the dataset and the unseen tasks. In the Robosuite experiments, we further validate the effectiveness of JEPT in handling tasks where there is a larger discrepancy between prompt videos and task dynamics. Additionally, we explore the potential of JEPT in injecting visual priors via adjusting the inputs of the joint embedding encoder. Our experiments on Meta-World reveal that the optical flow priors can effectively improve the performance. These results demonstrate the effectiveness of JEPT in jointly leveraging the mixture dataset of expert demonstrations and expert videos to train a generalizable video-conditioned policy.
+
+In summary, our contributions are as follows:
+
+- We propose a novel paradigm, JEPT, to learn video-conditioned policies using the dataset containing a mixture of expert videos and demonstrations.
+- We design JEPT as a joint embedding predictive architecture to learn an abstract visual representation for learning a generalizable video-conditioned policy.
+- We explore the JEPT as an approach of visual priors injection and experimentally find that JEPT can effectively leverage visual prior knowledge and achieve better performance.
+
+# 2 RELATED WORKS
+
+Video Prompt Policy Learning. As a densely informative data form, video inherently contains abundant information for task completion when used as a task description. The detailed guidance of the task completion process in the video makes it possible to learn the policy generalizable to novel tasks beyond the training dataset. Some works (Finn et al., 2017; Duan et al., 2017; Yu et al., 2018) employ meta-learning methods to adapt the policy to novel tasks depicted by prompt video, which requires the similarity between the tasks. More recent works focus on learning policy via behavior cloning on datasets of paired prompt videos and expert demonstrations. These works take the prompt videos as a condition input to the policy network and generalize to unseen tasks with corresponding prompt videos. Various auxiliary mechanisms have been explored to achieve generalizable imitation, such as inverse dynamics prediction (Dasari & Gupta, 2021), cross-painting (Chen et al., 2024), skill decomposition (Shin et al., 2024; 2023), hierarchical policy learning (Jain et al., 2023), text-aligned representation (Jang et al., 2022), contrastive video encoder (Chane-Sane et al., 2023) and observation-attentive representation (Jain et al., 2024). Some works (Sivakumar et al., 2022) design object-centric decomposition for some specific manipulation tasks and achieve generalization within the same task category. The core of these methods remains direct behavior cloning, necessitating access to action-labeled demonstration data. Recent works (Jain et al., 2024; Shah et al., 2023; Jiang et al., 2023) construct large-scale datasets for video-conditioned policy learning, evaluating that large-scale and well-aligned data can effectively improve the video-conditioned policy learning in terms of generalization and success rates. However, these works require extensive demonstration annotation efforts, which is costly and time-consuming. Our work basically follows the video-conditioned policy learning setting. Still, we explore how the video-conditioned policy can learn effectively when the dataset is a mixture of expert videos and demonstrations paired with prompt videos.
+
+Learning from Videos. Given the relative accessibility of video data compared to action-labeled demonstrations, some works explore leveraging unlabeled videos to aid in policy learning. Despite the absence of action labels, videos contain substantial decision-related knowledge due to their rich temporal information. A path for learning from videos involves self-supervised representation learning on videos, including masked autoencoder (Radosavovic et al., 2023; Xiao et al., 2022; Yang et al., 2024), temporal contrastive learning (Li et al., 2024; Nair et al., 2023), and video prediction (Seo et al., 2022; Luo et al., 2024). These methods aim to learn a compact and informative representation from videos that aid in policy learning. Other approaches focus on learning reward functions (Escontrela et al., 2023; Yu et al., 2020b; Bruce et al., 2023) or value functions (Bobrin et al., 2024; Chang et al., 2022) to expedite online policy learning. Due to the absence of action labels, these methods require fine-tuning on the downstream tasks for adaptation. Additionally, some research utilizes datasets combining videos and demonstrations, learning an inverse dynamics model (IDM) (Baker et al., 2022; Schmeckpeper et al., 2021; Zheng et al., 2023; Zhang et al., 2022; Kim
+
+
+Figure 2: The architecture of the Joint Embedding Predictive Transformer (JEPT). The model consists of a joint embedding encoder, a prompt video encoder, and a video-conditioned causal predictor. The demonstrations and the expert videos are processed as a sequence of tokens, and the causal predictor predicts the tokens causally. The visual embedding token of the next observation is predicted to learn a predictive joint embedding. We use $t' \coloneqq t - k + 1$ to denote the start of the context.
+
+et al., 2023) or a latent inverse dynamics model (Schmidt & Jiang, 2024; Ye et al., 2022; Edwards et al., 2019) on the action-labeled data. The learned IDM can be used to annotate the video data, facilitating imitation learning to derive policies. In these works, the decoupling of inverse dynamics learning and visual imitation may limit the generalizability of the IDM. In our work, however, the learning of visual transitions and inverse dynamics is conducted jointly, offering better generalization.
+
+Joint Embedding Predictive Architecture. The Joint Embedding Predictive Architecture (JEPA) (LeCun, 2022) emerges as a promising representation learning framework. JEPA optimizes a predictive loss on the encoded embeddings to learn an embedding space where the embeddings are predictable to each other. Unlike the generative architectures, JEPA optimizes the predictive loss on embeddings rather than raw data, potentially discarding extraneous information to learn more compact and meaningful representations. In order to train a JEPA, it is a common practice to construct data pairs to predict and be predicted. JEPA is a versatile framework. Various works employ different data pair construction methods to enable JEPA to learn embedding spaces tailored to specific information, enhancing tasks such as image classification (Assran et al., 2023), mask classification (Kim et al., 2024), video understanding (Bardes et al., 2024), and motion and content learning (Bardes et al., 2023). Our work integrates JEPA with sequence modeling on trajectories, providing a novel data pair construction method for JEPA. This extends JEPA to architectures akin to the Decision Transformers, aiming to learn visual representations that facilitate inverse dynamics knowledge transfer.
+
+# 3 METHODOLOGY
+
+In this section, we describe how our Joint Embedding Predictive Transformer (JEPT) works on the mixture of expert demonstrations and expert videos paired with prompt videos.
+
+# 3.1 PRELIMINARIES
+
+We aim to learn a video-conditioned policy across a set of tasks. The environment is viewed as a collection of Partially Observable Markov Decision Process variants (POMDPs), with each task represented by a POMDP variant $\mathcal{M}_i \coloneqq (\mathcal{S}, \mathcal{A}, \mathcal{P}, \mathcal{O}, \Omega, \mathcal{V}_i)$ . Here, $\mathcal{S}, \mathcal{A}, \mathcal{P}, \mathcal{O}, \Omega$ denote the state space, action space, transition function, observation space, and observation function, respectively, shared across all tasks. Specifically, $\mathcal{V}_i$ comprises a set of prompt videos depicting the task $\mathcal{M}_i$ .
+
+Video-Conditioned Policy. During interaction with the environment, the agent receives a prompt video $V \in \mathcal{V}_i$ illustrating the desired task at the start of each rollout. At each timestep $t$ , the agent obtains a visual observation $o_t \in \mathcal{O}$ , derived from the current state $s_t \in S$ via the observation function $\Omega \colon S \to \mathcal{O}$ . Upon executing an action $a_t \in \mathcal{A}$ , the environment transitions to the subsequent
+
+state $s_{t + 1}$ according to the transition function $\mathcal{P}\colon \mathcal{S}\times \mathcal{A}\times \mathcal{S}\to [0,1]$ . A video-conditioned policy generates actions based on the visual observation context and the prompt video. Formally, a video-conditioned policy is denoted as $\pi \left(a_{t}|o_{[t - k + 1:t]},V\right)$ , where $o_{[t - k + 1:t]}$ represents the visual observation context over the last $k$ timesteps.
+
+Mixture Dataset. We consider training the video-conditioned policy on a mixture dataset. Ideally, we collect three types of data for imitation learning: (1) the prompt video $V \coloneqq (v_{1}, v_{2}, \ldots, v_{N})$ specifying the task with $N$ frames, (2) the expert video $O \coloneqq (o_{0}, o_{1}, \ldots, o_{T})$ , the visual observation sequence recorded alongside a $T$ -step expert rollout of the task, and (3) the corresponding action sequence $A \coloneqq (a_{0}, a_{1}, \ldots, a_{T-1})$ executed during the same rollout. In the tasks where expert demonstrations are available, we assume access to the dataset $\mathcal{D}_{\mathrm{demo}}$ , and each data sample $d_{\mathrm{demo}} \in \mathcal{D}_{\mathrm{demo}}$ is in the form:
+
+$$
+d _ {\mathrm {d e m o}} ^ {(i)} = \left(\left(v _ {1}, v _ {2}, \dots , v _ {N}\right), \left(o _ {0}, a _ {0}, o _ {1}, a _ {1}, \dots , o _ {T}\right) \sim \pi_ {i} ^ {\star}\right). \tag {1}
+$$
+
+Here, $\pi^{\star}$ represents the expert policies, $\sim$ denotes the rollout process, and $i$ indexes the dataset sample. Conversely, in the tasks where merely videos of expert rollouts are available, we denote this dataset as $\mathcal{D}_{\mathrm{vid}}$ , and each data sample $d_{\mathrm{vid}} \in \mathcal{D}_{\mathrm{vid}}$ is in the form:
+
+$$
+d _ {\mathrm {v i d}} ^ {(i)} = \left(\left(v _ {1}, v _ {2}, \dots , v _ {N}\right), \left(o _ {0}, o _ {1}, \dots , o _ {T}\right) \sim \pi_ {i} ^ {\star}\right). \tag {2}
+$$
+
+Each data sample in $\mathcal{D}_{\mathrm{demo}}$ consists of a prompt video $V$ and a paired expert demonstration $(O, A)$ , while each data sample in $\mathcal{D}_{\mathrm{vid}}$ consists of a prompt video $V$ and a paired expert video $O$ . In summary, our objective is to train the video-conditioned policy $\pi(a_{t} | o_{[t-k+1:t]}, V)$ on a dataset mixed of these two kinds of data, denoted as $\mathcal{D}_{\mathrm{demo}} \cup \mathcal{D}_{\mathrm{vid}}$ .
+
+# 3.2 MODEL ARCHITECTURE
+
+Our JEPT employs a Transformer-based architecture to perform sequence modeling on the data, following the supervised learning paradigm of the Generalized Decision Transformers (Furuta et al., 2022). In this context, demonstrations are treated as sequences of observation and action tokens, where the sequence modeling serves as a video-conditioned policy via predicting the corresponding action tokens. To perform the sequence modeling, JEPT comprises two kinds of modules: (1) visual encoders that process the high-dimensional visual input and (2) a causal predictor aggregating the visual representations to causally predict tokens in the sequence. The comprehensive architecture of JEPT is illustrated in Figure 2, and we elucidate each component in detail below.
+
+# 3.2.1 VISUAL ENCODERS
+
+Joint Embedding Encoder. A Joint Embedding Encoder is employed to learn the visual representation for each observation. In our design, the Joint Embedding Encoder captures information from both single-timestep and contextual levels. Structurally, the Joint Embedding Encoder comprises a spatial encoder for single-timestep encoding and a bi-directional temporal encoder for contextual encoding. Formally, the Joint Embedding Encoder $\Psi_{\mathrm{obs}}$ takes as input a visual observation context and outputs the visual representations:
+
+$$
+\left(h _ {t - k + 1}, \dots , h _ {t - 1}, h _ {t}\right) = \Psi_ {\text {o b s}} \left(o _ {t - k + 1}, \dots , o _ {t - 1}, o _ {t}\right). \tag {3}
+$$
+
+Each representation $h_t$ consists of $N_{\mathrm{obs}}$ tokens. The visual embeddings of the next observation is predicted by the causal predictor and thus a joint embedding will be learned. Via learning joint embeddings predictive of the previous observation tokens, the encoder can compress the high-dimensional visual space into a low-dimensional space and discard extraneous information for effective and generalizable policy learning.
+
+Prompt Video Encoder. A Prompt Video Encoder encodes a prompt video into an embedding that serves as a reference for the policy. To specify the desired task, the embedding of the prompt video is used for an implicit understanding of task execution. Specifically, the Prompt Video Encoder comprises a per-frame encoder and a Perceiver Resampler (Jaegle et al., 2022). The Perceiver Resampler aggregates frame embeddings from the per-frame encoder to produce an overall embedding $E_{\mathrm{prt}}$ of the prompt video. Each representation $E_{\mathrm{prt}}$ consists of $N_{\mathrm{prt}}$ tokens. $E_{\mathrm{prt}}$ abstracts task-relevant attributes from videos and serves as the policy condition. Formally, the Prompt Video Encoder outputs as:
+
+$$
+E _ {\mathrm {p r t}} = \Psi_ {\mathrm {p r t}} \left(v _ {1}, v _ {2}, \dots , v _ {N}\right). \tag {4}
+$$
+
+# 3.2.2 CAUSAL PREDICTOR
+
+Connecting to the visual encoders, a video-conditioned Causal Predictor integrates the visual representations of prompt videos and observations to conduct sequence modeling on the mixture dataset.
+
+To effectively leverage the mixture dataset, the predictor is designed to conduct two subtasks of behavior cloning, visual transition prediction and inverse dynamics learning. The visual transition delineates how observations should evolve to accomplish tasks depicted by the prompt videos. Formally, visual transition prediction approximates the distribution $P\left( {{o}_{t + 1} \mid {o}_{ \leq t},V}\right)$ ,which is embedded in both ${\mathcal{D}}_{\text{demo }}$ and ${\mathcal{D}}_{\text{vid }}$ . Through visual transition prediction, the model learns to align the visual observation sequence with the prompt videos. Inverse dynamics learning approximates the distribution $P\left( {{a}_{t} \mid {o}_{t},{o}_{t + 1}}\right)$ ,reflecting the actions required to realize a given visual transition. Although the action labels are only available in ${\mathcal{D}}_{\text{demo }},P\left( {{a}_{t} \mid {o}_{t},{o}_{t + 1}}\right)$ is shared across tasks due to the shared transition function $\mathcal{P}$ . Given the challenge of predicting in the raw visual observation space, we replace ${o}_{t + 1}$ with the joint embedding of the next observation ${h}_{t + 1}$ in seek of a compressed embedding space conducive to knowledge transfer. Accordingly, the causal predictor is tasked with capturing $P\left( {{h}_{t + 1} \mid {o}_{ \leq t},V}\right)$ and $P\left( {{a}_{t} \mid {o}_{t},{h}_{t + 1}}\right)$ .
+
+The input and output sequences of the causal predictor are designed to concurrently capture the visual transition $P(h_{t+1}|o_{\leq t}, V)$ and the inverse dynamics $P(a_t|o_t, h_{t+1})$ . As shown in Figure 2, with the video representation $E_{\mathrm{pr}}$ as the prompt, the causal predictor takes the trajectory sequence $(o_{t-k+1}, h_{t-k+2}, \ldots, o_t, h_{t+1})$ as input to causally predict $(\hat{h}_{t-k+2}, \hat{a}_{t-k+1}, \ldots, \hat{h}_{t+1}, \hat{a}_t)$ respectively. Structurally, the predictor comprises a causal Transformer encoder $\Psi_{\mathrm{pred}}$ and two prediction heads, $\Gamma_{\mathrm{obs}}$ and $\Gamma_{\mathrm{act}}$ . Respectively, $\Gamma_{\mathrm{obs}}$ predicts the joint embedding of the next observation $h_{t+1}$ from the hidden states of observation tokens $o_t$ , and $\Gamma_{\mathrm{act}}$ predicts the action tokens $a_t$ from the hidden states of $h_{t+1}$ . Formally, the predictor encodes the input sequence:
+
+$$
+Z = \Psi_ {\text {p r e d}} \left(E _ {\text {p r t}}, o _ {t - k + 1}, h _ {t - k + 2}, \dots , o _ {t}, h _ {t + 1}\right) \tag {5}
+$$
+
+and predicts the tokens:
+
+$$
+\hat {h} _ {t + 1} = \Gamma_ {\text {o b s}} \left(Z _ {t} ^ {(o)}\right), \quad \hat {a} _ {t} = \Gamma_ {\text {a c t}} \left(Z _ {t + 1} ^ {(h)}\right). \tag {6}
+$$
+
+Here, $Z_{t}^{[\cdot]}$ denotes the hidden states of the corresponding tokens in $Z$ , while $\hat{h}_{t+1}$ and $\hat{a}_t$ represent the predicted tokens.
+
+In this predictive form, the causal predictor alternatively models $P(h_{t + 1}|E_{\mathrm{prt}},h_{\leq t},o_{\leq t})$ to capture the visual transition and $P(a_{t}|E_{\mathrm{prt}},o_{\leq t},h_{\leq t + 1})$ to capture the inverse dynamics. During inference, the predictor iteratively feeds the predicted joint embedding tokens back into the input sequence to predict tokens. By combining the two types of token prediction together, the causal predictor indeed works as a planning-based policy, which predicts the desired next observations first and then converts the plan into actions.
+
+# 3.3 TRAINING PROCEDURE
+
+With the designed sequence modeling form, JEPT can simultaneously capture visual transition and inverse dynamics. In this subsection, we describe how JEPT is optimized on the mixture dataset $\mathcal{D}_{\mathrm{demo}} \cup \mathcal{D}_{\mathrm{vid}}$ . Specifically, two predictive losses, the visual transition loss and the inverse dynamics loss, are optimized to predict the joint embedding tokens and the action tokens, respectively.
+
+Visual Transition Loss. For the joint embedding prediction, we compute the average $L_{2}$ distance between the predicted joint embedding and the encoded joint embedding as the visual transition loss $\mathcal{L}_{\mathrm{obs}}$ to approximate the visual transition $P(h_{t + 1}|E_{\mathrm{prt}},h_{\leq t},o_{\leq t})$ . For both $\mathcal{D}_{\mathrm{demo}}$ and $\mathcal{D}_{\mathrm{vid}}$ , the joint embedding of the next observations is available. The visual transition loss $\mathcal{L}_{\mathrm{obs}}$ is defined as:
+
+$$
+\mathcal {L} _ {\mathrm {o b s}} = \mathbb {E} _ {(V, O) \sim \mathcal {D} _ {\mathrm {d e m o}} \cup \mathcal {D} _ {\mathrm {v i d}}} \left[ \frac {1}{k} \sum_ {i = t - k + 1} ^ {t} \left\| h _ {i + 1} - \hat {h} _ {i + 1} \right\| _ {2} \right]. \tag {7}
+$$
+
+Inverse Dynamics Loss. For the action prediction, we compute the average Cross-Entropy between the predicted actions and the discrete ground-truth actions as the inverse dynamics loss $\mathcal{L}_{\mathrm{act}}$ to
+
+approximate the inverse dynamics $P\left(a_{t}|E_{\mathrm{prt}},o_{\leq t},h_{\leq t + 1}\right)$ . The ground-truth action label is merely available in $\mathcal{D}_{\mathrm{demo}}$ . The inverse dynamics loss $\mathcal{L}_{\mathrm{act}}$ is defined as:
+
+$$
+\mathcal {L} _ {\mathrm {a c t}} = \mathbb {E} _ {(V, O, A) \sim \mathcal {D} _ {\mathrm {d e m o}}} \left[ \frac {1}{k} \sum_ {i = t - k + 1} ^ {t} a _ {i} \log \hat {a} _ {i} \right]. \tag {8}
+$$
+
+Via optimizing $\mathcal{L}_{\mathrm{obs}}$ , JEPT learns to generate the visual transitions aligned with the prompt videos. By optimizing $\mathcal{L}_{\mathrm{act}}$ , JEPT learns to convert the visual transitions into actions. Formally, all the components of JEPT are trained with the loss $\mathcal{L}_{\mathrm{total}}$ :
+
+$$
+\mathcal {L} _ {\text {t o t a l}} = \mathcal {L} _ {\text {o b s}} + \mathbb {1} _ {d \in \mathcal {D} _ {\text {d e m o}}} \cdot c \cdot \mathcal {L} _ {\text {a c t}}, \tag {9}
+$$
+
+where $c$ is a hyperparameter balancing the two losses, and $\mathbb{1}_{d\in \mathcal{D}_{\mathrm{demo}}}$ is an indicator function that equals 1 when the data sample $d$ is from $\mathcal{D}_{\mathrm{demo}}$ and 0 otherwise. Considering that JEPT predicts the encoded joint embeddings instead of the raw visual observations, we adopt an alternative training procedure to separately optimize the Joint Embedding Encoder and other components in case of potential model collapse. Additionally, an exponential moving average (EMA) of the joint embedding is used when the Joint Embedding Encoder is a fixed target network to stabilize the training, which is widely adapted in the previous JEPAs (Assran et al., 2023; Bardes et al., 2024). The overall process is shown in Algorithm 1 in Appendix A.1.
+
+# 4 EXPERIEMNTS
+
+In this section, we evaluate the effectiveness of our proposed JEPT on the mixture dataset, where the model learns from action-labeled expert demonstrations and unlabeled expert videos. We evaluate JEPT and baselines on two simulated benchmarks, Meta-World (Yu et al., 2020a) and RoboSuite (Zhu et al., 2020). Both benchmarks provide a variety of robotic manipulation tasks and are widely used for evaluating visual control tasks. Via the experiments, we aim to figure out: (1) whether JEPT effectively leverages the additional $\mathcal{D}_{\mathrm{vid}}$ to improve the performance on unlabeled tasks, (2) whether the learned policy can generalize to unseen tasks, and (3) whether the joint embedding predictive mechanism in JEPT is essential for knowledge transfer.
+
+# 4.1 EXPERIMENT SETUP
+
+We first introduce the experimental setup, including the environments, dataset, metrics, and baselines used in our experiments. More details are available in Appendix B.
+
+**Environments.** We replace the language task descriptions in the environments with prompt videos recorded in the environments as task specifications. In our Meta-World experiments, a Sawyer robot arm interacts with various objects. The prompt videos are recorded with the same robot arm performing identical manipulations, which means there is no visual gap between the prompt videos and the expert videos. In our Robosuite experiments, a Panda robot arm interacts with objects. The prompt videos are recorded by performing the same manipulation with various robot arms, including Panda, Sawyer, IIWA, and UR5e, introducing a visual gap between the prompt and expert videos.
+
+Dataset. We select 18 tasks for the Meta-World task set and 15 tasks for the Robosuite task set. In order to construct the mixture dataset $\mathcal{D}_{\mathrm{demo}} \cup \mathcal{D}_{\mathrm{vid}}$ and evaluate on the unseen tasks, we split each task set into three subsets: (1) $\mathcal{T}_{\mathrm{demo}}$ : the tasks with the prompt videos and the paired expert demonstrations, (2) $\mathcal{T}_{\mathrm{vid}}$ : the tasks with the prompt videos and the paired expert videos, and (3) $\mathcal{T}_{\mathrm{unseen}}$ : the tasks with merely the prompt videos. For each task, we construct an expert policy in the vector state space and collect demonstrations or videos by running this expert policy in the rendered environments. $\mathcal{D}_{\mathrm{demo}}$ is collected from the tasks in $\mathcal{T}_{\mathrm{demo}}$ , while $\mathcal{D}_{\mathrm{vid}}$ is collected from the tasks in $\mathcal{T}_{\mathrm{vid}}$ . We also collect prompt videos for the tasks from $\mathcal{T}_{\mathrm{unseen}}$ , which are not included in the mixture dataset.
+
+Metrics. We evaluate the model performance in terms of success rate, which is the percentage of successful episodes within 50 trials with different random seeds. The success rates of the tasks from $\mathcal{T}_{\mathrm{demo}}$ , $\mathcal{T}_{\mathrm{vid}}$ and $\mathcal{T}_{\mathrm{unseen}}$ reflect the model's ability of behavior cloning, learning from videos, and one-shot imitation learning, respectively. We also calculate the average success rates of seen and unseen tasks to evaluate the overall performance.
+
+Baselines. The baselines chosen for comparison with JEPT in our setting are as follows:
+
+Table 1: Success Rates (\%) of JEPT and the baselines calculated from 50 trials for each task in Meta-World. The average success rate of the tasks in $\mathcal{T}_{\mathrm{demo}}$ and $\mathcal{T}_{\mathrm{vid}}$ are listed in the first two rows, while the individual success rate of the 4 tasks in $\mathcal{T}_{\mathrm{unseen}}$ are listed in the following rows. The average success rates of the seen and unseen tasks are listed in the last two row.
+
+
Task
Vid2Robot-D
Vid2Robot-M
BC+IDM
JEPT+MWM
DT*
JEPT
Tdemo
51.8
46.3
49.5
44.5
61.3
51.3
Tvid
4.7
28.7
8.3
21.3
13.0
31.7
Handle Press
10.0
22.0
8.0
18.0
6.0
28.0
Lever Pull
0.0
4.0
0.0
4.0
0.0
10.0
Plate Slide Back
4.0
8.0
0.0
2.0
0.0
14.0
Faucet Open
4.0
14.0
4.0
14.0
0.0
22.0
Seen Average
28.2
37.5
28.9
32.9
37.1
41.5
Unseen Average
4.5
12.0
3.0
9.5
1.5
18.5
+
+Table 2: Success Rates (\%) of the ablations calculated from 50 trials for each task in Meta-World. We train JEPT on a dataset with various task numbers for $\mathcal{D}_{\mathrm{vid}}$ collection. The average success rate of the tasks in $\mathcal{T}_{\mathrm{demo}}$ is listed in the first row, while the individual success rate of the 4 tasks in $\mathcal{T}_{\mathrm{unseen}}$ are listed in the following rows. The average success rate of the unseen tasks is calculated in the last row.
+
+
Task
None
2 Tasks
4 Tasks
6 Tasks (JEPT)
\( \mathcal{T}_{\text{demo}} \)
59.5
49.8
47.0
51.3
Handle Press
6.0
4.0
16.0
28.0
Lever Pull
0.0
0.0
4.0
10.0
Plate Slide Back
0.0
0.0
10.0
14.0
Faucet Open
0.0
2.0
20.0
22.0
Unseen Average
1.5
1.5
12.5
18.5
+
+- Vid2Robot (Jain et al., 2024): conducts behavior cloning and auxiliary representation learning on a large dataset where all the data is action-labeled. We train two variants of Vid2Robot: Vid2Robot-D refers to Vid2Robot trained merely on $\mathcal{D}_{\mathrm{demo}}$ , while Vid2Robot-M refers to Vid2Robot trained on $\mathcal{D}_{\mathrm{demo}} \cup \mathcal{D}_{\mathrm{vid}}$ with behavior cloning loss masked from $\mathcal{D}_{\mathrm{vid}}$ .
+- BC+IDM: Zheng et al. (2023); Kim et al. (2023) proposed a paradigm leveraging the mixture dataset for visual imitation learning. These methods separately learn an inverse dynamics model for action annotation and conduct behavior cloning on the mixture dataset. We accommodate these methods to video-conditioned imitation learning.
+- $\mathbf{DT}^{\star}$ : We remove the joint embedding predictive mechanism from JEPT, which indeed conducts behavior cloning with a DT variant on $\mathcal{D}_{\mathrm{demo}}$ .
+- JEPT+MMW (Seo et al., 2023): We replace the joint embedding in JEPT with the representation learned with MWM as a baseline. MWM provides a practical representation learning method for visual control tasks. Unlike the joint embedding in JEPT, MWM learns a generative Masked Auto-Encoder (MAE).
+
+# 4.2 META-WORLD EXPERIMENTS
+
+In the Meta-World experiments, we divide the 18 tasks into three subsets: $\mathcal{T}_{\mathrm{demo}}$ , $\mathcal{T}_{\mathrm{vid}}$ and $\mathcal{T}_{\mathrm{unseen}}$ , respectively containing 8, 6 and 4 tasks.
+
+Comparisons with Baselines. The task success rates of JEPT and the baselines are presented in Table 1, where JEPT surpasses all baselines in terms of average success rates. Regarding the success rates of tasks from $\mathcal{T}_{\mathrm{demo}}$ , JEPT performs slightly worse than $\mathrm{DT}^{\star}$ , similar to the gap between Vid2Robot-M and Vid2Robot-D. This may be a side-effect of the more tasks integrated into the policy, leading to a decrease in the performance of individual tasks. Notably, JEPT exhibits a significant advantage in tasks from both $\mathcal{T}_{\mathrm{vid}}$ and $\mathcal{T}_{\mathrm{unseen}}$ , indicating that JEPT effectively leverages the additional $\mathcal{D}_{\mathrm{vid}}$ to learn a more generalizable policy. Compared to Vid2Robot-M, the sequence modeling design in JEPT, extracting visual transition and inverse dynamics, might suit the mixture dataset more. Although BC+IDM also captures the inverse dynamics, JEPT integrates transition-aware representation learning with inverse dynamics learning on the mixture dataset instead of an IDM learned merely on $\mathcal{D}_{\mathrm{demo}}$ , which may capture more generalizable inverse dynamics knowledge and accounts for the better performance of JEPT. Additionally, the outperformance of JEPT over $\mathrm{DT}^{\star}$
+
+Figure 3: Visualization of the observation embeddings learned in JEPT (right), MWM (mid), and Vid2Robot-M (left). The observation embeddings are calculated in a rollout video from 'Door Close' in $\mathcal{T}_{\mathrm{demo}}$ , 'Drawer Close' in $\mathcal{T}_{\mathrm{vid}}$ , and 'Facet Open' in $\mathcal{T}_{\mathrm{unseen}}$ . We apply t-SNE on one whole embedding set and split the projected vectors according to the algorithms into three sub-figures.
+
+Door Close
+
+
+- Drawer Close
+
+
+Faucet Open
+
+and JEPT+MWM indicates that the predictive joint embedding in JEPT is more suitable for learning on mixture datasets than non-specialized or alternative embedding mechanisms.
+
+Ablation Study. We conduct an ablation study to investigate the impact of the size of $\mathcal{D}_{\mathrm{vid}}$ . As is listed in Table 2, we train JEPT on datasets where 0, 2, 4 and 6 tasks are covered in $\mathcal{D}_{\mathrm{vid}}$ . The success rates of tasks increases as the size of $\mathcal{T}_{\mathrm{vid}}$ grows. The results indicate that the additional video data is beneficial and JEPT can effectively leverage the data in $\mathcal{D}_{\mathrm{vid}}$ to learn a more generalizable video-conditioned policy. Additionally, when the $\mathcal{D}_{\mathrm{vid}}$ grows from 0 tasks to 6 tasks, the performance degradation on the seen tasks might result from a higher integration of the policy, which stands with our observation in Table 1.
+
+Visualizations. We also visualize the visual embeddings learned in JEPT, MWM, and Vid2Robot-M. Specifically, we select one task from each of $\mathcal{T}_{\mathrm{demo}}$ , $\mathcal{T}_{\mathrm{vid}}$ , and $\mathcal{T}_{\mathrm{unseen}}$ and calculate the observation embeddings of a rollout video from each task. We apply t-SNE to the whole set containing the observation embeddings of the three videos from JEPT, MWM, and Vid2Robot to project them into a shared 2D space. As shown in Figure 3, the observation embeddings from Vid2Robot-M and MWM demonstrate severe out-of-distribution phenomena among the action-labeled, unlabeled, and unseen tasks. The embeddings from JEPT exhibit greater similarity in the distribution, potentially contributing to its superior generalization.
+
+# 4.3 ROBOSUIT EXPERIMENTS
+
+We also conduct experiments on the Robosuite, which offers a variety of robotic arms for manipulation tasks. Thus we evaluate the performance of JEPT in the case where there is a visual gap between prompt videos and expert videos. We split the 15 tasks into three subsets: $\mathcal{T}_{\mathrm{demo}}$ , $\mathcal{T}_{\mathrm{vid}}$ , and $\mathcal{T}_{\mathrm{unseen}}$ , containing 6, 5, and 4 tasks, respectively. The results of these experiments are shown in Table 3. Although the success rates in these tasks are somewhat lower than those in the Meta-World experiments due to the increased difficulty, JEPT still outperforms the baselines across all tasks. Similarly to the Meta-world results, the success rate of JEPT in $\mathcal{T}_{\mathrm{demo}}$ is lower than that of $\mathrm{DT}^{\star}$ , possibly due to the integration of more tasks into a single policy. However, JEPT still exceeds all the baselines in $\mathcal{T}_{\mathrm{vid}}$ and $\mathcal{T}_{\mathrm{unseen}}$ , indicating that JEPT can effectively leverage $\mathcal{D}_{\mathrm{vid}}$ to learn more generalizable policies despite visual gaps.
+
+# 4.4 VISUAL PRIOR INJECTION
+
+Considering that visual priors learned from external datasets may enhance the generalization of the model due to their universality, we additionally explore the possibility of injecting such priors from the pre-trained models into JEPT. A directly injection approach is adopted in our practice. We simply replace the output of the single-timestep spatial encoder in the Joint Embedding Encoder with the output from the visual encoders of some pre-trained visual models. Specifically, we experiment on Meta-World with FlowFormer (Huang et al., 2022), VideoMAE-v2 (Wang et al., 2023), Dino-v2 (Oquab et al., 2024), and SAM (Kirillov et al., 2023), representing visual priors related to optical flow, video reconstruction, depth estimation, and visual segmentation, respectively. As shown
+
+Table 3: Success Rates (\%) of JEPT and the baselines calculated from 50 trials for each task in Robosuite. The average success rate of the tasks in $\mathcal{T}_{\mathrm{demo}}$ and $\mathcal{T}_{\mathrm{vid}}$ are listed in the first two rows, while the individual success rate of the 4 tasks in $\mathcal{T}_{\mathrm{unseen}}$ are listed in the following rows. 'X T' refers to the task where Panda robot arm performs the task T with the prompt video recorded with X robot arm. The average success rates of the seen and unseen tasks are listed in the last two rows.
+
+
Task
Vid2Robot-D
Vid2Robot-M
BC+IDM
JEPT+MWM
DT*
JEPT
Tdemo
26.8
20.7
26.7
24.3
36.3
27.2
Tvid
4.0
11.6
8.4
10.8
2.0
12.8
Panda Lift
4.0
16.0
6.0
22.0
8.0
38.0
Sawyer Lift
0.0
2.0
0.0
6.0
0.0
16.0
IIWA Lift
0.0
4.0
0.0
2.0
0.0
12.0
UR5e Lift
0.0
0.0
0.0
0.0
0.0
8.0
Seen Average
15.5
16.1
17.5
17.6
19.2
20.1
Unseen Average
1.0
5.5
1.5
7.5
2.0
18.5
+
+Table 4: Success Rates (\%) of JEPT injected with different visual priors calculated from 50 trials for each task in Meta-World tasks. The average success rate of the tasks in $\mathcal{T}_{\mathrm{demo}}$ and $\mathcal{T}_{\mathrm{vid}}$ are listed in the first two rows, while the individual success rate of the 4 tasks in $\mathcal{T}_{\mathrm{unseen}}$ are listed in the following rows. The average success rate of the seen and unseen tasks are calculated in the last two row.
+
+
Task
JEPT+FlowFormer
JEPT+VideoMAE-v2
JEPT+Dino-v2
JEPT+SAM
Tdemo
59.8
33.3
38.5
41.3
Tvid
35.3
11.7
9.3
19.0
Handle Press
36.0
8.0
8.0
16.0
Lever Pull
10.0
2.0
2.0
4.0
Plate Slide Back
6.0
0.0
0.0
2.0
Faucet Open
26.0
4.0
4.0
10.0
Seen Average
47.5
22.5
23.9
30.1
Unseen Average
19.5
3.5
3.5
8.0
+
+in Table 4, JEPT+FlowFormer outperforms other visual priors and surpasses the original JEPT. This indicates that the optical flow priors are beneficial for visual control tasks and can generalize across tasks. Meanwhile, JEPT can effectively incorporate the optical flow priors to enhance model performance. The poor performance of other visual priors may result from the inherent unsuitability of these priors for visual control tasks or the inadequacy of the injection approach, requiring further exploration in future work.
+
+# 5 CONCLUSION
+
+In this paper, we propose the Joint Embedding Predictive Transformer (JEPT), a novel approach for video-conditioned policy learning. JEPT is designed to learn from a mixture of expert demonstrations and expert videos paired with prompt videos, aiming to reduce the burden of action label annotation. To suit the mixture dataset, we decompose the video-conditioned policy learning into two subtasks: visual transition prediction and inverse dynamics learning. By jointly learning the two subtasks in the sequence modeling, JEPT works as a planning-based policy. We implement JEPT as an extension of the joint embedding predictive architecture to learn an abstract representation of visual observation, which aids in generalizing video-conditioned policy. Experimentally, we evaluate the effectiveness of JEPT on a series of visual control tasks. Additionally, we explore the JEPT as a simple visual priors injection approach and find it valid in injecting optical flow knowledge.
+
+Limitations. A series of experimental results of JEPT indicate that joint learning visual transition and inverse dynamics allow it to effectively leverage the mixture dataset and derive a generalizable policy. Despite this, we have also identified some limitations. Since our work focuses on solving problems within datasets containing expert videos, our method does not include additional designs for the potential visual gap between the prompt videos and task dynamics. We have validated the effectiveness of JEPT in addressing a certain level of visual gap in Robosuite environments, but more design and validation are needed to apply JEPT to one-shot visual imitation with more discrepancy prompt videos such as human videos. In this regard, our attempt at injecting visual priors could be one beneficial approach.
+
+# ACKNOWLEDGMENTS
+
+This work was supported by NSFC under Grant 62450001 and 62476008. The authors would like to thank the anonymous reviewers for their valuable comments and advice. The authors express special thanks to Xinrun Xu (v.xinrun@gmail.com) for her assistance in the figures of this work.
+
+# REFERENCES
+
+Mahmoud Assran, Quentin Duval, Ishan Misra, Piotr Bojanowski, Pascal Vincent, Michael Rabbat, Yann LeCun, and Nicolas Ballas. Self-supervised learning from images with a joint-embedding predictive architecture. In Proc. of Computer Vision and Pattern Recognition, 2023.
+Shikhar Bahl, Russell Mendonca, Lili Chen, Unnat Jain, and Deepak Pathak. Affordances from human videos as a versatile representation for robotics. In Proc. of Computer Vision and Pattern Recognition, 2023.
+Bowen Baker, Ilge Akkaya, Peter Zhokov, Joost Huizinga, Jie Tang, Adrien Ecoffet, Brandon Houghton, Raul Sampedro, and Jeff Clune. Video pretraining (vpt): Learning to act by watching unlabeled online videos. In Proc. of Neural Information Processing Systems, 2022.
+Adrien Bardes, Jean Ponce, and Yann LeCun. Mc-jepa: A joint-embedding predictive architecture for self-supervised learning of motion and content features. arXiv preprint arXiv:2307.12698, 2023.
+Adrien Bardes, Quentin Garrido, Jean Ponce, Xinlei Chen, Michael Rabbat, Yann LeCun, Mido Assran, and Nicolas Ballas. V-JEPA: Latent video prediction for visual representation learning, 2024. URL https://openreview.net/forum?id=WFYbBOEOtv.
+Maksim Bobrin, Nazar Buzun, Dmitrii Krylov, and Dmitry V Dylov. Align your intents: Offline imitation learning via optimal transport. arXiv preprint arXiv:2402.13037, 2024.
+Konstantinos Bousmalis, Giulia Vezzani, Dushyant Rao, Coline Manon Devin, Alex X. Lee, Maria Bauza Villalonga, Todor Davchev, Yuxiang Zhou, Agrim Gupta, Akhil Raju, Antoine Laurens, Claudio Fantacci, Valentin Dalibard, Martina Zambelli, Murilo Fernandes Martins, Rugile Pevceviciute, Michiel Blokzijl, Misha Denil, Nathan Batchelor, Thomas Lampe, Emilio Parisotto, Konrad Zolna, Scott Reed, Sergio Gomez Colmenarejo, Jonathan Scholz, Abbas Abdolmaleki, Oliver Groth, Jean-Baptiste Regli, Oleg Sushkov, Thomas Rothörl, Jose Enrique Chen, Yusuf Aytar, David Barker, Joy Ortiz, Martin Riedmiller, Jost Tobias Springenberg, Raia Hadsell, Francesco Nori, and Nicolas Heess. Robocat: A self-improving generalist agent for robotic manipulation. Transactions on Machine Learning Research, 2024.
+Anthony Brohan, Noah Brown, Justice Carbajal, Yevgen Chebotar, Xi Chen, Krzysztof Choromanski, Tianli Ding, Danny Driess, Avinava Dubey, Chelsea Finn, et al. Rt-2: Vision-language-action models transfer web knowledge to robotic control. arXiv preprint arXiv:2307.15818, 2023.
+Jake Bruce, Ankit Anand, Bogdan Mazoure, and Rob Fergus. Learning about progress from experts. In Proc. of International Conference on Learning Representations, 2023.
+Elliot Chane-Sane, Cordelia Schmid, and Ivan Laptev. Learning video-conditioned policies for unseen manipulation tasks. In Proc. of International Conference on Robotics and Automation, 2023.
+Matthew Chang, Arjun Gupta, and Saurabh Gupta. Learning value functions from undirected state-only experience. In Proc. of International Conference on Learning Representations, 2022.
+Lawrence Yunliang Chen, Kush Hari, Karthik Dharmarajan, Chenfeng Xu, Quan Vuong, and Ken Goldberg. Mirage: Cross-embodiment zero-shot policy transfer with cross-painting. arXiv preprint arXiv:2402.19249, 2024.
+Lili Chen, Kevin Lu, Aravind Rajeswaran, Kimin Lee, Aditya Grover, Misha Laskin, Pieter Abbeel, Aravind Srinivas, and Igor Mordatch. Decision transformer: Reinforcement learning via sequence modeling. In Proc. of Neural Information Processing Systems, 2021.
+
+Sudeep Dasari and Abhinav Gupta. Transformers for one-shot visual imitation. In Proc. of Conference on Robot Learning, 2021.
+Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, Jakob Uszkoreit, and Neil Houlsby. An image is worth 16x16 words: Transformers for image recognition at scale. In Proc. of International Conference on Learning Representations, 2021.
+Yilun Du, Sherry Yang, Bo Dai, Hanjun Dai, Ofir Nachum, Josh Tenenbaum, Dale Schuurmans, and Pieter Abbeel. Learning universal policies via text-guided video generation. In Proc. of Neural Information Processing Systems, 2024.
+Yan Duan, Marcin Andrychowicz, Bradly Stadie, OpenAI Jonathan Ho, Jonas Schneider, Ilya Sutskever, Pieter Abbeel, and Wojciech Zaremba. One-shot imitation learning. In Proc. of Neural Information Processing Systems, 2017.
+Ashley Edwards, Himanshu Sahni, Yannick Schroecker, and Charles Isbell. Imitating latent policies from observation. In Proc. of International Conference on Machine Learning, 2019.
+Alejandro Escontrela, Ademi Adeniji, Wilson Yan, Ajay Jain, Xue Bin Peng, Ken Goldberg, Youngwoon Lee, Danijar Hafner, and Pieter Abbeel. Video prediction models as rewards for reinforcement learning. In Proc. of Neural Information Processing Systems, 2023.
+Chelsea Finn, Tianhe Yu, Tianhao Zhang, Pieter Abbeel, and Sergey Levine. One-shot visual imitation learning via meta-learning. In Proc. of Conference on Robot Learning, 2017.
+Hiroki Furuta, Yutaka Matsuo, and Shixiang Shane Gu. Generalized decision transformer for offline hindsight information matching. In Proc. of International Conference on Learning Representations, 2022.
+Zhaoyang Huang, Xiaoyu Shi, Chao Zhang, Qiang Wang, Ka Chun Cheung, Hongwei Qin, Jifeng Dai, and Hongsheng Li. Flowformer: A transformer architecture for optical flow. In Proc. of European Conference on Computer Vision, 2022.
+Andrew Jaegle, Sebastian Borgeaud, Jean-Baptiste Alayrac, Carl Doersch, Catalin Ionescu, David Ding, Skanda Koppula, Daniel Zoran, Andrew Brock, Evan Shelhamer, et al. Perceiver io: A general architecture for structured inputs & outputs. In Proc. of International Conference on Learning Representations, 2022.
+Vidhi Jain, Yixin Lin, Eric Undersander, Yonatan Bisk, and Akshara Rai. Transformers are adaptable task planners. In Proc. of Conference on Robot Learning, 2023.
+Vidhi Jain, Maria Attarian, Nikhil J Joshi, Ayzaan Wahid, Danny Driess, Quan Vuong, Pannag R Sanketi, Pierre Sermanet, Stefan Welker, Christine Chan, et al. Vid2robot: End-to-end video-conditioned policy learning with cross-attention transformers. arXiv preprint arXiv:2403.12943, 2024.
+Eric Jang, Alex Irpan, Mohi Khansari, Daniel Kappler, Frederik Ebert, Corey Lynch, Sergey Levine, and Chelsea Finn. Bc-z: Zero-shot task generalization with robotic imitation learning. In Proc. of Conference on Robot Learning, 2022.
+Yiding Jiang, Shixiang Shane Gu, Kevin P Murphy, and Chelsea Finn. Language as an abstraction for hierarchical deep reinforcement learning. In Proc. of Neural Information Processing Systems, 2019.
+Yunfan Jiang, Agrim Gupta, Zichen Zhang, Guanzhi Wang, Yongqiang Dou, Yanjun Chen, Li Fei-Fei, Anima Anandkumar, Yuke Zhu, and Linxi Fan. Vima: General robot manipulation with multimodal prompts. In Proc. of International Conference on Machine Learning, 2023.
+Dong-Hee Kim, Sungduk Cho, Hyeonwoo Cho, Chanmin Park, Jinyoung Kim, and Won Hwa Kim. Joint-embedding predictive architecture for self-supervised learning of mask classification architecture. arXiv preprint arXiv:2407.10733, 2024.
+
+Moo Jin Kim, Jiajun Wu, and Chelsea Finn. Giving robots a hand: Learning generalizable manipulation with eye-in-hand human video demonstrations. arXiv preprint arXiv:2307.05959, 2023.
+Alexander Kirillov, Eric Mintun, Nikhila Ravi, Hanzi Mao, Chloe Rolland, Laura Gustafson, Tete Xiao, Spencer Whitehead, Alexander C Berg, Wan-Yen Lo, et al. Segment anything. In Proc. of International Conference on Computer Vision, 2023.
+Yann LeCun. A path towards autonomous machine intelligence version 0.9.2, 2022-06-27. 2022.
+Kuang-Huei Lee, Ofir Nachum, Mengjiao Sherry Yang, Lisa Lee, Daniel Freeman, Sergio Guadarrama, Ian Fischer, Winnie Xu, Eric Jang, Henryk Michalewski, et al. Multi-game decision transformers. In Proc. of Neural Information Processing Systems, 2022.
+Lisa Lee, Ben Eysenbach, Russ R Salakhutdinov, Shixiang Shane Gu, and Chelsea Finn. Weakly-supervised reinforcement learning for controllable behavior. In Proc. of Neural Information Processing Systems, 2020.
+Siyuan Li, Shijie Han, Yingnan Zhao, By Liang, and Peng Liu. Auxiliary reward generation with transition distance representation learning. arXiv preprint arXiv:2402.07412, 2024.
+Hao Luo, Bohan Zhou, and Zongqing Lu. Pre-trained visual dynamics representations for efficient policy learning. In Proc. of European Conference on Computer Vision, 2024.
+Ajay Mandlekar, Soroush Nasiriany, Bowen Wen, Iretiayo Akinola, Yashraj Narang, Linxi Fan, Yuke Zhu, and Dieter Fox. Mimicgen: A data generation system for scalable robot learning using human demonstrations. In Proc. of Conference on Robot Learning, 2023.
+Ashvin V Nair, Vitchyr Pong, Murtaza Dalal, Shikhar Bahl, Steven Lin, and Sergey Levine. Visual reinforcement learning with imagined goals. In Proc. of Neural Information Processing Systems, 2018.
+Suraj Nair, Aravind Rajeswaran, Vikash Kumar, Chelsea Finn, and Abhinav Gupta. R3m: A universal visual representation for robot manipulation. In Proc. of Conference on Robot Learning, 2023.
+Maxime Aquab, Timothee Darcet, Théo Moutakanni, Huy V. Vo, Marc Szafraniec, Vasil Khalidov, Pierre Fernandez, Daniel HAZIZA, Francisco Massa, Alaaeldin El-Nouby, Mido Assran, Nicolas Ballas, Wojciech Galuba, Russell Howes, Po-Yao Huang, Shang-Wen Li, Ishan Misra, Michael Rabbat, Vasu Sharma, Gabriel Synnaeve, Hu Xu, Herve Jegou, Julien Mairal, Patrick Labatut, Armand Joulin, and Piotr Bojanowski. DINOv2: Learning robust visual features without supervision. Transactions on Machine Learning Research, 2024.
+Abhishek Padalkar and et al. Open x-embodiment: Robotic learning datasets and rt-x models. arXiv preprint arXiv:2310.08864, 2023.
+Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, et al. Pytorch: An imperative style, high-performance deep learning library. In Proc. of Neural Information Processing Systems, 2019.
+Ilija Radosavovic, Tete Xiao, Stephen James, Pieter Abbeel, Jitendra Malik, and Trevor Darrell. Real-world robot learning with masked visual pre-training. In Proc. of Conference on Robot Learning, 2023.
+Karl Schmeckpeper, Oleh Rybkin, Kostas Daniilidis, Sergey Levine, and Chelsea Finn. Reinforcement learning with videos: Combining offline observations with interaction. In Proc. of Conference on Robot Learning, 2021.
+Dominik Schmidt and Minqi Jiang. Learning to act without actions. In Proc. of International Conference on Learning Representations, 2024.
+Younggyo Seo, Kimin Lee, Stephen L James, and Pieter Abbeel. Reinforcement learning with action-free pre-training from videos. In Proc. of International Conference on Machine Learning, 2022.
+
+Younggyo Seo, Danijar Hafner, Hao Liu, Fangchen Liu, Stephen James, Kimin Lee, and Pieter Abbeel. Masked world models for visual control. In Proc. of Conference on Robot Learning, 2023.
+Rutav Shah, Roberto Martin-Martin, and Yuke Zhu. MUTEX: Learning unified policies from multimodal task specifications. In Proc. of Conference on Robot Learning, 2023.
+Sangwoo Shin, Daehee Lee, Minjong Yoo, Woo Kyung Kim, and Honguk Woo. One-shot imitation in a non-stationary environment via multi-modal skill. In Proc. of International Conference on Machine Learning, 2023.
+Sangwoo Shin, Minjong Yoo, Jeongwoo Lee, and Honguk Woo. Semtra: A semantic skill translator for cross-domain zero-shot policy adaptation. In Proc. of Association for the Advancement of Artificial Intelligence, 2024.
+Aravind Sivakumar, Kenneth Shaw, and Deepak Pathak. Robotic telekinesis: Learning a robotic hand imitator by watching humans on youtube. In Proc. of Robotics: Science and Systems, 2022.
+Limin Wang, Bingkun Huang, Zhiyu Zhao, Zhan Tong, Yinan He, Yi Wang, Yali Wang, and Yu Qiao. Videomae v2: Scaling video masked autoencoders with dual masking. In Proc. of Computer Vision and Pattern Recognition, 2023.
+Tete Xiao, Ilija Radosavovic, Trevor Darrell, and Jitendra Malik. Masked visual pre-training for motor control. arXiv preprint arXiv:2203.06173, 2022.
+Jiange Yang, Bei Liu, Jianlong Fu, Bocheng Pan, Gangshan Wu, and Limin Wang. Spatiotemporal predictive pre-training for robotic motor control. arXiv preprint arXiv:2403.05304, 2024.
+Denis Yarats, Rob Fergus, Alessandro Lazaric, and Lerrel Pinto. Mastering visual continuous control: Improved data-augmented reinforcement learning. arXiv preprint arXiv:2107.09645, 2021.
+Weirui Ye, Yunsheng Zhang, Pieter Abbeel, and Yang Gao. Become a proficient player with limited data through watching pure videos. In Proc. of International Conference on Learning Representations, 2022.
+Sriram Yenamandra, Arun Ramachandran, Karmesh Yadav, Austin S. Wang, Mukul Khanna, Theophile Gervet, Tsung-Yen Yang, Vidhi Jain, Alexander Clegg, John M. Turner, Zsolt Kira, Manolis Savva, Angel X. Chang, Devendra Singh Chaplot, Dhruv Batra, Roozbeh Mottaghi, Yonatan Bisk, and Chris Paxton. Homerobot: Open-vocabulary mobile manipulation. In Proc. of Conference on Robot Learning, 2023.
+Tianhe Yu, Pieter Abbeel, Sergey Levine, and Chelsea Finn. One-shot hierarchical imitation learning of compound visuomotor tasks. arXiv preprint arXiv:1810.11043, 2018.
+Tianhe Yu, Deirdre Quillen, Zhanpeng He, Ryan Julian, Karol Hausman, Chelsea Finn, and Sergey Levine. Meta-world: A benchmark and evaluation for multi-task and meta reinforcement learning. In Proc. of Conference on Robot Learning, 2020a.
+Xingrui Yu, Yueming Lyu, and Ivor Tsang. Intrinsic reward driven imitation learning via generative model. In Proc. of International Conference on Machine Learning, 2020b.
+Qihang Zhang, Zhenghao Peng, and Bolei Zhou. Learning to drive by watching youtube videos: Action-conditioned contrastive policy pretraining. In Proc. of European Conference on Computer Vision, 2022.
+Qinqing Zheng, Mikael Henaff, Brandon Amos, and Aditya Grover. Semi-supervised offline reinforcement learning with action-free trajectories. In Proc. of International Conference on Machine Learning, 2023.
+Yuke Zhu, Josiah Wong, Ajay Mandlekar, Roberto Martin-Martin, Abhishek Joshi, Soroush Nasiriany, and Yifeng Zhu. robosuite: A modular simulation framework and benchmark for robot learning. arXiv preprint arXiv:2009.12293, 2020.
+
+# A IMPLEMENTATIONS
+
+We build our framework based on PyTorch (Paszke et al., 2019) and use the implementations of Transformer modules from the codebase x-transformers2. We use the 3090 Nvidia GPU and i9-12900K CPU for the JEPT training and testing. It takes around 10 hours to train JEPT on the Meta-World dataset and 16.5 hours to train JEPT on the Robosuite dataset. The details of the implementations are as follows.
+
+# A.1 ALGORITHM
+
+Algorithm 1 Joint Embedding Predictive Transformer
+1: Input: Mixture dataset $\mathcal{D}_{\mathrm{demo}} \cup \mathcal{D}_{\mathrm{vid}}$
+2: Initialize: JEPT components $\Psi_{\mathrm{obs}}, \Psi_{\mathrm{prt}}, \Psi_{\mathrm{pred}}, \Gamma_{\mathrm{obs}}, \Gamma_{\mathrm{act}}$ with random weights
+3: for $e = 1, 2, \ldots$ do
+4: for $d \in \mathcal{D}_{\mathrm{demo}} \cup \mathcal{D}_{\mathrm{vid}}$ do
+5: Encode $V$ and $O$ into $E_{\mathrm{prt}}$ and $(h_{t-k+1}, \ldots, h_t)$ as Equations 3 and 4
+6: Predict the joint embedding tokens and action tokens as Equations 5 and 6
+7: Compute $\mathcal{L}_{\mathrm{total}}$ as Equation 9
+8: Update $\Psi_{\mathrm{obs}}$ with $\mathcal{L}_{\mathrm{total}}$
+9: end for
+10: for $d \in \mathcal{D}_{\mathrm{demo}} \cup \mathcal{D}_{\mathrm{vid}}$ do
+11: Repeat steps in lines 5-7
+12: Update $\Psi_{\mathrm{prt}}, \Psi_{\mathrm{pred}}, \Gamma_{\mathrm{obs}}, \Gamma_{\mathrm{act}}$ with $\mathcal{L}_{\mathrm{total}}$
+13: end for
+14: end for
+
+# A.2 MODEL DETAILS
+
+Joint Embedding Encoder. To encode visual observations, we utilize a pre-trained ViT (Dosovitskiy et al., 2021) variant, 'vit_base_batch16_224', as the spatial visual encoder. To effectively compress the tokens of visual observations, a Perceiver-IO (Jaegle et al., 2022) with a fixed number of learnable queries is employed to compress the visual tokens of single-frame observations. The ViT weights remain fixed during training, allowing the Perceiver-IO to function as an adaptor network. The compressed visual tokens are concatenated with representations of the self-state vector produced by an MLP to form the observation tokens. A bi-directional Transformer temporal encoder is used to encode the observation tokens with context awareness. For visual prior injection approaches in Section 4.4, we simply replace the outputs of the fixed ViT with the embedding outputs of visual encoders pre-trained to capture visual priors. Notably, there are subtle distinctions in input processing among these four visual prior injections. For FlowFormer, observation tokens at each temporal step are computed from adjacent frames. VideoMAE v2 replicates all video frames excluding the first to preserve the original temporal length. Dino v2 and SAM v2 both utilize single-frame images as inputs. Moreover, these models diverge in architectural design, pre-training datasets, and methodological approaches. Despite these variations, our visual prior experiments do not aim to comparatively evaluate visual prior performance. Instead, our objective is to ascertain whether a joint embedding predictive of these representations with visual priors can further compress visual information and enhance generalization.
+
+Prompt Video Encoder. To encode the prompt videos, we utilize the same ViT variant as the Joint Embedding Encoder for encoding the visual tokens. Two cascaded Perceiver-IOs are employed to aggregate these tokens. The first Perceiver compresses the tokens from a single frame, while the second compresses the flattened tokens from the first layer to form the prompt video embeddings. During training, only the Perceiver-IOs are trained, the ViT weights remain fixed.
+
+Video-Conditioned Causal Predictor. To process observations in expert videos and demonstrations, we employ the same structure as the Joint Embedding Encoder to encode single-timestep observations. Notably, the single-timestep encoder shares the weights in our implementation, and the EMAs are
+
+calculated when producing the target joint embeddings. A causal Transformer is utilized, taking as input the sequence of all compressed tokens. A causal mask, where tokens attend only to preceding tokens and tokens from the same observations, ensures prediction causality. To predict the joint embedding tokens and action tokens, two prediction heads are applied to the causal Transformer's output. Specifically, an MLP predicts the joint embedding tokens, while a cross-attention Transformer with learnable action queries for each action dimension predicts the action tokens.
+
+# A.3 BASELINE ADAPTATION
+
+Vid2Robot We implement Vid2Robot following the original paper (Jain et al., 2024), as no codebase is released. Similar to our structure, a spatial visual encoder followed by a Perceiver processes the spatiotemporal information of videos and observation sequences. We use the same ViT variant as the Joint Embedding Encoder to encode the visual tokens of the prompt videos and observations, ensuring consistency in comparison. We align the Perceiver structure and the action prediction head in Vid2Robot with our framework. Since no text instruction is provided in our setting, we remove the auxiliary text-video contrastive loss in Vid2Robot.
+
+MWM We adapt the released codebase of MWM (Seo et al., 2023) to our setting. The only difference is the absence of a reward signal in our setting; thus, we remove the reward prediction loss.
+
+$\mathbf{DT}^*$ We adapt our implementation of JEPT to perform sequence modeling in a typical behavior cloning sequence $P(a_{t}|E_{\mathrm{prt}},o_{1},a_{1},\ldots ,o_{t})$
+
+# A.4 HYPERPARAMETERS
+
+In our implementation, the Perceiver-IO structure is shared across the Joint Embedding Encoder, the Prompt Video Encoder, and the Video-Conditioned Causal Predictor. The hyperparameters for the Perceiver-IOs and other modules are detailed in Table 5. During training, $E_{\mathrm{prt}}$ is initially excluded in the causal predictor as a warm-up strategy. Furthermore, the hyperparameters for the training process are listed in Table 6.
+
+# B ENVIRONMENT SETUP DETAILS
+
+# B.1 ENVIRONMENT
+
+Meta-World Environment. In the Meta-World environment, a Sawyer robot arm is directed to execute a variety of manipulation tasks. We employ 18 tasks originally from Meta-World to establish our video prompt visual control framework. As shown in Figure 4, for each task, a video of the identical manipulation in the same environment, albeit with a different random seed, is provided as the task prompt, while the original task descriptions are omitted. We utilize the customized camera perspective for visual observation and resize the image from the camera to $224 \times 224$ pixels. In addition to the visual observation, we assume the agent is aware of its current self-state, which encompasses the joint angles, joint velocities, and end-effector position. A vector representing these self-state details is supplied alongside the visual camera image to form the observation. For action prediction using Cross-Entropy, the original continuous action space is discretized into 7 bins for each action dimension. During the rollout of each task, the episode is truncated after 250 steps, with an action repeat of 2.
+
+Robosuite Environment. In the Robosuite environment, we select tasks involving a Panda robot arm performing various manipulation tasks. We employ two tasks originally from the Robosuite simulator and four tasks implemented by MimicGen (Mandlekar et al., 2023) within the Robosuite framework to create our video prompt visual task. As illustrated in Figure 4, a video depicting a specific robot arm completing the same manipulation serves as the task prompt. The robot in these prompt videos may be a Panda, Sawyer, IIWA, or UR5e, indicating a potential visual gap between the prompt videos and the task dynamics. Two tasks are considered distinct if the robot arm in the prompt videos or the desired manipulation differs. Consequently, we construct 15 tasks from the 6 tasks of MimicGen. We utilize the 'agentview_image' attribute of the state as the visual image. Similar to the Meta-World environment, the visual image is resized to $224 \times 224$ pixels and accompanied by the self-state vector. The continuous action space is discretized into 7 bins per dimension. During each
+
+Table 5: The hyperparameters of the JEPT Modules.
+
+
Single-Frame Perceiver-IO
num latents
64
num queries
8
embedding channels
512
attention heads
8
encoder cross-attention layers
1
encoder self-attention layers
2
decoder cross-attention layers
1
attention feedforward dim
1024
attention dropout
0.1
Temproal Perceiver-IO
num latents
128
num queries
32
embedding channels
512
attention heads
8
encoder cross-attention layers
1
encoder self-attention layers
2
decoder cross-attention layers
1
attention feedforward dim
892
attention dropout
0.08
Bi-directional Temporal Encoder
joint embedding dim
256
attention layers
2
attention heads
8
attention dim
512
attention feedforward dim
1024
attention dropout
0.1
attention activation
GeLU
Causal Transformer
Max prompt length
250
prompt tokens num Nprt
32
obs tokens num Nobs
9
context length k
8
embedding channels
584
attention heads
8
attention layers
4
attention feedforward dim
1168
attention dropout
0.05
Attention Activation
GeLU
Action Prediction Head Γact
Cross-attention layers
2
Cross-attention heads
4
Cross-attention dim
256
Feedforward dim
512
activation
GeLU
Joint Embedding Prediction Head Γobs
layers
3
hidden dim
256
activation
LeakyRelu
+
+Table 6: The hyperparameters of the training process.
+
+
Training Hyperparameters
Value
Minibatch size
90
Optimizer
AdamW
Joint Embedding Encoder Learning Rate
3e-5
Prompt Video Encoder Learning Rate
7e-5
Video-Conditioned Causal Predictor Learning Rate
7e-5
Weight Decay
1e-4
Max Gradient Clip
1.0
Warm Up Steps
200
Loss Weight c
8
+
+
+Figure 4: The video prompt task setting of the Meta-World and Robosuite. In Meta-World, the task specification is a video of the same manipulation in the same environment with different random seed. In Robosuite, the task specification is a video of a certain robot arm executing the same manipulation, and the visual gap between the prompt videos and the task dynamics is likely.
+
+task rollout, the episode is truncated after 200 steps, although there is no restriction on episode length within the Robosuite environment.
+
+# B.2 DATASET
+
+Task Subset. In both Meta-World and Robosuite, tasks are manually categorized into three subsets: those with expert demonstrations and prompt videos, $\mathcal{T}_{\mathrm{demo}}$ ; those with expert videos and prompt videos, $\mathcal{T}_{\mathrm{vid}}$ ; and those with only prompt videos, $\mathcal{T}_{\mathrm{unseen}}$ . The specific task divisions are detailed in Table 7 and 8. For Meta-World experiments, 500 expert videos/demonstrations are collected by executing expert policies on tasks from $\mathcal{T}_{\mathrm{demo}} \cup \mathcal{T}_{\mathrm{vid}}$ . For Robosuite experiments, 1000 expert videos/demonstrations are gathered for each task in the dataset. For the tasks in $\mathcal{T}_{\mathrm{unseen}}$ , 10 prompt videos are sampled for 5 trials with different random seeds on each to assess the one-shot imitation capability of the learned policy. In the ablation study of task numbers covered in $\mathcal{T}_{\mathrm{vid}}$ , we use the 'Button Press Topdown Wall' and 'Door Open' tasks for the 2-task variant. Additionally, we include the 'Reach Wall' and 'Drawer Close' tasks for the 4-task variant.
+
+Expert Policy. To construct the data used for training and evaluation, we develop expert policies for individual tasks within the vector state space, collecting both prompt videos and corresponding expert demonstrations. Initially, expert policies are formulated in the continuous action space. In MetaWorld, policies are trained using PPO for each task, utilizing the vector state and reward function provided by the environment. We integrate rule-based policies from the GitHub repository3 with PPO policies to form expert policies, executing rule-based policies with a probability of 0.85 and PPO policies with a probability of 0.15 to ensure diversity. For tasks in Robosuite, expert policies are learned through behavior cloning on the expert demonstrations from MimicGen. Additionally, expert policies for 'Stack' and 'Lift' tasks are trained using DrQ-v2 (Yarats et al., 2021) with no demonstrations available in Mimicgen. To collect expert rollouts in the discrete action space, continuous expert policies are used to generate actions, which are then replaced with the nearest discrete actions in the bins for interaction with the environment. A performance drop is noted in the discrete action space compared to the continuous action space. Specifically, the average success rate for expert policies in
+
+Table 7: The division of tasks in our Meta-World experiments.
+
+
Task Subset
Tasks
Tdemo
Button Press, Button Press Topdown, Handle Pull, Reach, Door Close, Window Open, Plate Slide, Faucet Close
Tvid
Button Press Topdown Wall, Door Open, Reach Wall,Drawer Close, Plate Slide Back Side, Window Close
Tunseen
Handle Press, Lever Pull, Plate Slide Back, Faucet Open
+
+Table 8: The division of tasks in our Robosuite experiments. 'X T' refers to the task where the Panda robot arm performs the task T with the prompt video recorded with X robot arm.
+
+
Task Subset
Tasks
Tdemo
Panda Stack, Sawyer Stack, IIWA Stack, UR5e Stack, Three Pieces Assembly, Coffee
Tvid
Panda Square, Sawyer Square, IIWA Square, UR5e Square, Stack Three
Tunseen
Panda Lift, Sawyer Lift, IIWA Lift, UR5e Lift
+
+Meta-World decreases from $91.5\%$ to $85.3\%$ post-discretization, and in Robosuite, it declines from $78.3\%$ to $69.7\%$ . For prompt video collection, we record visual observation sequences of the expert rollouts, while for expert videos or demonstrations, both visual observation sequences and self-state vector sequences are recorded.
+
+# C ADDITIONAL EXPERIMENTS
+
+# C.1 VISUAL PRIOR INJECTION ON ROBOSUITE
+
+In order to supplement the effects of various visual priors on JEPT in different environments, we conduct experiments on visual prior injection within the RoboSuite environment. The implementation of visual prior injection is consistent with the experiments conducted in Meta-World. The results, as shown in Table 9, indicate that the performance of JEPT can be slightly enhanced by utilizing priors based on optical flow to process the visual inputs. This suggests that optical flow might be a suitable prior for enhancing JEPT's performance across different environments. However, all of these visual encoders have been trained on large datasets across numerous visual tasks and possess certain generalizable priors for handling visual inputs. Our experiments with visual priors aim to ascertain whether a joint embedding predictive of these representations, when combined with visual priors, can further compress visual information and improve generalization. From the perspective of introducing more generalizable visual priors, these different priors for processing visual inputs should be logical. However, the success of learning predictive joint embeddings of these priors and effectively enhancing performance may depend on selecting more refined injection methods and better training designs. We merely highlight JEPT's potential in this domain, and further detailed research on other visual prior injections is left for future exploration.
+
+# C.2 ADDITIONAL ABLATIONS
+
+We conduct additional ablation studies to explore the influence of the hyperparameter $c$ in JEPT. The value of $c$ is varied within the set $\{0.3, 1, 5, 8, 12\}$ , and the performance of JEPT is assessed in Meta-World. The results are presented in Table 10. When $c$ remains within a reasonable range, JEPT exhibits similar performance. However, when $c$ is excessively small or large, JEPT's performance declines significantly. This underscores the critical role of the hyperparameter $c$ in JEPT's efficacy. In other experiments, we set $c = 8$ , as it yields the optimal performance in Meta-World.
+
+To thoroughly investigate the impact of the ratio between $D_{\mathrm{demo}}$ and $D_{\mathrm{vid}}$ on model performance, we conduct additional ablation experiments. Specifically, beyond the original 14-task training dataset,
+
+we incorporate 6 additional tasks from Meta-World to collect training data (Handle Pull Side, Door Lock, Printer Open, Plate Slide Side, Dial Turn, Handle Press Side). We maintain a constant total amount of training data while varying the ratio of $\mathcal{T}_{\mathrm{demo}}$ to $\mathcal{T}_{\mathrm{vid}}$ . For various ratios, we experiment with different hyperparameters $c$ , and the results are presented in Table 11. Given the variability of $\mathcal{T}_{\mathrm{demo}}$ and $\mathcal{T}_{\mathrm{vid}}$ , we report the average success rate on $\mathcal{T}_{\mathrm{unseen}}$ under different settings. The results indicate that within a certain range, $D_{\mathrm{vid}}$ effectively compensates for the lack of data with action labels. However, when $D_{\mathrm{demo}}$ is insufficient, it may not adequately learn, making IDM difficult to generalize to unseen tasks. Moreover, the results suggest that when $D_{\mathrm{vid}}$ is reduced, a larger $c$ is often required to achieve better performance.
+
+Considering that employing a fixed video encoder mitigates the distribution shift in video representation between action-labeled and unlabeled data, thereby enhancing the generalization of the inverse dynamics model in BC+IDM, we conducted experiments on Meta-World using a pre-trained video encoder, denoted as $\mathrm{BC + IDM}^{\star}$ . Most pre-trained video encoders utilize a kernel size of 2 for temporal compression, halving the representation length in the temporal dimension. Similar to our approach in visual prior injection with VideoMAE v2, we repeat all frames within the video except for the first frame to maintain consistent length and accurately decode the actions. Employing VideoMAE v2, the experimental results are presented in Table 12. There is a slight improvement in success rates on unlabeled tasks, but no gain on unseen tasks. Overall, the improvement from using a fixed video encoder is limited.
+
+# C.3 ADDITIONAL VISUALIZATION
+
+We conduct a series of visualizations within the Meta-World environment to reveal the distribution of some variants within the rollouts. Specifically, we process 150 videos for each of the 18 different tasks using a prompt video encoder to encode them into $E_{prt}$ . We flatten these embeddings and apply t-SNE to reduce the dimensionality to two dimensions. As is shown in Figure 5, there are clear distinctions between different tasks, suggesting that JEPT effectively captures and represents the unique features of each task. Additionally, we observe a degree of similarity between related tasks, such as 'Faucet Close' and 'Faucet Open', as well as 'Window Open', 'Window Close', and 'Drawer Close'. This similarity reflects the inherent relationships between tasks, which may facilitate knowledge transfer during the learning process.
+
+Furthermore, we also apply t-SNE to visualize the actions and joint embeddings of the 150 trajectories for each task. Each point in the visualization is color-coded with varying transparency to denote its temporal position within the trajectory, with points closer to the end being less transparent. The visualizations are shown in Figures 7 and 6. From this analysis, we find that the overall distributions of actions and joint embeddings across different tasks are similar, which partially explains the generalization capability of JEPT. Additionally, there are specific concentrated regions in the distribution for each task, which likely arise from the unique nature of each task.
+
+Table 9: Success Rates (\%) of JEPT injected with different visual priors calculated from 50 trials for each task in RoboSuite tasks. The average success rate of the tasks in $\mathcal{T}_{\mathrm{demo}}$ and $\mathcal{T}_{\mathrm{vid}}$ are listed in the first two rows, while the individual success rate of the 4 tasks in $\mathcal{T}_{\mathrm{unseen}}$ are listed in the following rows. The average success rate of the seen and unseen tasks are calculated in the last two row.
+
+
Task
JEPT+FlowFormer
JEPT+VideoMAE-v2
JEPT+Dino-v2
JEPT+SAM
JEPT
\( \mathcal{T}_{\text{demo}} \)
27.7
20.7
24.3
26.7
27.3
\( \mathcal{T}_{\text{vid}} \)
13.2
11.6
10.8
8.4
12.8
Panda Lift
34.0
14.0
16.0
12.0
38.0
Sawyer Lift
18.0
0.0
4.0
2.0
16.0
IIWA Lift
8.0
8.0
0.0
0.0
12.0
UR5e Lift
14.0
0.0
0.0
0.0
8.0
Seen Average
20.4
16.1
17.6
17.5
20.1
Unseen Average
18.5
5.5
5.0
3.5
18.5
+
+Table 10: Success Rates (\%) of JEPT and the ablations on $c$ calculated from 50 trials for each task in Meta-World. The average success rates of the tasks in $T_{\text{demo}}$ and $T_{\text{vid}}$ are listed in the first two rows, while the individual success rates of the 4 tasks in $T_{\text{unseen}}$ are listed in the following rows. The average success rates of the seen and unseen tasks are listed in the last two row.
+
+
Task
c = 0.3
c = 1
c = 5
c = 8(JEPT)
c = 10
c = 12
Tdemo
38.5
33.0
47.0
51.3
52.5
54.5
Tvid
19.0
17.7
24.3
31.7
27.7
12.3
Handle Press
4.0
12.0
24.0
28.0
14.0
6.0
Lever Pull
0.0
0.0
8.0
10.0
12.0
0.0
Plate Slide Back
2.0
8.0
6.0
14.0
16.0
2.0
Faucet Open
0.0
2.0
16.0
22.0
20.0
8.0
Seen Average
28.8
25.3
35.7
41.5
40.1
33.4
Unseen Average
1.5
5.5
13.5
18.5
15.5
4.0
+
+Table 11: Average Success Rates (\%) of JEPT variants on the 4 tasks in $\mathcal{T}_{\text{unseen}}$ in Meta-World experiments. The columns represent the variants with different ratios of $\mathcal{T}_{\text{demo}}$ and $\mathcal{T}_{\text{vid}}$ , while the rows represent the variants with different values of hyperparameter $c$ .
+
+
Tdemo + Tvid
(1) + (19)
(3) + (17)
(5) + (15)
(8) + (12)
(10) + (10)
(12) + (8)
c = 1
0.0
0.0
8.0
5.0
3.0
9.0
c = 5
0.0
1.0
5.5
7.5
10.0
8.5
c = 8
1.5
2.0
3.5
8.5
18.0
18.5
c = 10
0.0
0.0
6.0
10.0
16.0
10.0
c = 12
0.5
2.5
8.0
19.5
14.5
9.5
c = 16
0.0
5.0
12.5
12.0
10.0
10.5
c = 20
1.0
0.0
10.0
11.0
8.0
4.0
+
+Table 12: Success Rates (\%) of JEPT and two baselines calculated from 50 trials for each task in Meta-World. The average success rate of the tasks in $\mathcal{T}_{\text{demo}}$ and $\mathcal{T}_{\text{vid}}$ are listed in the first two rows, while the individual success rate of the 4 tasks in $\mathcal{T}_{\text{unseen}}$ are listed in the following rows. The average success rates of the seen and unseen tasks are listed in the last two row.
+
+
Task
BC+IDM
BC+IDM*
JEPT
Tdemo
49.5
47.5
51.3
Tvid
8.3
14.7
31.7
Handle Press
8.0
7.0
28.0
Lever Pull
0.0
0.0
10.0
Plate Slide Back
0.0
0.0
14.0
Faucet Open
4.0
3.0
22.0
Seen Average
28.9
31.1
41.5
Unseen Average
3.0
2.5
18.5
+
+
+Figure 5: Visualization of the prompt video embeddings learned in JEPT. The prompt video embeddings are calculated from 150 videos of each task in Meta-World. We apply t-SNE on the whole embedding set.
+
+
Window Open
Button Press Topdown
Reach Wall
Handle Pull
Door Close
Plate Slide Back
Button Press
Handle Press
Lever Pull
Window Close
Faucet Open
Plate Slide
Door Open
Reach
Drawer Close
Faucet Close
Plate Slide Back Side
Button Press Topdown Wall
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Figure 6: Visualization of the joint embeddings learned in JEPT. The joint embeddings are calculated from 150 trajectories of each task in Meta-World. We apply t-SNE on one whole embedding set and split the projected vectors according to the tasks into 18 sub-figures. The transparency of the points reflects the temporal positions of the corresponding embeddings, with points closer to the end being less transparent.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Figure 7: Visualization of the actions learned in JEPT. The actions are collected from 150 trajectories of each task in Meta-World. We apply t-SNE on one whole embedding set and split the projected vectors according to the tasks into 18 sub-figures. The transparency of the points reflects the temporal positions of the corresponding embeddings, with points closer to the end being less transparent.
+
+
+
+
\ No newline at end of file
diff --git a/ICLR/2025/Learning Video-Conditioned Policy on Unlabelled Data with Joint Embedding Predictive Transformer/images.zip b/ICLR/2025/Learning Video-Conditioned Policy on Unlabelled Data with Joint Embedding Predictive Transformer/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..89a63028f2d3be2444fcb9b6bf1cac8cc3099da0
--- /dev/null
+++ b/ICLR/2025/Learning Video-Conditioned Policy on Unlabelled Data with Joint Embedding Predictive Transformer/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:09d687d48db9c23bc0ad2d4c95d9bcd281077c68984ee4a74c6896521dcc095e
+size 1397115
diff --git a/ICLR/2025/Learning Video-Conditioned Policy on Unlabelled Data with Joint Embedding Predictive Transformer/layout.json b/ICLR/2025/Learning Video-Conditioned Policy on Unlabelled Data with Joint Embedding Predictive Transformer/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..5e0febc6f05931c401a338f93ae205b3c5838765
--- /dev/null
+++ b/ICLR/2025/Learning Video-Conditioned Policy on Unlabelled Data with Joint Embedding Predictive Transformer/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:550e12dfc985258b895f3160221a52d87956a77eea61de475769366e03768fc7
+size 720473
diff --git a/ICLR/2025/Learning View-invariant World Models for Visual Robotic Manipulation/59a741e1-eb8f-4ccd-b6c5-7d8d5bb7ae3b_content_list.json b/ICLR/2025/Learning View-invariant World Models for Visual Robotic Manipulation/59a741e1-eb8f-4ccd-b6c5-7d8d5bb7ae3b_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..7f39efaa9c7c15dd186705689e4d9b7c6ad14500
--- /dev/null
+++ b/ICLR/2025/Learning View-invariant World Models for Visual Robotic Manipulation/59a741e1-eb8f-4ccd-b6c5-7d8d5bb7ae3b_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:512214d3d841a8742e73ddb0081ae8f415a286a20418801a59f506a14442acf0
+size 135985
diff --git a/ICLR/2025/Learning View-invariant World Models for Visual Robotic Manipulation/59a741e1-eb8f-4ccd-b6c5-7d8d5bb7ae3b_model.json b/ICLR/2025/Learning View-invariant World Models for Visual Robotic Manipulation/59a741e1-eb8f-4ccd-b6c5-7d8d5bb7ae3b_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..9f0551e85989b5f388e5ccdc883d3957a0782dfc
--- /dev/null
+++ b/ICLR/2025/Learning View-invariant World Models for Visual Robotic Manipulation/59a741e1-eb8f-4ccd-b6c5-7d8d5bb7ae3b_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4b7e63214589b7a844466d4b34b94244427cf60efb85e857ad203080610f1ee4
+size 171330
diff --git a/ICLR/2025/Learning View-invariant World Models for Visual Robotic Manipulation/59a741e1-eb8f-4ccd-b6c5-7d8d5bb7ae3b_origin.pdf b/ICLR/2025/Learning View-invariant World Models for Visual Robotic Manipulation/59a741e1-eb8f-4ccd-b6c5-7d8d5bb7ae3b_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..06d34b16e1820b5588d088ba00fedc4e2bf14560
--- /dev/null
+++ b/ICLR/2025/Learning View-invariant World Models for Visual Robotic Manipulation/59a741e1-eb8f-4ccd-b6c5-7d8d5bb7ae3b_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:55d73a87d12569363a0c435ba32ed4efbf3003d653bfa07621bf009870ca0391
+size 2032195
diff --git a/ICLR/2025/Learning View-invariant World Models for Visual Robotic Manipulation/full.md b/ICLR/2025/Learning View-invariant World Models for Visual Robotic Manipulation/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..8f818c38261514d886b9a26b06c44db825f60e2f
--- /dev/null
+++ b/ICLR/2025/Learning View-invariant World Models for Visual Robotic Manipulation/full.md
@@ -0,0 +1,529 @@
+# LEARNING VIEW-INVARIANT WORLD MODELS FOR VISUAL ROBOTIC MANIPULATION
+
+Jing-Cheng Pang $^{1,2,3,*}$ , Nan Tang $^{1,3,*}$ , Kaiyuan Li $^{1,3}$ , Yuting Tang $^{4,2}$ , Xin-Qiang Cai $^{2}$ , Zhen-Yu Zhang $^{2}$ , Gang Niu $^{2}$ , Masashi Sugiyama $^{2,4}$ & Yang Yu $^{1,3,\diamond}$
+
+$^{1}$ National Key Laboratory for Novel Software Technology, Nanjing University, China & School of Artificial Intelligence, Nanjing University, China;
+2 RIKEN Center for Advanced Intelligence Project, Japan;
+3 Polixir.ai, China; 4 The University of Tokyo, Japan
+
+# ABSTRACT
+
+Robotic manipulation tasks often rely on visual inputs from cameras to perceive the environment. However, previous approaches still suffer from performance degradation when the camera's viewpoint changes during manipulation. In this paper, we propose ReViWo (Representation learning for View-invariant World model), leveraging multi-view data to learn robust representations for control under viewpoint disturbance. ReViWo utilizes an autoencoder framework to reconstruct target images by an architecture that combines view-invariant representation (VIR) and view-dependent representation. To train ReViWo, we collect multi-view data in simulators with known view labels. Meanwhile, ReViWo is simultaneously trained on Open X-Embodiment datasets without view labels. The VIR is then used to train a world model on pre-collected manipulation data and a policy through interaction with the world model. We evaluate the effectiveness of ReViWo in various viewpoint disturbance scenarios, including control under novel camera positions and frequent camera shaking, using the Meta-world & PandaGym environments. Besides, we also conduct experiments on real world ALOHA robot. The results demonstrate that ReViWo maintains robust performance under viewpoint disturbance, while baseline methods suffer from significant performance degradation. Furthermore, we show that the VIR captures task-relevant state information and remains stable for observations from novel viewpoints, validating the efficacy of the ReViWo approach.
+
+# 1 INTRODUCTION
+
+Developing robots capable of completing various manipulation tasks is a hallmark of machine intelligence. Previous approaches in this domain often rely on visual inputs from cameras to perceive the environment, with a policy trained on these visual inputs using reinforcement learning (RL) algorithms and pre-collected robotic manipulation data (Kalashnikov et al., 2018b; Quillen et al., 2018; Agarwal et al., 2020; Levine et al., 2020; Pang et al., 2024). However, the policy learned in this way often suffers from performance degradation when merely changing the camera position during deployment (Liu et al., 2024). This challenge, referred to as the viewpoint disturbance, arises from the policy's learned representations, which fail to separate the view-invariant information from the observation: they encode the entirety of the observations, including both the view-invariant task state and the view-dependent information like light. As a result, the changes in the viewpoint can lead to a substantial transformation in the learned representations, which can compromise the policy's effectiveness when exposed to novel viewpoints (Liu et al., 2024).
+
+There are existing works focusing on training robust robotic manipulation policies under viewpoint disturbances. For example, MVWM (Seo et al., 2023) tries to train a robust image representation using a multi-view masked autoencoder, by encoding a masked image and reconstructing target images in different viewpoints. The learned representation is then utilized for policy decision-making.
+
+However, the learned representation can still be sensitive to variations in viewpoint because it relies on a single encoder model to extract information, and then reconstruct complex, viewpoint-dependent visual information which can be highly challenging. RT-X series works (Brohan et al., 2023; Zitkovich et al., 2023; O'Neill et al., 2024) attempt to address viewpoint disturbance by training policies on extensive data. RoboUniView (Liu et al., 2024) learns a unified representation from 3D multi-view images using an autoencoder (Bank et al., 2023), but it requires all viewpoints to contain similar information, and relies on 3D data with camera calibration. Although these approaches have demonstrated a degree of effectiveness in addressing viewpoint disturbances, they have yet to achieve the complete and effective decoupling of view-invariant state information from the viewpoint, which is important for robust robotic control.
+
+In this paper, we investigate robust robotic manipulation under viewpoint disturbance. Motivated by human's ability to adapt to changes in viewpoint, a skill that is supported by cognitive science research in human psychology (Souto & Kerzel, 2021), we propose to decompose the visual observation into a view-invariant representation (VIR) for robot control, as shown in Fig. 1. More specifically, we propose Representation learning for the View-invariant World model (ReViWo), which employs two encoders to separately extract view-invariant and view-dependent
+
+
+Figure 1: An illustration of the robotic manipulation with view-invariant representation.
+
+representations from the image, and a decoder to reconstruct a target image that combines the view-invariant and viewpoint information from two encoders' inputs, respectively. This training process requires the view labels, which can be obtained when collecting multi-view data from fixed-position cameras. Leveraging the learned VIR, ReViWo trains a world model to learn the environment dynamics from the offline manipulation data. Finally, ReViWo trains policy with RL algorithm and using the world model.
+
+Our contributions are as follows: First, we introduce an observation decomposition idea for enhancing visual robotic manipulation under viewpoint disturbances, which enables the robot to focus on invariant information across viewpoints. This decomposition distinguishes this work from previous works that process the observation into a single representation. Second, we implement this idea by proposing ReViWo, comprising a world model and an autoencoder framework that learns the view-invariant representation from pre-collected multi-view data with view labels. Besides, we also train ReViWo with Open X-Embodiment (O'Neill et al., 2024), to incorporate the knowledge from more diverse robotic manipulation data. Lastly, we conduct extensive experiments to verify the efficacy of the proposed method: Meta-world (Yu et al., 2019) and PandaGym (Gallouédec et al., 2021) simulation environments and real world ALOHA robotics arm. The experiment results demonstrate the robustness of ReViWo in the face of two types of viewpoint disturbance: a novel camera installation that results in $10 \rightarrow 90$ degrees of viewpoint offset from the training setting, and a scenario with continuous camera shaking.
+
+# 2 BACKGROUND
+
+RL and Offline RL. We consider an RL problem aiming at learning a policy that maximizes the expected cumulative discounted reward in a Markov Decision Process (MDP) (Puterman, 1994; Sutton & Barto, 1998; Yuan et al., 2023; Cai et al., 2023b), which is represented by the tuple $\mathcal{M} = (\mathcal{S},\mathcal{A},\mathcal{P},\mathcal{R},\gamma)$ . In this tuple, $\mathcal{S}$ denotes the state space, $\mathcal{A}$ the action space, $\mathcal{P}: S \times \mathcal{A} \to \mathcal{S}$ the transition function of the environment, $\mathcal{R}: S \times \mathcal{A} \to \mathbb{R}$ the reward function that evaluates the quality of the agent's action, and $\gamma \in (0,1)$ the discount factor which balances the immediate and future rewards. A policy $\pi: \mathcal{S} \to \mathcal{A}$ defines the agent's strategy, mapping states to a distribution over possible actions. The RL agent interacts with the environment as follows: at each timestep $t$ , the agent observes a state $s_t$ from the environment. It then selects an action $a_t$ based on the policy $\pi(\cdot | s_t)$ and executes it in the environment. Next, the agent receives a reward $r_t$ and the environment transitions to a new state $s_{t+1}$ according to the transition function $\mathcal{P}(\cdot | s_t, a_t)$ . The objective of RL is to find a policy that maximizes the expected sum of rewards over time: $\mathbb{E}_{\pi}[\sum_{t \geq 0} \gamma^t r_t]$ . In offline RL, we only have access to pre-collected interaction data: $\{(s_t^i, a_t^i, r_t^i, s_{t+1}^i)_i\}$ and no further
+
+
+Figure 2: Overall training framework of ReViWo method. (A) View-invariant representation learning process trains two encoders to decompose view-invariant and view-dependent information within the images, and a decoder to reconstruct the target image. (B) The World modeling process builds a world model upon the learned VIR. (C) Policy learning by interacting with the world model.
+
+
+
+environment interacting is allowed. The objective of offline RL is to find a policy $\pi (a_t|s_t)$ that, when deployed, maximizes the cumulative reward within the confines of the MDP as characterized by the dataset.
+
+VAE and VQ-VAE. Variational Autoencoder (VAE) (Kingma & Welling, 2014) is an effective tool to extract information from the image, which learns to encode an image into a continuous latent space and subsequently reconstruct the image from this space. VAE represents an image with a latent vector that captures the essential information required to reconstruct the image. We use $o \in \mathbb{R}^{H \times W \times C}$ to denote the image, where $H$ , $W$ , and $C$ represent the height, the width, and the number of channels of image $o$ . The encoder network $q_{\phi}(z|o)$ maps the input image to a distribution over the latent space, and the latent vector $z$ is sampled from this probability density: $z \sim q_{\phi}(z|o)$ . The decoder network $p_{\theta}(o|z)$ aims to reconstruct an image from the latent vector. The objective of a VAE is to minimize the negative log-likelihood as below:
+
+$$
+\mathcal {L} _ {\mathrm {V A E}} (\theta , \phi) = \mathbb {E} _ {q _ {\phi} (z | o)} [ - \log p _ {\theta} (o | z) ] + D _ {K L} \left(q _ {\phi} (z | o) \| p (z)\right), \tag {1}
+$$
+
+where the Kullback-Leibler divergence term regularizes the latent space by enforcing similarity to a prior distribution $p(z)$ , typically chosen to be a standard normal distribution.
+
+Vector Quantized VAE (VQ-VAE) (van den Oord et al., 2017) extends VAE by introducing a discrete latent space, which can be more suitable for information extraction. VQ-VAE introduces two main modifications: (a) The continuous latent vector is discretized by mapping it to the nearest vector in a learnable codebook $e = \{e_1, e_2, \dots, e_K\}$ . This mapping results in a discrete latent variable $z_q$ , which is used for reconstruction; (b) The training objective includes a codebook loss. The codebook loss consists of two terms: a commitment loss that encourages the encoder outputs to commit to a codebook vector, and a quantization loss that moves the codebook vectors towards the encoder outputs. The overall loss function is:
+
+$$
+\mathcal {L} _ {\mathrm {V Q - V A E}} (\theta , \phi ; o) = \mathbb {E} _ {q _ {\phi} (z | o)} [ - \log p _ {\theta} (o | z) ] + \| \operatorname {s g} [ q _ {\phi} (z | o) ] - e \| _ {2} ^ {2} + \| q _ {\phi} (z | o) - \operatorname {s g} [ e ] \| _ {2} ^ {2}, \tag {2}
+$$
+
+where $\mathrm{sg}[\cdot ]$ denotes the stop-gradient operator.
+
+# 3 METHOD
+
+This section presents the proposed ReViWo method. The main idea of ReViWo is to decompose the visual observation into view-invariant representation (VIR) and view-dependent representation (VDR) separately. In the next, we give a formal problem definition and then elaborate on the two key steps of ReViWo method: (1) view-invariant representation learning and (2) world modeling and behavior learning.
+
+# 3.1 PROBLEM FORMULATION
+
+This study focuses on training a policy for visual robotic control, which is robust to viewpoint disturbances. Consider we have the following two datasets:
+
+1. A multi-view dataset $\mathcal{O} = \{(o_{s_i}^{v_1}, o_{s_i}^{v_2}, \ldots, o_{s_i}^{v_N})_i\}$ , where $v_i \in \mathcal{V}$ is a specific viewpoint within the set of viewpoints $\mathcal{V}$ , $o$ denotes a visual observation, $N$ the number of viewpoints, and $s_i$ the state presented in the image. Here we have multiple trajectories from $N$ fixed viewpoints. In practical, we can collect this dataset by recording robotic manipulation with multiple cameras.
+2. A robotic manipulation dataset $\mathcal{D} = \{(s_t^i, a_t^i, r_t^i, s_{t+1}^i)_i\}$ , where the state $s_t^i$ is visual observation from a fixed position camera, $a_t^i$ is robot behaviors and $r_t^i$ denotes the observed reward.
+
+The primary objective is to derive a policy that maximizes the rewards on visual observations of novel viewpoints that are not present in the manipulation dataset, thus ensuring the policy's decision-making capability is not limited to the viewpoints within the training data. We will provide a detailed discussion in Sec. 4.1 on how to construct viewpoint disturbance in the experiments.
+
+# 3.2 VIEW-INVARIANT REPRESENTATION LEARNING
+
+The first step of ReViWo is to learn VIR using multi-view images. The main idea is to separate the view-invariant and view-dependent information within the image and find a training objective to enable both two representations to be meaningful. Then the policy can make decisions based on the view-invariant information, which is robust to the viewpoint changes. ReViWo learns the representation using an autoencoder architecture, as shown in Fig. 2 (A). The framework comprises two encoders and a decoder, where each encoder accounts for capturing specific information within an image, and the decoder reconstructs the images from the encoders' output.
+
+Encoders for information extraction. ReViWo utilizes two encoders to extract view-invariant and view-dependent from visual images separately. Specifically, we use $q_{\phi}^{S}(o)$ to represent the view-invariant encoder (VIE) and $q_{\phi}^{V}(o)$ for view-dependent encoder (VDE), where $\phi$ denotes the parameters of the autoencoder model. The encoders are implemented upon the vision transformer (ViT) architecture (Dosovitskiy et al., 2021), which processes an image by partitioning it into a sequence of patches. Each patch is converted into a token embedding via a learnable convolutional neural network (CNN). These token embeddings are then concatenated with their corresponding positional embeddings, which are computed using the function (1-timestep), to form the inputs for the transformer at each timestep. We present our implementation of ViT architecture in Fig. 9. For the VIE, the transformation can be formalized as $z_{s} = q_{\phi}^{S}(o_{s}^{v})$ , where $o_{s}^{v} \in \mathbb{R}^{M \times H \times W \times 3}$ denotes the input image patches and $z_{s} \in \mathbb{R}^{M \times C}$ represents the outputted VIR. Here, the dimensions $W \times H$ denote the size of each image patch, $M$ the patch number and $C$ denotes the dimensions of the output feature space. Thus the output can be regarded as a sequence of features corresponding to each input patch. The VDE employs the same architecture as the VIE and yields an output $z_{v} = q_{\phi}^{V}(o_{s}^{v})$ , capturing the view-dependent features.
+
+Decoder for image reconstruction. The decoder is also a transformer-based architecture, which inputs both view-invariant and view-dependent features and outputs a reconstructed image: $\tilde{o}_s^v = p_\phi (z_s;z_v)$ . The features $z_{s}$ and $z_{v}$ could be extracted from different images within the same domain, and the goal for the decoder is to generate a novel image that integrates the features of the two inputs. The decoder's input is the concatenated outputs from the two encoders. Instead of generating the image patch by patch in an auto-regressive manner, we follow the Genie approach (Bruce et al., 2024) to output all patches simultaneously to enhance efficiency. Each output feature is then processed by a CNN to form an image patch, with the collective patches constituting the entire image.
+
+Training objective. The autoencoder is trained to reconstruct pixels following a VAE-like objective (Kingma & Welling, 2014), which involves optimizing the parameters $\phi$ by minimizing the negative log-likelihood as in Eq. (3):
+
+$$
+\mathcal {L} _ {\mathrm {A E}} (\phi) = \underset {o _ {s _ {i}} ^ {v _ {j}}, o _ {s _ {m}} ^ {v _ {n}}, o _ {s _ {i}} ^ {v _ {n}} \sim \mathcal {O}} {\mathbb {E}} [ - \log p _ {\phi} \left(o _ {s _ {i}} ^ {v _ {n}} \mid q _ {\phi} ^ {S} \left(o _ {s _ {i}} ^ {v _ {j}}\right); q _ {\phi} ^ {V} \left(o _ {s _ {m}} ^ {v _ {n}}\right) \right] + \lambda_ {1} \mathcal {L} _ {\mathrm {V Q}} (\phi) + \lambda_ {2} \mathcal {L} _ {\text {C o n t r a s t i v e}} (\phi). \tag {3}
+$$
+
+The first term, the image reconstruction loss, measures the model's ability to predict an image of a given state from a novel viewpoint, by using state information from one image and viewpoint information from a different image. Minimizing this term enables the model to disentangle state and view information, as it must accurately predict the target image by fusing these two distinct information types. The reconstruction of the image, $o_{s_i}^{v_n}$ , conditioned on the state-related features from $o_{s_i}^{v_j}$ , trains
+
+the model to concentrate on certain aspects in the image that are invariant to viewpoint changes, such as the state of the object. The inclusion of $z_{v}$ in the reconstruction encourages the model to learn viewpoint-specific features, such as lighting, angle, background, and perspective, which are independent of the object's state. The second term, $\mathcal{L}_{\mathrm{VQ}}$ , is from VQ-VAE (van den Oord et al., 2017), which is known for its efficacy in image reconstruction. It comprises a commitment loss that ensures the encoder's output vectors are proximate to their nearest vectors in the quantization dictionary and a quantization loss that ensures the quantized vectors accurately represent the encoder's outputs. We refer readers to Eq. (2) for VQ-VAE loss. The term $\mathcal{L}_{\mathrm{Contrastive}}$ is designed to optimize the variance of the latent representations $z_{s}$ and $z_{v}$ for multi-view images under a variety of conditions. This term encourages $z_{s}$ remain consistent across identical states and varies across different states. Similarly, it ensures that $z_{v}$ is consistent for identical viewpoints and varies for different viewpoints, thereby enhancing the model's ability to capture the nuances of multi-view image representations. Refer to Appendix A for the mathematical justification that Eq. (3) can effectively separate view-invariant and view-independent representations.
+
+Integration of Open X-Embodiment data without view labels. In addition to the data with view labels, we also involve multi-view data without view labels from the Open X-Embodiment dataset (O'Neill et al., 2024), which are readily available on the internet. This dataset encompasses a wide array of robotic manipulation tasks performed by various robots, thereby enriching the training of the autoencoder with a broader spectrum of information and diversity. Note that in the absence of labels, the inputs to the VIE and the VDE correspond to identical states observed from different viewpoints. To prevent the VDE from encoding the entirety of the image information for image reconstruction, we introduce a weighting factor in the loss calculation for these unlabeled data.
+
+# 3.3 WORLD MODELLING AND POLICY LEARNING FROM OFFLINE MANIPULATION DATA
+
+View-invariant representation as the state for visual control. The previous section introduces how ReViWo learns the VIRs, which capture the invariant features of the environment that are essential for decision-making and are not affected by viewpoint changes. This is similar to how humans focus on the relevant aspects of a task, regardless of how they are viewing the scene. By focusing on these invariant features, the policy can make decisions based on the true state of the environment rather than on extraneous visual details that may change with the camera angle. Therefore, we naturally regard the VIR as the task state for control. Building on this foundation, ReViWo proceeds to train a world model and policy via offline reinforcement learning.
+
+World modeling and behavior learning. We employ the COMBO algorithm (Yu et al., 2021) for world modeling and behavior learning, which is an offline model-based reinforcement learning methodology. COMBO algorithm first trains an ensemble of world models, utilizing ensemble methods (Ganaie et al., 2022) to improve the prediction accuracy and robustness of the world model. Then, the policy interacts with the world model, from an initial state that is sampled from the offline dataset, for a rollout. The policy is optimized by utilizing a combination of the real offline dataset and the simulated rollouts generated by the world model. The world model $\mathcal{M}_{\theta}(q_{\phi}^{S}(s_{t}),a_{t})$ , parameterized by $\theta$ , is trained by minimizing the difference between the predicted next state with the target state, as shown in Eq. (4):
+
+$$
+\mathcal {L} _ {\mathrm {W M}} (\theta) = \underset {(s _ {t}, a _ {t}, s _ {t + 1}) \sim \mathcal {D}} {\mathbb {E}} [ - \log \mathcal {M} _ {\theta} \left(q _ {\phi} ^ {S} \left(s _ {t + 1}\right) \mid q _ {\phi} ^ {S} \left(s _ {t}\right), a _ {t}\right) ]. \tag {4}
+$$
+
+In addition to the world model, we also train a reward model by supervised learning on the offline control data, which is capable of predicting the rewards for given state-action pairs. This reward model provides the necessary reward signals for the policy's learning process.
+
+# 4 EXPERIMENT
+
+In this section, we conduct extensive experiments to evaluate our proposed method for robust control under viewpoint disturbance. The goal of the experiments is to answer the following key questions: (1) How does ReViWo perform compared to existing baseline methods under viewpoint disturbance (Sec. 4.2)? (2) How is the algorithm's robustness on viewpoints variations, and how much data is required to train ReViWo(Sec. 4.2)? (3) Does ReViWo learn meaningful view-invariant and view-dependent representation (Sec. 4.3)? (4) What is the impact of each component in ReViWo on the overall performance of the algorithm (Sec. 4.4)? We first introduce the experiment setup.
+
+
+(A)Meta-world
+
+
+Figure 3: A visualization of the environments in our experiments. (A) In the Meta-world, the agent controls a Sawyer robot to manipulate various objects such as door, drawer and window. (B) In the PandaGym environment, the agent controls a Franka robot with 7-DoF. (C) ALOHA robot that manipulates a bottle to the plate.
+
+
+(B) PandaGym
+
+
+(C) ALOHA
+
+# 4.1 EXPERIMENT SETUP
+
+Evaluation environments. We conduct experiments on two robotics manipulation environments: Meta-world (Yu et al., 2019) and PandaGym (Gallouédec et al., 2021), as shown in Fig. 3. (1) Meta-World: This environment requires the agent to control a Sawyer robotics arm with 7 degrees of freedom (DoF) and a parallel finger gripper. The action space is a 2-tuple. The first element of the tuple is the displacement in 3D space of the end-effector, and the second is a normalized torque to be applied by the gripper fingers. Meta-World offers a suite of 50 distinct manipulation tasks, covering a wide array of scenarios, such as interactions with doors, windows, drawers, and balls. For our experiments, we assess the performance of our methods on a subset of tasks: door opening, drawer opening, and window closing. (2) PandaGym: This environment involves a Panda robotic arm by Franka Emika, which has 7 DoF and a parallel finger gripper. PandaGym is primarily focused on block manipulation tasks, which are designed to test the robot's foundational skills, such as reaching a goal point. The action space is defined by the gripper's movement command, which includes three coordinates for spatial movement, and the finger movement, which is a single coordinate reflecting the gripper's aperture. For certain tasks, the gripper is fixed in a closed position, which reduces the action space to only the gripper's spatial movement command. (3) ALOHA: We include a real world ALOHA robot to manipulate a bottle to a plate. The task involves three stages: reaching for a bottle (stage 1), grasping it (stage 2), and then placing it on a plate (stage 3).
+
+We mainly use Door Open,Drawer Open, and Window Close from Meta-world, and Reach from PandaGym for evaluation, and we also conduct experiments on Coffee Button, Faucet Open, Dial Turn (Appendix F.1). The observations on all tasks are images with $128 \times 128$ pixels, which are captured by the fixed-position third-person camera. To introduce viewpoint disturbance, we can modify camera parameters, such as its azimuth, pitch, and height, to alter the viewpoint. For our experiments, we specifically alter the azimuth value, as this adjustment alone can introduce considerable visual perturbations and is sufficient to evaluate the robustness of the proposed methods.
+
+Dataset for training. Multi-view dataset for training autoencoder includes three parts: (1) Meta-world data. We collect 51 trajectories of 17 tasks from Meta-world and record them utilize 20 cameras from different viewpoints, resulting in 1020 observation sequences (112040 observations) in total. The trajectories are sampled by pre-trained expert policies with Gaussian noise. (2) PandaGym. In this environment, we collect 30 trajectories of 5 tasks with 20 viewpoints, resulting in 600 observation sequences (30k observations) in total. (3) Open X-Embodiment (Routing Primitive Dataset (Luo et al., 2023)), including 4 viewpoints for manipulating multi-stage cable routing tasks. This dataset does not provide a viewpoint label. We utilize 101 trajectories in this dataset to keep a data balance, with 10064 observations in total. We refer readers to Appendix C.1 for the detailed setup of camera parameters for collecting data. For offline control data, we collect 400 trajectories on Meta-world, with a single viewpoint that doesn't exist in the multi-view data and 100 trajectories on PandaGym. Then, we train the world model and RL policy on two tasks separately. We investigate the algorithm's performance when collecting multi-view images on a narrower range of available viewpoints, and present the result in Sec. 4.4. For real world data collection, we collect a dataset of 128 trajectories using three cameras (two third-person cameras and one gripper camera). The dataset includes 10 different types of bottles and plates, which are placed randomly within the operational area during data collection. We use this real-world dataset to train both VIE and policy.
+
+
+(a) Door Open
+
+
+(b)Drawer Open
+Figure 4: Performance of different methods under various viewpoint disturbances. The x-axis denotes the disturbance type, and the y-axis denotes the average success rate of the last two checkpoints, by evaluation for 30 episodes. The error bars stand for the half standard deviation over three random seeds. Results on more tasks are shown in Appendix F.1.
+
+
+(c) Window Close
+
+
+(d) Reach
+
+Viewpoint disturbance setup. In our experiments, we investigate the policy robustness under two distinct types of viewpoint disturbances: (1) Camera installation position (CIP): This category of viewpoint disturbance is designed to simulate the situation where the camera's installation position deviates from that of the policy training dataset. To this end, we adjust the camera's azimuth angle. Specifically, for the Meta-world experiments, we set the azimuth to a 10-degree offset, while for the PandaGym experiments, we apply a 90-degree offset. This alteration is intended to evaluate the robustness of policies to variations in the camera's installation angle. We also conduct experiments to investigate ReViWo's performance on various azimuth offsets (Fig. 5). (2) Camera shaking (CSH): This disturbance is relevant for scenarios with a hand-held camera, where the viewpoint can be continuously changing. To mimic this, we introduce a dynamic disturbance where the camera's azimuth angle is continuously adjusted during the robot's manipulation task. It is challenging because the model learns with a fixed viewpoint during training while being evaluated on a variable one. We present the visualization of the viewpoint disturbance in Appendix C.1.
+
+Implementation Details. For autoencoder training, For world modelling and behavior learning for both ReViWo and baseline methods, we utilize OfflineRL-kit (Sun, 2023), a well-verified offline RL codebase. For all methods, the model is trained with an offline RL algorithm for 25000 gradient steps, and evaluated for 40 episodes. We conduct all experiments with four random seeds, and the shaded area or the error bars in the figures represent the standard deviation across four trials. We use 64 CPU cores (AMD EPYC 9654 @ 2.4GHz) and 4 GPUs (NVIDIA GeForce RTX 4090) for our experiments. More implementation details can be found in Appendix C.
+
+# 4.2 PERFORMANCE UNDER VIEWPOINT DISTURBANCE
+
+Baselines for comparison. We choose the following representative approaches in the domain of multi-view robotics manipulation or offline RL for comparison. (1) MVWM (Seo et al., 2023) handles the view disturbance by learning a multi-view masked autoencoder which reconstructs pixels of randomly masked viewpoints. It then learns a world model operating on the representations from the autoencoder. In MVWM's original implementation, the world model is learned in an online setting. We align it with our setting by training only with offline data and utilizing COMBO to train both world model and policy. (2) COMBO (Yu et al., 2021) is a model-based offline RL algorithm that trains a value function using both the offline dataset and the world model generated data while also additionally regularizing the value function on out-of-support state-action tuples generated via model rollouts. In the experiments, the COMBO method first pre-trains the vision representation on the same multi-view data as ReViWo using a standard VAE and then trains a policy that makes decisions based on the learned vision representation. (3) Behavior Cloning (BC) adopts a supervised learning approach to mimic the actions within the offline dataset. Similar to COMBO, we also use VAE to process the visual observation when implementing the BC baseline. All these baseline methods use the same multi-view dataset to pre-train vision representation with VAE. (4) Conservative Q-Learning (CQL) (Kumar et al., 2020) is an offline RL method. In our experiment in Sec. 4.4, we utilize CQL to train policy with the learned VIR, to verify the effect of the world model in ReViWo.
+
+Main results. Fig. 4 presents the success rate of different methods under various levels of viewpoint disturbance. In general, our proposed ReViWo method outperforms the baseline methods across two types of viewpoint disturbances. While the baselines demonstrate considerable performance from the training viewpoint, they suffer from a clear decline when subjected to viewpoint variations.
+
+This conclusion is supported by COMBO performance $(23.3\to 0$ on Door Open, $94.4\to 0$ on Drawer Open, and $98.9\rightarrow 22.8$ on Window Close), which demonstrates the influence of viewpoint disturbance on these visual-based policies. BC shows promising performance on certain training viewpoints, yet its success rate substantially decreases under viewpoint disturbances. This performance degradation is due to the limitations of supervised learning on offline control data, which fails to preserve its robust performance when encountering novel observations. In contrast, ReViWo not only performs comparably to the training viewpoints and the CIP on tasks such as Door Open, but also demonstrates its robustness to viewpoint disturbances. This robustness is further evidenced by ReViWo's ability to handle tasks with a camera shaking, which is a significant challenge for policies to perform robustly (Seo et al., 2023). Interestingly, ReViWo achieves the highest performance on the training viewpoint for certain tasks. We hypothesize this is due to that VIR focuses on task-related domains within the observation and masks some unrelated information, thereby enhancing the policy learning for specific tasks.
+
+Impact of training data variations & Performance under various viewpoint offsets. In this experiment, we study two important questions: the quantity of data necessary for training the autoencoder using ReViWo, and the degree of its robustness to changes in viewpoint. We train the autoencoder using images collected from Meta-world, employing two configurations: one with 10 random viewpoints across a 90-degree azimuth range (10V+90D), and another with 20 random viewpoints over a 180-degree azimuth range (20V+180D). For evaluation, we evaluate the algorithm's performance across various degrees of azimuth offset, ranging from 0 to 15 degrees. Fig. 5 shows the comparative performance of ReViWo trained with different data against various levels of camera viewpoint offset. Key findings include: (1) $10\mathrm{V} + 90\mathrm{D}$ setting is enough for ReViWo to achieve a good performance, while additional data can further improve the algorithm's efficacy. For instance, the performance of ReViWo with $10\mathrm{V} + 90\mathrm{D}$ is comparable to that with $20\mathrm{V} + 180\mathrm{D}$ when the azimuth offset is $\leq 10$ , and only marginally inferior when the offset $>10$ . In contrast, the COMBO method has a noticeable decline under even slight disturbance (e.g., $98.9 \rightarrow 55.6$ when the offset is 2.5); (2) ReViWo can effectively maintain the policy performance even when offset reaches 15 degrees, which is a considerable range during the practical robotic deployment. These insights serve as a guideline for applying ReViWo, and highlight its adaptability to viewpoint variations.
+
+Real world evaluation. Tab. 1 presents the real world experiment results. We implement ReViWo-BC as follow: training VIE on the real world images and conducting behavior cloning on the control data with VIE representation. In this experiments, the policy inputs with all three camera images. To simulate viewpoint disturbances, we adjusted the azimuth by +15 degrees and the elevation by -15 degrees on two third-person cameras. We evaluate the method on both training and CIP viewpoint for 10 trajectories with random initialization. We also consider a baseline, ACT (Action Chunking Transformer) (Zhao et al., 2023), for comparison. ACT performs end-to-end imitation learning directly from real demonstrations, with pre-trained ResNet-50 as the vision encoder. The results indicate that the proposed method maintains robust control when subjected to novel viewpoints in a real-world setting, while imitation learning-based method suffers from a performance degradation Cai et al. (2023c;a). This result serves as a preliminary evidence of the applicability of ReViWo method. In contrast, ACT performs comparably to ReViWo-BC on training viewpoint, while exhibiting a significant decline in performance when viewpoint changes. These real world results further substantiate the efficacy of the ReViWo in handling viewpoint disturbances.
+
+
Success Rate
ReViWo-BC (Training)
ReViWo-BC (CIP)
ACT (Training)
ACT (CIP)
Stage 1
100%
100%
100%
100%
Stage 2
80%
60%
60%
0%
Stage 3
60%
50%
60%
0%
+
+Table 1: Results on real world ALOHA robot.
+
+# 4.3 ANALYSIS ON VIEW-INVARIANT REPRESENTATION LEARNING
+
+Previous results demonstrate ReViWo can effectively handle common viewpoint disturbance compared to baseline methods. In this section, we investigate the source of the robustness and analyze the quality of the learned view-invariant representation.
+
+Analysis on the generated VIR. We analyze the effectiveness of the learned view-invariant representation by projecting the resulting representations onto a two-dimensional plane using t-SNE (der
+
+
+Figure 5: Performance across different levels of viewpoint offsets.
+
+
Method Task
w/ Open-X
w/o Open-X
Door Open
CIP
42.2
22.8
CSH
19.4
25.0
Drawer Open
CIP
55.0
30.6
CSH
37.8
25.6
+
+Table 2: Ablation study of ReViWo that trains w/ and w/o Open X-Embodiment dataset.
+
+
+(a) ReViWo
+
+
+(b) MVWM
+Figure 6: The t-SNE projections of representations generated by various methods. Points with the same color encode six images for the same state but with six different novel viewpoints that do not exist in the multi-view datasets. The presented ReViWo representation is generated by VIE.
+
+
+(c) VAE
+
+Maaten et al., 2008). We first sample the state from the Meta-World environment, from which we render a series of images from multiple viewpoints. Subsequently, we encode these images using the VIE, as well as several baseline models for comparison. The t-SNE projections of these encoded images are illustrated in Fig. 6, where each color of points correspond to the representations of the same state from various viewpoints. We observe a notable clustering of VIR points, which are in closer proximity to each other as compared to those of the baseline models. In contrast, the MVWM and VAE representations exhibit greater diversity compared to ReViWo. These results suggest their representations are significantly different across viewpoints, potentially distracting the robust policy execution. This finding indicates the learned VIR is more adept at capturing the essential state information of a task, even in the presence of novel viewpoints.
+
+Examples of the decoder output. To investigate whether the trained autoencoder learns meaningful representation, we present the decoded images when VIE and VDE are from different images, as shown in Fig. 7. We have several conclusions from the results. First, VIR correctly focuses on the task state, which is consistent despite changes in viewpoint. For example in each row in Fig. 7, the decoder can generate the images for the same state from two viewpoints. Second, the view-dependent representation indeed captures the property of viewpoint, thus facilitating the generation of the image with the same viewpoint as the viewpoint reference image. We present more examples of decoder output in Appendix F.3. Besides, the trained autoencoder can be applied in different domains (i.e., Meta-world and PandaGym).
+
+# 4.4 ABLATION STUDY AND APPLICABILITY ANALYSIS
+
+Effect of the Open X-Embodiment data. To evaluate the impact of Open X-Embodiment data on the efficacy of our proposed method, ReViWo, we conducted a comparative analysis of the model's performance with and without the integration of this data. The results of this analysis are detailed in Tab. 2. The integration of Open X-Embodiment data into ReViWo significantly enhances the model's robustness to variations in viewpoint, as shown in the experiment results. This could be attributed to that the diverse visual representations in the Open X-Embodiment data contribute to a more comprehensive understanding of the world by the model, as well as a better understanding of different viewpoints. These results imply a potential to scale up the ReViWo training for more challenging robotic manipulation. Note that the performance decline on Door Open (CSH) can be attributed to the diverse and unstructured nature of the Open X-Embodiment dataset, which introduces variability that the model struggles to generalize under dynamic conditions.
+
+Effect of the world model. We verify the effect of the world model by training a policy with the learned VIR and offline RL method, CQL (Kumar et al., 2020), on the offline RL dataset. Tab.
+
+
+Figure 7: Examples of the decoder output the corresponding ground truth image. The decoder can generate the images that combine the task state in VIE inputs, and the viewpoint in VDE inputs.
+
+
+
+3 presents the performance of ReViWo method with and without world model (WM). The results present a consistent performance enhancement for ReViWo w/ WM, suggesting that the imaginary rollouts generated by the WM contribute to the enhancement of both the robustness and the overall learning efficiency of the ReViWo framework. The reduced performance on Painter Open (CSH) is likely due to the world model's difficulty in accurately predicting the next state in highly variable and unstable visual conditions, leading to less reliable policy execution. Notably, the ReViWo w/o WM still surpasses the performance of baselines like COMBO (result in Sec. 4). This finding reveals the efficacy of the VIR in facilitating robust control, independent of the world model.
+
+
Task Method
Drawer Open
Window Close
w/ WM
Training
CIP
CSH
Training
CIP
CSH
92.8
30.6
25.6
98.9
71.4
23.3
w/o WM
60.0
28.3
27.2
97.2
68.3
17.8
+
+Table 3: Performance of ReViWo w/ and w/o world model (WM). We implement ReViWo w/o WM by training policy with CQL and using the learned view-invariant representation.
+
+# 5 CONCLUSION AND LIMITATION
+
+This study explores robust robotic manipulation under viewpoint disturbances. We propose a novel approach, ReViWo, which learns viewpoint-invariant representations that are subsequently leveraged for robotic control. We conduct extensive experiments and demonstrate that ReViWo is capable of being applied to a variety of robotic platforms, enabling robust control under various types of viewpoint disturbance. Despite the promising results, there are still limitations. One limitation of our work is the reliance on the labeled viewpoints. In a practical setting, these labels can be generated by sampling multiple trajectories using fixed-position cameras. However, it is worth exploring to eliminate this dependency and to leverage a broader spectrum of multi-view data from the real world. A potential solution is to train with label-free multi-view data and constrain the information contained within VDR, by information bottleneck (Tishby & Slonim, 2000) technique or by masking portions of the image input to the VDR, thereby preventing the VDR contains too much information. Besides, the experiment scale is limited, in terms of the dataset scale and model size. In future works, we hope to scale up the framework to solve more challenging tasks. For instance, employing a pre-trained model such as CLIP (Radford et al., 2021), and training with more data from Open X-Embodiment and other open multi-view data (Yu et al., 2023). Lastly, currently we implement the world model based on a simple multi-layer perceptron architecture. To deal with robot manipulation tasks with more complex dynamics, it would be beneficial to use more powerful structures to build the world model, e.g., recurrent state-space model (Hafner et al., 2019). We believe these interesting directions are worth further exploration for developing smarter and more robust robots with the support of world models and reinforcement learning.
+
+# AUTHORSHIP AND CREDIT Attribution
+
+The contributions of the authors are as follows:
+
+- Y. Y.: led the direction, oversaw the project;
+J.-C. P.: designed the method;
+N. T.: proved the theory;
+- N. T.: implemented the codes;
+- J.-C. P.: designed the experiments;
+K. L.: processed the data;
+N. T., K. L.: conducted experiments;
+J.-C. P., K. L., Y. T.: analyzed the results;
+J.-C. P., X.-Q. C., Y. T., Z.-Y. Z.: wrote the paper;
+Y.Y.,M.S.,G.N.: revised the paper;
+J.-C. P., G. N.: discussed and wrote the response;
+- Y. Y., M. S., G. N.: provided guidance.
+
+All authors discussed and contributed to the final manuscript.
+
+# ACKNOWLEDGMENT
+
+This work was supported by the National Science Foundation of China (62495093) and Jiangsu Science Foundation (BK20243039). The authors would like to thank Zhilong Zhang, Junyin Ye and Haoxiang Ren for their assistance in real world deployment, and anonymous reviewers & chairs for their valuable comments.
+
+Masashi Sugiyama was supported by JST ASPIRE Grant Number JPMJAP2405 and by a grant from Apple, Inc. Any views, opinions, findings, and conclusions or recommendations expressed in this material are those of the authors and should not be interpreted as reflecting the views, policies or position, either expressed or implied, of Apple Inc.
+
+# ETHICS STATEMENT
+
+In the development and evaluation of ReViWo for robotic manipulation, we have carefully considered the ethical implications of this research, particularly as they pertain to the use of robotic manipulation tasks and artificial intelligence. The proposed involves the collection and use of multiview data in simulators and Open X-Embodiment datasets and is designed to respect privacy and ensure the security of data. The datasets used do not contain any personal or sensitive information, and all data collection processes comply with relevant legal standards and best practices in research ethics. The potential for bias and discrimination has been addressed by ensuring that the VIR does not inadvertently encode any biased representations of the environment. This is particularly important in maintaining fairness and avoiding any form of discrimination that could arise from biased training data. The research has been conducted with a commitment to research integrity, including thorough documentation and adherence to IRB guidelines where applicable. We recognize that the insights and methods presented in this paper must be applied responsibly, avoiding any potentially harmful applications. The technology developed is intended for beneficial purposes and should not be used in ways that could cause harm or diminish the safety of individuals. The experiment results are reported with the most transparency and accuracy, reflecting our commitment to advancing knowledge in the field of robotic manipulation while upholding the highest ethical standards.
+
+# REFERENCES
+
+Rishabh Agarwal, Dale Schuurmans, and Mohammad Norouzi. An optimistic perspective on offline reinforcement learning. In ICML, 2020.
+Ron Alterovitz, Sven Koenig, and Maxim Likhachev. Robot planning in the real world: Research challenges and opportunities. AI Magazine, 37(2):76-84, 2016.
+Dor Bank, Noam Koenigstein, and Raja Giryes. Autoencoders. Machine learning for data science handbook: data mining and knowledge discovery handbook, pp. 353-374, 2023.
+Anthony Brohan, Noah Brown, Justice Carbajal, and et al Yevgen Chebotar. RT-1: robotics transformer for real-world control at scale. In RSS, 2023.
+Jake Bruce, Michael D. Dennis, Ashley Edwards, Jack Parker-Holder, Yuge Shi, Edward Hughes, Matthew Lai, Aditi Mavalankar, Richie Steigerwald, Chris Apps, Yusuf Aytar, Sarah Bechtle, Feryal M. P. Behbahani, Stephanie C. Y. Chan, Nicolas Heess, Lucy Gonzalez, Simon Osindero, Sherjil Ozair, Scott E. Reed, Jingwei Zhang, Konrad Zolna, Jeff Clune, Nando de Freitas, Satinder Singh, and Tim Roktaschel. Genie: Generative interactive environments. In ICML, 2024.
+Xin-Qiang Cai, Yao-Xiang Ding, Zi-Xuan Chen, Yuan Jiang, Masashi Sugiyama, and Zhi-Hua Zhou. Seeing differently, acting similarly: Heterogeneously observable imitation learning. In ICLR, 2023a.
+Xin-Qiang Cai, Pushi Zhang, Li Zhao, Jiang Bian, Masashi Sugiyama, and Ashley Llorens. Distributional pareto-optimal multi-objective reinforcement learning. In NeurIPS, 2023b.
+Xin-Qiang Cai, Yu-Jie Zhang, Chao-Kai Chiang, and Masashi Sugiyama. Imitation learning from vague feedback. In NeurIPS, 2023c.
+Van der Maaten, Laurens, and Geoffrey Hinton. Visualizing data using t-sne. Journal of machine learning research, 9:2579-2605, 2008.
+Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, Jakob Uszkoreit, and Neil Houlsby. An image is worth 16x16 words: Transformers for image recognition at scale. In ICLR, 2021.
+Frederik Ebert, Chelsea Finn, Sudeep Dasari, Annie Xie, Alex X. Lee, and Sergey Levine. Visual foresight: Model-based deep reinforcement learning for vision-based robotic control. arXiv preprint, abs/1812.00568, 2018.
+Quentin Gallouédec, Nicolas Cazin, Emmanuel Dellandrea, and Liming Chen. panda-gym: Open-source goal-conditioned environments for robotic learning. arXiv preprint, abs/2106.13687, 2021.
+M. A. Ganaie, Minghui Hu, Ashwani Kumar Malik, Muhammad Tanveer, and Ponnuthurai N. Suganthan. Ensemble deep learning: A review. Engineering Applications of Artificial Intelligence, 115:105151, 2022.
+David Ha and Jürgen Schmidhuber. World models. In NeurIPS, 2018.
+Danijar Hafner, Timothy P. Lillicrap, Ian Fischer, Ruben Villegas, David Ha, Honglak Lee, and James Davidson. Learning latent dynamics for planning from pixels. In ICML, 2019.
+Danijar Hafner, Timothy P. Lillicrap, Jimmy Ba, and Mohammad Norouzi. Dream to control: Learning behaviors by latent imagination. In ICLR, 2020.
+Danijar Hafner, Timothy P. Lillicrap, Mohammad Norouzi, and Jimmy Ba. Mastering atari with discrete world models. In ICLR, 2021.
+Danijar Hafner, Jurgis Pasukonis, Jimmy Ba, and Timothy P. Lillicrap. Mastering diverse domains through world models. arXiv preprint, abs/2301.04104, 2023.
+
+Dmitry Kalashnikov, Alex Irpan, Peter Pastor, Julian Ibarz, Alexander Herzog, Eric Jang, Deirdre Quillen, Ethan Holly, Mrinal Kalakrishnan, Vincent Vanhoucke, and Sergey Levine. Qt-opt: Scalable deep reinforcement learning for vision-based robotic manipulation. arXiv preprint, abs/1806.10293, 2018a.
+Dmitry Kalashnikov, Alex Irpan, Peter Pastor, Julian Ibarz, Alexander Herzog, Eric Jang, Deirdre Quillen, Ethan Holly, Mrinal Kalakrishnan, Vincent Vanhoucke, and Sergey Levine. Scalable deep reinforcement learning for vision-based robotic manipulation. In CoRL, 2018b.
+Yue Kang. Explorations in Stochastic Bandit Problems: Theory and Applications. ProQuest Dissertations & Theses. University of California, Davis, 2024.
+Diederik P. Kingma and Max Welling. Auto-encoding variational bayes. In ICLR, 2014.
+Aviral Kumar, Aurick Zhou, George Tucker, and Sergey Levine. Conservative q-learning for offline reinforcement learning. In NeurIPS, 2020.
+Sergey Levine, Aviral Kumar, George Tucker, and Justin Fu. Offline reinforcement learning: Tutorial, review, and perspectives on open problems. arXiv preprint, abs/2005.01643, 2020.
+Fanfan Liu, Feng Yan, Liming Zheng, Chengjian Feng, Yiyang Huang, and Lin Ma. Robouniview: Visual-language model with unified view representation for robotic manipulaiton. arXiv preprint, abs/2406.18977, 2024.
+Jianlan Luo, Charles Xu, Xinyang Geng, Gilbert Feng, Kuan Fang, Liam Tan, Stefan Schaal, and Sergey Levine. Multi-stage cable routing through hierarchical imitation learning. arXiv preprint, abs/2307.08927, 2023.
+Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Andrei A. Rusu, Joel Veness, Marc G. Bellemare, Alex Graves, Martin A. Riedmiller, Andreas Fidjeland, Georg Ostrovski, Stig Petersen, Charles Beattie, Amir Sadik, Ioannis Antonoglou, Helen King, Dharshan Kumaran, Daan Wierstra, Shane Legg, and Demis Hassabis. Human-level control through deep reinforcement learning. Nature, 518(7540):529-533, 2015.
+Abby O'Neill, Abdul Rehman, Abhiram Maddukuri, Abhishek Gupta, and et al Abhishek Padalkar. Open x-embodiment: Robotic learning datasets and RT-X models : Open x-embodiment collaboration. In ICRA, 2024.
+Jing-Cheng Pang, Tian Xu, Shengyi Jiang, Yu-Ren Liu, and Yang Yu. Reinforcement learning with sparse-executing actions via sparsity regularization. arXiv preprint, abs/2105.08666, 2021.
+Jing-Cheng Pang, Si-Hang Yang, Xiong-Hui Chen, Xinyu Yang, Yang Yu, Mas Ma, Ziqi Guo, Howard Yang, and Bill Huang. Object-oriented option framework for robotics manipulation in clutter. In IROS, 2023a.
+Jing-Cheng Pang, Xinyu Yang, Si-Hang Yang, Xiong-Hui Chen, and Yang Yu. Natural language instruction-following with task-related language development and translation. In NeurIPS, 2023b.
+Jing-Cheng Pang, Si-Hang Yang, Kaiyuan Li, Jiaji Zhang, Xiong-Hui Chen, Nan Tang, and Yang Yu. Knowledgeable agents by offline reinforcement learning from large language model rollouts. arXiv preprint, abs/2404.09248, 2024.
+Martin L. Puterman. Markov Decision Processes: Discrete Stochastic Dynamic Programming. Wiley Series in Probability and Statistics. Wiley, 1994.
+Deirdre Quillen, Eric Jang, Ofir Nachum, Chelsea Finn, Julian Ibarz, and Sergey Levine. Deep reinforcement learning for vision-based robotic grasping: A simulated comparative evaluation of off-policy methods. In ICRA, 2018.
+Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, Gretchen Krueger, and Ilya Sutskever. Learning transferable visual models from natural language supervision. In ICML, 2021.
+
+Nikunj Saunshi, Orestis Plevrakis, Sanjeev Arora, Mikhail Khodak, and Hrishikesh Khandeparkar. A theoretical analysis of contrastive unsupervised representation learning. In ICML, 2019.
+Edward Schmerling, Karen Leung, Wolf Vollprecht, and Marco Pavone. Multimodal probabilistic model-based planning for human-robot interaction. In ICRA, 2018.
+Younggyo Seo, Junsu Kim, Stephen James, Kimin Lee, Jinwoo Shin, and Pieter Abbeel. Multi-view masked world models for visual robotic manipulation. In ICML, 2023.
+Pierre Sermanet, Corey Lynch, Yevgen Chebotar, Jasmine Hsu, Eric Jang, Stefan Schaal, and Sergey Levine. Time-contrastive networks: Self-supervised learning from video. In ICRA, 2018.
+David Souto and Dirk Kerzel. Visual selective attention and the control of tracking eye movements: a critical review. Journal of Neurophysiology, 125(5):1552-1576, 2021.
+Yihao Sun. Offliner-kit: An elegant pytorch offline reinforcement learning library, 2023.
+Richard S. Sutton and Andrew G. Barto. Reinforcement learning: An introduction. IEEE Transactions on Neural Networks, 9(5):1054-1054, 1998.
+Naftali Tishby and Noam Slonim. Data clustering by markovian relaxation and the information bottleneck method. In NeurIPS, 2000.
+Josh Tobin, Rachel Fong, Alex Ray, Jonas Schneider, Wojciech Zaremba, and Pieter Abbeel. Domain randomization for transferring deep neural networks from simulation to the real world. In IROS, 2017.
+Aäron van den Oord, Oriol Vinyals, and Koray Kavukcuoglu. Neural discrete representation learning. In NeurIPS, 2017.
+Zhao-Heng Yin, Lingfeng Sun, Hengbo Ma, Masayoshi Tomizuka, and Wu-Jun Li. Cross domain robot imitation with invariant representation. In ICRA, 2022.
+Tianhe Yu, Deirdre Quillen, Zhanpeng He, Ryan Julian, Karol Hausman, Chelsea Finn, and Sergey Levine. Meta-world: A benchmark and evaluation for multi-task and meta reinforcement learning. In CoRL, 2019.
+Tianhe Yu, Aviral Kumar, Rafael Rafailov, Aravind Rajeswaran, Sergey Levine, and Chelsea Finn. COMBO: conservative offline model-based policy optimization. In NeurIPS, 2021.
+Xianggang Yu, Mutian Xu, Yidan Zhang, Haolin Liu, Chongjie Ye, Yushuang Wu, Zizheng Yan, Chenming Zhu, Zhangyang Xiong, Tianyou Liang, Guanying Chen, Shuguang Cui, and Xiaoguang Han. Mvimgnet: A large-scale dataset of multi-view images. In CVPR, 2023.
+Lei Yuan, Ziqian Zhang, Lihe Li, Cong Guan, and Yang Yu. A survey of progress on cooperative multi-agent reinforcement learning in open environment. arXiv preprint, abs/2312.01058, 2023.
+Andy Zeng, Shuran Song, Stefan Welker, Johnny Lee, Alberto Rodriguez, and Thomas A. Funkhouser. Learning synergies between pushing and grasping with self-supervised deep reinforcement learning. In IROS, 2018.
+Tony Z. Zhao, Vikash Kumar, Sergey Levine, and Chelsea Finn. Learning fine-grained bimanual manipulation with low-cost hardware. In RSS, 2023.
+Brianna Zitkovich, Tianhe Yu, Sichun Xu, and et al Peng Xu. RT-2: vision-language-action models transfer web knowledge to robotic control. In CoRL, 2023.
+
+# Appendix
+
+# Table of Contents
+
+A Mathematical Justification for Representation Learning 16
+B Related Work 17
+
+C More Implementation Details & Experiment Setup 18
+
+C.1 Viewpoints for Autoencoder and RL Training 18
+C.2 Architecture and Optimization Details 18
+C.3 Computation 18
+C.4 Hyperparameters 19
+C.5 Detailed Descriptions of Baselines 19
+
+D Algorithm Description 21
+E Discussion on the Usage of Dataset with View Labels 21
+F Additional Results 22
+
+F.1 Results on More Tasks 22
+F.2 Imitation Learning with View-invariant Representation 22
+F.3 More Examples of Decoder Output 24
+
+# A MATHEMATICAL JUSTIFICATION FOR REPRESENTATION LEARNING
+
+Here we provide a mathematical explanation to justify why ReViWo could separately learn the view-invariant and view-dependent representations from the learning objective in Eq. (3). The intuition is that the disentanglement can be achieved by minimizing the InfoNCE losses, which equals to the contrastive term in Eq. (3).
+
+Denote $V, L$ as the random variable of the viewpoint and the scene occupancy, $Z_v, Z_l$ as the VDE and VIE. It is obvious that the viewpoint is independent of the occupancy, which means that $I(V; L) = 0$ , where $I$ denotes the mutual information. Each RGB image $X$ corresponds to a unique pair $(V, L)$ , i.e. $X = X(V, L)$ .
+
+During training, we sample a training image batch with size $(N_{l},N_{v})$ at each step. In this sample matrix, the samples of the same row are sampled from the same state and the samples of the same column are sampled from the same viewpoint.
+
+We use $f(\cdot, \cdot)$ as the similarity metric, and for a certain VDE $z_v$ , denote $z_v^P$ its positive sample and $z_v^k$ its negative samples, the InfoNCE loss for VDE is:
+
+$$
+\begin{array}{l} L _ {\mathrm {n c e (V D E)}} = \sum_ {i = 1} ^ {N _ {l}} \sum_ {j = 1} ^ {N _ {v}} \left[ - \frac {1}{N _ {l} \cdot N _ {v}} \cdot \log \frac {\exp (f (z _ {v} ^ {i , j} , z _ {v} ^ {P _ {i , j}}))}{\sum_ {k = 1} ^ {N} \exp (f (z _ {v} ^ {i , j} , z _ {v} ^ {k}))} \right] \\ \approx \mathbb {E} _ {v \sim P _ {v}, l \sim P _ {l}, z _ {v} \sim q _ {v} (\cdot | x (v, l))} \left[ - \log \frac {\exp (f (z _ {v} , z _ {v} ^ {P}))}{\sum_ {k = 1} ^ {N} \exp (f (z _ {v} , z _ {v} ^ {k}))} \right] \\ \approx \mathbb {E} _ {v \sim P _ {v}, l \sim P _ {l}, z _ {v} \sim q _ {v} (\cdot | x (v, l))} \left[ - \log \frac {\exp (f (z _ {v} , z _ {v} ^ {P}))}{N \cdot \mathbb {E} [ \exp (f (z _ {v} , z _ {v} ^ {\prime})) ]} \right] \\ \approx \mathbb {E} _ {v \sim P _ {v}, l \sim P _ {l}, z _ {v} \sim q _ {v} (\cdot | x (v, l)), l ^ {P} \sim P _ {l}, z _ {v} ^ {P} \sim q _ {v} (\cdot | x (v, l ^ {p}))} \left[ - f (z _ {v}, z _ {v} ^ {P}) \right] + \\ \mathbb {E} _ {v \sim P _ {v}, l \sim P _ {l}, z _ {v} \sim q _ {v} (\cdot | x (v, l))} \left[ \log \left(\mathbb {E} _ {v ^ {\prime} \sim P _ {v}, l ^ {\prime} \sim P _ {l}, z _ {v} ^ {\prime} \sim q _ {v} (\cdot | x (v ^ {\prime}, l ^ {\prime}))} \left[ \exp \left(f \left(z _ {v}, z _ {v} ^ {\prime}\right)\right) \right]\right) \right] + \log N \\ \geq \mathbb {E} _ {v \sim P _ {v}, l \sim P _ {l}, z _ {v} \sim q _ {v} (\cdot | x (v, l)), l ^ {P} \sim P _ {l}, z _ {v} ^ {P} \sim q _ {v} (\cdot | x (v, l ^ {p}))} \left[ - f (z _ {v}, z _ {v} ^ {P}) \right] + \\ \mathbb {E} _ {v \sim P _ {v}, l \sim P _ {l}, z _ {v} \sim q _ {v} (\cdot | x (v, l)), v ^ {\prime} \sim P _ {v}, l ^ {\prime} \sim P _ {l}, z _ {v} ^ {\prime} \sim q _ {v} (\cdot | x (v ^ {\prime}, l ^ {\prime}))} \left[ f \left(z _ {v}, z _ {v} ^ {\prime}\right) \right] + \log N. \tag {5} \\ \end{array}
+$$
+
+The last inequality in Eq. (5) is derived from Jenson inequality. We set $f(z_v, z_v') = \log P(z_v, z_v') = \log P(z_v) + \log P(z_v'|z_v)$ , i.e. the energy function, we have:
+
+$$
+L _ {n c e (V D E)} \geq \mathbb {E} _ {v \sim P _ {v}, l \sim P _ {l}, z _ {v} \sim q _ {v} (\cdot | x (v, l)), l ^ {P} \sim P _ {l}, z _ {v} ^ {P} \sim q _ {v} (\cdot | x (v, l ^ {p}))} \left[ - f (z _ {v}, z _ {v} ^ {P}) \right] +
+$$
+
+$$
+\begin{array}{l} \mathbb {E} _ {v \sim P _ {v}, l \sim P _ {l}, z _ {v} \sim q _ {v} (\cdot | x (v, l)), v ^ {\prime} \sim P _ {v}, l ^ {\prime} \sim P _ {l}, z _ {v} ^ {\prime} \sim q _ {v} (\cdot | x (v ^ {\prime}, l ^ {\prime}))} \left[ f \left(z _ {v}, z _ {v} ^ {\prime}\right) \right] + \log N \\ = \mathbb {E} _ {v \sim P _ {v}, l \sim P _ {l}, z _ {v} \sim q _ {v} (\cdot | x (v, l)), l ^ {P} \sim P _ {l}, z _ {v} ^ {P} \sim q _ {v} (\cdot | x (v, l ^ {p}))} \left[ - \log P \left(z _ {v}\right) - \log P \left(z _ {v} ^ {P} | v\right) \right] + \\ \end{array}
+$$
+
+$$
+\begin{array}{l} \mathbb {E} _ {v \sim P _ {v}, l \sim P _ {l}, z _ {v} \sim q _ {v} (\cdot | x (v, l)), v ^ {\prime} \sim P _ {v}, l ^ {\prime} \sim P _ {l}, z _ {v} ^ {\prime} \sim q _ {v} (\cdot | x (v ^ {\prime}, l ^ {\prime}))} \left[ \log P (z _ {v}) + \log P (z _ {v} ^ {\prime}) \right] + \log N \\ = H \left(Z _ {v} | v\right) - H \left(Z _ {v}\right) + \log N \\ = - I \left(Z _ {v}; V\right) + \log N. \tag {6} \\ \end{array}
+$$
+
+We justify that $f(z_v, z_v')$ can be represented as $\log P(z_v, z_v')$ , which allows us to relate the similarity metric to probabilistic terms. This relationship is crucial for interpreting the InfoNCE loss in terms of entropy and mutual information. Similarly, we obtain:
+
+$$
+L _ {\mathrm {n c e} (\mathrm {V I E})} \geq - I \left(Z _ {l}; L\right) + \log N, \tag {7}
+$$
+
+We then prove that the distance metric $d(X, Y)$ , defined in terms of mutual information, satisfies the triangle inequality. This metric is used to measure the disentanglement between $Z_{v}$ and $Z_{l}$ . We denote
+
+$$
+d (X, Y) = 1 - \frac {I (X ; Y)}{\operatorname* {m a x} (H (X) , H (Y))},
+$$
+
+and
+
+$$
+A \left(X _ {1}, X _ {2}, \dots , X _ {n}\right) = \max \left(H \left(X _ {1}\right), \dots , H \left(X _ {n}\right)\right).
+$$
+
+According to triangle inequality, we have:
+
+$$
+d (V, L) \leq d \left(Z _ {v}, V\right) + d \left(Z _ {l}, L\right) + d \left(Z _ {v}, Z _ {l}\right), \tag {8}
+$$
+
+which can be simplified as:
+
+$$
+\begin{array}{l} I \left(Z _ {v}; Z _ {l}\right) \leq A \left(Z _ {v}, Z _ {l}\right) \cdot \left[ 2 - \frac {I (V ; Z _ {v})}{A (V , Z _ {v})} - \frac {I (L ; Z _ {L})}{A (L , Z _ {L})} \right] \\ \leq A \left(Z _ {v}, Z _ {l}, V, L\right) \cdot \left[ 2 - \frac {I \left(V ; Z _ {v}\right)}{A \left(V , Z _ {v} , L , Z _ {l}\right)} - \frac {I \left(L ; Z _ {L}\right)}{A \left(L , Z _ {L} , V , Z _ {v}\right)} \right] \tag {9} \\ = 2 \cdot A \left(Z _ {v}, Z _ {l}, V, L\right) - I (V; Z _ {v}) - I (L; Z _ {l}) \\ \leq 2 \cdot A \left(Z _ {v}, Z _ {l}, V, L\right) + L _ {\mathrm {n c e} (\mathrm {V D E})} + L _ {\mathrm {n c e} (\mathrm {V I E})} - 2 \log N. \\ \end{array}
+$$
+
+From Eq. (9), we can see that minimizing $A(Z_{v},Z_{l},V,L)$ , $L_{\mathrm{nce(VDE)}}$ and $L_{\mathrm{nce(VDE)}}$ equals to minimizing the upper bound of the mutual information between the view-invariant and view-dependent representations.
+
+Based on the Data Processing Inequality, we show that $A(Z_v,Z_l,V,L)$ is a constant $C$ , which represents the maximum entropy among the variables. This conclusion is based on the fact that processing data cannot increase mutual information:
+
+$$
+\begin{array}{l} A \left(Z _ {v}, Z _ {l}, V, L\right) = \max \left(H \left(Z _ {v}\right), H \left(Z _ {l}\right), H (V), H (L)\right) \\ = \max (H (V), H (L)) \tag {10} \\ = C. \\ \end{array}
+$$
+
+Finally, we establish a clear connection between the InfoNCE loss and mutual information. Minimizing the InfoNCE losses for $Z_{v}$ and $Z_{l}$ corresponds to minimizing the mutual information between these representations, thus facilitating their disentanglement.
+
+# B RELATED WORK
+
+Robotic manipulation with visual inputs has become a prominent field of study, leveraging cameras to capture environmental data and employing learning-based methods, such as reinforcement learning, to train control policies (Zeng et al., 2018; Kalashnikov et al., 2018b; Quillen et al., 2018; Ebert et al., 2018; Pang et al., 2023a;b; 2021). For instance, the work of VPG (Zeng et al., 2018) utilizes the Deep Q-Network algorithm (Mnih et al., 2015) to train a policy for a block grasping task. Similarly, QT-Opt (Kalashnikov et al., 2018a) has demonstrated the feasibility of real-world grasping by introducing a self-supervised, vision-based reinforcement learning framework.
+
+A critical challenge in training policies with visual inputs is the issue of viewpoint disturbance, the camera position changes during deployment. Prior research has investigated a variety of methods to mitigate the effects of viewpoint changes. A prevalent technique is domain randomization (Tobin et al., 2017), which augments the training data with synthetic variations to emulate potential environmental disturbances. Another approach is the adoption of unified view representations (Liu et al., 2024; Sermanet et al., 2018; Yin et al., 2022). For instance, RoboUniView (Liu et al., 2024) and TCN (Sermanet et al., 2018) aim to learn a unified representation for images captured from disparate viewpoints. However, the enforcement of viewpoint invariance, which presumes the same information across different viewpoints, necessitates the careful selection of positive and negative data pairs. This is akin to the challenges faced by contrastive learning methods, which often rely on complicated choices with regard to the sampling of such pairs (Saunshi et al., 2019; Seo et al., 2023). Imitation learning methods, such as RT-1 (Brohan et al., 2023), RT-2 (Zitkovich et al., 2023), and RT-X (O'Neill et al., 2024), seek to learn robust control by leveraging extensive manipulation datasets, but this approach inevitably increases data processing and computational demands. While these methods have shown a certain level of success in handling viewpoint disturbances, they fail to isolate view-invariant information, which is essential for robust robotic control Kang (2024), from the viewpoint information. In contrast, this work proposes a novel approach to this challenge.
+
+We introduce an autoencoder framework with dual encoders, designed to decompose view-invariant information, which is shown to be effective in robust robotic control.
+
+World Models for Robotics Manipulation. Model-based RL trains a world model that learns the environment dynamics through supervised learning. In robotics, world models are crucial for enabling robots to predict the outcomes of their actions. There are two common ways to utilize the world model in robotics: planning (Alterovitz et al., 2016) and policy learning (Ha & Schmidhuber, 2018). For example, Schmerling et al. (2018) proposes model-based planning for human-machine interaction. Ha & Schmidhuber (2018) introduces the concept of world models in the context of reinforcement learning, demonstrating that compact and efficient representations of the environment can be learned, which in turn can be used to train agents with fewer interactions with the real world.
+
+Due to the challenge in modeling the environment with image as input/output, recent works propose to separate the representation learning and world modeling (Hafner et al., 2020; 2021; 2023). However, these world models seldom consider the viewpoint disturbance. In this work, we follow the representation learning $^+$ world modeling framework but attempt to learn a view-invariant world model that is robust to the viewpoint disturbances.
+
+# C MORE IMPLEMENTATION DETAILS & EXPERIMENT SETUP
+
+# C.1 VIEWPOINTS FOR AUTOENCODER AND RL TRAINING
+
+To construct the dataset to train the autoencoder, we use a camera configuration that encompasses a diverse set of azimuth angles. Specifically, the azimuth angles employed in Meta-world are $\{8, 11, 17, 20, 28, 35, 136, 144, 148, 152, 159, 180, 194, 195, 198, 219, 324, 333, 339, 351\}$ . Note that these angles are selected to span a 180-degree range, encompassing two distinct 90-degree intervals: [-45, 45] and [135, 225] degrees, respectively. For PandaGym, the azimuth angles are $\{6, 21, 39, 60, 69, 85, 114, 125, 153, 159, 162, 170, 179, 205, 209, 213, 217, 224, 238, 244\}$ selected from an interval of [0, 270] degrees.
+
+For RL training, we select a distinct azimuth angle of 22.5 degrees for the viewpoint of MetaWorld and 45 degrees for the viewpoint of PandaGym. This angle is set to be different from any of the azimuth angles used for training the autoencoder to ensure diverse and comprehensive learning. This choice of viewpoint is designed to evaluate the generalization capabilities of the RL algorithm by exposing it to a novel viewpoint that is not encountered during the autoencoder training phase. We present the visualization of different viewpoints in Fig. 8.
+
+# C.2 ARCHITECTURE AND OPTIMIZATION DETAILS
+
+The autoencoder architecture is based on the ViT (Dosovitskiy et al., 2021). The architecture of the encoder and decoder are presented in Fig. 9. We first utilize a one-layer CNN to project the input image with size $128 \times 128$ into patch embeddings where the patch size is $16 \times 16$ . We employ a bidirectional transformer structure for both encoder and decoder block, consisting of 8-head self-attention mechanisms and feed-forward networks with layer normalization and residual connections included. The transformer's intermediate embedding dimension is 256 and the dropout rate is set 0.1. For VIE, we utilize a vector quantizer with a codebook size of 512 and an embedding dimension of 64 to obtain the view-invariant encoding. To prevent codebook collapse, we utilized k-means initialization for our vector quantizer. As for VDE, we introduce a simple linear layer to get the view-dependent encoding. The view-invariant encoding and view-dependent encoding are concatenated and fed into the decoder block, after which the decoder output is projected into the image space through a one-layer deconvolution.
+
+# C.3 COMPUTATION
+
+We use 64 CPU cores (AMD EPYC 9654 @ 2.4GHz) and 4 GPUs (NVIDIA GeForce RTX 4090) for our experiments. The software stack employed for our experiments includes Python 3.11 and PyTorch 2.1.0. On average, the training of the autoencoder to the point of convergence on our dataset
+
+
+(a) Meta-world (training)
+
+
+(b) Meta-world (offset=10)
+
+
+(c) Meta-world (offset=20)
+
+
+(d) PandaGym (training)
+
+
+(e) PandaGym (offset=45)
+
+
+(f) PandaGym (offset=90)
+
+
+Figure 8: Visualization of the training viewpoint and novel viewpoint for robotics control. In our experiments, Meta-world (offset=10) and PandaGym (offset=90) are utilized for evaluating policy performance under CIP.
+(1) Encoder
+Figure 9: Network architecture of encoder and decoder of ReViWo.
+
+
+(2) Decoder
+
+requires approximately 12 hours. Subsequently, the training of the world model and the policy are completed in an average of 2 hours.
+
+# C.4 HYPERPARAMETERS
+
+The hyper-parameters for implementing ReViWo are presented in Table 4. When implementing baseline methods, we use the same hyper-parameters of offline RL for training the world model and policy.
+
+# C.5 DETAILED DESCRIPTIONS OF BASELINES
+
+MVWM (Seo et al., 2023): MVWM is a reinforcement learning framework that trains a multi-view masked autoencoder for representation learning and a world model to solve visual manipulation tasks. The autoencoder consists of a synergistic combination of view-masking: which masks viewpoints at random, and video autoencoding: which reconstructs video frames of both masked and unmasked viewpoints. In Seo et al. (2023), the authors find that the autoencoder effectively learns representations that capture useful information from the current viewpoint but also the cross-view information from different viewpoints. For behavior learning, MVWM learns a world model on
+
+Table 4: Hyper-parameters for training ReViWo and baselines.
+
+
Hyper-parameters
Value
Patch Num.
8 × 8 = 64
Embedding dimension for each patch
256
Encoder output dimension
64
Enocoder block Num.
8
Decoder block Num.
8
Coef. for VQ loss
0.25
Coef. for VDE contrastive loss
0.1
Coef. for VIE contrastive loss
1
Learning rate of authencoder
3e-5
Optimizer for autoencoder
Adam
Learning rate of world model
1e-3
Optimizer for world model
Adam
Learning rate for policy
1e-4
Optimizer for policy
Adam
World model structure
[input dim, 2048, 512, 256, 256, output dim]
World model ensemble Num.
7
Policy structure
[input dim, 2048, 512, 256, 256, output dim]
+
+frozen representations from either single-view or multi-view data, which is particularly feasible as the autoencoder consists of vision transformer layers that take inputs of variable sizes. Then the actor and critic are trained with imaginary trajectories from the world model. Although MVWM is originally implemented for online RL, it can be easily adapted to offline settings by combining its representation learning technique with offline model-based RL (Agarwal et al., 2020).
+
+COMBO (Yu et al., 2021): COMBO is a novel approach in the field of reinforcement learning, designed to effectively learn policies from offline data without further interaction with the environment. It addresses the challenge of distributional shift, where the policy encounters states that are not well-represented in the offline dataset, which can lead to poor performance or even catastrophic failures when deployed. COMBO integrates conservative policy evaluation with model-based planning, using a learned dynamics model to simulate future states and rewards. By combining conservative value estimation and model-based rollouts, COMBO aims to safely optimize policies while mitigating the risks associated with out-of-distribution states. This approach allows for more robust policy learning from static datasets, expanding the applicability of reinforcement learning to scenarios where active data collection is impractical or impossible.
+
+CQL (Kumar et al., 2020): CQL is an algorithm developed for offline reinforcement learning, where the goal is to learn effective policies from a fixed dataset without further interaction with the environment. The key challenge in offline reinforcement learning is to avoid overestimation of the action values (Q-values) for state-action pairs not well-represented in the dataset, which can lead to suboptimal or dangerous policies when executed in the real environment. CQL addresses this issue by introducing a conservative estimation of Q-values during training. It does so by penalizing the Q-values of actions that are not supported by the data and by ensuring that the learned policy does not deviate too much from the behavior policy that generated the dataset. This conservative approach reduces the likelihood of overestimating the Q-values of unseen actions, leading to more reliable policy performance. CQL is particularly useful in scenarios where data collection is expensive or risky, such as robotics, healthcare, or finance, where it is critical to learn from limited data without the opportunity for trial-and-error learning in the actual environment. By focusing on the safe and robust optimization of policies from offline data, CQL represents a significant step forward in the practical application of reinforcement learning.
+
+BC: Behavior cloning (BC) is a straightforward method in the realm of robotic learning, where the goal is to mimic expert behavior. BC trains a policy (typically represented by a neural network) to replicate the actions taken by an expert in various states. This is achieved by collecting a dataset of state-action pairs from an expert's demonstrations and then using this dataset to train the policy via supervised learning, treating the problem as a simple function approximation task where the input
+
+is the state and the output is the action. The appeal of BC lies in its simplicity and efficiency, as it does not require reinforcement signals or interaction with the environment during training. Thus, BC has emerged as a popular method employed in the realm of robots, where learning a capable policy by online interaction is challenging and expensive. However, it also has limitations, such as the tendency to accumulate errors due to covariate shift, where the policy encounters states that are not well-represented in the training data, leading to actions that deviate from the experts', and thus to states that are even less well-represented, in a potentially compounding fashion. Despite its limitations, BC can be quite effective for tasks where the expert's policy is easy to capture with supervised learning, and it serves as a foundation for more complex imitation learning algorithms that seek to address its shortcomings.
+
+# D ALGORITHM DESCRIPTION
+
+The practical implementation of ReViWo method is presented in the form of pseudo-code in Algorithm 1.
+
+Algorithm 1 Representation learning for View-invariant World model (ReViWo)
+Required: a multi-view image dataset $\mathcal{O}$ offline control data $\mathcal{D}$ and a empty replay buffer for world model rollout $\tilde{\mathcal{D}}$
+Output: the optimized robotic control policy $\pi$ . 1: Initialize the autoencoder $p_{\phi},q_{\phi}$ , world model $\mathcal{M}_{\theta}$ , reward model $\mathcal{R}_{\Theta}$ and policy $\pi_{\Phi}$ , where the subscript denotes their parameters. 2: // Training autoencoder 3: while training not converge do 4: Sample $(o_{s_1}^{v_1},o_{s_2}^{v_2},o_{s_1}^{v_2})$ data from $\mathcal{O}$ 5: Update $\phi$ based on AE training objective in Eq. (3). 6: end while 7: Pre-process visual observation in $\mathcal{D}$ from $s_t$ to $z_{s_t}$ 8: Update the offline control dataset with $(z_{s_t},a_t,z_{s_{t + 1}},r_t)$ 9: // Training world model 10: while AE training not converge do 11: Sample $(s_t,a_t,s_{t + 1},r_t)$ from $\mathcal{D}$ 12: Update world model parameters $\theta$ with world model training objective in Eq. (4). 13: Update reward model parameters $\Theta$ with supervised learning on reward data. 14: end while 15: // Training policy 16: while policy training not converge do 17: Sample in the world model with $\pi_{\Phi}$ and $\mathcal{R}_{\Theta}$ to collect $(\tilde{z}_{s_t},a_t,\tilde{z}_{s_{t + 1}},\tilde{r}_t)$ 18: Update replay buffer: $\tilde{\mathcal{D}} = \tilde{\mathcal{D}}\cup (\tilde{z}_{s_t},a_t,\tilde{z}_{s_{t + 1}},\tilde{r}_t)$ 19: Sample from both $\mathcal{D}$ and $\tilde{\mathcal{D}}$ to update $\Phi$ with COMBO algorithm. 20: end while 21: return the optimized policy $\pi$
+
+# E DISCUSSION ON THE USAGE OF DATASET WITH VIEW LABELS
+
+In this research, we present a method for robust robotic manipulation that relies on a multi-view dataset that has implicit view labels to train the autoencoder. We would like to discuss the rationality of employing such labels for robust robotic control. The view information is important in visual robotics control. The ability to discriminate between features that are relevant under different viewing conditions is paramount. View labels facilitate this process by guiding the model to associate specific features with the viewpoints they are most relevant to, thereby enhancing the model's ability to generalize these features across a range of similar viewpoints. Some previous works (Liu et al., 2024) also attempt to train with the view label. Different from Liu et al. (2024), we do not explicitly use the view labels like camera parameters, but the multi-view images that are naturally aligned in states or viewpoints.
+
+Besides, in practice, it is not expensive to obtain the viewpoint labels, as we can record multiple manipulation trajectories from some fixed-position cameras. Such view information is not just a facilitator for quicker learning, but also a critical component that imbues the model with a deeper understanding of its operational context. It empowers the model to develop a robust, interpretable, and adaptable framework for robotic manipulation that is essential for real-world applications. Moreover, we demonstrate that ReViWo can be integrated with multi-view data with that is without a view label. Our experiments in Tab. 2 demonstrate the efficacy of such integration.
+
+# F ADDITIONAL RESULTS
+
+# F.1 RESULTS ON MORE TASKS
+
+We conduct experiments on more tasks in the Meta-world environment, including Coffee Button, Faucet Open, and Dial Turn. The experiment results are presented in Fig. F.1.
+
+
+(a) Coffee Button Open
+
+
+(b)Faucet Open
+Figure 10: Performance of Imitation Learning with View-invariant Representation. The x-axis denotes the disturbance type, and the y-axis denotes the average success rate of the last two checkpoints, by evaluation for 30 episodes.
+
+
+(c) Dial Turn
+
+# F.2 IMITATION LEARNING WITH VIEW-INVARIANT REPRESENTATION
+
+Imitation learning is a widely-considered setup in the field of robotics. We further investigate whether the learned VIR can be utilized for imitation learning. To this end, we apply BC with the learned VIR using the offline control data. ReViWo's capability to learn view-invariant representations enables the application of Imitation Learning as an alternative to training a world model for robotic control policy acquisition. Fig. 11 illustrates the success rate of Behavior Cloning utilizing view-invariant representations (RiVi-BC). While RiVi-BC does not surpass ReViWo, it outperforms conventional Behavior Cloning with a VAE encoder. The performance drop of BC is primarily attributed to distributional shift and the accumulation of errors during sequential decision-making. BC is inherently susceptible to these issues, as it relies on imitating actions from a fixed dataset. However, it is noteworthy that when BC is paired with VIR, it outperforms BC with VAE representations. This outcome underscores the robustness of VIR in novel viewpoints and improving overall performance.
+
+
+(a) Door Open
+
+
+(b)Drawer Open
+Figure 11: Performance of Imitation Learning with View-invariant Representation. The x-axis denotes the disturbance type, and the y-axis denotes the average success rate of the last two checkpoints, by evaluation for 30 episodes.
+
+
+(c) Window Close
+
+# F.3 MORE EXAMPLES OF DECODER OUTPUT
+
+
+Fig. 12 presents additional examples of the decoder output.
+VIE
+Input
+VDE
+Input
+Decoder
+Output
+Ground
+Truth
+Figure 12: Additional examples of the decoder output the corresponding ground truth image. The decoder can generate the images that combine the task state in VIE inputs, and the viewpoint in VDE inputs.
+
+
+VIE
+Input
+VDE
+Input
+Decoder
+Output
+Ground
+Truth
\ No newline at end of file
diff --git a/ICLR/2025/Learning View-invariant World Models for Visual Robotic Manipulation/images.zip b/ICLR/2025/Learning View-invariant World Models for Visual Robotic Manipulation/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..00c9aa922f03911e0ef414b919d3cb90ea55a826
--- /dev/null
+++ b/ICLR/2025/Learning View-invariant World Models for Visual Robotic Manipulation/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f7452bde0403992e85c1aa57ab9e3d171627143882a0fbf15b0261ee525e7092
+size 741004
diff --git a/ICLR/2025/Learning View-invariant World Models for Visual Robotic Manipulation/layout.json b/ICLR/2025/Learning View-invariant World Models for Visual Robotic Manipulation/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..e66b7169fb5e34299d94e068573c0e863c9d1441
--- /dev/null
+++ b/ICLR/2025/Learning View-invariant World Models for Visual Robotic Manipulation/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:732f9c040b2d2abdc26b0a6538590312fe922e2ddf668f8740154d3a2b63f3bf
+size 700040
diff --git a/ICLR/2025/Learning a Fast Mixing Exogenous Block MDP using a Single Trajectory/69c774b5-a119-4183-828b-234fe2c1a26b_content_list.json b/ICLR/2025/Learning a Fast Mixing Exogenous Block MDP using a Single Trajectory/69c774b5-a119-4183-828b-234fe2c1a26b_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..504dfd8ff1557bd9c2c7831441e7752f5168485d
--- /dev/null
+++ b/ICLR/2025/Learning a Fast Mixing Exogenous Block MDP using a Single Trajectory/69c774b5-a119-4183-828b-234fe2c1a26b_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ba6d64f1fbfc949d0fc6c22e24ab68216458778112d6fda39a7be9f3216cefd1
+size 353191
diff --git a/ICLR/2025/Learning a Fast Mixing Exogenous Block MDP using a Single Trajectory/69c774b5-a119-4183-828b-234fe2c1a26b_model.json b/ICLR/2025/Learning a Fast Mixing Exogenous Block MDP using a Single Trajectory/69c774b5-a119-4183-828b-234fe2c1a26b_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..2808a9289411c136b473ea9ca730f4356cccb598
--- /dev/null
+++ b/ICLR/2025/Learning a Fast Mixing Exogenous Block MDP using a Single Trajectory/69c774b5-a119-4183-828b-234fe2c1a26b_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:35d47cf3ef593ed3369429811248dbdda92880bc14bb50ac70193d95aaf54ffb
+size 402434
diff --git a/ICLR/2025/Learning a Fast Mixing Exogenous Block MDP using a Single Trajectory/69c774b5-a119-4183-828b-234fe2c1a26b_origin.pdf b/ICLR/2025/Learning a Fast Mixing Exogenous Block MDP using a Single Trajectory/69c774b5-a119-4183-828b-234fe2c1a26b_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..58a8995112f0be926fbff24bd45868f8d57aab6e
--- /dev/null
+++ b/ICLR/2025/Learning a Fast Mixing Exogenous Block MDP using a Single Trajectory/69c774b5-a119-4183-828b-234fe2c1a26b_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:bececc03a8e3636733cf5a97a2850368b51d8bdeb64c40d3f36a3391e9b4c8ae
+size 1211980
diff --git a/ICLR/2025/Learning a Fast Mixing Exogenous Block MDP using a Single Trajectory/full.md b/ICLR/2025/Learning a Fast Mixing Exogenous Block MDP using a Single Trajectory/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..299bd82153709b17466778a0448058c3cecee69a
--- /dev/null
+++ b/ICLR/2025/Learning a Fast Mixing Exogenous Block MDP using a Single Trajectory/full.md
@@ -0,0 +1,1630 @@
+# LEARNING A FAST MIXING EXOGENOUS BLOCK MDP USING A SINGLE TRAJECTORY
+
+Alexander Levine*
+
+The University of Texas at Austin
+
+Peter Stone
+
+The University of Texas at Austin
+Sony AI
+
+Amy Zhang
+
+The University of Texas at Austin
+
+# ABSTRACT
+
+In order to train agents that can quickly adapt to new objectives or reward functions, efficient unsupervised representation learning in sequential decision-making environments can be important. Frameworks such as the Exogenous Block Markov Decision Process (Ex-BMDP) have been proposed to formalize this representation-learning problem (Efroni et al., 2022b). In the Ex-BMDP framework, the agent's high-dimensional observations of the environment have two latent factors: a controllable factor, which evolves deterministically within a small state space according to the agent's actions, and an exogenous factor, which represents time-correlated noise, and can be highly complex. The goal of the representation learning problem is to learn an encoder that maps from observations into the controllable latent space, as well as the dynamics of this space. Efroni et al. (2022b) has shown that this is possible with a sample complexity that depends only on the size of the controllable latent space, and not on the size of the noise factor. However, this prior work has focused on the episodic setting, where the controllable latent state resets to a specific start state after a finite horizon.
+
+By contrast, if the agent can only interact with the environment in a single continuous trajectory, prior works have not established sample-complexity bounds. We propose STEEL, the first provably sample-efficient algorithm for learning the controllable dynamics of an Ex-BMDP from a single trajectory, in the function approximation setting. STEEL has a sample complexity that depends only on the sizes of the controllable latent space and the encoder function class, and (at worst linearly) on the mixing time of the exogenous noise factor. We prove that STEEL is correct and sample-efficient, and demonstrate STEEL on two toy problems. Code is available at: https://github.com/midi-lab/steel.
+
+# 1 INTRODUCTION
+
+This work considers the unsupervised representation learning problem in sequential control environments. Suppose an agent (e.g., a robot) is able to make observations and take actions in an environment for some period of time, but does not yet have an externally-defined task to accomplish. We want the agent to learn a model of the environment that may be useful for many downstream tasks: the question is then how to efficiently explore the environment to learn such a model.
+
+Sequential decision-making tasks are often modeled as Markov Decision Processes (MDPs). In the unsupervised setting, an MDP consists of a set of possible observations $\mathcal{X}$ , a set of possible actions $\mathcal{A}$ , a distribution over initial observations $\pi_0 \in \mathcal{P}(\mathcal{X})$ , and a transition function $\mathcal{T}: \mathcal{X} \times \mathcal{A} \to \mathcal{P}(\mathcal{X})$ . The agent does not have direct access to $\mathcal{T}$ . Instead, at each timestep $t$ , the agent observes $x_{t} \in \mathcal{X}$ and selects action $a_{t}$ . The next observation $x_{t+1}$ is then sampled as $x_{t+1} \sim \mathcal{T}(x_{t}, a_{t})$ .
+
+In the totally generic MDP setting, the only model learning possible is to directly learn the transition function $\mathcal{T}$ . However, if the space of possible observations is large, this task becomes intractable. Therefore, prior works have attempted to simplify the problem by assuming that the MDP has some underlying structure, which a learning algorithm can exploit. One such structural assumption is the Ex-BMDP (Exogenous Block MDP) framework, introduced by Efroni et al. (2022b). The Ex-
+
+BMDP framework captures situations where the space of observations $\mathcal{X}$ is very large, but the parts of the environment that the agent has control over can be represented by a much smaller latent state.
+
+An Ex-BMDP has an observation space $\mathcal{X}$ , a controllable (or endogenous) latent state space $\mathcal{S}$ , and an exogenous state space $\mathcal{E}$ . In the version of this setting that we consider, the controllable state $s_t \in \mathcal{S}$ evolves deterministically according to a latent transition function $T: \mathcal{S} \times \mathcal{A} \to \mathcal{S}$ . That is: $s_{t+1} = T(s_t, a_t)$ . The exogenous state $e_t \in \mathcal{E}$ represents time correlated noise: it evolves stochastically, independently of actions, according to a transition function $\mathcal{T}_e: \mathcal{E} \to \mathcal{P}(\mathcal{E})$ . That is: $e_{t+1} \sim \mathcal{T}_e(e_t)$ . Neither $s$ nor $e$ is directly observed. Instead, the observation $x_t$ is sampled as $x_t \sim \mathcal{Q}(s_t, e_t)$ , where $\mathcal{Q} \in \mathcal{S} \times \mathcal{E} \to \mathcal{P}(\mathcal{X})$ is the emission function. We make a block assumption on $\mathcal{Q}$ with respect to $\mathcal{S}$ : that is, we assume that for distinct latent states $s, s' \in \mathcal{S}$ , the sets of possible observations that can be sampled from $\mathcal{Q}(s, \cdot)$ and $\mathcal{Q}(s', \cdot)$ are disjoint. In other words, there exists a deterministic partial inverse of $\mathcal{Q}$ , which is $\phi^*: \mathcal{X} \to \mathcal{S}$ , such that if $x \sim \mathcal{Q}(s, e)$ , then $\phi^*(x) = s$ . Hence, it is always possible in principle to infer $s$ from $x$ .1
+
+As in the general MDP setting, the agent only directly observes $x_{t} \in \mathcal{X}$ , and chooses actions $a_{t}$ in response. However, rather than attempting to learn the full transition dynamics $\mathcal{T}$ of the system (which is determined by $T$ , $\mathcal{T}_e$ , and $\mathcal{Q}$ together), the objective of the agent is instead to efficiently model only the latent encoder $\phi^{*}$ and the latent transition function $T$ . Together, these models allow the agent to plan or learn in downstream tasks using the encoded representations $\phi^{*}(x)$ , modeling only the parts of the environment that the agent can actually control (the latent state $s \in S$ ) while ignoring the potentially-complex dynamics of time-correlated noise.
+
+Specifically, the aim of efficient representation learning in this setting is to learn $\phi^{*}$ and $T$ , using a number of environment steps of exploration that is dependent only on $|\mathcal{S}|$ and the size of the function class $\mathcal{F}$ that the encoder $\phi^{*}$ belongs to, and is not dependent on the size of $\mathcal{X}$ or $\mathcal{E}$ . This allows $\mathcal{X}$ and $\mathcal{E}$ to be very large or potentially even infinite, but still allows for representation learning to be tractable. Efroni et al. (2022b) proposes an algorithm, PPE, with this property. However, PPE only works in a finite-horizon setting, where the agent interacts with the environment in episodes of fixed length $H$ . After each episode, the controllable state (almost) always resets to a deterministic start state $s_0 \in S$ at the beginning of each episode. In this work, we instead consider the single-trajectory, no-reset setting, where the agent interacts with the environment in a single episode of unbounded length, with no ability to reset the state. This better models real-world cases, where, for example, expensive human intervention would be required to "reset" the environment that a robot trains in: we would rather not require this intervention. This no-reset Ex-BMDP setting was previously considered by Lamb et al. (2023) and Levine et al. (2024); however, the algorithms presented in those works do not have sample-complexity guarantees.
+
+By contrast, the algorithm presented in this work is guaranteed to learn $\phi^{*}$ and $T$ using samples polynomial in $|\mathcal{S}|$ and $\log |\mathcal{F}|$ , with no dependence on $|\mathcal{E}|$ and $|\mathcal{X}|$ . We only require that the mixing time of the exogenous noise is bounded. In other words, the requirement is that $t_{\mathrm{mix}}$ , the mixing time of the Markov chain on $\mathcal{E}$ induced by $\mathcal{T}_{e}$ , is at most some known quantity $\hat{t}_{\mathrm{mix}}$ . Note that we do not require that the endogenous state $s$ mixes quickly under any particular policy (although we do require - as do Lamb et al. (2023) and Levine et al. (2024) - that all states in $\mathcal{S}$ are eventually reachable from one another). In this setting, we derive an algorithm with the following asymptotic sample complexity (where $\mathcal{O}^*(f(x)) \coloneqq \mathcal{O}(f(x)\log(f(x))))$ :
+
+$$
+\mathcal {O} ^ {*} \left(N D | \mathcal {S} | ^ {2} | \mathcal {A} | \cdot \log \frac {| \mathcal {F} |}{\delta} + | \mathcal {S} | | \mathcal {A} | \hat {t} _ {\text {m i x}} \cdot \log \frac {N | \mathcal {F} |}{\delta} + \frac {| \mathcal {S} | ^ {2} D}{\epsilon} \cdot \log \frac {| \mathcal {F} |}{\delta} + \frac {| \mathcal {S} | \hat {t} _ {\text {m i x}}}{\epsilon} \cdot \log \frac {| \mathcal {F} |}{\delta}\right), \tag {1}
+$$
+
+where $N$ is a predetermined upper-bound on $|\mathcal{S}|$ , $\delta$ is the failure rate of the algorithm, $D$ is the maximum distance between any two latent states in $\mathcal{S}$ (at most $|\mathcal{S}|$ ), and $\epsilon$ is the minimum accuracy of the output learned encoder $\phi$ on any latent state class $s \in \mathcal{S}$ . Note that this expression is at worst polynomial in $|\mathcal{S}|$ , and linear in $\hat{t}_{\mathrm{mix}}$ and $\log |\mathcal{F}|$ .
+
+Our algorithm proceeds iteratively, at each iteration taking a certain sequence of actions repeatedly in a loop. Because the latent state dynamics $T$ are deterministic, this process is guaranteed to (after some transient period) enter a cycle of latent states, of bounded length. Because the latent states in
+
+this cycle are repeatedly re-visited, the algorithm is then able to predictably collect many samples of the same latent state, without the need to "re-set" the environment. Furthermore, because this looping can be continued indefinitely, the algorithm can "wait out" the mixing time of the exogenous dynamics, in order to collect near-i.i.d. samples of each latent state. We call our algorithm Single-Trajectory Exploration for Ex-BMDPs via Looping, or STEEL. In summary, we: (1) introduce STEEL, the first provably sample-efficient algorithm for learning Ex-BMDPs in a general functionapproximation setting from a single trajectory, (2) prove the correctness and sample complexity of STEEL, and (3) empirically test STEEL on two toy problems to demonstrate its efficacy.
+
+# 2 RELATED WORKS
+
+# 2.1 REPRESENTATION LEARNING FOR EX-BMDP AND EXO-MDPS
+
+The Ex-BMDP model was originally introduced by Efroni et al. (2022b), who propose the PPE algorithm to learn the endogenous state encoder $\phi(\cdot)$ and latent transition dynamics $T$ of an Ex-BMDP. PPE has explicit sample-complexity guarantees that are polynomial in $|\mathcal{S}|$ and $\log |\mathcal{F}|$ : crucially, the sample complexity does not depend explicitly on $|\mathcal{E}|$ or $|\mathcal{X}|$ . However, unlike the method proposed in this work, PPE is restricted to the episodic, finite horizon setting with (nearly) deterministic resets. After each episode, the endogenous state is (nearly) always reset to the same starting latent state $s_0 \in S$ , and the exogenous state $e_0 \in \mathcal{E}$ is i.i.d. resampled from a fixed starting distribution. Similarly to this work, PPE assumes that the latent transition dynamics $T$ are (close to) deterministic. Because both $s_0$ and $T$ are nearly deterministic, PPE can collect i.i.d. samples of observations $x$ associated with any latent state $s \in S$ simply by executing the same sequence of actions starting from $s_0$ after each reset. By contrast, in our setting, we cannot reset the Ex-BMDP state, so it is more challenging to collect samples of a given latent state $s$ .
+
+Other works have considered the Ex-BMDP setting without latent state resets. Lamb et al. (2023) and Levine et al. (2024) consider a setting similar to ours, where the agent interacts with the environment in a single trajectory. However, these methods do not provide sample-complexity guarantees, and instead are only guaranteed to converge to the correct encoder in the limit of infinite samples.
+
+Efroni et al. (2022a) considers a related "Exo-MDP" setting, and proposes the ExoRL algorithm. In this setting, while the environment is episodic, the latent state $s_0$ resets to a starting value sampled randomly from a fixed distribution after each episode. Additionally, the latent transition dynamics may be non-deterministic. However, unlike our work, Efroni et al. (2022a) does not consider the general function-approximation setting for state encoders. Instead, the observation $x$ is explicitly factorized into $d$ factors, and the controllable state $s$ consists of some unknown subset of $k$ of these factors: the representation learning problem is reduced to identifying which $k$ of the $d$ factors are action-dependent. ExoRL guarantees a sample-complexity polynomial in $2^k = |\mathcal{S}|$ and $\log(d)^2$ .
+
+Recently, Mhammedi et al. (2024) have proposed an algorithm for provably sample-efficient policy optimization in the episodic Ex-BMDP setting with rewards, that can handle nondeterministic latent dynamics. However, the algorithm requires simulator access to the environment: this means that the agent is able to reset the environment to any observation $x \in \mathcal{X}$ that has been previously observed. This requirement is considerably stronger than even the requirement of deterministic resets to a single latent state found in Efroni et al. (2022b).
+
+In addition to our main claim that our proposed algorithm is the first provably sample-efficient algorithm for representation learning in the single-trajectory Ex-BMDP setting, another property of our method is that we do not make a "block" assumption on the exogenous state $e$ . For a fixed $s \in S$ , in our setting, the same observation $x \in \mathcal{X}$ may be emitted by multiple distinct exogenous states $e, e' \in \mathcal{E}$ . Prior works (Efroni et al., 2022b;a; Lamb et al., 2023; Levine et al., 2024) have stated assumptions that require that $e$ may be uniquely inferred from $x$ .3 Removing this restriction allows one to model a greater range of phenomena. For example, suppose an agent can turn on or turn off
+
+
No-Reset Setting
Sample-Complexity Guarantees
Function Approximation
Nondeterministic Reset State
Partially-Observed Exogenous State
Nondeterministic Latent Transitions
STEEL
✓
✓
✓
✓
✓
✗
(Efroni'22b)
✗
✓
✓
✗
?
✗
(Lamb'23)
✓
✗
✓
✓
?
✗
(Levine'24)
✓
✗
✓
✓
?
✗
(Efroni'22a)
✗
✓
✗
✓
✗
✓
+
+Table 1: Comparison to Prior Works for learning Ex-BMDP Latent Dynamics
+
+a "noisy TV": i.e., the agent can control whether or not some source of temporally-correlated noise is observable. This is allowed in our version of the Ex-BMDP formulation, but is not allowed if $e$ must be fully inferable from $x$ . One prior work, Wu et al. (2024), also (implicitly) removes the block restriction on the exogenous state $e$ . That work extends Ex-BMDP representation learning to the partially-observed state setting, with the assumption that the observation history within some known window is sufficient to infer the latent state $s$ . However, Wu et al. (2024) does not provide any sample-complexity guarantees. Wang et al. (2022) and Kooi et al. (2023) consider similar settings with continuous controllable latent state. However, the proposed methods require explicitly modeling the exogenous noise state $e$ , and there are no sample complexity guarantees. Trimponias & Dietterich (2023) considers the sample-efficiency of reward-based reinforcement learning in Ex-BMDPs assuming known endogenous and exogenous state encoders; however, it does not address the sample complexity of the representation learning problem.
+
+# 2.2 REPRESENTATION LEARNING FOR BLOCK MDPS AND LOW-RANK MDPS
+
+The Ex-BMDP framework can be considered as a generalization of the Block MDP framework (Dann et al., 2018; Du et al., 2019). Like the Ex-BMDP setting, the Block MDP setting models environments where the observed state space $\mathcal{X}$ of the overall MDP is much larger than an action-dependent latent state space $S$ . Some works in the Block MDP framework (Mhammedi et al., 2023; Misra et al., 2020) also allow for nondeterministic latent state transitions: that is $s_{t+1} \sim \mathcal{T}_s(s_t, a_t)$ . However, unlike the Ex-BMDP setting, there is no exogenous latent state $e \in \mathcal{E}$ or exogenous dynamics $\mathcal{T}_e$ : the observation is simply sampled as $x_t \sim \mathcal{Q}(s_t)$ . In other words, the Block MDP setting does not allow for time correlated noise outside of the modelled latent state $s$ . Therefore, even when stochastic latent-state transition are allowed, any time-correlated noise must be captured in $S$ , and so impacts the sample complexity (which is typically polynomial in $|\mathcal{S}|$ ).
+
+The Low-Rank MDP framework can also be considered as an extension the Block MDP framework, but is an orthogonal extension to the Ex-BMDP framework. In Low Rank MDPs, there exist functions $\phi : \mathcal{X} \times \mathcal{A} \to \mathbb{R}^d$ and $\mu : \mathcal{X} \to \mathbb{R}^d$ , such that $\operatorname*{Pr}(x_{t+1} = x'|x_t = x, a_t = a) = \phi(x, a)^T\mu(x')$ . The sample complexity depends only polynomially on $d$ and logarithmically on the size of the function classes for the state encoders $\phi$ and $\mu$ ; it should not depend explicitly on $|\mathcal{X}|$ . Works under this framework include Agarwal et al. (2020); Uehara et al. (2022) and Cheng et al. (2023). Other works in the Low Rank MDP framework use a reward signal and only explicitly learn part of the representation (the encoder $\phi$ ), including Mhammedi et al. (2023) and Jiang et al. (2017); see Mhammedi et al. (2023) for a recent, thorough comparison of these works. Note that while BMDPs can be formulated as low-rank MDPs with $d = |\mathcal{S}|$ , this does not hold for Ex-BMDPs: the rank of the transition probabilities on $\mathcal{X}$ depends on $|\mathcal{E}|$ - as noted by Efroni et al. (2022b).
+
+# 3 NOTATION AND ASSUMPTIONS
+
+- The Ex-BMDP, $M$ , has observation space $\mathcal{X}$ , with discrete endogenous states $\mathcal{S}$ that have deterministic, controllable dynamics, and possibly continuous exogenous states $\mathcal{E}$ with nondeterministic dynamics that do not depend on actions. Concretely, we have that $s_{t+1} = T(s_t, a_t)$ , where $T$ is a deterministic function, and $e_{t+1} \sim \mathcal{T}_e(e_t)$ . Let $x_t \sim \mathcal{Q}(s_t, e_t)$ , for $x_t \in \mathcal{X}$ , $s_t \in \mathcal{S}$ , $e_t \in \mathcal{E}$ , with the block assumption on $\mathcal{S}$ . That is, a given $x \in \mathcal{X}$ can be emitted only by one particular $s \in \mathcal{S}$ , which we define as $\phi^*(x_t) = s_t$ . We assume that $M$ is accessed in one continuous trajectory. The initial endogenous state is an arbitrary $s_{\mathrm{init}} \in \mathcal{S}$ , and the initial exogenous state $e_{\mathrm{init}} \sim \pi_{\mathcal{E}}^{\mathrm{init}}$ , where $\pi_{\mathcal{E}}^{\mathrm{init}} \in \mathcal{P}(\mathcal{E})$ .
+
+- The exogenous dynamics on $\mathcal{E}$ are irreducible and aperiodic, with stationary distribution $\pi_{\mathcal{E}}$ . There is a known upper bound $\hat{t}_{\mathrm{mix}}$ on the mixing time $t_{\mathrm{mix}}$ , where (as defined in
+
+Levin & Peres (2017) and elsewhere) $t_{\mathrm{mix}} \coloneqq t_{\mathrm{mix}}(1/4)$ , where $t_{\mathrm{mix}}(\epsilon)$ is defined such that:
+
+$$
+\forall e \in \mathcal {E}, \| \Pr \left(e _ {t + t _ {\operatorname* {m i x}} (\epsilon)} = e ^ {\prime} \mid e _ {t} = e\right) - \pi_ {\mathcal {E}} \left(e ^ {\prime}\right) \| _ {\mathrm {T V}} \leq \epsilon . \tag {2}
+$$
+
+This assumption bounds how "temporally correlated" the noise in the Ex-BMDP is: it ensures that the exogenous noise state $e_{t}$ at time $t$ is relatively unlikely to affect $e_{t + \hat{t}_{\mathrm{mix}}}$ .
+
+- We have a known upper bound on the number of endogenous latent states, $N \geq |S|$ . Additionally, we assume that all endogenous latent states can be reached from one another in at most $D$ steps, for some finite $D$ (note that we do not assume that all pairs of states in $S$ can be reached from one another in exactly $D$ steps). We assume that there is a known upper bound on this diameter: $\hat{D} \geq D$ . Trivially, if all endogenous latent states are reachable from one another then $D \leq N - 1$ , so if a tighter bound is not available then we can use $\hat{D} \coloneqq N - 1$ . (In fact, it is not very important to use a tight bound here: $\hat{D}$ does not appear in the asymptotic sample complexity.)
+
+- There is an encoder hypothesis class $\mathcal{F} : \mathcal{X} \to \{0,1\}$ , with realizability for one-vs-rest classification of endogenous states. That is,
+
+$$
+\forall s \in \mathcal {S}, \exists f \in \mathcal {F}: \forall x \in \mathcal {X}, f (x) = \mathbb {1} _ {\phi^ {*} (x) = s}. \tag {3}
+$$
+
+In other words, for every latent state $s \in S$ , there is some function $f \in \mathcal{F}$ such that $f(x) = 1$ if and only if $\phi^{*}(x) = s$ .
+
+- The algorithm has access to a training oracle for $\mathcal{F}$ , which, given two finite multi-sets $D_0$ and $D_1$ each with elements from $\mathcal{X}$ , returns a classifier $f \in \mathcal{F}$ . The only requirement that we have for this oracle is that, if there exist any classifiers $\mathcal{F}^* \subset \mathcal{F}$ , such that, for $f^* \in \mathcal{F}^*$ , $\forall x \in D_0$ , $f^*(x) = 0$ and $\forall x \in D_1$ , $f^*(x) = 1$ , then the oracle will return some member of $\mathcal{F}^*$ . Note that an optimizer that minimizes the 0-1 loss on $D_0 \cup D_1$ will satisfy this requirement. However, it is not strictly necessary to minimize the 0-1 loss in particular.
+- General notation: Let $\mathcal{M}(\mathcal{A})$ be the set of all multisets of the set $\mathcal{A}$ . Let $\perp$ represent an undefined value. For lists $x, y$ , let $x \cdot y$ represent their concatenation: that is, $[a, b] \cdot [c, d] = [a, b, c, d]$ . For multisets $A$ and $B$ , let $A \oplus B$ be their union, where their multiplicities are additive. Let $\%$ be the modulo operator, so that $a\% b \equiv a \pmod{b}$ and $0 \leq a\% b \leq b - 1$ .
+
+# 4 ALGORITHM
+
+The STEEL algorithm is presented in full in Appendix A; in this section, we give a high-level overview of the algorithm, and present bounds on its sample-complexity. We state the sample-complexity and correctness of STEEL in the following theorem, which is proved in Appendix B.
+
+Theorem 1. For an Ex-BMDP $M = \langle \mathcal{X},\mathcal{A},\mathcal{S},\mathcal{E},\mathcal{Q},T,\mathcal{T}_e,\pi_{\mathcal{E}}^{init}\rangle$ starting at an arbitrary endogenous latent state $s_{init} \in S$ , with $|\mathcal{S}| \leq N$ , where the exogenous Markov chain $\mathcal{T}_{e}$ has mixing time at most $\hat{t}_{mix}$ , and where all states in $S$ are reachable from one another in at most $\hat{D}$ steps; and corresponding encoder function class $\mathcal{F}$ such that Equation 3 holds, the algorithm STEEL( $M,\mathcal{F},N,\hat{D},\hat{t}_{mix},\delta ,\epsilon$ ) will output a learned endogenous state space $S'$ , transition model $T'$ , and encoder $\phi'$ , such that, with probability at least $1 - \delta$ ,
+
+- $|\mathcal{S}'| = |\mathcal{S}|$ , and under some bijective function $\sigma : \mathcal{S} \to \mathcal{S}'$ , it holds that
+
+$$
+\forall s \in \mathcal {S}, a \in \mathcal {A}: \sigma (T (s, a)) = T ^ {\prime} (\sigma (s), a), a n d, \tag {4}
+$$
+
+Under the same bijection $\sigma$
+
+$$
+\forall s \in \mathcal {S}, \Pr_ {\substack {x \sim \mathcal {Q} (s, e), \\ e \sim \pi_ {\mathcal {E}}}} \left(\phi^ {\prime} (x) = \sigma \left(\phi^ {*} (x)\right)\right) \geq 1 - \epsilon , \tag{5}
+$$
+
+where $\pi_{\varepsilon}$ is the stationary distribution of $\mathcal{T}_e$
+
+Furthermore, the number of steps that STEEL executes on $M$ scales as:
+
+$$
+\mathcal {O} ^ {*} \Big (N D | \mathcal {S} | ^ {2} | \mathcal {A} | \cdot \log \frac {| \mathcal {F} |}{\delta} + | \mathcal {S} | | \mathcal {A} | \hat {t} _ {m i x} \cdot \log \frac {N | \mathcal {F} |}{\delta} + \frac {| \mathcal {S} | ^ {2} D}{\epsilon} \cdot \log \frac {| \mathcal {F} |}{\delta} + \frac {| \mathcal {S} | \hat {t} _ {m i x}}{\epsilon} \cdot \log \frac {| \mathcal {F} |}{\delta} \Big),
+$$
+
+where $\mathcal{O}^*(f(x)) \coloneqq \mathcal{O}(f(x) \log(f(x)))$ .
+
+
+Figure 1: STEEL discovers the latent dynamics $S$ and $T$ by iteratively adding cycles to the learned dynamics graph. In this simple example, the initially-unknown "true" dynamics consist of 6 states arranged in a grid, where the agent can move (U)p, (D)own, (L)eft, or (R)ight. STEEL takes 12 iterations to discover the full dynamics: each pane corresponds to an iteration, and shows the still-unknown parts of the dynamics graph in grey, the already-known parts of the dynamics graph in black, and the cycle being explored in red. States are represented as circles and transitions as arrows.
+
+We now present a high-level overview of STEEL. The algorithm proceeds in three phases. In the first phase, the algorithm learns the transition dynamics; in the second phase, it collects additional samples of observations of each latent state in $S$ ; in the final phase, the encoder $\phi'$ is learned.
+
+STEEL Phase 1: Learning latent dynamics. In the first phase, STEEL constructs a learned latent state space $S'$ and learned transition dynamics $T'$ by iteratively adding cycles to the known transition graph. At each iteration, a sequence of actions $\hat{a}$ is chosen such that, starting anywhere in the known $T'$ , taking the actions in $\hat{a}$ is guaranteed to traverse a transition not already in $T'$ . (We explain the process of constructing $\hat{a}$ below.)
+
+STEEL then takes the actions in $\hat{a}$ repeatedly, collecting a sequence of observations $x_{CF}$ . Because the transitions in $T$ are deterministic, this sequence of transitions must eventually (after at most $|\mathcal{S}||\hat{a}|$ steps) enter a cycle of latent states, of length $n_{\mathrm{cyc}}|\hat{a}|$ , for some $n_{\mathrm{cyc}} \leq |\mathcal{S}|$ . Because $\hat{a}$ was chosen to always escape the known transitions in $T'$ , this cycle cannot be contained in $T'$ , so adding the states and transitions of the new cycle to $\mathcal{S}'$ and $T'$ is guaranteed to expand the known dynamics graph by at least one edge: this process will discover the full transition dynamics after at most $|\mathcal{S}||\mathcal{A}|$ iterations. See Figure 1 for an example of how STEEL constructs $\mathcal{S}'$ and $T'$ by adding cycles to the dynamics. Throughout this process, STEEL also collects a dataset $\mathcal{D}(s) \in \mathcal{M}(\mathcal{X})$ for each newly-discovered latent state $s \in \mathcal{S}'$ , so that each observation in $\mathcal{D}(s)$ has latent state $s$ . The observations within each dataset $\mathcal{D}(s)$ are collected at least $\hat{t}_{\mathrm{mix}}$ steps apart from one another, so they are near-i.i.d.
+
+Constructing $\hat{a}$ . To ensure that $\hat{a}$ always escapes the known transition graph given by $T'$ , at each iteration, STEEL uses a recurrent procedure to construct $\hat{a}$ . At the beginning of this procedure, $\hat{a}$ is initialized as empty, and a set of latent states $\mathcal{B}$ is initialized with all of the learned states in $S'$ . At each step of the procedure, $\mathcal{B}$ represents the set of known states $s \in S'$ that can be reached by starting at any arbitrary state $s' \in S'$ and taking the action sequence given by the partially-constructed action list $\hat{a}$ , following the known dynamics in $T'$ . At each step, STEEL chooses a state $s \in \mathcal{B}$ , and plans the shortest path from $s$ to any unknown transition in $T'$ . The corresponding sequence of actions, $\hat{a}'$ , is then appended to $\hat{a}$ , and $\mathcal{B}$ is updated by replacing each state $b \in \mathcal{B}$ with the state that results from starting at $b$ and taking the sequence of actions $\hat{a}'$ , according to the learned partial transition function $T'$ . If this path reaches an unknown transition in $T'$ , then $b$ is removed from $\mathcal{B}$ and not replaced. By construction, we know that the state $s$ will be removed, so $\mathcal{B}$ will shrink by at least one state at each step of the process. By the end, $\mathcal{B}$ is empty, and we are guaranteed that taking action sequence $\hat{a}$ from any state in $S'$ will lead to an unknown transition in $T'$ , as desired. Note that at each step, the shortest distance to an unknown transition has length at most $D + 1$ , and the procedure continues for at most $|S|$ steps, so $|\hat{a}| \leq |S'| \cdot (D + 1)$ .
+
+Identifying latent states. At each iteration, to identify the distinct latent states in the cycle, STEEL uses a subroutine called CycleFind. CycleFind additionally collects the datasets $\mathcal{D}(s)$ for each newly-discovered latent state. CycleFind itself has two phases:
+
+
+Figure 2: CycleFind determines the period of the cycle in $x_{CF}$ . See Section 4 under "CycleFind Phase 1." We show the sequence $x_{CF}$ sampled from $M$ : specifically, we show every $|\hat{a}|$ 'th observation, where the same actions $\hat{a}$ are taken between each one. The observations' latent states are color-coded as red, blue, and green: a pattern repeats every $3|\hat{a}|$ steps, so $n_{cyc} = 3$ . $D_1$ consists of the first observation in each $(n_{cyc}'|\hat{a}|)$ -cycle, and $D_0$ the other observations taken between executions of $\hat{a}$ . (Spans of length $\geq \hat{t}_{\mathrm{mix}}$ are skipped to ensure certain subsets of the datasets are near-i.i.d.)
+
+CycleFind Phase 1: Finding the cycle's periodicity. To identify the latent states in the cycle in $x_{CF}$ , CycleFind first determines cycle's period, $n_{\mathrm{cyc}}|\hat{a}|$ . To find $n_{\mathrm{cyc}}$ , CycleFind tests all possible values of $n_{\mathrm{cyc}}$ from $N$ to 1, in decreasing order. To check whether some candidate value, $n_{\mathrm{cyc}}'$ , is in fact $n_{\mathrm{cyc}}$ , CycleFind constructs two datasets, $D_0$ and $D_1$ from $x_{CF} = [x_1, \ldots]$ . These datasets are constructed so that if $n_{\mathrm{cyc}}' = n_{\mathrm{cyc}}$ , then $D_1$ contains observations of only one controllable latent state $s$ , and $D_0$ contains no observations of $s$ . Therefore, if one attempts to train a classifier $f$ to perfectly distinguish all observations in $D_0$ from those in $D_1$ , then such a classifier is unlikely to exist in $\mathcal{F}$ if $n_{\mathrm{cyc}}' > n_{\mathrm{cyc}}$ , but is guaranteed to exist if $n_{\mathrm{cyc}}' = n_{\mathrm{cyc}}$ , by the realizability assumption. In this way, CycleFind uses the training oracle to determine $n_{\mathrm{cyc}}$ .
+
+Specifically, the datasets used are (see Figure 2 for illustration.):
+
+$$
+D _ {0} := \left\{x _ {\bar {t} _ {\mathrm {m i x}} + \left(2 \bar {t} _ {\mathrm {m i x}} + n _ {\mathrm {c y c}} ^ {\prime} | \hat {a} |\right) i + j \cdot | \hat {a} | + \text {o f f s .}} \mid i \in \{0, \dots , k - 1 \}, j \in \{1, \dots , n _ {\mathrm {c y c}} ^ {\prime} - 1 \} \right\} \tag {6}
+$$
+
+$$
+D _ {1} := \left\{x _ {\left(2 \bar {t} _ {\text {m i x}} + n _ {\text {c y c}} ^ {\prime} \cdot | \hat {a} |\right) i + \text {o f f s .}} \mid i \in \{0, \dots , k - 1 \} \right\} \tag {7}
+$$
+
+where $\bar{t}_{\mathrm{mix}} := \lceil \hat{t}_{\mathrm{mix}} / (n_{\mathrm{cyc}}' \cdot |\hat{a}|) \rceil \cdot n_{\mathrm{cyc}}' \cdot |\hat{a}|$ is $\hat{t}_{\mathrm{mix}}$ rounded up to the nearest multiple of $n_{\mathrm{cyc}}' \cdot |\hat{a}|$ ; the number of samples needed for $D_1$ is $k$ (which depends on $\log(|F|)$ , $\log(\delta)$ , and other parameters); and offs. := $\max((N - 1) \cdot |\hat{a}|, \hat{t}_{\mathrm{mix}})$ is a constant offset to ensure that the Ex-BMDP endogenous state has entered the terminal cycle induced by $\hat{a}$ , and that the exogenous state has mixed.
+
+To see why $D_{1}$ and $D_{0}$ are perfectly distinguishable only if $n_{\mathrm{cyc}}^{\prime} = n_{\mathrm{cyc}}$ , consider the sequence of repeated latent states that compose the cycle, $[s_0^{\mathrm{cyc}}, \ldots, s_{n_{\mathrm{cyc}} \cdot |\hat{a}| - 1}^{\mathrm{cyc}}]$ . If we only consider every $|\hat{a}|$ 'th state in the cycle, then the resulting sequence, $[s_0^{\mathrm{cyc}}, s_{|\hat{a}|}^{\mathrm{cyc}}, \ldots, s_{(n_{\mathrm{cyc}} - 1) \cdot |\hat{a}|}^{\mathrm{cyc}}]$ , cannot contain any repeated states. Therefore,
+
+$$
+\forall n, m, \quad n \equiv m \quad (\mathrm {m o d} n _ {\mathrm {c y c}}) \Leftrightarrow \phi^ {*} (x _ {| \hat {a} | n + \text {o f f s .}}) = \phi^ {*} (x _ {| \hat {a} | m + \text {o f f s .}}), \tag {8}
+$$
+
+and in particular, if $n_{\mathrm{cyc}}' = n_{\mathrm{cyc}}$ , then $n \equiv m$ (mod $n_{\mathrm{cyc}}'$ ) $\Leftrightarrow \phi^{*}(x_{|\hat{a}|n + \mathrm{offs}.}) = \phi^{*}(x_{|\hat{a} |m + \mathrm{offs}.})$ . Then, through modular arithmetic, we can conclude that $D_{1}$ contains observations of only one latent state of the cycle, while $D_0$ contains observations of all of the other latent states.
+
+Meanwhile, if $n_{\mathrm{cyc}}' > n_{\mathrm{cyc}}$ , then for each observation in $D_1$ , there is a corresponding observation in $D_0$ with the same latent state, that is nearly-identically and independently distributed (i.e., they are collected $\geq \hat{t}_{\mathrm{mix}}$ steps apart). In particular, consider the (unknown) subset $D_0^{(j')} \subseteq D_0$ , defined as:
+
+$$
+D _ {0} ^ {(j ^ {\prime})} := \left\{x _ {\bar {t} _ {\operatorname* {m i x}} + \left(2 \bar {t} _ {\operatorname* {m i x}} + n _ {\mathrm {c y c}} ^ {\prime} | \hat {a} |\right) i + j ^ {\prime} \cdot | \hat {a} | + \text {o f f s .} \right| i \in \{0, \dots , k - 1 \} \} \tag {9}
+$$
+
+where $j^{\prime}:= (-\lceil \hat{t}_{\mathrm{mix}} / (n_{\mathrm{cyc}}^{\prime}\cdot |\hat{a}|)\rceil \cdot n_{\mathrm{cyc}}^{\prime} - 1)\% n_{\mathrm{cyc}} + 1.$ From arithmetic and applying Equation 8, we see that all observations in $D_0^{(j')}$ and all observations in $D_{1}$ have the same endogenous latent state. Additionally, all observations in $D_0^{(j')}$ and $D_{1}$ are collected at least $\hat{t}_{\mathrm{mix}}$ steps apart.
+
+CycleFind Phase 2: Identifying latent states in the cycle. Once $n_{\mathrm{cyc}}$ is known, CycleFind can identify the latent states which re-occur every $n_{\mathrm{cyc}}|\hat{a}|$ steps in $x_{CF}$ . These latent states are not necessarily distinct from each other, and may also have been discovered already in a previous iteration of CycleFind. Therefore, CycleFind extracts from $x_{CF}$ datasets $\mathcal{D}_i'$ for each position in the cycle: $i \in \{0, \dots, n_{\mathrm{cyc}}|\hat{a}| - 1\}$ . CycleFind also uses datasets $\mathcal{D}(s)$ collected in previous iterations representing the already-discovered states in $S'$ . CycleFind determines whether two datasets (either collected in this call to CycleFind, or collected in previous calls) represent the same latent state by attempting to learn a classifier $f \in \mathcal{F}$ that distinguishes them: if they both consist of near-i.i.d. samples of the same latent state, then it is highly unlikely that such a classifier exists.
+
+To ensure the near-i.i.d. property "well enough," we only need that samples are separated by $\hat{t}_{\mathrm{mix}}$ steps within each individual $\mathcal{D}_i^\prime$ ; and that, when trying to distinguish two datasets $\mathcal{D}_i^\prime$ , $\mathcal{D}_j^\prime$ which were both collected during this round of CyceFind, there are two (sufficiently large) subsets of $\mathcal{D}_i^\prime$ and $\mathcal{D}_j^\prime$ respectively such that all samples in the two subsets are collected at least $\hat{t}_{\mathrm{mix}}$ steps apart - ensuring this second condition only doubles the number of samples we must collect. Thus, we do not need to "wait" $\hat{t}_{\mathrm{mix}}$ steps between collecting each usable sample from $x_{CF}$ ; rather, we collect a usable sample for each latent state once for every roughly $2\max (\hat{t}_{\mathrm{mix}},n_{\mathrm{cyc}}|\hat{a}|)$ steps. This is why $\hat{t}_{\mathrm{mix}}$ does not appear in the largest term (in $|S|$ ) of our asymptotic sample complexity.
+
+If it is determined that some $\mathcal{D}_i$ represents a newly-discovered latent state, then a new state $s^{\prime}$ is inserted into $\mathcal{S}^{\prime}$ and $\mathcal{D}'(s')$ is initialized as $\mathcal{D}_i$ . Once all states in $[s_0^{\mathrm{cyc}}, \dots, s_{n_{\mathrm{cyc}} \cdot |\hat{a}| - 1}^{\mathrm{cyc}}]$ have been identified, the action sequence $\hat{a}$ can be used to add them to the learned transition dynamics $T'$ .
+
+STEEL Phase 2: Collecting additional samples to train encoder. Once we have the complete latent dynamics graph, the determinism of the latent dynamics allows us to use open-loop planning to efficiently re-visit each latent state, in order to collect enough samples to learn a highly-accurate encoder. Note that we can navigate to any arbitrary latent state in $D$ steps, so we can visit every latent state in $|S|D$ steps. STEEL collects datasets $\mathcal{D}(s)$ for each latent state $s$ where, within each $\mathcal{D}(s)$ , the samples are collected at least $\hat{t}_{\mathrm{mix}}$ steps apart: therefore, it can add one sample to each dataset $\mathcal{D}(s)$ at worst roughly every $\max(|S|D, \hat{t}_{\mathrm{mix}})$ steps.
+
+STEEL Phase 3: Training the encoder. Finally, STEEL trains the encoder. Specifically, for each latent state $s \in S'$ , it trains a binary classifier $f_s \in \mathcal{F}$ to distinguish $\mathcal{D}(s)$ from $\uplus_{s' \in S' \setminus \{s\}} \mathcal{D}(s')$ . To ensure that only the correct binary classifier, $f_{\sigma(\phi^*(x))}(x)$ , returns 1, we ensure that each $f_s$ has an accuracy of $1 - \epsilon / |S|$ on each latent state. We guarantee the accuracy of each classifier on each latent state separately and apply a union bound: note that because we use a union bound here, we do not need the samples in different datasets $\mathcal{D}(s)$ , $\mathcal{D}(s')$ to be independent, which is why we are able to collect samples more frequently that every $\hat{t}_{\mathrm{mix}}$ steps. Finally, we define $\phi'(x) \coloneqq \arg \max_s f_s(x)$ .
+
+# 5 SIMULATION EXPERIMENTS
+
+We test the STEEL algorithm on two toy problems: an infinite-horizon environment inspired by the "combination lock" environment from Efroni et al. (2022b), and a version of the "multi-maze"
+
+
+Figure 3: Visualisations of the simulation experiment environments. For both environments, we show the ground-truth latent dynamics $T$ (in the case of the combination lock, we show an arbitrary instance of $T$ , for some $[a_0^*, \dots a_{K-1}^*]$ ), and an example transition in the observed space $\mathcal{X}$ .
+
+
+
+environment from Lamb et al. (2023). In our combination lock environment, $\mathcal{A} = \{0,1\}$ , $\mathcal{S} = \{0,..,K - 1\}$ , and there is some sequence of "correct" actions $[a_0^*,\dots a_{K - 1}^*]$ , such that $T(i,a_i^*) = i + 1$ , but $T(i,1 - a_i^*) = 0$ . In other words, in order to progress through the states, the agent must select the correct next action from the (arbitrary) sequence $[a_0^*,\dots a_{K - 1}^*]$ ; otherwise, the latent state is reset to 0. The observation space $\mathcal{X} = \{0,1\}^{L}$ , where $L\gg K$ . Some arbitrary subset of size $K$ of the components in $\mathcal{X}$ are indicators for each latent state in $\mathcal{S}$ : that is, $\forall i\in S,\exists j\in \{0,\ldots ,L - 1\} : (x_t)_j = 1\leftrightarrow s_t = i$ . The other $L - K$ components in $\mathcal{X}$ are independent two-state Markov chains with states $\{0,1\}$ , each with different arbitrary transition probabilities (bounded such that no transition probability for any of the two-state chains is less than 0.1). Because each component is time-correlated, they all must be contained in $\mathcal{E}$ , so $|\mathcal{E}| = 2^{L - K}$ . In the multi-maze environment, the agent learns to navigate a four-room maze (similar to the one in Sutton et al. (1999)) using actions $\mathcal{A} = \{\mathrm{Up},\mathrm{Down},\mathrm{Left},\mathrm{Right}\}$ . The latent state space has size $|S| = 68$ . However, the observation $x\in \mathcal{X}$ in fact consists of nine copies of this maze, each containing a different apparent "agent." Eight of these "agents" move according to random actions: the true controllable agent is only present in one of the mazes. Because the eight distractor mazes can be in any configuration and have temporally-persistent state, we have that $|\mathcal{E}| = 68^8$ . For both environments, we use the hypothesis class $\mathcal{F} := \{(x\to (x)_i|i\in \{0,\dim (\mathcal{X}) - 1\}\}$ . In other words, the hypothesis class assumes that for each latent state $s$ , there is some component of $i$ of the observations such that $\phi^{*}(x) = s$ if and only if $(x)_i = 1$ . The two environments are visualized in Figure 3.
+
+There are four sources of potential variability in these simulation experiments: (1) the random elements of the environments' dynamics, $\mathcal{T}_e$ , $\mathcal{Q}$ , and $e_{\mathrm{init}}$ ; (2) the starting latent state $s_{\mathrm{init}}$ ; (3) steps in Algorithm 1 that allow for arbitrary choices (e.g., the choice of action $\hat{a} = [a]$ in the first invocation of CycleFind); and (4) the parameters of the environment, such as the "correct" action sequence $[a_0^*, \dots a_{K-1}^*]$ in the combination lock. STEEL is designed in such a way that, with high probability (i.e., if the algorithm succeeds), no choice that the algorithm makes in terms of control flow or ac
+
+
Combo. Lock (K = 20)
Combo. Lock (K = 30)
Combo. Lock (K = 40)
Multi-Maze
Fixed Env. Accuracy
20/20
20/20
20/20
20/20
Fixed Env. Steps
1886582±0
4286241±0
7914856±0
41003875±0
Variable Env. Accuracy
20/20
20/20
20/20
20/20
Variable Env. Steps
2.00·106±1.28·105
4.78·106±4.36·105
9.59·106±1.13·106
4.13·107±1.11·106
+
+Table 2: Success rate and number of steps taken for STEEL on both simulation environments. For all experiments, we set $\delta = \epsilon = .05$ . For the combination lock experiments, we set $L = 512$ , and use the (intentionally loose) upper bounds $N = \hat{D} = K + 10$ ( $|S| + 10$ ) and $\hat{t}_{\mathrm{mix}} = 40$ . For the multi-maze environment, we use $N = \hat{D} = 80$ ( $|S| = 68$ ), and $\hat{t}_{\mathrm{mix}} = 300$ . See Appendix D for how we chose the (loose) bounds $\hat{t}_{\mathrm{mix}} \geq t_{\mathrm{mix}}$ .
+
+tions will depend on exogenous noise. Therefore, if we hold (2-4) constant, we expect the number of environment steps taken to be constant, regardless of the exogenous noise. To verify this, we test both environments for 20 simulations, in both a "fixed environment" setting with (2-4) held constant, and a "variable environment" setting with (2-4) set randomly. We test the combination lock environment with latent states $K \in \{20,30,40\}$ . We measure the success rate in exactly learning $\phi^{*}(x)$ and $T$ (up to permutation) and the number of steps taken. Results are shown in Table 2.
+
+STEEL correctly learned the latent dynamics $T$ and optimal encoder $\phi^*$ in every simulation run; and we verify that the step counts do not depend on exogenous noise. In the combination lock experiments for large $K$ , which are hard exploration problems, the total step counts were many orders of magnitude smaller than either the size of the observation space $(\approx 10^{154})$ ; or the reciprocal-probability of a uniformly-random policy navigating from state 0 to state $K - 1$ ( $\approx 10^{12}$ for $K = 40$ ). This shows that STEEL is effective at learning latent dynamics for hard exploration problems under high-dimensional, time-correlated noise. For the multi-maze experiment (which is not a hard exploration task), STEEL took a few orders of magnitude greater steps than reported in Lamb et al. (2023) or Levine et al. (2024) for the same environment ( $\approx 10^3 - 10^4$ steps). However, unlike these prior methods, STEEL is guaranteed to discover the correct encoder with high probability; this requires the use of conservative bounds when defining sample counts $d$ , $n_{\mathrm{samp,cyc}}$ and $n_{\mathrm{samp}}$ in Algorithms 1 and 2, and in making other adversarial assumptions in the design of the algorithm that ensure that it is correct and sample-efficient even in pathological cases. Additionally, note that the encoder hypothesis class $\mathcal{F}$ used in this experiment has no spatial priors. By contrast, Lamb et al. (2023) choose a neural-network encoder for this environment with strong spatial priors that favor focusing attention on a single maze, using sparsely-gated patch encodings (and Levine et al. (2024) use this same network architecture in order to compare to Lamb et al. (2023)) – this difference in priors over representations may also account for some of the gap in apparent sample efficiency.
+
+In Appendix F, we present an additional set of experiments on a family of tabular Ex-BMDPs which are known to be particularly challenging to "multistep inverse" methods, such as those proposed by Lamb et al. (2023) and Levine et al. (2024). We find that, for sufficiently large instances of these environments, STEEL can in fact empirically outperform these prior "practical" methods.
+
+# 6 LIMITATIONS AND CONCLUSION
+
+A major limitation of STEEL that may constrain its real-world applicability is its strict determinism assumption on $T$ . In the episodic setting, Efroni et al. (2022b) can get away with allowing rare deviations from deterministic latent transitions (no more often on average than once every $4|S|$ episodes) because the environment resets "erase" these deviations before they can propagate for too long. By contrast, in the single-trajectory setting, the STEEL algorithm is fragile to even rare deviations in latent dynamics; ameliorating this issue may require significant changes to the algorithm.
+
+A second barrier to practical applicability of STEEL is the need for an optimal training oracle for $\mathcal{F}$ . While this is tractable for, e.g., linear models (with the realizability assumption ensuring linear separability), it becomes computationally intractable for anything much more complicated. However, this kind of assumption is common in sample-complexity results; and could be worked around in adapting STEEL to practical settings.[7]
+
+Two additional limitations to our work are the assumption of reachability of all endogenous latent states $s \in S$ , and the requirement that an upper-bound on the mixing time of the exogenous noise be known a priori. However, in Appendix E, we argue that these assumptions are in fact necessary, for any algorithm in the single-trajectory, no-resets Ex-BMDP setting.
+
+Finally, the core assumption that $S$ is finite and small is of course a major limitation: sample-efficient reinforcement learning in combinatorial and continuous state spaces is a broad area of ongoing and future work. Despite these limitations, STEEL represents what we hope is an important contribution to representation learning in scenarios where resetting the environment during training is not possible, and observations are impacted by high-dimensional, time-correlated noise.
+
+# ACKNOWLEDGEMENTS
+
+A portion of this research has taken place in the Learning Agents Research Group (LARG) at the Artificial Intelligence Laboratory, The University of Texas at Austin. LARG research is supported in part by the National Science Foundation (FAIN-2019844, NRT-2125858), the Office of Naval Research (N00014-18-2243), Army Research Office (W911NF-23-2-0004, W911NF-17-2-0181), Lockheed Martin, and Good Systems, a research grand challenge at the University of Texas at Austin. The views and conclusions contained in this document are those of the authors alone. Peter Stone serves as the Executive Director of Sony AI America and receives financial compensation for this work. The terms of this arrangement have been reviewed and approved by the University of Texas at Austin in accordance with its policy on objectivity in research. Alexander Levine is supported by the NSF Institute for Foundations of Machine Learning (FAIN-2019844). Amy Zhang and Alexander Levine are supported by National Science Foundation (2340651) and Army Research Office (W911NF-24-1-0193).
+
+# REFERENCES
+
+Alekh Agarwal, Sham Kakade, Akshay Krishnamurthy, and Wen Sun. Flambe: Structural complexity and representation learning of low rank mdps. Advances in neural information processing systems, 33:20095-20107, 2020.
+Yuan Cheng, Ruiquan Huang, Yingbin Liang, and Jing Yang. Improved sample complexity for reward-free reinforcement learning under low-rank MDPs. In The Eleventh International Conference on Learning Representations, 2023. URL https://openreview.net/forum?id= jpsw-KuOi7r.
+Christoph Dann, Nan Jiang, Akshay Krishnamurthy, Alekh Agarwal, John Langford, and Robert E Schapire. On oracle-efficient pacrl with rich observations. In S. Bengio, H. Wallach, H. Larochelle, K. Grauman, N. Cesa-Bianchi, and R. Garnett (eds.), Advances in Neural Information Processing Systems, volume 31. Curran Associates, Inc., 2018.
+Simon Du, Akshay Krishnamurthy, Nan Jiang, Alekh Agarwal, Miroslav Dudik, and John Langford. Provably efficient rl with rich observations via latent state decoding. In International Conference on Machine Learning, pp. 1665-1674. PMLR, 2019.
+Yonathan Efroni, Dylan J Foster, Dipendra Misra, Akshay Krishnamurthy, and John Langford. Sample-efficient reinforcement learning in the presence of exogenous information. In *Conference on Learning Theory*, pp. 5062-5127. PMLR, 2022a.
+Yonathan Efroni, Dipendra Misra, Akshay Krishnamurthy, Alekh Agarwal, and John Langford. Provably filtering exogenous distractors using multistep inverse dynamics. In International Conference on Learning Representations, 2022b. URL https://openreview.net/forum?id=RQLLzMCefQu.
+Nan Jiang, Akshay Krishnamurthy, Alekh Agarwal, John Langford, and Robert E. Schapire. Contextual decision processes with low Bellman rank are PAC-learnable. In Doina Precup and Yee Whye Teh (eds.), Proceedings of the 34th International Conference on Machine Learning, volume 70 of Proceedings of Machine Learning Research, pp. 1704–1713. PMLR, 06–11 Aug 2017. URL https://proceedings.mlr.press/v70/jiang17c.html.
+Jacob Eeuwe Kooi, Mark Hoogendoorn, and Vincent Francois-Lavet. Interpretable (un)controllable features in MDP's. In Sixteenth European Workshop on Reinforcement Learning, 2023. URL https://openreview.net/forum?id=VZFgkZV3a5.
+Alex Lamb, Riashat Islam, Yonathan Efroni, Aniket Rajiv Didolkar, Dipendra Misra, Dylan J Foster, Lekan P Molu, Rajan Chari, Akshay Krishnamurthy, and John Langford. Guaranteed discovery of control-endogenous latent states with multi-step inverse models. Transactions on Machine Learning Research, 2023. ISSN 2835-8856. URL https://openreview.net/forum?id=TNocbXm5MZ.
+
+D.A. Levin and Y. Peres. Markov Chains and Mixing Times. MBK. American Mathematical Society, 2017. ISBN 9781470429621. URL https://books.google.com/books?id= f208DwAAQBAJ.
+Alexander Levine, Peter Stone, and Amy Zhang. Multistep inverse is not all you need. Reinforcement Learning Journal, 1, 2024.
+Zakaria Mhammedi, Dylan J Foster, and Alexander Rakhlin. Representation learning with multi-step inverse kinematics: An efficient and optimal approach to rich-observation rl. In International Conference on Machine Learning, pp. 24659-24700. PMLR, 2023.
+Zakaria Mhammedi, Dylan J Foster, and Alexander Rakhlin. The power of resets in online reinforcement learning. In The Thirty-eighth Annual Conference on Neural Information Processing Systems, 2024. URL https://openreview.net/forum?id=7sACcaOmGi.
+Dipendra Misra, Mikael Henaff, Akshay Krishnamurthy, and John Langford. Kinematic state abstraction and provably efficient rich-observation reinforcement learning. In Hal Daumé III and Aarti Singh (eds.), Proceedings of the 37th International Conference on Machine Learning, volume 119 of Proceedings of Machine Learning Research, pp. 6961-6971. PMLR, 13-18 Jul 2020. URL https://proceedings.mlr.press/v119/misra20a.html.
+Richard S Sutton, Doina Precup, and Satinder Singh. Between mdps and semi-mdps: A framework for temporal abstraction in reinforcement learning. Artificial intelligence, 112(1-2):181-211, 1999.
+George Trimponias and Thomas G Dietterich. Reinforcement learning with exogenous states and rewards. arXiv preprint arXiv:2303.12957, 2023.
+Masatoshi Uehara, Xuezhou Zhang, and Wen Sun. Representation learning for online and offline RL in low-rank MDPs. In International Conference on Learning Representations, 2022. URL https://openreview.net/forum?id=J4iSIR9fhY0.
+Tongzhou Wang, Simon Du, Antonio Torralba, Phillip Isola, Amy Zhang, and Yuandong Tian. Denoised MDPs: Learning world models better than the world itself. In Kamalika Chaudhuri, Stefanie Jegelka, Le Song, Csaba Szepesvari, Gang Niu, and Sivan Sabato (eds.), Proceedings of the 39th International Conference on Machine Learning, volume 162 of Proceedings of Machine Learning Research, pp. 22591-22612. PMLR, 17-23 Jul 2022. URL https://proceedings.mlr.press/v162/wang22c.html.
+Kenneth S Williams. The $n$ th power of a $2 \times 2$ matrix. Mathematics Magazine, 65(5):336-336, 1992.
+Lili Wu, Ben Evans, Riashat Islam, Raihan Seraj, Yonathan Efroni, and Alex Lamb. Generalizing multi-step inverse models for representation learning to finite-memory pomdpss. arXiv preprint arXiv:2404.14552, 2024.
+Wanqiao Xu, Shi Dong, and Benjamin Van Roy. Posterior sampling for continuing environments. Reinforcement Learning Journal, 1, 2024.
+
+# A FULL ALGORITHM
+
+The STEEL algorithm is presented here in full as Algorithm 1, with a major subroutine, CycleFind, split out as Algorithm 2.
+
+Algorithm 1: STEEL
+Input: Access to Ex-BMDP $M$ , access to training oracle for function class $\mathcal{F}$ , knowledge of upper bounds $N,\hat{D},\hat{t}_{\mathrm{mix}}$ parameters $\delta ,\epsilon$
+Initialize learned latent state set $S^{\prime}$ , initially empty;
+Initialize table of collected datasets for each latent state: $\mathcal{D}:S^{\prime}\to \mathcal{M}(\mathcal{X})$ .
+Initialize learned latent dynamics: $T^{\prime}:(S^{\prime}\cup \{\bot \})\times A\rightarrow (S^{\prime}\cup \{\bot \})$ . (When a state $s$ is added to $S^{\prime}$ we initially set $\forall a\in \mathcal{A}$ $T(s,a)\coloneqq \bot$ . Also, we set $\forall a\in \mathcal{A}$ $T(\bot ,a)\coloneqq \bot$ as a permanent definition.); // Phase 1: Discover latent dynamics $T$ -
+Chose arbitrary $a\in \mathcal{A}$ ..
+ $S^{\prime},D,T^{\prime},s_{\mathrm{corr.}}\gets$ CycleFind([a], $S^{\prime},D,T^{\prime}$ );// Special case for first iteration
+while $\exists s\in S^{\prime},a\in \mathcal{A}:T^{\prime}(s,a)\coloneqq \bot$ do Initialize $\mathcal{B}\leftarrow S^{\prime}$ , and initialize action list $\hat{a}\gets []$ while $\mathcal{B}$ non-empty do Chose arbitrary $s\in \mathcal{B}$ .. $\mathcal{B}\gets \mathcal{B}\setminus \{s\}$ . Let $\hat{a}^\prime :=$ a minimum-length sequence of actions such that $T^{\prime}(T^{\prime}(.T^{\prime}(.T^{\prime}(s,\hat{a}_0^{\prime}),\hat{a}_1^{\prime}),\hat{a}_2^{\prime}),\dots,\hat{a}_{|\hat{a}^{\prime}| - 1}^{\prime}) = \bot$ . (This can be found using Dijkstra's algorithm.); $\hat{a}\gets \hat{a}\cdot \hat{a}^{\prime}$ .. $\mathcal{B}\gets \{s''\in S'|\exists s'\in \mathcal{B}:T'(T'(..T'(s',\hat{a}_0'),\hat{a}_1'),\hat{a}_2'),\dots,\hat{a}_{|\hat{a} '| - 1}^{\prime}) = s''\} ;$ $S^{\prime},D,T^{\prime},s_{\mathrm{corr.}}\gets$ CycleFind( $\hat{a},S^{\prime},D,T^{\prime}$ . // Phase 2: Collect additional latent samples to train encoder.
+Let $d:= [\frac{3|S'| \ln(16|S'|^{2}|F| / \delta)}{\epsilon} ]$
+while $\exists s\in S':|\mathcal{D}(s)| < d$ do Let $\mathcal{C}:= \{s\in S'||\mathcal{D}(s)| < d\land s\neq s_{\mathrm{corr.}}\}$ Use $T^{\prime}$ to plan a cycle of actions $\bar{a}$ starting at $s_{\mathrm{corr.}}$ that visits all states C and then returns to $s_{\mathrm{corr.}}$ by greedily applying Dijkstra's algorithm repeatedly; If $|\bar{a} | < t_{\mathrm{mix}}$ , use $T^{\prime}$ to extend $\bar{a}$ by repeatedly inserting the shortest-length self-loop of some state visited in $\bar{a}$ into $\bar{a}$ until $|\bar{a} |\geq t_{\mathrm{mix}}$ ; Execute all actions in $\bar{a}$ once without collecting data; while $\forall s\in \mathcal{C}:|\mathcal{D}(s)| < d$ do for a in $\bar{a}_0,\ldots ,\bar{a}_{|\bar{a} | - 1}$ do Take action a on M; $s_{\mathrm{corr.}}\gets T'(s_{\mathrm{corr.}},a)$ if $s_{\mathrm{corr.}}$ is being visited for the first time in this execution through a then Let $x_{\mathrm{corr.}}:=$ the observed state of M; $\mathcal{D}(s_{\mathrm{corr.}})\gets \mathcal{D}(s_{\mathrm{corr.}})\uplus \{x_{\mathrm{corr.}}\} ;$ // Phase 3: Train latent state encoder $\phi '$
+for $s\in S'$ do Let $D_0:= \oplus_{s'\in S'\backslash \{s\}}D(s')$ .. $D_1:= D(s)$ Apply training oracle to distinguish $D_0$ from $D_{1}$ yielding $f_{s}\in F$ return $S^{\prime},T^{\prime}$ ,and $\phi '(x):= arg\max_s f_s(x)$
+
+# B PROOFS
+
+# B.1 STEEL
+
+Here, we explain the STEEL algorithm (Algorithm 1), and prove the correctness of Theorem 1. STEEL proceeds in three phases: in the first phase, we learn a tabular representation of the endogenous latent states $\mathcal{S}$ and associated dynamics $T$ of the Ex-BMDP. For each $s \in S$ , we also begin to collect a dataset $\mathcal{D}(s)$ , where for each $x \in \mathcal{D}(s)$ , we have that $\phi^{*}(x) = s$ , and additionally where all samples in $\mathcal{D} := \bigcup_{s \in S} \mathcal{D}(s)$ were collected from the Ex-BMDP $M$ at least $\hat{t}_{\mathrm{mix}}$ time steps apart.
+
+Algorithm 2: CycleFind Subroutine
+Input: Action list $\hat{a}$ ; current learned state set $S'$ , datasets $\mathcal{D}$ , and transition dynamics $T'$ . Also, access to Ex-BMDP $M$ , access to training oracle for function class $\mathcal{F}$ , knowledge of upper bounds $N$ , $\hat{t}_{\mathrm{mix}}$ , and $\hat{D}$ , and parameters $\delta$ , $\epsilon$ .
+// Phase 1: find length of cycle, $n_{\mathrm{cyc}} \cdot |\hat{a}|$ .
+Let $n_{\mathrm{samp.cyc.}} := \left[\ln \left(\frac{\delta}{4|\mathcal{A}| \cdot N \cdot (N-1) \cdot |\mathcal{F}|}\right) / \ln \left(\frac{9}{16}\right)\right]$ ;
+Let $c_{\mathrm{init}} := (2\hat{t}_{\mathrm{mix}} + 3N \cdot |\hat{a}| - 2) \cdot n_{\mathrm{samp.cyc.}} - \hat{t}_{\mathrm{mix}} - N \cdot |\hat{a}| + 1 + \max((N-1) \cdot |\hat{a}|, \hat{t}_{\mathrm{mix}})$ ;
+Collect a sequence of observation $x_{CF} := [x_1, \ldots x_{c_{\mathrm{init}}}]$ from $M$ by taking the actions in $\hat{a}$ repeatedly in a loop, for a total of $c_{\mathrm{init}}$ actions. (Action $\hat{a}_i \% |\hat{a}|$ is taken after observing $x_i$ );
+Let $\bar{x}_i := x_i \cdot |\hat{a}| + \max((N-1) \cdot |\hat{a}|, \hat{t}_{\mathrm{mix}})$ ;
+Initialize $n_{\mathrm{cyc}} \gets 1$ ; // Default value if no other $n_{\mathrm{cyc}}'$ is $n_{\mathrm{cyc}}$
+for $n_{\mathrm{cyc}}' \in [N, N-1, ..., 3, 2]$ do
+ Let $q := [\hat{t}_{\mathrm{mix}} / (n_{\mathrm{cyc}}' \cdot |\hat{a}|)]$ , $r := q \cdot n_{\mathrm{cyc}}'$ , $k := \lfloor \frac{c_{\mathrm{init}} + r \cdot |\hat{a}| - \max((N-1) \cdot |\hat{a}|, \hat{t}_{\mathrm{mix}})}{2r \cdot |\hat{a}| + n_{\mathrm{cyc}}' | \hat{a}|} \rfloor$ ;
+ Let $D_0 := \{\bar{x}_{r+(2r+n_{\mathrm{cyc}}')i+j} | i \in \{0, \ldots, k-1\}, j \in \{1, \ldots, n_{\mathrm{cyc}}' - 1\}\}$ ;
+ Let $D_1 := \{\bar{x}_{(2r+n_{\mathrm{cyc}}')i} | i \in \{0, \ldots, k-1\}\}$ ;
+ Apply training oracle to distinguish $D_0$ from $D_1$ , yielding $f \in \mathcal{F}$ ;
+ if ( $\forall x \in D_0, f(x) = 0$ and $\forall x \in D_0, f(x) = 1$ ) then
+ $n_{\mathrm{cyc}} \gets n_{\mathrm{cyc}}'$ ;
+ break;
+// Phase 2: Assemble datasets for observations from cycle, identify new latent states, and update $S'$ , $D$ , and $T'$ .
+Let $n_{\mathrm{samp.}} := \left[\ln \left(\frac{\delta}{4|\mathcal{A}| \cdot N^4 (\hat{D} + 1) \cdot |\mathcal{F}|}\right) / \ln \left(\frac{9}{16}\right)\right]$ ;
+Let $c := 2 \cdot n_{\mathrm{cyc}} \cdot |\hat{a}| \cdot ((n_{\mathrm{samp.}} - 1) \cdot \left[\frac{\hat{t}_{\mathrm{mix}}}{|\hat{a}| \cdot n_{\mathrm{cyc}}} + 1\right) + \hat{t}_{\mathrm{mix}} + \max((N - n_{\mathrm{cyc}}) \cdot |\hat{a}|, \hat{t}_{\mathrm{mix}})$ ;
+Extend the sequence of observation $x_{CF}$ to length at least $c$ by taking the actions $\hat{a}$ repeatedly in a loop on $M$ , for max(0, c - cinit) additional steps, so that $x_{CF} = [x_1, \ldots x_c]$ ;
+Let $n_0 := \max((N - n_{\mathrm{cyc}}) \cdot |\hat{a}|, \hat{t}_{\mathrm{mix}})$ , $n_0' := n_0 + (n_{\mathrm{samp.}} - 1) \cdot |\hat{a}| \cdot n_{\mathrm{cyc}} \cdot \left[\frac{\hat{t}_{\mathrm{mix}}}{|\hat{a}| \cdot n_{\mathrm{cyc}}}\right] + |\hat{a}| \cdot n_{\mathrm{cyc}} + \hat{t}_{\mathrm{mix}}$ $\forall i \in \{0, \ldots, n_{\mathrm{cyc}} \cdot |\hat{a}| - 1\}$ , Let:
+\[ D_i' = \left\{x_j | x_k \in \{0, \ldots, n_{\mathrm{samp.}} - 1\}, \exists offset \in \{n_0, n_0'\} : j = k \cdot |\hat{a}| \cdot n_{\mathrm{cyc}} \cdot \left[\frac{\hat{t}_{\mathrm{mix}}}{|\hat{a}| \cdot n_{\mathrm{cyc}}} + offset + (i - offset)\% (n_{\mathrm{cyc}} \cdot |\hat{a}|)\right]; j = k \cdot |\hat{a}| \cdot n_{\mathrm{cyc}} \cdot s_i' < s_i; (Optionally; and only if $D(s)$ was not initialized or modified already during this call to CycleFind.)
+\[ D(s) = D(s) + D_i'; (StateAlreadyFound? \gets True; break; if not StateAlreadyFound? then Insert new state $s'$ into $S'$ ;
+\[ D(s') = D_i'; s_i' < s_i; (s_i' < s_i; s_i' < s_i; s_i' < s_i; s_i' < s_i; s_i' < s_i; s_i' < s_i; s_i' < s_i; s_i' < s_i; s_i' < s_i; s_i' < s_i; s_i' < s_i; s_i' < s_i; s_i' < s_i; s_i' < s_i; s_i' < s_i; s_i', t', s_i';
+
+Then, in the second phase, we use the learned dynamics model $T'$ to efficiently collect additional samples for each learned latent state $s \in S'$ and add them to $\mathcal{D}(s)$ , until $|\mathcal{D}(s)| \geq d$ , where:
+
+$$
+d := \lceil \frac {3 | \mathcal {S} ^ {\prime} | \ln (1 6 | \mathcal {S} ^ {\prime} | ^ {2} | \mathcal {F} | / \delta)}{\epsilon} \rceil . \tag {10}
+$$
+
+Finally, in the third phase, we use $\mathcal{D}$ to learn an encoder $\phi^{\prime}$ , which approximates $\phi^{*}$ with high probability when the exogenous state $e$ of the Ex-BMDP is sampled from its stationary distribution $\pi_{e}$ .
+
+STEEL relies on the CycleFind subroutine, which is described in detail and proven correct in Section B.1.1. This subroutine is given a list of actions $\hat{a}$ and the previously-learned states $S^{\prime}$ , datasets $\mathcal{D}$ , and dynamics $T^{\prime}$ . It identifies and collects samples of all latent states in some state cycle which is traversed by taking the actions $\hat{a}$ repeatedly, and also identifies the latent state transitions in this cycle.
+
+# We restate Theorem 1 here:
+
+Theorem 1. For an $Ex-BMDP M = \langle \mathcal{X}, \mathcal{A}, \mathcal{S}, \mathcal{E}, \mathcal{Q}, T, \mathcal{T}_e, \pi_{\mathcal{E}}^{init} \rangle$ starting at an arbitrary endogenous latent state $s_{init} \in S$ , with $|\mathcal{S}| \leq N$ , where the exogenous Markov chain $\mathcal{T}_e$ has mixing time at most $\hat{t}_{mix}$ , and where all states in $\mathcal{S}$ are reachable from one another in at most $\hat{D}$ steps; and corresponding encoder function class $\mathcal{F}$ such that Equation 3 holds, the algorithm STEEL $(M, \mathcal{F}, N, \hat{D}, \hat{t}_{mix}, \delta, \epsilon)$ will output a learned endogenous state space $\mathcal{S}'$ , transition model $T'$ , and encoder $\phi'$ , such that, with probability at least $1 - \delta$ ,
+
+- $|\mathcal{S}'| = |\mathcal{S}|$ , and under some bijective function $\sigma : \mathcal{S} \to \mathcal{S}'$ , it holds that
+
+$$
+\forall s \in \mathcal {S}, a \in \mathcal {A}: \sigma (T (s, a)) = T ^ {\prime} (\sigma (s), a), a n d, \tag {4}
+$$
+
+Under the same bijection $\sigma$
+
+$$
+\forall s \in \mathcal {S}, \Pr_ {\substack {x \sim \mathcal {Q} (s, e), \\ e \sim \pi_ {\mathcal {E}}}} (\phi^ {\prime} (x) = \sigma (\phi^ {*} (x))) \geq 1 - \epsilon , \tag{5}
+$$
+
+where $\pi_{\mathcal{E}}$ is the stationary distribution of $\mathcal{T}_e$ .
+
+Furthermore, the number of steps that STEEL executes on $M$ scales as:
+
+$$
+\mathcal {O} ^ {*} \Big (N D | \mathcal {S} | ^ {2} | \mathcal {A} | \cdot \log \frac {| \mathcal {F} |}{\delta} + | \mathcal {S} | | \mathcal {A} | \hat {t} _ {m i x} \cdot \log \frac {N | \mathcal {F} |}{\delta} + \frac {| \mathcal {S} | ^ {2} D}{\epsilon} \cdot \log \frac {| \mathcal {F} |}{\delta} + \frac {| \mathcal {S} | \hat {t} _ {m i x}}{\epsilon} \cdot \log \frac {| \mathcal {F} |}{\delta} \Big),
+$$
+
+where $\mathcal{O}^*(f(x)) \coloneqq \mathcal{O}(f(x) \log(f(x)))$ .
+
+For the sake of our proof, we will treat the ground-truth properties of the Ex-BMDP, such as the latent dynamics $T$ , as (unknown, arbitrary) fixed quantities, not as random variables. Similarly, we will treat the initial latent state $s_{init}$ as an arbitrary but fixed quantity, rather than a random variable. Furthermore, in the proof, we will treat decisions that are specified (implicitly or explicitly) as "arbitrary" in Algorithms 1 and 2 (such as the choice of the action $\hat{a} = [a]$ in the first invocation of CycleFind, or the choice of "shortest" paths in cases of ties when Dijkstra's algorithm is used) as being made deterministically, such as by a pseudorandom process - crucially, we require that these choices are made in a way that does not depend on the observations of the Ex-BMDP.
+
+This leaves the exogenous noise transitions $\mathcal{T}_e$ , the emission function $\mathcal{Q}$ , and the initial exogenous latent state $e_{init}$ as the only sources of randomness in the algorithm. We note that the sample space over these three processes together as $\Omega$ . Throughout the algorithm, we will ensure that decisions such as control flow choices, choices of actions, and choices of how to assemble datasets, are made deterministically, independently of $\Omega$ , with high probability. That is, unless the algorithm fails, these decisions will be fully determined by $s_0$ , $T$ , and algorithm parameters. While whether or not the algorithm fails will depend (solely) on $\Omega$ , we will ultimately bound the total probability of failure as less than $\delta$ by union bound, so that at each step in the proof, we can treat the algorithm's choices as statistically independent of $\Omega$ .
+
+STEEL begins by repeatedly applying the CycleFind subroutine. CycleFind identifies a cycle in the latent dynamics $T$ of the Ex-BMDP, and collects observations of the states in that cycle. In Phase 1
+
+of STEEL, throughout these application of CycleFind, the algorithm maintains a representation of the learned Ex-BMDP "so far", in the form of an incomplete set of learned states $S'$ , learned latent dynamics $T': (S' \cup \{\bot\}) \times \mathcal{A} \rightarrow (S' \cup \{\bot\})$ , and a table of datasets corresponding to each latent state $\mathcal{D}: S' \rightarrow \mathcal{M}(\mathcal{X})$ .
+
+We first describe the CycleFind subroutine in detail:
+
+# B.1.1 CYCLEFIND SUBROUTINE
+
+Here, we describe CycleFind, and prove its correctness. CycleFind accepts as input a list of actions $\hat{a} := [\hat{a}_0, \dots, \hat{a}_{|\hat{a}| - 1}]$ , and the Ex-BMDP $M$ starting at an arbitrary state $x_0$ . CycleFind also takes the representation of the learned Ex-BMDP "so far", in the form $\mathcal{S}'$ , $\mathcal{D}$ and $T'$ . We assume that, for each $s \in S'$ all of the previously-observed observations in $\mathcal{D}(s)$ were collected with gaps of at least $\hat{t}_{\mathrm{mix}}$ steps between them. Also, we assume that $\forall s \in S'$ , $|\mathcal{D}(s)| \geq n_{\mathrm{samp}}$ , where, in terms of the upper bounds $N \geq |S|$ and $\hat{t}_{\mathrm{mix}} \geq t_{\mathrm{mix}}$ , and total failure probability $\delta$ ,
+
+$$
+n _ {\text {s a m p .}} := \left[ \ln \left(\frac {\delta}{4 | \mathcal {A} | \cdot N ^ {4} \cdot (\hat {D} + 1) \cdot | \mathcal {F} |}\right) / \ln \left(\frac {9}{1 6}\right) \right]. \tag {11}
+$$
+
+CycleFind first proceeds to take the actions $\hat{a}_0, \dots, \hat{a}_{|\hat{a}| - 1}$ repeatedly in a loop. CycleFind then uses this collected sequence of observations (which may need to be extended by cycling through $\hat{a}$ for additional iterations) to learn new states and update $\mathcal{S}'$ , $\mathcal{D}$ , and $T'$ .
+
+We will show that sequence of latent states visited by CycleFind is eventually periodic; that is, it guaranteed to eventually get stuck in a cycle of latent states, with a period in the form $n_{\mathrm{cyc}} \cdot |\hat{a}|$ , for some $n_{\mathrm{cyc}} \leq N$ . The goal of CycleFind is to:
+
+1. Identify the period of this cycle. (That is, determine $n_{\mathrm{cyc}}$ .)
+2. Use this period to extract from the sequence of observed states some new multiset of observations $\mathcal{D}_i' \in \mathcal{M}(\mathcal{X})$ for $i \in \{0, \dots, n_{\mathrm{cyc}} \cdot |\hat{a}| - 1\}$ , which each contain only one unique latent state, corresponding to the position $i$ in the cycle. These multiset will only contain observations collected at least $\hat{t}_{\mathrm{mix}}$ timesteps apart, so will be close-to-i.i.d. samples. (Depending on $n_{\mathrm{cyc}}$ , we may need to perform additional cycles of data collection at this step.)
+3. Identify which of these multisets $\mathcal{D}_i^\prime$ have the same latent states that have been previously identified in $S^{\prime}$ , and which have a new latent state, and determine among the new multisets which ones have the same latent states to each other, and which are distinct. This allows us to update $\mathcal{S}'$ and $\mathcal{D}$ with the new samples from $\mathcal{D}_i^\prime$ , while maintaining the property that $\forall s \in S', \forall x, x' \in \mathcal{D}(s)$ , $\phi^*(x) = \phi^*(x')$ , and $\forall s, s' \in S', \forall x \in \mathcal{D}(s)$ , $x' \in \mathcal{D}(s')$ , $\phi^*(x) \neq \phi^*(x')$ . We also update the learned transitions $T'$ .
+4. Return the updated learned state set $S'$ , datasets $\mathcal{D}$ , transition function $T'$ , and the current latent state of $M$ , $s_{\mathrm{curr.}} \in S'$ .
+
+Specifically, CycleFind has the following property:
+
+Proposition 1. For any action sequence $\hat{a}$ of length at most $(D + 1)N$ , there exists at least one sequence of ground-truth states in $\mathcal{S}$ , $[s_0^{cyc*}, s_1^{cyc*}, \ldots, s_{|\hat{a}| \cdot n_{cyc} - 1}^{cyc*}]$ , for some $n_{cyc} \leq N$ , such that $\forall i \in \{0, 1, \ldots, |\hat{a}| \cdot n_{cyc} - 1\}$ , $T(s_i^{cyc*}, \hat{a}_{i\%|\hat{a}|}) = s_{(i+1)\%(|\hat{a}| \cdot n_{cyc})}^{cyc*}$ . Given a sequence of actions $\hat{a}$ , learned partial state set $\mathcal{S}'$ , transition dynamics $T'$ , and datasets $\mathcal{D}$ which meet the following inductive assumptions:
+
+- There exists an injective mapping $\sigma^{-1}: S' \to S$ such that
+
+$$
+\forall s \in \mathcal {S} ^ {\prime}, a \in \mathcal {A}, T ^ {\prime} (s, a) = \bot \vee \sigma^ {- 1} \left(T ^ {\prime} (s, a)\right) = T \left(\sigma^ {- 1} (s), a\right) \tag {12}
+$$
+
+and additionally,
+
+$$
+\forall s \in \mathcal {S} ^ {\prime}, \forall x \in \mathcal {D} (s), \phi^ {*} (x) = \sigma^ {- 1} (s). \tag {13}
+$$
+
+- $\forall s \in S'$ , $|\mathcal{D}(s)| \geq n_{\text{samp.}}$ ; and for each $s$ , the samples in $\mathcal{D}(s)$ were all sampled from $M$ at least $\hat{t}_{\text{mix}}$ steps apart. Additionally, the choice to add any sample $x$ to $\mathcal{D}(s)$ was made
+
+fully deterministically (as a function of $T$ , $s_{init}$ , the timestep $t$ at which $x$ was collected, and algorithm parameters), and independently of the random processes captured by $\Omega$ .
+
+- The choice of action sequence $\hat{a}$ is similarly fully deterministic and independent of $\Omega$ .
+
+then, with probability at least:
+
+$$
+1 - \frac {\delta}{2 \cdot | \mathcal {A} | \cdot N} \tag {14}
+$$
+
+CycleFind will return updated $S'$ , $D$ , $T'$ , and $s_{\text{curr}}$ which meet the same inductive assumptions, and for which additionally:
+
+- The image of the updated $\mathcal{S}_{(new)}'$ , $\sigma^{-1}(\mathcal{S}_{(new)}')$ is a (non-strict) superset of $\sigma^{-1}(\mathcal{S}')$ , which additionally includes all unique states in some $[s_0^{cyc*}, s_1^{cyc*}, \dots, s_{|\hat{a}| \cdot n_{cyc} - 1}^{cyc*}]$ .
+- The transition matrix $T_{(new)}'$ is a (non-strict) superset of the old transition matrix $T'$ (in the sense that its domain is now $S_{(new)}' \supseteq S_{(old)}'$ , and if $T_{(old)}'(s, a) \neq \bot$ then $T_{(new)}'(s, a) \neq \bot$ ), and $T_{(new)}'$ additionally includes the transitions corresponding to the cycle; that is:
+
+$$
+\begin{array}{l} \forall i \in \{0, \dots, | \hat {a} | \cdot n _ {c y c} - 1 \}, \exists s, s ^ {\prime} \in \mathcal {S} ^ {\prime}: \sigma^ {- 1} (s) = s _ {i} ^ {c y c *} \wedge \sigma^ {- 1} (s ^ {\prime}) = s _ {(i + 1) \% (\hat {a} | \cdot n _ {c y c})} ^ {c y c *} \\ T _ {(n e w)} ^ {\prime} \left(s, \hat {a} _ {i \% | \hat {a} _ {|}}\right) = s ^ {\prime}. \tag{15} \\ \end{array}
+$$
+
+- The final observation $x$ sampled by CycleFind from $M$ is such that $\sigma^{-1}(s_{\text{curr.}}) = \phi^{*}(x)$ .
+
+Additionally, CycleFind will take at most:
+
+$$
+\begin{array}{l} \max \left(\left(2 \hat {t} _ {\text {m i x}} + 3 N \cdot | \hat {a} | - 2\right) \cdot n _ {\text {s a m p . c y c .}} - N \cdot | \hat {a} |, 2 \cdot \left(\hat {t} _ {\text {m i x}} + | \mathcal {S} | \cdot | \hat {a} | - 1\right) \cdot n _ {\text {s a m p .}} + 1\right) \tag {16} \\ + \max (N \cdot | \hat {a} | - | \hat {a} | - \hat {t} _ {m i x}, 0) + 1 a c t i o n s, \\ \end{array}
+$$
+
+where $n_{\text{samp.}}$ is defined in Equation 11 and $n_{\text{samp. cyc.}}$ is defined in Equation 18.
+
+# Proof. Determining $n_{\mathrm{cyc}}$ :
+
+CycleFind initially takes $c_{\mathrm{init}}$ actions, where, in terms of the upper bounds $N \geq |S|$ and $\hat{t}_{\mathrm{mix}} \geq t_{\mathrm{mix}}$ ,
+
+$$
+c _ {\text {i n i t}} := \left(2 \hat {t} _ {\text {m i x}} + 3 N \cdot | \hat {a} | - 2\right) \cdot n _ {\text {s a m p . c y c .}} - \hat {t} _ {\text {m i x}} - N \cdot | \hat {a} | + 1 + \max \left(\left(N - 1\right) \cdot | \hat {a} |, \hat {t} _ {\text {m i x}}\right), \tag {17}
+$$
+
+where
+
+$$
+n _ {\text {s a m p . c y c .}} := \left[ \ln \left(\frac {\delta}{4 | \mathcal {A} | \cdot N \cdot (N - 1) \cdot | \mathcal {F} |}\right) / \ln \left(\frac {9}{1 6}\right) \right]. \tag {18}
+$$
+
+CycleFind first takes action $\hat{a}_0$ , then $\hat{a}_1$ , then $\hat{a}_2$ , etc, until taking action $\hat{a}_{|\hat{a}| - 1}$ , at which point it repeats the process starting at $\hat{a}_0$ , for a total of $c_{\mathrm{init}}$ steps. The observation after each of these actions is recorded as $x_{CF} \coloneqq [x_1, \dots, x_{c_{\mathrm{init}}}]$ . Let $s_{CF} \coloneqq [s_1, \dots, s_{c_{\mathrm{init}}}]$ be the (initially unknown) latent states corresponding to these observations; that is, $\phi^*(x)$ for each $x$ in $x_{CF}$ . (For indexing purposes, $x_0$ and $s_0$ will refer to the observation and latent state, respectively, of the Ex-BMDP before the first action was taken by CycleFind. However, these will not be used by the algorithm.)
+
+First, we show that $s_{CF}$ must in fact end in a cycle of period $n_{\mathrm{cyc}} \cdot |\hat{a}|$ , for some $n_{\mathrm{cyc}} \leq N$ . Let $s_{per}$ consist of every $|\hat{a}|$ 'th element in $s_{CF}$ starting at an offset $m := \max(0, \hat{t}_{\mathrm{mix}} - (N-1) \cdot |\hat{a}|)$ ; that is, $s_{per.} := [s_m, s_{m+|\hat{a}|}, s_{m+2|\hat{a}|}, \dots, s_{m+\lfloor(c_{\mathrm{init}}-m)/|\hat{a}|\rfloor|\hat{a}|}]$ . Note that the evolution from one state to the next in $s_{per.}$ is deterministic, because it is caused by the same sequence of actions, $[\hat{a}_m\%|\hat{a}|, \hat{a}_{(m+1)\%|\hat{a}|}, \dots, \hat{a}_{(m+|\hat{a}|-1)\%|\hat{a}|}]$ , being taken after each state. That is, if $s_{m+i\cdot|\hat{a}|} = s$ and $s_{m+j\cdot|\hat{a}|} = s$ and $s_{m+(i+1)\cdot|\hat{a}|} = s'$ , then $s_{m+(j+1)\cdot|\hat{a}|} = s'$ . As a consequence, if $s_{m+i\cdot|\hat{a}|} = s$ and the next occurrence of the latent state $s$ in the sequence $s_{per.}$ is $s_{m+(i+t)\cdot|\hat{a}|} = s$ , then all subsequent states in the sequence $s_{per.}$ will consist of repetitions of the sequence of $s_{m+(i+1)\cdot|\hat{a}|}$ through $s_{m+(i+t)\cdot|\hat{a}|}$ .
+
+Then $s_{per}$ must consist of some sequence of 'transient' latent states which occur only once at the beginning of the sequence, followed by a repeated cycle. Because these states never re-occur, the transient part lasts length $n_{\mathrm{trn}} \leq N - 1$ .
+
+Then, the period of the cycle is $n_{\mathrm{cyc}}$ , where $n_{\mathrm{trn}} + n_{\mathrm{cyc}} \leq N$ . Note that the cycle in $s_{per}$ contains no repeated states. (Otherwise, the span between the first two repetitions of a state in the cyclic sequence in $s_{per}$ will itself repeat indefinitely, so we can analyse this smaller cycle as the cycle of length $n_{\mathrm{cyc}}$ .)
+
+There is a corresponding cycle in $s_{CF}$ , of length $n_{\mathrm{cyc}} \cdot |\hat{a}|$ . To see this, note that for all $i \geq n_{\mathrm{trn}}$ we have that $s_{m+i|\hat{a}|} = s_{m+i|\hat{a}|+n_{\mathrm{cyc}} \cdot |\hat{a}|}$ . Furthermore, for all $j$ in $\{0, \dots, |\hat{a}| - 1\}$ , the sequence of actions taken between $s_{m+i|\hat{a}|}$ and $s_{m+i|\hat{a}|+j}$ is the same as the sequence of actions taken between $s_{m+i|\hat{a}|+j}$ and $s_{m+i|\hat{a}|+j+n_{\mathrm{cyc}} \cdot |\hat{a}|}$ . Therefore $s_{m+i|\hat{a}|+j} = s_{m+i|\hat{a}|+j+n_{\mathrm{cyc}} \cdot |\hat{a}|}$ . Thus, for any general $i' \geq n_{\mathrm{trn}}|\hat{a}|$ (which always can be written as $i' = i|\hat{a}| + j$ ) we have that $s_{m+i'} = s_{m+i' + n_{\mathrm{cyc}} \cdot |\hat{a}|}$ . However, this cycle may contain repeated states.
+
+In order to avoid the transient part of $s_{CF}$ , and to prevent sampling observations with exogenous noise that is correlated to samples taken in previous iterations of CycleFind, we skip the first $\max((N - 1) \cdot |\hat{a}|, \hat{t}_{\mathrm{mix}})$ transitions in $s_{CF}$ . For convenience, we will let $\bar{s}_i := s_{i \cdot |\hat{a}| + \max((N - 1) \cdot |\hat{a}|, \hat{t}_{\mathrm{mix}})}$ , and similarly $\bar{x}_i := x_{i \cdot |\hat{a}| + \max((N - 1) \cdot |\hat{a}|, \hat{t}_{\mathrm{mix}})}$ . Note that the sequence $[\bar{s}_0, \bar{s}_1, \dots]$ is equivalent to $s_{per}$ . After skipping the first $N - 1 \geq n_{trn}$ elements of the sequence.
+
+Because the cycle in $s_{per}$ contains no repeated states, we have that
+
+$$
+\forall i, j \in \mathbb {N}, \bar {s} _ {i} = \bar {s} _ {j} \Leftrightarrow i \equiv j \quad (\mathrm {m o d} n _ {\mathrm {c y c}}) \tag {19}
+$$
+
+In order to find $n_{\mathrm{cyc}}$ , we test the hypothesis that $n_{\mathrm{cyc}} = n_{\mathrm{cyc}}'$ , for each $n_{\mathrm{cyc}}' \in \{N, \dots, 2\}$ , in order, until we identify $n_{\mathrm{cyc}}$ . If none of the tests pass, then we know that $n_{\mathrm{cyc}} = 1$ . The test for each hypothesis $n_{\mathrm{cyc}} = n_{\mathrm{cyc}}'$ has a zero false-negative rate. Consequently, the loop will always end before $n_{\mathrm{cyc}} > n_{\mathrm{cyc}}'$ , so at each iteration, it must always be the case that $n_{\mathrm{cyc}} \leq n_{\mathrm{cyc}}'$ . A failure can only occur if the test that $n_{\mathrm{cyc}} = n_{\mathrm{cyc}}'$ has a false positive, when in fact $n_{\mathrm{cyc}} < n_{\mathrm{cyc}}'$ .
+
+Each test proceeds as follows:
+
+- Let $q \coloneqq \lceil \hat{t}_{\mathrm{mix}} / (n_{\mathrm{cyc}}' \cdot |\hat{a}|) \rceil$ and $r \coloneqq q \cdot n_{\mathrm{cyc}}'$ .
+Let $k := \left\lfloor \frac{c_{\mathrm{init}} + r \cdot |\hat{a}| - \max((N - 1) \cdot |\hat{a}|, \hat{t}_{\mathrm{mix}})}{2r \cdot |\hat{a}| + n_{\mathrm{cyc}}' \cdot |\hat{a}|} \right\rfloor$
+- Let $D_0 \coloneqq \{\bar{x}_{r + (2r + n_{\mathrm{cyc}}')i + j} \mid i \in \{0, \dots, k - 1\}, j \in \{1, \dots, n_{\mathrm{cyc}}' - 1\}\}$ .
+- Let $D_{1} \coloneqq \{\bar{x}_{(2r + n_{\mathrm{cyc}}^{\prime})i}|i \in \{0,\dots,k - 1\}\}$ .
+- Use the training oracle to try to learn to distinguish $D_0$ from $D_{1}$ , yielding $f \in \mathcal{F}$ .
+- If $n_{\mathrm{cyc}} = n_{\mathrm{cyc}}'$ , then,
+
+Note that, because $n_{\mathrm{cyc}}|r$
+
+$$
+\forall i \in \mathbb {N}, (2 r + n _ {\text {c y c}} ^ {\prime}) i \equiv 0 \quad (\mathrm {m o d} n _ {\text {c y c}}), \tag {20}
+$$
+
+but
+
+$$
+\forall i \in \mathbb {N}, j \in \{1, \dots , n _ {\text {c y c}} ^ {\prime} - 1 \}, \tag {21}
+$$
+
+$$
+r + (2 r + n _ {\text {c y c}} ^ {\prime}) i + j \equiv j \not \equiv 0 \pmod {n _ {\text {c y c}}},
+$$
+
+- Consequently, by Equation 19, all elements of $D_{1}$ will have the same latent state, and none of the elements of $D_{0}$ have this latent state. By realizability, $f$ will have $100\%$ accuracy on the training set. (This is the "true positive" case of the test.)
+
+- Conversely, if $n_{\mathrm{cyc}} < n_{\mathrm{cyc}}'$ , there is only a small chance that any classifier $f$ will have $100\%$ accuracy on the training set.
+
+- Define $j'$ as the (unknown) value $j' := (-r - 1)\% n_{\mathrm{cyc}} + 1$ . Noting, by assumption, that $n_{\mathrm{cyc}} < n_{\mathrm{cyc}}'$ , we have that $j' \in \{1,..,n_{\mathrm{cyc}}' - 1\}$ . Then, $\forall i \in \{0,..,k - 1\}$ , we have that $\bar{x}_{r + (2r + n_{\mathrm{cyc}}')i + j'} \in D_0$ , while $\bar{x}_{(2r + n_{\mathrm{cyc}}')i} \in D_1$ . However, we also have that:
+
+$$
+r + \left(2 r + n _ {\text {c y c}} ^ {\prime}\right) i + j ^ {\prime} \equiv \left(2 r + n _ {\text {c y c}} ^ {\prime}\right) i \quad (\mathrm {m o d} n _ {\text {c y c}}) \tag {22}
+$$
+
+which by Equation 19 implies that
+
+$$
+\bar {s} _ {r + \left(2 r + n _ {\text {c y c}} ^ {\prime}\right) i + j ^ {\prime}} = \bar {s} _ {\left(2 r + n _ {\text {c y c}} ^ {\prime}\right) i}. \tag {23}
+$$
+
+- Now, we can define $D_0^{(j')} \subseteq D_0$ as
+
+$$
+D _ {0} ^ {(j ^ {\prime})} := \left\{\bar {x} _ {r + \left(2 r + n _ {\text {c y c}} ^ {\prime}\right) i + j ^ {\prime}} \mid i \in \{0, \dots , k - 1 \} \right\}. \tag {24}
+$$
+
+Fix any arbitrary classifier $f^{\prime}\in \mathcal{F}$
+
+- In order for $f'$ to have $100\%$ accuracy on the training set, we must have $f'(x) = 1$ for all $x \in D_1$ , and $f'(x) = 0$ for all $x \in D_0^{(j')}$ .
+
+- Note that all observations in $D_{1} \oplus D_{0}^{(j')}$ are collected at least $t_{\mathrm{mix}}$ steps apart from one another. (Specifically, $\bar{x}_{r + (2r + n_{\mathrm{cyc}}')i + j'}$ is collected $(r + j') \cdot |\hat{a}| \geq r \cdot |\hat{a}| \geq t_{mix}$ steps after $\bar{x}_{(2r + n_{\mathrm{cyc}}')i}$ , and $(r + n_{\mathrm{cyc}}' - j') \cdot |\hat{a}| \geq r \cdot |\hat{a}| \geq t_{mix}$ steps before $\bar{x}_{(2r + n_{\mathrm{cyc}}')(i + 1)}$ .)
+
+- Because, additionally, $D_0^{(j')}$ and $D_{1}$ are defined independently of $\Omega$ , by Lemma 1 we have:
+
+$$
+\forall t \in \left\{t ^ {\prime} \mid \bar {x} _ {t ^ {\prime}} \in D _ {1} \uplus D _ {0} ^ {(j ^ {\prime})} \right\}, \tag {25}
+$$
+
+$$
+p _ {s} - 1 / 4 \leq \Pr \left(f ^ {\prime} (\bar {x} _ {t}) = 1 \mid \left(D _ {1} \uplus D _ {0} ^ {(j ^ {\prime})}\right) _ {< t}, \phi^ {*} (\bar {x} _ {t}) = s\right) \leq p _ {s} + 1 / 4
+$$
+
+where $(D_{1} \oplus D_{0}^{(j')})_{ 1, \Pr \left(f \left(e _ {t _ {i}}\right) = 1 \mid \bigcap_ {j = 1} ^ {i - 1} f \left(e _ {t _ {j}}\right) = 1\right) \leq \Pr_ {e \sim \pi_ {e}} (f (e) = 1) + \frac {1}{4} = \frac {5}{4} - \epsilon^ {\prime} \tag {121}
+$$
+
+Combining these equations gives us:
+
+$$
+\begin{array}{l} \delta \leq \left(\frac {5}{4} - \epsilon^ {\prime}\right) ^ {N - 1} \cdot \Pr \left(f \left(e _ {t _ {1}}\right) = 1\right) \tag {122} \\ \leq \left(\frac {5}{4} - \epsilon^ {\prime}\right) ^ {N - 1} = \left(\frac {5}{4} - \epsilon^ {\prime}\right) ^ {- 1} \left(\frac {5}{4} - \epsilon^ {\prime}\right) ^ {N} \leq 8 \left(\frac {5}{4} - \epsilon^ {\prime}\right) ^ {N} \\ \end{array}
+$$
+
+Where we used that $\epsilon' \leq 1$ in the last step. Finally, it holds that:
+
+$$
+\left(\frac {5}{4} - \epsilon^ {\prime}\right) \leq e ^ {- \frac {\epsilon^ {\prime}}{3}} \text {o n t h e i n t e r v a l} 0. 3 7 \leq \epsilon^ {\prime} \leq 1. \tag {123}
+$$
+
+This then implies that:
+
+$$
+\delta \leq 8 e ^ {- \frac {N \epsilon^ {\prime}}{3}} \text {o n} 0. 3 7 \leq \epsilon^ {\prime} \leq 1. \tag {124}
+$$
+
+Combining with Equation 119, we have that
+
+$$
+\forall \epsilon^ {\prime} \in [ 0, 1 ], \Pr \left(\bigcap_ {i = 1} ^ {N} f \left(e _ {t _ {i}}\right)\right) \leq 8 e ^ {- \frac {N _ {\epsilon} ^ {\prime}}{3}} \tag {125}
+$$
+
+Because $\epsilon' \geq \epsilon$ , we have:
+
+$$
+\Pr \left(\bigcap_ {i = 1} ^ {N} f \left(e _ {t _ {i}}\right)\right) \leq 8 e ^ {- \frac {N \epsilon^ {\prime}}{3}} \leq 8 e ^ {- \frac {N \epsilon}{3}}. \tag {126}
+$$
+
+which was to be proven.
+
+
+
+# D UPPER-BOUNDING MIXING TIMES FOR EXAMPLES
+
+Here, we prove that the values of $\hat{t}_{\mathrm{mix}}$ used in the simulation experiments are in fact (somewhat loose) upper bounds on the true mixing times of $\mathcal{T}_e$ for these environments. While in practice, the true mixing times would not be known a priori, it is important for the validity of our examples that the true $t_{\mathrm{mix}}$ is in fact $\leq \hat{t}_{\mathrm{mix}}$ .
+
+We use the following following well-known fact:
+
+For distributions $\mathcal{A} \coloneqq \mathcal{A}_1 \otimes \mathcal{A}_2 \otimes \ldots \otimes \mathcal{A}_n$ and $\mathcal{B} \coloneqq \mathcal{B}_1 \otimes \mathcal{B}_2 \otimes \ldots \otimes \mathcal{B}_n$ :
+
+$$
+\left\| \mathcal {A} - \mathcal {B} \right\| _ {T V} \leq \sum_ {i = 1} ^ {n} \left\| \mathcal {A} _ {i} - \mathcal {B} _ {i} \right\| _ {T V} \tag {127}
+$$
+
+First, we deal with the combination lock experiment. We can write the transition matrix for any arbitrary two-state Markov chain as
+
+$$
+\left[ \begin{array}{c c} 1 - \epsilon_ {0} & \epsilon_ {1} \\ \epsilon_ {0} & 1 - \epsilon_ {1} \end{array} \right] \tag {128}
+$$
+
+where $0 \leq \{\epsilon_0, \epsilon_1\} \leq 1$ . Note that in our particular example, we have $0.1 \leq \{\epsilon_0, \epsilon_1\} \leq 0.9$ .
+
+This matrix has eigenvalues 1 and $1 - \epsilon_0 - \epsilon_1$ , and the stationary distribution (the eigenvector corresponding to the eigenvalue 1) is
+
+$$
+\pi_ {\infty} := \left[ \epsilon_ {1} / \left(\epsilon_ {0} + \epsilon_ {1}\right), \epsilon_ {0} / \left(\epsilon_ {0} + \epsilon_ {1}\right) \right] ^ {T}. \tag {129}
+$$
+
+Using the closed-form formula for the $n$ 'th power of a two-state Markov Chain given by Williams (1992), we have:
+
+$$
+\left(\left[ \begin{array}{c c} 1 - \epsilon_ {0} & \epsilon_ {1} \\ \epsilon_ {0} & 1 - \epsilon_ {1} \end{array} \right]\right) ^ {n} = \frac {1}{\epsilon_ {0} + \epsilon_ {1}} \left[ \left[ \begin{array}{l l} \epsilon_ {1} & \epsilon_ {1} \\ \epsilon_ {0} & \epsilon_ {0} \end{array} \right] - (1 - \epsilon_ {0} - \epsilon_ {1}) ^ {n} \left[ \begin{array}{c c} - \epsilon_ {0} & \epsilon_ {1} \\ \epsilon_ {0} & - \epsilon_ {1} \end{array} \right] \right] \tag {130}
+$$
+
+To compute the mixing time, we compute the state distribution $\pi_{n}$ , $n$ timesteps after each starting state:
+
+$$
+\left(\left[ \begin{array}{c c} 1 - \epsilon_ {0} & \epsilon_ {1} \\ \epsilon_ {0} & 1 - \epsilon_ {1} \end{array} \right]\right) ^ {n} \left[ \begin{array}{l} 1 \\ 0 \end{array} \right] = \frac {1}{\epsilon_ {0} + \epsilon_ {1}} \left[ \begin{array}{c} \epsilon_ {1} + (1 - \epsilon_ {0} - \epsilon_ {1}) ^ {n} \epsilon_ {0} \\ \epsilon_ {0} - (1 - \epsilon_ {0} - \epsilon_ {1}) ^ {n} \epsilon_ {0} \end{array} \right] \tag {131}
+$$
+
+and,
+
+$$
+\left(\left[ \begin{array}{c c} 1 - \epsilon_ {0} & \epsilon_ {1} \\ \epsilon_ {0} & 1 - \epsilon_ {1} \end{array} \right]\right) ^ {n} \left[ \begin{array}{l} 0 \\ 1 \end{array} \right] = \frac {1}{\epsilon_ {0} + \epsilon_ {1}} \left[ \begin{array}{l} \epsilon_ {1} - (1 - \epsilon_ {0} - \epsilon_ {1}) ^ {n} \epsilon_ {1} \\ \epsilon_ {0} + (1 - \epsilon_ {0} - \epsilon_ {1}) ^ {n} \epsilon_ {1} \end{array} \right] \tag {132}
+$$
+
+Note that the TV distance between either of these distributions and the stationary distribution $\pi$ is at most
+
+$$
+\left\| \pi_ {n} - \pi_ {\infty} \right\| _ {T V} \leq \frac {\left| \left(1 - \epsilon_ {0} - \epsilon_ {1}\right) \right| ^ {n} \max \left(\epsilon_ {0} , \epsilon_ {1}\right)}{\left(\epsilon_ {0} + \epsilon_ {1}\right)} \leq \left| \left(1 - \epsilon_ {0} - \epsilon_ {1}\right) \right| ^ {n}. \tag {133}
+$$
+
+The parameters $\{\epsilon_0,\epsilon_1\}$ for each two-state Markov chain are chosen uniformly at random, such that $0.1\leq \{\epsilon_0,\epsilon_1\} \leq 0.9$ . Therefore, $0\leq |(1 - \epsilon_0 - \epsilon_1)|\leq 0.8$ . Then, for any individual chain, we have:
+
+$$
+\left\| \pi_ {n} - \pi_ {\infty} \right\| _ {T V} \leq \left| \left(1 - \epsilon_ {0} - \epsilon_ {1}\right) \right| ^ {n} \leq 0. 8 ^ {n} \tag {134}
+$$
+
+In the combination lock experiments, there are up to $L = 512$ of these noise Markov chains; the probability distribution over the exogenous noise $\mathcal{E}$ is the product distribution over these chains. Then we use Equation 127 to bound the total TV distance for the chain $\mathcal{T}_e$ to its stationary distribution $\pi_{\mathcal{E}}$ ; that is:
+
+$$
+\left\| \pi_ {n} ^ {\text {t o t a l}} - \pi_ {\mathcal {E}} \right\| _ {T V} \leq 5 1 2 \cdot 0. 8 ^ {n}. \tag {135}
+$$
+
+Then, by the definition of mixing time, we have:
+
+$$
+t _ {\text {m i x}} \leq \min n, \text {s u c h} 5 1 2 \cdot 0. 8 ^ {n} \leq \frac {1}{4} \tag {136}
+$$
+
+Which gives us:
+
+$$
+t _ {\text {m i x}} \leq \left\lceil \frac {- \log (2 0 4 8)}{\log (0 . 8)} \right\rceil = 3 5. \tag {137}
+$$
+
+So the value that we use in the experiment, $\hat{t}_{\mathrm{mix}} = 40$ , is a valid upper bound.
+
+For the multi-maze experiment, the exogenous noise state consists of eight identical mazes, with agents moving uniformly at random in each of them. Unlike the "combination lock" example, where the individual components of the exogenous noise are conditioned on parameters $\epsilon_0$ , $\epsilon_1$ , which can vary, in the multi-maze example the individual mazes always represent instances of exactly the same, specific Markov chain. Let the transition matrix of this chain be $M$ , with stationary distribution $\pi_M$ . Then, by Equation 127, for the whole exogenous state $\mathcal{T}_e$ , we have:
+
+$$
+\begin{array}{l} t _ {\text {m i x}} = \min n, \text {s u c h} \forall s _ {0}, \| \left(\mathcal {T} _ {e}\right) ^ {n} s _ {0} - \pi_ {\mathcal {E}} \| \leq \frac {1}{4} \\ = \min n, \text {s u c h} \forall s _ {0} ^ {(1)}, s _ {0} ^ {(2)}, \dots s _ {0} ^ {(8)}, \| M ^ {n} s _ {0} ^ {(1)} \otimes M ^ {n} s _ {0} ^ {(2)} \otimes \dots \otimes M ^ {n} s _ {0} ^ {(8)} - \\ \left. \pi_ {M} \otimes \pi_ {M} \otimes \dots \otimes \pi_ {M} \right\| \leq \frac {1}{4} \tag {138} \\ \leq \min n, \text {s u c h t h a t} \forall s _ {0}, \sum_ {i = 1} ^ {8} \| M ^ {n} s _ {0} - \pi_ {M} \| \leq \frac {1}{4} \\ = \min n, \text {s u c h} \forall s _ {0}, \| M ^ {n} s _ {0} - \pi_ {M} \| \leq \frac {1}{3 2} \\ \end{array}
+$$
+
+Which is to say that $t_{mix}$ for the entire exogenous noise chain is upper-bounded by $t_{mix}(1/32)$ for the individual maze chain $M$ . Furthermore, while the state space for the entire chain is of size $|\mathcal{E}| = 68^8$ , the individual maze chain $M$ operates on a state of size 68. This is small enough that it is tractable to exactly compute $t_{mix}(1/32)$ for $M$ using numerical techniques. We performed the computation (source code is provided with the supplementary materials), and found that
+
+$$
+\min n, \text {s u c h} \forall s _ {0}, \| M ^ {n} s _ {0} - \pi_ {M} \| \leq \frac {1}{3 2} = 2 9 3. \tag {139}
+$$
+
+Therefore, for the full exogenous noise chain $\mathcal{T}_e$ , we have that $t_{mix} \leq 293$ . Then the value that we use in the experiment, $\hat{t}_{\mathrm{mix}} = 300$ , is a valid upper bound.
+
+# E DISCUSSION OF ASSUMPTIONS
+
+In this section, we argue that two major assumptions of the STEEL algorithm are necessary assumptions. In other words, if we remove these assumptions, then, we argue, achieving similar guarantees to our algorithm would become effectively impossible for any algorithm to accomplish in the single-trajectory, no-rews Ex-BMDP setting (at least without making additional assumptions to compensate). These assumptions are (1) reachability: the assumption that all endogenous states $s \in S$ are reachable from one another in $T$ ; and (2) the availability of a known upper bound on the exogenous state mixing time $t_{\mathrm{mix}}$ .
+
+# E.1 REACHABILITY
+
+Here, we argue that any algorithm for single-trajectory, no-rews representation learning of Ex-BMDPs must necessarily make a reachability assumption: that all endogenous latent states must be reachable from one another. At a high level, we argue that, if all latent states are not reachable from one another, then an algorithm must visit states in a particular order in order to explore the entire dynamics with a single trajectory. However, because the latent dynamics are not known a priori, it is impossible for an algorithm to guarantee that it visits states in the appropriate order.
+
+More formally, recall that the reachability assumption is that for any pair of latent states $s_1, s_2$ , there exists both a path from $s_1$ to $s_2$ and a path from $s_2$ to $s_1$ . Consider any Ex-BMDP $M$ where this condition does not hold, such that $|\mathcal{A}| \geq 2$ , and any learning algorithm $A$ . Firstly, if there is any pair of states $s_1$ and $s_2$ where neither can reach the other, then clearly a single trajectory is insufficient to learn the Ex-BMDP, because it cannot visit both $s_1$ and $s_2$ . Therefore, we restrict to the case where, for each pair of states, either both are reachable from each other, or (without loss of generality) $s_2$ is reachable from $s_1$ but $s_1$ is not reachable from $s_2$ .
+
+Consider every edge $(s, a, s')$ of the state transition graph defined by the state transition function $T$ . If, for all such edges, $s$ is reachable from $s'$ , then the reachability assumption holds on the entire dynamics (because all single "steps" are invertible by some sequence of actions, so for any pair $s_1, s_2$ , the path from $s_1$ to $s_2$ implies the existence of a path from $s_2$ to $s_1$ ). Therefore, if reachability does not hold, then there exists some edge $(s, a, s')$ such that $s$ is not reachable from $s'$ . Now, consider the first time that the algorithm $A$ encounters the state $s$ . Regardless of the details of $A$ , there must exist some action $a'$ such that, on this first encounter, the probability of $A$ taking action $a'$ is at least $1 / |\mathcal{A}|$ .
+
+Therefore, if $a' = a$ , then probability that the algorithm $A$ never revisits $s$ , and so never takes any other action from $s$ apart from $a'$ , is at least $1 / |\mathcal{A}|$ . Then, with substantial probability, the algorithm $A$ never explores the $|\mathcal{A}| - 1$ other possible transitions from $s$ , and cannot possibly learn the full dynamics of the Ex-BMDP. (To be more precise, the algorithm's output will not depend at all on the ground-truth value of $T(s, a'')$ for $a'' \in \mathcal{A} \setminus \{a\}$ , and so is highly unlikely to return the correct values for these transitions on arbitrary Ex-BMDPs.)
+
+Alternatively, if $a' \neq a$ , then consider the alternative Ex-BMDP $M'$ , which is identical to $M$ in every way (in terms of dynamics, exogenous state, emission function, etc.), except that the effects of actions $a$ and $a'$ on the latent state $s$ are swapped. Note that before first encountering the latent state $s$ , the MDPs $M$ and $M'$ will produce identically-distributed sequences of observations, so the algorithm $A$ will behave identically on them, and have identical internal memory/state. Then, when first encountering $s$ , the algorithm $M$ on $A$ will take action $a'$ with substantial probability, and then transition to $s'$ and be unable to revisit $s$ .
+
+Therefore, for any Ex-BMDP $M$ that violates reachability, any algorithm $A$ is either likely to fail on $M$ , or to fail on a slightly-modified version of $M$ . In any case, no such algorithm will be able to succeed with high probability on any general class of Ex-BMDPs that does not require reachability.
+
+# E.2 KNOWN UPPER BOUND ON THE MIXING TIME $t_{\mathrm{MIX}}$
+
+Here, we argue that the assumption that an upper bound on the mixing time is provided is also necessary. We argue that:
+
+1. Any general, provably sample-efficient algorithm for learning, with high probability, an Ex-BMDP from a single trajectory must necessarily require an upper bound on the mixing time of the exogenous noise to be provided a priori (unless some other information about the exogenous noise is provided.)
+2. The runtime of any algorithm for learning an Ex-BMDP must, in the worst case, include some term that scales at least linearly with the mixing time of the exogenous noise.
+
+At a high level, we argue that, with a single trajectory, it can be impossible to distinguish between a static exogenous dynamics (i.e., where only one exogenous state exists) and an extremely slow-mixing exogenous dynamics, in time sublinear in the mixing time. For any proposed algorithm that does not have access to a bound on the mixing time, and any Ex-BMDP with a single exogenous state (that is, a Block MDP), we can construct an extremely slow-mixing Ex-BMDP that behaves identically to the Block MDP with substantial probability during the entire duration of the runtime of the learning algorithm, but which at equilibrium has a quite different distribution of observations. This will make the learned encoder fail on the Ex-BMDP at equilibrium.
+
+More precisely, to show (1): suppose the converse is true: that there exists some algorithm $A$ that learns Ex-BMDP latent dynamics and state encoders, which is not provided any upper-bound on the mixing time of the exogenous noise of the Ex-BMDP, or any other information about the exogenous noise distribution. We assume that $A$ can learn the correct endogenous dynamics, as well as an encoder with accuracy (for every endogenous state, under the stationary exogenous distribution) of at least $1 - \epsilon$ , with probability at least $1 - \delta$ , for small values of $\epsilon$ and $\delta$ . Then, consider any Ex-BMDP $M_1$ and related parameterized family of Ex-BMDPs $M_2(\gamma), M_3(\gamma)$ with the following properties:
+
+- $M_{1}$ has $\mathbf{N}$ endogenous latent states $s_1, \ldots, s_N$ with some transition function $T$ , a single exogenous latent state $e_1$ , and an emission function $\mathcal{Q}(s, e_1)$ . (In other words, $M_{1}$ is any Block MDP).
+- $M_2(\gamma)$ has the same endogenous states and transition probabilities as $M_1$ , but has two exogenous latent states $e_1, e_2$ . The state $e_1$ transitions to $e_2$ , and $e_2$ transitions to $e_1$ , each with probability $\gamma$ . Note that the stationary distribution of the exogenous state is uniform over $e_1$ and $e_2$ . We also assume that the initial exogenous state distribution is uniform over $e_1$ and $e_2$ . Regardless of $\gamma$ , the emission function of $M_2(\gamma)$ is defined such that $\forall s_i, Q_{M_2}(s_i, e_1) = Q_{M_1}(s_i, e_1)$ .
+- $M_3(\gamma)$ is identical to $M_2(\gamma)$ , except that its emission function is defined as $\forall s_i, \mathcal{Q}_{M_3}(s_i, e_1) := \mathcal{Q}_{M_1}(s_i, e_1)$ , but $\forall s_i, \mathcal{Q}_{M_3}(s_i, e_2) := \mathcal{Q}_{M_2}(s_{(i+1)\% N}, e_2)$ . In other words, when the exogenous state is equal to $e_2$ , the emission distributions for the endogenous states are permuted in $M_3$ compared to $M_2$ .
+
+We also assume that the encoder hypothesis class can represent the inverses of $\mathcal{Q}_{M_1}$ , $\mathcal{Q}_{M_2}$ , and $\mathcal{Q}_{M_3}$ . However, note that by construction, any fixed encoder $\phi(\cdot)$ which has accuracy at least $1 - \epsilon$ on $M_2(\gamma)$ (for every endogenous state, under the stationary exogenous distribution) can only have accuracy at most $0.5 + \epsilon$ on $M_3(\gamma)$ , because, when the exogenous state is $e_2$ , any time that the encoder returns the correct latent state for $M_2(\gamma)$ , it will return the incorrect latent state for $M_3(\gamma)$ .8
+
+Now, consider what happens when we run the algorithm $A$ on $M_1$ . The number of environment steps that $A$ takes on $M_1$ forms some distribution; let $t$ be the 90'th percentile of this distribution, so that with probability 0.9, $A$ stops sampling before step $t$ .
+
+Now, we can set $\gamma \coloneqq 1 - 0.9^{1 / t}$ , so that, with probability 0.9, the endogenous state of $M_2(\gamma)$ or $M_3(\gamma)$ do not change before step $t$ . Therefore, by union bound, on $M_2(\gamma)$ or $M_3(\gamma)$ , if the initial exogenous state is $e_1$ , then with probability at least 0.8, the exogenous state will stay constant at $e_1$
+
+up to timestep $t$ , and the algorithm $A$ , seeing exactly the same distribution of observations as if the MDP was $M_{1}$ , will halt before timestep $t$ .
+
+Considering the $50\%$ probability that the exogenous state starts at $e_1$ , this gives at least a $40\%$ chance that $A$ applied to $M_2(\gamma)$ or $M_3(\gamma)$ never encounter the exogenous state $e_2$ . In this case, the distribution of encoders output by $A$ should be the same for the two Ex-BMDPs: let this distribution be $\mathcal{G}$ . (That is, $\mathcal{G}$ is the conditional distribution of encoders output by $A$ when applied to $M_2(\gamma)$ or $M_3(\gamma)$ , given that $A$ never encounters $e_2$ .) However, because $A$ fails on $M_2(\gamma)$ with probability at most $\delta$ , we can conclude that at least $(1 - 0.4^{-1}\delta)$ of the encoders from the distribution $\mathcal{G}$ represent successes of $A$ on $M_2(\gamma)$ .
+
+Because $A$ on $M_3(\gamma)$ also draws from $\mathcal{G}$ with probability at least 0.4, we can conclude that at least $0.4 - \delta$ of the time, $A$ on $M_3(\gamma)$ produces an encoder that is highly accurate on $M_2(\gamma)$ . As discussed above, any encoder that is highly-accurate on $M_2(\gamma)$ cannot be highly accurate on $M_3(\gamma)$ , so $A$ must fail on $M_3$ with substantial probability.
+
+Therefore, we can conclude that for any algorithm $A$ that has no "hint" about the exogenous dynamics (such as knowing the mixing time), there exists some $\gamma$ such that $A$ cannot possibly succeed with high probability on both $M_2(\gamma)$ and $M_3(\gamma)$ .
+
+To show point (2), simply note that in this construction, in order to ensure that $e_2$ is observed with probability $(1 - \delta)$ , an algorithm must observe at least the first $\lceil \log(2\delta) / \log(1 - \gamma) \rceil$ timesteps. Meanwhile, the mixing time of the two-state Markov chain exogenous state is given by $\lceil -1 / \log_2(1 - 2\gamma) \rceil$ . For a fixed $\delta$ and as $\gamma$ approaches 0, the ratio between these quantities approaches a constant: therefore, the number of steps required to ensure that $e_2$ is observed with high probability is linear in the mixing time.
+
+# F DOUBLE-PRIME LOOP EXPERIMENTS
+
+In this section, we present additional experiments which demonstrate that, on some types on Ex-BMDPs, the STEEL algorithm can empirically outperform the algorithms proposed in Lamb et al. (2023) and Levine et al. (2024), which do not have sample-complexity guarantees. We show that there are certain structures of Ex-BMDP latent dynamics which are difficult for these prior methods to learn efficiently, but on which STEEL performs well. Specifically, we look at a family of "double-prime loop" tabular Ex-BMDPs which are discussed by Levine et al. (2024). First, though, we describe the algorithms proposed by Lamb et al. (2023) and Levine et al. (2024), and motivate why certain dynamics structures such as "double-prime loops" present a challenge to these methods.
+
+# F.1 BACKGROUND
+
+# F.1.1 AC-STATE AND ACDF ALGORITHMS
+
+Lamb et al. (2023) and Levine et al. (2024) both propose algorithms to learn endogenous state encoders in the Ex-BMDP framework.
+
+Lamb et al. (2023) first proposed the AC-State algorithm, which aims to learn an encoder $\phi : \mathcal{X} \to \mathbb{N}$ , such that, under some one-to-one permutation $\sigma$ , $\sigma(\phi(x)) = \phi^*(x)$ . To accomplish this task, AC-State optimizes $\phi$ using a multistep inverse dynamics objective.
+
+Specifically, in the theoretical treatment, AC-State tries to find the encoder $\phi$ which optimizes the following objective:
+
+$$
+\begin{array}{l} \mathcal {L} (\phi) := \min _ {g \in \mathbb {N} \times \mathbb {N} \times \mathbb {N} \rightarrow \mathcal {P} (\mathcal {A})} \underset {k \sim \{1, \dots , K \} (x _ {t}, a _ {t}, x _ {t + k}) \sim \mathcal {D}} {\mathbb {E}} - \log \left(g \left(\phi \left(x _ {t}\right), \phi \left(x _ {t + k}\right), k\right) [ a _ {t} ]\right) \tag {140} \\ \phi_ {\mathrm {A C - S t a t e}} := \operatorname * {a r g m i n} _ {\mathcal {L} (\phi) = \min _ {\phi^ {\prime}} \mathcal {L} (\phi^ {\prime})} \\ \end{array}
+$$
+
+In other words, the loss $\mathcal{L}(\phi)$ is minimized on tuples $(x_{t},a_{t},x_{t + k})$ sampled from a trajectory, consisting of an observation $x_{t}$ , the following action $a_{t}$ , and the observation $k$ steps in the future, $x_{t + k}$ .
+
+The encoder $\phi (x)$ is trained to retain any information about the observations $\phi (x_{t})$ and $\phi (x_{t + k})$ that is useful for predicting $a_{t}$ . Specifically, an inverse-dynamics model $g$ is simultaneously trained with
+
+$\phi$ to predict $a_{t}$ given $\phi (x_{t}),\phi (x_{t + k})$ , and $k$ . The loss $\mathcal{L}(\phi)$ is then taken as the minimum loss for $\phi$ over all such functions $g$ .
+
+However, note that, based on this loss function alone, the identity encoder $\phi(x) := x$ achieves the minimum possible value of $\mathcal{L}(\phi)$ . Therefore, in order to filter exogenous information, the final encoder returned by AC-State is the minimal range encoder that minimizes the loss function.
+
+Lamb et al. (2023) claims that, if the data $\mathcal{D}$ is collected by a policy $\pi(x)$ that only depends on $x$ through $\phi^{*}(x)$ (that is, the policy ignores exogenous noise); and the maximum segment length $K$ is at least the endogenous dynamics diameter $D$ ; and the endogenous dynamics are deterministic, then the final encoder $\phi_{\mathrm{AC-State}}$ returned will correctly encode the endogenous latent state (in the limit of infinite data; and with sufficient function approximation).
+
+When applied in practice, $\phi$ and $g$ are learned neural networks, and a vector quantization bottleneck is used to restrict the range of $\phi$ (so the output of $\phi$ is a quantized vector, rather than an integer.)
+
+Levine et al. (2024) subsequently show that, in some cases, the AC-State objective in Equation 140 is not sufficient to learn a correct latent state encoder of an Ex-BMDP, even with unbounded amounts of data. Levine et al. (2024) identify specific flaws in the proofs of Lamb et al. (2023), and propose a modified loss function to address these flaws. In particular,
+
+1. The maximum segment length $K$ required to correctly learn the endogenous encoder must in some cases be larger than $D$ ; a corrected upper bound on the necessary segment length of $2D^2 + D$ is given.
+2. If the endogenous dynamics are periodic, then the multistep inverse objective can be insufficient, for any choice of $K$ . Levine et al. (2024) then propose to add an auxiliary loss function to the loss in Equation 140, namely a latent forward dynamics loss:
+
+$$
+\mathcal {L} _ {\text {f o r w a r d}} (\phi) := \min _ {h \in \mathbb {N} \times \mathcal {A} \rightarrow \mathcal {P} (\mathbb {N})} \underset {(x _ {t}, a _ {t}, x _ {t + 1}) \sim \mathcal {D}} {\mathbb {E}} - \log \left(h \left(\phi (x _ {t}), a _ {t}\right) [ \phi (x _ {t + 1}) ]\right). \tag {141}
+$$
+
+This loss term enforces that the transitions in the learned endogenous latent state space are deterministic; Levine et al. (2024) prove that enforcing this constraint is sufficient, when combined with the multistep inverse loss, to ensure that a correct endogenous representations are learned even when the endogenous latent dynamics are periodic. Levine et al. (2024) name the AC-State algorithm with this modified loss function ACDF.
+
+Note that because $D$ is in general unknown a priori, $K$ must be treated as a hyperparameter of the algorithm, so point (1) above is primarily of theoretical interest, but may aid in setting this hyperparameter if there is some prior knowledge of $D$ .
+
+So far, we have only described the learning objectives of the two proposed algorithms: now, we address how these algorithms collect the trajectory from which the tuples $(x_{t},a_{t},x_{t + k})$ are sampled. Recall that a condition on the correctness of AC-State (and ACDF) is that the data-collection policy does not depend on the noise in the observation, but only on the endogenous latent state. This condition naturally raises the question of how exactly an algorithm intended to discover $\phi^{*}$ can take actions that depend only on $\phi^{*}(x)$ , without already knowing $\phi^{*}$ in the first place.
+
+Lamb et al. (2023) performs experiments using two data-collection policies: (1). a uniformly random policy, which meets the condition simply by ignoring the observation $x$ entirely; and (2) a goal-seeking policy, which aims to maximize latent state coverage. For the latter policy, the data is collected simultaneously with training $\phi$ , and the partially-trained encoder $\phi_t$ is used to (imperfectly) filter out exogenous noise and plan in (an approximation of) the endogenous latent space. Lamb et al. (2023) explicitly acknowledge that this bootstrapping approach breaks the condition that the action $a_t$ depends only on the true endogenous state $\phi^*(x_t)$ , which is necessary in their proof of the correctness of their algorithm. Despite this, they observe that the approach seems to work well empirically. Meanwhile, Levine et al. (2024) only use uniformly random actions in their experiments.
+
+For now, we will assume that data is collected under a uniformly-random policy. We will return to discussing the latent-state-coverage maximizing approach proposed by Lamb et al. (2023) later, in Section F.3.
+
+
+Figure 5: Latent dynamics of DoublePrime(11, 13).
+
+# F.1.2 DOUBLE-PRIME LOOPS
+
+To specifically demonstrate that $K \approx \mathcal{O}(D^2)$ can be necessary to learn a correct encoder, even when a forward dynamics loss is also being used, Levine et al. (2024) give a concrete example. This example is the family of tabular "double-prime loop" Ex-BMDPs. For any two primes $p, q$ , with $p < q$ , let the Ex-BMDP DoublePrime $(p, q)$ be defined as follows:
+
+- $\mathcal{S} = \{0,1,\dots,(q - 1),0',1',\dots,(q - 1)'\}$ ; $\mathcal{A} = \{0,1\}$ ; $\mathcal{E} = \{e_0\}$ .
+- $\mathcal{X} = \mathcal{S};\mathcal{Q}(s,e_0) = s;\mathcal{T}_e(e_0) = e_0.$
+- The endogenous latent state transition function $T$ is defined as:
+
+$$
+T (s, a) = \left\{ \begin{array}{l l} (s + 1) \% q & \text {if } s \in \{1, \dots, q - 1 \} \text {or} (s = 0 \text {and} a = 0) \\ ((s + 1) \% q) ^ {\prime} & \text {if } s \in \{1 ^ {\prime}, \dots, (q - 1) ^ {\prime} \} \text {or} (s = 0 ^ {\prime} \text {and} a = 0) \\ (q - p + 1) ^ {\prime} & \text {if} (s = 0 \text {and} a = 1) \\ (q - p + 1) & \text {if} (s = 0 ^ {\prime} \text {and} a = 1). \end{array} \right. \tag{142}
+$$
+
+In other words, DoublePrime $(p,q)$ is a noise-free Ex-BMDP, where all of the dynamics are deterministic, and the latent state $s$ is directly observed as $x$ . The dynamics consist of two connected loops, each of $q$ states. The actions are generally ignored and the agent continues to progress through a loop, except for in states 0 and $0'$ , where taking the action 1 transports the agent to the other loop, at position $q - p + 1$ . As an example, the dynamics of DoublePrime(11, 13) are shown in Figure 5.
+
+There is also a related family of "single-prime loop" Ex-BMDPs. Let $\mathrm{SinglePrime}(p,q)$ be defined as (borrowing notation from Levine et al. (2024)):
+
+- $\mathcal{S} = \{0^*, 1^*, \dots, (q - 1)^*\}$ ; $\mathcal{A} = \{0, 1\}$ ; $\mathcal{E} = \{e_0\}$ ; $\mathcal{T}_e(e_0) = e_0$ .
+- $\mathcal{X} = \{0,1,\dots,(q - 1),0',1',\dots,(q - 1)'\}$ .
+$\mathcal{Q}(s^{*},e_{0}) = \left\{ \begin{array}{ll}s & \mathrm{with~probability~}1 / 2\\ s^{\prime} & \mathrm{with~probability~}1 / 2. \end{array} \right.$
+- The endogenous latent state transition function $T$ is defined as:
+
+$$
+T \left(s ^ {*}, a\right) = \left\{ \begin{array}{l l} \left(\left(s + 1\right) \% q\right) ^ {*} & \text {if} s \in \left\{1 ^ {*}, \dots , (q - 1) ^ {*} \right\} \text {or} (s = 0 ^ {*} \text {and} a = 0) \\ \left(q - p + 1\right) ^ {*} & \text {if} (s = 0 ^ {*} \text {and} a = 1). \end{array} \right. \tag{143}
+$$
+
+In other words, $\mathrm{SinglePrime}(p,q)$ has the same observation space $\mathcal{X}$ and action space $\mathcal{A}$ as $\mathrm{DoublePrime}(p,q)$ , but fewer controllable latent states. In $\mathrm{SinglePrime}(p,q)$ , when the agent is at latent state $s_t = i^*$ , either the observation $x_{t} = i$ or the observation $x_{t} = i'$ is emitted, each with probability 0.5. The agent progresses through the loop of latent states regardless of actions, except
+
+
+Figure 6: Latent dynamics of SinglePrime(11, 13).
+
+in latent state $0^{*}$ , where taking action 1 transitions the latent state to $(q - p + 1)^{*}$ . (See Figure 6 for an example.) Note that if we ignore the distinction between the observations $i$ and $i'$ , then DoublePrime $(p, q)$ and SinglePrime $(p, q)$ appear to have identical observed dynamics.
+
+Let $\phi_{DP}(x) \coloneqq x$ be the optimal encoder for DoublePrime $(p, q)$ , and
+
+$$
+\phi_ {S P} (x) := i ^ {*} \text {i f} x = i \text {o r} x = i ^ {\prime} \tag {144}
+$$
+
+be the optimal encoder for SinglePrime $(p,q)$
+
+Levine et al. (2024) show that, on the Ex-BMDP DoublePrime $(p,q)$ under a uniformly random behavioral policy, in the limit of infinite training data, the encoders $\phi_{DP}$ and $\phi_{SP}$ have exactly the same loss under the loss function in Equation 140, with $K\leq (q - 1)p$ . Note that if $p$ and $q$ are close, then $(q - 1)p\approx D^2 /4$ . Because Equation 140 prefers the smallest-range encoder among encoders with identical losses, this means that AC-State will incorrectly return $\phi_{SP}$ (which only has $q$ distinct outputs, rather than $2q$ ). Furthermore, the forward-dynamics loss suggested by Levine et al. (2024) does not help in this case: it will be zero for both encoders under data generated by DoublePrime $(p,q)$ .
+
+It is important to note that $\mathrm{SinglePrime}(p,q)$ and $\mathrm{DoublePrime}(p,q)$ have truly distinct controllable latent dynamics: in $\mathrm{DoublePrime}(p,q)$ , given sufficient lead-time, the agent can (eventually) control whether it is in state $1'$ or 1 at a future time step, while an agent in $\mathrm{SinglePrime}(p,q)$ can never control this. Therefore, AC-State is making an error if it returns $\phi_{SP}$ rather than $\phi_{DP}$ .
+
+Levine et al. (2024) only considers the case of unlimited data, and only introduces the double-prime loop Ex-BMDPs to make the point that the hyperparameter $K$ must be set very high in some cases. Here, however, we will also show empirically that, even when using a carefully-tuned and very large value of $K$ , AC-State and ACDF can take many samples to correctly learn these dynamics.
+
+# F.1.3 TABULAR EXPERIMENTS IN LEVINE ET AL. (2024)
+
+Levine et al. (2024) empirically compare AC-State (Lamb et al., 2023) to their proposed ACDF method, and empirically explore the effect of the hyperparameter $K$ . To do so from a purely statistical perspective (i.e., controlling for differences in optimization), in one set of experiments, Levine et al. (2024) perform tests on small tabular Ex-BMDPs, including SinglePrime(3,5) and DoublePrime(3,5). $^{10}$ For these experiments, the final learned $\phi_{\mathrm{AC-State}}$ (or $\phi_{\mathrm{ACDF}}$ ) is found by exhaustively computing the losses in Equations 140 and 141 on all possible encoders $\phi \in \mathcal{X} \rightarrow \{0,\dots,|\mathcal{X}| - 1\}$ (up to a relabeling perturbation of the output). For each encoder $\phi$ , the multistep inverse model $g$ (and, for ACDF, the forward model $h$ ) is estimated as a tabular function based on
+
+the collected data:
+
+$$
+g \left(s, s ^ {\prime}, k\right) [ a ] := \frac {\# \text {o f i n s t a n c e s o f} \left(x _ {t} , a _ {t} , x _ {t + k}\right) \text {s u c h t h a t} \phi \left(x _ {t}\right) = s ; a _ {t} = a ; \text {a n d} \phi \left(x _ {t + k}\right) = s ^ {\prime}}{\# \text {o f i n s t a n c e s o f} \left(x _ {t} , a _ {t} , x _ {t + k}\right) \text {s u c h t h a t} \phi \left(x _ {t}\right) = s \text {a n d} \phi \left(x _ {t + k}\right) = s ^ {\prime}}. \tag {145}
+$$
+
+However, due to overfitting, this tabular definition of $g$ , if used naively, would always lead to the identity encoder $\phi(x) \coloneqq x$ having the lowest empirical loss, regardless of the true latent encoder. Therefore, Levine et al. (2024) collect two trajectories for each experiment, and uses one to fit $g$ and $h$ for each possible encoder $\phi$ , and the other to evaluate the loss on each $\phi$ in order to determine the final output encoder $\phi_{\mathrm{AC-State}}$ (or $\phi_{\mathrm{ACDF}}$ ). We will call these sets of tuples the fitting set and optimization set, respectively.
+
+Because the number of possible encoders grows very quickly with $|\mathcal{X}|$ , Levine et al. (2024) limit these experiments to very small tabular Ex-BMDPs, with $|\mathcal{X}| \leq 10$ .
+
+With this background out of the way, we describe our experiments:
+
+# F.2 EXPERIMENTS
+
+# F.2.1 SETUP
+
+Given that Levine et al. (2024) describe how learning the correct latent state encoder for DoublePrime $(p, q)$ using a multistep-inverse loss requires taking into account specific long-duration dependencies between states, we hypothesized that learning such an encoder using multistep-inverse methods may be considerably less sample-efficient than doing so using STEEL, particularly for large $p$ and $q$ . We therefore adapted the tabular Ex-BMDP experimental setup from the released code of Levine et al. (2024) and tested the algorithms head-to-head.
+
+However, for large $p$ and $q$ , the process of exhaustively searching all possible encoders (that is, all partitions of $2q$ elements) quickly becomes intractable. Therefore, we restricted the hypothesis space of encoders to only include the two hypotheses $\phi_{SP}$ and $\phi_{DP}$ . Note that this modification makes the learning task strictly "easier." For a fair comparison, we also restricted the hypothesis class for STEEL to the minimum-possible set of "one-versus-rest" classifiers that would ensure realizability for both DoublePrime $(p,q)$ and SinglePrime $(p,q)$ . In particular, this is $3q$ classifiers $f \in \mathcal{F}$ : for each $i \in \{0,\dots,1 - q\}$ , $\mathcal{F}$ includes a hypothesis which distinguishes $i$ from all other observations, a hypothesis which distinguishes $i'$ from all other observations, and a hypothesis which distinguishes $i$ or $i'$ from all other observations.
+
+We make the following further modifications to the experimental protocol from Levine et al. (2024):
+
+- When assessing the "minimum-range" minimal loss encoder as in Equation 140, Levine et al. (2024) include an empirical "fudge factor": their protocol returns the minimum-range encoder that achieves a loss within $0.1\%$ of the true minimum loss over all possible encoders. We found that even without this fudge factor, the multistep-inverse methods were still heavily biased towards returning $\phi_{SR}$ , when applied either to SinglePrime $(p,q)$ ; or to DoublePrime $(p,q)$ with too-small $K$ or too-few samples. This observation has a simple statistical explanation: if, in the "infinite sample" limit, $\operatorname{Pr}(a_t|s_t = i, s_{t+1} = j) = \operatorname{Pr}(a_t|s_t = i', s_{t+1} = j')$ , then fitting $g(i,j,k)$ to both samples of $(x_t = i, a_t, x_{t+k} = j)$ and samples of $(x_t = i', a_t, x_{t+k} = j')$ from the "fitting set" will lead to a higher-quality multistep inverse model $g$ , and therefore lower loss on the "optimization set", compared to using only the (smaller number of) samples of $(x_t = i, a_t, x_{t+k} = j)$ alone. We therefore remove the fudge factor entirely, and in fact return $\phi_{GR}$ in the case of exact numerical ties.
+- Because the forward-model loss in Equation 141 is zero for both $\phi_{SR}$ and $\phi_{GR}$ for any dataset collected from DoublePrime $(p, q)$ , we do not use it in our experiments: that is, we regard AC-State and ACDF as equivalent in this setting, and refer to AC-State alone from here onward. (Technically, the forward model loss would help identify the correct encoder $\phi_{SR}$ in data generated from SinglePrime $(p, q)$ . However, as mentioned above, $\phi_{SR}$ is already returned essentially "by default" by AC-State, so this loss term turns out to be unnecessary.)
+- To better match the spirit of "learning an Ex-BMDP from a single trajectory", we collect the "fitting" and "optimization" sets from one single trajectory, one after the other, with each corresponding to half of the trajectory: we regard the total sample complexity as the
+
+length of the entire trajectory. Within of these two sub-trajectories, we collect all available tuples $(x_{t},a_{t},x_{t + k})$ for all $k\leq K$ . There are therefore slightly fewer tuples with $k = K$ than with $k = 1$ : we weight all tuples equally in the loss (rather than weighting all values of $k$ equally; Lamb et al. (2023) is unclear about the "correct" behavior here, and it is not theoretically important).
+
+- Based on Equation 145, $g(s,s^{\prime},k)[a]$ can be zero, which, by Equation 140, can lead to an infinite loss on a sample in the "optimization" set. In order to avoid this, Levine et al. (2024) set $g(s,s^{\prime},k)[a]$ to an arbitrary floor value of $10^{-7}$ . As a more principled and scale-invariant solution, we use standard Laplace ("add-one") smoothing when fitting $g$ .
+
+We empirically compare the sample-efficiency of STEEL to AC-State on these problems with $(p,q) = (3,5),(5,7),(11,13),(17,19),(29,31)$ , and (41,43).
+
+In our comparison, we run each algorithm under the "best" choice of hyperparameters. For AC-State, the conduct a large hyperparameter search to find the optimal $K$ , while for STEEL, we simply choose a single set of hyperparameters that will succeed on both DoublePrime $(p,q)$ and SinglePrime $(p,q)$ based on our prior knowledge of the problems. Specifically:
+
+- For AC-State, for each tested value of $(p,q)$ , we first collect 20 validation trajectories of DoublePrime $(p,q)$ (under a uniformly random policy), for increasing dataset sizes starting at $T = 100$ steps. At each tested dataset size $T$ , we compute the optimal $\phi_{\mathrm{AC-State}}$ for each of the 20 trajectories, with each possible value of $K$ from $K = 1$ to $K = 50,000$ . We first repeatedly increase the dataset size $T$ by factors of 10. Once we first identify a $T = 10^{m}$ such that, for at least some $K$ , AC-State correctly returns $\phi_{\mathrm{AC-State}} = \phi_{DP}$ for all 20 trajectories, we then test with $T = \{2 \cdot 10^{m-1}, 3 \cdot 10^{m-1}, \dots, 9 \cdot 10^{m-1}\}$ . At the earliest of these timesteps at which, for some $K$ , a correct encoder is learned for all 20 trajectories, we record the median such $K$ as the "tuned" value $K_{\mathrm{opt}}$ of this hyperparameter. (See Figure 7 for the results of the hyperparameter search.) At this point, we perform the actual test: we evaluate the success rate of AC-State on DoublePrime $(p,q)$ , using only $K = K_{\mathrm{opt}}$ for values of $T$ starting at $T = 10^{m-1}$ and increasing by increments of $10^{m-1}$ , on 20 new trajectories for each tested dataset size. We stop when this test-time accuracy reaches 20/20 on trajectories from DoublePrime $(p,q)$ , at some $T_{\mathrm{max}}$ . Finally, we verify that AC-State can also consistently, correctly learn $\phi_{SP}$ on data from SinglePrime $(p,q)$ with $K = K_{\mathrm{opt}}$ and a trajectory length of $T_{\mathrm{max}}$ , for 20 trajectories. (This always held in practice. $^{11}$ )
+
+- For STEEL, we set $N = \hat{D} = 2q$ (to match the maximum number of states in DoublePrime(p,q) or SinglePrime(p,q)); $\hat{t}_{\text{mix}} = 1$ (because neither DoublePrime(p,q) nor SinglePrime(p,q) have time-correlated noise); $\epsilon = 0.49$ (because, due to the simple emission distributions $\mathcal{Q}$ of SinglePrime and DoublePrime, a $51\%$ encoder accuracy on each latent state implies a $100\%$ encoder accuracy); and $\delta = 0.05$ . We test for 20 trials each of SinglePrime(p,q) and DoublePrime(p,q). All of these tests returned the correct encoders, so the only metric we needed to consider was the number of environment steps taken for each run.
+
+# F.2.2 RESULTS
+
+Our top-line results are reported in Table 3. Our first reported statistic is the "Max Steps": the number of environment steps at which all 20 out of 20 tested trajectories for each of DoublePrime $(p, q)$ and SinglePrime $(p, q)$ returned the correct encoder. (For STEEL, this is simply the maximum steps taken over all 40 trajectories; for AC-State, this is the $T_{\mathrm{max}}$ discovered in the test-time search described in the previous section.) We see that, while for small instances $(|S| \leq 14)$ of DoublePrime $(p, q)$ , AC-State is more sample-efficient than STEEL, STEEL scales efficiently to larger instances of the problem.
+
+
+
+
+
+
+
+
+
+
+Figure 7: Results from the hyperparameter search for the maximum-step-count parameter $K$ in Equation 140. The objective is to find a $K$ which leads to a high success rate in learning the correct latent state encoder for DoublePrime( $p, q$ ), for the lowest possible number of environment steps.
+
+
+
+
(p,q)
(3,5)
(5,7)
(11,13)
(17,19)
(29,31)
(41,43)
Max Steps for STEEL
5.97·104
1.49·105
9.07·105
2.60·106
1.10·107
2.83·107
Max Steps for AC-State
4·103
4·104
1·106
8·106
1·108
5·108
Max Steps: (AC-State / STEEL)
≈0.07
≈0.3
≈1
≈3
≈9
≈18
Median Steps (STEEL, DoublePrime)
2.50·104
7.48·104
5.23·105
1.08·106
1.74·106
3.29·106
Median Steps (AC-State, DoublePrime)
3·103
3·104
8·105
7·106
9·107
5·108
Median Steps: (AC-State / STEEL)
≈0.1
≈0.4
≈1.5
≈6
≈50
≈150
+
+Table 3: Comparison of the empirical sample complexity of STEEL and AC-State on prime-loop MDPs. See text of Section F.2.2.
+
+Further, we noticed an interesting trend in the data. AC-State tended to transition very abruptly from learning the wrong encoder on all tests of DoublePrime to learning the correct encoder on all tests as $T$ increased (as can be observed in the hyperparameter search in Figure 7). By contrast, the distribution of steps taken for STEEL on DoublePrime( $p, q$ ) was highly skewed: most trials took significantly fewer than the maximum observed number of steps. We therefore also compare the median number of steps taken to learn a correct encoder for DoublePrime( $p, q$ ). For STEEL, this is computed as simply the median length of the 20 DoublePrime( $p, q$ ) trajectories tested. For AC-State, it is the first timestep $T$ in the test-time search where AC-State with $K = K_{\mathrm{opt}}$ learns a correct encoder for at least 10 of the 20 trajectories. Here, we find that, especially for large ( $p, q$ ), STEEL's advantage over AC-State becomes even more pronounced.
+
+# F.3 EXPLORATION POLICIES WITH AC-STATE
+
+So far, we have only compared STEEL to AC-State, where AC-State uses a uniformly random exploration policy. This may seem unfair: STEEL takes decidedly nonrandom actions, and Lamb et al. (2023) proposes an active exploration method for AC-State (albeit, as mentioned in Section F.1.1 above, a method without strict theoretical grounding).
+
+However, there is reason to believe that exploration policies similar to the one proposed by Lamb et al. (2023) would be unlikely to help correctly identify the dynamics of DoublePrime $(p,q)$ .
+
+To start with, the stated goal of the exploration policy in Lamb et al. (2023) is to "achieve high coverage of the control-endogenous state space." A natural question to ask is: how poorly do uniformly random policies perform at achieving this goal? To quantify this, we examined the state coverage for a single $10^{6}$ -step trajectory on DoublePrime(41, 43), and computed the ratio of the state visitation of the most-visited state to the state visitation of the least-visited state. Surprisingly, this was $\approx 2$ . In other words, DoublePrime is not a hard exploration problem, and so techniques designed to improve state coverage would seem to be unlikely to provide much of a benefit over a uniformly random policy.
+
+Still, we will now examine the specific exploration technique proposed by Lamb et al. (2023). At a high level, the technique proceeds as follows:
+
+- Throughout data collection, the agent maintains an approximate version of the encoder $\phi'$ obtained by optimizing the AC-State loss (Equation 140), and an approximate transition function $T'$ , obtained through counting. The algorithm also maintains state visitation counts for each of the learned latent states encoded by $\phi'$ .
+- At the start of each round of exploration (time $t$ ), the agent selects a goal learned-latent state $s_g$ , with probability inversely proportional to the visitation count. The agent then takes a single random action $a_t$ , and then, starting at time $t + 1$ , plans shortest-path to $s_g$ and computes the number of steps $k'$ it will take to get to $s_g$ . Then, the agent proceeds to navigate to $s_g$ in a closed-loop manner, using both $\phi'$ and $T'$ . After $k'$ steps, regardless of whether $s_g$ is reached, a new goal is set, and the process starts over.
+- The encoder $\phi$ is only trained on the tuples $(x_{t},a_{t},x_{t+k'+1})$ which begin with a random action and end with a goal state.
+
+We performed experiments of a version of this algorithm adapted for our tabular setting, on the DoublePrime environments. Here, we explain the modifications we made to this exploration algorithm from Lamb et al. (2023) for our tests. Examining the original algorithm, we immediately
+
+
(p,q)
(3,5)
(5,7)
(11,13)
(17,19)
(29,31)
Max Steps (AC-State, DoublePrime, Uniform Policy)
4·103
4·104
1·106
8·106
1·108
Max Steps (AC-State, DoublePrime, Exploration)
8·103
6·104
2·106
2·107
2·108
Median Steps (AC-State, DoublePrime, Uniform Policy)
3·103
3·104
8·105
7·106
9·107
Median Steps (AC-State, DoublePrime, Exploration)
6·103
4·104
2·106
2·107
2·108
+
+Table 4: Comparison of the empirical sample complexity of AC-State on the DoublePrime $(p,q)$ environments, with and without active exploration. (Note that we did not perform a final comparison for $p = 41$ , $q = 43$ , because the hyperparameter search for the active exploration policy (see Figure 8) with a maximum $K$ of 50000 did not rule out a $K_{\mathrm{opt}} > 50000$ , so we could not fairly tune this hyperparameter for the active exploration policy. We were unable to perform a hyperparameter search with $K > 50000$ due to technical limitations.)
+
+notice an issue: the encoder is only trained with segments of length $k = k' + 1$ , which (assuming $\phi'$ and $T'$ are anywhere close to accurate) will only scale linearly with $D$ . However, properly learning the encoder for the DoublePrime environments requires examining longer segments of trajectories than the diameter of the dynamics graph. Therefore, in order to adapt this exploration method to the setting we consider, we eliminate this feature of the algorithm and train $\phi$ on the entire collected trajectory, as in Equation 140.
+
+Furthermore, we give the exploration method what should be a large, unnatural advantage, by planning, choosing goals, and assessing state visitation on the true ground truth dynamics $T$ , with the ground-truth state encoder $\phi$ . This represents what should be the "best possible" case for the algorithm. It also enables us to test in this setting without having to optimize $\phi'$ continuously during data collection, and to assess many values of the hyperparameter $K$ (which would impact the intermediate encoder $\phi'$ ) simultaneously on a single collected trajectory.
+
+In our implementation, we reset the state visitation counts between collecting the "fitting" and "optimization" portions of the trajectory, in order to ensure that they are distributed in the same way. We also take uniformly random actions in cases where both actions produce a path of the same length to the goal. Otherwise, we simply take the shortest available path to the goal state, and, when it is reached, pick a new goal and take one random action.
+
+Hyperparameter search results are shown in Figure 8, and top-line results are shown in Table 4. We see in Table 4 that AC-State with the active exploration method seems to slightly underperform random exploration on the DoublePrime $(p,q)$ environments, requiring slightly more samples to find the correct encoder, for all values of $(p,q)$ that were tested. $^{12}$ While it is not immediately obvious why we see this gap, these results support our initial hypothesis that, because the DoublePrime environments are well-explored by uniformly random policies, techniques designed to improve latent state coverage are not helpful in improving AC-State's performance on these environments.
+
+# F.4 DISCUSSION
+
+It is important to note that the DoublePrime environments are not hard-exploration environments, nor do they have any time-correlated noise, nor do they have rich observations. In fact, adding time-correlated noise or rich observations would likely only scale the sample-complexity of STEEL on these environments only modestly (linearly in $\hat{t}_{\text{mix}}$ and $\log(|\mathcal{F}|)$ ). Rather, STEEL outperforms AC-State on large instances of these environments because the environments' transition dynamics are arranged in a way that is in a sense "adversarial" to multistep-inverse methods. By contrast, because STEEL has well-understood sample-complexity that applies for any transition graph structure (as long as the reachability assumption holds), we do not expect that any such "adversarial" environments to exist for STEEL.
+
+
+
+
+
+
+
+
+
+
+Figure 8: Results from the hyperparameter search for the maximum-step-count parameter $K$ for DoublePrime $(p, q)$ , using the active exploration policy described in Section F.3.
+
+
\ No newline at end of file
diff --git a/ICLR/2025/Learning a Fast Mixing Exogenous Block MDP using a Single Trajectory/images.zip b/ICLR/2025/Learning a Fast Mixing Exogenous Block MDP using a Single Trajectory/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..7c3b4b49d537ee49151dc8b9a6cb90ac533ccc1a
--- /dev/null
+++ b/ICLR/2025/Learning a Fast Mixing Exogenous Block MDP using a Single Trajectory/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:993e543ee69a88bf7116a8af8663877b16a63055e8df6a7ecb3147912ebbe8b7
+size 2194241
diff --git a/ICLR/2025/Learning a Fast Mixing Exogenous Block MDP using a Single Trajectory/layout.json b/ICLR/2025/Learning a Fast Mixing Exogenous Block MDP using a Single Trajectory/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..c6d3534955665e6ab786c58a16c5211d43ff70fd
--- /dev/null
+++ b/ICLR/2025/Learning a Fast Mixing Exogenous Block MDP using a Single Trajectory/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6f7f93dc284c23cdf69b3fcace1b6840bf9a53ae3680d9382ddd986b81965064
+size 2912394
diff --git a/ICLR/2025/Learning a Neural Solver for Parametric PDEs to Enhance Physics-Informed Methods/41fb36df-ee16-41dc-9df0-3b2a6759f4f9_content_list.json b/ICLR/2025/Learning a Neural Solver for Parametric PDEs to Enhance Physics-Informed Methods/41fb36df-ee16-41dc-9df0-3b2a6759f4f9_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..d7c72cdad1c369b46a4954c94b9905fe1a836198
--- /dev/null
+++ b/ICLR/2025/Learning a Neural Solver for Parametric PDEs to Enhance Physics-Informed Methods/41fb36df-ee16-41dc-9df0-3b2a6759f4f9_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:532494c871d48db8876597597283bcaede576e40594d0f82981a973f7e971831
+size 250811
diff --git a/ICLR/2025/Learning a Neural Solver for Parametric PDEs to Enhance Physics-Informed Methods/41fb36df-ee16-41dc-9df0-3b2a6759f4f9_model.json b/ICLR/2025/Learning a Neural Solver for Parametric PDEs to Enhance Physics-Informed Methods/41fb36df-ee16-41dc-9df0-3b2a6759f4f9_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..da8a03cb5cb5657c424a558202cfa4de7bbed535
--- /dev/null
+++ b/ICLR/2025/Learning a Neural Solver for Parametric PDEs to Enhance Physics-Informed Methods/41fb36df-ee16-41dc-9df0-3b2a6759f4f9_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d8fcfb642439b26513c85c05fcc9c77ac39314916f8da13b561d56f6d4683d4e
+size 298848
diff --git a/ICLR/2025/Learning a Neural Solver for Parametric PDEs to Enhance Physics-Informed Methods/41fb36df-ee16-41dc-9df0-3b2a6759f4f9_origin.pdf b/ICLR/2025/Learning a Neural Solver for Parametric PDEs to Enhance Physics-Informed Methods/41fb36df-ee16-41dc-9df0-3b2a6759f4f9_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..e998dfb04659b28639b4f472e7da91faf3adf517
--- /dev/null
+++ b/ICLR/2025/Learning a Neural Solver for Parametric PDEs to Enhance Physics-Informed Methods/41fb36df-ee16-41dc-9df0-3b2a6759f4f9_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5ea26a959591c26ffc9225fec11084866f8fce347c638b979c13ffa2b920095d
+size 3613643
diff --git a/ICLR/2025/Learning a Neural Solver for Parametric PDEs to Enhance Physics-Informed Methods/full.md b/ICLR/2025/Learning a Neural Solver for Parametric PDEs to Enhance Physics-Informed Methods/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..ad63b1d4d28e36f86dd8461a2ba431a5a5275409
--- /dev/null
+++ b/ICLR/2025/Learning a Neural Solver for Parametric PDEs to Enhance Physics-Informed Methods/full.md
@@ -0,0 +1,1214 @@
+# LEARNING A NEURAL SOLVER FOR PARAMETRIC PDESTO ENHANCE PHYSICS-INFORMED METHODS
+
+Lise Le Boudec\*
+
+Emmanuel de Bezenac 2
+
+Louis Serrano
+
+Ramon Daniel Regueiro-Espino
+
+Yuan Yin $^{3}$ †
+
+Patrick Gallinari $^{1,4}$
+
+$^{1}$ Sorbonne Université, CNRS, ISIR, F-75005 Paris, France
+2 INRIA Paris, France
+$^{3}$ Valeo.ai, Paris, France
+$^{4}$ Criteo AI Lab, Paris, France
+
+# ABSTRACT
+
+Physics-informed deep learning often faces optimization challenges due to the complexity of solving partial differential equations (PDEs), which involve exploring large solution spaces, require numerous iterations, and can lead to unstable training. These challenges arise particularly from the ill-conditioning of the optimization problem caused by the differential terms in the loss function. To address these issues, we propose learning a solver, i.e., solving PDEs using a physics-informed iterative algorithm trained on data. Our method learns to condition a gradient descent algorithm that automatically adapts to each PDE instance, significantly accelerating and stabilizing the optimization process and enabling faster convergence of physics-aware models. Furthermore, while traditional physics-informed methods solve for a single PDE instance, our approach extends to parametric PDEs. Specifically, we integrate the physical loss gradient with PDE parameters, allowing our method to solve over a distribution of PDE parameters, including coefficients, initial conditions, and boundary conditions. We demonstrate the effectiveness of our approach through empirical experiments on multiple datasets, comparing both training and test-time optimization performance. The code is available at https://github.com/2ailesB/neural-parametric-solver.
+
+# 1 INTRODUCTION
+
+Partial Differential Equations (PDEs) are ubiquitous as mathematical models of dynamical phenomena in science and engineering. Solving PDEs is of crucial interest to researchers and engineers, leading to a huge literature on this subject (Evans, 2010; Salsa, 2015). Traditional approaches to solving PDEs such as finite difference, finite element analysis, or spectral methods (Zienkiewicz et al., 2005; LeVeque, 2007) often come with stability and convergence guarantees but suffer from a high computational cost. Improving numerical PDE solvers through faster and more accurate algorithms remains an active research topic (Zienkiewicz et al., 2005).
+
+PDE solvers usually rely on discretization and/or linearization of the problem through various techniques to simplify the computations. Iterative methods such as Jacobi, Gauss-Seidel, Conjugate Gradient, and Krylov subspace methods can then be used to solve the resulting systems. Unfortunately, many PDEs have an ill-conditioned nature, and these iterative processes can demand extensive computational resources. Preconditioning techniques are often essential to mitigate this, though they require precise customization to the specific PDE problem, making the development of effective solvers a significant research endeavor in itself. Yet, the computational demands, time, and expertise required to develop these algorithms sometimes make them impractical or sub-optimal for specific
+
+classes of problems. Instead of relying on hand-designed algorithms, researchers have investigated, as an alternative, the use of machine learning to train iterative PDE solvers Hsieh et al. (2019); Li et al. (2023a); Rudikov et al. (2024); Kopaničáková et al. (2023). These approaches usually parallel the classical numerical methods by solving a linear system resulting from the discretization of a PDE, for example, using finite differences or finite elements. A preconditioner is learned from data by optimizing a residual loss computed w.r.t. a ground truth solution obtained with a PDE solver. This preconditioner is used on top of a baseline iterative solver and aims at accelerating its convergence. Examples of baseline solvers are the conjugate gradient (Li et al., 2023a; Rudikov et al., 2024) or the Jacobi method Hsieh et al. (2019).
+
+Another recent research direction investigates the use of neural networks for building surrogate models in order to accelerate the computations traditionally handled by numerical techniques. These methods fall into two main categories: supervised and unsupervised. The supervised methodology consists of first solving the PDE using numerical methods to generate input and target data and then regressing the solution using neural networks in the hope that this surrogate could solve new instances of the PDE. Many models, such as Neural Operators, lie within this class (Li et al., 2020; Raonic et al., 2023; Bartolucci et al., 2023) and focus on learning the solution operator directly through a single neural network pass. Unsupervised approaches, involve considering a neural network as a solution of the PDE. The neural network parameters are found by minimizing the PDE residual with gradient descent. Methods such as Physics-Informed Neural Networks (PINNs) (Raissi et al., 2019), or DeepRitz (E & Yu, 2018) fall under this category. This family of methods is attractive as it does not rely on any form of data, but only on information from the PDE residual. However, they exhibit severe difficulties during training (Krishnapriyan et al., 2021; Ryck et al., 2023), often requiring many optimization steps and sophisticated training schemes (Krishnapriyan et al., 2021; Rathore et al., 2024). The ill-conditioned nature of PDE residual loss appears again in this context, making standard optimizers such as Adam inappropriate (see appendix E.6 and appendix E.7 for a visualization of the ill conditioning of this loss landscape). A detailed review of the existing literature is described in appendix A.
+
+In this work, we consider having access to the PDE as in unsupervised approaches and also to some data for training our neural solver. Our objective is to solve the optimization issues mentioned above by learning an iterative algorithm that solves the PDE from its residual, defined as in the PINNs framework (see fig. 1). This neural solver is trained from data, either simulations or observations. Different from the classical ML training problem which aims at learning the parameters of a statistical model from examples, the problem we handle is learning to learn, Andrychowicz et al. (2016), i.e. learning an iterative algorithm that will allow us to solve a learning problem. When vanilla PINNs handle a single PDE instance, requiring retraining for each new instance, we consider the more complex setting of solving parametric PDEs, the parameters may include boundary or initial conditions, forcing terms, and PDE coefficients. Each specific instance of the PDE, sampled from the PDE parameter distribution, will then be considered as a training example. The objective is then to learn a solver from a sample of the parametric PDE distribution in order to accelerate inference on new instances of the equation. With respect to unsupervised approaches, our model implements an improved optimization algorithm, tailored to the parametric PDE problem at hand instead of using a hand-defined method such as stochastic gradient descent (SGD) or Adam. As demonstrated in the experimental section, this approach proves highly effective for the ill-posed problem of optimizing the PINNs objective, enabling convergence in just a few steps. This is further illustrated through gradient trajectory visualizations in appendix E.6. In the proposed methodology, the neural solver will make use of the gradient information computed by a baseline gradient method to accelerate its convergence. In our instantiation, we will use SGD as our baseline algorithm, but the method could be easily extended to other baselines. Our model deviates from the traditional preconditioning methods by directly optimizing the non-linear PDE residual loss (Raissi et al., 2019) without going through the discretization steps. Our contribution includes :
+
+- Setting an optimization framework for learning to iteratively solve parametric PDEs from physics-informed loss functions. We develop an instantiation of this idea using an SGD baseline formulation. We detail the different components of the framework as well as training and inference procedures.
+- Evaluating this method on challenging PDEs for physics-informed method, including failure cases of classical PINNs and showing that it solves the associated optimization issues and accelerates the convergence.
+
+- Extending the comparison to several parametric PDEs with varying parameters from 1d static to 2d+time problems. We perform a comparison with baselines demonstrating a significant acceleration of the convergence w.r.t. baselines.
+
+
+Figure 1: Optimization scheme of a physics-informed method with our framework.
+
+# 2 MOTIVATION
+
+Let us first motivate our objective with a simple example. Physics-informed neural networks (PINNs) are a promising tool for optimizing neural networks in an unsupervised way to solve partial differential equations (PDEs). However, these methods are notoriously difficult to train (Krishnapriyan et al., 2021; Ryck et al., 2023). As an illustrative example of this challenge, let us solve the zero-boundary Poisson equation in 1d on $\Omega = [-\pi, \pi]$ . Note that this section is intentionally informal, we provide rigorous statements and proofs in Appendix B.
+
+Poisson equation, 1d. The solution is given by $u(x) = \sin (kx)$ .
+
+$$
+u ^ {\prime \prime} (x) = - k ^ {2} \sin (k x),
+$$
+
+$$
+u (- \pi) = 0, u (\pi) = 0. \tag {1}
+$$
+
+Physics-informed machine learning relies on an ansatz space of parametric functions, e.g. neural networks $u_{\Theta}:\Omega \mapsto \mathbb{R}$ , minimizing the following loss in order to satisfy the constraints in equation 1:
+
+$$
+\mathcal {L} _ {\mathrm {P D E}} = \mathcal {L} _ {\mathrm {R e s}} + \lambda \mathcal {L} _ {\mathrm {B C}}, \quad \mathcal {L} _ {\mathrm {R e s}} = \int_ {\Omega} | u _ {\Theta} ^ {\prime \prime} (x) - f (x) | ^ {2} d x,
+$$
+
+$$
+\mathcal {L} _ {\mathrm {B C}} = \frac {1}{2} \left[ u _ {\Theta} (- \pi) ^ {2} + u _ {\Theta} (\pi) ^ {2} \right].
+$$
+
+As a simple example, consider the parametrization given by considering a linear combination of Fourier features widely used (Tancik et al., 2020), $u_{\Theta}(x) = \sum_{k = -K}^{K}\theta_{k}\phi_{k}(x)$ , with $\phi_0(x) = \frac{1}{\sqrt{2\pi}}$ , $\phi_{-k}(x) = \frac{1}{\sqrt{\pi}}\cos (kx)$ and $\phi_k(x) = \frac{1}{\sqrt{\pi}}\sin (kx)$ for $1\leq k\leq K$ .
+
+This simple but informative example yields a tractable gradient descent algorithm, as the associated updates are linear in the parameters, governed by a matrix $A$ and constant $b$ :
+
+$$
+\begin{array}{l} \Theta_ {l + 1} = \Theta_ {l} - \eta \nabla \mathcal {L} _ {\mathrm {P D E}} (\Theta_ {l}) \\ = (I - \eta A) \Theta_ {l} + b \tag {2} \\ \end{array}
+$$
+
+with $A$ whose condition number is $\kappa(A) \coloneqq \lambda_{\max}(A) / \lambda_{\min}(A) \geq K^4$ :
+
+$$
+A = \left[ \begin{array}{c c c c} 0 ^ {4} & 0 & \dots & 0 \\ 0 & 1 ^ {4} & \dots & 0 \\ \vdots & \vdots & \ddots & \vdots \\ 0 & 0 & \dots & K ^ {4} \end{array} \right] + \lambda \left[ \begin{array}{c} \phi_ {1} (\pi) \\ \phi_ {2} (\pi) \\ \vdots \\ \phi_ {K} (\pi) \end{array} \right] \left[ \begin{array}{c c c c} \phi_ {1} (\pi) & \phi_ {2} (\pi) & \dots & \phi_ {K} (\pi) \end{array} \right]. \tag {3}
+$$
+
+This implies that the condition number of $A$ increases extremely rapidly in the ratio between the highest and lowest frequencies of the network. Given that the rate of convergence to the optimum $\Theta^{*} = \Theta_{0} + A^{-1}b$ can be bounded as
+
+$$
+\left\| \Theta_ {l} - \Theta^ {*} \right\| _ {2} \leq \left(1 - c / \kappa (A)\right) ^ {l} \| \Theta_ {0} - \Theta^ {*} \| _ {2}, \tag {4}
+$$
+
+the number of steps $N(\varepsilon)$ required to obtain an error of size at most $\varepsilon$ , i.e., $\| \Theta_l - \Theta^* \|_2 \leq \varepsilon$ increases linearly in the condition number, i.e. as the fourth power of the maximal frequency $K$ :
+
+$$
+N (\varepsilon) = O \left(\kappa (A) \ln \frac {1}{\epsilon}\right) = O \left(K ^ {4} \ln \frac {1}{\epsilon}\right). \tag {5}
+$$
+
+We believe that this simple example clearly illustrates and highlights the fact that PINNs—even when considering a linear basis, and when the PDE is linear-suffer heavily from ill-conditioning: if 500 steps are required in order to achieve a given error when $K = 5$ , roughly speaking, 312 500 steps are required for only $K = 25$ . This result extends to more general linear systems of equations and linear ansatz, as explained in appendix B.
+
+Our objective in the following will be to accelerate the convergence of such systems in this context—as well as extend them to the non-linear setting. To do so, in the following section, we will learn how to transform the optimization problem in such a way that the number of gradient descent iterations is small. The resulting method can be seen as a standalone, iterative solver as it is not only applicable to different PDEs but can handle a wide range of initial/boundary conditions and parameters.
+
+# 3 APPROACH
+
+In order to optimize PDE-based losses, we propose to learn a physics-based optimizer that will fulfill two objectives: (i) allowing a fast test-time optimization given a new PDE and (ii) solving without retraining parametric PDEs, with varying PDE coefficients $\gamma^2$ , forcing terms $f$ , and initial/boundary conditions $g$ using the same model. We present the general framework below and propose an instantiation that leverages a linear combination of basis functions as the ansatz.
+
+# 3.1 PROBLEM STATEMENT
+
+Let us consider the following family of boundary value problems parameterized by $\gamma$ with domain $\Omega$ , representing both space and time, with $\mathcal{N}$ a potentially nonlinear differential operator, $\mathcal{B}$ the boundary operator, $g$ the initial/boundary conditions, and source term $f$ :
+
+$$
+\mathcal {N} (u; \gamma) = f \quad \text {i n} \Omega , \tag {6}
+$$
+
+$$
+\mathcal {B} (u) = g \quad \text {o n} \partial \Omega . \tag {7}
+$$
+
+Note that different PDEs can be represented in this form, amounting to changing the parameters $\gamma$ . The goal here is to develop a generic algorithm that is able to solve the above problem, yielding an approximate solution $u$ given the PDE and different sets of inputs $(\gamma, f, g)$ .
+
+For training, we assume access to a dataset of $M$ problem instances, represented by the PDE parameters $(\gamma_{i},f_{i},g_{i})_{i = 1}^{M}$ and to associated target solution $(u_i)_{i = 1}^M$ given on a $m$ point grid $(x_j)_{j = 1}^m$ . The solutions $(u_{i})_{i = 1}^{M}$ will be used to train the neural solver. At inference, for a new PDE instance, only the PDE parameters are provided and we do not have access to solution points $(u_{i})_{i = 1}^{M}$ .
+
+# 3.2 METHODOLOGY
+
+Physics-informed neural networks consider an ansatz $u_{\Theta}$ parametrized by some finite-dimensional $\Theta$ . The parameters $\Theta$ are iteratively updated by minimizing a criterion $\mathcal{L}_{\mathrm{PDE}}$ (e.g. the PDE residual), which assesses how well the ansatz $u_{\Theta}$ meets the conditions specified in equations 6 and 7. As introduced for example for PINNs (Raissi et al., 2019) or Deep Galerkin method (Sirignano & Spiliopoulos, 2018), we consider $\mathcal{L}_{\mathrm{PDE}}$ to be given by the strong formulation of the residual $\mathcal{L}_{\mathrm{Res}}$ , plus a boundary discrepancy term3 $\mathcal{L}_{\mathrm{BC}}$ : $\mathcal{L}_{\mathrm{PDE}} = \mathcal{L}_{\mathrm{Res}} + \lambda \mathcal{L}_{\mathrm{BC}}, \quad \lambda > 0$ .
+
+$$
+\mathcal {L} _ {\mathrm {R e s}} = \sum_ {x _ {j} \in \Omega} | \mathcal {N} (u _ {\Theta}; \gamma) (x _ {j}) - f (x _ {j}) | ^ {2}, \quad \mathcal {L} _ {\mathrm {B C}} = \sum_ {x _ {j} \in \partial \Omega} | \mathcal {B} (u _ {\Theta}) (x _ {j}) - g (x _ {j}) | ^ {2} \tag {8}
+$$
+
+As illustrated in section 2, performing gradient descent, or alternatives such as Adam and L-BFGS on such a highly ill-conditioned loss $\mathcal{L}_{\mathrm{PDE}}$ leads to severe training difficulties (Krishnapriyan et al., 2021). The key idea in our work is to improve a baseline gradient descent algorithms with the neural solver. More precisely starting from a baseline gradient algorithm, SGD in our instantiation, instead of considering the classical update, we first transform the gradient using a neural network $\mathcal{F}_{\varrho}$ with parameters $\varrho$ , depending on the values of the PDE parameters as well as on other inputs such as the residual gradient provided by SGD: $\nabla_{\Theta} \mathcal{L}_{\mathrm{PDE}}$ . The objective is to transform, through the neural solver $\mathcal{F}_{\varrho}$ , the ill-conditioned problem into a new, simpler problem that requires fewer steps in order to achieve a given error.
+
+Once the neural solver $\mathcal{F}_{\varrho}$ has been learned, inference can be performed on any new PDE as follows (see inference algorithm 1). Starting from an initial ansatz parameter $\Theta_0$ , it is iteratively updated by this solver. At iteration $l$ , the steepest direction of the loss $\mathcal{L}_{\mathrm{PDE}}$ is first computed with autograd. Then, the gradient is transformed, in a PDE parameter dependant way, with $\mathcal{F}_{\varrho}$ :
+
+$$
+\Theta_ {l + 1} = \Theta_ {l} - \eta \mathcal {F} _ {\varrho} (\nabla_ {\Theta} \mathcal {L} _ {\mathrm {P D E}} (\Theta_ {l}), \gamma , f, g) \tag {9}
+$$
+
+The objective is to iteratively refine the ansatz to closely approximate the true solution after a series of $L$ iterations, ideally small for efficiency.
+
+This approach can be seen as learning the iterates in a PDE solver to achieve a low loss, similar to the residual minimization methods in PDEs (Elman et al., 2014). By design, this solver is intended to be applicable to different PDEs, as well as various sources, boundary conditions, and initial conditions. This flexibility allows for a broad range of applications, making it a versatile tool in solving complex PDEs with varying characteristics.
+
+Designed as a parametric PDE solver, $\mathcal{F}_{\varrho}$ is trained with input target data from different sets of PDE parameters, as outlined in section 3.1. Once trained, it will be used without retraining on new instances of the PDE, i.e. with new values of the PDE parameters. The underlying hypothesis is that even though the solutions may be different for different inputs and parameters, the solution methodology remains relatively consistent. This consistency is expected to enhance the algorithm's ability to generalize across novel scenarios effectively.
+
+# 3.3 TRAINING OF A PHYSICS-INFORMED SOLVER
+
+Choice of Ansatz $u_{\Theta}$ . A very common choice (Shen et al., 2011) is to consider a family of basis functions $\Psi(x) = \{\psi_i(x)\}_{i=1}^N$ and consider the ansatz to be given by its linear span $u_{\Theta}(x) = \sum_{i=0}^{N} \theta_i \psi_i(x)$ . In the following, we consider this linear reconstruction, although our formulation is generic in the sense that it can also accommodate nonlinear variants.
+
+As indicated in eq. (10), the solver $\mathcal{F}_{\varrho}$ will be trained from samples of the PDE parameter distribution $(\gamma, f, g)$ and from the associated samples of the solution $u$ . We first describe below the inference step aiming at iteratively updating the parameters $\Theta$ of the solution function $u_{\Theta}$ while $\mathcal{F}_{\varrho}$ is held fixed. We then describe how the $\varrho$ parameters of the solver are trained. Please refer to fig. 1 that illustrates the interaction between the two steps.
+
+Note that other formulations of the loss may also be considered in a straightforward manner.
+4 In the following we use "solver" with $\mathcal{F}_{\varrho}$ as a short-hand to refer to our proposed method.
+Although we have found this may further complicate training.
+
+Inference The inference step is performed at fixed values of the solver parameters $\mathcal{F}_{\varrho}$ . It consists, for a given instance of the PDE with parameters $(\gamma_{i},f_{i},g_{i})$ , in finding the best $\Theta$ with a few steps of the solver using eq. (9). It is illustrated in fig. 1 - grey box and formalized in algorithm 1: starting from initial parameters $\Theta_0$ , we compute the Physical loss $\mathcal{L}_{\mathrm{PDE}}$ using the ansatz $u_{\Theta_0}$ . The PDE derivatives in $\mathcal{L}_{\mathrm{PDE}}$ , can be computed by hand or automatic differentiation depending on the application $^6$ . Then, eq. (9) is used to update the parameters $\Theta$ for a given number of steps $L$ . The final solution is reconstructed using the linear combination, $u_{\Theta}(x) = \sum_{i = 0}^{N}\theta_{i}\psi_{i}(x)$ , introduced in section 3.2 with the computed coefficients $\Theta_L$ . Note that inference does not make use of the sampled target solutions $(u_i)_{i = 1}^M$ computed on the grid points $(x_j)_{j = 1}^m$ . These targets are used exclusively for training the neural solver.
+
+Training the neural solver Training amounts to learning the parameters of the solver $\mathcal{F}_{\varrho}$ and is performed with a training set of PDE parameters and simulation data considered as ground truth $(\gamma_{i},f_{i},g_{i},u_{i})_{i = 1}^{M}$ , corresponding to PDE instances (i.e. with different parameters
+
+# Algorithm 1: Inference using the neural PDE solver.
+
+Data: $\Theta_0\in \mathbb{R}^n$ PDE $(\gamma ,f,g)$
+
+Result: $\Theta_L\in \mathbb{R}^n$
+
+for $1 = 0\dots \mathrm{L - 1}$ do
+
+$$
+\left. \right| \Theta_ {l + 1} = \Theta_ {l} - \eta \mathcal {F} _ {\varrho} \left(\nabla \mathcal {L} _ {\mathrm {P D E}} \left(\Theta_ {l}\right), \gamma , f, g\right)
+$$
+
+end
+
+return $\Theta_L$
+
+# Algorithm 2: Training algorithm for learning to optimize physics-informed losses.
+
+Data: $\Theta_0\in \mathbb{R}^n$ ,PDE $(\gamma ,f,g)$ ,sample values $u(x)$
+
+Result: $\mathcal{F}_{\varrho}$
+
+for $e = 1\ldots$ epochs do
+
+for (PDE, x, u) in dataset do
+
+Initialize $\Theta_0$
+
+Estimate $\Theta_L$ from $\Theta_0, (\gamma, f, g)$ using algorithm 1
+
+Reconstruct $u_{\Theta_L}(x)$
+
+Update $\varrho$ with gradient descent from the data loss in eq. (10)
+
+end
+
+end
+
+return $\mathcal{F}_{\varrho}$
+
+$\gamma$ and/or forcing terms $f$ and/or initial/boundary conditions $g$ ). See fig. 1 - white box and algorithm 2. The objective is to learn a solver $\mathcal{F}_{\varrho}$ able, at inference, to converge to a target solution in a small (2 to 5 in our experiments) number of steps. For that, an optimizer (Adam in our experiments) is used to update the $\mathcal{F}_{\varrho}$ parameters. The training algorithm makes use of the data associated with the different PDE instances by sampling PDEs in batches and running algorithm 1 on several PDE instances. For each PDE instance, one starts from an initial parameter value $\Theta_0$ and then performs two optimization steps (see algorithm 2): (i) one consists in solving in the ansatz parameters $\Theta$ using the neural solver using algorithm 1, leading to $\Theta_L$ ; (ii) the second one is the optimization of the solver parameters $\varrho$ . We train the outputs directly to match the associated ground truth $(u_i(x_j))_{j=1}^m$ using the data loss:
+
+$$
+\mathcal {L} _ {\mathrm {D A T A}} = \mathbb {E} _ {\gamma , f, g} \left[ \left| \left| u _ {\Theta_ {L}} - u _ {\gamma , f, g} \right| \right| \right]. \tag {10}
+$$
+
+The expectation is computed on the distribution of the PDE parameters $(\gamma, f, g)$ . The solution $u$ is entirely determined by these parameters as indicated by the notation $u_{\gamma, f, g}$ . $||u_{\Theta_L} - u||$ denotes a distance between the target $(u(x_j))_{j=1}^m$ and the forecast $(u_{\Theta_L}(x_j))_{j=1}^m$ with $m$ the trajectory size7. In practice, one samples a set of PDE instances $(\gamma_i, f_i, g_i)$ and for each instance a corresponding sample $u_i$ .
+
+Theoretical analysis and relation to preconditioning Analyzing the behavior of the inference algorithm is challenging due to the non linear nature of the solver. We however could get some intuition using simplifying assumptions. We build on the ideas introduced in section 2 for the simple case of the Poisson equation, for which an explicit analytical solution could be derived. We provide in appendix B, a proof for a more general case and give below in theorem 1 our main result. This shows that the number of steps induced by $\mathcal{F}$ for the proposed algorithm is significantly less than the number of steps required by the baseline PINNs algorithm. This results is obtained under two main assumptions: (i) $\mathcal{F}$ behaves like its linearization and (ii) the descent operator $\mathcal{F}$ used in our algorithm, allows us to reach the optimum of $\mathcal{L}_{\mathrm{DATA}}$ .
+
+Theorem 1. (Convergence rate in the linear case). Given a linear ansatz $u_{\Theta}(x) = \sum_{i=1}^{N} \theta_i \phi_i(x)$ , assume the conditioner $\mathcal{F}$ behaves like its linearization $P = \text{Jacobian}(\mathcal{F})$ , meaning that $\mathcal{F}$ can be replaced by $P$ at any point. Let $A$ be the matrix derived from the PDE loss as eq. (3) for the Poisson equation or eq. (15) in the more general case. Denote by $\kappa(A)$ the condition number of the matrix $A$ . The number of steps $N'(\varepsilon)$ required to achieve an error $\| \Theta_l - \Theta^* \|_2 \leq \varepsilon$ satisfies:
+
+$$
+N ^ {\prime} (\varepsilon) = O \left(\kappa (P A) \ln \left(\frac {1}{\varepsilon}\right)\right), \tag {11}
+$$
+
+Moreover, if $\mathcal{F}$ minimizes $\mathcal{L}_{\text{DATA}}$ this necessarily implies $\kappa(PA) = 1 \leq \kappa(A)$ . Consequently, the number of steps is effectively reduced, i.e., $N'(\varepsilon) \ll N(\varepsilon)$ with $N(\varepsilon)$ the number of steps of the vanilla PINNs.
+
+Proof. We sketch the main insights here and refer to appendix B for the proof and a detailed analysis.
+
+- Using a linearization of the neural solver, it can be shown that the solver performs as a pre-conditioner on the linear system.
+- Assuming that solution $u_{L}$ provided by the solver reaches the optimum $u^{*}$ , and that the training set is such that the learned parameter $\Theta$ vectors span the whole parameter space of the model, then the convergence of the solver is guaranteed at an optimal rate.
+- In practice, and as shown in the experiments (section 4), the convergence rate is significantly improved w.r.t. the reference baseline gradient algorithm.
+
+# 4 EXPERIMENTS
+
+
+
+We present the datasets used in the experiments in section 4.1, a comparison with selected baselines in section 4.2, and a test-time comparison with different optimizers demonstrating the remarkable effectiveness of the proposed method in section 4.3. Finally, we make a comparison of the training and inference time in section 4.4. Experimental details and additional experiments can be found in the appendices: ablations are in appendix E and additional results and visualization are in appendix E.6, appendix E.7, and appendix F.
+
+# 4.1 DATASETS
+
+We consider several representative parametric equations for our evaluation. More details about the data generation are presented in appendix C. Our objective is to learn a neural solver able to solve quickly and accurately a new instance of a PDE, given its parametric form, and the values of the parameters $\gamma$ , forcing terms $f$ and initial/boundary conditions $g$ , i.e. $(\gamma, f, g) \mapsto u$ . Solving is performed with a few iterations of the neural solver (algorithm 1). For that, one trains the neural solver on a sample of the PDE parameter instances, see table 1 for the parameter distributions used for each parametric PDE. Evaluation is performed on unseen sets of parameters within the same PDE family. Helmholtz: We generate a dataset following the $1d$ static Helmholtz equation $u''(x) + \omega^2 u(x) = 0$ with
+
+Table 1: Parameters changed between each trajectory in the considered datasets.
+
+
Dataset
Parameters
Distribution
Helmholtz
ω
U[0.5, 50]
u0
N(0,1)
v0
N(0,1)
Poisson
Ai
U[-100, 100]
u0
N(0,1)
v0
N(0,1)
NLRD
ν
U[1, 5]
ρ
U[-5, 5]
Darcy
a(x)
ψ#N(0, (-Δ + 9I)-2) with ψ = 12 * 1R+ + 3 * 1R+
Heat
ν
U[2 × 10-3, 2 × 10-2]
Jmax
{1, 2, 3, 4, 5}
A
U[0.5, -0.5]
Kx, Ky
{1, 2, 3}
φ
U[0, 2π]
+
+boundary conditions $u(0) = u_0$ and $u'(0) = v_0$ . We generate 1, 024 trajectories with varying $\omega$ , $u_0$ ,
+
+and $v_{0}$ with a spatial resolution of 256. Poisson: We generate a dataset following the $1d$ static Poisson equation with forcing term: $-u''(x) = f(x)$ with $u(0) = u_{0}$ and $u'(0) = v_{0}$ . The forcing term $f$ is a periodic function, $f(x) = \frac{\pi}{K}\sum_{i=1}^{K}a_{i}i^{2r}\sin(\pi x)$ , with $K = 16$ and $r = -0.5$ . We generate 1,000 trajectories with varying $u_{0}, v_{0}$ , and $f$ (through changing $a_{i}$ ) with a spatial resolution of 64. Reaction-Diffusion: In Krishnapriyan et al. (2021); Toloubidokhti et al. (2024), the authors propose a non-linear reaction-diffusion (NLRD). This PDE has been shown to be a failure case for PINNs (Krishnapriyan et al., 2021). We generate 1,000 trajectories by varying the parameters of the PDE: $\nu$ and $\rho$ (see table 1). Spatial resolution is 256 and temporal resolution is 100. The PDE is solved on $[0,1]^{2}$ . Darcy Flow: The 2d Darcy Flow dataset is taken from (Li et al., 2020) and is commonly used in the operator learning literature (Li et al., 2023b; Goswami et al., 2022). For this dataset, the forcing term $f$ is kept constant $f = 1$ , and $a(x)$ is a piece-wise constant diffusion coefficient taken from (Li et al., 2020). We kept 1,000 trajectories (on the 5,000 available) with a spatial resolution is $64 \times 64$ . Heat: The $2d + t$ Heat equation is simulated as proposed in (Zhou & Farimani, 2024). For this dataset, the parameter $\nu$ is sampled from $U[2 \times 10^{-3}, 2 \times 10^{-2}]$ and initial conditions are a combination of sine functions with a varying number of terms, amplitude, and phase. A summary of the datasets and the varying parameters for each PDE are presented in table 1 and more details on the dataset are provided in appendix C. Experiments have been conducted on NVIDIA TITAN V (12 Go) for 1d datasets to NVIDIA RTX A6000 GPU with 49Go for $1d +$ time or $2d$ datasets. For all datasets, 800 PDEs are considered during training and 200 for testing. All metrics reported are evaluated on test samples (i.e. PDEs not seen during training. Coefficients as well as initial and/or boundary conditions can vary from training).
+
+# 4.2 COMPARISON WITH BASELINES
+
+We performed comparisons with several baselines including fully data-driven supervised approaches trained from a data-loss only, unsupervised methods relying only on a PDE loss, and hybrid techniques trained from PDE + DATA losses. Network size and training details are described in appendix D. In this experiment, we considered training the models using the training sets (physical losses or MSE when possible) unless stated otherwise.
+
+Fully supervised We train a standard MLP to learn the mapping $(\gamma, f, g) \mapsto \Theta$ , using as loss function $\mathcal{L}_{\mathrm{DATA}} = \mathbb{E}_{\gamma, f, g, u} [||u_{\Theta_L} - u_{\gamma, f, g}||]$ with $u_{\Theta}(x) = \sum_{i=0}^{N} \theta_i \psi_i(x)$ , the $\psi_i(.)$ being fixed B-Spline basis functions (see appendix D). We denote this baseline as $MLP+$ basis. Unsupervised We compare our approach with unsupervised physics-informed models (Raissi et al., 2019). While the initial version of PINNs solves only one PDE instance at a time and requires retraining for each new instance, we developed here a parametric version of PINNs (PPINNs) where the PDE parameters are fed to the network (similarly to (Zhang et al., 2023)). Finally, we used (Cho et al., 2024)'s (P2INNs) method as a physics-informed baseline specifically designed for parametric PDEs. In addition to PINNs-methods, we also compare our solver to the Physic-informed DeepONet (PO-DeepONet for Physics-Only DeepONet) (Wang et al., 2021b), which is designed to learn an operator for function-to-function mappings from physical losses and handles parametric PDEs. The mapping learned for the two unsupervised baselines is $(x, \gamma, f, g) \mapsto u_{\gamma, f, g}(x)$ . In order to provide a fair comparison with our optimization method, we fine-tuned the unsupervised baselines for each specific PDE instance for a few steps (10 or 20). Comparison to preconditioning We compare our approach with vanilla PINNs (Raissi et al., 2019), i.e. by fitting one PINN per PDE in the test set and averaging the final errors. We optimize the PDE losses using L-BFGS (Liu & Nocedal, 1989) and refer to this baseline as $PINNs + L-BFGS$ . As discussed in (Rathore et al., 2024), L-BFGS can be considered as a nonlinear preconditioning method for Physics-Informed methods and fastens convergence. Finally, we use the training strategy proposed by (Rathore et al., 2024) i.e. trained PINNs using successive optimizer (Adam + L-BFGS). This baseline is denoted as PINNs-multi-opt. For these baselines, one model is trained and evaluated for each PDE in the test set. We report the reader to appendix D for more details on the training procedure. Hybrid Finally, we compare our proposed method with neural operators, i.e., models trained to learn mappings $(x, \gamma, f, g) \mapsto u_{\gamma, f, g}(x)$ using a combination of physical and data loss: $\mathcal{L}_{\mathrm{DATA}} + \mathcal{L}_{\mathrm{PDE}}$ . We use as baselines Physics-Informed Neural Operator (PINO) (Li et al., 2023b) and Physics-Informed DeepONet (PI-DeepONet) (Goswami et al., 2022). As already indicated, for a fair comparison, the Unsupervised and Hybrid baselines are fine-tuned on each specific PDE instance for a few steps (10 on all datasets except for Heat for which 20 steps are made). Ours We represent the solution $u_{\Theta}$ with a linear combination of B-Spline functions for $\Psi$ (Piegl & Tiller, 1996). This was motivated by the nature of B-Splines which allows to capture local
+
+phenomena. However, other bases could be used such as Fourier, Wavelet or Chebychev Polynomials. The neural solver $\mathcal{F}_{\varrho}$ is composed of Fourier Layers (FNO) (Li et al., 2020) that allow us to capture the range of frequencies present in the phenomenon. We refer the reader to appendix D for more details about the construction of the B-Spline basis and the training hyper-parameters.
+
+Table 2: Results of trained models - metrics in Relative MSE on the test set. Best performances are highlighted in bold, and second best are underlined.
+
+
Baseline
1d
1d+time
2d
2d+time
Helmholtz
Poisson
NLRD
Darcy-Flow
Heat
Supervised
MLP + basis
4.66e-2
1.50e-1
2.85e-4
3.56e-2
6.00e-1
Unsupervised
PINNs+L-BFGS
9.86e-1
8.83e-1
6.13e-1
9.99e-1
9.56e-1
PINNS-multi-opt
8.47e-1
1.18e-1
7.57e-1
8.38e-1
6.10e-1
PPINNs
9.89e-1
4.30e-2
3.94e-1
8.47e-1
1.27e-1
P2INNs
9.90e-1
1.50e-1
5.69e-1
8,38e-1
1.78e-1
PO-DeepONet
9.83e-1
1.43e-1
4.10e-1
8.33e-1
4.43e-1
Hybrid
PI-DeepONet
9.79e-1
1.20e-1
7.90e-2
2.76e-1
9.18e-1
PINO
9.99e-1
2.80e-3
4.21e-4
1.01e-1
9.09e-3
Neural Solver
Ours
2.41e-2
5.56e-5
2.91e-4
1.87e-2
2.31e-3
+
+Results: Table 2 presents the comparison with the baselines. We recall that the evaluation set is composed of several PDE instances sampled from unseen PDE parameters $(\gamma, f, g)$ . The proposed method is ranked first or second on all the evaluations. The most comparable baselines are the unsupervised methods, since at inference they leverage only the PDE residual loss, as our method does. Therefore our method should be primarily compared to these baselines. Supervised and hybrid methods both incorporate data loss and make different assumptions while solving a different optimization problem.
+
+Table 2 clearly illustrates that unsupervised Physics-informed baselines all suffer from ill-conditioning and do not capture the dynamics. Compared to these baselines, the proposed method improves at least by one order of magnitude in all cases. PINNs baseline performs poorly on these datasets because of the ill-conditioning nature of the PDE, requiring numerous optimization steps to achieve accurate solutions (appendix D). This is observed on PINNs models for parametric PDEs (PPINNs and P2INNs) as well as on PINNs fitted on one equation only (PINNs+L-BFGS and PINNs-multi-opt). We observe that our neural solver has better convergence properties than other Physics-Informed methods. As will be seen later it also converges much faster.
+
+The supervised baseline performs well on all the PDEs except Poisson and Heat. The data loss used for training this model is the mean square error which is well-behaved and does not suffer from optimization problems as the PDE loss does. We note that our method reaches similar or better performances on every datasets, while relying only on physical information at inference (algorithm 1) and solving a more complex optimization problem.
+
+The hybrid approaches, do not perform well despite taking benefits from the PDE+DATA loss and from adaptation steps at test time. Again, the proposed method is often one order of magnitude better than the hybrids except on NLRD, where it has comparable performances. This shows that the combination of physics and data losses is also hard to optimize, and suffers from ill-conditioning.
+
+# 4.3 OPTIMIZATION FOR SOLVING NEW EQUATIONS
+
+The main motivation for our learned PDE solver is to accelerate the convergence to a solution, w.r.t. predefined solvers, for a new equation. In order to assess this property, we compare the convergence speed at test time inference with classical solvers, PINNs, and pre-trained PINO as detailed below. Results are presented in fig. 2 for the Poisson equation with performance averaged on 20 new instances of the Poisson equation. This experiment is also performed on the other datasets in appendix F.
+
+Baseline optimizers As for the classical optimizer baselines, we used SGD, Adam (Kingma & Ba, 2015), and L-BFGS (Krishnapriyan et al., 2021). These optimizers are used to learn the coefficient of
+
+the B-Spline basis expansion in the model $u_{\Theta}(x) = \sum_{i=0}^{N} \theta_i \psi_i(x)$ . This provides a direct comparison to our iterative neural solver. PINNs - We also compare to the standard PINNs (Raissi et al., 2019), i.e. by fitting one Neural Network (NN) per equation. Note that this requires full training from scratch for each new equation instance and this is considerably more computationally demanding than solving directly the parametric setting. This baseline is similar to the Adam optimizer mentioned above, except that the ansatz for this experience is a multilayer perceptron instead of a linear combination of a B-Spline basis. Hybrid pre-training strategies - Finally we compare against the hybrid PINO pretrained on a set of several parametric PDE instances and then fine-tuned on a new PDE instance using only the PDE loss associated to this instance. Ours - We train our model as explained in algorithm 2 and show here the optimization process at test time. In order to perform its optimization, our model leverages the gradient of the physical loss and the PDE parameters (coefficients, initial/boundary conditions). In this experiment, we use $L = 5$ steps for a better visualization (whereas, we used $L = 2$ in table 2).
+
+Result: fig. 2 compares the number of optimization steps required for the different methods. Our neural solver converges very fast in only a few steps (5 here) to a good approximation of the solution, while all the other methods require thousands of iterations - we stopped here at 10,000 steps. The classical optimizers (SGD, Adam, L-BFGS) do not converge for a new equation. The baseline PINNs trained here from scratch on each new equation show an erratic convergence behavior. Pretrained PINO behaves better than the other baselines but still did not converge after 10,000 steps. This clearly demonstrates the potential of our learned solver to deal with physical losses w.r.t. alternative pre-defined solvers.
+
+
+Figure 2: Test-time optimization based on the physical residual loss $\mathcal{L}_{\mathrm{PDE}}$ for new PDE on Poisson.
+
+# 4.4 COMPUTATIONAL TIME
+
+An important aspect of solving PDEs is the computational time required for each solution. Methods should find a trade-off between achieving high performance and maintaining reasonable computational costs. In appendix E.3, we provide the training (table 16) and inference (table 17) times for our method compared to various baselines. Our results show that while our method has comparable training and inference times to other approaches, it demonstrates substantially better precision (table 2).
+
+# 5 CONCLUSION
+
+We have presented a PDE solver learned from data that allows fast test-time optimization of physical losses. Our method succeeds to considerably accelerate the optimization process for the complex problem of minimizing physical losses and is several orders of magnitude faster than classical hand-defined optimization methods such as Adam or L-BFGS. Limitations and Future Work While efficient, the proposed method can be further improved. First, training our iterative algorithms requires more memory than standard machine learning models due to the complexity of backpropagation through iterations, which becomes challenging in higher-dimensional bases. Second, we have focused on solution approximations expressed as a linear expansion in predefined bases. More expressive representations, such as neural networks, could be explored; however, our preliminary experiments indicate increased ill-conditioning due to the compositional nature of neural networks. More sophisticated training schemes could enhance the optimization process. Future work will investigate these directions to improve scalability and broaden the applicability of the proposed method. Reproducibility Statement Hyper-parameters, baselines configurations and training details are detailed in appendix D, tables 4 and 5, and algorithms 1 and 2. The creation of the datasets is explained in appendix C and tables 1 and 3. Finally, we provide a theoretical analysis of the model, under an ideal scenario in appendix B. Code is available at https://github.com/2ailesB/neural-parametric-solver.
+
+# ETHICS STATEMENT
+
+Solving PDE is of crucial interest in many applications of science and engineering. While we do not directly target such real-world applications in this paper, one should acknowledge that solvers can be used in various ranges of scenarios including weather, climate, medical, aerodynamics, industry, and military applications.
+
+# ACKNOWLEDGMENTS
+
+We acknowledge the financial support provided by DL4CLIM (ANR-19-CHIA-0018-01), DEEPNUM (ANR-21-CE23-0017-02), PHLUSIM (ANR-23-CE23-0025-02), and PEPR Sharp (ANR-23-PEIA-0008), "ANR", "FRANCE 2030").
+
+# REFERENCES
+
+Marcin Andrychowicz, Misha Denil, Sergio Gomez, Matthew W. Hoffman, David Pfau, Tom Schaul, Brendan Shillingford, and Nando de Freitas. Learning to learn by gradient descent by gradient descent, 2016.
+Jason Ansel, Edward Yang, Horace He, Natalia Gimelshein, Animesh Jain, Michael Voznesensky, Bin Bao, Peter Bell, David Berard, Evgeni Burovski, Geeta Chauhan, Anjali Chourdia, Will Constable, Alban Desmaison, Zachary DeVito, Elias Ellison, Will Feng, Jiong Gong, Michael Gschwind, Brian Hirsh, Sherlock Huang, Kshitteej Kalambarkar, Laurent Kirsch, Michael Lazos, Mario Lezcano, Yanbo Liang, Jason Liang, Yinghai Lu, C. K. Luk, Bert Maher, Yunjie Pan, Christian Puhrsch, Matthias Reso, Mark Saroufim, Marcos Yukio Siraichi, Helen Suk, Shunting Zhang, Michael Suo, Phil Tillet, Xu Zhao, Eikan Wang, Keren Zhou, Richard Zou, Xiaodong Wang, Ajit Mathews, William Wen, Gregory Chanan, Peng Wu, and Soumith Chintala. Pytorch 2: Faster machine learning through dynamic python bytecode transformation and graph compilation. In Proceedings of the 29th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 2, ASPLOS '24, pp. 929-947, New York, NY, USA, 2024. Association for Computing Machinery. ISBN 9798400703850. doi: 10.1145/3620665.3640366. URL https://doi.org/10.1145/3620665.3640366.
+Francesca Bartolucci, Emmanuel de Bézenac, Bogdan Raonic, Roberto Molinaro, Siddhartha Mishra, and Rima Alaifari. Are neural operators really neural operators? frame theory meets operator learning, 2023.
+Andrés Beltrán-Pulido, Ilias Bilionis, and Dionysios Aliprantis. Physics-informed neural networks for solving parametric magnetostatic problems. IEEE Transactions on Energy Conversion, 37(4): 2678-2689, 2022.
+Alex Bihlo. Improving physics-informed neural networks with meta-learned optimization. Journal of Machine Learning Research, 25(14):1-26, 2024. URL http://jmlr.org/papers/v25/23-0356.html.
+Tianlong Chen, Xiaohan Chen, Wuyang Chen, Howard Heaton, Jialin Liu, Zhangyang Wang, and Wotao Yin. Learning to optimize: A primer and a benchmark, 2021.
+Woojin Cho, Minju Jo, Haksoo Lim, Kookjin Lee, Dongeun Lee, Sanghyun Hong, and Noseong Park. Parameterized physics-informed neural networks for parameterized pdes, 2024. URL https://arxiv.org/abs/2408.09446.
+Filipe de Avila Belbute-Peres, Yi fan Chen, and Fei Sha. HyperPINN: Learning parameterized differential equations with physics-informed hypernetworks. In The Symbiosis of Deep Learning and Differential Equations, 2021. URL https://openreview.net/forum?id=LxUuRDUhRjM.
+Weinan E and Bing Yu. The Deep Ritz Method: A Deep Learning-Based Numerical Algorithm for Solving Variational Problems. Communications in Mathematics and Statistics, 6(1):1-12, March 2018. ISSN 2194-671X. doi: 10.1007/s40304-018-0127-z.
+Howard C. Elman, David J. Silvester, and Andrew J. Wathen. Finite Elements and Fast Iterative Solvers: with Applications in Incompressible Fluid Dynamics. Oxford University Press, 2nd edition, 2014. ISBN 9780199678792.
+Lawrence C. Evans. *Partial differential equations*. American Mathematical Society, Providence, R.I., 2010. ISBN 9780821849743 0821849743.
+Timur Garipov, Pavel Izmailov, Dmitrii Podoprikhin, Dmitry P Vetrov, and Andrew G Wilson. Loss surfaces, mode connectivity, and fast ensembling of dnns. In S. Bengio, H. Wallach, H. Larochelle, K. Grauman, N. Cesa-Bianchi, and R. Garnett (eds.), Advances in Neural Information Processing Systems, volume 31. Curran Associates, Inc., 2018. URL https://proceedings.neurips.cc/paper_files/paper/2018/file/be3087e74e9100d4bc4c6268cdbe8456-Paper.pdf.
+Somdatta Goswami, Aniruddha Bora, Yue Yu, and George Em Karniadakis. Physics-informed deep neural operator networks, 2022.
+
+Dan Hendrycks and Kevin Gimpel. Gaussian Error Linear Units (GELUs), 2016.
+Jun-Ting Hsieh, Shengjia Zhao, Stephan Eismann, Lucia Mirabella, and Stefano Ermon. Learning neural pde solvers with convergence guarantees, 2019.
+Xiang Huang, Zhanhong Ye, Hongsheng Liu, Beiji Shi, Zidong Wang, Kang Yang, Yang Li, Bingya Weng, Min Wang, Haotian Chu, Fan Yu, Bei Hua, Lei Chen, and Bin Dong. Meta-auto-decoder for solving parametric partial differential equations, 2022.
+Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In International Conference on Learning Representations (ICLR), San Diego, CA, USA, 2015.
+Alena Kopaničáková, Hardik Kothari, George Em Karniadakis, and Rolf Krause. Enhancing training of physics-informed neural networks using domain-decomposition based preconditioning strategies. arXiv preprint arXiv:2306.17648, 2023.
+Nikola Kovachki, Zongyi Li, Burigede Liu, Kamyar Azizzadenesheli, Kaushik Bhattacharya, Andrew Stuart, and Anima Anandkumar. Neural operator: Learning maps between function spaces, 2023.
+Aditi S. Krishnapriyan, Amir Gholami, Shandian Zhe, Robert M. Kirby, and Michael W. Mahoney. Characterizing possible failure modes in physics-informed neural networks. In Marc'Aurelio Ranzato, Alina Beygelzimer, Yann N. Dauphin, Percy Liang, and Jennifer Wortman Vaughan (eds.), Advances in Neural Information Processing Systems 34: Annual Conference on Neural Information Processing Systems 2021, NeurIPS 2021, December 6-14, 2021, virtual, pp. 26548-26560, 2021. URL https://proceedings.neurips.cc/paper/2021/bit/df438e5206f31600e6ae4af72f2725f1-Abstract.htm1.
+Randall J. LeVeque. Finite Difference Methods for Ordinary and Partial Differential Equations: Steady-State and Time-Dependent Problems. SIAM, Philadelphia, PA, 2007.
+Ke Li and Jitendra Malik. Learning to optimize, 2016.
+Yichen Li, Peter Yichen Chen, Tao Du, and Wojciech Matusik. Learning preconditioners for conjugate gradient PDE solvers. In Andreas Krause, Emma Brunskill, Kyunghyun Cho, Barbara Engelhardt, Sivan Sabato, and Jonathan Scarlett (eds.), Proceedings of the 40th International Conference on Machine Learning, volume 202 of Proceedings of Machine Learning Research, pp. 19425-19439. PMLR, 23-29 Jul 2023a. URL https://proceedings.mlr.press/v202/1i23e.html.
+Zongyi Li, Nikola Kovachki, Kamyar Azizzadenesheli, Burigede Liu, Kaushik Bhattacharya, Andrew Stuart, and Anima Anandkumar. Fourier neural operator for parametric partial differential equations, 2020.
+Zongyi Li, Hongkai Zheng, Nikola Kovachki, David Jin, Haoxuan Chen, Burigede Liu, Kamyar Azizzadenesheli, and Anima Anandkumar. Physics-informed neural operator for learning partial differential equations, 2023b.
+Dong C. Liu and Jorge Nocedal. On the limited memory bfgs method for large scale optimization. Mathematical Programming, 45:503-528, 1989. URL https://api-semanticscholar.org/CorpusID:5681609.
+G.R. Liu. Meshfree Methods: Moving Beyond the Finite Element Method, Second Edition. CRC Press, 2009. ISBN 9781420082104. URL https://books.google.fr/books?id=JWqE-LzjvfEC.
+Lu Lu, Pengzhan Jin, Guofei Pang, Zhongqiang Zhang, and George Em Karniadakis. Learning nonlinear operators via deeponet based on the universal approximation theorem of operators. Nature Machine Intelligence, 3(3):218-229, March 2021. ISSN 2522-5839. doi: 10.1038/s42256-021-00302-5. URL http://dx.doi.org/10.1038/s42256-021-00302-5.
+Les Piegl and Wayne Tiller. The NURBS Book. Springer-Verlag, New York, NY, USA, second edition, 1996.
+Tian Qin, Alex Beatson, Deniz Oktay, Nick McGreivy, and Ryan P. Adams. Meta-pde: Learning to solve pdes quickly without a mesh, 2022.
+
+M. Raissi, P. Perdikaris, and G.E. Karniadakis. Physics-informed neural networks: A deep learning framework for solving forward and inverse problems involving nonlinear partial differential equations. Journal of Computational Physics, 378:686-707, 2019. ISSN 0021-9991. doi: https://doi.org/10.1016/j.jcp.2018.10.045. URL https://www.sciencedirect.com/science/article/pii/S0021999118307125.
+Bogdan Raonic, Roberto Molinaro, Tim De Ryck, Tobias Rohner, Francesca Bartolucci, Rima Alaifari, Siddhartha Mishra, and Emmanuel de Bezenac. Convolutional neural operators for robust and accurate learning of pdes, 2023.
+Pratik Rathore, Weimu Lei, Zachary Frangella, Lu Lu, and Madeleine Udell. Challenges in training pinns: A loss landscape perspective. In *Forty-first International Conference on Machine Learning*, ICML 2024, Vienna, Austria, July 21-27, 2024. OpenReview.net, 2024. URL https://openreview.net/forum?id=mJGiFr8jLa.
+Alexander Rudikov, Vladimir Fanaskov, Ekaterina Muravleva, Yuri M. Laevsky, and Ivan Oseledets. Neural operators meet conjugate gradients: The fcg-no method for efficient pde solving, 2024.
+Tim De Ryck, Florent Bonnet, Siddhartha Mishra, and Emmanuel de Bézenac. An operator preconditioning perspective on training in physics-informed machine learning, 2023.
+L. S. H. Numerical Analysis of Partial Differential Equations. Pure and Applied Mathematics: A Wiley Series of Texts, Monographs and Tracts. Wiley, 2012. ISBN 978118111116. URL https://books.google.fr/books?id=chinLsuVsYsC.
+Sandro Salsa. *Partial Differential Equations in Action: From Modelling to Theory - UNITEX*. Springer Publishing Company, Incorporated, 2nd edition, 2015. ISBN 3319150928.
+Jie Shen, Tao Tang, and Li-Lian Wang. Spectral Methods: Algorithms, Analysis and Applications. Springer Publishing Company, Incorporated, 1st edition, 2011. ISBN 354071040X.
+Justin Sirignano and Konstantinos Spiliopoulos. Dgm: A deep learning algorithm for solving partial differential equations. Journal of Computational Physics, 375:1339-1364, 2018.
+Makoto Takamoto, Timothy Praditia, Raphael Leiteritz, Dan MacKinlay, Francesco Alesiani, Dirk Pflüger, and Mathias Niepert. Pdebench: An extensive benchmark for scientific machine learning, 2023.
+Matthew Tancik, Pratul Srinivasan, Ben Mildenhall, Sara Fridovich-Keil, Nithin Raghavan, Utkarsh Singhal, Ravi Ramamoorthi, Jonathan Barron, and Ren Ng. Fourier features let networks learn high frequency functions in low dimensional domains. Advances in Neural Information Processing Systems, 33:7537-7547, 2020.
+Maryam Toloubidokhti, Yubo Ye, Ryan Missel, Xiajun Jiang, Nilesh Kumar, Ruby Shrestha, and Linwei Wang. DATS: Difficulty-aware task sampler for meta-learning physics-informed neural networks. In The Twelfth International Conference on Learning Representations, 2024. URL https://openreview.net/forum?id=EvyYFSxdgB.
+Kiwon Um, Robert Brand, Yun, Fei, Philipp Holl, and Nils Thuerey. Solver-in-the-loop: Learning from differentiable physics to interact with iterative pde-solvers, 2021.
+Sifan Wang, Yujun Teng, and Paris Perdikaris. Understanding and mitigating gradient flow pathologies in physics-informed neural networks. SIAM Journal on Scientific Computing, 43(5):A3055-A3081, 2021a.
+Sifan Wang, Hanwen Wang, and Paris Perdikaris. Learning the solution operator of parametric partial differential equations with physics-informed deeponets, 2021b.
+Sifan Wang, Xinling Yu, and Paris Perdikaris. When and why pinns fail to train: A neural tangent kernel perspective. Journal of Computational Physics, 449:110768, 2022. ISSN 0021-9991. doi: https://doi.org/10.1016/j.jcp.2021.110768. URL https://www.sciencedirect.com/science/article/pii/S002199912100663X.
+
+Yuan Yin, Vincent Le Guen, Jérémie Dona, Emmanuel de Bézenac, Ibrahim Ayed, Nicolas Thome, and Patrick Gallinari. Augmenting physical models with deep networks for complex dynamics forecasting*. Journal of Statistical Mechanics: Theory and Experiment, 2021 (12):124012, December 2021. ISSN 1742-5468. doi: 10.1088/1742-5468/ac3ae5. URL http://dx.doi.org/10.1088/1742-5468/ac3ae5.
+Runlin Zhang, Nuo Xu, Kai Zhang, Lei Wang, and Gui Lu. A parametric physics-informed deep learning method for probabilistic design of thermal protection systems. Energies, 16(9), 2023. ISSN 1996-1073. doi: 10.3390/en16093820. URL https://www.mdpi.com/1996-1073/16/9/3820.
+Anthony Zhou and Amir Barati Farimani. Masked autoencoders are pde learners, 2024. URL https://arxiv.org/abs/2403.17728.
+O. C. Zienkiewicz, R. L. Taylor, and J. Z. Zhu. The Finite Element Method: Its Basis and Fundamentals. Butterworth-Heinemann, Oxford; New York, 6th edition, 2005.
+
+# A DETAILED RELATED WORK
+
+PDE solvers: Many tools for numerically solving PDEs have been developed for years. The standard methods for PDE include Finite Differences (FD), Finite Volume (FV), Finite Element Method (FEM), spectral and multigrid methods, and many others (S. H, 2012; Liu, 2009). While these methods are widely used, they often suffer from a high computational cost for complex problems or high-precision simulations. To address these challenges, integrating deep learning (DL) into solvers has emerged as a promising approach. Current solutions include incorporating correction terms into mathematical solvers to reduce numerical errors (Um et al., 2021). Some work such as Hsieh et al. (2019); Li et al. (2023a); Rudikov et al. (2024); Kopaničáková et al. (2023) build a method to directly enhance the convergence of numerical solvers through preconditioner learning. As an example, Rudikov et al. (2024); Li et al. (2023a) use a neural operator to approximate conditioner for the flexible conjugate gradient method or Hsieh et al. (2019) for the Jacobi method. Another example of preconditioner learning lies in Li et al. (2023a), where the author uses GNN to assess symmetry and positive definiteness.
+
+Unsupervised training: Physics-Informed Neural Networks (PINNs) (Raissi et al., 2019) have been a pioneering work in the development of DL method for physics. In these models, the solution is a neural network that is optimized using the residual loss of the PDE being solved. However, this method suffers from several drawbacks. First, as formulated in Raissi et al. (2019), PINNs can solve one instance of an equation at a time. Any small change in the parameters of the PDE involves a full retraining of the network. Efforts such as Beltran-Pulido et al. (2022); Zhang et al. (2023); Cho et al. (2024) have attempted to address this limitation by introducing parametric versions of PINNs capable of handling parametric equations, while Huang et al. (2022); Qin et al. (2022) explores meta-learning approaches. Other approaches to improve PINNs generalization include using neural operators (Wang et al., 2021b), or hyper-network (de Avila Belbute-Peres et al., 2021). Moreover, PINNs have shown convergence difficulties: Krishnapriyan et al. (2021) show that PINNs' losses have complex optimization landscapes, complicating training despite adequate neural network expressiveness. Approaches like those detailed in Wang et al. (2022) adopt a Neural Tangent Kernel (NTK) perspective to identify reasons for failure and suggest using adaptive weights during training to enhance performance. Additionally, studies such as Ryck et al. (2023) demonstrate that PINNs suffer from ill-conditioned losses, resulting in slow convergence of gradient descent algorithms. Recently, (Rathore et al., 2024) shows how training strategies can improve the convergence of Physics-Informed Neural Networks and show that specific optimizers such as L-BFGS act as conditioners on the physical losses.
+
+Supervised training: In contrast to the unsupervised training of Physics-informed Neural Networks, purely data-driven models have demonstrated remarkable capabilities for PDE simulation and forecasting. In most of the existing literature, the entire solver is replaced by a DL architecture and focuses on directly computing the solution from a given input data. A widely studied setting is operator learning which learns mappings between function spaces (Li et al., 2020; Kovachki et al., 2023; Lu et al., 2021). This method is very efficient, with the downside of relying on quite large quantities of data for training in order to ensure adequate generalization. Additionally, the neural network does not have access to the PDE in itself, only indirectly through the data. To ensure physical constraints in purely data-driven training, hybrid models have been proposed. The latter relies on both the available physical knowledge and some data. Some examples include the Aphinity model (Yin et al., 2021) (where the authors assume partial knowledge of the physics and learned the remaining dynamics from data), Physics-informed Deep Operator Networks (PIDON) (Wang et al., 2021b; Goswami et al., 2022), Physics-informed Neural Operator (PINO) (Li et al., 2023b) (DeepONet architecture (Lu et al., 2021) or Neural Operator models (Kovachki et al., 2023; Li et al., 2020) respectively with a combination of data and physical losses).
+
+Learning to solve: Improving the learning scheme and optimizers through data-driven training has been studied since Li & Malik (2016) and Andrychowicz et al. (2016). These works propose to learn the optimizer of neural networks, which are classically optimized through gradient-based algorithms such as Adam. They focus on improving training strategies for neural networks, which do not suffer from the optimization issues and ill-conditioning properties of physics-informed losses. We refer the reader to the survey of Chen et al. (2021) for a complete overview. The closer work to ours is the very
+
+recent work of Bihlo (2024) in which the author assesses the capabilities of learned optimizers for physics-informed neural networks. The main difference with our work relies on the problem setting. Bihlo (2024) considers learning an optimizer on a single equation, and for different neural networks initialization, while we focus on efficiently solving several instances of parametric PDE with varying PDE parameters $\gamma, f, g$ .
+
+# B THEORETICAL ANALYSIS OF OUR METHOD AND PINNS
+
+Setting. We consider the following linear PDE:
+
+$$
+\mathcal {D} u (x) = f (x), \quad x \in \Omega , \tag {12}
+$$
+
+$$
+u (x) = g (x), \quad x \in \partial \Omega ,
+$$
+
+where $\Omega \subset \mathbb{R}^d$ is an open bounded domain, $\mathcal{D}$ is a linear differential operator, $f(x)$ is a given function in $\Omega$ , and $g(x)$ is a given function on the boundary $\partial \Omega$ .
+
+# B.1 THEORETICAL ANALYSIS OF PINNS
+
+Our aim is to find an approximate solution $u_{\Theta}(x)$ , parameterized by $\Theta \in \mathbb{R}^N$ , $\Theta = \{\theta_i\}_{i=1}^N$ that minimizes the loss function:
+
+$$
+\mathcal {L} _ {\mathrm {P D E}} (\Theta) = \mathcal {L} _ {\mathrm {R e s}} (\Theta) + \lambda \mathcal {L} _ {\mathrm {B C}} (\Theta), \tag {13}
+$$
+
+where:
+
+$$
+\mathcal {L} _ {\mathrm {R e s}} (\Theta) = \frac {1}{2} \int_ {\Omega} \left(\mathcal {D} u _ {\Theta} (x) - f (x)\right) ^ {2} d x, \quad \mathcal {L} _ {\mathrm {B C}} (\Theta) = \frac {1}{2} \int_ {\partial \Omega} \left(u _ {\Theta} (x) - g (x)\right) ^ {2} d x,
+$$
+
+and $\lambda > 0$ is a regularization parameter balancing the PDE residual and boundary conditions.
+
+We perform gradient descent updates with step size $\eta$ . At step $k > 0$ , updates write as:
+
+$$
+\Theta_ {k + 1} = \Theta_ {k} - \eta \nabla_ {\Theta} \mathcal {L} _ {\mathrm {P D E}} (\Theta_ {k}).
+$$
+
+We establish the following theorem regarding the convergence rate of gradient descent.
+
+Theorem 2 (Convergence rate of PINNs). Given a linear ansatz $u_{\Theta}(x) = \sum_{i=1}^{N} \theta_i \phi_i(x)$ , the number of steps $N(\varepsilon)$ required to achieve an error $\| \Theta_k - \Theta^* \|_2 \leq \varepsilon$ satisfies:
+
+$$
+N (\varepsilon) = O \left(\kappa (A) \ln \left(\frac {1}{\varepsilon}\right)\right), \tag {14}
+$$
+
+where $\kappa(A)$ is the condition number of the matrix $A \in \mathbb{R}^{n \times n}$ defined by:
+
+$$
+A _ {i, j} = \int_ {\Omega} \left(\mathcal {D} \phi_ {i} (x)\right) \left(\mathcal {D} \phi_ {j} (x)\right) d x + \lambda \int_ {\partial \Omega} \phi_ {i} (x) \phi_ {j} (x) d x. \tag {15}
+$$
+
+Proof. Since $u_{\Theta}(x) = \sum_{i=1}^{N} \theta_i \phi_i(x)$ , we have:
+
+$$
+\frac {\partial u _ {\Theta} (x)}{\partial \theta_ {i}} = \phi_ {i} (x), \quad \frac {\partial (\mathcal {D} u _ {\Theta} (x))}{\partial \theta_ {i}} = \mathcal {D} \phi_ {i} (x).
+$$
+
+The gradient of the residual loss is:
+
+$$
+\nabla_ {\Theta} \mathcal {L} _ {\mathrm {R e s}} (\Theta) = \int_ {\Omega} \left(\mathcal {D} u _ {\Theta} (x) - f (x)\right) \mathcal {D} \phi (x) d x,
+$$
+
+where $\mathcal{D}\phi (x)$ is the vector with components $\mathcal{D}\phi_{i}(x)$ . Similarly, the gradient of the boundary loss is:
+
+$$
+\nabla_ {\Theta} \mathcal {L} _ {\mathrm {B C}} (\Theta) = \int_ {\partial \Omega} (u _ {\Theta} (x) - g (x)) \phi (x) d x,
+$$
+
+where $\phi (x)$ is the vector of basis functions evaluated at $x$ . Therefore, the total gradient is:
+
+$$
+\nabla_ {\Theta} \mathcal {L} _ {\mathrm {P D E}} (\Theta) = A \Theta - b,
+$$
+
+where the (positive, semi-definite) matrix $A$ and vector $b$ are defined as:
+
+$$
+A _ {i, j} = \int_ {\Omega} \left(\mathcal {D} \phi_ {i} (x)\right) \left(\mathcal {D} \phi_ {j} (x)\right) d x + \lambda \int_ {\partial \Omega} \phi_ {i} (x) \phi_ {j} (x) d x, \tag {16}
+$$
+
+$$
+b _ {i} = \int_ {\Omega} f (x) \mathcal {D} \phi_ {i} (x) d x + \lambda \int_ {\partial \Omega} g (x) \phi_ {i} (x) d x.
+$$
+
+Thus, the gradient descent update becomes:
+
+$$
+\Theta_ {k + 1} = \Theta_ {k} - \eta (A \Theta_ {k} - b).
+$$
+
+Subtracting $\Theta^{*}$ (the optimal parameter vector satisfying $A\Theta^{*} = b$ ) from both sides:
+
+$$
+\Theta_ {k + 1} - \Theta^ {*} = \Theta_ {k} - \Theta^ {*} - \eta A (\Theta_ {k} - \Theta^ {*}).
+$$
+
+Simplifying:
+
+$$
+\Theta_ {k + 1} - \Theta^ {*} = (\operatorname {I d} - \eta A) (\Theta_ {k} - \Theta^ {*}).
+$$
+
+By recursively applying the update rule, we obtain:
+
+$$
+\Theta_ {k} - \Theta^ {*} = (\operatorname {I d} - \eta A) ^ {k} (\Theta_ {0} - \Theta^ {*}).
+$$
+
+Since $A$ is symmetric positive definite, it has eigenvalues $\lambda_1 \leq \lambda_2 \leq \dots \leq \lambda_n$ with $\lambda_i > 0$ . To ensure convergence, we require $0 < \eta < \frac{2}{\lambda_{\max}(A)}$ . Choosing $\eta = \frac{c}{\lambda_{\max}(A)}$ with $0 < c < 2$ , we have:
+
+$$
+1 - \eta \lambda_ {i} = 1 - c \frac {\lambda_ {i}}{\lambda_ {\max} (A)}.
+$$
+
+The spectral radius $\rho$ of $\operatorname{Id} - \eta A$ is:
+
+$$
+\rho = \max \left\{\left| 1 - c \frac {\lambda_ {\min} (A)}{\lambda_ {\max} (A)} \right|, | 1 - c | \right\} = \max \left\{1 - \frac {c}{\kappa (A)}, | 1 - c | \right\},
+$$
+
+where $\kappa(A) = \frac{\lambda_{\max}(A)}{\lambda_{\min}(A)}$ is the condition number of $A$ . By choosing $0 < c < 1$ , we ensure $|1 - c| < 1$ , and since $\kappa(A) \geq 1$ , we have $1 - \frac{c}{\kappa(A)} < 1$ . Thus, the convergence factor is:
+
+$$
+\rho = 1 - \frac {c}{\kappa (A)}.
+$$
+
+Therefore:
+
+$$
+\left\| \Theta_ {k} - \Theta^ {*} \right\| _ {2} \leq \left(1 - \frac {c}{\kappa (A)}\right) ^ {k} \left\| \Theta_ {0} - \Theta^ {*} \right\| _ {2}.
+$$
+
+To achieve $\| \Theta_k - \Theta^* \|_2 \leq \varepsilon$ , the number of iterations $N(\varepsilon)$ satisfies:
+
+$$
+N (\varepsilon) \geq \frac {\ln \left(\varepsilon / \| \Theta_ {0} - \Theta^ {*} \| _ {2}\right)}{\ln \left(1 - \frac {c}{\kappa (A)}\right)}.
+$$
+
+Using the inequality $\ln (1 - x) \leq -x$ for $0 < x < 1$ , we get:
+
+$$
+N (\varepsilon) \leq \frac {\kappa (A)}{c} \ln \left(\frac {\| \Theta_ {0} - \Theta^ {*} \| _ {2}}{\varepsilon}\right).
+$$
+
+Thus:
+
+$$
+N (\varepsilon) = O \left(\kappa (A) \ln \left(\frac {1}{\varepsilon}\right)\right).
+$$
+
+
+
+We have shown that for a linear ansatz $u_{\Theta}(x) = \sum_{i=1}^{N} \theta_i \phi_i(x)$ , the convergence rate of gradient descent depends linearly on the condition number $\kappa(A)$ of the system matrix $A$ . A large condition number impedes convergence, requiring more iterations to achieve a desired accuracy $\varepsilon$ .
+
+
+
+# B.2 THEORETICAL ANALYSIS OF OUR METHOD
+
+In practice, we often work with multiple data points. For each data point, there is an associated parameter vector $\Theta \in \mathbb{R}^N$ . We are interested in the iterative update where the gradient is transformed by a neural network $\mathcal{F}$ :
+
+$$
+\Theta_ {l + 1} = \Theta_ {l} - \eta \mathcal {F} \left(\nabla_ {\Theta} \mathcal {L} _ {\mathrm {P D E}} \left(\Theta_ {l}\right)\right), \tag {17}
+$$
+
+where $\Theta_{l}$ represents the parameter vector at iteration $l$ . Recall that $\mathcal{F}$ is trained to minimize the loss after $L$ iteration steps for $M$ data points:
+
+$$
+\mathcal {L} _ {\mathrm {D A T A}} = \frac {1}{m} \sum_ {k = 1} ^ {M} \left\| u _ {\Theta_ {L} ^ {(k)}} - u _ {k} ^ {*} \right\| _ {2} ^ {2}, \tag {18}
+$$
+
+Theorem 3. (Convergence rate of our method). Given a linear ansatz $u_{\Theta}(x) = \sum_{i=1}^{N} \theta_i \phi_i(x)$ , assume $\mathcal{F}$ behaves like its linearization $P = \left. \frac{\partial \mathcal{F}}{\partial v} \right|_{v=0}$ . The number of steps $N'(\varepsilon)$ required to achieve an error $\| \Theta_l - \Theta^* \|_2 \leq \varepsilon$ satisfies:
+
+$$
+N ^ {\prime} (\varepsilon) = O \left(\kappa (P A) \ln \left(\frac {1}{\varepsilon}\right)\right), \tag {19}
+$$
+
+Moreover, if $\mathcal{F}$ minimizes $\mathcal{L}_{DATA}$ this necessarily implies $\kappa(PA) = 1 \leq \kappa(A)$ . Consequently, the number of steps is effectively reduced, i.e., $N'(\varepsilon) \ll N(\varepsilon)$ .
+
+Proof. Since $\mathcal{F}$ behaves like its linearization $P$ , the gradient descent update becomes (refer to proof of Theorem 2 for steps):
+
+$$
+\Theta_ {l + 1} = \Theta_ {l} - \eta P (A \Theta_ {l} - b).
+$$
+
+Let $\Theta^{*}$ be the optimal parameter vector minimizing $\mathcal{L}_{\mathrm{PDE}}$ . Then, the difference between the parameter vector at iteration $l$ and the optimal parameter vector is:
+
+$$
+\Theta_ {l + 1} - \Theta^ {*} = \Theta_ {l} - \Theta^ {*} - \eta P A (\Theta_ {l} - \Theta^ {*}) = (\operatorname {I d} - \eta P A) (\Theta_ {l} - \Theta^ {*}).
+$$
+
+By recursively applying this update until the final step $L$ , we obtain:
+
+$$
+\Theta_ {L} - \Theta^ {*} = (\operatorname {I d} - \eta P A) ^ {L} (\Theta_ {0} - \Theta^ {*}).
+$$
+
+Since we have multiple data points, each with its own parameter vector, we consider the concatenation when necessary. Let's introduce $\Xi_{l}$ as the matrix whose columns are the parameter vectors:
+
+$$
+\Xi_ {L} = \left[ \Theta_ {L} ^ {(1)}, \Theta_ {L} ^ {(2)}, \dots , \Theta_ {L} ^ {(m)} \right].
+$$
+
+Similarly, $\Xi^{*}$ contains the optimal parameter vectors for each data point. The update for all data points can be written collectively:
+
+$$
+\Xi_ {L} - \Xi^ {*} = (\operatorname {I d} - \eta P A) ^ {L} (\Xi_ {0} - \Xi^ {*}).
+$$
+
+Since $\mathcal{F}$ minimizes $\mathcal{L}_{\mathrm{DATA}}$ , we have $\Xi_L = \Xi^*$ , implying:
+
+$$
+(\operatorname {I d} - \eta P A) ^ {L} (\Xi_ {0} - \Xi^ {*}) = 0.
+$$
+
+Given that the values of $\Xi_0$ are iid and sampled randomly from a continuous distribution, because the set of singular matrices has measure zero, the square matrix $(\Xi_0 - \Xi^*)(\Xi_0 - \Xi^*)^\top$ is full rank (i.e., invertible), with probability 1. Thus, the only way for the above equality to hold is if:
+
+$$
+(\operatorname {I d} - \eta P A) ^ {L} = 0.
+$$
+
+This means $\operatorname{Id} - \eta PA$ is nilpotent of index $L$ . Consequently, all eigenvalues of $\operatorname{Id} - \eta PA$ are zero, implying that all eigenvalues of $PA$ are equal to $\frac{1}{\eta}$ , leading to $\kappa(PA) = \lambda_{\max}(PA) / \lambda_{\min}(PA) = 1$ , which is the optimal condition number. Referring to the convergence analysis in Theorem 2, we have:
+
+$$
+N ^ {\prime} (\varepsilon) \leq \frac {\kappa (P A)}{c} \ln \left(\frac {\| \Xi_ {0} - \Xi^ {*} \| _ {2}}{\varepsilon}\right).
+$$
+
+Which directly implies
+
+$$
+N ^ {\prime} (\varepsilon) = O \left(\kappa (P A) \ln \left(\frac {1}{\varepsilon}\right)\right), \tag {20}
+$$
+
+With $\kappa(PA) = 1$ , this leads us to the desired result:
+
+$$
+N ^ {\prime} (\varepsilon) = O \left(\ln \left(\frac {1}{\varepsilon}\right)\right) \ll O \left(\kappa (A) \ln \left(\frac {1}{\varepsilon}\right)\right) =: N (\epsilon),
+$$
+
+Thus, the number of iterations required is significantly reduced compared to the case without the neural network preconditioner.
+
+
+
+Discussion The convergence proofs for our method fundamentally rely on the assumption of linearity in the underlying problems. It is important to note that the theoretical analysis does not extend to non-linear cases. Consequently, for non-linear scenarios, the theory should be viewed primarily as a tool for building intuition or providing motivation, rather than a definitive proof. This is due to the lack of established methods for rigorously studying the non-linear regime, as no known results currently address such cases.
+
+Under these conditions:
+
+- This optimal condition number implies that convergence is not only guaranteed but also optimal, requiring fewer iterations.
+- Guaranteed Convergence: The method reliably achieves convergence to the optimal solution due to the reduced condition number.
+- Optimal Convergence Speed: With $\kappa(PA) = 1$ , the neural network provides an enhanced convergence rate, resulting in fewer required iterations compared to the original system without the neural network.
+
+
+
+# C DATASET DETAILS
+
+For all datasets, we kept 800 samples for training and 200 as testing examples (except otherwise stated in the experiments).
+
+# C.1 HELMHOLTZ
+
+We generate a dataset following the $1d$ static Helmholtz equation eq. (21). For $x \in [0, 1[$ ,
+
+$$
+\left\{ \begin{array}{l l} u (x) ^ {\prime \prime} + \omega^ {2} u (x) & = 0, \\ u (0) & = u _ {0}, \\ u ^ {\prime} (0) & = v _ {0}. \end{array} \right. \tag {21}
+$$
+
+The solution can be analytically derived: $u(x) = \alpha \cos(\omega x + \beta)$ , with $\beta = \arctan\left(\frac{-v_0}{\omega u_0}\right)$ , $\alpha = \frac{u_0}{\cos(\beta)}$ and directly computed from the PDE data. We generate 1,024 trajectories for training and 256 for testing with $u_0, v_0 \sim \mathcal{N}(0,1)$ , and $\omega \sim \mathcal{U}(0.5,50)$ and compute the solution on [0,1] with a spatial resolution of 256. For training, we keep 800 samples and use the complete dataset for the additional experiments presented in figs. 12a and 12b. Moreover, we sub-sample the spatial resolution by 4 and keep 64 points for training.
+
+
+(a)
+Figure 3: Samples from the Helmholtz Dataset.
+
+
+(b)
+
+# C.2 POISSON
+
+We generate a dataset following the $1d$ static Poisson equation eq. (22) with forcing term. For $x \in [0, 1]$ ,
+
+$$
+\left\{ \begin{array}{l l} - u ^ {\prime \prime} (x) & = f (x), \\ u (0) & = u _ {0}, \\ u ^ {\prime} (0) & = v _ {0}. \end{array} \right. \tag {22}
+$$
+
+We chose $f$ to be a non-linear forcing term: $f(x) = \frac{\pi}{K}\sum_{i=1}^{K}a_{i}i^{2r}\sin(\pi x)$ , with $a_{i} \sim \mathcal{U}(-100,100)$ , we used $K = 16$ , $r = -0.5$ , and solve the equation using a backward finite difference scheme. We generate 1,000 trajectories with $u_{0}, v_{0} \sim \mathcal{N}(0,1)$ and compute the solution on [0, 1] with a spatial resolution of 64.
+
+Reaction-Diffusion We use a non-linear reaction-diffusion used in (Krishnapriyan et al., 2021; Toloubidokhti et al., 2024). This PDE has been shown to be a failure case for PINNs (Krishnapriyan et al., 2021). The PDE states as follows:
+
+$$
+\frac {\partial u (t , x)}{\partial t} - \nu \frac {\partial^ {2} u (t , x)}{\partial x ^ {2}} - \rho u (t, x) (1 - u (t, x) = 0, \tag {23}
+$$
+
+$$
+u (0, x) = e ^ {- 3 2 (x - 1 / 2) ^ {2}}. \tag {24}
+$$
+
+
+(a)
+
+
+Figure 4: Samples from the Poisson Dataset.
+
+
+(b)
+
+
+
+We generate 800 trajectories by varying $\nu$ in [1, 5] and $\rho$ in $[-5, 5]$ . Spatial resolution is 256 and temporal resolution is 100, which we sub-sample by 4 for training, leading to a spatial resolution of $64 \times 25$ . The PDE is solved on $[0, 1]^2$ as in (Toloubidokhti et al., 2024).
+
+
+Figure 5: Samples from the Reaction-Diffusion Dataset.
+
+
+
+Reaction-Diffusion with initial conditions: To complexify the setting, we also change the initial condition of the problem (NLRDIC in the following). The initial condition is expressed as follows:
+
+$$
+u (x, 0) = \sum_ {i = 1} ^ {3} a _ {i} e ^ {- \frac {\left(\frac {x - h / 4}{h}\right) ^ {2}}{4}}. \tag {25}
+$$
+
+Where $a_i$ are randomly chosen in [0, 1] and $h = 1$ is the spatial resolution.
+
+
+Figure 6: Samples from the Reaction-Diffusion Dataset with initial conditions changed.
+
+
+
+# C.3 DARCY FLOW
+
+The 2d Darcy Flow dataset is taken from (Li et al., 2020) and is commonly used in the operator learning literature (Li et al., 2023b; Goswami et al., 2022).
+
+$$
+- \nabla . (a (x) \nabla u (x)) = f (x) \quad x \in (0, 1) ^ {2}, \tag {26}
+$$
+
+$$
+u (x) = 0 \quad x \in \partial (0, 1) ^ {2}. \tag {27}
+$$
+
+For this dataset, the forcing term $f$ is kept constant $f = 1$ , and $a(x)$ is a piece-wise constant diffusion coefficient taken from (Li et al., 2020). We kept 1,000 trajectories (on the 5,000 available) with a spatial resolution of $64 \times 64$ .
+
+
+(a)
+Figure 7: Samples from the Darcy Dataset.
+
+
+(b)
+
+# C.4 HEAT
+
+As proof that our method can handle $2\mathrm{d} +$ time, we consider the dataset proposed by (Zhou & Farimani, 2024).
+
+$$
+\frac {\partial u (x , y , t)}{\partial t} - \nu \nabla^ {2} u (x, y, t) = 0, \tag {28}
+$$
+
+$$
+u (x, y, 0) = \sum_ {j = 1} ^ {J} A _ {j} \sin \left(\frac {2 \pi l _ {x j} x}{L} + \frac {2 \pi l _ {y j} y}{L} + \phi_ {i}\right). \tag {29}
+$$
+
+Where $L = 2$ , $\nu$ is randomly chosen between $[2 \times 10^{-3}, 2 \times 10^{-2}]$ , $A_{j}$ in $[-0.5, 0.5]$ , $l_{xj}$ , $l_{xy}$ are integers in $\{1, 2, 3\}$ and $\phi$ is in $[0, 2\pi]$ . As a difference with (Zhou & Farimani, 2024), we randomly
+
+chose $J$ between 1 and $J_{max} = 5$ to have more diversity in the represented frequencies in the data. The PDEs are sampled with spatial resolution 64 in x and y and temporal resolution 100. However, during training the spatial resolution are subsampled by 4 and the coordinates are re scaled between 0 and 1. As for other PDEs, we use 800 trajectories for training and 200 for testing.
+
+
+(a)
+
+
+(b)
+Figure 8: Samples from the Heat dataset.
+
+# C.5 ADDITIONAL DATASET: ADVECTION
+
+The dataset is taken from (Takamoto et al., 2023).
+
+$$
+\frac {\partial u (t , x)}{\partial t} + \beta \frac {\partial u (t , x)}{\partial x} = 0, \quad x \in (0, 1), t \in (0, 2 ], \tag {30}
+$$
+
+$$
+u (0, x) = u _ {0} (x), \quad x \in (0, 1). \tag {31}
+$$
+
+Where $\beta$ is a constant advection speed, and the initial condition is $u_0(x) = \sum_{k_i = k_1\dots k_N}A_i\sin (k_ix + \phi_i)$ , with $k_{i} = \frac{2\pi n_{i}}{L_{x}}$ and $n_i$ are randomly selected in [1, 8]. The author used $N = 2$ for this PDE. Moreover, $A_{i}$ and $\phi_{i}$ are randomly selected in [0, 1] and $(0,2\pi)$ respectively. Finally, $L_{x}$ is the size of the domain (Takamoto et al., 2023).
+
+The PDEBench's Advection dataset is composed of several configurations of the parameter $\beta$ ( $\{0.1, 0.2, 0.4, 0.7, 1, 2, 4, 7\}$ ), each of them is composed of 10,000 trajectories with varying initial conditions. From these datasets, we sampled a total of 1,000 trajectories for $\beta \in \{0.2, 0.4, 0.7, 1, 2, 4\}$ (which gives about 130 trajectories for each $\beta$ ). This gives a dataset with different initial conditions and parameters. Moreover, during training, we sub-sampled the trajectories by 4, leading to a grid of resolution 25 for the t-coordinate and 256 for the x-coordinate.
+
+
+Trajectory sample for Advection
+
+
+(a)
+Figure 9: Samples from the Advections Dataset.
+
+
+Trajectory sample for Advection
+
+
+(b)
+
+# C.6 SUMMARY OF PROBLEM SETTINGS CONSIDERED
+
+A summary of the datasets and parameters changing between 2 trajectories is presented in table 3.
+
+Table 3: Parameters changed between each trajectory in the considered datasets in the main part of the paper as well as additional datasets (Advections and NLRDIC).
+
+
Dataset
Changing PDE data
Range / Generation
Helmholtz
ω
[0.5, 50]
u0
N(0,1)
v0
N(0,1)
Poisson
Ai
[-100, 100]
u0
N(0,1)
v0
N(0,1)
Reaction-diffusion
ν
[1, 5]
ρ
[-5, 5]
Darcy
a(x)
ψ#N(0, (-Δ + 9I)-2) with ψ = 12 * 1R+ + 3 * 1R+
Heat
ν
[2 × 10-3, 2 × 10-2]
Jmax
{1, 2, 3, 4, 5}
A
[0.5, -0.5]
Kx, Ky
{1, 2, 3}
φ
[0, 2π]
Advection
β
{0.2, 0.4, 0.7, 1, 2, 4}
Ai
[0, 1]
φi
[0, 2π]
ki
{2kπ}8k=1
NLRDIC
ν
[1, 5]
ρ
[-5, 5]
ai
[0, 1]
+
+# D IMPLEMENTATION DETAILS
+
+We add here more details about the implementation and experiments presented in section 4.
+
+We implemented all experiments with PyTorch (Ansel et al., 2024). We estimate the computation time needed for development and the different experiments to be approximately 300 days.
+
+# D.1 B-SPLINE BASIS
+
+We chose to use a B-Spline basis to construct the solution. We manually build the spline and compute its derivatives thanks to the formulation and algorithms proposed in (Piegl & Tiller, 1996). We used Splines of degree $d = 3$ and constructed the Splines with 2 different configurations:
+
+- Take $N + d + 1$ equispaced nodes of multiplicity 1 from $\frac{d}{N}$ to $1 + \frac{d}{N}$ . This gives a smooth local basis with no discontinuities (see fig. 10a) represented by a shifted spline along the x-axis (denoted as shifted in the following).
+- Use $N + 1 - d$ nodes of multiplicity 1 and 2 nodes of multiplicity $d$ (typically on the boundary nodes: 0 and 1). This means that nodes 0 and 1 are not differentiable (see fig. 10b). We call this set-up equispaced.
+
+
+(a)
+
+
+(b)
+Figure 10: B-spline basis with $N = 10$ terms with shifted spline (Left) and higher multiplicity nodes (Right). Dashed lines represent nodes' position with color the darker, the higher the multiplicity.
+
+Higer-dimension basis For $1\mathrm{d} +$ time, 2d dataset, and $2\mathrm{d} +$ time we build a 2 (or 3) dimensional B-spline basis, i.e., we treat the time coordinates as spatial ones. To build such bases, we compute the Cartesian product between the 2 (or 3) 1d-bases, 1 per dimension. This means that for a 2d dataset, for which we chose to use bases of size $N1$ and $N2$ for each coordinate, the resulting basis will have $N1 + N2 + N1*N2$ terms. This method makes the training more costly and several techniques to improve its scalability could be used. For 3d datasets, the number of terms in the basis is cubic.
+
+# D.2 TRAINING DETAILS
+
+In our experiments, neural networks are trained using the Adam optimizer. For network optimization, we employ a smooth $l1$ -loss for our solver while for other baselines, we use MSE loss and/or physical losses. All models are trained for at least 1,500 epochs on datasets composed of some sampling of $\gamma$ and/or $f$ and/or $g$ . If not stated otherwise, we train our proposed method for 750 epochs and baselines for 1,500 epochs. We use the Adam optimizer and an initial learning rate of 0.001. We use an exponential learning rate scheduler that lowers the learning rate by 0.995 every epoch. Experiments are conducted on NVIDIA Titan V (12 Go) for 1d datasets and NVIDIA RTX A6000 GPU with 49Go for $1d +$ time, 2d datasets or $2d +$ time. We recall in algorithm 3 the pseudo-code for training our proposed method.
+
+Algorithm 3: Training algorithm for learning to optimize physics-informed losses.
+```latex
+Data: $\Theta_0\in \mathbb{R}^n$ ,PDE $(\gamma ,f,g)$ ,sample values $u(x)$
+Result: $\mathcal{F}_{\varrho}$
+for $e = 1\dots$ epochs do for (PDE, x, u) in dataset do Initialize $\Theta_0$ Estimate $\Theta_L$ from $\Theta_0$ $(\gamma ,f,g)$ using Algorithm 1 Reconstruct $u_{\Theta_L}(x)$ Update the parameters $\varrho$ of $\mathcal{F}$ with gradient descent from the data loss in Equation 10. end
+end
+return $\mathcal{F}_{\varrho}$
+```
+
+We make use of two nested components: the solver for providing the approximate solution to the PDE and the optimizer that conditions the training of the solver. Both are using gradient descent but with different inputs and objectives. The former optimizes the PDE loss (inner loop), while the latter optimizes the gradient steps of the solver through conditioning (outer loop). Optimization of the two components proceeds with an alternate optimization scheme. In particular, this implies that the map $F_{\varrho}$ is kept fixed during the inner optimization process.
+
+# D.3 MODELS
+
+We present here the training details for our model and the baseline. The results can be found in table 2. In all our experiments, we use a GeLU (Hendrycks & Gimpel, 2016) activation function. The details of the model architecture on each dataset are presented in table 4.
+
+Hyperparameters for Helmholtz: For the baselines, we empirically searched hyperparameters to allow the network to handle the high frequencies involved in the Helmholtz dataset. Unfortunately, other network architectures did not improve the results. We proceed similarly for other datasets.
+
+Training of PPINNs: For the Helmholtz dataset, we trained our model for 2000 epochs with a plateau learning rate scheduler with patience of 400 epochs. For the Poisson dataset, we trained our parametric PINN model for 5000 epochs with a cosine annealing scheduler with a maximum number of iterations of 1000. For the Reaction-diffusion dataset, we consider an initial learning rate of 0.0001 instead of 0.001. Finally, P2INNs is trained for 5,000 epochs using the Adam optimizer and an exponential scheduler with patience 50.
+
+PINNs baselines (PINNs + L-BFGS and PINNs-multi-opt): The conditioning of the problem highly depends on the parameters of the PDE and initial/boundary conditions. This can lead to unstable training when optimizing PINNs, requiring specific parameter configurations for each PDE. To avoid extensive research of the best training strategy, we found a configuration that allowed a good fitting of most of the testing dataset. This means that in the values reported in table 2, we removed trainings for which the losses exploded (only a few hard PDEs were removed, typically between none to 20). This prevents us from extensive hyper-parameter tuning on each PDE. Please note that this lowers the reported relative MSE, thus advantaging the baseline. We detail in tables 5 and 6 the hyper-parameters for each dataset.
+
+Basis configuration: For all datasets, we use Splines of degree 3, built with shifted nodes. We change the number of terms in the basis depending on the problem considered. For the $1d$ -problem, we use 32 terms. For the $2d$ -problem, 40 elements are in the basis of each dimension, except for Reaction-Diffusion where the variable $t$ has 20 terms. Moreover, during training, we use the projection of the initial conditions and/or parameters and/or forcing terms function in the basis as input to the networks. Finally, for experiments using the Heat dataset (i.e. 3d basis), we used 15 terms for the $x$ and $y$ spatial coordinates and 10 terms for the $t$ -coordinate.
+
+Table 4: Architecture details of our model and baselines
+
+
Model
Architecture
Dataset
1d
1d + time
2d
2d + time
Helmholtz
Poisson
NLRD
Darcy
Heat
PINNs
MLP depth
3
3
3
3
3
MLP width
256
256
256
256
256
PPINNs
MLP depth
8
3
5
3
3
MLP width
64
256
256
256
256
PO-DeepONet
Branch Net depth
3
2
5
5
5
Branch Net width
256
256
256
256
256
Trunk Net depth
3
2
5
5
5
Trunk Net width
256
256
256
256
256
P2INNs
Enc params depth
4
4
4
4
4
Enc params width
256
256
256
256
256
Emb params
128
128
128
128
128
Enc coord depth
3
3
3
3
3
Enc coord width
256
256
256
256
256
Emb coord
128
128
128
128
128
Dec depth
6
6
6
6
6
Dec width
256
256
256
256
256
Activations
GeLU
GeLU
GeLU
GeLU
GeLU
MLP + basis
MLP depth
5
5
5
5
5
MLP width
256
256
1,024
1,024
1,024
PI-DeepONet
Branch Net depth
3
2
5
5
5
Branch Net width
256
256
256
256
256
Trunk Net depth
3
2
5
5
5
Trunk Net width
256
256
256
256
256
PINO
FNO depth
3
3
4
3
3
FNO width
64
64
64
64
64
FNO modes 1
16
16
10
20
7
FNO modes 2
-
-
5
20
7
FNO modes 3
-
-
-
-
5
FNO fc dim
64
64
64
64
64
Ours
FNO depth
3
3
3
3
3
FNO width
64
64
64
64
64
FNO modes 1
16
16
10
20
7
FNO modes 2
-
-
5
20
7
FNO modes 3
-
-
-
-
5
FNO fc dim
64
64
64
64
+
+Table 5: Hyperparameters for PINNs+L-BFGS baseline.
+
+
Hyper-parameter
Dataset
1d
1d + time
2d
2d + time
Helmholtz
Poisson
NLRD
Darcy
Heat
epochs
1,000
1,000
1,500
1,500
1,000
learning rate
1e-4
1e-5
1e-4
1e-3
1e-3
+
+Table 6: Hyperparameters for PINNs-multi-opt baseline.
+
+
Hyper-parameter
Dataset
1d
1d + time
2d
2d + time
Helmholtz
Poisson
NLRD
Darcy
Heat
epochs Adams
800
800
800
1,200
1,200
epochs L-BFGS
200
200
200
300
300
epochs total
1,000
1,000
1,000
1,500
1,500
learning rate Adam
1e-4
1e-5
1e-4
1e-3
1e-3
learning rate L-BFGS
1
1
1e-3
1
1
+
+# E ADDITIONAL EXPERIMENTS
+
+# E.1 ABLATION
+
+We experimentally show some properties of our iterative method. These evaluations are made on a test set composed of several instances of PDE with varying configurations $(\gamma, f, g)$ that are unseen during training. These experiments are performed on the Helmholtz equation which appeared as one of the most complex to optimize in our evaluation. We used $L = 5$ in our method for a better visualization, unless stated otherwise.
+
+Error w.r.t the number of steps L On fig. 11, we show that having more optimizer steps allows for a better generalization. However, we observed in our experiments that the generalization error stabilizes or even increases after the proposed 5 steps. This limitation of the solver should be investigated in future work in order to allow the model to make more iterations. Note that for this experiment, we lowered batch size (and adapted the learning rate accordingly) when the number of steps increased (fig. 11).
+
+
+Figure 11: Error on the test set (Helmholtz equation) w.r.t the number of iterations
+
+Error w.r.t the number of training samples On figs. 12a and 12b, we show that compared to other physics-informed baselines, our solver requires less data to learn to solve PDE. Note that in this simple example, the $MLP + \text{basis}$ baseline also performed well. However, as shown in table 2, this is not the case for all the datasets. The contribution of the iterative procedure clearly appears since with $2 \times$ less data, our model performs better than this baseline.
+
+
+(a)
+
+
+(b)
+Figure 12: Relative MSE on the test set w.r.t the number of training samples on Helmholtz (left) and Darcy (right) datasets.
+
+Optimization with $\mathcal{L}_{\mathrm{PDE}}$ Table 7 shows that optimizing our network with physical loss greatly complicates training. Indeed, adding an ill-conditioned loss to the standard MSE makes training ill-conditioned.
+
+Table 7: How the physical loss complexifies training and lowers performances. Metrics in Relative MSE on the test set of Helmholtz equation.
+
+
Input
Relative MSE
LPDE + L_DATA
1.11
L_DATA
2.19e-2
+
+Iterative update & SGD-based update In table 8, we compare two optimizer configurations. "Direct" means that the network directly predicts the parameters for the next step (i.e. $\Theta_{k+1} = \mathcal{F}_{\varrho}(\nabla \mathcal{L}_{\mathrm{PDE}}(\Theta_k), \gamma, f, g)$ ), while "GD", corresponds to the update rule described before and using SGD as the base algorithm $\Theta_{k+1} = \Theta_k - \eta \mathcal{F}_{\varrho}(\nabla \mathcal{L}_{\mathrm{PDE}}(\Theta_k), \gamma, f, g)$ . The latter clearly outperforms the direct approach and shows that learning increments is more efficient than learning a direct mapping between two updates. As shown in table 8 increasing the number of steps improves the performance (shown here for 1 and 5 update steps). However, the performance does not improve anymore after a few steps (not shown here).
+
+Table 8: Comparison of different optimizer configurations for solving the Helmholtz equation. Metrics in Relative MSE on the test set.
+
+
N-steps
Relative MSE
Direct
GD
1-step
1.08e-1
8.5e-2
5-step
9.07e-2
2.19e-2
+
+Optimization with different inner learning rates In table 9, we study the performance of our proposed method with different inner learning rates $\eta$ . As expected, a higher learning rate leads to better performances since the optimization is taking bigger steps.
+
+Table 9: Ablation on the inner learning rate. Metrics in Relative MSE on the test set of Helmholtz equation.
+
+
learning rate
Relative MSE
0.01
7.32e-2
0.1
4.93e-2
1
2.19e-2
+
+Quantifying the importance of input feature for the learned solver As indicated in eq. (9) the inputs of our learned solver are $(\gamma ,f,g,\nabla \mathcal{L}_{\mathrm{PDE}}(\theta_L))$ . We performed experiments by removing either $\gamma$ or $\nabla \mathcal{L}_{\mathrm{PDE}}(\theta_l)$ from the input (For the Helmholtz equation, there is no forcing term $f$ ). The BC $g$ are kept since they are part of the PDE specification and are required to ensure the uniqueness of the solution. This experiment (table 10) illustrates that conditioning on the PDE parameters $\gamma$ is indeed required to solve the parametric setting. Without $\gamma$ , the solver has no hint on which instance should be used. The addition of the gradient information, $\nabla$ , which is at the core of our method, is also crucial for improving the convergence and validates our setting.
+
+Table 10: Effect of using the gradient as input w.r.t the PDE parameters. Metrics in Relative MSE on the test set of Helmholtz equation.
+
+
Input
Relative MSE
γ + g
3.75e-1
∇ + g
1.07e-1
∇ + γ + g
2.19e-2
+
+We showed by a simple experiment that our model can handle nonlinear cases (see table 11). We propose to model the solution $u$ using a non-linear combination of the basis terms $\phi_i$ . The relation between the $\phi_i$ is modeled using a simple NN with one hidden layer and a tanh activation function. This experiment is performed on the Poisson PDE.
+
+Table 11: Nonlinear combination of the basis. Relative MSE on the test set for our proposed method and comparison with other non linear models and optimizers.
+
+
bases
Relative MSE
PINNs+L-BFGS
8.83e-1
PPINNs
4.30e-2
Ours
3.44e-3
+
+Network architecture We show in table 12, an ablation on the layer type used for $\mathcal{F}_{\varrho}$ in our experiments: MLP, Residual Network (ResNet), FNO and a modified version of a MLP (ModMLP) taken from (Wang et al., 2021a), inspired from attention mechanism. We conducted this experiment on the Helmholtz dataset.
+
+Table 12: Ablation on different layer types. Metric on the test set of the Helmholtz equation.
+
+
Layer type
Relative MSE
MLP
8.25e-1
ResNet
6.87e-1
ModMLP
5.55e-2
FNO
2.41e-2
+
+Irregular grids We show in table 13, an ablation on different types of grids: regular as in table 2, and irregular. The latter were created by sampling uniformly $75\%$ of the points in the original grid. The sampled grids are different between each trajectory both during the training and testing phases. We conducted this experiment on the Helmholtz dataset. Finally, we show some reconstruction examples in figs. 13a and 13b.
+
+Table 13: Comparison of the performances when training our solver using regular or irregular and different grids for each PDE. Metrics on the test set.
+
+
Grid
Relative MSE
regular
2.41e-2
irregular
3.38e-1
+
+This experiment shows that our method is capable of handling irregular grids. We observe a decrease in the performances (table 13) and in the reconstruction quality figs. 13a and 13b. However, we also note that our method is still capable of reconstructing the dynamic of the PDE, where most of the considered baselines failed to capture the oscillation in the Helmholtz PDE solution.
+
+
+(a)
+
+
+(b)
+Figure 13: Comparison of the reconstruction of the solution when models are trained on regular (left) and irregular grid (right).
+
+Error as a function of the PDE parameters values We illustrate in fig. 14 the behavior of the reconstruction of the MSE varying the PDE parameter values. We conducted this experiment on the Helmholtz PDE and varied $\omega$ from $-5$ to $55$ i.e. extrapolation of $10\%$ beyond the parameter distribution (and kept fixed boundary conditions).
+
+
+Figure 14: MSE comparison with PDE parameters $\omega$ of the Helmholtz dataset and extrapolation outside of the training distribution.
+
+We observe in fig. 14 that, as expected, solving Helmholtz PDE outside the training distribution fails for our model as well as for all baselines. The proposed method performs well inside the training distribution (as already observed in table 2) and behaves similarly to fully supervised methods on Out-Of-Distribution (OOD) examples. Finally, other baselines, involving physical only or hybrid training, only predict a mean solution.
+
+# E.2 STATISTICAL ANALYSIS
+
+We provide a statistical analysis on some datasets and baselines. These experiments are conducted using $L = 5$ (instead of $L = 2$ in table 2). For computational cost reasons, we did not make this experiment on all datasets but kept 2 datasets in 1d (table 14), 1 dataset in 1d+time, and 1 dataset in 2d (table 15) so that several configurations and data sizes are represented.
+
+This analysis shows the robustness of our proposed method w.r.t. initial seed.
+
+Table 14: Results of trained models with error bars (std errors) on 1d datasets - metrics in Relative MSE on test set. Best performances are highlighted in bold, and second best are underlined.
+
+
1d
Baseline
Helmholtz
Poisson
Supervised
MLP + basis
5.26e-2 ± 7.56e-3
1.58e-1 ± 7.98e-3
Unsupervised
PPINNs
8.33e-1±5.61e-3
3.59e-2±2.11e-2
PO-DeepONet
9.84e-1±6.93e-4
1.79e-1±3.09e-2
Hybrid
PI-DeepONet
9.81e-1 ± 2.25e-3
1.25e-1 ±1.04e-2
PINO
9.95e-1 ± 3.30e-3
3.27e-3 ± 1.38e-3
Ours
2.17e-2 ± 1.12e-3
4.07e-5 ± 2.65e-5
+
+Table 15: Results of trained models with error bars (std errors) on 1d + time, and 2d datasets - metrics in Relative MSE on test set. Best performances are highlighted in bold, and second best are underlined.
+
+
Baseline
1d + time
2d
1dnldr
Darcy-Flow
Supervised
MLP + basis
2.83e-5 ± 6.83e-7
3.78e-2±2.09e-3
Unsupervised
PPINNs
4.64e-1 ± 1.92e-2
9.99e-1±2.63e-2
PO-DeepONet
4.18e-1 ± 1.04e-2
8.32e-1±2.51e-4
Hybrid
PI-DeepONet
7.88e-2 ± 1.96e-4
2.72e-1 ± 4.44e-3
PINO
8.00e-5 ± 1.00e-5
1.17e-1 ± 1.42e-2
Ours
2.61e-5 ± 2.53e-6
1.62e-2 ± 3.06e-4
+
+# E.3 COMPUTATIONAL COST
+
+Finally, we detail here the training and inference times of our method as well as baselines.
+
+As we can see in table 16, our model takes longer to train due to the iterative process occurring at each epoch. However, note that this is training time; inference time is similar to other methods (see table 17). We detail a justification for this additional training time compared to PINNs variants below:
+
+- Comparison with vanilla PINNs: Consider the following experiment. Suppose we train a classical PINN on a single instance of the Darcy PDE. Based on the training times shown in table 16, using this method, we performed 1,500 steps, which took 420 minutes for training (please note that the performances were less accurate than our model's performance). If we wanted to train a PINNs on each PDE of our entire test dataset for 15000 epochs (sometimes even more steps are required), this would take 4200 minutes or stated otherwise approximately 3 days. Suppose now, that one wants to solve an additional equation. This will require an average of 0.226 seconds (see table 17) with our method, while PINNs would require an entirely new training session of approximately 20 minutes for 15,000 steps. This makes our method 5,000 times faster than traditional PINNs for solving any new equation.
+
+- Comparison with PINNs parametric variants: Now let us consider two parametric variants of PINNs designed to handle multiple PDEs (PPINNs for parametric PINNs, P2INNs for the model proposed by (Cho et al., 2024)). In table 2, models was trained for 5,000 epochs only. Let us consider training it further as suggested for vanilla PINNs, until 15,000 epochs. First, this training would require approximately $19\mathrm{h}30\mathrm{m}$ . Then, the optimization problem is still ill-conditioned, training further would probably not significantly improve the performance. We can extend this reasoning to the P2INNs baseline, for which we observed similar performance and behaviors.
+
+Table 16: Training time of the experiments shown in Table 2. of the paper on a single NVIDIA Titan RTX (25 Go) GPU. d stands for days, h for hours, m for minutes.
+
+
Dataset
Helmholtz
Poisson
1dnlrd
Darcy
Heat
MLP + basis
30m
20m
1h10m
2h
4h45
PPINNs
15m
20m
4h15m
6h30m
1d2h
P2INNs
2h
3h
11h
1d7h
1d8h
PODON
10m
10m
3h30m
1d9h
22h
PIDON
10m
10m
3h30m
1d10h
22h
PINO
15m
10m
1h10m
45m
2h40
Ours
30m
30m
4h30
10h15
1d 13h
+
+Table 17: Inference time, averaged (in seconds) on the test set. All experiments are conducted on a single NVIDIA RTX A6000 (48Go). We report the mean time computed on the test set to evaluate the baselines as performed in table 2 in the paper (i.e. with 10 test-time optimization steps when applicable and 20 steps on the Heat dataset). We consider as inference the solving of a PDE given its parameters and/or initial/boundary conditions.
+
+
Dataset
Helmholtz
Poisson
1dnlrd
Darcy
Heat
MLP + basis
1.12e-2
1.18e-2
1.25e-2
1.19e-2
1.66e-2
PINNs+L-BFGS
274
136
369
126
234
PINNs-multi-opt
15.5
25.5
16.5
105
90
PPINNs
3.09e-1
2.03e-1
2.91e-1
3.22e-1
5.45e-1
P2INNs
2.84e-1
3.09e-1
6.76e-1
1.29
1.23
PODON
3.27e-1
2.71e-1
4.38e-1
6.32e-1
8.85e-1
PIDON
3.32e-1
2.96e-1
4.43e-1
6.35e-1
8.80e-1
PINO
3.14e-1
1.24e-1
5.19e-1
2.21e-1
8.08e-1
Ours
2.58e-1
2.16e-1
2.84e-1
2.26e-1
2.90e-1
+
+# E.4 ADDITIONAL DATASETS
+
+We provide additional experiments on 2 new datasets: Non-linear Reaction-Diffusion in a more complex setting and Advections. We refer the reader to appendix C for the details about the PDE setting. These datasets were not included in the main part of the paper due to a lack of space in the results table.
+
+Table 18: Results of trained models on additional datasets - metrics in Relative MSE on the test set. Best performances are highlighted in bold, and second best are underlined.
+
+
Baseline
NLRDIC
Advections
Supervised
MLP + basis
9.88e-4
6.90e-2
Unsupervised
PPINNs
3.71e-1
4.50e-1
PO-DeepONet
4.36e-1
5.65e-1
Hybrid
PI-DeepONet
5.39e-2
4.26e-1
PINO
3.79e-3
6.51e-4
Ours
1.41e-3
5.39e-3
+
+These additional datasets show cases where baselines are performing very well on the considered PDE. For Advections, PINO reached very good performances. We believe that the Fourier layers used in the model fit well to the phenomenon. Indeed, the solution is represented using a combination of sine moving with time. This simple dynamics is easily captured using Fourier transformations. Our B-Splines basis can be sub-optimal for this dataset. For the complexified version of NLRD, NLRDIC, it is the supervised baseline that performs best. This dataset does not present high frequencies, and the MLP looks sufficiently expressive to find the coefficient in the basis. However, this baseline had difficulties in reconstructing the higher frequencies in Advections. Even if our model does not
+
+perform best on these datasets, it is ranked second. We believe that these additional results show the robustness of our method across different physical phenomena.
+
+# E.5 TRAINING BEHAVIOR
+
+We show in this section the evolution of the MSE as the training progresses (see fig. 15).
+
+
+Figure 15: MSE during training on the training and testing sets. Example shown on the Helmholtz equation for results as presented in table 2.
+
+
+(a)
+
+
+(b)
+Figure 16: Reconstruction of the solution PDEs during training. Example drawn from the test set.
+
+In fig. 15, we show the MSE evolution on both the train and test sets (evaluation every 50 epochs) and on figs. 16a and 16b some reconstruction (from the test set), with respect to the training epochs. The training set (800 PDE trajectories) corresponds to PDEs used to update the network parameters, while the test set (200 trajectories) are unseen PDEs for the network. This means that the model has not been trained or optimized on these PDEs. The test set is composed of PDEs with varying PDE parameter values $(\omega)$ and boundary conditions $(u_0, v_0)$ . This illustrates that the generalization performance on new PDEs within the training distribution is rapidly achieved by the network.
+
+# E.6 LOSS LANDSCAPES
+
+In this section, we propose a visual representation of the optimization paths in the loss landscape. Figures 17 and 18 illustrates the behavior of the vanilla PINNs algorithm and of our "learning to optimize" method. The plots represent respectively a 2D visualization of the physical loss landscape $\mathcal{L}_{PDE}$ (fig. 17) and of the data loss landscape $\mathcal{L}_{\mathrm{DATA}}$ (fig. 18), around the approximate solution (in our basis) of a given Helmholtz equation. The function basis used in this experiment has a size of 32. We used the technique in (Garipov et al., 2018) to visualize the solution coordinates in the basis $\Theta$ in the loss landscape (more details in appendix E.7.1). Superimposed on the loss background, we plot three trajectories obtained by starting from an initial random vector $\Theta_0$ .
+
+Figure 17 visualizes the sharp and ill conditioned landscape of the physical loss $\mathcal{L}_{PDE}$ , while Figure 18 shows the better conditioned landscape of the MSE data loss $\mathcal{L}_{\mathrm{DATA}}$ . The figures provide intuition on how the proposed algorithm operates and improves the convergence. The optimizer $\mathcal{F}$ modifies the direction and magnitude of the stochastic gradient descent (SGD) updates in the physical loss landscape (Figure 17, left plot). It achieves this by utilizing solution values at various sample points to adjust the gradient, steering it toward the corresponding minimum in the mean squared error (MSE) landscape (Figure 18, central plot). While the descent remains within the residual physics error space, the learned optimizer provides an improved gradient direction, enhancing convergence efficiency (Figure 17, right plot). We describe below the different figures.
+
+- Left Columns in Figures 17 and 18: these figures show the gradient path (100 steps) obtained by directly optimizing the physical loss $\mathcal{L}_{PDE}$ , similar to the vanilla PINNs algorithm. This trajectory highlights the ill-conditioning of the optimization problem associated to $\mathcal{L}_{PDE}$ .
+- Center Column in Figures 17 and 18: these figures plot the trajectory of a gradient-based optimization algorithm trained with a mean squared error $\mathcal{L}_{\mathrm{DATA}}$ data loss (100 steps), under the assumption that the solution values are known at collocation points. While these quantities are not available in our case, this visualization is included to illustrate the differences in convergence behavior between physics-based and MSE-based loss functions when both are accessible.
+- Right Column in Figures 17 and 18: these plots illustrate the behavior of our algorithm (the solver is trained with 2 gradient steps for this example). It demonstrates the effect of our learned optimizer and the significant improvements achieved compared to a standard gradient descent algorithm on the physical loss.
+
+. We describe in appendix E.7 the construction of the figures figs. 17 and 18.
+
+
+Figure 17: Loss landscapes and optimization trajectories on an instance of the Helmholtz PDE. The figure represents the PDE loss $\mathcal{L}_{\mathrm{PDE}}$ landscape and superimposed are examples of optimization paths computed using SGD on the physical loss (left), the data loss (center), and our method (right).
+
+
+Figure 18: Loss landscapes and optimization trajectories on an instance of the Helmholtz PDE. The figures represent the DATA loss $\mathcal{L}_{\mathrm{DATA}}$ and superimposed are examples of optimization paths computed using SGD on the physical loss (left), the data loss (center), and our method (right).
+
+# E.7 PROJECTION OF THE BASIS FOR VISUALIZATION
+
+Following the technique described in (Garipov et al., 2018), we plot a 2D slice of the loss function around the minimum solution. We explain below the method used for creating figs. 17 and 18.
+
+# E.7.1 CREATE A BASIS FOR PROJECTION
+
+We want to visualize the loss landscapes around a parameter solution $\Theta^{\star}$ of a given PDE. Due to the high dimensionality of the parameter space, we use the method proposed in (Garipov et al., 2018), that involves creating a 2d slice of the loss landscape for visualization. This methods projects the multidimensional landscape onto a 2D basis $(u,v)$ so that any solution vector $\Theta$ could be written as $\Theta = \alpha u + \beta v$ , with $\alpha, \beta \in \mathbb{R}$ and $u,v \in \mathbb{R}^N$ , 2 orthonormal vectors. Let $\Omega_{u,v} := \mathrm{Vect}\{u,v\}$ denote this projection space. For the visualization, the basis must include the solution vectors found by our algorithm. For that:
+
+1. We start by running our optimization algorithm from a random vector parameters $\Theta_0$ to find $\Theta_L \in \mathbb{R}^N$ , our approximate PDE solution. We set $w_1 = \Theta_L$ and set a second vector $w_2 = \Theta_0$ , chosen here as the initial vector of our optimization process.
+2. We generate a third vector $w_{3}\in \mathbb{R}^{N}$ randomly.
+3. We then set: $u = w_{2} - w_{1}$ and $v = (w_{3} - w_{1}) - \frac{}{||w_{2} - w_{1}||^{2}}(w_{2} - w_{1})$
+4. The resulting normalized vectors $\hat{u} = \frac{u}{||u||}$ and $\hat{v} = \frac{v}{||v||}$ form an orthogonal basis containing $w_{1}, w_{2}$ and $w_{3}$ .
+5. Using the solution parameters $\Theta_L$ as the origin for our newly created basis, we can compute a 2D slice of the loss landscape where each solution $\Theta$ could be represented in the $(u,v)$ basis with its projection coordinates $(\alpha ,\beta)$ as $\Theta_{projection} = w_1 + \alpha \hat{u} +\beta \hat{v}$ .
+
+# E.7.2 PLOT TRAJECTORIES
+
+Finally, we run a baseline optimization procedures and get trajectories $\{\Theta_{i}\}_{i = 0}^{L}$ , with L being the number of optimization steps, e.g. a gradient descent, on the physical loss, the MSE loss or our proposed method. We project the $\Theta_{i}$ 's in the created basis (see appendix E.7.1) and plot this projection of the optimization trajectory on the loss landscape $\Omega_{u,v}$ as visualized on figs. 17 and 18.
+
+# E.7.3 ILLUSTRATION OF THE ILL-CONDITIONING OF THE PDE LOSS
+
+As an illustration of the ill-conditioning of the PDE loss, we replicate fig. 17 using a basis that further emphasizes this aspect. To build this basis, we use the procedure described in appendix E.7.1 by using 2 eigenvectors of the hessian of the PDE loss. First, we compute $\mathrm{Hess}(\mathcal{L}_{\mathrm{PDE}})$ and its
+
+eigenvectors decomposition. We select the vectors associated to the highest and lowest eigenvalues, and respectively set them to $w_{2}$ and $w_{3}$ . The resulting landscape visualization is shown in fig. 19.
+
+
+Optimization path in the $\mathcal{L}_{PDE}$ loss landscape.
+Figure 19: Loss landscapes and optimization trajectories on an instance of the Helmholtz PDE. These optimization trajectories are computed using SGD on the physical loss (left), the data loss (center), and our method (right). The background represents the PDE loss $\mathcal{L}_{\mathrm{PDE}}$ .
+
+Figure 19, clearly illustrates the characteristic shape of the ill-conditioned function $\mathcal{L}_{\mathrm{PDE}}$ . The two directions, extracted from the highest and lowest eigenvalues, are clearly visible on this PDE loss landscape. This highlights the difficulty of this optimization problem for standard descent methods.
+
+# F QUALITATIVE RESULTS
+
+This section is dedicated to visualization of the results of our model, baselines and optimizers, presented in section 4. For each PDE considered, we chose 2 samples in the test sets and compute the solutions with our model and the different baselines. We provide visualization samples with $L = 5$ i.e. results proposed in tables 14 and 15 to detail more precisely the evolution of the solution at several steps of optimization. 3 datasets are shown with $L = 2$ : Heat for computational reasons (training with $L = 5$ is much more expensive when the dimension of the problem increases) and the 2 additional datasets trained only with $L = 2$ (Advection and NLRDIC). Then, we show the evolution of the reconstruction of the solution with our method i.e. we plot the solution at each step of the optimization (figs. 20a, 20b, 23a, 23b, 26a, 26b, 29a, 29b, 32a, 32b, 35a, 35b, 38a and 38b) and we compare the final prediction with baselines' (figs. 21a, 21b, 24a, 24b, 27a, 27b, 30a, 30b, 33a, 33b, 36a, 36b, 39a and 39b). Finally, we chose 20 (6 for Heat) PDEs and we reproduce fig. 2 for every dataset. More precisely, we optimize one PINN per PDE using Adam, we fit our basis using several optimizers (GD, ADAM, L-BFGS and our learned optimization process) and we fine-tune the learned PINO for 10,000 steps and visualize the evolution of the MSE (averaged at each step on the selected PDE). These figures show the relevance of learning the optimizer when using physics-informed losses (figs. 22, 25, 28, 31, 34, 37 and 40).
+
+# F.1 HELMHOLTZ
+
+
+(a)
+
+
+(b)
+Figure 20: Reconstruction of the solution using our optimizer on the Helmholtz dataset.
+
+
+(a)
+Figure 21: Visual comparison of the solutions for the Helmholtz equation.
+
+
+(b)
+
+
+Figure 22: Test-time optimization based on the physical residual loss $\mathcal{L}_{\mathrm{PDE}}$ on Helmholtz. Note that, even though hardly visible on this figure, the optimization is running very slowly and the PINN MSE (orange) decreases for the last steps. This dataset will probably need even more steps before convergence.
+
+# F.2 POISSON
+
+
+(a)
+
+
+(b)
+Figure 23: Reconstruction of the solution using our optimizer on the Poisson dataset.
+
+
+(a)
+Figure 24: Visual comparison of the solutions for the Poisson equation.
+
+
+(b)
+
+
+Figure 25: Test-time optimization based on the physical residual loss $\mathcal{L}_{\mathrm{PDE}}$ on Poisson.
+
+# F.3 REACTION-DIFFUSION
+
+Evolution of the reconstruction of the solution with optimization steps.
+
+
+
+
+
+
+
+
+(a)
+
+
+
+
+
+
+
+Evolution of the reconstruction of the solution with optimization steps.
+
+
+Figure 26: Reconstruction of the solution using our optimizer on the Reaction-Diffusion dataset.
+
+
+
+
+
+
+(b)
+
+
+
+
+
+
+
+
+Figure 27: Visual comparison of the solutions for the Reaction-Diffusion equation.
+
+
+Figure 28: Test-time optimization based on the physical residual loss $\mathcal{L}_{\mathrm{PDE}}$ on NLRD.
+
+# F.4 DARCY
+
+Evolution of the reconstruction of the solution with optimization steps.
+
+
+(a)
+
+Evolution of the reconstruction of the solution with optimization steps.
+
+
+(b)
+Figure 29: Reconstruction of the solution using our optimizer on the Darcy dataset.
+
+Solution for Darcy flow
+
+
+(a)
+
+Solution for Darcy flow
+
+
+(b)
+Figure 30: Visual comparison of the solutions for the Darcy equation.
+
+
+Figure 31: Test-time optimization based on the physical residual loss $\mathcal{L}_{\mathrm{PDE}}$ on Darcy.
+
+# F.5 HEAT
+
+
+Evolution of the reconstruction of the solution with optimization steps.
+
+
+(a)
+Evolution of the reconstruction of the solution with optimization steps.
+(b)
+Figure 32: Reconstruction of the solution using our optimizer on the Heat dataset.
+
+
+
+
+
+
+
+
+(a)
+
+
+
+
+
+
+
+
+Figure 33: Visual comparison of the solutions for the Heat equation.
+
+
+
+
+
+
+(b)
+
+
+
+
+
+
+
+
+Figure 34: Test-time optimization based on the physical residual loss $\mathcal{L}_{\mathrm{PDE}}$ on Heat. For computational reasons, this experiment has been conducted on 1,000 steps only.
+
+# F.6 ADVECTION
+
+Evolution of the reconstruction of the solution with optimization steps.
+
+
+(a)
+
+Evolution of the reconstruction of the solution with optimization steps.
+
+
+(b)
+Figure 35: Reconstruction of the solution using our optimizer on the Advection dataset.
+
+
+
+
+(a)
+(b)
+
+
+Figure 36: Visual comparison of the solutions for the Advection equation.
+Figure 37: Test-time optimization based on the physical residual loss $\mathcal{L}_{\mathrm{PDE}}$ on Advection.
+
+# F.7 NON-LINEAR REACTION-DIFFUSION WITH INITIAL CONDITIONS
+
+Evolution of the reconstruction of the solution with optimization steps.
+
+
+
+
+(a)
+
+
+
+
+
+Evolution of the reconstruction of the solution with optimization steps.
+
+
+Figure 38: Reconstruction of the solution using our optimizer on the NLRDIC dataset.
+
+
+(b)
+
+
+
+
+
+
+Figure 39: Visual comparison of the solutions for the NLRD with varying IC equation.
+
+
+Figure 40: Test-time optimization based on the physical residual loss $\mathcal{L}_{\mathrm{PDE}}$ on NLRD with varying IC.
\ No newline at end of file
diff --git a/ICLR/2025/Learning a Neural Solver for Parametric PDEs to Enhance Physics-Informed Methods/images.zip b/ICLR/2025/Learning a Neural Solver for Parametric PDEs to Enhance Physics-Informed Methods/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..94623d763b36c6fb55a7ff82da8a3552db77bc3e
--- /dev/null
+++ b/ICLR/2025/Learning a Neural Solver for Parametric PDEs to Enhance Physics-Informed Methods/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0a9f87f67755213d01cf5f3cf8d7d1e007139e93d8594f2a1fb2faca302bf91b
+size 2559483
diff --git a/ICLR/2025/Learning a Neural Solver for Parametric PDEs to Enhance Physics-Informed Methods/layout.json b/ICLR/2025/Learning a Neural Solver for Parametric PDEs to Enhance Physics-Informed Methods/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..3f823ea3bd93eb701255e56171eb3319422a9ad0
--- /dev/null
+++ b/ICLR/2025/Learning a Neural Solver for Parametric PDEs to Enhance Physics-Informed Methods/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:daa95394382200cb7c567f8778f259165e5938d6c68ee8493e85a3f8811fb596
+size 1513363
diff --git a/ICLR/2025/Learning from Imperfect Human Feedback_ A Tale from Corruption-Robust Dueling/06848cc4-4873-4ca8-baf7-06f819ca315a_content_list.json b/ICLR/2025/Learning from Imperfect Human Feedback_ A Tale from Corruption-Robust Dueling/06848cc4-4873-4ca8-baf7-06f819ca315a_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..c1498d01c3fd06a03a7560615908f65715a90ebf
--- /dev/null
+++ b/ICLR/2025/Learning from Imperfect Human Feedback_ A Tale from Corruption-Robust Dueling/06848cc4-4873-4ca8-baf7-06f819ca315a_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:bbacb39db563902272bf6c3d46ca7278ee5e43c46ff72e82b106925c373ad6a4
+size 240194
diff --git a/ICLR/2025/Learning from Imperfect Human Feedback_ A Tale from Corruption-Robust Dueling/06848cc4-4873-4ca8-baf7-06f819ca315a_model.json b/ICLR/2025/Learning from Imperfect Human Feedback_ A Tale from Corruption-Robust Dueling/06848cc4-4873-4ca8-baf7-06f819ca315a_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..49f10391b173ad9f07fae4f1fb57126fcc19f0df
--- /dev/null
+++ b/ICLR/2025/Learning from Imperfect Human Feedback_ A Tale from Corruption-Robust Dueling/06848cc4-4873-4ca8-baf7-06f819ca315a_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:946190e416495e8dd0937f0a55b491487a47e93143254da8bbcaa2bdc873917f
+size 275460
diff --git a/ICLR/2025/Learning from Imperfect Human Feedback_ A Tale from Corruption-Robust Dueling/06848cc4-4873-4ca8-baf7-06f819ca315a_origin.pdf b/ICLR/2025/Learning from Imperfect Human Feedback_ A Tale from Corruption-Robust Dueling/06848cc4-4873-4ca8-baf7-06f819ca315a_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..61b5d5291086ad77282d34b617e5db6840c71303
--- /dev/null
+++ b/ICLR/2025/Learning from Imperfect Human Feedback_ A Tale from Corruption-Robust Dueling/06848cc4-4873-4ca8-baf7-06f819ca315a_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:dcf21de710160dfe0f5422e2c32c07e1060d36cfb620ff4fd7189776f58bb788
+size 1844575
diff --git a/ICLR/2025/Learning from Imperfect Human Feedback_ A Tale from Corruption-Robust Dueling/full.md b/ICLR/2025/Learning from Imperfect Human Feedback_ A Tale from Corruption-Robust Dueling/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..8991da6d479f9fa25f5819cc0cff8f0fbb657009
--- /dev/null
+++ b/ICLR/2025/Learning from Imperfect Human Feedback_ A Tale from Corruption-Robust Dueling/full.md
@@ -0,0 +1,1045 @@
+# LEARNING FROM IMPERFECT HUMAN FEEDBACK: A TALE FROM CORRUPTION-ROBUST DUELING
+
+# Yuwei Cheng
+
+Department of Statistics
+
+University of Chicago
+
+Chicago, IL 60637, USA
+
+yuweicheng@uchicago.edu
+
+# Xuefeng Liu*
+
+Department of Computer Science
+
+University of Chicago
+
+Chicago, IL 60637, USA
+
+xuefeng@uchicago.edu
+
+# Fan Yao*
+
+Department of Computer Science
+
+University of Virginia
+
+Charlottesville, VA 22904, USA
+
+fy4bc@virginia.edu
+
+# Haifeng Xu
+
+Department of Computer Science
+
+University of Chicago
+
+Chicago, IL 60637, USA
+
+haifengxu@uchicago.edu
+
+# ABSTRACT
+
+This paper studies Learning from Imperfect Human Feedback (LIHF), addressing the potential irrationality or imperfect perception when learning from comparative human feedback. Building on evidences that human's imperfection decays over time (i.e., humans learn to improve), we cast this problem as a concave-utility continuous-action dueling bandit but under a restricted form of corruption: i.e., the corruption scale is decaying over time as $t^{\rho - 1}$ for some "imperfection rate" $\rho \in [0, 1]$ . With $T$ as the total number of iterations, we establish a regret lower bound of $\Omega(\max\{\sqrt{T}, T^{\rho}\})$ for LIHF, even when $\rho$ is known. For the same setting, we develop the Robustified Stochastic Mirror Descent for Imperfect Dueling (RoSMID) algorithm, which achieves nearly optimal regret $\tilde{O}(\max\{\sqrt{T}, T^{\rho}\})$ . Core to our analysis is a novel framework for analyzing gradient-based algorithms for dueling bandit under corruption, and we demonstrate its general applicability by showing how this framework can be easily applied to obtain corruption-robust guarantees for other popular gradient-based dueling bandit algorithms. Our theoretical results are validated by extensive experiments.
+
+# 1 INTRODUCTION
+
+Many real-world problems, such as personalized recommendation (Yue & Joachims, 2009; Immorlica et al., 2020; Yao et al., 2022) and fine-tuning generative models (Bai et al., 2022; Casper et al., 2023; Han et al., 2024), require learning from human feedback. Expressing preferences as numerical values or concrete functions is generally challenging for humans. Therefore, an approach that has achieved significant real-world success is to learn humans' preferences by eliciting their comparative feedback between two options (Bai et al., 2022). A natural theoretical framework capturing such learning task is the seminal dueling bandits framework introduced by Yue & Joachims (2009). The dueling bandit problem features a sequential online learning problem, during which a pair of actions are selected at each round and only their comparison result is revealed to the learner. The comparison outcome between two actions is modeled using a utility function of actions, alongside a link function that determines the probability of each action winning based on their utility difference. This modeling approach is termed as utility-based dueling bandit and achieves great success in generating summaries closely aligned with human preferences (Stiennon et al., 2020). However, human feedback is often imperfect, a crucial factor that has been largely overlooked in previous studies of dueling bandit. As we are all aware of, humans are not always rational (Posner, 1997) neither perfectly know our preferences (Pu et al., 2012). A powerful framework that can capture this problem is robust bandit learning under adversarial corruption (Bogunovic et al., 2020; Saha &
+
+Gaillard, 2022; Di et al., 2024). However, assuming fully adversarial feedback from a regular human seems over-pessimistic at the first glance, hence might make our algorithm development overly conservative. Indeed, ample behavioral studies show that humans often refine their preferences through interactions with the system, navigating a complex tradeoff between exploration and exploitation (Cohen et al., 2007; Wilson et al., 2014). Furthermore, their response errors may exhibit systematic patterns that depend on their past consumption history, rather than merely random noise. Though the sources of imperfections vary a lot in human feedback, one common finding in these studies is that the feedback's imperfection tends to decrease over time, as humans interact more with the system (Cohen et al., 2007; Wilson et al., 2014; Immorlica et al., 2020; Yao et al., 2022). This premise is the core motivation of this work, which studiesueling bandit learning under corruption that can be arbitrary but have decaying scales.
+
+Our Model and Contributions. We cast Learning from Imperfect Human Feedback (LIHF) as a concave-utility continuous-action dueling bandit learning problem under adversarial utility corruption yet with decaying scale, upper bounded by $\mathcal{O}(t^{\rho -1})$ at round $t$ , for some $\rho \in [0,1]$ (hence the total amount of attack within time $T$ is $\mathcal{O}(T^{\rho})$ ). A fundamental research question that motivates our study is whether LIHF is fundamentally easier than learning under arbitrarily corrupted feedback.
+
+Our first main technical result hints on a potentially negative answer to the above question. We prove a strong regret lower bound of $\Omega(d\max\{\sqrt{T}, T^{\rho}\})$ under LIHF, where $d$ is the action's dimension. This bound holds even when the decaying rate of imperfection index $\rho$ is known. This lower bound has the same order as recent lower bounds ofueling bandits under (the harder) arbitrary corruption (Agarwal et al., 2021; Di et al., 2024), thus hinting that learning from imperfect human feedback may be no easier than learning from arbitrary adversarial corruption. Notably, however, we use the phrase "hint", while not an affirmative claim, because our setting with continuous action space and concave utility function is different from the $K$ -armed bandits setting of Agarwal et al. (2021) and linear utility function case of Di et al. (2024). Therefore, neither their lower bounds nor their proof techniques are directly applicable to our setting with corruption to strictly concave utilities; see more discussions and comparisons below.
+
+Our second main result is an efficient algorithm with regret upper bound $\tilde{\mathcal{O}}(d\max\{\sqrt{T}, T^{\rho}\})$ that matches the above lower bound, up to logarithmic terms, in the same setting (i.e., decaying corruption level $t^{\rho-1}$ with known $\rho$ ). Unlike previous corruption-robust dueling bandit algorithms based on robust $K$ -armed bandits (Agarwal et al., 2021) or robustified LinUCB (Di et al., 2024), our algorithm is a gradient-based algorithm that is built upon the recent Noisy Comparison-based Stochastic Mirror Descent (NC-SMD) of Kumagai (2017). This is natural for our setup with continuous actions and strictly concave utility. While our algorithm itself can be viewed as a natural generalization of Kumagai (2017), its analysis is highly non-trivial and much more complex, due to the necessity of accounting for corruption.
+
+Our main technical contribution is a new framework for analyzing the regret of gradient-based algorithms under arbitrary corruption. This framework introduces a novel regret decomposition lemma for dueling bandits, which upper bounds total regret by combining decision regret and feedback error due to corruption, based on quantifying bias in gradient estimation. It yields a tight analysis of our new algorithm and implies regret bounds for popular existing algorithms in (even fully) adversarial corruption settings, such as the dueling bandit gradient descent (DBGD, Yue & Joachims (2009)).
+
+These upper bounds are looser than our lower bound for the LIHF setting. It is an intriguing open question to understand whether these upper bounds under arbitrary corruption are tight, or the lower bound under arbitrary corruption may be stronger than our lower bound under LIHF. Finally, we conduct simulations which validate our theory.
+
+Comparisons with Related Works. Since multiple recent works (Agarwal et al., 2021; Saha & Gaillard, 2022; Di et al., 2024) study dueling bandits under arbitrarily adversarial corruption, it is worthwhile to discuss the key difference between these works and ours. The first key difference is the setting, which leads to fundamentally different algorithms hence analysis. Specifically, our setting with continuous action space and a completely unknown concave utility function is motivated by addressing problems from modern recommender systems where the action (i.e., contents) space is extremely large, not enumerable, thus often embedded as high-dimensional continuous vectors (Chen et al., 2019; 2021). This setting and our techniques are crucially different from earlier works. Agarwal et al. (2021); Saha & Gaillard (2022) consider the $K$ -arm dueling bandit setting and utilizes
+
+the reduction of Ailon et al. (2014) from dueling bandits to multi- $K$ -armed bandits (MAB); (Di et al., 2024) considers linear utility setting where the unknowns is a parameter vector $\theta$ , and utilizes techniques from linear contextual bandits based on the optimism principle. The methods all rely on parameter estimation which are not applicable to our setting with arbitrary concave utilities. Moreover, they often need to enumerate all actions to identify the best one under optimism, which are not computationally efficient for our setting with continuous action space. This is why our algorithm is gradient-based and falls within the family of stochastic mirror descent. To the best of our knowledge, this is the first time a corruption-robust algorithm is developed for dueling bandits with continuous actions and strictly concave utilities, which is also why it is necessary for us to develop a new analysis framework. Additionally, we also note that dueling bandits with strictly concave utility and linear utility are generally not comparable, both in terms of their problem difficulties and methodologies. A strictly more general situation is the concave utility case (no need to be strongly concave), however the best upper bound so far for general concave utility is $\mathcal{O}(T^{3/4})$ (Flaxman et al., 2005; Yue & Joachims, 2009), which are considerably worse than the $\mathcal{O}(T^{1/2})$ for linear and for strongly concave utility.
+
+The second main difference between our work and previous is the more restricted class of adversarial environments. Our model is motivated by imperfect human feedback whereas previous studies are motivated by arbitrarily adversarial adversaries. Finally, a more subtle difference is that the corruption in our model is on utility with motivations from learning from imperfect human feedback, whereas corruption in all previous settings directly flip the comparison outcome. These two differences lead to a very different proof techniques of our lower bound. Our proof is more involved because the adversary has limited capability to alter the comparison outcomes. Specifically, the corruption are decaying; moreover, a constant amount of utility corruption only slightly shifts the outcome probability whereas in previous settings each corruption completely changes the outcome.
+
+# 2 THE PROBLEM OF LEARNING FROM IMPERFECT HUMAN FEEDBACK
+
+Notation. For a positive integer $T$ , we use $[T]$ to denote $\{1, 2, \dots, T\}$ . We use standard asymptotic notations including $\mathcal{O}(\cdot), \Omega(\cdot), \Theta(\cdot)$ . We use $\tilde{\mathcal{O}}(\cdot), \tilde{\Omega}(\cdot), \tilde{\Theta}(\cdot)$ to hide logarithmic factors. We use $\| \cdot \|_2$ to define $L_2$ norm, $\| \cdot \|_\infty$ to define infinity norm, and $\lambda_{\max}(\cdot)$ to denote maximum eigenvalue.
+
+Motivated by alignment of machine learning models with human preferences (Bai et al., 2022), we study learning from comparative human feedback within the seminal dueling bandit framework (Yue & Joachims, 2009) but account for "imperfections" in human feedback, as described below.
+
+Basics of Continuous Dueling Bandits. We consider theueling bandit framework with continuous action set $\mathcal{A}\subset \mathbb{R}^d$ (Yue & Joachims, 2009). At each round $t\in [T]$ , the learner chooses two actions $a_{t},a_{t}^{\prime}$ to present to some human agent, henceforth denoted as the "user". The user receives utility $\mu (a_t),\mu (a_t^{\prime})$ from the two actions respectively, and will pick one of these actions following a link function $\sigma (\cdot)$ . In the absence of corruption, the user selects action $a_{t}$ with probability $\sigma (\mu (a_t) - \mu (a_t'))$ and chooses action $a_{t}^{\prime}$ otherwise. Since the comparison outcome has less errors compared to the exact utility value while still carries useful information about the underlying utility function $\mu$ , this form of human feedback has been widely used for learning human preferences (Ailon et al., 2014; Maystre & Grossglauser, 2017; Bengs et al., 2021; Bai et al., 2022). Following standard assumptions in this field (Yue & Joachims, 2009; Kumagai, 2017), we also assume
+
+1. the action set $\mathcal{A}$ is a convex compact set that contains the origin, has non-empty interior, and is contained in a $d$ -dimensional ball of radius $R$ ;
+2. the utility function $\mu : \mathcal{A} \to \mathbb{R}$ is strongly concave and twice-differentiable. The following constants are useful for our algorithm analysis: $\mu$ is $L^{\mu}$ -Lipschitz, $\alpha$ -strongly concave, $^1$ $\kappa$ -smooth, bounded, $R^{\mu} \coloneqq \sup_{a,a' \in \mathcal{A}} \mu(a) - \mu(a')$ , and $a^* \coloneqq \arg \max_{a \in \mathcal{A}} \mu(a)$ is the unique optimal within $\mathcal{A}$ ;
+3. the link function $\sigma : \mathbb{R} \to [0,1]$ is smooth, rotation-symmetric (i.e. $\sigma(x) = 1 - \sigma(-x)$ ) and concave for $\mathbb{R}^+$ . Since $R^\mu$ is finite, there exists positive $l_1^\sigma$ , $L_1^\sigma$ and $R_2^\sigma$ such that $l_1^\sigma \leq \sigma' \leq L_1^\sigma$ on $[-R^\mu, R^\mu]$ , and the second derivative is bounded above by $R_2^\sigma$ and $L_2^\sigma$ . Lipschitz on $[-R^\mu, R^\mu]$ . For a more detailed discussion on the generality of the modeling assumptions, please refer to Appendix A.
+
+A broad range of natural link functions satisfy our assumptions, including the standard logistic distribution function, the cumulative standard Gaussian distribution function, and the linear function. This distinguishes our work from some prior studies, working with concrete link function formats such as logistic function (Maystre & Grossglauer, 2017; Saha, 2021; Xu et al., 2024) or the linear function (Ailon et al., 2014; Chen & Frazier, 2017; Zimmert & Seldin, 2018; Lin & Lu, 2018).
+
+Modeling Imperfect Human Feedback as a Restricted Form of Adversarial Corruption. To incorporate imperfect human feedback, we study a generalization of the dueling bandit framework above, by introducing a corruption term, $c(a, a')$ , to the utility difference. Formally, let $a \succ a'$ represent the event where the user chooses $a$ over $a'$ . The probability of this event in the presence of corruption $c(a, a')$ is denoted by $\hat{\mathbb{P}}(a \succ a')$ , expressed as $\hat{\mathbb{P}}(a \succ a') := \sigma(\mu(a) - \mu(a') + c(a, a'))$ . We denote the user's preferential feedback under corruption as $\hat{\mathcal{F}}(a, a')$ , referred to as imperfect dueling feedback. Mathematically, $\hat{\mathcal{F}}(a, a')$ follows a binomial distribution with mean $\hat{\mathbb{P}}(a \succ a')$ , as expressed by the following equation.
+
+$$
+\hat {\mathcal {F}} (a, a ^ {\prime}) := \left\{ \begin{array}{l} 1 \text {w . p .} \hat {\mathbb {P}} (a \succ a ^ {\prime}) \\ 0 \text {w . p .} 1 - \hat {\mathbb {P}} (a \succ a ^ {\prime}) \end{array} \right.
+$$
+
+The "hat" notation in $\hat{\mathcal{F}}$ and $\hat{\mathbb{P}}$ is to emphasize the presence of corruption. When there is no corruption, we use $\mathbb{P}(a\succ a^{\prime})\coloneqq \sigma (\mu (a) - \mu (a^{\prime}))$ to represent the probability of the event $a\succ a^{\prime}$ , and $\mathcal{F}(a,a^{\prime})$ to denote the correspondingueling feedback.
+
+We remark that the term $c(a, a')$ above is often called "strong corruption" in the literature of adversarial corruption because it can be introduced after observing actions $a$ and $a'$ and the corruption function, $c(\cdot)$ , can depend on $\mu$ and past actions (Bogunovic et al., 2020; He et al., 2022; Di et al., 2024). The only difference between our model and the above works on adversarial corruption is a natural restriction to the scale of the corrupted term $c(a, a')$ . Our motivation is that human feedback, while imperfect, should not be arbitrarily adversarial and tends to improve as human agent interact with the learner. This motivates our following definition of imperfect human feedback.
+
+Definition 2.1 ( $\rho$ -Imperfect Human Feedback). The human feedback is said to be $\rho$ -imperfect for some $\rho \in [0,1]$ if there exists a constant $C_{\kappa}$ such that corruption $c_{t}(a_{t},a_{t}^{\prime})$ satisfies $|c_{t}(a_{t},a_{t}^{\prime})|\leq C_{\kappa}t^{\rho -1},\forall t\in [T]^{2}$
+
+The definition shows that $\rho$ -imperfect human feedback is mathematically equivalent to a restricted form of strong adversarial corruption to user utility functions. The total corruption is bounded by $\sum_{t=1}^{T}|c_t(a_t,a_t')| \leq C_\kappa T^\rho$ , which is a key parameter influencing the intrinsic difficulty of the learning problem. We thus cast the Learning from Imperfect Human Feedback (LIHF) problem asueling bandits under strong corruption but with decaying scales. For clarity, we use "arbitrary adversarial corruption" as corruption without decaying constraints and " $\rho$ -Imperfect Human Feedback" as corruption with decaying constraints, as described in Definition 2.1. Through this modeling, we aim to: first create a more optimistic framework for LIHF compared to arbitrary adversarial corruption, and second, explore LIHF's intrinsic difficulty to achieve more efficient learning guarantees than those possible under arbitrary adversarial corruption. We direct readers to Appendix B for a more comprehensive discussion on challenges in developing robust algorithms for continuousueling bandits with generally concave utility under arbitrary adversarial corruption.
+
+Several points are worth noting about Definition 2.1. While we are not the first to model imperfect human feedback, we are the first to apply it toueling bandits with strictly concave utilities. Recent works, motivated by recommendation systems, have explored learning user preferences from imperfect feedback (Immorlica et al., 2020; Yao et al., 2022; Wang et al., 2023). These studies assume that users do not know their true expected reward $\theta_{i}$ for each choice $i$ (i.e., arm) and instead behave based on an estimated reward $\hat{\theta}_{t,i}$ at time $t$ . The utility difference $|\theta_{i} - \hat{\theta}_{t,i}| = c_{t}$ is modeled as a decreasing function of time, $t^{\rho -1}$ , indicating that users improve their preference estimates over time. By viewing the human utility $\mu (a)$ as the average reward, our modeling of $\rho$ -Imperfect Human Feedback shares the same spirit; it captures imperfect yet gradually improving human feedback (e.g., due to inaccuracies in utility perception or initial ignorance of true preferences). As one of our motivations, when generative models like ChatGPT learn to create personalized content, the user
+
+could undergo a process of preference refinement during interactions with the model. Additionally, our model differs from recent corruption-robust dueling bandit studies (Komiyama et al., 2015; Saha & Gaillard, 2022; Di et al., 2024), which corrupt realized outcomes (e.g., flipping $a^\prime \succ a$ to $a\succ a^{\prime}$ ) and are motivated by adversaries like malicious users or fraudulent clicks (Deshpande & Montanari, 2013; Lykouris et al., 2018). In contrast, our model focuses on utility corruption caused by imperfect perception of true utility, not outcome manipulation.
+
+Learning goal: regret minimization by Learning from $\rho$ -Imperfect Human Feedback ( $\rho$ -LIHF). The goal of the learner is to optimize her sequential actions to minimize the following dueling regret in the $\rho$ -LIHF problem:
+
+$$
+\operatorname {R e g} _ {T} := \mathbb {E} \left(\sum_ {t = 1} ^ {T} \sigma \left(\mu \left(a ^ {*}\right) - \mu \left(a _ {t}\right)\right) + \sigma \left(\mu \left(a ^ {*}\right) - \mu \left(a _ {t} ^ {\prime}\right)\right) - 1\right). \tag {1}
+$$
+
+This regret measure has been extensively studied in prior literature (Yue & Joachims, 2009; Komiyama et al., 2015; Kumagai, 2017; Saha & Gaillard, 2022). Other regret measures, such as the cumulative difference between optimal and obtained utility, are also considered. We discuss the equivalence of various regret measures in Lemma D.1.
+
+# 3 THE INTRINSIC LIMIT OF LIHF
+
+In this section, we study the intrinsic limit of learning from $\rho$ -Imperfect Human Feedback. We are particularly interested in understanding whether learning from this restricted version of corrupted feedback is fundamentally "easier" than learning from arbitrarily adversarial corruption. Somewhat surprisingly, the answer seems to be no, as illustrated by the following lower bound result.
+
+Theorem 3.1. There exists a $\rho$ -Imperfect Human Feedback (see Definition 2.1), strongly concave utility function $\mu$ , and link function $\sigma$ such that any learner has to suffer $Reg_{T} \geq \Omega\left(d\max \{\sqrt{T}, T^{\rho}\}\right)$ , even with the knowledge of $\rho$ .
+
+Notably, similar lower bound results have appeared in recent studies on adversarial corruption in bandits (Bogunovic et al., 2022), includingueling bandits (Agarwal et al., 2021; Di et al., 2024), showing the same lower bound $\Omega(d\max\{\sqrt{T}, T^{\rho}\})$ (though they often use $C \coloneqq \Theta(T^{\rho})$ to denote total corruption budget). However, a few key distinctions are worth noting. First, Theorem 3.1 presents a stronger result, showing that even when corruption decays over time, this structure (which defines our LIHF problem) does not make learning easier. Second, our corruption targets utility values, which is quite different from the corruption of comparison outcomes studied in (Agarwal et al., 2021; Di et al., 2024). In their case, corruption can fully flip comparison outcomes, which is critical for promoting sub-optimal arms in their lower bound proofs. However, such full control of the outcome is infeasible in our corruption of only the utility, which only slightly shifts the comparison probabilities since the scale of the corruption is also upper bounded by $\mathcal{O}(t^{\rho - 1})$ .
+
+The aforementioned difference from previous works (Agarwal et al., 2021; Di et al., 2024) also render our proof of Theorem 3.1 fundamentally different from (and much more involved than) their proofs. Specifically, due to limited and diminishing corruption power, the corruption in our LIHF problem are insufficient to completely "mask" the instance as one with a different sub-optimal arm, which is the key strategy in previous lower bound proofs. Thus, our proof has to leverage information-theoretic lower bounds of statistical distributions to understand how small-scale corruption at each round could influence the overall function estimation errors. Core of our proof is the follow lower bound result for a different, and intuitively easier, problem: the standard bandit setup with direct reward feedback shown in Lemma 3.1 below. We then convert this lower bound for direct reward feedback toueling feedback through a linear link function, i.e. $\sigma (x) = \frac{1 + x}{2}$ .
+
+Lemma 3.1 (Lower Bound under Direct Reward Feedback). Consider bandit learning with direct reward feedback, where reward $r(a) \coloneqq \mu(a) + \epsilon$ , $\epsilon$ follows standard normal distribution. The action space $\mathcal{A}$ is contained in a $d$ -dimensional unit ball, and $\mu$ is $\mu_{\theta}(a) \coloneqq \theta^{\top}a - \frac{1}{2}\|a\|_2^2$ , with $\theta \in \mathbb{R}^d$ , $\| \theta \|_2 \leq 1$ . Under $\rho$ -Imperfect Human Feedback (Definition 2.1), for any $T, d \leq \frac{1}{C_{\kappa}} T^{1 - \rho}$ , and for any learner, there exists a $\theta$ such that under direct reward feedback, even with the knowledge of $\rho^3$ , has to suffer regret $Reg_T \coloneqq \mathbb{E}\{\sum_{t=1}^{T} \mu_{\theta}(a^*) - \mu_{\theta}(a_t)\} \geq \frac{d}{4} C_{\kappa} T^\rho$ .
+
+Proof Sketch of Lemma 3.1. We aim to show that there exists a corruption strategy such that the regret incurred by any learner with direct reward feedback is no less than $\Omega(dT^{\rho})$ . The formulation of such a corruption strategy hinges on the observation that the regret incurred by the learner is bounded below by the sum of the Kullback-Leibler (KL) divergence between the distribution of the corrupted reward feedback $\hat{v}_t$ conditioned on different values of $\theta$ . Specifically, let $\theta$ be uniformly drawn from $\{-\beta, \beta\}^d$ , for some constant $\beta > 0$ . Given an action $a_t$ and index $i$ , conditioned on the value of the $i$ -th coordinate of $\theta$ , $\theta_i$ , if $\theta_i > 0$ , then $\hat{v}_t$ is
+
+$$
+\hat {v} _ {t} = \mu_ {\theta} (a _ {t}) + c _ {t} (a _ {t} | \theta_ {i} > 0) + \xi_ {a _ {t}} = \left(- \frac {1}{2} \| a _ {t} \| ^ {2} + \sum_ {j \neq i} \theta_ {j} a _ {t, j}\right) + \beta a _ {t, i} + c _ {t} (a _ {t} | \theta_ {i} > 0) + \xi .
+$$
+
+Conditioned on $\theta_{i} < 0$ , the corrupted reward feedback $\hat{v}_{t}^{\prime}$ is
+
+$$
+\hat {v} _ {t} ^ {\prime} = \mu_ {\theta} (a _ {t}) + c _ {t} (a _ {t} | \theta_ {i} < 0) + \xi_ {a _ {t}} = \left(- \frac {1}{2} \| a _ {t} \| ^ {2} + \sum_ {j \neq i} \theta_ {j} a _ {t, j}\right) - \beta a _ {t, i} + c _ {t} (a _ {t} | \theta_ {i} < 0) + \xi .
+$$
+
+The noise $\xi$ follows standard normal distribution. Consider the following corruption strategy which sets $c_{t}(a_{t}|\theta_{i} > 0) := -\beta a_{t,i}$ and $c_{t}(a_{t}|\theta_{i} < 0) := \beta a_{t,i}$ to minimize the KL divergence between $\hat{v}_{t}$ and $\hat{v}_{t}^{\prime}$ . Together with 1-strongly concavity of $\mu_{\theta}$ , we can establish $\mathbb{E}\left\{\sum_{t=1}^{T}\mu_{\theta}(a^{*}) - \mu_{\theta}(a_{t})\right\} \geq \frac{1}{2}\max\left\{\sum_{t=1}^{T}\left(\frac{C_{\kappa}T^{\rho-1}}{\beta} - \beta\right)^{2}, \frac{dT\beta^{2}}{2}\right\}$ . Since $d \leq \frac{1}{C_{\kappa}} T^{1-\rho}$ , we can set $\beta := \sqrt{C_{\kappa}} T^{\frac{\rho-1}{2}}$ to satisfy $\| \theta \|_2 \leq 1$ and to optimize the aforementioned lower bound. Then we obtain $\mathbb{E}\left\{\sum_{t=1}^{T}\mu_{\theta}(a^{*}) - \mu_{\theta}(a_{t})\right\} \geq dC_{\kappa}T^{\rho}/4$ . Notice that the corruption level each round is bounded by $\beta \| a_{t}\|_{\infty}$ . In the scenario when the radius of $\mathcal{A}$ is upper bounded by $\beta$ , the corruption budget each round is bounded by $C_{\kappa}t^{\rho-1}$ . It implies that the corruption is $\rho$ -Imperfect Human Feedback, completing the proof.
+
+Theorem 3.1 can be proved by converting the lower bound in Lemma 3.1 for direct reward feedback to dueling feedback (see Lemma C.1). Before concluding this section, we note that the strongly concave utility function in the lower bound of Theorem 3.1 is not necessary. In particular, Proposition 1 below shows that similar lower bound applies to linear utilities as well. This result happens to resolve an open problem posed by Yao et al. (2022) which studies a similar learning from imperfect user problem with linear utility and dueling feedback (they termed it the "learning from a learning user" problem), develops a no-regret learning algorithm for that setting, but left the lower bound as an open problem. Proposition 1 implies that their upper bound's dependence on $T$ is tight. We direct readers to Appendix C.1 and C.2 for proof details of Lemma 3.1 and Proposition 1.
+
+Proposition 1. There exists an LIHF instance with $\rho$ -Imperfect Human Feedback (Definition 2.1), linear user utility $\mu$ , and link function $\sigma$ , such that any learner has to suffer $Reg_{T} \geq \Omega(d \max \{\sqrt{T}, T^{\rho}\})$ , even with the knowledge of $\rho$ .
+
+# 4 AN EFFICIENT AND TIGHT $\rho$ -LIHF ALGORITHM
+
+In this section, we present a learning algorithm with a regret upper bound that matches the $\Omega(d\max\{\sqrt{T}, T^{\rho}\})$ lower bound, up to a logarithmic term, for the $\rho$ -LIHF setting discussed in Section 3. Our algorithm, Robustified Stochastic Mirror Descent for Imperfect Dueling (RoSMID), outlined in Algorithm 1, generalizes the Noisy Comparison-Based Stochastic Mirror Descent (NC-SMD) from Kumagai (2017). RoSMID employs a corruption-aware learning rate, $\eta_{\rho} := \sqrt{\log T} / (dT^{\max\{0.5,\rho\}})$ , to slow down the learning when the imperfection level $\rho$ is large, with NC-SMD being the special case with $\rho = 0$ . Although RoSMID may initially seem like a pretty natural extension of NC-SMD, the choice of optimal $\eta_{\rho}$ is in fact through careful derivation from a novel framework for analyzing continuous bandits under utility corruption. We conclude by demonstrating the applicability of this new framework to analyzing other gradient-based algorithms.
+
+# Theorem 4.1. RoSMID satisfies $Reg_{T} \leq \tilde{\mathcal{O}}(d \max\{\sqrt{T}, T^{\rho}\})$ for any $\rho$ -LIHF problem.
+
+The main technical contribution underlying this theorem is a novel framework for analyzing continuous dueling bandits with arbitrary strongly concave, yet possibly imperfect or corrupted utilities, which we believe has independent value. This framework not only enables a tight regret upper bound analysis, as shown in Theorem 4.1, but also allows us to easily derive regret guarantees for other dueling bandit algorithms under adversarial corruption, as demonstrated in Subsection 4.1. While recent works have explored corruption-robust regret analysis for dueling bandits with $K$ arms
+
+Algorithm 1: Robustified Stochastic Mirror Descent for Imperfect Dueling (RoSMID)
+Input: Learning rate $\eta_{\rho}:= \sqrt{\log T} / (dT^{\max\{0.5,\rho\}})$ , $\nu$ -self-concordant function $\mathcal{R}^4$ , time horizon $T$ , tuning parameters $\lambda \leq \frac{l_1^\sigma \alpha}{2}$ , $\phi \geq ((L_1^\sigma)^3 L_2^\sigma / \lambda)^2$
+1 Initialize $a_1 = \arg \min_{a \in A} \mathcal{R}(a)$
+2 for $t \in [T]$ do
+3 Update concordant function $\mathcal{R}_t(a) = \mathcal{R}(a) + \frac{\lambda \eta_{\rho}}{2} \sum_{i=1}^{t} \|a - a_i\|^2 + \phi \|a\|^2$
+4 Sample direction $u_t$ uniformly at random from a unit sphere $\mathbb{S}^d$
+5 Obtain corrupted feedback $\hat{\mathcal{F}}(a_t', a_t) \in \{0,1\}$ , for $a_t$ and $a_t' = a_t + \nabla^2 \mathcal{R}_t(a_t)^{-1/2} u_t$
+6 Compute the corrupted gradient: $\hat{g}_t = \hat{\mathcal{F}}(a_t', a_t) d \cdot \nabla^2 \mathcal{R}_t(a_t)^{1/2} \cdot u_t$
+7 Set $a_{t+1} = \nabla \mathcal{R}_t^{-1} (\nabla \mathcal{R}_t(a_t) - \eta_{\rho} \hat{g}_t)$
+Output: $a_{T+1}$
+
+(Saha & Gaillard, 2022) or linear utilities (Di et al., 2024), neither their algorithms nor analysis can be applied to our setting with arbitrary concave utilities in continuous action space.
+
+The full proof of Theorem 4.1 is quite involved and is deferred to Appendix D. Here, we outline the main ideas, divided into four key steps. Step 1-3 are applicable for analyzing continuous dueling bandits under any form of corruption, whereas last Step 4 is the only step that hinges on the decaying corruption level assumptions of $\rho$ -LIHF and is also the most involved and novel step.
+
+Proof Sketch. The proof of Theorem 4.1 is divided into four major steps.
+
+# Step 1: quantifying bias of gradient estimation in $\rho$ -LIHF
+
+Our proof starts from quantifying the bias of the gradient $\hat{g}_t$ caused by $\rho$ -Imperfect Human Feedback, as shown in the following Lemma 4.1.
+
+Lemma 4.1 (Corrupted Gradients Estimation). The gradient $\hat{g}_t$ in Line 6 of Algorithm 1 satisfies
+
+$$
+\mathbb {E} \left(\hat {g} _ {t} \mid a _ {t}\right) = \nabla \mid_ {a = a _ {t}} \bar {P} _ {t} (a) - \mathbb {E} \left(b _ {t} \mid a _ {t}\right).
+$$
+
+where $\bar{P}_t(a) := \mathbb{E}_{x \in \mathbb{B}}\left[\mathbb{P}(a_t \succ a + \nabla^2 R_t(a_t)^{-\frac{1}{2}}x)\right]$ (with $\mathbb{B}$ as the unit ball) is the smoothed probability that $a_t$ is preferred over any action $a$ , and $b_t = d\left(\mathbb{P}(a_t \succ a_t') - \hat{\mathbb{P}}(a_t \succ a_t')\right)\nabla^2\mathcal{R}_t(a_t)^{\frac{1}{2}}u_t$ .
+
+# Step 2: decomposing regret for dueling bandits into regret of decision and feedback error
+
+Core to our proof is a "regret decomposition" lemma below that upper bounds the regret by two parts: regret of sub-optimal decision making under uncertainty, referred as regret of decision (first term in equation 2), and regret due to corruption, referred as feedback error (second term in equation 2).
+
+Lemma 4.2 (Regret Decomposition for Dueling Bandits). The $Reg_{T}$ of Algorithm 1 satisfies:
+
+$$
+R e g _ {T} \leq \underbrace {\frac {C _ {0}}{\eta_ {\rho}} \log (T) + 8 d ^ {2} \eta_ {\rho} T + 2 L ^ {\mu} L _ {1} ^ {\sigma} R} _ {\text {R e g r e t o f D e c i s i o n}} + \underbrace {2 \mathbb {E} \left\{\sum_ {t = 1} ^ {T} b _ {t} ^ {\top} \left(a _ {t} - a _ {T} ^ {*}\right) \right\}} _ {\text {F e e d b a c k E r r o r}}, \tag {2}
+$$
+
+where $C_0 \coloneqq (2\nu + 4L_1^\sigma \kappa + 4R_2^\sigma (L^\mu)^2 + L^\mu L_1^\sigma \kappa) / \lambda$ , and $a_T^* \coloneqq \frac{1}{T} a_1 + (1 - \frac{1}{T})a^*$ .
+
+Similar regret decomposition has been shown to be useful for reinforcement learning which has direct reward feedback (Foster et al., 2023). However, to the best of our knowledge, Lemma 4.2 is the first to exhibit such a decomposition forueling feedback, which contains much sparser information than direct reward feedback as in classic RL or online learning. Hence the lemma may be of independent interest for future research onueling bandits under corruption or erroneous feedback.
+
+# Step 3: upper bounding the regret from feedback error
+
+Bounding the regret of decision term in equation 2 is standard. Thus, this step develops a novel upper bound for bounding the regret from feedback error, as shown below.
+
+Lemma 4.3 (Feedback Error). The feedback error term in equation 2 can be bounded as follows:
+
+$$
+\mathbb {E} \left\{\sum_ {t = 1} ^ {T} b _ {t} ^ {\top} (a _ {t} - a _ {T} ^ {*}) \right\} \leq C _ {1} d \sqrt {\eta_ {\rho}} \mathbb {E} \left\{\sum_ {t = 1} ^ {T} \sqrt {t} | c _ {t} (a _ {t}, a _ {t} ^ {\prime}) | \sqrt {\mu (a ^ {*}) - \mu (a _ {t})} \right\} + C _ {2} d T ^ {\rho} + 2 d \sqrt {\lambda} \sqrt {\eta_ {\rho} T},
+$$
+
+where $C_1 \coloneqq \sqrt{\frac{2\lambda(L^\sigma)^2}{\alpha}}$ , and $C_2 \coloneqq 2L^\sigma R\sqrt{\sup_{a\in\mathcal{A}}\lambda_{\max}(\nabla^2\mathcal{R}(a)) + 2\phi}$ .
+
+To our knowledge, such a bound is new for dueling bandits. The less common term in the bound is $\sqrt{\mu(a^{*}) - \mu(a_{t})}$ . It comes from the strong concavity of the utility function $\mu$ , which implies
+
+$$
+\langle b _ {t}, a _ {t} - a ^ {*} \rangle \leq \| b _ {t} \| _ {2} \| a _ {t} - a ^ {*} \| _ {2} \leq \| b _ {t} \| _ {2} \sqrt {\frac {2}{\alpha} (\mu (a ^ {*}) - \mu (a _ {t}))}.
+$$
+
+# Step 4: The iterative regret refinement analysis and resultant optimal learning rate
+
+Our last and also the most intriguing step is to pin down the regret upper bound. Given the bounds from previous steps, the only remaining term to upper bound is $\mathbb{E}\left\{\sum_{t=1}^{T} \sqrt{t} |c_t(a_t, a_t')| \sqrt{\mu(a^*) - \mu(a_t)}\right\}$ in Lemma 4.3. We can upper bound $\sqrt{t} |c_t(a_t, a_t')|$ by $C_\kappa t^{\rho - \frac{1}{2}}$ under $\rho$ -Imperfect Human Feedback assumption (this is the point where we start to need the decaying structure in Definition 2.1). This is a tricky question, since this term involving optimal action $a^*$ closely connects to the regret $\operatorname{Reg}_T$ itself (see equation 1). This is precisely the motivation for our analysis approach of "iterative regret refinement". Concretely, it turns out that a good upper bound for the term $A := \mathbb{E}\left(\sum_{t=1}^{T} \mu(a^*) - \mu(a_t)\right)$ can be leveraged to derive a good upper bound for term $B := \mathbb{E}\left\{\sum_{t=1}^{T} t^{\rho - \frac{1}{2}} \sqrt{\mu(a^*) - \mu(a_t)}\right\}$ , which can then be leveraged to derive a good upper bound for the regret $\operatorname{Reg}_T$ , which can be used to refine the original upper bound of term $A$ , at which point we can re-apply the above refinement process.
+
+Two key factors are essential for the iterative regret refinement mentioned above to result in a tight bound. The first step is to derive a good upper bound for term $B$ using term $A$ , which is shown in Lemma 4.4. The second step is to prove that this iterative refinement consistently improves the regret bound, eventually reaching a limit. This is demonstrated by Lemma 4.5. The choice of learning rate $\eta_{\rho} = \frac{\sqrt{\log T}}{dT^{\max\{1/2,\rho\}}}$ is crucial in the second step; in a sense, it is the only choice that converges to the tight regret upper bound $\tilde{\mathcal{O}}\left(d\max\{\sqrt{T},T^{\rho}\}\right)$ in the limit, rather than exploding the bound.
+
+Lemma 4.4. If $A = \mathbb{E}\left(\sum_{t=1}^{T}[\mu(a^{*}) - \mu(a_{t})]\right) \leq \mathcal{O}(T^{\frac{1}{2} + \psi})$ for some $\psi \in [0, \frac{1}{2})$ , then we must have $B = \mathbb{E}\left(\sum_{t=1}^{T}t^{\rho - \frac{1}{2}}\sqrt{\mu(a^{*}) - \mu(a_{t})}\right) \leq \mathcal{O}(T^{-\frac{1}{4} + \frac{\psi}{2} + \rho})$ .
+
+To prove Lemma 4.4, we first bound term $B$ by $\sum_{t=1}^{T} t^{\rho-1/2} \sqrt{\mathbb{E}[\mu(a^{*}) - \mu(a_{t})]}$ using the concavity of the square root function. The key novelty of our proof is to use the Abel's equation (Williams, 1963) to re-arrange the term $\sum_{t=1}^{T} t^{\rho-1/2} \sqrt{\mathbb{E}[\mu(a^{*}) - \mu(a_{t})]}$ and establish its connection with another term $C = \sum_{t=1}^{T} \sqrt{\mathbb{E}[\mu(a^{*}) - \mu(a_{t})]}$ . We finally connect term $C$ with the term $A$ in the lemma statement, by proving $\sum_{t=1}^{T} \sqrt{\mathbb{E}[\mu(a^{*}) - \mu(a_{t})]} \leq \mathcal{O}(T^{\frac{3}{4}+\frac{\psi}{2}})$ if $\mathbb{E}\left(\sum_{t=1}^{T} \mu(a^{*}) - \mu(a_{t})\right) \leq \mathcal{O}(T^{\frac{1}{2}+\psi})$ via concavity of square root. Together with the decay scale $t^{\rho-1}$ , which allows $t^{\rho-1} - (t+1)^{\rho-1} \leq t^{\rho-2}$ , we obtain the tight bound $\mathcal{O}(T^{-\frac{1}{4}+\frac{\psi}{2}+\rho})$ .
+
+Armed with Lemma 4.4, we can use it to prove the induction claim (Lemma 4.5). The challenge in this proof lies in identifying the constant $K$ , which must hold across all iterations, $k$ , of the analysis to ensure the bound remains stable and does not explode.
+
+Lemma 4.5 (Induction Claim). Consider $T > \sqrt{2L^{\mu}L_{1}^{\sigma}R}$ and $\eta_{\rho} = \frac{\sqrt{\log T}}{dT^{\max\{1/2,\rho\}}}$ . If $Reg_{T} \leq 144dK\sqrt{\log T} T^{\rho + \frac{3}{2^{k}}}$ for some integer $k$ , then we must also have
+
+\[
+\begin{array}{rcl}
+Reg_T & \leq & 144dK\sqrt{\log T} T^{\rho + \frac{\frac{3}{2} - \rho}{2^{k + 1}}}.\\
+& \max \left\{C_0, \frac{C_2C_\kappa}{\sqrt{\log T}}, (L^\sigma C_\kappa)^2, 2\sqrt{\lambda} RC_\kappa L^\sigma \right\}, & C_0 \text{ and } C_2 \text{ defined in Lemma 4.2 and 4.3 respectively,}
+\end{array}
+\]
+
+# 4.1 ADDITIONAL APPLICATIONS OF OUR REGRET ANALYSIS FRAMEWORK
+
+To showcase useful applications of the new regret analysis framework above for proving Theorem 4.1, in this subsection we employ the framework to study continuous dueling bandits under arbitrary and agnostic corruption — i.e., remove decaying constraints on $c_t$ and $\rho$ is unknown to the learner. We analyze natural variants of RoSIMD, which apply to strongly concave utilities, and the well-known algorithm Dueling Bandit Gradient Descent (DBGD) (Yue & Joachims, 2009), which apply to general concave utilities. The proofs of these results are direct applications of the analysis from Steps 1-3 outlined above (without Step 4, since it is the only one requiring knowledge of $\rho$ and decaying corruption). Additionally, we present these results to offer a set of principled benchmark algorithms for the experiments in Section 5. One thing to highlight is that our robustified algorithms retain the same computational complexity as the originals, ensuring added robustness without compromising efficiency. For further details, see Appendix G.1.
+
+Proposition 2 (Efficiency-Robustness Tradeoff in RoSMID). If the total corruption level satisfies $\sum_{t=1}^{T}|c_t(a_t,a_t')|\leq\mathcal{O}(T^\rho)$ , then for any $\alpha\in[\frac{1}{2},1)$ , if the utility function is strongly concave, for a sufficiently large round $T$ , by choosing learning rate $\eta=\frac{\sqrt{\log T}}{2d}T^{-\alpha}$
+
+1. (Robustness) RoSMID incurs $Reg_{T} \leq \tilde{\mathcal{O}}(dT^{\alpha} + \sqrt{d} T^{\frac{1}{2}(1 - \alpha) + \rho} + dT^{\rho})$ .
+2. (Efficiency) There exists a strongly concave utility function $\mu$ and a link function $\sigma$ such that $R e g_{T}$ suffered by RoSMID is at least $\Omega (T^{\alpha})$ in scenario without corruption.
+
+Proposition 3 (Efficiency-Robustness Tradeoff in DBGD). If the total corruption level satisfies $\sum_{t=1}^{T}|c_t(a_t,a_t')|\leq\mathcal{O}(T^\rho)$ , then for any $\alpha\in(0,\frac{1}{4}]$ , if utility function $\mu$ is generally concave, for a sufficiently large round $T$ , choosing $\gamma=\frac{R}{\sqrt{T}}$ and $\delta=\frac{\sqrt{2Rd}}{\sqrt{13L^{\sigma}L^{\mu}T^{\alpha}}}$ for DBGD
+
+1. (Robustness) $Reg_{T}$ incurred by DBGD satisfies $Reg_{T} \leq \mathcal{O}(\sqrt{d} T^{1 - \alpha} + \sqrt{d} T^{\alpha + \rho})$ .
+2. (Efficiency) There exists a linear utility function $\mu$ and a link function $\sigma$ such that $Reg_{T}$ suffered by DBGD is at least $\Omega\left(T^{1 - \alpha}\right)$ in scenario without corruption.
+
+Both propositions illustrate the tradeoff between learning efficiency and robustness to adversarial corruption, achieved through their tunable learning rate $\eta_{\rho}, \gamma, \delta$ (learning rate in DBGD is $\frac{\gamma\delta}{d}$ ; we direct reader to Algorithm 3 for detail). Specifically, greater tolerance for agnostic corruption (i.e., larger $\alpha$ in Proposition 2) results in worse regret in non-corrupt settings. A similar robustness-accuracy trade-off has been studied in classification problems with adversarial examples, both empirically (Tsipras et al., 2018) and theoretically (Zhang et al., 2019). However, to our knowledge, this is the first formal analysis of such a trade-off in online learning. While expanding the confidence region for UCB-type algorithms to handle agnostic corruption in linear contextual dueling bandits increases tolerance for corruption but worsens regret—sharing a similar idea of a trade-off (Di et al., 2023)—it's unclear if this approach necessarily reduces efficiency. In contrast, our work demonstrates that adjusting learning rates in gradient-based algorithms to enhance robustness against agnostic corruption inevitably decreases efficiency when no corruption is present. In particular, the efficiency statements in both propositions can be interpreted as algorithm-dependent lower bounds, concretely demonstrating that for certain problem instances, increasing robustness necessarily decreases the learning efficiency of the algorithm. In fact, the "efficiency-robustness tradeoff" is inherent under unknown adversarial attacks. Lemma E.1 in the appendix shows that algorithms that learn faster tend to be more vulnerable to unknown corruption. However, the nature of this tradeoff varies across different algorithms. It is a very intriguing and fundamental open question to study what the optimal tradeoff is under unknown adversarial corruption and how to achieve it.
+
+# 5 EXPERIMENTS
+
+In this section, we validate our theoretical analysis of RoSMID and DBGD under $\rho$ -Imperfect Human Feedback through simulations. We also compare their performance against two baseline algo
+
+rithms: Doubler and the heuristic algorithm, Sparring, proposed by Ailon et al. (2014). For Sparring, we use bandit gradient descent (Flaxman et al., 2005) as the black-box bandit algorithm. We direct readers to Appendix G for implementation details.
+
+Experiment Setup. We consider a standard experiment setup, which adopts a strongly concave utility $\mu_{\theta}(a) := \theta^{\top}a - \frac{1}{2}\|a\|_2^2$ , and a logistic link function $\sigma(x) = \frac{1}{1 + \exp(-x)}$ . We choose $d = 5$ and $T = 10^5$ . Our action space $\mathcal{A}$ is a $d$ -dimensional ball with radius $R = 10$ . The preference parameter $\theta$ is randomly sampled from the surface of $\mathcal{A}$ . In our problem setting, the optimal action $a^* = \theta$ and $\mu_{\theta}(a^*) = 50$ . We simulate $\rho$ -Imperfect Human Feedback for $\rho \in [0.5, 1]$ .
+
+Results and Discussion. Figure 1 presents a log-log plot of regret versus iteration, $t$ , which the order of regret in $T$ is represented by the slope of the line. Each line represents the average over five trials with different random seeds, and each line corresponds to a distinct value of $\rho$ . The shaded region indicates $\pm$ one standard deviation. In the legend, "o" denotes the estimated order of regret. We estimate it using least squares on the last $1\%$ of the data. Figure 1 supports Theorem 4.1, as for $\rho \in [0.5, 1)$ , the estimated slope is less than $\rho$ , suggesting that the choice of $\eta_{\rho} = \frac{\sqrt{\log T}}{dT^{\max\{1/2,\rho\}}}$ for RoSMID results in a regret bound of at most $\tilde{\mathcal{O}}(T^{\rho})$ .
+
+
+Figure 1: Robustness of RoS-MID for $\rho$ -LIHF
+
+Figure 2 compares the performance of our proposed algorithms, variants of DBGD and RoSMID, with two baseline algorithms, Sparring and Doubler, in the setting when $c_t$ is arbitrary and agnostic. We set the parameter $\alpha = 1/4$ for DBGD and $\alpha = 1/2$
+
+for RoSMID. When $\rho$ is unknown to the algorithms, these parameter choices enable DBGD and RoSMID to tolerate $\mathcal{O}(T^{3/4})$ levels of unknown corruption, since the slope estimates are less than 1, implying sublinear regret, aligning with our theoretical predictions. Experimentally, RoSMID demonstrates the best performance under strongly concave utility functions. Sparring performs comparably to RoSMID, despite being a heuristic approach without theoretical guarantees. In contrast, Doubler exhibits the worst performance, likely because its theoretical guarantees are only applicable to linear link functions, which differs from our experimental setup. We direct readers to Appendix G for experiment results with other choice of $\alpha$ for efficiency-robustness tradeoff.
+
+
+Figure 2: For each algorithm, we tested its performance under $\rho$ -Imperfect Human feedback with $\rho = 0.5, 0.6, 0.75$ . For each $\rho$ , we presented a line plot of the average regret over five simulations, accompanied by $\pm$ one standard deviation shown by the shaded region. In the legend, $o$ denotes the estimated line slope, calculated using least squares on the last $1\%$ of the data.
+
+# 6 CONCLUSION
+
+In conclusion, this paper enhances the understanding of continuous dueling bandits by addressing $\rho$ -Imperfect Human Feedback with concave utilities. We established fundamental regret lower bounds, introduced the RoSMID algorithm with nearly optimal performance, and developed a novel regret analysis framework that highlights the inherent efficiency-robustness trade-off in gradient-based algorithms. Our experimental results corroborate the theoretical predictions. A promising future direction is the development of an algorithm that achieves $\tilde{O}(d\sqrt{T} +dT^{\rho})$ regret for continuous dueling bandits with strongly concave utilities under arbitrary adversarial corruption. Additionally, incorporating contextual information to better model real-world scenarios could further enhance the applicability and robustness of these algorithms. We left these directions for future research.
+
+Acknowledgment. This work is supported by the AI2050 program at Schmidt Sciences (Grant G-24-66104), Army Research Office Award W911NF23-1-0030, and NSF Award CCF-2303372. Fan Yao conducted this research while he is visiting the University of Chicago.
+
+# REFERENCES
+
+Arpit Agarwal, Shivani Agarwal, and Prathamesh Patil. Stochastic dueling bandits with adversarial corruption. In Vitaly Feldman, Katrina Ligett, and Sivan Sabato (eds.), Proceedings of the 32nd International Conference on Algorithmic Learning Theory, volume 132 of Proceedings of Machine Learning Research, pp. 217-248. PMLR, 16-19 Mar 2021. URL https://proceedings.mlr.press/v132/agarwal21a.html.
+Nir Ailon, Thorsten Joachims, and Zohar Karnin. Reducing dueling bandits to cardinal bandits, 2014.
+Yuntao Bai, Andy Jones, Kamal Ndousse, Amanda Askell, Anna Chen, Nova DasSarma, Dawn Drain, Stanislav Fort, Deep Ganguli, Tom Henighan, et al. Training a helpful and harmless assistant with reinforcement learning from human feedback. arXiv preprint arXiv:2204.05862, 2022.
+Viktor Bengs, Róbert Busa-Fekete, Adil El Mesaoudi-Paul, and Eyke Hüllermeier. Preference-based online learning with dueling bandits: A survey. Journal of Machine Learning Research, 22(7): 1-108, 2021.
+Ilija Bogunovic, Arpan Losalka, Andreas Krause, and Jonathan Scarlett. Stochastic linear bandits robust to adversarial attacks, 2020.
+Ilija Bogunovic, Zihan Li, Andreas Krause, and Jonathan Scarlett. A robust phased elimination algorithm for corruption-tolerant gaussian process bandits, 2022.
+Stephen Casper, Xander Davies, Claudia Shi, Thomas Krendl Gilbert, Jérémy Scheurer, Javier Rando, Rachel Freedman, Tomasz Korbak, David Lindner, Pedro Freire, et al. Open problems and fundamental limitations of reinforcement learning from human feedback. Transactions on Machine Learning Research, 2023.
+Bangrui Chen and Peter I Frazier. *Dueling bandits with weak regret*. In International Conference on Machine Learning, pp. 731-739. PMLR, 2017.
+Haokun Chen, Xinyi Dai, Han Cai, Weinan Zhang, Xuejian Wang, Ruiming Tang, Yuzhou Zhang, and Yong Yu. Large-scale interactive recommendation with tree-structured policy gradient. In Proceedings of the AAAI conference on artificial intelligence, volume 33, pp. 3312-3320, 2019.
+Lili Chen, Kevin Lu, Aravind Rajeswaran, Kimin Lee, Aditya Grover, Misha Laskin, Pieter Abbeel, Aravind Srinivas, and Igor Mordatch. Decision transformer: Reinforcement learning via sequence modeling. Advances in neural information processing systems, 34:15084-15097, 2021.
+Jonathan D Cohen, Samuel M McClure, and Angela J Yu. Should i stay or should i go? how the human brain manages the trade-off between exploitation and exploration. Philosophical Transactions of the Royal Society B: Biological Sciences, 362(1481):933-942, 2007.
+Varsha Dani, Thomas P. Hayes, and Sham M. Kakade. Stochastic linear optimization under bandit feedback. In Annual Conference Computational Learning Theory, 2008. URL https://api.sementicscholar.org/CorpusID:9134969.
+Yash Deshpande and Andrea Montanari. Linear bandits in high dimension and recommendation systems, 2013.
+Qiwei Di, Tao Jin, Yue Wu, Heyang Zhao, Farzad Farnoud, and Quanquan Gu. Variance-aware regret bounds for stochastic contextual dueling bandits, 2023.
+Qiwei Di, Jiafan He, and Quanquan Gu. Nearly optimal algorithms for contextual dueling bandits from adversarial feedback. arXiv preprint arXiv:2404.10776, 2024.
+
+Abraham D Flaxman, Adam Tauman Kalai, and H Brendan McMahan. Online convex optimization in the bandit setting: gradient descent without a gradient. arXiv preprint cs/0408007, 2004.
+Abraham D. Flaxman, Adam Tauman Kalai, and H. Brendan McMahan. Online convex optimization in the bandit setting: gradient descent without a gradient. In Proceedings of the Sixteenth Annual ACM-SIAM Symposium on Discrete Algorithms, SODA '05, pp. 385-394, USA, 2005. Society for Industrial and Applied Mathematics. ISBN 0898715857.
+Dylan J. Foster, Sham M. Kakade, Jian Qian, and Alexander Rakhlin. The statistical complexity of interactive decision making, 2023.
+Anupam Gupta, Tomer Koren, and Kunal Talwar. Better algorithms for stochastic bandits with adversarial corruptions. In Alina Beygelzimer and Daniel Hsu (eds.), Proceedings of the Thirty-Second Conference on Learning Theory, volume 99 of Proceedings of Machine Learning Research, pp. 1562-1578. PMLR, 25-28 Jun 2019. URL https://proceedings.mlrpress/v99/gupta19a.html.
+Zeyu Han, Chao Gao, Jinyang Liu, Jeff Zhang, and Sai Qian Zhang. Parameter-efficient fine-tuning for large models: A comprehensive survey, 2024.
+Elad Hazan and Kfir Levy. Bandit convex optimization: Towards tight bounds. In Z. Ghahramani, M. Welling, C. Cortes, N. Lawrence, and K.Q. Weinberger (eds.), Advances in Neural Information Processing Systems, volume 27. Curran Associates, Inc., 2014. URL https://proceedings.neurips.cc/paper_files/paper/2014/file/c399862d3b9d6b76c8436e924a68c45b-Paper.pdf.
+Jiafan He, Dongruo Zhou, Tong Zhang, and Quanquan Gu. Nearly optimal algorithms for linear contextual bandits with adversarial corruptions, 2022.
+Nicole Immorlica, Jieming Mao, Aleksandrs Slivkins, and Zhiwei Steven Wu. Incentivizing exploration with selective data disclosure. In Proceedings of the 21st ACM Conference on Economics and Computation, pp. 647-648, 2020.
+Yue Kang, Cho-Jui Hsieh, and Thomas Chun Man Lee. Robust lipschitz bandits to adversarial corruptions. Advances in Neural Information Processing Systems, 36, 2024.
+Junpei Komiyama, Junya Honda, Hisashi Kashima, and Hiroshi Nakagawa. Regret lower bound and optimal algorithm in dueling bandit problem. In Conference on learning theory, pp. 1141-1154. PMLR, 2015.
+Wataru Kumagai. Regret analysis for continuous dueling bandit. Advances in Neural Information Processing Systems, 30, 2017.
+Chuang-Chieh Lin and Chi-Jen Lu. Efficient mechanisms for peer grading and dueling bandits. In Asian Conference on Machine Learning, pp. 740-755. PMLR, 2018.
+Thodoris Lykouris, Vahab Mirrokni, and Renato Paes Leme. Stochastic bandits robust to adversarial corruptions, 2018.
+Lucas Maystre and Matthias Grossglauer. Just sort it! a simple and effective approach to active preference learning. In International Conference on Machine Learning, pp. 2344-2353. PMLR, 2017.
+Luigi Montrucchio. Lipschitz continuous policy functions for strongly concave optimization problems. Journal of mathematical economics, 16(3):259-273, 1987.
+Richard A Posner. Rational choice, behavioral economics, and the law. StAn. l. reV., 50:1551, 1997.
+Pearl Pu, Li Chen, and Rong Hu. Evaluating recommender systems from the user's perspective: survey of the state of the art. User Modeling and User-Adapted Interaction, 22:317-355, 2012.
+Aadirupa Saha. Optimal algorithms for stochastic contextual preference bandits. Advances in Neural Information Processing Systems, 34:30050-30062, 2021.
+
+Aadirupa Saha and Pierre Gaillard. Versatile dueling bandits: Best-of-both world analyses for learning from relative preferences. In Kamalika Chaudhuri, Stefanie Jegelka, Le Song, Csaba Szepesvari, Gang Niu, and Sivan Sabato (eds.), Proceedings of the 39th International Conference on Machine Learning, volume 162 of Proceedings of Machine Learning Research, pp. 19011-19026. PMLR, 17-23 Jul 2022. URL https://proceedings.mlr.press/v162/saha22a.html.
+Aadirupa Saha, Tomer Koren, and Yishay Mansour. Dueling convex optimization with general preferences, 2022. URL https://arxiv.org/abs/2210.02562.
+Ohad Shamir. On the complexity of bandit and derivative-free stochastic convex optimization, 2013.
+Gerhard Sorger. On the sensitivity of optimal growth paths. Journal of Mathematical Economics, 24(4):353-369, 1995.
+Nisan Stiennon, Long Ouyang, Jeffrey Wu, Daniel Ziegler, Ryan Lowe, Chelsea Voss, Alec Radford, Dario Amodei, and Paul F Christiano. Learning to summarize with human feedback. Advances in Neural Information Processing Systems, 33:3008-3021, 2020.
+Dimitris Tsipras, Shibani Santurkar, Logan Engstrom, Alexander Turner, and Aleksander Madry. Robustness may be at odds with accuracy. In International Conference on Learning Representations, 2018.
+Alain Venditti. Strong concavity properties of indirect utility functions in multisector optimal growth models. Journal of Economic Theory, 74(2):349-367, 1997. ISSN 0022-0531. doi: https://doi.org/10.1006/jeth.1996.2267. URL https://www.sciencedirect.com/science/article/pii/S002205319692267X.
+Yuanyu Wan, Wei-Wei Tu, and Lijun Zhang. Online strongly convex optimization with unknown delays. Machine Learning, 111(3):871-893, 2022.
+Chaoqi Wang, Ziyu Ye, Zhe Feng, Ashwinkumar Badanidiyuru, and Haifeng Xu. Follow-ups also matter: Improving contextual bandits via post-serving contexts, 2023.
+Chen-Yu Wei, Christoph Dann, and Julian Zimmert. A model selection approach for corruption robust reinforcement learning. In International Conference on Algorithmic Learning Theory, pp. 1043-1096. PMLR, 2022.
+WE Williams. A class of integral equations. In Mathematical Proceedings of the Cambridge Philosophical Society, volume 59, pp. 589-597. Cambridge University Press, 1963.
+Robert C Wilson, Andra Geana, John M White, Elliot A Ludvig, and Jonathan D Cohen. Humans use directed and random exploration to solve the explore-exploit dilemma. Journal of experimental psychology: General, 143(6):2074, 2014.
+Wenjie Xu, Wenbin Wang, Yuning Jiang, Bratislav Svetozarevic, and Colin N Jones. Principled preferential bayesian optimization. arXiv preprint arXiv:2402.05367, 2024.
+Fan Yao, Chuanhao Li, Denis Nekipelov, Hongning Wang, and Haifeng Xu. Learning from a learning user for optimal recommendations. In International Conference on Machine Learning, pp. 25382-25406. PMLR, 2022.
+Yisong Yue and Thorsten Joachims. Interactively optimizing information retrieval systems as a dueling bandits problem. In International Conference on Machine Learning, 2009. URL https://api-semanticscholar.org/CorpusID:13141692.
+Hongyang Zhang, Yaodong Yu, Jiantao Jiao, Eric Xing, Laurent El Ghaoui, and Michael Jordan. Theoretically principled trade-off between robustness and accuracy. In International conference on machine learning, pp. 7472-7482. PMLR, 2019.
+Julian Zimmert and Yevgeny Seldin. Factored bandits. Advances in Neural Information Processing Systems, 31, 2018.
+Julian Zimmert and Yevgeny Seldin. Tsallis-inf: An optimal algorithm for stochastic and adversarial bandits. Journal of Machine Learning Research, 22(28):1-49, 2021. URL http://jmlr.org/papers/v22/19-753.html.
+
+# Appendix to Learning from Imperfect Human Feedback: A Tale from Corruption-Robust Dueling
+
+A DISCUSSION ON THE GENERALITY OF MODELING ASSUMPTIONS
+
+The assumptions of a continuous action space are standard in the online convex optimization literature (Flaxman et al., 2004; Yue & Joachims, 2009; Shamir, 2013; Kumagai, 2017). Moreover, they are particularly natural for today's preference learning for recommendation systems since languages, texts, videos are mostly processed as embedding vectors which are continuous by nature. We assumed strong concave utility functions. This is standard due to at least two reasons. First, there is already a rich literature studying online optimization of strongly convex or concave functions, and our work subscribes to that rich literature (Shamir, 2013; Kumagai, 2017; Wan et al., 2022; Saha et al., 2022). Second, strongly concave utilities functions capture essential properties like diminishing marginal returns and risk-averse behavior. These characteristics align closely with real-world scenarios in economics, behavioral studies, and decision-making processes. Strongly concave functions are frequently utilized in economic literature for modeling utility functions such as the "indirect utility function" (Montrucchio, 1987; Sorger, 1995; Venditti, 1997), which represents the maximum utility a consumer can achieve based on a specific income level and set of prices. Our assumption on the link function aligns with those in Kumagai (2017) but is slightly stronger than those in Yue & Joachims (2009). Nevertheless, it encompasses many natural link functions, including the sigmoid function, the cumulative Gaussian distribution function, and the linear function, more general than merely sigmoid link functions (Maystre & Grossglauer, 2017; Saha, 2021; Xu et al., 2024) or linear link function (Ailon et al., 2014; Chen & Frazier, 2017; Zimmert & Seldin, 2018; Lin & Lu, 2018), as assumed in some earlier works.
+
+# B CHALLENGES IN DEVELOPING ROBUST ALGORITHMS FOR CONTINUOUS DUELING BANDITS WITH GENEALLY CONCAVE UTILITY UNDER CORRUPTION INDUCED BY STRONG ADVERSARY
+
+There is a line of work that studies bandits under corruption by a weak adversary (Lykouris et al., 2018; Gupta et al., 2019; Agarwal et al., 2021; Zimmert & Seldin, 2021; Saha & Gaillard, 2022; Wei et al., 2022), where the corruption is introduced before observing the agent's actions. This research develops efficient algorithms that achieve sublinear regret without requiring prior knowledge of the total corruption. Specifically, for corruption induced by a weak adversary, Wei et al. (2022) adopts the idea of model selection and introduces a robust framework called Corruption-Robustness through Balancing and Elimination (COBE). This framework allows an algorithm designed for a known corruption level to be adapted for scenarios with an unknown corruption level. Notably, in the case of weak adversaries, Zimmert & Seldin (2021); Saha & Gaillard (2022) develop "best-of both-world" algorithms, which achieve optimal performance under both begin and corrupted settings.
+
+However, for corruption induced by a strong adversary—where the corruption occurs after observing the agent's actions (the scenario considered in our setting)—it may not be possible to develop a best-of both-world algorithm. This limitation arises because, for any algorithm that does not know the total corruption, there exists a problem instance where the algorithm suffers linear regret (Bogunovic et al., 2020; Kang et al., 2024). To achieve sublinear regret in such settings, it is crucial for the algorithm to have precise knowledge of the total corruption or at least an accurate estimation of its upper bound.
+
+For cases with known corruption, nearly optimal algorithms are proposed for various settings, including stochastic linear bandits in discrete action spaces (Bogunovic et al., 2020), Gaussian process bandits (Bogunovic et al., 2022), linear contextual bandits (He et al., 2022), Lipschitz bandits (Kang et al., 2024), and linear contextual dueling bandits (Di et al., 2024). These approaches typically rely on phase elimination techniques to eliminate suboptimal arms or Upper Confidence Bound (UCB)-based algorithms to pull optimal arms with high probability. The success of these methods heavily depends on constructing precise utility estimates to guide decision-making.
+
+However, for learning from nonlinear utility, constructing utility estimates underueling feedback is a very challenging problem, as only preferential (directional) information is available. This limited
+
+information motivates the exploration of a new approach: robust gradient-based algorithms. Zimmert & Seldin (2021) and Saha & Gaillard (2022) utilize robust stochastic mirror descent algorithms to update the probability distribution for sampling $K$ arms. However, it is difficult to efficiently generalize this design to continuous action spaces, as it requires transforming the probability vector into a probability density function and efficiently managing its updates and approximations. While Yue & Joachims (2009) and Kumagai (2017) exploitsueling bandit gradient descent and stochastic mirror descent and achieves sublinear regret for continuousueling bandits, their performance under corruption remains unexplored. It is a nontrivial question and still remains an interesting open problem of developing robust and computationally efficient algorithms for continuousueling bandits with generally concave utility functions under corruption induced by strong adversaries.
+
+# C PROOFS FOR THEOREM 3.1
+
+Theorem (Theorem 3.1 restated). There exists a $\rho$ -Imperfect Human Feedback (see Definition 2.1), strongly concave utility function $\mu$ , and link function $\sigma$ such that any learner has to suffer $Reg_{T} \geq \Omega\left(d \max \{\sqrt{T}, T^{\rho}\}\right)$ , even with the knowledge of $\rho$ .
+
+Proof. Before showing the regret lower bound proof for Theorem 3.1, let's first establish the following Lemma C.1, which builds the connection between regret incurred under bandit reward feedback andueling feedback. This proof is inspired by Theorem 6 in Yao et al. (2022). To prove Lemma C.1, in addition to $\mathrm{Reg}_T$ , we introduce a new metric to measure the performance of algorithm underueling feedback, which we coin functional regret $\mathrm{Reg}_T^{\mathrm{FO}}$ , defined as follows.
+
+$$
+\operatorname {R e g} _ {T} ^ {\mathrm {F O}} := \mathbb {E} \left\{\sum_ {t = 1} ^ {T} \mu \left(a ^ {*}\right) - \mu \left(a _ {t}\right) + \mu \left(a ^ {*}\right) - \mu \left(a _ {t} ^ {\prime}\right) \right\}. \tag {3}
+$$
+
+Lemma C.1. Given a utility function $\mu$ , if the regret lower bound for algorithm with bandit reward feedback is $\overline{Reg}$ , then any learner with dueling feedback has to suffer regret $Reg_T^{FO} \geq 2\overline{Reg}$ .
+
+Proof. We prove our claim by contradiction. Let $(a_{0,t}, a_{1,t})$ be the pair of recommendations at round $t$ . Suppose $\mathrm{Reg}_T^{\mathrm{FO}} < 2\overline{\mathrm{Reg}}$ . As a result, at least one of the following inequality must hold:
+
+$$
+\mathbb {E} \left\{\sum_ {t = 1} ^ {T} \mu \left(a ^ {*}\right) - \mu \left(a _ {0, t}\right) \right\} \leq \overline {{\operatorname {R e g}}} \tag {4}
+$$
+
+$$
+\mathbb {E} \left\{\sum_ {t = 1} ^ {T} \mu \left(a ^ {*}\right) - \mu \left(a _ {1, t}\right) \right\} \leq \overline {{\operatorname {R e g}}}
+$$
+
+Consider a principal who can observe the interaction between a user and the learner $\mathcal{L}$ , then we can construct two algorithms $\mathcal{L}_0$ and $\mathcal{L}_1$ as follows.
+
+# Algorithm 2: Algorithm $\mathcal{L}_i$
+
+Input: the time horizon $T$
+1 for $t\leq T$ do
+2 Call the learner $\mathcal{L}$ to generate two candidates $(a_{0,t},a_{1,t})$ . Present $(a_{0,t},a_{1,t})$ to user and received the feedback.
+4 Return user feedback to the learner $\mathcal{L}$ and update $\mathcal{L}$
+Output: the sequential decision $\{a_{i,t}\}_{t = 1}^{T}$
+
+From equation 4, we know that at least one of $\{\mathcal{L}_0,\mathcal{L}_1\}$ achieves an expected regret lower than Reg. However, we know all algorithms with bandit feedback with utility function $\mu$ has to occur regret at least Reg, contradiction. Therefore, Lemma C.1 must hold, which completes the proof.
+
+Next, we prove Theorem 3.1. First, consider the case $\rho \leq 0.5$ . Given that the utility function is strongly concave, by applying Lemma C.2, we have $\overline{\mathrm{Reg}} = 0.02\min \{T,d\sqrt{T}\}$ . From Lemma C.1,
+
+we also obtain $\mathrm{Reg}_T^{\mathrm{FO}}\geq 0.04\min \{T,d\sqrt{T}\}$ . Using the linear link function $\sigma (x) = \frac{1}{2} +\frac{1}{2} x$ , it follows that $\mathrm{Reg}_T\geq 0.02\min \{T,d\sqrt{T}\} \geq \Omega (d\max \{\sqrt{T},T^\rho \})$ , completing the proof.
+
+Lemma C.2 (Theorem 6 in (Shamir, 2013)). Let the number of rounds $T$ be fixed. Then for any learner, there exists a quadratic function of the form $\mu_{\theta}(a) \coloneqq \theta^{\top}a - \frac{1}{2}\| a\|^{2}$ which is minimized at $\theta$ and $\| \theta \|_2 \leq 0.5$ such that
+
+$$
+\mathbb {E} \left(\sum_ {t = 1} ^ {T} \mu_ {\theta} \left(a ^ {*}\right) - \mu_ {\theta} \left(a _ {t}\right)\right) \geq 0. 0 2 \min \left\{T, d \sqrt {T} \right\}.
+$$
+
+Now, let's focus on the scenario when $\rho > 0.5$ . In essence, we want to extend Lemma C.2 to the scenario in presence of adversarial corruption induced by $\rho$ -Imperfect Human Feedback. If we can show the regret lower bound can be generalized to $\Omega(dT^{\rho})$ , then applying the same technique which uses Lemma C.1 to connect regret suffered under bandit reward feedback and regret suffered under dueling feedback and choose linear link function to connect $\mathrm{Reg}_T^{\mathrm{FO}}$ and $\mathrm{Reg}_T$ , we will get the desired regret lower bound. The extension of Lemma C.2 is proven at section C.1.
+
+# C.1 PROOF FOR LEMMA 3.1
+
+Lemma (Lemma 3.1 restated). Consider bandit learning with direct reward feedback, where reward $r(a) \coloneqq \mu(a) + \epsilon$ , $\epsilon$ follows standard normal distribution. The action space $\mathcal{A}$ is contained in a $d$ -dimensional unit ball, and $\mu$ is $\mu_{\theta}(a) \coloneqq \theta^{\top}a - \frac{1}{2}\|a\|_2^2$ , with $\theta \in \mathbb{R}^d$ , $\|\theta\|_2 \leq 1$ . Under $\rho$ -Imperfect Human Feedback (Definition 2.1), for any $T$ , $d \leq \frac{1}{C_{\kappa}} T^{1-\rho}$ , and for any learner, there exists a $\theta$ such that under direct reward feedback, even with the knowledge of $\rho$ , has to suffer regret $Reg_T \coloneqq \mathbb{E}\{\sum_{t=1}^T \mu_{\theta}(a^*) - \mu_{\theta}(a_t)\} \geq \frac{d}{4} C_{\kappa} T^\rho$ .
+
+Proof. To prove Lemma 3.1, we aim to prove that there exists a corruption strategy such that the regret incurred by any learner with imperfect dueling feedback is not less than $\Omega(dT^{\rho})$ . The formulation of such a corruption strategy hinges on the observation that when the utility function $\mu_{\theta}$ adopts the quadratic form parameterized by $\theta$ , specifically $\mu_{\theta}(a) = \theta^{\top}a - \frac{1}{2}\|a\|_2^2$ , which is both smooth and strongly concave, then the regret incurred by the learner is bounded below by the sum of the Kullback-Leibler (KL) divergence between the distribution of the corrupted reward feedback obtained at round $t$ , denoted $\hat{v}_t$ , $t \in [T]$ , conditioned on different possible values of $\theta$ . (see Lemma C.4). Assume that $\theta$ is uniformly drawn from $\{-\beta, \beta\}^d$ , given an action $a_t$ , conditioned on $\theta_i > 0$ , the corrupted reward feedback $\hat{v}_t$ is
+
+$$
+\hat {v} _ {t} = \mu_ {\theta} \left(a _ {t}\right) + c _ {t} \left(a _ {t} \mid \theta_ {i} > 0\right) + \xi = \underbrace {\left(- \frac {1}{2} \left\| a _ {t} \right\| ^ {2} + \sum_ {j \neq i} \theta_ {j} a _ {t , j}\right) + \beta a _ {t , i} + c _ {t} \left(a _ {t} \mid \theta_ {i} > 0\right)} _ {\mu_ {1}} + \xi . \tag {5}
+$$
+
+Conditioned on $\theta_{i} < 0$ , the corrupted reward feedback $\hat{v}_{t}$ is
+
+$$
+\hat {v} _ {t} = \mu_ {\theta} \left(a _ {t}\right) + c _ {t} \left(a _ {t} \mid \theta_ {i} < 0\right) + \xi = \underbrace {\left(- \frac {1}{2} \| a _ {t} \| ^ {2} + \sum_ {j \neq i} \theta_ {j} a _ {t , j}\right) - \beta a _ {t , i} + c _ {t} \left(a _ {t} \mid \theta_ {i} < 0\right)} _ {\mu_ {2}} + \xi . \tag {6}
+$$
+
+We use $c_{t}(a_{t}|\theta_{i} > 0)$ and $c_{t}(a_{t}|\theta_{i} < 0)$ to empathize the fact that the magnitude and sign of corruption can be dependent on $\theta$ . $\xi$ follows a standard Gaussian distribution. Therefore, $\hat{v}_{t}$ in Equation 5 follows $\mathrm{N}(\mu_1,1)$ . $\hat{v}_{t}$ in Equation 6 follows $\mathrm{N}(\mu_2,1)$ . By using Lemma C.3, we have
+
+$$
+\mathrm {D} _ {\mathrm {K L}} (\mathrm {N} (\mu_ {1}, 1) | | \mathrm {N} (\mu_ {2}, 1)) = (\mu_ {1} - \mu_ {2}) ^ {2}.
+$$
+
+Lemma C.3 (KL Divergence for Normal Distribution). Let $N(\mu, \sigma^2)$ represent a Gaussian distribution variable with mean $\mu$ and variance $\sigma^2$ . Then
+
+$$
+D _ {K L} (N (\mu_ {1}, \sigma^ {2}) | | N (\mu_ {2}, \sigma^ {2})) = \frac {(\mu_ {1} - \mu_ {2}) ^ {2}}{2 \sigma^ {2}}.
+$$
+
+To optimize the lower bound in Lemma C.4, the adversary selects $c_{t}(a_{t}|\theta_{i} > 0)$ and $c_{t}(a_{t}|\theta_{i} < 0)$ to minimize the difference between $\mu_{1}$ and $\mu_{2}$ . Consider the following corruption strategy: when $\theta_{i} > 0$ , set $c_{t}(a_{t}|\theta_{i} > 0) = -\beta a_{t,i}$ ; when $\theta_{i} < 0$ , set $c_{t}(a_{t}|\theta_{i} < 0) = \beta a_{t,i}$ . This strategy ensures that $\mu_{1} = \mu_{2}$ .
+
+Next step is to determine the value of $\beta$ . Notice that the corruption budget is $C_{\kappa}T^{\rho}$ . To execute the corruption strategy described above, it requires
+
+$$
+\sum_ {t = 1} ^ {T} \left| c _ {t} \left(a _ {t}\right) \right| \leq \beta \sum_ {t = 1} ^ {T} \left\| a _ {t} \right\| _ {\infty} \leq C _ {\kappa} T ^ {\rho}. \tag {7}
+$$
+
+Therefore, by exploiting the fact that $\mu_{\theta}$ is 1-strongly concave, we establish another lower bound for the regret by
+
+$$
+\begin{array}{l} \mathbb {E} \left\{\sum_ {t = 1} ^ {T} \mu_ {\theta} \left(a ^ {*}\right) - \mu_ {\theta} \left(a _ {t}\right) \right\} \geq \frac {1}{2} \mathbb {E} \left\{\sum_ {t = 1} ^ {T} \| a _ {t} - \theta \| _ {2} ^ {2} \right\} \\ \geq \frac {1}{2} \mathbb {E} \left\{\sum_ {t = 1} ^ {T} \left(\left\| a _ {t} \right\| _ {\infty} - \beta\right) ^ {2} \right\} \\ \geq \frac {1}{2} \sum_ {t = 1} ^ {T} \left(C _ {\kappa} T ^ {\rho - 1} / \beta - \beta\right) ^ {2}. \\ \end{array}
+$$
+
+Since $|a_{t,i} - \theta_i| \geq ||a_{t,i}| - \beta|$ for all $i$ , we obtain the second inequality. By utilizing the corruption constraint equation 7, we derive the last inequality, which is minimized when $\| a_t\|_\infty = \frac{C_\kappa T^{\rho - 1}}{\beta}$ for all $t$ . Together with Lemma C.4, we have:
+
+$$
+\mathbb {E} \left\{\sum_ {t = 1} ^ {T} \mu_ {\theta} \left(a ^ {*}\right) - \mu_ {\theta} \left(a _ {t}\right) \right\} \geq \frac {1}{2} \max \left\{\sum_ {t = 1} ^ {T} \left(C _ {\kappa} T ^ {\rho - 1} / \beta - \beta\right) ^ {2}, \frac {d T \beta^ {2}}{2} \right\}. \tag {8}
+$$
+
+We select $\beta$ to optimize the lower bound in Equation equation 8. Since $d \leq \frac{1}{C_{\kappa}} T^{1 - \rho}$ , we can set $\beta = \sqrt{C_{\kappa}} T^{\frac{\rho}{2} - \frac{1}{2}}$ to satisfy $\| \theta \|_2 \leq 1$ . Then we obtain $\mathbb{E}\left\{\sum_{t=1}^{T} \mu_\theta(a^*) - \mu_\theta(a_t)\right\} \geq dC_{\kappa}T^\rho / 4$ . Notice that the corruption level each round is bounded by $\beta \| a_t \|_\infty$ . Consider the scenario when the radius of the action space $\mathcal{A}$ is upper bounded by $\beta$ , then the corruption budget each round is bounded by $C_{\kappa} t^{-1 + \rho}$ , which satisfies the definition of $\rho$ -Imperfect Human Feedback, which completes the proof.
+
+Lemma C.4. Let's consider the utility function $\mu_{\theta}(a) := \theta^{\top}a - \frac{1}{2}\| a\|_2^2$ . Let $\hat{v}_1, \hat{v}_2, \dots, \hat{v}_T$ be a sequence of corrupted reward feedback obtained by a learner. Then there exists a $\theta \in \mathbb{R}^d$ , $\|\theta\|_2 \leq 1$ , uniformly drawn from $\{-\beta, \beta\}^d$ , such that the regret suffered by the learner is
+
+$$
+\mathbb {E} \left\{\sum_ {t = 1} ^ {T} \mu_ {\theta} (a ^ {*}) - \mu_ {\theta} (a _ {t}) \right\} \geq \frac {d T \beta^ {2}}{4} \left(1 - \sqrt {\frac {1}{d} \sum_ {i = 1} ^ {d} \sum_ {t = 1} ^ {T} \mathbb {D} _ {t , i}}\right).
+$$
+
+$\mathbb{D}_{t,i} \coloneqq \sup_{\{\theta_j\}_{j \neq i}} D_{KL}\left(\mathbb{P}(\hat{v}_t|\theta_i > 0, \{\theta_j\}_{j \neq i}, \{\hat{v}_l\}_{l=1}^{t-l})||\mathbb{P}(\hat{v}_t|\theta_i < 0, \{\theta_j\}_{j \neq i}, \{\hat{v}_l\}_{l=1}^{t-l})\right)$ . $D_{KL}$ is the KL divergence between two distributions.
+
+Proof. Using the similar argument in Shamir (2013), assume that the learner is deterministic: $a_{t}$ is a deterministic function of the realized corrupted reward feedback $\hat{v}_{1}, \hat{v}_{2}, \dots, \hat{v}_{t-1}$ at $a_{1}, a_{2}, \dots, a_{t-1}$ . This assumption is without loss of generality, since any random learners can be seen as a randomization over deterministic learning algorithms. Thus a lower bound which holds uniformly for any deterministic learner would also hold over a randomization. To lower bound equation 9, we use Lemma C.5, which relates this to the question of how informative are the query values (as measured by Kullback-Leibler divergence) for determining the sign of $\theta$ 's coordinates. Intuitively, the more similar the query values are, the smaller is the KL divergence and the harder it is to distinguish the true sign of $\theta_{i}$ , leading to a larger lower bound. In addition, we are facing a powerful adversary who
+
+has the complete knowledge of the problem and is able to add corruption on the query value to make they are even more similar, which resulting a even smaller KL divergence, consequently, an even larger lower bound. Let $\bar{a}_T \coloneqq \frac{1}{T} \sum_{t=1}^{T} a_t$ represent the average action, we have
+
+$$
+\begin{array}{l} \mathbb {E} \left\{\sum_ {t = 1} ^ {T} \mu_ {\theta} \left(a ^ {*}\right) - \mu_ {\theta} \left(a _ {t}\right) \right\} = T \mathbb {E} \left\{\frac {1}{T} \sum_ {t = 1} ^ {T} \mu_ {\theta} \left(a ^ {*}\right) - \mu_ {\theta} \left(a _ {t}\right) \right\} \\ \geq T \mathbb {E} \left(\mu_ {\theta} \left(a ^ {*}\right) - \mu_ {\theta} (\bar {a} _ {T})\right) \\ \geq T \mathbb {E} \left(\frac {1}{2} \| \bar {a} _ {T} - \theta \| ^ {2}\right) \\ = T \mathbb {E} \left(\frac {1}{2} \sum_ {i = 1} ^ {d} \left(\bar {a} _ {i} - \theta_ {i}\right) ^ {2}\right) \\ \geq \mathbb {E} \left(\frac {\beta^ {2} T}{2} \sum_ {i = 1} ^ {d} \mathbb {I} _ {\bar {a} _ {i} \theta_ {i} < 0}\right) \tag {9} \\ \geq \frac {d T \beta^ {2}}{4} \left(1 - \sqrt {\frac {1}{d} \sum_ {i = 1} ^ {d} \sum_ {t = 1} ^ {T} \mathbb {D} _ {t , i}}\right). \\ \end{array}
+$$
+
+We get the second inequality by using the fact that $\mu_{\theta}$ is 1-strongly concave. We get the last inequality by using Lemma C.5, which completes the proof.
+
+Lemma C.5 (Lemma 4 in (Shamir, 2013)). Let $\theta$ be a random vector, none of those coordinates is supported on $0$ . Let $\hat{v}_1, \hat{v}_2, \ldots, \hat{v}_T$ be a sequence of values obtained by a deterministic learner returning a point $\bar{a}_T$ (so that the action $a_t$ is a deterministic function of $\hat{v}_1, \ldots, \hat{v}_{t-1}$ and $\bar{a}_T$ is a deterministic function of $\hat{v}_1, \ldots, \hat{v}_T$ ). Then we have
+
+$$
+\mathbb {E} \left(\sum_ {i = 1} ^ {d} \mathbb {I} _ {\bar {a} _ {i} \theta_ {i}}\right) \geq \frac {d}{2} \left(1 - \sqrt {\frac {1}{d} \sum_ {i = 1} ^ {d} \sum_ {t = 1} ^ {T} \mathbb {D} _ {t , i}}\right),
+$$
+
+where $\mathbb{D}_{t,i} = \sup_{\{\theta_j\}_{j\neq i}}D_{KL}\left(\mathbb{P}(\hat{v}_t|\theta_i > 0,\{\theta_j\}_{j\neq i},\{\hat{v}_l\}_{l = 1}^{t - l})||\mathbb{P}(\hat{v}_t|\theta_i < 0,\{\theta_j\}_{j\neq i},\{\hat{v}_l\}_{l = 1}^{t - l})\right)$ , $D_{KL}$ represents the KL divergence between two distributions.
+
+
+
+
+
+# C.2 PROOF FOR PROPOSITION 1:
+
+Proposition (Proposition 1 restated). There exists an LIHF instance with $\rho$ -Imperfect Human Feedback (Definition 2.1), linear user utility $\mu$ , and link function $\sigma$ , such that any learner has to suffer $Reg_{T} \geq \Omega(d \max\{\sqrt{T}, T^{\rho}\})$ , even with the knowledge of $\rho$ .
+
+Proof. The proof structure is very similar to the lower bound proof in Theorem 3.1. We start by discussing the value of $\rho$ . Consider the scenario when $\rho \leq 0.5$ . Applying Lemma C.6 and C.1 together with linear link function, we have $\mathrm{Reg}_T \geq \Omega(d \max \{\sqrt{T}, T^\rho\})$ , which completes the proof.
+
+Lemma C.6 ((Dani et al., 2008)). Let $\mathcal{A} = [-1,1]^d$ and $\Theta = [-T^{-\frac{1}{2}}, T^{-\frac{1}{2}}]^d$ . Consider the linear reward function $r_t = \theta^\top A_t + \epsilon_t$ , $\epsilon_t$ is independent standard Gaussian noise. Then for any learner, there exists a vector $\theta \in \Theta$ such that
+
+$$
+R e g _ {T} (\mathcal {A}, \theta) \geq \frac {\exp (- 2)}{8} d \sqrt {T}.
+$$
+
+Now, let's focus on the scenario when $\rho > 0.5$ and the essence is to extend Lemma C.6 to the scenario in presence of $\rho$ -Imperfect Human Feedback, which is shown in Lemma C.7
+
+Lemma C.7. Assume that the action space $\mathcal{A} \subset [-1,1]^d$ . Given $\rho$ -Imperfect Human Feedback (Definition 2.1), for stochastic linear bandit, there exists a $\theta \in [-C_{\kappa}T^{\rho - 1}, C_{\kappa}T^{\rho - 1}]^d$ such that any learner even with the knowledge of $\rho$ has to suffer regret no less than $\frac{d}{8} C_{\kappa}T^{\rho}$ .
+
+Proof. The proof extends Lemma C.6 to a scenario in presence of corruption. We want to construct a parameter family and a corruption strategy such that for all algorithms, it will occur at least $\Omega(dT^{\rho})$ regret. Consider the action set $\mathcal{A} \in [-1, 1]^d$ and $\Theta = \{-\beta, \beta\}^d$ . For any learner, we can lower bound its regret by
+
+$$
+\begin{array}{l} \operatorname {R e g} _ {T} (\mathcal {A}, \theta) = \mathbb {E} _ {\theta} \left[ \sum_ {t = 1} ^ {T} \sum_ {i = 1} ^ {d} (\operatorname {s i g n} (\theta_ {i}) - a _ {t i}) \theta_ {i} \right] \\ \geq \beta \sum_ {i = 1} ^ {d} \mathbb {E} _ {\theta} \left[ \sum_ {t = 1} ^ {T} \mathbb {I} \{\operatorname {s i g n} \left(a _ {t i}\right) \neq \operatorname {s i g n} \left(\theta_ {i}\right) \} \right] \\ \geq \frac {T \beta}{2} \sum_ {i = 1} ^ {d} \mathbb {P} _ {\theta} \left(\sum_ {t = 1} ^ {T} \mathbb {I} \{\operatorname {s i g n} \left(a _ {t i}\right) \neq \operatorname {s i g n} \left(\theta_ {i}\right) \} \geq \frac {T}{2}\right) \\ \end{array}
+$$
+
+Let's denote
+
+$$
+p _ {\theta_ {i}} = \mathbb {P} _ {\theta} \left(\sum_ {t = 1} ^ {T} \mathbb {I} \{\operatorname {s i g n} \left(a _ {t i}\right) \neq \operatorname {s i g n} \left(\theta_ {i}\right) \} \geq \frac {T}{2}\right)
+$$
+
+Let $i \in [d]$ and $\theta \in \Theta$ be fixed, and let $\theta_j' = \theta_j$ , for $j \neq i$ and $\theta_i' = -\theta_i$ . Then using Lemma C.8, we have
+
+$$
+p _ {\theta_ {i}} + p _ {\theta_ {i} ^ {\prime}} \geq \frac {1}{2} \exp \left(- \mathbb {E} \left[ \sum_ {t = 1} ^ {T} \mathrm {D} _ {\mathrm {K L}} \left(P _ {a _ {t}}, P _ {a _ {t}} ^ {\prime}\right) \right]\right).
+$$
+
+$P_{a_t}$ is the distribution of corrupted reward observed by the learner after playing action $a_t$ when reward parameter is $\theta$ . Similarly, $P_{a_t}'$ is the distribution of corrupted observed by the learner after playing action $a_t$ when the reward parameter is $\theta'$ .
+
+Lemma C.8 (Bretagnolle-Huber inequality). Let $\mathbb{P}$ and $\mathbb{Q}$ be probability measures on the same measurable space $(\Omega, \mathcal{F})$ . Let $A \in \mathcal{F}$ be any arbitrary event and $A^c$ is the complement of $A$ . Then we have
+
+$$
+\mathbb {P} (A) + \mathbb {Q} \left(A ^ {c}\right) \geq \frac {1}{2} \exp \left(- D _ {K L} (\mathbb {P}, \mathbb {Q})\right). \tag {10}
+$$
+
+In presence of adversarial corruption, for $\theta$ , the corrupted reward is
+
+$$
+\hat {r} _ {t} = \sum_ {j \neq i} a _ {t j} \theta_ {j} + a _ {t i} \theta_ {i} + c _ {t} \left(a _ {t} | \theta\right) + \epsilon_ {t}. \tag {11}
+$$
+
+For $\theta^{\prime}$ , we have
+
+$$
+\hat {r} _ {t} = \sum_ {j \neq i} a _ {t j} \theta_ {j} - a _ {t i} \theta_ {i} + c _ {t} \left(a _ {t} \mid \theta^ {\prime}\right) + \epsilon_ {t}. \tag {12}
+$$
+
+Consider the corruption strategy such that $c_{t}(a_{t}|\theta) = -a_{t,i}\theta_{i}$ in equation 11 and $c_{t}(a_{t}|\theta^{\prime}) = a_{t,i}\theta_{i}$ in equation 12. This is achievable since we assume the adversary has complete knowledge of the problem instance. By doing so, the corrupted reward $\hat{r}_t$ are from the same distribution regardless whether the preference parameter is $\theta$ or $\theta^{\prime}$ . This is because $\theta$ and $\theta^{\prime}$ only differs in the $i$ -th coordinate with the magnitude $\beta$ , and this difference could be masked by the corruption, resulting in $\mathbb{E}\left[\sum_{t=1}^{T}D_{\mathrm{KL}}(P_{a_t},P_{a_t}')\right] = 0$ , which makes it indistinguishable by the learner. Notice that executing such a corruption strategy requires total corruption budget
+
+$$
+\sum_ {t = 1} ^ {T} \left| c _ {t} \left(a _ {t}\right) \right| \leq \beta \sum_ {t = 1} ^ {T} \left\| a _ {t} \right\| _ {\infty} \leq C _ {\kappa} T ^ {\rho}. \tag {13}
+$$
+
+Choose $\beta = C_{\kappa}T^{\rho -1}$ , Equation equation 13 holds. Therefore, we have
+
+$$
+p _ {\theta_ {i}} + p _ {\theta_ {i} ^ {\prime}} \geq \frac {1}{2}.
+$$
+
+Applying an "averaging hammer" over all $\theta \in \Theta$ , which satisfies $|\Theta| = 2^d$ , we get
+
+$$
+\sum_ {\theta \in \Theta} \frac {1}{| \Theta |} \sum_ {i = 1} ^ {d} p _ {\theta_ {i}} = \frac {1}{| \Theta |} \sum_ {i = 1} ^ {d} \sum_ {\theta \in \Theta} p _ {\theta_ {i}} \geq \frac {d}{4}.
+$$
+
+This implies that there exists a $\theta \in \Theta$ such that $\sum_{i=1}^{d} p_{\theta_i} \geq \frac{d}{4}$ . Therefore we have
+
+$$
+\operatorname {R e g} _ {T} (\mathcal {A}, \theta) \geq \frac {d C _ {\kappa}}{8} T ^ {\rho},
+$$
+
+which completes the proof. We want to highlight that the corruption level each round $|c_{t}(a_{t})|$ is bounded by $\beta \| a_{t}\|_{\infty} \leq C_{\kappa}T^{\rho -1} \leq C_{\kappa}t^{\rho -1}, \forall t$ , satisfying definition of $\rho$ -Imperfect Human Feedback.
+
+
+
+# D PROOF FOR THEOREM 4.1
+
+Theorem (Theorem 4.1 restated). RoSMID satisfies $Reg_{T} \leq \tilde{\mathcal{O}}(d\max\{\sqrt{T}, T^{\rho}\})$ for any $\rho$ -LIHF problem.
+
+Proof. At the beginning of the proof, we formally define self-concordance (see Definition D.1). The input, $\nu$ -self-concordant function $\mathcal{R}$ , serves as a regularizer in RoSMID (see Algorithm 1).
+
+Definition D.1. (Self-concordance.) A function $\mathcal{R} : \operatorname{int}(\mathcal{A}) \to \mathbb{R}$ is self-concordant if it satisfies
+
+1. $\mathcal{R}$ is three times continuously differentiable, convex, and approaches infinity along any sequence of points approaching the boundary of int(A).
+2. For every $h \in \mathbb{R}^d$ and $x \in \text{int}(\mathcal{A})$ , $|\nabla^3\mathcal{R}(x)[h,h,h]| \leq 2(h^\top\nabla^2\mathcal{R}(x)h)^{\frac{3}{2}}$ holds, where $|\nabla^3\mathcal{R}(x)[h,h,h] := \frac{\partial^3\mathcal{R}}{\partial t_1\partial t_2\partial t_3}(x + t_1h + t_2h + t_3h)|_{t_1 = t_2 = t_3 = 0}$ .
+
+In addition to these two conditions, if for every $h \in \mathbb{R}^d$ and $x \in \operatorname{int}(\mathcal{A})$ , $|\nabla \mathcal{R}(x)^\top h| \leq \nu^{\frac{1}{2}}(h^\top \nabla^2 \mathcal{R}(x)h)^{\frac{1}{2}}$ for a positive real number $\nu$ , $\mathcal{R}$ is $\nu$ -self-concordant.
+
+Additionally, we remind the reader of the standard assumptions (Yue & Joachims, 2009; Kumagai, 2017) used in our analysis.
+
+1. the action set $\mathcal{A}$ is a convex compact set that contains the origin, has non-empty interior, and is contained in a $d$ -dimensional ball of radius $R$ ;
+2. the utility function $\mu : \mathcal{A} \to \mathbb{R}$ is strongly concave and twice-differentiable. The following constants are useful for our algorithm analysis: $\mu$ is $L^{\mu}$ -Lipschitz, $\alpha$ -strongly concave, $\kappa$ -smooth, bounded $R^{\mu} \coloneqq \sup_{a,a'} \mu(a) - \mu(a')$ , and $a^{*} \coloneqq \arg \max_{a \in \mathcal{A}} \mu(a)$ is the unique optimal within $\mathcal{A}$ ;
+3. the link function $\sigma : \mathbb{R} \to [0,1]$ is smooth, rotation-symmetric (i.e. $\sigma(x) = 1 - \sigma(-x)$ ) and concave for any $x \geq 0$ . For the ease of analysis: let $l_1^\sigma$ [resp. $L_1^\sigma$ ] denote the lower [resp. upper] bound of the first-order derivative of $\sigma$ . $\sigma$ is $L^{\sigma}$ -Lipschitz and its second-order derivative $\sigma''$ is $L_2^\sigma$ -Lipschitz and upper bounded by $R_2^\sigma$ .
+
+Under these assumption, Lemma D.1 implies $\mathrm{Reg}_T$ defined in equation 1 and $\mathrm{Reg}_T^{\mathrm{FO}}$ defined in equation 3 has the same order.
+
+Lemma D.1 (Lemma 12 in Kumagai (2017)). With $Reg_T^{FO}$ defined in equation 3, we have
+
+$$
+\frac {R e g _ {T}}{L _ {1} ^ {\sigma}} \leq R e g _ {T} ^ {F O} \leq \frac {R e g _ {T}}{l _ {1} ^ {\sigma}}. \tag {14}
+$$
+
+In the following, we show the proof. The main proof can be divided into four key steps. Step 1 is natural, which quantifies the bias in gradient estimation by RoSMID due imperfect feedback from corrupted utilities. Building on this, Step 2 develops a regret decomposition lemma forueling bandits under corruption, decomposing the regret into two components: regret from sub-optimal decisions and regret from feedback error. Techniques from previous analyses of continuousueling bandits handle the sub-optimal decision regret, thus in Step 3, we focus on deriving new techniques to bound the regret from feedback error, a unique challenge in our setting. We identify a tight upper bound for this error. Finally, Step 4, the only step relying on the decaying corruption level in $\rho$ -imperfect human feedback, uses this assumption, along with the carefully chosen learning rate $\eta_{\rho}$ and an iterative regret refinement process, to ensure the tightness of the analysis in Step 3, thus completing the proof.
+
+# Step 1: quantifying bias of gradient estimation in $\rho$ -LIHF
+
+Our proof starts from quantifying the bias of the gradient $\hat{g}_t$ caused by $\rho$ -imperfect human feedback, as shown in the following Lemma 4.1.
+
+Lemma (Lemma 4.1 restated). The gradient $\hat{g}_t$ in Line 6 of Algorithm 1 satisfies
+
+$$
+\mathbb {E} \left(\hat {g} _ {t} \mid a _ {t}\right) = \nabla_ {a = a _ {t}} \bar {P} _ {t} (a) - \mathbb {E} \left(b _ {t} \mid a _ {t}\right).
+$$
+
+where $\bar{P}_t(a) := \mathbb{E}_{x \in \mathbb{B}}\left[\mathbb{P}(a_t \succ a + \nabla^2 R_t(a_t)^{-\frac{1}{2}} x)\right]$ (with $\mathbb{B}$ as the unit ball) is the smoothed probability that $a_t$ is preferred over any action $a$ , and $b_t = d\left(\mathbb{P}(a_t \succ a_t') - \hat{\mathbb{P}}(a_t \succ a_t')\right) \nabla^2 \mathcal{R}_t(a_t)^{\frac{1}{2}} u_t$ .
+
+Proof. If we do not have corruption (i.e. the probability for observing noisy comparative feedback $\mathcal{F}(a, a') = 1$ is based on true cost difference $\mu(a) - \mu(a')$ ), then the uncorrupted gradient $g_t \coloneqq \mathcal{F}(a_t', a_t) d\nabla^2 \mathcal{R}_t(a_t)^{1/2} u_t$ should be an unbiased estimate of $\nabla \bar{P}_t(a_t)$ , i.e.
+
+$$
+\mathbb {E} \left(g _ {t} \mid a _ {t}\right) = \nabla \bar {P} _ {t} (a _ {t}).
+$$
+
+We use $\nabla \bar{P}_t(a_t)$ as a shorthand of $\nabla|_{a=a_t} \bar{P}_t(a)$ . We use $P_t(a)$ as a shorthand of $P_t(a) := \sigma(\mu(a_t) - \mu(a))$ equivalent to $\mathbb{P}(a_t \succ a)$ , and $\hat{P}_t(a) := \sigma(\mu(a_t) - \mu(a) + c_t(a_t, a_t'))$ , equivalent to $\hat{\mathbb{P}}(a_t \succ a)$ under our modelling assumption. The proof is similar to Lemma 2.1 in Flaxman et al. (2005). Using the Law of total expectation, we have
+
+$$
+\begin{array}{l} \mathbb {E} \left(g _ {t} \mid a _ {t}\right) = \mathbb {E} _ {u _ {t}} \left[ \mathbb {E} \left(g _ {t} \mid a _ {t}, u _ {t}\right) \right] \\ = \mathbb {E} _ {u _ {t}} \left(d \mathbb {E} \left(P _ {t} \left(a _ {t} + \nabla^ {2} \mathcal {R} _ {t} \left(a _ {t}\right) ^ {- \frac {1}{2}} u _ {t}\right) \nabla^ {2} \mathcal {R} _ {t} \left(a _ {t}\right) ^ {\frac {1}{2}} u _ {t} \mid a _ {t}, u _ {t}\right)\right) \\ = d \mathbb {E} \left(P _ {t} \left(a _ {t} + \nabla^ {2} \mathcal {R} _ {t} \left(a _ {t}\right) ^ {- \frac {1}{2}} u _ {t}\right) \nabla^ {2} \mathcal {R} _ {t} \left(a _ {t}\right) ^ {\frac {1}{2}} u _ {t} \mid a _ {t}\right) \\ = \nabla \mathbb {E} _ {x \in \mathbb {B}} \left(P _ {t} \left(a _ {t} + \nabla^ {2} \mathcal {R} _ {t} \left(a _ {t}\right) ^ {- \frac {1}{2}} x \mid a _ {t}\right)\right) \\ = \nabla \bar {P} _ {t} (a _ {t}). \\ \end{array}
+$$
+
+We get the second inequality by using the definition of $\mathcal{F}(a_t', a_t)$ . We use the Stroke's Theorem to get the second last equality. The gradient which we get to perform gradient descent $\hat{g}_t$ is corrupted. If we let $a_t' = a_t + \nabla^2 \mathcal{R}_t(a_t)^{-\frac{1}{2}} u_t$ , we have
+
+$$
+\begin{array}{l} \mathbb {E} \left(\hat {g} _ {t} \mid a _ {t}\right) = \mathbb {E} _ {u _ {t}} \left(\mathbb {E} \left(\hat {g} _ {t} \mid a _ {t}, u _ {t}\right)\right) \\ = \mathbb {E} _ {u _ {t}} \left(d \mathbb {E} (\hat {P} _ {t} (a _ {t} ^ {\prime}) \nabla^ {2} \mathcal {R} _ {t} (a _ {t}) ^ {\frac {1}{2}} u _ {t} | a _ {t}, u _ {t})\right) \\ = d \mathbb {E} \left(\hat {P} _ {t} \left(a _ {t} ^ {\prime}\right) \nabla^ {2} \mathcal {R} _ {t} \left(a _ {t}\right) ^ {\frac {1}{2}} u _ {t} \mid a _ {t}\right) \\ = d \mathbb {E} \left(\left[ P _ {t} \left(a _ {t} ^ {\prime}\right) + \hat {P} _ {t} \left(a _ {t} ^ {\prime}\right) - P _ {t} \left(a _ {t} ^ {\prime}\right) \right] \nabla^ {2} R _ {t} \left(a _ {t}\right) ^ {\frac {1}{2}} u _ {t} \mid a _ {t}\right) \\ = \nabla \mathbb {E} _ {x \in \mathbb {B}} \left(P _ {t} \left(a _ {t} + \nabla^ {2} \mathcal {R} _ {t} \left(a _ {t}\right) ^ {- \frac {1}{2}} x \mid a _ {t}\right)\right) + d \mathbb {E} \left[ \left(\hat {P} _ {t} \left(a _ {t} ^ {\prime}\right) - P _ {t} \left(a _ {t} ^ {\prime}\right)\right) \nabla^ {2} \mathcal {R} _ {t} \left(a _ {t}\right) ^ {\frac {1}{2}} u _ {t} \mid a _ {t} \right] \\ = \nabla \bar {P} _ {t} (a _ {t}) + d \mathbb {E} \left[ \left(\hat {P} _ {t} \left(a _ {t} ^ {\prime}\right) - P _ {t} \left(a _ {t} ^ {\prime}\right)\right) \nabla^ {2} \mathcal {R} _ {t} \left(a _ {t}\right) ^ {\frac {1}{2}} u _ {t} | a _ {t} \right] \\ = \mathbb {E} (g _ {t} | a _ {t}) + d \mathbb {E} \left[ \left(\hat {P} _ {t} (a _ {t} ^ {\prime}) - P _ {t} (a _ {t} ^ {\prime})\right) \nabla^ {2} \mathcal {R} _ {t} (a _ {t}) ^ {\frac {1}{2}} u _ {t} | a _ {t} \right]. \\ \end{array}
+$$
+
+We get the second last equality by using the fact that $g_{t}$ is unbiased, which we proved earlier. If we defined $b_{t}$ as
+
+$$
+b _ {t} := d \Big (P _ {t} (a _ {t} + \nabla^ {2} \mathcal {R} _ {t} (a _ {t}) ^ {- \frac {1}{2}} u _ {t}) - \hat {P} _ {t} (a _ {t} + \nabla^ {2} \mathcal {R} _ {t} (a _ {t}) ^ {- \frac {1}{2}} u _ {t}) \Big) \nabla^ {2} \mathcal {R} _ {t} (a _ {t}) ^ {\frac {1}{2}} u _ {t},
+$$
+
+we get
+
+$$
+\mathbb {E} \left(g _ {t} \mid a _ {t}\right) = \mathbb {E} \left(\hat {g} _ {t} \mid a _ {t}\right) + \mathbb {E} \left[ b _ {t} \mid a _ {t} \right].
+$$
+
+
+
+# Step 2: decomposing regret for dueling bandits into regret of decision and feedback error
+
+Core to our proof is a "regret decomposition" lemma below that upper bounds the regret by two parts: regret of sub-optimal decision making under uncertainty, referred as regret of decision (first term in equation 2), and feedback error (second term in equation 2).
+
+Lemma (Lemma 4.2 restated). The Reg $_T$ of Algorithm 1 satisfies:
+
+$$
+R e g _ {T} \leq \underbrace {\frac {C _ {0}}{\eta_ {\rho}} \log (T) + 8 d ^ {2} \eta_ {\rho} T + 2 L ^ {\mu} L _ {1} ^ {\sigma} R} _ {R e g r e t o f D e c i s i o n} + \underbrace {2 \mathbb {E} \left\{\sum_ {t = 1} ^ {T} b _ {t} ^ {\top} (a _ {t} - a _ {T} ^ {*}) \right\}} _ {F e e d b a c k E r r o r},
+$$
+
+where $C_0 \coloneqq (2\nu + 4L_1^\sigma \kappa + 4R_2^\sigma (L^\mu)^2 + L^\mu L_1^\sigma \kappa) / \lambda$ , and $a_T^* \coloneqq \frac{1}{T} a_1 + (1 - \frac{1}{T})a^*$ .
+
+Proof. The cornerstone of the analysis below is to separate the impact of $b_{t}$ from the total regret.
+
+$$
+\begin{array}{l} \operatorname {R e g} _ {T} \leq 2 \mathbb {E} \left[ \sum_ {t = 1} ^ {T} \left(P _ {t} \left(a _ {t}\right) - P _ {t} \left(a _ {T} ^ {*}\right)\right) \right] + \frac {L ^ {\mu} L _ {1} ^ {\sigma} \kappa}{\lambda \eta_ {\rho}} + 2 L ^ {\mu} L _ {1} ^ {\sigma} R \\ \leq 2 \left(\mathbb {E} \left\{\sum_ {t = 1} ^ {T} \left(\bar {P} _ {t} \left(a _ {t}\right) - \bar {P} _ {t} \left(a _ {T} ^ {*}\right)\right) \right\} + \mathbb {E} \left\{\sum_ {t = 1} ^ {T} \left(P _ {t} \left(a _ {t}\right) - \bar {P} _ {t} \left(a _ {t}\right)\right) \right\} + \mathbb {E} \left\{\sum_ {t = 1} ^ {T} \left(\bar {P} _ {t} \left(a _ {T} ^ {*}\right) - P _ {t} \left(a _ {T} ^ {*}\right)\right) \right\}\right) + \frac {L ^ {\mu} L _ {1} ^ {\sigma} \kappa}{\lambda \eta_ {\rho}} + 2 L ^ {\mu} L _ {1} ^ {\sigma} R \\ \leq 2 \mathbb {E} \left\{\sum_ {t = 1} ^ {T} \left(\bar {P} _ {t} \left(a _ {t}\right) - \bar {P} _ {t} \left(a _ {T} ^ {*}\right)\right) \right\} + \frac {4 L _ {1} ^ {\sigma} \kappa + 4 R _ {2} ^ {\sigma} \left(L ^ {\mu}\right) ^ {2} + L ^ {\mu} L _ {1} ^ {\sigma} \kappa}{\lambda \eta_ {\rho}} \log T + 2 L ^ {\mu} L _ {1} ^ {\sigma} R. \\ \end{array}
+$$
+
+We get the first inequality by using Lemma D.2. We get the last inequality by because
+
+$$
+\bar {P} _ {t} (a) - P _ {t} (a) \leq \frac {L _ {1} ^ {\sigma} \kappa + R _ {2} ^ {\sigma} (L ^ {\mu}) ^ {2}}{2} \| \nabla^ {2} \mathcal {R} _ {t} (a _ {t}) ^ {- \frac {1}{2}} u _ {t} \| ^ {2} \leq \frac {L _ {1} ^ {\sigma} \kappa + R _ {2} ^ {\sigma} (L ^ {\mu}) ^ {2}}{\lambda \eta_ {\rho} t},
+$$
+
+and
+
+$$
+\mathbb {E} \left\{\sum_ {t = 1} ^ {T} \left(P _ {t} \left(a _ {t}\right) - P _ {t} \left(a _ {T} ^ {*}\right)\right) \right\} \leq \mathbb {E} \left\{\sum_ {t = 1} ^ {T} \left(\bar {P} _ {t} \left(a _ {t}\right) - \bar {P} _ {t} \left(a _ {T} ^ {*}\right)\right) \right\} + 2 \frac {L _ {1} ^ {\sigma} \kappa + R _ {2} ^ {\sigma} \left(L ^ {\mu}\right) ^ {2}}{\lambda \eta_ {\rho}} \log T.
+$$
+
+Lemma D.2 (Lemma 5 in Kumagai (2017)).
+
+$$
+R e g _ {T} \leq 2 \mathbb {E} \left[ \sum_ {t = 1} ^ {T} \left(P _ {t} \left(a _ {t}\right) - P _ {t} \left(a _ {T} ^ {*}\right)\right) \right] + \frac {L ^ {\mu} L _ {1} ^ {\sigma} \kappa}{\lambda \eta_ {\rho}} + 2 L ^ {\mu} L _ {1} ^ {\sigma} R.
+$$
+
+Then it remains to bound $\mathbb{E}\{\sum_{t=1}^{T} \bar{P}_t(a_t) - \bar{P}_t(a_T^*)\}$ . And we have the following.
+
+$$
+\begin{array}{l} \mathbb {E} \left\{\bar {P} _ {t} \left(a _ {t}\right) - \bar {P} _ {t} \left(a _ {T} ^ {*}\right) \right\} \leq \mathbb {E} \left[ \nabla \hat {P} _ {t} ^ {\top} \left(a _ {t}\right) \left(a _ {t} - a _ {T} ^ {*}\right) - \frac {L _ {1} ^ {\sigma} \alpha}{4} \| a _ {t} - a _ {T} ^ {*} \| ^ {2} \right] \\ = \mathbb {E} \left[ g _ {t} ^ {\top} \left(a _ {t} - a _ {T} ^ {*}\right) - \frac {L _ {1} ^ {\sigma} \alpha}{4} \| a _ {t} - a _ {T} ^ {*} \| ^ {2} \right] \\ = \mathbb {E} \left[ \left(\hat {g} _ {t} + b _ {t}\right) ^ {\top} \left(a _ {t} - a _ {T} ^ {*}\right) - \frac {L _ {1} ^ {\sigma} \alpha}{4} \| a _ {t} - a _ {T} ^ {*} \| ^ {2} \right] \\ = \mathbb {E} \left[ \hat {g} _ {t} ^ {\top} (a _ {t} - a _ {T} ^ {*}) - \frac {L _ {1} ^ {\sigma} \alpha}{4} \| a _ {t} - a _ {T} ^ {*} \| ^ {2} \right] + \mathbb {E} \{b _ {t} ^ {\top} (a _ {t} - a _ {T} ^ {*}) \}, \\ \end{array}
+$$
+
+where the first and second equality is resulted from Lemma 4.1. Using the definition of $a_{t+1}$ in Algorithm 1, we have
+
+$$
+\nabla \mathcal {R} _ {t} (a _ {t + 1}) - \nabla \mathcal {R} _ {t} (a _ {t}) = \eta_ {\rho} \hat {g} _ {t}.
+$$
+
+Therefore we have
+
+$$
+\begin{array}{l} \mathbb {E} \left[ \hat {g} _ {t} ^ {\top} (a _ {t} - a _ {T} ^ {*}) - \frac {L _ {1} ^ {\sigma} \alpha}{4} \| a _ {t} - a _ {T} ^ {*} \| ^ {2} \right] = \frac {1}{\eta_ {\rho}} \mathbb {E} \left[ (\nabla \mathcal {R} _ {t} (a _ {t + 1}) - \nabla \mathcal {R} _ {t} (a _ {t})) ^ {\top} (a _ {t} - a _ {T} ^ {*}) - \frac {L _ {1} ^ {\sigma} \alpha \eta_ {\rho}}{4} \| a _ {t} - a _ {T} ^ {*} \| ^ {2} \right] \\ = \frac {1}{\eta_ {\rho}} \mathbb {E} \left[ D _ {\mathcal {R} _ {t}} (a _ {T} ^ {*}, a _ {t}) + D _ {\mathcal {R}} (a _ {t}, a _ {t + 1}) - D _ {\mathcal {R} _ {t}} (a _ {T} ^ {*}, a _ {t + 1}) - \frac {L _ {1} ^ {\sigma} \alpha \eta_ {\rho}}{4} \| a _ {t} - a _ {T} ^ {*} \| ^ {2} \right]. \\ \end{array}
+$$
+
+$D_{\mathcal{R}}(a,b)$ is the Bregman divergence associated with $\mathcal{R}$ , defined by
+
+$$
+D _ {\mathcal {R}} (a, b) = \mathcal {R} (a) - \mathcal {R} (b) - \nabla \mathcal {R} (b) ^ {\top} (a - b).
+$$
+
+Then we can get equation 15 by using Lemma D.3, D.4, D.5.
+
+$$
+\mathbb {E} \left\{\sum_ {t = 1} ^ {T} \left(\bar {P} _ {t} \left(a _ {t}\right) - \bar {P} _ {t} \left(a _ {T} ^ {*}\right)\right) \right\} \leq \frac {\nu \log (T)}{\eta_ {\rho}} + 4 d ^ {2} \eta_ {\rho} T + \mathbb {E} \left\{\sum_ {t = 1} ^ {T} b _ {t} ^ {\top} \left(a _ {t} - a _ {T} ^ {*}\right) \right\}. \tag {15}
+$$
+
+Lemma D.3 (Lemma 10 in Kumagai (2017)). Let $\mathcal{R}_t^* (a) = \sup_{x\in \mathbb{R}^d}x^\top a - \mathcal{R}_t(a)$ denote the Frenchel dual of $\mathcal{R}_t$ . Then we have
+
+$$
+\sum_ {t = 1} ^ {T} \mathbb {E} \left[ \hat {g} _ {t} ^ {\top} (a _ {t} - a _ {T} ^ {*}) - \frac {L _ {1} ^ {\sigma} \alpha}{4} \| a _ {t} - a _ {T} ^ {*} \| ^ {2} \right] \leq \frac {1}{\eta_ {\rho}} \left(\mathcal {R} (a _ {T} ^ {*}) - \mathcal {R} (a _ {1}) + \mathbb {E} \left[ \sum_ {t = 1} ^ {T} D _ {\mathcal {R} _ {t} ^ {*}} (\nabla \mathcal {R} _ {t} (a _ {t}) - \eta_ {\rho} \hat {g} _ {t}, \nabla \mathcal {R} _ {t} (a _ {t})) \right]\right).
+$$
+
+Lemma D.4 (Lemma 11 in Kumagai (2017)). When $\eta_{\rho} \leq \frac{1}{2d}$ , we have
+
+$$
+D _ {\mathcal {R} _ {t} ^ {*}} \left(\nabla \mathcal {R} _ {t} (a _ {t}) - \eta_ {\rho} \hat {g} _ {t}, \nabla \mathcal {R} _ {t} (a _ {t})\right) \leq 4 d ^ {2} \eta_ {\rho} ^ {2}.
+$$
+
+Lemma D.5 (Lemma 4 in Hazan & Levy (2014)). $\mathcal{R}(a_T^*) - \mathcal{R}(a_1) \leq \nu \log(T)$ .
+
+If we let $C_0 \coloneqq (2\nu + 4L_1^\sigma \kappa + 4R_2^\sigma (L^\mu)^2 + L^\mu L_1^\sigma \kappa) / \lambda$ , we have
+
+$$
+\begin{array}{l} \operatorname {R e g} _ {T} \leq \frac {2 \nu \log (T)}{\eta_ {\rho}} + 8 d ^ {2} \eta_ {\rho} T + 2 \mathbb {E} \left\{\sum_ {t = 1} ^ {T} b _ {t} ^ {\top} \left(a _ {t} - a _ {T} ^ {*}\right) \right\} + \frac {4 L _ {1} ^ {\sigma} \kappa + 4 R _ {2} ^ {\sigma} \left(L ^ {\mu}\right) ^ {2} + L ^ {\mu} L _ {1} ^ {\sigma} \kappa}{\lambda \eta_ {\rho}} \log T + 2 L ^ {\mu} L _ {1} ^ {\sigma} R \\ = \underbrace {\frac {C _ {0}}{\eta_ {\rho}} \log (T) + 8 d ^ {2} \eta_ {\rho} T + 2 L ^ {\mu} L _ {1} ^ {\sigma} R} _ {R e g r e t o f D e c i s i o n} + \underbrace {2 \mathbb {E} \left\{\sum_ {t = 1} ^ {T} b _ {t} ^ {\top} (a _ {t} - a _ {T} ^ {*}) \right\}} _ {F e e d b a c k E r r o r}, \\ \end{array}
+$$
+
+which completes the proof.
+
+
+
+# Step 3: upper bounding the regret from feedback error
+
+Bounding the regret of decision term in equation 2 is standard. Thus, this step develops a novel upper bound for bounding the regret from feedback error, as shown below.
+
+Lemma (Lemma 4.3 restated). The feedback error term in equation 2 can be bounded as follows:
+
+$$
+\mathbb {E} \left\{\sum_ {t = 1} ^ {T} b _ {t} ^ {\top} (a _ {t} - a _ {T} ^ {*}) \right\} \leq C _ {1} d \sqrt {\eta_ {\rho}} \mathbb {E} \left\{\sum_ {t = 1} ^ {T} \sqrt {t} | c _ {t} (a _ {t}, a _ {t} ^ {\prime}) | \sqrt {\mu (a ^ {*}) - \mu (a _ {t})} \right\} + C _ {2} d T ^ {\rho} + 2 d \sqrt {\lambda} \sqrt {\eta_ {\rho}} T,
+$$
+
+where $C_1 \coloneqq \sqrt{\frac{2\lambda(L^\sigma)^2}{\alpha}}$ , and $C_2 \coloneqq 2L^\sigma R\sqrt{\sup_{a \in \mathcal{A}} \lambda_{\max}(\nabla^2\mathcal{R}(a)) + 2\phi}$ .
+
+Proof. In the following, we will analyze the expected cumulative sum of the bias $b_{t}$ on the total regret, which is $\mathbb{E}\left\{\sum_{t = 1}^{T}b_{t}^{\top}(a_{t} - a_{T}^{*})\right\}$ . By Cauchy-Schwartz inequality, $b_{t}^{\top}(a_{t} - a_{T}^{*}) \leq \| b_{t}\|_{2}\| (a_{t} - a_{T}^{*})\|_{2}$ . We can bound the $\| b_{t}\|_{2}$ by the following.
+
+$$
+\begin{array}{l} b _ {t} ^ {\top} b _ {t} = d ^ {2} \left(P _ {t} (a _ {t} + \nabla^ {2} \mathcal {R} _ {t} (a _ {t}) ^ {- \frac {1}{2}} u _ {t}) - \hat {P} _ {t} (a _ {t} + \nabla^ {2} \mathcal {R} _ {t} (a _ {t}) ^ {- \frac {1}{2}} u _ {t})\right) ^ {2} u _ {t} ^ {\top} \nabla^ {2} \mathcal {R} _ {t} (a _ {t}) u _ {t} \\ \leq \Big (P _ {t} (a _ {t} + \nabla^ {2} \mathcal {R} _ {t} (a _ {t}) ^ {- \frac {1}{2}} u _ {t}) - \hat {P} _ {t} (a _ {t} + \nabla^ {2} \mathcal {R} _ {t} (a _ {t}) ^ {- \frac {1}{2}} u _ {t}) \Big) ^ {2} d ^ {2} \lambda_ {\max} (\nabla^ {2} \mathcal {R} _ {t} (a _ {t})). \\ \end{array}
+$$
+
+We get the first equality by Lemma 4.1. We get the inequality by using the fact $\| u_t\| _2 = 1$ . If we let $a_{t}^{\prime} = a_{t} + \nabla^{2}\mathcal{R}_{t}(a_{t})^{-\frac{1}{2}}u_{t}$ , then we have
+
+$$
+\begin{array}{l} \left| P _ {t} \left(a _ {t} ^ {\prime}\right) - \hat {P} _ {t} \left(a _ {t} ^ {\prime}\right) \right| = \left| \sigma \left(f \left(a _ {t}\right) - f \left(a _ {t} ^ {\prime}\right)\right) - \sigma \left(f \left(a _ {t}\right) - f \left(a _ {t} ^ {\prime}\right) + c _ {t} \left(a _ {t}, a _ {t} ^ {\prime}\right)\right) \right| \\ \leq \min \left(2, L ^ {\sigma} \left| c _ {t} \left(a _ {t}, a _ {t} ^ {\prime}\right) \right|\right). \\ \end{array}
+$$
+
+We get the first equality by using the definition of $P_{t}(a_{t})$ and $\hat{P}_{t}(a_{t})$ . We get the first inequality by using the Lipschitz property of $\sigma$ . Therefore, we have
+
+$$
+\left\| b _ {t} \right\| _ {2} \leq d \sqrt {\lambda_ {\max } \left(\nabla^ {2} \mathcal {R} _ {t} \left(a _ {t}\right)\right)} \min \left\{2, L ^ {\sigma} \left| c _ {t} \left(a _ {t}, a _ {t} ^ {\prime}\right) \right| \right\}.
+$$
+
+If we use $\lambda_R^* \coloneqq \sup_{a \in \mathcal{A}} \lambda_{\max}(\nabla^2 \mathcal{R}(a))$ , then we have
+
+$$
+\lambda_ {\max } \left(\nabla^ {2} \mathcal {R} _ {t} \left(a _ {t}\right)\right) = \lambda_ {\max } \left(\nabla^ {2} \mathcal {R} \left(a _ {t}\right)\right) + \lambda \eta_ {\rho} t + 2 \phi \leq \lambda_ {R} ^ {*} + 2 \phi + \lambda \eta_ {\rho} t.
+$$
+
+Therefore we have
+
+$$
+\begin{array}{l} \mathbb {E} \left\{\sum_ {t = 1} ^ {T} b _ {t} ^ {\top} \left(a _ {t} - a _ {T} ^ {*}\right) \right\} \leq \mathbb {E} \left\{\sum_ {t = 1} ^ {T} \| b _ {t} \| _ {2} \| a _ {t} - a _ {T} ^ {*} \| _ {2} \right\} \\ \leq \mathbb {E} \left\{\sum_ {t = 1} ^ {T} (d \sqrt {\lambda_ {\max } (\nabla^ {2} \mathcal {R} _ {t} (a _ {t}))} \min (2, L ^ {\sigma} | c _ {t} (a _ {t}, a _ {t} ^ {\prime}) |)) \| a _ {t} - a _ {T} ^ {*} \| _ {2} \right\} \\ \leq \mathbb {E} \left\{\sum_ {t = 1} ^ {T} \left(d \sqrt {\lambda_ {R} ^ {*} + 2 \phi + \lambda \eta_ {\rho} t} \min \left(2, L ^ {\sigma} | c _ {t} \left(a _ {t}, a _ {t} ^ {\prime}\right) |\right)\right) \| a _ {t} - a _ {T} ^ {*} \| _ {2} \right\} \\ \leq \mathbb {E} \left\{ \right.\sum_ {t = 1} ^ {T} \left( \right.d \sqrt {\lambda_ {R} ^ {*} + 2 \phi} \min \left(2, L ^ {\sigma} | c _ {t} \left(a _ {t}, a _ {t} ^ {\prime}\right) |\right) \| a _ {t} - a _ {T} ^ {*} \| _ {2} \left. \right\} + \mathbb {E} \left\{ \right.\sum_ {t = 1} ^ {T} \left( \right.d \sqrt {\lambda \eta_ {\rho} t} \min \left(2, L ^ {\sigma} | c _ {t} \left(a _ {t}, a _ {t} ^ {\prime}\right) |\right) \| a _ {t} - a _ {T} ^ {*} \| _ {2} \left. \right\}\left. \right. \\ \leq 2 R d L ^ {\sigma} \sqrt {\lambda_ {R} ^ {*} + 2 \phi} T ^ {\rho} + d \sqrt {\lambda \eta_ {\rho}} \mathbb {E} \left\{\sum_ {t = 1} ^ {T} \sqrt {t} \min \left(2, L ^ {\sigma} \left| c _ {t} \left(a _ {t}, a _ {t} ^ {\prime}\right) \right|\right) \| a _ {t} - a _ {T} ^ {*} \| _ {2} \right\} (16) \\ \leq 2 R d L ^ {\sigma} \sqrt {\lambda_ {R} ^ {*} + 2 \phi} T ^ {\rho} + 2 d \sqrt {\lambda \eta_ {\rho} T} + d \sqrt {\lambda \eta_ {\rho}} \mathbb {E} \left\{\sum_ {t = 1} ^ {T} \sqrt {t} \min \left(2, L ^ {\sigma} | c _ {t} \left(a _ {t}, a _ {t} ^ {\prime}\right) |\right) \| a _ {t} - a ^ {*} \| _ {2} \right\} (17) \\ \leq 2 R d L ^ {\sigma} \sqrt {\lambda_ {R} ^ {*} + 2 \phi} T ^ {\rho} + 2 d \sqrt {\lambda \eta_ {\rho} T} + d \sqrt {\lambda \eta_ {\rho}} \mathbb {E} \left\{\sum_ {t = 1} ^ {T} \sqrt {t} \min \left(2, L ^ {\sigma} | c _ {t} \left(a _ {t}, a _ {t} ^ {\prime}\right) |\right) \min \left(2 R, \sqrt {\frac {2}{\alpha} \left(\mu \left(a ^ {*}\right) - \mu \left(a _ {t}\right)\right)}\right) \right\}. (18) \\ \end{array}
+$$
+
+We get equation 16 by using the fact that $\| a_t - a_T^* \|_2 \leq 2R$ , $\sum_{t=1}^{T} |c_t(a_t, a_t')| \leq T^\rho$ . We get equation 17 the definition of $a_T^*$ , and the fact $\sqrt{a + b} \leq \sqrt{a} + \sqrt{b}$ . Using the $\alpha$ -strong convexity of $\mu$ , we have $\| a_t - a_* \|_2 \leq \min \left( 2R, \sqrt{\frac{2}{\alpha} (\mu(a^*) - \mu(a_t))} \right)$ we get the last inequality, which completes the proof.
+
+# Step 4: The iterative regret refinement analysis and resultant optimal learning rate
+
+Lemma (Lemma 4.4 restated). If $A = \mathbb{E}\left(\sum_{t=1}^{T}[\mu(a^{*}) - \mu(a_{t})]\right) \leq \mathcal{O}(T^{\frac{1}{2} + \psi})$ for some $\psi \in [0, \frac{1}{2})$ , then we must have $B = \mathbb{E}\left(\sum_{t=1}^{T}t^{\rho - \frac{1}{2}}\sqrt{\mu(a^{*}) - \mu(a_{t})}\right) \leq \mathcal{O}(T^{-\frac{1}{4} + \frac{\psi}{2} + \rho}).$
+
+Proof. To prove Lemma 4.4, it is equivalent to prove the following Lemma D.6. If Lemma D.6 holds, let $n_t = \sqrt{\mathbb{E}(\mu(a^*) - \mu(a_t))}$ , $m_t = \min (2,L^\sigma |c_t(a_t,a_t'))|$ , proves Lemma 4.4.
+
+Lemma D.6. Consider $\sum_{t=1}^{T} n_t^2 \leq C' T^{\frac{1}{2} + \alpha}$ , with constants $\alpha \geq 0$ , $C' > 0$ . In addition, $n_t$ is uniformly upper bounded by a constant $K$ . Specifically, we have $0 \leq n_t \leq K, \forall t$ . $m_t \leq c_k t^{\rho - 1}$ with constant $c_k \geq 0$ . Then we have $\sum_{t=1}^{T} \sqrt{t} m_t n_t \leq 5 \sqrt{C'} c_k T^{-\frac{1}{4} + \frac{\alpha}{2} + \rho}$ .
+
+Proof. Using Abel's equality (Lemma D.7), we have
+
+$$
+\sum_ {t = 1} ^ {T} \sqrt {t} m _ {t} n _ {t} \leq \sqrt {T} \left(\sum_ {t = 1} ^ {T} m _ {t} n _ {t}\right)
+$$
+
+Since we have $\sum_{t=1}^{T} n_t^2 \leq C' T^{\frac{1}{2} + \alpha}$ and $0 \leq n_t \leq K$ , we have $\sum_{t=1}^{T} n_t \leq \sqrt{C'} T^{\frac{3}{4} + \frac{\alpha}{2}}, \forall t$ . Moreover, for $t \geq 1$ , $t^{-1 + \rho} - (t + 1)^{-1 + \rho} \leq t^{\rho - 2}$ holds for all $t \geq 1$ . This is because
+
+$$
+f (t) = t ^ {- 1 + \rho} \left((1 + \frac {1}{t}) ^ {- 1 + \rho} + \frac {1}{t} - 1\right).
+$$
+
+is decreasing over $t \geq 1$ and $\lim_{t \to \infty} f(t) = 0$ . Consequently, applying Abel's Summation Equation again, we have
+
+$$
+\begin{array}{l} \sum_ {t = 1} ^ {T} m _ {t} n _ {t} = \left(\sum_ {t = 1} ^ {T} n _ {t}\right) m _ {T} + \sum_ {t = 1} ^ {T - 1} \left(\sum_ {i = 1} ^ {t} n _ {i}\right) (m _ {t} - m _ {t + 1}) \\ \leq \sqrt {C ^ {\prime}} c _ {k} T ^ {\frac {3}{4} + \frac {\alpha}{2}} T ^ {- 1 + \rho} + \sqrt {C ^ {\prime}} c _ {k} \sum_ {t = 1} ^ {T - 1} \left(\sum_ {i = 1} ^ {t} n _ {i}\right) \left(t ^ {- 1 + \rho} - (t + 1) ^ {- 1 + \rho}\right) \\ \leq \sqrt {C ^ {\prime}} c _ {k} T ^ {\frac {3}{4} + \frac {\alpha}{2}} T ^ {- 1 + \rho} + \sqrt {C ^ {\prime}} c _ {k} \sum_ {t = 1} ^ {T - 1} \left(\sum_ {i = 1} ^ {t} n _ {i}\right) t ^ {- 2 + \rho} \\ \leq \sqrt {C ^ {\prime}} c _ {k} T ^ {\frac {3}{4} + \frac {\alpha}{2}} T ^ {- 1 + \rho} + \sqrt {C ^ {\prime}} c _ {k} \sum_ {t = 1} ^ {T - 1} t ^ {\frac {3}{4} + \frac {\alpha}{2}} t ^ {- 2 + \rho} \\ \leq 5 \sqrt {C ^ {\prime}} c _ {k} T ^ {- \frac {1}{4} + \frac {\alpha}{2} + \rho}. \\ \end{array}
+$$
+
+Since $0 \leq n_{t} \leq K$ , $\sum_{i=1}^{t} n_{i}$ is increasing and the increasing rate is upper bound by $t$ . Together with the constraint $\sum_{t=1}^{T} n_{t} \leq \sqrt{C'} T^{\frac{3}{4} + \frac{\alpha}{2}}$ , $\sum_{t=1}^{T-1} \left( \sum_{i=1}^{t} n_{i} \right) t^{-\frac{1}{2} + \rho}$ is optimized when $\sum_{i=1}^{t} n_{i}$ increasing in the speed of $\sqrt{C'} t^{\frac{3}{4} + \frac{\alpha}{2}}$ . Because of this, the second last inequality holds.
+
+Lemma D.7. (Abel's Summation Equation (Williams, 1963)). For any numbers $a_{k}, b_{k}$ , we have
+
+$$
+\sum_ {k = 1} ^ {n} a _ {k} b _ {k} = \left(\sum_ {k = 1} ^ {n} b _ {k}\right) a _ {n} + \sum_ {k = 1} ^ {n - 1} \left(\sum_ {i = 1} ^ {k} b _ {i}\right) (a _ {k} - a _ {k + 1}).
+$$
+
+
+
+
+
+After establishing Lemma 4.4, we can use it to prove the induction claim (Lemma 4.5). The challenge in this proof lies in identifying the constant $K$ , which must hold across all iterations of the analysis to ensure the bound remains stable and does not diverge. This requires careful refinement of the analysis and calculations.
+
+Lemma (Lemma 4.5 restated). Consider $T > \sqrt{2L^{\mu}L_{1}^{\sigma}R}$ and $\eta_{\rho} = \frac{\sqrt{\log T}}{dT^{\max\{1/2,\rho\}}}$ . If $Reg_{T} \leq 144dK\sqrt{\log T}T^{\rho + \frac{3}{2} - \rho}$ for some integer $k$ , then we must also have $Reg_{T} \leq 144dK\sqrt{\log T}T^{\rho + \frac{3}{2} - \rho}$ . $K$ is a instance-dependent constant, where $K := \max \left\{C_{0}, \frac{C_{2}C_{\kappa}}{\sqrt{\log T}}, (L^{\sigma}T_{\kappa}^{\rho})^{2}, 2\sqrt{\lambda}RC_{\kappa}L^{\sigma}\right\}$ , $C_{0}$ and $C_{2}$ defined in Lemma 4.2 and 4.3 respectively,
+
+Proof. In the following, we denote
+
+$$
+m _ {t} := \min \left(2, L ^ {\sigma} | c _ {t} \left(a _ {t}, a _ {t} ^ {\prime}\right) |\right), n _ {t} := \min \left(2 R, \sqrt {\frac {2}{\alpha} \left(\mu \left(a ^ {*}\right) - \mu \left(a _ {t}\right)\right)}\right)
+$$
+
+Continue from equation 18, we have the following.
+
+The Base Case: When $k = 1$ , let $C_3 = C_2 dT^\rho + 2d \sqrt{\lambda \eta_\rho T}$ , we have
+
+$$
+\begin{array}{l} \operatorname {R e g} _ {T} \leq \frac {C _ {0}}{\eta_ {\rho}} \log (T) + 8 d ^ {2} \eta_ {\rho} T + 2 L ^ {\mu} L _ {1} ^ {\sigma} R + 2 C _ {3} + 2 d \sqrt {\lambda \eta_ {\rho}} \mathbb {E} \left(\sum_ {t = 1} ^ {T} \sqrt {t m _ {t}} n _ {t}\right). (19) \\ \leq \frac {C _ {0}}{\eta_ {\rho}} \log (T) + 8 d ^ {2} \eta_ {\rho} T + 2 L ^ {\mu} L _ {1} ^ {\sigma} R + 2 C _ {3} + 4 d R \sqrt {\lambda \eta_ {\rho}} \mathbb {E} \left\{\sum_ {t = 1} ^ {T} \sqrt {t} m _ {t} \right\} (20) \\ \leq \frac {C _ {0}}{\eta_ {\rho}} \log (T) + 8 d ^ {2} \eta_ {\rho} T + 2 L ^ {\mu} L _ {1} ^ {\sigma} R + 2 C _ {3} + 4 d R \sqrt {\lambda \eta_ {\rho} T} \left(\sum_ {t = 1} ^ {T} m _ {t}\right) (21) \\ \leq \frac {C _ {0}}{\eta_ {\rho}} \log (T) + 8 d ^ {2} \eta_ {\rho} T + 2 L ^ {\mu} L _ {1} ^ {\sigma} R + 2 C _ {3} + 4 d L ^ {\sigma} R \sqrt {\lambda \eta_ {\rho}} C _ {\kappa} T ^ {\rho}. (22) \\ \end{array}
+$$
+
+We get equation 19 according to Lemma 4.2 and 4.3. We get equation 20 because of $\mathbb{E}\left(n_t\right)\leq 2R$ . We get equation 21 by Abel's Summation Equation (see Lemma D.7). We get equation 22 because of corruption budget. Choosing the learning rate $\eta_{\rho}$ according to Theorem 4.1, we obtain $\mathrm{Reg}_T\leq 144\sqrt{\log T} KdT^{\frac{\rho + 1}{2}}$ . This confirms the validity of the claim when $k = 1$ .
+
+The Induction Argument: Let's assume that the claim holds true for a general step $k$ . In the following, we will demonstrate that the claim also holds true for step $k + 1$ . Because of Equation equation 14 and the induction claim, we obtain $\mathrm{Reg}_T^{\mathrm{FO}} \leq \frac{144}{l_1^\sigma} dK\sqrt{\log T} T^{\rho + \frac{3/2 - \rho}{2^k}}$ . This suggests that
+
+$$
+\sum_ {t = 1} ^ {T} \mathbb {E} \left(\mu (a ^ {*}) - \mu (a _ {t})\right) \leq \frac {1 4 4}{l _ {1} ^ {\sigma}} d K \sqrt {\log T} T ^ {\rho + \frac {3 / 2 - \rho}{2 ^ {k}}}.
+$$
+
+By Jensen's inequality, we have
+
+$$
+\mathbb {E} (n _ {t}) = \min \left\{2, \sqrt {\frac {2}{\alpha}} \mathbb {E} \left(\sqrt {\mu (a ^ {*}) - \mu (a _ {t})}\right) \right\} \leq \sqrt {\frac {2}{\alpha}} \sqrt {\mathbb {E} \left(\mu (a ^ {*}) - \mu (a _ {t})\right)}.
+$$
+
+Therefore we have
+
+$$
+\mathbb {E} \left(\sum_ {t = 1} ^ {T} \sqrt {t} m _ {t} n _ {t}\right) \leq \sqrt {\frac {2}{\alpha}} \sum_ {t = 1} ^ {T} \sqrt {t} m _ {t} \sqrt {\mathbb {E} \left(\mu \left(a ^ {*}\right) - \mu \left(a _ {t}\right)\right)}.
+$$
+
+By the definition of $\rho$ -Imperfect Human Feedback, we have $|c_{t}(a_{t},a_{t}^{\prime})|$ is upper bounded by $C_k t^{-1 + \rho}$ .
+
+Therefore, using Lemma 4.4 we can upper bound $\sqrt{\lambda}\sum_{t=1}^{T}\sqrt{tm}_tn_t$ by
+
+$$
+\sqrt {\lambda} \sum_ {t = 1} ^ {T} \sqrt {t} m _ {t} n _ {t} \leq 6 0 L ^ {\sigma} \sqrt {\frac {2 \lambda}{\alpha l _ {1} ^ {\sigma}}} (\log T) ^ {0. 2 5} C _ {\kappa} \sqrt {d K} T ^ {\frac {3}{2} \rho + \frac {3 / 2 - \rho}{2 k + 1}}
+$$
+
+Since $\lambda \leq \alpha l_1^\sigma / 2$ , choosing $\eta_\rho = \frac{1}{d} \frac{\sqrt{\log T}}{T^\rho}$ , we have
+
+$$
+\begin{array}{l} \operatorname {R e g} _ {T} \leq 2 d \left(C _ {0} + \frac {C _ {2}}{\sqrt {\log T}} + 6 0 C _ {\kappa} \sqrt {K} T ^ {\frac {3 / 2 - \rho}{2 k + 1}}\right) \sqrt {\log T} T ^ {\rho} + 1 2 K d \sqrt {\log T} T ^ {\rho} \\ \leq 1 4 4 d K \sqrt {\log T} T ^ {\rho + \frac {3 / 2 - \rho}{2 ^ {k + 1}}}. \\ \end{array}
+$$
+
+The claim holds true for step $k + 1$ . Therefore, it implies that the claim holds true for all $k$ . Repeating this process infinitely many times, we obtain
+
+$$
+\operatorname {R e g} _ {T} \leq \mathcal {O} \left(d \sqrt {\log T} T ^ {\rho}\right),
+$$
+
+which completes the proof when $\rho \in [0.5,1]$ .
+
+□
+
+□
+
+# E PROOF FOR PROPOSITION 2
+
+Proposition (Proposition 2 restated). If the total corruption level satisfies $\sum_{t=1}^{T}|c_t(a_t,a_t')| \leq \mathcal{O}(T^\rho)$ , then for any $\alpha \in [\frac{1}{2},1)$ , if the utility function is strongly concave, for sufficiently large round $T$ , by choosing learning rate $\eta_\rho \coloneqq \frac{\sqrt{\log T}}{2d} T^{-\alpha}$
+
+1. (Robustness) RoSMID incurs $Reg_{T} \leq \tilde{\mathcal{O}}(dT^{\alpha} + \sqrt{d} T^{\frac{1}{2}(1 - \alpha) + \rho} + dT^{\rho})$ .
+2. (Efficiency) There exists a strongly concave utility function $\mu$ and a link function $\sigma$ such that $R e g_{T}$ suffered by RoSMID is at least $\Omega (T^{\alpha})$ in scenario without corruption.
+
+# E.1 PROOF FOR ROBUSTNESS STATEMENT IN PROPOSITION 2
+
+Proof. From Lemma 4.3, we know
+
+$$
+\begin{array}{l} \mathbb {E} \left\{\sum_ {t = 1} ^ {T} b _ {t} ^ {\top} \left(a _ {t} - a _ {T} ^ {*}\right) \right\} \leq 2 R d L ^ {\sigma} \sqrt {\lambda_ {R} ^ {*} + 2 \phi} T ^ {\rho} + d \sqrt {\lambda \eta_ {\rho}} \mathbb {E} \left\{\sum_ {t = 1} ^ {T} \sqrt {t} \min \left(2, L ^ {\sigma} \left| c _ {t} \left(a _ {t}, a _ {t} ^ {\prime}\right) \right|\right) \| a _ {t} - a _ {T} ^ {*} \| _ {2} \right\} \\ \leq 2 R d L ^ {\sigma} \sqrt {\lambda_ {R} ^ {*} + 2 \phi} T ^ {\rho} + 2 R d \sqrt {\lambda \eta_ {\rho}} L ^ {\sigma} \sum_ {t = 1} ^ {T} \sqrt {t} \left| c _ {t} \left(a _ {t}, a _ {t} ^ {\prime}\right) \right| \\ \leq 2 R d L ^ {\sigma} \sqrt {\lambda_ {R} ^ {*} + 2 \phi} T ^ {\rho} + 2 R d \sqrt {\lambda \eta_ {\rho}} L ^ {\sigma} T ^ {\rho}. \\ \end{array}
+$$
+
+We get the second inequality by using the fact that the diameter of the action space of $R$ . We get the last inequality by using Abel Summation Equation (see Lemma D.7). Therefore, by Lemma 4.2, we have
+
+$$
+\operatorname {R e g} _ {T} \leq \frac {C _ {0}}{\eta_ {\rho}} \log (T) + 8 d ^ {2} \eta_ {\rho} T + 2 L ^ {\mu} L _ {1} ^ {\sigma} R + 4 R d L ^ {\sigma} \sqrt {\lambda_ {R} ^ {*} + 2 \phi} T ^ {\rho} + 4 R d \sqrt {\lambda \eta_ {\rho} T} L ^ {\sigma} T ^ {\rho}.
+$$
+
+Choosing $\eta_{\rho} = \frac{\sqrt{\log T}}{2d} T^{-\alpha}, \alpha \in [0.5, 1)$ , we have
+
+$$
+\begin{array}{l} \mathrm {R e g} _ {T} \leq 2 d C _ {0} \sqrt {\log T} T ^ {\alpha} + 4 d \sqrt {\log T} T ^ {1 - \alpha} + 4 R d L ^ {\sigma} \sqrt {\lambda_ {R} ^ {*} + 2 \phi} T ^ {\rho} + 4 R \sqrt {d} L ^ {\sigma} (\log T) ^ {0. 2 5} T ^ {\frac {1}{2} (1 - \alpha)} T ^ {\rho} + 2 L ^ {\mu} L _ {1} ^ {\sigma} R \\ \leq O \left(d \sqrt {\log T} T ^ {\alpha} + \sqrt {d} (\log T) ^ {\frac {1}{4}} T ^ {\frac {1}{2} (1 - \alpha)} T ^ {\rho} + d T ^ {\rho}\right), \\ \end{array}
+$$
+
+which completes the proof of robustness statement.
+
+
+
+# E.2 PROOF FOR EFFICIENCY STATEMENT IN PROPOSITION 2
+
+Proof. The robustness statement in Proposition 2 implies that RoSMID could afford agnostic corruption level $\mathcal{O}(T^{\frac{1 + \alpha}{2}})$ . If Lemma E.1 holds, this implies that there exists a hard instance which makes RoSMID incur regret in order of $\Omega(T^{\alpha})$ in non-corrupt setting. We can prove this by contradiction. Assume the efficiency statement in Proposition 2 is not true, which implies that for all $\mu$ , and $\sigma$ , there exists an $\epsilon > 0$ such that $\mathrm{Reg}_T = c_0 T^{\alpha - \epsilon}$ , for some constant $c_0 > 0$ , we assume $\epsilon$ to be the least possible. In this scenario, when we consider a linear link function $\sigma(x) = \frac{1 + x}{2}$ , Lemma E.1 implies that an agnostic corruption budget $2\sqrt{c_0 T^{\frac{1 + \alpha - \epsilon}{2}}}$ suffices to induce linear regret, which contradicts the robustness statement in Proposition 2.
+
+Lemma E.1. For any algorithm $\mathcal{G}$ incurs regret $Reg_{T} \leq c_{0} T^{\alpha}$ , for some constant $c_{0} > 0$ , on learning from bandit with reward feedback for strongly concave utilities $\mu$ in non-corrupted setting, then there exists an instance $\mu$ such that $\mathcal{G}$ will suffer linear regret under agnostic corruption with budget $\sqrt{c_{0}} T^{\frac{1 + \alpha}{2}}$ .
+
+Proof. Consider the scenario when $d = 2$ , the action space $\mathcal{A} \coloneqq \{(a_1, a_2) : a_1 \geq 0, a_2 \geq 0, a_1 + a_2 \leq 1\}$ , the utility function $\mu_{\theta}(a) = \langle \theta, a \rangle - \frac{1}{2} \| a \|_2^2$ with $\theta \coloneqq [1, 0]$ . In this scenario, the optimal action is $a^* \coloneqq [1, 0]$ . Assume that the adversary wants to "fool" the algorithm $\mathcal{G}$ to make it believe the $\theta \coloneqq [1, 1]$ , with optimal arm $a^* = [\frac{1}{2}, \frac{1}{2}]$ , each round, the corruption it should introduce is $c_t(a_t) = a_{t2}$ , where $a_{ti}$ is the $i$ -th coordinate value of action $a_t$ . To make reward
+
+indistinguishable from these two environments, the total corruption budget which the adversary has to pay is $\sum_{t=1}^{T}|a_{t2}|$ . We know that $\mathcal{G}$ incurs regret $\mathrm{Reg}_T := \sum_{t=1}^{T}\langle\theta,a^*-a_t\rangle-\frac{1}{2}\|a^*\|_2^2+\frac{1}{2}\|a_t\|_2^2=\frac{1}{2}-a_{t1}+\frac{1}{2}a_{t1}^2+\frac{1}{2}a_{t2}^2\leq c_0T^\alpha$ . Given this constraint, the maximum possible corruption paid by the adversary to make $\theta=[1,1]$ and $\theta=[1,0]$ indistinguishable is $\max \sum_{t=1}^{T}|a_{t2}|=\sqrt{c_0T^{\frac{\alpha+1}{2}}}$ . Therefore, for any agnostic corruption no less than $\sqrt{c_0T^{\frac{\alpha+1}{2}}}$ , $\mathcal{G}$ can not distinguish $\theta=[1,0]$ and $\theta=[1,1]$ and has to incur linear regret in either of these environments.
+
+
+
+# F PROOF FOR PROPOSITION 3:
+
+In this section, we present the regret upper for dueling bandit gradient descent Yue & Joachims (2009) in presence of arbitrary and agnostic corruption. Before presenting the proof, we make several remarks. First, in Yue & Joachims (2009), the utility function $\mu$ is assumed to be strictly concave to ensure the uniqueness of the maximizer. However, in scenarios where the maximizer is unique within the action set for a concave utility function $\mu$ , the requirement for "strictness" can be relaxed. Second, we highlight the notation differences. We use $a$ to denote actions while Yue & Joachims (2009) uses $w$ . In our proof, we define $P_{t}(a) \coloneqq \sigma(\mu(a_{t}) - \mu(a))$ to represent the probability of the event $a_{t} \succ a$ . While in Yue & Joachims (2009), it is denoted as $c_{t}(w)$ . Just to highlight, its corrupted version $\hat{P}_{t}(a) \coloneqq \sigma(\mu(a_{t}) - \mu(a) + c_{t}(a_{t}, a))$ is newly introduced in our paper. Moreover, $\bar{P}_{t}(a) \coloneqq \mathbb{E}_{x \in \mathbb{B}}[P_{t}(\mathcal{P}_{A}(a + \delta x))]$ is denoted as $\hat{\epsilon}_{t}(w) + \frac{1}{2}$ in Yue & Joachims (2009). The definition of $\mathcal{F}(\mathcal{P}_{A}(a_{t} + \delta u_{t}), a_{t})$ is same as $X_{t}(\mathcal{P}_{W}(w_{t} + \delta u_{t}))$ defined in Yue & Joachims (2009), except different notation. We remark $\mathcal{P}_{A}(a)$ represents the projection of action $a$ on $\mathcal{A}$ .
+
+Algorithm 3: Dueling Bandit Gradient Descent (DBGD) (Yue & Joachims, 2009)
+Input: Exploration rate $\delta$ exploitation rate $\gamma$ , initial action $a_1 = 0\in \mathcal{A}$
+for $t\in [T]$ do Sample unit vector $u_{t}$ uniformly and set $a_t^\prime = \mathcal{P}_A(a_t + \delta u_t)$ Present action pair $(a_{t},a_{t}^{\prime})$ to user and receive corrupted dueling feedback $\hat{\mathcal{F}} (a_t',a_t)$ Compute gradient $\hat{g}_t = -\frac{d}{\delta}\hat{\mathcal{F}} (a_t',a_t)u_t$ Set learning rate $\eta = \frac{\gamma\delta}{d}$ and update $a_{t + 1} = \mathcal{P}_{\mathcal{A}}(a_{t} - \eta \hat{g}_{t})$
+
+Proposition (Proposition 3 restated). If the total corruption level satisfies $\sum_{t=1}^{T}|c_t(a_t,a_t')| \leq \mathcal{O}(T^\rho)$ , then for any $\alpha \in (0,\frac{1}{4}]$ , if utility function $\mu$ is generally concave, for a sufficiently large round $T$ , choosing $\gamma := \frac{R}{\sqrt{T}}$ and $\delta := \frac{\sqrt{2}Rd}{\sqrt{13L^{\sigma}L^{\mu}T^{\alpha}}}$ for Algorithm 3
+
+1. (Robustness) $Reg_T$ incurred by Algorithm 3 satisfies $Reg_T \leq \mathcal{O}(\sqrt{d} T^{1 - \alpha} + \sqrt{d} T^{\alpha + \rho})$ .
+2. (Efficiency) There exists a linear utility function $\mu$ and a link function $\sigma$ such that $Reg_{T}$ suffered by Algorithm 3 is at least $\Omega\left(T^{1 - \alpha}\right)$ in scenario without corruption.
+
+# F.1 PROOF FOR ROBUSTNESS STATEMENT IN PROPOSITION 3
+
+Proof. The proof of Theorem 3 builds on the proof of Yue & Joachims (2009), where we extend it to a setting in presence of agnostic corruption. The proof follows Step 1-3 introduced in Theorem 4.1. Similarly, in Step 1, we decompose bias in the gradient caused by corruption. Notice that without corruption, DBGD performs expected gradient ascent, where the gradient $g_{t}$ is defined as follows
+
+$$
+g _ {t} = - \frac {d}{\delta} \mathcal {F} \left(\mathcal {P} _ {\mathcal {A}} \left(a _ {t} + \delta u _ {t}\right), a _ {t}\right) u _ {t}.
+$$
+
+In the presence of adversarial corruption, the corrupted gradient is
+
+$$
+\hat {g} _ {t} = - \frac {d}{\delta} \hat {\mathcal {F}} \left(\mathcal {P} _ {\mathcal {A}} \left(a _ {t} + \delta u _ {t}\right), a _ {t}\right) u _ {t}.
+$$
+
+Therefore, we quantify the bias $\mathbb{E}(b_t|a_t)$ in the following lemma.
+
+Lemma F.1. Let $P_{t}(a)$ represent the likelihood of action $a_{t}$ being preferred over $a$ , where $P_{t}(a) \coloneqq \sigma(\mu(a_{t}) - \mu(a))$ . Likewise, the corrupted version is defined as $\hat{P}_{t}(a) = \sigma(\mu(a_{t}) - \mu(a) + c_{t}(a_{t}, a))$ . The smoothed version of $P_{t}$ over $\mathcal{A}$ is $\bar{P}_{t}(a) \coloneqq \mathbb{E}_{x \in \mathbb{B}}[P_{t}(\mathcal{P}_{\mathcal{A}}(a + \delta x))]$ . Let $a_{t}' = \mathcal{P}_{\mathcal{A}}(a_{t} + \delta u_{t})$ where $u_{t}$ is uniformly sampled from $\mathbb{S}$ and $\hat{g}_{t} = -\frac{d}{\delta} \hat{\mathcal{F}}(a_{t}', a_{t}) u_{t}$ . Let $b_{t} \coloneqq \frac{d}{\delta}(\hat{P}_{t}(a_{t}') - P_{t}(a_{t}')') u_{t}$ . We have $\mathbb{E}(\hat{g}_{t}|a_{t}) = \mathbb{E}(\nabla \bar{P}_{t}(a_{t})|a_{t}) - \mathbb{E}(b_{t}|a_{t})$ .
+
+Proof. (Proof for Lemma F.1). Since $a_{t}^{\prime} \coloneqq \mathcal{P}_{\mathcal{A}}(a_{t} + \delta u_{t})$ , we have
+
+$$
+\begin{array}{l} \mathbb {E} \left(\hat {g} _ {t} \mid a _ {t}\right) = \mathbb {E} _ {u _ {t}} \left(\mathbb {E} \left(\hat {g} _ {t} \mid a _ {t}, u _ {t}\right)\right) \\ = - \frac {d}{\delta} \mathbb {E} _ {u _ {t}} \left(\mathbb {E} \left(\hat {\mathcal {F}} \left(a _ {t} ^ {\prime}, a _ {t}\right) u _ {t} \mid a _ {t}, u _ {t}\right)\right) \\ = - \frac {d}{\delta} \mathbb {E} \left(\hat {P} _ {t} \left(a _ {t} ^ {\prime}\right) u _ {t} \mid a _ {t}\right) \\ = - \frac {d}{\delta} \mathbb {E} \left(\left[ P _ {t} \left(a _ {t} ^ {\prime}\right) + \hat {P} _ {t} \left(a _ {t} ^ {\prime}\right) - P _ {t} \left(a _ {t} ^ {\prime}\right) \right] u _ {t} \mid a _ {t}\right) \\ = \nabla \mathbb {E} _ {x \in \mathbb {B}} \left(P _ {t} \left(\mathcal {P} _ {\mathcal {A}} \left(a _ {t} + \delta x\right)\right) \mid a _ {t}\right) - \frac {d}{\delta} \mathbb {E} \left[ \left(\hat {P} _ {t} \left(a _ {t} ^ {\prime}\right) - P _ {t} \left(a _ {t} ^ {\prime}\right)\right) u _ {t} \mid a _ {t} \right] (23) \\ = \nabla \bar {P} _ {t} \left(a _ {t}\right) - \frac {d}{\delta} \mathbb {E} \left[ \left(\hat {P} _ {t} \left(a _ {t} ^ {\prime}\right) - P _ {t} \left(a _ {t} ^ {\prime}\right)\right) u _ {t} \mid a _ {t} \right] \\ = \mathbb {E} \left(g _ {t} \mid a _ {t}\right) - \frac {d}{\delta} \mathbb {E} \left[ \left(\hat {P} _ {t} \left(a _ {t} ^ {\prime}\right) - P _ {t} \left(a _ {t} ^ {\prime}\right)\right) u _ {t} \mid a _ {t} \right]. (24) \\ \end{array}
+$$
+
+We get the equation equation 23 by using Lemma F.2. We get equation equation 24 by using Lemma F.3.
+
+Lemma F.2 (Lemma 2 in Yue & Joachims (2009)). Fix $\delta > 0$ , over random unit vector $u$ , we have
+
+$$
+\mathbb {E} [ P _ {t} (\mathcal {P} _ {\mathcal {A}} (a + \delta u)) u ] = \frac {\delta}{d} \nabla \bar {P} _ {t} (a).
+$$
+
+Lemma F.3 (Lemma 1 in Yue & Joachims (2009)). $\mathbb{E}_{\mathcal{F},u}[\mathcal{F}(a_t',a_t)u] = -\mathbb{E}_u[P_t(a_t')u]$ .
+
+
+
+In Step 2, we decompose regret under dueling bandits into two parts, regret of decision and feedback error.
+
+Lemma F.4 (Regret Decomposition for DBGD). Define $\lambda := \frac{L^{\sigma}}{L^{\sigma} - \delta L^{\mu}L_{2}}$ , $L_{2}$ is the Lipschitz constant for $\sigma'$ , $\gamma = R / \sqrt{T}$ , for $b_{t}$ defined in Lemma F.1, we have
+
+$$
+R e g _ {T} \leq \underbrace {\lambda \left(\frac {2 R d \sqrt {T}}{\delta} + 1 3 \delta L ^ {\sigma} L ^ {\mu} T\right)} _ {R e g r e t o f D e c i s i o n} + \underbrace {2 \lambda \sum_ {t = 1} ^ {T} \mathbb {E} \left(b _ {t} ^ {\top} (a _ {t} - a ^ {*})\right)} _ {F e e d b a c k E r r o r}.
+$$
+
+Proof. Because of Lemma F.5, we have
+
+$$
+\begin{array}{l} \mathbb {E} \left[ \sum_ {t = 1} ^ {T} \bar {P} _ {t} (a _ {t}) - \bar {P} _ {t} (a ^ {*}) \right] \leq \sum_ {t = 1} ^ {T} \mathbb {E} \left(\lambda \nabla \bar {P} _ {t} (a _ {t}) (a _ {t} - a ^ {*}) + (3 + \lambda) \delta L ^ {\sigma} L ^ {\mu}\right) \\ = \lambda \sum_ {t = 1} ^ {T} \mathbb {E} \left(\mathbb {E} \left(g _ {t} \mid a _ {t}\right) ^ {\top} \left(a _ {t} - a ^ {*}\right)\right) + (3 + \lambda) \delta L ^ {\sigma} L ^ {\mu} T \\ = \lambda \sum_ {t = 1} ^ {T} \mathbb {E} \left(\mathbb {E} \left(\hat {g} _ {t} + b _ {t} \mid a _ {t}\right) ^ {\top} \left(a _ {t} - a ^ {*}\right)\right) + (3 + \lambda) \delta L ^ {\sigma} L ^ {\mu} T \\ = \lambda \sum_ {t = 1} ^ {T} \mathbb {E} \left(\hat {g} _ {t} ^ {\top} \left(a _ {t} - a ^ {*}\right)\right) + \lambda \sum_ {t = 1} ^ {T} \mathbb {E} \left(b _ {t} ^ {\top} \left(a _ {t} - a ^ {*}\right)\right) + (3 + \lambda) \delta L ^ {\sigma} L ^ {\mu} T \\ \end{array}
+$$
+
+Lemma F.5 (Lemma 4 in Yue & Joachims (2009)). Fix $\delta \in (0, \frac{L^{\sigma}}{L^{\mu}L_{2}})$ , for $\lambda$ defined in Lemma F.4, we have
+
+$$
+\mathbb {E} \left[ \sum_ {t = 1} ^ {T} \bar {P} _ {t} (a _ {t}) - \bar {P} _ {t} (a ^ {*}) \right] \leq \sum_ {t = 1} ^ {T} \mathbb {E} \left(\lambda \nabla \bar {P} _ {t} (a _ {t}) ^ {\top} (a _ {t} - a ^ {*}) + (3 + \lambda) \delta L ^ {\sigma} L ^ {\mu}\right).
+$$
+
+Since $a_{t + 1} = \mathcal{P}_{\mathcal{A}}(a_t - \eta \hat{g}_t)$ , and $\eta = \frac{\gamma\delta}{d}$ , by applying the telescoping sum and because $a_1 = 0$ , $\| g_t\| _2\leq G,\forall t$ , we have
+
+$$
+\lambda \sum_ {t = 1} ^ {T} \mathbb {E} \left(\hat {g} _ {t} ^ {\top} \left(a _ {t} - a ^ {*}\right)\right) \leq \lambda \left(\frac {R ^ {2}}{2 \eta} + \frac {T \eta G ^ {2}}{2}\right).
+$$
+
+
+
+Noticing that $\| b_t\| _2\leq \frac{d}{\delta}\min \left(2,L^\sigma |c_t(a_t,a_t')|\right)$ . Moreover, $\| a_{t} - a^{*}\|_{2}\leq 2R$ . Therefore, in Step 3, we can control the feedback error by the following.
+
+Lemma F.6. $\sum_{t=1}^{T} \mathbb{E}\left(b_t^\top(a_t - a^*)\right) \leq 2RdL^\sigma T^\rho/\delta.$
+
+Proof. (Proof for Lemma F.6).
+
+$$
+\begin{array}{l} \sum_ {t = 1} ^ {T} \mathbb {E} \left(b _ {t} \left(a _ {t} - a ^ {*}\right)\right) \leq 2 R \frac {d}{\delta} \sum_ {t = 1} ^ {T} \min \left(2, L ^ {\sigma} \left| c _ {t} \left(a _ {t}, a _ {t} ^ {\prime}\right) \right|\right) \\ \leq 2 R \frac {d L ^ {\sigma}}{\delta} \sum_ {t = 1} ^ {T} \left| c _ {t} \left(a _ {t}, a _ {t} ^ {\prime}\right) \right| \\ = 2 R \frac {d L ^ {\sigma} T ^ {\rho}}{\delta}. \\ \end{array}
+$$
+
+
+
+Lemma F.7 (Lemma 3 in Yue & Joachims (2009)). $Reg_{T} \leq 2\mathbb{E}\left[\sum_{t=1}^{T}\bar{P}_{t}(a_{t}) - \bar{P}_{t}(a^{*})\right] + 5\delta L^{\sigma}L^{\mu}T$
+
+Set $G = \frac{d}{\delta}$ , and by Lemma F.7, we have
+
+$$
+\operatorname {R e g} _ {T} \leq \lambda \left(\frac {2 R d \sqrt {T}}{\delta} + 1 3 \delta L ^ {\sigma} L ^ {\mu} T\right) + 4 R \frac {\lambda d L ^ {\sigma} T ^ {\rho}}{\delta}.
+$$
+
+Therefore, by choosing $\delta := \frac{\sqrt{2Rd}}{\sqrt{13L^{\sigma}L^{\mu}}T^{\alpha}}$ , $\gamma := \frac{R}{\sqrt{T}}$ , and $T > \left(\frac{\sqrt{2Rd}L_{\mu}L_{2}}{\sqrt{13L^{\sigma}L^{\mu}}L^{\sigma}}\right)^{4}$ , we have
+
+$$
+\operatorname {R e g} _ {T} \leq 2 \lambda_ {T} \sqrt {2 6 R d L ^ {\sigma} L ^ {\mu}} T ^ {1 - \alpha} + 2 L ^ {\sigma} \sqrt {2 6 R d L ^ {\sigma} L ^ {\mu}} T ^ {\alpha + \rho}.
+$$
+
+$\lambda_{T} = \frac{L^{\sigma}\sqrt{13L^{\sigma}L^{\mu}}T^{\alpha}}{L^{\sigma}\sqrt{13L^{\sigma}L^{\mu}}T^{\alpha} - L^{\mu}L_{2}\sqrt{2Rd}}$ completes the proof.
+
+
+
+# F.2 PROOF FOR EFFICIENCY STATEMENT IN PROPOSITION 3
+
+Proof. The robustness statement in Proposition 3 implies that DBGD could afford agnostic corruption level $\mathcal{O}(T^{1 - \alpha})$ . This implies that there exists a hard instance which makes DBGD attain regret in order of $\Omega (T^{1 - \alpha})$ in non-corrupt setting, formally described as follows. To start a proof by contradiction, we assume that the efficiency statement in Proposition 3 is false. Specifically, for all problem instance $\mu ,\sigma$ , there exist a $\epsilon >0$ , such that $\mathrm{Reg}_T\leq \mathcal{O}(T^{1 - \alpha -\epsilon})$ . We assume $\epsilon$ to be the least possible. In particular, there exists a pair of instance $\mu ,\sigma$ such that $\mathrm{Reg}_T = c_0T^{1 - \alpha -\epsilon}$ , $c_{0}$ is a positive constant. In other words, it says that there exists a pair of instance $\mu ,\sigma$ such that DBGD suffers regret in $\Theta (T^{1 - \alpha -\epsilon})$ .
+
+Consider the following problem instance. $\mu (a) = \theta^{\top}a$ , specifically $\mu$ is linear function. Let $d = 2$ with action set $\mathcal{A}_1\coloneqq \{(a_1,a_2):a_1\geq 0,a_2\geq 0,\frac{1}{2} a_1 + a_2 - \frac{1}{4}\leq 0\}$ with $\theta = [\frac{1}{2},\frac{1}{2} ]$ . The optimal arm is $a_1 = [\frac{1}{2},0]$ , which is unique. Let the link function $\sigma (x) = \frac{1}{2} +\frac{1}{2} x$ . It is easy to verify that it is rotational symmetric and Lipschitz. Denote $\mathrm{Reg}_T$ as the regret occurred by DBGD on this problem instance. We know $\mathrm{Reg}_T\leq \mathcal{O}(T^{1 - \alpha -\epsilon})$ . Consequently, it implies that $a_2$ is at most proposed $8c_{0}T^{1 - \alpha -\epsilon}$ times. This is because $\mathrm{Reg}_T\leq c_0T^{1 - \alpha -\epsilon}$ and if the proposed action pair $(a_t,a_t')$ including $a_2$ at round $t$ , it occurs regret at least $\frac{1}{8}$ .
+
+Now consider a different problem instance with the same $\mu, \sigma$ but different action set, which is $\mathcal{A}_2 := \{(a_1, a_2) : a_1 \geq 0, a_2 \geq 0, \frac{3}{2} a_1 + a_2 - \frac{3}{4} \leq 0\}$ . The optimal arm in this action set $a_2 = [0, \frac{3}{4}]$ , which is also unique. Proposing arm $a_1 = [\frac{1}{2}, 0]$ occurs at least $\frac{1}{8}$ regret. Consider an adversary that pulls the utility of $a_2$ from $\frac{3}{8}$ down to $\frac{1}{8}$ whenever it is pulled at a cost of $c_t(A_t) = \frac{1}{4}$ . It is equivalent to say that every time when the proposed arm $w$ falls in the region $\mathcal{W} = \{a_1 \geq 0, a_2 \geq 0, \frac{1}{2} a_1 + a_2 - \frac{1}{4} \geq 0, \frac{3}{2} a_1 + a_2 - \frac{3}{4} \leq 0\}$ , we assume that the utility is sampled from $\theta^\top \mathcal{P}_{\mathcal{A}_1}(w)$ and $|c_t(w)| = |\theta^\top \mathcal{P}_{\mathcal{A}_1}(w) - \theta^\top w| \leq \frac{1}{4}$ . Choosing the total corruption budget as $2c_0 T^{1-\alpha-\epsilon}$ , the adversary can afford to corrupt $8c_0 T^{1-\alpha-\epsilon}$ times.
+
+This means that as long as the adversary is corrupting, the utility observed in the first problem instance is exactly the same as the utility observed in the second problem instance, in which we pull $a_2$ as most $8c_0T^{1 - \alpha -\epsilon}$ . However, $a_2$ is the optimal arm in the second problem instance, which implies that the regret occurred on the second problem instance is at least $T - 8c_0T^{1 - \alpha -\epsilon}$ , which is linear in $T$ . This contradicts the robustness statement in Proposition 3, which says that when agnostic corruption is $2c_0T^{1 - \alpha -\epsilon}$ , the regret upper bound is $O(T^{1 - \epsilon})$ , which is sublinear. To reconcile the conflicts, we must have the efficiency statement in Proposition 3 true to make the agnostic corruption budget at least $\Omega (T^{1 - \alpha})$ to make the parallel world argument valid.
+
+# G ADDITIONAL EXPERIMENTS
+
+In this section, we list all the experiment details. At the beginning, we introduce the regret order fitting method, and baseline algorithms for comparison.
+
+Fitted Order of Regret. We introduce the methodology that we use to compute the order of $\mathrm{Reg}_T$ in terms of the number of iteration, $T$ . To fit the order of the regret, we first convert it into log scale. Then we input the last $1\%$ of data, run linear regression, and use ordinary least squares to estimate the slope of the line, which is the fitted order of $\mathrm{Reg}_T$ .
+
+Baseline Algorithms. We consider three baseline algorithms for comparison, Doubler (Ailon et al., 2014) and Sparring (Ailon et al., 2014)
+
+**Doubler** is the first approach that transforms aueling bandit problem into a standard multi-armed bandit (MAB) problem. It operates in epochs of exponentially increasing length: in each epoch, the left arm is sampled from a fixed distribution, and the right arm is selected using a MAB algorithm to minimize regret against the left arm. The feedback received by the MAB algorithm is the number of wins the right arm achieves compared to the left arm. Under linear link assumption, Doubler has been proven to experience regret as the same order as underlying MAB algorithm. For continuous action space and general concave utility, we choose Bandit Gradient Descent (BGD, (Flaxman et al., 2004)), with regret $\mathcal{O}(T^{3/4})$ , as the underlying MAB algorithm.
+
+Sparring initializes two MAB instances and lets them compete against each other. It is a heuristic improvement over Doubler. Although it does not come with a regret upper bound guarantee, it is reported to enjoy better performance compared to Doubler (Ailon et al., 2014). We also choose BGD as the underlying MAB algorithm.
+
+To validate efficiency-robustness trade-off in Proposition 2 and Proposition 3, we try different $\alpha$ values. In the first row of Figure 3, we consider $\alpha = 0.05$ for DBGD and $\alpha = 0.9$ for RoSMID. We consider $\rho \in [0.5,0.95]$ . According to the theoretical prediction, both DBGD and RoSMID can tolerate at most $\mathcal{O}(T^{0.95})$ agnostic corruption, which aligns with experiment results. This is because the estimated order of regret is less than 1. In the second row of Figure 3, we consider $\alpha = 0.1$ for DBGD and $\alpha = 0.8$ for RoSMID. According to the theoretical prediction, both DBGD and RoSMID can tolerate at most $\mathcal{O}(T^{0.9})$ agnostic corruption. From the figure, we can see they
+
+have smaller fitted order of regret when $\rho = 0.5$ while at a cost of tolerating smaller magnitude of agnostic corruption (it has linear regret when $\rho = 0.95$ ), which reveals intrinsic tradeoff between efficiency and robustness.
+
+
+Figure 3: In the first row, we consider $\alpha = 0.05$ for DBGD and $\alpha = 0.9$ for RoSMID. In the second row, we consider $\alpha = 0.1$ for DBGD and $\alpha = 0.8$ for RoSMID. Given the $\alpha$ , for each algorithm, we tested its performance under $\rho$ -Imperfect Human feedback with $\rho = 0.5, 0.8, 0.95$ . For each $\rho$ , we presented a line plot of the average regret over five simulations, accompanied by $\pm$ one standard deviation shown by the shaded region. In the legend, $o$ denotes the estimated line slope, calculated using least squares on the last $1\%$ of the data.
+
+# G.1 COMPUTATIONAL COMPLEXITY
+
+Firstly, we emphasize that our robustified algorithm retains the same computational complexity as the originals. This indicates that incorporating robustness does not compromise computational efficiency, ensuring the practicality and scalability of the enhanced algorithm for real-world applications. Specifically, RoSMID has a running time of $O(d^3 T)$ , where the $d^3$ term arises from the singular value decomposition. Similarly, the robustified DBGD algorithm runs in $O(dT)$ , assuming that $P_A(a_t + \delta u_t)$ can be efficiently computed through matrix transformations.
+
+As our work is the first to address corruption-robust learning from a continuous-action strictly concave utility, there is no directly comparable literature for this exact setting. However, we provide relevant comparisons for reference. RCDB (Di et al., 2024), designed for corruption-robust learning in a linear contextual dueling bandit framework, has a running time of $O(K^2 d^2 T)$ , where $K$ is the number of actions. Similarly, Versatile-DB (Saha & Gaillard, 2022), which addresses dueling bandit problems in a multi-armed bandit setting under adversarial attacks, has a running time of $O(K^2 T)$ , where $K$ represents the number of arms. $K^2$ comes from solving $\arg \max_{\boldsymbol{x} \in S} (\langle \boldsymbol{x}, \boldsymbol{y} \rangle - f(\boldsymbol{x}))$ using second order Newton methods and $f$ is a convex function.
\ No newline at end of file
diff --git a/ICLR/2025/Learning from Imperfect Human Feedback_ A Tale from Corruption-Robust Dueling/images.zip b/ICLR/2025/Learning from Imperfect Human Feedback_ A Tale from Corruption-Robust Dueling/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..f57c8841dfcc2b3c38c886241d57e6c31fdb031b
--- /dev/null
+++ b/ICLR/2025/Learning from Imperfect Human Feedback_ A Tale from Corruption-Robust Dueling/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:498c51452e4357e31e14176d79a0f25ec7ef78e9d70c0a5984d15e3965a66230
+size 1193414
diff --git a/ICLR/2025/Learning from Imperfect Human Feedback_ A Tale from Corruption-Robust Dueling/layout.json b/ICLR/2025/Learning from Imperfect Human Feedback_ A Tale from Corruption-Robust Dueling/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..bd6ff23889bac4a40530c83aa0d1905afbe1a294
--- /dev/null
+++ b/ICLR/2025/Learning from Imperfect Human Feedback_ A Tale from Corruption-Robust Dueling/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e5e63620d5b21fb9ecf762bbe0e5b77a3a41bab8c2eedb196a0e1bed41a00121
+size 1595844
diff --git a/ICLR/2025/Learning from weak labelers as constraints/8ef2a964-5e52-4b43-b32a-f6d36c4417ca_content_list.json b/ICLR/2025/Learning from weak labelers as constraints/8ef2a964-5e52-4b43-b32a-f6d36c4417ca_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..7c675888c933ac660a920aaf3fdfa32de84b7032
--- /dev/null
+++ b/ICLR/2025/Learning from weak labelers as constraints/8ef2a964-5e52-4b43-b32a-f6d36c4417ca_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:84d996d8ab548e4a534ffc11d5998c1bff683c250a000f65405e216b2b75ae52
+size 279154
diff --git a/ICLR/2025/Learning from weak labelers as constraints/8ef2a964-5e52-4b43-b32a-f6d36c4417ca_model.json b/ICLR/2025/Learning from weak labelers as constraints/8ef2a964-5e52-4b43-b32a-f6d36c4417ca_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..9913407aa6dc4f752ed62dab709f5bd0eaef95b3
--- /dev/null
+++ b/ICLR/2025/Learning from weak labelers as constraints/8ef2a964-5e52-4b43-b32a-f6d36c4417ca_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d72c132f995dd800ac900689f455ae7b6c40b210f0a352db4dfb3a4b25f27d94
+size 322602
diff --git a/ICLR/2025/Learning from weak labelers as constraints/8ef2a964-5e52-4b43-b32a-f6d36c4417ca_origin.pdf b/ICLR/2025/Learning from weak labelers as constraints/8ef2a964-5e52-4b43-b32a-f6d36c4417ca_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..96550c0b48484c8476c2a839b4e39ae8ea42131c
--- /dev/null
+++ b/ICLR/2025/Learning from weak labelers as constraints/8ef2a964-5e52-4b43-b32a-f6d36c4417ca_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:58afa372a04b532d482afc40a1cbd5599cc0e061597c46af8cae95e5470b0203
+size 607691
diff --git a/ICLR/2025/Learning from weak labelers as constraints/full.md b/ICLR/2025/Learning from weak labelers as constraints/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..ac469314672e449cb311260f46ce1fd8dd5e217c
--- /dev/null
+++ b/ICLR/2025/Learning from weak labelers as constraints/full.md
@@ -0,0 +1,1678 @@
+# LEARNING FROM WEAK LABELERS AS CONSTRAINTS
+
+Vishwajeet Agrawal*, Rattana Pukdee*, Maria-Florina Balcan, Pradeep Ravikumar Carnegie Mellon University
+
+{vishwaja, rpukdee, ninamf, pkr}@cs.cmu.edu
+
+# ABSTRACT
+
+We study programmatic weak supervision, where, in contrast to labeled data, we have access to weak labelers, each of which either abstains or provides noisy labels corresponding to any input. Most previous approaches typically employ latent generative models that model the joint distribution of the weak labels and the latent "true" label. The caveats are that this relies on assumptions that may not always hold in practice, such as conditional independence assumptions over the joint distribution of the weak labelers and the latent true label, and more general implicit inductive biases in the latent generative models. In this work, we consider a more explicit form of side information that can be leveraged to denoise the weak labeler, namely the bounds on the average error of the weak labelers. We then propose a novel but natural weak supervision objective that minimizes a regularization functional subject to satisfying these bounds. This turns out to be a difficult constrained optimization problem due to discontinuous accuracy bound constraints. We provide a continuous optimization formulation for this objective through an alternating minimization algorithm that iteratively computes soft pseudo labels on the unlabeled data satisfying the constraints while being close to the model, and then updates the model on these labels until all the constraints are satisfied. We follow this with a theoretical analysis of this approach and provide insights into its denoising effects in training discriminative models given multiple weak labelers. Finally, we demonstrate the superior performance and robustness of our method on a popular weak supervision benchmark.
+
+# 1 INTRODUCTION
+
+Acquiring high-quality labeled data, which is critical for supervised learning, is often very expensive. The burgeoning field of programmatic weak supervision addresses this caveat by training models from "weak labelers," which are functions that either abstain or provide noisy labels corresponding to any input (Zhang et al., 2022). Such weak labelers could range from domain-expert-specified functions to rule-based systems, heuristics, or even pre-trained models. There are two main challenges in learning a predictor using only weak labelers: each weak labeler covers only part of the input space (due to abstention) and it is typically noisy. Thus, one has to generalize beyond the coverage regions, as well as denoise within them.
+
+To learn from weak labelers, most prior works draw from developments in related fields such as crowdsourcing (Estellés-Arolas & González-Ladrón-de Guevara, 2012; Wazny, 2017), employing latent generative models that model the joint distribution of the weak labels and the latent "true" label. Conditional inference on the true label then provides a natural approach to aggregate multiple noisy labels into less noisy "pseudo-labels" which provide an estimate of the true label. However, this relies on the implicit inductive bias since non-parametric mixture models are known to not be identifiable without any further assumptions (Kasahara & Shimotsu, 2014; Aragam et al., 2020). For example, Snorkel (Ratner et al., 2017; 2018) imposes both (a) conditional independence assumptions among the weak labelers and the true label (b) parametric assumptions on the latent generative model. However, these assumptions might not be applicable and are, in general, difficult to validate with domain experts. In addition, the denoising step does not take advantage of modern hypothesis classes such as deep neural networks. Instead, it is common to follow a two-staged approach: denoising step to estimate pseudo-labels and then train a neural network using these pseudo-labels.
+
+We also note that this learning from weak labelers is closely related to a subfield of learning with noisy labels that also faces a denoising problem (Angluin & Laird, 1988; Blum et al., 1998; Natarajan et al., 2013). Here, we assume that a noisy label is obtained by passing the unknown true label through a noise channel that is usually assumed to be independent of the input (Natarajan et al., 2013). There is also a general noise model that could depend on the input called Massart noise (Massart & Nédélec, 2006) which is known to lead to a computationally hard learning problem (Diakonikolas et al., 2019a; 2022a). A recent line of work shows that we can make headway in this difficult setting, provided we have additional side information such as the marginal distribution is structured (Awasthi et al., 2015; 2016; Diakonikolas et al., 2022b). There have been considerable recent advances in learning under such noise models and other difficult noise models such as the malicious noise model (Awasthi et al., 2014; 2017; Diakonikolas et al., 2018; 2019b; Prasad et al., 2018). However, we remark that results from learning with noisy labels are not directly applicable to our setting since the levels of noise induced by our weak labelers do not satisfy the amount of structure needed by these works.
+
+Regardless, we believe that programmatic weak supervision can considerably benefit from connections with the field of learning from noisy labels and that it forms a rich area of research. As our first step towards leveraging such a connection, we consider the following natural and explicit inductive bias that domain experts might provide, a bound on the accuracy of each weak labeler (similar to a bound on the fraction of corrupted data in the learning from noisy label setting), where accuracy can either be with respect to the target Bayes optimal classifier or with respect to the underlying stochastic label distribution. Our first contribution is to develop a constraint-based approach to aggregate weak labelers by viewing the accuracy bound as a constraint, and accordingly impose this constraint on the model to be learned. We pose the problem as learning the simplest model (with respect to some regularization functional) that satisfies all of these constraints (Section 2). This objective is however difficult along multiple facets: it is a constrained optimization problem, with discontinuous accuracy bound constraints. While there is a rich literature on continuous convex surrogates of classification accuracy (or error), they are not immediately applicable in our setting since a bound on the accuracy does not translate to a bound on any particular surrogate loss, and recall that it is these accuracy bounds that form our domain-expert provided side information.
+
+Our second contribution is a scalable optimization algorithm. This is based on a projection function that projects the model onto the set of all functions that satisfy the constraints. First, we show that the projection objective can be reduced to a linear program when the error bounds are given with respect to the target Bayes optimal classifier (Section 3.1), and a convex optimization problem when they are given with respect to the target label distribution (Section 3.2). The convex optimization problem for the latter case results in an efficient and robust algorithm that can also be used as an approximation when the constraints are given with respect to the target classifier.
+
+Our third contribution is a rigorous analysis of our constrained estimator (Section 4). We note that the traditional statistical learning theoretic tools are not applicable since we have no labeled data. We provide two tools to bound the error of the learned classifier: i) an agreement region based analysis ii) corrected triangle inequality. Both approaches involve disparate denoising coefficients that track the benefit of having multiple rather than a single weak labeler. We further refine this to provide a tighter extension of the bounds from the limited support to the overall space using a subtle Lipschitz notion that might be of independent interest even outside the context of this paper. Lastly, we demonstrate the robustness and competitive performance of our method on a popular weak supervision benchmark (Zhang et al., 2021) in Section 5.
+
+# 2 LEARNING FROM WEAK LABELER CONSTRAINTS
+
+Setup: We consider the general setting of multi-class classification, with input space $\mathcal{X}$ , output space $\mathcal{Y} = \{1,\dots ,K\}$ , joint distribution $P$ over $\mathcal{X}\times \mathcal{Y}$ , and marginal distribution over $\mathcal{X}$ denoted by $P_{X}$ which we assume to be continuous. We use uppercase letters (e.g., $X$ ) to represent random variables and lowercase letters (e.g., $x$ ) for deterministic variables. For a vector $x\in \mathbb{R}^d$ , we denote $x_{k}$ as the $k$ th entry of $x$ . Let $p^{*}(x) = p(y|x)\in \mathbb{R}^{K}$ be the conditional distribution of $y$ given $x$ , and let $f^{*}(x) = \arg \max_{k}p^{*}(x)_{k}$ denote the Bayes optimal classifier. Our goal is to learn a classifier $f:\mathcal{X}\to \mathcal{Y}$ that minimizes the expected misclassification error with respect to the Bayes optimal classifier $f^{*}$ , i.e. minimizes $\operatorname *{Pr}(f(X)\neq f^{*}(X))$ , or the error with respect to the stochastic label
+
+itself: $\operatorname*{Pr}(f(X)\neq Y)$ . In our setting, we assume that we only have access to unlabeled data drawn i.i.d. from $P_{X}$ and weak labelers $\{g_j\}_{j\in [m]}$ , where each weak labeler $g_{j}:\mathcal{X}\to \mathcal{Y}\cup \{\emptyset \}$ maps any point in the instance space to the label space or abstains from prediction (denoted by $\varnothing$ ). We denote the coverage set of the weak labeler by $S_{j}\coloneqq \{x\in \mathcal{X}\mid g_{j}(x)\neq \emptyset \}$ . We consider formulating a classifier from a smooth real-valued function $h:\mathcal{X}\rightarrow \mathbb{R}^{K}$ from some hypothesis class $\mathcal{F}$ e.g. neural networks. This function induces a conditional distribution denoted by $p_h$ , which we obtain by applying the softmax function, $p_h(x)_k = \exp (h(x)_k) / \sum_{i = 1}^K\exp (h(x)_i)$ . For any conditional distribution $p$ such that $\arg \max_y p(x)_y$ is unique for each $x$ , we denote the corresponding classifier as $\operatorname {clf}(p)$ where $\operatorname {clf}(p)(x) = \arg \max_k p(x)_k$ .
+
+Accuracy bounds and the corresponding constraints: We assume we have additional side information about the average error of each weak labeler $g_{j}$ on its coverage set $S_{j}$ . First, this can be an error bound with respect to the Bayes optimal classifier $f^{*}$ given by
+
+$$
+\rho_ {\operatorname {c l f}} \left(g _ {j}, f ^ {*}\right) := \Pr_ {X \sim P _ {X}} \left(g _ {j} (X) \neq f ^ {*} (X) \mid X \in S _ {j}\right) \leq \eta_ {j}. \tag {1}
+$$
+
+Since our target Bayes optimal classifier $f^{*}$ only differs from $g_{j}$ by a fraction of at most $\eta_{j}$ on $S_{j}$ , a natural learning strategy is to encourage our hypothesis to also have the same behavior (differ from $g_{j}$ at most $\eta_{j}$ ). This leads to a constraint $\rho_{\mathrm{clf}}(g_j,\operatorname {clf}(p_f))\leq \eta_j$ . We propose to learn the simplest hypothesis $f$ (with respect to a regularization functional $\mathcal{R}(f)$ ) that satisfies all of these constraints which can be formalized as the following objective with constraints on classifier outputs:
+
+$$
+\min _ {f \in \mathcal {F}} \mathcal {R} (f) \text {s . t .} \rho_ {\operatorname {c l f}} \left(g _ {j}, \operatorname {c l f} \left(p _ {f}\right)\right) \leq \eta_ {j}, \forall j \in [ m ]. \tag {2}
+$$
+
+On the other hand, if we may instead have access to an error with respect to the stochastic labels sampled from $p^*$ , the bound is given by
+
+$$
+\rho_ {\text {d i s t}} \left(g _ {j}, p ^ {*}\right) := \Pr_ {X \sim P _ {X}, Y \sim p ^ {*} (X)} \left(g _ {j} (X) \neq Y \mid X \in S _ {j}\right) \leq \eta_ {j}. \tag {3}
+$$
+
+Here $g_{j}$ is a classifier but $Y$ is a random variable distributed according to $p^{*}(X)$ , so the probability that $g_{j}(x)$ is not equal to $y$ for each $x$ is given by $\sum_{k \neq g_{j}(x)} p^{*}(x)_{k}$ , thus $\rho_{\mathrm{dist}}(g, p^{*}) \equiv \mathbb{E}_{X \sim P_{X}}[\sum_{k \neq g_{j}(x)} p^{*}(x)_{k}]$ . Similar to before, we have the following objective with constraints on classifier probabilistic labels:
+
+$$
+\min _ {f \in \mathcal {F}} \mathcal {R} (f) \text {s . t .} \rho_ {\text {d i s t}} \left(g _ {j}, p _ {f}\right) \leq \eta_ {j}, \forall j \in [ m ] \tag {4}
+$$
+
+# 3 ALGORITHMS
+
+In this section, we will first examine an algorithm for solving the learning objective with constraints on classifiers (equation 2) through an alternating minimization algorithm. This requires a projection step that projects a conditional distribution into the set of conditional distributions that satisfy the constraints. We will describe a method for estimating this projection and show that it can be reduced to a linear program. Finally, we will extend our algorithm to solve the objective with constraints on the distribution (equation 4). We provide proofs for results in this section in Appendix B.
+
+# 3.1 LEARNING OBJECTIVE WITH CONSTRAINTS ON CLASSIFIER
+
+The key challenge in solving equation 2 is that it is a constrained optimization problem and these constraints are not continuous. As a key initial step, we define a projection loss of a conditional distribution $p$ to a class of classifiers that satisfies the constraint. We denote a set of all conditional distributions that satisfy the constraints as
+
+$$
+Q _ {\mathrm {c l f}} = \bigcap_ {j} Q _ {j, \mathrm {c l f}}, \text {w h e r e} Q _ {j, \mathrm {c l f}} = \left\{q: \mathcal {X} \rightarrow \Delta^ {K} \mid \rho_ {\mathrm {c l f}} \left(g _ {j}, \operatorname {c l f} (q)\right) \leq \eta_ {j} \right\}. \tag {5}
+$$
+
+We consider a projection loss from any conditional distribution $p$ to a set of conditional distributions $Q$ given by,
+
+$$
+d (p, Q) = \inf _ {q \in Q} \mathbb {E} _ {X} \left[ D _ {\mathrm {K L}} (q (X) | | p (X)) \right] \tag {6}
+$$
+
+where $D_{\mathrm{KL}}$ is the KL-divergence. We can show that $d(p, Q_{\mathrm{clf}})$ is zero if and only if $p \in Q_{\mathrm{clf}}$ .
+
+Lemma 3.1. For any $p$ such that $\operatorname{clf}(p)$ is well defined, i.e. $\arg \max_y p(x)_y$ is unique for each $x$ , we have $d(p, Q_{\mathrm{clf}}) = 0$ if and only if $p \in Q_{\mathrm{clf}}$ .
+
+From Lemma 3.1, we may replace the constraints in equation 2 with the projection loss instead. This would still lead to the same optimal solution. We have an objective
+
+$$
+\min _ {f \in \mathcal {F}} \mathcal {R} (f) \text {s . t .} d \left(p _ {f}, Q _ {\mathrm {c l f}}\right) = 0 \tag {7}
+$$
+
+We consider a relaxation of this objective into an unconstrained optimization problem,
+
+$$
+\min _ {f \in \mathcal {F}} \mathcal {R} (f) + \alpha \cdot d \left(p _ {f}, Q _ {\mathrm {c l f}}\right) \tag {8}
+$$
+
+where $\alpha$ trades off satisfying the constraints with a notion of simplicity of distribution specified through the regularization. This relaxed objective is now more suitable for a gradient-based optimization since it is continuous. We can rewrite this objective as
+
+$$
+\min _ {q \in Q _ {\mathrm {c l f}}, f \in \mathcal {F}} \mathcal {L} (f, q) := \mathcal {R} (f) + \alpha \mathbb {E} _ {X} [ D _ {\mathrm {K L}} (q (X) | | p _ {f} (X)) ] \tag {9}
+$$
+
+This is a minimization problem in $f \in \mathcal{F}, q \in Q_{\mathrm{clf}}$ for which we propose to use an alternating minimization algorithm where we keep track of a sequence of $(f_t, q_t)$ and update as follows:
+
+1. $f_{t + 1} = \arg \min_{f\in \mathcal{F}}\mathcal{R}(f) + \alpha \mathbb{E}_X[D_{\mathrm{KL}}(q_t(X)||p_f(X))]$ (10)
+2. $q_{t + 1} = \arg \min_{q\in Q_{\mathrm{clf}}}\mathbb{E}_X[D_{\mathrm{KL}}(q(X)||p_{f_{t + 1}}(X))]$ (11)
+
+We can show that this algorithm leads to a sequence of $(f_t, q_t)$ that is decreasing in $\mathcal{L}(f_t, q_t)$ :
+
+Lemma 3.2. A sequence $(f_t, q_t)$ with an update in equation 10 and equation 11 satisfies $\mathcal{L}(f_{t+1}, q_{t+1}) \leq \mathcal{L}(f_t, q_t)$ .
+
+Proof. $\mathcal{L}(f_{t + 1},q_{t + 1})\leq \mathcal{L}(f_{t + 1},q_t)$ from minimization in equation 11 and $\mathcal{L}(f_{t + 1},q_t)\leq \mathcal{L}(f_t,q_t)$ from minimization in equation 10.
+
+Solving step 1 (equation 10). It can be seen that the KL term in equation 10 is simply the cross-entropy loss with respect to the pseudo soft labels given by $q$ . Thus this first step of the alternating minimization algorithm simply fits a regularized classifier to these pseudo labels. Further, one does not need to estimate the exact minima at each step, as long as the next iterate reduces the objective, i.e. $\mathcal{L}(f_{t + 1},q_{t + 1}) < \mathcal{L}(f_t,q_t)$ . Thus one can take a single or few steps of gradient descent in equation 10 to get $f_{t + 1}$ from $f_{t}$ .
+
+Solving step 2 (equation 11). This step of the alternating minimization algorithm computes the soft pseudo labels on the training data so that the constraints are satisfied. This is a much more involved step, which we detail in the following section, where we show that estimating the projection $q_{t}$ can be reduced to a linear program. Before doing so, we first remark that the constraints on classifiers may not be robust to a small perturbation. For example, if one has a uniform conditional distribution $p_{\mathrm{unif}} = (1 / K,\dots ,1 / K)$ , we can make a small perturbation $\Delta p$ of size at most $\epsilon$ such that $\operatorname {clf}(p_{\mathrm{unif}} + \Delta p) = k$ for any label $k$ . This implies that there exists a conditional distribution $p$ such that $d(p,Q)$ is small but $\operatorname {clf}(p)$ can be arbitrary.
+
+Lemma 3.3. Let $Q = \{q\in \mathcal{X}\to \Delta^K\mid \operatorname {clf}(q)\in \mathcal{H}\}$ for some set of classifiers $\mathcal{H}$ . For any $\epsilon >0$ and any classifier $f$ , there exists a conditional distribution $p$ such that $\operatorname {clf}(p) = f$ and $d(p,Q) < \epsilon$ .
+
+To alleviate this problem, we enforce an additional constraint by making sure that $q$ puts a higher probability on one label than the rest,
+
+$$
+\Lambda_ {\epsilon} := \{q \in \mathcal {X} \rightarrow \Delta^ {K} \mid \text {f o r e a c h} x, \exists y: q (x) _ {y} \geq (1 + \epsilon) q (x) _ {k} \text {f o r} k \neq y \} \tag {12}
+$$
+
+With this additional constraint, we can show that $d(p, Q)$ bounds the error in satisfaction of the classifier constraints, and further show that the projection problem can be solved efficiently.
+
+Proposition 3.4. For any $\epsilon, \nu > 0$ there exists $\delta(\epsilon, \nu) > 0$ such that if $d(p, \Lambda_{\epsilon} \cap Q_{\mathrm{clf}}) < \delta(\epsilon, \nu)$ then $\rho_{\mathrm{clf}}(g_j, \operatorname{clf}(p)) \leq \eta_j + \nu / |S_j|$ , where $|S_j| = P_X(X \in S_j)$ is the size of coverage set $S_j$ of weak labeler $g_j$ with respect to marginal distribution $P_X$ .
+
+Proposition 3.5. Given $Q = \Lambda_{\epsilon} \cap Q_{\mathrm{clf}}$ for $\Lambda_{\epsilon}$ defined in equation 12 and $Q_{\mathrm{clf}}$ defined in equation 5, for any conditional distribution $p$ , the optimal projection $q^{*} = \arg \min_{q \in Q} \mathbb{E}[D_{KL}(q(X)||p(X))]$ can be found as follows,
+
+1. Solve for optimal $\operatorname{clf}(q^*)$ as
+
+$$
+\operatorname {c l f} \left(q ^ {*}\right) = \underset {h \in \mathcal {X} \rightarrow \mathcal {Y}} {\arg \min } \mathbb {E} _ {X} \left[ \operatorname {P r o j} _ {K L} (p (X); \Delta_ {h (X), \epsilon} ^ {K}) ]: \rho_ {\operatorname {c l f}} \left(g _ {j}, h\right) \leq \eta_ {j} \right. \tag {13}
+$$
+
+where
+
+$$
+\Delta_ {y, \epsilon} ^ {K} = \left\{r \in \Delta^ {K} \mid r _ {y} \geq (1 + \epsilon) r _ {k}, \forall k \neq y \right\},
+$$
+
+$$
+\operatorname {P r o j} _ {K L} (u; S) = \min _ {r \in S} D _ {K L} (r \| u). \tag {14}
+$$
+
+2. Solve for an optimal distribution $q^{*}$ given the optimal $\operatorname {clf}(q^*)$ . For each $x$
+
+$$
+q ^ {*} (x) = \arg \min _ {r} D _ {K L} (r \| p (x)): r \in \Delta_ {\operatorname {c l f} \left(q ^ {*}\right) (x)} ^ {K, \epsilon} \tag {15}
+$$
+
+A key ingredient is the subset of the simplex $\Delta_{y,\epsilon}^{K}$ , comprising probabilities that are more confident about the label $y$ with some margin $\epsilon$ . For any $u \in \Delta^{K}$ , and label $y \in [K]$ , $\operatorname{Proj}_{\mathrm{KL}}(u; \Delta_{y,\epsilon}^{K})$ is a convex optimization problem since the objective $D_{\mathrm{KL}}(r||u)$ is convex in $r$ and the constraints in $\Delta_{y,\epsilon}^{K}$ are linear. While we can use a black box convex optimization solver, we solve this more efficiently by reparameterizing into an unconstrained objective and using a fast heuristic approximation (see Appendix D.2 for more details).
+
+Given $c(x,y) = \mathrm{Proj}_{\mathrm{KL}}(p(x);\Delta_{y,\epsilon}^{K})$ for each $x,y$ , the optimization in step 1 can be framed as an integer linear programming (ILP) problem by using a one-hot representation of the optimizing variable $h$ as $\mu : \mathcal{X} \to \{0,1\}^K$ , with $\mu(x)_y = 1$ for $y = h(x)$ and $\mu(x) = 0$ otherwise. The objective then becomes $\mathbb{E}_X[\sum_{y=1}^K \mu(X)_yc(X,y)]$ and the constraint $\rho_{\mathrm{clf}}(g_j,h) \leq \eta_j$ becomes $\mathbb{E}[\sum_{y \neq g_j(X)} \mu(X)_y] \leq \eta_j$ . For each $x$ , we have an additional constraint $\sum_{y=1}^K \mu(x)_y = 1$ . Both the objective and constraints are linear in $\mu$ , resulting in an ILP. ILPs are usually inefficient to solve, however, we find empirically that the LP relaxation works very well for this class of ILPs (see Appendix D.1 for more details). One issue with solving the ILP is that it can still be slow even with LP relaxation since it involves one constraint for each unlabeled data $x$ . We also can't take a small batch size when using a stochastic gradient descent since the constraints involve the population means of the weak labeler accuracies. Finally, this is not robust to misspecification of the error bounds, as the constraints might become infeasible. In the next section, we propose our method for the learning objective with constraints on distribution (equation 4). Interestingly, we found that it can also be viewed as an approximation of the algorithm presented in this section, yet it overcomes issues of efficiency and robustness, resulting in a more practical solution that is effective in both settings.
+
+# 3.2 LEARNING OBJECTIVE WITH CONSTRAINTS ON DISTRIBUTION
+
+Let $Q_{\mathrm{dist}}$ be the set of conditional distributions that satisfy the constraints on distribution,
+
+$$
+Q _ {\text {d i s t}} = \bigcap_ {j} Q _ {j, \text {d i s t}}, \text {w h e r e} Q _ {j, \text {d i s t}} = \left\{q: \mathcal {X} \rightarrow \Delta^ {K} \mid \rho_ {\text {d i s t}} \left(g _ {j}, q\right) \leq \eta_ {j} \right\}. \tag {16}
+$$
+
+Now, with a similar proof, we would also have a version of Lemma 3.1 for the constraints on distribution, and further $d(p, Q_{\mathrm{dist}})$ bounds the error in satisfying the constraints without the need of imposing any additional constraint.
+
+Proposition 3.6. For $Q_{\mathrm{dist}}$ defined in equation 16, we have $d(p, Q_{\mathrm{dist}}) = 0$ if and only if $p \in Q_{\mathrm{dist}}$ . Furthermore, for any $\nu > 0$ there exists $\delta(\nu) > 0$ such that if $d(p, Q_{\mathrm{dist}}) < \delta(\nu)$ then $\rho_{\mathrm{dist}}(g_j, p) \leq \eta_j + \nu / |S_j|$ , where $|S_j| = P_X(S_j)$ is the size of coverage set $S_j$ of weak labeler $g_j$ with respect to marginal distribution $P_X$ .
+
+This allows us to derive the same alternating minimization algorithm as in equation 10 and equation 11. While the first step is identical, the main benefit of working with the constraints on distribution is that the second projection step can be directly posed as a convex optimization problem.
+
+$$
+\min _ {q: \mathcal {X} \mapsto \Delta^ {| K |}} \mathbb {E} [ D _ {\mathrm {K L}} (q (X) | | p (X)) ] \quad s. t. \quad \mathbb {E} [ q (X) _ {g _ {j} (X)} | x \in S _ {j} ] \geq 1 - \eta_ {j}, \forall j \in [ m ]. \tag {17}
+$$
+
+We can also derive the optimal solution of equation 17.
+
+Proposition 3.7. Given $Q_{\mathrm{dist}}$ as defined in equation 16, for any conditional distribution $p$ , the optimal projection $q^{*} = \arg \min_{q\in Q_{\mathrm{dist}}}\mathbb{E}[D_{KL}(q(X)||p(X))]$ is given by $q^{*} = p^{\lambda^{*}}$ where
+
+$$
+p ^ {\boldsymbol {\lambda}} (x) _ {y} := Z _ {\boldsymbol {\lambda}} (x) \exp \left(\sum_ {j: g _ {j} (x) = y} \boldsymbol {\lambda}\right) p (x) _ {y} \tag {18}
+$$
+
+$Z_{\lambda}(x)$ is the normalization constant. The optimal $\lambda^{*}$ is given by the following optimization:
+
+$$
+\boldsymbol {\lambda} ^ {*} = \min _ {\boldsymbol {\lambda} \geq \mathbf {0}} \sum_ {j = 1} ^ {m} \boldsymbol {\lambda} _ {j} \quad s. t. \quad \rho_ {\text {d i s t}} \left(g _ {j}, p ^ {\boldsymbol {\lambda}}\right) \leq \eta_ {j} \forall j \in [ m ] \tag {19}
+$$
+
+The optimization for $\lambda^{*}$ can be solved by a coordinate-wise alternating minimization. Given the current iterate $\lambda$ , pick some $j$ , and update $\lambda_{j}$ as
+
+$$
+\lambda_ {j} = \min _ {\lambda \geq 0} \lambda \text {s . t .} \rho_ {\operatorname {d i s t}} \left(g _ {j}, p ^ {\lambda}\right) = 1 - \mathbb {E} \left[ Z _ {\lambda} (x) \exp (\lambda) p ^ {\lambda - j} (X) _ {g _ {j} (X)} \right] \leq \eta_ {i} \tag {20}
+$$
+
+where $\lambda_{-j} = (\lambda_1, \dots, \lambda_{j-1}, 0, \lambda_{j+1}, \dots, \lambda_m)$ . Note that while optimizing for a particular coordinate $\lambda_j$ , we only consider the constraint associated with $g_j$ . This can be seen as a relaxation of the true constraint, which is an intersection of $m$ constraints. While this does not ensure satisfaction of all of the constraints as the alternating minimization proceeds, it lends us a simple method to solve this by a Newton-Raphson root-finding method as follows:
+
+Reset: $\lambda_{i} = 0$
+
+Repeat until convergence: $\lambda_{i}\gets \lambda_{i} + \log (1 + (1 - \eta_{i} - \tau_{i}(h_{i}))_{+} / \tau_{i}(h_{i}(1 - h_{i})))$
+
+$$
+h _ {i} (x) = p ^ {\lambda} (x) _ {g _ {i} (x)} \tag {21}
+$$
+
+$$
+\tau_ {i} (h) = \mathbb {E} [ h (X) | X \in S _ {i} ]
+$$
+
+For derivations and proofs, see appendix B. For computational efficiency, we also propose a single parallel update for all $\lambda_{i}$ instead of performing the alternating minimization sequentially by using a single step of the above Newton-Raphson method parallelly across all $i$ given the starting point $\lambda = 0$ as:
+
+$$
+\boldsymbol {\lambda} _ {i} = \log (1 + (1 - \eta_ {i} - \tau_ {i} (p _ {i})) _ {+} / \tau_ {i} (p _ {i} (1 - p _ {i}))), (p _ {i} (x) = p (x) _ {g _ {i} (x)}). \tag {22}
+$$
+
+This does not give an exact projection of $p$ on $Q_{\mathrm{dist}}$ , but can be thought of as an approximate projection that finds a $q$ that is closer to $Q_{\mathrm{dist}}$ than $p$ is to $Q$ , on average. Overall, we summarize our learning algorithm (equation 10, equation 11) with our proposed projection step below,
+
+Summary of our learning algorithm. We have an alternating minimization algorithm where we track the pair $(f_t, q_t)$ . Here, $f_t: \mathcal{X} \to \mathbb{R}^K$ is a real-valued function from our hypothesis class (e.g., neural networks), and $q_t$ represents its projection onto the set of distributions that satisfy our constraints. At each iteration $t$ , we perform the following steps
+
+# 1. Estimate $q_{t + 1}$ given $f_t$ .
+
+(a) Calculate a conditional distribution given by $f_{t}$ with a softmax function $\sigma$ ,
+
+$$
+p _ {f _ {t}} (x) = \operatorname {s o f t m a x} \left(f _ {t} (x)\right) \in \Delta^ {K} \tag {23}
+$$
+
+(b) We use a one-step parallel Newton-Raphson update to calculate $\lambda_{j}$ for each weak labeler $j$ (equation 22). For simplicity, for each unlabeled data $x_{i}$ for $i = 1,\dots ,n$ , we denote the $g_{j}(x_{i})^{th}$ coordinate of $p_{f_t}(x_i)$ as $z_{ij} \coloneqq p_{f_t}(x_i)_{g_j(x_i)}$ then
+
+$$
+\boldsymbol {\lambda} _ {j} = \log (1 + (1 - \eta_ {j} - \frac {1}{c _ {j}} \sum_ {i: g _ {j} (x _ {i}) \neq \emptyset} z _ {i j}) _ {+} / (\frac {1}{c _ {j}} \sum_ {i: g _ {j} (x _ {i}) \neq \emptyset} (z _ {i j}) (1 - z _ {i j}))), \tag {24}
+$$
+
+$c_{j}$ is the number of data points that $g_{j}$ does not abstain, $c_{j} = \sum_{i = 1}^{n}1[g_{j}(x_{i})\neq \emptyset ]$
+
+(c) Finally, we use $\lambda$ to calculate $q_{t + 1}(x)$ . We first compute the unnormalized version of $q_{t + 1}$ ,
+
+$$
+\tilde {q} _ {t + 1} \left(x _ {i}\right) _ {k} = p _ {f _ {t}} \left(x _ {i}\right) _ {k} \exp \left(\sum_ {j: g _ {j} \left(x _ {i}\right) = k} \boldsymbol {\lambda} _ {j}\right). \tag {25}
+$$
+
+Then $q_{t + 1}(x_i) = \tilde{q}_{t + 1}(x_i) / \sum_{k = 1}^{K}\tilde{q}_{t + 1}(x_i)_k$ .
+
+2. Estimate $f_{t + 1}$ given $q_{t + 1}$ . This step is equivalent to fitting a $f_{t + 1}$ with respect to the soft pseudo labels given by $q_{t + 1}$ . Our loss of $f_{t}$ is given by
+
+$$
+\mathcal {L} \left(f _ {t}; q _ {t + 1}\right) = \mathcal {R} \left(f _ {t}\right) + \alpha \cdot \frac {1}{n} \sum_ {i = 1} ^ {n} \ell_ {\mathrm {C E}} \left(f _ {t} \left(x _ {i}\right), q _ {t + 1} \left(x _ {i}\right)\right)
+$$
+
+where $\ell_{\mathrm{CE}}$ is a cross-entropy loss. We then update $f_{t + 1}$ with a gradient descent; $f_{t + 1} = f_t - \nu \cdot \nabla \mathcal{L}$ where $\nu$ is a learning rate.
+
+We also provide a compact version of our algorithm in Algorithm 1 in Appendix C. Finally, we remark that the sets $Q_{j,\mathrm{dist}}$ can also be viewed as a convex approximation of the constraint sets $Q_{j,\mathrm{clf}}$ (see Appendix E for more details). Therefore, the method developed in this section is also applicable (as an approximation) for the setting of constraints on classifiers but it is more efficient and also robust to misspecification in error bounds $\eta_j$ compared to the algorithm in Section 3.1.
+
+# 4 THEORETICAL ANALYSIS OF THE OBJECTIVE
+
+In this section, we provide some theoretical insights into the denoising effect of weak labeler constraints. We focus on the setting of constraints on classifiers (estimation objective equation 2). We learn a conditional distribution $p_f$ and thus correspondingly a classifier $\operatorname{clf}(p_f)$ that minimizes a regularization functional $\mathcal{R}(f)$ subjected to weak labeler constraints. Minimizing $\mathcal{R}(f)$ implicitly defines a hypothesis class of classifiers as $\mathcal{F} = \{\operatorname{clf}(p_f) : \mathcal{R}(f) < \delta\}$ for some $\delta > 0$ . Let $\mathcal{H}_j = \{h : \mathcal{X} \to [K] \mid \rho_{\mathrm{clf}}(g_j, h) \leq \eta_j\}$ (here $\mathcal{H}_j$ is a set of classifiers that differ from $Q_j$ which is a set of conditional distributions). We learn a classifier $f \in \widetilde{\mathcal{F}} := \mathcal{F} \cap \bigcap_j \mathcal{H}_j$ . The constraints lead to a smaller class $\widetilde{\mathcal{F}} \subseteq \mathcal{F}'$ , which implies that a typical measure of complexity $\mathcal{V}$ of the function class $\widetilde{\mathcal{F}}$ such as Rademacher complexity is also smaller than $\mathcal{F}$ . Thus, we can quantify the benefit of the weak labeler constraints via the ratio $\mathcal{V}(\widetilde{\mathcal{F}}) / \mathcal{V}(\mathcal{F})$ . However, such a function class statistical complexity analysis merely makes the natural qualitative point that we require less labeled data to learn from $\widetilde{\mathcal{F}}$ than $\mathcal{F}$ . It does not provide a bound per se on the accuracy of our learned classifier, because we are not using any labeled data to select $f$ .
+
+# 4.1 ERROR GUARANTEE ON AGREEMENT REGION
+
+Recall that we minimize $\mathcal{R}(f)$ subject to satisfying constraints. We start with the observation that the weak labeler constraint directly restricts the output of a classifier to be similar to that of the weak labeler in its coverage set. For example, given a weak labeler that makes a constant prediction in a small region, any linear separator that satisfies the accuracy bound constraint can only slice off the coverage set by a fraction of at most $\eta$ (Figure 1 (left)). This leads to an area in the middle where the decision boundary can't pass through: otherwise, the classifier would differ too much from the weak labeler. This resembles the classical notion of agreement regions (Cohn et al., 1994; Balcan et al., 2006), which we thus use to characterize the impact of weak labelers on $\mathcal{F}$ .
+
+Definition 4.1. For a set of classifiers $F$ , the agreement region is the set of all points where any classifier in $F$ agrees, $\mathrm{Agree}(F) = \{x \in \mathcal{X} \mid \forall f_1, f_2 \in F, f_1(x) = f_2(x)\}$ .
+
+Under realizability, we can show that the error of any $f \in \widetilde{\mathcal{F}}$ in the agreement region is zero. Furthermore, we can show that as multiple constraints are used, the resulting agreement region will always be larger than or equal to the union of agreement regions for individual constraints. In Figure 1, we provide an example with linear classifiers where the agreement regions from multiple constraints are larger than the union of the agreement region from each individual constraint. This is a possible explanation of the implicit denoising effect of multiple weak labelers when learning from a function class $\mathcal{F}$ . Formally, we denote an error of a classifier $f$ within the set $S$ as
+
+$$
+\operatorname {e r r} _ {S} (f) := \Pr (f (X) \neq f ^ {*} (X) \mid S). \tag {26}
+$$
+
+Lemma 4.2. For any function class $\mathcal{F}$ , and corresponding constrained class $\widetilde{\mathcal{F}}$ , so long as $f^{*} \in \widetilde{\mathcal{F}}$ , for any $f \in \widetilde{\mathcal{F}}$ , $\mathrm{err}_{\mathrm{Agree}(\widetilde{\mathcal{F}})}(f) = 0$ .
+
+Lemma 4.3. For a function class $\mathcal{F}$ and constraints $\mathcal{H}_1, \mathcal{H}_2$ , we have
+
+$$
+\operatorname {A g r e e} (F \cap \mathcal {H} _ {1}) \cup \operatorname {A g r e e} (F \cap \mathcal {H} _ {2}) \subseteq \operatorname {A g r e e} (F \cap \mathcal {H} _ {1} \cap \mathcal {H} _ {2}).
+$$
+
+
+Figure 1: The figure shows the agreement region of the class of linear separators given two weak labeler constraints: one weak labeler labels red in the red circle, and the other labels blue in the blue circle. A linear separator can only differ from each weak labeler by a fraction of $\eta$ of its support, and therefore the agreement region is given by the middle region of each coverage set (left). The agreement regions from multiple constraints are larger than the union of the agreement region from each individual constraint (right).
+
+# 4.2 ERROR GUARANTEE ON THE COVERAGE UNION
+
+In the previous section, we used the geometry of constrained function classes in general. Here, we note that the specific form of our constraints (weak labelers error bound) naturally leads to an error guarantee via triangle inequality.
+
+Lemma 4.4. Let $\mathcal{H}_j = \{h : \mathcal{X} \to [K] \mid \rho_{\mathrm{clf}}(g_j, h) \leq \eta_j\}$ then for any $f \in \mathcal{H}_j$
+
+$$
+\operatorname {e r r} _ {S _ {j}} (f) \leq \eta_ {j} + \rho_ {\mathrm {c l f}} \left(g _ {j}, f ^ {*}\right) \tag {27}
+$$
+
+We show that it is possible to have a better guarantee than the combination of the error bound from the triangle inequality when we have multiple constraints with conflicting regions.
+
+Theorem 4.5. Let $\mathcal{H}_1, \ldots, \mathcal{H}_k$ be constraints of the form $\mathcal{H}_j = \{h : \mathcal{X} \to [K] \mid \rho_{\mathrm{clf}}(g_j, h) \leq \eta_j\}$ , each with different constant weak labels, $g_j(X) = j - 1$ for all $j = 1, \ldots, k$ , then for any $f \in \bigcap_j \mathcal{H}_j$ , we have
+
+$$
+\operatorname {e r r} _ {S} (f) \leq \sum_ {j = 1} ^ {k} \left(\eta_ {j} + \rho_ {\mathrm {c l f}} \left(g _ {j}, f ^ {*}\right)\right) \frac {\Pr \left(S _ {j}\right)}{\Pr (S)} - \sum_ {\substack {\sigma \subseteq \{1, \dots , k \}, \\ |\sigma | \geq 2}} (2 | \sigma | - 3) \frac {\Pr \left(B _ {\sigma}\right)}{\Pr (S)}. \tag{28}
+$$
+
+when $S = \bigcup_{j=1}^{k} S_{j}$ , $B_{\sigma} = \left(\bigcap_{i \in \sigma} S_{i}\right) \cap \left(\bigcap_{i \in \{1, \ldots, k\} \setminus \sigma} S_{i}^{c}\right)$ are minterms.
+
+The first term on the RHS is the error guarantee from naively combining multiple error guarantees based on the triangle inequality. The improvement is in the second term which is the region where weak labelers have a conflict $(B_{\sigma})$ , more conflict leads to a better error bound. The main idea is that whenever there is a conflict, a classifier can match with only one weak labeler. Therefore, to be approximately close to all weak labelers, it must closely match the other weak labelers in areas outside of the conflict. We note that while our result is applicable to when each weak labeler has a different label if we have multiple weak labelers that predict the same label, we can merge them into a super weak labeler by combining the coverage region e.g. $S_{1} \cup S_{2}$ and then derive the new $\eta$ as a linear combination of $\eta_{1}, \eta_{2}$ e.g. $\eta = \frac{\eta_{1} \operatorname*{Pr}(S_{1}) + \eta_{2} \operatorname*{Pr}(S_{2})}{\operatorname*{Pr}(S_{1}) + \operatorname*{Pr}(S_{2})}$ , before applying Theorem 4.5.
+
+# 4.3 EXTENDING ERROR GUARANTEES TO ENTIRE INPUT SPACE
+
+The previous two sections provided error guarantees in subsets of the input space: the first over the agreement region of the constrained function class, and the second on the union of the coverage sets of the weak labelers. In this section, we provided a more nuanced analysis based on a smoothness argument which can be used to generalize beyond the coverage set or the agreement region. Intuitively, if $f$ performs well on one region, and the underlying probability distribution is smooth then we would expect it to perform well in a neighbor region as well.
+
+Theorem 4.6. Let $P$ be a joint distribution over $\mathcal{X} \times \mathcal{Y}$ such that $\operatorname*{Pr}(Y = y \mid X = x)$ is $L$ -Lipschitz w.r.t. a metric $d$ where for all $k = 1, \ldots, K$ and $x_1, x_2 \in \mathcal{X}$ ,
+
+$$
+\left| \Pr (Y = k \mid X = x _ {1}) - \Pr (Y = k \mid X = x _ {2}) \right| \leq L d \left(x _ {1}, x _ {2}\right), \tag {29}
+$$
+
+then for any classifier $f$ and a region $S$ , we have
+
+$$
+\Pr (f (X) \neq Y) \leq \Pr (f (X) \neq Y \mid X \in S) (1 + t _ {f} (S)) + L u _ {f} (S) \tag {30}
+$$
+
+The terms $t_f(S), u_f(S)$ are distance between $P_X$ and $P_X$ condition on $X \in S$ ,
+
+$$
+t _ {f} (S) = \sup _ {k} \left| \frac {\Pr (f (X) = k \mid X \in S) - \Pr (f (X) = k)}{\Pr (f (X) = k \mid X \in S)} \right| \tag {31}
+$$
+
+$$
+u _ {f} (S) = \sum_ {k} \Pr (f (X) = k) W _ {d} \left(P _ {X \mid S \cap \{x \mid f (x) = k \}}, P _ {X \mid \{x \mid f (x) = k \}}\right) \tag {32}
+$$
+
+and $W_{d}$ is a Wasserstien distance and we denote $P_{X|A}$ for a distribution $P_{X}$ condition on $X \in A$ .
+
+In this theorem, we analyze an error w.r.t. to $y$ instead of $f^{*}$ since we require the smoothness of the underlying data distribution. The generalization bound is small whenever $P_{X}$ is close to $P_{X}$ condition on $X\in S$ . First, $t_f(S)$ is zero whenever $\operatorname *{Pr}(f(X) = k\mid X\in S) = \operatorname *{Pr}(f(X) = k)$ for all $k$ , that is, the proportion of label $k$ predicted by $f$ is the same in both original distribution and the distribution conditional on $S$ . Second, $u_{f}(S)$ is a bit stronger where it is small when the Wasserstein distance is small which is when $S$ covers areas with high probability mass in $\mathcal{X}$ . The smoothness of $f$ is implicit in the term $u_{f}(S)$ in terms of the regions $\{x\mid f(x) = k\}$ . We provide full proof in Appendix I. We remark that $t_f(S),u_f(S)$ only depends on the marginal distribution and, therefore, can be calculated solely from unlabeled data for any classifier $f$ .
+
+# 5 EXPERIMENTAL EVALUATION
+
+
Bio
CDR
Chem
IMDB
Semeval
TREC
Yelp
Youtube
Avg. rank
Sup (V)
64.21.1
59.90.6
35.91.4
64.31.3
59.63.0
52.13.7
73.41.4
80.91.2
6.8
MV
56.40.4
68.40.4
52.60.5
75.70.7
65.32.5
37.31.1
69.10.5
82.20.6
5.8
Snorkel
63.40.5
61.20.4
41.81.0
71.30.6
59.21.0
33.41.7
71.80.9
76.81.3
7.8
LoL(S)
55.50.8
67.40.4
51.60.4
75.30.6
53.42.0
38.72.8
70.61.4
79.10.9
7
Ours (C)
63.50.5
68.50.7
52.20.8
74.31.3
67.52.1
46.72.7
78.60.5
80.71.3
4.6
Ours (V)
62.60.8
67.90.5
53.30.5
72.51.1
79.42.4
63.12.1
75.30.7
90.21.4
4.1
Sup (T)
75.40.8
80.70.5
80.10.2
81.40.6
82.91.9
66.92.3
87.00.3
89.70.6
1.1
Ours (T)
64.80.7
69.10.2
55.60.3
74.81.1
77.31.4
66.32.9
78.30.3
88.00.4
2.8
Oursclf(T)
60.90.9
66.00.4
49.80.7
73.31.0
81.01.9
57.21.2
75.80.5
87.30.3
5.1
+
+Table 1: Average test accuracy and the corresponding standard error (over 5 random train-val-test split of the data) of our proposed algorithm and the baselines. We bold methods that are within a standard error of the best-performing method. Sup (T) and Sup (V) are supervised learning on the training set and the validation set respectively. MV, Snorkel, and Lol(S) are Majority vote, Snorkel, and Losses over labels (Simple) baselines. Ours is our proposed method (Algorithm 1) with different ways to estimate the error bound $\eta_{j}$ . Ours (V) is when we estimate $\eta_{j}$ from the labels from the validation set, given a Beta(1,2) prior. Ours (C) is when we use a constant $\eta_{j}$ and tune this on the validation set. Ours (T) is when $\eta_{j}$ is estimated from the labels from the training set. Finally, Oursclf is our algorithm with respect to constraints on the classifier (Section 3.1).
+
+Experiment details: We show a comparison of our proposed method and baselines on 8 text classification datasets from the WRENCH benchmark Zhang et al. (2021). We provide the dataset statistics in Appendix G.1. For all methods and datasets, we use a neural network with a single hidden layer and a hidden size of 16 on top of the pre-trained BERT text embeddings. The neural network is trained with a full batch gradient descent with an Adam optimizer with a learning rate in [0.001, 0.003, 0.01], weight decay in [0.001, 0.003, 0.01] and a number of epochs in range(1, 500, 5). We tune these hyperparameters on the validation set of size 100 for each dataset. For our proposed method, we implement Algorithm 1 with an L2 regularization. Since the WRENCH benchmark does not provide error bounds $\eta_{j}$ for each weak labeler, we consider 3 strategies to estimate $\eta_{j}$ ; i) we estimate $\eta_{j}$ from the labels from the validation set, given a $\mathrm{Beta}(1,2)$ prior, ii) we treat $\eta_{j}$ as a fixed constant $\eta$ for all weak labelers and tune this $\eta$ on the validation set, iii) we estimate $\eta_{j}$ from the labels from the training set which we treat as a ground truth error of each weak labeler.
+
+See Appendix F for more details on estimating error bound from the validation set. Finally, we also implement our algorithm with respect to constraints on the classifier (Section 3.1) with a linear programming relaxation of the integer linear program (see Appendix G.3 for more details).
+
+Baselines: We compare with three baselines: Majority Vote (MV), Snorkel Metal (Ratner et al., 2017) and Losses over Labels simple (LoL (S)) (Sam & Kolter, 2023). The majority vote and Snorkel are two-staged approaches where we first aggregate weak labels and then train a neural network on the aggregated labels. The Majority vote simply takes the majority vote between the non-abstain weak labels for each data point while Snorkel deploys a latent generative model to estimate soft labels from the weak labels. On the other hand, Losses over Labels (simple) is a one-staged approach that directly minimizes a weighted linear combination of the loss with respect to each weak labeler. We also compare to a baseline of simply performing supervised learning on labels from the validation set, to avoid concerns regarding possibly large validation sets as raised by Zhu et al. (2023).
+
+Results: Our proposed method (Ours (V)) is the best performing approach compared to other baselines (Table 1). This does not solely come from the fact that we have a large number of labels in the validation set since supervised learning on the validation set (with the best hyperparameters) still performs worse than ours on almost every dataset. Surprisingly, our method with a constant $\eta_{j}$ (Ours (C)), also performs competitively and is the second best performing approach overall. On the other hand, having access to a more accurate error bound can lead to a performance increase across the board (Ours (T)). In addition, we found that most constraints are satisfied by the models trained by our algorithms (see Table G.2).
+
+Ablation on noisy weak labeler error bounds: We assume that the error bound $\eta_{j}$ is given as a form of domain knowledge (or estimated from a small validation set). As such, we may have $\eta_{j}$ that can be far from the ground truth error. In this section, we explore this impact on the performance of our algorithm and we do so by adding noise to the "ground truth" $\eta_{j}$ (estimated from the training labels), given by $\tilde{\eta}_{j} = \eta_{j} + \epsilon, \epsilon \sim \mathrm{Uniform}(-a, a)$ and use $\tilde{\eta}_{j}$ as inputs of our algorithm. We see that our algorithm is quite robust and the performance drops graciously as the noise level increases (Figure 2).
+
+
+Figure 2: Impact of using noisy error bounds $\tilde{\eta}_j = \eta_j + \epsilon, \epsilon \sim \mathrm{Uniform}(-a,a)$ for $a \in [0,0.5]$ . The accuracy is averaged over 5 random splits of data and the shaded area is the standard error.
+
+# 6 CONCLUSION
+
+In this paper we provided a principled approach to learn from weak labelers - weak classifiers that label a subset of the input space, without making stringent assumptions about dependencies between them, or about their noise model. Instead, we consider the expected error / accuracy as the only source of information that characterizes the weakness of labelers. This information can either be given by domain experts or can be estimated from a small amount of labeled data given only a weak prior on the accuracy. We finally proposed a robust and scalable algorithm that can learn from multiple noisy weak labelers even when only noisy estimates of expected errors are provided. An interesting future direction could be to combine information about dependencies between weak labelers when such information is given along with the information about the expected error, as well as developing alternative techniques based on mixed integer linear programming for solving our constraint-based approach to aggregate weak labelers by viewing the accuracy bound as a constraint.
+
+# ACKNOWLEDGMENTS
+
+We acknowledge the support of NSF via IIS-2211907 and IIS-1901403, ONR via N00014-23-1-2368 and Bloomberg Data Science Fellowship.
+
+# REFERENCES
+
+Dana Anglun and Philip Laird. Learning from noisy examples. Machine Learning, 2:343-370, 1988.
+Chidubem Arachie and Bert Huang. Constrained labeling for weakly supervised learning. Uncertainty in Artificial Intelligence, pp. 236-246, 2021.
+B Aragam, C Dan, E Xing, and P Ravikumar. Identifiability of nonparametric mixture models and bayes optimal clustering. The annals of statistics, 48(4), 2020.
+Abhijeet Awasthi, Sabyasachi Ghosh, Rasna Goyal, and Sunita Sarawagi. Learning from rules generalizing labeled exemplars. arXiv preprint arXiv:2004.06025, 2020.
+Pranjal Awasthi, Maria Florina Balcan, and Philip M Long. The power of localization for efficiently learning linear separators with noise. In Proceedings of the forty-sixth annual ACM symposium on Theory of computing, pp. 449-458, 2014.
+Pranjal Awasthi, Maria-Florina Balcan, Nika Haghtalab, and Ruth Urner. Efficient learning of linear separators under bounded noise. In Conference on Learning Theory, pp. 167-190. PMLR, 2015.
+Pranjal Awasthi, Maria-Florina Balcan, Nika Haghtalab, and Hongyang Zhang. Learning and 1-bit compressed sensing under asymmetric noise. In Conference on Learning Theory, pp. 152-192. PMLR, 2016.
+Pranjal Awasthi, Maria Florina Balcan, and Philip M Long. The power of localization for efficiently learning linear separators with noise. Journal of the ACM (JACM), 63(6):1-27, 2017.
+Stephen H Bach, Bryan He, Alexander Ratner, and Christopher Ré. Learning the structure of generative models without labeled data. In International Conference on Machine Learning, pp. 273-282. PMLR, 2017.
+Maria-Florina Balcan and Nika Haghtalab. Noise in classification. https://arxiv.org/pdf/2010.05080.pdf, 2020.
+Maria-Florina Balcan, Alina Beygelzimer, and John Langford. Agnostic active learning. In Proceedings of the 23rd International Conference on Machine Learning, pp. 65-72, 2006.
+Dimitri P Bertsekas. Constrained optimization and Lagrange multiplier methods. Academic press, 2014.
+Avrim Blum, Alan Frieze, Ravi Kannan, and Santosh Vempala. A polynomial-time algorithm for learning noisy linear threshold functions. Algorithmica, 22:35-52, 1998.
+Paul T Boggs and Jon W Tolle. Sequential quadratic programming. Acta numerica, 4:1-51, 1995.
+Salva Rühling Cachay, Benedikt Boecking, and Artur Dubrawski. End-to-end weak supervision. In A. Beygelzimer, Y. Dauphin, P. Liang, and J. Wortman Vaughan (eds.), Advances in Neural Information Processing Systems, 2021. URL https://openreview.net/forum?id=gbcsmD3Iznu.
+Nicolo Cesa-Bianchi, Eli Dichterman, Paul Fischer, Eli Shamir, and Hans Ulrich Simon. Sample-efficient strategies for learning in the presence of noise. Journal of the ACM (JACM), 46(5): 684-719, 1999.
+Nontawat Charoenphakdee, Jongyeong Lee, and Masashi Sugiyama. On symmetric losses for learning from corrupted labels. In International Conference on Machine Learning, pp. 961-970. PMLR, 2019.
+
+Mayee F Chen, Daniel Y Fu, Dyah Adila, Michael Zhang, Frederic Sala, Kayvon Fatahalian, and Christopher Ré. Shoring up the foundations: Fusing model embeddings and weak supervision. In Uncertainty in Artificial Intelligence, pp. 357-367. PMLR, 2022.
+Yudong Chen and Martin J Wainwright. Fast low-rank estimation by projected gradient descent: General statistical and algorithmic guarantees. arXiv preprint arXiv:1509.03025, 2015.
+Edwin KP Chong, Wu-Sheng Lu, and Stanislaw H Zak. An Introduction to Optimization: With Applications to Machine Learning. John Wiley & Sons, 2023.
+Jeremy Cohen, Elan Rosenfeld, and Zico Kolter. Certified adversarial robustness via randomized smoothing. In international conference on machine learning, pp. 1310-1320. PMLR, 2019.
+David Cohn, Les Atlas, and Richard Ladner. Improving generalization with active learning. Machine Learning, 15:201-221, 1994.
+David W Coit, Alice E Smith, and David M Tate. Adaptive penalty methods for genetic optimization of constrained combinatorial problems. INFORMS Journal on Computing, 8(2):173-182, 1996.
+George B Dantzig. Linear programming. Operations research, 50(1):42-47, 2002.
+Ilias Diakonikolas, Gautam Kamath, Daniel M. Kane, Jerry Li, Ankur Moitra, and Alistair Stewart. Being robust (in high dimensions) can be practical, 2018.
+Ilias Diakonikolas, Themis Gouleakis, and Christos Tzamos. Distribution-independent pac learning of halfspaces with massart noise. Advances in Neural Information Processing Systems, 32, 2019a.
+Ilias Diakonikolas, Gautam Kamath, Daniel Kane, Jerry Li, Ankur Moitra, and Alistair Stewart. Robust estimators in high dimensions without the computational intractability, 2019b.
+Ilias Diakonikolas, Daniel Kane, Pasin Manurangsi, and Lisheng Ren. Cryptographic hardness of learning halfspaces with massart noise. Advances in Neural Information Processing Systems, 35: 3624-3636, 2022a.
+Ilias Diakonikolas, Daniel M Kane, Vasilis Kontonis, Christos Tzamos, and Nikos Zarifis. Learning general halfspaces with general massart noise under the gaussian distribution. In Proceedings of the 54th Annual ACM SIGACT Symposium on Theory of Computing, pp. 874-885, 2022b.
+Cynthia Dwork, Frank McSherry, Kobbi Nissim, and Adam Smith. Calibrating noise to sensitivity in private data analysis. In Theory of Cryptography: Third Theory of Cryptography Conference, TCC 2006, New York, NY, USA, March 4-7, 2006. Proceedings 3, pp. 265-284. Springer, 2006.
+Enrique Estellés-Arolas and Fernando González-Ladrón-de Guevara. Towards an integrated crowdsourcing definition. Journal of Information science, 38(2):189-200, 2012.
+Michel Fortin and Roland Glowinski. Augmented Lagrangian methods: applications to the numerical solution of boundary-value problems. Elsevier, 2000.
+Marguerite Frank, Philip Wolfe, et al. An algorithm for quadratic programming. Naval research logistics quarterly, 3(1-2):95-110, 1956.
+Daniel Fu, Mayee Chen, Frederic Sala, Sarah Hooper, Kayvon Fatahalian, and Christopher Ré. Fast and three-rious: Speeding up weak supervision with triplet methods. In International Conference on Machine Learning, pp. 3280–3291. PMLR, 2020.
+Kuzman Ganchev, Joao Graça, Jennifer Gillenwater, and Ben Taskar. Posterior regularization for structured latent variable models. The Journal of Machine Learning Research, 11:2001-2049, 2010.
+Philip E Gill, Walter Murray, and Margaret H Wright. Practical optimization. SIAM, 2019.
+Bo Han, Quanming Yao, Xingrui Yu, Gang Niu, Miao Xu, Weihua Hu, Ivor Tsang, and Masashi Sugiyama. Co-teaching: Robust training of deep neural networks with extremely noisy labels. Advances in neural information processing systems, 31, 2018.
+
+Bo Han, Gang Niu, Xingrui Yu, Quanming Yao, Miao Xu, Ivor Tsang, and Masashi Sugiyama. *Siga: Forgetting may make learning with noisy labels more robust.* In *International Conference on Machine Learning*, pp. 4006-4016. PMLR, 2020.
+Earl O Heady, Candler Wilfried, et al. Linear programming methods. Linear programming methods., 1963.
+Zhiting Hu, Xuezhe Ma, Zhengzhong Liu, Eduard Hovy, and Eric Xing. Harnessing deep neural networks with logic rules. In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 2410-2420, 2016.
+Giannis Karamanolakis, Subhabrata Mukherjee, Guoqing Zheng, and Ahmed Hassan Awadallah. Self-training with weak supervision. arXiv preprint arXiv:2104.05514, 2021.
+Davood Karimi, Haoran Dou, Simon K Warfield, and Ali Gholipour. Deep learning with noisy labels: Exploring techniques and remedies in medical image analysis. Medical image analysis, 65:101759, 2020.
+George Em Karniadakis, Ioannis G Kevrekidis, Lu Lu, Paris Perdikaris, Sifan Wang, and Liu Yang. Physics-informed machine learning. Nature Reviews Physics, 3(6):422-440, 2021.
+Hiroyuki Kasahara and Katsumi Shimotsu. Non-parametric identification and estimation of the number of components in multivariate mixtures. Journal of the Royal Statistical Society Series B: Statistical Methodology, 76(1):97-111, 2014.
+Michael J Kearns and Umesh Vazirani. An introduction to computational learning theory. MIT press, 1994.
+Zhaobin Kuang, Chidubem Arachie, Bangyong Liang, Pradyumna Narayana, Giulia DeSalvo, Michael Quinn, Bert Huang, Geoffrey Downs, and Yang Yang. Firebolt: Weak supervision under weaker assumptions. In International Conference on Artificial Intelligence and Statistics 2022, 2022.
+Alexey Kurakin, Ian J Goodfellow, and Samy Bengio. Adversarial machine learning at scale. In International Conference on Learning Representations, 2016.
+Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. Towards deep learning models resistant to adversarial attacks. In International Conference on Learning Representations, 2018.
+Pascal Massart and Élodie Nédélec. Risk bounds for statistical learning. 2006.
+Ninareh Mehrabi, Fred Morstatter, Nripsuta Saxena, Kristina Lerman, and Aram Galstyan. A survey on bias and fairness in machine learning. ACM computing surveys (CSUR), 54(6):1-35, 2021.
+Nagarajan Natarajan, Inderjit S Dhillon, Pradeep Ravikumar, and Ambuj Tewari. Cost-sensitive learning with noisy labels. J. Mach. Learn. Res., 18(1):5666-5698.
+Nagarajan Natarajan, Inderjit S Dhillon, Pradeep K Ravikumar, and Ambuj Tewari. Learning with noisy labels. Advances in neural information processing systems, 26, 2013.
+Adarsh Prasad, Arun Sai Suggala, Sivaraman Balakrishnan, and Pradeep Ravikumar. Robust estimation via robust gradient estimation. Journal of the Royal Statistical Society: Series B (Statistical Methodology), 82, 2018. URL https://api_semanticscholar.org/CorpusID:3614648.
+Adarsh Prasad, Vishwak Srinivasan, Sivaraman Balakrishnan, and Pradeep Ravikumar. On learning using models under huber's contamination model. Advances in neural information processing systems, 33:16327-16338, 2020.
+Rattana Pukdee, Dylan Sam, Pradeep Kumar Ravikumar, and Nina Balcan. Label propagation with weak supervision. In The Eleventh International Conference on Learning Representations, 2022.
+
+Rattana Pukdee, Dylan Sam, J Zico Kolter, Maria-Florina Balcan, and Pradeep Ravikumar. Learning with explanation constraints. Advances in neural information processing systems, 2023.
+Alex Ratner, Braden Hancock, Jared Dunnmon, Roger Goldman, and Christopher Ré. Snorkel metal: Weak supervision for multi-task learning. In Proceedings of the Second Workshop on Data Management for End-To-End Machine Learning, pp. 1-4, 2018.
+Alexander Ratner, Stephen H Bach, Henry Ehrenberg, Jason Fries, Sen Wu, and Christopher Ré. Snorkel: Rapid training data creation with weak supervision. In Proceedings of the VLDB Endowment. International Conference on Very Large Data Bases, volume 11, pp. 269. NIH Public Access, 2017.
+Alexander Ratner, Braden Hancock, Jared Dunnmon, Frederic Sala, Shreyash Pandey, and Christopher Ré. Training complex models with multi-task weak supervision. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pp. 4763-4771, 2019.
+Alexander J Ratner, Christopher M De Sa, Sen Wu, Daniel Selsam, and Christopher Ré. Data programming: Creating large training sets, quickly. Advances in neural information processing systems, 29, 2016.
+R Tyrrell Rockafellar. Lagrange multipliers and optimality. SIAM review, 35(2):183-238, 1993.
+Dylan Sam and J. Zico Kolter. Losses over labels: Weakly supervised learning via direct loss construction, 2023.
+Hwanjun Song, Minseok Kim, Dongmin Park, Yooju Shin, and Jae-Gil Lee. Learning from noisy labels with deep neural networks: A survey. IEEE Transactions on Neural Networks and Learning Systems, 2022.
+Paroma Varma, Bryan D He, Payal Bajaj, Nishith Khandwala, Imon Banerjee, Daniel Rubin, and Christopher Ré. Inferring generative model structure with static analysis. Advances in neural information processing systems, 30, 2017.
+Kerri Wazny. "crowdsourcing" ten years in: A review. Journal of global health, 7(2), 2017.
+Xiaobo Xia, Tongliang Liu, Nannan Wang, Bo Han, Chen Gong, Gang Niu, and Masashi Sugiyama. Are anchor points really indispensable in label-noise learning? Advances in neural information processing systems, 32, 2019.
+Xiaobo Xia, Tongliang Liu, Bo Han, Nannan Wang, Mingming Gong, Haifeng Liu, Gang Niu, Dacheng Tao, and Masashi Sugiyama. Part-dependent label noise: Towards instance-dependent label noise. Advances in Neural Information Processing Systems, 33:7597-7610, 2020.
+Özgür Yeniy. Penalty function methods for constrained optimization with genetic algorithms. Mathematical and computational Applications, 10(1):45-56, 2005.
+Xingrui Yu, Bo Han, Jiangchao Yao, Gang Niu, Ivor Tsang, and Masashi Sugiyama. How does disagreement help generalization against label corruption? In International Conference on Machine Learning, pp. 7164-7173. PMLR, 2019.
+Rich Zemel, Yu Wu, Kevin Swersky, Toni Pitassi, and Cynthia Dwork. Learning fair representations. In International conference on machine learning, pp. 325-333. PMLR, 2013.
+Jieyu Zhang, Yue Yu, Yinghao Li, Yujing Wang, Yaming Yang, Mao Yang, and Alexander Ratner. Wrench: A comprehensive benchmark for weak supervision. In Thirty-fifth Conference on Neural Information Processing Systems Datasets and Benchmarks Track (Round 2), 2021.
+Jieyu Zhang, Cheng-Yu Hsieh, Yue Yu, Chao Zhang, and Alexander Ratner. A survey on programmatic weak supervision. arXiv preprint arXiv:2202.05433, 2022.
+Jieyu Zhang, Linxin Song, and Alex Ratner. Leveraging instance features for label aggregation in programmatic weak supervision. In International Conference on Artificial Intelligence and Statistics, pp. 157-171. PMLR, 2023.
+
+Wen Li Zhao, Pierre Gentine, Markus Reichstein, Yao Zhang, Sha Zhou, Yeqiang Wen, Changjie Lin, Xi Li, and Guo Yu Qiu. Physics-constrained machine learning of evapotranspiration. Geophysical Research Letters, 46(24):14496-14507, 2019.
+Dawei Zhu, Xiaoyu Shen, Marius Mosbach, Andreas Stephan, and Dietrich Klakow. Weaker than you think: A critical look at weakly supervised learning, 2023.
+Yinhao Zhu, Nicholas Zabaras, Phaedon-Stelios Koutsourelakis, and Paris Perdikaris. Physics-constrained deep learning for high-dimensional surrogate modeling and uncertainty quantification without labeled data. Journal of Computational Physics, 394:56-81, 2019.
+
+# A ADDITIONAL RELATED WORK
+
+# A.1 PROGRAMMATIC WEAK SUPERVISION.
+
+Programmatic weak supervision Ratner et al. (2016), is a learning paradigm where subject matter expert encodes their domain knowledge in terms of weak labelers (labeling functions). These are functions that either provide labels (weak labels) or abstain from prediction on any input. The key question is how to learn from such weak labels that are potentially noisy. A general approach involves two steps of aggregating weak labels into less noisy labels and then training a discriminative classifier on the inferred labels. Various statistical label models have been developed for label aggregation, and most of these only depend on the weak labels Ratner et al. (2016; 2018; 2019); Bach et al. (2017); Varma et al. (2017); Fu et al. (2020); Kuang et al. (2022). Recent methods incorporate the input information into this weakly supervised learning pipeline Chen et al. (2022); Pukdee et al. (2022); Zhang et al. (2023) e.g. smoothness of the label with respect to the input instance or pretrained-embedding. Alternatively, there is a line of works that learns from weak labels in an end-to-end fashion. The label model and the discriminative model are parameterized and are trained jointly Cachay et al. (2021); Karamanolakis et al. (2021); Awasthi et al. (2020); Sam & Kolter (2023). A key prior work is constrained label learning Arachie & Huang (2021), which involves learning pseudo labels under constraints before training a discriminative model. Unlike our method, CLL's initial step is independent of the function class and remains a two-step process.
+
+# A.2 LEARNING WITH NOISY LABELS
+
+Learning from data with noisy labels has been a prominent research problem that has received substantial attention from the machine learning community. The main assumption is that the observed labels are flipped with some probability. There is a line of works in theoretical machine learning that focuses on the learnability and polynomial-time algorithms for various noise models Kearns & Vazirani (1994); Cesa-Bianchi et al. (1999); Angluin & Laird (1988); Awasthi et al. (2014; 2015); Diakonikolas et al. (2019a); Balcan & Haghtalab (2020). On the other hand, in the statistical learning theory community, various works are concerned with different surrogate losses or unbiased estimators Natarajan et al. (2013); Prasad et al. (2020); Natarajan et al.; Charoenphakdee et al. (2019); Xia et al. (2019; 2020). Recently, numerous studies have focused on learning noisy labels on deep neural networks Song et al. (2022); Karimi et al. (2020); Yu et al. (2019); Han et al. (2018; 2020). Despite rich theoretical and empirical research in this area, these approaches cannot be employed in our context since the noisy labels in our setting are deterministic given the input and label.
+
+# A.3 LEARNING FROM CONSTRAINTS
+
+Constrained optimization focuses on finding the optimal solution to a problem within given constraints Bertsekas (2014); Gill et al. (2019); Chong et al. (2023). The principal method involves converting the constrained optimization problem into an unconstrained one. This can be accomplished by adding auxiliary variables, as seen in the Lagrange multiplier method Rockafellar (1993), or by incorporating a penalty term that penalizes the objective function when constraints are violated Coit et al. (1996); Fortin & Glowinski (2000); Yeniay (2005). Additionally, gradient-based approaches like PGD include a projection step to ensure the solution stays within a feasible region after each update Chen & Wainwright (2015); Madry et al. (2018). For specific types of constraints such as linear or quadratic, there are dedicated algorithms designed to address these constrained scenarios Heady et al. (1963); Dantzig (2002); Frank et al. (1956); Boggs & Tolle (1995). In the field of machine learning, the optimization goal is the empirical loss, and constraints can be used to enforce desirable features in a machine learning model, such as fairness Zemel et al. (2013); Mehrabi et al. (2021), robustness Cohen et al. (2019); Kurakin et al. (2016), or privacy Dwork et al. (2006). Recent studies have begun incorporating constraints derived from domain knowledge into models, such as physics constraints Zhao et al. (2019); Zhu et al. (2019); Karniadakis et al. (2021), explanation constraints Pukdee et al. (2023), and weak supervision Ganchev et al. (2010); Hu et al. (2016), with the aim of improving model performance.
+
+# B PROOFS OF PROPERTIES OF PROJECTION LOSS AND COMPUTING THE PROJECTION
+
+Lemma B.1. For $Q_{\mathrm{clf}}$ defined in equation 5, i.e.
+
+$$
+Q _ {\mathrm {c l f}} = \bigcap_ {j} Q _ {j, \mathrm {c l f}}, \text {w h e r e} Q _ {j, \mathrm {c l f}} = \left\{q: \mathcal {X} \rightarrow \Delta^ {K} \mid \rho_ {\mathrm {c l f}} \left(g _ {j}, \operatorname {c l f} (q)\right) \leq \eta_ {j} \right\}. \tag {33}
+$$
+
+where
+
+$$
+\rho_ {\operatorname {c l f}} \left(g _ {j}, \operatorname {c l f} (q)\right) = \mathbb {E} \left[ g _ {j} (X) \neq \operatorname {c l f} (q) (X) \mid g _ {j} (X) \neq \phi \right] \tag {34}
+$$
+
+and $\operatorname{clf}(q)$ is defined as
+
+$$
+\operatorname {c l f} (q) (x) = \arg \max _ {y} q (x) _ {y} \tag {35}
+$$
+
+(assuming $\arg \max_y q(x)_y$ is unique. If $\arg \max_y q(x)_y$ is not unique for some $x$ then $\operatorname{clf}(q)$ is not well defined.)
+
+then for any $p$ such that $\operatorname{clf}(p)$ is well defined, we have $d(p, Q_{\mathrm{clf}}) = \inf_{q \in Q_{\mathrm{clf}}} \mathbb{E}[D_{KL}(p(X) || q(X))] = 0$ if and only if $p \in Q_{\mathrm{clf}}$ .
+
+Proof. If $p \in Q_{\mathrm{clf}}$ , we would have $d(p, Q_{\mathrm{clf}}) \leq \mathbb{E}[D_{\mathrm{KL}}(p(X)||p(X))] = 0$ . Conversely when $d(p, Q_{\mathrm{clf}}) = 0$ we prove that $p \in Q_{\mathrm{clf}}$ i.e. $\rho_{\mathrm{clf}}(g_j, p) \leq \eta_j$ for all $j \in [m]$ .
+
+First, we prove that
+
+$$
+\inf _ {q \in Q _ {\mathrm {c l f}}} \mathbb {E} [ d _ {T V} (p (X), q (X)) ] = 0 \tag {36}
+$$
+
+where $d_{TV}$ is defined as
+
+$$
+d _ {T V} (u, v) = 1 / 2 \cdot \sum_ {k = 1} ^ {K} \left| u _ {k} - v _ {k} \right| \tag {37}
+$$
+
+Using Pinsker's inequality,
+
+$$
+d _ {T V} (u, v) \leq \sqrt {D _ {\mathrm {K L}} (u \| v) / 2} \tag {38}
+$$
+
+we have
+
+$$
+\begin{array}{l} \mathbb {E} \left[ d _ {T V} (p (X), q (X)) \right] = \mathbb {E} \left[ d _ {T V} (p (X), q (X)) \right] (39) \\ \leq \mathbb {E} \left[ \sqrt {D _ {\mathrm {K L}} (p (X) | | q (X)) / 2} \right] (40) \\ \leq \sqrt {\mathbb {E} \left[ D _ {\mathrm {K L}} (p (X) | | q (X)) \right] / 2} (\text {f r o m J e n s o n ' s}) (41) \\ \end{array}
+$$
+
+Thus
+
+$$
+\begin{array}{l} \inf _ {q \in Q _ {\mathrm {c l f}}} \mathbb {E} [ d _ {T V} (p (X), q (X)) ] \leq \inf _ {q \in Q _ {\mathrm {c l f}}} \sqrt {\mathbb {E} [ D _ {\mathrm {K L}} (p (X) | | q (X)) ] / 2} (42) \\ \leq \sqrt {\inf _ {q \in Q _ {\mathrm {c l f}}} \mathbb {E} [ D _ {\mathrm {K L}} (p (X) | | q (X)) ] / 2} (43) \\ \leq 0 (44) \\ \end{array}
+$$
+
+Let us say $p \notin Q_{\mathrm{clf}}$ , there exists some $\epsilon > 0$ such that $\rho_{\mathrm{clf}}(g_j, p) \geq \eta_j + \epsilon$ for some $j \in [m]$ .
+
+$$
+\Pr \left(g _ {j} (X) \neq \operatorname {c l f} (p) (X) \mid X \in S _ {j}\right) \geq \eta_ {j} + \epsilon \tag {45}
+$$
+
+where $S_{j} = \{x:g_{j}(x)\neq \phi \}$ is the coverage set of $g_{j}$ . Let $S^{\prime}\subseteq S_{j}$ defined as $S^{\prime} = \{x:g_{j}(x)\neq \operatorname {clf}(p)(x)\}$ . Denoting $|S| = \operatorname *{Pr}(X\in S)$ , since $|S^{\prime}| / |S_{j}|\geq \eta_{j} + \epsilon$ , and assuming $|S_{j}| > 0$ , we have $|S^{\prime}| > 0$ .
+
+Now for any $q \in Q_{\mathrm{clf}}$ , we have
+
+$$
+\Pr (\operatorname {c l f} (q) (X) \neq g _ {j} (X) | X \in S _ {j}) \leq \eta_ {j} \tag {46}
+$$
+
+Then
+
+$$
+\begin{array}{l} \Pr (\operatorname {c l f} (q) (X) \neq g _ {j} (X) | X \in S _ {j}) = \Pr (\operatorname {c l f} (q) (X) \neq g _ {j} (X) | X \in S ^ {\prime}, X \in S _ {j}) P (X \in S ^ {\prime} | X \in S _ {j}) (47) \\ = \Pr (\operatorname {c l f} (q) (X) \neq g _ {j} (X) | X \in S ^ {\prime}) P (X \in S ^ {\prime}, X \in S _ {j}) / P (X \in S _ {j}) (48) \\ = \Pr (\operatorname {c l f} (q) (X) \neq g _ {j} (X) | X \in S ^ {\prime}) P \left(X \in S ^ {\prime}\right) / P \left(X \in S _ {j}\right) (49) \\ = \Pr (\operatorname {c l f} (q) (X) \neq g _ {j} (X) | X \in S ^ {\prime}) | S ^ {\prime} | / | S _ {j} | (50) \\ \end{array}
+$$
+
+Thus,
+
+$$
+\begin{array}{l} \Pr (\operatorname {c l f} (q) (X) \neq g _ {j} (X) | X \in S ^ {\prime}) = \Pr (\operatorname {c l f} (q) (X) \neq g _ {j} (X) | X \in S _ {j}) | S _ {j} | / | S ^ {\prime} | (51) \\ \leq \eta_ {j} | S _ {j} | / | S ^ {\prime} | (52) \\ \leq \eta_ {j} / (\eta_ {j} + \epsilon) (53) \\ \end{array}
+$$
+
+Hence,
+
+$$
+\begin{array}{l} \Pr (\operatorname {c l f} (q) (X) = g _ {j} (X) \mid X \in S ^ {\prime}) = 1 - \Pr (\operatorname {c l f} (q) (X) \neq g _ {j} (X) \mid X \in S ^ {\prime}) (54) \\ \geq 1 - \eta_ {j} / (\eta_ {j} + \epsilon) (55) \\ \geq \epsilon / (\eta_ {j} + \epsilon) (56) \\ \end{array}
+$$
+
+Since $\operatorname{clf}(p)(x) \neq g_j(x)$ for $x \in S'$ , $\operatorname{clf}(q)(x) = g_j(x)$ implies $\operatorname{clf}(p)(x) \neq \operatorname{clf}(q)(x)$ . Thus
+
+$$
+\Pr (\operatorname {c l f} (q) (X) \neq \operatorname {c l f} (p) (X) | X \in S ^ {\prime}) \geq \epsilon / \left(\eta_ {j} + \epsilon\right) \tag {57}
+$$
+
+Let $S'' = \{x \in S' : \operatorname{clf}(q)(x) \neq \operatorname{clf}(p)(x)\}$ , we have
+
+$$
+\Pr \left(X \in S ^ {\prime \prime} \mid X \in S ^ {\prime}\right) \geq \epsilon / \left(\eta_ {j} + \epsilon\right) \tag {58}
+$$
+
+And thus,
+
+$$
+\Pr \left(X \in S ^ {\prime \prime} \mid X \in S ^ {\prime}\right) P \left(X \in S ^ {\prime}\right) = P \left(X \in S ^ {\prime \prime}, X \in S ^ {\prime}\right) = P \left(X \in S ^ {\prime \prime}\right) \tag {59}
+$$
+
+$$
+\Pr (X \in S ^ {\prime \prime} | X \in S ^ {\prime}) = P (X \in S ^ {\prime \prime}) / P (X \in S ^ {\prime}) \tag {60}
+$$
+
+$$
+P \left(X \in S ^ {\prime \prime}\right) / P \left(X \in S ^ {\prime}\right) \geq \epsilon / \left(\eta_ {j} + \epsilon\right) \tag {61}
+$$
+
+$$
+\left| S ^ {\prime \prime} \right| \geq \left| S ^ {\prime} \right| \epsilon / \left(\eta_ {j} + \epsilon\right) > 0 \tag {62}
+$$
+
+Now let
+
+$$
+\mu (x) = \max _ {k \neq \operatorname {c l f} (p) (x)} p (x) _ {\operatorname {c l f} (p) (x)} - p (x) _ {k} \tag {63}
+$$
+
+For $\operatorname{clf}(p)$ to be well defined, $\mu(x)$ must be greater than 0, i.e. $\mu(x) > 0$ for all $x$ .
+
+Since $\operatorname{clf}(p)(x) \neq \operatorname{clf}(q)(x)$ for $x \in S''$ , we have for any $x \in S''$
+
+$$
+p (x) _ {\operatorname {c l f} (p) (x)} \geq p (x) _ {\operatorname {c l f} (q) (x)} + \mu (x) \tag {64}
+$$
+
+$$
+q (x) _ {\operatorname {c l f} (q) (x)} \geq q (x) _ {\operatorname {c l f} (p) (x)} \tag {65}
+$$
+
+Or
+
+$$
+p (x) _ {\operatorname {c l f} (p) (x)} \geq p (x) _ {\operatorname {c l f} (q) (x)} + \mu (x) \tag {66}
+$$
+
+$$
+- q (x) _ {\operatorname {c l f} (p) (x)} \geq - q (x) _ {\operatorname {c l f} (q) (x)} \tag {67}
+$$
+
+$$
+p (x) _ {\operatorname {c l f} (p) (x)} - q (x) _ {\operatorname {c l f} (p) (x)} \geq p (x) _ {\operatorname {c l f} (q) (x)} - q (x) _ {\operatorname {c l f} (q) (x)} + \mu (x) \tag {68}
+$$
+
+$$
+(p (x) _ {\operatorname {c l f} (p) (x)} - q (x) _ {\operatorname {c l f} (p) (x)}) + (q (x) _ {\operatorname {c l f} (q) (x)} - p (x) _ {\operatorname {c l f} (q) (x)}) \geq \mu (x) \tag {69}
+$$
+
+$$
+\left| p (x) _ {\operatorname {c l f} (p) (x)} - q (x) _ {\operatorname {c l f} (p) (x)} \right| + \left| p (x) _ {\operatorname {c l f} (q) (x)} - q (x) _ {\operatorname {c l f} (q) (x)} \right| \geq \mu (x) \tag {70}
+$$
+
+$$
+d _ {T V} (p (x), q (x)) \geq \mu (x) / 2 \tag {71}
+$$
+
+$$
+\mathbb {E} \left[ d _ {T V} (p (X), q (X)) | X \in S ^ {\prime \prime} \right] \geq \mathbb {E} \left[ \mu (X) / 2 | X \in S ^ {\prime \prime} \right] \tag {72}
+$$
+
+Since $\inf_{q\in Q_{\mathrm{clf}}}\mathbb{E}[d_{TV}(p(X),q(X))] = 0$ , there exists some $q\in Q_{\mathrm{clf}}$ such that
+
+$$
+\mathbb {E} \left[ d _ {T V} (p (X), q (X)) \right] < | S | \mathbb {E} [ \mu (X) / 2 | X \in S ] \tag {73}
+$$
+
+for any set $S$ with $|S| > 0$ . In particular this holds for $S = S''$ since $|S''| > 0$ . Then
+
+$$
+\begin{array}{l} \mathbb {E} \left[ d _ {T V} (p (X), q (X)) \right] \geq \mathbb {E} \left[ d _ {T V} (p (X), q (X)) \mathbb {I} \left(X \in S ^ {\prime \prime}\right) \right] (74) \\ = \mathbb {E} \left[ d _ {T V} (p (X), q (X)) | X \in S ^ {\prime \prime} \right] \Pr (X \in S ^ {\prime \prime}) (75) \\ = \mathbb {E} \left[ d _ {T V} (p (X), q (X)) \mid X \in S ^ {\prime \prime} \right] \left| S ^ {\prime \prime} \right| (76) \\ \end{array}
+$$
+
+Thus
+
+$$
+\mathbb {E} \left[ d _ {T V} (p (X), q (X) | X \in S ^ {\prime \prime}) ] \mid S ^ {\prime \prime} \right| < \left| S ^ {\prime \prime} \right| \mathbb {E} [ \mu (X) / 2 | X \in S ^ {\prime \prime} ] \tag {77}
+$$
+
+$$
+\mathbb {E} \left[ d _ {T V} (p (X), q (X) | X \in S ^ {\prime \prime}) \right] < \mathbb {E} \left[ \mu (X) / 2 | X \in S ^ {\prime \prime} \right] \tag {78}
+$$
+
+which leads to a contradiction.
+
+Lemma B.2. Let $Q = \{q : \operatorname{clf}(q) \in \mathcal{H}\}$ for some set $\mathcal{H}$ of classifiers. For any classifier $f$ and any $\epsilon > 0$ , there exists a conditional distribution $p$ such that $\operatorname{clf}(p) = f$ and $d(p, Q) < \epsilon$ .
+
+Proof. We claim that for any classifiers $f_{1}, f_{2}$ there exists sequences of conditional distributions $\{q_1^t\}_{t=1}^\infty, \{q_2^t\}_{t=1}^\infty$ such that $\operatorname{clf}(q_1^t) = f_1, \operatorname{clf}(q_2^t) = f_2$ for all $t$ , and $\lim_{t \to \infty} q_1^t = \lim_{t \to \infty} q_2^t$ . The main idea is that we can slightly perturb a uniform distribution to achieve any classifier. Formally, we define $q_1^t(x)_k = 1 / K - \delta / ((K - 1) \cdot t)$ for $k \neq f_1(x)$ and $q_1^t(x)_k = 1 / K + \delta / t$ for $k = f_1(x)$ , where $K = |\mathcal{Y}|$ is the number of classes. We can define $q_2^t$ in the same manner. It's clear that both sequence converges to a uniform distribution, that is, $\lim_{t \to \infty} q_1^t(x)_y = \lim_{t \to \infty} q_2^t(x)_y = 1 / K$ for all $x, y$ even when $f_1, f_2$ are completely different.
+
+Now for any classifier $h \in \mathcal{H}$ and any classifier $f$ , there exists a sequence $\{q_h^t\}$ , $\{q_f^t\}$ such that $\operatorname{clf}(q_h^t) = h$ , $\operatorname{clf}(q_f^t) = f$ for all $t$ and that $\lim_{t \to \infty} q_h^t = \lim_{t \to \infty} q_f^t$ . Since $\operatorname{clf}(q_h^t) = h$ , we know that $q_h^t \in Q$ and this implies that
+
+$$
+\begin{array}{l} \lim _ {t \rightarrow \infty} d \left(q _ {f} ^ {t}, Q\right) = \lim _ {t \rightarrow \infty} \min _ {q \in Q} \mathbb {E} \left[ D _ {\mathrm {K L}} (q (X) | | q _ {f} ^ {t} (X)) \right] (79) \\ \leq \lim _ {t \rightarrow \infty} \mathbb {E} \left[ D _ {\mathrm {K L}} \left(q _ {h} ^ {t} (X) \mid \mid q _ {f} ^ {t} (X)\right)\right] = 0. (80) \\ \end{array}
+$$
+
+The last line comes from the fact that $\lim_{t\to \infty}q_h^t = \lim_{t\to \infty}q_f^t$ . As a result, we can conclude that for any $\epsilon$ , there exists some $t$ for which $p = q_h^t$ satisfies $d(p,Q) < \epsilon$ and $\operatorname{clf}(p) = f$ .
+
+Proposition B.3. For any $\epsilon, \nu > 0$ there exists $\delta(\epsilon, \nu) > 0$ such that if $d(p, \Lambda_{\epsilon} \cap Q_{\mathrm{clf}}) < \delta(\epsilon, \nu)$ then $\rho_{\mathrm{clf}}(g_j, \mathrm{clf}(p)) \leq \eta_j + \nu / |S_j|$ , where $|S_j| = P_X(X \in S_j)$ is the size of coverage set $S_j$ of weak labeler $g_j$ with respect to marginal distribution $P_X$ . In particular $\delta(\epsilon, \nu) = \frac{\nu L(\epsilon)}{(1 + \nu)}$ where $L(\epsilon)$ is a strictly increasing function in $\epsilon$ given by
+
+$$
+L (\epsilon) = \frac {(1 + \epsilon) \log (1 + \epsilon) - (2 + \epsilon) \log (1 + \epsilon / 2)}{K + \epsilon} \tag {81}
+$$
+
+where $K$ is the number of classes. The bound can be rephrased as the following inequality: For all $p$ such that $d(p, Q_{\mathrm{clf}}^{\epsilon}) < L(\epsilon)$ , we have
+
+$$
+\rho_ {\mathrm {c l f}} \left(g _ {j}, \operatorname {c l f} (p)\right) \leq \eta_ {j} + \frac {d \left(p , Q _ {\mathrm {c l f}} ^ {\epsilon}\right)}{\left(L (\epsilon) - d \left(p , Q _ {\mathrm {c l f}} ^ {\epsilon}\right)\right) \left| S _ {j} \right|} \tag {82}
+$$
+
+where $Q_{\mathrm{clf}}^{\epsilon} = \Lambda_{\epsilon}\cap Q_{\mathrm{clf}}$
+
+Proof. First, we prove the following
+
+$$
+\rho_ {\mathrm {c l f}} \left(g _ {j}, \operatorname {c l f} (p)\right) \leq \eta_ {j} + \min _ {q \in Q _ {\mathrm {c l f}}} d _ {\mathrm {c l f}} (p, q) / \left| S _ {j} \right| \tag {83}
+$$
+
+where $d_{\mathrm{clf}}(p,q)$ is defined as
+
+$$
+d _ {\operatorname {c l f}} (p, q) = \Pr_ {X} (\operatorname {c l f} (p) (X) \neq \operatorname {c l f} (q) (X)) \tag {84}
+$$
+
+$$
+\begin{array}{l} \rho_ {\operatorname {c l f}} \left(g _ {j}, \operatorname {c l f} (p)\right) = \Pr_ {X} (\operatorname {c l f} (p) (X) \neq g _ {j} (X) | X \in S _ {j}) \\ \leq \Pr_ {X} (\operatorname {c l f} (p) (X) \neq \operatorname {c l f} (q) (X) | X \in S _ {j}) + \Pr_ {X} (\operatorname {c l f} (q) (X) \neq g _ {j} (X) | X \in S _ {j}) \text {f o r a l l} q \\ \end{array}
+$$
+
+Thus
+
+$$
+\begin{array}{l} \rho_ {\operatorname {c l f}} (g _ {j}, \operatorname {c l f} (p)) \leq \min _ {q \in Q _ {\operatorname {c l f}}} \Pr_ {X} (\operatorname {c l f} (p) (X) \neq \operatorname {c l f} (q) (X) | X \in S _ {j}) + \Pr_ {X} (\operatorname {c l f} (q) (X) \neq g _ {j} (X) | X \in S _ {j}) \\ \leq \min _ {q \in Q _ {\mathrm {c l f}}} \Pr_ {X} (\operatorname {c l f} (p) (X) \neq \operatorname {c l f} (q) (X) | X \in S _ {j}) + \max _ {q \in Q _ {\mathrm {c l f}}} \Pr_ {X} (\operatorname {c l f} (q) (X) \neq g _ {j} (X) | X \in S _ {j}) \\ \leq \min _ {q \in Q _ {\mathrm {c l f}}} \operatorname * {P r} _ {X} (\operatorname {c l f} (p) (X) \neq \operatorname {c l f} (q) (X) | X \in S _ {j}) + \eta_ {j} \\ \leq \min _ {q \in Q _ {\mathrm {c l f}}} \operatorname * {P r} _ {X} (\operatorname {c l f} (p) (X) \neq \operatorname {c l f} (q) (X), X \in S _ {j}) / | S _ {j} | + \eta_ {j} \\ \leq \min _ {q \in Q _ {\mathrm {c l f}}} \Pr_ {X} (\operatorname {c l f} (p) (X) \neq \operatorname {c l f} (q) (X)) / | S _ {j} | + \eta_ {j} \\ = \eta_ {j} + \min _ {q \in Q _ {\mathrm {c l f}}} d _ {\mathrm {c l f}} (p, q) / | S _ {j} | \\ \end{array}
+$$
+
+Next, we will prove the bound on $\inf_{q\in Q_{\mathrm{clf}}}d_{\mathrm{clf}}(p,q)$ , i.e.
+
+$$
+\inf _ {q \in Q _ {\mathrm {c l f}}} d _ {\mathrm {c l f}} (p, q) \leq \frac {d \left(p , Q _ {\mathrm {c l f}} ^ {\epsilon}\right)}{\left(L (\epsilon) - d \left(p , Q _ {\mathrm {c l f}} ^ {\epsilon}\right)\right)} \tag {85}
+$$
+
+For any conditional distributions $p, q \in \mathcal{X} \to \Delta^K$ define the following
+
+$$
+d _ {\mathrm {k l}} (p, q) = \mathbb {E} \left[ D _ {\mathrm {K L}} (q (X) | | p (X)) \right] \tag {86}
+$$
+
+$$
+d _ {\mathrm {k l}} ^ {+} (p, q) = \mathbb {E} \left[ D _ {\mathrm {K L}} (q (X) | | p (X)) | \operatorname {c l f} (p) (X) = \operatorname {c l f} (q) (X) \right] \tag {87}
+$$
+
+$$
+d _ {\mathrm {k l}} ^ {-} (p, q) = \mathbb {E} \left[ D _ {\mathrm {K L}} (q (X) | | p (X)) | \operatorname {c l f} (p) (X) \neq \operatorname {c l f} (q) (X) \right] \tag {88}
+$$
+
+Consider the following sublemma.
+
+Sublemma B.3.1. For any $q \in Q_{\mathrm{clf}}^{\epsilon}$ , if $d_{\mathrm{kl}}(p,q) < L(\epsilon)$ then
+
+$$
+d _ {\mathrm {c l f}} (p, q) \leq \frac {d _ {\mathrm {k l}} (p , q)}{L (\epsilon) - d _ {\mathrm {k l}} (p , q)} \tag {89}
+$$
+
+where
+
+$$
+L (\epsilon) = \inf _ {q \in Q _ {\mathrm {c l f}} ^ {\epsilon}, p} d _ {\mathrm {k l}} ^ {-} (p, q) \tag {90}
+$$
+
+The bound in equation 85 directly follows from the above sublemma. This is proved as follows.
+
+$$
+\begin{array}{l} \inf _ {q \in Q _ {\mathrm {c l f}}} d _ {\mathrm {c l f}} (p, q) = \inf _ {q \in Q _ {\mathrm {c l f}} ^ {\epsilon}} d _ {\mathrm {c l f}} (p, q) \\ \leq \inf _ {q \in Q _ {\mathrm {c l f}} ^ {\epsilon}} \frac {d _ {\mathrm {k l}} (p , q)}{L (\epsilon) - d _ {\mathrm {k l}} (p , q)} \\ \leq \frac {\operatorname* {i n f} _ {q \in Q _ {\mathrm {c l f}} ^ {\epsilon}} d _ {\mathrm {k l}} (p , q)}{\sup _ {q \in Q _ {\mathrm {c l f}} ^ {\epsilon}} L (\epsilon) - d _ {\mathrm {k l}} (p , q)} \\ = \frac {\inf _ {q \in Q _ {\mathrm {c l f}} ^ {\epsilon}} d _ {\mathrm {k l}} (p , q)}{L (\epsilon) - \inf _ {q \in Q _ {\mathrm {c l f}} ^ {\epsilon}} d _ {\mathrm {k l}} (p , q)} \\ = \frac {d (p , Q _ {\mathrm {c l f}} ^ {\epsilon})}{L (\epsilon) - d (p , Q _ {\mathrm {c l f}} ^ {\epsilon})} \\ \end{array}
+$$
+
+Finally $d(p, Q_{\mathrm{clf}}^{\epsilon}) \leq \frac{\nu L(\epsilon)}{(1 + \nu)}$ gives us $\inf_{q \in Q_{\mathrm{clf}}} d_{\mathrm{clf}}(p, q) \leq \nu$ , and thus $\rho_{\mathrm{clf}}(g_j, \operatorname{clf}(p)) \leq \nu / |S_j| + \eta_j$ .
+
+Now we proof sublemma B.3.1. First note that,
+
+$$
+d _ {\mathrm {k l}} (p, q) = d _ {\mathrm {c l f}} (p, q) d _ {\mathrm {k l}} ^ {-} (p, q) + \left(1 - d _ {\mathrm {c l f}} (p, q)\right) d _ {\mathrm {k l}} ^ {+} (p, q) \tag {91}
+$$
+
+Now
+
+$$
+\begin{array}{l} d _ {\mathrm {k l}} ^ {+} (p, q) = \frac {d _ {\mathrm {k l}} (p , q) - d _ {\mathrm {c l f}} (p , q) d _ {\mathrm {k l}} ^ {-} (p , q)}{1 - d _ {\mathrm {c l f}} (p , q)} \\ \leq \frac {d _ {\mathrm {k l}} (p , q) - d _ {\mathrm {c l f}} (p , q) L (\epsilon)}{1 - d _ {\mathrm {c l f}} (p , q)} \\ \leq d _ {\mathrm {k l}} (p, q) + \left(d _ {\mathrm {k l}} (p, q) - L (\epsilon)\right) \frac {d _ {\mathrm {c l f}} (p , q)}{1 - d _ {\mathrm {c l f}} (p , q)} \\ < d _ {\mathrm {k l}} (p, q) \\ \end{array}
+$$
+
+Further,
+
+$$
+\begin{array}{l} d _ {\mathrm {c l f}} (p, q) = \frac {d _ {\mathrm {k l}} (p , q) - d _ {\mathrm {k l}} ^ {+} (p , q)}{d _ {\mathrm {k l}} ^ {-} (p , q) - d _ {\mathrm {k l}} ^ {+} (p , q)} \\ \leq \frac {d _ {\mathrm {k l}} (p , q)}{d _ {\mathrm {k l}} ^ {-} (p , q) - d _ {\mathrm {k l}} ^ {+} (p , q)} \\ < \frac {d _ {\mathrm {k l}} (p , q)}{L (\epsilon) - d _ {\mathrm {k l}} (p , q)} \\ \end{array}
+$$
+
+Now we are only left to prove the form of $L(\epsilon)$ given in equation 81.
+
+Recall $\Lambda_{\epsilon}$ was defined in equation 12 as
+
+$$
+\Lambda_ {\epsilon} := \left\{q: \mathcal {X} \rightarrow \Delta^ {k} \mid \text {f o r e a c h} x, \exists y: q (x) _ {y} \geq (1 + \epsilon) q (x) _ {k} \text {f o r} k \neq y \right\} \tag {92}
+$$
+
+For a distribution $u \in \Delta^K$ , let $c_j(u)$ refer to the top $j$ 'th class, i.e. $c_1(u), \ldots, c_K(u)$ is a permutation of $[K]$ s.t. $u_{c_1(u)} \geq \ldots \geq u_{c_K(u)}$ . Let $t_j(u)$ refer to the corresponding probability i.e. $t_j(u) = u_{c_j(u)}$ .
+
+Let $\lambda_{\epsilon} = \{u\in \Delta^{K}:t_{1}(u)\geq (1 + \epsilon)t_{j}(u)\forall j > 1\}$ . This is connected to $\Lambda_{\epsilon}$ as
+
+$$
+\Lambda_ {\epsilon} = \left\{q: \mathcal {X} \rightarrow \Delta^ {K}: \forall x, q (x) \in \lambda_ {\epsilon} \right\}
+$$
+
+Now
+
+$$
+\begin{array}{l} L (\epsilon) = \inf _ {q \in Q _ {\mathrm {c l f}} ^ {\epsilon}, p} d _ {\mathrm {k l}} ^ {-} (p, q) (93) \\ = \inf _ {q \in Q _ {\operatorname {c l f}} ^ {\epsilon}, p} \mathbb {E} \left[ D _ {\mathrm {K L}} (q (X) | | p (X)) | \operatorname {c l f} (p) (X) \neq \operatorname {c l f} (q) (X) \right] (94) \\ = \inf _ {h \in \mathcal {H}, p} \mathbb {E} \left[ \inf _ {u \in \lambda_ {\epsilon}, c _ {1} (u) = h (X)} D _ {\mathrm {K L}} (u \| p (X)) | \operatorname {c l f} (p) (X) \neq c _ {1} (u) \right] (95) \\ \end{array}
+$$
+
+$$
+\begin{array}{l} \left(\text {w h e r e} \mathcal {H} = \{h: \rho_ {\operatorname {c l f}} \left(g _ {j}, h\right) \leq \eta_ {j} \}\right) (96) \\ = \inf _ {h \in \mathcal {H}} \mathbb {E} \left[ \inf _ {u \in \lambda_ {\epsilon}: c _ {1} (u) = h (X), v \in \Delta^ {K}: c _ {1} (v) \neq c _ {1} (u)} D _ {\mathrm {K L}} (u | | v) \right] (97) \\ = \inf _ {u \in \lambda_ {\epsilon}, v \in \Delta^ {K}: c _ {1} (v) \neq c _ {1} (u)} D _ {\mathrm {K L}} (u \| | v) (98) \\ = \inf _ {u, v \in \Delta^ {K}} D _ {\mathrm {K L}} (u | | v): c _ {1} (v) \neq c _ {1} (u), t _ {1} (u) \geq (1 + \epsilon) t _ {j} (u) \forall j > 1 (99) \\ \end{array}
+$$
+
+Now without loss of generality, let $c_{j}(u) = j$ . With some abuse of notation, we also use $u, v$ to refer to the minimizer of objective in equation 99. The minimizer exists since the constraints induce closed sets. Then first we will prove that
+
+$$
+c _ {j} (v) = c _ {j} (u) = j \text {f o r} j \geq 3 \tag {100}
+$$
+
+Assume the contrary. Then there exists $k \geq 3$ such that $v_{k} > v_{2}$ . This implies
+
+$$
+\left(u _ {2} - u _ {k}\right) \log \left(v _ {k} / v _ {2}\right) > 0 \tag {101}
+$$
+
+$$
+u _ {2} \log \left(1 / v _ {2}\right) + u _ {k} \log \left(1 / v _ {k}\right) > u _ {2} \log \left(1 / v _ {k}\right) + u _ {k} \log \left(1 / v _ {2}\right) \tag {102}
+$$
+
+$$
+u _ {2} \log \left(u _ {2} / v _ {2}\right) + u _ {k} \log \left(u _ {k} / v _ {k}\right) > u _ {2} \log \left(u _ {2} / v _ {k}\right) + u _ {k} \log \left(u _ {k} / v _ {2}\right) \tag {103}
+$$
+
+$$
+D _ {\mathrm {K L}} (u | | v) > D _ {\mathrm {K L}} (u | | v ^ {\prime}) \tag {104}
+$$
+
+where $v^{\prime}$ is defined as
+
+$$
+v _ {2} ^ {\prime} = v _ {k}, v _ {k} ^ {\prime} = v _ {2}, v _ {j} ^ {\prime} = v _ {j} \text {f o r} j \neq k, 2 \tag {105}
+$$
+
+But $u, v$ was the minimizer of the objective in equation 99, which contradicts the above implication in equation 104.
+
+Since $c_{1}(u) = 1 \neq c_{1}(v)$ , we get $c_{1}(v) = 2$ , and $c_{2}(v) = 1$ . To recap we have
+
+$$
+c _ {j} (u) = j \tag {106}
+$$
+
+$$
+c _ {1} (v) = 2, c _ {2} (v) = 1, c _ {j} (v) = j \text {f o r} j \geq 3 \tag {107}
+$$
+
+Next we will prove that
+
+$$
+v _ {1} = v _ {2} \tag {108}
+$$
+
+Let
+
+$$
+x = \left(v _ {2} - v _ {1}\right) / 2 \tag {109}
+$$
+
+$$
+y = \left(v _ {2} + v _ {1}\right) / 2 \tag {110}
+$$
+
+Since $c_{1}(v) = 2, v_{2} \geq v_{1}$ and so $x, y \geq 0$ . We have
+
+$$
+v _ {1} = y - x \tag {111}
+$$
+
+$$
+v _ {2} = y + x \tag {112}
+$$
+
+$$
+\sum_ {j = 3} ^ {K} v _ {j} = 1 - 2 y \tag {113}
+$$
+
+Now,
+
+$$
+L (\epsilon) = u _ {1} \log (u _ {1} / y - x) + u _ {2} \log (u _ {2} / y + x) + \sum_ {j = 3} ^ {K} u _ {j} \log (u _ {j} / v _ {j})
+$$
+
+$$
+\begin{array}{l} \nabla_ {x} L (\epsilon) = u _ {1} / (y - x) - u _ {2} (y + x) \\ = \frac {u _ {1} (y + x) - u _ {2} (y - x)}{y ^ {2} - x ^ {2}} \\ = \frac {x (u _ {1} + u _ {2}) + y (u _ {1} - u _ {2})}{y ^ {2} - x ^ {2}} \\ > 0 \\ \end{array}
+$$
+
+Thus $L(\epsilon)$ is minimized for $x = 0$
+
+Next, we have the following inequality
+
+$$
+\sum_ {i = 1} ^ {n} a _ {i} \log \left(a _ {i} / b _ {i}\right) \geq \left(\sum_ {i = 1} ^ {n} a _ {i}\right) \log \left(\sum_ {i = 1} ^ {n} a _ {i} / \sum_ {i = 1} ^ {n} b _ {i}\right) \tag {114}
+$$
+
+This follows Jenson's inequality, given a discrete distribution $f: \sum_{i=1}^{n} f_i = 1$ , we have
+
+$$
+\sum_ {i = 1} ^ {n} f _ {i} \log (t _ {i}) \geq \log (\sum_ {i = 1} ^ {n} f _ {i} t _ {i})
+$$
+
+Substituting $f_{i} = a_{i} / \sum_{i=1}^{n} a_{i}$ , and $t_{i} = b_{i} / a_{i}$ , we get the required inequality. We use this inequality to have
+
+$$
+\sum_ {j = 3} ^ {K} u _ {j} \log \left(u _ {j} / v _ {j}\right) \geq \left(\sum_ {j = 3} ^ {K} u _ {j}\right) \log \left(\sum_ {j = 3} ^ {K} u _ {j} / \sum_ {j = 3} ^ {K} v _ {j}\right) \tag {115}
+$$
+
+This gives us
+
+$$
+L (\epsilon) \geq u _ {1} \log \left(u _ {1} / v _ {1}\right) + u _ {2} \log \left(u _ {2} / v _ {2}\right) + \left(1 - u _ {1} - u _ {2}\right) \log \left(\frac {1 - u _ {1} - u _ {2}}{1 - v _ {1} - v _ {2}}\right) \tag {116}
+$$
+
+We had $v_{1} = v_{2}$ . So, substituting $v_{1} = v_{2} = y$ , we have
+
+$$
+L (\epsilon) \geq f (y) = u _ {1} \log u _ {1} / y + u _ {2} \log u _ {2} / y + (1 - u _ {1} - u _ {2}) \log \left(\frac {1 - u _ {1} - u _ {2}}{1 - 2 y}\right)
+$$
+
+$$
+\begin{array}{l} \nabla_ {y} f (y) = - u _ {1} / y - u _ {2} / y + \frac {2 (1 - u _ {1} - u _ {2})}{1 - 2 y} \\ = \frac {2 y - u _ {1} - u _ {2}}{1 - 2 y} \\ \end{array}
+$$
+
+$$
+\nabla_ {y} ^ {2} f (y) = \frac {2 (1 - u _ {1} - u _ {2})}{(1 - 2 y) ^ {2}} > 0
+$$
+
+Thus $f(y)$ is minimized for $\nabla_y f(y) = 0$ , giving $y = v_1 = v_2 = (u_1 + u_2) / 2$ . Substituting in equation 116, we get
+
+$$
+L (\epsilon) \geq u _ {1} \log \left(2 u _ {1} / \left(u _ {1} + u _ {2}\right)\right) + u _ {2} \log \left(2 u _ {2} / \left(u _ {1} + u _ {2}\right)\right) \tag {117}
+$$
+
+Let $x = (u_{1} - u_{2}) / 2$ (and thus $u_{1} = y + x, u_{2} = y - x$ ) we have
+
+$$
+\begin{array}{l} L (\epsilon) \geq f (x) = (y + x) \log (1 + x / y) + (y - x) \log (1 - x / y) \\ \nabla_ {x} f (x) = \log (1 + x / y) - \log (1 - x / y) > 0 \\ \end{array}
+$$
+
+Since $u_{1} \geq (1 + \epsilon)u_{2}$ , we have $y + x \geq (1 + \epsilon)(y - x)$ , thus $f(x)$ is minimized for $x = y\epsilon /(2 + \epsilon)$ . Using $y = (u_{1} + u_{2}) / 2$ , we have
+
+$$
+\begin{array}{l} L (\epsilon) \geq (u _ {1} + u _ {2}) ((1 + \epsilon) / (2 + \epsilon) \log (2 (1 + \epsilon) / (2 + \epsilon)) + 2 y / (2 + \epsilon) \log (2 / (2 + \epsilon))) \\ = \left(\frac {u _ {1} + u _ {2}}{2 + \epsilon}\right) ((1 + \epsilon) \log (1 + \epsilon) - (2 + \epsilon) \log (1 + \epsilon / 2)) \\ \end{array}
+$$
+
+Now to bound $u_{1} + u_{2}$ , consider the following.
+
+Since $u_{j}\leq u_{2}$ for $j\geq 3$ , we have
+
+$$
+(K - 1) u _ {2} \geq \sum_ {j = 2} ^ {K} u _ {j} = 1 - u _ {1}
+$$
+
+$$
+u _ {2} \geq \frac {1 - u _ {1}}{K - 1}
+$$
+
+$$
+u _ {1} + u _ {2} \geq \frac {1 + u _ {1} (K - 2)}{K - 1}
+$$
+
+Further since $u_{1}\geq (1 + \epsilon)u_{j}$ for $j\geq 2$ , we have,
+
+$$
+(K - 1) u _ {1} \geq (1 + \epsilon) \sum_ {j = 2} ^ {K} u _ {j}
+$$
+
+$$
+u _ {1} \geq \frac {(1 + \epsilon) (1 - u _ {1})}{K - 1}
+$$
+
+$$
+u _ {1} \geq \frac {1 + \epsilon}{K + \epsilon}
+$$
+
+Substituting back we get
+
+$$
+u _ {1} + u _ {2} \geq \frac {2 + \epsilon}{K + \epsilon}
+$$
+
+Substituting in the bound for $L(\epsilon)$ we finally get
+
+$$
+L (\epsilon) \geq \frac {(1 + \epsilon) \log (1 + \epsilon) - (2 + \epsilon) \log (1 + \epsilon / 2)}{K + \epsilon} \tag {118}
+$$
+
+Now to prove $L(\epsilon)$ is strictly increasing and positive for $\epsilon > 0$ , we have $L(0) = 0$ and
+
+$$
+\begin{array}{l} \nabla_ {\epsilon} L (\epsilon) = \nabla_ {\epsilon} f (\epsilon) / (K + \epsilon) - f (\epsilon) / (K + \epsilon) ^ {2} \\ = \frac {(K - 1) \log (1 + \epsilon) - (K - 2) \log (1 + \epsilon / 2)}{(K + \epsilon) ^ {2}} \\ > 0 \\ \end{array}
+$$
+
+
+
+Proposition B.4. Given $Q = \Lambda_{\epsilon} \cap Q_{\mathrm{clf}}$ for $\Lambda_{\epsilon}$ defined in equation 12 and $Q_{\mathrm{clf}}$ defined in equation 5, for any conditional distribution $p$ , the optimal projection $q^{*} = \arg \inf_{q \in Q} \mathbb{E}[D_{KL}(q(X)||p(X))]$ can be found as follows,
+
+1. Solve for optimal $\operatorname{clf}(q^{*})$ as
+
+$$
+\operatorname {c l f} \left(q ^ {*}\right) = \underset {h \in \mathcal {X} \rightarrow \mathcal {Y}} {\arg \min } \mathbb {E} _ {X} \left[ \operatorname {P r o j} _ {K L} (p (X); \Delta_ {h (X), \epsilon} ^ {K}) ]: \rho_ {\operatorname {c l f}} \left(g _ {j}, h\right) \leq \eta_ {j} \right. \tag {119}
+$$
+
+where
+
+$$
+\Delta_ {y, \epsilon} ^ {K} = \left\{r \in \Delta^ {K} \mid r _ {y} \geq (1 + \epsilon) r _ {k}, \forall k \neq y \right\},
+$$
+
+$$
+\operatorname {P r o j} _ {K L} (u; S) = \inf _ {r \in S} D _ {K L} (r | | u). \tag {120}
+$$
+
+2. Solve for an optimal distribution $q^{*}$ given the optimal $\operatorname{clf}(q^{*})$ . For each $x$ ,
+
+$$
+q ^ {*} (x) = \arg \min _ {r} D _ {K L} (r \| p (x)): r \in \Delta_ {\operatorname {c l f} \left(q ^ {*}\right) (x)} ^ {K, \epsilon} \tag {121}
+$$
+
+Proof. Given $\Lambda_{\epsilon} = \{q \in \mathcal{X} \to \Delta^{K} \mid \forall x, q(x) \in \bigcup_{k=1}^{K} \Delta_{k,\epsilon}^{K}\}$ . We have
+
+$$
+\begin{array}{l} q^{*} = \operatorname *{arg min}_{q\in Q}\mathbb{E}[D_{\mathrm{KL}}(q(X)||p(X))] \\ = \operatorname *{arg min}_{q\in \Lambda_{\epsilon}}\mathbb{E}\left[D_{\mathrm{KL}}(q(X)||p(X))]:q\in Q_{\mathrm{cf}}\right. \\ = \operatorname * {a r g m i n} _ {q \in \Lambda_ {\epsilon}} \mathbb {E} [ D _ {\mathrm {K L}} (q (X) | | p (X)) ]: \rho (g _ {j}, \operatorname {c l f} (q)) \leq \eta_ {j} \forall j \in [ m ] \\ = \operatorname * {a r g m i n} _ {q \in \Lambda_ {\epsilon}} \min _ {h \in \mathcal {X} \to \mathcal {Y}} \mathbb {E} [ D _ {\mathrm {K L}} (q (X) | | p (X)) ]: \rho (g _ {j}, h) \leq \eta_ {j}, h = \operatorname {c l f} (q) \\ = \operatorname *{arg min}_{q:q = q^{\prime}}\min_{q^{\prime}\in \Lambda_{\epsilon}}\min_{h\in \mathcal{X}\to \mathcal{Y}}\mathbb{E}[D_{\mathrm{KL}}(q^{\prime}(X)||p(X))]:\rho (g_{j},h)\leq \eta_{j}, h = \operatorname {clf}(q^{\prime}) \\ = \operatorname *{arg min}_{q:q = q^{\prime}}\min_{h\in \mathcal{X}\to \mathcal{Y}}\min_{q^{\prime}\in \Lambda_{\epsilon}}\mathbb{E}[D_{\mathrm{KL}}(q^{\prime}(X)||p(X))]:\rho (g_{j},h)\leq \eta_{j}, h = \operatorname {clf}(q^{\prime}) \\ = \operatorname * {a r g m i n} _ {q: q = q ^ {\prime}} \min _ {h \in \mathcal {X} \to \mathcal {Y}} \left(\min _ {q ^ {\prime} \in \Lambda_ {\epsilon}} \mathbb {E} [ D _ {\mathrm {K L}} (q ^ {\prime} (X) | | p (X)) ]: \operatorname {c l f} (q ^ {\prime}) = h\right): \rho (g _ {j}, h) \leq \eta_ {j} \\ = \operatorname * {a r g m i n} _ {q: q (x) = u _ {x}} \operatorname * {m i n} _ {h \in \mathcal {X} \rightarrow \mathcal {Y}} \mathbb {E} \left[ \operatorname * {m i n} _ {u _ {X} \in \Delta^ {K}} D _ {\mathrm {K L}} (u _ {X} | | p (X)): u _ {X} \in \Delta_ {h (X), \epsilon} ^ {K}) \right]: \rho (g _ {j}, h) \leq \eta_ {j} \\ \end{array}
+$$
+
+Thus
+
+$$
+q ^ {*} (x) = \underset {u \in \Delta^ {K}} {\arg \min } D _ {\mathrm {K L}} (u \| p (X)): u \in \Delta_ {h ^ {*} (X), \epsilon} ^ {K} \tag {122}
+$$
+
+where
+
+$$
+h ^ {*} = \underset {h \in \mathcal {X} \rightarrow \mathcal {Y}} {\arg \min } \mathbb {E} \left[ \right. \underset {u _ {X} \in \Delta^ {K}} {\min } D _ {\mathrm {K L}} \left(u _ {X} \| p (X)\right): u _ {X} \in \Delta_ {h (X), \epsilon} ^ {K}\left. \right): \rho \left(g _ {j}, h\right) \leq \eta_ {j} \tag {123}
+$$
+
+Since $u_{x}^{*} \in \Delta_{h^{*}(x),\epsilon}^{K}$ , it implies $\operatorname{clf}(u^{*}) = h^{*}$ , and since $q^{*}(x) = u_{x}^{*}$ , $\operatorname{clf}(q^{*}) = \operatorname{clf}(u^{*}) = h^{*}$ . Thus
+
+$$
+\operatorname {c l f} \left(q ^ {*}\right) = \min _ {h \in \mathcal {X} \rightarrow \mathcal {Y}} \mathbb {E} \left[ \operatorname {P r o j} _ {\mathrm {K L}} \left(p (X); \Delta_ {h (X), \epsilon} ^ {K}\right)\right]: \rho \left(g _ {j}, h\right) \leq \eta_ {j} \tag {124}
+$$
+
+and
+
+$$
+q ^ {*} (x) = \underset {u \in \Delta^ {K}} {\arg \min } D _ {\mathrm {K L}} (u \| p (X)): u \in \Delta_ {\operatorname {c l f} \left(q ^ {*}\right) (X), \epsilon} ^ {K} \tag {125}
+$$
+
+
+
+Proposition B.5. For $Q_{\mathrm{dist}}$ defined in equation 16, we have $d(p, Q_{\mathrm{dist}}) = 0$ if and only if $p \in Q_{\mathrm{dist}}$ . Furthermore, for any $\nu > 0$ there exists $\delta(\nu) > 0$ such that if $d(p, Q_{\mathrm{dist}}) < \delta(\nu)$ then $\rho_{\mathrm{dist}}(g_j, p) \leq \eta_j + \nu / |S_j|$ , where $|S_j| = P_X(S_j)$ is the size of coverage set $S_j$ of weak labeler $g_j$ with respect to marginal distribution $P_X$ . In particular $\delta(\nu) = \nu^2 / 2$ .
+
+Rephrasing we get the following bound:
+
+$$
+\rho_ {\mathrm {d i s t}} (g _ {j}, p) \leq \eta_ {j} + \sqrt {2 d (p , Q _ {\mathrm {d i s t}})} / | S _ {j} |
+$$
+
+Proof. Define $E(p) = \min_{q \in Q_{\mathrm{dist}}} \mathbb{E}_X[d_{TV}(p(X), q(X))]$ , where $d_{TV}$ is the TV distance:
+
+$$
+d _ {T V} (u, v) = 1 / 2 \cdot \sum_ {k = 1} ^ {K} | u _ {k} - v _ {k} | \tag {126}
+$$
+
+First, we prove the following
+
+$$
+\rho_ {\text {d i s t}} \left(g _ {j}, p\right) \leq \eta_ {j} + 2 \min _ {q \in Q _ {\text {d i s t}}} \mathbb {E} _ {X} \left[ d _ {T V} (p (X), q (X)) \right] / | S _ {j} | \tag {127}
+$$
+
+$$
+\begin{array}{l} \rho_ {\text {d i s t}} \left(g _ {j}, p\right) = \mathbb {E} \left[ \sum_ {k \neq g _ {j} (X)} p (X) _ {g _ {j} (X)} \mid X \in S _ {j} \right] (128) \\ = \mathbb {E} [ \sum_ {k \neq g _ {j} (X)} p (X) _ {g _ {j} (X)} - q (X) _ {g _ {j} (X)} | X \in S _ {j} ] + \mathbb {E} [ \sum_ {k \neq g _ {j} (X)} q (X) _ {g _ {j} (X)} | X \in S _ {j} ] \text {f o r a l l} q (129) \\ \leq \mathbb {E} [ \sum_ {k} | p (X) _ {k} - q (X) _ {k} | X \in S _ {j} ] + \mathbb {E} [ \sum_ {k \neq g _ {j} (X)} q (X) _ {g _ {j} (X)} | X \in S _ {j} ] (130) \\ \leq \mathbb {E} \left[ \sum_ {k} | p (X) _ {k} - q (X) _ {k} | \mathbb {I} (X \in S _ {j}) \right] / \left| S _ {j} \right| + \rho_ {\text {d i s t}} \left(g _ {j}, q\right) (131) \\ \leq \mathbb {E} \left[ \sum_ {k} | p (X) _ {k} - q (X) _ {k} | \right] / | S _ {j} | + \rho_ {\text {d i s t}} \left(g _ {j}, q\right) (132) \\ \end{array}
+$$
+
+$$
+\rho_ {\text {d i s t}} \left(g _ {j}, p\right) \leq 2 \mathbb {E} \left[ d _ {T V} \left(p (X), q (X)\right) \right] / \left| S _ {j} \right| + \rho_ {\text {d i s t}} \left(g _ {j}, q\right) \tag {133}
+$$
+
+The above holds for all $q$ . Thus
+
+$$
+\rho_ {\text {d i s t}} \left(g _ {j}, p\right) \leq \min _ {q \in Q _ {\text {d i s t}}} 2 \mathbb {E} \left[ d _ {T V} (p (X), q (X)) \right] / \left| S _ {j} \right| + \rho_ {\text {d i s t}} \left(g _ {j}, q\right) \tag {134}
+$$
+
+$$
+\leq \min _ {q \in Q _ {\text {d i s t}}} 2 \mathbb {E} [ d _ {T V} (p (X), q (X)) ] / | S _ {j} | + \max _ {q \in Q _ {\text {d i s t}}} \rho_ {\text {d i s t}} \left(g _ {j}, q\right) \tag {135}
+$$
+
+$$
+\leq 2 \min _ {q \in Q _ {\text {d i s t}}} \mathbb {E} [ d _ {T V} (p (X), q (X)) ] / | S _ {j} | + \eta_ {j} \tag {136}
+$$
+
+Further using Pinsker's Inequality
+
+$$
+d _ {T V} (u, v) \leq \sqrt {D _ {\mathrm {K L}} (u | | v) / 2}
+$$
+
+we have
+
+$$
+\begin{array}{l} \mathbb {E} \left[ d _ {T V} (p (X), q (X)) \right] = \mathbb {E} \left[ d _ {T V} (q (X), p (X)) \right] (138) \\ \leq \mathbb {E} \left[ \sqrt {D _ {\mathrm {K L}} (q (X) | | p (X)) / 2} \right] (139) \\ \leq \sqrt {\mathbb {E} \left[ D _ {\mathrm {K L}} (q (X) | | p (X)) \right] / 2} (\text {f r o m J e n s o n ' s}) (140) \\ \end{array}
+$$
+
+$$
+\begin{array}{l} \min _ {q \in Q _ {\text {d i s t}}} \mathbb {E} [ d _ {T V} (p (X), q (X)) ] \leq \min _ {q \in Q _ {\text {d i s t}}} \sqrt {\mathbb {E} [ D _ {\mathrm {K L}} (q (X) | | p (X)) ] / 2} (141) \\ \leq \sqrt {\min _ {q \in Q _ {\text {d i s t}}} \mathbb {E} \left[ D _ {\mathrm {K L}} (q (X) | | p (X)) \right] / 2} (142) \\ \leq \sqrt {d (p , Q _ {\text {d i s t}}) / 2} (143) \\ \end{array}
+$$
+
+Finally $d(p, Q_{\mathrm{dist}}) \leq \nu^2 / 2$ implies $\min_{q \in Q_{\mathrm{dist}}} \mathbb{E}[d_{TV}(p(X), q(X))] \leq \nu / 2$ , and thus $\rho_{\mathrm{dist}}(g_j, p) \leq \nu / |S_j| + \eta_j$ .
+
+Proposition B.6. Given $Q_{\mathrm{dist}}$ as defined in equation 16, for any conditional distribution $p$ , the optimal projection $q^{*} = \arg \min_{q\in Q_{\mathrm{dist}}}\mathbb{E}[D_{KL}(q(X)||p(X))]$ is given by $q^{*} = p^{\lambda^{*}}$ where
+
+$$
+p ^ {\lambda} (x) _ {y} := Z _ {\lambda} (x) \exp \left(\sum_ {j: g _ {j} (x) = y} \lambda\right) p (x) _ {y} \tag {144}
+$$
+
+$Z_{\lambda}(x)$ is the normalization constant. The optimal $\lambda^{*}$ is given by the following optimization:
+
+$$
+\boldsymbol {\lambda} ^ {*} = \min _ {\boldsymbol {\lambda} \geq \mathbf {0}} \sum_ {j = 1} ^ {m} \boldsymbol {\lambda} _ {j} \quad s. t. \quad \rho_ {\text {d i s t}} \left(g _ {j}, p ^ {\boldsymbol {\lambda}}\right) \leq \eta_ {j} \forall j \in [ m ] \tag {145}
+$$
+
+Proof. The problem is a convex optimization with affine constraints since $\rho_{\mathrm{dist}}(g_j,q) = \mathbb{E}[\sum_{y\neq g_j(X)}q(X)_y]$ . To restate it is,
+
+$$
+\min _ {q \in \mathcal {X} \rightarrow \Delta^ {K}} \mathbb {E} \left[ D _ {\mathrm {K L}} (q (X) | | p (X)) \right] \tag {146}
+$$
+
+$$
+s. t. \mathbb {E} [ \sum_ {y \neq g _ {j} (X)} q (X) _ {y} ] \leq \eta_ {j} \forall j \in [ m ] \tag {147}
+$$
+
+In terms of unconstrained variable $q \in \mathcal{X} \to \mathbb{R}^K$ , this becomes
+
+$$
+\min _ {q \in \mathcal {X} \rightarrow \mathbb {R} ^ {K}} \mathbb {E} \left[ \sum_ {k = 1} ^ {K} q (X) _ {k} \log \left(q (X) _ {k} / p (X) _ {k}\right)\right] \tag {148}
+$$
+
+$$
+s. t. \mathbb {E} [ \sum_ {y \neq g _ {j} (X)} q (X) _ {y} ] \leq \eta_ {j} \forall j \in [ m ] \tag {149}
+$$
+
+$$
+\sum_ {y = 1} ^ {K} q (x) _ {y} = 1 \text {f o r a l l} x \tag {150}
+$$
+
+$$
+q (x) _ {y} \in [ 0, 1 ] \text {f o r a l l} x, \text {a n d} y \in [ K ] \tag {151}
+$$
+
+Since $\log$ is undefined for nonpositive values and assuming $p(x)_y > 0$ for all $x,y$ , we only need to consider $q(x)_y \in \mathbb{R}_+$ , thus we can ignore the constraint $q(x)_y \geq 0$ . $q(x)_y \leq 1$ also follows from the constraint $\sum_{y=1}^{K} q(x)_y = 1$ . Hence the constraint $q(x)_y \in [0,1]$ can be ignored. Rephrasing we have
+
+$$
+\min _ {q \in \mathcal {X} \rightarrow \mathbb {R} _ {+} ^ {K}} \mathbb {E} \left[ \sum_ {k = 1} ^ {K} q (X) _ {k} \log \left(q (X) _ {k} / p (X) _ {k}\right)\right] \tag {152}
+$$
+
+$$
+s. t. \mathbb {E} [ q (X) _ {g _ {j} (X)} ] \geq 1 - \eta_ {j} \forall j \in [ m ] \tag {153}
+$$
+
+$$
+\sum_ {k = 1} ^ {K} q (x) _ {k} = 1 \text {f o r a l l} x \tag {154}
+$$
+
+Here we subtracted from 1, both sides of the inequality constraint.
+
+Now we form the lagrangian $\mathcal{L}(q,\lambda ,\mu)$ where $\lambda \in \mathbb{R}_+^m$ , a Lagrange multiplier for each inequality constraint, and $\mu \in \mathcal{X}\to \mathbb{R}$ , the Lagrange multiplier for equality constraints.
+
+$$
+\begin{array}{l} \mathcal {L} (q, \boldsymbol {\lambda}, \mu) = \mathbb {E} \left[ \sum_ {k = 1} ^ {K} q (X) _ {k} \log (q (X) _ {k} / p (X) _ {k}) \right] \\ + \mathbb {E} [ \mu (X) (1 - \sum_ {k = 1} ^ {K} q (X) _ {k}) ] + \sum_ {j = 1} ^ {m} \lambda_ {j} (1 - \eta_ {j} - \mathbb {E} [ q (X) _ {g _ {j} (X)} | X \in S _ {j} ]) \\ \end{array}
+$$
+
+We have
+
+$$
+\min _ {q \in \mathcal {X} \to \mathbb {R} _ {+} ^ {K}} \max _ {\boldsymbol {\lambda} \in \mathbb {R} _ {+} ^ {m}, \mu \in \mathcal {X} \to \mathbb {R}} \mathcal {L} (q, \boldsymbol {\lambda}, \mu) = \min _ {q \in Q _ {\text {d i s t}}} \mathbb {E} [ D _ {\mathrm {K L}} (q (X) | | p (X)) ]
+$$
+
+Since the optimization is convex, a point $(q^{*},\lambda^{*},\mu^{*})$ that satisfies the KKT conditions is optimal. KKT stationarity condition implies that
+
+$$
+\nabla_ {q} \mathcal {L} \left(q ^ {*}, \lambda^ {*}, \mu^ {*}\right) = 0 \tag {155}
+$$
+
+where derivative of an objective $L(g) = \mathbb{E}[\sum_{k=1}^{K} f(g(X, k))]$ where $f: \mathbb{R} \to \mathbb{R}$ is a scalar function, with respect to a function $g$ in $\mathcal{X} \times [K] \to \mathbb{R}$ is defined using methods in calculus of variation as a function in $\mathcal{X} \times [K] \to \mathbb{R}$
+
+$$
+\nabla_ {g} L (g) (x, y) = \mathbb {E} [ \delta (X = x) f ^ {\prime} (g (X, y)) ] = d (x) f ^ {\prime} (g (x, y)) \tag {156}
+$$
+
+where $d$ is the probability density associated with marginal distribution $P$ on $\mathcal{X}$ . Thus we have
+
+$$
+\nabla_ {q} \mathcal {L} \left(q ^ {*}, \lambda^ {*}, \mu^ {*}\right) (x, y) = d (x) \left(1 + \log q ^ {*} (x) _ {y} / p (x) _ {y} - \mu^ {*} (x) - \sum_ {j} \lambda_ {j} ^ {*} \mathbb {I} (y = g _ {j} (x))\right) = 0 \tag {157}
+$$
+
+Using $\sum_{y}q^{*}(x)_{y} = 1$ , we can eliminate $\mu^{*}(x)$ to get $q^{*}(x)_{y}$ for $x$ in support of $P(d(x) > 0)$
+
+$$
+q ^ {*} (x) _ {y} = Z _ {\boldsymbol {\lambda} ^ {*}} (x) \exp \left(\sum_ {j: g _ {j} (x) = y} \boldsymbol {\lambda} _ {j} ^ {*}\right) p (x) _ {y} \tag {158}
+$$
+
+where $Z_{\lambda^*}(x)$ is the normalization constant
+
+$$
+Z _ {\boldsymbol {\lambda} ^ {*}} (x) = 1 / \left(\sum_ {y = 1} ^ {K} \exp \left(\sum_ {j: g _ {j} (x) = y} \boldsymbol {\lambda} _ {j} ^ {*}\right) p (x) _ {y}\right) \tag {159}
+$$
+
+Complementary slackness condition on the inequality constraints imply
+
+$$
+\boldsymbol {\lambda} _ {i} ^ {*} \left(1 - \eta_ {i} - \mathbb {E} \left[ q ^ {*} (X) _ {g _ {i} (X)} \mid X \in S _ {i} \right]\right) = 0; \forall i \in [ m ] \tag {160}
+$$
+
+Singling out $\lambda_i^*$ from expression of $q^{*}(x)_{y}$ in equation 158, $q^{*}(x)_{g_{i}(x)}$ becomes
+
+$$
+q ^ {*} (x) _ {g _ {i} (x)} = \frac {\exp \left(\boldsymbol {\lambda} _ {i} ^ {*} + \sum_ {j \neq i : g _ {j} (x) = g _ {i} (x)} \boldsymbol {\lambda} _ {j} ^ {*}\right) p (x) _ {g _ {i} (x)}}{\exp \left(\boldsymbol {\lambda} _ {i} ^ {*} + \sum_ {j \neq i : g _ {j} (x) = g _ {i} (x)} \boldsymbol {\lambda} _ {j} ^ {*}\right) p (x) _ {g _ {i} (x)} + \sum_ {y \neq g _ {i} (x)} \exp \left(\sum_ {j : g _ {j} (x) = y} \boldsymbol {\lambda} _ {j} ^ {*}\right) p (x) _ {y}} \tag {161}
+$$
+
+or
+
+$$
+q ^ {*} (x) _ {g _ {i} (x)} = \exp \left(\boldsymbol {\lambda} _ {i} ^ {*}\right) f _ {i} (x) / \left(\exp \left(\boldsymbol {\lambda} _ {i} ^ {*}\right) f _ {i} (x) + 1 - f _ {i} (x)\right) \tag {162}
+$$
+
+where
+
+$$
+f _ {i} (x) = \exp \left(\sum_ {j \neq i: g _ {j} (x) = g _ {i} (x)} \lambda_ {j} ^ {*}\right) p (x) _ {g _ {i} (x)} / \left(\sum_ {y = 1} ^ {K} \exp \left(\sum_ {j \neq i: g _ {j} (x) = y} \lambda_ {j} ^ {*}\right) p (x) _ {y}\right) \tag {163}
+$$
+
+$f_{i}$ depends on $\lambda_j^*$ for $j\neq i$ but dependence is dropped for convenience.
+
+The complementary slackness condition in equation 160 now becomes
+
+$$
+\left. \boldsymbol {\lambda} _ {i} ^ {*} \left(1 - \eta_ {i} - \mathbb {E} \left[ \frac {\exp \left(\boldsymbol {\lambda} _ {i} ^ {*}\right) f _ {i} (X)}{\exp \left(\boldsymbol {\lambda} _ {i} ^ {*}\right) f _ {i} (X) + 1 - f _ {i} (X)} \mid X \in S _ {i} \right]\right) = 0 \right. \tag {164}
+$$
+
+Let $\ell(t) = \mathbb{E}\left[\frac{t \cdot f_i(X)}{t \cdot f_i(X) + 1 - f_i(X)} | X \in S_i\right]$ . We have
+
+$$
+\frac {\delta}{\delta t} \ell (t) = \mathbb {E} \left[ \frac {f _ {i} (X) (1 - f _ {i} (X))}{(t f _ {i} (X) + 1 - f _ {i} (X)) ^ {2}} | X \in S _ {i} \right] > 0 \tag {165}
+$$
+
+and
+
+$$
+\frac {\delta^ {2}}{\delta t ^ {2}} \ell (t) = \mathbb {E} \left[ \frac {- 2 \left(f _ {i} (X)\right) ^ {2} \left(1 - f _ {i} (X)\right)}{\left(t f _ {i} (X) + 1 - f _ {i} (X)\right) ^ {3}} | X \in S _ {i} \right] < 0 \tag {166}
+$$
+
+(We assume $p(x)_y \in (0,1)$ and thus $f_i(x) \in (0,1)$ to get the above inequalities.)
+
+Therefore, $\ell$ is a strictly increasing and concave function in $t$ , and thus $\ell(\exp(\lambda))$ is strictly increasing in $\lambda$ . Thus from complementary slackness condition in equation 164, if $\ell(\exp(0)) \geq 1 - \eta_i$ then $\pmb{\lambda}_i^* = 0$ , else $\pmb{\lambda}_i^* = \lambda : \ell(\exp(\lambda)) = 1 - \eta_i$ . Together this can be written as
+
+$$
+\lambda_ {i} ^ {*} = \min _ {\lambda \geq 0} \lambda : \ell (\exp (\lambda)) \geq 1 - \eta_ {i} \tag {167}
+$$
+
+or
+
+$$
+\boldsymbol {\lambda} _ {i} ^ {*} = \min _ {\lambda \geq 0} \lambda : \mathbb {E} \left[ \frac {\exp (\lambda) f _ {i} (X)}{\exp (\lambda) f _ {i} (X) + 1 - f _ {i} (X)} | X \in S _ {i} \right] \geq 1 - \eta_ {i} \tag {168}
+$$
+
+Plugging back $f_{i}$ defined in equation 163, and using definition of $p^{\lambda}$ , this is
+
+$$
+\boldsymbol {\lambda} _ {i} ^ {*} = \min _ {\lambda \geq 0} \lambda : \mathbb {E} \left[ p ^ {\lambda} (X) _ {g _ {i} (X)} \right] \geq 1 - \eta_ {i} \tag {169}
+$$
+
+where $\lambda_{i} = \lambda$ , and $\lambda_{j} = \lambda_{j}^{*}$ for $j \neq i$ . Or equivalently
+
+$$
+\boldsymbol {\lambda} _ {i} ^ {*} = \underset {\boldsymbol {\lambda} _ {i} \geq 0} {\arg \min } \sum_ {j = 1} ^ {m} \boldsymbol {\lambda} _ {j}: \rho \left(g _ {i}, p ^ {\boldsymbol {\lambda}}\right) \leq \eta_ {i} \tag {170}
+$$
+
+where $\lambda_{j} = \lambda_{j}^{*}$ for $j\neq i$
+
+And thus combining for all $i$ we get,
+
+$$
+\boldsymbol {\lambda} ^ {*} = \underset {\boldsymbol {\lambda} \geq \mathbf {0}} {\arg \min } \sum_ {j = 1} ^ {m} \boldsymbol {\lambda} _ {j}: \rho \left(g _ {j}, p ^ {\boldsymbol {\lambda}}\right) \leq \eta_ {j} \forall j \in [ m ] \tag {171}
+$$
+
+
+
+Proposition B.7. Given the optimization problem
+
+$$
+\boldsymbol {\lambda} ^ {*} = \underset {\boldsymbol {\lambda} \geq \mathbf {0}} {\arg \min } \sum_ {j = 1} ^ {m} \boldsymbol {\lambda} _ {j}: \rho \left(g _ {j}, p ^ {\boldsymbol {\lambda}}\right) \leq \eta_ {j} \forall j \in [ m ] \tag {172}
+$$
+
+The solution found by the following alternating minimization procedure is optimal if the outer loop converges (The inner loop (equation 174) always converges).
+
+Start with $\lambda = 0$ . Then repeat until convergence:
+
+1. Pick $j \in [m]$ , either randomly or in a round robin fashion.
+
+2. Solve for
+
+$$
+\lambda_ {j} = \arg \min _ {\lambda} \lambda : \rho \left(g _ {j}, p ^ {\lambda_ {- j}}\right) \leq \eta_ {j} \tag {173}
+$$
+
+where $\lambda_{-j} = [\lambda_1\ldots \lambda_{j - 1},0,\lambda_{j + 1},\lambda_m]$ as follows:
+
+$$
+\text {S t a r t :} \lambda_ {j} = 0
+$$
+
+Repeat until convergence: $\lambda_{j}\gets \lambda_{j} + \log (1 + (1 - \eta_{j} - \tau_{j}(h_{j}))_{+} / \tau_{j}(h_{j}(1 - h_{j})))$
+
+$$
+\tau_ {j} (h) = \mathbb {E} [ h (X) | X \in S _ {j} ] \tag {174}
+$$
+
+where $h_j(x) = p^\lambda (x)_{g_j(x)}$
+
+Proof. First, we show that the solution to the constrained optimization in equation 173 with respect to $\lambda$ for a fixed $\lambda_{-j}$ can be found by the iterative algorithm described in equation 174. The LHS of the constraint in equation 173, $\rho(g_j, p^{\lambda_{-j}})$ is a function of the form
+
+$$
+\mathbb {E} \left[ \exp (\lambda) f _ {j} (X) / \left(\exp (\lambda) f _ {j} (X) + 1 - f _ {j} (X)\right) \mid X \in S _ {j} \right] \tag {175}
+$$
+
+where
+
+$$
+f _ {j} (x) = \exp (\sum_ {k \neq j: g _ {k} (x) = g _ {j} (x)} \lambda_ {k}) p (x) _ {g _ {j} (x)} / (\sum_ {y} \exp (\sum_ {k \neq j: g _ {k} (x) = y} \lambda_ {k}) p (x) _ {y})
+$$
+
+which is strictly increasing and concave in $\exp (\lambda)$ as proved in equation 165. Suppose $\mathbb{E}[h_j(X;\lambda^t,\pmb{\lambda}_{-j})|X\in S_j] < 1 - \eta_j$ . Then $\pmb{\lambda}_j$ can also be written as
+
+$$
+\boldsymbol {\lambda} _ {j} = \min _ {\lambda \geq 0} \lambda : \mathbb {E} \left[ h _ {j} \left(X; \lambda^ {t} + \lambda , \boldsymbol {\lambda} _ {- j}\right) | X \in S _ {j} \right] \geq 1 - \eta_ {j}
+$$
+
+We have
+
+$$
+h _ {j} (x; \lambda^ {t} + \lambda , \pmb {\lambda} _ {- j}) = \exp (\lambda) h _ {j} (x; \lambda^ {t}, \pmb {\lambda} _ {- j}) / (\exp (\lambda) h _ {j} (x; \lambda^ {t}, \pmb {\lambda} _ {- j}) + 1 - h _ {j} (x; \lambda^ {t}, \pmb {\lambda} _ {- j}))
+$$
+
+Letting $\mu(s) = \mathbb{E}[h_j(X; \log s + \lambda^t, \lambda_{-j}) | X \in S_j]$ . This is of the form in 175 and is strictly increasing and concave in $s$ as proved in equation 165, and equation 166 respectively. $\lambda_j$ is thus given as $\exp(s)$ , $s > 1$ s.t. $\mu(s) = 1 - \eta_j$ . If a differentiable function $\mu$ is strictly increasing and concave we have for any $s_1, s_2$
+
+$$
+\mu \left(s _ {1}\right) < \mu \left(s _ {1} + \left(\mu \left(s _ {2}\right) - \mu \left(s _ {1}\right)\right) / \mu^ {\prime} \left(s _ {1}\right)\right) < \mu \left(s _ {2}\right) \tag {176}
+$$
+
+Observe that $s = s_1 + (\mu(s_2) - \mu(s_1)) / \mu'(s_1)$ is also one iteration of the Newton-Raphson method to solve for $s' : \mu(s') = \mu(s_2)$ starting with $s = s_1$ .
+
+Using $s_1 = 1$ and $s_2: \mu(s_2) = 1 - \eta_i$ , we get
+
+$$
+\mu (1) < \mu (1 + (1 - \eta_ {i} - \mu (1)) / \mu^ {\prime} (1)) < 1 - \eta_ {i} \tag {177}
+$$
+
+We have $\mu(1) = \mathbb{E}[h_j(X; \lambda^t, \pmb{\lambda}_{-j}) | X \in S_j]$ and $\mu'(1) = \mathbb{E}[h_j(X; \lambda^t, \pmb{\lambda}_{-j})(1 - h_j(X; \lambda^t, \pmb{\lambda}_{-j})) | X \in S_j]$ . Thus
+
+$$
+\lambda^ {t + 1} = \lambda^ {t} + \log \left(1 + \frac {\left(1 - \eta_ {i} - \mathbb {E} \left[ h _ {j} \left(X ; \lambda^ {t} , \boldsymbol {\lambda} _ {- j}\right) \mid X \in S _ {j} \right]\right)}{\mathbb {E} \left[ h _ {j} \left(X ; \lambda^ {t} , \boldsymbol {\lambda} _ {- j}\right) \left(1 - h _ {j} \left(X ; \lambda^ {t} , \boldsymbol {\lambda} _ {- j}\right)\right) \mid X \in S _ {j} \right]}\right) \tag {178}
+$$
+
+satisfies
+
+$$
+\mathbb {E} \left[ h _ {j} \left(X; \lambda^ {t}, \boldsymbol {\lambda} _ {- j}\right) \mid X \in S _ {j} \right]) < \mathbb {E} \left[ h _ {j} \left(X; \lambda^ {t + 1}, \boldsymbol {\lambda} _ {- j}\right) \mid X \in S _ {j} \right]) < 1 - \eta_ {i} \tag {179}
+$$
+
+In particular given $\lambda^t$ , we apply one step update of Newton-Raphson method on $\mathbb{E}[h_j(X;\lambda^t,\pmb{\lambda}_{-j})|X\in S_j]$ to get $\lambda^{t + 1}$ and thus subsequently use $h_j(\cdot ;\lambda^{t + 1},\pmb{\lambda}_{-j})$ to apply the next update. Convergence of these updates is faster than directly applying Newton's method on the starting function $\mathbb{E}[h_j(X;\lambda^0 = 0,\pmb{\lambda}_{-j})|X\in S_j]$ which is
+
+$$
+\exp \left(\lambda^ {t + 1}\right) = \exp \left(\lambda^ {t}\right) + \left(1 + \frac {\left(1 - \eta_ {i} - \mathbb {E} \left[ h _ {j} \left(X ; \lambda^ {t} , \boldsymbol {\lambda} _ {- j}\right) \mid X \in S _ {j} \right]\right)}{\mathbb {E} \left[ h _ {j} \left(X ; \lambda^ {t} , \boldsymbol {\lambda} _ {- j}\right) \left(1 - h _ {j} \left(X ; \lambda^ {t} , \boldsymbol {\lambda} _ {- j}\right)\right) \mid X \in S _ {j} \right]}\right) \tag {180}
+$$
+
+or
+
+$$
+\lambda^ {t + 1} = \lambda^ {t} + \log \left(1 + \frac {\exp (- \lambda^ {t}) (1 - \eta_ {i} - \mathbb {E} [ h _ {j} (X ; \lambda^ {t} , \boldsymbol {\lambda} _ {- j}) | X \in S _ {j} ])}{\mathbb {E} [ h _ {j} (X ; \lambda^ {t} , \boldsymbol {\lambda} _ {- j}) (1 - h _ {j} (X ; \lambda^ {t} , \boldsymbol {\lambda} _ {- j})) | X \in S _ {j} ]}\right) \tag {181}
+$$
+
+This results in a lower update since $\lambda^t > 0$ or $\exp(-\lambda^t) < 1$ .
+
+Now we show that if the alternating minimization converges it leads to the optimal solution $\lambda^{*}$ .
+
+Suppose the algorithm converges but the solution $\lambda$ found is not optimal. This implies that $\lambda$ satisfies all of the constraints, but the KKT complementary slackness condition given in equation 164 is violated. Since $\mathbb{E}[h_j(X;\lambda ,\lambda_{-j})|X\in S_j]$ is a strictly increasing function in $\lambda$ , and $\lambda_{j}$ solves for $\lambda$ in equation 173 given $\lambda_{-j}$ , if $\lambda_{j} > 0$ , then the equality must be satisfied, otherwise $\lambda_{j}$ can be reduced (since $\lambda_{j} > 0$ ) without violating the inequality constraint. Thus either $\mathbb{E}[h_j(X;\lambda ,\lambda_{-j})|X\in S_j] = 1 - \eta_j$ or $\lambda_{j} = 0$ which satisfies the KKT complementary slackness condition.
+
+# C COMPACT VERSION OF OUR ALGORITHM
+
+Algorithm 1 Learning from weak labeler constraints
+Input: Unlabeled data $\{x_i\}_{i = 1}^n$ , weak labelers $\{g_j\}_{j = 1}^m$ and the corresponding error bounds $\{\eta_j\}_{j = 1}^m$ . A smooth real-valued function $f:\mathcal{X}\rightarrow \mathbb{R}^{K}$ $w_{ij}\coloneqq g_j(x_i)\in [K]\cup \{\emptyset \}$ // Weak labels
+ $c_{j}\coloneqq \sum_{i}s_{ij}$ // Coverage
+for each epoch do
+ $z_{i}\gets f(x_{i})$ // Logits
+ $p_i\gets \sigma (z_i)$ // Probabilities
+ $e_j\gets (1 - \eta_j - \sum_{i:w_{ij}\neq \emptyset}p_i / c_j)_+$ // Error in constraints
+ $d_j\leftarrow \sum_{i:w_{ij}\neq \emptyset}p_i(1 - p_i) / c_j$ $\lambda_j\gets \log (1 + e_j / d_j)$ // One step parallel newton update to find $\lambda$ (equation 22)
+ $(h_i)_k\gets (z_i)_k + \sum_j\lambda_j\mathbb{I}(w_{ij} = k)$ // Logits of projected distribution (equation 22)
+loss $\leftarrow \frac{1}{n}\sum_{i = 1}^{n}\ell_{ce}(z_i,\sigma (h_i))$ // Cross entropy loss
+ $f\gets update(f,\mathcal{R}(f) + \alpha \cdot \mathrm{loss})$ // Gradient descent update (equation 10)
+end for
+
+
+Figure 3: Max error in satisfying convex approximation of constraints $(\max_j\rho_{\mathrm{dist}}(g_j,q) - \eta_j)$ , (left) vs max error in satisfying classifier constraints $(\max_j\rho (g_j,\operatorname {clf}(q)) - \eta_j)$ , (right) averaged over 100 runs of random draws of $p$ and weak labelers, where $q = \pi (p,Q_{\mathrm{dist}})$ , i.e. the projection $q$ is found by projecting $p$ on constraints on distribution as described in section 3.2.
+
+# D ADDITIONAL RESULTS ON SOLVING THE ILP
+
+# D.1 SOLVING THE ILP THROUGH LP
+
+For the particular ILP in equation 13, we have empirically found that the optimal solution of the relaxed LP is mostly integral, and approximating the non-integer by its integral solution almost always satisfies the constraints (the error in constraint satisfaction $\rho_{\mathrm{clf}}(g_j,\operatorname {clf}(q)) - \eta_j)$
+
+In Figure 4 and 5, we show the performance of solving the ILP after LP relaxation. We used 'scipy.linprog' in Python to solve the LP. In particular, Figure 4 shows that the constraints are satisfied well (the error $\rho_{\mathrm{clf}}(g_j,\operatorname {clf}(q)) - \eta_j$ is small), and 5 shows that only a small fraction of the variables (one variable for each unlabeled data $x$ ) are non-integral.
+
+
+Figure 4: Max error in satisfaction of classifier constraints $(\max_j\rho (g_j,\operatorname {clf}(q)) - \eta_j)$ , averaged over 100 runs of random draws of $p$ and weak labelers, where $q = \pi (p,Q_{\mathrm{clf}})$ , i.e. the projection $q$ is found by projecting $p$ on the constraints on classifier through LP relaxation of the ILP described in 3.5.
+
+
+Figure 5: Fraction of non-integral points after solving the LP relaxed version of ILP averaged over 100 runs of random draws of $p$ and weak labelers.
+
+
+
+
+Figure 6: Max of $D_{\mathrm{KL}}(h||p) / D_{\mathrm{KL}}(h^* ||p)$ over 1000 uniformly random draws of $p$ . $h$ denotes the solution of 182 found by approximation (equation 184) or gradient descent (20 steps after initial approximation) and $h^*$ denotes the optimal solution as found by "cvxpy.CLARABEL" convex solver.
+
+# D.2 ESTIMATION OF THE COST VECTOR
+
+$\operatorname{Proj}_{\mathrm{KL}}(p(x);\Delta_{y,\epsilon}^{K})$ and $q^{*}(x)$ from equation 14, and equation 15 requires solving an optimization problem. We expand the $D_{\mathrm{KL}}$ term to have
+
+$$
+\min _ {h \in \Delta^ {K}} \sum_ {i = k} ^ {K} h _ {i} \log \left(h _ {k} / p (x) _ {k}\right) \text {s . t .} h _ {y} \geq (1 + \epsilon) h _ {k}, \forall k \neq y \tag {182}
+$$
+
+which can be solved by a black box convex solver. However, it can also be reparameterized in $\lambda \in \mathbb{R}_+^{K - 1}$ to get an unconstrained optimization as,
+
+$$
+h _ {k} = \exp (- \lambda_ {k}) / Z \text {f o r} k \neq y, h _ {y} = (1 + \epsilon) / Z; Z = \sum_ {k} h _ {k} \tag {183}
+$$
+
+The objective is no longer convex in $\lambda$ but projected gradient descent (projection to $\mathbb{R}_+^{K-1}$ ) can still be used to find a local minima. In particular, we find the approximation
+
+$$
+\lambda_ {i} = \log \left(\max _ {j} p (x) _ {j} / p (x) _ {i}\right) \tag {184}
+$$
+
+yields $h$ for which $D_{\mathrm{KL}}(h||p(x))$ is empirically found to be within a small constant factor from the optimal. This can further be used as a starting point for gradient descent, which then results in a solution close to optimal. In Figure 6, we show empirically that our approximation is within a constant factor from the optimal as found by 'cvxpy.CLARABEL' convex solver in Python, and a few iterations of projected gradient descent after this approximation find a solution very close to the optimal.
+
+# E CONVEX APPROXIMATION OF THE CONSTRAINT ON CLASSIFIER WITH THE CONSTRAINT ON DISTRIBUTION
+
+We remarked that the constraint sets $Q_{j,\mathrm{dist}}$ that impose constraints on distribution, i.e.
+
+$$
+Q _ {j, \text {d i s t}} = \left\{q \in \mathcal {X} \rightarrow \Delta^ {K} \mid \rho_ {\text {d i s t}} \left(g _ {j}, q\right) \leq \eta_ {j} \right\} \tag {185}
+$$
+
+can be considered as a convex approximation to the constraint sets $Q_{j,\mathrm{clf}}$ that impose constraints on classifiers, i.e.
+
+$$
+Q _ {j, \operatorname {c l f}} = \left\{q \in \mathcal {X} \rightarrow \Delta^ {K} \mid \rho_ {\operatorname {c l f}} \left(g _ {j}, \operatorname {c l f} (q)\right) \leq \eta_ {j} \right\} \tag {186}
+$$
+
+First, we note that for distributions that are very confident on one label, i.e. for any $x$ , there is a $y$ such that $p(x)_y > 1 - \epsilon$ for a small $\epsilon$ , we can quantify the extent of approximation.
+
+Lemma E.1. If for any $x$ there is a $y$ , such that $p(x)_y > 1 - \epsilon$ , then
+
+$$
+\rho_ {\operatorname {c l f}} \left(g _ {j}, \operatorname {c l f} (p)\right) \leq \rho_ {\operatorname {d i s t}} \left(g _ {j}, p\right) / (1 - \epsilon)
+$$
+
+and
+
+$$
+\rho_ {\mathrm {d i s t}} (g _ {j}, p) \leq \rho_ {\mathrm {c l f}} (g _ {j}, \operatorname {c l f} (p)) (1 - \epsilon) + \epsilon
+$$
+
+Thus any $p$ that satisfies $\rho_{\mathrm{clf}}(g_j, \operatorname{clf}(p)) \leq (\eta_j - \epsilon) / (1 - \epsilon)$ lies in $Q_{j,\mathrm{dist}}$ and any $p \in Q_{j,\mathrm{dist}}$ satisfies $\rho_{\mathrm{clf}}(g_j, \operatorname{clf}(p)) \leq \eta_j / (1 - \epsilon)$ .
+
+Proof.
+
+$$
+\begin{array}{l} \rho_ {\text {d i s t}} (g, p) = \mathbb {E} \left[ \sum_ {k \neq g (X)} p (X) _ {k} | X \in S, \operatorname {c l f} (p) (X) = g (X) \right] \Pr (\operatorname {c l f} (p) (X) = g (X) | X \in S) \\ + \mathbb {E} \left[ \sum_ {k \neq g (X)} p (X) _ {k} | X \in S, \operatorname {c l f} (p) (X) \neq g (X) \right] \Pr (\operatorname {c l f} (p) (X) \neq g (X) | X \in S) \\ \leq \epsilon \left(1 - \rho_ {\operatorname {c l f}} (g, \operatorname {c l f} (p))\right) + \rho_ {\operatorname {c l f}} (g, \operatorname {c l f} (p)) \\ \end{array}
+$$
+
+$$
+\begin{array}{l} \rho_ {\text {d i s t}} (g, p) \leq \rho_ {\text {c l f}} (g, \operatorname {c l f} (p)) (1 - \epsilon) + \epsilon \\ \rho_ {\text {d i s t}} (g, p) \geq 0 + (1 - \epsilon) \rho_ {\text {c l f}} (g, \operatorname {c l f} (p)) \\ \rho_ {\operatorname {c l f}} (g, \operatorname {c l f} (p)) \leq \rho_ {\operatorname {d i s t}} (g, p) / (1 - \epsilon) \\ \end{array}
+$$
+
+We dropped subscript $j$ for convenience. Substituting $\rho_{\mathrm{clf}}(g_j,\operatorname {clf}(p))\leq (\eta_j - \epsilon) / (1 - \epsilon)$ in the bound for $\rho_{\mathrm{clf}}$ , we get $\rho_{\mathrm{dist}}(g_j,p)\leq \eta_j$ . Similarly, substituting $\rho_{\mathrm{dist}}(g_j,p)\leq \eta_j$ in the bound for $\rho_{\mathrm{clf}}$ , we get $\rho_{\mathrm{clf}}(g_j,\operatorname {clf}(p))\leq \eta_j / (1 - \epsilon)$ .
+
+The above lemma suggests that if the true distribution makes confident predictions, (which is often the case for many real-world classification setting), then imposing a constraint on the distribution is close to imposing a constraint on classifier. However, this is only a sufficient condition and the convex approximation can be good without such a condition as well.
+
+In Figure, 3 we show the maximum error in satisfaction of any classifier constraint $\max_j\rho_{\mathrm{clf}}(g_j,\mathrm{clf}(q)) - \eta_j$ for $p$ sampled uniformly at random when we use the method for projecting on constraints on distribution, i.e. $q = \pi (p,Q_{\mathrm{dist}})$ . The data for weak labelers was generated randomly by first drawing $S_{j}$ such that $|S_{j}|\sim \mathcal{N}(0.6,0.3)$ and error bound $\eta_j\sim \mathcal{N}(0.3,0.3)$ and then choosing weak labels uniformly at random such that their expected error in $S_{j}$ is $\eta_{j}$ . To estimate the projection $\pi (p,Q_{\mathrm{dist}})$ , 20 steps of alternating minimization in a round-robin fashion (iterating over all constraints one by one) is performed to find $\lambda$ (proposition B.7), where each step for each constraint $i$ is optimized for 10 steps to find $\lambda_{i}$ given current the iterate $\lambda_{-i}$ .
+
+# F ESTIMATING ACCURACY BOUND FROM THE VALIDATION SET
+
+Our algorithm needs some estimate of the error bounds $\eta_{j}$ . Often they are not given but we have a small validation set with true labels, which can be leveraged to get bounds.
+
+One can be tempted to estimate $\eta_{j}$ for each labeler $g_{j}$ separately from available labels in its coverage region $S_{j}$ . This approach is problematic since many weak labelers have a small coverage set $S_{j}$ such
+
+that it is unlikely to have coverage in the validation set. Indeed if the validation set was large enough to have good coverage for all weak labelers, supervised learning may perform well enough rendering any additional information provided by weak labeler constraints uninformative. We consider two ways to alleviate this problem of low coverage.
+
+First, we consider a prior distribution on weak labeler errors $\eta_{j}$ and then compute a Bayesian posterior from the labeled set (and use its mean as the estimate of the bound $\eta_{j}$ ). When there are no labels in the coverage, the posterior remains the same as the prior. One example of a prior is a Beta prior $\beta (\alpha ,\beta)$ under which observing $k$ incorrect out of $n$ samples induces the posterior with mean $(k + \alpha) / (n + \alpha +\beta)$ . This can also be viewed as domain experts providing a general prior belief about errors instead of individual error estimates/ bounds for each weak labeler.
+
+Second, we consider a shared parameterization of errors as $\eta_{j} = h_{\phi}(g_{j},S_{j})$ and then treat $\phi$ as a hyperparameter to be tuned on the validation set. A simple instance of this shared parameterization is a common bound $\eta_{j} = \phi$ , i.e. $h_\phi (\cdot) = \phi$ . This can also be viewed as domain experts providing relative information about errors, such as the average errors of different weak labelers are similar/correlated.
+
+# G ADDITIONAL EXPERIMENT DETAILS
+
+# G.1 DATASET STATISTICS
+
+
Dataset
Num classes
Num labelers
Mean Accuracy
Mean Coverage
Youtube
2
10
0.83 ± 0.14
0.17 ± 0.09
IMDB
2
5
0.71 ± 0.15
0.24 ± 0.31
Bioresponse
2
20
0.64 ± 0.09
0.17 ± 0.20
Yelp
2
8
0.74 ± 0.09
0.18 ± 0.20
CDR
2
33
0.72 ± 0.13
0.06 ± 0.12
Chemprot
10
26
0.47 ± 0.17
0.06 ± 0.07
Semeval
9
164
0.77 ± 0.40
0.01 ± 0.03
Trec
6
68
0.73 ± 0.37
0.03 ± 0.08
+
+Table 2: Dataset statistics includes the number of classes, the number of weak labelers, and the mean accuracy and coverage of the weak labelers.
+
+# G.2 ERROR IN SATISFACTION OF CONSTRAINTS
+
+Table G.2 shows the errors in satisfaction of classifier constraints for our trained classifier $f_{\mathrm{clf}}^{*}$ , when projecting on $Q_{\mathrm{clf}}$ (row Ourclf(T) in table 1) as $\Delta_{\mathrm{clf}}^{j}$ , and $f_{\mathrm{dist}}^{*}$ when projecting on $Q_{\mathrm{dist}}$ (row Our(T) in table 1) as $\Delta_{\mathrm{dist}}^{j}$ .
+
+$$
+\Delta_ {\mathrm {c l f}} ^ {j} = \left(\rho_ {\mathrm {c l f}} \left(g _ {j}, f _ {\mathrm {c l f}} ^ {*}\right)\right) - \eta_ {j}) _ {+} \tag {187}
+$$
+
+$$
+\Delta_ {\text {d i s t}} ^ {j} = \left(\rho_ {\text {c l f}} \left(g _ {j}, f _ {\text {d i s t}} ^ {*}\right)\right) - \eta_ {j}) _ {+} \tag {188}
+$$
+
+$$
+\operatorname {m e a n} _ {j} \Delta^ {j} = \sum_ {j = 1} ^ {m} w _ {j} \Delta^ {j} \tag {189}
+$$
+
+$$
+w _ {j} = \left| S _ {j} \right| / \sum_ {j = 1} ^ {m} \left| S _ {j} \right| \tag {190}
+$$
+
+For most datasets, we see that almost all constraints are satisfied. Despite projecting on $Q_{\mathrm{dist}}$ ,
+
+
Bio
CDR
Chem
IMDB
Semeval
Trec
Yelp
Youtube
# Classes
2
2
10
2
9
6
2
2
# Labelers
20
33
26
5
164
68
8
10
meanjΔjdist
0.00.0
0.00.0
0.00.0
0.020.02
0.00.0
0.00.0
0.00.0
0.00.0
meanjΔjclf
0.00.0
0.00.0
0.020.01
0.050.01
0.00.0
0.020.01
0.010.0
0.010.01
maxjΔjdist
0.080.15
0.070.07
0.190.29
0.110.05
0.00.01
0.120.06
0.030.01
0.010.01
maxjΔjclf
0.030.01
0.050.05
0.280.22
0.120.03
0.050.03
0.550.29
0.060.01
0.040.03
+
+Table 3: Mean and Max error in satisfaction of constraints
+
+$\Delta_{\mathrm{dist}}^j$ which measures error in satisfying classifier constraint is small, indicating that projecting on distribution works well empirically for satisfying constraints on classifier.
+
+# G.3 EXPERIMENT DETAILS OF SOLVING THE ILP
+
+In table 1, we also reported our results for the method of projecting on the constraint on classifiers through solving the ILP in 3.5, as $\mathrm{Our}_{\mathrm{clf}}(T)$ . We did not have access to the true conditional distribution, and so we could not estimate accuracy bounds with respect to the target Bayes optimal classifier equation 1. Instead, we use the same bounds as estimated from training labels by interpreting them as noisy bounds with respect to the target classifier.
+
+We use the python function "scipy.linprog" to solve the ILP and estimate the projection. $\epsilon$ in 12 was set to 0.2. The cost vector $\mathrm{Proj}_{\mathrm{KL}}(p(X);\Delta_{y,\epsilon}^{K})$ of the ILP is estimated as described in D.2, in particular we use the approximation $\lambda_{k} = \log (\max_{j}p(x)_{j} / p(x)_{k})$ for $\lambda_{k}$ in equation 183. To limit the number of constraints in the linear program, we use stochastic gradient descent with a batch size of 1000. We take a single gradient step in each iteration of the alternating minimization in 3.2.
+
+# H ERROR GUARANTEE INSIDE THE COVERAGE OF WEAK LABELERS
+
+Theorem H.1. Let $\mathcal{H}_1, \ldots, \mathcal{H}_k$ be constraints of the form $\mathcal{H}_j = \{h : \mathcal{X} \to [K] \mid \rho_{\mathrm{clf}}(g_j, h) \leq \eta_j\}$ , each with different constant weak labels, $g_j(X) = j - 1$ for all $j = 1, \ldots, K$ , then for any $f \in \bigcap_j \mathcal{H}_j$ , we have
+
+$$
+\operatorname {e r r} _ {S} (f) \leq \sum_ {j = 1} ^ {k} \left(\eta_ {j} + \operatorname {e r r} _ {S _ {j}} \left(g _ {j}\right)\right) \frac {\Pr \left(S _ {j}\right)}{\Pr (S)} - \sum_ {\substack {\sigma \subseteq \{1, \dots , k \}, \\ |\sigma | \geq 2}} (2 | \sigma | - 3) \frac {\Pr \left(B _ {\sigma}\right)}{\Pr (S)}. \tag{191}
+$$
+
+when $S = \bigcup_{j=1}^{k} S_{j}$ , $B_{\sigma} = \left(\bigcap_{i \in \sigma} S_{i}\right) \cap \left(\bigcap_{i \in \{1, \ldots, k\} \setminus \sigma} S_{i}^{c}\right)$ are minterms.
+
+Proof. (Theorem 4.5) Let $B_{\sigma} = (\bigcap_{i \in \sigma} S_i) \cap (\bigcap_{i \in \{1, \ldots, k\} \setminus \sigma} S_i^c)$ be minterms. For simplicity, we denote $B_j = B_{\{j\}}$ and write $\operatorname*{Pr}(f(X) \neq f^*(X); B) = \operatorname*{Pr}(X \in \{x \in \mathcal{X} \mid f(x) \neq f^*(x)\} \cap B)$ . Since the weak labelers $g_j(x)$ are constant and different for each $g_j$ , without loss of generality, we assume that $g_j(x) = j - 1$ for any $x \in S_j$ and for all $j = 1, \ldots, k$ . Intuitively, $B_j$ are regions in $S_j$ with no other conflicting weak labels. We observe that
+
+$$
+\begin{array}{l} \operatorname {e r r} _ {S} (f) \Pr (X \in S) (192) \\ = \Pr (f (X) \neq f ^ {*} (X); S) (193) \\ = \sum_ {j = 1} ^ {k} \Pr (f (X) \neq f ^ {*} (X); B _ {j}) + \Pr (f (X) \neq f ^ {*} (X); S - \bigcup_ {j = 1} ^ {k} B _ {j}) \quad \left(B _ {i} \cap B _ {j} = \emptyset , i \neq j\right) (194) \\ \leq \sum_ {j = 1} ^ {k} \Pr (f (X) \neq j - 1; B _ {j}) + \Pr (f ^ {*} (X) \neq j - 1; B _ {j}) + \Pr (X \in S - \bigcup_ {j = 1} ^ {k} B _ {j}) \quad (\triangle \text {i n e q u a l i t y} (195) \\ \end{array}
+$$
+
+Since $f\in \bigcap_{j}\mathcal{H}_{j}$ , for $j = 1,\ldots ,k$ , we have
+
+$$
+\Pr (f (X) \neq j - 1; S _ {j}) \leq \eta_ {j} \Pr (X \in S _ {j}) \tag {196}
+$$
+
+$$
+\Pr (f (X) \neq j - 1; B _ {j}) + \Pr (f (X) \neq j - 1; S _ {j} - B _ {j}) \leq \eta_ {j} \Pr (X \in S _ {j}) \tag {197}
+$$
+
+$$
+\Pr (f (X) \neq j - 1; B _ {j}) \leq \eta_ {j} \Pr (X \in S _ {j}) - \Pr (f (X) \neq j - 1; S _ {j} - B _ {j}). \tag {198}
+$$
+
+Similarly, since $f^{*} \in \bigcap_{j} \mathcal{H}_{j}$ , for $j = 1, \ldots, k$ , we also have
+
+$$
+\Pr \left(f ^ {*} (X) \neq j - 1; B _ {j}\right) \leq \operatorname {e r r} _ {S _ {j}} \left(g _ {j}\right) \Pr \left(S _ {j}\right) - \Pr \left(f ^ {*} (X) \neq j - 1; S _ {j} - B _ {j}\right). \tag {199}
+$$
+
+Substitute these inequalities to the above, we have
+
+$$
+\begin{array}{l} \operatorname {e r r} _ {S} (f) \Pr (X \in S) \leq \sum_ {j = 1} ^ {k} \left(\eta_ {j} + \operatorname {e r r} _ {S _ {j}} \left(g _ {j}\right)\right) \Pr (X \in S _ {j}) - \Pr (f (X) \neq j - 1; S _ {j} - B _ {j}) (200) \\ - \Pr (f ^ {*} (X) \neq j - 1; S _ {j} - B _ {j}) + \Pr (X \in S - \bigcup_ {j = 1} ^ {k} B _ {j}) (201) \\ \end{array}
+$$
+
+The region $S_{j} - B_{j}$ is the area in $S_{j}$ with at least one other conflicting region, we can write this as a combination of minterms that represent each weak label in each region,
+
+$$
+S _ {j} - B _ {j} = \bigcup_ {\substack {\sigma \subseteq \{1, \dots , k \}, \\ j \in \sigma , | \sigma | \geq 2}} B _ {\sigma} \tag{202}
+$$
+
+Therefore,
+
+$$
+\begin{array}{l} \sum_ {j = 1} ^ {k} \Pr (f (X) \neq j - 1; S _ {j} - B _ {j}) (203) \\ = \sum_ {j = 1} ^ {k} \Pr (X \in S _ {j} - B _ {j}) - \Pr (f (X) = j - 1; S _ {j} - B _ {j}) (204) \\ = \sum_ {j = 1} ^ {k} \Pr (X \in S _ {j} - B _ {j}) - \sum_ {j = 1} ^ {k} \sum_ {\substack {\sigma \subseteq \{1, \dots , k \}, \\ j \in \sigma , | \sigma | \geq 2}} \Pr (f (X) = j - 1; B _ {\sigma}) \quad (\text {from equation 202}) (205) \\ = \sum_ {j = 1} ^ {k} \Pr (X \in S _ {j} - B _ {j}) - \sum_ {\substack {\sigma \subseteq \{1, \dots , k \}, \\ | \sigma | \geq 2}} \sum_ {j \in \sigma} \Pr (f (X) = j - 1; B _ {\sigma}) (206) \\ = \sum_ {j = 1} ^ {k} \Pr (X \in S _ {j} - B _ {j}) - \sum_ {\substack {\sigma \subseteq \{1, \dots , k \}, \\ | \sigma | \geq 2}} \Pr (f (X) + 1 \in \sigma ; B _ {\sigma}) \quad (\text {l a b e l s t a r t s f r o m 0}) (207) \\ \geq \sum_ {j = 1} ^ {k} \Pr (X \in S _ {j} - B _ {j}) - \sum_ {\substack {\sigma \subseteq \{1, \dots , k \}, \\ | \sigma | \geq 2}} \Pr (X \in B _ {\sigma}) (208) \\ \end{array}
+$$
+
+The second to last step holds from the fact that for each $\sigma$ , we will see $B_{\sigma}$ , $|\sigma|$ times for each element $j \in \sigma$ in terms of $\operatorname{Pr}(f(X) = j - 1; B_{\sigma})$ . The same argument also holds for $f^{*}$ . Substitute this back to the equation equation 200
+
+$$
+\begin{array}{l} \operatorname {e r r} _ {S} (f) \Pr (X \in S) \leq \sum_ {j = 1} ^ {k} \left(\eta_ {j} + \operatorname {e r r} _ {S _ {j}} \left(g _ {j}\right)\right) \Pr (X \in S _ {j}) - 2 \sum_ {j = 1} ^ {k} \Pr (X \in S _ {j} - B _ {j}) (209) \\ + 2 \sum_ {\sigma \subseteq \{1, \dots , k \}, | \sigma | \geq 2} \Pr (X \in B _ {\sigma}) + \Pr (X \in S - \bigcup_ {j = 1} ^ {k} B _ {j}). (210) \\ \end{array}
+$$
+
+Finally, we can write each term as a combination of $B_{\sigma}$
+
+$$
+\Pr (X \in S - \bigcup_ {j = 1} ^ {k} B _ {j}) = \sum_ {\substack {\sigma \subseteq \{1, \dots , k \}, \\ | \sigma | \geq 2}} \Pr (X \in B _ {\sigma}), \tag{211}
+$$
+
+$$
+\sum_ {j = 1} ^ {k} \Pr (X \in S _ {j} - B _ {j}) = \sum_ {\substack {\sigma \subseteq \{1, \dots , k \}, \\ | \sigma | \geq 2}} | \sigma | \Pr (X \in B _ {\sigma}) \tag{212}
+$$
+
+Substitute in, we have the result,
+
+$$
+\operatorname {e r r} _ {S} (f) \Pr (X \in S) \leq \sum_ {j = 1} ^ {k} \left(\eta_ {j} + \operatorname {e r r} _ {S _ {j}} \left(g _ {j}\right)\right) \Pr (X \in S _ {j}) - \sum_ {\substack {\sigma \subseteq \{1, \dots , k \}, \\ | \sigma | \geq 2}} (2 | \sigma | - 3) \Pr (X \in B _ {\sigma}). \tag{213}
+$$
+
+or in short, we write
+
+$$
+\operatorname {e r r} _ {S} (f) \leq \sum_ {j = 1} ^ {k} \left(\eta_ {j} + \operatorname {e r r} _ {S _ {j}} \left(g _ {j}\right)\right) \frac {\Pr \left(S _ {j}\right)}{\Pr (S)} - \sum_ {\substack {\sigma \subseteq \{1, \dots , k \}, \\ | \sigma | \geq 2}} (2 | \sigma | - 3) \frac {\Pr \left(B _ {\sigma}\right)}{\Pr (S)}. \tag{214}
+$$
+
+
+
+# I EXTENDING THE ERROR GUARANTEE TO THE AREA OUTSIDE OF THE WEAK LABELERS COVERAGE WITH A SMOOTHNESS PROPERTY
+
+To prove Theorem 4.6, we rely on the following observation.
+
+Lemma I.1. Let $f$ be an L-Lipschitz function w.r.t. a metric $d$ . For any distribution $P, Q$ we have
+
+$$
+\mathbb {E} _ {X \sim P} [ f (X) ] - \mathbb {E} _ {Y \sim Q} [ f (Y) ] \leq W _ {d} (P, Q) \tag {215}
+$$
+
+where $W_{d}(P,Q)$ is a Wasserstein distance between $P, Q$ where the cost function is given by $d$ .
+
+Proof. For any distribution $P, Q$ and a transport plan $T: \mathcal{X} \times \mathcal{X}$ between $P, Q$ , we have
+
+$$
+\begin{array}{l} \mathbb {E} _ {X \sim P} [ f (X) ] - \mathbb {E} _ {Y \sim Q} [ f (Y) ] = \int f (x) p (x) d x - \int f (y) q (y) d y (216) \\ = \iint f (x) T (x, y) d y d x - \iint f (y) T (x, y) d x d y (217) \\ = \iint | f (x) - f (y) | T (x, y) d y d x \leq L \iint d (x, y) T (x, y) d y d x. (218) \\ \end{array}
+$$
+
+When $T$ is the optimal transport plan, the right-hand side term is the smallest, which is the definition of the Wasserstein distance $W_{d}(P,Q)$ .
+
+The following Theorem is a generalization of Theorem 4.6.
+
+Theorem 1.2. Let $P$ be a joint distribution over $\mathcal{X} \times \mathcal{Y}$ such that $\operatorname*{Pr}(Y = y \mid X = x)$ is $L$ -Lipschitz w.r.t. a metric $d$ where for all $k = 1, \ldots, K$ and $x_1, x_2 \in \mathcal{X}$ ,
+
+$$
+\left| \Pr (Y = k \mid X = x _ {1}) - \Pr (Y = k \mid X = x _ {2}) \right| \leq L d \left(x _ {1}, x _ {2}\right), \tag {219}
+$$
+
+For any set $S$ and $f$ we write an error of $f$ with respect to $P$ as $\widetilde{\mathrm{err}}_S(f) = \operatorname*{Pr}(f(X) \neq Y \mid X \in S)$ , then for any subsets $C, D \subseteq \mathcal{X}$ , we have
+
+$$
+\widetilde {\operatorname {e r r} _ {D}} (f) \leq \widetilde {\operatorname {e r r} _ {C}} (f) \left(1 + t _ {f} (C, D)\right) + L u _ {f} (C, D) \tag {220}
+$$
+
+when
+
+$$
+t _ {f} (C, D) = \sup _ {k} \left| \frac {\Pr_ {C} (f (X) = k \mid X \in C) - \Pr (f (X) = k \mid X \in D)}{\Pr (f (X) = k \mid X \in C)} \right| \tag {221}
+$$
+
+and
+
+$$
+u _ {f} (C, D) = \sum_ {j} \Pr_ {D} (f (X) = k) W _ {d} \left(P _ {X | C \cap \{x \mid f (x) = k \}}, P _ {X | D \cap \{x \mid f (x) = k \}}\right), \tag {222}
+$$
+
+$W_{d}$ is a Wasserstein distance and we denote $P_{X|A}$ for a distribution $P_{X}$ condition on $X \in A$ .
+
+Proof. First, we write an error term as a combination of errors for each prediction of $f(x)$ ,
+
+$$
+\begin{array}{l} \widetilde {\operatorname {e r r}} _ {D} (f) = \Pr (f (X) \neq Y \mid X \in D) (223) \\ = \sum_ {k = 1} ^ {K} \Pr (f (X) \neq Y \mid f (X) = k, X \in D) \Pr (f (X) = k \mid X \in D) (224) \\ = \sum_ {k = 1} ^ {K} \Pr (Y \neq k \mid f (X) = k, X \in D) \Pr (f (X) = k \mid X \in D). (225) \\ \end{array}
+$$
+
+We observe that
+
+$$
+\begin{array}{l} | \Pr (Y \neq k \mid f (X) = k, X \in D) - \Pr (Y \neq k \mid f (X) = k, X \in C) | (226) \\ = | \Pr (Y = k \mid f (X) = k, X \in D) - \Pr (Y = k \mid f (X) = k, X \in C) | (227) \\ = \left| \mathbb {E} _ {X \sim P _ {X \mid D \cap \{x \mid f (x) = k \}}} [ \Pr (Y = k \mid X) ] - \mathbb {E} _ {X \sim P _ {X \mid C \cap \{x \mid f (x) = k \}}} [ \Pr (Y = k \mid X) ] \right| (228) \\ \leq L W _ {d} \left(P _ {X | D \cap \{x \mid f (x) = k \}}, P _ {X | C \cap \{x \mid f (x) = k \}}\right) (229) \\ \end{array}
+$$
+
+In the second to last line, we can think of $\operatorname{Pr}(Y = k|X)$ as a function of $X$ for which we can then apply Lemma I.1 to achieve the last line. For compactness of our notation, we denote $\operatorname{Pr}_C(\cdot) = \operatorname{Pr}_X(\cdot \mid X \in C)$ . Substitute this back to the equation above, we have
+
+$$
+\begin{array}{l} \widetilde {\operatorname {e r r} _ {D}} (f) \leq \sum_ {k = 1} ^ {K} \Pr_ {C} (Y \neq k \mid f (X) = k) \Pr_ {D} (f (X) = k) (230) \\ + \sum_ {k = 1} ^ {K} \left| \Pr_ {D} (Y \neq k \mid f (X) = k) - \Pr_ {C} (Y \neq k \mid f (X) = k) \right| \Pr_ {D} (f (X) = k) (231) \\ \leq \sum_ {k = 1} ^ {K} \Pr_ {C} (Y \neq k \mid f (X) = k) \Pr_ {D} (f (X) = k) (232) \\ + \sum_ {k = 1} ^ {K} L W _ {d} \left(P _ {X \mid D \cap \{x \mid f (x) = k \}}, P _ {X \mid C \cap \{x \mid f (X) = k \}}\right) \Pr_ {D} (f (x) = k) (233) \\ = \sum_ {k = 1} ^ {K} \Pr_ {C} (Y \neq k \mid f (X) = k) \Pr_ {D} (f (X) = k) + L u _ {f} (C, D). (234) \\ \end{array}
+$$
+
+Finally, we also observe that
+
+$$
+\begin{array}{l} \sum_ {k = 1} ^ {K} \Pr_ {C} (Y \neq k \mid f (X) = k) \Pr_ {D} (f (X) = j) (235) \\ = \sum_ {k = 1} ^ {K} \Pr_ {C} (Y \neq k \mid f (X) = k) \Pr_ {C} (f (X) = k) \left(1 + \frac {\Pr_ {D} (f (X) = k) - \Pr_ {C} (f (X) = k)}{\Pr_ {C} (f (X) = k)}\right) (236) \\ \leq \sum_ {k = 1} ^ {K} \Pr_ {C} (Y \neq k \mid f (X) = k) \Pr_ {C} (f (X) = k) | 1 + \frac {\Pr_ {D} (f (X) = k) - \Pr_ {C} (f (X) = k)}{\Pr_ {C} (f (X) = k)} | (237) \\ \leq \left(\sum_ {k = 1} ^ {K} \Pr_ {C} (Y \neq k \mid f (X) = k) \Pr_ {C} (f (X) = k)\right) \left(1 + \sup _ {k} \left| \frac {\Pr_ {D} (f (X) = k) - \Pr_ {C} (f (X) = k)}{\Pr_ {C} (f (X) = k)} \right|\right) (238) \\ = \widetilde {\operatorname {e r r}} _ {C} (f) \left(1 + t _ {f} (C, D)\right) (239) \\ \end{array}
+$$
+
+Combine with the above, we have
+
+$$
+\widetilde {\operatorname {e r r} _ {D}} (f) \leq \widetilde {\operatorname {e r r} _ {C}} (f) \left(1 + t _ {f} (C, D)\right) + L u _ {f} (C, D) \tag {240}
+$$
+
+
\ No newline at end of file
diff --git a/ICLR/2025/Learning from weak labelers as constraints/images.zip b/ICLR/2025/Learning from weak labelers as constraints/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..8e497d82407afbf8db97120e8c5e54ea6e055807
--- /dev/null
+++ b/ICLR/2025/Learning from weak labelers as constraints/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:af7e5c3112a80c54a0a4246834a3d1355f5be36ba383286664a333a90b96d3f5
+size 2644453
diff --git a/ICLR/2025/Learning from weak labelers as constraints/layout.json b/ICLR/2025/Learning from weak labelers as constraints/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..88311457fc08520c84c907c967aab93e38a0c74e
--- /dev/null
+++ b/ICLR/2025/Learning from weak labelers as constraints/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:92715905b139c77ab474b6f05f514528bf34f9c7fcea97b85dd74622ab83e586
+size 1731784
diff --git a/ICLR/2025/Learning mirror maps in policy mirror descent/e990d12c-1119-4a08-ad87-8f844669c1af_content_list.json b/ICLR/2025/Learning mirror maps in policy mirror descent/e990d12c-1119-4a08-ad87-8f844669c1af_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..72862e197481c80a8c03dade53da7c4064373e71
--- /dev/null
+++ b/ICLR/2025/Learning mirror maps in policy mirror descent/e990d12c-1119-4a08-ad87-8f844669c1af_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:916725fb39a194f4910d72ff6adb89bb4633704823c112e42cc528e5fa176ca6
+size 125752
diff --git a/ICLR/2025/Learning mirror maps in policy mirror descent/e990d12c-1119-4a08-ad87-8f844669c1af_model.json b/ICLR/2025/Learning mirror maps in policy mirror descent/e990d12c-1119-4a08-ad87-8f844669c1af_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..f53839bf6a0bcaebcd1d38b0653191921899280f
--- /dev/null
+++ b/ICLR/2025/Learning mirror maps in policy mirror descent/e990d12c-1119-4a08-ad87-8f844669c1af_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4363a89377e99a7ce9a70fcfee22f70c0f40665f6b2d71321d5344131d817551
+size 150201
diff --git a/ICLR/2025/Learning mirror maps in policy mirror descent/e990d12c-1119-4a08-ad87-8f844669c1af_origin.pdf b/ICLR/2025/Learning mirror maps in policy mirror descent/e990d12c-1119-4a08-ad87-8f844669c1af_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..fdf045b212713657a8d331e095ac8f70d0158c14
--- /dev/null
+++ b/ICLR/2025/Learning mirror maps in policy mirror descent/e990d12c-1119-4a08-ad87-8f844669c1af_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:35d2741a9c5624d23aa0db085fb8c43670bc8792ba6ab19ceea20a4d04710c02
+size 1324801
diff --git a/ICLR/2025/Learning mirror maps in policy mirror descent/full.md b/ICLR/2025/Learning mirror maps in policy mirror descent/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..38bae1db55d3f1f4e6a147f983767ef12ece0785
--- /dev/null
+++ b/ICLR/2025/Learning mirror maps in policy mirror descent/full.md
@@ -0,0 +1,558 @@
+# LEARNING MIRROR MAPS IN POLICY MIRROR DESCENT
+
+Carlo Alfano*
+
+Department of Statistics
+
+University of Oxford
+
+Sebastian Towers†
+
+FLAIR
+
+University of Oxford
+
+Silvia Sapora†
+
+FLAIR, Department of Statistics
+
+University of Oxford
+
+Chris Lu
+
+FLAIR
+
+University of Oxford
+
+Patrick Rebeschini
+
+Department of Statistics
+
+University of Oxford
+
+# ABSTRACT
+
+Policy Mirror Descent (PMD) is a popular framework in reinforcement learning, serving as a unifying perspective that encompasses numerous algorithms. These algorithms are derived through the selection of a mirror map and enjoy finite-time convergence guarantees. Despite its popularity, the exploration of PMD's full potential is limited, with the majority of research focusing on a particular mirror map—namely, the negative entropy—which gives rise to the renowned Natural Policy Gradient (NPG) method. It remains uncertain from existing theoretical studies whether the choice of mirror map significantly influences PMD's efficacy. In our work, we conduct empirical investigations to show that the conventional mirror map choice (NPG) often yields less-than-optimal outcomes across several standard benchmark environments. Using evolutionary strategies, we identify more efficient mirror maps that enhance the performance of PMD. We first focus on a tabular environment, i.e. Grid-World, where we relate existing theoretical bounds with the performance of PMD for a few standard mirror maps and the learned one. We then show that it is possible to learn a mirror map that outperforms the negative entropy in more complex environments, such as the MinAtar suite. Additionally, we demonstrate that the learned mirror maps generalize effectively to different tasks by testing each map across various other environments.
+
+# 1 INTRODUCTION
+
+Policy gradient (PG) methods (Williams & Peng, 1991; Sutton et al., 1999; Konda & Tsitsiklis, 2000; Baxter & Bartlett, 2001) are some of the most widely-used mechanisms for policy optimization in reinforcement learning (RL). These algorithms are gradient-based methods that optimize over a class of parameterized policies and have become a popular choice for RL problems, both in theory (Kakade, 2002; Peters & Schaal, 2008; Bhatnagar et al., 2009; Schulman et al., 2015; Mnih et al., 2016; Schulman et al., 2017; Lan, 2022a) and in practice (Shalev-Shwartz et al., 2016; Berner et al., 2019; Ouyang et al., 2022).
+
+Among PG methods, some of the most successful algorithms are those that employ some form of regularization in their updates, ensuring that the newly updated policy retains some degree of similarity to its predecessor. This principle has been implemented in different ways. For instance, trust region policy optimization (TRPO) Schulman et al. (2015) imposes a Kullback-Leibler divergence Kullback & Leibler (1951) hard constraint for its updates, while proximal policy optimization (PPO) (Schulman et al., 2017) uses a clipped objective to penalize large updates. A framework that has recently attracted attention and belongs to this heuristic is that of policy mirror descent (PMD) (Tomar et al., 2022; Lan, 2022a; Xiao, 2022; Kuba et al., 2022; Vaswani et al., 2022; Alfano et al., 2023), which applies mirror descent Nemirovski & Yudin (1983) to RL to regularize the policy updates.
+
+PMD consists of a wide class of algorithms, each derived by selecting a mirror map that introduces distinct regularization characteristics. In recent years, PMD has been investigated through numerical
+
+experiments (Tomar et al., 2022), but it has mainly been analysed from a theoretical perspective. To the best of our knowledge, research has been mostly focused either on the particular case of the negative entropy mirror map, which generates the natural policy gradient (NPG) algorithm (Kakade, 2002; Agarwal et al., 2021), or on finding theoretical guarantees for a generic mirror map.
+
+NPG has been proven to converge to the optimal policy, up to a difference in expected return (or error floor), in several settings, e.g. using tabular, linear, general parameterization (Agarwal et al., 2021) or regularizing rewards (Cen et al., 2021). It has been shown that NPG benefits from implicit regularization (Hu et al., 2022), that it can exploit optimism (Zanette et al., 2021; Liu et al., 2023), and some of its variants have been evaluated in simulations (Vaswani et al., 2022; 2023). When considering other specific mirror maps investigated in the RL literature, the Tsallis entropy has been noted for enhancing performance in offline settings (Tomar et al., 2022) and for offering improved sample efficiency in online settings (Li & Lan, 2023), when compared to the negative entropy.
+
+There is a substantial body of theoretical research focused on the general case of mirror maps. This research demonstrates that PMD achieves convergence to the optimal policy under the same conditions as NPG, as evidenced by various studies (Xiao, 2022; Lan, 2022b; Yuan et al., 2023; Alfano et al., 2023). Except for the setting where we have access to the true value of the policy, convergence guarantees in stochastic settings are subject to an error floor due to the inherent randomness or bias within the algorithm. In the majority of PMD analyses involving generic mirror maps, both the convergence rate and the error floor show mild dependence on the specific choice of mirror map. Typically, the effect of the mirror map appears explicitly as a multiplicative factor in the convergence rate and it appears implicitly in the error floor. These analyses often rely on upper bounds, meaning they may not accurately reflect the algorithms' actual performance in applications.
+
+In this work, we contribute to the literature with an empirical investigation of PMD, with the objectives of finding a mirror map that consistently outperforms the negative entropy mirror map and of understanding how the theoretical guarantees of PMD relate to simulations. We first consider a set of tabular environments, i.e. Grid-World (Oh et al., 2020), where we compare the empirical results to the theoretical guarantees given by Xiao (2022), which we can compute as we have full control over the environment. In this setting, we provide a learned mirror map which outperforms the negative entropy in all tested environments. Our experiments suggest that the error floor appearing in prototypical PMD convergence guarantees is not a good performance indicator: our learned mirror map achieves the best value while presenting the worst theoretical error floor, implying that the upper bounds typically considered in the PMD literature are loose with respect to the choice of the mirror map. Additionally, our experiments indicate that having small policy updates leads to smoother value improvements over time with less instances of performance degradation, as suggested by the monotonic policy improvement property given by Xiao (2022). We then consider two non-tabular settings, i.e. the Basic Control Suite and the MinAtar Suite, which are more realistic but also more complex, and therefore prevent us from computing the exact theoretical guarantees. We learn a mirror map for each of these environments and, also in this case, show that the learned mirror maps lead to a higher performance of PMD than the negative entropy. Moreover, we show that the learned mirror maps generalize well to other tasks, by testing each of the learned mirror maps on all the other environments. Lastly, we tackle continuous control tasks in MuJoCo (Todorov et al., 2012), where we show that the mirror map learned on one environment surpasses the negative entropy across several environments.
+
+To establish our findings, we employ the standard formulation of PMD (Xiao, 2022) for the tabular setting and the continuous control tasks, and we used a generalized version, Approximate Mirror Policy Optimization (AMPO) (Alfano et al., 2023), for the non-tabular setting with discrete action spaces. To allow optimization over the space of mirror maps, we introduce parameterization schemes for mirror maps, one for PMD and one for AMPO. Specifically, we propose a parameterization for $\omega$ -potentials, which have been shown to induce a wide class of mirror maps (Krichene et al., 2015). We use evolution strategies (ES) to search for the mirror map that maximizes the performance of PMD and AMPO over an environment.
+
+AMPO (Alfano et al., 2023) is a recently-proposed PMD framework designed to integrate general parameterization schemes, in our case neural networks, and arbitrary mirror maps. It benefits from theoretical guarantees, as Alfano et al. (2023) show that AMPO has quasi-monotonic updates as well as sub-linear and linear convergence rates, depending on the step-size schedule. These desirable properties make AMPO particularly suitable for our numerical investigation.
+
+ES are a type of population-based stochastic optimization algorithm that leverages random noise to generate a diverse pool of candidate solutions, and have been successfully applied to a variety of tasks (Real et al., 2019; Salimans et al., 2017; Such et al., 2018). The main idea consists in iteratively selecting higher-performing individuals, w.r.t. a fitness function, resulting in a gradual convergence towards the optimal solution. ES algorithms are gradient-free and have been shown to be well-suited for optimisation problems where the objective function is noisy or non-differentiable and the search space is large or complex (Beyer, 2000; Lu et al., 2022; 2023). We use ES to search over the parameterized classes of mirror maps we introduce, by defining the fitness of a particular mirror map as the value of the last policy outputted by PMD and AMPO, for fixed hyper-parameters.
+
+The rest of the paper is organized as follows. In Section 2, we introduce the setting of RL as well as the PMD and AMPO algorithms. We describe the methodology behind our numerical experiments in Section 3, which are then discussed in Section 4. Finally, we discuss related works from the literature on automatic discovery of machine learning algorithms in Appendix A and give our conclusions in Section 5.
+
+# 2 PRELIMINARIES
+
+# 2.1 REINFORCEMENT LEARNING
+
+Define a discounted Markov Decision Process (MDP) as the tuple $\mathcal{M} = (\mathcal{S},\mathcal{A},P,r,\gamma ,\mu)$ , where $\mathcal{S}$ and $\mathcal{A}$ are respectively the state and action spaces, $P(s^{\prime}\mid s,a)$ is the transition probability from state $s$ to $s^\prime$ when taking action $a$ , $r(s,a)\in [0,1]$ is the reward function, $\gamma$ is a discount factor, and $\mu$ is a starting state distribution. A policy $\pi \in (\Delta (\mathcal{A}))^{S}$ , where $\Delta (\mathcal{A})$ is the probability simplex over $\mathcal{A}$ , represents the behavior of an agent on an MDP, whereby at state $s\in S$ the agents take actions according to the probability distribution $\pi (\cdot \mid s)$ .
+
+Our objective is for the agent to find a policy that maximizes the expected discounted cumulative reward for the starting state distribution $\mu$ . That is, we want to find
+
+$$
+\pi^ {\star} \in \underset {\pi \in (\Delta (\mathcal {A})) ^ {S}} {\operatorname {a r g m a x}} \mathbb {E} _ {s \sim \mu} \left[ V ^ {\pi} (s) \right]. \tag {1}
+$$
+
+Here $V^{\pi}:\mathcal{S}\to \mathbb{R}$ denotes the value function associated with policy $\pi$ and is defined as
+
+$$
+V ^ {\pi} (s) := \mathbb {E} \Big [ \sum_ {t = 0} ^ {\infty} \gamma^ {t} r (s _ {t}, a _ {t}) \mid \pi , s _ {0} = s \Big ],
+$$
+
+where $s_t$ and $a_t$ are the current state and action at time $t$ and the expectation is taken over the trajectories generated by $a_t \sim \pi(\cdot | s_t)$ and $s_{t+1} \sim P(\cdot | s_t, a_t)$ .
+
+Similarly to the value function, we define the $Q$ -function associated with a policy $\pi$ as
+
+$$
+Q ^ {\pi} (s, a) := \mathbb {E} \Big [ \sum_ {t = 0} ^ {\infty} \gamma^ {t} r (s _ {t}, a _ {t}) \mid \pi , s _ {0} = s, a _ {0} = a \Big ],
+$$
+
+where the expectation is once again taken over the trajectories generated by the policy $\pi$ . When the state and action spaces are finite, the $Q$ -function can be expressed as $Q^{\pi} = (I - \gamma P^{\pi})^{-1}r$ , where $P^{\pi}$ is a square matrix where the position $((s,a),(s',a'))$ is occupied by $\pi(a'|s')P(s'|s,a)$ . We also define the discounted state visitation distribution as
+
+$$
+d _ {\mu} ^ {\pi} (s) := (1 - \gamma) \mathbb {E} _ {s _ {0} \sim \mu} \Big [ \sum_ {t = 0} ^ {\infty} \gamma^ {t} P (s _ {t} = s \mid \pi , s _ {0}) \Big ],
+$$
+
+where $P(s_{t} = s \mid \pi, s_{0})$ represents the probability of the agent being in state $s$ at time $t$ when following policy $\pi$ and starting from $s_{0}$ . The probability distribution over states $d_{\mu}^{\pi}(s)$ represents the proportion of time spent on state $s$ when following policy $\pi$ .
+
+# 2.2 POLICY MIRROR DESCENT
+
+We review the PMD framework, starting from mirror maps (Bubeck, 2015). Let $\mathcal{X} \subseteq \mathbb{R}^{\mathcal{A}}$ be a convex set. A mirror map $h: \mathcal{X} \to \mathbb{R}$ is a strictly convex, continuously differentiable and essentially smooth function that satisfies $\nabla h(\mathcal{X}) = \mathbb{R}^{\mathcal{A}}$ . In particular, we consider mirror maps belonging to the $\omega$ -potential mirror map class, which contains most mirror maps used in the literature.
+
+Definition 2.1 ( $\omega$ -potential mirror map (Krichene et al., 2015)). For $u \in (-\infty, +\infty]$ , $\omega \leq 0$ , an $\omega$ -potential is defined as an increasing $C^1$ -diffeomorphism $\phi : (-\infty, u) \to (\omega, +\infty)$ such that
+
+$$
+\lim _ {x \to - \infty} \phi (x) = \omega , \lim _ {x \to u} \phi (x) = + \infty , \int_ {0} ^ {1} \phi^ {- 1} (x) d x \leq \infty .
+$$
+
+For any $\omega$ -potential $\phi$ , we define the associated mirror map $h_{\phi}$ as
+
+$$
+h _ {\phi} (\pi_ {s}) = \sum_ {a \in \mathcal {A}} \int_ {1} ^ {\pi (a | s)} \phi^ {- 1} (x) d x.
+$$
+
+When $\phi(x) = e^x$ we recover the negative entropy mirror map, which is the standard choice of mirror map in the RL literature (Agarwal et al., 2021; Tomar et al., 2022; Hu et al., 2022; Vaswani et al., 2022; 2023), while we recover the $\ell_2$ -norm when $\phi(x) = x$ (see Appendix B.1). Mirror maps belonging to this class are particularly advantageous as they can be defined by a single scalar function $\phi$ , without having to account for the dimension of the action space $\mathcal{A}$ . The Bregman divergence (Bregman, 1967; Censor & Zenios, 1997) induced by the mirror map $h$ is defined as
+
+$$
+\mathcal {D} _ {h} (x, y) := h (x) - h (y) - \langle \nabla h (y), x - y \rangle ,
+$$
+
+where $\mathcal{D}_h(x,y)\geq 0$ for all $x,y\in \mathcal{X}$ . As we further discuss in Appendix C, the Bregman divergence measures how far two points are in a geometry induced by the mirror map. Given a starting policy $\pi^0$ , a learning rate $\eta$ and a mirror map $h$ , PMD can be formalized as an iterative algorithm: for all iterations $t\geq 0$
+
+$$
+\pi^ {t + 1} \in \operatorname {a r g m a x} _ {\pi \in (\Delta (\mathcal {A})) ^ {s}} \mathbb {E} _ {s \sim d _ {\mu} ^ {t}} [ \eta_ {t} \langle Q _ {s} ^ {t}, \pi_ {s} \rangle - \mathcal {D} _ {h} (\pi_ {s}, \pi_ {s} ^ {t}) ], \tag {2}
+$$
+
+where we used the shorthand: $V^{t} \coloneqq V^{\pi^{t}}$ , $Q^{t} \coloneqq Q^{\pi^{t}}$ , $d_{\mu}^{t} \coloneqq d_{\mu}^{\pi^{t}}$ and $y_{s} \coloneqq y(s, \cdot) \in \mathbb{R}^{\mathcal{A}}$ , for any function $y : S \times \mathcal{A} \to \mathbb{R}$ . PMD benefits from several theoretical guarantees and, in particular, Xiao (2022) shows that PMD enjoys quasi-monotonic updates and convergence to the optimal policy. We give here a slight modification of the statements of these results. Specifically, we do not upper-bound a term regarding the distance between subsequent policies in the result on quasi-monotonic updates, which we use to draw connections between theory and practice. Additionally, to obtain the convergence rate for PMD with constant step-size in the setting where we do not have access to the true Q-function, we combine the analyses on the sublinear convergence of PMD and linear convergence of inexact PMD given by Xiao (2022). We provide a proof in Appendix D.
+
+Theorem 2.2 (Xiao (2022)). Following update (2), we have that, for all $t \geq 0$
+
+$$
+V ^ {t + 1} (\mu) - V ^ {t} (\mu) \geq - \frac {1}{1 - \gamma} \max _ {s \in \mathcal {S}} \left\| \widehat {Q} _ {s} ^ {t} - Q _ {s} ^ {t} \right\| _ {\infty} \max _ {s \in \mathcal {S}} \left\| \pi_ {s} ^ {t + 1} - \pi_ {s} ^ {t} \right\| _ {1}, \tag {3}
+$$
+
+where $\| \cdot \|_{\infty}$ and $\| \cdot \|_1$ represent the $\ell_{\infty}$ and the $\ell_1$ norms, respectively, and $\widehat{Q}$ is an estimate of the true $Q$ -function. Additionally, at each iteration $T > 0$ , we have
+
+$$
+V ^ {\star} (\mu) - \sum_ {t < T} \frac {\mathbb {E} [ V ^ {t} (\mu) ]}{T} \leq \frac {1}{T} \left(\frac {\mathbb {E} _ {s \sim d _ {\mu} ^ {\star}} [ \mathcal {D} _ {h} \left(\pi_ {s} ^ {\star} , \pi_ {s} ^ {0}\right) ]}{\eta_ {t} (1 - \gamma)} + \frac {1}{(1 - \gamma) ^ {2}}\right) + 4 \frac {\max _ {t < T , s \in \mathcal {S}} \left\| \widehat {Q} _ {s} ^ {t} - Q _ {s} ^ {t} \right\| _ {\infty}}{(1 - \gamma) ^ {2}}. \tag {4}
+$$
+
+The statement of Theorem 2.2 is similar to many results in the literature on PMD and NPG (Agarwal et al., 2021; Xiao, 2022; Lan, 2022b; Hu et al., 2022). That is, the convergence guarantee involves two terms, i.e. a convergence rate, which involves the Bregman divergence between the optimal policy and the starting policy, and an error floor, which involves the estimation error $\max_{s\in S}\| \widehat{Q}_s^t -Q_s^t\|_\infty$ . Given that by setting $\eta_0 = \mathbb{E}_{s\sim d_\mu^*}[\mathcal{D}_h(\pi_s^\star ,\pi_s^0)](1 - \gamma)$ we obtain the convergence rate $2(T(1 - \gamma)^{2})^{-1}$ , and that the error floor has no explicit dependence on the mirror map, Equation (4) suggests that the mirror map has a mild influence on the performance of PMD. The only way the mirror map seems to affect the convergence guarantee is, implicitly, by changing the path of the algorithm and therefore influencing the estimation error. Similar observations can be made for several results in the PMD literature that share the same structure of convergence guarantees. On the other hand, Equation (3) suggests that mirror maps that prevent large updates of the policy cause the PMD algorithm to be less prone to performance degradation, as the lower bound is close to 0 when the policy update distance $\max_{s\in S}\| \pi_s^{t + 1} - \pi_s^t\| _1$ is small. One of the contributions of
+
+our work is to challenge and refute the conclusion that the mirror map has little influence on the convergence of PMD, highlighting a gap between theoretical guarantees, which are based on upper bounds, and the actual performance observed in PMD-based methodologies. Our empirical studies reveal that the choice of mirror map significantly influences both the speed of convergence and the minimum achievable error floor in PMD. Additionally, we provide evidence that a mirror map that prevents large updates throughout training leads to a better performance, as suggested by (3).
+
+When applying PMD to continuous control tasks, we replace the tabular policy in (2) with a parametrized one. That is, for all iterations $t \geq 0$ , we obtain the updated policy as
+
+$$
+\pi_ {\theta^ {t + 1}} \in \operatorname {a r g m a x} _ {\pi_ {\theta}: \theta \in \Theta} \mathbb {E} _ {s \sim d _ {\mu} ^ {t}} \left[ \eta_ {t} \mathbb {E} _ {a \sim \pi_ {\theta} (\cdot | s)} \left(Q ^ {t} (s, a)\right) - \mathcal {D} _ {h} \left(\pi_ {\theta} (\cdot | s), \pi^ {t} (\cdot | s)\right) \right], \tag {5}
+$$
+
+where $\{\pi_{\theta}:\theta \in \Theta \}$ is a class of parametrized policies.
+
+# 2.3 APPROXIMATE MIRROR POLICY OPTIMIZATION
+
+AMPO is a theoretically sound framework for deep reinforcement learning based on mirror descent, as it inherits the quasi-monotonic updates and convergence guarantees from the tabular case (Alfano et al., 2023). Given a parameterized function class $\mathcal{F}^{\Theta} = \{f^{\theta}:S\times \mathcal{A}\to \mathbb{R},\theta \in \Theta \}$ , an initial scoring function $f^{\theta^0}$ , a step-size $\eta$ and an $\omega$ -potential mirror map $h_\phi$ , AMPO can be described, for all iterations $t$ , by the two-step update
+
+$$
+\pi^ {t} (a \mid s) = \sigma \left(\phi \left(\eta f ^ {t} (s, a) + \lambda_ {s} ^ {t}\right)\right) \quad \forall s \in \mathcal {S}, a \in \mathcal {A}, \tag {6}
+$$
+
+$$
+\theta^ {t + 1} \in \underset {\theta \in \Theta} {\operatorname {a r g m i n}} \mathbb {E} _ {s \sim d _ {\mu} ^ {t}, a \sim \pi (\cdot | s)} \left[ \left(f ^ {\theta} (s, a) - Q ^ {t} (s, a) - \eta^ {- 1} \max \left(\eta f ^ {t} (s, a) + \lambda_ {s} ^ {t}, \phi^ {- 1} (0)\right)\right) ^ {2} \right] \tag {7}
+$$
+
+where $\lambda_s^t\in \mathbb{R}$ is a normalization factor to ensure $\pi_s^t\in \Delta (\mathcal{A})$ for all $s\in S$ , $f^{t}\coloneqq f^{\theta^{t}}$ , and $\sigma (z) = \max (z,0)$ for $z\in \mathbb{R}$ . Theorem 1 by Krichene et al. (2015) ensures that there always exists a normalization constant $\lambda_s^t\in \mathbb{R}$ . As shown by Alfano et al. (2023), AMPO recovers the standard formulation of PMD in (2) in the tabular setting. Assuming for simplicity that $\phi (x) > 0$ for all $x\in \mathbb{R}$ , the minimization problem in (7) implies that, at each iteration $t$ , $f^{t}$ is an approximation of the sum of the $Q$ -functions up to that point, that is $f^{t}\simeq \sum_{i = 0}^{t - 1}Q^{i}$ . Therefore, the scoring function $f^{t}$ serves as an estimator of the value of an action.
+
+# 3 METHODOLOGY
+
+Denote by $\mathcal{H}$ the class of $\omega$ -potentials mirror maps. Our objective is to search for the mirror map that maximizes the value of the last policy outputted by our mirror descent based algorithms, for a fixed time horizon $T$ . That is, we want to find
+
+$$
+h ^ {\star} \in \underset {h \in \mathcal {H}} {\operatorname {a r g m a x}} \mathbb {E} \left[ V ^ {T} (\mu) \right], \tag {8}
+$$
+
+where the expectation is taken over the randomness of the policy optimization algorithm and the policy updates are based on the mirror map $h$ . Depending on the setting, we parameterize the mirror map by parameterizing either $\phi^{-1}$ or $\phi$ as monotonically increasing functions. One of the primary objectives of this work is to motivate further research into the choice of mirror maps, as influenced by the choice of the function $\phi$ , moving beyond the conventional use of $\phi(x) = e^x$ . This is achieved by examining how different choices of $\phi$ influence the trajectory of training and demonstrating that, in many cases, there is a mirror map that outperforms the negative entropy by a large margin.
+
+# 3.1 POLICY MIRROR DESCENT
+
+We parameterize $\phi^{-1}$ as a one layer neural network with 126 hidden units, where all kernels are non-negative and the activation functions are equally split among the following convex and concave monotonic non-linearities: $x^{3}, (x)_{+}^{2}, (x)_{+}^{1/2}, (x)_{+}^{1/3}, \log((x)_{+} + 10^{-3})$ and $e^{x}$ , where $(x)_{+} = \max(x, 0)$ . To ensure that we are able to recover the negative entropy and the $\ell_2$ -norm, we add $ax + b\log(x)$ to the final output, where $a, b \geq 0$
+
+To search for the best mirror map within this class, we employ a slight variation of the OpenAI-ES strategy (Salimans et al., 2017), adapted to the multi-task setting (Jackson et al., 2024). Denote by $\psi$ the parameters of the mirror map and by $F(\psi)$ the objective function in (8). Given a distribution of tasks $\mathcal{E}$ , we estimate the gradient $\nabla_{\psi} F(\psi)$ as
+
+$$
+\left. E _ {\epsilon \sim \mathcal {N} \left(0, I _ {d}\right)} \left[ E _ {e \sim \varepsilon} \left[ \frac {\epsilon}{2 \sigma} \left(F _ {e} (\psi + \sigma \epsilon) - F _ {e} (\psi - \sigma \epsilon)\right) \right] \right], \right. \tag {9}
+$$
+
+where $\mathcal{N}(0, I_d)$ is the multivariate normal distribution, $d$ is the number of parameters, and $\sigma > 0$ is a hyperparameter regulating the variance of the perturbations. To account for different reward scales across tasks, we perform a rank transformation of the objective functions, whereby, for each sampled task $e$ , we return 1 for the higher performing member between $\psi + \sigma \epsilon$ and $\psi - \sigma \epsilon$ , and 0 for the other. We note that, when the distribution of tasks $\mathcal{E}$ covers a single task, we recover the standard OpenAI-ES strategy.
+
+# 3.2 APPROXIMATE MIRROR POLICY OPTIMIZATION
+
+As non-tabular environments with discrete action space, we consider the Basic Control Suite (BCS) and the MinAtar suite. Given the higher computational cost of simulations on these environments w.r.t. to the tabular setting, we replace the neural network parameterization for the mirror map with one with fewer parameters, in order to reduce the dimension of the mirror map class we search over. We define the parameterized class $\Phi = \{\phi_{\psi}:\mathbb{R}\to [0,1],\psi \in \mathbb{R}_{+}^{n}\}$ , with
+
+$$
+\phi_ {\psi} (x) = \left\{ \begin{array}{l l} 0 & \text {i f} x \leq 0, \\ \frac {x}{\psi_ {1} n} & \text {i f} 0 < x \leq \psi_ {1}, \\ \frac {j}{n} + \frac {x - \sum_ {i = 1} ^ {j} \psi_ {i}}{n \psi_ {j + 1}} & \text {i f} \sum_ {i = 1} ^ {j} \psi_ {i} < x \leq \sum_ {i = 1} ^ {j + 1} \psi_ {i}, \\ 1 & \text {i f} x > 1, \end{array} \right.
+$$
+
+where $1 \leq j \leq n - 1$ . In other words, $\phi$ is defined as a piece-wise linear function with $n$ steps where, for all $j \leq n$ , $\phi \left( \sum_{i=1}^{j} \psi_i \right) = j / n$ and subsequent points are interpolated with a straight segment. This is illustrated in Figure 1. We note that the $\omega$ -potentials within $\Phi$ violate some of the constraints in Definition 2.1, as they are non-decreasing instead of increasing and $\lim_{x \to \infty} \phi(x) = 1$ for all $\phi \in \Phi$ . In Appendix B.2, we show that, if $\phi \in \Phi$ , we can construct an $\omega$ -potential $\phi'$ that satisfies the constraints in Definition 2.1 such that $\phi$ and $\phi'$ induce the same policies along the path of AMPO.
+
+To effectively learn the hyperparameters, we employ the Separable Covariance Matrix Adaptation Evolution Strategy (sep-CMA) (Ros & Hansen, 2008), a variant of the popular algorithm CMA-ES (Hansen & Ostermeier,
+
+
+Figure 1: A plot visually demonstrating the parameterization for $\phi$ .
+
+2001). CMA-ES is, essentially, a second-order method adapted for gradient free optimization. At every generation, it samples $n$ new points from a normal distribution, parameterized by a mean vector $m_{k}$ and a covariance matrix $C_k$ . That is, the samples for generation $k$ , $x_1^k, \ldots, x_n^k$ , are distributed i.i.d. according to $x_i^k \sim \mathcal{N}(m_k, C_k)$ . For each generation $k$ , denote the $m \leq n$ best performing samples as $x_1^{*k}, \ldots, x_m^{*k}$ . Then update the mean vector as $m_{k+1} = \sum_{i=1}^{m} w_i x_i^{*k}$ , where $\sum_{i=1}^{m} w_i = 1$ , so that the next generation is distributed around the weighted mean of the best performing samples. $C_{k+1}$ is also updated to reflect the covariance structure of $x_1^{*k}, \ldots, x_m^{*k}$ , in a complex way beyond the scope of this text. Due to the need to update $C_k$ based on covariance information, CMA-ES exhibits a quadratic scaling behavior with respect to the dimensionality of the search space, potentially hindering its efficiency in high-dimensional settings. To improve computational efficiency, we adopt sep-CMA, which introduces a diagonal constraint on the covariance matrix and reduces the computational complexity of the algorithm.
+
+
+Figure 2: Comparison between the learned map and the negative entropy and $\ell_2$ -norm mirror maps across a range of held-out configurations of Grid-World. We display the average over 256 runs and report the standard error as a shaded region. The column "Random tasks", reports the averaged metrics for 256 randomly sampled configurations of Grid-World.
+
+# 4 EXPERIMENTS
+
+In this section, we discuss the results of our numerical experiments. We start by presenting the tabular setting, where we track errors in order to understand what properties are desirable in a mirror map, and proceed by showing our results in the non-tabular setting.
+
+# 4.1 TABULAR SETTING: GRID-WORLD
+
+As tabular setting we adopt a discounted and infinite horizon version of Grid-World (Oh et al., 2020), which is a large class of tabular MDPs.
+
+Model architecture and training We define the tabular policy as a one-layer neural network with a softmax head, which takes as input a one-hot encoding of the environment state and outputs a distribution over the action space. We train the policy using the PMD update in (2), where we solve the minimization problem through stochastic gradient descent and estimate the $Q$ -function through generalized advantage estimation (GAE) (Schulman et al., 2016). We perform a simple grid-search over the hyperparameters to maximize the performance for the negative entropy and the $\ell_2$ -norm mirror maps, in order to have a fair comparison. We report the chosen hyperparameters in Appendix E. The training procedure is implemented in Jax, using evosax (Lange, 2022a) for the evolution. We run on four A40 GPUs, and the optimization process takes roughly 12 hours.
+
+Environment We adopt the version of Grid-World implemented by Jackson et al. (2024), and adapt it to the discounted and infinite horizon setting. We learn a single mirror map by training PMD on a continuous distribution of Grid-World environments, and test PMD with the learned mirror map on five held-out configurations from previous publications (Oh et al., 2020; Chevalier-Boisvert et al., 2024) and on 256 randomly sampled configurations. For all PMD iterations $t$ , we track two quantities that appear in Theorem 2.2, that is the estimation error $\max_{s\in S}\| \widehat{Q}_s^t -Q_s^t\|_\infty$ , and the distance between policy updates $\max_{s\in S}\| \pi_s^{t + 1} - \pi_s^t\|_1$ . To obtain the true $Q$ -function, we compute the transition matrix $P^{\pi^t}$ and use the formula specified in Section 2, that is $Q^{t} = (I - \gamma P^{\pi^{t}})^{-1}r$ . PMD is run for 128 iterations and $2^{18}\simeq 250k$ total environment steps for all Grid-World configurations.
+
+We show the results of our simulations in Figure 2. As shown by the first row, the learned mirror map, the $\ell_2$ -norm, and the negative entropy consistently rank first, second and third, respectively, in all tested configurations, in terms of final value. These results advocate the effectiveness of our methodology, as we are able to find a mirror map that outperforms the benchmark mirror maps in all tested environments. We highlight that the first five environments in Figure 2 are not part of the task
+
+
+Figure 3: Comparison between the learned mirror map, the $\ell_2$ -norm and the negative entropy across a range of standard environments. The top plots present the performance of AMPO for all mirror maps, reporting the average over 100 realizations and a shaded region denoting the standard error around the average. The middle plots report the $\omega$ -potentials that induce the mirror maps. The bottom plots report the policy distribution according to (6), for each mirror map and score scales. The score scales are obtained by multiplying the vector $[1, \dots, |\mathcal{A}|]$ by a variable $c \in [0,4]$ .
+
+distribution used during the evolution, demonstrating the generalizability of our approach. Moreover, we have that the $\ell_2$ -norm consistently outperforms the negative entropy, further proving that the negative entropy is not always the best choice of mirror map. Another shared property among all training curves, is that the learned mirror map presents a slower convergence in the initial iterations w.r.t. the $\ell_2$ -norm and to the negative entropy, as testified by a lower value, but convergence to a higher value in the long run. Lastly, we note that in all environments most of the value improvement happens in the first 50k environment steps.
+
+To gain a better understanding of why the learned mirror maps outperforms the negative entropy and the $\ell_2$ -norm, and to draw connections with the theoretical results outlined in Section 2.2, we report the estimation error and the distance between policy updates for all mirror maps. The first conclusion that we draw is that a smaller estimation error does not seem to be related to a higher performance. On the contrary, the second row of Figure 2 shows how the three mirror maps consistently have the same ranking in both value and estimation error, which is exactly the opposite of what Theorem 2.2 would suggest. On the other hand, the first and third rows of Figure 2 show how the lower bound on the performance improvement in (3) brings some valid insight on the behaviour of PMD during its first iterations, which are the ones that bring the largest improvement. In all configurations, we have that in the initial iterations of PMD the learned mirror map induces the smallest policy update distances as well as the performance curve with fewer dips in value, while both the negative entropy and the $\ell_2$ -norm induce larger policy update distances and performance curves with several dips in value. This observation confirms the behaviour described by (3), whereby a small distance between policy updates prevents large performance degradation in policy updates.
+
+# 4.2 NON-TABULAR SETTING: BASIC CONTROL AND MINATAR SUITES
+
+Model architecture and training We define the scoring function as a deep neural network, which we train using the AMPO update in (7) and (6), where (7) is solved through Adam and the $Q$ -function is estimated through GAE. We optimize the hyper-parameters of AMPO for the negative entropy mirror map for each suite, using the hyper-parameter tuning framework Optuna (Akiba et al., 2019). This is done to ensure we are looking at a fair benchmark of performance when using the negative entropy mirror map. We report the chosen hyper-parameters in Appendix E. We then initialize the
+
+Table 1: The table contains, for each entry, the value of the final policy outputted by AMPO trained on the environment corresponding to the column with the mirror map learned on the environment corresponding to the row. The last row represents the performance of AMPO with the negative entropy for the corresponding column environments. The value is averaged over 100 runs. Green cells correspond to a value higher than that associated to the negative entropy.
+
+
Acrobot
CartPole
Asterix
Freeway
SpaceInvaders
Acrobot
-88.49
476.41
24.03
56.00
144.01
CartPole
-83.76
499.93
27.26
52.26
100.07
Asterix
-103.55
490.86
30.22
58.56
122.00
Freeway
-82.51
457.47
3.20
58.21
143.93
SpaceInvaders
-78.29
489.56
4.36
22.27
170.24
Negative entropy
-105.63
359.14
17.80
53.69
81.77
+
+parameterized mirror map to be an approximation of the negative entropy $^2$ and run Sep-CMA-ES on each environment separately. The whole training procedure is implemented in JAX, using gymnas environments (Lange, 2022b) and evosax (Lange, 2022a) for the evolution. We run on 8 GTX 1080Ti GPUs, and the optimization process takes roughly 48 hours for a single environment.
+
+**Environments** We test AMPO on the Basic Controle Suite (BCS) and the MinAtar Suite. For BCS, we run the evolution for 600 generation, each with 500k timesteps. For MinAtar, we run the evolution for 500 generation with 1M timesteps, then run 100 more generations with 10M timesteps.
+
+Our empirical results are illustrated in Figure 3, where we show the performance of AMPO for the learned mirror map, for the negative entropy and for the $\ell_2$ -norm. For all environments and mirror maps, we use the hyper-parameters returned by Optuna for AMPO with the negative entropy. Our learned mirror map leads to a better overall performance in all environments, apart from Acrobot, where it ties with the $\ell_2$ -norm. We observe the largest improvement in performance on Asterix and SpaceInvaders, where the average return for the learned mirror map is more than double the one for the negative entropy. Figure 3 also suggests that different mirror maps may result in different error floors, as shown by the performance curves in Acrobot, Asterix and SpaceInvaders, where the negative entropy converges to a lower point than the learned mirror map.
+
+The second and third row of Figure 3 illustrate the properties of the learned mirror map, in comparison to the negative entropy and the $\ell_2$ -norm. In particular, the second row shows the corresponding $\omega$ -potential, while the third row shows the policy distribution induced by the mirror map according to (6), depending on the scores assigned by the scoring function to each action. A shared property among all the learned mirror maps is that they all lead to assigning 0 probability to the worst actions for relatively small score scales, whilst the negative entropy always assigns positive weights to all actions. In more complex environments, where the evaluation of a certain action may be strongly affected by noise or where the optimal state may be combination locked (Misra et al., 2020), this behaviour may lead to a critical lack of exploration. However, it appears that this is not the case in these environments, and we hypothesise that by setting the probability of the worst actions to 0 the learned mirror maps avoid wasting samples and hence can converge to the optimal policy more rapidly.
+
+Our last result consists in testing each learned mirror map across the other environments we consider. In Table 1, we report the value of the final policy outputted by AMPO for all learned maps, plus the negative entropy, and for all environments, averaged over 100 runs. The table shows that the learned mirror maps generalize well to different environments and to different sets of hyper-parameters, which are shared within BCS and MinAtar but not between them. In particular, we have that the mirror maps learned in Acrobot and Asterix outperform the negative entropy in all environments, those learned in CartPole and Freeway outperform the negative entropy in 4 out of 5 environments, and that learned in SpaceInvaders outperforms the negative entropy in 3 out of 5 environments. These results show that our methodology can be useful in practice, as it benefits from good generalization across tasks.
+
+# 4.3 CONTINUOUS CONTROL: MUJOCO
+
+Model architecture and training We define the policy as a deep neural network and optimize it using the PMD update in (5), which is computed using Adam and the estimate of the $Q$ -function obtained through GAE. As previously discussed, we ensure a fair comparison by tuning the hyper-parameters to maximize the performance of the negative entropy. We report the chosen hyper-parameters in Appendix E. The mirror map is initialized to be close to the negative entropy and is trained for 256 generations using OpenAI-ES on a single MuJoCo environment. We run on eight A40 GPUs, and the optimization process takes roughly 24 hours.
+
+**Environments** We use the brax library (Freeman et al., 2021) to simulate three MuJoCo environments, i.e. Hopper, Halfcheetah, and Ant. The mirror map is learned on Hopper and is then tested on all environments, using $10^{7}$ environment steps and 488 PMD update steps.
+
+
+Figure 4: Comparison between the mirror map learned on Hopper and the negative entropy on three MuJoCo environments. The plots present the performance of PMD for both mirror maps, reporting the average over 8 realizations and a shaded region denoting the standard error around the average.
+
+Figure 4 shows that the mirror map learned on Hopper significantly improves in terms of final performance upon the negative entropy in both train and test environments. This result confirms the ability of our methodology to learn generalizable mirror maps, even in complex continuous control tasks.
+
+Learned Negative entropy
+
+
+
+# 5 CONCLUSION
+
+Our study presents an empirical examination of PMD, where we successfully test the possibility of learning a mirror map that outperforms the negative entropy in both the tabular and non-tabular settings. In particular, we have shown that the learned mirror maps perform well on a set of configurations in Grid-World and that they can generalize to different tasks in BCS, in MinAtar, and in MuJoCo. Additionally, we have compared the theoretical findings established in the literature and the actual performance of PMD methods in the tabular setting, highlighting how the estimation error is not a good indicator of performance and validating the intuition that small policy updates lead to less instances of performance degradation. Our findings indicate that the choice of mirror map significantly impacts PMD's effectiveness, an aspect not adequately reflected by existing convergence guarantees.
+
+Our research introduces several new directions for inquiry. From a theoretical perspective, obtaining convergence guarantees that reflect the impact of the mirror map is an area for future exploration. On the practical side, investigating how temporal awareness (Jackson et al., 2024) or specific environmental challenges, such as exploration, robustness to noise, or credit assignment (Osband et al., 2019), can inform the choice of a mirror map to improve performance represents another research focus.
+
+# ACKNOWLEDGMENTS
+
+Carlo Alfano is funded by the Engineering and Physical Sciences Research Council. Patrick Rebeschini was funded by UK Research and Innovation (UKRI) under the UK government's Horizon Europe funding guarantee [grant number EP/Y028333/1]. For the purpose of Open Access, the authors have applied a CC BY public copyright licence to any Author Accepted Manuscript (AAM) version arising from this submission.
+
+# REPRODUCIBILITY STATEMENT
+
+The implementation of our experiments can be found at https://github.com/c-alfano/Learning-mirror-maps.
+
+# REFERENCES
+
+Agarwal, A., Kakade, S. M., Lee, J. D., and Mahajan, G. On the theory of policy gradient methods: Optimality, approximation, and distribution shift. Journal of Machine Learning Research, 2021.
+Akiba, T., Sano, S., Yanase, T., Ohta, T., and Koyama, M. Optuna: A next-generation hyperparameter optimization framework, 2019.
+Alfano, C., Yuan, R., and Rebeschini, P. A novel framework for policy mirror descent with general parametrization and linear convergence. Advances in Neural Information Processing Systems, 2023.
+Baxter, J. and Bartlett, P. L. Infinite-horizon policy-gradient estimation. Journal of Artificial Intelligence Research, 2001.
+Belousov, B. and Peters, J. f-divergence constrained policy improvement. arXiv preprint arXiv:1801.00056, 2017.
+Berner, C., Brockman, G., Chan, B., Cheung, V., Debiak, P., Dennison, C., Farhi, D., Fischer, Q., Hashme, S., Hesse, C., et al. Dota 2 with large scale deep reinforcement learning. arXiv preprint arXiv:1912.06680, 2019.
+Beyer, H.-G. Evolutionary algorithms in noisy environments: theoretical issues and guidelines for practice. Computer Methods in Applied Mechanics and Engineering, 2000.
+Bhatnagar, S., Sutton, R. S., Ghavamzadeh, M., and Lee, M. Natural actor-critic algorithms. Automatica, 2009.
+Bregman, L. M. The relaxation method of finding the common point of convex sets and its application to the solution of problems in convex programming. USSR Computational Mathematics and Mathematical Physics, 1967.
+Bubeck, S. Convex optimization: Algorithms and complexity. Foundations and Trends in Machine Learning, 2015.
+Cen, S., Cheng, C., Chen, Y., Wei, Y., and Chi, Y. Fast global convergence of natural policy gradient methods with entropy regularization. Operations Research, 2021.
+Censor, Y. and Zenios, S. A. Parallel Optimization: Theory, Algorithms, and Applications. Oxford University Press, USA, 1997.
+Chevalier-Boisvert, M., Dai, B., Towers, M., Perez-Vicente, R., Willems, L., Lahlou, S., Pal, S., Castro, P. S., and Terry, J. Minigrid & miniworld: Modular & customizable reinforcement learning environments for goal-oriented tasks. Advances in Neural Information Processing Systems, 2024.
+Freeman, C. D., Frey, E., Raichuk, A., Girgin, S., Mordatch, I., and Bachem, O. Brax - a differentiable physics engine for large scale rigid body simulation, 2021. URL http://github.com/google/brax.
+Hansen, N. and Ostermeier, A. Completely derandomized self-adaptation in evolution strategies. Evolutionary Computation, 2001.
+Houthooft, R., Chen, Y., Isola, P., Stadie, B., Wolski, F., Jonathan Ho, O., and Abbeel, P. Evolved policy gradients. Advances in Neural Information Processing Systems, 2018.
+Hu, Y., Ji, Z., and Telgarsky, M. Actor-critic is implicitly biased towards high entropy optimal policies. In International Conference on Learning Representations, 2022.
+
+Jackson, M. T., Jiang, M., Parker-Holder, J., Vuorio, R., Lu, C., Farquhar, G., Whiteson, S., and Foerster, J. Discovering general reinforcement learning algorithms with adversarial environment design. Advances in Neural Information Processing Systems, 2023.
+Jackson, M. T., Lu, C., Kirsch, L., Lange, R. T., Whiteson, S., and Foerster, J. N. Discovering temporally-aware reinforcement learning algorithms. In International Conference on Learning Representations, 2024.
+Kakade, S. M. A natural policy gradient. Advances in Neural Information Processing Systems, 2002.
+Kirsch, L., van Steenkiste, S., and Schmidhuber, J. Improving generalization in meta reinforcement learning using learned objectives. In International Conference on Learning Representations, 2020.
+Konda, V. and Tsitsiklis, J. Actor-critic algorithms. In Advances in Neural Information Processing Systems, 2000.
+Krichene, W., Krichene, S., and Bayen, A. Efficient bregman projections onto the simplex. In IEEE Conference on Decision and Control, 2015.
+Kuba, J. G., De Witt, C. A. S., and Foerster, J. Mirror learning: A unifying framework of policy optimisation. In International Conference on Machine Learning, 2022.
+Kullback, S. and Leibler, R. A. On Information and Sufficiency. The Annals of Mathematical Statistics, 1951.
+Lan, G. Policy mirror descent for reinforcement learning: Linear convergence, new sampling complexity, and generalized problem classes. Mathematical programming, 2022a.
+Lan, G. Policy optimization over general state and action spaces. arXiv preprint arXiv:2211.16715, 2022b.
+Lange, R. T. evosax: Jax-based evolution strategies. arXiv preprint arXiv:2212.04180, 2022a.
+Lange, R. T. gymnax: A JAX-based reinforcement learning environment library, 2022b. URL http://github.com/RobertTLange/gymnax.
+Li, Y. and Lan, G. Policy mirror descent inherently explores action space. arXiv preprint arXiv:2303.04386, 2023.
+Liu, Q., Weisz, G., György, A., Jin, C., and Szepesvari, C. Optimistic natural policy gradient: a simple efficient policy optimization framework for online rl. Advances in Neural Information Processing Systems, 2023.
+Lu, C., Kuba, J., Letcher, A., Metz, L., Schroeder de Witt, C., and Foerster, J. Discovered policy optimisation. Advances in Neural Information Processing Systems, 2022.
+Lu, C., Willi, T., Letcher, A., and Foerster, J. N. Adversarial cheap talk. In International Conference on Machine Learning, 2023.
+Misra, D., Henaff, M., Krishnamurthy, A., and Langford, J. Kinematic state abstraction and provably efficient rich-observation reinforcement learning. In International conference on machine learning, 2020.
+Mnih, V., Badia, A. P., Mirza, M., Graves, A., Lillicrap, T., Harley, T., Silver, D., and Kavukcuoglu, K. Asynchronous methods for deep reinforcement learning. In International Conference on Machine Learning, 2016.
+Nemirovski, A. and Yudin, D. B. Problem Complexity and Method Efficiency in Optimization. Wiley Interscience, 1983.
+Oh, J., Hessel, M., Czarnecki, W. M., Xu, Z., van Hasselt, H. P., Singh, S., and Silver, D. Discovering reinforcement learning algorithms. Advances in Neural Information Processing Systems, 2020.
+Orabona, F. A modern introduction to online learning, 2020. URL https://open.bu.edu/handle/2144/40900.
+
+Osband, I., Doron, Y., Hessel, M., Aslanides, J., Sezener, E., Saraiva, A., McKinney, K., Lattimore, T., Szepesvari, C., Singh, S., et al. Behaviour suite for reinforcement learning. In International Conference on Learning Representations, 2019.
+Ouyang, L., Wu, J., Jiang, X., Almeida, D., Wainwright, C., Mishkin, P., Zhang, C., Agarwal, S., Slama, K., Ray, A., et al. Training language models to follow instructions with human feedback. Advances in Neural Information Processing Systems, 2022.
+Peters, J. and Schaal, S. Natural actor-critic. Neurocomputing, 2008.
+Real, E., Aggarwal, A., Huang, Y., and Le, Q. V. Regularized evolution for image classifier architecture search. Proceedings of the AAAI Conference on Artificial Intelligence, 2019.
+Ros, R. and Hansen, N. A simple modification in cma-es achieving linear time and space complexity. In International conference on parallel problem solving from nature. Springer, 2008.
+Salimans, T., Ho, J., Chen, X., Sidor, S., and Sutskever, I. Evolution strategies as a scalable alternative to reinforcement learning. arXiv preprint arXiv:1703.03864, 2017.
+Schulman, J., Levine, S., Abbeel, P., Jordan, M., and Moritz, P. Trust region policy optimization. In International Conference on Machine Learning, 2015.
+Schulman, J., Moritz, P., Levine, S., Jordan, M., and Abbeel, P. High-dimensional continuous control using generalized advantage estimation. In International Conference on Learning Representations, 2016.
+Schulman, J., Wolski, F., Dhariwal, P., Radford, A., and Klimov, O. Proximal policy optimization algorithms. arXiv preprint arXiv:1707.06347, 2017.
+Shalev-Shwartz, S., Shammah, S., and Shashua, A. Safe, multi-agent, reinforcement learning for autonomous driving. arXiv preprint arXiv:1610.03295, 2016.
+Such, F. P., Madhavan, V., Conti, E., Lehman, J., Stanley, K. O., and Clune, J. Deep neuroevolution: Genetic algorithms are a competitive alternative for training deep neural networks for reinforcement learning, 2018.
+Sutton, R. S., McAllester, D. A., Singh, S. P., and Mansour, Y. Policy gradient methods for reinforcement learning with function approximation. In Advances in Neural Information Processing Systems, 1999.
+Todorov, E., Erez, T., and Tassa, Y. Mujoco: A physics engine for model-based control. In 2012 IEEE/RSJ International Conference on Intelligent Robots and Systems, 2012.
+Tomar, M., Shani, L., Efroni, Y., and Ghavamzadeh, M. Mirror descent policy optimization. In International Conference on Learning Representations, 2022.
+Vaswani, S., Bachem, O., Totaro, S., Müller, R., Garg, S., Geist, M., Machado, M. C., Castro, P. S., and Le Roux, N. A general class of surrogate functions for stable and efficient reinforcement learning. In International Conference on Artificial Intelligence and Statistics, 2022.
+Vaswani, S., Kazemi, A., Babanezhad, R., and Roux, N. L. Decision-aware actor-critic with function approximation and theoretical guarantees. Advances in Neural Information Processing Systems, 2023.
+Williams, R. J. and Peng, J. Function optimization using connectionist reinforcement learning algorithms. Connection Science, 1991.
+Xiao, L. On the convergence rates of policy gradient methods. Journal of Machine Learning Research, 2022.
+Yuan, R., Du, S. S., Gower, R. M., Lazaric, A., and Xiao, L. Linear convergence of natural policy gradient methods with log-linear policies. In International Conference on Learning Representations, 2023.
+Zanette, A., Cheng, C.-A., and Agarwal, A. Cautiously optimistic policy optimization and exploration with linear function approximation. In Conference on Learning Theory, 2021.
+
+# A RELATED WORKS
+
+Discovering reinforcement learning algorithm has been an active area of research in the last years, where researchers have shown that handcrafted algorithms are not always optimal and can be outperformed by automatically discovered algorithms. Oh et al. (2020) obtained an algorithm capable of solving GridWorld and Atari tasks without relying on common notions in the field, such as Q-value functions. Houthooft et al. (2018) used ES to meta-train a policy loss network that outperforms PPO and Kirsch et al. (2020) discovered a new loss function for deterministic policies. Most closely related to our work are Lu et al. (2022) and Jackson et al. (2024), who employ ES to discover RL algorithms within the Mirror Learning class (Kuba et al., 2022). Given a function $f$ , the class of algorithms they consider follows the policy update step
+
+$$
+\pi_ {\theta^ {t + 1}} \in \operatorname * {a r g m a x} _ {\pi_ {\theta}: \theta \in \Theta} \mathbb {E} _ {s \sim d _ {\mu} ^ {t}} \left[ \eta_ {t} \mathbb {E} _ {a \sim \pi_ {\theta} (\cdot | s)} (Q ^ {t} (s, a)) - \mathbb {E} _ {a \sim \pi^ {t} (\cdot | s)} \left[ \left(\frac {\pi_ {\theta} (\cdot | s)}{\pi^ {t} (\cdot | s)}\right) \right] \right],
+$$
+
+This update is similar to the one in (5) but replaces the Bregman divergence with a different penalty term called drift, which recovers the $f$ -divergences when $f$ is a convex function. To the best of our knowledge, this class of algorithms has fewer theoretical guarantees than PMD, in particular we are not aware of finite-time convergence guarantees or convergence guarantees involving approximation or estimation errors (Belousov & Peters, 2017; Kuba et al., 2022).
+
+# B FURTHER DISCUSSION ON $\omega$ -POTENTIALS
+
+# B.1 NEGATIVE ENTROPY AND $\ell_2$ -NORM
+
+If $\phi (x) = e^{x - 1}$ , then the associated mirror map $h_\phi$ is the negative entropy. We have that
+
+$$
+\int_ {0} ^ {1} \phi^ {- 1} (x) d x = \int_ {0} ^ {1} \log (x) d x = [ x \log (x) - x ] _ {0} ^ {1} = - 1 \leq + \infty .
+$$
+
+The mirror map $h_{\phi}$ becomes the negative entropy, up to a constant, as
+
+$$
+h _ {\phi} (\pi_ {s}) = \sum_ {a \in \mathcal {A}} \int_ {1} ^ {\pi (a | s)} \log (x) d x = | \mathcal {A} | - 1 + \sum_ {a \in \mathcal {A}} \pi (a \mid s) \log (\pi (a \mid s)).
+$$
+
+If $\phi (x) = x$ , then the associated mirror map $h_\phi$ is the $\ell_2$ -norm. We have that
+
+$$
+\int_ {0} ^ {1} \phi^ {- 1} (x) d x = \int_ {0} ^ {1} x d x = \left[ \frac {x ^ {2}}{2} \right] _ {0} ^ {1} = \frac {1}{2} \leq + \infty .
+$$
+
+The mirror map $h_{\phi}$ becomes the $\ell_2$ -norm, up to a constant, as
+
+$$
+h _ {\phi} (\pi_ {s}) = \sum_ {a \in \mathcal {A}} \int_ {1} ^ {\pi (a | s)} x d x = \frac {1}{2} \sum_ {a \in \mathcal {A}} \pi (a | s) ^ {2} - 1.
+$$
+
+# B.2 PARAMETRIC $\phi$
+
+We show here that the parametric class of $\omega$ -potentials we introduce in Section 3 results in a well defined algorithm when used for AMPO, even if it breaks some of the constraints in Definition 2.1. In particular, $\omega$ -potentials within $\Phi$ are not $C^1$ -diffeomorphisms and are only non-decreasing. We can afford not meeting the first constraint as the proof for Theorem 1 by Krichene et al. (2015), which establishes the existence of the normalization constant in Equation (6), only requires Lipschitz-continuity. As to the second constraint, we build an augmented class $\Phi'$ that contains increasing $\omega$ -potentials and show that it results in the same updates for AMPO as $\Phi$ .
+
+Let $\Delta_{n}$ be the $n$ -dimensional probability simplex. We define the parameterized class $\Phi' = \{\phi_{\psi}': \mathbb{R} \to [0,1], \psi \in \Delta_{n}\}$ , with
+
+$$
+\phi^{\prime}_{\psi}(x) = \left\{ \begin{array}{ll}e^{x} - 1 & \text{if} x\leq 0,\\ \frac{x}{\psi_{1}n} & \text{if} 0 < x\leq \psi_{1},\\ \frac{j}{n} +\frac{x - \sum_{i = 1}^{j}\psi_{i}}{n\psi_{j + 1}} & \text{if}\sum_{i = 1}^{j}\psi_{i} < x\leq \sum_{i = 1}^{j + 1}\psi_{i},\\ x & \text{if} x > 1, \end{array} \right.
+$$
+
+where $1 \leq j \leq n - 1$ . The functions within $\Phi'$ are increasing and continuous. We start by showing that $\phi_{\psi}^{\prime} \in \Phi^{\prime}$ and $\phi_{\psi} \in \Phi$ are equivalent for Equation (6), for the same parameters $\psi$ . At each iteration $t$ , we have that
+
+$$
+\begin{array}{l} \pi^ {t + 1} (a \mid s) = \sigma \left(\phi^ {\prime} \left(\eta f ^ {t + 1} (s, a) + \left(\lambda^ {\prime}\right) _ {s} ^ {t + 1}\right)\right) \\ = \sigma \left(\phi \left(\eta f ^ {t + 1} (s, a) + \left(\lambda^ {\prime}\right) _ {s} ^ {t + 1}\right)\right) \\ = \sigma \left(\phi \left(\eta f ^ {t + 1} (s, a) + \lambda_ {s} ^ {t + 1}\right)\right). \\ \end{array}
+$$
+
+This due to the following two facts. For $x \leq 0$ , $\sigma(\phi'(x))$ and $\sigma(\phi(x))$ are the same function. Also, $\sigma(\phi'(\eta f^{t+1}(s, a) + (\lambda')_s^{t+1}))$ has to be less or equal to 1, as a result of the projection, meaning that $\eta f^{t+1}(s, a) + (\lambda')_s^{t+1} \leq 1$ , where $\sigma(\phi'(\cdot))$ and $\sigma(\phi(\cdot))$ are equivalent.
+
+Since $\phi$ and $\phi'$ induce the same policy, share that same normalization constant, and have the same value at 0, they also induce the same expression for Equation (7).
+
+# C FURTHER DISCUSSION ON BREGMAN DIVERGENCE
+
+To provide an intuition on the Bregman divergence, we report here some discussion from Orabona (2020). Given a mirror map $h$ , the associated Bregman divergence between two points $x, y \in \mathcal{X}$ is defined as
+
+$$
+\mathcal {D} _ {h} (x, y) := h (x) - h (y) - \langle \nabla h (y), x - y \rangle .
+$$
+
+Since $h$ is convex, the Bregman divergence is always non-negative for $x, y \in \mathcal{X}$ . We can build more intuition for the Bregman divergence using Taylor's theorem. Assume that $h$ is twice differentiable in an open ball $B$ around $y$ and $x \in B$ . Then there exists $0 \leq \alpha \leq 1$ such that
+
+$$
+B _ {\psi} (x; y) = h (x) - h (y) - \nabla h (y) ^ {\top} (x - y) = \frac {1}{2} (x - y) ^ {\top} \nabla^ {2} h (z) (x - y),
+$$
+
+where $z = \alpha x + (1 - \alpha)y$ . Therefore, the Bregman divergence can be approximated by squared local norms that depend on the Hessian of the mirror map $h$ . This means that the Bregman divergence will behave differently on different areas of $\mathcal{X}$ , depending on the value of Hessian of the mirror map.
+
+# D PROOF OF THEOREM 2.2
+
+In this section we outline how we use the proofs given by Xiao (2022) in order to obtain Theorem 2.2.
+
+# D.1 PRELIMINARY LEMMAS
+
+We start by presenting two preliminary lemmas, which are ubiquitous in the literature on PMD. The first characterizes the difference in value between two policies, while the second characterizes the PMD update.
+
+Lemma D.1 (Performance difference lemma, Lemma 1 in Xiao (2022)). For any policy $\pi, \pi' \in \Delta(\mathcal{A})^S$ and $\mu \in \Delta(S)$ ,
+
+$$
+V ^ {\pi} (\mu) - V ^ {\pi^ {\prime}} (\mu) = \frac {1}{1 - \gamma} \mathbb {E} _ {s \sim d _ {\mu} ^ {\pi}} \left[ \langle Q _ {s} ^ {\pi^ {\prime}}, \pi_ {s} - \pi_ {s} ^ {\prime} \rangle \right].
+$$
+
+Lemma D.2 (Three-point decent lemma, Lemma 6 in Xiao (2022)). Suppose that $\mathcal{C} \subset \mathbb{R}^m$ is a closed convex set, $f: \mathcal{C} \to \mathbb{R}$ is a proper, closed convex function, $\mathcal{D}_h(\cdot, \cdot)$ is the Bregman divergence generated by a mirror map $h$ . Denote $\operatorname{rint} \operatorname{dom} h$ as the relative interior of $\operatorname{dom} h$ . For any $x \in \operatorname{rint} \operatorname{dom} h$ , let
+
+$$
+x ^ {+} \in \arg \min _ {u \in \operatorname {d o m} h \cap \mathcal {C}} \{f (u) + \mathcal {D} _ {h} (u, x) \}.
+$$
+
+Then $x^{+}\in \mathrm{rint}$ dom $h\cap \mathcal{C}$ and for any $u\in \mathrm{dom}h\cap \mathcal{C}$
+
+$$
+f (x ^ {+}) + \mathcal {D} _ {h} (x ^ {+}, x) \leq f (u) + \mathcal {D} _ {h} (u, x) - \mathcal {D} _ {h} (u, x ^ {+}).
+$$
+
+# D.2 QUASI-MONOTONIC UPDATES
+
+We first prove that PMD enjoys quasi-monotonic updates (Equation (3)), that is PMD updates have an upper bound on how much they can deteriorate performance.
+
+Proposition D.3 (Lemma 11 in Xiao (2022)). At each time $t \geq 0$ , we have
+
+$$
+\langle \eta_ {t} \widehat {Q} _ {s} ^ {t}, \pi_ {s} ^ {t + 1} - \pi_ {s} ^ {t} \rangle \geq 0.
+$$
+
+Additionally, we have that
+
+$$
+V ^ {t + 1} (\mu) - V ^ {t} (\mu) \geq - \frac {1}{1 - \gamma} \max _ {s \in \mathcal {S}} \left\| \widehat {Q} _ {s} ^ {t} - Q _ {s} ^ {t} \right\| _ {\infty} \max _ {s \in \mathcal {S}} \left\| \pi_ {s} ^ {t + 1} - \pi_ {s} ^ {t} \right\| _ {1}. \tag {10}
+$$
+
+Proof. Using Lemma D.2 with $x^{+} = \pi_{s}^{t + 1}$ , $\mathcal{C} = \Delta (\mathcal{A})$ , $f(u) = \langle \widehat{Q}_s^t,u\rangle$ , $x = \pi^t$ and $u = \pi^{t + 1}$ , we obtain
+
+$$
+\left\langle \eta_ {t} \widehat {Q} _ {s} ^ {t}, \pi_ {s} ^ {t} - \pi_ {s} ^ {t + 1} \right\rangle \leq \mathcal {D} _ {h} \left(\pi_ {s} ^ {t}, \pi_ {s} ^ {t}\right) - \mathcal {D} _ {h} \left(\pi_ {s} ^ {t + 1}, \pi_ {s} ^ {t}\right) - \mathcal {D} _ {h} \left(\pi_ {s} ^ {t}, \pi_ {s} ^ {t + 1}\right). \tag {11}
+$$
+
+By rearranging terms and noticing $\mathcal{D}_h(\pi_s^t,\pi_s^t) = 0$ , we have
+
+$$
+\left\langle \eta_ {t} \widehat {Q} _ {s} ^ {t}, \pi_ {s} ^ {t + 1} - \pi_ {s} ^ {t} \right\rangle \geq \mathcal {D} _ {h} \left(\pi_ {s} ^ {t + 1}, \pi_ {s} ^ {t}\right) + \mathcal {D} _ {h} \left(\pi_ {s} ^ {t}, \pi_ {s} ^ {t + 1}\right) \geq 0. \tag {12}
+$$
+
+Equation (10) can be obtained using the performance difference lemma and (12):
+
+$$
+\begin{array}{l} V ^ {t + 1} (\mu) - V ^ {t} (\mu) = \frac {1}{1 - \gamma} \mathbb {E} _ {s \sim d _ {\mu} ^ {t + 1}} \left[ \langle Q _ {s} ^ {t}, \pi_ {s} ^ {t + 1} - \pi_ {s} ^ {t} \rangle \right] \\ = \frac {1}{1 - \gamma} \mathbb {E} _ {s \sim d _ {\mu} ^ {t + 1}} \left[ \langle \widehat {Q} _ {s} ^ {t}, \pi_ {s} ^ {t + 1} - \pi_ {s} ^ {t} \rangle \right] \\ + \frac {1}{1 - \gamma} \mathbb {E} _ {s \sim d _ {\mu} ^ {t + 1}} \left[ \langle \widehat {Q} _ {s} ^ {t} - Q _ {s} ^ {t}, \pi_ {s} ^ {t + 1} - \pi_ {s} ^ {t} \rangle \right] \\ \geq - \frac {1}{1 - \gamma} \mathbb {E} _ {s \sim d _ {\mu} ^ {t + 1}} \left[ \left\| \widehat {Q} _ {s} ^ {t} - Q _ {s} ^ {t} \right\| _ {\infty} \left\| \pi_ {s} ^ {t + 1} - \pi_ {s} ^ {t} \right\| _ {1} \right]. \\ \end{array}
+$$
+
+
+
+# D.3 CONVERGENCE GUARANTEE
+
+We can now prove the convergence guarantee reported in Equation (4). The proof of our result is obtained combining the analysis from the sublinear convergence guarantee with the analysis for the inexact linear convergence guarantee given by (Xiao, 2022, Theorems 8 and 13). For two different time $t, t' \geq 0$ , denote the expected Bregman divergence between the policy $\pi^t$ and policy $\pi^{t'}$ , where the expectation is taken over the discounted state visitation distribution of the optimal policy $d_{\mu}^{\star}$ , by
+
+$$
+\mathcal {D} _ {t ^ {\prime}} ^ {t} := \mathbb {E} _ {s \sim d _ {\mu} ^ {*}} \left[ \mathcal {D} _ {h} \left(\pi_ {s} ^ {t}, \pi_ {s} ^ {t ^ {\prime}}\right) \right].
+$$
+
+Similarly, denote the expected Bregman divergence between the optimal policy $\pi^{\star}$ and $\pi^t$ by
+
+$$
+\mathcal {D} _ {t} ^ {\star} := \mathbb {E} _ {s \sim d _ {\mu} ^ {\star}} \left[ \mathcal {D} _ {h} (\pi_ {s} ^ {\star}, \pi_ {s} ^ {t}) \right].
+$$
+
+Theorem D.4 (Theorems 8 and 13 in Xiao (2022)). Consider the PMD update in (2), at each iteration $T \geq 0$ , we have
+
+$$
+V ^ {\star} (\mu) - \sum_ {t < T} \mathbb {E} [ V ^ {t} (\mu) ] \leq \frac {1}{T} \left(\frac {\mathbb {E} [ \mathcal {D} _ {0} ^ {\star} ]}{\eta_ {t} (1 - \gamma)} + \frac {1}{(1 - \gamma) ^ {2}}\right) + \frac {4}{(1 - \gamma) ^ {2}} \mathbb {E} \left[ \max _ {s \in \mathcal {S}} \left\| \widehat {Q} _ {s} ^ {t} - Q _ {s} ^ {t} \right\| _ {\infty} \right].
+$$
+
+Proof. Using Lemma D.2 with $x^{+} = \pi_{s}^{t + 1}$ , $\mathcal{C} = \Delta (\mathcal{A})$ , $f(u) = \langle \widehat{Q}_s^t,u\rangle$ , $x = \pi^t$ and $u = \pi^{t + 1}$ , we have that
+
+$$
+\langle \eta_ {t} \widehat {Q} _ {s} ^ {t}, \pi_ {s} ^ {\star} - \pi_ {s} ^ {t + 1} \rangle \leq \mathcal {D} _ {h} (\pi^ {\star}, \pi^ {t}) - \mathcal {D} _ {h} (\pi^ {\star}, \pi^ {t + 1}) - \mathcal {D} _ {h} (\pi^ {t + 1}, \pi^ {t}),
+$$
+
+which can be decomposed as
+
+$$
+\langle \eta_ {t} \widehat {Q} _ {s} ^ {t}, \pi_ {s} ^ {t} - \pi_ {s} ^ {t + 1} \rangle + \langle \eta_ {t} \widehat {Q} _ {s} ^ {t}, \pi_ {s} ^ {\star} - \pi_ {s} ^ {t} \rangle \leq \mathcal {D} _ {h} (\pi^ {\star}, \pi^ {t}) - \mathcal {D} _ {h} (\pi^ {\star}, \pi^ {t + 1}) - \mathcal {D} _ {h} (\pi^ {t + 1}, \pi^ {t}).
+$$
+
+Taking expectation with respect to the distribution $d_{\mu}^{\star}$ over states and with respect to the randomness of PMD and dividing both sides by $\eta_t$ , we have
+
+$$
+\mathbb {E} \left[ \mathbb {E} _ {s \sim d _ {\mu} ^ {\star}} \left[ \langle \widehat {Q} _ {s} ^ {t}, \pi_ {s} ^ {t} - \pi_ {s} ^ {t + 1} \rangle \right] \right] + \mathbb {E} \left[ \mathbb {E} _ {s \sim d _ {\mu} ^ {\star}} \left[ \langle \widehat {Q} _ {s} ^ {t}, \pi_ {s} ^ {\star} - \pi_ {s} ^ {t} \rangle \right] \right] \leq \frac {1}{\eta_ {t}} \mathbb {E} [ \mathcal {D} _ {t} ^ {\star} - \mathcal {D} _ {t + 1} ^ {\star} - \mathcal {D} _ {t} ^ {t + 1} ]. \tag {13}
+$$
+
+We lower bound the two terms on the left hand side of (13) separately. For the first term, we have that
+
+$$
+\begin{array}{l} \mathbb {E} \left[ \mathbb {E} _ {s \sim d _ {\mu} ^ {\star}} \left[ \langle \widehat {Q} _ {s} ^ {t}, \pi_ {s} ^ {t} - \pi_ {s} ^ {t + 1} \rangle \right] \right] \stackrel {(a)} {\geq} \frac {1}{1 - \gamma} \mathbb {E} \left[ \mathbb {E} _ {s \sim d _ {d _ {\mu} ^ {\star}} ^ {t + 1}} \left[ \langle \widehat {Q} _ {s} ^ {t}, \pi_ {s} ^ {t} - \pi_ {s} ^ {t + 1} \rangle \right] \right] \\ = \frac {1}{1 - \gamma} \mathbb {E} \left[ \mathbb {E} _ {s \sim d _ {d _ {\mu} ^ {\star}} ^ {t + 1}} \left[ \langle Q _ {s} ^ {t}, \pi_ {s} ^ {t} - \pi_ {s} ^ {t + 1} \rangle \right] \right] + \frac {1}{1 - \gamma} \mathbb {E} \left[ \mathbb {E} _ {s \sim d _ {d _ {\mu} ^ {\star}} ^ {t + 1}} \left[ \langle \widehat {Q} _ {s} ^ {t} - Q _ {s} ^ {t}, \pi_ {s} ^ {t} - \pi_ {s} ^ {t + 1} \rangle \right] \right] \\ \stackrel {(b)} {=} \mathbb {E} \left[ V ^ {t} (d _ {\mu} ^ {\star}) - V ^ {t + 1} (d _ {\mu} ^ {\star}) \right] + \frac {1}{1 - \gamma} \mathbb {E} \left[ \mathbb {E} _ {s \sim d _ {d _ {\mu} ^ {\star}} ^ {t + 1}} \left[ \langle \widehat {Q} _ {s} ^ {t} - Q _ {s} ^ {t}, \pi_ {s} ^ {t} - \pi_ {s} ^ {t + 1} \rangle \right] \right] \\ \geq \mathbb {E} \left[ V ^ {t} (d _ {\mu} ^ {\star}) - V ^ {t + 1} (d _ {\mu} ^ {\star}) \right] - \frac {1}{1 - \gamma} \mathbb {E} \left[ \mathbb {E} _ {s \sim d _ {d _ {\mu} ^ {\star}} ^ {t + 1}} \left[ \left\| \widehat {Q} _ {s} ^ {t} - Q _ {s} ^ {t} \right\| _ {\infty} \left\| \pi_ {s} ^ {t + 1} - \pi_ {s} ^ {t} \right\| _ {1} \right] \right] \\ \geq \mathbb {E} \left[ V ^ {t} (d _ {\mu} ^ {\star}) - V ^ {t + 1} (d _ {\mu} ^ {\star}) \right] - \frac {2}{1 - \gamma} \mathbb {E} \left[ \max _ {s \in \mathcal {S}} \left\| \widehat {Q} _ {s} ^ {t} - Q _ {s} ^ {t} \right\| _ {\infty} \right] \\ \end{array}
+$$
+
+where $(a)$ follows from Lemmas D.3 and the fact that $d_{d_{\mu}^{\star}}^{t + 1}(s) \geq (1 - \gamma)d_{\mu}^{\star}(s) \forall s \in S$ , and $(b)$ follows from D.1. For the second term, we have that
+
+$$
+\begin{array}{l} \mathbb {E} \left[ \mathbb {E} _ {s \sim d _ {\mu} ^ {\star}} \left[ \langle \widehat {Q} _ {s} ^ {t}, \pi_ {s} ^ {\star} - \pi_ {s} ^ {t} \rangle \right] \right] = \mathbb {E} \left[ \mathbb {E} _ {s \sim d _ {\mu} ^ {\star}} \left[ \langle Q _ {s} ^ {t}, \pi_ {s} ^ {\star} - \pi_ {s} ^ {t} \rangle \right] + \mathbb {E} \left[ \mathbb {E} _ {s \sim d _ {\mu} ^ {\star}} \left[ \langle \widehat {Q} _ {s} ^ {t} - Q _ {s} ^ {t}, \pi_ {s} ^ {\star} - \pi_ {s} ^ {t} \rangle \right] \right] \right. \\ \stackrel {(b)} {=} \mathbb {E} [ V ^ {\star} (\mu) - V ^ {t} (\mu) ] (1 - \gamma) + \mathbb {E} \left[ \mathbb {E} _ {s \sim d _ {\mu} ^ {\star}} \left[ \langle \widehat {Q} _ {s} ^ {t} - Q _ {s} ^ {t}, \pi_ {s} ^ {\star} - \pi_ {s} ^ {t} \rangle \right] \right], \\ \geq \mathbb {E} [ V ^ {\star} (\mu) - V ^ {t} (\mu) ] (1 - \gamma) - \frac {2}{1 - \gamma} \mathbb {E} \left[ \max _ {s \in \mathcal {S}} \left\| \widehat {Q} _ {s} ^ {t} - Q _ {s} ^ {t} \right\| _ {\infty} \right], \\ \end{array}
+$$
+
+where $(b)$ follows from Lemma D.1.
+
+Plugging the two bounds in (13), dividing both sides by $(1 - \gamma)$ and rearranging, we obtain
+
+$$
+\begin{array}{l} \frac {\mathbb {E} \left[ \mathcal {D} _ {t} ^ {t + 1} \right]}{\eta_ {t} (1 - \gamma)} + \mathbb {E} \left[ V ^ {\star} (\mu) - V ^ {t} (\mu) \right] \leq \frac {\mathbb {E} \left[ \mathcal {D} _ {t} ^ {\star} - \mathcal {D} _ {t + 1} ^ {\star} \right]}{\eta_ {t} (1 - \gamma)} + \frac {\mathbb {E} \left[ V ^ {t} \left(d _ {\mu} ^ {\star}\right) - V ^ {t + 1} \left(d _ {\mu} ^ {\star}\right) \right]}{1 - \gamma} \\ + \frac {4}{(1 - \gamma) ^ {2}} \mathbb {E} \left[ \max _ {s \in \mathcal {S}} \left\| \widehat {Q} _ {s} ^ {t} - Q _ {s} ^ {t} \right\| _ {\infty} \right]. \\ \end{array}
+$$
+
+Summing up from 0 to $T - 1$ and dropping some positive terms on the left hand side and some negative terms on the right hand side, we have
+
+$$
+\begin{array}{l} T V ^ {\star} (\mu) - \sum_ {t < T} \mathbb {E} [ V ^ {t} (\mu) ] \leq \frac {\mathbb {E} [ \mathcal {D} _ {0} ^ {\star} ]}{\eta_ {t} (1 - \gamma)} - \frac {\mathbb {E} \left[ V ^ {0} \left(d _ {\mu} ^ {\star}\right) - V ^ {T} \left(d _ {\mu} ^ {\star}\right) \right]}{1 - \gamma} \\ + \frac {4}{(1 - \gamma) ^ {2}} \mathbb {E} \left[ \max _ {s \in \mathcal {S}} \left\| \widehat {Q} _ {s} ^ {t} - Q _ {s} ^ {t} \right\| _ {\infty} \right]. \\ \end{array}
+$$
+
+Notice that $\mathbb{E}\left[V^0 (d_\mu^\star) - V^T (d_\mu^\star)\right]\leq \frac{1}{1 - \gamma}$ as $r(s,a)\in [0,1]$ . By dividing $T$ on both side, we yield the statement.
+
+# E TRAINING DETAILS
+
+We give the hyper-parameters we use for training in Tables 2, 3 and 4. Hyper-parameter tuning was performed differently for each method. For Gridworld, we performed a grid search over the hyper-parameters and selected those that maximized the averaged performance of the negative entropy
+
+and $\ell_2$ -norm over 256 randomly sampled Gridworld environments. For Basic Control Suite and MinAtar, we used the optuna library to search over the hyper-parameters to maximize the average performance of the negative entropy over all environments. We used "CmaEsSampler" as option for the sampler. Lastly, we used Weights and Biases to optimize the hyperparameters for MuJoCo in order to maximize the average performance of the negative entropy over all environments.
+
+Table 2: Hyper-parameter settings of PMD for different sets of environments
+
+
Parameter
Grid-World
MuJoCo
Number of environment steps
218 ≈ 2.5e5
1e7
Number of environments
64
2048
Unroll length
32
10
Number of minibatches
1
128
Number of update epochs
32
8
Adam learning rate
-
1e-4
Sgd learning rate
40
-
Gamma
0.99
0.99
Max grad norm
-
1.0
η
0.1
0.5
+
+Table 3: Hyper-parameter settings of AMPO for different sets of environments
+
+
Parameter
BCS
MinAtar
Number of environment steps
5e5
1e7
Number of environments
4
256
Unroll length
128
128
Number of minibatches
4
8
Number of update epochs
16
8
Adam learning rate
4e-3
7e-4
Gamma
0.99
0.99
Max grad norm
1.4
1
AMPO learning rate
0.9
0.9
+
+Table 4: Hyper-parameter settings of OpenAI-ES, which we used in the tabular setting, and of Sep-CMA-ES, which we used in the non-tabular case.
+
+
OpenAI-ES
Sep-CMA-ES
Population Size
512
128
Number of generations
512 (256 for MuJoCo)
600
Sigma init
0.5
2
Sigma Decay
0.995
-
Learning rate
0.01
-
+
+# F COMPUTATIONAL COSTS OF ES
+
+The computational costs associated with ES are inevitable in this field of research that focuses on automatically discovering optimizers. In the literature, the most popular methods to discover optimizers are meta-gradients (Oh et al., 2020; Jackson et al., 2023) and ES (Lu et al., 2022). Discovering algorithms using meta-gradients consists in introducing some meta-parameters that influence the agent training procedure, training a batch of agents, and differentiating through the training procedure w.r.t. the meta-parameters to maximize the final performance of the agents. ES consists in running several training procedures in parallel and estimating the meta-gradient as in (9), therefore avoiding the need for differentiation. This property is particularly desirable in settings, like ours, where the agent is updated many times and differentiating through the whole training procedure is unfeasible due to memory constraints, meaning that it is necessary to limit the differentiation to the final updates. We decided to employ ES due to this property and because it has been found to be more successful in discovering optimizers (Jackson et al., 2024). Additionally, our experiments are implemented in JAX, which through parallelism and just in time compilation renders the computational costs of ES feasible.
\ No newline at end of file
diff --git a/ICLR/2025/Learning mirror maps in policy mirror descent/images.zip b/ICLR/2025/Learning mirror maps in policy mirror descent/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..e9d7392d828ddb3403861bd9227e1542c9c58143
--- /dev/null
+++ b/ICLR/2025/Learning mirror maps in policy mirror descent/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e41f74fd7087ec8998b1ab22419626c2f9e2553496fbb700350ba04ce599b184
+size 769456
diff --git a/ICLR/2025/Learning mirror maps in policy mirror descent/layout.json b/ICLR/2025/Learning mirror maps in policy mirror descent/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..4e824a478fd061ed7794b4736782dcc0773beb6a
--- /dev/null
+++ b/ICLR/2025/Learning mirror maps in policy mirror descent/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:06e3010d1c512e36606faea6a757659a4a24f5bb257e7611fd4e1b16be56e68f
+size 720563
diff --git a/ICLR/2025/Learning on One Mode_ Addressing Multi-modality in Offline Reinforcement Learning/3d758863-37ba-4ce0-b16a-24709406ec36_content_list.json b/ICLR/2025/Learning on One Mode_ Addressing Multi-modality in Offline Reinforcement Learning/3d758863-37ba-4ce0-b16a-24709406ec36_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..827dbe767cdbeb8779d5ddd94314fb11a6c42906
--- /dev/null
+++ b/ICLR/2025/Learning on One Mode_ Addressing Multi-modality in Offline Reinforcement Learning/3d758863-37ba-4ce0-b16a-24709406ec36_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4ff8a38f81b9a7624235aa1759c92230db1b9a275d2e9a8a256f287b57ac2794
+size 123974
diff --git a/ICLR/2025/Learning on One Mode_ Addressing Multi-modality in Offline Reinforcement Learning/3d758863-37ba-4ce0-b16a-24709406ec36_model.json b/ICLR/2025/Learning on One Mode_ Addressing Multi-modality in Offline Reinforcement Learning/3d758863-37ba-4ce0-b16a-24709406ec36_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..deda5d0dd8e18fadff5e34b7805c8faf4c2e3721
--- /dev/null
+++ b/ICLR/2025/Learning on One Mode_ Addressing Multi-modality in Offline Reinforcement Learning/3d758863-37ba-4ce0-b16a-24709406ec36_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c05736d9415addc97e689b92733ed7eae4f0a832b4802706e568c1e82c5af72c
+size 145607
diff --git a/ICLR/2025/Learning on One Mode_ Addressing Multi-modality in Offline Reinforcement Learning/3d758863-37ba-4ce0-b16a-24709406ec36_origin.pdf b/ICLR/2025/Learning on One Mode_ Addressing Multi-modality in Offline Reinforcement Learning/3d758863-37ba-4ce0-b16a-24709406ec36_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..487ca9e850347c4deb7ad645e40a9b36932cd48a
--- /dev/null
+++ b/ICLR/2025/Learning on One Mode_ Addressing Multi-modality in Offline Reinforcement Learning/3d758863-37ba-4ce0-b16a-24709406ec36_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f6016657c656571c7512904cc6e9961e96350177f950b2678182d3daa8b65c14
+size 6120920
diff --git a/ICLR/2025/Learning on One Mode_ Addressing Multi-modality in Offline Reinforcement Learning/full.md b/ICLR/2025/Learning on One Mode_ Addressing Multi-modality in Offline Reinforcement Learning/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..d52d6aceed627d9955bbeb4e0879f775108097c1
--- /dev/null
+++ b/ICLR/2025/Learning on One Mode_ Addressing Multi-modality in Offline Reinforcement Learning/full.md
@@ -0,0 +1,610 @@
+# LEARNING ON ONE MODE: ADDRESSING MULTI-MODALITY IN OFFLINE REINFORCEMENT LEARNING
+
+Mianchu Wang* Yue Jin* Giovanni Montana\*†
+
+*University of Warwick †The Alan Turing Institute
+
+{mianchu.wang, yue.jin.3, g.montana}@warwick.ac.uk
+
+# ABSTRACT
+
+Offline reinforcement learning (RL) seeks to learn optimal policies from static datasets without interacting with the environment. A common challenge is handling multi-modal action distributions, where multiple behaviours are represented in the data. Existing methods often assume unimodal behaviour policies, leading to suboptimal performance when this assumption is violated. We propose weighted imitation Learning on One Mode (LOM), a novel approach that focuses on learning from a single, promising mode of the behaviour policy. By using a Gaussian mixture model to identify modes and selecting the best mode based on expected returns, LOM avoids the pitfalls of averaging over conflicting actions. Theoretically, we show that LOM improves performance while maintaining simplicity in policy learning. Empirically, LOM outperforms existing methods on standard D4RL benchmarks and demonstrates its effectiveness in complex, multi-modal scenarios.
+
+# 1 INTRODUCTION
+
+Offline reinforcement learning (RL) enables policy learning from static datasets, without active environment interaction, making it ideal for high-stakes applications like autonomous driving and robot manipulation (Levine et al., 2020; Ma et al., 2022; Wang et al., 2024a). A key challenge in offline RL is managing the discrepancy between the learned policy and the behaviour policy that generated the dataset. Small discrepancies can hinder policy improvement, while large discrepancies push the learned policy into uncharted areas, causing significant extrapolation errors and poor generalisation (Fujimoto et al., 2019; Yang et al., 2023). Addressing these challenges, existing research has proposed various solutions. Conservative approaches penalise actions that stray into out-of-distribution (OOD) regions (Yu et al., 2020; Kumar et al., 2020), while others regularise the policy by minimising its divergence from the behaviour policy, ensuring better fidelity to the dataset (Fujimoto & Gu, 2021; Wu et al., 2019). Another solution is weighted imitation learning, which aims to replicate actions from the dataset through supervised learning techniques (Mao et al., 2023; Peng et al., 2019).
+
+Many real-world datasets introduce an additional challenge: multi-modal action distributions (Wang et al., 2024b; Chen et al., 2022; Zhou et al., 2020). These datasets are common in practice because they often integrate data from diverse sources, such as multiple policies, human demonstrations, or distinct exploration strategies. This diversity arises naturally in domains where the same task can be approached in various ways, leading to states with multiple valid but potentially conflicting actions. For instance, in autonomous driving, different driving styles — conservative versus aggressive — may lead to different but equally valid ways of navigating a road. Similarly, in robotic manipulation, an object can be grasped in various ways depending on the robot's approach, the object's position, and environmental constraints. This multi-modality is not an exception but rather a frequent occurrence in complex, real-world decision-making tasks, as systems often integrate experience from various sources to handle different scenarios. Thus, it becomes crucial to model and manage these multimodal action distributions effectively.
+
+Most offline RL approaches implicitly assume a unimodal action distribution, which can force policies to converge toward an average action that may not exist in the dataset, leading to degraded performance. This limitation is particularly evident in scenarios where policies fail to capture complex multi-modal distributions, instead collapsing into suboptimal or invalid averages, as studied by Cai et al. (2023); Wang et al. (2024b); Yang et al. (2022b) and illustrated in Appendix A. Recent work has attempted to address this by modelling the full multi-modal action distribution using expressive
+
+generative models such as GANs, VAEs, and diffusion models (Zhou et al., 2020; Chen et al., 2022; Wang et al., 2023). However, these models often overcomplicate the learning process by capturing the entire action distribution, which is unnecessary when only a subset of the modes is relevant for optimal decision-making.
+
+We propose a simpler yet effective approach: Weighted Imitation Learning on One Mode (LOM). Our insight is that learning from a single mode — the one with the highest expected return — is sufficient to generate optimal actions. Instead of modelling the full multi-modal distribution, LOM identifies and focuses on the most promising mode for each state.
+
+LOM operates through three key steps (illustrated in Figure 1). First, it models the behaviour policy as a Gaussian mixture model (GMM), capturing the inherent multi-modality in the action space. Each mode in the GMM represents a distinct cluster of actions associated with a state. Second, a novel hyper Q-function is introduced to evaluate the expected return of each mode, enabling the dynamic selection of the most advantageous one. Finally, LOM performs weighted imitation learning on the actions from the selected mode, ensuring that the learned policy focuses on the most beneficial actions while retaining the simplicity of unimodal policies. This targeted, mode-specific learning strategy simplifies the policy learning process while maintaining or even enhancing performance in multi-modal scenarios. By dynamically selecting the optimal mode for each state, LOM achieves robust results with reduced complexity.
+
+This paper has four key contributions: (1) we propose LOM, a novel weighted imitation learning method designed to address the multi-modality problem in offline RL; (2) we introduce hyper Q-functions and hyper-policies for evaluating and selecting action modes; (3) we provide theoretical guarantees of consistent performance improvements over both the behaviour policy and the optimal action mode; and (4) we empirically demonstrate that LOM outperforms state-of-the-art (SOTA) offline RL methods across various benchmarks, particularly in multimodal datasets.
+
+
+
+
+
+
+Figure 1: The three steps of LOM. (1) Learn a network producing the parameters of a GMM to model the behaviour policy. (2) Evaluate each mode via the expected return of its actions and then select the optimal mode $\phi^1$ . (3) Sample actions from $\phi^1$ for weighted imitation learning.
+
+# 2 RELATED WORK
+
+Offline RL The primary challenge in offline RL lies in managing the distribution shift between the behaviour policy, which generated the offline dataset, and the learned policy. This shift can cause the learned policy to produce actions that are not well-represented in the offline dataset, leading to inaccurate value function estimations and degraded performance (Levine et al., 2020; Fujimoto et al., 2019). To mitigate the risks associated with OOD actions, one approach involves using conservative value functions, which penalise actions that deviate from the behaviour policy (Fujimoto et al., 2019; Kumar et al., 2020; Bai et al., 2022; Sun et al., 2022; An et al., 2021). Another strategy focuses on regularising the learned policy to ensure its proximity to the behaviour policy. This regularisation can be measured using metrics such as mean squared error (MSE) (Beeson & Montana, 2024; Fujimoto & Gu, 2021) or more sophisticated metrics like the Wasserstein distance, Jensen-Shannon divergence (Yang et al., 2022b; Wu et al., 2019), and weighted MSE (Ma et al., 2024). These methods aim to keep the learned policy within a safer, well-understood operational space, reducing the likelihood of selecting OOD actions. For a comprehensive review of value penalties and policy regularisation techniques, we refer readers to (Wu et al., 2019). In contrast to these approaches, LOM tackles the distribution shift problem by focusing on a single, optimal mode of the behaviour policy, thereby reducing the risk of OOD actions while still allowing for significant policy improvement.
+
+Weighted Imitation Learning Our proposed method contributes to the growing field of weighted imitation learning, which revolves around two fundamental questions: which actions should be imitated and how should these actions be weighted (Brandfonbrener et al., 2021). Most existing methods imitate actions directly from the dataset (Peng et al., 2019; Wang et al., 2018; Nair et al., 2021; Wang et al., 2020), while some approaches (Siegel et al., 2020; Mao et al., 2023) suggest imitating actions from the most recent policies. These methods typically weigh actions based on their advantage, conditioned either on the behaviour policy (Peng et al., 2019; Wang et al., 2018) or on the most recently updated policy (Nair et al., 2021; Wang et al., 2020; Siegel et al., 2020; Mao et al., 2023). However, a key limitation of these approaches is their underlying assumption that the imitated actions are drawn from a unimodal Gaussian distribution, an oversimplification that often fails in complex, real-world datasets where multi-modal distributions are common (Lynch et al., 2020; Yang et al., 2022b). LOM addresses this limitation by forgoing the unimodal assumption, instead extracting a highly-rewarded Gaussian mode from the behaviour policy.
+
+Multi-modality in Offline RL Offline RL datasets are often collected from multiple, unknown policies, leading to states with several valid action labels, which may conflict with one another. Most existing methods employ a unimodal Gaussian policy, which inadequately captures the inherent multimodality in such datasets. To address this limitation, PLAS (Zhou et al., 2020) decodes variables sampled from a VAE latent space, while LAPO (Chen et al., 2022) leverages advantage-weighted latent spaces for further policy optimisation. Additionally, Yang et al. (2022b) demonstrate that GANs can model multiple action modes, and GOPlan (Wang et al., 2024b) extends this by applying exponentiated advantage weighting to highlight highly-rewarded modes. DAWOG (Wang et al., 2024a) and DMPO (Osa et al., 2023) separate the state-action space and learn a conditioned Gaussian policy or a mixture of deterministic policies to solve the regions individually. Techniques such as normalising flows and diffusion models can also model multi-modal distributions by progressively transforming an initial distribution into the target distribution (Wang et al., 2023; Akimov et al., 2022). However, these techniques are computationally intensive, making their inference processes inefficient. Beyond direct policy improvements, approaches like TD3+RKL (Cai et al., 2023) exploit the mode-seeking property of reverse KL-divergence to narrow action coverage, while BAW (Yang et al., 2022a) filters actions with values in the leftmost quantile. Despite these advances, most methods attempt to capture or model the entire multi-modal distribution, leading to increased complexity. In contrast, LOM simplifies the learning process by extracting and focusing on a single, optimal mode from the behaviour policy, effectively addressing the multi-modality challenge without the need to model the entire distribution.
+
+# 3 PRELIMINARIES
+
+To lay the foundation for our method, we first introduce the Markov Decision Process (MDP) and the concept of weighted imitation learning. An MDP is defined by the tuple $\mathcal{M} = \langle S, \mathcal{A}, \mathcal{P}, r, \gamma \rangle$ , where $S$ is the state space, $\mathcal{A}$ the action space, and $\mathcal{P}$ the transition dynamics. The function $r$ represents the reward, and $\gamma$ is the discount factor. The objective in RL is to learn a policy $\pi$ that maximises the expected discounted return:
+
+$$
+J (\pi) = \mathbb {E} _ {\tau \sim p _ {\pi}} \left[ \sum_ {t = 0} ^ {T} \gamma^ {t} r (s _ {t}, a _ {t}) \right],
+$$
+
+where $\tau = \{s_0, a_0, \dots, s_T, a_T\}$ is a trajectory sampled under policy $\pi$ . The state-action value function $Q^{\pi}(s_t, a_t)$ represents the expected return starting from state $s_t$ , taking action $a_t$ , and following $\pi$ thereafter:
+
+$$
+Q ^ {\pi} \left(s _ {t}, a _ {t}\right) = \mathbb {E} _ {s _ {t + 1}, a _ {t + 1}, \dots \sim \pi} \left[ \sum_ {l = t} ^ {T} \gamma^ {l} r \left(s _ {l}, a _ {l}\right) \right]. \tag {1}
+$$
+
+The value function is defined as $V^{\pi}(s_t) = \mathbb{E}_{a_t\sim \pi (\cdot |s_t)}[Q^{\pi}(s_t,a_t)]$ , and the advantage function is $A^{\pi}(s_t,a_t) = Q^{\pi}(s_t,a_t) - V^{\pi}(s_t)$ .
+
+In offline RL, the agent learns exclusively from a fixed dataset $\mathcal{D}$ collected by one or more behaviour policies, denoted as $\pi_{b}$ , without further interaction with the environment (Levine et al., 2020). Our approach is based on weighted imitation learning, where the objective is to optimize
+
+$$
+J (\pi) = \mathbb {E} _ {s \sim d _ {\pi_ {b}}, a \sim \pi_ {b} (\cdot | s)} \left[ \exp \left(\frac {1}{\beta} A ^ {\pi_ {b}} (s, a)\right) \log \pi (a \mid s) \right],
+$$
+
+where $\beta$ is a hyper-parameter. This formulation encourages learning a policy $\pi$ that imitates actions from $\mathcal{D}$ , weighted by the exponentiated advantage of the behaviour policy $\pi_{b}$ , thereby implicitly constraining the KL-divergence between $\pi$ and $\pi_{b}$ (Wang et al., 2018). Recent works have extended this approach by imitating actions from the current learned policy (Siegel et al., 2020; Mao et al., 2023), or weighting actions based on the advantage conditioned on the current policy (Nair et al., 2021; Wang et al., 2020).
+
+# 4 METHOD
+
+In this section, we present the LOM method, specifically designed for offline RL with heterogeneous datasets. We begin by modelling the behaviour policy using a Gaussian Mixture Model (GMM) to capture the inherent multi-modality. Following this, we formalise the problem using a hyperMarkov decision process (H-MDP), where a hyper-policy dynamically selects the most promising mode for each state based on expected returns. Next, we propose a hyper Q-function to evaluate the hyper-policy and introduce a greedy hyper-policy for mode selection at each step for weighted imitation learning. Finally, we prove that the resulting policy of our LOM method outperforms both the behaviour policy and a greedy policy.
+
+# 4.1 MULTI-MODAL BEHAVIOURAL POLICY
+
+To address the challenge of multi-modal action distributions in offline RL, we model the behaviour policy as a Gaussian Mixture Model (GMM). GMMs are flexible in representing complex distributions and can approximate any density function with sufficient components (McLachlan & Basford, 1988), making them well-suited for capturing the heterogeneous nature of offline datasets that often arise from multiple policies or exploration strategies. The behaviour policy $\pi_b(a\mid s)$ is expressed as:
+
+$$
+\pi_ {b} (a \mid s) = \sum_ {i = 1} ^ {M} \alpha^ {i} (s) \phi^ {i} (a \mid s), \tag {2}
+$$
+
+where $\alpha^i (s)$ represents the mixing coefficients for each mode $i$ , and $\phi^i (a\mid s)$ denotes the Gaussian component for mode $i$ at state $s$ . Each mode captures a distinct cluster of actions associated with the state. By using a GMM, our model captures the diverse modes present in real-world offline RL datasets, where multiple valid strategies may coexist for the same task. This approach preserves the richness of the original data while avoiding the limitations of unimodal policy approximations.
+
+# 4.2 HYPER-MARKOV DECISION PROCESS
+
+To extend the traditional MDP framework introduced in Section 3 and formulate the offline RL problem with a multi-modal behaviour policy, we introduce the Hyper-Markov Decision Process (H-MDP). The H-MDP accounts for multiple policy modes, extending the standard MDP to a higher level of abstraction. Formally, the H-MDP is defined as $\mathcal{M}_H = \langle S, \mathcal{A}, \mathcal{P}, r, \gamma, \Omega, \mathcal{A}_H, \mathcal{P}_H, r_H \rangle$ , where $S$ , $\mathcal{A}$ , $\mathcal{P}$ , $r$ , and $\gamma$ retain their standard meanings from the MDP. The novel components introduced are: $\Omega = \{\phi^1, \dots, \phi^M\}$ , representing the Gaussian modes, and the hyper-action space $\mathcal{A}_H = \{1, \dots, M\}$ , which indexes these modes.
+
+The transition dynamics $\mathcal{P}_H$ conditioned on the hyper-action $u_{t}\in \mathcal{A}_{H}$ and the reward function $r_H$ for $u_{t}$ are defined as:
+
+$$
+\mathcal {P} _ {H} (s _ {t + 1} \mid s _ {t}, u _ {t}) = \mathbb {E} _ {a _ {t} \sim \phi^ {u _ {t}} (a | s _ {t})} \left[ \mathcal {P} (s _ {t + 1} \mid s _ {t}, a _ {t}) \right],
+$$
+
+$$
+r _ {H} \left(s _ {t}, u _ {t}\right) = \mathbb {E} _ {a _ {t} \sim \phi^ {u _ {t}} \left(a \mid s _ {t}\right)} \left[ r \left(s _ {t}, a _ {t}\right) \right].
+$$
+
+At each time step, the agent selects a Gaussian mode $u$ based on a hyper-policy $\zeta$ , which maps states to a probability distribution over modes, $\zeta(u \mid s): S \times \mathcal{A}_H \to [0,1]$ . The hyper-policy determines the likelihood of selecting each mode in a given state. The agent then selects an action $a$ according to the Gaussian distribution $\phi^u(a \mid s)$ . Consequently, the action follows a composite policy $\pi_{\zeta}$ , which corresponds to the hyper-policy $\zeta$ and can be expressed as:
+
+$$
+\pi_ {\zeta} (a \mid s) = \sum_ {u \in \mathcal {A} _ {H}} \zeta (u \mid s) \phi^ {u} (a \mid s), \tag {3}
+$$
+
+In the H-MDP, the agent's objective is to learn a hyper-policy $\zeta$ that maximises the expected discounted return:
+
+$$
+J (\zeta) = \mathbb {E} _ {\tau \sim p _ {\zeta}} \left[ \sum_ {t = 0} ^ {T} \gamma^ {t} r _ {H} \left(s _ {t}, u _ {t}\right) \right], \tag {4}
+$$
+
+where $p_{\zeta}$ is the distribution of state-mode trajectories $\tau = (s_t, u_t, s_{t+1}, u_{t+1}, \ldots)$ induced by following the hyper-policy $\zeta$ .
+
+# 4.3 HYPER Q-FUNCTION
+
+To evaluate the quality of selecting a mode $u$ in a given state $s$ , we define the hyper $Q$ -function $Q_H^\zeta(s, u)$ . This function quantifies the expected return when choosing mode $u$ at state $s$ and subsequently following the hyper-policy $\zeta$ . Formally, the hyper $Q$ -function is defined as:
+
+$$
+Q _ {H} ^ {\zeta} (s, u) = \mathbb {E} _ {s _ {t + 1}, u _ {t + 1}, \dots \sim \zeta} \left[ \sum_ {t = 0} ^ {T} \gamma^ {t} r _ {H} \left(s _ {t}, u _ {t}\right) \mid s _ {0} = s, u _ {0} = u \right]. \tag {5}
+$$
+
+This expectation is taken over future states and modes encountered while following the hyper-policy $\zeta$ after selecting mode $u$ in state $s$ . The term $r_{H}(s_{t}, u_{t})$ denotes the expected reward for selecting mode $u_{t}$ in state $s_{t}$ , with $\gamma$ being the discount factor.
+
+Proposition 1. The hyper $Q$ -function can be linked to the standard value function $Q^{\pi}(s,a)$ via:
+
+$$
+Q _ {H} ^ {\zeta} (s, u) = \mathbb {E} _ {a \sim \phi^ {u} (\cdot | s)} \left[ Q ^ {\pi_ {\zeta}} (s, a) \right]. \tag {6}
+$$
+
+The proof can be found in Appendix B.1.
+
+This proposition establishes a critical relationship between the hyper Q-function and the standard Q-function. It shows that the expected return for selecting mode $u$ (i.e., the hyper-action) is equivalent to the expected value of actions sampled from the Gaussian component $\phi^u(a \mid s)$ , evaluated under the composite policy $\pi_{\zeta}$ . This result is particularly important when dealing with multi-modal behaviour policies, as it allows the agent to effectively compare and evaluate different modes $u$ based on their associated action distributions $\phi^u(a \mid s)$ .
+
+# 4.4 MODE SELECTION
+
+Since the hyper Q-function evaluates the expected return after selecting mode $u$ at a state, we now propose a greedy hyper-policy that improves upon the behaviour policy by selecting the most advantageous mode at each state based on the hyper Q-function.
+
+In correspondence with the multi-modal behaviour policy $\pi_b$ defined in Eq. 2, we introduce the behavioural hyper-policy, denoted as $\zeta_b$ , which reflects the mode-selection strategy implicit in the behaviour policy that generated the offline dataset. Specifically, $\zeta_b(u|s) = \alpha^u (s)$ , where $\alpha^u (s)$ is the mixing coefficient for the $u$ -th Gaussian component in the GMM at state $s$ . This formulation establishes the connection between the original behaviour policy $\pi_b$ and the H-MDP framework, allowing us to represent the behaviour policy in terms of mode selection.
+
+To improve upon the behavioural hyper-policy $\zeta_{b}$ , we define a greedy hyper-policy $\zeta_{g}$ , which selects the mode that maximises the hyper Q-function $Q_{H}^{\zeta_{b}}(s,u)$ for each state:
+
+$$
+\zeta_ {g} (s) = \arg \max _ {u \in \mathcal {A} _ {H}} Q _ {H} ^ {\zeta_ {b}} (s, u). \tag {7}
+$$
+
+This greedy hyper-policy ensures that the agent selects the mode with the highest expected return at each state, thereby improving the overall policy performance relative to the behaviour policy.
+
+Theorem 1. The composite policy induced by the greedy hyper-policy improves upon the behaviour policy:
+
+$$
+V ^ {\pi_ {\zeta_ {g}}} (s) \geq V ^ {\pi_ {b}} (s), \quad \forall s \in \mathcal {S}. \tag {8}
+$$
+
+The proof can be found in Appendix B.2.
+
+This improvement property guaranteed by Theorem 1 forms the foundation of our LOM algorithm. It ensures that by systematically selecting modes with the highest expected return at each state, the agent's composite policy will, over time, perform at least as well as the original behaviour policy.
+
+# 4.5 WEIGHTED IMITATION LEARNING ON ONE MODE
+
+Based on the greedy hyper-policy $\zeta_{g}$ , we obtain the corresponding greedy policy $\pi_{\zeta_g}$ , which, according to Theorem 1, is not worse than $\pi_{b}$ . However, rather than simply imitating $\pi_{\zeta_g}$ , we apply weighted imitation learning to further improve the policy. Specifically, we aim to find a policy $\pi$ that maximises the expected improvement $\eta (\pi) = J(\pi) - J(\pi_{\zeta_g})$ . The expected improvement $\eta (\pi)$ can be expressed in terms of the advantage $A^{\pi_{\zeta_g}}(s,a)$ (Kakade & Langford, 2002; Schulman et al., 2015): $\eta (\pi) = \mathbb{E}_{s\sim d_{\pi}(\cdot),a\sim \pi (\cdot |s)}[A^{\pi_{\zeta_g}}(s,a)]$ . However, in offline RL, state samples from the distribution $d_{\pi}(s)$ are unavailable. Instead, we approximate the expected improvement by using an estimate $\hat{\eta}$ (Kakade & Langford, 2002): $\hat{\eta} (\pi) = \mathbb{E}_{s\sim d_{\pi_{\zeta_g}}(\cdot),a\sim \pi (\cdot |s)}[A^{\pi_{\zeta_g}}(s,a)]$ . This approximation provides a good estimate of $\eta (\pi)$ if $\pi$ and $\pi_{\zeta_g}$ are close in terms of KL-divergence (Schulman et al., 2015). As a result, we can formulate the following constrained policy optimisation problem:
+
+$$
+\arg \max _ {\pi} \sum_ {s} d _ {\pi_ {\zeta_ {g}}} (s) \sum_ {a} \pi (a \mid s) A ^ {\pi_ {\zeta_ {g}}} (s, a),
+$$
+
+$$
+\sum_ {s} d _ {\pi_ {\zeta_ {g}}} (s) D _ {K L} (\pi (\cdot \mid s) | | \pi_ {\zeta_ {g}} (\cdot \mid s)) \leq \epsilon . \tag {9}
+$$
+
+Solving the corresponding Lagrangian leads to the optimal policy $\pi^{*}\colon \pi^{*}(a\mid s) = \frac{1}{Z(s)}\pi_{\zeta_{g}}(a\mid s)\exp \left(\frac{1}{\beta} A^{\pi_{\zeta_{g}}} (s,a)\right)$ . We then learn a policy by minimising the KL-divergence to this optimal policy, resulting in the weighted imitation learning objective:
+
+$$
+\arg \min _ {\pi} \mathbb {E} _ {s \sim d _ {\pi_ {b}} (\cdot)} [ D _ {K L} \left(\pi^ {*} (\cdot | s) \mid \mid \pi (\cdot | s)\right) ] \tag {10}
+$$
+
+$$
+= \arg \max _ {\pi} \mathbb {E} _ {s \sim d _ {\pi_ {b}} (\cdot), a \sim \pi_ {\zeta_ {g}} (\cdot | s)} \left[ \exp \left(\frac {1}{\beta} A ^ {\pi_ {\zeta_ {g}}} (s, a)\right) \log \pi (a \mid s) \right]. \tag {11}
+$$
+
+In this framework, the actions to be imitated are sampled from $\pi_{\zeta_g}$ , a unimodal Gaussian policy, thereby addressing the multi-modality issue. Furthermore, actions within this mode are weighted according to their advantage, encouraging the policy to concentrate on the highly-rewarded actions. As shown in Theorem 2, the policy learned by LOM has a theoretical advantage over both $\pi_{\zeta_g}$ and the original behaviour policy $\pi_b$ .
+
+Theorem 2. The LOM algorithm learns a policy $\pi_L$ that is at least as good as both the composite policy induced by the greedy hyper-policy $\pi_{\zeta_g}$ and the behaviour policy $\pi_b$ . Specifically, for all states $s \in S$ :
+
+$$
+V ^ {\pi_ {L}} (s) \geq V ^ {\pi_ {\zeta_ {g}}} (s) \geq V ^ {\pi_ {b}} (s). \tag {12}
+$$
+
+The proof is provided in Appendix B.3.
+
+This theorem implies that our method introduces a novel two-step improvement process. LOM achieves further policy improvement compared to one-step algorithms while requiring less off-policy evaluation than multi-step algorithms (Brandfonbrener et al., 2021).
+
+Theorem 3. The LOM algorithm learns a policy $\pi_L$ , whose improvement upon the composite policy induced by the greedy hyper-policy $\pi_{\zeta_g}$ is bounded. For all $s \in S$ , we have
+
+$$
+V ^ {\pi_ {L}} (s) - V ^ {\pi_ {\zeta_ {g}}} (s) \geq \frac {1}{1 - \gamma} \hat {\eta} (\pi_ {L}) - \frac {A _ {\max }}{1 - \gamma} \sqrt {\frac {1}{2} D _ {K L} \left(d _ {\pi_ {L}} \mid \mid d _ {\pi_ {\zeta_ {g}}}\right)}, \tag {13}
+$$
+
+where $A_{\mathrm{max}} = \max_{s,a}|A^{\pi \zeta_g}(s,a)|$ . The proof is provided in Appendix B.4.
+
+The bound shows that the learned policy $\pi_L$ is guaranteed to perform at least as well as the baseline policy $\pi_{\zeta_g}$ , with the performance improvement quantified by the maximal advantage and reduced by a penalty term proportional to the divergence in their state visitation distributions — emphasizing that maximising advantage while minimising divergence leads to better performance.
+
+# 5 PRACTICAL ALGORITHM
+
+In this section, we present the practical implementation of the LOM algorithm. First, we model the multi-modal behaviour policy using a mixture density network, as described in Section 5.1. In Section 5.2, we outline the mode selection process, which involves learning the hyper Q-function for the behavioural hyper-policy. This hyper Q-function is then used to derive the greedy hyper-policy $\zeta_{g}$ and the corresponding greedy policy $\pi_{\zeta_g}$ , which selects a single mode. Finally, in Section 5.3, we describe how to learn a policy through weighted imitation learning on the selected mode.
+
+Algorithm 1 Weighted imitation learning on one mode (LOM).
+Initialise: A MDN behaviour policy $\pi_{\rho}$ with parameter $\rho$ , a target policy $\pi_{\theta}$ with parameter $\theta$ , a value function $Q_{\psi}$ with parameter $\psi$ and its slowly-updated copy $Q_{\psi -}$ , a behaviour hyper Q-function $Q_{\phi}$ with parameter $\phi$ ; an offline dataset $\mathcal{D}$
+1: # Learn the MDN behaviour policy.
+2: for $i = 1,\dots,I_M$ do
+3: Update $\rho$ by minimising $\mathcal{L}(\rho) = \mathbb{E}_{(s_t,a_t)\sim \mathcal{D}}[\log \pi_\rho (a_t\mid s_t)]$ . $\triangleright$ Eq. 15.
+4: end for
+5: for $i = 1,\ldots ,I_G$ do
+6: Sample transitions $\pmb {\tau} = \{s_t,a_t,r_t,s_{t + 1},a_{t + 1}\} \sim \mathcal{D}$
+7: # Learn the value function.
+8: Update $\psi$ by minimising $\mathcal{L}(\psi) = \mathbb{E}_{\tau}[(Q_{\psi}(s_t,a_t) - (r_t + \gamma Q_{\psi^{-}}(s_{t + 1},a_{t + 1}))^2 ]$ . $\triangleright$ Eq. 16
+9: # Learn behavioural hyper Q-function.
+10: Update $\phi$ by minimising $\mathcal{L}(\phi) = \mathbb{E}_{s_t\sim \mathcal{D},u\sim \mathrm{Uniform}(\mathcal{A}_H)}[(Q_\phi (s_t,u) - \mathbb{E}_{a'_t\sim \phi^u (\cdot |s)}[Q_\psi (s_t,a'_t)])^2 ]$
+11: # Learn the target policy.
+12: Select the optimal mode $u = \arg \max_{u\in \{1,\dots,M\}}Q_{\phi}(s_t,u)$
+13: Sample action from the optimal mode $\hat{a}_t\sim \phi^u (s_t)$
+14: Get the mean of the mode $\bar{a}_t = \phi_\mu^u (s_t)$ $\triangleright$ The mean of the mode
+15: Estimate the advantage $A(s_{t},\hat{a}_{t}) = Q_{\psi}(s_{t},\hat{a}_{t}) - Q_{\psi}(s_{t},\bar{a}_{t})$
+16: Update $\theta$ by minimising $\mathcal{L}(\theta) = -\mathbb{E}_{s_t,\hat{a}_t}[\exp (A(s_t,\hat{a}_t))\log \pi_\theta (\hat{a}_t\mid s_t)]$ . $\triangleright$ Eq. 18
+17: # Update the target network.
+18: if i mode update_delay $= 0$ then
+19: $\psi^{-}\gets \rho \psi^{-} + (1 - \rho)\psi$
+20: end if
+21: end for
+
+# 5.1 BEHAVIOUR POLICY MODELLING
+
+At the start of the LOM algorithm, we model the behaviour policy using a mixture density network (MDN) (Bishop, 1994). The MDN receives a state $s$ and represents the resulting action distribution with a GMM, including its mixing coefficients, locations, and scales. We index the Gaussian components as the hyper-actions, ranging from 1 to $M$ .
+
+In the algorithm, we learn a neural network $\pi_{\rho}(a|s)$ parameterised by $\rho$ to estimate the behaviour policy. The network produces the parameters $\{z_i^\mu ,z_i^\sigma ,z^{\alpha^i}\}_{i = 1}^M$ , which are used to estimate the probability density function for each policy mode:
+
+$$
+\phi^ {i} (a \mid s) = \frac {1}{\sqrt {2 \pi} \sigma_ {i} (s)} \exp \left(- \frac {\left| \left| a - \mu_ {i} (s) \right| \right| ^ {2}}{2 \sigma_ {i} (s) ^ {2}}\right), \tag {14}
+$$
+
+where $\mu_i(s) = z_i^\mu$ , and $\sigma_i(s) = \exp(z_i^\sigma)$ . The mixing coefficient $\alpha^i(s)$ is processed through a softmax function: $\alpha^i(s) = \exp(z^{\alpha^i}) / \sum_{j=1}^{M} \exp(z^{\alpha^j})$ . The parameters of the network are updated by minimising the negative log-likelihood:
+
+$$
+\mathcal {L} (\rho) = - \mathbb {E} _ {(s, a) \sim \mathcal {D}} [ \log \pi_ {\rho} (a \mid s) ]. \tag {15}
+$$
+
+LOM trains the MDN until convergence, after which the parameter $\rho$ is fixed for the remainder of the algorithm.
+
+# 5.2 HYPER Q-FUNCTION LEARNING
+
+We learn the hyper Q-function of the behavioural hyper-policy based on Proposition 1. Specifically, we first learn a Q-function, $Q^{\pi_b}$ , of the behaviour policy, and then estimate its expectation over actions sampled from mode $u$ . We instantiate $Q^{\pi_b}$ with a neural network $Q_{\psi}$ parameterised by $\psi$ and updated to minimising the TD error:
+
+$$
+\mathcal {L} (\psi) = \mathbb {E} _ {\left(s _ {t}, a _ {t}, r _ {t}, s _ {t + 1}, a _ {t + 1}\right) \sim \mathcal {D}} \left[ \left(Q _ {\psi} \left(s _ {t}, a _ {t}\right) - \left(r _ {t} + \gamma Q _ {\psi^ {-}} \left(s _ {t + 1}, a _ {t + 1}\right)\right)\right) ^ {2} \right]. \tag {16}
+$$
+
+where $Q_{\psi^{-}}$ is a slowly updated copy of $Q_{\psi}$ . Following Proposition 1, we learn $Q_H^{c_b}$ , a hyper Q-function of the behavioural hyper-policy, which is denoted as $Q_{\phi}$ parameterised by $\phi$ . The optimisation objective of learning $Q_{\phi}$ is:
+
+$$
+\mathcal {L} (\phi) = \mathbb {E} _ {s _ {t} \sim \mathcal {D}, u \sim \operatorname {U n i f o r m} \left(\mathcal {A} _ {H}\right)} \left[ \left(Q _ {\phi} \left(s _ {t}, u\right) - \mathbb {E} _ {a _ {t} \sim \phi^ {u} (\cdot | s)} \left[ Q _ {\psi} \left(s _ {t}, a _ {t}\right) \right]\right) ^ {2} \right]. \tag {17}
+$$
+
+With this hyper Q-function, we get a greedy hyper-policy $\zeta_g(s) = \arg \max_{u\in \mathcal{A}_H}Q_\phi (s,u)$ . Corresponding to $\zeta_g(s)$ , we get the greedy policy with one mode, $\pi_{\zeta_g}(a\mid s) = \phi^{\zeta_g(s)}(a\mid s)$ .
+
+Table 1: Averaged normalised scores on D4RL benchmarks over 4 random seeds. 0 represents the performance of a random policy and 100 represents the performance of an expert policy. Standard deviations are provided as subscripts for multi-modal handling algorithms. The highest mean is highlighted in bold.
+
+
Dataset
Env
OneStep
AWAC
CQL
TD3BC
LAPO
DMPO
WCGAN
WCVAE
LOM
medium
halfcheetah
50.4
47.9
47.0
48.3
45.9±0.3
47.5±0.4
48.2±1.3
50.5±1.1
51.0±0.7
hopper
87.5
59.8
53.0
59.3
51.6±3.2
71.2±6.5
78.6±2.4
89.0±2.0
100.8±1.4
walker2d
84.8
83.1
73.3
83.7
80.7±0.8
79.4±4.7
82.4±1.7
85.0±1.5
85.1±0.7
medium-replay
halfcheetah
42.7
44.8
45.5
44.6
44.7±0.3
45.2±0.8
42.3±4.2
45.0±0.9
48.8±0.7
hopper
98.5
69.8
88.7
60.9
58.6±3.8
89.2±8.1
90.3±3.1
99.0±2.1
99.2±1.1
walker2d
61.7
78.1
81.8
81.8
71.7±5.2
82.1±3.8
72.6±4.0
74.0±3.1
84.8±1.0
medium-expert
halfcheetah
75.1
64.9
75.6
90.7
93.0±1.0
91.1±3.4
76.5±3.1
80.0±1.7
92.7±1.3
hopper
108.6
100.1
105.6
98.0
105.2±4.7
78.4±19.0
110.0±2.4
109.0±1.6
110.1±1.4
walker2d
111.3
110.0
107.9
110.1
111.1±0.2
109.9±0.4
99.7±1.0
111.0±0.7
111.3±0.8
expert
halfcheetah
88.2
81.7
96.3
96.7
95.9±0.2
97.0±1.0
90.7±1.7
89.0±0.8
95.2±0.4
hopper
106.9
109.5
96.5
107.8
106.7±3.6
93.6±15.1
107.3±1.8
108.0±1.3
111.0±0.8
walker2d
110.7
110.1
108.5
110.2
112.2±0.1
111.4±0.3
109.3±1.4
111.0±1.4
109.3±1.1
full-replay
halfcheetah
64.7
66.6
73.6
71.7
74.2±1.3
71.4±1.2
64.2±3.1
66.0±3.4
76.6±1.2
hopper
69.8
100.1
98.2
76.8
100.0±3.3
101.5±5.9
80.2±5.3
86.5±4.4
102.0±2.7
walker2d
67.1
78.3
92.7
90.2
96.2±2.8
95.4±1.8
53.0±5.4
72.0±3.7
97.9±0.9
+
+# 5.3 POLICY LEARNING
+
+Finally, we learn the policy $\pi_{\theta}$ by maximising the objective:
+
+$$
+J (\theta) = \mathbb {E} _ {s \sim \mathcal {D}, a \sim \pi_ {\zeta_ {g}} (\cdot | s)} \left[ \exp_ {\operatorname {c l i p}} \left(\frac {1}{\beta} A ^ {\pi_ {\zeta_ {g}}} (s, a)\right) \log \pi_ {\theta} (a \mid s) \right], \tag {18}
+$$
+
+where $\beta$ is a hyper-parameter, $\exp_{clip}(\cdot)$ is the exponential function with a clipped range $(0,C]$ , where $C$ is a positive number for numerical stability. We estimate the advantage using: $A^{\pi_{\zeta_g}}(s,a)\approx Q_\psi (s,a) - \mathbb{E}_{a\sim \pi_{\zeta_g}(\cdot |s)}[Q_\psi (s,a)]$ , where we use the Q-function conditioned on the behaviour policy $\pi_b$ rather than $\pi_{\zeta_g}$ in order to reduce extrapolation error and computational complexity. Further, we employ the approach used in (Mao et al., 2023) to replace the expectation over $a\sim \pi_{\zeta_g}(\cdot |s)$ with the Q-value of the mean action of the Gaussian policy $\pi_{\zeta_g}$ to reduce computation.
+
+Implementation details and the pseudocode can be found in Algorithm 1. The algorithm starts with training a MDN to model the behaviour policy, and then iteratively update the hyper Q-function $Q_{\phi}$ , the value function $Q_{\psi}$ and the target policy $\pi_{\theta}$ . The code has been open sourced1.
+
+# 6 EXPERIMENTAL RESULTS
+
+We aim to answer the following questions: (1) How does LOM compare to SOTA offline RL algorithms, particularly those handling multi-modality? (2) Can performance improvements be attributed to learning on one mode? (3) How does the number of Gaussian components affect LOM's performance?
+
+# 6.1 LOM ACHIEVES SOTA PERFORMANCE IN D4RL BENCHMARK
+
+We evaluate LOM on three MuJoCo locomotion tasks from the D4RL benchmark (Fu et al., 2020): halfcheetah, hopper, and walker2d. Each environment contains five dataset types: (i) medium — 1M samples from a policy trained to approximately one-third of expert performance; (ii) medium-replay — the replay buffer of a policy trained to match the performance of the medium agent (0.2M for halfcheetah, 0.4M for hopper, 0.3M for walker2d); (iii) medium-expert — a 50-50 split of medium and expert data (just under 2M samples); (iv) expert — 1M samples from a fully trained SAC policy (Haarnoja et al., 2018); and (v) full-replay — 1M samples from the final replay buffer of an expert policy. Notably, the medium-replay and full-replay datasets are highly multi-modal, as states may have multiple action labels from different policies.
+
+Table 1 shows the benchmark results of our method against SOTA offline algorithms: OneStep (Brandfonbrener et al., 2021), AWAC (Nair et al., 2021), CQL (Kumar et al., 2020), and TD3BC (Fujimoto & Gu, 2021). We also include four algorithms designed for handling multi-modality: LAPO (Chen et al., 2022), deterministic mixture policy optimisation (DMPO) (Osa et al., 2023),
+
+
+(a) Environment
+
+
+(b) BC
+
+
+(c) MDN $(\mathbf{M} = 4)$
+Figure 2: Comparative study in the FetchReach task with highly multi-modal datasets. (a) The FetchReach robot is tasked with reaching one of four specified goals using an expert dataset. The robot arm receives a reward of 2 for reaching the goal in the first quadrant and 1 for reaching any of the other three goals. The dataset contains actions directed toward all four goals, with conflicting directions. (b) Action distribution learned by behaviour cloning using a unimodal Gaussian policy model. (c) Action distribution learned by MDN using a GMM policy model. (d) Action distribution learned by AWAC, which applies weighted imitation learning over the entire action distribution using a unimodal Gaussian policy. (e) Action distribution learned by LOM.
+
+
+(d) AWAC
+
+
+(e) LOM $(\mathbf{M} = 4)$
+
+weighted conditioned GAN (WCGAN), and weighted conditioned VAE (WCVAE) (Wang et al., 2024b). The experimental results are shown in Table 1, where the baselines' results are mainly sourced from Mao et al. (2023) or reproduced using their official implementations. The results demonstrate that LOM outperforms the baseline algorithms in 12 out of 15 tasks. In tasks with multi-modal datasets, LOM surpasses all the baselines, and achieves a performance improvement ranging from $0.2\%$ to $7.9\%$ over the SOTA results.
+
+# 6.2 LEARNING ON ONE MODE DRIVES IMPROVEMENTS
+
+To explore the source of LOM's improvements, we design three tasks with highly multi-modal datasets: FetchReach, FetchPush, and FetchPickAndPlace. In FetchReach, as shown in Figure 2a, the objective is to control a robotic arm to reach one of four specified positions, symmetrically distributed on the $xy$ -plane. The robot receives a reward of 2 for reaching the position in the first quadrant, 1 for reaching any of the other positions, and 0 otherwise. In FetchPush and FetchPickAndPlace, the robot is tasked with moving a cube to one of four positions on a desk, with the same reward structure. Each dataset contains $4 \times 10^6$ transitions collected by an expert policy. Given a state and four goals in different quadrants, the dataset contains four trajectories corresponding to each goal, making the datasets highly multi-modal.
+
+We compare LOM with behaviour cloning (BC), AWAC, and MDN, introduced in Section 5.1. Specifically, BC and MDN imitate the behaviour policy using a unimodal Gaussian policy and a multi-modal Gaussian policy, respectively. AWAC applies weighted imitation learning to imitate the behaviour policy across all modes (Nair et al., 2021). LOM, however, distinguishes multiple behaviour modes using MDN and focuses on learning from the best mode. Table 2 shows that LOM outperforms the baseline algorithms by an average of $53\%$ .
+
+In Figure 2, we further investigate the behaviour of different policies. Given a state, the multi-modal dataset contains four actions, each targeting distinct goals in separate quadrants. Figure 2b shows that BC learns an averaged action distribution. Figure 2c demonstrates that MDN effectively reconstructs the action distribution, allowing LOM to select the highest-rewarding mode. Figure 2d shows that while AWAC can learn the best mode (in the first quadrant), it tends to generate OOD actions. In contrast, Figure 2e illustrates that LOM imitates actions from the best single mode, filtering out suboptimal actions and focusing on highly-rewarding ones. These experiments demonstrate that learning on one mode effectively improves policy performance by concentrating on the most rewarding actions.
+
+Table 2: Average scores on the tasks with extremely multi-modal datasets.
+
+
BC
MDN
AWAC
WCGAN
WCVAE
LOM
FetchReach
14.3±3.4
17.1±2.3
32.4±0.2
42.3±3.1
40.8±2.1
47.2±3.1
FetchPush
11.8±0.9
18.9±4.7
26.8±1.4
41.2±3.7
41.8±2.4
44.3±2.7
FetchPick
3.6±0.8
8.1±1.3
22.7±2.3
29.2±2.8
30.5±2.1
34.2±3.6
+
+
+(a) $\mathbf{M} = 2$
+
+
+(b) $\mathrm{M} = 4$
+
+
+(c) $\mathrm{M} = {10}$
+Figure 4: Action modes learned by MDN with varying numbers of mixtures. Red dots represent samples from the highest-reward mode. The original actions are clustered around $(1,1)$ , $(1,-1)$ , $(-1,-1)$ , and $(-1,1)$ but do not extend beyond these points. In (d) and (e), the red dots collapse into a single point in the first quadrant due to the small standard deviation of the mode.
+
+
+(d) $\mathrm{M} = {20}$
+
+
+(e) $\mathrm{M} = {50}$
+
+# 6.3 EFFECT OF THE NUMBER OF GAUSSIAN COMPONENTS
+
+We analyse the influence of the number $M$ of Gaussian components in the LOM algorithm. The results, shown in Figure 4, are based on the multi-modal FetchReach environment. The figure illustrates the decomposition of action modes using blue contours, while red dots represent the actions imitated by LOM. When $M$ is too large (Figure 4d and 4e), the standard deviation of the imitated Gaussian mode becomes excessively small, leading to overly narrow the domains of action learning. Conversely, smaller values of $M$ results in modes with a large standard deviation (Figure 4a), causing LOM to capture actions outside the dataset and imitate OOD actions. This highlights the need to investigate LOM's sensitivity to this hyper-parameter.
+
+Figure 3 compares LOM across $M = \{1,5,10,15,20\}$ in the medium-replay and full-replay datasets from the D4RL benchmark. The performance generally improves as the number of mixture components increases, particularly in the medium-replay dataset, where larger $M$ values lead to continuous performance gains. However, in the full-replay datasets, performance increases only up to $M = 10$ . This indicates that while increasing the number of components benefits performance, there
+
+may be diminishing returns beyond a certain threshold. Our experiments suggest that $M$ primarily influences the domain of the imitated actions, and improvements can be achieved with a moderate, though not highly specific, value of $M$ .
+
+
+Figure 3: Normalised scores for varying numbers of Gaussian components in the medium replay and full replay datasets.
+
+
+
+# 7 CONCLUSIONS AND DISCUSSIONS
+
+In this paper, we introduced LOM, a novel offline RL method specifically designed to tackle the challenge of multi-modality in offline RL datasets. Unlike existing methods that aim to model the entire action distribution, LOM focuses on imitating the highest-rewarded action mode. Through extensive experiments, we demonstrated that LOM achieves SOTA performance, and we attributed these improvements to the central idea of learning on one mode, which simplifies the learning process while maintaining robust performance.
+
+We observed that the hyper Q-function satisfies a Bellman-like equation, opening the possibility for learning it through Bellman updates. However, one challenge that emerges is the difficulty in accurately estimating the Bellman target for the hyper Q-function, as it requires computing the expectation over all possible hyper-actions, which may lead to extrapolation errors. Exploring a deterministic hyper-policy is a promising future direction to mitigate this issue, potentially simplifying the estimation process and further improving performance. Furthermore, the hyperparameter $M$ in LOM is intrinsically linked to the multi-modality present in the dataset. This parameter can be estimated using statistical techniques like bump hunting (Friedman & Fisher, 1999) and peak finding (Du et al., 2006), eliminating the need for fine-tuning. However, a key challenge lies in the fact that each state corresponds to a distinct multi-modal action distribution, making it computationally intensive to identify and count the modes for every individual state.
+
+Acknowledgments We acknowledge support from a UKRI AI Turing Acceleration Fellowship (EPSRC EP/V024868/1).
+
+# REFERENCES
+
+Dmitry Akimov, Vladislav Kurenkov, Alexander Nikulin, Denis Tarasov, and Sergey Kolesnikov. Let offline RL flow: Training conservative agents in the latent space of normalizing flows. In 3rd Offline RL Workshop: Offline RL as a Launchpad, 2022.
+Gaon An, Seungyong Moon, Jang-Hyun Kim, and Hyun Oh Song. Uncertainty-based offline reinforcement learning with diversified Q-ensemble. In Advances in Neural Information Processing Systems, 2021.
+Chenjia Bai, Lingxiao Wang, Zhuoran Yang, Zhi-Hong Deng, Animesh Garg, Peng Liu, and Zhaoran Wang. Pessimistic bootstrapping for uncertainty-driven offline reinforcement learning. In International Conference on Learning Representations, 2022.
+Alex Beeson and Giovanni Montana. Balancing policy constraint and ensemble size in uncertainty-based offline reinforcement learning. Machine Learning, 113(1):443-488, Jan 2024. ISSN 1573-0565.
+Christopher M. Bishop. Mixture density networks. Technical report, Aston University, Birmingham, 1994.
+David Brandfonbrener, William F Whitney, Rajesh Ranganath, and Joan Bruna. Offline RL without off-policy evaluation. In Advances in Neural Information Processing Systems, 2021.
+Yuanying Cai, Chuheng Zhang, Li Zhao, Wei Shen, Xuyun Zhang, Lei Song, Jiang Bian, Tao Qin, and Tie-Yan Liu. TD3 with reverse KL regularizer for offline reinforcement learning from mixed datasets. In IEEE International Conference on Data Mining, 2023.
+Xi Chen, Ali Ghadirzadeh, Tianhe Yu, Jianhao Wang, Alex Yuan Gao, Wenzhe Li, Liang Bin, Chelsea Finn, and Chongjie Zhang. LAPO: Latent-variable advantage-weighted policy optimization for offline reinforcement learning. In Advances in Neural Information Processing Systems, 2022.
+Pan Du, Warren A. Kibbe, and Simon M. Lin. Improved peak detection in mass spectrum by incorporating continuous wavelet transform-based pattern matching. Bioinformatics, 22(17): 2059-2065, 07 2006. ISSN 1367-4803.
+Jerome H. Friedman and Nicholas I. Fisher. Bump hunting in high-dimensional data. Statistics and Computing, 9(2):123-143, Apr 1999. ISSN 1573-1375.
+Justin Fu, Aviral Kumar, Ofir Nachum, George Tucker, and Sergey Levine. D4RL: Datasets for deep data-driven reinforcement learning, 2020.
+Scott Fujimoto and Shixiang Gu. A minimalist approach to offline reinforcement learning. In Advances in Neural Information Processing Systems, 2021.
+Scott Fujimoto, David Meger, and Doina Precup. Off-policy deep reinforcement learning without exploration. In International Conference on Machine Learning, 2019.
+Tuomas Haarnoja, Aurick Zhou, Pieter Abbeel, and Sergey Levine. Soft actor-critic: Off-policy maximum entropy deep reinforcement learning with a stochastic actor. In International Conference on Machine Learning, 2018.
+Sham Kakade and John Langford. Approximately optimal approximate reinforcement learning. In International Conference on Machine Learning, 2002.
+Aviral Kumar, Aurick Zhou, George Tucker, and Sergey Levine. Conservative Q-learning for offline reinforcement learning. In Advances in Neural Information Processing Systems, 2020.
+Sergey Levine, Aviral Kumar, George Tucker, and Justin Fu. Offline reinforcement learning: Tutorial, review, and perspectives on open problems, 2020.
+
+Corey Lynch, Mohi Khansari, Ted Xiao, Vikash Kumar, Jonathan Tompson, Sergey Levine, and Pierre Sermanet. Learning latent plans from play. In Conference on Robot Learning, 2020.
+Chengzhong Ma, Deyu Yang, Tianyu Wu, Zeyang Liu, Houxue Yang, Xingyu Chen, Xuguang Lan, and Nanning Zheng. Improving offline reinforcement learning with in-sample advantage regularization for robot manipulation. IEEE Transactions on Neural Networks and Learning Systems, pp. 1-13, 2024.
+Yecheng Jason Ma, Jason Yan, Dinesh Jayaraman, and Osbert Bastani. Offline goal-conditioned reinforcement learning via f-advantage regression. In Advances in Neural Information Processing Systems, 2022.
+Yixiu Mao, Hongchang Zhang, Chen Chen, Yi Xu, and Xiangyang Ji. Supported trust region optimization for offline reinforcement learning. In International Conference on Machine Learning, 2023.
+Geoffrey J McLachlan and Kaye E Basford. Mixture models: Inference and applications to clustering, volume 38. M. Dekker New York, 1988.
+Ashvin Nair, Abhishek Gupta, Murtaza Dalal, and Sergey Levine. AWAC: Accelerating online reinforcement learning with offline datasets, 2021.
+Takayuki Osa, Akinobu Hayashi, Pranav Deo, Naoki Morihira, and Takahide Yoshiike. Offline reinforcement learning with mixture of deterministic policies. Transactions on Machine Learning Research, 2023. ISSN 2835-8856.
+Xue Bin Peng, Aviral Kumar, Grace Zhang, and Sergey Levine. Advantage-weighted regression: Simple and scalable off-policy reinforcement learning, 2019.
+John Schulman, Sergey Levine, Pieter Abbeel, Michael Jordan, and Philipp Moritz. Trust region policy optimization. In International Conference on Machine Learning, 2015.
+Noah Siegel, Jost Tobias Springenberg, Felix Berkenkamp, Abbas Abdelmaleki, Michael Neunert, Thomas Lampe, Roland Hafner, Nicolas Heess, and Martin Riedmiller. Keep doing what worked: Behavior modelling priors for offline reinforcement learning. In International Conference on Learning Representations, 2020.
+Hao Sun, Lei Han, Rui Yang, Xiaoteng Ma, Jian Guo, and Bolei Zhou. Exploit reward shifting in value-based deep-RL: Optimistic curiosity-based exploration and conservative exploitation via linear reward shaping. In Advances in Neural Information Processing Systems, 2022.
+Mianchu Wang, Yue Jin, and Giovanni Montana. Goal-conditioned offline reinforcement learning through state space partitioning. Machine Learning, 113(5):2435-2465, May 2024a. ISSN 1573-0565.
+Mianchu Wang, Rui Yang, Xi Chen, Hao Sun, Meng Fang, and Giovanni Montana. GOPlan: Goal-conditioned offline reinforcement learning by planning with learned models. Transactions on Machine Learning Research, 2024b. ISSN 2835-8856.
+Qing Wang, Jiechao Xiong, Lei Han, peng sun, Han Liu, and Tong Zhang. Exponentially weighted imitation learning for batched historical data. In Advances in Neural Information Processing Systems, 2018.
+Zhendong Wang, Jonathan J Hunt, and Mingyuan Zhou. Diffusion policies as an expressive policy class for offline reinforcement learning. In International Conference on Learning Representations, 2023.
+Ziyu Wang, Alexander Novikov, Konrad Zolna, Josh S Merel, Jost Tobias Springenberg, Scott E Reed, Bobak Shahriari, Noah Siegel, Caglar Gulcehre, Nicolas Heess, and Nando de Freitas. Critic regularized regression. In Advances in Neural Information Processing Systems, 2020.
+Yifan Wu, George Tucker, and Ofir Nachum. Behavior regularized offline reinforcement learning, 2019.
+
+Rui Yang, Yiming Lu, Wenzhe Li, Hao Sun, Meng Fang, Yali Du, Xiu Li, Lei Han, and Chongjie Zhang. Rethinking goal-conditioned supervised learning and its connection to offline RL. In International Conference on Learning Representations, 2022a.
+Rui Yang, Lin Yong, Xiaoteng Ma, Hao Hu, Chongjie Zhang, and Tong Zhang. What is essential for unseen goal generalization of offline goal-conditioned RL? In International Conference on Machine Learning, 2023.
+Shentao Yang, Zhendong Wang, Huangjie Zheng, Yihao Feng, and Mingyuan Zhou. A behavior regularized implicit policy for offline reinforcement learning, 2022b.
+Tianhe Yu, Garrett Thomas, Lantao Yu, Stefano Ermon, James Y Zou, Sergey Levine, Chelsea Finn, and Tengyu Ma. MOPO: Model-based offline policy optimization. In Advances in Neural Information Processing Systems, 2020.
+Wenxuan Zhou, Sujay Bajracharya, and David Held. PLAS: Latent action space for offline reinforcement learning. In Conference on Robot Learning, 2020.
+
+# A MOTIVATING EXAMPLE
+
+To illustrate the challenge of capturing complex multi-modal action distributions, we present a toy example in Fig. 5. In this example, we generate a dataset where each state is associated with multiple valid actions, simulating the multi-modal nature of real-world offline RL datasets. We evaluate four models — Gaussian, Conditional Variational Auto-Encoder (CVAE) (Zhou et al., 2020; Chen et al., 2022), Conditional Generative Adversarial Networks (CGAN) (Yang et al., 2022b; Wang et al., 2024b), and Mixture Density Network (MDN) (Bishop, 1994) — on their ability to model the multi-modal action distribution.
+
+Subfigures 5 (a-e) show the action distributions learned by each model. Specifically, we visualise how well each model captures distinct modes in the action space. The Gaussian model fails to separate modes, while the CVAE, CGAN, and MDN demonstrate stronger mode separation, with the MDN showing minimal mode overlap and the clearest boundaries between modes.
+
+Additionally, we assess each model's ability to capture high-reward actions. Subfigures 5 (f-j) illustrate the models' performance in learning positively-rewarded multi-modal action distributions. Our results reveal that the MDN with ranked components closely adheres to in-distribution actions and achieves superior outcomes in terms of reward, compared to the other models.
+
+
+(a)
+
+
+(b)
+
+
+(c)
+
+
+(d)
+
+
+(e)
+
+
+(f)
+
+
+(g)
+
+
+(h)
+
+
+(i)
+Figure 5: An example of modelling the multi-modal behaviour policy in a one-step MDP. The $x$ -axis represents the state, and the $y$ -axis represents the corresponding multi-modal actions. (a) shows the action distribution from the offline dataset. (b)-(e) illustrate the action distributions learned by a Gaussian model, a conditional VAE, a conditional GAN, and an MDN, respectively. (f) shows the action distribution of the offline dataset with rewards, where actions in the first and third quadrants receive a reward of 1, and others receive 0. (g)-(i) illustrate the action distributions learned by weighted Gaussian, weighted conditional VAE, and weighted conditional GAN models, respectively. (j) shows the action distribution learned by the top 10 of the 20 MDN components, ranked by a hyper Q-function.
+
+
+(j)
+
+# B THEORETICAL RESULTS
+
+# B.1 PROOF OF PROPOSITION 1
+
+Proposition 1 The hyper Q-function can be linked to the standard value function $Q^{\pi}(s,a)$ via:
+
+$$
+Q _ {H} ^ {\zeta} (s, u) = \mathbb {E} _ {a \sim \phi^ {u} (\cdot | s)} \left[ Q ^ {\pi_ {\zeta}} (s, a) \right]. \tag {19}
+$$
+
+Proof:
+
+$$
+\begin{array}{l} Q _ {H} ^ {\zeta} (s, u) = \mathbb {E} _ {s _ {1}, u _ {1}, \dots \sim \zeta} \left[ \sum_ {t = 0} ^ {T} \gamma^ {t} r _ {H} \left(s _ {t}, u _ {t}\right) \mid s _ {0} = s, u _ {0} = u \right] \\ = r _ {H} (s, u) + \sum_ {t = 0} ^ {T - 1} \sum_ {s, u} p \left(s _ {t + 1} = s \mid \zeta\right) \zeta (u \mid s) \gamma^ {t + 1} r _ {H} (s, u) \\ = \sum_ {a} \phi^ {u} (a \mid s) r (s, a) + \sum_ {t = 0} ^ {T - 1} \sum_ {s} p \left(s _ {t + 1} = s \mid \zeta\right) \sum_ {u} \zeta (u \mid s) \gamma^ {t + 1} \sum_ {a} \phi^ {u} (a \mid s) r (s, a) \\ = \sum_ {a} \phi^ {u} (a \mid s) r (s, a) + \sum_ {t = 0} ^ {T - 1} \sum_ {s} p \left(s _ {t + 1} = s \mid \zeta\right) \sum_ {u, a} \zeta (u \mid s) \phi^ {u} (a \mid s) \gamma^ {t + 1} r (s, a) \\ = \sum_ {a} \phi^ {u} (a \mid s) r (s, a) + \sum_ {t = 0} ^ {T - 1} \sum_ {s, a} p (s _ {t + 1} = s \mid \zeta) \pi_ {\zeta} (a \mid s) \gamma^ {t + 1} r (s, a) \\ = \sum_ {a} \phi^ {u} (a \mid s) \left[ r (s, a) + \sum_ {t = 0} ^ {T - 1} \sum_ {s, a} p \left(s _ {t + 1} = s \mid \zeta\right) \pi_ {\zeta} (a \mid s) \gamma^ {t + 1} r (s, a) \right] \\ = \sum_ {a} \phi^ {u} (a \mid s) \left[ r (s, a) + \sum_ {t = 0} ^ {T - 1} \sum_ {s, a} p \left(s _ {t + 1} = s \mid \pi_ {\zeta}\right) \pi_ {\zeta} (a \mid s) \gamma^ {t + 1} r (s, a) \right] \\ = \mathbb {E} _ {a \sim \phi^ {u} (\cdot | s)} \left[ Q ^ {\pi_ {\zeta}} (s, a) \right]. \tag {20} \\ \end{array}
+$$
+
+# B.2 PROOF OF THEOREM 1
+
+Theorem 1. The composite policy induced by the greedy hyper-policy improves upon the behaviour policy:
+
+$$
+V ^ {\pi_ {\mathcal {C} _ {g}}} (s) \geq V ^ {\pi_ {b}} (s), \quad \forall s \in \mathcal {S}.
+$$
+
+Proof. Now, we prove that the improved policy $\pi_{\zeta_g}$ is uniformly as good as or better than the behaviour policy $\pi_b$ .
+
+$$
+\begin{array}{l} V ^ {\pi_ {\zeta_ {g}}} (s _ {t}) = \mathbb {E} _ {a _ {t} \sim \pi_ {\zeta_ {g}}} [ r (s _ {t}, a _ {t}) + \gamma \mathbb {E} _ {s _ {t + 1}, a _ {t + 1} \sim \pi_ {\zeta_ {g}}} [ Q (s _ {t + 1}, a _ {t + 1}) ] ] \\ = \mathbb {E} _ {a _ {t} \sim \pi_ {\zeta_ {g}}} [ r (s _ {t}, a _ {t}) + \gamma \mathbb {E} _ {s _ {t + 1}, a _ {t + 1} \sim \pi_ {\zeta_ {g}}} [ r (s _ {t + 1}, a _ {t + 1}) + \\ \gamma \mathbb {E} _ {s _ {t + 2}, a _ {t + 2} \sim \pi_ {\zeta_ {g}}} [ Q ^ {\pi_ {\zeta_ {g}}} (s _ {t + 2}, a _ {t + 2}) ] ]) ] \\ = \mathbb {E} _ {a _ {t} \sim \pi_ {\zeta g}} [ r (s _ {t}, a _ {t}) + \gamma \mathbb {E} _ {s _ {t + 1}, a _ {t + 1} \sim \pi_ {\zeta g}} [ r (s _ {t + 1}, a _ {t + 1}) + \dots + \\ \gamma \mathbb {E} _ {s _ {t + H - 1}, a _ {t + H - 1} \sim \pi_ {\zeta_ {g}}} [ r (s _ {t + H - 1}, a _ {t + H - 1}) + \gamma \mathbb {E} _ {s _ {t + H}, a _ {t + H} \sim \pi_ {\zeta_ {g}}} [ r (s _ {t + H}, a _ {t + H}) ]) ] \\ \geq \mathbb {E} _ {a _ {t} \sim \pi_ {\zeta_ {g}}} [ r (s _ {t}, a _ {t}) + \gamma \mathbb {E} _ {s _ {t + 1}, a _ {t + 1} \sim \pi_ {\zeta_ {g}}} [ r (s _ {t + 1}, a _ {t + 1}) + \dots + \\ \gamma \mathbb {E} _ {s _ {t + H - 1}, a _ {t + H - 1} \sim \pi_ {\zeta_ {g}}} [ r (s _ {t + H - 1}, a _ {t + H - 1}) + \gamma \mathbb {E} _ {s _ {t + H}, a _ {t + H} \sim \pi_ {\boldsymbol {b}}} [ r (s _ {t + H}, a _ {t + H}) ]) ] \\ = \mathbb {E} _ {a _ {t} \sim \pi_ {\zeta g}} [ r (s _ {t}, a _ {t}) + \gamma \mathbb {E} _ {s _ {t + 1}, a _ {t + 1} \sim \pi_ {\zeta g}} [ r (s _ {t + 1}, a _ {t + 1}) + \dots + \\ \gamma \mathbb {E} _ {s _ {t + H - 1}, a _ {t + H - 1} \sim \pi_ {\zeta g}} \left[ Q ^ {\pi_ {b}} \left(s _ {t + H - 1}, a _ {t + H - 1}\right) \right] ] ] (21) \\ \geq \mathbb {E} _ {a _ {t} \sim \pi_ {\zeta g}} [ r (s _ {t}, a _ {t}) + \gamma \mathbb {E} _ {s _ {t + 1}, a _ {t + 1} \sim \pi_ {\zeta g}} [ r (s _ {t + 1}, a _ {t + 1}) + \dots + \\ \left. \gamma \mathbb {E} _ {s _ {t + H - 1}, a _ {t + H - 1} \sim \pi_ {\boldsymbol {b}}} \left[ Q ^ {\pi_ {\boldsymbol {b}}} \left(s _ {t + H - 1}, a _ {t + H - 1}\right) \right] \right] (22) \\ > \dots \\ \geq \mathbb {E} _ {a _ {t} \sim \pi_ {\zeta g}} \left[ r \left(s _ {t}, a _ {t}\right) + \gamma \mathbb {E} _ {s _ {t + 1}, a _ {t + 1} \sim \tilde {\pi} _ {b}} \left[ Q ^ {\pi_ {b}} \left(s _ {t + 1}, a _ {t + 1}\right) \right] \right] \\ \geq \mathbb {E} _ {a _ {t} \sim \pi_ {b}} [ r (s _ {t}, a _ {t}) + \gamma \mathbb {E} _ {s _ {t + 1}, a _ {t + 1} \sim \tilde {\pi} _ {b}} [ Q ^ {\pi_ {b}} (s _ {t + 1}, a _ {t + 1}) ] ] ] \\ = V ^ {\pi_ {b}} \left(s _ {t}\right) \\ \end{array}
+$$
+
+The derivation from Eq. 21 to Eq. 22 is based on:
+
+$$
+\begin{array}{l} \mathbb {E} _ {s, a \sim \pi_ {\mathcal {C} g}} \left[ Q ^ {\pi_ {b}} (s, a) \right] \\ = \mathbb {E} _ {s, u \sim \zeta_ {g}} \mathbb {E} _ {a \sim \phi^ {u} (\cdot | s)} \left[ Q ^ {\pi_ {b}} (s, a) \right] \\ = \mathbb {E} _ {s} \mathbb {E} _ {u \sim \zeta_ {g}} \left[ Q _ {H} ^ {\zeta_ {b}} (s, u) \right] \tag {23} \\ \geq \mathbb {E} _ {s} \mathbb {E} _ {u \sim \zeta_ {b}} \left[ Q _ {H} ^ {\zeta_ {b}} (s, u) \right] \\ = \mathbb {E} _ {s, u \sim \zeta_ {b}} \mathbb {E} _ {a \sim \phi^ {u} (\cdot | s)} \left[ Q ^ {\pi_ {b}} (s, a) \right] \\ = \mathbb {E} _ {s, a \sim \pi_ {b}} \left[ Q ^ {\pi_ {b}} (s, a) \right] \\ \end{array}
+$$
+
+
+
+# B.3 PROOF OF THEOREM 2
+
+Theorem 2 LOM learns a policy $\pi_L$ , which is uniformly as good as or better than the improved policy $\pi_{\zeta_g}$ and the behaviour policy $\pi_b$ . That is,
+
+$$
+\forall s \in \mathcal {S}, V ^ {\pi_ {L}} (s) \geq V ^ {\pi_ {\zeta_ {g}}} (s) \geq V ^ {\pi_ {b}} (s). \tag {24}
+$$
+
+Proof. The proof is structured in two parts. First, we show that the LOM-learned policy $\pi_L$ is at least as good as the improved policy $\pi_{\zeta_g}$ ; specifically, for all states $s \in S$ , we establish that $V^{\pi_L}(s) \geq V^{\pi_{\zeta_g}}(s)$ . Second, we prove that the improved policy $\pi_{\zeta_g}$ performs no worse than the behaviour policy $\pi_b$ , i.e., $V^{\pi_{\zeta_g}}(s) \geq V^{\pi_b}(s)$ for all $s \in S$ .
+
+As established in Wang et al. (2018), the following lemma provides a sufficient condition for proving that one policy is no worse than another. We restate this result as the following lemma:
+
+Lemma (from Wang et al. (2018)): Suppose two policies $\pi$ and $\tilde{\pi}$ satisfy:
+
+$$
+g \left(\tilde {\pi} (a \mid s)\right) = g \left(\pi (a \mid s)\right) + h (s, A ^ {\pi} (s, a)), \tag {25}
+$$
+
+where $g(\cdot)$ is a monotonically increasing function, and $h(s,\cdot)$ is monotonically increasing for any fixed $s$ . Then we have:
+
+$$
+V ^ {\bar {\pi}} (s) \geq V ^ {\pi} (s), \quad \forall s \in \mathcal {S}. \tag {26}
+$$
+
+This means that $\tilde{\pi}$ is uniformly as good as or better than $\pi$ .
+
+Since the LOM-learned policy imitates the optimal policy $\pi^{*}$ , we have:
+
+$$
+\pi^ {*} (a \mid s) = \frac {1}{Z (s)} \pi_ {\zeta_ {g}} (a \mid s) \exp \left(\frac {1}{\beta} A ^ {\pi_ {\zeta_ {g}}} (s, a)\right), \tag {27}
+$$
+
+which gives:
+
+$$
+\log \pi_ {L} (a \mid s) = \log \frac {1}{Z (s)} + \log \pi_ {\zeta_ {g}} (a \mid s) + \frac {1}{\beta} A ^ {\pi_ {\zeta_ {g}}} (s, a), \tag {28}
+$$
+
+where $\log (\cdot)$ is a monotonically increasing function and $\log \frac{1}{Z(s)}$ is a constant. Therefore, $\pi_L$ is uniformly as good as or better than the improved policy $\pi_{\zeta_g}$ .
+
+# B.4 PROOF OF THEOREM 3
+
+Theorem 3 The LOM algorithm learns a policy $\pi_L$ , whose improvement upon the composite policy induced by the greedy hyper-policy $\pi_{\zeta_g}$ is bounded: for all $s \in S$ :
+
+$$
+V ^ {\pi_ {L}} (s) - V ^ {\pi_ {\zeta_ {g}}} (s) \geq \frac {1}{1 - \gamma} \hat {\eta} (\pi_ {L}) - \frac {A _ {\max }}{1 - \gamma} \sqrt {\frac {1}{2} D _ {K L} \left(d _ {\pi_ {L}} \mid \mid d _ {\pi_ {\zeta_ {g}}}\right)}, \tag {29}
+$$
+
+where $A_{\mathrm{max}} = \max_{s,a}|A^{\pi_{\zeta_g}}(s,a)|$ . The proof is provided in Appendix B.4.
+
+Proof. Following performance difference lemma (Kakade & Langford, 2002), we have
+
+$$
+V ^ {\pi_ {L}} (s) - V ^ {\pi_ {\zeta_ {g}}} (s) = \frac {1}{1 - \gamma} \mathbb {E} _ {s \sim d _ {\pi_ {L}}, a \sim \pi_ {L}} \left[ A ^ {\pi_ {\zeta_ {g}}} (s, a) \right]. \tag {30}
+$$
+
+Our goal is to express the right-hand side in terms of $\hat{\eta} (\pi_L)$ , which uses $d_{\pi_g}$ rather than $d_{\pi_L}$ . To do this, we define the discrepancy between $d_{\pi_L}$ and $d_{\pi_{\zeta g}}$ as:
+
+$$
+\Delta (s) = d _ {\pi_ {L}} (s) - d _ {\pi_ {\zeta_ {g}}} (s). \tag {31}
+$$
+
+We can decompose the expectation over $d_{\pi_L}$ as:
+
+$$
+\mathbb {E} _ {s \sim d _ {\pi_ {L}}} [ f (s) ] = \mathbb {E} _ {s \sim d _ {\pi_ {\zeta_ {g}}}} [ f (s) ] + \mathbb {E} _ {s \sim \Delta} [ f (s) ], \tag {32}
+$$
+
+where $\mathbb{E}_{s\sim \Delta}[f(s)] = \sum_s\Delta (s)f(s)$
+
+Applying this to the expression:
+
+$$
+V ^ {\pi_ {L}} (s) - V ^ {\pi_ {\zeta_ {g}}} (s) = \frac {1}{1 - \gamma} \left(\mathbb {E} _ {s \sim d _ {\pi_ {\zeta_ {g}}}, a \sim \pi_ {L}} \left[ A ^ {\pi_ {\zeta_ {g}}} (s, a) \right] + \mathbb {E} _ {s \sim \Delta , a \sim \pi_ {L}} \left[ A ^ {\pi_ {\zeta_ {g}}} (s, a) \right]\right). \tag {33}
+$$
+
+The first term is exactly $\hat{\eta} (\pi_L)$ scaled by $\frac{1}{1 - \gamma}$ . We need to bound the error term:
+
+$$
+\epsilon = \frac {1}{1 - \gamma} \mathbb {E} _ {s \sim \Delta , a \sim \pi_ {L}} \left[ A ^ {\pi_ {\zeta_ {g}}} (s, a) \right] \tag {34}
+$$
+
+Assuming the advantage function $A^{\pi \zeta_g}(s,a)$ is bounded:
+
+$$
+\left| A ^ {\pi \zeta_ {g}} (s, a) \right| \leq A _ {\max } \tag {35}
+$$
+
+We can then bound $\epsilon$ by
+
+$$
+| \epsilon | \leq \frac {A _ {\operatorname* {m a x}}}{1 - \gamma} \sum_ {s} | \Delta (s) | = \frac {A _ {\operatorname* {m a x}}}{1 - \gamma} \| d _ {\pi_ {L}} - d _ {\pi_ {\zeta_ {g}}} \| _ {1} = \frac {A _ {\operatorname* {m a x}}}{1 - \gamma} D _ {T V} \left(d _ {\pi_ {L}} \| d _ {\pi_ {\zeta_ {g}}}\right) \tag {36}
+$$
+
+By applying Pinsker's inequity, we have
+
+$$
+D _ {T V} \left(d _ {\pi_ {L}} \mid \mid d _ {\pi_ {\zeta_ {g}}} \right. \leq \sqrt {\frac {1}{2} D _ {K L} \left(d _ {\pi_ {L}} \mid \mid d _ {\pi_ {\zeta_ {g}}}\right)} \tag {37}
+$$
+
+Finally, we have
+
+$$
+V ^ {\pi_ {L}} (s) \geq V ^ {\pi_ {\zeta_ {g}}} (s) + \frac {1}{1 - \gamma} \hat {\eta} \left(\pi_ {L}\right) - \frac {A _ {\max }}{1 - \gamma} \sqrt {\frac {1}{2} D _ {K L} \left(d _ {\pi_ {L}} \mid \mid d _ {\pi_ {\zeta_ {g}}}\right)} \tag {38}
+$$
+
+
+
+# C FURTHER EXPERIMENTAL DETAILS
+
+# C.1 BASELINES
+
+In the experiments discussed in Section 6, we compare LOM with other multi-modal modelling approaches, such as WCGAN and WCVAE, in capturing complex action distributions in offline reinforcement learning. These models are evaluated on their ability to reconstruct and learn from the multi-modal behaviour policy in the FetchReach, FetchPush, and FetchPickAndPlace tasks, and across various D4RL benchmarks.
+
+Weighted Conditional GAN (WCGAN): The WCGAN learns a discriminator $D$ and a generator $\pi$ to optimise the following adversarial objectives:
+
+$$
+\max _ {D} \min _ {\pi} \quad \mathbb {E} _ {(s, a) \sim \mathcal {D}} [ w (s, a) \log D (s, a) ] + \mathbb {E} _ {s \sim \mathcal {D}, a ^ {\prime} \sim \pi (\cdot | s)} [ \log (1 - D (s, a ^ {\prime})) ], \tag {39}
+$$
+
+where $w(s, a) = \exp_{clip}\left(\frac{1}{\beta} A^{\pi_b}(s, a)\right)$ . Here, $A^{\pi_b}$ represents the advantage of the behaviour policy $\pi_b$ . The WCGAN aims to generate action distributions that are weighted by this advantage, prioritising actions that yield higher returns.
+
+Weighted Conditional VAE (WCVAE): The WCVAE learns a conditional variational autoencoder with an encoder $E$ and decoder $D$ . The objective is to optimize:
+
+$$
+\max _ {E, D} \mathbb {E} _ {(s, a) \sim \mathcal {D}, z \sim E (s, a)} [ w (s, a) \log D (a \mid z, s) - w (s, a) D _ {K L} (E (z \mid s, a) \| p (z \mid s)) ], \tag {40}
+$$
+
+where $p(z \mid s)$ is the unit Gaussian prior distribution of the latent variable conditioned on $s$ . The weighting function $w(s, a)$ encourages the WCVAE to focus on high-reward actions.
+
+# C.2 HYPERPARAMETERS
+
+The hyperparameters used in LOM were largely the same for all of the experiments reported. In Table 3, we give a list and description of them, as well as their default values. The hyperparameters $M$ used in Table 1 are selected from $\{2,5,10,15,20\}$ .
+
+
Symbol in paper
Description
Default values
M
Number of Gaussian components
Please check Figure 3
β
Advantage weights
5
C
Weight clips
50
ρ
Ployak averaging coefficient
0.995
update_delay
Target update delay
2
πρ
Gaussian mixture model
[state_dim, 512, 512, 2 * ac_dim + M]
πθ
Policy learned by LOM
[state_dim, 512, 512, ac_dim]
Qψ
Q-network
[state_dim + ac_dim, 512, 512, 1]
Qφ
Behaviour hyper Q-function
[state_dim + M, 512, 512, M]
+
+Table 3: Hyperparameters used in the experiments.
\ No newline at end of file
diff --git a/ICLR/2025/Learning on One Mode_ Addressing Multi-modality in Offline Reinforcement Learning/images.zip b/ICLR/2025/Learning on One Mode_ Addressing Multi-modality in Offline Reinforcement Learning/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..1cea8ede5b3f83d47bdf10749bcfede66b5cbfa3
--- /dev/null
+++ b/ICLR/2025/Learning on One Mode_ Addressing Multi-modality in Offline Reinforcement Learning/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:3f0e4f961e2ed6d80f886a4cc4a432240b42e9800918307bc23e68fbb9d87aac
+size 806754
diff --git a/ICLR/2025/Learning on One Mode_ Addressing Multi-modality in Offline Reinforcement Learning/layout.json b/ICLR/2025/Learning on One Mode_ Addressing Multi-modality in Offline Reinforcement Learning/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..5d04d15b1a9f167b84435ce8b9a36f6129a37e30
--- /dev/null
+++ b/ICLR/2025/Learning on One Mode_ Addressing Multi-modality in Offline Reinforcement Learning/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4cc07cd11a17cc2b9814476baf9e16ec6441b123ec86164476d7fdc208b3d25b
+size 716805
diff --git a/ICLR/2025/Learning system dynamics without forgetting/86cec768-a7b1-42c3-8a8b-da2f4ee38efa_content_list.json b/ICLR/2025/Learning system dynamics without forgetting/86cec768-a7b1-42c3-8a8b-da2f4ee38efa_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..46705097cb7b5d018291e6a91492caf0dbb299bb
--- /dev/null
+++ b/ICLR/2025/Learning system dynamics without forgetting/86cec768-a7b1-42c3-8a8b-da2f4ee38efa_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2658cecea481f9c33f37531f841a9ba75f29b1aea68695de54ef52a2920bce03
+size 140814
diff --git a/ICLR/2025/Learning system dynamics without forgetting/86cec768-a7b1-42c3-8a8b-da2f4ee38efa_model.json b/ICLR/2025/Learning system dynamics without forgetting/86cec768-a7b1-42c3-8a8b-da2f4ee38efa_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..1245b6ef7c9c16f74bacfcc90e63271359931ee2
--- /dev/null
+++ b/ICLR/2025/Learning system dynamics without forgetting/86cec768-a7b1-42c3-8a8b-da2f4ee38efa_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:12bb98c2b98713256b35461e16f96a84ad7f06f265dc3a30da3b48c70bdf3eac
+size 175102
diff --git a/ICLR/2025/Learning system dynamics without forgetting/86cec768-a7b1-42c3-8a8b-da2f4ee38efa_origin.pdf b/ICLR/2025/Learning system dynamics without forgetting/86cec768-a7b1-42c3-8a8b-da2f4ee38efa_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..0e23f08eb27723860a6f6af20b2aa9f7c56b76f5
--- /dev/null
+++ b/ICLR/2025/Learning system dynamics without forgetting/86cec768-a7b1-42c3-8a8b-da2f4ee38efa_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:57de2e17370a7a3c18bd3143e06390cf443839c4884953c94702311fde79f77b
+size 7167688
diff --git a/ICLR/2025/Learning system dynamics without forgetting/full.md b/ICLR/2025/Learning system dynamics without forgetting/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..7342b15bbdf39085cb64aa1002074b344f188702
--- /dev/null
+++ b/ICLR/2025/Learning system dynamics without forgetting/full.md
@@ -0,0 +1,595 @@
+# LEARNING SYSTEM DYNAMICS WITHOUT FORGETTING
+
+# Xikun Zhang
+
+Generative AI Lab
+
+College of Computing and Data Science
+
+Nanyang Technological University
+
+Singapore 639798
+
+xikun.zhang@ntu.edu.sg
+
+# Dongjin Song & Yushan Jiang
+
+Department of Computer Science and Engineering
+
+University of Connecticut
+
+Storrs, CT
+
+USA
+
+{dongjin.song, yushan.jiang}@uconn.edu
+
+# Yixin Chen
+
+Washington University in St. Louis
+
+St. Louis, MO
+
+USA
+
+chen@cse.wustl.edu
+
+# Dacheng Tao
+
+Generative AI Lab
+
+College of Computing and Data Science
+
+Nanyang Technological University
+
+Singapore 639798
+
+dacheng.tao@gmail.com
+
+# ABSTRACT
+
+Observation-based trajectory prediction for systems with unknown dynamics is essential in fields such as physics and biology. Most existing approaches are limited to learning within a single system with fixed dynamics patterns. However, many real-world applications require learning across systems with evolving dynamics patterns, a challenge that has been largely overlooked. To address this, we systematically investigate the problem of Continual Dynamics Learning (CDL), examining task configurations and evaluating the applicability of existing techniques, while identifying key challenges. In response, we propose the Mode-switching Graph ODE (MS-GODE) model, which integrates the strengths LG-ODE and sub-network learning with a mode-switching module, enabling efficient learning over varying dynamics. Moreover, we construct a novel benchmark of biological dynamic systems for CDL, Bio-CDL, featuring diverse systems with disparate dynamics and significantly enriching the research field of machine learning for dynamic systems.
+
+Our code available at https://github.com/QueuQ/MS-GODE.
+
+# 1 INTRODUCTION
+
+Scientific research often involves systems composed of interacting objects, such as multi-body systems in physics and cellular systems in biology, with their evolution governed by underlying dynamic rules. However, due to potentially unknown or incomplete dynamic rules or incomplete observations, deriving explicit equations to simulate system evolution can be extremely challenging. As a result, data-driven approaches based on machine learning have emerged as a promising solution for predicting the future trajectories of system states purely from ob-
+
+
+
+Exportin: The cargo to be translocated across the membrane.
+
+RAN: A type of protein that facilitates the translocation of cargo.
+
+RAN*: RAN protein activated with the assistance of RCC1.
+
+RCC1: A type of protein activates RAN through phosphorylation.
+
+Cytoplasm: The substance in a cell between the cell membrane and the nucleus.
+
+Nuclear Membrane: The layer that encloses the nucleus in a cell
+
+Nucleus: The structure within a cell containing the genetic information
+
+Figure 1: Illustration of the key components of one biological cellular system studied in our work: the RAN-regulated nucleocytoplasmic transport (Moore, 2013). Briefly speaking, this model depicts the translocation of cargo proteins (Exportin) via nuclear pores with the assistance of RAN proteins. RAN is first activated $(RAN^{*})$ and then binds to cargo forming a complex. Next, the complex is translocated across the nuclear membrane into the cytoplasm with the assistance of RAN. Finally, RAN and Exportin are dissociated.
+
+servational data. For instance, the Interaction Network (IN) model (Battaglia et al., 2016) explicitly
+
+learns interactions between pairs of objects and has demonstrated superior performance in simulated physics systems, showcasing the potential of machine learning in studying physical system dynamics. IN has inspired many subsequent works (Kipf et al., 2018; Sanchez-Gonzalez et al., 2019; Huang et al., 2022; Liu et al., 2024). Later, to enable the modeling of incomplete and temporarily irregular system observations, ODE-based models (Huang et al., 2020; 2021) were proposed to learn the continuous dynamics of the systems.
+
+Despite the success of these methods, existing approaches are often limited to learning within a single system with a fixed type of dynamics. However, in many real-world scenarios, system dynamics are subject to change over time. For example, in cellular systems (Figure 1), the dynamics of a set of variables are subject to change when the kinetic factors are altered. Besides, as a widely adopted task in the field, predicting the trajectories of n-body physical systems (Huang et al., 2020; Battaglia et al., 2016) may also require a model to learn over systems governed by different dynamics factors including interaction types (e.g., elastic force or electrostatic force) and interaction strengths (e.g., different amounts of charges on charged objects), as illustrated in Figure 7. In this work, we term these learning scenarios as continual dynamics learning (CDL), and for the first time formally formulate the setting of CDL. In CDL, continually learning from systems with varying dynamics may overwrite a model's knowledge encoded in the model weights and trigger the catastrophic forgetting problem. In other words, the model may only accurately predict the most recently observed system dynamics while failing on earlier systems. This phenomenon is empirically verified and reported in Section 4.6. Moreover, many real-world systems exhibit repeated dynamics, and mitigating the forgetting is actually crucial in a broad range of scenarios. For example, dynamics of many physics systems are controlled by environmental factors, e.g. temperatures (Huang et al., 2023). The values of these factors like temperatures typically oscillate within a certain range, therefore the dynamics of the systems will also repeat. This is also true in biological systems. Moreover, biological cellular systems also go through different phases of cell cycle. Catastrophic forgetting phenomenon has also been observed in other fields like computer vision (Van de Ven & Tolias, 2019; Wang et al., 2024) and graph learning (Zhang et al., 2024b), and different approaches have been proposed to facilitate the models in the continual learning setting. However, as demonstrated in our experiments (Section 4.3), most existing continual techniques, which are based on regularization or memory-replay (Yoon et al., 2017; Kirkpatrick et al., 2017; Lopez-Paz & Ranzato, 2017), are designed to accommodate the patterns of different tasks1 within one set of model weights and fail to effectively alleviate the forgetting issue in the context of dynamics learning, especially when the consecutive systems contain different number of objects and exhibit significantly different dynamics patterns.
+
+Targeting the challenge, we turn to the parameter-isolation based continual learning techniques, and propose a novel mode-switching graph ODE (MS-GODE) model, which can continually learn over varying system dynamics and automatically switch to the optimal mode during the test stage. MS-GODE consists of three major components: a prediction network serving as the backbone, a sub-network learning module for encoding the observed dynamics into masks, and a mode-switching module for switching the sub-network mode based on the observation. To support irregular and incomplete observational data in the practical scenario studied in our work, our backbone network is built based on LG-ODE model (Huang et al., 2020), which has a Variational AutoEncoder (VAE) (Kingma & Welling, 2013) structure facilitated by ODE-based prediction (Rubanova et al., 2019). The basic workflow of MS-GODE is as follow: Given the observational data, an encoder network first encodes the data into latent states, upon which an ODE-based generator predicts the future system trajectories within the latent space. Finally, a decoder network maps the predicted latent states back into the data space. Upon this framework, we adopt the sub-network learning strategy (Wortsman et al., 2020; Ramanujan et al., 2020; Zhou et al., 2019), which fixes the model weights after initialization and optimize a unique binary mask over the parameters for each system during training. In this way, unlike standard training strategy that encodes data patterns solely in one set of model weights, MS-GODE encodes different types of dynamics in different sub-networks by the collaboration between the binary masks and the fixed-weight backbone network. In the test stage, the model will be switched to the optimal mode by the switching module via selecting the most suitable mask that can most accurately reconstruct the given observation. Moreover, targeting that the existing entropy-based mask selection technique is only applicable to classification tasks, we further develop the novel observation reconstruction based mask selection strategy in the mode-switching
+
+module. In this way, despite the significant difference between consecutive systems, catastrophic forgetting is avoided.
+
+Besides innovatively formulating the CDL setting and the technical contribution of an effective model in CDL scenario, we have also created a novel dynamic system benchmark, Bio-CDL consisting of biological cellular systems based on the VCell platform (Schaff et al., 1997; Cowan et al., 2012; Blinov et al., 2017). Compared to the widely adopted simulated physics systems, cellular systems contain heterogeneous objects and interactions, offering richer and more challenging patterns of system dynamics. Therefore, Bio-CDL will significantly enhance the research of machine learning-based system dynamics prediction. In experiments, we thoroughly investigate the influence of the system sequence configuration on model performance in CDL with both the widely adopted physics systems and our newly constructed BioCDL, which demonstrates the advantage of MS-GODE over existing state-of-the-art techniques.
+
+# 2 RELATED WORKS
+
+# 2.1 LEARNING BASED DYNAMIC SYSTEM PREDICTION
+
+In recent years, graph neural networks (GNNs) have been proven to be promising in modeling and predicting the complex evolution of systems consisting of interacting objects (Battaglia et al., 2016; Kipf et al., 2018; Sanchez-Gonzalez et al., 2019; Huang et al., 2022; Liu et al., 2024; Luo et al., 2024b; Zhang et al., 2019; Luo et al., 2024a; Wu et al., 2021; Luo et al., 2025; Jiang et al., 2024; Guo et al., 2024; Zhang et al., 2020b; Shen et al., 2024; Yin et al., 2024; Chen et al., 2025). This was firstly demonstrated by (Battaglia et al., 2016) with Interaction Network (IN), which iteratively infers the effects of the pair-wise interactions within a system and predicts the changes of the system states. Following IN, (Kipf et al., 2018) proposed neural relational inference (NRI) to predict systems consisting of objects with unknown relationships. (Mrowca et al., 2018) proposed the Hierarchical Relation Network (HRN) that extends the predictions to systems consisting of deformable objects. (Sanchez-Gonzalez et al., 2019)
+
+
+Figure 2: A molecule system may enter different phases and exhibit different dynamics as environmental factors (e.g. temperature) change. Molecules in solid state can only vibrate at fixed locations because of the strong interaction between them. Upon entering the liquid state, the interaction strength decreases and molecules can move around. In gas state, molecules move more freely with little molecule-wise interaction.
+
+proposed the Hamiltonian ODE graph network (HOGN), which injects Hamiltonian mechanics into the model as a physically informed inductive bias. Later, to better consider the intrinsic symmetry of the target systems, GNNs with different invariance and equivariance are proposed (Satorras et al., 2021; Huang et al., 2022; Han et al., 2022; Brandstetter et al., 2021; Wu et al., 2023; Liu et al., 2024). To better capture the complex system interactions, High-order graph ODE (HOPE) (Luo et al., 2023) innovatively incorporates information from high-order spatial neighborhood and high-order derivatives into dynamical system modeling. Considering that the observation of real-world systems may be incomplete and irregular samples, (Huang et al., 2020) proposed LG-ODE, which is capable of generating continuous system dynamics based on the latent ordinary differential equations. Later, Coupled Graph ODE (CG-ODE) (Huang et al., 2021) was proposed to apply ODE-based modeling to both node features and interactions. Similar ideas are also adopted in other time series research (Rubanova et al., 2019). By separating the commonalities intrinsic to the systems and the environmental factors causing the dynamics shift, Generalized Graph Ordinary Differential Equations (GG-ODE) (Huang et al., 2023) improves the generalization across systems in different environments. Similarly, Prototypical Graph ODE (PGODE) (Luo et al.) disentangles object states and system states to independently model their influence and improve the generalization capability. Disentangled Intervention-based Dynamic graph Attention networks (DIDA) (Zhang et al., 2022c) disentangles the invariant and variant patterns in dynamic graphs, and leverages the invariant patterns to ensure a stable prediction performance under spatio-temporal distribution shift. Context-attended Graph ODE (CARE) (Luo et al., 2024c) models the continuously varying environmental factors with a context variable, which is leveraged to better predict the system evolution with temporal environmental variation. Online Relational Inference (ORI) (Kang et al., 2024) models the relationship as trainable parameters, which is accompanied by AdaRelation for the online setting. Despite the substantial contributions these methods have made to dynamic system prediction, they have been limited to learning a single system with fixed dynamics. As one of the two major components of our MS-GODE,
+
+the backbone model for dynamics system prediction is mainly built upon the LG-ODE framework (Huang et al., 2020). Different from the other approaches that are typically limited to data with regular intervals or complete observation at each time stamp, LG-ODE supports irregular and incomplete observations, which is essential to the applications studied in our work.
+
+# 2.2 CONTINUAL LEARNING & MASKED NETWORKS
+
+Existing continual learning methods can be categorized into three types (Parisi et al., 2019; Van de Ven & Tolias, 2019; De Lange et al., 2021; Zhang et al., 2022a; Konishi et al., 2023; Zhang et al., 2024a; 2023b; 2022b; Fionda et al., 2023). Regularization-based methods slow down the adaption of important model parameters via regularization terms, so that the forgetting problem is alleviated (Wu et al., 2024; Goswami et al., 2023). For example, Elastic Weight Consolidation (EWC) (Kirkpatrick et al., 2017) and Memory Aware Synapses (MAS) (Aljundi et al., 2018) estimate the importance of the model parameters to the learned tasks, and add penalty terms to slow down the update rate of the parameters that are important to the previously learned tasks. Second, experience replay-based methods replay the representative data stored from previous tasks to the model when learning new tasks to prevent forgetting (Liang & Li, 2023; Rolnick et al., 2019; Rebuffi et al., 2017; Prabhu et al., 2020). For example, Gradient Episodic Memory (GEM) (Lopez-Paz & Ranzato, 2017) leverages the gradients computed based on the buffered data to modify the gradients for learning the current task and avoid the negative interference between learning different tasks. Finally, parameter isolation-based methods gradually introduce new parameters to the model for new tasks to prevent the parameters that are important to previous tasks (Qiao et al., 2023; Yoon et al., 2017). For example, Progressive Neural Network (PNN) (Rusu et al., 2016) allocates new network branches for new tasks, such that the learning on new tasks does not modify the parameters encoding knowledge of the old tasks. Our proposed MS-GODE also belongs to the parameter isolation-based methods, and is related to subnetwork-based ones (Wortsman et al., 2020; Kang et al., 2022; Zhou et al., 2019) and the edge-popup algorithm (Ramanujan et al., 2020). SupSup studies continual learning for classification tasks with an output entropy-based mask selection, which is not applicable to our task. Edge-popup algorithm provides a simple yet efficient strategy to select a sub-network, and is adopted by us to optimize the binary masks over the model parameters.
+
+# 3 LEARNING SYSTEM DYNAMICS WITHOUT FORGETTING
+
+# 3.1 PRELIMINARIES
+
+In CDL, a model is required to sequentially learn on multiple systems. A system is composed of multiple interacting objects, and is naturally represented as a graph $\mathcal{G} = \{\mathbb{V},\mathbb{E}\}$ . $\{\mathbb{V}$ is the node set denoting the objects of the system, and $\mathbb{E}$ is the edge set containing the information of the relation and interaction between the objects. Based on $\mathbb{E}$ , the spatial neighbors of a node $v$ is defined as $\mathcal{N}_s(v) = \{u|e_{u,v}\in \mathbb{E}\}$ . Each object node $v$ is accompanied by observational data containing the observed states at certain time steps $\mathbb{X}_v = \{\mathbf{x}_v^t |t\in \mathbb{T}_v\}$ , i.e. the trajectory of the system evolution. With a system structured as a graph, its trajectory is naturally a spatial-temporal graph, in which each node is an observed state $\mathbf{x}_v^t$ . In the following, we will refer to $\mathbf{x}_v^t$ as a 'state'. In a multi-body system, the trajectory records the 3D locations of the particles over time. While in other systems, e.g. cellular systems, a state could be the amount of a certain substance instead of locations, and a trajectory records the states at different time stamps. The set $\mathbb{T}_v$ contains the time steps (real numbers) when the states of $v$ are observed and can vary across different objects. For the prediction task, the observations lie within a certain period, i.e. $\bigcup_{v\in \mathbb{V}}\mathbb{T}_v\in [t_0,t_1]$ , and the task is to predict the system states at future time steps beyond $t_1$ . We denote the future time steps to predict for an object $v$ as $\mathbb{T}_v^{pred}$ . In CDL, different systems in a sequence may exhibit different dynamics and contain different objects (i.e. $\mathbb{V}$ ).
+
+# 3.2 FRAMEWORK OVERVIEW
+
+In this subsection, we provide a high-level introduction to the workflow of MS-GODE (Figure 3), while the details of each component are provided in the following subsections.
+
+Overall, MS-GODE consists of three core components: 1) The backbone network; 2) The subnetwork learning module; 3) The mode switching module. The backbone network consists of: 1) an encoder network $\mathrm{Enc}(\cdot;\theta_E)$ parameterized by the parameters $\theta_E$ for encoding the trajectories into the latent space; 2) An ODE-based generator $\mathrm{Gen}(\cdot;\theta_G)$ parameterized by $\theta_G$ for predicting the future trajectories within the latent space; 3) A decoder network $\mathrm{Dec}(\cdot;\theta_D)$ parameterized by $\theta_D$ for transforming the predicted latent states back into the data space. Within a standard learning
+
+
+
+
+Figure 3: The upper part illustrates the workflow of MS-GODE during mask selection and inference, which are denoted by dashed and solid lines. During mask selection, the observation is split into two parts, and the first part is fed into the model for selecting the mask that can best predict the second part. During inference, the entire observation is fed into the model for prediction of future states. The lower part demonstrates the structure of the masked encoder, masked generator, and masked decoder. Different components fetch their corresponding mask from the mask pool and apply the mask onto the parameters.
+
+scheme, the model will be trained by updating the parameters $\{\theta_E,\theta_G,\theta_D\}$ . However, as introduced above, when continually training the model on multiple systems with different dynamics, this learning scheme will bias the model towards the most recently observed system, causing the catastrophic forgetting problem. In this work, inspired by the recent advances in sub-network learning (Ramanujan et al., 2020; Wortsman et al., 2020), we propose to avoid direct optimization of the parameters $\{\theta_E,\theta_G,\theta_D\}$ . Instead, we train the model by optimizing the connection topology of the backbone model and encode the dynamics of each system into a sub-network. This is equivalent to encoding each system-specific dynamics pattern into a binary mask overlaying the shared parameters with fixed values. In this way, the interference between learning on different systems with different dynamics, i.e. the forgetting problem, can be avoided. Moreover, this approach is also memory efficient since the space for storing the binary masks is negligible. With the system-specific masks, the three model components are formulated as:
+
+$$
+\operatorname {E n c} \left(\because ; \theta_ {E} \odot \mathbf {M} _ {E} ^ {s}\right); \quad \operatorname {G e n} \left(\because ; \theta_ {G} \odot \mathbf {M} _ {G} ^ {s}\right); \quad \operatorname {D e c} \left(\because ; \theta_ {D} \odot \mathbf {M} _ {D} ^ {s}\right), \tag {1}
+$$
+
+where the superscript $s$ is the system index. The details of the binary mask optimization during training and mask selection during testing are provided in Section 3.5. In the following subsections, all parameters are subsets of $\theta_{E}$ , $\theta_{G}$ , or $\theta_{D}$ and are controlled by the corresponding masks. For example, $\mathbf{W}_{msg}$ in Section 3.3 is part of the encoder parameters $\theta_{E}$ and is under the control of $\mathbf{M}_E^s$ .
+
+# 3.3 MASKED ENCODER NETWORK
+
+As the first component of the model, the masked encoder network serves to encode the dynamics pattern in the observational data into the latent space. As introduced in Section 3.1, the trajectory of a system is a spatial-temporal graph. Therefore, the encoder is constructed as an attention-based spatial-temporal graph neural network framework (ST-GNN) (Huang et al., 2020; Hu et al., 2022; Huang et al., 2021; Zhang et al., 2020a). Originally, the graph attention network (GAT) (Veličković et al., 2017) is designed to aggregate information over the spatially neighboring nodes. On spatial-temporal graphs, the information aggregation is extended to both spatial and temporal neighboring nodes. Such a spatial-temporal neighborhood of a state $\mathbf{x}_v^t$ is defined as the states of the spatially connected nodes within a specified temporal window $\delta_{window}$ ,
+
+$$
+\mathcal {N} _ {s t} \left(\mathbf {x} _ {v} ^ {t}\right) := \left\{\mathbf {x} _ {w} ^ {q} \mid e _ {u, v} \in \mathbb {E} \quad a n d \quad | q - t | < \delta_ {\text {w i n d o w}} \right\}. \tag {2}
+$$
+
+Then, iterative message passing is conducted over the spatial-temporal edges to update the representation of each state. The update of the hidden representation of a state $\mathbf{x}_v^t$ at the $l$ -the layer of the ST-GNN is formulated as,
+
+$$
+\mathbf {h} _ {v, t} ^ {l} = \mathbf {h} _ {v, t} ^ {l - 1} + \sigma \left(\sum_ {x _ {u} ^ {q} \in \mathcal {N} _ {s t} \left(\mathbf {x} _ {v} ^ {t}\right)} \mathrm {a} \left(\mathbf {h} _ {v, t} ^ {l - 1}, \mathbf {h} _ {u, q} ^ {l - 1}, q - t\right) \cdot \mathbf {W} _ {m s g} \cdot \mathrm {m s g} \left(\mathbf {h} _ {u, t} ^ {l - 1}, q - t\right)\right), \tag {3}
+$$
+
+where $\mathrm{a}(\cdot, \cdot)$ calculates the attention score between a pair of states, and $\mathrm{msg}(\cdot, \cdot)$ is the message function commonly adopted in GNNs (Gilmer et al., 2017). However, different from the message function in typical GNNs, the temporal relationship between the states is a crucial part to understand the system dynamics. Therefore, we follow the strategy in LG-ODE (Huang et al., 2020) to incorporate the temporal distance between the states in the message function and attention function,
+
+$$
+\operatorname {m s g} \left(\mathbf {h} _ {u, t} ^ {l - 1}, q - t)\right) := \sigma \left(\mathbf {W} _ {t m p} \cdot \operatorname {c o n c a t} \left(\mathbf {h} _ {u, t} ^ {l - 1}, q - t\right)\right) + \operatorname {T E} (q - t), \tag {4}
+$$
+
+$$
+\mathrm {a} \left(\mathbf {h} _ {v, t} ^ {l - 1}, \mathbf {h} _ {u, q} ^ {l - 1}, q - t\right) := \frac {\exp \left(\operatorname {m s g} \left(\mathbf {h} _ {u , q} ^ {l - 1} , q - t\right)\right) ^ {T} \cdot \mathbf {h} _ {v , t} ^ {l - 1}\left. \right)}{\sum_ {x _ {w} ^ {p} \in \mathcal {N} _ {s t} \left(\mathbf {x} _ {v} ^ {t}\right)} \exp \left(\operatorname {m s g} \left(\mathbf {h} _ {w , p} ^ {l - 1} , p - t\right)\right) ^ {T} \cdot \mathbf {h} _ {v , t} ^ {l - 1})}, \tag {5}
+$$
+
+where $\mathrm{TE}(\cdot)$ is a temporal position encoding developed based on the position encoding in Transformer (Vaswani et al., 2017) for incorporating the temporal information into the representation. Finally, for subsequent state prediction, the state representations are averaged over the temporal dimension,
+
+$$
+\mathbf {h} _ {\text {f i n a l}} ^ {v} = \frac {1}{| \mathbb {T} _ {v} |} \sum_ {t \in \mathbb {T} _ {v}} \sigma \left(\bar {\mathbf {h}} _ {v} ^ {T} \cdot \operatorname {m s g} \left(\mathbf {h} _ {v, t} ^ {L}\right)\right) \cdot \operatorname {m s g} \left(\mathbf {h} _ {v, t} ^ {L}, t - t _ {0}\right), \tag {6}
+$$
+
+where $t_0$ denotes the starting time of all states in the observational data (Section 3.1), and the average term $\overline{\mathbf{h}}_v$ of each node $v$ is a weighted summation over the representations at all time steps,
+
+$$
+\bar {\mathbf {h}} _ {v} = \sigma \left(\frac {1}{| \mathbb {T} _ {v} |} \sum_ {t \in \mathbb {T} _ {v}} \operatorname {m s g} \left(\mathbf {h} _ {v, t} ^ {L}, t - t _ {0}\right) \cdot \mathbf {W} _ {a v g}\right). \tag {7}
+$$
+
+# 3.4 MASKED ODE-BASED GENERATOR
+
+ODE-based generator (Huang et al., 2020; Chen et al., 2018; Rubanova et al., 2019) ensures that the model can handle observations with irregular temporal intervals and incomplete states, as well as predict future states at any time denoted by real numbers. Specifically, the trajectory prediction is formulated as solving an ODE initial value problem (IVP), where the initial values of the objects $\{z_v^{t_1}|v\in \mathbb{V}\}$ are generated from the final representation of the states $(\{\mathbf{h}_{final}^v |v\in \mathbb{V}\}$ , Section 3.3). Mathematically, the procedure of predicting the future trajectory of a system $s$ is formulated as,
+
+$$
+z _ {v} ^ {t _ {1}} \sim \mathrm {p} \left(z _ {v} ^ {t _ {1}}\right), v \in \mathbb {V} \tag {8}
+$$
+
+$$
+\left\{z _ {v} ^ {\tau} \mid v \in \mathbb {V}, \tau \in \mathbb {T} _ {v} ^ {p r e d} \right\} = \operatorname {G e n} \left(\left\{z _ {v} ^ {t _ {1}} \mid v \in \mathbb {V} \right\}, \left\{\mathbb {T} _ {v} ^ {p r e d} \mid v \in \mathbb {V} \right\}; \theta_ {G} \odot \mathbf {M} _ {G} ^ {s}\right)), \tag {9}
+$$
+
+To estimate the posterior distribution $q(\{z_v^{t_1} | v \in \mathbb{V}\} | \{\mathbb{X}_v | v \in \mathbb{V}\})$ based on the observation (i.e. $\{\mathbb{X}_v | v \in \mathbb{V}\}$ ), the distribution is assumed to be Gaussian. Then the mean $\mu_v$ and standard deviation $\sigma_v$ are generated from $\{\mathbf{h}_{final}^v | v \in \mathbb{V}\}$ with a multi-layer perceptron (MLP),
+
+$$
+q \left(z _ {v} ^ {t _ {1}} \mid \left\{\mathbb {X} _ {v} \mid v \in \mathbb {V} \right\}\right) = \mathcal {N} \left(\mu_ {v}, \sigma_ {v}\right) = \mathcal {N} \left(\operatorname {m l p} \left(\mathbf {h} _ {\text {f i n a l}} ^ {v}; \theta_ {G} \odot \mathbf {M} _ {G} ^ {s}\right)\right), v \in \mathbb {V}. \tag {10}
+$$
+
+As noted in Section 3.2, the parameters of $\mathrm{mlp}(\cdot)$ and $\mathrm{F}_{int}(\cdot)$ are part of $\theta_{G}$ and controlled by $\mathbf{M}_G^s$ .
+
+Based on the approximate posterior distribution $q(\{z_v^{t_1} | v \in \mathbb{V}\} | \{\mathbb{X}_v | v \in \mathbb{V}\})$ , we sample an initial state for each object, upon which the ODE solver will be applied for generating the predicted states in the latent space. The dynamics of each object in the system are governed by its interaction with all the other objects. Therefore, the core part of the ODE-based generator is a trainable interaction network that encodes the dynamics in the form of the derivative of each $\mathbf{z}_v$
+
+$$
+\left. \frac {\mathrm {d} \mathbf {z} _ {v}}{\mathrm {d} t} \right| _ {t = t ^ {\prime}} = \operatorname {F} _ {i n t} \left(\left\{\mathbf {z} _ {u} ^ {t ^ {\prime}} \mid u \in \mathcal {N} _ {s} (v) \right\}; \theta_ {G} \odot \mathbf {M} _ {G}\right), \tag {11}
+$$
+
+where the function $\mathrm{F}_{int}(\cdot)$ parameterized by $\theta_I$ predicts the dynamics (derivative) of each object $v$ based on all the other objects interacting with $v$ (i.e. $\mathcal{N}_s(v)$ defined in Section 3.1), and $t'$ denotes any possible future time. Note that $\mathcal{N}_s(v)$ only contains the spatial neighbors and is different from
+
+$\mathcal{N}_{st}(\cdot)$ , because the object-wise interaction at a certain time $t'$ is not dependent on system states at other times. For example, in a charged particle system governed by electrostatic force, the force between a pair of particles at $t'$ is solely determined by the relative positions (i.e. the states) of the particles (Figure 7) at $t'$ . In our work, we adopt the Neural Relational Inference (NRI) (Kipf et al., 2018) as the function $\mathrm{F}_{int}(\cdot)$ . Based on $\mathrm{F}_{int}(\cdot)$ , the future state of the system at an arbitrary future time $t_2$ can be obtained via an integration
+
+$$
+\mathbf {z} _ {v} ^ {t _ {2}} = \mathbf {z} _ {v} ^ {t _ {1}} + \int_ {t _ {1}} ^ {t _ {2}} \frac {\mathrm {d} \mathbf {z} _ {v}}{\mathrm {d} t} \mathrm {d} t = \mathbf {z} _ {v} ^ {t _ {1}} + \int_ {t _ {1}} ^ {t _ {2}} \operatorname {F} _ {i n t} \left(\left\{\mathbf {z} _ {u} ^ {t} \mid u \in \mathcal {N} _ {s} (v) \right\}; \theta_ {G} \odot \mathbf {M} _ {G}\right) \mathrm {d} t, \tag {12}
+$$
+
+which can be solved numerically by mature ODE solvers, e.g. Runge-Kutta method. After obtaining the latent representations of the states at the future time steps ( $\{\mathbf{z}_v^t | t \in \mathbb{T}_{future}, v \in \mathbb{V}\}$ ), the predictions are generated via a masked decoder network that projects the latent representations back into the data space
+
+$$
+\mathbf {y} _ {v} ^ {t} = \operatorname {D e c} \left(\mathbf {z} _ {v} ^ {t}; \theta_ {D} \odot \mathbf {M} _ {D}\right), t \in \mathbb {T} _ {\text {f u t u r e}}, v \in \mathbb {V}. \tag {13}
+$$
+
+In our work, $\mathrm{Dec}(\cdot ;\theta_D)$ is instantiated as a multi-layer perceptron (MLP).
+
+# 3.5 SUB-NETWORK LEARNING
+
+MS-GODE is trained by maximizing the Evidence Lower Bound (ELBO). Denoting the concatenation of all the initial latent states $(\{\mathbf{z}_v^{t_1} | v \in \mathbb{V}\})$ as $\mathbf{Z}_{\mathbb{V}}^{t_1}$ , the ELBO is formulated as
+
+$$
+\begin{array}{l} \operatorname {E L B O} \left(\mathbf {M} ^ {s}\right) = \mathbb {E} _ {\mathbf {Z} _ {\mathbb {V}} ^ {t _ {1}} \sim q \left(z _ {v} ^ {t _ {1}} \mid \{\mathbb {X} _ {v} | v \in \mathbb {V} \}\right)} \left[ \log \left(p \left(\left\{\mathbf {x} _ {v} ^ {t} \mid t \in \mathbb {T} _ {\text {f u t u r e}}, v \in \mathbb {V} \right\}\right)\right) \right] (14) \\ - \mathbf {K L} [ q (\mathbf {Z} _ {\mathbb {V}} ^ {t _ {1}} | \{\mathbb {X} _ {v} | v \in \mathbb {V} \}) ] | | p (\mathbf {Z} _ {\mathbb {V}} ^ {t _ {1}}) ]. (15) \\ \end{array}
+$$
+
+where $p(\mathbf{Z}_{\mathbb{V}}^{t_1})$ denotes the prior distribution of $\mathbf{Z}_{\mathbb{V}}^{t_1}$ , which is typically chosen as standard Gaussian. $\mathbf{M}^s$ denotes the union of all masks over different modules of the framework (i.e. $\mathbf{M}^s = \{\mathbf{M}_E^s, \mathbf{M}_I^s, \mathbf{M}_P^s\}$ ). In our model, the parameters $(\theta_E, \theta_I, \text{and } \theta_P)$ will be fixed, and the ELBO will be maximized by optimizing the binary masks $\mathbf{M}^s$ overlaying the parameters via the Edge-popup algorithm (Ramanujan et al., 2020). After learning each system, the obtained mask is added into a mask pool $\mathbb{M}$ to be used in testing.
+
+# 3.6 MODE-SWITCHING
+
+During testing, MS-GODE will be evaluated on a sequence of systems exhibiting diverse dynamics patterns, and it will automatically switch to the optimal mode that ensures the highest accuracy. This is achieved by applying the most suitable mask based on the performance of reconstructing part of the given observations. To obtain the most suitable mask, a given observation from $[t_0,t_1]$ is first split it into two periods $[t_0,\frac{t_0 + t_1}{2} ]$ and $\left[\frac{t_0 + t_1}{2},t_1\right]$ . Then, the first half is fed into the model and the correct mask can be chosen by selecting the one that can reconstruct the second half with the lowest error.
+
+# 4 EXPERIMENTS
+
+In this section, we aim to answer the following questions. 1. How to properly configure MS-GODE for optimal performance? 2. How would the configuration of the system sequence influence the performance? 3. How is the performance of the existing CL techniques? 4. Can MS-GODE outperform the baselines?
+
+# 4.1 EXPERIMENTAL SYSTEMS
+
+In experiments, we adopt physics and biological cellular systems. A detailed introduction to the system sequence construction is provided in Appendix A.1.
+
+Simulated physics systems are commonly adopted to evaluate the machine learning models in the task of learning system dynamics (Liu et al., 2024; Battaglia et al., 2016; Huang et al., 2020). The physics systems adopted in this work include spring-connected particles and charged particles (Figure 7). We carefully adjust the system configuration and construct 3 system sequences with different levels of dynamics shift (Appendix A.1).
+
+Biological cellular systems are innovatively introduced in this work based on Virtual Cell platform (Schaff et al., 1997; Cowan et al., 2012; Blinov et al., 2017). Currently, Bio-CDL includes rule-based model of EGFR and compartmental rule based model of translocation based on the Ran protein
+
+
+(a)
+
+
+(b)
+Figure 4: Performance comparison among different strategies to binarize the mask values. (a) Comparison over the cellular system sequence $\mathrm{EGFR}_1\rightarrow \mathrm{Ran}_1\rightarrow \mathrm{EGFR}_2\rightarrow \mathrm{Ran}_2$ . (b)(c)(d) Comparison over different physics system sequences. Blue line denotes the performance of top-k selection with different thresholds. Red line demonstrates the performance of using fast selection.
+
+
+(c)
+
+
+(d)
+
+(GTPase). In experiments, we adjust the coefficients of the models to construct a sequence containing 2 EGFR and 2 Ran systems interleaved with each other (EGFR $_1$ → Ran $_1$ → EGFR $_2$ → Ran $_2$ ). Full details are provided in Appendix A.1.2.
+
+# 4.2 EXPERIMENTAL SETUPS & EVALUATION
+
+Model evaluation in CDL. The models in this work learn sequentially on multiple systems under the continual learning setting, thus the evaluation is significantly different from standard learning settings. After learning each new task, the model is tested on all learned tasks and the results form a performance matrix $\mathbf{M}^p\in \mathbb{R}^{N\times N}$ , where $\mathbf{M}_{i,j}^p$ denotes the performance on the $j$ -system after learning from the 1-st to the $i$ -th system, and $N$ is the number of systems in the sequence. In our experiments, each entry of $\mathbf{M}^p$ is a mean square error (MSE) evaluating the performance on a single system. To evaluate the performance over all systems, average performance (AP) can be calculated. For example, $\frac{\sum_{j = 1}^{N}\mathrm{M}_{N,j}^{p}}{N}$ is the average performance after learning the entire sequence with $N$ tasks. Similarly, average forgetting (AF) can be calculated as $\frac{\sum_{j = 1}^{N - 1}\mathrm{M}_{N,j}^{p} - \mathrm{M}_{j,j}^{p}}{N - 1}$ . More details on model evaluation can be found in Appendix A.4. The baseline are configured by combining existing continual learning techniques with the LG-ODE (Huang et al., 2020) model. Other dynamics learning models were excluded because they typically don't support the practical setting with irregular and incomplete observation studied in this work. All experiments are repeated 5 times on a Nvidia Titan Xp GPU. The results are reported with average and standard deviations.
+
+Baselines & model settings. We adopt state-of-the-art baselines including the performance upper (joint training) and lower bounds (fine-tune) in experiments. The state-of-the-art baselines adopted in this work include Elastic Weight Consolidation (EWC) (Kirkpatrick et al., 2017) based on regularization, Learning without Forgetting (LwF) (Li & Hoiem, 2017) based on knowledge distillation, Gradient Episodic Memory (GEM) (Lopez-Paz & Ranzato, 2017) based on both memory replay and regularization, Bias-Correction (Chrysakis & Moens, 2023) based Memory Replay (BCMR) that integrates the idea of data sampling bias correction into memory replay, and Scheduled Data Prior (SDP) (Koh et al., 2023) that adopts a data-driven approach to balance the contribution of past and current data. Besides, joint training and fine-tuning are commonly adopted in continual learning works. Joint training trains the model jointly over all systems, which does not follow the continual learning setting. Fine-tune directly trains the model incrementally on new systems without any continual learning technique. As revealed by Ramanujan et al. (2020), for learning subnetworks, pre-trained models are the most suitable for serving as the backbone. However, unlike the Computer Vision (CV) tasks studied by Ramanujan et al. (2020), pre-trained models are not readily available in the context of dynamics system modeling. For example, Seifner et al. (2024) provides a promising pre-trained model with valuable insights into pre-training for dynamical systems, but the model is still limited to interpolation tasks. However, we will investigate how to adapt the provided model to extrapolation tasks once their code and model are released. Therefore, we adopt the random initialization strategy, which is shown by Ramanujan et al. (2020) to be less effective but could be comparable to pre-trained models with a proper ratio of remaining parameters, which is thoroughly investigated in our experiments reported in Section 4.3 (Figure 4). More details of experimental settings and baselines and experimental settings are provided in Appendix A.1 A.3.
+
+# 4.3 MODEL CONFIGURATION AND PERFORMANCE (RQ1)
+
+Table 1: Performance comparisons on physics system sequences ( $\downarrow$ lower means better).
+
+
Method
Seq1: Low-level dynamics shift
Seq2: Mid-level dynamics shift
Seq3: High-level dynamics shift
AP ↓
AF ↓
AP ↓
AF /% ↓
AP ↓
AF /% ↓
Fine-tune
0.369±0.027
0.115±0.016
0.391±0.044
0.314±0.030
0.258±0.025
0.086±0.037
EWC 2017
0.208±0.015
-0.007±0.019
0.227±0.038
0.008±0.022
0.148±0.011
0.008±0.017
GEM 2017
0.251±0.037
0.079±0.020
0.379±0.023
0.302±0.030
0.163±0.037
-0.091±0.033
LwF 2017
0.258±0.011
0.104±0.042
0.363±0.039
0.312±0.042
0.130±0.025
0.016±0.032
BCMR 2023
0.284±0.017
-0.006±0.031
0.298±0.028
-0.001±0.033
0.233±0.017
0.027±0.023
SDP 2023
0.352±0.021
0.121±0.018
0.303±0.026
0.352±0.058
0.213±0.035
0.024±0.045
Joint
0.194±0.006
-
0.186±0.015
-
0.116±0.009
-
Ours
0.200±0.003
0.002±0.004
0.204±0.005
-0.001±0.001
0.113±0.001
-0.000±0.000
+
+When optimizing the system-specific masks using the edge-popup algorithm (Ramanujan et al., 2020) (Appendix A.2), each entry of the mask is assigned with a continuous value for gradient descent after backpropagation. During inference, different strategies can be adopted to transform the continuous scores into binary values. In our experiments, we tested both 'fast selection' and 'top-k selection' with different thresholds. 'Fast selec
+
+tion' sets all entries with positive score values into '1's and the other entries into '0's. 'Top-k selection' first ranks the score values and sets a specified ratio of entries with the largest values into '1's. In Figure 4, we show the performance of different strategies. Overall, 'top-k selection' is inferior to 'fast selection'. This is potentially because 'fast selection' does not limit the number of selected entries, therefore allowing more flexibility for optimization. We also observe that the performance of 'top-k' selection is more sensitive on the cellular systems compared to the physics systems, indicating that the cellular systems have higher optimization difficulty for sub-network (binary mask) learning over system sequences.
+
+Second, sub-network learning will deactivate some neurons in the model, which resembles the dropout mechanism widely adopted in machine learning models and may cause the model to be over-sparsified. Therefore, we investigate the influence of dropout rate in MS-GODE. From Figure 5, we can see that a smaller dropout rate results in lower error (better performance). This corroborates our hypothesis that the mask selection mechanism and dropout complement each other, and the dropout rate should be decreased when the masking strategy is adopted.
+
+
+(a)
+
+
+(b)
+Figure 5: AP (a) and AF (b) of MS-GODE with different dropout rate.
+
+# 4.4 SEQUENCE CONFIGURATION AND PERFORMANCE (RQ2)
+
+In this subsection, we investigate the influence of system sequence configuration on the learning difficulty and performance. Specifically, we construct 3 physics system sequences with increasing level of dynamics shift (Appendix A.1.1). Sequence 1 (low-level dynamics shift) consists of 8 spring connected particle systems, in which consecutive systems are only different in one system coefficient. Sequence 2 (mid-level dynamics shift) is constructed to have a higher level of dynamics shift by simultaneously varying 2 system coefficients. Finally, sequence 3 (high-level dynamics shift) is constructed by interleaving spring-connected particle systems and charged particle systems with disparate dynamics. As shown in Table 1, in terms of both AP and AF, most methods, including MS-GODE, obtain similar performance over Sequence 1 and 2, and obtain better performance on Sequence 3. For MS-GODE, since the systems with more diverse dynamics are easier to distinguish for selecting the masks during inference. For all the methods in general, two possible cases are: 1. The model is not well trained on any system (it has not encoded much information), therefore it has nothing to forget. 2. The model is well trained and can maintain enough information from each system. However, the lower AP (low MSE) obtained on the system sequence with high-level dynamics shift indicates that the model has well adapted to each system, i.e., case 1 is not true. When case 2 holds, it indicates that the model's parameters are sufficiently updated to fit each system. When learning on one system, two possible cases are: 1. All parameters are modified uniformly. 2. A subset of parameters are modified more than the others. When the baseline is Fine-tune, if all the parameters are uniformly modified, it would be almost impossible to maintain the performance on previous systems. Therefore, the potential case is that each system relies more on a subset of the
+
+
+Figure 6: Visualization of performance matrices. (a), (b), (c), (d) corresponds to MS-GODE, fine-tune, EWC, and LwF on the cellular system sequence. (e), (f), (g), (h) are the performance of MS-GODE, EWC, fine-tune, and GEM, on the physics systems. Lower values indicate better performance.
+
+
+
+
+
+
+
+
+
+parameters, and systems with larger difference in dynamics may lead to less overlap in the subsets of parameters they rely on.
+
+# 4.5 COMPARISONS WITH STATE-OF-THE-ARTS (RQ3,4)
+
+In this subsection, we compare MS-GODE with state-of-the-arts methods including the joint training. The experiments are conducted on both physics systems (Table 1) and cellular systems (Table 2). Besides, by comparing the results across different sequences in the two tables, we find that the sequences with gradual dynamics shift (Sequence 1,2 of physics systems) are more difficult to learn than the sequences with abrupt dynamics shift (Sequence 3 of the physics systems and the cellular system). The advantages of MS-GODE over the baselines mainly come from two perspectives. First, since the learning of the subnetworks are learned in a completely
+
+Table 2: Performance comparisons on biological cellular systems ( $\downarrow$ lower means better).
+
+
Method
EGFR1→Ran1→EGFR2→Ran2
AP ↓
AF ↓
Fine-tune
0.355±0.089
0.226±0.037
EWC 2017
0.312±0.028
-0.013±0.019
GEM 2017
0.316±0.083
0.352±0.109
LwF 2017
0.330±0.036
0.349±0.046
BCMR 2023
0.149±0.025
0.013±0.044
SDP 2023
0.197±0.025
0.167±0.045
Joint
0.055±<0.001
-
Ours
0.144±0.012
-0.003±0.036
+
+independent manner, the plasticity when learning new systems is guaranteed. Second, the independency of the subnetworks also eliminates the forgetting issue and protect the performance stability on previously learned systems.
+
+# 4.6 IN-DEPTH INVESTIGATION ON THE LEARNING DYNAMICS (RQ3,4)
+
+Table 1 and 2 provide the overall performance. However, as introduced in Section 4.2, to obtain an in-depth understanding of the performance of different methods, we have to seek help from the performance matrix. In Figure 6, we visualize the performance matrices of different methods. The $i$ -th column demonstrates the performance of the $i$ -th task when learning sequentially over the systems. Comparing MS-GODE ((a) and (e)) and the other methods, we find that MS-GODE maintains a much more stable performance. EWC ((c) and (f)) also maintains a relatively stable performance of each system based on its regularization strategy. However, compared to MS-GODE, the model becomes less and less adaptive to new systems, because the regularization is applied to more parameters when proceeding to each new task. Fine-tune ((b) and (g)) is not limited by regularization, therefore is more adaptive on new systems but less capable of preserving the performance on previous systems compared to EWC. LwF (d), although based on knowledge distillation, does not directly limit the adaptation of the parameters. Finally, based on memory and gradient modification, GEM (h) maintains the performance better than fine-tune (g), and is more adaptive to new tasks than EWC (f). More details on the performance matrices are provided in Appendix A.5.
+
+# 5 CONCLUSION
+
+In this paper, we systematically study the problem of continual dynamics learning (CDL) from different perspectives, including investigating the influence of task configuration and evaluating the performance of existing continual learning techniques. Based on the findings, we propose Mode-switching Graph ODE (MS-GODE). Additionally, we also construct Bio-CDL, consisting of biological cellular systems and significantly enriching the research field of machine learning on system dynamics. Finally, we conduct comprehensive experiments on both physics and cellular system sequences, which not only demonstrate the effectiveness of MS-GODE, but also provide insights into the problem of machine learning over system sequences with dynamics shift.
+
+# ACKNOWLEDGMENTS
+
+This project is supported by the National Research Foundation, Singapore, under its NRF Professorship Award No. NRF-P2024-001.
+
+# REFERENCES
+
+Rahaf Aljundi, Francesca Babiloni, Mohamed Elhoseiny, Marcus Rohrbach, and Tinne Tuytelaars. Memory aware synapses: Learning what (not) to forget. In Proceedings of the European Conference on Computer Vision (ECCV), pp. 139-154, 2018.
+Peter Battaglia, Razvan Pascanu, Matthew Lai, Danilo Jimenez Rezende, et al. Interaction networks for learning about objects, relations and physics. Advances in neural information processing systems, 29, 2016.
+Michael L Blinov, James C Schaff, Dan Vasilescu, Ion I Moraru, Judy E Bloom, and Leslie M Loew. Compartmental and spatial rule-based modeling with virtual cell. Biophysical journal, 113(7): 1365-1372, 2017.
+Johannes Brandstetter, Rob Hesselink, Elise van der Pol, Erik J Bekkers, and Max Welling. Geometric and physical quantities improve e (3) equivariant message passing. arXiv preprint arXiv:2110.02905, 2021.
+Arslan Chaudhry, Puneet K Dokania, Thalaiyasingam Ajanthan, and Philip HS Torr. Riemannian walk for incremental learning: Understanding forgetting and intransigence. In Proceedings of the European conference on computer vision (ECCV), pp. 532-547, 2018.
+Michael K Chen, Xikun Zhang, and Dacheng Tao. Justlogic: A comprehensive benchmark for evaluating deductive reasoning in large language models. arXiv preprint arXiv:2501.14851, 2025.
+Ricky TQ Chen, Yulia Rubanova, Jesse Bettencourt, and David K Duvenaud. Neural ordinary differential equations. Advances in neural information processing systems, 31, 2018.
+Aristotelis Chrysakis and Marie-Francine Moens. Online bias correction for task-free continual learning. *ICLR* 2023 at OpenReview, 2023.
+Ann E Cowan, Ion I Moraru, James C Schaff, Boris M Slepchenko, and Leslie M Loew. Spatial modeling of cell signaling networks. In *Methods in cell biology*, volume 110, pp. 195-221. Elsevier, 2012.
+Matthias De Lange, Rahaf Aljundi, Marc Masana, Sarah Parisot, Xu Jia, Aleš Leonardis, Gregory Slabaugh, and Tinne Tuytelaars. A continual learning survey: Defying forgetting in classification tasks. IEEE transactions on pattern analysis and machine intelligence, 44(7):3366-3385, 2021.
+Valeria Fionda, Olaf Hartig, Reyhaneh Abdolazimi, Sihem Amer-Yahia, Hongzhi Chen, Xiao Chen, Peng Cui, Jeffrey Dalton, Xin Luna Dong, Lisette Espin-Noboa, et al. Tutorials at the web conference 2023. In Companion Proceedings of the ACM Web Conference 2023, pp. 648-658, 2023.
+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, pp. 1263-1272. PMLR, 2017.
+Dipam Goswami, Yuyang Liu, Bartlomiej Twardowski, and Joost van de Weijer. Fecam: Exploiting the heterogeneity of class distributions in exemplar-free continual learning. Advances in Neural Information Processing Systems, 36, 2023.
+Wei Guo, Hao Wang, Luankang Zhang, Jin Yao Chin, Zhongzhou Liu, Kai Cheng, Qiushi Pan, Yi Quan Lee, Wanqi Xue, Tingjia Shen, et al. Scaling new frontiers: Insights into large recommendation models. arXiv preprint arXiv:2412.00714, 2024.
+Jiaqi Han, Wenbing Huang, Tingyang Xu, and Yu Rong. Equivariant graph hierarchy-based neural networks. Advances in Neural Information Processing Systems, 35:9176-9187, 2022.
+Lianyu Hu, Shenglan Liu, and Wei Feng. Spatial temporal graph attention network for skeleton-based action recognition. arXiv preprint arXiv:2208.08599, 2022.
+Wenbing Huang, Jiaqi Han, Yu Rong, Tingyang Xu, Fuchun Sun, and Junzhou Huang. Equivariant graph mechanics networks with constraints. arXiv preprint arXiv:2203.06442, 2022.
+
+Zijie Huang, Yizhou Sun, and Wei Wang. Learning continuous system dynamics from irregularly-sampled partial observations. Advances in Neural Information Processing Systems, 33:16177-16187, 2020.
+Zijie Huang, Yizhou Sun, and Wei Wang. Coupled graph ode for learning interacting system dynamics. In KDD, pp. 705-715, 2021.
+Zijie Huang, Yizhou Sun, and Wei Wang. Generalizing graph ode for learning complex system dynamics across environments. In Proceedings of the 29th ACM SIGKDD Conference on Knowledge Discovery and Data Mining, pp. 798-809, 2023.
+Yushan Jiang, Zijie Pan, Xikun Zhang, Sahil Garg, Anderson Schneider, Yuriy Nevmyvaka, and Dongjin Song. Empowering time series analysis with large language models: A survey. arXiv preprint arXiv:2402.03182, 2024.
+Beomseok Kang, Priyabrata Saha, Sudarshan Sharma, Biswadeep Chakraborty, and Saibal Mukhopadhyay. Online relational inference for evolving multi-agent interacting systems. arXiv preprint arXiv:2411.01442, 2024.
+Haeyong Kang, Rusty John Lloyd Mina, Sultan Rizky Hikmawan Madjid, Jaehong Yoon, Mark Hasegawa-Johnson, Sung Ju Hwang, and Chang D Yoo. Forget-free continual learning with winning subnetworks. In International Conference on Machine Learning, pp. 10734-10750. PMLR, 2022.
+Diederik P Kingma and Max Welling. Auto-encoding variational bayes. arXiv preprint arXiv:1312.6114, 2013.
+Thomas Kipf, Ethan Fetaya, Kuan-Chieh Wang, Max Welling, and Richard Zemel. Neural relational inference for interacting systems. In International Conference on Machine Learning, pp. 2688-2697. PMLR, 2018.
+James Kirkpatrick, Razvan Pascanu, Neil Rabinowitz, Joel Veness, Guillaume Desjardins, Andrei A Rusu, Kieran Milan, John Quan, Tiago Ramalho, Agnieszka Grabska-Barwinska, et al. Overcoming catastrophic forgetting in neural networks. Proceedings of the National Academy of Sciences, 114 (13):3521-3526, 2017.
+Hyunseo Koh, Minhyuk Seo, Jihwan Bang, Hwanjun Song, Deokki Hong, Seulki Park, Jung-Woo Ha, and Jonghyun Choi. Online boundary-free continual learning by scheduled data prior. In The Eleventh International Conference on Learning Representations, 2023.
+Tatsuya Konishi, Mori Kurokawa, Chihiro Ono, Zixuan Ke, Gyuhak Kim, and Bing Liu. Parameter-level soft-masking for continual learning. In International Conference on Machine Learning, pp. 17492-17505. PMLR, 2023.
+Zhizhong Li and Derek Hoiem. Learning without forgetting. IEEE Transactions on Pattern Analysis and Machine Intelligence, 40(12):2935-2947, 2017.
+Yan-Shuo Liang and Wu-Jun Li. Loss decoupling for task-agnostic continual learning. Advances in Neural Information Processing Systems, 36, 2023.
+Huihui Liu, Yiding Yang, and Xinchao Wang. Overcoming catastrophic forgetting in graph neural networks. In Proceedings of the AAAI conference on artificial intelligence, volume 35, pp. 8653-8661, 2021.
+Yang Liu, Jiashun Cheng, Haihong Zhao, Tingyang Xu, Peilin Zhao, Fugee Tsung, Jia Li, and Yu Rong. SEGNO: Generalizing equivariant graph neural networks with physical inductive biases. In The Twelfth International Conference on Learning Representations, 2024. URL https://openreview.net/forum?id=3oTPsORaDH.
+David Lopez-Paz and Marc'Aurelio Ranzato. Gradient episodic memory for continual learning. In Advances in Neural Information Processing Systems, pp. 6467-6476, 2017.
+Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization. arXiv preprint arXiv:1711.05101, 2017.
+
+Renqiang Luo, Huafei Huang, Shuo Yu, Zhuoyang Han, Estrid He, Xiuzhen Zhang, and Feng Xia. FUGNN: Harmonizing fairness and utility graph neural networks. In Proceedings of the 30th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, 2024a.
+Renqiang Luo, Huafei Huang, Shuo Yu, Xiuzhen Zhang, and Feng Xia. FairGT: A fairness-aware graph transformer. In Proceedings of the 33rd International Joint Conference on Artificial Intelligence, 2024b.
+Renqiang Luo, Huafei Huang, Ivan Lee, Chengpei Xu, Jianzhong Qi, and Xia Feng. Fairgp: A scalable and fair graph transformer using graph partitioning. AAAI, 2025.
+Xiao Luo, Yiyang Gu, Huiyu Jiang, Hang Zhou, Jinsheng Huang, Wei Ju, Zhiping Xiao, Ming Zhang, and Yizhou Sun. Pcode: Towards high-quality system dynamics modeling. In *Forty-first International Conference on Machine Learning*.
+Xiao Luo, Jingyang Yuan, Zijie Huang, Huiyu Jiang, Yifang Qin, Wei Ju, Ming Zhang, and Yizhou Sun. Hope: High-order graph ode for modeling interacting dynamics. In International Conference on Machine Learning, pp. 23124-23139. PMLR, 2023.
+Xiao Luo, Haixin Wang, Zijie Huang, Huiyu Jiang, Abhijeet Gangan, Song Jiang, and Yizhou Sun. Care: Modeling interacting dynamics under temporal environmental variation. Advances in Neural Information Processing Systems, 36, 2024c.
+Jonathan D Moore. In the wrong place at the wrong time: does cyclin mislocalization drive oncogenic transformation? Nature Reviews Cancer, 13(3):201-208, 2013.
+Damian Mrowca, Chengxu Zhuang, Elias Wang, Nick Haber, Li F Fei-Fei, Josh Tenenbaum, and Daniel L Yamins. Flexible neural representation for physics prediction. Advances in neural information processing systems, 31, 2018.
+German I Parisi, Ronald Kemker, Jose L Part, Christopher Kanan, and Stefan Wermter. Continual lifelong learning with neural networks: A review. Neural Networks, 113:54-71, 2019.
+Ameya Prabhu, Philip HS Torr, and Puneet K Dokania. Gdumb: A simple approach that questions our progress in continual learning. In European conference on computer vision, pp. 524-540. Springer, 2020.
+Jingyang Qiao, Xin Tan, Chengwei Chen, Yanyun Qu, Yong Peng, Yuan Xie, et al. Prompt gradient projection for continual learning. In The Twelfth International Conference on Learning Representations, 2023.
+Vivek Ramanujan, Mitchell Wortsman, Aniruddha Kembhavi, Ali Farhadi, and Mohammad Rastegari. What's hidden in a randomly weighted neural network? In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 11893-11902, 2020.
+Sylvestre-Alvise Rebuffi, Alexander Kolesnikov, Georg Sperl, and Christoph H Lampert. icarl: Incremental classifier and representation learning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 2001-2010, 2017.
+David Rolnick, Arun Ahuja, Jonathan Schwarz, Timothy Lillicrap, and Gregory Wayne. Experience replay for continual learning. Advances in Neural Information Processing Systems, 32, 2019.
+Yulia Rubanova, Ricky TQ Chen, and David K Duvenaud. Latent ordinary differential equations for irregularly-sampled time series. Advances in neural information processing systems, 32, 2019.
+Andrei A Rusu, Neil C Rabinowitz, Guillaume Desjardins, Hubert Soyer, James Kirkpatrick, Koray Kavukcuoglu, Razvan Pascanu, and Raia Hadsell. Progressive neural networks. arXiv preprint arXiv:1606.04671, 2016.
+Alvaro Sanchez-Gonzalez, Victor Bapst, Kyle Cranmer, and Peter Battaglia. Hamiltonian graph networks with ode integrators. arXiv preprint arXiv:1909.12790, 2019.
+Victor Garcia Satorras, Emiel Hoogeboom, and Max Welling. E (n) equivariant graph neural networks. In International conference on machine learning, pp. 9323-9332. PMLR, 2021.
+
+James Schaff, Charles C Fink, Boris Slepchenko, John H Carson, and Leslie M Loew. A general computational framework for modeling cellular structure and function. Biophysical journal, 73(3): 1135-1146, 1997.
+Patrick Seifner, Kostadin Cvejoski, Antonia Korner, and Ramsés J Sánchez. Foundational inference models for dynamical systems. arXiv preprint arXiv:2402.07594, 2024.
+Tingjia Shen, Hao Wang, Chuhan Wu, Jin Yao Chin, Wei Guo, Yong Liu, Huifeng Guo, Defu Lian, Ruiming Tang, and Enhong Chen. Predictive models in sequential recommendations: Bridging performance laws with data quality insights. arXiv preprint arXiv:2412.00430, 2024.
+Gido M Van de Ven and Andreas S Tolias. Three scenarios for continual learning. arXiv preprint arXiv:1904.07734, 2019.
+Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. arXiv preprint arXiv:1706.03762, 2017.
+Petar Velicković, Guillem Cucurull, Arantxa Casanova, Adriana Romero, Pietro Lio, and Yoshua Bengio. Graph attention networks. arXiv preprint arXiv:1710.10903, 2017.
+Liyuan Wang, Xingxing Zhang, Hang Su, and Jun Zhu. A comprehensive survey of continual learning: theory, method and application. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2024.
+Mitchell Wortsman, Vivek Ramanujan, Rosanne Liu, Aniruddha Kembhavi, Mohammad Rastegari, Jason Yosinski, and Ali Farhadi. Supermasks in superposition. arXiv preprint arXiv:2006.14769, 2020.
+Liming Wu, Zhichao Hou, Jirui Yuan, Yu Rong, and Wenbing Huang. Equivariant spatio-temporal attentive graph networks to simulate physical dynamics. In Thirty-seventh Conference on Neural Information Processing Systems, 2023. URL https://openreview.net/forum?id=35nFSbEBks.
+Xinyu Wu, Ye Yuan, Xikun Zhang, Can Wang, Tiantian Xu, and Dacheng Tao. Gait phase classification for a lower limb exoskeleton system based on a graph convolutional network model. IEEE Transactions on Industrial Electronics, 69(5):4999-5008, 2021.
+Yichen Wu, Long-Kai Huang, Renzhen Wang, Deyu Meng, and Ying Wei. Meta continual learning revisited: Implicitly enhancing online hessian approximation via variance reduction. In The Twelfth International Conference on Learning Representations, 2024.
+Mingjia Yin, Hao Wang, Wei Guo, Yong Liu, Suojuan Zhang, Sirui Zhao, Defu Lian, and Enhong Chen. Dataset regeneration for sequential recommendation. In Proceedings of the 30th ACM SIGKDD Conference on Knowledge Discovery and Data Mining, pp. 3954-3965, 2024.
+Jaehong Yoon, Eunho Yang, Jeongtae Lee, and Sung Ju Hwang. Lifelong learning with dynamically expandable networks. arXiv preprint arXiv:1708.01547, 2017.
+Xikun Zhang, Chang Xu, Xinmei Tian, and Dacheng Tao. Graph edge convolutional neural networks for skeleton-based action recognition. IEEE Transactions on Neural Networks and Learning Systems, 31(8):3047-3060, 2019.
+Xikun Zhang, Chang Xu, and Dacheng Tao. Context aware graph convolution for skeleton-based action recognition. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 14333-14342, 2020a.
+Xikun Zhang, Chang Xu, and Dacheng Tao. On dropping clusters to regularize graph convolutional neural networks. In European Conference on Computer Vision, 2020b.
+Xikun Zhang, Dongjin Song, and Dacheng Tao. Cglb: Benchmark tasks for continual graph learning. In Thirty-sixth Conference on Neural Information Processing Systems Datasets and Benchmarks Track, 2022a.
+
+Xikun Zhang, Dongjin Song, and Dacheng Tao. Sparsified subgraph memory for continual graph representation learning. In 2022 IEEE International Conference on Data Mining (ICDM), pp. 1335-1340. IEEE, 2022b.
+Xikun Zhang, Dongjin Song, and Dacheng Tao. Hierarchical prototype networks for continual graph representation learning. IEEE Transactions on Pattern Analysis and Machine Intelligence, 45(4): 4622-4636, 2023a. doi: 10.1109/TPAMI.2022.3186909.
+Xikun Zhang, Dongjin Song, and Dacheng Tao. Ricci curvature-based graph sparsification for continual graph representation learning. IEEE Transactions on Neural Networks and Learning Systems, 2023b.
+Xikun Zhang, Dongjin Song, Yixin Chen, and Dacheng Tao. Topology-aware embedding memory for learning on expanding graphs. 2024a.
+Xikun Zhang, Dongjin Song, and Dacheng Tao. Continual learning on graphs: Challenges, solutions, and opportunities. arXiv preprint arXiv:2402.11565, 2024b.
+Zeyang Zhang, Xin Wang, Ziwei Zhang, Haoyang Li, Zhou Qin, and Wenwu Zhu. Dynamic graph neural networks under spatio-temporal distribution shift. Advances in neural information processing systems, 35:6074-6089, 2022c.
+Fan Zhou and Chengtai Cao. Overcoming catastrophic forgetting in graph neural networks with experience replay. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 35, pp. 4714-4722, 2021.
+Hattie Zhou, Janice Lan, Rosanne Liu, and Jason Yosinski. Deconstructing lottery tickets: Zeros, signs, and the supermask. Advances in neural information processing systems, 32, 2019.
+
+# A APPENDIX / SUPPLEMENTAL MATERIAL
+
+# A.1 SYSTEM SEQUENCE CONFIGURATION
+
+# A.1.1 PHYSICS SYSTEM SEQUENCE
+
+Simulated physics systems are commonly adopted to evaluate the machine learning models in the task of learning system dynamics (Liu et al., 2024; Battaglia et al., 2016; Huang et al., 2020). The physics systems adopted in this work include spring connected particles and charged particles (Figure 7) with disparate dynamics, therefore are ideal for constructing system sequences to evaluate a model's continual learning capability under severe significant dynamics shift. Besides, the configuration of each system type is also adjustable. For the spring connected particles, the number of particles, strength of the springs, and the size of the box containing the particles are adjustable. For the charged particles, the number of particles, charge sign, and the size of box are adjustable. In our experiments, we constructed multiple systems with different configurations, which are aligned into sequences for the model to learn.
+
+The physics system sequences are constructed to have different types of dynamics changes. System sequence 1 is composed of 8 spring connected particle systems. Each system contains 5 particles, and some pairs of particles are connected by springs. An illustration is given in Figure 7. For each system, besides the number of particles, the size of the box containing the particles and the strength of spring are adjustable. In Sequence 1, the first 4 systems have constant spring strength and decreasing box size. From the 5-th system, the box size is fixed, and the spring strength is gradually increased. Sequence 2 also contains 8 systems of spring connected particles and is designed to possess more severe dynamics shift. Specifically, both the box size and spring strength vary from the first to the last system, and the values are randomly aligned instead of monotonically increasing or decreasing. Sequence 3 is designed to possess more significant dynamics shift than Sequence 2 by incorporating the charged particle systems in the sequence. Specifically, Sequence 3 contains 4 spring connected particle systems and 4 charged particle systems, which are aligned alternatively. The box size gradually decreases and the interaction strength (spring strength or amount of charge on the particles) gradually increases. In a charged particle system, the particles could carry either positive or negative charge, and the system dynamics is governed by electrostatic force, which is significantly different from the spring connected particle system.
+
+
System
S1
S2
S3
S4
S5
S6
S7
S8
S9
S10
Type
Spring
Spring
Spring
Spring
Spring
Spring
Spring
Spring
Spring
Spring
# particles
5
5
5
5
5
5
5
5
5
5
Box size
10.0
5.0
3.0
1.0
0.5
0.5
0.5
0.5
3.0
1.0
Interaction strength
0.01
0.01
0.01
0.01
0.01
0.1
0.5
1.0
0.1
0.5
+
+Table 3: Spring connected system configurations.
+
+
System
C1
C2
C3
C4
Type
Charge
Charge
Charge
Charge
# particles
5
5
5
5
Box size
10.0
3.0
1.0
0.5
Interaction strength
0.01
0.1
0.5
1.0
+
+Table 4: Charged particle system configurations.
+
+Specifically, we list the configurations of the systems in Table 3 and 4. Then the three sequences can be precisely represented as:
+
+1. Sequence 1: $S_{1} \rightarrow S_{2} \rightarrow S_{3} \rightarrow S_{4} \rightarrow S_{5} \rightarrow S_{6} \rightarrow S_{7} \rightarrow S_{8}$
+2. Sequence 2: $S_{1} \rightarrow S_{8} \rightarrow S_{2} \rightarrow S_{7} \rightarrow S_{3} \rightarrow S_{6} \rightarrow S_{5} \rightarrow S_{5}$
+3. Sequence 3: $S_{1} \to C_{1} \to S_{9} \to C_{2} \to S_{10} \to C_{3} \to S_{8} \to C_{4}$
+
+For each system, the simulation runs for 6,000 steps, and the observation is sampled every 100 steps, resulting in a 60-step series. During training, the first $60\%$ part of the trajectory of each
+
+system is fed to the model to generate prediction for the remaining $40\%$ . For each system sequence, 1,000 sequences are used for training, and another 1,000 sequences are used for testing.
+
+
+Figure 7: Illustration of the continual learning over different physics systems with different dynamics. The factors determining the dynamics shown in this figure include the type and strength of the interactions.
+
+# A.1.2 BIOLOGICAL CELLULAR SYSTEM
+
+In this paper, we build a novel benchmark, Bio-CDL, containing biological cellular dynamic systems based on Virtual Cell (Schaff et al., 1997; Cowan et al., 2012; Blinov et al., 2017) with different system configurations and variable selection. Currently, Bio-CDL is built based on two types of cellular models. The first one is rule-based model of EGFR receptor interaction with two adapter proteins Grb2 and Shc. The second is a compartmental rule based model of translocation through the nuclear pore of a cargo protein based on the Ran protein (GTPase). An illustration of the Ran system is provided in Figure 8.
+
+Detailed description of these two systems can be found via https://vcell.org/webstart/VCell_Tutorials/VCell6.1_Rule-Based_Tutorial.pdf and https://vcell.org/webstart/VCell_Tutorials/VCell6.1_Rule-Based_Ran_Transport_Tutorial.pdf. Based on these 2 types of models, we construct multiple systems, which are aligned into different system sequences. Details are provided below.
+
+
+Figure 9
+
+
+Figure 10
+
+Our new benchmark is constructed based on the EGFR receptor interaction model and Ran transportation model. The length of the observe trajectories ranges from 250 to 550 time steps for EGFR systems and 40 to 150 time steps for Ran systems.
+
+We provide below the details of data generation, and will release our generated data later. The code for generating the configuration files for the simulations is contained in
+
+VCell_config_gen.py.
+
+We have restricted the model coefficients to a specific range to ensure the simulations remain stable. After generating the configuration files, they should be uploaded into the VCell platform for generating the simulations. The specific steps are listed below.
+
+1. Download the VCell client through https://vcell.org/run-vcell-software, create a free account and log in. 2. Select the 'BioModel' tab, in the 'Search' box, locate and load the models 'Rule-based_egfr_tutorial' or 'rule-based_Ran_TRANport' under the 'Tutorials' directory for the EGFR model or Ran model, respectively (Figure 9).
+
+
+Figure 8: Illustration of the RAN-regulated nucleocytoplasmic transport (Moore, 2013). Briefly speaking, this model depicts the translocation of cargo proteins (Exportin 1) via nuclear pores with the assistance of RAN proteins. RAN-GDP is first activated into RAN-GTP and then binds to cargo molecules (Exportin 1) forming a complex containing RAN-GTP and Exportin 1. Next, the complex is translocated across the nuclear membrane into the cytoplasm with the assistance of RAN. Finally, RAN and Exportin 1 are dissociated after the translocation.
+
+4. In the upper left part of the window, click the 'Applications', then click the 'Simulations' under the 'network_determ' tab (Figure 10).
+4. In the main window on the upper right, select the 'Simulations' tab and click the first icon under the 'Simulations' tab to create a new simulation (Figure 11).
+5. Click to select the created simulation, then click the icon with a blue arrow and a gear to load the previously generated simulations. 6. After the simulations are done, select all the simulations and click the icon with a green arrow and a gear to export all the simulation results into a specified folder. 7. Specify the
+
+datastore_path
+
+
+Figure 11
+
+and run
+
+generate_dataset.py
+
+to obtain the data files that can be loaded and used by the MS-GODE model.
+
+This implementation of MS-GODE is based on [Pytorch Geometric]https://github.com/rustyls/pytorch/geometric API.
+
+Example command for running the experiments with MS-GODE:
+
+```shell
+python run_models.py --cut_num 20 \
+--nepos 20 \
+--device 5 \
+--n Operators_to_viz 10 \
+--thresholding 'fast' \
+--mask True \
+--dropout_mask '0.0' \
+--batch-size 10 \
+--mode "ex" \
+--normalizeVCellfeat 'universal' \
+--system 'VCell' \
+--repeats 5 \
+--overwrite_results 'False' \
+--fix_random(seed 'False' \
+--save_results True
+```
+
+Example scripts for data generation of cellular/physics systems:
+
+```shell
+python ./data/generate_dataset.py --simulation VCell \
+--num-train 3000 \
+--num-test 3000 \
+--n-balls 5
+```
+
+The generation of cellular simulation data requires first obtaining simulation data from VCell platform, which is introduced in the Appendix A.1.2 of the submission.
+
+```shell
+python ./data/generate_dataset.py --simulation simulation \
+--num-train 3000 \
+--num-test 3000 \
+--n-balls 5
+```
+
+# Setup
+
+The mdoel implementation is based on the following packages:
+
+- [Python 3.6.10](https://www.python.org/)
+- [Pytorch 1.4.0](https://pytorch.org/)
+- [pytorch_physical 1.4.3](https://pytorch-beigeometric.readthedocs.io/)
+- torch-cluster==1.5.3 - torch-scatter==2.0.4 - torch-sparse==0.6.1
+- [torchdiffreq](https://github.com/rtqichen/torchdiffreq)
+- [numpy 1.16.1](https://numpy.org/)
+
+In our experiments, we adjust the parameter configurations of these two types of models to construct multiple systems with different dynamics, which are aligned into a sequence for the experiments. We generate simulated data using the Virtual Cell platform (VCell) and pre-process the data. In experiments, we adopt a 4-system sequence using the simulated data by alternatively align 2 EGFR systems and 2 Ran systems. EGFR system is rule-based model of EGFR receptor interaction with two adapter proteins Grb2 and Shc. Ran system is a compartmental rule based model of translocation through the nuclear pore of a cargo protein based on the Ran protein (GTPase). For constructing systems with different dynamics, different EGFR and Ran systems are constructed by selecting a subset of the observed variables from the complete systems. This not only enrich the dynamics diversity across different systems in the learning sequence, but also enhance the learning difficulty over the systems. The IDs (inherited from VCell platform) of the selected variables in $\mathrm{EGFR}_1$ , $\mathrm{EGFR}_2$ , $\mathrm{Ran}_1$ , $\mathrm{Ran}_2$ are {s15,s16,s21,s22,s29,s33,s34,s38,s45,s47,s59,s74,s9,s96}, {s24,s25,s26,s27,s30,s36,s43,s44,s58,s68}, {Ran_C_nuc,RCC1,s10,s11,s12,s13,s14,s15,s16,s17,s18,s19,s2,s20,s21,s22,s23,s24,s25,s26,s27,s28,s3,s30,s31,s32,s33,s34,s35,s4,s5,s6,s7,s8,s9}, {s14,s15,s16,s23,s24,s25,s31,s5}, respectively.
+
+Using the code for generating cellular system data requires the following steps.
+
+1. Using the script contained in our provided code 'MS-GODE/VCell_config_gen' to generate the configuration files for VCell simulation. Users can freely adjust the configurations in the script.
+2. Download the VCell application from https://vcell.org/.
+3. Load the generated configuration files into the VCell platform.
+4. Generate simulation results. Instruction of using this script is also provided in the ReadMe file of our code.
+5. Using the script 'MS-GODE/data/generate_dataset.py' for processing the simulation results. After this step, the data can be used for experiments.
+
+Since the entire dataset is much larger than the $100\mathrm{MB}$ limit, we cannot provide the data in the supplementary materials. But we have provided all code and instruction for generating the data, and will release the complete Bio-CDL benchmark to the public later. Besides the sequence $\mathrm{EGFR}_1\rightarrow \mathrm{Ran}_1\rightarrow \mathrm{EGFR}_2\rightarrow \mathrm{Ran}_2$ adopted in the experiments, the complete Bio-CDL also contain more different system configurations and sequence configurations. Moreover, we are also working on enriching Bio-CDL with more diverse system types and system sequences.
+
+For each cellular system, we generate 100 iterations of simulation using VCell. Different from the physics systems, the temporal interval between two time steps of cellular system is not constant. Similar to the physics systems, the first $60\%$ part of the observation of each system simulation is fed into the model to reconstruct the remaining $40\%$ during training. For each system, we use 20 trajectories for training and 20 trajectories for testing.
+
+# A.1.3 ADDITIONAL DETAILS OF EXPERIMENTAL SETTINGS
+
+For the encoder network, the number of layers is 2, and the hidden dimension is 64. 1 head is used for the attention mechanism. The interaction network of the generator is configured as 1-layer network, and the number of hidden dimensions is 128. Finally, the decoder network is a fully-connected
+
+layer. The model is trained for 20 epochs over each system in the given sequence. We adopt the AdamW optimizer (Loshchilov & Hutter, 2017) and set the learning rate as 0.0005. In our work, task boundaries are provided to the models during training.
+
+# A.1.4 ADDITIONAL DISCUSSION ON PERFORMANCE AND LOW-LEVEL DYNAMICS SHIFT
+
+The performance of MS-GODE is mainly determined on two factors, including the performance on each system and the forgetting issue. Therefore, to further improve the performance under gradual dynamics shift, there are two promising approaches:
+
+1. Enhancing the performance on each single system. As revealed in Ramanujan et al. (2020), the larger the backbone network, the more probable the masked sub-network can reach the capacity of the full backbone network. In other words, increasing the size of the model can improve the performance.
+2. Reducing the performance decrease after learning new systems. Since MS-GODE completely separate the masks for different dynamics, the forgetting issue has been eliminated. Therefore, the performance decrease after learning new systems mainly comes from the incorrect mask selection. The strategy above to increase model size can help improve the mask selection, because better fitting to each system increases the difference between the masks. Furthermore, the mask selection can also be improved by incorporating a mixture of selection criteria. Specifically, in our experiments, the mode-switching module of MS-GODE selects the mask based on the error of reconstructing the second $50\%$ of the observation. This can be enhanced by incorporating different splitting ratios and mixing the result. Since the correct mask tend to exhibit lower error with most splitting ratios, selecting the one that succeeds in more splitting ratios could increase the possibility of finding the correct one.
+
+# A.2 EDGE-POPUP ALGORITHM
+
+In this work, we adopt the edge-popup algorithm (Ramanujan et al., 2020) for optimizing the binary masks. The main idea is to optimize a continuous score value for each entry of the mask during the backpropagation, and binarize the values into discrete binary values during forward propagation (Appendix A.2). Accordingly, the strategy for binarizing the mask entry values is a crucial factor influencing the performance. For convenience of the readers, we provide the details about this algorithm in this subsection.
+
+Given a fully connected layer, the input to a neuron $v$ in the $l$ -th layer can be formulated as a weighted summation of the output of the neurons in the previous later,
+
+$$
+I _ {v} = \sum_ {u \mathcal {V} ^ {l - 1}} w _ {u v} z _ {u}, \tag {16}
+$$
+
+where $\mathcal{V}^{l-1}$ denotes the nodes in the previous layer and $z_u$ refers to the output of neuron $u$ .
+
+With the edge-popup strategy, the output is reformulated as
+
+$$
+I _ {v} = \sum_ {u \mathcal {V} ^ {l - 1}} w _ {u v} z _ {u} h \left(s _ {u v}\right), \tag {17}
+$$
+
+where $h(s_{uv})$ is the binary value over the weight $w_{uv}$ denoting whether this weight is selected and $s_{uv}$ the continuous score used in gradient descent based optimization. During backpropagation, the gradient will ignore $h(\cdot)$ and goes through it, therefore the gradient over $s_{uv}$ is
+
+$$
+g _ {s _ {u v}} = \frac {\partial \mathcal {L}}{\partial I _ {v}} \frac {\partial I _ {v}}{\partial s _ {u v}} = \frac {\partial \mathcal {L}}{\partial I _ {v}} w _ {u v} z _ {u}, \tag {18}
+$$
+
+where $\mathcal{L}$ denotes the loss function.
+
+During forward propagation, $h(\cdot)$ can take different options as we mentioned and studied in Section 4.3. In our experiments 4.3, we tested both 'fast selection' and 'top-k selection' with different thresholds. 'Fast selection' set all entries with positive values into '1's and the other entries into '0's. 'Top-k selection' will rank the entry values and set a specified ratio of entries with the largest values into '1's.
+
+# A.3 BASELINES
+
+1. Fine-tune denotes using the backbone model without any continual learning technique.
+2. Elastic Weight Consolidation (EWC) (Kirkpatrick et al., 2017) applies a quadratic penalty over the parameters of a model based on their importance to maintain its performance on previous tasks.
+3. Gradient Episodic Memory (GEM) (Lopez-Paz & Ranzato, 2017) selects and stores representative data in an episodic memory buffer. During training, GEM will modify the gradients calculated based on the current task with the gradient calculated based on the stored data to avoid updating the model into a direction that is detrimental to the performance on previous tasks.
+4. Learning without Forgetting (LwF) (Li & Hoiem, 2017) is a knowledge distillation based method, which minimizes the discrepancy between the old model output and the new model output to preserve the knowledge learned from the old tasks.
+5. Bias Correction based Memory Replay (BCMR) (Chrysakis & Moens, 2023). This baseline is constructed by integrating the navie memory replay with the data sampling bias correction strategy (Chrysakis & Moens, 2023). In other words, the method does not train the data immediately after observing the data. Instead, it stores the observed data into a memory buffer. Whenever testing is required, the model will be trained over all buffered data.
+6. Scheduled Data Prior (SDP) (Koh et al., 2023) considers that the importance of new and old data is dependent on the specific characteristics of the given data, therefore balance the contribution of new and old data based on a data-driven approach. Since the condition assumed for $c^2$ in SDP (Koh et al., 2023) does not align with the actual situation in our experiments, the parameter $\alpha$ and $\beta$ is Eq. (9) of SDP (Koh et al., 2023) are manually selected in our experiments.
+7. Joint Training (Joint) jointly trains a given model on all data instead of following the sequential continual learning setting.
+
+# A.4 MODEL EVALUATION
+
+Different from standard learning setting with only one task to learn and evaluate, in our setting, the model will continually learn on a sequence of systems, therefore the setting and evaluation are significantly different. In the model training stage, the model is trained over a system sequence. In the testing stage, the model will be tested on all learned tasks. Therefore the model will have multiple performance corresponding to different tasks, and the most thorough evaluation metric is the performance matrix $\mathbf{M}^p\in \mathbb{R}^{N\times N}$ , where $\mathbf{M}_{i,j}^p$ denotes the performance on the $j$ -system after learning from the 1-st to the $i$ -th system, and $N$ is the number of systems in the sequence. In our experiments, each entry of $\mathbf{M}^p$ is a mean square error (MSE) value. To evaluate the overall performance on a sequence, the average performance (AP) over all learnt tasks after learning multiple tasks could be calculated. For example, i.e., $\frac{\sum_{j = 1}^{i}\mathbf{M}_{N,j}^{p}}{N}$ corresponds to the average model performance after learning the entire sequence with $N$ tasks. Similarly, the average forgetting (AF) after $N$ tasks can be formulated as $\frac{\sum_{j = 1}^{N - 1}\mathbf{M}_{N,j}^{p} - \mathbf{M}_{j,j}^{p}}{N - 1}$ . These metrics are widely adopted in continual learning works (Chaudhry et al., 2018; Lopez-Paz & Ranzato, 2017; Liu et al., 2021; Zhang et al., 2023a; Zhou & Cao, 2021), although the names are different in different works.
+
+For convenience, the performance matrix can be visualized as a color map (Figure 6). For example, they are named as Average Accuracy (ACC) and Backwarde Transfer (BWT) in (Chaudhry et al., 2018; Lopez-Paz & Ranzato, 2017), Average Performance (AP) and Average Forgetting (AF) in (Liu et al., 2021), Accuracy Mean (AM) and Forgetting Mean (FM) in (Zhang et al., 2023a), and performance mean (PM) and forgetting mean (FM) in (Zhou & Cao, 2021).
+
+# A.5 PERFORMANCE MATRIX ANALYSIS
+
+Given a visualized performance matrix, we should approach it from two different dimensions. First, the $i$ -th row of the matrix denotes the performance on each previously learned system after the
+
+model has learned from the 1-st system to the $i$ -th system. Second, to check the performance of a specific system over the entire learning process, we check the corresponding column. For example, in Figure 6 (e), each column maintains a stable color from the top to the bottom. This indicates that the performance of each system is perfectly maintained with little forgetting. But if the color becomes darker and darker from top to bottom (increasing MSE), it indicates that the corresponding method is exhibiting obvious forgetting problem.
\ No newline at end of file
diff --git a/ICLR/2025/Learning system dynamics without forgetting/images.zip b/ICLR/2025/Learning system dynamics without forgetting/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..2937e1e6567dc56c1fb1b87594cbeaca80591144
--- /dev/null
+++ b/ICLR/2025/Learning system dynamics without forgetting/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:dbad24bdbfe788160dcf4de12898301b7d0bd05a1b83c6f611f5014a022eb8e9
+size 684624
diff --git a/ICLR/2025/Learning system dynamics without forgetting/layout.json b/ICLR/2025/Learning system dynamics without forgetting/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..d8dee3e7ee708b7ab2b082437768e31580e8de95
--- /dev/null
+++ b/ICLR/2025/Learning system dynamics without forgetting/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e8b7ca43c2b273cb6aa87217175ee207720a63de52cbff8eaa09e15c26f83987
+size 692672
diff --git a/ICLR/2025/Learning the Complexity of Weakly Noisy Quantum States/d6c5d819-b9c6-49a7-9cc1-a056f12425aa_content_list.json b/ICLR/2025/Learning the Complexity of Weakly Noisy Quantum States/d6c5d819-b9c6-49a7-9cc1-a056f12425aa_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..0cedc8cdd1f61b2b6f06857030291c3b26ecc8cf
--- /dev/null
+++ b/ICLR/2025/Learning the Complexity of Weakly Noisy Quantum States/d6c5d819-b9c6-49a7-9cc1-a056f12425aa_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:18322ffcc46bd1a2f0177999634ad9283880e44a6243f9bff2166410745d91a1
+size 215719
diff --git a/ICLR/2025/Learning the Complexity of Weakly Noisy Quantum States/d6c5d819-b9c6-49a7-9cc1-a056f12425aa_model.json b/ICLR/2025/Learning the Complexity of Weakly Noisy Quantum States/d6c5d819-b9c6-49a7-9cc1-a056f12425aa_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..ad2d27506b1d62105cec8fa3a0f9a0403048ea47
--- /dev/null
+++ b/ICLR/2025/Learning the Complexity of Weakly Noisy Quantum States/d6c5d819-b9c6-49a7-9cc1-a056f12425aa_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0bb01a6c8a3cda95ded6c3dde564df8946000a45fae61db105febe6c2134d55f
+size 254875
diff --git a/ICLR/2025/Learning the Complexity of Weakly Noisy Quantum States/d6c5d819-b9c6-49a7-9cc1-a056f12425aa_origin.pdf b/ICLR/2025/Learning the Complexity of Weakly Noisy Quantum States/d6c5d819-b9c6-49a7-9cc1-a056f12425aa_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..0b235a38518c200969bb891687f13e6df75c3011
--- /dev/null
+++ b/ICLR/2025/Learning the Complexity of Weakly Noisy Quantum States/d6c5d819-b9c6-49a7-9cc1-a056f12425aa_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c1bd8d064263a7bceee96a72a05af8a2af236b7f45eb4b9a91ee7b4be2b573e5
+size 1051312
diff --git a/ICLR/2025/Learning the Complexity of Weakly Noisy Quantum States/full.md b/ICLR/2025/Learning the Complexity of Weakly Noisy Quantum States/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..e7e774c9e396f16ff55534476afa6aa1816b29a6
--- /dev/null
+++ b/ICLR/2025/Learning the Complexity of Weakly Noisy Quantum States/full.md
@@ -0,0 +1,1033 @@
+# LEARNING THE COMPLEXITY OF WEAKLY NOISY QUANTUM STATES
+
+Yusen Wu $^{1,2}$ , Bujiao Wu $^{*3,4,5,6}$ , Yanqi Song $^{7}$ , Xiao Yuan $^{6}$ & Jingbo B. Wang $^{\dagger 2}$
+
+1 School of Artificial Intelligence, Beijing Normal University, Beijing, 100875, China
+2 Department of Physics, The University of Western Australia, Perth, WA 6009, Australia
+3 Shenzhen Institute for Quantum Science and Engineering,
+Southern University of Science and Technology, Shenzhen 518055, China
+4 International Quantum Academy, Shenzhen 518048, China
+5 Dahlem Center for Complex Quantum Systems, Freie Universität Berlin, 14195 Berlin, Germany
+6 Center on Frontiers of Computing Studies, Peking University, Beijing 100871, China
+7 China Academy of Information and Communications Technology, Beijing, 100191, China
+$^{*}$ bujiaowu@gmail.com, †jingbo.wang@uwa.edu.au
+
+# ABSTRACT
+
+Quantifying the complexity of quantum states is a longstanding key problem in various subfields of science, ranging from quantum computing to the black-hole theory. The lower bound on quantum pure state complexity has been shown to grow linearly with system size (Haferkamp et al., 2022). However, extending this result to noisy circuit environments, which better reflect real quantum devices, remains an open challenge. In this paper, we explore the complexity of weakly noisy quantum states via the quantum learning method. We present an efficient learning algorithm, that leverages the classical shadow representation of target quantum states, to predict the circuit complexity of weakly noisy quantum states. Our algorithm is proved to be optimal in terms of sample complexity accompanied with polynomial classical processing time. Our result builds a bridge between the learning algorithm and quantum state complexity, meanwhile highlighting the power of learning algorithm in characterizing intrinsic properties of quantum states.
+
+# 1 INTRODUCTION
+
+The concept of quantum complexity has deep connections to high-energy physics, quantum many-body systems, and black-hole physics (Bouland et al., 2019b; Brown et al., 2016a,b; Stanford & Susskind, 2014; Susskind, 2016). A problem is deemed "easy" if it is soluble with a (quantum) circuit whose size grows polynomially with the size of the inputs, while the problem is deemed "hard" if the size of the (quantum) circuit scales exponentially. In the context of quantum computation, the complexity of an $n$ -qubit quantum state corresponds to the minimum number of gates required to prepare it from the initial state $|0^n\rangle$ (Haferkamp et al., 2022). Brown and Susskind's conjecture suggests that the complexity of quantum states generated by random quantum circuits grows linearly before it saturates after reaching an exponential size (Brown & Susskind, 2018; Susskind, 2018), which is supported by the complexity geometry theory proposed by Nielsen et al. (2006). Recent works theoretically proved this conjecture by connecting quantum state complexity to unitary $t$ -designs (Brandão et al., 2021; Jian et al., 2022) and the dimension of semi-algebraic sets (Haferkamp et al., 2022), demonstrating a rigorous computational ability separation between shallow and deep quantum circuits.
+
+However, in the practical world, the quantum system may interact with the surrounding environment, which inevitably introduces a noise signal, making the pure state noisy. For example, in the current noisy-intermediate-scale-quantum device (Boixo et al., 2018; Arute et al., 2019; Zhong et al., 2020; Wu et al., 2021), a certain level (constant) of noise exists in each quantum gate, resulting in noisy states prepared by $\Omega (\log n)$ -depth noisy circuits is classically simulable in both mean value computation and random circuit sampling problems (Stilck Franca & Garcia-Patron, 2021; Aharonov et al., 2022). These facts exhibit a trend that is completely different from the case of pure quantum
+
+states: increasing the depth of the noisy circuit reduces the quantum state complexity. However, it is still unclear how to extend previous arts (Brandão et al., 2021; Jian et al., 2022; Haferkamp et al., 2022) to the noisy environment, and how to characterize the noisy quantum state complexity is still an open problem.
+
+On the other hand, learning algorithms have recently been considered a powerful means to study and understand many-particle quantum systems and the associated quantum processes (Carleo & Troyer, 2017; Carrasquilla & Melko, 2017; Glasser et al., 2018; Torlai et al., 2018; Moreno et al., 2020; Torlai & Melko, 2016; Schindler et al., 2017; Greplova et al., 2020; Wetzel, 2017; Huang et al., 2022; Wu et al., 2023b; Du et al., 2022). Specifically, Huang et al. (2022) explored the power of the learning algorithm in classifying quantum phases of matter by learning through the classical shadow (Huang et al., 2020), an efficient classical representation of the quantum state. The strong connection between quantum state complexity and quantum phase transition phenomena Huang et al. (2015) motivates us to explore the complexity of noisy quantum states using a learning algorithm.
+
+Here, we focus primarily on the complexity of weakly noisy quantum states to avoid the anti-concentration property (Deshpande et al., 2022), an undesirable distribution in quantum simulation and quantum approximate optimization algorithms. The $n$ -qubit weakly noisy quantum states are generated by circuits with a depth of $\tilde{R} \leq O(\mathrm{poly}\log n)$ and a noise strength of $\mathcal{O}(1 / n)$ .1 We focus on an essential and natural problem: Given $\mathrm{poly}(n)$ copies of $n$ -qubit unknown weakly noisy quantum state, how to predict its complexity?
+
+To answer this question, we develop a learning approach to solve this problem, which is illustrated in Fig. 1. Following the strong quantum state complexity proposed by Brandão et al. (2021), the learning algorithm pertains to determine whether an unknown weakly noisy state $\rho^2$ can be $\epsilon$ -distinguished from the maximally mixed state by a measurement operator induced by a specific quantum circuit architecture (QCA) (shown in Fig. 1(b)). The size of the measurement operator provides a state complexity upper bound (Brandão et al., 2021). More specifically, the problem asks whether there exists a measurement operator $M$ induced by a specific QCA, such that
+
+$$
+\max _ {\substack {M = U \left|0^{n}\right\rangle \left\langle 0^{n} \mid U^{\dagger} \right. \\ U \in \mathcal{U}_{A}(R)}} \left| \operatorname{Tr}\left(M\left(\rho - I_{n} / 2^{n}\right)\right) \right| \geq \Omega (1 - \epsilon), \tag{1}
+$$
+
+where $\mathcal{A}$ denotes a QCA architecture and $\mathcal{U}_A(R)$ contains all $R$ -depth QCA circuits induced by $\mathcal{A}$ . The quantum state complexity can be bounded by $\mathcal{O}(nR)$ , provided that Eq. 1 is satisfied. In general, the circuit set $\mathcal{U}_A$ contains an exponential number of candidate circuits $U$ , making direct enumeration impractical. We address this challenge by revealing a specific property of QCA circuits, as outlined in Theorem 1. This property allows the behavior of an observable $M$ , generated by any circuit in $\mathcal{U}_A$ , to be approximated by a linear combination of $\mathrm{poly}(n)$ random QCA circuits from $\mathcal{U}_A$ . Leveraging this, we reformulate the complexity prediction problem into the optimization of a linear function over a compact set, which is both sample-efficient and computationally efficient, as demonstrated in Theorem 2 and illustrated in Fig. 1 (c). We finally show the sample complexity of our learning algorithm is optimal with respect to the noisy circuit depth $\tilde{R}$ , as demonstrated in Theorem 3.
+
+We note that learning the quantum state complexity has broad applications. Firstly, the predicted complexity enables the classification of the target unknown state $\rho$ into one of the following scenarios: (i) $\rho$ can be approximated by an estimator generated by constant-depth noiseless circuits, which is amenable to classical simulation (Napp et al., 2022; Bravyi et al., 2021), (ii) $\rho$ can be approximated using noiseless circuits with sub-logarithmic depth, a task that may present classical computational challenges, as discussed in Ref. (Deshpande et al., 2022), and (iii) $\rho$ cannot be approximated by any linear combination of circuits constrained to a specific architecture with a depth of at most $\log n$ . Besides benchmarking the NISQ computational power (whether its output can be classically simulated), the proposed quantum algorithm and predicted weakly noisy state complexity may have
+
+practical applications in various fields, including understanding the black hole theory and the quantum phase transition. For example, in the context of the Anti-de-Sitter-space/Conformal Field Theory (AdS/CFT) correspondence, the "complexity equals volume" conjecture (Stanford & Susskind, 2014) suggests that the boundary state of the correspondence has a complexity proportional to the volume behind the event horizon of a black hole in the bulk geometry. However, when measuring the boundary state, the interaction with the surrounding environment inevitably introduces a noise signal, making the pure state noisy. Furthermore, in quantum many-body systems, quantum phase transitions occur when the external parameters varies (Sachdev, 1999), and the ability to correctly predict the quantum phase transition boundary can help us understand many strong-correlated systems (Zheng et al., 2017). It is known that quantum topological phases can be distinguished by their ground state complexity (Huang et al., 2015), and the shadow tomography (Huang et al., 2020; 2022) method utilized quantum channels to provide a noisy state approximation to the ground state. Predicting complexity of such noisy ground state approximations may recognize the topological phases of matter.
+
+
+(a)
+(b)
+
+
+Figure 1: (a) An efficient quantum-to-classical representation conversion method that leverages the classical shadow of a noisy state (Huang et al., 2020). By measuring $\mathrm{poly}(n)$ copies of the state, it can construct a classical representation $\hat{\rho}$ that enables the prediction of the state's properties with a rigorous performance guarantee. Here, $\rho_{\mathrm{un}}$ represents a noisy state generated by a $\bar{R}$ -depth noisy quantum circuit model which is defined as Def. 2, and $\hat{\rho}$ represents the classical shadow of $\rho_{\mathrm{un}}$ . (b) A QCA model with $R$ blocks, where each block corresponds to a causal slice, and the overall architecture follows the design of $\mathcal{A}$ . (c) Visualization of the complexity prediction process via a quantum learning algorithm (Alg. 1), where $\mathcal{L}_R(\vec{\beta},\hat{\rho}_{\mathrm{QCA}},\hat{\rho})$ represents a metric in measuring the distance between $\hat{\rho}$ and $\hat{\rho}_{\mathrm{QCA}}$ states, which is defined in Eq. 11. The blue Bloch sphere illustrates the relationship between a $\bar{R}$ -block weakly noisy quantum state $\hat{\rho}$ and its nearest pure state. All pure states reside on the surface of the $n$ -qubit Bloch sphere, with the maximum mixed state $I_n / 2^n$ located at the center of the sphere. In the regime where $\tilde{R} < \mathcal{O}(\log n)$ and for a small noise strength $p < 1 / n$ , the weakly noisy state $\hat{\rho} = \rho_1$ is located near the surface of the sphere, while $\hat{\rho} = \rho_2$ locates near the maximum mixed state.
+
+
+(c)
+
+# 2 THEORETICAL BACKGROUND
+
+To clearly demonstrate the motivation and contribution of this work, we review the related theoretical backgrounds in terms of quantum state complexity, noisy quantum states, and the architecture of quantum circuits.
+
+Here, we consider the quantum state complexity of an $n$ -qubit quantum pure state $|\psi \rangle$ . The complexity of a quantum state is the minimal circuit size required to implement a measurement operator that
+
+suffices to distinguish $|\psi \rangle \langle \psi |$ from the maximally mixed state $I_{n} / 2^{n}$ . Since any pure state $|\psi \rangle \langle \psi |$ satisfies $\frac{1}{2}\| |\psi \rangle \langle \psi | - I_n / 2^n\| _1 = 1 - 2^{-n}$ , which is achieved by the optimal measurement strategy $M = |\psi \rangle \langle \psi |$ , such trace distance can be used to quantify the quantum state complexity. Let $\mathbb{H}_{2^n}$ denote the space of $2^{n}\times 2^{n}$ Hermitian matrices, and for fixed $c\in \mathbb{N}$ , we consider a class of measurement operators $M_{c}(2^{n})\subset \mathbb{H}_{2^{n}}$ that can be constructed by at most $c$ 2-local gates. The maximal bias achievable for quantum states with such a restricted set of measurements of the solution is defined as:
+
+$$
+\xi_ {Q S} (c, | \psi \rangle) = \max _ {M \in M _ {c} \left(2 ^ {n}\right)} \left| \operatorname {T r} \left(M \left(| \psi \rangle \langle \psi | - I _ {n} / 2 ^ {n}\right)\right) \right|, \tag {2}
+$$
+
+where $|\psi \rangle = V|0^n\rangle$ for some $V\in \mathrm{SU}(2^{n})$ . Noting that the above metric $\xi_{QS}(c,|\psi \rangle)$ degenerates to $1 - 2^{-n}$ when $c\to \infty$ . For example, if the quantum state $|\psi \rangle$ can be easily prepared by a quantum computer (such as computational basis states), $\xi_{QS}(c,|\psi \rangle)$ converges to $1 - 2^{-n}$ rapidly as $c$ increases. In contrast, for a general quantum state $|\psi \rangle$ , $\xi_{QS}$ requires an exponentially large $c$ to approach $1 - 2^{-n}$ . Using this property, the quantum state complexity can be defined as follows:
+
+Definition 1 (Approximate State Complexity (Brandão et al., 2021)) Given an integer $c$ and $\epsilon \in (0,1)$ , we say a pure quantum state $|\psi\rangle$ has $\epsilon$ -strong state complexity at most $c$ if and only if
+
+$$
+\xi_ {Q S} (c, | \psi \rangle) \geq 1 - \frac {1}{2 ^ {n}} - \epsilon , \tag {3}
+$$
+
+which is denoted as $C_{\epsilon}(|\psi \rangle) \leq c$ .
+
+Due to imperfections in quantum hardware devices, two causal slices $^3$ are separated by a quantum channel $\mathcal{E}$ . In this paper, we consider $\mathcal{E}$ to represent a general noise channel which is both gate-independent and time-invariant, such as the local-depolarizing channel, the global-depolarizing channel, the bit-flip channel and other common noise models.
+
+Definition 2 (Weakly Noisy Quantum State) We assume that the noise in the quantum device is modeled by a gate-independent Pauli noise channel $\mathcal{E}$ with error rate $p$ . Let $\mathcal{U}$ be a causal slice, and let $\mathcal{E} \circ \mathcal{U}$ be the representation of a noisy gate. We define the $\tilde{R}$ -depth noisy quantum state with noise strength $p$ as
+
+$$
+\rho_ {p, \tilde {R}} = \mathcal {E} \circ \mathcal {U} _ {\tilde {R}} \circ \mathcal {E} \circ \mathcal {U} _ {\tilde {R} - 1} \circ \dots \circ \mathcal {E} \circ \mathcal {U} _ {1} (| 0 ^ {n} \rangle \langle 0 ^ {n} |). \tag {4}
+$$
+
+We use the term "weakly noisy quantum states" to refer to noisy states $\rho_{p,\tilde{R}}$ with $\tilde{R} \leq \mathcal{O}(\mathrm{poly}\log n)$ and small error rate $p$ such that $p < \mathcal{O}(n^{-1})$ .
+
+# 3 PROBLEM STATEMENT
+
+# 3.1 WEAKLY NOISY STATE COMPLEXITY
+
+In this paper, we assume multiple copies of a weakly noisy quantum state $\rho$ are provided, and we utilize a learning approach to predict its quantum state complexity, accessing only one copy at a time. In the learning phase, we don't have any information on $\rho$ , as a result, it is generally difficult to exclude shortcuts that could improve the efficiency of a computation. As a result, deriving quantum complexity measures for weakly noisy states may be challenging without additional assumptions. Here, we supplement limitations to the operator architecture, which leads to the limited-structured quantum state complexity.
+
+Definition 3 (Limited-Structured (LS) Complexity of Weakly Noisy State) Given an integer $c$ and $\epsilon \in (0,1)$ , we say a weakly noisy state $\rho$ has $\epsilon$ -LS complexity at most $c$ if and only if
+
+$$
+\max _ { \begin{array}{c} M _ {c} = U | 0 ^ {n} \rangle \langle 0 ^ {n} | U ^ {\dagger} \\ U \in \mathcal {U} _ {A} ([ c / L ]) \end{array} } \left| \operatorname {T r} \left(M _ {c} \left(\rho - I _ {n} / 2 ^ {n}\right)\right) \right| \geq 1 - \frac {1}{2 ^ {n}} - \epsilon \tag {5}
+$$
+
+which is denoted as $C_{\epsilon}^{\mathrm{lim}, \mathcal{A}}(\rho) \leq c$ . The notation $L$ represents the number of gates in each layer of $U \in \mathcal{U}_{\mathcal{A}}^{4}$ , and $\epsilon$ is termed as the LS error.
+
+The measurement operator $M_{c}$ (in Def 3) is limited by the architecture $\mathcal{U}_{A}$ . It is interesting to note that the LS complexity provides an upper bound for $C_{\epsilon}(\rho_{\mathrm{un}})$ , that is,
+
+$$
+C _ {\epsilon} (\rho) \leq C _ {\epsilon} ^ {\operatorname * {l i m}, \mathcal {A}} (\rho) \leq c.
+$$
+
+Now, we provide an insight on why Def. 1 can be modified to Def. 3 which characterized the weakly noisy quantum state complexity.
+
+Fact 1 Suppose we are given a general noise channel $\mathcal{E}(\cdot) = \sum_{l=1}^{K} K_l(\cdot) K_l^\dagger$ and a $\tilde{R}$ -depth noisy state $\rho_{\tilde{R}} = \bigcirc_{r=1}^{\tilde{R}} \mathcal{E} \circ \mathcal{U}_r(|0^n\rangle \langle 0^n|)$ , where the $K_l$ represent $n$ -qubit Kraus operators and the $\mathcal{U}_r$ are drawn independently from a unitary 2-design set $\mathbb{U}$ . If the following relationship holds:
+
+$$
+\tilde {R} \leq \frac {\log \left(\frac {F - 1}{d (d + 1)} (\eta - 1 / d) ^ {- 1}\right)}{\log \left(d ^ {2} - 1\right) - \log (F - 1)}, \tag {6}
+$$
+
+where $d = 2^n$ and $F = \sum_{l=1}^{K} |\mathrm{Tr}(K_l)|^2$ , then for each noisy state $\rho_{\tilde{R}}$ , their corresponding $\tilde{R}$ -depth pure state $|\Psi_{\mathcal{U}_1, \ldots, \mathcal{U}_{\tilde{R}}}\rangle = \bigcirc_{r=1}^{\tilde{R}} \mathcal{U}_r(|0^n\rangle \langle 0^n|)$ satisfies
+
+$$
+\mathbb {E} _ {\mathcal {U} _ {1}, \dots , \mathcal {U} _ {\bar {R}} \sim \mathbb {U}} \left[ \langle \Psi_ {\mathcal {U} _ {1}, \dots , \mathcal {U} _ {\bar {R}}} | \left(\bigcirc_ {r = 1} ^ {\tilde {R}} \mathcal {E} \circ \mathcal {U} _ {r} (| 0 ^ {n} \rangle \langle 0 ^ {n} |\right) | \Psi_ {\mathcal {U} _ {1}, \dots , \mathcal {U} _ {\bar {R}}} \rangle \right] \geq \eta . \tag {7}
+$$
+
+Specifically, $\tilde{R}$ saturates to the bound given in Eq. 6 implies
+
+$$
+\eta (\tilde {R}) = \left(\frac {F - 1}{d ^ {2} - 1}\right) ^ {\tilde {R} - 1} \frac {F - 1}{d (d + 1)} + \frac {1}{d}. \tag {8}
+$$
+
+We leave proof details to Appendix F. A particularly noteworthy aspect of the presented fact is its applicability to general noise models. This allows us to establish a precise relationship between the depth of a quantum circuit $\tilde{R}$ , the noise model $\mathcal{E}$ , and the quality of approximation (purity) $\eta(\tilde{R}) = 1 - \epsilon$ that can be achieved. This result further implies using measurement operators prepared by pure states suffice to distinguish a weakly noisy quantum state to the maximally mixed state, as defined by Def. 3. In light of this, we consider a noisy quantum state with depth $\tilde{R} = \mathcal{O}(\mathrm{poly~log~}n)$ , where the noise is modeled as a local depolarizing channel $\mathcal{E}_i(\cdot) = (1 - p)(\cdot) + p\mathrm{Tr}_i(\cdot)I_2 / 2$ and we have $\eta(\tilde{R}) \approx (1 - p\tilde{R})$ by Eq. 8. Furthermore, we note that Eq. 7 implies that there exists a quantum weakly noisy state $\bigcirc_{r=1}^{\tilde{R}}\mathcal{E} \circ \mathcal{U}_r(|0^n\rangle\langle 0^n|)$ and a quantum pure state $|\Psi_{\mathcal{U}_1,\ldots,\mathcal{U}_{\tilde{R}}}\rangle = \mathcal{U}_{\tilde{R}} \cdots \mathcal{U}_1|0^n\rangle$ such that
+
+$$
+\left. \right. \operatorname {T r} \left[ M _ {\mathcal {U} _ {\tilde {R}} \dots \mathcal {U} _ {1}} \left(\bigcirc_ {r = 1} ^ {\tilde {R}} \mathcal {E} \circ \mathcal {U} _ {r} \left(| 0 ^ {n} \rangle \langle 0 ^ {n} |\right) - I _ {n} / 2 ^ {n}\right)\right] \approx 1 - p \tilde {R} - 2 ^ {- n} \tag {9}
+$$
+
+in the worst-case scenario over the choice of $\mathcal{U}_1,\dots,\mathcal{U}_{\tilde{R}}\sim \mathbb{U}$ (otherwise Eq. 7 may be violated), where the measurement operator $M_{\mathcal{U}_{\tilde{R}}\ldots \mathcal{U}_1} = |\Psi_{\mathcal{U}_1,\ldots ,\mathcal{U}_{\tilde{R}}}\rangle \langle \Psi_{\mathcal{U}_1,\ldots ,\mathcal{U}_{\tilde{R}}}|.$ As a consequence, Definition 1 can be naturally transferred into Definition 3 which characterizes the complexity of quantum weakly noisy states.
+
+# 4 QUANTUM LEARNING TASK AND ALGORITHM
+
+We start by introducing the intrinsic structure of $\mathcal{U}_{\mathcal{A}}$ to devise a parameterized observable $M$ for distinguishing $\rho$ from the maximal entangled state. In general, optimizing an observable $M = U|0^{n}\rangle \langle 0^{n}|U^{\dagger}$ with $\mathcal{U}_A(R)$ is challenging, however, the intrinsic structure of a specific QCA allows for efficient optimization of the observable $M$ . Specifically, we randomly generate a set of $N = \mathrm{poly}(R,n)$ quantum neural network states $\hat{\rho}_{\mathrm{QCA}}(R,\mathcal{A},N) = \{\hat{\rho}_i\}_{i = 1}^N$ with $\hat{\rho}_i$ represents the classical shadow representation of $U_{i}|0^{n}\rangle$ for $U_{i}\in \mathcal{U}_{A}(R)$ (Huang et al., 2020) (Details refer to Appendix K). We then design a parameterized operator that takes the form of $M(\vec{\beta}) = \sum_{i = 1}^{N}\beta_{i}\hat{\rho}_{i}$ .
+
+Theorem 1 (Intrinsic Structure of specific QCA) Randomly select $N$ unitaries from the QCA model $\mathcal{U}_A(R)$ to generate $\hat{\rho}_{\mathrm{QCA}}(R,\mathcal{A},N) = \{\hat{\rho}_i\}_{i = 1}^N$ , where each layer in $U_{i}$ contains $L$ gates. Then for any $n$ -qubit quantum state $\rho$ and projector $M_{\vec{x}} = U(\vec{x})|0^{n}\rangle \langle 0^{n}|U^{\dagger}(\vec{x})$ with
+
+$U(\vec{\pmb{x}})\in \mathcal{U}_{\mathcal{A}}(R)^5$ , there exists a vector $\vec{\beta} (\vec{x})$ belongs to an $N$ -dimensional compact set $\mathcal{D}_{\beta}^{6}$ and $\sum_{j = 1}^{N}\vec{\beta}_{j}(\vec{x}) = 1$ , such that
+
+$$
+\mathbb {E} _ {\vec {\boldsymbol {x}}} \left| \operatorname {T r} \left[ \sum_ {j = 1} ^ {N} \vec {\beta} _ {j} (\vec {\boldsymbol {x}}) \hat {\rho} _ {i} \rho \right] - \operatorname {T r} \left[ M _ {\vec {\boldsymbol {x}}} \rho \right] \right| \leq \sqrt {\frac {L R n ^ {2} \log n}{N}}. \tag {10}
+$$
+
+If $N = LRn^{2}\log n / \epsilon^{2}$ , the above approximation error is upper bounded by $\epsilon$ (We leave proof details to the Appendix $G$ ).
+
+# 4.1 METRIC CONSTRUCTION
+
+Here, we assume QCA states $\hat{\rho}_i$ are sampled from $\mathcal{U}_A(R)$ following the probability distribution $\vec{q}$ , as a result, the metric
+
+$$
+\mathcal {L} _ {R} (\vec {\boldsymbol {\beta}}) = \left| \mathbb {E} _ {\hat {\rho} _ {i} \sim \vec {\boldsymbol {q}}} \operatorname {T r} \left[ M (\vec {\boldsymbol {\beta}}) \left(\hat {\rho} _ {i} - \rho\right) \right] \right| \tag {11}
+$$
+
+is defined over the compact set $\vec{\beta} \in D_{\vec{\beta}}$ . Given a specific parameter $\vec{\beta}$ , we can efficiently calculate the corresponding value of $\mathcal{L}_R(\vec{\beta})$ using classical shadow techniques (Huang et al., 2020; Wu et al., 2023a; Nguyen et al., 2022; Akhtar et al., 2022; Bertoni et al., 2022).
+
+To clarify our algorithm, we define the upper decision interval $\mathrm{UDI}(\epsilon)$ and the lower decision interval $\mathrm{LDI}(\epsilon)$ as follows.
+
+Definition 4 (Decision interval) $\mathrm{UDI}(\epsilon)$ is defined as the integer interval $[u,\infty)$ such that for any $R\in \mathrm{UDI}(\epsilon)$ , it holds that $\max_{\vec{\beta}}\mathcal{L}_R\left(\vec{\beta}\right)\leq \epsilon$ . Similarly, $\mathrm{LDI}(\epsilon)$ is defined as the integer interval $[0,l]$ such that for any $R\in \mathrm{LDI}(\epsilon)$ , we have $\min_{\vec{\beta}}\mathcal{L}_R\left(\vec{\beta}\right)\geq 2\epsilon$ .
+
+Before proposing the quantum learning algorithm, we need the following lemmas to support our method. We elaborate proof details in Appendices H.1 and H.2.
+
+Lemma 1 Consider the metric function $\mathcal{L}_R(\vec{\beta})$ . If the relationship $\max_{\vec{\beta}} \mathcal{L}_R(\vec{\beta}) \leq \epsilon$ holds for any distribution $\vec{q}$ , then $\rho_{\mathrm{un}}$ has the state complexity $C_{\epsilon}^{\lim, \mathcal{A}}(\rho_{\mathrm{un}}) \leq LR$ , where $C_{\epsilon}^{\lim, \mathcal{A}}(\cdot)$ is defined in Def. 3.
+
+Lemma 2 If there exists a distribution $\vec{q}$ such that $\min_{\vec{\beta}} \mathcal{L}_R(\vec{\beta}) > 2\epsilon$ , then with nearly unit probability, $\rho_{\mathrm{un}}$ follows the quantum state complexity lower bound $C_{\epsilon}^{\lim, \mathcal{A}}(\rho_{\mathrm{un}}) > LR$ .
+
+# 4.2 LEARNING TASK STATEMENT
+
+Given the preliminary background above, we now formally define the learning task.
+
+Task 1 (Structured Complexity Prediction $(\mathrm{SCP}(\mathcal{A},\epsilon)))$ Given an architecture $\mathcal{A}$ , an $n$ -qubit weakly noisy quantum state $\rho_{\mathrm{un}}$ (as defined in Eq. 4), and an approximation error $\epsilon$ , design a learning algorithm $\mathrm{QL}_n$ that runs on an ideal quantum device with polynomially many qubits in $n$ , and learns from the unknown quantum state $\rho_{\mathrm{un}}$ , such that the following conditions hold:
+
+1. (Completeness) If there exists an integer $x < \log n$ such that $x \in \mathrm{UDI}(\epsilon)$ , then $\mathrm{QL}_n$ returns True.
+2. (Soundness) If $\log n \in \mathrm{LDI}(\epsilon)$ , then $\mathrm{QL}_n$ returns False.
+3. (Indeterminate case) If all integers $\pmb{x} \in [0, \log n]$ lie in $\mathrm{UDI}^c(\epsilon) \cup \mathrm{LDI}^c(\epsilon)$ , then $\mathrm{QL}_n$ may return either True or False arbitrarily.
+
+To provide a clearer analysis of this task, we introduce the following definition.
+
+Definition 5 (Distinguishable Property, $\mathrm{DP}(\mathcal{A},\epsilon)$ ) We say an $n$ -qubit weakly noisy quantum state $\rho_{\mathrm{un}}$ satisfies $\mathrm{DP}(\mathcal{A},\epsilon)$ if $\rho_{\mathrm{un}}$ can be distinguished from $I_n / 2^n$ with the bias at least $1 - 2^{-n} - \epsilon$ by using a $R$ -depth ( $R < \log n$ ) QCA measurement $M_{\mathrm{QCA}} = U|0^n\rangle \langle 0^n|U^\dagger$ , where $U \in \mathcal{U}_A$ .
+
+We note that the learning algorithm $\mathrm{QL}_n$ returns True (respectively, False) to indicate that $\rho_{\mathrm{un}}$ does (does not) satisfy the $\mathrm{DP}(\mathcal{A},\epsilon)$ property.
+
+# 4.3 QUANTUM LEARNING ALGORITHM FOR LIMITED-STRUCTURED COMPLEXITY ANALYSIS
+
+Based on Theorem 1, optimizing the metric function $\mathcal{L}_R(\vec{\beta})$ can be limited into a compact set. Taking the maximization task as an example, we show how to utilize the Bayesian optimization on a compact set as Alg. 2 in Appendix I, which is termed as the BMaxS. Specifically, the subroutine BMaxS, which is essentially a Bayesian optimization, takes unknown state $\rho_{\mathrm{un}}$ , QCA state set, and LS-error $\epsilon$ as inputs, after $T$ steps, it outputs True if $R \in \mathrm{UDI}(\epsilon)$ holds, outputs False otherwise. This subroutine can be used as a building block to construct a quantum learning algorithm that verifies whether the completeness condition of Task 1 holds. Likewise, BMaxS can also be applied to verify the soundness condition. For the remaining (inconclusive) case, we return a random outcome (True or False), thereby providing an efficient solution to Task 1.
+
+Given the fact that a structured unitary set that $\mathcal{U}_A(R - 1)$ is strictly contained in $\mathcal{U}_A(R)$ (Haferkamp et al., 2022), the boolean function
+
+$$
+\mathcal {P} (R, \epsilon) = \operatorname {B M a x S} \left(\rho_ {\mathrm {u n}}, \hat {\rho} _ {\mathrm {Q C A}} (R, \mathcal {A}, N), T, \epsilon\right) \tag {12}
+$$
+
+is a monotone predicate in the interval $R \in [1, \log n]$ . Therefore a quantum learning algorithm can be designed by a binary search program where $\mathcal{P}(R, \epsilon)$ is packaged as an oracle. A monotone predicate $\mathcal{P}$ is a boolean function defined on a totally ordered set with the property: if $\mathcal{P}(R, \epsilon) = \text{True}$ , then $\mathcal{P}(R', \epsilon) = \text{True}$ for all $R' \geq R$ in the domain. In our case, $\mathcal{P}$ returns True for the input $R$ when $R \in \mathrm{UDI}(\epsilon)$ holds. As a result, if the noisy state $\rho_{\mathrm{un}}$ satisfies the $\mathrm{DP}(\mathcal{A}, \epsilon)$ property, the $\mathrm{QL}_n$ outputs the minimum $R_{\mathrm{min}} \in [1, \log n]$ enabling $C_{\epsilon}^{\lim, \mathcal{A}}(\rho_{\mathrm{un}}) \leq LR_{\mathrm{min}}$ (True). Otherwise, we test whether $\log n \in \mathrm{LDI}(\epsilon)$ . If this holds, the $\mathrm{QL}_n$ outputs $C_{\epsilon}^{\lim, \mathcal{A}}(\rho_{\mathrm{un}}) > L \log n$ (False). Otherwise, the studied $\rho_{\mathrm{un}}$ and threshold $\epsilon$ would be an invalid case. Details are provided in Alg. 1.
+
+Algorithm 1: Quantum Learning Algorithm for Limited-Structured Complexity Prediction
+Input: Noisy quantum state $\rho_{\mathrm{un}},\epsilon$ Output: The minimum depth $R$ $(R < \log n)$ such that $C_\epsilon^{\mathrm{lim},A}(\rho_{\mathrm{un}})\leq LR$ (True); False if such $R$ does not exist; Or return True/False arbitrarily for invalid cases; 1 Initialize $R\gets 1,s\gets \log (n)$ .
+2 while $s - R > 1$ do
+3 Set $N = LRn^{2}\log n / \epsilon^{2}$ and $T = N^{2}n^{k}$ such that $k\log (n) < n^{k / 2 - 1}\epsilon$ for large $n$ .
+4 if $\mathcal{P}((R + s) / 2,\epsilon) = \text{True do}$
+5 $s\gets \lceil (R + s) / 2\rceil$
+6 else do
+7 $R\gets \lceil (R + s) / 2\rceil$
+8 if $\mathcal{P}(R,\epsilon) = \text{True do}$
+9 return $C_\epsilon^{\mathrm{lim},A}(\rho_{\mathrm{un}})\leq LR$ (True)
+10 else do
+11 if $\mathcal{P}(R,2\epsilon) = \text{False,return} C_\epsilon^{\mathrm{lim},A}(\rho_{\mathrm{un}}) > L\log n$ (False)
+12 else do
+13 return True or False arbitrarily
+
+# 5 THEORETICAL PERFORMANCE GUARANTEE
+
+We will demonstrate that the required number of samplings and processing time for Alg. 1 are both efficient, and the sample complexity is optimal with respect to the noisy circuit depth. Using Theorem 1, we can state the following result.
+
+Theorem 2 Given $\mathrm{poly}(n)$ copies of an $n$ -qubit unknown weakly noisy state $\rho_{\mathrm{un}}$ that is generated by a noisy quantum device with depth $\tilde{R} = \mathcal{O}(\log n)$ (Def. 2) and a particular architecture $\mathcal{A}$ , there exists a $\mathrm{poly}(n, \tilde{R}, 1/\epsilon)$ quantum and classical cost learning algorithm which can efficiently solve the SCP $(\mathcal{A}, \epsilon)$ problem.
+
+The proof of Theorem 2 depends on evaluating the sample complexity of QCA states and unknown noisy state, as well as the related iteration complexity during training the quantum learning algorithm. We analyze the sample and classical computational complexity in the next two subsections as part of the proof outline for this theorem.
+
+# 5.1 SAMPLE COMPLEXITY
+
+The sample complexity of QCA states is promised by Theorem 1, where the number of copies of QCA states $N = LRn^{2}\log n / \epsilon^{2}$ . To evaluate $\mathcal{L}_R(\vec{\beta})$ for $1\leq R\leq \tilde{R}\leq \mathcal{O}(\log n)$ within $\epsilon$ -additive error, the classical shadow representation of $\rho_{\mathrm{un}}$ is shared by all QCA states, by leveraging the classical shadow method (Huang et al., 2020). As a result, the sample complexity of an unknown weakly noisy state is at most $m\leq \mathcal{O}\left(\frac{n^2LR\log n\log(1 / \delta)}{\epsilon^4}\right)$ , where the failure probability $\delta \in (0,1)$ .
+
+Meanwhile, we also give a sample complexity lower bound to demonstrate our learning algorithm is optimal in terms of the circuit depth $\bar{R}$ .
+
+Theorem 3 Given an unknown weakly noisy quantum state $\rho$ prepared by a $R$ -depth quantum circuit affected by $p$ -strength local Pauli noise channels, then any algorithm designed to learn $\rho$ requires at least $m$ samplings in the worst-case scenario, where $m = \frac{(1 - p)^{-2c\tilde{R}}(1 - \delta)^2}{2n}$ , $c = 1/(2\ln 2)$ and constant $\delta \in \mathcal{O}(1)$ .
+
+From the above result and the definition of the quantum weakly noisy state, we know that $p = \mathcal{O}(n^{-1})$ which results in the sample complexity lower bound $\Omega((1 + 2cp\tilde{R})(1 - \delta)^2/(2n))$ . This implies the sample complexity lower bound may linearly grow with the increasing of the circuit layer $\tilde{R}$ , and our learning algorithm is nearly-optimal in terms of the circuit depth $\tilde{R}$ . We leave proof details to Appendix J.
+
+# 5.2 RUNNING TIME ANALYSIS
+
+Here, we provide an analysis of the computational complexity for Alg. 1, including the number of iterations in Alg. 1 and the subroutine BMaxS (Alg. 2) which is a Bayesian optimization algorithm. Denote the global optimum $\vec{\beta}^{*} = \max_{\vec{\beta}\in \mathcal{D}_{\vec{\beta}}}\mathcal{L}_{R}(\vec{\beta})$ , and a natural performance metric for optimizing $\mathcal{P}(R)$ is the simple regret $s_T = \mathcal{L}_R(\vec{\beta}^*) - \mathcal{L}_R(\vec{\beta}^{(T)})$ , which is the difference between the global maximum $\mathcal{L}_R(\vec{\beta}^*)$ and $\mathcal{L}_R(\vec{\beta}^{(T)})$ . Here, $\vec{\beta}^{(T)}$ represents the updated parameter in the $T$ -th step. Obviously, simple regret is non-negative and asymptotically decreases with the increasing iteration complexity $T$ . To build up an explicit connection between $s_T$ and $T$ , the average regret $\mathrm{avr}_T$ is introduced. Specifically, $\mathrm{avr}_T = 1 / T\sum_{t = 1}^{T}\left[\mathcal{L}_R(\vec{\beta}^*) - \mathcal{L}_R(\vec{\beta}^{(T)})\right]$ . Noting that the relationship $s_T\leq \mathrm{avr}_T$ holds for any $T\geq 1$ . In the following, we show that $\mathrm{avr}_T$ is upper bounded by $\mathcal{O}(N\log T / \sqrt{T})$ , and the simple regret $s_T\leq \mathrm{avr}_T\to 0$ with the increase of $T$ . The following theorem derives the average regret bounds for $\mathcal{P}(R) = \mathrm{BMaxS}(\rho_{\mathrm{un}},\hat{\rho}_{\mathrm{QCA}}(R,\mathcal{A},N),T,\epsilon)$ .
+
+Theorem 4 Take the target weakly noisy state $\rho_{\mathrm{un}}$ and QCA state set $\hat{\rho}_{\mathrm{QCA}}(R,\mathcal{A},N)$ into the subroutine $\mathcal{P}(R)$ (Eq. 12). Pick the failure probability $\delta \in (0,1)$ , then there exists a Bayesian approach (details refer to Alg. 2) such that the average regret $\mathrm{avr}_T$ can be upper bounded by
+
+$$
+\operatorname {a v r} _ {T} \leq \mathcal {O} \left(\sqrt {\frac {4 N ^ {2} \log^ {2} T + 2 N \log T \log \left(\pi^ {2} / (6 \delta)\right)}{T}}\right) \tag {13}
+$$
+
+after $T$ optimization steps with $1 - \delta$ success probability, where $N$ represents the number of samples in the QCA state set.
+
+
+(a)
+
+
+(b)
+
+
+(c)
+(f)
+
+
+(d)
+(e)
+Figure 2: (a) Visualization of the 2D transverse field Ising model. (b)-(d) illustrate the trend of the function $\min_{\vec{\beta}}\mathcal{L}_R$ as it varies with the circuit depth $R$ of QCA set. To extract the complexity lower bound of the target quantum state from the plot, we begin by drawing a horizontal line representing the approximation error of the quantum state. For example, in (b), we set $\epsilon' = 0.25$ . Next, we identify the last point where the curve remains above this horizontal line before crossing it, and record the corresponding horizontal coordinate $R$ . This $R$ represents the complexity lower bound of the target quantum state. For instance, in Fig. (b), the blue curve remains above $\epsilon' = 0.25$ until $R = 4$ , indicating a complexity lower bound of $C_{0.125}^{\mathrm{lim},A}(\rho_{\mathrm{TI}}(2,p)) > 4L$ . Similarly, the green curve last remains above $\epsilon' = 0.25$ at $R = 2$ , yielding a complexity lower bound of $C_{0.125}^{\mathrm{lim},A}(\rho_{\mathrm{TI}}(10,p)) > 2L$ , where $L$ represents the number of two-qubit gates in each layer of the architecture $\mathcal{A}$ .
+
+
+
+
+
+Specifically, select an integer $k$ such that $k\log (n) < n^{k / 2}\epsilon$ for all $n > n_0$ , where $n_0$ represents a fixed integer. Then $T = N^2 n^k$ enables the simple regret $s_T$ can be upper bounded by $\epsilon$ , where $N = LRn^2\log n\epsilon^{-2}$ (Theorem 1). The proof details refer to Appendix I.
+
+Finally, noting that Alg. 1 is essentially a binary search program on the interval $[1, \tilde{R}]$ by using the oracle $\mathcal{P}(R,\epsilon) = \mathrm{BMaxS}(\rho_{\mathrm{un}},\hat{\rho}_{\mathrm{QCA}}(R,\mathcal{A},N),T,\epsilon)$ . Therefore, Alg. 1 requires
+
+$$
+\mathcal {O} \left(\frac {1}{\epsilon^ {4}}, n ^ {4 + k}, L ^ {2}, \tilde {R} ^ {2} \log (\tilde {R}), \log (1 / \delta)\right)
+$$
+
+classical time complexity to answer the SCP problem. This thus completes the proof of Theorem 2.
+
+# 6 NUMERICAL SIMULATIONS
+
+Here, we demonstrate how to use the proposed learning method to benchmark the capabilities of noisy state computation, providing numerical evidence to support our theoretical findings. Specifically, we address the fundamental question: Does the complexity of weakly noisy quantum states grow linearly with circuit depth?
+
+We consider to simulate the time dynamics of the Hamiltonian $H = -J\sum_{\langle i,j\rangle}Z_iZ_j + h\sum_iX_i$ on a two-dimensional grid with $(a\times b)$ size, where $J > 0$ represents the coupling of nearest-neighbour spins and $h$ represents the global transverse field strength (see Fig. 2 (a)). To simulate the time evolution circuit $e^{-iH\tau}$ , the first-order Trotter decomposition is utilized (Kim et al., 2023), that is $e^{-iH\tau} = \left[e^{-iH_{\mathrm{ZZ}}\delta t}e^{-iH_{\mathrm{X}}\delta t}\right]^{\tau /\delta t} + \mathcal{O}((\delta t)^2)$ , where $H_{\mathrm{ZZ}}$ represents the spin term, $H_{\mathrm{X}}$ represents the transverse-field term and the evolution time $\tau$ is discretized into $(\tau /\delta t)$ time slices. Then its quantum circuit implementation can be decomposed by $e^{-iH_{\mathrm{ZZ}}\delta t} = \prod_{\langle i,j\rangle}R_{Z_iZ_j}(-2J\delta t)$ and
+
+$e^{-iH_X\delta t} = \prod_iR_{X_i}(2h\delta t)$ . We focus on a small-scale scenario studied in Ref. (Kim et al., 2023), where the system size is $3\times 4$ , angle rotations $-2J\delta t = -\pi /2$ , $h\delta t\in \{\pi /8,\pi /4,\pi /2,3\pi /4,\pi \}$ and each quantum gate is affected by a local depolarizing channel $\mathcal{E}_i$ with strength $p = 10^{-3}$ . Let $\tilde{R} = \lceil \tau /\delta t\rceil$ , then we denote the output quantum weakly noisy state as
+
+$$
+\rho_ {\mathrm {T I}} (\tilde {R}, p) = \bigcirc_ {r = 1} ^ {\tilde {R}} \left[ \mathcal {E} _ {p} \circ \mathcal {U} _ {Z Z} \circ \mathcal {E} _ {p} \circ \mathcal {U} _ {X} \right] (| 0 ^ {n} \rangle \langle 0 ^ {n} |), \tag {14}
+$$
+
+where $\mathcal{U}_{ZZ}(\cdot) = e^{-iH_{ZZ}\delta t}(\cdot)e^{iH_{ZZ}\delta t},\mathcal{U}_X(\cdot) = e^{-iH_X\delta t}(\cdot)e^{iH_X\delta t}$ and the quantum noise channel $\mathcal{E}_p = \otimes_{i = 1}^n\mathcal{E}_i$ . In the numerical simulation, we demonstrated our algorithm on a server with 64 vCPUs and 128 GiB of memory, where the density matrix $\rho_{\mathrm{TI}}(\tilde{R},p)$ and classical shadow set are prepared by the Pennylane package (Bergholm et al., 2018).
+
+In our analysis, we mainly focus on the circuit complexity lower bound of noisy quantum states $\rho_{\mathrm{TI}}(\tilde{R},p)$ with $\tilde{R}\in \{2,10\}$ by using Alg. 1, considering a standard 2D lattice quantum circuit architecture $\mathcal{A}$ to prepare $\hat{\rho}_{\mathrm{QCA}}$ , where each layer has $L = \mathcal{O}(n)$ random two-qubit gates. Visualization of the architecture $\mathcal{A}$ in 1D scenario is given by Fig. 1 (b). To estimate the lower bound, we thus set a small error $(\epsilon = 10^{-2})^7$ and randomly generate $N = n^{2}R$ quantum circuits with varying circuit depths $R\in \{2,3,4,5\}$ based on the architecture $\mathcal{A}$ . Precisely, we tune the linear coefficient $\vec{\beta}$ to minimize the metric functions outlined in Lemma 2, as depicted in Figure 2, where each point represents the mean value of $\min_{\vec{\beta}}\mathcal{L}_R$ by repeating 10 independent experiments, and the error bar represents the standard variance. This strategic adjustment allows us to derive an estimate for the quantum circuit lower bound. More specifically, in Figure 2 (b), we showcase a clear circuit complexity separation between weakly noisy quantum states $\rho_{\mathrm{TI}}(2,p)$ and $\rho_{\mathrm{TI}}(10,p)$ . To see this relationship, Figure 2 (b) demonstrated that $\min_{\vec{\beta}}\mathcal{L}_2(\rho_{\mathrm{TI}}(10,p)) > 0.25$ , meanwhile $\min_{\vec{\beta}}\mathcal{L}_4(\rho_{\mathrm{TI}}(2,p)) > 0.25$ which demonstrate that the circuit complexity $C_{0.125}^{\lim ,\mathcal{A}}(\rho_{\mathrm{TI}}(\tilde{R} = 10,p)) > 2L$ and $C_{0.125}^{\lim ,\mathcal{A}}(\rho_{\mathrm{TI}}(\tilde{R} = 2,p)) > 4L$ (according to Lemma 2), where $L = 3n$ represents the number of random two qubit gates in each layer. This result highlights weakly noisy quantum state complexity lower bound may not grow with the circuit depth, which is dramatically different to that of pure states. Similar phenomenons are witnessed in subfigures. 2 (c)-(f), where a shallower circuit depth weakly noisy states possess higher state complexity lower bound.
+
+# 7 CONCLUSION
+
+The quantum state complexity serves as a measure of inherent properties within quantum states, thereby facilitating a deeper understanding of quantum entanglement information, quantum topological phases, and computational capabilities. In practical applications, collected quantum states are often subject to noise originating from state preparation and quantum measurement (SPAM), as well as limitations imposed by the quantum hardware. Consequently, original pure states are transformed to noisy states through quantum channels. Thus, investigating the quantum state complexity of noisy states holds significant importance in studying information scrambling, the spread of local noise and entanglement throughout the entire system, which is expected to illuminate studies in the field of black-hole theory and condensed-matter physics. In this paper, we investigate the complexity of weakly noisy quantum states through a quantum learning algorithm, which connects two significant concepts in the quantum computational theory. The proposed quantum learning algorithm exploits the intrinsic structure of QCA to build a learning model $\mathcal{L}_R(\beta)$ , whose extreme points reveal the limited-structured complexity. Meanwhile, when considering the sample complexity of target noisy quantum state, our algorithm achieves optimal in terms of the circuit depth $\tilde{R}$ . Moreover, we emphasize that the Bayesian optimizer (given by Alg. 2) is not the unique option, and other optimization algorithms may also work with a similar iteration steps. This highlights the universality of the intrinsic structure of QCA in combination with optimization subroutines.
+
+# ACKNOWLEDGMENTS
+
+We thank Jens Eisert, Philippe Faist, Haihan Wu, Tavis Bennett, John Tanner, and all anonymous reviewers for their helpful comments on this paper. Y. Wu acknowledges the support from the Natural Science Foundation of China Grant (No. 62371050). B. Wu acknowledges the support from the National Natural Science Foundation of China Grant (No. 12405014) and the Research fund of the post-doctor who came to Shenzhen. X. Yuan is supported by the Innovation Program for Quantum Science and Technology Grant (No. 2023ZD0300200), the National Natural Science Foundation of China Grant (No. 12175003 and No. 12361161602), NSAF Grant (No. U2330201). J. B. Wang acknowledges continued support from Pawsey Supercomputing Research Centre.
+
+# REFERENCES
+
+Dorit Aharonov, Xun Gao, Zeph Landau, Yunchao Liu, and Umesh Vazirani. A polynomial-time classical algorithm for noisy random circuit sampling. arXiv preprint arXiv:2211.03999, 2022.
+Ahmed A Akhtar, Hong-Ye Hu, and Yi-Zhuang You. Scalable and flexible classical shadow tomography with tensor networks. arXiv preprint arXiv:2209.02093, 2022.
+Eric R Anschuetz and Bobak T Kiani. Quantum variational algorithms are swamped with traps. Nature Communications, 13(1):7760, 2022.
+Frank Arute, Kunal Arya, Ryan Babbush, Dave Bacon, Joseph C Bardin, Rami Barends, Rupak Biswas, Sergio Boixo, Fernando GSL Brandao, David A Buell, et al. Quantum supremacy using a programmable superconducting processor. Nature, 574(7779):505-510, 2019.
+Matthew JS Beach, Anna Golubeva, and Roger G Melko. Machine learning vortices at the kosterlitz-thouless transition. Physical Review B, 97(4):045207, 2018.
+Ville Bergholm, Josh Izaac, Maria Schuld, Christian Gogolin, Shahnawaz Ahmed, Vishnu Ajith, M Sohaib Alam, Guillermo Alonso-Linaje, B AkashNarayanan, Ali Asadi, et al. Pennylane: Automatic differentiation of hybrid quantum-classical computations. arXiv preprint arXiv:1811.04968, 2018.
+Christian Bertoni, Jonas Haferkamp, Marcel Hinsche, Marios Ioannou, Jens Eisert, and Hakop Pashayan. Shallow shadows: Expectation estimation using low-depth random clifford circuits. arXiv preprint arXiv:2209.12924, 2022.
+Sergio Boixo, Sergei V Isakov, Vadim N Smelyanskiy, Ryan Babbush, Nan Ding, Zhang Jiang, Michael J Bremner, John M Martinis, and Hartmut Neven. Characterizing quantum supremacy in near-term devices. Nature Physics, 14(6):595-600, 2018.
+Adam Bouland, Bill Fefferman, Chinmay Nirkhe, and Umesh Vazirani. On the complexity and verification of quantum random circuit sampling. Nature Physics, 15(2):159-163, 2019a.
+Adam Bouland, Bill Fefferman, and Umesh Vazirani. Computational pseudorandomness, the worm-hole growth paradox, and constraints on the ads/cft duality. arXiv preprint arXiv:1910.14646, 2019b.
+Fernando GSL Brandão, Wissam Chemissany, Nicholas Hunter-Jones, Richard Kueng, and John Preskill. Models of quantum complexity growth. PRX Quantum, 2(3):030316, 2021.
+Sergey Bravyi, David Gosset, and Ramis Movassagh. Classical algorithms for quantum mean values. Nature Physics, 17(3):337-341, 2021.
+Adam R Brown and Leonard Susskind. Second law of quantum complexity. Physical Review D, 97 (8):086015, 2018.
+Adam R Brown, Daniel A Roberts, Leonard Susskind, Brian Swingle, and Ying Zhao. Complexity, action, and black holes. Physical Review D, 93(8):086006, 2016a.
+Adam R Brown, Daniel A Roberts, Leonard Susskind, Brian Swingle, and Ying Zhao. Holographic complexity equals bulk action? Physical review letters, 116(19):191301, 2016b.
+
+Giuseppe Carleo and Matthias Troyer. Solving the quantum many-body problem with artificial neural networks. Science, 355(6325):602-606, 2017.
+Juan Carrasquilla and Roger G Melko. Machine learning phases of matter. Nature Physics, 13(5): 431-434, 2017.
+M Cerezo, Guillaume Verdon, Hsin-Yuan Huang, Lukasz Cincio, and Patrick J Coles. Challenges and opportunities in quantum machine learning. Nature Computational Science, 2(9):567-576, 2022.
+Marco Cerezo, Akira Sone, Tyler Volkoff, Lukasz Cincio, and Patrick J Coles. Cost function dependent barren plateaus in shallow parametrized quantum circuits. Nature Communications, 12(1): 1-12, 2021.
+Senrui Chen, Yunchao Liu, Matthew Otten, Alireza Seif, Bill Fefferman, and Liang Jiang. The learnability of pauli noise. Nature Communications, 14(1):52, 2023.
+Iris Cong, Soonwon Choi, and Mikhail D Lukin. Quantum convolutional neural networks. Nature Physics, 15(12):1273-1278, 2019.
+Abhinav Deshpande, Pradeep Niroula, Oles Shtanko, Alexey V Gorshkov, Bill Fefferman, and Michael J Gullans. Tight bounds on the convergence of noisy random circuits to the uniform distribution. PRX Quantum, 3(4):040329, 2022.
+Yuxuan Du, Zhuozhuo Tu, Xiao Yuan, and Dacheng Tao. Efficient measure for the expressivity of variational quantum algorithms. Physical Review Letters, 128(8):080506, 2022.
+Suguru Endo, Simon C Benjamin, and Ying Li. Practical quantum error mitigation for near-future applications. Physical Review X, 8(3):031027, 2018.
+Ivan Glasser, Nicola Pancotti, Moritz August, Ivan D Rodriguez, and J Ignacio Cirac. Neuralnetwork quantum states, string-bond states, and chiral topological states. Physical Review X, 8 (1):011006, 2018.
+Daniel Gottesman. Stabilizer codes and quantum error correction. California Institute of Technology, 1997.
+Eliska Greplova, Agnes Valenti, Gregor Boschung, Frank Schäfer, Niels Lörch, and Sebastian D Huber. Unsupervised identification of topological phase transitions using predictive models. New Journal of Physics, 22(4):045003, 2020.
+Jonas Haferkamp, Philippe Faist, Naga BT Kothakonda, Jens Eisert, and Nicole Yunger Halpern. Linear growth of quantum circuit complexity. Nature Physics, pp. 1-5, 2022.
+Hsin-Yuan Huang, Richard Kueng, and John Preskill. Predicting many properties of a quantum system from very few measurements. Nature Physics, 16(10):1050-1057, 2020.
+Hsin-Yuan Huang, Michael Broughton, Masoud Mohseni, Ryan Babbush, Sergio Boixo, Hartmut Neven, and Jarrod R McClean. Power of data in quantum machine learning. Nature Communications, 12(1):1-9, 2021.
+Hsin-Yuan Huang, Richard Kueng, Giacomo Torlai, Victor V Albert, and John Preskill. Provably efficient machine learning for quantum many-body problems. Science, 377(6613):eabk3333, 2022.
+Hsin-Yuan Huang, Yunchao Liu, Michael Broughton, Isaac Kim, Anurag Anshu, Zeph Landau, and Jarrod R McClean. Learning shallow quantum circuits. arXiv preprint arXiv:2401.10095, 2024.
+Yichen Huang, Xie Chen, et al. Quantum circuit complexity of one-dimensional topological phases. Physical Review B, 91(19):195143, 2015.
+Sofiene Jerbi, Lukas J Fiderer, Hendrik Poulsen Nautrup, Jonas M Kübler, Hans J Briegel, and Vedran Dunjko. Quantum machine learning beyond kernel methods. arXiv preprint arXiv:2110.13162, 2021.
+
+Shao-Kai Jian, Gregory Bentsen, and Brian Swingle. Linear growth of circuit complexity from brownian dynamics. arXiv preprint arXiv:2206.14205, 2022.
+Hamza Jnane, Jonathan Steinberg, Zhenyu Cai, H Chau Nguyen, and Balint Koczor. Quantum error mitigated classical shadows. PRX Quantum, 5(1):010324, 2024.
+Youngseok Kim, Andrew Eddins, Sajant Anand, KenXuan Wei, Ewout van den Berg, Sami Rosenblatt, Hasan Nayfeh, Yantao Wu, Michael Zaletel, Kristan Temme, and Abhinav Kandala. Evidence for the utility of quantum computing before fault tolerance. Nature, 618:500-505, 2023.
+Zeph Landau and Yunchao Liu. Learning quantum states prepared by shallow circuits in polynomial time. arXiv preprint arXiv:2410.23618, 2024.
+Jarrod R McClean, Sergio Boixo, Vadim N Smelyanskiy, Ryan Babbush, and Hartmut Neven. Barren plateaus in quantum neural network training landscapes. Nature Communications, 9(1):1-6, 2018.
+Kosuke Mitarai, Makoto Negoro, Masahiro Kitagawa, and Keisuke Fujii. Quantum circuit learning. Physical Review A, 98(3):032309, 2018.
+Mehryar Mohri, Afshin Rostamizadeh, and Ameet Talwalkar. Foundations of machine learning. MIT press, 2018.
+Javier Robledo Moreno, Giuseppe Carleo, and Antoine Georges. Deep learning the hohenberg-kohn maps of density functional theory. Physical Review Letters, 125(7):076402, 2020.
+John C Napp, Rolando L La Placa, Alexander M Dalzell, Fernando GSL Brandao, and Aram W Harrow. Efficient classical simulation of random shallow 2d quantum circuits. Physical Review X, 12(2):021021, 2022.
+H Chau Nguyen, Jan Lennart Bönsel, Jonathan Steinberg, and Otfried Gühne. Optimizing shadow tomography with generalized measurements. Physical Review Letters, 129(22):220502, 2022.
+Michael A Nielsen and Isaac L Chuang. Quantum computation and quantum information, volume 2. Cambridge university press Cambridge, 2001.
+Michael A Nielsen, Mark R Dowling, Mile Gu, and Andrew C Doherty. Quantum computation as geometry. Science, 311(5764):1133-1135, 2006.
+Yihui Quek, Daniel Stilck Franca, Sumeet Khatri, Johannes Jakob Meyer, and Jens Eisert. Exponentially tighter bounds on limitations of quantum error mitigation. Nature Physics, 20(10): 1648-1658, 2024.
+Joaquin F Rodriguez-Nieva and Mathias S Scheurer. Identifying topological order through unsupervised machine learning. Nature Physics, 15(8):790-795, 2019.
+Subir Sachdev. Quantum phase transitions. Physics World, 12(4):33, 1999.
+Frank Schindler, Nicolas Regnault, and Titus Neupert. Probing many-body localization with neural networks. Physical Review B, 95(24):245134, 2017.
+Thomas Schuster, Jonas Haferkamp, and Hsin-Yuan Huang. Random unitaries in extremely low depth. arXiv preprint arXiv:2407.07754, 2024.
+Matthias Seeger. Gaussian processes for machine learning. International journal of neural systems, 14(02):69-106, 2004.
+Peter W Shor. Fault-tolerant quantum computation. In Proceedings of 37th conference on foundations of computer science, pp. 56-65. IEEE, 1996.
+Niranjan Srinivas, Andreas Krause, Sham M Kakade, and Matthias W Seeger. Information-theoretic regret bounds for gaussian process optimization in the bandit setting. IEEE transactions on information theory, 58(5):3250-3265, 2012.
+
+Douglas Stanford and Leonard Susskind. Complexity and shock wave geometries. Physical Review D, 90(12):126007, 2014.
+Daniel Stilck Franca and Raul Garcia-Patron. Limitations of optimization algorithms on noisy quantum devices. Nature Physics, 17(11):1221-1227, 2021.
+Leonard Susskind. Computational complexity and black hole horizons. Fortschritte der Physik, 64 (1):24-43, 2016.
+Leonard Susskind. Black holes and complexity classes. arXiv preprint arXiv:1802.02175, 2018.
+Kristan Temme, Sergey Bravyi, and Jay M Gambetta. Error mitigation for short-depth quantum circuits. Physical review letters, 119(18):180509, 2017.
+Giacomo Torlai and Roger G Melko. Learning thermodynamics with boltzmann machines. Physical Review B, 94(16):165134, 2016.
+Giacomo Torlai, Guglielmo Mazzola, Juan Carrasquilla, Matthias Troyer, Roger Melko, and Giuseppe Carleo. Neural-network quantum state tomography. Nature Physics, 14(5):447-450, 2018.
+Sattar Vakili, Kia Khezeli, and Victor Picheny. On information gain and regret bounds in gaussian process bandits. In International Conference on Artificial Intelligence and Statistics, pp. 82-90. PMLR, 2021.
+Evert PL Van Nieuwenburg, Ye-Hua Liu, and Sebastian D Huber. Learning phase transitions by confusion. Nature Physics, 13(5):435-439, 2017.
+Samson Wang, Enrico Fontana, Marco Cerezo, Kunal Sharma, Akira Sone, Lukasz Cincio, and Patrick J Coles. Noise-induced barren plateaus in variational quantum algorithms. Nature communications, 12(1):1-11, 2021.
+Sebastian J Wetzel. Unsupervised learning of phase transitions: From principal component analysis to variational autoencoders. Physical Review E, 96(2):022140, 2017.
+Bujiao Wu, Jinzhao Sun, Qi Huang, and Xiao Yuan. Overlapped grouping measurement: A unified framework for measuring quantum states. Quantum, 7:896, 2023a.
+Yulin Wu, Wan-Su Bao, Sirui Cao, Fusheng Chen, Ming-Cheng Chen, Xiawei Chen, Tung-Hsun Chung, Hui Deng, Yajie Du, Daojin Fan, et al. Strong quantum computational advantage using a superconducting quantum processor. Physical review letters, 127(18):180501, 2021.
+Yusen Wu, Bujiao Wu, Jingbo Wang, and Xiao Yuan. Quantum phase recognition via quantum kernel methods. Quantum, 7:981, 2023b.
+Feidiao Yang, Jiaqing Jiang, Jialin Zhang, and Xiaoming Sun. Revisiting online quantum state learning. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 34, pp. 6607-6614, 2020.
+Bo-Xiao Zheng, Chia-Min Chung, Philippe Corboz, Georg Ehlers, Ming-Pu Qin, Reinhard M Noack, Hao Shi, Steven R White, Shiwei Zhang, and Garnet Kin-Lic Chan. Stripe order in the underdoped region of the two-dimensional hubbard model. Science, 358(6367):1155-1160, 2017.
+Han-Sen Zhong, Hui Wang, Yu-Hao Deng, Ming-Cheng Chen, Li-Chao Peng, Yi-Han Luo, Jian Qin, Dian Wu, Xing Ding, Yi Hu, et al. Quantum computational advantage using photons. Science, 370(6523):1460-1463, 2020.
+
+# A COMPARISON WITH RELATED WORKS
+
+In the context of condensed matter physics, a topological phase transition occurs when the ground states of a family of Hamiltonians exhibit different circuit complexities. This suggests that topological phase classification may help distinguish between low-complexity and high-complexity ground states. The use of learning algorithms to classify quantum phases of matter has been widely studied. Proposals include quantum neural networks (Cong et al., 2019), classical neural networks (Beach et al., 2018; Carrasquilla & Melko, 2017; Greplova et al., 2020; Schindler et al., 2017; Van Nieuwenburg et al., 2017), and other classical machine learning models (Huang et al., 2022; Rodriguez-Nieva & Scheurer, 2019; Wetzel, 2017). However, most previous works lack rigorous theoretical guarantees. Among these studies, Huang et al. (Huang et al., 2022) utilized shadow tomography of the concerned ground states to design an unsupervised machine learning approach guaranteed to classify accurately under certain conditions. The proposed "shadow kernel" can generate quantum entropies by tuning hyperparameters, enabling the approximation of various topological phase order parameters. Compared with Ref. Huang et al. (2022), our learning algorithm can be applied to noisy states and predict complexity, whereas Ref. Huang et al. (2022) mainly focuses on pure ground state classification without providing an explicit metric for characterizing complexity.
+
+On the other hand, learning quantum states and circuits is a long-standing task in the field of quantum machine learning. Previous works generally utilized parameterized circuits to learn approximations of target states and circuits (Mitarai et al., 2018; Yang et al., 2020; Huang et al., 2021; Jerbi et al., 2021; Cerezo et al., 2022). However, variational-based methods generally lack theoretical guarantees and may suffer from the barren plateau phenomenon even in low-depth parameterized circuits (McClean et al., 2018; Cerezo et al., 2021; Anschuetz & Kiani, 2022). Very recently, classical shadow-based learning algorithms have been proposed for reconstructing shallow quantum circuits $U$ (Huang et al., 2024; Landau & Liu, 2024). Nevertheless, these methods require querying $U^{\dagger}$ , which introduces intrinsic limitations in noisy environments since most noisy channels (CPTP maps) may not be invertible. Compared with related works, our method bypasses these limitations by introducing the "Intrinsic Structure property" (as given by Theorem 1), which enables an efficient quantum learning algorithm to predict state complexity in noisy environments.
+
+we would like to point out that Ref. Schuster et al. (2024) does not rule out the possibility that the pure state complexity can be predicted when the target states exhibit certain physical structures, such as the ground state of XXZ models and the toric code, as studied in Ref. Huang et al. (2022). Furthermore, recent works (Huang et al., 2024; Landau & Liu, 2024) have also demonstrated that fixed shallow quantum circuits and quantum pure states (including 1D- $\mathcal{O}(\log n)$ -depth and all-to-all $\mathcal{O}(\log \log n)$ -depth) can be efficiently learned. These results demonstrate significant differences between scenarios with and without 'randomness'. Compared with Ref. (Schuster et al., 2024), our work is more similar to Refs. (Huang et al., 2022; 2024; Landau & Liu, 2024), which focus on a specific quantum state rather than an ensemble.
+
+Furthermore, we would like to highlight the differences between weakly noisy quantum states and pseudorandom quantum states. Specifically, we consider the second-moment statistic property of a set of pseudorandom quantum circuits $U$ whose circuit depth $\tilde{R} \leq \mathrm{poly}\log n$ . In Ref. (Schuster et al., 2024), they claimed that even $\mathcal{O}(\log(n))$ -depth Clifford circuits may approximate the unitary 2-design property given by Haar measure. Then, we may suppose $U = U_{1} \cdots U_{\tilde{R}}$ representing a random Clifford circuit, then for the initial state $|0^{n}\rangle \langle 0^{n}|$ and arbitrary observable $\tilde{O}$ , we have
+
+$$
+M _ {2} (U) = \int_ {U \sim \operatorname {C l} \left(2 ^ {n}\right)} \operatorname {T r} \left[ U | 0 ^ {n} \rangle \langle 0 ^ {n} | U ^ {\dagger} O \right] \operatorname {T r} \left[ U | 0 ^ {n} \rangle \langle 0 ^ {n} | U ^ {\dagger} O \right] = \frac {1}{d \left(d ^ {2} - 1\right)} \left[ \operatorname {T r} ^ {2} [ O ] + \operatorname {T r} [ O ^ {2} ] \right]. \tag {15}
+$$
+
+On the other hand, in the context of weakly noisy environment, the Clifford circuit $U$ may transform to the channel representation $\mathcal{U} = \bigcirc_{r=1}^{\tilde{R}}\mathcal{E} \circ \mathcal{U}_r$ where $\mathcal{E}$ represents a $n$ -qubit Pauli channel and $\mathcal{U}_r = U_r(\cdot)U_r^\dagger$ represents a layer of Clifford gate. According to the "Channel Pushing" lemma given by Ref Quek et al. (2024) (Lemma 10), we may rewrite the noisy channel by $\mathcal{U} = \mathcal{E}' \circ \bigcirc_{r=1}^{\tilde{R}}\mathcal{U}_r$ , where $\mathcal{E}'$ also represents an $n$ -qubit Pauli channel. Let the channel $\mathcal{E}' = \sum_l K_l(\cdot)K_l^\dagger$ , where $K_l$
+
+represents the Kraus operator satisfying $\sum_{l}K_{l}^{\dagger}K_{l} = I$ , we have
+
+$$
+\begin{array}{l} M _ {2} (\mathcal {U}) = \int_ {U \sim \mathrm {C l} (2 ^ {n})} \operatorname {T r} [ \mathcal {U} (| 0 ^ {n} \rangle \langle 0 ^ {n} |) O ] \operatorname {T r} [ \mathcal {U} (| 0 ^ {n} \rangle \langle 0 ^ {n} |) O ] \\ = \sum_ {l _ {1}, l _ {2}} \int_ {U \sim \operatorname {C l} \left(2 ^ {n}\right)} \operatorname {T r} \left[ K _ {l _ {1}} U \left(\left| 0 ^ {n} \right\rangle \langle 0 ^ {n} |\right) U ^ {\dagger} K _ {l _ {1}} ^ {\dagger} O \right] \operatorname {T r} \left[ K _ {l _ {2}} U \left(\left| 0 ^ {n} \right\rangle \langle 0 ^ {n} |\right) U ^ {\dagger} K _ {l _ {2}} ^ {\dagger} O \right] \tag {16} \\ = \sum_ {l _ {1}, l _ {2}} \left(\frac {1}{d (d ^ {2} - 1)} \left(\operatorname {T r} \left(K _ {l _ {1}} O K _ {l _ {1}} ^ {\dagger}\right) \operatorname {T r} \left(K _ {l _ {2}} O K _ {l _ {2}} ^ {\dagger}\right) + \operatorname {T r} \left(K _ {l _ {1}} O K _ {l _ {1}} ^ {\dagger} K _ {l _ {2}} O K _ {l _ {2}} ^ {\dagger}\right)\right)\right). \\ \end{array}
+$$
+
+We note that the interaction term $\sum_{l_1,l_2}\mathrm{Tr}(K_{l_1}OK_{l_1}^\dagger K_{l_2}OK_{l_2}^\dagger)$ may not equal to $\mathrm{Tr}(O^2)$ , and this leads to $M_2(U)\neq M_2(\mathcal{U})$ . This comparison indicates that even if an algorithm can learn the difference between noisy ensembles and Haar-random states, this does not imply that the algorithm can be used to distinguish between pseudorandom ensembles and Haar-random ensembles.
+
+The above discussions demonstrate the fundamental difference between our work and Ref. (Schuster et al., 2024). Such difference implies that the efficiency of our learning algorithm may not contradict the findings presented in Ref. (Schuster et al., 2024).
+
+# B NOISE MODELS ASSUMPTION IN THIS WORK
+
+In the proposed learning approach (Alg 1), the algorithm requires (i) the target weakly noisy quantum state $\rho_{\mathrm{un}}$ , and (ii) the QCA state set $\hat{\rho}_{\mathrm{QCA}}$ . The target weakly noisy state naturally contains noise signals, while the QCA state set $\hat{\rho}_{\mathrm{QCA}}$ is provided by the classical shadow representation (Huang et al., 2020). When preparing the classical shadow, recent result successfully embedded the quantum error mitigation method into the classical shadow protocol, which provides rigorous theoretical guarantees even in the noisy environment (Jnane et al., 2024).
+
+In quantum computing research, the gate-independent noise model assumes that the noise affecting quantum operations is uniform across all gates, regardless of their type or implementation. This simplification is widely adopted for several reasons:
+
+Theoretical Simplification: Assuming gate-independent noise allows researchers to develop and analyze error correction protocols and fault-tolerant methods without delving into the complexities introduced by gate-specific noise characteristics. This uniformity facilitates the derivation of general results and theoretical bounds (Nielsen & Chuang, 2001).
+
+Practical Approximations: In certain quantum systems, particularly those with well-calibrated gates operating on the same number of qubits and utilizing uniform control mechanisms, noise variations across different gates can be negligible (Shor, 1996; Arute et al., 2019). In such cases, the gate-independent noise model serves as a reasonable approximation, streamlining analysis without significantly compromising accuracy.
+
+Alignment with Twirled Noise Models: Techniques like Pauli twirling are employed to transform complex noise channels into diagonal forms on the Pauli basis (Chen et al., 2023). While twirling simplifies the noise structure, it does not inherently eliminate gate dependence. However, in many scenarios, the resulting noise can be approximated as gate-independent, aligning with the assumptions of the model.
+
+The gate-independent noise model provides a foundational framework for understanding error propagation and developing correction strategies, which is a useful abstraction for theoretical exploration and the initial development of error correction methods. We leave an open question of how to depict the gate-dependent noise, which usually happens in larger, more complex quantum architectures.
+
+# C QUANTUM HARDWARE REQUIREMENT
+
+We note that our learning algorithm has very few limitations to the practical quantum hardware. In the Alg. 1, we only require (i) the target weakly noisy quantum state $\rho_{\mathrm{un}}$ , and (ii) the QCA state set $\hat{\rho}_{\mathrm{QCA}}$ , which is essentially the classical shadow representation Huang et al. (2020). When preparing
+
+the classical shadow, recent work has successfully integrated quantum error mitigation methods into the classical shadow protocol, providing rigorous theoretical guarantees in preparing shadows even in noisy environments Jnane et al. (2024). As a result, our Alg 1 only require a quantum computer which supports the quantum error mitigation function, which should have $50 - 100$ noisy qubits with $\geq 0.99$ quantum gate fidelity. Some popular quantum computation platforms may satisfy these requirements and can be used to prepare the required classical shadow, such as Eagle used in Ref. Kim et al. (2023) and Sycamore Arute et al. (2019). This work is essentially a theoretical research, and the algorithm has not yet been explicitly tested on these practical platforms.
+
+# D COMPARISON BETWEEN LOCAL AND GLOBAL NOISE MODELS
+
+We note that the global depolarizing channel is essentially a special case of contracting $n$ local noise models. Specifically, given the global depolarizing channel $\mathcal{E}$ with noisy strength $p_g$ and local depolarizing channel $\otimes_j \mathcal{E}_j$ with strength $p_l$ , according to the relative entropy inequality, for any input state $\rho$ , we can observe the relationships
+
+$$
+D \left(\mathcal {E} (\rho) \| I _ {n} / 2 ^ {n}\right) \leq \left(1 - p _ {g}\right) D \left(\rho \| I _ {n} / 2 ^ {n}\right), \tag {17}
+$$
+
+and
+
+$$
+D \left(\otimes_ {j = 1} ^ {n} \mathcal {E} _ {j} (\rho) \| I _ {n} / 2 ^ {n}\right) \leq (1 - p _ {l}) ^ {n} D \left(\rho \| I _ {n} / 2 ^ {n}\right) \tag {18}
+$$
+
+hold. These inequalities indicate that the global depolarizing channel is much weaker than local noise, given the same noise strength. Consequently, for the global depolarizing channel, our algorithm is capable of handling scenarios where $p_{g} \leq \mathcal{O}(1)$ , while maintaining comparable prediction accuracy. This suggests that the algorithm can effectively handle both types of noise, with only a minor difference in performance under different noise strengths.
+
+# E RELATED DEFINITIONS
+
+Definition 6 (Architecture Haferkamp et al. (2022); Bouland et al. (2019a)) An architecture $\mathcal{A}$ is a directed acyclic graph that contains $|\mathcal{V}| \in \mathbb{Z}_{>0}$ vertices (gates), and two edges (qubits) enter each vertex, and two edges exit. A quantum circuit induced by the architecture $\mathcal{A}$ is denoted as $U_{\mathcal{A}}$ . The circuit set which contains all quantum circuits induced by the architecture $\mathcal{A}$ is denoted by $\mathcal{U}_{\mathcal{A}}$ . The circuit set $\mathcal{U}_{\mathcal{A}}(R)$ contains all $R$ -depth quantum circuits induced by the architecture $\mathcal{A}$ , and we have the relationship
+
+$$
+\mathcal {U} _ {\mathcal {A}} = \cup_ {R > 1} \mathcal {U} _ {\mathcal {A}} (R). \tag {19}
+$$
+
+Definition 7 (Causal Slice) The circuit $U_{\mathcal{A}}$ is a causal slice if there exists a qubit-reachable path between any two qubit-pairs, where the path only passes through vertices (gates) in the architecture $\mathcal{A}$ .
+
+# F PROOF OF FACT 1
+
+Here, we are interested in measuring the quantity $\mathbb{E}_{\mathcal{U}_1,\dots,\mathcal{U}_{\tilde{R}}}\left[\mathrm{Tr}(\rho_{1,\tilde{R}}\rho_{2,\tilde{R}})\right]$ , where $\rho_{1,\tilde{R}} = \bigcirc_{r=1}^{\tilde{R}}\mathcal{E} \circ \mathcal{U}_r(\rho_1), \rho_{2,\tilde{R}} = \bigcirc_{r=1}^{\tilde{R}}\mathcal{U}_r(\rho_2)$ and $\rho_1, \rho_2$ represent initial pure states. Suppose $\mathcal{E}$ can be decomposed by Kraus operators, that is $\mathcal{E}(\cdot) = \sum_{l=1}^{r}K_{l}(\cdot)K_{l}^{\dagger}$ . Then we first consider the scenario $\tilde{R} = 1$ :
+
+$$
+\begin{array}{l} \operatorname {T r} \left(\rho_ {1, 1} \rho_ {2, 1}\right) = \operatorname {T r} \left[ \left(\mathcal {E} \circ \mathcal {U} _ {1} (\rho_ {1}) \mathcal {U} _ {1} (\rho_ {2})\right) \right] \\ = \operatorname {T r} \left[ \operatorname {S w a p} \left(\mathcal {E} \circ \mathcal {U} _ {1} \left(\rho_ {1}\right) \otimes \mathcal {U} _ {1} \left(\rho_ {2}\right)\right) \right] \tag {20} \\ = \sum_ {l = 1} ^ {r} \operatorname {T r} \left[ \operatorname {S w a p} \left(K _ {l} \mathcal {U} _ {1} (\rho_ {1}) K _ {l} ^ {\dagger} \otimes \mathcal {U} _ {1} (\rho_ {2})\right) \right]. \\ \end{array}
+$$
+
+Then taking the average value on a unitary 2 design set, we obtain
+
+$$
+\mathbb {E} _ {\mathcal {U} _ {1}} \operatorname {T r} \left(\rho_ {1, 1} \rho_ {2, 1}\right) = \sum_ {l = 1} ^ {r} \mathbb {E} _ {\mathcal {U} _ {1}} \operatorname {T r} \left[ \operatorname {S w a p} \left((K _ {l} \otimes I _ {n}) (U _ {1} \otimes U _ {1}) (\rho_ {1} \otimes \rho_ {2}) (U _ {1} ^ {\dagger} \otimes U _ {1} ^ {\dagger}) (K _ {l} ^ {\dagger} \otimes I _ {n})\right) \right]. \tag {21}
+$$
+
+Considering the relationship
+
+$$
+\begin{array}{l} \mathbb {E} _ {\mathcal {U} \sim \mathbb {U}} \left[ (U \otimes U) A (U ^ {\dagger} \otimes U ^ {\dagger}) \right] = \left(\frac {\operatorname {T r} (A)}{d ^ {2} - 1} - \frac {\operatorname {T r} (\operatorname {S w a p} A)}{d (d ^ {2} - 1)}\right) I _ {n} \otimes I _ {n} + \left(\frac {\operatorname {T r} (\operatorname {S w a p} A)}{d ^ {2} - 1} - \frac {\operatorname {T r} (A)}{d (d ^ {2} - 1)}\right) \text {S w a p} \tag {22} \\ = \alpha I _ {n} \otimes I _ {n} + \beta \text {S w a p} \\ \end{array}
+$$
+
+where $\mathbb{U}$ is unitary 2-design, then Eq. 21 can be further calculated by
+
+$$
+\begin{array}{l} \mathbb {E} _ {\mathcal {U} _ {1}} \operatorname {T r} \left(\rho_ {1, 1} \rho_ {2, 1}\right) = \sum_ {l = 1} ^ {r} \mathbb {E} _ {\mathcal {U} _ {1}} \operatorname {T r} \left[ \operatorname {S w a p} \left((K _ {l} \otimes I _ {n}) (\alpha I _ {n} \otimes I _ {n} + \beta \operatorname {S w a p}) (K _ {l} ^ {\dagger} \otimes I _ {n})\right) \right] \\ = \alpha \sum_ {l = 1} ^ {r} \operatorname {T r} \left[ \operatorname {S w a p} \left(K _ {l} K _ {l} ^ {\dagger} \otimes I _ {n}\right) \right] + \beta \sum_ {l = 1} ^ {r} \operatorname {T r} \left[ \operatorname {S w a p} \left(K _ {l} \otimes I _ {n}\right) \operatorname {S w a p} \left(K _ {l} ^ {\dagger} \otimes I _ {n}\right) \right] \tag {23} \\ = \alpha \sum_ {l = 1} ^ {r} \operatorname {T r} \left[ K _ {l} K _ {l} ^ {\dagger} \right] + \beta \sum_ {l = 1} ^ {r} | \operatorname {T r} [ K _ {l} ] | ^ {2}. \\ \end{array}
+$$
+
+The last equality comes from
+
+$$
+\begin{array}{l} \operatorname {T r} \left[ \operatorname {S w a p} \left(K _ {l} \otimes I _ {n}\right) \operatorname {S w a p} \left(K _ {l} ^ {\dagger} \otimes I _ {n}\right) \right] = \operatorname {T r} \left[ \operatorname {S w a p} \left(K _ {l} \otimes I _ {n}\right) \left(I _ {n} \otimes K _ {l} ^ {\dagger}\right) \right] \\ = \operatorname {T r} \left[ \operatorname {S w a p} \left(K _ {l} \otimes K _ {l} ^ {\dagger}\right) \right] \tag {24} \\ = \left| \operatorname {T r} \left[ K _ {l} \right] \right| ^ {2}. \\ \end{array}
+$$
+
+Consider $\sum_{l=1}^{r} \operatorname{Tr}\left[K_l K_l^\dagger\right] = \operatorname{Tr}[\mathcal{E}(I_n)] = d$ and denote $F = \sum_{l=1}^{r} |\operatorname{Tr}[K_l]|^2$ , Eq. 21 can be finally expressed as
+
+$$
+\begin{array}{l} \mathbb {E} _ {\mathcal {U} _ {1}} \operatorname {T r} \left(\rho_ {1, 1} \rho_ {2, 1}\right) = \left(\frac {1}{d ^ {2} - 1} - \frac {\operatorname {T r} \left(\rho_ {1} \rho_ {2}\right)}{d \left(d ^ {2} - 1\right)}\right) \operatorname {T r} [ \mathcal {E} (I _ {n}) ] + \left(\frac {\operatorname {T r} \left(\rho_ {1} \rho_ {2}\right)}{d ^ {2} - 1} - \frac {1}{d \left(d ^ {2} - 1\right)}\right) F \tag {25} \\ = \frac {F - 1}{d ^ {2} - 1} \operatorname {T r} \left(\rho_ {1} \rho_ {2}\right) + \frac {1}{d ^ {2} - 1} (d - F / d), \\ \end{array}
+$$
+
+where $d = 2^n$ . Therefore, we obtain a recursive formula for the overlap of the output states, as defined in 25. We have
+
+$$
+\mathbb {E} _ {\mathcal {U} _ {1}, \mathcal {U} _ {1}, \dots , \mathcal {U} _ {\tilde {R}}} \operatorname {T r} \left(\rho_ {1, \tilde {R}} \rho_ {2, \tilde {R}}\right) = \frac {F - 1}{d ^ {2} - 1} \mathbb {E} _ {\mathcal {U} _ {1}, \mathcal {U} _ {1}, \dots , \mathcal {U} _ {\tilde {R} - 1}} \operatorname {T r} \left(\rho_ {1, \tilde {R} - 1} \rho_ {2, \tilde {R} - 1}\right) + \frac {1}{d ^ {2} - 1} (d - F / d). \tag {26}
+$$
+
+Then, we can use this iteration relationship to construct a geometric sequence, that is
+
+$$
+\begin{array}{l} \mathbb {E} _ {\mathcal {U} _ {1}, \mathcal {U} _ {1}, \dots , \mathcal {U} _ {\tilde {R}}} \mathrm {T r} \left(\rho_ {1, \tilde {R}} \rho_ {2, \tilde {R}}\right) - \frac {1}{d} = \left(\frac {F - 1}{d ^ {2} - 1}\right) \left(\mathbb {E} _ {\mathcal {U} _ {1}, \mathcal {U} _ {1}, \dots , \mathcal {U} _ {\tilde {R} - 1}} \mathrm {T r} (\rho_ {1, \tilde {R} - 1} \rho_ {2, \tilde {R} - 1}) - \frac {1}{d}\right) \\ = \left(\frac {F - 1}{d ^ {2} - 1}\right) ^ {\tilde {R} - 1} \left(\mathbb {E} _ {\mathcal {U} _ {1}} \operatorname {T r} \left(\rho_ {1, 1} \rho_ {2, 1}\right) - \frac {1}{d}\right) \\ = \left(\frac {F - 1}{d ^ {2} - 1}\right) ^ {\tilde {R} - 1} \left(\frac {F - 1}{d ^ {2} - 1} + \frac {d ^ {2} - F}{d (d ^ {2} - 1)} - \frac {1}{d}\right) \tag {27} \\ = \left(\frac {F - 1}{d ^ {2} - 1}\right) ^ {\tilde {R} - 1} \frac {F - 1}{d (d + 1)}, \\ \end{array}
+$$
+
+where the last equality comes from initial states $\rho_{1} = \rho_{2} = |0^{n}\rangle \langle 0^{n}|$ . Generally, $F\leq d^{2}$ , then if
+
+$$
+\tilde {R} \leq \frac {\log \left(\frac {F - 1}{d (d + 1)} (\eta - 1 / d) ^ {- 1}\right)}{\log \left(d ^ {2} - 1\right) - \log (F - 1)}, \tag {28}
+$$
+
+we have $\mathbb{E}_{\mathcal{U}_1,\mathcal{U}_1,\ldots ,\mathcal{U}_{\tilde{R}}}\mathrm{Tr}\left(\rho_{1,\tilde{R}}\rho_{2,\tilde{R}}\right)\geq \eta$
+
+# G PROOF OF THEOREM 1
+
+Consider $U(\pmb{\alpha}) = \prod_{r=1}^{LR} U(\pmb{\alpha}_r)$ is composed of $LR$ two-qubit gates
+
+$$
+U \left(\boldsymbol {\alpha} _ {r}\right) = \exp \left(- i \sum_ {j _ {1}, j _ {2} = 0} ^ {4} \alpha_ {r} \left(j _ {1}, j _ {2}\right) \left(P _ {j _ {1}} \otimes P _ {j _ {2}}\right)\right) = \exp \left(- i \langle \boldsymbol {\alpha} _ {r}, \boldsymbol {P} _ {r} \rangle\right), \tag {29}
+$$
+
+where $P_{j}\in \{I,X,Y,Z\}$ and each $\alpha_{r}(j_{1},j_{2})\in [-1,1]^{\mathrm{8}}$ Using Taylor series, one obtains
+
+$$
+U (\boldsymbol {\alpha}) = \prod_ {r = 1} ^ {L R} \sum_ {k = 0} ^ {\infty} \frac {\left(- i \langle \boldsymbol {\alpha} _ {r} , \boldsymbol {P} _ {r} \rangle\right) ^ {k}}{k !}. \tag {30}
+$$
+
+Denote
+
+$$
+U \left(\boldsymbol {\alpha} _ {r}\right) _ {\mathrm {t r}} = \sum_ {k = 0} ^ {K} \frac {\left(- i \langle \boldsymbol {\alpha} _ {r} , \boldsymbol {P} _ {r} \rangle\right) ^ {k}}{k !}, \tag {31}
+$$
+
+therefore $U(\pmb{\alpha}_r) - U(\pmb{\alpha}_r)_{\mathrm{tr}} = \sum_{k = K + 1}^{\infty}\frac{(-i\langle\pmb{\alpha}_r,\pmb{P}_r\rangle)^k}{k!}$ . For arbitrary bit-string $x,y$ , we can apply standard bound on Taylor series to bound
+
+$$
+\left\| \langle x | (U \left(\boldsymbol {\alpha} _ {r}\right) - U \left(\boldsymbol {\alpha} _ {r}\right) _ {\mathrm {t r}}) | y \rangle \right\| _ {1} \leq \kappa / K! \tag {32}
+$$
+
+for some constant $\kappa$ . Therefore we have
+
+$$
+\begin{array}{l} \langle 0 ^ {n} | U ^ {\dagger} (\boldsymbol {\alpha}) \rho U (\boldsymbol {\alpha}) | 0 ^ {n} \rangle = \sum_ {i, j = 0} ^ {2 ^ {n} - 1} \rho_ {i j} \langle 0 ^ {n} | U ^ {\dagger} (\boldsymbol {\alpha}) | i \rangle \langle j | U (\boldsymbol {\alpha}) | 0 ^ {n} \rangle \\ = \sum_{i,j = 0}^{2^{n} - 1}\rho_{ij}\left(\sum_{\substack{y_{1},y_{2},\ldots y_{LR - 1}\in \{0,1\}^{n}\\ y_{LR} = i}}\prod_{r = 1}^{LR}\langle 0^{n}|U(\boldsymbol{\alpha}_{r})|y_{r}\rangle\right)\left(\sum_{\substack{y_{1},y_{2},\ldots y_{LR - 1}\in \{0,1\}^{n}\\ y_{LR} = j}}\prod_{r = 1}^{LR}\langle y_{r}|U(\boldsymbol{\alpha}_{r})|0^{n}\rangle\right) \\ = \sum_ {i, j = 0} ^ {2 ^ {n} - 1} \rho_ {i j} \left(\sum_ {\substack {y _ {1}, y _ {2}, \dots y _ {L R - 1} \in \{0, 1 \} ^ {n} \\ y _ {L R} = i}} \prod_ {r = 1} ^ {L R} \langle 0 ^ {n} | \sum_ {k = 0} ^ {\infty} \frac {(- i \langle \boldsymbol {\alpha} _ {r} , \boldsymbol {P} _ {r} \rangle) ^ {k}}{k !} | y _ {r} \rangle\right). \tag{33} \\ \end{array}
+$$
+
+$$
+\left(\sum_{\substack{y_{1},y_{2},\ldots y_{LR - 1}\in \{0,1\}^{n}\\ y_{LR} = j}}\prod_{r = 1}^{LR}\langle y_{r}|\sum_{k = 0}^{\infty}\frac{(-i\langle\boldsymbol{\alpha}_{r},\boldsymbol{P}_{r}\rangle)^{k}}{k!} |0^{n}\rangle \right),
+$$
+
+where the $y_{1}, y_{2}, \ldots$ represent the Feymann integration path. According to inequality 32, $\langle y_r | U(\pmb{\alpha}_r) | 0^n \rangle$ can be approximated by a polynomial of degree $K$ based on Taylor truncated method, the above expression can be rewritten by
+
+$$
+\sum_ {r, s = 0} ^ {2 ^ {n} - 1} \rho_ {r s} \left(f _ {r} \left(\boldsymbol {\alpha} _ {1}, \dots \boldsymbol {\alpha} _ {L R}\right) + \mathcal {O} \left(\frac {2 ^ {L R n}}{(K !) ^ {L R}}\right)\right) \left(f _ {s} \left(\boldsymbol {\alpha} _ {1}, \dots \boldsymbol {\alpha} _ {L R}\right) + \mathcal {O} \left(\frac {2 ^ {L R n}}{(K !) ^ {L R}}\right)\right), \tag {34}
+$$
+
+where $f_{r}(\alpha_{1},\dots \alpha_{LR})$ represents a multi-variable polynomial of degree $LRK$ .
+
+Furthermore, we will show that Eq. 34 can be approximated by a low-degree function with at most $\binom{LR}{q}(K)^q$ terms, where $q = \mathcal{O}(1)$ . To show this fact, we rewrite Eq. 34 by
+
+$$
+\sum_ {r, s = 0} ^ {2 ^ {n} - 1} \rho_ {r s} f _ {r} \left(\boldsymbol {\alpha} _ {1}, \dots \boldsymbol {\alpha} _ {L R}\right) f _ {s} \left(\boldsymbol {\alpha} _ {1}, \dots \boldsymbol {\alpha} _ {L R}\right). \tag {35}
+$$
+
+For the convenience of the proof, we denote $f_{r}(\alpha_{1},\dots \alpha_{LR}) = f_{r}$ . Let
+
+$$
+f _ {r} f _ {s} = 4 ^ {L R n} \sum_ {\vec {\imath}} \sum_ {j _ {1}, j _ {2}} \boldsymbol {a} _ {\vec {\imath}} \alpha_ {1} ^ {i _ {1}} (j _ {1}, j _ {2}) \dots \alpha_ {L R} ^ {i _ {L R}} (j _ {1}, j _ {2}),
+$$
+
+where the factor $4^{LRn}$ aims to 'normalize' each term in the summation, $\vec{i} = (i_1,\dots,i_{LR})$ , $\vec{\alpha} = (\alpha_{1}(j_{1},j_{2}),\ldots ,\alpha_{LR}(j_{1},j_{2}))$ , $j_{1},j_{2}\in [15]$ and each $0\leq i_l\leq 2K,l\in [LR]$ . For the convenience of the proof, we omit the index $(j_{1},j_{2})$ in $f_{r}f_{s}$ in the following procedure.
+
+Given a constant value $q \leq \mathcal{O}(1)$ , for every term like $a_{\vec{i}}^{\alpha_1^{i_1}} \cdots \alpha_v^{i_v}$ with $i_1 = \cdots = i_v \geq K$ and $v > q$ , its corresponding parameter $|a_{\vec{i}}| \leq 1 / (K!)^q$ (based on Taylor series). Truncate above high-degree terms, and denote
+
+$$
+\tilde {f} _ {r, s} = \sum_ {\substack {j _ {1}, \dots , j _ {q} \leq K - 1 \\ s _ {1} \leq s _ {2} \dots \leq s _ {q} \leq L R}} \boldsymbol {a} _ {\vec {j}, \vec {s}} ^ {j _ {1}} \alpha_ {s _ {1}} ^ {j _ {1}} \dots \alpha_ {s _ {q}} ^ {j _ {q}}, \tag{36}
+$$
+
+therefore, the relationship
+
+$$
+\left| f _ {r} f _ {s} - \tilde {f} _ {r, s} \right| = 4 ^ {L R n} \left| \sum_ {\vec {i}} \boldsymbol {a} _ {\vec {i}} \alpha_ {1} ^ {i _ {1}} \dots \alpha_ {L R} ^ {i _ {L R}} - \sum_ {\substack {j _ {1}, \dots , j _ {q} \leq K - 1 \\ s _ {1} \leq s _ {2} \dots \leq s _ {q} \leq L R}} \boldsymbol {a} _ {\vec {j}, \vec {s}} \alpha_ {s _ {1}} ^ {j _ {1}} \dots \alpha_ {s _ {q}} ^ {j _ {q}} \right| \leq 4 ^ {L R n} \left(\frac {K ^ {L R}}{(K !) ^ {q}}\right) \tag{37}
+$$
+
+holds. Above inequality comes from the fact that there are $\mathcal{O}(K^{LR})$ terms in $f_{r}$ where the norm of each truncated term is upper bounded by $\leq \mathcal{O}(1 / (K!)^q)$ .
+
+Then let $q = \mathcal{O}(1)$ , $LR = \mathcal{O}(n\log (n))$ , $\tilde{f}_{r,s}$ can provide an estimation to $f_{r}f_{s}$ within $2^{-\mathrm{poly}(n)}$ additive error according to the Stirling's formula. Specifically, let $q = 1$ and use Stirling's formula, the error
+
+$$
+4 ^ {L R n} \left(\frac {K ^ {L R}}{(K !) ^ {q}}\right) = \frac {4 ^ {n ^ {2} \log n} K ^ {n \log n}}{K !} \approx \frac {4 ^ {n ^ {2} \log n} K ^ {n \log n}}{\sqrt {2 \pi K} (K / e) ^ {K}}. \tag {38}
+$$
+
+Let $K = n^{2}\log n$ , one obtains
+
+$$
+\begin{array}{l} \frac {4 ^ {n ^ {2} \log n} (n ^ {2} \log n) ^ {n \log n}}{\sqrt {2 \pi n ^ {2} \log n} (n ^ {2} \log n / e) ^ {n ^ {2} \log n}} \leq \frac {(4 ^ {\log n}) ^ {n ^ {2} \log n} (n ^ {2} \log n) ^ {n \log n}}{(n ^ {2} \log n / e) ^ {n ^ {2} \log n} \sqrt {2 \pi n ^ {2} \log n}} \\ = \frac {\left(n ^ {2} \log n\right) ^ {n \log n}}{\sqrt {2 \pi n ^ {2} \log n}} \left(\frac {e}{\log n}\right) ^ {n ^ {2} \log n} \tag {39} \\ = \frac {1}{\sqrt {2 \pi n ^ {2} \log n}} \left(\frac {\left(e ^ {n} n ^ {2} \log n\right)}{(\log n) ^ {n}}\right) ^ {n \log n} \\ \leq \frac {1}{\sqrt {2 \pi n ^ {2}}} 2 ^ {- n ^ {2}}, \\ \end{array}
+$$
+
+where the last inequality holds for large $n$ . Then Eq. 34 can be represented by a multi-variable polynomial function $f(\vec{\alpha},\rho)$ with $LR$ variables and at most $\mathrm{poly}(n)$ terms, and the relationship
+
+$$
+\left| \langle 0 ^ {n} | U ^ {\dagger} (\vec {\alpha}) \rho U (\vec {\alpha}) | 0 ^ {n} \rangle - f (\vec {\alpha}, \rho) \right| \leq 2 ^ {- n ^ {2}} \tag {40}
+$$
+
+holds. Suppose the target observable $M = U(\pmb{\alpha}^{*})|0^{n}\rangle \langle 0^{n}|U^{\dagger}(\pmb{\alpha}^{*})$ . Then we may write
+
+$$
+\operatorname {T r} (M \rho) \approx f (\vec {\boldsymbol {\alpha}} ^ {*}, \rho) = \sum_ {\substack {j _ {1}, \dots , j _ {q} \leq (K - 1) \\ s _ {1} \leq s _ {2} \dots \leq s _ {q} \leq L R}} \boldsymbol {b} _ {\vec {\boldsymbol {\jmath}}, \vec {\boldsymbol {\mathfrak {s}}}} (\rho) \alpha_ {s _ {1}} ^ {j _ {1}, *} \dots \alpha_ {s _ {q}} ^ {j _ {q}, *}, \tag{41}
+$$
+
+where $b_{\vec{j},\vec{s}}(\rho) = \sum_{s,r=0}^{2^n-1} \rho_{r,s} \pmb{a}_{\vec{j},\vec{s}}$ . On the other hand, consider a machine learning procedure with data points $\{(x_i = \vec{\alpha}_i, y_i = f(\vec{\alpha}_i, \rho))\}$ . Let the feature map $\Psi(\vec{\alpha}) = (\alpha_{s_1}^{j_1} \cdots \alpha_{s_q}^{j_q})_{\vec{s},\vec{j}}$ , and the target is
+
+to synthesis the function $f(\vec{\alpha}, \rho) = \langle \vec{b}(\rho), \Psi(\vec{\alpha}) \rangle$ , where $\vec{b}(\rho) \in \mathbb{R}^{LRn^2}$ . Consider the loss function
+
+$$
+\left. \min _ {\vec {b} (\rho)} \lambda \langle \vec {b} (\rho), \vec {b} (\rho) \rangle + \sum_ {i = 1} ^ {N} \left(\langle \vec {b} (\rho), \Psi (\vec {\alpha} _ {i}) \rangle - y _ {i}\right) ^ {2}, \right. \tag {42}
+$$
+
+where $\lambda > 0$ is a hyper-parameter. Define the feature matrix $\Psi = (\Psi(\vec{\alpha}_1), \ldots, \Psi(\vec{\alpha}_N))$ and the kernel matrix
+
+$$
+\mathrm {K} = \Psi^ {\dagger} \Psi = \left[ \mathrm {K} \left(\vec {\alpha} _ {i}, \vec {\alpha} _ {j}\right) \right] _ {i, j = 1} ^ {N}, \tag {43}
+$$
+
+where the kernel function
+
+$$
+\mathrm {K} \left(\boldsymbol {\alpha}, \boldsymbol {\alpha} ^ {\prime}\right) = \sum_ {l = 0} ^ {K} \sum_ {1 \leq i _ {1} < \dots < i _ {q} \leq L R} \left(\alpha_ {i _ {1}} \alpha_ {i _ {1}} ^ {\prime} + \dots + \alpha_ {i _ {q}} \alpha_ {i _ {q}} ^ {\prime}\right) ^ {l}. \tag {44}
+$$
+
+Without loss of generality, we can normalize $\mathrm{K}(\alpha, \alpha')$ enabling $\mathrm{Tr}(\mathrm{K}) = \mathrm{N}$ . Therefore, the optimal solution
+
+$$
+\vec {\boldsymbol {b}} (\rho) _ {\text {o p t}} = \sum_ {i = 1} ^ {N} \sum_ {j = 1} ^ {N} \Psi \left(\vec {\boldsymbol {\alpha}} _ {i}\right) (\mathrm {K} + \lambda \mathrm {I}) _ {i j} ^ {- 1} f \left(\vec {\boldsymbol {\alpha}} _ {j}\right). \tag {45}
+$$
+
+As a result, the trained machine learning model
+
+$$
+\begin{array}{l} g (\vec {\boldsymbol {x}}) = \langle \vec {\boldsymbol {b}} (\rho) _ {\mathrm {o p t}}, \Psi (\vec {\boldsymbol {x}}) \rangle = \sum_ {i = 1} ^ {N} \sum_ {j = 1} ^ {N} \left(\mathrm {K} + \lambda \mathrm {I}\right) _ {i j} ^ {- 1} \mathrm {K} (\vec {\boldsymbol {\alpha}} _ {i}, \vec {\boldsymbol {x}}) f (\vec {\boldsymbol {\alpha}} _ {j}) \\ = \sum_ {j = 1} ^ {N} \left(\sum_ {i = 1} ^ {N} (\mathrm {K} + \lambda I) _ {i j} ^ {- 1} \mathrm {K} \left(\vec {\alpha} _ {i}, \vec {\mathbf {x}}\right)\right) f \left(\vec {\alpha} _ {j}\right) \tag {46} \\ = \sum_ {j = 1} ^ {N} \vec {\beta} _ {j} (\boldsymbol {x}) f (\vec {\alpha} _ {j}) \\ = \sum_ {j = 1} ^ {N} \vec {\beta} _ {j} (\boldsymbol {x}) \langle 0 ^ {n} | U ^ {\dagger} (\vec {\alpha} _ {j}) \rho U (\vec {\alpha} _ {j}) | 0 ^ {n} \rangle + \mathcal {O} \left(\frac {2 ^ {L R n}}{(K !) ^ {L R}}\right). \\ \end{array}
+$$
+
+Now we analyze the prediction error of $g(\vec{x})$ on the domain $[0, 2\pi]^{LR}$ . Denote
+
+$$
+\begin{array}{l} \tilde {\epsilon} (\vec {x}) = \epsilon (\vec {x}) + | \operatorname {T r} (M (\vec {x}) \rho) - f (\vec {x}, \rho) | = | g (\vec {x}) - f (\vec {x}, \rho) | + | \operatorname {T r} (M (\vec {x}) \rho)) - f (\vec {x}, \rho) | \tag {47} \\ \leq \left| g (\vec {x}) - f (\vec {x}, \rho) \right| + 2 ^ {- \operatorname {p o l y} (n)}, \\ \end{array}
+$$
+
+and the expected prediction error
+
+$$
+\mathbb {E} _ {\vec {\boldsymbol {x}}} \left[ \epsilon (\vec {\boldsymbol {x}}) \right] = \frac {1}{N} \sum_ {i = 1} ^ {N} \epsilon (\vec {\boldsymbol {x}} _ {i}) + \left(\mathbb {E} _ {\vec {\boldsymbol {x}}} \left[ \epsilon (\vec {\boldsymbol {x}}) \right] - \frac {1}{N} \sum_ {i = 1} ^ {N} \epsilon (\vec {\boldsymbol {x}} _ {i})\right). \tag {48}
+$$
+
+Using the Cauchy-Schwartz inequality, the above first term can be upper bounded by
+
+$$
+\frac {1}{N} \sum_ {i = 1} ^ {N} \epsilon (\vec {\boldsymbol {x}} _ {i}) \leq \sqrt {\frac {\lambda^ {2} \sum_ {i = 1} ^ {N} \sum_ {j = 1} ^ {N} \left(\mathrm {K} + \lambda I\right) _ {i j} ^ {- 1} y _ {i} y _ {j}}{N}}. \tag {49}
+$$
+
+Therefore, if the matrix $\mathrm{K}$ is invertable and hyper-parameter $\lambda = 0$ , the training error is zero. Without loss of generality, we set $\lambda = 1 / \mathrm{poly}(n)$ .
+
+The generalized error can be characterized by the Rademacher complexity Mohri et al. (2018), that is
+
+$$
+\mathbb {E} _ {\vec {\boldsymbol {x}}} \epsilon (\vec {\boldsymbol {x}}) - \frac {1}{N} \sum_ {i = 1} ^ {N} \epsilon (\vec {\boldsymbol {x}} _ {i}) \leq \sqrt {\frac {\operatorname* {s u p} \left(\mathrm {K} (x , x)\right) \| \vec {\boldsymbol {a}} _ {\text {o p t}} \| _ {\Psi}}{N}} = \sqrt {\frac {\| \vec {\boldsymbol {b}} (\rho) _ {\text {o p t}} \| _ {\Psi}}{N}}, \tag {50}
+$$
+
+where $\| \vec{b} (\rho)\|_{\Psi} = \langle \vec{b} (\rho)_{\mathrm{opt}},\vec{b} (\rho)_{\mathrm{opt}}\rangle$ . Ideally, $\vec{b} (\rho)_{\mathrm{opt}} = (b_{\vec{j},\vec{s}}(\rho))$ for $j_{1},\ldots ,j_{q}\le K - 1,s_{1}\le s_{2}\ldots \le s_{q}\le LR$ and $\vec{b} (\rho)$ is induced by the polynomial kernel function, therefore the 2-norm of the vector $(\pmb {b}_{\vec{j},\vec{s}}(\rho))_{\vec{j},\vec{s}}$ can be used to estimate $\| \vec{b} (\rho)\|_{\Psi}$ . Noting that the multi-variable polynomial function $\sum_{\vec{j},\vec{s}}\pmb {b}_{\vec{j},\vec{s}}(\rho)\alpha_{s_1}^{j_1}\dots \alpha_{s_q}^{j_q}$ belongs to [0, 1] for all $\vec{\alpha}\in [0,2\pi ]^{LR}$ . Let $\vec{\alpha}$ takes value from the bitstring $\{0,1\}^{LR}$ , we know that all $\left|\pmb {b}_{\vec{j},\vec{s}}(\rho)\right|\in [0,1]$ . Therefore, we can upper bound $\| \vec{b} (\rho)\|_{\Psi}$ by $(LR)K = (LR)n^{2}\log n$
+
+Combine all together, for any $M(\vec{\pmb{x}}) = U(\vec{\pmb{x}})|0^n\rangle \langle 0^n|U^\dagger (\vec{\pmb{x}})$ for $U\in \mathcal{U}_A(R)$ and arbitrary density matrix $\rho$ , we have the relationship
+
+$$
+\mathbb {E} _ {\vec {x}} \left| \sum_ {j = 1} ^ {N} \vec {\beta} _ {j} (\boldsymbol {x}) \langle 0 ^ {n} | U ^ {\dagger} (\vec {\alpha} _ {j}) \rho U (\vec {\alpha} _ {j}) | 0 ^ {n} \rangle - \operatorname {T r} \left(M (\vec {x}) \rho\right) \right| \leq \sqrt {\frac {\lambda^ {2} \sum_ {i = 1} ^ {N} \sum_ {j = 1} ^ {N} \left(\mathrm {K} + \lambda I\right) _ {i j} ^ {- 1} y _ {i} y _ {j}}{N}} + \sqrt {\frac {L R n ^ {2} \log n}{N}} \tag {51}
+$$
+
+In the above first term, hyper-parameter $\lambda$ can take arbitrary value, and $\lambda = \sqrt{\lambda_{\mathrm{min}}(\mathrm{K})} / (nN)$ enables that the first term is upper bounded by $1/n$ , where $\lambda_{\mathrm{min}}(\mathrm{K})$ represents the minimum eigenvalue of the kernel matrix $\mathrm{K}$ . In the second term, let $N = \tilde{\mathcal{O}}\left((LR)n^{2}\epsilon^{-2}\right)$ , and the above error can be upper bounded by $\epsilon$ .
+
+# H PROOF OF QUANTUM LEARNING PRINCIPLES
+
+# H.1 PROOF OF LEMMA 2
+
+The proof of Lemma 2 depends on the intrinsic structure of the QCA model. Let $M_{\mathrm{opt}}$ represent an observable
+
+$$
+M _ {\text {o p t}} = \arg \max _ {M = V | 0 ^ {n} \rangle \langle 0 ^ {n} | V ^ {\dagger}, V \in \mathcal {U} _ {\mathcal {A}} (R)} \left| \operatorname {T r} \left(M \left(\rho_ {p, \tilde {R}} - I _ {n} / 2 ^ {n}\right)\right) \right|. \tag {52}
+$$
+
+Given the QCA circuit set $\hat{\rho}_{\mathrm{QCA}}(R,\mathcal{A},N) = \{U(\vec{\alpha}_j)\}_{j = 1}^N$ with $N = LRn^{2}\epsilon^{-2}$ , the intrinsic structure of QCA promises that there exists a vector $\vec{\beta}^{\mathrm{opt}}$ such that
+
+$$
+\left| \sum_ {j = 1} ^ {N} \vec {\beta} _ {j} ^ {\mathrm {o p t}} (\vec {\boldsymbol {x}}) \operatorname {T r} \left(U (\vec {\boldsymbol {\alpha}} _ {j}) P _ {0} U ^ {\dagger} (\vec {\boldsymbol {\alpha}} _ {j}) \rho\right) - \operatorname {T r} \left(M _ {\mathrm {o p t}} \rho\right) \right| \leq \epsilon \tag {53}
+$$
+
+for any $n$ -qubit density matrix $\rho$ and projector $P_0 = |0^n\rangle \langle 0^n|$ . Denote
+
+$$
+M _ {R} (\vec {\boldsymbol {\beta}}) = \sum_ {i = 1} ^ {N} \beta_ {i} U (\vec {\boldsymbol {\alpha}} _ {i}) P _ {0} U ^ {\dagger} (\vec {\boldsymbol {\alpha}} _ {i}),
+$$
+
+according to the assumption in Lemma 2, we have
+
+$$
+\begin{array}{l} \epsilon + \tilde {\epsilon} < \min _ {\vec {\boldsymbol {\beta}}} \left| \mathbb {E} _ {| \Psi_ {i} \rangle \sim (\hat {\rho} _ {\mathrm {Q C A}}, \vec {\boldsymbol {q}})} \left[ \mathrm {T r} (M (\vec {\boldsymbol {\beta}}) (| \Psi_ {i} \rangle \langle \Psi_ {i} | - \rho_ {p, \tilde {R}})) \right] \right| \\ \leq \left| \mathbb {E} _ {| \Psi_ {i} \rangle \sim (\hat {\rho} _ {\mathrm {Q C A}}, \vec {q})} \left[ \operatorname {T r} (M (\vec {\boldsymbol {\beta}} _ {\mathrm {o p t}}) (| \Psi_ {i} \rangle \langle \Psi_ {i} | - \rho_ {p, \vec {R}})) \right] \right| \\ \leq \left| \mathbb {E} _ {| \Psi_ {i} \rangle \sim \left(\hat {\rho} _ {\mathrm {Q C A}}, \vec {\boldsymbol {q}}\right)} \left[ \operatorname {T r} \left(M _ {\text {o p t}} \left(| \Psi_ {i} \rangle \langle \Psi_ {i} | - \rho_ {p, \tilde {R}}\right)\right) \right] + \epsilon \right| \tag {54} \\ = \left| \mathbb {E} _ {| \Psi_ {i} \rangle \sim (\hat {\rho} _ {\mathrm {Q C A}}, \vec {q})} \left[ \mathrm {T r} (M _ {\mathrm {o p t}} (| \Psi_ {i} \rangle \langle \Psi_ {i} | - I _ {n} / 2 ^ {n})) \right] - \mathrm {T r} (M _ {\mathrm {o p t}} (\rho_ {p, \tilde {R}} - I _ {n} / 2 ^ {n})) + \epsilon \right| \\ \leq 1 - \frac {1}{2 ^ {n}} - \mathrm {T r} (M _ {\mathrm {o p t}} (\rho_ {p, \tilde {R}} - I _ {n} / 2 ^ {n})) + \epsilon , \\ \end{array}
+$$
+
+where the third line comes from the intrinsic structure of specific quantum circuit architecture, the last inequality comes from $\sum_{i}q_{i} = 1$ and $\langle \Psi_i|M_{\mathrm{opt}}|\Psi_i\rangle \leq 1$ . As a result, we have
+
+$$
+\operatorname {T r} \left(M _ {\text {o p t}} \left(\rho_ {p, \tilde {R}} - I _ {n} / 2 ^ {n}\right)\right) < 1 - \frac {1}{2 ^ {n}} - \tilde {\epsilon}. \tag {55}
+$$
+
+# H.2 PROOF OF LEMMA 1
+
+According to the assumption, the relationship
+
+$$
+\begin{array}{l} \epsilon \geq \max _ {\vec {q}, M (\vec {\beta})} \left| \mathbb {E} _ {| \Psi_ {i} \rangle \sim \left(\hat {\rho} _ {\mathrm {Q C A}}, \vec {q}\right)} \operatorname {T r} \left(M (\vec {\beta}) \left(| \Psi_ {i} \rangle \langle \Psi_ {i} | - \rho_ {p, \tilde {R}}\right)\right) \right| \tag {56} \\ = \max _ {\vec {\boldsymbol {q}}, M (\vec {\boldsymbol {\beta}})} \left| \mathbb {E} _ {| \Psi_ {i} \rangle \sim (\hat {\rho} _ {\mathrm {Q C A}}, \vec {\boldsymbol {q}})} \left[ \operatorname {T r} \left(M (\vec {\boldsymbol {\beta}}) (| \Psi_ {i} \rangle \langle \Psi_ {i} | - \sigma)\right) - \operatorname {T r} \left(M (\vec {\boldsymbol {\beta}}) (\rho_ {p, \tilde {R}} - \sigma)\right) \right] \right| \\ \end{array}
+$$
+
+holds, where maximal entangled state $\sigma = I / d$ , $d = 2^n$ and $M(\vec{\beta})$ is defined as Eq. 11. Randomly choose an index $t \in [N]$ , and let
+
+$$
+M _ {t} = \arg \max _ {M = V | 0 \rangle \langle 0 | V ^ {\dagger}} \operatorname {T r} \left(M \left(\left| \Psi_ {t} \right\rangle \left\langle \Psi_ {t} \right| - \sigma\right)\right), \tag {57}
+$$
+
+where $V\in \mathcal{U}_{\mathcal{A}}(R)$ . Based on the intrinsic structure in QCA, there exists a unit vector $\vec{\beta}^{(t)}$ such that
+
+$$
+\left| \operatorname {T r} \left(M _ {t} \left(\left| \Psi_ {t} \right\rangle \left\langle \Psi_ {t} \right| - \sigma\right)\right) - \operatorname {T r} \left(M \left(\vec {\beta} ^ {(t)}\right) \left(\left| \Psi_ {t} \right\rangle \left\langle \Psi_ {t} \right| - \sigma\right)\right) \right| \leq \epsilon . \tag {58}
+$$
+
+Then assign the probability distribution $q_{t} = 1 - (N - 1) / d$ and $q_{j} = 1 / d$ for $j \neq t$ . As a result, Eq. 56 can be further lower bounded by
+
+$$
+\left| \left(1 - \frac {N - 1}{d}\right) \operatorname {T r} \left(M \left(\vec {\boldsymbol {\beta}} ^ {(t)}\right) \left(\left| \Psi_ {t} \right\rangle \left\langle \Psi_ {t} \right| - \sigma\right)\right) + \frac {1}{d} \sum_ {j \neq t} \operatorname {T r} \left(M \left(\vec {\boldsymbol {\beta}} ^ {(t)}\right) \left(\left| \Psi_ {j} \right\rangle \left\langle \Psi_ {j} \right| - \sigma\right)\right) - \operatorname {T r} \left(M \left(\vec {\boldsymbol {\beta}} ^ {(t)}\right) \left(\rho_ {p, \tilde {R}} - \sigma\right)\right) \right|. \tag {59}
+$$
+
+Since $|\Psi_t\rangle$ is generated by a $R$ -depth quantum circuit $U_{t}\in \mathcal{U}_{A}(R)$ , then $C_{\epsilon}(|\Psi_t\rangle)\leq LR$ which implies
+
+$$
+\operatorname {T r} \left[ M _ {t} \left(\left| \Psi_ {t} \right\rangle \left\langle \Psi_ {t} \right| - \frac {I}{d}\right) \right] \geq 1 - \frac {1}{d} - \epsilon , \tag {60}
+$$
+
+then the relationship
+
+$$
+\operatorname {T r} \left[ M \left(\vec {\boldsymbol {\beta}} ^ {(t)}\right) \left(\left| \Psi_ {t} \right\rangle \left\langle \Psi_ {t} \right| - \frac {I}{d}\right) \right] \geq \operatorname {T r} \left[ M _ {t} \left(\left| \Psi_ {t} \right\rangle \left\langle \Psi_ {t} \right| - \frac {I}{d}\right) \right] - \epsilon \geq 1 - \frac {1}{d} - 2 \epsilon \tag {61}
+$$
+
+holds. Therefore, $\left(1 - \frac{N - 1}{d}\right)\operatorname {Tr}\left(M(\vec{\beta}^{(t)})(|\Psi_t\rangle \langle \Psi_t| - \sigma)\right)\geq (1 - \frac{N - 1}{d})(1 - \frac{1}{d} -2\epsilon)$ . Combining the result $\frac{1}{d}\sum_{j\neq t}\mathrm{Tr}\left(M(\vec{\beta}^{(t)})(|\Psi_j\rangle \langle \Psi_j| - \sigma)\right)\geq \frac{-(N - 1)}{d^2}$ , where $\mathrm{Tr}\left(M(\vec{\beta}^{(t)})(|\Psi_j\rangle \langle \Psi_j| - \sigma)\right) > - 1 / d$ , we thus have
+
+$$
+\begin{array}{l} \operatorname {T r} \left(M \left(\vec {\boldsymbol {\beta}} ^ {(t)}\right) \left(\rho_ {p, \tilde {R}} - \sigma\right)\right) \geq \left(1 - \frac {N - 1}{d}\right) \left(1 - \frac {1}{d} - 2 \epsilon\right) + \frac {(N - 1)}{d ^ {2}} - \epsilon \tag {62} \\ = 1 - \frac {1}{d} - 3 \epsilon - \frac {N - 1}{d} \left(1 - \frac {2}{d} - 2 \epsilon\right). \\ \end{array}
+$$
+
+Note that $N = LRn^{2}\log (n)\epsilon^{-2},d = 2^{n}$ , therefore
+
+$$
+\frac {N - 1}{d} \left(1 - \frac {2}{d} - 2 \epsilon\right) = \frac {\operatorname {p o l y} (n)}{2 ^ {n}} \left(1 - \frac {1}{2 ^ {n}} - 2 \epsilon\right) < \mathcal {O} (\epsilon) \tag {63}
+$$
+
+for large $n\in \mathbb{Z}_{>0}$ and $\epsilon = 1 / \mathrm{poly}(n)$ . Finally,
+
+$$
+\begin{array}{l} \max _ {M = V | 0 ^ {n} \rangle \langle 0 ^ {n} | V ^ {\dagger}} \left| \operatorname {T r} \left(M \left(\rho_ {p, \tilde {R}} - I _ {n} / 2 ^ {n}\right)\right) \right| \geq \operatorname {T r} \left(M _ {t} \left(\rho_ {p, \tilde {R}} - I _ {n} / 2 ^ {n}\right)\right) \\ \geq \operatorname {T r} \left(M \left(\vec {\boldsymbol {\beta}} ^ {(t)}\right) \left(\rho_ {p, \tilde {R}} - I _ {n} / 2 ^ {n}\right)\right) - \epsilon \tag {64} \\ \geq 1 - \frac {1}{d} - \mathcal {O} (\epsilon), \\ \end{array}
+$$
+
+where the first inequality is valid since $M_{t}$ (defined by Eq. 57) is one of the instances in the set $\{V|0^n\rangle \langle 0^n |V^\dagger \}$ , the second line comes from the intrinsic structure of QCA, and the third line comes from inequality 62. This implies $C_\epsilon^{\mathrm{lim},\mathcal{A}}(\rho_{p,\tilde{R}})\leq LR$ .
+
+# I BAYESIAN OPTIMIZATION
+
+# I.1 OPTIMIZATION SUBROUTINE
+
+In the following, we show how to maximize the loss function $\mathcal{L}_R(\vec{\beta})$ via Bayesian optimization on a compact set. Bayesian optimization is composed by two significant components: $(i)$ a statistical model, in general Gaussian process, provides a posterior distribution conditioned on a prior distribution and a set of observations over $\mathcal{L}_R(\vec{\beta})$ . $(ii)$ an acquisition function determines the position of the next sample point, based on the current posterior distribution over $\mathcal{L}_R(\vec{\beta})$ .
+
+Gaussian process is a set of random variables, where any subset forms a multivariate Gaussian distribution. For the optimization task considered in the main file, the random variables represent the value of the objective function $\mathcal{L}_R(\vec{\beta})$ at the point $\vec{\beta}$ . As a distribution over $\mathcal{L}_R(\vec{\beta})$ , a Gaussian process is completely specified by mean function and covariance function
+
+$$
+\mu (\vec {\beta}) = \mathbb {E} _ {\vec {\beta}} [ \mathcal {L} _ {R} (\vec {\beta}) ]
+$$
+
+$$
+k (\vec {\beta}, \vec {\beta} ^ {\prime}) = \mathbb {E} _ {\vec {\beta}} [ (\mathcal {L} _ {R} (\vec {\beta}) - \mu (\vec {\beta})) (\mathcal {L} _ {R} (\vec {\beta} ^ {\prime}) - \mu (\vec {\beta} ^ {\prime})) ], \tag {65}
+$$
+
+and the Gaussian process is denoted as $\mathcal{L}_R(\vec{\beta})\sim \mathcal{GP}(\mu (\vec{\beta}),k(\vec{\beta},\vec{\beta}'))$ . Without loss of generality, we assume that the prior mean function $\mu (\vec{\beta}) = 0$ . In the $t$ -th iteration step, assuming observations $\mathrm{Acc}(t) = \{(\vec{\beta}^{(1)},y(\vec{\beta}^{(1)})),\ldots ,(\vec{\beta}^{(t)},y(\vec{\beta}^{(t)}))\}$ are accumulated, where $y(\vec{\beta}^{(i)}) = \mathcal{L}_R(\vec{\beta}^{(i)}) + \epsilon_i$ , with the quantum measurement error $\epsilon_{i}\sim \mathcal{N}(0,1 / 4\hat{M})$ for $i\in [t]$ , where $\hat{M}$ represents the measurement complexity in our algorithm. Conditioned on the accumulated observations $\mathrm{Acc}(t)$ , the posterior distribution of $\mathcal{L}_R(\vec{\beta})$ is a Gaussian process with mean function $\mu_t(\vec{\beta}) = \mathbb{E}_{\vec{\beta}}[\mathcal{L}_R(\vec{\beta})|\mathrm{Acc}(t)]$ and covariance function $k_{t}(\vec{\beta},\vec{\beta}^{\prime}) = \mathbb{E}_{\vec{\beta}}[(\mathcal{L}_{R}(\vec{\beta}) - \mu (\vec{\beta}))(\mathcal{L}_{R}(\vec{\beta}^{\prime})-$ $\mu (\vec{\beta}^{\prime}))|\mathrm{Acc}(t)]$ , specified by
+
+$$
+\mu_ {t} (\vec {\beta}) = \boldsymbol {k} _ {t} ^ {\mathrm {T}} \left[ \boldsymbol {K} _ {t} + \boldsymbol {I} _ {t} / 4 \hat {M} \right] ^ {- 1} \boldsymbol {y} _ {1: t}
+$$
+
+$$
+\begin{array}{l} \boldsymbol {\mu} _ {t} (\boldsymbol {\beta}) = \boldsymbol {\kappa} _ {t} \left[ \boldsymbol {I} _ {t} + \boldsymbol {I} _ {t} / 4 \hat {M} \right] - \boldsymbol {y} _ {1, t} \\ k _ {t} (\vec {\boldsymbol {\beta}}, \vec {\boldsymbol {\beta}} ^ {\prime}) = k (\vec {\boldsymbol {\beta}}, \vec {\boldsymbol {\beta}} ^ {\prime}) - \boldsymbol {k} _ {t} ^ {\mathrm {T}} [ \boldsymbol {K} _ {t} + \boldsymbol {I} _ {t} / 4 \hat {M} ] ^ {- 1} \boldsymbol {k} _ {t}, \end{array} \tag {66}
+$$
+
+where $\pmb{k}_t = [k(\vec{\beta},\vec{\beta}^{(1)})\dots k(\vec{\beta},\vec{\beta}^{(t)})]^{\top}$ , the positive definite covariance matrix $\pmb{K}_{t} = [k(\vec{\beta},\vec{\beta}^{\prime})]_{\vec{\beta},\vec{\beta}^{\prime}\in \vec{\beta}_{1:t}}$ with $\vec{\beta}_{1:t} = \{\vec{\beta}^{(1)},\ldots ,\vec{\beta}^{(t)}\}$ and $y_{1:t} = [y(\vec{\beta}^{(1)}),\ldots ,y(\vec{\beta}^{(t)})]^{\top}$ . The posterior variance of $\mathcal{L}_R(\vec{\beta})$ is denoted as $\sigma_t^2 (\vec{\beta}) = k_t(\vec{\beta},\vec{\beta})$ . The mean function $\mu_t(\vec{\beta})$ is related to the expected value of $\mathcal{L}_R(\vec{\beta})$ , while the covariance $k_{t}$ estimates the deviations of $\mu_t(\vec{\beta})$ from the value of $\mathcal{L}_R(\vec{\beta})$ . Then the prediction is obtained by conditioning the prior Gaussian process on the observations and returns a posterior distribution described by a Gaussian process multivariate distribution. Using the Sherman-Morrison-Woodbury formula (Seeger, 2004), the predictive distribution can be explicitly expressed as Eq. 66.
+
+In the $t$ -th iteration of Bayesian optimization, the acquisition function $\mathcal{A}(\vec{\beta})$ learns from the accumulated observations $\mathrm{Acc}(t - 1)$ and leads the search to the next point $\vec{\beta}^{(t)}$ which is expected to gradually converge to the optimal parameters of $\mathcal{L}_R(\vec{\beta})$ . This procedure is achieved via maximizing $\mathcal{A}(\vec{\beta})$ . In detail, the design of acquisition function should consider exploration (exploring domains where $\mathcal{L}_R(\vec{\beta})$ has high uncertainty) and exploitation (exploring domains where $\mathcal{L}_R(\vec{\beta})$ is expected to have large image value). The upper confidence bound is a widely used acquisition function, which is defined as
+
+$$
+\mathcal {A} _ {\mathrm {U C B}} (\vec {\beta}) = \mu_ {t - 1} (\vec {\beta}) + \sqrt {\kappa_ {t}} \sigma_ {t - 1} (\vec {\beta}), \tag {67}
+$$
+
+and the next point $\vec{\beta}^{(t)}$ is decided by $\vec{\beta}^{(t)} = \arg \max_{\vec{\beta}\in \mathcal{D}_{\mathrm{domain}}}\mathcal{A}_{\mathrm{UCB}}(\vec{\beta})$ . Here, $\kappa_{t}$ is a significant hyper-parameter, and a suitable $\kappa_{t}$ may lead $\vec{\beta}^{(t)}$ rapidly convergence to $\vec{\beta}_{opt}$ . In Theorem 4, a specific $\kappa_{t} = 2N\log (t^{2}N) + 2\log (t^{2} / \delta)$ is used. Details for maximizing $\mathcal{L}_R(\vec{\beta})$ are shown in Alg 2.
+
+Algorithm 2: Bayesian Maximize Subroutine, BMaxS $(\rho_{\mathrm{un}},\hat{\rho}_{\mathrm{QCA}}(R,\mathcal{A},N),T,\epsilon)$
+Input: Noisy quantum state $\rho_{\mathrm{un}}$ , a quantum state set $\hat{\rho}_{\mathrm{QCA}}(R,\mathcal{A},N)$ , failure probability $\delta \in (0,1)$ , iteration steps $T$ , approximation error $\epsilon$
+Output: True/False;
+Initialize $\mu_0(\vec{\beta}) = 0$ $\sigma_0$ , the covariance function $k(\cdot ,\cdot)$ .
+for $t = 1,2,\ldots ,T$ do Select $\kappa_{t} = 2N\log (t^{2}N) + 2\log (t^{2} / \delta)$ Choose $\vec{\beta}^{(t)} = \arg \max_{\vec{\beta}\in \mathcal{D}_{\beta}}\mu_{t - 1}(\vec{\beta}) + \sqrt{\kappa_t}\sigma_{t - 1}(\vec{\beta})$ Estimate $\mathcal{L}_R(\vec{\beta}^{(t)})$ with shadow tomography of $\rho_{\mathrm{un}}$ and $\hat{\rho}_{\mathrm{QCA}}$ (obtained from $\hat{M}$ -snapshot measurements), that is $|y(\vec{\beta}^{(t)}) - \mathcal{L}_R(\vec{\beta}^{(t)})|\leq \epsilon_t$ where $\epsilon_t\sim \mathcal{N}(0,1 / 4\hat{M})$ Update $\mu_t,\sigma_t^2$ as Eq.66;
+if $y(\vec{\beta}^{(T)})\leq \epsilon$ do return True
+else do return False
+
+# I.2 PROOF OF THEOREM 4
+
+Theorem 5 (Formal version of Theorem 4) Take the weakly noisy state $\rho_{\mathrm{un}}$ and $\hat{\rho}_{\mathrm{QCA}}(R,\mathcal{A},N)$ into Alg. 2. Pick the failure probability $\delta \in (0,1)$ and let
+
+$$
+\kappa_ {t} = 2 N \log \left(t ^ {2} N\right) + 2 \log \left(t ^ {2} / \delta\right) \tag {68}
+$$
+
+in the $t$ -th iteration step, then the average regret $\mathrm{avr}_T$ can be upper bounded by
+
+$$
+\operatorname {a v r} _ {T} \leq \mathcal {O} \left(\sqrt {\frac {4 N ^ {2} \log^ {2} T + 2 N \log T \log \left(\pi^ {2} / (6 \delta)\right)}{T}}\right) \tag {69}
+$$
+
+with $1 - \delta$ success probability.
+
+We need following two lemmas to support our proof.
+
+Lemma 3 (Lemma 5.1 in Srinivas et al. (2012)) Pick failure probability $\delta \in (0,1)$ and set $\kappa_{t} = 2\log(|\mathcal{D}_{\mathrm{domain}}| \pi_{t} / \delta)$ , where $\sum_{t \geq 1} \pi_{t}^{-1} = 1$ and $\pi_{t} > 0$ . Then
+
+$$
+\left| \mathcal {L} (\vec {\boldsymbol {\beta}}) - \mu_ {t - 1} (\vec {\boldsymbol {\beta}}) \right| \leq \kappa_ {t} ^ {1 / 2} \sigma_ {t - 1} (\vec {\boldsymbol {\beta}}) \tag {70}
+$$
+
+holds for any $t \geq 1$ and $\vec{\beta} \in \mathcal{D}_{\mathrm{domain}}$ .
+
+Lemma 4 (Lemma 5.4 in Srinivas et al. (2012)) Pick failure probability $\delta \in (0,1)$ and let $\kappa_{t}$ be defined as in Lemma 3. Then the following holds with probability $\geq 1 - \delta$ :
+
+$$
+\sum_ {t = 1} ^ {T} 4 \kappa_ {t} \sigma_ {t - 1} ^ {2} (\vec {\boldsymbol {\beta}} _ {t}) \leq \kappa_ {T} \gamma_ {T}, \tag {71}
+$$
+
+where $\gamma_{T} = \max_{A\in \mathcal{D}_{\mathrm{domain}}}\frac{1}{2}\log \left|I + \sigma^{-2}K_{A}\right|$ , and $K_{A}$ represents the used covariance matrix in Bayesian optimization.
+
+We first consider the continuity of the loss function $\mathcal{L}(\vec{\beta})$ . Considering $\sum_{i=1}^{N} \beta_i = 1$ , the gradient function can be upper bounded by
+
+$$
+\left| \frac {\partial \mathcal {L} (\vec {\beta})}{\partial \beta_ {j}} \right| = \left| \mathbb {E} _ {\hat {\rho} _ {i} \sim \vec {\mathbf {q}}} \operatorname {T r} \left[ \hat {\rho} _ {j} \left(\hat {\rho} _ {i} - \rho_ {\mathrm {u n}}\right) \right] \right| \leq 1, \tag {72}
+$$
+
+where the inequality comes from $|\mathrm{Tr}[\hat{\rho}_j(\hat{\rho}_i - \rho_{\mathrm{un}})]| \leq 1$ . Therefore, the relationship
+
+$$
+\left| \mathcal {L} (\vec {\beta}) - \mathcal {L} \left(\vec {\beta} ^ {\prime}\right) \right| \leq \left| \vec {\beta} - \vec {\beta} ^ {\prime} \right| _ {1} \tag {73}
+$$
+
+holds for any $\vec{\beta},\vec{\beta}^{\prime}\in \mathcal{D}_{\mathrm{domain}}$ . Now let us choose a discretization $\mathcal{D}_{\mathrm{domain}}^{t}$ of size $(\tau_{t})^{N}$ such that for all $\vec{\beta}\in \mathcal{D}_{\mathrm{domain}}$
+
+$$
+\left\| \vec {\boldsymbol {\beta}} - [ \vec {\boldsymbol {\beta}} ] _ {t} \right\| _ {1} \leq N / \tau_ {t}, \tag {74}
+$$
+
+where $[\vec{\beta}]_t$ represents the closest point in discretization on $\mathcal{D}_{\mathrm{domain}}^t$ to $\vec{\beta}$ . Combine Eqs. 73-74, one obtains
+
+$$
+\left| \mathcal {L} (\vec {\boldsymbol {\beta}}) - \mathcal {L} ([ \vec {\boldsymbol {\beta}} ] _ {t}) \right| \leq N \tau_ {t} ^ {- 1} = t ^ {- 2}, \tag {75}
+$$
+
+where the last inequality comes from $\tau_t = t^2 N$ , furthermore, $|\mathcal{D}_{\mathrm{domain}}^t| = (t^2 N)^N$ .
+
+Using Lemma 3, we know that
+
+$$
+\kappa_ {t} = 2 \log \left(\left| \mathcal {D} _ {\text {d o m a i n}} \right| a _ {t} / \delta\right) \tag {76}
+$$
+
+enables the relationship
+
+$$
+\left| \mathcal {L} (\vec {\boldsymbol {\beta}}) - \mu_ {t - 1} (\vec {\boldsymbol {\beta}}) \right| \leq \sqrt {\kappa_ {t}} \sigma_ {t - 1} (\vec {\boldsymbol {\beta}}) \tag {77}
+$$
+
+holds with probability at least $1 - \delta$ , where $a_{t} > 0$ and $\sum_{t\geq 1}a_t^{-1} = 1$ . A common selection is $a_{t} = \pi t^{2} / 6$ . Taking $|\mathcal{D}_{\mathrm{domain}}^t| = (t^2 N)^N$ into $\kappa_{t}$ (Eq. 76), one obtains
+
+$$
+\kappa_ {t} = 2 \log \left(\left(t ^ {2} N\right) ^ {N} a _ {t} / \delta\right). \tag {78}
+$$
+
+Combine Eq. 75 and 77, we have
+
+$$
+\left| \mathcal {L} \left(\vec {\boldsymbol {\beta}} ^ {*}\right) - \mu_ {t - 1} \left(\left[ \vec {\boldsymbol {\beta}} ^ {*} \right] _ {t}\right) \right| \leq \left| \mathcal {L} \left(\vec {\boldsymbol {\beta}} ^ {*}\right) - \mathcal {L} \left(\left[ \vec {\boldsymbol {\beta}} ^ {*} \right] _ {t}\right) \right| + \left| \mathcal {L} \left(\left[ \vec {\boldsymbol {\beta}} ^ {*} \right] _ {t}\right) - \mu_ {t - 1} \left(\left[ \vec {\boldsymbol {\beta}} ^ {*} \right] _ {t}\right) \right| \leq t ^ {- 2} + \sqrt {\kappa_ {t}} \sigma_ {t - 1} \left(\left[ \vec {\boldsymbol {\beta}} ^ {*} \right] _ {t}\right) \tag {79}
+$$
+
+for any $t \geq 1$ , where $\vec{\beta}^* = \arg \max_{\vec{\beta} \in \mathcal{D}_{\beta}} \mathcal{L}(\vec{\beta})$ . Now we connect the relationship between above inequality to the regret bound.
+
+By the definition of $\vec{\beta}^{(t)}$ (maximizing the $\mathcal{A}_{\mathrm{UCB}}(\vec{\beta})$ in the $t$ -th step): $\mu_{t-1}(\vec{\beta}^{(t)}) + \sqrt{\kappa_t}\sigma_{t-1}(\vec{\beta}^{(t)}) \geq \mu_{t-1}([\vec{\beta}^*]_t) + \sqrt{\kappa_t}\sigma_{t-1}([\vec{\beta}^*]_t)$ . Also, by Eq. 79, we have $\mathcal{L}(\vec{\beta}^*) \leq \mu_{t-1}([\vec{\beta}^*]_t) + \sqrt{\kappa_t}\sigma_{t-1}([\vec{\beta}^*]_t) + 1/t^2$ . Therefore, instantaneous regret
+
+$$
+\begin{array}{l} r _ {t} = \mathcal {L} (\vec {\boldsymbol {\beta}} ^ {*}) - \mathcal {L} (\vec {\boldsymbol {\beta}} ^ {(t)}) \\ \leq \sqrt {\kappa_ {t}} \sigma_ {t - 1} (\vec {\beta} ^ {(t)}) + 1 / t ^ {2} + \mu_ {t - 1} (\vec {\beta} ^ {(t)}) - \mathcal {L} (\vec {\beta} ^ {(t)}) \\ \leq 2 \sqrt {\kappa_ {t}} \sigma_ {t - 1} (\vec {\beta} ^ {(t)}) + 1 / t ^ {2}, \\ \end{array}
+$$
+
+where the last inequality comes from Eq. 77. Using Lemma 4, $\sum_{t=1}^{T} 4\kappa_t \sigma_{t-1}(\vec{\beta}_t) \leq \kappa_T \gamma_T$ , where
+
+$$
+\gamma_ {T} = \max _ {A \in \mathcal {D} _ {\text {d o m a i n}}} \frac {1}{2} \log \left| I + 2 \hat {M} K _ {A} \right|,
+$$
+
+$K_{A}$ represents the used covariance matrix in $\mathrm{BMaxS}(\rho_{p,\tilde{R}},\hat{\rho}_{\mathrm{QCA}}(R,\mathcal{A},N),T)$ and $\hat{M}$ represents the number of measurement in generating the shadow tomography. In the linear function case, $K_{A}$ can be selected as the polynomial kernel function, and $\gamma_T = \mathcal{O}(N\log (T))$ Vakili et al. (2021). Furthermore, using the Cauchy-Schwartz inequality to $\sum_{t = 1}^{T}4\kappa_{t}\sigma_{t - 1}^{2}(\vec{\beta}_{t})\leq \kappa_{T}\gamma_{T}$ , one obtains $\sum_{t = 1}^{T}2\kappa_{t}^{1 / 2}\sigma_{t - 1}(\vec{\beta}_{t})\leq \sqrt{T\kappa_{T}\gamma_{T}}$
+
+Finally, we have the result
+
+$$
+\begin{array}{l} \operatorname {a v r} _ {T} = \frac {1}{T} \sum_ {t = 1} ^ {T} r _ {t} \\ \leq \frac {1}{T} \sum_ {t = 1} ^ {T} 2 \kappa_ {t} ^ {1 / 2} \sigma_ {t - 1} (\vec {\boldsymbol {\beta}} _ {t}) + \frac {\pi^ {2}}{6 T} \\ \leq \sqrt {\frac {\kappa_ {T} \gamma_ {T}}{T}} + \frac {\pi^ {2}}{6 T} \tag {80} \\ = \mathcal {O} \left(\sqrt {\frac {2 N ^ {2} \log (T ^ {2} N) \log (T) + 2 N \log (T ^ {2} \pi^ {2} / (6 \delta)) \log (T)}{T}}\right) \\ \leq \mathcal {O} \left(\sqrt {\frac {4 N ^ {2} \log^ {2} T + 2 N \log T \log (\pi^ {2} / (6 \delta))}{T}}\right), \\ \end{array}
+$$
+
+where the first inequality results from $\sum_{t\geq 1}t^{-2} = \pi^2 /6$ and the last inequality comes from $N\leq T$
+
+# J PROOF OF SAMPLE COMPLEXITY LOWER BOUND
+
+we require the following lemmas to support our proof.
+
+Lemma 5 (Lemma 6 in Wang et al. (2021)) Consider a single instanoise channel $\mathcal{N} = \mathcal{N}_1 \otimes \dots \otimes \mathcal{N}_n$ where each local noise channel $\{\mathcal{N}_j\}_{j=1}^n$ is a Pauli noise channel that satisfies $\mathcal{N}_j(\sigma) = q_\sigma \sigma$ for $\sigma \in \{X, Y, Z\}$ and $q_\sigma$ be the Pauli strength. Then we have
+
+$$
+D _ {2} \left(\mathcal {N} (\rho) \| \frac {I ^ {\otimes n}}{2 ^ {n}}\right) \leq q ^ {2 c} D _ {2} \left(\rho \| \frac {I ^ {\otimes n}}{2 ^ {n}}\right), \tag {81}
+$$
+
+where $D_2(\cdot \|\cdot)$ represents the 2-Renyi relative entropy, $q = \max_{\sigma} q_{\sigma}$ and $c = 1/(2\ln 2)$ .
+
+Lemma 6 Given an arbitrary $n$ -qubit density matrix and maximally mixed state $I^{\otimes n} / 2^n$ , we have
+
+$$
+D \left(\rho \| I ^ {\otimes n} / 2 ^ {n}\right) \leq D _ {2} \left(\rho \| I ^ {\otimes n} / 2 ^ {n}\right), \tag {82}
+$$
+
+where $D(\cdot \| \cdot)$ denotes the relative entropy and $D_{2}(\cdot \| \cdot)$ denotes the 2-Renyi relative entropy.
+
+Proof: Given quantum states $\rho$ and $\sigma$ , the quantum 2-Renyi entropy
+
+$$
+D _ {2} (\rho \| \sigma) = \log \operatorname {T r} \left[ \left(\sigma^ {- 1 / 4} \rho \sigma^ {- 1 / 4}\right) ^ {2} \right]. \tag {83}
+$$
+
+When $\sigma = I^{\otimes n} / 2^n$ , we have $D_{2}(\rho \| I^{\otimes n} / 2^{n}) = \log \operatorname{Tr}\left[\left((I^{\otimes n} / 2^{n})^{-1}\rho^{2}\right)\right] = n + \log \operatorname{Tr}[\rho^{2}]$ . Noting that the function $y = x^{2} - x\log x\geq 0$ when $x\in [0,1]$ , and this implies $\mathrm{Tr}(\rho^2)\geq \mathrm{Tr}(\rho \log \rho)$ . Finally, we have
+
+$$
+D \left(\rho \| I ^ {\otimes n} / 2 ^ {n}\right) = n + \operatorname {T r} \left[ \rho \log \rho \right] + n \leq \operatorname {T r} \left[ \rho^ {2} \right] + n = D _ {2} \left(\rho \| I ^ {\otimes n} / 2 ^ {n}\right). \tag {84}
+$$
+
+Task 2 Consider a pure quantum state $\rho_0$ and two quantum circuit $\mathcal{C}_1$ and $\mathcal{C}_2$ with $R_{1}$ and $R_{2}$ depth $(R_{1} < R_{2})$ , respectively. Each quantum circuit is affected by $p$ -strength Pauli channel in each layer. Suppose that a distinguisher is given access to copies of the quantum states $\Phi_{\mathcal{C}_1}(\rho_0)$ and $\Phi_{\mathcal{C}_2}(\rho_0)$ , then what is the fewest number of copies sufficing to identify quantum states $\Phi_{\mathcal{C}_1}(\rho_0)$ and $\Phi_{\mathcal{C}_2}(\rho_0)$ with high probability?
+
+Obviously, if a quantum state complexity prediction problem can predict the complexity $R_{1}$ and $R_{2}$ , then we can classify quantum states $\Phi_{\mathcal{C}_1}(\rho_0)$ and $\Phi_{\mathcal{C}_2}(\rho_0)$ easily. The sample complexity of Task 2
+
+thus can be used to benchmark the sample complexity lower bound of the quantum state complexity prediction problem.
+
+Now we prove the sample complexity lower bound to Task 2. We consider the sample complexity $m$ in distinguishing quantum states $\Phi_{\mathcal{C}_1}(\rho_0)$ and $\Phi_{\mathcal{C}_2}(\rho_0)$ . When their trace distance is quite large, let $\delta \in (0,1)$ and we have
+
+$$
+\begin{array}{l} 1 - \delta \leq \frac {1}{2} \left\| \Phi_ {\mathcal {C} _ {1}} (\rho_ {0}) ^ {\otimes m} - \Phi_ {\mathcal {C} _ {2}} (\rho_ {0}) ^ {\otimes m} \right\| _ {1} \\ \leq \frac {1}{2} \left(\left\| \Phi_ {\mathcal {C} _ {1}} \left(\rho_ {0}\right) ^ {\otimes m} - \left(I _ {n} / 2 ^ {n}\right) ^ {\otimes m} \right\| _ {1} + \left\| \Phi_ {\mathcal {C} _ {2}} \left(\rho_ {0}\right) ^ {\otimes m} - \left(I _ {n} / 2 ^ {n}\right) ^ {\otimes m} \right\| _ {1}\right) \tag {85} \\ \leq \frac {1}{\sqrt {2}} \left(D ^ {1 / 2} \left(\Phi_ {\mathcal {C} _ {1}} ^ {\otimes m} (\rho_ {0}) \| (I _ {n} / 2 ^ {n}) ^ {\otimes m}\right) + D ^ {1 / 2} \left(\Phi_ {\mathcal {C} _ {2}} ^ {\otimes m} (\rho_ {0}) \| (I _ {n} / 2 ^ {n}) ^ {\otimes m}\right)\right), \\ \end{array}
+$$
+
+where the second line comes from the triangle inequality and the third line comes from the Pinsker's inequality. Using Lemmas 5 and 6, we have
+
+$$
+\begin{array}{l} 1 - \delta \leq \frac {1}{\sqrt {2}} \left(D _ {2} ^ {1 / 2} \left(\Phi_ {\mathcal {C} _ {1}} ^ {\otimes m} (\rho_ {0}) \| (I _ {n} / 2 ^ {n}) ^ {\otimes m}\right) + D _ {2} ^ {1 / 2} \left(\Phi_ {\mathcal {C} _ {2}} ^ {\otimes m} (\rho_ {0}) \| (I _ {n} / 2 ^ {n}) ^ {\otimes m}\right)\right) \\ \leq \frac {\sqrt {n m}}{\sqrt {2}} \left(\left(1 - p\right) ^ {c R _ {1}} + \left(1 - p\right) ^ {c R _ {2}}\right) \tag {86} \\ \leq \sqrt {2 n m} (1 - p) ^ {c R _ {1}}, \\ \end{array}
+$$
+
+As a result we have
+
+$$
+m \geq \frac {(1 - p) ^ {- 2 c R _ {1}} (1 - \delta) ^ {2}}{2 n}. \tag {87}
+$$
+
+# K REVIEW OF SHADOW TOMOGRAPHY
+
+In quantum computation, the basic operators are the Pauli operators $\{I,\sigma^x,\sigma^y,\sigma^z\}$ which provide a basis for the density operators of a single qubit as well as for the unitaries that can be applied to them. For an $n$ -qubit case, one can construct the Pauli group according to
+
+$$
+\mathbf {P} _ {n} = \left\{e ^ {i \alpha \pi / 2} \sigma^ {j _ {1}} \otimes \dots \otimes \sigma^ {j _ {n}} \mid j _ {k} \in \{I, x, y, z \}, 1 \leq k \leq n \right\},
+$$
+
+where $e^{i\alpha \pi /2} \in \{0,\pm 1,\pm i\}$ is a global phase. Then the Clifford group $\mathbf{Cl}(2^n)$ is defined as the group of unitaries that normalize the Pauli group:
+
+$$
+\mathbf {C l} (2 ^ {n}) = \left\{U | U \mathbf {P} ^ {(1)} U ^ {\dagger} = \mathbf {P} ^ {(2)}, \left(\mathbf {P} ^ {(1)}, \mathbf {P} ^ {(2)} \in \mathbf {P} _ {n}\right) \right\}.
+$$
+
+The $n$ -qubit Clifford gates are then defined as elements in the Clifford group $\mathbf{Cl}(2^n)$ , and these Clifford gates compose the Clifford circuit.
+
+Randomly sampling Clifford circuit $U$ can reproduce the first 3 moments of the full Clifford group endowed with the Haar measure $\mathrm{d}\mu (U)$ which is the unique left- and right- invariant measure such that
+
+$$
+\int_ {\mathbf {C l} (2 ^ {n})} \mathbf {d} \mu (U) f (U) = \int \mathbf {d} \mu (U) f (V U) = \int \mathbf {d} \mu (U) f (U V)
+$$
+
+for any $f(U)$ and $V \in \mathbf{Cl}(2^n)$ . Using this property, one can sample Clifford circuits $U \in \mathbf{Cl}(2^n)$ with the probability $\operatorname*{Pr}(U)$ , and the corresponding expectation $\mathrm{E}_{U \in \mathbf{Cl}(2^n)}\left[\left(U\rho U^\dagger\right)^{\otimes t}\right]$ can be expressed as
+
+$$
+\sum_ {U \in \mathbf {C l} (2 ^ {n})} \Pr (U) \left(U \rho U ^ {\dagger}\right) ^ {\otimes t} = \int_ {\mathbf {C l} (2 ^ {n})} \mathbf {d} \mu (U) \left(U \rho U ^ {\dagger}\right) ^ {\otimes t},
+$$
+
+for any $n$ -qubit density matrix $\rho$ and $t = 1,2,3$ , where $\operatorname{Pr}(U)$ indicates the probability on sampling $U$ . The right hand side of the above equation can be evaluated explicitly by representation theory, this thus yields a closed-form expression for sampling from a Clifford group.
+
+To extract meaningful information from an $n$ -qubit unknown quantum state $\rho$ , the shadow tomography technique was proposed by Huang et al. (2020). The Clifford sampling is implemented by
+
+repeatedly performing a simple measurement procedure: apply a random unitary $U \in \mathbf{Cl}(2^n)$ to rotate the state $\rho$ and perform a $\sigma^z$ -basis measurement. The number of repeating times of this procedure is defined as the Clifford sampling complexity. On receiving the $n$ -bit measurement outcome $|b\rangle \in \{0,1\}^n$ , according to the Gottesman-Knill theorem (Gottesman, 1997), we can efficiently store an classical description of $U^\dagger |b\rangle \langle b|U$ in the classical memory. This classical description encodes meaningful information of the state $\rho$ from a particular angle, and it is thus instructive to view the average mapping from $\rho$ to its classical snapshot $U^\dagger |b\rangle \langle b|U$ as a quantum channel:
+
+$$
+\mathcal {M} (\rho) = \mathrm {E} _ {U \in \mathbf {C l} (2 ^ {n})} \left(\mathrm {E} _ {b \in \{0, 1 \} ^ {n}} [ U ^ {\dagger} | b \rangle \langle b | U ]\right), \tag {88}
+$$
+
+where the quantum channel $\mathcal{M}$ depends on the ensemble of unitary transformation, and the quantum channel $\mathcal{M}$ can be further expressed as
+
+$$
+\mathcal {M} (\rho) = \mathrm {E} _ {U \in \mathbf {C l} (2 ^ {n})} \sum_ {\widehat {b} \in \{0, 1 \} ^ {n}} \langle \widehat {b} | U \rho U ^ {\dagger} | \widehat {b} \rangle U ^ {\dagger} | \widehat {b} \rangle \langle \widehat {b} | U = \frac {\rho + \operatorname {T r} (\rho) I}{(2 ^ {n} + 1) 2 ^ {n}}, \tag {89}
+$$
+
+where $I$ indicates the $2^{n} \times 2^{n}$ identity matrix. Therefore the inverse of quantum channel $\mathcal{M}^{-1}(\rho) = (2^{n} + 1)\rho - I$ , and an estimation of $\rho$ is defined as
+
+$$
+\widehat {\rho} = \mathcal {M} ^ {- 1} \left(U ^ {\dagger} | b \rangle \langle b | U\right).
+$$
+
+Repeat this procedure $M$ times results in an array of Clifford samples of $\rho$ :
+
+$$
+S (\rho ; M) = \left\{\widehat {\rho_ {1}} = \mathcal {M} ^ {- 1} \left(U _ {1} ^ {\dagger} | b _ {1} \rangle \langle b _ {1} | U _ {1}\right), \dots , \widehat {\rho_ {M}} = \mathcal {M} ^ {- 1} \left(U _ {M} ^ {\dagger} | b _ {M} \rangle \langle b _ {M} | U _ {M}\right) \right\}, \tag {90}
+$$
+
+and $\frac{1}{M}\sum_{m = 1}^{M}\hat{\rho}_{m}$ is defined as the classical shadow of the quantum state $\rho$ .
+
+# L NUMERICAL SIMULATIONS FOR STRESS-TESTING
+
+Here, we conducted stress testing of the quantum learning algorithm in this study. Specifically, we applied the algorithm to estimate the complexity lower bound of quantum states under noisy environments for one-dimensional dynamical evolution. We tested the transverse-field Ising model with system sizes of $1 \times 6$ , $1 \times 8$ , and $1 \times 10$ , and the numerical results are presented in Figure 3. Our findings indicate that the complexity lower bound of noisy quantum circuits does not grow linearly with circuit depth, which is consistent to the results given by Figure 2 in the main file.
+
+Furthermore, we observed that as the system size and complexity increase, the curves corresponding to two different quantum states, $\tilde{R} = 2$ and $\tilde{R} = 10$ , exhibit similar overall trends for the system size $n \in \{6,8,10\}$ . Moreover, the variance of the algorithm does not increase with the growing system size but remains consistently stable. At the same time, the gap between the curves of quantum states with different complexities does not show a closing trend as the system size grows. These characteristics demonstrate the robustness of our learning algorithm against increases in system size and complexity. Therefore, our algorithm remains reliable for predicting the complexity of large-scale weakly noisy quantum states.
+
+
+Figure 3: These three subfigures illustrate the trend of the function $\min_{\vec{\beta}}\mathcal{L}_R$ as it varies with the circuit depth $R$ of QCA set. In the stress-testing experiments, we focus on the Hamiltonian dynamics of 1D transverse field Ising models, with system sizes ranging from 6 to 10. In all cases, we observe that the weakly noisy state with $\tilde{R} = 2$ exhibits a larger quantum state complexity lower bound compared to the weakly noisy state with $\tilde{R} = 10$ .
+
+
+
+
\ No newline at end of file
diff --git a/ICLR/2025/Learning the Complexity of Weakly Noisy Quantum States/images.zip b/ICLR/2025/Learning the Complexity of Weakly Noisy Quantum States/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..68edf0d0a309c831208523b9763cfaa86d9dcf9f
--- /dev/null
+++ b/ICLR/2025/Learning the Complexity of Weakly Noisy Quantum States/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:08197710e897664f0a48a4ce70d26c59776447cbebf152d239a8fc6688194600
+size 1226664
diff --git a/ICLR/2025/Learning the Complexity of Weakly Noisy Quantum States/layout.json b/ICLR/2025/Learning the Complexity of Weakly Noisy Quantum States/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..834b247b96a0b8afa8f6fafba935412ee0fd219e
--- /dev/null
+++ b/ICLR/2025/Learning the Complexity of Weakly Noisy Quantum States/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8ded1f1062b989c88a23e25b42c05d70211ab61a4cc8d20b89e409bdde4326b8
+size 1457469
diff --git a/ICLR/2025/Learning the Optimal Stopping for Early Classification within Finite Horizons via Sequential Probability Ratio Test/e1e34754-124a-4562-b304-cc71733696ce_content_list.json b/ICLR/2025/Learning the Optimal Stopping for Early Classification within Finite Horizons via Sequential Probability Ratio Test/e1e34754-124a-4562-b304-cc71733696ce_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..a328015b063e06ab0a42cdc69c4f62c94b9fca5a
--- /dev/null
+++ b/ICLR/2025/Learning the Optimal Stopping for Early Classification within Finite Horizons via Sequential Probability Ratio Test/e1e34754-124a-4562-b304-cc71733696ce_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4535b2e2716abc7c8c665d4650aa7d2d0450c88af500eceb5e97fe43b5ca14cd
+size 322208
diff --git a/ICLR/2025/Learning the Optimal Stopping for Early Classification within Finite Horizons via Sequential Probability Ratio Test/e1e34754-124a-4562-b304-cc71733696ce_model.json b/ICLR/2025/Learning the Optimal Stopping for Early Classification within Finite Horizons via Sequential Probability Ratio Test/e1e34754-124a-4562-b304-cc71733696ce_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..e41867c6189e481bfada1765b802af3af1cf0bdc
--- /dev/null
+++ b/ICLR/2025/Learning the Optimal Stopping for Early Classification within Finite Horizons via Sequential Probability Ratio Test/e1e34754-124a-4562-b304-cc71733696ce_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2d979df08dc89eea16876f68b031ef6df6d2a9d0b66d33bcefa4dcbef0968d9a
+size 407863
diff --git a/ICLR/2025/Learning the Optimal Stopping for Early Classification within Finite Horizons via Sequential Probability Ratio Test/e1e34754-124a-4562-b304-cc71733696ce_origin.pdf b/ICLR/2025/Learning the Optimal Stopping for Early Classification within Finite Horizons via Sequential Probability Ratio Test/e1e34754-124a-4562-b304-cc71733696ce_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..387a80155032012bd3fd0e152ceb14e56b869a43
--- /dev/null
+++ b/ICLR/2025/Learning the Optimal Stopping for Early Classification within Finite Horizons via Sequential Probability Ratio Test/e1e34754-124a-4562-b304-cc71733696ce_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5e16d7341d97da19a12abbc12683be801092da542b4379d4c2ac4e9c4bc605a9
+size 18075771
diff --git a/ICLR/2025/Learning the Optimal Stopping for Early Classification within Finite Horizons via Sequential Probability Ratio Test/full.md b/ICLR/2025/Learning the Optimal Stopping for Early Classification within Finite Horizons via Sequential Probability Ratio Test/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..11880c4254c31ef17690154164636c8b17856c79
--- /dev/null
+++ b/ICLR/2025/Learning the Optimal Stopping for Early Classification within Finite Horizons via Sequential Probability Ratio Test/full.md
@@ -0,0 +1,1408 @@
+# LEARNING THE OPTIMAL STOPPING FOR EARLY CLASSIFICATION WITHIN FINITE HORIZONS VIASEQUENTIAL PROBABILITY RATIO TEST
+
+Akinori F. Ebihara Taiki Miyagawa Kazuyuki Sakurai Hitoshi Imaoka NEC Corporation aebihara@nec.com
+
+# ABSTRACT
+
+Time-sensitive machine learning benefits from Sequential Probability Ratio Test (SPRT), which provides an optimal stopping time for early classification of time series. However, in finite horizon scenarios, where input lengths are finite, determining the optimal stopping rule becomes computationally intensive due to the need for backward induction, limiting practical applicability. We thus introduce FIRMBOUND, an SPRT-based framework that efficiently estimates the solution to backward induction from training data, bridging the gap between optimal stopping theory and real-world deployment. It employs density ratio estimation and convex function learning to provide statistically consistent estimators for sufficient statistic and conditional expectation, both essential for solving backward induction; consequently, FIRMBOUND minimizes Bayes risk to reach optimality. Additionally, we present a faster alternative using Gaussian process regression, which significantly reduces training time while retaining low deployment overhead, albeit with potential compromise in statistical consistency. Experiments across independent and identically distributed (i.i.d.), non-i.i.d., binary, multiclass, synthetic, and real-world datasets show that FIRMBOUND achieves optimalities in the sense of Bayes risk and speed-accuracy tradeoff. Furthermore, it advances the tradeoff boundary toward optimality when possible and reduces decision-time variance, ensuring reliable decision-making. Code is included in the supplementary materials.
+
+# 1 INTRODUCTION
+
+Sequential Probability Ratio Test (SPRT) (Wald, 1945) offers a theoretically optimal framework for early classification of time series (ECTS) (Xing et al., 2009). ECTS is a task to sequentially observe an input time series and classify it as early and accurately as possible, balancing speed and accuracy (Gupta et al., 2020; Mori et al., 2016). This is vital in real-world scenarios with high sampling costs or where delays can have severe implications: e.g., medical diagnosis (Evans et al., 2015; Griffin & Moorman, 2001; Vats & Chan, 2016), stock crisis identification (Ghalwash et al., 2014), and autonomous driving (Doná et al., 2019). While the multi-objective nature of ECTS presents challenges, SPRT, with log class-likelihood ratios (LLRs), is optimal for binary i.i.d. samples and asymptotically optimal for multi-class, non-i.i.d. time series. SPRT's optimality ensures decisions within the shortest possible time with a controlled error rate (Tartakovsky, 1998; 1999).
+
+A key limitation of SPRT in real-world applications is the finite horizon (Grinold, 1977; Xiong et al., 2022): the deadline for classification. While the original SPRT assumes an indefinite sampling period to reach its decision threshold (Tartakovsky et al., 2014), practical scenarios often demand earlier decisions. For instance, detecting a face spoofing attack at a biometric checkpoint requires classification before the subject passes through (Labati et al., 2016). This constraint frequently results in suboptimal performance, as early thresholds may cause either delayed or rushed decisions (Fig. 1a).
+
+Fortunately, the optimal decision boundary for the finite horizon can be derived by solving backward induction, a recursive formula progressing from the horizon to the start of the time series (Chow et al., 1991; Peskir & Shiryaev, 2006). It optimizes the boundary by minimizing Bayes risk, or average $a$
+
+
+Figure 1: Visual guide to the optimal stopping under finite horizon. (a) Finite horizon SPRT. Prematurely set decision boundaries lead to suboptimal results. Starbursts mark the stopping times of three decision boundaries for class 1: (Right) a static boundary (upper gray line) leads to delayed decision making; (Center) an optimal decision boundary within a finite horizon (yellow curve) achieves a faster stopping time; and (Left) a lower static boundary (lower gray line) can achieve the same hitting time (center starburst) but increases the risk of classifying another sequence (blue trajectory) to a wrong class. (b) FIRMBOUND & Pareto front. FIRMBOUND's goal is to delineate the Pareto-optimal point (meaning "optimal in the speed-accuracy multi-objective optimization problem") on the speed-accuracy tradeoff (SAT) curve. It achieves the Pareto-optimal point within the existing front (blue star) or discovers a new Pareto-optimal point (red star) if possible.
+
+
+
+posteriori risk (AAPR), which accounts for both classification accuracy and sampling costs. The resulting optimal boundary typically tapers monotonically as it nears the finite horizon (Fig. 1a).
+
+Unfortunately, applying the backward induction under real-world conditions is impractical due to its prohibitively high computational costs and the lack of true LLRs (Tartakovsky et al., 2014). To solve the backward induction, numerically calculating the conditional expectation of future risks (Eq. 5) is required because no analytical solution has been identified. This calculation necessitates intensive computational resources when applied to large-scale, high-dimensional real-world datasets. For instance, a naive use of sampling-based methods, such as Monte Carlo integration, is ineffective because ECTS demands instantaneous evaluation of the conditional expectation on the fly (Wang & Scott, 2019). Moreover, the lack of true LLRs, which are the sufficient statistic required for the backward induction and SPRT, further complicates their practical application within finite horizons.
+
+Thus, we propose the FInite-horizon average a posteriori Risk Minimizer for optimal BOUNDary (FIRMBOUND), a framework designed to estimate the solution to (i) the backward induction and (ii) the sufficient statistic, with theoretical guarantees. For estimating the backward induction, we offer two approaches: first, recognizing the concave nature of the conditional expectation, we formulate its estimation as convex function learning (CFL) to provide a statistically consistent estimator. Second, due to the high training costs of CFL (Siahkamari et al., 2022), we explore a faster alternative using Gaussian process (GP) regression (Hensman et al., 2013). Although it can compromise on statistical consistency, GP regression is trained 30 times faster than CFL with comparable performance. Both CFL and GP regression models offer low deployment overhead during the test phase, making them suitable for real-time ECTS. To address the absence of the sufficient statistic (i.e., true LLRs), FIRMBOUND integrates a sequential density ratio estimation (DRE) algorithm (Ebihara et al., 2021) to handle both i.i.d. and non-i.i.d. time series of any class size, producing statistically consistent LLR estimates, on which the optimal decision is learned (Fig. 2b,c).
+
+Our extensive experiments demonstrate that FIRMBOUND effectively approaches Bayes optimality (i.e., minimizes the AAPR) and delineates the Pareto-optimal points (meaning "optimal in the speed-accuracy multi-objective optimization problem") of the speed-accuracy tradeoff (SAT). In contrast to most existing ECTS methods, which lack theoretical guarantees (Gupta et al., 2020), FIRMBOUND significantly outperforms these baselines with less parameter sensitivity, substantiating the theoretical predictions across a wide range of synthetic and real-world datasets: two- and three-class sequential i.i.d. Gaussian datasets, non-i.i.d. damped oscillating LLR (DOL) datasets, and real-world datasets such as Spoofing in the Wild (SiW) (Liu et al., 2018b), the human motion database HMDB51 (Kuehne et al., 2011), the action recognition dataset UCF101 (Soomro et al., 2012), and FordA from UCR time series classification archive (Dau et al., 2018). Moreover, FIRMBOUND often achieves a lower
+
+(a) Estimated a posteriori risk at time step=48 (b) Learned optimal boundary for two-class test (c) Learned optimal boundary for three-class test
+
+
+Figure 2: Learning Decision Boundaries. (a) Estimation of the continuation risk function $\tilde{G}$ . Convex Function Learning (CFL) and Gaussian Process (GP) regression on a two-class sequential Gaussian dataset are used. The decision boundary at the current time step $(= 48)$ is defined by the intersection of $\tilde{G}$ and the stopping risk function $G^{\mathrm{st}}$ (Thm. 2.1) (b, c) Decision boundaries (thresholds) derived from a two-class (b) and three-class(c) sequential Gaussian dataset.
+
+error rate than SPRT with static thresholds, illustrating its ability to advance the tradeoff boundary to discover new Pareto fronts (see Fig. 1b). Importantly, we empirically show that FIRMBOUND reduces decision-time variance even when it does not advance the Pareto front, contributing to reliable decision making, which is crucial for practical applications. In summary, our contribution is threefold:
+
+1. Statistically consistent and computationally efficient estimation alternatives of the optimal decision boundaries of SPRT for ECTS within finite horizons.
+2. Comprehensive data handling under real-world scenarios, being capable of processing both i.i.d. and non-i.i.d. data series, and both binary to multiple, large class datasets.
+3. Pareto-optimal decision making with an ability to identify potential new Pareto fronts and reduce variance of decision making time.
+
+A comprehensive literature review can be found in App. E.
+
+# 2 PRELIMINARIES: NOTATIONS AND SPRT
+
+We provide informal definitions here due to page limitations. Detailed mathematical foundations are provided in App. A and Tartakovsky et al. (2014). Let $X^{(1,t)} \coloneqq \{x^{(t')}\}_{t' = 1}^t$ and $y \in [K] \coloneqq \{1, \ldots, K\}$ be random variables that represent an input sequence with length $t \in [T]$ and its class label, respectively, where $x^{(t')} \in \mathbb{R}^{d_{\mathrm{feat}}}$ is a feature vector, and $T \in \mathbb{N}$ is the fixed maximum length of sequences, or the finite horizon. $X^{(1,t)}$ and $y$ follow the joint density $p(X^{(1,t)}, y)$ . Their samples denoted by $X_m^{(1,t)} \coloneqq \{x_m^{(t')}\}_{t' = 1}^t$ and $y_m \in [K] \coloneqq \{1, \ldots, K\}$ consist of a dataset, where $m \in [M]$ , and $M \in \mathbb{N}$ is the dataset size. The log-likelihood ratio (LLR) contrasting class $k \in [K]$ and $l \in [K]$ is defined as $\lambda_{kl}(T) \coloneqq \lambda_{kl}(X^{(1,T)}) \coloneqq \log(p(X^{(1,T)}|y = k)/p(X^{(1,T)}|y = l))$ . The posterior of class $k \in [K]$ given $X^{(1,t)}$ is denoted by $\pi_k(X^{(1,t)}) \coloneqq p(y = k|X^{(1,t)})$ . Let $d_t : X^{(1,t)} \mapsto d_t(X^{(1,t)}) \in [K]$ and $\tau : X^{(1,T)} \mapsto \tau(X^{(1,T)}) \in [T]$ denote the terminal decision rule (i.e., a class predictor) and stopping time (i.e., decision time or hitting time) of the input sequence, respectively. The terminal decision rule may not depend on $t$ , in which case we omit the subscript $t$ . The stopping time may not require the whole sequence $X^{(1,T)}$ and may be able to calculate from the first $t$ samples $X^{(1,t)}$ , depending its algorithm. Our task is to construct the terminal decision rule $\{d_t\}_{t \in [T]}$ , which will turn out to be time-independent, and the stopping time $\tau$ that are "optimal" and can be computed efficiently.
+
+Sequential probability ratio test (SPRT). Our model is based on SPRT:
+
+Definition 2.1 (SPRT). Given the thresholds $a_{k}^{(t)} \in \mathbb{R}$ ( $k \in [K]$ and $t \in [T]$ ) for LLRs of input sequences, SPRT is defined as a tuple of a time-independent terminal decision rule and stopping time,
+
+
+Figure 3: Conceptual figure of FIRMBOUND. (a) The intersections of $\tilde{G}$ and $G^{\mathrm{st}}$ delineates the decision boundary. (b) FIRMBOUND estimates conditional expectations using either GP or CFL, based on available sufficient statistic such as (estimated) posterior probabilities $\pi$ or LLRs $\lambda$ .
+
+denoted by $\delta^{*} \coloneqq (d^{*}, \tau^{*})$ , such that
+
+$$
+d ^ {*} \left(X ^ {(1, T)}\right) = d ^ {*} \left(X ^ {\left(1, \tau^ {*}\right)}\right) \in \underset {k \in [ K ]} {\arg \max } \left\{\underset {l (\neq k) \in [ K ]} {\min } \lambda_ {k l} \left(X ^ {(1, t)}\right) - a _ {k} ^ {(t)} \mid t = \tau^ {*} \left(X ^ {(1, T)}\right) \right\}, \tag {1}
+$$
+
+$$
+\tau^ {*} (X ^ {(1, T)}) = \tau^ {*} (X ^ {(1, \tau^ {*})}) := \min \{t \in [ T ] \mid \max _ {k \in [ K ]} \left\{\min _ {l (\neq k) \in [ K ]} \lambda_ {k l} (X ^ {(1, t)}) - a _ {k} ^ {(t)} \right\} \geq 0 \}. \tag {2}
+$$
+
+This algebraic definition may seem complex, but the graphical descriptions are given in Figs. 1a & 2b. Note that the terminal decision rule (Eq. 1) is equivalent to choosing the argmax of the gaps between the class posteriors and the thresholds w.r.t. $k \in [K]$ at the stopping time, i.e., choosing the most likely class.
+
+A key feature of SPRT is its various optimalities—asymptotic, non-asymptotic, and Bayes—which theoretically establish SPRT as the best model for ECTS. In this paper, we exploit the Bayes optimality, with the other optimalities summarized in App. B.
+
+To define the Bayes optimality of SPRT, we introduce the sufficient statistic, a posterior risk (APR), and average APR (AAPR). The sufficient statistic for sequential tests here means $\mathcal{S}_t \coloneqq (\lambda_{kl}(X^{(1,t)}))_{k,l \in [K]}$ (or equivalently, we can use $\mathcal{S}_t \coloneqq (\pi_k(X^{(1,t)}))_{k \in [K]}$ interchangeably), providing all necessary information for decision at $t$ and serving as the fundamental variable in SPRT's optimality instead of $X^{(1,t)}$ (see also App. C for the formal definition). Then, for a given $d_t$ , APR at $t \in [T]$ is defined as
+
+$$
+\operatorname {A P R} _ {t} \left(\mathscr {S} _ {t}, d _ {t} \left(X ^ {(1, t)}\right) = k\right) := \bar {L} _ {k} \left(1 - \pi_ {k} \left(X ^ {(1, t)}\right)\right) + c t, \tag {3}
+$$
+
+where $c \in \mathbb{R}_{\geq 0}$ is a sampling cost, and $\bar{L}_k$ is the $k$ -th element of a penalty vector $\bar{L} \in \mathbb{R}_{\geq 0}^K$ with $k \in [K]$ , which penalizes incorrect classifications of $d_t$ . The average APR (AAPR), or the Bayes risk, for $\{d_t\}_{t \in [T]}$ and $\tau$ is defined as
+
+$$
+\operatorname {A A P R} \left(\left\{d _ {t} \right\} _ {t \in [ T ]}, \tau\right) := \mathbb {E} \left[ \operatorname {A P R} _ {\tau} \left(\mathscr {S} _ {\tau}, d _ {\tau}\right) \right]. \tag {4}
+$$
+
+SPRT is Bayes optimal in the sense that it can provide a terminal decision rule and stopping time that minimize AAPR if the thresholds for LLRs are properly chosen. The following theorem provides how to compute the optimal thresholds to achieve the Bayes optimality (Arrow et al., 1949; Tartakovsky et al., 2014).
+
+Theorem 2.1 (Backward induction equation). Let $\mathcal{S}_t$ be $(\pi_1(X^{(1,t)},\ldots ,\pi_K(X^{(1,t)}))$ w.l.o.g. $SPRT\delta^{*}$ is Bayes optimal if time-dependent thresholds $a_{k}^{(t)}$ in Eqs. 1 & 2 are given by the intersections of the continuation risk function $\tilde{G}_t(\mathcal{S}_t)$ and the stopping risk function $G_{t}^{\mathrm{st}}(\mathcal{S}_{t})$ , which are defined for a pre-defined density $p$ , not for each sample of $X^{(1,T)}$ , and satisfy the following backward induction equation:
+
+$$
+\tilde {G} _ {t} \left(\mathcal {S} _ {t}\right) = \mathbb {E} \left[ G _ {t + 1} ^ {\min } \left(\mathcal {S} _ {t + 1}\right) \mid \mathcal {S} _ {t} \right] + c \tag {5}
+$$
+
+$$
+G _ {t} ^ {\mathrm {s t}} \left(\mathscr {S} _ {t}\right) = \min _ {k} \left\{\bar {L} _ {k} \left(1 - \pi_ {k} \left(X ^ {(1, t)}\right)\right) \right\}, \tag {6}
+$$
+
+where $G_{t}^{\min}(\mathcal{S}_{t})$ is referred to as the minimum risk function:
+
+$$
+G _ {t} ^ {\min } \left(\mathscr {S} _ {t}\right) := \left\{ \begin{array}{l l} G ^ {\mathrm {s t}} \left(\mathscr {S} _ {t}\right) & (t = T) \\ \min \left\{G ^ {\mathrm {s t}} \left(\mathscr {S} _ {t}\right), \tilde {G} _ {t} \left(\mathscr {S} _ {t}\right) \right\} & (1 \leq t < T). \end{array} \right. \tag {7}
+$$
+
+Therefore, the optimal stopping region is $\{(\pi_1(X^{(1,t)}),\ldots ,\pi_K(X^{(1,t)}))\mid G^{\mathrm{st}}(\mathcal{S}_t) = \tilde{G}_t(\mathcal{S}_t)\}_{t\in [T]}\subset \mathbb{R}^{K\times T}$ . A similar theorem holds for $\mathcal{S}_t = (\lambda_{kl}(X^{(1,t)}))_{k,l\in [K]}$ , rewriting $\{\pi_k(X^{(1,t)})\}_{k\in [K]}$ by $\{\lambda_{kl}(X^{(1,t)})\}_{k,l\in [K]}$ .
+
+The formal proof is provided in Tartakovsky et al. (2014). For an intuitive explanation, see App. F.
+
+This theorem indicates that the optimal stopping time is given by $\tau^{*}(X^{(1,T)}) = \tau^{*}(X^{(1,\tau^{*})}) = \min \{t\in [T]\mid G_t^{\mathrm{st}}(\mathcal{S}_t)\leq \tilde{G}_t(\mathcal{S}_t)\}$ and that the optimal terminal decision rule simplifies to $d^{*}(X^{(1,T)}) = d^{*}(X^{(1,\tau^{*})})\in \arg \min_{k\in [K]}\{\bar{L}_k(1 - \pi_k(X^{(1,t)}))\mid t = \tau^* (X^{(1,T)})\}$ . Note that an explicit formula of the dynamic threshold $a_{k}^{(t)}$ as a function of the sufficient statistic $\mathcal{S}_t$ is unnecessary to compute $d^{*}$ and $\tau^{*}$ (Figs. 2a, b, and 3a serve only for visualization). Note also that once the optimal stopping region is determined, calculating $\tau^{*}$ no longer require a backward computation each time a new sequence arrives because $G_{t}^{\mathrm{st}}$ and $\tilde{G}_{t}$ are defined for the underlying density, not for individual sample sequences.
+
+# 3 FIRMBOUND
+
+Unfortunately, solving and deploying Eqs.5-7 in real-world scenarios presents significant challenges. First, these equations lack closed-form solutions. A naive numerical computation, such as Monte Carlo integration, would be possible, but it suffers from the curse of dimensionality ( $K$ can be $>100$ , requiring an exponentially large number of samples for convergence) (see also App. D). Second, obtaining a well-calibrated sufficient statistic $\mathcal{S}_t$ is challenging. Although computing softmax logits as class posteriors is common in classification problems (He et al., 2016a;b; Krizhevsky et al., 2012; LeCun et al., 1998), high-dimensional classifiers often produce overconfident or miscalibrated outputs (Guo et al., 2017; Melotti et al., 2022; Müller et al., 2019; Mukhoti et al., 2020).
+
+We address these challenges by transforming the backward induction into a pair of estimation problems and providing statistically consistent estimators (Secs. 3.1 & 3.2). Our proposed model, FIRMBOUND, is then proved to be statistically consistent with the Bayes optimal solution (Thm. 3.2).
+
+# 3.1 ESTIMATING THE CONDITIONAL EXPECTATION
+
+The first key idea is to transform the computation of the conditional expectation in the backward induction equation into a regression problem. An important observation is that the conditional expectation function in Eq. 5 is concave (Jarrett & van der Schaar, 2020; Tartakovsky et al., 2014):
+
+Theorem 3.1. $\tilde{G}_t$ and $G_t^{\mathrm{min}}$ are concave functions of vector $(\pi_1(X^{(1,t)}),\ldots ,\pi_K(X^{(1,t)}))$ for all $t\in [T]$
+
+Equipped with the concavity, we propose to build a consistent estimator of the Eq. 5 though convex function learning (CFL).
+
+CFL. CFL aims to build a statistically consistent estimator of a convex function from noisy data points, assuming the target function is inherently convex (Argyriou et al., 2008; Bach, 2010; Bartlett et al., 2005; Boyd & Vandenberghe, 2010; Mendelson, 2004). Assume that we have estimates of the sufficient statistic $\mathcal{S}_t$ for all $t\in [T]$ estimated on a given training dataset $\{(X_m^{(1,T)},y_m)\}_{m = 1}^M$ via the algorithm given in Sec. 3.2. Then, our task toward solving the backward induction equation (Eq. 5-7) is to estimate $G_{t}^{\mathrm{st}}(\mathcal{S}_{t})$ and $\tilde{G}_t(\mathcal{S}_t)$ for all $t\in [T]$ . $G_{t}^{\mathrm{st}}$ can be computed from the estimated sufficient statistic via Eq. 6. Thus, we focus on the continuation risk $\tilde{G}_t(\mathcal{S}_t) = \mathbb{E}\left[G_{t + 1}^{\min}(\mathcal{S}_{t + 1})|\mathcal{S}_t\right] + c$ . To
+
+estimate it from the estimated sufficient statistic, we first rewrite $\tilde{G}_t$ as
+
+$$
+\begin{array}{l} \tilde {G} _ {t} \left(\mathcal {S} _ {t} \left(X _ {m} ^ {(1, t)}\right)\right) = \mathbb {E} _ {X ^ {(t + 1)}} \left[ G _ {t + 1} ^ {\min } \left(\mathcal {S} _ {t + 1} \left(X ^ {(1, t + 1)}\right)\right) \mid \mathcal {S} _ {t} \left(X ^ {(1, t)} = X _ {m} ^ {(1, t)}\right) \right] + c (8) \\ = \int d P \left(X ^ {(t + 1)} \mid X ^ {(1, t)} = X _ {m} ^ {(1, t)}\right) G _ {t + 1} ^ {\min } \left(\mathscr {S} _ {t + 1} \left(X ^ {(1, t + 1)}\right)\right) + c (9) \\ = G _ {t + 1} ^ {\min } \left(\mathcal {S} _ {t + 1} \left(X _ {m} ^ {(1, t + 1)}\right)\right) - \epsilon_ {m} ^ {(t)} + c =: \mathcal {G} _ {m} ^ {(t + 1)} - \epsilon_ {m} ^ {(t)} + c, (10) \\ \end{array}
+$$
+
+where $\mathcal{G}_m^{(t + 1)}\coloneqq G_{t + 1}^{\min}(\mathcal{S}_{t + 1}(X_m^{(1,t + 1)}))$ $P$ is a properly defined probability measure, and $\epsilon_{m}^{(t)}$ is a random variable representing the deviation of $\mathcal{G}_m^{(t + 1)}$ from the expectation integral in Eq. 9. Suppose that the backward induction equation is solved for $T,T - 1,\ldots ,t + 1$ ; i.e., $G_{t + 1}^{\mathrm{min}}$ is given. Then, $\mathcal{G}_m^{(t + 1)}$ is computable from the estimated sufficient statistic by definition. Therefore, we regard $\{\mathcal{G}_m^{(t)}\}_{m,t}$ as a given dataset henceforth, leading to the idea that the dataset $\{\mathcal{G}_m^{(t)}\}_{m,t}$ can be regarded as a set of noisy observations of the ground truth continuation risk $\tilde{G}_t(\mathcal{S}_t(X_m^{(1,t)}))$ of $X_{m}^{(1,t)}$ (up to a constant $c$ ) because $\tilde{G}_t(\mathcal{S}_t(X_m^{(1,t)})) = \mathcal{G}_m^{(t + 1)} - \epsilon_m^{(t)} + c$ (Eq.10) $\Leftrightarrow$
+
+$$
+\mathcal {G} _ {m} ^ {(t + 1)} = \tilde {G} _ {t} \left(\mathscr {S} _ {t} \left(X _ {m} ^ {(1, t)}\right)\right) + \epsilon_ {m} ^ {(t)} - c. \tag {11}
+$$
+
+This change of view, together with the fact that $\tilde{G}_t(\mathcal{S}_t)$ is concave w.r.t. $\mathcal{S}_t = (\pi_1,\dots ,\pi_K)$ , leads to the following noisy convex regression problem:
+
+$$
+\hat {\tilde {G}} _ {t} \left(\left\{X _ {m} ^ {(1, T)} \right\} _ {m = 1} ^ {M}\right) \in \underset {f: \text {c o n c a v e}} {\arg \min } \left\{\frac {1}{M} \sum_ {m = 1} ^ {M} \left(f \left(\mathscr {S} _ {t} \left(X _ {m} ^ {(1, t)}\right)\right) - \mathscr {G} _ {m} ^ {(t)}\right) ^ {2} + \lambda \| f \| \right\} + c, \tag {12}
+$$
+
+where $\| f\|$ is a regularizer, $\lambda$ is a hyperparameter, and $\hat{G}_t(\{\mathcal{G}_m^{(t)}\}_{m,t})$ denotes the continuation risk estimated on $\{\mathcal{G}_m^{(t)}\}_{m,t}$ or, equivalently, $\{X_m^{(1,T)}\}_{m = 1}^M$ . With this novel reformulation, we employ an efficient solver, the 2-block Alternating Direction Method of Multipliers (ADMM) algorithm integrated with the augmented Lagrangian method with a concavity constraint (Siahkamari et al., 2022). Specifically, $f$ in Eq. 12 is represented as a piecewise linear function, and $\| f\|$ is defined as the $L^1$ penalty terms (see App. G for the complete algorithm). This algorithm is known to converge to the ground truth function as $M\to \infty$ ; i.e., it is consistent (Siahkamari et al., 2022).
+
+Consequently, given the estimates of the sufficient statistic, we now have the estimates of the continuation risks $\tilde{G}_t$ and the stopping risks $G_t^{\mathrm{st}}$ as functions of $\mathcal{S}_t$ for all $t\in [T]$ . Therefore, in the test phase, we can compute the optimal stopping region given in Thm. 2.1 for any $\mathcal{S}_t$ and $t\in [T]$ without re-solving the backward induction equation.
+
+Gaussian process (GP) regression. Although the aforementioned CFL algorithm is theoretically sound and computationally tractable, we further propose a more computationally efficient estimator using GP regression. GP regression is a Bayesian approach to regression used for probabilistic predictions, assuming the objective function values follow a Gaussian distribution defined by a covariance kernel (Wang, 2020).
+
+Evaluating the conditional expectation, or the continuation risk, $\mathbb{E}[G_{t + 1}^{\min}(\mathcal{S}_{t + 1})|\mathcal{S}_t]$ at any $\mathcal{S}_t$ and $t\in [T]$ is formulated below (we omit inducing points here for brevity). Suppose that a set of estimated sufficient statistics at any $t\in [T]$ , denoted by $\{\mathcal{S}_{t,m}\coloneqq \mathcal{S}_t(X_m^{(1,t)})\}_{m\in [M]}^t$ , is given. We begin with our reformulation discussed above (Eq. 11):
+
+$$
+\mathcal {G} _ {m} ^ {(t + 1)} + c = \tilde {G} _ {t} \left(\mathscr {S} _ {t, m}\right) + \epsilon_ {m} ^ {(t)}. \tag {11}
+$$
+
+We make the following fundamental assumptions of GP regression. First, the observation noise $\epsilon_{m}^{(t)}$ for any $t\in [T]$ and $m\in [M]$ follows a Gaussian distribution. Second, $\{\tilde{G}_t(\mathcal{S}_{t,m})\}_{m\in [M]}$ for any $t\in [T]$ forms a Gaussian process. Under these assumptions, Eq. 11 can be regarded as a GP regression problem with the latent function $\tilde{G}_t$ , the explanatory variable $\mathcal{S}_{t,m}$ , and the response variable $\mathcal{G}_m^{(t + 1)} + c$ . Therefore, the predictive distribution of the continuation risk can be calculated, using the standard methods for the evidence lower bound (ELBO) maximization. Specifically, we use the variational GP with an inducing point method (Hensman et al., 2015; Matthews, 2017) via minibatch training to maximize the ELBO. This algorithm uses standard functions from GPyTorch
+
+
+Figure 4: Training and Testing. (Top) In the training phase, the sequential DRE algorithm SPRT-TANDEM is trained, followed by the training of CFL or GP models using the backward induction. (Bottom) In the testing phase, the trained DRE model is loaded to sequentially update the LLRs, with which the trained CFL/GP model calculates $\tilde{G}_t$ and compares it with $G_t^{\mathrm{st}}$ to make decisions at time $t$ .
+
+(Gardner et al., 2018). For implementation details, see our code. For further detailed mathematical foundations of GP regression, see App. H.
+
+Together with the estimated sufficient statistics, the predictive distribution thus obtained provide $G_{t}^{\mathrm{st}}$ and $\tilde{G}_{t}$ for any $\mathcal{S}_t$ and $t\in [T]$ . Therefore, in the test phase, we can compute the optimal stopping region given in Thm. 2.1 for any $\mathcal{S}_t$ and $t\in [T]$ without re-solving the backward induction equation. We empirically validate that the training (sometimes referred to as inference in the Bayesian context) with GP regression is 30 times faster than the CFL training.
+
+# 3.2 DENSITY RATIO ESTIMATION (DRE) FOR ECTS
+
+Our remaining task is to estimate the sufficient statistic $\mathcal{S}_t$ for all $t\in [T]$ , the second estimation problem mentioned at the beginning of Sec. 3. A simple approach to this end is to estimate LLRs via a sequential density ratio estimation algorithm. It enhances precision by estimating the ratio of probabilities directly, rather than estimating each probability independently, thus reducing degrees of freedom (Belghazi et al., 2018; Gutmann & Hyvarinen, 2012; Hjelm et al., 2019; Liu et al., 2018a; Moustakides & Basioti, 2019; Oord et al., 2018; Sugiyama et al., 2010; 2008; 2012). Specifically, we employ SPRT-TANDEM algorithm (Ebihara et al., 2021; Miyagawa & Ebihara, 2021; Ebihara et al., 2023), which involves a consistent loss function, named Log-Sum-Exp Loss (LSEL):
+
+$$
+\hat {L} _ {\text {L S E L}} \left(\boldsymbol {w}; \left\{\left(X _ {m} ^ {(1, T)}\right), y _ {m} \right\} _ {m \in [ M ]}\right) := \frac {1}{K M} \sum_ {k \in [ K ]} \sum_ {t \in T} \frac {1}{M _ {k}} \sum_ {i \in I _ {k}} \log \left(1 + \sum_ {l (\neq k) \in [ K ]} e ^ {- \hat {\lambda} _ {k l} \left(\boldsymbol {w}, X ^ {(1, t)}\right)}\right) \tag {13}
+$$
+
+where $\pmb{w} \in \mathbb{R}^d$ is the trainable parameters, e.g., the weights of a neural network, $I_k := \{i \in [M] \mid y_i = k\}$ is the index set of class $k$ , $M_k := |I_k|$ is the size of $I_k$ , and $\hat{\lambda}_{kl}(\pmb{w}, X^{(1,t)})$ is the estimated LLR parameterized by $\pmb{w}$ . By minimizing LSEL, the estimated LLRs approaches the true LLRs as $M \to \infty$ (Miyagawa & Ebihara, 2021); i.e., LSEL is consistent. We provide further details of SPRT-TANDEM in App. I.
+
+Finally, integrating CFL and LSEL and solving the backward induction equation, we establish that FIRMBOUND is statistically consistent.
+
+Theorem 3.2 (Informal). Under several technical assumptions, FIRMBOUND with CFL is statistically consistent with the Bayes optimal algorithm for ECTS; i.e., it minimizes AAPR as $M \to \infty$ .
+
+Main assumptions are (i) a sufficiently large dataset size, (ii) a sufficiently large number of iterations of the ADMM algorithm in CFL, and (iii) a sufficiently large neural network for LSEL. The complete set of assumptions, the formal statement, and the proof are provided in App. J, as they are technical and lengthy. In the following, we empirically validate Thm. 3.2, demonstrating that FIRMBOUND minimizes AAPR, and highlight its practical strengths of FIRMBOUND across various datasets.
+
+# 4 EXPERIMENTS AND RESULTS
+
+These experiments are designed for a fair comparison with baseline models without exploring all possible configurations, as such variations would not alter our study's conclusion. To ensure fairness, the same feature extractor and feature vector size $d_{\mathrm{feat}}$ are used across all models. All
+
+
+
+
+
+
+
+
+Figure 5: Averaged a posteriori risk (AAPR) curves. AAPRs of FIRMBOUND are compared with static-threshold SPRTs. Horizontal and vertical axes are mean hitting time and AAPR, respectively. Note that we only show models with well-calibrated sufficient statistic here, as ill-calibrated statistic does not necessarily correlate with ECTS performance by definition and thus not meaningful discussing its minima (but see App. M for AAPR of other baseline models). Error bars represent the standard error of the mean.
+
+
+
+
+
+hyperparameters, including those for the baseline models, are optimized using Optuna (Akiba et al., 2019) with the Tree-structured Parzen Estimator (Bergstra et al., 2011). Details on parameter selection can be found in App. K. Additional parameter sensitivity test on GP models can be found in App. L, showing robustness against kernel choice. Fig. 4 shows The training and testing pipeline.
+
+Baselines. We evaluate the performance of FIRMBOUND by comparing it against SPRT with static thresholds and four ECTS models. To conduct SPRT on real-world datasets lacking true LLRs, we utilize SPRT-TANDEM (Ebihara et al., 2021; Miyagawa & Ebihara, 2021; Ebihara et al., 2023) to estimate LLRs. ECTS baseline models include: LSTMms, which enhances monotonic score growth (Ma et al., 2016), the reinforcement learning algorithm EARLIEST (with two fixed hyperparameters lambda $= 10^{-1}$ and $10^{-10}$ ) (Hartvigsen et al., 2019), the convolutional neural network-transformer hybrid, TCN-Transformer (TCNT, with two fixed hyperparameters $\alpha = 0.3$ and 0.5) (Chen et al., 2022), and Calibrated eArLy tIME sERies cIAsifier (CALIMERA, with fixed hyperparameters, delay penalty $= 0.1$ , 0.5.1.0) (Bilski & Jastrzewska, 2023).
+
+Evaluation criteria. Our evaluation metrics are AAPR and SAT curve. We compute APR at the decision time using softmax probabilities as class posteriors, with a fixed $\bar{L}_k = L = 10$ for all $k\in [K]$ , and up to three variations of $c\in \{L / T,2L / T,0.1L / T\}$ (Fig. 5), where $c = L / T$ is set such that the two terms in APR (Eq. 3) are of comparable magnitude. We do not vary $L$ because decision boundaries are invariant to the scaling of $L$ and $c$ (see App. N for the proof). The SAT curve is derived from the averaged per-class error rate (i.e., macro-averaged recall) measured at the stopping time (Fig. 6).
+
+CFL. CFL model is trained at each time step to estimate the conditional expectation (Eq. 7), utilizing a custom training routine adapted from (Siahkamari et al., 2022). We optimize hyperparameters by randomly sampling 1,000 sequential data points. This process is repeated 30 times to identify the hyperparameters that minimize mean squared error using Optuna (Akiba et al., 2019). Once hyperparameter is set, we sample 5,000 sequential data points to model the conditional expectation curve with 5 epochs of training. The requirement of a convex function over a finite input space lets us use posteriors $\pi_k(X_m^{(1,t)})$ as the sufficient statistic $\mathcal{S}_t$ . Training on a two-class sequential Gaussian dataset (details provided below) takes approximately 10 hours on NVIDIA RTX 2080Ti.
+
+
+Figure 6: Speed-Accuracy Tradeoff (SAT) Curves. The performance of ECTS is evaluated through SAT curves. The horizontal axis represents the mean hitting time, while the vertical axis shows the averaged per-class error rate, equivalent to macro-averaged recall. Thus, models closest to the bottom-left corner perform best. Error bars represent the standard error of the mean.
+
+
+Figure 7: Additional ablation tests. Random hitting time and artificial tapering thresholds evaluating (a) AAPR curve and (b) SAT curve. The artificial thresholds start with three different magnitude at $t = 1$ , gradually tapering to zero as approaching the horizon $t = T$ . See App. O for details.
+
+GP regression. GP model is trained at each time step same as CFL. Models are trained for 30 epochs with a batch size of 2,000 with 200 randomly selected inducing points. Our empirical comparisons indicate that either LLRs or posteriors can serve as the sufficient statistic $\mathcal{S}_t$ , yielding similar results (App. C). In subsequent analyses, we use LLRs for synthetic data and opt for posteriors for real-world data because of their lower dimensionality. Training on a two-class sequential Gaussian dataset (details provided below) typically requires approximately 20 minutes on NVIDIA RTX 2080Ti.
+
+Ablation tests. To assess the impact of different stopping rules, we conducted ablation tests using LLRs. The primary baseline is SPRT with static thresholds on estimated LLRs, as shown in Figs. 5 and 6. Additional tests are random stopping times to establish a chance level and monotonically descending decision boundaries generated using a power function (see App. O for details). Neither variant surpassed FIRMBOUND in terms of AAPR or SAT (Fig. 7). The datasets used in these experiments are detailed below.
+
+Dataset: sequential i.i.d. Gaussian datasets with known LLRs. Preliminary assessments are conducted on sequential Gaussian datasets to find that FIRMBOUND can minimize APR to achieve Pareto-optimal both with ground-truth and estimated LLRs. Let $p_0(x), p_1(x)$ , and $p_2(x)$ be the 128-dimensional Gaussian densities with an identity covariance matrix. The mean vectors are defined as $(0.5, 0, 0, \dots, 0)$ , $(0, 0.5, 0, \dots, 0)$ , and $(0, 0, 0.5, \dots, 0)$ for $p_0(x), p_1(x)$ , and $p_2(x)$ , respectively. Only $p_0(x)$ and $p_1(x)$ are used for the two-class dataset. We randomly sampled sequences of length $T = 50$ from these Gaussian distributions to form the datasets. The sizes of the training, validation, and test datasets are as follows: for the two-class dataset, 80,000, 2,000, and 80,000 samples respectively; for
+
+the three-class dataset, 60,000, 6,000, and 120,000 samples respectively. SPRT-TANDEM is trained with the sampled vectors to provide estimated LLRs. Fig. 5a, b and 6a, b shows that FIRMBOUND effectively minimize AAPR to reach the best speed-accuracy tradeoff given a sampling cost.
+
+Dataset: sequential non-i.i.d. Damped-Oscillating LLRs (DOLs). We explore the potential for mitigating early inadvertent error to find a new Pareto-front (Fig. 1a). Nonlinear two-class LLRs $\Lambda(t)$ of length $T = 50$ are generated as $\Lambda(t) = \gamma(1 - (1 - t/T)^{\exp(\kappa)}) + A\exp(-\beta t)\sin(\omega t) + \mathcal{N}(0, \sigma)$ , where $\gamma \in \{-1,1\}$ denotes the class label value towards which the first term converges, the second term introduces a damped oscillation, and the third term represents Gaussian noise. The dataset is generated using parameters $\kappa, A, \beta, \omega$ , and $\sigma$ , chosen from a predefined parameter space. This results in 20,000 training samples, 2,000 validation samples, and 80,000 test samples. For additional details on LLR trajectories and dataset parameters, see App. P. Fig. 6c demonstrate that FIRMBOUND achieves notably low errors, effectively advancing the Pareto-front to a new optimal level.
+
+Dataset: real-world datasets for ECTS. Four datasets are used: SiW (two-class) (Liu et al., 2018b), HMDB51 (51-class) (Kuehne et al., 2011), UCF101 (101-class) (Soomro et al., 2012), and FordA dataset (two-class) (Dau et al., 2018). For the SiW dataset, a ResNet-152 (He et al., 2016a;b) is trained as a feature extractor to generate 512-dimensional feature vectors for each frame. The pretrained Microsoft Vision Model ResNet $50^{1}$ , without fine-tuning, is used to extract 2048-dimensional feature vectors from the HMDB51 datasets. The pretrained vision transformer DINOv2 (the largest model without distillation) with registers (Dosovitskiy et al., 2021; Oquab et al., 2024; Darcet et al., 2024) is used to extract 1,538-dimensional feature vectors from UCF101 datasets. The dataset sizes and sequence lengths are as follows: SiW comprises 46,729 training, 4,968 validation, and 43,878 test samples, all with a sequence length of $T = 50$ ; HMDB51 includes 5,277 training, 519 validation, and 2,434 test samples with $T = 79$ ; UCF101 consists of 35,996 training, 4,454 validation, and 15,807 test samples, each with $T = 20$ . Figs. 5d-f and 6d-f show that FIRMBOUND reaches Pareto-front by minimizing AAPR, and extend the frontier in a few datasets. FordA is used as an experiment on a non-vision modality dataset, presented in App. Q, showing the same trend.
+
+Reducing the variance of hitting time. Although FIRMBOUND consistently identifies the Pareto-optimal point, it does not always show performance gains compared with the vanilla SPRT. However, the variance of the hitting time is statistically significantly smaller across the database (Tab. 1, Wilcoxon signed-rank test, $p = 2.00 \times 10^{-8} \ll 0.001$ ), demonstrating FIRMBOUND's advantage in reducing the variance of hitting time to enable reliable decision making across data.
+
+Table 1: Mean variance of hitting time (MVHT). FIRMBOUND with CFL provides smaller variance of hitting times than vanilla SPRT when evaluated at the same mean hitting time and corresponding macro averaged recall. The variance reduction is statistically significant (see main text).
+
+
Dataset
Gauss2est.
Gauss3est.
DOL
SiW
HMDB
UCF101
FordA
Trial repeats
5
3
3
5
6
10
2
↓MVHT, vanilla SPRT with static threshold
10.47
44.02
489.89
2.87
199.31
0.55
32.15
↓MVHT, FIRMBOUND with CFL
9.01
42.78
405.78
1.97
195.35
0.53
23.39
↑Difference in MVHT (positive is better)
1.45
1.24
84.11
0.90
3.97
0.017
8.76
+
+# 5 CONCLUSION
+
+With two statistically consistent estimators for backward induction and the sufficient statistic, FIRMBOUND delineates stable Pareto fronts across diverse datasets. Unlike existing ECTS models, which lack theoretical guarantees and are sensitive to hyperparameters and datasets (Fig.6d-f), FIRMBOUND consistently achieves optimal performance with reduced hitting time variance, approaching optimal performance for ECTS in real-world scenarios. For further discussion, see App.F.
+
+# REFERENCES
+
+T. Akiba, S. Sano, T. Yanase, T. Ohta, and M. Koyama. Optuna: A next-generation hyperparameter optimization framework. In KDD, pp. 2623-2631, 2019.
+B. Amos, L. Xu, and J. Z. Kolter. Input convex neural networks. In International Conference on Machine Learning, 2016.
+A. Argyriou, T. Evgeniou, and M. Pontil. Convex multi-task feature learning. Machine Learning, 73: 243-272, 2008.
+K. J. Arrow, D. Blackwell, and M. A. Girshick. Bayes and minimax solutions of sequential decision problems. *Econometrica*, 17:213, 1949.
+F. R. Bach. Structured sparsity-inducing norms through submodular functions. In Neural Information Processing Systems, 2010.
+P. L. Bartlett, O. Bousquet, and S. Mendelson. Local rademacher complexities. Annals of Statistics, 33:1497-1537, 2005.
+M. I. Belghazi, A. Baratin, S. Rajeshwar, S. Ozair, Y. Bengio, A. Courville, and D. Hjelm. Mutual information neural estimation. In International Conference on Machine Learning, pp. 531-540, 2018.
+J. Bergstra, R. Bardenet, Y. Bengio, and B. Kégl. Algorithms for hyper-parameter optimization. In J. Shawe-Taylor, R. Zemel, P. Bartlett, F. Pereira, and K. Q. Weinberger (eds.), Advances in Neural Information Processing Systems, volume 24, pp. 2546-2554. Curran Associates, Inc., 2011.
+J. M. Bilski and A. Jastrzebska. Calimera: A new early time series classification method. Information Processing & Management, 60(5):103465, 2023. ISSN 0306-4573.
+S. P. Boyd and L. Vandenberghe. Convex optimization. ArXiv, abs/2106.01946, 2010.
+H. Chen, A. Tian, Y. Zhang, and Y. Liu. Early time series classification using TCN-transformer. 2022 IEEE 4th International Conference on Civil Aviation Safety and Information Technology (ICCASIT), pp. 1079-1082, 2022.
+J. Cheng, Y. Chen, Q. Zhang, L. Gan, and M. Liu. Real-time trajectory planning for autonomous driving with Gaussian process and incremental refinement. 2022 International Conference on Robotics and Automation (ICRA), pp. 8999-9005, 2022.
+Y. Chow, H. Robbins, and D. Siegmund. The Theory of Optimal Stopping. Dover books on advanced mathematics. Dover, 1991. ISBN 9780486666501.
+T. Darcet, M. Oquab, J. Mairal, and P. Bojanowski. Vision transformers need registers. In The Twelfth International Conference on Learning Representations, 2024.
+H. A. Dau, E. Keogh, K. Kamgar, C.-C. M. Yeh, Y. Zhu, S. Gharghabi, C. A. Ratanamahatana, Yanping, B. Hu, N. Begum, A. Bagnall, A. Mueen, and G. Batista. The UCR time series classification archive, October 2018.
+R. Doná, G. P. R. Papini, and G. Valenti. MSPRT action selection model for bio-inspired autonomous driving and intention prediction. In IROS, 2019.
+A. Dosovitskiy, L. Beyer, A. Kolesnikov, D. Weissenborn, X. Zhai, T. Unterthiner, M. Dehghani, M. Minderer, G. Heigold, S. Gelly, J. Uszkoreit, and N. Houlsby. An image is worth 16x16 words: Transformers for image recognition at scale. In The International Conference on Learning Representations (ICLR), 2021.
+A. F. Ebihera, T. Miyagawa, K. Sakurai, and H. Imaoka. Sequential density ratio estimation for simultaneous optimization of speed and accuracy. In The International Conference on Learning Representations (ICLR), 2021.
+
+A. F. Ebihara, T. Miyagawa, K. Sakurai, and H. Imaoka. Toward asymptotic optimality: Sequential unsupervised regression of density ratio for early classification. In IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pp. 1-5, 2023.
+J. Eckstein. Augmented lagrangian and alternating direction methods for convex optimization: A tutorial and some illustrative computational results. 2012.
+R. S. Evans, K. G. Kuttler, K. J. Simpson, S. Howe, P. F. Crossno, K. V. Johnson, M. N. Schreiner, J. F. Lloyd, W. H. Tettelbach, R. K. Keddington, A. Tanner, C. Wilde, and T. P. Clemmer. Automated detection of physiologic deterioration in hospitalized patients. *J Am Med Inform Assoc*, 22(2): 350-360, Mar 2015.
+D. Gabay and B. Mercier. A dual algorithm for the solution of nonlinear variational problems via finite element approximation. Computers & Mathematics With Applications, 2:17-40, 1976.
+J. R. Gardner, G. Pleiss, D. Bindel, K. Q. Weinberger, and A. G. Wilson. GPyTorch: Blackbox matrix-matrix Gaussian process inference with GPU acceleration. In Advances in Neural Information Processing Systems, 2018.
+M. F. Ghalwash, V. Radosavljevic, and Z. Obradovic. Utilizing temporal patterns for estimating uncertainty in interpretable early decision making. In Proceedings of the 20th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, KDD '14, pp. 402-411, New York, NY, USA, 2014. Association for Computing Machinery. ISBN 9781450329569.
+R. Glowinski and A. Marroco. Sur l'approximation, par éléments finis d'ordre un, et la résolution, par pénalisation-dualité d'une classe de problèmes de dirichlet non linéaires. 1975.
+J. Gonzalvez, E. Lezmi, T. Roncalli, and J. Xu. Financial applications of Gaussian processes and bayesian optimization. *Econometric Modeling: Capital Markets - Asset Pricing Journal*, 2019.
+M. P. Griffin and J. R. Moorman. Toward the early diagnosis of neonatal sepsis and sepsis-like illness using novel heart rate analysis. Pediatrics, 107(1):97-104, Jan 2001.
+R. Grinold. Finite horizon approximations of infinite horizon linear programs. Mathematical Programming, 12:1-17, 01 1977.
+C. Guo, G. Pleiss, Y. Sun, and K. Q. Weinberger. On calibration of modern neural networks. In Proceedings of the 34th International Conference on Machine Learning - Volume 70, ICML'17, pp. 1321-1330. JMLR.org, 2017.
+A. Gupta, H. P. Gupta, B. Biswas, and T. Dutta. Approaches and applications of early classification of time series: A review. IEEE TAI, 1(1):47-61, 2020.
+M. U. Gutmann and A. Hyvarinen. Noise-contrastive estimation of unnormalized statistical models, with applications to natural image statistics. The journal of machine learning research, 13(1): 307-361, 2012.
+T. Hartvigsen, C. Sen, X. Kong, and E. Rundensteiner. Adaptive-halting policy network for early classification. In Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, KDD '19, pp. 101-110, New York, NY, USA, 2019. ACM.
+K. He, X. Zhang, S. Ren, and J. Sun. Deep residual learning for image recognition. 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 770-778, 2016a.
+K. He, X. Zhang, S. Ren, and J. Sun. Identity mappings in deep residual networks. In Computer Vision - ECCV 2016 - 14th European Conference, Amsterdam, The Netherlands, October 11-14, 2016, Proceedings, Part IV, pp. 630-645, 2016b.
+J. Hensman, N. Fusi, and N. D. Lawrence. Gaussian processes for big data. In Proceedings of the Twenty-Ninth Conference on Uncertainty in Artificial Intelligence, UAI'13, pp. 282-290, Arlington, Virginia, USA, 2013. AUAI Press.
+
+J. Hensman, A. Matthews, and Z. Ghahramani. Scalable variational Gaussian process classification. In G. Lebanon and S. V. N. Vishwanathan (eds.), Proceedings of the Eighteenth International Conference on Artificial Intelligence and Statistics, volume 38 of Proceedings of Machine Learning Research, pp. 351-360, San Diego, California, USA, 09-12 May 2015. PMLR.
+H. Herfurth. Gaussian process regression in computational finance. 2020.
+R. D. Hjelm, A. Fedorov, S. Lavoie-Marchildon, K. Grewal, P. Bachman, A. Trischler, and Y. Bengio. Learning deep representations by mutual information estimation and maximization. In International Conference on Learning Representations, 2019.
+S. Huang. Surrogates: Gaussian process modeling, design, and optimization for the applied sciences. Journal of Quality Technology, 53:440 - 441, 2020.
+K. Jakkala and S. Akella. Multi-robot informative path planning from regression with sparse Gaussian processes. ArXiv, abs/2309.07050, 2023.
+D. Jarrett and M. van der Schaar. Inverse active sensing: Modeling and understanding timely decision-making. ArXiv, abs/2006.14141, 2020.
+A. Krizhevsky, I. Sutskever, and G. E. Hinton. Imagenet classification with deep convolutional neural networks. Communications of the ACM, 60:84 - 90, 2012.
+H. Kuehne, H. Jhuang, E. Garrote, T. Poggio, and T. Serre. HMDB: a large video database for human motion recognition. In ICCV, 2011.
+R. D. Labati, A. Genovese, E. Muñoz, V. Piuri, F. Scotti, and G. Sforza. Biometric recognition in automated border control: A survey. ACM Comput. Surv., 49(2), jun 2016. ISSN 0360-0300.
+Y. LeCun, L. Bottou, Y. Bengio, and P. Haffner. Gradient-based learning applied to document recognition. Proc. IEEE, 86:2278-2324, 1998.
+Q. Liu, L. Li, Z. Tang, and D. Zhou. Breaking the curse of horizon: Infinite-horizon off-policy estimation. In Advances in Neural Information Processing Systems, pp. 5356-5366, 2018a.
+Y. Liu, A. Jourabloo, and X. Liu. Learning deep models for face anti-spoofing: Binary or auxiliary supervision. In CVPR, June 2018b.
+S. Ma, L. Sigal, and S. Sclaroff. Learning activity progression in lstms for activity detection and early detection. In 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 1942-1950, 2016.
+A. G. D. G. Matthews. Scalable Gaussian process inference using variational methods. 2017.
+G. Melotti, C. Premebida, J. J. Bird, D. R. Faria, and N. Gonccalves. Reducing overconfidence predictions in autonomous driving perception. IEEE Access, PP:1-1, 2022.
+S. Mendelson. Geometric parameters in learning theory. 2004.
+T. Miyagawa and A. F. Ebihara. The power of log-sum-exp: Sequential density ratio matrix estimation for speed-accuracy optimization. In Proceedings of the 38th International Conference on Machine Learning, pp. 7792-7804, 2021.
+U. Mori, A. Mendiburu, E. J. Keogh, and J. A. Lozano. Reliable early classification of time series based on discriminating the classes over time. DMKD, 31:233-263, 2016.
+G. V. Moustakides and K. Basioti. Training neural networks for likelihood/density ratio estimation. ArXiv, abs/1911.00405, 2019.
+J. Mukhoti, V. Kulharia, A. Sanyal, S. Golodetz, P. H. S. Torr, and P. K. Dokania. Calibrating deep neural networks using focal loss. ArXiv, abs/2002.09437, 2020.
+R. Müller, S. Kornblith, and G. E. Hinton. When does label smoothing help? In H. Wallach, H. Larochelle, A. Beygelzimer, F. d'Alché-Buc, E. Fox, and R. Garnett (eds.), Advances in Neural Information Processing Systems, volume 32. Curran Associates, Inc., 2019.
+
+A. v. d. Oord, Y. Li, and O. Vinyals. Representation learning with contrastive predictive coding. arXiv preprint arXiv:1807.03748, 2018.
+M. Oquab, T. Darcet, T. Moutakanni, H. V. Vo, M. Szafraniec, V. Khalidov, P. Fernandez, D. HAZIZA, F. Massa, A. El-Nouby, M. Assran, N. Ballas, W. Galuba, R. Howes, P.-Y. Huang, S.-W. Li, I. Misra, M. Rabbat, V. Sharma, G. Synnaeve, H. Xu, H. Jegou, J. Mairal, P. Labatut, A. Joulin, and P. Bojanowski. DINoV2: Learning robust visual features without supervision. Transactions on Machine Learning Research, 2024. ISSN 2835-8856.
+G. Peskir and A. Shiryaev. Optimal stopping and free-boundary problems, pp. 123-142. Birkhäuser Basel, Basel, 2006. ISBN 978-3-7643-7390-0.
+D. Petelin, J. Sindelář, J. Prikryl, and J. Kocijan. Financial modeling using Gaussian process models. In Proceedings of the 6th IEEE International Conference on Intelligent Data Acquisition and Advanced Computing Systems, volume 2, pp. 672-677, 2011.
+P. Richter and M. Toledano-Ayala. Revisiting Gaussian process regression modeling for localization in wireless sensor networks. Sensors (Basel, Switzerland), 15:22587 - 22615, 2015.
+M. N. Shadlen, R. Kiani, W. T. Newsome, J. I. Gold, D. M. Wolpert, A. Zylberberg, J. Ditterich, V. de Lafuente, T. Yang, and J. Roitman. Comment on "Single-trial spike trains in parietal cortex reveal discrete steps during decision-making". Science, 351(6280):1406, Mar 2016.
+A. Siahkamari, A. Gangrade, B. Kulis, and V. Saligrama. Piecewise linear regression via a difference of convex functions. ArXiv, abs/2007.02422, 2020.
+A. Siahkamari, D. A. E. Acar, C. Liao, K. L. Geyer, V. Saligrama, and B. Kulis. Faster algorithms for learning convex functions. In K. Chaudhuri, S. Jegelka, L. Song, C. Szepesvari, G. Niu, and S. Sabato (eds.), Proceedings of the 39th International Conference on Machine Learning, volume 162 of Proceedings of Machine Learning Research, pp. 20176-20194. PMLR, 17-23 Jul 2022.
+K. Soomro, A. R. Zamir, and M. Shah. UCF101: A dataset of 101 human actions classes from videos in the wild. ArXiv, abs/1212.0402, 2012.
+M. Sugiyama, T. Suzuki, and T. Kanamori. Density ratio estimation: A comprehensive review. RIMS Kokyuroku, pp. 10-31, 01 2010.
+M. Sugiyama, T. Suzuki, S. Nakajima, H. Kashima, P. von Bunau, and M. Kawanabe. Direct importance estimation for covariate shift adaptation. Annals of the Institute of Statistical Mathematics, 60(4):699-746, 2008.
+M. Sugiyama, T. Suzuki, and T. Kanamori. Density Ratio Estimation in Machine Learning. Cambridge University Press, 2012.
+H. Tao, M. M. Hameed, H. A. Marhoon, M. Zounemat-Kermani, H. Salim, K. Sungwon, S. O. Sulaiman, M. L. Tan, Z. Sa'adi, A. D. Mehr, M. F. Allawi, S. I. Abba, J. M. Zain, M. W. Falah, M. Jamei, N. D. Bokde, M. Bayatvarkeshi, M. Al-Mukhtar, S. K. Bhagat, T. Tiyasha, K. M. Khedher, N. Al-Ansari, S. Shahid, and Z. M. Yaseen. Groundwater level prediction using machine learning models: A comprehensive review. Neurocomputing, 489:271-308, 2022.
+A. Tartakovsky. Asymptotic optimality of certain multihypothesis sequential tests: Non-i.i.d. case. Stat. Inference Stoch. Process., 1:265-295, 1998.
+A. Tartakovsky. Asymptotically optimal sequential tests for nonhomogeneous processes. Sequential Analysis, 17, 04 1999.
+A. Tartakovsky, I. Nikiforov, and M. Basseville. Sequential Analysis: Hypothesis Testing and Changepoint Detection. Chapman & Hall/CRC, 1st edition, 2014.
+A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez, L. u. Kaiser, and I. Polosukhin. Attention is all you need. In NeurIPS, volume 30, pp. 5998-6008, 2017.
+E. Vats and C. S. Chan. Early detection of human actions—a hybrid approach. Appl. Soft Comput. J., 46:953 - 966, 2016. ISSN 1568-4946.
+
+A. Wald. Sequential tests of statistical hypotheses. Ann. Math. Statist., 16(2):117-186, 06 1945.
+A.Wald.Sequential Analysis.JohnWileyandSons,1stedition,1947.
+J. Wang. An intuitive tutorial to Gaussian process regression. Computing in Science & Engineering, 25:4-11, 2020.
+Z. Wang and D. W. Scott. Nonparametric density estimation for high-dimensional data—algorithms and applications. Wiley Interdisciplinary Reviews: Computational Statistics, 11, 2019.
+Z. Xing, J. Pei, and P. S. Yu. Early prediction on time series: A nearest neighbor approach. In *IJCAI*, pp. 1297-1302, 2009.
+G. Xiong, J. Li, and R. Singh. Reinforcement learning augmented asymptotically optimal index policy for finite-horizon restless bandits. Proceedings of the AAAI Conference on Artificial Intelligence, 36(8):8726-8734, Jun. 2022.
+J. Xu, J. Qiao, X. Han, Y. He, H. Tian, and Z. Wei. A random sampling-based method via Gaussian process for motion planning in dynamic environments. Applied Sciences, 2022.
+
+# ACKNOWLEDGEMENTS
+
+We sincerely thank the anonymous reviewers for their constructive comments and the area chair for a thorough, fair, and objective evaluation of our work. The authors also extend their gratitude to Yukai Fujii for reading an early draft of the manuscript and providing invaluable feedback.
+
+# AUTHOR CONTRIBUTIONS
+
+A.F.E. and T.M. conceived the overall research direction, developed the theoretical framework, and wrote the manuscript. A.F.E. formulated the methodology, ran a pilot study to establish feasibility, conducted the experiments, and organized the code for release. K.S. and H.I. supervised the project.
+
+# APPENDIX
+
+# CONTENTS
+
+1 Introduction 1
+2 Preliminaries: Notations and SPRT 3
+3 FIRMBOUND 5
+
+3.1 Estimating the Conditional Expectation 5
+3.2 Density Ratio Estimation (DRE) for ECTS 7
+
+4 Experiments and Results 7
+5 Conclusion 10
+
+References 11
+
+A Mathematical Foundations 19
+
+A.1 Probability Measure and Data Randomness 19
+A.2 Decision Rule, Terminal Decision, and Stopping Rule 19
+
+B Sequential Probability Ratio Test and Its Optimality 20
+C LLRs and Posteriors as Sufficient Statistic 21
+
+D Computational Complexity of FIRMOUND and sampling method 22
+
+D.1 Direct Estimation Approach (FIRMBOUND) 22
+D.2 Monte Carlo Integration with KDE Approach 22
+D.3 Comparison 23
+
+E Supplementary Related Work 24
+
+E.1SPRT and Its Optimality 24
+E.2 Optimal Stopping Theory 24
+E.3SPRT's Backward Induction and Conditional Expectation 24
+E.4 Sequential Design 24
+E.5 Reinforcement Learning (RL) 25
+E.6 Active Learning 25
+E.7 Convex Function Learning (CFL) 25
+E.8 Gaussian Process (GP) Regression 25
+E.9 Other ECTS Algorithms 26
+E.10 Neurophysiological underpinnings of SPRT. 26
+
+F Supplementary Discussion 27
+
+F.1 Intuitive Understanding of FIRMBOUND 27
+F.2 Challenges in Estimating Conditional Expectations Using Monte Carlo and Kernel Density Estimation 27
+
+F.2.1 Curse of Dimensionality 27
+F.2.2 Computational Complexity 28
+F.2.3 Bandwidth Selection 28
+F.2.4 Sampling Efficiency 28
+F.2.5 Mitigation Strategies 28
+F.2.6 Advantage of Having a Direct Estimator FIRMBOUND 28
+
+F.3 Performance under Small Datasets 29
+F.4 Broader impact 29
+F.5 Limitations and future work 30
+F.6 Frequently Asked Questions 31
+
+# G Lagrangian Function for Convex Function Learning 33
+
+# H Stochastic Variational ELBO Maximization 35
+
+# I SPRT-TANDEM 36
+
+# J FIRMBOUND Is Statistically Consistent 37
+
+J.1 Assumptions 37
+J.2 Formal Statement 38
+J.3 Proof 38
+
+# K Experimental Details and Supplementary Results 40
+
+K.1 FIRMBOUND with CFL 40
+K.2 FIRMBOUND with GP Regression 40
+K.3 Dataset Preparation 40
+K.4 Training ECTS Models 41
+
+K.4.1 Two-class Gaussian dataset 42
+K.4.2 Three-class Gaussian dataset 42
+K.4.3 SiW 43
+K.4.4 HMDB51 45
+K.4.5 UCF101 47
+
+K.5 Computing Infrastructure 49
+
+# L On Hyperparameter Sensitivity of FIRMBOUND 50
+
+# M AAPR on Baseline Models 52
+
+# N Parameter Space of $L$ and $c$ 53
+
+O Ablation Study Details 54
+P Dumped Oscillating Log-likelihood Ratio Function 55
+Q Supplementary experiment on the UCR FordA Dataset 56
+Supplementary References 57
+
+# A MATHEMATICAL FOUNDATIONS
+
+In the main text, we introduced concise notations to avoid delving into unnecessarily technical details. Here, we provide more rigorous definitions. See Tartakovsky et al. (2014) for details.
+
+# A.1 PROBABILITY MEASURE AND DATA RANDOMNESS
+
+We consider a standard probability space $(\Omega, \mathcal{F}, P)$ , where $\Omega$ is a sample space, $\mathcal{F} \subset \mathcal{P}(\Omega)$ is a $\sigma$ -algebra of $\Omega$ , where $\mathcal{P}(\Omega)$ denotes the power set of $\Omega$ , and $P$ is a probability measure satisfying Kolmogorov's axioms:
+
+$P(\Omega) = 1$
+- $P(A) \geq 0$ for any $A \in \mathcal{F}$ ,
+- $P\left(\bigcup_{i=1}^{\infty} A_i\right) = \sum_{i=1}^{\infty} P(A_i)$ for any countable collection $\{A_i\}_{i=1}^{\infty} \subset \mathcal{F}$ of pairwise disjoint sets (i.e., $A_i \cap A_j = \emptyset$ for $i \neq j$ ).
+
+A function $X = X(\omega)$ defined on the space $(\Omega, \mathcal{F})$ (with values in $\mathbb{R}^{d_{\text{feat}}}$ ( $d_{\text{feat}} \in \mathbb{N}$ ) in our paper) is called random variable if it is $\mathcal{F}$ -measurable. The probability that a random variable $X$ takes values in a set $B \subset \mathbb{R}^{d_{\text{feat}}}$ is defined as $P(X \in B) := P(X^{-1}(B))$ , where $X^{-1}$ is the preimage of $X$ .
+
+Let $\{\mathcal{F}_t\}_{t\geq 0}$ be a filtration, which is a non-decreasing sequence of sub- $\sigma$ -algebras of $\mathcal{F}$ ; i.e., $\mathcal{F}_s \subset \mathcal{F}_t \subset \mathcal{F}$ for all $0 \leq s \leq t$ . Each element of the filtration can be interpreted as the available information at a given point $t$ . The tuple $(\Omega, \mathcal{F}, \{\mathcal{F}_t\}_{t\geq 0}, P)$ is called a filtered probability space.
+
+In our problem setting, $X_{m}^{(1,T)}$ in the dataset $S = \{X_{m}^{(1,T)}\}_{m=1}^{M}$ represents a sequence of observations for the $m$ -th sample, which is treated as a stochastic process or as a realization of the stochastic process $X^{(1,T)}$ interchangeably in our paper. $y_{m}$ is the fixed class label associated with $X_{m}^{(1,T)}$ .
+
+# A.2 DECISION RULE, TERMINAL DECISION, AND STOPPING RULE
+
+The decision rule $\delta$ is defined as the pair $(d_t, \tau)$ , where $d_t$ is the terminal decision rule at time $\tau = t$ ( $t \in \{1, \dots, T\}$ ) and $\tau \in \{1, \dots, T\}$ is the stopping time. We provide their definitions below.
+
+The task of hypothesis testing as a time series classification involves identifying which one of the densities $p_1, \ldots, p_K$ the sequence $X^{(1,T)}$ is sampled from. Formally, this tests the hypotheses $H_1: y = 1, \ldots, H_K: y = K$ .
+
+The decision function or test for a stochastic process $X^{(1,T)}$ is denoted by $d_t(X^{(1,T)}): \Omega \to \{1, \ldots, K\}$ . For each realization of $X^{(1,T)}$ , we identify $d_T: \mathbb{R}^{d_{feat} \times T} \to \{1, \ldots, K\}$ , i.e., $X^{(1,T)}(\omega) \mapsto y$ , where $y \in \{1, \ldots, K\}$ . For simplicity, we write $d_t$ instead of $d_t(X^{(1,T)})$ .
+
+The stopping time $\tau$ of $X^{(1,T)}$ with respect to a filtration $\{\mathcal{F}_t\}_{t\geq 1}$ is defined as $\tau \coloneqq \tau (X^{(1,T)}):\Omega \to \mathbb{R}_{\geq 0}$ such that $\{\omega \in \Omega |\tau (\omega)\leq t\} \in \mathcal{F}_t$
+
+Accordingly, for a fixed $T \in \mathbb{N}$ and $y \in \{1, \ldots, K\}$ , the set $\{d_t = y\}$ represents the time-series data for which the decision function accepts the hypothesis $H_i (i \in \{1, \ldots, K\})$ with a finite stopping time. Specifically, $\{d_t = y\} = \{\omega \in \Omega | d_t(X^{(1,T)})(\omega) = y, \tau(X^{(1,T)})(\omega) < \infty\}$ .
+
+# B SEQUENTIAL PROBABILITY RATIO TEST AND ITS OPTIMALITY
+
+Our work centers around the optimality of Wald's SPRT. Below, we briefly review the optimality statements for both i.i.d. and non-i.i.d., multiclass classification scenarios. Note that the assumption of increasing LLRs is not applicable under the finite horizon setting discussed in the main manuscript.
+
+# SPRT's optimality with i.i.d., binary class data series.
+
+Theorem B.1. I.I.D. Optimality Let the time-series data points $x^{(t)}$ , $t = 1,2,\ldots$ be i.i.d. with density $f_{0}$ under $H_{0}$ and with density $f_{1}$ under $H_{1}$ , where $f_{0} \neq f_{1}$ . Let $\alpha_{0} > 0$ and $\alpha_{1} > 0$ be fixed constants such that $\alpha_{0} + \alpha_{1} < 1$ . If the thresholds $-a_{o}$ and $a_{1}$ satisfies $\alpha_{0}^{*}(a_{0},a_{1}) = \alpha_{0}$ and $\alpha_{1}^{*}(a_{0},a_{1}) = \alpha_{1}$ , then $SPRT\delta^{*} = (d^{*},\tau^{*})$ satisfies
+
+$$
+\inf _ {\delta = (d, \tau) \in C \left(\alpha_ {0}, \alpha_ {1}\right)} \left\{\mathbb {E} [ \tau | H _ {0} ] \right\} = \mathbb {E} [ \tau^ {*} | H _ {0} ] \quad a n d \quad \inf _ {\delta = (d, \tau) \in C \left(\alpha_ {0}, \alpha_ {1}\right)} \left\{\mathbb {E} [ \tau | H _ {1} ] \right\} = \mathbb {E} [ \tau^ {*} | H _ {1} ] \tag {14}
+$$
+
+A similar optimality also holds for continuous-time processes (Irle & Schmitz, 1984). Thus, SPRT terminates at the earliest expected stopping time compared to any other decision rule achieving the same or lower error rates—establishing the optimality of SPRT.
+
+Thm. B.1 demonstrates that, given user-defined thresholds, SPRT achieves the optimal mean hitting time. Additionally, these thresholds determine the error rates (Wald, 1947). Therefore, SPRT can minimize the required number of samples while maintaining desired upper bounds on false positive and false negative rates.
+
+SPRT's Asymptotic Optimality with Non-I.i.d., Multiclass Data Series. Intuitively, Thm. B.2 (Tartakovsky et al., 2014) suggests that if the LLRs $\lambda_{kl}$ increase as samples accumulate, SPRT algorithm achieves asymptotic optimality. In this condition, the moments of the stopping time are minimized up to order $r$ for a specified classification error rate.
+
+Theorem B.2 (Asymptotic optimality of SPRT under a multiclass, non-i.i.d. case). Assume that a non-negative increasing function $\psi(t)$ ( $\psi(t) \xrightarrow{t \to \infty} \infty$ ) and positive finite constants $I_{kl}$ ( $k, l \in [K]$ , $k \neq l$ ) exist, such that for some $r > 0$ , $\lambda_{kl}(t) / \psi(t) \xrightarrow{P_{k-r-quickly}} I_{kl}$ . Then for all $m \in (0, r]$ and $k \in [K]$ , $\inf_{\delta} \mathbb{E}_k[\tau]^m \approx \mathbb{E}_k[\tau^*]^m$ as $\max_{k, l} a_{kl} \to \infty$ .
+
+The precise definition of $r$ -quick convergence and a more detailed discussion can be found, e.g., in Tartakovsky et al. (2014). Fig. 8 shows a graphical guide to the multiclass-SPRT decision rule.
+
+
+Figure 8: Procedure of multiclass SPRT with static thresholds. (a) Example LLR trajectories for a three-class sequential Gaussian dataset, represented as an LLR matrix. (b, c) The two minimum operations defined in Def. 2.1 to determine the stopping time $\tau^{*}$ .
+
+# C LLRS AND POSTERIORS AS SUFFICIENT STATISTIC
+
+The backward induction equation (Eq.7) depends on a sufficient statistic, which encapsulates all necessary information for decision-making. In hypothesis testing, true LLRs or posterior probabilities suffice to make decisions with a predefined error rate (Wald, 1947), thus both LLRs and posteriors qualify as sufficient statistics. The conversion is expressed by $\pi_k(X^{(1,t)}) = 1 / (1 + \sum_{i\neq k}\chi_{ik}\exp (\lambda_{ik}(X^{(1,t)}))$ , where $\chi_{kl}\coloneqq p(y = k) / p(y = l)$ represents the prior ratio. A formal definition of a sufficient statistic is available in Tartakovsky et al. (2014), as follows:
+
+Definition C.1 (Sufficient Statistic). A sequence $\{\mathcal{S}_t\}_{t\geq 1}$ is defined to be sufficient statistic for the sequential decision problem if it satisfies the following conditions:
+
+1. Transitivity: The sequence is transitive, meaning there exists a function $\phi_n(\cdot)$ such that
+
+$$
+\mathcal {S} _ {t + 1} = \phi_ {t} \left(\mathcal {S} _ {t}, x ^ {(t + 1)}\right), \quad a l m o s t s u r e l y, f o r n \geq 1.
+$$
+
+2. Equality of Conditional Probability Density Function (pdf): The conditional pdf of $X_{t+1}$ given the past observations $X^t$ can be expressed solely in terms of $\mathcal{S}_t$ :
+
+$$
+p _ {t + 1} \left(x ^ {(t + 1)} \mid X ^ {(1, t)}\right) = p _ {t + 1} \left(x ^ {(t + 1)} \mid \mathscr {S} _ {t}\right), \quad \text {a l m o s t s u r e l y , f o r} t \geq 1.
+$$
+
+3. Equality of Risks: The A Posteriori Risk (APR) when using the sufficient statistic $\mathcal{S}_t$ equals the APR calculated directly from the observations:
+
+$$
+\operatorname {A P R} \left(X ^ {(1, t)}\right) = \operatorname {A P R} \left(\mathscr {S} _ {t}\right), \quad \text {a l m o s t s u r e l y , f o r} n \geq 1.
+$$
+
+Note that the online DRE algorithm SPRT-TANDEM is transitive, providing consistent estimation of the sufficient statistic.
+
+Which statistic to use, LLRs or posteriors? In principle, the CFL algorithm can handle either LLRs or posteriors as the sufficient statistic for calculating the conditional expectation. Our experiments confirm that both LLRs and posteriors yield equivalent results; however, we opt to use posteriors to reduce input dimensionality.
+
+Conversely, our use of GP regression is predicated on the assumption that the risk distribution is jointly Gaussian, which motivates us to use LLRs as the sufficient statistic. Nonetheless, an experiment with the two-class Gaussian dataset confirms that GP regression provides equivalent results regardless of the type of statistic used (Fig. 9).
+
+
+Figure 9: Comparing LLRs and posteriors as sufficient statistics for GP Regression. LLRs and posteriors are used as sufficient statistics to evaluate (a) the AAPR curve and (b) the SAT curve. The two-class Gaussian dataset provides the ground-truth LLRs and the corresponding converted posteriors.
+
+# D COMPUTATIONAL COMPLEXITY OF FIRMBOUND AND SAMPLING METHOD
+
+Here, we provide a detailed comparison of the computational complexity for the inference stage of both the direct estimation approach and the Monte Carlo Integration with Kernel Density Estimation (KDE) approach.
+
+# D.1 DIRECT ESTIMATION APPROACH (FIRMBOUND)
+
+The direct estimation approach uses the following function to evaluate the conditional expectation:
+
+```txt
+@torch.no_grad()
+def predict(self, X: Tensor, *args, **kwargs) -> Tensor:
+ pred, _ = torch.max(
+ torch/matmul(X, self.a.T) + self.y_hat.reshape(1, -1), dim=1)
+ return pred
+```
+
+In this function:
+
+- $X$ is the input tensor of size $[B, K]$ , where $B$ is the batch size and $K$ is the number of classes.
+- self.a and self.y_hat are parameter tensors of size $[I, K]$ and $[I]$ , respectively, where $I \ll M$ is the subset data number.
+
+The computational complexity for each step in the inference stage is as follows:
+
+1. Matrix Multiplication: The operation torch/matmul(X, self.a.T) has a complexity of $\mathcal{O}(B \cdot K \cdot I)$ . Broadcasting and Addition: The operation torch/matmul(X, self.a.T) + self.y_hat.reshape(1, -1) involves broadcasting and addition, which has a complexity of $\mathcal{O}(B \cdot I)$ .
+2. Maximum Value Selection: The operation torch.max(., dim=1) finds the maximum value along the specified dimension, which has a complexity of $\mathcal{O}(B \cdot I)$ .
+
+Thus, the total computational complexity for the inference stage of the direct estimation approach is dominated by the matrix multiplication step, resulting in:
+
+$$
+\mathcal {O} (B \cdot K \cdot I)
+$$
+
+# D.2 MONTE CARLO INTEGRATION WITH KDE APPROACH
+
+The Monte Carlo Integration with KDE approach involves the following steps for the inference stage:
+
+1. Generate $S$ samples from the conditional density $p(\mathcal{S}_{t + 1} \mid \mathcal{S}_t)$ using KDE.
+2. Evaluate the function $G_{t + 1}(\mathcal{S}_{t + 1})$ for each sample.
+3. Compute the average to estimate the conditional expectation.
+
+Assuming:
+
+- $B$ is the batch size (number of input samples in $\mathcal{S}_t$ ).
+- $K$ is the dimensionality (number of classes).
+- $M$ is the total number of data points.
+- $S$ is the number of Monte Carlo samples.
+
+In the Monte Carlo Integration with KDE approach, the dimensionality $K$ affects the number of Monte Carlo samples $S$ required for convergence. Let $S(K)$ denote the number of samples as a function of $K$ , typically increasing with $K$ . The computational complexity for each step is as follows:
+
+1. Sampling from KDE: Generating $S(K)$ samples for each of the $B$ input samples, each requiring $\mathcal{O}(M \cdot K)$ operations, resulting in a complexity of $\mathcal{O}(B \cdot S(K) \cdot M \cdot K)$ .
+2. Function Evaluation: Evaluating $G_{t + 1}(\mathcal{S}_{t + 1})$ for each sample with complexity $\mathcal{O}(K)$ , resulting in a total complexity of $\mathcal{O}(B\cdot S(K)\cdot K)$ .
+3. Monte Carlo Integration: The averaging step has a complexity of $\mathcal{O}(B\cdot S(K)\cdot K)$
+
+Thus, the total computational complexity for the inference stage of the Monte Carlo Integration with KDE approach is dominated by the sampling step, resulting in:
+
+$$
+\mathcal {O} (B \cdot S (K) \cdot M \cdot K)
+$$
+
+# D.3 COMPARISON
+
+The direct estimation approach has a computational complexity of $\mathcal{O}(B\cdot K\cdot I)$ for the inference stage, while the Monte Carlo Integration with KDE approach has a complexity of $\mathcal{O}(B\cdot S(K)\cdot M\cdot K)$ . Given that $I\ll M$ and considering that higher dimensionality $(K)$ increases the number of samples required for convergence $(S(K))$ , the direct estimation approach is significantly more efficient in terms of computational complexity during inference. This efficiency is particularly advantageous for real-time applications and large-scale datasets.
+
+Table 2: Comparison of Inference Stage Computational Complexity
+
+
Approach
Inference Stage Complexity
Direct Estimation with FIRMBOUND
O(B·K·I)
Monte Carlo Integration with KDE
O(B·S(K)·M·K)
+
+# E SUPPLEMENTARY RELATED WORK
+
+# E.1 SPRT AND ITS OPTIMALITY
+
+SPRT is Bayes optimal in binary classification with i.i.d. samples and is also known to require the minimal sample size to achieve a predefined error rate (Wald & Wolfowitz, 1948; 1950). The properties of SPRT under multiclass scenarios (Armitage, 1950; Baum & Veeravalli, 1994; Chernoff, 1959; Dragalin, 1987; Dragalin & Novikov, 1999; Kiefer & Sacks, 1963; Lorden, 1977; Paulson, 1963; Pavlov, 1991; 1984; Simons, 1967; Sobel & Wald, 1949), and with non-i.i.d. samples (Dragalin et al., 1999; Lai, 1981; Tartakovsky, 1998), have also been studied (App. B). Several algorithms employ SPRT with estimated density ratio with kernel method (Teng & Ertin, 2016) or boosting (Sochman & Matas, 2005) approach. However, they often assume i.i.d. samples and limited to binary classification, without considering the finite horizon.
+
+# E.2 OPTIMAL STOPPING THEORY
+
+Optimal stopping theory helps decide the best time to act, minimizing expected cost. It applies to various settings like the secretary problem, parking problem, one-armed bandit, change-point detection, and sequential statistical decision problems.
+
+Among these, finite-horizon problems are particularly relevant to our study, which involve a known upper bound on the length of the sequence. Discrete-time, finite-horizon problems are typically solved using dynamic programming techniques like backward induction, a type of Bellman equations. However, backward induction poses significant computational challenges. It requires storing and computing all possible histories, leading to high computational costs and analytical intractability unless the underlying distribution is known and simple (Ferguson, 2006; Tec et al., 2023). Several approximation methods, such as $k$ -step and $k$ -time look-ahead rules, have been proposed, but they fall short of optimality unless the problem is monotonic, which is often not the case with real-world data.
+
+# E.3 SPRT'S BACKWARD INDUCTION AND CONDITIONAL EXPECTATION
+
+Applying the backward induction under real-world conditions is impractical (Tartakovsky et al., 2014). No analytical solution has been identified, and although numerical computation on simulated datasets is feasible (Jarrett & van der Schaar, 2020), calculating the conditional expectation of future risks—a critical component of backward induction—is computationally intensive. This often necessitates approximations such as assuming conditional independence of temporal evidence (Ahmad & Yu, 2013; Naghshvar & Javidi, 2013), discretizing continuous variables (Frazier & Yu, 2007), or adopting a one-step look-ahead approach (Kleinegesse et al., 2020; Najemnik & Geisler, 2005). Moreover, ECTS demands instantaneous evaluation of the conditional expectation, precluding the use of sampling-based methods of the conditional expectation on the fly (Wang & Scott, 2019). The lack of true LLRs, which are the sufficient statistic required for SPRT and backward induction, further complicates their practical application within finite horizons.
+
+# E.4 SEQUENTIAL DESIGN
+
+Sequential design, particularly simulation-based Bayesian sequential design, offers a practical approach to these challenges. This method, grounded in statistical decision theory, approximates the objective function (e.g., minimum risk) using simulated trajectories on finite grid points rather than exhaustive computation of all possible histories (Brockwell & Kadane, 2003; Müller et al., 2007; Kadane & Vlachos, 2002). Notable approaches within this framework include constrained backward induction and sequential design with optimizing decision boundaries. Constrained backward induction iteratively approximates expected utility using simulated trajectories, while sequential design with optimizing decision boundaries transforms the sequential decision problem into a non-sequential optimization of parametric decision boundaries (Rossell et al., 2007). Both methods rely on simulated trajectories, unlike our model, which utilizes real-world data trajectories and avoids the tradeoff between precision and computational cost associated with grid-based methods.
+
+# E.5 REINFORCEMENT LEARNING (RL)
+
+RL is another domain where backward induction, often referred to as the Bellman equation, is extensively applied. In RL, algorithms like Q-learning and policy gradient methods can be viewed as constrained backward induction and sequential decision-making with optimizing boundaries, respectively. However, RL faces significant challenges, including poor sample efficiency and training instability, often leading to catastrophic forgetting and high variance in policy gradient estimates (Atkinson et al., 2018; Bjorck et al., 2021; Cetin et al., 2022; Kumar et al., 2020; Nikishin et al., 2018; Sullivan et al., 2022). RL approach is often combined with the sequential design (Asano, 2022; Blau et al., 2022).
+
+# E.6 ACTIVE LEARNING
+
+Active learning is a machine learning paradigm aimed at achieving high accuracy with minimal labeled data by strategically querying the most informative samples. It encompasses several strategies, including active sensing and active hypothesis testing. In active sensing, the system optimizes sensor placements and parameters to gather the most relevant data, while in active hypothesis testing, the goal is to identify the correct hypothesis as efficiently as possible. One foundational work by (Cohn et al., 1996) demonstrated the effectiveness of active learners over passive learners by querying the most informative data points. (Lewis & Gale, 1994) introduced uncertainty sampling, where instances with the highest uncertainty are selected for labeling. Another key method, query-by-committee (QBC) by (Seung et al., 1992), selects instances based on the disagreement among multiple models. More recently, approaches like Bayesian active learning by disagreement (Houlsby et al., 2011) and core-set approaches (Sener & Savarese, 2017) have been developed to handle the complexity of neural networks. Jarrett & van der Schaar (2020) developed a framework for timely decision-making under context-dependent time pressure.
+
+# E.7 CONVEX FUNCTION LEARNING (CFL)
+
+CFL aims to infer a convex function from data points, assuming the target function is inherently convex. This assumption ensures that any local minimum is also a global minimum (Argyriou et al., 2008; Bach, 2010; Bartlett et al., 2005; Boyd & Vandenberghe, 2010), thereby simplifying the optimization landscape and enhancing the efficiency of solving optimization problems (Mendelson, 2004). Within this framework, the Alternating Direction Method of Multipliers (ADMM) has proven to be particularly effective (Amos et al., 2016), allowing for the decomposition of complex optimization tasks into smaller, more manageable subproblems that are solved iteratively (Eckstein, 2012; Gabay & Mercier, 1976; Glowinski & Marroco, 1975). ADMM's capability extends to solving the augmented Lagrangean equation on a piecewise linear function, optimizing each segment effectively (Siahkamari et al., 2020). However, the standard ADMM can be slow to converge. To address this, enhancements such as the 2-block ADMM have been developed to accelerate convergence, thus improving the overall performance of CFL applications (Siahkamari et al., 2022).
+
+# E.8 GAUSSIAN PROCESS (GP) REGRESSION
+
+GP regression is a Bayesian approach that makes probabilistic predictions (Wang, 2020). Unlike traditional regression methods that presuppose a specific form for the regression function, GP regression treats observed function values as jointly Gaussian, with a mean function and a covariance defined by a kernel function. The kernel encapsulates assumptions about the function's smoothness and the nature of correlation between function values at different points in the input space. The inherent flexibility of GP regression, which does not require the explicit specification of the function form, renders GP regression widely applicable in diverse fields including geostatistics—often referred to as Kriging (Huang, 2020; Tao et al., 2022; Richter & Toledano-Ayala, 2015), financial modeling (Gonzalvez et al., 2019; Herfurth, 2020; Petelin et al., 2011), to robotics (Cheng et al., 2022; Jakkala & Akella, 2023; Xu et al., 2022).
+
+Traditional GP model, however, faces significant computational challenges when applied to large datasets due to the $\mathcal{O}(M^3)$ scaling with respect to the number of data points $M$ . To making it infeasible for large-scale applications. To mitigate this, inducing point methods have been developed to approximate the full GP, substantially reducing the computational load while largely retaining
+
+the model's expressive power (Candela & Rasmussen, 2005). By summarizing the dataset with a smaller set of $m$ inducing points, the complexity is reduced to $\mathcal{O}(m^2 M)$ . Additionally, stochastic variational inference (SVI) optimizes variational parameters using minibatches of data, which significantly decreases the computational demands to $\mathcal{O}(m^3)$ per update, independent of the full dataset size (Hensman et al., 2014). This approach not only makes GP regression scalable but also adapts well to modern computational infrastructures, such as GPUs, enabling the handling of extensive datasets within constrained resource settings (Deisenroth & Ng, 2015; Wilson & Nickisch, 2015).
+
+# E.9 OTHER ECTS ALGORITHMS
+
+ECTS is pivotal in scenarios requiring prompt and accurate classification decisions from incomplete data streams. Applications of ECTS include, but not limited to, medical diagnosis (Evans et al., 2015; Griffin & Moorman, 2001; Vats & Chan, 2016), stock crisis identification (Ghalwash et al., 2014), autonomous driving (Doná et al., 2019), action recognition (Weng et al., 2020), and e-commerce user profiling (Duan et al., 2024). Delays in classification can have critical consequences, positioning ECTS as a key area of research within time series analysis. This field inherently presents a multi-objective optimization challenge aimed at maximizing classification accuracy while minimizing decision time (Mori et al., 2018; Mori et al., 2015; Xing et al., 2012). Recent advancements have integrated deep learning techniques due to their robust representational capacities (Dennis et al., 2018; Ismail Fawaz et al., 2019; Lv et al., 2023; Sun et al., 2023; Suzuki et al., 2018; Hartvigsen et al., 2021). For example, LSTM-s and LSTM-m, have been developed to impose monotonicity on classification scores and enhance inter-class margins, respectively, thereby accelerating action detection (Ma et al., 2016). The Early and Adaptive Recurrent Label ESTimator (EARLIEST) leverages a combination of reinforcement learning and recurrent neural networks to dynamically decide the timing and classification of data (Hartvigsen et al., 2019). Moreover, the incorporation of transformer technologies, as seen in TCN-Transformer, merges temporal convolution with transformer architecture to prioritize early classification through specialized loss functions (Chen et al., 2022). Several algorithms empirically predict future risk to decide when to halt the sampling (Martinez et al., 2020; Wang et al., 2024; Zafar et al., 2021). For example, Calibrated eArLy tIMe sERies clAsifier (CALIMERA) (Bilski & Jastrzejbska, 2023) predicts the minima of risk function where the decision making should be made.
+
+# E.10 NEUROPHYSIOLOGICAL UNDERPINNINGS OF SPRT.
+
+SPRT has been identified as a neural decision-making algorithm within the primate brain's lateral intraparietal cortex (LIP, (Roitman & Shadlen, 2002)). During alternative-choice tasks, LIP neurons gradually accumulate sensory evidence, represented by an increasing firing rate of single neurons (Latimer et al., 2015), the average population activity (Shadlen et al., 2016), or a high-dimensional manifold of neural populations (Okazawa et al., 2021). Since neural activities are proportional to LLRs, the behavior of LIP neurons and primates' decision strategies can be best explained by SPRT Kira et al. (2015). For more information, readers are directed to review articles such as (Doya, 2008; Gallivan et al., 2018; Gold & Shadlen, 2007).
+
+Multiple studies investigate decision-making under time pressure (Churchland et al., 2008; Drugowitsch et al., 2012; Hanks et al., 2014). Some papers report closing boundaries under such conditions (Kira et al., 2024), reminiscent of the optimal decision boundary computed with the backward induction (Fig. 2b), while others identify an urgency signal, a linearly increasing offset added to the ramping neural activity (i.e., corresponding to the sufficient statistic in optimal stopping theory), which accelerates decisions as the deadline approaches. Both the closing boundary and the urgency signal have psychophysically equivalent effects, compelling quicker decisions with less confidence as the finite horizon approaches.
+
+# F SUPPLEMENTARY DISCUSSION
+
+# F.1 INTUITIVE UNDERSTANDING OF FIRMBOUND
+
+APR. The first term of Eq. 3 imposes a heavy penalty if the terminal decision $d_{t} = k$ corresponds to a low posterior probability $\pi_{k}$ . The second term accumulates the sampling costs up to the current time step $t$ .
+
+Theorem 2.1 (backward induction). Theorem 2.1 can be interpreted as a recursive decision-making process that minimizes Bayes risk at each time step. The Sequential Probability Ratio Test (SPRT) at each step must either (i) continue sampling to refine the sufficient statistic, or (ii) make a final classification decision with the current sufficient statistic. Each choice—(i) continuing or (ii) stopping—incurs a form of risk: the continuation risk, $\tilde{G}_t$ (Eq. (5)), and the stopping risk, $G_t^{\mathrm{st}}$ (Eq. (6)). At each time step, the lower of these two values defines the minimum risk, $G_t^{\mathrm{min}}$ (Eq. (7)), up to the classification deadline or finite horizon.
+
+Initiation of backward induction. At the finite horizon $(t = T)$ , the minimum risk $G_{T}^{\mathrm{min}}$ is always equal to the stopping risk $G^{\mathrm{st}}$ , setting the initial condition for the risk distribution at time $T$ . Subsequently, $G_{t}^{\mathrm{min}}$ for earlier time steps is recursively calculated using the risk distribution of the subsequent time step (Fig. 3b).
+
+Risk comparison during deployment. Initially, the sufficient statistic is small, leading to a higher $G^{\mathrm{st}}$ than $\tilde{G}$ . As more samples are collected, the statistic increases, enhancing decision confidence and reducing $G^{\mathrm{st}}$ below $\tilde{G}$ . The decision is made when $G^{\mathrm{st}}$ is less than or equal to $\tilde{G}$ , with the decision boundary at $\tau^{*}$ being the intersection of $\tilde{G}$ and $G^{\mathrm{st}}$ (Fig. 3a).
+
+# F.2 CHALLENGES IN ESTIMATING CONDITIONAL EXPECTATIONS USING MONTE CARLO AND KERNEL DENSITY ESTIMATION
+
+Estimating conditional expectations such as $\mathbb{E}\left[G_{t + 1}(\mathcal{S}_{t + 1})\mid \mathcal{S}_t\right]$ is a common problem in various scientific and engineering disciplines. One approach to achieve this estimation is by employing Monte Carlo integration techniques (Kroese et al., 2011; Robert & Casella, 2004) in conjunction with Kernel Density Estimation (KDE, (Scott, 1992; Silverman, 1986)) and its application to conditional density, Kernel Conditional Density Estimation (Rosenblatt, 1969) to approximate $p(\mathcal{S}_{t + 1}\mid \mathcal{S}_t)$ . While this method is theoretically sound and flexible, it comes with several significant challenges, particularly in high-dimensional settings. This section outlines the primary difficulties associated with this estimation method, including issues related to the curse of dimensionality, computational complexity, bandwidth selection, and sampling efficiency.
+
+# F.2.1 CURSE OF DIMENSIONALITY
+
+Sparsity of data In high-dimensional spaces, data points tend to become sparse (Botev et al., 2010). The volume of the space increases exponentially with the number of dimensions, which means that even large datasets may not provide sufficient coverage of the space. This sparsity makes it difficult to accurately estimate the conditional density $p(\mathcal{S}_{t + 1} \mid \mathcal{S}_t)$ using KCDE because the kernel functions may have to cover large regions with very few data points, leading to high variance in the density estimates. Indeed, Wang & Scott (2019) defines high-dimensional data for the kernel density method at most 50-dimensional, indicating the difficulty of modeling probability distributions over sufficient statistics $\mathcal{S}$ , given that $\mathcal{S}$ is at least $K$ -dimensional where $K$ is the class number.
+
+Bandwidth selection. Selecting an appropriate bandwidth for the kernel is critical for accurate density estimation (Bashtannyk & Hyndman, 2001; Wang & Wang, 2007). In high-dimensional settings, a single bandwidth parameter is often insufficient, and a multidimensional bandwidth matrix is required. However, selecting and optimizing such a bandwidth matrix is computationally intensive and challenging. If the bandwidth is too large, the estimate will be overly smooth, missing important details. Conversely, if it is too small, the estimate will be too noisy, capturing random fluctuations rather than the true underlying structure.
+
+# F.2.2 COMPUTATIONAL COMPLEXITY
+
+High computational cost. Kernel density estimation involves computing distances between data points and evaluating kernel functions. In high dimensions, these computations become increasingly expensive. The number of operations required grows with both the number of data points $M$ and the dimensionality of the space. For KCDE, which requires estimating the joint and marginal densities, the computational cost is even higher. Given that our application is online ECTS, waiting for the estimation to converge at each time step is very impractical. Rather, FIRMBOUND provides a function that is readily be evaluated with convergence guarantee, enabling deployment under real-world scenarios.
+
+# F.2.3 BANDWIDTH SELECTION
+
+Data-dependent bandwidth. Adaptive methods, where the bandwidth varies locally depending on the density of data points, can provide better estimates but add another layer of complexity. These methods require careful tuning and can be computationally demanding, especially in high-dimensional spaces.
+
+# F.2.4 SAMPLING EFFICIENCY
+
+Efficient sampling techniques. Even with an accurate estimate of the conditional density $p(\mathcal{S}_{t + 1} \mid \mathcal{S}_t)$ , efficiently sampling from this distribution can be challenging. Techniques such as rejection sampling or Metropolis-Hastings may be necessary, but these can be computationally intensive and may not scale well with dimensionality.
+
+# F.2.5 MITIGATION STRATEGIES
+
+To address these challenges, several strategies can be employed, each with its own assumptions and potential sources of error:
+
+Dimensionality Reduction: Techniques such as Principal Component Analysis (PCA) or autoencoders can be used to reduce the dimensionality of $\mathcal{S}$ while preserving important structures in the data. This can help alleviate the curse of dimensionality and improve the efficiency of density estimation. However, this assumes that the reduced dimensions adequately capture the necessary information, which may not always be true.
+
+Sparse Kernel Methods: Utilizing a subset of the data points (e.g., random sampling or clustering-based methods) can reduce the computational burden. The assumption here is that the subset is representative of the full dataset, which might not hold in all cases, potentially leading to biased estimates.
+
+Localized Methods: Adaptive kernel methods, where the bandwidth varies depending on the local density of data points, can provide more accurate estimates in high-dimensional spaces. These methods assume that local adaptation can adequately capture the density variations, but improper tuning can introduce significant errors.
+
+Grid-Based Methods: For moderate-dimensional cases, grid-based methods can approximate the density on a discretized grid, reducing computational complexity. The main assumption is that the grid resolution is fine enough to capture the density details, but this can lead to high memory and computation costs if the dimensionality is still relatively high.
+
+# F.2.6 ADVANTAGE OF HAVING A DIRECT ESTIMATOR FIRMBOUND
+
+The development of a direct estimator for the conditional expectation $\mathbb{E}\left[G_{t + 1}(\mathcal{S}_{t + 1})\mid \mathcal{S}_t\right]$ presents significant advantages over the traditional Monte Carlo Integration approach combined with Kernel Density Estimation. Firstly, a direct estimator offers computational efficiency by providing instantaneous evaluations, which is crucial for real-time applications and large-scale datasets. This efficiency eliminates the need for extensive sampling and repeated function evaluations inherent in Monte Carlo methods, thus reducing computational overhead. Additionally, the direct estimator ensures statistical consistency, guaranteeing that as the sample size increases, the estimator converges to the true conditional expectation, thereby enhancing the reliability and accuracy of the estimates. In contrast,
+
+
+Figure 10: Performance comparison across datasets of different sizes. The three-class Gaussian dataset is reduced from the original size $(M = 60000)$ to $M = 6000$ and $M = 600$ for training FIRMBOUND, while using the same test dataset. Hyperparameter settings remain fixed, and experiments are repeated five times to compute error bars. (a) The AAPR curve and (b) the SAT curve demonstrate that FIRMBOUND maintains competitive performance with datasets one order of magnitude smaller ( $M = 6000$ ).
+
+Monte Carlo methods are prone to sampling errors and require careful tuning of kernel functions and bandwidth parameters, adding complexity and potential sources of error. Furthermore, the direct estimator simplifies the implementation process by obviating the need for density estimation, which can be particularly challenging in high-dimensional spaces due to the curse of dimensionality. This simplicity, coupled with reduced memory requirements, makes the direct estimator more robust and scalable, offering a clear advantage in handling high-dimensional data and real-time decision-making scenarios.
+
+# F.3 PERFORMANCE UNDER SMALL DATASETS
+
+While FIRMBOUND ensures statistical consistency, its practicality could be questioned if performance degrades significantly with reduced dataset sizes. To address this concern, we conduct an additional experiment. Using the three-class Gaussian dataset, we train FIRMBOUND with datasets up to two orders of magnitude smaller than the original size while keeping the same test dataset. Specifically, dataset sizes of $M = 600$ and $M = 6000$ are compared to the original size of $M = 60000$ . Hyperparameter settings are kept fixed, and experiments are repeated five times to compute error bars.
+
+The results show that even with a dataset one order of magnitude smaller ( $M = 6000$ ), FIRMBOUND demonstrates almost negligible differences in performance compared to the original dataset in terms of mean hitting time, AAPR, and mean per-class error rate. Notably, the real-world HMDB51 dataset has a similar order of magnitude ( $M = 5277$ ), further showcasing FIRMBOUND's robustness in real-world scenarios. However, with the smallest dataset ( $M = 600$ ), AAPR and mean per-class error rates increase significantly, indicating that the dataset size is insufficient to accurately estimate the sufficient statistics. Despite this, the mean hitting time remains close to the original, highlighting FIRMBOUND's stability/ and its ability to make reliable best-effort decisions even under highly limited data conditions.
+
+# F.4 BROADER IMPACT
+
+FIRMBOUND enhances the performance of ETCS in real-world settings and prompts further research across both machine learning and neuroscience. It facilitates the backward induction on real-world datasets, effectively removing constraints associated with i.i.d. or non-i.i.d. data, thereby expanding its utility for time-sensitive tasks. Furthermore, backward induction is instrumental in fields like active sensing and sequential design, where unlike ECTS, an agent proactively selects actions to gather informative evidence. FIRMBOUND is ideally suited for such applications, enabling its deployment in dynamic environments. Additionally, the tapering optimal threshold is reminiscent of decision-making processes observed in humans, providing a potential bridge to understanding neural thresholding mechanisms within finite horizon, which, despite extensive study (Churchland et al., 2008; Drugowitsch et al., 2012; Gold & Shadlen, 2007; Latimer et al., 2015; Okazawa et al., 2021), remain elusive.
+
+Our method is designed to optimize the speed-accuracy tradeoff in real-world applications, which is expected to lead to positive societal impacts. The potential for negative effects is minimal and mainly confined to instances where models are intentionally trained to prioritize speed or accuracy by using an extreme value of sampling cost, which could compromise decision speed or quality.
+
+# F.5 LIMITATIONS AND FUTURE WORK
+
+Domain gap. While FIRMBOUND provides a theoretical guarantee to minimize the AAPR, it is important to acknowledge that it may not achieve the global minimum on test data when there is a domain gap between the training and test sets. A domain gap occurs when the distribution of the test data differs from that of the training data, which can lead to suboptimal performance of the model, even with the optimal stopping rule. FIRMBOUND, as proposed, assumes that the test data follows the same distribution as the training data, and thus, its effectiveness may be compromised in the presence of such domain discrepancies.
+
+We recognize the importance of addressing domain gaps in machine learning research. However, it is important to note that handling domain gaps is beyond the current scope of our paper, which focuses on developing an optimal stopping rule for early classification within finite horizons. Employing a domain adaptation algorithm or foundation models would require a different methodological approach and additional research efforts. Potential directions include incorporating domain adaptation techniques and robustifying FIRMBOUND against such discrepancies.
+
+Future theoretical directions. While FIRMBOUND is "doubly consistent" estimator of both the backward induction and log-likelihood ratio, several theoretical directions are yet to be investigated. One example is the convergence rate of the algorithm. While it is presumably given by the sum of LSEL's and CFL's. The latter is given in the paper, but the former requires an additional extensive analysis because Lemma J.4 (consistency of LSEL), on which our consistency proof relies, is an asymptotics of the probability that the estimated parameters deviate from the optimal parameter set. Similarly, minimax bound cannot be derived straightforwardly, warrant a separate, focused study.
+
+Potential density chasm problem. We observe that Fig. 5a (for the two-class Gaussian dataset) shows a discrepancy in the minimal averaged posterior risk (AAPR) locations between true and estimated LLRs. Interestingly, this trend is negligible in Fig. 5b (for the three-class Gaussian dataset), where AAPR locations for true and estimated LLRs align more closely. One possible explanation is the density chasm problem, a known issue specific to density ratio estimation on "easy" problems, which increases the absolute value of the density ratio and could contribute to these errors (Rhodes et al., 2020). A countermeasure to the density chasm problem, telescoping density ratio estimation, was proposed in (Rhodes et al., 2020), and employing this approach may help mitigate the error on simple datasets.
+
+These issues are likely specific to simple datasets and are less prevalent in complex real-world datasets with arbitrary class counts. It is important to note that while statistical consistency guarantees minimization of estimation error, it does not address approximation or optimization errors, which may be the main contributing factors here.
+
+Performance gain under dynamic environments. FIRMBOUND often shows limited performance on datasets with monotonic trajectory of sufficient statistics (see also App. F.6 for more detailed discussion). This minimal performance gain does not diminish FIRMBOUND's practical value. The real-world datasets examined (SiW, HMDB51, UCF101, and FordA) involve relatively small domain gaps and fewer fluctuations, producing stable, monotonic trajectories that limit opportunities for improvement over static thresholds. However, in more adversarial real-world scenarios, such as those with dim or variable lighting, we would expect the trajectory to fluctuate similarly to the DOL dataset, where FIRMBOUND shows robust performance gains. Furthermore, as noted in Section 4, FIRMBOUND consistently reduces the variance of hitting times across all datasets. Along with its capability to handle i.i.d., non-i.i.d., and multiclass data, this variance reduction demonstrates FIRMBOUND's potential for reliable decision making. In future work, we aim to explore FIRMBOUND's performance under more dynamically adversarial conditions, which we anticipate will reveal greater gains similar to those seen in our DOL experiments.
+
+Retraining requirement at cost change. FIRMBOUND effectively delineates the Pareto front on the SAT. A potential limitation arises if a user is unsatisfied with the resulting speed or accuracy and wants to select a different point on the Pareto front; in such cases, retraining FIRMBOUND with a new cost parameter $c$ is required. The training process can be computationally intensive, especially if the CFL algorithm is used to estimate the conditional expectation. However, there is a remedy for this issue. Without incurring additional computational costs, users can re-evaluate the AAPR curve on the current sufficient statistic $\mathcal{S}$ using different values of $c$ . This allows them to efficiently identify the optimal $c$ that yields the desired mean hitting time and corresponding error rate on the SAT curve by finding the AAPR curve whose minimum is closest to the desired mean hitting time. This strategy effectively avoids the need for retraining FIRMBOUND when a specific error rate $\alpha$ must be achieved on the SAT curve, which is often crucial in high-security applications.
+
+Extremely large LLRs' magnitude. Large LLRs, which can occur when the classification task is relatively easy, can significantly hinder the training of FIRMBOUND in the following ways. When LLRs are extremely large, the corresponding posterior probabilities derived from them often degenerate to either zero or one, making the training data less informative. This forces FIRMBOUND to learn from a dataset with extreme and non-informative posterior probabilities, potentially leading to overfitting and reduced generalization performance. An alternative approach is to train FIRMBOUND directly on the LLRs instead of the posteriors. However, in multiclass classification with $K$ classes, the number of pairwise LLRs required is at least $K(K - 1)/2$ , which can be extremely large. This approach can be prohibitively memory-intensive, especially when $K$ is large, making training on standard devices challenging. Additionally, the unbounded nature of LLRs can introduce instability into the training process. However, it is important to note that in cases where posterior probabilities degenerate, time-series analysis may not be necessary. The fact that classification can be resolved entirely within the first (or first few) steps suggests that FIRMBOUND may not need to be employed in such scenarios, indicating that this limitation is not a direct weakness of the method.
+
+# F.6 FREQUENTLY ASKED QUESTIONS
+
+How would you justify FIRMBOUND's two-component framework, given that it introduces additional complexity and potential error propagation? The doubly consistent estimation of both the conditional expectation in backward induction and the LLR—required by FIRMBOUND necessitates a multi-component framework. While this design may introduce additional complexity and the potential for error propagation across components, FIRMBOUND guarantees the minimization of estimation errors, particularly in large datasets.
+
+Consistent estimation itself represents a significant advancement in ECTS. Most existing ECTS methods rely on empirical heuristics, whether they follow a two-component approach (e.g., CALIMERA) or a one-component, end-to-end framework (e.g., LSTMms, TCN-Transformer, EARLIEST). Our experiments demonstrate that these heuristic-based approaches are consistently outperformed by FIRMBOUND, emphasizing the practical benefits derived from our theoretically grounded, multi-component framework.
+
+When is a new Pareto-front available? FIRMBOUND extends the Pareto front on some datasets, depending on LLR monotonicity. In Gaussian datasets with monotonically increasing LLRs, it expedites decisions without increasing error rates (Fig. 1a, 6a, b). Importantly, even without a new Pareto-front, FIRMBOUND ensures reliability by reducing hitting time variance (Tab. 1), crucial for safe deployment in diverse scenarios. Conversely, in non-monotonic DOL datasets with initial noise followed by stabilization, it effectively achieves new Pareto-fronts (Fig. 6c).
+
+Is it possible to establish consistency with GP? When should I use GP? Yes, it is possible to construct a consistent estimator using Gaussian Processes (GP) under certain conditions. The GP regressor can be a consistent estimator if, with an appropriate choice of the kernel, $\epsilon_m^{(t)}$ follows a Gaussian distribution for all $t\in [T]$ and $m\in [M]$ , and $\{\tilde{G}_t(\mathcal{S}_{t,m})\}_{m = 1}^M$ is a Gaussian process for all $t\in [T]$ . However, these conditions are difficult to guarantee under arbitrary circumstances. Thus, we introduced CFL as a more general and robust solution.
+
+When should I use GP? What's your recommendation? Albeit the consistency loss, our experiments show that the GP regressor performs competitively with CFL, which is the theoretically optimal approach. This makes GP a practical choice in scenarios with limited computational resources. It is worth noting that GP regression is particularly efficient during the *training* stage. During testing or deployment, both CFL and GP regression are sufficiently fast to support real-time decision-making. Therefore, GP regression is an effective option in environments with constrained training resources, such as edge computing settings.
+
+Why some models are excluded from Fig. 5? Effective risk minimization relies on well-calibrated statistics. As shown in Fig. 14 in App. M shows that model rankings based on AAPR don't always align with their SAT performance due to overconfidence or miscalibration, where predicted confidence levels don't match actual accuracy Guo et al. (2017); Melotti et al. (2022); Müller et al. (2019); Mukhoti et al. (2020). While it is feasible to minimize AAPR on the miscalibrated outputs, it can lead to suboptimal decision-making. By employing well-calibrated Log-Likelihood Ratios (LLRs), FIRMBOUND effectively minimizes risk, achieving Pareto-optimality at a given sampling cost. This calibration ensures that the model's confidence levels are more aligned with the true probabilities, thereby enhancing the reliability of the decision boundaries used in the stopping rule.
+
+What is the tackled problem? Finite horizon Early Classification of Time Series (ECTS) aims to minimize the decision time $\tau < T$ while maintaining a desired error rate $\alpha$ , where $T$ is the maximum possible time step. As mentioned in Sec. 2, SPRT optimally solves ECTS under an infinite horizon, detailed in App. B. For finite horizons (including infinite as a special case, 1. 108), the average a posteriori risk (AAPR) must be defined and minimized via backward induction to find the optimal stopping boundary (Sec. 3).
+
+Why does computing the backward induction equation yield minimal AAPR? The minimal AAPR is defined as the expected optimal risk at the initial time step, computed recursively from the finite horizon back to the start using the backward equation. For a detailed explanation, see (Tartakovsky et al., 2014).
+
+Why is FIRMBOUND necessary, given the availability of simulation studies? FIRMBOUND accommodates a broad range of time series data, including i.i.d., non-i.i.d., binary, and multiclass series. In contrast, many existing simulation studies focus on artificial datasets with limited classes and do not reflect real-world complexities. Additionally, optimal threshold searching through numerical simulation might require intensive grid sampling, which becomes computationally impractical with large classes—for example, assigning unique posterior probabilities to 101 classes with 0.1 steps could result in up to 47 trillion combinations. FIRMBOUND facilitates the application of backward induction to real-world datasets without restrictions related to the data distribution, thereby extending its applicability to time-sensitive tasks.
+
+Why are some experimental results not state-of-the-art (SOTA)? As discussed in the Experiments and Results section, we do not claim to achieve state-of-the-art results. For example, the pretrained feature extractor ResNet50 was not fine-tuned for HMDB51 and UCF101 datasets. Our focus is on conducting a fair comparison rather than achieving the highest performance, as reaching state-of-the-art would not alter the conclusions of our study.
+
+Why don't you include a classification penalty in APR? While it is feasible to incorporate a classification penalty into the APR to potentially reduce errors, we aim to maintain a simple APR definition as stated in Sec. 3.2. Adding a classification penalty is redundant since the estimation of sufficient statistics inherently addresses error reduction. We utilize a density ratio estimation (DRE) algorithm to ensure statistically consistent estimation of LLRs, thereby reducing errors without the need for an additional penalty term in the APR.
+
+# G LAGRANGIAN FUNCTION FOR CONVEX FUNCTION LEARNING
+
+In this section, we review the 2-block ADMM algorithm (Siahkamari et al., 2022) used for solving the convex regression problem (Eq. 12). We solve the following noisy convex regression problem with regularization:
+
+$$
+\hat {f} \triangleq \arg \min _ {f} \frac {1}{n} \sum_ {i = 1} ^ {n} \left(y _ {i} - f \left(\boldsymbol {x} _ {i}\right)\right) ^ {2} + \lambda \| f \|, \tag {15}
+$$
+
+where $\pmb{x}_i \in \mathbb{R}^d$ , and $\lambda$ is a hyperparameter affecting convergence. Note that regression labels $y_i$ are noisy; i.e., they have bounded random discrepancies from the true label.
+
+The 2-block ADMM solves this problem by using piecewise linear functions:
+
+$$
+\min _ {\hat {y} _ {i}, a _ {i}} \frac {1}{n} \sum_ {i = 1} ^ {n} \left(\hat {y} _ {i} - y _ {i}\right) ^ {2} + \lambda \sum_ {l = 1} ^ {d} \max _ {i = 1} ^ {n} \left| a _ {i, l} \right| \tag {16}
+$$
+
+$$
+\text {s . t .} \hat {y} _ {i} - \hat {y} _ {j} - \left\langle a _ {i}, \boldsymbol {x} _ {i} - \boldsymbol {x} _ {j} \right\rangle \leq 0 \quad i, j \in [ n ] \times [ n ]. \tag {17}
+$$
+
+Then, we estimate $f(\pmb{x})$ via
+
+$$
+\hat {f} (\boldsymbol {x}) \triangleq \max _ {i} \left\langle a _ {i}, \boldsymbol {x} - \boldsymbol {x} _ {i} \right\rangle + \hat {y} _ {i}. \tag {18}
+$$
+
+The 2-block ADMM is summarized in Algorithms 1 & 2 and Updates 1-4 below. The algorithm uses the augmented Lagrange method and leverages the decomposition of the optimization problem into two blocks that are updated iteratively, focusing on the primal and dual variables. In Siahkamari et al. (2022), it is proven that the 2-block ADMM converges to the ground truth function $f$ when $\mathcal{T} \to \infty$ and $n \to \infty$ if $\lambda$ is in an appropriate region (e.g., $\bar{\lambda} \geq \frac{3}{\sqrt{2nd}}$ is necessary). The convergence rate is also derived. The algorithm is implemented in Python class ConvexRegressionModel in our code.
+
+# Update 1.
+
+$$
+\boldsymbol {a} _ {i} = \boldsymbol {\lambda} _ {i} \left(\boldsymbol {\theta} _ {i} + \hat {y} _ {i} \boldsymbol {x} _ {i} + \frac {1}{n} \sum_ {k} \hat {y} _ {k} \boldsymbol {x} _ {k}\right), \tag {19}
+$$
+
+where
+
+$$
+\boldsymbol {\lambda} _ {i} \triangleq \left(\boldsymbol {x} _ {i} \boldsymbol {x} _ {i} ^ {\mathcal {T}} + \frac {1}{n} I + \frac {1}{n} \sum_ {j} \boldsymbol {x} _ {j} \boldsymbol {x} _ {j} ^ {\mathcal {T}}\right) ^ {- 1},
+$$
+
+$$
+\boldsymbol {\theta} _ {i} \triangleq \frac {1}{n} \left(\boldsymbol {p} _ {i} ^ {+} - \boldsymbol {p} _ {i} ^ {-} - \boldsymbol {\eta} _ {i} + \sum_ {j} \left(\alpha_ {i, j} + s _ {i, j}\right) \left(\boldsymbol {x} _ {i} - \boldsymbol {x} _ {j}\right)\right).
+$$
+
+# Update 2.
+
+$$
+\hat {\boldsymbol {y}} = \boldsymbol {\Omega} ^ {- 1} \left(\frac {2 \boldsymbol {y}}{n ^ {2} \rho} + \boldsymbol {v} - \boldsymbol {\beta}\right) \tag {20}
+$$
+
+where $\pmb {y} = [y_1,\dots ,y_n]^\mathcal{T}$ $\hat{\pmb{y}} = [\hat{\pmb{y}}_1,\dots ,\hat{\pmb{y}}_n]^\mathcal{T}$ , and
+
+$$
+\beta_ {i} \triangleq \frac {1}{n} \sum_ {j} \alpha_ {i, j} - \alpha_ {j, i} + s _ {i, j} - s _ {j, i},
+$$
+
+$$
+v _ {i} \triangleq \boldsymbol {x} _ {i} ^ {\mathcal {T}} \boldsymbol {\lambda} _ {i} \theta_ {i} + \boldsymbol {x} _ {i} ^ {\mathcal {T}} \frac {1}{n} \sum_ {j} \boldsymbol {\lambda} _ {j} \theta_ {j} - \frac {1}{n} \sum_ {j} \boldsymbol {x} _ {j} ^ {\mathcal {T}} \boldsymbol {\lambda} _ {j} \theta_ {j},
+$$
+
+$$
+\boldsymbol {\Omega} _ {i, j} \triangleq \left(\frac {2}{n ^ {2} \rho} + 2 - \boldsymbol {x} _ {i} ^ {\mathcal {T}} \boldsymbol {\lambda} _ {i} \boldsymbol {x} _ {i}\right) \mathbf {1} (i = j) - \frac {1}{n} D _ {i, j},
+$$
+
+$$
+D _ {i, j} \triangleq \boldsymbol {x} _ {i} ^ {\mathcal {T}} \left(\boldsymbol {\lambda} _ {i} + \boldsymbol {\lambda} _ {j} + \frac {1}{n} \sum_ {k} \boldsymbol {\lambda} _ {k}\right) \boldsymbol {x} _ {j} - \boldsymbol {x} _ {j} ^ {\mathcal {T}} \boldsymbol {\lambda} _ {j} \boldsymbol {x} _ {j} - \frac {1}{n} \sum_ {k} \boldsymbol {x} _ {k} \boldsymbol {\lambda} _ {k} \boldsymbol {x} _ {j}.
+$$
+
+Algorithm 1 L-update
+Require: $\{\gamma_i,c_i\}_{i = 1}^n$ ,and $\rho /\lambda$
+1: knot2n,..., knot1 $\leftarrow$ sort{ $\gamma_{i} + c_{i},\gamma_{i} - c_{i}\right]_{i = 1}^{n}$
+2: $f\gets \lambda /\rho$
+3: $f^{\prime}\gets 0$
+4: for $j = 2$ to $2n$ do
+5: $f^{\prime}\gets f^{\prime} + \frac{1}{2}$
+6: $f\gets f + f^{\prime}\cdot (knot_{j} - knot_{j - 1})$
+7: if $f\leq 0$ then
+8: return $(knot_{j} - \frac{f}{f^{\prime}})^{+}$
+9: end if
+10: end for
+11: return $(knot_{2n} - \frac{f}{n})^{+}$
+
+Algorithm 2 Convex regression
+Update 3.
+Update 4.
+Require: $\{(x_i,y_i)\}_{i = 1}^n,\rho ,\lambda$ and $\mathcal{T}$
+1: $\hat{y}_i = s_{i,j} = \alpha_{i,j}\gets 0$
+2: $L = a_{i} = p_{i} = u_{i} = \eta_{i} = \gamma_{i}\gets 0_{d\times 1}$
+3: for $t = 1$ to $\mathcal{T}$ do
+4: Update $\hat{y}$ by Eq.20
+5: Update $a_i$ by Eq.19
+6: $L_{l}\leftarrow \mathbf{L}_{-}\mathbf{u}\mathbf{p}\mathbf{d}(|\gamma_{i,l},|\eta_{i,l} + a_{i,l}|]_{i\in [n]},\lambda /\rho)$
+7: Update $u_{i,l},p_{i,l}^{+},p_{i,l}^{-},s_{i,j}$ by Eq.21
+8: Update $\alpha_{i,j},\gamma_{i,l},\eta_{i,l}$ by Eq.22
+9: end for
+10: return $f(\cdot)\triangleq \max_{i = 1}^{n}(\langle a_i,\cdot -x_i\rangle +\hat{y}_i)$
+
+$$
+s _ {i, j} = \left(- \alpha_ {i, j} - \hat {y} _ {i} + \hat {y} _ {j} + \left\langle a _ {i}, x _ {i} - x _ {j} \right\rangle\right) ^ {+}, \tag {21}
+$$
+
+$$
+u _ {i, l} = \left(L _ {l} - \gamma_ {i, l} - | \eta_ {i, l} + a _ {i, l} |\right) ^ {+},
+$$
+
+$$
+p _ {i, l} ^ {+} = \frac {1}{2} \left(L _ {l} - \gamma_ {i, l} - u _ {i, l} + \eta_ {i, l} + a _ {i, l}\right) ^ {+},
+$$
+
+$$
+p _ {i, l} ^ {-} = \frac {1}{2} \left(L _ {l} - \gamma_ {i, l} - u _ {i, l} - \eta_ {i, l} - a _ {i, l}\right) ^ {-}.
+$$
+
+$$
+\alpha_ {i, j} = \alpha_ {i, j} + s _ {i, j} \tag {22}
+$$
+
+$$
+\hat {y} _ {i} - \hat {y} _ {j} - \left\langle \boldsymbol {a} _ {i}, \boldsymbol {x} _ {i} - \boldsymbol {x} _ {j} \right\rangle \quad i, j \in [ n ] \times [ n ]
+$$
+
+$$
+\gamma_ {i, l} = \gamma_ {i, l} + u _ {i, l} + p _ {i, l} ^ {+} + p _ {i, l} ^ {-} - L _ {l} \quad i, l \in [ n ] \times [ d ]
+$$
+
+$$
+\eta_ {i, l} = \eta_ {i, l} + a _ {i, l} - p _ {i, l} ^ {+} + p _ {i, l} ^ {-} \quad i, l \in [ n ] \times [ d ]
+$$
+
+# H STOCHASTIC VARIATIONAL ELBO MAXIMIZATION
+
+The problem of evaluating $\mathbb{E}[G_{t + 1}^{\min}|\mathcal{S}_t]$ at each time step is formulated below. Given any set of $M$ values at time $t\{\mathcal{S}_t(X_m^{(t)})\}_{m = 1}^M$ , we assume that the joint distribution of the random variables $\{f(\mathcal{S}_t(X_m^{(t)}))\}_{m = 1}^M$ are multivariate Gaussian distributions. Inducing points $Z = \{z_i\}_{i = 1}^I$ with $I\ll M$ are randomly sampled from the training dataset $\{\mathcal{S}_t(X_m^{(t)})\}_{m = 1}^M$ . The prior distribution of the function is defined as:
+
+$$
+\left[ \begin{array}{l} f _ {\mathcal {S}} \\ f _ {Z} \end{array} \right] = \mathcal {N} \left(0 \quad \left[ \begin{array}{l l} K _ {\mathcal {S S}} & K _ {\mathcal {S Z}} \\ K _ {\mathcal {S Z}} ^ {T} & K _ {Z Z} \end{array} \right]\right), \tag {23}
+$$
+
+where $f_{\mathcal{S}}$ and $f_{Z}$ are latent functions of and $z$ , and $K$ is the covariance matrix defined with the Redial Basis Function (RBF) kernel: $K = k(s, s') = \sigma^2 \exp \left\{\frac{(s - s')^2}{2l^2}\right\}$ . Note that $\sigma$ and $l$ are trainable model parameters.
+
+To approximate the posterior distribution $p(f_{\mathcal{S}},f_z|G_{t + 1}^{\min})$ , We define a variational distribution $q(f_{\mathcal{S}},f_z)\coloneqq p(f_{\mathcal{S}}|f_z)q(f_z)$ , where the marginal variational distribution is also defined with a Gaussian: $q(f_{z}) = \mathcal{N}(f_{z}|\mu ,\Sigma)$ . The observed $G_{t + 1}^{\mathrm{min}} = \{g_{t + 1,1}^{\mathrm{min}},g_{t + 1,2}^{\mathrm{min}},\ldots ,g_{t + 1,M}^{\mathrm{min}}\}$ are modeled with a Gaussian likelihood that assumes a homoskedastic noise is used: $p(G_{t + 1}^{\mathrm{min}}|f)\sim N(G_{t + 1}^{\mathrm{min}}|f,\eta^{2}I)$ , we compute the marginal log likelihood and its variational evidence lower bound (ELBO):
+
+$$
+\begin{array}{l} \log (p \left(G _ {t + 1} ^ {\min }\right)) = \log \int \int p \left(G _ {t + 1} ^ {\min } \mid f _ {\mathcal {S}}, f _ {z}\right) p \left(f _ {\mathcal {S}}, f _ {z}\right) d f _ {\mathcal {S}}, d f _ {z} \\ \geq \mathbb {E} _ {q (f _ {\mathcal {S}})} \left[ \log p \left(G _ {t + 1} ^ {\min } \mid f _ {\mathcal {S}}\right) \right] - D _ {K L} \left[ p \left(f _ {z} \right\lvert | q \left(f _ {z}\right) \right], \tag {24} \\ \end{array}
+$$
+
+where $D_{KL}$ is the Kullback-Leibler divergence (KLD). The r.h.s. of Eq. 24 is defined as $\mathcal{L}_{\mathrm{ELBO}}$ . Given that the second term of $\mathcal{L}_{\mathrm{ELBO}}$ is independent of training data, an empirical approximation of $\mathcal{L}_{\mathrm{ELBO}}$ for minibatch computation can be found as:
+
+$$
+\mathcal {L} _ {\mathrm {E L B O}} \sim \frac {1}{M ^ {\prime}} \sum_ {i = 1} ^ {M ^ {\prime}} \mathbb {E} _ {q \left(f _ {s i t}\right)} \left[ \log p \left(G _ {t + 1, i} ^ {\min } \mid f _ {s t i}\right) \right] - D _ {K L} \left[ p \left(f _ {z} \mid \mid q \left(f _ {z}\right) \right], \right. \tag {25}
+$$
+
+where $M^{\prime}\leq M$ is a minibatch size.
+
+After the model training, we can predict the distribution of $f_{new}$ given a new set of $\mathcal{S}_{new}$ by computing the predictive distribution:
+
+$$
+p \left(f _ {n e w} \mid G _ {t + 1} ^ {\min }\right) = \int p \left(f _ {n e w} \mid f _ {z}\right) q \left(f _ {z}\right) d f _ {z}. \tag {26}
+$$
+
+Given that $p(f_{new}, f_z)$ is a multivariate Gaussian distribution, the solution of Eq. 26 is analytical and also a Gaussian. Using $\mathcal{S}_{new} = \mathcal{S}_t$ as inputs we thus approximate $\mathbb{E}[G_{t+1}^{\min}|\mathcal{S}_t]$ with the mean of the predictive distribution, $K_{newZ}K_{ZZ}^{-1}\mu$ .
+
+# I SPRT-TANDEM
+
+SPRT-TANDEM is a sequential DRE algorithm specifically designed for conducting SPRT on real-world sequential datasets (Ebihara et al., 2021). It employs a feature vector extractor followed by a temporal integrator (TI, Fig. 11), utilizing either recurrent networks or transformers as TIs. In our experiments, both LSTM (Hochreiter & Schmidhuber, 1997) and Transformer (Vaswani et al., 2017) are implemented. The TI outputs class posteriors, which are converted to LLRs using the TANDEM formula (Thm. I.1) in a transitive manner. Initially developed for binary-class, SPRT-TANDEM has been adapted for multiclass classification (Miyagawa & Ebihara, 2021), incorporating a statistically consistent LLR estimator, LSEL (Eq. 13). The LLR saturation problem, notably significant when the absolute value of the ground-truth LLR exceeds 100 nats, has also been addressed (Ebihara et al., 2023).
+
+A distinctive feature of SPRT-TANDEM is its absence of a dedicated loss function for promoting earliness, despite its design for ECTS. This is because the precision in estimating the sufficient statistic (i.e., LLR) ensures the minimum required data sampling to achieve a predefined error rate. Thus, SPRT-TANDEM is trained using LSEL (Eq. 13) and multiplet cross-entropy loss (MCE, Def. I.1), without a specific loss function for earliness.
+
+Theorem I.1 (TANDEM formula). Assuming that $X^{(1,T)}$ are $N$ -th order Markov series, $\lambda_{kl}(X^{(1,t)})$ can be approximated as:
+
+$$
+\lambda_ {k l} \left(X ^ {(1, t)}\right) = \sum_ {s = N + 1} ^ {t} \log \frac {\pi_ {k} \left(X ^ {(s - N , s)}\right)}{\pi_ {l} \left(X ^ {(s - N , s)}\right)} - \sum_ {s = N + 2} ^ {t} \log \frac {\pi_ {k} \left(X ^ {(s - N , s - 1)}\right)}{\pi_ {k} \left(X ^ {(s - N , s - 1)}\right)} - \log \chi_ {k l}, \tag {27}
+$$
+
+where $\chi_{kl} = \log (p(y = k) / p(y = l))$ is a log class prior probability.
+
+Definition I.1 (MCE).
+
+$$
+L _ {\mathrm {M C E}} := \frac {1}{M (T - N)} \sum_ {i = 1} ^ {M} \sum_ {k = 1} ^ {N + 1} \sum_ {t = k} ^ {T - (N + 1 - k)} \left(- \log \pi_ {y _ {i}} \left(X _ {i} ^ {(t, t - k + 1)}\right)\right). \tag {28}
+$$
+
+
+Figure 11: LLR estimation with SPRT-TANDEM. Feature vectors $x$ , typically extracted by a feature vector extractor network, are sequentially fed into the temporal integrator (TI) network to output class posterior probabilities, $\pi \coloneqq (\pi_1, \dots, \pi_K)$ . The TANDEM formula (Eq. I.1, denoted as "TANDEM" in the figure) is used to convert these posteriors to LLRs, enabling an online sequential update of the estimation.
+
+# J FIRMBOUND IS STATISTICALLY CONSISTENT
+
+We provide the full assumptions, the formal statement, and the proof of Thm. 3.2.
+
+# J.1 ASSUMPTIONS
+
+Most of the necessary assumptions are given in the following Lems. J.1-J.4 and Thm. 2.1.
+
+Lemma J.1 (CFL is statistically consistent (Prop. 1 in (Siahkamari et al., 2022))). See App. G for notations. With the appropriate choice of $\lambda$ which requires knowledge of the bound on $f$ and $n \geq d$ , it holds that with probability at least $1 - \delta$ over the data, the estimator $\hat{f}$ of Eq. 18 has excess risk upper bounded by
+
+$$
+\mathbb {E} \left[ | f (x) - \hat {f} (x) | ^ {2} \right] \leq O \left(\left(\frac {n}{d}\right) ^ {\frac {- 2}{d + 4}} \log \left(\frac {n}{d}\right) + \sqrt {\frac {\log (1 / \delta)}{n}}\right). \tag {29}
+$$
+
+See (Siahkamari et al., 2022) for the proof. Note that the bound limits to zero as the dataset size $n$ (denoted by $M$ in the main text) limits to infinity. Note also that $d$ used in this lemma corresponds to the number of classes $K$ in the main text.
+
+Lemma J.2 (CFL converges (Thm. 2 in (Siahkamari et al., 2022))). See App. $G$ for notations. Let $\{\hat{y}_i^t, \pmb{a}_i^t\}$ be the output of Alg. 2 at the $t^{\text{th}}$ iteration, $\tilde{y}_i := \frac{1}{\mathcal{T}} \sum_{t=1}^{\mathcal{T}} \hat{y}_i^t$ and $\tilde{\pmb{a}}_i := \frac{1}{\mathcal{T}} \sum_{t=1}^{\mathcal{T}} \pmb{a}_i^t$ . Denote $\tilde{f}_{\mathcal{T}}(\pmb{x}) := \max_i \langle \tilde{\pmb{a}}_i, \pmb{x} - \pmb{x}_i \rangle + \tilde{y}_i$ . Assume $\max_{i,l} |x_{i,l}| \leq 1$ and $\operatorname{Var}(\{y_i\}_{i=1}^n) \leq 1$ . If we choose
+
+$$
+\rho = \frac {\sqrt {d} \lambda^ {2}}{n}, \quad \lambda \geq \frac {3}{\sqrt {2 n d}}, \quad a n d \quad \mathcal {T} \geq n \sqrt {d},
+$$
+
+we have:
+
+$$
+\frac {1}{n} \sum_ {i = 1} ^ {n} \left(\tilde {f} _ {\mathcal {T}} \left(\boldsymbol {x} _ {i}\right) - y _ {i}\right) ^ {2} + \lambda \| \tilde {f} _ {\mathcal {T}} \| \leq \min _ {\hat {f} \in \mathcal {F}} \left(\frac {1}{n} \sum_ {i = 1} ^ {n} \left(\hat {f} \left(x _ {i}\right) - y _ {i}\right) ^ {2} + \lambda \| \hat {f} \|\right) + \frac {6 n \sqrt {d}}{\mathcal {T} + 1}, \tag {30}
+$$
+
+where $\mathcal{F} \coloneqq \{f : \mathbb{R}^d \to \mathbb{R} \mid f \text{ is convex}\}$ .
+
+See (Siahkamari et al., 2022) for the proof. The inputs $\pmb{x}$ and outputs $y$ in the lemma correspond to $(\pi_1(X^{(1,t)}),\ldots ,\pi_K(X^{(1,t)}))$ , and to $\tilde{G}_t(\mathcal{S}_t(X^{(1,t)}))$ , respectively. $\pi_k(X^{(1,t)})$ for all $k\in [K]$ are obviously bounded by one, and thus, the assumption $\max_{i,l}|x_{i,l}|\leq 1$ is satisfied. Also, the assumption $\mathrm{Var}(\{y_i\}_{i = 1}^n)\leq 1$ is satisfied because we only consider integrable functions, and the continuation risk $\tilde{G}_t$ is bounded. As a corollary of Lem. J.2, we have:
+
+Lemma J.3 (Convergence rate of CFL (Cor. 1 in (Siahkamari et al., 2022))). See App. $G$ for notations. The CFL algorithm used in FIRMBOUND, outlined in App. $G$ , needs $\frac{6n\sqrt{d}}{\epsilon}$ iterations to achieve $\epsilon$ error. Each iteration requires $\mathcal{O}(n^2 d + nd^2)$ flops operations. Preprocessing costs $\mathcal{O}(nd^3)$ . Therefore the total computational complexity is $\mathcal{O}\left(\frac{n^3d^{1.5} + n^2d^{2.5} + nd^3}{\epsilon}\right)$ .
+
+Note that $n$ and $d$ used in this lemma correspond to $M$ and $K$ in the main text. See (Siahkamari et al., 2022) for the proof.
+
+Next, let us define
+
+$$
+L _ {\text {L S E L}} [ \lambda ] := \frac {1}{K T} \sum_ {k \in [ K ]} \sum_ {t \in [ T ]} \int d X ^ {(1, t)} p \left(X ^ {(1, t)} | k\right) \log \left(1 + \sum_ {l (\neq k)} e ^ {- \lambda_ {k l} \left(X ^ {(1, t)}\right)}\right). \tag {31}
+$$
+
+Let $S \coloneqq \{(X_i^{(1,T)}, y_i)\}_{i=1}^M \sim p(X^{(1,T)}, y)^M$ be a training dataset, where $M \in \mathbb{N}$ is the sample size. The empirical approximation of Eq. 31 is
+
+$$
+\hat {L} _ {\mathrm {L S E L}} (\boldsymbol {w}; S) := \frac {1}{K T} \sum_ {k \in [ K ]} \sum_ {t \in [ T ]} \frac {1}{M _ {k}} \sum_ {i \in I _ {k}} \log \left(1 + \sum_ {l (\neq k)} e ^ {- \hat {\lambda} _ {k l} \left(X _ {i} ^ {(1, t)}; \boldsymbol {w}\right)}\right). \tag {13}
+$$
+
+$M_{k}$ and $I_{k}$ denote the sample size and index set of class $k$ , respectively; i.e., $M_{k} = |I_{k}| = |\{i \in [M] | y_{i} = k\}$ and $\sum_{k} M_{k} = M$ . Let $L(\boldsymbol{w})$ and $\hat{L}_S(\boldsymbol{w})$ denote $L_{\mathrm{LSEL}}[\hat{\lambda}(\cdot; \boldsymbol{w})]$ and $\hat{L}_{\mathrm{LSEL}}(\boldsymbol{w}; S)$ , respectively. Let $\hat{\boldsymbol{w}}_S$ be the empirical risk minimizer of $\hat{L}_S$ ; namely, $\hat{\boldsymbol{w}}_S \in \arg \min_{\boldsymbol{w}} \hat{L}_S(\boldsymbol{w})$ .
+
+Lemma J.4 (LSEL is statistically consistent (Thm. 3.1 in (Miyagawa & Ebihara, 2021))). Let $\pmb{W}^{*} \coloneqq \left\{\pmb{w}^{*} \in \mathbb{R}^{d} \mid \hat{\lambda}(X^{(1,t)}; \pmb{w}^{*}) = \lambda(X^{(1,t)}) (\forall t \in [T])\right\}$ be the target parameter set. Assume, for simplicity of the proof, that each $\pmb{w}^{*}$ is separated in $\pmb{w}^{*}$ ; i.e., $\exists \delta > 0$ such that $\mathcal{B}(\pmb{w}^{*}; \delta) \cap \mathcal{B}(\pmb{w}^{*'}; \delta) = \emptyset$ for arbitrary $\pmb{w}^{*}$ and $\pmb{w}^{*'}$ , where $\mathcal{B}(\pmb{w}; \delta)$ denotes an open ball at center $\pmb{w}$ with radius $\delta$ . Assume the following three conditions:
+
+(a) $\forall k,l\in [K],\forall t\in [T],p(X^{(1,t)}\mid k) = 0\iff p(X^{(1,t)}\mid l) = 0.$
+(b) $\sup_{\boldsymbol{w}} |\hat{L}_S(\boldsymbol{w}) - L(\boldsymbol{w})| \xrightarrow{\mathbb{P}} 0$ as $M \to \infty$ ; i.e., $\hat{L}_S(\boldsymbol{w})$ converges in probability uniformly over $\boldsymbol{w}$ to $L(\boldsymbol{w})$ .
+(c) For all $\boldsymbol{w}^{*}\in \mathbf{W}^{*}$ , there exist $t\in [T]$ , $k\in [K]$ , and $l\in [K]$ , such that the following $d\times d$ matrix is full-rank:
+
+$$
+\int d X ^ {(1, t)} p (X ^ {(1, t)} \mid k) \nabla_ {\boldsymbol {w} ^ {*}} \hat {\lambda} _ {k l} (X ^ {(1, t)}; \boldsymbol {w} ^ {*}) \nabla_ {\boldsymbol {w} ^ {*}} \hat {\lambda} _ {k l} (X ^ {(1, t)}; \boldsymbol {w} ^ {*}) ^ {\top}.
+$$
+
+Then, $\mathbb{P}(\hat{\boldsymbol{w}}_S \notin W^*) \xrightarrow{M \to \infty} 0$ ; i.e., $\hat{\boldsymbol{w}}_S$ converges in probability into $\boldsymbol{W}^*$ .
+
+See (Miyagawa & Ebihara, 2021) for the proof. Assumption (a) ensures that LLRs $\lambda(X^{(1,t)}) \coloneqq \{\lambda_{kl}(X^{(1,t)})\}_{k,l \in [K]}$ exists and is finite. Assumption (b) can be satisfied under the standard assumptions of the uniform law of large numbers (compactness, continuity, measurability, and dominance) (Jennrich, 1969; Newey & McFadden, 1986). Assumption (c) is a technical requirement, often assumed in the literature (Gutmann & Hyvarinen, 2012). We additionally assume that the neural network represented by $w$ is so large that it can represent target LLRs, which can be satisfied according to the universal approximation theorem of neural networks.
+
+# J.2 FORMAL STATEMENT
+
+Now, we provide the formal statement of Thm. 3.2:
+
+Theorem J.1 (FIRMBOUND is statistically consistent). Suppose that all the assumptions mentioned in App. J.1 are satisfied. Suppose that we have the sufficient statistics estimated with LSEL on a dataset with size $M$ . Suppose also that we have the continuation risk estimated on with CFL the same dataset. Then, with arbitrary precision, we can solve the backward induction equation in Thm. 2.1, which yields the Bayes optimal terminal decision rule $d^{*}$ and stopping time $\tau^{*}$ , with high probability over the data and as $M \to \infty$ .
+
+# J.3 PROOF
+
+We provide the proof of Thm. J.1.
+
+Proof. We first show that the CFL combined with the density ratio estimation (DRE) with LSEL yields a consistent estimate of function $\tilde{G}_t$ .
+
+Observation 1. According to Lems. J.3 & J.2, for any dataset, the output function of the CFL algorithm can be arbitrarily close to any convex function if $\mathcal{T}, M \to \infty$ with $\mathcal{T} > \Omega(M\sqrt{K})$ , where $\Omega(\cdot)$ here denotes a Landau symbol. Therefore, according to Lem. J.1, with high probability over the data, the output function of the CFL algorithm can be arbitrarily close to any convex function if $\mathcal{T}, M \to \infty$ with $\mathcal{T} > \Omega(M\sqrt{K})$ .
+
+Observation 2. According to Lem. J.4, the estimated LLRs $\hat{\lambda}_{kl}$ can be arbitrarily close to the true LLRs $\lambda_{kl}$ as $M\to \infty$
+
+CFL with DRE is consistent. Therefore, according to Observation 1 & 2, with high probability over the data, as $M \to \infty$ , CFL with DRE can estimate any continuation risk $\tilde{G}_t$ at any $\mathcal{S}_t (= (\pi_1, \dots, \pi_K))$ because $\tilde{G}_t$ is a continuous function of $\mathcal{S}_t$ . That is, CFL with DRE is a statistically consistent estimator of $\tilde{G}_t$ .
+
+FIRMOUND is consistent. Using the estimated continuation risk, we can solve the backward induction equation in Thm. 2.1 with arbitrary precision, which yields the Bayes optimal terminal decision rule $d^{*}$ and stopping time $\tau^{*}$ , with high probability over the data and as $M \to \infty$ . This means that FIRMOUND (= CFL + DRE + backward induction) yields a statistically consistent estimator of the Bayes optimal algorithm in the sense of Thm. 2.1, minimizing AAPR.
+
+# K EXPERIMENTAL DETAILS AND SUPPLEMENTARY RESULTS
+
+Throughout the experiments, Optuna (Akiba et al., 2019) with the default algorithm, Tree-structured Parzen Estimator (TPE) (Bergstra et al., 2011), is used to find the best hyperparameter combinations from the predefined search space. TPE is a Bayesian optimization algorithm that models beliefs about the optimal hyperparameters using Parzen Estimation and optimizes the search process using a tree-like graph. The training procedure described below is common across all datasets unless specified otherwise.
+
+# K.1 FIRMBOUND WITH CFL
+
+Our custom code enables hyperparameter tuning at each time step, determining the lambda parameter (not to be confused with LLR $\lambda$ ; we maintain the original notation from Siahkamari et al. (2022) for consistency) used in the augmented Lagrangian algorithm. The concave conditional expectation is negated for optimizing CFL models. Adam (Kingma & Ba, 2014) is employed as the optimizer.
+
+Tuning. A total of 1000 data points (i.e., posteriors $\pi$ as the sufficient statistic) are randomly selected from the training dataset. Using Optuna, we search for the optimal lambda at each time step as follows: the initial value of lambda is log-uniformly selected from the range $[1e - 3, 1e1]$ . A 5-fold cross-validation, consisting of 3 epochs each, is conducted to evaluate the mean squared error between the predictions and observed data points. This tuning trial is repeated 30 times to ensure comprehensive parameter exploration.
+
+Fitting. A subset of 5000 data points is randomly selected from the training dataset. The optimal lambda parameter, identified from the tuning trials, is used to train the final CFL models over 3 epochs on training data, which will be used for future online ECTS. The evaluation of AAPR and SAT curves is conducted 5 times on test data to validate performance.
+
+# K.2 FIRMBOUND WITH GP REGRESSION
+
+Similar to CFL, GP regression models are trained at each time step $t$ . Adam (Kingma & Ba, 2014) is utilized as the optimizer.
+
+Initialization. A Cholesky Variational Distribution is used to estimate the true posterior, initialized with 200 inducing points (i.e., sufficient statistics, either LLRs or posteriors) that are randomly selected from the training dataset. The GP model is initialized with a constant mean and a covariance module, the latter employing a Radial Basis Function (RBF) kernel. A Gaussian likelihood module is also initialized to evaluate the Evidence Lower Bound (ELBO).
+
+Fitting. The negative variational ELBO is computed and minimized across minibatches of size 2000. After 30 epochs of training on training data, the predictive distribution is evaluated on all sufficient statistics in the training data to assess the conditional expectation. The evaluation of AAPR and SAT curves is repeated 30 times on test data.
+
+Supplementary Results. Fig. 12 shows representative fitting results on the two-class sequential Gaussian dataset.
+
+# K.3 DATASET PREPARATION
+
+Following the methodologies described in Ebihara et al. (2021) and Miyagawa & Ebihara (2021), we prepare feature vectors for the SiW and action recognition datasets UCF101/HMDB51, respectively. All pixel values are divided by 127.5 and then subtracted by 1 before feeding into the feature extractor. For the SiW videos, we use ResNet152 version 2 (He et al., 2016a;b) to produce a 512-dimensional feature vector (trainable parameters: 3.7M). For the UCF101 and HMDB51 videos, we employ the Pretrained Microsoft Vision Model ResNet50, which is used without fine-tuning to extract 2048-dimensional vector elements (trainable parameters: 23.5M). The train/test split for UCF101 and HMDB51 adheres to official splitting pattern #1. A validation set is derived from the training dataset
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Figure 12: Typical risk curves estimated with GP regression. Two-class Gaussian distribution dataset is used to generate observed continuation risk $\tilde{G}$ , on which GP models are trained to provide estimations of the conditional expectation.
+
+
+
+
+
+while maintaining the original class frequency. All videos are clipped or repeated to standardize the time steps to 50 and 79, respectively.
+
+Table 3: Extracted datasets.
+
+
Orig. dataset
Train set
Val. set
Test set
Feat. dim
Time steps
SiW (Liu et al., 2018b)
46,729
4,968
43,878
512
50
HMDB51 (Kuehne et al., 2011)
1,026
106
105
2,048
79
UCF101 (Soomro et al., 2012)
35,996
4,454
15,807
2,048
50
FordA (Soomro et al., 2012)
6,600
6,005
12,000
24
20
+
+# K.4 TRAINING ECTS MODELS
+
+For real-world datasets lacking ground-truth LLRs, we train the DRE model SPRT-TANDEM (Ebihara et al., 2021) to provide a statistically consistent estimator of LLRs. Additionally, ECTS baseline models, including LSTMMs (Ma et al., 2016), EARLIEST (Hartvigsen et al., 2019), TCNTransformer (Chen et al., 2022), and CALIMERA (Bilski & Jastrzewska, 2023) are trained.
+
+Similar to F I R M B O u N D, we utilize Optuna for hyperparameter optimization. The evaluation criterion is the averaged per-class error rate, or macro-averaged recall. A conservative $40\%$ percentile pruner is used for early stopping of unpromising parameter combinations. The training settings common across models and databases, along with detailed pruner settings, are provided in Tab. 4. The choice of optimizer includes Adam (Kingma & Ba, 2014), RMSprop (Graves, 2013), and Lion (Chen et al., 2023). An exception is CALIMERA, which are trained with fixed parameters. CALIMERA employs linear and ridge classifiers, which leverage closed-form solutions for parameter estimation, ensuring a deterministic and efficient optimization process that is less prone to the hyperparameter sensitivities often associated with deep learning models.
+
+In subsequent analyses, the coefficient $\gamma$ demonstrates that batch size and learning rate can be scaled equivalently to maintain consistent training dynamics, as per the linear scaling law (Goyal et al., 2017).
+
+Table 4: Common Hyperparameter Tuning Setup
+
+
Number of iterations
Number of training data * Number of epochs / Batch size
+
+Table 27: CALIMERA on UCF: parameter space.
+
+
Hyperparameter
Space
Optimal value
Fixed parameters
Delay penalty
{0.1, 0.5, 1.0}
N.A. (fixed)
# Repeated test trials
5
N.A. (fixed)
+
+# K.5 COMPUTING INFRASTRUCTURE
+
+All experiments were carried out using custom Python scripts on NVIDIA GeForce RTX 2080 Ti graphics cards. For mathematical computations, Numpy (Harris et al., 2020) and Scipy (Virtanen et al., 2020) were employed. Machine learning frameworks used include PyTorch 2.0.0 (Paszke et al., 2019) and TensorFlow 2.8.0 (Abadi et al., 2015). Gaussian process regression was performed using stochastic variational inference in GPyTorch (Gardner et al., 2018).
+
+# L ON HYPERPARAMETER SENSITIVITY OF FIRMBOUND
+
+Our algorithm either requires minimal hyperparameter tuning or can be easily tuned on the training dataset. Below is a list of major hyperparameters for the two approaches:
+
+# Convex Function Learning (CFL)
+
+- Lambda
+Number of training data for tuning
+Number of training data for fitting
+Tuning trials
+- Epochs
+
+# Gaussian Processes (GP)
+
+- Kernel type
+Number of inducing points
+- Batch size
+- Learning rate
+- Optimizer
+- Epochs
+
+The most critical hyperparameter is the lambda parameter (do not confuse with the LLR or the baseline model EARLIEST's hyperparameter) in CFL, which controls the flexibility of the fitting curves. As described in the Sec. 4, we keep the other hyperparameter settings consistent across all datasets, including i.i.d., non-i.i.d., artificial, and real-world. Our experiments show that FIRMBOUND reliably minimizes the average a posteriori risk (AAPR) to delineate the Pareto front.
+
+As an additional experiment for hyperparameter sensitivity, we tested GP approach with varying kernel and number of inducing points using the two-class Gaussian dataset (Fig. 13). The number of inducing points is varied from the default 200 to 50 and 1000, while keeping the original Radial Basis Function (RBF) kernel. Alternatively, the number of inducing points is fixed at 200, and the Matérn kernel is used instead of RBF. Matérn kernel is a generalization of RBF kernel with a parameter $\nu$ controls its smoothness. As $\nu$ approaches to infinity, Matérn kernel converges to the RBF kernel. In Fig. 13, two values, 1.5 and 2.5, are used as the parameter $\nu$ . Cost parameter is $c = \bar{L} / T$ . The results are robust against any of the above hyperparameters, while Matérn kernel slightly off from the optimality (also see Fig. 5a and 6a of the main manuscript).
+
+
+Figure 13: GP's hyperparameter sensitivity test on the two-class Gaussian dataset. The number of inducing points is varied from 50 to 1000, with the Radial Basis Function (RBF) kernel, or fixed at 200 using the Matérn kernel with $\nu$ values of 1.5 and 2.5. Note that $\nu \rightarrow \infty$ converges to the RBF kernel. $c = \bar{L} /T$ .
+
+# M AAPR ON BASELINE MODELS
+
+In this section, we demonstrate that ill-calibrated ECTS models can misleadingly exhibit small AAPRs. LSTMms, EARLIEST, and TCN-Transformer models were trained on the two-class Gaussian dataset and evaluated using two performance criteria: AAPR and the SAT curve. As shown in Fig 14a, while LSTMms achieves a lower AAPR than FIRMBOUND and SPRT-TANDEM, which maintain well-calibrated statistics, it is outperformed by them in terms of the SAT curve (i.e., ECTS results). This discrepancy arises from overconfidence, which inflates the statistic beyond the calibrated level. Consequently, AAPR alone does not reliably predict SAT performance when using an ill-calibrated statistic. Notably, FIRMBOUND records the minimal AAPR across all models.
+
+
+Figure 14: AAPR and SAT curve with other ECTS algorithms. ECTS algorithms, LSTMms, EARLIEST, and TCN-Transformer are used to compare the two evaluation criteria on the two-class sequential Gaussian dataset.
+
+
+
+# N PARAMETER SPACE OF $L$ AND $c$
+
+Here, we prove that the possible parameter search space of coefficients $\bar{L}_k = L$ (for all $k\in [K]$ ) and $c$ of APR is confined, and thus, we only need to consider a ratio of $L$ and $c$ . First, given that the continuation risk $\tilde{G}_t(\pi)$ is concave and $\tilde{G}_t(\pi = 0) = \tilde{G}_t(\pi = 1) = c$ , the maximum value of the stopping risk $G_{t}^{\mathrm{st}}(\pi)$ needs to be larger than $c$ in order to have more than one intersection (i.e., threshold):
+
+$$
+\begin{array}{l} \max \left\{G _ {t} ^ {\mathrm {s t}} (\pi) \right\} = L \left(1 - \frac {1}{K}\right) \\ > c, \tag {32} \\ \end{array}
+$$
+
+where $K$ is the number of classes.
+
+Second, the intersections of the two risk functions $\tilde{G}_t(\pi)$ and $G_t^{\mathrm{st}}(\pi)$ remain invariant under the scaling transformation of $L$ and $c$ by a factor $\alpha \in \mathbb{R}_{\geq 0}$ . Specifically, at $t = T$ ,
+
+$$
+\begin{array}{l} G _ {T} ^ {\mathrm {s t}} (\pi ; \alpha L) = \min _ {k} \left\{\alpha L \left(1 - \pi_ {k} \left(X _ {m} ^ {(1, T)}\right)\right) \right\} \\ = \alpha \min _ {k} \left\{L \left(1 - \pi_ {k} \left(X _ {m} ^ {(1, T)}\right)\right) \right\} \\ = \alpha G _ {T} ^ {\mathrm {s t}} (\pi ; L, c) \tag {33} \\ \end{array}
+$$
+
+thus,
+
+$$
+\begin{array}{l} G _ {T} ^ {\mathrm {m i n}} (\pi ; \alpha L, \alpha c) = G _ {T} ^ {\mathrm {s t}} (\pi ; \alpha L) \\ = \alpha G _ {T} ^ {\min } (\pi ; L, c) \tag {34} \\ \end{array}
+$$
+
+then at $t = T - 1$
+
+$$
+\begin{array}{l} \tilde {G} _ {T - 1} (\pi ; \alpha L, \alpha c) = \mathbb {E} \left[ G _ {T} ^ {\min } (\pi ; \alpha L, \alpha c) \mid \pi_ {k} \left(X _ {m} ^ {(1, T)}\right) \right] + \alpha c \\ = \mathbb {E} \left[ \alpha G _ {T} ^ {\min } (\pi ; L, c) \mid \pi_ {k} \left(X _ {m} ^ {(1, T)}\right) \right] + \alpha c \\ = \alpha \left(\mathbb {E} \left[ G _ {T} ^ {\min } (\pi ; L, c) \mid \pi_ {k} \left(X _ {m} ^ {(1, T)}\right) \right] + c\right) \\ = \alpha \tilde {G} _ {T - 1} (\pi ; L, c) \tag {35} \\ \end{array}
+$$
+
+$$
+\begin{array}{l} G _ {T - 1} ^ {\min } (\pi ; \alpha L, \alpha c) = \min \left\{G _ {T - 1} ^ {\mathrm {s t}} (\pi ; \alpha L), \tilde {G} _ {T - 1} (\pi ; \alpha L, \alpha c) \right\} \\ = \min \left\{G _ {T - 1} ^ {\alpha \mathrm {s t}} (\pi ; L), \alpha \tilde {G} _ {T - 1} (\pi ; L, c) \right\} \\ = \alpha G _ {T - 1} ^ {\min } (\pi ; L, c) \tag {36} \\ \end{array}
+$$
+
+holds true for a scaling factor $\alpha \in \mathbb{R}$ . By induction, the above linearity holds true for general $t \leq T$ . Given that the threshold is defined as the intersection of $G^{\mathrm{st}}$ and $\tilde{G}$ , scaling $L$ and $c$ by a constant $\alpha$ does not alter the threshold.
+
+To equalize the magnitudes of the terms in APR (Eq. 3), we set $c_{\mathrm{def}} = L / T$ as the default in our experiments. This choice consistently balances the speed-accuracy tradeoff and minimizes APR, as elaborated in Sec. 4.
+
+# O ABLATION STUDY DETAILS
+
+As stated in the main manuscript, vanilla SPRT with static threshold, whether applied to true LLRs or estimated LLRs, is crucial for our ablation studies. Figures 5 and 6 demonstrate that SPRT with a static threshold can lead to either a larger APR or a suboptimal speed-accuracy tradeoff. In this supplementary section on ablation studies, we detail the other two conditions tested: random stopping times and artificial tapering thresholds.
+
+Random stopping times. To establish a chance-level baseline, we randomly generate integers of size $M$ within the range $[1,\dots ,T]$ to use as stopping times. This experiment is repeated five times, with the computed AAPR and SAT points plotted in Fig. 7. These points typically fall in the middle of the figures, delineating the chance levels.
+
+Artificial tapering thresholds. Optimal stopping theory suggests that the optimal threshold computed with backward induction typically descends monotonically as it approaches the finite horizon (Tartakovsky et al., 2014). This insight motivates us to create artificial decision thresholds as economical alternatives. The following power function with $\kappa \in -1.5, 0, 1.5$ is used to generate concave, linear, and convex curves, respectively (Fig. 15):
+
+$$
+f (t; A, T, \kappa) = A \left(1 - \frac {t}{T}\right) ^ {e ^ {\kappa}} \tag {37}
+$$
+
+Resulting AAPR and SAT are plotted in Fig. 7. The magnitude $A$ is set to $a, 2/a, 0$ where $a = \max_{m} \{ \lambda(X_m^{(1,T)}) \}$ , whose result corresponding to the three points in Fig. 7.
+
+
+Figure 15: Tapering thresholds generated with the power function. According to Eq. 37, concave, linear, and convex tapering threshold are generated with $\kappa \in \{-1.5,0,1.5\}$ , respectively.
+
+# P DUMPED OSCILLATING LOG-LIKELIHOOD RATIO FUNCTION
+
+To simulate non-i.i.d., non-monotonic LLR trajectories, we generate binary class LLRs according to Eq. 38:
+
+$$
+\Lambda (t) = \gamma \left(1 - \left(1 - \frac {t}{T}\right) ^ {\exp (\kappa)}\right) + A \exp (- \beta t) \sin (\omega t) + \mathcal {N} (0, \sigma), \tag {38}
+$$
+
+where $\gamma \in \{-1,1\}$ corresponds to class targets that the trajectories asymptotically approach. $A$ $\beta$ , and $\omega$ denote the oscillation amplitude, damping coefficient, and angular frequency of the wave, respectively. $\sigma$ indicates the noise level. Example trajectories are depicted in Fig. 16.
+
+The parameters and their respective prior distributions used in this study are detailed in Tab. 28. The notation $\mathcal{N}(\mu, \sigma)$ represents a Gaussian (normal) distribution with mean $\mu$ and standard deviation $\sigma$ . The notation $\mathcal{U}(a, b)$ denotes a uniform distribution sampled within the interval $[a, b]$ .
+
+Table 28: Parameter space of DOL dataset.
+
+
Parameter
Distribution
A
Gaussian N(μ = 2, σ = 2)
β
Uniform U(0.02, 0.2)
ω
Uniform U(-2, 3)
κ
Uniform U(-2.5, 0)
σ
Gaussian N(μ = 0.0, σ = 1.0)
+
+
+Figure 16: Tapering thresholds generated with the power function (Eq. 38). Note that the trajectories are generated at a higher sampling rate just for visualization purposes. In the experiment, we sample points at each time step $t \in 1, \dots, T$ .
+
+# Q SUPPLEMENTARY EXPERIMENT ON THE UCR FORDA DATASET
+
+To test FIRMBOUND's risk minimization capability on continuous signals, we conduct additional experiments on the UCR FordA dataset. FordA is a time series binary classification dataset with 500 samples. Each time series is sliced into non-overlapping segments of 100 time steps. Then each 100-step segment was further processed using a sliding window approach with a window size of 24 and a stride of 4. This resulted in multiple windows per segment:
+
+- The number of windows $W$ generated from each segment is calculated as:
+
+$$
+W = 1 + \left\lfloor \frac {1 0 0 - 2 4}{4} \right\rfloor = 2 0
+$$
+
+- Therefore, each 100-step segment was transformed into 20 windows, each of length 24.
+
+The resulting data are reshaped into a 3-dimensional array with dimensions $(M\times T\times 24)$ , where $M$ is the number of original time series (6,600 and 18,005 for training and test dataset, respectively), $T = 20$ is time steps, or the number of windows per segment, and 24 is the feature dimension, or the window length.
+
+The result shows that FIRMBOUND effectively find minima of AAPR to optimize the speed-accuracy tradeoff, as shown in Fig. 17.
+
+
+Figure 17: AAPR and SAT curves on UCR FordA dataset. FIRMBOUND effectively find minima of AAPR to optimize the speed-accuracy tradeoff.
+
+
+
+# SUPPLEMENTARY REFERENCES
+
+M. Abadi, A. Agarwal, P. Barham, E. Brevdo, Z. Chen, C. Citro, G. S. Corrado, A. Davis, J. Dean, M. Devin, S. Ghemawat, I. Goodfellow, A. Harp, G. Irving, M. Isard, Y. Jia, R. Jozefowicz, L. Kaiser, M. Kudlur, J. Levenberg, D. Mané, R. Monga, S. Moore, D. Murray, C. Olah, M. Schuster, J. Shlens, B. Steiner, I. Sutskever, K. Talwar, P. Tucker, V. Vanhoucke, V. Vasudevan, F. Viégas, O. Vinyals, P. Warden, M. Wattenberg, M. Wicke, Y. Yu, and X. Zheng. TensorFlow: Large-scale machine learning on heterogeneous systems, 2015. Software available from tensorflow.org.
+S. Ahmad and A. J. Yu. Active sensing as bayes-optimal sequential decision-making. In Proceedings of the Twenty-Ninth Conference on Uncertainty in Artificial Intelligence, UAI'13, pp. 12-21, Arlington, Virginia, USA, 2013. AUAI Press.
+P. Armitage. Sequential analysis with more than two alternative hypotheses, and its relation to discriminant function analysis. Journal of the Royal Statistical Society. Series B (Methodological), 12(1):137-144, 1950.
+H. Asano. Sequential bayesian experimental designs via reinforcement learning. arXiv preprint arXiv:2202.07472, 2022.
+C. Atkinson, B. McCane, L. Szymanski, and A. V. Robins. Pseudo-rehearsal: Achieving deep reinforcement learning without catastrophic forgetting. Neurocomputing, 428:291-307, 2018.
+D. M. Bashtannyk and R. J. Hyndman. Bandwidth selection for kernel conditional density estimation. Computational Statistics & Data Analysis, 36:279-298, 2001.
+C. W. Baum and V. V. Veeravalli. A sequential procedure for multihypothesis testing. IEEE Transactions on Information Theory, 40(6):1994-2007, Nov 1994.
+J. Bjorck, C. P. Gomes, and K. Q. Weinberger. Is high variance unavoidable in RL? a case study in continuous control. ArXiv, abs/2110.11222, 2021.
+T. Blau, E. V. Bonilla, I. Chades, and A. Dezfouli. Optimizing sequential experimental design with deep reinforcement learning. In International Conference on Machine Learning, pp. 2107-2128. PMLR, 2022.
+Z. Botev, J. Grotowski, and D. Kroese. Kernel density estimation via diffusion. The Annals of Statistics, 38, 11 2010.
+A. Brockwell and J. J. B. Kadane. A gridding method for bayesian sequential decision problems. Journal of Computational and Graphical Statistics, 12:566 - 584, 2003.
+J. Q. Candela and C. E. Rasmussen. A unifying view of sparse approximate Gaussian process regression. J. Mach. Learn. Res., 6:1939-1959, 2005.
+E. Cetin, P. J. Ball, S. Roberts, and O. Çeliktutan. Stabilizing off-policy deep reinforcement learning from pixels. In International Conference on Machine Learning, 2022.
+X. Chen, C. Liang, D. Huang, E. Real, K. Wang, H. Pham, X. Dong, T. Luong, C.-J. Hsieh, Y. Lu, and Q. V. Le. Symbolic discovery of optimization algorithms. In A. Oh, T. Naumann, A. Globerson, K. Saenko, M. Hardt, and S. Levine (eds.), Advances in Neural Information Processing Systems, volume 36, pp. 49205-49233. Curran Associates, Inc., 2023.
+H. Chernoff. Sequential design of experiments. The Annals of Mathematical Statistics, 30(3): 755-770, 1959.
+A. K. Churchland, R. Kiani, and M. N. Shadlen. Decision-making with multiple alternatives. Nature Neuroscience, 11:693-702, 2008.
+D. A. Cohn, Z. Ghahramani, and M. I. Jordan. Active learning with statistical models. *ArXiv*, cs.AI/9603104, 1996.
+M. P. Deisenroth and J. W. Ng. Distributed Gaussian processes. In International Conference on Machine Learning, 2015.
+
+D. K. Dennis, C. Pabbaraju, H. V. Simhadri, and P. Jain. Multiple instance learning for efficient sequential data classification on resource-constrained devices. In Proceedings of the 32nd International Conference on Neural Information Processing Systems, NIPS'18, pp. 10976-10987, Red Hook, NY, USA, 2018. Curran Associates Inc.
+K. Doya. Modulators of decision making. Nat. Neurosci., 11(4):410-416, Apr 2008.
+V. P. Dragalin, A. G. Tartakovsky, and V. V. Veeravalli. Multihypothesis sequential probability ratio tests. i. asymptotic optimality. IEEE Transactions on Information Theory, 45(7):2448-2461, November 1999.
+V. Dragalin. Asymptotic solution of a problem of detecting a signal from $k$ channels. Russian Mathematical Surveys, 42(3):213, 1987.
+V. Dragalin and A. Novikov. Adaptive sequential tests for composite hypotheses. Survey of Applied and Industrial Mathematics, 6:387-398, 1999.
+J. Drugowitsch, R. Moreno-Bote, A. K. Churchland, M. N. Shadlen, and A. Pouget. The cost of accumulating evidence in perceptual decision making. *The Journal of Neuroscience*, 32:3612 - 3628, 2012.
+T. Duan, J. Zhao, S. Zhang, J. Tao, and P. Wang. Representation learning of tangled key-value sequence data for early classification. In 2024 40th IEEE International Conference on Data Engineering, 2024.
+T. S. Ferguson. Optimal stopping and applications, 2006.
+P. Frazier and A. J. Yu. Sequential hypothesis testing under stochastic deadlines. In J. Platt, D. Koller, Y. Singer, and S. Roweis (eds.), Advances in Neural Information Processing Systems, volume 20. Curran Associates, Inc., 2007.
+J. P. Gallivan, C. S. Chapman, D. M. Wolpert, and J. R. Flanagan. Decision-making in sensorimotor control. Nat. Rev. Neurosci., 19(9):519-534, 09 2018.
+J. I. Gold and M. N. Shadlen. The neural basis of decision making. Annu. Rev. Neurosci., 30:535-574, 2007.
+P. Goyal, P. Dollar, R. B. Girshick, P. Noordhuis, L. Wesolowski, A. Kyrola, A. Tulloch, Y. Jia, and K. He. Accurate, large minibatch SGD: trainingImagenet in 1 hour. CoRR, abs/1706.02677, 2017.
+A. Graves. Generating sequences with recurrent neural networks. arXiv preprint arXiv:1308.0850, 2013.
+M. U. Gutmann and A. Hyvarinen. Noise-contrastive estimation of unnormalized statistical models, with applications to natural image statistics. The journal of machine learning research, 13(1): 307-361, 2012.
+T. D. Hanks, R. Kiani, and M. N. Shadlen. A neural mechanism of speed-accuracy tradeoff in macaque area lip. eLife, 3, 2014.
+C. R. Harris, K. J. Millman, S. J. van der Walt, R. Gommers, P. Virtanen, D. Cournapeau, E. Wieser, J. Taylor, S. Berg, N. J. Smith, R. Kern, M. Picus, S. Hoyer, M. H. van Kerkwijk, M. Brett, A. Haldane, J. F. Del Río, M. Wiebe, P. Peterson, P. Gérard-Marchant, K. Sheppard, T. Reddy, W. Weckesser, H. Abbasi, C. Gohlke, and T. E. Oliphant. Array programming with NumPy. Nature, 585(7825):357-362, 09 2020.
+T. Hartvigsen, W. Gerych, J. Thadajarassiri, X. Kong, and E. A. Rundensteiner. Stop&hop: Early classification of irregular time series. In CIKM, 2021.
+J. Hensman, A. G. de G. Matthews, and Z. Ghahramani. Scalable variational Gaussian process classification. In International Conference on Artificial Intelligence and Statistics, 2014.
+S. Hochreiter and J. Schmidhuber. Long short-term memory. Neural Comput., 9(8):1735-1780, 1997.
+
+N. Houlsby, F. Huszar, Z. Ghahramani, and M. Lengyel. Bayesian active learning for classification and preference learning. ArXiv, abs/1112.5745, 2011.
+A. Irle and N. Schmitz. On the optimality of the sprt for processes with continuous time parameter. Statistics: A Journal of Theoretical and Applied Statistics, 15(1):91-104, 1984.
+H. Ismail Fawaz, G. Forestier, J. Weber, L. Idoumghar, and P.-A. Muller. Deep learning for time series classification: a review. Data Mining and Knowledge Discovery, 33(4):917-963, July 2019. ISSN 1573-756X.
+D. Jarrett and M. van der Schaar. Inverse active sensing: Modeling and understanding timely decision-making. ArXiv, abs/2006.14141, 2020.
+R. I. Jennrich. Asymptotic properties of non-linear least squares estimators. Ann. Math. Statist., 40 (2):633-643, 04 1969.
+J. B. Kadane and P. K. Vlachos. Hybrid methods for calculating optimal few-stage sequential strategies: Data monitoring for a clinical trial. Statistics and Computing, 12:147-152, 2002.
+J. Kiefer and J. Sacks. Asymptotically optimum sequential inference and design. The Annals of Mathematical Statistics, pp. 705-750, 1963.
+D. P. Kingma and J. Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
+S. Kira, T. Yang, and M. N. Shadlen. A neural implementation of wald's sequential probability ratio test. Neuron, 85(4):861-873, February 2015.
+S. Kira, A. Zylberberg, and M. N. Shadlen. Incorporation of a cost of deliberation time in perceptual decision making. *bioRxiv*, 2024.
+S. Kleinegesse, C. Drovandi, and M. Gutmann. Sequential bayesian experimental design for implicit models via mutual information. Bayesian Analysis, -1, 07 2020.
+D. Kroese, T. Taimre, and Z. Botev. Handbook of Monte Carlo Methods. Wiley Series in Probability and Statistics. Wiley, 2011. ISBN 9780470177938.
+A. Kumar, A. Gupta, and S. Levine. DisCor: Corrective feedback in reinforcement learning via distribution correction. In Proceedings of the 33rd International Conference on Neural Information Processing Systems, 2020.
+T. L. Lai. Asymptotic optimality of invariant sequential probability ratio tests. The Annals of Statistics, pp. 318-333, 1981.
+K. W. Latimer, J. L. Yates, M. L. Meister, A. C. Huk, and J. W. Pillow. Single-trial spike trains in parietal cortex reveal discrete steps during decision-making. Science, 349(6244):184-187, Jul 2015.
+D. D. Lewis and W. A. Gale. A sequential algorithm for training text classifiers. In Annual International ACM SIGIR Conference on Research and Development in Information Retrieval, 1994.
+G. Lorden. Nearly-optimal sequential tests for finitely many parameter values. Annals of Statistics, 5: 1-21, 01 1977.
+J. Lv, Y. Chu, J. Hu, P. Li, and X. Hu. Second-order confidence network for early classification of time series. ACM Transactions on Intelligent Systems and Technology, 2023.
+C. Martinez, E. Ramasso, G. Perrin, and M. Rombaut. Adaptive early classification of temporal sequences using deep reinforcement learning. Knowledge-Based Systems, 190:105290, 2020. ISSN 0950-7051.
+T. Miyagawa and A. F. Ebihara. The power of log-sum-exp: Sequential density ratio matrix estimation for speed-accuracy optimization. In Proceedings of the 38th International Conference on Machine Learning, pp. 7792–7804, 2021.
+
+U. Mori, A. Mendiburu, S. Dasgupta, and J. A. Lozano. Early classification of time series by simultaneously optimizing the accuracy and earliness. IEEE Transactions on Neural Networks and Learning Systems, 29(10):4569-4578, Oct 2018. ISSN 2162-237X.
+U. Mori, A. Mendiburu, S. Dasgupta, and J. A. Lozano. Early classification of time series from a cost minimization point of view. In Proceedings of the NIPS Time Series Workshop, 2015.
+P. Müller, D. A. Berry, A. P. Grieve, M. K. Smith, and M. Kraams. Simulation-based sequential bayesian design. Journal of Statistical Planning and Inference, 137:3140-3150, 2007.
+M. Naghshvar and T. Javidi. Active sequential hypothesis testing. The Annals of Statistics, 41(6): 2703-2738, 2013. ISSN 00905364, 21688966.
+J. Najemnik and W. S. Geisler. Optimal eye movement strategies in visual search. Nature, 434: 387-391, 2005.
+W. Newey and D. McFadden. Large sample estimation and hypothesis testing. In R. F. Engle and D. McFadden (eds.), Handbook of Econometrics, volume 4, chapter 36, pp. 2111-2245. Elsevier, 1 edition, 1986.
+E. Nikishin, P. Izmailov, B. Athiwaratkun, D. Podoprikhin, T. Garipov, P. Shvechikov, D. Vetrov, and A. G. Wilson. Improving stability in deep reinforcement learning with weight averaging. In Uncertainty in artificial intelligence workshop on uncertainty in Deep learning, 2018.
+G. Okazawa, C. E. Hatch, A. Mancoo, C. K. Machens, and R. Kiani. The geometry of the representation of decision variable and stimulus difficulty in the parietal cortex. bioRxiv, 2021.
+A. Paszke, S. Gross, F. Massa, A. Lerer, J. Bradbury, G. Chanan, T. Killeen, Z. Lin, N. Gimelshein, L. Antiga, A. Desmaison, A. Kopf, E. Yang, Z. DeVito, M. Raison, A. Tejani, S. Chilamkurthy, B. Steiner, L. Fang, J. Bai, and S. Chintala. Pytorch: An imperative style, high-performance deep learning library. In Advances in Neural Information Processing Systems 32, pp. 8024-8035. Curran Associates, Inc., 2019.
+E. Paulson. A sequential decision procedure for choosing one of $k$ hypotheses concerning the unknown mean of a normal distribution. The Annals of Mathematical Statistics, pp. 549-554, 1963.
+I. V. Pavlov. Sequential procedure of testing composite hypotheses with applications to the kiefer-weiiss problem. Theory of Probability & Its Applications, 35(2):280-292, 1991.
+I. Pavlov. Sequential decision rule for the case of many complex hypotheses. ENG. CYBER., (6): 19-22, 1984.
+B. Rhodes, K. Xu, and M. U. Gutmann. Telescoping density-ratio estimation. In NeurIPS, volume 33, pp. 4905-4916, 2020.
+C. Robert and G. Casella. Monte Carlo statistical methods. Springer Verlag, 2004.
+J. D. Roitman and M. N. Shadlen. Response of neurons in the lateral intraparietal area during a combined visual discrimination reaction time task. J. Neurosci., 22(21):9475-9489, Nov 2002.
+M. Rosenblatt. Conditional probability density and regression estimators. In P. R. Krishnaiah (ed.), Multivariate analysis, II, pp. 25-31. Academic Press, New York, 1969. (Dayton, OH, 17-22 June 1968). MR:254987.
+D. Rossell, P. Müller, and G. L. Rosner. Screening designs for drug development. *Biostatistics*, 8 3: 595-608, 2007.
+D. Scott. Multivariate Density Estimation: Theory, Practice, and Visualization. A Wiley-interscience publication. Wiley, 1992. ISBN 9780471547709.
+O. Sener and S. Savarese. Active learning for convolutional neural networks: A core-set approach. arXiv: Machine Learning, 2017.
+
+H. S. Seung, M. Opper, and H. Sompolinsky. Query by committee. In Annual Conference Computational Learning Theory, 1992.
+A. Siahkamari, D. A. E. Acar, C. Liao, K. L. Geyer, V. Saligrama, and B. Kulis. Faster algorithms for learning convex functions. In K. Chaudhuri, S. Jegelka, L. Song, C. Szepesvari, G. Niu, and S. Sabato (eds.), Proceedings of the 39th International Conference on Machine Learning, volume 162 of Proceedings of Machine Learning Research, pp. 20176-20194. PMLR, 17-23 Jul 2022.
+B. Silverman. Density Estimation for Statistics and Data Analysis. Chapman & Hall/CRC Monographs on Statistics & Applied Probability. Taylor & Francis, 1986. ISBN 9780412246203.
+G. Simons. Lower bounds for average sample number of sequential multihypothesis tests. The Annals of Mathematical Statistics, pp. 1343-1364, 1967.
+M. Sobel and A. Wald. A sequential decision procedure for choosing one of three hypotheses concerning the unknown mean of a normal distribution. Ann. Math. Statist., 20(4):502-522, 12 1949.
+J. Sochman and J. Matas. Waldboost - learning for time constrained sequential detection. In 2005 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR'05), volume 2, pp. 150-156 vol. 2, June 2005.
+R. Sullivan, J. K. Terry, B. Black, and J. P. Dickerson. Cliff diving: Exploring reward surfaces in reinforcement learning environments. *ArXiv*, abs/2205.07015, 2022.
+C. Sun, H. Li, M. Song, and linda Qiao. A ranking-based cross-entropy loss for early classification of time series. IEEE transactions on neural networks and learning systems, PP, 2023.
+T. Suzuki, H. Kataoka, Y. Aoki, and Y. Satoh. Anticipating traffic accidents with adaptive loss and large-scale incident db. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 3521-3529, 2018.
+A. Tartakovsky. Asymptotic optimality of certain multihypothesis sequential tests: Non-i.i.d. case. Stat. Inference Stoch. Process., 1:265-295, 1998.
+A. Tartakovsky, I. Nikiforov, and M. Basseville. Sequential Analysis: Hypothesis Testing and Changepoint Detection. Chapman & Hall/CRC, 1st edition, 2014.
+M. Tec, Y. Duan, and P. Müller. A comparative tutorial of bayesian sequential design and reinforcement learning. The American Statistician, 77(2):223-233, 2023.
+D. Teng and E. Ertin. Wald-kernel: A method for learning sequential detectors. In 2016 IEEE Statistical Signal Processing Workshop (SSP), pp. 1-5, June 2016.
+P. Virtanen, R. Gommers, T. E. Oliphant, M. Haberland, T. Reddy, D. Cournapeau, E. Burovski, P. Peterson, W. Weckesser, J. Bright, S. J. van der Walt, M. Brett, J. Wilson, K. Jarrod Millman, N. Mayorov, A. R. J. Nelson, E. Jones, R. Kern, E. Larson, C. Carey, I. Polat, Y. Feng, E. W. Moore, J. Vand erPlas, D. Laxalde, J. Perktold, R. Cirmrman, I. Henriksen, E. A. Quintero, C. R. Harris, A. M. Archibald, A. H. Ribeiro, F. Pedregosa, P. van Mulbregt, and S... Contributors. SciPy 1.0: Fundamental Algorithms for Scientific Computing in Python. Nature Methods, 17: 261-272, 2020.
+A. Wald and J. Wolfowitz. Optimum character of the sequential probability ratio test. Ann. Math. Statist., 19(3):326-339, 09 1948.
+A. Wald and J. Wolfowitz. Bayes solutions of sequential decision problems. The Annals of Mathematical Statistics, 21(1):82-99, 1950. ISSN 00034851.
+B. Wang and X. Wang. Bandwidth selection for weighted kernel density estimation. arXiv, 2007.
+Y. Wang, Q. Zhang, L. Ying, and C. Zhou. Deep reinforcement learning for early diagnosis of lung cancer. In M. J. Wooldridge, J. G. Dy, and S. Natarajan (eds.), AAI, pp. 22410-22419. AAAI Press, 2024.
+
+Z. Wang and D. W. Scott. Nonparametric density estimation for high-dimensional data—algorithms and applications. Wiley Interdisciplinary Reviews: Computational Statistics, 11, 2019.
+J. Weng, X. Jiang, W.-L. Zheng, and J. Yuan. Early action recognition with category exclusion using policy-based reinforcement learning. IEEE TCSVT, 30:4626-4638, 2020.
+A. G. Wilson and H. Nickisch. Kernel interpolation for scalable structured Gaussian processes (KISS-GP). In International Conference on Machine Learning, 2015.
+Z. Xing, J. Pei, and P. S. Yu. Early classification on time series. Knowledge and Information Systems, 31(1):105-127, April 2012.
+P.-E. Zafar, Y. Achenchabe, A. Bondu, A. Cornuéjols, and V. Lemaire. Early Classification of Time Series: Cost-based multiclass Algorithms. In 2021 IEEE 8th International Conference on Data Science and Advanced Analytics (DSAA), pp. 1-10, Porto, Portugal, October 2021. IEEE.
\ No newline at end of file
diff --git a/ICLR/2025/Learning the Optimal Stopping for Early Classification within Finite Horizons via Sequential Probability Ratio Test/images.zip b/ICLR/2025/Learning the Optimal Stopping for Early Classification within Finite Horizons via Sequential Probability Ratio Test/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..3cde0e93c2d61bcb5d7eb8152001fdfd77c060c6
--- /dev/null
+++ b/ICLR/2025/Learning the Optimal Stopping for Early Classification within Finite Horizons via Sequential Probability Ratio Test/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:77e8130bec8081b43b813b821bf8b1d145847e11df5ebe3facfa04d2e741faa0
+size 2712179
diff --git a/ICLR/2025/Learning the Optimal Stopping for Early Classification within Finite Horizons via Sequential Probability Ratio Test/layout.json b/ICLR/2025/Learning the Optimal Stopping for Early Classification within Finite Horizons via Sequential Probability Ratio Test/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..ce73a4fbd7d46c8b5f11baff5f2c57a257ae4d7e
--- /dev/null
+++ b/ICLR/2025/Learning the Optimal Stopping for Early Classification within Finite Horizons via Sequential Probability Ratio Test/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:af3d242da4ca72929d142e9cbd47313f565213196ff2fed820dd10dde05b2f22
+size 1924002
diff --git a/ICLR/2025/Learning to Adapt Frozen CLIP for Few-Shot Test-Time Domain Adaptation/97b714df-579b-45f8-88a4-151d0f3e74e1_content_list.json b/ICLR/2025/Learning to Adapt Frozen CLIP for Few-Shot Test-Time Domain Adaptation/97b714df-579b-45f8-88a4-151d0f3e74e1_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..8a0efef20906a4468bc9f39dc9fe868fae5bc1d6
--- /dev/null
+++ b/ICLR/2025/Learning to Adapt Frozen CLIP for Few-Shot Test-Time Domain Adaptation/97b714df-579b-45f8-88a4-151d0f3e74e1_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ef352e4041ba7273dd3c919c9d8335c1d103497bac67254709dcb5ebccd47e4d
+size 133188
diff --git a/ICLR/2025/Learning to Adapt Frozen CLIP for Few-Shot Test-Time Domain Adaptation/97b714df-579b-45f8-88a4-151d0f3e74e1_model.json b/ICLR/2025/Learning to Adapt Frozen CLIP for Few-Shot Test-Time Domain Adaptation/97b714df-579b-45f8-88a4-151d0f3e74e1_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..e84a6af7e267b09a52c501a064a6ff8da3731d8e
--- /dev/null
+++ b/ICLR/2025/Learning to Adapt Frozen CLIP for Few-Shot Test-Time Domain Adaptation/97b714df-579b-45f8-88a4-151d0f3e74e1_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1e53bada4d5c8d2416b9f6ef1984a469b26697dacd49b3ada1fcd540b6ebc6c1
+size 163604
diff --git a/ICLR/2025/Learning to Adapt Frozen CLIP for Few-Shot Test-Time Domain Adaptation/97b714df-579b-45f8-88a4-151d0f3e74e1_origin.pdf b/ICLR/2025/Learning to Adapt Frozen CLIP for Few-Shot Test-Time Domain Adaptation/97b714df-579b-45f8-88a4-151d0f3e74e1_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..323d6065f3b9f85768b88990da21f76bcda858c9
--- /dev/null
+++ b/ICLR/2025/Learning to Adapt Frozen CLIP for Few-Shot Test-Time Domain Adaptation/97b714df-579b-45f8-88a4-151d0f3e74e1_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:af7fa72613acce571429f0fdfdf602d42b2a6055fe09ee8cefed5cda757f4881
+size 1551987
diff --git a/ICLR/2025/Learning to Adapt Frozen CLIP for Few-Shot Test-Time Domain Adaptation/full.md b/ICLR/2025/Learning to Adapt Frozen CLIP for Few-Shot Test-Time Domain Adaptation/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..e3e36dfe8272fdc8b95ea3c739a6a613dc625700
--- /dev/null
+++ b/ICLR/2025/Learning to Adapt Frozen CLIP for Few-Shot Test-Time Domain Adaptation/full.md
@@ -0,0 +1,552 @@
+# LEARNING TO ADAPT FROZEN CLIP FOR FEW-SHOT TEST-TIME DOMAIN ADAPTATION
+
+Zhixiang Chi $^{1}$ , Li Gu $^{2}$ , Huan Liu $^{3}$ , Ziqiang Wang $^{2}$ , Yanan Wu $^{2\dagger}$ , Yang Wang $^{2\dagger}$ , Konstantinos N Plataniotis $^{1\dagger}$
+
+1 University of Toronto, 2 Concordia University, 3 McMaster University
+
+$\boxed{ \begin{array}{r l} \end{array} }$ zhixiang.chi@mail.utoronto.ca
+
+# ABSTRACT
+
+Few-shot Test-Time Domain Adaptation focuses on adapting a model at test time to a specific domain using only a few unlabeled examples, addressing domain shift. Prior methods leverage CLIP's strong out-of-distribution (OOD) abilities by generating domain-specific prompts to guide its generalized, frozen features. However, since downstream datasets are not explicitly seen by CLIP, solely depending on the feature space knowledge is constrained by CLIP's prior knowledge. Notably, when using a less robust backbone like ViT-B/16, performance significantly drops on challenging real-world benchmarks. Departing from the state-of-the-art of inheriting the intrinsic OOD capability of CLIP, this work introduces learning directly on the input space to complement the dataset-specific knowledge for frozen CLIP. Specifically, an independent side branch is attached in parallel with CLIP and enforced to learn exclusive knowledge via revert attention. To better capture the dataset-specific label semantics for downstream adaptation, we propose to enhance the inter-dispersion among text features via greedy text ensemble and refinement. The text and visual features are then progressively fused in a domain-aware manner by a generated domain prompt to adapt toward a specific domain. Extensive experiments show our method's superiority on 5 large-scale benchmarks (WILDS and DomainNet), notably improving over smaller networks like ViT-B/16 with gains of +5.1 in F1 for iWildCam and +3.1% in WC Acc for FMoW. Our Code: L2C
+
+# 1 INTRODUCTION
+
+Deep models excel when test and training data distributions align, but real-world scenarios often involve domain shifts (Gulrajani & Lopez-Paz, 2020; Taori et al., 2020; Su et al., 2024b; Yang et al., 2024a; 2023), leading to performance drop. Few-shot Test-Time Domain Adaptation (FSTT-DA) (Chi et al., 2024; Zhong et al., 2022) addresses this by introducing a test-time learning phase to adapt generic models to unseen target domains using a few unlabeled samples. It faces several challenges: i) limited domain-specific information due to a few unlabeled data (unseen target domains), ii) one-time adaptation for each target domain, iii) strict source-free environment during test-time on unseen target domains, and iv) handling diverse target domains with varying complexities and domain shifts.
+
+Therefore, developing an adaptive learning system using source domain data is crucial (Ahmed et al., 2021), as it embodies dataset-specific knowledge—including labels, semantics, and domains. MetaDMoE (Zhong et al., 2022) adapts to unseen target domains by querying relevant knowledge from source expert models and then updating an adaptive student model through knowledge distillation (Ye et al., 2024; Yang & Ye, 2024; Hamidi et al., 2024). MABN (Wu et al., 2024b) learns source distributions during offline training and pinpoints domain-specific parameters for updates during test-time. However, both MetaDMoE and MABN involve model fine-tuning, which can compromise the inherent OOD generalization of vision foundation models like CLIP (Wortsman et al., 2022b).
+
+VDPG (Chi et al., 2024) leverages CLIP's inherent OOD capabilities and robustness (Zhang et al., 2023) by operating solely on its visual features. It compacts source domain knowledge into a learnable knowledge bank. A generator then creates domain-specific prompts from this bank, conditioned on
+
+
+(a) High-level comparison.
+
+
+(b) Comparison on ViT-B/16 and ViT-L/14.
+
+
+Figure 1: VDPG preserves CLIP's OOD capabilities by operating in the feature space and relying on pretrained CLIP. However, with a weaker backbone like ViT-B/16, performance drops on benchmarks like iWildCam and FMoW. Learning directly from the image space complements CLIP, improving ViT-B/16 as shown in (b).
+
+the features of unlabeled data, to steer the frozen CLIP features toward the target domain. While effective in generating diverse prompts across domains, VDPG has notable drawbacks: its ability to produce domain-specific prompts and utilize source knowledge is limited by CLIP's general, non-dataset-specific knowledge. As shown in Fig. 1b, with a much less robust backbone, ViT-B/16, VDPG suffers significant performance drop. Moreover, VDPG overlooks class semantic cues (Yoon et al., 2024), which are vital for downstream datasets but not addressed by its vision-only encoder.
+
+In this work, we adopt VDPG's black-box approach to retain CLIP's OOD capabilities and aim to improve it by adapting both frozen image and text features. On the image side, we attach a parallel module named CPNet to learn directly from the input space and ComPlement the frozen visual feature of CLIP at its output. It contradicts the methods that involve feature interactions among intermediate layers (Yin et al., 2023; Xu et al., 2023; Chi et al., 2018), and allows CPNet to remain lightweight and applicable for black-box settings. CPNet is encouraged via revert attention to focus on learning only the necessary dataset-specific information, both semantic and domain, that may be absent from CLIP's generalized knowledge. Fig. 1a demonstrates high-level comparison with VDPG.
+
+Noting the significant diversity in image features across domains, even for the same group of classes, we deduce that text features must also adapt accordingly. To benefit downstream adaptation, we aim to enhance the discrimination among text features (termed inter-dispersion) (Cho et al., 2023a), reducing domain bias prior to adaptation. We propose a greedy text ensemble strategy to select prompt templates that improve this discrimination, combined with a lightweight refinement module that uses an inter-dispersion loss to further enhance class differentiation. Importantly, because the greedy ensemble is executed as a pre-processing step, the CLIP text encoder can be discarded when training starts, minimizing its impact on overall training costs (less than $0.01\%$ of total cost).
+
+To adapt the complemented visual and enhanced text features towards the unseen target domain, we take advantage of CPNet which extracts the unique domain knowledge that CLIP may exclude. Specifically, we reshape the batched unlabeled data so that the inter-attention is computed among the batch instances. Within the same domain, the domain information is typically consistent across data instances (Zhong et al., 2022; Chi et al., 2024). It allows us to treat the propagated batch information as domain-specific knowledge. We then integrate it with a learnable domain cache to form a domain-specific prompt. This prompt guides the fusion of text and image features, enhancing the coherence of domain-specific outputs, and thus adapting to a particular target domain.
+
+We name our framework as Learning to Complement (L2C) and our contributions are: 1) We propose a parallel CPNet to learn dataset-specific knowledge to complement the generalized frozen CLIP visual feature; 2) We propose effortless greedy ensemble and lightweight refinement to enhance the class-wise inter-dispersion for text features to benefit adaptation; 3) We improve the domain knowledge extraction process to adapt both text and visual features in a domain-aware manner; 4) We evaluate L2C on 5 benchmarks, especially on challenging real-world WILDS dataset with smaller backbones (i.e., +5.1 in F1 for iWildCam and +3.1% in WC Acc for FMoW with ViT-B/16).
+
+# 2 RELATED WORK
+
+Distribution shifts often degrade the learning-based methods (Zhang et al., 2021a). To address this, Domain Generalization (DG) (Zhou et al., 2020; Lv et al., 2022) and Unsupervised Domain Adaptation (UDA) (Zhang, 2021; Peng et al., 2019; Pei et al., 2018) have been explored. DG extracts
+
+domain-invariant features for multiple domains (Li et al., 2018; Long et al., 2018), but a single model often falls short. UDA adapts source knowledge to unlabeled target data through extensive target-specific training, but its scale and resource demands limit practicality. PØDA (Fahes et al., 2023) and ULDA (Yang et al., 2024b) achieve zero-shot adaptation by leveraging natural language descriptions of target domains without accessing data. In contrast, FSTT-DA uses domain cues from target domain images, making it suitable for scenarios where descriptions or labels are unavailable.
+
+Test-time adaptation (TTA) (Su et al., 2022; 2024c;a) is an emerging learning paradigm that incorporates an additional learning phase at test time before inference, to mitigate distribution shifts. This phase often utilizes unsupervised objectives like entropy minimization (Wang et al., 2021; Niu et al., 2022; Zhang et al., 2022a; Gong et al., 2022; Zhao et al., 2023; Wang et al., 2024), teacher-student self-training (Yuan et al., 2023; Marsden et al., 2022; 2023; Liu et al., 2022a; Zhang et al., 2024), auxiliary tasks (Sun et al., 2020; Liu et al., 2023; Chi et al., 2021; Liu et al., 2022b), and contrastive learning (Chen et al., 2022a; Wu et al., 2023; Liang et al., 2022) for supervision. Although effective, these approaches often require model fine-tuning or a complex design of learnable parameters. It challenges their scalability and intrinsic OOD capabilities in larger foundation models (Wortsman et al., 2022a). Recent developments include the use of vision prompts (Han et al., 2023), which adapt by modifying only a minimal number of parameters to leverage the existing knowledge within large models (Zhang et al., 2021b; Gan et al., 2023). HybridPrompt (Wu et al., 2024a) and ProD (Wu et al., 2024a) introduce prompt-based algorithms to extract domain-specific knowledge to address domain shifts in cross-domain few-shot learning (CD-FSL) where labelled support set is availale (Guo et al., 2020; Wang & Deng, 2021; Fu et al., 2023). However, these prompts are inserted into various layers and require access to the weights of the base model. Therefore, they incur additional computational costs and pose challenges in scenarios where privacy concerns or proprietary models limit flexibility (An et al., 2022). Our work introduces a practical, gradient-free adaptation method, enabling model deployment in black-box environments.
+
+Few-shot test-time domain adaptation (FSTT-DA). FSTT-DA utilizes a few unlabeled data samples for domain adaptation, providing a practical edge over instance-level methods. MetaDMoE (Zhong et al., 2022) separately trains a pool of domain-specific experts, a process that creates boundaries in knowledge transfer among source domains. MABN (Wu et al., 2024b) focuses on identifying and updating domain-specific parameters via a self-supervised auxiliary branch. It makes its effectiveness dependent on the auxiliary task. VDPG (Chi et al., 2024) harnesses the inherent OOD generalization capabilities of VFMs (Zhang et al., 2023) to create a domain prompt generator that aligns VFM features to specific domains, yet it is limited by a lack of dataset-specific knowledge. In contrast, our method directly learns from the input space, effectively integrating dataset-specific knowledge with the robust OOD capabilities of foundation models.
+
+Efficient tuning with side network. Recent trends favor employing a smaller, parallel side network over inserting learnable parameters into the main backbone. This approach has proven effective in dense prediction (Chen et al., 2022b; Xu et al., 2023) and recognition tasks (Fu et al., 2024; Wang et al., 2023; Sung et al., 2022). However, these methods typically require accessing or modifying the main backbone's intermediate features for efficient adaptation. Our proposed framework diverges by integrating a revert attention mechanism that learns dataset-specific knowledge, aiming to enhance the output of pre-trained foundation models without intervening in their internal processes.
+
+# 3 PRELIMINARIES
+
+Problem setting. In this study, we address Few-Shot Test-time Domain Adaptation (FSTT-DA) (Zhong et al., 2022; Wu et al., 2024b; Chi et al., 2024). In this setting, a model is trained on $N$ labeled source domains $\mathcal{D}_s = \{\mathcal{D}_s^n = (x_s, y_s)^n\}_{n=1}^N$ , and then is tested on $M$ target domains with only input images: $\mathcal{D}_t = \{\mathcal{D}_t^m = (x_t)^m\}_{m=1}^M$ . We assume distribution shifts occur between any source and target domain pairs and they share the same label space $\mathcal{Y}_s = \mathcal{Y}_t$ . At test-time, for each target domain $\mathcal{D}_t^m$ , a few-shot of unlabeled data $\mathbf{x}$ is used to adapt the model which is used for inference on $\mathcal{D}_t^m$ . This adaptation stage is source-free, as source data are not used post-training. Appendix B depicts the setting of FSTT-DA.
+
+Motivations. Foundation models like CLIP, trained on web-scale datasets (Oquab et al., 2023; Radford et al., 2021), have markedly improved downstream tasks (Cho et al., 2023b; Goyal et al., 2023). However, it remains a significant challenge to adapt these models to unseen domains using
+
+
+Figure 2: Training process of L2C on source domains. (Top) For a dataset, our greedy strategy selects text prompts with larger inter-dispersion which will be refined subsequently ( $\tilde{\mathbf{T}}^{gre}$ ). (Bottom) CPNet is proposed in parallel with CLIP image encoder to learn dataset-specific knowledge to complement the generalized knowledge in CLIP. To adapt to a domain, a few unlabeled data samples (support set $S$ ) are used to first generate a domain prompt $\mathbf{DP}$ via CPNet and domain cache. $\mathbf{DP}$ is then used to adapt all the data (query set $\mathcal{Q}$ with image feature: $\tilde{\mathbf{I}}(\mathbf{x}_{\mathcal{Q}}^{in})$ and text feature: $\tilde{\mathbf{T}}^{gre}$ ) in that domain via domain-aware fusion (DAF).
+
+minimal unlabeled data as in FSTT-DA. A key approach (VDPG) has been proposed to harness their inherent OOD generalization capabilities (Chi et al., 2024). This involves using domain-specific prompts based on a few data features to adapt CLIP's broad features to particular domains. Nevertheless, CLIP has not specifically seen the downstream datasets. The method of deriving domain-specific knowledge strictly from a generalized feature space has inherent limitations. Consequently, VDPG's reliance on CLIP's pre-trained knowledge restricts its performance. As shown in Fig. 1b and Table 1, using a weaker model like ViT-B/16 yields poor results on the challenging WILDS benchmarks. These shortcomings have motivated us to develop an efficient framework that learns directly from the input space. Our approach not only taps into dataset-specific knowledge including semantics and distribution/domain cues to complement generalized CLIP features, but also leverages text features to enrich label semantics, thus significantly enhancing adaptation capability.
+
+# 4 METHOD
+
+Overview. We aim to adapt both image and text features to unseen domains, as illustrated in Fig. 2. In Sec.4.1, we introduce CPNet to acquire dataset-specific knowledge, complementing CLIP's visual features. Sec.4.2 covers our greedy ensemble approach and lightweight refinement for enhancing text features. In Sec.4.3, we first demonstrate the generation of domain-specific prompts and then adapt the features using domain-aware fusion. Sec.4.4 outlines the training and inference process.
+
+# 4.1 LEARNING DATASET-SPECIFIC VISUAL KNOWLEDGE TO COMPLEMENT CLIP
+
+Parallel CPNet. Freezing CLIP is effective in retaining its OOD capability (Wortsman et al., 2022b). We propose an independent CPNet in parallel with the CLIP image encoder to learn dataset-specific knowledge to complement CLIP. We use boldface $\mathbf{x}$ to refer to a batch of images and use $x$ to indicate one image. Given an image $x\in \mathbb{R}^{1\times H\times W\times C}$ , it is first split into $l$ patches and encoded into embeddings with dimension $d$ . A class token [CLS] is pre-pended to form the input $(in)$ tokens as $x^{in}\in \mathbb{R}^{1\times (l + 1)\times d}$ . Let $\mathbf{I}$ represent the CLIP image encoder, we denote its output as $\mathbf{I}(x^{in})\in \mathbb{R}^{1\times (l + 1)\times d}$ . We impose minimal architectural constraints on CPNet but only match its output dimension with that of the CLIP encoder, thus we express CPNet as $\mathbf{CP}(x^{in})\in \mathbb{R}^{1\times (l + 1)\times d}$ .
+
+Given that CLIP has mastered extensive generalized knowledge, it is strategically beneficial for CPNet to only acquire necessary dataset-specific semantic and domain information not encompassed by CLIP. Consequently, we introduce a parameter-free Revert Attention (RT) mechanism (Chen et al., 2018) to specifically target the learning of CPNet. We employ the Scaled Dot-Product Attention method (Vaswani et al., 2017) to calculate the attention between their outputs and then compute its complement with respect to $\mathbf{1}$ . The resulting reverted attention map $\mathbf{A}$ is reapplied to $\mathbf{CP}(x^{in})$ using a dot product:
+
+$$
+\mathbf {C P} ^ {R T} \left(x ^ {i n}\right) = \mathbf {A} \cdot \mathbf {C P} \left(x ^ {i n}\right), \quad \text {w h e r e} \mathbf {A} = \mathbf {1} - \operatorname {s o f t m a x} \left(\mathbf {C P} \left(x ^ {i n}\right) \cdot \mathbf {I} \left(x ^ {i n}\right)\right), \tag {1}
+$$
+
+where $\cdot$ represents the dot-product. This approach ensures that CPNet is focused solely on learning information distinctive from CLIP, rendering efficiency and compactness (e.g., requiring only 3 transformer blocks to complement 12-layer ViT-B/16 on the DomainNet dataset). The dataset-specific information is added back to complement the CLIP visual feature: $\tilde{\mathbf{I}}(x^{in}) = \mathbf{I}(x^{in}) + \mathbf{C}\mathbf{P}^{RT}(x^{in})$ .
+
+# 4.2 ENHANCING THE LEARNING ON DATASET-SPECIFIC LABEL SEMANTICS
+
+For classification with CLIP, text features act as class prototypes, generated by pairing class names
+
+with a template (e.g., A photo of a [CLASS]). We freeze CLIP to leverage its OOD generalization, so the same set of text features is shared across domains. In Fig. 3, we calculate the average difference in image embeddings for two selected class pairs across 6 domains in DomainNet. The significant semantic variation, even within the same class pairs, highlights the need for domain-specific text features. Since CLIP relies on the unified space of text and image, we focus on adapting text features alongside image features.
+
+To facilitate the adaptation process, we propose reducing domain biases in the text features by increasing their discrimination (inter-dispersion). This ensures that text features remain neutral across all domains before adaptation. To achieve this, we introduce a greedy text ensemble strategy as a preprocessing step, selecting text templates that enhance
+
+
+Figure 3: Image embedding differences are calculated as 1 minus cosine similarity for the displayed classes and domains, highlighting that semantic variations differ notably across domains, which requires customized text features for each domain.
+
+inter-dispersion. Let $\mathbf{T}(\mathbf{P}_{\mathbf{C}})$ represent the text features from a prompt template $\mathrm{P}$ and class labels $\mathbf{C}$ using text encoder $\mathbf{T}$ . The inter-dispersion of text features is quantified by their uniformity in a hypersphere (Cho et al., 2023a; Wang & Isola, 2020), described as:
+
+$$
+\mathcal {L} _ {u n i} \left(\mathbf {T} \left(\mathrm {P} _ {\mathbf {C}}\right)\right) = \sum_ {i, j \in | \mathbf {C} |, i \neq j} \exp (- t \| \mathbf {T} _ {i} \left(\mathrm {P} _ {\mathbf {C}}\right) - \mathbf {T} _ {j} \left(\mathrm {P} _ {\mathbf {C}}\right) \| _ {2} ^ {2}), \tag {2}
+$$
+
+where $i, j$ represent $i^{th}$ or $j^{th}$ class, $t = 2$ by default. Assuming $P$ prompt templates, we sort them by increasing $\mathcal{L}_{uni}$ values: $\{\mathbf{T}(\mathbf{P}_{\mathbf{C}}^p)\}_{p=1}^P$ . We begin our ensemble with the most uniform embedding, $\mathbf{T}(\mathbf{P}_{\mathbf{C}}^1)$ , and incrementally add others. The $p^{th}$ prompt is retained in the ensemble list $\mathbf{E}$ if it reduces the overall uniformity metric:
+
+$$
+\mathcal {L} _ {u n i} \left(A v e \left(\left[ \mathbf {E}, \mathbf {T} \left(\mathbf {P} _ {\mathrm {C}} ^ {p}\right) \right]\right)\right) < \mathcal {L} _ {u n i} \left(A v e (\mathbf {E})\right). \tag {3}
+$$
+
+where $\text{Ave}$ represents averaging ensemble. After selecting prompts greedily, we ensemble $\mathbf{E}$ into $\mathbf{T}^{gre} \in \mathbb{R}^{|C| \times d}$ via averaging, a well-informed initialization that encapsulates CLIP's text knowledge. Pseudocode for the greedy ensemble is provided in Appendix E. In Appendix F.2, we show another alternative to quantify inter-dispersion. At this stage, the text encoder $\mathbf{T}$ can be discarded making the ensemble process effortless, occupying less than 0.01% of the total cost as in Appendix D.2. To further improve the inter-dispersion, we introduce a lightweight module to refine $\mathbf{T}^{gre}$ when training on the source data:
+
+$$
+\tilde {\mathbf {T}} ^ {g r e} = M _ {c} \mathbf {T} ^ {g r e} M _ {d} + \mathbf {T} ^ {g r e}, \tag {4}
+$$
+
+where $M_{c}\in \mathbb{R}^{|\mathbf{C}|\times |\mathbf{C}|}$ and $M_{d}\in \mathbb{R}^{d\times d}$ adjust along label and feature dimensions, respectively. Additionally, we apply the uniformity loss at the output as $\mathcal{L}_{uni}(\tilde{\mathbf{T}}^{gre})$ .
+
+# 4.3 ADAPTING TO A DOMAIN VIA DOMAIN-AWARE FUSION
+
+Domain prompt computation. We aim to compute a domain-specific prompt to adapt both image $(\tilde{\mathbf{I}}(x^{in}))$ and text $(\tilde{\mathbf{T}}^{gre})$ features towards unseen target domains. The source domain knowledge is critical in helping the computation of domain prompt (Chi et al., 2024). We follow the Cache-based learning methods (Zhang et al., 2022b; Zhu et al., 2023) to build a learnable key $(\mathbf{K} \in \mathbb{R}^{L \times d})$ - value $(\mathbf{V} \in \mathbb{R}^{L \times d})$ domain cache to store and query such learned source knowledge, where $L$ is the cache size. Given a batch of $b$ unlabeled images $\mathbf{x}$ from a domain in FSTT-DA, $\mathbf{K}$ is used to compute the similarity between that domain and the source domains, which will be used to query the source knowledge from $\mathbf{V}$ .
+
+To process $\mathbf{x}$ , we first transform it into an embedding $\mathbf{x}^e \in \mathbb{R}^{b \times l \times d}$ . VDPG directly feeds $\mathbf{x}^e$ into a transformer. Since the attention mechanism operates along the $l$ dimension, excluding the batch dimension $b$ , this results in separate attention for each image in $\mathbf{x}^e$ . This approach is non-intuitive, as domain knowledge should be instance-agnostic. Instead, we propose computing interrelations within the batch (Blattmann et al., 2023) using the dataset-specific CPNet. To achieve this, we reshape $\mathbf{x}^e$ by combining the first two dimensions into $\tilde{\mathbf{x}}^e \in \mathbb{R}^{1 \times (b \times l) \times d}$ . This allows the attention mechanism to operate along the $(b \times l)$ dimension, interleaving all the images in $\mathbf{x}$ .
+
+Analogous to classification, where a CLS token aggregates global information for an image, we prepend a learnable domain token $(\mathbb{D})$ so that all information in $\tilde{\mathbf{x}}^e$ is propagated to $\mathbb{D}$ through attention (Dosovitskiy et al., 2020). The prepended token $[\mathbb{D},\tilde{\mathbf{x}}^e ]$ is fed to CP. We then retrieve $\tilde{\mathbf{D}}$ from $\mathbf{CP}([\mathbb{D},\tilde{\mathbf{x}}^e ])$ to query the source domain information from $\mathbf{K - V}$ cache by computing their similarity as softmax $(\mathbf{K}\tilde{\mathbf{D}}^{T})\cdot \mathbf{V}$ . The domain prompt (DP) is the concatenation of the queried source knowledge and $\tilde{\mathbb{D}}$ which represents the domain-specific knowledge of that domain:
+
+$$
+\mathbf {D P} \in \mathbb {R} ^ {(L + 1) \times d} = \left[ \operatorname {s o f t m a x} \left(\mathbf {K} \tilde {\mathsf {D}} ^ {T}\right) \cdot \mathbf {V}, \tilde {\mathsf {D}} \right]. \tag {5}
+$$
+
+Domain-aware fusion. Once the domain prompt $\mathbf{D}\mathbf{P}$ is obtained by Eq. 5 with unlabeled data, we aim to adapt all the data $x^{in}$ in that domain. To this end, we propose cross-attentions among $\mathbf{D}\mathbf{P}$ , $\tilde{\mathbf{I}}(x^{in})$ and $\tilde{\mathbf{T}}^{gre}$ to progressively fuse them with a domain-aware fusion module: DAF(DP, $\tilde{\mathbf{I}}(x^{in})$ , $\tilde{\mathbf{T}}^{gre}$ ). Specifically, we first separately project $\tilde{\mathbf{I}}(x^{in})$ and $\tilde{\mathbf{T}}^{gre}$ into that domain by conditioning on $\mathbf{D}\mathbf{P}$ using cross-attention (CA) (Jaegle et al., 2021):
+
+$$
+\mathbf {D P} ^ {\mathbf {T}} = \mathbf {C A} (K = \tilde {\mathbf {T}} ^ {g r e}, V = \tilde {\mathbf {T}} ^ {g r e}, Q = \mathbf {D P}), \tag {6}
+$$
+
+$$
+\mathbf {D P} ^ {\mathbf {I}} = \mathbf {C A} (K = \tilde {\mathbf {I}} (x ^ {i n}), V = \tilde {\mathbf {I}} (x ^ {i n}), Q = \mathbf {D P}),
+$$
+
+Note, that we omit the $QKV$ weight matrices and the FFN layer for simplicity. Now, $\mathbf{D}\mathbf{P}^{\mathrm{T}}$ and $\mathbf{D}\mathbf{P}^{\mathrm{I}}$ contain their modality information in the same domain, we then cross fuse them into other modality:
+
+$$
+\mathbf {T} ^ {d m} = \mathbf {C A} (K = \mathbf {D P} ^ {\mathbf {T}}, V = \mathbf {D P} ^ {\mathbf {T}}, Q = \tilde {\mathbf {I}} (x ^ {i n})), \tag {7}
+$$
+
+$$
+\mathbf {I} ^ {d m} = \mathbf {C A} (K = \mathbf {D P} ^ {\mathbf {I}}, V = \mathbf {D P} ^ {\mathbf {I}}, Q = \tilde {\mathbf {T}} ^ {g r e}),
+$$
+
+where $dm$ represents domain. We then obtain their class token $I^{dm}$ from $\mathbf{I}^{dm}$ and its corresponding text feature $T^{dm}$ from $\mathbf{T}^{dm}$ as $[(I_1^{dm}, T_1^{dm}), \dots, (I_B^{dm}, T_B^{dm})]$ , where $B$ is the batch size. We finally follow the original CLIP loss (Goyal et al., 2023; Radford et al., 2021) on the adapted text and image features as:
+
+$$
+\mathcal {L} _ {c l i p} = \sum_ {i = 1} ^ {B} - \log \frac {\exp \left(\left(I _ {i} ^ {d m}\right) \cdot \left(T _ {i} ^ {d m}\right)\right)}{\sum_ {j = 1} ^ {B} \exp \left(\left(I _ {i} ^ {d m}\right) \cdot \left(T _ {j} ^ {d m}\right)\right)} + \sum_ {i = 1} ^ {B} - \log \frac {\exp \left(\left(I _ {i} ^ {d m}\right) \cdot \left(T _ {i} ^ {d m}\right)\right)}{\sum_ {j = 1} ^ {B} \exp \left(\left(I _ {j} ^ {d m}\right) \cdot \left(T _ {i} ^ {d m}\right)\right)}. \tag {8}
+$$
+
+The final loss is defined as: $\mathcal{L}_{total} = \mathcal{L}_{clip} + \lambda \mathcal{L}_{uni}(\tilde{\mathbf{T}}^{gre})$ , where $\lambda$ balances two losses.
+
+# 4.4 DOMAIN-CENTRIC LEARNING TO ADAPT
+
+Training on source domains. Our ultimate goal is to adapt to unseen target domains using only a few unlabeled data samples. It is essential to align the training objective directly with the evaluation protocol, embodying the system learning to adapt. Therefore, instead of uniformly sampling the data across domains, we follow VDPG to learn at the domain level and mimic the adaptation at test-time as in meta-learning (Finn et al., 2017; Chi et al., 2022; Gu et al., 2022).
+
+Algorithm 1 Domain-centric learning to adapt
+Require: $\mathbf{I} / \mathbf{T}$ : CLIP image/text encoders; $\{\mathrm{P}^p\}_{p = 1}^P$ $P$ text prompt templates; C: C classes with names; $\mathcal{D}_s$ : source domains; $\alpha$ : learning rate; CP: CPNet; K/V: K-V domain cache; DAF: domain-aware fusion module; $M_{c} / M_{d}$ : text refinement;
+1: //Greedy text feature ensemble
+2: $\{\mathbf{T}(\mathbf{P}_{\mathbf{C}}^{p})\}_{p = 1}^{P}$ $\triangleright$ Compute and sort text features for all text prompt templates
+3: Obtain $\mathbf{T}^{gre}$ via greedy ensemble using Eq. 3, then discard the text encoder.
+4: // Learning to complement CLIP and adapt to a particular domain
+5: for itr=1 to Max_iteration do
+6: $(\mathbf{x}_S),(\mathbf{x}_Q,\mathbf{y}_Q)\sim \mathcal{D}_s^n\triangleright$ Sample a source domain and support and query sets
+7: $\tilde{\mathbf{x}}_S^e\gets \mathbf{x}_S$ $\tilde{\mathbf{x}}_Q^n\gets \mathbf{x}_Q$ $\triangleright$ Form input embeddings
+8: $\tilde{\mathbb{D}}\gets \mathbf{CP}([\tilde{\mathbb{D}},\tilde{\mathbf{x}}_{\tilde{S}}^{e}])$ $\triangleright$ Aggregate domain information from support set
+9: $\mathbf{DP} = [\mathrm{softmax}(\mathbf{K}\tilde{\mathbb{D}}^T)\cdot \mathbf{V},\tilde{\mathbb{D}}]$ $\triangleright$ Form a domain prompt for domain $\mathcal{D}_s^n$
+10: $\tilde{\mathbf{I}} (\mathbf{x}_{\mathcal{Q}}^{in})\gets \mathbf{I}(\mathbf{x}_{\mathcal{Q}}^{in}) + \mathbf{C P}^{RT}(\mathbf{x}_{\mathcal{Q}}^{in})\triangleright$ Compute complemented visual feature
+11: $\tilde{\mathbf{T}}^{gre}\gets M_c\mathbf{T}^{gre}M_d + \mathbf{T}^{gre},$ $\triangleright$ Refine ensembled text feature
+12: $\tilde{\mathbf{T}}_{\mathcal{Q}}^{dm},\tilde{\mathbf{I}}_{\mathcal{Q}}^{dm}\gets \mathrm{DAF}(\mathbf{DP},\tilde{\mathbf{I}} (\mathbf{x}_{\mathcal{Q}}^{in}),\tilde{\mathbf{T}}^{gre})\triangleright$ Adapt query towards domain $\mathcal{D}_s^n$
+13: (CP, K/V, DAF, $M_1 / M_2)\gets (\mathbf{CP},\mathbf{K} / \mathbf{V},\mathrm{DAF},M_1 / M_2) - \alpha \nabla \mathcal{L}_{total}$
+14: end for
+
+Algo. 1 and Fig. 2 show our training scheme. For each dataset, the text process is only executed once to obtain the ensembled text feature (L2-3). The entire text encoder can be discarded before official training. For each iteration, we consider it as an adaptation task on a randomly sampled source domain $\mathcal{D}_s^n$ . Two disjoint support set $(\mathbf{x}_S)$ and query set $(\mathbf{x}_{\mathcal{Q}}, \mathbf{y}_{\mathcal{Q}})$ are sampled. $(\mathbf{x}_S)$ is used to generate the domain prompt (L8-9). Then the complemented visual feature is computed for $\mathbf{x}_{\mathcal{Q}}$ and adapted by the domain prompt (L10-12). The
+
+whole system is evaluated by the loss on the query set (L13).
+
+Adapting to unseen target domain at inference. After iterations of the adaptation task trained on source domains, L2C is ready to adapt to unseen domains. Algo.2 in Appendix C outlines the inference process, which consists of two phases: 1) For each target domain, a few unlabeled data samples are first drawn, and the domain prompt is obtained. Afterward, the K-V cache can be discarded. 2) The domain prompt is then used to adapt every data sample in that domain. Fig. 8a & 8b in Appendix C demonstrate the two phases.
+
+# 5 EXPERIMENTS
+
+Datasets and evaluation. We follow VDPG to evaluate on DomainNet (Peng et al., 2019), which comprises 569K images across 345 classes in 6 domains. We follow the official leave-one-domain-out protocol to train 6 models and report accuracy. We also evaluate on 4 WILDS (Koh et al., 2021) benchmarks, known for their real-world challenges and notably low CLIP zero-shot accuracy (Chi et al., 2024). This includes classification benchmarks such as iWildCam (Beery et al., 2021), Camelyon17 (Bandi et al., 2018), and FMoW (Christie et al., 2018). Although CLIP is primarily designed for classification, we also adapt our framework for regression (PovertyMap (Yeh et al., 2020)), detailed in Appendix F.3. Evaluation metrics include accuracy, Macro F1, worst-case accuracy, Pearson correlation (r), and its worst-case.
+
+Architecture and training details. We use official CLIP pre-trained ViT-B/16 and ViT-L/14 as the foundation models. Their feature dimensions $(d)$ are 768 and 1024 respectively. Therefore, our CPNet is stacked by regular transformer modules as in ViT with the same feature dimensions. The model is trained for 20 epochs with SGD using cosine decay with initial learning rates of $2.5e^{-3}$ and $1e^{-3}$ for WILDS and DomainNet. $\lambda$ is set to 0.1 to balance the losses. We use 16 images for adaptation at inference. Appendix G&H lists additional hyperparameters and the text prompts.
+
+# 5.1 MAIN RESULTS
+
+Evaluation on WILDS. The WILDS benchmarks reveal complex real-world domain shifts, like wild-camera setups, remote sensing, and medical imaging. It is characterized by significant data imbalances at domain and class levels. CLIP demonstrates notably low zero-shot accuracies in these scenarios. However, as Table 1 indicates, our method substantially exceeds previous approaches. It surpasses VDPG with improvements of 2.1 and 5.1 in Macro-F1 for iWildCam, and enhances WC Acc by $0.3\%$ and $3.1\%$ for FMoW with ViT-L/14 and ViT-B/16, respectively. ViT-B/16 shows notably weaker learning capabilities compared to ViT-L/14. Our method, which learns directly from the input space, effectively harnesses domain-specific and data-specific knowledge, thus outperforming VDPG, particularly in models with lower capacities (i.e., ViT-B/16) across diverse WILDS datasets.
+
+Evaluation on DomainNet. Table 2 presents the accuracy across various domains and their overall averages. Our approach significantly surpasses VDPG, in 4/6 and 5/6 domains with average accuracy
+
+Table 1: Evaluation on challenging WILDS image testbeds under OOD conditions. It reveals that our method excels in both classification and regression tasks, significantly outperforming SOTA methods. Notably, with a smaller network (ViT-B/16), our method surpasses VDPG due to independently learned data-specific knowledge. (*: results obtained using official code; †: main evaluation metrics in WILDS; ◆: 3/8 channels utilized in PovertyMap as in VDPG.)
+
+
Method
Backbone
iWildCam
Camelyon17
FMoW
PovertyMap (Regression)
Acc
Macro F1†
Acc†
WC Acc†
Avg Acc
WC Pearson r†
Pearson r
ERM
71.6 (2.5)
31.0 (1.3)
70.3 (6.4)
32.3 (1.25)
53.0 (0.55)
0.45 (0.06)
0.78 (0.04)
CORAL
73.3 (4.3)
32.8 (0.1)
59.5 (7.7)
31.7 (1.24)
50.5 (0.36)
0.44 (0.06)
0.78 (0.05)
IRM
59.8 (3.7)
15.1 (4.9)
64.2 (8.1)
30.0 (1.37)
50.8 (0.13)
0.43 (0.07)
0.77 (0.05)
ARM-CML
CNNs
70.5 (0.6)
28.6 (0.1)
84.2 (1.4)
27.2 (0.38)
45.7 (0.28)
0.37 (0.08)
0.75 (0.04)
ARM-BN
70.3 (2.4)
23.7 (2.7)
87.2 (0.9)
24.6 (0.04)
42.0 (0.21)
0.49 (0.21)
0.84 (0.05)
Meta-DMoE
77.2 (0.3)
34.0 (0.6)
91.4 (1.5)
35.4 (0.58)
52.5 (0.18)
0.51 (0.04)
0.80 (0.03)
MABN
78.4(0.6)
38.3(1.2)
92.4(1.9)
36.6(0.41)
53.2(0.52)
0.56 (0.05)
0.84 (0.04)
Zero-shot (ZS)
ViT-B/16
14.9
9.7
50.1
14.5
16.3
0.27
0.58
VDPG*
CLIP
71.4 (0.2)
30.1 (0.3)
93.2 (0.3)
37.8 (0.5)
52.7 (0.3)
0.38 (0.02)
0.77 (0.02)
L2C (ours)
73.4 (0.4)
35.2 (0.3)
94.2 (0.2)
40.9 (0.4)
54.8 (0.1)
0.50 (0.02)
0.80 (0.03)
Zero-shot (ZS)
28.7
1.0
64.2
13.3
21.1
0.35
0.62
FLYP
ViT-L/14
72.2 (0.4)
41.9 (0.3)
-
46.0 (0.3)
63.3 (0.4)
-
-
VDPG
CLIP
78.8 (0.2)
46.5 (0.3)
96.0 (0.4)
46.4 (0.5)
61.9 (0.4)
0.51 (0.03)
0.83 (0.04)
L2C (ours)
77.3 (0.1)
48.6 (0.4)
96.1 (0.3)
46.7 (0.3)
61.4 (0.3)
0.56 (0.02)
0.84 (0.03)
+
+Table 2: Evaluation on DomainNet. Our method surpasses SOTA, achieving top accuracy in 4/6 and 5/6 domains, with average gains of $+1.4\%$ and $+2.2\%$ using ViT-B/16 and ViT-L/14, respectively.
+
+
Method
Backbone
Clip
Info
Paint
Quick
Real
Sketch
Avg.
ERM
58.1 (0.3)
18.8 (0.3)
46.7 (0.3)
12.2 (0.4)
59.6 (0.1)
49.8 (0.4)
40.9
Mixup
55.7 (0.3)
18.5 (0.5)
44.3 (0.5)
12.5 (0.4)
55.8 (0.3)
48.2 (0.5)
39.2
CORAL
59.2 (0.1)
19.7 (0.2)
46.6 (0.3)
13.4 (0.4)
59.8 (0.2)
50.1 (0.6)
41.5
MTL
CNNs
57.9 (0.5)
18.5 (0.4)
46.0 (0.1)
12.5 (0.1)
59.5 (0.3)
49.2 (0.1)
40.6
SegNet
57.7 (0.3)
19.0 (0.2)
45.3 (0.3)
12.7 (0.5)
58.1 (0.5)
48.8 (0.2)
40.3
ARM
49.7 (0.3)
16.3 (0.5)
40.9 (1.1)
9.4 (0.1)
53.4 (0.4)
43.5 (0.4)
35.5
Meta-DMoE
63.5 (0.2)
21.4 (0.3)
51.3 (0.4)
14.3 (0.3)
62.3 (1.0)
52.4 (0.2)
44.2
MABN
64.2
23.6
51.5
15.2
64.6
54.1
45.5
DoPrompt
ViT-B/16 IMN
67.6 (0.2)
24.6 (0.1)
54.9 (0.1)
17.5 (0.2)
69.6 (0.3)
55.2 (0.5)
48.3
Zero-shot (ZS)
69.9
48.2
65.4
14.5
82.3
62.5
57.1
ERM
ViT-B/16 CLIP
68.0 (0.1)
22.5 (0.6)
46.5 (4.2)
18.5 (0.9)
58.7 (2.7)
52.5 (1.2)
44.4
MIRO
74.9 (0.2)
37.1 (0.4)
59.8 (0.6)
18.7 (1.2)
72.2 (0.2)
61.2 (0.9)
54.0
VDPG
76.3 (0.2)
49.3 (0.1)
67.8 (0.1)
17.4 (0.2)
81.5 (0.3)
66.6 (0.2)
59.8
L2C (ours)
75.6 (0.1)
52.1 (0.1)
69.4 (0.1)
17.3 (0.2)
85.5 (0.1)
67.1 (0.2)
61.2
Zero-shot (ZS)
ViT-L/14 CLIP
78.1
54.0
71.6
21.8
86.0
71.2
63.8
VDPG
82.4
54.9
73.1
22.7
85.0
73.2
65.2
L2C (ours)
82.3
58.7
75.2
24.0
88.6
75.4
67.4
+
+improvements of +1.4 and +2.2 using ViT-B/16 and ViT-L/14, respectively. These improvements underscore the benefits of directly learning dataset-specific knowledge. In Appendix F.1, we further compare with prompt-based methods: CoOp (Zhou et al., 2022b), CoCoOp (Zhou et al., 2022a) and side branch-based DTL (Fu et al., 2024)
+
+# 5.2 ABLATION STUDIES
+
+We conduct ablation studies on DomainNet-Info, iWildcam and FMoW using CLIP ViT-B/16 on various components, including CPNet, Revert Attention (RT), text refinement (Text ref.), greedy ensemble (Greedy), uniformity loss $(\mathcal{L}_{uni})$ , DAF module and training schemes in Table 3. Note, if DAF is not incorporated, the domain branch is also omitted, which will be discussed in Table 4.
+
+CPNet and revert attention. As highlighted in Index 1 vs. 2 of Table 3, incorporating CPNet alongside a frozen CLIP markedly enhances performance across all datasets. On particularly challenging iWildCam and FMoW, there is exceptionally low zero-shot performance. However, effective learning of dataset-specific knowledge from the input space results in substantial performance gains, specifically, +13.1 on F1 for iWildCam and 13.8% WC Acc for FMoW. Additionally, integrating reverted attention directs CPNet to assimilate knowledge overlooked by CLIP, sharpening its focus on essential dataset-specific insights. This strategy leads to further enhancements (Index 4 vs. 5).
+
+Table 3: Ablation on various components of our work on DomainNet-Info, iWildCam and FMoW.
+
+
Index
CPNet
Text ref.
Greedy
Luni
DAF
Training
Info
iWildCam
FMoW
Acc
Acc
F1
WC Acc
Acc
1 (ZS)
-
-
-
-
-
-
48.2
14.9
9.7
14.5
16.3
2
✓
-
-
-
-
ERM
49.6
65.8
22.8
28.3
49.0
3
✓
✓
-
-
-
ERM
50.3
68.7
24.0
31.4
50.9
4
✓
✓
✓
-
-
ERM
51.0
69.1
26.9
33.3
51.6
5
RT
✓
✓
-
-
ERM
51.5
71.5
32.9
36.1
53.1
6
RT
✓
✓
✓
-
ERM
51.7
72.2
33.2
36.0
53.8
7
RT
✓
✓
✓
✓
ERM
51.5
71.9
32.8
36.0
52.8
8
RT
✓
✓
✓
✓
Domain-centric
52.1
73.4
35.2
40.9
54.8
+
+
+Figure 4: Analysis on a different number of transformer layers of CPNet.
+
+
+
+
+
+
+
+
+
+Text refinement and greedy ensemble. Text features from frozen CLIP serve as initialization and refining them as per Eq. 4 proves beneficial for subsequent adaptation (Index 2 VS. 3). Since text features act as class prototypes, enhancing class discrimination is crucial. The goal is to make these features more discriminative by increasing the inter-dispersion among them, reducing domain biases. This results in more neutral features for unseen target domains. Therefore, using our greedy ensemble (Index 3 VS. 4) and enforcing the uniformity loss (Index 5 VS. 6) leads to positive gains. Appendix F.4 provides visualization using t-SNE (Van der Maaten & Hinton, 2008), and Appendix F.6 reports sensitivity on $\lambda$ .
+
+Domain-aware adaptation and fusion (DAF). The text and image features $\tilde{\mathbf{I}}(x^{in})$ and $\tilde{\mathbf{T}}^{gre}$ are not inherently tailored to a specific domain. By integrating a domain-aware fusion model, both features are adapted to that domain, facilitating the fusion of text and image modalities within that domain. Hence, Index 8 demonstrates substantial improvement over domain-agnostic predictions (Index 6).
+
+Training schemes. ERM samples batches uniformly without considering domain labels, misaligning it with the protocol of adapting to a specific domain using limited unlabeled data. In contrast, our domain-centric learning to adapt optimizes at the domain level, treating each iteration as a task of FSTT-DA. Thus, a domain-centric approach yields further improvements (Index 7 VS. 8).
+
+Effect on number of transformer layers of CPNet. Fig. 4 illustrates the effect of the number of transformer layers in CPNet. Different downstream datasets require varying learning capacities depending on their complexity. For instance, while DomainNet is more stable, the more challenging remote sensing scenario in FMoW requires additional learnable blocks to achieve reasonable performance (Wang et al., 2022). Nevertheless, even with just 1 layer in CPNet, substantial gains have been observed over zero-shot performance, thanks to the complement of dataset-specific knowledge.
+
+Analysis on domain prompt DP. Our domain prompt DP aims to adapt the domain-agnostic features $\tilde{\mathbf{I}}(x^{in})$ and $\tilde{\mathbf{T}}^{gre}$ towards a particular domain. It consists of two components: knowledge queried from K-V cache, representing source domain knowledge and current domain knowledge $\tilde{\mathbf{D}}$ aggregated from its unlabeled data. We omit some parts of DP, as reported in Table 4, equipping with both domain knowledge is essential to better adapt the features towards a domain.
+
+Analysis on domain information aggregation. VDPG independently processes all the unlabeled data and then aggregates their domain information via averaging. However, we perform simple reshaping and allow the attention to be performed on every pair of the tokens in that data batch which
+
+Table 4: Ablation on domain prompt. Table 5: Ablation on domain information aggregation.
+
+
Domain prompt
iWildCam
FMoW
Aggregation
iWildCam
FMoW
Acc
F1
WC Acc
Acc
Acc
F1
WC Acc
Acc
K-V cache only
73.0
34.1
37.8
50.6
Mean
73.2
34.4
37.8
52.8
D only
71.3
32.1
35.4
50.4
Max
71.9
34.5
36.7
52.6
DP
73.4
35.2
40.9
54.8
Reshape → D
73.4
35.2
40.9
54.8
+
+
+Figure 5: Correlation between every pair of $\mathbf{V}$ -vectors in $\mathbf{K} - \mathbf{V}$ domain cache.
+
+has shown superiority as reported in Table 5. For Mean and Max, we do not reshape the tensor but take the mean or max over the batch dimension.
+
+Analysis on K-V domain cache. $L$ is the size of the domain cache as the number of learnable vectors. Ideally, each can condense the distinct domain specificity from the source domains. Such property is exhibited by computing the correlations between every pair of the V-vectors, as illustrated in Fig. 5. Please note, that we did not apply external constraints on the cache (e.g., correlation loss (Chi et al., 2024)). Appendix F.5 reports the sensitivity on the size of the cache.
+
+Additional analysis on greedy ensemble and text feature uniformity. Table 6 reports the comparison between the average ensemble (CLIP) and our greedy approach using ViT-B/16 while holding off other components the same. Greater gains on more challenging WILDS benchmarks are observed compared to more structured common objects as in DomainNet. Fig. 6. illustrate that a lower uniformity among text features is potentially beneficial for the final performance.
+
+
Ensemble method
DomainNet (Acc.)
iWildCam (F1)
FMoW (WC Acc)
Ensemble (CLIP)
60.9
33.6
40.1
Greedy ensemble
61.2
35.2
40.9
+
+Table 6: Comparison between average ensemble (CLIP) and our greedy approach using ViT-B/16. The greedy ensemble improves across benchmarks. However, DomainNet contains more structured, common objects. Greater gains on more challenging WILDS benchmarks are observed.
+
+
+Figure 6: Final accuracy VS. text uniformity on DomainNet with ViT-B/16.
+
+# 6 CONLUSION
+
+In this work, we introduce L2C to address FSTT-DA. L2C adapts a model trained on source domains to unseen target domains using just a few unlabeled data points. Our method builds on the inherent OOD capability of CLIP, complementing it with a parallel network that learns data-specific knowledge at the input space through revert attention. Additionally, we propose a greedy text feature ensemble to effectively integrate data-specific label semantics. To facilitate domain adaptation, we generate a domain prompt that guides the integration of enhanced text and visual features through domain-aware fusion. Our extensive experiments validate L2C's effectiveness, showcasing its superior performance across five large-scale benchmarks in DomainNet and WILDS.
+
+# REPRODUCIBILITY STATEMENT
+
+For a fair comparison, we use the VDPG codebase, with data processing following the official WILDS code. The pre-trained CLIP models are directly sourced from the OpenAI CLIP repository. Sample code for the greedy ensemble is provided in Appendix E. Other components, such as CPNet, DAF, text refinement, and K-V cache, utilize standard PyTorch functions. Pre-trained models and the full code will be released upon publication of the paper.
+
+# REFERENCES
+
+Sk Miraj Ahmed, Dripta S Raychaudhuri, Sujoy Paul, Samet Oymak, and Amit K Roy-Chowdhury. Unsupervised multi-source domain adaptation without access to source data. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, 2021.
+Qiyuan An, Ruijiang Li, Lin Gu, Hao Zhang, Qingyu Chen, Zhiyong Lu, Fei Wang, and Yingying Zhu. A privacy-preserving unsupervised domain adaptation framework for clinical text analysis. arXiv preprint arXiv:2201.07317, 2022.
+Peter Bandi, Oscar Geessink, Quirine Manson, Marcory Van Dijk, Maschenka Balkenhol, Meyke Hermsen, Babak Ehteshami Bejnordi, Byungjae Lee, Kyunghyun Paeng, Aoxiao Zhong, et al. From detection of individual metastases to classification of lymph node status at the patient level: the camelyon17 challenge. IEEE Transactions on Medical Imaging, 38(2):550-560, 2018.
+Sara Beery, Arushi Agarwal, Elijah Cole, and Vighnesh Birodkar. The iwildcam 2021 competition dataset. arXiv preprint arXiv:2105.03494, 2021.
+Andreas Blattmann, Robin Rombach, Huan Ling, Tim Dockhorn, Seung Wook Kim, Sanja Fidler, and Karsten Kreis. Align your latents: High-resolution video synthesis with latent diffusion models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2023.
+Dian Chen, Dequan Wang, Trevor Darrell, and Sayna Ebrahimi. Contrastive test-time adaptation. In IEEE Conference on Computer Vision and Pattern Recognition, 2022a.
+Shuhan Chen, Xiuli Tan, Ben Wang, and Xuelong Hu. Reverse attention for salient object detection. In Proceedings of the European conference on computer vision (ECCV), 2018.
+Zhe Chen, Yuchen Duan, Wenhai Wang, Junjun He, Tong Lu, Jifeng Dai, and Yu Qiao. Vision transformer adapter for dense predictions. arXiv preprint arXiv:2205.08534, 2022b.
+Zhixiang Chi, Xiaolin Wu, Xiao Shu, and Jinjin Gu. Single image reflection removal using deep encoder-decoder network. arXiv preprint arXiv:1802.00094, 2018.
+Zhixiang Chi, Yang Wang, Yuanhao Yu, and Jin Tang. Test-time fast adaptation for dynamic scene deblurring via meta-auxiliary learning. In Conference on computer vision and pattern recognition, 2021.
+Zhixiang Chi, Li Gu, Huan Liu, Yang Wang, Yuanhao Yu, and Jin Tang. Metaceil: A meta-learning approach for few-shot class incremental learning. In Conference on computer vision and pattern recognition, 2022.
+Zhixiang Chi, Li Gu, Tao Zhong, Huan Liu, Yuanhao Yu, Konstantinos N Plataniotis, and Yang Wang. Adapting to distribution shift by visual domain prompt generation. In Proceedings of the Twelfth International Conference on Learning Representations, 2024.
+Eulrang Cho, Jooyeon Kim, and Hyunwoo J Kim. Distribution-aware prompt tuning for vision-language models. In Proceedings of the IEEE/CVF International Conference on Computer Vision, 2023a.
+Junhyeong Cho, Gilhyun Nam, Sungyeon Kim, Hunmin Yang, and Suha Kwak. Promptstyler: Prompt-driven style generation for source-free domain generalization. In Proceedings of the IEEE/CVF International Conference on Computer Vision, 2023b.
+
+Gordon Christie, Neil Fendley, James Wilson, and Ryan Mukherjee. Functional map of the world. In IEEE Conference on Computer Vision and Pattern Recognition, 2018.
+Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In 2009 IEEE conference on computer vision and pattern recognition, 2009.
+Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, et al. An image is worth 16x16 words: Transformers for image recognition at scale. In International Conference on Learning Representations, 2020.
+Mohammad Fahes, Tuan-Hung Vu, Andrei Bursuc, Patrick Pérez, and Raoul De Charette. Poda: Prompt-driven zero-shot domain adaptation. In Proceedings of the IEEE/CVF International Conference on Computer Vision, 2023.
+Chelsea Finn, Pieter Abbeel, and Sergey Levine. Model-agnostic meta-learning for fast adaptation of deep networks. In International Conference on Machine Learning, 2017.
+Minghao Fu, Ke Zhu, and Jianxin Wu. Dtl: Disentangled transfer learning for visual recognition. In Proceedings of the AAAI Conference on Artificial Intelligence, 2024.
+Yuqian Fu, Yu Xie, Yanwei Fu, and Yu-Gang Jiang. Styleadv: Meta style adversarial training for cross-domain few-shot learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2023.
+Yulu Gan, Yan Bai, Yihang Lou, Xianzheng Ma, Renrui Zhang, Nian Shi, and Lin Luo. Decorate the newcomers: Visual domain prompt for continual test time adaptation. In AAAI Conference on Artificial Intelligence, 2023.
+Taesik Gong, Jongheon Jeong, Taewon Kim, Yewon Kim, Jinwoo Shin, and Sung-Ju Lee. Note: Robust continual test-time adaptation against temporal correlation. NeurIPS, 2022.
+Sachin Goyal, Ananya Kumar, Sankalp Garg, Zico Kolter, and Aditi Raghunathan. Finetune like you pretrain: Improved finetuning of zero-shot vision models. In IEEE Conference on Computer Vision and Pattern Recognition, 2023.
+Li Gu, Zhixiang Chi, Huan Liu, Yuanhao Yu, and Yang Wang. Improving protonet for few-shot video object recognition: Winner of orbit challenge 2022. arXiv preprint arXiv:2210.00174, 2022.
+Ishaan Gulrajani and David Lopez-Paz. In search of lost domain generalization. arXiv preprint arXiv:2007.01434, 2020.
+Yunhui Guo, Noel C Codella, Leonid Karlinsky, James V Codella, John R Smith, Kate Saenko, Tajana Rosing, and Rogerio Feris. A broader study of cross-domain few-shot learning. In Computer Vision-ECCV 2020: 16th European Conference, Glasgow, UK, August 23-28, 2020, Proceedings, Part XXVII 16, 2020.
+Shayan Mohajer Hamidi, Xizhen Deng, Renhao Tan, Linfeng Ye, and Ahmed Hussein Salamah. How to train the teacher model for effective knowledge distillation. In European Conference on Computer Vision, 2024.
+Cheng Han, Qifan Wang, Yiming Cui, Zhiwen Cao, Wenguan Wang, Siyuan Qi, and Dongfang Liu. E^2vpt: An effective and efficient approach for visual prompt tuning. arXiv preprint arXiv:2307.13770, 2023.
+Andrew Jaegle, Felix Gimeno, Andy Brock, Oriol Vinyals, Andrew Zisserman, and Joao Carreira. Perceiver: General perception with iterative attention. In International Conference on Machine Learning, 2021.
+Pang Wei Koh, Shiori Sagawa, Henrik Marklund, Sang Michael Xie, Marvin Zhang, Akshay Bal-subramani, Weihua Hu, Michihiro Yasunaga, Richard Lanas Phillips, Irena Gao, et al. Wilds: A benchmark of in-the-wild distribution shifts. In International Conference on Machine Learning, 2021.
+
+Ya Li, Xinmei Tian, Mingming Gong, Yajing Liu, Tongliang Liu, Kun Zhang, and Dacheng Tao. Deep domain generalization via conditional invariant adversarial networks. In European Conference on Computer Vision, 2018.
+Hanwen Liang, Niamul Quader, Zhixiang Chi, Lizhe Chen, Peng Dai, Juwei Lu, and Yang Wang. Self-supervised spatiotemporal representation learning by exploiting video continuity. In Proceedings of the AAAI conference on artificial intelligence, 2022.
+Huan Liu, Li Gu, Zhixiang Chi, Yang Wang, Yuanhao Yu, Jun Chen, and Jin Tang. Few-shot class-incremental learning via entropy-regularized data-free replay. In European Conference on Computer Vision, 2022a.
+Huan Liu, Zijun Wu, Liangyan Li, Sadaf Salehkalaibar, Jun Chen, and Keyan Wang. Towards multi-domain single image dehazing via test-time training. In Conference on computer vision and pattern recognition, 2022b.
+Huan Liu, Zhixiang Chi, Yuanhao Yu, Yang Wang, Jun Chen, and Jin Tang. Meta-auxiliary learning for future depth prediction in videos. In Winter Conference on Applications of Computer Vision, 2023.
+Mingsheng Long, Zhangjie Cao, Jianmin Wang, and Michael I Jordan. Conditional adversarial domain adaptation. Advances in Neural Information Processing Systems, 2018.
+Fangrui Lv, Jian Liang, Shuang Li, Bin Zang, Chi Harold Liu, Ziteng Wang, and Di Liu. Causality inspired representation learning for domain generalization. In IEEE Conference on Computer Vision and Pattern Recognition, 2022.
+Robert A Marsden, Mario Döbler, and Bin Yang. Introducing intermediate domains for effective self-training during test-time. arXiv preprint arXiv:2208.07736, 2022.
+Robert A Marsden, Mario Döbler, and Bin Yang. Universal test-time adaptation through weight ensembling, diversity weighting, and prior correction. arXiv preprint arXiv:2306.00650, 2023.
+Shuaicheng Niu, Jiaxiang Wu, Yifan Zhang, Yafo Chen, Shijian Zheng, Peilin Zhao, and Mingkui Tan. Efficient test-time model adaptation without forgetting. In ICML, 2022.
+Maxime Oquab, Timothee Darcet, Theo Moutakanni, Huy Vo, Marc Szafraniec, Vasil Khalidov, Pierre Fernandez, Daniel Haziza, Francisco Massa, Alaaeldin El-Nouby, et al. Dinov2: Learning robust visual features without supervision. arXiv preprint arXiv:2304.07193, 2023.
+Zhongyi Pei, Zhangjie Cao, Mingsheng Long, and Jianmin Wang. Multi-adversarial domain adaptation. In AAAI Conference on Artificial Intelligence, 2018.
+Xingchao Peng, Qinxun Bai, Xide Xia, Zijun Huang, Kate Saenko, and Bo Wang. Moment matching for multi-source domain adaptation. In IEEE International Conference on Computer Vision, 2019.
+Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, et al. Learning transferable visual models from natural language supervision. In International Conference on Machine Learning, 2021.
+Manli Shu, Weili Nie, De-An Huang, Zhiding Yu, Tom Goldstein, Anima Anandkumar, and Chaowei Xiao. Test-time prompt tuning for zero-shot generalization in vision-language models. In Advances in Neural Information Processing Systems, 2022.
+Yongyi Su, Xun Xu, and Kui Jia. Revisiting realistic test-time training: Sequential inference and adaptation by anchored clustering. In S. Koyejo, S. Mohamed, A. Agarwal, D. Belgrave, K. Cho, and A. Oh (eds.), Advances in Neural Information Processing Systems, 2022.
+Yongyi Su, Yushu Li, Nanqing Liu, Kui Jia, Xulei Yang, Chuan-Sheng Foo, and Xun Xu. On the adversarial risk of test time adaptation: An investigation into realistic test-time data poisoning, 2024a.
+
+Yongyi Su, Xun Xu, and Kui Jia. Towards real-world test-time adaptation: Tri-net self-training with balanced normalization. Proceedings of the AAAI Conference on Artificial Intelligence, 2024b.
+Yongyi Su, Xun Xu, Tianrui Li, and Kui Jia. Revisiting realistic test-time training: Sequential inference and adaptation by anchored clustering regularized self-training. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2024c.
+Yu Sun, Xiaolong Wang, Zhuang Liu, John Miller, Alexei Efros, and Moritz Hardt. Test-time training with self-supervision for generalization under distribution shifts. In International Conference on Machine Learning, 2020.
+Yi-Lin Sung, Jaemin Cho, and Mohit Bansal. Lst: Ladder side-tuning for parameter and memory efficient transfer learning. Advances in Neural Information Processing Systems, 2022.
+Rohan Taori, Achal Dave, Vaishaal Shankar, Nicholas Carlini, Benjamin Recht, and Ludwig Schmidt. Measuring robustness to natural distribution shifts in image classification. Advances in Neural Information Processing Systems, 2020.
+Laurens Van der Maaten and Geoffrey Hinton. Visualizing data using t-sne. Journal of Machine Learning Research, 9(11), 2008.
+Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in neural information processing systems, 2017.
+Dequan Wang, Evan Shelhamer, Shaoteng Liu, Bruno Olshausen, and Trevor Darrell. Tent: Fully test-time adaptation by entropy minimization. In International Conference on Learning Representations, 2021.
+Di Wang, Jing Zhang, Bo Du, Gui-Song Xia, and Dacheng Tao. An empirical study of remote sensing pretraining. IEEE Transactions on Geoscience and Remote Sensing, 2022.
+Haoqing Wang and Zhi-Hong Deng. Cross-domain few-shot classification via adversarial task augmentation. arXiv preprint arXiv:2104.14385, 2021.
+Tongzhou Wang and Phillip Isola. Understanding contrastive representation learning through alignment and uniformity on the hypersphere. In International conference on machine learning, 2020.
+Yaoming Wang, Jin Li, XIAOPENG ZHANG, Bowen Shi, Chenglin Li, Wenrui Dai, Hongkai Xiong, and Qi Tian. Barleria: An efficient tuning framework for referring image segmentation. In The Twelfth International Conference on Learning Representations, 2023.
+Ziqiang Wang, Zhixiang Chi, Yanan Wu, Li Gu, Zhi Liu, Konstantinos Plataniotis, and Yang Wang. Distribution alignment for fully test-time adaptation with dynamic online data streams. In European Conference on Computer Vision, 2024.
+Mitchell Wortsman, Gabriel Ilharco, Samir Ya Gadre, Rebecca Roelofs, Raphael Gontijo-Lopes, Ari S Morcos, Hongseok Namkoong, Ali Farhadi, Yair Carmon, Simon Kornblith, et al. Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference time. In International Conference on Machine Learning, 2022a.
+Mitchell Wortsman, Gabriel Ilharco, Jong Wook Kim, Mike Li, Simon Kornblith, Rebecca Roelofs, Raphael Gontijo Lopes, Hannaneh Hajishirzi, Ali Farhadi, Hongseok Namkoong, and Ludwig Schmidt. Robust fine-tuning of zero-shot models. In IEEE Conference on Computer Vision and Pattern Recognition, 2022b.
+Jiamin Wu, Tianzhu Zhang, and Yongdong Zhang. Hybridprompt: Domain-aware prompting for cross-domain few-shot learning. International Journal of Computer Vision, 2024a.
+Yanan Wu, Zhixiang Chi, Yang Wang, and Songhe Feng. Metagcd: Learning to continually learn in generalized category discovery. In International Conference on Computer Vision, 2023.
+Yanan Wu, Zhixiang Chi, Yang Wang, Konstantinos N Plataniotis, and Songhe Feng. Test-time domain adaptation by learning domain-aware batch normalization. In AAAI Conference on Artificial Intelligence, 2024b.
+
+Mengde Xu, Zheng Zhang, Fangyun Wei, Han Hu, and Xiang Bai. Side adapter network for open-vocabulary semantic segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2023.
+En-hui Yang and Linfeng Ye. Markov knowledge distillation: make nasty teachers trained by self-undermining knowledge distillation fully distillable. In European Conference on Computer Vision, 2024.
+En-Hui Yang, Shayan Mohajer Hamidi, Linfeng Ye, Renhao Tan, and Beverly Yang. Conditional mutual information constrained deep learning for classification. arXiv preprint arXiv:2309.09123, 2023.
+En-Hui Yang, Shayan Mohajer Hamidi, Linfeng Ye, Renhao Tan, and Beverly Yang. Conditional mutual information constrained deep learning: Framework and preliminary results. In 2024 IEEE International Symposium on Information Theory (ISIT), 2024a.
+Senqiao Yang, Zhuotao Tian, Li Jiang, and Jiaya Jia. Unified language-driven zero-shot domain adaptation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2024b.
+Linfeng Ye, Shayan Mohajer Hamidi, Renhao Tan, and EN-HUI YANG. Bayes conditional distribution estimation for knowledge distillation based on conditional mutual information. In The Twelfth International Conference on Learning Representations, 2024.
+Christopher Yeh, Anthony Perez, Anne Driscoll, George Azzari, Zhongyi Tang, David Lobell, Stefano Ermon, and Marshall Burke. Using publicly available satellite imagery and deep learning to understand economic well-being in africa. Nature communications, 11(1):2583, 2020.
+Dongshuo Yin, Xueting Han, Bin Li, Hao Feng, and Jing Bai. Parameter-efficient is not sufficient: Exploring parameter, memory, and time efficient adapter tuning for dense predictions. arXiv preprint arXiv:2306.09729, 2023.
+Hee Suk Yoon, Eunseop Yoon, Joshua Tian Jin Tee, Mark Hasegawa-Johnson, Yingzhen Li, and Chang D Yoo. C-tpt: Calibrated test-time prompt tuning for vision-language models via text feature dispersion. arXiv preprint arXiv:2403.14119, 2024.
+Longhui Yuan, Binhui Xie, and Shuang Li. Robust test-time adaptation in dynamic scenarios. In CVPR, 2023.
+Marvin Zhang, Henrik Marklund, Nikita Dhawan, Abhishek Gupta, Sergey Levine, and Chelsea Finn. Adaptive risk minimization: Learning to adapt to domain shift. In Advances in Neural Information Processing Systems, 2021a.
+Marvin Zhang, Sergey Levine, and Chelsea Finn. Memo: Test time robustness via adaptation and augmentation. In NeurIPS, pp. 38629-38642, 2022a.
+Renrui Zhang, Wei Zhang, Rongyao Fang, Peng Gao, Kunchang Li, Jifeng Dai, Yu Qiao, and Hongsheng Li. Tip-adapter: Training-free adaption of clip for few-shot classification. In European conference on computer vision, 2022b.
+Xin Zhang, Shixiang Shane Gu, Yutaka Matsuo, and Yusuke Iwasawa. Domain prompt learning for efficiently adapting clip to unseen domains. arXiv preprint arXiv:2111.12853, 2021b.
+Xin Zhang, Shixiang Shane Gu, Yutaka Matsuo, and Yusuke Iwasawa. Domain prompt learning for efficiently adapting clip to unseen domains. Transactions of the Japanese Society for Artificial Intelligence, 2023.
+Yang Zhang, Songhe Feng, and Jiazheng Yuan. Continual compositional zero-shot learning. In Proceedings of the Thirty-Third International Joint Conference on Artificial Intelligence, 2024.
+Youshan Zhang. A survey of unsupervised domain adaptation for visual recognition. arXiv preprint arXiv:2112.06745, 2021.
+
+Bowen Zhao, Chen Chen, and Shu-Tao Xia. Delta: Degradation-free fully test-time adaptation. In ICLR, 2023.
+Tao Zhong, Zhixiang Chi, Li Gu, Yang Wang, Yuanhao Yu, and Jin Tang. Meta-dmoe: Adapting to domain shift by meta-distillation from mixture-of-experts. In Advances in Neural Information Processing Systems, 2022.
+Kaiyang Zhou, Yongxin Yang, Timothy Hospedales, and Tao Xiang. Learning to generate novel domains for domain generalization. In European Conference on Computer Vision, 2020.
+Kaiyang Zhou, Jingkang Yang, Chen Change Loy, and Ziwei Liu. Conditional prompt learning for vision-language models. In IEEE Conference on Computer Vision and Pattern Recognition, 2022a.
+Kaiyang Zhou, Jingkang Yang, Chen Change Loy, and Ziwei Liu. Learning to prompt for vision-language models. International Journal of Computer Vision, 2022b.
+Xiangyang Zhu, Renrui Zhang, Bowei He, Aojun Zhou, Dong Wang, Bin Zhao, and Peng Gao. Not all features matter: Enhancing few-shot clip with adaptive prior refinement. In Proceedings of the IEEE/CVF International Conference on Computer Vision, 2023.
+
+# APPENDIX
+
+# A LIMITATION
+
+Our method enhances the generalized knowledge of robust CLIP, which serve as the primary contributor. However, when the downstream dataset significantly diverges from the pre-training, the load on our CPNet increases, necessitating a larger network. Despite this, our approach focuses on acquiring the excluded knowledge directly from the input space. Consequently, the trade-off between computational demand and performance is more favourable compared to previous methods (VDPG).
+
+# B ILLUSTRATION FOR FSTT-DA SETTING
+
+
+Figure 7: Illustration of FSTT-DA setting. After training on the source domains, the model adapts to each of the target domains using a few unlabeled data samples. Each target domain has a tailored model which will be used to infer all of the data in that domain.
+
+# C INFERENCE PROCESS (ADAPTING TO A TARGET DOMAIN)
+
+```latex
+Algorithm 2 Inference: adapting to an unseen target domain
+Require: I: CLIP image encoder; $\mathcal{D}_t^m$ : an unseen target domain; CP: CPNet; K/V: K-V domain cache; DAF: domain-aware fusion module; $\tilde{\mathbf{T}}^{gre}$ : trained text feature;
+1: // Compute the domain prompt
+2: $(\mathbf{x}_{S}) \sim \mathcal{D}_{t}^{m}$ ▷ Sample a few unlabeled data samples from the target domain
+3: $\tilde{\mathbf{x}}_{S}^{e} \gets \mathbf{x}_{S}$ ▷ Form input embeddings
+4: $\tilde{\mathbf{D}} \gets \mathbf{CP}([\mathbb{D}, \tilde{\mathbf{x}}_{S}^{e}])$ ▷ Aggregate domain information from unlabeled data
+5: $\mathbf{DP} = [\text{softmax}(\mathbf{K}\tilde{\mathbf{D}}^T) \cdot \mathbf{V}, \tilde{\mathbf{D}}]$ ▷ Compute the domain prompt for domain $\mathcal{D}_t^m$
+6: Discard K-V domain cache
+7: //Adapting every data in the target domain
+8: for every image $\mathbf{x}_{Q}$ in $\mathcal{D}_t^m$ do
+9: $\mathbf{x}_{Q}^{in} \gets \mathbf{x}_{Q}$ ▷ Form input embeddings
+10: $\tilde{\mathbf{I}}(\mathbf{x}_{Q}^{in}) \gets \mathbf{I}(\mathbf{x}_{Q}^{in}) + \mathbf{CP}^{RT}(\mathbf{x}_{Q}^{in})$ ▷ Compute complemented visual feature
+11: $\mathbf{T}_{Q}^{dm}$ , $\mathbf{I}_{Q}^{dm} \gets \text{DAF}(\mathbf{DP}, \tilde{\mathbf{I}}(\mathbf{x}_{Q}^{in}), \tilde{\mathbf{T}}^{gre})$ ▷ Adapt the image $\mathbf{x}_{Q}$ towards domain $\mathcal{D}_t^m$
+12: Logits=Cosine_similarity( $\mathbf{T}_{Q}^{dm}$ , $\mathbf{I}_{Q}^{dm}$ ) ▷ Compute predictions
+13: end for
+```
+
+Algo. 2 shows the process of inference for adapting to a particular unseen target domain. It contains two phases:
+
+Domain prompt computation. For an unseen target domain, we first collect a few unlabeled data samples and compute the domain prompt using the CPNet and the domain cache. Such a step is illustrated in Fig. 8a and L1-5 of Algo. 2. Please note, that after this step, the domain cache can be ignored.
+
+Adapting the data using the domain prompt. Once the domain prompt is computed, it is utilized to adapt all data samples in that domain. This stage follows the process as in L7-12 of Algo. 2. Also as illustrated in Fig. 8b, this step only involved CPNet, CLIP image encoder and proposed DAF.
+
+
+(a) Computing the domain prompt (DP) for the target domain using a few unlabeled data samples.
+
+
+(b) Adapting every data in the target domain.
+Figure 8: Inference process for adapting to an unseen domain. Adapting to an unseen target domain involved two phases. The first one is the domain prompt computation using a few unlabeled data sample as in (a). The second phase is to utilize the domain prompt for inferencing all the data in that domain as in (b).
+
+# D COMPUTATIONAL RESOURCES
+
+# D.1 COMPUTATIONAL COMPARISON OVER THE ENTIRE FRAMEWORKS
+
+Table 7: Comparison on speed and memory (batch size of 64).
+
+
CPNet(1 layer)
CPNet(3 layer)
CPNet(6 layer)
VDPG
Datasets
Camelyon17,PovertyMap
DomainNet,iWildCam
FMoW
All datasets
# Learnable params (M)
13.8
27.9
49.2
32.1
Train memory(MB)
3872
5554
8106
3672
Train speed(s/batch)
0.84
0.88
0.97
0.87
Inference memory(MB)
2270
2330
2430
2798
Inference speed(s/batch)
0.64
0.67
0.73
0.69
+
+Table 7 reports the memory usage and speed during both training and inference. Despite introducing a parallel CPNet, the resource consumption remains comparable to VDPG. While VDPG relies on a heavy guidance module, our framework primarily allocates parameters within CPNet. The increase in memory during training is largely due to tensor reshaping, allowing attention to be applied across the entire batch. However, the domain prompt computation is performed only once per target domain and is gradient-free. As shown in Fig. 8b, the main computation during inference is streamlined—modules such as the text encoder, text feature refinement module, and K-V cache are all eliminated, making our framework highly efficient.
+
+# D.2 EFFICIENCY ON GREEDY TEXT ENSEMBLE.
+
+Greedy Ensemble is executed as a pre-processing step before large-scale training (L3 of Algo. 1). Once the text features for all templates are obtained, the entire text encoder can be discarded, making assembling highly efficient. For instance, in DomainNet-real with a batch size of 64, the image encoder requires 120K forward passes over 20 epochs, while the text encoder only needs 80 forward passes to compute the text features, resulting in minimal resource usage ( $< 0.01\%$ ).
+
+E PYTORCH-LIKE SAMPLE CODE FOR GREEDY ENSEMBLE
+```python
+#P :Number of text prompt templates
+#C :Number of classes
+#d :feature dimension
+#TE : Tensor, shape $= [P,C,d]$
+# P sets of text embeddings
+#Score: Tensor, shape $= [P]$
+# corresponding uniformity loss for TE
+def uniformity_loss(text_embedding, t=2): # text_embedding: shape $= [C,d]$ return torch.pdist(text_embedding, p=2).pow(2.0).mul(-t).exp().mean()
+def sort_uniformity (TE, Score): sort_index = torch.argsort (Score).cpu().numpy() return TE[sortidx]
+def ensemble (TE_list): return torch.stack(TE_list, dim=0).mean(dim=0)
+def greedy_ensemble (TE, Score): final_TE = [] TE_sorted $=$ sort_uniformity(TE, Score) # take the text prompt embedding with least uniformity loss as base final_TE.append(TE_sorted[0]) for i in range(1,P): temp_TE $=$ final_TE + TE_sorted[i] if uniformity_loss(ensemble(temp_TE))< uniformity_loss(ensemble(final_TE)) final_TE $=$ temp_TE return ensemble(final_TE)
+```
+
+# F ADDITIONAL EXPERIMENTS
+
+# F.1 COMPARISON WITH PROMPT-BASED METHODS AND SIDE BRANCH-BASED METHODS
+
+We further provide a comparison with prompt-based methods: CoOp (Zhou et al., 2022b), CoCoOp (Zhou et al., 2022a) and side branch-based DTL (Fu et al., 2024). Since these methods are non-adaptive, we applied test-time optimization as in TPT to minimize the entropy (Shu et al., 2022).
+
+Table 8 outlines the architectural differences. TPT relies on gradient updates, making gradient flow crucial and thus limited to white-box settings. In contrast, VDPG and our proposed L2C generate domain-specific prompts for adaptation, enabling them to operate in the more challenging black-box setting. Despite these constraints, L2C still surpasses all other methods, as shown in Table 9.
+
+Table 8: Architectural comparison.
+
+
Method
Black/white box
Gradient at test-time
CoOp + TPT
white box
required
CoCoOp + TPT
white box
required
DTL + TPT
white box
required
VDPG
black box
gradient-free
L2C (Ours)
black box
gradient-free
+
+Table 9: Performance comparison.
+
+
Method
Ave Acc. (DomainNet, ViT-B16)
CoOp
58.8
CoOp + TPT
60.6
CoCoOp
59.4
CoCoOp + TPT
60.4
DTL
57.6
DTL + TPT
59.2
VDPG
59.8
L2C (Ours)
61.2
+
+# F.2 ALTERNATIVE CRITERIA FOR TEXT EMBEDDING UNIFORMITY
+
+The criteria we used for text feature inter-dispersion among classes is determined by the uniformity in a hypersphere (i.e., Eq. 2). It can also be determined by measuring the Average Text Feature
+
+Dispersion (ATFD) which calculates the distance of all class embedding to their centroid (Yoon et al., 2024). For a text features $\mathbf{T}(\mathbf{P}_{\mathbf{C}})$ with a prompt template $\mathrm{P}$ and class labels $\mathbf{C}$ , ATFD is computed as:
+
+$$
+\operatorname {A T F D} = \frac {1}{| \mathbf {C} |} \sum_ {i \in | \mathbf {C} |} \| \mathbf {T} _ {\text {c e n t r o i d}} - \mathbf {T} _ {i} \left(\mathrm {P} _ {\mathrm {C}}\right) \| _ {2}, \quad \text {w h e r e} \quad \mathbf {T} _ {\text {c e n t r o i d}} = \frac {1}{| \mathbf {C} |} \sum_ {i = 1} ^ {| \mathbf {C} |} \mathbf {T} _ {i} \left(\mathrm {P} _ {\mathrm {C}}\right), \tag {9}
+$$
+
+where $\| \cdot \|_2$ measures the L2 distance. Please note, a smaller ATFD indicates the class text features are closer to the centroid, therefore, the class features are more closely clustered. In contrast, a larger ATFD indicates a more dispersed distribution of the text features. Therefore, to integrate ATFD into our greedy ensemble pipeline, we need to sort the features of text in reverse order based on ATFD and select the prompts that can maximize ATFD after ensemble. The loss function then becomes $\mathcal{L}_{total} = \mathcal{L}_{clip} - \lambda \cdot \mathrm{ATFD}$ .
+
+Table 10 reports selected text prompt templates for DomainNet with both $\mathcal{L}_{uni}$ and ATFD. The selected templates match with each other and the average is also very close to each other. Table 11 reports a performance comparison of using $\mathcal{L}_{uni}$ and ATFD on additional benchmarks, showing close results.
+
+Table 10: Comparison between metrics of using two different criteria for text feature inter-dispersion.
+
+
DomainNet (ViT-B/16)
Inter-dispersion criteria
Luni
ATFD
Selected prompt templates
a blurry photo of a {}.
+a embroidered {}.
+itap of the {}.
+itap of my {}.
+itap of a {}.
+a black and white photo of a {}.
a blurry photo of a {}.
+a embroidered {}.
+itap of the {}.
+itap of my {}.
+itap of a {}.
+a black and white photo of a {}.
Average accuracy on 6 domains
61.2
61.1
+
+Table 11: Additional performance comparison of using two different criteria for text feature inter-dispersion.
+
+
Method
iWildCam
FMoW
DomainNet
Acc
Macro F1
WC Acc
Avg Acc
Acc
Luni
73.4
35.2
40.9
54.8
61.2
ATFD
73.5
35.3
40.8
54.8
61.1
+
+# F.3 ADOPT CLIP FOR REGRESSION AS IN POVERTYMAP DATASET
+
+Regression task on CLIP: Regression task requires a single number output, therefore, it is equivalent to setting the number of output class as 1 (Chi et al., 2024). Since the PovertyMap aims to estimate the wealth index for a region, therefore, we simply use a sentence prompt as the text input of the CLIP text encoder: A satellite image showing the wealth_index, yielding a text embedding with output dimension as $\mathbf{T}^{dm} \in \mathbb{R}^{1 \times d}$ . With the adapted image feature $\mathbf{I}^{dm} \in \mathbb{R}^{B \times d}$ , the logit is obtained by matrix multiplication between them, with shape $\in \mathbb{R}^{B \times 1}$ . Therefore, each image has a single output number in our framework. For the regression task, we train the model using MSE loss, and omit the text uniformity loss as there is only one "class".
+
+Surprisingly, without any training, the original CLIP model is able to predict zero-shot regression (e.g., the regional wealth index) just like zero-shot classification (as shown in Table 1, the zero-shot regression shows positive correlation on the wealth index). Our method can significantly boost performance by learning the complement knowledge and adapting to those unseen target domains.
+
+# F.4 T-SNE VISUALIZATION OF COMPARISON ON TEXT FEATURES
+
+
+Figure 9: t-SNE (Van der Maaten & Hinton, 2008) visualization of comparison on text features with prompt [CLASS], greedy ensemble and refined output (ViT-B/16 on DomainNet).
+
+Fig. 9 shows the visualization of the text features for different text prompting methods and also our simple yet effective refinement output. It clearly shows that the features with prompt [CLASS] have more clustered features which are less discriminative. Our greedy ensemble greatly increases the distance among the class features. With simple refinement using $M_{c}$ , $M_{d}$ and the uniformity loss, the features are further separated.
+
+Table 12: Sensitivity on domain cache size.
+
+
L size
iWildCam
FMoW
Acc
F1
WC Acc
Acc
1
69.2
32.8
33.2
50.6
5
73.2
35.0
40.9
54.8
10
73.4
35.2
40.7
54.5
+
+Table 13: Sensitivity on loss balancing weight $\lambda$ .
+
+
λ
iWildCam
FMoW
Acc
F1
WC Acc
Acc
0.01
73.2
35.1
40.8
54.7
0.1
73.4
35.2
40.9
54.8
1.0
73.5
34.9
40.4
54.8
+
+# F.5 SENSITIVITY ON DOMAIN Cache SIZE:
+
+Table 12 reports the performance with different size of domain cache. When size=1, the learning capability is too small. Increasing to 5 or 10 makes it more stable.
+
+# F.6 SENSITIVITY ON LOSS BALANCING WEIGHT $\lambda$ :
+
+Table 13 reports the sensitivity on $\lambda$ . Our framework is less sensitive to $\lambda$ as it is only applied to the text features at the beginning, with only $M_{c}$ and $M_{d}$ to optimize. The effect is the convergence speed, but the ultimate performance is quite stable.
+
+# G ADDITIONAL HYPER-PARAMETERS
+
+We utilize the same configurations of transformer blocks as of ViT-B/16 or ViT-L/14, therefore, the feature size can be matched between the main backbone and the CPNet. The only hyper-parameter we tune is the number of transformer blocks. We show the number of layers for different datasets and the total number of learnable parameters and compare them with FLYP and VDPG when ViT-B/16 is utilized in Table14. The size of the domain cache is reported in Table 15. All the experiments can be conducted with a single NVIDIA V100 GPU. We set the batch size as 64 (12 images for support and 52 images for query set). Each iteration runs 0.4 seconds.
+
+Table 14: Configuration of CPNet and the total number of learnable parameters.
+
+
L2C (ours)
FLYP
VDPG
DomainNet
iWildCam
Camelyon17
FMoW
PovertyMap
-
-
# of transformer blocks
3
3
1
6
1
-
-
Learnable parameters
27.9M
27.9M
13.8M
49.2M
13.8M
149M
32.1M
+
+Table 15: Size of domain cache $L$ .
+
+
DomainNet
iWildCam
Camelyon17
FMoW
PovertyMap
L
10
10
5
5
10
+
+# H DETAILS ON TEXT PROMPTSTEMPLATES:
+
+In this section, we describe the candidate test prompts used to perform the greedy ensemble, the full list of attached in supplementary material (MS Excel spreadsheet (TextPromptTemplates)). Table 16 shows the selected text prompts among the candidate text prompt as follows:
+
+DomainNet & iWildCam: We use 80 text prompt templates that used for ImageNet (Deng et al., 2009) from CLIP (Radford et al., 2021) and FLYP (Goyal et al., 2023).
+
+FMoW: We use 14 text prompt templates from FLYP (Goyal et al., 2023). The prompts describe the photos in remote-sensing scenarios.
+
+Camelyon17: We filter some text prompts from the 80 ImageNet text prompts that can be used to describe the medical issue and generate some using ChatGPT. In total, there are 56 text prompts.
+
+Please note that PovertyMap is a regression task, the prompts for this task and the experimental setting for regression are reported in Sec. F.3.
+
+Table 16: Selected text prompts by our proposed greedy ensemble. $\{\}$ is replaced by class name.
+
+
iWildCam
DomainNet
FMoW
Camelyon17
a blurry photo of the {}.
+a dark photo of the {}.
+a cropped photo of the {}.
+a black and white photo of the {}.
+a black and white photo of a {}.
+a close-up photo of the {}.
+a photo of many {}.
+itap of my {}.
+a bright photo of the {}.
+itap of a {}.
+a good photo of a {}.
a blurry photo of a {}.
+a embroidered {}.
+itap of the {}.
+itap of my {}.
+itap of a {}.
+a black and white photo of a {}.
aerial photo of a {} in oceania.
+{}.
+a dark photo of the {}.
+a black and white photo of the {}.
+a good photo of the {}.
\ No newline at end of file
diff --git a/ICLR/2025/Learning to Adapt Frozen CLIP for Few-Shot Test-Time Domain Adaptation/images.zip b/ICLR/2025/Learning to Adapt Frozen CLIP for Few-Shot Test-Time Domain Adaptation/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..2d41ff11d0524b16d66917b0836be0dbeb6678d5
--- /dev/null
+++ b/ICLR/2025/Learning to Adapt Frozen CLIP for Few-Shot Test-Time Domain Adaptation/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:95682541fe38d260238bf77dc0d99898ef81c7359e42ee8c63974b69711053ed
+size 951271
diff --git a/ICLR/2025/Learning to Adapt Frozen CLIP for Few-Shot Test-Time Domain Adaptation/layout.json b/ICLR/2025/Learning to Adapt Frozen CLIP for Few-Shot Test-Time Domain Adaptation/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..87536738682b46d8fd346a460ace78040b7843e6
--- /dev/null
+++ b/ICLR/2025/Learning to Adapt Frozen CLIP for Few-Shot Test-Time Domain Adaptation/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6e0c2c6cee999ef7a1f46d1e458102aff0936d2b6f1cb40452d1bb1cfa3bd360
+size 699396
diff --git a/ICLR/2025/Learning to Clarify_ Multi-turn Conversations with Action-Based Contrastive Self-Training/8525bb58-9a54-46ef-a7e9-4ca07b948e7f_content_list.json b/ICLR/2025/Learning to Clarify_ Multi-turn Conversations with Action-Based Contrastive Self-Training/8525bb58-9a54-46ef-a7e9-4ca07b948e7f_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..8fd11b26df350a1dcdac2740bc759627ca6ff371
--- /dev/null
+++ b/ICLR/2025/Learning to Clarify_ Multi-turn Conversations with Action-Based Contrastive Self-Training/8525bb58-9a54-46ef-a7e9-4ca07b948e7f_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:409584214c7b53805c592029b0f9a6fd68a7f7157e3a664ed23b662ea59e5b13
+size 204563
diff --git a/ICLR/2025/Learning to Clarify_ Multi-turn Conversations with Action-Based Contrastive Self-Training/8525bb58-9a54-46ef-a7e9-4ca07b948e7f_model.json b/ICLR/2025/Learning to Clarify_ Multi-turn Conversations with Action-Based Contrastive Self-Training/8525bb58-9a54-46ef-a7e9-4ca07b948e7f_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..8e0d9639fdde0694672ea03a63376be3d8d942c9
--- /dev/null
+++ b/ICLR/2025/Learning to Clarify_ Multi-turn Conversations with Action-Based Contrastive Self-Training/8525bb58-9a54-46ef-a7e9-4ca07b948e7f_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:58d41f570267b055b5f4ede362d6b7ea8fd49147a6ea53fcbf40aa4c0f8f8567
+size 246704
diff --git a/ICLR/2025/Learning to Clarify_ Multi-turn Conversations with Action-Based Contrastive Self-Training/8525bb58-9a54-46ef-a7e9-4ca07b948e7f_origin.pdf b/ICLR/2025/Learning to Clarify_ Multi-turn Conversations with Action-Based Contrastive Self-Training/8525bb58-9a54-46ef-a7e9-4ca07b948e7f_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..1b02b3e08937a8600bb6d4898aaee515997de67b
--- /dev/null
+++ b/ICLR/2025/Learning to Clarify_ Multi-turn Conversations with Action-Based Contrastive Self-Training/8525bb58-9a54-46ef-a7e9-4ca07b948e7f_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:cad300b3da32165149864ac66c758b8f89d9cd9d5bf08eb13ded8f205947cbbb
+size 1376784
diff --git a/ICLR/2025/Learning to Clarify_ Multi-turn Conversations with Action-Based Contrastive Self-Training/full.md b/ICLR/2025/Learning to Clarify_ Multi-turn Conversations with Action-Based Contrastive Self-Training/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..80d308181c6f12c9241f5652af2cb59d5c012a11
--- /dev/null
+++ b/ICLR/2025/Learning to Clarify_ Multi-turn Conversations with Action-Based Contrastive Self-Training/full.md
@@ -0,0 +1,779 @@
+# LEARNING TO CLARIFY:
+MULTI-TURN CONVERSATIONS WITH ACTION-BASED
+CONTRASTIVE SELF-TRAINING
+
+Maximillian Chen\*1,2, Ruoxi Sun1, Tomas Pfister1, Sercan O. Ark1
+
+1Google 2Columbia University
+
+maxchen@cs.columbia.edu, {ruoxis,tpfister,soarik}@google.com
+
+# ABSTRACT
+
+Large language models (LLMs), optimized through human feedback, have rapidly emerged as a leading paradigm for developing intelligent conversational assistants. However, despite their strong performance across many benchmarks, LLM-based agents might still lack conversational skills such as disambiguation – when they are faced with ambiguity, they often overhedge or implicitly guess users' true intents rather than asking clarification questions. Under task-specific settings, high-quality conversation samples are often limited, constituting a bottleneck for LLMs' ability to learn optimal dialogue action policies. We propose Action-Based Contrastive Self-Training (ACT), a quasi-online preference optimization algorithm based on Direct Preference Optimization (DPO), that enables data-efficient dialogue policy learning in multi-turn conversation modeling. We demonstrate ACT's efficacy under in data-efficient tuning scenarios, even when there is no action label available, using multiple real-world conversational tasks: tabular-grounded question-answering, machine reading comprehension, and AmbigSQL, a novel task for disambiguating information-seeking requests for complex SQL generation towards data analysis agents. Additionally, we propose evaluating LLMs' ability to function as conversational agents by examining whether they can implicitly recognize and reason about ambiguity in conversation. ACT demonstrates substantial conversation modeling improvements over standard tuning approaches like supervised fine-tuning and DPO.
+
+# 1 INTRODUCTION
+
+Conversations offer a natural and effective way for humans and intelligent systems to collaborate (Amershi et al., 2019; Lemon, 2012). The impressive capabilities of large language models (LLMs) have powered the rapid development of many generalist conversational assistants such as ChatGPT1 and Gemini (Gemini Team et al., 2023), which present an opportunity for users to verbalize their need for assistance on complex tasks. However, the promises of a conversational interfaces also come with the complexities of language. Human conversation is riddled with ambiguity, whether it be due to humans' tendency to underspecify (Zipf, 1949) or even due to syntactic errors (Messer, 1980). Moreover, disambiguation becomes even more important in complex domains where it can be a difficult multi-turn process to achieve common ground (Beers et al., 2006). As it stands, existing LLM-powered conversational agents continue to struggle with modeling ambiguity (Liu et al., 2023), and tend to exhibit unwanted behavior such as overhedging (Ouyang et al., 2022) or generating responses which represent a "guess" of the user's intent (Deng et al., 2023a) (see Figure 1).
+
+One of the primary reasons that LLMs may exhibit unwanted conversational behaviors is that their language modeling objective during pre-training or supervised fine-tuning (SFT) is not directly aligned with this goal (Ouyang et al., 2022). While approaches like Ouyang et al. (2022) propose LLM "alignment" using post-training approaches like reinforcement learning from human feedback (RLHF) (Christiano et al., 2017), existing models still struggle with conversational tasks spanning
+
+
+Figure 1: Simplified example of ambiguity present at tabular-grounded conversational question answering based on Deng et al. (2022). A conversational agent should recognize when there is ambiguity and ask a clarifying question towards a more accurate final answer.
+
+multiple turns (Wang et al., 2023). This is partly due to the fact that existing approaches do not directly optimize for pragmatic skills (e.g. Bai et al. (2022)). Moreover, there is often high variance in the target distribution of a particular use case, so it is imperative that downstream adaptation approaches can effectively steer LLM policies. Given large-scale in-distribution training data, this may be feasible with standard SFT or RLHF. But, dialogue policy learning can be particularly challenging given limited data (Chen et al., 2022a; Dong et al., 2023) and collecting high-quality conversational datasets can be difficult for reasons such as annotation costs and privacy concerns (Chen et al., 2023a).
+
+This motivates the design of a conversational adaptation approach for LLMs which is more closely aligned with the goal of modeling actions in multi-turn conversation. We focus on improving LLMs' abilities to implicitly select conversational strategies in ambiguous contexts, and propose an approach called Action-Based Contrastive Self-Training (ACT). ACT is a sample-efficient, quasi-online Direct Preference Optimization algorithm (Rafailov et al., 2024) which focuses on contrasting the differences between an agent's possible pragmatic conversational actions. We demonstrate ACT's sample-efficient performance on a diverse range of mixed-initiative conversational tasks: (i) tabular-grounded question answering, (ii) machine reading comprehension, and (iii) text-to
+
+
+Figure 2: ACT greatly outperforms standard tuning approaches in data-efficient settings for conversational modeling, as exemplified here on PACIFIC.
+
+SQL generation, demonstrating large improvements compared to standard adaptation approaches (see Figure 2). Our work highlights the necessity of considering action-based preferences for conversational tasks, and we propose a workflow for evaluating LLMs' ability to recognize and reason about ambiguity in conversation.
+
+# 2 RELATED WORK
+
+# 2.1 MIXED-INITIATIVE CONVERSATIONAL AGENTS
+
+Neural approaches to building mixed-initiative conversational agents typically consist of two core components: an understanding and planning module (e.g., a binary prediction task to determine whether to ask a clarifying question or provide an answer), and a generation module which can be controlled at a pragmatic level using the output of the planning module (Chen et al., 2017; 2022b; Qian et al., 2022; Yu, 2017) (e.g., forming an utterance which follows the predicted action).
+
+Generation Many existing works focus on novel training methodologies to improve conditional generation as a complement to planning, with approaches such as multi-objective SFT (Chen et al., 2022b; Wen et al., 2016) or introducing specialized embeddings for control codes (Keskar et al., 2019). LLMs have vastly improved performance in pragmatically-controlled generation (Chen et al., 2023b), but all of these approaches still depend on conversational planning. Planning remains a difficult task – natural interaction is not deterministic and often requires long-horizon planning.
+
+Planning The planning task can be viewed as a stochastic Markov Decision Process (Wang et al., 2020b; Yang et al., 2021; Yu et al., 2023) in which some dialogue state is drawn from a potentially unknown distribution, given the previous dialogue state and an imposed action. However, the action itself is not literally presented to the interacting parties; rather, an action is a low-dimensional representation of the pragmatic intent carried by a given dialogue utterance (i.e., a dialogue act Sadek (1991); Stolcke et al. (2000); Wu et al. (2023); Yu & Yu (2021)). As such, training planning modules often requires complex long-horizon reasoning and simulation to model the responses and intents of each interacting party. Such efforts have examined combining neural models with search algorithms (Cheng et al., 2022; Väth et al., 2023; Yu et al., 2023) and simulation (Deng et al., 2023c; Wang et al., 2020a; Yu et al., 2023). However, such modular approaches can incur high computational overhead (Yu et al., 2023) and may result in error propagation while not directly optimizing for response quality itself. We propose directly optimizing dialogue action planning as an implicit subtask of response generation in mixed-initiative conversation contexts, as we discuss in Sec. 3.2.
+
+# 2.2 LEARNING FOR LLM ALIGNMENT
+
+The current paradigm of LLM training for downstream use cases consists of three phases: pretraining, supervised fine-tuning (SFT) for instruction-following, and tuning for alignment with human preferences (Tunstall et al., 2023; Rafailov et al., 2024; Lee et al., 2023; Ouyang et al., 2022). We primarily focus on the phase of tuning for alignment. These approaches typically start with an initial policy model obtained by conducting SFT on a target task $(\pi_{SFT})$ , before performing tuning (often with RL), using contrastive preference examples (most commonly collected through human feedback (Ouyang et al., 2022) or a similar proxy like LLM-generated feedback (Lee et al., 2023)). In the case of online algorithms like PPO, a reward model is first fit over the preference examples so that it could be used for RL optimization (Ouyang et al., 2022). Such algorithms have certain advantages which may benefit the Markov Decision Process-like nature of conversations — namely, a diverse search space as opposed to a fixed dataset, flexible reward functions, and broader policy exploration. However, PPO is notoriously difficult to tune, and offline algorithms such as DPO (Rafailov et al., 2024), SLiC (Zhao et al., 2023), and IPO (Azar et al., 2024) have become widely adopted as an LLM adaptation approach because they bypasses explicit reward modeling and thus only require one set of hyperparameters to optimize (Huang et al., 2024; Rafailov et al., 2024; Zhao et al., 2023; Zheng et al., 2023) while still achieving similar empirical results given a fixed preference dataset.
+
+On-Policy DPO Many of our contemporaries also question the limits of fully offline preference learning algorithms and have examined "online" variants of them (Guo et al., 2024; Xu et al., 2023; 2024b). Yuan et al. (2024) proposes iterative DPO, and Chen et al. (2024) proposes a variant where ground-truth responses are considered winning, and responses sampled from the previous iteration of a policy model are considered losing. Pang et al. (2024) applies a variant of iterative DPO to optimize externalized reasoning chains. Our work differs from these in that we are proposing a novel approach to customize LLMs for specific conversational settings, in particular, multi-turn conversational settings. While other works look at applying DPO to conversations in general (e.g. Sun et al. (2024)), their focus is still on single-turn response optimization. ACT considers multi-turn trajectories for preference optimization, and to our knowledge, our work is the first paper to consider contrastive learning on the basis of conversational actions.
+
+# 3 METHODS
+
+# 3.1 PROBLEM SETUP
+
+We consider the task of tuning an LLM to function as a mixed-initiative conversational agent. Through a series of dialogue interactions with a user, the LLM is expected to assist the user by eventually providing a correct response to their request. Unlike the common agent interaction setting where users completely control the flow of interaction with the expectation that agents may autonomously complete tasks such as online shopping (Liu et al., 2024), mixed-initiative agents should understand how to redirect the flow of the interaction (Allen et al., 1999) through the execution of conversational actions or strategies such as clarifying questions (Chu-Carroll, 2000; Peng et al., 2018).
+
+Notation Consider a goal-oriented conversational environment. Let $\pi_{\theta_i}$ be an LLM's policy parameterized by $\theta$ at timestep $i \geq 0$ , with $\pi_{ref}$ being the reference policy model (i.e., $\pi_{ref} \gets \pi_{\theta_0}$ ). Let $D$ be a dataset consisting of conversations. Let each conversation $c$ in $D$ contain $n$ dialogue turns, through which a user is requesting one or more pieces of information from an agent. The turn state of a conversation (the observed utterances and actions given by each interacting party) at timestep
+
+
+Figure 3: Overview of the tuning phase of $ACT$ . For each initial contrastive pairing from $D_{pref}$ (constructed as in Sec. 3.2.1), we sample an on-policy response from the model being tuned. After evaluating the sampled response's trajectory, we update the contrastive pairing by either replacing the existing winning or losing response. The model policy is updated using the objective in Eq. 1.
+
+$i$ can be represented by $t_i$ . Implicitly, each $t_i$ is part of a trajectory which ends when the user's question expressed at an earlier timestep $j \leq i$ is answered. Any turn $t_i$ can first be broken down into two primary components: $p_i$ and $r_i$ , where $p_i$ can be a prompt at $i$ , consisting of any task-specific information (e.g. a SQL database schema, tabular data or retrieved passages) combined with any existing dialogue context, and $r_i$ is the ground truth system-side response at $i$ . Next, we can let $g_i$ be the goal response which resolves $t_i$ 's implicit trajectory, i.e., the answer to the user's original question after any possible clarification turns. In the single-turn trajectory case, $g_i \gets r_i$ . Each $r_i$ implicitly expresses an action, $a_i$ , where $a_i$ exists in the latent Action Space $S$ of a particular task and $a_i$ can be inferred by some Action Annotation Agent $G^2$ . Thus, we can formally represent turn state $t_i$ using the tuple $(p_i, r_i, g_i, a_i)$ . For the datasets considered in our experiments, $S = [\text{CLARIFY}, \text{ANSWER}]$ (although the method can be extended to a broader action space). We assume access to a controllable generation model $(M)$ , Action Classifier $(A)$ and model which can be controlled to function as a User Simulator $(U)$ . As we discuss in Sec. 3.2, $M$ is used for preference data creation whereas $A$ and $U$ are used during tuning and evaluation. We illustrate this notation in Fig. A4.
+
+User Simulators Works such as Deng et al. (2023c); Yu et al. (2023) directly prompt LLMs for goal-oriented tasks conditioned on dialogue context and task objectives. Our implementation of $U$ is inspired by this setup. We first prompt an LLM to summarize the user's information-seeking goal. Then, we form another prompt using this summary along with the current dialogue context to simulate a user response. Prompting with this goal summary allows for more flexibility than directly providing the user simulator with the ground truth information objective. We provide details on our implementation of $U$ in Appendix H.
+
+Action Classifiers In the datasets we considered, the possible actions are to either "clarify" or "directly answer" a question. We directly use few-shot in-context learning as action classifier $A$ . We provide details on our in-context examples for $A$ in Appendix G.
+
+# 3.2 ACT: ACTION-BASED CONTRASTIVE SELF-TRAINING
+
+One of the north stars in developing intelligent conversational models is the ability to automatically produce responses which take actions which lead to the highest probability of conversational success (Wu et al., 2023; Zhao et al., 2019). We propose ACT, an approach that adapts generic LLMs for dialogue generation and models action planning as an implicit subtask. ACT is a quasi-online extension of the DPO algorithm which maintains its ease of use of offline method while incorporating the flexible exploration found during online learning. ACT relies on a few intuitions. 1) Contrastive preferences are an intuitive medium for demonstrating the pragmatic differences between the implicit actions of "winning" and "losing" dialogue responses. 2) Conversational improvements require multi-turn optimization, which are difficult to express using only single-turn contrast pairings. 3) The
+
+gradient of the objective of DPO-like algorithms (see Eq. 2) is weighted based on the log probabilities assigned to the winning and losing responses, and by construction, on-policy response sampling yields high-probability token sequences. $ACT$ is summarized in Fig. 3. $ACT$ consists of two phases: action-based contrast dataset construction (Alg. 1) and contrastive self-training (Alg. 2).
+
+# 3.2.1 CONSTRUCTION OF PREFERENCE DATA
+
+The preference dataset primarily consists of contrastive winning-losing action pairs, as shown in Alg. 1. That is, for each conversation turn $t_i$ in a dataset $D$ , we can construct $D_{pref}$ consisting of augmented $t_i'$ tuples. We add rejected action $a_i'$ which is sampled from $S \setminus a_i$ , winning response $y_{wi} \gets r_i$ , and $y_{l_i}$ which is a losing response sampled using $M$ . Given that each $a_i'$ is predefined when constructing $D_{pref}$ , we use a high capacity LLM (Chen et al., 2023b) rather than tuning a smaller one or asking crowdworkers for losing response construction (more details in Appendix F).
+
+# Algorithm 1 Building Contrastive Action Pairs
+
+input Dataset $D$ , Conditional generation model $M$ , Action Space $S$ , Action Annotation Agent $G$
+
+1: Initialize empty dataset $D_{\text{pref}}$
+2: for conversation turn $t_i \in D$ do
+3: Let $a_i = G(p_i, r_i)$ Infer Contextual Action
+4: Let $a_{i}^{\prime} = S \setminus a_{i}$ Determine Rejected Action
+5: Let $y_{wi} = r_i$
+6: Sample $y_{li} \sim P_M(\cdot | p_i, a_i')$ .
+7: Let $t_i' = (p_i, r_i, g_i, a_i, a_i', y_{wi}, y_{li})$ .
+8: Add $t_i'$ to $D_{\text{pref}}$
+
+output $D_{\text{pref}}$
+
+Action optimization for unlabeled conversations "in-the-wild" Obtaining gold-standard ambiguity annotations may not always be possible. In such settings, one can obtain pseudo-label supervision using a classifier as the Action Annotation Agent $G$ rather than human annotation. We discuss details and analyze performance in Sec. 5.4. Depending on the data, it may be appropriate to introduce an initial preprocessing step which involves inferring user satisfaction similarly to Shi et al. (2024).
+
+# 3.2.2 SELF-TRAINING USING ON-POLICY CONVERSATION TRAJECTORY SIMULATION
+
+As in DPO training, we continuously sample batches from $D_{pref}$ . Although each conversation turns $t_i$ in each batch $j$ has a default winning $(y_{wi})$ and losing $(y_{li})$ response, we also sample an on-policy response $y_i$ from $\pi_{\theta_j}$ . We use $A$ to determine whether the implicit action of $y_i^3$ matches the inferred action $a_i$ of the ground truth response. If the implicit action of $y_i$ is incorrect, we set $y_{li} = y_i$ . If it does match $a_i$ , then we simulate the outcome $g_i'$ of the trajectory resulting from $y_i$ using $U^4$ and $\pi_{\theta_j}$ . If the trajectory outcome $g_i'$ fails to meet task-specific heuristics (e.g., low semantic similarity or an incorrect execution), we set $y_{li}$ to the entire simulated trajectory resulting from $y_i$ (e.g., "Are you looking for..." + "What is the average total number..." + "SELECT max..." in Figure 3). Otherwise, we set $y_{wi}$ to the simulated trajectory (e.g. "Are you looking for..." + "What is the average total number..." + "SELECT avg..." in Figure 3).
+
+# 3.2.3 CONTRASTIVE RL TUNING FOR ALIGNMENT
+
+After constructing the up-to-date winning $y_{wi}$ and losing $y_{li}$ pairing at turn $i$ through simulation (Sec. 3.2.2), we update the policy model $(\pi_{\theta})$ using the DPO training objective (Rafailov et al., 2024), which is as follows (we ignore the $i$ iterator for simplicity):
+
+$$
+\mathcal {L} _ {\mathrm {D P O}} \left(\pi_ {\theta}; \pi_ {r e f}\right) = - \mathbb {E} _ {\left(p, y _ {w}, y _ {l}\right) \sim \mathcal {D}} \left[ \log \sigma \left(\beta \log \frac {\pi_ {\theta} \left(y _ {w} \mid p\right)}{\pi_ {r e f} \left(y _ {w} \mid p\right)} - \beta \log \frac {\pi_ {\theta} \left(y _ {l} \mid p\right)}{\pi_ {r e f} \left(y _ {l} \mid p\right)}\right) \right], \tag {1}
+$$
+
+where $p$ is a prompt consisting of a concatenation between task info and conversation history $= \{x_{1},y_{1},\dots,x_{i - 1},y_{i - 1},x_{i}\}$ with each $x_{i}$ and $y_{i}$ representing observed user-side and system-side utterances at turn $i$ ; $y_{w}$ and $y_{l}$ are the designated "winning" and "losing" responses or trajectories as set in Sec. 3.2.2; $\pi_{ref}$ is the initial reference policy model; and $\beta$ is a hyperparameter that regularizes the ratio between $\pi_{\theta}$ and $\pi_{ref}$ . The gradient of this objective is given as follows:
+
+$$
+\begin{array}{l} \nabla_ {\theta} \mathcal {L} _ {\mathrm {D P O}} (\pi_ {\theta}; \pi_ {r e f}) = \\ \left. - \beta \mathbb {E} _ {(p, y _ {w}, y _ {l}) \sim \mathcal {D}} \left[ \sigma \left(\hat {R} _ {\theta} (p, y _ {l}) - \hat {R} _ {\theta} (p, y _ {w})\right) \left[ \nabla_ {\theta} \log \pi \left(y _ {w} \mid p\right) - \nabla_ {\theta} \log \pi \left(y _ {l} \mid p\right) \right] \right], \right. \tag {2} \\ \end{array}
+$$
+
+Algorithm 2 ACT: Action-Based Contrastive Self-Training
+input Initial Policy Model $\pi_{\theta_0}$ , Action Contrast Dataset $D_{pref}$ , Number of Batches $B$ , Action Classifier $A$ , User Simulator $U$ , Task Heuristic $H$ , Heuristic Tolerance $\epsilon$
+1: for conversation turn $t_i$ in batch $b_j$ sampled from $D_{pref}$ where $0 \leq j \leq B$ do
+2: Sample $y_i \sim P_{\theta_j}(|p_i|)$ ▷ Sample a response from the current model policy
+3: if Action $A(y_i) \neq$ Action $a_i$ then
+4: Set $y_{li} = y_i$ ▷ Implicit pragmatic action does not match ground truth
+5: else
+6: Initialize Trajectory
+7: Add $y_i$ to Trajectory
+8: while $A(y_i) \neq$ ANSWER do
+9: Clarification Answer $= P_U(p; y_i)$ ▷ Simulate User Clarification
+10: Add Clarification Answer to Trajectory
+11: $y_{i+1}' = P_{\pi_\theta}(P; y_i)$ ▷ Simulate next policy response
+12: Add $y_{i+1}'$ to Trajectory
+13: if $H(Trajectory$ outcome, Ground Truth Outcome $g_i) > \epsilon$ then
+14: Let $y_{wi} =$ Trajectory ▷ Reward acceptable trajectory outcome
+15: else
+16: Let $y_{li} =$ Trajectory ▷ Penalize bad trajectory outcome
+17: $\theta \gets$ Update $(\theta)$ until convergence (eq 2)
+output $\pi_{\theta_B}$
+
+where $R(p,y) = \beta \log \frac{\pi(y|p)}{\pi_{ref}(y|p)}$ for a given policy model $\pi$ and reference model $\pi_{ref}$ , as proven under the assumptions in Rafailov et al. (2024). The intuition behind the objective is that the gradient of the loss function would increase the likelihood of winning responses $y_{w} \in Y_{w}$ and would decrease the likelihood of losing responses $y_{l} \in Y_{l}$ , with each example being weighed by the magnitude of how incorrectly the implicitly defined reward model ranks the paired responses.
+
+# 4 EXPERIMENTAL SETUP
+
+$ACT$ is a sample-efficient approach to adapt an LLM to a conversational action policy. We are primarily concerned with learning optimized implicit selection for agent-side clarification question asking, and we thus evaluate $ACT$ as a tuning approach for three complex conversational information-seeking tasks. As a base model for our tuning experiments, we use Zephyr $\beta$ , a version of Mistral 7B (Jiang et al., 2023) which has been instruction tuned on UltraChat and aligned to human preferences on UltraFeedback (Cui et al., 2023; Ding et al., 2023; Tunstall et al., 2023).
+
+Table 1: Experimental results on PACIFIC's public evaluation set. $ACT$ achieves the strongest performance compared to all tuning approaches across every condition in every metric. Tuning-based adaptation strategies are not given any in-context examples at inference time, whereas ICL baselines include 10 in-context conversation examples using the same strategy.
+
+
Adapton Setting
Action-level
Content-level
Base Model
Approach
Conversations
Macro F1 ↑
Turn F1 ↑
Traj. F1 ↑
Post-Clarify F1 ↑
Gemini Pro
Standard ICL
10
81.4
59.7
58.7
49.7
Claude Sonnet
Standard ICL
10
71.9
43.7
42.0
28.5
Gemini Pro
SFT
50
71.2
51.8
45.7
9.9
Gemini Pro
SFT
100
75.2
64.3
54.6
8.5
Gemini Pro
SFT
250
88.0
67.4
59.3
10.2
Zephyr 7B-β
SFT
50
69.0
57.8
61.3
43.5
Zephyr 7B-β
IRPO
50
67.7
59.1
56.7
34.4
Zephyr 7B-β
ACT (ours)
50
82.2
62.8
61.9
57.2
Zephyr 7B-β
SFT
100
82.3
58.6
60.3
49.9
Zephyr 7B-β
IRPO
100
84.5
60.4
55.2
38.2
Zephyr 7B-β
ACT (ours)
100
86.0
65.0
62.0
57.4
Zephyr 7B-β
SFT
250
86.9
65.1
63.3
56.7
Zephyr 7B-β
IRPO
250
85.4
64.9
58.4
40.3
Zephyr 7B-β
ACT (ours)
250
89.6
68.1
65.7
62.0
+
+Table 2: Abg-CoQA test set evaluation results. Although Claude Sonnet achieves the highest Action-level performance when prompted with in-distribution in-context conversation examples, it does not result in improved multi-turn goal completion. $ACT$ combines on-policy sampling with multi-turn simulation to achieve the best multi-turn goal completion ability on all data settings.
+
+
Adaptation Setting
Action-level
Content-level
Base Model
Approach
Conversations
Macro F1 ↑
Turn Similarity ↑
Traj. Similarity ↑
Gemini Pro
Standard ICL
10
55.5
67.0
72.2
Claude Sonnet
Standard ICL
10
66.0
50.1
54.3
Zephyr 7B-β
SFT
50
44.6
53.3
64.2
Zephyr 7B-β
ACT (ours)
50
52.3
66.2
68.8
Zephyr 7B-β
SFT
100
52.6
63.1
69.4
Zephyr 7B-β
ACT (ours)
100
51.1
69.5
71.4
Zephyr 7B-β
SFT
250
53.5
64.0
66.2
Zephyr 7B-β
ACT (ours)
250
53.3
72.5
75.1
+
+# 4.1 DATASETS
+
+We investigate three mixed-initiative conversation tasks in which a user interacts with an assistant to retrieve some information. In our setup of each task, a user asks a query which may or may not be underspecified. The assistant is tasked with providing a response which may either be a clarifying question or an attempt to directly answer the user's query. For each task, we synthesize the initial rejected responses by prompting Gemini Ultra as the conditional generation model, $M$ . ACT is evaluated on a diverse set of datasets spanning various domains: tabular conversational QA, conversational QA for machine reading comprehension, and conversational text-to-SQL generation.
+
+# 4.1.1 PACIFIC: CONVERSATIONAL QA FOR TABULAR DATA
+
+PACIFIC is a task for proactive conversational question answering grounded on a mixture of tabular and textual financial data (Deng et al., 2022). This may involve generating the correct words from a given span, from multiple spans, or providing a correct arithmetic expression. The official evaluation for PACIFIC uses a numeracy-focused token overlap metric called DROP F1.
+
+# 4.1.2 ABG-COQA: CONVERSATIONAL QA FOR MACHINE READING COMPREHENSION
+
+Abg-CoQA is a conversational question answering dataset for disambiguation in machine reading comprehension (Guo et al., 2021). As there are no arithmetic expressions, we use embedding-based semantic distance with SentenceBERT (Reimers & Gurevych, 2019) as an evaluation metric, which has been used to more flexibly measure question-answering performance (Risch et al., 2021).
+
+# 4.1.3 AMBIGSQL: AMBIGUOUS CONVERSATIONAL TEXT-TO-SQL GENERATION
+
+AmbigSQL is our new task for SQL-grounded conversational disambiguation. We systematically perturbed unambiguous queries from Spider, a popular single-turn text-to-SQL benchmark (Yu et al., 2018), resulting in paired training examples which can be easily incorporated into contrastive RL tuning. Each trajectory is evaluated by whether the final proposed SQL query matches the ground truth query's execution result.
+
+Our motivation in constructing AmbigSQL stems from the idea that disambiguation can lead to improved task performance. We prompt an LLM to introduce three types of ambiguous information requests. Those in which the requested information is ambiguous (e.g., "Show details about singers ordered by age from the oldest to the youngest"), those in which the requested population is ambiguous (e.g., "Which ones who live in the state of Indiana?"; see Table A12), and finally, those in which the requested presentation of results is ambiguous (e.g. "Show name, country, age for all singers ordered by age"; see Table A13). We found that constructing a SQL query for an underspecified request with and without clarifications can result in a performance gap of up to $45.8\%$ (see Table A14), demonstrating the necessity of clarifying questions. We provide additional details in Appendix C.
+
+# 4.2 EVALUATION SETUP
+
+We conduct evaluations of $ACT$ 's ability to reason about ambiguity in conversation to better accomplish conversational goals along two dimensions.
+
+Table 3: AmbigSQL test set evaluation. Zephyr tuned with $ACT$ is able to achieve the strongest task performance within each data setting. There are especially large performance improvements in post-clarification SQL execution match when data resources are more scarce.
+
+
Adaptation Setting
Action-level
Content-level
Base Model
Approach
Conversations
Accuracy ↑
Macro F1 ↑
Execution Match ↑
PC Execution Match ↑
Gemini Pro
Standard ICL
10
72.1
70.9
63.5
75.2
Claude Sonnet
Standard ICL
10
68.5
63.8
66.5
72.4
Zephyr 7B-β
SFT
50
77.4
77.4
21.9
13.9
Zephyr 7B-β
IRPO
50
91.0
91.0
27.8
30.8
Zephyr 7B-β
ACT (ours)
50
80.8
80.7
43.6
38.1
Zephyr 7B-β
SFT
100
97.2
97.2
43.3
34.3
Zephyr 7B-β
IRPO
100
96.2
96.1
45.0
37.0
Zephyr 7B-β
ACT (ours)
100
99.2
99.3
48.0
49.6
Zephyr 7B-β
SFT
250
99.8
99.7
51.0
50.7
Zephyr 7B-β
IRPO
250
97.0
97.1
49.7
45.6
Zephyr 7B-β
ACT (ours)
250
99.9
99.8
52.3
53.0
Zephyr 7B-β
SFT
14,000 (All)
99.8
99.8
63.1
60.4
+
+Agent task performance: We evaluate whether $ACT$ improves multi-turn task completion capabilities. PACIFIC and Abg-CoQA are initially proposed only with static single-turn evaluations. We mirror this by conducting a turn-level evaluation where we compare the model's response to the ground truth utterance given in response to the user's query, using the task-specific heuristics given in Sec. 4.1. Since we are specifically concerned with improving LLMs' multi-turn capabilities, we additionally propose a multi-turn evaluation scheme for the trajectory outcomes in all three tasks considered. While the sampled response from an LLM is a clarifying question, we simulate a user response and re-sample another response from the evaluated LLM until it attempts to answer the original query. We evaluate this outcome against the user's ground truth information-seeking goal. We use $A$ and $U$ for simulation as described in Sec. 3.2.2 for $ACT$ , and use the heuristics defined in Sec. 4.1. An example is illustrated in Fig A5. In PACIFIC and AmbigSQL, we also compute task performance on the simulated responses in which the model has previously asked any clarifying questions, in order to get a more fine-grained measure of the model's ability to reason about its own clarification questions. Details of each evaluation metric for each task are provided in Appendix D.
+
+Implicit ambiguity recognition: To help further understand an agent's multi-turn task completion ability, we consider "dialogue act accuracy" (Chen et al., 2023b). Assuming access to ground-truth ambiguity labels, given a contextually-ambiguous user request, a model should generate a clarifying question, otherwise, it should attempt to provide the requested information. We primarily consider Macro F1 since PACIFIC and Abg-CoQA have highly imbalanced classes.
+
+# 4.3 BASELINES
+
+Prompting baselines We compare our tuning approaches with smaller models against various prompt-based approaches for multiple frontier LLMs: Gemini 1.5 Pro, Gemini 1.5 Flash, Claude 3.5 Sonnet, and Claude 3.0 Haiku5. The results for Gemini Flash and Claude Haiku are included in Appendix B due to space constraints. We use 10 conversations as in-context examples, with three different prompting frameworks: i.) "Standard" which uses the same instruction formatting used for tuning; ii.) chain-of-thought reasoning (Wei et al., 2022); and iii.) "Proactive MIPrompt", the prompting baseline in Deng et al. (2023c), which is a combination of the mixed-initiative prompting approach used in Chen et al. (2023b) and Proactive Prompting (Deng et al., 2023b). We provide a detailed description of each style with examples in Appendix E.
+
+Tuning baselines We compare ACT with supervised fine-tuning (SFT) as well as other off-policy and on-policy approaches to DPO-based alignment. For SFT, we use the ground truth responses for each dataset's training split. As for DPO-based alignment, an on-policy variant called Iterative Reasoning Preference Optimization (IRPO) was recently proposed and has gained traction for improving model performance in reasoning tasks such as arithmetic. We have thus evaluated IRPO on our two quantitative reasoning tasks, PACIFIC and AmbigSQL. A popular off-policy approach is to sample responses from two high capacity models, with $Y_{w}$ coming from whichever model is
+
+Table 4: Examining ACT on PACIFIC with unlabeled conversational data. We assume no access to action labels and instead use 0-shot Gemini Pro as the source of action label supervision.
+
+
Task Adaptation Environment
Action-level
Content-level
Base Model
Framework
Action Supervision
Tuning Ex.
Macro F1 ↑
Turn F1 ↑
Traj. F1 ↑
Post-Clarify F1 ↑
Zephyr 7B-β
SFT
NA
50
69.0
57.8
61.3
43.5
Zephyr 7B-β
ACT
Crowdsourced
50
82.2
62.8
61.9
57.2
Zephyr 7B-β
ACT
Pseudo-labeled
50
80.1
62.4
61.1
54.7
Zephyr 7B-β
SFT
NA
100
82.3
58.6
60.3
49.9
Zephyr 7B-β
ACT
Crowdsourced
100
86.0
65.0
62.0
57.4
Zephyr 7B-β
ACT
Pseudo-labeled
100
84.8
63.5
61.5
56.1
Zephyr 7B-β
SFT
NA
250
86.9
65.1
63.3
56.7
Zephyr 7B-β
ACT
Crowdsourced
250
89.6
68.1
65.7
62.0
Zephyr 7B-β
ACT
Pseudo-labeled
250
89.0
68.1
64.9
61.0
+
+of higher capacity (henceforth DPO-Dist; see Mitra et al. (2023); Mukherjee et al. (2023); Xu et al. (2024a)). We present DPO-Dist results in Appendix B.
+
+# 5 EXPERIMENTAL RESULTS
+
+To emulate real-world scenarios with limited data, we evaluate $ACT$ as a tuning approach in different scenarios with limited conversation samples across a set of diverse tasks.
+
+# 5.1 CONVERSATIONAL QA WITH TABULAR GROUNDING
+
+In Table 1, we see that across all three data-efficient settings considered, $ACT$ achieves the strongest performance across all metrics compared to both SFT and IRPO, which has the advantage of additional test-time computation (Snell et al., 2024; Pang et al., 2024). In particular, $ACT$ achieves up to a $19.1\%$ relative improvement over SFT when measuring the tuned model's ability to implicitly recognize ambiguity (from 69.0 to 82.2 Macro F1) given only 50 conversations as tuning data. We also observe that $ACT$ has greatly improved data efficiency compared to adapter-based SFT with Gemini Pro, with a relative improvement of as high as $35.7\%$ in multi-turn task performance (from 45.6 to 61.9 in terms of trajectory-level DROP F1). Additionally, tuning with $ACT$ in these limited data settings grants the model the ability to match or outperform frontier LLMs used with in-context learning despite having zero in-context examples during inference. Overall, we find that on-policy learning and multi-turn trajectory simulation are crucial for improved multi-turn goal completion.
+
+# 5.2 CONVERSATIONAL QA FOR MACHINE READING COMPREHENSION
+
+Our results for Abg-CoQA are presented in Table 2. In all three data settings, we observe that $ACT$ achieved the strongest performance in terms of task-specific metrics (notably, in terms of trajectory-level embedding similarity). However, in the setting with 100 and 250 conversations, Zephyr tuned with SFT slightly outperforms $ACT$ in terms of implicit action recognition, although action-level performance primarily helps to contextualize clarification reasoning ability. We discuss this point further in Appendix A. Our approach leads to the strongest turn-level and trajectory-level task performance in all conditions, indicating improved multi-turn reasoning.
+
+# 5.3 CONVERSATIONAL TEXT-TO-SQL GENERATION
+
+We find that although the prompting baselines do not achieve as high Action Accuracy, the benchmarked frontier LLMs can achieve relatively strong downstream performance in terms of execution match. In contrast, tuning Zephyr with both SFT and $ACT$ results in rather high Action Accuracy but lower text-to-SQL performance compared to the frontier LLMs. We observe that holistically, $ACT$ achieves the largest relative performance improvements in multi-turn task performance compared to other tuning approaches, although the downstream SQL generation ability of larger models is much greater than that of smaller models. This is primarily due to the SQL generation benefiting greatly from scale (Sun et al., 2023b). It is possible that multi-turn performance on larger models can be improved further if $ACT$ is applied, as it is even able to yield larger performance improvements than baseline approaches for quantitative reasoning such as IRPO.
+
+# 5.4 ACT IN-THE-WILD: LEARNING WITHOUT DIALOGUE ACTION SUPERVISION
+
+Although we have ambiguity labels in the tasks considered here and use them for supervision in Tables 1-3, we also demonstrate that it is possible to perform action-based tuning in the absence
+
+Table 5: Ablation study of various conditions using PACIFIC's 50 conversation setting.
+
+
Macro F1 ↑
Turn F1 ↑
Traj. F1 ↑
Post-Clarify F1 ↑
Action Importance
ACT
w/ Random Actions
63.2
55.3
58.7
32.8
Ablation of ACT subcomponents
ACT
w/o on-policy sampling
74.8
61.5
59.1
40.5
ACT
w/ sampling but w/o simulation
81.4
60.8
60.2
50.1
ACT (full)
82.2
62.8
61.9
57.2
ACT with unaligned foundation models
Gemma 2B SFT
57.7
38.0
40.5
17.0
Gemma 2B ACT
62.7
42.6
44.0
24.8
Mistral 7B SFT
57.7
53.8
51.4
27.7
Mistral 7B ACT
75.7
58.1
57.6
31.9
+
+of action-label supervision. We use a pre-existing LLM, Gemini 1.5 Pro, as a zero-shot action annotator to re-label the ground truth Assistant-side turns on the PACIFIC corpus. We find that there is astonishingly high agreement (98.5%) with the ground truth action labels. Our results in terms of both Action-level and Content-level metrics reflect that there is nearly no empirical difference in performance. This highlights the potential of $ACT$ being highly effective for adaptation to "in-the-wild" settings with small amounts of unlabeled conversational data.
+
+# 5.5 ABLATION STUDIES
+
+Are action-based preferences necessary? One of the key factors of $ACT$ is that the contrastive pairs highlight differences between conversational actions. In Table 5 (" $ACT$ w/ Random Actions"), we additionally examine the importance of action selection by randomly sampling both the winning and losing action when constructing the preference pair, and observe this underperforms normal $ACT$ .
+
+Do we need on-policy sampling? In Table 5 ("ACT w/o on-policy sampling"), we examine the importance of on-policy sampling by evaluating normal off-policy DPO on the dataset as constructed in Sec. 3.2.1. While we do observe some improvements over SFT (e.g., from 69.0 to 74.8 Macro F1), the overall improvements are much larger when using on-policy sampling as with full ACT. This may be due to the fact that the off-policy negative responses are not guaranteed to lie in the language manifold of the policy model, and distribution shift may be too difficult to overcome with off-policy learning (Guo et al., 2024).
+
+Is trajectory simulation necessary? $ACT$ is better-aligned with multi-turn conversations due to its on-policy trajectory simulation. Without multi-turn simulation, our approach can be viewed similarly to on-policy DPO variants like Pang et al. (2024), but with a conversation-specific reward signal which accounts for conversation actions and task heuristics. In Table 5 (" $ACT$ w/ sampling w/o simulation"), we find that this trajectory-level simulation is critical to improving multi-turn performance, especially the policy model's ability to reason about its own clarification questions.
+
+Is ACT model agnostic? The base model in our main experiments, Zephyr, is obtained by aligning Mistral. In Table 5 ("ACT with unaligned foundation models") we observe a performance gap of 6.5 Action F1 and 4.3 Trajectory F1 after ACT tuning for the two models. However, our results demonstrate ACT can improve performance regardless of pre-existing alignment with human feedback, although it can help as an improved model initialization. Overall, we find that improving base model performance with ACT is model agnostic.
+
+# 6 CONCLUSION
+
+We propose $ACT$ , a model agnostic quasi-online contrastive tuning approach for sample-efficient conversational task adaptation, along with a workflow for evaluation of conversational agents. We demonstrate encouraging evidence that $ACT$ is highly effective for task adaptation in the limited data regime, even when there are no action labels available. Future work may also consider combining $ACT$ with existing sophisticated tuning approaches for complex tasks like text-to-SQL generation, as well as generalization to large-scale data and multi-task environments.
+
+# REFERENCES
+
+Rishabh Agarwal, Avi Singh, Lei M Zhang, Bernd Bohnet, Luis Rosias, Stephanie Chan, Biao Zhang, Ankesh Anand, Zaheer Abbas, Azade Nova, et al. Many-shot in-context learning. arXiv preprint arXiv:2404.11018, 2024.
+James E Allen, Curry I Guinn, and Eric Horvitz. Mixed-initiative interaction. IEEE Intelligent Systems and their Applications, 14(5):14-23, 1999.
+Saleema Amershi, Dan Weld, Mihaela Vorvoreanu, Adam Fourney, Besmira Nushi, Penny Collisson, Jina Suh, Shamsi Iqbal, Paul N Bennett, Kori Inkpen, et al. Guidelines for human-ai interaction. In Proceedings of the 2019 chi conference on human factors in computing systems, pp. 1-13, 2019.
+Anthropic AI. The claude 3 model family: Opus, sonnet, haiku. Claude-3 Model Card, 1, 2024.
+Mohammad Gheshlaghi Azar, Zhaohan Daniel Guo, Bilal Piot, Remi Munos, Mark Rowland, Michal Valko, and Daniele Calandriello. A general theoretical paradigm to understand learning from human preferences. In International Conference on Artificial Intelligence and Statistics, pp. 4447-4455. PMLR, 2024.
+Yuntao Bai, Andy Jones, Kamal Ndousse, Amanda Askell, Anna Chen, Nova DasSarma, Dawn Drain, Stanislav Fort, Deep Ganguli, Tom Henighan, et al. Training a helpful and harmless assistant with reinforcement learning from human feedback. arXiv preprint arXiv:2204.05862, 2022.
+Pieter J Beers, Henny PA Boshuizen, Paul A Kirschner, and Wim H Gijselaers. Common ground, complex problems and decision making. Group decision and negotiation, 15:529-556, 2006.
+Senthilkumar Chandramohan, Matthieu Geist, Fabrice Lefevre, and Olivier Pietquin. User simulation in dialogue systems using inverse reinforcement learning. In Interspeech 2011, pp. 1025-1028, 2011.
+Maximillian Chen, Alexandros Papangelis, Chenyang Tao, Andy Rosenbaum, Seokhwan Kim, Yang Liu, Zhou Yu, and Dilek Hakkani-Tur. Weakly supervised data augmentation through prompting for dialogue understanding. In NeurIPS 2022 Workshop on Synthetic Data for Empowering ML Research, 2022a.
+Maximillian Chen, Weiyan Shi, Feifan Yan, Ryan Hou, Jingwen Zhang, Saurav Sahay, and Zhou Yu. Seamlessly integrating factual information and social content with persuasive dialogue. In Proceedings of the 2nd Conference of the Asia-Pacific Chapter of the Association for Computational Linguistics and the 12th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), pp. 399-413, 2022b.
+Maximillian Chen, Alexandros Papangelis, Chenyang Tao, Seokhwan Kim, Andy Rosenbaum, Yang Liu, Zhou Yu, and Dilek Hakkani-Tur. Places: Prompting language models for social conversation synthesis. In Findings of the Association for Computational Linguistics: EACL 2023, pp. 844-868, 2023a.
+Maximillian Chen, Xiao Yu, Weiyan Shi, Urvi Awasthi, and Zhou Yu. Controllable mixed-initiative dialogue generation through prompting. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), pp. 951-966, 2023b.
+Yun-Nung Chen, Asli Celikyilmaz, and Dilek Hakkani-Tur. Deep learning for dialogue systems. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics: Tutorial Abstracts, pp. 8-14, 2017.
+Zixiang Chen, Yihe Deng, Huizhuo Yuan, Kaixuan Ji, and Quanquan Gu. Self-play fine-tuning converts weak language models to strong language models. arXiv preprint arXiv:2401.01335, 2024.
+Yi Cheng, Wenge Liu, Wenjie Li, Jiashuo Wang, Ruihui Zhao, Bang Liu, Xiaodan Liang, and Yefeng Zheng. Improving multi-turn emotional support dialogue generation with lookahead strategy planning. In Yoav Goldberg, Zornitsa Kozareva, and Yue Zhang (eds.), Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, pp. 3014-3026,
+
+Abu Dhabi, United Arab Emirates, December 2022. Association for Computational Linguistics. doi: 10.18653/v1/2022.emnlp-main.195. URL https://aclanthology.org/2022.emnlp-main.195.
+Paul F Christiano, Jan Leike, Tom Brown, Miljan Martic, Shane Legg, and Dario Amodei. Deep reinforcement learning from human preferences. Advances in neural information processing systems, 30, 2017.
+Jennifer Chu-Carroll. Mimic: An adaptive mixed initiative spoken dialogue system for information queries. In Sixth Applied Natural Language Processing Conference, pp. 97-104, 2000.
+Ganqu Cui, Lifan Yuan, Ning Ding, Guanming Yao, Wei Zhu, Yuan Ni, Guotong Xie, Zhiyuan Liu, and Maosong Sun. Ultrafeedback: Boosting language models with high-quality feedback. arXiv preprint arXiv:2310.01377, 2023.
+Yang Deng, Wenqiang Lei, Wenxuan Zhang, Wai Lam, and Tat-Seng Chua. PACIFIC: towards proactive conversational question answering over tabular and textual data in finance. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, EMNLP 2022, 2022.
+Yang Deng, Wenqiang Lei, Minlie Huang, and Tat-Seng Chua. Goal awareness for conversational ai: proactivity, non-collaborativity, and beyond. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 6: Tutorial Abstracts), pp. 1-10, 2023a.
+Yang Deng, Lizi Liao, Liang Chen, Hongru Wang, Wenqiang Lei, and Tat-Seng Chua. Prompting and evaluating large language models for proactive dialogues: Clarification, target-guided, and non-collaboration. In Findings of the Association for Computational Linguistics: EMNLP 2023, pp. 10602-10621, 2023b.
+Yang Deng, Wenxuan Zhang, Wai Lam, See-Kiong Ng, and Tat-Seng Chua. Plug-and-play policy planner for large language model powered dialogue agents. In The Twelfth International Conference on Learning Representations, 2023c.
+Ning Ding, Yulin Chen, Bokai Xu, Yujia Qin, Shengding Hu, Zhiyuan Liu, Maosong Sun, and Bowen Zhou. Enhancing chat language models by scaling high-quality instructional conversations. In The 2023 Conference on Empirical Methods in Natural Language Processing, 2023.
+Guanting Dong, Hongyi Yuan, Keming Lu, Chengpeng Li, Mingfeng Xue, Dayiheng Liu, Wei Wang, Zheng Yuan, Chang Zhou, and Jingren Zhou. How abilities in large language models are affected by supervised fine-tuning data composition. arXiv preprint arXiv:2310.05492, 2023.
+Dheeru Dua, Yizhong Wang, Pradeep Dasigi, Gabriel Stanovsky, Sameer Singh, and Matt Gardner. Drop: A reading comprehension benchmark requiring discrete reasoning over paragraphs. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pp. 2368-2378, 2019.
+Gemini Team, Rohan Anil, Sebastian Borgeaud, Yonghui Wu, Jean-Baptiste Alayrac, Jiahui Yu, Radu Soricut, Johan Schalkwyk, Andrew M Dai, Anja Hauth, et al. Gemini: a family of highly capable multimodal models. arXiv preprint arXiv:2312.11805, 2023.
+Gemma Team, Thomas Mesnard, Cassidy Hardin, Robert Dadashi, Surya Bhupatiraju, Shreya Pathak, Laurent Sifre, Morgane Riviere, Mihir Sanjay Kale, Juliette Love, et al. Gemma: Open models based on gemini research and technology. arXiv preprint arXiv:2403.08295, 2024.
+Meiqi Guo, Mingda Zhang, Siva Reddy, and Malihe Alikhani. Abg-coqa: Clarifying ambiguity in conversational question answering. In 3rd Conference on Automated Knowledge Base Construction, 2021.
+Shangmin Guo, Biao Zhang, Tianlin Liu, Tianqi Liu, Misha Khalman, Felipe Llinares, Alexandre Rame, Thomas Mesnard, Yao Zhao, Bilal Piot, et al. Direct language model alignment from online ai feedback. arXiv preprint arXiv:2402.04792, 2024.
+
+Shengyi Huang, Michael Noukhovitch, Arian Hosseini, Kashif Rasul, Weixun Wang, and Lewis Tunstall. The n+ implementation details of rlhf with ppo: A case study on tl; dr summarization. arXiv preprint arXiv:2403.17031, 2024.
+Albert Q Jiang, Alexandre Sablayrolles, Arthur Mensch, Chris Bamford, Devendra Singh Chaplot, Diego de las Casas, Florian Bressand, Gianna Lengyel, Guillaume Lample, Lucile Saulnier, et al. Mistral 7b. arXiv preprint arXiv:2310.06825, 2023.
+Nitish Shirish Keskar, Bryan McCann, Lav R Varshney, Caiming Xiong, and Richard Socher. Ctrl: A conditional transformer language model for controllable generation. arXiv preprint arXiv:1909.05858, 2019.
+Florian Kreyssig, Inigo Casanueva, Paweł Budzianowski, and Milica Gasic. Neural user simulation for corpus-based policy optimisation of spoken dialogue systems. In Proceedings of the 19th Annual SIGdial Meeting on Discourse and Dialogue, pp. 60-69, 2018.
+Harrison Lee, Samrat Phatale, Hassan Mansoor, Kellie Lu, Thomas Mesnard, Colton Bishop, Victor Carbune, and Abhinav Rastogi. Rlaif: Scaling reinforcement learning from human feedback with ai feedback. arXiv preprint arXiv:2309.00267, 2023.
+Oliver Lemon. Conversational interfaces. In Data-Driven Methods for Adaptive Spoken Dialogue Systems: Computational Learning for Conversational Interfaces, pp. 1-4. Springer, 2012.
+Sergey Levine, Aviral Kumar, George Tucker, and Justin Fu. Offline reinforcement learning: Tutorial, review, and perspectives on open problems. arXiv preprint arXiv:2005.01643, 2020.
+Alisa Liu, Zhaofeng Wu, Julian Michael, Alane Suhr, Peter West, Alexander Koller, Swabha Swayamdipta, Noah A Smith, and Yejin Choi. We're afraid language models aren't modeling ambiguity. In The 2023 Conference on Empirical Methods in Natural Language Processing, 2023.
+Xiao Liu, Hao Yu, Hanchen Zhang, Yifan Xu, Xuanyu Lei, Hanyu Lai, Yu Gu, Hangliang Ding, Kaiwen Men, Kejuan Yang, et al. Agentbench: Evaluating llms as agents. In The Twelfth International Conference on Learning Representations, 2024.
+Donald K Messer. Six common causes of ambiguity. Technical Writing Teacher, 7(2):50-52, 1980.
+Arindam Mitra, Luciano Del Corro, Shweti Mahajan, Andres Codas, Clarisse Simoes, Sahaj Agarwal, Xuxi Chen, Anastasia Razdaibiedina, Erik Jones, Kriti Aggarwal, et al. Orca 2: Teaching small language models how to reason. arXiv preprint arXiv:2311.11045, 2023.
+Subhabrata Mukherjee, Arindam Mitra, Ganesh Jawahar, Sahaj Agarwal, Hamid Palangi, and Ahmed Awadallah. Orca: Progressive learning from complex explanation traces of gpt-4. arXiv preprint arXiv:2306.02707, 2023.
+Erik Nijkamp, Bo Pang, Hiroaki Hayashi, Lifu Tu, Huan Wang, Yingbo Zhou, Silvio Savarese, and Caiming Xiong. Codegen: An open large language model for code with multi-turn program synthesis. In The Eleventh International Conference on Learning Representations, 2023.
+Long Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida, Carroll Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, et al. Training language models to follow instructions with human feedback. Advances in neural information processing systems, 35:27730-27744, 2022.
+Richard Yuanzhe Pang, Weizhe Yuan, Kyunghyun Cho, He He, Sainbayar Sukhbaatar, and Jason Weston. Iterative reasoning preference optimization. arXiv preprint arXiv:2404.19733, 2024.
+Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, et al. Pytorch: An imperative style, high-performance deep learning library. Advances in neural information processing systems, 32, 2019.
+
+Baolin Peng, Xiujun Li, Jianfeng Gao, Jingjing Liu, and Kam-Fai Wong. Deep dyna-q: Integrating planning for task-completion dialogue policy learning. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 2182-2192, 2018.
+Kun Qian, Satwik Kottur, Ahmad Beirami, Shahin Shayandeh, Paul A Crook, Alborz Geramifard, Zhou Yu, and Chinnadhurai Sankar. Database search results disambiguation for task-oriented dialog systems. In Proceedings of the 2022 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pp. 1158-1173, 2022.
+Rafael Rafailov, Archit Sharma, Eric Mitchell, Christopher D Manning, Stefano Ermon, and Chelsea Finn. Direct preference optimization: Your language model is secretly a reward model. Advances in Neural Information Processing Systems, 36, 2024.
+Nils Reimers and Iryna Gurevych. Sentence-bert: Sentence embeddings using siamese bert-networks. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), pp. 3982-3992, 2019.
+Julian Risch, Timo Möller, Julian Gutsch, and Malte Pietsch. Semantic answer similarity for evaluating question answering models. In Proceedings of the 3rd Workshop on Machine Reading for Question Answering, pp. 149-157, 2021.
+M David Sadek. Dialogue acts are rational plans. In The Structure of Multimodal Dialogue; Second VENACO Workshop, 1991.
+Pararth Shah, Dilek Hakkani-Tur, Bing Liu, and Gökhan Tür. Bootstrapping a neural conversational agent with dialogue self-play, crowdsourcing and on-line reinforcement learning. In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 3 (Industry Papers), pp. 41-51, 2018.
+Taiwei Shi, Zhuoer Wang, Longqi Yang, Ying-Chun Lin, Zexue He, Mengting Wan, Pei Zhou, Sujay Jauhar, Xiaofeng Xu, Xia Song, et al. Wildfeedback: Aligning lms with in-situ user interactions and feedback. arXiv preprint arXiv:2408.15549, 2024.
+Charlie Snell, Jaehoon Lee, Kelvin Xu, and Aviral Kumar. Scaling ltm test-time compute optimally can be more effective than scaling model parameters. arXiv preprint arXiv:2408.03314, 2024.
+Andreas Stolcke, Klaus Ries, Noah Coccaro, Elizabeth Shriberg, Rebecca Bates, Daniel Jurafsky, Paul Taylor, Rachel Martin, Carol Van Ess-Dykema, and Marie Meteer. Dialogue act modeling for automatic tagging and recognition of conversational speech. Computational linguistics, 26(3): 339-373, 2000.
+Ruoxi Sun, Sercan Arik, Rajarishi Sinha, Hootan Nakhost, Hanjun Dai, Pengcheng Yin, and Tomas Pfister. SQLprompt: In-context text-to-sql with minimal labeled data. In Findings of the Association for Computational Linguistics: EMNLP 2023, pp. 542-550, 2023a.
+Ruoxi Sun, Sercan O Arik, Hootan Nakhost, Hanjun Dai, Rajarishi Sinha, Pengcheng Yin, and Tomas Pfister. SQL-palm: Improved large language modeladaptation for text-to-sql. arXiv preprint arXiv:2306.00739, 2023b.
+Yuchong Sun, Che Liu, Kun Zhou, Jinwen Huang, Ruihua Song, Wayne Xin Zhao, Fuzheng Zhang, Di Zhang, and Kun Gai. Parrot: Enhancing multi-turn instruction following for large language models. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 9729-9750, 2024.
+Matthew Toles, Yukun Huang, Zhou Yu, and Luis Gravano. Pragmatic evaluation of clarifying questions with fact-level masking. arXiv preprint arXiv:2310.11571, 2023.
+Lewis Tunstall, Edward Beeching, Nathan Lambert, Nazneen Rajani, Kashif Rasul, Younes Belkada, Shengyi Huang, Leandro von Werra, Clémentine Fourrier, Nathan Habib, et al. Zephyr: Direct distillation of lm alignment. arXiv preprint arXiv:2310.16944, 2023.
+
+Dirk Väth, Lindsey Vanderlyn, and Ngoc Thang Vu. Conversational tree search: A new hybrid dialog task. In Proceedings of the 17th Conference of the European Chapter of the Association for Computational Linguistics, pp. 1264-1280, 2023.
+Sihan Wang, Kaijie Zhou, Kunfeng Lai, and Jianping Shen. Task-completion dialogue policy learning via Monte Carlo tree search with dueling network. In Bonnie Webber, Trevor Cohn, Yulan He, and Yang Liu (eds.), Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pp. 3461-3471, Online, November 2020a. Association for Computational Linguistics. doi: 10.18653/v1/2020.emnlp-main.278. URL https://aclanthology.org/2020.emnlp-main.278.
+Sihan Wang, Kaijie Zhou, Kunfeng Lai, and Jianping Shen. Task-completion dialogue policy learning via monte carlo tree search with dueling network. In Proceedings of the 2020 conference on empirical methods in natural language processing (EMNLP), pp. 3461-3471, 2020b.
+Xingyao Wang, Zihan Wang, Jiateng Liu, Yangyi Chen, Lifan Yuan, Hao Peng, and Heng Ji. Mint: Evaluating llms in multi-turn interaction with tools and language feedback. In The Twelfth International Conference on Learning Representations, 2023.
+Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Fei Xia, Ed Chi, Quoc V Le, Denny Zhou, et al. Chain-of-thought prompting elicits reasoning in large language models. Advances in neural information processing systems, 35:24824-24837, 2022.
+Tsung-Hsien Wen, Milica Gasic, Nikola Mrksic, Lina M Rojas-Barahona, Pei-Hao Su, Stefan Ultes, David Vandyke, and Steve Young. Conditional generation and snapshot learning in neural dialogue systems. arXiv preprint arXiv:1606.03352, 2016.
+Thomas Wolf, Lysandre Debut, Victor Sanh, Julien Chaumont, Clement Delangue, Anthony Moi, Pierrick Cistac, Tim Rault, Rémi Louf, Morgan Funtowicz, Joe Davison, Sam Shleifer, Patrick von Platen, Clara Ma, Yacine Jernite, Julien Plu, Canwen Xu, Teven Le Scao, Sylvain Gugger, Mariama Drame, Quentin Lhoest, and Alexander M. Rush. Transformers: State-of-the-art natural language processing. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing: System Demonstrations, pp. 38-45, Online, October 2020. Association for Computational Linguistics. URL https://www.aclweb.org/anthology/2020.emnlp-demos.6.
+Qingyang Wu, James Gung, Raphael Shu, and Yi Zhang. Diacttod: Learning generalizable latent dialogue acts for controllable task-oriented dialogue systems. In Proceedings of the 24th Annual Meeting of the Special Interest Group on Discourse and Dialogue, pp. 255-267, 2023.
+Canwen Xu, Corby Rosset, Luciano Del Corro, Shweti Mahajan, Julian McAuley, Jennifer Neville, Ahmed Hassan Awadallah, and Nikhil Rao. Contrastive post-training large language models on data curriculum. In Findings of the Association for Computational Linguistics: NAACL 2024, 2024a.
+Jing Xu, Andrew Lee, Sainbayar Sukhbaatar, and Jason Weston. Some things are more cringe than others: Preference optimization with the pairwise cringe loss. arXiv preprint arXiv:2312.16682, 2023.
+Shusheng Xu, Wei Fu, Jiaxuan Gao, Wenjie Ye, Weilin Liu, Zhiyu Mei, Guangju Wang, Chao Yu, and Yi Wu. Is dpo superior to ppo for llm alignment? a comprehensive study. arXiv preprint arXiv:2404.10719, 2024b.
+Jingxuan Yang, Si Li, and Jun Guo. Multi-turn target-guided topic prediction with monte carlo tree search. In Proceedings of the 18th International Conference on Natural Language Processing (ICON), pp. 324-334, 2021.
+Dian Yu and Zhou Yu. Midas: A dialog act annotation scheme for open domain humanmachine spoken conversations. In Proceedings of the 16th Conference of the European Chapter of the Association for Computational Linguistics: Main Volume. Association for Computational Linguistics, 2021.
+Tao Yu, Rui Zhang, Kai Yang, Michihiro Yasunaga, Dongxu Wang, Zifan Li, James Ma, Irene Li, Qingning Yao, Shanelle Roman, et al. Spider: A large-scale human-labeled dataset for complex and cross-domain semantic parsing and text-to-sql task. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pp. 3911-3921, 2018.
+
+Tao Yu, Rui Zhang, He Yang Er, Suyi Li, Eric Xue, Bo Pang, Xi Victoria Lin, Yi Chern Tan, Tianze Shi, Zihan Li, et al. Cosql: A conversational text-to-sql challenge towards cross-domain natural language interfaces to databases. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), 2019.
+Xiao Yu, Maximillian Chen, and Zhou Yu. Prompt-based monte-carlo tree search for goal-oriented dialogue policy planning. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pp. 7101-7125, 2023.
+Zhou Yu. Situated intelligent interactive systems. PhD thesis, Carnegie Mellon University, 2017.
+Weizhe Yuan, Richard Yuanzhe Pang, Kyunghyun Cho, Sainbayar Sukhbaatar, Jing Xu, and Jason Weston. Self-rewarding language models. arXiv preprint arXiv:2401.10020, 2024.
+Tiancheng Zhao, Kaige Xie, and Maxine Eskenazi. Rethinking action spaces for reinforcement learning in end-to-end dialog agents with latent variable models. In Proceedings of NAACL-HLT, pp. 1208-1218, 2019.
+Yao Zhao, Rishabh Joshi, Tianqi Liu, Misha Khalman, Mohammad Saleh, and Peter J Liu. Slic-hf: Sequence likelihood calibration with human feedback. arXiv preprint arXiv:2305.10425, 2023.
+Rui Zheng, Shihan Dou, Songyang Gao, Yuan Hua, Wei Shen, Binghai Wang, Yan Liu, Senjie Jin, Qin Liu, Yuhao Zhou, et al. Secrets of rlhf in large language models part i: Ppo. arXiv preprint arXiv:2307.04964, 2023.
+George KingsleyZipf.Human behavior and the principle of least effort.1949.
+
+# Prompt $(\mathbf{p_i})$ ..
+
+You are a helpful Assistant answering some questions from a User about a Story. Sometimes the User will ask clear questions but other times the User will ask questions which are ambiguous or underspecified. [Story]
+
+Materialism is a form of philosophical monism which holds that matter is the fundamental substance in nature, and that all phenomena, including mental phenomena and consciousness, are identical with material interactions.
+
+Materialism is closely related to physicalism, the view that all that exists is ultimately physical. Philosophical physicalism has evolved from materialism with the discoveries of the physical sciences to incorporate more sophisticated notions of physicality than mere ordinary matter, such as: spacetime, physical energies and forces, dark matter, and so on. Thus the term "physicalism" is preferred over "materialism" by some, while others use the terms as if they are synonymous.
+
+Materialism belongs to the class of monist ontology. As such, it is different from ontological theories based on dualism or pluralism. For singular explanations of the phenomenal reality, materialism would be in contrast to idealism, neutral monism, and spiritualism.
+
+Despite the large number of philosophical schools and subtle nuances between many, all philosophies are said to fall into one of two primary categories, which are defined in contrast to each other: Idealism, and materialism.[a] The basic proposition of these two categories pertains to the nature of reality, and the primary distinction between them is the way they answer two fundamental questions: "what does reality consist of?" and "how does it originate?" To idealists, spirit or mind or the objects of mind (ideas) are primary, and matter secondary. To materialists, matter is primary, and mind or spirit or ideas are secondary, the product of matter acting upon matter. [Conversation]
+
+User: What would be secondary to them?
+
+Assistant: matter is primary, and mind or spirit or ideas are secondar
+
+User: What does the basic proposition of these two categories pertain to?
+
+Assistant: nature of reality
+
+User: What would materialism be in contrast to Assistant:
+
+Chosen Response $(\mathbf{y}_{\mathbf{wi}})$ : Do you want to know what materialism would be in contrast to for singular explanations of the phenomenal reality or for the categories that all philosophies are said to fall into?
+
+# Chosen Action $(\mathbf{a_j})$ :CLARIFY
+
+Rejected Response $(\mathbf{y}_{\mathrm{II}})$ : For singular explanations of phenomenal reality, materialism contrasts with idealism, neutral monism, and spiritualism.
+
+# Rejected Action $(\mathbf{a_i}^{\prime})$ : Answer
+
+Information Goal $(\mathbf{g}_i)$ : In the context of the two primary philosophical categories, materialism is contrasted with idealism.
+
+# Gold Trajectory:
+
+Assistant: Do you want to know what materialism would be in contrast to for singular explanations of the phenomena reality or for the categories that all philosophies are said to fall into?
+
+User: For the categories that all philosophies are said to fall into.
+
+Assistant: In the context of the two primary philosophical categories, materialism is contrasted with idealism."
+
+Figure A4: Example of a contrastive pairing constructed for RL tuning with Abg-CoQA (Guo et al., 2021). The notation used is as described in Section 3.1.
+
+# A LIMITATIONS, ETHICAL CONSIDERATIONS, AND BROADER IMPACTS
+
+# A.1 DISCUSSION OF LIMITATIONS
+
+We assume that the clarification questions are appropriately timed. However, crowdsourced conversation datasets are often noisy (Chen et al., 2023b), and relying on noisy annotations or token sequences may result in suboptimal learned policies (from the perspective of asking unnecessary clarifying questions, as well as generating disfluent language). Depending on the source of data, it may be necessary to do an additional preprocessing stage in which one infers whether an action is useful or not. Shi et al. (2024) infers user satisfaction given model responses in-the-wild, whereas Yu et al. (2023) ranks dialogue actions using Monte-Carlo Tree Search.
+
+Label noise can also affect the implicit action recognition evaluation, which assumes that an action in a benchmark task is "optimal." In a corpus like PACIFIC with high inter-annotator agreement (0.62), this is a reasonable assumption. However, we observe inconsistency in Abg-CoQA which may be a result of the low inter-annotator agreement (0.26) reported in Guo et al. (2021). Recent work has demonstrated the promise of many-shot in-context learning Agarwal et al. (2024) compared to supervised fine-tuning at the trade-off of inference-time latency. Yet, Table A6 indicates that even with a greatly increased number of in-context conversation examples (e.g. 50, 100, and 250), the
+
+
+Figure A5: Trajectory-level content evaluation using the example scenario from Figure 1. Trajectory-level evaluation seeks to measure the extent to which a candidate LLM can interact with a "User" to reach a target information goal. The "interactive" evaluation of a given instance continues until the candidate LLM attempts to resolve the User's request by providing a direct answer. The candidate trajectory resolution is scored using downstream task metrics. In this example, DROP F1 is used following the task metrics for PACIFIC.
+
+Table A6: Analysis of the impact of additional data on Abg-CoQA. Additionally many-shot examples do not necessarily improve implicit action recognition performance. ACT tuning with Zephyr 7B greatly outperforms many-shot Gemini performance.
+
+
Adaptation Setting
Action-level
Content-level
Base Model
Approach
Conversations
Macro F1 ↑
Turn Similarity ↑
Traj. Similarity ↑
Gemini Pro
ICL
50
56.4
64.5
68.9
Zephyr 7B-β
ACT (ours)
50
52.3
66.2
68.8
Gemini Pro
ICL
100
59.2
67.0
72.0
Zephyr 7B-β
ACT (ours)
100
51.1
69.5
71.4
Gemini Pro
ICL
250
58.8
66.0
71.1
Zephyr 7B-β
ACT (ours)
250
53.3
72.5
75.1
+
+downstream disambiguation ability does not improve uniformly. We thus posit that in such scenarios, it is more important that for such corpora, multi-turn task completion is a more important measure of a model. We do find that even with 250 in-context examples, tuning a smaller model with $ACT$ and the same conversation samples has the potential to outperform frontier models with many-shot examples.
+
+$ACT$ also makes use of task-specific heuristics. While this was intentional since success criteria can vary greatly across domains, this may also require more customization and engineering expertise/effort. Our overall approach to tuning and evaluation also makes heavy use of existing LLMs. We prompt Gemini for purposes such as Action Classification or User Simulation, but such approaches are not perfect and may occasionally result in unwanted behavior. These prompting approaches similarly may require substantial customization efforts. We also realize that not all researchers may have access to commercial LLMs due to researchers for financial or privacy reasons.
+
+Our study also focuses specifically on the limited data regime. We believe that such contexts (e.g., when the target user population is unknown; when conversational data cannot be collected due to privacy concerns; when a conversational system is in its early stages and collecting abundant data for development iteration is not feasible; etc.) would benefit the most from focused adaptation designed to fundamentally teach conversational skills approaches such as $ACT$ . As such, in our paper, this was the focus of all of our experiments. It is not clear how much our findings would generalize in settings in which there is an abundance of training data whose distribution closely matches the target
+
+distribution. Intuitively, if much more in-distribution data is made available, even the performance of unaligned objectives like SFT would start to catch up to the performance of focused approaches.
+
+Is ACT online learning? Levine et al. (2020) defines offline reinforcement learning as using a fixed dataset of experiences, whereas online reinforcement learning relies on interacting with an environment in real-time. Additionally, Guo et al. (2024) defines on-policy sampling in contrastive RL tuning as settings where both the winning and losing responses are sampled from the policy model. In our case, during tuning, we sample a single response from the policy model.
+
+As such, we define $ACT$ as a quasi-online contrastive RL tuning approach. $ACT$ does rely on action-based preference dataset, as is common in fully-offline reinforcement learning. However, $ACT$ continuously samples responses from the policy model in order to update the contrast pairing with good or bad trajectories. Overall, it has both dynamic and static components, so we refer to it as quasi-online. $ACT$ also specifically is different from fully online DPO where both the winning and losing responses are sampled (i.e. in Guo et al. (2024)) because our focus is on conversational actions. There is no guarantee that sampling a response from the policy model twice will result in differing actions, unless you change the prompt. However, in that case, you would no longer be computing the DPO objective.
+
+By nature of the domains considered, the extent to which $ACT$ allows for online exploration is also limited. As previously mentioned, our experiments are constrained by the fact that there is an objective right/wrong target answer. For instance, if the target answer is an arithmetic expression as is common in PACIFIC, there are a fairly limited number of unique trajectories (when inspected in terms of the number of tokens) that will arrive at that particular expression. In such cases, the trajectory sampled from the policy model during $ACT$ tuning may not be any different from the offline trajectory found in the training data.
+
+# A.2 ETHICAL CONSIDERATIONS
+
+Usage and Safety We do not condone the use of our work for any unethical, unlawful, and/or harmful applications. In our work, we do not release any new model artifacts or web-scraped data, but we do not specifically introduce any model guardrails as a part of $ACT$ . However, our implementation of $ACT$ relies on other LLMs such as Gemini to produce an initial preference dataset, and to perform user simulation. Gemini is released with safety guardrails in place, but these inference-time guardrails may not be available when using open-source LLMs instead. We advise that any deployments of models tuned with $ACT$ should consider adding safety guardrails at inference-time.
+
+Hallucinations One commonly documented concern with using LLMs is their tendency to hallucinate answers in Assistant QA contexts. A solution is to provide an LLM with information from a retriever (i.e., retrieval-augmented generation). Two of the datasets we use, PACIFIC and Abg-CoQA, mirror this setting by performing grounded QA using a mixture of long-context textual passages and tabular data. It follows that ACT could be further studied in combination with approaches for improved retrieval-augmented generation.
+
+Our evaluation criteria in this paper are also rather restrictive towards hallucinations. In PACIFIC, we use a token-level metric (DROP F1); in Abg-CoQA, we evaluate a candidate response's semantic similarity with a ground truth answer; in AmbigSQL we use execution match, which is a fully objective metric. As such, it is difficult to perform well on PACIFIC and Abg-CoQA if a model consistently hallucinates answers, and in AmbigSQL, a "hallucinated" response would not consist of the appropriate SQL code.
+
+# A.3 BROADER IMPACTS
+
+There is an abundance of modern conversational assistants. $ACT$ seeks to improve multi-turn conversational experiences, and thus, it can be used to improve many applications used by potentially millions of users around the world. However, the popularity of conversational assistants also creates an increased risk of misuse. Some people may develop conversational for unethical applications such as misinformation generation, or gray areas such as optimizing dialogue generation for content which is not suitable for the workplace. As discussed above, we do not condone the use of $ACT$ for any
+
+Table A7: Experimental results on PACIFIC's public evaluation set with additional results using Gemini Flash and Claude Haiku. ACT achieves the strongest performance compared to all tuning approaches across every condition in every metric. Tuning-based adaptation strategies are not given any in-context examples at inference time, whereas inference-time adaptation strategies are prompted with 10 in-context conversation examples using the same strategy.
+
+
Adaption Setting
Action-level
Content-level
Base Model
Approach
Conversations
Macro F1 ↑
Turn F1 ↑
Traj. F1 ↑
Post-Clarify F1 ↑
Gemini Pro
Standard Prompt
10
81.4
59.7
58.7
49.7
Gemini Pro
Chain-of-Thought
10
86.3
66.3
17.1
19.2
Gemini Pro
Proactive MIPrompt
10
78.9
63.4
61.1
18.9
Gemini Flash
Standard Prompt
10
67.4
58.8
58.7
17.9
Gemini Flash
Chain-of-Thought
10
77.1
62.0
16.9
20.0
Gemini Flash
Proactive MIPrompt
10
76.8
64.0
62.0
24.4
Claude Sonnet
Standard Prompt
10
71.9
43.7
42.0
28.5
Claude Sonnet
Chain-of-Thought
10
80.0
37.2
13.0
6.8
Claude Sonnet
Proactive MIPrompt
10
74.9
47.2
45.9
7.6
Claude Haiku
Standard Prompt
10
46.9
26.4
26.2
—
Claude Haiku
Chain-of-Thought
10
48.6
23.7
12.0
2.9
Claude Haiku
Proactive MIPrompt
10
48.3
18.6
18.2
7.3
Gemini Pro
SFT
50
71.2
51.8
45.7
9.9
Gemini Pro
SFT
100
75.2
64.3
54.6
8.5
Gemini Pro
SFT
250
88.0
67.4
59.3
10.2
Zephyr 7B-β
SFT
50
69.0
57.8
61.3
43.5
Zephyr 7B-β
DPO-Dist (Pro v. Flash)
50
75.5
61.7
55.7
30.8
Zephyr 7B-β
DPO-Dist (Sonnet v. Haiku)
50
74.8
62.0
56.3
31.9
Zephyr 7B-β
IRPO
50
67.7
59.1
56.7
34.4
Zephyr 7B-β
ACT (ours)
50
82.2
62.8
61.9
57.2
Zephyr 7B-β
SFT
100
82.3
58.6
60.3
49.9
Zephyr 7B-β
DPO-Dist (Pro v. Flash)
100
68.8
53.3
53.3
31.7
Zephyr 7B-β
DPO-Dist (Sonnet v. Haiku)
100
83.0
59.0
53.7
29.3
Zephyr 7B-β
IRPO
100
84.5
60.4
55.2
38.2
Zephyr 7B-β
ACT (ours)
100
86.0
65.0
62.0
57.4
Zephyr 7B-β
SFT
250
86.9
65.1
63.3
56.7
Zephyr 7B-β
DPO-Dist (Pro v. Flash)
250
65.6
53.6
54.1
30.9
Zephyr 7B-β
DPO-Dist (Sonnet v. Haiku)
250
82.8
43.3
38.6
19.6
Zephyr 7B-β
IRPO
250
85.4
64.9
58.4
40.3
Zephyr 7B-β
ACT (ours)
250
89.6
68.1
65.7
62.0
+
+unethical, harmful, or unlawful applications, and we suggest the usage of safety guardrails for any deployments.
+
+# B ADDITIONAL EXPERIMENTAL RESULTS
+
+As described in Section 4.3, we include additional prompting experiments using Gemini 1.5 Flash and Claude 3.0 Haiku using Standard Prompting, Chain-of-Thought Prompting, and Proactive Mixed-Initiative Prompting. We also include additional comparisons against an off-policy DPO baseline, DPO-Dist, which involves distilling from two LLMs of differing sizes. The full results for PACIFIC are displayed in Table A7, the full results for Abg-CoQA are in Table A8, and the full results for AmbigSQL are in Table A9.
+
+Table A8: Abg-CoQA test set evaluation results with additional results using Gemini Flash and Claude Haiku. $ACT$ outperforms SFT across all evaluations in all three data settings. However, Gemini Ultra achieves the strongest downstream task performance when prompted with in-distribution in-context conversation examples.
+
+
Adaptation Setting
Action-level
Content-level
Base Model
Approach
Conversations
Macro F1 ↑
Turn Similarity ↑
Traj. Similarity ↑
Gemini Pro
Standard Prompt
10
55.5
67.0
72.2
Gemini Pro
Chain-of-Thought
10
61.2
63.4
39.1
Gemini Pro
Proactive MIPrompt
10
55.5
63.3
33.3
Gemini Flash
Standard Prompt
10
52.6
62.5
67.4
Gemini Flash
Chain-of-Thought
10
61.2
56.5
36.6
Gemini Flash
Proactive MIPrompt
10
58.1
61.7
36.1
Claude Sonnet
Standard Prompt
10
66.0
50.1
54.3
Claude Sonnet
Chain-of-Thought
10
63.7
46.2
36.8
Claude Sonnet
Proactive MIPrompt
10
57.2
60.8
32.9
Claude Haiku
Standard Prompt
10
49.3
40.9
41.7
Claude Haiku
Chain-of-Thought
10
46.2
30.7
28.0
Claude Haiku
Proactive MIPrompt
10
45.2
34.5
31.4
Zephyr 7B-β
SFT
50
44.6
53.3
64.2
Zephyr 7B-β
DPO-Dist (Pro v. Flash)
50
46.9
57.2
61.2
Zephyr 7B-β
DPO-Dist (Sonnet v. Haiku)
50
44.7
57.9
61.5
Zephyr 7B-β
ACT (ours)
50
52.3
66.2
68.8
Zephyr 7B-β
SFT
100
52.6
63.1
69.4
Zephyr 7B-β
DPO-Dist (Pro v. Flash)
100
47.8
61.9
67.1
Zephyr 7B-β
DPO-Dist (Sonnet v. Haiku)
100
44.8
62.0
66.4
Zephyr 7B-β
ACT (ours)
100
51.1
69.5
71.4
Zephyr 7B-β
SFT
250
53.5
64.0
66.2
Zephyr 7B-β
DPO-Dist (Pro v. Flash)
250
46.0
61.9
66.3
Zephyr 7B-β
DPO-Dist (Sonnet v. Haiku)
250
46.3
62.6
67.0
Zephyr 7B-β
ACT (ours)
250
53.3
72.5
75.1
+
+Table A9: AmbigSQL test set evaluation with additional results using Gemini Flash and Claude Haiku. Zephyr tuned with $ACT$ is able to achieve the strongest task performance within each data setting. There are especially large performance improvements in post-clarification SQL execution match when data resources are more scarce.
+
+
Adaptation Setting
Action-level
Content-level
Base Model
Approach
Conversations
Accuracy ↑
Execution Match ↑
PC Execution Match ↑
Gemini Pro
Standard Prompt
10
72.1
63.5
75.2
Gemini Flash
Standard Prompt
10
75.6
64.2
66.2
Claude Sonnet
Standard Prompt
10
68.5
66.5
72.4
Claude Haiku
Standard Prompt
10
73.8
57.3
65.3
Zephyr 7B-β
SFT
50
77.4
21.9
13.9
Zephyr 7B-β
DPO-Dist (Pro v. Flash)
50
77.7
42.6
31.5
Zephyr 7B-β
DPO-Dist (Sonnet v. Haiku)
50
78.0
40.9
41.2
Zephyr 7B-β
IRPO
50
91.0
27.8
30.8
Zephyr 7B-β
ACT (ours)
50
80.8
43.6
38.1
Zephyr 7B-β
SFT
100
97.2
43.3
34.3
Zephyr 7B-β
DPO-Dist (Pro v. Flash)
100
98.7
45.1
45.3
Zephyr 7B-β
DPO-Dist (Sonnet v. Haiku)
100
99.8
47.8
44.8
Zephyr 7B-β
IRPO
100
96.2
45.0
37.0
Zephyr 7B-β
ACT (ours)
100
99.2
48.0
49.6
Zephyr 7B-β
SFT
250
99.8
51.0
50.7
Zephyr 7B-β
DPO-Dist (Pro v. Flash)
250
97.3
49.7
44.2
Zephyr 7B-β
DPO-Dist (Sonnet v. Haiku)
250
99.7
50.7
50.3
Zephyr 7B-β
IRPO
250
97.0
49.7
45.6
Zephyr 7B-β
ACT (ours)
250
99.9
52.3
53.0
Zephyr 7B-β
SFT
14,000 (All)
99.8
63.1
60.4
+
+# C AmbigSQL: MODELING Ambiguity IN CONVERSATIONAL TEXT-TO-SQL
+
+Table A10: Overview of AmbigSQL, an ambiguous Text-to-SQL dataset synthesized from Spider.
+
+
Train
Dev
Test
Num. Unambiguous Requests
7,000
1,034
1,034
Num. Ambiguous Requests
7,000
1,034
1,034
Num. Unique Schemas
1,056
145
145
Types of Ambiguity
3
3
3
+
+There is growing interest in using LLM-based agents for coding tasks (Liu et al., 2024). Particularly, due to the complexity of such tasks, multi-turn interactions in which an agent is able to clarify assumptions and user intents should intuitively help with goal completion (Nijkamp et al., 2023). Despite this, there are few existing resources for multi-turn code generation tasks. One example is CoSQL, a conversational text-to-SQL task which also includes linguistic ambiguities (Yu et al., 2019), but the proposed task does not include agent-style interaction in which a model must learn to ask clarifying questions. Upon our inspection of the dataset, there are also various inconsistencies related to the "system-side" clarification questions given in the dataset's conversational contexts, which we highlight in Table A11. As a result, we propose AmbigSQL, our own synthetically constructed resource for ambiguous conversational text-to-SQL.
+
+Table A11: Conversations in CoSQL with noisy "clarification questions" (highlighted in red). Example 1) is a remnant of crowdsourcing in which the system-side party makes mention of the task guideline. Example 2) demonstrates a system-side clarification question being asked prior to the user making any information requests. Example 3) The system-side clarification question makes reference to some prior database search result, but the execution feedback is not made accessible to the system during inference.
+
+
No.
Interacting Party
Utterance
User
Can you list all the singer ids that aren’t present in the song table?
Assistant
SELECT Name FROM singer WHERE Singer_ID NOT IN ...
User
Thanks!
1
Assistant
You should ask at least 3 questions
2
Assistant
Did you want the full name of makers and the number?
3
Assistant
Do you mean the address of the customer with first name Luis?
+
+# C.1 AMBIGSQL CONSTRUCTION
+
+We start from Spider, a popular single-turn text-to-SQL dataset and benchmark. An overview of AmbigSQL is given in Table A10. Due to the nature of the single-turn requests in Spider, each instance can be viewed as a conversation consisting of a single state $t_1$ (see notation defined in Section 3). In $t_1$ , $p_1$ contains any instructions, the database schema, and the user's request. $r_1$ is the correct SQL query which yields the information requested by the user. $g_1 = r_1$ because the trajectory ends on the same turn due to the system yielding the correct query. $a_1 = ANSWER$ because the only action possible is to provide a SQL query.
+
+Our desired result in constructing AmbigSQL is to have a corpus which can be used to demonstrate to an LLM the linguistic differences between ambiguous and clear user requests. That is, given a fixed database schema and a target SQL query, we want a pair of requests such that one requires asking a clarification question and one does not. This would also result in a balanced dataset in which half of the requests require asking clarification questions, and half do not.
+
+We focus on three fundamental types of ambiguous information requests. Those in which the requested information is ambiguous (e.g., "Show details about singers ordered by age from the oldest to the youngest"), those in which the requested population is ambiguous (e.g., "Which ones who live
+
+Table A12: In-context example given as part of a prompt for creating information requests in which the target population is ambiguous. The format of the black text represents how a ground-truth request would be used to form the prompt for a target example. The blue text represents the content that would be synthesized from an LLM. We omit the database schema from the paper.
+```txt
+[Database Schema Omitted]
+The target SQL query is the following:
+SELECT professional_id, last_name, cell_number FROM Professionals
+WHERE state $=$ 'Indiana' UNION SELECT T1.professional_id, T1.last_name, T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id
+GROUP BY T1.professional_id HAVING count $(\star)$ >2
+Here is a clear request that would correspond to this SQL query: "Which professionals live in the state of Indiana or have done treatment on more than 2 treatments? List his or her id, last name and cell phone."
+Here is the same request converted into an ambiguous format by underspecifying the target columns: "Which ones live in the state of Indiana or have done treatment on more than 2 treatments?"
+Here is an appropriate clarifying question to recover the clear request from the ambiguous request: "Are you asking about the Professionals?"
+```
+
+in the state of Indiana?"; see Table A12), and finally, those in which the requested presentation of results is ambiguous (e.g. "Show name, country, age for all singers ordered by age"; see Table A13).
+
+We iterate through each of the examples in Spider, and use an LLM (Gemini Ultra 1.0) to synthesize a perturbed version of each unambiguous query, along with an appropriate clarifying question. For queries which require some manipulation of results presentation, we prompt an LLM to perturb the query such that the requested presentation style becomes ambiguous. Otherwise, we randomly select a perturbation strategy: either masking the requested information (Table A13) or masking the requested population (Table A12). For each of these three strategies, we use five in-context examples demonstrating the appropriate masking process. The exact in-context examples are given in the attached code. Each of these ambiguous queries are thus associated with conversations containing "ground truth" states at two timesteps, $t_1$ and $t_2$ . $p_1$ contains an ambiguous user request, $r_1$ is the synthesized clarification question, and accordingly, $a_1 = \text{CLARIFY}$ . $p_2$ contains the disambiguated user request, $r_2$ is the correct ground truth SQL query, and accordingly, $a_2 = \text{ANSWER}$ .
+
+The code to create AmbigSQL will be released publicly. Each instance includes the database metadata included in Spider, but for all experiments used in this paper, the database schema is linearized into the format used for prompting in Sun et al. (2023a;b).
+
+Table A13: In-context example given as part of a prompt for creating information requests in which the target columns are ambiguous. The format of the black text represents how a ground-truth request would be used to form the prompt for a target example. The blue text represents the content that would be synthesized from an LLM. We omit the database schema from the paper.
+```txt
+[Database Schema Omitted]
+The target SQL query is the following:
+SELECT professional_id, last_name, cell_number FROM Professionals WHERE state $=$ 'Indiana' UNION SELECT T1.professional_id, T1.last_name, T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING count $(\star)$ > 2
+Here is a clear request that would correspond to this SQL query: "Which professionals live in the state of Indiana or have done treatment on more than 2 treatments? List his or her id, last name and cell phone."
+Here is the same request converted into an ambiguous format by underspecifying the target columns: "Which professionals live in the state of Indiana or have done treatment on more than 2 treatments?"
+Here is an appropriate clarifying question to recover the clear request from the ambiguous request: "Which information of the professionals do you want to know?"
+```
+
+Table A14: Examination of ambiguity in AmbigSQL. Competitive high capacity LLMs struggle with producing "correct" SQL queries given only ambiguous user requests. Including disambiguation turns in the prompts greatly improves execution match.
+
+
Model
Ambiguous Request Execution Match
Execution Match with Clarification Turns
Gemini Pro
28.5
68.7
Gemini Ultra
31.2
77.0
+
+# C.2 EXAMINING CLARIFICATION NEED IN AMBIGSQL
+
+We primarily are concerned with examining the extent to which clarification questions are necessary in providing the requested SQL queries. Inspired by the notion of "recovery" presented in Toles et al. (2023), we examine the performance in constructing each of the unique SQL queries with and without the gold clarification turns. Concretely, we first evaluated the Execution Match performance achieved by prompting LLMs with only the ambiguous versions of each user request, with each instruction including the instruction that the LLM must construct a SQL query. Then, we prompted LLMs to construct the same SQL queries, but given the disambiguation turns as conversation history (i.e., with context consisting of the original ambiguous request, the clarification question, and then non-ambiguous request).
+
+We conducted this analysis on the test set using two competitive LLMs, Gemini Pro and Gemini Ultra, with the Execution Match tool from Spider and CoSQL (Yu et al., 2018; 2019). Our results are shown in Table A14. Given only an ambiguous request, both Gemini Pro and Gemini Ultra struggle to consistently construct the correct SQL query. However, given disambiguation turns, Execution Match improves dramatically, approximating the performance on the validation set given in Sun et al. (2023a;b).
+
+# C.3 EXAMPLES
+
+Table A15 and Table A16 each contain a pair of examples from AmbigSQL's test set. Each example contains the prompt which is provided to an LLM, the immediate ground truth response to the user request provided as part of the prompt, and the resulting ground truth trajectory (for examples which include clarifying questions). The examples in each table are paired — the top example is directly taken from Spider and converted into a conversational format, and the bottom example is the result of introducing ambiguity into the first example.
+
+Table A15: Examples from the AmbigSQL test set using the "concert_singer" database. Black text: context provided to an LLM as a prompt. Blue text: ground-truth single-turn response. Purple text: target trajectory which should be achieved through simulation.
+
+
[Instruction]
+You are an Assistant having a conversation with a User who would like to retrieve some information from a SQL database with the schema provided below. If you are confident in the User's intent, you should provide the appropriate SQL query. Otherwise, you should ask the User a clarifying question.
+[Database Schema Omitted]
+[Conversation]
+User: How many singers do we have?
+Assistant: SELECT count(*) FROM singer
[Instruction]
+You are an Assistant having a conversation with a User who would like to retrieve some information from a SQL database with the schema provided below. If you are confident in the User's intent, you should provide the appropriate SQL query. Otherwise, you should ask the User a clarifying question.
+[Database Schema Omitted]
+[Conversation]
+User: Tell me about the singers.
+Assistant: What specifically would you like to know about the singers? For example, would you like to know how many there are, or see a list of their names?
+User: How many singers do we have?
+Assistant: SELECT count(*) FROM singer
+
+Table A16: Examples from the AmbigSQL test set using the "flight_2" database. Black text: context provided to an LLM as a prompt. Blue text: ground-truth single-turn response. Purple text: target trajectory which should be achieved through simulation.
+
+
[Instruction]
+You are an Assistant having a conversation with a User who would like to retrieve some information from a SQL database with the schema provided below. If you are confident in the User's intent, you should provide the appropriate SQL query. Otherwise, you should ask the User a clarifying question.
+[Database Schema Omitted]
+[Conversation]
+User: Return the number of airports.
+Assistant: SELECT count(*) FROM AIRPORTS
[Instruction]
+You are an Assistant having a conversation with a User who would like to retrieve some information from a SQL database with the schema provided below. If you are confident in the User's intent, you should provide the appropriate SQL query. Otherwise, you should ask the User a clarifying question.
+[Database Schema Omitted]
+[Conversation]
+User: How many are there?
+Assistant: Could you please specify which table you are referring to when you ask 'How many are there?'
+User: Return the number of airports.
+Assistant: SELECT count(*) FROM AIRPORTS
+
+# D ADDITIONAL DETAILS ON EVALUATION
+
+We define the following action-level evaluation metrics:
+
+Accuracy: Percentage of correct implicit actions
+- Macro F1: Unweighted Average of F1 for each action
+
+We define the following content-level evaluation metrics:
+
+- Turn-level DROP F1: Average immediate response DROP F1 Deng et al. (2022); Dua et al. (2019)
+- Trajectory-level DROP F1: Average trajectory-outcome DROP F1 Deng et al. (2022); Dua et al. (2019)
+- Post-Clarification DROP F1: Average DROP F1 Deng et al. (2022); Dua et al. (2019) of responses which follow agent clarification turns
+- Turn-level Similarity: Immediate response embedding similarity
+- Trajectory-level Similarity: Trajectory outcome embedding similarity
+- Trajectory-level Execution Match: Percentage of trajectory outcomes with correct execution results
+- Post-Clarification Execution Match: Percentage of trajectory outcomes with correct execution results out of those that which contain clarification turns
+
+PACIFIC As described in Section 4, PACIFIC is a conversational question-answering dataset in which the final answers may involve generating the correct words from a given span, from multiple spans, or providing a correct arithmetic expression. As such, the authors propose using DROP F1 as the official evaluation metric. The way DROP F1 is used in the original paper Deng et al. (2022) is analogous to our aforementioned "Turn-level DROP F1." However, as this does not fully represent a model's conversational reasoning abilities, we additionally evaluate LLMs in the PACIFIC environment using Macro F1, Trajectory-level DROP F1, and Post-Clarification DROP F1. Concretely, the evaluation for some LLM $\pi$ is as follows. Assume we have some example with prompt $p$ , winning action $a$ , ground truth response $r$ , and trajectory-level information goal $g$ . We sample a candidate response from the LLM: $y \sim P_{\theta}(\cdot | p)$ . We then simulate the trajectory resulting from each response $y$ according to Lines 6-12 in Algorithm 2 and obtain trajectory outcome $g'$ . The aforementioned action-level metrics are computed using the implicit actions of each $y$ with each ground truth implicit action $a$ . Turn-level DROP F1 is computed between all sampled responses $y$ and all ground truth responses $r$ , and Trajectory-level DROP F1 is computed over all simulated trajectory outcomes $g'$ and all ground truth information goals $g$ . Post-Clarification F1 is defined as Trajectory-level F1 for only the subset of trajectories which include clarification turns.
+
+Abg-CoQA As previously mentioned in Section 4, Abg-CoQA is a conversational question-answering dataset for machine reading comprehension. Thus, we use embedding similarity Risch et al. (2021) as it allows for producing more coherent and diverse responses which may be scored lowly by criteria such as token-level F1 score. In the original paper, language models are only evaluated in terms of QA performance Guo et al. (2021), rather than their ability to disambiguate requests. Thus, for our evaluation, we remove all clarification turns from the prompt and require the LLM to produce clarifying questions on its own. However, unlike the other tasks considered in this paper, each ambiguous request is paired with all of the possible trajectories (i.e., the reasons why the request is considered ambiguous). We thus perform an evaluation for every ground truth trajectory, so that it is impossible for an LLM to achieve a high cumulative trajectory-level score simply by getting lucky at guessing the user's intent.
+
+Concretely, the evaluation for some LLM $\pi$ is as follows. Assume we have some example with prompt $p$ , winning action $a$ , ground truth response $r$ , and the set of trajectory-level information goals $G$ . For every individual trajectory-level goal $g \in G$ , we sample a candidate response from the LLM: $y \sim P_{\theta}(\cdot | p)$ then simulate the trajectory resulting from each response $y$ according to Lines 6-12 in Algorithm 2 and obtain trajectory outcome $g'$ . As with PACIFIC, we compute Macro F1 using the implicit actions of each $y$ with each ground truth implicit action $a$ . We compute Turn-level similarity for each unique $p$ between sampled responses $y$ and ground truth responses $r$ . We compute
+
+Table A17: "Standard" in-context example given as part of a prompt to an LLM for response generation in PACIFIC. The purple text is the overall system instruction. The blue text is what an LLM would have to produce at inference time.
+
+
You are an Assistant answering questions from a User. You should either attempt to answer the question or ask a clarifying question if there is any ambiguity.
+[Table and Passage Omitted]
+User: How much does the company expect to make contributions to the defined plans during the next fiscal year?
+Assistant: ['What kind of defined plans are you asking about?]
+User: The defined benefit plans and the defined contribution plan respectively.
+Assistant: ['$5.1 million', '$0.6 million']
+User: What is the value of the expected defined contribution plan as a percentage of the defined benefit plan during the next fiscal year?
+Assistant: 0.6/5.1 = 11.76
+User: How much would change if there is a 1% increase and a 1% decrease respectively in the discount rate?
+Assistant: ['What kind of change are you asking about?]
+User: The pension.
+Assistant: ['$(39,145)', '$49,361']
+User: What is the difference in that amount if the discount rate had a 1% increase and a 1% decrease?
+Assistant: 49,361 - (39,145) = 88506
+User: How much would the pension change if there is a 1% increase and a 1% decrease respectively?
+Assistant: ['Which rate of increase and decrease are you talking about?]
+User: The future salary growth.
+Assistant: ['$7,572', "$(6,919)]
+User: What is the difference between them?
+Assistant: 7,572 - (6,919) = 14491
+
+Trajectory-level similarity over all simulated trajectory outcomes $g'$ and all ground truth information goals $g$ .
+
+AmbigSQL is a ambiguous text-to-SQL generation task. By design, the labels are balanced, so we only use Accuracy for action-level metrics. The primary objective is to produce SQL queries which result in correct executions, so we evaluate LLMs in terms of Trajectory-level and Post-Clarification Execution Match. For each instance in the test set, we sample a response from an LLM and compute the trajectory as specified in Lines 6-12 in Algorithm 2. Trajectory-level Execution Match includes SQL queries which are constructed with or without clarification turns, whereas Post-Clarification Execution Match only looks at SQL queries which are constructed following clarification turns.
+
+# E DESCRIPTION OF IN-CONTEXT LEARNING BASELINES
+
+We use several in-context learning baselines with frontier LLMs in Section 4. For each condition, we randomly sample 10 conversation examples from each task's 250-instance data pool, and apply one of the following prompting frameworks.
+
+Standard Prompting We simply provide in-context examples that are structurally identical to the inputs used for model tuning. Our format is similar to the formats used in Chen et al. (2023b); Deng et al. (2023b) and we provide an example in Table A17.
+
+Chain-of-Thought Prompting We integrate the popular reasoning framework, chain-of-thought prompting (Wei et al., 2022) into our aforementioned "Standard" conversational prompt format. Effectively, we ask an LLM to do end-to-end dialogue generation by having it first produce a reasoning chain which states whether the current context is ambiguous or not. We provide an example in Table A18.
+
+Proactive Mixed-Initiative Prompting Following the baselines given in Deng et al. (2023c), we apply the Proactive Prompting framework Deng et al. (2023b) mixed with the Mixed-Initiative Prompting style Chen et al. (2023b). Ultimately, the LLM conditions on the possible set of actions,
+
+Table A18: "Chain-of-Thought" in-context example given as part of a prompt to an LLM for response generation in PACIFIC. The purple text is the overall system instruction. The blue text is what an LLM would have to produce at inference time.
+
+
You are an Assistant answering questions from a User. You should either attempt to answer the question or ask a clarifying question if there is any ambiguity.
+[Table and Passage Omitted]
+User: What is the value of the expected defined contribution plan as a percentage of the defined benefit plan during the next fiscal year?
+Instruction: If the user's question is ambiguous, ask an appropriate clarifying question. Otherwise, directly answer the user's question using the information from the passage context and the table. Let's think step by step.
+Reasoning: The user's question is not ambiguous. Assistant: 0.6/5.1 = 11.76
+User: How much would change if there is a 1% increase and a 1% decrease respectively in the discount rate?
+Instruction: If the user's question is ambiguous, ask an appropriate clarifying question. Otherwise, directly answer the user's question using the information from the passage context and the table. Let's think step by step.
+Reasoning: The user's question was ambiguous. Assistant: [’What kind of change are you asking about?’]
+User: The pension.
+Instruction: If the user's question is ambiguous, ask an appropriate clarifying question. Otherwise, directly answer the user's question using the information from the passage context and the table. Let's think step by step.
+Reasoning: The user's question is not ambiguous. Assistant: [’$(39,145)’, $49,361]
+User: What is the difference in that amount if the discount rate had a 1% increase and a 1% decrease?
+Instruction: If the user's question is ambiguous, ask an appropriate clarifying question. Otherwise, directly answer the user's question using the information from the passage context and the table. Let's think step by step.
+Reasoning: The user's question is not ambiguous. Assistant: 49,361 - (39,145) = 88506 User: How much would the pension change if there is a 1% increase and a 1% decrease respectively?
+Instruction: If the user's question is ambiguous, ask an appropriate clarifying question. Otherwise, directly answer the user's question using the information from the passage context and the table. Let's think step by step.
+Reasoning: The user's question was ambiguous.
+Assistant: [’Which rate of increase and decrease are you talking about?’]
+
+along with interweaved natural language instructions that describe which actions correspond to existing dialogue turns. We provide an example in Table A19. We use this framework for each of the long-context dialogue corpora (PACIFIC and Abg-CoQA).
+
+Table A19: “Proactive Mixed-Initiative” in-context example given as part of a prompt to an LLM for response generation in PACIFIC. The purple text is the overall system instruction. The blue text is what an LLM would have to produce at inference time.
+
+
You are an Assistant answering questions from a User. You should either attempt to answer the question or ask a clarifying question if there is any ambiguity.
+[Table and Passage Omitted]
+User: How much does the company expect to make contributions to the defined plans during the next fiscal year?
+The user's last question was ambiguous. The Assistant asks a clarifying question.
+Assistant: ['What kind of defined plans are you asking about?]
+User: The defined benefit plans and the defined contribution plan respectively.
+The user's last question was unambiguous. The Assistant directly answers the question.
+Assistant: ['5.1 million', '0.6 million']
+User: What is the value of the expected defined contribution plan as a percentage of the defined benefit plan during the next fiscal year?
+The user's last question was unambiguous. The Assistant directly answers the question.
+Assistant: 0.6/5.1 = 11.76
+User: How much would change if there is a 1% increase and a 1% decrease respectively in the discount rate?
+The user's last question was ambiguous. The Assistant asks a clarifying question.
+Assistant: ['What kind of change are you asking about?]
+User: The pension.
+The user's last question was unambiguous. The Assistant directly answers the question.
+Assistant: ['(39, 145)', '49,361']
+User: What is the difference in that amount if the discount rate had a 1% increase and a 1% decrease?
+The user's last question was unambiguous. The Assistant directly answers the question.
+Assistant: 49,361 - (39,145) = 88506
+User: How much would the pension change if there is a 1% increase and a 1% decrease respectively?
+Actions: ["Directly Answer", "Ask a Clarification Question"]
+Prompt: Given the task background and the conversation history, please use appropriate actions to generate the response.
+Response: The user's last question was ambiguous. The Assistant asks a clarifying question.
+Assistant: ['Which rate of increase and decrease are you talking about?]
+
+Table A20: In-context example given as part of a prompt to an LLM for action classification with PACIFIC. The blue text represents the action for this example.
+
+
[Table and Passage Omitted]
User: What was the total number of acquisitions in FY19?
Assistant: 35 acquisitions
User: What are the benefits of active growth strategy?
Assistant: strengthens and scales the National Storage operating platform which drives efficiencies across the business.
User: What was the total NLA?
Assistant: Which region are you asking about?
The last Assistant utterance is a clarifying question.
+
+Table A21: In-context example given as part of a prompt to an LLM for action classification with Abg-CoQA. The blue text represents the action for this example.
+
+
[Passage Omitted]
User: And who in the group was anxious?
Assistant: Peppe
User: Was she well-rested?
Assistant: no
The last Assistant utterance is a direct answer.
+
+# F CONDITIONAL GENERATION MODEL DETAILS
+
+As mentioned Section 3.1, we make use of a high capacity LLM as a conditional generation model, $M$ . For all experiments considered, we use Gemini Ultra to construct the initial action-based contrastive preference dataset. We follow the format of "mixed-initiative prompting" described in Chen et al. (2023b), rather than performing zero-shot inference, we use ten in-context examples to adapt the LLM to the prompting structure. Concretely, for a given input/output pair to be used as an in-context example, we interweave each System-side utterance with a narrative instruction that states that the next utterance is either a clarifying question or a direct answer. This yields "control" over the pragmatic action of the generated utterance.
+
+# G ACTION CLASSIFIER DETAILS
+
+Compared to recognizing whether a request is ambiguous or not, action classification (i.e., recognizing whether an existing utterance is a question or answer attempt) is considerably simpler. We directly prompt Gemini Ultra 1.0 with 10 in-context examples to serve as $A$ (as per the notation given in Section 3.1).
+
+Table A20 is an example of an in-context example used to demonstrate a system-side response with the "Clarify" action in PACIFIC ("Assistant: Which region are you asking about?"). All of the conversation history is made available in addition to the relevant table and passage in the prompt. We include all contextual information available as part of the input to the Action Classifier, along with the last Assistant response which is an example of the classification target.
+
+Table A21 is an example of an in-context example used to demonstrate a system-side response with the "Answer" action in Abg-CoQA ("Assistant: no"). As is common in this corpus, a subset of the conversation is made available in addition to the relevant passage in the prompt. We include all contextual information available as part of the input to the Action Classifier, along with the last Assistant response which is an example of the classification target.
+
+Table A22 is an example of an in-context example used to demonstrate a system-side response with the "Answer" action in AmbigSQL. In AmbigSQL, the information provided as input is the database schema, and the user's initial information request. This information is provided as part of the input to the Action Classifier, along with the last Assistant response which is an example of the classification target.
+
+Table A22: In-context example given as part of a prompt to an LLM for action classification with AmbigSQL. The blue text represents the action for this example.
+```txt
+[Database Schema Omitted]
+User: "Which professionals live in the state of Indiana or have done treatment on more than 2 treatments?
+List his or her id, last name and cell phone."
+Here is the same request converted into an ambiguous format by underspecifying the target columns: Assistant:
+SELECT professional_id, last_name, cell_number FROM Professionals WHERE state $=$ 'Indiana' UNION SELECT T1.professional_id, T1.last_name, T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id
+GROUP BY T1.professional_id HAVING count $(\star)$ >2
+The last Assistant utterance is a direct answer.
+```
+
+# H USER SIMULATOR DETAILS
+
+In order to iterate on system-side dialogue models, many works investigate the use of a user simulator, $U$ (as per the notation given in Section 3.1) (e.g. Chandramohan et al. (2011); Kreyssig et al. (2018); Shah et al. (2018)). At its core, it requires a response generation model which can robustly represent user-side intents. Traditionally, this involved training a model specifically on user-side responses but due to the aforementioned control capabilities of modern LLMs Chen et al. (2023b), we directly perform few-shot prompting for user simulation, following Deng et al. (2023c); Yu et al. (2023). For a given conversation during training, we again prompt a high-capacity LLM with in-context examples to identify the information-seeking user intents. Then, conditioned on the generated information-seeking intents, we prompt the same LLM with the responses from the policy model to simulate the sub-goal trajectory. This allows $U$ to ground on the real intents of the user while retaining enough flexibility to respond coherently to some system-side response. In our work, we use Gemini Ultra 1.0 with three hand-crafted in-context examples for both intent summarization and user response generation.
+
+Table A23: In-context example given as part of a prompt to an LLM for intent summarization with PACIFIC. The purple text represents the system prompt used for this task. The blue text represents the summarized information-seeking intents.
+```txt
+The following is a conversation between a User and an Assistant. The User is asking some questions. Summarize what information the User is looking for. [Table and Passage Omitted]
+User: What does Walletron deliver?
+Assistant: patented mobile wallet technology.
+User: How much did it cost the company to acquire certain technology assets of RevChip, LLC ("RevChip") and TranSend Integrated Technologies Inc. ("TranSend")?
+Assistant: $7.0 million
+User: What was the pro forma revenue in 2019?
+Assistant: $1,382,957
+User: What was the change in its amount between 2018 and 2019?
+Assistant: 21228
+User: How about that in pro forma net income?
+Assistant: -6425
+[Information] The user wants to know: 1. What technology Walletron delivers, 2. How much it cost Walletron to acquire certain technology assets of RevChip, LLC and TranSend Integrated Technologies Inc., 3. What the pro forma revenue was in 2019, 4. What the change in pro forma revenue was between 2018 and 2019, and 5. What the change in pro forma net income was between 2018 and 2019.
+```
+
+PACIFIC We provide one of our three handcrafted in-context examples of summarizing information-seeking intent in Table A23. While the information summary is handcrafted, the conversation and grounding data are taken directly from the PACIFIC. After intent summarization, $U$ is given the existing conversation history along with an instruction that includes the information
+
+seeking intents and asked to provide the next user response. This format is structurally the same as the three simulation-specific in-context examples — an example is provided in Table A24.
+
+Table A24: In-context example given as part of a prompt to an LLM for user simulation with PACIFIC. The purple text represents the system prompt used for this task, which contains the information-seeking intents summarized from Table A23. The entire conversation is used for this example to demonstrate grounding between a conversation and intents.
+
+
The following is a conversation between a User and an Assistant. The User is asking some questions. The user wants to know: 1. What technology Walletron delivers, 2. How much it cost Walletron to acquire certain technology assets of RevChip, LLC and TranSend Integrated Technologies Inc., 3. What the pro forma revenue was in 2019, 4. What the change in pro forma revenue was between 2018 and 2019, and 5. What the change in pro forma net income was between 2018 and 2019.
+[Table and Passage Omitted]
+Assistant: $7.0 million
+User: What was the pro forma revenue in 2019?
+Assistant: $1,382,957
+User: What was the change in its amount between 2018 and 2019?
+Assistant: 21228
+User: How about that in pro forma net income?
+Assistant: -6425
+
+Abg-CoQA We conduct user simulation for Abg-CoQA similarly to PACIFIC. Table A25 is one of three hand-crafted examples of intent summarization, and Table A26 is one of three hand-crafted examples used for simulating the final user response.
+
+Table A25: In-context example given as part of a prompt to an LLM for intent summarization with Abg-CoQA. The purple text represents the system prompt used for this task. The blue text represents the summarized information-seeking intents.
+
+
[Passage Omitted]
User: What was his ranking?
Assistant: General
User: Did someone else have horse fighters?
Assistant: yes
User: Who?
Assistant: Do you want to know who had 2,500 horse fighters initially?
User: No, I want to know who had a considerable force of horse fighters west of him.
Assistant: General (Bishop) Polk.
Instruction: Summarize what information the user is looking for.
Summary: The user wants to know: 1. What his ranking was. 2. Whether someone else had horse fighters. 3. Who had a considerable force of horse fighters west of him.
+
+AmbigSQL We conduct user simulation slightly differently for AmbigSQL. Rather than having a separate step for knowledge-seeking intent summarization, we directly condition $U$ on the target SQL query. As demonstrated in Table A27, the prompt includes the target SQL query, the original user request, and the clarification question sampled from the Assistant. In the example given in Table A27, the last line is the ground truth disambiguated query, and in practice, this would be the generation target of $U$ .
+
+# I QUALITATIVE EXAMPLES
+
+In Table A28 we compare two trajectories produced by Zephyr 7B tuned on 50 conversations from PACIFIC using SFT and $ACT$ , respectively, given the same conversation context and tabular information. The SFT model provided an incorrect answer to the user request, matching the "Incorrect Assumption" case in Figure 1. In contrast, the model tuned using $ACT$ asked a clarifying question before eventually producing the correct answer.
+
+Table A26: In-context example given as part of a prompt to an LLM for user simulation with Abg-CoQA. The purple text represents the system prompt used for this task, which contains the information-seeking intents summarized from Table A25. The entire conversation is used for this example to demonstrate grounding between a conversation and intents.
+
+
The following is a snippet from a conversation between an Assistant and a User who is asking some questions about the Story below. The user only wants to know the following information: 1. What his ranking was. 2. Whether someone else had horse fighters. 3. Who had a considerable force of horse fighters west of him.
[Passage Omitted]
User: What was his ranking?
Assistant: General
User: Did someone else have horse fighters?
Assistant: yes
User: Who?
Assistant: Do you want to know who had 2,500 horse fighters initially?
User: No, I want to know who had a considerable force of horse fighters west of him.
Assistant: General (Bishop) Polk.
+
+Table A27: In-context example given as part of a prompt to an LLM for user simulation with AmbigSQL. The purple text represents the system prompt used for this task, which contains ground truth SQL query goal. The entire conversation is used for this example to demonstrate SQL query-grounded request disambiguation.
+
+
A user is asking an assistant to retrieve some information from a SQL database. The command that the assistant should ultimately return is as follows:
SELECT county FROM campuses where campus = 'California State University-Chico'
The assistant will ask some questions to clarify the user's intent. The user should respond with a rephrased request that reflects their desired query.
User: what is the county?
Assistant: Are you asking for a list of all of the counties in the database?
User: I'm looking for the county of the campus 'California State University-Chico'
+
+Table A28: Comparison of trajectories using different tuning approaches. Left: snippet of tabular data from the PACIFIC evaluation set. Middle: trajectory resulting from the SFT model in response to the user query. Right: trajectory resulting from the ACT model. Red text: sampled from $U$ .
+
+
Relevant Table Data
SFT
ACT
Year: 2019 || 2018
User: What were the total liabilities of IMFT?
User: What were the total liabilities of IMFT?
Total current liabilities: 851 || 167
Assistant: $909 ×
Assistant: Which year are you asking about?
Other noncurrent liabilities: 5 || 74
User: 2018
Total Liabilities: $909 || $1,305
Assistant: $1,305 ✓
+
+Table A29: Comparison of PACIFIC trajectories using different tuning approaches. Left: snippet of from a passage from the PACIFIC test set. Middle: trajectory resulting from the SFT model in response to the user query. Right: trajectory resulting from the ACT model. Red text: sampled from $U$ . Both the SFT and ACT model answered the question incorrectly.
+
+
SFT
ACT
Relevant Data
User: What was the net profit/(loss) after tax?
User: What was the net profit/(loss) after tax?
Net profit/(loss) after tax was $(9.8) million
Assistant: $(9,819) ×
Assistant: Which year are you asking the amount of?
Net profit/(loss) after tax : (9,819) || 6,639 || (248%)
User: FY19
+Assistant: $(9,819) ×
+
+Table A30: Comparison of PACIFIC trajectories using different tuning approaches. Left: snippet of from a passage from the PACIFIC test set. Middle: trajectory resulting from the SFT model in response to the user query. Right: trajectory resulting from the ACT model. Red text: sampled from $U$ . Both the SFT and ACT model answered the question incorrectly, and neither asked a clarification question.
+
+
SFT
ACT
Relevant Table Data
Year: 2019 || 2018
User: In which year was the amount of Investments higher?
User: In which year was the amount of Investments higher?
Investments: 1,216.0 || 1,212.9
Assistant: [2018] ×
Assistant: [2018, 2019] ×
+
+Table A29 includes an erroneous trajectory produced by the ACT model in the 50 conversation setting of PACIFIC. In this particular example, both the provided passage and the provided table provided similar information regarding net profit/loss after tax. In the dataset, the ground truth answer selected a span from the passage, whereas the ACT model produced a clarification question and then eventually an answer using tabular information. The SFT model directly assumed the intent of the user and similarly produced an answer from the tabular information.
+
+Table A30 includes another pair of erroneous trajectories in the 50 conversation setting of PACIFIC. The requested information was accessible through the provided table data, but both the SFT model and the $ACT$ model failed to produce the correct answer. This example was not annotated as requiring a clarifying question, so it simply indicates that there is much room for improvement in terms of downstream task performance.
+
+Table A31 includes a pair of trajectories resulting from SFT and $ACT$ in the 50 conversation setting of Abg-CoQA. The requested information is given in the portion of the passage in the left panel. The SFT model asked an off-topic clarification question and failed to bring the questioning on track. The $ACT$ model successfully asked an on-track clarification question and eventually produced the correct answer.
+
+Table A31: Comparison of Abg-CoQA trajectories using different tuning approaches. Left: snippet of a relevant passage from the Abg-CoQA test set. Middle: trajectory resulting from the SFT model in response to the user query. Right: trajectory resulting from the ACT model. Red text: sampled from $U$ . Ground truth outcome: Meghan asked Lizzie, "Are you awake?"
+
+
SFT
ACT
Relevant Passage
User: What did Meghan ask?
User: What did Meghan ask?
She yawned, stretching out like a lazy cat.
Assistant: Do you mean where did Lizzie see her father?
Assistant: Do you mean that morning or the night before?
Her sister was also awake. "Lizzie",
User: No
User: The night before.
Meghan whispered, "are you awake?"
Assistant: Lizzie had only met her father in person once, according to the story. ×
Assistant: Meghan asked Lizzie if she was awake that morning. ✓
+
+# J ADDITIONAL EXPERIMENTAL DETAILS
+
+# J.1 COMPUTE RESOURCES
+
+We conduct all experiments using one Google Compute Engine Virtual Machine with 8x 80GB A100 GPUs. All of our tuning experiments use full-model multi-GPU tuning with Deepspeed. Full ACT with 250 conversations (1,923 training examples) from PACIFIC took the longest amount of time and required approximately 16 hours to run for 12 epochs.
+
+Beyond the experiments reported in the paper, there were many preliminary experiments that took place as a part of this overall research project that were ultimately directionally different from our final contribution.
+
+# J.2 TRAINING HYPERPARAMETERS
+
+For all of our SFT experiments with Zephyr, Mistral, and Gemma, we tune the model for up to 8 epochs. We choose the best-performing model with learning rates from $\{1e - 4,2e - 5,1e - 5\}$ with the AdamW optimizer.
+
+For our SFT experiments with Gemini Pro, we use the Vertex AI API and tune for up to 4 epochs with an Adapter size of 4.
+
+For all of our RL tuning experiments, we allow the model to train for up to 12 epochs, and select the checkpoint that results in the highest reward margin on the validation set (which is an action-based preference dataset constructed as described in Section 3.2 using each task's original validation set). For all experiments, we use a batch size of 4, and a maximum sequence length of 1, 280.
+
+Hyperparameters for Equation 2 For experiments with Zephyr 7B on PACIFIC, we achieve our strongest results using $\beta = 0.01$ and a learning rate of $5e - 7$ . On AmbigSQL, we use $\beta = 0.01$ and a learning rate of $5e - 7$ . On AmbigSQL, we use $\beta = 0.5$ and a learning rate of $5e - 7$ .
+
+# K ASSETS USED
+
+All resources used have been cited appropriately in the paper. In this section, we enumerate each of the existing artifacts used in our work along with their license.
+
+# Existing Models
+
+- Gemma Gemma Team et al. (2024): Gemma Open-Source License. https://ai.google.dev/gemma/terms
+- Gemini 1.0 Ultra (gemini-1.0-ultra), Gemini 1.5 Pro (gemini-1.5-pro-001), Gemini 1.5 Flash (gemini-1.5-flash-001) (Gemini Team et al., 2023): Accessed through the Google Cloud Vertex AI Platform. https://cloud.google.com/products/gemini?hl=en
+- Claude 3.5 Sonnet, Claude 3.0 Haiku (Anthropic AI, 2024): Accessed through the Google Cloud Vertex AI Platform. https://cloud.google.com/products/gemini?hl=en
+- MiniLM-L6-v2 (Reimers & Gurevych, 2019): Apache 2.0. https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2
+- Mistral 7B-v0.1 (Jiang et al., 2023): Apache 2.0. https://huggingface.co/mistralai/Mistral-7B-v0.1
+- Zephyr 7B- $\beta$ (with Mistral 7B as a Base Model) (Tunstall et al., 2023): MIT Open-Source License. https://huggingface.co/HuggingFaceH4/zephyr-7b-beta
+
+# Existing Datasets
+
+- Abg-CoQA (Guo et al., 2021): MIT Open-Source License. https://github.com/MeiqiGuo/AKBC2021-Abg-CoQA
+- PACIFIC (Deng et al., 2022): MIT Open-Source License. https://github.com/dengyang17/PACIFIC/tree/main
+- Spider (Yu et al., 2018): CC BY-SA 4.0. https://yale-lily.github.io/spider
+
+# Existing Algorithms and Software
+
+- Direct Preference Optimization (Rafailov et al., 2024): CC BY 4.0.
+- Google Cloud Pipeline Components: Apache 2.0. https://cloud.google.com/vertex-ai/docs/pipelines/components-introduction
+- HuggingFace Transformers (Wolf et al., 2020): Apache 2.0. https://github.com/huggingface/transformers/tree/main
+- PyTorch (Paszke et al., 2019): PyTorch Open Source License. https://github.com/pytorch/pytorch/tree/main
+- Vertex AI SDK: Apache 2.0. https://cloud.google.com/vertex-ai/docs/ python-sdk/use-vertex-aipython-sdk
\ No newline at end of file
diff --git a/ICLR/2025/Learning to Clarify_ Multi-turn Conversations with Action-Based Contrastive Self-Training/images.zip b/ICLR/2025/Learning to Clarify_ Multi-turn Conversations with Action-Based Contrastive Self-Training/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..2cdee866fea4c29f226cd0fd353a4666b6aa6fee
--- /dev/null
+++ b/ICLR/2025/Learning to Clarify_ Multi-turn Conversations with Action-Based Contrastive Self-Training/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:82aa408527f22be598d18baa9e736ff02701c7c13d473088690850065a6653e1
+size 2047431
diff --git a/ICLR/2025/Learning to Clarify_ Multi-turn Conversations with Action-Based Contrastive Self-Training/layout.json b/ICLR/2025/Learning to Clarify_ Multi-turn Conversations with Action-Based Contrastive Self-Training/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..e9d99dfb482ac1486dcdddea9a69ebed0d57f25f
--- /dev/null
+++ b/ICLR/2025/Learning to Clarify_ Multi-turn Conversations with Action-Based Contrastive Self-Training/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0e2277bac2e8fe5b0c83369188aafd0288206fe2bdaf834b5d6d58e7e7538c5a
+size 971549
diff --git a/ICLR/2025/Learning to Communicate Through Implicit Communication Channels/e33de38b-6db8-43b9-8c12-6ffc8525bc8b_content_list.json b/ICLR/2025/Learning to Communicate Through Implicit Communication Channels/e33de38b-6db8-43b9-8c12-6ffc8525bc8b_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..e6f6db4617de926accc3a1f61c1140702b85a237
--- /dev/null
+++ b/ICLR/2025/Learning to Communicate Through Implicit Communication Channels/e33de38b-6db8-43b9-8c12-6ffc8525bc8b_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b3eca8d967857d73b558cd8c66403b4461b6281051e4d357c8656516860dd3cb
+size 100229
diff --git a/ICLR/2025/Learning to Communicate Through Implicit Communication Channels/e33de38b-6db8-43b9-8c12-6ffc8525bc8b_model.json b/ICLR/2025/Learning to Communicate Through Implicit Communication Channels/e33de38b-6db8-43b9-8c12-6ffc8525bc8b_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..01d371468ac47efcfa2686323334fb1298c25370
--- /dev/null
+++ b/ICLR/2025/Learning to Communicate Through Implicit Communication Channels/e33de38b-6db8-43b9-8c12-6ffc8525bc8b_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7a43aff313bfea1fb13bb3d74e6874a48206dc826b7c760200514875d4c9245d
+size 124162
diff --git a/ICLR/2025/Learning to Communicate Through Implicit Communication Channels/e33de38b-6db8-43b9-8c12-6ffc8525bc8b_origin.pdf b/ICLR/2025/Learning to Communicate Through Implicit Communication Channels/e33de38b-6db8-43b9-8c12-6ffc8525bc8b_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..5f7b20e5f2a164ea4e373c95986ee56cc795ecfb
--- /dev/null
+++ b/ICLR/2025/Learning to Communicate Through Implicit Communication Channels/e33de38b-6db8-43b9-8c12-6ffc8525bc8b_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:35da2776d0c1cb2edf91345e2ffaad9492d2beb2946093d3939cbc6347f6343f
+size 1392053
diff --git a/ICLR/2025/Learning to Communicate Through Implicit Communication Channels/full.md b/ICLR/2025/Learning to Communicate Through Implicit Communication Channels/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..7a6f19ef0bcaea57ffd3ec745e97c00341e95cba
--- /dev/null
+++ b/ICLR/2025/Learning to Communicate Through Implicit Communication Channels/full.md
@@ -0,0 +1,341 @@
+# LEARNING TO COMMUNICATE THROUGH IMPLICIT COMMUNICATION CHANNELS
+
+Han Wang
+
+The Chinese University of Hong Kong, Shenzhen xwanghan@gmail.com
+
+Binbin Chen
+
+ByteDance Inc.
+chenbinbin.1996@bytedance.com
+
+Tieying Zhang
+
+ByteDance Inc.
+
+tieying.zhang@bytedance.com
+
+Baoxiang Wang*
+
+The Chinese University of Hong Kong, Shenzhen
+
+Vector Institute
+
+bxiangwang@cuhk.edu.cn
+
+# ABSTRACT
+
+Effective communication is an essential component in collaborative multi-agent systems. Situations where explicit messaging is not feasible have been common in human society throughout history, which motivate the study of implicit communication. Previous works on learning implicit communication mostly rely on theory of mind (ToM), where agents infer the mental states and intentions of others by interpreting their actions. However, ToM-based methods become less effective in making accurate inferences in complex tasks. In this work, we propose the Implicit Channel Protocol (ICP) framework, which allows agents to communicate through implicit communication channels similar to the explicit ones. ICP leverages a subset of actions, denoted as the scouting actions, and a mapping between information and these scouting actions that encodes and decodes the messages. We propose training algorithms for agents to message and act, including learning with a randomly initialized information map and with a delayed information map. The efficacy of ICP has been tested on the tasks of Guessing Numbers, Revealing Goals, and Hanabi, where ICP significantly outperforms baseline methods through more efficient information transmission.
+
+# 1 INTRODUCTION
+
+Effective communication is pivotal in collaborative multi-agent systems, especially in environments characterized by incomplete information (Panait & Luke, 2005; Busoniu et al., 2008; Tuyls & Weiss, 2012). Communication acts as a vital conduit, enabling agents to exchange private information, coordinate joint actions, and infer real-world states (Wang et al., 2021). These processes synergistically foster tighter cooperation and enhance collective performance (Li et al., 2002; Cao et al., 2012). We focus on multi-agent reinforcement learning (MARL) methods for communication, where communication is broadly categorized into explicit and implicit strategies (Dafoe et al., 2020).
+
+Explicit communication uses direct channels independent of the environment dynamics (Sukhbaatar et al., 2016; Foerster et al., 2016; Jiang & Lu, 2018), allowing agents to transmit observations, intentions, and advice to facilitate decision-making and coordination (Zhu et al., 2022; Qu et al., 2021). This approach, analogous to human language or verbal exchanges (Havrylov & Titov, 2017; Baker et al., 1999), has been widely employed in MARL to enhance collaboration. However, dependence on direct channels introduces significant computational and memory overheads (Roth et al., 2006),
+
+which makes it challenging to implement in certain scenarios. Examples are tasks without communication channels or decentralized frameworks (Oliehoek et al., 2008; Kraemer & Banerjee, 2016).
+
+Situations where explicit messaging is not feasible have been common in human society throughout history. From early humans engaging in hunting and gathering through silent cooperation (Klein, 2009; Tomasello & Vaish, 2013), to modern military operations using gestures and codes for covert communication (Tzu, 2008), and even in everyday social interactions where intentions are conveyed through expressions, tone, and body language (Pease, 1984; Duncan Jr, 1969). Implicit communication has established an effective mechanism for information sharing without explicit language.
+
+Learning methods for implicit communication have been investigated by the MARL community. A prominent method is the theory of mind (ToM) (Premack & Woodruff, 1978), where agents infer the mental states and intentions of others by interpreting their actions (Heider & Simmel, 1944). By modeling the beliefs, desires, and intentions of other agents, ToM enables agents to coordinate in a variety of simple tasks (Baker et al., 2017; Zhao et al., 2023; Nguyen et al., 2020). However, ToM-based approaches face significant challenges, including the difficulty of making accurate inferences and the high computational complexity involved in modeling other agents. These issues become particularly pronounced in dynamic environments where agents must constantly update their models based on limited or ambiguous information.
+
+To address these challenges associated with ToM methods, we introduce Implicit Channel Protocol (ICP), a novel framework that allows agents to communicate through communication protocols in implicit communication likewise how it was done in explicit communication. ICP leverages a subset of actions, denoted as the scouting actions, which have no or uniform effects on environment dynamics. A centralized mapping between information and these scouting actions is established to encode and decode the messages. Agents exchange information by deliberately taking scouting actions, forming an implicit communication channel. We further demonstrate how agents' strategies are trained on this channel, including training with a randomly initialized information map and training with a delayed information map.
+
+We validate the effectiveness of ICP through comprehensive experiments on the tasks of Guessing Numbers, Revealing Goals, and Hanabi (Bard et al., 2020). These environments share a common characteristic: they lack direct communication but agents must collaboratively make decisions to achieve shared rewards. This setting introduces significant challenges, including sparse and delayed reward feedback, along with difficulty in credit assignment both temporally and among agents. Despite these hurdles, our experiments on Guessing Numbers and Revealing Goals demonstrate that ICP significantly enhances performance, through more efficient information transmission, compared to baseline methods. In Hanabi, which is a popular card game played by humans, our approach achieved an average score of 24.91 out of 25, which surpasses the best available learning algorithm which obtains 23.81.
+
+# 2 BACKGROUND AND RELATED WORK
+
+Decentralized Partially Observable Markov Decision Process The cooperative multi-agent problem can be formulated as a Dec-POMDP game (Bernstein et al., 2002), which is described by the tuple $G = (S, U, N, \mathcal{T}, O, R, \gamma)$ , where $S$ represents the true global state of the environment. At each discrete time step $t$ , every agent $i \in N := \{1, \dots, n\}$ selects an action $u_i$ from its action space $U_i$ . The state transition function $\mathcal{T}(s'|s, u): S \times U \times S \to P(S)$ governs the transition of states, where $u = (u_1, \dots, u_n)$ denotes the joint action. In POMDP, the global state remains inaccessible, and each agent $i$ can only perceive its individual observation $o_i$ through the observation function $O_i(s): S \times N \to O$ . $R_i(s, u_i): S \times U_i \to R$ represents the reward function for each agent $i$ . In the cooperative scenarios, all agents share a common reward function $R(s, u): S \times U \to R$ , known as team reward. The objective for each agent is to maximize the expected return, which makes effective cooperation among all agents necessary.
+
+Learning to Communicate Communication among agents is critical for effective collaboration in MARL. Most researches in this field focused on explicit communication protocols (Tucker et al., 2022; Peng et al., 2017; Kong et al., 2017; Pesce & Montana, 2020; Kim et al., 2019; Wang et al., 2020; Freed et al., 2020b;a; Gupta et al., 2023; Foerster et al., 2016), where agents exchange messages containing critical information. Additionally, techniques like attention mechanisms or graph-
+
+based methods that used to build more effective communication connection (Jiang & Lu, 2018; Das et al., 2019; Jiang et al., 2018; Sukhbaatar et al., 2016; Chen et al., 2024; Tucker et al., 2022) and intention sharing or theory of mind (ToM) reasoning to transmit more useful information (Wang et al., 2021; Kim et al., 2020; Qu et al., 2021), further enhancing the effectiveness of MARL systems.
+
+Explicit communication on direct channels often incurs significant communication overhead and may not be available in environments with limited bandwidth and high communication costs. Implicit communication, where agents convey information through their behaviors, has been explored as an alternative approach (Li et al., 2024; Tian et al., 2023; Li et al., 2021; Shaw et al., 2022; Gruben et al., 2022). ToM-based methods represent one main research strand for implicit communication, where agents infer the intentions and beliefs of others to anticipate actions and adjust strategies accordingly. Methods in Rabinowitz et al. (2018); Tian et al. (2020); Nguyen et al. (2020); Zhao et al. (2023) aim to enhance coordination by modeling and predicting others' behavior based on observed actions. However, ToM-based approaches can be computationally intensive and may struggle to accurately infer intentions in complex environments.
+
+# 3 SETTING
+
+Consider in a fully cooperative Dec-POMDPs, where no direct communication channel is available. Each agent maintains a joint action-observation history $\tau_{t,i} = \{o_{0,i},u_0,r_1,\dots,r_t,o_{t,i}\}$ and makes decisions and executes actions based on it. Within this setting, we define a subset of actions as scouting actions $U^s$ which have no or uniform effects on the state $s_t$ or reward $r_t$ and mainly affect the observation function $O_{i}(s_{t})$ . The remaining actions are defined as regular actions $U^{r}$ .
+
+In an idealized situation, scouting actions serve to influence the observation mapping function, which allows the agents to gather critical information from the environment to improve their decision-making and coordination. A scouting action might reveal information about an agent's surroundings or the state of other agents without changing the environment unpredictably. For instance, in the game of Hanabi, Hint actions reveal information to other players while consuming an information token, thereby uniformly altering the game state. Similarly, in StarCraft II, scouting the map with Scan from Terrans requires depleting energy, which impacts the environment and provides new information in the agent's observations.
+
+We are interested in this setting because agents generally need to employ scouting actions to collect sufficient information before taking other actions to obtain rewards. Both the information collection phase and the reward acquisition phase may require cooperation among agents. For example, agents will only receive positive rewards if one agent scouts the correct information for another agent, and the latter correctly utilizes this information. In this context, sparse and delayed reward feedback, along with the credit assignment problem both temporally and among agents, poses significant challenges for agents to learn optimal strategies.
+
+# 4 INFORMATION CARRIED BY SCOUTING ACTIONS
+
+Scouting actions carry two types of information.
+
+1. Information reflected through the environment. When an agent performs a scouting action, it influences the observation function, and the new observations provide information. This type of information depends on the observation function, the states, and the joint actions of all agents.
+2. Information reflected through the choice of the scouting action. The specific scouting action chosen by an agent can carry intentional meaning. This type of information depends only on other agents' scouting action policy. If the receiver agent cannot understand the sender agent's intention, no information will be transmitted.
+
+General multi-agent reinforcement learning (MARL) methods tend to focus more on the first type of information. In Dec-POMDPs without modeling other agents' strategies, both partial observation of states and other agents' policies introduce uncertainty. In the exploration phase of online MARL training, the second type of information cannot be utilized due to the unknown policies of others. Therefore, MARL methods mostly learn to use the information reflected through the environment.
+
+For the second type of information which is not limited by observation function and states, when agents' intention is understood correctly, it is more fixable and could be more useful for decision-making and cooperation. Theory of mind (ToM) methods utilize the second type of information by modeling strategies or inferring the intention of other agents. By estimating the internal states of other agents, an agent can interpret the intentional choices behind their scouting actions. One approach is to build an explicit belief model that infers the state from observed actions to achieve communication. However, this method incurs a computational cost that grows exponentially with the size of the game and the number of agents. Moreover, the precise state distribution information is often difficult to fully utilize. Another approach involves training a neural network to map actions to states or intentions, which requires exponentially more data compared to action policy training. Since this method does not produce explicit inferences, the resulting information is inherently biased, which could negatively impact the agent's decision-making process.
+
+We propose a simpler and more effective solution to take advantage of the second type of information conveyed by scouting actions while also mitigating the computational overhead and inaccuracies of ToM methods. By establishing a shared communication protocol where all agents follow the same strategy for selecting scouting actions, the intended information can be easily decoded from the chosen action. This approach eliminates the need for state estimation and intention inference required in ToM methods. In our setting, this communication protocol has the following benefits.
+
+1. Low Computational Overhead and Accurate Information Transmission. By having all agents follow the same strategy for selecting scouting actions, there is no need for additional computational inference or training of a separate inference model to deduce intentions. The inverse of the strategy can be used to directly interpret the information, resulting in low computational overhead and accurate transmission of intentions.
+2. Efficient Communication Enabled by Broadcasted Information. Scouting actions are observable by all agents in the system, allowing any information conveyed through these actions to be inherently broadcasted. This characteristic facilitates the use of efficient embedding techniques, such as the hat mapping method, to achieve more effective communication.
+3. Independence from Observation-Based Information. When different embeddings are used, the information conveyed by altering the observation function may differ, making the information carried by scouting actions not necessarily correlated with the environment-based information. Both types of information can be optimized concurrently to enhance cooperation and decision-making.
+
+# 5 STRATEGY TRAINING ON CONSTRUCTED IMPLICIT CHANNEL
+
+To establish a shared communication protocol, we propose Implicit Channel Protocol (ICP), a new framework for agents' implicit communication. In this framework, at each step, agents choose whether to send information. If an agent chooses not to send information, a regular action $u^r$ will be taken according to the action policy. If otherwise an agent wishes to convey message $m_i \in M$ , it will output a scouting action $u^s = \mathcal{P}(m_i)$ , which maps $m_i$ through the centralized mapping mechanism $\mathcal{P}$ . This mechanism $\mathcal{P}$ needs to be decodable, which provides output messages from scouting actions. By allowing agents to send information through encoded scouting actions and other agents to decode the messages from the globally observed scouting actions, an implicit communication channel is constructed.
+
+As agents need to decide whether to send information, the new action space becomes $U' = \{U - U^s, \text{send_info}\}$ , then agents sample actions $u_i \in U'$ from new action policy $u_i \sim \pi_i(\cdot \mid \tau_{t,i}, m_{-i})$ where $m_{-i}$ are decoded messages transmitted from other agents. For message $m_i$ , it is selected by the message strategy $m_i \sim \phi_i(\cdot \mid \tau_{t,i}, m_{-i})$ . Based on this process, we can formulate agents' value functions as $V^{\pi_i, \phi_i, \mathcal{P}}(s) := \mathbb{E}[\sum_{t=1}^{T} \gamma^{t-1} r_t(s_t, u_t, s_{t+1}) \mid s_1 = s]$ , for $s_{t+1} \sim \mathcal{T}(\cdot \mid s_t, u_t)$ and $u_t = (u_{t,1}, \dots, u_{t,n})$ ,
+
+$$
+u _ {t, i} = \left\{ \begin{array}{l l} u ^ {s} = \mathcal {P} \left(m _ {i} \sim \phi_ {i} (\cdot \mid \tau_ {t, i}, m _ {- i})\right) & \text {i f s e n d - i n f o ,} \\ u ^ {r} \sim \pi_ {i} (\cdot \mid \tau_ {t, i}, m _ {- i}) & \text {e l s e .} \end{array} \right. \tag {1}
+$$
+
+Equation (1) highlights three essential components of the framework: the agents' action policy $\pi$ , the message strategy $\phi$ , and the centralized mapping mechanism $\mathcal{P}$ . To develop these components, we investigate two different methodologies. The first one is training with a random initial information map and the second one is training with a delayed information map. Both approaches construct an implicit communication channel within the environment, with which the agents exchange information and achieve implicit coordination. In the rest of the section, we will discuss the details of these approaches.
+
+# 5.1 STRATEGY TRAINING WITH RANDOM INITIAL MAP
+
+In this approach, we first establish a one-to-one mapping between information and actions using a randomly initialized embedding, that makes the size of the message the same as the size of the scouting action space $M = \{1,\dots,|U^s |\}$ . Once this one-to-one mapping is set, the inverse of $\mathcal{P}$ will obtain the original message $m_{i} = \mathcal{P}^{-1}(u_{i}^{s})$ .
+
+In our implementation, we use a value-based method for training the action policy, incorporating parameter sharing and value decomposition techniques to facilitate effective coordination among agents. For the information strategy, we use the communication gradient method (Foerster et al., 2016), which is designed to optimize communication protocols within a predefined channel. Both the action policy and the information strategy are parameterized as Q-networks, for action policy $\pi_i(\tau_{t,i}) = \mathrm{argmax}Q^{\theta_{1,i}}(\tau_{t,i},u_i)$ , and message strategy $\phi_i(\tau_{t,i}) = \mathrm{argmax}Q^{\theta_{2,i}}(\tau_{t,i},m_i)$ . Given the value function $V^{\pi_i,\phi_i,\mathcal{P}}(s)$ , the Q-functions are defined by $Q^{\pi_i}(\tau_{t,i},u_i) := \mathbb{E}_{m\sim \phi ,\mathcal{P}}[r_t(s_t,u_t,s_{t + 1}) + \gamma V^{\pi_i,\phi_i,\mathcal{P}}]$ , and $Q^{\phi_i}(\tau_{t,i},m_i) := \mathbb{E}_{u^r\sim \pi ,\mathcal{P}}[r_t(s_t,u_t,s_{t + 1}) + \gamma V^{\pi_i,\phi_i,\mathcal{P}}]$ , where $\pi = (\pi_1,\dots,\pi_n)$ , $\phi = (\phi_1,\dots,\phi_n)$ and $m = (m_1,\dots,m_n)$ .
+
+Parameter Sharing and Value Decomposition Parameter sharing enables different agents with the same observation and action spaces to learn from a shared network. Despite using the same network, agents evolve different hidden states and receive distinct observations, allowing them to behave differently. We incorporate the agent index $i$ into the network input, allowing for specialization through rich representations in deep Q-networks.
+
+To further enhance learning efficiency, we apply value decomposition (Sunehag et al., 2018) for the action policies $\pi$ . The joint action-value function $Q_{\mathrm{tot}}^{\pi}(\tau ,u)$ is expressed as the sum of individual value functions: $Q_{\mathrm{tot}}^{\pi}(\tau ,u) = \sum_{i = 1}^{N}Q^{\pi}(\tau_{t,i},u_{i};\theta_{1,i})$ , where $\tau = (\tau_{i},\dots,\tau_{N})$ . This decomposition simplifies learning by allowing the gradients to propagate through individual agents' policies while maintaining a shared reward structure, which accelerates the overall training process.
+
+Communication Gradient Since our message space is $M = \{1, \dots, |U^s|\}$ , which is discrete and non-binary, we introduce the Gumbel-Softmax technique (Havrylov & Titov, 2017; Jang et al., 2016) to sample one-hot vector messages $\vec{m}$ . The Gumbel-Softmax method enables us to generate discrete samples that are differentiable, facilitating end-to-end training with gradient descent. Specifically, we sample the one-hot vector message $\vec{m}$ such that $\vec{m}_i = 1$ if $i = \arg \max_{j \in M} (\log(\phi(\cdot | \tau_{t,i}, m_{-i}) + g_j))$ , and $\vec{m}_i = 0$ otherwise, where $g_j = -\log(-\log(u_j))$ and $u_j \sim U(0,1)$ .
+
+This method ensures a continuous relaxation between $\phi$ and $\vec{m}$ . As a result of this relaxation, the game becomes fully differentiable and can be trained using the backpropagation algorithm. By enabling gradients to flow smoothly through the communication process, this approach facilitates more effective and efficient training of agents. Comparing the communication gradient implementation in DIAL (Foerster et al., 2016), we adopt this Gumbel-Softmax technique to replace the Discretize/Regularize Unit (DRU). This substitution allows agents to send discrete and non-binary messages during the learning phase, thereby enhancing the richness and accuracy of the information exchanged.
+
+# 5.2 STRATEGY TRAINING WITH DELAYED MAP
+
+In the training process with a delayed map, we begin by learning the information strategies and action policies using a direct communication channel. This initial phase provides agents with a flexible environment that allows for direct communication and enable them to develop their strategies more
+
+effectively. Once these strategies are established, we determine the mapping mechanism that maps the messages to actions. Finally, we fine-tune both the action policies and information strategies in the ICP framework to ensure optimal performance within the constraints of the final environment.
+
+Given that the information strategies were initially trained using a direct communication channel, there may be discrepancies between this channel and the implicit communication channel constructed by scouting actions, particularly in terms of capacity and whether the channel is discrete or noiseless. To minimize any potential performance loss resulting from these differences, we can limit the capacity of the direct channel or apply efficient embedding techniques (such as the hat mapping method) during the message-to-action mapping process. These steps help to align information strategies developed in the direct channel with the constraints of the implicit channel and ensure messages are decodable.
+
+During implementation, we utilize standard explicit communication algorithms designed for direct channels, such as RGMComm, to pre-train the information strategy. Then we use two kinds of mapping methods, including simple one-to-one mapping and the hat mapping method (Brown & Tanton, 2009; Bushi, 2012; Butler et al., 2009; Feige, 2004; Havil, 2011; Winkler, 2002) to obtain new information strategies. The one-to-one mapping ensures that each message corresponds directly to an action, while the hat mapping allows an agent to communicate efficiently with multiple receivers. Finally, we fine-tune both the information strategy and the action policy to optimize performance within the implicit communication framework.
+
+Pre-training with Direct Channel In the pre-training phase, we utilize a direct communication channel to facilitate the learning of the communication strategies. During this phase, the message size can be larger than the scouting action space, allowing for more complex and detailed communication between agents. This flexibility enables the agents to explore a wider range of communication strategies and coordination behaviors, which are crucial for solving complex tasks in partially observable environments. However, after pre-training, the message strategy needs to transition to the implicit communication framework and it is necessary to compress these messages without loss of information. For one-to-one mapping, this mapping requires that the message size matches the scouting action space exactly. It ensures a direct and consistent mapping between the learned messages and the corresponding actions.
+
+Hat Mapping Implementation When the local observations of different agents' have large overlaps, the hat principle-based mapping method utilizes broadcast channels to achieve a single transmission of messages to multiple receivers. The method is inspired by the multi-color hat guessing game, where players use logical deduction based on limited communication to maximize team success. In this game, players can observe the hat colors of others but not their own, and they must guess their own hat color using a pre-defined strategy. A well-known strategy involves each player leveraging the sum of the hat colors they observe, modulo the total number of possible colors. For example, in an 8-color version of the game, each player can compute the sum of the colors they observe (assigned numerical values) and use a pre-determined rule, such as calculating the sum modulo 8, to make a logical deduction about their own hat color.
+
+In our implementation, at each step, each agent computes local messages intended for every other agent. These local messages are derived from the shared information strategy and the observations that the target agent cannot see but are overlapped with other agents—much like the "hat" in the hat guessing game. When an agent sends information, it transmits a structured public message that combines all these local messages using a sum modulo operation. As a result, each receiving agent can also use the sum modulo operation to combine the received public message with the local messages of all agents except themselves and the sender. This allows them to infer their own specific local message from the combined public message. This method enables a single broadcast to convey individualized information to multiple agents simultaneously, enhancing communication efficiency even when explicit communication is not possible.
+
+# 6 EXPERIMENTS
+
+In this section, we explore the application of the ICP across various environments where no direct communication is available. ICP plays a vital role in these settings by constructing an implicit
+
+
+Figure 1: Left: Guessing Numbers Environment. Agents cannot see their own digits, but can reveal others' segments' states by collaboratively giving hints. They can deduce their own digit and obtain shared rewards. Right: Revealing Goals Environment. The agents are positioned in a random spots in a grid world and are assigned a unique target. However, they can only observe others' targets which do not include themselves. By revealing each other's targets in the nearby grid, they can eventually find their own targets and reach them.
+
+
+
+communication channel that enhances the agents' ability to share and interpret information. We will demonstrate how ICP facilitates effective collaboration and decision-making in 3 tasks, namely Guessing Numbers, the Revealing Goals, and the Hanabi card game. The first two tasks are designed by us and can be reused by future works as testing environments. The Hanabi game is a popular card game played by humans, and is described as The Hanabi Challenge (Bard et al., 2020) by the community. Each of these environments presents unique challenges, and we will show how ICP optimizes the use of scouting actions to improve overall performance and strategy.
+
+# 6.1 GUESSING NUMBERS
+
+In the Guessing Numbers game, we present a collaborative, turn-based multi-agent reinforcement learning environment involving $N$ agents. Each agent $i$ is uniquely assigned a digit $d_{i} \in \{0,1,\dots ,9\}$ , which is visible to all other agents $j \neq i$ but remains unknown to agent $i$ themselves. The primary objective for each agent is to deduce and correctly guess their own digit $d_{i}$ . During each turn, an agent can choose to either guess their own digit by selecting $\hat{d}_i \in \{0,1,\ldots ,9\}$ or provide a hint about another agent's digit using the Radioland Slim font—a seven-segment digital display representation. Specifically, hints involve revealing the state ("on" or "off") of one of the seven segments of another agent's digit, and these hints are public and observable by all agents. Each agent's action space comprises $10 + 7 \times (N - 1)$ actions: 10 options for guessing their own digit and 7 hint options for each of the $N - 1$ other agents. The game encourages strategic collaboration, as agents must balance between gathering information to deduce their own digit and assisting others through informative hints, aiming for the collective success of all agents correctly guessing their digits.
+
+In this game, successfully guessing their digit rewards an agent with 10, while performing a hint action incurs a small penalty of $-0.1$ to encourage efficient communication and collaboration. The game imposes a limit $l$ on the number of hint actions, and each agent is allowed only 1 guess. The game concludes when all agents have made their guesses, with the goal being to accurately guess all digits within these constraints.
+
+In the Guessing Numbers experiment, we evaluate the performance of 5 approaches: VDN-on-policy, VDN-off-policy, ICP with the random initial map approach (ICN-DIAL-RM), ICP with the delayed map approach (ICN-DIAL-DM), and a cheating approach where a direct communication channel is available (DIAL-Cheat). Each approach is evaluated over 1k episodes with 6 random seeds, and running on a Linux metal machine with 256 GB RAM and 3090Ti GPU for 36 hours.
+
+For VDN-off-policy, we begin by warming up the replay buffer until its size exceeds the batch size. During each training step, we add 10 episodes to the replay buffer and randomly sample a batch of episodes from the buffer for training. In contrast, for VDN-on-policy and our proposed method, we utilize a vectorized environment to sample a batch of episodes at each training step and use these samples for training.
+
+Despite differences in network architecture, these approaches share similar hyperparameters. Specifically, we set the hidden size of the MLP and GRU to 256, use 2 layers in the GRU, and set the
+
+
+(a)
+
+
+(b)
+Figure 2: (a): The training curves of Guessing Numbers over a total of 100k steps with $N = 3$ , $l = 11$ . (b): Average episode length running by different algorithms in Guessing Numbers.
+
+learning rate to $5 \times 10^{-4}$ , batch size to 256. The target network update rate is set to 10, $\gamma$ is set to 0.99, $\epsilon$ is set to 0.1, and we apply gradient clipping with a threshold of 10.
+
+The results are presented in Figure 2. All algorithms are capable of eventually guessing their own digit correctly, but the differences of number of hit actions needed is significant among the algorithms. By examining the saved models and averaging over $10\mathrm{k}$ episodes, we find that ICN-DIALRM has an average episode length of approximately 8.63, while VDN-on-policy and VDN-off-policy have average episode lengths of around 12.4. This observation further demonstrates that ICN achieves more efficient information transfer by using scouting actions in implicit channels.
+
+# 6.2 REVEALING GOALS
+
+In the Revealing Goals task, we present a non-sequential collaborative that emphasizes information sharing among agents. The environment consists of $N$ agents operating within an $H \times H$ grid world. Each agent $i$ starts at a random position and is assigned a unique goal location $g_{i}$ that is at least two grid units away from its starting position. Critically, agents cannot perceive their own goal locations; they can only observe the goal locations of other agents $j \neq i$ . At each time step, agents select from a fixed action space of eight actions: moving up, down, left, or right, and reveal information about the adjacent grid cells in these directions. When an agent performs a reveal action, the adjacent grid cell in the specified direction becomes revealed, and all agents gain information about whether their own goals are located in that cell. The grid world features wrap-around edges, creating a toroidal topology where, for example, moving left from cell $(0,y)$ leads to cell $(H - 1,y)$ .
+
+An agent observes the locations of all agents, the goal points of other agents, and any goals on the revealed grids. Since they cannot directly perceive their own goals, agents must rely on information revealed by themselves and others to infer the locations of their own goals. The objective is for each agent to navigate to its designated goal location $g_{i}$ , upon which all agents receive a shared reward of 1. When an agent reaches its goal, a new goal is randomly assigned to it but is at least two grid units away from its current position. The game proceeds for a total of $T$ time steps. This environment encourages strategic collaboration, as agents must balance between exploring the grid to find their own goals and assisting others by revealing grid cells that may contain teammates' goals. The agents will need to communicate implicitly, using the fixed action space of size 8.
+
+In the experiments for the Revealing Goals task, we use the same training hyperparameters and model architecture as in the Guessing Numbers experiments. We also compare the performance of 5 approaches: DIAL-Cheat, ICN-DIAL-DM, ICN-DIAL-RM, VDN-on-policy, and VDN-off-policy. The experimental results are shown in Figure 3(a). ICN-DIAL-RM significantly outperforms the baseline methods by achieving an average score 2.17 times that of the baselines. One reason for its effectiveness is that, in each round, each of the $N$ agents can engage in $N$ broadcast communications through implicit channels, which significantly enhances information efficiency compared to relying solely on environmental feedback. This result further validates the effectiveness of ICP in more complicated grid world tasks.
+
+
+Figure 3: (a): The training curves of Revealing Goals over total 100k train steps with $N = 4$ , $H = 5$ , $T = 50$ . (b): The training curves of 4-players Hanabi with on-policy algorithms take around 150 hours and off-policy algorithms take around 20 hours.
+
+
+
+# 6.3 HANABI
+
+To demonstrate ICP's broader applicability, we also evaluate it in the game of Hanabi. Hanabi is a fully cooperative card game where players work together to play cards in a specific order to form sequences, aiming to achieve the highest possible score. When it is played by humans, people will mute themselves and coordinate only through taking and observing actions. This game requires effective implicit communication and strategic information sharing among the agents.
+
+Because the game rule of Hanabi is quite involved, we refer it to a popular website https://hanabi.github.io/ that discusses both rules and human-play strategies. The action space for each agent includes three options: playing a card out of their 5-card hand, discarding a card, or giving a hint towards another player's 5-card hand. The hint could reveal all cards in a player's hand of a specific color or rank. Since they cannot see their own cards, agents must rely on hints from others to infer what cards they hold. The success of the game heavily depends on the agents' capacity to use these hints effectively to coordinate their actions and play the correct cards in order.
+
+In our experiments, we focus on the 4-player full version of Hanabi. Since hint actions in Hanabi are natural scouting actions, we select them to serve as information carriers for our ICP implementation. We implement several baseline algorithms, including VDN-off-policy and the original version of SAD (Hu & Foerster, 2019), as well as a variant of SAD with the hint action masks removed. For the ICP algorithm, we explore several variations, including ICN-DIAL-RM-on-policy, which involves strategy training with a random initial map using DIAL's communication gradient technique resulting in an on-policy learning method. We also implement ICN-DIAL-RM-cut-gradient-off-policy, similar to ICN-DIAL-RM-on-policy but with the communication gradient chain cut off to enable off-policy learning. Additionally, we use ICN-RGMComm-DM, which is strategy training with a delayed map using RGMComm (Chen et al., 2024), an off-policy MARL communication algorithm, and ICN-RGMComm-DM-hat-mapping, an extension of ICN-RGMComm-DM that utilizes the hat mapping method for improved communication.
+
+Our presented results are based on the best runs selected from more than three random seeds. From the results shown in Figure 3(b), we observe that the ICP method using the hat mapping approach, ICN-RGMComm-DM-hat-mapping, achieved the best performance. The score achieved by ICP is 24.91, which surpasses the best available learning algorithm (SAD, 23.81 points) and vastly outperforms theory of mind-based methods (Fuchs et al. (2021) 19.13 points) and average human players (17 points, reported in Kantack (2021)). It is worth remarking that the state-of-the-art strategy in the Hanabi game is a search-based algorithm, WTFWThat+search, which reports an averaged score of 24.96 points (Lerer et al., 2020). With the maximum score of the game being 25, and there are certain deals that prevent the players from winning 25 points in any way, both ICP and WTFWThat+search are close to fully solving the game.
+
+For additional details on our implementation, please refer to Appendix A. A comparison between ICP and Hanabi human conventions is provided in Appendix B, along with a detailed analysis of the Hanabi results in Appendix C.
+
+# 7 DISCUSSIONS
+
+# 7.1 COMPATIBILITY OF ICP WITH OTHER TRAINING METHODS
+
+In the ICP framework, action policy allows for the use of various algorithms for training. For instance, the action policy can be trained using value-based methods like VDN (Sunehag et al., 2018) or policy-based methods such as MADDPG (Lowe et al., 2017). This compatibility ensures that ICP can be tailored to various problem settings and agent dynamics. One could choose the most suitable algorithm depending on the specific characteristics of the environment and the agents.
+
+The communication strategy within the ICP framework is also versatile. It can be implemented using a variety of direct channel communication algorithms that support discrete channels. These include well-established methods like DIAL (Foerster et al., 2016) and RGMComm (Chen et al., 2024), which are designed to optimize communication under different constraints and requirements. The flexibility in choosing both the action policy and the communication algorithm highlights the comparability and broad applicability of the ICP framework, making it a general approach for multi-agent reinforcement learning scenarios.
+
+# 7.2 POTENTIAL OF FURTHER UTILIZING THE ENVIRONMENT INFORMATION
+
+As described in Section 4, scouting actions carry two types of information. The ICP framework utilizes the information reflected through the choice of the scouting action (choice information) to establish an implicit communication channel. However, even when we leverage this information, the information reflected through the environment (environment information) remains useful. Although in most cases the constructed implicit channel transmits more stable and useful information, in some situations the environment information is also significant. For example, in the Revealing Goals environment, a revealing action intended to transmit embedded information might also reveal other agents' goals, which helps agents to make better decisions.
+
+To verify the impact of this environmental information on performance, we randomly shuffle 6 different embeddings on the ICN-RGMComm-hat-mapping policy saved from the previous Hanabi experiment. We then fine-tune the action policy while keeping the information strategy fixed. The results are shown in Figure 4 in the appendix, where, under a fixed information strategy, some randomly shuffled embeddings enjoy improved performance. This suggests that one could further utilize the environment information for more effective communication in future works.
+
+# 8 CONCLUSION AND FUTURE WORK
+
+The Implicit Channel Protocol (ICP) introduced in this paper is an advancement in implicit communication through multi-agent reinforcement learning (MARL). By mapping information to scouting actions to construct implicit channels and optimizing both action and communication strategies, ICP facilitates communication protocols to be established even without explicit channels. The experimental results validate the protocol's effectiveness across various MARL scenarios and demonstrate its capacity to significantly improve both coordination among agents and performance in the tasks.
+
+A possible direction for future work is extending ICP to environments that lack inherent scouting actions. In such settings, identifying appropriate actions to serve as information carriers becomes challenging, as these actions must both convey information effectively and interact with the environment beneficially. Future research could focus on developing algorithms that dynamically identify or design such actions, balancing effective communication with minimal impact on the environment. These advancements would enhance the applicability of ICP across a wider range of scenarios, making it a more versatile tool in multi-agent communication.
+
+# REPRODUCIBILITY STATEMENT
+
+The code and our designed environments are freely available in the supplementary material. The details of the implementation can be found in Appendix A. The hyper-parameters used in experiments are also mentioned in Section 6.
+
+# ACKNOWLEDGEMENT
+
+Han Wang and Baoxiang Wang are partially supported by the National Natural Science Foundation of China (62106213, 72394361), an extended support project from the Shenzhen Science and Technology Program, Longgang District Key Laboratory of Intelligent Digital Economy Security, and ByteDance.
+
+# REFERENCES
+
+Chris L Baker, Julian Jara-Ettinger, Rebecca Saxe, and Joshua B Tenenbaum. Rational quantitative attribution of beliefs, desires and percepts in human mentalizing. Nature Human Behaviour, 1(4): 0064, 2017.
+Michael Baker, Tia Hansen, Richard Joiner, and David Traum. The role of grounding in collaborative learning tasks. *Collaborative learning: Cognitive and computational approaches*, 31:63, 1999.
+Nolan Bard, Jakob N Foerster, Sarath Chandar, Neil Burch, Marc Lanctot, H Francis Song, Emilio Parisotto, Vincent Dumoulin, Subhodeep Moitra, Edward Hughes, et al. The hanabi challenge: A new frontier for ai research. Artificial Intelligence, 280:103216, 2020.
+Daniel S Bernstein, Robert Givan, Neil Immerman, and Shlomo Zilberstein. The complexity of decentralized control of markov decision processes. Mathematics of operations research, 27(4): 819-840, 2002.
+Ezra Brown and James Tanton. A dozen hat problems. Math Horizons, 16(4):22-25, 2009.
+Jaime Bushi. Optimal strategies for hat games. Society for Industrial and Applied Mathematics, 2012.
+Lucian Busoniu, Robert Babuska, and Bart De Schutter. A comprehensive survey of multiagent reinforcement learning. IEEE Transactions on Systems, Man, and Cybernetics, Part C (Applications and Reviews), 38(2):156-172, 2008.
+Steve Butler, Mohammad T Hajiaghayi, Robert D Kleinberg, and Tom Leighton. Hat guessing games. SIAM review, 51(2):399-413, 2009.
+Yongcan Cao, Wenwu Yu, Wei Ren, and Guanrong Chen. An overview of recent progress in the study of distributed multi-agent coordination. IEEE Transactions on Industrial informatics, 9(1): 427-438, 2012.
+Jingdi Chen, Tian Lan, and Carlee Joe-Wong. Rgmcomm: Return gap minimization via discrete communications in multi-agent reinforcement learning. In Proceedings of the AAAI Conference on Artificial Intelligence, 2024.
+Junyoung Chung, Caglar Gulcehre, Kyunghyun Cho, and Yoshua Bengio. Empirical evaluation of gated recurrent neural networks on sequence modeling. In NIPS 2014 Workshop on Deep Learning, December 2014, 2014.
+Allan Dafoe, Edward Hughes, Yoram Bachrach, Tantum Collins, Kevin R McKee, Joel Z Leibo, Kate Larson, and Thore Graepel. Open problems in cooperative ai. arXiv preprint arXiv:2012.08630, 2020.
+Abhishek Das, Théophile Gervet, Joshua Romoff, Dhruv Batra, Devi Parikh, Mike Rabbat, and Joelle Pineau. Tarmac: Targeted multi-agent communication. In International Conference on machine learning, pp. 1538-1546. PMLR, 2019.
+
+Starkey Duncan Jr. Nonverbal communication. Psychological bulletin, 72(2):118, 1969.
+Uriel Feige. You can leave your hat on (if you guess its color). Technical report, Technical Report MCS04-03, Computer Science and Applied Mathematics, The . . . 2004.
+Jakob Foerster, Ioannis Alexandros Assael, Nando De Freitas, and Shimon Whiteson. Learning to communicate with deep multi-agent reinforcement learning. Advances in neural information processing systems, 29, 2016.
+Benjamin Freed, Rohan James, Guillaume Sartoretti, and Howie Choset. Sparse discrete communication learning for multi-agent cooperation through backpropagation. In 2020 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pp. 7993-7998. IEEE, 2020a.
+Benjamin Freed, Guillaume Sartoretti, Jiaheng Hu, and Howie Choset. Communication learning via backpropagation in discrete channels with unknown noise. In Proceedings of the AAAI conference on artificial intelligence, 2020b.
+Andrew Fuchs, Michael Walton, Theresa Chadwick, and Doug Lange. Theory of mind for deep reinforcement learning in hanabi. arXiv preprint arXiv:2101.09328, 2021.
+Niko A Grupen, Daniel D Lee, and Bart Selman. Multi-agent curricula and emergent implicit signaling. In Proceedings of the 21st International Conference on Autonomous Agents and Multiagent Systems, pp. 553-561, 2022.
+Nikunj Gupta, G Srinivasaraghavan, Swarup Mohalik, Nishant Kumar, and Matthew E Taylor. Hammer: Multi-level coordination of reinforcement learning agents via learned messaging. *Neural Computing and Applications*, pp. 1-16, 2023.
+John C Harsanyi. Games with incomplete information played by "bayesian" players, i-iii part i. the basic model. Management science, 14(3):159-182, 1967.
+Matthew Hausknecht and Peter Stone. Deep recurrent q-learning for partially observable mdps. In 2015 aaai fall symposium series, 2015.
+Julian Havit. *Impossible?: Surprising Solutions to Counterintuitive Conundrums*. Princeton University Press, 2011.
+Serhii Havrylov and Ivan Titov. Emergence of language with multi-agent games: Learning to communicate with sequences of symbols. Advances in neural information processing systems, 30, 2017.
+Fritz Heider and Marianne Simmel. An experimental study of apparent behavior. The American journal of psychology, 57(2):243-259, 1944.
+Hengyuan Hu and Jakob N Foerster. Simplified action decoder for deep multi-agent reinforcement learning. In International Conference on Learning Representations, 2019.
+Eric Jang, Shixiang Gu, and Ben Poole. Categorical reparameterization with gumbel-softmax. arXiv preprint arXiv:1611.01144, 2016.
+Jiechuan Jiang and Zongqing Lu. Learning attentional communication for multi-agent cooperation. Advances in neural information processing systems, 31, 2018.
+Jiechuan Jiang, Chen Dun, Tiejun Huang, and Zongqing Lu. Graph convolutional reinforcement learning. In International Conference on Learning Representations, 2018.
+Nicholas Kantack. Reinforcement learning on human decision models for uniquely collaborative ai teammates. arXiv preprint arXiv:2111.09800, 2021.
+Woojun Kim, Myungsik Cho, and Youngchul Sung. Message-dropout: An efficient training method for multi-agent deep reinforcement learning. In Proceedings of the AAAI conference on artificial intelligence, 2019.
+Woojun Kim, Jongeui Park, and Youngchul Sung. Communication in multi-agent reinforcement learning: Intention sharing. In International conference on learning representations, 2020.
+
+Richard G Klein. The human career: Human biological and cultural origins. University of Chicago Press, 2009.
+Vijay Konda and John Tsitsiklis. Actor-critic algorithms. Advances in neural information processing systems, 12, 1999.
+Xiangyu Kong, Bo Xin, Fangchen Liu, and Yizhou Wang. Revisiting the master-slave architecture in multi-agent deep reinforcement learning. arXiv preprint arXiv:1712.07305, 2017.
+Landon Kraemer and Bikramjit Banerjee. Multi-agent reinforcement learning as a rehearsal for decentralized planning. Neurocomputing, 190:82-94, 2016.
+Adam Lerer, Hengyuan Hu, Jakob Foerster, and Noam Brown. Improving policies via search in cooperative partially observable games. In Proceedings of the AAAI conference on artificial intelligence, 2020.
+Dapeng Li, Zhiwei Xu, Bin Zhang, Guangchong Zhou, Zeren Zhang, and Guoliang Fan. From explicit communication to tacit cooperation: A novel paradigm for cooperative marl. In Proceedings of the 23rd International Conference on Autonomous Agents and Multiagent Systems, pp. 2360-2362, 2024.
+Ling Li, Alcherio Martinoli, and Yaser S Abu-Mostafa. Emergent specialization in swarm systems. In Intelligent Data Engineering and Automated Learning—IDEAL 2002: Third International Conference Manchester, UK, August 12–14, 2002 Proceedings 3, pp. 261–266. Springer, 2002.
+Sheng Li, Jayesh K Gupta, Peter Morales, Ross Allen, and Mykel J Kochenderfer. Deep implicit coordination graphs for multi-agent reinforcement learning. In Proceedings of the 20th International Conference on Autonomous Agents and MultiAgent Systems, pp. 764-772, 2021.
+Ryan Lowe, Yi I Wu, Aviv Tamar, Jean Harb, OpenAI Pieter Abbeel, and Igor Mordatch. Multiagent actor-critic for mixed cooperative-competitive environments. Advances in neural information processing systems, 30, 2017.
+Dung Nguyen, Svetha Venkatesh, Phuoc Nguyen, and Truyen Tran. Theory of mind with guilt aversion facilitates cooperative reinforcement learning. In *Asian conference on machine learning*, pp. 33-48. PMLR, 2020.
+Frans A Oliehoek, Matthijs TJ Spaan, and Nikos Vlassis. Optimal and approximate q-value functions for decentralized pomdpds. Journal of Artificial Intelligence Research, 32:289-353, 2008.
+Liviu Panait and Sean Luke. Cooperative multi-agent learning: The state of the art. Autonomous agents and multi-agent systems, 11:387-434, 2005.
+Allan Pease. Body language: How to read others' thoughts by their gestures. Sheldon press, 1984.
+Peng Peng, Ying Wen, Yaodong Yang, Quan Yuan, Zhenkun Tang, Haitao Long, and Jun Wang. Multiagent bidirectionally-coordinated nets: Emergence of human-level coordination in learning to play starcraft combat games. arXiv preprint arXiv:1703.10069, 2017.
+Emanuele Pesce and Giovanni Montana. Improving coordination in small-scale multi-agent deep reinforcement learning through memory-driven communication. Machine Learning, 109(9):1727-1747, 2020.
+David Premack and Guy Woodruff. Does the chimpanzee have a theory of mind? Behavioral and brain sciences, 1(4):515-526, 1978.
+Chao Qu, Hui Li, Chang Liu, Junwu Xiong, james zhang, Wei Chu, Weiqiang Wang, Yuan Qi, and Le Song. Intention propagation for multi-agent reinforcement learning, 2021. URL https://openreview.net/forum?id=7apQQsbahFz.
+Neil Rabinowitz, Frank Perbet, Francis Song, Chiyuan Zhang, SM Ali Eslami, and Matthew Botvinick. Machine theory of mind. In International conference on machine learning, pp. 4218-4227. PMLR, 2018.
+
+Maayan Roth, Reid Simmons, and Manuela Veloso. What to communicate? execution-time decision in multi-agent pomdps. In Distributed autonomous robotic systems 7, pp. 177-186. Springer, 2006.
+Samuel Shaw, Emerson Wenzel, Alexis Walker, and Guillaume Sartoretti. Formic: Foraging via multiagent rl with implicit communication. IEEE Robotics and Automation Letters, 7(2):4877-4884, 2022.
+Sainbayar Sukhbaatar, Rob Fergus, et al. Learning multiagent communication with backpropagation. Advances in neural information processing systems, 29, 2016.
+Peter Sunehag, Guy Lever, Audrunas Gruslys, Wojciech Marian Czarnecki, Vinicius Zambaldi, Max Jaderberg, Marc Lanctot, Nicolas Sonnerat, Joel Z Leibo, Karl Tuyls, et al. Value-decomposition networks for cooperative multi-agent learning based on team reward. In Proceedings of the 17th International Conference on Autonomous Agents and MultiAgent Systems, pp. 2085-2087, 2018.
+Kai Tian, Athanasios Tzigieras, Chongfeng Wei, Yee Mun Lee, Christopher Holmes, Matteo Leonetti, Natasha Merat, Richard Romano, and Gustav Markkula. Deceleration parameters as implicit communication signals for pedestrians' crossing decisions and estimations of automated vehicle behaviour. Accident Analysis & Prevention, 190:107173, 2023.
+Zheng Tian, Shihao Zou, Ian Davies, Tim Warr, Lisheng Wu, Haitham Bou Ammar, and Jun Wang. Learning to communicate implicitly by actions. In Proceedings of the AAAI Conference on Artificial Intelligence, 2020.
+Michael Tomasello and Amrisha Vaish. Origins of human cooperation and morality. Annual review of psychology, 64(1):231-255, 2013.
+Mycal Tucker, Roger Levy, Julie A Shah, and Noga Zaslavsky. Trading off utility, informativeness, and complexity in emergent communication. Advances in neural information processing systems, 35:22214-22228, 2022.
+Karl Tuyls and Gerhard Weiss. Multiagent learning: Basics, challenges, and prospects. *Ai Magazine*, 33(3):41-41, 2012.
+Sun Tzu. The art of war. In Strategic Studies, pp. 63-91. Routledge, 2008.
+Rundong Wang, Xu He, Runsheng Yu, Wei Qiu, Bo An, and Zinovi Rabinovich. Learning efficient multi-agent communication: An information bottleneck approach. In International Conference on Machine Learning, pp. 9908-9918. PMLR, 2020.
+Yuanfei Wang, Jing Xu, Yizhou Wang, et al. Tom2c: Target-oriented multi-agent communication and cooperation with theory of mind. In International Conference on Learning Representations, 2021.
+Peter Winkler. Games people don't play. Puzzer's Tribute: a Feast for the Mind, pp. 301-313, 2002.
+Zhuoya Zhao, Feifei Zhao, Yuxuan Zhao, Yi Zeng, and Yinqian Sun. A brain-inspired theory of mind spiking neural network improves multi-agent cooperation and competition. *Patterns*, 4(8), 2023.
+Changxi Zhu, Mehdi Dastani, and Shihan Wang. A survey of multi-agent reinforcement learning with communication. arXiv preprint arXiv:2203.08975, 2022.
+
+# A TRAINING DETAILS
+
+# A.1 ICP IMPLEMENTATION WITH DIAL AND VDN
+
+In our implementation, we employ a 2-head input and 2-head output Implicit Channel Net (ICN) to parameterize all Q functions. Specifically, at each time step $t$ , for agent $i$ , observation-action pairs $(o_{t,i}, u_{t-1})$ are input to one Multilayer Perceptron (MLP) and Rectified Linear Unit (ReLU) layer. Additionally, the last message vectors from other agents $(\vec{m_{k,l}}$ , where $k = \max(j \mid \vec{m_{j,l}} \in \vec{M}))$ for $l \in (1, \dots, N)$ are stacked together along with each message sender's ID, then input to another MLP and ReLU layer. The outputs of these two layers are summed and input to a Gated Recurrent Unit (GRU) network (Chung et al., 2014). This process approximately achieves the Q function input with action-observation history $\tau$ and other agents' messages $m_{-i}$ by utilizing hidden states and inputs at each time step.
+
+Subsequently, the output of the GRU is directed to two distinct heads: an action head and a message head. The action head generates logits for actions, with an output dimension of $|U - U^s| + 1$ , while the message head is specialized to handle the agent's communication behavior, producing logits for messages. Specifically, the output dimension of the message head is set to $|U^s| + 1$ , where the additional dimension represents the NOOP (no operation) action. This design ensures that the agent refrains from sending a message when the action sampled from the action logits does not correspond to send_info. To enforce this behavior, a mask is applied to the output of the message head. When the action sampled from the action logits is send_info, the mask restricts Gumbel-Softmax sampling to select the NOOP action. If the agent decides to send a message, the sampled one-hot vector of messages $\vec{m}$ directly maps to the $j$ -th information action $u^{\mathrm{info}}$ , where $j = \operatorname*{argmax}_{l\in (1,\dots,|U^s|)}\vec{m}_l$ .
+
+During centralized training sessions, action sampling follows an $\epsilon$ -greedy policy to ensure exploration, while we maintain the gradient of the one-hot vector of messages $\vec{m}$ to ensure gradients pass through the communication process. However, since gradient information becomes inaccurate for updated policies, we can only use sampled episodes once, making our method on-policy. In decentralized execution sessions, we simply utilize the shared parameter network to manage greedy actions and one-hot vector messages sampled from Gumbel-Softmax.
+
+# A.2 ICP IMPLEMENTATION WITH RGMCOMM AND VDN
+
+In the pre-training phase of this approach, we used RGMComm, which utilized Regularized Information Maximization loss (Chen et al., 2024) to generate discrete messages. This method represents the latest state-of-the-art explicit communication algorithm in multi-agent reinforcement learning (MARL).
+
+RGMComm itself is based on the MADDPG (Multi-Agent Deep Deterministic Policy Gradient) framework (Lowe et al., 2017). Initially, a full observability centralized actor-critic model (Konda & Tsitsiklis, 1999) is trained to develop a policy with access to global information. This centralized policy serves as a reference to guide the communication strategy for each agent. During this stage, the agents use a centralized critic with a complete view of the environment to assess the action-value functions and optimize the communication strategy. After training this full-observability policy, RGMComm samples different information sets based on local observations. It then clusters these sampled information sets (Harsanyi, 1967) to assign specific messages to each cluster. By doing so, RGMComm derives a discrete communication protocol tailored to each agent's local observations, optimizing their joint policy under partial observability.
+
+In our implementation, instead of using MADDPG, we employed an RDQN (Recurrent Deep Q-Network) (Hausknecht & Stone, 2015) to train the policy with full observability. For example, in environments like Hanabi, the difference between the full observation (global view) and the local observation is minimal, with only additional knowledge of the agent's own hand being considered. Using this full-observation policy, we performed clustering on the information sets, similarly to the RGMComm approach, to obtain the message strategy.
+
+Following the pre-training phase, we proceed to the fine-tuning phase. This phase involves using VDN (Value Decomposition Network) to train the action policy. During this process, the communication strategy is embedded into the scouting action space and is fine-tuned to adapt to the environ-
+
+Algorithm 1: ICP implementation with DIAL and VDN
+Input: environment env, max-train-step, max-episode-length, target-update-rate, $\gamma$ , exploration constant $\epsilon$ , learning rate $\alpha$ , selection of information action space $U_{\mathrm{info}}$
+Output: Trained model parameters
+1 Initialize shared RNN network weights $(\theta_{1},\theta_{2})$ for each agent $i$ and centralized Mapping Mechanism $\mathcal{P}$ , target net weights $(\theta_1^{\prime},\theta_2^{\prime})\gets (\theta_1,\theta_2)$ .
+for Train step $N = 1,2,\ldots$ , max-train-step do
+3 Reset environment, $o_0 = \mathsf{env}$ reset();
+4 Reset buffer $B$ .
+5 Initialize empty one-hot messages $m_0$ and target empty one-hot messages $m_0^\prime$ , 2 RNNs' hidden states $(h_1,h_2)$ and 2 target RNNs' hidden states $(h_1',h_2')$ .
+6 for time step $t = 1,2,\dots$ , max-episode-length do
+7 Initialize empty one-hot messages $m_t$ .
+8 for each agent i do Sample message and update hidden state: $m_{\mathrm{sample}},h_2 = GumbelSoftmax(\varphi_{\theta_2}(o_{t,i},m_{t - 1, - i},h_2));$ Sample a random action $u_{\mathrm{random}}\in U_{\mathrm{non - info}}$ . Compute greedy action and update hidden state: $u_{\mathrm{greedy}},h_1 = \arg \max_u(\pi_{\theta_1}(o_{t,i},m_{t - 1, - i},h_1))$ . $\epsilon$ greedy sample action $u_{t,i}\leftarrow \epsilon \cdot u_{\mathrm{random}} + (1 - \epsilon)\cdot u_{\mathrm{greedy}}$ Get action $u_{t,i}$ s q: $q_{t,i} = Q_{\theta_1}(u_{t,i}\mid o_{t,i},m_{t - 1, - i},h_1)$ if $u_{t,i} = |U_{\mathrm{non - info}} - 1|$ (send_info) then Update action $u_{t,i}\gets u_{info} = \mathcal{P}(m_{\mathrm{sample}},\bigcap_{i\in N}\tau_{t,i})$ Update message $m_{t,i} = m_{\mathrm{sample}}$ Sample target message and update hidden state: $m_{\mathrm{sample}}^{\prime},h_2^{\prime} = GumbelSoftmax(\varphi_{\theta_2}^{\prime}(o_{t,i},m_{t - 1, - i}^{\prime},h_2^{\prime}))$ Compute target greedy action's $q$ and update hidden state: $q_{t,i}^{\prime},h_1^{\prime} = \max_u(\pi_{\theta_1}^{\prime}(o_{t,i},m_{t - 1, - i}^{\prime},h_1^{\prime}))$ if arg max $\boldsymbol {u}_{(}\pi_{\theta_{1}^{\prime}}(o_{t,i},m_{t - 1, - i}^{\prime},h_{1}^{\prime})) = |U_{\mathrm{non - info}} - 1|$ (send_info) then Update message $m_{t,i}^{\prime} = m_{\mathrm{sample}}^{\prime}$ Step environment, $o_{t + 1},r_t = \mathrm{env}.step(u_t)$ Store $(q_t,q_t',rt)$ into buffer B; Use samples in buffer to compute sum- $q$ 's TD-error: $\delta_t = r_t + \gamma \cdot \sum_i(q_{t + 1,i}' - \sum_i(q_t,i);$ Update network weights $\theta_{1},\theta_{2}$ using Adam Optimizer with loss $\delta_{t,i}^{2}$ if Train step N mod target-update-rate $\equiv 0$ then Update target network weights $(\theta_1',\theta_2')\gets (\theta_1,\theta_2)$
+
+ment. By freezing the RGMComm-generated communication strategy during the initial stages of fine-tuning, we ensure stability and later adjust the embedding to better align with the action policy.
+
+# A.3 IMPLEMENTATION OF DIAL-CHEAT AND ICN-DIAL-DM
+
+DIAL with a Direct Communication Channel (DIAL-Cheat): In this approach, we added a discrete direct channel to the original environment, with the message size matching the size of the scouting action space. This channel allows agents to broadcast information while simultaneously taking actions.
+
+ICP Implemented with the Delayed Map Approach (ICN-DIAL-DM): For this method, we first removed scouting actions from the environment and introduced a discrete direct channel (with the same message size as the scouting action space). Using this modified environment, we pre-trained the agents with DIAL to learn the information strategy. The learned information strategy was then transferred back to the original environment for fine-tuning, where both the information strategy and action policy were optimized.
+
+# B HUMAN CONVENTION IN HANABI
+
+Hanabi serves as a compelling platform for studying cooperation and ad-hoc teamwork, particularly within the MARL community, while also being an engaging game in its own right. Beyond its academic appeal, many players have developed highly sophisticated strategies, as detailed in the referenced H-Group conventions1. These conventions outline a framework that enables players to achieve high scores by adhering to agreed-upon strategies.
+
+
+Figure 4: By shuffling the embedding of information into scouting actions, even if the information strategy stays the same, environment information will also change. After fine-tuning, the performance of implementation with the same information strategy but different embedding varies.
+
+Interestingly, some of these strategies embed elements of ToM reasoning into the conventions themselves. For example, techniques like Delayed Play Clues explicitly define the information that certain actions are intended to convey when teammates perform specific moves. Even the Basic and Advanced Strategies, such as misleading bluffs, leverage second-order ToM reasoning to facilitate more effective collaboration.
+
+In a manner similar to ICP, the H-Group conventions construct a stable implicit communication channel by explicitly codifying the ToM reasoning into the actions. When all players follow these conventions, actions serve as reliable carriers of information, ensuring a consistent and effective communication channel within the game.
+
+Compared with H-Group conventions, our ICP framework differs in that the communication strategy itself is learned as part of the training process, rather than being predefined. The communication through informative actions becomes akin to following a learned convention where agents develop their own patterns for encoding and transmitting information during the training phase. This allows agents to use scouting or informative actions as explicit communication mechanisms, while regular actions are selected through an online decision-making policy during gameplay. Notably, our method achieves a score of approximately 24.91 in the Hanabi game, which significantly surpasses the average human score of around 17 (Kantack, 2021). Thus, ICP offers a dynamic communication framework where the convention of communication emerges from the agents' learning process, enabling more flexible and adaptive strategies depending on the environment and task at hand.
+
+# C ANALYSIS OF HANABI RESULTS
+
+In Figure 3(b), we present a comparison between our proposed method and SAD, focusing on differences in average scores. While the difference in average score appears minimal in the figure, a detailed analysis provided below reveals that our method achieves a substantial improvement in overall performance.
+
+According to the results reported in the original SAD paper, SAD achieved an average score of 23.81/25 with a win rate of $41.45\%$ . In contrast, our proposed method achieved an average score of 24.91/25 with a win rate of $91\%$ . This represents a more than twofold increase in the win rate. The relatively small difference in average scores, despite the significant improvement in win rates, can be attributed to the score ceiling of 25 in Hanabi.
+
+Hanabi imposes inherent constraints on scoring due to its game structure. Certain starting hands, such as those with multiple high-value cards (e.g., 4s and 5s), can make achieving the maximum score of 25 impossible. Considering these limitations, achieving a win rate of $91\%$ and scores close to 24 in the remaining $9\%$ of games—demonstrates that our method performs near the theoretical maximum.
\ No newline at end of file
diff --git a/ICLR/2025/Learning to Communicate Through Implicit Communication Channels/images.zip b/ICLR/2025/Learning to Communicate Through Implicit Communication Channels/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..b51e854f1853aba88d71bc960e39a2ef8ffa88d0
--- /dev/null
+++ b/ICLR/2025/Learning to Communicate Through Implicit Communication Channels/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:65c5e7907bee71cb4375f0720a116738c02025a3180bd28038a9f468f964006a
+size 114217
diff --git a/ICLR/2025/Learning to Communicate Through Implicit Communication Channels/layout.json b/ICLR/2025/Learning to Communicate Through Implicit Communication Channels/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..e30b097a98e6075341f6194d65e3c46569a0abaf
--- /dev/null
+++ b/ICLR/2025/Learning to Communicate Through Implicit Communication Channels/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7d24e46b27203c3b1f3041e16a74536e1beaa1957b213f2cd8a84d72ab5d9801
+size 510612
diff --git a/ICLR/2025/Learning to Contextualize Web Pages for Enhanced Decision Making by LLM Agents/78f8d4e6-bbe0-4dcd-889c-7aa0ece5c6c7_content_list.json b/ICLR/2025/Learning to Contextualize Web Pages for Enhanced Decision Making by LLM Agents/78f8d4e6-bbe0-4dcd-889c-7aa0ece5c6c7_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..a80102f0b93a3c35fd4c746fca970cdd79d406fe
--- /dev/null
+++ b/ICLR/2025/Learning to Contextualize Web Pages for Enhanced Decision Making by LLM Agents/78f8d4e6-bbe0-4dcd-889c-7aa0ece5c6c7_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b994eb6f278e5dd889d8efb4a38e0d837a89919fae3ef74e59989f87378a640a
+size 192429
diff --git a/ICLR/2025/Learning to Contextualize Web Pages for Enhanced Decision Making by LLM Agents/78f8d4e6-bbe0-4dcd-889c-7aa0ece5c6c7_model.json b/ICLR/2025/Learning to Contextualize Web Pages for Enhanced Decision Making by LLM Agents/78f8d4e6-bbe0-4dcd-889c-7aa0ece5c6c7_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..b505614d9392620186ae72c6d7bbed7133cf0336
--- /dev/null
+++ b/ICLR/2025/Learning to Contextualize Web Pages for Enhanced Decision Making by LLM Agents/78f8d4e6-bbe0-4dcd-889c-7aa0ece5c6c7_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:eba094ff967d8d7dd9616aae701143ee786b17fde7fa6fe549f90399afcdd967
+size 220595
diff --git a/ICLR/2025/Learning to Contextualize Web Pages for Enhanced Decision Making by LLM Agents/78f8d4e6-bbe0-4dcd-889c-7aa0ece5c6c7_origin.pdf b/ICLR/2025/Learning to Contextualize Web Pages for Enhanced Decision Making by LLM Agents/78f8d4e6-bbe0-4dcd-889c-7aa0ece5c6c7_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..75f30f9267bab510135d22d1ad257164b48801aa
--- /dev/null
+++ b/ICLR/2025/Learning to Contextualize Web Pages for Enhanced Decision Making by LLM Agents/78f8d4e6-bbe0-4dcd-889c-7aa0ece5c6c7_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:da99bf16113af2093b25378ab60519665253c56566053e58e119306330a16523
+size 1740787
diff --git a/ICLR/2025/Learning to Contextualize Web Pages for Enhanced Decision Making by LLM Agents/full.md b/ICLR/2025/Learning to Contextualize Web Pages for Enhanced Decision Making by LLM Agents/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..d49b4b0c7b400f4929577e4ddda1d027f728f7b1
--- /dev/null
+++ b/ICLR/2025/Learning to Contextualize Web Pages for Enhanced Decision Making by LLM Agents/full.md
@@ -0,0 +1,1265 @@
+# LEARNING TO CONTEXTUALIZE WEB PAGES FOR ENHANCED DECISION MAKING BY LLM AGENTS
+
+Dongjun Lee\*, Juyong Lee\*, Kyuyoung Kim, Jihoon Tack
+
+Jinwoo Shin1, Yee Whye Teh2, Kimin Lee1
+
+{dgjun32,agi.is}@kaist.ac.kr
+
+KAIST AI1, University of Oxford2
+
+# ABSTRACT
+
+Recent advances in large language models (LLMs) have led to a growing interest in developing LLM-based agents for automating web tasks. However, these agents often struggle with even simple tasks on real-world websites due to their limited capability to understand and process complex web page structures. In this work, we introduce LCoW, a framework for Learning language models to Contextualize complex Web pages into a more comprehensible form, thereby enhancing decision making by LLM agents. LCoW decouples web page understanding from decision making by training a separate contextualization module to transform complex web pages into comprehensible format, which are then utilized by the decision-making agent. We demonstrate that our contextualization module effectively integrates with LLM agents of various scales to significantly enhance their decision-making capabilities in web automation tasks. Notably, LCoW improves the success rates of closed-source LLMs (e.g., Gemini-1.5-flash, GPT-4o, Claude-3.5-Sonnet) by an average of $15.6\%$ , and demonstrates a $23.7\%$ average improvement in success rates for open-source LMs (e.g., Llama-3.1-8B, Llama-3.1-70B) on the WorkArena benchmark. Moreover, the Gemini-1.5-flash agent with LCoW achieves state-of-the-art results on the WebShop benchmark, outperforming human experts. The relevant code materials are available at our project page: https://lcowiclr2025.github.io.
+
+# 1 INTRODUCTION
+
+Large language models (LLMs) have demonstrated strong potential in automating web tasks by treating web browsing as a sequential decision-making process, where web pages serve as observations and user interactions, such as clicking and typing, function as actions (Yao et al., 2022a;b). Various approaches have been developed to enhance the performance of LLM agents in these tasks. One such method involves fine-tuning open-source LLMs using demonstration data from web browsing tasks (Furuta et al., 2023; Lai et al., 2024). While promising, this approach requires extensive data collection and significant computational resources for effective fine-tuning. Alternatively, several studies have utilized advanced closed-source LLMs, such as GPT-4o (OpenAI, 2024), with carefully designed prompting techniques (Drouin et al., 2024; Zhou et al., 2023a; Sodhi et al., 2024; Pan
+
+et al., 2024). By leveraging the general world knowledge and reasoning capabilities of these models, the methods enhance web automation but at the cost of reduced controllability.
+
+
+Figure 1: Success rate of the Gemini-1.5 flash agent on 40 WorkArena tasks. We selected a subset of 40 tasks by choosing the first 40 tasks based on the task indices. When the agent leverages observations contextualized by GPT-4o (yellow), its success rate improves by $31\%$ , with further improvements achieved with our method (green).
+
+However, despite the advancements, state-of-the-art LLM agents often struggle to process complex raw web content, such as HTML and accessibility trees, posing significant challenges for their effec
+
+
+Figure 2: (Top) In the conventional pipeline, LLM agents decide on the next action based on raw, complex web page observations (e.g., HTML, accessibility trees), which often hinder accurate decision making. (Bottom) In our proposed pipeline, a contextualization module transforms these complex web page observations into a more comprehensible format, thereby enabling LLM agents to make more accurate decisions by enhancing their understanding of the web page.
+
+tive use in web task automation. While LLMs excel in tasks that require detailed reasoning, such as solving mathematical problems or coding, we hypothesize that their underperformance in seemingly simple decision-making tasks like web browsing is not due to a lack of decision-making capabilities but rather to difficulties in understanding and processing complex web page observations.
+
+To validate our hypothesis, we conducted an initial experiment that demonstrated an LLM agent based on Gemini-1.5-flash can achieve substantial improvements in web browsing tasks when equipped with a module designed to contextualize complex web page observations (i.e., contextualization module). This module enhances task performance by removing irrelevant UI elements and highlighting key components with explanations, thereby simplifying the decision-making process. We evaluated the performance of this agent on 40 tasks from WorkArena (Drouin et al., 2024), a benchmark designed to assess web agents on real-world, enterprise-related websites. As shown in Figure 1, utilizing GPT-4o as the contextualization module (yellow) resulted in a $31\%$ absolute improvement in the agent's success rate compared to direct processing of raw observations (red). These results support our hypothesis that the difficulty in understanding web pages is a major bottleneck for LLM-based web agents.
+
+In this work, we propose LCoW, a framework that includes a contextualization module and a training algorithm to fine-tune this module to enhance the decision-making capabilities of LLM agents in web automation. As illustrated in Figure 2, the contextualization module transforms complex web page observations into a comprehensible format, enabling LLM agents to make more accurate decisions. Furthermore, to enable the contextualization module to provide context more grounded in real websites, we propose an iterative algorithm designed to train the contextualization module. Our training algorithm consists of three phases: (i) trajectory collection, (ii) sampling contextualized observations, and (iii) updating the contextualization module. For each observation from the collected trajectories, we generate multiple contextualized observations using the current contextualization module. Each observation is then assigned a reward based on whether a set of LLM agents can accurately predict the correct action given the contextualized observation. Finally, we select the one with the highest reward as the target and train the contextualization module to maximize the likelihood of the target given the original raw observation.
+
+As demonstrated in our initial experiment using the Gemini-1.5-flash (see Figure 1), LCoW significantly enhances the decision-making capabilities of LLM agents, even beyond the improvements seen with state-of-the-art LLMs like GPT-4o used as a contextualization module. In our experiments, we conduct comprehensive evaluations of our proposed approach on three well-established benchmarks for evaluating agent performance in web environments: WebShop (Yao et al., 2022a), WorkArena (Drouin et al., 2024), and WebArena (Zhou et al., 2023a). In detail, we first demonstrate that LCoW significantly enhances the overall performance of LLM agents with varying scales in the main experiment. Furthermore, we analyze the behavior of the contextualization module in
+
+detail, including qualitative examination of the observation refined by the contextualization module, comparison with training LLM agents using behavior cloning, and generalization ability.
+
+# 2 BACKGROUND
+
+In this section, we describe the formulation of web browsing as a sequential decision-making problem and the use of LLMs as decision-making agents.
+
+Web browsing can be formulated as a Partially Observable Markov Decision Process (POMDP), defined by $\langle S, \mathcal{O}, \mathcal{A}, T, \mathcal{R} \rangle$ . The state $s_t \in S$ represents the internal configuration of the web browser at time step $t$ , which is only partially observable. The observation $o_t \in \mathcal{O}$ corresponds to the web page rendered by the web browser given $s_t$ , which can take various forms (e.g., screenshot, HTML, accessibility trees). The action space $\mathcal{A}$ is the set of all possible interactions with the UI elements (e.g., clicking, typing). The state transition function $T$ defines the probability of transitioning from state $s$ to state $s'$ after performing an action $a_t \in \mathcal{A}$ , such as clicking a link or scrolling. While transitions are typically deterministic, occasional stochastic events (e.g., pop-ups, network errors) can occur. The reward function $\mathcal{R}$ assesses the functional correctness, evaluating whether the resulting state $s_t$ satisfies pre-defined criteria for successful task completion.
+
+Leveraging their ability to interpret web pages and generate actions in text form, LLMs are increasingly employed as agents for automating web-based tasks. In this framework, an LLM agent $\pi$ generates an action $a_{t}$ to interact with UI elements at each time step $t$ , based on the user instruction [TASK], the current web page observation $o_{t}$ , and the history of previous actions $a_{< t}$ . The objective of the agent is to complete the given task in order to maximize the reward.
+
+# 3 METHOD
+
+In this section, we present LCoW, a framework for enhancing the capability of LLM agents by contextualizing complex web pages. Section 3.1 outlines the concept of the contextualization module and its integration with LLM agents for web task automation. Section 3.2 introduces an iterative algorithm for training the contextualization modules to improve decision making of LLM agents.
+
+# 3.1 CONTEXTUALIZATION MODULE
+
+In this work, we decouple web page understanding from decision making of LLM agents. Our hypothesis is that while LLM agents possess strong decision-making capabilities, their performance can significantly degrade when they rely on lengthy, non-contextualized observations, such as HTML and accessibility trees. To address this limitation, we introduce a contextualization module, a separate language model designed to enhance LLM agents by contextualizing complex web page observations into a form that is easier to process and comprehensible. Intuitively, a proper contextualization of observations can enhance the agent's understanding of web content and its decision making based on the improved understanding (see Figure 3 for an example of the input and output of the module). Formally, given a web page observation $o_{t}$ at time step $t$ , the objective of our contextualization module $f_{\theta}$ is to generate a contextualized observation $o_{t}^{\circ}$ that serves as input to the LLM agent $\pi$ to enhance its decision making. Specifically, $f_{\theta}$ uses the task instruction [TASK], the previous actions of the agent $a_{
GPT-4o
Gemini-1.5-flash
Claude-3.5-Sonnet
Llama-3.1-70B (Unseen)
Success
Reward
Success
Reward
Success
Reward
Success
Reward
Raw observation
34.8%
0.496
43.6%
0.693
26.6%
0.336
34.2%
0.590
Self-ctx
26.2%
0.459
46.4%
0.608
12.4%
0.146
40.2%
0.547
LCoW (iter 1)
27.8%
0.545
46.4%
0.705
39.4%
0.600
39.2%
0.666
LCoW (iter 2)
46.0%
0.647
58.2%
0.796
58.8%
0.780
55.0%
0.781
LCoW (iter 3)
50.6%
0.666
62.8%
0.803
59.8%
0.771
59.6%
0.803
+
+Table 1: We investigate the efficacy of LCoW across multiple LLM agents in WebShop. For all LLM agents, LCoW consistently improves both success rate and reward over iterations, surpassing self-contextualization (self-ctx) and even human expert-level success rate by the third iteration. Additionally, LCoW is also effective when combined with Llama-3.1-70B, which was not used for computing the action-matching reward (i.e., unseen) during training the contextualization module.
+
+
GPT-4o
Gemini-1.5-flash
Claude-3.5-Sonnet
Llama-3.1-70B (Unseen)
Llama-3.1-8B (Unseen)
Raw observation
38.2%
11.5%
44.8%
26.1%
1.2%
Self-ctx
43.0%
12.7%
50.3%
29.1%
7.3%
LCoW (iter 1)
44.2%
41.2%
55.8%
40.0%
37.0%
+
+Table 2: We evaluate the success rate of five LLM agents with varying scales on 165 tasks in the WorkArena benchmark. Single iteration of LCoW shows improvement of success rate over all LLMs, even generalized to Llama-3.1-70B and Llama-3.1-8B, which were not used for computing the action matching reward.
+
+# 4.2 MAIN RESULTS
+
+We first demonstrate the effectiveness of LCoW on WebShop and WorkArena benchmarks and show that the contextualization module trained via LCoW enhances performance even for an LLM agent that was not involved in the LCoW training process, such as Llama-3.1-70B. We evaluate against two baselines: (i) decision making based solely on raw observations without the contextualization module (i.e., Raw observation), and (ii) decision making based on the observation contextualized by the LLM agent itself (i.e., self-contextualization).
+
+Effectiveness of LCoW As shown in Table 1, in WebShop benchmark, both the success rates and the average rewards achieved by all three LLM agents improve substantially when integrated with the contextualization module trained with LCoW. Particularly, both the Gemini-1.5-flash and Claude-3.5-Sonnet agents surpass the average human performance of $50.5\%$ when combined with the contextualization module trained for 2 iterations. When the contextualization module is trained for 3 iterations, the agents exceed the expert human-level performance of $59.6\%$ . As illustrated in Figure 5, the Gemini-1.5-flash agent combined with LCoW achieves state-of-art performance on the WebShop benchmark, outperforming prior methods in success rate by more than $12\%$ . Notably, the Claude-3.5-Sonnet agent, lower performing than the other agents on WebShop, achieves $59.8\%$ of success rate when integrated with our contextualization module, demonstrating that LCoW can effectively enhance the decision-making capabilities of LLM agents.
+
+As shown in Table 2, on WorkArena, the Claude-3.5-Sonnet agent outperforms the GPT-4o agent, achieving a success rate of $44.8\%$ in our evaluation setup. When integrated with LCoW, Claude-3.5-Sonnet agent achieves an even higher success rate of $55.8\%$ , which is higher than all baselines evaluated. GPT-4o and Gemini-1.5-flash also improve $5\%$ and $30\%$ , respectively, when combined with LCoW.
+
+Generalization to arbitrary LLM agents We evaluate the Llama-3.1-8B agent and Llama-3.1-70B agent integrated with LCoW to assess its effectiveness with LLM agents not involved in the training process (i.e., those not used for computing action-matching rewards). As shown in Table 1, the Llama-3.1-70B agent combined with the contextualization module trained for two iterations outperforms average human performance $(50.0\%)$ on WebShop and achieves the success rate of human experts $(59.6\%)$ when trained for three iterations. Furthermore, Table 2 shows that the contextualization module also enhances Llama-3.1-8B and Llama-3.1-70B agent on WorkArena, improving
+
+# Contextualized observation:
+
+The AXTree observation shows we are on the Shipping Report page. The page contains a filter section with date range inputs, order status options, and other report parameters. There's also an export function and a table to display the report results.
+
+···
+
+Following elements are crucial for completing the user instruction:
+
+```txt
+[753] LabelText StaticText ' StaticText'
+```
+
+[756] textbox 'From * value='08/05/2022'
+[757] button 'undefined\ue627'
+
+[760] LabelText 'StaticText'To StaticText
+
+[763] textbox 'To *' value='03/01/2023', focused [764] button 'undefined\se627'
+
+This section contains the filter parameters for the shipping report. The date range inputs (From and To) have already been filled with the specified dates (08/05/2022 and 03/01/2023, respectively).
+
+# Contextualized observation:
+
+The AXTree observation shows a list of forums on a website called Postmill. Each forum is presented as an article with its name, number of subscribers, and number of submissions. The forums are sorted by the number of submissions in descending order.
+
+··
+
+Additionally, for context, we can include the first forum in the list to show where we are currently: [141] article ''
+
+[143] heading 'AskReddit - AskReddit' [144] link 'AskReddit - AskReddit'
+
+[149] paragraph ' ' [152] Section '
+
+[154] button 'Subscribe No subscribers' StaticText '0'
+
+[160] paragraph '' StaticText '10,041 submissions'
+
+This extraction shows the first forum in the list, which is "AskReddit" with 10,041 submissions. It confirms that we are currently on the first page of forums and need to navigate to the next page to continue our search for the UpliftingNews subreddit.
+
+Figure 6: Examples of how the contextualization module refines complicated web pages into comprehensible format from WebArena benchmark (Left) and WorkArena benchmark (Right). As indicated by blue color, the contextualization module provides comprehensible context by verbally explaining the web page and UI elements relevant to the given task.
+
+the success rate by approximately $36\%$ and $13\%$ , respectively. It is noteworthy that a relatively small LLM agent (i.e., Llama 3.1-8B) struggles to perform tasks when given raw observations, but when combined with LCoW, its success rate rises on significant margin. It demonstrates that LCoW can elicit a significant level of decision-making capability even from smaller models at the 8B scale.
+
+# 4.3 ANALYSIS
+
+How web pages are contextualized? We qualitatively analyze how the contextualization module, trained via LCoW, processes real-world web page observations and how the contextualization enhance decision making of LLM agents on web tasks. As shown in Figure 6, we observe that the contextualization module not only simplifies the web page by extracting UI elements relevant to the given task, but also verbally explains functionalities of the UI elements in web pages. These explanations aid LLM agents significantly in making more accurate decisions, while reducing the selection of inadmissible or redundant actions, which is the main failure mode of the LLM agent for web browsing. This knowledge of the functionality and interaction of UI elements grounded to the real website appears to have been learned during the LCoW training process, where the contextualization module explores various observation contextualizations and learns to generate contextualized observations that lead to more accurate decision making by LLM agents. More detailed examples and analyses are provided in the Appendix A.
+
+Comparison to directly training LLM agents One might argue that, given available demonstrations, it would be more straightforward to train the LLM agent directly rather than using the demonstrations to train a contextualization module. To demonstrate the superiority of training the contextualization module with an equivalent amount of demonstration data, we conduct comparative experiments against directly training LLM agent. In this analysis, we fine-tune Llama-3.1-8B with 264 seed demonstrations, the same demonstrations we used for training the contextualization module, using behavior cloning (BC) as a baseline. To ensure a fair comparison in terms of model scale, we define a Llama-3.1-8B agent that performs tasks based on the output of a contextualization module trained using LCoW as the direct comparison group. As shown in Figure 7, both smaller LLM agents, such as Llama-3.1-8B, and larger LLM agents achieve higher success rates when using the LCoW-trained contextualization module compared to the BC baseline.
+
+Generalization to tasks with unseen type Furthermore, we evaluate LCoW's generalization capabilities in WebArena benchmark. Specifically, we assess whether the contextualization module trained on specific task types generalizes to tasks belonging to task types unseen during the train
+
+
+Figure 7: Comparison to training LLM agent via behavior cloning (BC) in WorkArena. We fine-tune Llama-3.1-8B with demonstrations as a BC baseline.
+
+
+Figure 8: Comparison of GPT-4o agent navigating web pages based on raw observation and observation contextualized by LCoW in WebArena.
+
+ing. Details on the definition of unseen task types are provided in the Appendix B.2. Among 165 evaluation tasks in WebArena, 117 tasks belong to the seen task types, and the remaining 48 tasks belong to the unseen task types. As shown in Figure 8, LCoW consistently shows $6\%$ improvement in the success rate on both seen task types and unseen task types, compared to the GPT-4o agent without LCoW. We expect that generalization to unseen task types occurs due to the fact that the contextualization module learns to explain the UI elements in the web pages (e.g., the role of UI elements in complex web page observation) via LCoW-training, which enhances accurate decision making of LLM agents even in the unseen-type tasks. We also provide additional studies on the generalization ability of LCoW with the WorkArena benchmark in Appendix B.3.
+
+Can LCoW optimize the contextualization module for specific LLM agents? We demonstrate that LCoW effectively optimizes the contextualization module to generate context that leads to more accurate decision-making of LLM agents. In the WebShop benchmark, we used the contextualization module checkpoint from each LCoW training iteration to generate contextualized observations for the 1,372 raw observations present in the 397 seed demonstrations. We then calculated the action-matching reward by comparing the actions predicted from these contextualized observations with the ground-truth actions derived from the demonstrations. Figure 9 shows the average action-matching reward across three iterations, demonstrating that with each round of LCoW-training, the contextualization module increasingly produce contextualized observations that enhance decision making of the LLM agents used in data collection (i.e., GPT-4o, Gemini-1.5-flash, Claude-3.5-Sonnet). This shows the effectiveness of LCoW in optimizing the contextualization module for specific LLM agents. Furthermore, it suggests the potential to extend LCoW
+
+as a method for indirectly optimizing the behavior of closed-source LLM agents, where direct optimization is not feasible, across a wide range of text-based decision-making tasks.
+
+
+Figure 9: Average action-matching rewards across three iterations on WebShop show a consistent increase, suggesting that the contextualization module is optimized to generate observations that enhance decision-making in LLM agents.
+
+# 5 RELATED WORK
+
+LLM agents for web automation As LLMs continue to improve and demonstrate remarkable performance across diverse domains, developing web automation agents based on LLMs is gaining growing interest (Zhou et al., 2023a; Drouin et al., 2024). Recent works have explored various methods to utilize LLMs as agents for automating real-world web tasks. Pan et al. (2024) propose to apply a self-refine mechanism (Madaan et al., 2023) to improve decision making of agents through
+
+self-generated feedback. Sodhi et al. (2024) enhance web automation by using LLMs to manage low-level workflows handcrafted by humans, while Wang et al. (2024) extend this approach by introducing agent workflow memory, which extracts reusable routines from past experiences.
+
+Similar to our work, a promising direction for enhancing web automation involves integrating a summarization module that condenses web page observations, enabling agents to predict actions based on these summarized inputs. For example, Deng et al. (2024) propose MindAct, which consists of an HTML extraction module and an action prediction module. The HTML extraction module ranks individual HTML elements using a ranking language model trained to assess relevance based on user instructions and past actions. Additionally, Gur et al. (2024) introduce HTML-T5, a specialized language model for web page understanding pre-trained on a large corpus of HTML documents and fine-tuned for extractive summarization.
+
+Automated prompting for closed-source models The quality of outputs from closed-source LLMs heavily depends on the prompts used, leading to a substantial body of research dedicated to prompt engineering to elicit more effective responses from these models. (Kojima et al., 2022; Yao et al., 2022b; Lightman et al., 2024). For example, several recent studies have explored automating the discovery of more effective prompting formats (Shin et al., 2020; Zhou et al., 2023b). Manas et al. (2024) demonstrate that prompt refinement can yield more consistent responses from closed-source models, especially with text-to-image models. Also, Xu et al. (2024) have suggested compressing the input content for LLMs, focusing on the task of retrieval-augmented generation.
+
+# 6 LIMITATIONS AND FUTURE DIRECTIONS
+
+Dataset collection procedure We leveraged successful trajectories during training when using LCoW in our experiment. We acknowledge that this can be a bottleneck in learning completely new tasks that are not covered by the collected successful trajectories. To overcome this, incorporating an LLM-based search algorithm in the trajectory collection phase to gather successful trajectories for more challenging tasks can be an interesting future direction.
+
+Contextualization cost LCoW incurs latency in the decision-making process due to the computational cost required to generate the contextualized observation. Considering that most tokens of contextualized observation correspond to extraction from the raw observation, we expect LCoW can be integrated with an efficient decoding strategy (e.g., speculative decoding) for resolving the latency problem.
+
+Generalization ability Although we find that LCoW demonstrates generalization in several cases (e.g., unseen task types or unseen website), we acknowledge that we did not observe generalization to a broader range of tasks incorporating various unseen UI elements (see Appendix B.3 for more details), due to limited scale of experiments. We believe that scaling the dataset for the training contextualization module can be a promising direction for better generalization. For example, we expect leveraging large-scale web browsing demonstrations covering a wide range of websites as seed demonstrations would improve generalization to a broader range of tasks and websites.
+
+# 7 CONCLUSION
+
+In this work, we introduce LCoW, a novel approach to enhancing LLM agents in completing web tasks by leveraging language models to contextualize complex web pages into a more comprehensible form. Our approach separates the understanding of web content from the decision-making process by training a specialized module that generates contextualized representations of complex web pages, which are utilized by LLM agents for enhanced decision making. Through extensive experiments, we demonstrate that this contextualization module significantly improves the decision-making capabilities of LLM agents of varying scales.
+
+# ETHICS STATEMENT
+
+We introduce LCoW, a framework for improving decision-making capability of LLM agents for web automation. We caution that LLM agents may cause safety issues such as cybersecurity or risks regarding private information, while we believe that LCoW can be valuable for guiding the agents from potential mistakes by providing more contextualized information on the UI elements. Additionally, we believe the improved efficiency and capability of LLM agents with our methods can provide social opportunities to improve user interactions by using digital devices for those with disabilities.
+
+# REPRODUCIBILITY STATEMENT
+
+For the reproducibility of our results, we have provided a detailed description of our experimental setups and prompts in Section 4.1, Appendix B, and Appendix C. Across the entire experiment, we set the temperature hyperparameter of backbone LLM as 0.0 to enable reproduction. Additionally, to further facilitate reproduction, we open-source our work.
+
+# ACKNOWLEDGMENTS
+
+This research was partly supported by the MSIT(Ministry of Science, ICT), Korea, under the Global Research Support Program in the Digital Field program)(RS-2024-00436680, $70\%$ ) supervised by the IITP(Institute for Information & Communications Technology Planning & Evaluation). This work was partly supported by Institute for Information & communications Technology Planning & Evaluation(IITP) grant funded by the Korea government(MSIT) (RS-2019-II190075, Artificial Intelligence Graduate School Program(KAIST), $10\%$ ). This work was partly supported by the National Research Foundation of Korea(NRF) grant funded by the Korea government(MSIT) (No. RS-2024-00414822, $10\%$ ). This work was partly supported by the Institute of Information & Communications Technology Planning & Evaluation(IITP)-ITRC(Information Technology Research Center) grant funded by the Korea government(MSIT)(IITP-2025-RS-2024-00436857, $10\%$ )
+
+# REFERENCES
+
+Xiang Deng, Yu Gu, Boyuan Zheng, Shijie Chen, Sam Stevens, Boshi Wang, Huan Sun, and Yu Su. Mind2web: Towards a generalist agent for the web. Advances in Neural Information Processing Systems, 36, 2024.
+Alexandre Drouin, Maxime Gasse, Massimo Caccia, Issam H Laradji, Manuel Del Verme, Tom Marty, Léo Boisvert, Megh Thakkar, Quentin Cappart, David Vazquez, et al. Workarena: How capable are web agents at solving common knowledge work tasks? arXiv preprint arXiv:2403.07718, 2024.
+Hiroki Furuta, Kuang-Huei Lee, Ofir Nachum, Yutaka Matsuo, Aleksandra Faust, Shixiang Shane Gu, and Izzeddin Gur. Multimodal web navigation with instruction-finetuned foundation models. arXiv preprint arXiv:2305.11854, 2023.
+Izzeddin Gur, Ofir Nachum, Yingjie Miao, Mustafa Safdari, Austin Huang, Aakanksha Chowdhery, Sharan Narang, Noah Fiedel, and Aleksandra Faust. Understanding html with large language models, 2023.
+Izzeddin Gur, Hiroki Furuta, Austin Huang, Mustafa Safdari, Yutaka Matsuo, Douglas Eck, and Aleksandra Faust. A real-world webagent with planning, long context understanding, and program synthesis. In International Conference on Learning Representations, 2024.
+Takeshi Kojima, Shixiang Shane Gu, Machel Reid, Yutaka Matsuo, and Yusuke Iwasawa. Large language models are zero-shot reasoners. Advances in neural information processing systems, 35:22199-22213, 2022.
+Hanyu Lai, Xiao Liu, Iat Long Iong, Shuntian Yao, Yuxuan Chen, Pengbo Shen, Hao Yu, Hanchen Zhang, Xiaohan Zhang, Yuxiao Dong, et al. Autowebglm: Bootstrap and reinforce a large language model-based web navigating agent. arXiv preprint arXiv:2404.03648, 2024.
+
+Hunter Lightman, Vineet Kosaraju, Yura Burda, Harri Edwards, Bowen Baker, Teddy Lee, Jan Leike, John Schulman, Ilya Sutskever, and Karl Cobbe. Let's verify step by step. In International Conference on Learning Representations, 2024.
+Xiao Liu, Tianjie Zhang, Yu Gu, Iat Long Long, Yifan Xu, Xixuan Song, Shudan Zhang, Hanyu Lai, Xinyi Liu, Hanlin Zhao, et al. Visualagentbench: Towards large multimodal models as visual foundation agents. arXiv preprint arXiv:2408.06327, 2024.
+Kaixin Ma, Hongming Zhang, Hongwei Wang, Xiaoman Pan, Wenhao Yu, and Dong Yu. Laser: LIm agent with state-space exploration for web navigation, 2024.
+Aman Madaan, Niket Tandon, Prakhar Gupta, Skyler Hallinan, Luyu Gao, Sarah Wiegreffe, Uri Alon, Nouha Dziri, Shrimai Prabhumoye, Yiming Yang, Shashank Gupta, Bodhisattwa Prasad Majumder, Katherine Hermann, Sean Welleck, Amir Yazdanbakhsh, and Peter Clark. Self-refine: Iterative refinement with self-feedback, 2023.
+Oscar Manas, Pietro Astolfi, Melissa Hall, Candace Ross, Jack Urbanek, Adina Williams, Aishwarya Agrawal, Adriana Romero-Soriano, and Michal Drozdzal. Improving text-to-image consistency via automatic prompt optimization. arXiv preprint arXiv:2403.17804, 2024.
+OpenAI. https://openai.com/index/hello-gpt-4o/, 2024.
+Jiayi Pan, Yichi Zhang, Nicholas Tomlin, Yifei Zhou, Sergey Levine, and Alane Suhr. Autonomous evaluation and refinement of digital agents. In First Conference on Language Modeling, 2024.
+Pranav Putta, Edmund Mills, Naman Garg, Sumeet Motwani, Chelsea Finn, Divyansh Garg, and Rafael Rafailov. Agent q: Advanced reasoning and learning for autonomous ai agents. arXiv preprint arXiv:2408.07199, 2024.
+Taylor Shin, Yasaman Razeghi, Robert L Logan IV, Eric Wallace, and Sameer Singh. Autoprompt: Eliciting knowledge from language models with automatically generated prompts. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP). Association for Computational Linguistics, 2020.
+Paloma Sodhi, S. R. K. Branavan, Yoav Artzi, and Ryan McDonald. Step: Stacked llm policies for web actions, 2024.
+Abishek Sridhar, Robert Lo, Frank F. Xu, Hao Zhu, and Shuyan Zhou. Hierarchical prompting assists large language model on web navigation, 2023.
+Zora Zhiruo Wang, Jiayuan Mao, Daniel Fried, and Graham Neubig. Agent workflow memory, 2024.
+Fangyuan Xu, Weijia Shi, and Eunsol Choi. Recomp: Improving retrieval-augmented lms with compression and selective augmentation. In International Conference on Learning Representations, 2024.
+Ke Yang, Yao Liu, Sapana Chaudhary, Rasool Fakoor, Pratik Chaudhari, George Karypis, and Huzefa Rangwala. Agentoccam: A simple yet strong baseline for llm-based web agents. arXiv preprint arXiv:2410.13825, 2024.
+Shunyu Yao, Howard Chen, John Yang, and Karthik Narasimhan. Webshop: Towards scalable real-world web interaction with grounded language agents. Advances in Neural Information Processing Systems, 35:20744-20757, 2022a.
+Shunyu Yao, Jeffrey Zhao, Dian Yu, Nan Du, Izhak Shafran, Karthik Narasimhan, and Yuan Cao. React: Synergizing reasoning and acting in language models. arXiv preprint arXiv:2210.03629, 2022b.
+Shuyan Zhou, Frank F Xu, Hao Zhu, Xuhui Zhou, Robert Lo, Abishek Sridhar, Xianyi Cheng, Tianyue Ou, Yonatan Bisk, Daniel Fried, et al. Webarena: A realistic web environment for building autonomous agents. arXiv preprint arXiv:2307.13854, 2023a.
+Yongchao Zhou, Andrei Ioan Muresanu, Ziwen Han, Keiran Paster, Silviu Pitis, Harris Chan, and Jimmy Ba. Large language models are human-level prompt engineers. In International Conference on Learning Representations, 2023b.
+
+# A QUALITATIVE ANALYSIS
+
+In this section, we first analyze (1) examples of contextualized real-world web pages and (2) the decision-making process of LLM agents with and without LCoW.
+
+# A.1 EXAMPLES OF CONTEXTUALIZED WEB PAGES
+
+We provide 5 examples of contextualized web page observations, along with task instructions. As demonstrated in the following examples, the contextualization model trained via LCoW not only summarizes lengthy web pages but also provides contexts (e.g., what happens if a certain UI element is clicked) that enable more accurate decision-making of LLM-based web agents.
+
+- Example 1. The contextualized observation provides the necessary information required for sorting the list, including several column headers of the spreadsheet. Especially, it explains the "Personalize List" UI element, which initiates sorting. In many cases, LLM agents without contextualization do not click the "Personalize List" button due to a lack of knowledge about this UI element.
+- Example 2. This example is drawn from the unseen-type tasks in WebArena, where the GPT-4o agent with LCoW succeeded, while the GPT-4o agent with raw observation failed. In this example, the contextualization module correctly extracts the rows corresponding to the latest order from the raw observation, thereby informing the GPT-4o agent of the status of the latest order. However, without LCoW, due to complex raw observation corresponding to this contextualized version, GPT-4o agent fails to identify the latest order. Although this task belongs to an unseen-type task, as table format frequently appears in web page observations in the training tasks, the contextualization module correctly extracts content from complex web pages, thereby improving the decision-making of LLM agents.
+- Example 3. This example is also drawn from WebArena, where GPT-4o agent with LCoW succeeded, while GPT-4o with raw observation failed. In this example, the contextualization module explains that the agent need to click "Profile" link in order to edit posts or submission, thereby leading to correct decision making of LLM agent. However, given raw observation, the GPT-4o agent consecutively scrolls down the page to find the corresponding post.
+- Example 4. In this example, the contextualized observation contains an explanation about the UI for keyword search, thereby guiding the GPT-4o agent to find a white desk based on search functionality. However, the GPT-4o agent without LCoW repeatedly scrolls down the page and moves on to the next page to find the white desk, thereby failing to add a white desk to the wish list within the maximum step limit.
+- Example 5. In the task of filling out a form to create a new user, it is crucial to check for detailed requirements and entries before submitting the form. LCoW- contextualized web page includes, thereby guiding LLM agents to submit the complete form without mistakes (e.g., missing required entries).
+
+# Example 1 (WorkArena)
+
+Instruction: Sort the "users" list by the following fields:- Updates (descending)
+
+# Contextualized web page observation:
+
+```ini
+[a183] grid 'Users.', multiselectable=False
+This is the main table containing the list of users.
+We need to focus on this element to find ways to interact with the column header.
+[a186] rowgroup ''
+[a187] row ''
+[a188] columnheader 'Select All'
+[a193] columnheader '\ufle4 Show column search row'
+[a197] columnheader 'UserID User ID column options'
+[a204] columnheader 'Name Name column options'
+[a211] columnheader 'Email Email column options'
+[a218] columnheader 'Avatar Avatar column options'
+[a225] columnheader 'Title Title column options'
+```
+
+```txt
+[a232] columnheader 'Company Company column options'
+[a239] columnheader 'Department Department column options'
+[a246] columnheader 'Location Location column options'
+[a253] columnheader 'Time zone Time zone column options'
+[a260] columnheader 'Business phone Business phone column options'
+These are the column headers in the users table.
+We need to focus on one of these elements to trigger the sorting action.
+However, the AXTree does not show any direct options to sort these columns.
+[a77] button '\uf13e Personalize List'
+This button might provide options to customize the list view, potentially including sorting options.
+```
+
+# Example 2 (WebArena)
+
+Instruction: Tell me the status of my latest order and when will it arrive.
+
+# Contextualized web page observation:
+
+```txt
+[1415] strong''
+StaticText 'Recent Orders'
+[1416] link 'View All'
+[1420] table 'Recent Orders'
+[1421] caption''
+[1422] rowgroup''
+[1423] row''
+[1424] columnheader 'Order #
+[1425] columnheader 'Date'
+[1426] columnheader 'Ship To'
+[1427] columnheader 'Order Total'
+[1428] columnheader 'Status'
+[1429] columnheader 'Action'
+[1430] rowgroup''
+[1431] row''
+[1432] gridcell '000000170'
+[1433] gridcell '5/17/23'
+[1434] gridcell 'Emma Lopez'
+[1435] gridcell '$365.42'
+[1437] gridcell 'Canceled'
+[1438] gridcell 'View OrderReorder'
+[1439] link 'View Order'
+[1441] link 'Reorder'
+```
+
+```txt
+This extraction shows the "Recent Orders" section, which contains a table with information about recent orders. The table includes columns for Order #, Date, Ship To, Order Total, Status, and Action. The "View All" link [1416] likely leads to a page with more detailed information about all orders.
+```
+
+```yaml
+The first row in the table [1431] contains information about the latest order:
+- Order number: 000000170
+- Date: 5/17/23
+- Ship To: Emma Lopez
+- Order Total: $365.42
+- Status: Canceled
+- Action: View Order [1439] or Reorder [1441]
+```
+
+# Example 3 (WebArena)
+
+Instruction: Edit my post on Star Trek Starfleet Academy series by adding a line to the body that says "Every watch makes me feel like a kid again.
+
+# Contextualized web page observation:
+
+```txt
+[68] button 'MarcelsGrantMan136', focused, hasPopup='menu', expanded=True
+This is the currently focused and expanded user account menu button.
+It contains the user's username and is likely to lead to profile settings.
+```
+
+```txt
+[74] list 'This list contains the submenu items under the user account menu.
+```
+
+```txt
+[80] listing
+[81] link 'Profile'
+This is the "Profile" link we need to click to access the user's profile settings.
+It's nested under the user account menu.
+```
+
+These elements are crucial for navigating to the user's profile settings, where we can then look for options to edit posts or submissions. The "Profile" link [81] is particularly important as it's the next element we need to interact with to progress towards our goal of editing the post.
+
+# Example 4 (WebArena)
+
+Instruction: Add a white desk to my wish list.
+
+# Contextualized web page observation:
+
+```powershell
+[1850] heading 'My Wish List'
+StaticText 'You have no items in your wish list.'
+```
+
+```txt
+This element shows the "My Wish List" heading and indicates that the wish list is currently empty. It's important to note this because it confirms that we haven't added any items to the wish list yet, including the white desk we want to add.
+```
+
+```txt
+[1430] button 'Add to Wish List' StaticText '\ue601'
+```
+
+```txt
+This button is crucial as it directly allows us to add items to the wish list. The button with ID 1430 is likely the one we need to click to add the white desk to the wish list.
+```
+
+```javascript
+[723] menuitem '\ue622 Office Products', hasPopup='menu'
+```
+
+```txt
+This menuitem is relevant because it's the currently selected category (Office Products). It confirms that we are in the correct category to find office-related items, including desks.
+```
+
+```txt
+[269] Section
+[271] LabelText
+StaticText '\ue615'
+StaticText 'Search'
+```
+
+[274] combobox '\ue615 Search',
+autocomplete='both', hasPopup='listbox', expanded=False
+[277] link 'Advanced Search'
+[279] button 'Search', disabled=True
+
+This section contains the search functionality, which could be useful if we need to search for "white desk" to find the specific item we want to add to the wish list.
+
+These elements provide the necessary information and functionality to complete the user's instruction of adding a white desk to the wish list.
+
+# Example 5 (WorkArena)
+
+Instruction: Create a new user with a value of "8273378363827782819" for field "UserID", a value of "Webster-Richard" for field "Last name", a value of "Lynn-David" for field "First name", a value of "lynn-david.webster-richard@workarena.com" for field "Email", a value of "false" for field "Internal Integration User", a value of "Outlook" for field "Calendar integration", a value of "(514) 357-8997" for field "Mobile phone", a value of "false" for field "Password needs reset", a value of "English" for field "Language", and a value of "false" for field "Web service access only".
+
+# Contextualized web page observation:
+
+we should focus on the following elements:
+
+```ini
+[a298] LabelText
+[a299] note
+StaticText 'Internal Integration User'
+[a305] checkbox 'Internal Integration User', checked='false'
+```
+
+This element represents the "Internal Integration User" field. It's a checkbox that is currently unchecked (false), which aligns with the user instruction. No action is needed for this field.
+
+```ini
+[a353] LabelText''
+[a354] note''
+StaticText 'Calendar integration'
+[a359] combobox 'Calendar integration' value='Outlook',
+hasPopup='menu', expanded=False
+[a360] menuitem -- None --', selected=False
+[a361] menuitem 'Outlook', selected=True
+```
+
+This element represents the "Calendar integration" field. It's a combobox that is already set to "Outlook", which aligns with the user instruction. No action is needed for this field.
+
+```ini
+[a429] LabelText
+[a430] note
+StaticText 'Mobile phone'
+[a435] textbox 'Mobile phone'
+```
+
+This element represents the "Mobile phone" field.
+It's a textbox where we need to enter "(514) 357-8997" as per the user instruction.
+
+```ini
+[a327] LabelText''
+[a328] note''
+StaticText 'Language'
+[a333] combobox 'Language' value='-- None --',
+hasPopup='menu', expanded=False
+[a334] menuitem '-- None --', selected=True
+```
+
+```txt
+[a335]餐具 'English', selected=False
+This element represents the "Language" field.
+It's a combobox where we need to select "English" as per the user instruction.
+[a285] LabelText ''
+[a286] note ''
+StaticText 'Web service access only'
+[a292] checkbox 'Web service access only', checked='false'
+```
+
+# A.2 ANALYSIS ON DECISION MAKING PROCESS
+
+We provide the action sequences obtained from rollouts in evaluation tasks. For a given instruction, we compare the rollouts with and without the application of LCoW, highlighting the differences in decision-making behavior and task completion efficiency. Specifically, LCoW helps the LLM agent to accomplish task more efficiently without repeating redundant actions (see Figure 10 and Figure 12), and also helps to avoid getting stuck by informing proper interaction method regarding UI elements (see Figure 11 and Figure 13). Furthermore, as shown in Figure 14, with the contextualization module, the average number of decision-making steps by the agent decreases in both Claude-3.5-Sonnet and Llama-3.1-70B agent, allowing tasks to be completed more efficiently.
+
+Instruction: Go to the hardware store and order 9 "iPad pro" with configuration {'Choose the colour': 'Silver', 'Choose the storage': '128'}
+
+# Llama-3.1-70B
+
+Action 1: click [a252] link 'Hardware'
+
+Action 2: click [a268] link 'iPad pro'
+
+Action 3: select 'Silver' from [a198] radiogroup 'Mandatory'
+
+Action 4: click [a184] radio 'uf137 Silver'
+
+Action 5: hover the cursor on [a184] radio 'uf137 Silver'
+
+Action 6: click [a185] LabelText "
+
+Action 7: select '9' from [a244] combobox 'Quantity'
+
+Action 8: click [a285] button 'Order Now'
+
+# Llama-3.1-70B + LCoW
+
+Action 1: click [a252] link 'Hardware'
+
+Action 2: click [a268] link 'iPad pro'
+
+Action 3: click [a184] radio 'uf137 Silver'
+
+Action 4: click [a185] LabelText
+
+Action 5: select '9' from [a244] combobox 'Quantity'
+
+Action 6: click [a285] button 'Order Now'
+
+Figure 10: Llama-3.1-70B agent repeats redundant actions while manipulating UI element for selecting silver color, while LCoW helps to decide on actions more efficiently.
+
+Instruction: Add a white desk to my wish list.
+
+# GPT-40
+
+Action 1: click [716] menuitem 'ue622 Office Products'
+
+Action 2: click [1809] link 'Office Furniture&Lighting(372 item)'
+
+Action 3: click [1789] link 'ue608 Page Next'
+
+Action 4: click [1815] link \`ue608 Page Next'
+
+Action 5: scroll_down
+
+Action 6: scroll_down
+
+Action 7: scroll_down
+
+# GPT-4o + LCoW
+
+Action 1: click [716] menuitem 'ue622 Office Products'
+
+Action 2: fill 'white desk' in [274] combobox 'ue615 Search'
+
+Action 3: click [279] button 'Search'
+
+Action 4: click [1434] button 'Add to Wish List'
+
+Figure 11: Given complex web page observation, GPT-4o agent repeats moving to the next page and scrolling down the page for finding out white desk, resulting in task failure. In contrast, LCoW enables LLMs to utilize search functionality for finding out the white desk efficiently.
+
+Instruction: I recently moved, my address is 111 Magnolia Path, Atlanta, GA, 30303, update my information on OneStopShopping accordingly.
+
+# GPT-40
+
+Action 1: click [181] link 'My Account'
+
+Action 2: click [1398] link 'Edit Address'
+
+Action 3: clear contents in [1400] textbox 'Street Address* Street Address: Line 1'
+
+Action 4: fill '111 Magnolia Path' in [1400] textbox 'Street Address* Street Address: Line 1'
+
+Action 5: clear contents in [1737] textbox 'City *'
+
+Action 6: fill 'Atlanta' in [1737] textbox 'City *'
+
+Action 7: select 'Georgia' from [1665] combobox 'State/Province *'
+
+Action 8: clear contents in [1742] textbox 'Zip/Postal Code *
+
+Action 9: fill '30303' in [1742] textbox 'Zip/Postal Code *
+
+Action 10: click [1752] button 'Save Address'
+
+# GPT-4o + LCoW
+
+Action 1: click [219] link 'My Account'
+
+Action 2: click [1384] link 'Manage Addresses'
+
+Action 3: click [1374] link 'Change Billing Address'
+
+Action 4: fill '111 Magnolia Path' in [1400] textbox 'Street Address'
+Street Address: Line 1
+
+Action 5: fill 'Atlanta' in [1737] textbox 'City *'
+
+Action 6: select 'Georgia' from [1665] combobox 'State/Province **
+
+Action 7: fill '30303' in [1742] textbox 'Zip/Postal Code'
+
+Action 8: click [1752] button 'Save Address'
+
+Figure 12: GPT-4o agent meaninglessly clear the empty textbox before filling out the address form. In contrast, LCoW explains the status of UI element (e.g., textbox is empty), thereby enabling more efficient decision making.
+
+Instruction: Post a notice on a virtual/meup for Harry Potter enthusiasts on July 8th in the books subreddit.
+
+# GPT-40
+
+Action 1: click [63] link 'Submit'
+
+Action 2: fill 'Virtual Meetup for Harry Potter Enthusiasts on July 8th' in [137] textbox 'Title This field is required.'
+
+Action 3: fill 'Join us for a virtual meetup for Harry Potter enthusiasts on July 8th! We will discuss our favorite books in [142] textbox 'Body'
+
+Action 4: click [378] combobox 'Choose one...'
+
+Action 5: select 'books' from [378] combobox 'Choose one...
+
+Action 6: press 'ArrowDown' keys while focusing on [378] combobox 'Choose one...'
+
+Action 7: press 'ArrowDown' keys while focusing on [378] combobox 'Choose one...'
+
+Action 8: press 'ArrowDown' keys while focusing on [378] combobox 'Choose one...'
+
+# GPT-4o + LCoW
+
+Action 1: click [62] link 'Submit'
+
+Action 2: fill 'Join Our Harry Potter Virtual Meetup on July 8th! in [137] textbox 'Title This field is required.'
+
+Action 3: fill 'Join us for a magical virtual meetup where Harry Potter enthusiasts from around the world come together to discuss their favorite books in [142] textbox 'Body'
+
+Action 4: fill 'books' in [379] textbox 'Choose one...'
+
+Action 5: click [378] combobox 'Choose one...'
+
+Action 6: click [453] option 'books'
+
+Action 7: click [395] button 'Create submission'
+
+Figure 13: GPT-4o agent struggles to interact with UI element for selecting subreddit, resulting in task failure. In contrast, LCoW verbally explains the interaction method of each UI element in the web page, enabling task success.
+
+
+
+Figure 14: In order to compare the efficiency of task execution between LLM agent with LCoW and without LCoW, we select the tasks that LLM agent with LCoW and without LCoW both succeed, and visualize the distribution of action steps required for accomplishing the task.
+
+# B EXPERIMENTAL DETAILS & ADDITIONAL EXPERIMENTS
+
+# B.1 MAIN EXPERIMENT SETUP
+
+WebShop For the WebShop benchmark, we fine-tune Phi-3-mini-Instruct as a contextualization module, setting the learning rate, warmup ratio, and batch size to 1e-5, 1e-2, and 32, respectively. The module is trained for a single epoch over the collected data for each LCoW iteration, and we utilize demonstrations corresponding to 397 individual tasks provided in the WebShop benchmark as seed demonstrations. In the WebShop environment, we employ Gemini-1.5-flash as the LLM agent, combined with the contextualization module during the trajectory collection phase. It is also utilized for sampling optimal contextualization at the initial iteration of LCoW.
+
+WorkArena & WebArena For WorkArena and WebArena, we fine-tune Llama-3.1-8B-Instrcut as an observation contextualization module, and we set the learning rate, warm-up ratio, and batch size as 1e-5, 1e-1, and 128. Additionally, we set the training epochs as 4 and 3 for WorkArena and WebArena, respectively. Since no successful trajectories are provided in WorkArena, we collected 264 seed demonstrations (i.e., successful trajectories) among 495 training tasks across 33 task types using Claude-3.5-Sonnet and GPT-4o, but we could not collect any successful trajectories corresponding to 10 task types. Summary statistics of the collected seed demonstrations across task types can be found in Table 5. In WebArena, we collected 363 seed demonstrations (i.e., successful trajectories) among 647 training tasks (excluding 165 evaluation tasks in WebArena-Lite from 812 WebArena tasks) using GPT-4o and trajectories open-sourced by AgentOccam (Yang et al., 2024). Additionally, as the determination of action matching based on parsing is infeasible due to open-ended actions (e.g., sending a message to the user or filling out a form), we exploit GPT-4o as an action-matching evaluator. The prompt used for the action-matching evaluator is provided in Appendix C. For WorkArena and WebArena, we use Claude-3.5-Sonnet for sampling optimal contextualization at the initial iteration.
+
+# B.2 GENERALIZATION EXPERIMENT SETUP
+
+In this section, we first provide details of the generalization experiment in WebArena and WorkArena.
+
+WebArena In WebArena, we define unseen-type tasks based on the task template used to create 812 individual tasks in the WebArena benchmark. Specifically, 812 tasks in WebArena are all different but created based on 190 task templates. Therefore, tasks created from the same task template are different but similar. For example, "What is the top-1 best-selling product in 2022" and "What is the top-3 best-selling product in 2023" are from the same task template (i.e., same task type), while "Tell me the email address, name, phone number of the customer who has the most cancellations in the history" and "How many reviews our shop received in Apr 2023?" are from the different task template (i.e., different task type). Among the 165 evaluation tasks, we define the 117 tasks whose task templates overlap with tasks used for training as seen-type tasks, while the 48 tasks whose task templates do not overlap with any training tasks as unseen-type tasks.
+
+WorkArena WorkArena features a two-level task hierarchy: task categories at the top level, and task types within each category. WorkArena provides 7 categories of tasks (i.e., " Dashboard", "Menus", "Service catalog", "Knowledge base", "Forms", "Sort list", and "Filter list"). For instance, "Form" is a task category, and within it, "creating and submitting an incident report" and "creating new user information" are task types. We consider two levels of generalization: 1) Unseen-type tasks, tasks of a different type within the same category (i.e., medium-level generalization), and 2) Unseen-category tasks, tasks of a different type and category (i.e., hard-level generalization). As specified in Table 6, among 33 task types, we utilize 13 task types as seen task types, 14 task types as unseen task types, and the remaining 6 task types corresponding to "Filter List" task category as unseen-category tasks. For evaluation, we utilize 5 individual tasks from each task type.
+
+# B.3 ADDITIONAL GENERALIZATION EXPERIMENT RESULTS
+
+In this section, we provide the result of additional generalization experiments in the WorkArena and WebArena benchmarks.
+
+Generalization to tasks with unseen type in WorkArena We first evaluate generalization to unseen-type tasks in the WorkArena benchmark, where 70 tasks corresponding to 14 task types are considered unseen-type tasks. As shown in Table 3, LCoW improves GPT-4o and Gemini-1.5-flash agents by $7.2\%$ and $22.6\%$ success rate in 70 unseen-type tasks, respectively. This is an observation consistent with the WebArena experiment in Section 4.3.
+
+Generalization to tasks with unseen category in WorkArena Furthermore, we verify whether the contextualization module generalizes to tasks from entirely different categories (i.e., unseen-category tasks) in the WorkArena benchmark. This requires an understanding of unseen UI elements and webpage configurations, making it more challenging than generalization to unseen-type tasks. Specifically, we set the 30 tasks included in "Filter-List" task category as unseen-category tasks. As shown in Table 3, LCoW fails to improve both GPT-4o and Gemini-1.5-flash agents in unseen-category tasks. The main reason for this failure is the unseen-category tasks is that the contextualization module does not extract the necessary UI element required to dropdown the hidden menu when manipulating filters in Filter-List-related tasks. Since the training tasks do not involve any UI elements related to filter functionality, the contextualization module does not learn any knowledge about the UI element during training, resulting in no performance improvement in unseen-category tasks.
+
+
GPT-4o
Gemini-1.5-flash
Unseen-type
Unseen-category
Unseen-type
Unseen-category
Raw observation
35.7%
0.0%
14.5%
0.0%
LCoW
42.9%
0.0%
37.1%
0.0%
+
+Generalization to tasks with unseen websites We additionally study the feasibility of LCoW for generalization to unseen websites in the WebArena benchmark, where tasks are distributed over 6 websites (Shopping, GitLab, Reddit, Map, Content Management System, and Wikipedia). We evaluate the contextualization module on tasks defined in the Shopping website, where the contextualization module is trained based on tasks in the remaining 5 websites. In this setting, we found that LCoW improves the performance of the GPT-4o agent by $4.3\%$ even in the unseen website, as shown in Table 4. We conjecture that this is feasible because, even though the websites may differ in overall design and layout, common UI elements (e.g., search query input fields and calendar date selectors) are often shared across websites. The presence of shared UI components allows the knowledge gained from one website's task to be transferred effectively to another website, enabling the contextualization to generalize to tasks in unseen websites. We believe scaling LCoW for generalization to unseen websites where unseen UI elements are prevalent is a highly interesting future direction.
+
+Table 3: LCoW is shown to be generalized to unseen task types within the same task category on both GPT-4o and Gemini-1.5-flash backbone, but it struggles to generalize to tasks corresponding to unseen category.
+
+
(Unseen website)
GPT-4o
Raw observation
17.4%
LCoW
21.7%
+
+Table 4: LCoW improves the performance of GPT-4o agent on tasks corresponding to the unseen website. Although websites are different, there are UI elements commonly used across websites (e.g., UI elements for searching in Map or UI elements for filtering results based on data in the content management system), which enables LCoW to generalize across different websites.
+
+
Task type
Number of seed demonstrations
Multi-chart-value retrieval
8
Multi-chart-minmax retrieval
12
Single-chart-value-retrieval
12
Single-chart-minmax retrieval
11
Create change request
8
Create incident
0
Create hardward asset
0
Create problem
14
Create user
11
Knowledge base search
12
Filter asset list
0
Filter change request list
0
Filter hardware list
0
Filter incident list
0
Filter service catalog item list
0
Filter user list
0
Sort asset list
0
Sort change request list
0
Sort hardware list
3
Sort incident list
3
Sort service-catalog list
5
Sort user list
4
All menu
15
Impersonation
12
Order developer laptop
15
Order iPad mini
14
Order iPad pro
15
Order sales laptop
15
Order standard laptop
15
Order apple watch
15
Order apple MacBook pro
15
Order development laptop PC
15
Order loander laptop
15
Total
264
+
+Table 5: We collected trajectories from 15 individual tasks for each of 33 task types in the WorkArena benchmark using GPT-4o-0806 and Claude-3.5-sonnet agent, thereby collecting 264 successful trajectories. We utilized them as seed demonstrations for LCoW.
+
+
Task type
Seen / Unseen
Single-chart-value-retrieval
seen
Single-chart-minmax retrieval
seen
Multi-chart-value retrieval
unseen-type
Multi-chart-minmax retrieval
unseen-type
Create change request
seen
Create problem
seen
Create incident
unseen-type
Create hardward asset
unseen-type
Create user
unseen-type
Knowledge base search
seen
Sort user list
seen
Sort hardware list
seen
Sort asset list
unseen-type
Sort change request list
unseen-type
Sort incident list
unseen-type
Sort service-catalog list
unseen-type
All menu
seen
Impersonation
unseen-type
Order developer laptop
seen
Order iPad mini
seen
Order iPad pro
seen
Order apple watch
seen
Order standard laptop
seen
Order sales laptop
unseen-type
Order apple Macbook pro
unseen-type
Order development laptop PC
unseen-type
Order loander laptop
unseen-type
Filter asset list
unseen-category
Filter change request list
unseen-category
Filter hardware list
unseen-category
Filter incident list
unseen-category
Filter service catalog item list
unseen-category
Filter user list
unseen-category
+
+Table 6: Task type split for evaluation of generalization at different levels in WorkArena benchmark.
+
+# C PROMPTS
+
+In this section, we provide prompts used across experiments in WebShop, WorkArena, and WebArena. In WorkArena and WebArena experiments, we utilize identical prompts, where the prompt for the LLM agent is provided by BrowserGym (Drouin et al., 2024). In the WebShop experiment, we utilize the prompt for the LLM agent proposed by ReAct (Yao et al., 2022b).
+
+# C.1 WORKAREA & WEBAREA
+
+We present the prompt formats for the experiment in the WorkArena and WebArena benchmark.
+
+# Prompt for contextualization module
+
+```txt
+
+You are an agent tasked with extracting and refining a subset of the webpage's observations based on the content of the page and user instructions.
+```
+
+```txt
+
+You are currently on the {domain_info} website.
+Your task is to generate a "Reasoning" and a "Refined observation" based on the provided inputs.
+```
+
+```txt
+First, review the "User instruction" and "History of interactions" and, then, generate the "Reasoning". Analyze the progress made so far, and provide a rationale for the next steps needed to efficiently accomplish the user instruction on the {domain_info} website.
+```
+
+```txt
+Second, refine the "AXTree observation at the current time step" into a "Refined observation".
+```
+
+```txt
+Select a subset of the AXTree observation that is essential for completing the user instruction and provide explanations for the corresponding elements in the selected subset.
+```
+
+```txt
+[Information source]
+#User instruction
+{goal}
+#History of interactions
+{history}
+#AXTree observation at the current time step
+{observation}
+```
+
+# Prompt for contextualization module in retry phase
+
+```txt
+
+You are an agent tasked with extracting and refining a subset of the webpage's observations based on the content of the page and user instructions.
+```
+
+```txt
+
+You are currently on the {domain_info} website.
+Your task is to generate a "Reasoning" and a "Refined observation" based on the provided inputs.
+```
+
+```txt
+First, review the "User instruction" and "History of interactions" and, then, generate the "Reasoning". Analyze the progress made so far, and provide a rationale for the next steps needed to efficiently accomplish the user instruction on the {domain_info} website.
+```
+
+Second, refine the "AXTree observation at the current time step" into a "Refined observation".
+
+Select a subset of the AXTree observation that is necessary for completing the user instruction.
+
+You may refer to the Hints, which consists of the ground truth next action, but do not explicitly mention these hints in your output.
+
+[Information source]
+
+#User instruction
+
+{goal}
+
+History of interactions
+
+{history}
+
+AXTree observation at the current time step {observation}
+
+Hint
+
+Ground-truth next action: {action}
+
+# Prompt for self-contextualization
+
+
+
+You are an agent tasked with extracting and refining a subset of the webpage's observations based on the content of the page and user instructions.
+
+
+
+[General instructions]
+
+You are currently on the {domain_info} website.
+
+Your task is to generate a "Reasoning" and a "Refined observation" based on the provided inputs.
+
+First, review the "User instruction" and "History of interactions" and, then, generate the "Reasoning".
+
+Analyze the progress made so far, and provide a rationale for the next steps needed to efficiently accomplish the user instruction on the {domain_info} website.
+
+Second, refine the "AXTree observation at the current time step" into a "Refined observation".
+
+Extract a subset of the AXTree observation (e.g., chart, table, menu items) that contains necessary information for completing the user instruction, and explain the extracted elements.
+
+Ensure that the information on the elements (e.g., numeric element ID) are correctly included.
+
+Please follow the format in the [Reasoning & Refinement example] carefully.
+
+[Information source]
+
+User instruction {goal}
+
+History of interactions {history}
+
+AXTree observation at the current time step {observation}
+
+[Reasoning & Refinement example]
+
+Abstract example
+
+Here is an abstract version of the answer, describing the content of each tag.
+
+Make sure you follow this structure, but replace the content with your own answer:
+
+
+
+Think step by step. Based on the "User instruction,"
+
+"History of interaction," and "AXTree observation at the current time step":
+
+1. Provide a high-level description of the "AXTree observation at the current time step."
+
+2. Based on the "User instruction" and "History of interaction," track your progress and provide your reasoning on the next action needed to accomplish the "User instruction."
+
+
+
+
+
+Based on your reasoning, identify the elements
+
+(e.g., links, buttons, static text, table row, chart) to focus on. Then, explain the semantics and functionalities of each extracted element.
+
+Ensure that:
+
+You do not alter the structure of the AXTree observation.
+
+You extract the element ID (id in [ ]) accurately without any errors.
+
+When extracting chart or table, you must extract the entire chart or table to avoid any confusion or loss of information.
+
+
+
+# Prompt for LLM agent
+
+
+
+You are an agent trying to solve a web task based on the content of the page and a user instructions.
+
+You can interact with the page and explore.
+
+Each time you submit an action it will be sent to the browser and you will receive a new page.
+
+
+
+Instructions
+
+Review the current state of the page and all other information to find the best possible next action to accomplish your goal.
+
+Your answer will be interpreted and executed by a program, make sure to follow the formatting instructions.
+
+Goal:
+
+{goal}
+
+{history}
+
+Refined observation of current step:
+
+{refined observation}
+
+Action space:
+
+13 different types of actions are available.
+
+noop(wait_ms: float = 1000)
+
+Description: Do nothing, and optionally wait for the given time (in milliseconds).
+
+Examples:
+
+noop()
+
+noop(500)
+
+send msg_to_user(text: str)
+
+Description: Send a message to the user.
+
+You should send a short answer as a message and
+
+```txt
+do not ask questions through message. Examples: send msg_to_user(\'the city was built in 1751.\') send msg_to_user(\'Yes\') send msg_to_user(\'No\') send msg_to_user(\'31112\') send msg_to_user(\'Yoshua Bengio\')
+scroll (delta_x: float, delta_y: float) Description: Scroll horizontally and vertically. Amounts in pixels, positive for right or down scrolling, negative for left or up scrolling. Dispatches a wheel event. Examples: scroll(0, 200) scroll(-50.2, -100.5)
+fill (bid: str, value: str) Description: Fill out a form field. It focuses the element and triggers an input event with the entered text. It works for ,