id
string
image
string
input
string
system
string
output
string
boxes
sequence
box_texts
sequence
detail
dict
2306.00784-en-0
2306.00784-en-0.jpg
## Interpretable Math Word Problem Solution Generation Via Step-by-step Planning $\textbf{Mengxue Zhang}^1,\textbf{Zichao Wang}^2,\textbf{Zhichao Yang}^1,\textbf{Weiqi Feng}^1,\textbf{Andrew Lan}^1$ $^{1}$University of Massachusetts Amherst,$^2$Rice University mengxuezhang@umass.edu ## $\mathbf{Abstract}$ Solutions to math word problems (MWPs) with step-by-step explanations are valuable, especially in education, to help students better comprehend problem-solving strategies. Most existing approaches only focus on obtaining the final correct answer. A few recent approaches leverage intermediate solution steps to improve final answer correctness but often cannot generate coherent steps with a clear solution strategy. Contrary to existing work, we focus on improving the correctness and coherence of the intermediate solutions steps. We propose a step-by-step planning approach for intermediate solution generation, which strategically plans the generation of the next solution step based on the MWP and the previous solution steps. Our approach first plans the next step by predicting the necessary math operation needed to proceed, given history steps, then generates the next step, token-by-token, by prompting a language model with the predicted math operation. Experiments on the GSM8K dataset demonstrate that our approach improves the accuracy and interpretability of the solution on both automatic metrics and human evaluation. ## 1 Introduction Arithmetic math word problems (MWPs) consist of natural language statements describing real-world scenarios that involve numerical quantities, followed by a question asking for an unknown value. Solving MWPs require parsing the textual statements and carrying out the corresponding calculations (Kumar et al., 2022). MWPs are an important educational tool that helps assess and improve student knowledge in basic mathematical concepts and skills (Walkington, 2013; Verschaffel et al., 2020). They also represent a long-standing interest in artificial intelligence (AI) research since correctly solving them serves as a key benchmark task for testing and improving the mathematical reasoning skills of AI models (Feigenbaum and Feldman, 1995; Bommasani et al., 2021; Cobbe et al., 2021; Lewkowycz et al., 2022). There is a large body of literature that focuses on automatically solving MWP. Earlier works took a modular approach that first analyzes unconstrained natural language and then maps intricate text patterns onto mathematical vocabulary (Sundaram et al., 2022). As a result, this approach relies heavily on hand-crafted rules to fill the gap between natural language and symbolic mathematical vocabulary (Sundaram et al., 2022). Recent works leverage advances in natural language processing and take a neural network-based, end-to-end approach, where a neural network encodes a numerical representation of the MWP (and the underlying equation), from which a decoder generates the final answer (Zou and Lu, 2019; Wang et al., 2017; Wu et al., 2020; Chen et al., 2020; Cao et al., 2021; Shen et al., 2021; Shao et al., 2022; Jie et al., 2022). Unfortunately, the vast majority of these works focus on generating and predicting $a\textit{ single final}$ $answer$, since answer correctness is often the only evaluation metric. Therefore, these works do not provide any insights or explanations into how the models arrive at the answer. As a result, it is often difficult, if not entirely impossible, to explain the model's behavior, especially when it produces a wrong answer. The lack of interpretability of these methods makes it challenging to analyze them and unsafe to use them in real-world applications. This interpretability issue has attracted increasing interest in MWP solving research. Recent works have shifted to designing models that not only generate the final answer for an MWP, but also the intermediate steps. The ability to generate intermediate steps not only enables researchers to investigate model behavior but also new applications. For example, in personalized education and intelligent tutoring systems, these models have the potential to generate detailed, personalized solution steps as feedback to improve stu-
[ [ "0.2141", "0.0932", "0.785", "0.0932", "0.785", "0.1081", "0.2141", "0.1081" ], [ "0.3628", "0.10986", "0.635", "0.11224", "0.635", "0.13", "0.3628", "0.1277" ], [ "0.1721", "0.1561", "0.8286", "0.1561", "0.8286", "0.1704", "0.1721", "0.1704" ], [ "0.2747", "0.1729", "0.727", "0.1729", "0.727", "0.187", "0.2747", "0.187" ], [ "0.3652", "0.1912", "0.636", "0.1912", "0.636", "0.2048", "0.3652", "0.2048" ], [ "0.2612", "0.253", "0.34", "0.253", "0.34", "0.2673", "0.2612", "0.2673" ], [ "0.513", "0.2542", "0.882", "0.2542", "0.882", "0.2673", "0.513", "0.2673" ], [ "0.511", "0.2695", "0.6987", "0.2695", "0.6987", "0.284", "0.511", "0.284" ], [ "0.1453", "0.282", "0.4592", "0.282", "0.4592", "0.2957", "0.1453", "0.2957" ], [ "0.529", "0.2893", "0.882", "0.2893", "0.882", "0.3027", "0.529", "0.3027" ], [ "0.1436", "0.2957", "0.4592", "0.2964", "0.4592", "0.3113", "0.1436", "0.31" ], [ "0.1453", "0.3113", "0.4592", "0.3113", "0.4592", "0.3247", "0.1453", "0.3247" ], [ "0.511", "0.306", "0.8833", "0.306", "0.8833", "0.3196", "0.511", "0.3196" ], [ "0.02351", "0.3184", "0.06046", "0.3184", "0.06046", "0.437", "0.02351", "0.437" ], [ "0.1453", "0.326", "0.4592", "0.326", "0.4592", "0.339", "0.1453", "0.339" ], [ "0.511", "0.3225", "0.8833", "0.3225", "0.8833", "0.3362", "0.511", "0.3362" ], [ "0.1453", "0.3403", "0.4575", "0.3403", "0.4575", "0.354", "0.1453", "0.354" ], [ "0.511", "0.3384", "0.8833", "0.3384", "0.8833", "0.3516", "0.511", "0.3516" ], [ "0.1453", "0.3528", "0.4568", "0.354", "0.4568", "0.3677", "0.1453", "0.3665" ], [ "0.51", "0.354", "0.8833", "0.354", "0.8833", "0.3677", "0.51", "0.3677" ], [ "0.1453", "0.3677", "0.4575", "0.3677", "0.4575", "0.3813", "0.1453", "0.3813" ], [ "0.511", "0.3682", "0.8833", "0.3694", "0.8833", "0.3843", "0.511", "0.383" ], [ "0.147", "0.3843", "0.4575", "0.3843", "0.4575", "0.3943", "0.147", "0.3943" ], [ "0.511", "0.386", "0.882", "0.386", "0.882", "0.3997", "0.511", "0.3997" ], [ "0.147", "0.398", "0.4575", "0.398", "0.4575", "0.408", "0.147", "0.408" ], [ "0.511", "0.4026", "0.882", "0.4026", "0.882", "0.4163", "0.511", "0.4163" ], [ "0.1453", "0.4104", "0.4575", "0.4104", "0.4575", "0.4233", "0.1453", "0.4233" ], [ "0.511", "0.4187", "0.882", "0.4187", "0.882", "0.4316", "0.511", "0.4316" ], [ "0.1453", "0.4246", "0.4592", "0.4246", "0.4592", "0.4382", "0.1453", "0.4382" ], [ "0.02351", "0.4329", "0.06213", "0.434", "0.05878", "0.513", "0.02016", "0.5127" ], [ "0.03528", "0.4316", "0.0445", "0.4316", "0.0445", "0.437", "0.03528", "0.437" ], [ "0.1453", "0.4395", "0.4592", "0.4395", "0.4592", "0.4531", "0.1453", "0.4531" ], [ "0.51", "0.4353", "0.879", "0.4353", "0.879", "0.449", "0.51", "0.449" ], [ "0.1486", "0.4548", "0.4568", "0.4548", "0.4568", "0.4656", "0.1486", "0.4656" ], [ "0.511", "0.4495", "0.882", "0.4507", "0.882", "0.4656", "0.511", "0.4644" ], [ "0.1453", "0.4673", "0.4575", "0.4673", "0.4575", "0.481", "0.1453", "0.481" ], [ "0.511", "0.4673", "0.882", "0.466", "0.882", "0.4797", "0.511", "0.481" ], [ "0.147", "0.4822", "0.4575", "0.4822", "0.4575", "0.4954", "0.147", "0.4954" ], [ "0.513", "0.4827", "0.882", "0.4827", "0.882", "0.4963", "0.513", "0.4963" ], [ "0.147", "0.4946", "0.4568", "0.4954", "0.4568", "0.509", "0.147", "0.5083" ], [ "0.511", "0.4995", "0.882", "0.4995", "0.882", "0.513", "0.511", "0.513" ], [ "0.01764", "0.513", "0.05878", "0.513", "0.0638", "0.7236", "0.02184", "0.7236" ], [ "0.1453", "0.5103", "0.4575", "0.5103", "0.4575", "0.524", "0.1453", "0.524" ], [ "0.51", "0.514", "0.882", "0.513", "0.882", "0.528", "0.51", "0.5293" ], [ "0.1453", "0.525", "0.4592", "0.525", "0.4592", "0.538", "0.1453", "0.538" ], [ "0.513", "0.531", "0.8833", "0.531", "0.8833", "0.5444", "0.513", "0.5444" ], [ "0.1453", "0.538", "0.4592", "0.538", "0.4592", "0.5527", "0.1453", "0.5527" ], [ "0.513", "0.5464", "0.8833", "0.5464", "0.8833", "0.56", "0.513", "0.56" ], [ "0.1453", "0.5527", "0.4575", "0.5527", "0.4575", "0.5664", "0.1453", "0.5664" ], [ "0.1453", "0.5664", "0.4592", "0.5664", "0.4592", "0.58", "0.1453", "0.58" ], [ "0.513", "0.5635", "0.882", "0.5635", "0.882", "0.5767", "0.513", "0.5767" ], [ "0.1436", "0.5806", "0.4592", "0.5806", "0.4592", "0.594", "0.1436", "0.594" ], [ "0.511", "0.58", "0.882", "0.58", "0.882", "0.5933", "0.511", "0.5933" ], [ "0.1453", "0.5957", "0.4592", "0.5957", "0.4592", "0.6094", "0.1453", "0.6094" ], [ "0.511", "0.5957", "0.882", "0.5957", "0.882", "0.61", "0.511", "0.61" ], [ "0.1453", "0.6094", "0.4592", "0.6094", "0.4592", "0.6226", "0.1453", "0.6226" ], [ "0.513", "0.6133", "0.881", "0.6133", "0.881", "0.6235", "0.513", "0.6235" ], [ "0.1436", "0.6235", "0.4575", "0.6235", "0.4575", "0.637", "0.1436", "0.637" ], [ "0.51", "0.6274", "0.882", "0.627", "0.882", "0.641", "0.51", "0.6426" ], [ "0.513", "0.6455", "0.881", "0.6455", "0.881", "0.6562", "0.513", "0.6562" ], [ "0.1184", "0.655", "0.1318", "0.655", "0.1318", "0.663", "0.1184", "0.663" ], [ "0.1276", "0.653", "0.2603", "0.653", "0.2603", "0.6665", "0.1276", "0.6665" ], [ "0.511", "0.66", "0.881", "0.66", "0.881", "0.6733", "0.511", "0.6733" ], [ "0.11755", "0.6787", "0.4895", "0.6787", "0.4895", "0.6924", "0.11755", "0.6924" ], [ "0.509", "0.675", "0.882", "0.676", "0.882", "0.6904", "0.509", "0.6895" ], [ "0.1142", "0.6953", "0.4878", "0.695", "0.4878", "0.709", "0.1142", "0.7104" ], [ "0.509", "0.6914", "0.882", "0.6904", "0.882", "0.705", "0.509", "0.706" ], [ "0.11584", "0.7114", "0.4902", "0.7104", "0.4902", "0.7246", "0.11584", "0.7256" ], [ "0.509", "0.707", "0.881", "0.707", "0.881", "0.72", "0.509", "0.72" ], [ "0.11755", "0.728", "0.4902", "0.728", "0.4902", "0.741", "0.11755", "0.741" ], [ "0.511", "0.7246", "0.848", "0.7246", "0.848", "0.7383", "0.511", "0.7383" ], [ "0.11584", "0.742", "0.486", "0.742", "0.486", "0.756", "0.11584", "0.756" ], [ "0.529", "0.7437", "0.882", "0.7437", "0.882", "0.7573", "0.529", "0.7573" ], [ "0.11755", "0.7603", "0.4902", "0.7603", "0.4902", "0.774", "0.11755", "0.774" ], [ "0.511", "0.759", "0.882", "0.759", "0.882", "0.774", "0.511", "0.774" ], [ "0.11755", "0.775", "0.4878", "0.775", "0.4878", "0.788", "0.11755", "0.788" ], [ "0.51", "0.7754", "0.882", "0.7754", "0.882", "0.789", "0.51", "0.789" ], [ "0.11755", "0.7915", "0.492", "0.7915", "0.492", "0.8047", "0.11755", "0.8047" ], [ "0.511", "0.7915", "0.882", "0.7915", "0.882", "0.8047", "0.511", "0.8047" ], [ "0.11755", "0.808", "0.4895", "0.808", "0.4895", "0.822", "0.11755", "0.822" ], [ "0.511", "0.808", "0.8833", "0.808", "0.8833", "0.822", "0.511", "0.822" ], [ "0.11584", "0.8237", "0.4902", "0.8223", "0.4902", "0.8374", "0.11584", "0.8384" ], [ "0.511", "0.826", "0.881", "0.826", "0.881", "0.836", "0.511", "0.836" ], [ "0.11584", "0.8403", "0.486", "0.8403", "0.486", "0.854", "0.11584", "0.854" ], [ "0.509", "0.839", "0.8833", "0.8403", "0.8833", "0.855", "0.509", "0.854" ], [ "0.11584", "0.857", "0.4902", "0.857", "0.4902", "0.8706", "0.11584", "0.8706" ], [ "0.511", "0.857", "0.882", "0.857", "0.882", "0.8706", "0.511", "0.8706" ], [ "0.11584", "0.8726", "0.4878", "0.8726", "0.4878", "0.8857", "0.11584", "0.8857" ], [ "0.509", "0.8726", "0.882", "0.8726", "0.882", "0.8857", "0.509", "0.8857" ], [ "0.11755", "0.8896", "0.4937", "0.8896", "0.4937", "0.903", "0.11755", "0.903" ], [ "0.51", "0.8896", "0.8833", "0.8896", "0.8833", "0.903", "0.51", "0.903" ], [ "0.11584", "0.905", "0.4954", "0.905", "0.4954", "0.9185", "0.11584", "0.9185" ], [ "0.51", "0.905", "0.8833", "0.905", "0.8833", "0.9185", "0.51", "0.9185" ] ]
[ "Interpretable Math Word Problem Solution Generation", "Via Step-by-step Planning", "Mengxue Zhang,Zichao Wang?, Zhichao Yang', Weiqi Feng', Andrew Lan", "1University of Massachusetts Amherst, 2Rice University", "mengxuezhang@umass.edu", "Abstract", "1995; Bommasani et al., 2021; Cobbe et al., 2021;", "Lewkowycz et al., 2022).", "Solutions to math word problems (MWPs) with", "There is a large body of literature that focuses on", "step-by-step explanations are valuable, espe-", "cially in education, to help students better com-", "automatically solving MWP. Earlier works took a", "", "prehend problem-solving strategies. Most ex-", "modular approach that first analyzes unconstrained", "isting approaches only focus on obtaining the", "natural language and then maps intricate text pat-", "final correct answer. A few recent approaches", "terns onto mathematical vocabulary (Sundaram", "leverage intermediate solution steps to improve", "et al., 2022). As a result, this approach relies heav-", "finalanswercorrectnessbutoftencannotgen-", "ily on hand-crafted rules to fill the gap between", "eratecoherent steps with a clear solution strat-", "natural language and symbolic mathematical vo-", "egy. Contrary to existing work, we focus on", "cabulary (Sundaram et al., 2022). Recent works", "improving the correctness and coherence of", "['S]", "", "the intermediate solutions steps. We propose", "leverage advances in natural language processing", "astep-by-stepplanningapproachforinterme", "and take a neural network-based, end-to-end ap-", "diate solution generation, which strategically", "proach, where a neural network encodes a numeri-", "plans the generation of the next solution step", "cal representation of the MWP (and the underlying", "based on the MWP and the previous solution", "equation), from which a decoder generates the final", "800900", "steps. Our approach first plans the next step by", "answer (Zou and Lu, 2019; Wang et al., 2017; Wu", "predicting the necessary math operation needed", "et al., 2020; Chen et al., 2020; Cao et al., 2021;", "to proceed, given history steps, then generates", "Shen et al., 2021; Shao et al., 2022; Jie et al., 2022).", "the next step, token-by-token, by prompting", "a language model with the predicted math op-", "Unfortunately, the vast majority of these works", "eration. Experiments on the GSM8K dataset", "focus on generating and predicting a single final", "demonstrate that our approach improves the ac-", "answer, since answer correctness is often the only", "curacy and interpretability of the solution on", "evaluationmetric.Therefore.these works do not", "both automatic metrics and human evaluation.", "provide any insights or explanations into how the", "models arrive at the answer. As a result, it is often", "1", "Introduction", "difficult, if not entirely impossible, to explain the", "Arithmetic math word problems (MWPs) consist of", "model's behavior, especially when it produces a", "natural language statements describing real-world", "wrong answer. The lack of interpretability of these", "scenarios that involve numerical quantities, fol-", " methods makes it challenging to analyze them and", "lowed by a question asking for an unknown value.", "unsafe to use them in real-world applications.", "Solving MWPs require parsing the textual state-", "This interpretability issue has attracted increas-", "ments and carrying out the corresponding calcula-", "ing interest in MWP solving research. Recent", "tions (Kumar et al., 2022). MWPs are an important", "works have shifted to designing models that not", "educational tool that helps assess and improve stu-", "only generate the final answer for an MWP, but", "dent knowledge in basic mathematical concepts", "also the intermediate steps. The ability to gener-", "and skills (Walkington, 2013; Verschaffel et al.,", "ateintermediatestepsnotonlyenablesresearchers", "2020). They also represent a long-standing interest", "to investigate model behavior but also new ap-", "in artificial intelligence (AD) research since cor-", "plications. For example, in personalized educa-", "rectly solving them serves as a key benchmark task", " tion and intelligent tutoring systems, these mod-", "for testing and improving the mathematical reason-", "els have the potential to generate detailed, person-", "ing skills of AI models (Feigenbaum and Feldman, ", " alized solution steps as feedback to improve stu-" ]
{ "arxiv_id": "2306.00784", "language": "en", "page_idx": 0 }
2306.00784-en-1
2306.00784-en-1.jpg
dent understanding of the mathematical concepts and resolve misconceptions (Walkington, 2013; Karpicke, 2012; Koedinger et al., 2015). The recent GSM8K (Cobbe et al., 2021) dataset contains MWPs that come with 2 to 8 intermediate steps described in natural language, which provides us a good resource to study step-by-step solution generation. Many works apply (large) language models (LMs) on this dataset and achieve high accuracy in final answer generation, without studying the quality of intermediate steps (Wei et al., 2022; Wang et al., 2022; Chowdhery, Aakanksha and others, 2022; Lewkowycz et al., 2022; Uesato et al., 2022; Kojima et al., 2022; Li et al., 2022). These works use verifers, self-consistency decoding strategy (majority votes), chain-of-thought prompting, or calculators; see Section 4 for a detailed discussion. However, existing LMs are still prone to generating incorrect intermediate steps despite yielding the correct final answer. The models are not competent at numerical reasoning, possibly because they generate intermediate steps word by word (or token by token) and cannot look far ahead. As a result, they only use shallow heuristics (Li et al., 2021) in word occurrence and lack multi-step mathematical reasoning capabilities, which solving an MWP requires. A recent study that experiments on GPT-4 also points out that the architecture of next-word prediction precludes any “inner dialog”and cannot really plan ahead (Bubeck et al., 2023). ## 1.1 Contributions In this paper, we study the problem of generating accurate and high-quality intermediate solution steps with natural language explanation via step-bystep planning using LMs. We formulate this problem as a controllable generation problem where the LM aims to generate the correct intermediate solution at each solution step, given the MWP and previous solution steps. This problem is particularly challenging since the generated solution steps need to be accurate, i.e., each intermediate step must be mathematically valid and on the path to the correct answer. We need an approach different from widely-adopted, attribute-controlled generation approaches for topic or sentiment, where the attribute is nuanced and cannot be matched exactly (Dathathri et al., 2020; Krause et al., 2020; Shirish Keskar et al., 2019). To overcome these challenges, we introduce a planning-LM approach, where we plan the strategy for the next solution step and then use the plan to guide LMs to generate the step. Since symbols and patterns are crucial to the effectiveness of chainof-thought prompting (Madaan and Yazdanbakhsh, 2022), we design plans in the form of mathematical operations to prompt the model to generate the next intermediate step. We summarize our contributions as follows. [C1] We explore the use of a planning approach for step-by-step solution generation for MWPs. To the best of our knowledge, our work is the first to focus on generating high-quality intermediate solution steps via LMs. [C2] We first predict the mathematical operation applied in the next solution step using a small model and then apply a carefully-constructed prompt to control an LM to generate the next solution step. Our approach can be extended to many downstream applications due to its interpretability and high controllability. [C3] We evaluate our planning-LM approach on the GSM8K dataset to demonstrate its effectiveness, both quantitatively and qualitatively. With minimal additional parameters $(0.02\%)$, it outperforms existing approaches on both final answer accuracy and intermediate step quality. Moreover, by manually changing the math operation prompt, we can control our approach to generate different correct solution paths for the same MWP. ## 1.2 Notation We first define all of the terms and components in our approach. We define an MWP as $Q=$ $\{q_{1},q_{2},\ldots,q_{n}\}$ where $q_i$ represents a token, which is either a numerical value, a mathematical operator, or a word/sub-word. The corresponding stepby-step solution is $S=\{S^1,S^2,\ldots\}$, where $S^i$ denotes $i^th$ step of the solution. For any step $S^i$, we denote it as $S^i=\{s_1^i,s_2^i,\ldots\}$,consisting of a sequence of tokens. Next, we define our prompt in two parts. The first part is the textual instruction prompt, which contains words that LMs can understand, and the second part is the mathematical operation prompt, which is a special token that instructs the LM to perform which mathematical operation in the next solution step. We denote the instruction prompt as $P=\{p_1,p_2,\ldots\}$, where $p_i$ represents a word/sub-word token, and the operation prompt as $O=\{o\}$, where $o$ is a categorical variable indicating the math operation token. We define $H_i$ as the solution context, i.e., the history
[ [ "0.11755", "0.0861", "0.4902", "0.0861", "0.4902", "0.0998", "0.11755", "0.0998" ], [ "0.511", "0.0861", "0.881", "0.0861", "0.881", "0.0998", "0.511", "0.0998" ], [ "0.11755", "0.10156", "0.4902", "0.10156", "0.4902", "0.1152", "0.11755", "0.1152" ], [ "0.513", "0.10394", "0.879", "0.10394", "0.879", "0.114", "0.513", "0.114" ], [ "0.1184", "0.11816", "0.4902", "0.11816", "0.4902", "0.1318", "0.1184", "0.1318" ], [ "0.511", "0.11816", "0.881", "0.11816", "0.881", "0.1318", "0.511", "0.1318" ], [ "0.11584", "0.133", "0.4878", "0.133", "0.4878", "0.1467", "0.11584", "0.1467" ], [ "0.511", "0.1342", "0.882", "0.1342", "0.882", "0.1478", "0.511", "0.1478" ], [ "0.11755", "0.1497", "0.4895", "0.1497", "0.4895", "0.1633", "0.11755", "0.1633" ], [ "0.511", "0.1497", "0.882", "0.1484", "0.882", "0.1633", "0.511", "0.1644" ], [ "0.11755", "0.1663", "0.4895", "0.1663", "0.4895", "0.1799", "0.11755", "0.1799" ], [ "0.51", "0.165", "0.881", "0.165", "0.881", "0.1787", "0.51", "0.1787" ], [ "0.1184", "0.1829", "0.4902", "0.1829", "0.4902", "0.1965", "0.1184", "0.1965" ], [ "0.51", "0.1829", "0.882", "0.1829", "0.882", "0.1965", "0.51", "0.1965" ], [ "0.11755", "0.199", "0.4895", "0.199", "0.4895", "0.2131", "0.11755", "0.2131" ], [ "0.511", "0.1996", "0.592", "0.1996", "0.592", "0.2114", "0.511", "0.2114" ], [ "0.11755", "0.2131", "0.4878", "0.2144", "0.4878", "0.2286", "0.11755", "0.228" ], [ "0.529", "0.2162", "0.882", "0.2162", "0.882", "0.2299", "0.529", "0.2299" ], [ "0.1184", "0.2328", "0.4895", "0.2328", "0.4895", "0.2434", "0.1184", "0.2434" ], [ "0.511", "0.2328", "0.882", "0.2328", "0.882", "0.2465", "0.511", "0.2465" ], [ "0.11584", "0.2465", "0.4895", "0.2465", "0.4895", "0.2612", "0.11584", "0.2612" ], [ "0.513", "0.2505", "0.881", "0.2505", "0.881", "0.2612", "0.513", "0.2612" ], [ "0.11755", "0.2632", "0.4895", "0.2632", "0.4895", "0.2766", "0.11755", "0.2766" ], [ "0.509", "0.2642", "0.881", "0.2642", "0.881", "0.2778", "0.509", "0.2778" ], [ "0.1184", "0.279", "0.4895", "0.279", "0.4895", "0.2922", "0.1184", "0.2922" ], [ "0.51", "0.2808", "0.686", "0.2808", "0.686", "0.2944", "0.51", "0.2944" ], [ "0.11755", "0.2944", "0.4895", "0.2944", "0.4895", "0.308", "0.11755", "0.308" ], [ "0.529", "0.2976", "0.8833", "0.2986", "0.8833", "0.3135", "0.529", "0.3123" ], [ "0.11584", "0.31", "0.4878", "0.3113", "0.4878", "0.326", "0.11584", "0.3247" ], [ "0.51", "0.3154", "0.8833", "0.3154", "0.8833", "0.3289", "0.51", "0.3289" ], [ "0.11755", "0.3267", "0.486", "0.3267", "0.486", "0.3403", "0.11755", "0.3403" ], [ "0.511", "0.3308", "0.882", "0.3308", "0.882", "0.3457", "0.511", "0.3457" ], [ "0.11755", "0.3433", "0.4895", "0.3433", "0.4895", "0.357", "0.11755", "0.357" ], [ "0.511", "0.3474", "0.8833", "0.3474", "0.8833", "0.361", "0.511", "0.361" ], [ "0.1351", "0.3599", "0.492", "0.361", "0.492", "0.376", "0.1351", "0.3748" ], [ "0.51", "0.3635", "0.882", "0.3635", "0.882", "0.3772", "0.51", "0.3772" ], [ "0.11584", "0.3772", "0.4895", "0.3777", "0.4895", "0.3926", "0.11584", "0.3914" ], [ "0.51", "0.379", "0.881", "0.379", "0.881", "0.3938", "0.51", "0.3938" ], [ "0.1184", "0.3955", "0.4895", "0.3955", "0.4895", "0.4062", "0.1184", "0.4062" ], [ "0.511", "0.3955", "0.692", "0.3955", "0.692", "0.4092", "0.511", "0.4092" ], [ "0.11584", "0.4104", "0.4844", "0.4104", "0.4844", "0.4233", "0.11584", "0.4233" ], [ "0.5283", "0.412", "0.882", "0.4133", "0.882", "0.4275", "0.5283", "0.427" ], [ "0.1184", "0.4258", "0.4878", "0.4258", "0.4878", "0.4395", "0.1184", "0.4395" ], [ "0.51", "0.4312", "0.881", "0.4312", "0.881", "0.4412", "0.51", "0.4412" ], [ "0.11755", "0.4412", "0.4895", "0.4412", "0.4895", "0.4548", "0.11755", "0.4548" ], [ "0.509", "0.4453", "0.881", "0.4453", "0.881", "0.459", "0.509", "0.459" ], [ "0.11755", "0.4578", "0.4878", "0.4578", "0.4878", "0.4714", "0.11755", "0.4714" ], [ "0.511", "0.4614", "0.8833", "0.4614", "0.8833", "0.4756", "0.511", "0.4756" ], [ "0.11755", "0.4756", "0.486", "0.4756", "0.486", "0.4863", "0.11755", "0.4863" ], [ "0.511", "0.478", "0.882", "0.478", "0.882", "0.4922", "0.511", "0.4922" ], [ "0.1142", "0.4905", "0.4895", "0.4905", "0.4895", "0.5044", "0.1142", "0.5044" ], [ "0.513", "0.4946", "0.882", "0.4946", "0.882", "0.5083", "0.513", "0.5083" ], [ "0.11584", "0.506", "0.4895", "0.505", "0.4895", "0.5195", "0.11584", "0.521" ], [ "0.513", "0.5103", "0.882", "0.5103", "0.882", "0.524", "0.513", "0.524" ], [ "0.11755", "0.5225", "0.4895", "0.5225", "0.4895", "0.536", "0.11755", "0.536" ], [ "0.509", "0.5254", "0.881", "0.5254", "0.881", "0.539", "0.509", "0.539" ], [ "0.11755", "0.539", "0.4902", "0.539", "0.4902", "0.5527", "0.11755", "0.5527" ], [ "0.509", "0.5415", "0.8193", "0.5405", "0.8193", "0.5547", "0.509", "0.5557" ], [ "0.11584", "0.5547", "0.4072", "0.5547", "0.4072", "0.5684", "0.11584", "0.5684" ], [ "0.511", "0.572", "0.6245", "0.5737", "0.6245", "0.589", "0.511", "0.5874" ], [ "0.11755", "0.586", "0.2703", "0.586", "0.2703", "0.601", "0.11755", "0.601" ], [ "0.511", "0.5986", "0.882", "0.5986", "0.882", "0.6123", "0.511", "0.6123" ], [ "0.11755", "0.6123", "0.4954", "0.6123", "0.4954", "0.627", "0.11755", "0.627" ], [ "0.51", "0.6143", "0.8623", "0.6133", "0.8623", "0.6274", "0.51", "0.629" ], [ "0.8613", "0.618", "0.875", "0.618", "0.875", "0.6245", "0.8613", "0.6245" ], [ "0.11584", "0.629", "0.4895", "0.629", "0.4895", "0.6436", "0.11584", "0.6436" ], [ "0.509", "0.6313", "0.8833", "0.6274", "0.8833", "0.6445", "0.509", "0.648" ], [ "0.11755", "0.6455", "0.492", "0.6455", "0.492", "0.659", "0.11755", "0.659" ], [ "0.509", "0.6455", "0.8833", "0.6465", "0.8833", "0.661", "0.509", "0.66" ], [ "0.11755", "0.661", "0.492", "0.661", "0.492", "0.675", "0.11755", "0.675" ], [ "0.509", "0.662", "0.882", "0.663", "0.882", "0.6777", "0.509", "0.677" ], [ "0.11755", "0.677", "0.4895", "0.677", "0.4895", "0.6904", "0.11755", "0.6904" ], [ "0.5073", "0.676", "0.879", "0.676", "0.879", "0.6934", "0.5073", "0.6934" ], [ "0.11584", "0.6924", "0.486", "0.6924", "0.486", "0.706", "0.11584", "0.706" ], [ "0.511", "0.695", "0.882", "0.695", "0.882", "0.709", "0.511", "0.709" ], [ "0.11584", "0.709", "0.4878", "0.708", "0.4878", "0.7227", "0.11584", "0.7236" ], [ "0.51", "0.7114", "0.882", "0.7114", "0.882", "0.7256", "0.51", "0.7256" ], [ "0.11755", "0.7256", "0.4902", "0.7256", "0.4902", "0.7393", "0.11755", "0.7393" ], [ "0.509", "0.7256", "0.882", "0.728", "0.882", "0.742", "0.509", "0.7407" ], [ "0.1184", "0.7437", "0.486", "0.7437", "0.486", "0.7544", "0.1184", "0.7544" ], [ "0.51", "0.742", "0.879", "0.742", "0.879", "0.756", "0.51", "0.756" ], [ "0.11584", "0.7583", "0.4878", "0.7583", "0.4878", "0.7715", "0.11584", "0.7715" ], [ "0.511", "0.7603", "0.882", "0.7603", "0.882", "0.774", "0.511", "0.774" ], [ "0.11584", "0.774", "0.4895", "0.774", "0.4895", "0.7876", "0.11584", "0.7876" ], [ "0.51", "0.7754", "0.882", "0.7754", "0.882", "0.789", "0.51", "0.789" ], [ "0.11584", "0.7905", "0.4902", "0.7905", "0.4902", "0.804", "0.11584", "0.804" ], [ "0.51", "0.7915", "0.882", "0.7905", "0.882", "0.8047", "0.51", "0.8057" ], [ "0.11584", "0.8057", "0.4937", "0.8057", "0.4937", "0.8193", "0.11584", "0.8193" ], [ "0.51", "0.808", "0.882", "0.808", "0.882", "0.822", "0.51", "0.822" ], [ "0.11755", "0.8223", "0.4895", "0.8223", "0.4895", "0.836", "0.11755", "0.836" ], [ "0.509", "0.8247", "0.881", "0.8247", "0.881", "0.8384", "0.509", "0.8384" ], [ "0.11755", "0.839", "0.4895", "0.839", "0.4895", "0.8496", "0.11755", "0.8496" ], [ "0.51", "0.8403", "0.881", "0.8403", "0.881", "0.855", "0.51", "0.855" ], [ "0.11755", "0.854", "0.4902", "0.854", "0.4902", "0.8677", "0.11755", "0.8677" ], [ "0.509", "0.857", "0.882", "0.857", "0.882", "0.8706", "0.509", "0.8706" ], [ "0.11755", "0.869", "0.3242", "0.869", "0.3242", "0.883", "0.11755", "0.883" ], [ "0.51", "0.8726", "0.882", "0.8726", "0.882", "0.8857", "0.51", "0.8857" ], [ "0.1335", "0.888", "0.4878", "0.888", "0.4878", "0.903", "0.1335", "0.903" ], [ "0.511", "0.888", "0.882", "0.888", "0.882", "0.902", "0.511", "0.902" ], [ "0.1142", "0.904", "0.4878", "0.905", "0.4878", "0.9194", "0.1142", "0.9185" ], [ "0.511", "0.905", "0.882", "0.905", "0.882", "0.9185", "0.511", "0.9185" ] ]
[ "dent understanding of the mathematical concepts", "for the next solution step and then use the plan to", "and resolve misconceptions (Walkington, 2013;", "guideLMs to generate the step.Since symbols and", "Karpicke, 2012; Koedinger et al., 2015). The re-", "patterns are crucial to the effectiveness of chain-", "cent GSM8K (Cobbe et al., 2021) dataset contains", "of-thought prompting (Madaan and Yazdanbakhsh.", "MWPs that come with 2 to 8 intermediate steps", "2022), we design plans in the form of mathematical", "described in natural language, which provides us a", " operations to prompt the model to generate the next", "good resource to study step-by-step solution gener-", "intermediate step. We summarize our contributions", "ation. Many works apply (large) language models", "as follows.", "(LMs) on this dataset and achieve high accuracy in", "[C1] We explore the use of a planning approach", "final answer generation, without studying the qual-", "for step-by-step solution generation for MWPs. To", "ity of intermediate steps (Wei et al., 2022; Wang", "the best of our knowledge, our work is the first", "et al., 2022; Chowdhery, Aakanksha and others,", "to focus on generating high-quality intermediate", "2022; Lewkowycz et al., 2022; Uesato et al., 2022;", "solution steps via LMs.", "Kojima et al., 2022; Li et al., 2022). These works", "[C2] We first predict the mathematical oper-", "use verifiers, self-consistency decoding strategy", "ation applied in the next solution step using a", "(majority votes), chain-of-thought prompting, or", "small model and then apply a carefully-constructed", "calculators; see Section 4 for a detailed discussion.", "prompt to control an LM to generate the next solu-", "However, existing LMs are still prone to gener-", "tion step. Our approach can be extended to many", "ating incorrect intermediate steps despite yielding", "downstream applications due to its interpretability", "thecorrectfinal answer.Themodelsarenotcompe-", "and high controllability.", "tent at numerical reasoning, possibly because they", "[C3] We evaluate our planning-LM approach on", "generate intermediate steps word by word (or token", "the GSM8Kdataset to demonstrate its effective-", "by token) and cannot look far ahead. As a result,", "ness, both quantitatively and qualitatively. With", "they only use shallow heuristics (Li et al., 2021) in", "minimal additional parameters (0.02%), it outper-", "wordoccurrenceandlackmulti-stepmathematical", "forms existing approaches on both final answer", "reasoning capabilities, which solving an MWP re-", "accuracy and intermediate step quality. Moreover", "quires. A recent study that experiments on GPT-4", "by manually changing the math operation prompt", "also points out that the architecture of next-word", " we can control our approach to generate different", "prediction precludes any\"inner dialog\" and cannot", "correct solution paths for the same MWP", "really plan ahead (Bubeck et al., 2023).", "1.2 Notation", "1.1 Contributions", "We first define all of the terms and components", "In this paper, we study the problem of generat-", "in our approach. We define an MWP as Q", "二", "ing accurate and high-quality intermediate solution", "{q1, Q2, ..., qn] where qi represents a token, which", "steps with natural language explanation via step-by-", "is either a numerical value, a mathematical opera-", "step planning using LMs. We formulate this prob-", "tor, or a word/sub-word. The corresponding step-", "lem as a controllable generation problem where", "by-step solution is S = [S], $?,...], where Si", "the LM aims to generate the correct intermediate", "denotes ith step of the solution. For any step si", "solution at each solution step, given the MWP and", "we denote it as Si = {si, s?, .. J, consisting of a", "previous solution steps. This problem is particu-", "sequence of tokens. Next, we define our prompt", "larlychallengingsincethegenerated solutionsteps", "in two parts. The first part is the textual instruc.", "need to be accurate, i.e., each intermediate step", "tion prompt, which contains words that LMs can", "must be mathematically valid and on the path to", "understand, and the second part is the mathemati", "the correct answer. We need an approach differ-", " cal operation prompt, which is a special token that", "ent from widely-adopted, attribute-controlled gen-", "instructs the LM to perform which mathematical", "eration approaches for topic or sentiment, where", " operation in the next solution step. We denote the", "the attribute is nuanced and cannot be matched ex-", "instruction prompt as P= {p1, p2, .-], where pi", "actly (Dathathri et al., 2020; Krause et al., 2020; ", "represents a word/sub-word token, and the opera-", "Shirish Keskar et al., 2019).", "tion prompt as O = fol, where o is a categorical", "To overcome these challenges, we introduce a", "variable indicating the math operation token. We", "planning-LM approach, where we plan the strategy", "define H, as the solution context, i.e., the history" ]
{ "arxiv_id": "2306.00784", "language": "en", "page_idx": 1 }
2306.00784-en-3
2306.00784-en-3.jpg
$f_{\theta};\beta$ and $\theta$ are the parameters of these parts, i.e., the embedding layer in an LM. Then, we obtain the representation of the solution history as the final layer hidden state of the LM, i.e., $\mathcal{M}.$ To predict the operation action of the next step, we use a one-layer, fully-connected network as the classifier, with weight $w_\gamma$, to obtain an operation score vector for each valid math operation $s\in[0,1]^|O|$, where $|O|$ is the number of operation classes, as $$s=w_{\gamma}\dot{h}_{[cls]},$$ where $\gamma$ is the set of parameters for the classifier. Since we need to use an LM for step generation, introducing a separate LM for operation prediction leads to a large number of parameters. Therefore, we use the same LM for both operation planning and solution step generation. The objective function for operation planning is the cross-entropy loss on operators, i.e., $$\mathcal{L}_{CE}=-\sum_i^{|O|}t_i\log(\frac{\exp s_i}{\sum_j^{|O|}\exp s_j}),$$ where $s_i$ is the score of operation class $i.t_i$ is an indicator such that $t_i=1$ when $i$ is the true label and $t_i=0$ otherwise. We obtain true labels by extracting mathematical operations from each step of the solution in the training data, which we detail below in Section 2.3. ## 2.2 Controllable Step Generation Once we have the predicted operation $O$, we append the corresponding prompt to the instruction prompt $P$ to form our final prompt for step generation. Our task becomes a controllable generation task: given history $H$ and the prompt $[P;O]$ that plans the next step, our goal is to generate the next step $S$ token-by-token. We generate a step $S_{i}=\{s_{,}^{\bar{i}}...,s_{T}^{i}\}=\{s_{j}^{i}\}_{j=1}^{T}$according to $$p(S_i|[P_i;O_i],H_i)=\prod_{j=1}^Tp(s_j^i|[P_i;O_i],H_i,\{s_j^i\}_{j=1}^{j-1}).$$ Then, the overall step-by-step solution $S$ with $N$ steps is generated according to $$\begin{aligned}p(S)=\prod_{i=1}^Np(S_i|[P_i;O_i],H_i)p(O_i|H_i).\end{aligned}$$ The step generation objective is given by the nega- tive log-likelihood objective function $$\mathcal{L}_{LM}=-\sum_{i=1}^{N}\log p_{\beta,\theta,\gamma,\psi}(S_{i}|[P_{i};O_{i}],H_{i}),$$ where the set of parameters include previously defined $\beta,\theta,\gamma$ and the LM parameters $\psi.\beta$ and $\psi$ are fine-tuned while $\theta$ and $\gamma$ are learned from scratch. We also investigate two ways to position the prompt in LM input: as prefix, where we place them at the beginning, i.e., the input is given by $[P;O;H]$ and as infix, where we append the prompt after the history, i.e., the input is given by $[H;P;O].$ ## 2.3 Prompt Design Our prompt consists of two parts: the instruction prompt gives the LM general instructions on what to generate, while the operation prompt provides specific guidelines for the mathematical calculation involved in the next step. For the instruction prompt, we apply prompt mining (Yuan et al., 2021) to find good instructions, i.e., word tokens that are the most informative for the LM to accomplish the desired task. See Section D.2 for details. For the operation prompt, we extract 20 common operations from the training data, such as one step addition $[n+n]$,subtraction $[n-n]$,multiplication $[n*n]$,etc and use them as prompts. We note that these operators are easy to find and can be automatically extracted, which means that there is no need to manually create labels to train the operation prediction LM. The instruction tokens and operation action tokens form the entire vocabulary of the prompt function $f_\theta.$ The prompt function is a two-layer perceptron with a ReLU activation function. ## 2.4 0ptimization Although our entire approach can be trained together in an end-to-end way, we found that optimizing the operation prediction model and finetuning the LM/prompts for step generation asynchronously leads to better performance. Our intuition is that the operation predictor is a highlevel decision-making policy for the entire solution while the LM generation process is a low-level (token-by-token) decision-making process for the current step. Optimizing these two modules simultaneously may cause inconsistency since the operation predictor may make a decision based on LM parameters that also need to be updated. Therefore, we first optimize the parameters of the generation LM and prompts with the step generation task loss, using ground truth operation labels, which we extract from the mathematical part of each step in the training data. Then, we iterate between freezing both the LM $M$ and the prompt function $f$ while
[ [ "0.12006", "0.0861", "0.4937", "0.0861", "0.4937", "0.0998", "0.12006", "0.0998" ], [ "0.511", "0.0861", "0.882", "0.0861", "0.882", "0.0998", "0.511", "0.0998" ], [ "0.11755", "0.10156", "0.4878", "0.10156", "0.4878", "0.1152", "0.11755", "0.1152" ], [ "0.511", "0.10156", "0.881", "0.10156", "0.881", "0.1152", "0.511", "0.1152" ], [ "0.11755", "0.11816", "0.4895", "0.11816", "0.4895", "0.1318", "0.11755", "0.1318" ], [ "0.513", "0.11816", "0.882", "0.11816", "0.882", "0.1318", "0.513", "0.1318" ], [ "0.11755", "0.1342", "0.4902", "0.1342", "0.4902", "0.1478", "0.11755", "0.1478" ], [ "0.51", "0.1342", "0.882", "0.1342", "0.882", "0.1478", "0.51", "0.1478" ], [ "0.11755", "0.1497", "0.4895", "0.1497", "0.4895", "0.1633", "0.11755", "0.1633" ], [ "0.51", "0.1509", "0.882", "0.1509", "0.882", "0.1644", "0.51", "0.1644" ], [ "0.11755", "0.1663", "0.4902", "0.1663", "0.4902", "0.1799", "0.11755", "0.1799" ], [ "0.51", "0.1663", "0.882", "0.1663", "0.882", "0.1799", "0.51", "0.1799" ], [ "0.11755", "0.1829", "0.486", "0.1829", "0.486", "0.1936", "0.11755", "0.1936" ], [ "0.51", "0.1829", "0.882", "0.1829", "0.882", "0.1965", "0.51", "0.1965" ], [ "0.11755", "0.1978", "0.4895", "0.1978", "0.4895", "0.212", "0.11755", "0.212" ], [ "0.51", "0.199", "0.833", "0.199", "0.833", "0.212", "0.51", "0.212" ], [ "0.11755", "0.2131", "0.424", "0.2144", "0.424", "0.2286", "0.11755", "0.228" ], [ "0.511", "0.2227", "0.6733", "0.2245", "0.6733", "0.2393", "0.511", "0.2369" ], [ "0.2527", "0.234", "0.3494", "0.2405", "0.3477", "0.2546", "0.251", "0.2488" ], [ "0.513", "0.2452", "0.882", "0.2452", "0.882", "0.26", "0.513", "0.26" ], [ "0.11755", "0.26", "0.4902", "0.26", "0.4902", "0.275", "0.11755", "0.275" ], [ "0.51", "0.2625", "0.882", "0.26", "0.882", "0.275", "0.51", "0.2766" ], [ "0.11755", "0.2756", "0.4895", "0.2766", "0.4895", "0.2915", "0.11755", "0.2903" ], [ "0.51", "0.2778", "0.882", "0.2778", "0.882", "0.2922", "0.51", "0.2922" ], [ "0.11755", "0.2922", "0.4878", "0.2922", "0.4878", "0.3071", "0.11755", "0.3071" ], [ "0.51", "0.2935", "0.882", "0.2922", "0.882", "0.3071", "0.51", "0.308" ], [ "0.11584", "0.308", "0.4878", "0.308", "0.4878", "0.3218", "0.11584", "0.3218" ], [ "0.509", "0.3088", "0.881", "0.3088", "0.881", "0.3225", "0.509", "0.3225" ], [ "0.11584", "0.326", "0.4878", "0.326", "0.4878", "0.339", "0.11584", "0.339" ], [ "0.511", "0.326", "0.882", "0.3247", "0.882", "0.339", "0.511", "0.3403" ], [ "0.11584", "0.3403", "0.4895", "0.3403", "0.4895", "0.354", "0.11584", "0.354" ], [ "0.511", "0.3433", "0.881", "0.3433", "0.881", "0.354", "0.511", "0.354" ], [ "0.11584", "0.3582", "0.4895", "0.3582", "0.4895", "0.3718", "0.11584", "0.3718" ], [ "0.51", "0.3582", "0.882", "0.3582", "0.882", "0.3718", "0.51", "0.3718" ], [ "0.11755", "0.376", "0.2477", "0.376", "0.2477", "0.386", "0.11755", "0.386" ], [ "0.511", "0.3735", "0.881", "0.3735", "0.881", "0.3872", "0.511", "0.3872" ], [ "0.251", "0.3943", "0.2747", "0.3943", "0.2747", "0.408", "0.251", "0.408" ], [ "0.513", "0.3914", "0.8833", "0.3914", "0.8833", "0.405", "0.513", "0.405" ], [ "0.346", "0.3997", "0.3997", "0.4038", "0.3972", "0.4175", "0.3435", "0.4146" ], [ "0.1721", "0.4092", "0.2351", "0.412", "0.2334", "0.427", "0.1704", "0.4233" ], [ "0.2627", "0.412", "0.3225", "0.412", "0.3225", "0.4233", "0.2627", "0.4233" ], [ "0.511", "0.4067", "0.882", "0.4067", "0.882", "0.4204", "0.511", "0.4204" ], [ "0.3342", "0.4187", "0.372", "0.4187", "0.372", "0.43", "0.3342", "0.43" ], [ "0.3628", "0.4216", "0.419", "0.4233", "0.4182", "0.4382", "0.361", "0.4358" ], [ "0.511", "0.4229", "0.882", "0.4229", "0.882", "0.437", "0.511", "0.437" ], [ "0.3315", "0.4312", "0.3552", "0.4312", "0.3552", "0.4382", "0.3315", "0.4382" ], [ "0.511", "0.4395", "0.882", "0.4395", "0.882", "0.4531", "0.511", "0.4531" ], [ "0.11755", "0.4453", "0.486", "0.4453", "0.486", "0.459", "0.11755", "0.459" ], [ "0.51", "0.4548", "0.882", "0.4548", "0.882", "0.4685", "0.51", "0.4685" ], [ "0.11755", "0.4614", "0.486", "0.4614", "0.486", "0.4744", "0.11755", "0.4744" ], [ "0.511", "0.4702", "0.882", "0.4702", "0.882", "0.484", "0.511", "0.484" ], [ "0.11584", "0.4768", "0.486", "0.4768", "0.486", "0.4912", "0.11584", "0.4912" ], [ "0.51", "0.4863", "0.8833", "0.4868", "0.8833", "0.5005", "0.51", "0.4995" ], [ "0.11755", "0.4934", "0.486", "0.4934", "0.486", "0.5073", "0.11755", "0.5073" ], [ "0.51", "0.503", "0.881", "0.503", "0.881", "0.5166", "0.51", "0.5166" ], [ "0.11755", "0.5103", "0.4878", "0.5103", "0.4878", "0.524", "0.11755", "0.524" ], [ "0.511", "0.517", "0.881", "0.5186", "0.881", "0.533", "0.511", "0.532" ], [ "0.11584", "0.5254", "0.2747", "0.5254", "0.2747", "0.539", "0.11584", "0.539" ], [ "0.511", "0.536", "0.882", "0.536", "0.882", "0.55", "0.511", "0.55" ], [ "0.11755", "0.552", "0.3914", "0.552", "0.3914", "0.5654", "0.11755", "0.5654" ], [ "0.511", "0.552", "0.882", "0.552", "0.882", "0.5654", "0.511", "0.5654" ], [ "0.11755", "0.5723", "0.4895", "0.5723", "0.4895", "0.586", "0.11755", "0.586" ], [ "0.511", "0.568", "0.581", "0.568", "0.581", "0.582", "0.511", "0.582" ], [ "0.11755", "0.5884", "0.4878", "0.5884", "0.4878", "0.6025", "0.11755", "0.6025" ], [ "0.511", "0.5933", "0.66", "0.5933", "0.66", "0.607", "0.511", "0.607" ], [ "0.11584", "0.605", "0.4895", "0.605", "0.4895", "0.618", "0.11584", "0.618" ], [ "0.513", "0.6143", "0.8833", "0.6143", "0.8833", "0.629", "0.513", "0.629" ], [ "0.11584", "0.6206", "0.4895", "0.6206", "0.4895", "0.6343", "0.11584", "0.6343" ], [ "0.11755", "0.6357", "0.4844", "0.6357", "0.4844", "0.651", "0.11755", "0.651" ], [ "0.511", "0.6313", "0.882", "0.63", "0.882", "0.6445", "0.511", "0.6455" ], [ "0.11584", "0.652", "0.4844", "0.652", "0.4844", "0.665", "0.11584", "0.665" ], [ "0.51", "0.6465", "0.8833", "0.6455", "0.8833", "0.66", "0.51", "0.661" ], [ "0.11584", "0.6675", "0.486", "0.6685", "0.486", "0.683", "0.11584", "0.6816" ], [ "0.51", "0.662", "0.8833", "0.663", "0.8833", "0.6777", "0.51", "0.677" ], [ "0.11755", "0.683", "0.419", "0.683", "0.419", "0.7007", "0.11755", "0.7007" ], [ "0.511", "0.6787", "0.8833", "0.6777", "0.8833", "0.6924", "0.511", "0.6934" ], [ "0.511", "0.6953", "0.8833", "0.6953", "0.8833", "0.709", "0.511", "0.709" ], [ "0.266", "0.709", "0.2795", "0.709", "0.2795", "0.7173", "0.266", "0.7173" ], [ "0.511", "0.7104", "0.8833", "0.7114", "0.8833", "0.7256", "0.511", "0.7246" ], [ "0.11755", "0.7197", "0.4802", "0.7173", "0.4802", "0.7383", "0.11755", "0.7407" ], [ "0.511", "0.728", "0.882", "0.728", "0.882", "0.741", "0.511", "0.741" ], [ "0.2603", "0.7407", "0.288", "0.7407", "0.288", "0.752", "0.2603", "0.752" ], [ "0.513", "0.7437", "0.882", "0.7437", "0.882", "0.7573", "0.513", "0.7573" ], [ "0.11755", "0.7583", "0.4844", "0.7583", "0.4844", "0.7715", "0.11755", "0.7715" ], [ "0.511", "0.759", "0.882", "0.7583", "0.882", "0.7725", "0.511", "0.774" ], [ "0.11755", "0.775", "0.346", "0.775", "0.346", "0.788", "0.11755", "0.788" ], [ "0.513", "0.7754", "0.882", "0.7754", "0.882", "0.789", "0.513", "0.789" ], [ "0.22", "0.796", "0.236", "0.796", "0.236", "0.8057", "0.22", "0.8057" ], [ "0.511", "0.7915", "0.882", "0.7915", "0.882", "0.8047", "0.511", "0.8047" ], [ "0.1545", "0.808", "0.4475", "0.808", "0.4475", "0.826", "0.1545", "0.826" ], [ "0.511", "0.808", "0.8833", "0.808", "0.8833", "0.822", "0.511", "0.822" ], [ "0.2167", "0.8276", "0.2418", "0.8276", "0.2418", "0.836", "0.2167", "0.836" ], [ "0.511", "0.8247", "0.882", "0.8247", "0.882", "0.8384", "0.511", "0.8384" ], [ "0.11584", "0.8433", "0.4902", "0.8433", "0.4902", "0.857", "0.11584", "0.857" ], [ "0.511", "0.8403", "0.8833", "0.8403", "0.8833", "0.854", "0.511", "0.854" ], [ "0.11755", "0.8594", "0.392", "0.8594", "0.392", "0.8726", "0.11755", "0.8726" ], [ "0.511", "0.857", "0.882", "0.857", "0.882", "0.8706", "0.511", "0.8706" ], [ "0.511", "0.8726", "0.882", "0.8726", "0.882", "0.8857", "0.511", "0.8857" ], [ "0.2258", "0.879", "0.2468", "0.879", "0.2468", "0.8926", "0.2258", "0.8926" ], [ "0.1427", "0.8926", "0.2007", "0.898", "0.1973", "0.911", "0.1394", "0.9062" ], [ "0.511", "0.888", "0.882", "0.888", "0.882", "0.903", "0.511", "0.903" ], [ "0.2377", "0.8945", "0.461", "0.8926", "0.461", "0.909", "0.2377", "0.911" ], [ "0.51", "0.903", "0.882", "0.904", "0.882", "0.9185", "0.51", "0.9175" ], [ "0.2225", "0.911", "0.2494", "0.911", "0.2494", "0.923", "0.2225", "0.923" ] ]
[ "fe; β and are the parameters of these parts, i.e.,", "where the set of parameters include previously de-", "the embedding layer in an LM. Then, we obtain", "fined β, 3, and the LM parameters ab. β and are", "the representation of the solution history as the", "fine-tuned while and are learned from scratch.", "final layer hidden state of the LM, i.e., M. To pre-", "We also investigate two ways to position the prompt", "dict the operation action of the next step, we use a", " in LM input: as prefix, where we place them at the", "one-layer, fully-connected network as the classifier,", "beginning, i.e., the input is given by [P; O; H] and", "with weight we.to obtain an operation score vector", "as infix, where we append the prompt after the", "for each valid math operation s e [0, 1]lO], where", "history, i.e., the input is given by [H; P; O].", "Ois the number ofoperation classes, as", "2.3Prompt Design", "s=whcls]", "Our prompt consists of two parts: the instruction", "where is the set of parameters for the classifier.", "prompt gives the LM general instructions on what", "Since we need to use an LM for step generation,", "to generate, while the operation prompt provides", "introducing a separate LM for operation prediction", "specific guidelines for the mathematical calcula-", "leads to a large number of parameters. Therefore.", "tion involved in the next step. For the instruction", "we use the same LM for both operation planning", "prompt, we apply prompt mining (Yuan et al., 2021)", "and solution step generation. The objective func-", "to find good instructions,i.e..word tokens thatare", "tion for operation planning is the cross-entropy loss", "the most informative for the LM to accomplish", "on operators, i.e.,", "the desired task. See Section D.2 for details. For", "1o]", "the operation prompt, we extract 20 common op-", "expsi", "LCE=", "t,log", "erations from the training data, such as one step", "-1ol", "expsj", "addition [n +n], subtraction [n-n], multiplication", "L1", "[n * n], etc and use them as prompts. We note that", "where s, is the score of operation class i. t, is an", "these operators are easy to find and can be auto", "indicator such that t, = 1 when i is the true label", "matically extracted, which means that there is no", "and t, = 0 otherwise. We obtain true labels by", "need to manually create labels to train the oper-", "extracting mathematical operations from each step", "ation prediction LM. The instruction tokens and", "of the solution in the training data, which we detail", "operation action tokens form the entire vocabulary", "below in Section 2.3.", "of the prompt function fe. The prompt function", "2.2Controllable Step Generation", "is a two-layer perceptron with a ReLU activation", "Once we have the predicted operation O, we ap-", "function.", "pend the corresponding prompt to the instruction", "2.4 Optimization", "prompt P to form our final prompt for step gen-", "Although our entire approach can be trained to-", "eration. Our task becomes a controllable genera-", "tion task: given history H and the prompt [P; O]", "gether in an end-to-end way, we found that opti-", "that plans the next step, our goal is to generate the", "mizing the operation prediction model and fine-", "next step S token-by-token. We generate a step", "tuning the LM/prompts for step generation asyn-", "S, = [s.., $f] = [sT-1 according to", "chronously leads to better performance. Our in-", "tuition is that the operation predictor is a high-", "T", "level decision-making policy for the entire solu-", "p(S:[P; O],H)-Ip(s)[P; O],H,{s=1),", "tion while the LM generation process is a low-level", "j=1", "(token-by-token) decision-making process for the", "Then, the overall step-by-step solution S with N", "current step. Optimizing these two modules simul-", "steps is generated according to", "taneously may cause inconsistency since the opera-", "N", "tion predictor may make a decision based on LM", "p(S) = IIp(S:l[P; O;], H)p(O;|H,).", "parameters that also need to be updated. Therefore,", "=1", "we first optimize the parameters of the generation", "The step generation objective is given by the nega-", "LM and prompts with the step generation task loss,", "tive log-likelihood objective function", "using ground truth operation labels, which we ex-", "tract from the mathematical part of each step in the", "N", "LLM=", "training data. Then, we iterate between freezing", "log pB,o,,(S:l[Pi; Oi], H.),", "both the LM M and the prompt function f while", "i=1" ]
{ "arxiv_id": "2306.00784", "language": "en", "page_idx": 3 }
1811.12784-en-0
1811.12784-en-0.jpg
The GAN that Warped: Semantic Attribute Editing with Unpaired Data $\begin{array}{cc}\text{Garoe Dorta}^{1,2}&\text{Sara Vicente}^{2}&\text{Neill D.F. Campbell}^{1}&\text{Ivor J.A. Simpson}^{2,3}\\^{1}\text{University of Bath}&^{2}\text{Anthropics Technology Ltd.}&^{3}\text{University of Sussex}\end{array}$ $\{$g.dorta.perez,n.campbell$\}$@bath.ac.uk sara@anthropics.com i.simpson@sussex.ac.uk $ଟ୍ରି$ <FigureHere> $\sum_{\begin{array}{cc}\text{(a)Inpuimage(previously unseen)}\\\text{(b)User requestedt:“beak largerthan head”(c)User requestedler\"beak smaller than head"}\\\text{\O}\\\text{(a)is automaticallytransformedbyour method into,e,g,an innage with }^{\prime}\text{beak smaller than head"}\end{array}}$ $w$ content of the original input, including fine details, is preserved. Our focus is on face editing, as previous work, yet the method is general enough to be applied to other datasets. Please see the supplemental material for videos of these and other edits. (Zoom in for details) ### $\mathbf{Abstract}$ ### $1. \textbf{Introduction}$ 11.12784v4 $\infty0$ 一 意 Deep neural networks have recently been used to edit images with great success, in particular for faces. However, they are often limited to only being able to work at a restricted range of resolutions. Many methods are so flexible that face edits can often result in an unwanted loss of identity. This work proposes to learn how to perform semantic image edits through the application of smooth warp felds. Previous approaches that attempted to use warping for semantic edits required paired data, i.e. example images of the same subject with different semantic attributes. In contrast, we employ recent advances in Generative Adversarial Networks that allow our model to be trained with unpaired data. We demonstrate face editing at very high resolutions $(4k$ images) with a single forward pass ofa deep network at a lower resolution. We also show that our edits are substantially better at preserving the subject's identity. The robustness of our approach is demonstrated by showing plausible image editing results on the Cub200 [35] birds dataset. To our knowledge this has not been previously accomplished, due the challenging nature of the dataset. Face editing has a long history in computer vision [23, 26, 33] and has been made increasingly relevant with the rise in the number of pictures people take of themselves or others. The type of edits that are performed usually manipulate a semantic attribute, such as removing a moustache or changing the subject's expression from a frown to a smile. In the last few years, deep learning approaches have become the standard in most editing tasks, including inpainting [27] and super-resolution [20]. Particularly, image-toimage translation methods [16] have been proposed, which learn how to transform an image from a source domain to a target domain. Cycle-GAN [42] allows learning such translations from unpaired data, $i.e.$ for each source image in the dataset a corresponding target image is not required. We are interested in photo-realistic image editing, which is a subset of image-to-image translation. We also focus on methods that provide a simple interface for users to edit images, $i.e.$ a single control per semantic attribute[6,29], as this makes editing easier for novice users. A disadvantage of current methods for editing [16,6,38] is that they focus on binary attribute changes. In order to allow partial edits an extensive collection of soft attribute data is usually required, which is labor intensive. Also, at inference each intermediate value requires a forward pass of the $^{1}$Image courtesy of Flickr user Christoph Landers.
[ [ "0.1274", "0.1338", "0.8447", "0.1338", "0.8447", "0.1483", "0.1274", "0.1483" ], [ "0.1642", "0.1812", "0.6167", "0.1812", "0.6167", "0.1989", "0.1642", "0.1989" ], [ "0.6323", "0.1812", "0.808", "0.1787", "0.808", "0.1976", "0.6323", "0.1995" ], [ "0.165", "0.1976", "0.326", "0.1989", "0.326", "0.2166", "0.165", "0.2153" ], [ "0.3555", "0.1995", "0.5923", "0.2008", "0.5923", "0.2153", "0.3555", "0.214" ], [ "0.6313", "0.1976", "0.806", "0.1989", "0.806", "0.2166", "0.6313", "0.2153" ], [ "0.1209", "0.2203", "0.4558", "0.2203", "0.4558", "0.2343", "0.1209", "0.2343" ], [ "0.4592", "0.2216", "0.636", "0.2216", "0.636", "0.2317", "0.4592", "0.2317" ], [ "0.649", "0.2203", "0.851", "0.2203", "0.851", "0.2343", "0.649", "0.2343" ], [ "0.01878", "0.2651", "0.05637", "0.2651", "0.06046", "0.4817", "0.02287", "0.4817" ], [ "0.1283", "0.4216", "0.3179", "0.4216", "0.3179", "0.435", "0.1283", "0.435" ], [ "0.3586", "0.4216", "0.8735", "0.4216", "0.8735", "0.435", "0.3586", "0.435" ], [ "0.0809", "0.4463", "0.892", "0.4463", "0.892", "0.4602", "0.0809", "0.4602" ], [ "0.0801", "0.461", "0.8906", "0.4602", "0.8906", "0.4734", "0.0801", "0.4749" ], [ "0.0825", "0.4749", "0.8906", "0.4749", "0.8906", "0.488", "0.0825", "0.488" ], [ "0.0237", "0.4817", "0.058", "0.4817", "0.058", "0.577", "0.0237", "0.577" ], [ "0.0801", "0.4893", "0.864", "0.4893", "0.864", "0.5024", "0.0801", "0.5024" ], [ "0.2378", "0.5166", "0.3137", "0.5166", "0.3137", "0.531", "0.2378", "0.531" ], [ "0.5024", "0.515", "0.6313", "0.5166", "0.6313", "0.531", "0.5024", "0.53" ], [ "0.0989", "0.5405", "0.4697", "0.5405", "0.4697", "0.5537", "0.0989", "0.5537" ], [ "0.5215", "0.539", "0.8906", "0.539", "0.8906", "0.553", "0.5215", "0.553" ], [ "0.03186", "0.5537", "0.04004", "0.55", "0.04413", "0.5537", "0.03595", "0.558" ], [ "0.0809", "0.556", "0.4697", "0.556", "0.4697", "0.5693", "0.0809", "0.5693" ], [ "0.501", "0.553", "0.892", "0.5537", "0.892", "0.5684", "0.501", "0.5674" ], [ "0.0801", "0.5713", "0.4697", "0.5713", "0.4697", "0.5854", "0.0801", "0.5854" ], [ "0.5024", "0.5693", "0.892", "0.5693", "0.892", "0.5835", "0.5024", "0.5835" ], [ "0.0809", "0.586", "0.4697", "0.586", "0.4697", "0.5996", "0.0809", "0.5996" ], [ "0.5024", "0.584", "0.888", "0.584", "0.888", "0.5986", "0.5024", "0.5986" ], [ "0.0335", "0.5947", "0.03757", "0.5947", "0.03757", "0.5996", "0.0335", "0.5996" ], [ "0.0801", "0.6016", "0.468", "0.6016", "0.468", "0.6157", "0.0801", "0.6157" ], [ "0.5024", "0.5996", "0.892", "0.5996", "0.892", "0.613", "0.5024", "0.613" ], [ "0.02777", "0.606", "0.05392", "0.606", "0.05392", "0.6255", "0.02777", "0.6255" ], [ "0.0801", "0.617", "0.468", "0.617", "0.468", "0.631", "0.0801", "0.631" ], [ "0.5034", "0.616", "0.884", "0.616", "0.884", "0.627", "0.5034", "0.627" ], [ "0.0809", "0.6333", "0.4673", "0.6333", "0.4673", "0.643", "0.0809", "0.643" ], [ "0.5215", "0.63", "0.8906", "0.63", "0.8906", "0.6445", "0.5215", "0.6445" ], [ "0.5024", "0.646", "0.8906", "0.646", "0.8906", "0.659", "0.5024", "0.659" ], [ "0.03513", "0.634", "0.05148", "0.634", "0.05148", "0.66", "0.03513", "0.66" ], [ "0.0801", "0.6465", "0.468", "0.6465", "0.468", "0.66", "0.0801", "0.66" ], [ "0.02287", "0.6577", "0.05392", "0.655", "0.06046", "0.702", "0.02942", "0.705" ], [ "0.0809", "0.662", "0.4697", "0.662", "0.4697", "0.6753", "0.0809", "0.6753" ], [ "0.5024", "0.66", "0.8906", "0.66", "0.8906", "0.674", "0.5024", "0.674" ], [ "0.03513", "0.6685", "0.04004", "0.6685", "0.04004", "0.6753", "0.03513", "0.6753" ], [ "0.0809", "0.677", "0.468", "0.677", "0.468", "0.69", "0.0809", "0.69" ], [ "0.5024", "0.6753", "0.892", "0.6753", "0.892", "0.6895", "0.5024", "0.6895" ], [ "0.0825", "0.6934", "0.468", "0.6934", "0.468", "0.704", "0.0825", "0.704" ], [ "0.5024", "0.6924", "0.8906", "0.6924", "0.8906", "0.7026", "0.5024", "0.7026" ], [ "0.0801", "0.707", "0.4697", "0.707", "0.4697", "0.72", "0.0801", "0.72" ], [ "0.5024", "0.7056", "0.8906", "0.7056", "0.8906", "0.7197", "0.5024", "0.7197" ], [ "0.0801", "0.7217", "0.468", "0.7217", "0.468", "0.735", "0.0801", "0.735" ], [ "0.5024", "0.7217", "0.892", "0.7217", "0.892", "0.735", "0.5024", "0.735" ], [ "0.0825", "0.7393", "0.4697", "0.7393", "0.4697", "0.75", "0.0825", "0.75" ], [ "0.5024", "0.7363", "0.8447", "0.7363", "0.8447", "0.75", "0.5024", "0.75" ], [ "0.0825", "0.754", "0.4673", "0.754", "0.4673", "0.7646", "0.0825", "0.7646" ], [ "0.5215", "0.75", "0.892", "0.7505", "0.892", "0.765", "0.5215", "0.7646" ], [ "0.0801", "0.7676", "0.468", "0.7676", "0.468", "0.781", "0.0801", "0.781" ], [ "0.5024", "0.7666", "0.892", "0.7666", "0.892", "0.78", "0.5024", "0.78" ], [ "0.0809", "0.7827", "0.468", "0.7827", "0.468", "0.797", "0.0809", "0.797" ], [ "0.5024", "0.781", "0.892", "0.781", "0.892", "0.7944", "0.5024", "0.7944" ], [ "0.0801", "0.7974", "0.4697", "0.7974", "0.4697", "0.811", "0.0801", "0.811" ], [ "0.5034", "0.7974", "0.8906", "0.7974", "0.8906", "0.808", "0.5034", "0.808" ], [ "0.0801", "0.813", "0.4697", "0.813", "0.4697", "0.827", "0.0801", "0.827" ], [ "0.5024", "0.811", "0.7935", "0.811", "0.7935", "0.8247", "0.5024", "0.8247" ], [ "0.0801", "0.8276", "0.353", "0.8276", "0.353", "0.8413", "0.0801", "0.8413" ], [ "0.5215", "0.827", "0.892", "0.827", "0.892", "0.8403", "0.5215", "0.8403" ], [ "0.5024", "0.8413", "0.8896", "0.8413", "0.8896", "0.855", "0.5024", "0.855" ], [ "0.5024", "0.857", "0.892", "0.857", "0.892", "0.8706", "0.5024", "0.8706" ], [ "0.5024", "0.872", "0.892", "0.872", "0.892", "0.8853", "0.5024", "0.8853" ], [ "0.0972", "0.887", "0.3628", "0.887", "0.3628", "0.901", "0.0972", "0.901" ], [ "0.501", "0.887", "0.8906", "0.887", "0.8906", "0.901", "0.501", "0.901" ] ]
[ "The GAN that Warped: Semantic Attribute Editing with Unpaired Data", "Garoe Dorta 1,2 Sara Vicente2 Neill D.F. Campbell 1", "Ivor J. A. Simpson 2.3", "1University of Bath", "2Anthropics Technology Ltd.", "3Universityof Sussex", "(g.dorta.perez,n.campbell)@bath.ac.uk", "sara@anthropics.com", "i.simpson@sussex.ac.uk", "]", "(a) Input image (previously unseen)", "(b) User requested edit: “beak larger than head\"(c) User requested edit: “beak smaller than head'", "Figure 1: Semantic image editing at high resolution (2480x 1850). The user requests a change in a semantic attribute and the input image", "(a) is automatically transformed by our method into, e.g.,an image with“beak larger than head\"(b)or“beak smaller than head\"(c).The", "content of the original input, including fine details, is preserved. Our focus is on face editing, as previous work, yet the method is general", "8", "enough to be applied to other datasets. Please see the supplemental material for videos of these and other edits. (Zoom in for details)'", "Abstract", "1.Introduction", "Deep neural networks have recently been used to edit im-", "Face editing has a long history in computer vision [23,", "", "ages with great success, in particular for faces. However,", "26, 33] and has been made increasingly relevant with the", "they are often limited to only being able to work at a re-", "rise in the number of pictures people take of themselves or", "stricted range of resolutions. Many methods are so fexible", "others. The type of edits that are performed usually manip", "", "that face edits can often result in an unwanted loss of iden-", "ulate a semantic attribute, such as removing a moustache or", "8", "tity:This work proposes to learn how to perform semantic", "changing the subject's expression from a frown to a smile.", "imageeditsthroughtheapplicationofsmoothwarpfields.", "In the last few years, deep learning approaches have be-", "come the standard in most editing tasks, including inpaint-", ".A", "Previous approaches that attempted to use warping for se-", "II", "mantic edits required paired data, i.e. example images of", "ing [27] and super-resolution [20]. Particularly, image-to-", "A", "the same subject with different semantic attributes. In con-", "image translation methods [16] have been proposed, which", "trast,weemployrecentadvancesinGenerativeAdversarial", "learnhowtotransformanimagefromasourcedomaintoa", "Networks that allow our model to be trained with unpaired", "target domain. Cycle-GAN [42] allows learning such trans-", "data. We demonstrate face editing at very high resolutions", "lations from unpaired data, i.e. for each source image in the", "(4kimages)withasingleforwardpassofadeepnetworkat", "dataset a corresponding target image is not required.", "alowerresolution.Wealsoshowthat our editsaresubstan-", "We are interested in photo-realistic image editing, which", "tially better at preserving the subject's identity. The robust-", "is a subset of image-to-image translation.We also focus", "ness of our approach is demonstrated by showing plausible", "on methods that provide a simple interface for users to edit", "image editing results on the Cub200 [35] birds dataset. To", "images,i.e.asinglecontrol per semantic attribute[6,29],", "our knowledge this has not been previously accomplished,", "as this makes editing easier for novice users.", "due the challenging nature of the dataset.", "A disadvantage of current methods for editing [16, 6, 38]", "is that they focus on binary attribute changes. In order to al-", "low partial edits an extensive collection of soft attribute data", "is usually required, which is labor intensive. Also, at infer-", "'Image courtesy of Flickr user Christoph Landers.", "ence each intermediate value requires a forward pass of the" ]
{ "arxiv_id": "1811.12784", "language": "en", "page_idx": 0 }
1811.12784-en-1
1811.12784-en-1.jpg
network, creating increased computational expense [29]. Most deep learning methods for image editing predict the pixel values of the resulting image directly [6,7,28, 29]. As a consequence these methods are only effective on images that have a similar resolution to the training data. Recently, some interesting approaches that do allow edits at higher resolutions have been proposed. They proceed by estimating the edits at a fixed resolution and then applying them to images at a higher resolution. The types of possible edits are restricted to either warping [38] or local linear color transforms [ 11] . However, these approaches are limited by requiring paired data, $i.e.$ for each source image in the dataset, they need the corresponding edited image. Inspired by these high resolution methods, we introduce an approach to learn smooth warp fields for semantic image editing without the requirement of paired training data samples. This is achieved by exploiting the recent advances in learning edits from unpaired data with cycleconsistency checks, which derive from the Cycle-GAN [42] method. Our proposed model uses a similar framework to StarGAN[6] (an extension of Cycle-GAN) to predict warp fields that transform the image to achieve the requested edits. As the predicted warp fields are smooth, they can be trivially upsampled and applied at high resolutions A potential criticism is that there are clear limitations to the types of edits possible through warping. We argue that, for the changes that can be described in this way, there are several distinct benefits. The advantages of using warping with respect to pixel based models can be summarized as: i. Smooth warp felds can be upsampled and applied to higher resolution images with a minimal loss of fidelity. This is opposed to upsampling images, which commonly results in unrealistic high frequency details. We show plausible edits using warp fields upscaled by up to 30× the resolution they were estimated at. ii. Geometric transformations are a subset of image trans- formation models. These models make it easier to add priors to regularize against unrealistic edits. We demonstrate that editing by warping leads to a model that is better at preserving a subject's identity. iii. Warp fields are more interpretable than pixelwise dif- ferences. We illustrate this with maps showing the de- gree of local stretching or squashing. iv. Warp felds are much more suited to allow partial edits than pixel based approaches. We demonstrate the simplest implementation of this by scaling the warp field to show interpolation and extrapolation, and qualitatively show edits that are plausible. An additional contribution of this work is to improve the specificity of editing attributes in StarGAN based models. We have observed that when these models are trained with several binary labels, they can transform more than one at- <table> <tbody> <tr> <th>$\mathbf{Method}$</th> <th>$\textbf{Unpaired data}$</th> <th>High resolution</th> <th>$\mathbf{Forward}$ pass</th> </tr> <tr> <td>StarGAN [ 6] </td> <td>$√$</td> <td> </td> <td>$√$</td> </tr> <tr> <td>FaceShop [28]</td> <td>$√$</td> <td> </td> <td>$√$</td> </tr> <tr> <td>$\mathbf{WG-GAN}[10]$</td> <td> </td> <td> </td> <td>$√$</td> </tr> <tr> <td>FlowVAE [ 38] </td> <td> </td> <td>$√$</td> <td>$√$</td> </tr> <tr> <td>$CWF[$ [9] 1 1 1</td> <td> </td> <td>、</td> <td>$√$</td> </tr> <tr> <td>DBL$\left [ 11\right ]$</td> <td> </td> <td>$√$</td> <td>$√$</td> </tr> <tr> <td>iGAN$\left [ 41\right ]$</td> <td>$√$</td> <td>八</td> <td> </td> </tr> <tr> <td>DFI$\left [ 34\right ]$</td> <td>$v$</td> <td>、</td> <td> </td> </tr> <tr> <td>RelGAN[ 36] </td> <td>$√$</td> <td> </td> <td>$√$</td> </tr> <tr> <td>SPM+ R [37]</td> <td>$√$</td> <td>八</td> <td>$√$</td> </tr> <tr> <td>$0urs$</td> <td>$√$</td> <td>$√$</td> <td>$√$</td> </tr> </tbody> </table> Table 1: Compared to previous work on image-to-image translation, our model is the only one that is able to edit high-resolution images in a single forward pass of the network, without paired training data. Partial fulfillment of the criterion is denoted by $\sim.$ tribute of the image, even if only a single attribute should be edited. This is caused by the model having no indication of the attributes that should be edited, only of the final expected labels. For example, when enlarging the nose of a subject that has a slight smile, the model will not only make the nose bigger, but also make the smile more pronounced. In order to overcome this limitation, we propose to transform the labels to inform the model of which attributes should be edited, and which should remain fixed. This produces only the expected changes, and it does not require any extra label annotation. Moreover, it removes the need to rely on a label classifier during inference. We demonstrate the advantages of our contributions by providing quantitative and qualitative results by manipulating facial expressions and semantic attributes. ## $2. \textbf{ Previous work}$ This work builds upon recent work in image-to-image translation. These models can be used to modify the semantic attributes of an image. Our novelty is in describing these edits as smooth deformation felds, rather than producing an entirely new image. Smooth warp fields can be upsampled and applied to higher resolution images with a minimal loss of fidelity. Some previous works that allow high resolution editing rely upon paired data examples or require costly optimization, rather than a single forward pass of a network; neither of which is required for the proposed approach. An overview of the characteristics of our work compared to previous methods is shown in Table 1. # 2.1. Image-to-Image translation The Pix2Pix[16] model learns to transform an image from a source domain to a target domain using an adversarial loss [12]. This approach requires paired training data; $i.e.$ each image in the source domain must have a corresponding image in the target domain. Given this restriction, 2
[ [ "0.509", "0.0884", "0.556", "0.0884", "0.556", "0.09973", "0.509", "0.09973" ], [ "0.597", "0.0884", "0.6787", "0.0884", "0.6787", "0.09973", "0.597", "0.09973" ], [ "0.6914", "0.089", "0.7793", "0.089", "0.7793", "0.09973", "0.6914", "0.09973" ], [ "0.79", "0.0871", "0.869", "0.089", "0.869", "0.101", "0.79", "0.0985" ], [ "0.5073", "0.1029", "0.5728", "0.1029", "0.5728", "0.11743", "0.5073", "0.11743" ], [ "0.0801", "0.09216", "0.4478", "0.09216", "0.4478", "0.1061", "0.0801", "0.1061" ], [ "0.6274", "0.1042", "0.6436", "0.1042", "0.6436", "0.1187", "0.6274", "0.1187" ], [ "0.8228", "0.1048", "0.835", "0.1048", "0.835", "0.11615", "0.8228", "0.11615" ], [ "0.626", "0.1193", "0.6436", "0.1193", "0.6436", "0.1332", "0.626", "0.1332" ], [ "0.0972", "0.1067", "0.4697", "0.108", "0.4697", "0.1225", "0.0972", "0.1218" ], [ "0.5063", "0.1206", "0.5786", "0.1206", "0.5786", "0.132", "0.5063", "0.132" ], [ "0.8228", "0.1206", "0.835", "0.1206", "0.835", "0.1332", "0.8228", "0.1332" ], [ "0.5034", "0.132", "0.5825", "0.1338", "0.5825", "0.1483", "0.5034", "0.1465" ], [ "0.0801", "0.1237", "0.4673", "0.1237", "0.4673", "0.137", "0.0801", "0.137" ], [ "0.0784", "0.137", "0.4697", "0.1383", "0.4697", "0.1528", "0.0784", "0.1515" ], [ "0.8228", "0.1364", "0.835", "0.1364", "0.835", "0.1477", "0.8228", "0.1477" ], [ "0.5073", "0.1509", "0.5786", "0.1509", "0.5786", "0.1622", "0.5073", "0.1622" ], [ "0.726", "0.1515", "0.74", "0.1515", "0.74", "0.1635", "0.726", "0.1635" ], [ "0.8228", "0.1515", "0.835", "0.1515", "0.835", "0.1635", "0.8228", "0.1635" ], [ "0.5034", "0.1654", "0.556", "0.1654", "0.556", "0.1799", "0.5034", "0.1799" ], [ "0.0801", "0.154", "0.452", "0.154", "0.452", "0.1674", "0.0801", "0.1674" ], [ "0.7256", "0.1654", "0.7427", "0.1654", "0.7427", "0.1812", "0.7256", "0.1812" ], [ "0.8228", "0.1666", "0.835", "0.1666", "0.835", "0.1787", "0.8228", "0.1787" ], [ "0.5034", "0.1799", "0.5605", "0.1799", "0.5605", "0.1945", "0.5034", "0.1945" ], [ "0.0989", "0.1692", "0.4656", "0.1692", "0.4656", "0.1831", "0.0989", "0.1831" ], [ "0.7256", "0.1812", "0.7417", "0.1812", "0.7417", "0.1957", "0.7256", "0.1957" ], [ "0.8228", "0.1818", "0.835", "0.1818", "0.835", "0.1925", "0.8228", "0.1925" ], [ "0.6313", "0.1945", "0.6465", "0.2008", "0.638", "0.2134", "0.6235", "0.207" ], [ "0.0801", "0.1843", "0.468", "0.1843", "0.468", "0.1976", "0.0801", "0.1976" ], [ "0.0784", "0.1989", "0.468", "0.1995", "0.468", "0.2134", "0.0784", "0.2122" ], [ "0.5107", "0.1976", "0.564", "0.1976", "0.564", "0.209", "0.5107", "0.209" ], [ "0.721", "0.2026", "0.7344", "0.1925", "0.7466", "0.2026", "0.734", "0.2134" ], [ "0.505", "0.2122", "0.556", "0.2122", "0.556", "0.2267", "0.505", "0.2267" ], [ "0.6284", "0.214", "0.642", "0.214", "0.642", "0.226", "0.6284", "0.226" ], [ "0.7236", "0.2134", "0.7427", "0.2134", "0.7427", "0.2267", "0.7236", "0.2267" ], [ "0.626", "0.2279", "0.6436", "0.2279", "0.6436", "0.2424", "0.626", "0.2424" ], [ "0.0801", "0.2153", "0.4714", "0.2153", "0.4714", "0.2291", "0.0801", "0.2291" ], [ "0.5063", "0.2291", "0.576", "0.2291", "0.576", "0.2405", "0.5063", "0.2405" ], [ "0.8203", "0.2279", "0.8364", "0.2279", "0.8364", "0.2424", "0.8203", "0.2424" ], [ "0.634", "0.2405", "0.6465", "0.25", "0.634", "0.2588", "0.6216", "0.25" ], [ "0.0801", "0.2299", "0.468", "0.2299", "0.468", "0.2437", "0.0801", "0.2437" ], [ "0.0784", "0.2437", "0.4697", "0.2443", "0.4697", "0.2588", "0.0784", "0.2583" ], [ "0.5034", "0.2412", "0.574", "0.2437", "0.574", "0.2583", "0.5034", "0.2556" ], [ "0.728", "0.2456", "0.74", "0.2456", "0.74", "0.2556", "0.728", "0.2556" ], [ "0.8228", "0.2456", "0.835", "0.2456", "0.835", "0.2556", "0.8228", "0.2556" ], [ "0.0801", "0.26", "0.468", "0.26", "0.468", "0.2734", "0.0801", "0.2734" ], [ "0.5073", "0.2583", "0.54", "0.26", "0.539", "0.2727", "0.5063", "0.2708" ], [ "0.6284", "0.26", "0.642", "0.26", "0.642", "0.2715", "0.6284", "0.2715" ], [ "0.726", "0.26", "0.74", "0.26", "0.74", "0.2715", "0.726", "0.2715" ], [ "0.8228", "0.26", "0.835", "0.26", "0.835", "0.2715", "0.8228", "0.2715" ], [ "0.0784", "0.2734", "0.452", "0.2747", "0.452", "0.289", "0.0784", "0.2886" ], [ "0.501", "0.2842", "0.888", "0.2854", "0.888", "0.2998", "0.501", "0.2986" ], [ "0.0972", "0.2903", "0.468", "0.2903", "0.468", "0.3037", "0.0972", "0.3037" ], [ "0.501", "0.2986", "0.8906", "0.2986", "0.8906", "0.3125", "0.501", "0.3125" ], [ "0.0801", "0.3062", "0.468", "0.3062", "0.468", "0.3193", "0.0801", "0.3193" ], [ "0.501", "0.3132", "0.8906", "0.3132", "0.8906", "0.327", "0.501", "0.327" ], [ "0.0801", "0.3208", "0.4697", "0.3208", "0.4697", "0.334", "0.0801", "0.334" ], [ "0.5024", "0.3276", "0.8823", "0.3276", "0.8823", "0.3416", "0.5024", "0.3416" ], [ "0.0809", "0.3372", "0.468", "0.3372", "0.468", "0.348", "0.0809", "0.348" ], [ "0.0801", "0.351", "0.4697", "0.351", "0.4697", "0.3643", "0.0801", "0.3643" ], [ "0.5024", "0.351", "0.892", "0.351", "0.892", "0.3643", "0.5024", "0.3643" ], [ "0.0809", "0.3674", "0.4673", "0.3674", "0.4673", "0.3774", "0.0809", "0.3774" ], [ "0.5034", "0.3674", "0.8896", "0.3674", "0.8896", "0.3774", "0.5034", "0.3774" ], [ "0.0801", "0.3806", "0.4697", "0.3806", "0.4697", "0.3945", "0.0801", "0.3945" ], [ "0.5024", "0.3806", "0.892", "0.3806", "0.892", "0.3945", "0.5024", "0.3945" ], [ "0.0801", "0.3965", "0.468", "0.3965", "0.468", "0.4104", "0.0801", "0.4104" ], [ "0.5024", "0.3958", "0.892", "0.3958", "0.892", "0.4092", "0.5024", "0.4092" ], [ "0.0801", "0.411", "0.468", "0.411", "0.468", "0.4248", "0.0801", "0.4248" ], [ "0.5024", "0.411", "0.8906", "0.411", "0.8906", "0.4248", "0.5024", "0.4248" ], [ "0.0801", "0.4268", "0.4697", "0.4268", "0.4697", "0.44", "0.0801", "0.44" ], [ "0.501", "0.4248", "0.8906", "0.4255", "0.8906", "0.44", "0.501", "0.4395" ], [ "0.0809", "0.443", "0.4126", "0.443", "0.4126", "0.4539", "0.0809", "0.4539" ], [ "0.5024", "0.4414", "0.892", "0.4414", "0.892", "0.455", "0.5024", "0.455" ], [ "0.10046", "0.457", "0.4697", "0.457", "0.4697", "0.4702", "0.10046", "0.4702" ], [ "0.5034", "0.4583", "0.8896", "0.4583", "0.8896", "0.4685", "0.5034", "0.4685" ], [ "0.0801", "0.473", "0.468", "0.473", "0.468", "0.486", "0.0801", "0.486" ], [ "0.5024", "0.4717", "0.8906", "0.4717", "0.8906", "0.4849", "0.5024", "0.4849" ], [ "0.0801", "0.4873", "0.4697", "0.4873", "0.4697", "0.5005", "0.0801", "0.5005" ], [ "0.5034", "0.4873", "0.892", "0.4873", "0.892", "0.5005", "0.5034", "0.5005" ], [ "0.0801", "0.5024", "0.468", "0.5024", "0.468", "0.5166", "0.0801", "0.5166" ], [ "0.5024", "0.502", "0.8936", "0.502", "0.8936", "0.515", "0.5024", "0.515" ], [ "0.0801", "0.5176", "0.46", "0.5176", "0.46", "0.531", "0.0801", "0.531" ], [ "0.5024", "0.518", "0.846", "0.518", "0.846", "0.529", "0.5024", "0.529" ], [ "0.0948", "0.535", "0.4697", "0.535", "0.4697", "0.549", "0.0948", "0.549" ], [ "0.5215", "0.532", "0.8906", "0.532", "0.8906", "0.5454", "0.5215", "0.5454" ], [ "0.11273", "0.55", "0.468", "0.55", "0.468", "0.563", "0.11273", "0.563" ], [ "0.5024", "0.547", "0.892", "0.547", "0.892", "0.56", "0.5024", "0.56" ], [ "0.11273", "0.565", "0.468", "0.565", "0.468", "0.579", "0.11273", "0.579" ], [ "0.5024", "0.5625", "0.8057", "0.5625", "0.8057", "0.5757", "0.5024", "0.5757" ], [ "0.11273", "0.58", "0.468", "0.58", "0.468", "0.5933", "0.11273", "0.5933" ], [ "0.5034", "0.5884", "0.6445", "0.5884", "0.6445", "0.603", "0.5034", "0.603" ], [ "0.11273", "0.5947", "0.468", "0.5947", "0.468", "0.608", "0.11273", "0.608" ], [ "0.11273", "0.61", "0.4272", "0.61", "0.4272", "0.6235", "0.11273", "0.6235" ], [ "0.5195", "0.6113", "0.892", "0.6123", "0.892", "0.627", "0.5195", "0.6255" ], [ "0.0907", "0.63", "0.4673", "0.63", "0.4673", "0.643", "0.0907", "0.643" ], [ "0.5034", "0.63", "0.8906", "0.63", "0.8906", "0.64", "0.5034", "0.64" ], [ "0.11273", "0.6465", "0.4697", "0.6465", "0.4697", "0.66", "0.11273", "0.66" ], [ "0.5024", "0.643", "0.892", "0.643", "0.892", "0.657", "0.5024", "0.657" ], [ "0.1111", "0.661", "0.4697", "0.66", "0.4697", "0.675", "0.1111", "0.6753" ], [ "0.5024", "0.659", "0.892", "0.659", "0.892", "0.6724", "0.5024", "0.6724" ], [ "0.1111", "0.6753", "0.4673", "0.6753", "0.4673", "0.6895", "0.1111", "0.6895" ], [ "0.5024", "0.674", "0.892", "0.674", "0.892", "0.6875", "0.5024", "0.6875" ], [ "0.1111", "0.6924", "0.4126", "0.6924", "0.4126", "0.7056", "0.1111", "0.7056" ], [ "0.5024", "0.6895", "0.892", "0.6895", "0.892", "0.7026", "0.5024", "0.7026" ], [ "0.5024", "0.704", "0.892", "0.704", "0.892", "0.7173", "0.5024", "0.7173" ], [ "0.0866", "0.712", "0.468", "0.712", "0.468", "0.726", "0.0866", "0.726" ], [ "0.5034", "0.72", "0.8896", "0.72", "0.8896", "0.731", "0.5034", "0.731" ], [ "0.11273", "0.728", "0.468", "0.728", "0.468", "0.741", "0.11273", "0.741" ], [ "0.5024", "0.7344", "0.892", "0.7344", "0.892", "0.7476", "0.5024", "0.7476" ], [ "0.11273", "0.7437", "0.3555", "0.7437", "0.3555", "0.757", "0.11273", "0.757" ], [ "0.5024", "0.75", "0.892", "0.75", "0.892", "0.763", "0.5024", "0.763" ], [ "0.08826", "0.7646", "0.468", "0.7646", "0.468", "0.778", "0.08826", "0.778" ], [ "0.5024", "0.7646", "0.892", "0.7646", "0.892", "0.778", "0.5024", "0.778" ], [ "0.1111", "0.78", "0.468", "0.78", "0.468", "0.7935", "0.1111", "0.7935" ], [ "0.5024", "0.779", "0.7344", "0.779", "0.7344", "0.7925", "0.5024", "0.7925" ], [ "0.11273", "0.7944", "0.468", "0.7944", "0.468", "0.808", "0.11273", "0.808" ], [ "0.5024", "0.802", "0.7485", "0.803", "0.7485", "0.8174", "0.5024", "0.8164" ], [ "0.1111", "0.81", "0.4673", "0.81", "0.4673", "0.8237", "0.1111", "0.8237" ], [ "0.1111", "0.8247", "0.343", "0.8247", "0.343", "0.8384", "0.1111", "0.8384" ], [ "0.5215", "0.8247", "0.892", "0.8257", "0.892", "0.8403", "0.5215", "0.839" ], [ "0.10046", "0.8413", "0.468", "0.8413", "0.468", "0.855", "0.10046", "0.855" ], [ "0.5024", "0.8413", "0.892", "0.8413", "0.892", "0.855", "0.5024", "0.855" ], [ "0.0801", "0.857", "0.468", "0.857", "0.468", "0.8706", "0.0801", "0.8706" ], [ "0.5024", "0.857", "0.892", "0.857", "0.892", "0.8706", "0.5024", "0.8706" ], [ "0.0809", "0.872", "0.4697", "0.872", "0.4697", "0.8853", "0.0809", "0.8853" ], [ "0.5024", "0.872", "0.892", "0.872", "0.892", "0.886", "0.5024", "0.886" ], [ "0.0801", "0.887", "0.468", "0.887", "0.468", "0.901", "0.0801", "0.901" ], [ "0.5024", "0.887", "0.892", "0.887", "0.892", "0.901", "0.5024", "0.901" ], [ "0.4805", "0.924", "0.4927", "0.924", "0.4927", "0.9375", "0.4805", "0.9375" ] ]
[ "Method", "Unpaired data", "Highresolution", "Forwardpass", "StarGAN [6]", "network, creating increased computational expense [29]", "V", "V", "", "Most deep learning methods for image editing predict", "FaceShop [28]", "V", "WG-GAN [10]", "the pixel values of the resulting image directly [6, 7, 28,", "29]. As a consequence these methods are only effective on", "V", "FlowVAE [38]", "V", "V", "CWF [9]", "images that have a similar resolution to the training data.", "~", "V", "DBL [11]", "Recently, some interesting approaches that do allow ed-", "V", "V", "1", "its at higher resolutions have been proposed. They proceed", "by estimating the edits at a fixed resolution and then ap-", "iGAN [41]", "2", "DF [34]", "V", "~", "", "plying them to images at a higher resolution. The types of", "RelGAN [36]", "V", "", "possible edits are restricted to either warping [38] or local", "linear color transforms [11]. However, these approaches are", "SPM+R [37]", "~", "V", "limited by requiring paired data, i.e. for each source image", "Ours", "", "V", "V", "in the dataset, they need the corresponding edited image.", "Table I: Compared to previous work on image-to-image transla.", "Inspired by these high resolution methods, we intro-", "tion, our model is the only one that is able to edit high-resolution", "duce an approach to learn smooth warp fields for seman-", "images in a single forward pass of the network, without paired", "tic image editing without the requirement of paired train-", "training data. Partial fulfillment of the criterion is denoted by ~.", "ing data samples.This is achievedbyexploiting therecent", "advances in learning edits from unpaired data with cycle-", "tribute of the image, even if only a single attribute should", "consistencychecks.whichderivefromtheCycle-GAN[42]", "be edited.This is caused by the model having no indica-", "method. Our proposed model uses a similar framework to", "tion of the attributes that should be edited, only of the final", "StarGAN [6] (an extension of Cycle-GAN) to predict warp", "expected labels. For example, when enlarging the nose of", "fields that transform the image to achieve the requested ed-", "a subject that has a slight smile, the model will not only", "its. As the predicted warp fields are smooth, they can be", "make the nose bigger, but also make the smile more pro-", "triviallyupsampledand appliedathighresolutions", "nounced. In order to overcome this limitation, we propose", "A potential criticism is that there are clear limitations to", "totransformthelabels toinform the model of which at-", "the types of edits possible through warping. We argue that,", "tributes should be edited, and which should remain fixed.", "for the changes that can be described in this way, there are", "This produces only the expected changes, and it does not", "several distinct benefits. The advantages of using warping", "require any extra label annotation.Moreover,it removes", "with respect to pixel based models can be summarized as:", "theneed torely onalabel classifierduring inference", "i. Smooth warp fields can be upsampled and applied to", "We demonstrate the advantages of our contributions by", "higher resolution images with a minimal loss of fi-", "providing quantitative and qualitative results by manipulat-", "delity. This is opposed to upsampling images, which", "ing facial expressions and semantic attributes.", "commonly results in unrealistic high frequency details.", "2. Previous work", "We show plausible edits using warp fields upscaled by", "up to 30x the resolution they were estimated at.", "This work builds upon recent work in image-to-image", "ii. Geometric transformations are a subset of image trans-", "translation.Thesemodels canbeusedtomodifythe seman-", "formation models. These models make it easier to", "tic attributes of an image. Our novelty is in describing these", "add priors to regularize against unrealistic edits. We", "edits as smooth deformation fields, rather than producing an", "demonstrate that editing by warping leads to a model", "entirely new image. Smooth warp fields can be upsampled", "that is better at preserving a subject's identity.", "and applied to higher resolution images with a minimal loss", "of fidelity. Some previous works that allow high resolution", "ii. Warp fields are more interpretable than pixelwise dif-", "editingrelyuponpaired dataexamplesorrequirecostlyop-", "ferences. We illustrate this with maps showing the de-", "timization, rather than a single forward pass of a network;", "gree of local stretching or squashing:", "neither of which is required for the proposed approach. An", "iv. Warp fields are much more suited to allow partial edits", "overview of the characteristics of our work compared to pre-", "than pixel based approaches. We demonstrate the sim-", "vious methods is shown in Table 1.", "plest implementation of this by scaling the warp field", "2.1. Image-to-Image translation", "to show interpolation and extrapolation, and qualita-", "tively show edits that are plausible.", "The Pix2Pix [16] model learns to transform an image", "An additional contribution of this work is to improve the", "from a source domain to a target domain using an adversar-", "specificity of editing attributes in StarGAN based models.", "ial loss [12]. This approach requires paired training data;", "We have observed that when these models are trained with", "i.e. each image in the source domain must have a corre-", "several binary labels, they can transform more than one at-", "sponding image in the target domain. Given this restriction,", "2" ]
{ "arxiv_id": "1811.12784", "language": "en", "page_idx": 1 }
1811.12784-en-2
1811.12784-en-2.jpg
the method is often applied to problems where collecting paired data is easier, such as colorization. Several extensions have been proposed to perform image-to-image translation without requiring paired data. In Cycle-GANs [42], two generators are trained, from the source to the target domain and vice versa, with a cycleconsistency loss on the generation process. However, this does not scale well with an increase in the number of domains, since 2 generators and 2 discriminators are needed for each domain pair. StarGAN [6] addresses this issue by conditioning the generator on a domain vector, and adding a domain classification output layer to the discriminator. These models can find undesired correlations within a domain, which lead to changes in unexpected parts of the image. At least two techniques have been explored in order to encourage localized edits. Editing with residual images [31], and restricting the changes to a region given by a mask [25, 29]. The first is an overcomplicated representation for edits describing shape changes. It has to model the content in the region, subtract it, and add it in a second region. The second complicates the model significantly by adding an unsupervised mask prediction network. Preceding this publication, two relevant extensions to StarGAN have been proposed: RelGAN[36] and SPM+R[37]. RelGAN proposes a binary label transformation approach similar to ours. However, their method is trained using a conditional adversarial loss that takes triplets composed of two images and a vector of changed attributes. In contrast, our approach uses a simpler classification loss, where only modified attributes count. RelGAN also enables partial editing, however it requires a forward pass of the network for each edit strength. In contrast, our approach trivially enables partial editing as a consequence of the edit being performed through warping. Similarly to our work, SPM+R suggests using a warping function to edit images; yet, this is followed by inpainting, which is not resolution agnostic. They do not demonstrate their approach for editing high resolution images (>512×512), or on a more complex dataset such as Cub200. A further distinction is that instead of using a simple smoothness loss, as we propose, they use a warp field discriminator. Their resulting warp fields appear substantially less smooth and less sparse than the ones obtained by our approach. 2.2. Editing of high resolution images Methods for editing images at high resolution can be divided into two categories: (i) those that use intermediate representations designed to upsample well, and (ii) those that directly predict pixel values at high resolutions. Methods designed for upsampling These approaches are based on predicting constrained intermediate representations that are relatively agnostic to image resolution; $e.g.$ warp fields or local color affine transformations. Warp fields, if sufficiently smooth, can be predicted at a lower resolution, upsampled and applied at high resolution with minimal loss of accuracy. Previous work has applied them to: redirecting eye gaze [9], editing emotional expressions [38] and synthesizing objects in novel views [40]. However, these methods require paired training data. Spatial Transformer GANs[21] predict a global affine deformation for image compositing. Although the deformation can be applied at arbitrary resolutions, face editing by compositing is limiting, as it requires an infeasibly large dataset of suitable face parts to use as foreground images. Local affine color transformations [5, 11] have been predicted from low resolution images and applied at the original resolution. However, these methods require paired data and have limited capacity for making semantic changes. Blendshapes have been used as an intermediate representation to edit expressions in the context of video reenactment[32,24]. Similar to our approach, the blendshape weights are resolution independent. However, several input video frames are required for the blendshape face model. Rather than predict intermediate representations, iGAN[41] trains a low-resolution GAN and then fit a dense warp feld and local affine color transformation to a pair of input-output images. The GAN generator is unaware of these restricted transformations, so it may learn edits that are not representable by such transformations. Direct prediction at high resolution Several techniques have been proposed to scale deep image synthesis methods to larger resolutions. These include: synthesizing images in a pyramid of increasing resolutions [8], employing fully convolutional networks trained on patches [20], and directly in full resolution [3, 17]. These methods have been successfully applied for image enhancement[15] and face editing [28, 10]. A limitation for direct or pyramid based approaches is that they do not scale well with resolution, while training on patches assumes that global image information is not needed for the edit. A method that modifes an image by following the gradient directions of a pretrained classification network, until it is classified as having the target attributes was proposed in [34]. However, this approach fails when the input resolution differs significantly from the training data. In WG-GAN [10] the input image is warped based on a target image and two GAN generators are used thereafter to synthesize new content. Contrary to our method, WGGAN requires paired data during training, cannot be applied at arbitrary resolutions, does not provide semantic controls and does not support partial edits. ## $3. \textbf{ Background}$ We start by reviewing GAN [12], Cycle-GAN [42] and StarGAN[6], as the latter is the basis for our model. 3
[ [ "0.0801", "0.09155", "0.468", "0.09155", "0.468", "0.1061", "0.0801", "0.1061" ], [ "0.5215", "0.0903", "0.892", "0.09155", "0.892", "0.1061", "0.5215", "0.1048" ], [ "0.0784", "0.108", "0.3555", "0.1061", "0.3555", "0.1193", "0.0784", "0.1218" ], [ "0.5024", "0.108", "0.892", "0.108", "0.892", "0.1218", "0.5024", "0.1218" ], [ "0.09644", "0.1225", "0.468", "0.1218", "0.468", "0.1364", "0.09644", "0.137" ], [ "0.5034", "0.1225", "0.892", "0.1225", "0.892", "0.1364", "0.5034", "0.1364" ], [ "0.0801", "0.1383", "0.4697", "0.1383", "0.4697", "0.1515", "0.0801", "0.1515" ], [ "0.5024", "0.1383", "0.892", "0.1383", "0.892", "0.1515", "0.5024", "0.1515" ], [ "0.0801", "0.1528", "0.468", "0.1528", "0.468", "0.1666", "0.0801", "0.1666" ], [ "0.5034", "0.1528", "0.8906", "0.1528", "0.8906", "0.1666", "0.5034", "0.1666" ], [ "0.0801", "0.1686", "0.468", "0.1686", "0.468", "0.1818", "0.0801", "0.1818" ], [ "0.5024", "0.1666", "0.846", "0.1666", "0.846", "0.1799", "0.5024", "0.1799" ], [ "0.0809", "0.1849", "0.468", "0.1849", "0.468", "0.1957", "0.0809", "0.1957" ], [ "0.5215", "0.1843", "0.892", "0.1843", "0.892", "0.1976", "0.5215", "0.1976" ], [ "0.0809", "0.1995", "0.4673", "0.1995", "0.4673", "0.2102", "0.0809", "0.2102" ], [ "0.505", "0.2008", "0.8896", "0.2008", "0.8896", "0.2108", "0.505", "0.2108" ], [ "0.0801", "0.2134", "0.4697", "0.2134", "0.4697", "0.2267", "0.0801", "0.2267" ], [ "0.501", "0.2134", "0.8906", "0.214", "0.8906", "0.2291", "0.501", "0.2279" ], [ "0.0801", "0.2291", "0.468", "0.2291", "0.468", "0.2424", "0.0801", "0.2424" ], [ "0.5024", "0.2299", "0.892", "0.2299", "0.892", "0.2437", "0.5024", "0.2437" ], [ "0.0801", "0.2437", "0.4697", "0.2437", "0.4697", "0.2568", "0.0801", "0.2568" ], [ "0.5024", "0.2443", "0.88", "0.2443", "0.88", "0.2583", "0.5024", "0.2583" ], [ "0.0809", "0.26", "0.4478", "0.26", "0.4478", "0.2708", "0.0809", "0.2708" ], [ "0.5215", "0.26", "0.8906", "0.26", "0.8906", "0.2734", "0.5215", "0.2734" ], [ "0.10046", "0.276", "0.468", "0.276", "0.468", "0.286", "0.10046", "0.286" ], [ "0.501", "0.2734", "0.8906", "0.2747", "0.8906", "0.289", "0.501", "0.2886" ], [ "0.0801", "0.289", "0.4697", "0.289", "0.4697", "0.303", "0.0801", "0.303" ], [ "0.5034", "0.2903", "0.892", "0.2903", "0.892", "0.3037", "0.5034", "0.3037" ], [ "0.0801", "0.3037", "0.4697", "0.3037", "0.4697", "0.3176", "0.0801", "0.3176" ], [ "0.5024", "0.3062", "0.869", "0.3062", "0.869", "0.3193", "0.5024", "0.3193" ], [ "0.0801", "0.318", "0.4673", "0.318", "0.4673", "0.332", "0.0801", "0.332" ], [ "0.5215", "0.3213", "0.892", "0.3213", "0.892", "0.3352", "0.5215", "0.3352" ], [ "0.0801", "0.3352", "0.468", "0.3352", "0.468", "0.3484", "0.0801", "0.3484" ], [ "0.5034", "0.3384", "0.8906", "0.3384", "0.8906", "0.3484", "0.5034", "0.3484" ], [ "0.0801", "0.3499", "0.4673", "0.3499", "0.4673", "0.363", "0.0801", "0.363" ], [ "0.5034", "0.3516", "0.892", "0.3516", "0.892", "0.3655", "0.5034", "0.3655" ], [ "0.0801", "0.3643", "0.468", "0.3643", "0.468", "0.3774", "0.0801", "0.3774" ], [ "0.5024", "0.3662", "0.892", "0.3662", "0.892", "0.3801", "0.5024", "0.3801" ], [ "0.0801", "0.3801", "0.4697", "0.3801", "0.4697", "0.3933", "0.0801", "0.3933" ], [ "0.5024", "0.3818", "0.875", "0.3818", "0.875", "0.3958", "0.5024", "0.3958" ], [ "0.0801", "0.3958", "0.468", "0.3958", "0.468", "0.4092", "0.0801", "0.4092" ], [ "0.5215", "0.3977", "0.892", "0.3977", "0.892", "0.411", "0.5215", "0.411" ], [ "0.0801", "0.4104", "0.4043", "0.4104", "0.4043", "0.4236", "0.0801", "0.4236" ], [ "0.505", "0.414", "0.8906", "0.414", "0.8906", "0.4248", "0.505", "0.4248" ], [ "0.0989", "0.4248", "0.468", "0.4248", "0.468", "0.4382", "0.0989", "0.4382" ], [ "0.5034", "0.428", "0.8906", "0.428", "0.8906", "0.4414", "0.5034", "0.4414" ], [ "0.0801", "0.44", "0.4697", "0.44", "0.4697", "0.455", "0.0801", "0.455" ], [ "0.501", "0.4426", "0.892", "0.4414", "0.892", "0.4558", "0.501", "0.457" ], [ "0.0801", "0.455", "0.4697", "0.455", "0.4697", "0.4697", "0.0801", "0.4697" ], [ "0.5024", "0.4583", "0.892", "0.4583", "0.892", "0.4717", "0.5024", "0.4717" ], [ "0.0801", "0.4702", "0.4697", "0.4702", "0.4697", "0.4841", "0.0801", "0.4841" ], [ "0.5034", "0.4749", "0.8057", "0.4749", "0.8057", "0.4849", "0.5034", "0.4849" ], [ "0.0809", "0.4873", "0.4673", "0.4873", "0.4673", "0.4976", "0.0809", "0.4976" ], [ "0.5034", "0.4944", "0.892", "0.4944", "0.892", "0.5083", "0.5034", "0.5083" ], [ "0.0809", "0.5024", "0.4656", "0.5024", "0.4656", "0.513", "0.0809", "0.513" ], [ "0.501", "0.509", "0.8906", "0.5103", "0.8906", "0.5244", "0.501", "0.5234" ], [ "0.0801", "0.5166", "0.468", "0.5166", "0.468", "0.53", "0.0801", "0.53" ], [ "0.0784", "0.53", "0.4697", "0.529", "0.4697", "0.5435", "0.0784", "0.5444" ], [ "0.5024", "0.526", "0.892", "0.526", "0.892", "0.539", "0.5024", "0.539" ], [ "0.0801", "0.5454", "0.468", "0.5454", "0.468", "0.5596", "0.0801", "0.5596" ], [ "0.5034", "0.5415", "0.892", "0.5415", "0.892", "0.5547", "0.5034", "0.5547" ], [ "0.0801", "0.561", "0.468", "0.561", "0.468", "0.5747", "0.0801", "0.5747" ], [ "0.5034", "0.556", "0.892", "0.556", "0.892", "0.5693", "0.5034", "0.5693" ], [ "0.0801", "0.577", "0.4697", "0.577", "0.4697", "0.5903", "0.0801", "0.5903" ], [ "0.5024", "0.5713", "0.892", "0.5713", "0.892", "0.5854", "0.5024", "0.5854" ], [ "0.5034", "0.5854", "0.892", "0.5854", "0.892", "0.5986", "0.5034", "0.5986" ], [ "0.0801", "0.5913", "0.468", "0.5913", "0.468", "0.605", "0.0801", "0.605" ], [ "0.0784", "0.605", "0.468", "0.606", "0.468", "0.6206", "0.0784", "0.619" ], [ "0.5024", "0.601", "0.892", "0.601", "0.892", "0.6143", "0.5024", "0.6143" ], [ "0.0801", "0.622", "0.4697", "0.622", "0.4697", "0.6353", "0.0801", "0.6353" ], [ "0.5024", "0.616", "0.892", "0.6157", "0.892", "0.629", "0.5024", "0.63" ], [ "0.5024", "0.631", "0.8906", "0.631", "0.8906", "0.6445", "0.5024", "0.6445" ], [ "0.0801", "0.637", "0.468", "0.637", "0.468", "0.651", "0.0801", "0.651" ], [ "0.0801", "0.6514", "0.4673", "0.6514", "0.4673", "0.6655", "0.0801", "0.6655" ], [ "0.5034", "0.648", "0.7197", "0.648", "0.7197", "0.6577", "0.5034", "0.6577" ], [ "0.5195", "0.66", "0.8906", "0.661", "0.8906", "0.6753", "0.5195", "0.675" ], [ "0.0809", "0.6675", "0.4697", "0.6675", "0.4697", "0.681", "0.0809", "0.681" ], [ "0.0784", "0.6816", "0.468", "0.683", "0.468", "0.6963", "0.0784", "0.696" ], [ "0.5034", "0.677", "0.8906", "0.677", "0.8906", "0.69", "0.5034", "0.69" ], [ "0.0784", "0.696", "0.4697", "0.6963", "0.4697", "0.711", "0.0784", "0.7104" ], [ "0.5024", "0.6924", "0.892", "0.6924", "0.892", "0.7056", "0.5024", "0.7056" ], [ "0.0801", "0.712", "0.468", "0.712", "0.468", "0.726", "0.0801", "0.726" ], [ "0.5024", "0.7085", "0.892", "0.7085", "0.892", "0.7217", "0.5024", "0.7217" ], [ "0.0784", "0.726", "0.3105", "0.7266", "0.3105", "0.741", "0.0784", "0.7407" ], [ "0.5024", "0.7227", "0.812", "0.7227", "0.812", "0.7363", "0.5024", "0.7363" ], [ "0.5215", "0.738", "0.8936", "0.738", "0.8936", "0.7524", "0.5215", "0.7524" ], [ "0.0801", "0.752", "0.367", "0.752", "0.367", "0.7666", "0.0801", "0.7666" ], [ "0.5034", "0.754", "0.892", "0.754", "0.892", "0.7676", "0.5034", "0.7676" ], [ "0.5024", "0.768", "0.8906", "0.768", "0.8906", "0.782", "0.5024", "0.782" ], [ "0.0989", "0.7744", "0.468", "0.7744", "0.468", "0.789", "0.0989", "0.789" ], [ "0.0784", "0.789", "0.468", "0.7905", "0.468", "0.8047", "0.0784", "0.8037" ], [ "0.5024", "0.784", "0.892", "0.784", "0.892", "0.7974", "0.5024", "0.7974" ], [ "0.0801", "0.806", "0.4697", "0.806", "0.4697", "0.8193", "0.0801", "0.8193" ], [ "0.5034", "0.8003", "0.8906", "0.8003", "0.8906", "0.811", "0.5034", "0.811" ], [ "0.501", "0.8145", "0.7256", "0.8145", "0.7256", "0.8276", "0.501", "0.8276" ], [ "0.0801", "0.8213", "0.4224", "0.8213", "0.4224", "0.8354", "0.0801", "0.8354" ], [ "0.0801", "0.8403", "0.4697", "0.8403", "0.4697", "0.855", "0.0801", "0.855" ], [ "0.5034", "0.845", "0.6284", "0.845", "0.6284", "0.86", "0.5034", "0.86" ], [ "0.0801", "0.857", "0.468", "0.857", "0.468", "0.8706", "0.0801", "0.8706" ], [ "0.0784", "0.8687", "0.468", "0.8706", "0.468", "0.888", "0.0784", "0.886" ], [ "0.523", "0.8706", "0.892", "0.8706", "0.892", "0.8853", "0.523", "0.8853" ], [ "0.0801", "0.887", "0.4004", "0.887", "0.4004", "0.901", "0.0801", "0.901" ], [ "0.501", "0.8853", "0.846", "0.886", "0.846", "0.901", "0.501", "0.8994" ], [ "0.4795", "0.924", "0.492", "0.924", "0.492", "0.9375", "0.4795", "0.9375" ] ]
[ "the method is often applied to problems where collecting", "Warp fields, if sufficiently smooth, can be predicted at a", "paired data is easier, such as colorization.", "lower resolution, upsampled and applied at high resolution", "Several extensions have been proposed to perform", "with minimal loss of accuracy.Previous work has applied", "image-to-image translation without requiring paired data.", "them to: redirecting eye gaze [9], editing emotional ex-", "In Cycle-GANs [42], two generators are trained, from the", "pressions [38] and synthesizing objects in novel views [40].", "source to the target domain and vice versa, with a cycle-", "However, these methods require paired training data.", "consistencyloss onthegenerationprocess.However,this", "Spatial Transformer GANs [21] predict a global affine", "does not scale well with an increase in the number of do-", "deformationfor image compositing.Although the defor-", "mains, since 2 generators and 2 discriminators are needed", "mation can be applied at arbitrary resolutions, face editing", "for each domain pair. StarGAN [6] addresses this issue by", "by compositing is limiting, as it requires an infeasibly large", "conditioning the generator on a domain vector, and adding", "dataset of suitable face parts to use as foreground images.", "a domain classificationoutputlayerto thediscriminator.", "Local affine color transformations [5, 11] have been pre-", "These models can find undesired correlations within a", "dicted from low resolution images and applied at the origi-", "domain, which lead to changes in unexpected parts of the", "nal resolution. However, these methods require paired data", "image.At least two techniques have been explored in or-", "and have limited capacity for making semantic changes.", "der to encourage localized edits. Editing with residual im-", "Blendshapes have been used as an intermediate repre-", "ages [31], and restricting the changes to a region given by", "sentation to edit expressions in the context of video reen-", "a mask [25, 29]. The first is an overcomplicated represen-", "actment [32, 24]. Similar to our approach, the blendshape", "tation for edits describing shape changes. It has to model", "weights are resolution independent. However, several input", "the content in the region, subtract it, and add it in a second", "video frames are required for the blendshape face model.", "region. The second complicates the model significantly by", "Rather than predict intermediate representations,", "adding an unsupervised mask prediction network", "iGAN[41]trainsalow-resolutionGANandthenfitadense", "Preceding this publication, two relevant extensions", "warp field and local affine color transformation to a pair", "to StarGAN have been proposed:RelGAN [36] and", "of input-output images. The GAN generator is unaware of", "SPM+R [37]. RelGAN proposes a binary label transfor-", "these restricted transformations, so it may learn edits that", "mation approach similar to ours. However, their method is", "arenotrepresentablebysuchtransformations.", "trained using a conditional adversarial loss thattakes triplets", "Direct prediction at high resolution Several techniques", "composedoftwoimagesandavectorofchangedattributes", "have been proposed to scale deep image synthesis meth-", "In contrast, our approach uses a simpler classification loss,", "where only modified attributes count. RelGAN also enables", "ods to larger resolutions. These include: synthesizing im-", "partial editing, however it requires a forward pass of the", "ages in a pyramid of increasing resolutions [8], employing", "network for each edit strength. In contrast, our approach", "fully convolutional networks trained on patches [20], and", "trivially enables partial editing as a consequence of the edit", "directly in full resolution [3, 17]. These methods have been", "successfully applied for image enhancement [15] and face", "being performed through warping. Similarly to our work,", "SPM+R suggests using a warping function to edit images;", "editing [28, 10]. A limitation for direct or pyramid based", "yet, this is followed by inpainting, which is not resolution", "approaches is that they do not scale well with resolution,", "while training on patches assumes that global image infor-", "agnostic. They do not demonstrate their approach for edit-", "ing high resolution images (>512x512), or on a more com-", "mation is notneeded fortheedit.", "A method that modifies an image by following the gra-", "plex dataset such as Cub200. A further distinction is that", "instead ofusing a simple smoothness loss,as we propose,", "dient directions of a pretrained classification network, until", "they use a warp field discriminator.Their resulting warp", "it is classified as having the target attributes was proposed", "fields appear substantially less smooth and less sparse than", "in [34]. However, this approach fails when the input resolu-", "the ones obtained by our approach.", "tion differs significantly from the training data.", "In WG-GAN [10] the input image is warped based on a", "2.2. Editing of high resolution images", "target image and two GAN generators are used thereafter", "to synthesize new content. Contrary to our method, WG-", "Methods for editing images at high resolution can be di-", "vided into two categories: (i) those that use intermediate", "GAN requires paired data during training, cannot be applied", "representations designed to upsample well, and (i) those", "atarbitraryresolutions,doesnotprovidesemanticcontrols", "and does not support partial edits.", "that directly predict pixel values at high resolutions.", "Methods designed for upsampling These approaches", "3.Background", "are based on predicting constrained intermediate represen-", "tations that are relatively agnostic to image resolution; e.g.", "We start by reviewing GAN [12], Cycle-GAN [42] and", "warp fields or local color affine transformations.", "StarGAN [6], as the latter is the basis for our model.", "3" ]
{ "arxiv_id": "1811.12784", "language": "en", "page_idx": 2 }
1811.12784-en-3
1811.12784-en-3.jpg
<FigureHere> Figure 2: Overview of our model, which consists of a generator, $G$, and a discriminator, $D.$ The generator contains a warping network, $W$, and a warping operator, $T.$ The inputs to $W$ are an RGB image, x, and a transformed label vector, $\hat{\mathbf{c}}.$ The output is a dense warp field, w, which can be used by $T$ to deform the input image and produce the output image, $\bar{\mathbf{x}}.$ A label operator, $B$, converts the transformed labels, $\hat{\mathbf{c}}$, to binary labels, $\bar{\mathbf{c}}.$ The discriminator evaluates both the input image, $\mathbf{x}$, and the generated image, $\bar{\mathbf{x}}$, for realism and the presence of attributes that agree with the labels. In this example, the only change between $\bar{\mathbf{c}}$ and c is the label for the attribute “big nose”. iii. a cycle consistency loss: (4) $$L_c=\mathbb{E}_{(\mathbf{x},\mathbf{c}),\bar{\mathbf{c}}}\left[\|\mathbf{x}-G(G(\mathbf{x},\bar{\mathbf{c}}),\mathbf{c})\|_1\right],$$ iv. and domain classification losses: Generative Adversarial Network (GAN)[12] models consist of two parts, a generator and a discriminator. The generator produces samples that resemble the data distribution samples, and the discriminator classifies data samples as real or fake. The discriminator is trained with the real examples drawn from a training set and the fake examples as the output of the generator. The generator is trained to fool the discriminator into classifying generated samples as real. Formally, GANs are defined by a minimax game objective: (5) $$\begin{array}{rcl}L_{cls}^d&=&\mathbb{E}_{(\mathbf{x},\mathbf{c})}\left[-\log(C(\mathbf{x},\mathbf{c}))\right]\\L_{cls}^g&=&\mathbb{E}_{\mathbf{x},\bar{\mathbf{c}}}\left[-\log(C(G(\mathbf{x},\bar{\mathbf{c}}),\bar{\mathbf{c}}))\right],\end{array}$$ (6) where $C(\mathbf{x},\mathbf{c})$ is a classifier that outputs the probability that $\mathbf{x}$ has the associated domains c, and x is sampled uniformly along a line between a real and fake image. The classifier is trained on the training set (eq. 5) and eq.6 ensures that the translated image matches the target domains. (1) $$\min_{G}\max_{D}\:\mathbb{E}_{\mathbf{x}}\left[\log(D(\mathbf{x}))\right]+\mathbb{E}_{\mathbf{z}}\left[\log(1-D(G(\mathbf{z})))\right],$$ # 4. Methodology Our goal is to learn image transformations that can be applied at arbitrary scales without paired training data. An overview of our system is shown in Figure 2. We employ the StarGAN framework as the basis for our model and use the notation introduced above. As we focus on semantic face editing, we use indistinctly semantic attributes or binary labels to refer to the domains, c and $\bar{\mathbf{c}}.$ Warp parametrization We modify the generator such that the set of transformations is restricted to non-linear warps of the input image: where x is a sample from the dataset empirical distribution $p(\mathbf{x}),\mathbf{z}$ is a random variable drawn from an arbitrary distribution $p(\mathbf{z}),G$ is the generator and $D$ is the discriminator. Given two data domains, $A$ and $B$, Cycle-GAN[42] learns a pair of transformations $G:A\to B$ and $H:B\to$ $A.$ Unlike previous approaches,[16], this does not require paired samples from $\hat{A}$ and $B$, but instead utilizes a cycle consistency loss $(\|\mathbf{x}_a-H(G(\mathbf{x}_a))\|_1$,where $\mathbf{x}_a$ is a sample image from domain $A$) to learn coherent transformations that preserve a reasonable amount of image content. An equivalent cycle loss is used for domain $B.$ Cycle-GAN models are limited in that they require 2 generators and 2 discriminators for each domain pair. Cycle-GAN was generalized by StarGAN [6] to require only a single generator and discriminator to translate between multiple domains. Here, each image x has a set of domains, represented as a binary vector c. We use $(\mathbf{x},\mathbf{c})$ to denote a pair sampled from the annotated data distribution. The generator, $G(\mathbf{x},\bar{\mathbf{c}})$, transforms x to match the target domains indicated by $\bar{\mathbf{c}}\sim p(\mathbf{c})$, where $p(\mathbf{c})$ is the empirical domains distribution. The model is trained with: i. a Wasserstein GAN [2] loss: (7) $$G(\mathbf{x},\bar{\mathbf{c}})=T(\mathbf{x},W(\mathbf{x},\bar{\mathbf{c}})),$$ where $W( \mathbf{x} , \bar{\mathbf{c} } ) = \textbf{w is a function that generates the warp}$ parameters. $T$ is a predefined warping function that applies a warp to an image. $W$ is chosen to be a neural network. We employ a dense warp parametrization, where w contains a displacement vector for each pixel in the input image. At train time,$T$ warps the input according to the generated displacement feld, w, using bilinear interpolation. To improve image quality at inference time we use a bicubic interpolant. (2) $$L_{adv}=\mathbb{E}_{\mathbf{x}}\left[D(\mathbf{x})\right]-\mathbb{E}_{\mathbf{x},\bar{\mathbf{c}}}\left[D(G(\mathbf{x},\bar{\mathbf{c}}))\right],$$ # 4.1. Learning ii. a Wasserstein gradient penalty[13] term: $$L_{gp}=\mathbb{E}_{\dot{\mathbf{x}}}\left[\left(\|\nabla_{\dot{\mathbf{x}}}D(\dot{\mathbf{x}})\|_{2}-1\right)^{2}\right],$$ We use the same adversarial losses (eq.2 and eq.3) and domain classification loss (eq.5) as StarGAN. (3) 4
[ [ "0.1544", "0.09973", "0.1854", "0.0947", "0.1887", "0.1067", "0.1569", "0.11237" ], [ "0.3308", "0.1092", "0.3489", "0.1092", "0.3489", "0.1225", "0.3308", "0.1225" ], [ "0.777", "0.1193", "0.8506", "0.1193", "0.8506", "0.1338", "0.777", "0.1338" ], [ "0.2607", "0.1497", "0.2688", "0.1528", "0.2646", "0.159", "0.2566", "0.1559" ], [ "0.6177", "0.1459", "0.625", "0.1459", "0.625", "0.1509", "0.6177", "0.1509" ], [ "0.3545", "0.1863", "0.367", "0.1863", "0.367", "0.1945", "0.3545", "0.1945" ], [ "0.777", "0.1881", "0.851", "0.1881", "0.851", "0.2026", "0.777", "0.2026" ], [ "0.0809", "0.2291", "0.8896", "0.2291", "0.8896", "0.2424", "0.0809", "0.2424" ], [ "0.0809", "0.2424", "0.8906", "0.2424", "0.8906", "0.2556", "0.0809", "0.2556" ], [ "0.0809", "0.2556", "0.8906", "0.2556", "0.8906", "0.2695", "0.0809", "0.2695" ], [ "0.0801", "0.2708", "0.892", "0.2715", "0.892", "0.2827", "0.0801", "0.2822" ], [ "0.0801", "0.2842", "0.814", "0.2842", "0.814", "0.2974", "0.0801", "0.2974" ], [ "0.0989", "0.307", "0.4697", "0.307", "0.4697", "0.3208", "0.0989", "0.3208" ], [ "0.509", "0.308", "0.697", "0.308", "0.697", "0.3213", "0.509", "0.3213" ], [ "0.0784", "0.3225", "0.4697", "0.3213", "0.4697", "0.336", "0.0784", "0.3372" ], [ "0.584", "0.33", "0.846", "0.33", "0.846", "0.348", "0.584", "0.348" ], [ "0.8677", "0.332", "0.892", "0.332", "0.892", "0.3447", "0.8677", "0.3447" ], [ "0.0801", "0.3384", "0.4697", "0.3384", "0.4697", "0.3516", "0.0801", "0.3516" ], [ "0.0809", "0.3547", "0.468", "0.3547", "0.468", "0.3655", "0.0809", "0.3655" ], [ "0.511", "0.3542", "0.751", "0.3542", "0.751", "0.3674", "0.511", "0.3674" ], [ "0.0809", "0.3694", "0.4656", "0.3694", "0.4656", "0.3801", "0.0809", "0.3801" ], [ "0.58", "0.3757", "0.8105", "0.3757", "0.8105", "0.3933", "0.58", "0.3933" ], [ "0.0801", "0.3818", "0.4673", "0.3818", "0.4673", "0.3958", "0.0801", "0.3958" ], [ "0.8677", "0.3774", "0.8936", "0.3774", "0.8936", "0.3914", "0.8677", "0.3914" ], [ "0.0801", "0.3984", "0.468", "0.3984", "0.468", "0.4124", "0.0801", "0.4124" ], [ "0.58", "0.3958", "0.8945", "0.3958", "0.8945", "0.4136", "0.58", "0.4136" ], [ "0.0809", "0.4136", "0.468", "0.4136", "0.468", "0.428", "0.0809", "0.428" ], [ "0.505", "0.4192", "0.892", "0.4192", "0.892", "0.433", "0.505", "0.433" ], [ "0.0801", "0.4287", "0.4697", "0.4287", "0.4697", "0.4426", "0.0801", "0.4426" ], [ "0.5034", "0.435", "0.8906", "0.435", "0.8906", "0.449", "0.5034", "0.449" ], [ "0.08905", "0.455", "0.468", "0.455", "0.468", "0.4697", "0.08905", "0.4697" ], [ "0.5034", "0.4507", "0.8906", "0.4507", "0.8906", "0.464", "0.5034", "0.464" ], [ "0.5024", "0.4666", "0.892", "0.4666", "0.892", "0.4797", "0.5024", "0.4797" ], [ "0.0801", "0.4817", "0.4697", "0.4817", "0.4697", "0.4956", "0.0801", "0.4956" ], [ "0.5024", "0.481", "0.7974", "0.481", "0.7974", "0.4944", "0.5024", "0.4944" ], [ "0.0784", "0.4968", "0.4697", "0.4956", "0.4697", "0.5103", "0.0784", "0.511" ], [ "0.501", "0.504", "0.634", "0.507", "0.634", "0.5244", "0.501", "0.5215" ], [ "0.0801", "0.512", "0.4631", "0.512", "0.4631", "0.5264", "0.0801", "0.5264" ], [ "0.0989", "0.5264", "0.468", "0.5264", "0.468", "0.5405", "0.0989", "0.5405" ], [ "0.523", "0.5327", "0.892", "0.5327", "0.892", "0.547", "0.523", "0.547" ], [ "0.0801", "0.5425", "0.468", "0.5425", "0.468", "0.556", "0.0801", "0.556" ], [ "0.5034", "0.549", "0.892", "0.549", "0.892", "0.5625", "0.5034", "0.5625" ], [ "0.0809", "0.558", "0.468", "0.558", "0.468", "0.5713", "0.0809", "0.5713" ], [ "0.501", "0.5625", "0.8906", "0.563", "0.8906", "0.5776", "0.501", "0.577" ], [ "0.0784", "0.5713", "0.4697", "0.5728", "0.4697", "0.587", "0.0784", "0.586" ], [ "0.505", "0.58", "0.8906", "0.58", "0.8906", "0.5903", "0.505", "0.5903" ], [ "0.0801", "0.5884", "0.468", "0.5884", "0.468", "0.603", "0.0801", "0.603" ], [ "0.5024", "0.5933", "0.892", "0.5933", "0.892", "0.607", "0.5024", "0.607" ], [ "0.0809", "0.605", "0.468", "0.605", "0.468", "0.6157", "0.0809", "0.6157" ], [ "0.5024", "0.6094", "0.8906", "0.6094", "0.8906", "0.6226", "0.5024", "0.6226" ], [ "0.0801", "0.6187", "0.468", "0.6187", "0.468", "0.632", "0.0801", "0.632" ], [ "0.505", "0.6255", "0.789", "0.6255", "0.789", "0.636", "0.505", "0.636" ], [ "0.0784", "0.634", "0.468", "0.632", "0.468", "0.646", "0.0784", "0.648" ], [ "0.5034", "0.6416", "0.892", "0.6416", "0.892", "0.656", "0.5034", "0.656" ], [ "0.0801", "0.6484", "0.4697", "0.6484", "0.4697", "0.662", "0.0801", "0.662" ], [ "0.0801", "0.6636", "0.3186", "0.6636", "0.3186", "0.677", "0.0801", "0.677" ], [ "0.5034", "0.6577", "0.8936", "0.6577", "0.8936", "0.672", "0.5034", "0.672" ], [ "0.0989", "0.678", "0.468", "0.677", "0.468", "0.6914", "0.0989", "0.6924" ], [ "0.5024", "0.6724", "0.671", "0.6724", "0.671", "0.686", "0.5024", "0.686" ], [ "0.0801", "0.6934", "0.4673", "0.6934", "0.4673", "0.707", "0.0801", "0.707" ], [ "0.607", "0.6943", "0.786", "0.6943", "0.786", "0.709", "0.607", "0.709" ], [ "0.8677", "0.6943", "0.8945", "0.6943", "0.8945", "0.711", "0.8677", "0.711" ], [ "0.0809", "0.7104", "0.4673", "0.7104", "0.4673", "0.72", "0.0809", "0.72" ], [ "0.0801", "0.7236", "0.468", "0.7236", "0.468", "0.7373", "0.0801", "0.7373" ], [ "0.5034", "0.7183", "0.892", "0.7197", "0.892", "0.7344", "0.5034", "0.733" ], [ "0.0801", "0.7393", "0.468", "0.7393", "0.468", "0.7524", "0.0801", "0.7524" ], [ "0.5034", "0.735", "0.892", "0.735", "0.892", "0.7485", "0.5034", "0.7485" ], [ "0.0825", "0.756", "0.4673", "0.756", "0.4673", "0.7666", "0.0825", "0.7666" ], [ "0.5034", "0.75", "0.892", "0.75", "0.892", "0.763", "0.5034", "0.763" ], [ "0.0801", "0.7695", "0.4697", "0.7695", "0.4697", "0.7827", "0.0801", "0.7827" ], [ "0.501", "0.7646", "0.8906", "0.7646", "0.8906", "0.778", "0.501", "0.778" ], [ "0.0801", "0.784", "0.398", "0.784", "0.398", "0.7974", "0.0801", "0.7974" ], [ "0.501", "0.779", "0.892", "0.78", "0.892", "0.7944", "0.501", "0.7935" ], [ "0.09314", "0.8003", "0.3022", "0.8003", "0.3022", "0.8145", "0.09314", "0.8145" ], [ "0.5034", "0.7954", "0.8906", "0.7954", "0.8906", "0.8096", "0.5034", "0.8096" ], [ "0.5034", "0.81", "0.892", "0.81", "0.892", "0.8237", "0.5034", "0.8237" ], [ "0.1528", "0.8247", "0.433", "0.8257", "0.433", "0.8433", "0.1528", "0.8423" ], [ "0.4429", "0.829", "0.468", "0.829", "0.468", "0.8403", "0.4429", "0.8403" ], [ "0.5034", "0.8257", "0.8906", "0.8257", "0.8906", "0.839", "0.5034", "0.839" ], [ "0.4387", "0.832", "0.4453", "0.832", "0.4453", "0.836", "0.4387", "0.836" ], [ "0.0907", "0.854", "0.3823", "0.854", "0.3823", "0.8687", "0.0907", "0.8687" ], [ "0.5034", "0.8486", "0.609", "0.8486", "0.609", "0.863", "0.5034", "0.863" ], [ "0.5215", "0.869", "0.892", "0.8706", "0.892", "0.8853", "0.5215", "0.884" ], [ "0.1765", "0.881", "0.4028", "0.88", "0.4028", "0.901", "0.1765", "0.9014" ], [ "0.4468", "0.8853", "0.4697", "0.8853", "0.4697", "0.898", "0.4468", "0.898" ], [ "0.501", "0.8853", "0.808", "0.886", "0.808", "0.901", "0.501", "0.8994" ], [ "0.482", "0.927", "0.492", "0.927", "0.492", "0.9346", "0.482", "0.9346" ] ]
[ "B", "G", "real/fake", "", "X", "W", "real/fake", "Figure 2: Overview of our model, which consists of a generator, G, and a discriminator, D. The generator contains a warping network, W,", "and a warping operator, T. The inputs to W are an RGB image, X, and a transformed label vector, c. The output is a dense warp field, w,", "which can be used by T to deform the input image and produce the output image, x. A label operator, B, converts the transformed labels,", "c, to binary labels, c. The discriminator evaluates both the input image,x, and the generated image,x, for realism and the presence of", "attributes that agree with the labels. In this example, the only change between c and c is the label for the attribute “big nose\"", "Generative Adversarial Network (GAN) [12] models", "ili. a cycle consistency loss:", "consist of two parts, a generator and a discriminator. The", "Le = E(x,c), [lx - G(G(x,c), c)ll] ,", "(4)", "generator produces samples that resemble the data distribu-", "tionsamples,andthediscriminatorclassifiesdatasamples", "iv. and domain classification losses:", "as real or fake.The discriminator is trained with the real ex-", "Ldls=E(x,c) [-log(C(x,c)]", "amples drawn from a training set and the fake examples as", "(5)", "the output of the generator. The generator is trained to fool", "Lαs= Ex,c[-log(C(G(x,c),c)),(6)", "the discriminator into classifying generated samples as real.", "where C(x,c) is a classifier that outputs the probability that", "Formally, GANs are defined by a minimax game objective:", "x has the associated domains c, and x is sampled uniformly", "minG maxD Ex [log(D(x)] + Ez [log(1 - D(G(z))], (1)", "along a line between a real and fake image. The classifier is", "trained on the training set (eq. 5) and eq. 6 ensures that the", "where x is a sample from the dataset empirical distribution", "translated image matches the target domains.", "p(x), z is a random variable drawn from an arbitrary distri-", "4. Methodology", "bution p(z), G is the generator and D is the discriminator.", "Given two data domains, A and B, Cycle-GAN [42]", "Our goal is to learn image transformations that can be", "learns a pair of transformations G : A → B and H : B →", "applied at arbitrary scales without paired training data. An", "A. Unlike previous approaches, [16], this does not require", "overview of our system is shown in Figure 2. We employ", "paired samples from A and B, but instead utilizes a cycle", "theStarGANframeworkasthebasisforourmodelanduse", "consistency loss (llxa - H(G(xa)ll1, where xa is a sample", "the notation introduced above. As we focus on semantic", "imagefromdomainA)tolearncoherenttransformations", "face editing, we use indistinctly semantic attributes or bi-", "that preserve a reasonable amount of image content. An", "nary labels to refer to the domains, c and c.", "equivalent cycle loss is used for domain B. Cycle-GAN", "Warp parametrization We modify the generator such", "models are limited in that they require 2 generators and 2", "discriminators for each domain pair.", "that the set of transformations is restricted to non-linear", "Cycle-GAN was generalized by StarGAN [6] to require", "warps of the input image:", "only a single generator and discriminator to translate be-", "G(x,c) = T(x, W(x,c)),", "(7)", "tweenmultipledomains.Here,eachimagexhasaset of", "domains, represented as a binary vector c. We use (x, c) to", "where W(x, c) = w is a function that generates the warp", "denote a pair sampled from the annotated data distribution.", "parameters. T is a predefined warping function that applies", "The generator,G(x,),transforms x to matchthetarget do-", "a warp to an image. W is chosen to be a neural network. We", "mains indicated by c ~ p(c), where p(c) is the empirical", "employ a dense warp parametrization, where w contains a", "domains distribution. The model is trained with:", "displacement vector for each pixel in the input image. At", "i. a Wasserstein GAN [2] loss:", "train time, T warps the input according to the generated dis-", "placement field, w, using bilinear interpolation. To improve", "Ladu = Ex [D(x)] - Ex,e [D(G(x,c)],", "(2)", "image quality at inference time we use a bicubic interpolant.", "", "ii. a Wasserstein gradient penalty [13] term:", "4.1. Learning", "We use the same adversarial losses (eq. 2 and eq. 3) and", "Lgp = Ex[(IV×D(x)/2 -1)2] ,", "(3)", "domain classification loss (eq. 5) as StarGAN.", "4" ]
{ "arxiv_id": "1811.12784", "language": "en", "page_idx": 3 }
1811.12784-en-4
1811.12784-en-4.jpg
Warp cycle loss The cycle consistency loss (eq.4) is modified to produce warp fields that are inverse consistent, i.e. the composition of the forward and backward transformations yields an identity transformation: $$L_c=\mathbb{E}_{(\mathbf{x},\mathbf{c}),\bar{\mathbf{c}}}\left[\|T(T(\mathbf{A},\mathbf{w}),\bar{\mathbf{w}}))-\mathbf{A}\|_2^2\right],$$ (8) where $\bar{\mathbf{w}}=W(G(\mathbf{x},\bar{\mathbf{c}}),\mathbf{c})$, and A is a two channel image where each pixel takes the value of its coordinates. This loss is more informative than eq. 4, as a pixel loss provides no information for warps inside constant color regions. Smoothness loss The warping network estimates an independent deformation per pixel. As such, there are no guarantees that the learned warps will be smooth. Therefore, an $L2$ penalty on the warp gradients is added to encourage smoothness. In practice a finite-difference approximation is used as $$L_s=\mathbb{E}_{\mathbf{x},\bar{\mathbf{c}}}\left[\frac{1}{n}\sum_{(i,j)}\|\mathbf{w}_{i+1,j}-\mathbf{w}_{i,j}\|_2^2+\|\mathbf{w}_{i,j+1}-\mathbf{w}_{i,j}\|_2^2\right],$$ where $n$ is the number of pixels in the warp field, and $\mathbf{w}_{i,j}$ is the displacement vector at pixel coordinates $(i,j).$ Binary label transformation As mentioned in section 1, a StarGAN type model can make unexpected edits when modifying attributes. At inference time, the attribute classifer is used to infer the original labels. Depending on the desired edits, these labels are either changed or copied to the target vector. This means that the model cannot distinguish between the edited attributes and the copied ones. Thus, the model tends to accentuate the copied attributes. To address this issue, we propose to explicitly instruct the generator on which attributes should be edited. The labels for the generator are transformed to contain three values, [-1,0,1], where -1 indicates that the attribute should be reversed, 0 that it should remain unaffected, and 1 that it should be added. This approach has two distinct benefits. First, it leads to more localized edits. Second, it removes the need for a classifier during inference, as the unedited entries in the transformed target labels can be set to zero. The classifier loss for the generator (eq.6) is modified to only penalize the attributes that should be edited: (10) $$L_{cls}^{g}=\mathbb{E}_{\mathbf{x},\hat{\mathbf{c}}}\left[-h\sum_{i=0}^{r-1}|\hat{c}_{i}|\:\log\left(C(G(\mathbf{x},\hat{\mathbf{c}}),\bar{c}_{i}))\right],\right.$$ where ê are the transformed target labels, $r$ is the number of attributes, and $h=r/\|\hat{\mathbf{c}}\|_1$ is a normalization factor, which ensures that there is no bias with respect to the number of edited attributes. During training, the transformed target label for each attribute, $\hat{c}_i$, is sampled independently from a Categorical distribution with probabilities [0.25,0.5,0.25]. As both types of labels are needed for the classification loss, a label operator, $\bar{c}_i=B(\hat{c}_i)$, is used to reverse the transformation, which is defined as $B(-1)=0$ and $B(1)=1.$ $B(0)$ is undefined as its loss is zero by construction. <FigureHere> Figure 3: Employing a dense flow method [39] to transfer a “big nose" edit from StarGAN[6]. Results for the flow method with $\lambda=0.05$ and $\lambda=0.15$ are shown. StarGAN has edited the input to such lengths that good correspondences between the input and output cannot be found by the flow method Complete objective The joint losses for the discriminator and the generator are defined as (11) $$\begin{aligned}&L_{D}=-L_{adv}+\lambda_{gp}L_{gp}+\lambda_{cls}L_{cls}^{d},\\&L_{G}=L_{adv}+\lambda_{cls}L_{cls}^{g}+\lambda_{c}L_{c}+\lambda_{s}L_{s},\end{aligned}$$ (12) where $\lambda_{cls},\lambda_{gp},\lambda_{c}$ and $\lambda_s$ are hyper-parameters that control the relative strength of each loss. The classification loss in eq. 10 is used for images with several not mutually exclusive binary attributes, and eq. 6 is used otherwise. # 4.2. Inference Once the model parameters have been optimized, an input image of arbitrary size can be edited in a single forward pass of the network. The input image is resized to match the resolution of the training data, and the transformed target labels, $\hat{\mathbf{c}}$, are set according to the desired edit. Then, the resized image and target labels are fed into the warping network, which produces a suitable warp field, w. The warp field displacement vectors are rescaled and resampled to the original image resolution. Lastly, the original image is warped using the resampled warp field to produce the final edited image ### $5. \textbf{Results}$ # 5.1. Datasets We evaluate our method and baselines on a face dataset, CelebA[22] and a birds dataset, Cub200[35]. CelebA The CelebA[22] dataset contains 202,599 images of faces and we use the train/test split recommended by the authors. Importantly, from the 40 binary attributes provided, we choose the ones more amenable to be characterized by warping, namely: smiling, big nose, arched eyebrows, narrow eyes and pointy nose. Cub200 The Cub200[35] dataset contains 11,788 images of 200 bird species. The images are annotated with 312 binary attributes and a semantic mask of the bird body. We choose the three binary attributes that correspond to the beak size relative to the head and remove the background using the semantic masks. The train/test split recommended by the authors is employed. Due to the alignment step discussed below, only 2,325 images are used for training. 5
[ [ "0.0825", "0.09155", "0.468", "0.09155", "0.468", "0.1061", "0.0825", "0.1061" ], [ "0.5312", "0.09216", "0.558", "0.09216", "0.558", "0.09973", "0.5312", "0.09973" ], [ "0.5864", "0.089", "0.8784", "0.089", "0.8784", "0.09973", "0.5864", "0.09973" ], [ "0.0809", "0.1092", "0.4656", "0.1092", "0.4656", "0.1193", "0.0809", "0.1193" ], [ "0.0801", "0.1225", "0.468", "0.1225", "0.468", "0.1364", "0.0801", "0.1364" ], [ "0.0801", "0.137", "0.3555", "0.137", "0.3555", "0.1509", "0.0801", "0.1509" ], [ "0.1316", "0.159", "0.4224", "0.159", "0.4224", "0.1768", "0.1316", "0.1768" ], [ "0.4468", "0.1635", "0.4673", "0.1635", "0.4673", "0.1718", "0.4468", "0.1718" ], [ "0.5024", "0.1674", "0.8906", "0.1674", "0.8906", "0.1812", "0.5024", "0.1812" ], [ "0.0809", "0.1831", "0.468", "0.1831", "0.468", "0.1963", "0.0809", "0.1963" ], [ "0.5034", "0.1831", "0.8906", "0.1831", "0.8906", "0.1932", "0.5034", "0.1932" ], [ "0.0809", "0.1976", "0.4697", "0.1976", "0.4697", "0.2108", "0.0809", "0.2108" ], [ "0.501", "0.1945", "0.892", "0.1957", "0.892", "0.209", "0.501", "0.2084" ], [ "0.0801", "0.2134", "0.4714", "0.2134", "0.4714", "0.2267", "0.0801", "0.2267" ], [ "0.5034", "0.2108", "0.892", "0.2108", "0.892", "0.2216", "0.5034", "0.2216" ], [ "0.0801", "0.2291", "0.4412", "0.2291", "0.4412", "0.2424", "0.0801", "0.2424" ], [ "0.501", "0.2235", "0.759", "0.2229", "0.759", "0.2361", "0.501", "0.2374" ], [ "0.0784", "0.2443", "0.4697", "0.2456", "0.4697", "0.26", "0.0784", "0.2588" ], [ "0.5034", "0.2456", "0.892", "0.2456", "0.892", "0.2588", "0.5034", "0.2588" ], [ "0.0801", "0.262", "0.468", "0.262", "0.468", "0.276", "0.0801", "0.276" ], [ "0.501", "0.2615", "0.7134", "0.2615", "0.7134", "0.2747", "0.501", "0.2747" ], [ "0.0801", "0.2766", "0.468", "0.2766", "0.468", "0.2903", "0.0801", "0.2903" ], [ "0.564", "0.2854", "0.8057", "0.2854", "0.8057", "0.303", "0.564", "0.303" ], [ "0.8594", "0.286", "0.8936", "0.286", "0.8936", "0.3018", "0.8594", "0.3018" ], [ "0.0801", "0.2922", "0.468", "0.2922", "0.468", "0.3062", "0.0801", "0.3062" ], [ "0.5645", "0.3062", "0.8325", "0.3062", "0.8325", "0.3208", "0.5645", "0.3208" ], [ "0.859", "0.305", "0.8936", "0.305", "0.8936", "0.3208", "0.859", "0.3208" ], [ "0.0809", "0.324", "0.1323", "0.324", "0.1323", "0.3352", "0.0809", "0.3352" ], [ "0.0801", "0.308", "0.468", "0.308", "0.468", "0.3213", "0.0801", "0.3213" ], [ "0.501", "0.33", "0.8936", "0.3308", "0.8936", "0.3484", "0.501", "0.348" ], [ "0.0825", "0.3416", "0.1544", "0.3447", "0.1528", "0.3599", "0.0809", "0.3567" ], [ "0.1569", "0.3452", "0.46", "0.3452", "0.46", "0.3599", "0.1569", "0.3599" ], [ "0.5024", "0.348", "0.892", "0.348", "0.892", "0.361", "0.5024", "0.361" ], [ "0.4468", "0.363", "0.468", "0.363", "0.468", "0.3757", "0.4468", "0.3757" ], [ "0.5024", "0.363", "0.8906", "0.363", "0.8906", "0.377", "0.5024", "0.377" ], [ "0.0768", "0.3738", "0.4697", "0.3757", "0.4697", "0.3933", "0.0768", "0.3914" ], [ "0.5024", "0.3774", "0.846", "0.3774", "0.846", "0.3882", "0.5024", "0.3882" ], [ "0.0784", "0.3914", "0.423", "0.3926", "0.423", "0.4072", "0.0784", "0.406" ], [ "0.505", "0.4016", "0.6094", "0.4016", "0.6094", "0.414", "0.505", "0.414" ], [ "0.0809", "0.411", "0.4656", "0.411", "0.4656", "0.4248", "0.0809", "0.4248" ], [ "0.0801", "0.4268", "0.4697", "0.4268", "0.4697", "0.44", "0.0801", "0.44" ], [ "0.5215", "0.4236", "0.8906", "0.4236", "0.8906", "0.4375", "0.5215", "0.4375" ], [ "0.0801", "0.4414", "0.4697", "0.4414", "0.4697", "0.455", "0.0801", "0.455" ], [ "0.5034", "0.4395", "0.892", "0.4395", "0.892", "0.4539", "0.5034", "0.4539" ], [ "0.0801", "0.457", "0.4697", "0.457", "0.4697", "0.4702", "0.0801", "0.4702" ], [ "0.5024", "0.455", "0.6396", "0.455", "0.6396", "0.4685", "0.5024", "0.4685" ], [ "0.0801", "0.473", "0.4697", "0.473", "0.4697", "0.486", "0.0801", "0.486" ], [ "0.523", "0.4697", "0.8906", "0.4697", "0.8906", "0.483", "0.523", "0.483" ], [ "0.0801", "0.4873", "0.468", "0.4873", "0.468", "0.5005", "0.0801", "0.5005" ], [ "0.5024", "0.4849", "0.8906", "0.4849", "0.8906", "0.4988", "0.5024", "0.4988" ], [ "0.0801", "0.502", "0.4697", "0.502", "0.4697", "0.515", "0.0801", "0.515" ], [ "0.5034", "0.5005", "0.892", "0.5005", "0.892", "0.5146", "0.5034", "0.5146" ], [ "0.0809", "0.518", "0.3865", "0.518", "0.3865", "0.529", "0.0809", "0.529" ], [ "0.5024", "0.515", "0.8906", "0.515", "0.8906", "0.529", "0.5024", "0.529" ], [ "0.0989", "0.532", "0.4697", "0.532", "0.4697", "0.5454", "0.0989", "0.5454" ], [ "0.5024", "0.531", "0.892", "0.531", "0.892", "0.5444", "0.5024", "0.5444" ], [ "0.0784", "0.547", "0.468", "0.5454", "0.468", "0.56", "0.0784", "0.561" ], [ "0.5024", "0.5454", "0.892", "0.5454", "0.892", "0.5596", "0.5024", "0.5596" ], [ "0.0801", "0.5625", "0.468", "0.5625", "0.468", "0.5757", "0.0801", "0.5757" ], [ "0.5024", "0.56", "0.892", "0.56", "0.892", "0.5737", "0.5024", "0.5737" ], [ "0.0784", "0.577", "0.468", "0.5757", "0.468", "0.5903", "0.0784", "0.5913" ], [ "0.5024", "0.5757", "0.8613", "0.5757", "0.8613", "0.589", "0.5024", "0.589" ], [ "0.0801", "0.5923", "0.468", "0.5923", "0.468", "0.606", "0.0801", "0.606" ], [ "0.501", "0.6016", "0.5884", "0.604", "0.5884", "0.619", "0.501", "0.617" ], [ "0.0809", "0.6094", "0.4673", "0.6094", "0.4673", "0.619", "0.0809", "0.619" ], [ "0.0801", "0.6226", "0.4697", "0.6226", "0.4697", "0.636", "0.0801", "0.636" ], [ "0.5024", "0.6274", "0.603", "0.6274", "0.603", "0.6426", "0.5024", "0.6426" ], [ "0.0801", "0.638", "0.4697", "0.638", "0.4697", "0.6514", "0.0801", "0.6514" ], [ "0.0809", "0.655", "0.452", "0.655", "0.452", "0.6655", "0.0809", "0.6655" ], [ "0.5215", "0.6494", "0.8906", "0.651", "0.8906", "0.6655", "0.5215", "0.664" ], [ "0.0989", "0.6675", "0.4697", "0.6675", "0.4697", "0.681", "0.0989", "0.681" ], [ "0.501", "0.6655", "0.8057", "0.6675", "0.8057", "0.681", "0.501", "0.6787" ], [ "0.0801", "0.683", "0.4028", "0.683", "0.4028", "0.6963", "0.0801", "0.6963" ], [ "0.5034", "0.685", "0.888", "0.685", "0.888", "0.6987", "0.5034", "0.6987" ], [ "0.5034", "0.7007", "0.892", "0.7007", "0.892", "0.714", "0.5034", "0.714" ], [ "0.10046", "0.7153", "0.1847", "0.7153", "0.1847", "0.733", "0.10046", "0.733" ], [ "0.1969", "0.7163", "0.2303", "0.7173", "0.2303", "0.729", "0.1969", "0.728" ], [ "0.2336", "0.7163", "0.406", "0.7163", "0.406", "0.731", "0.2336", "0.731" ], [ "0.4355", "0.7173", "0.4673", "0.7173", "0.4673", "0.73", "0.4355", "0.73" ], [ "0.5024", "0.7163", "0.892", "0.7163", "0.892", "0.73", "0.5024", "0.73" ], [ "0.2197", "0.735", "0.2402", "0.735", "0.2402", "0.7437", "0.2197", "0.7437" ], [ "0.5034", "0.733", "0.8896", "0.733", "0.8896", "0.7437", "0.5034", "0.7437" ], [ "0.0801", "0.7505", "0.468", "0.7505", "0.468", "0.7646", "0.0801", "0.7646" ], [ "0.5024", "0.747", "0.892", "0.747", "0.892", "0.761", "0.5024", "0.761" ], [ "0.0801", "0.7666", "0.4697", "0.7666", "0.4697", "0.78", "0.0801", "0.78" ], [ "0.5024", "0.762", "0.7686", "0.762", "0.7686", "0.776", "0.5024", "0.776" ], [ "0.0809", "0.7827", "0.4697", "0.7827", "0.4697", "0.7935", "0.0809", "0.7935" ], [ "0.5024", "0.78", "0.892", "0.78", "0.892", "0.7944", "0.5024", "0.7944" ], [ "0.0801", "0.797", "0.4697", "0.797", "0.4697", "0.81", "0.0801", "0.81" ], [ "0.5024", "0.797", "0.8906", "0.797", "0.8906", "0.81", "0.5024", "0.81" ], [ "0.0801", "0.811", "0.4697", "0.811", "0.4697", "0.8247", "0.0801", "0.8247" ], [ "0.5034", "0.8125", "0.8906", "0.8125", "0.8906", "0.8228", "0.5034", "0.8228" ], [ "0.0809", "0.827", "0.468", "0.827", "0.468", "0.8403", "0.0809", "0.8403" ], [ "0.5034", "0.8276", "0.8906", "0.8276", "0.8906", "0.8384", "0.5034", "0.8384" ], [ "0.0809", "0.8413", "0.468", "0.8413", "0.468", "0.855", "0.0809", "0.855" ], [ "0.5024", "0.8413", "0.892", "0.8413", "0.892", "0.855", "0.5024", "0.855" ], [ "0.0809", "0.858", "0.4656", "0.858", "0.4656", "0.8687", "0.0809", "0.8687" ], [ "0.5034", "0.858", "0.8906", "0.858", "0.8906", "0.8687", "0.5034", "0.8687" ], [ "0.0801", "0.872", "0.468", "0.872", "0.468", "0.8853", "0.0801", "0.8853" ], [ "0.5024", "0.872", "0.8906", "0.872", "0.8906", "0.8853", "0.5024", "0.8853" ], [ "0.0801", "0.8853", "0.4224", "0.886", "0.4224", "0.901", "0.0801", "0.8994" ], [ "0.5024", "0.887", "0.859", "0.887", "0.859", "0.901", "0.5024", "0.901" ], [ "0.478", "0.924", "0.4944", "0.924", "0.4944", "0.938", "0.478", "0.938" ] ]
[ "Warp cycle loss The cycle consistency loss (eg.4) is", "Input", "WarpGAN+StarGAN[61|SGFlow0.05SGFlow0.1", "modifiedtoproducewarpfieldsthatareinverseconsistent.", "i.e. the composition of the forward and backward transfor-", "mations yields an identity transformation:", "Le = E(x,c), [T(T(A, w), w)) - A] ,", "(8)", "Figure 3: Employing a dense flow method [39] to transfer a \"big", "where w = W(G(x, c), c), and A is a two channel image", "nose\"editfromStarGAN[6].Resultsfortheflowmethodwith", "where each pixel takes the value of its coordinates. This", "> = 0.05 and 入 = 0.15 are shown. StarGAN has edited the input", "loss is more informative than eq.4, as a pixel loss provides", "to such lengths thatgood correspondences between the input and", "no information for warps inside constant color regions.", "output cannotbe found by the flow method.", "Smoothness lossThe warping network estimates an inde-", "Complete objectiveThe joint losses for the discriminator", "pendent deformation per pixel. As such, there are no guar-", "and the generator are defined as", "antees that the learned warps will be smooth. Therefore,", "LD =-Ladu + AgpLgp + AelsLels,", "(11)", "an L2 penalty on the warp gradients is added to encourage", "LG=Ladu+AelsLals+AeLe+ALs,", "(12)", "used as", "smoothness. In practice a finite-difference approximation is", "where 入els, Agp, Ae and 入g are hyper-parameters that con-", "Ls= Ex,c", "(in) //wi+1,j-wi,l2+Iwi.j+1-wijl2", "trol the relative strength of each loss. The classification loss", "(9)", "in eq. 10 is used for images with several not mutually ex-", "where n is the number of pixels in the warp field, and wi.j", "clusive binary attributes. and eg. 6 is used otherwise.", "is the displacement vector at pixel coordinates (i, j).", "4.2.Inference", "Binary label transformationAs mentioned in section 1", "a StarGAN type model can make unexpected edits when", "Once the model parameters have been optimized, an in-", "modifying attributes. At inference time, the attribute clas-", "put image of arbitrary size can be edited in a single forward", "sifier is used to infer the original labels. Depending on the", "pass of the network.", "desired edits, these labels are either changed or copied to the", "The input image is resized to match the resolution of the", "target vector. This means that the model cannot distinguish", "training data, and the transformed target labels, c, are set", "between the edited attributes and the copied ones. Thus, the", "according to the desired edit. Then, the resized image and", "model tends to accentuatethe copied attributes", "target labels are fed into the warping network, which pro-", "To address this issue, we propose to explicitly instruct", "duces a suitable warp field, w. The warp field displacement", "the generator on which attributes should be edited. The la-", "vectors are rescaled and resampled to the original image", "bels for the generator are transformed to contain three val-", "resolution. Lastly, the original image is warped using the", "ues, [-1, O, 1], where -1 indicates that the attribute should", "resampled warp field to produce the final edited image.", "be reversed, O that it should remain unaffected, and 1 that", "5.Results", "itshouldbeadded.Thisapproachhastwodistinctbenefits.", "First, it leads to more localized edits. Second, it removes", "5.1.Datasets", "the need for a classifier during inference, as the unedited", "entries in the transformed target labels can be set tozero.", "We evaluate our method and baselines on a face dataset,", "The classifier loss for the generator (eg.6) is modified to", "CelebA [22] and a birds dataset, Cub200 [35].", "only penalize the attributes that should be edited:", "CelebA The CelebA [22] dataset contains 202,599 im", "ages of faces and we use the train/test split recommended", "Lals = Ex,e", "-h>", "Jc/ log (C(G(x, c), c))", "(10)", "by the authors. Importantly, from the 40 binary attributes", "i=0", "provided, we choose the ones more amenable to be char-", "where c are the transformed target labels, r is the number of", "acterized by warping, namely: smiling, big nose, arched", "attributes, and h = r/leli is a normalization factor, which", "eyebrows, narrow eyes and pointy nose.", "ensures that there is no bias withrespect to the number of", "Cub200The Cub200 [35] dataset contains 11,788 images", "edited attributes. During training, the transformed target la-", "of 200 bird species. The images are annotated with 312 bi-", "bel for each attribute, c,, is sampled independently from a", "nary attributes and a semantic mask of the bird body. We", "Categorical distribution with probabilities [0.25, 0.5, 0.25].", "choose the three binary attributes that correspond to the", "As both types of labels are needed for the classification loss,", "beak size relative to the head and remove the background", "a label operator,c, = B(c,),is used toreverse the transfor", "usingthesemanticmasks.Thetrain/test splitrecommended", "mation, which is defined as B(-1) = 0 and B(1) = 1.", "by the authors is employed. Due to the alignment step dis-", "B(O) is undefined as its loss is zero by construction.", "cussed below, only 2,325 images are used for training.", "5" ]
{ "arxiv_id": "1811.12784", "language": "en", "page_idx": 4 }
1808.09500-en-0
1808.09500-en-0.jpg
# Adapting Word Embeddings to New Languages with Morphological and Phonological Subword Representations Aditi Chaudhary, Chunting Zhou, Lori Levin, Graham Neubig, David R. Mortensen, Jaime G. Carbonell Language Technologies Institute, Carnegie Mellon University $\{$aschaudh,ctzhou,lsl,gneubig,dmortens,jgc$\}$@cs.cmu.edu ## Abstract Much work in Natural Language Processing (NLP) has been for resource-rich languages, making generalization to new, less-resourced languages challenging. We present two approaches for improving generalization to lowresourced languages by adapting continuous word representations using linguistically motivated subword units: phonemes, morphemes and graphemes. Our method requires neither parallel corpora nor bilingual dictionaries and provides a significant gain in performance over previous methods relying on these resources. We demonstrate the effectiveness of our approaches on Named Entity Recognition for four languages, namely Uyghur, Turkish, Bengali and Hindi, of which Uyghur and Bengali are low resource languages, and also perform experiments on Machine Translation. Exploiting subwords with transfer learning gives us a boost of +15.2 NER F1 for Uyghur and +9.7 F1 for Bengali. We also show improvements in the monolingual setting where we achieve (avg.)+3F1 and(avg.)+1.35BLEU. ## 1 Introduction Continuous word representations have demonstrated utility in state-of-the-art neural models for several NLP tasks, such as named entity recognition (NER; Ma and Hovy (2016)), machine reading (Tan et al., 2017), sentiment analysis (Tang et al., 2016; Yu et al., 2018), and machine translation (MT; Qi et al. (2018)). While the training of these word vectors does not rely on explicit human supervision, their quality is highly contingent on the size and quality of the unlabeled corpora available. There are over 7000 languages in the world (Hammarström et al., 2018), and corpora with sufficient size and coverage are available for just a handful, making it unclear how these methods will perform in the more common low-resource setting. Disheartening though this high dependence on resources sounds, several efforts (Adams et al., 2017; Haghighi et al., 2008; Bharadwaj et al., 2016; Mayhew et al., 2017) have shown considerable performance gains across different tasks in the low resource setting by transferring knowledge from related high-resource languages. Most existing approaches for learning cross-lingual word embeddings (Ruder, 2017) either extend the monolingual objective function by adding a cross-lingual regularization objective which is then jointly optimized or use mapping-based approaches to align similar words across languages. These post-hoc coordination methods rely on bilingual lexicons or parallel corpora, which are typically of limited quantity and uncertain quality In this paper, we take a different task: focusing instead on the similarity of the surface $forms,phonology,ormorphology$ of the two transfer languages. Specifically, inspired by Ling et al. (2015), who demonstrate the effectiveness of character-level modeling for knowledge sharing in multilingual scenarios, we propose two approaches to transfer word embeddings using different types of linguistically-inspired subword-level information. Both approaches focus on mapping the low resource language embeddings closer to those of the high resource language and are executed using two different training regimes. We explore the effect of different subword units— characters, lemmas, inflectional properties, and phonemes- as each one offers a unique linguistic insight, discussed more in Section 3. Our proposed approaches do require language specific resources, but importantly do not depend on crosslingual resources and achieve considerable performance gains over existing methods which do. We evaluate our proposed approach on two downstream tasks: NER, which deals with detecting and classifying Named Entities (NEs) into pre-
[ [ "0.2568", "0.0831", "0.7446", "0.08435", "0.7446", "0.0986", "0.2568", "0.0974" ], [ "0.1721", "0.10156", "0.8296", "0.10156", "0.8296", "0.1194", "0.1721", "0.1194" ], [ "0.297", "0.1484", "0.711", "0.1484", "0.711", "0.1633", "0.297", "0.1633" ], [ "0.2435", "0.165", "0.763", "0.165", "0.763", "0.1799", "0.2435", "0.1799" ], [ "0.2544", "0.1829", "0.7515", "0.1829", "0.7515", "0.1965", "0.2544", "0.1965" ], [ "0.2275", "0.1965", "0.7793", "0.1978", "0.7793", "0.2156", "0.2275", "0.2144" ], [ "0.266", "0.2654", "0.3435", "0.2654", "0.3435", "0.2798", "0.266", "0.2798" ], [ "0.531", "0.2642", "0.8833", "0.2654", "0.8833", "0.2798", "0.531", "0.279" ], [ "0.513", "0.282", "0.8833", "0.282", "0.8833", "0.2957", "0.513", "0.2957" ], [ "0.1453", "0.2957", "0.461", "0.2964", "0.461", "0.3113", "0.1453", "0.31" ], [ "0.513", "0.2964", "0.8833", "0.2976", "0.8833", "0.3123", "0.513", "0.3113" ], [ "0.1453", "0.31", "0.4592", "0.3123", "0.4592", "0.326", "0.1453", "0.3237" ], [ "0.513", "0.3135", "0.881", "0.3135", "0.881", "0.3267", "0.513", "0.3267" ], [ "0.1453", "0.326", "0.4592", "0.3247", "0.4592", "0.339", "0.1453", "0.3403" ], [ "0.513", "0.33", "0.885", "0.33", "0.885", "0.3445", "0.513", "0.3445" ], [ "0.147", "0.339", "0.4592", "0.339", "0.4592", "0.3528", "0.147", "0.3528" ], [ "0.5146", "0.3467", "0.8833", "0.3467", "0.8833", "0.3599", "0.5146", "0.3599" ], [ "0.147", "0.354", "0.4592", "0.354", "0.4592", "0.3677", "0.147", "0.3677" ], [ "0.147", "0.3682", "0.461", "0.3682", "0.461", "0.3818", "0.147", "0.3818" ], [ "0.5146", "0.3635", "0.8833", "0.3635", "0.8833", "0.3772", "0.5146", "0.3772" ], [ "0.1486", "0.3843", "0.4575", "0.3843", "0.4575", "0.3943", "0.1486", "0.3943" ], [ "0.5146", "0.379", "0.8833", "0.379", "0.8833", "0.3938", "0.5146", "0.3938" ], [ "0.147", "0.3967", "0.4592", "0.3967", "0.4592", "0.4104", "0.147", "0.4104" ], [ "0.513", "0.3938", "0.882", "0.3938", "0.882", "0.4067", "0.513", "0.4067" ], [ "0.147", "0.411", "0.4592", "0.411", "0.4592", "0.4246", "0.147", "0.4246" ], [ "0.513", "0.411", "0.882", "0.411", "0.882", "0.4246", "0.513", "0.4246" ], [ "0.147", "0.4258", "0.4592", "0.4258", "0.4592", "0.4395", "0.147", "0.4395" ], [ "0.5156", "0.4287", "0.881", "0.4287", "0.881", "0.4395", "0.5156", "0.4395" ], [ "0.147", "0.4395", "0.4592", "0.4382", "0.4592", "0.452", "0.147", "0.4531" ], [ "0.511", "0.4436", "0.882", "0.4436", "0.882", "0.4573", "0.511", "0.4573" ], [ "0.1486", "0.4536", "0.4575", "0.4536", "0.4575", "0.4673", "0.1486", "0.4673" ], [ "0.5146", "0.459", "0.8833", "0.459", "0.8833", "0.4739", "0.5146", "0.4739" ], [ "0.1453", "0.466", "0.4575", "0.4673", "0.4575", "0.4822", "0.1453", "0.481" ], [ "0.513", "0.4744", "0.8833", "0.4744", "0.8833", "0.488", "0.513", "0.488" ], [ "0.1486", "0.4822", "0.4592", "0.4822", "0.4592", "0.4954", "0.1486", "0.4954" ], [ "0.147", "0.4954", "0.4575", "0.4954", "0.4575", "0.509", "0.147", "0.509" ], [ "0.513", "0.4912", "0.8833", "0.4912", "0.8833", "0.505", "0.513", "0.505" ], [ "0.147", "0.5103", "0.461", "0.5103", "0.461", "0.524", "0.147", "0.524" ], [ "0.513", "0.5083", "0.738", "0.5083", "0.738", "0.5215", "0.513", "0.5215" ], [ "0.147", "0.525", "0.4575", "0.525", "0.4575", "0.538", "0.147", "0.538" ], [ "0.531", "0.525", "0.882", "0.525", "0.882", "0.538", "0.531", "0.538" ], [ "0.147", "0.538", "0.4592", "0.538", "0.4592", "0.552", "0.147", "0.552" ], [ "0.513", "0.5405", "0.8833", "0.5405", "0.8833", "0.5547", "0.513", "0.5547" ], [ "0.147", "0.5527", "0.4592", "0.5527", "0.4592", "0.5664", "0.147", "0.5664" ], [ "0.513", "0.557", "0.882", "0.557", "0.882", "0.571", "0.513", "0.571" ], [ "0.147", "0.568", "0.4592", "0.568", "0.4592", "0.5806", "0.147", "0.5806" ], [ "0.5146", "0.5723", "0.6396", "0.5723", "0.6396", "0.586", "0.5146", "0.586" ], [ "0.635", "0.5776", "0.642", "0.5776", "0.642", "0.583", "0.635", "0.583" ], [ "0.638", "0.5723", "0.8833", "0.5723", "0.8833", "0.586", "0.638", "0.586" ], [ "0.147", "0.5806", "0.461", "0.5806", "0.461", "0.594", "0.147", "0.594" ], [ "0.511", "0.5874", "0.885", "0.5884", "0.885", "0.6025", "0.511", "0.6016" ], [ "0.147", "0.594", "0.4592", "0.594", "0.4592", "0.608", "0.147", "0.608" ], [ "0.1453", "0.6094", "0.4048", "0.608", "0.4048", "0.6226", "0.1453", "0.6235" ], [ "0.513", "0.605", "0.8833", "0.605", "0.8833", "0.618", "0.513", "0.618" ], [ "0.511", "0.619", "0.8833", "0.6206", "0.8833", "0.6353", "0.511", "0.6343" ], [ "0.1276", "0.641", "0.2612", "0.641", "0.2612", "0.655", "0.1276", "0.655" ], [ "0.5146", "0.637", "0.882", "0.637", "0.882", "0.651", "0.5146", "0.651" ], [ "0.12427", "0.6445", "0.1301", "0.6445", "0.1301", "0.651", "0.12427", "0.651" ], [ "0.5146", "0.653", "0.8833", "0.653", "0.8833", "0.6665", "0.5146", "0.6665" ], [ "0.1184", "0.6685", "0.4878", "0.6685", "0.4878", "0.6816", "0.1184", "0.6816" ], [ "0.511", "0.6685", "0.8833", "0.6694", "0.8833", "0.684", "0.511", "0.683" ], [ "0.12006", "0.686", "0.4902", "0.686", "0.4902", "0.6997", "0.12006", "0.6997" ], [ "0.513", "0.684", "0.882", "0.684", "0.882", "0.6978", "0.513", "0.6978" ], [ "0.12006", "0.7017", "0.4878", "0.7017", "0.4878", "0.7153", "0.12006", "0.7153" ], [ "0.513", "0.7017", "0.882", "0.7017", "0.882", "0.7153", "0.513", "0.7153" ], [ "0.1184", "0.7163", "0.4895", "0.7173", "0.4895", "0.7324", "0.1184", "0.731" ], [ "0.513", "0.7173", "0.8833", "0.7173", "0.8833", "0.7324", "0.513", "0.7324" ], [ "0.12006", "0.734", "0.4895", "0.734", "0.4895", "0.7476", "0.12006", "0.7476" ], [ "0.513", "0.734", "0.8696", "0.734", "0.8696", "0.7476", "0.513", "0.7476" ], [ "0.12177", "0.752", "0.4895", "0.752", "0.4895", "0.7627", "0.12177", "0.7627" ], [ "0.513", "0.749", "0.882", "0.749", "0.882", "0.7627", "0.513", "0.7627" ], [ "0.1184", "0.764", "0.4902", "0.7656", "0.4902", "0.78", "0.1184", "0.7793" ], [ "0.5146", "0.7666", "0.882", "0.7666", "0.882", "0.78", "0.5146", "0.78" ], [ "0.12177", "0.7837", "0.4878", "0.7837", "0.4878", "0.7944", "0.12177", "0.7944" ], [ "0.513", "0.782", "0.882", "0.782", "0.882", "0.796", "0.513", "0.796" ], [ "0.12006", "0.799", "0.4902", "0.799", "0.4902", "0.8125", "0.12006", "0.8125" ], [ "0.513", "0.799", "0.881", "0.799", "0.881", "0.8125", "0.513", "0.8125" ], [ "0.12006", "0.814", "0.4895", "0.814", "0.4895", "0.8276", "0.12006", "0.8276" ], [ "0.513", "0.814", "0.8833", "0.814", "0.8833", "0.8276", "0.513", "0.8276" ], [ "0.1184", "0.8306", "0.4902", "0.8306", "0.4902", "0.844", "0.1184", "0.844" ], [ "0.513", "0.83", "0.8833", "0.83", "0.8833", "0.8433", "0.513", "0.8433" ], [ "0.11755", "0.8457", "0.4902", "0.8467", "0.4902", "0.861", "0.11755", "0.86" ], [ "0.511", "0.8467", "0.8506", "0.8467", "0.8506", "0.86", "0.511", "0.86" ], [ "0.1184", "0.8633", "0.4902", "0.8633", "0.4902", "0.877", "0.1184", "0.877" ], [ "0.531", "0.8633", "0.882", "0.8633", "0.882", "0.877", "0.531", "0.877" ], [ "0.11755", "0.8774", "0.4902", "0.879", "0.4902", "0.8936", "0.11755", "0.8926" ], [ "0.5146", "0.879", "0.8833", "0.879", "0.8833", "0.8926", "0.5146", "0.8926" ], [ "0.11755", "0.8936", "0.43", "0.8955", "0.43", "0.91", "0.11755", "0.9077" ], [ "0.513", "0.8955", "0.882", "0.8955", "0.882", "0.909", "0.513", "0.909" ] ]
[ "Adapting Word Embeddings to New Languages", "with Morphological and Phonological Subword Representations", "Aditi Chaudhary, Chunting Zhou, Lori Levin,", "Graham Neubig, David R. Mortensen, Jaime G. Carbonell", "Language Technologies Institute, Carnegie Mellon University", "{aschaudh,ctzhou,lsl,gneubig,dmortens,jgc}@cs.cmu.edu", "Abstract", "Disheartening though this high dependence on", "resources sounds, several efforts (Adams et al.,", "Much work in Natural Language Processing", "2017; Haghighi et al., 2008; Bharadwaj et al.,", "(NLP) has been for resource-rich languages,", "2016: Mayhew et al., 2017) have shown consid-", "making generalization to new, less-resourced", "erable performance gains across different tasks in", "languages challenging.We present two ap-", "the low resource setting by transferring knowledge", "proaches for improving generalization to low-", "resourced languages by adapting continuous", "from related high-resource languages. Most exist-", "word representations using linguistically mo-", "ing approaches for learning cross-lingual word em-", "tivated subword units: phonemes, morphemes", "beddings (Ruder, 2017) either extend the monolin-", "and graphemes. Our method requires neither", "gual objective function by adding a cross-lingual", "parallel corpora nor bilingual dictionaries and", "regularizationobjectivewhichisthenjointlyopti-", "provides a significant gain in performance over", "mized or use mapping-based approaches to align", "previous methods relying on these resources.", "similar words across languages. These post-hoc", "We demonstrate the effectiveness of our ap-", "coordination methods rely on bilingual lexicons", "proaches on Named Entity Recognition for four", "languages, namely Uyghur, Turkish, Bengali", "or parallel corpora, which are typically of limited", "and Hindi, of which Uyghur and Bengali are", "quantity and uncertain quality.", "low resource languages, and also perform ex-", "In this paper, we take a different task: fo-", "periments on Machine Translation. Exploit-", "cusing instead on the similarity of the surface", "ing subwords with transfer learning gives us a", "forms, phonology, or morphology of the two trans-", "boost of +15.2 NER F1 for Uyghur and +9.7", "fer languages.", "", "Specifically, inspired by Ling", "F1 for Bengali. We also show improvements", "et al. (2015), who demonstrate the effectiveness", "in the monolingual setting where we achieve", "(avg.) +3 F1 and (avg.) +1.35 BLEU.", "of character-level modeling forknowledge shar-", "ing in multilingual scenarios, we propose two ap-", "Introduction", "proaches to transfer word embeddings using differ-", "一", "ent types of linguistically-inspired subword-level", "Continuous word representations have demon-", "information.Both approaches focus on mapping", "strated utility in state-of-the-art neural models for", "the low resource language embeddings closer to", "several NLP tasks, such as named entity recogni-", "those of the high resource language and are ex-", "tion (NER; Ma and Hovy (2016), machine reading", "ecuted using two different training regimes. We", "(Tan et al., 2017), sentiment analysis (Tang et al.,", "explore the effect of different subword units-", "2016:Yu et al.,2018).and machinetranslation", "characters, lemmas, inflectional properties, and", "(MT; Qi et al. (2018). While the training of these", "phonemes as each one offers a unique linguis-", "word vectors does not rely on explicit human su-", "tic insight, discussed more in Section 3. Our pro-", "pervision, their quality is highly contingent on the", "posed approaches do require language specific re-", "size and quality of the unlabeled corpora available.", "sources, but importantly do not depend on cross-", "There are over 7000 languages in the world (Ham-", "lingual resources and achieve considerable perfor-", "marstrom et al., 2018), and corpora with sufficient", "mance gains over existing methods which do.", "size and coverage are available for just a handful,", "We evaluate our proposed approach on two", "making it unclear how these methods will perform", "downstream tasks: NER, which deals with detect-", "in the more common low-resource setting.", "ing and classifying Named Entities (NEs) into pre-" ]
{ "arxiv_id": "1808.09500", "language": "en", "page_idx": 0 }
1808.09500-en-1
1808.09500-en-1.jpg
defined categories (Nadeau and Sekine, 2007), and MT to English. For the purposes of error analysis and discussion, we focus on the NER task in particular. NEs are typically noun phrases and occur rarely in the corpus, making the generalization across types and domains difficult. We chose NER as our test bed because word vectors have a direct impact on NER model performance— as suggested by (Ruder, 2017) and observed by us in Table 3, where the model without any pre-trained embeddings scores an average of 18 F1 points less. It thus provides a transparent way to measure the effectiveness of different subword units. This paper makes the following contributions: 1. We show that embeddings trained on subword representations yield better task performance than those trained only on whole words. This is especially true in a transfer setting, where subword representations also outperform a word alignment based method. We further show that embeddings trained on morphological representations often outperform those trained only on whole words. 2. We demonstrate that training embeddings on character-based phonemic representations presents substantial performance advantages over training on orthographic characters in some transfer settings, e.g. when there are script differences across languages. These advantages are in addition to those from morphological representations (lemmas and morphological properties). 3. We produce continuous representations for each subword unit, giving researchers the ability to use them in their own tasks as they see fit. The code $^{1}$ for training word embeddings and the embeddings $^{2}$which produced the best results are publicly available. duced the best results are publicly available. similarity function given by s$( w_i, w_c) = \mathbf{u} _{w_i}^{\mathrm{T} }\mathbf{v} _{w_c}$ We also release morphological analyzers for $\text{where u}_{w_i}\mathrm{~and~v}_{w_c}$ are the embeddings of the focus $\text{Hindi and Bengali}^3.$ Hindi and Bengali$^3.$ ## 2 Skipgram Objective The two most popular training objectives for monolingual word embeddings are the skipgram and continuous-bag-of-words (CBOW), introduced by Mikolov et al. (2013a). The skipgram $^{1}$https: / / github. com/ Aditi138/ Embeddings $^{2}$https://github.com/Aditi138/Embeddings/ tree/master/embeddings_released $^{3}$https://github.com/dmort27/mstem model attempts to predict the context surrounding a word, given the word itself whereas CBOW predicts the word given its context. Formally, given a corpus having a sequence of words $w_1,w_2,\cdots,w_T$, the skip-gram model maximizes the following loglikelihood: (1) $$\begin{aligned}\sum_{i=1}^T\sum_{v\in C_i}\log p(v|w_i)\end{aligned}$$ where $C_i$ are the context tokens, within a specified window of the focus word $w_i$ and $p(v|w_i)$ is the probability of observing context word $\upsilon$ given focus word $w_i.$ The skipgram was originally defined using the softmax function: (2) $$p(v|w_i)=\frac{e^{s(v,w_i)}}{\sum_{j=1}^We^{s(w_i,j)}}$$ where s is a scoring function mapping $\upsilon$ and $w_i$ to $\mathbb{R}.$ The summation in the denominator is over the entire vocabulary $W$which makes this formulation computationally inefficient as cost of gradient computation is proportional to $W$ which is quite large $(\sim10^{6}).$ Mikolov et al. (2013b) hence employ negative sampling to make this computation efficient and robust (Levy et al., 2015) and give better representations for infrequent words$^4$,which is crucial for the low resource settings. Negative sampling represents the above objective function (Equation 1) using a binary logistic loss as shown $below:$ $$\begin{aligned}\sum_{i=1}^T\left(\sum_{w_c\in C_i}l(s(w_i,w_c))+\sum_{w_n\in N_i}l(-s(w_i,w_n))\right)\end{aligned}$$ (3) where $N_i$ are the negative words sampled randomly from vocabulary and $l$ is the log-sigmoid function. The scoring function s is a dot product word and its context word respectively. ### 3 Subword Representation Mikolov et al. (2013b)'s model fails to capture internal structure of words and does not generalize for out of vocabulary words that may share morphemes with in-vocabulary words. The problems of this method are particularly salient for ${^4\mathrm{https:}//\mathrm{code.google.com/archive/p/}}$ word2vec/
[ [ "0.12177", "0.0778", "0.4878", "0.0778", "0.4878", "0.0885", "0.12177", "0.0885" ], [ "0.511", "0.076", "0.882", "0.076", "0.882", "0.08905", "0.511", "0.08905" ], [ "0.11755", "0.09143", "0.4878", "0.09265", "0.4878", "0.1069", "0.11755", "0.1057" ], [ "0.513", "0.09265", "0.882", "0.09265", "0.882", "0.1069", "0.513", "0.1069" ], [ "0.1184", "0.1081", "0.4902", "0.1081", "0.4902", "0.1217", "0.1184", "0.1217" ], [ "0.513", "0.10925", "0.885", "0.10925", "0.885", "0.1223", "0.513", "0.1223" ], [ "0.1184", "0.12354", "0.4895", "0.1247", "0.4895", "0.1395", "0.1184", "0.1383" ], [ "0.511", "0.12354", "0.8833", "0.1247", "0.8833", "0.1395", "0.511", "0.1383" ], [ "0.12177", "0.1426", "0.4878", "0.1426", "0.4878", "0.1526", "0.12177", "0.1526" ], [ "0.513", "0.1401", "0.882", "0.1414", "0.882", "0.1561", "0.513", "0.155" ], [ "0.11755", "0.1561", "0.486", "0.1561", "0.486", "0.1692", "0.11755", "0.1692" ], [ "0.5146", "0.158", "0.596", "0.158", "0.596", "0.1692", "0.5146", "0.1692" ], [ "0.11755", "0.1716", "0.486", "0.1716", "0.486", "0.1853", "0.11755", "0.1853" ], [ "0.1184", "0.1895", "0.4878", "0.1895", "0.4878", "0.2031", "0.1184", "0.2031" ], [ "0.635", "0.1859", "0.6455", "0.1841", "0.6484", "0.1895", "0.638", "0.1924" ], [ "0.634", "0.1948", "0.6514", "0.1948", "0.6514", "0.2173", "0.634", "0.2173" ], [ "0.6616", "0.1948", "0.681", "0.1948", "0.681", "0.2102", "0.6616", "0.2102" ], [ "0.677", "0.1948", "0.771", "0.1965", "0.771", "0.212", "0.677", "0.2102" ], [ "0.858", "0.1978", "0.885", "0.1978", "0.885", "0.2114", "0.858", "0.2114" ], [ "0.12006", "0.2048", "0.4895", "0.2048", "0.4895", "0.2185", "0.12006", "0.2185" ], [ "0.6304", "0.2131", "0.686", "0.2131", "0.686", "0.2245", "0.6304", "0.2245" ], [ "0.1184", "0.2197", "0.4878", "0.2203", "0.4878", "0.2351", "0.1184", "0.234" ], [ "0.1184", "0.2369", "0.4895", "0.2363", "0.4895", "0.2505", "0.1184", "0.2517" ], [ "0.513", "0.2393", "0.8833", "0.2393", "0.8833", "0.253", "0.513", "0.253" ], [ "0.12006", "0.2542", "0.4878", "0.2542", "0.4878", "0.2673", "0.12006", "0.2673" ], [ "0.511", "0.2546", "0.8833", "0.2559", "0.8833", "0.2708", "0.511", "0.2695" ], [ "0.12006", "0.2695", "0.3997", "0.2695", "0.3997", "0.2832", "0.12006", "0.2832" ], [ "0.513", "0.2715", "0.8833", "0.2715", "0.8833", "0.2861", "0.513", "0.2861" ], [ "0.1351", "0.284", "0.4768", "0.2852", "0.4768", "0.2998", "0.1351", "0.2986" ], [ "0.511", "0.2874", "0.8833", "0.2874", "0.8833", "0.3005", "0.511", "0.3005" ], [ "0.511", "0.3047", "0.7197", "0.3027", "0.7197", "0.3164", "0.511", "0.3184" ], [ "0.1335", "0.3113", "0.4844", "0.3113", "0.4844", "0.326", "0.1335", "0.326" ], [ "0.1545", "0.328", "0.4878", "0.328", "0.4878", "0.3425", "0.1545", "0.3425" ], [ "0.708", "0.33", "0.763", "0.3267", "0.764", "0.3425", "0.7095", "0.3457" ], [ "0.613", "0.3416", "0.681", "0.3416", "0.681", "0.3557", "0.613", "0.3557" ], [ "0.8564", "0.339", "0.8867", "0.339", "0.8867", "0.3557", "0.8564", "0.3557" ], [ "0.157", "0.3457", "0.486", "0.3457", "0.486", "0.3557", "0.157", "0.3557" ], [ "0.687", "0.3467", "0.7827", "0.3486", "0.7827", "0.3665", "0.687", "0.364" ], [ "0.1561", "0.3594", "0.486", "0.3594", "0.486", "0.3723", "0.1561", "0.3723" ], [ "0.6943", "0.3599", "0.729", "0.3599", "0.729", "0.3677", "0.6943", "0.3677" ], [ "0.1561", "0.3772", "0.4878", "0.3772", "0.4878", "0.3901", "0.1561", "0.3901" ], [ "0.511", "0.3813", "0.882", "0.3818", "0.882", "0.3967", "0.511", "0.3955" ], [ "0.1545", "0.3926", "0.4895", "0.3914", "0.4895", "0.405", "0.1545", "0.4062" ], [ "0.511", "0.398", "0.882", "0.398", "0.882", "0.411", "0.511", "0.411" ], [ "0.1561", "0.408", "0.4878", "0.408", "0.4878", "0.4216", "0.1561", "0.4216" ], [ "0.511", "0.4146", "0.881", "0.4146", "0.881", "0.4275", "0.511", "0.4275" ], [ "0.1561", "0.4246", "0.4895", "0.4246", "0.4895", "0.4382", "0.1561", "0.4382" ], [ "0.511", "0.43", "0.8833", "0.4287", "0.8833", "0.4436", "0.511", "0.4448" ], [ "0.1561", "0.4407", "0.413", "0.4407", "0.413", "0.4536", "0.1561", "0.4536" ], [ "0.511", "0.4465", "0.8833", "0.4453", "0.8833", "0.4602", "0.511", "0.4614" ], [ "0.1301", "0.4656", "0.4895", "0.466", "0.4895", "0.481", "0.1301", "0.4797" ], [ "0.511", "0.462", "0.882", "0.4614", "0.882", "0.4756", "0.511", "0.4768" ], [ "0.1545", "0.4827", "0.492", "0.4827", "0.492", "0.4963", "0.1545", "0.4963" ], [ "0.513", "0.4785", "0.8833", "0.4785", "0.8833", "0.4922", "0.513", "0.4922" ], [ "0.1561", "0.4995", "0.4902", "0.4995", "0.4902", "0.513", "0.1561", "0.513" ], [ "0.513", "0.4946", "0.8833", "0.4946", "0.8833", "0.5083", "0.513", "0.5083" ], [ "0.1545", "0.5156", "0.4902", "0.5156", "0.4902", "0.5293", "0.1545", "0.5293" ], [ "0.511", "0.5103", "0.8833", "0.509", "0.8833", "0.524", "0.511", "0.525" ], [ "0.1561", "0.532", "0.4902", "0.532", "0.4902", "0.546", "0.1561", "0.546" ], [ "0.513", "0.527", "0.8833", "0.527", "0.8833", "0.5405", "0.513", "0.5405" ], [ "0.1545", "0.5474", "0.4902", "0.5474", "0.4902", "0.561", "0.1545", "0.561" ], [ "0.513", "0.5435", "0.8833", "0.5435", "0.8833", "0.557", "0.513", "0.557" ], [ "0.1545", "0.5635", "0.4895", "0.5625", "0.4895", "0.5767", "0.1545", "0.5776" ], [ "0.5146", "0.5586", "0.8833", "0.5586", "0.8833", "0.5723", "0.5146", "0.5723" ], [ "0.1545", "0.58", "0.4895", "0.58", "0.4895", "0.5933", "0.1545", "0.5933" ], [ "0.513", "0.5747", "0.5684", "0.5747", "0.5684", "0.589", "0.513", "0.589" ], [ "0.1528", "0.5957", "0.3257", "0.594", "0.3257", "0.6094", "0.1528", "0.61" ], [ "0.5615", "0.6206", "0.58", "0.6206", "0.58", "0.6357", "0.5615", "0.6357" ], [ "0.7173", "0.619", "0.827", "0.6235", "0.825", "0.638", "0.7153", "0.6343" ], [ "0.6113", "0.6216", "0.7173", "0.619", "0.7173", "0.637", "0.6113", "0.6396" ], [ "0.1335", "0.6216", "0.4895", "0.6216", "0.4895", "0.6357", "0.1335", "0.6357" ], [ "0.601", "0.6226", "0.614", "0.6226", "0.614", "0.6313", "0.601", "0.6313" ], [ "0.712", "0.6245", "0.7197", "0.6245", "0.7197", "0.6313", "0.712", "0.6313" ], [ "0.8657", "0.6235", "0.881", "0.6235", "0.881", "0.6353", "0.8657", "0.6353" ], [ "0.1545", "0.638", "0.4895", "0.638", "0.4895", "0.652", "0.1545", "0.652" ], [ "0.5615", "0.638", "0.575", "0.637", "0.5767", "0.6426", "0.5635", "0.6436" ], [ "0.588", "0.6396", "0.6206", "0.6396", "0.6206", "0.6465", "0.588", "0.6465" ], [ "0.711", "0.638", "0.7407", "0.638", "0.7407", "0.6465", "0.711", "0.6465" ], [ "0.1528", "0.653", "0.4878", "0.654", "0.4878", "0.6685", "0.1528", "0.6675" ], [ "0.513", "0.66", "0.879", "0.66", "0.879", "0.6733", "0.513", "0.6733" ], [ "0.1545", "0.6694", "0.4895", "0.6694", "0.4895", "0.684", "0.1545", "0.684" ], [ "0.5156", "0.6787", "0.881", "0.6787", "0.881", "0.6895", "0.5156", "0.6895" ], [ "0.1561", "0.685", "0.486", "0.685", "0.486", "0.6987", "0.1561", "0.6987" ], [ "0.513", "0.6934", "0.8833", "0.6934", "0.8833", "0.707", "0.513", "0.707" ], [ "0.1561", "0.703", "0.4878", "0.703", "0.4878", "0.7163", "0.1561", "0.7163" ], [ "0.511", "0.708", "0.879", "0.7104", "0.879", "0.7246", "0.511", "0.7227" ], [ "0.1561", "0.7188", "0.4895", "0.7188", "0.4895", "0.7324", "0.1561", "0.7324" ], [ "0.511", "0.7227", "0.8867", "0.7236", "0.8867", "0.741", "0.511", "0.7407" ], [ "0.1545", "0.733", "0.3032", "0.733", "0.3032", "0.7466", "0.1545", "0.7466" ], [ "0.513", "0.742", "0.8003", "0.742", "0.8003", "0.756", "0.513", "0.756" ], [ "0.11755", "0.759", "0.3257", "0.7603", "0.3257", "0.778", "0.11755", "0.777" ], [ "0.513", "0.7695", "0.7583", "0.7695", "0.7583", "0.7837", "0.513", "0.7837" ], [ "0.1184", "0.7876", "0.4895", "0.7876", "0.4895", "0.802", "0.1184", "0.802" ], [ "0.513", "0.7944", "0.8833", "0.796", "0.8833", "0.81", "0.513", "0.8086" ], [ "0.1184", "0.804", "0.4895", "0.804", "0.4895", "0.818", "0.1184", "0.818" ], [ "0.5146", "0.8125", "0.882", "0.8125", "0.882", "0.826", "0.5146", "0.826" ], [ "0.11755", "0.8193", "0.4878", "0.8184", "0.4878", "0.833", "0.11755", "0.8345" ], [ "0.513", "0.8276", "0.885", "0.8276", "0.885", "0.8413", "0.513", "0.8413" ], [ "0.11755", "0.8345", "0.4895", "0.835", "0.4895", "0.8496", "0.11755", "0.8486" ], [ "0.5156", "0.8457", "0.881", "0.8457", "0.881", "0.8555", "0.5156", "0.8555" ], [ "0.1377", "0.857", "0.4492", "0.8594", "0.4492", "0.8735", "0.1377", "0.8716" ], [ "0.513", "0.86", "0.885", "0.86", "0.885", "0.8735", "0.513", "0.8735" ], [ "0.1394", "0.8716", "0.4568", "0.8716", "0.4568", "0.8853", "0.1394", "0.8853" ], [ "0.12006", "0.8853", "0.3652", "0.8853", "0.3652", "0.8955", "0.12006", "0.8955" ], [ "0.534", "0.882", "0.81", "0.883", "0.81", "0.898", "0.534", "0.8965" ], [ "0.1394", "0.8945", "0.403", "0.8955", "0.403", "0.909", "0.1394", "0.9077" ], [ "0.513", "0.8965", "0.586", "0.8965", "0.586", "0.9077", "0.513", "0.9077" ] ]
[ "definedcategories(NadeauandSekine.2007),and", "model attempts to predict the context surrounding", "MT to English. For the purposes of error analy-", "a word, given the word itself whereas CBOW pre-", "sis and discussion, we focus on the NER task in", "dicts the word given its context. Formally, given a", "particular. NEs are typically noun phrases and oc-", "corpus having a sequence of words wi, W2, .., Wr.", "currarelyinthecorpus.makingthegeneralization", "the skip-gram model maximizes the following log-", "across types and domains difficult. We chose NER", "likelihood:", "as our test bed because word vectors have a di-", "rect impact on NER model performance as sug-", "7", "2", ">", " log p(ulw,)", "(1)", "gested by (Ruder, 2017) and observed by us in Ta-", "i=1VEC,", "ble 3, where the model without any pre-trained em-", "beddings scores an average of 18 F1 points less. It", "where C, are the context tokens, within a specified", "thus provides a transparent way to measure the ef-", "window of the focus word w; and p(ulw,) is the", "fectiveness of different subword units.", "probability of observing context word u given fo-", "This paper makes the following contributions:", " cus word w,. The skipgram was originally defined", "using the softmax function:", "1. We show that embeddings trained on sub", "word representations yield better task per-", "es(uw,)", "p(ulw,) =", "(2)", "formance than those trained only on whole", "w,es(w,j)", "words. This is especially true in a transfer set-", "Li=l", "ting, where subword representations also out-", "where s is a scoring function mapping u and w,", "perform a word alignment based method. We", "to R. The summation in the denominator is over", "further show that embeddings trained on mor-", "the entire vocabulary Wwhich makes this formula-", "phological representations often outperform", "tion computationally inefficient as cost of gradient", "those trained only on whole words.", "computation is proportional to W which is quite", "2. We demonstrate that training embeddings", "large (~ 10). Mikolov et al. (2013b) hence em-", "on character-based phonemic representations", "ploy negative sampling to make this computation", "presents substantial performance advantages", "efficient and robust (Levy et al., 2015) and give", "over training on orthographic characters in", "better representations for infrequent words, which", "some transfer settings, e.g. when there are", "is crucial for the low resource settings. Negative", "script differences across languages.These", "sampling represents the above objective function", "advantages are in addition to those from mor-", "(Equation 1) using a binary logistic loss as shown", "phological representations (lemmas and mor-", "below:", "phological properties).", "V", "I I(-s(w),wn)", "l(s(w,w.)+", "3. We produce continuous representations for", "", "", "(3)", "each subword unit, giving researchers the", "-1", "WEC", "W,EN", "ability to use them in their own tasks as they", "where N,are the negative words sampled ran", "see fit.The code for training word em-", "domly from vocabulary andI is the log-sigmoid", "beddings and the embeddings 2 which pro-", "function. The scoring function s is a dot product", "duced the best results are publicly available.", "similarity function given by s(w,w.) = uwYw", "We also release morphological analyzers for", "where uu, and vw, are the embeddings of the focus", "Hindi and Bengali3.", "word and its context word respectively.", "2 Skipgram Objective", "3SubwordRepresentation", "The two most popular training objectives for", "Mikolov et al. (2013b)'s model fails to capture", "monolingual word embeddings are the skip-", "internal structure of words and does not general-", "gram and continuous-bag-of-words (CBOW), in-", "ize for out of vocabulary words that may share", "troduced by Mikolov et al. (2013a). The skipgram", "morphemes with in-vocabulary words. The prob-", "'https://github.com/Aditi138/Embeddings", "lems of this method are particularly salient for", "2https://github.com/Aditi138/Embeddings/", "tree/master/embeddings_released", "thttps://code.google.com/archive/p/", "3https://github.com/dmort27/mstem", "word2vec/" ]
{ "arxiv_id": "1808.09500", "language": "en", "page_idx": 1 }
1808.09500-en-2
1808.09500-en-2.jpg
<FigureHere> Figure 1: Representations of a word in Uyghur morphologically rich languages such as Turkish, Uyghur, Hindi, and Bengali. Although, given a large enough training corpus, most or all morphological forms of a lexeme (of which there may be many) could theoretically learn to have similar vector representations, it will be vastly more data efficient if we can take into account regularities of their form to model morphology explicitly. We explore the following methods for doing so: Orthographic units: Wieting et al.(2016) and Bojanowski et al.(2016) show the utility of character-level modeling by representing the focus word $w_i$ as a set of its character ngrams, denoted by $\mathbf{u}_{w_{i}}=\frac{1}{|G|}\sum_{g\in G}\mathbf{x}_{g}$,where $G$ is the set of character ngrams and $\mathbf{x}_{g}$ is the vector representation of ngram g. Such representations capture morphological information in a brute-force but principled fashion\_words that share the same morpheme are more likely to share the same character ngrams than words that do not. Morphological units: Previous work has found that morphological relationships between words can be captured more directly if embeddings are trained on morphological representations (Luong et al., 2013; Botha and Blunsom, 2014; Cotterell and Schütze, 2015). Avraham and Goldberg (2017) explicitly model lemmas (stems or citation forms) and morphological properties (the sets of which are sometimes called “tags”) for training the word embeddings. Lemmas capture information about the lexical identity of a word and are closely correlated with the semantics of a word; tags capture information about the syntactic context of a word. See Figure 1 for an example. We take inspiration from the above work in adapting these subword units for cross-lingual transfer. Phonological units: Subword units other than tags might seem to be of no use in closely-related languages with different scripts (such as Serbian and Croatian). Following Bharadwaj et al. (2016), we convert text from its orthographic form into a phoneme ngrams $x_{< qa}+ x_{qar}+ \ldots + x_{majdu> }$ lemma $x_\mathrm{qari}$ ${\mathrm{morphemes}}$ $x_{Verb}+ x_{Pot}+ . . . + x_{A3sg}$ Figure 2: Vector representations of a word in Uyghur phonemic representation, stated in terms of the International Phonetic Alphabet (IPA). We then train embeddings on this representation. This means that, roughly speaking, morphemes that sound the same will be represented in the same way across languages. ### 4 Cross-lingual Transfer In this section we discuss in detail both our approaches for cross-lingual transfer along with the relevant baselines. ### 4.1 Proposed Approach We propose to use phoneme ngrams, represented using IPA, in addition to the lemma and morphological tags, to enable effective transfer across languages. Tsvetkov and Dyer (2016) demonstrate the effectiveness of projecting words from orthographic space to phonemic space as related languages often share similar phonological patterns. More formally, let $P_w$ be the set of linguistic properties of a word consisting of the phoneme ngrams $(\mathbf{I}_{g})$,lemma $(\mathbf{L})$ and individual morphological tags $(\mathbf{M}_{m}).$ The focus word is then represented as the average sum of its linguistically motivated subword units: $$\mathbf{v}_{w_c}=\frac{1}{|P_{w_c}|}\sum_{p\in P_{w_c}}\mathbf{x}_p$$ where $\mathbf{x}_p$ is the vector representation of subword unit $p$ of word $w_c.$ The average operation is important to remove any bias towards words having too many or too few subword units. For instance, the Uyghur word in Figure 1 is represented using its phoneme-ngrams ranging from 3-grams to 6- grams, lemma and morphological tags as shown in Figure 2. Avraham and Goldberg (2017) instead encode the different morphological inflections as one tag, so that Verb+Pot+Neg+Pres+A3sg would be encoded as $x_Verb+Pot+Neg+Pres+A3sg.$ We encode each property in a tag separately to avoid data sparsity issues and empirically find this approach to perform better. We present two training regimes for transferring knowledge from a related language, namely CT-
[ [ "0.1335", "0.0748", "0.2217", "0.0748", "0.2217", "0.08905", "0.1335", "0.08905" ], [ "0.2351", "0.0748", "0.3015", "0.0748", "0.3015", "0.08905", "0.2351", "0.08905" ], [ "0.523", "0.0748", "0.66", "0.0736", "0.66", "0.0885", "0.523", "0.08905" ], [ "0.6665", "0.076", "0.864", "0.0766", "0.864", "0.09143", "0.6665", "0.0903" ], [ "0.2334", "0.0903", "0.3418", "0.0903", "0.3418", "0.1051", "0.2334", "0.1051" ], [ "0.601", "0.0903", "0.6675", "0.0903", "0.6675", "0.1051", "0.601", "0.1051" ], [ "0.66", "0.09143", "0.708", "0.0932", "0.706", "0.1081", "0.659", "0.1057" ], [ "0.2317", "0.1069", "0.3594", "0.1057", "0.3594", "0.12054", "0.2317", "0.1217" ], [ "0.1394", "0.09143", "0.22", "0.09143", "0.22", "0.1027", "0.1394", "0.1027" ], [ "0.1293", "0.1081", "0.2241", "0.1081", "0.2241", "0.1194", "0.1293", "0.1194" ], [ "0.567", "0.10925", "0.66", "0.10925", "0.66", "0.12054", "0.567", "0.12054" ], [ "0.66", "0.1069", "0.8564", "0.1081", "0.8564", "0.1259", "0.66", "0.1247" ], [ "0.126", "0.1217", "0.2217", "0.12354", "0.2217", "0.1383", "0.126", "0.136" ], [ "0.2334", "0.1223", "0.4878", "0.1223", "0.4878", "0.1372", "0.2334", "0.1372" ], [ "0.236", "0.1383", "0.378", "0.1383", "0.378", "0.1526", "0.236", "0.1526" ], [ "0.517", "0.133", "0.876", "0.133", "0.876", "0.1467", "0.517", "0.1467" ], [ "0.1755", "0.1395", "0.22", "0.1372", "0.2217", "0.152", "0.1763", "0.1538" ], [ "0.1427", "0.1716", "0.461", "0.1729", "0.461", "0.187", "0.1427", "0.1859" ], [ "0.5156", "0.1729", "0.882", "0.1729", "0.882", "0.1859", "0.5156", "0.1859" ], [ "0.513", "0.1895", "0.885", "0.1895", "0.885", "0.2031", "0.513", "0.2031" ], [ "0.513", "0.2048", "0.885", "0.2048", "0.885", "0.2197", "0.513", "0.2197" ], [ "0.1184", "0.2144", "0.4895", "0.2144", "0.4895", "0.2286", "0.1184", "0.2286" ], [ "0.511", "0.2197", "0.885", "0.2203", "0.885", "0.2351", "0.511", "0.234" ], [ "0.12006", "0.2299", "0.4902", "0.2299", "0.4902", "0.2446", "0.12006", "0.2446" ], [ "0.511", "0.2363", "0.885", "0.2369", "0.885", "0.2517", "0.511", "0.2505" ], [ "0.12006", "0.2465", "0.4895", "0.2465", "0.4895", "0.2612", "0.12006", "0.2612" ], [ "0.5146", "0.2546", "0.5938", "0.2546", "0.5938", "0.2666", "0.5146", "0.2666" ], [ "0.11755", "0.2612", "0.4895", "0.2625", "0.4895", "0.2766", "0.11755", "0.2756" ], [ "0.1184", "0.279", "0.4895", "0.279", "0.4895", "0.2922", "0.1184", "0.2922" ], [ "0.5156", "0.284", "0.5366", "0.284", "0.5366", "0.2915", "0.5156", "0.2915" ], [ "0.54", "0.279", "0.742", "0.2778", "0.742", "0.2957", "0.54", "0.2964" ], [ "0.5366", "0.2852", "0.5415", "0.2852", "0.5415", "0.2903", "0.5366", "0.2903" ], [ "0.12006", "0.2944", "0.486", "0.2944", "0.486", "0.308", "0.12006", "0.308" ], [ "0.1184", "0.3088", "0.4895", "0.3088", "0.4895", "0.3225", "0.1184", "0.3225" ], [ "0.511", "0.3047", "0.882", "0.306", "0.882", "0.3206", "0.511", "0.3196" ], [ "0.11755", "0.326", "0.4878", "0.326", "0.4878", "0.339", "0.11755", "0.339" ], [ "0.513", "0.3225", "0.885", "0.3225", "0.885", "0.3374", "0.513", "0.3374" ], [ "0.511", "0.3374", "0.6533", "0.3384", "0.6533", "0.3528", "0.511", "0.3516" ], [ "0.1184", "0.3433", "0.4265", "0.3433", "0.4265", "0.357", "0.1184", "0.357" ], [ "0.5156", "0.3665", "0.5557", "0.3665", "0.5557", "0.3777", "0.5156", "0.3777" ], [ "0.5483", "0.3652", "0.714", "0.3652", "0.714", "0.379", "0.5483", "0.379" ], [ "0.511", "0.3855", "0.882", "0.3855", "0.882", "0.3984", "0.511", "0.3984" ], [ "0.1184", "0.3706", "0.4895", "0.3694", "0.4895", "0.3843", "0.1184", "0.3855" ], [ "0.12006", "0.3872", "0.4902", "0.3872", "0.4902", "0.401", "0.12006", "0.401" ], [ "0.1184", "0.4038", "0.4902", "0.4038", "0.4902", "0.4175", "0.1184", "0.4175" ], [ "0.511", "0.402", "0.881", "0.402", "0.881", "0.415", "0.511", "0.415" ], [ "0.1184", "0.4192", "0.4895", "0.4187", "0.4895", "0.4329", "0.1184", "0.434" ], [ "0.511", "0.4187", "0.881", "0.4187", "0.881", "0.4316", "0.511", "0.4316" ], [ "0.11755", "0.4353", "0.4895", "0.4353", "0.4895", "0.4531", "0.11755", "0.4531" ], [ "0.511", "0.434", "0.8833", "0.4329", "0.8833", "0.4478", "0.511", "0.449" ], [ "0.1184", "0.452", "0.4895", "0.4507", "0.4895", "0.4656", "0.1184", "0.466" ], [ "0.513", "0.4495", "0.882", "0.4495", "0.882", "0.4631", "0.513", "0.4631" ], [ "0.12006", "0.4685", "0.4895", "0.4685", "0.4895", "0.4822", "0.12006", "0.4822" ], [ "0.511", "0.466", "0.8833", "0.4656", "0.8833", "0.4797", "0.511", "0.481" ], [ "0.11755", "0.484", "0.4878", "0.484", "0.4878", "0.4976", "0.11755", "0.4976" ], [ "0.513", "0.4827", "0.8833", "0.4822", "0.8833", "0.4954", "0.513", "0.4963" ], [ "0.12177", "0.502", "0.4878", "0.502", "0.4878", "0.5127", "0.12177", "0.5127" ], [ "0.513", "0.4988", "0.882", "0.4988", "0.882", "0.5127", "0.513", "0.5127" ], [ "0.1184", "0.514", "0.4902", "0.5166", "0.4902", "0.53", "0.1184", "0.528" ], [ "0.513", "0.514", "0.8833", "0.514", "0.8833", "0.528", "0.513", "0.528" ], [ "0.1184", "0.532", "0.2896", "0.532", "0.2896", "0.546", "0.1184", "0.546" ], [ "0.5146", "0.5293", "0.882", "0.5293", "0.882", "0.5435", "0.5146", "0.5435" ], [ "0.5146", "0.5464", "0.885", "0.5464", "0.885", "0.561", "0.5146", "0.561" ], [ "0.1184", "0.5586", "0.4878", "0.5586", "0.4878", "0.5723", "0.1184", "0.5723" ], [ "0.51", "0.5625", "0.881", "0.5625", "0.881", "0.576", "0.51", "0.576" ], [ "0.1184", "0.576", "0.4878", "0.576", "0.4878", "0.589", "0.1184", "0.589" ], [ "0.5146", "0.58", "0.5977", "0.58", "0.5977", "0.5913", "0.5146", "0.5913" ], [ "0.1184", "0.5913", "0.486", "0.5913", "0.486", "0.6055", "0.1184", "0.6055" ], [ "0.687", "0.604", "0.7036", "0.604", "0.7036", "0.6133", "0.687", "0.6133" ], [ "0.7197", "0.6055", "0.7734", "0.6094", "0.7715", "0.626", "0.7188", "0.6226" ], [ "0.6616", "0.6094", "0.7583", "0.6226", "0.7524", "0.6445", "0.6543", "0.6313" ], [ "0.12006", "0.6094", "0.4878", "0.6094", "0.4878", "0.6235", "0.12006", "0.6235" ], [ "0.6274", "0.61", "0.6616", "0.616", "0.657", "0.629", "0.623", "0.6226" ], [ "0.11755", "0.6235", "0.486", "0.6235", "0.486", "0.637", "0.11755", "0.637" ], [ "0.12006", "0.64", "0.4878", "0.64", "0.4878", "0.654", "0.12006", "0.654" ], [ "0.12177", "0.6567", "0.4902", "0.6567", "0.4902", "0.6704", "0.12177", "0.6704" ], [ "0.5146", "0.653", "0.885", "0.653", "0.885", "0.6675", "0.5146", "0.6675" ], [ "0.1184", "0.6733", "0.4902", "0.6733", "0.4902", "0.687", "0.1184", "0.687" ], [ "0.513", "0.6694", "0.8833", "0.6694", "0.8833", "0.684", "0.513", "0.684" ], [ "0.12177", "0.6914", "0.4895", "0.6914", "0.4895", "0.7017", "0.12177", "0.7017" ], [ "0.513", "0.686", "0.8833", "0.686", "0.8833", "0.6997", "0.513", "0.6997" ], [ "0.12006", "0.706", "0.492", "0.706", "0.492", "0.7197", "0.12006", "0.7197" ], [ "0.511", "0.7017", "0.882", "0.703", "0.882", "0.7163", "0.511", "0.7153" ], [ "0.1184", "0.72", "0.4878", "0.72", "0.4878", "0.734", "0.1184", "0.734" ], [ "0.5146", "0.7188", "0.8833", "0.7188", "0.8833", "0.7324", "0.5146", "0.7324" ], [ "0.1184", "0.7383", "0.4895", "0.7383", "0.4895", "0.752", "0.1184", "0.752" ], [ "0.513", "0.734", "0.882", "0.734", "0.882", "0.7476", "0.513", "0.7476" ], [ "0.1184", "0.7544", "0.4937", "0.7544", "0.4937", "0.767", "0.1184", "0.767" ], [ "0.5146", "0.7505", "0.882", "0.7505", "0.882", "0.764", "0.5146", "0.764" ], [ "0.1184", "0.7686", "0.486", "0.7686", "0.486", "0.782", "0.1184", "0.782" ], [ "0.5146", "0.7666", "0.8833", "0.7666", "0.8833", "0.78", "0.5146", "0.78" ], [ "0.1184", "0.786", "0.4895", "0.786", "0.4895", "0.8", "0.1184", "0.8" ], [ "0.513", "0.782", "0.8833", "0.782", "0.8833", "0.796", "0.513", "0.796" ], [ "0.513", "0.7974", "0.8833", "0.7964", "0.8833", "0.811", "0.513", "0.8125" ], [ "0.12177", "0.804", "0.3862", "0.804", "0.3862", "0.814", "0.12177", "0.814" ], [ "0.51", "0.8125", "0.802", "0.818", "0.802", "0.835", "0.51", "0.83" ], [ "0.79", "0.8154", "0.882", "0.8154", "0.882", "0.8267", "0.79", "0.8267" ], [ "0.12006", "0.8306", "0.4902", "0.8306", "0.4902", "0.844", "0.12006", "0.844" ], [ "0.513", "0.8306", "0.882", "0.8306", "0.882", "0.8457", "0.513", "0.8457" ], [ "0.1184", "0.847", "0.4902", "0.847", "0.4902", "0.861", "0.1184", "0.861" ], [ "0.513", "0.847", "0.8833", "0.847", "0.8833", "0.861", "0.513", "0.861" ], [ "0.1184", "0.8633", "0.4902", "0.8633", "0.4902", "0.877", "0.1184", "0.877" ], [ "0.513", "0.8643", "0.6274", "0.8643", "0.6274", "0.877", "0.513", "0.877" ], [ "0.1184", "0.879", "0.4895", "0.879", "0.4895", "0.8926", "0.1184", "0.8926" ], [ "0.531", "0.879", "0.882", "0.879", "0.882", "0.8936", "0.531", "0.8936" ], [ "0.12006", "0.8955", "0.4937", "0.8955", "0.4937", "0.909", "0.12006", "0.909" ], [ "0.513", "0.8945", "0.882", "0.8945", "0.882", "0.909", "0.513", "0.909" ] ]
[ " graphemes", "(Guwue)", "phoneme ngrams", "X<qa+Xgar+...+Xmajdu>", "/qarijalmajdu/", "lemma", "Xqari", "/qari-jal-ma-jdu/", "phonemes", "morphemes", "morphemes", "Xverb + X Pot + ... + X A3sg", "lemma+tag", "qari+Verb+Pot+Neg+Pres+A3sg", "‘s/he can't care for'", "Figure 2: Vector representations of a word in Uyghur", "gloss", "Figure 1: Representations of a word in Uyghur", "phonemic representation, stated in terms of the In-", "ternational Phonetic Alphabet (IPA). We then train", "embeddings on this representation. This means", "morphologically rich languages such as Turkish,", "that, roughly speaking, morphemes that sound the", "Uyghur, Hindi, and Bengali. Although, given a", "same will be represented in the same way across", "large enough training corpus, most or all morpho-", "languages.", "logical forms of a lexeme (of which there may be", "many) could theoretically learn to have similar vec-", "4", " Cross-lingual Transfer", "", "tor representations, it will be vastly more data ef-", "ficient if we can take into account regularities of", "In this section we discuss in detail both our ap-", "their form to model morphology explicitly. We ex-", "proaches for cross-lingual transfer along with the", "relevant baselines.", "plore the following methods for doing so:", "4.1", "Proposed Approach", "We propose to use phoneme ngrams, represented", "Orthographic units: Wieting et al. (2016) and", "Bojanowski et al. (2016) show the utility of", "character-level modeling by representing the focus", " using IPA, in addition to the lemma and morpho-", "word w, as a set of its character ngrams, denoted", "logical tags, to enable effective transfer across lan-", "by uw, = Zge Xg, where G is the set of char-", "guages. Tsvetkov and Dyer (2016) demonstrate", "acter ngrams and xg is the vector representation of", "the effectiveness of projecting words from ortho-", "ngram g. Such representations capture morpho-", "graphic space to phonemic space as related lan-", "logical information in a brute-force but principled", "guages often share similar phonological patterns.", "fashion-wordsthatsharethesamemorphemeare", "More formally, let Pu, be the set of linguistic prop-", "more likely to share the same character ngrams", "erties of a word consisting of the phoneme ngrams", "than words that do not.", "(I.), lemma (L) and individual morphological tags", "(Mm). The focus word is then represented as the", "Morphological units:Previous work has found", " average sum of its linguistically motivated sub-", "that morphological relationships between words", "word units:", "can be captured more directly if embeddings are", "1", "E xp", "PulpePue", "trained on morphological representations (Luong", "Vwe", "et al.. 2013: Botha and Blunsom. 2014: Cot-", "terell and Schitze, 2015). Avraham and Goldberg", "(2017)explicitly model lemmas (stems or citation", "where x, is the vector representation of subword", "forms) and morphological properties (the sets of", "unit p of word we. The average operation is im-", "whichare sometimescalled“tags\")fortrainingthe", "portant to remove any bias towards words having", "word embeddings. Lemmas capture information", "too many or too few subword units. For instance,", "about the lexical identity of a word and are closely", "the Uyghur word in Figure 1 is represented using", "correlated with the semantics of a word; tags cap-", "its phoneme-ngrams ranging from 3-grams to 6-", "ture information about the syntactic context of a", "grams, lemma and morphological tags as shown in", "word. See Figure 1 for an example. We take inspi-", "Figure 2. Avraham and Goldberg (2017) instead", "ration from the above work in adapting these sub-", "encode the different morphological inflections as", "one tag, so that Verb+Pot+Neg+Pres+A3sg would", "word unitsforcross-lingual transfer.", "be encoded as Xverb+ Pot+Neg+Pres+A3sg.", ".Weencode", "Phonological units: Subword units other than", "each property in a tag separately to avoid data spar-", "tags might seem to be of no use in closely-related", "sity issues and empirically find this approach to", "languages with different scripts (such as Serbian", "perform better.", "and Croatian). Following Bharadwaj et al. (2016),", "We present two training regimes for transferring", "we convert text from its orthographic form into a", "knowledge from a related language, namely CT-" ]
{ "arxiv_id": "1808.09500", "language": "en", "page_idx": 2 }
1808.09500-en-3
1808.09500-en-3.jpg
Joint and CT-FineTune by explicitly incorporating the subword units. We hypothesize that having word representations of both languages lying in a similar space will aid the low resource language in leveraging resources from the high resource language, including annotations for the downstream task. These two regimes are described below: CT-Joint: This model explicitly maps the word representations of the two languages into the same space by training simultaneously on both. This is achieved simply by combining the corpora of both the high-resource and the low-resource language and training jointly using the skip-gram objective, discussed above. The central intuition is as follows: once two related languages are placed in the same phonological and morphological space, they will share many subword units in common and this will make joint training profitable. Duong et al. (2016) and Gouws et al. (2015) have previously shown the advantages of joint training and we observe this to be true in our case as well. CT-FineTune: This model implicitly maps the word representations of the two languages into the same space. The model attempts this by taking the learned continuous representations of the high resource subword units, referred to by $\mathbf{x}_{SWU}^{Hi}$, and uses them to initialize the model for the low resource language. The model is first trained using all subword units on the high resource language and the learned representations are then used for initializing the subword units for the low resource language. To elucidate which pretrained subword helped the most on the low resource language, we use the same model for different experiments, which is trained using all subword units—phoneme-ngrams, lemma and morphological properties. The linguistic intuition behind CTFineTune is similar to that behind CT-Joint. This idea of transferring parameters from high resource language has been previously explored by Zoph et al.(2016) for low resource neural machine translation which showed considerable improvement. ## 5 Evaluation In this section, we first describe the model setup for training word embeddings followed by details on NER and MT experiments. ## 5.1 Implementation details We base our model on the C++ implementation of $fasttext^5($Bojanowski et al., 2016) with modifications as described above. Data: We represent a word in the training corpus using the format presented by Avraham and Goldberg (2017). For instance, the Uyghur word in Figure 1 is represented as follows: phoneme ipa: qari- $jalmajdu$, lemma l:$qari$, and morphological inflections m:Verb+Pot+Neg+Pres+A3sg. We consider phoneme-ngrams ranging from 3-grams to 6- grams and append a special start symbol < and end symbol> to the word. We discard unigrams and bigram ngrams on the assumption that they don't contribute much to the word. Linguistic properties: We experiment with different subword units for both the transfer setting and the monolingual setting. We use the orthography-to-IPA tool Epitran (Mortensen et al., 2018) to obtain the phonemic representations. The lemmas and morphological properties for a word in context are obtained using a rule-based morphological analyzer in such a fashion as to produce tags similar to the high resource language. For Turkish we use the morphological disambiguator developed by (Shen et al., 2016), which in turn is based on an FST-based morphological analyzer developed by Oflazer (1994). For Uyghur, we took a (parser combinator based) morphological analyzer that had been developed for a DARPA LORELEI evaluation and modified it to output part-of-speech tags and to use a property set that was as close as possible to that of the Oflazer Turkish analyzer. The analyzer for Turkish produces 116 inflectional properties and for Uyghur we get 54 properties, of which 64% are shared with Turkish. Unfortunately, we did not have access to existing morphological analyzers for Hindi or Bengali. Many Hindi morphological analyzers exist, but they are not typically released publicly (Malladi and Mannem, 2013; Goyal and Lehal, 2008). We developed our own analyzers using a stemmer-like framework$^{6}$ over a span of few weeks (2-3), which gave 8 unique morphological tags for Hindi and 10 for Bengali (for both languages, noun inflection only) of which just 2 were shared with Hindi. Morphologically speaking, we only use inflec- $^5$https://github.com/facebookresearch/ fastText/ $^{6}$https://github.com/dmort27/mstem
[ [ "0.1184", "0.0748", "0.4895", "0.076", "0.4895", "0.0903", "0.1184", "0.08905" ], [ "0.513", "0.0766", "0.739", "0.0766", "0.739", "0.0903", "0.513", "0.0903" ], [ "0.1184", "0.09143", "0.4878", "0.09143", "0.4878", "0.1057", "0.1184", "0.1057" ], [ "0.513", "0.0968", "0.885", "0.0974", "0.885", "0.11224", "0.513", "0.111" ], [ "0.1184", "0.1081", "0.4902", "0.1081", "0.4902", "0.1223", "0.1184", "0.1223" ], [ "0.513", "0.114", "0.882", "0.114", "0.882", "0.1277", "0.513", "0.1277" ], [ "0.11755", "0.12354", "0.4902", "0.1247", "0.4902", "0.1395", "0.11755", "0.1383" ], [ "0.513", "0.1312", "0.7", "0.1312", "0.7", "0.1443", "0.513", "0.1443" ], [ "0.1184", "0.1414", "0.4895", "0.1414", "0.4895", "0.155", "0.1184", "0.155" ], [ "0.12006", "0.1567", "0.4902", "0.1567", "0.4902", "0.1704", "0.12006", "0.1704" ], [ "0.513", "0.1567", "0.8833", "0.1567", "0.8833", "0.1704", "0.513", "0.1704" ], [ "0.12006", "0.1729", "0.4568", "0.1729", "0.4568", "0.187", "0.12006", "0.187" ], [ "0.511", "0.1733", "0.882", "0.1729", "0.882", "0.187", "0.511", "0.1882" ], [ "0.511", "0.1895", "0.881", "0.1895", "0.881", "0.2031", "0.511", "0.2031" ], [ "0.513", "0.2048", "0.8833", "0.206", "0.8833", "0.2203", "0.513", "0.2197" ], [ "0.1351", "0.2114", "0.4895", "0.212", "0.4895", "0.2268", "0.1351", "0.2257" ], [ "0.513", "0.2227", "0.8833", "0.2227", "0.8833", "0.2363", "0.513", "0.2363" ], [ "0.1184", "0.2286", "0.4895", "0.2286", "0.4895", "0.2434", "0.1184", "0.2434" ], [ "0.513", "0.2382", "0.8833", "0.2382", "0.8833", "0.2517", "0.513", "0.2517" ], [ "0.12006", "0.2452", "0.4878", "0.2452", "0.4878", "0.2588", "0.12006", "0.2588" ], [ "0.513", "0.2542", "0.882", "0.253", "0.882", "0.2673", "0.513", "0.2683" ], [ "0.12006", "0.2612", "0.4902", "0.2612", "0.4902", "0.2756", "0.12006", "0.2756" ], [ "0.5146", "0.2708", "0.8833", "0.2708", "0.8833", "0.284", "0.5146", "0.284" ], [ "0.12006", "0.279", "0.486", "0.279", "0.486", "0.2893", "0.12006", "0.2893" ], [ "0.511", "0.2852", "0.882", "0.2852", "0.882", "0.2986", "0.511", "0.2986" ], [ "0.1184", "0.2944", "0.4895", "0.2922", "0.4895", "0.306", "0.1184", "0.308" ], [ "0.12006", "0.3088", "0.4895", "0.3088", "0.4895", "0.3225", "0.12006", "0.3225" ], [ "0.5146", "0.304", "0.882", "0.304", "0.882", "0.3142", "0.5146", "0.3142" ], [ "0.513", "0.3184", "0.7314", "0.3184", "0.7314", "0.332", "0.513", "0.332" ], [ "0.1184", "0.326", "0.4902", "0.326", "0.4902", "0.339", "0.1184", "0.339" ], [ "0.12006", "0.3425", "0.4902", "0.3425", "0.4902", "0.3557", "0.12006", "0.3557" ], [ "0.513", "0.3445", "0.881", "0.3445", "0.881", "0.3582", "0.513", "0.3582" ], [ "0.1184", "0.3582", "0.4902", "0.3582", "0.4902", "0.3718", "0.1184", "0.3718" ], [ "0.513", "0.3623", "0.8833", "0.3623", "0.8833", "0.376", "0.513", "0.376" ], [ "0.12006", "0.3735", "0.4902", "0.3735", "0.4902", "0.3872", "0.12006", "0.3872" ], [ "0.5146", "0.3777", "0.885", "0.3777", "0.885", "0.3914", "0.5146", "0.3914" ], [ "0.1184", "0.3896", "0.4878", "0.3896", "0.4878", "0.4038", "0.1184", "0.4038" ], [ "0.5146", "0.3938", "0.882", "0.3938", "0.882", "0.4067", "0.5146", "0.4067" ], [ "0.1184", "0.4067", "0.4895", "0.4067", "0.4895", "0.4204", "0.1184", "0.4204" ], [ "0.5146", "0.4104", "0.885", "0.4104", "0.885", "0.4233", "0.5146", "0.4233" ], [ "0.1184", "0.4229", "0.4517", "0.4229", "0.4517", "0.4358", "0.1184", "0.4358" ], [ "0.513", "0.427", "0.882", "0.427", "0.882", "0.4407", "0.513", "0.4407" ], [ "0.511", "0.4424", "0.881", "0.4424", "0.881", "0.456", "0.511", "0.456" ], [ "0.1368", "0.4602", "0.4902", "0.4614", "0.4902", "0.4756", "0.1368", "0.4744" ], [ "0.511", "0.4573", "0.8833", "0.4578", "0.8833", "0.4727", "0.511", "0.4714" ], [ "0.12006", "0.478", "0.4895", "0.478", "0.4895", "0.4922", "0.12006", "0.4922" ], [ "0.511", "0.4744", "0.882", "0.4744", "0.882", "0.488", "0.511", "0.488" ], [ "0.1184", "0.4934", "0.4878", "0.4934", "0.4878", "0.5083", "0.1184", "0.5083" ], [ "0.513", "0.4905", "0.882", "0.4905", "0.882", "0.5044", "0.513", "0.5044" ], [ "0.12006", "0.5103", "0.4902", "0.5103", "0.4902", "0.524", "0.12006", "0.524" ], [ "0.513", "0.506", "0.885", "0.506", "0.885", "0.5195", "0.513", "0.5195" ], [ "0.1184", "0.525", "0.4895", "0.5254", "0.4895", "0.5405", "0.1184", "0.539" ], [ "0.511", "0.5225", "0.882", "0.5225", "0.882", "0.536", "0.511", "0.536" ], [ "0.1142", "0.536", "0.4937", "0.538", "0.4937", "0.5635", "0.1142", "0.561" ], [ "0.513", "0.5376", "0.885", "0.538", "0.885", "0.5527", "0.513", "0.552" ], [ "0.11755", "0.558", "0.4902", "0.557", "0.4902", "0.572", "0.11755", "0.5723" ], [ "0.5146", "0.5547", "0.885", "0.5547", "0.885", "0.5684", "0.5146", "0.5684" ], [ "0.1184", "0.5747", "0.4895", "0.5747", "0.4895", "0.5884", "0.1184", "0.5884" ], [ "0.511", "0.5693", "0.882", "0.5693", "0.882", "0.583", "0.511", "0.583" ], [ "0.1184", "0.5913", "0.4902", "0.5913", "0.4902", "0.605", "0.1184", "0.605" ], [ "0.511", "0.586", "0.8833", "0.5874", "0.8833", "0.6016", "0.511", "0.601" ], [ "0.12006", "0.607", "0.4902", "0.607", "0.4902", "0.6206", "0.12006", "0.6206" ], [ "0.511", "0.6025", "0.8833", "0.6025", "0.8833", "0.616", "0.511", "0.616" ], [ "0.1184", "0.6226", "0.4895", "0.6226", "0.4895", "0.6357", "0.1184", "0.6357" ], [ "0.5146", "0.619", "0.882", "0.619", "0.882", "0.633", "0.5146", "0.633" ], [ "0.1184", "0.6396", "0.4895", "0.6396", "0.4895", "0.653", "0.1184", "0.653" ], [ "0.5146", "0.6353", "0.882", "0.6353", "0.882", "0.6484", "0.5146", "0.6484" ], [ "0.11755", "0.655", "0.4902", "0.654", "0.4902", "0.6685", "0.11755", "0.6694" ], [ "0.513", "0.651", "0.881", "0.651", "0.881", "0.6646", "0.513", "0.6646" ], [ "0.11755", "0.6704", "0.4878", "0.6704", "0.4878", "0.684", "0.11755", "0.684" ], [ "0.513", "0.6675", "0.882", "0.6675", "0.882", "0.681", "0.513", "0.681" ], [ "0.1184", "0.687", "0.4895", "0.687", "0.4895", "0.7007", "0.1184", "0.7007" ], [ "0.513", "0.683", "0.882", "0.683", "0.882", "0.697", "0.513", "0.697" ], [ "0.1184", "0.703", "0.4895", "0.7017", "0.4895", "0.7163", "0.1184", "0.7173" ], [ "0.513", "0.6987", "0.881", "0.6987", "0.881", "0.712", "0.513", "0.712" ], [ "0.12006", "0.7188", "0.4895", "0.7188", "0.4895", "0.7324", "0.12006", "0.7324" ], [ "0.5156", "0.7173", "0.881", "0.7173", "0.881", "0.728", "0.5156", "0.728" ], [ "0.12006", "0.7363", "0.4895", "0.7363", "0.4895", "0.75", "0.12006", "0.75" ], [ "0.5146", "0.7324", "0.882", "0.7324", "0.882", "0.745", "0.5146", "0.745" ], [ "0.12006", "0.752", "0.4878", "0.752", "0.4878", "0.7656", "0.12006", "0.7656" ], [ "0.513", "0.7476", "0.8833", "0.7476", "0.8833", "0.761", "0.513", "0.761" ], [ "0.1184", "0.7666", "0.4878", "0.767", "0.4878", "0.782", "0.1184", "0.781" ], [ "0.511", "0.764", "0.882", "0.763", "0.882", "0.778", "0.511", "0.7793" ], [ "0.11755", "0.783", "0.471", "0.783", "0.471", "0.7964", "0.11755", "0.7964" ], [ "0.511", "0.7793", "0.8833", "0.78", "0.8833", "0.7944", "0.511", "0.7935" ], [ "0.5146", "0.7964", "0.8833", "0.7964", "0.8833", "0.81", "0.5146", "0.81" ], [ "0.5146", "0.8125", "0.882", "0.8125", "0.882", "0.8267", "0.5146", "0.8267" ], [ "0.11755", "0.8247", "0.2468", "0.826", "0.2468", "0.8403", "0.11755", "0.839" ], [ "0.513", "0.8276", "0.804", "0.8267", "0.804", "0.8413", "0.513", "0.843" ], [ "0.532", "0.8457", "0.882", "0.8457", "0.882", "0.8594", "0.532", "0.8594" ], [ "0.11755", "0.861", "0.4895", "0.8623", "0.4895", "0.877", "0.11755", "0.876" ], [ "0.532", "0.869", "0.827", "0.8706", "0.827", "0.8853", "0.532", "0.8843" ], [ "0.11755", "0.8774", "0.4895", "0.879", "0.4895", "0.8936", "0.11755", "0.8926" ], [ "0.513", "0.8843", "0.5845", "0.8843", "0.5845", "0.8955", "0.513", "0.8955" ], [ "0.11755", "0.8936", "0.3435", "0.8945", "0.3435", "0.909", "0.11755", "0.9077" ], [ "0.534", "0.8955", "0.7983", "0.8955", "0.7983", "0.909", "0.534", "0.909" ] ]
[ "Joint and CT-FineTune by explicitly incorporat-", "5.1Implementation details", "ing the subword units. We hypothesize that having", "We base our model on the C++ implementation of", "word representations of both languages lying in a", "fasttext (Bojanowski et al., 2016) with modifica-", "similar space will aid the low resource language in", "tions as described above.", "leveraging resources from the high resource lan-", "guage, including annotations for the downstream", "Data:We represent a word in the training corpus", "task. These two regimes are described below:", "using the format presented by Avraham and Gold-", "berg (2017). For instance, the Uyghur word in Fig-", "ure lis represented as follows: phoneme ipa: qari-", "CT-Joint:This model explicitly maps the", "jalmajdu, lemma l:qari, and morphological inflec-", "word representations of the two languages into the", "tions m:Verb+Pot+Neg+Pres+A3sg.We con-", "same space by training simultaneously on both.", "sider phoneme-ngrams ranging from 3-grams to 6-", "This is achieved simply by combining the corpora", "grams and append a special start symbol < and end", "ofboththehigh-resourceandthelow-resourcelan-", "symbol > to the word. We discard unigrams and", "guage and training jointly using the skip-gram ob-", "jective, discussed above. The central intuition is as", "bigram ngrams on the assumption that they don't", "contribute much to the word.", "follows: once two related languages are placed in", "the same phonological and morphological space,", "Linguistic properties:We experiment with dif", "they will share many subword units in common", "ferent subword units for both the transfer set-", "and this will make joint training profitable. Duong", "ting and the monolingual setting. We use the", "et al. (2016) and Gouws et al. (2015) have previ-", "orthography-to-IPA tool Epitran (Mortensen et al.,", "ously shown the advantages of joint training and", "2018) to obtain the phonemic representations. The", "we observe this to be true in our case as well", "lemmas and morphological properties for a word in", "context are obtained using a rule-based morpho-", "CT-FineTune:This model implicitly maps", "logical analyzer in such a fashion as to produce", "the word representations of the two languages", "tags similar to the high resource language. For", "into the same space. The model attempts this by", "Turkish we use the morphological disambiguator", "taking the learned continuous representations of", "developed by (Shen et al., 2016), which in turn is", "the high resource subword units, referred to by", "based on an FST-based morphological analyzer de-", "xswuand uses them to iniialize the model for", "veloped by Oflazer (1994). For Uyghur, we took a", "the low resource language.The model is first", "(parser combinator based) morphological analyzer", "trained using all subword units on the high re-", "that had been developed for a DARPA LORELEI", "source language and the learned representations", "evaluation and modified it to output part-of-speech", "are then used for initializing the subword units for", "tags and to use a property set that was as close as", "the low resourcelanguage. To elucidate which pre-", "possible to that of the Oflazer Turkish analyzer.", "trained subword helped the most on the low re-", "The analyzer for Turkish produces 116 inflectional", "source language, we use the same model for differ-", "properties and for Uyghur we get 54 properties", "ent experiments,which is trained using all subword", "of which 64% are shared with Turkish. Unfortu-", "units-phoneme-ngrams, lemma and morphologi-", "nately, we did not have access to existing mor", "cal properties. The linguistic intuition behind CT-", "phological analyzers for Hindi or Bengali. Many", "FineTune is similar to that behind CT-Joint. This", "Hindimorphological analyzers exist,but they are", "idea of transferring parameters from high resource", "not typically released publicly (Malladi and Man-", "language has been previously explored by Zoph", "nem, 2013; Goyal and Lehal, 2008). We developed", "et al. (2016) for low resource neural machine trans-", "our own analyzers using a stemmer-like frame-", "lation which showed considerable improvement", "work over a span of fewweeks (2-3), which gave", "8 unique morphological tags for Hindi and 10 for", "Bengali (for both languages, noun inflection only)", "5Evaluation", "of which just 2 were shared with Hindi.", "Morphologically speaking, we only use inflec-", "In this section, we first describe the model setup", "\"https://github.com/facebookresearch/", "for training word embeddings followed by details", "fastText/", "on NER and MT experiments.", "6https://github.com/dmort27/mstem" ]
{ "arxiv_id": "1808.09500", "language": "en", "page_idx": 3 }
1808.09500-en-4
1808.09500-en-4.jpg
tional properties. For most languages, we considered derivational affixes to be part of the stem, since they change the meaning and grammatical category of the word rather than simply expressing syntactic information. An exception to this was Turkish, where the available morphological analyzer segments all affixes off from the root. However, even there we confined our use of morphological properties to inflectional properties. Derivational affixes display scopal behavior; since we wanted to treat the morphological properties of a word as a set, rather than a sequence, we were required to choose this option. Hyperparameters: During training, we consider context tokens within a window size 3 of the focus word and we sample 5 negative examples from the vocabulary. We chose a window size of only 3 based on the fact that we are working with morphologically rich languages with a relatively high information to token ratio (otherwise a window size of 5 may be more appropriate). Subword units are initialized with uniform samples from $\left[\frac{-1}{dim},\frac{1}{dim}\right]$ where $dim=100.$ We use the same training regime as Bojanowski et al. (2016). For CT-FineTune, instead of uniform samples we initialize the subword units of the low resource language from the learnt $\mathbf{x}_{SWU}^{Hi}.$ <table> <tbody> <tr> <th>$\mathbf{Lang.}$</th> <th>$\textbf{Train}$</th> <th>Dev</th> <th>Test</th> </tr> <tr> <td>Turkish</td> <td>3376</td> <td>1126</td> <td>1126</td> </tr> <tr> <td>Uyghur</td> <td>1822</td> <td>240</td> <td>$2448^{*}$</td> </tr> <tr> <td>Hindi</td> <td>3974</td> <td>497</td> <td>497</td> </tr> <tr> <td>Bengali</td> <td>1908</td> <td>53</td> <td>7012</td> </tr> </tbody> </table> Table 1: Sentences in train/dev/test set for NER. (*Unsequestered set. The full test set has 12,546 sentences.) ### 5.2 Baselines For comparison, we train multilingual embeddings using MultiCCA (Ammar et al., 2016) as our baseline. It employs canonical correlation analysis by projecting multiple languages in the same shared space of one language, also referred to as multilanguage space. This method learns linear projections for each language into this common language space using bilingual lexicons. English is used as a common vector space due to availability of corresponding bilingual lexicons between English and each of our languages. For a fair comparison, we run MultiCCA on monolingual embed- dings trained with different subword units. We use 100 dimension (Bojanowski et al., 2016) embeddings for English. For NER, we also compare with Bharadwaj et al. (2016) who use a neural attention model over phonological features and report the best performance for Turkish using transfer from Uzbek and Uyghur, and Mayhew et al.(2017) who use a cheap translation method to translate training data from high-resource language into the lowresource language and report best NER results for Uyghur, as part of the LORELEI program. Our work differs from these primarily on two fronts: a) it is independent of the downstream task and can easily be adapted across various tasks, and b) it doesn't require parallel corpora or bilingual dictionaries. For our monolingual experiments, we compare our proposed approach with models using subword representations—Bojanowski et al. (2016) and Avraham and Goldberg (2017). ## 5.3 Named Entity Recognition Task We use state-of-the-art NER architecture (Ma and Hovy, 2016) as our model for evaluation. The task is to identify NEs and categorize them into four types. Since this is a supervised model, the performance is highly contingent on the quality of labeled data. F1 scores are used as the evaluation metric. # 5.3.1 Experiments We conduct the two main sets of NER experiments, 1. Transfer experiments on the low resource languages—Uyghur and Bengali—using Turkish and Hindi as the high resource languages respectively. We show results using both our proposed models, CT-Joint and CT-FineTune. 2. Monolingual experiments on all four lan- guages: Uyghur, Turkish, Bengali and Hindi. We do an ablation study using different combinations of subword units. These language pairs were chosen partly out of convenience—the data were available to us as part of the DARPA LORELEI program—and partly because they satisfied certain deeper desiderata. Turkish and Uyghur are fairly closely related to one another, as are Hindi and Bengali. Despite this relationship, the members of both pairs are written
[ [ "0.12006", "0.0766", "0.4895", "0.0766", "0.4895", "0.0903", "0.12006", "0.0903" ], [ "0.513", "0.076", "0.8833", "0.076", "0.8833", "0.0903", "0.513", "0.0903" ], [ "0.12006", "0.09265", "0.4878", "0.09265", "0.4878", "0.1069", "0.12006", "0.1069" ], [ "0.5156", "0.09265", "0.882", "0.09265", "0.882", "0.1057", "0.5156", "0.1057" ], [ "0.12006", "0.10925", "0.4895", "0.10925", "0.4895", "0.1223", "0.12006", "0.1223" ], [ "0.513", "0.1081", "0.6465", "0.1081", "0.6465", "0.1217", "0.513", "0.1217" ], [ "0.1184", "0.1247", "0.4895", "0.1247", "0.4895", "0.1395", "0.1184", "0.1395" ], [ "0.531", "0.1247", "0.8833", "0.1247", "0.8833", "0.1395", "0.531", "0.1395" ], [ "0.1184", "0.1414", "0.4895", "0.1414", "0.4895", "0.155", "0.1184", "0.155" ], [ "0.511", "0.1401", "0.881", "0.1401", "0.881", "0.1538", "0.511", "0.1538" ], [ "0.12006", "0.1567", "0.4878", "0.1567", "0.4878", "0.1704", "0.12006", "0.1704" ], [ "0.511", "0.1567", "0.8833", "0.158", "0.8833", "0.1716", "0.511", "0.1704" ], [ "0.1184", "0.1733", "0.4895", "0.1733", "0.4895", "0.187", "0.1184", "0.187" ], [ "0.5146", "0.1733", "0.8833", "0.1733", "0.8833", "0.187", "0.5146", "0.187" ], [ "0.11755", "0.1882", "0.4878", "0.1882", "0.4878", "0.2019", "0.11755", "0.2019" ], [ "0.513", "0.1895", "0.8833", "0.1895", "0.8833", "0.2031", "0.513", "0.2031" ], [ "0.1184", "0.2048", "0.4902", "0.2048", "0.4902", "0.2197", "0.1184", "0.2197" ], [ "0.511", "0.2048", "0.8833", "0.206", "0.8833", "0.2203", "0.511", "0.2197" ], [ "0.11755", "0.2214", "0.4902", "0.2214", "0.4902", "0.2351", "0.11755", "0.2351" ], [ "0.511", "0.2227", "0.882", "0.2227", "0.882", "0.2363", "0.511", "0.2363" ], [ "0.1184", "0.2382", "0.4902", "0.2382", "0.4902", "0.2517", "0.1184", "0.2517" ], [ "0.513", "0.2382", "0.8833", "0.2382", "0.8833", "0.253", "0.513", "0.253" ], [ "0.11755", "0.2542", "0.4895", "0.2542", "0.4895", "0.2673", "0.11755", "0.2673" ], [ "0.513", "0.2542", "0.885", "0.253", "0.885", "0.2673", "0.513", "0.2683" ], [ "0.11755", "0.2695", "0.3315", "0.2683", "0.3315", "0.2832", "0.11755", "0.284" ], [ "0.513", "0.2708", "0.8833", "0.2708", "0.8833", "0.284", "0.513", "0.284" ], [ "0.5146", "0.2861", "0.8833", "0.2861", "0.8833", "0.2998", "0.5146", "0.2998" ], [ "0.12006", "0.2957", "0.4878", "0.2957", "0.4878", "0.31", "0.12006", "0.31" ], [ "0.513", "0.3027", "0.881", "0.3027", "0.881", "0.3135", "0.513", "0.3135" ], [ "0.12177", "0.3135", "0.4878", "0.3135", "0.4878", "0.3237", "0.12177", "0.3237" ], [ "0.513", "0.3184", "0.882", "0.3184", "0.882", "0.332", "0.513", "0.332" ], [ "0.12006", "0.328", "0.4895", "0.328", "0.4895", "0.3416", "0.12006", "0.3416" ], [ "0.511", "0.3333", "0.882", "0.3342", "0.882", "0.3486", "0.511", "0.3474" ], [ "0.1184", "0.3433", "0.4895", "0.3433", "0.4895", "0.357", "0.1184", "0.357" ], [ "0.511", "0.3508", "0.882", "0.3499", "0.882", "0.364", "0.511", "0.3652" ], [ "0.11755", "0.3594", "0.4895", "0.3599", "0.4895", "0.3748", "0.11755", "0.3735" ], [ "0.513", "0.3677", "0.882", "0.3677", "0.882", "0.3813", "0.513", "0.3813" ], [ "0.12006", "0.3772", "0.4895", "0.3772", "0.4895", "0.3901", "0.12006", "0.3901" ], [ "0.513", "0.3818", "0.8286", "0.3818", "0.8286", "0.3955", "0.513", "0.3955" ], [ "0.1184", "0.3914", "0.4878", "0.3914", "0.4878", "0.405", "0.1184", "0.405" ], [ "0.1184", "0.4092", "0.4895", "0.4092", "0.4895", "0.4229", "0.1184", "0.4229" ], [ "0.513", "0.4104", "0.8076", "0.411", "0.8076", "0.4258", "0.513", "0.4246" ], [ "0.12006", "0.4246", "0.4895", "0.4246", "0.4895", "0.4382", "0.12006", "0.4382" ], [ "0.12006", "0.434", "0.1973", "0.4412", "0.1931", "0.4602", "0.11584", "0.4531" ], [ "0.513", "0.434", "0.882", "0.434", "0.882", "0.4478", "0.513", "0.4478" ], [ "0.1763", "0.4436", "0.1838", "0.4436", "0.1838", "0.4478", "0.1763", "0.4478" ], [ "0.2141", "0.4407", "0.4895", "0.4407", "0.4895", "0.4536", "0.2141", "0.4536" ], [ "0.1931", "0.449", "0.2275", "0.449", "0.2275", "0.456", "0.1931", "0.456" ], [ "0.5146", "0.4507", "0.882", "0.4507", "0.882", "0.4644", "0.5146", "0.4644" ], [ "0.1184", "0.4573", "0.4878", "0.4573", "0.4878", "0.4702", "0.1184", "0.4702" ], [ "0.1184", "0.4727", "0.4902", "0.4727", "0.4902", "0.4863", "0.1184", "0.4863" ], [ "0.511", "0.4673", "0.882", "0.4673", "0.882", "0.481", "0.511", "0.481" ], [ "0.11755", "0.4868", "0.4902", "0.488", "0.4902", "0.503", "0.11755", "0.502" ], [ "0.513", "0.4827", "0.882", "0.4827", "0.882", "0.4963", "0.513", "0.4963" ], [ "0.11084", "0.4912", "0.336", "0.4963", "0.3342", "0.5293", "0.11", "0.524" ], [ "0.513", "0.4988", "0.882", "0.4988", "0.882", "0.5127", "0.513", "0.5127" ], [ "0.513", "0.5156", "0.885", "0.5156", "0.885", "0.5293", "0.513", "0.5293" ], [ "0.511", "0.531", "0.5693", "0.531", "0.5693", "0.546", "0.511", "0.546" ], [ "0.12427", "0.538", "0.178", "0.5405", "0.1763", "0.5557", "0.1234", "0.554" ], [ "0.2091", "0.539", "0.2585", "0.539", "0.2585", "0.5547", "0.2091", "0.5547" ], [ "0.2913", "0.539", "0.3284", "0.539", "0.3284", "0.5547", "0.2913", "0.5547" ], [ "0.372", "0.539", "0.4114", "0.539", "0.4114", "0.5547", "0.372", "0.5547" ], [ "0.1276", "0.56", "0.1897", "0.5625", "0.189", "0.5776", "0.126", "0.576" ], [ "0.2091", "0.5625", "0.2527", "0.5625", "0.2527", "0.5776", "0.2091", "0.5776" ], [ "0.2913", "0.5625", "0.3342", "0.5625", "0.3342", "0.5776", "0.2913", "0.5776" ], [ "0.3728", "0.5625", "0.4182", "0.5625", "0.4182", "0.5776", "0.3728", "0.5776" ], [ "0.5146", "0.558", "0.6733", "0.558", "0.6733", "0.5723", "0.5146", "0.5723" ], [ "0.2107", "0.5776", "0.251", "0.5776", "0.251", "0.5933", "0.2107", "0.5933" ], [ "0.2913", "0.5776", "0.3257", "0.5776", "0.3257", "0.5933", "0.2913", "0.5933" ], [ "0.3728", "0.5776", "0.424", "0.5776", "0.424", "0.593", "0.3728", "0.593" ], [ "0.5146", "0.579", "0.882", "0.579", "0.882", "0.5933", "0.5146", "0.5933" ], [ "0.293", "0.5913", "0.3257", "0.5957", "0.3208", "0.611", "0.288", "0.607" ], [ "0.1276", "0.579", "0.189", "0.579", "0.189", "0.5933", "0.1276", "0.5933" ], [ "0.1276", "0.594", "0.1763", "0.594", "0.1763", "0.61", "0.1276", "0.61" ], [ "0.2107", "0.5957", "0.2527", "0.5957", "0.2527", "0.6094", "0.2107", "0.6094" ], [ "0.372", "0.5933", "0.4072", "0.5933", "0.4072", "0.6094", "0.372", "0.6094" ], [ "0.2107", "0.61", "0.251", "0.61", "0.251", "0.626", "0.2107", "0.626" ], [ "0.2913", "0.61", "0.315", "0.61", "0.315", "0.6245", "0.2913", "0.6245" ], [ "0.3728", "0.61", "0.4165", "0.61", "0.4165", "0.626", "0.3728", "0.626" ], [ "0.529", "0.6094", "0.8833", "0.6094", "0.8833", "0.6235", "0.529", "0.6235" ], [ "0.55", "0.626", "0.8833", "0.626", "0.8833", "0.64", "0.55", "0.64" ], [ "0.1276", "0.611", "0.1897", "0.611", "0.1897", "0.626", "0.1276", "0.626" ], [ "0.1184", "0.64", "0.4895", "0.64", "0.4895", "0.654", "0.1184", "0.654" ], [ "0.5483", "0.64", "0.8833", "0.64", "0.8833", "0.654", "0.5483", "0.654" ], [ "0.1184", "0.6562", "0.4895", "0.6562", "0.4895", "0.6694", "0.1184", "0.6694" ], [ "0.55", "0.6577", "0.885", "0.6577", "0.885", "0.673", "0.55", "0.673" ], [ "0.55", "0.6733", "0.885", "0.6733", "0.885", "0.6885", "0.55", "0.6885" ], [ "0.11755", "0.6934", "0.236", "0.695", "0.236", "0.709", "0.11755", "0.708" ], [ "0.55", "0.6895", "0.687", "0.6895", "0.687", "0.7036", "0.55", "0.7036" ], [ "0.11755", "0.7163", "0.4878", "0.7173", "0.4878", "0.7324", "0.11755", "0.731" ], [ "0.5283", "0.72", "0.882", "0.72", "0.882", "0.734", "0.5283", "0.734" ], [ "0.12006", "0.734", "0.4844", "0.734", "0.4844", "0.7476", "0.12006", "0.7476" ], [ "0.55", "0.7363", "0.882", "0.7354", "0.882", "0.75", "0.55", "0.7505" ], [ "0.1184", "0.75", "0.4878", "0.75", "0.4878", "0.763", "0.1184", "0.763" ], [ "0.55", "0.7505", "0.882", "0.752", "0.882", "0.7666", "0.55", "0.7656" ], [ "0.12006", "0.7666", "0.4895", "0.7666", "0.4895", "0.78", "0.12006", "0.78" ], [ "0.55", "0.7686", "0.7524", "0.7686", "0.7524", "0.782", "0.55", "0.782" ], [ "0.11755", "0.782", "0.4878", "0.781", "0.4878", "0.796", "0.11755", "0.7964" ], [ "0.1184", "0.7974", "0.4878", "0.7974", "0.4878", "0.8125", "0.1184", "0.8125" ], [ "0.532", "0.7974", "0.885", "0.7974", "0.885", "0.8125", "0.532", "0.8125" ], [ "0.11755", "0.814", "0.4895", "0.8135", "0.4895", "0.8276", "0.11755", "0.829" ], [ "0.513", "0.814", "0.8833", "0.814", "0.8833", "0.8276", "0.513", "0.8276" ], [ "0.1184", "0.8306", "0.4902", "0.83", "0.4902", "0.844", "0.1184", "0.8457" ], [ "0.511", "0.8306", "0.881", "0.8306", "0.881", "0.844", "0.511", "0.844" ], [ "0.1184", "0.847", "0.4895", "0.847", "0.4895", "0.861", "0.1184", "0.861" ], [ "0.513", "0.8467", "0.882", "0.8467", "0.882", "0.861", "0.513", "0.861" ], [ "0.1184", "0.8633", "0.4902", "0.8633", "0.4902", "0.877", "0.1184", "0.877" ], [ "0.511", "0.8633", "0.8833", "0.8633", "0.8833", "0.877", "0.511", "0.877" ], [ "0.12006", "0.879", "0.4902", "0.879", "0.4902", "0.8936", "0.12006", "0.8936" ], [ "0.513", "0.879", "0.8833", "0.879", "0.8833", "0.8926", "0.513", "0.8926" ], [ "0.11755", "0.8936", "0.4895", "0.8945", "0.4895", "0.909", "0.11755", "0.9077" ], [ "0.5146", "0.8955", "0.885", "0.8955", "0.885", "0.909", "0.5146", "0.909" ] ]
[ "tional properties. For most languages, we consid-", "dings trained with different subword units. We use", "ered derivational affixes to be part of the stem,", "100 dimension (Bojanowski et al., 2016) embed-", "since they change the meaning and grammatical", "dings for English.", "category of the word rather than simply express-", "For NER, we also compare with Bharadwaj", "ing syntactic information. An exception to this was", "et al. (2016) who use a neural attention model", "Turkish, where the available morphological ana-", "over phonological features and report the best per-", "lyzer segments all affixes off from the root. How-", "formance for Turkish using transfer from Uzbek", "ever, even there we confined our use of morpholog-", "and Uyghur, and Mayhew et al. (2017) who use", "ical properties to inflectional properties. Deriva-", "a cheap translation method to translate training", "tional affixes display scopal behavior; since we", "data from high-resource language into the low-", "wanted to treat the morphological properties of a", "resource language and report best NER results for", "word as a set, rather than a sequence, we were re-", "Uyghur, as part of the LORELEI program. Our", "quired to choose this option.", "work differs from these primarily on two fronts:", "a) it is independent of the downstream task and", "Hyperparameters: During training, we con-", "can easily be adapted across yarious tasks. and", "sider contexttokenswithinawindow size3of the", "b) it doesn't require parallel corpora or bilingual", "focus word and we sample 5 negative examples", "dictionaries.For our monolingual experiments,", "from the vocabulary.We chose a window size", "we compare our proposed approach with models", "of only 3 based on the fact that we are working", "using subword representations-Bojanowski et al.", "with morphologically rich languages with a rela-", "(2016) and Avraham and Goldberg (2017)", "tively high information to token ratio (otherwise a", "window size of 5 may be more appropriate). Sub-", "5.3Named Entity Recognition Task", "word units are initialized with uniform samples", "from [alm", "We use state-of-the-art NER architecture (Ma and", "-", "l where dim=100.Weusethe", "\"dim", "Hovy, 2016) as our model for evaluation. The task", "same training regime as Bojanowski et al. (2016).", "For CT-FineTune, instead of uniform samples we", "is to identify NEs and categorize them into four", "initialize the subword units of the low resource lan-", "types. Since this is a supervised model, the per-", "guage from thelcant xw.", "formance is highly contingent on the quality of la-", "beled data. F1 scores are used as the evaluation", "metric.", "Lang.", "Train", "Dev", "Test", "Turkish", "3376", "1126", "1126", "5.3.1 Experiments", "1822", "240", "2448*", "We conduct the two main sets of NER experiments.", "497", "Uyghur", "Hindi", "3974", "497", "1908", "53", "7012", "1. Transfer experiments on the low resource", "languages-Uyghur and Bengaliusing", "Bengali", "Table 1: Sentences in train/dev/test set for NER. (*Un-", "Turkish and Hindi as the high resource", "sequestered set. The full test set has 12,546 sentences.)", "languages respectively.We show results", "using both our proposed models, CT-Joint", "5.2Baselines", "and CT-FineTune.", "For comparison, we train multilingual embeddings", "2. Monolingual experiments on all four lan-", "using MultiCCA (Ammar et al., 2016) as our base-", "guages: Uyghur, Turkish, Bengali and Hindi.", "line. It employs canonical correlation analysis by", "We do an ablation study using different com-", "projecting multiple languages in the same shared", "binations of subword units.", "space of one language, also referred to as multi-", "language space. This method learns linear pro-", "These language pairs were chosen partly out of", "jections for each language into this common lan-", "convenience-the data were available to us as part", "guage space using bilingual lexicons. English is", "of the DARPA LORELEI programand partly", "used as a common vector space due to availability", "because they satisfied certain deeper desiderata.", "of corresponding bilingual lexicons between En-", " Turkish and Uyghur are fairly closely related to one", "glish and each of our languages. For a fair compar-", "another, as are Hindi and Bengali. Despite this re-", "ison, we run MultiCCA on monolingual embed-", "lationship, the members of both pairs are written" ]
{ "arxiv_id": "1808.09500", "language": "en", "page_idx": 4 }
2403.10738-en-0
2403.10738-en-0.jpg
Published as a conference paper at ICLR 2024 HORIZON-FREE REGRET FOR LINEAR MARKOV DECISION PROCESSES $\textbf{Yuxin Chen}^{\dagger}$ Zihan Zhang$^{*}$ $\textbf{Jason D. Lee}^{*}$ Simon S. Du$^{\dagger}$ ABSTRACT A recent line of works showed regret bounds in reinforcement learning (RL) can be (nearly) independent of planning horizon, a.k.a. the horizon-free bounds. However, these regret bounds only apply to settings where a polynomial dependency on the size of transition model is allowed, such as tabular Markov Decision Process (MDP) and linear mixture MDP. We give the first horizon-free bound for the popular linear MDP setting where the size of the transition model can be exponentially large or even uncountable. In contrast to prior works which explicitly estimate the $\tilde{\text{transition model and compute the inhomogeneous value functions at different time}}$ steps, we directly estimate the value functions and confidence sets. We obtain the horizon-free bound by: (1) maintaining multiple weighted least square estimators for the value functions; and (2) a structural lemma which shows the maximal total variation of the inhomogeneous value functions is bounded by a polynomial factor of the feature dimension. ## 1 INTRODUCTION In reinforcement learning (RL), an agent learns to interact with an unknown environment by observing the current states and taking actions sequentially. The goal of the agent is to maximize the accumulative reward. In RL, the sample complexity describes the number of samples needed to learn a near-optimal policy. It has been shown that the sample complexity needs to scale with the state-action space for the tabular Markov Decision Process (MDP) (Domingues et al., 2021). When the state-action space is large, function approximation is often used to generalize across states and actions. One popular model is linear MDP where the transition model is assumed to be low-rank (Yang&Wang, 2019; Jin et al., 2020b). We denote by $d$ the rank (or feature dimension) and the sample complexity will depend on $d$ instead of the size of the state-action space. However, there remains a gap between our theoretical understanding of tabular MDPs and linear MDPs. For tabular MDPs, a line of works give horizon-free bounds, i.e., the sample complexity can be (nearly) independent of the planning horizon (Wang et al., 2020; Zhang et al., 2021a). More recently, the horizon-free bounds were also obtained in linear mixture MDP where the underlying MDP could be presented by a linear combination of $d$ known MDPs (Ayoub et al., 2020; Modi et al., 2020; Jia et al., 2020). A natural theoretical question is: Can we obtain horizon-free regret bounds for linear MDPs? One major technical challenge in obtaining horizon-free bounds is that the value function is inhomogeneous, i.e., for an MDP with planning horizon $H$, the optimal value functions for each time step $\{V_{h}^{*}\}_{h=1}^{H}$ can vary across $h=1,\ldots,\tilde{H}.$ For tabular MDPs and linear mixture MDPs, one can resolve this challenge by first estimating the transition kernel and then computing the value function based on the learned model. The sample complexity will then scale with the size of the transition $^{*}$Department of Electrical and Computer Engineering, Princeton University; email: $\{zz5478$,jasonlee}Gprinceton.edu. $^{\dagger}$Department of Statistics and Data Science, University of Pennsylvania; email: yuxinc@wharton.upenn.edu Paul G. Allen School of Computer Science and Engineering, University of Washington; email: ssdugcs.washington.edu. 1
[ [ "0.1732", "0.03284", "0.4795", "0.0322", "0.4795", "0.04672", "0.1732", "0.04736" ], [ "0.1765", "0.101", "0.527", "0.1029", "0.527", "0.1193", "0.1765", "0.11743" ], [ "0.1765", "0.1288", "0.661", "0.1288", "0.661", "0.1433", "0.1765", "0.1433" ], [ "0.183", "0.1692", "0.282", "0.1692", "0.282", "0.1843", "0.183", "0.1843" ], [ "0.3464", "0.1692", "0.4495", "0.1674", "0.4495", "0.1849", "0.3464", "0.1875" ], [ "0.513", "0.1692", "0.603", "0.1692", "0.603", "0.1843", "0.513", "0.1843" ], [ "0.669", "0.1704", "0.7646", "0.1704", "0.7646", "0.1849", "0.669", "0.1849" ], [ "0.4534", "0.2229", "0.544", "0.2229", "0.544", "0.2374", "0.4534", "0.2374" ], [ "0.02287", "0.2349", "0.05963", "0.2349", "0.05963", "0.3757", "0.02287", "0.3757" ], [ "0.2361", "0.254", "0.7656", "0.254", "0.7656", "0.2676", "0.2361", "0.2676" ], [ "0.2336", "0.2683", "0.767", "0.2683", "0.767", "0.2822", "0.2336", "0.2822" ], [ "0.2345", "0.2822", "0.7656", "0.2822", "0.7656", "0.2954", "0.2345", "0.2954" ], [ "0.2361", "0.2974", "0.7646", "0.2974", "0.7646", "0.308", "0.2361", "0.308" ], [ "0.2336", "0.31", "0.767", "0.31", "0.767", "0.324", "0.2336", "0.324" ], [ "0.2336", "0.324", "0.7656", "0.324", "0.7656", "0.3372", "0.2336", "0.3372" ], [ "0.2361", "0.339", "0.7646", "0.339", "0.7646", "0.3499", "0.2361", "0.3499" ], [ "0.2336", "0.351", "0.7646", "0.351", "0.7646", "0.3643", "0.2336", "0.3643" ], [ "0.04166", "0.3655", "0.0474", "0.3655", "0.0474", "0.3726", "0.04166", "0.3726" ], [ "0.2336", "0.3662", "0.7656", "0.3655", "0.7656", "0.379", "0.2336", "0.3801" ], [ "0.0196", "0.379", "0.05963", "0.3774", "0.0621", "0.4673", "0.02287", "0.4685" ], [ "0.2336", "0.3801", "0.761", "0.3801", "0.761", "0.3901", "0.2336", "0.3901" ], [ "0.2345", "0.3933", "0.7656", "0.3933", "0.7656", "0.4072", "0.2345", "0.4072" ], [ "0.2336", "0.4048", "0.7656", "0.4072", "0.7656", "0.4204", "0.2336", "0.4185" ], [ "0.2336", "0.4204", "0.4004", "0.4204", "0.4004", "0.4343", "0.2336", "0.4343" ], [ "0.1772", "0.464", "0.2018", "0.464", "0.2018", "0.473", "0.1772", "0.473" ], [ "0.1978", "0.461", "0.335", "0.461", "0.335", "0.476", "0.1978", "0.476" ], [ "0.02287", "0.4702", "0.05963", "0.4702", "0.05963", "0.6875", "0.02287", "0.6875" ], [ "0.1732", "0.4924", "0.826", "0.4924", "0.826", "0.506", "0.1732", "0.506" ], [ "0.1748", "0.507", "0.824", "0.507", "0.824", "0.521", "0.1748", "0.521" ], [ "0.1748", "0.521", "0.824", "0.521", "0.824", "0.534", "0.1748", "0.534" ], [ "0.1732", "0.535", "0.3545", "0.535", "0.3545", "0.549", "0.1732", "0.549" ], [ "0.1748", "0.5547", "0.8228", "0.5547", "0.8228", "0.5693", "0.1748", "0.5693" ], [ "0.1748", "0.5693", "0.824", "0.5693", "0.824", "0.5835", "0.1748", "0.5835" ], [ "0.1748", "0.584", "0.824", "0.584", "0.824", "0.5977", "0.1748", "0.5977" ], [ "0.1732", "0.595", "0.824", "0.5967", "0.824", "0.6113", "0.1732", "0.61" ], [ "0.1732", "0.6113", "0.824", "0.6113", "0.824", "0.625", "0.1732", "0.625" ], [ "0.1748", "0.6255", "0.5435", "0.6255", "0.5435", "0.6396", "0.1748", "0.6396" ], [ "0.1748", "0.646", "0.824", "0.646", "0.824", "0.66", "0.1748", "0.66" ], [ "0.1748", "0.66", "0.8228", "0.66", "0.8228", "0.674", "0.1748", "0.674" ], [ "0.1765", "0.6753", "0.822", "0.6753", "0.822", "0.686", "0.1765", "0.686" ], [ "0.1748", "0.688", "0.824", "0.688", "0.824", "0.702", "0.1748", "0.702" ], [ "0.1748", "0.702", "0.826", "0.702", "0.826", "0.7153", "0.1748", "0.7153" ], [ "0.1765", "0.7173", "0.54", "0.7173", "0.54", "0.728", "0.1765", "0.728" ], [ "0.2974", "0.741", "0.7017", "0.7407", "0.7017", "0.755", "0.2974", "0.756" ], [ "0.1748", "0.7676", "0.826", "0.7676", "0.826", "0.781", "0.1748", "0.781" ], [ "0.1748", "0.782", "0.824", "0.782", "0.824", "0.7954", "0.1748", "0.7954" ], [ "0.1765", "0.7974", "0.2573", "0.7974", "0.2573", "0.8096", "0.1765", "0.8096" ], [ "0.2573", "0.7974", "0.8228", "0.7974", "0.8228", "0.808", "0.2573", "0.808" ], [ "0.1765", "0.81", "0.824", "0.81", "0.824", "0.8237", "0.1765", "0.8237" ], [ "0.1748", "0.8237", "0.824", "0.8237", "0.824", "0.837", "0.1748", "0.837" ], [ "0.4272", "0.8447", "0.603", "0.845", "0.603", "0.86", "0.4272", "0.8594" ], [ "0.6094", "0.8447", "0.7656", "0.845", "0.7656", "0.86", "0.6094", "0.8594" ], [ "0.3179", "0.845", "0.429", "0.845", "0.429", "0.8594", "0.3179", "0.8594" ], [ "0.1953", "0.845", "0.312", "0.8467", "0.312", "0.858", "0.1953", "0.857" ], [ "0.785", "0.845", "0.8286", "0.845", "0.8286", "0.86", "0.785", "0.86" ], [ "0.5986", "0.8516", "0.609", "0.8496", "0.609", "0.854", "0.5986", "0.855" ], [ "0.1732", "0.8594", "0.4478", "0.8594", "0.4478", "0.8726", "0.1732", "0.8726" ], [ "0.4836", "0.872", "0.544", "0.872", "0.544", "0.886", "0.4836", "0.886" ], [ "0.5596", "0.872", "0.6284", "0.872", "0.6284", "0.886", "0.5596", "0.886" ], [ "0.785", "0.872", "0.8286", "0.872", "0.8286", "0.886", "0.785", "0.886" ], [ "0.3186", "0.8726", "0.478", "0.8726", "0.478", "0.886", "0.3186", "0.886" ], [ "0.1969", "0.8735", "0.312", "0.8735", "0.312", "0.884", "0.1969", "0.884" ], [ "0.6396", "0.8755", "0.664", "0.8755", "0.664", "0.8833", "0.6396", "0.8833" ], [ "0.671", "0.8735", "0.761", "0.8735", "0.761", "0.8853", "0.671", "0.8853" ], [ "0.6665", "0.877", "0.6733", "0.877", "0.6733", "0.881", "0.6665", "0.881" ], [ "0.634", "0.877", "0.6406", "0.877", "0.6406", "0.882", "0.634", "0.882" ], [ "0.1732", "0.8853", "0.392", "0.8853", "0.392", "0.8984", "0.1732", "0.8984" ], [ "0.1936", "0.8984", "0.8267", "0.8984", "0.8267", "0.912", "0.1936", "0.912" ], [ "0.1772", "0.9155", "0.3733", "0.9155", "0.3733", "0.9224", "0.1772", "0.9224" ], [ "0.4927", "0.9497", "0.505", "0.9497", "0.505", "0.9604", "0.4927", "0.9604" ] ]
[ "Published as a conference paper at ICLR 2024", "HORIZON-FREE REGRET FOR", "LINEAR MARKOV DECISION PROCESSES", "Zihan Zhang", "Jason D. Lee*", "Yuxin Chent", "Simon S. Dut", "ABSTRACT", "", "A recent line of works showed regret bounds in reinforcement learning (RL) can", "be (nearly) independent of planning horizon, a.k.a. the horizon-free bounds. How-", "ever, these regret bounds only apply to settings where a polynomial dependency on", "thesizeoftransitionmodelisallowed,suchastabularMarkovDecisionProcess", "(MDP) and linear mixture MDP. We give the first horizon-free bound for the popu-", "lar linear MDP setting where the size of the transition model can be exponentially", "largeorevenuncountable.Incontrasttopriorworkswhichexplicitlyestimatethe", "transition model and compute the inhomogeneous value functions at different time", "", "steps,we directly estimate the value functions and confidence sets.We obtain the", "[T's] ", "horizon-freeboundby:(1)maintainingmultipleweightedleastsquareestimators", "for the value functions; and (2) a structural lemma which shows the maximal total", "variation of the inhomogeneous valuefunctions is bounded byapolynomialfactor", "of the feature dimension.", "1.", "INTRODUCTION", "", "In reinforcement learning (RL), an agent learns to interact with an unknown environment by ob-", "serving the current states and taking actions sequentially. The goal of the agent is to maximize the", "accumulative reward. In RL, the sample complexity describes the number of samples needed to", "learn a near-optimal policy", "It has been shown that the sample complexity needs to scale with the state-action space for the", "tabular Markov Decision Process (MDP) (Domingues et al., 2021). When the state-action space is", "large, function approximation is often used to generalize across states and actions. One popular", "model is linear MDP where the transition model is assumed to be low-rank (Yang & Wang, 2019:", "Jin et al., 2020b). We denote by d the rank (or feature dimension) and the sample complexity will", "depend on d instead of the size of the state-action space.", "However, there remains a gap between our theoretical understanding of tabular MDPs and linear", "MDPs. For tabular MDPs, a line of works give horizon-free bounds, i.e., the sample complexity", "canbe(nearly)independentof theplanninghorizon (Wang etal.,2020;Zhang et al.,202la).More", "recently, the horizon-free bounds were also obtained in linear mixture MDP where the underlying", "MDP could be presented by a linear combination of d known MDPs (Ayoub et al., 2020; Modi et al.,", "2020;Jia etal.,2020).A natural theoretical questionis:", "Can we obtain horizon-free regret bounds for linear MDPs?", "One major technical challenge in obtaining horizon-free bounds is that the value function is inho-", "mogeneous, i.e., for an MDP with planning horizon H, the optimal value functions for each time", "step(Vh*Jh", "canvaryacrossh.=1,...,H.FortabularMDPsandlinearmixtureMDPs,onecan", "resolve this challenge by first estimating the transition kernel and then computing the value function", "based on the learned model.The sample complexity will then scale with the size of the transition", "ComputerEngineering,", "PrincetonUniversity;", "Electricaland", "*Departmentof", "email:", "", "(zz5478,jasonlee)@princeton.edu", "Science,", "University", "email:", "StatisticsandData", "Departmentof", "of", "Pennsylvania;", "", "", "yuxinc@wharton.upenn.edu.", "Paul G. Allen School of Computer Science and Engineering, University of Washington; email:", "ssdudcs.washington.edu.", "1" ]
{ "arxiv_id": "2403.10738", "language": "en", "page_idx": 0 }
2403.10738-en-1
2403.10738-en-1.jpg
Published as a conference paper at ICLR 2024 kernel, which is homogeneous and does not depend on $H.$ For tabular MDPs and linear mixture MDPs, the dependence on the model size is allowed.$^1$ Unfortunately, this approach cannot be readily applied to handle linear MDPs because the model size of a linear MDP scales with the size of the state space, which can be exponentially large or even uncountable. Contributions. In this paper, we answer the above question affirmatively by establishing a regret bound of $\widetilde{O}($poly$(d)\sqrt K)$ for linear MDPs. Formally we have the result below. Theorem $1. \textit{Choose Reward}-$Confidence $as\textit{VOFUL( see Algorithm 3) . For any MDP satisfy- }$ ing the total-bounded reward assumption $(Assumption$ $I)and$ linear MDP assumption (see Assump- $tion2),thenwithprobability1-\delta,theregretofAlgorithmlisboundedby\widetilde{O}(d^{5.5}\sqrt{K}+d^{6.5})$, where logarithmic factors of $(d,K,H,1/\delta)$ are hidden by the $\widetilde O(\cdot)$ parameter. By virtue of Theorem l, we show that linear MDP has a sample-complexity with only polylogarithmic dependence on $H.$ Although the proposed algorithm (Algorithm I) is inefficient in computation, we believe our method provides intuitions to remove the horizon dependence in the view of statistical efficiency. In terms of technical innovations, we design a novel method to share the samples to solve different linear bandit problems. Since the optimal value functions are not homogeneous, we need to learn $H$ different linear bandit problems using the same dataset. We first show that it suffices to bound the regret for each single bandit problem, and then bound the maximal total variance by bounding the variation of the optimal value function. See Section 3 for more details. Due to space limitation, we postpone the full proof of Theorem 1 to Appendix B. ## 1.1 RELATED WORKS Tabular MDPs. There has been a long list of algorithms proposed for episodic tabular MDPs (e.g., Kearns& Singh (2002); Brafman& Tennenholtz (2003); Kakade (2003); Agrawal& Jia (2017); Azaret al. (2017); Jin et al. (2018); Zhang et al. (2020); Wang et al. (2020); Jin et al. (2020a); Zhang et al. (2021a); Li et al. (2021b;c; 2023); Zhang et al. (2022)). For finite-horizon $inhomo-$ geneous MDPs with the immediate reward at each step bounded by 1/H, Azar et al. (2017); Zhang et al. (2020); Zanette & Brunskill (2019); Li et al. (2021b) achieved asymptotically minimaxoptimal regret $\widetilde{\Theta } ( \sqrt {SAHK})$ ( ignoring lower order terms) , where $SA$ is the size of state- action space, optimal regret $\widetilde{\Theta } ( \sqrt {SAHK})$ ( ignoring lower order terms) , where $SA$ is the size of state- action space, $\hat{H}$ is the planning horizon, and $K$ is the number of episodes. Motivated by a conjecture raised by Jiang& Agarwal (2018), Wang et al. (2020) developed—for time-homogeneous MDPs with total rewards in any episode bounded above by 1—the first sample complexity upper bound that exhibits only logarithmic dependence on the horizon $H$, which was later on improved by Zhang et al. (2021a) to yield a near-optimal regret bound of $\widetilde O(\sqrt{SAK}+S^2A).$ Subsequently, Li et al. (2021c); Zhang et al. (2022) proved that even the poly-logarithmic horizon dependency in the sample complexity can be removed, albeit at the price of suboptimal scaling with $\hat{S}A.$ Contextual linear bandits. The linear bandit problem has been extensively studied in past decades (Auer, 2002; Dani et al., 2008; Chu et al., 2011; Abbasi-Yadkori et al., 2011). For linear bandits with infinite arms, the minimax regret bound of $\widetilde{\Theta}(\sqrt{dK})$ is achieved by OFUL (Abbasi-Yadkori et al., 2011), where $d$ is the feature dimension and $K$ the number of rounds. With regards to variance-aware algorithms, Zhang et al. (2021b); Kim et al. (2022) proposed VOFUL (VOFUL+) to achieve a variance-dependent regret bound of $\widetilde{O}($poly$(d)\sqrt\sum_k=1^K\sigma_k^2+$poly$(d))$,in the absence of the knowledge of $\{\sigma_k\}_{k=1}^K$ (with $\sigma_k$ the conditional variance of the noise in the $k$-th round). By assuming prior knowledge of $\{\sigma_k\}_{k=1}^K$,Zhou et al. (2021); Zhou &Gu (2022) obtained similar regret bounds with improved dependence on $d.$ Another work (Faury et al., 2020) proposed a Bernstein-style confidence set for the logistic bandit problem, also assuming availability of the noise variances. RL with linear function approximation. It has been an important problem in the RL community to determine the generalization capability of linear function approximation (Jiang et al., $^{\mathrm{l}}$For linear mixture MDP, the model size scales linearly with the feature dimension. 2
[ [ "0.1732", "0.03284", "0.4805", "0.03284", "0.4805", "0.04736", "0.1732", "0.04736" ], [ "0.1748", "0.1048", "0.8228", "0.1048", "0.8228", "0.1187", "0.1748", "0.1187" ], [ "0.1748", "0.1187", "0.826", "0.1187", "0.826", "0.132", "0.1748", "0.132" ], [ "0.1748", "0.1332", "0.826", "0.1332", "0.826", "0.1465", "0.1748", "0.1465" ], [ "0.1732", "0.1465", "0.613", "0.1465", "0.613", "0.1604", "0.1732", "0.1604" ], [ "0.1765", "0.1768", "0.826", "0.1768", "0.826", "0.1901", "0.1765", "0.1901" ], [ "0.1748", "0.1925", "0.694", "0.1925", "0.694", "0.207", "0.1748", "0.207" ], [ "0.1748", "0.2108", "0.826", "0.2108", "0.826", "0.226", "0.1748", "0.226" ], [ "0.1748", "0.226", "0.824", "0.226", "0.824", "0.2405", "0.1748", "0.2405" ], [ "0.1724", "0.2412", "0.824", "0.2393", "0.824", "0.254", "0.1724", "0.2556" ], [ "0.1748", "0.2583", "0.6855", "0.2583", "0.6855", "0.2715", "0.1748", "0.2715" ], [ "0.1748", "0.2842", "0.826", "0.2842", "0.826", "0.2986", "0.1748", "0.2986" ], [ "0.1748", "0.2986", "0.3882", "0.2986", "0.3882", "0.3125", "0.1748", "0.3125" ], [ "0.38", "0.2986", "0.8228", "0.2986", "0.8228", "0.3125", "0.38", "0.3125" ], [ "0.1748", "0.3132", "0.826", "0.3132", "0.826", "0.327", "0.1748", "0.327" ], [ "0.1732", "0.3257", "0.361", "0.3257", "0.361", "0.339", "0.1732", "0.339" ], [ "0.1732", "0.3452", "0.824", "0.3467", "0.824", "0.361", "0.1732", "0.3599" ], [ "0.1748", "0.3623", "0.8203", "0.3623", "0.8203", "0.3726", "0.1748", "0.3726" ], [ "0.1748", "0.3757", "0.8228", "0.3757", "0.8228", "0.3894", "0.1748", "0.3894" ], [ "0.1748", "0.3894", "0.824", "0.3894", "0.824", "0.4028", "0.1748", "0.4028" ], [ "0.1748", "0.404", "0.824", "0.404", "0.824", "0.4172", "0.1748", "0.4172" ], [ "0.1732", "0.4172", "0.524", "0.4172", "0.524", "0.4312", "0.1732", "0.4312" ], [ "0.1732", "0.4475", "0.3423", "0.4475", "0.3423", "0.461", "0.1732", "0.461" ], [ "0.1748", "0.473", "0.824", "0.4734", "0.824", "0.488", "0.1748", "0.4873" ], [ "0.1748", "0.488", "0.8267", "0.488", "0.8267", "0.502", "0.1748", "0.502" ], [ "0.1732", "0.502", "0.8267", "0.502", "0.8267", "0.515", "0.1732", "0.515" ], [ "0.1748", "0.515", "0.8267", "0.515", "0.8267", "0.53", "0.1748", "0.53" ], [ "0.1765", "0.53", "0.8267", "0.53", "0.8267", "0.5435", "0.1765", "0.5435" ], [ "0.1748", "0.5435", "0.826", "0.5435", "0.826", "0.5566", "0.1748", "0.5566" ], [ "0.1748", "0.558", "0.826", "0.5596", "0.826", "0.5737", "0.1748", "0.5728" ], [ "0.1748", "0.5737", "0.824", "0.5737", "0.824", "0.587", "0.1748", "0.587" ], [ "0.1748", "0.587", "0.824", "0.587", "0.824", "0.601", "0.1748", "0.601" ], [ "0.1748", "0.6016", "0.8228", "0.6016", "0.8228", "0.6157", "0.1748", "0.6157" ], [ "0.1748", "0.6157", "0.826", "0.6157", "0.826", "0.629", "0.1748", "0.629" ], [ "0.1732", "0.63", "0.8267", "0.631", "0.8267", "0.646", "0.1732", "0.6445" ], [ "0.1748", "0.646", "0.8267", "0.646", "0.8267", "0.659", "0.1748", "0.659" ], [ "0.1724", "0.659", "0.661", "0.6577", "0.661", "0.6724", "0.1724", "0.674" ], [ "0.1732", "0.6875", "0.826", "0.688", "0.826", "0.7026", "0.1732", "0.702" ], [ "0.1748", "0.7026", "0.8267", "0.7026", "0.8267", "0.7163", "0.1748", "0.7163" ], [ "0.1748", "0.7183", "0.826", "0.7183", "0.826", "0.732", "0.1748", "0.732" ], [ "0.1748", "0.732", "0.8228", "0.732", "0.8228", "0.7456", "0.1748", "0.7456" ], [ "0.1732", "0.747", "0.826", "0.7456", "0.826", "0.7603", "0.1732", "0.761" ], [ "0.1748", "0.7676", "0.822", "0.7676", "0.822", "0.782", "0.1748", "0.782" ], [ "0.1748", "0.785", "0.822", "0.785", "0.822", "0.799", "0.1748", "0.799" ], [ "0.1732", "0.8003", "0.8228", "0.8", "0.8228", "0.8145", "0.1732", "0.815" ], [ "0.1724", "0.815", "0.8228", "0.815", "0.8228", "0.829", "0.1724", "0.829" ], [ "0.1732", "0.829", "0.824", "0.829", "0.824", "0.8423", "0.1732", "0.8423" ], [ "0.1732", "0.8433", "0.281", "0.8433", "0.281", "0.857", "0.1732", "0.857" ], [ "0.1748", "0.872", "0.826", "0.872", "0.826", "0.886", "0.1748", "0.886" ], [ "0.1732", "0.886", "0.8267", "0.886", "0.8267", "0.8994", "0.1732", "0.8994" ], [ "0.1978", "0.911", "0.6855", "0.911", "0.6855", "0.925", "0.1978", "0.925" ], [ "0.4927", "0.9487", "0.5063", "0.9487", "0.5063", "0.9604", "0.4927", "0.9604" ] ]
[ "Published as a conference paper at ICLR 2024", "kernel, which is homogeneous and does not depend on H. For tabular MDPs and linear mixture", "MDPs, the dependence on the model size is allowed.I Unfortunately, this approach cannot be read-", "ily applied to handle linear MDPs because the model size of a linear MDP scales with the size of the", "state space, which can be exponentially large or even uncountable.", "Contributions.In this paper, we answer the above question affirmatively by establishing a regret", "bound of O(poly(d)VK) for linear MDPs. Formally we have the result below.", "Theorem 1. Choose Reward - Confidence as VOFUL (see Algorithm 3). For any MDP satisfy-", "ing the total-bounded reward assumption (Assumption I) and linear MDP assumption (see Assump", "tion 2), then with probability 1 - §, the regret of Algorithm 1 is bounded by O(d5.5 VK + d6.5)", "where logarithmic factors of (d, K, H, 1/) are hidden by the O() parameter.", "By virtue of Theorem 1, we show that linear MDP has a sample-complexity with only poly-", "logarithmic dependence on H.", "Although the proposed algorithm (Algorithm I) is inefficient in", "computation, we believe our method provides intuitions to remove the horizon dependence in the", "view of statistical efficiency.", "In terms of technical innovations, we design a novel method to share the samples to solve different", "linearbanditproblems.Sincethe optimal valuefunctions arenothomogeneous.weneedtolearn H", "different linear bandit problems using the same dataset. We first show that it suffices to bound the", "regret for each single bandit problem, and then bound the maximal total variance by bounding the", "variation of the optimal value function. See Section 3 for more details. Due to space limitation, we", "postpone the full proof of Theorem I to Appendix B.", "1.1 RELATED WORKS", "Tabular MDPs.There has been a long list of algorithms proposed for episodic tabular MDPs (e.g.", "Kearns & Singh (2002); Brafman & Tennenholtz (2003); Kakade (2003); Agrawal & Jia (2017);", "Azar et al. (2017); Jin et al. (2018); Zhang et al. (2020); Wang et al. (2020); Jin et al. (2020a);", "Zhang et al. (2021a); Li et al. (2021b;c; 2023); Zhang et al. (2022). For finite-horizon inhomo-", "geneous MDPs with the immediate reward at each step bounded by 1/H, Azar et al. (2017);", "Zhang et al. (2020); Zanette & Brunskill (2019); Li et al. (2021b) achieved asymptotically minimax-", "optimal regret (SAH K) (ignoring lower order terms), where SA is the size of state-action space,", "H is the planning horizon, and K is the number of episodes. Motivated by a conjecture raised by", "Jiang & Agarwal (2018), Wang et al. (2020) developedfor time-homogeneous MDPs with total", "rewards in any episode bounded above by I-the first sample complexity upper bound that ex", "hibits only logarithmic dependence on the horizon H, which was later on improved by Zhang et al.", "(202la) to yield a near-optimal regret bound of O(VSAK + S?A). Subsequently, Li et al. (2021c);", "Zhang et al. (2022) proved that even the poly-logarithmic horizon dependency in the sample com-", "plexity can be removed, albeit at the price of suboptimal scaling with S A.", "Contextual linear bandits.The linear bandit problem has been extensively studied in past", "decades (Auer, 2002; Dani et al., 2008; Chu et al., 2011; Abbasi-Yadkoriet al., 2011). For lin-", "ear bandits with infinite arms, the minimax regret bound of (dK) is achieved by OFUL", "(Abbasi-Yadkori et al., 2011), where d is the feature dimension and K the number of rounds. With", "regards to variance-aware algorithms, Zhang et al. (2021b); Kim et al. (2022) proposed VOFUL", "(VOFUL+) to achieve a variance-dependent regret bound of O(poly(d) VZk-i o + poly(d), in", "the absence of the knowledge of fokI K- (with ok the conditional variance of the noise in the k-th", "round). By assuming prior knowledge of (ok-,, Zhou et al. (2021); Zhou & Gu (2022) obtained", "similar regret bounds with improved dependence on d. Another work (Faury et al., 2020) proposed", "a Bernstein-style confidence set for the logistic bandit problem, also assuming availability of the", "noise variances.", "RL with linear function approximation. It has been an important problem in the RL com-", "munity to determine the generalization capability of linear function approximation (Jianget al.,", "'For linear mixture MDP, the model size scales linearly with the feature dimension.", "2" ]
{ "arxiv_id": "2403.10738", "language": "en", "page_idx": 1 }
2403.10738-en-2
2403.10738-en-2.jpg
Published as a conference paper at ICLR 2024 2017; Dann et al., 2018; Yang & Wang, 2019; Jin et al., 2020b; Wang et al., 2019; Sun et al., 2019; Zanette et al., 2020; Weisz et al., 2020; Li et al., 2021a; Ayoub et al., 2020; Zhang et al., 2021b; Kim et al. , 2022; Zhou et al. , 2021; Zhou $\ $Gu, 2022; He et al. , 2022) . Several model assumptions Kim et al. , 20222; Zhou et al. , 2021; Zhou $\ $Gu, 20222; He et al. , 20222) . Several model assumptions have been proposed and exploited to capture the underlying dynamics via linear functions. For example, Jiang et al. (2017) investigated low Bellman-rank, which described the algebraic dimension between the decision process and value-function approximator. Another setting proposed and studied by Jia et al. (2020); Ayoub et al. (2020); Modi et al. (2020) is that of linear mixture MDPs, which postulates that the underlying dynamics is a linear combination of $d$ known environments. Focusing on linear mixture MDPs, Zhang et al. (2021b) proposed the first sample-efficient algorithm to achieve horizon-free $\widetilde O($poly$(d)\tilde{\sqrt{K}})$ regret, and later on Kim et al. (2022) obtained better $d$-dependency in the regret bound; further, a recent study Zhou& Gu (2022) designed a variance- & uncertainty-aware exploration bonus with weighted least-square regression, achieving near-optimal regret bounds with computation efficiency. Another recent strand of research Yang &Wang (2019); Jin et al. (2020b); He et al. (2022); Agarwal et al. (2022) studied the setting of linear MDPs, where the transition kernel and reward function are assumed to be linear functions of several known lowdimensional feature vectors. Take episodic inhomogeneous linear MDPs for example: when the feature dimension is $d$ and the immediate reward in each step is bounded above by $1/H,($Jin et al., 2020b) established the regret bound of $\widetilde{O}(\sqrt{d^3H^2K})$, whereas the follow-up works He et al. (2022); Agarwal et al. (2022) improved the regret to $\widetilde{O}(d\sqrt{HK}).$ It remained unclear whether and when horizon-free solutions are plausible in linear MDPs, in the hope of accommodating scenarios with exceedingly large $H.$ ### 2 PRELIMINARIES In this section, we present the basics of MDPs and the learning process, and introduce our key assumptions. Throughout the paper, $\Delta(X)$ denotes the set of probability distributions over the set $X.$ Episodic MDPs. A finite-horizon episodic MDP can be represented by a tuple $(\mathcal{S},\mathcal{A},R,P,K,H)$, where $S$ denotes the state space containing $S$ states, $\mathcal{A}$ is the action space containing $A$ different actions, $R:\mathcal{S}\times\mathcal{A}\to\Delta([0,1])$ indicates the reward distribution, $P:\mathcal{S}\times\mathcal{A}\to\Delta(\mathcal{S})$ represents the probability transition kernel, $K$ stands for the total number of sample episodes that can be collected and $H$ is the planning horizon. In particular, $P$ is assumed throughout to be time-homogeneous, which is necessary to enable nearly horizon-free regret bounds; in light of this assumption, we denote $\operatorname{by}P_{s,a}:=P(\cdot|s,a)\in\Delta(\mathcal{S})$ the transition probability from state $s^\prime$ while taking action $a.$ The reward distribution $R$ is also assumed to be time-homogeneous, so that the immediate reweard at a state-action pair $(s,a)$ at any step $h$ is drawn from $R(s,a)$ with mean $\mathbb{E}_r^{\prime}\sim R(s,a)[r^{\prime}]=r(s,a).$ Moreover, a deterministic and possibly non- stationary policy $\pi = \{ \pi _{h}: \mathcal{S} \to \mathcal{A} \} _{h= 1}^{H}$ describes an action selection strategy, with $\pi _{h}( s)$ specifying the action chosen in state $s$ at step $h.$ At each sample episode, the learner starts from an initial state $s_1;$ for each step $h=1,\ldots,H$, the learner observes the current state $s_{h}$,takes action $a_{h}$ accordingly, receives an immediate reward $r_{h}\sim$ Prer observes the current state $s_{h}$,takes action $a_{h}$ accordingly, receives an immediate reward $r_{h}\sim$ $R(s_{h},a_{h})$,and then the environment transits to the next state $s_h+1$ in accordance with $P(\cdot\mid s_{h},a_{h}).$ When the actions are selected based on policy $\pi$,we can define the $Q$-function and the value function at step $h$ respectively as follows: $$Q_{h}^{\pi}(s,a):=\mathbb{E}_{\pi}\left[\sum\limits_{h'=h}^{H}r_{h'}\left|(s_{h},a_{h})=(s,a)\right]\quad\text{and}\quad V_{h}^{\pi}(s):=\mathbb{E}_{\pi}\left[\sum\limits_{h'=h}^{H}r_{h'}\left|s_{h}=s\right.\right]\right.$$ for any $(s,a)\in\mathcal{S}\times\mathcal{A}$,where $\mathbb{E}_\pi[\cdot]$ denotes the expectation following $\pi$, i.e., we execute $a_h^{\prime}=$ $\pi_{h^{\prime}}(s_{h^{\prime}})$for all $h<h^{\prime}\leq H$ (resp. $h\leq h^{\prime}\leq H)$ in the definition of $\tilde Q_h^{\pi}($resp.$V_h^{\pi}).$ The optimal $Q$-function and value function at step $h$ can then be defined respectively as $$Q_{h}^{*}(s,a)=\operatorname*{max}_{\pi}Q_{h}^{\pi}(s,a)\quad\mathrm{and}\quad V_{h}^{*}(s)=\operatorname*{max}_{\pi}V_{h}^{\pi}(s),\quad\forall(s,a)\in\mathcal{S}\times\mathcal{A}.$$ These functions satisfy the Bellman optimality condition in the sense that $V_h^*(s)=\max_aQ_h^*(s,a)$, $\forall s\in\mathcal{S}$, and $Q_h^*(s,a)=r(s,a)+\mathbb{E}_{s^{\prime}\sim P(\cdot|s,a)}[V_{h+1}^*(s^{\prime})],\forall(s,a)\in\mathcal{S}\times\mathcal{A}.$ 3
[ [ "0.1732", "0.03284", "0.4805", "0.03284", "0.4805", "0.04736", "0.1732", "0.04736" ], [ "0.1765", "0.1048", "0.826", "0.1048", "0.826", "0.1187", "0.1765", "0.1187" ], [ "0.1765", "0.1206", "0.824", "0.1206", "0.824", "0.1307", "0.1765", "0.1307" ], [ "0.1765", "0.1332", "0.824", "0.1332", "0.824", "0.1465", "0.1765", "0.1465" ], [ "0.1748", "0.1465", "0.826", "0.1465", "0.826", "0.1604", "0.1748", "0.1604" ], [ "0.1748", "0.1604", "0.824", "0.1604", "0.824", "0.1736", "0.1748", "0.1736" ], [ "0.1748", "0.1749", "0.826", "0.1749", "0.826", "0.1881", "0.1748", "0.1881" ], [ "0.1748", "0.1881", "0.826", "0.1881", "0.826", "0.202", "0.1748", "0.202" ], [ "0.1748", "0.202", "0.8267", "0.202", "0.8267", "0.2153", "0.1748", "0.2153" ], [ "0.1748", "0.2166", "0.826", "0.2166", "0.826", "0.2299", "0.1748", "0.2299" ], [ "0.1748", "0.2317", "0.824", "0.2317", "0.824", "0.2456", "0.1748", "0.2456" ], [ "0.1765", "0.2474", "0.824", "0.2474", "0.824", "0.2583", "0.1765", "0.2583" ], [ "0.1748", "0.26", "0.826", "0.26", "0.826", "0.2734", "0.1748", "0.2734" ], [ "0.1748", "0.2734", "0.8267", "0.2734", "0.8267", "0.2874", "0.1748", "0.2874" ], [ "0.1765", "0.2886", "0.824", "0.2886", "0.824", "0.2986", "0.1765", "0.2986" ], [ "0.1765", "0.303", "0.826", "0.303", "0.826", "0.3132", "0.1765", "0.3132" ], [ "0.1748", "0.315", "0.826", "0.315", "0.826", "0.3289", "0.1748", "0.3289" ], [ "0.1748", "0.3289", "0.826", "0.3289", "0.826", "0.3423", "0.1748", "0.3423" ], [ "0.1748", "0.3447", "0.8267", "0.3447", "0.8267", "0.358", "0.1748", "0.358" ], [ "0.1765", "0.3623", "0.824", "0.3623", "0.824", "0.3757", "0.1765", "0.3757" ], [ "0.1748", "0.377", "0.824", "0.377", "0.824", "0.3901", "0.1748", "0.3901" ], [ "0.1748", "0.3901", "0.3145", "0.3901", "0.3145", "0.404", "0.1748", "0.404" ], [ "0.1724", "0.4255", "0.339", "0.4268", "0.339", "0.4414", "0.1724", "0.44" ], [ "0.1748", "0.459", "0.8228", "0.459", "0.8228", "0.4734", "0.1748", "0.4734" ], [ "0.1748", "0.4749", "0.8228", "0.4749", "0.8228", "0.488", "0.1748", "0.488" ], [ "0.1748", "0.4893", "0.1978", "0.4893", "0.1978", "0.5005", "0.1748", "0.5005" ], [ "0.1748", "0.5195", "0.822", "0.5195", "0.822", "0.5327", "0.1748", "0.5327" ], [ "0.1748", "0.534", "0.8228", "0.534", "0.8228", "0.5474", "0.1748", "0.5474" ], [ "0.1732", "0.5474", "0.8228", "0.5474", "0.8228", "0.561", "0.1732", "0.561" ], [ "0.1732", "0.5625", "0.826", "0.561", "0.826", "0.5747", "0.1732", "0.5757" ], [ "0.1748", "0.5757", "0.8267", "0.5757", "0.8267", "0.589", "0.1748", "0.589" ], [ "0.1748", "0.5884", "0.824", "0.5884", "0.824", "0.6016", "0.1748", "0.6016" ], [ "0.1765", "0.605", "0.8228", "0.605", "0.8228", "0.6157", "0.1765", "0.6157" ], [ "0.1748", "0.617", "0.826", "0.617", "0.826", "0.631", "0.1748", "0.631" ], [ "0.1748", "0.632", "0.826", "0.632", "0.826", "0.6465", "0.1748", "0.6465" ], [ "0.1748", "0.6465", "0.714", "0.6465", "0.714", "0.661", "0.1748", "0.661" ], [ "0.7256", "0.6484", "0.824", "0.6484", "0.824", "0.66", "0.7256", "0.66" ], [ "0.1732", "0.661", "0.728", "0.661", "0.728", "0.6753", "0.1732", "0.6753" ], [ "0.1748", "0.6816", "0.8228", "0.6816", "0.8228", "0.696", "0.1748", "0.696" ], [ "0.1748", "0.6963", "0.819", "0.6963", "0.819", "0.7104", "0.1748", "0.7104" ], [ "0.1748", "0.709", "0.8228", "0.7104", "0.8228", "0.7246", "0.1748", "0.7236" ], [ "0.1732", "0.7227", "0.8228", "0.7236", "0.8228", "0.738", "0.1732", "0.7373" ], [ "0.1732", "0.738", "0.3896", "0.738", "0.3896", "0.752", "0.1732", "0.752" ], [ "0.3896", "0.773", "0.5034", "0.773", "0.5034", "0.7905", "0.3896", "0.7905" ], [ "0.5195", "0.773", "0.6562", "0.773", "0.6562", "0.7905", "0.5195", "0.7905" ], [ "0.1748", "0.8125", "0.8096", "0.8125", "0.8096", "0.827", "0.1748", "0.827" ], [ "0.2115", "0.7734", "0.3162", "0.7715", "0.3162", "0.789", "0.2115", "0.7915" ], [ "0.1765", "0.827", "0.824", "0.827", "0.824", "0.8413", "0.1765", "0.8413" ], [ "0.1748", "0.8403", "0.6665", "0.8413", "0.6665", "0.856", "0.1748", "0.855" ], [ "0.2467", "0.866", "0.751", "0.8643", "0.751", "0.881", "0.2467", "0.8833" ], [ "0.1732", "0.8945", "0.826", "0.8965", "0.826", "0.911", "0.1732", "0.909" ], [ "0.1732", "0.91", "0.6724", "0.91", "0.6724", "0.928", "0.1732", "0.928" ], [ "0.4902", "0.9478", "0.5073", "0.9478", "0.5073", "0.962", "0.4902", "0.962" ] ]
[ "Published as a conference paper at ICLR 2024", "2017; Dann et al., 2018; Yang & Wang, 2019; Jin et al., 2020b; Wang et al., 2019; Sun et al., 2019;", "Zanetteetal..2020;Weiszet al..2020:Liet al.,202la:Ayoub etal.,2020:Zhang etal.,2021b:", "Kim et al., 2022; Zhou et al., 2021; Zhou & Gu, 2022; He et al., 2022). Several model assumptions", "have been proposed and exploited to capture the underlying dynamics via linear functions.For", "example, Jiang et al. (2017) investigated low Bellman-rank, which described the algebraic dimen-", "sion between the decision process and value-function approximator. Another setting proposed and", "studied by Jia et al. (2020); Ayoub et al. (2020); Modi et al. (2020) is that of linear mixture MDPs,", "which postulates that the underlying dynamics is a linear combination of d known environments.", "Focusing on linear mixture MDPs, Zhang et al. (2021b) proposed the first sample-efficient algo-", "rithm to achieve horizon-free O(poly(d)VK) regret, and later on Kim et al. (2022) obtained better", "d-dependencyintheregretbound;further,arecent studyZhou&Gu(2022)designed a variance-&", "uncertainty-aware exploration bonus with weighted least-square regression, achieving near-optimal", "regret bounds with computation efficiency. Another recent strand of research Yang & Wang (2019);", "Jinetal.(2020b):Heetal.(2022):Agarwal etal.(2022)studiedthesettingoflinearMDPs.where", "thetransitionkernelandrewardfunctionareassumedtobelinearfunctionsof severalknownlow-", "dimensional feature vectors. Take episodic inhomogeneous linear MDPs for example: when the", "feature dimension is d and the immediate reward in each step is bounded above by 1/H, (Jin et al.,", "2020b) established the regret bound of O(Vd3 H2K),whereas the follow-up works He et al. (2022);", "Agarwal et al. (2022) improved the regret to O(dVHK). It remained unclear whether and when", "horizon-free solutions are plausible in linear MDPs, in the hope of accommodating scenarios with", "exceedinglylargeH.", "2PRELIMINARIES", "In this section, we present the basics of MDPs and the learning process, and introduce our key", "assumptions. Throughout the paper, △(X) denotes the set of probability distributions over the set", "X.", "Episodic MDPs. A finite-horizon episodic MDP can be represented by a tuple (S, A, R, P, K, H)", "where S denotes the state space containing S states, A is the action space containing A differen", "actions, R : S × A → (Jo,1D) indicates the reward distribution, P : Sx A → △(S) represents the", "probability transition kernel, K stands for the total number of sample episodes that can be collected,", "and H is the planning horizon. In particular, P is assumed throughout to be time-homogeneous,", "which is necessary to enable nearly horizon-free regret bounds; in light of this assumption, we denote", "byPsg=P(.s,a)E△(S)thetransitionprobabilityfromstatestostates'whiletakingactiona", "The reward distribution R is also assumed to be time-homogeneous, so that the immediate reweard", "at a state-action pair (s, a) at any step h is drawn from R(s, a) with mean Er'~R(s,a)[r'l = r(s, a).", "Moreover, a deterministic and possibly non-stationary policy π = [h : S → A)", "-j describes an", "action selection strategy, with h(s) specifying the action chosen in state s at step h.", "At each sample episode, the learner starts from an initial state si; for each step h = 1, .: :, H, the", "learner observes the current state sh, takes action ah accordingly, receives an immediate reward rh ", "R(sh, ah), and then the environment transits to the next state sh+1 in accordance with P( I sh, ah)", "When the actions are selected based on policy r, we can define the Q-function and the value function", "at step h respectively as follows:", "(sh,an) = (s,a)", "and Vr(s) := E", "for any (s,a) e S x A, where E,/l denotes the expectation following T, i.e., we execute ah", "Qr(s,a) := E", "Th (sh) for all h < h' ≤ H (resp. h ≤ h' ≤ H) in the definition of Q\" (resp. V). The optimal", "Q-function and value function at step h can then be defined respectively as", "Qh(s,a) =maxQ(s,a) and Vh(s) =maxVh(s), V(s,a) E S × A.", "These functions satisfy the Bellman optimality condition in the sense that V*(s) = maxa Q(s, a),", "Vs E S, and Qt(s,a) = r(s,a) + Es/~P(-Is,a)[Vh+1(s')], V(s,a) E S × A.", "3" ]
{ "arxiv_id": "2403.10738", "language": "en", "page_idx": 2 }
2403.10738-en-3
2403.10738-en-3.jpg
Published as a conference paper at ICLR 2024 The learning process. The learning process entails collection of $K$ sample episodes. At each episode $k=1,2,\ldots,K$, a policy $\pi^k$ is selected carefully based on the samples collected in the previous $k-1$ episodes; the learner then starts from a given initial state $s_1^{k}$ and executes $\pi^k$ to collect the $k$-th episode $\{(s_{h}^{k},a_{h}^{k},r_{h}^{k})\}_{1\leq h\leq H}$,where $s_{h}^{k},a_{h}^{k}$ and $r_{h}^{k}$ denote respectively the state, action and immediate reward at step $h$ of this episode. The learning performance is measured by the total regret $$\operatorname{Regret}(K):=\sum\limits_{k=1}^K\Big(V_1^*\big(s_1^k\big)-V_1^{\pi^k}\big(s_1^k\big)\Big),$$ (1) and our ultimate goal is to design a learning algorithm that minimizes the above regret (1). Key assumptions. We now introduce two key assumptions imposed throughout this paper, which play a crucial role in determining the minimal regret. The first assumption is imposed upon the rewards, requiring the aggregate reward in any episode to be bounded above by 1 almost surely. Assumption $\mathbf{1} \left ( \text{Bounded total rewards) . In any episode, we assume that }\sum _{h= 1}^Hr_h\leq 1\textit{ holds almost}\right )$ $surely\textit{regardless of the policy in use. }$ Compared to the common assumption where the immediate reward at each step is bounded by $1/H$, $\hat{\text{Assumption l is much weaker in that it allows the rewards to be spiky (e.g., we allow the immediate}}$ reward at one step to be on the order of 1 with the remaining ones being small). The interested reader is referred to Jiang & Agarwal (2018) for more discussions about the above reward assumption. The second assumption postulates that the transition kernel and the reward function reside within some known low-dimensional subspace, a scenario commonly referred to as a linear MDP. Assumption 2 (Linear MDP (Jin et al., 2020b)). Let B represent the unit $\ell_2$ ball in $\mathbb{R}^d,and$ let $\{\phi(s,a)\}_{(s,a)\in\mathcal{S}\times\mathcal{A}}\subset\mathcal{B}$ be a set of known feature vectors such that max$_s,a\|\phi_{s,a}\|_{2}\leq1.Assume$ that there exist a reward parameter $\theta_r\in\mathbb{R}^d$ and a transition kernel parameter $\mu\in\mathbb{R}^S\times d$ such that (2a) $$\begin{aligned}r(s,a)&=\left\langle\phi(s,a),\theta_{r}\right\rangle&\forall(s,a)\in\mathcal{S}\times\mathcal{A}\\P(\cdot\mid s,a)&=\mu\phi(s,a),&\forall(s,a)\in\mathcal{S}\times\mathcal{A}\\\|\theta_{r}\|_{2}&\leq\sqrt{d},\\\|\mu^{\top}v\|_{2}&\leq\sqrt{d},&\forall v\in\mathbb{R}^{S}\:obeying\:\|v\|_{\infty}\leq1.\end{aligned}$$ $(2\mathbf{b})$ (2c) (2d) In words, Assumption 2 requires both the reward function and the transition kernel to be linear combinations of a set of $d$-dimensional feature vectors, which enables effective dimension reduction as long as $d\ll SA.$ In comparison, another line of works Jia et al. (2020); Ayoub et al. (2020); Modi et al. (2020) focus on the setting of linear mixture MDP below. Assumption 3 (Linear Mixture MDP). Let $\left\{(r_i,P_i)\right\}_{i=1}^d$ be a group of known reward-transition pairs. Assume that there exists a kernel parameter $\theta\in\mathbb{R}^d$ such that (3a) $$r(s,a)=\sum_{i=1}^{d}\theta_{i}r_{i}(s,a)\forall(s,a)\in\mathcal{S}\times\mathcal{A}\\P(\cdot\mid s,a)=\sum_{i=1}^{d}\theta_{i}P_{i}(\cdot\mid s,a),\forall(s,a)\in\mathcal{S}\times\mathcal{A}\\\|\theta\|_{1}\leq1.$$ $(3b)$ (3c) Roughly speaking, Assumption 3 requires that the underlying reward-transition pair is a linear combination of $d$ known reward-transition pairs. Recent work Zhou&Gu (2022) achieved a near-tight horizon-regret bound in this setting with a computational efficient algorithm. However, we emphasize that learning a linear MDP is fundamentally harder than learning a linear mixture MDP. The reason is that the only unknown parameter in a linear mixture MDP problem is the hidden kernel $\theta$, which has at most $d$ dimensions. So it is possible to learn $\theta$ to fully express the transition model. 4
[ [ "0.1748", "0.03284", "0.4795", "0.03284", "0.4795", "0.04736", "0.1748", "0.04736" ], [ "0.1765", "0.1048", "0.8228", "0.1048", "0.8228", "0.1187", "0.1765", "0.1187" ], [ "0.1748", "0.1193", "0.8228", "0.1193", "0.8228", "0.1332", "0.1748", "0.1332" ], [ "0.1748", "0.1338", "0.2566", "0.132", "0.2566", "0.1433", "0.1748", "0.1459" ], [ "0.255", "0.1332", "0.8228", "0.1332", "0.8228", "0.1465", "0.255", "0.1465" ], [ "0.1748", "0.1465", "0.824", "0.1465", "0.824", "0.161", "0.1748", "0.161" ], [ "0.1748", "0.1604", "0.824", "0.1604", "0.824", "0.1749", "0.1748", "0.1749" ], [ "0.1748", "0.1755", "0.2467", "0.1755", "0.2467", "0.1875", "0.1748", "0.1875" ], [ "0.3594", "0.207", "0.46", "0.207", "0.46", "0.2247", "0.3594", "0.2247" ], [ "0.4836", "0.2052", "0.6323", "0.2052", "0.6323", "0.2267", "0.4836", "0.2267" ], [ "0.8022", "0.2102", "0.8267", "0.2102", "0.8267", "0.2235", "0.8022", "0.2235" ], [ "0.1748", "0.2443", "0.763", "0.2443", "0.763", "0.2583", "0.1748", "0.2583" ], [ "0.1748", "0.2734", "0.3105", "0.2727", "0.3105", "0.2874", "0.1748", "0.2886" ], [ "0.3022", "0.2727", "0.8228", "0.2734", "0.8228", "0.2886", "0.3022", "0.2874" ], [ "0.1732", "0.2886", "0.824", "0.2874", "0.824", "0.3018", "0.1732", "0.303" ], [ "0.1732", "0.3018", "0.7983", "0.3018", "0.7983", "0.3164", "0.1732", "0.3164" ], [ "0.1724", "0.3213", "0.826", "0.3213", "0.826", "0.339", "0.1724", "0.339" ], [ "0.1732", "0.3384", "0.4182", "0.3384", "0.4182", "0.3516", "0.1732", "0.3516" ], [ "0.1748", "0.363", "0.826", "0.363", "0.826", "0.377", "0.1748", "0.377" ], [ "0.1748", "0.3774", "0.8228", "0.3774", "0.8228", "0.3914", "0.1748", "0.3914" ], [ "0.1732", "0.3914", "0.824", "0.3901", "0.824", "0.404", "0.1732", "0.4048" ], [ "0.1732", "0.4048", "0.7983", "0.4048", "0.7983", "0.4192", "0.1732", "0.4192" ], [ "0.1732", "0.4255", "0.824", "0.4255", "0.824", "0.44", "0.1732", "0.44" ], [ "0.1748", "0.44", "0.767", "0.44", "0.767", "0.4539", "0.1748", "0.4539" ], [ "0.1748", "0.4583", "0.824", "0.4583", "0.824", "0.4717", "0.1748", "0.4717" ], [ "0.1732", "0.4717", "0.826", "0.4697", "0.826", "0.4873", "0.1732", "0.4893" ], [ "0.1732", "0.488", "0.8228", "0.488", "0.8228", "0.5024", "0.1732", "0.5024" ], [ "0.2876", "0.511", "0.4395", "0.511", "0.4395", "0.526", "0.2876", "0.526" ], [ "0.535", "0.511", "0.648", "0.511", "0.648", "0.526", "0.535", "0.526" ], [ "0.796", "0.5103", "0.8286", "0.5103", "0.8286", "0.5264", "0.796", "0.5264" ], [ "0.2688", "0.528", "0.4182", "0.529", "0.4182", "0.547", "0.2688", "0.5454" ], [ "0.535", "0.53", "0.648", "0.53", "0.648", "0.5444", "0.535", "0.5444" ], [ "0.794", "0.529", "0.8286", "0.529", "0.8286", "0.5454", "0.794", "0.5454" ], [ "0.2957", "0.55", "0.384", "0.55", "0.384", "0.5674", "0.2957", "0.5674" ], [ "0.796", "0.5503", "0.8286", "0.5503", "0.8286", "0.5674", "0.796", "0.5674" ], [ "0.281", "0.571", "0.384", "0.571", "0.384", "0.5884", "0.281", "0.5884" ], [ "0.5317", "0.5693", "0.728", "0.571", "0.728", "0.5884", "0.5317", "0.587" ], [ "0.7935", "0.5728", "0.8286", "0.5728", "0.8286", "0.5884", "0.7935", "0.5884" ], [ "0.1748", "0.604", "0.824", "0.604", "0.824", "0.617", "0.1748", "0.617" ], [ "0.1765", "0.619", "0.824", "0.619", "0.824", "0.63", "0.1765", "0.63" ], [ "0.1732", "0.632", "0.3057", "0.631", "0.3057", "0.6445", "0.1732", "0.646" ], [ "0.1748", "0.653", "0.824", "0.653", "0.824", "0.6665", "0.1748", "0.6665" ], [ "0.1724", "0.6665", "0.4631", "0.6665", "0.4631", "0.6797", "0.1724", "0.6797" ], [ "0.1748", "0.685", "0.824", "0.685", "0.824", "0.6987", "0.1748", "0.6987" ], [ "0.1724", "0.7007", "0.619", "0.6997", "0.619", "0.714", "0.1724", "0.7153" ], [ "0.3865", "0.7236", "0.3938", "0.729", "0.3865", "0.7344", "0.38", "0.729" ], [ "0.3694", "0.735", "0.464", "0.733", "0.464", "0.7505", "0.3694", "0.7524" ], [ "0.5986", "0.7363", "0.7114", "0.7363", "0.7114", "0.7505", "0.5986", "0.7505" ], [ "0.794", "0.735", "0.8286", "0.735", "0.8286", "0.752", "0.794", "0.752" ], [ "0.3774", "0.754", "0.398", "0.754", "0.398", "0.762", "0.3774", "0.762" ], [ "0.3064", "0.7373", "0.3782", "0.735", "0.3782", "0.75", "0.3064", "0.752" ], [ "0.3857", "0.779", "0.4836", "0.779", "0.4836", "0.7935", "0.3857", "0.7935" ], [ "0.5986", "0.78", "0.7114", "0.78", "0.7114", "0.7944", "0.5986", "0.7944" ], [ "0.7935", "0.78", "0.8286", "0.78", "0.8286", "0.7954", "0.7935", "0.7954" ], [ "0.3757", "0.797", "0.3987", "0.797", "0.3987", "0.8096", "0.3757", "0.8096" ], [ "0.29", "0.781", "0.3708", "0.779", "0.3708", "0.7935", "0.29", "0.7954" ], [ "0.3228", "0.811", "0.392", "0.811", "0.392", "0.8276", "0.3228", "0.8276" ], [ "0.794", "0.811", "0.8286", "0.811", "0.8286", "0.827", "0.794", "0.827" ], [ "0.1748", "0.8413", "0.8267", "0.8413", "0.8267", "0.855", "0.1748", "0.855" ], [ "0.1748", "0.855", "0.826", "0.855", "0.826", "0.8687", "0.1748", "0.8687" ], [ "0.1765", "0.8706", "0.824", "0.8706", "0.824", "0.881", "0.1765", "0.881" ], [ "0.1732", "0.8833", "0.8228", "0.8833", "0.8228", "0.8965", "0.1732", "0.8965" ], [ "0.1724", "0.8965", "0.824", "0.896", "0.824", "0.91", "0.1724", "0.911" ], [ "0.1748", "0.911", "0.826", "0.911", "0.826", "0.925", "0.1748", "0.925" ], [ "0.4927", "0.9487", "0.5063", "0.9487", "0.5063", "0.9604", "0.4927", "0.9604" ] ]
[ "Published as a conference paper at ICLR 2024", "The learning process.The learning process entails collection of K sample episodes. At each", "episode k = 1, 2, ..., K, a policy k is selected carefully based on the samples collected in the", "previous k", "1 episodes; the learner then starts from a given initial state sh and executes to", "collect the k-th episode [(sh,ah, rh))i<h<H, where sh,ah and rh denote respectively the state,", "action and immediate reward at step h of this episode. The learning performance is measured by the", "total regret", "Regret(K) :=", "(vt(st) - Vt*(st)", "(1)", "and our ultimate goal is to design a learning algorithm that minimizes the above regret (1)", "Key assumptions.", "Wenow introducetwokeyassumptions imposedthroughoutthis paper,which", "play a crucial role in determining the minimal regret. The first assumption is imposed upon the", "rewards, requiring the aggregate reward in any episode to be bounded above by 1 almost surely.", "Assumption 1 (Bounded total rewards). In any episode, we assume that h-1 rh ≤ 1 holds almost", "surely regardless of the policy inuse.", "Compared to the common assumption where the immediate reward at each step is bounded by 1/H,", "Assumption 1 is much weaker in that it allows the rewards to be spiky (e.g., we allow the immediate", "rewardatonesteptobeontheorderof1withtheremainingonesbeingsmall).Theinterestedreader", "is referred to Jiang & Agarwal (2018) for more discussions about the above reward assumption.", "The second assumption postulates that the transition kernel and the reward function reside within", "some known low-dimensional subspace, a scenario commonly referred to as a linear MDP.", "Assumption 2 (Linear MDP (Jin et al., 2020b)). Let B represent the unit l2 ball in Rd, and let", "(p(s, a)(s,a)esxA C B be a set of known feature vectors such that maxs,a llps,all2 ≤ 1. Assume", "that there exist a reward parameter O, E Rd and a transition kernel parameter μ e RSxd such that", "r(s,a)=(Φ(s,a),or)", "V(s,a) ESxA", "(2a)", "P(-I s,a) = μp(s,a),", "V(s,a) esxA", "(2b)", "I10-ll2 ≤ Va,", "(2c)", "IlμTull2 ≤ Va,", "VERS obeying llullo≤1.", "(2d)", "In words, Assumption 2 requires both the reward function and the transition kernel to be linear", "combinationsofasetofd-dimensionalfeaturevectors,whichenableseffectivedimensionreduction", "as long as d < SA.", "In comparison, another line of works Jia et al. (2020); Ayoub et al. (2020); Modi et al. (2020) focus", "on the setting of linear mixture MDP below.", "Assumption 3 (Linear Mixture MDP). Let {(ri, P)ld-, be a group of known reward-transition", "pairs. Assume that there exists a kernel parameter e IRd such that", "d", "Z0iri(s,a)", "V(s,a) esx A", "(3a)", "=1", "r(s,a)=", "0,Pi(-[s, a)", "V(s,a) E S x A", "(3b)", "i=1", "P(|s,a) =", "/0l1≤1.", "(3c)", "Roughly speaking, Assumption 3 requires that the underlying reward-transition pair is a linear com-", "bination of d known reward-transition pairs. Recent work Zhou & Gu (2022) achieved a near-tight", "horizon-regretboundinthissettingwithacomputationalefficientalgorithm.However.weempha-", "size that learning a linear MDP is fundamentally harder than learning a linear mixture MDP. The", "reason is that the only unknown parameter in a linear mixture MDP problem is the hidden kernel", ", which has at most d dimensions. So it is possible to learn to fully express the transition model.", "4" ]
{ "arxiv_id": "2403.10738", "language": "en", "page_idx": 3 }
2403.10738-en-4
2403.10738-en-4.jpg
Published as a conference paper at ICLR 2024 <table> <tbody> <tr> <td>$\overline{\mathbf{Alg}}$</td> <td>$\mathbf{orithm1}$ Main Algorithm</td> </tr> <tr> <td>1 ·</td> <td>arameter $c$</td> </tr> <tr> <td>2:</td> <td>$((KH)/\delta$</td> </tr> <tr> <td>3:</td> <td>$\mathbf{for}$ $k= 1, 2, \ldots , K$ $\mathbf{do}$</td> </tr> <tr> <td>4: 1 1 1 1</td> <td>$l_{*}^{A}$</td> </tr> <tr> <td>5:</td> <td>$\parallel Constructthecon$ $ndenc\rho r\rho onontort$ $th\rho$ $t$ $transitionkernel.$</td> </tr> <tr> <td>6:</td> <td>$\textbf{for}v\in \mathcal{W} _{\epsilon }\textbf{do}$</td> </tr> <tr> <td>7: </td> <td>$\theta^{k}(v).\theta^{k}(v).\Lambda^{k}(v)$ $\mathbf{F}-$Estimator$(\mathcal{D}^k,v);$</td> </tr> <tr> <td></td> <td>$b^{k}(v,\phi)\leftarrow\alpha_{\downarrow}$ $\phi^{\top}(\Lambda^{k}(v))^{-1}\phi+4\epsilon;$</td> </tr> <tr> <td>9:</td> <td>end for</td> </tr> <tr> <td>10:</td> <td>$\{\tilde{u}\in\mathcal{U}||\phi^{\prime}\tilde{u}^{\prime}v-\phi^{\prime}\theta(v)|<b^{k}(v,\phi).\forall\phi\in\Phi.v\in\mathcal{W}.$</td> </tr> <tr> <td>11: ·</td> <td>$\parallel Constructtheconfide$ $2\varrho lonTorl$ the reward function</td> </tr> <tr> <td>12:</td> <td>$\Theta^{k}\leftarrow$Reward -Confidence $\{\phi_{\mathrm{r}}^{k^{\prime}}/v/d\}$ $^{'}/\sqrt{d}\}_{k^{\prime}\in[k-}$ $h\in[H]$</td> </tr> <tr> <td>13:</td> <td>$\parallel Optimisticplanning.$</td> </tr> <tr> <td>14: </td> <td>$\mu ^{k}, \theta ^{k})$ $\epsilon$ $r_{h}|\tilde{u}.\theta|$</td> </tr> <tr> <td>15:</td> <td>be the optima aramerer as</td> </tr> <tr> <td>16:</td> <td>Play $\pi^{k}$ in the $k$-th episode;</td> </tr> <tr> <td>17:</td> <td>endfor</td> </tr> </tbody> </table> While in linear MDP, the dimension of unknown parameter $\mu$ scales linearly in the number of states, where it is impossible to recover the transition model. To address this problem, previous works on linear MDP try to learn the transition kernel in some certain direction, e.g., $\mu^\top v$ for some certain $v\in\mathbb{R}^S.$ This approach faces a fundamental problem in sharing samples among difference layers. We refer to Section 3 for more discussion. Notation. Let us introduce several notation to be used throughout. First, we use $\iota$ to abbreviate $\log(2/\delta).$ For any $x\in\mathbb{R}^d$ and $\Lambda\in\mathbb{R}^d\times d$, we define the weighted norm $\|x\|_\Lambda:=\sqrt{x^\top\Lambda x}.$ Let $[N]$ denote the set$\left \{ 1, 2, \ldots , N\right \}$for a positive integer $N.$ Define $\mathcal{B} ( x) : = \{ \theta \in \mathbb{R} ^d\mid \| \theta \| _2\leq x\}$ and let $\mathcal{B}:=\mathcal{B}(1)$ be the unit ball. For two vectors $u,v$ with the same dimension, we say $u\geq v$ (resp. $u\leq v)$ iff $u$ is elementwise no smaller (resp. larger) than $v.$ For a random variable $X$, we use Var$(\overline{X})$ to $\begin{aligned}\text{denote its variance. For any probability vector }p\in\Delta(\mathcal{S})\mathrm{~and~any~}v=[v_i]_{1\leq i\leq S}\in\mathbb{R}^S,\mathrm{we~denote~by}\end{aligned}$ $\mathbb{V}(p,v):=p^{\top}(v^{2})-(p^{\top}v)^{2}$ the associated variance, where $v^2:=[v_i^2]_{1\leq i\leq S}$ denotes the entrywise square of $v.$ Let $\phi_h^k$ abbreviate $\phi(s_h^k,a_h^k)$ for any proper $(h,k).$ Also, we say $(h^{\prime},k^{\prime})\leq(h,k)$ iff $h^{\prime}+k^{\prime}H\leq h+kH.$ Let $\mathcal{F}_h^k$ denote the $\sigma$-algebra generated by $\{s_h^{k^{\prime}}^{\prime},a_{h^{\prime}}^{k^{\prime}}\}_{(h^{\prime},k^{\prime})\leq(h,k)}.$ We employ $\mathbb{E}[\cdot|\tilde{\mu},\theta]$ to denote the expectation when the underlying linear MDP is generated by the transition kernel parameter $\tilde{\mu}$ and the reward parameter $\theta($cf.(2)). Moreover, let $\tilde{\Phi}$ denote the set of all possible features. Without loss of generality, we assume $\Phi$ is a convex set. ### 3 TECHNIOUE OVERVIEW In this section, we first discuss the hardness of horizon-free bounds for linear MDP, and then introduce the high-level ideas of our approach. To simplify presentation, we focus on the regret incurred by learning the unknown transition dynamics. ## 3.1 TECHNICAL CHALLENGE Least-square regression in the linear MDP problem. Jin et al.(2020c) proposed the first efficient algorithm (LSVI-UCB) for the linear MDP problem. In this method, for each $h\in[H]$, the learner maintains an estimation of $V_{h+1}$, and constructs optimistic estimators of $Q_h(s,a):=$ $r(s,a)+P_{s,a}^{\top}V_{h+1}.$ Since the reward $r$ is assumed to be known, it suffices to estimate $P_{s,a}^{\top}V_{h+1}=$ $( \phi ( s, a) ) ^{\top }\mu ^{\top }V_{h+ 1}. \textbf{By defining }\theta _{h+ 1}: = \mu ^{\top }V_{h+ 1}$,we can estimate $(\phi(s,a))^{\top}\theta_{h+1}$ with leastsquare regression because all state-action pairs share the same kernel $\theta_{h+1}.$ This task is basically 5
[ [ "0.1732", "0.03284", "0.4795", "0.0322", "0.4795", "0.04672", "0.1732", "0.04736" ], [ "0.1748", "0.1048", "0.3733", "0.1048", "0.3733", "0.1187", "0.1748", "0.1187" ], [ "0.179", "0.1218", "0.7793", "0.1218", "0.7793", "0.1364", "0.179", "0.1364" ], [ "0.1805", "0.1395", "0.6763", "0.1395", "0.6763", "0.1572", "0.1805", "0.1572" ], [ "0.1814", "0.159", "0.357", "0.159", "0.357", "0.1724", "0.1814", "0.1724" ], [ "0.183", "0.1755", "0.1969", "0.1755", "0.1969", "0.1875", "0.183", "0.1875" ], [ "0.2173", "0.1704", "0.478", "0.1749", "0.478", "0.1925", "0.2173", "0.1881" ], [ "0.1814", "0.1881", "0.1978", "0.1881", "0.1978", "0.2039", "0.1814", "0.2039" ], [ "0.2157", "0.1863", "0.6045", "0.1849", "0.6045", "0.2026", "0.2157", "0.2039" ], [ "0.1772", "0.2026", "0.1953", "0.1995", "0.1993", "0.2153", "0.183", "0.2184" ], [ "0.2181", "0.2026", "0.3162", "0.2026", "0.3162", "0.214", "0.2181", "0.214" ], [ "0.1805", "0.2166", "0.1978", "0.2166", "0.1978", "0.2329", "0.1805", "0.2329" ], [ "0.2378", "0.2166", "0.572", "0.2166", "0.572", "0.2311", "0.2378", "0.2311" ], [ "0.1805", "0.2317", "0.1969", "0.2317", "0.1969", "0.25", "0.1805", "0.25" ], [ "0.2345", "0.2329", "0.4844", "0.2329", "0.4844", "0.2474", "0.2345", "0.2474" ], [ "0.1805", "0.2468", "0.1978", "0.2468", "0.1978", "0.262", "0.1805", "0.262" ], [ "0.2197", "0.2488", "0.2688", "0.2488", "0.2688", "0.26", "0.2197", "0.26" ], [ "0.1765", "0.2632", "0.1978", "0.2632", "0.1978", "0.2778", "0.1765", "0.2778" ], [ "0.2181", "0.2644", "0.2615", "0.2644", "0.2615", "0.276", "0.2181", "0.276" ], [ "0.2615", "0.2615", "0.6465", "0.2588", "0.6465", "0.2766", "0.2615", "0.279" ], [ "0.1732", "0.2798", "0.1993", "0.2798", "0.1993", "0.2974", "0.1732", "0.2974" ], [ "0.2181", "0.2822", "0.5986", "0.2822", "0.5986", "0.2954", "0.2181", "0.2954" ], [ "0.1748", "0.2998", "0.1978", "0.2998", "0.1978", "0.3145", "0.1748", "0.3145" ], [ "0.2157", "0.2966", "0.7646", "0.2974", "0.7646", "0.3164", "0.2157", "0.315" ], [ "0.1765", "0.3176", "0.1978", "0.3176", "0.1978", "0.332", "0.1765", "0.332" ], [ "0.2173", "0.3164", "0.367", "0.3176", "0.367", "0.332", "0.2173", "0.3308" ], [ "0.1765", "0.334", "0.1978", "0.334", "0.1978", "0.3484", "0.1765", "0.3484" ], [ "0.2181", "0.3333", "0.5947", "0.3333", "0.5947", "0.351", "0.2181", "0.351" ], [ "0.1765", "0.3499", "0.1978", "0.3499", "0.1978", "0.3643", "0.1765", "0.3643" ], [ "0.2181", "0.3499", "0.8037", "0.3499", "0.8037", "0.3643", "0.2181", "0.3643" ], [ "0.1772", "0.3643", "0.1969", "0.3643", "0.1969", "0.3774", "0.1772", "0.3774" ], [ "0.2157", "0.363", "0.4028", "0.3643", "0.4028", "0.379", "0.2157", "0.3774" ], [ "0.1732", "0.3774", "0.2566", "0.3757", "0.2566", "0.3901", "0.1732", "0.3926" ], [ "0.1732", "0.4248", "0.8228", "0.4248", "0.8228", "0.4382", "0.1732", "0.4382" ], [ "0.1748", "0.4382", "0.8228", "0.4382", "0.8228", "0.4526", "0.1748", "0.4526" ], [ "0.1732", "0.4507", "0.8228", "0.452", "0.8228", "0.4666", "0.1732", "0.4653" ], [ "0.1748", "0.4666", "0.826", "0.4666", "0.826", "0.481", "0.1748", "0.481" ], [ "0.1748", "0.4797", "0.4495", "0.4797", "0.4495", "0.4937", "0.1748", "0.4937" ], [ "0.1748", "0.513", "0.8228", "0.513", "0.8228", "0.528", "0.1748", "0.528" ], [ "0.1732", "0.5264", "0.824", "0.5264", "0.824", "0.5444", "0.1732", "0.5444" ], [ "0.1765", "0.5435", "0.8228", "0.5435", "0.8228", "0.5566", "0.1765", "0.5566" ], [ "0.1765", "0.558", "0.826", "0.558", "0.826", "0.5713", "0.1765", "0.5713" ], [ "0.1732", "0.571", "0.822", "0.571", "0.822", "0.584", "0.1732", "0.584" ], [ "0.1748", "0.5854", "0.8228", "0.5854", "0.8228", "0.5996", "0.1748", "0.5996" ], [ "0.1732", "0.5977", "0.824", "0.5986", "0.824", "0.616", "0.1732", "0.6157" ], [ "0.1748", "0.616", "0.824", "0.616", "0.824", "0.63", "0.1748", "0.63" ], [ "0.1748", "0.632", "0.826", "0.632", "0.826", "0.6494", "0.1748", "0.6494" ], [ "0.1765", "0.6484", "0.8228", "0.6484", "0.8228", "0.662", "0.1765", "0.662" ], [ "0.1748", "0.662", "0.824", "0.662", "0.824", "0.6753", "0.1748", "0.6753" ], [ "0.1732", "0.6753", "0.603", "0.6753", "0.603", "0.6895", "0.1732", "0.6895" ], [ "0.1748", "0.714", "0.4004", "0.714", "0.4004", "0.729", "0.1748", "0.729" ], [ "0.1732", "0.7476", "0.8228", "0.7476", "0.8228", "0.761", "0.1732", "0.761" ], [ "0.1765", "0.762", "0.824", "0.762", "0.824", "0.776", "0.1765", "0.776" ], [ "0.1748", "0.7764", "0.4739", "0.7764", "0.4739", "0.7905", "0.1748", "0.7905" ], [ "0.1732", "0.8096", "0.3906", "0.81", "0.3906", "0.8247", "0.1732", "0.8237" ], [ "0.1748", "0.837", "0.826", "0.837", "0.826", "0.8516", "0.1748", "0.8516" ], [ "0.1748", "0.853", "0.826", "0.853", "0.826", "0.866", "0.1748", "0.866" ], [ "0.1748", "0.867", "0.8203", "0.867", "0.8203", "0.881", "0.1748", "0.881" ], [ "0.1732", "0.879", "0.819", "0.879", "0.819", "0.8965", "0.1732", "0.8965" ], [ "0.1732", "0.898", "0.826", "0.898", "0.826", "0.911", "0.1732", "0.911" ], [ "0.1748", "0.911", "0.824", "0.911", "0.824", "0.9253", "0.1748", "0.9253" ], [ "0.492", "0.9463", "0.5073", "0.9463", "0.5073", "0.962", "0.492", "0.962" ] ]
[ "Published as a conference paper at ICLR 2024", "Algorithm 1 Main Algorithm", "1: Input: Number of episodes K, horizon H, feature dimension d, confidence parameter d", "2: Initialization: >+ 1/H?, e ← 1/(KH)4, α← 150d/log²((KH)/0)", "3: for k =1, 2, ...,K do", "4:", "Dk - (sh,ah,sh'+1+h'e[H],k'e[k-1];", "5:", "I/ Construct the confidence region for the transition kernel.", "6:", "for w E W.do", "7:", "(0h(u), 0k(u),A*(u)) HF -Estimator(Dh,);", "8:", "bh (, Φ) αVT(A*(u)-1p + 4e;", "9:", "end for", "10:", "u←", "TieullpTTu-gTo()l<bh(u, g), Vped,ve we", "11:", "I/ Construct the confidence region for the reward function.", "12:", "Oh Reward - Confidence ({bh /Vd]k'e[k-1],he[H], (rh /Vd)kve[k-1],he[H]", "13:", "I/ Optimistic planning.", "14:", "(uh, ok) ← argmaxueuk,oeok max, E.[Zh=i rhli, 0];", "15:", "k be the optimal policy w.r.t. the reward parameter as ok and transition parameter as μh;", "16:", "Play in the k-th episode;", "17: end for", "While in linear MDP, the dimension of unknown parameter μ scales linearly in the number of states", "where it is impossible to recover the transition model. To address this problem, previous works on", "linear MDP try to learn the transition kernel in some certain direction, e.g., μ y for some certain", " E R. This approach faces a fundamental problem in sharing samples among difference layers.", "We refer to Section 3 for more discussion.", "Notation. Let us introduce several notation to be used throughout. First, we use t to abbreviate", "log(2/0). For any r E Rd and A E IRdxd, we define the weighted norm rllA := VrTAr. Let [N]", "denote the set [1, 2, ..., N} for a positive integer N. Define B(r) := {0 e IRd I 02 ≤ ) and let", "B := B(1) be the unit ball. For two vectors u, u with the same dimension, we say u ≥ v (resp. u ≤ v)", "iff u is elementwise no smaller (resp. larger) than w. For a random variable X, we use Var(X) to", "denote its variance. For any probability vector p E (S) and any v = [vili<i<s RS, we denote by", "V(p, u) := pT (u2) - (pTu)? the associated variance, where u2 :- [α2li<i<s denotes the entrywise", "square of u. Let h abbreviate Φ(sh,ah) for any proper (h, k). Also, we say (h',k') ≤ (h, k) iff", "h' + k'H ≤ h + kH. Let Fh denote the o-algebra generated by [sh, ah*)(hi,k)<(h,k). We employ", "E[ I ji, ] to denote the expectation when the underlying linear MDP is generated by the transition", "kernel parameter ju and the reward parameter (cf. (2). Moreover, let denote the set of all possible", "features. Without loss of generality, we assume @ is a convex set.", "3TECHNIQUE OVERVIEW", "In this section, we first discuss the hardness of horizon-free bounds for linear MDP, and then intro", "duce the high-level ideas of our approach. To simplify presentation, we focus on the regret incurred", "by learning the unknown transition dynamics.", "3.1 TECHNICALCHALLENGE", "Least-square regression in the linear MDP problem.Jin et al. (2020c) proposed the first ef-", "ficient algorithm (LSVI-UCB) for the linear MDP problem. In this method, for each h E [H],", "the learner maintains an estimation of Vh+1, and constructs optimistic estimators of Qh(s,a) :=", "r(s, a) + P,. Vh+1. Since the reward r is assumed to be known, it suffices to estimate Ps,a Vh+1 =", "(Φ(s,a)) μ Vh+1: By defining Oh+1 := μ Vh+1, we can estimate (Φ(s,a))Oh+1 with least-", "square regression because all state-action pairs share the same kernel Sh+1. This task is basically", "5" ]
{ "arxiv_id": "2403.10738", "language": "en", "page_idx": 4 }
2204.08085-en-2
2204.08085-en-2.jpg
CPFair: Personalized Consumer and Producer Fairness Re-ranking for Recommender Systems recommendation algorithm baseline amount the number of experiments carried out to 128 recommendation simulation. 2 вАСКGROUND AND RELATED WORK A promising approach to classifying the literature in recommendation fairness is according to the beneficiary stakeholder [1,17]. Based on our survey screening results on papers published in fairness during the past two years, only 9.1% of publications in the field deal with multi-sided fairness, with even a less percentage 3.6% proposing an actual two-sided fairness-aware algorithm, as pursued in our current study. C-fairness Methods. Dwork et al. [16] introduces a framework for individual fairness by including all users in the protected group. Abdollahpouri et al.[3] and Naghiaei et al.[30] investigate a usercentered evaluation of popularity bias that accounts for different levels of interest among users toward popular items in movies and book domain. Abdollahpouri et al. [4] propose a regularizationbased framework to mitigate this bias from the user perspective. Li et al.[26] address the C-fairness problem in e-commerce recommendation from a group fairness perspective, i.e., a requirement that protected groups should be treated similarly to the advantaged group or total population [33]. Several recent studies have indicated that an exclusively consumer-centric design approach, in which customers' satisfaction is prioritized over producers' interests, may result in a reduction of the system's overall utility [32,37]. As a result, we include the producer fairness perspectives in our proposed framework as the second objective in this work. P-fairness Methods. Several works have studied recommendation fairness from the producer's perspective [39, 40]. Gómez et al. [19] assess recommender system algorithms disparate exposure based on producers' continent of production in movie and book recommendation domain and propose an equity-based approach to regulate the exposure of items produced in a continent. Dong et al.[15] set a constraint to limit the maximum times an item can be recommended among all users proportional to its popularity to enhance the item exposure fairness. In contrast, Ge et al. [18] investigate fairness in a dynamic setting where item popularity changes over time in the recommendation process and models the recommendation problem as a constrained Markov Decision Process with a dynamic policy toward fairness. A common observation in C-fairness and P-Fairness research is the type of attributes used to segment the groups on consumer and provider side. These attributes could be internal, e.g., determined via user-item interactions [2,26] or provided externally, e.g., protected attributes such as gender, age, or geographical location [6, 19]. In this work, we segmented the groups by internal attributes and based on the number of interactions for both consumers and providers. CP-fairness Methods. Considering both consumers' and providers' perspectives, Chakraborty et al.[9] present mechanisms for CPfairness in matching platforms such as Airbnb and Uber. Rahmani et al.[34] studied the interplays and tradeoffs between consumer and producer fairness in Point-of-Interest recommendations. Patro et al.[32] map fair recommendation problem to the constrained version of the fair allocation problem with indivisible goods and propose an algorithm to recommend top-K items by accounting SIGIR'22,July 11-15,2022, Madrid, Spain ## Table 1: Percentage of users and items located at different number of interactions thresholds (as n and r represents, respectively) in the training set of the datasets. <table> <tbody> <tr> <th>Dataset</th> <th>10 $n$ $\geq$</th> <th>20 $n$ $\geq$</th> <th>50 $n$ 之</th> <th>100 $n\geq$</th> <th>10 $r$ $\geq$</th> <th>20 $r$ 之</th> <th>50 $r$ 之</th> <th>$10C$ $\geq$ $r$</th> </tr> <tr> <td>MovieLens</td> <td>$100\%$</td> <td>$82.08\%$</td> <td>$46.98\%$</td> <td>$26.09\%$</td> <td>$77.39\%$</td> <td>$60.49\%$</td> <td>$34.54\%$</td> <td>$16.46\%$</td> </tr> <tr> <td>Epinion</td> <td>$99.85\%$</td> <td>$56.60\%$</td> <td>$8.11\%$</td> <td>$1.57\%$</td> <td>$99.81\%$</td> <td>$63.83\%$</td> <td>$17.33\%$</td> <td>$4.61\%$</td> </tr> <tr> <td>Gowalla</td> <td>$100\%$</td> <td>$86.11\%$</td> <td>$25.40\%$</td> <td>$4.87\%$</td> <td>$100\%$</td> <td>$84.44\%$</td> <td>$20.10\%$</td> <td>$3.95\%$</td> </tr> <tr> <td>LastFM</td> <td>$96.33\%$</td> <td>$72,73\%$</td> <td>$0.00\%$</td> <td>$0.00\%$</td> <td>$73.99\%$</td> <td>$37.36\%$</td> <td>$15.00\%$</td> <td>$4.48\%$</td> </tr> </tbody> </table> for producer fairness aspects. Wu et al.[38] focus on two-sided fairness from an individual-based perspective, where fairness is defined as the same exposure to all producers and the same nDCG to all consumers involved. Do et al. [14] define the notion of fairness in increasing the utility of the worse-off individuals following the concept of distributive justice and proposed an algorithm based on maximizing concave welfare functions using the Frank-Wolfe algorithm. Lin et al.[28] investigate sentiment bias, the bias where recommendation models provide more relevant recommendations on user/item groups with more positive feedback, and its effect on both consumers and producers. The inner layer of the circle in Figure 2 presents approaches for recommendation fairness that could be classified according to 1) developing metrics to quantify fairness, 2) developing frameworks for producing fair models (according to the desired notion of fairness), or 3) modifying data to combat historical bias. Contrary to the works surveyed, we develop a fairness-aware algorithm that simultaneously addresses user groups and item group fairness objectives jointly via an efficient optimization algorithm capable of increasing the system's overall accuracy. 3 мотIVATING CP-FAIRNESS CONCERNS In this section, we intend to motivate the need of having twosided fairness (i.e., user and item) by undertaking both data and algorithm analysis. We analyze the distribution and properties of two well-known real-world recommendation datasets, i.e., Epinion and Gowalla, with their details summarized in Table 2. Due to space consideration, we only show the analysis on these datasets; however, we observed similar patterns on the other datasets as can be seen in Figure 4 baseline (N) models. In Table 1, we show the distribution of users and items with different numbers of interactions in the datasets. As the values show, most users are concentrated in areas with less interaction with the items. We can also note that majority of items have received fewer interactions from the users (i.e., long-tail items), and a small percentage of items (i.e., popular items) are recommended frequently. This motivates the need to expand the long-tail coverage of recommendation lists while encouraging users with fewer interactions to engage with the system. In the next step, we analyze the recommendation quality of the fairness-unaware baseline algorithms on the two datasets for both user and item groups. In Figure 3, we show the min-max normalized values of the recommendation algorithms quality on the Epinion and Gowalla datasets. In Figures 3a and 3b we plot the accuracy (i.e., nDCG@10) of all users, active users, and inactive users group. Later,
[ [ "0.0866", "0.077", "0.527", "0.077", "0.527", "0.0871", "0.0866", "0.0871" ], [ "0.714", "0.077", "0.9126", "0.077", "0.9126", "0.0871", "0.714", "0.0871" ], [ "0.1259", "0.108", "0.4836", "0.108", "0.4836", "0.1218", "0.1259", "0.1218" ], [ "0.5186", "0.1061", "0.9126", "0.1061", "0.9126", "0.11615", "0.5186", "0.11615" ], [ "0.12335", "0.1218", "0.4805", "0.1218", "0.4805", "0.1351", "0.12335", "0.1351" ], [ "0.5195", "0.1206", "0.914", "0.1206", "0.914", "0.1307", "0.5195", "0.1307" ], [ "0.5156", "0.1332", "0.818", "0.1332", "0.818", "0.1465", "0.5156", "0.1465" ], [ "0.08826", "0.154", "0.1095", "0.154", "0.1095", "0.1622", "0.08826", "0.1622" ], [ "0.10297", "0.1497", "0.433", "0.1497", "0.433", "0.1635", "0.10297", "0.1635" ], [ "0.523", "0.1642", "0.5605", "0.1642", "0.5605", "0.1755", "0.523", "0.1755" ], [ "0.581", "0.1642", "0.615", "0.1642", "0.615", "0.1755", "0.581", "0.1755" ], [ "0.6235", "0.1642", "0.6562", "0.1642", "0.6562", "0.1755", "0.6235", "0.1755" ], [ "0.6626", "0.1642", "0.697", "0.1642", "0.697", "0.1755", "0.6626", "0.1755" ], [ "0.7036", "0.1654", "0.7427", "0.1654", "0.7427", "0.1755", "0.7036", "0.1755" ], [ "0.7466", "0.1654", "0.7812", "0.1654", "0.7812", "0.1749", "0.7466", "0.1749" ], [ "0.79", "0.1654", "0.818", "0.1654", "0.818", "0.1736", "0.79", "0.1736" ], [ "0.83", "0.1666", "0.8594", "0.1666", "0.8594", "0.1736", "0.83", "0.1736" ], [ "0.865", "0.1642", "0.9062", "0.1642", "0.9062", "0.1749", "0.865", "0.1749" ], [ "0.523", "0.178", "0.5728", "0.178", "0.5728", "0.1895", "0.523", "0.1895" ], [ "0.08496", "0.1692", "0.4805", "0.1692", "0.4805", "0.1831", "0.08496", "0.1831" ], [ "0.5825", "0.178", "0.6094", "0.178", "0.6094", "0.1895", "0.5825", "0.1895" ], [ "0.6216", "0.178", "0.6543", "0.178", "0.6543", "0.1895", "0.6216", "0.1895" ], [ "0.664", "0.178", "0.697", "0.178", "0.697", "0.1895", "0.664", "0.1895" ], [ "0.7017", "0.178", "0.7344", "0.178", "0.7344", "0.1895", "0.7017", "0.1895" ], [ "0.7466", "0.1787", "0.778", "0.1787", "0.778", "0.1875", "0.7466", "0.1875" ], [ "0.79", "0.1787", "0.819", "0.1787", "0.819", "0.1875", "0.79", "0.1875" ], [ "0.83", "0.1787", "0.8594", "0.1787", "0.8594", "0.1875", "0.83", "0.1875" ], [ "0.8677", "0.1787", "0.898", "0.1787", "0.898", "0.1875", "0.8677", "0.1875" ], [ "0.08826", "0.1849", "0.4805", "0.1849", "0.4805", "0.1957", "0.08826", "0.1957" ], [ "0.661", "0.1849", "0.694", "0.1875", "0.693", "0.1995", "0.66", "0.1976" ], [ "0.7036", "0.1849", "0.732", "0.1875", "0.7305", "0.1995", "0.7017", "0.1976" ], [ "0.6235", "0.1863", "0.6562", "0.1863", "0.6562", "0.1989", "0.6235", "0.1989" ], [ "0.581", "0.1863", "0.615", "0.1863", "0.615", "0.1989", "0.581", "0.1989" ], [ "0.7466", "0.1863", "0.7817", "0.1863", "0.7817", "0.1989", "0.7466", "0.1989" ], [ "0.79", "0.1881", "0.819", "0.1881", "0.819", "0.1963", "0.79", "0.1963" ], [ "0.871", "0.1881", "0.8936", "0.1881", "0.8936", "0.1963", "0.871", "0.1963" ], [ "0.83", "0.1895", "0.859", "0.1875", "0.8594", "0.1957", "0.831", "0.1976" ], [ "0.524", "0.1875", "0.5605", "0.1875", "0.5605", "0.1989", "0.524", "0.1989" ], [ "0.523", "0.1963", "0.5645", "0.1963", "0.5645", "0.2108", "0.523", "0.2108" ], [ "0.5825", "0.1963", "0.614", "0.1989", "0.613", "0.2102", "0.581", "0.2084" ], [ "0.7466", "0.1957", "0.778", "0.1976", "0.777", "0.2102", "0.746", "0.2084" ], [ "0.6216", "0.1976", "0.6567", "0.1976", "0.6567", "0.209", "0.6216", "0.209" ], [ "0.08496", "0.1976", "0.4836", "0.1976", "0.4836", "0.2108", "0.08496", "0.2108" ], [ "0.6626", "0.1976", "0.6953", "0.1976", "0.6953", "0.2102", "0.6626", "0.2102" ], [ "0.7017", "0.1976", "0.7305", "0.1976", "0.7305", "0.2102", "0.7017", "0.2102" ], [ "0.7876", "0.1976", "0.8228", "0.1976", "0.8228", "0.209", "0.7876", "0.209" ], [ "0.8286", "0.1976", "0.8613", "0.1976", "0.8613", "0.209", "0.8286", "0.209" ], [ "0.789", "0.2052", "0.8203", "0.207", "0.819", "0.2184", "0.7876", "0.2166" ], [ "0.869", "0.1995", "0.8936", "0.1995", "0.8936", "0.2084", "0.869", "0.2084" ], [ "0.524", "0.207", "0.5605", "0.207", "0.5605", "0.2184", "0.524", "0.2184" ], [ "0.581", "0.207", "0.615", "0.207", "0.615", "0.2184", "0.581", "0.2184" ], [ "0.6216", "0.207", "0.6543", "0.207", "0.6543", "0.2184", "0.6216", "0.2184" ], [ "0.664", "0.207", "0.6914", "0.207", "0.6914", "0.2184", "0.664", "0.2184" ], [ "0.7017", "0.207", "0.7305", "0.207", "0.7305", "0.2184", "0.7017", "0.2184" ], [ "0.7466", "0.207", "0.7793", "0.207", "0.7793", "0.2184", "0.7466", "0.2184" ], [ "0.83", "0.209", "0.8594", "0.209", "0.8594", "0.2172", "0.83", "0.2172" ], [ "0.871", "0.209", "0.8936", "0.209", "0.8936", "0.2172", "0.871", "0.2172" ], [ "0.08496", "0.2247", "0.482", "0.2247", "0.482", "0.238", "0.08496", "0.238" ], [ "0.08417", "0.2108", "0.4805", "0.2102", "0.4805", "0.2235", "0.08417", "0.2247" ], [ "0.08417", "0.238", "0.482", "0.2374", "0.482", "0.252", "0.08417", "0.2524" ], [ "0.08417", "0.2524", "0.2615", "0.2524", "0.2615", "0.2664", "0.08417", "0.2664" ], [ "0.5186", "0.254", "0.9126", "0.254", "0.9126", "0.2676", "0.5186", "0.2676" ], [ "0.0866", "0.2734", "0.482", "0.2734", "0.482", "0.2874", "0.0866", "0.2874" ], [ "0.517", "0.2676", "0.9126", "0.2676", "0.9126", "0.2822", "0.517", "0.2822" ], [ "0.0866", "0.286", "0.4805", "0.2874", "0.4805", "0.3005", "0.0866", "0.2998" ], [ "0.517", "0.2822", "0.914", "0.2822", "0.914", "0.2954", "0.517", "0.2954" ], [ "0.5186", "0.2966", "0.6763", "0.2966", "0.6763", "0.307", "0.5186", "0.307" ], [ "0.0866", "0.303", "0.4805", "0.303", "0.4805", "0.3132", "0.0866", "0.3132" ], [ "0.08496", "0.315", "0.482", "0.315", "0.482", "0.3289", "0.08496", "0.3289" ], [ "0.5317", "0.31", "0.9126", "0.31", "0.9126", "0.324", "0.5317", "0.324" ], [ "0.5156", "0.3225", "0.9126", "0.324", "0.9126", "0.3372", "0.5156", "0.336" ], [ "0.0866", "0.33", "0.4805", "0.33", "0.4805", "0.3403", "0.0866", "0.3403" ], [ "0.08496", "0.3423", "0.4836", "0.3423", "0.4836", "0.356", "0.08496", "0.356" ], [ "0.5195", "0.339", "0.911", "0.339", "0.911", "0.3499", "0.5195", "0.3499" ], [ "0.08496", "0.3567", "0.4836", "0.3567", "0.4836", "0.3706", "0.08496", "0.3706" ], [ "0.517", "0.3516", "0.9126", "0.3516", "0.9126", "0.3655", "0.517", "0.3655" ], [ "0.08417", "0.3694", "0.482", "0.3706", "0.482", "0.3838", "0.08417", "0.3833" ], [ "0.5186", "0.3674", "0.9126", "0.3674", "0.9126", "0.3774", "0.5186", "0.3774" ], [ "0.08496", "0.385", "0.482", "0.385", "0.482", "0.3984", "0.08496", "0.3984" ], [ "0.5186", "0.3806", "0.9126", "0.3806", "0.9126", "0.3914", "0.5186", "0.3914" ], [ "0.08496", "0.3977", "0.482", "0.3984", "0.482", "0.4124", "0.08496", "0.411" ], [ "0.5156", "0.3933", "0.914", "0.3933", "0.914", "0.4072", "0.5156", "0.4072" ], [ "0.0866", "0.4124", "0.482", "0.4124", "0.482", "0.4255", "0.0866", "0.4255" ], [ "0.517", "0.4092", "0.584", "0.4092", "0.584", "0.4204", "0.517", "0.4204" ], [ "0.5317", "0.4204", "0.9126", "0.4204", "0.9126", "0.4343", "0.5317", "0.4343" ], [ "0.0866", "0.428", "0.4805", "0.428", "0.4805", "0.4382", "0.0866", "0.4382" ], [ "0.08417", "0.4395", "0.482", "0.44", "0.482", "0.4539", "0.08417", "0.4526" ], [ "0.5186", "0.4343", "0.914", "0.4343", "0.914", "0.4475", "0.5186", "0.4475" ], [ "0.5186", "0.449", "0.9126", "0.449", "0.9126", "0.4622", "0.5186", "0.4622" ], [ "0.0866", "0.455", "0.4795", "0.455", "0.4795", "0.4653", "0.0866", "0.4653" ], [ "0.08496", "0.4673", "0.482", "0.4673", "0.482", "0.481", "0.08496", "0.481" ], [ "0.517", "0.4622", "0.9126", "0.461", "0.9126", "0.4749", "0.517", "0.476" ], [ "0.08496", "0.481", "0.3757", "0.481", "0.3757", "0.4944", "0.08496", "0.4944" ], [ "0.5186", "0.4778", "0.9126", "0.4778", "0.9126", "0.488", "0.5186", "0.488" ], [ "0.5186", "0.4912", "0.9126", "0.4912", "0.9126", "0.502", "0.5186", "0.502" ], [ "0.08496", "0.502", "0.4795", "0.502", "0.4795", "0.515", "0.08496", "0.515" ], [ "0.517", "0.504", "0.914", "0.504", "0.914", "0.5176", "0.517", "0.5176" ], [ "0.0866", "0.5176", "0.482", "0.5176", "0.482", "0.528", "0.0866", "0.528" ], [ "0.517", "0.5176", "0.914", "0.5176", "0.914", "0.531", "0.517", "0.531" ], [ "0.0866", "0.53", "0.4795", "0.53", "0.4795", "0.5405", "0.0866", "0.5405" ], [ "0.517", "0.532", "0.763", "0.532", "0.763", "0.5454", "0.517", "0.5454" ], [ "0.08496", "0.5435", "0.482", "0.5435", "0.482", "0.5566", "0.08496", "0.5566" ], [ "0.0866", "0.5596", "0.4805", "0.5596", "0.4805", "0.5693", "0.0866", "0.5693" ], [ "0.5415", "0.56", "0.88", "0.56", "0.88", "0.5737", "0.5415", "0.5737" ], [ "0.08417", "0.5693", "0.482", "0.5713", "0.482", "0.5854", "0.08417", "0.5835" ], [ "0.5186", "0.579", "0.9126", "0.579", "0.9126", "0.589", "0.5186", "0.589" ], [ "0.08496", "0.5854", "0.4805", "0.5854", "0.4805", "0.5986", "0.08496", "0.5986" ], [ "0.5186", "0.5933", "0.9126", "0.5933", "0.9126", "0.604", "0.5186", "0.604" ], [ "0.08496", "0.5996", "0.482", "0.5996", "0.482", "0.613", "0.08496", "0.613" ], [ "0.5186", "0.606", "0.914", "0.606", "0.914", "0.619", "0.5186", "0.619" ], [ "0.0866", "0.6143", "0.4805", "0.6143", "0.4805", "0.625", "0.0866", "0.625" ], [ "0.08496", "0.627", "0.482", "0.627", "0.482", "0.64", "0.08496", "0.64" ], [ "0.5186", "0.622", "0.9126", "0.622", "0.9126", "0.632", "0.5186", "0.632" ], [ "0.5186", "0.6353", "0.9126", "0.6353", "0.9126", "0.646", "0.5186", "0.646" ], [ "0.0866", "0.6426", "0.4805", "0.6426", "0.4805", "0.653", "0.0866", "0.653" ], [ "0.517", "0.6465", "0.915", "0.6465", "0.915", "0.66", "0.517", "0.66" ], [ "0.0866", "0.655", "0.4795", "0.655", "0.4795", "0.6655", "0.0866", "0.6655" ], [ "0.08496", "0.6685", "0.29", "0.6685", "0.29", "0.6816", "0.08496", "0.6816" ], [ "0.5186", "0.6636", "0.9126", "0.6636", "0.9126", "0.674", "0.5186", "0.674" ], [ "0.5156", "0.6753", "0.755", "0.6753", "0.755", "0.686", "0.5156", "0.686" ], [ "0.1013", "0.6816", "0.4805", "0.6816", "0.4805", "0.696", "0.1013", "0.696" ], [ "0.5317", "0.6895", "0.914", "0.6895", "0.914", "0.7026", "0.5317", "0.7026" ], [ "0.0866", "0.696", "0.4805", "0.6963", "0.4805", "0.7085", "0.0866", "0.707" ], [ "0.0866", "0.711", "0.4805", "0.711", "0.4805", "0.7217", "0.0866", "0.7217" ], [ "0.5186", "0.705", "0.9126", "0.705", "0.9126", "0.7153", "0.5186", "0.7153" ], [ "0.08496", "0.7236", "0.482", "0.7236", "0.482", "0.738", "0.08496", "0.738" ], [ "0.5186", "0.7183", "0.9126", "0.7183", "0.9126", "0.729", "0.5186", "0.729" ], [ "0.517", "0.731", "0.914", "0.731", "0.914", "0.744", "0.517", "0.744" ], [ "0.08417", "0.7373", "0.482", "0.7363", "0.482", "0.75", "0.08417", "0.7505" ], [ "0.08417", "0.75", "0.482", "0.7505", "0.482", "0.7646", "0.08417", "0.763" ], [ "0.5186", "0.747", "0.911", "0.747", "0.911", "0.757", "0.5186", "0.757" ], [ "0.517", "0.7583", "0.914", "0.7583", "0.914", "0.7715", "0.517", "0.7715" ], [ "0.08496", "0.765", "0.4756", "0.765", "0.4756", "0.779", "0.08496", "0.779" ], [ "0.517", "0.771", "0.9126", "0.7715", "0.9126", "0.785", "0.517", "0.784" ], [ "0.08496", "0.785", "0.486", "0.785", "0.486", "0.799", "0.08496", "0.799" ], [ "0.5186", "0.786", "0.914", "0.786", "0.914", "0.8", "0.5186", "0.8" ], [ "0.08496", "0.8", "0.482", "0.8", "0.482", "0.813", "0.08496", "0.813" ], [ "0.5186", "0.802", "0.665", "0.802", "0.665", "0.8125", "0.5186", "0.8125" ], [ "0.08496", "0.813", "0.482", "0.813", "0.482", "0.827", "0.08496", "0.827" ], [ "0.5317", "0.813", "0.9126", "0.813", "0.9126", "0.827", "0.5317", "0.827" ], [ "0.0866", "0.829", "0.4795", "0.829", "0.4795", "0.839", "0.0866", "0.839" ], [ "0.5186", "0.829", "0.911", "0.829", "0.911", "0.839", "0.5186", "0.839" ], [ "0.08496", "0.8413", "0.482", "0.8413", "0.482", "0.855", "0.08496", "0.855" ], [ "0.517", "0.8413", "0.914", "0.8413", "0.914", "0.855", "0.517", "0.855" ], [ "0.0866", "0.857", "0.4805", "0.857", "0.4805", "0.867", "0.0866", "0.867" ], [ "0.517", "0.857", "0.9126", "0.857", "0.9126", "0.867", "0.517", "0.867" ], [ "0.08826", "0.8706", "0.4805", "0.8706", "0.4805", "0.881", "0.08826", "0.881" ], [ "0.5156", "0.8687", "0.914", "0.869", "0.914", "0.8833", "0.5156", "0.882" ], [ "0.08496", "0.8853", "0.4795", "0.8853", "0.4795", "0.896", "0.08496", "0.896" ], [ "0.5156", "0.884", "0.915", "0.884", "0.915", "0.898", "0.5156", "0.898" ] ]
[ "CPFair: Personalized Consumer and Producer Fairness Re-ranking for Recommender Systems", "SIGIR'22,July 11-15,2022, Madrid, Spain", "recommendation algorithm baseline amount the number of", "Tablel:Percentageof users and items located at different", "experiments carried out to 128 recommendation simulation", "numberofinteractionsthresholds(asnand rrepresents,re-", "spectively) in the training set of the datasets.", "2", "BACKGROUNDANDRELATEDWORK", "Dataset", "n≥10", "n≥20", "n ≥50", "n≥100", "r≥10", "r ≥ 20", "r≥50", "r ≥ 100", "MovieLens", "A promising approach to classifying the literature in recommen", "100%", "82.08%", "46.98%", "26.09%", "77.39%", "60.49%", "34.54%", "16.46%", "dation fairness isaccording tothebeneficiarystakeholder[1,17]", "8.11%", "1.57%", "56.60%", "99.85%", "99.81%", "63.83%", "4.61%", "17.33%", "Epinion", "Gowalla", "100%", "100%", "86.11%", "Based on our survey screening results on papers published in fair-", "25.40%", "4.87%", "84.44%", "20.10%", "37.36%", "3.95%", "LastFM", "96.33%", "72,73%", "0.00%", "0.00%", "73.99%", "15.00%", "4.48%", "field deal with multi-sided fairness, with even a less percentage", "ness during the past two years, only 9.1% of publications in the", "3.6% proposing an actual two-sided fairness-aware algorithm, as", "pursued in our current study", "for producer fairness aspects. Wu et al. [38] focus on two-sided", "C-fairness Methods. Dwork et al. [16] introduces a framework", "fairness from an individual-based perspective, where fairness is", "for individual fairness by including all users in the protected group", "defined as the same exposure to all producers and the same nDCG", "to all consumers involved.", "Abdollahpourietal.[3] and Naghiaei et al.[30] investigate a user-", "centered evaluation of popularity bias that accounts for different", "Do et al. [14] define the notion of fairness in increasing the utility", "of the worse-off individuals following the concept of distributive", "levelsofinterestamonguserstowardpopularitemsinmoviesand", "book domain. Abdollahpouri et al. [4] propose a regularization-", "justiceand proposed analgorithm based onmaximizing concave", "based framework to mitigate this bias from the user perspective.", "welfare functions using the Frank-Wolfe algorithm. Lin et al. [28]", "Li et al.[26] address the C-fairness problem in e-commerce recom-", "investigate sentimentbias,thebiaswhererecommendationmod-", "mendation from a group fairness perspective, i.e., a requirement", "elsprovidemorerelevantrecommendationsonuser/itemgroups", "that protected groups should be treated similarly to the advantaged", "with more positive feedback, and its effect on both consumers and", "group or total population [33]. Several recent studies have indicated", "producers.", "The inner layer of the circle in Figure 2 presents approaches for", "thatan exclusivelyconsumer-centric designapproach,inwhich", "customers'satisfaction is prioritizedover producers'interests,may", "recommendation fairness that could be classified according to 1)", "developing metrics to quantify fairness, 2) developing frameworks", "resultinareductionof thesystem's overall utility[32,37].Asare", "sult, we include the producer fairness perspectives in our proposed", "for producing fair models (according to the desired notion of fair-", "framework as the second objective in this work.", "ness),or3)modifyingdatatocombathistorical bias.Contraryto", "theworks surveyed, we developa fairness-awarealgorithm that", "P-fairness Methods. Several works have studied recommenda", "simultaneously addresses user groups and item group fairness ob-", "tionfairnessfromtheproducer'sperspective[39,4o].Gomezetal.", "jectives jointly via an efficient optimization algorithm capable of", "[19] assessrecommender system algorithms disparate exposure", "increasing the system's overall accuracy.", "based on producers' continent of production in movie and book", "recommendationdomainandproposeanequity-basedapproach", "MOTIVATING CP-FAIRNESS CONCERNS", "to regulate the exposure of items produced in a continent. Dong", "In this section, we intend to motivate the need of having two-", "et al. [15] set a constraint to limit the maximum times an item can", "sided fairness (i.e.,user and item)by undertaking both data and", "be recommended among all users proportional to its popularity to", "algorithm analysis. We analyze the distribution and properties of", "enhance theitem exposurefairness.In contrast, Geetal.[18]inves-", "tigate fairness in a dynamic setting where item popularity changes", "two well-knownreal-worldrecommendationdatasets,i.e.,Epinion", "and Gowalla, with their details summarized in Table 2.Due to", "overtimeintherecommendationprocessandmodelstherecom", "space consideration, we only show the analysis on these datasets;", "mendation problem as a constrained MarkovDecision Process with", "a dynamic policy toward fairness.", "however,weobservedsimilarpatternsontheotherdatasetsas can", "be seen inFigure 4baseline (N)models.", "A common observation in C-fairness and P-Fairness research is", "In Table 1, we show the distribution of users and items with dif-", "thetypeof attributes used to segmentthegroups on consumer and", "provider side.These attributes could be internal,e.g.,determined via", "ferent numbers of interactions in the datasets.As thevaluesshow", "user-item interactions [2, 26] or provided externally, e.g, protected", "most users are concentrated in areas with less interaction withthe", "items. We can also note that majority of items have received fewer", "attributes such as gender, age, or geographical location [6, 19].In", "this work,we segmented the groups by internal attributes and based", "interactions from the users (i.e.,long-tail items),and a small per", "centage of items (i.e.,popular items) are recommended frequently.", "on the number of interactions for both consumers and providers.", "This motivates the need to expand the long-tail coverage of recom", "Cp-fairness Methods.Considering both consumers'and providers", "mendation lists while encouraging users with fewer interactions to", "perspectives, Chakraborty et al. [9] present mechanisms for CP-", "engagewiththesystem.", "fairness in matching platforms such as Airbnb and Uber. Rahmani", "In the next step, we analyze the recommendation quality of the", "etal.[34]studied theinterplaysand tradeoffsbetweenconsumer", "fairness-unawarebaselinealgorithmsonthetwodatasetsforboth", "and producer fairness in Point-of-Interest recommendations. Patro", "user and item groups. In Figure 3, we show the min-max normalized", "etal.[32] mapfairrecommendationproblemtotheconstrained", "values of therecommendationalgorithmsquality ontheEpinion", "versionofthefairallocationproblemwithindivisiblegoodsand", "and Gowalla datasets.InFigures 3a and 3b weplotthe accuracy (i.e.", "proposeanalgorithmtorecommendtop-Kitemsbyaccounting", "nDCG@10) of all users, active users, and inactive users group. Later," ]
{ "arxiv_id": "2204.08085", "language": "en", "page_idx": 2 }
2204.08085-en-4
2204.08085-en-4.jpg
CPFair: Personalized Consumer and Producer Fairness Re-ranking for Recommender Systems (1) $$\mathbf{DPF}(A,I_1,I_2)=\mathbb{E}\left[\mathcal{MP}(i,A)|i\in I_1\right]-\mathbb{E}\left[\mathcal{MP}(i,A)|i\in I_2\right]$$ 4.1.2 Fairness constraint on the consumer side. We divide users into two groups of frequent users, $\mathcal{U}_1$,and less-frequent users, $\mathcal{U}_2$ based on their activity level. The notation $\mathcal{MC}$ is a metric that can evaluate the recommendation relevance in each group given the the recommendation list decision matrix, A, such as group $nDCG$, $F_1$ score, or Recall on train or validation dataset.$^2$ The ideal fair recommendation would recommend items based on user's known preference regardless of their activity level and the quality of recommendation on frequent and less-frequent users should not get amplified by the recommendation algorithm. We define the deviation from consumer fairness parity as: $$\mathrm{DCF}(A,{\mathcal U}_{1},{\mathcal U}_{2})=\mathbb{E}\left[{\mathcal M}C(u,A)|u\in{\mathcal U}_{1}\right]-\mathbb{E}\left[{\mathcal M}C(u,A)|u\in{\mathcal U}_{2}\right]$$ (2) Note that when the values of $DPF\to0$ or $DCF\to0$,it shows parity between the advantaged and disadvantaged user and item groups. However, this may suggest a reduction in the overall system accuracy. The sign of $DCF$ and $DPF$ shows the direction of disparity among the two groups, which we decided to keep in this work. ## 4.2 Proposed Algorithm In this section, we will use the top-N recommendation list and relevance scores provided by traditional unfair recommendation algorithm as baseline. We apply a re-ranking post-hoc algorithm to maximize the total sum of relevance scores while minimizing the deviation from fairness on the producer and consumer perspective, DCF and DPF respectively. We can formulate the fairness aware optimization problem given the binary decision matrix, A, as: (3) $$\begin{aligned}&\max_{A_{ui}}\quad\sum_{u\in\mathcal{U}}\sum_{i=1}^{N}S_{ui}.A_{ui}-\lambda_{1}.\mathrm{DCF}(A,\mathcal{U}_{1},\mathcal{U}_{2})-\lambda_{2}.\mathrm{DPF}(A,I_{1},I_{2})\\&\mathrm{s.t.}\quad\sum_{i=1}^{N}A_{ui}=K,A_{ui}\:\in\:\{0,1\}\end{aligned}$$ The solution to above optimization problem would recommend exactly $K$ items to each user while maximizing the summation of preference scores and penalizing deviation from fairness. 0 ≤ $\lambda_1,\lambda_2\leq1$ are hyper parameters that would be selected based on the application and would assign how much weight is given to each fairness deviation concern. A complete user-oriented onesided system could assign high weight to DCF and 0 to DPF, and vice versa for a provider-oriented system. Note that if the value of $\lambda_1,\lambda_2$ are both equal to 0 then the optimal solution will be the same as the baseline recommendation system list, that is, $L_K^F(u)=$ $L_K(u).$ The effect of different values for $\lambda_1$ and $\lambda_2$ are studied in the ablation study section. Parity between groups is defined as the ideal representation of the fairness in the model but is not enforced as a constraint in our optimization to avoid resulting in diminishing the total model accuracy in a significant way. $^2$In this paper we used nDCG as our fairness metric calculated on training dataset for re-ranking. SIGIR'22,July 11-15, 2022, Madrid, Spain The optimization problem above is a mixed-integer linear programming (MILP) and a known NP-hard problem. Although MILP cannot be generally solved optimally in polynomial time, there exists many fast heuristic algorithms and industrial optimization solvers that would provide a good feasible solution in practice$^3.$ The MIILP proposed optimization at Equation 3 can be reduced to a special case of Knapsack problem where the goal is to select items for each user that would maximize the total score in which each item has a weight equal to 1 and the total weight is constrained by fixed size K. Since each item has the same weight in this instance of Knapsack problem, we can solve it optimally by a greedy algorithm in polynomial time. Now we are ready to propose the Fair Re-ranking Greedy algorithm (Algorithm 2) that would give the optimal solution for the optimization problem in Equation 3. Alternatively, we can relax the binary constraint of variables to fractional variables with boundary constraints i.e., $0\leq A_{ui}\leq1$ and solve the relaxed optimization problem in polynomial time. The algorithm based on optimization is presented in Algorithm 1. <table> <tbody> <tr> <td>A</td> <td>otimization</td> </tr> <tr> <td> </td> <td>${\mathrm{Input}}:{\mathcal U},I,\lambda_{1},\lambda_{2},K$ $\textbf{Output: Item recommendation matrix }A^{* }$ $/*A^*$ is a $n\times N$ binary matrix with elements 1 when the item is recommended to the user and O otherwise. $k/$</td> </tr> <tr> <td> </td> <td>A TII pair 火</td> </tr> <tr> <td>2</td> <td>Formulate the Optimization Problem as an Integer Programming following equation 3</td> </tr> <tr> <td>3</td> <td>Solve Relaxed Linear Progran ${\mathrm{ning~with~added~boundary}}$</td> </tr> <tr> <td>4</td> <td>return $A^{*}$</td> </tr> </tbody> </table> We finally discuss the time complexity of the Fair Re-ranking Greedy algorithm. LEMMA 4.1. The time complexity of proposed re-ranking algorithm has a worst case bound ofO(n×N) PROOF. The first 3 lines of the algorithm will store the traditional relevance score matrix for Top-N items and store the protected groups in consumers and providers which can be done in linear time $O(n+m).$ The second part in line 4-10 is to re-score all elements in the original relevance matrix by accounting for fairness measures which needs $O(n\times N)$ operations in constant time. Lastly, we will sort the new relevance matrix for all users and select top-K items for recommendation. Using max-heap the worst case time complexity is $O(N+K\log(K)).$ Hence, considering N and $K$ are much smaller 口 than $n$,the total time complexity is $O(n\times N)$ $\overline{^3\text{e.g., Gurobi solv}}$er at https://www.gurobi.com
[ [ "0.0866", "0.077", "0.527", "0.077", "0.527", "0.0871", "0.0866", "0.0871" ], [ "0.7134", "0.0745", "0.914", "0.0745", "0.914", "0.0884", "0.7134", "0.0884" ], [ "0.5317", "0.1061", "0.914", "0.1067", "0.914", "0.1218", "0.5317", "0.1206" ], [ "0.09235", "0.1276", "0.482", "0.1288", "0.482", "0.1433", "0.09235", "0.1427" ], [ "0.517", "0.1218", "0.9126", "0.1218", "0.9126", "0.1351", "0.517", "0.1351" ], [ "0.5186", "0.137", "0.911", "0.137", "0.911", "0.1477", "0.5186", "0.1477" ], [ "0.0866", "0.1515", "0.482", "0.1515", "0.482", "0.1654", "0.0866", "0.1654" ], [ "0.517", "0.1497", "0.914", "0.1497", "0.914", "0.1635", "0.517", "0.1635" ], [ "0.0866", "0.1674", "0.4795", "0.1674", "0.4795", "0.178", "0.0866", "0.178" ], [ "0.517", "0.1622", "0.914", "0.1622", "0.914", "0.1755", "0.517", "0.1755" ], [ "0.0866", "0.1812", "0.4805", "0.1812", "0.4805", "0.1913", "0.0866", "0.1913" ], [ "0.5186", "0.1787", "0.9126", "0.1787", "0.9126", "0.1895", "0.5186", "0.1895" ], [ "0.08417", "0.1932", "0.4836", "0.1932", "0.4836", "0.207", "0.08417", "0.207" ], [ "0.517", "0.1901", "0.914", "0.1901", "0.914", "0.2039", "0.517", "0.2039" ], [ "0.08496", "0.207", "0.4836", "0.207", "0.4836", "0.2203", "0.08496", "0.2203" ], [ "0.517", "0.2052", "0.914", "0.2052", "0.914", "0.2184", "0.517", "0.2184" ], [ "0.08496", "0.2203", "0.482", "0.2203", "0.482", "0.2343", "0.08496", "0.2343" ], [ "0.5186", "0.2203", "0.9126", "0.2203", "0.9126", "0.2311", "0.5186", "0.2311" ], [ "0.0866", "0.2361", "0.482", "0.2361", "0.482", "0.2468", "0.0866", "0.2468" ], [ "0.517", "0.2329", "0.914", "0.2329", "0.914", "0.2468", "0.517", "0.2468" ], [ "0.08496", "0.2488", "0.4836", "0.2488", "0.4836", "0.262", "0.08496", "0.262" ], [ "0.517", "0.2468", "0.9126", "0.2468", "0.9126", "0.26", "0.517", "0.26" ], [ "0.0866", "0.2644", "0.4805", "0.2644", "0.4805", "0.2747", "0.0866", "0.2747" ], [ "0.517", "0.26", "0.914", "0.26", "0.914", "0.2734", "0.517", "0.2734" ], [ "0.08496", "0.2766", "0.4836", "0.2766", "0.4836", "0.2903", "0.08496", "0.2903" ], [ "0.517", "0.2734", "0.914", "0.2734", "0.914", "0.2874", "0.517", "0.2874" ], [ "0.08417", "0.2903", "0.3186", "0.2903", "0.3186", "0.3037", "0.08417", "0.3037" ], [ "0.5186", "0.289", "0.9126", "0.289", "0.9126", "0.2998", "0.5186", "0.2998" ], [ "0.517", "0.3018", "0.914", "0.3018", "0.914", "0.315", "0.517", "0.315" ], [ "0.517", "0.315", "0.914", "0.315", "0.914", "0.3289", "0.517", "0.3289" ], [ "0.09235", "0.3225", "0.4805", "0.3225", "0.4805", "0.336", "0.09235", "0.336" ], [ "0.5186", "0.3308", "0.9126", "0.3308", "0.9126", "0.3416", "0.5186", "0.3416" ], [ "0.517", "0.3435", "0.8857", "0.3435", "0.8857", "0.3567", "0.517", "0.3567" ], [ "0.10046", "0.3567", "0.482", "0.3567", "0.482", "0.3706", "0.10046", "0.3706" ], [ "0.0866", "0.3726", "0.4805", "0.3726", "0.4805", "0.3833", "0.0866", "0.3833" ], [ "0.08496", "0.385", "0.482", "0.385", "0.482", "0.3984", "0.08496", "0.3984" ], [ "0.5215", "0.3818", "0.822", "0.3818", "0.822", "0.3958", "0.5215", "0.3958" ], [ "0.08496", "0.3984", "0.4795", "0.3984", "0.4795", "0.4124", "0.08496", "0.4124" ], [ "0.5337", "0.3997", "0.675", "0.3997", "0.675", "0.4136", "0.5337", "0.4136" ], [ "0.08417", "0.4136", "0.4656", "0.411", "0.4656", "0.4248", "0.08417", "0.4268" ], [ "0.5337", "0.4136", "0.785", "0.4136", "0.785", "0.4268", "0.5337", "0.4268" ], [ "0.5317", "0.4268", "0.8735", "0.4268", "0.8735", "0.44", "0.5317", "0.44" ], [ "0.0866", "0.4395", "0.2932", "0.4395", "0.2932", "0.4539", "0.0866", "0.4539" ], [ "0.5522", "0.44", "0.892", "0.4395", "0.892", "0.4539", "0.5522", "0.455" ], [ "0.08496", "0.457", "0.482", "0.457", "0.482", "0.4702", "0.08496", "0.4702" ], [ "0.5557", "0.4558", "0.6357", "0.4558", "0.6357", "0.4673", "0.5557", "0.4673" ], [ "0.8774", "0.457", "0.8906", "0.457", "0.8906", "0.4666", "0.8774", "0.4666" ], [ "0.08496", "0.4717", "0.482", "0.4717", "0.482", "0.4849", "0.08496", "0.4849" ], [ "0.5215", "0.4697", "0.8823", "0.4697", "0.8823", "0.483", "0.5215", "0.483" ], [ "0.08496", "0.4849", "0.4805", "0.4849", "0.4805", "0.4988", "0.08496", "0.4988" ], [ "0.54", "0.4849", "0.761", "0.4849", "0.761", "0.4988", "0.54", "0.4988" ], [ "0.0866", "0.5005", "0.4795", "0.5005", "0.4795", "0.511", "0.0866", "0.511" ], [ "0.5337", "0.5", "0.892", "0.5", "0.892", "0.513", "0.5337", "0.513" ], [ "0.08496", "0.513", "0.4836", "0.513", "0.4836", "0.5264", "0.08496", "0.5264" ], [ "0.5557", "0.513", "0.8823", "0.513", "0.8823", "0.5264", "0.5557", "0.5264" ], [ "0.08496", "0.5264", "0.482", "0.5264", "0.482", "0.5405", "0.08496", "0.5405" ], [ "0.556", "0.528", "0.808", "0.528", "0.808", "0.5415", "0.556", "0.5415" ], [ "0.876", "0.529", "0.8906", "0.529", "0.8906", "0.539", "0.876", "0.539" ], [ "0.08496", "0.5415", "0.4575", "0.5415", "0.4575", "0.5547", "0.08496", "0.5547" ], [ "0.5195", "0.5425", "0.8384", "0.5425", "0.8384", "0.556", "0.5195", "0.556" ], [ "0.54", "0.558", "0.7563", "0.558", "0.7563", "0.5713", "0.54", "0.5713" ], [ "0.134", "0.5728", "0.46", "0.5728", "0.46", "0.601", "0.134", "0.601" ], [ "0.165", "0.5693", "0.1772", "0.5693", "0.1772", "0.58", "0.165", "0.58" ], [ "0.5195", "0.5728", "0.88", "0.5728", "0.88", "0.586", "0.5195", "0.586" ], [ "0.0989", "0.582", "0.1274", "0.582", "0.1274", "0.5933", "0.0989", "0.5933" ], [ "0.1422", "0.58", "0.1487", "0.5776", "0.1528", "0.584", "0.1462", "0.587" ], [ "0.0989", "0.5884", "0.1259", "0.5913", "0.12335", "0.6016", "0.09644", "0.5986" ], [ "0.54", "0.5884", "0.834", "0.5884", "0.834", "0.6016", "0.54", "0.6016" ], [ "0.1381", "0.5947", "0.1805", "0.5947", "0.1805", "0.605", "0.1381", "0.605" ], [ "0.4631", "0.5986", "0.4836", "0.5986", "0.4836", "0.6123", "0.4631", "0.6123" ], [ "0.1381", "0.606", "0.1544", "0.606", "0.1544", "0.622", "0.1381", "0.622" ], [ "0.517", "0.6016", "0.6006", "0.5996", "0.6006", "0.617", "0.517", "0.619" ], [ "0.1054", "0.6187", "0.1259", "0.6187", "0.1259", "0.631", "0.1054", "0.631" ], [ "0.1462", "0.617", "0.2754", "0.617", "0.2754", "0.631", "0.1462", "0.631" ], [ "0.1405", "0.632", "0.1528", "0.632", "0.1528", "0.638", "0.1405", "0.638" ], [ "0.1013", "0.651", "0.482", "0.651", "0.482", "0.664", "0.1013", "0.664" ], [ "0.5317", "0.646", "0.9126", "0.648", "0.9126", "0.662", "0.5317", "0.66" ], [ "0.08496", "0.6655", "0.482", "0.6655", "0.482", "0.6787", "0.08496", "0.6787" ], [ "0.517", "0.661", "0.63", "0.661", "0.63", "0.675", "0.517", "0.675" ], [ "0.08496", "0.6787", "0.482", "0.6787", "0.482", "0.6924", "0.08496", "0.6924" ], [ "0.5317", "0.6846", "0.914", "0.6846", "0.914", "0.6987", "0.5317", "0.6987" ], [ "0.08496", "0.6934", "0.4836", "0.6924", "0.4836", "0.7056", "0.08496", "0.707" ], [ "0.517", "0.6987", "0.732", "0.6987", "0.732", "0.712", "0.517", "0.712" ], [ "0.08496", "0.707", "0.482", "0.707", "0.482", "0.72", "0.08496", "0.72" ], [ "0.08496", "0.7217", "0.482", "0.7217", "0.482", "0.732", "0.08496", "0.732" ], [ "0.08496", "0.7344", "0.4836", "0.7344", "0.4836", "0.7476", "0.08496", "0.7476" ], [ "0.535", "0.729", "0.911", "0.729", "0.911", "0.7393", "0.535", "0.7393" ], [ "0.5186", "0.7437", "0.9126", "0.7437", "0.9126", "0.754", "0.5186", "0.754" ], [ "0.0866", "0.75", "0.4805", "0.75", "0.4805", "0.7603", "0.0866", "0.7603" ], [ "0.08496", "0.761", "0.482", "0.761", "0.482", "0.7744", "0.08496", "0.7744" ], [ "0.5156", "0.756", "0.914", "0.755", "0.914", "0.768", "0.5156", "0.7695" ], [ "0.517", "0.7695", "0.9126", "0.7695", "0.9126", "0.7827", "0.517", "0.7827" ], [ "0.08496", "0.776", "0.4836", "0.776", "0.4836", "0.789", "0.08496", "0.789" ], [ "0.0866", "0.7905", "0.4795", "0.7905", "0.4795", "0.8003", "0.0866", "0.8003" ], [ "0.5186", "0.785", "0.9126", "0.785", "0.9126", "0.7954", "0.5186", "0.7954" ], [ "0.5146", "0.797", "0.914", "0.7954", "0.914", "0.8096", "0.5146", "0.81" ], [ "0.08496", "0.8037", "0.482", "0.8037", "0.482", "0.8174", "0.08496", "0.8174" ], [ "0.517", "0.81", "0.914", "0.81", "0.914", "0.8237", "0.517", "0.8237" ], [ "0.08496", "0.8174", "0.482", "0.8174", "0.482", "0.8306", "0.08496", "0.8306" ], [ "0.0825", "0.8306", "0.482", "0.832", "0.482", "0.845", "0.0825", "0.8447" ], [ "0.5186", "0.8257", "0.911", "0.8257", "0.911", "0.836", "0.5186", "0.836" ], [ "0.517", "0.8384", "0.914", "0.8384", "0.914", "0.8516", "0.517", "0.8516" ], [ "0.08496", "0.845", "0.3594", "0.845", "0.3594", "0.8594", "0.08496", "0.8594" ], [ "0.517", "0.8516", "0.7915", "0.8516", "0.7915", "0.8657", "0.517", "0.8657" ], [ "0.899", "0.854", "0.9126", "0.854", "0.9126", "0.8643", "0.899", "0.8643" ], [ "0.0825", "0.8706", "0.482", "0.872", "0.482", "0.886", "0.0825", "0.8853" ], [ "0.08417", "0.8853", "0.1422", "0.8853", "0.1422", "0.8965", "0.08417", "0.8965" ], [ "0.5156", "0.882", "0.74", "0.8833", "0.74", "0.898", "0.5156", "0.8965" ] ]
[ "CPFair: Personalized Consumer and Producer Fairness Re-ranking for Recommender Systems", "SIGIR'22, July 11-15, 2022, Madrid, Spain", "The optimization problem above is a mixed-integer linear pro-", "DPF(A, I1, I2) = B [MP(i, A)|i E II] -B[MP(i, A)]i E I2] (1)", "gramming (MILP) and a known NP-hard problem. Although MILP", "cannot begenerally solved optimally in polynomial time,there", "4.1.2Fairness constraint on the consumer side.We divide users", "exists many fast heuristic algorithms and industrial optimization", "into two groups of frequent users, Ui, and less-frequent users, U2", "solvers that would provide a good feasible solution in practice3", "based ontheiractivitylevel.ThenotationMCisametricthat can", "TheMILPproposedoptimizationatEquation3canbereducedtoa", "evaluate the recommendation relevance in each group given the", "special case of Knapsack problem where the goal is to select items", "the recommendation list decision matrix, A, such as group nDCG,", "for each user that would maximize the total score in which each", "Fr score, or Recall on train or validation dataset.? The ideal fair", "item has a weight equal to 1 and the total weight is constrained", "recommendationwouldrecommenditemsbased onuser'sknown", "by fixed size K. Since each item has the same weight in this in-", "preference regardless of their activity level and the quality of rec-", "stance of Knapsack problem, we can solve it optimally by a greedy", "ommendationonfrequentandless-frequentusersshouldnotget", "algorithm in polynomial time. Now we are ready to propose the", "amplified by the recommendation algorithm. We define the devia-", "Fair Re-ranking Greedy algorithm (Algorithm 2) that would give", "tion from consumer fairness parity as:", "theoptimalsolutionfortheoptimizationprobleminEquation3", "Alternatively, we can relax the binary constraint of variables to", "fractional variables with boundary constraints ie., 0 ≤ Aui ≤ 1 and", "DCF(A, Ui, U2) =B[MC(u,A)|u E Ui]-B [MC(u,A)[u E U2] (2)", "solvetherelaxed optimizationprobleminpolynomial time.The", "algorithm based on optimization is presented in Algorithm 1.", "Note that when the values of DPF 0 or DCF → 0, it shows", "parity between theadvantaged and disadvantaged user and item", "groups. However, this may suggest a reduction in the overall system", "Algorithm 1:TheFair Re-ranking Optimization", "accuracy. The sign of DCF and DPF shows the direction of disparity", "Input :U,I, A1, A2, K", "among the two groups,which we decided tokeep in this work.", "Output : Item recommendation matrix A*", "/* A* is a nxN binary matrix with elements 1", "4.2ProposedAlgorithm", "when the item is recommended to the user and o", "In this section, we will use the top-N recommendation list and", "otherwise", "*/", "relevance scores provided by traditional unfair recommendation", "1 S Run baseline algorithm and store the relevance score", "algorithm as baseline. We apply a re-ranking post-hoc algorithm to", "matrix for top-N items for each user", "maximize the total sum of relevance scores while minimizing the", "/* S is a nxN matrix representing the predicted", "deviation from fairness on the producer and consumer perspective,", "relevance score generated by unfair baseline", "DCF and DPF respectively. We can formulate the fairness aware", "algorithms for each user-item pair", "*/", "optimization problem given the binary decision matrix, A, as:", "2 Formulate the Optimization Problem as an Integer", "Programming following equation 3", "Z2 Su-Au-A,DCF(A, U. u) -A,DPF(A T.L)", "N", "3 Solve Relaxed Linear Programming with added boundary", "max", "L", "Aui", "constraint 0 ≤ Aui ≤ 1, Vu E U, Vi E (1, 2, .. N)", "eui-i", "(3) ", "N", "4 return A*", "s.t.", "Aut = K,Aui E (0, 1)", "=", "The solution to above optimization problem would recommend", "We finally discuss the time complexity of the Fair Re-ranking", "exactly K items to each user while maximizing the summation", "Greedy algorithm.", "of preference scores and penalizing deviation from fairness. 0 ≤", "LEMMA 4.1. The time complexity of proposed re-ranking algorithm", "Ai,A2≤1arehyperparametersthat would be selected basedon", "has a worst case bound ofO(n × N)", "the application and would assign how much weight is given to", "each fairness deviation concern.A completeuser-oriented one-", "sided system could assign high weight to DCF and o to DPF, and", "PRooF.Thefirst3linesofthealgorithmwillstorethetraditional", "relevance scorematrixforTop-Nitemsand storetheprotected", "viceversafor aprovider-oriented system.Notethatif thevalue", "of X1, A2 are both equal to 0 then the optimal solution will be the", "groups in consumers and providers which can be done in linear", "time O(n+m).The second part in line 4-10 is to re-score all elements", "same as the baseline recommendation system list, that is, L(u) =", "Lk(u).Theeffectof differentvaluesforAiandA2arestudied inthe", "inthe original relevancematrixbyaccountingforfairnessmeasures", "which needs O(n × N) operations in constant time. Lastly, we will", "ablation study section. Parity between groups is defined as the ideal", "sort the new relevance matrix for all users and select top-K items for", "representation of the fairness in the model but is not enforced as", "a constraint in our optimization to avoid resulting in diminishing", "recommendation.Usingmax-heaptheworstcasetimecomplexity", "is O(N + K log(K). Hence, considering N and K are much smaller", "the total model accuracy in a significant way.", "than n, the total time complexity is O(n × N)", "口", "2in this paper we used nDCG as ourfairness metric calculated on training dataset for", "re-ranking.", "3eg.,Gurobi solver athttps://www.gurobi.com" ]
{ "arxiv_id": "2204.08085", "language": "en", "page_idx": 4 }
2202.07630-en-0
2202.07630-en-0.jpg
Delving Deeper into Cross-lingual Visual Question Answering Chen Cecilia Liu$^1,\textbf{Jonas Pfeiffer}^1,\text{Anna Korhonen}^2,\textbf{Ivan Vuli\'{c}}^2,\textbf{Iryna Gurevych}^1$ $^{1}$Ubiquitous Knowledge Processing Lab, Department of Computer Science and Hessian Center for AI (hessian.AI), Technical University of Darmstadt $^{2}$Language Technology Lab, Úniversity of Cambridge www. ukp. tu- darms tadt. de ### $\mathbf{Abstract}$ Visual question answering (VQA) is one of the crucial vision-and-language tasks. Yet, existing VQA research has mostly focused on the English language, due to a lack of suitable evaluation resources. Previous work on cross-lingual VQA has reported poor zero-shot transfer performance of current multilingual multimodal Transformers with large gaps to monolingual performance, without any deeper analysis. In this work, we delve deeper into the different aspects of cross-lingual VQA, aiming to understand the impact of 1) modeling methods and choices, including architecture, inductive bias, fine-tuning; 2) learning biases: including question types and modality biases in crosslingual setups. The key results of our analysis are: 1) We show that simple modifications to the standard training setup can substantially reduce the transfer gap to monolingual English performance, yielding +10 accuracy points over existing methods. 2) We analyze cross-lingual VQA across different question types of varying complexity for different multilingual multimodal Transformers, and identify question types that are the most difficult to improve on. 3) We provide an analysis of modality biases present in training data and models, revealing why zero-shot performance gaps remain for certain question types and languages. multilingual V&L task architectures through transfer learning, but such models are still few and far between (M3P, UC2; Ni et al., 2021; Zhou et al., 2021). Large decreases in task performance between monolingual and (zero-shot) cross-lingual transfer setups have been measured and reported, among other multilingual V&L tasks, in VQA (Pfeiffer et al., 2022). Yet, the reasons for such low results in this pivotal V&L task have not been investigated in depth. In this work, we aim to shed new light on the cross-lingual performance gap of cross-lingual VQA models from multiple angles. To the best of our knowledge, we are the first to provide a comprehensive analysis of multilingual VQA, with a focus on cross-lingual transfer. We first assess and discuss the impact of modeling methods and choices on the final cross-lingual VQA performance, aiming to mitigate the present performance gap. This includes experimenting with diverse prediction head architectures, incorporating inductive bias by extending input signals, as well as more sophisticated fine-tuning strategies. We analyze cross-lingual VQA across different question types of varying complexity for different multilingual multimodal Transformers, and in zero-shot and few-shot scenarios. Next, we focus on the learning biases, where we investigate whether current multilingual multimodal models suffer from the so-called unimodal bias: that is, we probe if the models truly reason over both images and questions to solve the VQA task, or if they take unimodal ‘shortcuts’instead, exploiting spurious correlations and artifacts of data creation. Our analysis allows us to identify the most difficult question types and reveals a shortcoming of the current evaluation scheme. We find that standard approaches from text-only cross-lingual transfer scenarios (Pires et al., 2019; Hu et al., 2020) do not leverage the full multilingual capabilities of the pretrained models; we mea- ## 1 Introduction The lack of multilingual resources has hindered the development and evaluation of Visual Question Answering (VQA) methods beyond the English language until recently. A rise in interest in creating multilingual Vision-and-Language (V&L) resources has inspired more research in this area (Srinivasan et al., 2021; Su et al., 2021; Liu et al., 2021a; Pfeiffer et al., 2022; Wang et al., 2022; Bugliarello et al., 2022, inter alia). Large Transformer-based models pretrained on images and text in multiple different languages have been proven as a viable vehicle for the development of
[ [ "0.1797", "0.0903", "0.817", "0.09143", "0.817", "0.10925", "0.1797", "0.1081" ], [ "0.147", "0.1271", "0.848", "0.1271", "0.848", "0.1414", "0.147", "0.1414" ], [ "0.3342", "0.1426", "0.665", "0.1437", "0.665", "0.158", "0.3342", "0.1567" ], [ "0.2048", "0.1603", "0.7983", "0.1603", "0.7983", "0.1746", "0.2048", "0.1746" ], [ "0.3594", "0.1758", "0.642", "0.177", "0.642", "0.1912", "0.3594", "0.1907" ], [ "0.2737", "0.1907", "0.712", "0.1924", "0.712", "0.2102", "0.2737", "0.2079" ], [ "0.382", "0.2102", "0.6206", "0.209", "0.6206", "0.2239", "0.382", "0.2245" ], [ "0.2612", "0.253", "0.34", "0.253", "0.34", "0.2673", "0.2612", "0.2673" ], [ "0.511", "0.2542", "0.882", "0.2542", "0.882", "0.2673", "0.511", "0.2673" ], [ "0.511", "0.2695", "0.882", "0.2695", "0.882", "0.2832", "0.511", "0.2832" ], [ "0.147", "0.279", "0.4575", "0.279", "0.4575", "0.2922", "0.147", "0.2922" ], [ "0.511", "0.2852", "0.881", "0.2852", "0.881", "0.2986", "0.511", "0.2986" ], [ "0.1453", "0.2935", "0.4575", "0.2935", "0.4575", "0.3071", "0.1453", "0.3071" ], [ "0.51", "0.3005", "0.882", "0.3018", "0.882", "0.3164", "0.51", "0.3154" ], [ "0.1453", "0.3071", "0.4592", "0.3071", "0.4592", "0.3206", "0.1453", "0.3206" ], [ "0.02351", "0.3176", "0.06046", "0.3176", "0.06046", "0.4312", "0.02351", "0.4312" ], [ "0.1453", "0.3218", "0.4592", "0.3206", "0.4592", "0.335", "0.1453", "0.3362" ], [ "0.51", "0.3184", "0.882", "0.3184", "0.882", "0.332", "0.51", "0.332" ], [ "0.147", "0.3374", "0.4575", "0.3374", "0.4575", "0.3474", "0.147", "0.3474" ], [ "0.51", "0.3342", "0.881", "0.3342", "0.881", "0.3474", "0.51", "0.3474" ], [ "0.1453", "0.3508", "0.4575", "0.3508", "0.4575", "0.364", "0.1453", "0.364" ], [ "0.511", "0.3508", "0.882", "0.3499", "0.882", "0.364", "0.511", "0.3652" ], [ "0.1453", "0.364", "0.4575", "0.364", "0.4575", "0.3777", "0.1453", "0.3777" ], [ "0.511", "0.3677", "0.879", "0.3677", "0.879", "0.3777", "0.511", "0.3777" ], [ "0.1453", "0.379", "0.4592", "0.379", "0.4592", "0.3926", "0.1453", "0.3926" ], [ "0.513", "0.383", "0.882", "0.383", "0.882", "0.3967", "0.513", "0.3967" ], [ "0.1453", "0.3926", "0.4592", "0.3926", "0.4592", "0.4062", "0.1453", "0.4062" ], [ "0.511", "0.3997", "0.669", "0.3997", "0.669", "0.4133", "0.511", "0.4133" ], [ "0.147", "0.408", "0.4575", "0.408", "0.4575", "0.4187", "0.147", "0.4187" ], [ "0.5283", "0.415", "0.882", "0.4163", "0.882", "0.4312", "0.5283", "0.43" ], [ "0.1453", "0.4216", "0.4592", "0.4216", "0.4592", "0.4353", "0.1453", "0.4353" ], [ "0.1453", "0.4353", "0.4575", "0.4353", "0.4575", "0.449", "0.1453", "0.449" ], [ "0.511", "0.4316", "0.881", "0.4329", "0.881", "0.4478", "0.511", "0.4465" ], [ "0.02351", "0.4382", "0.06213", "0.4382", "0.06213", "0.511", "0.02351", "0.511" ], [ "0.147", "0.4495", "0.4575", "0.4495", "0.4575", "0.4631", "0.147", "0.4631" ], [ "0.513", "0.449", "0.882", "0.449", "0.882", "0.4631", "0.513", "0.4631" ], [ "0.1453", "0.4644", "0.4592", "0.4644", "0.4592", "0.478", "0.1453", "0.478" ], [ "0.51", "0.4656", "0.881", "0.4656", "0.881", "0.4785", "0.51", "0.4785" ], [ "0.147", "0.478", "0.4592", "0.478", "0.4592", "0.4912", "0.147", "0.4912" ], [ "0.511", "0.481", "0.882", "0.4797", "0.882", "0.4946", "0.511", "0.4954" ], [ "0.1453", "0.4922", "0.4575", "0.4922", "0.4575", "0.506", "0.1453", "0.506" ], [ "0.511", "0.4976", "0.742", "0.4976", "0.742", "0.511", "0.511", "0.511" ], [ "0.01932", "0.513", "0.06046", "0.513", "0.0638", "0.7236", "0.02184", "0.7236" ], [ "0.147", "0.5083", "0.4575", "0.5083", "0.4575", "0.5186", "0.147", "0.5186" ], [ "0.5283", "0.514", "0.881", "0.514", "0.881", "0.528", "0.5283", "0.528" ], [ "0.147", "0.521", "0.4592", "0.521", "0.4592", "0.5337", "0.147", "0.5337" ], [ "0.1453", "0.535", "0.4575", "0.535", "0.4575", "0.549", "0.1453", "0.549" ], [ "0.511", "0.531", "0.882", "0.531", "0.882", "0.5444", "0.511", "0.5444" ], [ "0.1453", "0.549", "0.4575", "0.549", "0.4575", "0.5625", "0.1453", "0.5625" ], [ "0.511", "0.546", "0.8833", "0.5464", "0.8833", "0.561", "0.511", "0.56" ], [ "0.1453", "0.5635", "0.4575", "0.5635", "0.4575", "0.5767", "0.1453", "0.5767" ], [ "0.511", "0.5635", "0.882", "0.5635", "0.882", "0.5776", "0.511", "0.5776" ], [ "0.1453", "0.5767", "0.4592", "0.5767", "0.4592", "0.5903", "0.1453", "0.5903" ], [ "0.511", "0.58", "0.882", "0.58", "0.882", "0.5933", "0.511", "0.5933" ], [ "0.1453", "0.5913", "0.4592", "0.5913", "0.4592", "0.605", "0.1453", "0.605" ], [ "0.511", "0.5957", "0.8833", "0.5957", "0.8833", "0.61", "0.511", "0.61" ], [ "0.1453", "0.6055", "0.4592", "0.6055", "0.4592", "0.619", "0.1453", "0.619" ], [ "0.511", "0.6123", "0.8833", "0.6123", "0.8833", "0.626", "0.511", "0.626" ], [ "0.1486", "0.6216", "0.4575", "0.6216", "0.4575", "0.632", "0.1486", "0.632" ], [ "0.511", "0.6274", "0.8833", "0.627", "0.8833", "0.641", "0.511", "0.6426" ], [ "0.1453", "0.6343", "0.4575", "0.6343", "0.4575", "0.648", "0.1453", "0.648" ], [ "0.1453", "0.6484", "0.4575", "0.6484", "0.4575", "0.662", "0.1453", "0.662" ], [ "0.513", "0.6445", "0.882", "0.6445", "0.882", "0.6577", "0.513", "0.6577" ], [ "0.1453", "0.662", "0.4575", "0.662", "0.4575", "0.676", "0.1453", "0.676" ], [ "0.513", "0.66", "0.882", "0.66", "0.882", "0.6733", "0.513", "0.6733" ], [ "0.1453", "0.677", "0.398", "0.6777", "0.398", "0.6914", "0.1453", "0.6904" ], [ "0.51", "0.675", "0.7583", "0.676", "0.7583", "0.6904", "0.51", "0.6895" ], [ "0.529", "0.6934", "0.882", "0.6934", "0.882", "0.707", "0.529", "0.707" ], [ "0.1142", "0.7007", "0.2585", "0.7017", "0.2585", "0.7163", "0.1142", "0.7153" ], [ "0.511", "0.7104", "0.882", "0.7104", "0.882", "0.7236", "0.511", "0.7236" ], [ "0.11584", "0.727", "0.4895", "0.727", "0.4895", "0.7407", "0.11584", "0.7407" ], [ "0.511", "0.7256", "0.882", "0.7256", "0.882", "0.7393", "0.511", "0.7393" ], [ "0.11755", "0.7437", "0.4895", "0.7437", "0.4895", "0.7573", "0.11755", "0.7573" ], [ "0.511", "0.741", "0.882", "0.7407", "0.882", "0.755", "0.511", "0.756" ], [ "0.1142", "0.759", "0.4902", "0.7583", "0.4902", "0.7725", "0.1142", "0.774" ], [ "0.513", "0.7583", "0.882", "0.7583", "0.882", "0.7715", "0.513", "0.7715" ], [ "0.11755", "0.7754", "0.4902", "0.7754", "0.4902", "0.789", "0.11755", "0.789" ], [ "0.51", "0.775", "0.882", "0.775", "0.882", "0.788", "0.51", "0.788" ], [ "0.11584", "0.7905", "0.4878", "0.7915", "0.4878", "0.8057", "0.11584", "0.8047" ], [ "0.511", "0.7905", "0.882", "0.789", "0.882", "0.804", "0.511", "0.8047" ], [ "0.11755", "0.808", "0.4895", "0.808", "0.4895", "0.822", "0.11755", "0.822" ], [ "0.511", "0.807", "0.882", "0.807", "0.882", "0.821", "0.511", "0.821" ], [ "0.11755", "0.8237", "0.4895", "0.8237", "0.4895", "0.8374", "0.11755", "0.8374" ], [ "0.51", "0.8223", "0.882", "0.8223", "0.882", "0.8374", "0.51", "0.8374" ], [ "0.11755", "0.8403", "0.4902", "0.8403", "0.4902", "0.854", "0.11755", "0.854" ], [ "0.509", "0.839", "0.817", "0.839", "0.817", "0.8525", "0.509", "0.8525" ], [ "0.11584", "0.855", "0.4878", "0.8555", "0.4878", "0.8706", "0.11584", "0.869" ], [ "0.5283", "0.855", "0.882", "0.8555", "0.882", "0.8706", "0.5283", "0.869" ], [ "0.11584", "0.8726", "0.4878", "0.8726", "0.4878", "0.8857", "0.11584", "0.8857" ], [ "0.511", "0.8726", "0.882", "0.8726", "0.882", "0.8857", "0.511", "0.8857" ], [ "0.11584", "0.887", "0.4878", "0.888", "0.4878", "0.903", "0.11584", "0.902" ], [ "0.511", "0.887", "0.8833", "0.888", "0.8833", "0.903", "0.511", "0.902" ], [ "0.1142", "0.905", "0.4878", "0.905", "0.4878", "0.9185", "0.1142", "0.9185" ], [ "0.511", "0.905", "0.8833", "0.905", "0.8833", "0.9185", "0.511", "0.9185" ] ]
[ "Delving Deeper into Cross-lingual Visual Question Answering", "Chen Cecilia Liu', Jonas Pfeiffer', Anna Korhonen?, Ivan Vulic?, Iryna Gurevych", "1Ubiquitous Knowledge Processing Lab,", "Department of Computer Science and Hessian Center for AI (hessian.AI),", "Technical University of Darmstadt", "2Language Technology Lab, University of Cambridge", "www.ukp.tu-darmstadt.de", "Abstract", "multilingual V&L task architectures through trans-", "fer learning, but such models are still few and far", "Visual question answering (VQA) is one of the", "between (M3P, UC2: Ni et al., 2021; Zhou et al..", "crucial vision-and-language tasks. Yet, existing", "2021). Large decreases in task performance be-", "VQA research has mostly focused on the En-", "z n 8", "glish language, due to a lack of suitable evalua-", "tween monolingual and (zero-shot) cross-lingual", "tion resources.Previous work on cross-lingual", "transfer setups have been measured and reported.", "VQA has reported poor zero-shot transfer per", "among other multilingual V&L tasks, in VQA", "formance of current multilingual multimodal", "(Pfeifferetal..2022).Yet.the reasonsforsuch", "Transformers with large gaps to monolingual", "low results in this pivotal V&L task have not been", "performance, without any deeper analysis. In", "investigated in depth.", "this work, we delve deeper into the different", "In this work, we aim to shed new light on", "aspects of cross-lingual VQA, aiming to un-", "derstand the impact of 1) modeling methods", "the cross-lingual performance gap of cross-lingual", "['s]", "and choices, including architecture, inductive", "VQA models from multiple angles. To the best of", "bias, fine-tuning; 2) learning biases: including", "our knowledge, we are the first toprovide a com", "question types and modality biases in cross-", "prehensive analysis of multilingual VQA, with a", "lingual setups. The key results of our analysis", "focus on cross-lingual transfer.", "522:A1", "are: 1)We show that simple modifications to", "We first assess and discuss the impact of model", "the standard training setup can substantially re-", "duce the transfer gap to monolingual English", "ing methods and choices on the final cross-lingual", "performance, yielding +10 accuracy points over", "VQA performance, aiming to mitigate the present", "existing methods. 2) We analyze cross-lingual", "performance gap. This includes experimenting", "VQA across different question types of vary-", "with diverse prediction head architectures, incor", "ing complexity for different multilingual mul-", "porating inductive bias by extending input signals,", "timodal Transformers, and identify question", "as well as more sophisticated fine-tuning strate-", "typesthatarethemostdifficulttoimproveon", "gies. We analyze cross-lingual VQA across differ-", "3) We provide an analysis of modality biases", "present in training data and models, revealing", "ent question types of varying complexity for differ-", "why zero-shot performance gaps remain for", "ent multilingual multimodal Transformers, and in", "certain question types and languages.", "zero-shot and few-shot scenarios.", "Next, we focus on the learning biases, where", "1Introduction", "we investigate whether current multilingual multi-", "The lack of multilingual resources has hindered", "modal models suffer from the so-called unimodal", "the development and evaluation of Visual Ques-", "bias: that is, we probe if the models truly reason", "tion Answering (VQA)methods beyond the En-", "over both images and questions to solve the VQA", "glish language until recently. A rise in inter-", "task, or if they take unimodal 'shortcuts' instead,", "est in creating multilingual Vision-and-Language", "exploiting spurious correlations and artifacts of", "(V&L) resources has inspired more research in", "data creation. Our analysis allows us to identify the", "this area (Srinivasan et al., 2021; Su et al., 2021;", "most difficult question types and reveals a short-", "Liu et al., 2021a; Pfeiffer et al., 2022; Wang et al.", " coming of the current evaluation scheme.", "2022; Bugliarello et al., 2022, inter alia). Large", "We find that standard approaches from text-only", "Transformer-based models pretrained on images", "cross-lingual transfer scenarios (Pires et al., 2019;", "and text in multiple different languages have been", "Hu et al., 2020) do not leverage the full multilin-", " proven as a viable vehicle for the development of", "gual capabilities of the pretrained models; we mea-" ]
{ "arxiv_id": "2202.07630", "language": "en", "page_idx": 0 }
2202.07630-en-1
2202.07630-en-1.jpg
sure the considerably worse performance of `standard' fine-tuning compared to a simple modified fine-tuning regime. Interestingly, we report a discrepancy between monolingual and cross-lingual performance in the modified fine-tuning regime: while they do not have any substantial impact on the model performance in the source language (English), they considerably improve $cross-lingual$ VQA capabilities, achieving gains of more than 10 absolute accuracy points over the baselines. Code is available at github.com/UKPLab/ eacl2023-xlingvqa. ## 2 Preliminaries The VQA task is typically framed as a classification problem with a large number of classes. For instance, in the VQA task on the standard English GQA dataset (Hudson and Manning, 2019), given a pair of an image and a question, a model needs to predict a correct answer from 1,853 possible classes. GQA consists of diverse structural and semantic patterns, in which the questions are visually grounded in the image. In multilingual and cross-lingual VQA, the goal is to make similar predictions, but the questions can be posed in different target languages (Pfeiffer et al.,2022): e.g., the VQA task on the multilingual xGQA dataset (Pfeiffer et al., 2022) relies on the same set of 1,853 classes as English GQA. We base all our analyses and experiments on the xGQA dataset, which is, due to its size and language coverage, arguably the most comprehensive evaluation resource for cross-lingual VQA to date. It has also been included in the multimodal multilingual evaluation benchmark IGLUE (Bugliarello et al., 2022). xGQA is the multilingual extension of the English GQA dataset (Hudson and Manning, 2019) to 7 typologically diverse languages. In this work, we use and empirically compare two state-of-the-art pretrained multimodal multilingual Transformer architectures: M3P (Ni et al., 2021) and UC2 (Zhou et al., 2021).$^{1}$ The standard cross-lingual zero-shot transfer setup for VQA involves fine-tuning all the weights of the pretrained model on the downstream task data in the source language only. In the $few-shot$ setup, after the source-language fine-tuning, the model is additionally optimized on a handful of task-annotated examples in the target language (Pfeiffer et al.,2022). $^{1}$For technical details of the two models, we refer the reader to their respective papers. ### 3 $\textbf{Modeling Methods}$ Motivation. Recent work on VQA in cross-lingual settings (Pfeiffer et al., 2022; Bugliarello et al., 2022) benchmarked standard multimodal architectures in zero-shot and few-shot transfer scenarios on the xGQA dataset, without aiming to provide a deeper understanding of the particulars of the crosslingual VQA task. At the same time, they report large gaps of cross-lingual transfer performance when compared to monolingual English performance, suggesting that there is ample room for improvement. In this work, we aim to leverage novel insights into different aspects of the cross-lingual VQA task (e.g., analyses over different question types or classification architectures) to guide improved cross-lingual VQA methods. In particular, we assess the impact of three orthogonal directions: $\mathbf{1}$) classification architectures (§3.1); 2) (richer) input signals (§3.2); 3) fine-tuning strategies (§3.3). 3.1 Classification Architecture Variants The original work on xGQA (Pfeiffer et al., 2022) evaluated only a simple 'shallow' linear classification head, termed Linear here: the output[CLS] token of the pretrained Transformer-based model (which has cross-attended over all text and image features) is simply passed into a linear classification head. However, we hypothesize that this choice might have a substantial impact on transfer performance. Therefore, in the so-called Deep variant, instead of a linear classification head, we add a 2-layer transformation network $(f_\mathrm{trans})$ with the GELU activation function (Hendrycks and Gimpel, 2016), dropout and a layer-normalization layer, before feeding the representations into a linear layer for classification. The first layer of $f_\mathrm{trans}$ uses an orthogonal initializer (Saxe et al., 2014). Unless noted otherwise, all of our following experiments are based on this 'deeper' architecture; we illustrate the architecture in Figure 3 in Appendix C. # 3.2 Incorporating Inductive Bias into the Input Signal A large number of output classes (see §2) potentially amplifies the difficulty of zero-shot and few-shot cross-lingual transfer due to the need of aligning contextual representations in multiple languages for multi-class classifications. Standard VQA datasets such as GQA and xGQA contain questions of five different structural types (Verify,
[ [ "0.11755", "0.0861", "0.4937", "0.0861", "0.4937", "0.0998", "0.11755", "0.0998" ], [ "0.51", "0.0849", "0.705", "0.0849", "0.705", "0.0998", "0.51", "0.0998" ], [ "0.11755", "0.10156", "0.486", "0.10156", "0.486", "0.1152", "0.11755", "0.1152" ], [ "0.11584", "0.11816", "0.4878", "0.11816", "0.4878", "0.1318", "0.11584", "0.1318" ], [ "0.511", "0.1152", "0.882", "0.1152", "0.882", "0.1289", "0.511", "0.1289" ], [ "0.11584", "0.1342", "0.4878", "0.133", "0.4878", "0.1478", "0.11584", "0.1484" ], [ "0.51", "0.13", "0.8833", "0.1312", "0.8833", "0.1455", "0.51", "0.1443" ], [ "0.11755", "0.1509", "0.4902", "0.1509", "0.4902", "0.1644", "0.11755", "0.1644" ], [ "0.513", "0.1484", "0.882", "0.1484", "0.882", "0.1592", "0.513", "0.1592" ], [ "0.11584", "0.165", "0.4844", "0.165", "0.4844", "0.1787", "0.11584", "0.1787" ], [ "0.511", "0.1633", "0.882", "0.1633", "0.882", "0.177", "0.511", "0.177" ], [ "0.11755", "0.1818", "0.492", "0.1818", "0.492", "0.1965", "0.11755", "0.1965" ], [ "0.511", "0.1799", "0.882", "0.1799", "0.882", "0.1936", "0.511", "0.1936" ], [ "0.1184", "0.199", "0.4895", "0.199", "0.4895", "0.212", "0.1184", "0.212" ], [ "0.511", "0.1948", "0.882", "0.1948", "0.882", "0.2079", "0.511", "0.2079" ], [ "0.11755", "0.2131", "0.4895", "0.2144", "0.4895", "0.2286", "0.11755", "0.228" ], [ "0.513", "0.2114", "0.882", "0.2114", "0.882", "0.2257", "0.513", "0.2257" ], [ "0.1142", "0.2299", "0.461", "0.231", "0.461", "0.2452", "0.1142", "0.2446" ], [ "0.511", "0.228", "0.882", "0.228", "0.882", "0.2411", "0.511", "0.2411" ], [ "0.1351", "0.2477", "0.4895", "0.2477", "0.4895", "0.2625", "0.1351", "0.2625" ], [ "0.511", "0.2434", "0.8833", "0.2434", "0.8833", "0.257", "0.511", "0.257" ], [ "0.1142", "0.2625", "0.2805", "0.2632", "0.2805", "0.2778", "0.1142", "0.2766" ], [ "0.511", "0.26", "0.881", "0.26", "0.881", "0.2737", "0.511", "0.2737" ], [ "0.513", "0.2756", "0.882", "0.2756", "0.882", "0.2903", "0.513", "0.2903" ], [ "0.11584", "0.2922", "0.266", "0.2922", "0.266", "0.306", "0.11584", "0.306" ], [ "0.51", "0.2915", "0.881", "0.2915", "0.881", "0.3047", "0.51", "0.3047" ], [ "0.511", "0.3071", "0.882", "0.308", "0.882", "0.3225", "0.511", "0.3218" ], [ "0.11584", "0.3196", "0.4895", "0.3196", "0.4895", "0.3333", "0.11584", "0.3333" ], [ "0.511", "0.3247", "0.8833", "0.3247", "0.8833", "0.3384", "0.511", "0.3384" ], [ "0.1184", "0.3374", "0.486", "0.3374", "0.486", "0.3474", "0.1184", "0.3474" ], [ "0.511", "0.3403", "0.8833", "0.3403", "0.8833", "0.354", "0.511", "0.354" ], [ "0.11755", "0.3508", "0.4844", "0.3508", "0.4844", "0.364", "0.11755", "0.364" ], [ "0.513", "0.3582", "0.8833", "0.3582", "0.8833", "0.3682", "0.513", "0.3682" ], [ "0.1184", "0.3677", "0.4878", "0.3677", "0.4878", "0.3818", "0.1184", "0.3818" ], [ "0.51", "0.3718", "0.882", "0.3718", "0.882", "0.3855", "0.51", "0.3855" ], [ "0.11584", "0.3843", "0.4878", "0.383", "0.4878", "0.398", "0.11584", "0.3984" ], [ "0.511", "0.3896", "0.879", "0.3896", "0.879", "0.4026", "0.511", "0.4026" ], [ "0.1184", "0.402", "0.4844", "0.402", "0.4844", "0.412", "0.1184", "0.412" ], [ "0.11755", "0.4163", "0.4878", "0.4163", "0.4878", "0.43", "0.11755", "0.43" ], [ "0.513", "0.4204", "0.837", "0.4204", "0.837", "0.434", "0.513", "0.434" ], [ "0.11584", "0.4316", "0.4895", "0.4312", "0.4895", "0.4453", "0.11584", "0.4465" ], [ "0.11755", "0.449", "0.4895", "0.449", "0.4895", "0.462", "0.11755", "0.462" ], [ "0.509", "0.4448", "0.882", "0.4436", "0.882", "0.4578", "0.509", "0.459" ], [ "0.11584", "0.4631", "0.492", "0.4644", "0.492", "0.4785", "0.11584", "0.478" ], [ "0.511", "0.4614", "0.882", "0.4602", "0.882", "0.4744", "0.511", "0.4756" ], [ "0.11755", "0.481", "0.4895", "0.481", "0.4895", "0.4946", "0.11755", "0.4946" ], [ "0.51", "0.478", "0.881", "0.478", "0.881", "0.4912", "0.51", "0.4912" ], [ "0.11755", "0.4963", "0.4895", "0.4963", "0.4895", "0.5103", "0.11755", "0.5103" ], [ "0.511", "0.4934", "0.881", "0.4934", "0.881", "0.5073", "0.511", "0.5073" ], [ "0.1184", "0.5127", "0.4895", "0.5127", "0.4895", "0.5254", "0.1184", "0.5254" ], [ "0.511", "0.5103", "0.881", "0.5103", "0.881", "0.524", "0.511", "0.524" ], [ "0.11584", "0.528", "0.4844", "0.528", "0.4844", "0.5415", "0.11584", "0.5415" ], [ "0.51", "0.5254", "0.882", "0.5254", "0.882", "0.539", "0.51", "0.539" ], [ "0.11755", "0.5444", "0.3005", "0.5444", "0.3005", "0.5586", "0.11755", "0.5586" ], [ "0.511", "0.542", "0.882", "0.542", "0.882", "0.5557", "0.511", "0.5557" ], [ "0.1368", "0.56", "0.4878", "0.56", "0.4878", "0.5737", "0.1368", "0.5737" ], [ "0.513", "0.558", "0.882", "0.558", "0.882", "0.572", "0.513", "0.572" ], [ "0.11584", "0.5767", "0.4895", "0.5767", "0.4895", "0.5903", "0.11584", "0.5903" ], [ "0.51", "0.5737", "0.8833", "0.5723", "0.8833", "0.5874", "0.51", "0.5884" ], [ "0.11755", "0.594", "0.4878", "0.594", "0.4878", "0.608", "0.11755", "0.608" ], [ "0.511", "0.5903", "0.882", "0.5903", "0.882", "0.604", "0.511", "0.604" ], [ "0.11755", "0.61", "0.4895", "0.61", "0.4895", "0.6235", "0.11755", "0.6235" ], [ "0.511", "0.607", "0.882", "0.607", "0.882", "0.6206", "0.511", "0.6206" ], [ "0.11755", "0.626", "0.4895", "0.626", "0.4895", "0.6396", "0.11755", "0.6396" ], [ "0.511", "0.6226", "0.8833", "0.6226", "0.8833", "0.6357", "0.511", "0.6357" ], [ "0.11755", "0.641", "0.4895", "0.641", "0.4895", "0.655", "0.11755", "0.655" ], [ "0.511", "0.638", "0.8833", "0.638", "0.8833", "0.652", "0.511", "0.652" ], [ "0.11584", "0.6567", "0.486", "0.6567", "0.486", "0.6704", "0.11584", "0.6704" ], [ "0.511", "0.654", "0.882", "0.654", "0.882", "0.6685", "0.511", "0.6685" ], [ "0.11584", "0.673", "0.4895", "0.6733", "0.4895", "0.6885", "0.11584", "0.687" ], [ "0.511", "0.6704", "0.882", "0.6704", "0.882", "0.685", "0.511", "0.685" ], [ "0.11584", "0.6885", "0.4358", "0.6895", "0.4358", "0.7036", "0.11584", "0.703" ], [ "0.513", "0.686", "0.882", "0.686", "0.882", "0.6997", "0.513", "0.6997" ], [ "0.1335", "0.707", "0.4895", "0.707", "0.4895", "0.72", "0.1335", "0.72" ], [ "0.509", "0.7017", "0.881", "0.703", "0.881", "0.7173", "0.509", "0.7163" ], [ "0.11584", "0.7227", "0.4902", "0.7227", "0.4902", "0.7363", "0.11584", "0.7363" ], [ "0.5146", "0.72", "0.881", "0.72", "0.881", "0.731", "0.5146", "0.731" ], [ "0.11584", "0.7383", "0.4895", "0.737", "0.4895", "0.752", "0.11584", "0.753" ], [ "0.513", "0.7354", "0.8296", "0.7354", "0.8296", "0.75", "0.513", "0.75" ], [ "0.11755", "0.755", "0.4878", "0.755", "0.4878", "0.7686", "0.11755", "0.7686" ], [ "0.11755", "0.7715", "0.4902", "0.7715", "0.4902", "0.785", "0.11755", "0.785" ], [ "0.51", "0.7666", "0.846", "0.7666", "0.846", "0.78", "0.51", "0.78" ], [ "0.1142", "0.786", "0.4878", "0.7876", "0.4878", "0.802", "0.1142", "0.8003" ], [ "0.555", "0.785", "0.6533", "0.785", "0.6533", "0.7964", "0.555", "0.7964" ], [ "0.1184", "0.8047", "0.486", "0.8047", "0.486", "0.8154", "0.1184", "0.8154" ], [ "0.509", "0.8057", "0.882", "0.807", "0.882", "0.822", "0.509", "0.821" ], [ "0.11755", "0.8193", "0.4878", "0.8193", "0.4878", "0.833", "0.11755", "0.833" ], [ "0.509", "0.8237", "0.882", "0.8223", "0.882", "0.8374", "0.509", "0.8384" ], [ "0.11755", "0.835", "0.4895", "0.835", "0.4895", "0.8486", "0.11755", "0.8486" ], [ "0.511", "0.8403", "0.882", "0.8403", "0.882", "0.854", "0.511", "0.854" ], [ "0.11755", "0.8516", "0.4878", "0.8516", "0.4878", "0.865", "0.11755", "0.865" ], [ "0.511", "0.857", "0.882", "0.857", "0.882", "0.8706", "0.511", "0.8706" ], [ "0.11584", "0.8677", "0.4878", "0.866", "0.4878", "0.8813", "0.11584", "0.882" ], [ "0.511", "0.8726", "0.882", "0.8726", "0.882", "0.8857", "0.511", "0.8857" ], [ "0.1394", "0.891", "0.4895", "0.8926", "0.4895", "0.9067", "0.1394", "0.9062" ], [ "0.513", "0.888", "0.882", "0.888", "0.882", "0.902", "0.513", "0.902" ], [ "0.1142", "0.904", "0.2747", "0.9062", "0.2747", "0.9194", "0.1142", "0.9175" ], [ "0.511", "0.905", "0.8833", "0.905", "0.8833", "0.9185", "0.511", "0.9185" ] ]
[ "sure the considerably worse performance of 'stan-", "3Modeling Methods", "dard' fine-tuning compared to a simple modified", "fine-tuning regime. Interestingly, we report a dis-", "Motivation. Recent work on VQA in cross-lingual", "crepancy between monolingual and cross-lingual", "settings (Pfeiffer et al., 2022; Bugliarello et al.,", "performance in the modified fine-tuning regime:", "2022)benchmarked standardmultimodalarchitec-", "while they do not have any substantial impact on", "tures in zero-shot and few-shot transfer scenarios", "the model performance in the source language (En-", "on the xGQA dataset, without aiming to provide a", "glish), they considerably improve cross-lingual", "deeper understanding of the particulars of the cross", "VQA capabilities, achieving gains of more than", "lingual VQA task. At the same time, they report", "10 absolute accuracy points over the baselines.", "large gaps of cross-lingual transfer performance", "Code is available at github.com/UKPLab/", "when compared to monolingual English perfor-", "eac12023-xlingvqa.", "mance, suggesting that there is ample room for im-", "provement. In this work, we aim to leverage novel", "2Preliminaries", "insights into different aspects of the cross-lingual", "VQA task (e.g., analyses over different question", "The VQA task is typically framed as a classifica-", "types or classification architectures) to guide im-", "tion problem with a large number of classes. For", "proved cross-lingual VQA methods. In particular,", "instance, in the VQA task on the standard English", "weassesstheimpact of three orthogonal directions:", "GQA dataset (Hudson and Manning, 2019), given", "1) classification architectures (s3.1); 2) (richer) in", "a pair of an image and a question, a model needs", "put signals ($3.2); 3) fine-tuning strategies ($3.3).", "topredict a correct answer from1.853possible", "classes. GQA consists of diverse structural and", "3.1 Classification Architecture Variants", "semantic patterns, in which the questions are vi-", "sually grounded in the image. In multilingual and", "The original work on xGQA (Pfeiffer et al., 2022)", "cross-lingual VQA, the goal is to make similar pre-", "evaluated only a simple ‘shallow' linear classifica-", "dictions, but the questions can be posed in different", "tion head, termed Linear here: the output [CLS]", "target languages (Pfeiffer et al., 2022): e.g., the", "token of the pretrained Transformer-based model", "VQA task on the multilingual xGQA dataset (Pfeif-", "(which has cross-attended over all text and image", "fer et al., 2022) relies on the same set of 1,853", "features) is simply passed into a linear classifi-", "classes as English GQA.", "cation head. However, we hypothesize that this", "We base all our analyses and experiments on the", "choice might have a substantial impact on transfer", "xGOA dataset, which is, due to its size and lan-", "performance. Therefore, in the so-called Deep vari-", "guage coverage, arguably the most comprehensive", "ant, instead of a linear classification head, we add", "evaluation resource for cross-lingual VQA to date.", "a 2-layer transformation network (ftrans) with the", "It has also been included in the multimodal multi-", "GELU activation function (Hendrycks and Gimpel,", "lingual evaluation benchmark IGLUE (Bugliarello", "2016), dropout and a layer-normalization layer, be-", "et al., 2022). xGQA is the multilingual extension", "fore feeding the representations into a linear layer", "of the English GQA dataset (Hudson and Manning,", "for classification. The first layer of furans uses an", "2019) to 7 typologically diverse languages.", "orthogonal initializer (Saxe et al., 2014). Unless", "In this work, we use and empirically compare", "noted otherwise, all of our following experiments", "two state-of-the-art pretrained multimodal multi-", "arebasedonthis‘deeperarchitecture:weillustrate", "lingual Transformer architectures: M3P (Ni et al.,", "the architecture in Figure 3 in Appendix C.", "2021) and UC2 (Zhou et al., 2021).1 The standard", "cross-lingual zero-shot transfer setup for VQA in-", "3.2 Incorporating Inductive Bias into the", "volves fine-tuning all the weights of the pretrained", "Input Signal", "modelonthedownstreamtaskdatainthesource", "A large number of output classes (see s2) po-", "language only. In the few-shot setup, after the", "tentially amplifies the difficulty of zero-shot and", "source-language fine-tuning, the model is addition-", "few-shot cross-lingual transfer due to the need of", "ally optimized on a handful of task-annotated ex-", "aligning contextual representations in multiple lan-", "amples in the target language (Pfeiffer et al., 2022).", "guages for multi-class classifications. Standard", "'For technical details of the two models, werefer thereader", "VQA datasets such as GQA and xGQA contain", "to their respective papers.", "questions of five different structural types (Verify," ]
{ "arxiv_id": "2202.07630", "language": "en", "page_idx": 1 }
2202.07630-en-2
2202.07630-en-2.jpg
<FigureHere> Figure 1: Self-Bootstrapping (§3.3). Top: Fine-tuning with frozen text embeddings (Stage 1). Bottom: Finetuning with text embeddings and classification head frozen. Other parameters are reset to their pretrained values or randomly initialized (Stage 2). Logical, Query, Choose, Compare).$^2$ Pfeiffer et al. (2022) have demonstrated a considerable performance variation over different question types, e.g., there is a large cross-lingual performance drop especially for Choose-type questions. To help alleviate this issue, we propose to feed the model with designated question-type tokens (Prager, 2006; Murdock et al., 2012) which appear in GQA and xGQA. The idea is to influence the label distribution for the VQA classification task by conditioning on a question-type token. More concretely, we prepend a question-type token QType in English to the text input. We use structural question types as the question-type tokens; the text input then takes the following format: $`[QType]:[Question]'.$ As the xGQA data contains questions with binary answers (i.e. Yes/No questions). We anticipate that for a large fixed number of output classes, these questions should benefit the most from using the question-type tokens. The models which rely on this question-type conditioning are denoted with the superscript$^{\bar{Q}}$,e.g., M3P$^{Q}$,see also later §3.4. Recent work (Schick and Schütze, 2021; Li and Liang, 2021; Liu et al., 2021b; Shin et al., 2020) suggests that there exist more sophisticated prefixes/prompts and prompt-tuning methods. As our focus is not on conducting a large-scale analysis over different prompt-based conditioning, we leave this topic for future work. See Appendix B for example questions for each of the five question types. ## 3.3 Fine-Tuning Strategy Misalignment of multilingual text embeddings (Søgaard et al., 2018; Dubossarsky et al., 2020) has been indicated by Pfeiffer et al.(2022) as one of the principal causes for reduced zero-shot performance in the cross-lingual VQA tasks. Therefore, we propose two fine-tuning strategies, tailored exactly towards mitigating such undesired shifts in the multilingual embedding space. Freezing Text Embeddings. In the frst variant, we freeze text embeddings during fine-tuning and only optimize the Transformer weights and the classification head. This should prevent misalignment of the text embedding space during fine-tuning, as only the alignments between image and text embeddings change, but not text-to-text alignments. This strategy, labeled +FT, is referred to as contrastive tuning by Zhai et al. (2022). Self-Bootstrapping. Zero-shot cross-lingual transfer via standard fine-tuning is known to be sensitive to parameter initialization (Bugliarello et al., 2022). Previous work has shown that fine-tuning a classification head first, then fine-tuning the model can effectively improve the generalization of the model (Kumar et al., 2022; Yang et al., 2022). Motivated by these insights from prior research, we first train the network to learn the classification head, then reset and fine-tune the remaining model parameters. This leads to a two-stage fine-tuning process, termed self-bootstrapping (labeled +SB), illustrated in Figure 1 and outlined here: Stage One: We fine-tune all parameters (with text embeddings frozen) on the task data. Stage Two: We 1) freeze the classification head (excluding the bias parameters) and text embeddings, 2) reset the remaining parameters in the multimodal multilingual model to pretrained weights, and 3) re-initialize the $f_\mathrm{trans}$ network (see §3.1). We then fine-tune the transformer weights on the task data.$^{3}$ In order to make fair comparisons between +FT fine-tuning and self-bootstrapping, we define two extra +FT variants that match the fine-tuning budget of self-bootstrapping. In +FT$_short$ we fine-tune until the budget of self-bootstrapping's Stage 1 is matched. In +FT$_long$, we fine-tune until the total $^3$In our preliminary experiments, we found that self- bootstrapping-based fine-tuning still achieves better performance even if we perform Stage 1 with tunable text embeddings (i.e., standard fine-tuning). Freezing text embeddings in Stage l is an empirical decision, freezing them in Stage 2 is essential for self-bootstrapping to work.
[ [ "0.51", "0.08435", "0.721", "0.0861", "0.721", "0.10095", "0.51", "0.0986" ], [ "0.1318", "0.0974", "0.1721", "0.0974", "0.1721", "0.1081", "0.1318", "0.1081" ], [ "0.189", "0.0998", "0.1973", "0.0998", "0.1973", "0.1051", "0.189", "0.1051" ], [ "0.513", "0.1069", "0.882", "0.1069", "0.882", "0.12054", "0.513", "0.12054" ], [ "0.3477", "0.1194", "0.413", "0.1194", "0.413", "0.13", "0.3477", "0.13" ], [ "0.513", "0.12354", "0.882", "0.12354", "0.882", "0.1372", "0.513", "0.1372" ], [ "0.1721", "0.136", "0.2167", "0.136", "0.2167", "0.1478", "0.1721", "0.1478" ], [ "0.511", "0.1395", "0.8833", "0.1395", "0.8833", "0.1526", "0.511", "0.1526" ], [ "0.511", "0.1561", "0.8833", "0.1561", "0.8833", "0.1692", "0.511", "0.1692" ], [ "0.51", "0.1704", "0.8833", "0.1704", "0.8833", "0.1853", "0.51", "0.1853" ], [ "0.1351", "0.1776", "0.1721", "0.1776", "0.1721", "0.187", "0.1351", "0.187" ], [ "0.51", "0.187", "0.882", "0.187", "0.882", "0.2019", "0.51", "0.2019" ], [ "0.3594", "0.1996", "0.398", "0.1996", "0.398", "0.2073", "0.3594", "0.2073" ], [ "0.51", "0.2037", "0.882", "0.2031", "0.882", "0.2173", "0.51", "0.2185" ], [ "0.1721", "0.2156", "0.2141", "0.2156", "0.2141", "0.2257", "0.1721", "0.2257" ], [ "0.2837", "0.2197", "0.3225", "0.2197", "0.3225", "0.231", "0.2837", "0.231" ], [ "0.367", "0.2197", "0.4055", "0.2197", "0.4055", "0.231", "0.367", "0.231" ], [ "0.511", "0.2197", "0.771", "0.2203", "0.771", "0.2351", "0.511", "0.234" ], [ "0.511", "0.2411", "0.882", "0.2423", "0.882", "0.257", "0.511", "0.2559" ], [ "0.11755", "0.2625", "0.4878", "0.2625", "0.4878", "0.2756", "0.11755", "0.2756" ], [ "0.513", "0.26", "0.881", "0.26", "0.881", "0.2708", "0.513", "0.2708" ], [ "0.11755", "0.2766", "0.4895", "0.2766", "0.4895", "0.2903", "0.11755", "0.2903" ], [ "0.511", "0.275", "0.8833", "0.275", "0.8833", "0.288", "0.511", "0.288" ], [ "0.11755", "0.2922", "0.486", "0.2922", "0.486", "0.3027", "0.11755", "0.3027" ], [ "0.51", "0.2903", "0.882", "0.2903", "0.882", "0.304", "0.51", "0.304" ], [ "0.1142", "0.304", "0.486", "0.304", "0.486", "0.3176", "0.1142", "0.3176" ], [ "0.511", "0.3071", "0.882", "0.3071", "0.882", "0.3206", "0.511", "0.3206" ], [ "0.11584", "0.3196", "0.388", "0.3196", "0.388", "0.3333", "0.11584", "0.3333" ], [ "0.511", "0.3225", "0.8833", "0.3225", "0.8833", "0.3362", "0.511", "0.3362" ], [ "0.513", "0.339", "0.882", "0.339", "0.882", "0.3528", "0.513", "0.3528" ], [ "0.51", "0.354", "0.882", "0.3528", "0.882", "0.3677", "0.51", "0.3682" ], [ "0.1142", "0.3635", "0.4895", "0.3623", "0.4895", "0.3801", "0.1142", "0.3813" ], [ "0.509", "0.3706", "0.7197", "0.3694", "0.7197", "0.3843", "0.509", "0.3855" ], [ "0.1184", "0.3818", "0.4902", "0.3818", "0.4902", "0.3955", "0.1184", "0.3955" ], [ "0.513", "0.3926", "0.882", "0.3926", "0.882", "0.4067", "0.513", "0.4067" ], [ "0.11584", "0.3984", "0.4902", "0.3984", "0.4902", "0.412", "0.11584", "0.412" ], [ "0.11584", "0.4146", "0.4902", "0.4146", "0.4902", "0.4275", "0.11584", "0.4275" ], [ "0.513", "0.411", "0.879", "0.411", "0.879", "0.4216", "0.513", "0.4216" ], [ "0.1142", "0.43", "0.378", "0.43", "0.378", "0.4448", "0.1142", "0.4448" ], [ "0.51", "0.4258", "0.8833", "0.4258", "0.8833", "0.4395", "0.51", "0.4395" ], [ "0.513", "0.4412", "0.882", "0.4412", "0.882", "0.4548", "0.513", "0.4548" ], [ "0.1335", "0.4495", "0.4878", "0.4507", "0.4878", "0.4656", "0.1335", "0.4644" ], [ "0.5146", "0.459", "0.881", "0.459", "0.881", "0.4697", "0.5146", "0.4697" ], [ "0.11584", "0.4656", "0.4895", "0.466", "0.4895", "0.481", "0.11584", "0.4797" ], [ "0.513", "0.4739", "0.882", "0.4739", "0.882", "0.4868", "0.513", "0.4868" ], [ "0.11584", "0.4827", "0.4878", "0.4827", "0.4878", "0.4963", "0.11584", "0.4963" ], [ "0.51", "0.4893", "0.882", "0.4893", "0.882", "0.5044", "0.51", "0.5044" ], [ "0.1142", "0.4995", "0.4895", "0.4988", "0.4895", "0.5127", "0.1142", "0.513" ], [ "0.51", "0.506", "0.882", "0.506", "0.882", "0.5195", "0.51", "0.5195" ], [ "0.11755", "0.5156", "0.4895", "0.5156", "0.4895", "0.5293", "0.11755", "0.5293" ], [ "0.511", "0.5215", "0.882", "0.5215", "0.882", "0.535", "0.511", "0.535" ], [ "0.11584", "0.532", "0.4575", "0.532", "0.4575", "0.546", "0.11584", "0.546" ], [ "0.513", "0.539", "0.881", "0.539", "0.881", "0.55", "0.513", "0.55" ], [ "0.1318", "0.5503", "0.4878", "0.552", "0.4878", "0.5664", "0.1318", "0.5654" ], [ "0.51", "0.554", "0.882", "0.554", "0.882", "0.568", "0.51", "0.568" ], [ "0.11755", "0.5684", "0.4878", "0.5684", "0.4878", "0.582", "0.11755", "0.582" ], [ "0.51", "0.5693", "0.882", "0.5693", "0.882", "0.5845", "0.51", "0.5845" ], [ "0.11584", "0.5845", "0.4895", "0.5845", "0.4895", "0.597", "0.11584", "0.597" ], [ "0.51", "0.586", "0.81", "0.586", "0.81", "0.5996", "0.51", "0.5996" ], [ "0.11755", "0.601", "0.4902", "0.601", "0.4902", "0.6143", "0.11755", "0.6143" ], [ "0.509", "0.604", "0.881", "0.604", "0.881", "0.6177", "0.509", "0.6177" ], [ "0.11584", "0.6177", "0.3047", "0.6177", "0.3047", "0.6313", "0.11584", "0.6313" ], [ "0.511", "0.6216", "0.7886", "0.6216", "0.7886", "0.6353", "0.511", "0.6353" ], [ "0.1335", "0.6357", "0.4895", "0.6357", "0.4895", "0.6494", "0.1335", "0.6494" ], [ "0.509", "0.6396", "0.882", "0.6396", "0.882", "0.653", "0.509", "0.653" ], [ "0.11584", "0.654", "0.4895", "0.654", "0.4895", "0.6675", "0.11584", "0.6675" ], [ "0.51", "0.6567", "0.8833", "0.6567", "0.8833", "0.6704", "0.51", "0.6704" ], [ "0.11584", "0.6685", "0.486", "0.6685", "0.486", "0.6816", "0.11584", "0.6816" ], [ "0.511", "0.6733", "0.882", "0.6733", "0.882", "0.687", "0.511", "0.687" ], [ "0.11584", "0.685", "0.4878", "0.684", "0.4878", "0.6987", "0.11584", "0.6997" ], [ "0.51", "0.6895", "0.8833", "0.6895", "0.8833", "0.703", "0.51", "0.703" ], [ "0.11755", "0.7017", "0.4878", "0.7017", "0.4878", "0.7153", "0.11755", "0.7153" ], [ "0.509", "0.705", "0.882", "0.705", "0.882", "0.7197", "0.509", "0.7197" ], [ "0.11584", "0.7173", "0.486", "0.7173", "0.486", "0.7324", "0.11584", "0.7324" ], [ "0.51", "0.7217", "0.879", "0.7217", "0.879", "0.7354", "0.51", "0.7354" ], [ "0.1125", "0.7324", "0.4836", "0.731", "0.4836", "0.749", "0.1125", "0.75" ], [ "0.5283", "0.7383", "0.882", "0.7383", "0.882", "0.752", "0.5283", "0.752" ], [ "0.1335", "0.7544", "0.486", "0.7544", "0.486", "0.767", "0.1335", "0.767" ], [ "0.511", "0.756", "0.882", "0.756", "0.882", "0.7695", "0.511", "0.7695" ], [ "0.11755", "0.771", "0.4895", "0.771", "0.4895", "0.785", "0.11755", "0.785" ], [ "0.51", "0.7715", "0.8833", "0.7715", "0.8833", "0.785", "0.51", "0.785" ], [ "0.11755", "0.7876", "0.4902", "0.7876", "0.4902", "0.8003", "0.11755", "0.8003" ], [ "0.511", "0.788", "0.882", "0.788", "0.882", "0.802", "0.511", "0.802" ], [ "0.1184", "0.804", "0.4895", "0.804", "0.4895", "0.818", "0.1184", "0.818" ], [ "0.51", "0.804", "0.882", "0.804", "0.882", "0.818", "0.51", "0.818" ], [ "0.11755", "0.821", "0.4844", "0.821", "0.4844", "0.8306", "0.11755", "0.8306" ], [ "0.5073", "0.8184", "0.8833", "0.818", "0.8833", "0.835", "0.5073", "0.836" ], [ "0.11755", "0.835", "0.4878", "0.835", "0.4878", "0.8486", "0.11755", "0.8486" ], [ "0.11755", "0.851", "0.3074", "0.851", "0.3074", "0.8643", "0.11755", "0.8643" ], [ "0.532", "0.8457", "0.8833", "0.8457", "0.8833", "0.8594", "0.532", "0.8594" ], [ "0.511", "0.858", "0.8833", "0.858", "0.8833", "0.8716", "0.511", "0.8716" ], [ "0.511", "0.8716", "0.882", "0.8716", "0.882", "0.882", "0.511", "0.882" ], [ "0.51", "0.882", "0.882", "0.882", "0.882", "0.8955", "0.51", "0.8955" ], [ "0.1368", "0.891", "0.4895", "0.8926", "0.4895", "0.9067", "0.1368", "0.9062" ], [ "0.513", "0.8955", "0.882", "0.8955", "0.882", "0.9062", "0.513", "0.9062" ], [ "0.1142", "0.904", "0.236", "0.9062", "0.236", "0.9204", "0.1142", "0.9185" ], [ "0.51", "0.9062", "0.756", "0.9062", "0.756", "0.9194", "0.51", "0.9194" ] ]
[ "3.3 Fine-Tuning Strategy", "QType", "Te", "Misalignment of multilingual text embeddings (Sg", "Transformatio", "gaard et al., 2018; Dubossarsky et al., 2020) has", "Image", "been indicated by Pfeiffer et al. (2022) as one of", "the principal causes for reduced zero-shot perfor-", "mance in the cross-lingual VQA tasks. Therefore,", "QType", "we propose two fine-tuning strategies, tailored ex-", "ransform", "actly towards mitigating such undesired shifts in", "Image", "Reset", "Re-Init.", "the multilingual embedding space.", "Freezing Text Embeddings. In the first variant.", "Figure l: Self-Bootstrapping (s3.3). Top: Fine-tuning", "wefreezetextembeddings during fine-tuning and", "with frozen text embeddings (Stage 1). Bottom: Fine-", "only optimize the Transformer weights and the clas-", "tuning with text embeddings and classification head", "sification head. This should prevent misalignment", "frozen. Other parameters are reset to their pretrained", "of the text embedding space during fine-tuning, as", "values or randomly initialized (Stage 2).", "only the alignments between image and text embed-", "dings change, but not text-to-text alignments. This", "strategy, labeled +FT, is referred to as contrastive", "Logical, Query, Choose, Compare).2 Pfeiffer et al.", "tuning by Zhai et al. (2022).", "(2022) have demonstrated a considerable perfor-", "Self-Bootstrapping. Zero-shot cross-lingual trans-", "mance variation over different question types, e.g.,", "there is a large cross-lingual performance drop es-", "fer via standard fine-tuning isknown to be sensi", "pecially for Choose-type questions.", " tive to parameter initialization (Bugliarello et al.,", "2022). Previous work has shown that fine-tuning a", "To help alleviate this issue, we propose to", "classificationheadfirst,thenfine-tuningthemodel", "feed the model with designated question-type to-", "can effectively improve the generalization of the", "kens (Prager, 2006; Murdock et al., 2012) which", "model (Kumar et al., 2022; Yang et al., 2022). Mo", "appear in GQA and xGQA. The idea is to influence", "tivated by these insights from prior research, we", "the label distribution for the VQA classification", "first train the network to learn the classification", "task by conditioning on a question-type token.", "head,thenresetand fine-tunetheremainingmodel", "More concretely, we prepend a question-type", " parameters. This leads to a two-stage fine-tuning", "token QType in English to the text input. We use", "process, termed self-bootstrapping (labeled +SB),", "structural question types as the question-type to-", "illustrated in Figure I and outlined here:", "kens; the text input then takes the following format:", " Stage One: We fine-tune all parameters (with text", "“[QType]:[Question]'.", "embeddings frozen) on the task data.", "As the xGQA data contains questions with bi-", " Stage Two: We 1) freeze the classification head (ex-", "nary answers (i.e. Yes/No questions). We anticipate", "cluding the bias parameters) and text embeddings,", "that for a large fixed number of output classes, these", "2) reset the remaining parameters in the multimodal", "questions should benefit the most from using the", "multilingual model to pretrained weights, and 3)", "question-type tokens. The models which rely on", "re-initialize the ftrans network (see s3.1). We then", "this question-type conditioning are denoted with", "fine-tune the transformer weights on the task data.3", "the superscript Q, e.g., M3pQ, see also later $3.4.", "In order to make fair comparisons between +FT", "Recent work (Schick and Schutze, 2021: Li and", "fine-tuning and self-bootstrapping, we define two", "Liang, 2021; Liu et al., 2021b; Shin et al., 2020)", " extra +FT variants that match the fine-tuning bud-", "suggests that there exist more sophisticated pre-", "get of self-bootstrapping. In +FTshort we fine-tune", "fixes/prompts and prompt-tuning methods. As our", "until the budget of self-bootstrapping's Stage 1 is", "focus is not on conducting alarge-scale analysis", "matched. In +FTiong, we fine-tune until the total", "over different prompt-based conditioning, we leave", "this topic for future work.", "3In our preliminary experiments, we found that self-", "bootstrapping-based fine-tuning still achieves better perfor-", "manceeven if weperform Stage1withtunabletextembed-", "dings (i.e., standard fine-tuning). Freezing text embeddings in", "2See Appendix B for example questions for each of the", "Stage 1 is an empirical decision, freezing them in Stage 2 is", "five question types.", "essential for self-bootstrapping to work." ]
{ "arxiv_id": "2202.07630", "language": "en", "page_idx": 2 }
2202.07630-en-3
2202.07630-en-3.jpg
training budget of self-bootstrapping is matched. 3.4 Model Configurations and Notation Different choices across the orthogonal axes of classification architecture, input, and fine-tuning strategy give rise to a wide spectrum of model configurations. In particular, we can independently choose 1) between the Linear or Deep classification architecture; 2) whether to include the information on the question type at input $(^Q)$ or not; 3) whether to apply standard fine-tuning from prior work (Pfeiffer et al., 2022), or rely on +FT or +SB fine-tuning strategies. On top of this, we can also vary 4) the underlying model (M3P or UC2), and 5) the transfer scenario (zero-shot versus few-shot). For clarity of presentation, unless noted otherwise, we always assume zero-shot scenarios and Deep classification architecture. Moreover, different variants are also labeled in a systematic manner using abbreviations introduced in §3.1-§3.3: e.g., M3P+SB means that we apply self-bootstrapping on the underlying M3P model (with Deep architecture assumed). In another example, $UC2^Q+FT_{long}$ means that we apply the long variant of +FT fine-tuning (see §3.3) with UC2 as the underlying model, and we condition the model on the information about question types. ## 4 Analysis Methods The VQA task is inherently multimodal\_a model is required to reason over both images and questions in textual form to solve the task. However, as with some unimodal text-only tasks (Gururangan et al., 2018; Poliak et al., 2018) VQA models might also be prone to `taking shortcuts', that is, exploiting spurious correlations and artifacts of data creation. In other words, the VQA model could circumvent the multimodal aspect and only focus on a single modality to solve the task (Agrawal et al., 2016, 2018). Therefore, to better understand the multimodal reasoning abilities of VQA models in cross-lingual transfer, we propose several diagnostic approaches and methods that ablate the input features of the models, inspired by the diagnostic methods of Frank et al.(2021) and Shrestha et al. (2020) in monolingual setups. They should provide us with deeper insights into the inner workings of cross-lingual VQA models. ## 4.1 Unimodal Evaluation The first set of analyses involves a combination of standard multimodal (MM) training with unimodal inference/evaluation. During training, we pass both visual features and text tokens into the model. However, at inference, we provide the model with features of only one modality (Visual modality: V or Text: T). This naturally gives rise to the following two experimental setups: MM-V: When evaluating on xGQA's test set, we pass only a single $`?$ as textual input to the model, while the standard visual features are used. $\mathbf{MM-T:~At~inference,~we~zero~out~all~visual~fea-}$ tures (e.g., object features, spatial features), only providing the model with the total number of objects detected; the unchanged questions in the textual form are provided to the model. 4.2 Unimodal Training and Evaluation Next, we probe purely unimodal models trained on a single modality (V or T): during training, the model is provided only with visual features or text tokens; at inference, we again only provide the model with unimodal features from the same modality. This creates three experimental setups: $\mathbf{V-V:We~pass~only~?~as~a~(placeholder)~textual~in-}$ put to the model, while the standard visual features (from the full multimodal model) are used. T-T: All visual features are zeroed out; we only provide the number of objects detected; the unchanged questions in the textual form are provided. $\mathbf{T}^G\mathbf{-T}^G{:}$ We randomly sample object features from a Gaussian distribution with a mean and a standard deviation that match the actual object feature distribution for that image. Spatial features and the number of objects detected are kept as in the full MM model. The standard unchanged questions in the textual form are provided to the model. ### 5 Experimental Setup Pretrained Models and Data. As introduced in $\S2$, we 1) rely on two standard state-of-the-art multimodal multilingual transformers (M3P, UC2; Ni et al., 2021; Zhou et al., 2021) as the underlying pretrained models, and 2) conduct all evaluations on the standard monolingual English GQA dataset, and its multilingual extension: xGQA. The GQA dataset consists of two training sets: full and balanced. The full dataset contains 113K images and 22M questions, whereas the balanced dataset consists of 1.7M data samples. The dataset also contains a balanced test-dev set with 12,578 questions and 398 images for evaluation. In xGQA, the questions are manually translated from the
[ [ "0.11755", "0.0861", "0.4768", "0.0861", "0.4768", "0.0998", "0.11755", "0.0998" ], [ "0.51", "0.0861", "0.881", "0.0861", "0.881", "0.0998", "0.51", "0.0998" ], [ "0.511", "0.10156", "0.882", "0.10156", "0.882", "0.1152", "0.511", "0.1152" ], [ "0.11755", "0.114", "0.44", "0.114", "0.44", "0.1277", "0.11755", "0.1277" ], [ "0.513", "0.11816", "0.882", "0.11816", "0.882", "0.1318", "0.513", "0.1318" ], [ "0.11755", "0.136", "0.4902", "0.136", "0.4902", "0.1497", "0.11755", "0.1497" ], [ "0.51", "0.1342", "0.882", "0.1342", "0.882", "0.1478", "0.51", "0.1478" ], [ "0.11755", "0.1526", "0.4902", "0.1526", "0.4902", "0.1663", "0.11755", "0.1663" ], [ "0.509", "0.1484", "0.881", "0.1484", "0.881", "0.1633", "0.509", "0.1633" ], [ "0.11584", "0.1692", "0.4902", "0.1687", "0.4902", "0.1829", "0.11584", "0.1841" ], [ "0.51", "0.1675", "0.6987", "0.1675", "0.6987", "0.1812", "0.51", "0.1812" ], [ "0.11755", "0.1859", "0.4844", "0.1859", "0.4844", "0.1965", "0.11755", "0.1965" ], [ "0.511", "0.1829", "0.882", "0.1853", "0.882", "0.1996", "0.511", "0.1978" ], [ "0.1184", "0.2031", "0.4878", "0.2031", "0.4878", "0.2131", "0.1184", "0.2131" ], [ "0.513", "0.2007", "0.882", "0.2007", "0.882", "0.2144", "0.513", "0.2144" ], [ "0.11755", "0.2173", "0.4878", "0.2173", "0.4878", "0.231", "0.11755", "0.231" ], [ "0.511", "0.2162", "0.8286", "0.2162", "0.8286", "0.2299", "0.511", "0.2299" ], [ "0.11584", "0.2328", "0.4895", "0.2322", "0.4895", "0.2465", "0.11584", "0.2477" ], [ "0.513", "0.234", "0.882", "0.234", "0.882", "0.2488", "0.513", "0.2488" ], [ "0.11584", "0.2494", "0.4895", "0.2477", "0.4895", "0.2625", "0.11584", "0.2642" ], [ "0.51", "0.2505", "0.881", "0.2505", "0.881", "0.2642", "0.51", "0.2642" ], [ "0.11584", "0.2642", "0.4878", "0.2654", "0.4878", "0.2798", "0.11584", "0.279" ], [ "0.511", "0.2673", "0.882", "0.2673", "0.882", "0.2808", "0.511", "0.2808" ], [ "0.11755", "0.282", "0.4878", "0.282", "0.4878", "0.2957", "0.11755", "0.2957" ], [ "0.511", "0.2852", "0.881", "0.2852", "0.881", "0.2957", "0.511", "0.2957" ], [ "0.11755", "0.2976", "0.4902", "0.2976", "0.4902", "0.3113", "0.11755", "0.3113" ], [ "0.51", "0.2998", "0.7793", "0.2998", "0.7793", "0.3135", "0.51", "0.3135" ], [ "0.11755", "0.3142", "0.486", "0.3142", "0.486", "0.328", "0.11755", "0.328" ], [ "0.11584", "0.3289", "0.486", "0.3289", "0.486", "0.3433", "0.11584", "0.3433" ], [ "0.511", "0.3237", "0.827", "0.3247", "0.827", "0.339", "0.511", "0.3384" ], [ "0.1142", "0.3457", "0.4878", "0.3457", "0.4878", "0.3594", "0.1142", "0.3594" ], [ "0.509", "0.3457", "0.8833", "0.3445", "0.8833", "0.3594", "0.509", "0.3599" ], [ "0.11584", "0.3623", "0.4902", "0.3623", "0.4902", "0.376", "0.11584", "0.376" ], [ "0.509", "0.3623", "0.8833", "0.3635", "0.8833", "0.3777", "0.509", "0.3772" ], [ "0.11755", "0.379", "0.4902", "0.379", "0.4902", "0.3926", "0.11755", "0.3926" ], [ "0.509", "0.3777", "0.881", "0.3777", "0.881", "0.3914", "0.509", "0.3914" ], [ "0.11755", "0.3943", "0.4895", "0.3943", "0.4895", "0.408", "0.11755", "0.408" ], [ "0.51", "0.3955", "0.882", "0.3955", "0.882", "0.4092", "0.51", "0.4092" ], [ "0.11755", "0.4104", "0.4878", "0.4104", "0.4878", "0.4246", "0.11755", "0.4246" ], [ "0.51", "0.411", "0.882", "0.411", "0.882", "0.4246", "0.51", "0.4246" ], [ "0.11584", "0.427", "0.4895", "0.427", "0.4895", "0.4407", "0.11584", "0.4407" ], [ "0.511", "0.4275", "0.875", "0.4275", "0.875", "0.4412", "0.511", "0.4412" ], [ "0.1142", "0.4395", "0.4895", "0.4412", "0.4895", "0.4578", "0.1142", "0.456" ], [ "0.511", "0.4448", "0.882", "0.4448", "0.882", "0.459", "0.511", "0.459" ], [ "0.11755", "0.4578", "0.4878", "0.4578", "0.4878", "0.4714", "0.11755", "0.4714" ], [ "0.513", "0.4614", "0.882", "0.4614", "0.882", "0.4744", "0.513", "0.4744" ], [ "0.11755", "0.4744", "0.4895", "0.4744", "0.4895", "0.488", "0.11755", "0.488" ], [ "0.511", "0.478", "0.827", "0.478", "0.827", "0.4912", "0.511", "0.4912" ], [ "0.1142", "0.4905", "0.4902", "0.4912", "0.4902", "0.506", "0.1142", "0.505" ], [ "0.51", "0.4934", "0.882", "0.4946", "0.882", "0.509", "0.51", "0.5083" ], [ "0.51", "0.5103", "0.882", "0.511", "0.882", "0.5254", "0.51", "0.525" ], [ "0.11584", "0.521", "0.3032", "0.521", "0.3032", "0.535", "0.11584", "0.535" ], [ "0.511", "0.528", "0.8237", "0.5254", "0.8237", "0.5405", "0.511", "0.542" ], [ "0.1142", "0.5464", "0.4878", "0.5464", "0.4878", "0.56", "0.1142", "0.56" ], [ "0.509", "0.5435", "0.882", "0.546", "0.882", "0.56", "0.509", "0.558" ], [ "0.11584", "0.564", "0.492", "0.564", "0.492", "0.5776", "0.11584", "0.5776" ], [ "0.513", "0.5635", "0.881", "0.5635", "0.881", "0.5737", "0.513", "0.5737" ], [ "0.1142", "0.579", "0.492", "0.579", "0.492", "0.593", "0.1142", "0.593" ], [ "0.51", "0.5767", "0.881", "0.5767", "0.881", "0.5903", "0.51", "0.5903" ], [ "0.11584", "0.5967", "0.4937", "0.5967", "0.4937", "0.61", "0.11584", "0.61" ], [ "0.51", "0.594", "0.882", "0.594", "0.882", "0.608", "0.51", "0.608" ], [ "0.11584", "0.6123", "0.4902", "0.611", "0.4902", "0.626", "0.11584", "0.627" ], [ "0.511", "0.61", "0.882", "0.61", "0.882", "0.6235", "0.511", "0.6235" ], [ "0.11755", "0.629", "0.4902", "0.629", "0.4902", "0.6426", "0.11755", "0.6426" ], [ "0.511", "0.626", "0.882", "0.626", "0.882", "0.6396", "0.511", "0.6396" ], [ "0.11755", "0.6445", "0.4878", "0.6445", "0.4878", "0.6577", "0.11755", "0.6577" ], [ "0.51", "0.6426", "0.8286", "0.6426", "0.8286", "0.6562", "0.51", "0.6562" ], [ "0.11755", "0.66", "0.4878", "0.66", "0.4878", "0.6733", "0.11755", "0.6733" ], [ "0.5156", "0.6714", "0.5366", "0.6714", "0.5366", "0.6797", "0.5156", "0.6797" ], [ "0.538", "0.6704", "0.7173", "0.6704", "0.7173", "0.684", "0.538", "0.684" ], [ "0.11755", "0.677", "0.4878", "0.677", "0.4878", "0.6904", "0.11755", "0.6904" ], [ "0.11755", "0.6924", "0.4902", "0.6924", "0.4902", "0.706", "0.11755", "0.706" ], [ "0.511", "0.6934", "0.879", "0.6934", "0.879", "0.708", "0.511", "0.708" ], [ "0.11584", "0.707", "0.486", "0.707", "0.486", "0.72", "0.11584", "0.72" ], [ "0.5146", "0.7134", "0.881", "0.7134", "0.881", "0.7236", "0.5146", "0.7236" ], [ "0.11584", "0.7246", "0.4878", "0.7236", "0.4878", "0.7383", "0.11584", "0.7393" ], [ "0.51", "0.727", "0.882", "0.727", "0.882", "0.7407", "0.51", "0.7407" ], [ "0.11755", "0.741", "0.4902", "0.741", "0.4902", "0.755", "0.11755", "0.755" ], [ "0.511", "0.742", "0.881", "0.7437", "0.881", "0.7583", "0.511", "0.7573" ], [ "0.11584", "0.7573", "0.4878", "0.756", "0.4878", "0.771", "0.11584", "0.7715" ], [ "0.511", "0.759", "0.882", "0.7583", "0.882", "0.7725", "0.511", "0.774" ], [ "0.11755", "0.774", "0.4878", "0.774", "0.4878", "0.7876", "0.11755", "0.7876" ], [ "0.51", "0.7754", "0.8833", "0.7754", "0.8833", "0.789", "0.51", "0.789" ], [ "0.11755", "0.789", "0.4902", "0.789", "0.4902", "0.8027", "0.11755", "0.8027" ], [ "0.51", "0.7915", "0.796", "0.7915", "0.796", "0.8047", "0.51", "0.8047" ], [ "0.11584", "0.804", "0.4895", "0.8047", "0.4895", "0.8193", "0.11584", "0.8184" ], [ "0.529", "0.808", "0.8833", "0.808", "0.8833", "0.822", "0.529", "0.822" ], [ "0.11584", "0.822", "0.4895", "0.822", "0.4895", "0.835", "0.11584", "0.835" ], [ "0.511", "0.8237", "0.882", "0.8237", "0.882", "0.8384", "0.511", "0.8384" ], [ "0.11584", "0.8384", "0.3225", "0.8384", "0.3225", "0.8516", "0.11584", "0.8516" ], [ "0.511", "0.8403", "0.882", "0.8403", "0.882", "0.854", "0.511", "0.854" ], [ "0.51", "0.857", "0.882", "0.857", "0.882", "0.8706", "0.51", "0.8706" ], [ "0.11584", "0.8643", "0.3267", "0.866", "0.3267", "0.8813", "0.11584", "0.879" ], [ "0.511", "0.8726", "0.882", "0.8726", "0.882", "0.8857", "0.511", "0.8857" ], [ "0.11584", "0.888", "0.4902", "0.888", "0.4902", "0.902", "0.11584", "0.902" ], [ "0.51", "0.888", "0.8833", "0.887", "0.8833", "0.902", "0.51", "0.903" ], [ "0.11584", "0.905", "0.4895", "0.905", "0.4895", "0.9185", "0.11584", "0.9185" ], [ "0.5073", "0.905", "0.882", "0.905", "0.882", "0.9185", "0.5073", "0.9185" ] ]
[ "training budget of self-bootstrapping is matched.", "inferenceevaluation.During training, we pass both", "visual features and text tokens into the model. How-", "3.4 Model Configurations and Notation", "ever, at inference, we provide the model with fea-", "Different choices across the orthogonal axes of clas-", "tures of only one modality (Visual modality: V or", "sification architecture, input, and fine-tuning strat-", "Text: T). This naturally gives rise to the following", "egy give rise to a wide spectrum of model configu-", "two experimental setups:", "rations.Inparticular.wecan independentlychoose", "MM-V: When evaluating on xGQA's test set, we", "1)betweentheLinearorDeepclassificationarchi-", "pass only a single \"?' as textual input to the model,", "tecture; 2) whether to include the information on", "while the standard visual features are used.", "the question type at input () or not; 3) whether to", "MM-T: At inference, we zero out all visual fea-", "apply standard fine-tuning from prior work (Pfeif-", "tures (e.g., object features, spatial features), only", "fer et al., 2022), or rely on +FT or +SB fine-tuning", "providing the model with the total number of ob-", "strategies. On top of this, we can also vary 4) the", "jects detected: the unchanged questions in the tex-", "underlying model (M3P or UC2), and 5) the trans-", "tual form are provided to the model.", "fer scenario (zero-shot versus few-shot). For clarity", "of presentation, unless noted otherwise, we always", "4.2Unimodal Training and Evaluation", "assume zero-shot scenarios and Deep classification", "Next, we probe purely unimodal models trained", "architecture. Moreover, different variants are also", "on a single modality (V or T): during training,", "labeled in a systematic manner using abbreviations", "the model is provided only with visual features", "introduced in $3.1-s3.3: e.g., M3P+SB means that", " or text tokens; at inference, we again only provide", "we apply self-bootstrapping on the underlying M3P", "the model with unimodal features from the same", "model (with Deep architecture assumed). In an-", "modality. This creates three experimental setups:", "other example, UC2Q +FTiong means that we apply", "V-V: We pass only \"?' as a (placeholder) textual in-", "the long variant of +FT fine-tuning (see s3.3) with", "put to the model, while the standard visual features", "UC2 as the underlying model, and we condition", "(from the full multimodal model) are used.", "the model on the information about question types.", "T-T: All visual features are zeroed out; we only pro", "vide the number of objects detected; the unchanged", "4Analysis Methods", "questions in the textual form are provided.", "The VQA task is inherently multimodala model", "TG-TG: We randomly sample object features from", "is required to reason over both images and ques-", "a Gaussian distribution with a mean and a standard", "tions in textual form to solve the task. However.", "deviation that match the actual object feature dis", "as with some unimodal text-only tasks (Gururan-", "tribution for that image. Spatial features and the", "gan et al., 2018; Poliak et al., 2018) VQA models", "number of objects detected are kept as in the full", "might also be prone to 'taking shortcuts', that is, ex-", "MM model. The standard unchanged questions in", "ploiting spurious correlations and artifacts of data", "the textual form are provided to the model.", "creation. In other words, the VQA model could cir-", "5", "Experimental Setup", "cumvent the multimodal aspect and only focus on", "a single modality to solve the task (Agrawal et al.,", "Pretrained Models and Data. As introduced in", "2016. 2018). Therefore, to better understand the", "$2,we1)rely on twostandard state-of-the-art mul-", "multimodal reasoning abilities of VQA models in", "timodal multilingual transformers (M3P, UC2; Ni", "cross-lingual transfer, we propose several diagnos-", "et al., 2021; Zhou et al., 2021) as the underlying", "tic approaches and methods that ablate the input", "pretrained models, and 2) conduct all evaluations", "features of the models, inspired by the diagnostic", "on the standard monolingual English GQA dataset,", "methods of Frank et al. (2021) and Shrestha et al.", " and its multilingual extension: xGQA.", "(2020) in monolingual setups. They should provide", "The GQA dataset consists of two training sets:", "us with deeper insights into the inner workings of", "full and balanced. The full dataset contains 113K", "cross-lingual VQA models.", "images and 22M questions, whereas the balanced", " dataset consists of 1.7M data samples. The dataset", "4.1 Unimodal Evaluation", "also contains a balanced test-dev set with 12,578", "The first set of analyses involves a combination of", "questions and 398 images for evaluation. In xGQA,", " standard multimodal (MM) training with unimodal", " the questions are manually translated from the" ]
{ "arxiv_id": "2202.07630", "language": "en", "page_idx": 3 }
2305.10510-en-0
2305.10510-en-0.jpg
$\textbf{ChatGPT Perpetuates Gender Bias in Machine Translation and}$ Ignores Non-Gendered Pronouns: Findings across Bengali and Five other Low-Resource Languages Sourojit Ghosh University of Washington Seattle, USA ghosh100@uw.edu Aylin Caliskan University of Washington Seattle, USA aylin@uw.edu $\mathbf{ABSTRACT}$ ACM Reference Format: Sourojit Ghosh and Aylin Caliskan. 2023. ChatGPT Perpetuates Gender Bias in Machine Translation and Ignores Non-Gendered Pronouns: Findings across Bengali and Five other Low-Resource Languages. In Proceed- $ingsofAAAI/ACM$ Conference on AI, Ethics, and Society (AIES 23). ACM, New York, NY, USA, 12 pages. https://doi.org/XXXXXX.XXXXXXX ## 1 INTRODUCTION In this multicultural age, language translation is one of the most performed tasks, and it is becoming increasingly AI-moderated and automated. As a novel AI system, ChatGPT claims to be proficient in such translation tasks and in this paper, we put that claim to the test. Specifically, we examine ChatGPT's accuracy in translating between English and languages that exclusively use gender-neutral pronouns. We center this study around Bengali, the $7^{th}$ most spoken language globally, but also generalize our findings across five other languages: Farsi, Malay, Tagalog, Thai, and Turkish. We find that ChatGPT perpetuates gender defaults and stereotypes assigned to certain occupations (e.g. man= doctor, woman=nurse) or actions (e.g. woman=cook, man=go to work), as it converts gender-neutral pronouns in languages to he' or‘she’. We also observe ChatGPT completely failing to translate the English gender-neutral pronoun `they'into equivalent genderneutral pronouns in other languages, as it produces translations that are incoherent and incorrect. While it does respect and provide appropriately gender-marked versions of Bengali words when prompted with gender information in English, ChatGPT appears to confer a higher respect to men than to women in the same occupation. We conclude that ChatGPT exhibits the same gender biases which have been demonstrated for tools like Google Translate or MS Translator, as we provide recommendations for a human centered approach for future designers of AIs that perform language translation to better accommodate such low-resource languages. The last months of 2022 saw the meteoric rise in popularity of what has become one of the hottest AI tools of 2023-ChatGPT$^1.$ Developed by OpenAI$^2$ on the GPT-3$^3$ language model, the conversational agent set a record for the fastest growth since launch, exceeding 100 million new users in its first two months with over 13 million users per day in its first full month of operation [39] as it has found usage in a wide range of both recreational and professional domains. With such expansive usage, ChatGPT is might be an upstart competitor and potential usurper of Google's throne as the go-to tool for general question-answering and information seeking, with the New York Times calling it “the first notable threat in decades" to Google's near-monopoly in this space [36]. ChatGPT is trained on large corpora of publicly available data and uses Reinforcement Learning from Human Feedback (RLHF), whereby designers produce conversations where human AI trainers play both the user and the AI assistant. Such an approach opens it up to the possibility of exhibiting biases and sterotypes that have downstream ethical implications (though OpenAI claims that ChatGPT takes extensive measures towards bias mitigation [61]), as researchers and journalists alike have warned [e.g.,7,22,37]. Such calls necessitate a thorough examination of ChatGPT. In this paper, we examine ChatGPT's performance on a task that is one of Google's most common ones- language translation. Specifically, we examine whether ChatGPT has learned from the heavy criticism that Google has received for its insistence on gendering words and occupations in English translations of words that are gender-neutral in their original language [e.g., 34, 54, 67, 73]. Seeing as how this is a critical and well-established flaw within Google Translate over the past half-decade, we believe that a competitor should seek to rectify this in its tool. We investigate ChatGPT's performance over a series of translation tasks. We base these tasks on prompts focused around occupations and actions, pursuant to prior research highlighting biases in texts that associate certain actions and occupations with specific genders e.g. to be a doctor or to go to work is to be male, whereas $^{1}$https://openai.com/blog/chatgpt/ # $\csc\csc$coNCEPTS ## $\cdot$Human-centered computing; $\cdot$Computing methodologies $\to$Machine translation; Artificial intelligence; Natural language $processing;\bullet$Applied computing$\to$Language translation; $\mathbf{KEYWORDS}$ ChatGPT, LLM, machine translation, gender bias, Bengali, human- centered design Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from permissions@acm.org. $AIES'23,August08-10,2023,Montreal,\textcircled{O}uebec,Canada$ $\odot$ 2023 Association for Computing Machinery. ACM ISBN 978- 1- 4503- XXXX- X/ 18/ 06. . . $\$$15. 00 https://doi.org/XXXXXXX.XXXXXX $^2$https://openai.com/about/ $^{3}$https://openai.com/blog/gpt-3-apps
[ [ "0.1013", "0.1016", "0.898", "0.1029", "0.898", "0.1237", "0.1013", "0.1225" ], [ "0.10297", "0.1288", "0.898", "0.1288", "0.898", "0.1497", "0.10297", "0.1497" ], [ "0.267", "0.1528", "0.7305", "0.1547", "0.7305", "0.1755", "0.267", "0.1736" ], [ "0.2378", "0.1895", "0.361", "0.1895", "0.361", "0.2039", "0.2378", "0.2039" ], [ "0.6406", "0.1895", "0.761", "0.1895", "0.761", "0.2039", "0.6406", "0.2039" ], [ "0.2115", "0.2052", "0.3865", "0.2052", "0.3865", "0.2197", "0.2115", "0.2197" ], [ "0.614", "0.2052", "0.789", "0.2052", "0.789", "0.2197", "0.614", "0.2197" ], [ "0.2566", "0.2216", "0.3406", "0.2216", "0.3406", "0.2329", "0.2566", "0.2329" ], [ "0.6562", "0.2203", "0.744", "0.2203", "0.744", "0.2349", "0.6562", "0.2349" ], [ "0.2345", "0.2361", "0.3635", "0.2343", "0.3635", "0.2488", "0.2345", "0.2507" ], [ "0.652", "0.2349", "0.751", "0.2349", "0.751", "0.25", "0.652", "0.25" ], [ "0.08826", "0.2615", "0.183", "0.2615", "0.183", "0.2727", "0.08826", "0.2727" ], [ "0.517", "0.2615", "0.661", "0.262", "0.661", "0.2734", "0.517", "0.2727" ], [ "0.08496", "0.279", "0.482", "0.279", "0.482", "0.2922", "0.08496", "0.2922" ], [ "0.5156", "0.2747", "0.9126", "0.2747", "0.9126", "0.2886", "0.5156", "0.2886" ], [ "0.08496", "0.2922", "0.4836", "0.2922", "0.4836", "0.3062", "0.08496", "0.3062" ], [ "0.5186", "0.2874", "0.9126", "0.2874", "0.9126", "0.2974", "0.5186", "0.2974" ], [ "0.08417", "0.3062", "0.4836", "0.307", "0.4836", "0.3208", "0.08417", "0.3193" ], [ "0.5156", "0.3005", "0.914", "0.3005", "0.914", "0.3145", "0.5156", "0.3145" ], [ "0.517", "0.3125", "0.914", "0.31", "0.914", "0.3245", "0.517", "0.327" ], [ "0.08417", "0.3193", "0.4805", "0.3208", "0.4805", "0.334", "0.08417", "0.3333" ], [ "0.517", "0.3245", "0.886", "0.3245", "0.886", "0.3384", "0.517", "0.3384" ], [ "0.08496", "0.334", "0.4805", "0.334", "0.4805", "0.348", "0.08496", "0.348" ], [ "0.08496", "0.3484", "0.482", "0.3484", "0.482", "0.3623", "0.08496", "0.3623" ], [ "0.5186", "0.351", "0.689", "0.351", "0.689", "0.3643", "0.5186", "0.3643" ], [ "0.0866", "0.3623", "0.482", "0.3623", "0.482", "0.3757", "0.0866", "0.3757" ], [ "0.08417", "0.375", "0.482", "0.377", "0.482", "0.3914", "0.08417", "0.3894" ], [ "0.5186", "0.3694", "0.9126", "0.3694", "0.9126", "0.3833", "0.5186", "0.3833" ], [ "0.517", "0.3833", "0.914", "0.3833", "0.914", "0.3965", "0.517", "0.3965" ], [ "0.0866", "0.3926", "0.482", "0.3926", "0.482", "0.4028", "0.0866", "0.4028" ], [ "0.5186", "0.3977", "0.914", "0.3977", "0.914", "0.411", "0.5186", "0.411" ], [ "0.08417", "0.4048", "0.482", "0.4048", "0.482", "0.4185", "0.08417", "0.4185" ], [ "0.08496", "0.4185", "0.482", "0.4185", "0.482", "0.432", "0.08496", "0.432" ], [ "0.5195", "0.4136", "0.9126", "0.4136", "0.9126", "0.4236", "0.5195", "0.4236" ], [ "0.517", "0.4248", "0.914", "0.4248", "0.914", "0.4382", "0.517", "0.4382" ], [ "0.08496", "0.432", "0.482", "0.432", "0.482", "0.4458", "0.08496", "0.4458" ], [ "0.5186", "0.4382", "0.914", "0.4382", "0.914", "0.452", "0.5186", "0.452" ], [ "0.08496", "0.4458", "0.482", "0.4458", "0.482", "0.459", "0.08496", "0.459" ], [ "0.5186", "0.4539", "0.911", "0.4539", "0.911", "0.464", "0.5186", "0.464" ], [ "0.0866", "0.461", "0.4805", "0.461", "0.4805", "0.4717", "0.0866", "0.4717" ], [ "0.517", "0.4666", "0.914", "0.4666", "0.914", "0.4797", "0.517", "0.4797" ], [ "0.08496", "0.4734", "0.482", "0.4734", "0.482", "0.4873", "0.08496", "0.4873" ], [ "0.5186", "0.4817", "0.911", "0.4817", "0.911", "0.4924", "0.5186", "0.4924" ], [ "0.0866", "0.4893", "0.4805", "0.4893", "0.4805", "0.5", "0.0866", "0.5" ], [ "0.08496", "0.5005", "0.482", "0.5005", "0.482", "0.5146", "0.08496", "0.5146" ], [ "0.5195", "0.4956", "0.911", "0.4956", "0.911", "0.506", "0.5195", "0.506" ], [ "0.517", "0.5083", "0.914", "0.5083", "0.914", "0.5215", "0.517", "0.5215" ], [ "0.08496", "0.515", "0.482", "0.515", "0.482", "0.529", "0.08496", "0.529" ], [ "0.5156", "0.5215", "0.863", "0.521", "0.863", "0.535", "0.5156", "0.536" ], [ "0.08496", "0.529", "0.482", "0.529", "0.482", "0.5425", "0.08496", "0.5425" ], [ "0.5337", "0.535", "0.9126", "0.535", "0.9126", "0.549", "0.5337", "0.549" ], [ "0.08417", "0.5425", "0.482", "0.5435", "0.482", "0.5566", "0.08417", "0.556" ], [ "0.517", "0.55", "0.9126", "0.55", "0.9126", "0.563", "0.517", "0.563" ], [ "0.0866", "0.558", "0.4805", "0.558", "0.4805", "0.5684", "0.0866", "0.5684" ], [ "0.517", "0.563", "0.914", "0.563", "0.914", "0.577", "0.517", "0.577" ], [ "0.08496", "0.571", "0.482", "0.571", "0.482", "0.584", "0.08496", "0.584" ], [ "0.08496", "0.584", "0.4836", "0.584", "0.4836", "0.5977", "0.08496", "0.5977" ], [ "0.5195", "0.579", "0.911", "0.579", "0.911", "0.589", "0.5195", "0.589" ], [ "0.08417", "0.5967", "0.4805", "0.5977", "0.4805", "0.6123", "0.08417", "0.6113" ], [ "0.5195", "0.5923", "0.9126", "0.5923", "0.9126", "0.603", "0.5195", "0.603" ], [ "0.5186", "0.605", "0.914", "0.605", "0.914", "0.6187", "0.5186", "0.6187" ], [ "0.08417", "0.6113", "0.4739", "0.6123", "0.4739", "0.6255", "0.08417", "0.625" ], [ "0.5186", "0.6187", "0.9126", "0.6187", "0.9126", "0.632", "0.5186", "0.632" ], [ "0.5156", "0.632", "0.914", "0.631", "0.914", "0.646", "0.5156", "0.6465" ], [ "0.0866", "0.64", "0.2214", "0.64", "0.2214", "0.654", "0.0866", "0.654" ], [ "0.517", "0.6465", "0.841", "0.6465", "0.841", "0.66", "0.517", "0.66" ], [ "0.08496", "0.6577", "0.4805", "0.6577", "0.4805", "0.672", "0.08496", "0.672" ], [ "0.5317", "0.66", "0.914", "0.66", "0.914", "0.674", "0.5317", "0.674" ], [ "0.0866", "0.672", "0.482", "0.672", "0.482", "0.686", "0.0866", "0.686" ], [ "0.5186", "0.6753", "0.9126", "0.6753", "0.9126", "0.686", "0.5186", "0.686" ], [ "0.08496", "0.686", "0.46", "0.686", "0.46", "0.7007", "0.08496", "0.7007" ], [ "0.5186", "0.6895", "0.9126", "0.6895", "0.9126", "0.6997", "0.5186", "0.6997" ], [ "0.517", "0.702", "0.9126", "0.702", "0.9126", "0.7153", "0.517", "0.7153" ], [ "0.0866", "0.7153", "0.1887", "0.7153", "0.1887", "0.7266", "0.0866", "0.7266" ], [ "0.5186", "0.7173", "0.9126", "0.7173", "0.9126", "0.728", "0.5186", "0.728" ], [ "0.08417", "0.731", "0.482", "0.732", "0.482", "0.747", "0.08417", "0.7456" ], [ "0.517", "0.73", "0.914", "0.73", "0.914", "0.7437", "0.517", "0.7437" ], [ "0.0825", "0.744", "0.183", "0.747", "0.183", "0.761", "0.0825", "0.759" ], [ "0.517", "0.7437", "0.914", "0.7437", "0.914", "0.757", "0.517", "0.757" ], [ "0.517", "0.757", "0.914", "0.757", "0.914", "0.771", "0.517", "0.771" ], [ "0.5186", "0.773", "0.7812", "0.773", "0.7812", "0.7827", "0.5186", "0.7827" ], [ "0.0866", "0.782", "0.4805", "0.782", "0.4805", "0.7925", "0.0866", "0.7925" ], [ "0.5337", "0.786", "0.9126", "0.786", "0.9126", "0.797", "0.5337", "0.797" ], [ "0.1969", "0.7925", "0.3472", "0.7925", "0.3472", "0.803", "0.1969", "0.803" ], [ "0.3489", "0.7925", "0.4192", "0.7925", "0.4192", "0.803", "0.3489", "0.803" ], [ "0.4314", "0.7935", "0.4795", "0.7935", "0.4795", "0.8003", "0.4314", "0.8003" ], [ "0.10046", "0.7944", "0.2009", "0.7944", "0.2009", "0.802", "0.10046", "0.802" ], [ "0.0907", "0.7954", "0.10046", "0.7954", "0.10046", "0.799", "0.0907", "0.799" ], [ "0.4224", "0.7954", "0.433", "0.7954", "0.433", "0.799", "0.4224", "0.799" ], [ "0.0866", "0.803", "0.482", "0.803", "0.482", "0.813", "0.0866", "0.813" ], [ "0.5156", "0.799", "0.914", "0.799", "0.914", "0.8125", "0.5156", "0.8125" ], [ "0.10706", "0.813", "0.1447", "0.813", "0.1447", "0.821", "0.10706", "0.821" ], [ "0.1462", "0.8125", "0.4805", "0.811", "0.4805", "0.8228", "0.1462", "0.8237" ], [ "0.5186", "0.8145", "0.9126", "0.8145", "0.9126", "0.8247", "0.5186", "0.8247" ], [ "0.08417", "0.8213", "0.4836", "0.8228", "0.4836", "0.834", "0.08417", "0.8335" ], [ "0.0866", "0.8335", "0.4795", "0.8335", "0.4795", "0.8433", "0.0866", "0.8433" ], [ "0.5186", "0.8276", "0.9126", "0.8276", "0.9126", "0.8384", "0.5186", "0.8384" ], [ "0.0866", "0.8423", "0.3774", "0.8433", "0.3774", "0.854", "0.0866", "0.853" ], [ "0.517", "0.8403", "0.9126", "0.8403", "0.9126", "0.854", "0.517", "0.854" ], [ "0.08826", "0.855", "0.343", "0.855", "0.343", "0.8623", "0.08826", "0.8623" ], [ "0.0866", "0.8657", "0.298", "0.8657", "0.298", "0.8755", "0.0866", "0.8755" ], [ "0.5156", "0.86", "0.6787", "0.8613", "0.6787", "0.8755", "0.5156", "0.875" ], [ "0.0866", "0.875", "0.304", "0.875", "0.304", "0.8853", "0.0866", "0.8853" ], [ "0.517", "0.8726", "0.648", "0.8726", "0.648", "0.886", "0.517", "0.886" ], [ "0.08417", "0.8853", "0.2656", "0.8853", "0.2656", "0.896", "0.08417", "0.896" ], [ "0.517", "0.884", "0.6914", "0.884", "0.6914", "0.898", "0.517", "0.898" ] ]
[ "ChatGPT Perpetuates Gender Bias in Machine Translation and", "Ignores Non-Gendered Pronouns: Findings across Bengali and", "Five other Low-Resource Languages", "Sourojit Ghosh", "Aylin Caliskan", "University of Washington", "University of Washington", "Seattle, USA", " Seattle, USA", "ghosh100@uw.edu", "aylin@uw.edu", "ABSTRACT", "ACMReferenceFormat:", "In this multicultural age, language translation is one of the most", "Sourojit Ghosh and Aylin Caliskan. 2023. ChatGPT Perpetuates Gender", "performed tasks, and it is becoming increasingly Al-moderated", "Bias in Machine Translation and Ignores Non-Gendered Pronouns: Find.", "and automated. As a novel AI system, ChatGPT claims to be pro-", "ings across Bengali and Five other Low-Resource Languages. In Proceed", "ings of AAAI/ACM Conference on AI, Ethics, and Society (AIES '23). ACM,", "ficient in such translation tasks and in this paper, we put that", "New York, NY, USA, 12 pages. https://doi.org/XxxXxxx.xxxxxxx", "claim to the test. Specifically, we examine ChatGPT's accuracy", "in translating between English and languages that exclusively use", "1 INTRODUCTION", "gender-neutral pronouns. We center this study around Bengali,", "the 7th most spoken language globally, but also generalize our", "Thelast months of 2022 saw the meteoric rise in popularity of what", "has become one of the hottest AI tools of 2023 - ChatGPTl. Devel-", "findings acrossfive otherlanguages:Farsi,Malay,Tagalog,Thai,", "oped by OpenAI? on the GPT-33 language model, the conversa-", "and Turkish. We find that ChatGPT perpetuates gender defaults", "and stereotypes assigned to certain occupations (e.g. man = doc-", "tional agent set a record for the fastest growth since launch, ex", "ceeding 100 million new users in its first two months with over", "tor, woman = nurse) or actions (e.g. woman = cook, man = go to", "13 million users per day in its first full month of operation [39] as", "work), as it converts gender-neutral pronouns in languages to 'he'", "it has found usage in a wide range of both recreational and pro", "orshe.WealsoobserveChatGPTcompletelyfailingtotranslate", "fessional domains. With such expansive usage, ChatGPT is might", "the English gender-neutral pronoun 'they' into equivalent gender-", "beanupstartcompetitorand potentialusurperof Google'sthrone", "neutral pronouns in other languages, as it produces translations", "that are incoherent and incorrect. While it does respect and pro-", "asthego-totoolforgeneral question-answering and information", "seeking, with the New York Times calling it\"the first notable threat", "vide appropriately gender-marked versions of Bengali words when", "in decades\"to Google's near-monopoly in this space [36]", "prompted with gender information in English, ChatGPT appears to", "ChatGPT is trained on large corpora of publicly available data", "confer a higher respectto men than to women in the same occupa-", "and uses Reinforcement Learning from Human Feedback (RLHF)", "tion.Weconcludethat ChatGPT exhibitsthesamegenderbiases", "whereby designers produce conversations where human AI train-", "which have been demonstrated for tools like Google Translate or", "MS Translator, as we provide recommendations for a human cen-", "ersplayboththeuserandtheAIassistant.Suchanapproachopens", "tered approach for future designers of AIs that perform language", "ituptothepossibilityofexhibitingbiases and sterotypesthathave", "downstream ethical implications (though OpenAI claims that Chat-", "translation to better accommodate such low-resource languages.", "GPT takes extensive measures towards bias mitigation [61]), as re-", "searchers and journalists alike have warned [e.g.,7, 22, 37]. Such", "CCS CONCEPTS", "calls necessitate a thorough examination of ChatGPT.", ". Human-centered computing; :Computing methodologies", "In this paper, we examine ChatGPT's performance on a task", " Machine translation; Artificial intelligence; Natural language", "that is one of Google'smost common ones-languagetranslation", "processing; . Applied computing - Language translation;", "Specifically.weexaminewhetherChatGPThaslearnedfromthe", "heavy criticism that Google has received for its insistence on gen-", "KEYWORDS", "dering words and occupations inEnglish translations of words that", "ChatGPT, LLM, machine translation, gender bias, Bengali, human-", "are gender-neutral in their original language [e.g., 34, 54, 67, 73].", " centered design", "Seeing as how this is a critical and well-established flaw within", "Google Translate over the past half-decade, we believe that a com-", "petitor should seek to rectify this in its tool.", "Permission to make digital or hard copies of all or part of this work for personal or", "We investigateChatGPT's performanceovera series of transla-", "H without fee provided that copie", "s are not made", "Histributed", "ssroomuseisgranted", "a", "T", "for profit or commercial advantage and that copies bear this notice and the full cita-", "tion tasks. We base these tasks on prompts focused around occupa-", "on thef", "irst page. Copyrights for components of this work owned by others than", "tions andactions,pursuanttopriorresearchhighlightingbiases in", "ACM must be honored. Abstracting with credit is permitted.To copy otherwise, or re-", "publish, to post on servers or to redistribute to lists, requires prior specific permission", "texts that associate certain actions and occupations with specific", "and/orafee.Request permissions from permissions@acm.org", "genders e.g. to be a doctor or to go to work is to be male, whereas", "AIES'23,August08-10,2023,MontrealOuebec,Canada", "2023Associationfor Computing Machinery", "thttps:/openai.com/blog/chatgpt/", "ACMISBN978-1-4503-XXXX-X/18/06..$15.00", "2https://openai.com/about/", "https://doi.org/xxxxxxx.xxxxxxx", "3https://openai.com/blog/gpt-3-apps" ]
{ "arxiv_id": "2305.10510", "language": "en", "page_idx": 0 }
2305.10510-en-1
2305.10510-en-1.jpg
AIES'23, August 08-10, 2023, Montreal, Quebec, Canada to be a nurse or cook/clean is to be female [e.g., 14,24,32,51,65]. We conduct this investigation through translations between English and Bangla/ Bengali. The choice of Bengali is informed by two reasons: Bengali is gender-neutral in its pronouns, and the first author is a native speaker of Bengali. Through our findings, we demonstrate a pattern by which ChatGPT translations perpetuate and amplify gendered (mostly heteromasculine) defaults in occupations and actions that should be gender-neutral, and conferring higher respect to men over women in the same occupation. Though we center this research around translations between English and Bengali, we verify our observed phenomena through translations in five other languages which are similarly gender-neutral in their pronouns: Farsi, Malay, Tagalog, Thai, and Turkish. These languages are chosen because of their collective population of over 500 million people and because they all use gender-neutral pronouns, which is important because we study gender biases/errors that emerge in translations between English and these languages. Our contributions are threefold: (1) We provide a comprehensive demonstration of the persistence and amplification of gender roles and stereotypes assosciated with actions and occupations when ChatGPT translates into English sentences which do not provide any gender information in their source languages, as we demonstrate that ChatGPT's reinforcement learning strategy does not handle bias mitigation in machine translation which has significant implications on perpetuating bias and shaping human cognition about who should be a doctor and who should be a nurse, among other occupations. We exemplify the insertion of binary genders into instances where the non-binary pronoun would have been most appropriate, and the failure to translate the English gender-neutral pronoun‘they’into gender-neutral pronouns in other languages which threatens to erase non-binary and trans identities in downstream tasks. We present one of the first studies of language translation tasks performed by ChatGPT (the only other being [42]), and generally one of the frst studies about ChatGPT. Given its popularity and usage, it is important to extensively study ChatGPT and its potential to perpetuate negative biases and stereotypes,and our study is important in starting this conversation within academic circles. (2) We conduct our study in Bengali, the $7^{th}$ most spoken language in the world[12](over 337 million people [31]). Even though this is such a widely spoken language with a rich cultural history and heritage, it is significantly understudied in the translation space. It has only tangentially been studied in [65], and by non-speakers of Bengali. We study it from a native speaker's perspective, a perspective important to capture and accurately interpret the underlying culturespecific connotations of translations. (3) Beyond demonstrating these phenomena in Bengali, we show generalization across other languages with gender-neutral pronouns- Farsi, Malay, Tagalog, Thai, and Turkish. Such generalization across multiple languages is not commonly examined in the same single study (with the exception of[65]). In these cases, we only study translations into English, because English is the highest-resource language of all these based on the training data ChatGPT uses. We definitively demonstrate ChatGPT perpetuating gender stereotypes and inserting an inferred gender based on actions and occupations into sentences that are designed to be gender neutral in their languages of origin, Ghosh and Caliskan. languages which are classified as‘low-resource’in the AI space [23]. We demand stronger performance for such languages that adequately respects their prevalence in the world and accommodates the billions who collectively speak them. ## 2 ВАСКGROUND 2.1 Gender in Languages and Translations Global languages have several similarities and differences when evaluated across a variety of properties, and one such property is how they handle gender. Some languages contain grammatical gender, whereby nouns are classified with genders [25]. Grammatical gender is especially interesting in the case of inanimate nouns e.g. in English, a language without grammatical gender, the sun is genderless whereas in Hindi, a language that uses grammatical gender, it is considered masculine. Linguists [e.g.,25,46] largely believe that assignment of grammatical gender within languages evolved over time in arbitrary patterns unique to each language. Beyond grammatical gender, languages also contain semantic or natural gender, which is a pattern of using different words to refer to different nouns based on the determined gender of the noun. For instance, in English we refer to male cattle as 'bulls' and female cattle as ‘cows’. Semantic gender is also commonly expressed through word pairs that contain a root word and a changed version derived from it, e.g. the feminine word 'lioness' in English is derived from the masculine 'lion' by adding the suffix‘-ess'. This is known as markedness [40], where the root word is said to be 'unmarked'. Historically, most gendered pairs of nouns are such that the masculine noun is unmarked, and femininity is denoted by somehow marking the masculine [e.g.,6,40,78]. Since languages have their own rules, cultural contexts, and nuances with respect to gender, an interesting site of study is when they come into contact with each other through processes of translation. Language translation is complicated, and must be done with a good understanding of the rules of both source and destination languages [75]. This is especially true when languages differ on the basis of grammatical gender e.g. when translating the sentence‘The sun was shining but the river was cold’from grammatically gender-neutral English to grammatically gendered Hindi, it is important to know that `sun' should be masculine-gendered and 'river' should be feminine-gendered, which would in turn influence the nature of the Hindi phrases of the verbs 'was shining'(in this case, 'चमक रहा था') and 'was cold'(in this case, ‘ठंडी थी'). Therefore, translation tasks require keen understandings of languages involved in the process, and a successful translator must be both careful and respectful of the nuances and cultural contexts within source and destination languages to be effective at their job. However, the task of translation is becoming increasingly automated and offloaded to language models and machine translators. # 2.2 Language Models and Datasets in Translation Tasks Large-scale language models have become ubiquitous across a variety of domains, in tasks such as sentiment analysis [e.g., 3, 38, 50], natural language interpretation [e.g., 28, 43, 58], plagiarism detec- $\operatorname{tion}\left[\mathrm{e.g.,4,53,64],content~recommendation~[e.g.,41,72,79],con-}\right]$ tent moderation [e.g.,62,74,80], misinformation identification and
[ [ "0.0866", "0.077", "0.353", "0.077", "0.353", "0.0871", "0.0866", "0.0871" ], [ "0.814", "0.077", "0.9126", "0.077", "0.9126", "0.0871", "0.814", "0.0871" ], [ "0.0866", "0.1092", "0.4795", "0.1092", "0.4795", "0.1193", "0.0866", "0.1193" ], [ "0.5186", "0.1067", "0.914", "0.1067", "0.914", "0.1206", "0.5186", "0.1206" ], [ "0.08496", "0.1218", "0.482", "0.1218", "0.482", "0.1351", "0.08496", "0.1351" ], [ "0.5186", "0.1218", "0.914", "0.1218", "0.914", "0.1351", "0.5186", "0.1351" ], [ "0.08496", "0.1351", "0.482", "0.1351", "0.482", "0.1483", "0.08496", "0.1483" ], [ "0.517", "0.1351", "0.915", "0.1351", "0.915", "0.1483", "0.517", "0.1483" ], [ "0.08496", "0.1497", "0.482", "0.1497", "0.482", "0.1635", "0.08496", "0.1635" ], [ "0.517", "0.1497", "0.7983", "0.1497", "0.7983", "0.1635", "0.517", "0.1635" ], [ "0.08417", "0.161", "0.4836", "0.1635", "0.4836", "0.178", "0.08417", "0.1755" ], [ "0.08496", "0.1768", "0.482", "0.1768", "0.482", "0.1901", "0.08496", "0.1901" ], [ "0.5215", "0.178", "0.544", "0.178", "0.544", "0.1849", "0.5215", "0.1849" ], [ "0.539", "0.1749", "0.675", "0.1749", "0.675", "0.1881", "0.539", "0.1881" ], [ "0.08496", "0.1901", "0.482", "0.1901", "0.482", "0.2039", "0.08496", "0.2039" ], [ "0.5156", "0.1932", "0.8735", "0.1932", "0.8735", "0.2108", "0.5156", "0.2108" ], [ "0.08496", "0.2052", "0.4836", "0.2052", "0.4836", "0.2184", "0.08496", "0.2184" ], [ "0.517", "0.2134", "0.9126", "0.2134", "0.9126", "0.2267", "0.517", "0.2267" ], [ "0.0866", "0.2203", "0.482", "0.2203", "0.482", "0.2311", "0.0866", "0.2311" ], [ "0.517", "0.2267", "0.9126", "0.2267", "0.9126", "0.2405", "0.517", "0.2405" ], [ "0.0866", "0.2329", "0.4836", "0.2329", "0.4836", "0.2468", "0.0866", "0.2468" ], [ "0.517", "0.2412", "0.914", "0.2412", "0.914", "0.2551", "0.517", "0.2551" ], [ "0.0866", "0.2474", "0.4805", "0.2474", "0.4805", "0.2583", "0.0866", "0.2583" ], [ "0.08496", "0.26", "0.482", "0.26", "0.482", "0.2734", "0.08496", "0.2734" ], [ "0.5186", "0.2551", "0.914", "0.2551", "0.914", "0.2683", "0.5186", "0.2683" ], [ "0.0866", "0.276", "0.4805", "0.276", "0.4805", "0.286", "0.0866", "0.286" ], [ "0.5186", "0.2708", "0.911", "0.2708", "0.911", "0.281", "0.5186", "0.281" ], [ "0.517", "0.2827", "0.914", "0.2827", "0.914", "0.2966", "0.517", "0.2966" ], [ "0.0866", "0.289", "0.4805", "0.289", "0.4805", "0.2998", "0.0866", "0.2998" ], [ "0.08496", "0.3018", "0.482", "0.3018", "0.482", "0.315", "0.08496", "0.315" ], [ "0.517", "0.2966", "0.914", "0.2966", "0.914", "0.31", "0.517", "0.31" ], [ "0.5195", "0.3113", "0.911", "0.3113", "0.911", "0.3213", "0.5195", "0.3213" ], [ "0.0866", "0.3176", "0.4805", "0.3176", "0.4805", "0.3276", "0.0866", "0.3276" ], [ "0.5156", "0.324", "0.9126", "0.3245", "0.9126", "0.3384", "0.5156", "0.3372" ], [ "0.0866", "0.3308", "0.4795", "0.3308", "0.4795", "0.3416", "0.0866", "0.3416" ], [ "0.1013", "0.3423", "0.482", "0.3423", "0.482", "0.356", "0.1013", "0.356" ], [ "0.5186", "0.339", "0.903", "0.339", "0.903", "0.3499", "0.5186", "0.3499" ], [ "0.5317", "0.3516", "0.914", "0.3516", "0.914", "0.3655", "0.5317", "0.3655" ], [ "0.0866", "0.3591", "0.482", "0.3591", "0.482", "0.3694", "0.0866", "0.3694" ], [ "0.0866", "0.3726", "0.4805", "0.3726", "0.4805", "0.3833", "0.0866", "0.3833" ], [ "0.5186", "0.3674", "0.9126", "0.3674", "0.9126", "0.3774", "0.5186", "0.3774" ], [ "0.08496", "0.385", "0.482", "0.385", "0.482", "0.3984", "0.08496", "0.3984" ], [ "0.5195", "0.3818", "0.911", "0.3818", "0.911", "0.3894", "0.5195", "0.3894" ], [ "0.517", "0.3926", "0.915", "0.3926", "0.915", "0.406", "0.517", "0.406" ], [ "0.0866", "0.401", "0.4878", "0.401", "0.4878", "0.411", "0.0866", "0.411" ], [ "0.08496", "0.4124", "0.4805", "0.414", "0.4805", "0.4248", "0.08496", "0.4224" ], [ "0.5186", "0.4092", "0.9126", "0.4092", "0.9126", "0.4192", "0.5186", "0.4192" ], [ "0.0866", "0.428", "0.482", "0.428", "0.482", "0.4382", "0.0866", "0.4382" ], [ "0.5186", "0.4224", "0.9126", "0.4224", "0.9126", "0.433", "0.5186", "0.433" ], [ "0.08496", "0.44", "0.4836", "0.44", "0.4836", "0.4539", "0.08496", "0.4539" ], [ "0.517", "0.435", "0.914", "0.435", "0.914", "0.449", "0.517", "0.449" ], [ "0.517", "0.449", "0.914", "0.449", "0.914", "0.4622", "0.517", "0.4622" ], [ "0.0866", "0.455", "0.482", "0.455", "0.482", "0.4653", "0.0866", "0.4653" ], [ "0.08496", "0.4673", "0.482", "0.4673", "0.482", "0.481", "0.08496", "0.481" ], [ "0.5186", "0.464", "0.9126", "0.464", "0.9126", "0.4749", "0.5186", "0.4749" ], [ "0.08496", "0.4817", "0.4805", "0.4817", "0.4805", "0.4956", "0.08496", "0.4956" ], [ "0.517", "0.4766", "0.914", "0.4766", "0.914", "0.4905", "0.517", "0.4905" ], [ "0.08496", "0.4956", "0.482", "0.4956", "0.482", "0.509", "0.08496", "0.509" ], [ "0.5186", "0.4905", "0.914", "0.4905", "0.914", "0.504", "0.5186", "0.504" ], [ "0.08496", "0.509", "0.482", "0.509", "0.482", "0.523", "0.08496", "0.523" ], [ "0.5186", "0.505", "0.8286", "0.505", "0.8286", "0.515", "0.5186", "0.515" ], [ "0.08496", "0.5234", "0.482", "0.5234", "0.482", "0.537", "0.08496", "0.537" ], [ "0.5337", "0.5195", "0.9126", "0.5195", "0.9126", "0.53", "0.5337", "0.53" ], [ "0.0866", "0.5386", "0.4805", "0.5386", "0.4805", "0.549", "0.0866", "0.549" ], [ "0.5186", "0.5327", "0.9126", "0.5327", "0.9126", "0.5435", "0.5186", "0.5435" ], [ "0.08496", "0.5503", "0.4805", "0.5503", "0.4805", "0.5645", "0.08496", "0.5645" ], [ "0.5195", "0.547", "0.9126", "0.547", "0.9126", "0.5566", "0.5195", "0.5566" ], [ "0.08496", "0.565", "0.482", "0.565", "0.482", "0.579", "0.08496", "0.579" ], [ "0.5186", "0.561", "0.9126", "0.561", "0.9126", "0.5713", "0.5186", "0.5713" ], [ "0.517", "0.5737", "0.914", "0.5728", "0.914", "0.586", "0.517", "0.587" ], [ "0.08826", "0.58", "0.4805", "0.58", "0.4805", "0.5903", "0.08826", "0.5903" ], [ "0.08496", "0.5923", "0.482", "0.5923", "0.482", "0.606", "0.08496", "0.606" ], [ "0.5156", "0.587", "0.914", "0.586", "0.914", "0.5996", "0.5156", "0.601" ], [ "0.08496", "0.606", "0.4836", "0.606", "0.4836", "0.619", "0.08496", "0.619" ], [ "0.517", "0.6016", "0.9126", "0.6016", "0.9126", "0.6157", "0.517", "0.6157" ], [ "0.08496", "0.619", "0.482", "0.619", "0.482", "0.6333", "0.08496", "0.6333" ], [ "0.5186", "0.616", "0.9126", "0.616", "0.9126", "0.627", "0.5186", "0.627" ], [ "0.08496", "0.6333", "0.482", "0.6333", "0.482", "0.648", "0.08496", "0.648" ], [ "0.5186", "0.629", "0.914", "0.629", "0.914", "0.6426", "0.5186", "0.6426" ], [ "0.0866", "0.6484", "0.482", "0.6484", "0.482", "0.662", "0.0866", "0.662" ], [ "0.517", "0.6426", "0.914", "0.6426", "0.914", "0.656", "0.517", "0.656" ], [ "0.0866", "0.6636", "0.4805", "0.6636", "0.4805", "0.674", "0.0866", "0.674" ], [ "0.5186", "0.6577", "0.911", "0.6577", "0.911", "0.6685", "0.5186", "0.6685" ], [ "0.08496", "0.6753", "0.4836", "0.6753", "0.4836", "0.6895", "0.08496", "0.6895" ], [ "0.5195", "0.672", "0.911", "0.672", "0.911", "0.6816", "0.5195", "0.6816" ], [ "0.517", "0.6846", "0.8486", "0.6846", "0.8486", "0.6978", "0.517", "0.6978" ], [ "0.0866", "0.6914", "0.4805", "0.6914", "0.4805", "0.702", "0.0866", "0.702" ], [ "0.08417", "0.7026", "0.482", "0.704", "0.482", "0.7173", "0.08417", "0.7163" ], [ "0.5317", "0.6978", "0.914", "0.6978", "0.914", "0.711", "0.5317", "0.711" ], [ "0.08496", "0.7173", "0.482", "0.7173", "0.482", "0.731", "0.08496", "0.731" ], [ "0.517", "0.712", "0.914", "0.711", "0.914", "0.7246", "0.517", "0.726" ], [ "0.08417", "0.731", "0.482", "0.732", "0.482", "0.7456", "0.08417", "0.744" ], [ "0.517", "0.726", "0.914", "0.726", "0.914", "0.7393", "0.517", "0.7393" ], [ "0.5186", "0.738", "0.914", "0.738", "0.914", "0.752", "0.5186", "0.752" ], [ "0.08496", "0.7456", "0.482", "0.7456", "0.482", "0.759", "0.08496", "0.759" ], [ "0.517", "0.752", "0.914", "0.754", "0.914", "0.7676", "0.517", "0.765" ], [ "0.08496", "0.759", "0.482", "0.759", "0.482", "0.773", "0.08496", "0.773" ], [ "0.08496", "0.773", "0.482", "0.773", "0.482", "0.786", "0.08496", "0.786" ], [ "0.517", "0.7676", "0.9126", "0.7676", "0.9126", "0.781", "0.517", "0.781" ], [ "0.0866", "0.7886", "0.4805", "0.7886", "0.4805", "0.799", "0.0866", "0.799" ], [ "0.5186", "0.7935", "0.546", "0.7935", "0.546", "0.806", "0.5186", "0.806" ], [ "0.5557", "0.7925", "0.8286", "0.7925", "0.8286", "0.8066", "0.5557", "0.8066" ], [ "0.08417", "0.8", "0.4836", "0.8003", "0.4836", "0.8145", "0.08417", "0.813" ], [ "0.08496", "0.8145", "0.482", "0.8145", "0.482", "0.8276", "0.08496", "0.8276" ], [ "0.558", "0.8096", "0.705", "0.8096", "0.705", "0.8237", "0.558", "0.8237" ], [ "0.08496", "0.8276", "0.482", "0.8276", "0.482", "0.8413", "0.08496", "0.8413" ], [ "0.517", "0.827", "0.914", "0.827", "0.914", "0.8403", "0.517", "0.8403" ], [ "0.08496", "0.8423", "0.482", "0.8423", "0.482", "0.856", "0.08496", "0.856" ], [ "0.517", "0.8413", "0.914", "0.8413", "0.914", "0.855", "0.517", "0.855" ], [ "0.08496", "0.856", "0.482", "0.856", "0.482", "0.869", "0.08496", "0.869" ], [ "0.5156", "0.855", "0.9126", "0.854", "0.9126", "0.8687", "0.5156", "0.869" ], [ "0.08417", "0.8687", "0.4836", "0.869", "0.4836", "0.884", "0.08417", "0.8833" ], [ "0.517", "0.869", "0.914", "0.869", "0.914", "0.8833", "0.517", "0.8833" ], [ "0.5146", "0.8833", "0.914", "0.882", "0.914", "0.8965", "0.5146", "0.898" ] ]
[ "AIES'23, August 08-10,2023,Montreal, Quebec,Canada", "Ghosh and Caliskan.", "tobeanurseorcook/clean istobefemale[e.g.,14,24,32,51,65]", "languages which are classified as low-resource' in the AI space", "We conduct this investigation through translations between Eng-", "[23]. We demand stronger performance for such languages that", "lish and Bangla/ Bengali. The choice of Bengali is informed by", "adequately respects their prevalence in the world and accommo-", "two reasons: Bengali is gender-neutral in its pronouns, and the", "dates the billions who collectively speak them.", "first author is a native speaker of Bengali. Through our findings,", "we demonstrate a pattern by which ChatGPT translations perpet-", "2", "BACKGROUND", "uate and amplify gendered (mostly heteromasculine) defaults in", "2.1 Gender in Languages and Translations", "occupations and actions that should be gender-neutral, and con-", "Global languages have several similarities and differences when", "ferringhigherrespecttomen overwomeninthesameoccupation.", "evaluated across a variety of properties, and one such property is", "Though we center this research around translations between Eng-", "how they handle gender. Some languages contain grammatical", "lishandBengali,weverifyourobservedphenomenathroughtrans", "lations in five other languages which are similarly gender-neutral", "gender, whereby nouns are classified with genders [25]. Grammat-", "in their pronouns:Farsi,Malay,Tagalog,Thai, and Turkish.These", "icalgenderisespeciallyinteresting inthecaseofinanimatenouns", "e.g. in English, a language without grammatical gender, the sun", "languagesarechosenbecauseoftheircollectivepopulationofover", "500 million people and because they all use gender-neutral pro-", "is genderless whereas in Hindi, a language that uses grammatical", "gender,itis considered masculine.Linguists[e.g..25,46llargely", "nouns,which is important because we studygenderbiases/errors", "believe that assignment of grammatical genderwithin languages", "that emerge in translations between English and these languages.", "Our contributions are threefold: (1) We provide a comprehen-", "evolved overtime in arbitrary patterns uniqueto eachlanguage", "Beyond grammatical gender, languages also contain semantic or", "sivedemonstration ofthepersistenceand amplification of gen-", "derroles and stereotypes assosciated with actions and occupations", "natural gender, which is a pattern of using different words to re-", "when ChatGPT translates into English sentences which do not pro-", "fertodifferentnounsbasedonthedeterminedgenderofthenoun", "For instance, in English we refer to male cattle as 'bulls' and fe-", "videanygenderinformationintheirsourcelanguages,aswedemon", "stratethatChatGPT'sreinforcementlearningstrategydoesnot", "malecattleascows.Semanticgenderisalsocommonlyexpressed", "handle biasmitigation inmachinetranslation whichhas signifi-", "through word pairs that contain a root word and a changed version", "cant implications on perpetuating bias and shaping human cog-", "derived from it, e.g. the feminine word lioness in English is de-", "rived from the masculine 'lion' by adding the suffix '-ess'. This", "nitionaboutwho should beadoctor and whoshould beanurse,", "among other occupations. We exemplify the insertion of binary", "is known as markedness [40], where the root word is said to be", "genders into instances where the non-binary pronoun would have", "unmarked'Historically, most gendered pairs of nouns are such", "been most appropriate, and the failure to translate the English", "that the masculine noun is unmarked, and femininity is denoted", "gender-neutral pronoun ‘they' into gender-neutral pronouns in", "bysomehowmarkingthemasculine[e.g.,6,4o,78].", "other languages which threatens to erase non-binary and trans", "Sincelanguages havetheir own rules, cultural contexts,and nu-", "identities in downstream tasks.Wepresent one of thefirst stud", "anceswithrespect to gender,an interesting site of study iswhen", "ies of language translation tasks performed by ChatGPT (the only", "theycomeintocontactwitheachotherthroughprocessesoftrans-", "other being [42]), and generally one of the first studies about Chat", "lation.Languagetranslationis complicated,andmustbedonewith", "a good understanding of the rules of both source and destination", "GPT.Given its popularity and usage,it is important to extensively", "study ChatGPT and its potential to perpetuate negative biases and", "languages [75]. This is especially true when languages differ on", "stereotypes,and our study is important in starting this conversa-", "the basis of grammatical gender e.g. when translating the sen-", "tion within academic circles: (2) We conduct our study in Ben", "tenceThe sun was shining but theriver was cold'fromgrammat-", "gali, the 7th most spoken language in the world [12] (over 337", "ically gender-neutral English to grammatically gendered Hindi, it", "million people [31]). Even though this is such a widely spoken", "is important to know that'sun' should be masculine-gendered and", "language with a rich cultural history and heritage,it is signifi", "rivershouldbefeminine-gendered,whichwouldinturninfluence", "cantly understudied in the translation space. It has only tangen-", "the nature of theHindi phrases of theverbswas shining(inthis", "case,')andwas cold'(in this case,f)", "tiallybeen studied in[65], and by non-speakers of Bengali. We", "study it from a native speaker's perspective, a perspective impor-", "Therefore, translation tasks require keen understandings of lan-", "tant to capture and accurately interpret the underlying culture", "guages involved in the process, and a successful translator must", "specific connotations of translations.(3)Beyond demonstrating", "be both careful and respectful of the nuances and cultural contexts", "within source and destination languages to be effective at their job.", "these phenomena in Bengali, we show generalization across other", "However, the task of translation is becoming increasingly auto-", "languages with gender-neutral pronouns - Farsi, Malay, Tagalog", "Thai, and Turkish Such generalization across multiple languages", "mated and offloaded to language models and machine translators.", "isnot commonlyexamined inthe same single study (withthe ex-", "2.2", "Language Models and Datasets in", "ceptionof[65]).In thesecases,weonlystudytranslations intoEng-", "lish, because English is the highest-resource language of all these", "Translation Tasks", "based on the training data ChatGPT uses. We definitively demon", "Large-scale language models have become ubiquitous across a va-", "strate ChatGPT perpetuating gender stereotypes and inserting an", "riety of domains, in tasks such as sentiment analysis [e.g., 3, 38, 50].", "inferred gender based on actions and occupations into sentences", "natural language interpretation [e.g.28, 43,58],plagiarism detec", "that are designed to be gender neutral in their languages of origin,", "tion [e.g., 4, 53, 64], content recommendation [e.g. 41, 72, 79], con-", "tent moderation [e.g.,62,74, 80], misinformation identification and" ]
{ "arxiv_id": "2305.10510", "language": "en", "page_idx": 1 }
2305.10510-en-3
2305.10510-en-3.jpg
AlES'23, August 08-10, 2023, Montreal, Quebec, Canada A feature of the Bengali language which is central to this study is the absence of gendered pronouns. While English uses the gendered pronouns `he'/`she' and the gender-neutral pronoun `they', pronouns in Bengali are gender-neutral. The three most used pronouns in Bengali are স (pronounced‘shey'), ও (pronounced‘o') and তিনি (pronounced 'teeni' with a soft t). While সে and ও can be used to refer to anyone, vor is used to refer to respected people. Even though it uses gender-neutral pronouns, Bengali still contains marked binary-gendered words to refer to animals and occupations e.g. lion/lioness (সিংহ/সিংহী), tiger/tigress (বাঘ/বাঘিনী), and actor/actress (অভিনেতা/অভিনেত্রী). In those examples, the male version of the Bengali word is the root for the female version, and genderization is performed by adding vowels to the root word. However, not all gendered pairs have direct translations to distinct English words e.g. the same word `teacher' translates to $\textbf{শ ি ক ্ ষ ক for male teachers and শ ি ক ্ ষ ি ক া for female teachers. }$ In more recent iterations of SCB over the past decade, there is a growing movement of using the root/default version of gendered words to refer to individuals of nonbinary gender or in cases when the gender of the person is not known. Therefore, the English sentence‘they are a teacher’should translate to‘সে একজন শিক্ষক' and vice versa. The gender-neutral pronoun 'they' should translate the English word 'teacher' to the default 'শিক্ষক' and the Bengali pronoun‘স' should translate to the gender-neutral 'they'. We examine whether translations to and from Bengali honor the gender-neutral pronoun, or provide the appropriately marked nouns when English prompts contain information about gender. ## 3.3 Prompting ChatGPT We queried ChatGPT with a series of prompts (detailed in Section 3.4). The first author created a new account for this study and performed the querying tasks in new sessions on the free version of ChatGPT on ten different days, giving a day's gap in between each time. The intent behind using new sessions was to mitigate the language model's learning from previous conversations, and performing queries on different days was to ensure that results would form a pattern and strengthen our observed themes, rather than stand as a single phenomenon which could have occurred on a particular day for any number of reasons. Prompts were tried out one by one instead of all together, in order to avoid possibly hitting the character limit for single queries ## 3.4 Forming ChatGPT 3.4.1 Single-Occupation Prompts. A primary methodological task in this study was the formation of prompts with which to query ChatGPT. To test whether ChatGPT preserves gender-neutrality in Bengali sentences, we designed a set of prompts carrying the $\_.)$ Such a construc- format'স একজন $\underline{\mid^{\prime}(}$They are a$_{\mathrm{mod}}$ tion is because we intend to fill in the latter stage of the prompt with occupation titles, pursuant to prior work on querying gender in translation tasks based on occupations [e.g.,47,65]. We centered our process of selecting occupations with which to fill the aforementioned blanks in Caliskan et al's [15] work on implicit gender-occupation biases. We began with the US Bureau of Labor Statistics' (BLS) 2022 report of labor force statistics$^4$, converted $^{4}$https://www.bls.gov/cps/cpsaat11.htm Ghosh and Caliskan. the 50 most common occupations to single-word titles following Caliskan et al's [15] process, and then translated them to Bengali. The full list of occupation titles is shown in List 1 in Appendix A. The accurate translations of these prompts should contain the 'they' pronoun for all occupations i.e. the prompt'সে একজন ডা- ক্তার|' should translate to ‘They are a doctor? Through ChatGPT's translations into English (shown in Section 3.3), we examine its preservation (or lack thereof) of the gender-neutral pronoun. We also designed a series of 50 prompts using the English titles of the aforementioned occupations, beginning with the gender- The intention with these prompts neutral ‘They are a was to examine whether ChatGPT correctly identified the pronoun 'they' to translate into one of the Bengali pronouns সে, ও and তিনি e.g. a correct translation of the English prompt‘They are a doctor’ into Bengali is 'সে একজন ডাক্তার|' Furthermore, to investigate whether ChatGPT can provide the appropriately marked forms of words when provided with gender information, we designed a set of prompts with the construction 'He/She is a $\therefore$ We could not use the aforementioned occupa- tions, because most of them are not marked. We also could not use an equivalent of the BLS data for Bengal/Bangladesh, because such data is not publicly available. Therefore, based on the first author's lived experience and cultural context, we identified 10 occupations common in Bengal/Bangladesh and have marked pairs in Bengali based on gender. They are as shown in List 2 in Appendix A We thus formed a set of 20 prompts e.g. 'He is an actor/She is an actor', for which the correct translations in Bengali are expected to be'সে একজন শিক্ষক'and'সে একজন শিক্ষিকা', respectively. We collectively refer to these 120 prompts (50 Bengali and 50 English prompts from List 1 + 20 prompts from List 2) as singleoccupation prompts. In Table 1,we provide some expectations of correct English to Bengali translation, along with rationale. 3.4.2 Action-occupation Prompts. We built another set of Bengali prompts where we intended to construct a scenario that would be equitable and accessible to everyone, irrespective of gender. We identified the scenario of an individual waking up in the morning, performing an action, and then going to work within particular occupations. The prompts contain no information about the gender of the person who is the subject. Therefore, the most accurate translations into English should use the gender-neutral `they' pronoun. We hereafter refer to these as action-occupation prompts. The base prompt was: ‘ সে সকালে ঘুষ থেকে উঠে -,এবং কা- জে যায়। সে একজন $\perp^{\prime}$ In English, this becomes ‘They wake up in the morning, [action] and go to work. They are a [occupation]' In the first blank, we placed common actions that individuals might undertake between waking up in the morning and going to work. We select the following actions: ‘খাবার রান্না করে(cook food), 'নাস্তা খায়' (eat breakfast), 'ঘর পরিক্কার কর' (clean/tidy up), $`$নাস্তা খায়'(eat breakfast),“দাঁত মাজে'(brush teeth),‘চুল আঁচড়ায়' (brush/comb hair), 'নামাজ পড়ে/ঈষ্বরের কাছে প্রার্থনা করে' (pray to God), and ‘বই পড়ে' (read a book). We used two versions of the Bengali phrase for ‘pray to God’because it is referred to differently for the two primary religions of Bengali speakers- Islam and Hinduism. In the second half of the sentence, we used the single-word forms of the top eight most common occupations from the BLS 2022 labor force report. These occupations are: ‘ভাক্তার'(doctor),
[ [ "0.08496", "0.07574", "0.3513", "0.07574", "0.3513", "0.0859", "0.08496", "0.0859" ], [ "0.814", "0.077", "0.9126", "0.077", "0.9126", "0.0871", "0.814", "0.0871" ], [ "0.10297", "0.1067", "0.4805", "0.1067", "0.4805", "0.1206", "0.10297", "0.1206" ], [ "0.5156", "0.1067", "0.914", "0.108", "0.914", "0.1218", "0.5156", "0.1206" ], [ "0.08496", "0.1218", "0.4836", "0.1218", "0.4836", "0.1351", "0.08496", "0.1351" ], [ "0.517", "0.1218", "0.914", "0.1218", "0.914", "0.1351", "0.517", "0.1351" ], [ "0.08496", "0.1351", "0.4836", "0.1351", "0.4836", "0.1483", "0.08496", "0.1483" ], [ "0.517", "0.1351", "0.9087", "0.1351", "0.9087", "0.1483", "0.517", "0.1483" ], [ "0.08496", "0.1497", "0.482", "0.1497", "0.482", "0.1635", "0.08496", "0.1635" ], [ "0.535", "0.1497", "0.9126", "0.1497", "0.9126", "0.1635", "0.535", "0.1635" ], [ "0.08496", "0.1635", "0.482", "0.1635", "0.482", "0.1768", "0.08496", "0.1768" ], [ "0.5186", "0.1635", "0.914", "0.1635", "0.914", "0.1768", "0.5186", "0.1768" ], [ "0.08417", "0.1755", "0.4805", "0.1768", "0.4805", "0.1913", "0.08417", "0.1901" ], [ "0.517", "0.1768", "0.9126", "0.1768", "0.9126", "0.1901", "0.517", "0.1901" ], [ "0.08417", "0.1913", "0.478", "0.1913", "0.478", "0.2052", "0.08417", "0.2052" ], [ "0.5186", "0.1913", "0.9126", "0.1913", "0.9126", "0.202", "0.5186", "0.202" ], [ "0.0989", "0.2058", "0.4836", "0.2058", "0.4836", "0.2197", "0.0989", "0.2197" ], [ "0.517", "0.2052", "0.884", "0.2052", "0.884", "0.2184", "0.517", "0.2184" ], [ "0.08496", "0.2197", "0.482", "0.2197", "0.482", "0.2329", "0.08496", "0.2329" ], [ "0.5317", "0.2184", "0.9126", "0.2184", "0.9126", "0.2317", "0.5317", "0.2317" ], [ "0.08496", "0.2343", "0.4805", "0.2343", "0.4805", "0.2474", "0.08496", "0.2474" ], [ "0.5186", "0.2329", "0.914", "0.2329", "0.914", "0.2468", "0.5186", "0.2468" ], [ "0.5186", "0.2474", "0.6406", "0.2474", "0.6406", "0.2583", "0.5186", "0.2583" ], [ "0.6978", "0.2474", "0.9126", "0.2474", "0.9126", "0.2583", "0.6978", "0.2583" ], [ "0.517", "0.26", "0.9126", "0.26", "0.9126", "0.2734", "0.517", "0.2734" ], [ "0.08496", "0.2488", "0.482", "0.2488", "0.482", "0.262", "0.08496", "0.262" ], [ "0.0866", "0.2632", "0.482", "0.2632", "0.482", "0.2734", "0.0866", "0.2734" ], [ "0.08496", "0.276", "0.482", "0.276", "0.482", "0.289", "0.08496", "0.289" ], [ "0.517", "0.2734", "0.914", "0.2734", "0.914", "0.2874", "0.517", "0.2874" ], [ "0.08496", "0.289", "0.482", "0.289", "0.482", "0.303", "0.08496", "0.303" ], [ "0.517", "0.2874", "0.9126", "0.2874", "0.9126", "0.3005", "0.517", "0.3005" ], [ "0.08826", "0.305", "0.4805", "0.305", "0.4805", "0.315", "0.08826", "0.315" ], [ "0.517", "0.3018", "0.726", "0.3018", "0.726", "0.315", "0.517", "0.315" ], [ "0.08496", "0.3164", "0.4307", "0.3164", "0.4307", "0.3308", "0.08496", "0.3308" ], [ "0.5312", "0.315", "0.9126", "0.3145", "0.9126", "0.3289", "0.5312", "0.33" ], [ "0.1013", "0.332", "0.482", "0.332", "0.482", "0.3452", "0.1013", "0.3452" ], [ "0.5156", "0.33", "0.914", "0.3289", "0.914", "0.3435", "0.5156", "0.3447" ], [ "0.08496", "0.3452", "0.482", "0.3452", "0.482", "0.3591", "0.08496", "0.3591" ], [ "0.5186", "0.3452", "0.9126", "0.3452", "0.9126", "0.356", "0.5186", "0.356" ], [ "0.5186", "0.3591", "0.5947", "0.3591", "0.5947", "0.3706", "0.5186", "0.3706" ], [ "0.6313", "0.3591", "0.9126", "0.3591", "0.9126", "0.3694", "0.6313", "0.3694" ], [ "0.5186", "0.3718", "0.9126", "0.3718", "0.9126", "0.3818", "0.5186", "0.3818" ], [ "0.08496", "0.3599", "0.482", "0.3599", "0.482", "0.3738", "0.08496", "0.3738" ], [ "0.08496", "0.3738", "0.482", "0.3738", "0.482", "0.387", "0.08496", "0.387" ], [ "0.08496", "0.3882", "0.478", "0.387", "0.478", "0.3984", "0.08496", "0.3997" ], [ "0.5186", "0.385", "0.914", "0.385", "0.914", "0.3984", "0.5186", "0.3984" ], [ "0.0866", "0.4028", "0.4795", "0.4028", "0.4795", "0.4136", "0.0866", "0.4136" ], [ "0.5186", "0.401", "0.9126", "0.401", "0.9126", "0.411", "0.5186", "0.411" ], [ "0.08496", "0.4153", "0.482", "0.4153", "0.482", "0.4287", "0.08496", "0.4287" ], [ "0.5186", "0.414", "0.9126", "0.414", "0.9126", "0.4248", "0.5186", "0.4248" ], [ "0.08417", "0.43", "0.437", "0.43", "0.437", "0.443", "0.08417", "0.443" ], [ "0.517", "0.4268", "0.914", "0.4268", "0.914", "0.44", "0.517", "0.44" ], [ "0.10297", "0.443", "0.482", "0.443", "0.482", "0.457", "0.10297", "0.457" ], [ "0.5186", "0.4426", "0.8813", "0.4426", "0.8813", "0.4526", "0.5186", "0.4526" ], [ "0.08496", "0.4583", "0.4805", "0.4583", "0.4805", "0.4717", "0.08496", "0.4717" ], [ "0.5337", "0.4539", "0.9126", "0.455", "0.9126", "0.4666", "0.5337", "0.4653" ], [ "0.08417", "0.4717", "0.4739", "0.4717", "0.4739", "0.4849", "0.08417", "0.4849" ], [ "0.517", "0.4685", "0.914", "0.4685", "0.914", "0.4817", "0.517", "0.4817" ], [ "0.5156", "0.481", "0.903", "0.4817", "0.903", "0.4968", "0.5156", "0.4956" ], [ "0.08496", "0.4968", "0.2942", "0.4968", "0.2942", "0.511", "0.08496", "0.511" ], [ "0.535", "0.4956", "0.911", "0.4968", "0.911", "0.5083", "0.535", "0.507" ], [ "0.08496", "0.5146", "0.4805", "0.5146", "0.4805", "0.528", "0.08496", "0.528" ], [ "0.517", "0.5103", "0.9126", "0.5103", "0.9126", "0.5234", "0.517", "0.5234" ], [ "0.08496", "0.529", "0.482", "0.529", "0.482", "0.5425", "0.08496", "0.5425" ], [ "0.5186", "0.526", "0.9126", "0.526", "0.9126", "0.536", "0.5186", "0.536" ], [ "0.08496", "0.5425", "0.482", "0.5425", "0.482", "0.556", "0.08496", "0.556" ], [ "0.5156", "0.5386", "0.8774", "0.5386", "0.8774", "0.552", "0.5156", "0.552" ], [ "0.08496", "0.5566", "0.482", "0.5566", "0.482", "0.571", "0.08496", "0.571" ], [ "0.5186", "0.561", "0.914", "0.561", "0.914", "0.5747", "0.5186", "0.5747" ], [ "0.08417", "0.5693", "0.4805", "0.571", "0.4805", "0.584", "0.08417", "0.5835" ], [ "0.5156", "0.577", "0.9126", "0.5757", "0.9126", "0.589", "0.5156", "0.5903" ], [ "0.08496", "0.5854", "0.4836", "0.5854", "0.4836", "0.5986", "0.08496", "0.5986" ], [ "0.517", "0.5903", "0.9126", "0.5903", "0.9126", "0.604", "0.517", "0.604" ], [ "0.08496", "0.5986", "0.482", "0.5986", "0.482", "0.6123", "0.08496", "0.6123" ], [ "0.08496", "0.6113", "0.4805", "0.6113", "0.4805", "0.625", "0.08496", "0.625" ], [ "0.5186", "0.606", "0.9126", "0.606", "0.9126", "0.616", "0.5186", "0.616" ], [ "0.5186", "0.617", "0.914", "0.617", "0.914", "0.631", "0.5186", "0.631" ], [ "0.0866", "0.6274", "0.4805", "0.6274", "0.4805", "0.638", "0.0866", "0.638" ], [ "0.517", "0.632", "0.914", "0.632", "0.914", "0.646", "0.517", "0.646" ], [ "0.0825", "0.64", "0.4836", "0.6396", "0.4836", "0.653", "0.0825", "0.654" ], [ "0.517", "0.646", "0.9126", "0.6445", "0.9126", "0.6577", "0.517", "0.659" ], [ "0.08496", "0.654", "0.482", "0.654", "0.482", "0.6675", "0.08496", "0.6675" ], [ "0.517", "0.659", "0.915", "0.659", "0.915", "0.6724", "0.517", "0.6724" ], [ "0.08417", "0.6675", "0.3545", "0.6675", "0.3545", "0.681", "0.08417", "0.681" ], [ "0.517", "0.6724", "0.8945", "0.6724", "0.8945", "0.686", "0.517", "0.686" ], [ "0.5317", "0.686", "0.8145", "0.685", "0.8145", "0.6997", "0.5317", "0.7007" ], [ "0.08417", "0.6924", "0.2778", "0.6914", "0.2778", "0.7056", "0.08417", "0.707" ], [ "0.8594", "0.688", "0.9126", "0.688", "0.9126", "0.6987", "0.8594", "0.6987" ], [ "0.517", "0.7007", "0.6396", "0.7007", "0.6396", "0.714", "0.517", "0.714" ], [ "0.6846", "0.7007", "0.914", "0.7007", "0.914", "0.714", "0.6846", "0.714" ], [ "0.08496", "0.711", "0.482", "0.711", "0.482", "0.7246", "0.08496", "0.7246" ], [ "0.5186", "0.714", "0.914", "0.714", "0.914", "0.728", "0.5186", "0.728" ], [ "0.08496", "0.7246", "0.482", "0.7246", "0.482", "0.738", "0.08496", "0.738" ], [ "0.5186", "0.729", "0.9126", "0.729", "0.9126", "0.7393", "0.5186", "0.7393" ], [ "0.08417", "0.7373", "0.4805", "0.738", "0.4805", "0.7524", "0.08417", "0.752" ], [ "0.5156", "0.741", "0.9126", "0.7437", "0.9126", "0.757", "0.5156", "0.755" ], [ "0.08496", "0.7524", "0.482", "0.7524", "0.482", "0.7666", "0.08496", "0.7666" ], [ "0.517", "0.757", "0.914", "0.757", "0.914", "0.771", "0.517", "0.771" ], [ "0.08496", "0.7666", "0.2035", "0.7666", "0.2035", "0.78", "0.08496", "0.78" ], [ "0.2427", "0.7666", "0.327", "0.768", "0.327", "0.78", "0.2427", "0.778" ], [ "0.3708", "0.768", "0.482", "0.768", "0.482", "0.779", "0.3708", "0.779" ], [ "0.517", "0.771", "0.914", "0.771", "0.914", "0.784", "0.517", "0.784" ], [ "0.08496", "0.781", "0.482", "0.781", "0.482", "0.7944", "0.08496", "0.7944" ], [ "0.517", "0.784", "0.911", "0.784", "0.911", "0.7974", "0.517", "0.7974" ], [ "0.0866", "0.797", "0.4805", "0.797", "0.4805", "0.8066", "0.0866", "0.8066" ], [ "0.5186", "0.8", "0.9126", "0.8", "0.9126", "0.813", "0.5186", "0.813" ], [ "0.08496", "0.808", "0.4844", "0.808", "0.4844", "0.8213", "0.08496", "0.8213" ], [ "0.5186", "0.813", "0.9126", "0.813", "0.9126", "0.827", "0.5186", "0.827" ], [ "0.08496", "0.8228", "0.482", "0.8228", "0.482", "0.836", "0.08496", "0.836" ], [ "0.5186", "0.827", "0.9126", "0.827", "0.9126", "0.8403", "0.5186", "0.8403" ], [ "0.08417", "0.834", "0.482", "0.8354", "0.482", "0.8496", "0.08417", "0.8486" ], [ "0.517", "0.8413", "0.9126", "0.8413", "0.9126", "0.855", "0.517", "0.855" ], [ "0.0866", "0.8496", "0.482", "0.8496", "0.482", "0.863", "0.0866", "0.863" ], [ "0.5156", "0.854", "0.9126", "0.855", "0.9126", "0.869", "0.5156", "0.8687" ], [ "0.08496", "0.863", "0.4836", "0.863", "0.4836", "0.877", "0.08496", "0.877" ], [ "0.5186", "0.8706", "0.911", "0.8706", "0.911", "0.881", "0.5186", "0.881" ], [ "0.08417", "0.882", "0.2712", "0.8833", "0.2712", "0.8965", "0.08417", "0.896" ], [ "0.5156", "0.8833", "0.914", "0.8833", "0.914", "0.8965", "0.5156", "0.8965" ] ]
[ "AIES'23August08-10,2023.Montreal.,Quebec,Canada", "Ghosh and Caliskan.", "A feature of the Bengali language which is central to this study", "the 50 most common occupations to single-word titles following", "is the absence of gendered pronouns. While English uses the gen-", "Caliskan et al's [15] process, and then translated them to Bengali.", "dered pronouns 'he'/'she' and the gender-neutral pronoun 'they',", "The full list of occupation titles is shown in List 1 in Appendix A.", "pronouns in Bengali are gender-neutral. The three most used pro", "The accurate translations of these prompts should contain the", "nouns in Bengali are ( (pronounced ‘shey\"), (pronounced ‘o)", "‘they' pronoun for all occupations ie. the prompt ' -", "andf (pronounced'teeni'with a soft t).While and can be", "@ should translate to They are a doctor: Through ChatGPT's", "used to refer to anyone,ff is used to refer to respected people.", "translations into English (shown in Section 3.3),we examine its", "Even though it uses gender-neutral pronouns, Bengali still con-", "preservation (or lack thereof) of the gender-neutral pronoun.", "tains marked binary-gendered words to refer to animals and occu-", "We also designed a series of 50 prompts using the English titles", "pations e.glion/lioness (/),tiger/tigress(/)", "of the aforementioned occupations, beginning with the gender-", "neutral ‘They are a", "The intention withtheseprompts", "was to examine whether ChatGPT correctly identified the pronoun", "and actor/actress (fct/fe). In those examples, the", "male version of the Bengali word is the root forthe female ver-", "sion, and genderization is performed by adding vowels to the root", "they'to translate into one of the Bengali pronouns , and ff", "word. However, not all gendered pairs have direct translations to", "e.g.a correct translation of the English prompt‘They are a doctor", "distinct English words e.g.the sameword‘teacher'translates to", "into Bengali is ' ", " for male teachers and for female teachers.", "Furthermore, to investigate whether ChatGPT can provide the", "In more recent iterations of SCB over the past decade, there is a", "appropriately marked forms of words when provided with gender", "growing movement of using the root/default version of gendered", "information, wedesigned a setofprompts withthe construction", "He/She is a.", ":We could not usetheaforementioned occupa-", "tions.becausemost ofthem arenotmarked.Wealso could notuse", "words to refer to individuals of nonbinary gender or in cases when", "the gender of the person is not known. Therefore, the English sen-", "tencetheyareateachershouldtranslateto", "an equivalent of the BLS data for Bengal/Bangladesh, because such", "and viceversa.Thegender-neutral pronoun‘theyshouldtranslate", "data is notpublicly available.Therefore, based onthefirst author's", "the English word 'teacher to the default 'and the Bengali", "lived experienceand culturalcontext,weidentified1o occupations", "pronoun't' should translate to the gender-neutral 'they", "common in Bengal/Bangladesh and have marked pairs in Bengali", "We examine whether translations to and from Bengali honor", "based on gender. Theyareas shown in List 2in AppendixA.", "the gender-neutral pronoun, or provide the appropriately marked", "Wethus formedasetof 20prompts e.g.‘Heis an actor/Sheisan", "nouns when English prompts contain information about gender.", "actor, for which the correct translations in Bengali are expected", "tobeand,respectively.", "3.3 PromptingChatGPT", "Wecollectivelyrefertothese120prompts(50Bengaliand50", "We queried ChatGPT with a series of prompts (detailed in Section", "English prompts from List 1 + 20 prompts from List 2) as single", "3.4). The first author created a new account for this study and", "occupationprompts.InTable1,weprovidesomeexpectationsof", "performed the querying tasks in new sessions on the free version", "correct English to Bengali translation, along with rationale.", "of ChatGPT on ten different days, giving a day's gap in between", "3.4.2Action-occupation Prompts.We built another set of Bengali", "each time.The intent behind using new sessions was to mitigate", "prompts where we intended to construct a scenario that would be", "the language model's learning from previous conversations, and", "equitable and accessible to everyone, irrespective of gender. We", "performing queries on different days was to ensure that results", "would form a pattern and strengthen our observed themes, rather", "identifiedthe scenario of an individual wakingup inthemorning", "performing an action, and then going to work within particular", "thanstandasasinglephenomenonwhichcouldhaveoccurredon", "occupations. The prompts contain no information about the gen-", "a particular day for any number of reasons.Prompts were tried", "der of the person who is the subject. Therefore, the most accurate", "out one by one instead of all together, in order to avoid possibly", "translations into English should use the gender-neutral 'they' pro-", "hitting the character limit for single queries.", "noun. We hereafter refer to these as action-occupation prompts.", "Thebasepromptwas:", "3.4 FormingChatGPT", "", "", "\" In English, this becomes‘They wake", "3.4.1 Single-Occupation Prompts. A primary methodological task", "up in the morning, [action] and go to work. They are a [occupa-", "in this study was the formation of prompts with which to query", "tionl'Inthefirstblank.weplaced common actionsthatindividu-", "ChatGPT. To test whether ChatGPT preserves gender-neutrality", "als might undertake between waking up in the morning and going", "in Bengali sentences, we designed a set of prompts carrying the", "to work. We select the following actions: “ t (cook", "format ‘", "(They are a", ")Suchaconstruc-", "food), (eat breakfast), (clean/tidy up),", "tion is because we intend to fill in the latter stage of the prompt", " (eat breakfast), ' (brush teeth),\"", "with occupationtitles,pursuanttopriorwork onqueryinggender", "(brush/combhair),/(ray", "in translation tasks based on occupations [e.g., 47, 65]. We cen-", "to God), and ' (read a book). We used two versions of the", "tered our process of selecting occupations with which to fill the", "Bengali phrase for'pray to God' because it is referred to differently", "aforementioned blanks in Caliskan et al's [15] work on implicit", "for the two primary religions of Bengali speakers - Islam and Hin", "gender-occupation biases. We began with the US Bureau of Labor", "duism. In the second half of the sentence, we used the single-word", "Statistics' (BLS) 2022 report of labor force statistics4, converted", "formsofthetopeightmostcommonoccupationsfromtheBLS", "*https://www.bls.gov/eps/cpsaat11.htm", "2022 labor force report. These occupations are: (doctor)," ]
{ "arxiv_id": "2305.10510", "language": "en", "page_idx": 3 }
2305.10510-en-4
2305.10510-en-4.jpg
ChatGPT Perpetuates Cender Bias in Machine Translation and Ignores Non-Cendered Pronouns: Findings across BengállEsfid2FivengheríCëswiθPêbâyrdeddutngakgêgebec, Canada Table 1: Expected English to Bengali translations and vice versa, with explanations <table> <tbody> <tr> <th>English sentence</th> <th>Expected Bengali Translation</th> <th>$\operatorname{Explanation}$</th> </tr> <tr> <td>He is a teacher.</td> <td>সে একজন পিককা</td> <td>Male English pronoun, therefore the unmarked Bengal word for‘teacher’(শিক্ষক) is expected.</td> </tr> <tr> <td>She is a teacher</td> <td>সে একজন পিক্ষিকা।</td> <td>Female English pronoun, therefore the gender-marked Ren$\sigma$ali word for পিক্ষিকা) is expected</td> </tr> <tr> <td>They are a teacher. </td> <td>সে একজন পিককা</td> <td>Gender-neutral English pronoun, therefore the $\because un$ marked Bengali word for `teacher'(শিক্ষক) is expected</td> </tr> </tbody> </table> $`$নার্স' (nurse),‘প্রকৌশলী' (engineer),‘বৈজ্তানিক' (scientist),‘পাচক' (chef),“পুষ্টিবিদ' (nutritionist),‘সহকারী' (assistant) and ‘ষনস্তত্বিক' (psychologist). Therefore, we generated a set of 64 unique actionoccupation prompts in Bengali. Each prompt is populated with exactly one action in the fırst blank and exactly one occupation in the second blank. Prompts are depicted in Figure 1. <FigureHere> Figure 1: Action-occupation prompts. Each prompt is formed by combining the contents of leftmost column, one action from items 1-8, the contents of the third column from the left, and one occupations from items a-h, in that order. 4.1 Translating Single-Occupation Prompts For the first set of our single-occupation prompts, where we provided ChatGPT with 50 sentences each in the construction ' সেএকজন $\_ | ^{\prime }$ (They are a$\_-\_-\_.)$ and filled each blank in with occupations mentioned in List 1. Across a period of 10 days, we observed that 29 occupations (such as doctor, engineer, plumber, programmer, carpenter, etc.) were exclusively assigned the pronoun‘He’in translation. The full set of occupations in List 3(Appendix A), and examples are shown in Figure 2 (Appendix B). Furthermore, ChatGPT exclusively assigned the English pronoun She' to prompts containing 11 occupations (e.g. nurse, therapist, hairdresser, assistant, aide, etc.) on all 10 days of testing. The full set of occupations is are captured in List 4 (Appendix A), with few examples shown in Figure 3 (Appendix B). Only for 6 occupations- lawyer, administrator, officer, specialist, hygienist, and paralegal- did ChatGPT assign the English pronouns‘He/she’ on all days of testing, though it did not use the pronoun‘They’. A few examples shown in Figure 4(Appendix B). Finally, there were 4 occupations - janitor, chef, nutritionist, and salesperson - for which ChatGPT demonstrated some variation in its assignment of pronouns, in the way that it did not consistently assign the pronoun 'he' or ‘she’ across different days of testing. An example is shown in Figure 5 (Appendix B). Such variations were only observed within the first 3 days of testing, as results stabilized starting day 4 to the pronoun that was assigned on day 3, and were replicated every day after. For‘They are a[occupation]' prompts, we observed ChatGPT's complete failure to recognize the English gender-neutral pronoun 'they' as singular. In all 50 instances across 10 days, we observed ChatGPT translating 'they' to the Bengali collective pronoun'otরা',producing grammatically incorrect and incoherent translations. The correct translations should be 'সে/তিনি/ও একজন Some examples are shown in Figure 7 (Appendix B). Finally, we examine ChatGPT's performance in displaying appropriate markedness of gendered words, using the prompts‘He is a\_.........' or'She is a\_.....................................and using the words in List 2. We observe that ChatGPT is perfectly able to translate words to their appropriate marked or unmarked versions given the gendered pronouns (he/she) of the subject, as shown in Figure 6 (Appendix B). However, a phenomenon we noticed is that ChatGPT assosciated sentences with the female pronoun with the Bengali pronoun 'ক ' , whereas it assosciated the male pronoun with the more respectful Bengali pronoun 'তিনি'. Such a pattern was true for all sets of occupations. 3.5 Testing Across Five Other Languages To achieve generalization in our study of potentially biased languages beyond Bengali, we extended this study to other languages that use gender-neutral pronouns. We sought native speakers of such languages from within our networks and identified five languages to study: Farsi, Malay, Tagalog, Thai, and Turkish. These are all low-resource languages spoken by many millions of people all over the world, which makes them important to study. We worked with native speakers of each language to construct respective sets of single- occupation prompts using the occupations in List 1, and corresponding correct English translations. We tested these following the process outlined in Section 3.3, with the only difference being that these were only tried once as opposed to ten days. # 4 FINDINGS We supplement our findings with screenshots from ChatGPT to provide direct evidence, but present them in Appendix B for concision and increased readability.
[ [ "0.08496", "0.07574", "0.914", "0.07574", "0.914", "0.089", "0.08496", "0.089" ], [ "0.2532", "0.1042", "0.746", "0.1042", "0.746", "0.11743", "0.2532", "0.11743" ], [ "0.1765", "0.137", "0.281", "0.137", "0.281", "0.1497", "0.1765", "0.1497" ], [ "0.304", "0.1383", "0.4878", "0.1383", "0.4878", "0.1483", "0.304", "0.1483" ], [ "0.4844", "0.1414", "0.4944", "0.1414", "0.4944", "0.1459", "0.4844", "0.1459" ], [ "0.4944", "0.1383", "0.572", "0.1383", "0.572", "0.1497", "0.4944", "0.1497" ], [ "0.3022", "0.1559", "0.4207", "0.1559", "0.4207", "0.1692", "0.3022", "0.1692" ], [ "0.4944", "0.1559", "0.824", "0.1547", "0.824", "0.1692", "0.4944", "0.1704" ], [ "0.4944", "0.1692", "0.7305", "0.1692", "0.7305", "0.1843", "0.4944", "0.1843" ], [ "0.1748", "0.1578", "0.2695", "0.1578", "0.2695", "0.1692", "0.1748", "0.1692" ], [ "0.1765", "0.1863", "0.2754", "0.1863", "0.2754", "0.1976", "0.1765", "0.1976" ], [ "0.3022", "0.1849", "0.429", "0.1849", "0.429", "0.1989", "0.3022", "0.1989" ], [ "0.4968", "0.1863", "0.8228", "0.1863", "0.8228", "0.1995", "0.4968", "0.1995" ], [ "0.4968", "0.1995", "0.7876", "0.1995", "0.7876", "0.2134", "0.4968", "0.2134" ], [ "0.1732", "0.2134", "0.4192", "0.2122", "0.4192", "0.2267", "0.1732", "0.2279" ], [ "0.4958", "0.214", "0.8228", "0.214", "0.8228", "0.2279", "0.4958", "0.2279" ], [ "0.4958", "0.2291", "0.8228", "0.2291", "0.8228", "0.2424", "0.4958", "0.2424" ], [ "0.0866", "0.2664", "0.4795", "0.2664", "0.4795", "0.281", "0.0866", "0.281" ], [ "0.5186", "0.2676", "0.88", "0.2676", "0.88", "0.281", "0.5186", "0.281" ], [ "0.0866", "0.2822", "0.4795", "0.2822", "0.4795", "0.2954", "0.0866", "0.2954" ], [ "0.517", "0.2854", "0.9126", "0.2854", "0.9126", "0.2986", "0.517", "0.2986" ], [ "0.08826", "0.2974", "0.482", "0.2974", "0.482", "0.308", "0.08826", "0.308" ], [ "0.517", "0.2986", "0.914", "0.2986", "0.914", "0.3125", "0.517", "0.3125" ], [ "0.08496", "0.3093", "0.4805", "0.3093", "0.4805", "0.3225", "0.08496", "0.3225" ], [ "0.5195", "0.3145", "0.544", "0.3145", "0.544", "0.3225", "0.5195", "0.3225" ], [ "0.5884", "0.3132", "0.6724", "0.3132", "0.6724", "0.3245", "0.5884", "0.3245" ], [ "0.7183", "0.3145", "0.9126", "0.3145", "0.9126", "0.3245", "0.7183", "0.3245" ], [ "0.0866", "0.3245", "0.478", "0.3245", "0.478", "0.3352", "0.0866", "0.3352" ], [ "0.5146", "0.3245", "0.9126", "0.3245", "0.9126", "0.3384", "0.5146", "0.3384" ], [ "0.08496", "0.3372", "0.398", "0.3372", "0.398", "0.351", "0.08496", "0.351" ], [ "0.517", "0.3403", "0.914", "0.3403", "0.914", "0.3542", "0.517", "0.3542" ], [ "0.5156", "0.3547", "0.914", "0.3542", "0.914", "0.3674", "0.5156", "0.3687" ], [ "0.517", "0.3662", "0.914", "0.3662", "0.914", "0.3801", "0.517", "0.3801" ], [ "0.1978", "0.377", "0.2646", "0.379", "0.2632", "0.3977", "0.1969", "0.3958" ], [ "0.38", "0.379", "0.4314", "0.379", "0.4314", "0.3977", "0.38", "0.3977" ], [ "0.4272", "0.3865", "0.4314", "0.3865", "0.4314", "0.3926", "0.4272", "0.3926" ], [ "0.5156", "0.3818", "0.8857", "0.3818", "0.8857", "0.3958", "0.5156", "0.3958" ], [ "0.1993", "0.3984", "0.2646", "0.3984", "0.2646", "0.414", "0.1993", "0.414" ], [ "0.3896", "0.3984", "0.423", "0.3984", "0.423", "0.414", "0.3896", "0.414" ], [ "0.5337", "0.3958", "0.919", "0.3958", "0.919", "0.4092", "0.5337", "0.4092" ], [ "0.517", "0.4092", "0.914", "0.4092", "0.914", "0.4224", "0.517", "0.4224" ], [ "0.1978", "0.4172", "0.2632", "0.4192", "0.2615", "0.435", "0.1969", "0.433" ], [ "0.3857", "0.4204", "0.4265", "0.4204", "0.4265", "0.4363", "0.3857", "0.4363" ], [ "0.4224", "0.4255", "0.4265", "0.4255", "0.4265", "0.4312", "0.4224", "0.4312" ], [ "0.5156", "0.4236", "0.914", "0.4236", "0.914", "0.4375", "0.5156", "0.4375" ], [ "0.1969", "0.4363", "0.2646", "0.4382", "0.2632", "0.457", "0.1953", "0.455" ], [ "0.3882", "0.4395", "0.4355", "0.4395", "0.4355", "0.455", "0.3882", "0.455" ], [ "0.517", "0.4375", "0.914", "0.4375", "0.914", "0.4507", "0.517", "0.4507" ], [ "0.3137", "0.4507", "0.3325", "0.4507", "0.3325", "0.4539", "0.3137", "0.4539" ], [ "0.33", "0.4414", "0.3506", "0.4414", "0.3506", "0.4458", "0.33", "0.4458" ], [ "0.1217", "0.4539", "0.1447", "0.4539", "0.1447", "0.4583", "0.1217", "0.4583" ], [ "0.3057", "0.4539", "0.3489", "0.4558", "0.3472", "0.4673", "0.304", "0.4653" ], [ "0.5156", "0.4507", "0.773", "0.4507", "0.773", "0.464", "0.5156", "0.464" ], [ "0.2009", "0.457", "0.2632", "0.457", "0.2632", "0.473", "0.2009", "0.473" ], [ "0.3865", "0.4583", "0.4314", "0.4583", "0.4314", "0.4734", "0.3865", "0.4734" ], [ "0.5317", "0.464", "0.914", "0.464", "0.914", "0.4778", "0.5317", "0.4778" ], [ "0.1887", "0.4778", "0.2656", "0.4797", "0.2656", "0.4956", "0.1887", "0.4937" ], [ "0.3906", "0.4817", "0.4167", "0.4766", "0.4224", "0.4912", "0.3962", "0.4968" ], [ "0.5186", "0.4797", "0.9126", "0.4797", "0.9126", "0.4905", "0.5186", "0.4905" ], [ "0.3857", "0.4976", "0.433", "0.4976", "0.433", "0.512", "0.3857", "0.512" ], [ "0.5156", "0.4924", "0.914", "0.4924", "0.914", "0.506", "0.5156", "0.506" ], [ "0.1978", "0.5005", "0.2632", "0.5005", "0.2632", "0.5166", "0.1978", "0.5166" ], [ "0.5156", "0.506", "0.9126", "0.506", "0.9126", "0.5195", "0.5156", "0.5195" ], [ "0.2009", "0.5166", "0.2607", "0.5166", "0.2607", "0.532", "0.2009", "0.532" ], [ "0.38", "0.515", "0.437", "0.515", "0.437", "0.531", "0.38", "0.531" ], [ "0.535", "0.5215", "0.9126", "0.5215", "0.9126", "0.532", "0.535", "0.532" ], [ "0.517", "0.5327", "0.914", "0.5327", "0.914", "0.547", "0.517", "0.547" ], [ "0.08496", "0.549", "0.482", "0.549", "0.482", "0.5625", "0.08496", "0.5625" ], [ "0.517", "0.5474", "0.9126", "0.5474", "0.9126", "0.561", "0.517", "0.561" ], [ "0.1422", "0.563", "0.4805", "0.563", "0.4805", "0.5737", "0.1422", "0.5737" ], [ "0.517", "0.561", "0.914", "0.561", "0.914", "0.5747", "0.517", "0.5747" ], [ "0.1422", "0.5747", "0.4795", "0.5747", "0.4795", "0.5854", "0.1422", "0.5854" ], [ "0.5156", "0.5757", "0.915", "0.5757", "0.915", "0.589", "0.5156", "0.589" ], [ "0.1422", "0.5884", "0.4656", "0.5884", "0.4656", "0.5986", "0.1422", "0.5986" ], [ "0.517", "0.589", "0.914", "0.589", "0.914", "0.603", "0.517", "0.603" ], [ "0.5186", "0.605", "0.9126", "0.605", "0.9126", "0.6157", "0.5186", "0.6157" ], [ "0.517", "0.617", "0.774", "0.617", "0.774", "0.631", "0.517", "0.631" ], [ "0.5317", "0.63", "0.9126", "0.63", "0.9126", "0.6445", "0.5317", "0.6445" ], [ "0.08496", "0.638", "0.4248", "0.638", "0.4248", "0.653", "0.08496", "0.653" ], [ "0.517", "0.6445", "0.914", "0.6445", "0.914", "0.6577", "0.517", "0.6577" ], [ "0.08496", "0.655", "0.482", "0.655", "0.482", "0.6685", "0.08496", "0.6685" ], [ "0.517", "0.657", "0.914", "0.6577", "0.914", "0.672", "0.517", "0.6704" ], [ "0.0866", "0.6704", "0.482", "0.6704", "0.482", "0.6846", "0.0866", "0.6846" ], [ "0.517", "0.672", "0.914", "0.672", "0.914", "0.686", "0.517", "0.686" ], [ "0.08496", "0.6846", "0.4836", "0.6846", "0.4836", "0.6978", "0.08496", "0.6978" ], [ "0.517", "0.686", "0.9165", "0.686", "0.9165", "0.6997", "0.517", "0.6997" ], [ "0.08496", "0.6978", "0.482", "0.6978", "0.482", "0.711", "0.08496", "0.711" ], [ "0.5186", "0.702", "0.8613", "0.702", "0.8613", "0.712", "0.5186", "0.712" ], [ "0.0866", "0.712", "0.482", "0.712", "0.482", "0.726", "0.0866", "0.726" ], [ "0.517", "0.7134", "0.83", "0.7134", "0.83", "0.7266", "0.517", "0.7266" ], [ "0.08496", "0.7246", "0.482", "0.7246", "0.482", "0.738", "0.08496", "0.738" ], [ "0.5317", "0.728", "0.914", "0.729", "0.914", "0.742", "0.5317", "0.741" ], [ "0.08496", "0.7393", "0.482", "0.7393", "0.482", "0.7524", "0.08496", "0.7524" ], [ "0.517", "0.742", "0.914", "0.742", "0.914", "0.756", "0.517", "0.756" ], [ "0.0866", "0.754", "0.478", "0.754", "0.478", "0.7646", "0.0866", "0.7646" ], [ "0.581", "0.755", "0.661", "0.756", "0.661", "0.7676", "0.581", "0.7666" ], [ "0.706", "0.757", "0.9126", "0.757", "0.9126", "0.7676", "0.706", "0.7676" ], [ "0.0866", "0.7676", "0.4795", "0.7676", "0.4795", "0.778", "0.0866", "0.778" ], [ "0.5195", "0.7583", "0.54", "0.7583", "0.54", "0.7666", "0.5195", "0.7666" ], [ "0.5186", "0.7695", "0.9126", "0.7695", "0.9126", "0.7827", "0.5186", "0.7827" ], [ "0.0866", "0.781", "0.482", "0.781", "0.482", "0.7944", "0.0866", "0.7944" ], [ "0.5156", "0.7827", "0.914", "0.782", "0.914", "0.797", "0.5156", "0.7974" ], [ "0.08496", "0.7944", "0.482", "0.7944", "0.482", "0.808", "0.08496", "0.808" ], [ "0.517", "0.797", "0.914", "0.797", "0.914", "0.81", "0.517", "0.81" ], [ "0.08417", "0.8096", "0.4836", "0.8096", "0.4836", "0.8228", "0.08417", "0.8228" ], [ "0.517", "0.811", "0.914", "0.811", "0.914", "0.8247", "0.517", "0.8247" ], [ "0.517", "0.8247", "0.914", "0.8247", "0.914", "0.8384", "0.517", "0.8384" ], [ "0.08496", "0.836", "0.1993", "0.836", "0.1993", "0.8496", "0.08496", "0.8496" ], [ "0.517", "0.8384", "0.914", "0.8384", "0.914", "0.8516", "0.517", "0.8516" ], [ "0.08496", "0.855", "0.482", "0.855", "0.482", "0.8687", "0.08496", "0.8687" ], [ "0.517", "0.8516", "0.914", "0.8516", "0.914", "0.866", "0.517", "0.866" ], [ "0.08417", "0.867", "0.4836", "0.8687", "0.4836", "0.8833", "0.08417", "0.882" ], [ "0.5156", "0.8687", "0.5947", "0.8687", "0.5947", "0.88", "0.5156", "0.88" ], [ "0.08496", "0.8833", "0.281", "0.8833", "0.281", "0.8965", "0.08496", "0.8965" ] ]
[ "ChatGPT Perpetuates Gender Bias in Machine Translation and Ignores Non-Gendered Pronouns: Findings across BengaNiESn&2Bjiveugthetr(8eveR2eaaradrhngalagesebec, Canada", "Table 1: Expected English to Bengali translations and vice versa, with explanations", "Englishsentence", "ExpectedBengaliTranslation", "", "Explanation", "可", "Male English pronoun, therefore the unmarked Bengali", "word for 'teacher' () is expected.", "He is a teacher.", "She is a teacher.", "可", "Female English pronoun, therefore the gender-marked", "Bengali word for teacher (ft) is expected.", "They are a teacher", "Gender-neutral English pronoun, therefore the un-", "marked Bengali word for teacher ()is expected.", "“” (nurse),“(engineer), (scientist),“", "4.1 Translating Single-Occupation Prompts", "(chef), ' (nutritionist), (assistant) and \"", "For the first set of our single-occupation prompts, where we pro", "(psychologist).Therefore,wegenerateda setof 64uniqueaction-", "vided ChatGPT with 50 sentences each in the construction'-", "occupation prompts in Bengali. Each prompt is populated with", "", "I (They are a", ")andfilledeachblankinwith", "exactlyoneactioninthefirstblankand exactlyoneoccupationin", "occupations mentioned in List 1. Across a period of 10 days, we", "the second blank. Prompts are depicted in Figure 1.", "observed that 29 occupations (such as doctor, engineer, plumber,", "programmer, carpenter, etc.)were exclusively assigned the pro-", "noun 'He' in translation. The full set of occupations in List 3 (Ap-", "Crkl", "", "", "pendix A), and examples are shown in Figure 2 (Appendix B).", "at r tast", "(nure.)", "Furthermore, ChatGPT exclusively assigned the English pronoun", "'She to prompts containing 11 occupations (e.g. nurse, therapist,", "arushe wrseth", "aoa", "-", "hairdresser, assistant, aide, etc.) on all 10 days of testing. The full", "", "(edlensty", "set of occupations is are captured in List 4 (Appendix A), with few", "", "W", "", "ndgotowak", "examples shown in Figure 3 (Appendix B).", "onenhwtoshan", "aa", "Onlyfor 6 occupations-lawyer, administrator, officer, special-", "", "CTE", "ist,hygienist,andparalegal-didChatGPTassigntheEnglishpro-", "asseaht", "nouns 'He/she' on all days of testing, though it did not use the", "Cpreyto coa)", "pronoun 'They'. A few examples shown in Figure 4 (Appendix B).", "co.ok", "(patea", "Finally,there were 4 occupations -janitor, chef, nutritionist", "and salesperson - for which ChatGPT demonstrated some varia-", "Figure 1: Action-occupation prompts. Each prompt is formed by", "tion in its assignment of pronouns, in the way that it did not con", "combining the contents of leftmost column, one action", "sistently assign the pronoun he' or 'she' across different days of", "from items 1-8, the contents of the third column from the", "testing. An example is shown in Figure 5 (Appendix B). Such vari-", "left, and one occupations from items a-h,in that order.", "ations were only observed within the first 3 days of testing, as re-", "sultsstabilizedstartingday4tothepronounthatwasassignedon", "day 3, and were replicated every day after.", "For ‘They are a [occupation]: prompts, we observed ChatGPT's", "3.5Testing Across Five Other Languages", "complete failure to recognize the English gender-neutral pronoun", "To achieve generalization in our study of potentially biased lan-", "‘theyas singular.In all 50 instances across 10 days,we observed", "guages beyond Bengali, we extended this study to other languages", "ChatGPT translating 'they' to the Bengali collective pronoun 'f-", "that use gender-neutral pronouns. We sought native speakers of", "f', producing grammatically incorrect and incoherent translations.", "such languages from within our networks and identified five lan-", "Thecorrecttranslationsshouldbe//", "guages to study: Farsi, Malay, Tagalog, Thai, and Turkish. These", "Someexamples are shown in Figure7 (Appendix B)", "are all low-resource languages spoken by many millions of peo-", "Finally,we examine ChatGPT's performance in displaying ap-", "ple all over the world, which makes them important to study. We", "propriate markedness of gendered words, using the prompts 'He", "workedwithnativespeakersofeachlanguagetoconstructrespec", "’or'Sheisa", ", and using the words in List 2.We", "tivesetsofsingle-occupationpromptsusingtheoccupationsinList", "isa", "observe that ChatGPT is perfectly able to translate words to their", "1, and corresponding correct English translations. We tested these", "appropriate marked or unmarked versions given the gendered pro-", "following the process outlined in Section 3.3, with the only differ", "nouns (he/she) of the subject, as shown in Figure 6 (Appendix B).", "ence being that these were only tried once as opposed to ten days.", "However, a phenomenon we noticed is that ChatGPT assosciated", "sentences with the female pronoun with the Bengali pronoun 't'", "4 FINDINGS", "whereas it assosciated the male pronoun with the more respect-", "We supplement our findings with screenshots from ChatGPT to", "ful Bengali pronoun fof'. Such a pattern was true for all sets of", "provide direct evidence, but present them in Appendix B for con-", "occupations.", "cision and increased readability." ]
{ "arxiv_id": "2305.10510", "language": "en", "page_idx": 4 }
2003.10983-en-0
2003.10983-en-0.jpg
$\begin{array}{c}{\overset{\circ}{\operatorname*{\operatorname*{\operatorname*{\underset{\overbrace{\Complex}}}}}}\text{Deep Local Shapes: Learning Local SDF Priors}}\\{\overset{\circ}{\operatorname*{\operatorname*{\underset{\frown}}}}}\\{\overset{\circ}{\operatorname*{\operatorname*{\underset{\frown}}}}}\end{array}$ bOD $\sum_{\begin{array}{c}\text{Rohan Chabra}^{1,3,\star},\text{Jan E. Lenssen}^{2,3,\star},\text{Eddy Ilg}^{3},\text{Tanner Schmidt}^{3},\text{Julian}\\\text{Straub}^{3},\text{Steven Lovegrove}^{3},\text{and Richard Newcombe}^{3}\end{array}}$ $ਨ$ $^{1}\underset{2}{\operatorname*{\text{University of North Carolina at Chapel Hill}}}$ $^{2}$TU Dortmund University $^3$ Facebook Reality Labs <FigureHere> CFig. 1: Reconstruction performed by our Deep Local Shapes ( DeepLS) of the Burghers of Calais scene [ 59] . DeepLS represents surface geometry as a sparse set of local latent OI Calais scene [ 99] . DeepLs 1epresents sulace geonrety as a sparse set or ioca latent Codes in a voxel grid, as shown on the right. Each code compresses a local volumetric CDF f $\sum$SDF function, which is reconstructed by an implicit neural network decoder. $答$ Abstract. Efficiently reconstructing complex and intricate surfaces at scale is a long-standing goal in machine perception. To address this problem we introduce Deep Local Shapes (DeepLS), a deep shape representation that enables encoding and reconstruction of high-quality 3D shapes without prohibitive memory requirements. DeepLS replaces the dense volumetric signed distance function (SDF) representation used in traditional surface reconstruction systems with a set of locally learned continuous SDFs defined by a neural network, inspired by recent work such as DeepSDF. Unlike DeepSDF, which represents an object-level SDF with a neural network and a single latent code, we store a grid of independent latent codes, each responsible for storing information about surfaces in a small local neighborhood. This decomposition of scenes into local shapes simplifies the prior distribution that the network must learn, and also enables efficient inference. We demonstrate the effectiveness and generalization power of DeepLS by showing object shape encoding and reconstructions of full scenes, where DeepLS delivers high compression, accuracy, and local shape completion. $^{\star}$ Work performed during an internship at Facebook Reality Labs.
[ [ "0.03262", "0.04306", "0.093", "0.04306", "0.0942", "0.2347", "0.0338", "0.2347" ], [ "0.093", "0.0528", "0.905", "0.0528", "0.905", "0.0739", "0.093", "0.0739" ], [ "0.2319", "0.0837", "0.767", "0.0837", "0.767", "0.10156", "0.2319", "0.10156" ], [ "0.0942", "0.1447", "0.905", "0.1447", "0.905", "0.1649", "0.0942", "0.1649" ], [ "0.215", "0.1665", "0.7803", "0.1649", "0.7803", "0.1827", "0.215", "0.1836" ], [ "0.2693", "0.1965", "0.7246", "0.1982", "0.7246", "0.2194", "0.2693", "0.2169" ], [ "0.03745", "0.2185", "0.087", "0.2185", "0.087", "0.338", "0.03745", "0.338" ], [ "0.3586", "0.2161", "0.6353", "0.2194", "0.6353", "0.238", "0.3586", "0.2347" ], [ "0.3708", "0.2332", "0.6255", "0.2372", "0.6255", "0.2559", "0.3708", "0.2517" ], [ "0.03986", "0.3218", "0.0833", "0.3218", "0.0785", "0.4614", "0.03503", "0.4614" ], [ "0.05435", "0.3364", "0.0604", "0.3364", "0.0604", "0.341", "0.05435", "0.341" ], [ "0.2162", "0.364", "0.2451", "0.364", "0.2451", "0.3728", "0.2162", "0.3728" ], [ "0.0604", "0.454", "0.07007", "0.454", "0.07007", "0.4583", "0.0604", "0.4583" ], [ "0.0459", "0.4768", "0.0761", "0.4768", "0.0761", "0.4946", "0.0459", "0.4946" ], [ "0.0604", "0.4695", "0.07007", "0.4695", "0.07007", "0.4744", "0.0604", "0.4744" ], [ "0.08093", "0.4932", "0.9165", "0.4932", "0.9165", "0.508", "0.08093", "0.508" ], [ "0.08093", "0.5117", "0.9165", "0.5117", "0.9165", "0.5264", "0.08093", "0.5264" ], [ "0.08093", "0.5264", "0.9204", "0.528", "0.9204", "0.545", "0.08093", "0.5444" ], [ "0.0664", "0.5474", "0.8286", "0.5474", "0.8286", "0.562", "0.0664", "0.562" ], [ "0.04108", "0.5645", "0.0773", "0.562", "0.08575", "0.624", "0.04953", "0.6255" ], [ "0.151", "0.6", "0.8477", "0.6", "0.8477", "0.6147", "0.151", "0.6147" ], [ "0.151", "0.618", "0.843", "0.618", "0.843", "0.632", "0.151", "0.632" ], [ "0.1473", "0.6367", "0.8467", "0.6367", "0.8467", "0.6514", "0.1473", "0.6514" ], [ "0.1473", "0.655", "0.849", "0.655", "0.849", "0.6694", "0.1473", "0.6694" ], [ "0.1498", "0.672", "0.8477", "0.672", "0.8477", "0.6846", "0.1498", "0.6846" ], [ "0.1498", "0.6904", "0.8467", "0.6904", "0.8467", "0.7036", "0.1498", "0.7036" ], [ "0.1473", "0.7065", "0.844", "0.7065", "0.844", "0.7207", "0.1473", "0.7207" ], [ "0.1473", "0.7246", "0.849", "0.7246", "0.849", "0.7393", "0.1473", "0.7393" ], [ "0.1473", "0.743", "0.8477", "0.743", "0.8477", "0.758", "0.1473", "0.758" ], [ "0.151", "0.761", "0.8467", "0.761", "0.8467", "0.776", "0.151", "0.776" ], [ "0.1461", "0.7764", "0.8516", "0.7773", "0.8516", "0.7954", "0.1461", "0.7944" ], [ "0.1498", "0.796", "0.8477", "0.796", "0.8477", "0.8105", "0.1498", "0.8105" ], [ "0.1473", "0.8154", "0.8467", "0.8154", "0.8467", "0.8286", "0.1473", "0.8286" ], [ "0.1473", "0.8325", "0.8477", "0.8325", "0.8477", "0.8467", "0.1473", "0.8467" ], [ "0.1473", "0.8506", "0.849", "0.8506", "0.849", "0.865", "0.1473", "0.865" ], [ "0.1473", "0.868", "0.8467", "0.868", "0.8467", "0.883", "0.1473", "0.883" ], [ "0.1498", "0.886", "0.5146", "0.886", "0.5146", "0.8994", "0.1498", "0.8994" ], [ "0.0833", "0.9277", "0.7344", "0.93", "0.7344", "0.9487", "0.0833", "0.9463" ] ]
[ "20", "Deep Local Shapes: Learning Local SDF Priors", "for Detailed 3D Reconstruction", "Rohan Chabra1,3,*, Jan E. Lenssen2,3,*, Eddy Ilg3, Tanner Schmidt3, Julian", "Straub3,StevenLovegrove3,andRichardNewcombe3", "1 University of North Carolina at Chapel Hill", "[A'S]", "2 TU Dortmund University", "3FacebookRealityLabs", "0860", "", "", "", "3", "", "Fig.1:Reconstruction performed by ourDeep Local Shapes (DeepLS) of the Burghers", "of Calais scene [59].DeepLS represents surface geometry as a sparse set of local latent", "codes in a voxel grid, as shown on the right. Each code compresses a local volumetric", "SDFfunction,which isreconstructed byan implicitneural network decoder.", "Xe", "Abstract.Efficiently reconstructing complex and intricate surfaces at", "scaleis along-standing goal in machineperception.Toaddress thisprob", "lem we introduceDeep Local Shapes (DeepLS),a deep shape representa-", "tion that enables encoding and reconstruction of high-quality 3D shapes", "without prohibitive memory reguirements.DeepLS replaces the dense", "volumetric signed distance function (SDF)representation used in tradi-", "tional surface reconstruction svstems with a set of locally learned con", "tinuous SDFs defined by a neural network,inspired byrecentwork such", "as DeepSDF.Unlike DeepSDF,which represents an object-level SDF", "with a neural network and a single latent code, we store a grid of in-", "dependent latent codes, each responsible for storing information about", "surfaces in a small local neighborhood. This decomposition of scenes into", "localshapessimplifiesthepriordistributionthatthenetworkmustlearn.", "and alsoenablesefficient inference.Wedemonstratetheeffectivenessand", "generalization power of DeepLS by showing object shape encoding and", "reconstructions of full scenes, where DeepLS delivers high compression.", "accuracy,andlocalshapecompletion", "* Work performed during an internship at Facebook Reality Labs." ]
{ "arxiv_id": "2003.10983", "language": "en", "page_idx": 0 }
2003.10983-en-1
2003.10983-en-1.jpg
2 Chabra et al. ### 1 Introduction A signed distance function (SDF) represents three-dimensional surfaces as the zero-level set of a continuous scalar field. This representation has been used by many classical methods to represent and optimize geometry based on raw sensor observations [12,31,48,37,38].In a typical use case, an SDF is approximated by storing values on a regularly-spaced voxel grid and computing intermediate values using linear interpolation. Depth observations can then be used to infer these values and a series of such observations are combined to infer the most likely SDF using a process called fusion. Voxelized SDFs have been widely adopted and used successfully in a number of applications, but they have some fundamental limitations. First, the dense voxel representation requires significant amounts of memory (typically on a resource-constrained parallel computing device), which imposes constraints on resolution and the spatial extent that can be represented. These limits on resolution, as well as sensor limitations, typically lead to surface estimates that are missing thin structures and fine surface details. Second, as a non-parametric representation, SDF fusion can only infer surfaces that have been directly observed. Some surfaces are difficult or impossible for a typical range sensor to capture, and observing every surface in a typical environment is a challenging task. As a result, reconstructions produced by SDF fusion are often incomplete. Recently, deep neural networks have been explored as an alternative representation for signed distance functions. According to the universal approximation theorem [26], a neural network can be used to approximate any continuous function, including signed distance functions [34,40,35,10]. With such models, the level of detail that can be represented is limited only by the capacity and architecture of the network. In addition, a neural network can be made to represent not a single surface but a family of surfaces by, for example, conditioning the function on a latent code. Such a network can then be used as a parametric model capable of estimating the most likely surface given only partial noisy observations. Incorporating shape priors in this way allows us to move from the maximum likelihood (ML) estimation of classical reconstruction techniques to potentially more robust reconstruction via maximum a posteriori (MAP) inference. These neural network representations have their own limitations, however. Most of the prior work on learning SDFs is object-centric and does not trivially scale to the detail required for scene-level representations. This is likely due to the global co-dependence of the SDF values at any two locations in space, which are computed using a shared network and a shared parameterization. Furthermore, while the ability of these networks to learn distributions over classes of shapes allows for robust completion of novel instances from known classes, it does not easily generalize to novel classes or objects, which would be necessary for applications in scene reconstruction. In scanned real-world scenes, the diversity of objects and object setups is usually too high to be covered by an object-centric training data distribution.
[ [ "0.0749", "0.01381", "0.10144", "0.01381", "0.10144", "0.03412", "0.0749", "0.03412" ], [ "0.1606", "0.01625", "0.2898", "0.01625", "0.2898", "0.03087", "0.1606", "0.03087" ], [ "0.08093", "0.05685", "0.10266", "0.05685", "0.10266", "0.0715", "0.08093", "0.0715" ], [ "0.1244", "0.05606", "0.309", "0.05606", "0.309", "0.0739", "0.1244", "0.0739" ], [ "0.08215", "0.10724", "0.9165", "0.10724", "0.9165", "0.12427", "0.08215", "0.12427" ], [ "0.08093", "0.1292", "0.9155", "0.1292", "0.9155", "0.143", "0.08093", "0.143" ], [ "0.0773", "0.1454", "0.918", "0.1462", "0.918", "0.1641", "0.0773", "0.1633" ], [ "0.08093", "0.1641", "0.9165", "0.1641", "0.9165", "0.182", "0.08093", "0.182" ], [ "0.08093", "0.1869", "0.9155", "0.1869", "0.9155", "0.2014", "0.08093", "0.2014" ], [ "0.0773", "0.2047", "0.9165", "0.2039", "0.9165", "0.2218", "0.0773", "0.2225" ], [ "0.08093", "0.2258", "0.9155", "0.2258", "0.9155", "0.2405", "0.08093", "0.2405" ], [ "0.0785", "0.2437", "0.5073", "0.2437", "0.5073", "0.2607", "0.0785", "0.2607" ], [ "0.11957", "0.2664", "0.9155", "0.2664", "0.9155", "0.281", "0.11957", "0.281" ], [ "0.08215", "0.286", "0.9165", "0.286", "0.9165", "0.3005", "0.08215", "0.3005" ], [ "0.0785", "0.3037", "0.918", "0.3037", "0.918", "0.3218", "0.0785", "0.3218" ], [ "0.08093", "0.325", "0.918", "0.325", "0.918", "0.3396", "0.08093", "0.3396" ], [ "0.0773", "0.342", "0.9165", "0.341", "0.9165", "0.3591", "0.0773", "0.3599" ], [ "0.0785", "0.3623", "0.9204", "0.3623", "0.9204", "0.3801", "0.0785", "0.3801" ], [ "0.08093", "0.3826", "0.913", "0.3826", "0.913", "0.3972", "0.08093", "0.3972" ], [ "0.08215", "0.4028", "0.913", "0.4028", "0.913", "0.4175", "0.08215", "0.4175" ], [ "0.08093", "0.4224", "0.9155", "0.4224", "0.9155", "0.437", "0.08093", "0.437" ], [ "0.0785", "0.4402", "0.918", "0.4402", "0.918", "0.4583", "0.0785", "0.4583" ], [ "0.08215", "0.4614", "0.8105", "0.4614", "0.8105", "0.476", "0.08215", "0.476" ], [ "0.11835", "0.4824", "0.9116", "0.4824", "0.9116", "0.4963", "0.11835", "0.4963" ], [ "0.08215", "0.502", "0.9155", "0.502", "0.9155", "0.5166", "0.08215", "0.5166" ], [ "0.08215", "0.5215", "0.913", "0.5215", "0.913", "0.536", "0.08215", "0.536" ], [ "0.0773", "0.5396", "0.9165", "0.5376", "0.9165", "0.5557", "0.0773", "0.557" ], [ "0.08093", "0.5596", "0.913", "0.5596", "0.913", "0.574", "0.08093", "0.574" ], [ "0.08093", "0.58", "0.918", "0.58", "0.918", "0.5947", "0.08093", "0.5947" ], [ "0.08093", "0.5996", "0.918", "0.5996", "0.918", "0.6143", "0.08093", "0.6143" ], [ "0.08215", "0.618", "0.9165", "0.618", "0.9165", "0.633", "0.08215", "0.633" ], [ "0.08093", "0.6387", "0.913", "0.6387", "0.913", "0.6523", "0.08093", "0.6523" ], [ "0.0785", "0.657", "0.9204", "0.657", "0.9204", "0.6743", "0.0785", "0.6743" ], [ "0.08093", "0.677", "0.9165", "0.677", "0.9165", "0.6914", "0.08093", "0.6914" ], [ "0.0773", "0.6953", "0.9155", "0.6943", "0.9155", "0.7124", "0.0773", "0.7134" ], [ "0.08093", "0.7183", "0.134", "0.7183", "0.134", "0.7295", "0.08093", "0.7295" ], [ "0.11835", "0.736", "0.913", "0.736", "0.913", "0.7505", "0.11835", "0.7505" ], [ "0.08215", "0.7573", "0.9155", "0.7573", "0.9155", "0.772", "0.08215", "0.772" ], [ "0.08093", "0.776", "0.9165", "0.776", "0.9165", "0.7905", "0.08093", "0.7905" ], [ "0.0773", "0.7935", "0.9204", "0.7944", "0.9204", "0.8125", "0.0773", "0.8105" ], [ "0.08093", "0.8154", "0.9155", "0.8154", "0.9155", "0.8296", "0.08093", "0.8296" ], [ "0.08215", "0.835", "0.9165", "0.835", "0.9165", "0.849", "0.08215", "0.849" ], [ "0.0773", "0.8516", "0.9165", "0.853", "0.9165", "0.87", "0.0773", "0.869" ], [ "0.0785", "0.873", "0.913", "0.873", "0.913", "0.8877", "0.0785", "0.8877" ], [ "0.08093", "0.892", "0.9155", "0.892", "0.9155", "0.9067", "0.08093", "0.9067" ], [ "0.08215", "0.912", "0.918", "0.912", "0.918", "0.927", "0.08215", "0.927" ], [ "0.08093", "0.9316", "0.5083", "0.9316", "0.5083", "0.9463", "0.08093", "0.9463" ] ]
[ "2", "Chabra et al.", "1", "Introduction", "A signed distance function (SDF) represents three-dimensional surfaces as the", "zero-level set of a continuous scalar field. This representation has been used by", "many classical methods to represent and optimize geometry based on raw sensor", "observations[12,31,48,37,38].In a typical use case, an SDF is approximated", "by storing values on a regularly-spaced voxel grid and computing intermediate", "values using linear interpolation. Depth observations can then be used to infer", "these values and a series of such observations are combined to infer the most", "likely SDF using a process called fusion.", "Voxelized SDFs havebeen widely adopted and used successfully in a number", "of applications, but they have some fundamental limitations.First,the dense", "voxel representation requires significant amounts of memory (typically on a", "resource-constrained parallel computing device),which imposes constraints on", "resolution and the spatial extent that can be represented. These limits on reso-", "lution, as well as sensor limitations, typically lead to surface estimates that are", "missing thin structures and fine surface details. Second, as a non-parametric rep-", "resentation, SDF fusion can only infer surfaces that have been directly observed", "Some surfaces are difficult or impossible for a typical range sensor to capture", "and observing every surface in a typical environment is a challenging task. As a", "result,reconstructions produced bySDFfusion are often incomplete.", "Recently,deepneuralnetworkshavebeenexploredasanalternativerepresen", "tation for signed distancefunctions.According tothe universal approximation", "theorem26l,aneural networkcanbeusedtoapproximateanycontinuousfunc-", "tion, including signed distance functions [34,40,35,10]. With such models, the", "level of detail that can berepresented is limited onlybythe capacityand archi-", "tectureof thenetwork.In addition, a neural network can be madeto represent", "not a single surface but a family of surfaces by,for example,conditioning the", "function on a latent code.Such a network can then be used as a parametric", "modelcapableof estimatingthemostlikelysurfacegiven onlypartialnoisyob-", "servations. Incorporating shape priors in this way allows us to move from the", "maximum likelihood (ML) estimation of classical reconstruction techniques to", "potentially more robust reconstruction via maximum a posteriori (MAP) infer", "ence.", "These neural networkrepresentations have their own limitations,however", "Most of the prior workon learning SDFs is object-centric and does not triv-", "ially scaletothe detail required for scene-level representations.This is likelydue", "to theglobal co-dependence of the SDF values at anytwolocations in space,", "which are computed using ashared networkand a shared parameterization.Fur-", "thermore,while the ability of these networks to learn distributions over classes", "of shapes allows forrobust completion of novel instancesfromknownclasses", "it doesnot easilygeneralizetonovel classes or objects,whichwould be neces", "sary for applications in scenereconstruction.In scanned real-world scenes,the", "diversity of objects and object setups is usually too high to be covered by an", "object-centrictrainingdatadistribution." ]
{ "arxiv_id": "2003.10983", "language": "en", "page_idx": 1 }
2003.10983-en-2
2003.10983-en-2.jpg
DeepLS: Learning Local SDF Priors 3 $Contribution.$ In this work, we introduce Deep Local Shapes (DeepLS) to combine the benefits of both worlds, exposing a trade-off between the prior-based MAP inference of memory efficient deep global representations (e.g., DeepSDF), and the detail preservation of computationally efficient, explicit volumetric SDFs. We divide space into a regular grid of voxels, each with a small latent code representing signed distance functions in local coordinate frames and making use of learned local shape priors. These voxels can be larger than is typical in fusion systems without sacrificing on the level of surface detail that can be represented (c.f. Sec. 5.2), increasing memory efficiency. The proposed representation has several favorable properties, which are verified in our evaluations on several types of input data: 1. It relies on readily available local shape patches as training data and gener- alizes to a large variety of shapes, 2. provides significantly finer reconstruction and orders of magnitude faster inference than global, object-centric methods like DeepSDF, and 3. outperforms existing approaches in dense 3D reconstruction from partial ob- servations, showing thin details with significantly better surface completion and high compression. # 2 Related Work The key contribution of this paper is the application of learned local shape priors for reconstruction of 3D surfaces. This section will therefore discuss related work on traditional representations for surface reconstruction, learned shape representations, and local shape priors. 2.1 Traditional Shape Representations Traditionally, scene representation methods can broadly be categorized into two categories, namely local and global approaches. Local approaches. Most implicit surface representations from unorganized point sets are based on Blinn's idea of blending local implicit primitives [6]. Hope et al. [25] explicitly defned implicit surfaces by the tangent of the normals of the input points. Ohtake et al. [39] established more control over the local shape functions using quadratic surface fitting and blended these in a multi-scale partition of unity scheme. Curless and Levoy [12] introduced volumetric integration of scalar approximations of implicit SDFs in regular grids. This technique was further extended into real-time systems [31,48,37,38]. Surfaces are also shown to be represented by surfels, i.e. oriented planar surface patches [41,30,53]. Global approaches. Global implicit function approximation methods aim to approximate single continuous signed distance functions using, for example, kernel-based techniques [8,28,51,17]. Visibility or free space methods estimate which subset of 3D space is occupied, often by subdividing space into distinct tetrahedra [32,27,4]. These methods aim to solve for a globally view consistent surface representation.
[ [ "0.4844", "0.01625", "0.8384", "0.01625", "0.8384", "0.03087", "0.4844", "0.03087" ], [ "0.8975", "0.01381", "0.924", "0.01381", "0.924", "0.0333", "0.8975", "0.0333" ], [ "0.08215", "0.05606", "0.9155", "0.05685", "0.9155", "0.0747", "0.08215", "0.0739" ], [ "0.08215", "0.078", "0.9155", "0.078", "0.9155", "0.0926", "0.08215", "0.0926" ], [ "0.0773", "0.09503", "0.9165", "0.0967", "0.9165", "0.11456", "0.0773", "0.1129" ], [ "0.08093", "0.117", "0.9155", "0.117", "0.9155", "0.1316", "0.08093", "0.1316" ], [ "0.08215", "0.1373", "0.913", "0.1373", "0.913", "0.1519", "0.08215", "0.1519" ], [ "0.08093", "0.1567", "0.9204", "0.156", "0.9204", "0.1705", "0.08093", "0.1714" ], [ "0.08093", "0.1754", "0.9165", "0.1754", "0.9165", "0.1901", "0.08093", "0.1901" ], [ "0.08093", "0.1941", "0.9165", "0.1941", "0.9165", "0.2087", "0.08093", "0.2087" ], [ "0.08093", "0.212", "0.9165", "0.2129", "0.9165", "0.2307", "0.08093", "0.2299" ], [ "0.08093", "0.234", "0.9165", "0.234", "0.9165", "0.2485", "0.08093", "0.2485" ], [ "0.08093", "0.2517", "0.2307", "0.2534", "0.2307", "0.268", "0.08093", "0.2664" ], [ "0.0918", "0.282", "0.9116", "0.282", "0.9116", "0.2964", "0.0918", "0.2964" ], [ "0.11957", "0.2998", "0.4856", "0.3013", "0.4856", "0.3193", "0.11957", "0.3176" ], [ "0.0906", "0.3193", "0.9165", "0.3193", "0.9165", "0.3372", "0.0906", "0.3372" ], [ "0.1208", "0.341", "0.8066", "0.341", "0.8066", "0.3557", "0.1208", "0.3557" ], [ "0.08813", "0.3582", "0.913", "0.3567", "0.913", "0.3745", "0.08813", "0.3752" ], [ "0.11957", "0.3777", "0.9165", "0.3777", "0.9165", "0.3955", "0.11957", "0.3955" ], [ "0.11835", "0.3965", "0.3586", "0.3972", "0.3586", "0.415", "0.11835", "0.4143" ], [ "0.08093", "0.4475", "0.1039", "0.4475", "0.1039", "0.4614", "0.08093", "0.4614" ], [ "0.1244", "0.445", "0.3286", "0.445", "0.3286", "0.4631", "0.1244", "0.4631" ], [ "0.0785", "0.4817", "0.9165", "0.4824", "0.9165", "0.5005", "0.0785", "0.4995" ], [ "0.08093", "0.506", "0.9165", "0.506", "0.9165", "0.5205", "0.08093", "0.5205" ], [ "0.08093", "0.525", "0.9165", "0.525", "0.9165", "0.5396", "0.08093", "0.5396" ], [ "0.08215", "0.5444", "0.495", "0.5444", "0.495", "0.559", "0.08215", "0.559" ], [ "0.08093", "0.589", "0.1473", "0.589", "0.1473", "0.605", "0.08093", "0.605" ], [ "0.1389", "0.591", "0.5654", "0.591", "0.5654", "0.605", "0.1389", "0.605" ], [ "0.08093", "0.619", "0.9165", "0.619", "0.9165", "0.6367", "0.08093", "0.6367" ], [ "0.08093", "0.64", "0.5786", "0.64", "0.5786", "0.655", "0.08093", "0.655" ], [ "0.0773", "0.658", "0.918", "0.657", "0.918", "0.6743", "0.0773", "0.676" ], [ "0.0773", "0.6777", "0.918", "0.677", "0.918", "0.6943", "0.0773", "0.6953" ], [ "0.08093", "0.6987", "0.9204", "0.6987", "0.9204", "0.7134", "0.08093", "0.7134" ], [ "0.0785", "0.715", "0.918", "0.7163", "0.918", "0.7344", "0.0785", "0.733" ], [ "0.08093", "0.737", "0.9116", "0.737", "0.9116", "0.7515", "0.08093", "0.7515" ], [ "0.08093", "0.7573", "0.9155", "0.7573", "0.9155", "0.772", "0.08093", "0.772" ], [ "0.0785", "0.775", "0.918", "0.775", "0.918", "0.792", "0.0785", "0.792" ], [ "0.0785", "0.7944", "0.9204", "0.7944", "0.9204", "0.8125", "0.0785", "0.8125" ], [ "0.0785", "0.814", "0.844", "0.814", "0.844", "0.832", "0.0785", "0.832" ], [ "0.08215", "0.835", "0.9165", "0.835", "0.9165", "0.8496", "0.08215", "0.8496" ], [ "0.08093", "0.8545", "0.9155", "0.8545", "0.9155", "0.869", "0.08093", "0.869" ], [ "0.08093", "0.873", "0.9155", "0.873", "0.9155", "0.8877", "0.08093", "0.8877" ], [ "0.08093", "0.892", "0.9155", "0.892", "0.9155", "0.9067", "0.08093", "0.9067" ], [ "0.08093", "0.912", "0.918", "0.912", "0.918", "0.927", "0.08093", "0.927" ], [ "0.0773", "0.931", "0.3176", "0.9316", "0.3176", "0.9473", "0.0773", "0.9463" ] ]
[ "DeepLS:Learning Local SDFPriors", "3", "Contribution. In this work, we introduce Deep Local Shapes (DeepLS) to com-", "bine the benefits of both worlds, exposing a trade-off between the prior-based", "MAP inference of memory efficient deep global representations (e.g., DeepSDF),", "and the detail preservationof computationally efficient,explicitvolumetricSDFs", "We dividespace into a regular grid of voxels,each with a small latent coderep", "resenting signed distancefunctions in local coordinate frames and making use of", "learned local shape priors. These voxels can be larger than is typical in fusion", "systems without sacrificing on the level of surface detail that can be represented", "(c.f. Sec. 5.2), increasing memory efficiency. The proposed representation has sev-", "eral favorable properties, which are verified in our evaluations on several types", "of input data:", "1.It relies on readily available local shape patches as training data and gener", "alizes toa largevarietyof shapes,", "2. provides significantly finer reconstruction and orders of magnitude faster", "inference thanglobal, object-centricmethods like DeepsDF,and", "3.outperformsexistingapproachesindense3Dreconstructionfrompartialob", "servations, showing thin details with significantly better surface completion", "and high compression.", "2", "Related Work", "The key contribution of this paper is the application of learned local shape", "priors for reconstruction of 3D surfaces.This section will therefore discuss related", "work on traditional representations for surface reconstruction, learned shape", "representations,and local shape priors.", "2.1", "Traditional Shape Representations", "Traditionally, scene representation methods can broadly be categorized into two", "categories, namely local and global approaches.", "Local approaches.Most implicit surface representations from unorganized", "point sets are based on Blinn's idea of blending local implicit primitives [6].Hope", "etal.[25]explicitlydefined implicitsurfaces bythetangentof thenormals of", "the input points. Ohtake et al. [39] established more control over the local shape", "functionsusing quadraticsurface fittingand blended these in amulti-scalepar", "tition of unity scheme.Curless and Levoy[12] introduced volumetric integration", "of scalar approximations of implicit SDFs in regular grids. This technique was", "further extended into real-time systems [31,48,37,38]. Surfaces are also shown to", "be represented by surfels, i.e. oriented planar surface patches [41,30,53].", "Global approaches.Global implicit function approximation methods aim to", "approximate single continuous signed distance functions using,for example", "kernel-based techniques[8,28.51,17l.Visibility orfree spacemethods estimate", "which subset of 3D space is occupied,oftenby subdividing spaceinto distinct", "tetrahedra32,27,4l.These methods aim to solve for agloballyview consistent", "surfacerepresentation." ]
{ "arxiv_id": "2003.10983", "language": "en", "page_idx": 2 }
2003.10983-en-3
2003.10983-en-3.jpg
4 Chabra et al. Our work falls into the local surface representation category. It is related to the partition of unity approach [39],however, instead of using quadratic functions as local shapes, we use data-driven local priors to approximate implicit SDFs which are robust to noise and can locally complete supported surfaces. While we also experimented with partition of unity blending of neighboring local shapes we found it to be not required in practice, since our training formulation already includes border consistency ( c. f. Sec 4. 1) , thus saving function evaluations during decoding. In comparison to volumetric SDF integration methods, such as SDF Fusion [38],our approach provides better shape completion and denoising, while at the same time uses less memory to store the representation. Unlike point- or surfel-based methods, our method leads to smooth and connected surfaces. ## 2.2 Learned Shape Representations Recently there has been lot of work on 3D shape learning using deep neural networks. This class of work can also be classified into four categories: point-based methods, mesh-based methods, voxel-based methods and continuous implicit function-based methods. $\textbf{Points. The methods use generative point cloud models for scene represen- }$ tation [3,57,58]. Typically, a neural network is trained to directly regress 3D coordinates of points in the point cloud. Voxels. These methods provide non-parametric shape representation using 3D voxel grids which store either occupancy [55,11] or SDF information [14,49,33] similarly to the traditional techniques discussed above. These methods thus inherit the limitations of traditional voxel representations with respect to high memory requirements. Octree-based methods [50,43,24] relax the compute and memory limitations of dense voxel methods to some degree and have been shown on voxel resolutions of up to $512^3.$ $\textbf{Meshes. These methods use existing}\left [ 46\right ]$or learned $\left[22,5\right]$parameterization techniques to describe 3D surfaces by morphing 2D planes. When using mesh representations, there is a tradeoff between the ability to support arbitrary topology and the ability to reconstruct smooth and connected surfaces. Works such as [46,5] are variations on deforming a sphere into more complex 3D shape, which produces smooth and connected shapes but limits the topology to shapes that are homeomorphic to the sphere. AtlasNet, on the other hand, warps multiple 2D planes into 3D which together form a shape of arbitrary topology, but this results in disconnected surfaces. Other works, such as Scan2Mesh [13] and Mesh-RCNN[21], use deep networks to predict meshes corresponding to range scans or RGB images, respectively. Implicit Functions. Very recently, there has been significant work on learn- ing continuous implicit functions for shape representations. Occupancy Networks [34] and PiFU [44] represent shapes using continuous indicator functions which specify which subset of 3D space the shapes occupy. Similarly, DeepSDF [40] approximates shapes using Signed Distance Fields. We adopt the DeepSDF model as the backbone architecture for our local shape network
[ [ "0.0761", "0.015434", "0.09906", "0.015434", "0.09906", "0.03087", "0.0761", "0.03087" ], [ "0.1606", "0.01625", "0.2898", "0.01625", "0.2898", "0.03087", "0.1606", "0.03087" ], [ "0.1171", "0.05606", "0.918", "0.05685", "0.918", "0.0747", "0.1171", "0.0739" ], [ "0.08093", "0.078", "0.9204", "0.078", "0.9204", "0.09503", "0.08093", "0.09503" ], [ "0.08093", "0.09827", "0.9155", "0.09827", "0.9155", "0.1129", "0.08093", "0.1129" ], [ "0.08093", "0.117", "0.918", "0.117", "0.918", "0.1316", "0.08093", "0.1316" ], [ "0.0773", "0.134", "0.9165", "0.1356", "0.9165", "0.1536", "0.0773", "0.1519" ], [ "0.08215", "0.1567", "0.9155", "0.1567", "0.9155", "0.1714", "0.08215", "0.1714" ], [ "0.0773", "0.1722", "0.918", "0.1738", "0.918", "0.1909", "0.0773", "0.1901" ], [ "0.08215", "0.1934", "0.913", "0.1934", "0.913", "0.208", "0.08215", "0.208" ], [ "0.08093", "0.2129", "0.918", "0.2129", "0.918", "0.2307", "0.08093", "0.2307" ], [ "0.08093", "0.234", "0.913", "0.234", "0.913", "0.2485", "0.08093", "0.2485" ], [ "0.0785", "0.2527", "0.8696", "0.2534", "0.8696", "0.268", "0.0785", "0.2673" ], [ "0.08093", "0.3054", "0.5254", "0.3054", "0.5254", "0.32", "0.08093", "0.32" ], [ "0.08093", "0.3435", "0.913", "0.3435", "0.913", "0.3606", "0.08093", "0.3606" ], [ "0.0785", "0.363", "0.918", "0.363", "0.918", "0.381", "0.0785", "0.381" ], [ "0.08093", "0.3826", "0.913", "0.3826", "0.913", "0.3972", "0.08093", "0.3972" ], [ "0.08093", "0.4014", "0.337", "0.4028", "0.337", "0.4175", "0.08093", "0.416" ], [ "0.1171", "0.4233", "0.9106", "0.4233", "0.9106", "0.4377", "0.1171", "0.4377" ], [ "0.08093", "0.4436", "0.913", "0.4436", "0.913", "0.4583", "0.08093", "0.4583" ], [ "0.08093", "0.4622", "0.506", "0.4622", "0.506", "0.4768", "0.08093", "0.4768" ], [ "0.1171", "0.481", "0.9204", "0.4817", "0.9204", "0.4995", "0.1171", "0.4988" ], [ "0.0785", "0.4995", "0.9204", "0.5005", "0.9204", "0.518", "0.0785", "0.5176" ], [ "0.08093", "0.5215", "0.9155", "0.5215", "0.9155", "0.536", "0.08093", "0.536" ], [ "0.08093", "0.541", "0.9155", "0.541", "0.9155", "0.5557", "0.08093", "0.5557" ], [ "0.0773", "0.559", "0.918", "0.558", "0.918", "0.576", "0.0773", "0.5767" ], [ "0.0785", "0.5786", "0.9204", "0.5786", "0.9204", "0.596", "0.0785", "0.596" ], [ "0.0773", "0.596", "0.4421", "0.5947", "0.4421", "0.6147", "0.0773", "0.617" ], [ "0.1171", "0.619", "0.9155", "0.619", "0.9155", "0.634", "0.1171", "0.634" ], [ "0.08215", "0.639", "0.9165", "0.639", "0.9165", "0.654", "0.08215", "0.654" ], [ "0.0785", "0.657", "0.9165", "0.657", "0.9165", "0.6743", "0.0785", "0.6743" ], [ "0.0785", "0.677", "0.918", "0.676", "0.918", "0.694", "0.0785", "0.6943" ], [ "0.0785", "0.6953", "0.9155", "0.6953", "0.9155", "0.7134", "0.0785", "0.7134" ], [ "0.08215", "0.7163", "0.9155", "0.7163", "0.9155", "0.731", "0.08215", "0.731" ], [ "0.08093", "0.737", "0.913", "0.737", "0.913", "0.7505", "0.08093", "0.7505" ], [ "0.0773", "0.754", "0.9165", "0.755", "0.9165", "0.7725", "0.0773", "0.772" ], [ "0.08093", "0.776", "0.9155", "0.776", "0.9155", "0.7905", "0.08093", "0.7905" ], [ "0.0773", "0.792", "0.9165", "0.7944", "0.9165", "0.8125", "0.0773", "0.81" ], [ "0.0785", "0.814", "0.448", "0.814", "0.448", "0.8286", "0.0785", "0.8286" ], [ "0.11835", "0.8345", "0.9106", "0.8345", "0.9106", "0.849", "0.11835", "0.849" ], [ "0.0773", "0.8516", "0.9155", "0.853", "0.9155", "0.87", "0.0773", "0.869" ], [ "0.0773", "0.87", "0.9165", "0.8716", "0.9165", "0.8896", "0.0773", "0.8877" ], [ "0.08093", "0.892", "0.9155", "0.892", "0.9155", "0.9067", "0.08093", "0.9067" ], [ "0.08093", "0.9116", "0.9204", "0.9116", "0.9204", "0.9287", "0.08093", "0.9287" ], [ "0.08093", "0.9316", "0.8647", "0.9316", "0.8647", "0.9463", "0.08093", "0.9463" ] ]
[ "4", "Chabra et al.", "Our work falls into the local surface representation category. It is related to", "the partition of unity approach [39], however, instead of using quadratic functions", "as local shapes, we use data-driven local priors to approximate implicit SDFs", "which are robust to noise and can locally complete supported surfaces. While we", "also experimented with partition of unity blending of neighboring local shapes", "we found it to be not required in practice, since our trainingformulation already", "includes border consistency (c.f. Sec 4.1), thus saving function evaluations during", "decoding. In comparison to volumetric SDF integration methods, such as SDF", "Fusion [38], our approach provides better shape completion and denoising, while", "at the same time uses less memory to store the representation. Unlike point- or", "surfel-based methods, our method leads to smooth and connected surfaces.", "2.2LearnedShapeRepresentations", "Recently there has been lot of work on 3D shape learning using deep neural net-", "works. This class of work can also be classified into four categories: point-based", "methods, mesh-based methods. voxel-based methods and continuous implicit", "function-basedmethods.", "Points.The methods use generative point cloud modelsfor scene represen", "tation3,57,58.Typically,a neural network istrained todirectly regress 3L", "coordinates of points in the point cloud.", "Voxels. These methods provide non-parametric shape representation using", "3D voxelgrids which storeeitheroccupancy[55,11]or SDF information [14,49,33],", "similarly to the traditional techniques discussed above.These methods thus in-", "herit the limitations of traditional voxel representations with respect to high", "memory requirements. Octree-based methods [50,43,24] relax the compute and", "memory limitations of dense voxel methods to some degree and have been shown", "on voxel resolutions of up to 5123.", "Meshes.These methods use existing J46] or learned [22,5l parameterization", "techniques to describe 3D surfacesbymorphing2Dplanes.When using mesh", "representations, there is a tradeoff between the ability to support arbitrary topol-", "ogy and the ability to reconstruct smooth and connected surfaces. Works such", "as [46,5] are variations on deforming a sphere into more complex 3D shape,", "whichproduces smoothand connected shapesbut limitsthetopologyto shapes", "that arehomeomorphic tothe sphere.AtlasNet,on the otherhand,warps mul", "tiple 2D planes into 3D which together form a shape of arbitrary topology, but", "this results in disconnected surfaces.Other works,such as Scan2MeshJ13land", "Mesh-RCNN[21], use deep networks to predict meshes corresponding to range", "scans or RGB images,respectively.", "ImplicitFunctions.Veryrecently,therehasbeen significant work onlearn", "ing continuous implicit functions for shape representations. Occupancy Net-", "works [34] and PiFU [44] represent shapes using continuous indicator func-", "tions which specifywhich subset of 3D space the shapes occupy.Similarly", "DeepSDF [40] approximates shapes using Signed Distance Fields. We adopt the", "DeepsDF model as thebackbonearchitecturefor our local shapenetwork." ]
{ "arxiv_id": "2003.10983", "language": "en", "page_idx": 3 }
2003.10983-en-4
2003.10983-en-4.jpg
DeepLS: Learning Local SDF Priors 5 Much of the work in this area has focused on learning object-level representations. This is especially useful when given partial observations of a known class, as the learned priors can often complete the shape with surprising accuracy. However, this also introduces two key difficulties. First, the object-level context means that generalization will be limited by the extent of the training set - objects outside of the training distribution may not be well reconstructed. Second, object-level methods do not trivially scale to full scenes composed of many objects as well as surfaces (e.g. walls and floors). In contrast, DeepLS maintains separate representations for small, distinct regions of space, which allows it to scale easily. Furthermore, the local representation makes it easier to compile a representative training set; at a small enough scale most surfaces have similar structure. ## 2.3 Local Shape Priors In early work on using local shape priors, Gal et al.[18] used a database of local surface patches to match partial shape observations. However, the ability to match general observations was limited by the size of the database as the patches could not be interpolated. Ricao et al. [42] used both PCA and a learned autoencoder to map SDF subvolumes to lower-dimensional representations, approaching local shape priors from the perspective of compression. With this approach the SDF must be computed by fusion first, which serves as an information bottleneck limiting the ability to develop priors over fine-grained structures. In another work, Xu et al. [56] developed an object-level learned shape representation using a network that maps from images to SDFs .This representation is conditioned on and therefore not independent of the observed image. Williams et al. [54] showed recently that a deep network can be used to fit a representation of a surface by training and evaluating on the same point cloud, using a local chart for each point which is then combined to form a surface atlas. Their results are on complete point clouds in which the task is simply to densify and denoise, whereas we also show that our priors can locally complete surfaces that were not observed. Other work on object-level shape representation has explored representations in which shapes are composed of smaller parts. Structured implicit functions used anisotropic Gaussian kernels to compose global implicit shape representations [20]. Similarly, CvxNets compose shapes using a collection of convex subshapes [15]. Like ours, both of these methods show the promise of compositional shape modelling, but surface detail was limited by the models used. Last, concurrent work of Genova et al. [19] combines a set of irregularly positioned implicit functions to improve details in full object reconstruction. # 3 Review of DeepSDF We will briefly review DeepSDF [40]. Let $f_\theta(\mathbf{x},\mathbf{z})$ be a signed surface distance function modeled as a fully-connected neural network with trainable parameters
[ [ "0.482", "0.015434", "0.837", "0.015434", "0.837", "0.03006", "0.482", "0.03006" ], [ "0.9", "0.01625", "0.9214", "0.01625", "0.9214", "0.03168", "0.9", "0.03168" ], [ "0.11475", "0.05606", "0.913", "0.05685", "0.913", "0.0747", "0.11475", "0.0739" ], [ "0.08215", "0.0788", "0.9155", "0.0788", "0.9155", "0.09344", "0.08215", "0.09344" ], [ "0.08093", "0.09827", "0.9155", "0.09827", "0.9155", "0.1129", "0.08093", "0.1129" ], [ "0.08215", "0.117", "0.9165", "0.117", "0.9165", "0.1316", "0.08215", "0.1316" ], [ "0.08093", "0.1373", "0.9023", "0.1373", "0.9023", "0.1519", "0.08093", "0.1519" ], [ "0.08215", "0.156", "0.913", "0.156", "0.913", "0.1705", "0.08215", "0.1705" ], [ "0.0773", "0.1722", "0.9165", "0.1738", "0.9165", "0.1909", "0.0773", "0.1901" ], [ "0.0785", "0.1934", "0.918", "0.1925", "0.918", "0.2104", "0.0785", "0.2112" ], [ "0.0785", "0.2129", "0.9204", "0.2129", "0.9204", "0.2307", "0.0785", "0.2307" ], [ "0.08093", "0.234", "0.918", "0.234", "0.918", "0.2485", "0.08093", "0.2485" ], [ "0.08093", "0.2534", "0.9155", "0.2534", "0.9155", "0.268", "0.08093", "0.268" ], [ "0.0785", "0.2737", "0.1848", "0.2737", "0.1848", "0.2883", "0.0785", "0.2883" ], [ "0.0773", "0.3232", "0.3755", "0.3232", "0.3755", "0.341", "0.0773", "0.341" ], [ "0.08093", "0.364", "0.918", "0.364", "0.918", "0.3787", "0.08093", "0.3787" ], [ "0.08093", "0.3843", "0.913", "0.3843", "0.913", "0.399", "0.08093", "0.399" ], [ "0.08093", "0.4038", "0.918", "0.4038", "0.918", "0.4185", "0.08093", "0.4185" ], [ "0.08093", "0.4224", "0.918", "0.4224", "0.918", "0.437", "0.08093", "0.437" ], [ "0.0785", "0.4402", "0.9165", "0.4402", "0.9165", "0.4583", "0.0785", "0.4583" ], [ "0.0773", "0.4597", "0.9165", "0.459", "0.9165", "0.4768", "0.0773", "0.4775" ], [ "0.0785", "0.4785", "0.918", "0.4785", "0.918", "0.4963", "0.0785", "0.4963" ], [ "0.0773", "0.497", "0.918", "0.4988", "0.918", "0.5166", "0.0773", "0.515" ], [ "0.08093", "0.519", "0.9165", "0.519", "0.9165", "0.5337", "0.08093", "0.5337" ], [ "0.08093", "0.5396", "0.9155", "0.5396", "0.9155", "0.554", "0.08093", "0.554" ], [ "0.08093", "0.559", "0.9165", "0.559", "0.9165", "0.5737", "0.08093", "0.5737" ], [ "0.0761", "0.5767", "0.9165", "0.576", "0.9165", "0.593", "0.0761", "0.5947" ], [ "0.08093", "0.5977", "0.9155", "0.5977", "0.9155", "0.612", "0.08093", "0.612" ], [ "0.08093", "0.617", "0.9155", "0.617", "0.9155", "0.632", "0.08093", "0.632" ], [ "0.08093", "0.636", "0.913", "0.636", "0.913", "0.651", "0.08093", "0.651" ], [ "0.08215", "0.656", "0.9165", "0.656", "0.9165", "0.6704", "0.08215", "0.6704" ], [ "0.0773", "0.673", "0.9155", "0.6733", "0.9155", "0.6914", "0.0773", "0.6904" ], [ "0.08093", "0.6943", "0.9155", "0.6943", "0.9155", "0.709", "0.08093", "0.709" ], [ "0.0773", "0.711", "0.9165", "0.7124", "0.9165", "0.7295", "0.0773", "0.7285" ], [ "0.0785", "0.732", "0.9165", "0.732", "0.9165", "0.75", "0.0785", "0.75" ], [ "0.08093", "0.753", "0.918", "0.753", "0.918", "0.7676", "0.08093", "0.7676" ], [ "0.08093", "0.7725", "0.9165", "0.7725", "0.9165", "0.787", "0.08093", "0.787" ], [ "0.08093", "0.792", "0.913", "0.792", "0.913", "0.8066", "0.08093", "0.8066" ], [ "0.0773", "0.81", "0.886", "0.81", "0.886", "0.8276", "0.0773", "0.8276" ], [ "0.0785", "0.865", "0.4167", "0.865", "0.4167", "0.883", "0.0785", "0.883" ], [ "0.08215", "0.9097", "0.9155", "0.9097", "0.9155", "0.9277", "0.08215", "0.9277" ], [ "0.08093", "0.9316", "0.9165", "0.9316", "0.9165", "0.9463", "0.08093", "0.9463" ] ]
[ "DeepLS:LearningLocalSDFPriors", "5", "Much of the work in this area has focused on learning object-level representa", "tions. This is especially useful when given partial observations of a known class.", "as the learned priors can often complete the shape with surprising accuracy.", "However, this also introduces two key difficulties.First, the object-level context", "means that generalization will be limited by the extent of the training set", "objects outside of the training distribution may not be well reconstructed.Sec-", "ond, object-level methods do not trivially scale to full scenes composed of many", "objects as well as surfaces (e.g. walls and floors). In contrast, DeepLS maintains", "separate representations for small, distinct regions of space, which allows it to", "scale easily. Furthermore, the local representation makes it easier to compile a", "representative training set: at a small enough scale most surfaces have similar", "structure.", "2.3Local Shape Priors", "In early work on using local shape priors, Gal et al. [18l used a database of", "local surface patches to match partial shape observations.However, the abil-", "ity to match general observations was limited by the size of the database as", "the patches could not be interpolated.Ricao et al.42used both PCA and a", "learned autoencoder to map SDF subvolumes to lower-dimensional representa-", "tions, approaching local shape priors from the perspective of compression. With", "this approach the SDF must be computed by fusion first, which serves as an", "information bottleneck limiting the ability to develop priors over fine-grained", "structures. In another work, Xu et al.[56l developed an object-level learned", "shape representation using a network that maps from images to SDFs. This", "representation is conditioned on and therefore not independent of the observed", "image. Williams et al. [54] showed recently that a deep network can be used to fit", "a representation of a surface by training and evaluating on the same point cloud.", "using a local chart for each point which is then combined to form a surface atlas.", "Their results are on complete point clouds in which the task is simply to densify", "and denoise, whereas we also show that our priors can locally complete surfaces", "that were not observed. Other work on object-level shape representation has ex-", "plored representations in which shapes are composed of smaller parts.Structured", "implicit functions used anisotropic Gaussian kernels to compose global implicit", "shape representations [20]. Similarly, CvxNets compose shapes using a collection", "of convex subshapes 15].Like ours, both of these methods show the promise of", "compositional shape modelling, but surface detail was limited by the models", "used.Last,concurrent work of Genova et al.19combines a set of irregularly", "positioned implicit functions to improve details in full object reconstruction.", "3ReviewofDeepSDF", "We will briefly review DeepSDF [4o].Let fe(x,z) be a signed surface distance", "functionmodeled asafully-connected neural networkwithtrainableparameters" ]
{ "arxiv_id": "2003.10983", "language": "en", "page_idx": 4 }
2310.01714-en-0
2310.01714-en-0.jpg
Published as a conference paper at ICLR 2024 LARGE LANGUAGE MODELS AS ANALOGICAL REASONERS Michihiro Yasunaga,$^{1,2}$ Xinyun Chen,$^{1}$ Yujia Li,$^{1}$ Panupong Pasupat,$^{1}$ Jure Leskovec,$^{2}$ $\textbf{Percy Liang, }^2$ $\textbf{Ed H. Chi, }^1$ $\textbf{Denny Zhou}^1$ $^{1}$Google DeepMind$^2$Stanford University myasu@cs.stanford.edu, $\{$xinyunchen,dennyzhou$\}$@google.com ### ABSTRACT Chain-of-thought (CoT) prompting for language models demonstrates impressive performance across reasoning tasks, but typically needs labeled exemplars of the reasoning process. In this work, we introduce a new prompting approach, analogical prompting, designed to automatically guide the reasoning process of large language models. Inspired by analogical reasoning, a cognitive process in which humans draw from relevant past experiences to tackle new problems, our approach prompts language models to self-generate relevant exemplars or knowledge in the context, before proceeding to solve the given problem. This method presents several advantages: it obviates the need for labeling or retrieving exemplars, offering generality and convenience; it can also tailor the generated exemplars and knowledge to each problem, offering adaptability. Experimental results show that our approach outperforms 0-shot CoT and manual fewshot CoT in a variety of reasoning tasks, including math problem solving in GSM8K and MATH, code generation in Codeforces, and other reasoning tasks in BIG-Bench. ### 1 INTRODUCTION Large language models (LLMs) demonstrate strong performance across various tasks (Brown et al, 2020; Chowdhery et al., 2022; Liang et al., 2022; Qin et al., 2023). Recently, chain-of-thought (CoT) prompting has demonstrated LLMs’ abilities to tackle complex tasks, such as solving math problems, by prompting them to generate intermediate reasoning steps (Wei et al., 2022b; Kojima et al., 2022). For instance, common methods like few-shot CoT (Wei et al. 2022b; Figure 1,middle) make LLMs generate reasoning steps by offering a few exemplars of question-rationale-answer triplets; 0-shot CoT (Kojima et al. 2022; Figure 1, left) aims for the same objective by offering instructions like “think step by step.”These studies highlight the importance of devising effective methods to guide LLMs to reason. However, the existing CoT paradigm faces two key challenges: providing relevant guidance or exemplars of reasoning, and minimizing the need for manual $labeling.$ Specifically, 0-shot CoT offers generic reasoning guidance, which may not suffice for complex tasks like code generation (§6). Few-shot CoT provides more detailed guidance but demands labeled exemplars of the reasoning process, which can be costly to obtain for every task. This raises a research question: can we achieve the best of both worlds and automate the generation of relevant exemplars to guide LLMs' reasoning process? In this work, we propose analogical prompting, a new prompting approach that automatically guides the reasoning process of LLMs. Our inspiration comes from analogical reasoning in psychology, a concept where humans draw from relevant past experiences to tackle new problems (Vosniadou&Ortony, 1989). For instance, when faced with a new math problem (e.g., finding the area of a square given four points in a coordinate system; Figure 1), humans often think about“do I know a related problem?”(Polya, 2004) and recall how they solved related problems in the past (e.g., finding the area of a square with a known side length) to derive insights for solving the new problem. They also recall high-level knowledge, such as the need to find the side length to calculate a square's area. Our idea is to prompt LLMs to mimic this reasoning process to effectively solve new problems. Concretely, given a problem to solve, we prompt LLMs to self-generate relevant exemplars in the context, using instructions like“# Recall relevant problems and solutions:...",and then proceed to solve the original problem (Figure 1,2). Simultaneously, we can also prompt LLMs to generate high-level knowledge that complements specific exemplars, using instructions like“# Provide a tutorial:...' (Figure 3). This proves particularly useful for complex tasks like code generation (see §6). Notably, our method can operate in a single prompt, generating knowledge, exemplars, and a solution to the initial 1
[ [ "0.1748", "0.03284", "0.464", "0.03284", "0.464", "0.04736", "0.1748", "0.04736" ], [ "0.1772", "0.1029", "0.851", "0.1029", "0.851", "0.11743", "0.1772", "0.11743" ], [ "0.1871", "0.1427", "0.789", "0.1433", "0.789", "0.161", "0.1871", "0.1604" ], [ "0.1871", "0.1604", "0.4714", "0.159", "0.4714", "0.1736", "0.1871", "0.1749" ], [ "0.357", "0.1755", "0.6274", "0.178", "0.6274", "0.1925", "0.357", "0.1901" ], [ "0.2998", "0.1932", "0.694", "0.1932", "0.694", "0.207", "0.2998", "0.207" ], [ "0.455", "0.2329", "0.546", "0.2329", "0.546", "0.2474", "0.455", "0.2474" ], [ "0.2345", "0.2583", "0.7656", "0.2583", "0.7656", "0.2727", "0.2345", "0.2727" ], [ "0.02287", "0.2664", "0.05963", "0.2664", "0.05963", "0.4028", "0.02287", "0.4028" ], [ "0.2336", "0.2727", "0.7656", "0.2727", "0.7656", "0.286", "0.2336", "0.286" ], [ "0.2345", "0.2874", "0.7656", "0.2874", "0.7656", "0.3005", "0.2345", "0.3005" ], [ "0.2345", "0.3005", "0.7656", "0.3005", "0.7656", "0.3145", "0.2345", "0.3145" ], [ "0.2345", "0.3145", "0.7646", "0.3145", "0.7646", "0.3276", "0.2345", "0.3276" ], [ "0.2336", "0.3276", "0.7656", "0.3276", "0.7656", "0.3416", "0.2336", "0.3416" ], [ "0.2345", "0.3416", "0.767", "0.3416", "0.767", "0.3547", "0.2345", "0.3547" ], [ "0.2345", "0.356", "0.7656", "0.356", "0.7656", "0.3694", "0.2345", "0.3694" ], [ "0.2361", "0.3706", "0.7646", "0.3706", "0.7646", "0.3806", "0.2361", "0.3806" ], [ "0.2345", "0.3818", "0.7656", "0.3818", "0.7656", "0.3958", "0.2345", "0.3958" ], [ "0.02287", "0.3958", "0.05637", "0.3958", "0.05963", "0.4849", "0.02533", "0.4849" ], [ "0.2336", "0.3977", "0.7646", "0.3977", "0.7646", "0.411", "0.2336", "0.411" ], [ "0.2345", "0.411", "0.7656", "0.411", "0.7656", "0.4248", "0.2345", "0.4248" ], [ "0.2336", "0.4248", "0.7607", "0.4248", "0.7607", "0.4382", "0.2336", "0.4382" ], [ "0.1772", "0.4717", "0.1847", "0.4717", "0.1847", "0.4778", "0.1772", "0.4778" ], [ "0.1978", "0.4685", "0.3308", "0.4685", "0.3308", "0.4817", "0.1978", "0.4817" ], [ "0.02287", "0.486", "0.05963", "0.486", "0.05963", "0.7056", "0.02287", "0.7056" ], [ "0.1732", "0.5", "0.824", "0.5", "0.824", "0.5146", "0.1732", "0.5146" ], [ "0.1732", "0.5146", "0.822", "0.5146", "0.822", "0.528", "0.1732", "0.528" ], [ "0.1748", "0.529", "0.822", "0.529", "0.822", "0.5425", "0.1748", "0.5425" ], [ "0.1732", "0.5425", "0.826", "0.5425", "0.826", "0.556", "0.1732", "0.556" ], [ "0.1732", "0.5547", "0.824", "0.556", "0.824", "0.571", "0.1732", "0.5693" ], [ "0.1748", "0.5693", "0.826", "0.5693", "0.826", "0.5835", "0.1748", "0.5835" ], [ "0.1748", "0.584", "0.824", "0.584", "0.824", "0.5977", "0.1748", "0.5977" ], [ "0.1732", "0.5967", "0.671", "0.5967", "0.671", "0.61", "0.1732", "0.61" ], [ "0.1748", "0.6187", "0.8228", "0.6187", "0.8228", "0.632", "0.1748", "0.632" ], [ "0.1748", "0.6333", "0.8228", "0.6333", "0.8228", "0.6465", "0.1748", "0.6465" ], [ "0.1748", "0.6465", "0.824", "0.6465", "0.824", "0.66", "0.1748", "0.66" ], [ "0.1748", "0.66", "0.8228", "0.66", "0.8228", "0.674", "0.1748", "0.674" ], [ "0.1748", "0.675", "0.8228", "0.675", "0.8228", "0.688", "0.1748", "0.688" ], [ "0.1748", "0.688", "0.71", "0.688", "0.71", "0.7026", "0.1748", "0.7026" ], [ "0.1748", "0.709", "0.8228", "0.709", "0.8228", "0.7236", "0.1748", "0.7236" ], [ "0.1732", "0.7227", "0.8228", "0.7227", "0.8228", "0.7363", "0.1732", "0.7363" ], [ "0.1748", "0.7373", "0.824", "0.7373", "0.824", "0.7505", "0.1748", "0.7505" ], [ "0.1748", "0.752", "0.8228", "0.752", "0.8228", "0.765", "0.1748", "0.765" ], [ "0.1732", "0.765", "0.824", "0.765", "0.824", "0.779", "0.1732", "0.779" ], [ "0.1748", "0.779", "0.822", "0.78", "0.822", "0.7915", "0.1748", "0.7905" ], [ "0.1748", "0.7925", "0.8228", "0.7925", "0.8228", "0.806", "0.1748", "0.806" ], [ "0.1748", "0.806", "0.824", "0.806", "0.824", "0.8193", "0.1748", "0.8193" ], [ "0.1732", "0.821", "0.5034", "0.8193", "0.5034", "0.834", "0.1732", "0.8354" ], [ "0.1748", "0.8403", "0.826", "0.8403", "0.826", "0.855", "0.1748", "0.855" ], [ "0.1732", "0.855", "0.6665", "0.855", "0.6665", "0.8687", "0.1732", "0.8687" ], [ "0.6807", "0.856", "0.826", "0.856", "0.826", "0.869", "0.6807", "0.869" ], [ "0.1748", "0.869", "0.824", "0.869", "0.824", "0.8833", "0.1748", "0.8833" ], [ "0.1748", "0.8833", "0.814", "0.8833", "0.814", "0.8965", "0.1748", "0.8965" ], [ "0.1732", "0.898", "0.8228", "0.898", "0.8228", "0.911", "0.1732", "0.911" ], [ "0.1748", "0.911", "0.824", "0.911", "0.824", "0.925", "0.1748", "0.925" ], [ "0.4944", "0.9507", "0.505", "0.9507", "0.505", "0.9604", "0.4944", "0.9604" ] ]
[ "Published as a conference paper at ICLR 2024", "LARGE LANGUAGE MODELS AS ANALOGICAL REASONERS", "Michihiro Yasunaga,,2 Xinyun Chen, Yujia Li, Panupong Pasupat, Jure Leskovec,?", "Percy Liang,2 Ed H. Chi,I Denny Zhoul", "1GoogleDeepMind2Stanford University", "myasu@cs.stanford.edu, (xinyunchen,dennyzhou)@google.com", "ABSTRACT", "Chain-of-thought (CoT) prompting for language models demonstrates impressive", "", "performance across reasoning tasks, but typically needs labeled exemplars of the", "reasoning process. In this work, we introduce a new prompting approach, analogical", "prompting, designed to automatically guide the reasoning process of large language", "models. Inspired by analogical reasoning, a cognitive process in which humans draw", "from relevant past experiences to tackle new problems, our approach prompts language", "models to self-generate relevant exemplars or knowledge in the context, before proceed-", "ing to solve the given problem. This method presents several advantages: it obviates the", "needforlabelingorretrievingexemplars.offeringgeneralityandconvenience:itcan", "also tailor the generated exemplars and knowledge to each problem, offering adaptability", "[DT'S]", "Experimental results show that our approach outperforms O-shot CoT and manual few", "shot CoT in a variety of reasoning tasks, including math problem solving in GSM8K", "and MATH, code generation in Codeforces, and other reasoning tasks in BIG-Bench.", "1", "INTRODUCTION", "C", "Large language models (LLMs) demonstrate strong performance across various tasks (Brown et al., 2020;", "Chowdhery et al., 2022; Liang et al., 2022; Qin et al., 2023). Recently, chain-of-thought (CoT) prompting", "has demonstrated LLMs' abilities to tackle complex tasks, such as solving math problems, by prompting", "them to generate intermediate reasoning steps (Wei et al., 2022b; Kojima et al., 2022). For instance,", "common methods like few-shot CoT (Wei et al. 2022b; Figure 1, middle) make LLMs generate reasoning", "steps by offering a few exemplars of question-rationale-answer triplets: 0-shot CoT (Kojima et al. 2022;", "Figure 1, left) aims for the same objective by offering instructions like “\"think step by step.\" These studies", "highlight the importance of devising effective methods to guide LLMs to reason", "However, the existing CoT paradigm faces two key challenges: providing relevant guidance or exemplars", "of reasoning, and minimizing the need for manual labeling. Specifically, O-shot CoT offers generic", "reasoning guidance, which may not suffice for complex tasks like code generation (s6). Few-shot CoT", "provides more detailed guidance but demands labeled exemplars of the reasoning process, which can be", "costly to obtain for every task. This raises a research question: can we achieve the best of both worlds", "and automate the generation of relevant exemplars to guide LLMs' reasoning process?", "In this work, we propose analogical prompting, a new prompting approach that automatically guides", "the reasoning process of LLMs. Our inspiration comes from analogical reasoning in psychology, a concept", "where humans draw from relevant past experiences to tackle new problems (Vosniadou & Ortony, 1989)", "For instance, when faced with a new math problem (e.g., finding the area of a square given four points", "in a coordinate system; Figure 1), humans often think about do I know a related problem?\" (Polya, 2004)", "andrecallhowtheysolvedrelatedproblemsinthepast (e.g.,findingtheareaof asquarewithaknown", "side length) to derive insights for solving the new problem. They also recall high-level knowledge, such", "as the need to find the side length to calculate a square's area. Our idea is to prompt LLMs to mimic this", "reasoning process to effectively solve new problems.", "Concretely, given a problem to solve, we prompt LLMs to self-generate relevant exemplars in the context,", "using instructions like“# Recall relevant problems and solutions:.", "\", and then proceed to", "solve the original problem (Figure 1, 2). Simultaneously, we can also prompt LLMs to generate high-level", "knowledge that complements specific exemplars, using instructions like “# Provide a tutorial: ..", "(Figure 3). This proves particularly useful for complex tasks like code generation (see s6). Notably, our", "method can operate in a single prompt, generating knowledge, exemplars, and a solution to the initial", "1" ]
{ "arxiv_id": "2310.01714", "language": "en", "page_idx": 0 }
2310.01714-en-1
2310.01714-en-1.jpg
Published as a conference paper at ICLR 2024 <FigureHere> $\bullet$ Exemplars are automatically generated and tailored to each problem Figure 1: Overview of our approach, analogical prompting. $Left:$ Existing methods for prompting LLM to reason are either generic (0-shot CoT) or demand labeled exemplars (few-shot CoT). Right: Given a problem, our method prompts LLMs to self-generate relevant exemplars before solving the problem. This eliminates the need for labeling and also tailors the exemplars to each individual problem. See Figure 3 for a sample prompt where the LLM self-generates both knowledge and exemplars. problem end-to-end in one pass. The underlying idea here is that modern LLMs have already acquired knowledge of various problems during training. Explicitly prompting them to recall relevant problems and solutions in the context guides LLMs to perform in-context learning to solve new problems. Our proposed approach offers several advantages. It self-generates exemplars and obviates the need for manually labeling reasoning exemplars for each task, addressing the challenges faced by 0-shot and few-shot CoT. Furthermore, the self-generated exemplars are tailored to individual problems, such as 'geometry’ or ' probability' , rather than generic` math problems' . This can simplify the complexity associated with recent ' probability' , rather than generic ' math problems' . This can simplify the complexity associated with recent Croder thar generic CoT techniques that retrieve relevant exemplars from external data (Zhang et al., 2022b; Shum et al., 2023). We evaluate the proposed approach in various reasoning-intensive tasks, including mathematical problem solving in GSM8K (Cobbe et al., 2021) and MATH (Hendrycks et al., 2021b), code generation in Codeforces, and other reasoning tasks in BIG-Bench (Srivastava et al., 2022). We use several base LLMs: GPT-3.5, GPT-4 (OpenAI, 2023; Ouyang et al., 2022), and PaLM2 (Anil et al., 2023). Experimental results show that our approach outperforms 0-shot CoT and few-shot CoT across a range of tasks and base LLMs, achieving an average accuracy gain of +4%. Notably, our approach improves performance on tasks involving diverse types of reasoning, such as MATH (including algebra, probability, geometry, etc.) and Codeforces (involving dynamic programming, graph algorithms, etc.). This result suggests the effectiveness of generating tailored exemplars for individual problems to guide the reasoning process of LLMs. ## 2 RELATED WORKS 2.1 LARGE LANGUAGE MODELS AND PROMPTING A language model estimates probabilities over text. Recent research has scaled up these models from $\tilde{\text{millions }}(\tilde{\text{Devlin et al., 2019) to billions of parameters (Brown et al., 2020) and expanded training data}}$ to include web texts and instruction data (Gao et al., 2020; Ouyang et al., 2022; Chung et al., 2022). These advances have made large language models proficient in various NLP tasks. LLMs with billions of parameters demonstrate in-context learning and few-shot learning abilities (Brown et al., 2020; Liu et al., 2022; Su et al., 2022; Mishra et al., 2022; Wei et al., 2022a; Yasunaga et al., 2023; Shi et al., 2023). They use input prompts (instructions or a few exemplars) to guide LLMs to generate desired responses for tasks, marking the advent of the prompting era. Our approach harnesses the in-context learning abilities of LLMs to guide their reasoning process using self-generated exemplars. Closely related to ours are works that perform self-generation in LLM prompting (Sun et al., 2022; He et al., 2023; Kim et al., 2022; Li et al., 2022a). For instance, Sun et al. (2022) prompts LLMs to recite relevant facts in context for open-domain question answering. Our idea of self-generating exemplars is related to recitation, but focuses on recalling problem-solving and reasoning processes rather than factual knowledge. 2
[ [ "0.1732", "0.03284", "0.464", "0.0322", "0.464", "0.04672", "0.1732", "0.04736" ], [ "0.2361", "0.06757", "0.282", "0.06757", "0.282", "0.0821", "0.2361", "0.0821" ], [ "0.4084", "0.0682", "0.4902", "0.0682", "0.4902", "0.0802", "0.4084", "0.0802" ], [ "0.6045", "0.06757", "0.7754", "0.06757", "0.7754", "0.0808", "0.6045", "0.0808" ], [ "0.1929", "0.0859", "0.2632", "0.0859", "0.2632", "0.0966", "0.1929", "0.0966" ], [ "0.392", "0.0871", "0.4592", "0.0871", "0.4592", "0.09784", "0.392", "0.09784" ], [ "0.5786", "0.0871", "0.649", "0.0871", "0.649", "0.09784", "0.5786", "0.09784" ], [ "0.1854", "0.0985", "0.327", "0.0985", "0.327", "0.11237", "0.1854", "0.11237" ], [ "0.3757", "0.1029", "0.5107", "0.1029", "0.5107", "0.113", "0.3757", "0.113" ], [ "0.5664", "0.0985", "0.8022", "0.09973", "0.8022", "0.1111", "0.5664", "0.10986" ], [ "0.1854", "0.1092", "0.326", "0.10986", "0.326", "0.1218", "0.1854", "0.1206" ], [ "0.3757", "0.11237", "0.513", "0.11237", "0.513", "0.1225", "0.3757", "0.1225" ], [ "0.569", "0.1111", "0.7134", "0.1111", "0.7134", "0.1218", "0.569", "0.1218" ], [ "0.1854", "0.1187", "0.29", "0.1187", "0.29", "0.1288", "0.1854", "0.1288" ], [ "0.3774", "0.1218", "0.5146", "0.1218", "0.5146", "0.1288", "0.3774", "0.1288" ], [ "0.3782", "0.1307", "0.5107", "0.1307", "0.5107", "0.1383", "0.3782", "0.1383" ], [ "0.569", "0.125", "0.6216", "0.125", "0.6216", "0.1351", "0.569", "0.1351" ], [ "0.3757", "0.1383", "0.509", "0.1383", "0.509", "0.1528", "0.3757", "0.1528" ], [ "0.5703", "0.1338", "0.689", "0.1338", "0.689", "0.1414", "0.5703", "0.1414" ], [ "0.2263", "0.1445", "0.2917", "0.1445", "0.2917", "0.1559", "0.2263", "0.1559" ], [ "0.3774", "0.1483", "0.501", "0.1483", "0.501", "0.159", "0.3774", "0.159" ], [ "0.5703", "0.1433", "0.681", "0.1433", "0.681", "0.1509", "0.5703", "0.1509" ], [ "0.1936", "0.161", "0.2646", "0.161", "0.2646", "0.1724", "0.1936", "0.1724" ], [ "0.3774", "0.1578", "0.4836", "0.1578", "0.4836", "0.1686", "0.3774", "0.1686" ], [ "0.5786", "0.1654", "0.653", "0.1654", "0.653", "0.1768", "0.5786", "0.1768" ], [ "0.1854", "0.1736", "0.312", "0.1749", "0.312", "0.1863", "0.1854", "0.1849" ], [ "0.1887", "0.1843", "0.327", "0.1843", "0.327", "0.1945", "0.1887", "0.1945" ], [ "0.569", "0.1787", "0.6665", "0.1787", "0.6665", "0.1901", "0.569", "0.1901" ], [ "0.3782", "0.1875", "0.4902", "0.1875", "0.4902", "0.1976", "0.3782", "0.1976" ], [ "0.5703", "0.1895", "0.664", "0.1895", "0.664", "0.1963", "0.5703", "0.1963" ], [ "0.6665", "0.1881", "0.789", "0.1881", "0.789", "0.1957", "0.6665", "0.1957" ], [ "0.4592", "0.1945", "0.517", "0.1963", "0.517", "0.2084", "0.4592", "0.2058" ], [ "0.5703", "0.1963", "0.5986", "0.1963", "0.5986", "0.2052", "0.5703", "0.2052" ], [ "0.38", "0.1976", "0.4429", "0.1976", "0.4429", "0.2052", "0.38", "0.2052" ], [ "0.1887", "0.1932", "0.29", "0.1932", "0.29", "0.2039", "0.1887", "0.2039" ], [ "0.609", "0.1995", "0.7017", "0.1995", "0.7017", "0.2039", "0.609", "0.2039" ], [ "0.728", "0.1976", "0.8037", "0.1945", "0.8037", "0.2058", "0.728", "0.209" ], [ "0.3774", "0.2052", "0.4805", "0.2052", "0.4805", "0.2153", "0.3774", "0.2153" ], [ "0.6216", "0.2058", "0.7427", "0.2058", "0.7427", "0.2134", "0.6216", "0.2134" ], [ "0.5728", "0.2084", "0.6235", "0.2084", "0.6235", "0.2122", "0.5728", "0.2122" ], [ "0.569", "0.2197", "0.687", "0.2197", "0.687", "0.2299", "0.569", "0.2299" ], [ "0.568", "0.2279", "0.7837", "0.2267", "0.7837", "0.238", "0.568", "0.2393" ], [ "0.367", "0.2329", "0.5317", "0.2329", "0.5317", "0.2437", "0.367", "0.2437" ], [ "0.1847", "0.202", "0.2695", "0.2039", "0.2695", "0.2172", "0.1847", "0.2153" ], [ "0.1871", "0.2349", "0.3228", "0.2349", "0.3228", "0.2424", "0.1871", "0.2424" ], [ "0.569", "0.2361", "0.774", "0.2361", "0.774", "0.2468", "0.569", "0.2468" ], [ "0.569", "0.2456", "0.7876", "0.2456", "0.7876", "0.2556", "0.569", "0.2556" ], [ "0.5703", "0.2695", "0.774", "0.2695", "0.774", "0.2798", "0.5703", "0.2798" ], [ "0.5825", "0.281", "0.7236", "0.281", "0.7236", "0.2886", "0.5825", "0.2886" ], [ "0.1732", "0.3018", "0.824", "0.303", "0.824", "0.3176", "0.1732", "0.3164" ], [ "0.1748", "0.3176", "0.824", "0.3176", "0.824", "0.3308", "0.1748", "0.3308" ], [ "0.1748", "0.332", "0.824", "0.332", "0.824", "0.3452", "0.1748", "0.3452" ], [ "0.1765", "0.3452", "0.824", "0.3452", "0.824", "0.3591", "0.1765", "0.3591" ], [ "0.1748", "0.3591", "0.6914", "0.3591", "0.6914", "0.3726", "0.1748", "0.3726" ], [ "0.1748", "0.3977", "0.826", "0.3977", "0.826", "0.411", "0.1748", "0.411" ], [ "0.1748", "0.4124", "0.826", "0.4124", "0.826", "0.4255", "0.1748", "0.4255" ], [ "0.1732", "0.4255", "0.7695", "0.4255", "0.7695", "0.4395", "0.1732", "0.4395" ], [ "0.1724", "0.4463", "0.824", "0.4458", "0.824", "0.4602", "0.1724", "0.461" ], [ "0.1748", "0.4602", "0.824", "0.4602", "0.824", "0.4734", "0.1748", "0.4734" ], [ "0.1748", "0.4749", "0.826", "0.4749", "0.826", "0.488", "0.1748", "0.488" ], [ "0.1732", "0.488", "0.824", "0.488", "0.824", "0.502", "0.1732", "0.502" ], [ "0.1724", "0.502", "0.824", "0.502", "0.824", "0.515", "0.1724", "0.515" ], [ "0.1732", "0.5234", "0.824", "0.5234", "0.824", "0.537", "0.1732", "0.537" ], [ "0.1732", "0.537", "0.824", "0.537", "0.824", "0.5503", "0.1732", "0.5503" ], [ "0.1748", "0.5503", "0.8267", "0.5503", "0.8267", "0.5645", "0.1748", "0.5645" ], [ "0.1748", "0.565", "0.824", "0.565", "0.824", "0.579", "0.1748", "0.579" ], [ "0.1748", "0.579", "0.824", "0.579", "0.824", "0.5923", "0.1748", "0.5923" ], [ "0.1732", "0.5913", "0.824", "0.5923", "0.824", "0.607", "0.1732", "0.606" ], [ "0.1748", "0.607", "0.824", "0.607", "0.824", "0.6206", "0.1748", "0.6206" ], [ "0.1748", "0.619", "0.824", "0.619", "0.824", "0.6333", "0.1748", "0.6333" ], [ "0.1732", "0.634", "0.778", "0.634", "0.778", "0.648", "0.1732", "0.648" ], [ "0.1772", "0.6685", "0.1912", "0.674", "0.1847", "0.685", "0.1708", "0.681" ], [ "0.2018", "0.6704", "0.3447", "0.6704", "0.3447", "0.6846", "0.2018", "0.6846" ], [ "0.1732", "0.7026", "0.517", "0.7026", "0.517", "0.7163", "0.1732", "0.7163" ], [ "0.1724", "0.729", "0.824", "0.728", "0.824", "0.742", "0.1724", "0.7437" ], [ "0.1748", "0.7437", "0.824", "0.7437", "0.824", "0.757", "0.1748", "0.757" ], [ "0.1732", "0.757", "0.824", "0.757", "0.824", "0.7715", "0.1732", "0.7715" ], [ "0.1732", "0.7715", "0.648", "0.7715", "0.648", "0.786", "0.1732", "0.786" ], [ "0.1732", "0.7905", "0.824", "0.7915", "0.824", "0.806", "0.1732", "0.8047" ], [ "0.1748", "0.806", "0.826", "0.806", "0.826", "0.8193", "0.1748", "0.8193" ], [ "0.1748", "0.821", "0.826", "0.821", "0.826", "0.834", "0.1748", "0.834" ], [ "0.1748", "0.834", "0.824", "0.834", "0.824", "0.8477", "0.1748", "0.8477" ], [ "0.1724", "0.8467", "0.8228", "0.8477", "0.8228", "0.8623", "0.1724", "0.8613" ], [ "0.1732", "0.8687", "0.826", "0.867", "0.826", "0.882", "0.1732", "0.8833" ], [ "0.1748", "0.8833", "0.824", "0.8833", "0.824", "0.8965", "0.1748", "0.8965" ], [ "0.1748", "0.898", "0.824", "0.898", "0.824", "0.911", "0.1748", "0.911" ], [ "0.1732", "0.911", "0.826", "0.911", "0.826", "0.925", "0.1732", "0.925" ], [ "0.492", "0.9478", "0.5073", "0.9478", "0.5073", "0.962", "0.492", "0.962" ] ]
[ "Published as a conference paper at ICLR 2024", "O-shot", "Few-shot CoT", "Analogical Prompting(Ours)", "Model Input", "Model Input", "Model Input", "Q: What is the area ofthe square", "Q:Roger has 5 tennis balls.He", "Q: What is the area of the square with thefour vertices at", "with the four vertices at (-2, 2). (2,", "buys 2 more cans of tennis balls.", "(-2, 2), (2, -2), (-2, -6), and (-6, -2)2", "-2), (-2, -6), and (-6, -2)?", "Eachcanhas3tennisballs.How", "manytennis balls doeshehave?", "#Instruction", "A: Rogerstarted with 5 bals.2", "##Recallrelevantexemplars", "O-shot CoT", "cans of 3 balls each is 6 balls.", "##Solvetheinitialproblem", "Model Input", "The answer is 5 + 6 = 11.", "ModelOutput", "Q:What is the area of the squ", "with the four vertices at (-2, 2), (2,", "# Relevant exemplars:", "Q: What is the area of the s", "O:Whatisthearea ofth", "souarewithasidelengthof.53", "s at (-2, 2). (2,", "A:The", "withthefour ve", "-2), (-2, -6), and (-6, -2)2", "aofasauareisfoundh", "ring the length of its", "-2), (-2, -6), and (-6, -2)2", "areaofthissquareis5^2=25.", "ioesosthe:", "#Solve the initial problem:", "Tofindtheareaofthesquare,weneedtofindtheside", ".Need labeled exemplars of reasoning", "Think step by step.", "Genericguidanceofreasoning", "length. The length is... Isqrt(2-(-2)/2 + (-2-2)2)", "Isqrt(32). So, the area of the square is (Isqrt(32)>2 = 32", "Exemplarsareautomaticallygenerated", "andtailoredtoeachproblem", "Figure l:Overview of our approach, analogical prompting.Left: Existing methods for prompting", "LLM to reason are either generic (O-shot CoT) or demand labeled exemplars (few-shot CoT). Right: Given", "a problem, our method prompts LLMs to self-generate relevant exemplars before solving the problem.", "This eliminates the need for labeling and also tailors the exemplars to each individual problem. See Figure 3", "for a sample prompt where the LLM self-generates both knowledge and exemplars.", "problem end-to-end in one pass. The underlying idea here is that modern LLMs have already acquired", "knowledge of various problems during training. Explicitly prompting them to recall relevant problems", "and solutions in the context guides LLMs to perform in-context learning to solve new problems.", "Our proposed approach offers several advantages. It self-generates exemplars and obviates the need for", "manually labeling reasoning exemplars for each task, addressing the challenges faced by O-shot and few-shot", "CoT. Furthermore, the self-generated exemplars are tailored to individual problems, such as 'geometry’ or", "'probability', rather than generic 'math problems'. This can simplify the complexity associated with recent", "CoT techniques that retrieve relevant exemplars from external data (Zhang et al., 2022b; Shum et al., 2023)", "We evaluate the proposed approach in various reasoning-intensive tasks, including mathematical problem", "solving in GSM8K (Cobbe et al., 2021) and MATH (Hendrycks et al., 2021b), code generation in", "Codeforces, and other reasoning tasks in BIG-Bench (Srivastava et al., 2022). We use several base LLMs:", "GPT-3.5, GPT-4 (OpenAI, 2023; Ouyang et al., 2022), and PaLM2 (Anil et al., 2023). Experimental", "results show that our approach outperforms O-shot CoT and few-shot CoT across a range of tasks and base", "LLMs, achieving an average accuracy gain of +4%. Notably, our approach improves performance on tasks", "involving diverse types of reasoning, such as MATH (including algebra, probability, geometry, etc.) and", "Codeforces (involving dynamic programming, graph algorithms, etc.). This result suggests the effectiveness", "of generating tailored exemplars for individual problems to guide the reasoning process of LLMs.", "2", "RELATED WORKS", "2.1LARGELANGUAGEMODELSANDPROMPTING", "A language model estimates probabilities over text. Recent research has scaled up these models from", "millions (Devlin et al., 2019) to billions of parameters (Brown et al., 2020) and expanded training data", "to include web texts and instruction data (Gao et al., 2020; Ouyang et al., 2022; Chung et al., 2022). These", " advances have made large language models proficient in various NLP tasks.", "LLMs with billions of parameters demonstrate in-context learning and few-shot learning abilities (Brown", "et al., 2020; Liu et al., 2022; Su et al., 2022; Mishra et al., 2022; Wei et al., 2022a; Yasunaga et al.,", "2023; Shi et al., 2023). They use input prompts (instructions or a few exemplars) to guide LLMs to", "generate desired responses for tasks, marking the advent of the prompting era. Our approach harnesses", "the in-context learning abilities of LLMs to guide their reasoning process using self-generated exemplars.", "Closely related to ours are works that perform self-generation in LLM prompting (Sun et al., 2022; He et al.,", "2023; Kim et al., 2022; Li et al., 2022a). For instance, Sun et al. (2022) prompts LLMs to recite relevant", "facts in context for open-domain question answering. Our idea of self-generating exemplars is related to", "recitation, but focuses on recalling problem-solving and reasoning processes rather than factual knowledge.", "2" ]
{ "arxiv_id": "2310.01714", "language": "en", "page_idx": 1 }
2310.01714-en-2
2310.01714-en-2.jpg
$\underline{\text{Published as a conference paper at ICLR 2024}}$ 2.2 CHAIN-OF-THOUGHT PROMPTING Chain-of-thought (CoT; Wei et al. 2022b) is a prompting strategy that guides LLMs to produce intermediate reasoning steps towards a final answer, enhancing problem-solving performance. Common instances of CoT include 0-shot CoT (Kojima et al., 2022) and few-shot CoT Wei et al. (2022b). 0-shot CoT prompts LLMs with a general instruction like “think step by step”to produce intermediate reasoning steps. Few-shot CoT achieves stronger performance by providing multiple exemplars of reasoning process (question-rationale-answer), leveraging LLMs’ in-context learning abilities. However, it requires labeled exemplars. Our approach tackles this challenge by prompting LLMs to self-generate exemplars. Within few-shot CoT, the original approach employs a fixed set of labeled exemplars for all test problems Recent work explores retrieval-based CoT, which aims to obtain more relevant exemplars from external data for each problem (Zhang et al., 2022b; Shum et al., 2023). While our work shares the goal of providing relevant exemplars, instead of retrieval, we make LLMs self-generate exemplars. Self-generation offers several advantages: it is simpler, as it does not require external data retrieval, and it is more versatile, as it can produce not only specific exemplars but also broader insights or knowledge that complement them. Empirically, our generation-based CoT outperforms retrieval-based CoT, especially with larger base LLMs, while retrieval-based CoT excels with smaller base LLMs (§6). Finally, there are other techniques for enhancing CoT, such as self-consistency (Wang et al., 2022) and least-to-most (Zhou et al., 2022). Our work can complement and integrate with these efforts. Please see §A for additional related works. # 3 PRELIMINARIES We focus on problem-solving tasks, where the objective is to produce a solution $y$ for a given problem statement $x$, such as mathematical questions or code generation specifications. The solution may include both the intermediate reasoning steps or rationale $r$ and the final answer $a.$ A prompting method $\phi$ is a function that maps a problem statement $x$ into a specific textual input $\phi(x)$ $\hat{\text{for an LLM, which then generates a solution }\hat{\hat{y}}}=\hat{\mathrm{LLM}}(\phi(x)).$For instance, $\bullet$ In 0-shot prompting, $\phi$ directly yields $x.$ $\bullet$ In 0-shot CoT, $\phi$ supplements $x$ with a general instruction, such as“[x] think step by step”. $\bullet$ In few-shot CoT, $\phi$ supplements $x$ with several labeled exemplars, $\{(x_i,r_i,a_i)\}_i=1^K$, such as “[$x_1]$ $[ r_{1}] [ a_{1}] . . . [ x_{K}] [ \hat{r_{K}} ] [ a_{K}]$ $[ x] " .$ Our aim is to design a prompting method $\phi$ that enhances the accuracy of solutions LLMs generate ## 4 APPROACH We introduce analogical prompting, a new prompting approach that automatically provides exemplars to guide LLMs’ reasoning process. Inspired by how humans recall relevant past experiences when tackling new problems, our approach makes LLMs self-generate relevant exemplars or knowledge in context, before proceeding to solve the problem (Figure 1, right). We present two techniques to achieve this: self-generated exemplars (§4.1) and self-generated knowledge+ exemplars (§4.2). 4.1 SELF-GENERATED EXEMPLARS Our approach is based on the idea that modern LLMs possess a broad range of problem-solving knowledge acquired during training. Explicitly prompting them to recall or generate relevant problems and solutions in context aids LLMs to perform in-context learning to solve new problems. Specifically, given a target problem to solve $x$, our prompt augments it with instructions like: $\#$Problem:$[x]$ # Relevant problems: Recall three relevant and distinct problems. For each problem, describe it and explain the s $\#$ Solve the initial problem: 3
[ [ "0.1748", "0.0341", "0.4631", "0.0341", "0.4631", "0.04736", "0.1748", "0.04736" ], [ "0.1732", "0.1042", "0.437", "0.1048", "0.437", "0.1193", "0.1732", "0.1187" ], [ "0.1748", "0.1307", "0.822", "0.1307", "0.822", "0.1459", "0.1748", "0.1459" ], [ "0.1772", "0.1477", "0.822", "0.1477", "0.822", "0.1578", "0.1772", "0.1578" ], [ "0.1748", "0.1604", "0.693", "0.1604", "0.693", "0.1736", "0.1748", "0.1736" ], [ "0.1748", "0.1799", "0.824", "0.1799", "0.824", "0.1932", "0.1748", "0.1932" ], [ "0.1765", "0.1945", "0.8228", "0.1945", "0.8228", "0.2084", "0.1765", "0.2084" ], [ "0.1765", "0.209", "0.8228", "0.209", "0.8228", "0.2229", "0.1765", "0.2229" ], [ "0.1748", "0.2216", "0.814", "0.2216", "0.814", "0.2361", "0.1748", "0.2361" ], [ "0.1748", "0.2437", "0.8228", "0.2437", "0.8228", "0.2568", "0.1748", "0.2568" ], [ "0.1765", "0.2588", "0.822", "0.2588", "0.822", "0.2695", "0.1765", "0.2695" ], [ "0.1748", "0.2715", "0.824", "0.2715", "0.824", "0.2854", "0.1748", "0.2854" ], [ "0.1765", "0.2854", "0.8228", "0.2854", "0.8228", "0.2986", "0.1765", "0.2986" ], [ "0.1765", "0.2998", "0.824", "0.2998", "0.824", "0.3132", "0.1765", "0.3132" ], [ "0.1765", "0.3132", "0.8228", "0.3132", "0.8228", "0.327", "0.1765", "0.327" ], [ "0.1732", "0.3257", "0.824", "0.327", "0.824", "0.3416", "0.1732", "0.3403" ], [ "0.1748", "0.3403", "0.642", "0.3403", "0.642", "0.3542", "0.1748", "0.3542" ], [ "0.1748", "0.361", "0.824", "0.361", "0.824", "0.375", "0.1748", "0.375" ], [ "0.1765", "0.3774", "0.744", "0.3774", "0.744", "0.3882", "0.1765", "0.3882" ], [ "0.1748", "0.3965", "0.4387", "0.3965", "0.4387", "0.4104", "0.1748", "0.4104" ], [ "0.1748", "0.433", "0.2035", "0.433", "0.2035", "0.4443", "0.1748", "0.4443" ], [ "0.1969", "0.433", "0.3325", "0.433", "0.3325", "0.4463", "0.1969", "0.4463" ], [ "0.1748", "0.4622", "0.822", "0.4622", "0.822", "0.476", "0.1748", "0.476" ], [ "0.1765", "0.4766", "0.8228", "0.4766", "0.8228", "0.4905", "0.1765", "0.4905" ], [ "0.1732", "0.4893", "0.636", "0.4905", "0.636", "0.505", "0.1732", "0.504" ], [ "0.1748", "0.511", "0.824", "0.511", "0.824", "0.526", "0.1748", "0.526" ], [ "0.1748", "0.5264", "0.6445", "0.5264", "0.6445", "0.5405", "0.1748", "0.5405" ], [ "0.1871", "0.5474", "0.4495", "0.5474", "0.4495", "0.5625", "0.1871", "0.5625" ], [ "0.1871", "0.563", "0.8057", "0.563", "0.8057", "0.5776", "0.1871", "0.5776" ], [ "0.1871", "0.58", "0.826", "0.58", "0.826", "0.5947", "0.1871", "0.5947" ], [ "0.2018", "0.595", "0.4436", "0.595", "0.4436", "0.6094", "0.2018", "0.6094" ], [ "0.1732", "0.6157", "0.789", "0.616", "0.789", "0.631", "0.1732", "0.63" ], [ "0.1748", "0.6514", "0.2035", "0.6514", "0.2035", "0.664", "0.1748", "0.664" ], [ "0.1978", "0.653", "0.2932", "0.653", "0.2932", "0.664", "0.1978", "0.664" ], [ "0.1748", "0.6816", "0.822", "0.6816", "0.822", "0.6963", "0.1748", "0.6963" ], [ "0.1732", "0.696", "0.8203", "0.696", "0.8203", "0.709", "0.1732", "0.709" ], [ "0.1765", "0.7104", "0.824", "0.7104", "0.824", "0.7236", "0.1765", "0.7236" ], [ "0.1748", "0.7246", "0.826", "0.7246", "0.826", "0.738", "0.1748", "0.738" ], [ "0.1748", "0.738", "0.683", "0.738", "0.683", "0.752", "0.1748", "0.752" ], [ "0.1748", "0.7695", "0.4192", "0.7695", "0.4192", "0.7827", "0.1748", "0.7827" ], [ "0.1732", "0.7944", "0.8203", "0.7944", "0.8203", "0.808", "0.1732", "0.808" ], [ "0.1765", "0.81", "0.824", "0.81", "0.824", "0.8237", "0.1765", "0.8237" ], [ "0.1748", "0.8237", "0.642", "0.8237", "0.642", "0.837", "0.1748", "0.837" ], [ "0.1748", "0.8433", "0.7466", "0.8433", "0.7466", "0.858", "0.1748", "0.858" ], [ "0.2009", "0.866", "0.3145", "0.866", "0.3145", "0.88", "0.2009", "0.88" ], [ "0.1993", "0.882", "0.7812", "0.882", "0.7812", "0.896", "0.1993", "0.896" ], [ "0.2009", "0.8965", "0.558", "0.8965", "0.558", "0.91", "0.2009", "0.91" ], [ "0.2009", "0.911", "0.4192", "0.911", "0.4192", "0.925", "0.2009", "0.925" ], [ "0.492", "0.9478", "0.5073", "0.9478", "0.5073", "0.9634", "0.492", "0.9634" ] ]
[ "Published as a conference paper at ICLR 2024", "2.2CHAIN-OF-THOUGHT PROMPTING", "Chain-of-thought (CoT; Wei et al. 2022b) is a prompting strategy that guides LLMs to produce intermediate", "reasoningstepstowardsafinalanswer,enhancingproblem-solvingperformance.Commoninstancesof", "CoT include 0-shot CoT (Kojima et al., 2022) and few-shot CoT Wei et al. (2022b).", "O-shot CoT prompts LLMs with a general instruction like “think step by step\" to produce intermediate rea-", "soning steps.Few-shot CoT achieves stronger performance by providing multiple exemplars of reasoning", "process (question-rationale-answer), leveraging LLMs in-context learning abilities. However, it requires", "labeled exemplars. Our approach tackles this challenge by prompting LLMs to self-generate exemplars.", "Within few-shot CoT, the original approach employs a fixed set of labeled exemplars for all test problems", "Recentwork exploresretrieval-basedCoT,whichaimstoobtainmorerelevantexemplarsfromexternal", "data for each problem (Zhang et al., 2022b; Shum et al., 2023). While our work shares the goal of", "providing relevant exemplars, instead of retrieval, we make LLMs self-generate exemplars. Self-generation", "offers several advantages: it is simpler, as it does not require external data retrieval, and it is more versatile,", "as it can produce not only specific exemplars but also broader insights or knowledge that complement", "them. Empirically, our generation-based CoT outperforms retrieval-based CoT, especially with larger", "base LLMs, while retrieval-based CoT excels with smaller base LLMs ($6)", "Finally, there are other techniques for enhancing CoT, such as self-consistency (Wang et al., 2022) and", "least-to-most(Zhouetal.,2022).Ourworkcancomplementandintegratewiththeseefforts", "Please see SA for additional related works.", "3", "PRELIMINARIES", "We focus on problem-solving tasks, where the objective is to produce a solution y for a given problem", "statement c, such as mathematical questions or code generation specifications. The solution may include", "both the intermediate reasoning steps or rationale r and the final answer a.", "A prompting method is a function that maps a problem statement r into a specific textual input (c)", "for an LLM, which then generates a solution y = LLM(o(r)). For instance,", "• In O-shot prompting, Φ directly yields r.", ": In O-shot CoT, supplements r with a general instruction, such as \"[r] think step by step\".", ": In few-shot CoT, Φ supplements a with several labeled exemplars, [(ci,ri,ai))1, such as “[i]", "[ril[ai]...[kjErk][ak][r]", "Our aim is to design a prompting method that enhances the accuracy of solutions LLMs generate", "4", "APPROACH", "We introduce analogical prompting, a new prompting approach that automatically provides exemplars", "to guide LLMs' reasoning process. Inspired by how humans recall relevant past experiences when tackling", "new problems, our approach makes LLMs self-generate relevant exemplars or knowledge in context,", "before proceeding to solve the problem (Figure 1, right). We present two techniques to achieve this:", "self-generated exemplars ($4.1) and self-generated knowledge + exemplars ($4.2).", "4.1SELF-GENERATED EXEMPLARS", "Our approach is based on the idea that modern LLMs possess a broad range of problem-solving knowledge", "acquired during training. Explicitly prompting them to recall or generate relevant problems and solutions", "in context aids LLMs to perform in-context learning to solve new problems", "Specifically, given a target problem to solve , our prompt augments it with instructions like:", "# Problem: [a]", "# Relevant problems: Recall three relevant and distinct problems. For each", "problem, describe it and explain the solution.", "# Solve the initial problem:", "3" ]
{ "arxiv_id": "2310.01714", "language": "en", "page_idx": 2 }
2310.01714-en-3
2310.01714-en-3.jpg
$\underline{\text{Published as a conference paper at ICLR 2024}}$ For a concrete example, see Figure 2. The LLM first generates several $(K)$ relevant exemplars in the form of question-rationale-answer sequences (“# Relevant problems:”part of the instruction). Then the model proceeds to solve the initial problem, leveraging the recalled exemplars in the context(“# Solve the initial problem:"part of the instruction). Note that all these instructions are provided within a single prompt, allowing the LLM to generate relevant problems and solution to the initial problem in one continuous pass Using“#’symbols in the prompt(e.g.,“# Relevant Problems’) helps LLMs structure the response better. Below are key technical decisions we made: ·Generating relevant and diverse exemplars is important: To achieve this, we explicitly include an instruction in the prompt, such as“generate problems that are distinct from each other”(e.g., Figure 2). This step is crucial as some LLMs have a tendency to repetitively generate identical problems, which can be misleading when solving the target problem. ·Single-pass vs. independent exemplar generation: An alternative approach is to independently generate exemplars by separately sampling them from the LLM and then re-prompt the LLM with all the exemplars. While this method does work, our current single-pass prompt approach achieves comparable performance and offers greater convenience, eliminating the need for multiple prompts Consequently, we have chosen to adopt the single-pass method. $\bullet$ The number of exemplars to generate $(K):$ Through experimentation, we have found that generating $K=3$ to 5 exemplars works the best (more details in §6.5). Our approach offers two advantages. It offers detailed exemplars of reasoning without manual labeling, addressing the challenges in O-shot and few-shot CoT. The generated exemplars are tailored to individual problems (e.g, 'geometry' or'probability'), offering more relevant guidance than traditional few-shot CoT, which uses fixed exemplars (e.g., general math problems; Figure 1, middle). 4.2 SELF-GENERATED KNOWLEDGE+EXEMPLARS While generating exemplars is useful, in complex tasks like code generation, LLMs may overly rely on the low-level exemplars and fail to generalize when solving the target problems. To address this challenge, we also allow LLMs to self-generate high-level takeaways that complements the exemplars, which we refer to as“knowledge” Specifically, we enhance the prompt with an additional instruction like the following. For a concrete example, see Figure 3. # Tutorial: Identify core concepts in the problem and provide a tutorial. One technical consideration is whether to generate knowledge before or after exemplars. We found that generating knowledge before exemplars yields superior results (Table 7). By generating knowledge first, LLMs identify the core concepts of the problem. This, in turn, helps LLMs generate exemplars that align more closely in terms of the fundamental problem-solving approaches rather than surface-level lexical similarities. For further discussion, please refer to §6.2. ## 5 EXPERIMENTAL SETUP ## 5.1 TASKS We evaluate the proposed approach in diverse reasoning-intensive tasks, including mathematical problem solving, code generation, and other reasoning tasks like logical and temporal reasoning. Mathematical problem solving. We use popular benchmarks, GSM8K (Cobbe et al., 2021), comprising elementary math word problems, and MATH (Hendrycks et al., 2021b), consisting of advanced math problems from high school math competitions. For each problem, we obtain an output from LLMs using a temperature of 0, and report the accuracy. Code generation. Code generation involves synthesizing programs to solve algorithmic problems. Competitive programming is especially challenging, requiring reasoning about various algorithms like dynamic programming and graphs (Li et al., 2022b; Kulal et al., 2019; Yasunaga & Liang, 2020). As a benchmark, we collected competitive programming problems from codeforces.com (details in §B). We focus on level-A problems published in 2023 to prevent test set contamination (Magar&Schwartz, 2022). Each problem comprises a problem statement, which serves as input to LLMs, and a set of test cases to assess generated code. The correctness of code is determined by whether it passes all test cases. 4
[ [ "0.1748", "0.03284", "0.464", "0.03284", "0.464", "0.04736", "0.1748", "0.04736" ], [ "0.1748", "0.1048", "0.824", "0.1048", "0.824", "0.1193", "0.1748", "0.1193" ], [ "0.1732", "0.1193", "0.824", "0.1187", "0.824", "0.132", "0.1732", "0.1332" ], [ "0.1748", "0.1332", "0.826", "0.1332", "0.826", "0.1465", "0.1748", "0.1465" ], [ "0.1748", "0.1459", "0.826", "0.1465", "0.826", "0.161", "0.1748", "0.1604" ], [ "0.1748", "0.1604", "0.824", "0.1604", "0.824", "0.1736", "0.1748", "0.1736" ], [ "0.1748", "0.1749", "0.8267", "0.1749", "0.8267", "0.1895", "0.1748", "0.1895" ], [ "0.1765", "0.1957", "0.4495", "0.1957", "0.4495", "0.209", "0.1765", "0.209" ], [ "0.1887", "0.2166", "0.822", "0.2166", "0.822", "0.2299", "0.1887", "0.2299" ], [ "0.2009", "0.2299", "0.8228", "0.2299", "0.8228", "0.2443", "0.2009", "0.2443" ], [ "0.1993", "0.2443", "0.824", "0.2443", "0.824", "0.2583", "0.1993", "0.2583" ], [ "0.1993", "0.2588", "0.564", "0.2588", "0.564", "0.2727", "0.1993", "0.2727" ], [ "0.1871", "0.2734", "0.8203", "0.2734", "0.8203", "0.2874", "0.1871", "0.2874" ], [ "0.2009", "0.2886", "0.8228", "0.2886", "0.8228", "0.303", "0.2009", "0.303" ], [ "0.2009", "0.303", "0.8228", "0.303", "0.8228", "0.3164", "0.2009", "0.3164" ], [ "0.2009", "0.3164", "0.826", "0.3164", "0.826", "0.33", "0.2009", "0.33" ], [ "0.2009", "0.33", "0.596", "0.33", "0.596", "0.3447", "0.2009", "0.3447" ], [ "0.1854", "0.3447", "0.8228", "0.3467", "0.8228", "0.361", "0.1854", "0.3591" ], [ "0.2009", "0.3591", "0.5703", "0.3599", "0.5703", "0.375", "0.2009", "0.3738" ], [ "0.1732", "0.3801", "0.8228", "0.3806", "0.8228", "0.3958", "0.1732", "0.3945" ], [ "0.1748", "0.3958", "0.824", "0.3958", "0.824", "0.4092", "0.1748", "0.4092" ], [ "0.1748", "0.4092", "0.824", "0.4092", "0.824", "0.4236", "0.1748", "0.4236" ], [ "0.1732", "0.4216", "0.6807", "0.4224", "0.6807", "0.4375", "0.1732", "0.4363" ], [ "0.1732", "0.4526", "0.5254", "0.4526", "0.5254", "0.4666", "0.1732", "0.4666" ], [ "0.1748", "0.4792", "0.8228", "0.4792", "0.8228", "0.4924", "0.1748", "0.4924" ], [ "0.1748", "0.4937", "0.824", "0.4937", "0.824", "0.507", "0.1748", "0.507" ], [ "0.1748", "0.507", "0.824", "0.507", "0.824", "0.521", "0.1748", "0.521" ], [ "0.1724", "0.518", "0.8267", "0.5195", "0.8267", "0.537", "0.1724", "0.536" ], [ "0.1748", "0.535", "0.4084", "0.535", "0.4084", "0.549", "0.1748", "0.549" ], [ "0.2009", "0.5547", "0.767", "0.5547", "0.767", "0.5693", "0.2009", "0.5693" ], [ "0.1748", "0.577", "0.8228", "0.577", "0.8228", "0.5903", "0.1748", "0.5903" ], [ "0.1748", "0.5903", "0.826", "0.5903", "0.826", "0.604", "0.1748", "0.604" ], [ "0.1748", "0.604", "0.8228", "0.604", "0.8228", "0.617", "0.1748", "0.617" ], [ "0.1732", "0.6187", "0.824", "0.6187", "0.824", "0.632", "0.1732", "0.632" ], [ "0.1724", "0.632", "0.517", "0.632", "0.517", "0.646", "0.1724", "0.646" ], [ "0.1691", "0.6675", "0.2009", "0.661", "0.2051", "0.674", "0.1732", "0.6797" ], [ "0.1969", "0.6665", "0.3896", "0.6665", "0.3896", "0.6797", "0.1969", "0.6797" ], [ "0.1732", "0.6943", "0.259", "0.6943", "0.259", "0.709", "0.1732", "0.709" ], [ "0.1732", "0.7217", "0.8228", "0.7217", "0.8228", "0.7363", "0.1732", "0.7363" ], [ "0.1732", "0.7363", "0.716", "0.7363", "0.716", "0.75", "0.1732", "0.75" ], [ "0.1748", "0.757", "0.822", "0.757", "0.822", "0.771", "0.1748", "0.771" ], [ "0.1748", "0.7715", "0.8228", "0.7715", "0.8228", "0.785", "0.1748", "0.785" ], [ "0.1748", "0.785", "0.824", "0.785", "0.824", "0.799", "0.1748", "0.799" ], [ "0.1748", "0.8", "0.4436", "0.8", "0.4436", "0.813", "0.1748", "0.813" ], [ "0.1732", "0.8184", "0.824", "0.8193", "0.824", "0.834", "0.1732", "0.8335" ], [ "0.1748", "0.834", "0.824", "0.834", "0.824", "0.8477", "0.1748", "0.8477" ], [ "0.1748", "0.8477", "0.7754", "0.8477", "0.7754", "0.8623", "0.1748", "0.8623" ], [ "0.1765", "0.8706", "0.822", "0.8706", "0.822", "0.881", "0.1765", "0.881" ], [ "0.1748", "0.8833", "0.8228", "0.8833", "0.8228", "0.8965", "0.1748", "0.8965" ], [ "0.1748", "0.898", "0.8228", "0.898", "0.8228", "0.911", "0.1748", "0.911" ], [ "0.1732", "0.911", "0.8164", "0.911", "0.8164", "0.925", "0.1732", "0.925" ], [ "0.4885", "0.952", "0.5034", "0.9478", "0.509", "0.959", "0.4944", "0.9634" ] ]
[ "Published as a conference paper at ICLR 2024", "For a concrete example, see Figure 2. The LLM first generates several (K) relevant exemplars in the form of", "question-rationale-answer sequences (\"# Relevant problems:\"part of the instruction).Then themodel", "proceeds to solve the initial problem, leveraging the recalled exemplars in the context (\"# Solve the ini-", "tial problem:\"part of the instruction). Note that all these instructions are provided within a single prompt,", "allowing the LLM to generate relevant problems and solution to the initial problem in one continuous pass", "Using “#\" symbols in the prompt (e.g., “# Relevant Problems) helps LLMs structure the response better.", "Below are key technical decisions we made:", ". Generating relevant and diverse exemplars is important: To achieve this, we explicitly include an", "instruction in the prompt, such as “generate problems that are distinct from each other\" (e.g., Figure", "2). This step is crucial as some LLMs have a tendency to repetitively generate identical problems,", "which can be misleading when solving the target problem.", ": Single-pass vs. independent exemplar generation: An alternative approach is to independently", "generate exemplars by separately sampling them from the LLM and then re-prompt the LLM with", "all the exemplars. While this method does work, our current single-pass prompt approach achieves", "comparable performance and offers greater convenience, eliminating the need for multiple prompts.", "Consequently, we have chosen to adopt the single-pass method.", ": The number of exemplars to generate (K): Through experimentation, we have found that generating", "K = 3 to 5 exemplars works the best (more details in g6.5).", "Ourapproach offers two advantages.It offers detailed exemplars of reasoning without manual labeling", "addressing the challenges in O-shot and few-shot CoT. The generated exemplars are tailored to individual", "problems (e.g.,geometryor 'probability'), offering more relevant guidance than traditional few-shot", "CoT, which uses fixed exemplars (e.g., general math problems; Figure 1, middle).", "4.2SELF-GENERATED KNOWLEDGE +EXEMPLARS", "While generating exemplars is useful, in complex tasks like code generation, LLMs may overly rely on", "the low-level exemplars and fail to generalize when solving the target problems. To address this challenge,", "we also allow LLMs to self-generate high-level takeaways that complements the exemplars, which we refer", "to as \"knowledge\" Specifically, we enhance the prompt with an additional instruction like the following.", "For a concrete example, see Figure 3.", "# Tutorial: Identify core concepts in the problem and provide a tutorial.", "One technical consideration is whether to generate knowledge before or after exemplars. We found that", "generating knowledge before exemplars yields superior results (Table 7). By generating knowledge first,", "LLMs identify the core concepts of the problem. This, in turn, helps LLMs generate exemplars that align", "more closely in terms of the fundamental problem-solving approaches rather than surface-level lexical", "similarities. For further discussion, please refer to g6.2.", "5", "EXPERIMENTALSETUP", "5.1TASKS", "We evaluate the proposed approach in diverse reasoning-intensive tasks, including mathematical problem", " solving, code generation, and other reasoning tasks like logical and temporal reasoning.", "Mathematical problem solving.We use popular benchmarks, GSM8K (Cobbe et al., 2021), comprising", "elementary math word problems, and MATH (Hendrycks et al., 2021b), consisting of advanced math", "problems from high school math competitions. For each problem, we obtain an output from LLMs using", "a temperature of O, and report the accuracy.", "Code generation.Code generation involves synthesizing programs to solve algorithmic problems.", "Competitive programming is especially challenging, requiring reasoning about various algorithms like", "dynamic programming and graphs (Li et al., 2022b; Kulal et al., 2019; Yasunaga & Liang, 2020).", "Asabenchmark,wecollectedcompetitiveprogrammingproblemsfromcodeforces.com(detailsinsB)", "We focus on level-A problems published in 2023 to prevent test set contamination (Magar & Schwartz", "2022). Each problem comprises a problem statement, which serves as input to LLMs, and a set of test", "cases to assess generated code. The correctness of code is determined by whether it passes all test cases.", "4" ]
{ "arxiv_id": "2310.01714", "language": "en", "page_idx": 3 }
2308.05478-en-0
2308.05478-en-0.jpg
$\textbf{Reviewing 3D Object Detectors in the Context of High- Resolution 3+ 1D Radar}$ Patrick Palmer$^{1*}$, Martin Krueger$^{1*}$, Richard Altendorfer$^2$, Ganesh Adam$^2$, Torsten Bertram$^{1}$ $^{1}$TU Dortmund University, Germany$^2$ZF Group $\{$patrick.palmer, martin2.krueger, torsten.bertram$\}$@tu-dortmund.de $\{$richard.altendorfer, ganesh.adam$\}$ezf.com $ଟ୍ରି$ $పై$ $으$ ## Abstract search. We investigate deep learning-based models operating on radar point clouds for 3D object detection. 3D object detection on lidar point cloud data is a mature area of 3D vi- $\begin{array}{ccc}&sion.&Many&different&architectures&have&been&proposed,each\\&&with&strengths&and&weaknesses.&Due&to&similarities&between\\&&3D&lidar&point&clouds&and&3+1D&radar&point&clouds,those\end{array}$ existing 3D object detectors are a natural basis to start deep learning-based 3D object detection on radar data. Thus, the first step is to analyze the detection performance of the $\sum _{\infty }$ existingmodelsonthenew data modality and evaluate $them\infty$ $in$ $depth. In$ order $to$ apply existing $3D$ point cloud object $de- tectors$ developed for lidar point clouds $to$ the radar $domain$, they need to be adapted first. While some detectors, such as PointPillars, have already been adapted to be applicable to radar data, we have adapted others, e.g., Voxel R-CNN, $SECOND,PointRCNN,andPV-RCNN.To$ this end, we conduct a cross-model validation (evaluating a set of models on one particular data set) as well as a cross-data set validation $(evaluatingallmodelsinthemodelsetonseveraldatasets).$ The high-resolution radar data used are the View-of-Delft and Astyx data sets. Finally, we evaluate several adaptations of the models and their training procedures. We also discuss major factors influencing the detection performance on radar data and propose possible solutions indicating potential future research avenues. ## $1. \textbf{Introduction}$ ## 1.1.Perception The three most common exteroceptive sensors currently used for automated driving tasks are camera, lidar, and radar. Camera sensors use sequential images (video) to capture the scene. Cameras have the advantage that they are comparatively cheap and widely used in different domains. Another $^*$ Equal Contribution. 1 benefit is that the camera signals are easily interpretable by humans, allowing for an easy examination of detection Recent developments and the beginning market introduc- results. One negative aspect of camera sensors is that they tion ofhigh- resolution imaging $( 3+ 1D)$ radar sensorsdo not allow for a precise measurement of distances and time-of-flight of reflected beams from detected objects. The advantages of this sensor type are the very accurate range measurement and its possibility to get a comparatively dense representation of the scene as a point cloud. Adversely for lidar is its high costs, which prevented its use in massproduction vehicles until recently. Some of these problems can be solved with radar sensors. Compared to camera and lidar sensors, radar has unique benefits. Camera and lidar sensors provide a high angular resolution but suffer in view range, whereas radar exceeds them and can therefore supplement the other sensors. Radar sensors provide a direct measurement of the Doppler velocity. This can be used to separate moving objects from one another and to distinguish static objects. The large wavelength of the radar is advantageous in adverse weather conditions like snow, rain, fog, or poor lighting conditions, where the other sensors could suffer. Radar sensors are also cost-efficient. One problem of current series production radar sensors is the sparsity of the measurements. This issue is alleviated by current advances in high-resolution 3+1D radar technology, which enable an increased field-of-view and a higher elevation resolution. Different perception tasks are typically investigated for camera and point cloud data (lidar and radar). However, we only focus on 3D bounding box detection in this paper. ## 1.2. Radar Data Processing Radar sensors use electro-magnetic waves in the radio waves spectrum of 24GHz as well as 77-81GHz. In order to determine the distance to objects, the radio frequency must be varied; the most common method is the periodic continuous frequency variation (Frequency Modulated Continuous Wave: FMCW). Angular resolution depends upon the number of transmitting and receiving antennae whose combinations form virtual channels for provision of angular information. Fig. 1 shows the high-level
[ [ "0.09644", "0.1338", "0.8774", "0.1338", "0.8774", "0.1483", "0.09644", "0.1483" ], [ "0.1209", "0.1812", "0.8486", "0.1812", "0.8486", "0.1989", "0.1209", "0.1989" ], [ "0.2769", "0.1989", "0.5786", "0.2008", "0.5786", "0.2153", "0.2769", "0.2134" ], [ "0.596", "0.1976", "0.6953", "0.202", "0.694", "0.2166", "0.5947", "0.2122" ], [ "0.1993", "0.2197", "0.7715", "0.2172", "0.7715", "0.2317", "0.1993", "0.2343" ], [ "0.3022", "0.2361", "0.665", "0.2374", "0.665", "0.252", "0.3022", "0.2507" ], [ "0.0237", "0.2583", "0.05963", "0.2583", "0.05963", "0.3176", "0.0237", "0.3176" ], [ "0.2385", "0.2874", "0.3137", "0.2874", "0.3137", "0.3018", "0.2385", "0.3018" ], [ "0.5024", "0.2886", "0.8906", "0.2886", "0.8906", "0.303", "0.5024", "0.303" ], [ "0.02942", "0.308", "0.0645", "0.3113", "0.05637", "0.3694", "0.02124", "0.3662" ], [ "0.5024", "0.3037", "0.8906", "0.3037", "0.8906", "0.3176", "0.5024", "0.3176" ], [ "0.0989", "0.318", "0.4722", "0.318", "0.4722", "0.332", "0.0989", "0.332" ], [ "0.5024", "0.3193", "0.8906", "0.3193", "0.8906", "0.3333", "0.5024", "0.3333" ], [ "0.0809", "0.334", "0.4697", "0.334", "0.4697", "0.3484", "0.0809", "0.3484" ], [ "0.501", "0.3333", "0.8906", "0.334", "0.8906", "0.3484", "0.501", "0.348" ], [ "0.0801", "0.3484", "0.468", "0.3484", "0.468", "0.3623", "0.0801", "0.3623" ], [ "0.5034", "0.3499", "0.8906", "0.3499", "0.8906", "0.363", "0.5034", "0.363" ], [ "0.02777", "0.3662", "0.05228", "0.3662", "0.05228", "0.3865", "0.02777", "0.3865" ], [ "0.0809", "0.3655", "0.4697", "0.3655", "0.4697", "0.379", "0.0809", "0.379" ], [ "0.5034", "0.3662", "0.8896", "0.3662", "0.8896", "0.377", "0.5034", "0.377" ], [ "0.0801", "0.379", "0.468", "0.379", "0.468", "0.3926", "0.0801", "0.3926" ], [ "0.5024", "0.3801", "0.892", "0.3801", "0.892", "0.3933", "0.5024", "0.3933" ], [ "0.0801", "0.3945", "0.4697", "0.3933", "0.4697", "0.4077", "0.0801", "0.4092" ], [ "0.5024", "0.3958", "0.892", "0.3958", "0.892", "0.4092", "0.5024", "0.4092" ], [ "0.02533", "0.406", "0.05637", "0.4072", "0.05392", "0.452", "0.02287", "0.4507" ], [ "0.0801", "0.4104", "0.4697", "0.4104", "0.4697", "0.4236", "0.0801", "0.4236" ], [ "0.5024", "0.4104", "0.8906", "0.4104", "0.8906", "0.4236", "0.5024", "0.4236" ], [ "0.0809", "0.4255", "0.4697", "0.4255", "0.4697", "0.4395", "0.0809", "0.4395" ], [ "0.5034", "0.4268", "0.8896", "0.4268", "0.8896", "0.4375", "0.5034", "0.4375" ], [ "0.0801", "0.4395", "0.4697", "0.4395", "0.4697", "0.4526", "0.0801", "0.4526" ], [ "0.5024", "0.44", "0.8906", "0.44", "0.8906", "0.4539", "0.5024", "0.4539" ], [ "0.03105", "0.449", "0.058", "0.449", "0.058", "0.4817", "0.03105", "0.4817" ], [ "0.0801", "0.455", "0.4697", "0.455", "0.4697", "0.4685", "0.0801", "0.4685" ], [ "0.5024", "0.455", "0.892", "0.455", "0.892", "0.4685", "0.5024", "0.4685" ], [ "0.0809", "0.4702", "0.4697", "0.4702", "0.4697", "0.4841", "0.0809", "0.4841" ], [ "0.5034", "0.4717", "0.8906", "0.4717", "0.8906", "0.4817", "0.5034", "0.4817" ], [ "0.0801", "0.4849", "0.468", "0.4849", "0.468", "0.4988", "0.0801", "0.4988" ], [ "0.5024", "0.4849", "0.892", "0.4849", "0.892", "0.4988", "0.5024", "0.4988" ], [ "0.0801", "0.5005", "0.468", "0.5005", "0.468", "0.5146", "0.0801", "0.5146" ], [ "0.5024", "0.5005", "0.892", "0.5005", "0.892", "0.5146", "0.5024", "0.5146" ], [ "0.0784", "0.515", "0.4697", "0.5146", "0.4697", "0.529", "0.0784", "0.53" ], [ "0.02533", "0.502", "0.05637", "0.502", "0.05637", "0.5547", "0.02533", "0.5547" ], [ "0.505", "0.5176", "0.8906", "0.5176", "0.8906", "0.528", "0.505", "0.528" ], [ "0.0801", "0.531", "0.4697", "0.531", "0.4697", "0.5444", "0.0801", "0.5444" ], [ "0.5024", "0.531", "0.892", "0.531", "0.892", "0.5444", "0.5024", "0.5444" ], [ "0.0237", "0.5444", "0.05554", "0.5435", "0.058", "0.587", "0.02696", "0.5884" ], [ "0.0801", "0.5454", "0.4697", "0.5454", "0.4697", "0.5596", "0.0801", "0.5596" ], [ "0.5024", "0.5454", "0.892", "0.5454", "0.892", "0.5596", "0.5024", "0.5596" ], [ "0.0801", "0.561", "0.4697", "0.561", "0.4697", "0.5747", "0.0801", "0.5747" ], [ "0.5034", "0.561", "0.892", "0.561", "0.892", "0.5747", "0.5034", "0.5747" ], [ "0.0801", "0.577", "0.468", "0.577", "0.468", "0.5903", "0.0801", "0.5903" ], [ "0.5024", "0.577", "0.892", "0.577", "0.892", "0.5903", "0.5024", "0.5903" ], [ "0.02533", "0.587", "0.05637", "0.587", "0.05637", "0.634", "0.02533", "0.634" ], [ "0.0801", "0.5913", "0.4697", "0.5913", "0.4697", "0.605", "0.0801", "0.605" ], [ "0.5024", "0.5913", "0.892", "0.5913", "0.892", "0.605", "0.5024", "0.605" ], [ "0.0801", "0.606", "0.4697", "0.606", "0.4697", "0.619", "0.0801", "0.619" ], [ "0.5024", "0.606", "0.8936", "0.606", "0.8936", "0.619", "0.5024", "0.619" ], [ "0.0801", "0.622", "0.4697", "0.622", "0.4697", "0.6353", "0.0801", "0.6353" ], [ "0.5024", "0.622", "0.892", "0.622", "0.892", "0.6353", "0.5024", "0.6353" ], [ "0.0801", "0.636", "0.468", "0.636", "0.468", "0.6494", "0.0801", "0.6494" ], [ "0.02124", "0.6226", "0.05963", "0.622", "0.0637", "0.711", "0.02533", "0.712" ], [ "0.5024", "0.636", "0.8906", "0.636", "0.8906", "0.6494", "0.5024", "0.6494" ], [ "0.0801", "0.6514", "0.468", "0.6514", "0.468", "0.6655", "0.0801", "0.6655" ], [ "0.5024", "0.6514", "0.892", "0.6514", "0.892", "0.6655", "0.5024", "0.6655" ], [ "0.0801", "0.6675", "0.4697", "0.6675", "0.4697", "0.681", "0.0801", "0.681" ], [ "0.5024", "0.6665", "0.876", "0.6665", "0.876", "0.6797", "0.5024", "0.6797" ], [ "0.0801", "0.6816", "0.4697", "0.6816", "0.4697", "0.696", "0.0801", "0.696" ], [ "0.5215", "0.683", "0.8906", "0.683", "0.8906", "0.6963", "0.5215", "0.6963" ], [ "0.0784", "0.696", "0.4697", "0.6963", "0.4697", "0.711", "0.0784", "0.7104" ], [ "0.5024", "0.6987", "0.892", "0.6987", "0.892", "0.712", "0.5024", "0.712" ], [ "0.0801", "0.712", "0.4697", "0.712", "0.4697", "0.726", "0.0801", "0.726" ], [ "0.5", "0.712", "0.863", "0.7134", "0.863", "0.728", "0.5", "0.7266" ], [ "0.0801", "0.728", "0.3022", "0.728", "0.3022", "0.741", "0.0801", "0.741" ], [ "0.5024", "0.7393", "0.5864", "0.741", "0.5864", "0.757", "0.5024", "0.755" ], [ "0.0809", "0.7583", "0.2075", "0.7583", "0.2075", "0.773", "0.0809", "0.773" ], [ "0.523", "0.765", "0.892", "0.765", "0.892", "0.78", "0.523", "0.78" ], [ "0.0801", "0.782", "0.1969", "0.782", "0.1969", "0.797", "0.0801", "0.797" ], [ "0.5", "0.781", "0.8906", "0.78", "0.8906", "0.7944", "0.5", "0.7954" ], [ "0.5024", "0.797", "0.8906", "0.797", "0.8906", "0.81", "0.5024", "0.81" ], [ "0.09644", "0.8037", "0.468", "0.8047", "0.468", "0.8193", "0.09644", "0.8184" ], [ "0.5024", "0.811", "0.892", "0.811", "0.892", "0.8247", "0.5024", "0.8247" ], [ "0.0801", "0.821", "0.4697", "0.821", "0.4697", "0.834", "0.0801", "0.834" ], [ "0.5024", "0.827", "0.892", "0.827", "0.892", "0.8403", "0.5024", "0.8403" ], [ "0.0825", "0.837", "0.468", "0.837", "0.468", "0.8477", "0.0825", "0.8477" ], [ "0.5024", "0.8413", "0.892", "0.8413", "0.892", "0.855", "0.5024", "0.855" ], [ "0.0801", "0.851", "0.4697", "0.851", "0.4697", "0.8643", "0.0801", "0.8643" ], [ "0.5024", "0.857", "0.892", "0.857", "0.892", "0.8706", "0.5024", "0.8706" ], [ "0.0801", "0.866", "0.4697", "0.866", "0.4697", "0.88", "0.0801", "0.88" ], [ "0.5024", "0.872", "0.892", "0.872", "0.892", "0.8853", "0.5024", "0.8853" ], [ "0.1054", "0.887", "0.2214", "0.887", "0.2214", "0.901", "0.1054", "0.901" ], [ "0.5024", "0.887", "0.892", "0.887", "0.892", "0.901", "0.5024", "0.901" ] ]
[ "Reviewing 3D Object Detectors in the Context of High-Resolution 3+1D Radar", "Patrick Palmerl *, Martin Kruegerl *, Richard Altendorfer?, Ganesh Adam?, Torsten Bertram'", "1 TU Dortmund University, Germany", "2ZFGroup", "(patrick.palmer,martin2.krueger,torsten.bertram)@tu-dortmund.de", "(richard.altendorfer, ganesh.adam)@zf.com", "", "Abstract", "benefit is that the camera signals are easily interpretable", "Sy", "by humans, allowing for an easy examination of detection", "Recent developments and the beginning market introduc-", "results. One negative aspect of camera sensors is that they", "tion of high-resolution imaging 4D (3+1D) radar sensors", "do not allow for a precise measurement of distances and", "have initialized deep learning-based radar perception re", "velocities. Lidar sensors use laser beams and measure the", "0", "search. We investigate deep learning-based models operat-", "time-of-flightofreflectedbeamsfromdetectedobjects.The", "ing on radar point clouds for 3D object detection.3D object", "advantages of this sensor type are the very accurate range", "detection on lidar point cloud data is a mature area of 3D vi-", "measurement and its possibility to get a comparatively dense", "", "sion. Many different architectures have been proposed, each", "representation of the scene as a point cloud. Adversely", "with strengths and weaknesses. Due to similarities between", "forlidarisitshighcosts,whichpreventeditsuseinmass", "3D lidar point clouds and 3+1D radar point clouds, those", "production vehicles until recently. Some of these problems", "S", "existing 3D object detectors are a natural basis to start deep", "can be solved with radar sensors. Compared to camera and", "learning-based 3D object detection on radar data. Thus,", "lidarsensors.radarhas uniguebenefits.Cameraandlidar", "the first step is to analyze the detection performance of the", "sensors provide a high angular resolution but suffer in view", "existing models on the new data modality and evaluate them", "range, whereas radar exceeds them and can therefore sup-", "in depth.In order to apply existing 3D point cloud object de-", "A8Lt", "plementtheothersensors.Radarsensorsprovideadirect", "tectors developed for lidar point clouds to the radar domain,", "measurement of the Doppler velocity. This can be used to", "t5", "they need to be adapted first. While some detectors, such", "separate moving objects from one another and to distinguish", "as PointPillars, have already been adapted to be applicable", "static objects. The large wavelength of the radar is advan-", "to radar data, we have adapted others, e.g., Voxel R-CNN", "tageous in adverse weather conditions like snow, rain, fog", "800", "SECOND, PointRCNN, and PV-RCNN. To this end, we con-", "or poor lighting conditions, where the other sensors could", "duct a cross-model validation (evaluating a set of models on", "suffer. Radar sensors are also cost-efficient. One problem of", "one particular data set) as well as a cross-data set validation", "current series production radar sensors is the sparsity of the", "(evaluating all models in the model set on several data sets)", "AIXIE", "measurements. This issue is alleviated by current advances", "The high-resolution radar data used are the View-of-Delf", "in high-resolution 3+1D radar technology, which enable an", "and Astyx data sets. Finally, we evaluate several adapta-", "increased field-of-view and a higher elevation resolution.", "tions of the models and their training procedures. We also", "Different perception tasks are typically investigated for", "discuss major factors influencing the detection performance", "camera and point cloud data (lidar and radar). However, we", "on radar data and propose possible solutions indicating", "only focus on 3D bounding box detection in this paper.", "potential future research avenues.", "1.2. Radar", "1.Introduction", "Data ProcessingRadar sensors use electro-magnetic", "1.1. Perception", "waves in the radio waves spectrum of 24GHz as well as", "77-81GHz. In order to determine the distance to objects, the", "The three most common exteroceptive sensors currently", "radio frequency must be varied; the most common method", "used for automated driving tasks are camera, lidar, and radar", "is the periodic continuous frequency variation (Frequency", "Camera sensors use sequentialimages (video)tocapturethe", "Modulated Continuous Wave: FMCW). Angular resolution", "scene. Cameras have the advantage that they are compara-", "depends upon the number of transmitting and receiving an-", "tively cheap and widely used in different domains. Another", "tennae whose combinations form virtual channels for pro-", "*Equal Contribution.", "vision of angular information. Fig. 1 shows the high-level" ]
{ "arxiv_id": "2308.05478", "language": "en", "page_idx": 0 }
2308.05478-en-1
2308.05478-en-1.jpg
building blocks of a typical 3+1D (radial range, radial velocity, azimuth angle, elevation angle) automotive radar sensor. Radar Data Representation Formats There are two main representations of radar measurements that are used for object detection, the Range-Azimuth-(Elevation-)Doppler (RA( E) D) spectrum, which is derived from the raw radar time signal using a Fast Fourier Transformation (FFT), and the point cloud representation. The point cloud can be derived from the RA(E)D spectra using, for example, a Constant False Alarm Rate (CFAR) detector [32]. Both representations have unique benefits. The RA(E)D spectra contain more information than the point cloud but require more computational resources and larger data bandwidths. Point clouds, on the other hand, have the advantage of being more computationally efficient and are widely used in lidar point cloud detection. Since we want to directly adapt those models to radar point cloud data, we neglect models working on RA(E)D spectrum data for the rest of our paper. ## 1.3. Contribution As a conclusion from the previous thoughts, the following research question is raised: How accurate are existing 3D $object\textit{ detectors compared on 3+ 1D high- resolution radar}$ $point\textit{ cloud data? Therefore, our main contributions are: }$ · adapt point-, voxel- and point-voxel-based 3D object detectors and their respective training configurations to radar data (including but also extending previous adaptations of the Voxel Feature Encoder (VFE)[26]), $\bullet$ training ten 3D object detectors on the View-of-Delft (VoD) data set[26] and evaluating them deeply, and · fine-tune the trained models on the Astyx data set[20] and conduct a detailed evaluation. ## $2. \textbf{State- of- the- Art for 3D Point Cloud Detection}$ $\mathbf{Approaches}$ According to the surveys[19,50] on lidar point cloudbased object detection, the following architectures can be distinguished: point-based, voxel-based, pillar-based, and dual representation-based (point-voxel and point-pillar-based), classified by the data processing format. On the other hand,[34] compares different detection approaches on radar data. The presented and evaluated models are mostly hand-crafted and contain much featureengineering such as the definition of the three input channels of the grid map for a 2D CNN-based detector. While PointPillars [17] seems to be the most popular model of the family of pillar-based architectures in [50], the other models from [34] cannot be easily assigned to typical endto-end trainable model families from [19,50]. Two of the evaluated models contain PointNet++[29] and the YOLOv3- based [31] architecture similar to PIXOR [47]. Recent approaches like CenterFusion [22] and PointPillars-Radar [26] demonstrate that 3D point cloud detectors initially developed for lidar perception can be adapted to high-resolution imaging radar point cloud data. We focus our investigation on established models initially developed for lidar. However, acknowledging the effort and valuable insights of the investigations from [34], we would like to extend their comparison of different detectors on radar data. We also want to relate our results to the general findings for lidar [50] and radar object detection [34]. Next, the three classes of point cloud detection models defined by [50] and later used in our experimental evaluation are briefly introduced. Five of the models are two-stage, and five are one-stage detectors. Additionally, general patterns characterizing their lidar perception results are provided. This information should be considered later when evaluating the performance on the radar data. ## 2.1. Point-based Point-based methods usually follow the classic pipeline of alternately down-sampling the original point cloud, encoding in the backbone network, and finally, applying a detection head. For feature encoding or learning in the backbone network, PointNet[28] or PointNet++[29] are often used, applying a cascade of feature aggregation with Multilayer Perceptrons (MLPs) and max-pooling layers to learn local structures. PointNet modules are often used to build an encoder-decoder structure within specific architectures. Point-RCNN PointRCNN[39] is a two-stage object detector. The first stage of classic point-based models is extended by foreground-background segmentation. This segmentation information is then concatenated to the encoded point features for generating 3D Region-of-Interests (RoIs) $\hat{\text{that are cleaned up by Non-Maximum Suppression (NMS)}}.$ In the second stage, those RoIs are extended, and another round of feature encoding is done. Finally, the detection head outputs a confidence score and a refined bounding box. $3\mathbf{DSSD}$ $3\mathbf{DSSD}$ 3DSSD [48] is a point-based one-stage detector. The model successfully removes the feature propagation layers in the backbone network required by other point-based detectors for upsampling features. A fusion sampling strategy compensates for this by combining standard distance-based furthest-point-sampling (FPS) and featureFPS. Furthermore, the proposed candidate generation layer and center-ness assignment strategy enable the removal of the refinement stage, which reduces the inference time. Evaluation for Lidar (and Radar) Point Clouds According to[50], point-based detectors are generally assessed as overall satisfactory, but their real-time capabilities are questioned due to their two-stage structure. 3DSSD [48] as one-stage model, has a runtime of just 38 ms while reaching detection accuracies comparable to the best-performing point and voxel-based two-stage detectors. The results of 2
[ [ "0.0801", "0.09216", "0.4714", "0.09216", "0.4714", "0.1061", "0.0801", "0.1061" ], [ "0.5195", "0.0903", "0.8164", "0.0903", "0.8164", "0.1048", "0.5195", "0.1048" ], [ "0.8105", "0.09344", "0.8906", "0.09344", "0.8906", "0.1048", "0.8105", "0.1048" ], [ "0.0784", "0.108", "0.4714", "0.1067", "0.4714", "0.1206", "0.0784", "0.1218" ], [ "0.5024", "0.1067", "0.892", "0.1067", "0.892", "0.1206", "0.5024", "0.1206" ], [ "0.10046", "0.125", "0.468", "0.125", "0.468", "0.1351", "0.10046", "0.1351" ], [ "0.5024", "0.1225", "0.892", "0.1225", "0.892", "0.1364", "0.5024", "0.1364" ], [ "0.0809", "0.1395", "0.468", "0.1395", "0.468", "0.1497", "0.0809", "0.1497" ], [ "0.501", "0.1383", "0.884", "0.1383", "0.884", "0.1515", "0.501", "0.1515" ], [ "0.0801", "0.1528", "0.4697", "0.1528", "0.4697", "0.1666", "0.0801", "0.1666" ], [ "0.523", "0.154", "0.8896", "0.154", "0.8896", "0.1674", "0.523", "0.1674" ], [ "0.0809", "0.1692", "0.4673", "0.1692", "0.4673", "0.1799", "0.0809", "0.1799" ], [ "0.5024", "0.1686", "0.892", "0.1686", "0.892", "0.1818", "0.5024", "0.1818" ], [ "0.0801", "0.1831", "0.468", "0.1831", "0.468", "0.1963", "0.0801", "0.1963" ], [ "0.5024", "0.1843", "0.892", "0.1843", "0.892", "0.1976", "0.5024", "0.1976" ], [ "0.0809", "0.1995", "0.468", "0.1995", "0.468", "0.2102", "0.0809", "0.2102" ], [ "0.5024", "0.1989", "0.892", "0.1989", "0.892", "0.2122", "0.5024", "0.2122" ], [ "0.0801", "0.2134", "0.4722", "0.2134", "0.4722", "0.2267", "0.0801", "0.2267" ], [ "0.5034", "0.2153", "0.8906", "0.2153", "0.8906", "0.226", "0.5034", "0.226" ], [ "0.0784", "0.2267", "0.4697", "0.2279", "0.4697", "0.2424", "0.0784", "0.2412" ], [ "0.5024", "0.2291", "0.8545", "0.2291", "0.8545", "0.2424", "0.5024", "0.2424" ], [ "0.0801", "0.2437", "0.468", "0.2437", "0.468", "0.2568", "0.0801", "0.2568" ], [ "0.523", "0.2443", "0.8906", "0.2443", "0.8906", "0.2583", "0.523", "0.2583" ], [ "0.0809", "0.26", "0.468", "0.26", "0.468", "0.2708", "0.0809", "0.2708" ], [ "0.5024", "0.26", "0.892", "0.26", "0.892", "0.2734", "0.5024", "0.2734" ], [ "0.0801", "0.2734", "0.468", "0.2734", "0.468", "0.2874", "0.0801", "0.2874" ], [ "0.5024", "0.2747", "0.892", "0.2747", "0.892", "0.2886", "0.5024", "0.2886" ], [ "0.0784", "0.289", "0.4697", "0.289", "0.4697", "0.303", "0.0784", "0.303" ], [ "0.5024", "0.2903", "0.892", "0.2903", "0.892", "0.3037", "0.5024", "0.3037" ], [ "0.0801", "0.3037", "0.4697", "0.3037", "0.4697", "0.3176", "0.0801", "0.3176" ], [ "0.5024", "0.3062", "0.8936", "0.3062", "0.8936", "0.3193", "0.5024", "0.3193" ], [ "0.0809", "0.3208", "0.468", "0.3208", "0.468", "0.3308", "0.0809", "0.3308" ], [ "0.501", "0.318", "0.892", "0.3208", "0.892", "0.3352", "0.501", "0.3333" ], [ "0.0801", "0.334", "0.4697", "0.334", "0.4697", "0.348", "0.0801", "0.348" ], [ "0.5034", "0.3372", "0.728", "0.3372", "0.728", "0.348", "0.5034", "0.348" ], [ "0.0801", "0.3499", "0.3945", "0.3499", "0.3945", "0.363", "0.0801", "0.363" ], [ "0.5034", "0.361", "0.6274", "0.361", "0.6274", "0.3757", "0.5034", "0.3757" ], [ "0.0801", "0.3726", "0.2141", "0.3726", "0.2141", "0.3865", "0.0801", "0.3865" ], [ "0.5195", "0.3838", "0.892", "0.385", "0.892", "0.3997", "0.5195", "0.3984" ], [ "0.0972", "0.3945", "0.468", "0.3958", "0.468", "0.4104", "0.0972", "0.4092" ], [ "0.5024", "0.4016", "0.8906", "0.4016", "0.8906", "0.4153", "0.5024", "0.4153" ], [ "0.0809", "0.4136", "0.468", "0.4136", "0.468", "0.4236", "0.0809", "0.4236" ], [ "0.5024", "0.4167", "0.892", "0.4167", "0.892", "0.4312", "0.5024", "0.4312" ], [ "0.0801", "0.4268", "0.468", "0.4268", "0.468", "0.44", "0.0801", "0.44" ], [ "0.5034", "0.433", "0.8906", "0.433", "0.8906", "0.443", "0.5034", "0.443" ], [ "0.0784", "0.4426", "0.451", "0.4426", "0.451", "0.4558", "0.0784", "0.4558" ], [ "0.5024", "0.4463", "0.8936", "0.4463", "0.8936", "0.4602", "0.5024", "0.4602" ], [ "0.0972", "0.464", "0.4697", "0.4634", "0.4697", "0.4778", "0.0972", "0.4792" ], [ "0.5024", "0.4622", "0.8936", "0.4622", "0.8936", "0.476", "0.5024", "0.476" ], [ "0.1095", "0.4792", "0.4714", "0.4797", "0.4714", "0.4944", "0.1095", "0.4937" ], [ "0.5024", "0.4766", "0.8906", "0.4766", "0.8906", "0.4905", "0.5024", "0.4905" ], [ "0.1111", "0.4956", "0.4697", "0.4956", "0.4697", "0.509", "0.1111", "0.509" ], [ "0.5024", "0.4924", "0.892", "0.4924", "0.892", "0.506", "0.5024", "0.506" ], [ "0.1095", "0.509", "0.468", "0.5103", "0.468", "0.5244", "0.1095", "0.5234" ], [ "0.5024", "0.507", "0.8667", "0.507", "0.8667", "0.521", "0.5024", "0.521" ], [ "0.5215", "0.523", "0.892", "0.523", "0.892", "0.536", "0.5215", "0.536" ], [ "0.10046", "0.534", "0.468", "0.534", "0.468", "0.5474", "0.10046", "0.5474" ], [ "0.5024", "0.5386", "0.8936", "0.5386", "0.8936", "0.552", "0.5024", "0.552" ], [ "0.1111", "0.55", "0.4534", "0.55", "0.4534", "0.563", "0.1111", "0.563" ], [ "0.5024", "0.5537", "0.892", "0.5537", "0.892", "0.5674", "0.5024", "0.5674" ], [ "0.10046", "0.5737", "0.4673", "0.5737", "0.4673", "0.587", "0.10046", "0.587" ], [ "0.5024", "0.5684", "0.892", "0.5684", "0.892", "0.582", "0.5024", "0.582" ], [ "0.1111", "0.589", "0.3367", "0.589", "0.3367", "0.603", "0.1111", "0.603" ], [ "0.5034", "0.5854", "0.8906", "0.5854", "0.8906", "0.595", "0.5034", "0.595" ], [ "0.5034", "0.5996", "0.8906", "0.5996", "0.8906", "0.61", "0.5034", "0.61" ], [ "0.0809", "0.617", "0.4673", "0.617", "0.4673", "0.631", "0.0809", "0.631" ], [ "0.5024", "0.613", "0.892", "0.613", "0.892", "0.627", "0.5024", "0.627" ], [ "0.1095", "0.6353", "0.21", "0.6353", "0.21", "0.6494", "0.1095", "0.6494" ], [ "0.505", "0.63", "0.8906", "0.63", "0.8906", "0.64", "0.505", "0.64" ], [ "0.5024", "0.643", "0.8936", "0.643", "0.8936", "0.657", "0.5024", "0.657" ], [ "0.10046", "0.659", "0.4697", "0.659", "0.4697", "0.674", "0.10046", "0.674" ], [ "0.5215", "0.659", "0.892", "0.659", "0.892", "0.6724", "0.5215", "0.6724" ], [ "0.0809", "0.677", "0.468", "0.677", "0.468", "0.6875", "0.0809", "0.6875" ], [ "0.5034", "0.675", "0.892", "0.675", "0.892", "0.688", "0.5034", "0.688" ], [ "0.0801", "0.69", "0.4697", "0.69", "0.4697", "0.704", "0.0801", "0.704" ], [ "0.5024", "0.69", "0.892", "0.69", "0.892", "0.704", "0.5024", "0.704" ], [ "0.0801", "0.7056", "0.4697", "0.7056", "0.4697", "0.7197", "0.0801", "0.7197" ], [ "0.5024", "0.705", "0.892", "0.705", "0.892", "0.7183", "0.5024", "0.7183" ], [ "0.0801", "0.72", "0.3447", "0.72", "0.3447", "0.7344", "0.0801", "0.7344" ], [ "0.5034", "0.72", "0.892", "0.72", "0.892", "0.7344", "0.5034", "0.7344" ], [ "0.0989", "0.735", "0.468", "0.735", "0.468", "0.7485", "0.0989", "0.7485" ], [ "0.5024", "0.735", "0.8906", "0.735", "0.8906", "0.7485", "0.5024", "0.7485" ], [ "0.0801", "0.752", "0.468", "0.752", "0.468", "0.765", "0.0801", "0.765" ], [ "0.5024", "0.7505", "0.892", "0.7505", "0.892", "0.7646", "0.5024", "0.7646" ], [ "0.0809", "0.7676", "0.468", "0.7676", "0.468", "0.778", "0.0809", "0.778" ], [ "0.5024", "0.765", "0.892", "0.765", "0.892", "0.779", "0.5024", "0.779" ], [ "0.0809", "0.7827", "0.468", "0.7827", "0.468", "0.7935", "0.0809", "0.7935" ], [ "0.5024", "0.78", "0.864", "0.78", "0.864", "0.7935", "0.5024", "0.7935" ], [ "0.0801", "0.797", "0.4697", "0.797", "0.4697", "0.81", "0.0801", "0.81" ], [ "0.5215", "0.7954", "0.892", "0.7954", "0.892", "0.8096", "0.5215", "0.8096" ], [ "0.0801", "0.811", "0.468", "0.811", "0.468", "0.8247", "0.0801", "0.8247" ], [ "0.5024", "0.811", "0.892", "0.811", "0.892", "0.8247", "0.5024", "0.8247" ], [ "0.0809", "0.8276", "0.468", "0.8276", "0.468", "0.8384", "0.0809", "0.8384" ], [ "0.5024", "0.827", "0.892", "0.827", "0.892", "0.8403", "0.5024", "0.8403" ], [ "0.0801", "0.8413", "0.468", "0.8413", "0.468", "0.855", "0.0801", "0.855" ], [ "0.5024", "0.8413", "0.892", "0.8413", "0.892", "0.855", "0.5024", "0.855" ], [ "0.0801", "0.858", "0.468", "0.858", "0.468", "0.8687", "0.0801", "0.8687" ], [ "0.5024", "0.858", "0.8906", "0.858", "0.8906", "0.8687", "0.5024", "0.8687" ], [ "0.0801", "0.872", "0.4722", "0.872", "0.4722", "0.8853", "0.0801", "0.8853" ], [ "0.501", "0.8706", "0.892", "0.872", "0.892", "0.886", "0.501", "0.8853" ], [ "0.0768", "0.8853", "0.3857", "0.886", "0.3857", "0.901", "0.0768", "0.8994" ], [ "0.5024", "0.887", "0.892", "0.887", "0.892", "0.901", "0.5024", "0.901" ], [ "0.478", "0.9224", "0.4944", "0.9224", "0.4944", "0.938", "0.478", "0.938" ] ]
[ "building blocks of a typical 3+1D (radial range, radial veloc-", "Recent approaches like CenterFusion", "[22]and", "ity, azimuth angle, elevation angle) automotive radar sensor.", "PointPillars-Radar [26] demonstrate that 3D point cloud", "RadarData RepresentationFormatsThere aretwo", "detectors initially developed for lidar perception can be", "mainrepresentationsofradarmeasurementsthatareusedfor", "adapted to high-resolution imaging radar point cloud data.", "object detection, the Range-Azimuth-(Elevation-)Doppler", "We focus our investigation on established models initially", "(RA(E)D)spectrum,whichisderivedfromtherawradar", "developed for lidar. However, acknowledging the effort and", "time signal using a Fast Fourier Transformation (FFT), and", "valuable insights of the investigations from [34], we would", "thepointcloud representation.Thepointcloud can be de", "like to extend their comparison of different detectors on", "rived from the RA(E)D spectra using, for example, a Con-", "radar data.Wealso want torelate our results to the general", "stant False Alarm Rate (CFAR) detector [32]. Both represen-", "findings for lidar [50] and radar object detection [34].", "tations have unique benefits. The RA(E)D spectra contain", "Next, the three classes of point cloud detection models", "more information than thepoint cloud butrequiremore", "defined by [50J and later used in our experimental evaluation", "computational resources and larger data bandwidths.Point", "are briefly introduced. Five of the models are two-stage, and", "clouds, on the other hand, have the advantage of being more", "five are one-stage detectors. Additionally, general patterns", "computationally efficient and are widely used in lidar point", "characterizing their lidar perception results are provided.", "clouddetection.Sincewewanttodirectlyadaptthosemod-", "This information should be considered later when evaluating", "els to radar point cloud data, we neglect models working on", "the performance on the radardata.", "RA(E)D spectrum data for the rest of our paper.", "2.1. Point-based", "1.3. Contribution", "Point-based methods usuallyfollow the classic pipeline of", "As a conclusion from the previous thoughts, thefollowing", "alternately down-sampling the original point cloud, encoding", "research question is raised: How accurate are existing 3D", "in the backbone network, and finally, applying a detection", "object detectors compared on 3+1D high-resolution radar", "head.Forfeature encoding or learningin thebackbone", "point cloud data? Therefore, our main contributions are:", "network, PointNet [28] or PointNet++ [29] are often used,", ": adapt point-, voxel- and point-voxel-based 3D object", "applying a cascade of feature aggregation with Multilayer", "detectors and their respective training configurations", "Perceptrons (MLPs) and max-pooling layers to learn local", "to radar data (including but also extending previous", "structures. PointNet modules are often used to build an", "adaptations of the Voxel Feature Encoder (VFE) [26]),", "encoder-decoder structure within specific architectures.", "Point-RCNNPointRCNN [39] is a two-stage object", ". training ten 3D object detectors on the View-of-Delft", "detector. The first stage of classic point-based models is", "(VoD) data set [26] and evaluating them deeply, and", "extended by foreground-background segmentation. This seg-", "• fine-tune the trained models on the Astyx data set [20]", "mentation information is then concatenated to the encoded", " and conduct a detailed evaluation.", "pointfeaturesforgenerating3DRegion-of-Interests(Rols)", "thatarecleanedupbyNon-MaximumSuppression(NMS)", "2.State-of-the-Artfor3DPoint Cloud Detection", "In the second stage, those Rols are extended, and another", "Approaches", "roundof feature encoding is done.Finally,thedetection", "head outputs a confidence score and a refined bounding box.", "According to the surveys [19, 50] on lidar point cloud-", "3DSSD3DSSD [48] is a point-based one-stage de-", "basedobject detection,thefollowing architectures can be dis", "tector. The model successfully removes the feature prop-", "tinguished: point-based, voxel-based, pillar-based, and dual", "agation layers in the backbone network required by other", "representation-based (point-voxel and point-pillar-based),", "point-based detectors for upsampling features. A fusion sam-", "classified by the data processing format.", "pling strategy compensates for this by combining standard", "On the other hand, [34] compares different detection", "distance-based furthest-point-sampling (FPS) and feature", "approaches on radar data.The presented and evaluated", "FPS. Furthermore, the proposed candidate generation layer", "modelsaremostlyhand-craftedandcontainmuchfeature-", "and center-ness assignment strategy enable the removal of", "engineering such as the definition of the three input chan", "the refinement stage, which reduces the inference time.", "nels of the grid map for a 2D CNN-based detector. While", "Evaluation for Lidar (and Radar) Point CloudsAc-", "PointPillars [17] seems to be the most popular model of", "cording to [50], point-based detectors are generally assessed", "the family of pillar-based architectures in50l,the other", "as overall satisfactory, but their real-time capabilities are", "models from [34] cannot be easily assigned to typical end-", "questioned due to their two-stage structure. 3DSSD [48] as", "to-endtrainablemodelfamiliesfrom[19,50l.Twoofthe", "one-stage model, has a runtime of just 38ms whilereach-", "evaluated models contain PointNet++ [29] and the YOLOv3-", "ing detection accuracies comparable to the best-performing", "based [3]] architecture similar to PIXOR [47].", "point and voxel-based two-stage detectors. The results of", "2" ]
{ "arxiv_id": "2308.05478", "language": "en", "page_idx": 1 }
2308.05478-en-2
2308.05478-en-2.jpg
<FigureHere> Figure 1. Overview of radar sensor data processing pipeline. See [5,27,43] for a more detailed description. ADC: Analog-to-Digital Converter, FFT: Fast Fourier Transformation, DC: Data Conversion, Demo: Demodulation, PD: Peak Detection the two models containing PointNet and PointNet+ from the RadarScenes data set[36] in [34] are ambiguous since one of the models performed second best and the other one second worst. However, a detailed evaluation revealed that at least for the second-worst model, the DBSCAN-based cluster stage in this non-end-to-end trainable model accounts for the weak performance, limiting the significance of these results for evaluating PointNet and PointNet-based models. ## 2.2. Voxel-based convolutional backbone networks to generate anchor-based 3D bounding box proposals. Next, a fixed-size voxel grid around each object proposal is selected, represented by its center point. Then the newly proposed voxel query operation is applied to utilize the data's structure to gain efficiency. Finally, an adaptation of PointNet [28] aggregates information from the query to feed it into the final fully connected (FC) layer to generate object detections. Evaluation for Lidar Point Clouds Referring to[50], voxel-based models reach state-of-the-art or top detection performances. Inference time depends upon two criteria. First, the larger the used 3D convolutional backbone network is, the more accurate the detections become but at the cost of inference time. Contrary, focusing more on the 2D convolutional backbone instead of the 3D modules leads to faster inference but at the cost of detection accuracy, at least in 3D evaluations. The second main influence comes with respect to using one and two-stage detectors. One-stage detectors are historically faster. Recently, with [7], a two-stage detector could reach almost an inference time of one-stage detectors with the additional benefit of enhanced accuracy. ## 2.3. Pillar-based Voxel-based approaches first transform the continuous point cloud into a 3D cube of equally sized discrete voxels. Afterward, the points within a voxel are encoded by a VFE. Then, the voxelized data gets processed by a 3D (sparse) convolutional backbone network before the detection header finally derives 3D detections. Sparse convolutions [11] only apply their computations to the parts of the input data that are non-empty. Due to the nature of 3D lidar data, most of the derived voxels are empty, leading to an enormous computational and storage overhead if not implemented intelligently, i.e., using sparse convolutions. SECOND SECOND (Sparsely Embedded CONvolutional Detection)[44] is a one-stage detection model that utilizes sparse 3D convolutional operations and introduces additional improvements during training, such as sine-error loss for yaw angle regression. Its 2D convolutional detection head consumes the output of the sparse 3D convolution backbone and then derives its object detections from an anchor-free Region Proposal Network (RPN). Part A$^2$ Part A$^{\hat{2}}$(part-aware and part-aggregation net)[40] is a two-stage detector that has an anchor-free and an anchor-based configuration, both sharing the same remaining architecture. The first stage that generates detection proposals is implemented as an encoder-decoder structure using the 3D CNN UNet[33] approach, followed by a sparse 3D convolutional backbone network. In the second stage, the detection proposals are refined considering spatial relations using RoI-aware pooling and a sparse 3D CNN. Voxel R-CNN Voxel R-CNN[7] is a two-stage detector whose first stage uses standard sparse 3D and 2D Pillars are a special form of voxels, spanned over the entire height along the $z$ dimension in a Cartesian coordinate system. Therefore, points are not sorted in separate cells according to their vertical position. Instead, all points inside a pillar are encoded, usually by a PointNet-like[28] architecture. The encoded features are then interpreted as channels in a grid-map representation processed by a 2D CNN architecture to generate detections. PointPillars PointPillars[17] is a one-stage detector The VFE is based on the respective module from [54] and takes nine point attributes as input. The 2D CNN module is followed by an anchor-free RPN that directly outputs a 3D bounding box and a confidence score for each classification. CenterPoint CenterPoint[49] is a two-stage point cloud detection approach that operates on pillar or voxel data representation. The pillar-based implementation uses PointPillars to construct a bird's-eye-view (BEV) interme- 3
[ [ "0.4673", "0.09344", "0.5415", "0.09344", "0.5415", "0.1042", "0.4673", "0.1042" ], [ "0.3816", "0.1092", "0.4102", "0.1092", "0.4102", "0.1218", "0.3816", "0.1218" ], [ "0.5767", "0.1092", "0.6055", "0.1092", "0.6055", "0.1218", "0.5767", "0.1218" ], [ "0.722", "0.1092", "0.774", "0.1092", "0.774", "0.1206", "0.722", "0.1206" ], [ "0.304", "0.11554", "0.3367", "0.11554", "0.3367", "0.127", "0.304", "0.127" ], [ "0.4534", "0.11554", "0.5293", "0.11554", "0.5293", "0.127", "0.4534", "0.127" ], [ "0.3733", "0.1206", "0.4192", "0.1206", "0.4192", "0.1351", "0.3733", "0.1351" ], [ "0.2157", "0.1206", "0.2737", "0.1225", "0.2737", "0.1338", "0.2157", "0.132" ], [ "0.5664", "0.1218", "0.619", "0.1218", "0.619", "0.1332", "0.5664", "0.1332" ], [ "0.7075", "0.1218", "0.7876", "0.1218", "0.7876", "0.132", "0.7075", "0.132" ], [ "0.4631", "0.1256", "0.517", "0.1276", "0.517", "0.1401", "0.4631", "0.1383" ], [ "0.3022", "0.1276", "0.3381", "0.1276", "0.3381", "0.1395", "0.3022", "0.1395" ], [ "0.4355", "0.1276", "0.4429", "0.1332", "0.4355", "0.1383", "0.429", "0.1332" ], [ "0.6504", "0.13", "0.6685", "0.13", "0.6685", "0.137", "0.6504", "0.137" ], [ "0.5645", "0.132", "0.6177", "0.1338", "0.6167", "0.1483", "0.564", "0.1465" ], [ "0.282", "0.132", "0.2893", "0.132", "0.2893", "0.1364", "0.282", "0.1364" ], [ "0.6284", "0.132", "0.6357", "0.132", "0.6357", "0.1351", "0.6284", "0.1351" ], [ "0.6846", "0.132", "0.6914", "0.132", "0.6914", "0.1351", "0.6846", "0.1351" ], [ "0.7075", "0.1332", "0.785", "0.1332", "0.785", "0.1445", "0.7075", "0.1445" ], [ "0.3718", "0.1332", "0.4192", "0.1332", "0.4192", "0.1477", "0.3718", "0.1477" ], [ "0.2239", "0.1351", "0.2656", "0.1351", "0.2656", "0.1465", "0.2239", "0.1465" ], [ "0.3057", "0.1401", "0.3367", "0.1401", "0.3367", "0.1528", "0.3057", "0.1528" ], [ "0.4656", "0.1401", "0.5186", "0.1401", "0.5186", "0.1515", "0.4656", "0.1515" ], [ "0.3816", "0.1465", "0.4126", "0.1465", "0.4126", "0.159", "0.3816", "0.159" ], [ "0.576", "0.1465", "0.609", "0.1465", "0.609", "0.1578", "0.576", "0.1578" ], [ "0.705", "0.1477", "0.79", "0.1477", "0.79", "0.1578", "0.705", "0.1578" ], [ "0.2656", "0.1718", "0.357", "0.1718", "0.357", "0.1831", "0.2656", "0.1831" ], [ "0.693", "0.1724", "0.7524", "0.1724", "0.7524", "0.1799", "0.693", "0.1799" ], [ "0.3423", "0.1901", "0.3857", "0.1901", "0.3857", "0.202", "0.3423", "0.202" ], [ "0.2279", "0.1963", "0.3015", "0.1989", "0.3015", "0.2102", "0.2279", "0.2084" ], [ "0.3057", "0.2058", "0.3203", "0.2026", "0.3245", "0.2134", "0.308", "0.2166" ], [ "0.335", "0.2039", "0.392", "0.2039", "0.392", "0.2153", "0.335", "0.2153" ], [ "0.3367", "0.2153", "0.3938", "0.2172", "0.3938", "0.2299", "0.3367", "0.2279" ], [ "0.2427", "0.2084", "0.286", "0.2102", "0.2852", "0.2247", "0.2418", "0.2229" ], [ "0.0801", "0.2507", "0.892", "0.2507", "0.892", "0.2644", "0.0801", "0.2644" ], [ "0.0784", "0.2651", "0.738", "0.2651", "0.738", "0.279", "0.0784", "0.279" ], [ "0.0801", "0.2935", "0.4697", "0.2935", "0.4697", "0.307", "0.0801", "0.307" ], [ "0.501", "0.2935", "0.892", "0.2935", "0.892", "0.307", "0.501", "0.307" ], [ "0.0809", "0.31", "0.468", "0.31", "0.468", "0.3208", "0.0809", "0.3208" ], [ "0.5024", "0.3093", "0.892", "0.3093", "0.892", "0.3225", "0.5024", "0.3225" ], [ "0.0784", "0.324", "0.468", "0.324", "0.468", "0.3372", "0.0784", "0.3372" ], [ "0.5024", "0.324", "0.892", "0.324", "0.892", "0.3372", "0.5024", "0.3372" ], [ "0.0801", "0.339", "0.4697", "0.339", "0.4697", "0.3528", "0.0801", "0.3528" ], [ "0.501", "0.339", "0.892", "0.339", "0.892", "0.3528", "0.501", "0.3528" ], [ "0.0784", "0.3542", "0.4697", "0.3542", "0.4697", "0.3674", "0.0784", "0.3674" ], [ "0.5024", "0.3542", "0.8936", "0.3542", "0.8936", "0.3687", "0.5024", "0.3687" ], [ "0.0809", "0.3706", "0.4673", "0.3706", "0.4673", "0.3806", "0.0809", "0.3806" ], [ "0.5034", "0.3706", "0.8906", "0.3706", "0.8906", "0.3806", "0.5034", "0.3806" ], [ "0.0784", "0.3838", "0.4697", "0.3838", "0.4697", "0.3977", "0.0784", "0.3977" ], [ "0.5024", "0.3838", "0.892", "0.3838", "0.892", "0.3977", "0.5024", "0.3977" ], [ "0.0784", "0.3984", "0.468", "0.3984", "0.468", "0.4124", "0.0784", "0.4124" ], [ "0.5034", "0.401", "0.7305", "0.401", "0.7305", "0.411", "0.5034", "0.411" ], [ "0.5215", "0.414", "0.892", "0.414", "0.892", "0.428", "0.5215", "0.428" ], [ "0.0784", "0.4224", "0.2051", "0.4236", "0.2051", "0.4382", "0.0784", "0.4375" ], [ "0.501", "0.43", "0.8906", "0.43", "0.8906", "0.443", "0.501", "0.443" ], [ "0.0989", "0.4475", "0.4714", "0.4475", "0.4714", "0.461", "0.0989", "0.461" ], [ "0.5034", "0.4458", "0.892", "0.4458", "0.892", "0.459", "0.5034", "0.459" ], [ "0.0801", "0.4634", "0.4722", "0.4634", "0.4722", "0.4766", "0.0801", "0.4766" ], [ "0.5024", "0.4602", "0.892", "0.4602", "0.892", "0.4734", "0.5024", "0.4734" ], [ "0.0801", "0.4778", "0.4697", "0.4778", "0.4697", "0.4912", "0.0801", "0.4912" ], [ "0.5024", "0.4766", "0.8906", "0.4766", "0.8906", "0.4873", "0.5024", "0.4873" ], [ "0.0801", "0.4937", "0.4697", "0.4937", "0.4697", "0.507", "0.0801", "0.507" ], [ "0.5034", "0.4912", "0.8906", "0.4912", "0.8906", "0.502", "0.5034", "0.502" ], [ "0.0809", "0.5103", "0.468", "0.5103", "0.468", "0.521", "0.0809", "0.521" ], [ "0.5024", "0.505", "0.8936", "0.505", "0.8936", "0.518", "0.5024", "0.518" ], [ "0.0801", "0.5234", "0.468", "0.5234", "0.468", "0.537", "0.0801", "0.537" ], [ "0.5024", "0.521", "0.892", "0.521", "0.892", "0.534", "0.5024", "0.534" ], [ "0.0801", "0.539", "0.4697", "0.539", "0.4697", "0.553", "0.0801", "0.553" ], [ "0.501", "0.534", "0.8906", "0.534", "0.8906", "0.5474", "0.501", "0.5474" ], [ "0.0801", "0.5537", "0.4697", "0.5537", "0.4697", "0.5674", "0.0801", "0.5674" ], [ "0.5024", "0.5503", "0.892", "0.5503", "0.892", "0.5645", "0.5024", "0.5645" ], [ "0.0801", "0.5684", "0.4697", "0.5684", "0.4697", "0.582", "0.0801", "0.582" ], [ "0.5024", "0.565", "0.892", "0.565", "0.892", "0.579", "0.5024", "0.579" ], [ "0.0784", "0.584", "0.468", "0.584", "0.468", "0.5977", "0.0784", "0.5977" ], [ "0.5024", "0.58", "0.892", "0.58", "0.892", "0.5933", "0.5024", "0.5933" ], [ "0.0784", "0.5996", "0.282", "0.5996", "0.282", "0.613", "0.0784", "0.613" ], [ "0.5024", "0.5967", "0.886", "0.5967", "0.886", "0.61", "0.5024", "0.61" ], [ "0.0972", "0.613", "0.468", "0.613", "0.468", "0.627", "0.0972", "0.627" ], [ "0.5024", "0.6187", "0.6284", "0.6206", "0.6284", "0.6353", "0.5024", "0.6333" ], [ "0.0801", "0.63", "0.4697", "0.63", "0.4697", "0.643", "0.0801", "0.643" ], [ "0.0801", "0.643", "0.468", "0.643", "0.468", "0.657", "0.0801", "0.657" ], [ "0.5195", "0.6426", "0.892", "0.643", "0.892", "0.6577", "0.5195", "0.657" ], [ "0.0801", "0.659", "0.4697", "0.659", "0.4697", "0.6724", "0.0801", "0.6724" ], [ "0.5024", "0.66", "0.892", "0.66", "0.892", "0.674", "0.5024", "0.674" ], [ "0.0801", "0.675", "0.4714", "0.675", "0.4714", "0.688", "0.0801", "0.688" ], [ "0.501", "0.674", "0.8906", "0.674", "0.8906", "0.6875", "0.501", "0.6875" ], [ "0.0784", "0.69", "0.4697", "0.69", "0.4697", "0.704", "0.0784", "0.704" ], [ "0.5024", "0.69", "0.892", "0.69", "0.892", "0.704", "0.5024", "0.704" ], [ "0.0784", "0.705", "0.4697", "0.705", "0.4697", "0.7183", "0.0784", "0.7183" ], [ "0.5024", "0.705", "0.892", "0.705", "0.892", "0.7183", "0.5024", "0.7183" ], [ "0.0784", "0.7183", "0.38", "0.7183", "0.38", "0.732", "0.0784", "0.732" ], [ "0.5034", "0.7217", "0.8906", "0.7217", "0.8906", "0.732", "0.5034", "0.732" ], [ "0.1609", "0.7344", "0.468", "0.7363", "0.468", "0.75", "0.1609", "0.7476" ], [ "0.5024", "0.735", "0.892", "0.735", "0.892", "0.7485", "0.5024", "0.7485" ], [ "0.0784", "0.7505", "0.4697", "0.7505", "0.4697", "0.7646", "0.0784", "0.7646" ], [ "0.0989", "0.7363", "0.1666", "0.7344", "0.1666", "0.7456", "0.0989", "0.7476" ], [ "0.5024", "0.7505", "0.7695", "0.7505", "0.7695", "0.7646", "0.5024", "0.7646" ], [ "0.5215", "0.7646", "0.6284", "0.7646", "0.6284", "0.778", "0.5215", "0.778" ], [ "0.621", "0.765", "0.8936", "0.765", "0.8936", "0.779", "0.621", "0.779" ], [ "0.5", "0.779", "0.892", "0.78", "0.892", "0.7944", "0.5", "0.7935" ], [ "0.0801", "0.7676", "0.468", "0.7676", "0.468", "0.778", "0.0801", "0.778" ], [ "0.0801", "0.781", "0.4714", "0.781", "0.4714", "0.7944", "0.0801", "0.7944" ], [ "0.0784", "0.797", "0.4714", "0.7954", "0.4714", "0.8096", "0.0784", "0.81" ], [ "0.5024", "0.7954", "0.892", "0.7954", "0.892", "0.8096", "0.5024", "0.8096" ], [ "0.0801", "0.811", "0.4697", "0.811", "0.4697", "0.8247", "0.0801", "0.8247" ], [ "0.5034", "0.811", "0.8906", "0.811", "0.8906", "0.8247", "0.5034", "0.8247" ], [ "0.0801", "0.827", "0.468", "0.827", "0.468", "0.8403", "0.0801", "0.8403" ], [ "0.501", "0.8257", "0.892", "0.827", "0.892", "0.8403", "0.501", "0.839" ], [ "0.0801", "0.8413", "0.4714", "0.8413", "0.4714", "0.855", "0.0801", "0.855" ], [ "0.524", "0.8423", "0.621", "0.8423", "0.621", "0.853", "0.524", "0.853" ], [ "0.614", "0.8413", "0.892", "0.8413", "0.892", "0.855", "0.614", "0.855" ], [ "0.0801", "0.857", "0.3945", "0.857", "0.3945", "0.8706", "0.0801", "0.8706" ], [ "0.501", "0.857", "0.8906", "0.857", "0.8906", "0.8706", "0.501", "0.8706" ], [ "0.0989", "0.872", "0.2059", "0.872", "0.2059", "0.8853", "0.0989", "0.8853" ], [ "0.2051", "0.872", "0.4722", "0.872", "0.4722", "0.8853", "0.2051", "0.8853" ], [ "0.5024", "0.872", "0.892", "0.872", "0.892", "0.8853", "0.5024", "0.8853" ], [ "0.0784", "0.886", "0.4697", "0.8853", "0.4697", "0.8994", "0.0784", "0.901" ], [ "0.501", "0.8853", "0.892", "0.886", "0.892", "0.901", "0.501", "0.8994" ], [ "0.4805", "0.925", "0.492", "0.925", "0.492", "0.936", "0.4805", "0.936" ] ]
[ "Receiver (Rx)", "DC:", "DC:", "Attribute", "ADC:", "MIMODemo:", "Rangel", "Receiving", "Azimuth/", "Determination:", "Synthetic", "Radar", "X", "PD", "Elevation", "+", "", "", "Radial Range/", "Doppler", "Device", "Cube", "Channels", "-FFT", "-FFT", "SpeedAzimuth", "Transmitter (Tx)", "PointCloud", "FMCW", "Transmitting", "K", "Waveform", "Generator", "Device", "Figure 1. Overview of radar sensor data processing pipeline. See [5, 27, 43] for a more detailed description. ADC: Analog-to-Digital", "Converter, FFT: Fast Fourier Transformation, DC: Data Conversion, Demo: Demodulation, PD: Peak Detection", "the two models containing PointNet and PointNet++ from", "convolutional backbone networks to generate anchor-based", "theRadarScenesdataset[36]in[34areambiguoussince", "3D bounding box proposals. Next, a fixed-size voxel grid", "one of the models performed second best and the other one", "around each object proposal is selected, represented by its", "second worst. However, a detailed evaluation revealed that", "center point. Then the newly proposed voxel query operation", "at least for the second-worst model, the DBSCAN-based", "is applied to utilize the data's structure to gain efficiency. Fi-", "clusterstageinthisnon-end-to-endtrainablemodelaccounts", "nally.anadaptationofPointNet[28laggregatesinformation", "for the weak performance, limiting the significance of these", "from the query to feed it into the final fully connected (FC)", "results for evaluating PointNet and PointNet-based models.", "layertogenerateobjectdetections.", "Evaluation for Lidar Point CloudsReferring to [50],", "2.2. Voxel-based", "voxel-based models reach state-of-the-art or top detection", "Voxel-based approaches first transform the continuous", "performances.Inference time depends upon two criteria.", "point cloud into a 3D cube of equally sized discrete voxels.", "First, the larger the used 3D convolutional backbone net-", "Afterward, the points within a voxel are encoded by a VFE.", "workis,themoreaccuratethedetectionsbecomebut atthe", "Then, the voxelized data gets processed by a 3D (sparse)", "costofinferencetime.Contrary,focusingmoreonthe2D", "convolutionalbackbonenetworkbeforethedetectionheader", "convolutional backbone instead of the 3D modules leads to", "finally derives 3D detections. Sparse convolutions [11] only", "faster inference but at the cost of detection accuracy, at least", "apply their computations to the parts of the input data that are", "in 3D evaluations. The second main influence comes with", "non-empty. Due to the nature of 3D lidar data, most of the", "respect to using one and two-stage detectors. One-stage de-", "derived voxels are empty, leading to an enormous computa-", "tectors are historically faster. Recently, with [7], a two-stage", "tional and storage overhead if not implemented intelligently.", "detector could reach almost an inference time of one-stage", "i.e., using sparse convolutions.", "detectors with the additional benefit of enhanced accuracy.", "SECONDSECOND (Sparsely Embedded CONvolu-", "2.3.Pillar-based", "tional Detection) [44] is a one-stage detection model that", "utilizes sparse 3D convolutional operations and introduces", "Pillars are a special form of voxels, spanned over the en-", "additional improvements during training, such as sine-error", "tire height along the z dimension in a Cartesian coordinate", "loss for yaw angle regression. Its 2D convolutional detec-", "system. Therefore, points are not sorted in separate cells", "tion head consumes the output of the sparse 3D convolution", "according to their vertical position. Instead, all points in-", "backbone and then derives its object detections from an", "side a pillar are encoded, usually by a PointNet-like [28]", "anchor-free Region Proposal Network (RPN).", "architecture.Theencodedfeatures aretheninterpretedas", "PartA?(part-awareandpart-aggregation", "channels in a grid-map representation processed by a 2D", "net) [40] is a two-stage detector that has an anchor-free", "Part A2", "CNN architecture to generate detections.", "PointPillars", "PointPillars [17] is a one-stage detector.", "The VFE is based on the respective module from [54] and", "andananchor-basedconfiguration,bothsharingthesamere-", "maining architecture. The first stage that generates detection", "proposalsis implementedas an encoder-decoder structure", "takes nine point attributes as input. The 2D CNN module is", "using the 3D CNN UNet [33] approach, followed by a sparse", "followed by an anchor-free RPN that directly outputs a 3D", "3D convolutional backbone network. In the second stage, the", "bounding box and a confidence score for each classification.", "detection proposals are refined considering spatial relations", "CenterPoint", "CenterPoint [49] is a two-stage point", "using Rol-aware pooling and a sparse 3D CNN.", "cloud detection approach that operates on pillar or voxel", "Voxel R-CNN", "Voxel R-CNN [7] is a two-stage de-", "data representation. The pillar-based implementation uses", "tector whose first stage uses standard sparse 3D and 2D", "PointPillars to construct a bird's-eye-view (BEV) interme-", "3" ]
{ "arxiv_id": "2308.05478", "language": "en", "page_idx": 2 }
2308.05478-en-3
2308.05478-en-3.jpg
diate representation fed into an anchor-free region-proposal head for 3D bounding box regression. Next, the center points of the proposals and four additional points indicating the center of each face of the BEV object proposal are concatenated and then fed to the final terminal head that generates the final detections. We decided to use the pillar-based implementation since[26] reached good results on radar data with their PointPillars-based model. We call the radar model CenterPoint-R using PointPoillars-Radar (PointPoillars-R) as a base model and the lidar model CenterPoint-L utilizing the original PointPillar model[17]. Evaluation for Lidar (and Radar) Point Clouds Since pillar-based modules avoid using 3D CNN layers and instead only use 2D CNN structures, they are computationally more efficient. According to[50], this comes at the cost of an inferior detection accuracy on KITTI lidar data, at least for the difficult category. They also emphasize that pillar-based models perform worse than voxel-based ones on more complex lidar data sets such as Waymo[42].[50] attribute this degradation to the simplistic VFE and the fact that a 2D CNN backbone cannot capture the rich structure of a 3D point cloud which requires 3D CNN layers. Pillarbased models can reach satisfactory results on the easy and moderate examples on KITTI lidar data, according to[50]. ## 2.4. Dual Representation-based Dual representation-based approaches try to combine the benefits from their respective model families. While voxelbased detectors are computationally efficient, point-based models can leverage detailed structural information. In onestage models, voxel-based and point-based architectures are processed in parallel and share information in voxel-to-point or point-to-voxel modules [50]. Two-stage models such as PV-RCNN [38] generate object proposals in the first stage by a voxel-based architecture and refine their detections in the second stage based on the proposed keypoints. PV-RCNN In the first stage, PV-RCNN[38] uses the SECOND[44] model to generate 3D bounding boxes and assign keypoints to them. In the second stage, the previously determined voxel features are concatenated with two newly generated feature vectors provided by a PointNetbased branch and a 2D backbone network based on a BEV representation of the scene. Additionally, the keypoints are weighted according to a foreground-background segmentation module to boost performance further. Evaluation for Lidar Point Clouds Two-stage de- tectors reach state-of-the-art detection results on the KITTI lidar data, according to[50]. Their detection performance improves slightly compared to voxel-based models, while the inference time increases only marginally. The presented model overview is non-exhaustive. We instead focused our model review on the most popular and promising model architectures. 3. Experimental Evaluation ## 3.1. Experimental Setup Before presenting and discussing the results of our investigation, the experimental procedure is introduced. The considered models are the ones described in Secs. 2.1 to 2.4. Implementation Details We used existing implementations of the evaluated models provided by the OpenPCDet framework$^{\mathrm{l}}.$ We had to adapt voxel sizes to feed the radar data into the different detectors. Like[26],we used KITTI [10] models of OpenPCDet as initial implementation. Adopting the relevant point cloud area in the $x-y$ plane from [26] requires shrinking the voxel size to $0.036\times0.032\times0.125$m if the 3D object detection models should stay unchanged. Additionally, we also implemented a model operating on larger voxels $(0.135\times0.120\times0.625$m) for the radar data. When not explicitly mentioned, the configuration with smaller voxel sizes was used in our experiments. For the PointPillars-R model$^{2}$ we followed the guidelines given in [26], integrating the model and supporting code into OpenPCDet. For clearer discrimination, we explicitly call the standard PointPillars [17] PointPillars-Lidar (PointPillars-L) to emphasize the lidar configuration. The necessary adaptations for the remaining models to be compatible with radar measurements, including additional features such as relative radial velocity or Radar Cross Section (RCS) , have been done according to the example of [ 26] . In addition, training procedure modifications were necessary to achieve better results. OpenPCDet does not provide learning rate (lr) schedulers that reduce the lr with respect to the learning progress using the loss or a validation error metric. Nevertheless, we used its implementation of the one-cycle lr scheduler [41]. When we modified the standard configuration from OpenPCDet to reach the maximal lr earlier and extended the decaying phase later, we got better results. Therefore, as the theory supports, a large lr regularizes the training in the high-dimensional optimization landscape [41]. Later, when an appropriate area in that landscape has been found, decaying the lr helps to converge to a local minimum smoothly. Data We evaluate the mentioned models on two data sets: the View-of-Delft (VoD)[26] and the Astyx[20] data set. VoD is our main data set since it is significantly larger. We use it to train all the models from scratch, using the provided data set split. Since the separate test set of VoD does not contain annotations, 3 we instead also used the validation data set for evaluation. Due to this procedure, our results differ from those in the original VoD paper [26] since they evaluate their models on their test set. VoD is $^{1}$https://github.com/open-mmlab/0penPCDet $^2$https://github.com/tudelft-iv/view-of-delft- dataset/blob/main/PP-Radar.md $^{3}$Similar to KITTI, VoD plans to provide an evaluation server for testing 4
[ [ "0.0801", "0.09216", "0.468", "0.09216", "0.468", "0.1061", "0.0801", "0.1061" ], [ "0.5034", "0.09155", "0.7344", "0.09155", "0.7344", "0.1048", "0.5034", "0.1048" ], [ "0.0801", "0.108", "0.4697", "0.108", "0.4697", "0.1218", "0.0801", "0.1218" ], [ "0.5024", "0.11554", "0.689", "0.11743", "0.689", "0.132", "0.5024", "0.13" ], [ "0.0809", "0.125", "0.468", "0.125", "0.468", "0.1351", "0.0809", "0.1351" ], [ "0.0784", "0.1383", "0.4714", "0.1383", "0.4714", "0.1515", "0.0784", "0.1515" ], [ "0.523", "0.1401", "0.892", "0.1401", "0.892", "0.1547", "0.523", "0.1547" ], [ "0.0801", "0.1547", "0.468", "0.1547", "0.468", "0.1654", "0.0801", "0.1654" ], [ "0.5024", "0.1572", "0.892", "0.1572", "0.892", "0.1704", "0.5024", "0.1704" ], [ "0.0801", "0.1674", "0.4697", "0.1674", "0.4697", "0.1812", "0.0801", "0.1812" ], [ "0.501", "0.1718", "0.8936", "0.1718", "0.8936", "0.1849", "0.501", "0.1849" ], [ "0.0801", "0.1831", "0.4697", "0.1831", "0.4697", "0.1963", "0.0801", "0.1963" ], [ "0.5195", "0.1863", "0.8936", "0.1875", "0.8936", "0.202", "0.5195", "0.2008" ], [ "0.0801", "0.1976", "0.4697", "0.1976", "0.4697", "0.2108", "0.0801", "0.2108" ], [ "0.5024", "0.2026", "0.8936", "0.2026", "0.8936", "0.2166", "0.5024", "0.2166" ], [ "0.0809", "0.214", "0.4697", "0.214", "0.4697", "0.2247", "0.0809", "0.2247" ], [ "0.501", "0.2166", "0.892", "0.2172", "0.892", "0.2317", "0.501", "0.2311" ], [ "0.0768", "0.2267", "0.4697", "0.2279", "0.4697", "0.2424", "0.0768", "0.2412" ], [ "0.5024", "0.2329", "0.892", "0.2329", "0.892", "0.2468", "0.5024", "0.2468" ], [ "0.0801", "0.2437", "0.308", "0.2437", "0.308", "0.2568", "0.0801", "0.2568" ], [ "0.5024", "0.2474", "0.892", "0.2474", "0.892", "0.2615", "0.5024", "0.2615" ], [ "0.0989", "0.2588", "0.4697", "0.2588", "0.4697", "0.2727", "0.0989", "0.2727" ], [ "0.5024", "0.2632", "0.892", "0.2632", "0.892", "0.2766", "0.5024", "0.2766" ], [ "0.0801", "0.2734", "0.468", "0.2734", "0.468", "0.2886", "0.0801", "0.2886" ], [ "0.5034", "0.2798", "0.8906", "0.2798", "0.8906", "0.2903", "0.5034", "0.2903" ], [ "0.0784", "0.289", "0.4697", "0.289", "0.4697", "0.303", "0.0784", "0.303" ], [ "0.5024", "0.2935", "0.892", "0.2935", "0.892", "0.307", "0.5024", "0.307" ], [ "0.0784", "0.305", "0.4697", "0.305", "0.4697", "0.318", "0.0784", "0.318" ], [ "0.5034", "0.31", "0.8906", "0.31", "0.8906", "0.3208", "0.5034", "0.3208" ], [ "0.0784", "0.3193", "0.4697", "0.3193", "0.4697", "0.3333", "0.0784", "0.3333" ], [ "0.5024", "0.324", "0.892", "0.324", "0.892", "0.3372", "0.5024", "0.3372" ], [ "0.0801", "0.3352", "0.4697", "0.3352", "0.4697", "0.3484", "0.0801", "0.3484" ], [ "0.5024", "0.339", "0.8936", "0.339", "0.8936", "0.3528", "0.5024", "0.3528" ], [ "0.0809", "0.3516", "0.468", "0.3516", "0.468", "0.3623", "0.0809", "0.3623" ], [ "0.5024", "0.3542", "0.8936", "0.3542", "0.8936", "0.3674", "0.5024", "0.3674" ], [ "0.0784", "0.3655", "0.468", "0.3655", "0.468", "0.379", "0.0784", "0.379" ], [ "0.5024", "0.3687", "0.892", "0.3687", "0.892", "0.3818", "0.5024", "0.3818" ], [ "0.0768", "0.3801", "0.4697", "0.379", "0.4697", "0.3933", "0.0768", "0.3945" ], [ "0.501", "0.3833", "0.8906", "0.3838", "0.8906", "0.3984", "0.501", "0.3977" ], [ "0.0784", "0.3933", "0.4697", "0.3945", "0.4697", "0.4092", "0.0784", "0.4077" ], [ "0.5034", "0.401", "0.8906", "0.401", "0.8906", "0.411", "0.5034", "0.411" ], [ "0.0801", "0.4104", "0.4697", "0.4104", "0.4697", "0.4236", "0.0801", "0.4236" ], [ "0.5034", "0.4136", "0.892", "0.4136", "0.892", "0.4268", "0.5034", "0.4268" ], [ "0.0801", "0.4268", "0.468", "0.4268", "0.468", "0.4375", "0.0801", "0.4375" ], [ "0.5024", "0.4287", "0.892", "0.4287", "0.892", "0.4426", "0.5024", "0.4426" ], [ "0.0784", "0.44", "0.4631", "0.44", "0.4631", "0.4539", "0.0784", "0.4539" ], [ "0.5034", "0.4458", "0.8906", "0.4458", "0.8906", "0.4558", "0.5034", "0.4558" ], [ "0.5024", "0.459", "0.892", "0.459", "0.892", "0.473", "0.5024", "0.473" ], [ "0.0801", "0.4673", "0.3203", "0.4673", "0.3203", "0.481", "0.0801", "0.481" ], [ "0.5034", "0.476", "0.8906", "0.476", "0.8906", "0.486", "0.5034", "0.486" ], [ "0.0989", "0.4912", "0.468", "0.4912", "0.468", "0.505", "0.0989", "0.505" ], [ "0.5034", "0.4912", "0.8906", "0.4912", "0.8906", "0.502", "0.5034", "0.502" ], [ "0.0801", "0.507", "0.4697", "0.507", "0.4697", "0.521", "0.0801", "0.521" ], [ "0.5024", "0.505", "0.8936", "0.505", "0.8936", "0.5195", "0.5024", "0.5195" ], [ "0.0784", "0.5215", "0.4697", "0.5215", "0.4697", "0.536", "0.0784", "0.536" ], [ "0.5034", "0.5215", "0.892", "0.5215", "0.892", "0.532", "0.5034", "0.532" ], [ "0.0784", "0.537", "0.4714", "0.537", "0.4714", "0.5503", "0.0784", "0.5503" ], [ "0.5024", "0.535", "0.892", "0.535", "0.892", "0.549", "0.5024", "0.549" ], [ "0.0784", "0.553", "0.4697", "0.553", "0.4697", "0.5664", "0.0784", "0.5664" ], [ "0.5024", "0.5503", "0.8936", "0.5503", "0.8936", "0.5645", "0.5024", "0.5645" ], [ "0.0801", "0.5674", "0.4697", "0.5674", "0.4697", "0.5806", "0.0801", "0.5806" ], [ "0.5024", "0.565", "0.892", "0.565", "0.892", "0.579", "0.5024", "0.579" ], [ "0.0809", "0.584", "0.4697", "0.584", "0.4697", "0.5947", "0.0809", "0.5947" ], [ "0.5024", "0.58", "0.892", "0.58", "0.892", "0.5933", "0.5024", "0.5933" ], [ "0.0784", "0.595", "0.4697", "0.5967", "0.4697", "0.6113", "0.0784", "0.61" ], [ "0.5024", "0.5947", "0.8936", "0.5947", "0.8936", "0.608", "0.5024", "0.608" ], [ "0.0809", "0.6143", "0.468", "0.6143", "0.468", "0.625", "0.0809", "0.625" ], [ "0.501", "0.6094", "0.8936", "0.61", "0.8936", "0.625", "0.501", "0.6235" ], [ "0.0801", "0.6274", "0.4102", "0.6274", "0.4102", "0.6416", "0.0801", "0.6416" ], [ "0.5024", "0.6255", "0.892", "0.6255", "0.892", "0.6396", "0.5024", "0.6396" ], [ "0.0972", "0.643", "0.468", "0.643", "0.468", "0.657", "0.0972", "0.657" ], [ "0.5034", "0.6426", "0.8906", "0.6426", "0.8906", "0.653", "0.5034", "0.653" ], [ "0.0784", "0.657", "0.468", "0.6577", "0.468", "0.6724", "0.0784", "0.672" ], [ "0.5024", "0.656", "0.892", "0.656", "0.892", "0.6694", "0.5024", "0.6694" ], [ "0.0784", "0.674", "0.4697", "0.674", "0.4697", "0.6875", "0.0784", "0.6875" ], [ "0.501", "0.6694", "0.892", "0.6704", "0.892", "0.685", "0.501", "0.6846" ], [ "0.0784", "0.6895", "0.4722", "0.6895", "0.4722", "0.7026", "0.0784", "0.7026" ], [ "0.5034", "0.6875", "0.568", "0.6875", "0.568", "0.6987", "0.5034", "0.6987" ], [ "0.523", "0.7026", "0.5703", "0.7026", "0.5703", "0.714", "0.523", "0.714" ], [ "0.564", "0.702", "0.8906", "0.702", "0.8906", "0.7153", "0.564", "0.7153" ], [ "0.5024", "0.7173", "0.892", "0.7173", "0.892", "0.731", "0.5024", "0.731" ], [ "0.0801", "0.704", "0.4714", "0.704", "0.4714", "0.7173", "0.0801", "0.7173" ], [ "0.0801", "0.7183", "0.468", "0.7183", "0.468", "0.732", "0.0801", "0.732" ], [ "0.0784", "0.7344", "0.468", "0.7344", "0.468", "0.7476", "0.0784", "0.7476" ], [ "0.5024", "0.732", "0.8936", "0.732", "0.8936", "0.7456", "0.5024", "0.7456" ], [ "0.0784", "0.75", "0.4697", "0.75", "0.4697", "0.763", "0.0784", "0.763" ], [ "0.5024", "0.7476", "0.892", "0.7476", "0.892", "0.761", "0.5024", "0.761" ], [ "0.0784", "0.7646", "0.3555", "0.7646", "0.3555", "0.778", "0.0784", "0.778" ], [ "0.5024", "0.762", "0.892", "0.762", "0.892", "0.776", "0.5024", "0.776" ], [ "0.0989", "0.78", "0.3594", "0.78", "0.3594", "0.7935", "0.0989", "0.7935" ], [ "0.3652", "0.78", "0.4722", "0.78", "0.4722", "0.7935", "0.3652", "0.7935" ], [ "0.5034", "0.779", "0.8896", "0.779", "0.8896", "0.789", "0.5034", "0.789" ], [ "0.501", "0.7915", "0.892", "0.7925", "0.892", "0.8066", "0.501", "0.806" ], [ "0.3628", "0.784", "0.3694", "0.784", "0.3694", "0.7886", "0.3628", "0.7886" ], [ "0.0809", "0.797", "0.468", "0.797", "0.468", "0.8066", "0.0809", "0.8066" ], [ "0.0801", "0.81", "0.4714", "0.81", "0.4714", "0.8237", "0.0801", "0.8237" ], [ "0.5024", "0.808", "0.892", "0.808", "0.892", "0.8213", "0.5024", "0.8213" ], [ "0.0784", "0.8257", "0.468", "0.8257", "0.468", "0.839", "0.0784", "0.839" ], [ "0.501", "0.8228", "0.892", "0.8213", "0.892", "0.836", "0.501", "0.837" ], [ "0.0801", "0.8413", "0.3743", "0.8413", "0.3743", "0.855", "0.0801", "0.855" ], [ "0.0972", "0.856", "0.4697", "0.856", "0.4697", "0.8706", "0.0972", "0.8706" ], [ "0.5215", "0.851", "0.835", "0.851", "0.835", "0.8643", "0.5215", "0.8643" ], [ "0.5195", "0.863", "0.892", "0.863", "0.892", "0.877", "0.5195", "0.877" ], [ "0.0768", "0.8706", "0.468", "0.872", "0.468", "0.886", "0.0768", "0.8853" ], [ "0.5024", "0.8755", "0.738", "0.8755", "0.738", "0.8896", "0.5024", "0.8896" ], [ "0.0801", "0.887", "0.2876", "0.887", "0.2876", "0.901", "0.0801", "0.901" ], [ "0.5195", "0.886", "0.892", "0.887", "0.892", "0.901", "0.5195", "0.8994" ], [ "0.4805", "0.925", "0.492", "0.925", "0.492", "0.9346", "0.4805", "0.9346" ] ]
[ "diate representation fed into an anchor-free region-proposal", "3.ExperimentalEvaluation", "head for 3D bounding box regression. Next, the center points", "3.1. Experimental Setup", "oftheproposalsandfouradditionalpointsindicatingthecen-", "ter of each face of the BEV object proposal are concatenated", "Before presenting and discussing the results of our in-", "and then fed to the final terminal head that generates the", "vestigation, the experimental procedure is introduced. The", "final detections. We decided to use the pillar-based imple-", "considered models are the ones described in Secs. 2.1 to 2.4.", "mentation since [26] reached good results on radar data with", "Implementation DetailsWe used existing implemen-", "their PointPillars-based model. We call the radar model", "tations of the evaluated models provided by the Open-", "CenterPoint-RusingPointPoillars-Radar (PointPoillars-R)", "PCDet framework'. We had to adapt voxel sizes to feed", "as a base model and the lidar model CenterPoint-L utilizing", "the radar data into the different detectors. Like [26], we", "the original PointPillar model [17]", "used KITTI [10] models of OpenPCDet as initial imple-", "Evaluation for Lidar (and Radar) Point Clouds", "mentation. Adopting the relevant point cloud area in the", "Since pillar-based modules avoid using 3D CNN layers and", "&-yplanefrom[26lrequiresshrinkingthevoxelsizeto", "instead only use 2D CNN structures, they are computation-", "0.036 × 0.032 × 0.125m if the 3D object detection models", "ally more efficient. According to [50], this comes at the", "shouldstayunchanged.Additionally,wealsoimplementeda", "cost of an inferior detection accuracy on KITTI lidar data,", "model operating on larger voxels (0.135 × 0.120 × 0.625m)", "at least for the difficult category. They also emphasize that", "for the radar data. When not explicitly mentioned, the con-", "pillar-basedmodelsperformworsethanvoxel-based ones", "figuration with smaller voxel sizes was used in our experi-", "on more complex lidar data sets such as Waymo [42]. [50]", "ments. For the PointPillars-R model? we followed the guide-", "attribute this degradation to the simplistic VFE and the fact", "lines given in [26], integrating the model and supporting", "that a 2D CNN backbone cannot capture the rich structure", "codeinto OpenPCDet.Forclearerdiscrimination,weex", "of a 3D point cloud which requires 3D CNN layers. Pillar-", "plicitly call the standard PointPillars [17] PointPillars-Lidar", "basedmodelscanreachsatisfactoryresultsontheeasyand", "(PointPillars-L) to emphasize the lidar configuration. The", "moderate examples on KITTI lidar data, according to [50].", "necessaryadaptationsfortheremainingmodelstobecom-", "patible with radar measurements, including additional fea-", "2.4. Dual Representation-based", "turessuchasrelativeradial velocityorRadarCrossSection", "Dual representation-based approaches try to combine the", "(RCS),havebeendoneaccordingtotheexampleof[26].In", "benefits from their respective model families. While voxel-", "addition, training procedure modifications were necessary to", "based detectors are computationally efficient, point-based", "achievebetterresults.OpenPCDetdoesnotprovidelearn-", "models can leverage detailed structural information. In one-", "ing rate (lr) schedulers that reduce the lr with respect to the", " stage models, voxel-based and point-based architectures are", "learning progress using the loss or a validation error metric.", "processed in parallel and share information in voxel-to-point", "Nevertheless, we used its implementation of the one-cycle", "orpoint-to-voxelmodules[5ol.Two-stagemodelssuchas", "lr scheduler [41]. When we modified the standard config-", "PV-RCNN [38] generate object proposals in the first stage", "uration from OpenPCDet to reach the maximal lr earlier", "by a voxel-based architectureandrefinetheirdetections in", "and extended the decaying phase later, we got better results.", "the second stage based on the proposed keypoints.", "Therefore, as the theory supports, a large lr regularizes the", "PV-RCNN In the first stage, PV-RCNN [38] uses the", "traininginthehigh-dimensionaloptimizationlandscape[41]", "SECOND [44] model to generate 3D bounding boxes and", "Later, when an appropriate area in that landscape has been", "assign keypoints to them. In the second stage, the previ-", "found, decaying the lr helps to converge to a local minimum", "ously determined voxel features are concatenated with two", "smoothly.", "Data", "We evaluate the mentioned models on two data", "sets: the View-of-Delft (VoD) [26] and the Astyx [20] data", "newly generated feature vectors provided by a PointNet-", "based branch and a 2Dbackbone network based on aBEV", "representation of the scene. Additionally, the keypoints are", "set. VoD is our main data set since it is significantly larger.", "weighted according to a foreground-background segmenta-", "We use it to train all the models from scratch, using the", "tion module to boost performance further.", "provided data set split. Since the separate test set of VoD", "Evaluation for Lidar Point Clouds", "Two-stage de-", "does not contain annotations, 3 we instead also used the", "validation data set for evaluation. Due to this procedure,", "", "tectorsreach state-of-the-artdetectionresults ontheKITTI", "lidar data, according to [50]. Their detection performance", "our results differ from those in the original VoD paper [26]", "improves slightly compared to voxel-based models, while", "since they evaluate their models on their test set. VoD is", "the inference time increases only marginally.", "The presented model overview is non-exhaustive. We", "lhttps://github.com/open-mmlab/openpcDet", "2https://github.com/tudelft-iv/view-of-delft-", "instead focused our model review on the most popular and", "dataset/blob/main/Pp-Radar.md", "promising model architectures.", "3Similar to KITTI, VoD plans to provide an evaluation server for testing.", "4" ]
{ "arxiv_id": "2308.05478", "language": "en", "page_idx": 3 }
2107.03815-en-2
2107.03815-en-2.jpg
Submission and Formatting Instructions for ICML 2022 prediction, leading to a significant runtime cost. Differently, CoE utilizes a delegator to select only one expert for the refined prediction, thus at most two forward passes are needed. MIMO (Havasi et al., 2021) draws inspiration from model sparsity (Frankle & Carbin, 2019) and holds the view that multiple independent subnetworks can be concurrently trained within one regular network because of the heavy parameter redundancy. Therefore, those subnetworks can be ensembled with a single forward pass of the regular model. However, MIMO cannot be applied to compact models which have already been pruned or the ones constructed by AutoML methods (Cai et al., 2020; Zhong et al., 2018). It is because these models have few redundant parameters. By contrast, CoE is free from the compactness of experts since expert selection is done at the model level. Recently, some works about model selection are proposed (Li et al., 2021b; You et al., 2021). These methods are concerned with ranking a number of pre-trained models and finding the one transfers best to a downstream task of interest. Therefore, they select models task-wisely. By contrast, CoE aims at improving the task performance via selecting the most suitable expert for each sample instance-wisely. ## 2.2. Dynamic Networks Dynamic networks achieve high performance with low computation cost by conditionally varying the network parameters (Zhang et al., 2020; Yang et al., 2019) or network architectures (Yuan et al., 2020). HD-CNN (Yan et al., 2015) and HydraNet (Mullapudi et al., 2018) select branches based on the category, they cluster all categories into n groups, where n is the number of branches. While CoE learns the model selection pattern automatically, it can be based on any property, rather than limited to the category. MoE (Shazeer et al., 2017) and Switch Transformer (Fedus et al., 2021) select experts at the layer level with a router. The output feature of each expert will be scaled with the gate-value predicted by router, thus router becomes trainable. This gate-value-based optimization manner is heuristic while CoE trains the delegator more reasonably. Since expert selection for CoE is done across models, we can use protocols like True Class Probability (TCP, Corbière et al. 2019) to measure the suitability of each expert without bias. Based on expert suitabilities, the labels to supervise delegator for expert selection can be obtained. Additionally, CoE takes more advantage of conditional computation as the whole network is selected, rather than only some particular layers. The recently proposed Dynamic Convolution methods (Zhang et al., 2020; Yang et al., 2019; Chen et al., 2020) share the similar idea and achieve remarkable performance with low FLOPs but high latency. It is because these methods need to load many basis models or experts to synthesize the dynamic parameters, causing high MAC and low degree of parallelism (Ma et al., 2018). By contrast, CoE only needs to load the selected expert into memory, avoiding these problems. Finally yet importantly, batch processing is an important method to enhance the degree of parallelism. Because of the inputdependent parameters (Shazeer et al.,2017; Zhang et al., 2021) or architectures (Yuan et al., 2020), these methods cannot process samples in batch. Differently, CoE supports batch processing because the number of experts is limited and each one of them corresponds to many test samples. ## $3. \textbf{Method}$ CoE consists of a delegator and $n$ experts, a total of $n+$ 1 individual neural networks. Given a sample, delegator will select an expert and simultaneously output a rough prediction to trigger potential early termination. Since the inference of delegator is conducted all the time, we prefer to make delegator more lightweight than expert. Delegator consists of three modules: feature extractor, task predictor and expert selector as shown in Fig.3. Based on the feature derived from feature extractor, task predictor and expert selector output the probabilities for classification and expert selection respectively. In the following subsections, we will describe the inference procedure and training strategy of CoE comprehensively. The number of samples and experts are denoted as $m$ and $n.$ <FigureHere> Figure 3. The architecture of delegator. Task predictor consists of one fully connected layer and a SoftMax layer. Expert selector consists of two fully connected layers with the hidden dim as 100, followed by a SoftMax layer. ## 3.1. Inference Procedure CoE firstly uses delegator to obtain the rough prediction and determine the selected expert for each sample. Afterward, Maximum Class Probability (MCP, Corbière et al. 2019) of rough prediction is calculated. It is the probability of predicted class. Then, the final recognition results for samples with MCP larger than a given threshold $\tau$ are derived from the rough predictions. Other samples are partitioned into
[ [ "0.3096", "0.05682", "0.665", "0.05682", "0.665", "0.0707", "0.3096", "0.0707" ], [ "0.08905", "0.0859", "0.478", "0.0859", "0.478", "0.09973", "0.08905", "0.09973" ], [ "0.5", "0.0859", "0.8857", "0.0859", "0.8857", "0.09973", "0.5", "0.09973" ], [ "0.08826", "0.1016", "0.4756", "0.1016", "0.4756", "0.11554", "0.08826", "0.11554" ], [ "0.5", "0.1016", "0.8857", "0.1016", "0.8857", "0.11554", "0.5", "0.11554" ], [ "0.08905", "0.1187", "0.4739", "0.1187", "0.4739", "0.1288", "0.08905", "0.1288" ], [ "0.4983", "0.11615", "0.886", "0.11554", "0.886", "0.13", "0.4983", "0.1307" ], [ "0.08905", "0.132", "0.4739", "0.132", "0.4739", "0.1459", "0.08905", "0.1459" ], [ "0.5", "0.132", "0.886", "0.132", "0.886", "0.1459", "0.5", "0.1459" ], [ "0.08905", "0.1465", "0.4756", "0.1465", "0.4756", "0.161", "0.08905", "0.161" ], [ "0.5", "0.1465", "0.886", "0.1465", "0.886", "0.1604", "0.5", "0.1604" ], [ "0.08905", "0.1622", "0.4763", "0.1622", "0.4763", "0.1755", "0.08905", "0.1755" ], [ "0.5", "0.161", "0.8857", "0.161", "0.8857", "0.1749", "0.5", "0.1749" ], [ "0.0907", "0.1787", "0.4722", "0.1787", "0.4722", "0.1895", "0.0907", "0.1895" ], [ "0.5024", "0.1787", "0.884", "0.1787", "0.884", "0.1895", "0.5024", "0.1895" ], [ "0.08826", "0.1925", "0.4739", "0.1925", "0.4739", "0.2058", "0.08826", "0.2058" ], [ "0.4983", "0.1925", "0.869", "0.1925", "0.869", "0.2058", "0.4983", "0.2058" ], [ "0.08826", "0.207", "0.4739", "0.207", "0.4739", "0.2203", "0.08826", "0.2203" ], [ "0.08826", "0.2229", "0.4756", "0.2229", "0.4756", "0.2361", "0.08826", "0.2361" ], [ "0.501", "0.2267", "0.5884", "0.2267", "0.5884", "0.2412", "0.501", "0.2412" ], [ "0.08905", "0.2374", "0.4739", "0.2374", "0.4739", "0.2507", "0.08905", "0.2507" ], [ "0.08905", "0.252", "0.4756", "0.252", "0.4756", "0.2651", "0.08905", "0.2651" ], [ "0.4983", "0.2507", "0.886", "0.252", "0.886", "0.2664", "0.4983", "0.2651" ], [ "0.08905", "0.2676", "0.4756", "0.2676", "0.4756", "0.281", "0.08905", "0.281" ], [ "0.501", "0.2676", "0.8857", "0.2676", "0.8857", "0.281", "0.501", "0.281" ], [ "0.08905", "0.2827", "0.4739", "0.2827", "0.4739", "0.2966", "0.08905", "0.2966" ], [ "0.5", "0.2827", "0.8857", "0.2827", "0.8857", "0.2966", "0.5", "0.2966" ], [ "0.08826", "0.2974", "0.4756", "0.2974", "0.4756", "0.3113", "0.08826", "0.3113" ], [ "0.501", "0.2986", "0.8857", "0.2986", "0.8857", "0.3125", "0.501", "0.3125" ], [ "0.08826", "0.3132", "0.4763", "0.3132", "0.4763", "0.327", "0.08826", "0.327" ], [ "0.5", "0.3132", "0.8857", "0.3132", "0.8857", "0.327", "0.5", "0.327" ], [ "0.08905", "0.3276", "0.4739", "0.3276", "0.4739", "0.3416", "0.08905", "0.3416" ], [ "0.4983", "0.3289", "0.8857", "0.3289", "0.8857", "0.3423", "0.4983", "0.3423" ], [ "0.08826", "0.3435", "0.4739", "0.3435", "0.4739", "0.3567", "0.08826", "0.3567" ], [ "0.4983", "0.3423", "0.884", "0.3423", "0.884", "0.356", "0.4983", "0.356" ], [ "0.0866", "0.3567", "0.4739", "0.358", "0.4739", "0.3718", "0.0866", "0.3706" ], [ "0.5", "0.358", "0.8857", "0.358", "0.8857", "0.3718", "0.5", "0.3718" ], [ "0.08905", "0.375", "0.4739", "0.375", "0.4739", "0.385", "0.08905", "0.385" ], [ "0.5", "0.3738", "0.8857", "0.3738", "0.8857", "0.387", "0.5", "0.387" ], [ "0.08826", "0.3882", "0.4739", "0.3882", "0.4739", "0.4016", "0.08826", "0.4016" ], [ "0.5", "0.3882", "0.886", "0.3882", "0.886", "0.4016", "0.5", "0.4016" ], [ "0.08826", "0.404", "0.3472", "0.404", "0.3472", "0.4172", "0.08826", "0.4172" ], [ "0.5024", "0.4048", "0.884", "0.4048", "0.884", "0.4153", "0.5024", "0.4153" ], [ "0.501", "0.4185", "0.886", "0.4185", "0.886", "0.432", "0.501", "0.432" ], [ "0.08905", "0.4343", "0.2532", "0.4343", "0.2532", "0.4475", "0.08905", "0.4475" ], [ "0.501", "0.4343", "0.886", "0.4343", "0.886", "0.4475", "0.501", "0.4475" ], [ "0.501", "0.449", "0.661", "0.449", "0.661", "0.4622", "0.501", "0.4622" ], [ "0.08826", "0.4583", "0.4739", "0.4583", "0.4739", "0.4717", "0.08826", "0.4717" ], [ "0.08905", "0.476", "0.4739", "0.476", "0.4739", "0.486", "0.08905", "0.486" ], [ "0.694", "0.4792", "0.7363", "0.4792", "0.7363", "0.4893", "0.694", "0.4893" ], [ "0.08826", "0.4893", "0.4756", "0.4893", "0.4756", "0.5024", "0.08826", "0.5024" ], [ "0.694", "0.4893", "0.749", "0.4893", "0.749", "0.5", "0.694", "0.5" ], [ "0.08905", "0.5024", "0.4739", "0.5024", "0.4739", "0.5166", "0.08905", "0.5166" ], [ "0.607", "0.507", "0.649", "0.507", "0.649", "0.518", "0.607", "0.518" ], [ "0.603", "0.5166", "0.671", "0.512", "0.6724", "0.523", "0.6045", "0.5264" ], [ "0.697", "0.513", "0.751", "0.513", "0.751", "0.528", "0.697", "0.528" ], [ "0.7607", "0.523", "0.7915", "0.523", "0.7915", "0.531", "0.7607", "0.531" ], [ "0.7573", "0.531", "0.7974", "0.531", "0.7974", "0.5415", "0.7573", "0.5415" ], [ "0.08905", "0.518", "0.4739", "0.518", "0.4739", "0.532", "0.08905", "0.532" ], [ "0.08826", "0.534", "0.4739", "0.534", "0.4739", "0.5474", "0.08826", "0.5474" ], [ "0.5884", "0.5444", "0.615", "0.5444", "0.615", "0.553", "0.5884", "0.553" ], [ "0.7075", "0.5435", "0.7295", "0.5435", "0.7295", "0.552", "0.7075", "0.552" ], [ "0.581", "0.5537", "0.625", "0.5537", "0.625", "0.5645", "0.581", "0.5645" ], [ "0.7534", "0.561", "0.767", "0.561", "0.767", "0.565", "0.7534", "0.565" ], [ "0.08826", "0.549", "0.4739", "0.549", "0.4739", "0.5625", "0.08826", "0.5625" ], [ "0.08826", "0.563", "0.4722", "0.563", "0.4722", "0.577", "0.08826", "0.577" ], [ "0.08826", "0.579", "0.4756", "0.5776", "0.4756", "0.5923", "0.08826", "0.5933" ], [ "0.08905", "0.5933", "0.4722", "0.5933", "0.4722", "0.607", "0.08905", "0.607" ], [ "0.0866", "0.61", "0.4756", "0.6094", "0.4756", "0.6226", "0.0866", "0.6235" ], [ "0.665", "0.6094", "0.7036", "0.6094", "0.7036", "0.619", "0.665", "0.619" ], [ "0.664", "0.6187", "0.706", "0.6187", "0.706", "0.629", "0.664", "0.629" ], [ "0.08826", "0.625", "0.4739", "0.625", "0.4739", "0.638", "0.08826", "0.638" ], [ "0.08826", "0.64", "0.4756", "0.64", "0.4756", "0.654", "0.08826", "0.654" ], [ "0.683", "0.636", "0.689", "0.636", "0.689", "0.643", "0.683", "0.643" ], [ "0.08826", "0.655", "0.4756", "0.655", "0.4756", "0.6685", "0.08826", "0.6685" ], [ "0.6733", "0.656", "0.697", "0.656", "0.697", "0.6685", "0.6733", "0.6685" ], [ "0.08905", "0.6694", "0.4739", "0.6694", "0.4739", "0.683", "0.08905", "0.683" ], [ "0.08905", "0.6846", "0.4722", "0.6846", "0.4722", "0.6978", "0.08905", "0.6978" ], [ "0.08826", "0.6997", "0.4739", "0.6997", "0.4739", "0.7134", "0.08826", "0.7134" ], [ "0.5", "0.696", "0.886", "0.696", "0.886", "0.7104", "0.5", "0.7104" ], [ "0.08826", "0.7153", "0.4756", "0.7153", "0.4756", "0.729", "0.08826", "0.729" ], [ "0.5", "0.7104", "0.886", "0.7104", "0.886", "0.7236", "0.5", "0.7236" ], [ "0.0866", "0.729", "0.4756", "0.73", "0.4756", "0.744", "0.0866", "0.7437" ], [ "0.5", "0.7246", "0.886", "0.7246", "0.886", "0.738", "0.5", "0.738" ], [ "0.5", "0.738", "0.675", "0.738", "0.675", "0.752", "0.5", "0.752" ], [ "0.08826", "0.7456", "0.4756", "0.7456", "0.4756", "0.759", "0.08826", "0.759" ], [ "0.08905", "0.762", "0.4739", "0.762", "0.4739", "0.773", "0.08905", "0.773" ], [ "0.08826", "0.776", "0.4739", "0.776", "0.4739", "0.789", "0.08826", "0.789" ], [ "0.501", "0.7764", "0.6733", "0.7764", "0.6733", "0.7905", "0.501", "0.7905" ], [ "0.08826", "0.789", "0.4739", "0.7905", "0.4739", "0.8047", "0.08826", "0.8037" ], [ "0.08826", "0.806", "0.4739", "0.806", "0.4739", "0.8193", "0.08826", "0.8193" ], [ "0.501", "0.8003", "0.8857", "0.8003", "0.8857", "0.8145", "0.501", "0.8145" ], [ "0.08826", "0.821", "0.4739", "0.821", "0.4739", "0.834", "0.08826", "0.834" ], [ "0.501", "0.8174", "0.886", "0.8174", "0.886", "0.8306", "0.501", "0.8306" ], [ "0.4983", "0.8306", "0.886", "0.8306", "0.886", "0.8447", "0.4983", "0.8447" ], [ "0.08905", "0.837", "0.4722", "0.837", "0.4722", "0.8477", "0.08905", "0.8477" ], [ "0.08826", "0.851", "0.4756", "0.851", "0.4756", "0.8643", "0.08826", "0.8643" ], [ "0.5", "0.8467", "0.886", "0.8467", "0.886", "0.86", "0.5", "0.86" ], [ "0.08826", "0.866", "0.4739", "0.866", "0.4739", "0.88", "0.08826", "0.88" ], [ "0.501", "0.8623", "0.886", "0.8623", "0.886", "0.8755", "0.501", "0.8755" ], [ "0.08905", "0.881", "0.4756", "0.881", "0.4756", "0.8945", "0.08905", "0.8945" ], [ "0.5", "0.877", "0.886", "0.877", "0.886", "0.89", "0.5", "0.89" ], [ "0.501", "0.8926", "0.886", "0.8926", "0.886", "0.906", "0.501", "0.906" ] ]
[ "Submission and Formatting Instructions for ICML 2022", "prediction, leading to a significant runtime cost. Differ-", "expert into memory, avoiding these problems.Finally yet", "ently, CoE utilizes a delegator to select only one expert", "importantly, batch processing is an important method to", "fortherefinedprediction,thusatmosttwoforwardpasses", "enhance the degree of parallelism. Because of the input-", "are needed. MIMO (Havasi et al., 2021) draws inspiration", "dependent parameters (Shazeer et al., 2017; Zhang et al.,", "from model sparsity (Frankle & Carbin, 2019) and holds", "2021) or architectures (Yuan et al., 2020), these methods", "the view that multiple independent subnetworks can be con-", "cannot process samples in batch. Differently, CoE supports", "currentlytrainedwithinoneregularnetworkbecauseofthe", "batchprocessingbecausethenumberofexpertsislimited", "heavy parameter redundancy.Therefore, those subnetworks", "and each one of them corresponds to many test samples.", "can be ensembled with a single forward pass of the regular", "model.However, MIMO cannot be applied to compact mod-", "3. Method", "els which have already been pruned or the ones constructed", "by AutoML methods (Cai et al., 2020; Zhong et al., 2018).", "CoE consists of a delegator and n experts, a total of n +", "It is because these models have few redundant parameters.", "1 individual neural networks. Given a sample, delegator", "By contrast, CoE is free from the compactness of experts", "will select an expert and simultaneously output a rough", "since expert selection is done at the model level. Recently,", "prediction to trigger potential early termination. Since the", "some works about model selection are proposed (Li et al.,", "inference of delegator is conducted all the time, we prefer", "2021b; You et al., 2021). These methods are concerned with", "to make delegator more lightweight than expert. Delegator", "ranking a number of pre-trained models and finding the one", "consists of three modules: feature extractor, task predictor", "transfers best to a downstream task of interest. Therefore", "and expert selector as shown in Fig.3. Based on the feature", "they selectmodels task-wisely.By contrast,CoEaims at im-", "derived from feature extractor, task predictor and expert", "proving the task performance via selecting the most suitable", "selector output the probabilities for classification and expert", "expert for each sample instance-wisely.", "selectionrespectively.Inthefollowing subsections,wewill", "describe the inference procedure and training strategy of", "2.2. Dynamic Networks", "CoE comprehensively. The number of samples and experts", "are denoted as m and n.", "Dynamic networks achieve high performance with low com-", "putationcostbyconditionallyvaryingthenetworkparame-", "Expert", "ters (Zhang et al., 2020; Yang et al., 2019) or network archi-", "Selection", "tectures (Yuan et al., 2020). HD-CNN (Yan et al., 2015) and", "Rough", "Prediction-ll", "SoftMax", "Expert", "Selector", "HydraNet (Mullapudi et al., 2018) select branches based on", "the category, they cluster all categories into n groups, where", "Task", "FCse", "Predictor", "10", "n is the number of branches. While CoE learns the model", "selection pattern automatically, it can be based on any prop", "erty, rather than limited to the category. MoE (Shazeer et al.,", "2017) and Switch Transformer (Fedus et al., 2021) select", "experts at the layer level with a router. The output feature of", "Feature", "Extractor", "each expert will be scaled with the gate-value predicted by", "router, thus router becomes trainable. This gate-value-based", "", "optimization manner is heuristic while CoE trains the delega-", "A", "tor more reasonably. Since expert selection for CoE is done", "across models, we can use protocols like True Class Proba", "bility (TCP, Corbiere et al. 2019) to measure the suitability", "Figure 3. The architecture of delegator. Task predictor consists of", "of each expert without bias. Based on expert suitabilities,", "one fully connected layer and a SoftMax layer. Expert selector", "the labels to supervise delegator for expert selection can be", "consists of two fully connected layers with the hidden dim as 100,", "followed by a SoftMax layer.", "obtained. Additionally, CoE takes more advantage of condi-", "tional computation asthe whole networkis selected,rather", "than only some particular layers. The recently proposed", "3.1.InferenceProcedure", "Dynamic Convolution methods (Zhang et al., 2020; Yang", "et al., 2019; Chen et al., 2020) share the similar idea and", "CoE firstly uses delegator to obtain the rough prediction and", "achieve remarkable performance with low FLOPs but high", "determine the selected expert for each sample. Afterward,", "Maximum Class Probability (MCP, Corbiere et al. 2019) of", "latency.Itisbecausethesemethodsneedtoloadmanybasis", "models or experts to synthesize the dynamic parameters,", "rough prediction is calculated. It is the probability of pre-", "causing high MAC and low degree of parallelism (Ma et al.,", "dicted class. Then, the final recognition results for samples", "2018). By contrast, CoE only needs to load the selected", "with MCP larger than a given threshold ↑ are derived from", "the rough predictions. Other samples are partitioned into" ]
{ "arxiv_id": "2107.03815", "language": "en", "page_idx": 2 }
2107.03815-en-3
2107.03815-en-3.jpg
Submission and Formatting Instructions for ICML 2022 $n$ groups based on which expert is selected. Subsequently, batch processing can be conducted within each group to obtain refined predictions. This procedure is shown in Fig.4. The averaged FLOPs/Instance of CoE ranges from $F_D$ to $F_D+F_E$ by varying $\tau$ from 0 to 1,$F_D$ and $F_E$ are FLOPs of delegator and experts. Therefore, the value of $\tau$ is directly determined by target FLOPs. <FigureHere> Figure 4. The inference procedure of CoE. MCP is the probability of predicted class. $\tau$ is the threshold for early termination. 3.2. Label Generation Module (LGM) Since expert selection for CoE is done across models, we can measure the suitability of each expert without bias. Based on this, labels to supervise delegator for expert selection can be obtained. This label-based training method for delegator is more reasonable than the widely-used gate-value-based method (Shazeer et al., 2017; Fedus et al., 2021) which enables the training of routing function by using its predicted gate-value to scale the output of each expert. Next, we firstly introduce how to measure the suitability of each expert, then illustrate how to obtain the selection label. ## Model accuracy can be measured by True Class Probability (TCP, Corbière et al. 2019): (1) $$\mathrm{TCP}_{j,k}=P(Y=y_{j}|x_{j},\mathrm{Expert}_{k}),$$ where, $x_j$ is the j-th sample, $Y$ and $y_j$ are the predicted and true class. But accuracy is not the only factor for suitability. For example, when models are of different sizes, the larger one usually has a higher TCP. But it may not be more suitable, due to the large inference cost. Given that our concern is not the optimization of network architecture, we can suppose no expert is superior to others (No Superi- $ority\textit{ Assumption, NSA) . Motivated by NSA, we leverage}$ the standardized TCP as the metric for sutability: $$S_{j,k}=\frac{\mathrm{TCP}_{j,k}-Mean(\mathrm{TCP}_{:,k})}{Std(\mathrm{TCP}_{:,k})},$$ (2) where, Mean(TCP$_:,k)$ and Std(TCP$_:,k)$ are mean value and standard deviation for TCPs of Expert$_k$ on $m$ samples. Selection labels can be denoted by a binary matrix $L_{m\times n}$, where each row is a selection label. According to NSA, each expert should be assigned the same number of samples, thus the sum of each colum vector of $L_{m\times n}$ should be same, i.e. $\sum_{j}L_{j,k}=\frac{m}{n}$ for $k=1,...,n.$ Therefore, $L_m\times n$ can be obtatined by maximizing $\sum_j,kS_{j,k}*L_{j,k}$ $$\begin{array}{lll}\min&\sum_{j,k}-S_{j,k}*L_{j,k}\\s.t.&L_{j,k}\in\{0,1\},&\sum_{k}L_{j,k}=1,&\sum_{j}L_{j,k}=\frac{m}{n}\end{array}\quad(3)$$ This problem can be modeled as the balanced transportation problem (BTP, Shore 1970), where each sample is a supply source with a supply of one, each expert is a demand source with a demand of $m/n.-S_{j,k}$ is the per-unit transportation cost from the j-th supply source to the k-th demand source. We solve this problem via Vogel approximation method (VAM, Shore 1970) as introduced in Appendix A.1, which is a short-cut approach to invariably obtain a good solution. $3. 3. \textbf{Weight Generation Module ( WGM) }$ To maximize the collective capacity of CoE, the dataset needs to be partitioned into portions then each expert only focuses on one portion. This is achieved by WGM which reweights the losses of experts. The partition can be indicated by an assignment matrix $A_{m\times n}$, with one-hot row vectors. $A_{j,k}=1$ means the j-th sample $x_j$ is assigned to the k-th expert, thus the loss weight for Expert $_k$ gets larger than other experts on $x_j.$ A naive partition can be based on expert suitability, namely, partitioning the training data with selection labels $L_{m\times n}.$ However, it results in a poor generalization to delegator as shown in Fig.5a. Assuming Expert$_k$ is suitable on a sample $x_{j}$,thus $A_j,k=L_{j,k}=1.$ Due to $A_j,k=1$,the loss weight for Expert$_k$ gets larger than other experts on $x_j$, making Expert$_k$ more suitable in return. Therefore selection labels cannot be updated and the irregularity for them caused by random initialization will be preserved. Consequently, delegator gradually overfits to irregular labels, yielding a poor generalization. This is also verified in Section 4.4, where the expert-suitability-based partition results in a terrible $\hat{\text{performance for Co}}^{WGM^{\star}}.$ Since networks learn gradually more complex hypotheses during training (Arpit et al., 2017), delegator tends to learn generalizable patterns first. Therefore, the partition can be based on generalizable patterns with delegator as the bridge, namely, partition based on the output of delegator. In this way, selection labels get more regular in return due to the reweighting of expert losses. As shown in Fig.5b, delegator avoids overfitting to the irregular labels. Delegator outputs a probability matrix $P_{m\times n}\in R^{m\times n}$,
[ [ "0.3096", "0.05682", "0.665", "0.05682", "0.665", "0.0707", "0.3096", "0.0707" ], [ "0.08905", "0.0859", "0.4756", "0.0859", "0.4756", "0.09973", "0.08905", "0.09973" ], [ "0.4983", "0.084", "0.884", "0.0859", "0.884", "0.101", "0.4983", "0.0985" ], [ "0.08826", "0.1016", "0.4739", "0.1016", "0.4739", "0.11554", "0.08826", "0.11554" ], [ "0.4983", "0.1016", "0.8857", "0.1016", "0.8857", "0.11554", "0.4983", "0.11554" ], [ "0.08905", "0.1187", "0.4739", "0.1187", "0.4739", "0.1288", "0.08905", "0.1288" ], [ "0.4968", "0.11615", "0.8857", "0.11554", "0.8857", "0.13", "0.4968", "0.1307" ], [ "0.08905", "0.132", "0.4739", "0.132", "0.4739", "0.1459", "0.08905", "0.1459" ], [ "0.4968", "0.13", "0.888", "0.1288", "0.888", "0.1465", "0.4968", "0.1477" ], [ "0.08826", "0.1465", "0.4756", "0.1459", "0.4756", "0.1604", "0.08826", "0.161" ], [ "0.4983", "0.1445", "0.888", "0.1459", "0.888", "0.1635", "0.4983", "0.1622" ], [ "0.08826", "0.161", "0.4722", "0.161", "0.4722", "0.1749", "0.08826", "0.1749" ], [ "0.4968", "0.1578", "0.785", "0.1604", "0.785", "0.1812", "0.4968", "0.1787" ], [ "0.0866", "0.1768", "0.2793", "0.1755", "0.2793", "0.1901", "0.0866", "0.1913" ], [ "0.5728", "0.1901", "0.5825", "0.1995", "0.5728", "0.2052", "0.564", "0.1963" ], [ "0.581", "0.1901", "0.6787", "0.1925", "0.6787", "0.2102", "0.581", "0.2084" ], [ "0.2255", "0.2052", "0.255", "0.2052", "0.255", "0.2134", "0.2255", "0.2134" ], [ "0.5156", "0.1925", "0.5513", "0.1925", "0.5513", "0.2084", "0.5156", "0.2084" ], [ "0.2157", "0.2058", "0.3325", "0.2084", "0.3325", "0.226", "0.2157", "0.2235" ], [ "0.343", "0.209", "0.3938", "0.207", "0.3945", "0.2229", "0.3447", "0.2247" ], [ "0.415", "0.209", "0.464", "0.209", "0.464", "0.2235", "0.415", "0.2235" ], [ "0.5664", "0.2102", "0.589", "0.2102", "0.589", "0.2247", "0.5664", "0.2247" ], [ "0.864", "0.2134", "0.886", "0.2134", "0.886", "0.2267", "0.864", "0.2267" ], [ "0.2957", "0.2235", "0.308", "0.2235", "0.308", "0.2343", "0.2957", "0.2343" ], [ "0.3677", "0.2229", "0.3757", "0.2291", "0.3694", "0.2343", "0.361", "0.2279" ], [ "0.433", "0.2235", "0.4468", "0.2235", "0.4468", "0.2343", "0.433", "0.2343" ], [ "0.5195", "0.2247", "0.7646", "0.226", "0.7646", "0.2437", "0.5195", "0.2424" ], [ "0.7524", "0.2247", "0.8506", "0.2267", "0.8506", "0.2443", "0.7524", "0.2424" ], [ "0.2737", "0.2374", "0.327", "0.2374", "0.327", "0.252", "0.2737", "0.252" ], [ "0.3447", "0.2374", "0.3945", "0.2374", "0.3945", "0.252", "0.3447", "0.252" ], [ "0.415", "0.2374", "0.4673", "0.2374", "0.4673", "0.252", "0.415", "0.252" ], [ "0.6733", "0.2443", "0.681", "0.2443", "0.681", "0.2474", "0.6733", "0.2474" ], [ "0.7695", "0.2443", "0.778", "0.2443", "0.778", "0.25", "0.7695", "0.25" ], [ "0.2133", "0.2474", "0.2296", "0.2474", "0.2296", "0.2551", "0.2133", "0.2551" ], [ "0.1438", "0.2474", "0.1609", "0.2474", "0.1609", "0.2551", "0.1438", "0.2551" ], [ "0.2957", "0.2551", "0.3057", "0.2551", "0.3057", "0.2664", "0.2957", "0.2664" ], [ "0.3635", "0.2551", "0.3757", "0.2551", "0.3757", "0.2651", "0.3635", "0.2651" ], [ "0.4346", "0.254", "0.4468", "0.254", "0.4468", "0.2664", "0.4346", "0.2664" ], [ "0.10297", "0.2651", "0.1168", "0.2651", "0.1168", "0.2695", "0.10297", "0.2695" ], [ "0.1462", "0.2556", "0.1569", "0.2556", "0.1569", "0.2651", "0.1462", "0.2651" ], [ "0.0907", "0.2708", "0.1602", "0.2708", "0.1602", "0.281", "0.0907", "0.281" ], [ "0.2467", "0.2708", "0.2532", "0.276", "0.2484", "0.281", "0.2402", "0.2747" ], [ "0.501", "0.2708", "0.8857", "0.2708", "0.8857", "0.2842", "0.501", "0.2842" ], [ "0.2157", "0.2727", "0.2279", "0.2727", "0.2279", "0.279", "0.2157", "0.279" ], [ "0.1691", "0.2727", "0.179", "0.2727", "0.179", "0.2778", "0.1691", "0.2778" ], [ "0.3677", "0.2766", "0.3882", "0.2766", "0.3882", "0.2798", "0.3677", "0.2798" ], [ "0.4265", "0.2747", "0.4495", "0.2747", "0.4495", "0.2822", "0.4265", "0.2822" ], [ "0.1929", "0.2842", "0.2018", "0.2842", "0.2018", "0.2954", "0.1929", "0.2954" ], [ "0.2239", "0.2917", "0.2834", "0.2917", "0.2834", "0.3018", "0.2239", "0.3018" ], [ "0.501", "0.286", "0.884", "0.286", "0.884", "0.2998", "0.501", "0.2998" ], [ "0.3628", "0.2942", "0.3694", "0.2942", "0.3694", "0.2974", "0.3628", "0.2974" ], [ "0.3938", "0.2942", "0.406", "0.2942", "0.406", "0.2974", "0.3938", "0.2974" ], [ "0.501", "0.3018", "0.8857", "0.3018", "0.8857", "0.315", "0.501", "0.315" ], [ "0.3367", "0.305", "0.3472", "0.305", "0.3472", "0.3093", "0.3367", "0.3093" ], [ "0.3718", "0.3062", "0.398", "0.308", "0.3962", "0.3164", "0.3708", "0.3145" ], [ "0.501", "0.3164", "0.8857", "0.3164", "0.8857", "0.33", "0.501", "0.33" ], [ "0.1936", "0.3176", "0.2009", "0.3176", "0.2009", "0.3208", "0.1936", "0.3208" ], [ "0.1691", "0.2986", "0.2173", "0.2986", "0.2173", "0.3132", "0.1691", "0.3132" ], [ "0.501", "0.332", "0.886", "0.332", "0.886", "0.3452", "0.501", "0.3452" ], [ "0.3367", "0.3447", "0.3733", "0.3447", "0.3733", "0.356", "0.3367", "0.356" ], [ "0.5", "0.3447", "0.886", "0.3452", "0.886", "0.3599", "0.5", "0.3591" ], [ "0.501", "0.361", "0.8857", "0.361", "0.8857", "0.375", "0.501", "0.375" ], [ "0.08826", "0.3726", "0.4739", "0.3726", "0.4739", "0.3865", "0.08826", "0.3865" ], [ "0.501", "0.377", "0.886", "0.377", "0.886", "0.3901", "0.501", "0.3901" ], [ "0.08826", "0.3865", "0.4314", "0.3865", "0.4314", "0.3997", "0.08826", "0.3997" ], [ "0.501", "0.4077", "0.7812", "0.4077", "0.7812", "0.4216", "0.501", "0.4216" ], [ "0.08905", "0.4236", "0.353", "0.4236", "0.353", "0.4375", "0.08905", "0.4375" ], [ "0.5", "0.4312", "0.886", "0.4312", "0.886", "0.4458", "0.5", "0.4458" ], [ "0.08826", "0.449", "0.4756", "0.449", "0.4756", "0.4622", "0.08826", "0.4622" ], [ "0.5", "0.4463", "0.8857", "0.4463", "0.8857", "0.461", "0.5", "0.461" ], [ "0.08826", "0.4634", "0.4756", "0.4634", "0.4756", "0.4766", "0.08826", "0.4766" ], [ "0.4983", "0.461", "0.8857", "0.4602", "0.8857", "0.4749", "0.4983", "0.476" ], [ "0.08905", "0.4797", "0.4722", "0.4797", "0.4722", "0.4905", "0.08905", "0.4905" ], [ "0.501", "0.4792", "0.8857", "0.4792", "0.8857", "0.4893", "0.501", "0.4893" ], [ "0.08826", "0.4937", "0.4756", "0.4937", "0.4756", "0.507", "0.08826", "0.507" ], [ "0.5", "0.4924", "0.8857", "0.4924", "0.8857", "0.506", "0.5", "0.506" ], [ "0.08905", "0.5103", "0.4722", "0.5103", "0.4722", "0.521", "0.08905", "0.521" ], [ "0.5", "0.507", "0.8857", "0.507", "0.8857", "0.521", "0.5", "0.521" ], [ "0.08826", "0.5234", "0.4739", "0.5234", "0.4739", "0.537", "0.08826", "0.537" ], [ "0.4983", "0.521", "0.886", "0.5215", "0.886", "0.536", "0.4983", "0.535" ], [ "0.08826", "0.539", "0.4739", "0.539", "0.4739", "0.553", "0.08826", "0.553" ], [ "0.4983", "0.535", "0.665", "0.5386", "0.665", "0.553", "0.4983", "0.55" ], [ "0.08905", "0.5537", "0.4739", "0.5537", "0.4739", "0.5684", "0.08905", "0.5684" ], [ "0.501", "0.56", "0.886", "0.56", "0.886", "0.5737", "0.501", "0.5737" ], [ "0.08905", "0.5693", "0.4739", "0.5693", "0.4739", "0.5835", "0.08905", "0.5835" ], [ "0.4983", "0.5728", "0.886", "0.5737", "0.886", "0.5913", "0.4983", "0.5903" ], [ "0.08826", "0.584", "0.367", "0.584", "0.367", "0.5977", "0.08826", "0.5977" ], [ "0.5", "0.589", "0.8857", "0.589", "0.8857", "0.603", "0.5", "0.603" ], [ "0.08905", "0.606", "0.4722", "0.606", "0.4722", "0.619", "0.08905", "0.619" ], [ "0.4983", "0.604", "0.886", "0.605", "0.886", "0.619", "0.4983", "0.6187" ], [ "0.08826", "0.622", "0.2737", "0.622", "0.2737", "0.6353", "0.08826", "0.6353" ], [ "0.501", "0.6206", "0.886", "0.6206", "0.886", "0.6353", "0.501", "0.6353" ], [ "0.501", "0.636", "0.8857", "0.636", "0.8857", "0.6494", "0.501", "0.6494" ], [ "0.1642", "0.6465", "0.398", "0.6484", "0.398", "0.6655", "0.1642", "0.6636" ], [ "0.452", "0.6494", "0.4756", "0.6494", "0.4756", "0.6636", "0.452", "0.6636" ], [ "0.501", "0.651", "0.886", "0.651", "0.886", "0.664", "0.501", "0.664" ], [ "0.5", "0.6655", "0.8857", "0.6655", "0.8857", "0.6787", "0.5", "0.6787" ], [ "0.08826", "0.677", "0.4739", "0.677", "0.4739", "0.6914", "0.08826", "0.6914" ], [ "0.5", "0.6787", "0.8857", "0.6787", "0.8857", "0.6934", "0.5", "0.6934" ], [ "0.08826", "0.6914", "0.4739", "0.6914", "0.4739", "0.705", "0.08826", "0.705" ], [ "0.5", "0.696", "0.8857", "0.6943", "0.8857", "0.709", "0.5", "0.7104" ], [ "0.08826", "0.707", "0.4739", "0.7085", "0.4739", "0.7217", "0.08826", "0.72" ], [ "0.5", "0.711", "0.8857", "0.7104", "0.8857", "0.7236", "0.5", "0.7246" ], [ "0.08826", "0.7227", "0.4756", "0.7227", "0.4756", "0.7363", "0.08826", "0.7363" ], [ "0.5", "0.726", "0.886", "0.726", "0.886", "0.7393", "0.5", "0.7393" ], [ "0.08826", "0.738", "0.4756", "0.738", "0.4756", "0.752", "0.08826", "0.752" ], [ "0.4983", "0.7407", "0.6846", "0.735", "0.6846", "0.7524", "0.4983", "0.7583" ], [ "0.08905", "0.755", "0.4722", "0.755", "0.4722", "0.765", "0.08905", "0.765" ], [ "0.5", "0.762", "0.886", "0.763", "0.886", "0.778", "0.5", "0.7764" ], [ "0.08826", "0.768", "0.4739", "0.768", "0.4739", "0.782", "0.08826", "0.782" ], [ "0.0866", "0.782", "0.4739", "0.7827", "0.4739", "0.7974", "0.0866", "0.797" ], [ "0.501", "0.779", "0.8857", "0.779", "0.8857", "0.7925", "0.501", "0.7925" ], [ "0.0866", "0.797", "0.4102", "0.7974", "0.4102", "0.8125", "0.0866", "0.811" ], [ "0.501", "0.7944", "0.8857", "0.7935", "0.8857", "0.8066", "0.501", "0.808" ], [ "0.5", "0.808", "0.886", "0.8096", "0.886", "0.8237", "0.5", "0.8228" ], [ "0.2141", "0.821", "0.3906", "0.8228", "0.3906", "0.8403", "0.2141", "0.8384" ], [ "0.501", "0.8247", "0.8857", "0.8247", "0.8857", "0.8384", "0.501", "0.8384" ], [ "0.1666", "0.8306", "0.2141", "0.8335", "0.2133", "0.8486", "0.165", "0.8467" ], [ "0.452", "0.8335", "0.4756", "0.8335", "0.4756", "0.845", "0.452", "0.845" ], [ "0.2607", "0.8413", "0.3464", "0.8413", "0.3464", "0.856", "0.2607", "0.856" ], [ "0.5", "0.839", "0.886", "0.839", "0.886", "0.853", "0.5", "0.853" ], [ "0.5", "0.854", "0.886", "0.854", "0.886", "0.867", "0.5", "0.867" ], [ "0.08826", "0.867", "0.4739", "0.867", "0.4739", "0.881", "0.08826", "0.881" ], [ "0.5", "0.869", "0.763", "0.869", "0.763", "0.8833", "0.5", "0.8833" ], [ "0.08826", "0.8833", "0.4453", "0.8833", "0.4453", "0.8965", "0.08826", "0.8965" ], [ "0.4968", "0.8896", "0.886", "0.888", "0.886", "0.906", "0.4968", "0.907" ] ]
[ "Submission and Formatting Instructions for ICML 2022", "n groups based on which expert is selected. Subsequently,", "Selection labels can be denoted by a binary matrix Lmxn", "batch processing can be conducted within each group to", "where each row is a selection label. According to NSA, each", "obtainrefinedpredictions.ThisprocedureisshowninFig.4.", " expert should be assigned the same number of samples, thus", "The averaged FLOPs/Instance of CoE ranges from FD to", "the sum of each colum vector of Lmxn should be same, ie.", "FD+Feby varyingTfrom O to1,FDand FeareFLOPs", "Z, Li,k = for k = 1,., n. Therefore, Lmxn can be", "of delegator and experts.Therefore, the value of is directly", "Obtatined by maximizing j, Sj,k * Lj,k:", "determined by target FLOPs.", "T", "C-Sj.h* Lj.k", "Refined", "min", "Preo", "(昆)", "", "j,k", "(3)", "t", "k", "t", "s.t.Lj,kE(0,1),ZLj,k=1,", "ZLik=m", "Eyperi", "Exper,", "Epert", "", "7", "MCP", "MCP,", "", "t", "t", "Rawe", "t", "Predictions:(h", "", "This problem can be modeled as the balanced transportation", "lih", "", "", "", "+", "Expent Selection", "problem (BTP, Shore 1970), where each sample is a supply", "", "", "source with a supply of one, each expert is a demand source", "Pa", "MCP,≥", "with a demand of m/n. -Si,k is the per-unit transportation", "-", "Delegator", "cost from the j-th supply source to the k-th demand source.", "Inputs", "We solve this problem via Vogel approximation method", "(VAM, Shore 1970) as introduced in Appendix A.1, which", "Figure 4. The inference procedure of CoE. MCP is the probability", "is a short-cut approach to invariably obtain a good solution.", "of predicted class. T is the threshold for early termination.", "3.3. Weight Generation Module (WGM)", "3.2. Label Generation Module (LGM)", "To maximize the collective capacity of CoE, the dataset", "Since expert selection for CoE is done across models, we can", "needs to be partitioned into portions then each expert only", "measure the suitability of each expert without bias. Based", "focuses on one portion. This is achieved by WGM which", "onthis,labelsto supervisedelegatorforexpertselectioncan", "reweightsthe losses of experts.Thepartitioncanbeindi-", "be obtained. This label-based training method for delegator", "cated by an assignment matrix Amxn, with one-hot row", "is morereasonablethan the widely-usedgate-value-based", "vectors. Aj,k = 1 means the j-th sample &, is assigned to", "method (Shazeer et al., 2017; Fedus et al., 2021) which", "the k-th expert, thus the loss weight for Expert, gets larger", "enables the training of routing function by using its predicted", "than other experts on j.", "gate-value to scale the output of each expert. Next, we firstly", "A naive partition can be based on expert suitability, namely,", "introduce how to measure the suitability of each expert, then", "partitioning the training data with selection labels Lmxn.", "illustrate how to obtain the selection label.", "However, it results in a poor generalization to delegator as", "Model accuracy can be measured by True Class Probability", "shown in Fig.5a. Assuming Expert, is suitable on a sample", "(TCP, Corbiere et al. 2019):", "Cj, thus Aj,k = Lj,k = 1. Due to Aj,k = 1, the loss weight", "for Expertk gets larger than other experts on &j, making", "TCPj, = P(Y =yjlrj,Expert,),", "(1)", "Expert, more suitable in return. Therefore selection labels", "cannot be updated and the irregularity for them caused by", "where, , is the j-th sample, Y and yi are the predicted", "random initialization will be preserved. Consequently, dele-", "and true class. But accuracy is not the only factor for suit-", "gator gradually overfits to irregular labels, yielding a poor", "ability. For example, when models are of different sizes,", "generalization. This is also verified in Section 4.4, where", "the larger one usually has a higher TCP. But it may not be", "the expert-suitability-based partition results in a terrible", "more suitable, due to the large inference cost. Given that", "performance for CoEWGM*", "ourconcernisnottheoptimizationofnetworkarchitecture", "Since networks learn gradually more complex hypotheses", "we can suppose no expert is superior to others (No Superi-", "ority Assumption, NSA).Motivated by NSA, we leverage", "during training (Arpit et al., 2017), delegator tends to learn", "the standardized TCP as the metric for sutability:", "generalizable patterns first.Therefore,thepartition canbe", "based on generalizable patterns with delegator as the bridge,", "TCPj,k - Mean(TCP:,k)", "namely, partition based on the output of delegator. In this", "Si,k =", "(2)", "Std(TCP.,k)", "way, selection labels get more regular in return due to the", "reweighting of expert losses. As shown in Fig.5b, delegator", "where, Mean(TCP.k) and Std(TCP.) are mean value and", "avoids overfitting to the irregular labels.", "standard deviation for TCPs of Expert, on m samples.", "Delegator outputs a probability matrix Pmxn E Rmxn," ]
{ "arxiv_id": "2107.03815", "language": "en", "page_idx": 3 }
2310.15100-en-0
2310.15100-en-0.jpg
## $\textbf{LLM- in- the- loop: Leveraging Large Language Model for Thematic}$ $\mathbf{Analysis}$ Shih-Chieh Dai$^{1}$ Aiping Xiong$^2$ Lun-Wei Ku$^{3}$ $^{1}$ University of Texas at Austin $^3$Academia Sinica $^{2}$Pennsylvania State University $^3$lwku@iis.sinica.edu.tw sjdai@utexas.edu $^{2}$axx29@psu.edu ## Abstract Thematic analysis (TA) has been widely used for analyzing qualitative data in many disciplines and fields. To ensure reliable analysis, the same piece of data is typically assigned to at least two human coders. Moreover, to produce meaningful and useful analysis, human coders develop and deepen their data interpretation and coding over multiple iterations, making TA labor-intensive and time-consuming. Recently the emerging feld of large language models (LLMs) research has shown that LLMs have the potential replicate human-like behavior in various tasks: in particular, LLMs outperform crowd workers on text-annotation tasks, suggesting an opportunity to leverage LLMs on TA. We propose a human-LLM collaboration framework (i.e., LLM-in-the-loop) to conduct TA with in-context learning (ICL). This framework provides the prompt to frame discussions with a LLM (e.g., GPT-3.5) to generate the final codebook for TA. We demonstrate the utility of this framework using survey datasets on the aspects of the music listening experience and the usage of a password manager. Results of the two case studies show that the proposed framework yields similar coding quality to that of human coders but reduces TA's labor and time demands. 1 ## 1 Introduction Braun and Clarke (2006) propose thematic analysis (TA) to identify themes that represent qualitative data (e.g. free-text response). TA, which relies on at least two human coders with relevant expertise to run the whole process, is widely used in qualitative research (QR). However, TA is labor-intensive and time-consuming. For instance, for an in-depth understanding of the data, coders require multiple rounds of discussion to resolve ambiguities and achieve consensus. The code repository is publicly available at: https://github.com/sjdai/LLM-thematic-analysis Large language models (LLMs) have advanced artificial intelligence (AI) tremendously recently (Brown et al., 2020; Chowdhery et al., 2022; Scao et al., 2022; Touvron et al., 2023). Prompting techniques such as in-context learning (ICL), chain-of-thought, and reasoning and action elicit decent results on various natural language processing (NLP) tasks (Wei et al., 2022; Kojima et al., 2022; Suzgun et al., 2022; Yao et al., 2023). LLMbased applications continue to multiply, including Copilot for programming,$^2$LaMDA for dialogue generation (Thoppilan et al., 2022), and ChatGPT.$^{3}$ Indeed, several studies show that LLMs outperform human annotator performance on crowdsourcing tasks (Gilardi et al., 2023; Chiang and Lee, 2023; Ziems et al., 2023), which indicates a potential opportunity to leverage LLMs for TA. Thus, in this work, we address the research question: can NLP techniques (i.e., LLMs) enhance the efficiency of $TA?$ We loop ChatGPT to act as a machine coder ( MC) and work with a human coder ( HC) on TA. Following Braun and Clarke (2006), we leverage ICL to design the prompt for each step. The HC first becomes familiar with the data, after which the MC extracts the initial codes based on the research question and free-text responses. Next, the MC groups the similar initial codes into representative codes representing the responses and which answer the research question. We design a discussion prompt for the MC and HC to use to refine the codes. The discussion ends once the HC and MC come to agreement, after which the codebook is generated. Following the TA procedure, the HC and MC utilize the codebook to code the responses and calculate the inner-annotator agreement (IAA) to measure the quality of the work. See Section 3 for detailed information. We study the effectiveness of this human-LLM $^2$https: / / gi thub. com/ features/ copilot $^{3}$https://openai.com/blog/chatgpt
[ [ "0.1511", "0.09265", "0.846", "0.09265", "0.846", "0.10986", "0.1511", "0.10986" ], [ "0.455", "0.11224", "0.5425", "0.11224", "0.5425", "0.1271", "0.455", "0.1271" ], [ "0.266", "0.155", "0.4114", "0.1526", "0.4114", "0.1704", "0.266", "0.1729" ], [ "0.455", "0.1561", "0.5786", "0.1561", "0.5786", "0.1704", "0.455", "0.1704" ], [ "0.613", "0.155", "0.733", "0.1526", "0.733", "0.1704", "0.613", "0.1729" ], [ "0.1318", "0.1692", "0.388", "0.1716", "0.388", "0.1895", "0.1318", "0.187" ], [ "0.4248", "0.1716", "0.679", "0.1729", "0.679", "0.187", "0.4248", "0.1859" ], [ "0.7188", "0.1716", "0.869", "0.1733", "0.869", "0.1882", "0.7188", "0.1859" ], [ "0.4014", "0.1895", "0.544", "0.1895", "0.544", "0.2037", "0.4014", "0.2037" ], [ "0.581", "0.1882", "0.817", "0.1907", "0.817", "0.2048", "0.581", "0.2031" ], [ "0.2627", "0.253", "0.3418", "0.253", "0.3418", "0.2673", "0.2627", "0.2673" ], [ "0.1897", "0.1907", "0.361", "0.1907", "0.361", "0.2037", "0.1897", "0.2037" ], [ "0.529", "0.2542", "0.8833", "0.2542", "0.8833", "0.2683", "0.529", "0.2683" ], [ "0.511", "0.2708", "0.8833", "0.2708", "0.8833", "0.284", "0.511", "0.284" ], [ "0.1453", "0.284", "0.4592", "0.284", "0.4592", "0.2976", "0.1453", "0.2976" ], [ "0.513", "0.2861", "0.8833", "0.2861", "0.8833", "0.2998", "0.513", "0.2998" ], [ "0.1453", "0.2986", "0.4568", "0.2986", "0.4568", "0.3088", "0.1453", "0.3088" ], [ "0.513", "0.3018", "0.882", "0.3018", "0.882", "0.3154", "0.513", "0.3154" ], [ "0.02351", "0.31", "0.06046", "0.31", "0.06046", "0.437", "0.02351", "0.437" ], [ "0.1453", "0.3123", "0.4592", "0.3123", "0.4592", "0.326", "0.1453", "0.326" ], [ "0.513", "0.3206", "0.881", "0.3206", "0.881", "0.3308", "0.513", "0.3308" ], [ "0.1453", "0.3267", "0.4592", "0.3267", "0.4592", "0.3403", "0.1453", "0.3403" ], [ "0.513", "0.335", "0.882", "0.335", "0.882", "0.3486", "0.513", "0.3486" ], [ "0.1453", "0.3416", "0.4592", "0.3416", "0.4592", "0.3552", "0.1453", "0.3552" ], [ "0.1453", "0.3552", "0.4575", "0.3552", "0.4575", "0.3682", "0.1453", "0.3682" ], [ "0.513", "0.3516", "0.882", "0.3516", "0.882", "0.3652", "0.513", "0.3652" ], [ "0.147", "0.3706", "0.4568", "0.3706", "0.4568", "0.3813", "0.147", "0.3813" ], [ "0.513", "0.3677", "0.882", "0.3677", "0.882", "0.3813", "0.513", "0.3813" ], [ "0.1453", "0.3843", "0.4575", "0.3843", "0.4575", "0.398", "0.1453", "0.398" ], [ "0.513", "0.383", "0.882", "0.383", "0.882", "0.3967", "0.513", "0.3967" ], [ "0.1453", "0.398", "0.4575", "0.398", "0.4575", "0.411", "0.1453", "0.411" ], [ "0.513", "0.3997", "0.882", "0.3997", "0.882", "0.4133", "0.513", "0.4133" ], [ "0.1436", "0.4104", "0.4575", "0.411", "0.4575", "0.4258", "0.1436", "0.4246" ], [ "0.511", "0.415", "0.882", "0.415", "0.882", "0.4287", "0.511", "0.4287" ], [ "0.1453", "0.4258", "0.4575", "0.4258", "0.4575", "0.4395", "0.1453", "0.4395" ], [ "0.511", "0.4312", "0.879", "0.43", "0.879", "0.4448", "0.511", "0.4453" ], [ "0.02016", "0.437", "0.0638", "0.4358", "0.06635", "0.517", "0.02351", "0.5186" ], [ "0.147", "0.4412", "0.4575", "0.4412", "0.4575", "0.452", "0.147", "0.452" ], [ "0.511", "0.4453", "0.882", "0.4465", "0.882", "0.4614", "0.511", "0.4602" ], [ "0.1436", "0.4531", "0.4592", "0.4536", "0.4592", "0.4685", "0.1436", "0.4673" ], [ "0.51", "0.462", "0.882", "0.4631", "0.882", "0.478", "0.51", "0.4768" ], [ "0.1453", "0.4685", "0.4592", "0.4685", "0.4592", "0.4822", "0.1453", "0.4822" ], [ "0.147", "0.4827", "0.4575", "0.4827", "0.4575", "0.4963", "0.147", "0.4963" ], [ "0.51", "0.478", "0.8833", "0.4785", "0.8833", "0.4934", "0.51", "0.4922" ], [ "0.1453", "0.4963", "0.4592", "0.4963", "0.4592", "0.5103", "0.1453", "0.5103" ], [ "0.51", "0.4946", "0.882", "0.4954", "0.882", "0.5103", "0.51", "0.509" ], [ "0.1453", "0.511", "0.4592", "0.511", "0.4592", "0.525", "0.1453", "0.525" ], [ "0.51", "0.5127", "0.882", "0.5103", "0.882", "0.525", "0.51", "0.527" ], [ "0.02016", "0.5186", "0.06046", "0.5186", "0.06046", "0.73", "0.02016", "0.73" ], [ "0.1453", "0.5254", "0.4592", "0.5254", "0.4592", "0.539", "0.1453", "0.539" ], [ "0.511", "0.528", "0.882", "0.528", "0.882", "0.542", "0.511", "0.542" ], [ "0.1453", "0.5415", "0.4568", "0.5415", "0.4568", "0.552", "0.1453", "0.552" ], [ "0.511", "0.5435", "0.882", "0.5435", "0.882", "0.558", "0.511", "0.558" ], [ "0.1453", "0.554", "0.4592", "0.554", "0.4592", "0.568", "0.1453", "0.568" ], [ "0.511", "0.561", "0.546", "0.561", "0.546", "0.5723", "0.511", "0.5723" ], [ "0.1453", "0.568", "0.4575", "0.568", "0.4575", "0.5806", "0.1453", "0.5806" ], [ "0.1453", "0.582", "0.4575", "0.582", "0.4575", "0.5957", "0.1453", "0.5957" ], [ "0.529", "0.5767", "0.882", "0.5767", "0.882", "0.5903", "0.529", "0.5903" ], [ "0.1453", "0.5967", "0.4575", "0.5967", "0.4575", "0.61", "0.1453", "0.61" ], [ "0.511", "0.593", "0.882", "0.593", "0.882", "0.6055", "0.511", "0.6055" ], [ "0.1436", "0.6094", "0.4592", "0.61", "0.4592", "0.6235", "0.1436", "0.6226" ], [ "0.511", "0.607", "0.882", "0.608", "0.882", "0.6226", "0.511", "0.6216" ], [ "0.1453", "0.6245", "0.4592", "0.6245", "0.4592", "0.638", "0.1453", "0.638" ], [ "0.511", "0.6235", "0.881", "0.6235", "0.881", "0.637", "0.511", "0.637" ], [ "0.1453", "0.6396", "0.4592", "0.6396", "0.4592", "0.653", "0.1453", "0.653" ], [ "0.5146", "0.6426", "0.881", "0.6426", "0.881", "0.653", "0.5146", "0.653" ], [ "0.147", "0.655", "0.4575", "0.655", "0.4575", "0.665", "0.147", "0.665" ], [ "0.51", "0.6562", "0.882", "0.6562", "0.882", "0.6694", "0.51", "0.6694" ], [ "0.1427", "0.6665", "0.2551", "0.665", "0.2551", "0.6797", "0.1427", "0.681" ], [ "0.51", "0.673", "0.881", "0.673", "0.881", "0.686", "0.51", "0.686" ], [ "0.51", "0.6885", "0.8833", "0.6895", "0.8833", "0.7036", "0.51", "0.703" ], [ "0.1184", "0.6997", "0.1318", "0.6997", "0.1318", "0.709", "0.1184", "0.709" ], [ "0.1301", "0.6978", "0.2603", "0.6978", "0.2603", "0.7114", "0.1301", "0.7114" ], [ "0.511", "0.706", "0.882", "0.706", "0.882", "0.7197", "0.511", "0.7197" ], [ "0.11755", "0.7236", "0.4878", "0.7236", "0.4878", "0.737", "0.11755", "0.737" ], [ "0.51", "0.7217", "0.8833", "0.7217", "0.8833", "0.7354", "0.51", "0.7354" ], [ "0.11755", "0.741", "0.4895", "0.741", "0.4895", "0.755", "0.11755", "0.755" ], [ "0.509", "0.737", "0.882", "0.7363", "0.882", "0.7505", "0.509", "0.752" ], [ "0.11584", "0.7573", "0.4895", "0.756", "0.4895", "0.771", "0.11584", "0.7715" ], [ "0.5146", "0.755", "0.881", "0.755", "0.881", "0.7656", "0.5146", "0.7656" ], [ "0.11584", "0.774", "0.4895", "0.774", "0.4895", "0.7876", "0.11584", "0.7876" ], [ "0.513", "0.7695", "0.882", "0.7695", "0.882", "0.783", "0.513", "0.783" ], [ "0.11584", "0.788", "0.492", "0.788", "0.492", "0.802", "0.11584", "0.802" ], [ "0.509", "0.785", "0.881", "0.7837", "0.881", "0.799", "0.509", "0.8" ], [ "0.11584", "0.8047", "0.4895", "0.8047", "0.4895", "0.8184", "0.11584", "0.8184" ], [ "0.511", "0.802", "0.881", "0.802", "0.881", "0.8154", "0.511", "0.8154" ], [ "0.11584", "0.822", "0.4878", "0.822", "0.4878", "0.835", "0.11584", "0.835" ], [ "0.511", "0.8184", "0.882", "0.8184", "0.882", "0.832", "0.511", "0.832" ], [ "0.11584", "0.8374", "0.4878", "0.8374", "0.4878", "0.851", "0.11584", "0.851" ], [ "0.51", "0.8345", "0.881", "0.833", "0.881", "0.847", "0.51", "0.8486" ], [ "0.11584", "0.854", "0.4878", "0.854", "0.4878", "0.8677", "0.11584", "0.8677" ], [ "0.51", "0.851", "0.6943", "0.851", "0.6943", "0.8643", "0.51", "0.8643" ], [ "0.11584", "0.8706", "0.2603", "0.8706", "0.2603", "0.8843", "0.11584", "0.8843" ], [ "0.529", "0.866", "0.879", "0.866", "0.879", "0.88", "0.529", "0.88" ], [ "0.1377", "0.8926", "0.388", "0.8926", "0.388", "0.9062", "0.1377", "0.9062" ], [ "0.388", "0.8945", "0.4592", "0.8945", "0.4592", "0.9062", "0.388", "0.9062" ], [ "0.531", "0.89", "0.806", "0.891", "0.806", "0.9062", "0.531", "0.905" ], [ "0.455", "0.8965", "0.4878", "0.8965", "0.4878", "0.905", "0.455", "0.905" ], [ "0.11584", "0.905", "0.4106", "0.905", "0.4106", "0.9185", "0.11584", "0.9185" ], [ "0.534", "0.905", "0.777", "0.905", "0.777", "0.9185", "0.534", "0.9185" ] ]
[ "LLM-in-the-loop: Leveraging Large Language Model for Thematic", "Analysis", "Shih-Chieh Dail", "Aiping Xiong?", "Lun-Wei Ku3", "1 University of Texas at Austin", "2Pennsylvania State University", "3Academia Sinica", "2axx29@psu.edu", "3lwku@iis.sinica.edu.tw", "Abstract", "lsjdai@utexas.edu", "Large language models (LLMs) have ad-", "vanced artificial intelligence (Al) tremendously re-", "Thematic analysis (TA) has been widely used", "cently (Brown et al., 2020; Chowdhery et al., 2022;", "for analyzing gualitative data in many disci-", "Scao et al., 2022; Touvron et al., 2023). Prompt", "", "plines and fields. To ensure reliable analysis,", "ingtechniguessuchasin-contextlearning(ICL)", "the same piece of data is typically assigned to at", "chain-of-thought, and reasoning and action elicit", "least two human coders. Moreover, to produce", "meaningful and useful analysis, human coders", "decent results on various natural language process", "develop and deepen their data interpretation", "ing (NLP) tasks (Wei et al., 2022; Kojima et al.", "and coding over multiple iterations, making TA", "2022; Suzgun et al., 2022; Yao et al., 2023). LLM", "labor-intensive and time-consuming. Recently", "based applications continue to multiply, including", "the emerging field of large language models", "Copilot for programming, LaMDA for dialogue", "(LLMs) research has shown that LLMs have", "generation (Thoppilan et al., 2022), and ChatGPT.3", "[T's]", "the potential replicate human-likebehavior in", "Indeed, several studies show that LLMs outperform", "various tasks: in particular, LLMs outperform", "human annotator performance on crowdsourcing", "crowd workers on text-annotation tasks, sug-", "gesting an opportunity to leverage LLMs on", "tasks (Gilardi et al., 2023; Chiang and Lee, 2023;", "TA. We propose a human-LLM collaboration", "Ziems et al., 2023), which indicates a potential op-", "framework (i.e., LLM-in-the-loop) to conduct", "portunity to leverage LLMs for TA. Thus, in this", "AS", "TA with in-context learning (ICL). This frame-", "work, we address the research question: can NLP", "workprovidestheprompttoframediscussions", "techniques (i.e., LLMs) enhance the efficiency of", "with a LLM (e.g., GPT-3.5) to generate the final", "TA?", "codebook for TA. We demonstrate the utility", "of this framework using survey datasets on the", "We loop ChatGPT to act as a machine coder", "aspects of the music listening experience and", "(MC) and work with a human coder (HC) on TA,", "the usage of a password manager.Results of", "Following Braun and Clarke (2006), we leverage", "the two case studies show that the proposed", "ICL to design the prompt for each step. The HC", "framework yields similar coding quality to that", "firstbecomesfamiliarwiththedata,afterwhich", "of human coders butreduces TA's labor and", "the MC extracts the initial codes based on the re-", "time demands. ", " search question and free-text responses. Next, the", "MC groups the similar initial codes into represen-", "1", "Introduction", "tative codes representing the responses and which", "Braun and Clarke (2006) propose thematic analysis", "answer the research question. We design a discus-", "(TA) to identify themes that represent qualitative", "sion prompt for the MC and HC to use to refine", "data (e.g. free-text response). TA, which relies on", "the codes.The discussion ends once the HC and", "at least two human coders with relevant expertise", "MC come to agreement, after which the codebook", "to run the whole process, is widely used in qualita-", "is generated. Following the TA procedure, the HC", "tive research (QR). However, TA is labor-intensive", "and MC utilize the codebook to code the responses", "and time-consuming.For instance, for an in-depth", "and calculate the inner-annotator agreement (IAA)", "understanding of the data, coders require multiple", "to measure the quality of the work. See Section 3", "rounds of discussion to resolve ambiguities and", "for detailed information.", "achieve consensus.", "We study the effectiveness of this human-LLM", "'The code repository is publicly", "available", "2https://github.com/features/copilot", "at:", "https://github.com/sjdai/LLM-thematic-analysis", "3https://openai.com/blog/chatgpt" ]
{ "arxiv_id": "2310.15100", "language": "en", "page_idx": 0 }
2310.15100-en-1
2310.15100-en-1.jpg
<FigureHere> Figure 1: Workflow of the LLM-in-the-Loop Framework. collaboration framework by adopting the framework on two cases: Music Shuffle (MS), a survey measuring aspects of music listening experiences (Sanfilippo et al., 2020) and Password Manager (PM), a survey on password manager usage (Mayer et al., 2022). Considering the LLM input size limitations, we randomly divided the responses of PM into two separate pools and applied one pool for codebook generation. Subsequently, we sampled responses from both pools for final coding and IAA calculation. The results suggest that the proposed LLM-in-the-loop framework yields work quality comparable to two HCs. The contributions of this work are as follows: 1) we propose a human-LLM collaboration framework for TA; 2) we design a loop to facilitate discussions between a human coder and a LLM; 3) we propose a solution for long-text qualitative data when using a LLM for TA. into themes based on their sentiment polarity. Guetterman et al. (2018) cluster phrases by their WuPalmer similarity scores (Wu and Palmer, 1994). Models can be trained to learn how humans code (Rietz et al., 2020). Human-AI collaboration frameworks for TA have been proposed (Gauthier and Wallace, 2022; Gebreegziabher et al., 2023; Jiang et al., 2021). QR and NLP researchers are now exploring the opportunity to leverage LLMs for TA. Xiao et al. (2023) investigate the use of LLMs to support deductive coding: they combine GPT-3 with an expert-drafted codebook. Gao et al.(2023) propose a user-friendly interface for collaborative qualitative analysis, leveraging LLMs for initial code generation and to help in decision-making. Paoli (2023) studies the potential usage of ChatGPT for TA following the six TA phases proposed by Braun and Clarke (2006). In the theme refinement phase, the author generates three versions of themes by modifying the temperature parameter,$^{4}$ after which the themes are reviewed by a HC (the author). Coding can be divided into inductive coding and deductive coding. Inductive coding is a bottom-up process of developing a codebook, and deductive coding is a top-down process in which all data $^{4}$The temperature parameter determines the output ## 2 Background and Related Work Given the substantial amount of free-text responses, it seems obvious that NLP techniques can be potential solutions to facilitate TA. Existing work tends to rely on topic modeling to extract key topics that represent the data (Leeson et al., 2019; Jelodar et al., 2020). Another approach is clustering: for instance, Oyebode et al. (2021) extract phrases, calculate their sentiment scores, and group the phrases randomness: higher values yield more random output. https://platform.openai.com/docs/api-reference/ chat/create
[ [ "0.4014", "0.1057", "0.4458", "0.1057", "0.4458", "0.1164", "0.4014", "0.1164" ], [ "0.6533", "0.1069", "0.6943", "0.1069", "0.6943", "0.114", "0.6533", "0.114" ], [ "0.4014", "0.1152", "0.5205", "0.1152", "0.5205", "0.1259", "0.4014", "0.1259" ], [ "0.6514", "0.1152", "0.8623", "0.1152", "0.8623", "0.1259", "0.6514", "0.1259" ], [ "0.1486", "0.11816", "0.2837", "0.11755", "0.2837", "0.1289", "0.1486", "0.13" ], [ "0.4014", "0.12354", "0.5728", "0.12354", "0.5728", "0.1342", "0.4014", "0.1342" ], [ "0.3972", "0.1277", "0.4048", "0.1277", "0.4048", "0.1312", "0.3972", "0.1312" ], [ "0.1486", "0.10986", "0.1931", "0.10986", "0.1931", "0.12054", "0.1486", "0.12054" ], [ "0.1503", "0.13", "0.2778", "0.13", "0.2778", "0.1372", "0.1503", "0.1372" ], [ "0.43", "0.1414", "0.5156", "0.1414", "0.5156", "0.152", "0.43", "0.152" ], [ "0.4282", "0.1484", "0.615", "0.1484", "0.615", "0.1621", "0.4282", "0.1621" ], [ "0.43", "0.1592", "0.621", "0.1592", "0.621", "0.1692", "0.43", "0.1692" ], [ "0.3047", "0.1687", "0.372", "0.1687", "0.372", "0.1799", "0.3047", "0.1799" ], [ "0.43", "0.1692", "0.6035", "0.1692", "0.6035", "0.1799", "0.43", "0.1799" ], [ "0.76", "0.1692", "0.7656", "0.1692", "0.7656", "0.1758", "0.76", "0.1758" ], [ "0.4307", "0.1776", "0.6055", "0.1776", "0.6055", "0.1882", "0.4307", "0.1882" ], [ "0.75", "0.1829", "0.7617", "0.1829", "0.7617", "0.187", "0.75", "0.187" ], [ "0.81", "0.1812", "0.8564", "0.1812", "0.8564", "0.1882", "0.81", "0.1882" ], [ "0.6885", "0.1936", "0.7173", "0.1936", "0.7173", "0.2019", "0.6885", "0.2019" ], [ "0.7305", "0.1924", "0.7866", "0.1924", "0.7866", "0.2031", "0.7305", "0.2031" ], [ "0.1587", "0.2007", "0.1897", "0.2007", "0.1897", "0.212", "0.1587", "0.212" ], [ "0.574", "0.2037", "0.5903", "0.2037", "0.5903", "0.2144", "0.574", "0.2144" ], [ "0.1528", "0.2268", "0.1957", "0.2268", "0.1957", "0.2369", "0.1528", "0.2369" ], [ "0.1528", "0.2363", "0.294", "0.2363", "0.294", "0.2465", "0.1528", "0.2465" ], [ "0.706", "0.2393", "0.7173", "0.2393", "0.7173", "0.2505", "0.706", "0.2505" ], [ "0.8193", "0.2369", "0.8423", "0.2369", "0.8423", "0.2654", "0.8193", "0.2654" ], [ "0.4978", "0.2505", "0.538", "0.2505", "0.538", "0.2612", "0.4978", "0.2612" ], [ "0.6963", "0.253", "0.729", "0.253", "0.729", "0.2715", "0.6963", "0.2715" ], [ "0.1628", "0.2683", "0.1873", "0.2683", "0.1873", "0.2808", "0.1628", "0.2808" ], [ "0.679", "0.2778", "0.7466", "0.2778", "0.7466", "0.288", "0.679", "0.288" ], [ "0.7944", "0.2766", "0.858", "0.2766", "0.858", "0.288", "0.7944", "0.288" ], [ "0.6987", "0.288", "0.733", "0.288", "0.733", "0.2964", "0.6987", "0.2964" ], [ "0.4492", "0.282", "0.4785", "0.282", "0.4785", "0.2986", "0.4492", "0.2986" ], [ "0.812", "0.288", "0.8423", "0.288", "0.8423", "0.2964", "0.812", "0.2964" ], [ "0.1587", "0.2976", "0.1914", "0.2976", "0.1914", "0.31", "0.1587", "0.31" ], [ "0.3257", "0.2976", "0.3586", "0.2976", "0.3586", "0.306", "0.3257", "0.306" ], [ "0.3225", "0.3047", "0.3594", "0.3071", "0.3586", "0.3184", "0.3208", "0.3164" ], [ "0.4182", "0.3196", "0.5156", "0.3196", "0.5156", "0.33", "0.4182", "0.33" ], [ "0.1318", "0.3267", "0.1957", "0.3267", "0.1957", "0.3384", "0.1318", "0.3384" ], [ "0.4207", "0.33", "0.5767", "0.33", "0.5767", "0.3403", "0.4207", "0.3403" ], [ "0.419", "0.339", "0.5767", "0.339", "0.5767", "0.3499", "0.419", "0.3499" ], [ "0.6978", "0.3384", "0.846", "0.3384", "0.846", "0.3486", "0.6978", "0.3486" ], [ "0.419", "0.3486", "0.588", "0.3486", "0.588", "0.3594", "0.419", "0.3594" ], [ "0.3914", "0.3425", "0.3955", "0.3425", "0.3955", "0.3486", "0.3914", "0.3486" ], [ "0.4207", "0.357", "0.571", "0.357", "0.571", "0.3677", "0.4207", "0.3677" ], [ "0.1301", "0.3635", "0.1873", "0.3635", "0.1873", "0.3735", "0.1301", "0.3735" ], [ "0.2048", "0.364", "0.2334", "0.364", "0.2334", "0.3723", "0.2048", "0.3723" ], [ "0.3064", "0.3997", "0.69", "0.3997", "0.69", "0.4104", "0.3064", "0.4104" ], [ "0.11584", "0.4382", "0.4954", "0.437", "0.4954", "0.452", "0.11584", "0.4531" ], [ "0.509", "0.437", "0.8833", "0.4382", "0.8833", "0.4531", "0.509", "0.452" ], [ "0.11584", "0.4548", "0.4937", "0.4548", "0.4937", "0.4685", "0.11584", "0.4685" ], [ "0.51", "0.4548", "0.885", "0.4548", "0.885", "0.4685", "0.51", "0.4685" ], [ "0.1142", "0.4714", "0.492", "0.4714", "0.492", "0.485", "0.1142", "0.485" ], [ "0.51", "0.4714", "0.8716", "0.4714", "0.8716", "0.485", "0.51", "0.485" ], [ "0.11584", "0.4868", "0.492", "0.4868", "0.492", "0.5005", "0.11584", "0.5005" ], [ "0.529", "0.4868", "0.882", "0.4868", "0.882", "0.5005", "0.529", "0.5005" ], [ "0.11584", "0.5044", "0.4902", "0.5044", "0.4902", "0.517", "0.11584", "0.517" ], [ "0.51", "0.502", "0.882", "0.5044", "0.882", "0.517", "0.51", "0.5156" ], [ "0.1142", "0.5186", "0.4878", "0.517", "0.4878", "0.532", "0.1142", "0.533" ], [ "0.51", "0.5186", "0.8833", "0.5195", "0.8833", "0.5337", "0.51", "0.533" ], [ "0.11755", "0.535", "0.4895", "0.535", "0.4895", "0.549", "0.11755", "0.549" ], [ "0.511", "0.535", "0.8833", "0.535", "0.8833", "0.55", "0.511", "0.55" ], [ "0.11755", "0.5503", "0.4878", "0.5503", "0.4878", "0.5654", "0.11755", "0.5654" ], [ "0.509", "0.5503", "0.6465", "0.5503", "0.6465", "0.564", "0.509", "0.564" ], [ "0.11584", "0.5664", "0.486", "0.5664", "0.486", "0.58", "0.11584", "0.58" ], [ "0.5283", "0.568", "0.881", "0.568", "0.881", "0.5806", "0.5283", "0.5806" ], [ "0.1184", "0.585", "0.4878", "0.585", "0.4878", "0.5957", "0.1184", "0.5957" ], [ "0.511", "0.585", "0.882", "0.585", "0.882", "0.5986", "0.511", "0.5986" ], [ "0.11584", "0.5986", "0.4895", "0.5996", "0.4895", "0.6143", "0.11584", "0.6133" ], [ "0.51", "0.5996", "0.882", "0.601", "0.882", "0.615", "0.51", "0.6143" ], [ "0.11584", "0.6143", "0.486", "0.6143", "0.486", "0.629", "0.11584", "0.629" ], [ "0.51", "0.616", "0.882", "0.615", "0.882", "0.63", "0.51", "0.6313" ], [ "0.11755", "0.632", "0.3938", "0.632", "0.3938", "0.6455", "0.11755", "0.6455" ], [ "0.511", "0.633", "0.882", "0.633", "0.882", "0.6465", "0.511", "0.6465" ], [ "0.1368", "0.6484", "0.4895", "0.6484", "0.4895", "0.662", "0.1368", "0.662" ], [ "0.51", "0.6484", "0.881", "0.6484", "0.881", "0.662", "0.51", "0.662" ], [ "0.11584", "0.665", "0.4902", "0.665", "0.4902", "0.6787", "0.11584", "0.6787" ], [ "0.51", "0.665", "0.882", "0.665", "0.882", "0.6787", "0.51", "0.6787" ], [ "0.11584", "0.6816", "0.4902", "0.6816", "0.4902", "0.6953", "0.11584", "0.6953" ], [ "0.511", "0.6816", "0.882", "0.6816", "0.882", "0.6953", "0.511", "0.6953" ], [ "0.1142", "0.6978", "0.4895", "0.697", "0.4895", "0.7114", "0.1142", "0.712" ], [ "0.51", "0.6978", "0.882", "0.6978", "0.882", "0.712", "0.51", "0.712" ], [ "0.11584", "0.7144", "0.4895", "0.7144", "0.4895", "0.728", "0.11584", "0.728" ], [ "0.51", "0.7144", "0.882", "0.7144", "0.882", "0.728", "0.51", "0.728" ], [ "0.1142", "0.73", "0.318", "0.7285", "0.318", "0.7437", "0.1142", "0.7446" ], [ "0.51", "0.7285", "0.8833", "0.73", "0.8833", "0.7446", "0.51", "0.7437" ], [ "0.511", "0.7466", "0.882", "0.7466", "0.882", "0.7603", "0.511", "0.7603" ], [ "0.11755", "0.7627", "0.4182", "0.7627", "0.4182", "0.777", "0.11755", "0.777" ], [ "0.511", "0.7627", "0.882", "0.7627", "0.882", "0.7754", "0.511", "0.7754" ], [ "0.511", "0.778", "0.8506", "0.777", "0.8506", "0.7915", "0.511", "0.792" ], [ "0.11755", "0.792", "0.4895", "0.792", "0.4895", "0.8057", "0.11755", "0.8057" ], [ "0.529", "0.796", "0.882", "0.796", "0.882", "0.8086", "0.529", "0.8086" ], [ "0.11584", "0.808", "0.4902", "0.808", "0.4902", "0.822", "0.11584", "0.822" ], [ "0.511", "0.811", "0.882", "0.8125", "0.882", "0.826", "0.511", "0.8247" ], [ "0.11584", "0.8247", "0.4878", "0.8247", "0.4878", "0.8384", "0.11584", "0.8384" ], [ "0.511", "0.8276", "0.881", "0.8276", "0.881", "0.8413", "0.511", "0.8413" ], [ "0.11584", "0.8413", "0.4878", "0.8413", "0.4878", "0.855", "0.11584", "0.855" ], [ "0.51", "0.8433", "0.881", "0.8433", "0.881", "0.857", "0.51", "0.857" ], [ "0.1142", "0.857", "0.486", "0.857", "0.486", "0.8706", "0.1142", "0.8706" ], [ "0.11755", "0.8726", "0.4895", "0.8726", "0.4895", "0.8857", "0.11755", "0.8857" ], [ "0.531", "0.868", "0.882", "0.869", "0.882", "0.883", "0.531", "0.882" ], [ "0.511", "0.883", "0.596", "0.883", "0.596", "0.8936", "0.511", "0.8936" ], [ "0.5977", "0.883", "0.8833", "0.883", "0.8833", "0.8936", "0.5977", "0.8936" ], [ "0.511", "0.8936", "0.8696", "0.8936", "0.8696", "0.9067", "0.511", "0.9067" ], [ "0.11584", "0.905", "0.4895", "0.905", "0.4895", "0.9185", "0.11584", "0.9185" ], [ "0.11584", "0.888", "0.4902", "0.888", "0.4902", "0.903", "0.11584", "0.903" ], [ "0.511", "0.9067", "0.5996", "0.9067", "0.5996", "0.9175", "0.511", "0.9175" ] ]
[ "Step 3.", "Step4", "Code Refinement &", "ThemeIdentification&Evaluation", "DataFamiliarization&", "Initial Codebook Generation", "", "Step 1.", "ExemplarGeneration", "Action:Delete", "Reason: I deleted the \"Reflective", "and Mood-setting Songs\",... codes,", "Exemplars", "since they are all covered under", "RR", "\"Emotional and Relatable Songs'", "", "Themes", "Data", "Codebook", "Data", "O", "Step 2.", "Initial Code Generation", "文", "v", "Codes", "际", "", "Annotated", "Annotated", "Data", "", "Data", "Data", "Initial", "Codes", "Decision:Agree", "Exemplars", "Reason:Thesecodes can be", "merged into the'Emotional and", "Inner-Annotator-Agreement", "Relatable Songs' code as they all", "-", "relate to emotional responses.", "Human", "SGP", "FigureI:Workflow oftheLLM-in-the-LoopFramework", "collaboration framework by adopting the frame-", "into themes based on their sentiment polarity. Guet-", "work on two cases: Music Shuffle (MS), a sur-", "terman et al. (2018) cluster phrases by their Wu--", "vey measuring aspects of music listening experi-", "Palmer similarity scores (Wu and Palmer, 1994).", "ences (Sanfilippo et al., 2020) and Password Man-", "Models can be trained to learn how humans", "ager (PM), a survey on password manager us-", "code (Rietz et al., 2020). Human-AI collaboration", "age (Mayer et al., 2022). Considering the LLM", "frameworks for TA have been proposed (Gauthier", "input size limitations, we randomly divided the re-", "and Wallace, 2022; Gebreegziabher et al., 2023;", "sponses of PM into two separate pools and applied", "Jiang et al., 2021)", "one pool for codebook generation. Subsequently", "OR and NLP researchers are now exploring the", "wesampledresponsesfrombothpoolsforfinalcod-", "opportunity to leverage LLMs for TA. Xiao et al", "ing and IAA calculation. The results suggest that", "(2023) investigate the use of LLMs to support", "the proposed LLM-in-the-loop framework yields", "deductive coding: they combine GPT-3 with an", "work quality comparable to two HCs.", "expert-drafted codebook. Gao et al. (2023) pro-", "The contributions of this work are as follows:", " pose a user-friendly interface for collaborative qual", "1) we propose a human-LLM collaboration frame-", "itative analysis, leveraging LLMs for initial code", "work for TA; 2) we design a loop to facilitate dis-", "generation and to help in decision-making. Paoli", "cussions between a human coder and a LLM; 3)", "(2023) studies the potential usage of ChatGPT for", "we propose a solution for long-text qualitative data", "TA following the six TA phases proposed by Braun", "when using a LLM for TA.", " and Clarke (2006). In the theme refinement phase,", "the author generates three versions of themes by", "2Background and Related Work", "modifying the temperature parameter,4 after which", "the themes are reviewed by a HC (the author).", "Given the substantial amount of free-text responses,", "Coding can be divided into inductive coding and", "it seems obvious that NLP techniques can be poten-", "deductive coding. Inductive coding is a bottom-up", "tial solutions to facilitate TA. Existing work tends", "process of developing a codebook, and deductive", "to rely on topic modeling to extract key topics that", "coding is a top-down process in which all data", "represent the data (Leeson et al., 2019; Jelodar", "et al., 2020). Another approach is clustering: for", "4The temperature parameter determines the output", "randomness:", "higher values yield more random output.", "https://platform.openai.com/docs/api-reference/", "culate their sentiment scores, and group the phrases", "instance, Oyebode et al. (2021) extract phrases, cal-", "chat/create" ]
{ "arxiv_id": "2310.15100", "language": "en", "page_idx": 1 }
2310.15100-en-2
2310.15100-en-2.jpg
<FigureHere> Figure 2: An exemplar for initial code extraction. Green depicts the quoted sentence, blue indicates the definition of a code, and red represents the code. is coded using the codebook. We complete both inductive and deductive coding via human-AI collaboration and showcase the feasibility of our approach using two existing open-access datasets. ## 3 Human-LLM Collaboration Framework Figure 1 illustrates the framework, which consists of four steps. Data Familiarization and Exemplar Generation We used in-context learning (ICL) to design the paradigm of prompt for the initial code extraction (Garg et al., 2022). To write the exemplars for initial code extraction, the HC must be familiar with the qualitative data. Each HC produces four to eight exemplars, following Min et al.(2022). Each exemplar includes a response for an open-ended question and the associated actions. Given a freetext response may contain multiple codes, we think “step by step" and “code by code” that were inspired by chain-of thought (CoT) prompting (Wei et al., 2022; Kojima et al., 2022). To code a response, the format of an action is “quote refers to $\underline{\text{definition of the code.Thus,we got a code:}}$ $\underline{\mathrm{code".~Figure~2~shows~one~instance.~The~quote~is}}$ the sentence in the response that is related to the $code.$ Initial Code Generation At this step, codes are extracted that capture the semantic and latent meanings of the free-text responses at a fine granularity. The core of the prompt is the exemplar generated in the frst step. The prompt also contains the task goal and the open-ended question, which provide the MC with a clear understanding of the purpose of the study. The prompts we used are shown in Appendix D. Code Refinement and Initial Codebook Generation The model groups the similar initial codes into certain codes which the MC and HC begin to refine. Step 3 in Figure 1 illustrates a cycle of the discussion process. First an HC reviews the codes and edits the codes if necessary. If the HC modifies any code, he/she states the changes and provides the rationales behind them. After evaluating the changes and the rationales, the MC indicates agreement or disagreement with explanations. The HC then reviews the MC's responses and revises the code if needed. The HC initiates a new cycle by editing the codes and providing justification. Such refinement continues until the HC and MC are both satisfed with the result. The refined codes are then used to generate the initial codebook. Theme Identification and Evaluation The MC and HC generate the final codebook by identifying the themes of the codes. MC and HC code the whole qualitative data according to the final codebook. Cohen's $\kappa$ agreement (Cohen, 1960) is calculated to evaluate the work quality of the MC and HC. ## 4 Evaluation ### 4.1 Metrics The inner-annotator agreement (IAA) is the main method for evaluating the quality of coding (Krippendorff, 2011). IAA measures the clarity and interpretability of a codebook among the coders. A higher IAA suggests the codebook is clear and effectively captures the meaning of the data. We use Cohen's $\kappa$ to compare the results of the two datasets. In addition, to evaluate whether the codes from our framework meet the research goal of the original work, we treat the codes generated by the authors of the two datasets as the gold label. We calculate the cosine similarity between codes developed by us and those proposed by the original authors. We used the text-embedding-ada-002 embedding provided by OpenAI to embed the codes and then calculated their cosine similarity. # 4.2 Setting MS In our case study, we focused on the frstasked question because the authors mentioned that some participants provided the same or similar answers to all four questions. The sampled question is “What’s the first thing that comes into your mind about this track?" Preprocessing yielded 35 responses for our study.
[ [ "0.513", "0.0861", "0.882", "0.0861", "0.882", "0.0998", "0.513", "0.0998" ], [ "0.1628", "0.10095", "0.4248", "0.10156", "0.4248", "0.1152", "0.1628", "0.114" ], [ "0.511", "0.10156", "0.882", "0.10156", "0.882", "0.1152", "0.511", "0.1152" ], [ "0.1646", "0.114", "0.4148", "0.114", "0.4148", "0.1247", "0.1646", "0.1247" ], [ "0.511", "0.11816", "0.881", "0.11816", "0.881", "0.1318", "0.511", "0.1318" ], [ "0.1646", "0.1354", "0.2141", "0.1354", "0.2141", "0.1467", "0.1646", "0.1467" ], [ "0.511", "0.1342", "0.881", "0.1342", "0.881", "0.1478", "0.511", "0.1478" ], [ "0.1646", "0.1467", "0.309", "0.1467", "0.309", "0.1567", "0.1646", "0.1567" ], [ "0.511", "0.1497", "0.882", "0.1484", "0.882", "0.1633", "0.511", "0.1644" ], [ "0.1663", "0.1567", "0.44", "0.1567", "0.44", "0.1675", "0.1663", "0.1675" ], [ "0.1646", "0.165", "0.4358", "0.1663", "0.4358", "0.1799", "0.1646", "0.1787" ], [ "0.509", "0.165", "0.879", "0.165", "0.879", "0.1787", "0.509", "0.1787" ], [ "0.1663", "0.1799", "0.4307", "0.1799", "0.4307", "0.1907", "0.1663", "0.1907" ], [ "0.511", "0.1829", "0.882", "0.1829", "0.882", "0.1965", "0.511", "0.1965" ], [ "0.51", "0.199", "0.881", "0.199", "0.881", "0.212", "0.51", "0.212" ], [ "0.1184", "0.2173", "0.486", "0.2173", "0.486", "0.228", "0.1184", "0.228" ], [ "0.51", "0.2144", "0.881", "0.2144", "0.881", "0.2286", "0.51", "0.2286" ], [ "0.11584", "0.231", "0.4895", "0.231", "0.4895", "0.2446", "0.11584", "0.2446" ], [ "0.509", "0.231", "0.879", "0.231", "0.879", "0.2446", "0.509", "0.2446" ], [ "0.11584", "0.2465", "0.3728", "0.2465", "0.3728", "0.257", "0.11584", "0.257" ], [ "0.51", "0.2477", "0.881", "0.2477", "0.881", "0.2612", "0.51", "0.2612" ], [ "0.51", "0.2625", "0.881", "0.2625", "0.881", "0.2756", "0.51", "0.2756" ], [ "0.511", "0.2798", "0.882", "0.2798", "0.882", "0.2935", "0.511", "0.2935" ], [ "0.11755", "0.2893", "0.4878", "0.2893", "0.4878", "0.3027", "0.11755", "0.3027" ], [ "0.511", "0.2964", "0.881", "0.2964", "0.881", "0.3071", "0.511", "0.3071" ], [ "0.11755", "0.3047", "0.4895", "0.3047", "0.4895", "0.3184", "0.11755", "0.3184" ], [ "0.51", "0.3113", "0.882", "0.3113", "0.882", "0.3247", "0.51", "0.3247" ], [ "0.11755", "0.3225", "0.4878", "0.3225", "0.4878", "0.3362", "0.11755", "0.3362" ], [ "0.511", "0.328", "0.7866", "0.328", "0.7866", "0.3416", "0.511", "0.3416" ], [ "0.11584", "0.3384", "0.465", "0.3384", "0.465", "0.3528", "0.11584", "0.3528" ], [ "0.511", "0.3499", "0.882", "0.3508", "0.882", "0.3652", "0.511", "0.364" ], [ "0.1436", "0.3723", "0.3938", "0.3723", "0.3938", "0.3872", "0.1436", "0.3872" ], [ "0.513", "0.3677", "0.882", "0.3677", "0.882", "0.3818", "0.513", "0.3818" ], [ "0.1184", "0.3748", "0.1318", "0.3748", "0.1318", "0.3843", "0.1184", "0.3843" ], [ "0.1453", "0.3884", "0.2527", "0.3901", "0.2527", "0.405", "0.1453", "0.4026" ], [ "0.513", "0.383", "0.882", "0.383", "0.882", "0.3967", "0.513", "0.3967" ], [ "0.513", "0.3997", "0.882", "0.3997", "0.882", "0.4133", "0.513", "0.4133" ], [ "0.11755", "0.4204", "0.4878", "0.4204", "0.4878", "0.434", "0.11755", "0.434" ], [ "0.513", "0.4163", "0.882", "0.4163", "0.882", "0.43", "0.513", "0.43" ], [ "0.1142", "0.4353", "0.2167", "0.437", "0.2167", "0.452", "0.1142", "0.4495" ], [ "0.51", "0.4316", "0.881", "0.4316", "0.881", "0.4453", "0.51", "0.4453" ], [ "0.51", "0.4478", "0.5767", "0.4478", "0.5767", "0.462", "0.51", "0.462" ], [ "0.11755", "0.4697", "0.486", "0.4697", "0.486", "0.4827", "0.11755", "0.4827" ], [ "0.517", "0.478", "0.525", "0.478", "0.525", "0.484", "0.517", "0.484" ], [ "0.54", "0.4739", "0.6396", "0.4739", "0.6396", "0.488", "0.54", "0.488" ], [ "0.11755", "0.4863", "0.4878", "0.4863", "0.4878", "0.4995", "0.11755", "0.4995" ], [ "0.11584", "0.502", "0.4878", "0.5005", "0.4878", "0.5156", "0.11584", "0.5166" ], [ "0.513", "0.4988", "0.617", "0.4988", "0.617", "0.513", "0.513", "0.513" ], [ "0.11755", "0.517", "0.4878", "0.517", "0.4878", "0.532", "0.11755", "0.532" ], [ "0.509", "0.5186", "0.882", "0.5195", "0.882", "0.5337", "0.509", "0.533" ], [ "0.11755", "0.5337", "0.4878", "0.5337", "0.4878", "0.5474", "0.11755", "0.5474" ], [ "0.511", "0.5376", "0.882", "0.5376", "0.882", "0.5503", "0.511", "0.5503" ], [ "0.11755", "0.5503", "0.4844", "0.5503", "0.4844", "0.561", "0.11755", "0.561" ], [ "0.513", "0.5527", "0.882", "0.5527", "0.882", "0.5664", "0.513", "0.5664" ], [ "0.11584", "0.5654", "0.486", "0.564", "0.486", "0.579", "0.11584", "0.58" ], [ "0.51", "0.5684", "0.882", "0.5684", "0.882", "0.582", "0.51", "0.582" ], [ "0.11755", "0.582", "0.4878", "0.582", "0.4878", "0.5957", "0.11755", "0.5957" ], [ "0.511", "0.585", "0.882", "0.585", "0.882", "0.5986", "0.511", "0.5986" ], [ "0.11755", "0.5986", "0.4902", "0.5986", "0.4902", "0.6123", "0.11755", "0.6123" ], [ "0.511", "0.601", "0.881", "0.601", "0.881", "0.6143", "0.511", "0.6143" ], [ "0.1142", "0.6143", "0.4895", "0.6133", "0.4895", "0.6274", "0.1142", "0.629" ], [ "0.511", "0.618", "0.881", "0.618", "0.881", "0.629", "0.511", "0.629" ], [ "0.1142", "0.6313", "0.4902", "0.6313", "0.4902", "0.6445", "0.1142", "0.6445" ], [ "0.5146", "0.6343", "0.881", "0.6343", "0.881", "0.6445", "0.5146", "0.6445" ], [ "0.11755", "0.6465", "0.4895", "0.6465", "0.4895", "0.661", "0.11755", "0.661" ], [ "0.509", "0.648", "0.881", "0.648", "0.881", "0.661", "0.509", "0.661" ], [ "0.1184", "0.6646", "0.4895", "0.6646", "0.4895", "0.675", "0.1184", "0.675" ], [ "0.509", "0.6646", "0.881", "0.6646", "0.881", "0.6777", "0.509", "0.6777" ], [ "0.11584", "0.6787", "0.4895", "0.6777", "0.4895", "0.6924", "0.11584", "0.6934" ], [ "0.51", "0.681", "0.882", "0.681", "0.882", "0.695", "0.51", "0.695" ], [ "0.11584", "0.6934", "0.4902", "0.695", "0.4902", "0.709", "0.11584", "0.708" ], [ "0.511", "0.6978", "0.8833", "0.6978", "0.8833", "0.7114", "0.511", "0.7114" ], [ "0.11584", "0.7104", "0.486", "0.7104", "0.486", "0.7236", "0.11584", "0.7236" ], [ "0.51", "0.7134", "0.8833", "0.7134", "0.8833", "0.728", "0.51", "0.728" ], [ "0.11584", "0.728", "0.4895", "0.728", "0.4895", "0.741", "0.11584", "0.741" ], [ "0.51", "0.73", "0.8833", "0.73", "0.8833", "0.7437", "0.51", "0.7437" ], [ "0.1142", "0.742", "0.1604", "0.742", "0.1604", "0.7573", "0.1142", "0.7573" ], [ "0.511", "0.745", "0.882", "0.745", "0.882", "0.7603", "0.511", "0.7603" ], [ "0.511", "0.7627", "0.8237", "0.7627", "0.8237", "0.7754", "0.511", "0.7754" ], [ "0.11584", "0.774", "0.4878", "0.775", "0.4878", "0.789", "0.11584", "0.788" ], [ "0.511", "0.785", "0.613", "0.7876", "0.613", "0.802", "0.511", "0.8" ], [ "0.11584", "0.7915", "0.4902", "0.7905", "0.4902", "0.8047", "0.11584", "0.8057" ], [ "0.11584", "0.808", "0.4902", "0.808", "0.4902", "0.822", "0.11584", "0.822" ], [ "0.513", "0.807", "0.882", "0.807", "0.882", "0.822", "0.513", "0.822" ], [ "0.11584", "0.8247", "0.4878", "0.8247", "0.4878", "0.8384", "0.11584", "0.8384" ], [ "0.51", "0.8247", "0.882", "0.8247", "0.882", "0.8384", "0.51", "0.8384" ], [ "0.11584", "0.8413", "0.4878", "0.8413", "0.4878", "0.855", "0.11584", "0.855" ], [ "0.509", "0.8403", "0.882", "0.839", "0.882", "0.854", "0.509", "0.855" ], [ "0.11755", "0.857", "0.4878", "0.857", "0.4878", "0.8706", "0.11755", "0.8706" ], [ "0.509", "0.857", "0.881", "0.857", "0.881", "0.8706", "0.509", "0.8706" ], [ "0.11755", "0.8726", "0.4895", "0.8726", "0.4895", "0.8857", "0.11755", "0.8857" ], [ "0.509", "0.8726", "0.882", "0.8726", "0.882", "0.8857", "0.509", "0.8857" ], [ "0.1142", "0.887", "0.4878", "0.888", "0.4878", "0.903", "0.1142", "0.902" ], [ "0.509", "0.887", "0.8833", "0.888", "0.8833", "0.903", "0.509", "0.902" ], [ "0.11584", "0.904", "0.2124", "0.902", "0.2124", "0.9175", "0.11584", "0.9194" ], [ "0.51", "0.904", "0.6733", "0.905", "0.6733", "0.9194", "0.51", "0.9185" ] ]
[ "Code Refinement and Initial Codebook Genera", "Response:This song reminds me of singing", "tion The model groups the similar initial codes", "along withmyfriends on summer vacation.", "into certain codes which the MC and HC begin to", "Action:", "refine. Step 3 in Figure 1 illustrates a cycle of the", "Let'scodetheresponse!", "discussion process. First an HC reviews the codes", "\"This song reminds me of singing along with my", "friends on summer vacation'refers to a time in", " and edits the codes if necessary. If the HC modifies", "the past.Therefore,wegota code:Memories", "any code, he/she states the changes and provides", "the rationales behind them. After evaluating the", "Figure2:An exemplarfor initial code extraction.Green", "changes and the rationales, the MC indicates agree-", "depicts the quoted sentence, blue indicates the definition", " ment or disagreement with explanations. The HC", "of a code,and red representsthecode", "then reviews the MC's responses and revises the", "code if needed. The HC initiates a new cycle by", "editing the codes and providing justification. Such", "is coded using the codebook. We complete both", "refinementcontinues until theHC andMCareboth", "inductive and deductive coding via human-AI col-", " satisfied with the result. The refined codes are then", "laboration and showcase the feasibility of our ap-", "used to generate the initial codebook.", "proach using two existing open-access datasets", "Theme Identification and EvaluationThe MC", "Human-LLM Collaboration", "and HC generate the final codebook by identify-", "3", "Framework", "ing the themes of the codes. MC and HC code", "the whole qualitative data according to the final", "Figure 1 illustrates the framework, which consists", "codebook. Cohen's k agreement (Cohen, 1960) is", "offour steps.", "calculated to evaluate the work quality of the MC", "and HC.", "Data Familiarization and Exemplar Generation", "1", "Evaluation", "We used in-context learning (ICL) to design the", "paradigm of prompt for the initial code extrac-", "4.1 Metrics", "tion (Garg et al., 2022). To write the exemplars", "The inner-annotator agreement (IAA) is the main", "for initial code extraction, the HC must be familiar", "method for evaluating the quality of coding (Krip-", "with the qualitative data. Each HC produces four to", "pendorff, 2011). IAA measures the clarity and", "eight exemplars, following Min et al. (2022). Each", " interpretability of a codebook among the coders", "exemplar includes a response for an open-ended", "A higher IAA suggests the codebook is clear and", "question and the associated actions. Given a free-", "effectively captures the meaning of the data. We", "text response may contain multiple codes, we think", "use Cohen's kto compare the results of the two", "“\"step by step\" and \"code by code\" that were in-", "datasets.In addition.to evaluatewhetherthecodes", "spired by chain-of thought (CoT) prompting (Wei", "from our framework meet the research goal of the", "et al., 2022: Kojima et al., 2022). To code a re-", " original work, we treat the codes generated by the", "sponse, the format of an action is “quote refers to", "authors of the two datasets as the gold label. We", "definition of the code. Thus, we got a code:", "calculate the cosine similarity between codes devel-", "code\". Figure 2 shows one instance. The quote is", "oped by us and those proposed by the original au-", "the sentence in the response that is related to the", "thors. We used the text-embedding-ada-002 em-", "code.", "bedding provided by OpenAI to embed the codes", "and then calculated their cosine similarity.", "Initial Code Generation At this step, codes are", "4.2Setting", "extracted that capture the semantic and latent mean-", "ings of the free-text responses at a fine granularity.", "MS In our case study, we focused on the first-", "The core of the prompt is the exemplar generated", " asked question because the authors mentioned that", "in the first step. The prompt also contains the task", " some participants provided the same or similar an", "goal and the open-ended question, which provide", " swers to all four questions. The sampled question", "the MC with a clear understanding of the purpose", "is \"What's the first thing that comes into your mind", "of the study.The prompts we used are shown in", "about this track?\"Preprocessing yielded 35 re-", "Appendix D.", "sponses for our study." ]
{ "arxiv_id": "2310.15100", "language": "en", "page_idx": 2 }
2310.15100-en-3
2310.15100-en-3.jpg
<table> <tbody> <tr> <th> </th> <th rowspan="2">$\mathbf{MusicShuffle}$ All</th> <th colspan="3">Password Manager</th> </tr> <tr> <th> </th> <th>Seen</th> <th>Unseen</th> <th>All</th> </tr> <tr> <td>$HC$ + $MC$ ·</td> <td>0.87</td> <td>0.8</td> <td>0.82</td> <td>0.81</td> </tr> <tr> <td>Coder3+ MC</td> <td>0.54</td> <td>0.47</td> <td>0.34</td> <td>0.47</td> </tr> <tr> <td>Coder3+ HC</td> <td>0.62</td> <td>0.48</td> <td>0.38</td> <td>0.43</td> </tr> <tr> <td>Gold</td> <td>0.66</td> <td>-</td> <td>-</td> <td>0.77</td> </tr> </tbody> </table> Table 1: Cohen's $\kappa$ of the two cases. The HC, MC, and Coder 3 used the same codebook for final coding. Seen and Unseen indicate the data was sampled from the responses used or not used for developing the codebook, where All means Seen+Unseen. <table> <tbody> <tr> <th> </th> <th>$MS$</th> <th>$PMI$</th> </tr> <tr> <td>${\overline{{\mathrm{Similarity}}}}$</td> <td>0.8864</td> <td>0.889.</td> </tr> <tr> <td>Accuracy</td> <td>0.84</td> <td>0.83</td> </tr> <tr> <td>Recall</td> <td>0.72</td> <td>0.87</td> </tr> </tbody> </table> Table 2: Cosine similarity, accuracy, and recall between the codes extracted by our framework and the dataset's authors. PM Of the eight open-ended questions, we selected the first question\_“Please describe how you manage your passwords across accounts"—as this question is general, and seems to have elicited better responses. Due to the GPT input limitations, we could not feed all the data into GPT-3.5. Thus we randomly sampled 100 responses for codebook development. Such leveraging of partial responses for codebook development has been used by Sanfilippo et al. (2020). We used the 100 responses for codebook development and in the evaluation phase we sampled 20 samples from the two data pools for labeling and IAA calculation, respectively. Following the MS and PM workflow, we developed a codebook using our framework with a HC and the MC for each case. The HC and MC coded all the responses. We invited another coder (Coder 3) to code the responses using both codebooks developed by the HC and MC. The detailed information of the datasets is in Appendix C. ## 4.3 Results and Discussion The results are presented in Table 1: HC+MC indicate Cohen's $\kappa$ of HC and MC annotated data, and Coder 3 + MC and Coder 3 + HC represent Cohen's $\kappa$ of Coder 3 and MC labeled data and Coder 3 and HC labeled data, respectively. We treat the result of the original studies as the gold standard for reference. Table 2 shows the result of cosine similarity, accuracy, and recall. LLM is suited for thematic analysis. The results of the MS case study suggest that HC+MC achieves the best agreement compared to all other settings, where the $\kappa$ of HC+MC is 0.87 (almost perfect agreement), and that of Gold is 0.66 (substantial agreement). Further, even though the $\kappa$ decreases in the Coder 3 settings, Coder 3+MC and Coder 3+HC still exhibit similar agreement compared to Gold: The $\kappa$ of Coder 3+MC and Coder 3+HC are 0.54 (moderate to substantial agreement) and 0.62 (substantial agreement), respectively. This indicates that our framework achieves reasonable performance. In the results of the PM case study, HC+MC $( \kappa$ = 0.81: almost perfect agreement) outperforms Gold $(\kappa=0.77{:}$ substantial agreement). The cosine similarity also shows that the MC-extracted codes capture the semantic meaning of the codes provided by the authors of the datasets. We thus conclude that the human-LLM collaboration framework can perform as well as the two human coders on thematic analysis, but with one human coder instead of two, which reduces labor and time demands. A discrepancy discussion process might be necessary. The relatively poorer results of Coder 3 still indicate a nearly fair to moderate agreement. The $\kappa$ of Coder 3+MC and Coder 3+HC are (0.47,0.48), (0.34,0.38), and (0.47,0.43) for the three conditions (i.e., Seen, Unseen, and All) , respectively. The PM authors mentioned that if the agreement is lower than $\kappa=0.7$, they discussed the result and started a new coding round to re-code the data. They indicated an average 1.5 rounds of re-coding. Similarly, our results indicate a need for such a mechanism. We leave this as future work. Developing the codebook using partial data is a feasible approach. In the Unseen condition, the HC+MC agreement is high $(\kappa=0.82:$ almost perfect agreement). Additionally, the cosine similarity between the codes extracted by MC and the gold codes provided by the authors of the dataset is 0.8895,which indicates the codes effectively capture the semantic meaning of the gold codes. These results imply that using partial data for codebook development is a viable way to address LLM input size limitations for TA. ## 4.4 Error Analysis To investigate why the IAA dropped significantly in the results of Coder 3 with MC and HC, we pull
[ [ "0.2217", "0.0873", "0.3198", "0.0873", "0.3198", "0.0986", "0.2217", "0.0986" ], [ "0.339", "0.0873", "0.4744", "0.0873", "0.4744", "0.10095", "0.339", "0.10095" ], [ "0.513", "0.0861", "0.882", "0.0861", "0.882", "0.0998", "0.513", "0.0998" ], [ "0.2585", "0.10095", "0.287", "0.10095", "0.287", "0.114", "0.2585", "0.114" ], [ "0.33", "0.10156", "0.372", "0.10156", "0.372", "0.1152", "0.33", "0.1152" ], [ "0.382", "0.10156", "0.4358", "0.10156", "0.4358", "0.1134", "0.382", "0.1134" ], [ "0.4492", "0.10156", "0.4785", "0.10156", "0.4785", "0.1134", "0.4492", "0.1134" ], [ "0.511", "0.10156", "0.881", "0.10156", "0.881", "0.1164", "0.511", "0.1164" ], [ "0.2551", "0.114", "0.2913", "0.114", "0.2913", "0.13", "0.2551", "0.13" ], [ "0.339", "0.1152", "0.3652", "0.1152", "0.3652", "0.1277", "0.339", "0.1277" ], [ "0.392", "0.1152", "0.4248", "0.1152", "0.4248", "0.1277", "0.392", "0.1277" ], [ "0.4458", "0.1152", "0.4802", "0.1152", "0.4802", "0.1277", "0.4458", "0.1277" ], [ "0.511", "0.11816", "0.882", "0.11816", "0.882", "0.1318", "0.511", "0.1318" ], [ "0.2551", "0.1289", "0.2896", "0.1289", "0.2896", "0.1414", "0.2551", "0.1414" ], [ "0.1394", "0.1164", "0.2007", "0.1164", "0.2007", "0.1277", "0.1394", "0.1277" ], [ "0.336", "0.1289", "0.3687", "0.1289", "0.3687", "0.1414", "0.336", "0.1414" ], [ "0.392", "0.1289", "0.4248", "0.1289", "0.4248", "0.1414", "0.392", "0.1414" ], [ "0.4458", "0.1289", "0.4785", "0.1289", "0.4785", "0.1414", "0.4458", "0.1414" ], [ "0.51", "0.1342", "0.882", "0.133", "0.882", "0.1478", "0.51", "0.1484" ], [ "0.3342", "0.1414", "0.3704", "0.1414", "0.3704", "0.1567", "0.3342", "0.1567" ], [ "0.1293", "0.13", "0.2124", "0.13", "0.2124", "0.1414", "0.1293", "0.1414" ], [ "0.2551", "0.1426", "0.2896", "0.1426", "0.2896", "0.155", "0.2551", "0.155" ], [ "0.3914", "0.1426", "0.424", "0.1426", "0.424", "0.155", "0.3914", "0.155" ], [ "0.4458", "0.1426", "0.4802", "0.1426", "0.4802", "0.155", "0.4458", "0.155" ], [ "0.513", "0.1509", "0.882", "0.1509", "0.882", "0.1644", "0.513", "0.1644" ], [ "0.1276", "0.1437", "0.2124", "0.1437", "0.2124", "0.155", "0.1276", "0.155" ], [ "0.1528", "0.1603", "0.1897", "0.1603", "0.1897", "0.1729", "0.1528", "0.1729" ], [ "0.2551", "0.1603", "0.2896", "0.1603", "0.2896", "0.1729", "0.2551", "0.1729" ], [ "0.3477", "0.1633", "0.357", "0.1644", "0.3552", "0.1704", "0.346", "0.1692" ], [ "0.4048", "0.1644", "0.4114", "0.1644", "0.4114", "0.1704", "0.4048", "0.1704" ], [ "0.4458", "0.1603", "0.482", "0.1603", "0.482", "0.1729", "0.4458", "0.1729" ], [ "0.513", "0.1675", "0.879", "0.1675", "0.879", "0.1776", "0.513", "0.1776" ], [ "0.511", "0.1812", "0.881", "0.1812", "0.881", "0.1948", "0.511", "0.1948" ], [ "0.11755", "0.187", "0.4878", "0.187", "0.4878", "0.2007", "0.11755", "0.2007" ], [ "0.11755", "0.2019", "0.4878", "0.2019", "0.4878", "0.2156", "0.11755", "0.2156" ], [ "0.513", "0.199", "0.8833", "0.199", "0.8833", "0.212", "0.513", "0.212" ], [ "0.11584", "0.2162", "0.4878", "0.2162", "0.4878", "0.2299", "0.11584", "0.2299" ], [ "0.51", "0.2144", "0.8833", "0.2131", "0.8833", "0.228", "0.51", "0.2286" ], [ "0.11584", "0.231", "0.4902", "0.231", "0.4902", "0.2446", "0.11584", "0.2446" ], [ "0.513", "0.231", "0.8833", "0.231", "0.8833", "0.2446", "0.513", "0.2446" ], [ "0.11755", "0.2465", "0.346", "0.2465", "0.346", "0.257", "0.11755", "0.257" ], [ "0.511", "0.2477", "0.882", "0.2477", "0.882", "0.2612", "0.511", "0.2612" ], [ "0.511", "0.2632", "0.882", "0.2632", "0.882", "0.2766", "0.511", "0.2766" ], [ "0.297", "0.2808", "0.3267", "0.2808", "0.3267", "0.2935", "0.297", "0.2935" ], [ "0.3525", "0.2808", "0.382", "0.2808", "0.382", "0.2935", "0.3525", "0.2935" ], [ "0.511", "0.279", "0.8833", "0.279", "0.8833", "0.2935", "0.511", "0.2935" ], [ "0.2141", "0.2944", "0.2837", "0.2944", "0.2837", "0.306", "0.2141", "0.306" ], [ "0.2822", "0.2944", "0.336", "0.2944", "0.336", "0.306", "0.2822", "0.306" ], [ "0.3376", "0.2944", "0.3914", "0.2944", "0.3914", "0.306", "0.3376", "0.306" ], [ "0.511", "0.2935", "0.8833", "0.2957", "0.8833", "0.31", "0.511", "0.308" ], [ "0.2957", "0.3071", "0.3267", "0.3071", "0.3267", "0.3184", "0.2957", "0.3184" ], [ "0.351", "0.3071", "0.3838", "0.3071", "0.3838", "0.3184", "0.351", "0.3184" ], [ "0.51", "0.31", "0.8833", "0.3113", "0.8833", "0.326", "0.51", "0.3247" ], [ "0.2284", "0.3206", "0.2703", "0.3206", "0.2703", "0.332", "0.2284", "0.332" ], [ "0.2183", "0.308", "0.2778", "0.308", "0.2778", "0.3196", "0.2183", "0.3196" ], [ "0.297", "0.3206", "0.3284", "0.3206", "0.3284", "0.332", "0.297", "0.332" ], [ "0.351", "0.3206", "0.3838", "0.3206", "0.3838", "0.332", "0.351", "0.332" ], [ "0.513", "0.3289", "0.881", "0.3289", "0.881", "0.339", "0.513", "0.339" ], [ "0.11584", "0.3445", "0.4895", "0.3457", "0.4895", "0.3599", "0.11584", "0.3594" ], [ "0.511", "0.3433", "0.882", "0.3433", "0.882", "0.357", "0.511", "0.357" ], [ "0.11755", "0.361", "0.4878", "0.361", "0.4878", "0.3748", "0.11755", "0.3748" ], [ "0.51", "0.3582", "0.882", "0.3594", "0.882", "0.3735", "0.51", "0.3723" ], [ "0.11755", "0.3772", "0.1721", "0.3772", "0.1721", "0.3884", "0.11755", "0.3884" ], [ "0.5146", "0.3772", "0.882", "0.3772", "0.882", "0.3872", "0.5146", "0.3872" ], [ "0.513", "0.3938", "0.881", "0.3938", "0.881", "0.4038", "0.513", "0.4038" ], [ "0.511", "0.408", "0.882", "0.408", "0.882", "0.4216", "0.511", "0.4216" ], [ "0.11755", "0.4204", "0.4937", "0.4204", "0.4937", "0.434", "0.11755", "0.434" ], [ "0.513", "0.4258", "0.882", "0.4258", "0.882", "0.4358", "0.513", "0.4358" ], [ "0.11584", "0.437", "0.4895", "0.437", "0.4895", "0.452", "0.11584", "0.452" ], [ "0.51", "0.4407", "0.6533", "0.4407", "0.6533", "0.4536", "0.51", "0.4536" ], [ "0.11584", "0.4536", "0.4878", "0.452", "0.4878", "0.466", "0.11584", "0.4685" ], [ "0.11755", "0.4697", "0.4902", "0.4697", "0.4902", "0.4827", "0.11755", "0.4827" ], [ "0.511", "0.4685", "0.881", "0.4685", "0.881", "0.4822", "0.511", "0.4822" ], [ "0.11584", "0.4863", "0.4878", "0.4863", "0.4878", "0.4995", "0.11584", "0.4995" ], [ "0.509", "0.485", "0.881", "0.485", "0.881", "0.4988", "0.509", "0.4988" ], [ "0.11755", "0.502", "0.4878", "0.502", "0.4878", "0.5156", "0.11755", "0.5156" ], [ "0.51", "0.5005", "0.882", "0.5005", "0.882", "0.514", "0.51", "0.514" ], [ "0.11755", "0.5186", "0.4895", "0.5186", "0.4895", "0.532", "0.11755", "0.532" ], [ "0.51", "0.5166", "0.881", "0.5166", "0.881", "0.53", "0.51", "0.53" ], [ "0.11755", "0.533", "0.4878", "0.533", "0.4878", "0.5464", "0.11755", "0.5464" ], [ "0.511", "0.5337", "0.881", "0.5337", "0.881", "0.5444", "0.511", "0.5444" ], [ "0.1184", "0.552", "0.4895", "0.552", "0.4895", "0.5625", "0.1184", "0.5625" ], [ "0.509", "0.5474", "0.8833", "0.549", "0.8833", "0.5635", "0.509", "0.5625" ], [ "0.11755", "0.5654", "0.4895", "0.5654", "0.4895", "0.58", "0.11755", "0.58" ], [ "0.511", "0.5654", "0.882", "0.5654", "0.882", "0.579", "0.511", "0.579" ], [ "0.11755", "0.582", "0.4878", "0.582", "0.4878", "0.5957", "0.11755", "0.5957" ], [ "0.51", "0.582", "0.8833", "0.582", "0.8833", "0.5957", "0.51", "0.5957" ], [ "0.11584", "0.597", "0.4895", "0.597", "0.4895", "0.6123", "0.11584", "0.6123" ], [ "0.511", "0.597", "0.8833", "0.597", "0.8833", "0.611", "0.511", "0.611" ], [ "0.11584", "0.6143", "0.4307", "0.6143", "0.4307", "0.6274", "0.11584", "0.6274" ], [ "0.51", "0.6143", "0.8833", "0.6143", "0.8833", "0.6274", "0.51", "0.6274" ], [ "0.1351", "0.633", "0.492", "0.633", "0.492", "0.6465", "0.1351", "0.6465" ], [ "0.511", "0.63", "0.8833", "0.63", "0.8833", "0.6436", "0.511", "0.6436" ], [ "0.11584", "0.6494", "0.4895", "0.6494", "0.4895", "0.663", "0.11584", "0.663" ], [ "0.51", "0.6455", "0.8193", "0.6455", "0.8193", "0.659", "0.51", "0.659" ], [ "0.11755", "0.665", "0.4878", "0.665", "0.4878", "0.6787", "0.11755", "0.6787" ], [ "0.513", "0.6733", "0.882", "0.6733", "0.882", "0.6885", "0.513", "0.6885" ], [ "0.11755", "0.681", "0.4895", "0.681", "0.4895", "0.695", "0.11755", "0.695" ], [ "0.511", "0.6904", "0.8833", "0.6904", "0.8833", "0.7036", "0.511", "0.7036" ], [ "0.11755", "0.6978", "0.4902", "0.6978", "0.4902", "0.7114", "0.11755", "0.7114" ], [ "0.51", "0.705", "0.8833", "0.706", "0.8833", "0.72", "0.51", "0.7197" ], [ "0.1142", "0.712", "0.486", "0.712", "0.486", "0.727", "0.1142", "0.727" ], [ "0.511", "0.7227", "0.8833", "0.7217", "0.8833", "0.7363", "0.511", "0.737" ], [ "0.11584", "0.73", "0.4492", "0.73", "0.4492", "0.7446", "0.11584", "0.7446" ], [ "0.511", "0.7393", "0.882", "0.7393", "0.882", "0.753", "0.511", "0.753" ], [ "0.511", "0.755", "0.882", "0.755", "0.882", "0.7686", "0.511", "0.7686" ], [ "0.11755", "0.7656", "0.34", "0.7656", "0.34", "0.7793", "0.11755", "0.7793" ], [ "0.511", "0.7715", "0.8833", "0.7715", "0.8833", "0.785", "0.511", "0.785" ], [ "0.11755", "0.7915", "0.4895", "0.7915", "0.4895", "0.8057", "0.11755", "0.8057" ], [ "0.509", "0.786", "0.881", "0.786", "0.881", "0.8", "0.509", "0.8" ], [ "0.509", "0.8027", "0.882", "0.802", "0.882", "0.8164", "0.509", "0.818" ], [ "0.11755", "0.8086", "0.4878", "0.8086", "0.4878", "0.8193", "0.11755", "0.8193" ], [ "0.1142", "0.8237", "0.4878", "0.8223", "0.4878", "0.8374", "0.1142", "0.8384" ], [ "0.513", "0.8193", "0.882", "0.8193", "0.882", "0.833", "0.513", "0.833" ], [ "0.11584", "0.8403", "0.486", "0.8403", "0.486", "0.854", "0.11584", "0.854" ], [ "0.511", "0.835", "0.684", "0.835", "0.684", "0.8486", "0.511", "0.8486" ], [ "0.11755", "0.857", "0.4878", "0.857", "0.4878", "0.8706", "0.11755", "0.8706" ], [ "0.513", "0.865", "0.6733", "0.865", "0.6733", "0.879", "0.513", "0.879" ], [ "0.11584", "0.8726", "0.4878", "0.8726", "0.4878", "0.8857", "0.11584", "0.8857" ], [ "0.11584", "0.888", "0.4902", "0.888", "0.4902", "0.903", "0.11584", "0.903" ], [ "0.5073", "0.888", "0.881", "0.888", "0.881", "0.903", "0.5073", "0.903" ], [ "0.11584", "0.905", "0.398", "0.905", "0.398", "0.9185", "0.11584", "0.9185" ], [ "0.511", "0.905", "0.882", "0.905", "0.882", "0.9185", "0.511", "0.9185" ] ]
[ "MusicShuffle", "Password Manager", "LLM is suited for thematic analysis.The re", "A11", "Seen", "Unseen", "A11", "sults of the MS case study suggest that HC+MC", "0.87", "0.8", "0.82", "0.81", "achieves the best agreement compared to all other", "0.54", "HC + MC", "0.47", "0.34", "0.47", "settings, where the k of HC+MC is 0.87 (almost", "0.48", "Coder3 +MC", "0.62", "0.38", "0.43", "perfect agreement), and that of Gold is 0.66 (sub-", "Coder3+HC", "Gold", "0.66", "-", "-", "0.77", "stantial agreement).Further.even though thek", "decreases in the Coder 3 settings, Coder 3+MC and", "Table I: Cohen's k of the two cases. The HC, MC, and", "Coder 3 used the same codebook for final coding. Seen", "Coder 3+HC still exhibit similar agreement com-", "and Unseen indicate the data was sampled from the", "pared to Gold: The K of Coder 3+MC and Coder", "responses used or not used for developing the codebook,", "3+HC are 0.54 (moderate to substantial agreement)", "where All means Seen + Unseen.", "and 0.62 (substantial agreement), respectively. This", "indicates that our framework achieves reasonable", "MS", "PM", "performance. In the results of the PM case study,", "Similarity", "0.8864", "0.8895", "HC+MC (k = 0.81: almost perfect agreement)", "0.84", "0.83", "outperforms Gold ( = 0.77: substantial agree-", "Recall", "Accuracy", "0.72", "0.87", "ment).Thecosine similarity alsoshowsthatthe", "Table 2: Cosine similarity, accuracy, and recall between", "MC-extracted codes capture the semantic meaning", "the codes extracted by our framework and the dataset's", "of the codes provided by the authors of the datasets.", "authors.", "Wethus concludethat the human-LLMcollabo-", "rationframework can perform as well as the two", "human coders on thematic analysis, but with one", "PM Of the eight open-ended questions, we se-", "humancoderinstead oftwo,whichreduceslabor", "lected the first question-\"Please describe how you", " and time demands.", "manage your passwords across accounts\"as this", "question is general, and seems to have elicited bet-", "A discrepancy discussion process might be neces-", "ter responses. Due to the GPT input limitations,", "sary.The relatively poorer results of Coder 3 still", "we could not feed all the data into GPT-3.5. Thus", "indicate a nearly fair to moderate agreement. The k", "we randomly sampled 100 responses for codebook", "of Coder 3+MC and Coder 3+HC are (0.47, 0.48)", "development. Such leveraging of partial responses", "(0.34.0.38). and (0.47, 0.43)for the three condi-", "forcodebookdevelopmenthasbeenusedbySan-", "tions (i.e., Seen, Unseen, and All) , respectively.", "filippo et al. (2020). We used the 100 responses for", "The PM authors mentioned that if the agreement", "codebook development and in the evaluation phase", "is lower than k =0.7, they discussed the result", "we sampled 20 samples from the two data pools for", "and started a new coding round to re-code the data.", "labeling and IAA calculation, respectively.", "They indicated an average 1.5 rounds of re-coding.", "Following the MS and PM workflow, we de-", "Similarly, our results indicate a need for such a", "veloped a codebook using our framework with a", "mechanism. We leave this as future work.", "HC and the MC for each case. The HC and MC", "Developing the codebook using partial data is", "coded all the responses. We invited another coder", "a feasible approach.In the Unseen condition,", "(Coder 3) to code the responses using both code-", "the HC+MC agreement is high (k = 0.82: almost", " books developed by the HC and MC. The detailed", "perfect agreement). Additionally, the cosine simi-", "information of the datasets is in Appendix C.", "larity between the codes extracted by MC and the", "gold codes provided by the authors of the dataset is", "4.3 Results and Discussion", "0.8895, which indicates the codes effectively cap-", "The results are presented in Table 1: HC + MC", " ture the semantic meaning of the gold codes. These", "results imply that using partial data for codebook", "indicateCohen's Kof HC andMCannotated data.", " and Coder 3 + MC and Coder 3 + HC represent", "development is a viable way to address LLM input", "Cohen's K of Coder 3 and MC labeled data and", "size limitations for TA.", "Coder 3 and HC labeled data, respectively. We", "4.4 Error Analysis", "treat the result of the original studies as the gold", "standard for reference. Table 2 shows the result of", "To investigate why the IAA dropped significantly", "cosine similarity, accuracy, and recall.", "in the results of Coder 3 with MC and HC, we pull" ]
{ "arxiv_id": "2310.15100", "language": "en", "page_idx": 3 }
2310.15100-en-4
2310.15100-en-4.jpg
<table> <tbody> <tr> <th> </th> <th>$MS$</th> <th>$PM$</th> </tr> <tr> <td>$\operatorname{Ambiguity}$</td> <td>$\overline{5}$</td> <td>9</td> </tr> <tr> <td>Granularity</td> <td>8</td> <td>7</td> </tr> <tr> <td>Distinction</td> <td>9</td> <td>14</td> </tr> <tr> <td>Total</td> <td>22</td> <td>$\overline{30}$</td> </tr> </tbody> </table> Table 3: The number of mismatched responses in each category in the two different datasets. <table> <tbody> <tr> <th> </th> <th>$MS$ $(\mathbf{AII})$ 1</th> <th>$(\mathbf{Seen})$ $PM$</th> <th>$PM$ $\mathbf{I}\left(\mathbf{Uneen}\right)$</th> <th>$\mathbf{PM}\left(\mathbf{All}\right)$</th> </tr> <tr> <td>MC+Coder3</td> <td>0.54/0.56</td> <td>0.47/0.72</td> <td>0.34/0.50</td> <td>0.47/0.62</td> </tr> <tr> <td>HC+Coder3</td> <td>0.62/0.72</td> <td>0.48/0.69</td> <td>0.38/0.54</td> <td>0.43/0.62</td> </tr> </tbody> </table> Table 4: The number before “" is the IAA calculated by code, and the number after “” represents the IAA calculated by theme. the sample that they coded differently and the codebook. We found three major reasons: Ambiguity, Granularity, and Distinction that led the low IAA of Coder 3 with MC and HC. Table 3 is the analysis of the samples that the three coders (MC, HC, Coder 3) coded differently. Ambiguity Ambiguity indicates that the coders coded the different codes that actually belong to the same theme. For instance, “Digital Notes" and “Notes” are both under the theme“Written Records and Notes." Given a free-text response,“Keep them in a notes tab on my phone", the coders might code this response as “Digital Notes" or “Notes.”These two codes belong to the same theme and are correct but would drop the IAA if one coder selects “Digital notes" and the other selects “Notes.” We found that among 22 mismatched responses 5 of them in MS dataset were due to the ambiguity of the codes. In PM dataset, 9 out of 30 are categorized as the reason. To further confirm if the ambiguity of the codes influences the IAA, we calculated the IAA based on the theme. Table 4 represents the result. The result suggests that all the IAA improved, which indicates that the ambiguity of the codes is one factor leading to the low IAA. Granularity Granularity denotes the granularity of the coding work. We found that HC and MC coded more finely than the Coder 3 in 8 out of 22 and 7 out of 30 mismatched responses in MS and PM, respectively. For instance, for the response, “Sleeping, calm I saved it because I liked the way it sounded, I thought it would be a good song to fall asleep to. I enjoy listening to this song because it sounds sweet, like a cute sweet not cool sweet." Both HC and MC coded this response as “Positive”, “Relaxing”, and“sleep-inducing”, where Coder 3 missed the “Positive”. Distinction The other mismatched responses are due to the coders assigning different codes for a given response. This could be a result of their varied familiarity with the responses and the codebook, leading them to interpret the response or code differently. For instance, Coder 3 stated that sometimes it is hard to find a code that fits the response. As a result, Coder 3 can only identify the most appropriate code for the response. Overall, we identified the three main factors that led the IAA drop significantly for Coder 3 with MC and HC. However, we argue that thematic analysis is inherently subjective and biased since the coders must align to the research questions when making the codebooks (Braun and Clarke, 2006; Vaismoradi et al., 2016). They generated the codebook based on their expertise in the topic of the responses and the research goal. Moreover, such subjective nature is not specific to our work. Instead, it is common for any thematic analysis. It is arguable whether bias is a drawback for thematic analysis since the goal is to provide a way to understand the collected free-text data. For instance, even though the codebooks in our study are biased, they have captured the semantic meaning of the data to the research questions, and the cosine similarity between our codebooks and the codebooks from the dataset is high (0.8864 and 0.8895). The iterative nature of codebook generation leads the codebook to be less biased. As we mentioned in the discussion section, a discrepancy discussion process might be a solution to improve the IAA. # 5 Conclusion We propose a framework for human-LLM collaboration (i.e., LLM-in-the-loop) for thematic analysis (TA). The result of two case studies suggests that our proposed collaboration framework performs well for TA. The human coder and machine coder exhibit almost perfect agreement $(\kappa=0.87$ in Music Shuffle and $\kappa=0.81$ in Password Manager), where the agreement reported by the dataset authors are $\kappa=0.66$ for Music Shuffle and $\kappa=0.77$ for Password Manager. We also address the LLM input size limitation by using partial data for codebook development, with results that suggest this is a feasible approach. # Limitations There are four main limitations in this work.
[ [ "0.3074", "0.0861", "0.3728", "0.0861", "0.3728", "0.0974", "0.3074", "0.0974" ], [ "0.511", "0.0849", "0.6753", "0.0849", "0.6753", "0.0998", "0.511", "0.0998" ], [ "0.2334", "0.0986", "0.3005", "0.0986", "0.3005", "0.10925", "0.2334", "0.10925" ], [ "0.3525", "0.0956", "0.367", "0.10156", "0.3594", "0.10986", "0.345", "0.10394" ], [ "0.2317", "0.10925", "0.3064", "0.111", "0.3064", "0.1223", "0.2317", "0.12054" ], [ "0.3208", "0.10986", "0.3284", "0.1152", "0.3225", "0.12054", "0.315", "0.1152" ], [ "0.3552", "0.1134", "0.3628", "0.1134", "0.3628", "0.11755", "0.3552", "0.11755" ], [ "0.511", "0.10925", "0.882", "0.10925", "0.882", "0.12354", "0.511", "0.12354" ], [ "0.2351", "0.1223", "0.3064", "0.1223", "0.3064", "0.133", "0.2351", "0.133" ], [ "0.3477", "0.1223", "0.3704", "0.1223", "0.3704", "0.133", "0.3477", "0.133" ], [ "0.51", "0.1259", "0.882", "0.1271", "0.882", "0.1401", "0.51", "0.1395" ], [ "0.2527", "0.133", "0.288", "0.133", "0.288", "0.1443", "0.2527", "0.1443" ], [ "0.309", "0.1342", "0.3342", "0.1342", "0.3342", "0.1426", "0.309", "0.1426" ], [ "0.3418", "0.133", "0.3704", "0.133", "0.3704", "0.1443", "0.3418", "0.1443" ], [ "0.511", "0.1414", "0.882", "0.1401", "0.882", "0.155", "0.511", "0.1561" ], [ "0.11584", "0.1592", "0.4895", "0.1592", "0.4895", "0.1729", "0.11584", "0.1729" ], [ "0.51", "0.1567", "0.881", "0.1567", "0.881", "0.1704", "0.51", "0.1704" ], [ "0.11584", "0.1733", "0.3704", "0.1733", "0.3704", "0.187", "0.11584", "0.187" ], [ "0.513", "0.1746", "0.8833", "0.1746", "0.8833", "0.1882", "0.513", "0.1882" ], [ "0.511", "0.1907", "0.882", "0.1907", "0.882", "0.2037", "0.511", "0.2037" ], [ "0.1973", "0.2037", "0.3342", "0.2037", "0.3342", "0.2173", "0.1973", "0.2173" ], [ "0.3418", "0.2048", "0.4148", "0.2048", "0.4148", "0.2162", "0.3418", "0.2162" ], [ "0.4248", "0.2048", "0.482", "0.2048", "0.482", "0.2162", "0.4248", "0.2162" ], [ "0.511", "0.2073", "0.882", "0.2073", "0.882", "0.2203", "0.511", "0.2203" ], [ "0.12006", "0.2144", "0.2603", "0.2162", "0.2603", "0.2299", "0.12006", "0.228" ], [ "0.266", "0.2173", "0.3267", "0.2173", "0.3267", "0.228", "0.266", "0.228" ], [ "0.3494", "0.2173", "0.4072", "0.2173", "0.4072", "0.228", "0.3494", "0.228" ], [ "0.4248", "0.2173", "0.4836", "0.2173", "0.4836", "0.228", "0.4248", "0.228" ], [ "0.12427", "0.228", "0.2627", "0.228", "0.2627", "0.2411", "0.12427", "0.2411" ], [ "0.266", "0.2286", "0.3284", "0.2286", "0.3284", "0.2405", "0.266", "0.2405" ], [ "0.3494", "0.2286", "0.4072", "0.2286", "0.4072", "0.2405", "0.3494", "0.2405" ], [ "0.4248", "0.2286", "0.482", "0.2286", "0.482", "0.2405", "0.4248", "0.2405" ], [ "0.511", "0.2239", "0.882", "0.2239", "0.882", "0.2369", "0.511", "0.2369" ], [ "0.2585", "0.2328", "0.2678", "0.2328", "0.2678", "0.2363", "0.2585", "0.2363" ], [ "0.511", "0.2393", "0.804", "0.2393", "0.804", "0.253", "0.511", "0.253" ], [ "0.11584", "0.2546", "0.4878", "0.2546", "0.4878", "0.2683", "0.11584", "0.2683" ], [ "0.5283", "0.2546", "0.882", "0.2546", "0.882", "0.2683", "0.5283", "0.2683" ], [ "0.11584", "0.2695", "0.4895", "0.2695", "0.4895", "0.2832", "0.11584", "0.2832" ], [ "0.51", "0.2708", "0.882", "0.2708", "0.882", "0.2852", "0.51", "0.2852" ], [ "0.11584", "0.284", "0.2585", "0.284", "0.2585", "0.2976", "0.11584", "0.2976" ], [ "0.511", "0.2874", "0.8833", "0.2874", "0.8833", "0.3005", "0.511", "0.3005" ], [ "0.509", "0.3027", "0.882", "0.3018", "0.882", "0.3164", "0.509", "0.3176" ], [ "0.11755", "0.3237", "0.492", "0.3237", "0.492", "0.3374", "0.11755", "0.3374" ], [ "0.511", "0.3196", "0.882", "0.3196", "0.882", "0.3333", "0.511", "0.3333" ], [ "0.1142", "0.3384", "0.4895", "0.339", "0.4895", "0.354", "0.1142", "0.3528" ], [ "0.509", "0.3342", "0.882", "0.3342", "0.882", "0.3474", "0.509", "0.3474" ], [ "0.11584", "0.3552", "0.486", "0.3552", "0.486", "0.3682", "0.11584", "0.3682" ], [ "0.509", "0.3499", "0.882", "0.3516", "0.882", "0.3652", "0.509", "0.3635" ], [ "0.511", "0.3665", "0.881", "0.3677", "0.881", "0.3818", "0.511", "0.3813" ], [ "0.11584", "0.3723", "0.492", "0.3723", "0.492", "0.386", "0.11584", "0.386" ], [ "0.11584", "0.3884", "0.4902", "0.3884", "0.4902", "0.402", "0.11584", "0.402" ], [ "0.51", "0.3843", "0.882", "0.3843", "0.882", "0.398", "0.51", "0.398" ], [ "0.1142", "0.4026", "0.3167", "0.405", "0.3167", "0.4192", "0.1142", "0.4175" ], [ "0.51", "0.3997", "0.881", "0.3997", "0.881", "0.4133", "0.51", "0.4133" ], [ "0.51", "0.4163", "0.882", "0.4163", "0.882", "0.43", "0.51", "0.43" ], [ "0.11584", "0.4287", "0.4895", "0.4275", "0.4895", "0.4424", "0.11584", "0.4436" ], [ "0.509", "0.4316", "0.881", "0.4316", "0.881", "0.4453", "0.509", "0.4453" ], [ "0.1142", "0.4453", "0.486", "0.4453", "0.486", "0.459", "0.1142", "0.459" ], [ "0.51", "0.449", "0.8833", "0.449", "0.8833", "0.462", "0.51", "0.462" ], [ "0.11584", "0.4614", "0.486", "0.4614", "0.486", "0.4744", "0.11584", "0.4744" ], [ "0.51", "0.4644", "0.8833", "0.4644", "0.8833", "0.478", "0.51", "0.478" ], [ "0.1125", "0.4768", "0.486", "0.4768", "0.486", "0.4905", "0.1125", "0.4905" ], [ "0.51", "0.4797", "0.8833", "0.4797", "0.8833", "0.4934", "0.51", "0.4934" ], [ "0.11584", "0.4934", "0.4895", "0.4934", "0.4895", "0.5073", "0.11584", "0.5073" ], [ "0.51", "0.4963", "0.882", "0.4963", "0.882", "0.5103", "0.51", "0.5103" ], [ "0.11584", "0.509", "0.4878", "0.5083", "0.4878", "0.5225", "0.11584", "0.524" ], [ "0.511", "0.5127", "0.8833", "0.5127", "0.8833", "0.5254", "0.511", "0.5254" ], [ "0.11584", "0.5254", "0.4895", "0.5254", "0.4895", "0.539", "0.11584", "0.539" ], [ "0.511", "0.5293", "0.882", "0.5293", "0.882", "0.542", "0.511", "0.542" ], [ "0.11755", "0.5435", "0.4878", "0.5435", "0.4878", "0.554", "0.11755", "0.554" ], [ "0.513", "0.5444", "0.882", "0.5444", "0.882", "0.558", "0.513", "0.558" ], [ "0.11584", "0.558", "0.4878", "0.558", "0.4878", "0.5684", "0.11584", "0.5684" ], [ "0.51", "0.561", "0.879", "0.561", "0.879", "0.572", "0.51", "0.572" ], [ "0.11755", "0.5737", "0.4878", "0.5737", "0.4878", "0.5874", "0.11755", "0.5874" ], [ "0.51", "0.5767", "0.882", "0.5767", "0.882", "0.5903", "0.51", "0.5903" ], [ "0.11584", "0.5903", "0.4895", "0.5903", "0.4895", "0.604", "0.11584", "0.604" ], [ "0.51", "0.5933", "0.882", "0.5933", "0.882", "0.607", "0.51", "0.607" ], [ "0.11584", "0.607", "0.4878", "0.607", "0.4878", "0.6206", "0.11584", "0.6206" ], [ "0.51", "0.608", "0.864", "0.608", "0.864", "0.6216", "0.51", "0.6216" ], [ "0.11584", "0.6226", "0.4878", "0.6226", "0.4878", "0.6357", "0.11584", "0.6357" ], [ "0.1142", "0.637", "0.4878", "0.638", "0.4878", "0.653", "0.1142", "0.652" ], [ "0.5205", "0.637", "0.5283", "0.6426", "0.5225", "0.648", "0.513", "0.641" ], [ "0.5366", "0.6396", "0.5415", "0.6396", "0.5415", "0.6445", "0.5366", "0.6445" ], [ "0.54", "0.6353", "0.6406", "0.6353", "0.6406", "0.6494", "0.54", "0.6494" ], [ "0.11755", "0.6562", "0.4878", "0.6562", "0.4878", "0.6665", "0.11755", "0.6665" ], [ "0.509", "0.659", "0.882", "0.6577", "0.882", "0.673", "0.509", "0.6733" ], [ "0.11755", "0.6704", "0.4902", "0.6704", "0.4902", "0.684", "0.11755", "0.684" ], [ "0.51", "0.676", "0.881", "0.676", "0.881", "0.6895", "0.51", "0.6895" ], [ "0.11584", "0.687", "0.4895", "0.687", "0.4895", "0.7007", "0.11584", "0.7007" ], [ "0.511", "0.6914", "0.882", "0.6924", "0.882", "0.707", "0.511", "0.706" ], [ "0.11755", "0.703", "0.4878", "0.703", "0.4878", "0.7163", "0.11755", "0.7163" ], [ "0.513", "0.709", "0.882", "0.709", "0.882", "0.7227", "0.513", "0.7227" ], [ "0.11584", "0.7173", "0.3704", "0.7173", "0.3704", "0.731", "0.11584", "0.731" ], [ "0.511", "0.7246", "0.882", "0.7246", "0.882", "0.7383", "0.511", "0.7383" ], [ "0.11584", "0.742", "0.486", "0.742", "0.486", "0.756", "0.11584", "0.756" ], [ "0.5146", "0.742", "0.882", "0.742", "0.882", "0.753", "0.5146", "0.753" ], [ "0.1142", "0.759", "0.4878", "0.7583", "0.4878", "0.7725", "0.1142", "0.774" ], [ "0.51", "0.7573", "0.8833", "0.7573", "0.8833", "0.771", "0.51", "0.771" ], [ "0.11584", "0.7754", "0.4878", "0.7754", "0.4878", "0.789", "0.11584", "0.789" ], [ "0.51", "0.7725", "0.8833", "0.7725", "0.8833", "0.786", "0.51", "0.786" ], [ "0.1142", "0.7905", "0.4878", "0.7915", "0.4878", "0.8057", "0.1142", "0.8047" ], [ "0.51", "0.789", "0.882", "0.789", "0.882", "0.8027", "0.51", "0.8027" ], [ "0.11584", "0.8057", "0.4895", "0.808", "0.4895", "0.8223", "0.11584", "0.821" ], [ "0.51", "0.8047", "0.882", "0.8047", "0.882", "0.8184", "0.51", "0.8184" ], [ "0.1125", "0.8223", "0.4895", "0.8237", "0.4895", "0.8384", "0.1125", "0.8374" ], [ "0.51", "0.822", "0.8833", "0.822", "0.8833", "0.835", "0.51", "0.835" ], [ "0.11755", "0.8403", "0.4895", "0.8403", "0.4895", "0.854", "0.11755", "0.854" ], [ "0.509", "0.836", "0.882", "0.8374", "0.882", "0.8516", "0.509", "0.851" ], [ "0.11584", "0.857", "0.4902", "0.857", "0.4902", "0.8706", "0.11584", "0.8706" ], [ "0.51", "0.854", "0.66", "0.854", "0.66", "0.8677", "0.51", "0.8677" ], [ "0.11755", "0.8726", "0.4878", "0.8726", "0.4878", "0.8857", "0.11755", "0.8857" ], [ "0.511", "0.88", "0.615", "0.88", "0.615", "0.8945", "0.511", "0.8945" ], [ "0.11755", "0.888", "0.4878", "0.888", "0.4878", "0.903", "0.11755", "0.903" ], [ "0.1125", "0.903", "0.4895", "0.904", "0.4895", "0.9185", "0.1125", "0.9175" ], [ "0.509", "0.904", "0.837", "0.904", "0.837", "0.9175", "0.509", "0.9175" ] ]
[ "MSPM", "missed the \"Positive\"", "Ambiguity", "9", "Granularity", "9", "7", "DistinctionThe other mismatched responses are", "Distinction", "14", "due to the coders assigning different codes for a", "Total", "22", "30", "given response. This could be a result of their", "Table 3: The number of mismatched responses in each", "varied familiarity with the responses and the code", "category in the two different datasets.", "book, leading them to interpret the response or", "code differently.For instance, Coder 3 stated that", "MS (AIl)PM (Seen)", "PM (Uneen)", "PM (AII)", "sometimes it is hard to find a code that fits the re-", "MC+Coder30.54/0.56", "0.47/0.72", "0.34/0.50", "0.47/0.62", "HC+Coder30.62/0.72", "0.48/0.69", "0.38/0.54", "0.43/0.62", "sponse. As a result, Coder 3 can only identify the", "", "most appropriate code for the response.", "Table 4: The number before \"/\" is the IAA calculated", "Overall, we identified the three main factors that", "by code, and the number after “p\" represents the IAA", "led the IAA drop significantly for Coder 3 with", "calculated by theme.", "MC and HC. However, we argue that thematic anal-", "ysis is inherently subjective and biased since the", "the sample that they coded differently and the code-", "coders must align to the research questions when", "book. We found three major reasons: Ambiguity,", " making the codebooks (Braun and Clarke, 2006:", "Granularity, and Distinction that led the low IAA", "Vaismoradi et al., 2016). They generated the code-", "book based on their expertise in the topic of the", "of Coder 3 with MC and HC. Table 3 is the analy-", "sis of the samples that the three coders (MC, HC,", "responses and the research goal. Moreover, such", "Coder3)codeddifferently.", "subjective nature is not specific to our work. In", " stead, it is common for any thematic analysis. It is", "AmbiguityAmbiguity indicates that the coders", " arguable whether bias is a drawback for thematic", " coded the different codes that actually belong to", "analysis since the goal is to provide a way to un-", "the same theme. For instance, \"Digital Notes\"and", "derstand the collected free-text data. For instance,", "\"Notes\" are both under the theme “Written Records", "even though the codebooks in our study are biased,", "and Notes.\" Given a free-text response, “\"Keep them", "they have captured the semantic meaning of the", "in a notes tab on my phone\", the coders might code", "data to the research questions, and the cosine simi-", "this response as “Digital Notes\" or \"Notes.\" These", "larity between our codebooks and the codebooks", "twocodesbelongtothesamethemeand arecorrect", "from the dataset is high (0.8864 and 0.8895). The", "butwoulddroptheIAAif onecoderselects\"Digi-", "iterativenatureof codebookgenerationleadsthe", "tal notes\" and the other selects \"Notes.\" We found", "codebook to be less biased. As we mentioned in", "that among 22 mismatched responses 5 of them", "the discussion section, a discrepancy discussion", "in MS dataset were due to the ambiguity of the", "process might be a solution to improve the IAA", "codes. In PM dataset, 9 out of 30 are categorized", "as the reason. To further confirm if the ambiguity", "A", "", "Conclusion", "ofthecodes influencestheIAA,we calculated the", "We propose a framework for human-LLM collabo-", "IAA based on the theme. Table 4 represents the re-", "ration (i.e., LLM-in-the-loop) for thematic analysis", " sult. The result suggests that all the IAA improved,", "(TA). The result of two case studies suggests that", "which indicates that the ambiguity of the codes is", "our proposed collaboration framework performs", "one factor leading to the low IAA.", "well for TA. The human coder and machine coder", "GranularityGranularity denotes the granularity", "exhibitalmostperfect agreement (k =0.87inMu-", "of the coding work. We found that HC and MC", "sic Shuffle and k = 0.81 in Password Manager),", "coded more finely than the Coder 3 in 8 out of 22", "where the agreement reported by the dataset au-", "and 7 out of 30 mismatched responses in MS and", "thors are k = 0.66 for Music Shuffle and k = 0.77", "PM, respectively. For instance, for the response,", "for Password Manager. We also address the LLM", "\"Sleeping, calm I saved it because I liked the way", "input size limitation by using partial data for code-", "it sounded, I thought it would be a good song to", "book development, with results that suggest this is", "fall asleep to. I enjoy listening to this song because", " a feasible approach.", "it sounds sweet, like a cute sweet not cool sweet.\"", "Limitations", "Both HC and MC coded this response as Positive\",", "\"Relaxing\", and “\"sleep-inducing\", where Coder 3", "There are four main limitations in this work." ]
{ "arxiv_id": "2310.15100", "language": "en", "page_idx": 4 }
2308.13957-en-0
2308.13957-en-0.jpg
Differentiable Weight Masks for Domain Transfer Skanda Vaidyanath$^*$ Akash Velu $^*$ Samar Khanna$^*$ Stanford University $\{$samarkhanna,svaidyan,avelu$\}$ecs.stanford.edu $ଝୁ$ 八 $పై$ ## $\mathbf{Abstract}$ One of the major drawbacks of deep learning models for $\begin{array}{cc}&One\:ofthe\:major\:drawbacks\:of\:deep\:learnin\end{array}$ sources of information in a modular fashion. For instance, given a network that has been trained on a source task, we would like to re-train this network on a similar, yet different, the set of weights culpable for eliciting the observed performance on a given task. One set of works studies the modularization induced in the weights of a neural network by Nlearning and analysing weight masks. In this work, we com- bine these fields to study three such weight masking methPine bine these felds to study three such weight masking methDa ods and analyse their ability to mitigate " forgeting " on there source task while also allowing for efficient finetuning on the target task. We find that different masking techniques trade-off retaining knowledge in the source task with learning to perform well on the target task. ## $1. \textbf{Introduction}$ Deep learning algorithms have proven to be extremely successful in a wide range of supervised learning tasks [2] [19] in vision and language. These methods are capable of utilizing large datasets to learn models which can generalize to new datapoints which are within the training data distribution. Although some particularly large models such as GPT-3 and DALLE-2 have exhibited emergent qualities of generalizing to new data distributions, smaller models in vision and language tend to suffer from distribution shift. Often, when practitioners want to improve the performance of their model on a new domain that is out of distribution from the one they trained on, a natural idea is to fine-tune the weights of the model with data from this new domain. This often tends to improve the performance on $^{*}$Equal contribution. Published in Out of Distribution Generalization in $\hat{\text{Computer Vision (OOD-CV) workshop at ICCV 2023}}$ the new (target) domain but tends to lose performance on the original (source) domain. However, we'd like models to be able to maintain their performance on the source domain while improving on the target domain. For instance, a model used in a self-driving car which is adapted to a new driving environment should retain strong performance in the original environment it was trained on, while achievloses its performance on the original painting domain. This is related to the catastrophic forgetting problem in continual learning where a model trained on a new task tends to forget older tasks it learned. In this work, we examine methods by which models can be adapted to a new domain without experiencing significant forgetting. One way to achieve this could be by modularizing the network and splitting the weights as being specific to the source domain and others that can be edited to improve performance on the target domain without a drop in the source domain. We take inspiration from methods that edit the weights of a trained model as a means of adapting its performance. Specifically, we focus on differentiable weight masks [4] and model editor networks literature such as [17], methods which either directly modify or mask the weight matrices of a trained neural network in order to analyze the network's properties or to edit its performance on specific datapoints. In our setting, we use methods similar to these to identify weights that can be modified to retain source domain performance while achieving improved target domain performance. We analyse these different masking methods on an image classification task and present that trade-offs that each method offers in this paradigm. ### $2. \textbf{Related Work}$ Our setting is similar to transfer learning, where a model trained on one dataset is finetuned on another dataset[5, 6, 1] and domain adaptation, where the learning algorithm
[ [ "0.2378", "0.1338", "0.7344", "0.1338", "0.7344", "0.1483", "0.2378", "0.1483" ], [ "0.2296", "0.1831", "0.353", "0.1831", "0.353", "0.1976", "0.2296", "0.1976" ], [ "0.4167", "0.1831", "0.5728", "0.1831", "0.5728", "0.1976", "0.4167", "0.1976" ], [ "0.636", "0.1831", "0.74", "0.1831", "0.74", "0.1976", "0.636", "0.1976" ], [ "0.4248", "0.226", "0.544", "0.2267", "0.544", "0.2412", "0.4248", "0.2405" ], [ "0.2932", "0.2456", "0.6807", "0.2456", "0.6807", "0.2588", "0.2932", "0.2588" ], [ "0.0237", "0.2715", "0.058", "0.2715", "0.058", "0.377", "0.0237", "0.377" ], [ "0.2361", "0.2922", "0.3145", "0.2922", "0.3145", "0.31", "0.2361", "0.31" ], [ "0.5024", "0.2942", "0.8906", "0.2942", "0.8906", "0.3093", "0.5024", "0.3093" ], [ "0.5034", "0.3125", "0.892", "0.3125", "0.892", "0.3257", "0.5034", "0.3257" ], [ "0.1013", "0.3289", "0.468", "0.3289", "0.468", "0.339", "0.1013", "0.339" ], [ "0.5024", "0.327", "0.8906", "0.327", "0.8906", "0.3403", "0.5024", "0.3403" ], [ "0.0809", "0.3423", "0.4697", "0.3423", "0.4697", "0.356", "0.0809", "0.356" ], [ "0.5024", "0.3423", "0.8906", "0.3423", "0.8906", "0.356", "0.5024", "0.356" ], [ "0.0809", "0.3567", "0.468", "0.3567", "0.468", "0.3706", "0.0809", "0.3706" ], [ "0.5024", "0.3567", "0.892", "0.3567", "0.892", "0.3706", "0.5024", "0.3706" ], [ "0.02777", "0.3687", "0.05228", "0.3687", "0.05228", "0.3894", "0.02777", "0.3894" ], [ "0.0809", "0.3726", "0.4697", "0.3726", "0.4697", "0.3865", "0.0809", "0.3865" ], [ "0.5024", "0.3726", "0.8936", "0.3726", "0.8936", "0.3865", "0.5024", "0.3865" ], [ "0.0801", "0.3865", "0.468", "0.387", "0.468", "0.4016", "0.0801", "0.401" ], [ "0.5024", "0.387", "0.892", "0.387", "0.892", "0.401", "0.5024", "0.401" ], [ "0.02533", "0.3977", "0.05637", "0.3977", "0.05637", "0.4458", "0.02533", "0.4458" ], [ "0.0801", "0.4028", "0.4697", "0.4028", "0.4697", "0.4167", "0.0801", "0.4167" ], [ "0.501", "0.4028", "0.8906", "0.4016", "0.8906", "0.4153", "0.501", "0.4167" ], [ "0.0784", "0.4167", "0.4697", "0.4172", "0.4697", "0.432", "0.0784", "0.4312" ], [ "0.5024", "0.4185", "0.8906", "0.4185", "0.8906", "0.432", "0.5024", "0.432" ], [ "0.0809", "0.433", "0.468", "0.433", "0.468", "0.4463", "0.0809", "0.4463" ], [ "0.5024", "0.433", "0.892", "0.433", "0.892", "0.4463", "0.5024", "0.4463" ], [ "0.0335", "0.4426", "0.05554", "0.4426", "0.05554", "0.4734", "0.0335", "0.4734" ], [ "0.0809", "0.4495", "0.4656", "0.4495", "0.4656", "0.4602", "0.0809", "0.4602" ], [ "0.501", "0.4475", "0.892", "0.4475", "0.892", "0.461", "0.501", "0.461" ], [ "0.0801", "0.4634", "0.4673", "0.4634", "0.4673", "0.4766", "0.0801", "0.4766" ], [ "0.501", "0.461", "0.892", "0.4622", "0.892", "0.4766", "0.501", "0.476" ], [ "0.0825", "0.4797", "0.468", "0.4797", "0.468", "0.4905", "0.0825", "0.4905" ], [ "0.5034", "0.4778", "0.892", "0.4778", "0.892", "0.4912", "0.5034", "0.4912" ], [ "0.02287", "0.4849", "0.06046", "0.486", "0.058", "0.577", "0.0196", "0.5757" ], [ "0.0801", "0.4937", "0.468", "0.4937", "0.468", "0.507", "0.0801", "0.507" ], [ "0.5024", "0.4937", "0.6855", "0.4937", "0.6855", "0.507", "0.5024", "0.507" ], [ "0.0801", "0.509", "0.468", "0.509", "0.468", "0.523", "0.0801", "0.523" ], [ "0.5215", "0.509", "0.892", "0.509", "0.892", "0.523", "0.5215", "0.523" ], [ "0.04166", "0.5244", "0.0474", "0.529", "0.04166", "0.5327", "0.03595", "0.529" ], [ "0.0801", "0.5234", "0.4673", "0.5234", "0.4673", "0.537", "0.0801", "0.537" ], [ "0.5024", "0.5244", "0.8906", "0.5244", "0.8906", "0.5386", "0.5024", "0.5386" ], [ "0.0801", "0.537", "0.4697", "0.5386", "0.4697", "0.553", "0.0801", "0.552" ], [ "0.5024", "0.539", "0.892", "0.539", "0.892", "0.553", "0.5024", "0.553" ], [ "0.0801", "0.5537", "0.4697", "0.5537", "0.4697", "0.5674", "0.0801", "0.5674" ], [ "0.5024", "0.5547", "0.892", "0.5547", "0.892", "0.5684", "0.5024", "0.5684" ], [ "0.02287", "0.571", "0.05963", "0.571", "0.05963", "0.705", "0.02287", "0.705" ], [ "0.0801", "0.5684", "0.468", "0.5684", "0.468", "0.582", "0.0801", "0.582" ], [ "0.505", "0.5713", "0.8906", "0.5713", "0.8906", "0.582", "0.505", "0.582" ], [ "0.0801", "0.584", "0.3284", "0.5835", "0.3284", "0.5977", "0.0801", "0.5986" ], [ "0.5034", "0.5854", "0.892", "0.5854", "0.892", "0.5986", "0.5034", "0.5986" ], [ "0.5034", "0.601", "0.892", "0.601", "0.892", "0.6143", "0.5034", "0.6143" ], [ "0.505", "0.616", "0.8896", "0.616", "0.8896", "0.627", "0.505", "0.627" ], [ "0.0825", "0.6274", "0.2091", "0.6274", "0.2091", "0.6426", "0.0825", "0.6426" ], [ "0.5024", "0.63", "0.892", "0.63", "0.892", "0.643", "0.5024", "0.643" ], [ "0.505", "0.6465", "0.8906", "0.6465", "0.8906", "0.657", "0.505", "0.657" ], [ "0.0989", "0.654", "0.4673", "0.654", "0.4673", "0.6675", "0.0989", "0.6675" ], [ "0.5024", "0.66", "0.892", "0.66", "0.892", "0.674", "0.5024", "0.674" ], [ "0.0809", "0.6694", "0.468", "0.6694", "0.468", "0.683", "0.0809", "0.683" ], [ "0.5024", "0.6753", "0.8906", "0.6753", "0.8906", "0.6895", "0.5024", "0.6895" ], [ "0.0809", "0.685", "0.468", "0.685", "0.468", "0.6987", "0.0809", "0.6987" ], [ "0.5034", "0.69", "0.892", "0.69", "0.892", "0.704", "0.5034", "0.704" ], [ "0.0809", "0.6987", "0.4656", "0.6987", "0.4656", "0.712", "0.0809", "0.712" ], [ "0.5024", "0.7056", "0.892", "0.7056", "0.892", "0.7197", "0.5024", "0.7197" ], [ "0.0801", "0.714", "0.4697", "0.714", "0.4697", "0.728", "0.0801", "0.728" ], [ "0.5024", "0.72", "0.892", "0.72", "0.892", "0.7344", "0.5024", "0.7344" ], [ "0.0801", "0.729", "0.468", "0.729", "0.468", "0.742", "0.0801", "0.742" ], [ "0.5034", "0.7363", "0.8906", "0.7363", "0.8906", "0.75", "0.5034", "0.75" ], [ "0.0801", "0.744", "0.4697", "0.744", "0.4697", "0.7583", "0.0801", "0.7583" ], [ "0.5024", "0.7505", "0.665", "0.7505", "0.665", "0.7646", "0.5024", "0.7646" ], [ "0.0801", "0.7603", "0.4697", "0.7603", "0.4697", "0.7734", "0.0801", "0.7734" ], [ "0.523", "0.7676", "0.8906", "0.7676", "0.8906", "0.781", "0.523", "0.781" ], [ "0.0801", "0.776", "0.4558", "0.776", "0.4558", "0.789", "0.0801", "0.789" ], [ "0.5034", "0.782", "0.8936", "0.782", "0.8936", "0.7954", "0.5034", "0.7954" ], [ "0.0989", "0.789", "0.4673", "0.789", "0.4673", "0.803", "0.0989", "0.803" ], [ "0.501", "0.7974", "0.71", "0.7974", "0.71", "0.811", "0.501", "0.811" ], [ "0.0801", "0.806", "0.468", "0.806", "0.468", "0.8193", "0.0801", "0.8193" ], [ "0.0801", "0.821", "0.468", "0.821", "0.468", "0.834", "0.0801", "0.834" ], [ "0.5034", "0.829", "0.642", "0.829", "0.642", "0.8433", "0.5034", "0.8433" ], [ "0.0809", "0.837", "0.4673", "0.837", "0.4673", "0.8477", "0.0809", "0.8477" ], [ "0.0801", "0.851", "0.4697", "0.851", "0.4697", "0.8643", "0.0801", "0.8643" ], [ "0.5215", "0.856", "0.892", "0.856", "0.892", "0.869", "0.5215", "0.869" ], [ "0.0972", "0.8755", "0.4722", "0.8755", "0.4722", "0.8896", "0.0972", "0.8896" ], [ "0.501", "0.8706", "0.892", "0.872", "0.892", "0.886", "0.501", "0.8853" ], [ "0.0801", "0.887", "0.3708", "0.887", "0.3708", "0.901", "0.0801", "0.901" ], [ "0.5024", "0.887", "0.892", "0.887", "0.892", "0.901", "0.5024", "0.901" ] ]
[ "Differentiable Weight Masks for Domain Transfer", "Samar Khanna*", "Skanda Vaidyanath*", "Akash Velu *", "Stanford University", "[samarkhanna,svaidyan,avelu]@cs.stanford.edu", "0", "Abstract", "the new (target) domain but tends to lose performance on", "the original (source) domain. However, we'd like models", "Oneofthemajordrawbacksofdeeplearningmodelsfor", "to be able to maintain their performance on the source do-", "computer vision has been their inability to retain multiple", "main while improving on the target domain. For instance,", "sources of information in a modular fashion. For instance,", "a model used in a self-driving car which is adapted to a", "7", "given a network that has been trained on a source task, we", "new driving environment should retain strong performance", "would like to re-train this network on a similar, yet different,", "in the original environment it was trained on, while achiev-", "LA", "target task while maintaining its performance on the source", "ing competitive performance in the new environment. An-", "task. Simultaneously, researchers have extensively studied", "other example is when an image classifier trained on paint-", "modularization of network weights to localize and identify", "ings is fine-tuned on a new domain of cartoon images, and it", "'SO", "the set of weights culpableforeliciting the observedperfor", "loses its performance on the original painting domain. This", "mance on a given task. One set of works studies the mod-", "is related to the catastrophic forgetting problem in contin-", "ularization induced in the weights of aneural network by", "ual learning where a model trained on a new task tends to", "1", "learning and analysing weight masks. In this work, we com-", "forget older tasks it learned.", "bine these fields to study three such weight masking meth-", "In this work, we examine methods by which models can", "", "ods and analyse their ability to mitigate “forgetting\" on the", "be adapted to a new domain without experiencing signifi-", "source task while also allowing for efficient finetuning on", "cant forgetting. One way to achieve this could be by modu-", "the target task. We find that different masking techniques", "larizing the network and splitting the weights as being spe-", "1805:AXI", "trade-off retaining knowledge in the source task with learn-", "cificto the source domain and others that can be edited to", "ing to perform well on the target task.", "improve performance on the target domain without a drop", "in the source domain. We take inspiration from methods", "that edit the weights of a trained model as a means of adapt-", "1. Introduction", "ing its performance. Specifically, we focus on differentiable", "weightmasks[4landmodel editornetworksliteraturesuch", "Deep learning algorithms have proven to be extremely", "as [17], methods which either directly modify or mask the", "successful in a wide range of supervised learning tasks [2]", "weight matrices of a trained neural network in order to an-", "[19] in vision and language. These methods are capable", "alyze the network's properties or to edit its performance on", "of utilizing large datasets to learn models which can gener-", "specific datapoints. In our setting, we use methods similar", "alize to new datapoints which are within the training data", "to these to identify weights that can be modified to retain", "distribution. Although some particularly large models such", "source domain performance while achieving improved tar-", "as GPT-3 and DALLE-2 have exhibited emergent qualities", "get domain performance", "of generalizing to new data distributions, smaller models in", "We analyse these different masking methods on an im-", "vision and language tend to suffer from distribution shift.", "age classification task and present that trade-offs that each", "Often, when practitioners want to improve the perfor-", "method offers in this paradigm.", "mance of their model on a new domain that is out of dis-", "tribution from the one they trained on, a natural idea is to", "2.Related Work", "fine-tune theweights of the model with datafrom this new", "domain. This often tends to improve the performance on", "Our setting is similar to transfer learning, where a model", "\"Equal contribution.Published in Out of Distribution Generalization in", "trained on one dataset is finetuned on another dataset [5,", "Computer Vision (OOD-CV) workshop at ICCV 2023.", "6, 1I and domain adaptation, where the learning algorithm" ]
{ "arxiv_id": "2308.13957", "language": "en", "page_idx": 0 }
2308.13957-en-2
2308.13957-en-2.jpg
the weights indicated by a 1 in $\mathcal{M}$ and fine-tune the rest. The weights that are getting masked out should not be very useful for the source task since the performance on the source task doesn't degrade when we mask these weights. In general, since we cannot differentiate through discrete sampling operations, it is difficult to learn discrete masks $\mathcal{M}$ with gradient based methods. However, Jang et al.[11] show that the Gumbel distribution can be used to generate discrete samples in a differentiable fashion and has been used successfully in downstream works [4,18]. We encourage the reader to refer to the original paper[11] for a detailed description of the technique. The training procedure is as follows: once we have a pretrained model on the source domain, we would like to learn a binary weight mask $\mathcal{M}$ that will replace the final $\mathcal{W}$ of the model with $\mathcal{W}^*\mathcal{M}$ where * represents an elementwise multiplication operation. Our objective is to decrease cross-entropy loss while masking out as many weights as possible. We use a penalty term similar to the one we saw in the previous section to achieve this. We find that this penalty term is crucial in recovering a fairly sparse mask at the end of training. During training, for stability, we sample multiple masks per batch as prescribed by Csordás et al. [4]. 4.4. Using the trained masks for fine-tuning Once we have trained our masks on the source domain $\mathcal{S}$, we can fine-tune our model on the new target domain $\mathcal{T}$, while not losing performance on the source domain. For all parameters $\theta_i$ such that $b_i=1$ (i.e. $\theta_i\in\theta_\text{specialize})$, we let $\tilde{\theta}_{i}=\theta_{i}^{\mathcal{S}*}$, where $\theta^{\mathcal{S}*}$ denotes the fully trained weights on the source domain. For all parameters $\theta_j$ such that $b_j=0$ (i.e. $\theta_j\in\theta_{\mathrm{reuse}})$, we have three options: ( i) $\theta _{j}$ = $\theta _{j}^{S* }$, where we start updating $\theta _{j}$ from its final trained value on $\mathcal{S}$ (ii) $\theta_i^S$, where $\theta^S$ denotes the original initialisation of the weights for the model before it was trained on the source domain $\mathcal{S}.$ This motivation is inspired from the Lottery Ticket Hypothesis [7]. (iii) $\theta_i^\mathrm{random}$, where we consider a fully random re- initialisation of $\theta_\mathrm{reuse}.$ We study the effect of these initialization strategies in sec- tion 5.3. Our default initialization strategy is (ii). ## $5.Experiments$ In this section we explore the effect of varying masking strategies with respect to (i) performance on the target domain and (ii) performance on the source domain after finetuning on the target domain. Dataset We conduct our experiments on the PACS dataset[12]. PACS is an image dataset for domain generalization. It consists of four domains, namely Photo (1,670 images), Art Painting (2,048 images), Cartoon (2,344 images) and Sketch (3,929 images). Each domain consists of the same seven classification categories: dog, elephant, giraffe, guitar, house, and person. We wish to study how training on a source domain (eg: Photos), then training on a target domain (eg: Sketch), affects the performance of the model on the original source domain (eg: Photos). Model We use a ResNet-18 [10] pretrained with ImageNet weights[21]. Early experiments determined that using a larger model or finetuning all weights yield negligible improvements in accuracy compared to tuning just the last layer. Therefore, we finetune and mask only the final layer (the MLP head) of the model in all our experiments below. ## 5.1. Upper and Lower Bounds We compare each masking method relative to finetuning all weights of the MLP head on $\mathcal{D}_S$ (similar to the masking methods), and then also to finetune all weights of the MLP head on $\mathcal{D}_{\mathcal{T}}.$ We denote this as unmasked finetuning. We expect unmasked finetuning to show the largest drop in performance on $\mathcal{S}$ and the biggest gain on $\mathcal{T}$ compared to all masking methods, demonstrating the problem of “forgetting" by giving us approximate lower and upper bounds, respectively. Thus, rather than plotting the absolute accuracy of each masking method and unmasked finetuning, we compare the difference in accuracy between each masking method and unmasked finetuning on: (i) the source domain $\mathcal{S}$,denoted as source gain, to indicate the increase in performance achieved by the masking method on the source domain over unmasked finetuning (ii) the target domain $\mathcal{T}$,denoted as target gain, reasoned similarly. These two metrics allow us to compare the benefits of each masking method relative to each other, and across domains. ## 5.2. How do the different masking strategies compare against each other? We plot the source gain and target gain for each masking method in figure 2. We find that learned binary masks are much better than other masking methods on the source gain metric, thus “remembering” more from the source domain even after being finetuned on the target domain. However, this comes at the cost of decreased performance on the target domain. Naive masking shows no discernible improvement or regression on source gain, but is consistently lower than unmasked tuning on the target domain. Finally, editor-based masking shows improvements on the target domain but at the cost of “forgetting” more on the source domain. Across all masking methods, there seems to be a nonlinear tradeoff in improving source domain performance at the cost of decreasing performance on the target domain. Interestingly, directly learning binary masks does more to combat forgetting than editor-based masks, while the latter un-freezes more of the right weights to improve target gain.
[ [ "0.0801", "0.09155", "0.468", "0.09155", "0.468", "0.1061", "0.0801", "0.1061" ], [ "0.5024", "0.09155", "0.8906", "0.09155", "0.8906", "0.1061", "0.5024", "0.1061" ], [ "0.0809", "0.108", "0.4673", "0.108", "0.4673", "0.1218", "0.0809", "0.1218" ], [ "0.5024", "0.1067", "0.892", "0.1067", "0.892", "0.1218", "0.5024", "0.1218" ], [ "0.0809", "0.125", "0.468", "0.125", "0.468", "0.1351", "0.0809", "0.1351" ], [ "0.501", "0.1218", "0.8906", "0.1225", "0.8906", "0.137", "0.501", "0.1364" ], [ "0.0801", "0.1383", "0.464", "0.1383", "0.464", "0.1515", "0.0801", "0.1515" ], [ "0.5034", "0.1383", "0.892", "0.1383", "0.892", "0.1515", "0.5034", "0.1515" ], [ "0.0989", "0.1528", "0.468", "0.1528", "0.468", "0.1666", "0.0989", "0.1666" ], [ "0.5024", "0.1528", "0.892", "0.1528", "0.892", "0.1666", "0.5024", "0.1666" ], [ "0.0801", "0.1674", "0.468", "0.1674", "0.468", "0.1812", "0.0801", "0.1812" ], [ "0.5034", "0.1692", "0.8906", "0.1692", "0.8906", "0.1799", "0.5034", "0.1799" ], [ "0.0809", "0.1831", "0.468", "0.1831", "0.468", "0.1963", "0.0809", "0.1963" ], [ "0.5024", "0.1831", "0.831", "0.1831", "0.831", "0.1963", "0.5024", "0.1963" ], [ "0.0801", "0.1976", "0.4697", "0.1976", "0.4697", "0.2108", "0.0801", "0.2108" ], [ "0.5215", "0.1989", "0.8906", "0.1989", "0.8906", "0.2122", "0.5215", "0.2122" ], [ "0.0801", "0.2134", "0.4697", "0.2134", "0.4697", "0.2267", "0.0801", "0.2267" ], [ "0.5034", "0.214", "0.8906", "0.214", "0.8906", "0.2279", "0.5034", "0.2279" ], [ "0.0801", "0.2279", "0.4697", "0.2279", "0.4697", "0.2412", "0.0801", "0.2412" ], [ "0.5034", "0.2291", "0.892", "0.2291", "0.892", "0.2424", "0.5034", "0.2424" ], [ "0.0801", "0.2437", "0.468", "0.2437", "0.468", "0.2583", "0.0801", "0.2583" ], [ "0.5034", "0.2443", "0.892", "0.2443", "0.892", "0.2583", "0.5034", "0.2583" ], [ "0.0801", "0.2588", "0.308", "0.2588", "0.308", "0.2727", "0.0801", "0.2727" ], [ "0.5034", "0.2588", "0.8906", "0.2588", "0.8906", "0.2727", "0.5034", "0.2727" ], [ "0.10046", "0.2734", "0.468", "0.2734", "0.468", "0.2874", "0.10046", "0.2874" ], [ "0.5034", "0.2734", "0.888", "0.2734", "0.888", "0.2874", "0.5034", "0.2874" ], [ "0.0801", "0.289", "0.468", "0.289", "0.468", "0.303", "0.0801", "0.303" ], [ "0.0801", "0.3037", "0.4697", "0.3037", "0.4697", "0.3176", "0.0801", "0.3176" ], [ "0.5034", "0.2998", "0.7363", "0.2998", "0.7363", "0.3145", "0.5034", "0.3145" ], [ "0.0801", "0.318", "0.468", "0.318", "0.468", "0.332", "0.0801", "0.332" ], [ "0.523", "0.3213", "0.892", "0.3213", "0.892", "0.336", "0.523", "0.336" ], [ "0.0801", "0.334", "0.468", "0.334", "0.468", "0.348", "0.0801", "0.348" ], [ "0.5034", "0.3384", "0.892", "0.3384", "0.892", "0.3528", "0.5034", "0.3528" ], [ "0.0801", "0.3499", "0.4697", "0.3499", "0.4697", "0.363", "0.0801", "0.363" ], [ "0.5034", "0.3542", "0.892", "0.3542", "0.892", "0.3674", "0.5034", "0.3674" ], [ "0.0801", "0.3643", "0.468", "0.3643", "0.468", "0.3774", "0.0801", "0.3774" ], [ "0.501", "0.3674", "0.8906", "0.3687", "0.8906", "0.3833", "0.501", "0.3818" ], [ "0.0809", "0.3806", "0.468", "0.3806", "0.468", "0.3914", "0.0809", "0.3914" ], [ "0.5034", "0.3838", "0.892", "0.3838", "0.892", "0.3977", "0.5034", "0.3977" ], [ "0.0809", "0.3933", "0.468", "0.3933", "0.468", "0.4072", "0.0809", "0.4072" ], [ "0.5024", "0.3997", "0.8906", "0.3997", "0.8906", "0.4136", "0.5024", "0.4136" ], [ "0.0801", "0.4104", "0.468", "0.4104", "0.468", "0.4236", "0.0801", "0.4236" ], [ "0.5034", "0.414", "0.8906", "0.414", "0.8906", "0.428", "0.5034", "0.428" ], [ "0.0801", "0.4248", "0.4673", "0.4248", "0.4673", "0.4382", "0.0801", "0.4382" ], [ "0.5034", "0.43", "0.892", "0.43", "0.892", "0.443", "0.5034", "0.443" ], [ "0.0784", "0.4443", "0.415", "0.4458", "0.415", "0.4634", "0.0784", "0.4622" ], [ "0.5034", "0.4463", "0.8906", "0.4463", "0.8906", "0.457", "0.5034", "0.457" ], [ "0.5034", "0.4602", "0.892", "0.4602", "0.892", "0.4734", "0.5034", "0.4734" ], [ "0.0989", "0.4702", "0.4656", "0.4702", "0.4656", "0.4841", "0.0989", "0.4841" ], [ "0.5024", "0.4749", "0.8906", "0.4749", "0.8906", "0.488", "0.5024", "0.488" ], [ "0.0809", "0.4849", "0.4673", "0.4849", "0.4673", "0.4988", "0.0809", "0.4988" ], [ "0.5034", "0.4912", "0.8906", "0.4912", "0.8906", "0.502", "0.5034", "0.502" ], [ "0.0801", "0.5005", "0.468", "0.5", "0.468", "0.5146", "0.0801", "0.515" ], [ "0.5024", "0.505", "0.892", "0.505", "0.892", "0.518", "0.5024", "0.518" ], [ "0.0809", "0.5166", "0.468", "0.5166", "0.468", "0.531", "0.0809", "0.531" ], [ "0.5034", "0.5215", "0.8906", "0.5215", "0.8906", "0.532", "0.5034", "0.532" ], [ "0.0809", "0.531", "0.4673", "0.531", "0.4673", "0.5444", "0.0809", "0.5444" ], [ "0.5024", "0.535", "0.8906", "0.535", "0.8906", "0.549", "0.5024", "0.549" ], [ "0.0809", "0.547", "0.4673", "0.547", "0.4673", "0.56", "0.0809", "0.56" ], [ "0.5034", "0.5503", "0.8906", "0.5503", "0.8906", "0.5645", "0.5034", "0.5645" ], [ "0.0801", "0.5625", "0.3423", "0.5625", "0.3423", "0.577", "0.0801", "0.577" ], [ "0.5034", "0.565", "0.892", "0.565", "0.892", "0.579", "0.5034", "0.579" ], [ "0.08905", "0.5835", "0.468", "0.5835", "0.468", "0.5977", "0.08905", "0.5977" ], [ "0.5024", "0.5806", "0.7812", "0.5806", "0.7812", "0.5947", "0.5024", "0.5947" ], [ "0.1136", "0.601", "0.2345", "0.601", "0.2345", "0.6113", "0.1136", "0.6113" ], [ "0.5024", "0.605", "0.8896", "0.606", "0.8896", "0.6206", "0.5024", "0.619" ], [ "0.08496", "0.6206", "0.4697", "0.6206", "0.4697", "0.6353", "0.08496", "0.6353" ], [ "0.5415", "0.6226", "0.734", "0.6206", "0.734", "0.634", "0.5415", "0.636" ], [ "0.11273", "0.637", "0.4697", "0.637", "0.4697", "0.651", "0.11273", "0.651" ], [ "0.523", "0.6445", "0.8906", "0.6445", "0.8906", "0.6577", "0.523", "0.6577" ], [ "0.1136", "0.654", "0.4673", "0.654", "0.4673", "0.664", "0.1136", "0.664" ], [ "0.5034", "0.66", "0.892", "0.66", "0.892", "0.674", "0.5034", "0.674" ], [ "0.1111", "0.6665", "0.3179", "0.6675", "0.3179", "0.6816", "0.1111", "0.681" ], [ "0.5024", "0.675", "0.892", "0.675", "0.892", "0.688", "0.5024", "0.688" ], [ "0.0784", "0.6875", "0.468", "0.6895", "0.468", "0.707", "0.0784", "0.705" ], [ "0.5024", "0.69", "0.892", "0.6895", "0.892", "0.704", "0.5024", "0.705" ], [ "0.1111", "0.704", "0.255", "0.707", "0.255", "0.7217", "0.1111", "0.7183" ], [ "0.5024", "0.7056", "0.892", "0.7056", "0.892", "0.7197", "0.5024", "0.7197" ], [ "0.5034", "0.72", "0.892", "0.72", "0.892", "0.7344", "0.5034", "0.7344" ], [ "0.0809", "0.728", "0.4673", "0.728", "0.4673", "0.741", "0.0809", "0.741" ], [ "0.505", "0.7373", "0.8896", "0.7373", "0.8896", "0.7476", "0.505", "0.7476" ], [ "0.0801", "0.7437", "0.4004", "0.7437", "0.4004", "0.7583", "0.0801", "0.7583" ], [ "0.5034", "0.752", "0.8906", "0.752", "0.8906", "0.765", "0.5034", "0.765" ], [ "0.0809", "0.7695", "0.2075", "0.7695", "0.2075", "0.784", "0.0809", "0.784" ], [ "0.5034", "0.7666", "0.8906", "0.7666", "0.8906", "0.78", "0.5034", "0.78" ], [ "0.505", "0.7827", "0.8896", "0.7827", "0.8896", "0.7935", "0.505", "0.7935" ], [ "0.09644", "0.7944", "0.4697", "0.7954", "0.4697", "0.81", "0.09644", "0.8096" ], [ "0.5024", "0.797", "0.892", "0.797", "0.892", "0.81", "0.5024", "0.81" ], [ "0.0801", "0.811", "0.4697", "0.811", "0.4697", "0.8247", "0.0801", "0.8247" ], [ "0.5024", "0.811", "0.892", "0.811", "0.892", "0.8247", "0.5024", "0.8247" ], [ "0.0801", "0.827", "0.468", "0.827", "0.468", "0.8403", "0.0801", "0.8403" ], [ "0.5024", "0.827", "0.892", "0.827", "0.892", "0.8403", "0.5024", "0.8403" ], [ "0.0801", "0.8413", "0.2688", "0.8413", "0.2688", "0.855", "0.0801", "0.855" ], [ "0.5034", "0.8413", "0.892", "0.8413", "0.892", "0.855", "0.5034", "0.855" ], [ "0.0989", "0.858", "0.468", "0.858", "0.468", "0.8687", "0.0989", "0.8687" ], [ "0.5024", "0.857", "0.892", "0.857", "0.892", "0.8706", "0.5024", "0.8706" ], [ "0.0801", "0.872", "0.468", "0.872", "0.468", "0.8853", "0.0801", "0.8853" ], [ "0.5024", "0.872", "0.892", "0.872", "0.892", "0.8853", "0.5024", "0.8853" ], [ "0.0801", "0.887", "0.4697", "0.887", "0.4697", "0.901", "0.0801", "0.901" ], [ "0.5024", "0.887", "0.892", "0.887", "0.892", "0.901", "0.5024", "0.901" ] ]
[ "the weights indicated by a 1 in M and fine-tune the rest.", "images), Art Painting (2,048 images), Cartoon (2,344 im-", "The weights that are getting masked out should not be very", "ages) and Sketch (3,929 images). Each domain consists", "useful for the sourcetask since the performanceon the", "of the same seven classification categories: dog, elephant,", "source task doesn't degrade when we mask these weights.", "giraffe, guitar, house, and person. We wish to study how", "In general, since we cannot differentiate through discrete", "training on a source domain (eg: Photos), then training on", "sampling operations, it is difficult to learn discrete masks", "atargetdomain(eg:Sketch),affectstheperformance ofthe", "M with gradient based methods. However, Jang et al. [11]", "model on the original source domain (eg: Photos).", "show that the Gumbel distribution can be used to generate", "Model We use a ResNet-18 [10] pretrained with Ima-", "discrete samples in a differentiable fashion and has been", "geNet weights [21]. Early experiments determined that us-", "used successfully in downstream works [4, 18]. We encour-", "ing a larger model or finetuning all weights yield negligible", "age the reader to refer to the original paper [11] for a de-", "improvements in accuracy compared to tuning just the last", "tailed description of the technique.", "layer. Therefore, we finetune and mask only the final layer", "The training procedure is as follows: once we have a pre-", "(the MLP head) of the model in all our experiments below.", "trained model on the source domain, we would like to learn", "a binary weight mask M that will replace the final W of", "5.1. Upper and Lower Bounds", "the model with W* M where * represents an element-", "We compare each masking method relative to finetuning", "wise multiplication operation. Our objective is to decrease", "all weights of the MLP head on Ds (similar to the mask-", "cross-entropy loss while masking out as many weights as", "ing methods), and then also to finetune all weights of the", "possible. We use a penalty term similar to the one we saw", "MLP head on DT. We denote this as unmasked finetuning.", "in the previous sectionto achievethis.Wefind thatthis", "We expect unmasked finetuning to show the largest drop in", "penalty term is crucial in recovering a fairly sparse mask at", "performance on S and the biggest gain on T compared to", "the end of training. During training, for stability, we sample", "all masking methods, demonstrating the problem of \"for-", "multiple masks per batch as prescribed by Csordas et al. [4]", "getting\" by giving us approximate lower and upper bounds,", "4.4. Using the trained masks for fine-tuning", "respectively.Thus,rather thanplottingthe absolute accu-", "racy of each masking method and unmasked finetuning, we", "Once we have trained our masks on the source domain", "compare the difference in accuracy between each masking", "S, we can fine-tune our model on the new target domain T.", "method and unmaskedfinetuningon:(i)the sourcedomain", "while not losing performance on the source domain. For all", "S, denoted as source gain, to indicate the increase in perfor-", "parameters , such that b, = 1 (i.e. 0, E Ospecialize), we let", "manceachievedbythemaskingmethod onthesourcedo-", "O, = oS*, where oS* denotes the fully trained weights on", "main over unmasked finetuning (ii) the target domain T, de-", "the source domain. For all parameters , such that b, = O", "noted as target gain, reasoned similarly. These two metrics", "(i.e. , E Sreuse), we have three options:", "allow us to compare the benefits of each masking method", "(i) 0, = 0*, where we start updating 0, from its final", "relative to each other, and across domains.", "trained value on S", "5.2. How do the different masking strategies com-", "(i) os, where os denotes the original initialisation of the", "pare against each other?", "weights for the model before it was trained on the", "We plot the source gain and target gain for each mask-", "sourcedomainS.Thismotivation isinspiredfromthe", "ing method in figure 2. We find that learned binary masks", "Lottery Ticket Hypothesis [7].", "are much better than other masking methods on the source", "(ii) orandom, where we consider a fully random re-", "gain metric, thus “remembering\" more from the source do-", "initialisation of Oreuse.", "main even after being finetuned on the target domain. How-", "ever, this comes at the cost of decreased performance on", "We study the effect of these initialization strategies in sec-", "thetarget domain.Naivemasking showsno discernibleim-", "tion 5.3. Our default initialization strategy is (i).", "provement or regression on source gain, but is consistently", "5. Experiments", "lower than unmasked tuning on the target domain. Finally,", "editor-based masking showsimprovementsonthetargetdo-", "In this section we explore the effect of varying masking", "main but at the cost of \"forgetting\" more on the source do-", "strategies with respect to (i) performance on the target do-", "main. Across all masking methods, there seems to be a non-", "main and (i) performance on the source domain after fine-", "linear tradeoff in improving source domain performance at", "tuning on the target domain.", "the cost of decreasing performance on the target domain.", "Dataset We conduct our experiments on the PACS", "Interestingly, directly learning binary masks does more to", "dataset [12]. PACS is an image dataset for domain gener-", "combat forgetting than editor-based masks, while the latter", "alization. It consists of four domains, namely Photo (1,670", "un-freezes more of the right weights to improve target gain." ]
{ "arxiv_id": "2308.13957", "language": "en", "page_idx": 2 }
2308.13957-en-3
2308.13957-en-3.jpg
<FigureHere> Figure 2. Performance of different masking strategies on the source and target domains after fine-tuning on the target domain. The x-$\alpha xis$ represents the gain in accuracy in source performance when compared to a model that is finetuned directly on the target domain and the y-axis the gain in accuracy on target domain performance under the same setting. Ideally we would like large positive values on both axes. The shapes indicate the different source domains as shown in the legend and the colors indicate the different masking strategies. The shading represents the standard deviation on each axis and the center is the mean across 3 seeds. For binary masking, the variance in target gain is larger than for source gain, which still demonstrates its increased capacity to avoid “forgetting”. <table> <tbody> <tr> <th>Domain</th> <th>$Ph$</th> <th rowspan="1">Photo</th> <th colspan="2">Art</th> <th colspan="2">Cartoon</th> <th colspan="2">Sketch</th> </tr> <tr> <th>Method</th> <th>SGain</th> <th>$\overline{\mathcal{T}\text{ Gain }}$</th> <th>SGain</th> <th>$\mathcal{T}($ Gain </th> <th>SGain</th> <th>$\overline{\mathcal{T}\text{Gain}}$</th> <th>SGain</th> <th>$T$ Gain</th> </tr> <tr> <td>$\overline{S\text{ Start}}$</td> <td>0.009</td> <td>-0.028</td> <td>0.041</td> <td>-0.020</td> <td>0.029</td> <td>-0.019</td> <td>0.088</td> <td>-0.086</td> </tr> <tr> <td>$SI$ End</td> <td>0.009</td> <td>-0.029</td> <td>0.050</td> <td>-0.054</td> <td>0.026</td> <td>-0.036</td> <td>0.057</td> <td>-0.050</td> </tr> <tr> <td>Random</td> <td>0.005</td> <td>-0.028</td> <td>0.051</td> <td>-0.056</td> <td>0.026</td> <td>-0.036</td> <td>0.054</td> <td>-0.048</td> </tr> </tbody> </table> Table 1. Ablation study to determine best method of initialisation for $\theta_\mathrm{reuse}.$ Refer to section 5.1 for a description of $S$ Gain and $\mathcal{T}$ Gain. ## 5.3. How does weight initialization affect the targetdomain performance of binary masking? getting problem on transfer learning settings. We showed that the binary masking strategy is effective at alleviating forgetting while the real-valued masking strategies are better at target domain performance. We also study the effect of different weight initializations in the fine-tuning process. We compare the three different weight initialization strategies for the binary masking method as described in section 4.4. The results are shown in table 5. The different initialization methods perform similarly but we notice that using initial weights from $S$ as described in method (ii) in section 4.4 is almost consistently better and this is in line with the results from Frankle and Carbin [7]. For future work, we would like to delve into the reason behind the differences in source and target gain performance across the masking methods. Additionally, we would explore more complex masking strategies that are founded in Information Theory and linear algebra ideas such as lowrank approximations of weights. We also hope to investigate continual learning and multi-task settings where there are more than two domains to generalize to. ## 6. Conclusion and Future Work In this work, we compared the efficacy of 3 different masking strategies and their effect on alleviating the for-
[ [ "0.357", "0.1237", "0.626", "0.1237", "0.626", "0.1338", "0.357", "0.1338" ], [ "0.4983", "0.1477", "0.5034", "0.1477", "0.5034", "0.154", "0.4983", "0.154" ], [ "0.2303", "0.1654", "0.2573", "0.1654", "0.2573", "0.178", "0.2303", "0.178" ], [ "0.2279", "0.2052", "0.2532", "0.2052", "0.2532", "0.2172", "0.2279", "0.2172" ], [ "0.2296", "0.2443", "0.2532", "0.2443", "0.2532", "0.2556", "0.2296", "0.2556" ], [ "0.2157", "0.2615", "0.2255", "0.2615", "0.2239", "0.2842", "0.2141", "0.2842" ], [ "0.2214", "0.286", "0.2484", "0.2822", "0.2524", "0.2935", "0.2255", "0.2986" ], [ "0.2296", "0.3225", "0.2532", "0.3225", "0.2532", "0.334", "0.2296", "0.334" ], [ "0.2852", "0.3499", "0.3464", "0.3499", "0.3464", "0.3599", "0.2852", "0.3599" ], [ "0.2296", "0.3623", "0.2532", "0.3623", "0.2532", "0.3738", "0.2296", "0.3738" ], [ "0.2695", "0.363", "0.2769", "0.363", "0.2769", "0.3687", "0.2695", "0.3687" ], [ "0.2852", "0.3599", "0.3472", "0.3599", "0.3472", "0.3706", "0.2852", "0.3706" ], [ "0.2695", "0.3718", "0.2754", "0.3718", "0.2754", "0.3774", "0.2695", "0.3774" ], [ "0.2834", "0.3687", "0.3472", "0.3706", "0.3472", "0.3818", "0.2834", "0.3801" ], [ "0.267", "0.3806", "0.2778", "0.3806", "0.2778", "0.3901", "0.267", "0.3901" ], [ "0.2852", "0.3801", "0.312", "0.3801", "0.312", "0.3914", "0.2852", "0.3914" ], [ "0.2656", "0.3901", "0.2778", "0.3901", "0.2778", "0.3997", "0.2656", "0.3997" ], [ "0.2852", "0.3901", "0.3186", "0.3901", "0.3186", "0.4016", "0.2852", "0.4016" ], [ "0.2695", "0.401", "0.2778", "0.401", "0.2778", "0.4104", "0.2695", "0.4104" ], [ "0.2852", "0.3984", "0.3145", "0.3984", "0.3145", "0.411", "0.2852", "0.411" ], [ "0.2876", "0.4104", "0.2998", "0.4104", "0.2998", "0.4185", "0.2876", "0.4185" ], [ "0.2296", "0.4016", "0.2524", "0.4016", "0.2524", "0.4136", "0.2296", "0.4136" ], [ "0.2793", "0.4268", "0.2957", "0.4268", "0.2957", "0.4363", "0.2793", "0.4363" ], [ "0.3816", "0.4268", "0.398", "0.4268", "0.398", "0.4363", "0.3816", "0.4363" ], [ "0.4836", "0.4268", "0.4983", "0.4268", "0.4983", "0.435", "0.4836", "0.435" ], [ "0.5864", "0.4268", "0.601", "0.4268", "0.601", "0.4363", "0.5864", "0.4363" ], [ "0.689", "0.4268", "0.705", "0.4268", "0.705", "0.4363", "0.689", "0.4363" ], [ "0.4656", "0.435", "0.517", "0.435", "0.517", "0.4458", "0.4656", "0.4458" ], [ "0.0801", "0.457", "0.892", "0.457", "0.892", "0.4702", "0.0801", "0.4702" ], [ "0.0809", "0.473", "0.8906", "0.473", "0.8906", "0.483", "0.0809", "0.483" ], [ "0.0784", "0.4849", "0.892", "0.4849", "0.892", "0.4988", "0.0784", "0.4988" ], [ "0.0801", "0.4988", "0.892", "0.4988", "0.892", "0.512", "0.0801", "0.512" ], [ "0.0809", "0.5146", "0.8906", "0.5146", "0.8906", "0.5244", "0.0809", "0.5244" ], [ "0.0784", "0.5264", "0.6846", "0.5264", "0.6846", "0.5405", "0.0784", "0.5405" ], [ "0.1805", "0.553", "0.246", "0.5547", "0.246", "0.5693", "0.1805", "0.5674" ], [ "0.298", "0.5537", "0.3423", "0.5537", "0.3423", "0.5684", "0.298", "0.5684" ], [ "0.5596", "0.5537", "0.6177", "0.5537", "0.6177", "0.5684", "0.5596", "0.5684" ], [ "0.6978", "0.5537", "0.7485", "0.5537", "0.7485", "0.5684", "0.6978", "0.5684" ], [ "0.2573", "0.5674", "0.3137", "0.5693", "0.312", "0.584", "0.2566", "0.582" ], [ "0.4412", "0.5547", "0.468", "0.5547", "0.468", "0.5674", "0.4412", "0.5674" ], [ "0.3228", "0.5674", "0.3816", "0.5693", "0.38", "0.584", "0.3218", "0.582" ], [ "0.392", "0.5674", "0.4468", "0.5693", "0.4453", "0.584", "0.3906", "0.582" ], [ "0.4558", "0.5674", "0.5156", "0.5693", "0.5146", "0.584", "0.455", "0.582" ], [ "0.5933", "0.5674", "0.6504", "0.5693", "0.649", "0.584", "0.5923", "0.582" ], [ "0.728", "0.5674", "0.786", "0.5693", "0.785", "0.584", "0.726", "0.582" ], [ "0.528", "0.5693", "0.581", "0.5693", "0.581", "0.584", "0.528", "0.584" ], [ "0.1854", "0.5693", "0.2427", "0.5693", "0.2427", "0.584", "0.1854", "0.584" ], [ "0.661", "0.5693", "0.7173", "0.5693", "0.7173", "0.584", "0.661", "0.584" ], [ "0.1871", "0.584", "0.2418", "0.584", "0.2418", "0.5986", "0.1871", "0.5986" ], [ "0.2615", "0.584", "0.3064", "0.584", "0.3064", "0.5986", "0.2615", "0.5986" ], [ "0.3284", "0.584", "0.3782", "0.584", "0.3782", "0.5986", "0.3284", "0.5986" ], [ "0.3962", "0.584", "0.4395", "0.584", "0.4395", "0.5986", "0.3962", "0.5986" ], [ "0.464", "0.584", "0.511", "0.584", "0.511", "0.5986", "0.464", "0.5986" ], [ "0.5312", "0.584", "0.5767", "0.584", "0.5767", "0.5986", "0.5312", "0.5986" ], [ "0.597", "0.584", "0.6465", "0.584", "0.6465", "0.5986", "0.597", "0.5986" ], [ "0.665", "0.584", "0.7114", "0.584", "0.7114", "0.5986", "0.665", "0.5986" ], [ "0.734", "0.584", "0.7817", "0.584", "0.7817", "0.5986", "0.734", "0.5986" ], [ "0.33", "0.5996", "0.3774", "0.5996", "0.3774", "0.6143", "0.33", "0.6143" ], [ "0.3962", "0.5996", "0.4429", "0.5996", "0.4429", "0.6143", "0.3962", "0.6143" ], [ "0.4631", "0.5996", "0.511", "0.5996", "0.511", "0.6143", "0.4631", "0.6143" ], [ "0.5317", "0.5996", "0.5767", "0.5996", "0.5767", "0.6157", "0.5317", "0.6157" ], [ "0.597", "0.5977", "0.6465", "0.5996", "0.6445", "0.6157", "0.596", "0.613" ], [ "0.734", "0.5996", "0.7817", "0.5996", "0.7817", "0.6143", "0.734", "0.6143" ], [ "0.2615", "0.601", "0.3057", "0.5986", "0.3064", "0.613", "0.2632", "0.6157" ], [ "0.1896", "0.601", "0.2385", "0.601", "0.2385", "0.6157", "0.1896", "0.6157" ], [ "0.6665", "0.601", "0.709", "0.601", "0.709", "0.6157", "0.6665", "0.6157" ], [ "0.4656", "0.6157", "0.511", "0.6157", "0.511", "0.63", "0.4656", "0.63" ], [ "0.5986", "0.613", "0.6445", "0.6157", "0.6436", "0.631", "0.597", "0.629" ], [ "0.6685", "0.6157", "0.71", "0.6157", "0.71", "0.63", "0.6685", "0.63" ], [ "0.398", "0.616", "0.4395", "0.616", "0.4395", "0.631", "0.398", "0.631" ], [ "0.1805", "0.616", "0.2443", "0.616", "0.2443", "0.631", "0.1805", "0.631" ], [ "0.2646", "0.617", "0.304", "0.617", "0.304", "0.629", "0.2646", "0.629" ], [ "0.327", "0.617", "0.3733", "0.617", "0.3733", "0.629", "0.327", "0.629" ], [ "0.5317", "0.616", "0.5767", "0.616", "0.5767", "0.631", "0.5317", "0.631" ], [ "0.734", "0.617", "0.7793", "0.617", "0.7793", "0.629", "0.734", "0.629" ], [ "0.0801", "0.637", "0.8774", "0.637", "0.8774", "0.651", "0.0801", "0.651" ], [ "0.0784", "0.674", "0.468", "0.675", "0.468", "0.6924", "0.0784", "0.6914" ], [ "0.5034", "0.678", "0.892", "0.678", "0.892", "0.6914", "0.5034", "0.6914" ], [ "0.11926", "0.6924", "0.4346", "0.6924", "0.4346", "0.7056", "0.11926", "0.7056" ], [ "0.5024", "0.6924", "0.892", "0.6924", "0.892", "0.707", "0.5024", "0.707" ], [ "0.5024", "0.7085", "0.8906", "0.7085", "0.8906", "0.7217", "0.5024", "0.7217" ], [ "0.0989", "0.7153", "0.468", "0.7163", "0.468", "0.731", "0.0989", "0.73" ], [ "0.501", "0.7227", "0.892", "0.7217", "0.892", "0.7363", "0.501", "0.7373" ], [ "0.0809", "0.7344", "0.468", "0.7344", "0.468", "0.744", "0.0809", "0.744" ], [ "0.5024", "0.738", "0.892", "0.738", "0.892", "0.752", "0.5024", "0.752" ], [ "0.0801", "0.7476", "0.4714", "0.7476", "0.4714", "0.761", "0.0801", "0.761" ], [ "0.0801", "0.763", "0.4714", "0.763", "0.4714", "0.7764", "0.0801", "0.7764" ], [ "0.0801", "0.778", "0.468", "0.778", "0.468", "0.7915", "0.0801", "0.7915" ], [ "0.5195", "0.78", "0.8906", "0.781", "0.8906", "0.7954", "0.5195", "0.7944" ], [ "0.0801", "0.7935", "0.4697", "0.7935", "0.4697", "0.8066", "0.0801", "0.8066" ], [ "0.5024", "0.797", "0.892", "0.797", "0.892", "0.81", "0.5024", "0.81" ], [ "0.0801", "0.808", "0.3743", "0.808", "0.3743", "0.8213", "0.0801", "0.8213" ], [ "0.5024", "0.811", "0.892", "0.811", "0.892", "0.8247", "0.5024", "0.8247" ], [ "0.5024", "0.827", "0.892", "0.827", "0.892", "0.8403", "0.5024", "0.8403" ], [ "0.0809", "0.8447", "0.3464", "0.8447", "0.3464", "0.858", "0.0809", "0.858" ], [ "0.5024", "0.8413", "0.892", "0.8413", "0.892", "0.855", "0.5024", "0.855" ], [ "0.5024", "0.857", "0.8906", "0.857", "0.8906", "0.8706", "0.5024", "0.8706" ], [ "0.0989", "0.872", "0.4697", "0.872", "0.4697", "0.886", "0.0989", "0.886" ], [ "0.5024", "0.872", "0.8936", "0.872", "0.8936", "0.886", "0.5024", "0.886" ], [ "0.0801", "0.887", "0.468", "0.887", "0.468", "0.901", "0.0801", "0.901" ], [ "0.501", "0.887", "0.7915", "0.886", "0.7915", "0.8994", "0.501", "0.901" ] ]
[ "Source Gain and Target Gain for different masking methods", "+", "0.00", "0.02", "0.04", "e", "0.06", "0.08", "NaiveMasking", "0.10", "-", "EditorNetworks", "E", "Binary Masking", ".", "Photo", "A", "Cartoon", "4", "Sketch", "Art", "0.12", "0.2", "0.1", "0.0", "0.1", "0.2", "Source Gain", "Figure 2. Performance of different masking strategies on the source and target domains after fine-tuning on the target domain. The x-axis", "represents thegain in accuracy in source performance whencompared to a model that isfinetuned directly on thetargetdomain and the", "y-axis the gain in accuracy on target domain performance under the same setting. Ideally we would like large positive values on both", "axes. The shapes indicate the different source domains as shown in the legend and the colors indicate the different masking strategies. The", "shading represents the standard deviation oneach axis and the center is the mean across 3 seeds.For binary masking,the variance in target", "gain is larger than for source gain, which still demonstrates its increased capacity to avoid \"forgetting\"", "Domain", "Photo", "Cartoon", "Sketch", "SGain", "Art", "TGain", "SGain", "TGain", "T Gain", "T Gain", "S Gain", "Method", "SGain", "S Start", "0.009", "-0.028", "0.041", "-0.020", "0.029", "-0.019", "0.088", "-0.086", "-0.029", "0.050", "-0.054", "0.026", "-0.036", "-0.050", "0.009", "SEnd", "0.057", "-0.056", "0.036", "0.054", "0.051", "Random", "0.005", "-0.028", "0.026", "-0.048", "Table 1. Ablation study to determine best method of initialisation for Oreuse. Refer to section 5.1 for a description of S Gain and T Gain.", "5.3. How does weight initialization affect the target-", "getting problem on transfer learning settings.We showed", "domain performance of binary masking?", "that the binary masking strategy is effective at alleviating", "forgetting while the real-valued masking strategies are bet-", "We compare the three different weight initialization", "ter at target domain performance. We also study the effect", "strategiesforthebinarymaskingmethodasdescribedin", "of different weight initializations in the fine-tuning process.", "section 4.4. The results are shown in table 5. The different", "initialization methods perform similarly but we notice that", "using initial weights from S as described in method (ii) in", "For future work, we would like to delve into the rea-", "section 4.4 is almost consistently better and this is in line", "son behind the differences in source and target gain perfor-", "with the results from Frankle and Carbin [7].", "mance across the masking methods. Additionally, we would", "explore more complex masking strategies that arefounded", "6. Conclusion and Future Work", "in Information Theory and linear algebra ideas such as low-", "rank approximations of weights. We also hope to investi-", "In this work, we compared the efficacy of 3 different", "gate continual learning and multi-task settings where there", "masking strategies and their effect on alleviating the for-", "are more than two domains to generalize to." ]
{ "arxiv_id": "2308.13957", "language": "en", "page_idx": 3 }
2402.08207-en-0
2402.08207-en-0.jpg
## Translating Images to Road Network: A Non-Autoregressive Sequence-to-Sequence Approach Hang Xu Huawei Noah's Ark Lab Jiachen Lu$^*$ Fudan University Renyuan Peng$^{\star}$ Xinyue Cai Fudan University Huawei Noah's Ark Lab Hongyang Li Feng Wen Huawei Noah's Ark Lab Wei Zhang Huawei Noah's Ark Lab Li Zhang$^{\dagger}$ Fudan University Shanghai AI Lab ## $\mathbf{Abstract}$ The extraction of road network is essential for the generation of high-definition maps since it enables the precise localization of road landmarks and their interconnections. However, generating road network poses a significant challenge due to the conflicting underlying combination of Euclidean (e.g., road landmarks location) and non-Euclidean (e.g., road topological connectivity) structures. Existing methods struggle to merge the two types of data domains effectively, but few of them address it properly. Instead, our work establishes a unifred representation of both types of data domain by projecting both Euclidean and non-Euclidean data into an integer series called RoadNet Sequence. Further than modeling an autoregressive sequence-to-sequence Transformer model to un- $\begin{array}{lll}{\mathrm{N}}&{\mathrm{derstand~RoadNet~Sequence,~we~decouple~the~dependency}}\\{\mathrm{T}}&{\mathrm{of~RoadNet~Sequence~into~a~mixture~of~auto-regressive~and}}\\{\mathrm{T}}&{\mathrm{of~RoadNet~Sequence~into~a~mixture~of~auto-regressive~and}}\end{array}$ non-autoregressive dependency. Building on this, our proposed non-autoregressive sequence-to-sequence approach leverages non-autoregressive dependencies while fxing the gap towards auto-regressive dependencies, resulting in success on both efficiency and accuracy. Extensive experiments on nuScenes dataset demonstrate the superiority of RoadNet Sequence representation and the non-autoregressive approach compared to existing state-of-the-art alternatives. The code is open-source on https://github.com/ $fudan-zvg/RoadNetworkTRansformer.$ ### $1. \textbf{Introduction}$ With the rising prevalence of self-driving cars, a deep knowledge of the road structure is indispensable for au- $^*$Equal contribution Li Zhang (lizhangfd@fudan.edu.cn) is the corresponding author with School of Data Science, Fudan University. <FigureHere> Figure 1. High-definition Road Network Topology contains Eu- clidean data: locations of landmarks and shapes of curves and non-Euclidean data: road topology. A special sequence, RoadNet Sequence, is proposed as a unified representation of both domains. Then we use a Non-Autoregressive sequence-to-sequence approach to extract RoadNet Sequence from multi-camera input efficiently and accurately. tonomous vehicle navigation [15,22,39,13]. Road network [12, 34, 37] extraction is required to estimate highly accurate road landmark locations, centerline curve shapes and road topological connection for self-driving vehicles. However, the ability to understand road network in realtime using onboard sensors is highly challenging. In the literature, road network is differentiated from methods that focus solely on grid-like Euclidean data[6,5] such as lane detection [55, 32, 56] or BEV semantic understanding[35,45,30,33]. Instead, road network emphasizes a more comprehensive understanding of both Euclidean domain and non-Euclidean domain. As shown in Figure l, accurate road landmark locations such as crossroads, stoplines, fork-roads, and the shape of centerline curves pertain to the Euclidean domain, whereas road topology belongs to
[ [ "0.2957", "0.1332", "0.675", "0.1332", "0.675", "0.1509", "0.2957", "0.1509" ], [ "0.21", "0.1559", "0.761", "0.1559", "0.761", "0.1736", "0.21", "0.1736" ], [ "0.1217", "0.2052", "0.2157", "0.2052", "0.2157", "0.2197", "0.1217", "0.2197" ], [ "0.281", "0.2052", "0.4028", "0.2052", "0.4028", "0.2197", "0.281", "0.2197" ], [ "0.5", "0.2052", "0.5923", "0.2052", "0.5923", "0.2197", "0.5", "0.2197" ], [ "0.74", "0.2052", "0.8145", "0.2052", "0.8145", "0.2197", "0.74", "0.2197" ], [ "0.4495", "0.2229", "0.642", "0.2229", "0.642", "0.2374", "0.4495", "0.2374" ], [ "0.6787", "0.2229", "0.8735", "0.2229", "0.8735", "0.2374", "0.6787", "0.2374" ], [ "0.273", "0.2235", "0.4084", "0.2235", "0.4084", "0.238", "0.273", "0.238" ], [ "0.0972", "0.2235", "0.2336", "0.2235", "0.2336", "0.238", "0.0972", "0.238" ], [ "0.0237", "0.2632", "0.058", "0.2632", "0.058", "0.327", "0.0237", "0.327" ], [ "0.1111", "0.2632", "0.2181", "0.2632", "0.2181", "0.281", "0.1111", "0.281" ], [ "0.326", "0.2644", "0.411", "0.2644", "0.411", "0.2822", "0.326", "0.2822" ], [ "0.558", "0.2632", "0.6445", "0.2664", "0.6436", "0.2822", "0.556", "0.279" ], [ "0.7646", "0.2644", "0.847", "0.2644", "0.847", "0.2822", "0.7646", "0.2822" ], [ "0.0972", "0.2822", "0.2361", "0.2822", "0.2361", "0.2998", "0.0972", "0.2998" ], [ "0.273", "0.2827", "0.4656", "0.2827", "0.4656", "0.2974", "0.273", "0.2974" ], [ "0.5034", "0.2842", "0.697", "0.2842", "0.697", "0.2974", "0.5034", "0.2974" ], [ "0.7344", "0.2842", "0.8716", "0.2842", "0.8716", "0.2986", "0.7344", "0.2986" ], [ "0.02533", "0.315", "0.05637", "0.315", "0.05637", "0.3662", "0.02533", "0.3662" ], [ "0.2378", "0.3528", "0.3137", "0.3528", "0.3137", "0.3674", "0.2378", "0.3674" ], [ "0.03186", "0.3599", "0.04822", "0.3599", "0.04822", "0.3674", "0.03186", "0.3674" ], [ "0.54", "0.3591", "0.5923", "0.3591", "0.5923", "0.3694", "0.54", "0.3694" ], [ "0.02124", "0.3655", "0.05148", "0.3599", "0.05963", "0.387", "0.02942", "0.3926" ], [ "0.04166", "0.3818", "0.0474", "0.3818", "0.0474", "0.387", "0.04166", "0.387" ], [ "0.10046", "0.3838", "0.4656", "0.3838", "0.4656", "0.3977", "0.10046", "0.3977" ], [ "0.8203", "0.385", "0.841", "0.3806", "0.8433", "0.387", "0.8228", "0.3914" ], [ "0.846", "0.385", "0.863", "0.385", "0.863", "0.3882", "0.846", "0.3882" ], [ "0.863", "0.385", "0.8774", "0.385", "0.8774", "0.3894", "0.863", "0.3894" ], [ "0.0801", "0.401", "0.468", "0.401", "0.468", "0.414", "0.0801", "0.414" ], [ "0.7695", "0.4016", "0.871", "0.4016", "0.871", "0.4204", "0.7695", "0.4204" ], [ "0.794", "0.411", "0.8433", "0.414", "0.8423", "0.4255", "0.7935", "0.4224" ], [ "0.0801", "0.4167", "0.4673", "0.4167", "0.4673", "0.43", "0.0801", "0.43" ], [ "0.5483", "0.4236", "0.6045", "0.4236", "0.6045", "0.428", "0.5483", "0.428" ], [ "0.6045", "0.4236", "0.63", "0.4236", "0.63", "0.428", "0.6045", "0.428" ], [ "0.0801", "0.4312", "0.468", "0.4312", "0.468", "0.4443", "0.0801", "0.4443" ], [ "0.04166", "0.4363", "0.04984", "0.4363", "0.04984", "0.4414", "0.04166", "0.4414" ], [ "0.02533", "0.406", "0.05554", "0.406", "0.05554", "0.4495", "0.02533", "0.4495" ], [ "0.834", "0.4363", "0.8677", "0.4363", "0.8677", "0.4526", "0.834", "0.4526" ], [ "0.7793", "0.443", "0.808", "0.443", "0.808", "0.452", "0.7793", "0.452" ], [ "0.819", "0.4458", "0.831", "0.4458", "0.831", "0.4495", "0.819", "0.4495" ], [ "0.0801", "0.4463", "0.468", "0.4463", "0.468", "0.4602", "0.0801", "0.4602" ], [ "0.03186", "0.4495", "0.058", "0.4495", "0.058", "0.4797", "0.03186", "0.4797" ], [ "0.0801", "0.461", "0.4697", "0.461", "0.4697", "0.4749", "0.0801", "0.4749" ], [ "0.7983", "0.4653", "0.8145", "0.4653", "0.8145", "0.473", "0.7983", "0.473" ], [ "0.0801", "0.476", "0.468", "0.476", "0.468", "0.4905", "0.0801", "0.4905" ], [ "0.0801", "0.4912", "0.4697", "0.4912", "0.4697", "0.505", "0.0801", "0.505" ], [ "0.0801", "0.506", "0.4697", "0.506", "0.4697", "0.5195", "0.0801", "0.5195" ], [ "0.5186", "0.502", "0.636", "0.502", "0.636", "0.509", "0.5186", "0.509" ], [ "0.03513", "0.5083", "0.05148", "0.5083", "0.05148", "0.5264", "0.03513", "0.5264" ], [ "0.0784", "0.521", "0.468", "0.521", "0.468", "0.535", "0.0784", "0.535" ], [ "0.625", "0.521", "0.728", "0.521", "0.728", "0.531", "0.625", "0.531" ], [ "0.5195", "0.5215", "0.603", "0.5215", "0.603", "0.5327", "0.5195", "0.5327" ], [ "0.03105", "0.5215", "0.04575", "0.5215", "0.04575", "0.5474", "0.03105", "0.5474" ], [ "0.0801", "0.536", "0.4697", "0.536", "0.4697", "0.5503", "0.0801", "0.5503" ], [ "0.02942", "0.5425", "0.05392", "0.5425", "0.05392", "0.5625", "0.02942", "0.5625" ], [ "0.5024", "0.539", "0.8906", "0.539", "0.8906", "0.553", "0.5024", "0.553" ], [ "0.02777", "0.5547", "0.05554", "0.5547", "0.05554", "0.587", "0.02777", "0.587" ], [ "0.0801", "0.552", "0.468", "0.552", "0.468", "0.565", "0.0801", "0.565" ], [ "0.5034", "0.5547", "0.8906", "0.5547", "0.8906", "0.565", "0.5034", "0.565" ], [ "0.0809", "0.5684", "0.4656", "0.5684", "0.4656", "0.579", "0.0809", "0.579" ], [ "0.5024", "0.5674", "0.8906", "0.5674", "0.8906", "0.5806", "0.5024", "0.5806" ], [ "0.0801", "0.582", "0.468", "0.582", "0.468", "0.595", "0.0801", "0.595" ], [ "0.501", "0.579", "0.892", "0.58", "0.892", "0.5947", "0.501", "0.5933" ], [ "0.02942", "0.5903", "0.05228", "0.5923", "0.04984", "0.607", "0.02696", "0.605" ], [ "0.0768", "0.595", "0.4697", "0.5967", "0.4697", "0.6113", "0.0768", "0.61" ], [ "0.5034", "0.5947", "0.892", "0.5947", "0.892", "0.608", "0.5034", "0.608" ], [ "0.0335", "0.605", "0.03757", "0.605", "0.03757", "0.616", "0.0335", "0.616" ], [ "0.0801", "0.6123", "0.4697", "0.6123", "0.4697", "0.6255", "0.0801", "0.6255" ], [ "0.501", "0.608", "0.892", "0.607", "0.892", "0.622", "0.501", "0.6226" ], [ "0.03105", "0.6157", "0.05148", "0.6157", "0.05148", "0.631", "0.03105", "0.631" ], [ "0.0801", "0.627", "0.4673", "0.627", "0.4673", "0.64", "0.0801", "0.64" ], [ "0.5024", "0.6226", "0.6543", "0.6226", "0.6543", "0.636", "0.5024", "0.636" ], [ "0.02942", "0.63", "0.05228", "0.63", "0.05228", "0.643", "0.02942", "0.643" ], [ "0.0335", "0.6396", "0.05392", "0.6396", "0.05392", "0.6724", "0.0335", "0.6724" ], [ "0.0801", "0.6426", "0.468", "0.6426", "0.468", "0.656", "0.0801", "0.656" ], [ "0.0237", "0.661", "0.0392", "0.6577", "0.0474", "0.6787", "0.03186", "0.6816" ], [ "0.0801", "0.657", "0.468", "0.657", "0.468", "0.6704", "0.0801", "0.6704" ], [ "0.04004", "0.6685", "0.05148", "0.6685", "0.05148", "0.6787", "0.04004", "0.6787" ], [ "0.0801", "0.6724", "0.468", "0.6724", "0.468", "0.686", "0.0801", "0.686" ], [ "0.5024", "0.6704", "0.8906", "0.6704", "0.8906", "0.6846", "0.5024", "0.6846" ], [ "0.5034", "0.686", "0.8906", "0.686", "0.8906", "0.6997", "0.5034", "0.6997" ], [ "0.02533", "0.675", "0.05392", "0.674", "0.05637", "0.707", "0.02942", "0.7085" ], [ "0.0809", "0.6895", "0.4673", "0.6895", "0.4673", "0.6997", "0.0809", "0.6997" ], [ "0.0809", "0.7026", "0.4673", "0.7026", "0.4673", "0.7163", "0.0809", "0.7163" ], [ "0.5024", "0.702", "0.892", "0.702", "0.892", "0.7153", "0.5024", "0.7153" ], [ "0.0801", "0.7183", "0.468", "0.7183", "0.468", "0.732", "0.0801", "0.732" ], [ "0.501", "0.7153", "0.8896", "0.7153", "0.8896", "0.729", "0.501", "0.729" ], [ "0.0809", "0.733", "0.4673", "0.733", "0.4673", "0.747", "0.0809", "0.747" ], [ "0.5034", "0.733", "0.8896", "0.733", "0.8896", "0.7437", "0.5034", "0.7437" ], [ "0.0784", "0.747", "0.468", "0.7485", "0.468", "0.762", "0.0784", "0.7603" ], [ "0.5024", "0.747", "0.8267", "0.747", "0.8267", "0.761", "0.5024", "0.761" ], [ "0.0801", "0.763", "0.3987", "0.763", "0.3987", "0.7764", "0.0801", "0.7764" ], [ "0.5195", "0.7646", "0.892", "0.765", "0.892", "0.78", "0.5195", "0.779" ], [ "0.5024", "0.781", "0.8906", "0.781", "0.8906", "0.7944", "0.5024", "0.7944" ], [ "0.0809", "0.797", "0.2059", "0.797", "0.2059", "0.81", "0.0809", "0.81" ], [ "0.5024", "0.797", "0.8906", "0.797", "0.8906", "0.81", "0.5024", "0.81" ], [ "0.5024", "0.811", "0.892", "0.811", "0.892", "0.8247", "0.5024", "0.8247" ], [ "0.0989", "0.8213", "0.468", "0.8213", "0.468", "0.836", "0.0989", "0.836" ], [ "0.5024", "0.827", "0.8906", "0.827", "0.8906", "0.8403", "0.5024", "0.8403" ], [ "0.0784", "0.836", "0.468", "0.837", "0.468", "0.8516", "0.0784", "0.851" ], [ "0.5024", "0.8413", "0.8906", "0.8413", "0.8906", "0.855", "0.5024", "0.855" ], [ "0.5024", "0.857", "0.8906", "0.857", "0.8906", "0.8706", "0.5024", "0.8706" ], [ "0.0972", "0.863", "0.2059", "0.863", "0.2059", "0.877", "0.0972", "0.877" ], [ "0.0989", "0.8755", "0.4697", "0.8755", "0.4697", "0.8896", "0.0989", "0.8896" ], [ "0.5024", "0.872", "0.892", "0.872", "0.892", "0.8853", "0.5024", "0.8853" ], [ "0.0784", "0.886", "0.3057", "0.888", "0.3057", "0.9014", "0.0784", "0.8994" ], [ "0.501", "0.886", "0.892", "0.887", "0.892", "0.901", "0.501", "0.8994" ] ]
[ "Translating Images to Road Network:", "A Non-Autoregressive Sequence-to-Sequence Approach", "Jiachen Lu*", "Renyuan Peng*", "Xinyue Cai", "Hang Xu", "Huawei Noah's Ark Lab", "Huawei Noah's Ark Lab", "Fudan University", "Fudan University", "", "Hongyang Li", "Feng Wen", "Wei Zhang", "Li Zhangt", "Shanghai AI Lab", "Huawei Noah's Ark Lab", "Huawei Noah's Ark Lab", "Fudan University", "", "Abstract", "", "RoadNetwork", "3", "", "The extraction of road network is essential for the gen-", "ho", "Tmaed", "fnou", "eration of high-definition maps since it enables the pre-", "sNnAorgrestnee", "eneneratior", "cise localization of road landmarks and their interconnec-", "arkLocationfE", "clideo", "tions. However, generating road network poses a signif-", "中", "LAD", "瓷", "yy2", "", "icant challenge due to the conflicting underlying combi-", "SO", "nation of Euclidean (e.g., road landmarks location) and", "ove", "non-Euclidean (e.g., road topological connectivity) struc-", "tures.Existing methods struggle to merge the two types", "of data domains effectively, but few of them address it", "RoadTopology(Non-Euclidean", "V", "properly. Instead, our work establishes a unified repre-", "Non-Euclidean domain", "Euclidean domain", "LO", "sentation of both types of data domain by projecting both", "2", "Figure 1. High-definition Road Network Topology contains Eu-", "780", "Euclidean and non-Euclidean data into an integer series", "clidean data:locations of landmarks and shapes of curves and", "calledRoadNet Seguence.Furtherthanmodeling an auto", "non-Euclidean data: road topology. A special sequence, Road-", "regressive sequence-to-sequence Transformer model to un-", "Net Sequence, is proposed as a unified representation of both do-", "2", "derstand RoadNet Sequence, we decouple the dependency", "mains. Then we use a Non-Autoregressive sequence-to-sequence", "", "of RoadNet Sequence into a mixture of auto-regressive and", "approach to extract RoadNet Sequence from multi-camera input", "4", "non-autoregressive dependency. Building on this, our pro-", "efficiently and accurately.", "2", ".AI", "posed non-autoregressive sequence-to-sequence approach", "", "leverages non-autoregressive dependencies while fixing the", "", "gap towards auto-regressive dependencies, resulting in suc-", "tonomous vehicle navigation [15, 22, 39, 13]. Road net-", "work [12, 34, 37] extraction is required to estimate highly", "Xe", "cessonbothefficiencyandaccuracy.Extensiveexperiments", "on nuScenes dataset demonstrate the superiority of Road-", "accurate road landmark locations, centerline curve shapes", "Net Sequence representation and the non-autoregressive", "and road topological connection for self-driving vehicles.", "approach compared to existing state-of-the-art alternatives.", "However,the ability to understand road network in real-", "The code is open-source on https://github.com/", "time using onboard sensors is highly challenging.", "fudan-zvg/RoadNetworkTRansformer.", "In the literature, road network is differentiated from", "methods that focus solely on grid-like Euclidean data [6, 5]", "1. Introduction", "such as lane detection [55, 32, 56] or BEV semantic under-", "standing [35, 45, 30, 33]. Instead, road network emphasizes", "With the rising prevalence of self-driving cars, a deep", "a more comprehensive understanding of both Euclidean do-", "knowledge of the road structure is indispensable for au-", "main and non-Euclidean domain. As shown in Figure 1,", "accurate road landmark locations such as crossroads, stop-", "\"Equal contribution", "‘Li Zhang (lizhangfd@fudan.edu.cn) is the corresponding author with", "lines, fork-roads, and the shape of centerline curves pertain", "School of Data Science, Fudan University.", "totheEuclideandomain,whereas roadtopologybelongsto" ]
{ "arxiv_id": "2402.08207", "language": "en", "page_idx": 0 }
2402.08207-en-1
2402.08207-en-1.jpg
the non-Euclidean domain. In mathematical terms [5,6], Euclidean data is defined in $\mathbb{R}^2.$ On the other hand, nonEuclidean data, such as graphs that indicate connectivity among nodes, will lose crucial information if projected to $\mathbb{R}^n$, such as edge curve information. Unfortunately, existing attempts [9,10] to extract road network using onboard sensors have not been able to achieve a harmonious integration between Euclidean and non-Euclidean data. STSU[9] divides the road network construction into two stages: center-lines detection and center-line connectivity reasoning—which ignores the cooperation between Euclidean and non-Euclidean domains. TPLR[10] uses a Transformer or Polygon-RNN[1] to combine topology reasoning with center-line localization, but the embedded conflicts between Euclidean data representations and connectivity representation undermine the model performance. In this work, we propose that the dilemma in existing works arises due to the absence of a unified representation of both Euclidean and non-Euclidean data. Instead, we introduce a Euclidean-nonEuclidean unified representation with merits of losslessness, efficiency and interaction. The unified representation, named as RoadNet Sequence, projects both Euclidean and non-Euclidean aspects of road network to integer series domain $\mathbb{Z}^n.$ The“losslessness" aspect is ensured by establishing a bijection from road network to RoadNet Sequence.“Efficiency”is achieved by limiting RoadNet Sequence length to the shortest $\mathcal{O}(|\mathcal{E}|)$ (where $\mathcal{E}$ is the set of all centerlines), through a specially designed topological sorting rule.“Interaction”reveals the interdependence between Euclidean and non-Euclidean information within a single sequence. Based on the auto-regressive dependency of topological sorting, we leverage the sequence-to-sequence generation power of Transformer [48,7,14] to understand RoadNet Sequence from onboard round-view cameras, called $R$oad$N$etwork$TR$ansformer$(RNTR).$ However, in practice, the auto-regressive dependency in sequence-to-sequence generation can significantly slow down the inference speed. Our observation is that the dependency of road network can be decoupled into a semiautoregressive format, that retains auto-regressive functionality within local contexts while simultaneously conducting multiple generations in parallel. This semi-autoregressive model is called Semi-Autoregressive RoadNetTransformer (SAR-RNTR). This approach not only accelerates the inference speed by 6 times, but it also significantly boosts the accuracy to a new level based on the better dependency modeling. Going beyond SAR-RNTR, we employ a masked training technique on SAR-RNTR to mimic the remaining auto-regressive dependency through iterative prediction [27]. This gives rise to our Non-Autoregressive RoadNetTransformer ( NAR- RNTR) model, which achieves real-time inference speed (47× faster) while maintaining the high performance. To evaluate road network extraction quality, apart from inheriting the former metrics[9] based on lane detection, we instead design a family of metrics directly based on definition of road network - Landmark Precision-Recall and Reachability-Precision-Recall- to evaluate (i) road landmarks localization accuracy, and (ii) path accuracy between any reachable landmarks. We make the following contributions: (i) we introduce RoadNet Sequence, a lossless, efficient and unified representation of both Euclidean and non-Euclidean information from road network. (ii) We propose a Transformer-based RoadNetTransformer which can decode RoadNet Sequence from multiple onboard cameras. (iii) By decoupling autoregressive dependency of RoadNet Sequence, our proposed Non-autoregressive RoadNetTransformer accelerate the inference speed to real-time while boost the accuracy with a significant step from the auto-regressive model. (iv) Extensive experiments on nuScenes[8] dataset validate the superiority of RoadNet Sequence representation and RoadNetTransformer over the alternative methods with a considerable margin. ## $2. \textbf{Related work}$ Vision-based ego-car (BEV) feature learning A rising tendency is conducting self-driving downstream tasks [42, 30,33,24,35,45,23,29,17,31] under ego-car coordinate frame. To learn ego-car feature learning from onboard cameras, [51,38] project image features to ego-car coordinate based on depth estimation. OFT [42], LSS [35] and FIERY [23] predict depth distribution to generate the intermediate 3D representations. [45,41,30,33] resort neural network like Transformer to learn ego-car feature without depth. In order to learn the topology of the road network under the ego-car coordinate frame, we use the straightforward method of applying LSS [35,24] to extract ego-car features from the multiple onboard cameras. Road network extraction Researchers have explored the utilization of DNNs to decode and recover maps from aerial images and GPS trajectories [43,53]. Moreover, STSU [9] first detect centerline from front-view image with Transformer and then predict the association between centerline with MLP layer, followed with a final merge to estimate road network. Based on STSU, TPLR [10] introduces minimal cycle to eliminate ambiguity in its connectivity representation. Existing methods spend great effort to deal with problem in non-Euclidean domain but ignore the cooperation between Euclidean and non-Euclidean. However, we create a Euclidean-nonEuclidean unified representation. Non-Autoregressvie generation Non-Autoregressive generation for Neural Machine Translation (NMT)[19] has been proposed as a solution to speed up the one-by-one
[ [ "0.0801", "0.09216", "0.468", "0.09216", "0.468", "0.1061", "0.0801", "0.1061" ], [ "0.501", "0.09216", "0.8906", "0.09216", "0.8906", "0.1061", "0.501", "0.1061" ], [ "0.0809", "0.1067", "0.4697", "0.1067", "0.4697", "0.1206", "0.0809", "0.1206" ], [ "0.5024", "0.108", "0.649", "0.108", "0.649", "0.1218", "0.5024", "0.1218" ], [ "0.0801", "0.1237", "0.468", "0.1237", "0.468", "0.137", "0.0801", "0.137" ], [ "0.5195", "0.1218", "0.892", "0.1225", "0.892", "0.137", "0.5195", "0.1364" ], [ "0.0801", "0.1383", "0.4697", "0.1383", "0.4697", "0.1515", "0.0801", "0.1515" ], [ "0.5024", "0.1383", "0.8906", "0.1383", "0.8906", "0.1515", "0.5024", "0.1515" ], [ "0.0784", "0.1515", "0.3228", "0.1528", "0.3228", "0.1674", "0.0784", "0.1666" ], [ "0.5024", "0.1528", "0.8906", "0.1528", "0.8906", "0.1666", "0.5024", "0.1666" ], [ "0.0989", "0.1704", "0.468", "0.1704", "0.468", "0.1843", "0.0989", "0.1843" ], [ "0.5024", "0.1686", "0.892", "0.1686", "0.892", "0.1818", "0.5024", "0.1818" ], [ "0.0784", "0.1849", "0.4697", "0.1849", "0.4697", "0.1989", "0.0784", "0.1989" ], [ "0.5024", "0.1831", "0.8906", "0.1831", "0.8906", "0.1963", "0.5024", "0.1963" ], [ "0.0801", "0.202", "0.468", "0.202", "0.468", "0.2122", "0.0801", "0.2122" ], [ "0.5024", "0.1989", "0.892", "0.1989", "0.892", "0.2122", "0.5024", "0.2122" ], [ "0.0801", "0.2172", "0.468", "0.2172", "0.468", "0.2279", "0.0801", "0.2279" ], [ "0.501", "0.2134", "0.6724", "0.2134", "0.6724", "0.2267", "0.501", "0.2267" ], [ "0.0801", "0.2311", "0.4697", "0.2311", "0.4697", "0.2443", "0.0801", "0.2443" ], [ "0.523", "0.2279", "0.892", "0.2279", "0.892", "0.2412", "0.523", "0.2412" ], [ "0.0801", "0.2474", "0.468", "0.2474", "0.468", "0.2583", "0.0801", "0.2583" ], [ "0.5024", "0.2437", "0.8906", "0.2437", "0.8906", "0.2568", "0.5024", "0.2568" ], [ "0.0801", "0.2615", "0.4697", "0.2615", "0.4697", "0.2747", "0.0801", "0.2747" ], [ "0.5034", "0.26", "0.8906", "0.26", "0.8906", "0.2708", "0.5034", "0.2708" ], [ "0.0784", "0.2747", "0.468", "0.276", "0.468", "0.2903", "0.0784", "0.289" ], [ "0.5024", "0.2734", "0.892", "0.2734", "0.892", "0.2874", "0.5024", "0.2874" ], [ "0.0801", "0.2922", "0.468", "0.2922", "0.468", "0.303", "0.0801", "0.303" ], [ "0.5024", "0.289", "0.892", "0.289", "0.892", "0.303", "0.5024", "0.303" ], [ "0.0801", "0.3062", "0.468", "0.3062", "0.468", "0.3193", "0.0801", "0.3193" ], [ "0.501", "0.303", "0.892", "0.3037", "0.892", "0.318", "0.501", "0.3176" ], [ "0.0784", "0.3208", "0.468", "0.3208", "0.468", "0.334", "0.0784", "0.334" ], [ "0.5024", "0.3193", "0.892", "0.3193", "0.892", "0.3333", "0.5024", "0.3333" ], [ "0.0801", "0.3384", "0.1708", "0.3384", "0.1708", "0.3499", "0.0801", "0.3499" ], [ "0.5024", "0.334", "0.8906", "0.334", "0.8906", "0.348", "0.5024", "0.348" ], [ "0.09644", "0.3516", "0.468", "0.3542", "0.468", "0.3687", "0.09644", "0.3662" ], [ "0.5024", "0.3499", "0.892", "0.3499", "0.892", "0.363", "0.5024", "0.363" ], [ "0.0801", "0.3694", "0.468", "0.3694", "0.468", "0.3833", "0.0801", "0.3833" ], [ "0.5034", "0.3662", "0.8896", "0.3662", "0.8896", "0.377", "0.5034", "0.377" ], [ "0.0801", "0.3838", "0.468", "0.3838", "0.468", "0.3977", "0.0801", "0.3977" ], [ "0.5034", "0.3806", "0.8906", "0.3806", "0.8906", "0.3914", "0.5034", "0.3914" ], [ "0.0801", "0.3997", "0.468", "0.3997", "0.468", "0.4136", "0.0801", "0.4136" ], [ "0.5024", "0.3945", "0.8906", "0.3945", "0.8906", "0.4077", "0.5024", "0.4077" ], [ "0.0801", "0.414", "0.468", "0.414", "0.468", "0.428", "0.0801", "0.428" ], [ "0.5024", "0.4104", "0.892", "0.4104", "0.892", "0.4236", "0.5024", "0.4236" ], [ "0.0801", "0.4287", "0.468", "0.4287", "0.468", "0.4426", "0.0801", "0.4426" ], [ "0.5024", "0.4248", "0.589", "0.4248", "0.589", "0.4395", "0.5024", "0.4395" ], [ "0.0784", "0.4443", "0.4697", "0.443", "0.4697", "0.457", "0.0784", "0.4583" ], [ "0.5024", "0.452", "0.636", "0.4526", "0.636", "0.4673", "0.5024", "0.4666" ], [ "0.0784", "0.459", "0.468", "0.4583", "0.468", "0.473", "0.0784", "0.4734" ], [ "0.0784", "0.4749", "0.468", "0.4749", "0.468", "0.488", "0.0784", "0.488" ], [ "0.5024", "0.4778", "0.8906", "0.4778", "0.8906", "0.4924", "0.5024", "0.4924" ], [ "0.0801", "0.4905", "0.468", "0.4905", "0.468", "0.504", "0.0801", "0.504" ], [ "0.501", "0.4937", "0.892", "0.4944", "0.892", "0.5083", "0.501", "0.507" ], [ "0.0801", "0.505", "0.468", "0.505", "0.468", "0.518", "0.0801", "0.518" ], [ "0.5024", "0.509", "0.8906", "0.509", "0.8906", "0.523", "0.5024", "0.523" ], [ "0.0809", "0.5215", "0.4673", "0.5215", "0.4673", "0.532", "0.0809", "0.532" ], [ "0.5024", "0.5244", "0.892", "0.5244", "0.892", "0.5386", "0.5024", "0.5386" ], [ "0.0801", "0.535", "0.468", "0.535", "0.468", "0.549", "0.0801", "0.549" ], [ "0.5024", "0.5405", "0.8906", "0.5405", "0.8906", "0.5537", "0.5024", "0.5537" ], [ "0.0809", "0.552", "0.4673", "0.552", "0.4673", "0.5625", "0.0809", "0.5625" ], [ "0.5024", "0.5547", "0.892", "0.5547", "0.892", "0.5684", "0.5024", "0.5684" ], [ "0.0809", "0.5674", "0.3145", "0.5674", "0.3145", "0.5776", "0.0809", "0.5776" ], [ "0.5024", "0.5693", "0.8906", "0.5693", "0.8906", "0.5835", "0.5024", "0.5835" ], [ "0.10046", "0.5835", "0.468", "0.5835", "0.468", "0.5967", "0.10046", "0.5967" ], [ "0.501", "0.584", "0.8906", "0.584", "0.8906", "0.5977", "0.501", "0.5977" ], [ "0.0801", "0.5977", "0.468", "0.5977", "0.468", "0.6113", "0.0801", "0.6113" ], [ "0.5024", "0.601", "0.892", "0.601", "0.892", "0.6143", "0.5024", "0.6143" ], [ "0.0801", "0.613", "0.468", "0.613", "0.468", "0.627", "0.0801", "0.627" ], [ "0.5024", "0.6157", "0.892", "0.6157", "0.892", "0.629", "0.5024", "0.629" ], [ "0.0801", "0.6274", "0.4697", "0.6274", "0.4697", "0.6416", "0.0801", "0.6416" ], [ "0.5024", "0.63", "0.892", "0.63", "0.892", "0.643", "0.5024", "0.643" ], [ "0.0801", "0.6426", "0.3218", "0.6426", "0.3218", "0.657", "0.0801", "0.657" ], [ "0.5024", "0.646", "0.892", "0.646", "0.892", "0.659", "0.5024", "0.659" ], [ "0.0989", "0.659", "0.4656", "0.659", "0.4656", "0.6724", "0.0989", "0.6724" ], [ "0.5024", "0.66", "0.7935", "0.66", "0.7935", "0.674", "0.5024", "0.674" ], [ "0.0801", "0.675", "0.4673", "0.675", "0.4673", "0.688", "0.0801", "0.688" ], [ "0.5034", "0.677", "0.8906", "0.677", "0.8906", "0.6875", "0.5034", "0.6875" ], [ "0.0801", "0.69", "0.468", "0.69", "0.468", "0.704", "0.0801", "0.704" ], [ "0.5024", "0.69", "0.892", "0.69", "0.892", "0.704", "0.5024", "0.704" ], [ "0.0801", "0.7056", "0.468", "0.7056", "0.468", "0.7197", "0.0801", "0.7197" ], [ "0.5024", "0.7056", "0.892", "0.7056", "0.892", "0.7197", "0.5024", "0.7197" ], [ "0.0784", "0.7197", "0.4697", "0.72", "0.4697", "0.735", "0.0784", "0.7344" ], [ "0.5024", "0.72", "0.892", "0.72", "0.892", "0.7344", "0.5024", "0.7344" ], [ "0.0784", "0.735", "0.468", "0.7363", "0.468", "0.75", "0.0784", "0.7485" ], [ "0.5034", "0.7373", "0.8906", "0.7373", "0.8906", "0.7476", "0.5034", "0.7476" ], [ "0.0801", "0.752", "0.4722", "0.752", "0.4722", "0.765", "0.0801", "0.765" ], [ "0.5024", "0.7505", "0.892", "0.7505", "0.892", "0.7646", "0.5024", "0.7646" ], [ "0.0801", "0.7666", "0.4697", "0.7666", "0.4697", "0.78", "0.0801", "0.78" ], [ "0.5024", "0.765", "0.892", "0.765", "0.892", "0.779", "0.5024", "0.779" ], [ "0.0801", "0.78", "0.468", "0.781", "0.468", "0.7954", "0.0801", "0.7944" ], [ "0.501", "0.781", "0.8906", "0.782", "0.8906", "0.7954", "0.501", "0.7944" ], [ "0.0801", "0.797", "0.4722", "0.797", "0.4722", "0.81", "0.0801", "0.81" ], [ "0.5034", "0.7974", "0.8906", "0.7974", "0.8906", "0.808", "0.5034", "0.808" ], [ "0.0801", "0.811", "0.4697", "0.811", "0.4697", "0.8247", "0.0801", "0.8247" ], [ "0.5024", "0.811", "0.8906", "0.811", "0.8906", "0.8247", "0.5024", "0.8247" ], [ "0.0801", "0.827", "0.4697", "0.827", "0.4697", "0.8403", "0.0801", "0.8403" ], [ "0.5024", "0.827", "0.8936", "0.827", "0.8936", "0.8403", "0.5024", "0.8403" ], [ "0.0801", "0.8413", "0.468", "0.8413", "0.468", "0.855", "0.0801", "0.855" ], [ "0.5024", "0.8413", "0.869", "0.8413", "0.869", "0.855", "0.5024", "0.855" ], [ "0.0784", "0.857", "0.4673", "0.857", "0.4673", "0.8706", "0.0784", "0.8706" ], [ "0.5", "0.857", "0.8896", "0.857", "0.8896", "0.8706", "0.5", "0.8706" ], [ "0.0801", "0.872", "0.4722", "0.872", "0.4722", "0.8853", "0.0801", "0.8853" ], [ "0.501", "0.872", "0.892", "0.872", "0.892", "0.8853", "0.501", "0.8853" ], [ "0.0801", "0.886", "0.4714", "0.886", "0.4714", "0.901", "0.0801", "0.901" ], [ "0.5024", "0.887", "0.892", "0.887", "0.892", "0.901", "0.5024", "0.901" ] ]
[ "the non-Euclidean domain. In mathematical terms [5, 6]", "real-time inference speed (47× faster) while maintaining", "Euclidean data is defined in R2. On the other hand, non-", "the high performance.", "Euclidean data, such as graphs that indicate connectivity", "To evaluate road network extraction quality, apart from", "among nodes, will lose crucial information if projected to", "inheriting the former metrics [9] based on lane detection,", "IRn, such as edge curve information.", "we instead design a family of metrics directly based on def-", "Unfortunately, existing attempts [9, 10] to extract road", "inition of road network - Landmark Precision-Recall and", "network using onboard sensors have not been able to", "Reachability-Precision-Recall - to evaluate (i) road land-", "achieve a harmonious integration between Euclidean and", "marks localization accuracy, and (ii) path accuracy between", "non-Euclidean data.STSU [9Idivides the road network", "any reachable landmarks.", "construction into two stages: center-lines detection and", "We make the following contributions: () we introduce", "center-line connectivity reasoning-whichignores the co-", "RoadNet Sequence, a lossless, efficient and unified repre-", "operation between Euclidean and non-Euclidean domains.", "sentationofbothEuclideanandnon-Euclideaninformation", "TPLR [10] uses a Transformer or Polygon-RNN [1] to com-", "from road network. (ii) We propose a Transformer-based", "bine topology reasoning with center-line localization,but", "RoadNetTransformer which can decode RoadNet Sequence", "the embedded conflicts between Euclidean data representa-", "from multiple onboard cameras. (i) By decoupling auto-", "tions and connectivity representation undermine the model", "regressive dependency of RoadNet Sequence, our proposed", "performance.", "Non-autoregressive RoadNetTransformer accelerate the in-", "In this work, we propose that the dilemma in existing", "ference speed to real-time while boost the accuracy with a", "works arises due to the absence of a unified representa-", "significantstepfromtheauto-regressivemodel.(iv)Exten-", "tion of both Euclidean and non-Euclidean data. Instead,", "sive experiments onnuScenes[8ldatasetvalidatethe supe-", "we introduce a Euclidean-nonEuclidean unified representa-", "riority of RoadNet Sequence representation and RoadNet-", "tion with merits of losslessness, efficiency and interaction.", "Transformer over the alternative methods with a consider-", "The unified representation, named as RoadNet Sequence,", "able margin.", "projects both Euclidean and non-Euclidean aspects of road", "2.Related work", "network to integer series domain Zn. The“\"losslessness\"", "aspect is ensured by establishing a bijection from road net-", "Vision-based ego-car (BEV) feature learning A rising", "work to RoadNet Sequence.\"Efficiency\"is achieved by", "tendency is conducting self-driving downstream tasks [42,", "limiting RoadNet Sequence length to the shortest O(J))", "30, 33,24, 35, 45,23,29,17, 31] under ego-car coordi-", "(where &isthe set of all centerlines),through a specially", "nate frame. To learn ego-car feature learning from onboard", "designed topological sorting rule.“Interactionreveals the", "cameras, [5l, 38] project image features to ego-car coor-", "interdependencebetweenEuclideanandnon-Euclideanin-", "dinate based on depth estimation. OFT [42], LSS [35] and", "formationwithina singlesequence.", "FIERY [23] predict depth distribution to generate the inter-", "Based on the auto-regressive dependency of topologi-", "mediate 3D representations. [45, 41, 30, 33] resort neural", "cal sorting, we leverage the sequence-to-sequence genera-", "network like Transformer to learn ego-car feature without", "tion power of Transformer [48, 7, 14] to understand Road-", "depth. In order to learn the topology of the road network", "Net Sequence from onboard round-view cameras, called", "under the ego-car coordinate frame, we use the straightfor-", "RoadNetworkTRansformer (RNTR).", "ward method of applying LSS [35, 24] to extract ego-car", "However, in practice, the auto-regressive dependency", "features from the multiple onboard cameras.", "in sequence-to-sequence generation can significantly slow", "Road network extraction Researchers have explored the", "down the inference speed. Our observation is that the de-", "utilization of DNNs to decode and recover maps from aerial", "pendency of road network can be decoupled into a semi-", "images and GPS trajectories [43, 53]. Moreover, STSU [9]", " autoregressive format, that retains auto-regressive function-", "first detect centerline from front-view image with Trans-", "ality within local contexts while simultaneously conducting", "formerandthenpredicttheassociationbetween centerline", "multiple generations in parallel. This semi-autoregressive", "with MLP layer, followed with a final merge to estimate", "model is called Semi-Autoregressive RoadNetTransformer", "road network. Based on STSU, TPLR [10] introduces min-", "(SAR-RNTR). This approach not only accelerates the in-", "imal cycle to eliminate ambiguity in its connectivity repre-", "ference speed by 6 times, but it also significantly boosts", "sentation. Existing methods spend great effort to deal with", "the accuracy to a new level based on the better depen-", "problem in non-Euclidean domain but ignore the coopera-", "dency modeling. Going beyond SAR-RNTR, we employ a", "tion between Euclidean and non-Euclidean. However, we", "masked training technique on SAR-RNTR to mimic the re-", "create a Euclidean-nonEuclidean unified representation.", "maining auto-regressive dependency through iterative pre-", "Non-Autoregressvie generation Non-Autoregressive gen-", "diction [27].This gives rise to our Non-Autoregressive", "eration for Neural Machine Translation (NMT) [19] has", "RoadNetTransformer (NAR-RNTR) model, which achieves", "been proposed as a solution to speed up the one-by-one" ]
{ "arxiv_id": "2402.08207", "language": "en", "page_idx": 1 }
2402.08207-en-2
2402.08207-en-2.jpg
<FigureHere> Figure 2. Top illustrates the transformation process from a Di- rected Acyclic Graph to a Directed Forest for RoadNet Sequence. The red boxes enclose all merge-points that have non-unique parents. We replicate theirs parents (except the first parent) to their children (cyan nodes) and delete the corresponding edges. Middle demonstrates a bijection between the edges and vertices (f: excluding the Ancestors). Bottom lists the topological sorting result of vertices and presents six integers for each vertex. sequential generation process of autoregressive models. [25, 57, 40] utilized knowledge distillation to help NAT model capture target sequence dependency. [27,47,20,18] proposed iterative models that refine the output from the previous iteration or a noised target in a step-wise manner. [49] kept the auto-regressive approach for global modeling, but introduced the parallel output of a few successive words at each time step. [46,4,36,3] used latent variables as intermediates to reduce the dependency on the target sequence. The current state of non-autoregressive NMT models is far from perfect, with a significant gap in performance compared to their auto-regressive counterparts [54]. But in the case of our RoadNet Sequence, the auto-regressive dependency can be decoupled, leading to both acceleration and improved performance. ### $3. \textbf{Method}$ In this section, we will introduce: (i) mathematics modeling of road network, (ii) RoadNet Sequence, (iii) architecture of RoadNetTransformer, (iv) metrics. 3.1. Mathematics modeling of road network The road network comprises road landmarks (e.g., crossroad, stop-lines, fork-point, merge-point) and centerlines connecting among them [9,10]. Given that traffic on each lane is always one-way, the graph can be formulated as a Directed Acylic Graph (DAG), i.e., $\mathcal{G}=(\mathcal{V},\mathcal{E})$ where vertex set $\mathcal{V}$ is the set of all road landmarks and edge set $\mathcal{E}$ is the set of all centerlines. Each vertex $v=(v_x,v_y,v_c)\in\mathcal{V}$ contains two properties: (i) location, $i.e.,(v_x\in\mathbb{R},v_y\in\mathbb{R})$, (ii) category, $i.e.,v_c.$ As shown in Figure 2, we divide vertices into 4 categories which will be introduced later. Each $\begin{array}{l}\mathrm{edge~}e\:=\:(e_{s},e_{t},e_{px},e_{py})\:\in\:\mathcal{E}\:\text{contains two properties:}\\\mathrm{(i)~source~}e_{s}\in\mathcal{V}\:\text{and target }e_{t}\in\mathcal{V}\:\text{vertex of the edge,(ii)}\end{array}$ $\begin{array}{l}\text{Bezier middle control point}\left(e_{px}\in\mathbb{R},e_{py}\in\mathbb{R}\right)[9]\text{control-}\\\text{ling the shape of edge curve. By and large, the Euclidean}\end{array}$ data of $\mathcal{G}$ contains $v_x,v_y,e_{px},e_{py}$ while the non-Euclidean data contains $v_c,e_s,e_t.$ ## 3.2. RoadNet Sequence In this section, we present RoadNet Sequence to integrate Euclidean and Non-Euclidean data into a unified representation. The projection from road network to RoadNet Sequence includes: (i) from DAG to Directed Forest, (ii) topological sorting of Directed Forest and (iii) sequence construction. From DAG to Directed Forest A typical DAG always has the ambiguity relationship between vertices and edges $(|\mathcal{V}|\nrightarrow|\mathcal{E}|)$ so that preserving all edges and vertices leads to redundancy due to the repeated use of vertices when indicating edge direction. In comparison, as shown in Figure 2, the Tree structure has a clear relationship between them $(|\mathcal{V}|\leftrightarrow$ $|\mathcal{E}|$) which avoids this redundancy. Hence, we innovatively transform DAG to a Directed Forest $\mathcal{G}_f=\left(\mathcal{V}_f,\mathcal{E}_f\right)$(a collection of disconnected directed trees). This transformation has the benefit of enabling us to find a bijection between $\mathcal{E}_f$ and $\mathcal{V}_f\backslash\{v\in\mathcal{V}_f\mid id(v)=0\}$ (set of all vertices which is not root, where $id(v)$ means incoming degree of the vertex). The bijection $f:\mathcal{V}\to\mathcal{E}$ can be $f(v)=(Parent(v),v)$ for any vertices $v\in\mathcal{V}_f\backslash\{v\in\mathcal{V}_f\mid id(v)=0\}$ where $Parent(v)$ is its unique parent and $f^{-1}(e)=v_1$ for any $e=(v_0,v_1)\in\mathcal{E}.$ As shown in the top of Figure 2, the transformation $\begin{array}{l}{\mathrm{happens~for~all~the~merge-points~on~the~road,~}i.e.,~\{v~\in}\\{\mathcal{V}\mid id(v)>1\}~whose~parents~are~non-unique.~We~replicate}\end{array}$ their parents (except the first parent) to their children and delete the corresponding edges. Then we assign these created vertices with a specific label Clone so that the direction of the edge between the merge-points and themselves will be reverted during recovery. Topological sorting of Directed Forest We use Depth-first search (DFS) to obtain the sequential order of vertices $\mathcal{V}_f$ in the Directed Forest, $i.e.,[v_1,v_2,\cdots,v_n].$ But the Clone point labeled in the last paragraph will not be traversed. Instead, as shown in the bottom of Figure 2, Clone point will be traversed following its original point. Thanks to the bijection $f$ between $\mathcal{E}_f$ and$\{v\in$ $\mathcal{V}_{f}\mid id(v)=1\}$,we can build pairs for all edges and vertices, $i.e.,(v,f(v))$ for $v\in\{v\in\mathcal{V}_f\mid id(v)=1\}$ and
[ [ "0.5024", "0.0903", "0.892", "0.09155", "0.892", "0.1061", "0.5024", "0.1048" ], [ "0.1095", "0.09784", "0.1871", "0.09784", "0.1871", "0.108", "0.1095", "0.108" ], [ "0.2133", "0.0966", "0.3342", "0.09784", "0.3342", "0.1092", "0.2133", "0.108" ], [ "0.3586", "0.09784", "0.437", "0.09784", "0.437", "0.108", "0.3586", "0.108" ], [ "0.505", "0.1092", "0.8906", "0.1092", "0.8906", "0.1193", "0.505", "0.1193" ], [ "0.501", "0.1225", "0.892", "0.1218", "0.892", "0.1364", "0.501", "0.137" ], [ "0.5024", "0.1383", "0.892", "0.1383", "0.892", "0.1515", "0.5024", "0.1515" ], [ "0.5034", "0.1528", "0.8906", "0.1528", "0.8906", "0.1666", "0.5034", "0.1666" ], [ "0.437", "0.1642", "0.451", "0.1642", "0.451", "0.1736", "0.437", "0.1736" ], [ "0.5034", "0.1674", "0.892", "0.1674", "0.892", "0.1812", "0.5034", "0.1812" ], [ "0.4167", "0.1818", "0.429", "0.1818", "0.429", "0.1863", "0.4167", "0.1863" ], [ "0.5034", "0.1831", "0.8906", "0.1831", "0.8906", "0.1976", "0.5034", "0.1976" ], [ "0.2385", "0.1963", "0.2573", "0.1963", "0.2573", "0.2052", "0.2385", "0.2052" ], [ "0.3594", "0.1913", "0.4468", "0.1913", "0.4468", "0.202", "0.3594", "0.202" ], [ "0.4043", "0.2008", "0.4355", "0.2026", "0.4346", "0.2108", "0.4028", "0.209" ], [ "0.5034", "0.1976", "0.8906", "0.1976", "0.8906", "0.2108", "0.5034", "0.2108" ], [ "0.5034", "0.2134", "0.8906", "0.2134", "0.8906", "0.2279", "0.5034", "0.2279" ], [ "0.3628", "0.2026", "0.3896", "0.2026", "0.3896", "0.2102", "0.3628", "0.2102" ], [ "0.1152", "0.2166", "0.2345", "0.2166", "0.2345", "0.2299", "0.1152", "0.2299" ], [ "0.3325", "0.2153", "0.4143", "0.2153", "0.4143", "0.226", "0.3325", "0.226" ], [ "0.1462", "0.2267", "0.1569", "0.2349", "0.1503", "0.2393", "0.1405", "0.2317" ], [ "0.3245", "0.2299", "0.33", "0.2299", "0.33", "0.2374", "0.3245", "0.2374" ], [ "0.5024", "0.2279", "0.892", "0.2267", "0.892", "0.2412", "0.5024", "0.2424" ], [ "0.1936", "0.2437", "0.2361", "0.2456", "0.2345", "0.262", "0.1929", "0.26" ], [ "0.5024", "0.2424", "0.8936", "0.2424", "0.8936", "0.26", "0.5024", "0.26" ], [ "0.3284", "0.254", "0.343", "0.254", "0.343", "0.2615", "0.3284", "0.2615" ], [ "0.1152", "0.2456", "0.156", "0.2474", "0.1544", "0.2588", "0.1136", "0.2568" ], [ "0.4167", "0.254", "0.4355", "0.254", "0.4355", "0.262", "0.4167", "0.262" ], [ "0.501", "0.2568", "0.6587", "0.26", "0.6587", "0.2734", "0.501", "0.2708" ], [ "0.2157", "0.2676", "0.2427", "0.2676", "0.2427", "0.2747", "0.2157", "0.2747" ], [ "0.3308", "0.2708", "0.3694", "0.2708", "0.3694", "0.2747", "0.3308", "0.2747" ], [ "0.298", "0.2827", "0.4412", "0.2827", "0.4412", "0.3037", "0.298", "0.3037" ], [ "0.501", "0.2842", "0.6807", "0.2854", "0.6807", "0.2998", "0.501", "0.2986" ], [ "0.09644", "0.307", "0.2932", "0.307", "0.2932", "0.3245", "0.09644", "0.3245" ], [ "0.3022", "0.305", "0.4478", "0.305", "0.4478", "0.3193", "0.3022", "0.3193" ], [ "0.5215", "0.3093", "0.8906", "0.3093", "0.8906", "0.3225", "0.5215", "0.3225" ], [ "0.1209", "0.327", "0.2222", "0.3289", "0.2222", "0.3435", "0.1209", "0.3416" ], [ "0.3015", "0.327", "0.4387", "0.327", "0.4387", "0.3416", "0.3015", "0.3416" ], [ "0.5024", "0.3245", "0.892", "0.324", "0.892", "0.3384", "0.5024", "0.339" ], [ "0.5034", "0.3416", "0.8906", "0.3416", "0.8906", "0.3516", "0.5034", "0.3516" ], [ "0.0809", "0.3542", "0.4656", "0.3542", "0.4656", "0.3643", "0.0809", "0.3643" ], [ "0.501", "0.3542", "0.892", "0.3547", "0.892", "0.3694", "0.501", "0.3687" ], [ "0.0809", "0.3687", "0.4656", "0.3687", "0.4656", "0.379", "0.0809", "0.379" ], [ "0.5024", "0.3706", "0.8936", "0.3706", "0.8936", "0.3838", "0.5024", "0.3838" ], [ "0.0801", "0.3806", "0.4697", "0.3806", "0.4697", "0.3945", "0.0801", "0.3945" ], [ "0.5034", "0.387", "0.589", "0.387", "0.589", "0.3977", "0.5034", "0.3977" ], [ "0.0809", "0.3965", "0.468", "0.3965", "0.468", "0.4072", "0.0809", "0.4072" ], [ "0.5024", "0.401", "0.892", "0.401", "0.892", "0.414", "0.5024", "0.414" ], [ "0.0784", "0.4072", "0.468", "0.4077", "0.468", "0.4216", "0.0784", "0.4204" ], [ "0.0784", "0.4224", "0.468", "0.4224", "0.468", "0.4363", "0.0784", "0.4363" ], [ "0.501", "0.4167", "0.8906", "0.4167", "0.8906", "0.43", "0.501", "0.43" ], [ "0.0801", "0.4382", "0.468", "0.4382", "0.468", "0.449", "0.0801", "0.449" ], [ "0.505", "0.433", "0.8906", "0.433", "0.8906", "0.443", "0.505", "0.443" ], [ "0.0784", "0.4507", "0.4207", "0.4507", "0.4207", "0.464", "0.0784", "0.464" ], [ "0.5024", "0.4463", "0.892", "0.4463", "0.892", "0.4602", "0.5024", "0.4602" ], [ "0.5024", "0.461", "0.8906", "0.461", "0.8906", "0.4749", "0.5024", "0.4749" ], [ "0.5034", "0.4766", "0.892", "0.4766", "0.892", "0.4905", "0.5034", "0.4905" ], [ "0.0801", "0.4912", "0.4673", "0.4912", "0.4673", "0.505", "0.0801", "0.505" ], [ "0.5034", "0.4912", "0.8906", "0.4912", "0.8906", "0.505", "0.5034", "0.505" ], [ "0.0801", "0.507", "0.4673", "0.507", "0.4673", "0.521", "0.0801", "0.521" ], [ "0.5024", "0.507", "0.8906", "0.507", "0.8906", "0.521", "0.5024", "0.521" ], [ "0.0784", "0.5215", "0.468", "0.521", "0.468", "0.535", "0.0784", "0.536" ], [ "0.5024", "0.5215", "0.892", "0.5215", "0.892", "0.535", "0.5024", "0.535" ], [ "0.0801", "0.537", "0.468", "0.537", "0.468", "0.5503", "0.0801", "0.5503" ], [ "0.501", "0.536", "0.8896", "0.537", "0.8896", "0.5503", "0.501", "0.55" ], [ "0.0801", "0.552", "0.468", "0.552", "0.468", "0.565", "0.0801", "0.565" ], [ "0.5034", "0.552", "0.892", "0.552", "0.892", "0.565", "0.5034", "0.565" ], [ "0.0809", "0.5674", "0.468", "0.5674", "0.468", "0.5806", "0.0809", "0.5806" ], [ "0.5034", "0.5674", "0.8896", "0.5674", "0.8896", "0.5806", "0.5034", "0.5806" ], [ "0.0809", "0.5835", "0.468", "0.5835", "0.468", "0.5933", "0.0809", "0.5933" ], [ "0.5034", "0.582", "0.8896", "0.582", "0.8896", "0.595", "0.5034", "0.595" ], [ "0.0784", "0.5977", "0.4697", "0.5977", "0.4697", "0.6113", "0.0784", "0.6113" ], [ "0.5024", "0.5977", "0.8906", "0.5977", "0.8906", "0.6123", "0.5024", "0.6123" ], [ "0.0801", "0.6123", "0.468", "0.6123", "0.468", "0.6255", "0.0801", "0.6255" ], [ "0.5024", "0.6113", "0.8906", "0.6123", "0.8906", "0.627", "0.5024", "0.6255" ], [ "0.0809", "0.627", "0.4697", "0.627", "0.4697", "0.64", "0.0809", "0.64" ], [ "0.5024", "0.6274", "0.619", "0.6274", "0.619", "0.6416", "0.5024", "0.6416" ], [ "0.0801", "0.6426", "0.468", "0.6426", "0.468", "0.656", "0.0801", "0.656" ], [ "0.523", "0.643", "0.892", "0.643", "0.892", "0.657", "0.523", "0.657" ], [ "0.0784", "0.657", "0.468", "0.656", "0.468", "0.6704", "0.0784", "0.672" ], [ "0.5024", "0.659", "0.892", "0.659", "0.892", "0.6724", "0.5024", "0.6724" ], [ "0.0801", "0.6724", "0.468", "0.6724", "0.468", "0.686", "0.0801", "0.686" ], [ "0.5034", "0.674", "0.892", "0.674", "0.892", "0.6875", "0.5034", "0.6875" ], [ "0.0801", "0.688", "0.4697", "0.688", "0.4697", "0.702", "0.0801", "0.702" ], [ "0.501", "0.688", "0.892", "0.6875", "0.892", "0.702", "0.501", "0.7026" ], [ "0.0801", "0.7026", "0.2345", "0.7026", "0.2345", "0.7163", "0.0801", "0.7163" ], [ "0.5034", "0.704", "0.892", "0.704", "0.892", "0.7173", "0.5034", "0.7173" ], [ "0.5034", "0.7183", "0.8906", "0.7183", "0.8906", "0.732", "0.5034", "0.732" ], [ "0.0801", "0.733", "0.1666", "0.733", "0.1666", "0.7476", "0.0801", "0.7476" ], [ "0.5024", "0.7344", "0.892", "0.7344", "0.892", "0.7476", "0.5024", "0.7476" ], [ "0.5034", "0.75", "0.716", "0.75", "0.716", "0.763", "0.5034", "0.763" ], [ "0.0989", "0.759", "0.4673", "0.759", "0.4673", "0.773", "0.0989", "0.773" ], [ "0.5024", "0.7646", "0.8936", "0.7646", "0.8936", "0.778", "0.5024", "0.778" ], [ "0.0809", "0.7744", "0.468", "0.7744", "0.468", "0.7886", "0.0809", "0.7886" ], [ "0.5024", "0.78", "0.8906", "0.78", "0.8906", "0.7935", "0.5024", "0.7935" ], [ "0.0801", "0.7905", "0.38", "0.7905", "0.38", "0.8037", "0.0801", "0.8037" ], [ "0.5024", "0.7954", "0.8906", "0.7954", "0.8906", "0.8096", "0.5024", "0.8096" ], [ "0.5024", "0.81", "0.8906", "0.81", "0.8906", "0.8247", "0.5024", "0.8247" ], [ "0.0801", "0.8174", "0.4143", "0.8174", "0.4143", "0.8306", "0.0801", "0.8306" ], [ "0.5034", "0.8257", "0.892", "0.8257", "0.892", "0.839", "0.5034", "0.839" ], [ "0.0972", "0.839", "0.468", "0.8413", "0.468", "0.855", "0.0972", "0.853" ], [ "0.5034", "0.8423", "0.7686", "0.8423", "0.7686", "0.853", "0.5034", "0.853" ], [ "0.0809", "0.858", "0.468", "0.858", "0.468", "0.8687", "0.0809", "0.8687" ], [ "0.5215", "0.856", "0.892", "0.856", "0.892", "0.869", "0.5215", "0.869" ], [ "0.0801", "0.872", "0.4697", "0.872", "0.4697", "0.8853", "0.0801", "0.8853" ], [ "0.5034", "0.872", "0.892", "0.872", "0.892", "0.8853", "0.5034", "0.8853" ], [ "0.0801", "0.887", "0.4697", "0.887", "0.4697", "0.901", "0.0801", "0.901" ], [ "0.501", "0.886", "0.892", "0.8853", "0.892", "0.8994", "0.501", "0.901" ] ]
[ "Directed Acylic Graph (DAG), i.e., g = (V, ) where ver-", "Road Network", "Directed Acyclic Graph", "Directed Forest", "texsetVis the set of all road landmarks and edge set & is", "the set of all centerlines. Each vertex = (Ur, Vu, Ve) e V", "contains two properties: (i) location, i.e., (va E IR, vu e R),", "(i) category, i.e., Ve. As shown in Figure 2, we divide ver-", "5'", "tices into 4 categories which will be introduced later. Each", "4", "edge e = (es,et,epz,Epy) E contains two properties:", "(3", "Ancestor offshoot", "OClone", "(i) source es E V and target et V vertex of the edge, (i)", "Bezier middle control point (epr E R, epy E R) [9] control-", "OLinea", "Directed Acyclic Graph", "Directed Forest", "6", "0", "ling the shape of edge curve.By and large, the Euclidean", "Oe", "data of G contains Ur, Uy, Epa, Epy while the non-Euclidean", "4", "(3)d", "5", "data contains Vc, Es, Et.", "EV", "liertianhe", "四", "3.2. RoadNet Sequence", "00000000", "offshoot1414", "In this section, we present RoadNet Sequence to inte-", "Topological sorting", "clone34", "grate Euclidean and Non-Euclidean data into a unified rep-", "resentation.The projection from road networktoRoad-", "Figure2.TopillustratesthetransformationprocessfromaDi-", "Net Sequence includes: (i) from DAG to Directed Forest,", "rectedAcyclicGraphtoaDirectedForestforRoadNetSequence", "(ii) topological sorting of Directed Forest and (iii) sequence", "The red boxes enclose all merge-points that have non-unique par-", "construction.", "ents.Wereplicate theirs parents (except the first parent)to their", "From DAG to Directed Forest A typical DAG always", "children (cyan nodes) and delete the corresponding edges. Mid-", "dle demonstrates a bijection between the edges and vertices (f:", "has the ambiguity relationship between vertices and edges", "excluding the Ancestors).Bottom liststhe topological sorting", "(v+D)sothatpreservingalledgesandverticesleadsto", "result of vertices and presents six integers for each vertex.", "redundancy due to the repeated use of vertices when indicat-", "ing edge direction. In comparison, as shown in Figure 2, the", "Tree structure has a clear relationship between them (/V ", "sequential generation process of autoregressive models.", ") which avoids this redundancy.Hence, we innovatively", "[25, 57, 40] utilized knowledge distillation to help NAT", "transform DAG to a Directed Forest Gf = (Vf,&f) (a col-", "model capture target sequence dependency. [27, 47, 20, 18]", "lection of disconnected directed trees).This transformation", "proposed iterative models that refine the output from the", "has the benefit of enabling us tofind a bijection between f", "previous iteration or a noised target in a step-wise manner.", "and Vflfu E Vf | id(v) = O) (set of all vertices which is", "[49] kept the auto-regressive approach for global modeling,", "not root, where id(v) means incoming degree of the vertex)", "butintroducedtheparalleloutputofafewsuccessivewords", "The bijection f : V → & can be f(u) = (Parent(u),)", "at each time step. [46, 4, 36, 3] used latent variables as inter-", "for any vertices E Vfl(u E Vf I id(u) = O) where", "mediates to reduce the dependency on the target sequence.", "Parent(v) is its unique parent and f-1(e) = ui for any", "The current state of non-autoregressive NMT models is far", "e = (vo, vi) e&.", "from perfect, with a significant gap in performance com-", "As shown in the top of Figure 2, the transformation", "pared to their auto-regressive counterparts [54]. But in the", "happens for all the merge-points on the road, i.e., fu E", "case of our RoadNet Sequence, the auto-regressive depen-", "V|id() > 1) whose parents are non-unique. We replicate", "dency can be decoupled, leading to both acceleration and", "their parents (except the first parent) to their children and", "improved performance.", "delete the corresponding edges. Then we assign these cre-", "ated vertices with a specific label clone so that the direc-", "3. Method", "tion of the edge between the merge-points and themselves", "will bereverted during recovery.", "In this section, we will introduce: (i) mathematics mod-", "Topological sorting of Directed Forest We use Depth-first", "eling of road network, (ii) RoadNet Sequence, (ii) archi-", "search (DFS) to obtain the sequential order of vertices V", "tecture of RoadNetTransformer, (iv) metrics.", "in the Directed Forest, i.e., [ui, V2, .., Un]. But the Clone", "point labeled in the last paragraph will not be traversed. In-", "3.1. Mathematics modeling of road network", "stead, as shown in the bottom of Figure 2, Clone point will", "The road network comprises road landmarks (e.g.,cross-", "be traversed following its original point.", "road,stop-lines,fork-point,merge-point)and centerlines", "Thanks to the bijection f between &f and fuE", "connecting among them [9, 10]. Given that traffic on each", "Vf I id(u) = 1), we can build pairs for all edges and ver-", "lane is always one-way, the graph can be formulated as a", "tices, i.e., (u, f(v)) for u E {u E V id(v) = l and" ]
{ "arxiv_id": "2402.08207", "language": "en", "page_idx": 2 }
2402.08207-en-3
2402.08207-en-3.jpg
<FigureHere> Figure 3. Left shows two major components of Semi-Autoregressive RoadNetTransformer: Key-point Transformer decoder to detect key-points and Parallel-seq Transformer Decoder to generate Semi-Autoregressive RoadNet Sequence. "SAR RoadNet Seq" stands for Semi-Autoregressive RoadNet Sequence. Right decouples self-attention of Parallel-seq Transformer Decoder layer into Intra-seq and inter-seq self-attention. $(v$,None) for$v\in\{v\in\mathcal{V}_f\mid id(v)=0\}.$These pairs construct the road network with no redundancy. Non-unique sorting In the application of Depth-First Search (DFS), the sequence in which points under the same parent are searched first can result in non-unique sorting. We investigate two strategies to address this: a random ordering strategy and an ordering based on coordinates, specifically prioritizing points closest to the Bird's Eye View (BEV) front right. Sequence construction We then use 6 integers to represent each vertex-edge pair. 6 integers are made up with: (i) two integers for location of vertex, i.e., int$(v_x)$,int$(v_y);$ (ii) one integer for category $v_c$ of of vertex and we set categories as Ancestor, Lineal, Offshoot, Clone; (iii) one integer for the index of parent (None for root), $v_{d}=$Index$(Parent(v))$ where index is its topological order (the Clone vertex share the same index as origin to indicate that they are identical); (iv) two integers for coefficient of Bezier curve of $e=f(v),i.e.$int$(e_px)$,int$(e_py).$ But, simply discretizing $e_{px}$ and $e_{py}$ can be challenging since the Bezier control points may exceed the Bird's Eye View (BEV) range, and their values may become negative. As a solution, we discretize $e_px$ and $e_{py}$ by applying the int function to $(e_{px}+10)$ and $(e_{py}+10)$,respectively, to avoid negative values. There exists 4 cases to determine the category $v_c{:}($i) if $v_i$ is the root of the tree, the category $v_c$ is set as Ancestor, the index of its parent $v_d$ is set as None, its coefficient is ignored. (ii) if $v_i$ is the first child of its parent, the category $v_{c}$ is set as Lineal, its $v_d$ is ignored for its parent is exact $v_{i- 1}.$( iii) if $v_i$ is not the first child of its parent, the category $v_c$ is set as Offshoot, its $v_d$ is its parent's index. (iv) if $v_i$ is the cloned child, the category is set as Clone, its $v_d$ is its original child. Integer representation of $v_c$ is Ancestor: 0,Lineal: 1,Offshoot: 2,Clone: 3. Analysis The proposed RoadNet Sequence possess the merits of losslessness, efficiency and interaction. The losslessness of RoadNet Sequence is guaranteed by establishing a bijection between edges and vertices (excluding the root) of trees. Our RoadNet Sequence has a complexity of $\mathcal{O}(|\mathcal{V}_{f}|)=\mathcal{O}(|\mathcal{E}|)$, making it the most efficient. A mixture of Euclidean and non-Euclidean data within a local 6-integer clause facilitates full interaction between the Euclidean and non-Euclidean domains. RoadNet Sequence also possess the auto-regressive dependency. Since Depth-First search of Trees is always topological sorting, vertices only depend on the previous generated vertices. Also, our 6 integers come in the order of vertices location, vertices category, index and curve coefficient also preserving the auto-regressive assumption. Sequence embedding Each vertex-edge pair is represented by 6 integers. To prevent embedding conflicts between the 6 integers, we divide them into separate ranges. As a default, we set the embedding size to 576, which is sufficient to accommodate all the integer ranges. 3.3. Auto-Regressive RoadNetTransformer Based on auto-regressive dependency of RoadNet Sequence, we design our baseline as auto-regressive RoadNet Sequence generation. Architecture We apply the same encoder-decoder architecture as [14]. The encoder is responsible for extracting BEV feature $\mathcal{F}$ from multiple onboard cameras such as Lift-Splat-Shoot[35]. For decoder, we use the same Transformer decoder as[14] which includes a self-attention layer, a cross-attention layer and a MLP layer. Obejctive We denote the ground-truth RoadNet Sequence with length $L$ as $y$ and the predicted RoadNet Sequence
[ [ "0.2173", "0.1067", "0.3506", "0.1067", "0.3506", "0.1206", "0.2173", "0.1206" ], [ "0.5", "0.1187", "0.6313", "0.11615", "0.6313", "0.1383", "0.5", "0.1401" ], [ "0.7534", "0.11554", "0.7817", "0.11554", "0.7817", "0.1276", "0.7534", "0.1276" ], [ "0.2263", "0.1218", "0.3308", "0.1218", "0.3308", "0.1395", "0.2263", "0.1395" ], [ "0.4224", "0.1225", "0.4592", "0.1225", "0.4592", "0.1338", "0.4224", "0.1338" ], [ "0.4739", "0.1338", "0.5664", "0.1459", "0.562", "0.1635", "0.4697", "0.1515" ], [ "0.7695", "0.1364", "0.774", "0.1364", "0.774", "0.1414", "0.7695", "0.1414" ], [ "0.5605", "0.1497", "0.5703", "0.1497", "0.5703", "0.154", "0.5605", "0.154" ], [ "0.728", "0.1465", "0.8057", "0.1465", "0.8057", "0.161", "0.728", "0.161" ], [ "0.423", "0.161", "0.482", "0.161", "0.482", "0.1724", "0.423", "0.1724" ], [ "0.3064", "0.1515", "0.3718", "0.1515", "0.3718", "0.1635", "0.3064", "0.1635" ], [ "0.09314", "0.1704", "0.2532", "0.1686", "0.2532", "0.1831", "0.09314", "0.1849" ], [ "0.2834", "0.1718", "0.3284", "0.1718", "0.3284", "0.1818", "0.2834", "0.1818" ], [ "0.513", "0.1724", "0.528", "0.1724", "0.528", "0.1799", "0.513", "0.1799" ], [ "0.6846", "0.1849", "0.7363", "0.1849", "0.7363", "0.1957", "0.6846", "0.1957" ], [ "0.2141", "0.1957", "0.2769", "0.1976", "0.2769", "0.2122", "0.2141", "0.2102" ], [ "0.4617", "0.1945", "0.5337", "0.1963", "0.5337", "0.2108", "0.4617", "0.209" ], [ "0.675", "0.1976", "0.74", "0.1976", "0.74", "0.2052", "0.675", "0.2052" ], [ "0.1871", "0.209", "0.3057", "0.209", "0.3057", "0.2229", "0.1871", "0.2229" ], [ "0.4395", "0.209", "0.5596", "0.209", "0.5596", "0.2229", "0.4395", "0.2229" ], [ "0.357", "0.2299", "0.5864", "0.2299", "0.5864", "0.2474", "0.357", "0.2474" ], [ "0.5933", "0.2343", "0.6177", "0.2343", "0.6177", "0.2424", "0.5933", "0.2424" ], [ "0.6855", "0.2361", "0.7305", "0.2361", "0.7305", "0.2474", "0.6855", "0.2474" ], [ "0.4387", "0.2507", "0.536", "0.2507", "0.536", "0.2651", "0.4387", "0.2651" ], [ "0.675", "0.2474", "0.7417", "0.2474", "0.7417", "0.2583", "0.675", "0.2583" ], [ "0.3757", "0.252", "0.4102", "0.252", "0.4102", "0.2615", "0.3757", "0.2615" ], [ "0.2051", "0.2524", "0.3057", "0.2524", "0.3057", "0.2644", "0.2051", "0.2644" ], [ "0.55", "0.2583", "0.5596", "0.2583", "0.5596", "0.2615", "0.55", "0.2615" ], [ "0.1152", "0.2664", "0.2035", "0.2676", "0.2035", "0.279", "0.1152", "0.2778" ], [ "0.2385", "0.2651", "0.3628", "0.2651", "0.3628", "0.279", "0.2385", "0.279" ], [ "0.4436", "0.2676", "0.468", "0.2676", "0.468", "0.276", "0.4436", "0.276" ], [ "0.4631", "0.2676", "0.511", "0.2644", "0.513", "0.276", "0.464", "0.279" ], [ "0.513", "0.2676", "0.5947", "0.2676", "0.5947", "0.2778", "0.513", "0.2778" ], [ "0.4224", "0.2683", "0.437", "0.2708", "0.4355", "0.2747", "0.4207", "0.2727" ], [ "0.3718", "0.2683", "0.415", "0.2683", "0.415", "0.2798", "0.3718", "0.2798" ], [ "0.6562", "0.2695", "0.847", "0.2708", "0.847", "0.2854", "0.6562", "0.2842" ], [ "0.2443", "0.2827", "0.335", "0.2827", "0.335", "0.2935", "0.2443", "0.2935" ], [ "0.3987", "0.2827", "0.4968", "0.2842", "0.4968", "0.2954", "0.3987", "0.2942" ], [ "0.527", "0.2842", "0.626", "0.2842", "0.626", "0.2942", "0.527", "0.2942" ], [ "0.0809", "0.303", "0.8906", "0.303", "0.8906", "0.3164", "0.0809", "0.3164" ], [ "0.1854", "0.2842", "0.2263", "0.2842", "0.2263", "0.2942", "0.1854", "0.2942" ], [ "0.0801", "0.3176", "0.892", "0.3176", "0.892", "0.3308", "0.0801", "0.3308" ], [ "0.0801", "0.3308", "0.8936", "0.3308", "0.8936", "0.3447", "0.0801", "0.3447" ], [ "0.0809", "0.3467", "0.2181", "0.3467", "0.2181", "0.3567", "0.0809", "0.3567" ], [ "0.0809", "0.3838", "0.4714", "0.3838", "0.4714", "0.3984", "0.0809", "0.3984" ], [ "0.5024", "0.3865", "0.778", "0.3865", "0.778", "0.3965", "0.5024", "0.3965" ], [ "0.0784", "0.3984", "0.392", "0.3997", "0.392", "0.414", "0.0784", "0.4136" ], [ "0.5034", "0.3997", "0.892", "0.3997", "0.892", "0.414", "0.5034", "0.414" ], [ "0.0801", "0.4167", "0.4697", "0.4167", "0.4697", "0.43", "0.0801", "0.43" ], [ "0.5024", "0.4153", "0.892", "0.4153", "0.892", "0.4287", "0.5024", "0.4287" ], [ "0.0801", "0.4312", "0.4714", "0.4312", "0.4714", "0.4443", "0.0801", "0.4443" ], [ "0.501", "0.4287", "0.892", "0.43", "0.892", "0.4443", "0.501", "0.443" ], [ "0.0801", "0.4463", "0.468", "0.4463", "0.468", "0.4602", "0.0801", "0.4602" ], [ "0.5024", "0.4458", "0.892", "0.4458", "0.892", "0.459", "0.5024", "0.459" ], [ "0.0801", "0.461", "0.4697", "0.461", "0.4697", "0.4749", "0.0801", "0.4749" ], [ "0.5024", "0.4602", "0.892", "0.4602", "0.892", "0.4734", "0.5024", "0.4734" ], [ "0.0801", "0.4766", "0.4673", "0.4766", "0.4673", "0.4905", "0.0801", "0.4905" ], [ "0.5024", "0.4749", "0.8906", "0.4734", "0.8906", "0.488", "0.5024", "0.4893" ], [ "0.0801", "0.4912", "0.4697", "0.4912", "0.4697", "0.506", "0.0801", "0.506" ], [ "0.5024", "0.4905", "0.892", "0.4905", "0.892", "0.504", "0.5024", "0.504" ], [ "0.0801", "0.507", "0.2402", "0.507", "0.2402", "0.521", "0.0801", "0.521" ], [ "0.5024", "0.506", "0.892", "0.506", "0.892", "0.5195", "0.5024", "0.5195" ], [ "0.0801", "0.523", "0.468", "0.523", "0.468", "0.536", "0.0801", "0.536" ], [ "0.501", "0.521", "0.7417", "0.521", "0.7417", "0.534", "0.501", "0.534" ], [ "0.0784", "0.5386", "0.4697", "0.5386", "0.4697", "0.553", "0.0784", "0.553" ], [ "0.523", "0.537", "0.8896", "0.537", "0.8896", "0.5474", "0.523", "0.5474" ], [ "0.0801", "0.5537", "0.468", "0.5537", "0.468", "0.5674", "0.0801", "0.5674" ], [ "0.5024", "0.5503", "0.892", "0.5503", "0.892", "0.5645", "0.5024", "0.5645" ], [ "0.0809", "0.5684", "0.4714", "0.5684", "0.4714", "0.582", "0.0809", "0.582" ], [ "0.5024", "0.5664", "0.892", "0.5664", "0.892", "0.58", "0.5024", "0.58" ], [ "0.0801", "0.584", "0.4697", "0.584", "0.4697", "0.5977", "0.0801", "0.5977" ], [ "0.5024", "0.582", "0.8906", "0.582", "0.8906", "0.595", "0.5024", "0.595" ], [ "0.0809", "0.601", "0.4673", "0.601", "0.4673", "0.6113", "0.0809", "0.6113" ], [ "0.5024", "0.5967", "0.892", "0.5967", "0.892", "0.6113", "0.5024", "0.6113" ], [ "0.0801", "0.6143", "0.4697", "0.6143", "0.4697", "0.6274", "0.0801", "0.6274" ], [ "0.5024", "0.6113", "0.812", "0.6113", "0.812", "0.625", "0.5024", "0.625" ], [ "0.0784", "0.6274", "0.4697", "0.629", "0.4697", "0.6426", "0.0784", "0.6416" ], [ "0.501", "0.6255", "0.8906", "0.6255", "0.8906", "0.6396", "0.501", "0.6396" ], [ "0.0801", "0.643", "0.468", "0.643", "0.468", "0.657", "0.0801", "0.657" ], [ "0.5034", "0.643", "0.8906", "0.643", "0.8906", "0.654", "0.5034", "0.654" ], [ "0.0784", "0.657", "0.4673", "0.659", "0.4673", "0.674", "0.0784", "0.672" ], [ "0.5024", "0.657", "0.892", "0.657", "0.892", "0.6704", "0.5024", "0.6704" ], [ "0.0784", "0.6724", "0.4714", "0.6724", "0.4714", "0.69", "0.0784", "0.69" ], [ "0.5024", "0.6724", "0.8936", "0.6724", "0.8936", "0.686", "0.5024", "0.686" ], [ "0.0801", "0.6895", "0.4697", "0.6895", "0.4697", "0.7026", "0.0801", "0.7026" ], [ "0.5024", "0.688", "0.7573", "0.688", "0.7573", "0.702", "0.5024", "0.702" ], [ "0.0801", "0.705", "0.468", "0.705", "0.468", "0.7183", "0.0801", "0.7183" ], [ "0.5024", "0.7104", "0.83", "0.712", "0.83", "0.7266", "0.5024", "0.7246" ], [ "0.0801", "0.7197", "0.4697", "0.7197", "0.4697", "0.7344", "0.0801", "0.7344" ], [ "0.0809", "0.735", "0.4697", "0.735", "0.4697", "0.75", "0.0809", "0.75" ], [ "0.5215", "0.735", "0.8906", "0.735", "0.8906", "0.7485", "0.5215", "0.7485" ], [ "0.0801", "0.752", "0.2255", "0.752", "0.2255", "0.762", "0.0801", "0.762" ], [ "0.501", "0.75", "0.8906", "0.75", "0.8906", "0.763", "0.501", "0.763" ], [ "0.0989", "0.7666", "0.468", "0.7666", "0.468", "0.78", "0.0989", "0.78" ], [ "0.5024", "0.7666", "0.6445", "0.7666", "0.6445", "0.78", "0.5024", "0.78" ], [ "0.0801", "0.781", "0.4697", "0.782", "0.4697", "0.7954", "0.0801", "0.7944" ], [ "0.501", "0.78", "0.892", "0.779", "0.892", "0.7935", "0.501", "0.7944" ], [ "0.0801", "0.797", "0.468", "0.797", "0.468", "0.81", "0.0801", "0.81" ], [ "0.501", "0.7944", "0.892", "0.7954", "0.892", "0.81", "0.501", "0.8096" ], [ "0.0801", "0.811", "0.468", "0.811", "0.468", "0.8247", "0.0801", "0.8247" ], [ "0.501", "0.8096", "0.892", "0.81", "0.892", "0.8247", "0.501", "0.8237" ], [ "0.0801", "0.827", "0.4714", "0.827", "0.4714", "0.8403", "0.0801", "0.8403" ], [ "0.5024", "0.8257", "0.8906", "0.8257", "0.8906", "0.839", "0.5024", "0.839" ], [ "0.0801", "0.8413", "0.468", "0.8413", "0.468", "0.855", "0.0801", "0.855" ], [ "0.5024", "0.8413", "0.892", "0.8413", "0.892", "0.855", "0.5024", "0.855" ], [ "0.0801", "0.857", "0.468", "0.857", "0.468", "0.8706", "0.0801", "0.8706" ], [ "0.5024", "0.857", "0.767", "0.857", "0.767", "0.8706", "0.5024", "0.8706" ], [ "0.0801", "0.872", "0.4697", "0.872", "0.4697", "0.886", "0.0801", "0.886" ], [ "0.5024", "0.872", "0.8936", "0.872", "0.8936", "0.8853", "0.5024", "0.8853" ], [ "0.0801", "0.887", "0.4714", "0.887", "0.4714", "0.901", "0.0801", "0.901" ], [ "0.501", "0.887", "0.8906", "0.887", "0.8906", "0.901", "0.501", "0.901" ] ]
[ "Ground-truth Key-point", "", "MLP", "国", "Target", "LcEt", "", "", "Cross Atteption", "Prediction", "LHungarian", "Ego-car Featurepred predpred", "predpred", "pred", "Inter-seq", "Key-point", " Parallel-seq", "Self-attention", "Transformer Decoder", "Transformer Decoder", "", ".YM", "Intra-seq", "", "Self-attention", "0", "Key-point Queries", "-", "Key-point Embedding", "RoadNet Seq.Embedding", "JMH", "酒", "111213", "", "烟", "Parallel-seqTransformrDecoderLayer", "Position Embedding", "Key-point Prompt", "SARRoadNet Seq.", "Figure 3. Left shows two major components of Semi-Autoregressive RoadNetTransformer: Key-point Transformer decoder to detect", "nbedding", "key-points and Parallel-seq Transformer Decoder to generate Semi-Autoregressive RoadNet Sequence. \"SAR RoadNet Seq\" stands for", "Semi-Autoregressive RoadNet Sequence. Right decouples self-attention of Parallel-seq Transformer Decoder layer into Intra-seq and", "inter-seqself-attention.", "(u, None) for u E fu E Vf / id(u) = O). These pairs", "0.Lineal:l,Offshoot:2,clone:3", "construct the road network with no redundancy.", "Analysis The proposed RoadNet Sequence possess the mer-", "Non-unique sorting In the application of Depth-First", "its of losslessness, efficiency and interaction. The loss-", "Search (DFS), the sequence in which points under the same", "lessness of RoadNet Sequence is guaranteed by establish-", "parent are searched first can result in non-unique sorting.", "ing a bijection between edges and vertices (excluding the", "We investigate two strategies to address this: a random", "root) of trees. Our RoadNet Sequence has a complexity of", "ordering strategy and an ordering based on coordinates", "O(VfD) = O(JD), making it the most efficient. A mix-", "specifically prioritizing points closest to the Bird's Eye", "ture of Euclidean and non-Euclidean data within a local", "View (BEV) front right.", "6-integer clause facilitates full interaction between the Eu-", "Sequence construction We then use 6 integers to repre-", "clidean and non-Euclidean domains.", "sent each vertex-edge pair. 6 integers are made up with: (i)", "RoadNetSequencealsopossesstheauto-regressivede-", "two integers for location of vertex, i.e., int(v), int(y);", "pendency. Since Depth-First search of Trees is always topo-", "(ii) one integer for category ve of of vertex and we set", "logical sorting, vertices only depend on the previous gener-", "categories as Ancestor, Lineal, Offshoot, Clone;", "ated vertices. Also, our 6 integers come in the order of ver-", "(iii)one integerfortheindex of parent(None forroot),", "tices location, vertices category, index and curve coefficient", "Vd =Index(Parent()) where index is its topological or-", "also preserving the auto-regressive assumption.", "der (the Clone vertex share the same index as origin to", "Sequence embedding Each vertex-edge pair is represented", "indicate that they are identical); (iv) two integers for coeffi-", "by6integers.Topreventembeddingconflictsbetweenthe", "cient of Bezier curve ofe=f(u),i.e.int(epr), int(epy).", "6 integers, we divide them into separate ranges. As a de-", "But, simply discretizing epa and epy can be challenging", "fault, we set the embedding size to 576, which is sufficient", "since the Bezier control points may exceed the Bird's Eye", "to accommodate all the integer ranges.", "View (BEV) range, and their values may become negative.", "3.3.Auto-RegressiveRoadNetTransformer", "As a solution, we discretize epr and epy by applying the", "int function to (epr + 10) and (epy +10), respectively, to", "Based on auto-regressive dependency of RoadNet Se-", "avoid negative values.", "quence, we design our baseline as auto-regressive RoadNet", "There exists 4 cases to determine the category ve: (i) if vi", "Sequence generation.", "is the root of the tree, the category ve is set as Ancestor,", "Architecture We apply the same encoder-decoder archi-", "the index of its parent d is set as None, its coefficient is", "tecture as [14]. The encoder is responsible for extracting", "ignored. (i) if u, is the first child of its parent, the category", "BEV feature F from multiple onboard cameras such as", "Ue is set as Lineal, its ud is ignored for its parent is exact", "Lift-Splat-Shoot [35]. For decoder, we use the same Trans-", "Vi-1. (iii) if u; is not the first child of its parent, the category", "former decoder as [14] which includes a self-attention layer,", "ve is set as Off shoot, its ud is its parent's index. (iv) if vi", "a cross-attention layer and a MLP layer.", "is the cloned child, the category is set as Clone, its vd is its", "Obejctive We denote the ground-truth RoadNet Sequence", "original child. Integer representation of ue is Ancestor:", "with length L as y and the predicted RoadNet Sequence" ]
{ "arxiv_id": "2402.08207", "language": "en", "page_idx": 3 }
2303.08447-en-0
2303.08447-en-0.jpg
Published as a workshop paper at "Tackling Climate Change with Machine Learning", ICLR 2023 # MAHTM: A MULTI-AGENT FRAMEWORK FOR HIERARCHICAL TRANSACTIVE MICROGRIDS Nicolas M. Cuadrado $^*$ MBZUAI, UAE nicolas. avila@mbzuai . ac . ae ${\mathbf{Roberto~A.~Guti\'{e}rrez~}}^*$ MBZUAI, UAE roberto.guillen@mbzuai.ac.ae $\mathbf{YongliZhu}$ Texas A&M University, USA yzhu16@vols.utk.edu Martin Tak$\' {a}\v {c}$ MBZUAI, UAE Takac.MT@gmail.com ABSTRACT Integrating variable renewable energy into the grid has posed challenges to system operators in achieving optimal trade-offs among energy availability, cost affordability, and pollution controllability. This paper proposes a multiagent reinforcement learning framework for managing energy transactions in microgrids. The framework addresses the challenges above: it seeks to optimize the usage of available resources by minimizing the carbon footprint $\bar{\text{while benefiting all stakeholders. The proposed architecture consists of}}$ three layers of agents, each pursuing different objectives. The frst layer, comprised of prosumers and consumers, minimizes the total energy cost. The other two layers control the energy price to decrease the carbon impact while balancing the consumption and production of both renewable and conventional energy. This framework also takes into account fluctuations in energy demand and supply. ## 1 INTRODUCTION As technology and urban areas continue to grow, the demand for energy increases and is expected to continue to be high. Because of this, the world is moving towards greener options, increasing the dema Leibowicz et al. (2018). Between renewable energies, we have solar, wind, tidal, hydropower, and bio-energy. The challeng there is enough to supply the demand since the generation of renewable energy is inherently stochastic (depends on multi There is a need to adapt to the randomness of the situation, which can be solved by creating specific energy systems cont $\bar{\text{the available resources Vázquez-Canteli et al. }(2019).\text{ For example, the concept of “smart}}$ transactive grids" has been communities. The idea is to supply the demand with minimal human intervention. At the same time, it provides the opportunity to sell any surp Some previous work leveraged Reinforcement Learning (RL) to create technologies that enable transactive microgrids. In Anvari-Moghaddam et a RL agents is proposed, where the distributions of agents are different: one agent is used for particular computation (e.g., optimization), called Service Agent; the other two agents $\begin{aligned}\text{collect meteorological information, and forecast the power output based on the specified type}\\\text{collect meteorological information, and forecast the power output based on the specified type}\end{aligned}$ of energy (solar, wind, etc.). In the design of its energy management system, one battery is shared across the residential households, and all the agents communicate with a“central coordinator agent". In Vazquez-Canteli et al. (2020), the authors proposed a Multi-Agent $^{*}$These authors contributed equally to this work. 1
[ [ "0.1732", "0.02968", "0.7935", "0.03093", "0.7935", "0.04544", "0.1732", "0.0442" ], [ "0.1748", "0.04736", "0.255", "0.04736", "0.255", "0.05936", "0.1748", "0.05936" ], [ "0.1748", "0.09973", "0.824", "0.1016", "0.824", "0.1193", "0.1748", "0.11743" ], [ "0.1748", "0.1256", "0.7466", "0.1276", "0.7466", "0.1459", "0.1748", "0.1433" ], [ "0.183", "0.1692", "0.3718", "0.1692", "0.3718", "0.1831", "0.183", "0.1831" ], [ "0.5728", "0.1704", "0.759", "0.1704", "0.759", "0.1843", "0.5728", "0.1843" ], [ "0.1847", "0.1849", "0.2998", "0.1849", "0.2998", "0.1989", "0.1847", "0.1989" ], [ "0.572", "0.1849", "0.689", "0.1849", "0.689", "0.1989", "0.572", "0.1989" ], [ "0.183", "0.1995", "0.4084", "0.1995", "0.4084", "0.2134", "0.183", "0.2134" ], [ "0.572", "0.1995", "0.8145", "0.1995", "0.8145", "0.2134", "0.572", "0.2134" ], [ "0.1847", "0.2343", "0.2778", "0.2343", "0.2778", "0.2488", "0.1847", "0.2488" ], [ "0.569", "0.2317", "0.6855", "0.2343", "0.6855", "0.2488", "0.569", "0.2468" ], [ "0.1847", "0.2474", "0.392", "0.2474", "0.392", "0.262", "0.1847", "0.262" ], [ "0.5703", "0.2474", "0.687", "0.2468", "0.687", "0.2615", "0.5703", "0.262" ], [ "0.183", "0.2632", "0.3513", "0.2632", "0.3513", "0.2766", "0.183", "0.2766" ], [ "0.5703", "0.2615", "0.7295", "0.262", "0.7295", "0.2766", "0.5703", "0.276" ], [ "0.452", "0.3132", "0.5483", "0.3132", "0.5483", "0.3276", "0.452", "0.3276" ], [ "0.02124", "0.2644", "0.0645", "0.2644", "0.0645", "0.404", "0.02124", "0.404" ], [ "0.2336", "0.3447", "0.7656", "0.3447", "0.7656", "0.358", "0.2336", "0.358" ], [ "0.2336", "0.3591", "0.767", "0.3591", "0.767", "0.3726", "0.2336", "0.3726" ], [ "0.2336", "0.3726", "0.767", "0.3726", "0.767", "0.3865", "0.2336", "0.3865" ], [ "0.2361", "0.3882", "0.7646", "0.3882", "0.7646", "0.3984", "0.2361", "0.3984" ], [ "0.0196", "0.404", "0.05963", "0.4028", "0.0621", "0.4905", "0.02287", "0.4912" ], [ "0.2336", "0.401", "0.7656", "0.401", "0.7656", "0.414", "0.2336", "0.414" ], [ "0.2336", "0.414", "0.7656", "0.414", "0.7656", "0.428", "0.2336", "0.428" ], [ "0.2345", "0.428", "0.767", "0.428", "0.767", "0.4414", "0.2345", "0.4414" ], [ "0.2336", "0.4426", "0.767", "0.4426", "0.767", "0.4558", "0.2336", "0.4558" ], [ "0.2336", "0.4558", "0.767", "0.4558", "0.767", "0.4697", "0.2336", "0.4697" ], [ "0.232", "0.4685", "0.767", "0.4697", "0.767", "0.4841", "0.232", "0.483" ], [ "0.02287", "0.4893", "0.05963", "0.4893", "0.05963", "0.712", "0.02287", "0.712" ], [ "0.2336", "0.4841", "0.7656", "0.4841", "0.7656", "0.4976", "0.2336", "0.4976" ], [ "0.2336", "0.4976", "0.7656", "0.4976", "0.7656", "0.511", "0.2336", "0.511" ], [ "0.2336", "0.511", "0.4307", "0.511", "0.4307", "0.5244", "0.2336", "0.5244" ], [ "0.1772", "0.5537", "0.1847", "0.5537", "0.1847", "0.561", "0.1772", "0.561" ], [ "0.1978", "0.55", "0.3423", "0.5503", "0.3423", "0.565", "0.1978", "0.5645" ], [ "0.1732", "0.5806", "0.8228", "0.582", "0.8228", "0.5967", "0.1732", "0.595" ], [ "0.1732", "0.595", "0.822", "0.595", "0.822", "0.6094", "0.1732", "0.6094" ], [ "0.1732", "0.6094", "0.8228", "0.6094", "0.8228", "0.6226", "0.1732", "0.6226" ], [ "0.1748", "0.6235", "0.826", "0.6235", "0.826", "0.637", "0.1748", "0.637" ], [ "0.1748", "0.638", "0.824", "0.638", "0.824", "0.6514", "0.1748", "0.6514" ], [ "0.1732", "0.6514", "0.824", "0.6514", "0.824", "0.6655", "0.1732", "0.6655" ], [ "0.1732", "0.6665", "0.5186", "0.6665", "0.5186", "0.677", "0.1732", "0.677" ], [ "0.1732", "0.685", "0.8228", "0.686", "0.8228", "0.7007", "0.1732", "0.6997" ], [ "0.1732", "0.6997", "0.8228", "0.6997", "0.8228", "0.7134", "0.1732", "0.7134" ], [ "0.1748", "0.714", "0.8228", "0.714", "0.8228", "0.728", "0.1748", "0.728" ], [ "0.1748", "0.729", "0.824", "0.729", "0.824", "0.742", "0.1748", "0.742" ], [ "0.1748", "0.742", "0.826", "0.742", "0.826", "0.756", "0.1748", "0.756" ], [ "0.1748", "0.756", "0.824", "0.756", "0.824", "0.771", "0.1748", "0.771" ], [ "0.1748", "0.771", "0.524", "0.771", "0.524", "0.785", "0.1748", "0.785" ], [ "0.1748", "0.7905", "0.824", "0.7905", "0.824", "0.8037", "0.1748", "0.8037" ], [ "0.1748", "0.8047", "0.8228", "0.8047", "0.8228", "0.8193", "0.1748", "0.8193" ], [ "0.1732", "0.8174", "0.824", "0.8184", "0.824", "0.8335", "0.1732", "0.832" ], [ "0.1748", "0.8335", "0.824", "0.8335", "0.824", "0.8467", "0.1748", "0.8467" ], [ "0.1732", "0.8447", "0.824", "0.8467", "0.824", "0.8613", "0.1732", "0.8594" ], [ "0.1724", "0.8613", "0.822", "0.8613", "0.822", "0.875", "0.1724", "0.875" ], [ "0.1748", "0.875", "0.824", "0.875", "0.824", "0.888", "0.1748", "0.888" ], [ "0.1748", "0.888", "0.8228", "0.888", "0.8228", "0.9014", "0.1748", "0.9014" ], [ "0.1953", "0.911", "0.517", "0.911", "0.517", "0.925", "0.1953", "0.925" ], [ "0.4927", "0.9497", "0.5063", "0.9497", "0.5063", "0.961", "0.4927", "0.961" ] ]
[ "Published as a workshop paper at \"Tackling Climate Change with Machine Learning\"", "ICLR2023", "MAHTM: A MULTI-AGENT FRAMEWORK FOR", "HIERARCHICAL TRANSACTIVE MICROGRIDS", "Nicolas M. Cuadrado *", "Roberto A. Gutierrez", "MBZUAI, UAE", "MBZUAI, UAE", "nicolas.avila@mbzuai.ac.ae", "roberto.guillen@mbzuai.ac.ae", "Yongli Zhu", " Martin Takac", "Texas A&M University, USA", "MBZUAI,UAE", "yzhu16@vols.utk.edu", "Takac.MT@gmail.com", "ABSTRACT", " de", "Integrating variable renewable energy into the grid has posed challenges to", "system operators in achieving optimal trade-offs among energy availability,", "cost affordability, and pollution controllability. This paper proposes a multi-", "agentreinforcementlearningframeworkformanagingenergytransactions", "[T'S] ", "in microgrids. The framework addresses the challenges above: it seeks to", "optimize the usage of available resources by minimizing the carbon footprint", "while benefiting all stakeholders. The proposed architecture consists of", "three layers of agents, each pursuing different objectives. The first layer,", "comprised of prosumers and consumers, minimizes the total energy cost.", "The other two layers control the energy price to decrease the carbon impact", "00", "while balancing the consumption and production of both renewable and", "conventional energy. This framework also takes into account fluctuations in", "energy demand and supply.", "1", "INTRODUCTION", "As technology and urban areas continue to grow, the demand for energy increases and is", "expected to continue to be high. Because of this, the world is moving towards greener", "options, increasing the demand for renewable energy from industry and residential consumers", "Leibowicz et al. (2018). Between renewable energies, we have solar, wind, tidal, hydropower,", "and bio-energy.The challenge behind lays not only in the generation but guaranteeing", "there is enough to supply the demand since the generation of renewable energy is inherently", "stochastic (depends onmultipleclimatefactors)", "There is a need to adapt to the randomness of the situation, which can be solved by creating", "specific energy systems controlled by machine learning models, which optimize the usage of", "the available resources Vazquez-Canteli et al. (2019). For example, the concept of “smart", "transactive grids\" has been proposed to organize the demand and production of energy in", "communities. The idea is to create an intelligent system that uses different energy sources to", "supply the demand with minimal human intervention. At the same time, it provides the", "opportunity to sell any surplus energy produced.", "Some previous work leveraged Reinforcement Learning (RL) to create technologies that enable", "transactive microgrids. In Anvari-Moghaddam et al. (2017), an approach using different", "RL agents is proposed, where the distributions of agents are different: one agent is used", "for particular computation (e.g., optimization), called Service Agent; the other two agents", "collect meteorological information, and forecast the power output based on the specified type", "of energy (solar, wind, etc.). In the design of its energy management system, one battery", "is shared across the residential households, and all the agents communicate with a “central", "coordinator agent\". In Vazquez-Canteli et al. (2020), the authors proposed a Multi-Agent", "*These authors contributed equally to this work.", "1" ]
{ "arxiv_id": "2303.08447", "language": "en", "page_idx": 0 }
2303.08447-en-1
2303.08447-en-1.jpg
Published as a workshop paper at "Tackling Climate Change with Machine Learning", ICLR 2023 Reinforcement Learning (MARL) approach consisting of agents sharing two variables and following a leader-follower schema to manage energy demand and generation. They also proposed a specific reward function with greedy and collective goals to incentivize the agents to work together as a community. Other MARL approaches could be relevant to solve similar issues. In COLA Xu et al. (2022), a consensus learning approach is proposed, which is inspired by the DINO (Distillation with No Labels) Caron et al. (2021). In DINO's method, a student network is created to predict the teacher network results to simplify the self-supervised training process for methods that (originally) require centralized training and decentralized inference. Authors of Foerster et al. (2017) proposed the Counterfactual Multi-Agent (COMA) policy gradients. In this work, they propose an architecture with a centralized critic to estimate the action-value function and decentralized actors to learn the optimal policy for each agent. The main innovation in this approach is introducing a counterfactual baseline that allows each agent to compare its current action contribution to the global reward with all the other possible actions. This is a way to deal with the problem of $credit\textit{assignment in the multi- agent context, which}$ happens when the agents do not consider their contribution to a collaborative objective. This paper proposes and develops a Multi-Agent Hierarchical Framework for Transactive Mi- crogrids (MAHTM). The framework considers the minimization of the carbon footprint during the multi-agent learning process to tackle the challenges of climate change. # 2 METHODS We propose a three-layer hierarchical RL architecture, as shown in Figure. 1. Each layer owns a set of agents with different objectives, pursued greedily. In our framework, we denote $\begin{array}{c}{\text{a set of }G\text{ microgrids as }M=\{m_{1},m_{2},\ldots,m_{i},\ldots,m_{G}\};\text{we denote a group of }D_{i}\text{ households}}\\{\text{a set of }G\text{ microgrids as }M=\{m_{1},m_{2},\ldots,m_{i},\ldots,m_{G}\};\text{we denote a group of }D_{i}\text{ houe eholds}}\end{array}$ belonging to a microgrid $i$ as $H_i=\{h_{i,1},h_{i,2},\ldots,h_{i,j},\ldots,h_{i,D_{i}}\}$, the current time step is denoted as $t.$ <FigureHere> Figure 1: Illustration on the Three Layer Architecture. The solid lines represent the energy and information flows. 2.1 FIRST LAYER: HOUSEHOLD In this layer, there are four different cases: 1) households that have no access to any energy asset being only able to consume ("passive consumers"); 2) households that have access to Photovoltaic (PV) panels to produce electricity during day-hours ("passive prosumers"); 3) prosumer households that have access to batteries which allow them to have energy dispatch capabilities and PV generation ("active prosumers"); and 4) consumer households who also $\bar{\text{have access to energy storage which provide them the potential to sell surplus energy back}}$ to the microgrid ("active consumers"). Households without batteries ("passive consumers" or"passive prosumers") do not need'to execute control actions as they do not have such capabilities to react to energy fluctuations (e.g., due to weather variation). In contrast, those "actionable" agents will determine how to charge and discharge the batteries and how to alter the demand and supply in the microgrid. Based on the above logic, the equations of 2
[ [ "0.1732", "0.02968", "0.7935", "0.03093", "0.7935", "0.04544", "0.1732", "0.0442" ], [ "0.1765", "0.04736", "0.2573", "0.04736", "0.2573", "0.05936", "0.1765", "0.05936" ], [ "0.1748", "0.11743", "0.8228", "0.11743", "0.8228", "0.132", "0.1748", "0.132" ], [ "0.1765", "0.1332", "0.822", "0.1332", "0.822", "0.1433", "0.1765", "0.1433" ], [ "0.1748", "0.1465", "0.826", "0.1465", "0.826", "0.1604", "0.1748", "0.1604" ], [ "0.1732", "0.159", "0.4167", "0.159", "0.4167", "0.1724", "0.1732", "0.1724" ], [ "0.1732", "0.1799", "0.8228", "0.1799", "0.8228", "0.1945", "0.1732", "0.1945" ], [ "0.1732", "0.1957", "0.8228", "0.1932", "0.8228", "0.207", "0.1732", "0.209" ], [ "0.1748", "0.2084", "0.8228", "0.2084", "0.8228", "0.2216", "0.1748", "0.2216" ], [ "0.1765", "0.2229", "0.8228", "0.2229", "0.8228", "0.2361", "0.1765", "0.2361" ], [ "0.1772", "0.238", "0.824", "0.238", "0.824", "0.2488", "0.1772", "0.2488" ], [ "0.1772", "0.2507", "0.826", "0.2507", "0.826", "0.2644", "0.1772", "0.2644" ], [ "0.1765", "0.2644", "0.8228", "0.2644", "0.8228", "0.2778", "0.1765", "0.2778" ], [ "0.1765", "0.2798", "0.822", "0.2798", "0.822", "0.2903", "0.1765", "0.2903" ], [ "0.1748", "0.2922", "0.824", "0.2922", "0.824", "0.3062", "0.1748", "0.3062" ], [ "0.1732", "0.3037", "0.824", "0.3037", "0.824", "0.3176", "0.1732", "0.3176" ], [ "0.1748", "0.318", "0.8228", "0.318", "0.8228", "0.332", "0.1748", "0.332" ], [ "0.1765", "0.3352", "0.806", "0.3352", "0.806", "0.3452", "0.1765", "0.3452" ], [ "0.1748", "0.3542", "0.8228", "0.3542", "0.8228", "0.3674", "0.1748", "0.3674" ], [ "0.1748", "0.3687", "0.824", "0.3687", "0.824", "0.3818", "0.1748", "0.3818" ], [ "0.1732", "0.3833", "0.7646", "0.3833", "0.7646", "0.3965", "0.1732", "0.3965" ], [ "0.1748", "0.4192", "0.1936", "0.4192", "0.1936", "0.432", "0.1748", "0.432" ], [ "0.2018", "0.4192", "0.2974", "0.4192", "0.2974", "0.4343", "0.2018", "0.4343" ], [ "0.1724", "0.4526", "0.822", "0.4526", "0.822", "0.4666", "0.1724", "0.4666" ], [ "0.1748", "0.4673", "0.8228", "0.4673", "0.8228", "0.481", "0.1748", "0.481" ], [ "0.1748", "0.481", "0.4453", "0.481", "0.4453", "0.4944", "0.1748", "0.4944" ], [ "0.4673", "0.481", "0.824", "0.481", "0.824", "0.4944", "0.4673", "0.4944" ], [ "0.1724", "0.4924", "0.8267", "0.4937", "0.8267", "0.511", "0.1724", "0.5103" ], [ "0.1748", "0.5083", "0.2688", "0.509", "0.2688", "0.521", "0.1748", "0.5195" ], [ "0.5195", "0.558", "0.544", "0.558", "0.544", "0.5757", "0.5195", "0.5757" ], [ "0.517", "0.5747", "0.5435", "0.5747", "0.5435", "0.5835", "0.517", "0.5835" ], [ "0.513", "0.582", "0.544", "0.582", "0.544", "0.5903", "0.513", "0.5903" ], [ "0.7686", "0.603", "0.7754", "0.603", "0.7754", "0.607", "0.7686", "0.607" ], [ "0.1969", "0.627", "0.246", "0.627", "0.246", "0.637", "0.1969", "0.637" ], [ "0.1993", "0.638", "0.2345", "0.638", "0.2345", "0.6426", "0.1993", "0.6426" ], [ "0.7915", "0.64", "0.7983", "0.64", "0.7983", "0.646", "0.7915", "0.646" ], [ "0.709", "0.653", "0.7236", "0.653", "0.7236", "0.66", "0.709", "0.66" ], [ "0.2532", "0.664", "0.29", "0.664", "0.29", "0.672", "0.2532", "0.672" ], [ "0.1724", "0.6846", "0.824", "0.686", "0.824", "0.704", "0.1724", "0.702" ], [ "0.1748", "0.702", "0.335", "0.702", "0.335", "0.7153", "0.1748", "0.7153" ], [ "0.1748", "0.759", "0.2059", "0.759", "0.2059", "0.771", "0.1748", "0.771" ], [ "0.2075", "0.757", "0.411", "0.757", "0.411", "0.771", "0.2075", "0.771" ], [ "0.1748", "0.784", "0.8228", "0.784", "0.8228", "0.799", "0.1748", "0.799" ], [ "0.1765", "0.8003", "0.822", "0.8003", "0.822", "0.811", "0.1765", "0.811" ], [ "0.1748", "0.813", "0.824", "0.813", "0.824", "0.827", "0.1748", "0.827" ], [ "0.1748", "0.827", "0.8228", "0.827", "0.8228", "0.8403", "0.1748", "0.8403" ], [ "0.1765", "0.8423", "0.822", "0.8423", "0.822", "0.853", "0.1765", "0.853" ], [ "0.1748", "0.855", "0.824", "0.855", "0.824", "0.8687", "0.1748", "0.8687" ], [ "0.1748", "0.8687", "0.824", "0.8687", "0.824", "0.882", "0.1748", "0.882" ], [ "0.1765", "0.884", "0.822", "0.884", "0.822", "0.8945", "0.1765", "0.8945" ], [ "0.1748", "0.8965", "0.824", "0.8965", "0.824", "0.91", "0.1748", "0.91" ], [ "0.1748", "0.91", "0.8228", "0.91", "0.8228", "0.924", "0.1748", "0.924" ], [ "0.1732", "0.925", "0.826", "0.925", "0.826", "0.938", "0.1732", "0.938" ], [ "0.4944", "0.961", "0.5063", "0.961", "0.5063", "0.9727", "0.4944", "0.9727" ] ]
[ "Published as a workshop paper at \"Tackling Climate Change with Machine Learning\"", "ICLR2023", "Reinforcement Learning (MARL) approach consisting of agents sharing two variables and", "followingaleader-follower schematomanageenergydemand and generation.They also", "proposed a specific reward function with greedy and collective goals to incentivize the agents", "to work together as a community.", "Other MARL approaches could be relevant to solve similar issues. In COLA Xu et al. (2022)", "a consensus learningapproach is proposed,which is inspired bytheDINO (Distillation with", "No Labels) Caron et al. (2021). In DINO's method, a student network is created to predict", "the teacher network results to simplify the self-supervised training process for methods that", "originally)requirecentralizedtrainingand decentralized inference.Authors ofFoerster et al", "(2017) proposed the Counterfactual Multi-Agent (COMA) policy gradients. In this work,", "they propose an architecture with a centralized critic to estimate the action-value function", "and decentralized actorstolearntheoptimal policyfor eachagent.Themain innovationin", "this approach is introducing a counterfactual baseline that allows each agent to compare its", "current action contribution to the global reward with all the other possible actions. This", "is a way to deal with the problem of credit assignment in the multi-agent context, which", "happenswhentheagentsdonotconsidertheircontributiontoacollaborativeobjective.", "This paper proposes and develops a Multi-Agent Hierarchical Framework for Transactive Mi", "crogrids (MAHTM). The framework considers the minimization of the carbon footprint", "during the multi-agent learning process to tackle the challenges of climate change.", "2", " METHODS", "We propose a three-layer hierarchical RL architecture, as shown in Figure. 1. Each layen", "owns a set of agents with different objectives, pursued greedily. In our framework, we denote", "a set of G microgrids as M = {mi,m2,", ",mi,...,mgl; we denote a group of D, households", "belonging to a microgrid i as H, = [hi,1,hi,2,...,hi,j,...,hi,D,], the current time step is", "denoted as t.", "迪", "Passive", "Consum", "V", "ExternalGrid", "eeneratis", "+", "atte", "butorLer", "Figure 1: Illustration on the Three Layer Architecture. The solid lines represent the energy", "and information flows.", "2.1", "FIRST LAYER:HOUSEHOLD", "In this layer, there are four different cases: 1) households that have no access to any energy", "asset being onlyableto consume(passiveconsumers):2)householdsthat haveaccessto", "Photovoltaic (PV) panels to produce electricity during day-hours (\"passive prosumers\"); 3)", "prosumer households that have access to batteries which allow them to have energy dispatch", "capabilities and PVgeneration(\"activeprosumers):and 4)consumerhouseholdswho also", "have access to energy storage which provide them the potential to sell surplus energy back", "to the microgrid (\"active consumers\"). Households without batteries (\"passive consumers\"", "orpassiveprosumers)do not need to execute control actions as they do not have such", "capabilities to react to energy fluctuations (e.g., due to weather variation). In contrast, those", "\"actionable\" agents will determine how to charge and discharge the batteries and how to", "alter the demand and supply in the microgrid. Based on the above logic, the equations of", "2" ]
{ "arxiv_id": "2303.08447", "language": "en", "page_idx": 1 }
2303.08447-en-2
2303.08447-en-2.jpg
Published as a workshop paper at "Tackling Climate Change with Machine Learning", ICLR 2023 <table> <tbody> <tr> <th> </th> <th>$\mathbf{L}1\colon\mathbf{H}$ousehold</th> <th>L2: Microgrid</th> <th>L3: Distributor</th> <th>Type</th> <th>$\mathbf{Unit}$</th> </tr> <tr> <td>Net</td> <td>M $7net$</td> <td>$E_{t}^{\mathrm{net}}$ $^{'}t.i$</td> <td>$E_t^\mathrm{net}$</td> <td>$\operatorname{Energy}$</td> <td>$Wh$</td> </tr> <tr> <td>Demand</td> <td>$E$ T 1A</td> <td> </td> <td> </td> <td>Energy</td> <td>$Wh$</td> </tr> <tr> <td>PVGen</td> <td>$F$</td> <td> </td> <td> </td> <td>Energy</td> <td>$Wh$</td> </tr> <tr> <td>Battery</td> <td>$E$ bat1</td> <td> </td> <td> </td> <td>Energy</td> <td>$Wh$</td> </tr> <tr> <td>Shortage</td> <td>$E$ 1st</td> <td>$E_{t}^{\mathrm{st}}_{i}$ 1</td> <td>$E_{t}^{\mathrm{st}}$ $\tilde{f}$</td> <td>$\operatorname{Energy}$</td> <td>$Wh$</td> </tr> <tr> <td>Surplus</td> <td>$F$</td> <td>$F_{c}^{\mathrm{sp}}$</td> <td>$E_{t}^{\mathrm{sp}}$</td> <td>Energy</td> <td>$Wh$</td> </tr> <tr> <td>L1 $\operatorname{Import}$</td> <td>10 $F$</td> <td> </td> <td> </td> <td>Energy</td> <td>$Wh$</td> </tr> <tr> <td>$L1$ Export</td> <td>$E$</td> <td> </td> <td> </td> <td>Energy</td> <td>$Wh$</td> </tr> <tr> <td>L2 $\operatorname{Import}$</td> <td>$E$ $\iota mp_{2}$ $t.\dot{i}$</td> <td>$E$ $imp_2$ $^{'}t,i$</td> <td> </td> <td>Energy</td> <td>$Wh$</td> </tr> <tr> <td>L2 Export</td> <td>$E$ $exp_{2}$</td> <td>$imp_2$ $E$ $^{'}t,i$</td> <td> </td> <td>Energy</td> <td>$Wh$</td> </tr> <tr> <td>L3 $\operatorname{Import}$</td> <td>$E$</td> <td>$E$ $imp_3$ $^{'}t,i$</td> <td>$E_t^{imp_3}$</td> <td>Energy</td> <td>$Wh$</td> </tr> <tr> <td>L3 Export</td> <td>$E$ e2223 $f$</td> <td>$E$ $imp_3$ $^{'}t,i$</td> <td>$E_{t}^{imp_{3}}$</td> <td>Energy</td> <td>$Wh$</td> </tr> <tr> <td>Emission</td> <td> </td> <td> </td> <td>$c_t$</td> <td>$GHG$</td> <td>$\mathrm{CO}_{2}$ $Wh$</td> </tr> <tr> <td>Sell</td> <td> </td> <td>$sm$ 1</td> <td>sr</td> <td>Price</td> <td>$S_{i}$ {:}/Wh </td> </tr> <tr> <td>Buy</td> <td>$bh$</td> <td>$bm$ 1 $f$</td> <td>,bd $7^{*}$ $t$</td> <td>Price</td> <td>$\$/Wh$</td> </tr> </tbody> </table> Table 1: Table of defined symbols. this layer are as follows: (1) (2) $$\begin{aligned}&E_{t,i,j}^{\mathrm{st}}=E_{t,i,j}^{imp_{1}}+E_{t,i,j}^{imp_{2}}+E_{t,i,j}^{imp_{3}}\\&E_{t,i,j}^{\mathrm{sp}}=E_{t,i,j}^{exp_{1}}+E_{t,i,j}^{exp_{2}}+E_{t,i,j}^{exp_{3}}\\&E_{t,i,j}^{\mathrm{net}}=E_{t,i,j}^{\mathrm{st}}-E_{t,i,j}^{\mathrm{sp}}=E_{t,i,j}^{\mathrm{load}}-E_{t,i,j}^{\mathrm{pv}}\pm E_{t,i,j}^{\mathrm{batt}}\\&\text{1}\end{aligned}$$ (3) In the case of consumer households with no PV panel, the generation $E_{t,i,j}^\mathrm{pv}=0.$ When $E_{t, i, j}^{\mathrm{net}}\geq 0$ (called“ shortage” state) , it means there is extra energy needed from external sources ( e. g, retailers or other households) . When $E_{t, i, j}^{\mathrm{net}}< 0$ (called“ surplus" state) , there is surplus energy available to sell back to th shortage. The Equation (3) presents a constraint that should be satisfied as it is impossible to have both scenarios simultaneously. Finally, we define the objective function of this layer: $$\min\left\{\begin{array}{ll}E_{t,i,j}^{imp_3}(r_t^{\mathrm{sd}}+c_t)+E_{t,i,j}^{imp_2}r_{t,i}^{\mathrm{sm}}+E_{t,i,j}^{imp_1}r_{t,i}^{\mathrm{sh}},&\mathrm{if}\quad E_{t,i,j}^{\mathrm{net}}\geq0,\\E_{t,i,j}^{exp_3}r_t^{\mathrm{bd}}+E_{t,i,j}^{exp_2}r_t^{\mathrm{bm}}+E_{t,i,j}^{exp_1}r_{t,i}^{\mathrm{bh}},&\mathrm{if}\quad E_{t,i,j}^{\mathrm{net}}<0.\end{array}\right.$$ (4) 2.2 SECOND LAYER: MICROGRID In this layer, an agent defines the prices $r_{t,i}^\mathrm{sh}$ and $r_t,i^\mathrm{bh}.$ Its objective is to maximize the use of local energy in a microgrid by defining the pricing policy for local transactions. We described it using the following equations: $$\begin{aligned}&E_{t,i}^{\mathrm{st}}=E_{t,i}^{imp_{2}}+E_{t,i}^{imp_{3}},E_{t,i}^{imp_{2}}=\sum_{j}E_{t,i,j}^{imp_{2}},E_{t,i}^{imp_{3}}=\sum_{j}E_{t,i,j}^{imp_{3}},\\&E_{t,i}^{\mathrm{sp}}=E_{t,i}^{exp_{2}}+E_{t,i}^{exp_{3}},E_{t,i}^{exp_{2}}=\sum_{j}E_{t,i,j}^{exp_{2}},E_{t,i}^{exp_{3}}=\sum_{j}E_{t,i,j}^{exp_{3}},\\&E_{t,i}^{\mathrm{net}}=E_{t,i}^{\mathrm{st}}-E_{t,i}^{\mathrm{sp}}.\end{aligned}$$ (5) (6) (7) A microgrid will experience an (energy) shortage state when the local energy is insufficient to cover the internal demand and experience an (energy) surplus state when the distributed generation surpasses the internal demand. In the first case, a microgrid could access energy available in other microgrids. In the second case, it could sell energy to other microgrids experiencing a shortage. If energy is unavailable/over-produced at the current microgrid layer, it will be imported or exported to the third layer. With this, we can define this layer's objective function: $$\min\left\{\begin{array}{lll}E_{t,i}^{imp_3}(r_t^{\mathrm{sd}}+c_t)+E_{t,i}^{imp_2}r_t^{\mathrm{sm}},&\text{if}&E_{t,i}^{\mathrm{net}}\geq0,\\E_{t,i}^{exp_3}r_t^{\mathrm{bd}}+E_{t,i}^{exp_2}r_t^{\mathrm{bm}},&\text{if}&E_{t,i}^{\mathrm{net}}<0.\end{array}\right.$$ (8) 3
[ [ "0.1732", "0.02968", "0.7935", "0.03093", "0.7935", "0.04544", "0.1732", "0.0442" ], [ "0.1765", "0.04736", "0.2566", "0.04736", "0.2566", "0.05936", "0.1765", "0.05936" ], [ "0.267", "0.1193", "0.392", "0.1193", "0.392", "0.1332", "0.267", "0.1332" ], [ "0.4043", "0.1193", "0.527", "0.1193", "0.527", "0.1338", "0.4043", "0.1338" ], [ "0.54", "0.1193", "0.6724", "0.1193", "0.6724", "0.1332", "0.54", "0.1332" ], [ "0.6914", "0.1187", "0.738", "0.1206", "0.7363", "0.1364", "0.6895", "0.1338" ], [ "0.7715", "0.1193", "0.814", "0.1193", "0.814", "0.1338", "0.7715", "0.1338" ], [ "0.2998", "0.132", "0.3586", "0.132", "0.3586", "0.2134", "0.2998", "0.2134" ], [ "0.4495", "0.1332", "0.486", "0.137", "0.4805", "0.161", "0.4436", "0.1572" ], [ "0.5884", "0.1364", "0.626", "0.1364", "0.626", "0.1572", "0.5884", "0.1572" ], [ "0.687", "0.1383", "0.7417", "0.1401", "0.74", "0.1559", "0.6855", "0.154" ], [ "0.7754", "0.1395", "0.808", "0.1395", "0.808", "0.1547", "0.7754", "0.1547" ], [ "0.687", "0.154", "0.7417", "0.1572", "0.74", "0.1724", "0.6855", "0.1692" ], [ "0.1732", "0.1383", "0.2051", "0.1383", "0.2051", "0.154", "0.1732", "0.154" ], [ "0.1732", "0.1547", "0.2385", "0.1547", "0.2385", "0.1692", "0.1732", "0.1692" ], [ "0.7754", "0.1547", "0.8096", "0.1547", "0.8096", "0.1704", "0.7754", "0.1704" ], [ "0.1724", "0.1686", "0.2378", "0.1704", "0.2378", "0.1849", "0.1724", "0.1831" ], [ "0.687", "0.1692", "0.7417", "0.1724", "0.74", "0.1875", "0.6855", "0.1843" ], [ "0.777", "0.1692", "0.8096", "0.1692", "0.8096", "0.1849", "0.777", "0.1849" ], [ "0.1732", "0.1863", "0.2336", "0.1881", "0.232", "0.2026", "0.1724", "0.2008" ], [ "0.687", "0.1849", "0.7417", "0.1881", "0.74", "0.2039", "0.6855", "0.2008" ], [ "0.777", "0.1863", "0.8096", "0.1863", "0.8096", "0.202", "0.777", "0.202" ], [ "0.3022", "0.1963", "0.357", "0.1963", "0.357", "0.2405", "0.3022", "0.2405" ], [ "0.4436", "0.1976", "0.4844", "0.1945", "0.4885", "0.238", "0.4478", "0.2412" ], [ "0.589", "0.2008", "0.621", "0.1976", "0.625", "0.2166", "0.5933", "0.2197" ], [ "0.687", "0.2008", "0.7427", "0.2058", "0.74", "0.2197", "0.6846", "0.214" ], [ "0.777", "0.202", "0.808", "0.202", "0.808", "0.2172", "0.777", "0.2172" ], [ "0.591", "0.2134", "0.6235", "0.2134", "0.6235", "0.2349", "0.591", "0.2349" ], [ "0.1732", "0.2026", "0.2402", "0.2026", "0.2402", "0.2172", "0.1732", "0.2172" ], [ "0.687", "0.2166", "0.7417", "0.2184", "0.74", "0.2329", "0.6855", "0.2311" ], [ "0.777", "0.2166", "0.8096", "0.2166", "0.8096", "0.2317", "0.777", "0.2317" ], [ "0.304", "0.2291", "0.353", "0.2291", "0.353", "0.254", "0.304", "0.254" ], [ "0.1732", "0.2172", "0.232", "0.2172", "0.232", "0.2317", "0.1732", "0.2317" ], [ "0.687", "0.2343", "0.7417", "0.2361", "0.74", "0.2507", "0.6855", "0.2488" ], [ "0.7754", "0.2343", "0.808", "0.2343", "0.808", "0.25", "0.7754", "0.25" ], [ "0.3015", "0.2474", "0.3489", "0.2412", "0.3545", "0.2676", "0.3064", "0.2734" ], [ "0.1732", "0.2349", "0.2507", "0.2349", "0.2507", "0.25", "0.1732", "0.25" ], [ "0.687", "0.25", "0.7417", "0.252", "0.74", "0.2664", "0.6855", "0.2644" ], [ "0.777", "0.25", "0.8096", "0.25", "0.8096", "0.2651", "0.777", "0.2651" ], [ "0.304", "0.262", "0.3545", "0.262", "0.3545", "0.2886", "0.304", "0.2886" ], [ "0.1732", "0.2507", "0.2507", "0.2507", "0.2507", "0.2651", "0.1732", "0.2651" ], [ "0.1732", "0.2664", "0.2507", "0.2695", "0.25", "0.2854", "0.1724", "0.2822" ], [ "0.4412", "0.262", "0.4927", "0.262", "0.4927", "0.2874", "0.4412", "0.2874" ], [ "0.687", "0.2676", "0.7417", "0.2695", "0.74", "0.2842", "0.6855", "0.2822" ], [ "0.7754", "0.2676", "0.808", "0.2676", "0.808", "0.2827", "0.7754", "0.2827" ], [ "0.3057", "0.281", "0.353", "0.281", "0.353", "0.3062", "0.3057", "0.3062" ], [ "0.4412", "0.2798", "0.4927", "0.2798", "0.4927", "0.305", "0.4412", "0.305" ], [ "0.687", "0.2854", "0.7427", "0.2874", "0.7417", "0.3018", "0.6855", "0.2998" ], [ "0.777", "0.2854", "0.8096", "0.2854", "0.8096", "0.3005", "0.777", "0.3005" ], [ "0.304", "0.2986", "0.357", "0.2986", "0.357", "0.3257", "0.304", "0.3257" ], [ "0.1732", "0.2842", "0.2524", "0.2874", "0.2507", "0.3018", "0.1724", "0.2986" ], [ "0.4387", "0.2986", "0.492", "0.2966", "0.4927", "0.3213", "0.4412", "0.324" ], [ "0.687", "0.3005", "0.7427", "0.3037", "0.7417", "0.3193", "0.6855", "0.3164" ], [ "0.777", "0.2998", "0.8096", "0.303", "0.806", "0.318", "0.774", "0.315" ], [ "0.5786", "0.3018", "0.6284", "0.2935", "0.634", "0.3132", "0.584", "0.3213" ], [ "0.1732", "0.303", "0.2524", "0.303", "0.2524", "0.3176", "0.1732", "0.3176" ], [ "0.3057", "0.3164", "0.3545", "0.3164", "0.3545", "0.3423", "0.3057", "0.3423" ], [ "0.437", "0.3164", "0.4927", "0.3113", "0.4968", "0.339", "0.4412", "0.3447" ], [ "0.5786", "0.3193", "0.6284", "0.3113", "0.634", "0.3308", "0.584", "0.339" ], [ "0.687", "0.3193", "0.7417", "0.3213", "0.74", "0.336", "0.6855", "0.334" ], [ "0.777", "0.3193", "0.808", "0.3193", "0.808", "0.3352", "0.777", "0.3352" ], [ "0.1724", "0.334", "0.2427", "0.336", "0.2427", "0.351", "0.1724", "0.3484" ], [ "0.1724", "0.3193", "0.2524", "0.3213", "0.2524", "0.336", "0.1724", "0.334" ], [ "0.693", "0.3352", "0.7363", "0.3352", "0.7363", "0.351", "0.693", "0.351" ], [ "0.7563", "0.334", "0.826", "0.334", "0.826", "0.3484", "0.7563", "0.3484" ], [ "0.3105", "0.3447", "0.3472", "0.3447", "0.3472", "0.387", "0.3105", "0.387" ], [ "0.597", "0.3384", "0.6167", "0.3384", "0.6167", "0.3516", "0.597", "0.3516" ], [ "0.1732", "0.3499", "0.2059", "0.3499", "0.2059", "0.3655", "0.1732", "0.3655" ], [ "0.693", "0.3499", "0.7363", "0.3499", "0.7363", "0.3655", "0.693", "0.3655" ], [ "0.7686", "0.3499", "0.8164", "0.3499", "0.8164", "0.3655", "0.7686", "0.3655" ], [ "0.585", "0.3567", "0.6113", "0.3416", "0.626", "0.356", "0.6006", "0.3718" ], [ "0.4478", "0.363", "0.4836", "0.363", "0.4836", "0.3838", "0.4478", "0.3838" ], [ "0.4436", "0.3547", "0.4756", "0.3423", "0.4878", "0.3599", "0.4575", "0.3726" ], [ "0.5884", "0.363", "0.6235", "0.3591", "0.6274", "0.3806", "0.5923", "0.385" ], [ "0.693", "0.363", "0.7363", "0.3655", "0.7344", "0.3818", "0.6914", "0.3801" ], [ "0.7686", "0.3655", "0.8164", "0.3655", "0.8164", "0.3806", "0.7686", "0.3806" ], [ "0.3757", "0.3914", "0.621", "0.3914", "0.621", "0.4048", "0.3757", "0.4048" ], [ "0.1732", "0.3662", "0.2075", "0.3662", "0.2075", "0.3818", "0.1732", "0.3818" ], [ "0.1732", "0.432", "0.3472", "0.432", "0.3472", "0.4458", "0.1732", "0.4458" ], [ "0.3342", "0.4475", "0.569", "0.4475", "0.569", "0.476", "0.3342", "0.476" ], [ "0.8013", "0.4526", "0.8286", "0.4526", "0.8286", "0.4702", "0.8013", "0.4702" ], [ "0.3342", "0.4673", "0.5605", "0.4673", "0.5605", "0.4956", "0.3342", "0.4956" ], [ "0.8013", "0.473", "0.8286", "0.473", "0.8286", "0.4905", "0.8013", "0.4905" ], [ "0.335", "0.4924", "0.661", "0.4924", "0.661", "0.5146", "0.335", "0.5146" ], [ "0.8013", "0.4944", "0.8286", "0.4944", "0.8286", "0.512", "0.8013", "0.512" ], [ "0.1724", "0.5166", "0.8267", "0.5166", "0.8267", "0.537", "0.1724", "0.537" ], [ "0.7183", "0.521", "0.726", "0.5264", "0.721", "0.532", "0.7134", "0.526" ], [ "0.1772", "0.536", "0.824", "0.536", "0.824", "0.5503", "0.1772", "0.5503" ], [ "0.1732", "0.55", "0.8228", "0.55", "0.8228", "0.5645", "0.1732", "0.5645" ], [ "0.1748", "0.565", "0.824", "0.565", "0.824", "0.579", "0.1748", "0.579" ], [ "0.1732", "0.58", "0.826", "0.58", "0.826", "0.5933", "0.1732", "0.5933" ], [ "0.1732", "0.5933", "0.8286", "0.5933", "0.8286", "0.607", "0.1732", "0.607" ], [ "0.2974", "0.607", "0.6094", "0.607", "0.6094", "0.6396", "0.2974", "0.6396" ], [ "0.6094", "0.61", "0.7256", "0.61", "0.7256", "0.6396", "0.6094", "0.6396" ], [ "0.3105", "0.619", "0.569", "0.619", "0.569", "0.655", "0.3105", "0.655" ], [ "0.5483", "0.6226", "0.607", "0.6187", "0.609", "0.63", "0.55", "0.634" ], [ "0.613", "0.619", "0.619", "0.619", "0.619", "0.6255", "0.613", "0.6255" ], [ "0.8022", "0.6235", "0.8267", "0.6235", "0.8267", "0.637", "0.8022", "0.637" ], [ "0.3406", "0.6255", "0.3586", "0.6255", "0.3586", "0.629", "0.3406", "0.629" ], [ "0.2695", "0.625", "0.308", "0.625", "0.308", "0.636", "0.2695", "0.636" ], [ "0.619", "0.632", "0.6406", "0.632", "0.6406", "0.6445", "0.619", "0.6445" ], [ "0.6396", "0.636", "0.6465", "0.636", "0.6465", "0.6416", "0.6396", "0.6416" ], [ "0.642", "0.631", "0.721", "0.631", "0.721", "0.6494", "0.642", "0.6494" ], [ "0.312", "0.638", "0.3203", "0.636", "0.3218", "0.6396", "0.3137", "0.6416" ], [ "0.1748", "0.664", "0.2141", "0.664", "0.2141", "0.675", "0.1748", "0.675" ], [ "0.2059", "0.662", "0.423", "0.662", "0.423", "0.6753", "0.2059", "0.6753" ], [ "0.1732", "0.688", "0.8267", "0.6875", "0.8267", "0.702", "0.1732", "0.7026" ], [ "0.1748", "0.7026", "0.826", "0.7026", "0.826", "0.7173", "0.1748", "0.7173" ], [ "0.1724", "0.7163", "0.406", "0.7173", "0.406", "0.731", "0.1724", "0.73" ], [ "0.4429", "0.732", "0.5884", "0.7344", "0.5884", "0.7603", "0.4429", "0.7583" ], [ "0.6313", "0.732", "0.778", "0.732", "0.778", "0.761", "0.6313", "0.761" ], [ "0.8013", "0.738", "0.8286", "0.738", "0.8286", "0.755", "0.8013", "0.755" ], [ "0.4453", "0.752", "0.5884", "0.752", "0.5884", "0.781", "0.4453", "0.781" ], [ "0.2303", "0.733", "0.392", "0.733", "0.392", "0.7583", "0.2303", "0.7583" ], [ "0.2279", "0.754", "0.3882", "0.752", "0.3882", "0.7764", "0.2279", "0.779" ], [ "0.6323", "0.752", "0.774", "0.754", "0.774", "0.78", "0.6323", "0.778" ], [ "0.8013", "0.7583", "0.8286", "0.7583", "0.8286", "0.7744", "0.8013", "0.7744" ], [ "0.2239", "0.7734", "0.3586", "0.776", "0.3586", "0.799", "0.2239", "0.797" ], [ "0.8013", "0.78", "0.8286", "0.78", "0.8286", "0.797", "0.8013", "0.797" ], [ "0.1748", "0.8037", "0.8228", "0.8037", "0.8228", "0.8174", "0.1748", "0.8174" ], [ "0.1724", "0.8174", "0.8228", "0.8174", "0.8228", "0.8306", "0.1724", "0.8306" ], [ "0.1748", "0.8306", "0.824", "0.8306", "0.824", "0.845", "0.1748", "0.845" ], [ "0.1748", "0.845", "0.826", "0.845", "0.826", "0.8594", "0.1748", "0.8594" ], [ "0.1732", "0.8594", "0.824", "0.858", "0.824", "0.8726", "0.1732", "0.8735" ], [ "0.1748", "0.8726", "0.826", "0.8726", "0.826", "0.886", "0.1748", "0.886" ], [ "0.1732", "0.887", "0.3105", "0.887", "0.3105", "0.901", "0.1732", "0.901" ], [ "0.3628", "0.904", "0.574", "0.904", "0.574", "0.925", "0.3628", "0.925" ], [ "0.5767", "0.904", "0.675", "0.906", "0.675", "0.925", "0.5767", "0.9224" ], [ "0.569", "0.9136", "0.581", "0.9136", "0.581", "0.9175", "0.569", "0.9175" ], [ "0.8013", "0.9155", "0.8286", "0.9155", "0.8286", "0.9316", "0.8013", "0.9316" ], [ "0.3635", "0.9204", "0.5254", "0.9204", "0.5254", "0.9424", "0.3635", "0.9424" ], [ "0.3162", "0.9165", "0.3555", "0.9185", "0.3545", "0.9297", "0.3145", "0.928" ], [ "0.5786", "0.9204", "0.6763", "0.9204", "0.6763", "0.9424", "0.5786", "0.9424" ], [ "0.3774", "0.9316", "0.398", "0.9316", "0.398", "0.9395", "0.3774", "0.9395" ], [ "0.4697", "0.9297", "0.482", "0.9297", "0.482", "0.9346", "0.4697", "0.9346" ], [ "0.492", "0.9604", "0.5073", "0.9604", "0.5073", "0.9746", "0.492", "0.9746" ] ]
[ "Published as a workshop paper at \"Tackling Climate Change with Machine Learning\"", "ICLR2023", "Ll: Household", "L2: Microgrid", "L3: Distributor", "Type", "Unit", "", "Est", "Epet", "Energy", "Wh", "Energy", "Net", "Demand", "Wh", "PV Gen", "Energy", "Wh", "Battery", "Energy", "Wh", "2", "9", "Est", "Energy", "Wh", "Ep", "Shortage", "Energy", "Wh", "Ei", "Surplus", "Energy", "Wh", "Bet", "L1 Import", "Energy", "Wh", "E", "L1 Export", "L2 Import", "Eimpa", "Energy", "Wh", "B", "etnpa", "Energy", "Wh", "E", "L2Export", "Egrpa", "Energy", "Wh", "Eimps'", "L3 Import", "r", "eiips", "Eimpa'", "Energy", "Wh", "Emission", "L3 Export", "GHG", "CO2/Wh", "", "Ct", "Sell", "Price", "$/Wh", "", "rbim", "m", "rpd", "Price", "$/Wh", "Table 1: Table of defined symbols.", "Buy", "this layer are as follows:", "E, - E' + Et + Et", "(1)", "D, - E + D + D", "(2)", "Enet =Et.Ep, =EloadEp,±ba", "(3)", "In the case of consumer households with no PV panel, the generation Er,., = 0. When", "", "Enet, ≥ 0 (called \"shortage\" state), it means there is extra energy needed from external", "sources (e.g., retailers or other households). When Enet, < o (called “surplus\" state), there", "is surplus energy available to sell back to the external power grid or other households in", "shortage. The Equation (3) presents a constraint that should be satisfied as it is impossible", "to have both scenarios simultaneously. Finally, we define the objective function of this layer:", "[ c +)+erter.", "1E20.", "", "t,i,j'rt,i,", "", "(4)", "9", "min", "if", "", "Enes<0.", "", "2.2", "SECOND LAYER:MICROGRID", "In this layer, an agent defines the prices rsh and rbh. Its objective is to maximize the use of", "local energy in a microgrid by defining the pricing policy for local transactions. We described", "it using the following equations:", "Etpa = 2, Etnp,", "Es - 2,Ein.", "(5)", "ep - 2,e,", "Er = Eimpa + Etnps,", "EP = Ep? + Eps,", "Epa = Z,Et,", "(6)", "Epet = Ett E.", "(7)", "A microgrid will experience an (energy) shortage state when the local energy is insufficient", "to cover the internal demand and experience an (energy) surplus state when the distributed", "generation surpasses the internal demand. In the first case, a microgrid could access energy", "available in other microgrids. In the second case, it could sell energy to other microgrids", "experiencing a shortage. If energy is unavailable/over-produced at the current microgrid", "layer, it will be imported or exported to the third layer. With this, we can define this layer's", "objective function:", "Eimp (rsd + ct) + Eimparem,", "if Epet ≥0,", "", "(8)", "Etaparba+Eeaparbm", "min3", "if Eret<0.", "t.i", "", "3" ]
{ "arxiv_id": "2303.08447", "language": "en", "page_idx": 2 }
2303.08447-en-3
2303.08447-en-3.jpg
Published as a workshop paper at "Tackling Climate Change with Machine Learning", ICLR 2023 2.3 THIRD LAYER: DISTRIBUTOR In this layer, the agent tries to shape the overall load among the multiple microgrids, enabling energy trading and simultaneously minimizing the carbon footprint by setting the buy $(r_t^\mathrm{bm})$ $\begin{array}{c}\mathrm{and~sell~}(r_{t}^{\mathrm{sm}})&\mathrm{prices~among~the~microgrids.~The~prices~for~selling~energy~}(r_{t}^{\mathrm{sd}})&\mathrm{and~accepting}\\\end{array}$ $\begin{array}{ll}{\mathrm{surplus~}(r_{t}^{\mathrm{bd}})\text{ from the microgrids are not controlled in this layer and are treated as external}}\\{\mathrm{inputs~(from~the~previous~layer).~To~define~the~objective~function~of~the~distributor,~we~need}}\end{array}$ frst to define the following: $$E_t^{\mathrm{st}}=E_t^{imp_3}=\sum_iE_{t,i}^{imp_3}$$ (9) $$E_t^{\mathrm{sp}}=E_t^{exp_3}=\sum_iE_{t,i}^{exp_3}$$ $$E_t^{\mathrm{net}}=E_t^{\mathrm{st}}-E_t^{\mathrm{sp}}=E_t^{imp_3}-E_t^{exp_3}$$ (10) (11) Then, we can define the distributor's objective function as follows: $$\min\left\{\begin{array}{lll}E_t^{imp_3}(r_t^{\mathrm{sd}}+c_t),&\text{if}&E_t^{\mathrm{net}}\geq0,\\E_t^{exp_3}r_t^{\mathrm{bd}},&\text{if}&E_t^{\mathrm{net}}<0.\end{array}\right.$$ (12) In addition, we assume there is only one distributor and that the energy consumed within or between microgrids has negligible carbon impact. We also implemented a simple local energy market based on the physical distance between the household and the microgrids. ## 3 RESULTS AND ANALYSIS ## 3.1 EXPERIMENTAL SETUP We configured our environment (in OpenAI Gym) to present different sets of households for training, validation, and testing. Detail about the precise attributes of the dataset is present in the appendix. A critical difference from existing work like Xu et al. (2022) is the possibility of enabling and disabling the stochasticity in our setup. ## 3.2 MODEL PERFORMANCE We propose a performance metric based on how energy cost and carbon impact are improved by optimally managing distributed storage. The metric measures the scenario without batteries against the use of our hierarchical control. Each household contributes to the metric individually, and the upper levels aggregate them to have microgrid-level and distributor-level performance. <table> <tbody> <tr> <th> </th> <th>CVXPY</th> <th>MAHTM</th> <th>COMA</th> </tr> <tr> <td>Train reward</td> <td>-0.915</td> <td>-0.993</td> <td>-1.3</td> </tr> <tr> <td>Train price SCOre</td> <td>-0.103</td> <td>-0.097</td> <td>0.35</td> </tr> <tr> <td>Train emisslon Score 1</td> <td>-0.223</td> <td>-0.1522</td> <td>0.35</td> </tr> <tr> <td>Train 1 time 1</td> <td>$0.9\mathbf{s}$</td> <td>10m</td> <td>2h</td> </tr> <tr> <td>Test price score</td> <td>-0.0889</td> <td>-0.064</td> <td>0.0625</td> </tr> <tr> <td>Test emission SCOre</td> <td>-0.19</td> <td>-0.097</td> <td>0.0625</td> </tr> </tbody> </table> Table 2: Average performance of households (lower is better, except for reward) Table 2 presents our current empirical results comparing the optimal solution for our scenario using a linear solver (CVXPY)$\bar\text{Diamond and Boyd }(20\bar{1}6)$, our framework, and COMA (one of the state-of-the-art MARL algorithms). One of the things to highlight about our approach is its training speed and simplicity versus COMA, which is very sensitive to hyperparameter tuning. Our framework reached solutions very close to the optimal within a reasonable training time. 4
[ [ "0.1724", "0.02904", "0.794", "0.02968", "0.794", "0.04736", "0.1724", "0.04672" ], [ "0.1732", "0.0442", "0.2566", "0.04672", "0.2566", "0.06125", "0.1732", "0.05936" ], [ "0.1748", "0.1193", "0.2035", "0.1193", "0.2035", "0.1307", "0.1748", "0.1307" ], [ "0.21", "0.1187", "0.4272", "0.1187", "0.4272", "0.132", "0.21", "0.132" ], [ "0.1748", "0.1459", "0.8228", "0.1459", "0.8228", "0.159", "0.1748", "0.159" ], [ "0.1748", "0.159", "0.8228", "0.159", "0.8228", "0.1724", "0.1748", "0.1724" ], [ "0.1748", "0.1736", "0.8228", "0.1736", "0.8228", "0.1875", "0.1748", "0.1875" ], [ "0.1724", "0.1843", "0.826", "0.1863", "0.826", "0.2039", "0.1724", "0.202" ], [ "0.1748", "0.2008", "0.826", "0.2008", "0.826", "0.2153", "0.1748", "0.2153" ], [ "0.1732", "0.2134", "0.3733", "0.2153", "0.3733", "0.2299", "0.1732", "0.2279" ], [ "0.4102", "0.2299", "0.5884", "0.2279", "0.5884", "0.2488", "0.4102", "0.2507" ], [ "0.8013", "0.2317", "0.8286", "0.2317", "0.8286", "0.25", "0.8013", "0.25" ], [ "0.411", "0.2588", "0.5864", "0.2588", "0.5864", "0.2798", "0.411", "0.2798" ], [ "0.7935", "0.262", "0.8267", "0.262", "0.8267", "0.2798", "0.7935", "0.2798" ], [ "0.3733", "0.2917", "0.625", "0.289", "0.625", "0.307", "0.3733", "0.3093" ], [ "0.7935", "0.2922", "0.8286", "0.2922", "0.8286", "0.3093", "0.7935", "0.3093" ], [ "0.1732", "0.315", "0.649", "0.315", "0.649", "0.3289", "0.1732", "0.3289" ], [ "0.407", "0.3372", "0.6284", "0.3384", "0.6284", "0.3591", "0.407", "0.358" ], [ "0.361", "0.351", "0.3938", "0.351", "0.3938", "0.363", "0.361", "0.363" ], [ "0.3987", "0.3516", "0.486", "0.3516", "0.486", "0.375", "0.3987", "0.375" ], [ "0.794", "0.3484", "0.8267", "0.3484", "0.8267", "0.3655", "0.794", "0.3655" ], [ "0.5337", "0.356", "0.6284", "0.3542", "0.6284", "0.3718", "0.5337", "0.3738" ], [ "0.1748", "0.3833", "0.8228", "0.3833", "0.8228", "0.3977", "0.1748", "0.3977" ], [ "0.1748", "0.3977", "0.824", "0.3977", "0.824", "0.411", "0.1748", "0.411" ], [ "0.1748", "0.411", "0.8105", "0.411", "0.8105", "0.4248", "0.1748", "0.4248" ], [ "0.1748", "0.449", "0.2091", "0.449", "0.2091", "0.461", "0.1748", "0.461" ], [ "0.2051", "0.449", "0.4182", "0.449", "0.4182", "0.4622", "0.2051", "0.4622" ], [ "0.1732", "0.481", "0.3816", "0.481", "0.3816", "0.4944", "0.1732", "0.4944" ], [ "0.1732", "0.507", "0.8228", "0.507", "0.8228", "0.5215", "0.1732", "0.5215" ], [ "0.1732", "0.5215", "0.824", "0.5215", "0.824", "0.535", "0.1732", "0.535" ], [ "0.1732", "0.534", "0.8228", "0.534", "0.8228", "0.549", "0.1732", "0.549" ], [ "0.1724", "0.549", "0.652", "0.55", "0.652", "0.5645", "0.1724", "0.563" ], [ "0.1748", "0.584", "0.2018", "0.584", "0.2018", "0.595", "0.1748", "0.595" ], [ "0.2018", "0.582", "0.3857", "0.5835", "0.3857", "0.5967", "0.2018", "0.595" ], [ "0.1748", "0.61", "0.824", "0.61", "0.824", "0.6235", "0.1748", "0.6235" ], [ "0.1748", "0.625", "0.8228", "0.625", "0.8228", "0.638", "0.1748", "0.638" ], [ "0.1748", "0.637", "0.8228", "0.637", "0.8228", "0.651", "0.1748", "0.651" ], [ "0.1748", "0.6514", "0.824", "0.6514", "0.824", "0.6665", "0.1748", "0.6665" ], [ "0.1765", "0.6675", "0.2656", "0.6675", "0.2656", "0.6787", "0.1765", "0.6787" ], [ "0.4722", "0.6987", "0.536", "0.6987", "0.536", "0.7134", "0.4722", "0.7134" ], [ "0.5474", "0.6987", "0.6216", "0.6987", "0.6216", "0.7134", "0.5474", "0.7134" ], [ "0.6357", "0.6987", "0.693", "0.6987", "0.693", "0.7134", "0.6357", "0.7134" ], [ "0.482", "0.7183", "0.535", "0.7183", "0.535", "0.7344", "0.482", "0.7344" ], [ "0.5728", "0.7183", "0.6216", "0.7183", "0.6216", "0.7344", "0.5728", "0.7344" ], [ "0.66", "0.7183", "0.6953", "0.7183", "0.6953", "0.7344", "0.66", "0.7344" ], [ "0.482", "0.733", "0.535", "0.733", "0.535", "0.7485", "0.482", "0.7485" ], [ "0.308", "0.72", "0.4019", "0.72", "0.4019", "0.732", "0.308", "0.732" ], [ "0.5728", "0.733", "0.621", "0.733", "0.621", "0.7485", "0.5728", "0.7485" ], [ "0.6562", "0.733", "0.694", "0.733", "0.694", "0.75", "0.6562", "0.75" ], [ "0.3057", "0.747", "0.4558", "0.7485", "0.4558", "0.763", "0.3057", "0.761" ], [ "0.3064", "0.7344", "0.429", "0.7344", "0.429", "0.7485", "0.3064", "0.7485" ], [ "0.5645", "0.747", "0.621", "0.747", "0.621", "0.762", "0.5645", "0.762" ], [ "0.6562", "0.747", "0.694", "0.747", "0.694", "0.762", "0.6562", "0.762" ], [ "0.4983", "0.762", "0.536", "0.762", "0.536", "0.778", "0.4983", "0.778" ], [ "0.4805", "0.7476", "0.536", "0.7476", "0.536", "0.762", "0.4805", "0.762" ], [ "0.5884", "0.762", "0.621", "0.762", "0.621", "0.778", "0.5884", "0.778" ], [ "0.6724", "0.762", "0.693", "0.762", "0.693", "0.7764", "0.6724", "0.7764" ], [ "0.6406", "0.776", "0.694", "0.776", "0.694", "0.7915", "0.6406", "0.7915" ], [ "0.3096", "0.7646", "0.3857", "0.7646", "0.3857", "0.776", "0.3096", "0.776" ], [ "0.3064", "0.7764", "0.4207", "0.7764", "0.4207", "0.7905", "0.3064", "0.7905" ], [ "0.4722", "0.7764", "0.535", "0.7764", "0.535", "0.7915", "0.4722", "0.7915" ], [ "0.574", "0.7764", "0.6216", "0.7764", "0.6216", "0.7915", "0.574", "0.7915" ], [ "0.3057", "0.789", "0.4468", "0.7905", "0.4468", "0.8047", "0.3057", "0.8037" ], [ "0.492", "0.7905", "0.535", "0.7905", "0.535", "0.806", "0.492", "0.806" ], [ "0.574", "0.7905", "0.621", "0.7905", "0.621", "0.8047", "0.574", "0.8047" ], [ "0.6406", "0.7905", "0.694", "0.7905", "0.694", "0.806", "0.6406", "0.806" ], [ "0.21", "0.8125", "0.785", "0.813", "0.785", "0.8276", "0.21", "0.827" ], [ "0.1748", "0.854", "0.8228", "0.853", "0.8228", "0.867", "0.1748", "0.8687" ], [ "0.1765", "0.8687", "0.824", "0.8687", "0.824", "0.882", "0.1765", "0.882" ], [ "0.1732", "0.882", "0.8228", "0.8833", "0.8228", "0.898", "0.1732", "0.8965" ], [ "0.1748", "0.8965", "0.824", "0.8965", "0.824", "0.911", "0.1748", "0.911" ], [ "0.1748", "0.911", "0.824", "0.911", "0.824", "0.925", "0.1748", "0.925" ], [ "0.1748", "0.927", "0.273", "0.927", "0.273", "0.938", "0.1748", "0.938" ], [ "0.492", "0.9604", "0.5073", "0.9604", "0.5073", "0.976", "0.492", "0.976" ] ]
[ "Published as a workshop paper at \"Tackling Climate Change with Machine Learning\",", "ICLR2023", "2.3", "THIRDLAYER:DISTRIBUTOR", "In this layer, the agent tries to shape the overall load among the multiple microgrids, enabling", "energy trading and simultaneously minimizing the carbon footprint by setting the buy (rbm", "and sell (rsm) prices among the microgrids. The prices for selling energy (rsd) and accepting", "surplus (rbd) from the microgrids are not controlled in this layer and are treated as external", "inputs (from the previous layer). To define the objective function of the distributor, we need", "first to define the following:", "Ett - Eimpa = Z,Etmpa", "(9)", "EP = Eeapa - ,Etrp3", "(10)", "Enet =Est-EsP=Eimp3-Eerp3", "(11)", "Then, we can define the distributor's objective function as follows:", "Eimpa(rsd + ct), if Enet ≥0,", "min", "Eeaparpa,", "(12)", "if Enet <0.", "In addition, we assume there is only one distributor and that the energy consumed within", "or between microgrids has negligible carbon impact. We also implemented a simple local", "energy market based on the physical distance between the household and the microgrids.", "3", "RESULTSANDANALYSIS", "3.1EXPERIMENTAL SETUP", "We configured our environment (in OpenAI Gym) to present different sets of households", "for training, validation, and testing. Detail about the precise attributes of the dataset is", "present in the appendix. A critical difference from existing work like Xu et al. (2022) is the", "possibility of enabling and disabling the stochasticity in our setup.", "3.2", "MODELPERFORMANCE", "We propose a performance metric based on how energy cost and carbon impact are improved", "by optimally managing distributed storage.The metric measures the scenario without", "batteries against the use of our hierarchical control. Each household contributes to the metric", "individually, and the upper levels aggregate them to have microgrid-level and distributor-level", "performance", "CVXPY", "MAHTM", "COMA", "-0.915", "-0.993", "-1.3", "-0.103", "Train reward", "-0.097", "0.35", "Train emission score", "Train price score", "-0.1522", "0.35", "0.9s", "-0.223", "10m", "2h", "0.0625", "Train time", "Test price score", "-0.0889", "-0.064", "Test emission score", "-0.19", "-0.097", "0.0625", "Table 2: Average performance of households (lower is better, except for reward).", "Table 2 presents our current empirical results comparing the optimal solution for our scenario", "using a linear solver (CVXPY)Diamond and Boyd (2016), our framework, and COMA (one", "of the state-of-the-art MARL algorithms). One of the things to highlight about our approach", "is its training speed and simplicity versus COMA, which is very sensitive to hyperparameter", "tuning. Our framework reached solutions very close to the optimal within a reasonable", "training time.", "4" ]
{ "arxiv_id": "2303.08447", "language": "en", "page_idx": 3 }
2303.08447-en-4
2303.08447-en-4.jpg
Published as a workshop paper at "Tackling Climate Change with Machine Learning", ICLR 2023 ## 4 CONCLUSION The proposed framework systematically applies the MARL technique to transactive $\begin{array}{c}\mathrm{microgrids.~The~results~are~compared~with~one~classic~MARL~algorithm.~A~customized}\\\mathrm{microgrids.~The~results~are~compared~with~one~classic~MARL~algorithm.~A~customized}\end{array}$ Open$\tilde{\text{AI Gym environment was also created to serve as the test bench for this work. Our}}$ framework can help the development of local renewable energy markets, fostering emission reduction and more consumer engagement. (The source code and demo fles have been anonymized and are available in this repository link.) REFERENCES Amjad Anvari-Moghaddam, Ashkan Rahimi-Kian, Maryam S. Mirian, and Josep M. Guerrero A multi-agent based energy management solution for integrated buildings and microgrid system. $AppliedEnergy,203:41-56,2017.$ ISSN 0306-2619. doi: https://doi.org/10.1016/j. apenergy.2017.06.007. URL https://www.sciencedirect.com/science/article/pii/ S0306261917307572. Greg Brockman, Vicki Cheung, Ludwig Pettersson, Jonas Schneider, John Schulman, Jie Tang, and Wojciech Zaremba. Openai gym, 2016. Mathilde Caron, Hugo Touvron, Ishan Misra, Hervé Jégou, Julien Mairal, Piotr Bojanowski, $\begin{array}{c}\mathrm{and~Armand~Joulin.~Emerging~properties~in~self-supervised~vision~transformers.~In}\\\\D_{\mathrm{ch}}\end{array}$ $\begin{array}{cc}Proceedings&ofthe&IEEE/CVF&Intermational&Conference&on&Computer&Vision,\text{pages 9650}\\\\0cco&0031&&&&\\0.620&&&&\\\end{array}$ 9660, 2021. Steven Diamond and Stephen Boyd. CVXPY: A Python-embedded modeling language for convex optimization. $journal\textit{ of Machine Learning Research, 17( 83) : 1- 5, 2016}.$ Jakob Foerster, Gregory Farquhar, Triantafyllos Afouras, Nantas Nardelli, and Shimon Whiteson. Counterfactual multi-agent policy gradients, 2017. URL https://arxiv.org/ abs/ 1705. 08926. Benjamin D. Leibowicz, Christopher M. Lanham, Max T. Brozynski, José R. Vázquez-Canteli, Nicolás Castillo Castejón, and Zoltan Nagy. Optimal decarbonization pathways for urban residential building energy services. $AppliedEnergy,230:1311-1325,2018.$ ISSN 0306-2619. doi: https://doi.org/10.1016/j.apenergy.2018.09.046. URL https://www.sciencedirect. com/science/article/pii/S0306261918313552. Ming Tan. Multi-agent reinforcement learning: Independent versus cooperative agents. In $International\textit{ Conference on Machine Learning, 1993. }$ Jose R. Vazquez-Canteli, Gregor Henze, and Zoltan Nagy. Marlisa: Multi-agent reinforcement learning with iterative sequential action selection for load shaping of grid-interactive connected buildings. In $Proceedingsofthe7thACMInternationa\tilde{l} \textit{Conference on Systems}$ for $Energy- Efficient$ $Buildings$, $\bar{C} ities$, and $Transportation$, $\text{BuildSys }^{\prime }20$, page 170-179, New York, NY, USA, 2020. Association for Computing Machinery. ISBN 9781450380614. José R. Vázquez-Canteli, Stepan Ulyanin, Jérôme Kämpf, and Zoltán Nagy. Fusing tensorflow with building energy simulation for intelligent energy management in smart cities. $Sustainable\textit{Cities and Society, 45: 243- 257, 2019. ISSN 2210- 6707. doi: https: }$ //doi.org/10.1016/j.scs.2018.11.021. URL https://www.sciencedirect.com/science/ article/pii/S2210670718314380. Zhiwei Xu, Bin Zhang, Dapeng Li, Zeren Zhang, Guangchong Zhou, and Guoliang Fan. Consensus learning for cooperative multi-agent reinforcement learning, 2022. URL https: //arxiv.org/abs/2206.02583.
[ [ "0.1724", "0.02904", "0.794", "0.02968", "0.794", "0.04736", "0.1724", "0.04672" ], [ "0.1748", "0.04736", "0.2566", "0.04736", "0.2566", "0.05936", "0.1748", "0.05936" ], [ "0.1748", "0.11743", "0.1953", "0.11743", "0.1953", "0.13", "0.1748", "0.13" ], [ "0.2018", "0.11743", "0.3218", "0.11743", "0.3218", "0.1307", "0.2018", "0.1307" ], [ "0.2018", "0.1206", "0.2059", "0.1206", "0.2059", "0.1256", "0.2018", "0.1256" ], [ "0.1748", "0.1465", "0.8228", "0.1465", "0.8228", "0.161", "0.1748", "0.161" ], [ "0.1748", "0.161", "0.8228", "0.161", "0.8228", "0.1749", "0.1748", "0.1749" ], [ "0.1748", "0.1755", "0.8228", "0.1755", "0.8228", "0.1895", "0.1748", "0.1895" ], [ "0.1748", "0.1895", "0.8228", "0.1895", "0.8228", "0.2026", "0.1748", "0.2026" ], [ "0.1732", "0.2026", "0.4844", "0.2039", "0.4844", "0.2172", "0.1732", "0.2166" ], [ "0.1748", "0.2299", "0.824", "0.2299", "0.824", "0.2443", "0.1748", "0.2443" ], [ "0.1748", "0.2456", "0.3057", "0.2456", "0.3057", "0.2588", "0.1748", "0.2588" ], [ "0.1748", "0.2798", "0.2917", "0.2798", "0.2917", "0.2942", "0.1748", "0.2942" ], [ "0.1748", "0.3018", "0.8228", "0.3018", "0.8228", "0.315", "0.1748", "0.315" ], [ "0.1896", "0.3164", "0.824", "0.3164", "0.824", "0.33", "0.1896", "0.33" ], [ "0.1887", "0.3289", "0.822", "0.3289", "0.822", "0.3435", "0.1887", "0.3435" ], [ "0.1912", "0.3435", "0.824", "0.3435", "0.824", "0.358", "0.1912", "0.358" ], [ "0.1912", "0.3567", "0.3464", "0.358", "0.3464", "0.3718", "0.1912", "0.3706" ], [ "0.1748", "0.3738", "0.8228", "0.3738", "0.8228", "0.3882", "0.1748", "0.3882" ], [ "0.1912", "0.3882", "0.5483", "0.3882", "0.5483", "0.4016", "0.1912", "0.4016" ], [ "0.1748", "0.404", "0.824", "0.404", "0.824", "0.4172", "0.1748", "0.4172" ], [ "0.1912", "0.4185", "0.7974", "0.4185", "0.7974", "0.432", "0.1912", "0.432" ], [ "0.796", "0.4204", "0.8203", "0.4204", "0.8203", "0.4287", "0.796", "0.4287" ], [ "0.1912", "0.433", "0.822", "0.433", "0.822", "0.4463", "0.1912", "0.4463" ], [ "0.1929", "0.4475", "0.2737", "0.4475", "0.2737", "0.4583", "0.1929", "0.4583" ], [ "0.1724", "0.461", "0.8228", "0.4622", "0.8228", "0.4766", "0.1724", "0.476" ], [ "0.1912", "0.476", "0.7534", "0.476", "0.7534", "0.4905", "0.1912", "0.4905" ], [ "0.1732", "0.4905", "0.8228", "0.4912", "0.8228", "0.506", "0.1732", "0.505" ], [ "0.1896", "0.506", "0.8228", "0.506", "0.8228", "0.521", "0.1896", "0.521" ], [ "0.1929", "0.521", "0.3186", "0.521", "0.3186", "0.534", "0.1929", "0.534" ], [ "0.1748", "0.536", "0.826", "0.536", "0.826", "0.55", "0.1748", "0.55" ], [ "0.1912", "0.5503", "0.8228", "0.5503", "0.8228", "0.5645", "0.1912", "0.5645" ], [ "0.1896", "0.563", "0.826", "0.5625", "0.826", "0.577", "0.1896", "0.5776" ], [ "0.1896", "0.5776", "0.8286", "0.577", "0.8286", "0.5913", "0.1896", "0.5923" ], [ "0.1912", "0.5913", "0.5483", "0.5913", "0.5483", "0.605", "0.1912", "0.605" ], [ "0.1732", "0.607", "0.8228", "0.608", "0.8228", "0.6226", "0.1732", "0.622" ], [ "0.1896", "0.6226", "0.574", "0.6226", "0.574", "0.636", "0.1896", "0.636" ], [ "0.1748", "0.638", "0.8228", "0.638", "0.8228", "0.653", "0.1748", "0.653" ], [ "0.1912", "0.651", "0.8228", "0.651", "0.8228", "0.664", "0.1912", "0.664" ], [ "0.1929", "0.6665", "0.824", "0.6665", "0.824", "0.6797", "0.1929", "0.6797" ], [ "0.1929", "0.6797", "0.8228", "0.6797", "0.8228", "0.6934", "0.1929", "0.6934" ], [ "0.1912", "0.6934", "0.826", "0.6934", "0.826", "0.707", "0.1912", "0.707" ], [ "0.1896", "0.7085", "0.794", "0.7085", "0.794", "0.7217", "0.1896", "0.7217" ], [ "0.1732", "0.7227", "0.826", "0.7236", "0.826", "0.738", "0.1732", "0.7373" ], [ "0.1896", "0.738", "0.824", "0.738", "0.824", "0.752", "0.1896", "0.752" ], [ "0.1896", "0.75", "0.824", "0.75", "0.824", "0.7646", "0.1896", "0.7646" ], [ "0.1936", "0.7666", "0.826", "0.7666", "0.826", "0.78", "0.1936", "0.78" ], [ "0.1929", "0.78", "0.4453", "0.78", "0.4453", "0.7935", "0.1929", "0.7935" ], [ "0.1765", "0.7954", "0.826", "0.7954", "0.826", "0.81", "0.1765", "0.81" ], [ "0.1912", "0.8096", "0.826", "0.8096", "0.826", "0.8237", "0.1912", "0.8237" ], [ "0.1912", "0.8237", "0.4192", "0.8237", "0.4192", "0.837", "0.1912", "0.837" ], [ "0.5", "0.962", "0.5073", "0.9683", "0.501", "0.9736", "0.4927", "0.9673" ] ]
[ "Published as a workshop paper at \"Tackling Climate Change with Machine Learning\",", "ICLR2023", "4 ", "CONCLUSION", "", "The proposed framework systematically applies the MARL technique to transactive", "microgrids. The results are compared with one classic MARL algorithm. A customized", "OpenAI Gym environment was also created to serve as the test bench for this work. Our", "framework can help the development of local renewable energy markets, fostering emission", "reduction andmoreconsumerengagement.", "(The source code and demo files have been anonymized and are available in this", "repository link.)", "REFERENCES", "Amjad Anvari-Moghaddam, Ashkan Rahimi-Kian, Maryam S. Mirian, and Josep M. Guerrero", "A multi-agent based energy management solution for integrated buildings and microgrid", "system.Applied Energy,203:41-56, 2017.ISSN 0306-2619.doi:https://doi.org/10.1016/j", "apenergy.2017.06.007.URLhttps://www.sciencedirect.com/science/article/pii/", "S0306261917307572.", "Greg Brockman, Vicki Cheung, Ludwig Pettersson, Jonas Schneider, John Schulman, Jie", "Tang, and Wojciech Zaremba. Openai gym, 2016.", "Mathilde Caron, Hugo Touvron, Ishan Misra, Herve Jegou, Julien Mairal, Piotr Bojanowski", "and Armand Joulin. Emerging properties in self-supervised vision transformers.", "Ir", "Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 9650", "9660,2021.", "Steven Diamond and Stephen Boyd. CVXPY: A Python-embedded modeling language for", "convex optimization. Journal of Machine Learning Research, 17(83):1-5, 2016.", "Jakob Foerster, Gregory Farquhar, Triantafyllos Afouras, Nantas Nardelli, and Shimon", "Whiteson. Counterfactual multi-agent policy gradients, 2017. URL https://arxiv.org/", "abs/1705.08926.", "Benjamin D. Leibowicz, Christopher M. Lanham, Max T. Brozynski, Jose R. Vazquez-Canteli,", "Nicolas Castillo Castejon, and Zoltan Nagy. Optimal decarbonization pathways for urban", "residential building energy services. Applied Energy, 230:1311-1325, 2018. ISSN 0306-2619.", "doi:https://doi.org/10.1016/j.apenergy.2018.09.046.URLhttps://www.sciencedirect.", "com/science/article/pii/s0306261918313552.", "Ming Tan. Multi-agent reinforcement learning: Independent versus cooperative agents. In", "International Conference on Machine Learning, 1993.", "Jose R. Vazquez-Canteli, Gregor Henze, and Zoltan Nagy. Marlisa: Multi-agent reinforcement", "learning with iterative sequential action selection for load shaping of grid-interactive", "connected buildings. In Proceedings of the 7th ACM International Conference on Systems", "for Energy-Efficient Buildings, Cities, and Transportation, BuildSys '20, page 170-179", "New York, NY, USA, 2020. Association for Computing Machinery. ISBN 9781450380614.", "doi:10.1145/3408308.3427604.URLhttps://doi.0rg/10.1145/3408308.3427604.", "Jose R. Vazquez-Canteli, Stepan Ulyanin, Jerome Kampf, and Zoltan Nagy. Fusing ten-", "sorflow with building energy simulation for intelligent energy management in smart", "cities. Sustainable Cities and Society, 45:243-257, 2019. ISSN 2210-6707. doi: https:", "//doi.org/10.1016/j.scs.2018.11.021.URLhttps://www.sciencedirect.com/science/", "article/pii/s2210670718314380.", "Zhiwei Xu, Bin Zhang, Dapeng Li, Zeren Zhang, Guangchong Zhou, and Guoliang Fan.", "Consensus learning for cooperative multi-agent reinforcement learning, 2022. URL https :", "//arxiv.0rg/abs/2206.02583.", "" ]
{ "arxiv_id": "2303.08447", "language": "en", "page_idx": 4 }
2112.03223-en-0
2112.03223-en-0.jpg
$\textbf{Context- Aware Transfer Attacks for Object Detection}$ $\textbf{Zikui Cai}^1,\textbf{Xinxin Xie}^2,\textbf{Shasha Li}^2,\textbf{Mingjun Yin}^2,\textbf{Chengyu Song}^2$, $\textbf{Srikanth V. Krishnamurthy}^2,\textbf{Amit K. Roy-Chowdhury}^1,\textbf{M. Salman Asif}^1$ $^{1}$Electrical and Computer Engineering, University of California Riverside $^{2}$Computer Science and Engineering, University of California Riverside $\{$csong,krish$\}$@cs.ucr.edu, $\{$amitrc,sasif$\}$gece.ucr.edu ### $\mathbf{Abstract}$ Blackbox transfer attacks for image classifiers have been extensively studied in recent years. In contrast, little progress has been made on transfer attacks for object detectors. Object detectors take a holistic view of the image and the detection of one object (or lack thereof) often depends on other objects in the scene. This makes such detectors inherently context-aware and adversarial attacks in this space are more challenging than those targeting image classifiers. In this paper, we present a new approach to generate contextaware attacks for object detectors. We show that by using cooccurrence of objects and their relative locations and sizes as context information, we can successfully generate targeted mis-categorization attacks that achieve higher transfer success rates on blackbox object detectors than the state-of-theart. We test our approach on a variety of object detectors with images from PASCAL VOC and MS COCO datasets and demonstrate up to 20 percentage points improvement in performance compared to the other state-of-the-art methods. ## 1 Introduction Generating adversarial attacks (and defending against such attacks) has recently gained a lot of attention. An overwhelming majority of work in these areas have considered cases when images contain one predominant object (e.g., ImageNet (Deng et al. 2009) data), and the goal is to perturb an image to change its label. In real-life situations, we usually encounter images with many objects. Object detectors take a holistic view of the image and the detection of one object (or lack thereof) depends on other objects in the scene. This is why object detectors are inherently context-aware and adversarial attacks are more challenging than those targeting image classifiers (Goodfellow, Shlens, and Szegedy 2015; Moosavi-Dezfooli, Fawzi, and Frossard 2016; Carlini and Wagner 2017; Liu et al. 2017). In this paper, we focus on the problem of generating context-aware adversarial attacks on images to affect the performance of object detectors. Our approach is to craft an attack plan for each object, which not only perturbs a specific victim object to the target class, but also perturbs other objects in the image to specific labels or inserts phantom Copyright $\odot$ 2022, Association for the Advancement of Artificial Intelligence (www.aaai.org). All rights reserved. objects to enhance the holistic context consistency; these associated objects are called helper objects. The helpers are selected based on the context graphs, which capture the cooccurrence relationships and relative location and size of objects in the image. The context graphs can be learned empirically from natural image datasets. The nodes of a context graph are object classes, and each edge weight captures the co-occurrence, relative distance, and size likelihood of one object conditioned on the other. The intuition is that each class is often associated with certain classes, and unlikely to be associated with certain others. Our interest lies in blackbox attacks where the perturbations generated for an image are effective on a variety of detectors that may not be known during the perturbation generation process. The conceptual idea of our proposed approach is to generate perturbations with an ensemble of detectors and subsequently test them on an unknown detector. Such attacks are referred to as transfer attacks, and we refer to the unknown detector we seek to fool as the victim blackbox model. To achieve this goal, we propose a novel sequential strategy to generate these attacks. We sequentially add perturbations to cause the modification of the labels of the victim and helper objects, based on the co-occurrence object relation graph of the victim object. This strategy is the first to use explicit context information of an image to generate a blackbox attack plan. Note that the sequential strategy makes a small number of queries (2-6 in our experiments) to the blackbox detector as new helper objects are added in the attack plan. The blackbox detector provides hard labels and locations of detected objects. We use this information only as a stopping criterion for the attack generation, unlike query-based approaches (Wang et al. 2020b) that often need to use thousands of queries to estimate local gradients. The framework is illustrated in Figure 1. The main contributions of this paper are as follows. $\bullet$ This is the first work that considers co-occurrence be- tween different object classes in complex images with multiple objects to generate transferable adversarial attacks on blackbox object detectors. $\bullet$ We show how to generate context-aware attack plans for targeted mis-categorization attacks. The attacks generated using context-aware attack plans provide signifrcantly better transfer success rates on blackbox detectors
[ [ "0.2336", "0.1237", "0.7656", "0.1237", "0.7656", "0.1383", "0.2336", "0.1383" ], [ "0.2197", "0.154", "0.7812", "0.154", "0.7812", "0.1718", "0.2197", "0.1718" ], [ "0.1929", "0.1736", "0.8022", "0.1736", "0.8022", "0.1881", "0.1929", "0.1881" ], [ "0.2532", "0.1895", "0.7427", "0.1913", "0.7427", "0.209", "0.2532", "0.207" ], [ "0.2615", "0.2058", "0.738", "0.207", "0.738", "0.2216", "0.2615", "0.2203" ], [ "0.2998", "0.2216", "0.6978", "0.2216", "0.6978", "0.2349", "0.2998", "0.2349" ], [ "0.2484", "0.2349", "0.749", "0.2349", "0.749", "0.25", "0.2484", "0.25" ], [ "0.02287", "0.2708", "0.06046", "0.2708", "0.06046", "0.3774", "0.02287", "0.3774" ], [ "0.25", "0.2734", "0.3162", "0.2734", "0.3162", "0.2886", "0.25", "0.2886" ], [ "0.523", "0.276", "0.9087", "0.276", "0.9087", "0.286", "0.523", "0.286" ], [ "0.5215", "0.2886", "0.914", "0.2886", "0.914", "0.3018", "0.5215", "0.3018" ], [ "0.10297", "0.2986", "0.4617", "0.2986", "0.4617", "0.3125", "0.10297", "0.3125" ], [ "0.5195", "0.303", "0.911", "0.303", "0.911", "0.3164", "0.5195", "0.3164" ], [ "0.10455", "0.3132", "0.4617", "0.3132", "0.4617", "0.324", "0.10455", "0.324" ], [ "0.5195", "0.3164", "0.91", "0.3164", "0.91", "0.33", "0.5195", "0.33" ], [ "0.10297", "0.3257", "0.4617", "0.3257", "0.4617", "0.336", "0.10297", "0.336" ], [ "0.5195", "0.3289", "0.9126", "0.3289", "0.9126", "0.3435", "0.5195", "0.3435" ], [ "0.10297", "0.3384", "0.4617", "0.3384", "0.4617", "0.3484", "0.10297", "0.3484" ], [ "0.1013", "0.3499", "0.4631", "0.3499", "0.4631", "0.363", "0.1013", "0.363" ], [ "0.5215", "0.3452", "0.911", "0.3452", "0.911", "0.356", "0.5215", "0.356" ], [ "0.10297", "0.3623", "0.4617", "0.363", "0.4617", "0.375", "0.10297", "0.3738" ], [ "0.5215", "0.358", "0.914", "0.358", "0.914", "0.3718", "0.5215", "0.3718" ], [ "0.02777", "0.3694", "0.05392", "0.3694", "0.05392", "0.3894", "0.02777", "0.3894" ], [ "0.10455", "0.3757", "0.46", "0.3757", "0.46", "0.3865", "0.10455", "0.3865" ], [ "0.5215", "0.3726", "0.911", "0.3726", "0.911", "0.3833", "0.5215", "0.3833" ], [ "0.10455", "0.3882", "0.46", "0.3882", "0.46", "0.3984", "0.10455", "0.3984" ], [ "0.5195", "0.385", "0.9126", "0.385", "0.9126", "0.3984", "0.5195", "0.3984" ], [ "0.0196", "0.3958", "0.058", "0.3945", "0.0621", "0.481", "0.0237", "0.4817" ], [ "0.10297", "0.401", "0.4631", "0.401", "0.4631", "0.414", "0.10297", "0.414" ], [ "0.5195", "0.3997", "0.914", "0.3997", "0.914", "0.4136", "0.5195", "0.4136" ], [ "0.10455", "0.414", "0.4617", "0.414", "0.4617", "0.4248", "0.10455", "0.4248" ], [ "0.5195", "0.4136", "0.739", "0.4136", "0.739", "0.4268", "0.5195", "0.4268" ], [ "0.10455", "0.4268", "0.46", "0.4268", "0.46", "0.4375", "0.10455", "0.4375" ], [ "0.536", "0.4312", "0.9126", "0.4312", "0.9126", "0.4443", "0.536", "0.4443" ], [ "0.10455", "0.4395", "0.46", "0.4395", "0.46", "0.4495", "0.10455", "0.4495" ], [ "0.5195", "0.4443", "0.911", "0.4443", "0.911", "0.4583", "0.5195", "0.4583" ], [ "0.10455", "0.452", "0.46", "0.452", "0.46", "0.4622", "0.10455", "0.4622" ], [ "0.10455", "0.464", "0.46", "0.464", "0.46", "0.4749", "0.10455", "0.4749" ], [ "0.5186", "0.4583", "0.911", "0.459", "0.911", "0.473", "0.5186", "0.4717" ], [ "0.10297", "0.4734", "0.4617", "0.4749", "0.4617", "0.488", "0.10297", "0.4873" ], [ "0.5195", "0.473", "0.914", "0.473", "0.914", "0.486", "0.5195", "0.486" ], [ "0.10455", "0.4873", "0.4631", "0.4873", "0.4631", "0.5005", "0.10455", "0.5005" ], [ "0.5195", "0.486", "0.9126", "0.486", "0.9126", "0.5", "0.5195", "0.5" ], [ "0.10297", "0.5005", "0.4631", "0.5005", "0.4631", "0.5146", "0.10297", "0.5146" ], [ "0.02287", "0.4912", "0.06046", "0.4912", "0.06046", "0.7056", "0.02287", "0.7056" ], [ "0.5195", "0.5005", "0.9126", "0.5005", "0.9126", "0.5146", "0.5195", "0.5146" ], [ "0.10046", "0.513", "0.46", "0.512", "0.46", "0.526", "0.10046", "0.5264" ], [ "0.5215", "0.515", "0.911", "0.515", "0.911", "0.526", "0.5215", "0.526" ], [ "0.5215", "0.529", "0.911", "0.529", "0.911", "0.539", "0.5215", "0.539" ], [ "0.5215", "0.5435", "0.91", "0.5435", "0.91", "0.5537", "0.5215", "0.5537" ], [ "0.2157", "0.553", "0.2263", "0.553", "0.2263", "0.5625", "0.2157", "0.5625" ], [ "0.2361", "0.5503", "0.3506", "0.5503", "0.3506", "0.565", "0.2361", "0.565" ], [ "0.5195", "0.5547", "0.914", "0.5547", "0.914", "0.5693", "0.5195", "0.5693" ], [ "0.0866", "0.5713", "0.478", "0.5728", "0.478", "0.587", "0.0866", "0.586" ], [ "0.5186", "0.5693", "0.9126", "0.5684", "0.9126", "0.582", "0.5186", "0.5835" ], [ "0.0866", "0.587", "0.478", "0.587", "0.478", "0.601", "0.0866", "0.601" ], [ "0.5215", "0.5854", "0.91", "0.5854", "0.91", "0.595", "0.5215", "0.595" ], [ "0.0866", "0.601", "0.4795", "0.601", "0.4795", "0.6143", "0.0866", "0.6143" ], [ "0.5195", "0.5977", "0.9126", "0.5977", "0.9126", "0.6113", "0.5195", "0.6113" ], [ "0.0866", "0.6157", "0.4763", "0.6157", "0.4763", "0.629", "0.0866", "0.629" ], [ "0.5215", "0.6123", "0.9087", "0.6123", "0.9087", "0.6226", "0.5215", "0.6226" ], [ "0.5195", "0.6235", "0.911", "0.6235", "0.911", "0.637", "0.5195", "0.637" ], [ "0.08826", "0.63", "0.4763", "0.63", "0.4763", "0.64", "0.08826", "0.64" ], [ "0.0866", "0.6426", "0.478", "0.6426", "0.478", "0.656", "0.0866", "0.656" ], [ "0.5195", "0.638", "0.9126", "0.638", "0.9126", "0.6514", "0.5195", "0.6514" ], [ "0.0866", "0.657", "0.478", "0.657", "0.478", "0.6704", "0.0866", "0.6704" ], [ "0.5195", "0.6514", "0.9126", "0.6514", "0.9126", "0.6655", "0.5195", "0.6655" ], [ "0.08826", "0.672", "0.4739", "0.672", "0.4739", "0.6816", "0.08826", "0.6816" ], [ "0.5195", "0.6665", "0.9126", "0.6665", "0.9126", "0.6797", "0.5195", "0.6797" ], [ "0.0866", "0.6846", "0.4763", "0.6846", "0.4763", "0.6978", "0.0866", "0.6978" ], [ "0.5215", "0.681", "0.911", "0.681", "0.911", "0.6914", "0.5215", "0.6914" ], [ "0.0866", "0.6963", "0.478", "0.6963", "0.478", "0.7104", "0.0866", "0.7104" ], [ "0.5195", "0.6943", "0.9126", "0.6943", "0.9126", "0.7085", "0.5195", "0.7085" ], [ "0.5195", "0.707", "0.914", "0.707", "0.914", "0.7217", "0.5195", "0.7217" ], [ "0.08826", "0.7134", "0.4763", "0.7134", "0.4763", "0.7236", "0.08826", "0.7236" ], [ "0.0866", "0.726", "0.478", "0.726", "0.478", "0.7393", "0.0866", "0.7393" ], [ "0.5195", "0.7217", "0.9126", "0.7217", "0.9126", "0.735", "0.5195", "0.735" ], [ "0.0866", "0.7393", "0.478", "0.7393", "0.478", "0.7524", "0.0866", "0.7524" ], [ "0.5215", "0.7363", "0.7563", "0.7363", "0.7563", "0.747", "0.5215", "0.747" ], [ "0.0866", "0.7524", "0.3145", "0.7524", "0.3145", "0.7666", "0.0866", "0.7666" ], [ "0.5376", "0.7524", "0.8735", "0.7524", "0.8735", "0.7676", "0.5376", "0.7676" ], [ "0.10297", "0.768", "0.478", "0.768", "0.478", "0.782", "0.10297", "0.782" ], [ "0.5215", "0.7744", "0.91", "0.7744", "0.91", "0.7886", "0.5215", "0.7886" ], [ "0.08496", "0.782", "0.478", "0.782", "0.478", "0.7954", "0.08496", "0.7954" ], [ "0.536", "0.789", "0.9126", "0.789", "0.9126", "0.803", "0.536", "0.803" ], [ "0.08496", "0.7954", "0.4795", "0.7954", "0.4795", "0.8096", "0.08496", "0.8096" ], [ "0.08496", "0.808", "0.4763", "0.8096", "0.4763", "0.8237", "0.08496", "0.8228" ], [ "0.5376", "0.8037", "0.91", "0.8037", "0.91", "0.8145", "0.5376", "0.8145" ], [ "0.535", "0.8164", "0.7695", "0.8164", "0.7695", "0.83", "0.535", "0.83" ], [ "0.08496", "0.8237", "0.4795", "0.8237", "0.4795", "0.837", "0.08496", "0.837" ], [ "0.08496", "0.837", "0.4805", "0.837", "0.4805", "0.851", "0.08496", "0.851" ], [ "0.5215", "0.834", "0.9126", "0.834", "0.9126", "0.8477", "0.5215", "0.8477" ], [ "0.535", "0.8467", "0.911", "0.8477", "0.911", "0.8623", "0.535", "0.8613" ], [ "0.0866", "0.8623", "0.4795", "0.8623", "0.4795", "0.877", "0.0866", "0.877" ], [ "0.5376", "0.8623", "0.91", "0.8623", "0.91", "0.8755", "0.5376", "0.8755" ], [ "0.0866", "0.8755", "0.3718", "0.8755", "0.3718", "0.8896", "0.0866", "0.8896" ], [ "0.536", "0.8755", "0.914", "0.8755", "0.914", "0.8896", "0.536", "0.8896" ] ]
[ "Context-Aware Transfer Attacks for Object Detection", "Zikui Cai', Xinxin Xie?, Shasha Li?, Mingjun Yin?, Chengyu Song?", "Srikanth V. Krishnamurthy?, Amit K. Roy-Chowdhury', M. Salman Asif", "1 Electrical and Computer Engineering, University of California Riverside", "2 Computer Science and Engineering, University of California Riverside", "(zcai032,xxie039,sli057,myin013)@ucr.edu,", "[csong,krish)@cs.ucr.edu, (amitrc,sasif)@ece.ucr.edu", "", "Abstract", "objectstoenhancetheholisticcontextconsistency:theseas-", "sociated objects are called helper objects. The helpers are", "Blackbox transfer attacks for image classifiers have been ex-", "selected based on the context graphs, which capture the co-", "tensively studied in recent years. In contrast, little progress", "occurrence relationships and relative location and size of ob-", "has beenmade on transferattacks forobjectdetectors.Ob-", "jects in the image. The context graphs can be learned empir-", "ject detectors take a holistic view of the image and the de-", "tection of one object (or lack thereof) often depends on", "ically from natural image datasets.The nodes of a context", "other objects in the scene.This makes such detectors inher-", "graph are object classes, and each edge weight captures the", "6", "ently context-aware and adversarial attacks in this space are", "co-occurrence,relative distance,and size likelihood of one", "more challenging than those targeting image classifiers.In", "object conditioned on the other. The intuition is that each", "[A's]", "this paper, we present a new approach to generate context-", "class is often associated with certain classes, and unlikely to", "aware attacks for objectdetectors.We show that by using co-", "be associated with certain others.", "occurrence of objects and their relative locations and sizes", "Our interest lies in blackbox attacks where the perturba-", "as contextinformation,wecan successfullygeneratetargeted", "tions generated for an image are effective on a variety of de-", "mis-categorization attacks that achieve higher transfer suc-", "cess rates on blackbox object detectors than the state-of-the", "tectors that may not beknown during the perturbation gener-", "art. We test our approach on a variety of object detectors", "ation process. The conceptual idea of our proposed approach", "with images from PASCAL VOC and MS COCO datasets", "is to generate perturbations with an ensemble of detectors", "and demonstrate up to 20 percentage points improvement in", "C", "and subsequently test them on an unknown detector. Such", "performance compared to the other state-of-the-art methods.", "attacks arereferred toas transfer attacks, and we referto the", "unknown detectorwe seekto foolas the victimblackbox", "model.To achieve this goal,we propose a novel sequen-", "1.", "Introduction", "tial strategy to generate these attacks. We sequentially add", "Generating adversarial attacks (and defending against such", "perturbations to cause the modification of the labels of the", "attacks) has recently gained a lot of attention. An over-", "victim and helper objects,based on the co-occurrence ob-", "whelming majority of work in these areas have considered", "ject relation graph of the victim object. This strategy is the", "cases when images contain one predominant object (e.g.", "firsttouseexplicitcontextinformationofanimagetogener", "ate a blackbox attack plan. Note that the sequential strategy", "ImageNet(Dengetal.2009)data),andthegoal istoperturb", "an image to change its label. In real-life situations, we usu-", "makes a small number of queries (2-6 in our experiments)", "ally encounter images with many objects. Object detectors", "to the blackbox detector as new helper objects are added in", "takeaholisticviewof theimageandthedetectionofoneob", "the attack plan. The blackbox detector provides hard labels", "ject (or lack thereof) depends on other objects in the scene", "and locations of detected objects.We use this information", "This is why object detectors are inherently context-aware", "only as a stopping criterion for the attack generation, unlike", "query-based approaches (Wang et al. 2020b) that often need", "and adversarial attacks are morechallengingthanthosetar-", "geting image classifiers (Goodfellow, Shlens, and Szegedy", "to use thousands of queries to estimate local gradients. The", "2015; Moosavi-Dezfooli, Fawzi, and Frossard 2016; Carlini", "framework is illustrated in Figure 1.", "and Wagner 2017; Liu et al. 2017)", "The main contributions of this paper are as follows.", "In this paper, we focus on the problem of generating", " This is the first work that considers co-occurrence be-", "context-aware adversarial attacks on images to affect the", "tween different object classes in complex images with", "performance of object detectors. Our approach is to craft an", "attack plan for each object, which not only perturbs a spe-", "multiple objects to generate transferable adversarial at-", "tacks on blackbox object detectors.", "cific victim object to the target class, but also perturbs other", "objects in the image to specific labels or inserts phantom", " We show how to generate context-aware attack plans", "for targeted mis-categorization attacks. The attacks gen-", "Copyright 2022, Association for the Advancement of Artificial", "erated using context-aware attack plans provide signifi-", "Intelligence (www.aaai.org). All rights reserved.", "cantly better transfer success rates on blackbox detectors" ]
{ "arxiv_id": "2112.03223", "language": "en", "page_idx": 0 }
2112.03223-en-1
2112.03223-en-1.jpg
<FigureHere> Figure 1: Overview of our framework for generating the context-aware sequential attack. a) Given a natural image, our goal is to trick an object detector to assign the victim object a given target label (e.g., bird to table). b) We construct a context graph that encodes the co-occurrence probability, distance, and relative size distribution relating pairs of objects (e.g., the edge from table to chair represents they co-occur with probablility 0.46). c) Given the attack goal and context graph, we generate a context-aware attack plan that has a small number of steps. In each step, we assign target labels for existing objects and introduce new helper objects if needed. For example, co-occurrence of chair with table is most probable, we change the bird to a chair for stronger context consistency (depicted in Attack Plan Step 1). We may need to add a phantom chair around the table (as depicted in Attack Plan Step 2). d) Given the attack plan and the victim image, we generate perturbations using I-FGSM on the surrogate whitebox models in our perturbation machine. We test the perturbed image with the given blackbox model and based on the hard-label feedback, we either stop (when the attack is successful or when we exhaust our budget of the helper objects) or craft new attack based on the next steps and repeat the process. than those generated by methods that are agnostic to context information (an average improvement of more than 10 percentage points in fooling rate, see Table 1). $\bullet$ Our comprehensive evaluations also include context- aware adversarial attacks on multiple datasets using multiple object detectors. We also provide analysis on the effect of helper objects in generating successful attacks and the generalizability of contexts. et al. 2017; Chen, Huang, and Tao 2018; Liu et al. 2018; Barnea and Ben-Shahar 2019; Wang et al. 2020a). Some recent papers have considered context consistency to detect adversarial attacks (Li et al. 2020c; Yin et al. 2021), but the attack generation uses existing whitebox attack schemes that do not consider context information explicitly. To the best of our knowledge, we are the first to use context information of objects explicitly for generating attacks on object detectors for images with multiple objects. ## 2 $\textbf{Related Work}$ Blackbox adversarial attacks. Blackbox attacks is a practical setting where the attacker can only query the model and get the output instead of having access to the model's internal parameters. Two common strategies targeting this challenging problem are transfer-based attacks and querybased attacks. Query-based attacks have high success rates but require an overwhelmingly large number (often hundreds or thousands) of queries (Brendel, Rauber, and Bethge 2018; Chen et al. 2017; Guo et al. 2019; Huang and Zhang 2020; Cheng et al. 2019; Chen, Jordan, and Wainwright 2020; Li et al. 2020a; Wang et al. 2020b). In this paper, we explore a more stringent case where only a very small Context in object detection. The importance of context has been studied extensively to enhance visual recognition technologies (Strat and Fischler 1991; Torralba, Murphy, and Freeman 2005; Divvala et al. 2009; Galleguillos and Belongie 2010; Marques, Barenholtz, and Charvillat 2011; Yao, Fidler, and Urtasun 2012; Mottaghi et al. 2014). Modern object detectors (Ren et al. 2015; Redmon and Farhadi 2018; Carion et al. 2020) consider holistic information in the image to locate and detect different objects, and several works explicitly utilize context information to improve the performance of object detectors (Bell et al. 2016; Zhang
[ [ "0.1438", "0.0726", "0.4592", "0.0726", "0.4592", "0.0833", "0.1438", "0.0833" ], [ "0.4885", "0.07385", "0.544", "0.07385", "0.544", "0.0808", "0.4885", "0.0808" ], [ "0.581", "0.07385", "0.706", "0.07385", "0.706", "0.0808", "0.581", "0.0808" ], [ "0.304", "0.0884", "0.4592", "0.0884", "0.4592", "0.0985", "0.304", "0.0985" ], [ "0.5215", "0.0884", "0.6177", "0.0884", "0.6177", "0.0985", "0.5215", "0.0985" ], [ "0.689", "0.0884", "0.7876", "0.0884", "0.7876", "0.0985", "0.689", "0.0985" ], [ "0.7344", "0.1395", "0.7686", "0.1395", "0.7686", "0.1509", "0.7344", "0.1509" ], [ "0.1847", "0.089", "0.25", "0.0871", "0.25", "0.0985", "0.1847", "0.101" ], [ "0.2197", "0.1414", "0.2402", "0.1414", "0.2402", "0.1483", "0.2197", "0.1483" ], [ "0.3882", "0.1414", "0.4084", "0.1414", "0.4084", "0.1497", "0.3882", "0.1497" ], [ "0.568", "0.1414", "0.5933", "0.1414", "0.5933", "0.1483", "0.568", "0.1483" ], [ "0.1929", "0.1875", "0.2133", "0.1875", "0.2133", "0.1945", "0.1929", "0.1945" ], [ "0.367", "0.1895", "0.3896", "0.1895", "0.3896", "0.1925", "0.367", "0.1925" ], [ "0.5483", "0.1895", "0.572", "0.1895", "0.572", "0.1925", "0.5483", "0.1925" ], [ "0.1422", "0.2588", "0.2957", "0.2588", "0.2957", "0.2664", "0.1422", "0.2664" ], [ "0.4265", "0.26", "0.569", "0.26", "0.569", "0.2708", "0.4265", "0.2708" ], [ "0.6006", "0.2583", "0.8164", "0.2583", "0.8164", "0.2683", "0.6006", "0.2683" ], [ "0.2957", "0.2734", "0.3782", "0.2734", "0.3782", "0.2854", "0.2957", "0.2854" ], [ "0.607", "0.2798", "0.7305", "0.2798", "0.7305", "0.2935", "0.607", "0.2935" ], [ "0.7534", "0.2827", "0.8506", "0.2827", "0.8506", "0.2935", "0.7534", "0.2935" ], [ "0.33", "0.2917", "0.3555", "0.2917", "0.3555", "0.2998", "0.33", "0.2998" ], [ "0.406", "0.289", "0.415", "0.289", "0.415", "0.3093", "0.406", "0.3093" ], [ "0.773", "0.303", "0.831", "0.303", "0.831", "0.3145", "0.773", "0.3145" ], [ "0.6055", "0.3132", "0.7305", "0.3132", "0.7305", "0.327", "0.6055", "0.327" ], [ "0.7656", "0.3245", "0.8384", "0.3245", "0.8384", "0.336", "0.7656", "0.336" ], [ "0.63", "0.339", "0.706", "0.339", "0.706", "0.351", "0.63", "0.351" ], [ "0.4355", "0.3467", "0.5605", "0.3467", "0.5605", "0.3599", "0.4355", "0.3599" ], [ "0.773", "0.3452", "0.83", "0.3452", "0.83", "0.3567", "0.773", "0.3567" ], [ "0.6406", "0.356", "0.6895", "0.356", "0.6895", "0.3706", "0.6406", "0.3706" ], [ "0.3506", "0.3694", "0.367", "0.3694", "0.367", "0.377", "0.3506", "0.377" ], [ "0.767", "0.3687", "0.834", "0.3687", "0.834", "0.379", "0.767", "0.379" ], [ "0.649", "0.3801", "0.7427", "0.3801", "0.7427", "0.3914", "0.649", "0.3914" ], [ "0.2893", "0.3894", "0.3677", "0.3894", "0.3677", "0.3997", "0.2893", "0.3997" ], [ "0.7837", "0.3882", "0.819", "0.3882", "0.819", "0.401", "0.7837", "0.401" ], [ "0.1528", "0.3945", "0.232", "0.3945", "0.232", "0.4048", "0.1528", "0.4048" ], [ "0.286", "0.4016", "0.3743", "0.4016", "0.3743", "0.4136", "0.286", "0.4136" ], [ "0.619", "0.411", "0.7344", "0.4124", "0.7344", "0.4236", "0.619", "0.4224" ], [ "0.08496", "0.4443", "0.9126", "0.4458", "0.9126", "0.4602", "0.08496", "0.459" ], [ "0.0866", "0.459", "0.9126", "0.459", "0.9126", "0.473", "0.0866", "0.473" ], [ "0.08496", "0.4717", "0.9126", "0.4717", "0.9126", "0.4849", "0.08496", "0.4849" ], [ "0.08496", "0.4841", "0.9126", "0.4841", "0.9126", "0.4976", "0.08496", "0.4976" ], [ "0.08496", "0.4968", "0.9126", "0.4968", "0.9126", "0.5103", "0.08496", "0.5103" ], [ "0.08496", "0.509", "0.9126", "0.509", "0.9126", "0.523", "0.08496", "0.523" ], [ "0.0866", "0.5215", "0.9126", "0.5215", "0.9126", "0.535", "0.0866", "0.535" ], [ "0.0866", "0.534", "0.914", "0.534", "0.914", "0.5474", "0.0866", "0.5474" ], [ "0.0866", "0.547", "0.914", "0.547", "0.914", "0.56", "0.0866", "0.56" ], [ "0.08496", "0.56", "0.585", "0.56", "0.585", "0.5737", "0.08496", "0.5737" ], [ "0.10297", "0.587", "0.478", "0.587", "0.478", "0.601", "0.10297", "0.601" ], [ "0.5186", "0.587", "0.9126", "0.587", "0.9126", "0.601", "0.5186", "0.601" ], [ "0.10297", "0.604", "0.478", "0.604", "0.478", "0.6143", "0.10297", "0.6143" ], [ "0.5195", "0.6016", "0.911", "0.6016", "0.911", "0.6157", "0.5195", "0.6157" ], [ "0.10455", "0.616", "0.4272", "0.616", "0.4272", "0.63", "0.10455", "0.63" ], [ "0.5186", "0.616", "0.9126", "0.6157", "0.9126", "0.629", "0.5186", "0.63" ], [ "0.08905", "0.6353", "0.4739", "0.6353", "0.4739", "0.646", "0.08905", "0.646" ], [ "0.5215", "0.631", "0.911", "0.631", "0.911", "0.6416", "0.5215", "0.6416" ], [ "0.10297", "0.648", "0.478", "0.648", "0.478", "0.661", "0.10297", "0.661" ], [ "0.5215", "0.646", "0.911", "0.646", "0.911", "0.656", "0.5215", "0.656" ], [ "0.10455", "0.6636", "0.4756", "0.6636", "0.4756", "0.674", "0.10455", "0.674" ], [ "0.5215", "0.659", "0.911", "0.659", "0.911", "0.6694", "0.5215", "0.6694" ], [ "0.10297", "0.6753", "0.4795", "0.6753", "0.4795", "0.6895", "0.10297", "0.6895" ], [ "0.5195", "0.672", "0.914", "0.672", "0.914", "0.685", "0.5195", "0.685" ], [ "0.1013", "0.6895", "0.3137", "0.6895", "0.3137", "0.7026", "0.1013", "0.7026" ], [ "0.5215", "0.685", "0.9126", "0.685", "0.9126", "0.6987", "0.5215", "0.6987" ], [ "0.5195", "0.6978", "0.738", "0.6978", "0.738", "0.711", "0.5195", "0.711" ], [ "0.2075", "0.7163", "0.3555", "0.7163", "0.3555", "0.731", "0.2075", "0.731" ], [ "0.5195", "0.7227", "0.914", "0.7227", "0.914", "0.7363", "0.5195", "0.7363" ], [ "0.08826", "0.7373", "0.478", "0.7373", "0.478", "0.7505", "0.08826", "0.7505" ], [ "0.5195", "0.7373", "0.914", "0.7373", "0.914", "0.7505", "0.5195", "0.7505" ], [ "0.0866", "0.7505", "0.478", "0.7505", "0.478", "0.7646", "0.0866", "0.7646" ], [ "0.5195", "0.752", "0.9126", "0.752", "0.9126", "0.765", "0.5195", "0.765" ], [ "0.08496", "0.765", "0.478", "0.765", "0.478", "0.779", "0.08496", "0.779" ], [ "0.5195", "0.7646", "0.9126", "0.7646", "0.9126", "0.778", "0.5195", "0.778" ], [ "0.0866", "0.78", "0.478", "0.78", "0.478", "0.7905", "0.0866", "0.7905" ], [ "0.5215", "0.779", "0.911", "0.779", "0.911", "0.7925", "0.5215", "0.7925" ], [ "0.0866", "0.7925", "0.478", "0.7925", "0.478", "0.806", "0.0866", "0.806" ], [ "0.5195", "0.7925", "0.9126", "0.7925", "0.9126", "0.806", "0.5195", "0.806" ], [ "0.0866", "0.806", "0.478", "0.806", "0.478", "0.8193", "0.0866", "0.8193" ], [ "0.5195", "0.806", "0.9126", "0.806", "0.9126", "0.8193", "0.5195", "0.8193" ], [ "0.08826", "0.8213", "0.4763", "0.8213", "0.4763", "0.832", "0.08826", "0.832" ], [ "0.523", "0.8213", "0.9126", "0.8213", "0.9126", "0.832", "0.523", "0.832" ], [ "0.08905", "0.8354", "0.478", "0.8354", "0.478", "0.845", "0.08905", "0.845" ], [ "0.5195", "0.832", "0.9126", "0.834", "0.9126", "0.8477", "0.5195", "0.845" ], [ "0.08496", "0.8477", "0.478", "0.8477", "0.478", "0.8613", "0.08496", "0.8613" ], [ "0.5215", "0.8477", "0.9126", "0.8477", "0.9126", "0.8613", "0.5215", "0.8613" ], [ "0.08496", "0.8623", "0.4795", "0.8623", "0.4795", "0.8755", "0.08496", "0.8755" ], [ "0.5195", "0.86", "0.9126", "0.8613", "0.9126", "0.8755", "0.5195", "0.875" ], [ "0.08496", "0.8755", "0.4795", "0.8755", "0.4795", "0.8896", "0.08496", "0.8896" ], [ "0.5215", "0.8755", "0.9126", "0.8755", "0.9126", "0.8896", "0.5215", "0.8896" ] ]
[ "a)Mis-categorizeavictimobjectina natural scene image", "ccontext", "AttackPlan Generatio", "Goal:Bird (bottom)toTable", "AttackPlanStep1", "AttackPlanStep2", "Chair", "ImageleD", "Biro", "Bird", "hai", "BiTC", "", "", "ContextGraphGeneratior", "P(distance(Chain)/Table)", "d)AdversarialPerturbationGeneration", "For nodeTable", "ImageI Attack Plan", "BlackboxModels", "Chai", "iue", "RetinaNet", "Perturbation Machine", "Libra R-CNN", "Faster R-CNN", "P(size(Chain)/Table)", "FoveaBox", "YOLOv3", "Bir", "FreeAnchor", "Perturbed Image", "Co-occurrence", "DETR", "Context Graph", "P(Chair |Table)", "Hard-labelFeedback", "Figure l: Overview of our framework for generating the context-aware sequential attack. a) Given a natural image, our goal is to trick", "an object detector to assign the victim object a given target label (e.g., bird to table). b) We construct a context graph that encodes the", "co-occurrence probability, distance, and relative size distribution relating pairs of objects (e.g., the edge from table to chair represents they", "co-occur with probability 0.46). c) Given the attack goal and context graph, we generate a context-aware attack plan that has a small number", "of steps. In each step, we assign target labels for existing objects and introduce new helper objects if needed. For example, co-occurrence", "of chair with table is most probable, we change the bird to a chair for stronger context consistency (depicted in Attack Plan Step 1). We", "may need to add a phantom chair around the table (as depicted in Attack Plan Step 2). d) Given the attack plan and the victim image, we", "generate perturbations using I-FGSM on the surrogate whitebox models in our perturbation machine. We test the perturbed image with the", "given blackbox model and based on the hard-label feedback, we either stop (when the attack is successful or when we exhaust our budget of", "the helper objects) or craft new attack based on the next steps and repeat the process.", "than those generated by methods that are agnostic to con-", "et al. 2017; Chen, Huang, and Tao 2018; Liu et al. 2018;", "text information(an averageimprovement ofmorethan", "Barnea and Ben-Shahar 2019; Wang et al. 2020a). Some re-", "10 percentage points in fooling rate, see Table 1).", "cent papers have considered context consistency to detect", "·Our comprehensive evaluations also include context", "adversarial attacks (Li et al. 2020c: Yin et al. 2021), but the", "aware adversarial attacks on multiple datasets using mul-", "attackgenerationusesexistingwhiteboxattackschemesthat", "tipleobjectdetectors.Wealsoprovideanalysisontheef-", "donotconsidercontextinformationexplicitly.Tothebestof", "fect of helper objects in generating successful attacks and", "our knowledge, we are the first to use context information of", "the generalizability of contexts.", "objects explicitly for generating attacks on object detectors", "for images with multiple objects.", "2Related Work", "Blackbox adversarial attacks. Blackbox attacks is a", "Context in object detection.The importance of context", "practical setting where the attacker can only query the model", "has been studied extensively to enhance visual recognition", "and get the output instead of having access to the model's", "technologies (Strat and Fischler 1991; Torralba, Murphy,", "internal parameters. Two common strategies targeting this", "and Freeman 2005:Divvala et al.2009:Galleguillos and", "challenging problem are transfer-based attacks and query-", "Belongie 2010; Marques, Barenholtz, and Charvillat 2011;", "based attacks. Query-based attacks have high success rates", "Yao, Fidler, and Urtasun 2012; Mottaghi et al. 2014). Mod-", "but require an overwhelmingly large number (often hun-", "ern object detectors(Ren et al.2015;Redmon andFarhadi", "dreds orthousands)of queries(Brendel,Rauber,andBethge", "2018:Carionetal.2020)considerholisticinformation in", "2018: Chen et al. 2017; Guo et al. 2019; Huang and Zhang", "the image to locate and detect different objects, and sev-", "2020; Cheng et al. 2019; Chen, Jordan, and Wainwright", "eral works explicitly utilize context information to improve", "2020; Li et al. 2020a; Wang et al. 2020b). In this paper,", "the performance of object detectors (Bell et al. 2016; Zhang", "we explore a more stringent case where only a very small" ]
{ "arxiv_id": "2112.03223", "language": "en", "page_idx": 1 }
2112.03223-en-2
2112.03223-en-2.jpg
number of model calls is allowed. Several papers (Papernot et al. 2017; Liu et al. 2017; Dong et al. 2018; Li et al. 2020b) have examined the phenomenon of transfer attacks where the adversarial examples generated using a surrogate network can fool an unknown network. The previous works studying transfer attacks focus on image classifiers. In this paper, we focus on object detectors, which is considered to be a much harder problem (Xie et al. 2017; Wu et al. 2020). Attacking object detectors. Almost all existing attacks on object detectors focus on whitebox setting. Some patchbased attacks (Liu et al. 2019; Saha et al. 2020) are very effective but the patches are obviously visible to observers. Some attacks such as DAG (Xie et al. 2017), RAP (Li et al. 2018), and CAP (Zhang, Zhou, and Li 2020) rely on region proposal network (RPN), thus only work for proposal-based (two-stage) object detectors. Some attacks are more generic such as UAE (Wei et al. 2019) and TOG (Chow et al. 2020) that work for both one-stage and two-stage models. Among them TOG is the most generic approach that can attack all different kinds of models regardless of their architectures as long as backpropagation on training loss is feasible. Even though some of these works have reported transfer attack results on a small set of blackbox models, since they are mainly designed for whitebox attacks, they fail to provide systematic evaluation in a realistic blackbox settings. 3 Context-Aware Sequential Attacks While algorithms in prior approaches search for adversarial examples that misclassify the victim objects only, we propose to formulate the optimization problem towards perturb- $\hat{\text{ing both the victim object and the“context”associated with}}$ the victim object. The context of an object is determined by the objects that co-exist with it. We hypothesize that the context not only plays an important role in improving classification/detection performance, but can also boost the ability to realize efficient adversarial attacks against object detectors. Next, we show how we compose context-aware attack plans and search for adversarial examples by sequentially solving optimization problems that are defined for a contextaware attack plan. The context-aware attack plans utilize the contextual information with regard to the co-existence of instances of different categories and their relative locations and sizes. We first describe how we represent the contextual information. Then we discuss how to compose the so-defined context-aware attack plan. Finally, we describe how we generate the adversarial examples by solving relevant optimization problems sequentially. The framework is $\hat{\text{explained in detail in Figure }1}.$ ## 3.1 Context Modeling We represent a natural scene image as $I$ and the distribution of all natural images as $\mathcal{D}.$ Each $I\in\mathcal{D}$ could contain one or multiple object instances. We denote the possible object categories in the distribution $\mathcal{D}$ by $C=\{c_1,c_2,...,c_k\}$, where $k$ is the total number of object categories. We define the context graph (an example shown in Figure 1 b) as a fully connected directed graph, in which each node is associated with an object category $c_i$ and the weight on the edge $e_{i,j}$ encodes different properties relating two nodes such as their co-occurrence probability, distance, and relative size. The number of nodes in the context graph is same as the number of object categories $k.$ Co-occurrence graph. We aim to model the cooccurrence probability of each pair of instances in a natural image. To be more specific, we seek to determine the prob- $\begin{array}{ll}\text{ability of the event that an instance of category }c_j\text{ appears}\\\text{in the image given that an instance of category }c_i\text{ also ap-}\end{array}$ pears in the image. Co-occurrence graph inherits the structure of the aforementioned context graph, and the directed edge $e_i,j$ represents the probability that an instance of category $c_j$ appears in the image given an instance $c_i$ already exists. This probability is denoted by $p_{i,j}^{\mathrm{occur}}=p(c_{j}|c_{i}).$ Notet that for each node, we also have an edge pointing to itself (i.e.,$e_i,i).$According to the definition of probability we have $0\leq p_{i,j}^{\mathrm{occur}}\leq1$ and$\tilde{\sum}_{j=1,\ldots,k}p_{i,j}^{\mathrm{occur}}=1$ for all $i.$ To compose such a co-occurrence graph, we can calculate a matrix $P$ = $\{ p_{i, j}^{\mathrm{occur}}| i, j$ = $1, \ldots , k\}$ using a largescale natural scene image dataset $D^{\prime}$, whose distribution is deemed to be similar to $\mathcal{D}.$ We approximate co-occurrence probabilities using the relative co-occurrence frequencies of objects from ${\mathcal{D} }^{\prime }.$ Distance graph. Suppose the bounding box of an object is given as $[x^{c},y^{c},h,\tilde{w}]$,where $(x^{c},y^{c})$ denote the center pixel location of the box and $(h,w)$ denote the height and width in pixels. In distance graph, the edge $e_i,j$ captures the $\begin{array}{l}\text{distribution of the }\ell_{2}&\text{distance between center points of }c_{j}\\\mathrm{and~}c_{i}.&\text{The bilateral edges are equivalent. Considering the}\end{array}$ fact that the image size $(H,W)$ varies in the dataset, which will also influence the distance between two objects, thus to minimize this scaling effect, we normalize the distance by image diagonal $L=\sqrt{H^2+W^2}.$ The distance distribution is denoted as $p_{i,j}^{\mathrm{dist}}(\ell_{2}([x_{i}^{c},y_{i}^{c}],[x_{j}^{c},y_{j}^{c}])/L|c_{i}).$ Size graph. Similarly, size graph models the 2D distributions of object height and width, where edge $e_i,j$ represents $\begin{array}{l}{p_{i,j}^{\mathrm{size}}(h_{j}/L,w_{j}/L|c_{i}),\mathrm{~which~is~the~distribution~of~height~and}}\\{\mathrm{width~of~}c_{j}\mathrm{~given~}c_{i}\mathrm{~is~also~present~in~the~image.}}\end{array}$ ## 3.2 Context-Aware Attack Plan Given an image $I$, we denote the instance categories in the image as $X=[x_{1},x_{2},...,x_{m}]$,where $m$ is the total number of detected objects in the image. Note that different $x_i$ could be the same because two instances of the same category can co-occur in a scene. For the miscategorization attack, the goal is to miscategorize $x_{i}$ to $x_{i}^{\prime}$ for $\tilde{i}\in\{1,\ldots,m\}.$ We call the object associated with $x_i$ as the victim object or the victim instance. To simplify our discussion, let us assume that our goal is to miscategorize $x_1$ to $x_1^{\prime}.$ Note here that methods that focus on miscategorizing the victim object/instance only will search for a perturbation so that the labels for all the objects become $X^{\prime}=[x_1^{\prime},x_2,...,x_m].$ We call $X^\prime$ the attack plan, since it yields the target labels for attackers. In our proposed context-aware attack method, in addition to miscategorizing $x_1$ into $x_1^{\prime}$,we may also want to miscategorize one or more helper objects that can provide impor-
[ [ "0.08826", "0.06946", "0.4756", "0.06946", "0.4756", "0.0833", "0.08826", "0.0833" ], [ "0.5215", "0.06946", "0.9126", "0.06946", "0.9126", "0.0833", "0.5215", "0.0833" ], [ "0.08905", "0.0852", "0.4756", "0.0852", "0.4756", "0.09534", "0.08905", "0.09534" ], [ "0.5195", "0.084", "0.911", "0.084", "0.911", "0.09784", "0.5195", "0.09784" ], [ "0.08496", "0.0966", "0.478", "0.09784", "0.478", "0.1111", "0.08496", "0.10986" ], [ "0.5186", "0.0966", "0.9126", "0.09784", "0.9126", "0.11237", "0.5186", "0.1111" ], [ "0.08826", "0.11237", "0.4795", "0.11237", "0.4795", "0.1256", "0.08826", "0.1256" ], [ "0.5195", "0.11237", "0.722", "0.11237", "0.722", "0.1256", "0.5195", "0.1256" ], [ "0.08826", "0.127", "0.4763", "0.127", "0.4763", "0.137", "0.08826", "0.137" ], [ "0.5215", "0.132", "0.91", "0.132", "0.91", "0.1465", "0.5215", "0.1465" ], [ "0.0866", "0.1395", "0.478", "0.1395", "0.478", "0.1528", "0.0866", "0.1528" ], [ "0.08826", "0.1515", "0.478", "0.1515", "0.478", "0.1654", "0.08826", "0.1654" ], [ "0.5215", "0.1477", "0.911", "0.1477", "0.911", "0.1578", "0.5215", "0.1578" ], [ "0.5195", "0.1604", "0.9126", "0.1604", "0.9126", "0.1736", "0.5195", "0.1736" ], [ "0.08496", "0.1666", "0.4763", "0.1666", "0.4763", "0.1799", "0.08496", "0.1799" ], [ "0.5195", "0.1736", "0.9126", "0.1749", "0.9126", "0.1881", "0.5195", "0.1875" ], [ "0.08826", "0.1875", "0.4763", "0.1875", "0.4763", "0.2008", "0.08826", "0.2008" ], [ "0.5215", "0.1881", "0.9126", "0.1881", "0.9126", "0.202", "0.5215", "0.202" ], [ "0.0866", "0.2026", "0.4756", "0.2026", "0.4756", "0.2166", "0.0866", "0.2166" ], [ "0.5215", "0.202", "0.91", "0.202", "0.91", "0.2153", "0.5215", "0.2153" ], [ "0.08496", "0.2166", "0.4763", "0.2166", "0.4763", "0.2299", "0.08496", "0.2299" ], [ "0.5215", "0.2166", "0.9126", "0.2166", "0.9126", "0.2299", "0.5215", "0.2299" ], [ "0.08496", "0.2299", "0.4756", "0.2299", "0.4756", "0.2437", "0.08496", "0.2437" ], [ "0.5195", "0.2299", "0.9126", "0.2299", "0.9126", "0.2443", "0.5195", "0.2443" ], [ "0.0866", "0.2437", "0.4763", "0.2437", "0.4763", "0.2568", "0.0866", "0.2568" ], [ "0.5215", "0.2437", "0.911", "0.2437", "0.911", "0.2568", "0.5215", "0.2568" ], [ "0.0866", "0.2568", "0.478", "0.2568", "0.478", "0.2708", "0.0866", "0.2708" ], [ "0.5195", "0.2568", "0.8022", "0.2568", "0.8022", "0.2708", "0.5195", "0.2708" ], [ "0.7935", "0.2568", "0.9126", "0.2556", "0.9126", "0.2708", "0.7935", "0.2715" ], [ "0.08826", "0.2715", "0.4795", "0.2715", "0.4795", "0.2854", "0.08826", "0.2854" ], [ "0.5195", "0.2708", "0.9126", "0.2708", "0.9126", "0.2842", "0.5195", "0.2842" ], [ "0.08826", "0.2854", "0.478", "0.2854", "0.478", "0.2986", "0.08826", "0.2986" ], [ "0.5215", "0.2854", "0.914", "0.2854", "0.914", "0.2986", "0.5215", "0.2986" ], [ "0.08496", "0.2986", "0.4763", "0.2986", "0.4763", "0.3125", "0.08496", "0.3125" ], [ "0.517", "0.2954", "0.7466", "0.2986", "0.7466", "0.3164", "0.517", "0.3132" ], [ "0.739", "0.2998", "0.8384", "0.2986", "0.8384", "0.31", "0.739", "0.3113" ], [ "0.0866", "0.3125", "0.4763", "0.3125", "0.4763", "0.3257", "0.0866", "0.3257" ], [ "0.5376", "0.3132", "0.911", "0.3132", "0.911", "0.327", "0.5376", "0.327" ], [ "0.08826", "0.327", "0.478", "0.327", "0.478", "0.3403", "0.08826", "0.3403" ], [ "0.5195", "0.3276", "0.91", "0.3276", "0.91", "0.3423", "0.5195", "0.3423" ], [ "0.08905", "0.3423", "0.4763", "0.3423", "0.4763", "0.3528", "0.08905", "0.3528" ], [ "0.5195", "0.3423", "0.9126", "0.3416", "0.9126", "0.356", "0.5195", "0.3567" ], [ "0.0866", "0.3547", "0.4795", "0.3547", "0.4795", "0.3687", "0.0866", "0.3687" ], [ "0.5195", "0.3567", "0.914", "0.3567", "0.914", "0.3706", "0.5195", "0.3706" ], [ "0.08496", "0.3687", "0.478", "0.3687", "0.478", "0.3818", "0.08496", "0.3818" ], [ "0.5195", "0.3718", "0.914", "0.3718", "0.914", "0.385", "0.5195", "0.385" ], [ "0.0866", "0.3838", "0.478", "0.3838", "0.478", "0.3945", "0.0866", "0.3945" ], [ "0.5186", "0.3838", "0.6284", "0.3833", "0.6284", "0.3977", "0.5186", "0.3984" ], [ "0.08496", "0.3965", "0.478", "0.3965", "0.478", "0.4104", "0.08496", "0.4104" ], [ "0.08417", "0.4104", "0.4314", "0.4104", "0.4314", "0.4236", "0.08417", "0.4236" ], [ "0.5215", "0.406", "0.9126", "0.406", "0.9126", "0.4192", "0.5215", "0.4192" ], [ "0.5195", "0.4204", "0.9126", "0.4204", "0.9126", "0.4343", "0.5195", "0.4343" ], [ "0.1487", "0.4382", "0.4429", "0.4382", "0.4429", "0.4526", "0.1487", "0.4526" ], [ "0.5215", "0.4343", "0.9126", "0.4343", "0.9126", "0.4475", "0.5215", "0.4475" ], [ "0.1462", "0.4395", "0.1544", "0.4426", "0.1503", "0.449", "0.1422", "0.4458" ], [ "0.125", "0.44", "0.1381", "0.44", "0.1381", "0.4495", "0.125", "0.4495" ], [ "0.5215", "0.4475", "0.9126", "0.4475", "0.9126", "0.4622", "0.5215", "0.4622" ], [ "0.0866", "0.455", "0.478", "0.4558", "0.478", "0.4702", "0.0866", "0.4697" ], [ "0.5195", "0.4602", "0.911", "0.461", "0.911", "0.476", "0.5195", "0.4749" ], [ "0.08826", "0.473", "0.4756", "0.473", "0.4756", "0.483", "0.08826", "0.483" ], [ "0.523", "0.4766", "0.911", "0.4766", "0.911", "0.4873", "0.523", "0.4873" ], [ "0.08826", "0.4849", "0.4763", "0.4849", "0.4763", "0.4988", "0.08826", "0.4988" ], [ "0.5215", "0.488", "0.914", "0.488", "0.914", "0.5024", "0.5215", "0.5024" ], [ "0.08496", "0.4988", "0.478", "0.4988", "0.478", "0.512", "0.08496", "0.512" ], [ "0.5215", "0.5024", "0.914", "0.5024", "0.914", "0.5166", "0.5215", "0.5166" ], [ "0.0866", "0.5146", "0.4763", "0.5146", "0.4763", "0.5244", "0.0866", "0.5244" ], [ "0.5215", "0.5176", "0.9126", "0.5176", "0.9126", "0.531", "0.5215", "0.531" ], [ "0.08826", "0.528", "0.4756", "0.528", "0.4756", "0.5386", "0.08826", "0.5386" ], [ "0.5215", "0.5327", "0.914", "0.5327", "0.914", "0.547", "0.5215", "0.547" ], [ "0.08496", "0.5405", "0.4763", "0.5405", "0.4763", "0.5537", "0.08496", "0.5537" ], [ "0.5195", "0.547", "0.818", "0.547", "0.818", "0.561", "0.5195", "0.561" ], [ "0.0866", "0.556", "0.4763", "0.556", "0.4763", "0.5664", "0.0866", "0.5664" ], [ "0.08496", "0.5684", "0.4722", "0.5684", "0.4722", "0.582", "0.08496", "0.582" ], [ "0.5215", "0.5674", "0.91", "0.5674", "0.91", "0.5806", "0.5215", "0.5806" ], [ "0.1013", "0.582", "0.478", "0.582", "0.478", "0.595", "0.1013", "0.595" ], [ "0.5215", "0.582", "0.9126", "0.582", "0.9126", "0.595", "0.5215", "0.595" ], [ "0.08496", "0.595", "0.478", "0.5967", "0.478", "0.61", "0.08496", "0.6094" ], [ "0.5195", "0.5967", "0.9126", "0.5947", "0.9126", "0.6094", "0.5195", "0.6113" ], [ "0.08496", "0.6094", "0.4763", "0.6094", "0.4763", "0.6226", "0.08496", "0.6226" ], [ "0.5186", "0.6094", "0.835", "0.61", "0.835", "0.625", "0.5186", "0.6235" ], [ "0.08496", "0.6235", "0.478", "0.6235", "0.478", "0.637", "0.08496", "0.637" ], [ "0.08826", "0.638", "0.478", "0.638", "0.478", "0.6484", "0.08826", "0.6484" ], [ "0.5215", "0.636", "0.773", "0.636", "0.773", "0.6494", "0.5215", "0.6494" ], [ "0.0866", "0.651", "0.478", "0.651", "0.478", "0.664", "0.0866", "0.664" ], [ "0.524", "0.655", "0.91", "0.655", "0.91", "0.6655", "0.524", "0.6655" ], [ "0.0866", "0.6665", "0.4756", "0.6665", "0.4756", "0.677", "0.0866", "0.677" ], [ "0.5215", "0.6685", "0.9126", "0.6685", "0.9126", "0.6816", "0.5215", "0.6816" ], [ "0.0866", "0.6797", "0.478", "0.6797", "0.478", "0.69", "0.0866", "0.69" ], [ "0.5215", "0.6816", "0.9126", "0.6816", "0.9126", "0.696", "0.5215", "0.696" ], [ "0.0866", "0.6914", "0.4763", "0.6914", "0.4763", "0.705", "0.0866", "0.705" ], [ "0.5195", "0.696", "0.911", "0.6963", "0.911", "0.7085", "0.5195", "0.707" ], [ "0.08496", "0.707", "0.4763", "0.707", "0.4763", "0.72", "0.08496", "0.72" ], [ "0.5195", "0.7104", "0.6504", "0.7104", "0.6504", "0.7236", "0.5195", "0.7236" ], [ "0.08496", "0.72", "0.4795", "0.72", "0.4795", "0.7344", "0.08496", "0.7344" ], [ "0.535", "0.7227", "0.91", "0.7227", "0.91", "0.7363", "0.535", "0.7363" ], [ "0.08496", "0.7344", "0.2893", "0.7344", "0.2893", "0.7476", "0.08496", "0.7476" ], [ "0.5195", "0.7373", "0.911", "0.7373", "0.911", "0.7505", "0.5195", "0.7505" ], [ "0.08417", "0.756", "0.2688", "0.7583", "0.2688", "0.776", "0.08417", "0.7734" ], [ "0.5195", "0.7505", "0.91", "0.7505", "0.91", "0.765", "0.5195", "0.765" ], [ "0.5215", "0.765", "0.9126", "0.765", "0.9126", "0.779", "0.5215", "0.779" ], [ "0.0866", "0.779", "0.478", "0.779", "0.478", "0.7925", "0.0866", "0.7925" ], [ "0.5215", "0.78", "0.911", "0.78", "0.911", "0.7905", "0.5215", "0.7905" ], [ "0.08496", "0.7925", "0.4795", "0.7925", "0.4795", "0.806", "0.08496", "0.806" ], [ "0.5195", "0.7925", "0.9126", "0.7925", "0.9126", "0.806", "0.5195", "0.806" ], [ "0.0866", "0.806", "0.478", "0.806", "0.478", "0.8193", "0.0866", "0.8193" ], [ "0.5215", "0.806", "0.9126", "0.806", "0.9126", "0.8193", "0.5215", "0.8193" ], [ "0.08496", "0.8193", "0.4763", "0.821", "0.4763", "0.834", "0.08496", "0.8335" ], [ "0.5254", "0.8228", "0.5596", "0.8228", "0.5596", "0.83", "0.5254", "0.83" ], [ "0.5537", "0.8193", "0.914", "0.8193", "0.914", "0.834", "0.5537", "0.834" ], [ "0.0866", "0.834", "0.4795", "0.834", "0.4795", "0.8477", "0.0866", "0.8477" ], [ "0.5195", "0.834", "0.7573", "0.834", "0.7573", "0.8477", "0.5195", "0.8477" ], [ "0.0866", "0.8477", "0.4795", "0.8477", "0.4795", "0.8613", "0.0866", "0.8613" ], [ "0.536", "0.8477", "0.914", "0.8477", "0.914", "0.8613", "0.536", "0.8613" ], [ "0.0866", "0.8623", "0.4763", "0.8623", "0.4763", "0.8755", "0.0866", "0.8755" ], [ "0.5195", "0.8623", "0.911", "0.8623", "0.911", "0.8755", "0.5195", "0.8755" ], [ "0.08496", "0.8755", "0.4795", "0.8755", "0.4795", "0.8896", "0.08496", "0.8896" ], [ "0.5195", "0.8755", "0.9126", "0.8755", "0.9126", "0.8896", "0.5195", "0.8896" ] ]
[ "number of model calls is allowed. Several papers (Paper-", "ei.j encodes different properties relating two nodes such as", "not et al.2017:Liu et al. 2017:Dong et al. 2018:Li et al.", "their co-occurrence probability, distance, and relative size.", "2020b)have examined the phenomenon of transfer attacks", "The number of nodes in the context graph is same as the", "where the adversarial examples generated using a surrogate", "number of object categories k.", "networkcanfoolanunknownnetwork.Thepreviousworks", "Co-occurrence graph. We aim to model the co-", "studying transfer attacks focus on image classifiers. In this", "paper, we focus on object detectors,which is considered to", "occurrenceprobabilityofeachpairofinstancesinanatural", "image. To be more specific, we seek to determine the prob-", "be a much harder problem (Xie et al. 2017; Wu et al. 2020).", "ability of the event that an instance of category ci appears", "Attacking object detectors. Almost all existing attacks", "in the image given that an instance of category c, also ap-", "on object detectors focus on whitebox setting. Some patch-", "pears in the image. Co-occurrence graph inherits the struc-", "based attacks (Liu et al. 2019; Saha et al. 2020) are very", "ture of the aforementioned context graph, and the directed", "effective but the patches are obviously visible to observers", "edge ei,j represents the probability that an instance of cat-", "Some attacks such as DAG (Xie et al. 2017), RAP (Li et al)", "egory c, appears in the image given an instance Ci already", "2018), and CAP (Zhang, Zhou, and Li 2020) rely on region", "exists. This probability is denoted by poccur", "/ = p(c,lc). Note", "proposal network (RPN), thus only work for proposal-based", "that for each node, we also have an edge pointing to itself", "(two-stage) object detectors. Some attacks are more generic", "(i.e., ei,i).According to the definition of probability we have", "such as UAE (Wei et al. 2019) and TOG (Chow et al. 2020)", "0≤poccur ≤1 and j=1.. ocu", "cur=1forall i.", "that work for both one-stage and two-stage models. Among", "To compose such a co-occurrence graph, we can calcu-", "them TOG is the most generic approach that can attack all", "late a matrix P = (poccurji,j = l,...,k) using a large-", "differentkinds of modelsregardless oftheirarchitectures as", "scale natural scene image dataset D', whose distribution is", "long as backpropagation on training loss is feasible. Even", "deemed to be similar to D. We approximate co-occurrence", "though some of these works have reported transfer attack", "probabilities using the relative co-occurrence frequencies of", "results on a small set of blackbox models, since they are", "objects from D'", "mainly designed for whitebox attacks, they fail to provide", "systematic evaluation in a realistic blackbox settings.", "Distance graph.Suppose the bounding box of an object", "is given as [r,y, h, w], where (rc,y) denote the center", "Context-Aware Sequential Attacks", "pixel location of the box and (h, w) denote the height and", "", "3", "width in pixels. In distance graph, the edge ei.j captures the", "While algorithms in prior approaches search for adversarial", "distribution of the l2 distance between center points of cj", "examplesthatmisclassifythe victimobjects onlywepro-", "and ci.The bilateral edges are equivalent.Considering the", "pose to formulate the optimization problem towards perturb-", "fact that the image size (H, W) varies in the dataset, which", "ing both the victim object and the “context\" associated with", "will also influence the distance between two objects, thus to", "thevictimobject.The context of an object is determinedby", "minimize this scaling effect, we normalize the distance by", "theobjectsthatco-existwithit.Wehypothesizethatthecon-", "image diagonal L = VH2 + W2. The distance distribution", "text not only plays an important role in improving classifica-", "is denoted as pdist(l2([cs, y], [rg, y,])/L|c).", "tion/detectionperformance,butcanalsoboosttheabilityto", "realize efficient adversarial attacks against object detectors.", "Size graph. Similarly, size graph models the 2D distribu-", "Next, we show how we compose context-aware attack", "tions of object height and width, where edge ei. represents", "plans and search for adversarial examples by sequentially", "psize(hj/L, wWs/Lci), which is the distribution of height and", " solving optimization problems that are defined for a context-", "width of cj given c, is also present in the image.", "aware attack plan. The context-aware attack plans utilize", "the contextual information withregardtothe co-existence", "3.2Context-AwareAttackPlan", "of instances of different categories and their relative loca-", "Given animage I.we denotethe instancecategories inthe", "tions and sizes.Wefirstdescribehow werepresent the con-", "image as X = [i, &2, ..., m], where m is the total number", "textual information.Then we discuss how to compose the", "of detected objects in the image. Note that different &; could", "so-defined context-aware attack plan. Finally, we describe", "bethe samebecause two instances of the samecategory can", "how we generate the adversarial examples by solving rele-", "co-occur in a scene.", "vant optimization problems sequentially. The framework is", "For the miscategorization attack, the goal is to miscatego-", "explained in detail in Figure 1.", "rize i to a', for i E [1,..., m]. We call the object asso-", "3.1 Context Modeling", "ciated with C; as the victim object or the victim instance.", "To simplify our discussion, let us assume that our goal is to", "We represent a natural scene image as I and the distribu-", "miscategorizeitoc'.Noteherethatmethodsthatfocuson", "tion of all natural images as D. Each I E D could contain", "miscategorizing the victim object/instance only will search", "one or multiple object instances. We denote the possible ob-", "for a perturbation so that the labels for all the objects become", "ject categories in the distribution D by C={ci,C2,..,Ck]", "X=", "[ci, &2, .., &m]. We call X' the attack plan, since it", "where k is the total number of object categories. We define", "yields the target labels for attackers.", "the context graph (an example shown in Figure 1 b) as a", "In our proposed context-aware attack method, in addition", "fully connected directed graph, in which each node is asso-", "to miscategorizing i into c', we may also want to miscat-", "ciated with an object category ci and the weight on the edge", "egorize one or more helper objects that can provide impor-" ]
{ "arxiv_id": "2112.03223", "language": "en", "page_idx": 2 }
2112.03223-en-3
2112.03223-en-3.jpg
tant context information for $x_1.$ We create a context-aware attack plan as $X_c^{\prime}=[x_1^{\prime},x_2^{\prime},...,x_n^{\prime}].$ We will use subscript $c$ with context-aware attack plans to distinguish them from the context-agnostic attack plans. The $x_i^{\prime}$ could be the same as $x_i$ when we do not seek to miscategorize the instance associated with $x_i.$ All the $x_i$ (except the victim object) that change to a different label $x_i^{\prime}$ in $\hat{X}_c^{\prime}$ are called helper instances. Note that in the context-aware attack plan, $X_{c}^{\prime},n$ could be greater than $m$ in cases where we decide to insert new instances as helper objects. We illustrate an example attack plan in Figure 1(c), where the bird at the bottom is the victim object that we want to mis-categorize to a table; the bird at the top (to be mis-categorized as chair) and the additional appearing chair are the two helper instances. The number of helper instances is a hyper-parameter that we tune. We use the co-occurrence graph, defined previously, to decide which existing instances $(x_i)$ should serve as helper instances, and what category labels $(x_i^{\prime})$ should be assigned to these instances. From the co-occurrence graph, we obtain the co-occurrence probability with respect to every possible instance pair category. Given the goal of miscategorizing victim object from $x_1$ to $x_1^{\prime}$,we choose the label for every helper instance $(x_{i}^{\prime})$ by sampling the label space $C$ according to the co-occurrence probability $p(x_i^{\prime}=\bar{c}|x_1^{\prime})$ for all $c\in\bar{C}.$Note that$\sum_c\in Cp(x_{i}^{\prime}=c|x_{1}^{\prime})=1.$ We could model the joint probability of all helper instances given the target label, but that would require a large amount of data. Our sampling approach assumes conditional independence of helper instances (akin to naïve Bayes), in which we draw the most probable labels for our helper labels by sampling one row of the co-occurrence probability matrix. By random sampling the label space in this manner, we expect that objects that occur more frequently will be selected as labels for the helper objects. We first select the helper objects from among the $m$ objects present in the scene. In case we need to add new helper instances $(>m)$,we choose their locations and sizes according to the mean values of the distributions given by distance and size graphs. 33 Sequential Attack Generation We propose a sequential perturbation generation strategy, where we start with zero helper objects in the attack plan and sequentially add one helper object until the attack succeeds $\hat{\text{on the blackbox, as shown in Figure 1.We generate adver-}}$ sarial attacks using a single or multiple surrogate model(s) in our perturbation machine. As we sequentially add the helper objects in the attack plan, we query the black-box model to see if our attack succeeds. In our experiments, we make up to 6 queries to the blackbox detector, which provides hard labels for the detected objects. We use this information only as a stopping criterion for the attack generation. We stop the sequential attack process if the adversarial example fools the black-box model or we run out of the budget of helper objects. Note that our strategy is orthogonal to query-based methods that aim to generate adversarial examples or estimate gradients of the blackbox models (often using hundreds or thousands of queries) (Wang et al. 2020b; Cheng et al. 2019; Huang and Zhang 2020). Our attack generation method with a single surrogate de- tector is based on targeted adversarial objectness gradient attacks (TOG) (Chow et al. 2020), which can be viewed as training the detector for modified labels given in the attack plan $X^\prime.$ The weights of the detector network remain fixed but a perturbation image $\delta$ is added to the clean image as $I+\delta$ at every iteration to minimize the training loss $\tilde{\mathcal{L}}($clip$(I+\delta);\mathcal{O}^\prime)$ for a desired output $\mathcal{O}^\prime.$ The value of $I+\delta$ is clipped at each iteration to make sure it is legally bounded. We generate the desired output $\mathcal{O}^\prime$ based on our attack plan $X^{\prime}.$ The attack plan in $X^\prime$ only contains label information, but we also assign location and confidence score information in $\mathcal{O}^\prime.$ At every iteration, we update the perturbation using the iterative fast gradient signed method (1-FGSM), $$\delta\leftarrow\delta-\epsilon\cdot\mathrm{sign}[\nabla_{\delta}\mathcal{L}(\mathrm{clip}(I+\delta);\mathcal{O}^{\prime})],$$ (1) where $\epsilon$ is the step size at each iteration. We can also use an ensemble of detectors as the surrogate models in perturbation machine, where we generate perturbation by minimizing the joint loss function over all detectors: $$\mathcal{L}=\alpha_{1}\mathcal{L}_{1}+\alpha_{2}\mathcal{L}_{2}+...+\alpha_{N}\mathcal{L}_{\mathrm{N}},$$ $\begin{array}{l}\text{while keeping}\sum_{i=1}^{N}\alpha_{i}=1\text{ and }\alpha_{i}>0\text{ for all }i.\text{ We can}\\\text{easily modify our method to use other perturbation genera-}\end{array}$ (2) tion methods and loss functions (Madry et al. 2018; Carlini and Wagner 2017; Dong et al. 2018; Xie et al. 2019; Lin et al. 2020; Wang and He 2021). # 4 Experiments We perform comprehensive experiments on two large-scale object detection datasets to evaluate the proposed contextaware sequential attack strategy. We mainly show that the context-aware sequential attack strategy can help with miscategorization attacks in blackbox setting. We also present results with whitebox setting, for completeness, even though this is not our primary objective. ## 4.1 Implementation Details Object detection models. We evaluate our attack plans on a diverse set of object detectors, including $\cdot \textbf{Two- stage detectors. Faster R- CNN( Ren et al. 2015) , }$ Libra R-CNN (Pang et al. 2019, 2021); $\cdot$ One-stage detectors. YOLOv3 (Redmon and Farhadi 2018),RetinaNet (Lin et al. 2017); Anchor-free detectors. FoveaBox (Kong et al.2020), FreeAnchor (Zhang et al. 2019); $\cdot$Transformer-based detectors.DETR (Carion et al. 2020), Deformable DETR (Zhu et al. 2021). We use MMDetection (Chen et al. 2019) code repository for the aforementioned models. Inspired by (Liu et al. 2017; Wu et al. 2020), we use an ensemble of locally trained object detection models as the surrogate model. Selecting a good surrogate ensemble is an interesting question, where the number and type of surrogate models will influence the attack success rate. We tested different single and multiple models as surrogates in our preliminary tests and observed a similar trend that the context-aware attacks significantly outperform the baseline attacks that are context-agnostic.
[ [ "0.0866", "0.06946", "0.4795", "0.06946", "0.4795", "0.0833", "0.0866", "0.0833" ], [ "0.5195", "0.06946", "0.9126", "0.06946", "0.9126", "0.0833", "0.5195", "0.0833" ], [ "0.08496", "0.084", "0.4795", "0.084", "0.4795", "0.0985", "0.08496", "0.0985" ], [ "0.5215", "0.0852", "0.911", "0.0852", "0.911", "0.09534", "0.5215", "0.09534" ], [ "0.0866", "0.09784", "0.478", "0.09784", "0.478", "0.1111", "0.0866", "0.1111" ], [ "0.5195", "0.09784", "0.911", "0.09784", "0.911", "0.1111", "0.5195", "0.1111" ], [ "0.08826", "0.113", "0.478", "0.113", "0.478", "0.1237", "0.08826", "0.1237" ], [ "0.5195", "0.1111", "0.914", "0.1111", "0.914", "0.125", "0.5195", "0.125" ], [ "0.0866", "0.127", "0.4756", "0.127", "0.4756", "0.137", "0.0866", "0.137" ], [ "0.523", "0.127", "0.91", "0.127", "0.91", "0.137", "0.523", "0.137" ], [ "0.0866", "0.1395", "0.4795", "0.1395", "0.4795", "0.1528", "0.0866", "0.1528" ], [ "0.5215", "0.1395", "0.911", "0.1395", "0.911", "0.1528", "0.5215", "0.1528" ], [ "0.08496", "0.1515", "0.4756", "0.1515", "0.4756", "0.1654", "0.08496", "0.1654" ], [ "0.523", "0.1528", "0.9126", "0.1528", "0.9126", "0.1666", "0.523", "0.1666" ], [ "0.0866", "0.1686", "0.478", "0.1686", "0.478", "0.1787", "0.0866", "0.1787" ], [ "0.5215", "0.1674", "0.911", "0.1674", "0.911", "0.1812", "0.5215", "0.1812" ], [ "0.0866", "0.1812", "0.4795", "0.1812", "0.4795", "0.1945", "0.0866", "0.1945" ], [ "0.5215", "0.1812", "0.9126", "0.1812", "0.9126", "0.1945", "0.5215", "0.1945" ], [ "0.08496", "0.1945", "0.478", "0.1957", "0.478", "0.207", "0.08496", "0.2058" ], [ "0.5215", "0.1932", "0.9126", "0.1945", "0.9126", "0.2084", "0.5215", "0.207" ], [ "0.08496", "0.2084", "0.4795", "0.2084", "0.4795", "0.2216", "0.08496", "0.2216" ], [ "0.5186", "0.207", "0.911", "0.209", "0.911", "0.2229", "0.5186", "0.2203" ], [ "0.0866", "0.2229", "0.478", "0.2229", "0.478", "0.2361", "0.0866", "0.2361" ], [ "0.5186", "0.2203", "0.914", "0.2216", "0.914", "0.2361", "0.5186", "0.2349" ], [ "0.0866", "0.2374", "0.4763", "0.2374", "0.4763", "0.2474", "0.0866", "0.2474" ], [ "0.5195", "0.2361", "0.8945", "0.2361", "0.8945", "0.25", "0.5195", "0.25" ], [ "0.08496", "0.25", "0.4453", "0.25", "0.4453", "0.2632", "0.08496", "0.2632" ], [ "0.584", "0.2568", "0.8486", "0.2568", "0.8486", "0.2715", "0.584", "0.2715" ], [ "0.892", "0.2583", "0.9126", "0.2583", "0.9126", "0.2715", "0.892", "0.2715" ], [ "0.10297", "0.2644", "0.4795", "0.2644", "0.4795", "0.2778", "0.10297", "0.2778" ], [ "0.0866", "0.2778", "0.4763", "0.2778", "0.4763", "0.2917", "0.0866", "0.2917" ], [ "0.5215", "0.279", "0.9126", "0.279", "0.9126", "0.2922", "0.5215", "0.2922" ], [ "0.0866", "0.2935", "0.478", "0.2935", "0.478", "0.3037", "0.0866", "0.3037" ], [ "0.5195", "0.2917", "0.911", "0.2922", "0.911", "0.307", "0.5195", "0.3062" ], [ "0.08496", "0.3062", "0.478", "0.3062", "0.478", "0.3193", "0.08496", "0.3193" ], [ "0.5215", "0.307", "0.91", "0.307", "0.91", "0.3208", "0.5215", "0.3208" ], [ "0.0866", "0.3208", "0.4756", "0.3208", "0.4756", "0.3308", "0.0866", "0.3308" ], [ "0.5195", "0.3193", "0.814", "0.3193", "0.814", "0.3333", "0.5195", "0.3333" ], [ "0.08826", "0.3333", "0.4756", "0.3333", "0.4756", "0.3467", "0.08826", "0.3467" ], [ "0.603", "0.3423", "0.831", "0.3423", "0.831", "0.3567", "0.603", "0.3567" ], [ "0.8906", "0.3423", "0.914", "0.3423", "0.914", "0.3567", "0.8906", "0.3567" ], [ "0.0866", "0.3599", "0.478", "0.3599", "0.478", "0.3738", "0.0866", "0.3738" ], [ "0.0866", "0.3467", "0.4763", "0.3467", "0.4763", "0.3599", "0.0866", "0.3599" ], [ "0.517", "0.3599", "0.9165", "0.3599", "0.9165", "0.385", "0.517", "0.385" ], [ "0.0866", "0.375", "0.478", "0.375", "0.478", "0.3882", "0.0866", "0.3882" ], [ "0.5195", "0.379", "0.9126", "0.379", "0.9126", "0.3926", "0.5195", "0.3926" ], [ "0.0866", "0.3882", "0.478", "0.3882", "0.478", "0.4016", "0.0866", "0.4016" ], [ "0.5195", "0.3933", "0.9126", "0.3933", "0.9126", "0.4072", "0.5195", "0.4072" ], [ "0.0866", "0.4016", "0.2632", "0.4016", "0.2632", "0.4153", "0.0866", "0.4153" ], [ "0.2532", "0.4016", "0.478", "0.401", "0.478", "0.4153", "0.2532", "0.4167" ], [ "0.5195", "0.4072", "0.914", "0.4072", "0.914", "0.4204", "0.5195", "0.4204" ], [ "0.08496", "0.4167", "0.478", "0.4167", "0.478", "0.43", "0.08496", "0.43" ], [ "0.5195", "0.4216", "0.7344", "0.4216", "0.7344", "0.435", "0.5195", "0.435" ], [ "0.0866", "0.43", "0.478", "0.43", "0.478", "0.443", "0.0866", "0.443" ], [ "0.08826", "0.4458", "0.4763", "0.4458", "0.4763", "0.4558", "0.08826", "0.4558" ], [ "0.6465", "0.449", "0.785", "0.449", "0.785", "0.4634", "0.6465", "0.4634" ], [ "0.08826", "0.459", "0.4756", "0.459", "0.4756", "0.4697", "0.08826", "0.4697" ], [ "0.08417", "0.4697", "0.4795", "0.4717", "0.4795", "0.4849", "0.08417", "0.483" ], [ "0.523", "0.4673", "0.9126", "0.4673", "0.9126", "0.481", "0.523", "0.481" ], [ "0.08496", "0.4849", "0.478", "0.4849", "0.478", "0.4988", "0.08496", "0.4988" ], [ "0.5215", "0.4817", "0.911", "0.4817", "0.911", "0.4956", "0.5215", "0.4956" ], [ "0.08496", "0.4988", "0.4763", "0.4988", "0.4763", "0.512", "0.08496", "0.512" ], [ "0.5195", "0.4956", "0.9126", "0.4956", "0.9126", "0.509", "0.5195", "0.509" ], [ "0.08826", "0.5146", "0.4763", "0.5146", "0.4763", "0.5244", "0.08826", "0.5244" ], [ "0.5195", "0.509", "0.911", "0.509", "0.911", "0.523", "0.5195", "0.523" ], [ "0.08417", "0.526", "0.4795", "0.5264", "0.4795", "0.5405", "0.08417", "0.539" ], [ "0.5195", "0.5234", "0.9126", "0.5234", "0.9126", "0.537", "0.5195", "0.537" ], [ "0.08496", "0.5405", "0.4795", "0.5405", "0.4795", "0.5537", "0.08496", "0.5537" ], [ "0.5195", "0.537", "0.9126", "0.537", "0.9126", "0.5503", "0.5195", "0.5503" ], [ "0.0866", "0.5547", "0.4756", "0.5547", "0.4756", "0.565", "0.0866", "0.565" ], [ "0.5186", "0.55", "0.7363", "0.5503", "0.7363", "0.565", "0.5186", "0.5645" ], [ "0.0866", "0.5684", "0.478", "0.5684", "0.478", "0.582", "0.0866", "0.582" ], [ "0.523", "0.5757", "0.7417", "0.5757", "0.7417", "0.5903", "0.523", "0.5903" ], [ "0.08496", "0.582", "0.3105", "0.582", "0.3105", "0.595", "0.08496", "0.595" ], [ "0.5195", "0.5923", "0.9126", "0.5947", "0.9126", "0.608", "0.5195", "0.606" ], [ "0.08496", "0.606", "0.3545", "0.607", "0.3545", "0.622", "0.08496", "0.6206" ], [ "0.5195", "0.608", "0.7974", "0.608", "0.7974", "0.622", "0.5195", "0.622" ], [ "0.0866", "0.6255", "0.4763", "0.6255", "0.4763", "0.64", "0.0866", "0.64" ], [ "0.527", "0.6255", "0.911", "0.6255", "0.911", "0.6396", "0.527", "0.6396" ], [ "0.0866", "0.64", "0.478", "0.64", "0.478", "0.654", "0.0866", "0.654" ], [ "0.54", "0.64", "0.7983", "0.64", "0.7983", "0.655", "0.54", "0.655" ], [ "0.08417", "0.654", "0.478", "0.653", "0.478", "0.6665", "0.08417", "0.6675" ], [ "0.5254", "0.657", "0.914", "0.656", "0.914", "0.6704", "0.5254", "0.672" ], [ "0.0866", "0.6675", "0.478", "0.6675", "0.478", "0.6816", "0.0866", "0.6816" ], [ "0.54", "0.6694", "0.773", "0.672", "0.773", "0.685", "0.54", "0.683" ], [ "0.08496", "0.6816", "0.4795", "0.6816", "0.4795", "0.696", "0.08496", "0.696" ], [ "0.527", "0.6875", "0.9126", "0.6875", "0.9126", "0.702", "0.527", "0.702" ], [ "0.08417", "0.6943", "0.4795", "0.696", "0.4795", "0.709", "0.08417", "0.7085" ], [ "0.54", "0.7007", "0.7563", "0.7007", "0.7563", "0.714", "0.54", "0.714" ], [ "0.0866", "0.709", "0.4795", "0.709", "0.4795", "0.7227", "0.0866", "0.7227" ], [ "0.08496", "0.7227", "0.4763", "0.7227", "0.4763", "0.7363", "0.08496", "0.7363" ], [ "0.527", "0.7183", "0.914", "0.7183", "0.914", "0.732", "0.527", "0.732" ], [ "0.5415", "0.732", "0.83", "0.732", "0.83", "0.7456", "0.5415", "0.7456" ], [ "0.0866", "0.738", "0.4763", "0.738", "0.4763", "0.7485", "0.0866", "0.7485" ], [ "0.08496", "0.75", "0.478", "0.7505", "0.478", "0.765", "0.08496", "0.7646" ], [ "0.5376", "0.7505", "0.911", "0.7505", "0.911", "0.7646", "0.5376", "0.7646" ], [ "0.08496", "0.765", "0.478", "0.765", "0.478", "0.779", "0.08496", "0.779" ], [ "0.5195", "0.765", "0.911", "0.765", "0.911", "0.779", "0.5195", "0.779" ], [ "0.0866", "0.78", "0.4763", "0.78", "0.4763", "0.7905", "0.0866", "0.7905" ], [ "0.5215", "0.779", "0.9126", "0.779", "0.9126", "0.7925", "0.5215", "0.7925" ], [ "0.0866", "0.7935", "0.4756", "0.7935", "0.4756", "0.8037", "0.0866", "0.8037" ], [ "0.5215", "0.7925", "0.9126", "0.7925", "0.9126", "0.806", "0.5215", "0.806" ], [ "0.0866", "0.806", "0.4795", "0.806", "0.4795", "0.8193", "0.0866", "0.8193" ], [ "0.523", "0.808", "0.911", "0.808", "0.911", "0.8184", "0.523", "0.8184" ], [ "0.08496", "0.821", "0.4763", "0.821", "0.4763", "0.834", "0.08496", "0.834" ], [ "0.523", "0.8213", "0.9126", "0.8213", "0.9126", "0.832", "0.523", "0.832" ], [ "0.0866", "0.834", "0.478", "0.834", "0.478", "0.8477", "0.0866", "0.8477" ], [ "0.5195", "0.834", "0.9126", "0.834", "0.9126", "0.8477", "0.5195", "0.8477" ], [ "0.0866", "0.8477", "0.4763", "0.8477", "0.4763", "0.8613", "0.0866", "0.8613" ], [ "0.5195", "0.8477", "0.9126", "0.8477", "0.9126", "0.8613", "0.5195", "0.8613" ], [ "0.08496", "0.86", "0.3284", "0.8613", "0.3284", "0.8755", "0.08496", "0.875" ], [ "0.5215", "0.863", "0.911", "0.863", "0.911", "0.8735", "0.5215", "0.8735" ], [ "0.10297", "0.8755", "0.478", "0.8755", "0.478", "0.8896", "0.10297", "0.8896" ], [ "0.5195", "0.8755", "0.911", "0.8755", "0.911", "0.8896", "0.5195", "0.8896" ] ]
[ "tant context information for 1. We create a context-aware", "tector is based on targeted adversarial objectness gradient", "attack plan as X, = [r', 2, .., rn]. We will use subscript", "attacks (TOG) (Chow et al. 2020).which can be viewed", "c with context-aware attack plans to distinguish them from", "as training the detector for modified labels given in the at-", "the context-agnosticattackplans.The ,could bethesame", "tack plan X'.The weights of the detector network remain", "as ,whenwe donot seekto miscategorizethe instanceas-", "fixed buta perturbationimage is added to the cleanim-", "sociated with i. All the &; (except the victim object) that", "age as I + d at every iteration to minimize the training loss", "change to a different label , in X' are called helper in.", "C(clip(I+); O') for a desired output O'. The value of I+", "stances.Note that inthe context-aware attack plan,Xs,n", "is clipped at each iteration to make sure it is legally bounded.", "could be greater than m in cases where we decide to insert", "We generate the desired output O' based on our attack plan", "new instances as helper objects.We illustrate an example", "X'. The attack plan in X' only contains label information,", "attack plan in Figure 1(c), where the bird at the bottom is", "butwe also assign location and confidence score informa-", "the victim object that we want to mis-categorize to a table;", "tion in O'. At every iteration, we update the perturbation", "the bird at thetop (to be mis-categorized as chair)and the", "using the iterative fast gradient signed method (I-FGSM))", "additional appearing chair are the two helper instances.", " -E· sign[VsC(clip(I +); O')],", "(1)", "The number of helper instances is a hyper-parameter that", "we tune. We use the co-occurrence graph, defined previ-", "where is the step size at each iteration. We can also use an", "ously,to decidewhichexistinginstances(a,)shouldserve", "ensemble of detectors as the surrogate models in perturba-", "as helper instances, and what category labels (r') should be", "tion machine, where we generate perturbation by minimiz-", "assignedtothese instances.Fromtheco-occurrencegraph", "ing the joint loss function over all detectors:", "we obtain the co-occurrence probability with respect to ev-", "L= QiLI +Q2L2+...+ aNLN,", "(2)", "egorizing victim object from i to r', we choose the label", "ery possible instance pair category. Given the goal of miscat-", "while keeping Z1ai =l and ai > O forall i. We can", "for every helper instance (ac') by sampling the label space", "easily modify our method to use other perturbation genera-", "C according to the co-occurrence probability p(c, = cr')", "tion methods and loss functions (Madry et al. 2018; Carlini", "for all c E C. Note that ", "Lcecp(a,=ca)=1.Wecould", "and Wagner 2017; Dong et al. 2018; Xie et al. 2019; Lin", "model the joint probability of all helper instances given the", "et al. 2020; Wang and He 2021).", "target label, but that would require a large amount of data.", "Oursamplingapproachassumesconditionalindependence", "4Experiments", "ofhelperinstances(akintonaiveBayes),inwhichwedraw", "the most probablelabels forour helper labels by sampling", "We perform comprehensive experiments on two large-scale", "one row ofthe co-occurrenceprobabilitymatrix.Byrandom", "object detection datasets to evaluate the proposed context-", " sampling the label space in this manner, we expect that ob-", "aware sequential attack strategy. We mainly show that the", "jectsthat occur more frequently will be selected aslabels", "context-aware sequential attack strategy can help with mis-", "for thehelperobjects.Wefirst select the helperobjects from", "categorization attacks in blackbox setting. We also present", "among the m objects present in the scene. In case we need to", "results with whitebox setting,for completeness, even though", "add newhelperinstances (>m).we choose their locations", "this is not our primary objective.", "and sizes according to the mean values of the distributions", "4.1ImplementationDetails", "given by distance and size graphs.", "Object detection models.We evaluate our attack plans on", "3.3SequentialAttackGeneration", "a diverse set of object detectors, including", "We propose a sequential perturbation generation strategy", ". Two-stage detectors. Faster R-CNN (Ren et al. 2015),", "where we start with zero helper objects in the attack plan and", "Libra R-CNN (Pang et al. 2019, 2021);", "sequentially add one helper object until the attack succeeds", ": One-stage detectors. YOLOv3 (Redmon and Farhadi", "on the blackbox, as shown in Figure 1. We generate adver-", "2018), RetinaNet (Lin et al. 2017);", "sarial attacks using a single or multiple surrogate model(s) in", ": Anchor-free detectors. FoveaBox (Kong et al. 2020),", "our perturbation machine.As we sequentially add the helper", "FreeAnchor (Zhang et al. 2019);", "objects in the attack plan, we query the black-box model to", "see if our attack succeeds. In our experiments, we make up", ". Transformer-based detectors. DETR (Carion et al.", "2020), Deformable DETR (Zhu et al. 2021)", "to 6queriesto theblackboxdetector,whichprovideshard", "labels for the detected objects. We use this information only", "We use MMDetect ion (Chen et al. 2019) code reposi-", "as a stopping criterion for the attack generation. We stop the", "tory for the aforementioned models. Inspired by (Liu et al.", "sequentialattackprocess if theadversarial examplefoolsthe", "2017; Wu et al. 2020), we use an ensemble of locally trained", "black-box model or werun out ofthe budgetof helper ob", "object detection models as the surrogate model. Selecting a", "jects. Note that our strategy is orthogonal to query-based", "good surrogate ensemble isaninteresting question,where", "methods that aim to generate adversarial examples or es-", "thenumberandtype of surrogatemodels willinfluencethe", "timate gradients of the blackbox models (often using hun-", "attack success rate. We tested different single and multiple", "dreds or thousands of queries) (Wang et al. 2020b; Cheng", "models as surrogates in our preliminary tests and observed", "et al. 2019; Huang and Zhang 2020).", "a similar trend that the context-aware attacks significantly", "Our attack generation method with a single surrogate de-", "outperform the baseline attacks that are context-agnostic." ]
{ "arxiv_id": "2112.03223", "language": "en", "page_idx": 3 }
2112.03223-en-4
2112.03223-en-4.jpg
Table 1: White-box and black-box mis-categorization attack fooling rate on different models with different perturbation budgets $(L_{\infty}\leq$ $\{10,20,30\})$ using VOC and COCO dataset. Baseline only perturbs the victim object, while ours also perturbs other objects conforming to$\{10,20,30\})$ using VOC and COCO dataset. Baseline only perturbs the victim objects conforming to context. Random perturbs other objects but assign random labels. Abbreviation: Faster R-CNN (FRCNN), RetinaNet (Retina), Libra R-CNN (Libra), FoveaBox (Fovea), FreeAnchor (Free), Deformable DETR (D-DETR). <table> <tbody> <tr> <th rowspan="2">Perturbation $\operatorname{Budget}$</th> <th rowspan="2">Method</th> <th colspan="2">$\mathbf{Whitebox}$</th> <th rowspan="2">Retina</th> <th rowspan="2">$\mathbf{Blackbox}$</th> <th colspan="2">$\mathbf{Blackbox}$</th> <th rowspan="2">D- DETR</th> </tr> <tr> <th>FRCNN</th> <th>YOLOv3</th> <th>Libra</th> <th>Fovea</th> <th>Free</th> <th>DETR</th> </tr> <tr> <td> </td> <td> </td> <td> </td> <td>Results $OI.$</td> <td>$\boldsymbol{P}A\boldsymbol{SC}A\boldsymbol{L}$</td> <td>$VOC$</td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td rowspan="3">$L_{\infty}$ $\leq$ 10</td> <td>$B\varepsilon$ saseline</td> <td>40.0</td> <td>53.8</td> <td>13.8</td> <td>9.2</td> <td>22.2</td> <td>27.4</td> <td>9.6</td> <td>23.2</td> </tr> <tr> <td>Random</td> <td>52.4</td> <td>69.2</td> <td>19.4</td> <td>17.4</td> <td>31.6</td> <td>37.8</td> <td>17.4</td> <td>36.8</td> </tr> <tr> <td>Ours</td> <td>55.8</td> <td>75.6</td> <td>22.6</td> <td>20.4</td> <td>33.6</td> <td>39.2</td> <td>20.2</td> <td>39.2</td> </tr> <tr> <td rowspan="3">$L_{\infty}$ $\leq$ 20</td> <td>$\overline{{\mathrm{Baseline}}}$</td> <td></td> <td>67.8</td> <td>24.0</td> <td>21.4</td> <td>34.4</td> <td>41.8</td> <td>14.4</td> <td>37.6</td> </tr> <tr> <td>Random</td> <td>74.4</td> <td>83.8</td> <td>31.0</td> <td>29.6</td> <td>46.2</td> <td>54.4</td> <td>28.0</td> <td>52.6</td> </tr> <tr> <td>Ours</td> <td>78.6</td> <td>87.2</td> <td>35.2</td> <td>38.4</td> <td>51.6</td> <td>56.6</td> <td>34.0</td> <td></td> </tr> <tr> <td rowspan="3">$L_{\infty}$ $\leq30$ </td> <td> ${\mathrm{aseline}}$</td> <td>70.6</td> <td>70.4</td> <td>29.8</td> <td>$\overline{28.6}$</td> <td>$\overline{41.6}$</td> <td>48.0</td> <td>20.4</td> <td>38.6</td> </tr> <tr> <td>Random</td> <td>79.2</td> <td>82.6</td> <td>37.8</td> <td>36.8</td> <td>53.4</td> <td>59.8</td> <td>34.4</td> <td>52.8</td> </tr> <tr> <td>Ours</td> <td>80.6</td> <td>88.0</td> <td>42.0</td> <td>44.2</td> <td>56.8</td> <td>63.6</td> <td>40.2</td> <td>59.0</td> </tr> <tr> <td rowspan="4">$L_{\infty}$ $\leq$ 10</td> <td> </td> <td> </td> <td>Results</td> <td>$MSCC$ $0n$</td> <td>$)CO$</td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td>Baseline</td> <td>29.0</td> <td>32.2</td> <td>7.4</td> <td>4.8</td> <td>11.6</td> <td>16.6</td> <td>3.4</td> <td>19.0</td> </tr> <tr> <td>Random</td> <td>40.2</td> <td>48.4</td> <td>11.2</td> <td>8.0</td> <td>14.6</td> <td>20.0</td> <td>6.2</td> <td>23.6</td> </tr> <tr> <td>Ours</td> <td>41.2</td> <td>54.4</td> <td>12.0</td> <td>11.2</td> <td>18.6</td> <td>25.0</td> <td>10.8</td> <td>27.8</td> </tr> <tr> <td rowspan="3">$L_{\infty}$ $\leq:$ 20</td> <td>Baseline</td> <td>51.8</td> <td>49.2</td> <td>13.4</td> <td>$\overline{11.8}$</td> <td>22.0</td> <td>$\overline{28.6}$</td> <td>8.8</td> <td>26.8</td> </tr> <tr> <td>Random</td> <td>60.6</td> <td>66.4</td> <td>20.6</td> <td>18.8</td> <td>31.4</td> <td>37.2</td> <td>20.2</td> <td>39.2</td> </tr> <tr> <td>Ours</td> <td>64.4</td> <td>70.0</td> <td>20.8</td> <td>22.2</td> <td>35.4</td> <td>40.8</td> <td>20.0</td> <td>43.2</td> </tr> <tr> <td rowspan="3">$L_{\infty}$ $\leq30$</td> <td>$\operatorname{Baseline}$</td> <td>$\overline{57.6}$</td> <td>54.4</td> <td>$\overline{18.2}$</td> <td>$\overline{15.4}$</td> <td>$\overline{25.6}$</td> <td>$\overline{34.8}$</td> <td>$\overline{8.0}$</td> <td>$\overline{28.8}$</td> </tr> <tr> <td>Random</td> <td>65.8</td> <td>73.6</td> <td>23.8</td> <td>21.8</td> <td>34.8</td> <td>47.8</td> <td>18.4</td> <td>42.0</td> </tr> <tr> <td>Ours</td> <td>68.6</td> <td>75.4</td> <td>27.2</td> <td>27.2</td> <td>39.2</td> <td>46.2</td> <td>21.2</td> <td>48.6</td> </tr> </tbody> </table> Therefore, we selected two most commonly-used models, Faster R-CNN and YOLOv3, as the surrogate ensemble in our experiments. The weighting factor $\alpha$ is chosen such that the individual loss terms are balanced. On the blackbox victim side, we choose the leftover models that have a variety of different architectures. Attack generation. We use I-FGSM-based method to generate a perturbation on the whole image (as discussed in Eqn. (1)), and we limit the maximum perturbation level to be $L_{\infty}\leq\{10,20,30\}.$The number of helper objects is empirically chosen to be 5. We present an analysis study on how the attack performance changes with the number of helper objects in Section 4.3 of analysis study. Datasets. We use images from both PASCAL VOC (Everingham et al.2010) and MS COCO (Lin et al.2014) datasets in our experiments. VOC contains 20 object categories which commonly appear in natural environment, and COCO contains 80 categories which is a super-set of the categories in VOC. We randomly selected 500 images that contain multiple (2-6) objects from voc2007test and coco2017val. Since all models in MMDetection are trained on coco2017train, while testing the detectors on VOC images, we only return the objects that also exist in VOC categories. Baseline and comparisons. TOG (Chow et al.2020) shows better performance compared to UEA (Wei et al. 2019) and RAP(Li et al. 2018); therefore, to understand the performance of the proposed context-aware attack plan strategy, we use the current state-the-art attack strategy based on TOG (Chow et al. 2020). The attack plan generated by the baseline (labeled as Baseline in Table 1) is context-agnostic and only associated with the victim object. To validate that our proposed context-aware attack really benefits from cooccurrence, location and size information, we also present results for a setting (labeled as Random in Table 1) in which we choose helper objects label and location at random. Context graph construction. For VOC and COCO images, we extract context from voc2007trainval and coco2017train respectively. For each dataset, we build three $N\times N$ arrays $(\bar{N}$ is number of labels) that contain cooccurrence probability, distance distribution, and size distributions. The $(i,j)$ ceil in the co-occurrence array stores the number of co-occurrences of object $c_i$ and object $c_j$ normalized by the summation of that row; each cell in the distance array is a 1D distribution of the distances between $c_i$ and $c_j$ found in the images; each cell in the size table is a 2D distribution of $h$ and $w$ of $c_j$ given $c_i.$ These three arrays can be easily computed form the datasets. Evaluation metric We use attack success rate (or fooling rate) to evaluate the adversarial attack performance on any victim object detector. Since we perform targeted miscategorization attack, instead of using mAP which takes account of all existing objects, we only focus on the victim object and define our attack success rate as the percentage of attacks in which the victim object was successfully misclassified to the target label. In experiments, we check if the target object exists in the detection with an intersection over union (IOU) greater than 0.3. If yes, the attack is successful (or the detector is fooled); otherwise, the attack fails. For the selection of target objects, we randomly selected one target
[ [ "0.08496", "0.05304", "0.899", "0.05365", "0.899", "0.06757", "0.08496", "0.0663" ], [ "0.8945", "0.05936", "0.9087", "0.05936", "0.9087", "0.0631", "0.8945", "0.0631" ], [ "0.08826", "0.0663", "0.9126", "0.0663", "0.9126", "0.0802", "0.08826", "0.0802" ], [ "0.08826", "0.0808", "0.9126", "0.0808", "0.9126", "0.09155", "0.08826", "0.09155" ], [ "0.08496", "0.09216", "0.5522", "0.09216", "0.5522", "0.1061", "0.08496", "0.1061" ], [ "0.1814", "0.1193", "0.2615", "0.1218", "0.2615", "0.1364", "0.1814", "0.1338" ], [ "0.3782", "0.1206", "0.4436", "0.1206", "0.4436", "0.1351", "0.3782", "0.1351" ], [ "0.621", "0.1187", "0.6846", "0.1206", "0.683", "0.1364", "0.619", "0.1338" ], [ "0.2778", "0.127", "0.33", "0.127", "0.33", "0.1414", "0.2778", "0.1414" ], [ "0.3464", "0.1332", "0.4004", "0.1332", "0.4004", "0.1477", "0.3464", "0.1477" ], [ "0.4885", "0.1332", "0.5317", "0.1332", "0.5317", "0.1477", "0.4885", "0.1477" ], [ "0.597", "0.1332", "0.6396", "0.1332", "0.6396", "0.1477", "0.597", "0.1477" ], [ "0.6978", "0.1332", "0.7427", "0.1332", "0.7427", "0.1477", "0.6978", "0.1477" ], [ "0.7534", "0.1307", "0.8164", "0.1332", "0.8164", "0.1477", "0.7534", "0.1459" ], [ "0.5474", "0.1338", "0.5825", "0.1338", "0.5825", "0.1465", "0.5474", "0.1465" ], [ "0.1978", "0.1338", "0.2484", "0.1338", "0.2484", "0.1483", "0.1978", "0.1483" ], [ "0.415", "0.1351", "0.4739", "0.1351", "0.4739", "0.1465", "0.415", "0.1465" ], [ "0.652", "0.1338", "0.683", "0.1338", "0.683", "0.1465", "0.652", "0.1465" ], [ "0.4192", "0.1509", "0.5767", "0.1509", "0.5767", "0.1654", "0.4192", "0.1654" ], [ "0.601", "0.1642", "0.6357", "0.1642", "0.6357", "0.1799", "0.601", "0.1799" ], [ "0.652", "0.1642", "0.6855", "0.1642", "0.6855", "0.1799", "0.652", "0.1799" ], [ "0.706", "0.1642", "0.7344", "0.1642", "0.7344", "0.1812", "0.706", "0.1812" ], [ "0.7686", "0.1642", "0.8022", "0.1642", "0.8022", "0.1799", "0.7686", "0.1799" ], [ "0.357", "0.1654", "0.3906", "0.1654", "0.3906", "0.1812", "0.357", "0.1812" ], [ "0.2754", "0.1654", "0.3325", "0.1654", "0.3325", "0.1799", "0.2754", "0.1799" ], [ "0.4272", "0.1654", "0.4617", "0.1654", "0.4617", "0.1812", "0.4272", "0.1812" ], [ "0.4958", "0.1654", "0.528", "0.1654", "0.528", "0.1812", "0.4958", "0.1812" ], [ "0.5522", "0.1654", "0.5767", "0.1654", "0.5767", "0.1787", "0.5522", "0.1787" ], [ "0.4983", "0.1755", "0.5293", "0.1787", "0.5254", "0.1945", "0.4944", "0.1913" ], [ "0.652", "0.1755", "0.687", "0.1787", "0.6846", "0.1932", "0.649", "0.1901" ], [ "0.7036", "0.1755", "0.739", "0.1787", "0.7363", "0.1945", "0.7017", "0.1913" ], [ "0.601", "0.1768", "0.6357", "0.1768", "0.6357", "0.1925", "0.601", "0.1925" ], [ "0.1929", "0.178", "0.255", "0.178", "0.255", "0.1925", "0.1929", "0.1925" ], [ "0.3555", "0.178", "0.3906", "0.178", "0.3906", "0.1932", "0.3555", "0.1932" ], [ "0.4272", "0.178", "0.4617", "0.178", "0.4617", "0.1932", "0.4272", "0.1932" ], [ "0.55", "0.178", "0.5825", "0.178", "0.5825", "0.1932", "0.55", "0.1932" ], [ "0.7686", "0.178", "0.8022", "0.178", "0.8022", "0.1932", "0.7686", "0.1932" ], [ "0.4968", "0.1881", "0.5293", "0.1913", "0.527", "0.207", "0.4944", "0.2039" ], [ "0.2769", "0.1799", "0.3308", "0.1799", "0.3308", "0.1913", "0.2769", "0.1913" ], [ "0.6045", "0.1881", "0.636", "0.1913", "0.634", "0.207", "0.601", "0.2039" ], [ "0.6543", "0.1881", "0.687", "0.1913", "0.6846", "0.207", "0.652", "0.2039" ], [ "0.7036", "0.1895", "0.738", "0.1895", "0.738", "0.2058", "0.7036", "0.2058" ], [ "0.429", "0.1901", "0.4617", "0.1901", "0.4617", "0.2058", "0.429", "0.2058" ], [ "0.357", "0.1901", "0.3906", "0.1901", "0.3906", "0.2058", "0.357", "0.2058" ], [ "0.55", "0.1901", "0.5825", "0.1901", "0.5825", "0.2058", "0.55", "0.2058" ], [ "0.7686", "0.1901", "0.8022", "0.1901", "0.8022", "0.2058", "0.7686", "0.2058" ], [ "0.4272", "0.2039", "0.46", "0.2039", "0.46", "0.2197", "0.4272", "0.2197" ], [ "0.2876", "0.1913", "0.3218", "0.1913", "0.3218", "0.2039", "0.2876", "0.2039" ], [ "0.4958", "0.2039", "0.528", "0.2039", "0.528", "0.2197", "0.4958", "0.2197" ], [ "0.603", "0.2039", "0.6357", "0.2039", "0.6357", "0.2197", "0.603", "0.2197" ], [ "0.652", "0.2039", "0.6855", "0.2039", "0.6855", "0.2197", "0.652", "0.2197" ], [ "0.705", "0.2039", "0.738", "0.2039", "0.738", "0.2197", "0.705", "0.2197" ], [ "0.55", "0.2052", "0.581", "0.2052", "0.581", "0.2172", "0.55", "0.2172" ], [ "0.2769", "0.2058", "0.3308", "0.2058", "0.3308", "0.2172", "0.2769", "0.2172" ], [ "0.3586", "0.2058", "0.3882", "0.2058", "0.3882", "0.2172", "0.3586", "0.2172" ], [ "0.7695", "0.2058", "0.8013", "0.2058", "0.8013", "0.2184", "0.7695", "0.2184" ], [ "0.357", "0.214", "0.392", "0.2172", "0.3896", "0.2317", "0.3545", "0.2291" ], [ "0.5483", "0.214", "0.584", "0.2172", "0.581", "0.2317", "0.546", "0.2291" ], [ "0.652", "0.214", "0.687", "0.2172", "0.6846", "0.2317", "0.649", "0.2291" ], [ "0.7036", "0.214", "0.739", "0.2172", "0.7363", "0.2329", "0.7017", "0.2299" ], [ "0.7686", "0.214", "0.8037", "0.2172", "0.8013", "0.2329", "0.767", "0.2299" ], [ "0.2754", "0.2166", "0.3325", "0.2166", "0.3325", "0.2311", "0.2754", "0.2311" ], [ "0.1912", "0.2166", "0.255", "0.2166", "0.255", "0.2311", "0.1912", "0.2311" ], [ "0.429", "0.2166", "0.4617", "0.2166", "0.4617", "0.2317", "0.429", "0.2317" ], [ "0.4958", "0.2166", "0.528", "0.2166", "0.528", "0.2317", "0.4958", "0.2317" ], [ "0.601", "0.2166", "0.6357", "0.2166", "0.6357", "0.2317", "0.601", "0.2317" ], [ "0.429", "0.2279", "0.4617", "0.2279", "0.4617", "0.2437", "0.429", "0.2437" ], [ "0.4958", "0.2279", "0.527", "0.2279", "0.527", "0.2437", "0.4958", "0.2437" ], [ "0.601", "0.2279", "0.6357", "0.2279", "0.6357", "0.2437", "0.601", "0.2437" ], [ "0.652", "0.2279", "0.6855", "0.2279", "0.6855", "0.2437", "0.652", "0.2437" ], [ "0.7036", "0.2267", "0.738", "0.2299", "0.7344", "0.2443", "0.701", "0.2412" ], [ "0.357", "0.2291", "0.3906", "0.2291", "0.3906", "0.2443", "0.357", "0.2443" ], [ "0.2876", "0.2299", "0.3218", "0.2299", "0.3218", "0.2424", "0.2876", "0.2424" ], [ "0.55", "0.2299", "0.581", "0.2299", "0.581", "0.2424", "0.55", "0.2424" ], [ "0.7695", "0.2299", "0.8013", "0.2299", "0.8013", "0.2424", "0.7695", "0.2424" ], [ "0.4958", "0.2412", "0.527", "0.2412", "0.527", "0.2568", "0.4958", "0.2568" ], [ "0.7036", "0.2412", "0.7363", "0.2412", "0.7363", "0.2568", "0.7036", "0.2568" ], [ "0.3594", "0.2437", "0.3896", "0.2437", "0.3896", "0.2556", "0.3594", "0.2556" ], [ "0.2769", "0.2424", "0.3325", "0.2424", "0.3325", "0.2568", "0.2769", "0.2568" ], [ "0.4314", "0.2437", "0.46", "0.2437", "0.46", "0.2556", "0.4314", "0.2556" ], [ "0.55", "0.2437", "0.58", "0.2437", "0.58", "0.2556", "0.55", "0.2556" ], [ "0.603", "0.2437", "0.634", "0.2437", "0.634", "0.2556", "0.603", "0.2556" ], [ "0.6543", "0.2437", "0.6846", "0.2437", "0.6846", "0.2556", "0.6543", "0.2556" ], [ "0.7695", "0.2437", "0.8013", "0.2437", "0.8013", "0.2556", "0.7695", "0.2556" ], [ "0.2769", "0.252", "0.3325", "0.2551", "0.3308", "0.2708", "0.2754", "0.2676" ], [ "0.4958", "0.2524", "0.527", "0.2524", "0.527", "0.2695", "0.4958", "0.2695" ], [ "0.357", "0.254", "0.3896", "0.254", "0.3896", "0.2708", "0.357", "0.2708" ], [ "0.1912", "0.254", "0.255", "0.254", "0.255", "0.2695", "0.1912", "0.2695" ], [ "0.429", "0.254", "0.4617", "0.254", "0.4617", "0.2695", "0.429", "0.2695" ], [ "0.5483", "0.254", "0.581", "0.254", "0.581", "0.2695", "0.5483", "0.2695" ], [ "0.601", "0.254", "0.6357", "0.254", "0.6357", "0.2695", "0.601", "0.2695" ], [ "0.652", "0.254", "0.6855", "0.254", "0.6855", "0.2695", "0.652", "0.2695" ], [ "0.7036", "0.254", "0.738", "0.254", "0.738", "0.2695", "0.7036", "0.2695" ], [ "0.7686", "0.254", "0.8022", "0.254", "0.8022", "0.2708", "0.7686", "0.2708" ], [ "0.286", "0.2651", "0.3218", "0.2683", "0.3203", "0.2827", "0.2834", "0.281" ], [ "0.4958", "0.2651", "0.527", "0.2651", "0.527", "0.2822", "0.4958", "0.2822" ], [ "0.7036", "0.2651", "0.738", "0.2651", "0.738", "0.2822", "0.7036", "0.2822" ], [ "0.429", "0.2664", "0.46", "0.2664", "0.46", "0.2822", "0.429", "0.2822" ], [ "0.357", "0.2664", "0.3906", "0.2664", "0.3906", "0.2822", "0.357", "0.2822" ], [ "0.55", "0.2664", "0.581", "0.2664", "0.581", "0.2822", "0.55", "0.2822" ], [ "0.601", "0.2664", "0.6357", "0.2664", "0.6357", "0.2822", "0.601", "0.2822" ], [ "0.652", "0.2664", "0.6855", "0.2664", "0.6855", "0.2822", "0.652", "0.2822" ], [ "0.7686", "0.2664", "0.8022", "0.2664", "0.8022", "0.2822", "0.7686", "0.2822" ], [ "0.4314", "0.286", "0.568", "0.286", "0.568", "0.3005", "0.4314", "0.3005" ], [ "0.2754", "0.2974", "0.3325", "0.2998", "0.3308", "0.315", "0.2737", "0.3132" ], [ "0.357", "0.2986", "0.3906", "0.2986", "0.3906", "0.3145", "0.357", "0.3145" ], [ "0.429", "0.2986", "0.4617", "0.2986", "0.4617", "0.3145", "0.429", "0.3145" ], [ "0.4968", "0.2986", "0.5254", "0.2986", "0.5254", "0.315", "0.4968", "0.315" ], [ "0.603", "0.2974", "0.6357", "0.2974", "0.6357", "0.3145", "0.603", "0.3145" ], [ "0.653", "0.2986", "0.6855", "0.2986", "0.6855", "0.3145", "0.653", "0.3145" ], [ "0.706", "0.2986", "0.7344", "0.2986", "0.7344", "0.315", "0.706", "0.315" ], [ "0.7686", "0.2986", "0.8022", "0.2986", "0.8022", "0.3145", "0.7686", "0.3145" ], [ "0.2754", "0.31", "0.3325", "0.3125", "0.3308", "0.327", "0.2737", "0.3245" ], [ "0.5537", "0.2998", "0.5767", "0.2998", "0.5767", "0.3132", "0.5537", "0.3132" ], [ "0.1912", "0.3113", "0.255", "0.3113", "0.255", "0.327", "0.1912", "0.327" ], [ "0.357", "0.3113", "0.3906", "0.3113", "0.3906", "0.3276", "0.357", "0.3276" ], [ "0.652", "0.3113", "0.6855", "0.3113", "0.6855", "0.327", "0.652", "0.327" ], [ "0.706", "0.3113", "0.7344", "0.3113", "0.7344", "0.3276", "0.706", "0.3276" ], [ "0.7686", "0.3113", "0.8022", "0.3113", "0.8022", "0.327", "0.7686", "0.327" ], [ "0.5537", "0.3125", "0.5767", "0.3125", "0.5767", "0.3257", "0.5537", "0.3257" ], [ "0.429", "0.3125", "0.4617", "0.3125", "0.4617", "0.3276", "0.429", "0.3276" ], [ "0.4968", "0.3132", "0.527", "0.3132", "0.527", "0.3257", "0.4968", "0.3257" ], [ "0.603", "0.3125", "0.6357", "0.3125", "0.6357", "0.3276", "0.603", "0.3276" ], [ "0.3586", "0.324", "0.3906", "0.324", "0.3906", "0.339", "0.3586", "0.339" ], [ "0.429", "0.324", "0.4617", "0.324", "0.4617", "0.339", "0.429", "0.339" ], [ "0.4958", "0.3225", "0.527", "0.3225", "0.527", "0.339", "0.4958", "0.339" ], [ "0.55", "0.324", "0.581", "0.324", "0.581", "0.339", "0.55", "0.339" ], [ "0.603", "0.324", "0.6357", "0.324", "0.6357", "0.339", "0.603", "0.339" ], [ "0.653", "0.324", "0.6855", "0.324", "0.6855", "0.339", "0.653", "0.339" ], [ "0.705", "0.324", "0.738", "0.324", "0.738", "0.339", "0.705", "0.339" ], [ "0.7686", "0.324", "0.8022", "0.324", "0.8022", "0.339", "0.7686", "0.339" ], [ "0.603", "0.3352", "0.636", "0.3384", "0.634", "0.3528", "0.6006", "0.3499" ], [ "0.2876", "0.3257", "0.3203", "0.3257", "0.3203", "0.3384", "0.2876", "0.3384" ], [ "0.429", "0.3372", "0.4617", "0.3372", "0.4617", "0.3528", "0.429", "0.3528" ], [ "0.6543", "0.3372", "0.6846", "0.339", "0.683", "0.3542", "0.653", "0.3516" ], [ "0.7686", "0.336", "0.8037", "0.339", "0.8013", "0.3528", "0.7656", "0.3499" ], [ "0.4983", "0.3384", "0.527", "0.3384", "0.527", "0.3528", "0.4983", "0.3528" ], [ "0.2754", "0.3384", "0.3325", "0.3384", "0.3325", "0.3528", "0.2754", "0.3528" ], [ "0.3586", "0.339", "0.3882", "0.339", "0.3882", "0.3516", "0.3586", "0.3516" ], [ "0.5522", "0.339", "0.581", "0.339", "0.581", "0.3516", "0.5522", "0.3516" ], [ "0.7075", "0.3384", "0.734", "0.3384", "0.734", "0.3516", "0.7075", "0.3516" ], [ "0.603", "0.348", "0.636", "0.351", "0.634", "0.3655", "0.6006", "0.3623" ], [ "0.7036", "0.3484", "0.7363", "0.3484", "0.7363", "0.3655", "0.7036", "0.3655" ], [ "0.7686", "0.3484", "0.8022", "0.3484", "0.8022", "0.3643", "0.7686", "0.3643" ], [ "0.2754", "0.3499", "0.3325", "0.3499", "0.3325", "0.3643", "0.2754", "0.3643" ], [ "0.1912", "0.3499", "0.255", "0.3499", "0.255", "0.3643", "0.1912", "0.3643" ], [ "0.357", "0.3499", "0.3906", "0.3499", "0.3906", "0.3655", "0.357", "0.3655" ], [ "0.429", "0.3499", "0.4617", "0.3499", "0.4617", "0.3655", "0.429", "0.3655" ], [ "0.4958", "0.3499", "0.527", "0.3499", "0.527", "0.3655", "0.4958", "0.3655" ], [ "0.55", "0.3499", "0.5825", "0.3499", "0.5825", "0.3655", "0.55", "0.3655" ], [ "0.6543", "0.351", "0.6846", "0.351", "0.6846", "0.363", "0.6543", "0.363" ], [ "0.4958", "0.361", "0.528", "0.361", "0.528", "0.377", "0.4958", "0.377" ], [ "0.55", "0.361", "0.581", "0.361", "0.581", "0.377", "0.55", "0.377" ], [ "0.603", "0.361", "0.6357", "0.361", "0.6357", "0.377", "0.603", "0.377" ], [ "0.7036", "0.3599", "0.738", "0.363", "0.7344", "0.3774", "0.701", "0.375" ], [ "0.7686", "0.361", "0.8022", "0.361", "0.8022", "0.377", "0.7686", "0.377" ], [ "0.357", "0.3623", "0.3906", "0.3623", "0.3906", "0.3774", "0.357", "0.3774" ], [ "0.2876", "0.363", "0.3203", "0.363", "0.3203", "0.3757", "0.2876", "0.3757" ], [ "0.4307", "0.363", "0.46", "0.363", "0.46", "0.3757", "0.4307", "0.3757" ], [ "0.6543", "0.363", "0.6846", "0.363", "0.6846", "0.3757", "0.6543", "0.3757" ], [ "0.603", "0.375", "0.6357", "0.375", "0.6357", "0.3901", "0.603", "0.3901" ], [ "0.653", "0.375", "0.6855", "0.375", "0.6855", "0.3901", "0.653", "0.3901" ], [ "0.7686", "0.3738", "0.8037", "0.377", "0.8013", "0.3901", "0.7656", "0.387" ], [ "0.7075", "0.3757", "0.734", "0.3757", "0.734", "0.3894", "0.7075", "0.3894" ], [ "0.2754", "0.3757", "0.3308", "0.3774", "0.3308", "0.3901", "0.2754", "0.3882" ], [ "0.3586", "0.377", "0.3896", "0.377", "0.3896", "0.3894", "0.3586", "0.3894" ], [ "0.4307", "0.377", "0.46", "0.377", "0.46", "0.3894", "0.4307", "0.3894" ], [ "0.4968", "0.377", "0.5254", "0.377", "0.5254", "0.3894", "0.4968", "0.3894" ], [ "0.5513", "0.377", "0.581", "0.377", "0.581", "0.3894", "0.5513", "0.3894" ], [ "0.2769", "0.3865", "0.3325", "0.3882", "0.3308", "0.4028", "0.2754", "0.401" ], [ "0.357", "0.3865", "0.392", "0.3894", "0.3896", "0.404", "0.3545", "0.401" ], [ "0.429", "0.3865", "0.4631", "0.3894", "0.46", "0.404", "0.4265", "0.401" ], [ "0.7036", "0.385", "0.7363", "0.3882", "0.734", "0.404", "0.701", "0.401" ], [ "0.7686", "0.3865", "0.8037", "0.3894", "0.8013", "0.404", "0.7656", "0.401" ], [ "0.5483", "0.387", "0.5825", "0.387", "0.5825", "0.4028", "0.5483", "0.4028" ], [ "0.4958", "0.387", "0.528", "0.387", "0.528", "0.4028", "0.4958", "0.4028" ], [ "0.601", "0.387", "0.636", "0.387", "0.636", "0.4028", "0.601", "0.4028" ], [ "0.653", "0.387", "0.6855", "0.387", "0.6855", "0.4028", "0.653", "0.4028" ], [ "0.4307", "0.3984", "0.4631", "0.4016", "0.46", "0.4172", "0.4272", "0.414" ], [ "0.1929", "0.3882", "0.255", "0.3882", "0.255", "0.4028", "0.1929", "0.4028" ], [ "0.4958", "0.3997", "0.527", "0.3997", "0.527", "0.4167", "0.4958", "0.4167" ], [ "0.5483", "0.3997", "0.5825", "0.3997", "0.5825", "0.4167", "0.5483", "0.4167" ], [ "0.601", "0.3997", "0.6357", "0.3997", "0.6357", "0.4167", "0.601", "0.4167" ], [ "0.7036", "0.3997", "0.7363", "0.3997", "0.7363", "0.4167", "0.7036", "0.4167" ], [ "0.7686", "0.3984", "0.8037", "0.4016", "0.8013", "0.4172", "0.767", "0.414" ], [ "0.357", "0.401", "0.3906", "0.401", "0.3906", "0.4167", "0.357", "0.4167" ], [ "0.286", "0.401", "0.3203", "0.401", "0.3203", "0.4167", "0.286", "0.4167" ], [ "0.652", "0.401", "0.6855", "0.401", "0.6855", "0.4167", "0.652", "0.4167" ], [ "0.0866", "0.4458", "0.4763", "0.4458", "0.4763", "0.459", "0.0866", "0.459" ], [ "0.5215", "0.4458", "0.6724", "0.4458", "0.6724", "0.459", "0.5215", "0.459" ], [ "0.665", "0.443", "0.9126", "0.4458", "0.9126", "0.4602", "0.665", "0.4583" ], [ "0.08496", "0.4583", "0.4795", "0.459", "0.4795", "0.4734", "0.08496", "0.473" ], [ "0.5215", "0.4602", "0.9126", "0.4602", "0.9126", "0.4734", "0.5215", "0.4734" ], [ "0.0866", "0.4734", "0.4805", "0.4734", "0.4805", "0.4873", "0.0866", "0.4873" ], [ "0.5195", "0.4734", "0.9126", "0.4734", "0.9126", "0.4873", "0.5195", "0.4873" ], [ "0.08496", "0.4873", "0.4763", "0.4873", "0.4763", "0.5005", "0.08496", "0.5005" ], [ "0.5215", "0.4873", "0.911", "0.4873", "0.911", "0.5005", "0.5215", "0.5005" ], [ "0.08496", "0.5005", "0.478", "0.5005", "0.478", "0.5146", "0.08496", "0.5146" ], [ "0.5195", "0.5005", "0.9126", "0.5005", "0.9126", "0.5146", "0.5195", "0.5146" ], [ "0.0866", "0.5166", "0.2507", "0.5166", "0.2507", "0.5264", "0.0866", "0.5264" ], [ "0.5195", "0.515", "0.9126", "0.515", "0.9126", "0.529", "0.5195", "0.529" ], [ "0.5186", "0.528", "0.7793", "0.529", "0.7793", "0.5435", "0.5186", "0.5425" ], [ "0.1642", "0.55", "0.478", "0.55", "0.478", "0.563", "0.1642", "0.563" ], [ "0.5215", "0.55", "0.7256", "0.55", "0.7256", "0.563", "0.5215", "0.563" ], [ "0.721", "0.5474", "0.9126", "0.549", "0.9126", "0.563", "0.721", "0.5625" ], [ "0.08496", "0.563", "0.478", "0.563", "0.478", "0.5776", "0.08496", "0.5776" ], [ "0.0866", "0.5503", "0.1528", "0.5503", "0.1528", "0.5625", "0.0866", "0.5625" ], [ "0.5195", "0.563", "0.9126", "0.563", "0.9126", "0.577", "0.5195", "0.577" ], [ "0.08496", "0.5776", "0.4756", "0.5776", "0.4756", "0.5913", "0.08496", "0.5913" ], [ "0.5195", "0.5776", "0.9126", "0.5776", "0.9126", "0.5913", "0.5195", "0.5913" ], [ "0.0866", "0.5923", "0.4795", "0.5923", "0.4795", "0.606", "0.0866", "0.606" ], [ "0.5195", "0.5913", "0.9126", "0.5913", "0.9126", "0.605", "0.5195", "0.605" ], [ "0.08496", "0.606", "0.4795", "0.606", "0.4795", "0.619", "0.08496", "0.619" ], [ "0.5186", "0.606", "0.914", "0.605", "0.914", "0.619", "0.5186", "0.6206" ], [ "0.0866", "0.619", "0.4795", "0.619", "0.4795", "0.6333", "0.0866", "0.6333" ], [ "0.5195", "0.6187", "0.9126", "0.6187", "0.9126", "0.632", "0.5195", "0.632" ], [ "0.08496", "0.6333", "0.4795", "0.6333", "0.4795", "0.6465", "0.08496", "0.6465" ], [ "0.5215", "0.6353", "0.911", "0.6353", "0.911", "0.646", "0.5215", "0.646" ], [ "0.0866", "0.6465", "0.4795", "0.6465", "0.4795", "0.66", "0.0866", "0.66" ], [ "0.5195", "0.6465", "0.914", "0.6465", "0.914", "0.66", "0.5195", "0.66" ], [ "0.0866", "0.662", "0.478", "0.662", "0.478", "0.6724", "0.0866", "0.6724" ], [ "0.5186", "0.661", "0.911", "0.66", "0.911", "0.674", "0.5186", "0.675" ], [ "0.08496", "0.675", "0.4795", "0.675", "0.4795", "0.688", "0.08496", "0.688" ], [ "0.5195", "0.675", "0.914", "0.675", "0.914", "0.688", "0.5195", "0.688" ], [ "0.0866", "0.688", "0.1978", "0.688", "0.1978", "0.7026", "0.0866", "0.7026" ], [ "0.5195", "0.688", "0.914", "0.688", "0.914", "0.702", "0.5195", "0.702" ], [ "0.5186", "0.702", "0.8784", "0.7026", "0.8784", "0.7163", "0.5186", "0.7153" ], [ "0.0866", "0.7236", "0.3022", "0.7236", "0.3022", "0.7373", "0.0866", "0.7373" ], [ "0.2932", "0.7217", "0.4763", "0.7227", "0.4763", "0.7373", "0.2932", "0.7363" ], [ "0.5195", "0.7236", "0.6587", "0.7236", "0.6587", "0.7373", "0.5195", "0.7373" ], [ "0.6504", "0.7236", "0.91", "0.7236", "0.91", "0.7373", "0.6504", "0.7373" ], [ "0.08417", "0.7373", "0.4795", "0.7363", "0.4795", "0.7505", "0.08417", "0.752" ], [ "0.5186", "0.7373", "0.914", "0.7363", "0.914", "0.7505", "0.5186", "0.752" ], [ "0.08826", "0.752", "0.4795", "0.752", "0.4795", "0.765", "0.08826", "0.765" ], [ "0.5195", "0.752", "0.911", "0.752", "0.911", "0.765", "0.5195", "0.765" ], [ "0.08496", "0.765", "0.4763", "0.765", "0.4763", "0.779", "0.08496", "0.779" ], [ "0.5195", "0.765", "0.91", "0.765", "0.91", "0.779", "0.5195", "0.779" ], [ "0.0866", "0.78", "0.4756", "0.78", "0.4756", "0.7905", "0.0866", "0.7905" ], [ "0.5215", "0.781", "0.911", "0.781", "0.911", "0.7915", "0.5215", "0.7915" ], [ "0.08496", "0.7925", "0.4795", "0.7925", "0.4795", "0.8066", "0.08496", "0.8066" ], [ "0.5195", "0.7925", "0.9126", "0.7925", "0.9126", "0.806", "0.5195", "0.806" ], [ "0.08496", "0.8066", "0.4795", "0.8066", "0.4795", "0.821", "0.08496", "0.821" ], [ "0.5186", "0.806", "0.9126", "0.8066", "0.9126", "0.821", "0.5186", "0.8193" ], [ "0.08496", "0.821", "0.4795", "0.821", "0.4795", "0.834", "0.08496", "0.834" ], [ "0.5195", "0.821", "0.914", "0.821", "0.914", "0.834", "0.5195", "0.834" ], [ "0.08417", "0.8335", "0.478", "0.834", "0.478", "0.8486", "0.08417", "0.8477" ], [ "0.5195", "0.834", "0.9126", "0.834", "0.9126", "0.8477", "0.5195", "0.8477" ], [ "0.08496", "0.8477", "0.4763", "0.8467", "0.4763", "0.8613", "0.08496", "0.8623" ], [ "0.5195", "0.8486", "0.9126", "0.8486", "0.9126", "0.8623", "0.5195", "0.8623" ], [ "0.0866", "0.8623", "0.4795", "0.8623", "0.4795", "0.877", "0.0866", "0.877" ], [ "0.5195", "0.8623", "0.914", "0.8623", "0.914", "0.8755", "0.5195", "0.8755" ], [ "0.08496", "0.8755", "0.3145", "0.8755", "0.3145", "0.8896", "0.08496", "0.8896" ], [ "0.5215", "0.8774", "0.9126", "0.8774", "0.9126", "0.888", "0.5215", "0.888" ] ]
[ "Table 1: White-box and black-box mis-categorization attack fooling rate on different models with different perturbation budgets (Lo", "", "[10, 20, 30]) using VOC and COCO dataset. Baseline only perturbs the victim object, while ours also perturbs other objects conforming to", "context.Randomperturbs otherobjects butassignrandomlabels.Abbreviation:FasterR-CNN(FRCNN),RetinaNet(Retina),LibraR-CNN", "(Libra), FoveaBox (Fovea), FreeAnchor (Free), Deformable DETR (D-DETR).", "Perturbation", "Whitebox", "Blackbox", "Method", "FRCNN", "Retina", "Fovea", "DETR", "D-DETR", "Libra", "Budget", "YOLOv3", "Free", "Results on PASCAL VOC", "22.2", "27.4", "9.6", "23.2", "40.0", "Baseline", "53.8", "13.8", "9.2", "19.4", "37.8", "17.4", "31.6", "L≤10", "52.4", "69.2", "17.4", "36.8", "22.6", "Random", "33.6", "39.2", "20.2", "75.6", "55.8", "20.4", "39.2", "67.8", "Ours", "24.0", "34.4", "41.8", "14.4", "21.4", "Baseline", "65.2", "37.6", "74.4", "29.6", "54.4", "28.0", "52.6", "Random", "Lα≤20", "83.8", "31.0", "46.2", "87.2", "35.2", "51.6", "56.6", "34.0", "78.6", "Ours", "38.4", "58.4", "29.8", "20.4", "70.6", "Baseline", "70.4", "28.6", "41.6", "48.0", "38.6", "Random", "37.8", "79.2", "L≤30", "82.6", "36.8", "53.4", "59.8", "34.4", "52.8", "Ours", "42.0", "40.2", "88.0", "80.6", "44.2", "56.8", "63.6", "59.0", "Results on MS COCO", "Baseline", "29.0", "32.2", "7.4", "11.6", "16.6", "3.4", "19.0", "Random", "4.8", "L ≤10", "40.2", "20.0", "6.2", "23.6", "8.0", "48.4", "11.2", "14.6", "41.2", "54.4", "12.0", "11.2", "18.6", "25.0", "10.8", "27.8", "22.0", "Ours", "49.2", "28.6", "26.8", "13.4", "Baseline", "51.8", "11.8", "8.8", "31.4", "20.2", "39.2", "Random", "L≤20", "60.6", "66.4", "20.6", "18.8", "37.2", "20.8", "22.2", "35.4", "20.0", "43.2", "64.4", "Ours", "70.0", "40.8", "25.6", "34.8", "28.8", "8.0", "Baseline", "57.6", "54.4", "18.2", "15.4", "Random", "65.8", "73.6", "18.4", "42.0", "21.8", "23.8", "34.8", "47.8", "75.4", "L≤30", "27.2", "27.2", "39.2", "21.2", "48.6", "68.6", "Ours", "46.2", "Therefore, we selected two most commonly-used models.", "Attack generation.", "Weuse I-FGSM-based method to", "Faster R-CNN and YOLOv3, as the surrogate ensemble in", "generate a perturbation on the whole image (as discussed in", "our experiments. The weighting factor α is chosen such that", "Eqn. (1), and we limit the maximum perturbation level to be", "the individual loss terms are balanced. On the blackbox vic-", "Lo ≤ [10, 20, 30]. The number of helper objects is empir-", "tim side, we choose the leftover models that have a variety", "ically chosen to be 5. We present an analysis study on how", "ofdifferentarchitectures", "the attack performance changes with the number of helper", "objects in Section 4.3 of analysis study.", "We use images from both PASCAL VOC (Ev-", "Baseline and comparisons.", "TOG (Chow et al. 2020)", "eringham et al. 2010) and MS COCO (Lin et al. 2014)", "Datasets.", "shows better performance compared to UEA (Wei et al.", "datasets in our experiments. VOC contains 20 object cate", "2019) and RAP (Li et al. 2018); therefore, to understand the", "gories which commonly appear in natural environment, and", "performance of the proposed context-aware attack plan strat-", "COCO contains 80 categories which is a super-set of the", "egy, we use the current state-the-art attack strategy based on", "categories in VOC. We randomly selected 500 images that", "TOG (Chow et al. 2020). The attack plan generated by the", "containmultiple(2-6)objectsfromvoc2007testand", "baseline(labeledasBaselineinTablel)iscontext-agnostic", "coco2017val. Since all models in MMDetection are", "and only associated with the victim object. To validate that", "trainedoncoco2o17train,whiletestingthedetectors", "our proposed context-aware attack really benefits from co-", "on VOC images, we only return the objects that also exist in", "occurrence, location and size information, we also present", "VOC categories.", "results for a setting (labeled as Random in Table 1) in which", "we choose helper objects label and location at random.", "Context graph construction.", "For VOC and COCo im-", "Evaluation metric", "Weuseattack success rate (or fool-", "ages, we extract context from voc2oo7trainval and", "ing rate) to evaluate the adversarial attack performance on", "coco2017train respectively. For each dataset, we build", "any victim object detector. Since we perform targeted mis-", "three N × N arrays (N is number of labels) that contain co-", "categorization attack, instead of using mAP which takes ac-", "occurrenceprobabilitydistancedistribution,andsizedistri-", "count of all existingobjects,weonlyfocusonthevictim", "butions. The (i, j) cell in the co-occurrence array stores the", "object and define our attack success rate as the percentage", "number of co-occurrences of object c, and object c, normal-", "of attacks in which the victim object was successfully mis-", "ized by the summation of that row; each cell in the distance", "classified to the target label. In experiments, we check if the", "array is a ID distribution of the distances between C; and cj", "target object exists in the detection with an intersection over", "found in the images; each cell in the size table is a 2D distri.", "union (IOU) greater than 0.3. If yes, the attack is successful", "bution of h and w of cj given ci. These three arrays can be", "(or the detector is fooled); otherwise, the attack fails. For the", "easily computed form the datasets.", "selectionoftargetobjects,werandomlyselected onetarget" ]
{ "arxiv_id": "2112.03223", "language": "en", "page_idx": 4 }
2402.14489-en-0
2402.14489-en-0.jpg
A CLASS OF TOPOLOGICAL PSEUDODISTANCES FOR FAST COMPARISON OF PERSISTENCE DIAGRAMS EXTENDED VERSION OF PAPER #4518 ACCEPTED ON THE MAIN TRACK OF AAAI24 Rolando Kindelan Nuñez Universidad de Chile rkindelagdcc.uchile.cl Mircea Petrache UCChile mpetrache@mat.uc.cl Mauricio Cerda Department of Electrical Engineering Universidad de Chile mauricio.cerda@uchile.cl Nancy Hitschfeld Universidad de Chile nancy@dcc.uchile.cl ### February 23, 2024 ## $\mathbf{A}\mathbf{BSTRACT}$ Persistence diagrams (PD)s play a central role in topological data analysis, and are used in an ever increasing variety of applications. The comparison of PD data requires computing comparison metrics among large sets of PDs, with metrics which are accurate, theoretically sound, and fast to compute. Especially for denser multi-dimensional PDs, such comparison metrics are lacking. While on the one hand, Wasserstein-type distances have high accuracy and theoretical guarantees, they incur high computational cost. On the other hand, distances between vectorizations such as Persistence Statistics (PS)s have lower computational cost, but lack the accuracy guarantees and in general they are not guaranteed to distinguish PDs (i.e. the two PS vectors of different PDs may be equal). In this work we introduce a class of pseudodistances called Extended Topological Pseudodistances (ETD)s, which have tunable complexity, and can approximate Sliced and classical Wasserstein distances at the high-complexity extreme, while being computationally lighter and close to Persistence Statistics at the lower complexity extreme, and thus allow users to interpolate between the two metrics. We build theoretical comparisons to show how to fit our new distances at an intermediate level between persistence vectorizations and Wasserstein distances. We also experimentally verify that ETDs $\hat{\text{outperform PSs in terms of accuracy and outperform Wasserstein and Sliced Wasserstein distances in}}$ terms of computational complexity. Keywords Topological Pseudodistances·Wasserstein Distances·Machine Learning ## 1 Introduction The processing and extraction of information from large datasets has become increasingly challenging due to the high dimensionality and noisiness of datasets. An important toolbox for describing the shape of complex data with noise robustness bounds is offered by the emerging research field of Topological Data Analysis (TDA) Carlsson [2009], Edelsbrunner and Harer [2010], Cohen-Steiner et al. [2007, 2010a], which focuses on quantifying topological and geometric shape statistics of point clouds and other datasets. An important advantage of TDA compared to other methods is the improved interpretability, based on insights from algebraic topology. The principal approach to encoding topological information in TDA are Persistence Diagrams (PDs) Edelsbrunner and Harer [2010], Zomorodian [2009] or Persistence Barcodes Ghrist [2008], Carlsson [2009]. TDA methods are being applied in a growing variety of fields, including time-series analysis Seversky et al.[2016], Carr et al.[2017] Venkataraman et al.[2016], Umeda[2017], text data analysis Wagner and Dłotko [2014], Rawson et al. [2022], molecular chemistry Carr et al. [2017], climate understanding Carr et al. [2017], atmospheric data analysis Kuhn
[ [ "0.1544", "0.1256", "0.846", "0.1256", "0.846", "0.1401", "0.1544", "0.1401" ], [ "0.2443", "0.1509", "0.755", "0.1509", "0.755", "0.1654", "0.2443", "0.1654" ], [ "0.2075", "0.2008", "0.7915", "0.2008", "0.7915", "0.214", "0.2075", "0.214" ], [ "0.1626", "0.2405", "0.3406", "0.2405", "0.3406", "0.254", "0.1626", "0.254" ], [ "0.4248", "0.2405", "0.544", "0.2405", "0.544", "0.254", "0.4248", "0.254" ], [ "0.6763", "0.2405", "0.7915", "0.2405", "0.7915", "0.254", "0.6763", "0.254" ], [ "0.179", "0.2551", "0.3218", "0.2551", "0.3218", "0.2683", "0.179", "0.2683" ], [ "0.4534", "0.2556", "0.517", "0.2556", "0.517", "0.2676", "0.4534", "0.2676" ], [ "0.6113", "0.2551", "0.8594", "0.2551", "0.8594", "0.2695", "0.6113", "0.2695" ], [ "0.02287", "0.262", "0.06046", "0.262", "0.06046", "0.3738", "0.02287", "0.3738" ], [ "0.3882", "0.2683", "0.5786", "0.2683", "0.5786", "0.2822", "0.3882", "0.2822" ], [ "0.665", "0.2683", "0.8057", "0.2683", "0.8057", "0.2822", "0.665", "0.2822" ], [ "0.615", "0.2827", "0.853", "0.2827", "0.853", "0.2966", "0.615", "0.2966" ], [ "0.1422", "0.2695", "0.3586", "0.2695", "0.3586", "0.2827", "0.1422", "0.2827" ], [ "0.437", "0.3164", "0.562", "0.3164", "0.562", "0.3308", "0.437", "0.3308" ], [ "0.429", "0.3308", "0.5703", "0.3308", "0.5703", "0.3452", "0.429", "0.3452" ], [ "0.4043", "0.3467", "0.5933", "0.3467", "0.5933", "0.3599", "0.4043", "0.3599" ], [ "0.02696", "0.363", "0.05637", "0.363", "0.05637", "0.3977", "0.02696", "0.3977" ], [ "0.02287", "0.3997", "0.0621", "0.3997", "0.0621", "0.4893", "0.02287", "0.4893" ], [ "0.4387", "0.3945", "0.5605", "0.3945", "0.5605", "0.4092", "0.4387", "0.4092" ], [ "0.452", "0.4287", "0.5474", "0.4287", "0.5474", "0.443", "0.452", "0.443" ], [ "0.1748", "0.4558", "0.826", "0.4558", "0.826", "0.4697", "0.1748", "0.4697" ], [ "0.1732", "0.4702", "0.824", "0.4702", "0.824", "0.4841", "0.1732", "0.4841" ], [ "0.0433", "0.4817", "0.05228", "0.4817", "0.05228", "0.486", "0.0433", "0.486" ], [ "0.1732", "0.4841", "0.826", "0.4841", "0.826", "0.4988", "0.1732", "0.4988" ], [ "0.02287", "0.4912", "0.05963", "0.4912", "0.05963", "0.712", "0.02287", "0.712" ], [ "0.1748", "0.4976", "0.826", "0.4976", "0.826", "0.511", "0.1748", "0.511" ], [ "0.1748", "0.511", "0.824", "0.511", "0.824", "0.5244", "0.1748", "0.5244" ], [ "0.1765", "0.5264", "0.824", "0.5264", "0.824", "0.537", "0.1765", "0.537" ], [ "0.1748", "0.539", "0.824", "0.539", "0.824", "0.553", "0.1748", "0.553" ], [ "0.1748", "0.553", "0.826", "0.553", "0.826", "0.5664", "0.1748", "0.5664" ], [ "0.1748", "0.5664", "0.824", "0.5664", "0.824", "0.58", "0.1748", "0.58" ], [ "0.1748", "0.58", "0.824", "0.58", "0.824", "0.5933", "0.1748", "0.5933" ], [ "0.1765", "0.595", "0.8228", "0.595", "0.8228", "0.606", "0.1765", "0.606" ], [ "0.1748", "0.608", "0.824", "0.608", "0.824", "0.622", "0.1748", "0.622" ], [ "0.1748", "0.622", "0.824", "0.622", "0.824", "0.6353", "0.1748", "0.6353" ], [ "0.1732", "0.636", "0.824", "0.6353", "0.824", "0.6484", "0.1732", "0.6494" ], [ "0.1748", "0.6494", "0.826", "0.6494", "0.826", "0.6636", "0.1748", "0.6636" ], [ "0.1748", "0.6636", "0.407", "0.6636", "0.407", "0.677", "0.1748", "0.677" ], [ "0.1136", "0.688", "0.6685", "0.6895", "0.6685", "0.704", "0.1136", "0.7026" ], [ "0.11926", "0.7266", "0.1259", "0.7266", "0.1259", "0.7344", "0.11926", "0.7344" ], [ "0.1422", "0.7236", "0.2524", "0.7236", "0.2524", "0.738", "0.1422", "0.738" ], [ "0.1152", "0.754", "0.8823", "0.754", "0.8823", "0.768", "0.1152", "0.768" ], [ "0.1152", "0.768", "0.8823", "0.768", "0.8823", "0.782", "0.1152", "0.782" ], [ "0.1152", "0.782", "0.884", "0.782", "0.884", "0.7954", "0.1152", "0.7954" ], [ "0.1152", "0.7954", "0.884", "0.7954", "0.884", "0.8096", "0.1152", "0.8096" ], [ "0.1152", "0.81", "0.5107", "0.81", "0.5107", "0.8237", "0.1152", "0.8237" ], [ "0.1152", "0.829", "0.8823", "0.829", "0.8823", "0.8433", "0.1152", "0.8433" ], [ "0.1152", "0.8447", "0.8823", "0.8447", "0.8823", "0.858", "0.1152", "0.858" ], [ "0.1152", "0.858", "0.8823", "0.858", "0.8823", "0.872", "0.1152", "0.872" ], [ "0.1152", "0.872", "0.884", "0.872", "0.884", "0.8853", "0.1152", "0.8853" ], [ "0.1152", "0.8853", "0.8857", "0.8853", "0.8857", "0.8984", "0.1152", "0.8984" ], [ "0.1177", "0.901", "0.8823", "0.901", "0.8823", "0.911", "0.1177", "0.911" ] ]
[ "A CLASS OF TOPOLOGICAL PSEUDODISTANCES FOR FAST", "COMPARISONOFPERSISTENCEDIAGRAMS", "EXTENDEDVERSIONOFPAPER#4518ACCEPTEDONTHEMAINTRACKOFAAAI24", "Rolando Kindelan Nunez", "Mircea Petrache", "Mauricio Cerda", "Universidad de Chile", "UC Chile", "Department of Electrical Engineering", "", "mpetrache@mat.uc.cl", "Universidad de Chile", "mauricio.cerda@uchile.cl", "rkindela@dcc.uchile.cl", "Nancy Hitschfeld", "Universidad de Chile", "nancy@dcc.uchile.cl", "", "[']", "February 23, 2024", "ABSTRACT", "Persistence diagrams (PD)s play a central role in topological data analysis, and are used in an ever", "increasing variety of applications. The comparison of PD data requires computing comparison metrics", "", "among large sets of PDs, with metrics which are accurate, theoretically sound, and fast to compute.", "82", "Especially for denser multi-dimensional PDs, such comparison metrics are lacking. While on the", "one hand, Wasserstein-type distances have high accuracy and theoretical guarantees, they incur high", "computationalcost.Ontheotherhand,distancesbetweenvectorizationssuchasPersistenceStatistics", "(PS)s have lower computational cost, but lack the accuracy guarantees and in general they are not", "guaranteed to distinguish PDs (i.e. the two PS vectors of different PDs may be equal). In this work", "we introduce a class of pseudodistances called Extended Topological Pseudodistances (ETD)s, which", "have tunable complexity, and can approximate Sliced and classical Wasserstein distances at the", "high-complexityextreme,whilebeingcomputationallylighterandclosetoPersistenceStatistics", "at the lower complexity extreme, and thus allow users to interpolate between the two metrics. We", "build theoretical comparisons to show how to fit our new distances at an intermediate level between", "persistence vectorizations and Wasserstein distances. We also experimentally verify that ETDs", "outperform PSs in terms of accuracy and outperform Wasserstein and Sliced Wasserstein distances in", "termsof computational complexity.", "Keywords Topological Pseudodistances:Wasserstein Distances·Machine Learning", "-", "Introduction", "The processing and extraction of information from large datasets has become increasingly challenging due to the high", "dimensionality and noisiness of datasets. An important toolbox for describing the shape of complex data with noise", "robustness bounds is offered by the emerging research field of Topological Data Analysis (TDA) Carlsson [2009],", "Edelsbrunner and Harer [2010], Cohen-Steiner et al. [2007, 2010a], which focuses on quantifying topological and", "geometric shape statistics of point clouds and other datasets.", "An important advantage of TDA compared to other methods is the improved interpretability, based on insights from", "algebraic topology.The principal approach to encoding topological information in TDA are Persistence Diagrams (PDs)", "Edelsbrunner and Harer [2010], Zomorodian [2009] or Persistence Barcodes Ghrist [2008], Carlsson [2009]. TDA", "methods are being applied in a growing variety of fields, including time-series analysis Seversky et al. [2016], Carr", "et al. [2017] Venkataraman et al. [2016], Umeda [2017], text data analysis Wagner and Dlotko [2014], Rawson et al.", "[2022],molecularchemistryCarretal.[2017],climateunderstandingCarretal.[2017],atmosphericdataanalysisKuhn" ]
{ "arxiv_id": "2402.14489", "language": "en", "page_idx": 0 }
2402.14489-en-1
2402.14489-en-1.jpg
AAAI24 A Class of Topological Pseudodistances for Fast Comparison of Persistence Diagrams et al.[2017], Carr et al.[2017], scientific visualization Carr et al.[2017], cosmology Carr et al.[2017], combustion simulations Carr et al.[2017], computational fluid dynamics Carr et al.[2017], neurosciences Sizemore et al.[2019], human motion understanding Lamar et al.[2016], Hossny et al.[2016], Venkataraman et al.[2016], medical applications Garside et al.[2019], volcanic eruption analysis Kuhn et al.[2017], Carr et al.[2017]. In the above TDA applications, TDA has been used as a preprocessing stage for conventional Machine Learning (ML) algorithms $\hat{\text{Skraba[2018],}}$ preserving interpretability, or, more rarely, as a tool to interpret the shape of clouds manipulated via Deep Learning algorithms. The overall idea is to apply persistent homology for each sample and obtain its persistence diagram. Then the space of persistence diagrams, endowed with a suitable metric or pseudometric is used as a replacement, or as an enrichment, of the original dataset. A problem with comparison metrics between PDs is that they are computationally expensive, especially for PDs coming from $H^j$-homology with $j>0$,which are a special type of point clouds in $\mathbb{R}^2.$ Computing the distance between two such PDs is treated as a matching problem between points in the plane, with stability and theoretical bounds based on the link with optimal transport distances like Wasserstein Distances (WDs) Dobrushin [1970], Cohen-Steiner et al.[2010a], Panaretos and Zemel [2019], Bubenik and Elchesen [2022]. Since WD computation for point clouds in dimension $d\geq2$ have $O(n^3)$-complexity Munkres[1957], where $n$ is the number of points, PD comparison is often a bottleneck in ML data processing pipelines. 1.1 Related Work and Main Contributions Several approaches have arisen to make PD comparison computationally cheaper. A first direction is to optimize the precise computation of Wasserstein distance between PD's via optimization of matching problems Dey and Wang $[2022],\hat{\text{Kerber et al.[2017],Chen and Wang[2021],Backurs et al.[2020],or by resorting to computationally simpler}}$ distances, such as Sliced Wasserstein Distances (SWDs) Carrière et al.[2017], Rabin et al.[2012], Bonneel et al [2015], Paty and Cuturi [2019], Bayraktar and Guo [2021] which roughly speaking use as distance an average of distances of 1-dimensional projections, or to approximations of Wasserstein Distance such as Sinkhorn Distances Cuturi[2013], Chakrabarty and Khanna [2021]. Some methods use the particular geometry of PDs specifically for computing Wasserstein distances Kerber et al.[2017], Khrulkov and Oseledets[2018], Dey and Zhang [2022]. The work Carrière et al.[2017] applies SWD for PD comparison, but without optimizing the method towards optimum computational gains. A second direction to overcome PD comparison difficulties, is that of introducing simplifed statistics via vectorization methods, with a variety of so-called Persistent Statistics (PS) Adams et al.[2017], Ali et al. [2023], Chung and Lawson [2022]. Then distances between PS vectorizations induce pseudodistances on the originating PDs, which while computationally faster, are not guaranteed to distinguish between distinct PD's Fasy et al.[2020]. In view of the above challenges of Wasserstein distance and vectorization statistics, we introduce here a class of Extended Topology pseudodistances (ETDs) between PDs which are strictly richer than PS comparison, inspired from, but much faster to compute than SWD, and which also have significant computational gains with respect to previous WD-based approximate distances. Our main contributions are the following: 1. We introduce a new class of“enhanced topology pseudodistances" (ETDs) of increasing complexity (fixable by the user), which interpolate between simple PS vectorizations and the complexity of distances such as SWD and WD. Furthermore, we verify experimentally that for real data sets the loss is minimal at low complexity, and the distinguishing power of such ETDs is comparable to the one of Wasserstein distance between PD's in applications. 2. We build the basis for a rigorous theoretical comparison of our ETD distances to present methods for computing SWD and to commonly used PS vectorization. We also prove theoretical guarantees for stability under perturbations for our distance. 3. We test our ETDs for classification applications and experimentally compare to classical methods in terms of accuracy and of computation time. It is worth emphasizing that, while a theoretical framework on metric comparison for PDs is well established CohenSteiner et al.[2007, 2010a], Bubenik and Elchesen [2022], Ali et al.[2023], Chung and Lawson [2022], the PD construction already discards a lot of geometric and topological information about the datasets. The question of distinguishing what tasks are suited or not suited to be tackled through PD statistics is complex, and not fully settled. In the current work, we do some steps in this direction, and we hope that more research in this direction will come in the near future. 2
[ [ "0.2181", "0.04355", "0.7812", "0.04355", "0.7812", "0.05682", "0.2181", "0.05682" ], [ "0.824", "0.04355", "0.884", "0.04355", "0.884", "0.05807", "0.824", "0.05807" ], [ "0.1152", "0.09155", "0.8823", "0.09155", "0.8823", "0.1061", "0.1152", "0.1061" ], [ "0.1168", "0.108", "0.8823", "0.108", "0.8823", "0.1187", "0.1168", "0.1187" ], [ "0.1152", "0.1206", "0.8823", "0.1206", "0.8823", "0.1338", "0.1152", "0.1338" ], [ "0.1152", "0.1338", "0.8823", "0.1338", "0.8823", "0.1477", "0.1152", "0.1477" ], [ "0.1152", "0.1497", "0.8823", "0.1497", "0.8823", "0.1635", "0.1152", "0.1635" ], [ "0.1152", "0.1622", "0.8823", "0.1635", "0.8823", "0.178", "0.1152", "0.1768" ], [ "0.1152", "0.1768", "0.8823", "0.1768", "0.8823", "0.1901", "0.1152", "0.1901" ], [ "0.1168", "0.1925", "0.8813", "0.1925", "0.8813", "0.2026", "0.1168", "0.2026" ], [ "0.1152", "0.2052", "0.8813", "0.2052", "0.8813", "0.2184", "0.1152", "0.2184" ], [ "0.1152", "0.2172", "0.8823", "0.2172", "0.8823", "0.2317", "0.1152", "0.2317" ], [ "0.1168", "0.2343", "0.8813", "0.2343", "0.8813", "0.2443", "0.1168", "0.2443" ], [ "0.1152", "0.2456", "0.884", "0.2456", "0.884", "0.2588", "0.1152", "0.2588" ], [ "0.1152", "0.2588", "0.8823", "0.2588", "0.8823", "0.2727", "0.1152", "0.2727" ], [ "0.1152", "0.2734", "0.884", "0.2734", "0.884", "0.2874", "0.1152", "0.2874" ], [ "0.1136", "0.286", "0.621", "0.2874", "0.621", "0.3018", "0.1136", "0.3005" ], [ "0.1152", "0.3352", "0.4248", "0.3352", "0.4248", "0.3484", "0.1152", "0.3484" ], [ "0.1152", "0.3687", "0.8823", "0.3687", "0.8823", "0.3818", "0.1152", "0.3818" ], [ "0.1152", "0.3806", "0.8813", "0.3818", "0.8813", "0.3965", "0.1152", "0.3958" ], [ "0.1177", "0.3945", "0.88", "0.3958", "0.88", "0.4092", "0.1177", "0.4077" ], [ "0.1168", "0.4092", "0.8823", "0.4092", "0.8823", "0.4236", "0.1168", "0.4236" ], [ "0.1168", "0.4236", "0.884", "0.4236", "0.884", "0.4375", "0.1168", "0.4375" ], [ "0.1168", "0.4375", "0.8823", "0.4375", "0.8823", "0.4507", "0.1168", "0.4507" ], [ "0.1136", "0.4495", "0.8823", "0.4507", "0.8823", "0.4653", "0.1136", "0.464" ], [ "0.1152", "0.4653", "0.8823", "0.4653", "0.8823", "0.4792", "0.1152", "0.4792" ], [ "0.1152", "0.4792", "0.8813", "0.4792", "0.8813", "0.4924", "0.1152", "0.4924" ], [ "0.1136", "0.4924", "0.8823", "0.4924", "0.8823", "0.506", "0.1136", "0.506" ], [ "0.1152", "0.506", "0.8857", "0.506", "0.8857", "0.5195", "0.1152", "0.5195" ], [ "0.1152", "0.5195", "0.884", "0.521", "0.884", "0.534", "0.1152", "0.5327" ], [ "0.1168", "0.534", "0.8735", "0.534", "0.8735", "0.5474", "0.1168", "0.5474" ], [ "0.1168", "0.5537", "0.884", "0.5537", "0.884", "0.5674", "0.1168", "0.5674" ], [ "0.1168", "0.5674", "0.8857", "0.5674", "0.8857", "0.582", "0.1168", "0.582" ], [ "0.1152", "0.582", "0.884", "0.582", "0.884", "0.595", "0.1152", "0.595" ], [ "0.1136", "0.5947", "0.6177", "0.595", "0.6177", "0.61", "0.1136", "0.6094" ], [ "0.156", "0.629", "0.8813", "0.629", "0.8813", "0.6426", "0.156", "0.6426" ], [ "0.1732", "0.6426", "0.88", "0.6426", "0.88", "0.656", "0.1732", "0.656" ], [ "0.1748", "0.657", "0.8823", "0.657", "0.8823", "0.6704", "0.1748", "0.6704" ], [ "0.1732", "0.6704", "0.8813", "0.6704", "0.8813", "0.6846", "0.1732", "0.6846" ], [ "0.1765", "0.686", "0.2573", "0.686", "0.2573", "0.6978", "0.1765", "0.6978" ], [ "0.152", "0.7173", "0.8823", "0.7183", "0.8823", "0.733", "0.152", "0.732" ], [ "0.1732", "0.732", "0.8823", "0.733", "0.8823", "0.7476", "0.1732", "0.747" ], [ "0.1724", "0.7456", "0.4143", "0.7456", "0.4143", "0.759", "0.1724", "0.759" ], [ "0.1503", "0.78", "0.884", "0.781", "0.884", "0.7954", "0.1503", "0.7944" ], [ "0.1732", "0.7954", "0.398", "0.7944", "0.398", "0.808", "0.1732", "0.8096" ], [ "0.1168", "0.829", "0.884", "0.829", "0.884", "0.8423", "0.1168", "0.8423" ], [ "0.1168", "0.8433", "0.8813", "0.8433", "0.8813", "0.857", "0.1168", "0.857" ], [ "0.1168", "0.8594", "0.8813", "0.8594", "0.8813", "0.869", "0.1168", "0.869" ], [ "0.1152", "0.8706", "0.8823", "0.8706", "0.8823", "0.884", "0.1152", "0.884" ], [ "0.1152", "0.884", "0.8823", "0.884", "0.8823", "0.898", "0.1152", "0.898" ], [ "0.1152", "0.8994", "0.1929", "0.8994", "0.1929", "0.911", "0.1152", "0.911" ], [ "0.492", "0.935", "0.5073", "0.935", "0.5073", "0.9497", "0.492", "0.9497" ] ]
[ "A Class of Topological Pseudodistances for Fast Comparison of Persistence Diagrams", "AAAI24", "et al. [2017], Carr et al. [2017], scientific visualization Carr et al. [2017], cosmology Carr et al. [2017], combustion", "simulationsCarretal.[2017],computationalfluid dynamics Carretal.[2017l,neurosciences Sizemoreetal.[2019]", "human motion understanding Lamar et al. [2016], Hossny et al. [2016], Venkataraman et al. [2016], medical applications", "Garside et al. [2019], volcanic eruption analysis Kuhn et al. [2017], Carr et al. [2017]. In the above TDA applications.", "TDA has been used as a preprocessing stage for conventional Machine Learning (ML) algorithms Skraba [2018]", "preserving interpretability, or, more rarely, as a tool to interpret the shape of clouds manipulated via Deep Learning", "algorithms. The overall idea is to apply persistent homology for each sample and obtain its persistence diagram. Then", "the spaceof persistencediagrams,endowed witha suitablemetricorpseudometricis usedas areplacement,oras an", "enrichment, of the original dataset. A problem with comparison metrics between PDs is that they are computationally", "expensive, especially for PDs coming from Hi-homology with j > O, which are a special type of point clouds in R?", "ComputingthedistancebetweentwosuchPDsistreatedasamatchingproblembetweenpointsintheplane,with", "stability and theoretical bounds based on the link with optimal transport distances like Wasserstein Distances (WDs)", "Dobrushin [1970], Cohen-Steiner et al. [2010a], Panaretos and Zemel [2019], Bubenik and Elchesen [2022]. Since WD", "computation for point clouds in dimension d ≥ 2 have O(n3)-complexity Munkres [1957], where n is the number of", "points, PD comparison is often a bottleneck in ML data processing pipelines.", "1.1Related WorkandMain Contributions", "Several approaches have arisen to make PD comparison computationally cheaper. A first direction is to optimize the", "precise computation of Wasserstein distance between PD's via optimization of matching problems Dey and Wang", "[2022], Kerber et al. [2017], Chen and Wang [2021], Backurs et al. [2020], or by resorting to computationally simplel", "distances, such as Sliced Wasserstein Distances (SWDs) Carriere et al. [2017], Rabin et al. [2012], Bonneel et al", "[2015], Paty and Cuturi [2019], Bayraktar and Guo [2021] which roughly speaking use as distance an average of", "distances of 1-dimensional projections, or to approximations of Wasserstein Distance such as Sinkhorn Distances", "Cuturi [2013], Chakrabarty and Khanna [2021]. Some methods use the particular geometry of PDs specifically for", "computing Wasserstein distances Kerber et al. [2017], Khrulkov and Oseledets [2018], Dey and Zhang [2022]. The", "work Carriere et al. [2017] applies SWD for PD comparison, but without optimizing the method towards optimum", "computational gains. A second direction to overcome PD comparison difficulties, is that of introducing simplified", "statistics via vectorization methods, with a variety of so-called Persistent Statistics (PS) Adams et al. [2017], Ali et al.", "[2023], Chung and Lawson [2022].Then distances between PS vectorizations induce pseudodistances on the originating", "PDs, which while computationally faster, are not guaranteed to distinguish between distinct PD's Fasy et al. [2020].", "In view of the above challenges of Wasserstein distance and vectorization statistics, we introduce here a class of", "Extended Topology pseudodistances (ETDs) between PDs which are strictly richer than PS comparison, inspired from,", "but much faster to compute than SWD, and which also have significant computational gains with respect to previous", "WD-based approximate distances. Our main contributions are the following:", "1. We introduce a new class of “\"enhanced topology pseudodistances\" (ETDs) of increasing complexity (fixable", "by the user), which interpolate between simple PS vectorizations and the complexity of distances such as SwD", "and WD. Furthermore, we verify experimentally that for real data sets the loss is minimal at low complexity", "and the distinguishing power of such ETDs is comparable to the one of Wasserstein distance between PD's in", "applications", "2. We build the basis for a rigorous theoretical comparison of our ETD distances to present methods for", "computing SWD and to commonly used PS vectorization.We also prove theoretical guarantees for stability", "under perturbations for our distance.", " 3. We test our ETDs for classification applications and experimentally compare to classical methods in terms of", "accuracy and of computation time", "It is worth emphasizing that, while a theoretical framework on metric comparison for PDs is well established Cohen-", "Steiner et al. [2007, 2010a], Bubenik and Elchesen [2022], Ali et al. [2023], Chung and Lawson [2022], the PD", "construction already discards a lotofgeometric and topological information aboutthedatasets.The question of", "distinguishing what tasks are suited or not suited to be tackled through PD statistics is complex, and not fully settled. In", "the current work, we do some steps in this direction, and we hope that more research in this direction will come in the", "nearfuture.", "2" ]
{ "arxiv_id": "2402.14489", "language": "en", "page_idx": 1 }
2402.14489-en-2
2402.14489-en-2.jpg
AAAI24 A Class of Topological Pseudodistances for Fast Comparison of Persistence Diagrams 2 $\textbf{Background on PDs and Their Metrics}$ 2.1 A Fast Reminder on Persistence Diagrams We recall basic facts about PDs, see Edelsbrunner and Harer [2010] for details. For a dataset encoding as a topological space $X$,we consider a filtration $\mathcal{F}=\{X_t\}_{t\in[0,T]}$ in which $X_0=X,X_t\subseteq X_s$ for all pairs $t\leq s$ and $X_T=X.$ This filtration encodes a strategy of inspection of $X$,where the precise construction algorithms for the $X_t$ depend on the task at hand and are not relevant for us. As filtration parameter $t$ increases, topological characteristics such as connected components, loops, voids, etc. appear, disappear, split or coalesce, as determined by homology classes of increasing dimension $j= 0, 1, 2, \ldots$For each value of $j$ the increasing set of $j$- th homology groups $H_j( X_t)$ associated to $\mathcal{F}$ can dimension $j= 0, 1, 2, \ldots$For each value of $j$ the increasing set of $j$- th homology groups $H_j( \bar{X} _t)$ associated to $\mathcal{F}$ be encoded in the so-called persistence module of the filtration, which in high generality (via ad-hoc structure theorems) is decomposed in a direct sum of persistence intervals, each of which allows to determine the values of time parameter $t$ at which a given homology class appears or disappears, named birth time $b$ and death time $d\geq b$ of the corresponding feature. The set of pairs $(b,d)\subseteq\{(x,y):x\leq y\}$ for $j$-dimensional homology classes form the $j$-dimensional Persistence Diagram $( PD)$ $PD^{j}( X)$ of the space $X.$ For this work we will consider a fixed dimension bound $k$, and we work with the Extended Persistence Diagram (EPD) $PD(X)=\{PD^0(X),PD^1(X),\ldots,PD^k(X)\}$, in which we reiterate that $PD^j(X)$ is a collection of points in $\mathbb{R} ^2$' for all $0\leq j\leq k.$ 2.2 Wasserstein-Type Distances Between PDs Here we recall the important metrics of interest for comparing PDs, namely geometric distances such as WD and SWD, and distances between vectorization summaries of PDs, such as PS. Consider a fixed dimension $j\geq0$ and the PDs for dimension $j\text{,denoted P}_1=PD^j(X_1),\mathsf{P}_2=PD^j(X_2)\subseteq\mathbb{R}^2$,corresponding to two datasets $\overline{X}_1,X_2.$ Standard comparison and theoretical guarantees such as stability under small perturbations between PDs is uses the Bottleneck Distance (BD) (cf. Edelsbrunner and Harer [2010] and Chazal et al. [2009, 2014]), which is the $p\to\infty$ limit case of p-Wasserstein distances: $\textbf{Definition 1 (Wasserstein distances). Let P}_1,\mathsf{P}_2\subseteq\mathbb{R}^2as$ above, set $\Delta:=\{(x,x):x\in\mathbb{R}\}$ and let $\Gamma$ be the set of bijections between P$_1\cup\Delta and$ P$_2\cup \Delta . \textit{Then for p}\in [ 1, \infty ) , \textit{the p- Wasserstein distance between P}_1, \mathcal{P} _2$ is given by (1) $$W_p(\mathsf P_1,\mathsf P_2):=\left[\inf\limits_{\gamma\in\Gamma}\sum\limits_{d\in\mathbb P_1\cup\Delta}\lVert d-\gamma(d)\rVert_\infty^p\right]^{\frac{1}{p}},$$ and the Bottleneck distance between P 1 and P is given by $$W_\infty(\mathsf P_1,\mathsf P_2):=\inf_{\gamma\in\Gamma}\sup_{d\in\mathsf P_1\cup\Delta}\|d-\gamma(d)\|_\infty.$$ (2) The optimal algorithm for computing $W_p$ for point clouds in dimension $d\geq2$ is the Hungarian algorithm (see Kuhn [1955] and Ch. 3 of Peyré et al. [2019]) with complexity $O(N^3)$ if $N$ is the number of points in $\mathsf{P}_1\cup\mathsf{P}_2.$ See the below discussion on time-complexity comparison for recent approximate algorithms with lower complexity. An importantion discussion on time- complexity observation is that things improve consistently for 1-dimensional point clouds: Proposition $1.Fortwomultisets\mathcal{P}_1,\mathcal{P}_2\subseteq\mathbb{R}$ the distances $W_p(\mathcal{P}_1,\mathcal{P}_2)$ can be computed in $O(N\log N)$ time $Proofsketch:$ For distributions over $\mathbb{R}$ we have (see.g.[Santambrogio,2015,Prop.2.16])$W_p(\mathsf{P}_1,\mathsf{P}_2)=\|$sort$(\mathsf{P}_1)-$ sort$(\mathbb{P}_2)\|_p$,where sort$(\mathbb{P})$ is the vector of coordinates of points from P, in non-increasing order. Assuming that the sorting operation has complexity $O(N\log N)$ and the $\hat\ell_p$-norm is computed with $O(\bar{N})$ operations, this gives the $\square$ claimed complexity bound. Note that for 0-dimensional homology, in important cases such as for filtrations $\mathcal{F}$ coming from Čech or Vietoris-Rips complexes [Dey and Wang, 2022, Ch. 6], we have birth times $b=0$ by definition, and thus $PD^0$ is a 1-dimensional point cloud. In Horak et al. [2021] a topology distance (TD) was proposed for comparing the 0-dimensional part of PD's, and it improves upon earlier statistics such as Geometry Score Khrulkov and Oseledets[2018] for GAN comparison The main difference between $W_p$ and TD is that the latter is not invariant to relabelings of the points from the PD, whereas $W_{p}$ is. Unlike dimension 0, PD point clouds corresponding to homology groups of dimension $j>1$ are “truly 2-dimensional" as birth times and death times both contain nontrivial informations about the features. As explained in the below discussion on time complexity, even considering the recent improvements on approximate Wasserstein distance computation, the cost for computing geometric distances between such PDs with good approximation, is larger than the bound from Prop. 1. 3
[ [ "0.2173", "0.0423", "0.7812", "0.0423", "0.7812", "0.05618", "0.2173", "0.05618" ], [ "0.824", "0.04355", "0.884", "0.04355", "0.884", "0.05807", "0.824", "0.05807" ], [ "0.1152", "0.089", "0.4697", "0.089", "0.4697", "0.1042", "0.1152", "0.1042" ], [ "0.1168", "0.1206", "0.4495", "0.1206", "0.4495", "0.1338", "0.1168", "0.1338" ], [ "0.1152", "0.1459", "0.8823", "0.1459", "0.8823", "0.159", "0.1152", "0.159" ], [ "0.1136", "0.159", "0.884", "0.159", "0.884", "0.1768", "0.1136", "0.1768" ], [ "0.1152", "0.1749", "0.8823", "0.1749", "0.8823", "0.1881", "0.1152", "0.1881" ], [ "0.1152", "0.1895", "0.8813", "0.1895", "0.8813", "0.1995", "0.1152", "0.1995" ], [ "0.1152", "0.202", "0.8823", "0.202", "0.8823", "0.2153", "0.1152", "0.2153" ], [ "0.1152", "0.2153", "0.8823", "0.2153", "0.8823", "0.2291", "0.1152", "0.2291" ], [ "0.1168", "0.2311", "0.8823", "0.2311", "0.8823", "0.2412", "0.1168", "0.2412" ], [ "0.1152", "0.2437", "0.8823", "0.2437", "0.8823", "0.2568", "0.1152", "0.2568" ], [ "0.1152", "0.2568", "0.8813", "0.2568", "0.8813", "0.2708", "0.1152", "0.2708" ], [ "0.1168", "0.2708", "0.8823", "0.2708", "0.8823", "0.2842", "0.1168", "0.2842" ], [ "0.1152", "0.2842", "0.8823", "0.2842", "0.8823", "0.2974", "0.1152", "0.2974" ], [ "0.11273", "0.2974", "0.8823", "0.2986", "0.8823", "0.3132", "0.11273", "0.3125" ], [ "0.1136", "0.3132", "0.581", "0.3132", "0.581", "0.327", "0.1136", "0.327" ], [ "0.1136", "0.3416", "0.4412", "0.3416", "0.4412", "0.3547", "0.1136", "0.3547" ], [ "0.1152", "0.3687", "0.8823", "0.3687", "0.8823", "0.3818", "0.1152", "0.3818" ], [ "0.1168", "0.3838", "0.8813", "0.3838", "0.8813", "0.3945", "0.1168", "0.3945" ], [ "0.1152", "0.3965", "0.8813", "0.3965", "0.8813", "0.4104", "0.1152", "0.4104" ], [ "0.1136", "0.4092", "0.8813", "0.4077", "0.8813", "0.4224", "0.1136", "0.4236" ], [ "0.1168", "0.4248", "0.8823", "0.4248", "0.8823", "0.435", "0.1168", "0.435" ], [ "0.1152", "0.4395", "0.2793", "0.4395", "0.2793", "0.4495", "0.1152", "0.4495" ], [ "0.1152", "0.4526", "0.884", "0.4539", "0.884", "0.4685", "0.1152", "0.4673" ], [ "0.1152", "0.4685", "0.876", "0.4685", "0.876", "0.4817", "0.1152", "0.4817" ], [ "0.3447", "0.504", "0.4478", "0.504", "0.4478", "0.518", "0.3447", "0.518" ], [ "0.4534", "0.5005", "0.6177", "0.502", "0.6177", "0.5195", "0.4534", "0.518" ], [ "0.8613", "0.504", "0.8896", "0.504", "0.8896", "0.521", "0.8613", "0.521" ], [ "0.486", "0.5215", "0.535", "0.5215", "0.535", "0.5327", "0.486", "0.5327" ], [ "0.11273", "0.536", "0.505", "0.537", "0.505", "0.552", "0.11273", "0.5503" ], [ "0.3555", "0.5537", "0.5024", "0.553", "0.5024", "0.571", "0.3555", "0.5713" ], [ "0.4983", "0.5547", "0.636", "0.556", "0.636", "0.571", "0.4983", "0.5693" ], [ "0.8613", "0.5547", "0.888", "0.5547", "0.888", "0.5713", "0.8613", "0.5713" ], [ "0.4722", "0.5674", "0.546", "0.5693", "0.546", "0.5806", "0.4722", "0.579" ], [ "0.1168", "0.5913", "0.8823", "0.5913", "0.8823", "0.605", "0.1168", "0.605" ], [ "0.1168", "0.607", "0.8823", "0.607", "0.8823", "0.6206", "0.1168", "0.6206" ], [ "0.1152", "0.622", "0.8823", "0.622", "0.8823", "0.6353", "0.1152", "0.6353" ], [ "0.1152", "0.6353", "0.6313", "0.6353", "0.6313", "0.6484", "0.1152", "0.6484" ], [ "0.1152", "0.6514", "0.8384", "0.6514", "0.8384", "0.6655", "0.1152", "0.6655" ], [ "0.1152", "0.681", "0.8774", "0.681", "0.8774", "0.6943", "0.1152", "0.6943" ], [ "0.1136", "0.696", "0.8813", "0.6934", "0.8813", "0.7085", "0.1136", "0.7104" ], [ "0.1152", "0.709", "0.8823", "0.709", "0.8823", "0.7236", "0.1152", "0.7236" ], [ "0.1152", "0.7227", "0.2974", "0.7227", "0.2974", "0.7363", "0.1152", "0.7363" ], [ "0.865", "0.728", "0.8784", "0.7217", "0.8857", "0.731", "0.8735", "0.7363" ], [ "0.1152", "0.7524", "0.8813", "0.7524", "0.8813", "0.7666", "0.1152", "0.7666" ], [ "0.1152", "0.7666", "0.8813", "0.7666", "0.8813", "0.781", "0.1152", "0.781" ], [ "0.1152", "0.781", "0.8857", "0.781", "0.8857", "0.7944", "0.1152", "0.7944" ], [ "0.1152", "0.7944", "0.8823", "0.7944", "0.8823", "0.808", "0.1152", "0.808" ], [ "0.1136", "0.8066", "0.8857", "0.808", "0.8857", "0.8228", "0.1136", "0.8213" ], [ "0.1136", "0.8213", "0.2173", "0.8228", "0.2173", "0.837", "0.1136", "0.836" ], [ "0.1136", "0.8413", "0.8823", "0.8423", "0.8823", "0.857", "0.1136", "0.856" ], [ "0.1152", "0.857", "0.8823", "0.857", "0.8823", "0.8706", "0.1152", "0.8706" ], [ "0.1152", "0.8706", "0.8823", "0.8706", "0.8823", "0.884", "0.1152", "0.884" ], [ "0.1152", "0.884", "0.8823", "0.884", "0.8823", "0.8984", "0.1152", "0.8984" ], [ "0.1136", "0.8984", "0.2507", "0.8984", "0.2507", "0.912", "0.1136", "0.912" ], [ "0.4927", "0.936", "0.5063", "0.936", "0.5063", "0.9478", "0.4927", "0.9478" ] ]
[ "A Class of Topological Pseudodistances for Fast Comparison of Persistence Diagrams", "AAAI24", "2Background on PDs and Their Metrics", "2.1 A Fast Reminder on Persistence Diagrams", "We recall basic facts about PDs, see Edelsbrunner and Harer [2010] for details. For a dataset encoding as a topological", "space X, we consider a filtration F = Xt)te[0,T) in which Xo = X, Xt X, for all pairs t ≤ s and XT = X. This", "filtration encodes a strategy of inspection of X, where the precise construction algorithms for the Xt depend on the task", "athandandarenotrelevantforus.Asfiltrationparametertincreases.topologicalcharacteristics suchas connected", "components, loops, voids, etc. appear, disappear, split or coalesce, as determined by homology classes of increasing", "dimension j = 0, 1, 2, . ... For each value of j the increasing set of j-th homology groups H,(Xt) associated to F can", "beencodedintheso-calledpersistencemoduleofthefiltration,whichinhighgenerality(viaad-hocstructuretheorems)", "is decomposed in a direct sum of persistence intervals, each of which allows to determine the values of time parameter", "t at which a given homology class appears or disappears, named birth time b and death time d ≥ b of the corresponding", "feature. The set of pairs (b, d) ((a, y) : ≤ y) for j-dimensional homology classes form the j-dimensional", "Persistence Diagram (PD) PDi(X) of the space X. For this work we will consider a fixed dimension bound k, and we", "work with the Extended PersistenceDiagram (EPD) PD(X)=[PD°(X), PD'(X),...,PDk(X)),in which we", "reiterate that PDi (X) is a collection of points in R2 for all O ≤ j≤ k.", "2.2Wasserstein-Tvpe Distances Between PDs", "Here we recall the important metrics of interest for comparing PDs, namely geometric distances such as WD and SWD", "and distancesbetween vectorizationsummaries of PDs,such asPS.Consider afixed dimensionj>OandthePDs", "for dimension j, denoted P1 = PD' (Xi), P2 = PD(X2) C R2, corresponding to two datasets Xi, X2. Standard", "comparison and theoretical guarantees such as stability under small perturbations between PDs is uses the Bottleneck", "Distance(BD)(cf.EdelsbrunnerandHarer[2010landChazaletal.[2009,2014D.whichisthepoolimitcaseof", "p-Wassersteindistances:", "Definition 1 (Wasserstein distances). Let Pi, P2 C R? as above, set := {(, &) : E R} and let I be the set of", "bijections between P1 U and P2 U . Then for p e [1, oo), the p- Wasserstein distance between Pi, P2 is given by", "W(P1, P2) :=", "inf IId -(d)", "(1)", "dePiUa", "andtheBottleneckdistancebetween Piand P2isgivenby", "W(P1, P2) := inf", " sup d -(d)l", "(2)", "ErdEPU", "The optimal algorithm for computing W, for point clouds in dimension d ≥> 2 is the Hungarian algorithm (see Kuhn", "[1955] and Ch. 3 of Peyré et al. [2019]) with complexity O(N3) if N is the number of points in P1 U P2. See the below", "discussion on time-complexity comparison for recent approximate algorithms with lower complexity.An important", "observation is that things improve consistently for 1-dimensional point clouds:", "Proposition 1. For two multisets Pi, P2 C R the distances W,(Pi, P2) can be computed in O(N log N) time.", "Proof sketch: For distributions over R we have (see e.g.[Santambrogio, 2015, Prop.2.16) W,(P1, P2) =lsort(P1) -", "sort(P2)llp, where sort(P) is the vector of coordinates of points from P, in non-increasing order. Assuming that the", "sorting operation has complexity O(N log N) and the l-norm is computed with O(N) operations, this gives the", "claimed complexity bound.", "A", "Note that for O-dimensional homology,in important cases such as for filtrations F coming from Cech or Vietoris-Rips", "complexes [Dey and Wang, 2022, Ch. 6], we have birth times b = 0 by definition, and thus PD0 is a 1-dimensional", "point cloud. In Horak et al. [2021] a topology distance (TD) was proposed for comparing the O-dimensional part of PD's,", "and it improves upon earlier statistics such as Geometry Score Khrulkov and Oseledets [2018] for GAN comparison", "The main difference between W, and TD is that the latter is not invariant to relabelings of the points from the PD,", "whereas W, is.", "Unlike dimension O, PD point clouds corresponding to homology groups of dimension j > 1 are “truly 2-dimensional\"", "as birth times and death times both contain nontrivial informations about the features. As explained in the below", "discussion on time complexity,even considering the recent improvements on approximate Wasserstein distance", "computation, the cost for computing geometric distances between such PDs with good approximation, is larger than the", "bound from Prop. 1.", "3" ]
{ "arxiv_id": "2402.14489", "language": "en", "page_idx": 2 }
2402.14489-en-3
2402.14489-en-3.jpg
A Class of Topological Pseudodistances for Fast Comparison of Persistence Diagrams AAAI24 2.3 PD Vectorizations and Persistence Statistics Vectorization is the dimension reduction of PDs from point clouds in 2 dimensions to vector data$^1.$ As the projection operation loses geometric information, vectorizations inherently face the tradeoff between simplicity and informativity For a comprehensive survey of PD vectorizations see Ali et al.[2023], in which a series of vectorizations are compared $\hat{\text{in benchmark ML tasks. We focus on the best performant statistic determined in the cited paper, which turns out to}}$ be the Persistence Statistics (PS). For $PD^j(\hat{X})=\{(b_i,d_i):i\in I_j\}$ PS includes quantile, average and variance statistics about the following collections of nonnegative numbers: (3) $$\{b_i\}_{i\in I_j},\:\{d_i\}_{i\in I_j},\:\{(b_i+d_i)/2\}_{i\in I_j},\:\{d_i-b_i\}_{i\in I_j},$$ interpreted as, respectively, the set of birth, death, midpoints and lifetime lengths of the topological features indexed by $I_j.$ Besides the above, PŠ includes the total number of $(b_i,d_i)$ such that $d_i>b_i$, and the entropy of the multiplicity function, whose interpretation is given in Chintakunta et al.[2015]. ## 2.4 Extended Topology Pseudodistance Our new Extended Topology Pseudodistances (ETD) are defined by projecting the PDs relative to each separate dimension $j$ over a finite set of directions, and summing the 1-dimensional $W_p$-distances of the projections. $\hat{\text{We will}}$ apply to elements $(b_i,d_i)$ from point clouds in $\mathbb{R}^2$ the projection onto the $\theta$-direction defined as follows, for $\theta\in[0,2\pi):$ $$\pi_\theta:\mathbb{R}^2\to\mathbb{R},\quad\pi_\theta(x,y):=x\cos\theta+y\sin\theta.$$ $\textbf{Remark 1. As before, for S }\subset \mathbb{R} ^2$, we treat $\pi_\theta(\mathcal{S})$ as a multiset and retain the multiplicity of repeated projections. $\textbf{Remark 2. We have }\pi _{\theta + \pi }( x) = - \pi _{\theta }( x)$ thus the same information is encoded in the $\pi_\theta$-projections restricted to just halfofthe available $directions$, $e. g.$ restricting $to$ $\theta \in [ 0, \tilde{\pi } ) .$ The point cloud obtained by orthogonal projection of a PD P$^j\subset\mathbb{R}^2$ onto the diagonal is the following: $$\widetilde{P}^{j}:=\{((b+d)/2,(b+d)/2):\:(b,d)\in\mathsf P^{j}\}.$$ (4) Definition 2 (Extended Topology Pseudodistances). $LetA\subset [ 0, \pi ) \textit{be afinite set of projection angles and }p\in [ 0, \infty ] $, and consider two PDs P$_1=P\tilde{D}(X_{1}),\mathsf{P}_{2}=PD(X_{2})$ with P$\tilde{D}(X)$ defined as in the previous sections. For $0\leq j\leq k$, define the auxiliary distances $$D_j^A(\mathsf P_1,\mathsf P_2):=\left(\sum_{\theta\in A}W_p\left(\pi_\theta(\mathsf P_1^j\cup\widetilde P_2^j),\pi_\theta(\mathsf P_2^j\cup\widetilde P_1^j)\right)^p\right)^{1/p},$$ $whereforfinitesetsS_1,S_2\subset\mathbb{R}$ of equal cardinality, we set $$W_p(\mathsf{S}_1,\mathsf{S}_2):=\|\mathsf{sort}(S_1)-\mathsf{sort}(S_2)\|_p.$$ Then the p-Extended Topology Pseudodistance (ETD) with projection set A is defined as. $$\text{ETD}_A(\text{P}_1,\text{P}_2):=\left(\sum_{j=0}^kD_j^A(\text{P}_1,\text{P}_2)^p\right)^{1/p}.$$ Wewrite $ETD: = ETD_{A_1}$ with $A_1= \{ 3\pi / 4\}$ and will call this distance the basic $p- ETD.$ The reason why we add the sets of the form $\widetilde{P}_i^j$ in the definition of $D_j^A$, is for balancing: in general $\mathsf{P}_1^j,\mathsf{P}_2^j$ do not have the same cardinality, and the correct analogue of (1) requires including diagonal sets Note that if the filtrations producing the PDs are such that birth values are equal to zero by construction for P$_i^0$, then these point clouds are 1-dimensional: we then replace $D_0^A$ by $D_0(\mathsf{P}_1,\mathsf{P}_2):=\#A\cdot W_p(\pi_{\pi/2}(\mathsf{P}_1),\pi_{\pi/2}(\mathsf{P}_2))$, i.e. consider only the“death" coordinates, with no information loss (factor $\#A$ being introduced for normalization reasons). Also note that for $\theta=3\pi/4$ we have that $\pi_\theta(\widetilde{P}_i^j)=\{0\}.$ We observe that PS-distances give a strictly less informative distance than ETD$_A$ due to the observation contained in the following result, whose proof is a direct computation: $^{1}$Note that the entries of a vector are an equivalent information to point clouds over the real line, each vector entry being identified with a coordinate, thus PD vectorizations are conceptually analogous to dimension reduction from 2 to 1 dimensional point clouds. 4
[ [ "0.2181", "0.04355", "0.7817", "0.04355", "0.7817", "0.05682", "0.2181", "0.05682" ], [ "0.824", "0.04355", "0.884", "0.04355", "0.884", "0.05807", "0.824", "0.05807" ], [ "0.1136", "0.0903", "0.4592", "0.09155", "0.4592", "0.1061", "0.1136", "0.1048" ], [ "0.1152", "0.11615", "0.8823", "0.11743", "0.8823", "0.132", "0.1152", "0.1307" ], [ "0.1152", "0.132", "0.8823", "0.132", "0.8823", "0.1459", "0.1152", "0.1459" ], [ "0.1168", "0.1477", "0.8813", "0.1477", "0.8813", "0.1578", "0.1168", "0.1578" ], [ "0.1168", "0.159", "0.8823", "0.159", "0.8823", "0.1724", "0.1168", "0.1724" ], [ "0.1152", "0.1724", "0.8823", "0.1724", "0.8823", "0.1875", "0.1152", "0.1875" ], [ "0.1152", "0.1875", "0.5474", "0.1875", "0.5474", "0.2008", "0.1152", "0.2008" ], [ "0.3218", "0.2084", "0.6772", "0.2084", "0.6772", "0.2229", "0.3218", "0.2229" ], [ "0.863", "0.207", "0.8857", "0.207", "0.8857", "0.2216", "0.863", "0.2216" ], [ "0.1168", "0.2291", "0.8823", "0.2291", "0.8823", "0.2424", "0.1168", "0.2424" ], [ "0.1168", "0.2437", "0.8823", "0.2437", "0.8823", "0.2568", "0.1168", "0.2568" ], [ "0.1152", "0.2568", "0.556", "0.2568", "0.556", "0.2708", "0.1152", "0.2708" ], [ "0.11273", "0.2854", "0.4004", "0.286", "0.4004", "0.3005", "0.11273", "0.2998" ], [ "0.1152", "0.3125", "0.8813", "0.3125", "0.8813", "0.3257", "0.1152", "0.3257" ], [ "0.1152", "0.327", "0.8823", "0.327", "0.8823", "0.3403", "0.1152", "0.3403" ], [ "0.11273", "0.3416", "0.8857", "0.3403", "0.8857", "0.3547", "0.11273", "0.356" ], [ "0.3447", "0.361", "0.652", "0.361", "0.652", "0.379", "0.3447", "0.379" ], [ "0.1168", "0.3838", "0.863", "0.3838", "0.863", "0.3984", "0.1168", "0.3984" ], [ "0.1152", "0.4016", "0.884", "0.4028", "0.884", "0.4172", "0.1152", "0.4167" ], [ "0.1136", "0.4167", "0.509", "0.4172", "0.509", "0.432", "0.1136", "0.4312" ], [ "0.1152", "0.4414", "0.789", "0.4414", "0.789", "0.4558", "0.1152", "0.4558" ], [ "0.3447", "0.4622", "0.653", "0.4634", "0.653", "0.481", "0.3447", "0.4797" ], [ "0.8613", "0.464", "0.888", "0.464", "0.888", "0.481", "0.8613", "0.481" ], [ "0.1152", "0.4873", "0.8823", "0.4873", "0.8823", "0.5005", "0.1152", "0.5005" ], [ "0.1152", "0.5", "0.8857", "0.5005", "0.8857", "0.515", "0.1152", "0.5146" ], [ "0.1136", "0.5146", "0.3105", "0.5146", "0.3105", "0.528", "0.1136", "0.528" ], [ "0.4102", "0.5454", "0.653", "0.5454", "0.653", "0.571", "0.4102", "0.571" ], [ "0.683", "0.5405", "0.697", "0.5405", "0.697", "0.5444", "0.683", "0.5444" ], [ "0.2917", "0.5503", "0.3945", "0.5503", "0.3945", "0.565", "0.2917", "0.565" ], [ "0.1152", "0.5923", "0.505", "0.5923", "0.505", "0.606", "0.1152", "0.606" ], [ "0.3652", "0.6113", "0.6284", "0.6123", "0.6284", "0.63", "0.3652", "0.629" ], [ "0.1152", "0.6416", "0.7075", "0.6416", "0.7075", "0.655", "0.1152", "0.655" ], [ "0.621", "0.6636", "0.636", "0.6636", "0.636", "0.6724", "0.621", "0.6724" ], [ "0.3489", "0.6787", "0.464", "0.681", "0.464", "0.6987", "0.3489", "0.6963" ], [ "0.5107", "0.6816", "0.6045", "0.6816", "0.6045", "0.6963", "0.5107", "0.6963" ], [ "0.4968", "0.6997", "0.511", "0.6997", "0.511", "0.7085", "0.4968", "0.7085" ], [ "0.1152", "0.7183", "0.699", "0.7183", "0.699", "0.733", "0.1152", "0.733" ], [ "0.1152", "0.747", "0.8813", "0.747", "0.8813", "0.761", "0.1152", "0.761" ], [ "0.1152", "0.761", "0.6685", "0.761", "0.6685", "0.7744", "0.1152", "0.7744" ], [ "0.1136", "0.782", "0.8813", "0.781", "0.8813", "0.7954", "0.1136", "0.797" ], [ "0.1136", "0.797", "0.8823", "0.7974", "0.8823", "0.8125", "0.1136", "0.811" ], [ "0.1152", "0.8125", "0.8857", "0.8125", "0.8857", "0.8257", "0.1152", "0.8257" ], [ "0.1152", "0.8276", "0.4885", "0.8276", "0.4885", "0.8423", "0.1152", "0.8423" ], [ "0.1136", "0.8467", "0.8823", "0.8477", "0.8823", "0.8623", "0.1136", "0.8613" ], [ "0.1136", "0.8613", "0.4927", "0.8623", "0.4927", "0.877", "0.1136", "0.8755" ], [ "0.1405", "0.886", "0.8823", "0.886", "0.8823", "0.8994", "0.1405", "0.8994" ], [ "0.1152", "0.8984", "0.88", "0.8984", "0.88", "0.912", "0.1152", "0.912" ], [ "0.492", "0.9375", "0.5063", "0.9375", "0.5063", "0.9478", "0.492", "0.9478" ] ]
[ "A Class of Topological Pseudodistances for Fast Comparison of Persistence Diagrams", "AAAI24", "2.3PD Vectorizations and Persistence Statistics", "Vectorization is the dimension reduction of PDs from point clouds in 2 dimensions to vector data'. As the projection", "operation loses geometric information, vectorizations inherently face the tradeoff between simplicity and informativity", "ForacomprehensivesurveyofPDvectorizationsseeAlietal.[2023l,inwhichaseriesofvectorizationsarecompared", "in benchmark ML tasks. We focus on the best performant statistic determined in the cited paper, which turns out to", "be the Persistence Statistics (PS). For PDi(X) = ((br, d,) : i e I,) PS includes quantile, average and variance", "statistics about the following collections of nonnegative numbers:", "[b,lielj,{diliel,[(bi+di)/2]iel,,[di-biliel,", "(3)", "interpreted as, respectively, the set of birth, death, midpoints and lifetime lengths of the topological features indexed by", "Ij. Besides the above, Ps includes the total number of (bi, d,) such that d; > bi, and the entropy of the multiplicity", "function, whose interpretation is given in Chintakunta et al. [2015].", "2.4Extended Topology Pseudodistance", "Our new Extended Topology Pseudodistances (ETD) are defined by projecting the PDs relative to each separate", "dimension j over a finite set of directions, and summing the 1-dimensional Wp-distances of the projections. We will", "apply to elements (bi, d;) from point clouds in R2 the projection onto the 0-direction defined as follows, for 0 [0, 2):", "e : R?→ R, Te(c, y) := rcos + ysin 0.", "Remark 1. As before, for S C IR2, we treat e(S) as a multiset and retain the multiplicity of repeated projections.", "Remark 2. We have e+ () =-e(r) thus the same information is encoded in the g-projections restricted to just", "half of the available directions, e.g. restricting to e [O, ).", "The point cloud obtained by orthogonal projection of a PD Pj C R2 onto the diagonal is the following:", "pi := ((b + d)/2, (b + d)/2) : (b, d) e Pi).", "(4)", "Definition 2 (Extended Topology Pseudodistances). Let A C [O, π) be a finite set of projection angles and p E [0, oo]", "and consider two PDs Pi =PD(Xi),P2 =PD(X2) with PD(X) defined as in the previous sections.For O ≤j≤k,", "define the auxiliary distances", "EW, ((Pi U P), (P2 U P)", "", "DA(P1, P2) :=", "where for finite sets Si, S2 C R of equal cardinality, we set", "W,(Si, S2) := sort(Si) sort(S2)Ilp", "Then the p-Extended Topology Pseudodistance (ETD) with projection set A is defined as:", "1/1", "ETDA(P1,P2) :", "DA(P1,P2)P", "=", "WewriteETD:=ETDA,withAi=[3/4}andwill call thisdistancethebasicp-ETD", "The reason why we add the sets of the form Pj in the definition of DA, is for balancing: in general Pi, P, do not have", "the same cardinality, and the correct analogue of (1) requires including diagonal sets", "Note that if the filtrations producing the PDs are such that birth values are equal to zero by construction for Po, then", "these point clouds are 1-dimensional:we then replace Dby Do(P1,P2) :=#A-W,(六元/2(Pi),元/2(P2)),i.e", "consider only the “death\" coordinates, with no information loss (factor # A being introduced for normalization reasons).", "Also note that for 0 = 3 /4 we have that πe(P?) = [0].", "We observe that PS-distances give a strictly less informative distance than ETDA due to the observation contained in", "the following result, whose proof is a direct computation:", "Note that the entries of a vector are an equivalent information to point clouds over the real line, each vector entry being identified", "with a coordinate, thus PD vectorizations are conceptually analogous to dimension reduction from 2 to 1 dimensional point clouds", "4" ]
{ "arxiv_id": "2402.14489", "language": "en", "page_idx": 3 }
2402.14489-en-4
2402.14489-en-4.jpg
AAAI24 A Class of Topological Pseudodistances for Fast Comparison of Persistence Diagrams $\textbf{Lemma 1. Let }j\geq 0$ and P$^j=\{(b_1,d_1),\ldots,(b_{I_j},d_{I_j})\}$ be the $j$-dimensional PD of a dataset. Then the sets from (3) are equal to, respectively: $$\pi_{0}(\mathsf{P}^{j}),\:\pi_{\pi/2}(\mathsf{P}^{j}),\:\frac{\sqrt{2}}{2}\:\pi_{\pi/4}(\mathsf{P}^{j}),\:\frac{2}{\sqrt{2}}\:\pi_{3\pi/4}(\mathsf{P}^{j}).$$ In particular, the above lemma implies that ETD $_{A_4}$ distance is strictly stronger than PS for $A_4:=\{0,\pi/4,\pi/2,3\pi/4\}.$ $\hat{\text{Natural choices for }A}\subset[0,\pi)$ with increasing numbers of elements are (5) $$A_n:=\left\{\dfrac{3\pi}{4}-\dfrac{i}{n}\pi\:({\mathrm{mod}}\pi):\:i\in\{0,\dots,n-1\}\right\}.$$ In the above the “(mod$\pi)$" notation means that if the number $\theta_i:=3\pi/4-i\pi/n$ becomes negative, we replace it by $\pi-\theta_i$ instead. In Appendix B we mention a more extensive list of modifications to ETD$_A$ which may be useful in applications. As noted in the proof of Prop. 1, we may explicitly compute $W_p$-distances from the above definition by sorting the corresponding vectors and taking $\ell_p$-norm. Remark 3 (invariance properties of ETD$_A).In$ the above definition, the input of ETD $_Aare$ (unordered) collections of pointsencodedin $\mathbb{P} _1^j, \hat{\mathbb{P} } _2^j, j= 0, \ldots , k. In$ $practice, we$ are necessarily given the point clouds $in$ some $order$, and $ML$ tasks are required to be invariant under reordering of the points of P$_i^j,forall\left(i,j\right)\in\{1,2\}\times\{0,\ldots,k\}.A$ wished for property of distances, adapted to ML tasks, is to actually implement this invariance, so that successive ML processing $ofsuch\textit{ distances can be done without further symmetry constraints.This invariance is automatical for ETD}_A(\mathsf{P}_1,\mathsf{P}_2)$ due $to$ invariance $( under$ relabeling $of$ $P_{1}^{j}$ and $of$ $P_{2}^{j})$ $of$ the intermediate quantities like $W_{p}( \pi _{\theta }( \mathsf{P} _{1}^{j}) , \pi _{\theta }( \mathsf{P} _{2}^{j}) ) .$ The following computational cost bounds for ETD are proved in Appendix A: Theorem 1 (Computational cost of ETD$_A).LetP_1,\mathsf{P}_2be$ two PDs corresponding to homology dimensions 0,...,k, and let $A\subset [ 0, 2\pi )$ $be$ $a$ set $of$ cardinality $a.$ Then the cost $of$ calculating $ETD_{A}( P_{1}, P_{2})$ $is$ $$a(T_1+(k+1)M(3+T_2+logM))=O(akM\log M)$$ $assumingunitcostforsumorproductofrealnumbers,andwhereT_{1}isthecosttoevaluate\sin,\cos,T_{2}isthecostto$ take $p- th$ $powers$, and $M: = \max _{0\leq j\leq k}( \# \mathbf{P} _{1}^{j}+ \# \mathbf{P} _{2}^{j}) .$ The $M\log M$ factor in the above estimates the complexity of sorting algorithms for $M$ real numbers. Note that implementing the sorting stage with the Trimsort algorithm allows lower complexity of $O(M).$ Trimsort is a hybrid algorithm that seamlessly blends merge sort with insertion sort. It takes advantage of the inherent structure within the data to be merged, identifying sequences of pre-sorted data and integrating them into the final list, minimizing redundant comparisons. While on the one hand ETDs can be considered as enrichments of PS-based distances (see Prop. 1), the distances ETD $_A$ are theoretically connected to the Sliced Wasserstein Distance (SWD). The following is a reformulation of [Bonnotte, 2013, Def. 5.1.1] in our setting (see also [Carrière et al., 2017, Def. 3.1] which is specific for PD applications and Nadjahi [2021] for more recent advances on SWD in general): Definition 3 (Sliced Wasserstein Distance). Let $S_1, S_2\subseteq \mathbb{R} ^2be$ two finite point $clouds$, and let $\widetilde{S} _i$ $be$ the projections $as$ $in\left(4\right).Thenforp\in[1,\infty]$ the Sliced p- Wasserstein Distance (SWD) between them is defined as $SW_p(\mathcal{S}_1,\mathcal{S}_2)$ $$:=\quad\left(\frac{1}{\pi}\int_{0}^{\pi}W_{p}\big(\pi_{\theta}(\mathsf{S}_{1}\cup\widetilde{S}_{2}),\pi_{\theta}(\mathsf{S}_{2}\cup\widetilde{S}_{1})\big)^{p}\:d\theta\right)^{1/p}.$$ We see that for large $n$, the set of angles $A_n$ from (5) define discretizations of $[0,\pi)$ and thus we have $$\lim_{n\to\infty}\frac{1}{n^{1/p}}D_{j}^{A_{n}}(\mathsf P_{1},\mathsf P_{2})=SW_{p}(\mathsf P_{1}^{j},\mathsf P_{2}^{j}).$$ (6) By [ Bonnotte, 2013, Thm. 5. 1. 5] , for each $p\in [ 1, \infty )$ there exist $c_p,C_p>0$ such that restricted to pairs 2-dimensional point clouds $S_1,S_2$ included in a ball of radius $\sqrt2T\text{(which is true for S}_1=\mathsf{P}_1^j\cup\widetilde{P}_2^j$ and $\mathsf{S}_2=\mathsf{P}_2^j\cup\widetilde{P}_1^j$ if we truncate persistence filtrations at parameter value $T$ as in the introduction) we get the following distance comparison with Wasserstein distance: $$c_{p}SW_{p}\leq W_{p}\leq C_{p}T^{(p-1)/3p}\left(SW_{p}\right)^{1/3p}.$$ (7) In particular, stability properties for PDs such as those proved in Atienza et al.[2020] for $W_p$ distances, extend via (7) for $SW_{p}$ as well, and via (6) we get stability bounds in the large-$n$ limit for ETD$_A_{n}.\text{ See the discussion in Appendix A}$ More precise quantification of these bounds at both steps $(\tilde{W}_{p}$ bounds and control for finite $n$ in (6)) are interesting theory questions outside the scope of this paper. 5
[ [ "0.2173", "0.0423", "0.7812", "0.0423", "0.7812", "0.05618", "0.2173", "0.05618" ], [ "0.824", "0.04355", "0.884", "0.04355", "0.884", "0.05807", "0.824", "0.05807" ], [ "0.1168", "0.09155", "0.884", "0.09155", "0.884", "0.1061", "0.1168", "0.1061" ], [ "0.1152", "0.1067", "0.286", "0.1061", "0.286", "0.1193", "0.1152", "0.1206" ], [ "0.3325", "0.1218", "0.664", "0.1218", "0.664", "0.1395", "0.3325", "0.1395" ], [ "0.1168", "0.1515", "0.8823", "0.1515", "0.8823", "0.1654", "0.1168", "0.1654" ], [ "0.1152", "0.1666", "0.5864", "0.1666", "0.5864", "0.1799", "0.1152", "0.1799" ], [ "0.3816", "0.1875", "0.437", "0.1875", "0.437", "0.202", "0.3816", "0.202" ], [ "0.433", "0.1945", "0.6406", "0.1925", "0.6406", "0.2102", "0.433", "0.2122" ], [ "0.8613", "0.1945", "0.888", "0.1945", "0.888", "0.2108", "0.8613", "0.2108" ], [ "0.3945", "0.209", "0.4043", "0.209", "0.4043", "0.2134", "0.3945", "0.2134" ], [ "0.3284", "0.1963", "0.3594", "0.1963", "0.3594", "0.209", "0.3284", "0.209" ], [ "0.1136", "0.2247", "0.8823", "0.226", "0.8823", "0.2405", "0.1136", "0.2393" ], [ "0.1168", "0.2405", "0.8823", "0.2405", "0.8823", "0.254", "0.1168", "0.254" ], [ "0.1152", "0.2551", "0.884", "0.2551", "0.884", "0.2683", "0.1152", "0.2683" ], [ "0.1152", "0.2683", "0.4714", "0.2683", "0.4714", "0.2822", "0.1152", "0.2822" ], [ "0.1152", "0.286", "0.884", "0.286", "0.884", "0.2998", "0.1152", "0.2998" ], [ "0.1136", "0.3005", "0.8813", "0.3018", "0.8813", "0.3164", "0.1136", "0.315" ], [ "0.1152", "0.318", "0.8813", "0.318", "0.8813", "0.332", "0.1152", "0.332" ], [ "0.1152", "0.3333", "0.8813", "0.3333", "0.8813", "0.3467", "0.1152", "0.3467" ], [ "0.1152", "0.3467", "0.8823", "0.3467", "0.8823", "0.3599", "0.1152", "0.3599" ], [ "0.1111", "0.3599", "0.8267", "0.361", "0.8267", "0.379", "0.1111", "0.3774" ], [ "0.1152", "0.387", "0.6274", "0.387", "0.6274", "0.4016", "0.1152", "0.4016" ], [ "0.1152", "0.406", "0.8857", "0.406", "0.8857", "0.4192", "0.1152", "0.4192" ], [ "0.11273", "0.4192", "0.7114", "0.4204", "0.7114", "0.435", "0.11273", "0.4343" ], [ "0.3105", "0.4414", "0.6855", "0.4414", "0.6855", "0.4558", "0.3105", "0.4558" ], [ "0.1152", "0.4634", "0.8823", "0.4634", "0.8823", "0.4766", "0.1152", "0.4766" ], [ "0.11273", "0.4766", "0.4763", "0.4792", "0.4763", "0.4956", "0.11273", "0.4937" ], [ "0.1168", "0.504", "0.8813", "0.504", "0.8813", "0.5176", "0.1168", "0.5176" ], [ "0.1168", "0.5176", "0.8813", "0.5176", "0.8813", "0.531", "0.1168", "0.531" ], [ "0.1168", "0.5327", "0.8813", "0.5327", "0.8813", "0.5435", "0.1168", "0.5435" ], [ "0.1152", "0.5444", "0.8813", "0.5444", "0.8813", "0.558", "0.1152", "0.558" ], [ "0.1168", "0.5596", "0.8813", "0.5596", "0.8813", "0.5728", "0.1168", "0.5728" ], [ "0.1152", "0.5728", "0.8823", "0.5728", "0.8823", "0.586", "0.1152", "0.586" ], [ "0.1136", "0.586", "0.8823", "0.587", "0.8823", "0.601", "0.1136", "0.5996" ], [ "0.1152", "0.5996", "0.683", "0.5996", "0.683", "0.6143", "0.1152", "0.6143" ], [ "0.1152", "0.6187", "0.884", "0.6206", "0.884", "0.6353", "0.1152", "0.6333" ], [ "0.1152", "0.6353", "0.7485", "0.6353", "0.7485", "0.6484", "0.1152", "0.6484" ], [ "0.3096", "0.656", "0.3962", "0.656", "0.3962", "0.6704", "0.3096", "0.6704" ], [ "0.3823", "0.6816", "0.653", "0.681", "0.653", "0.702", "0.3823", "0.7026" ], [ "0.1152", "0.7217", "0.777", "0.7217", "0.777", "0.7363", "0.1152", "0.7363" ], [ "0.4307", "0.7485", "0.636", "0.75", "0.636", "0.7676", "0.4307", "0.7666" ], [ "0.863", "0.7524", "0.8857", "0.7524", "0.8857", "0.7666", "0.863", "0.7666" ], [ "0.3816", "0.761", "0.4468", "0.761", "0.4468", "0.773", "0.3816", "0.773" ], [ "0.3677", "0.754", "0.3945", "0.754", "0.3945", "0.7666", "0.3677", "0.7666" ], [ "0.1152", "0.778", "0.8857", "0.778", "0.8857", "0.7954", "0.1152", "0.7954" ], [ "0.1152", "0.7954", "0.8823", "0.7954", "0.8823", "0.81", "0.1152", "0.81" ], [ "0.1168", "0.811", "0.8823", "0.811", "0.8823", "0.8247", "0.1168", "0.8247" ], [ "0.1152", "0.8237", "0.259", "0.8247", "0.259", "0.839", "0.1152", "0.8384" ], [ "0.353", "0.8354", "0.6406", "0.832", "0.6406", "0.853", "0.353", "0.856" ], [ "0.864", "0.839", "0.8857", "0.839", "0.8857", "0.853", "0.864", "0.853" ], [ "0.1152", "0.856", "0.884", "0.856", "0.884", "0.8706", "0.1152", "0.8706" ], [ "0.1152", "0.8706", "0.884", "0.8706", "0.884", "0.884", "0.1152", "0.884" ], [ "0.1168", "0.884", "0.884", "0.884", "0.884", "0.8984", "0.1168", "0.8984" ], [ "0.1152", "0.8984", "0.4314", "0.8984", "0.4314", "0.912", "0.1152", "0.912" ], [ "0.4927", "0.936", "0.5063", "0.936", "0.5063", "0.9478", "0.4927", "0.9478" ] ]
[ "A Class of Topological Pseudodistances for Fast Comparison of Persistence Diagrams", "AAAI24", "Lemma 1. Let j ≥ O and Pj ={(bi, di), .. :, (bl,, di,)) be the j-dimensional PD of a dataset. Then the sets from (3)", "are equal to, respectively:", "0(P),/2(P),号元元/4(P),%3元/4(P)).", "In particular, the above lemma implies that ETDA, distance is strictly stronger than PS for A4 :=[0, /4, /2, 3/4]", "Natural choices for A C [0, π) with increasing numbers of elements are", "【3元", "一元 (mod元): iE [0,...,n -", "(5)", "", "An:", "In the above the \"(mod)\" notation means that if the number O, := 3 /4 - i /n becomes negative, we replace it by", "π - O; instead. In Appendix B we mention a more extensive list of modifications to ETDA which may be useful in", "applications.As noted in the proof of Prop.l, we may explicitly compute Wp-distances from the above definition by", "sorting the corresponding vectors and taking lp-norm.", "Remark 3 (invariance properties of ETDA). In the above definition, the input of ETDA are (unordered) collections of", "points encoded in Pj, P, j = O, ..., k. In practice, we are necessarily given the point clouds in some order, and ML", "tasks are required to be invariant under reordering of the points of Pj, for all (i, ) e [1, 2) × [O, .:: , k]. A wished for", "property of distances, adapted to ML tasks, is to actually implement this invariance, so that successive ML processing", "of such distances can be done without further symmetry constraints. This invariance is automatical for ETDA (Pi, P2)", "due to invariance (under relabeling of Pi and of P2) of the intermediate quantities like Wp(πe(Pi), re(P2).", "The following computational cost bounds for ETD are proved in Appendix A:", "Theorem1 (Computational cost of ETDA).Let P1,P2be two PDs corresponding to homology dimensions O, . : :,k,", "and let A C [0, 2) be a set of cardinality a. Then the cost of calculating ETDA(Pi, P2) is", "a(Ti + (k + 1)M(3 + T2 +logM)) = O(akM log M),", "assuming unit cost for sum or product of real numbers, and where Ti is the cost to evaluate sin, cos, T2 is the cost to", "take p-th powers, and M := maxo≤j<k(#P1 + #P2).", "The M log M factor in the above estimates the complexity of sorting algorithms for M real numbers. Note that", "implementing the sorting stage with the Trimsort algorithm allows lower complexity of O(M). Trimsort is a hybrid", "algorithm that seamlesslyblends merge sortwith insertion sort. Ittakes advantage of the inherent structure within", "the data to be merged, identifying sequences of pre-sorted data and integrating them into the final list, minimizing", "redundant comparisons. While on the one hand ETDs can be considered as enrichments of PS-based distances (see", "Prop. 1), the distances ETDA are theoretically connected to the Sliced Wasserstein Distance (SWD).The following is a", "reformulation of [Bonnotte, 2013, Def. 5.1.1] in our setting (see also [Carriere et al., 2017, Def. 3.1] which is specific", "for PD applications and Nadjahi [2021] for more recent advances on SWD in general):", "Definition 3 (Sliced Wasserstein Distance). Let S1, S, C IR2 be two finite point clouds, and let S, be the projections as", "in (4). Then for p E [1, ool the Sliced p-Wasserstein Distance (SWD) between them is defined as", "SWp(S1, S2)", "/\"Wp(πe(S1 U S2), o(S2 U S1)P de", "We see that for large n, the set of angles An from (5) define discretizations of [0, ) and thus we have", "DAn(P1,P2) = SWp(Pi, P2).", "(6)", "0onl/p", "lim", "By [Bonnotte, 2013, Thm. 5.1.5], for each p e [1, c0) there exist Cp, Cp > 0 such that restricted to pairs 2-dimensional", "point clouds Si, S2 included in a ball of radius V2T (which is true for Sr = Pj U Pj and S2 = P; U Pj if we truncate", "persistence filtrations at parameter value T as in the introduction) we get the following distance comparison with", "Wasserstein distance:", "CpSWp≤W,≤C,T(p-1)/3p (SW,)1/3p,", "(7)", "In particular, stability properties for PDs such as those proved in Atienza et al. [2020] for W, distances, extend via (7)", "for SWp as well, and via (6) we get stability bounds in the large-n limit for ETDA,. See the discussion in Appendix A.", "More precise quantification of these bounds at both steps (W, bounds and control for finite n in (6)) are interesting", "theory questions outside the scope of this paper.", "5" ]
{ "arxiv_id": "2402.14489", "language": "en", "page_idx": 4 }
2310.01140-en-0
2310.01140-en-0.jpg
NEURAL PROCESSING OF TRI-PLANE HYBRID NEURAL FIELDS Adriano Cardace$^{1*}$ Pierluigi Zama Ramirez$^{1}$ Francesco Ballerini$^{1}$ Allan Zhou$^{2}$ ## Samuele Salti$^{1}$ $\textbf{Luigi Di Stefano}^{1}$ $^{1}$University of Bologna$^2$Stanford University ### adriano.cardace2@unibo.it ### ABSTRACT Driven by the appealing properties of neural fields for storing and communicating 3D data, the problem of directly processing them to address tasks such as classification and part segmentation has emerged and has been investigated in recent works. Early approaches employ neural fields parameterized by shared networks trained on the whole dataset, achieving good task performance but sacrificing reconstruction quality. To improve the latter, later methods focus on individual neural fields parameterized as large Multi-Layer Perceptrons (MLPs), which are, however, challenging to process due to the high dimensionality of the weight space, intrinsic weight space symmetries, and sensitivity to random initialization. Hence, results turn out significantly inferior to those achieved by processing explicit representations, e.g., point clouds or meshes. In the meantime, hybrid representations, in particular based on tri-planes, have emerged as a more effective and efficient alternative to realize neural fields, but their direct processing has not been investigated yet. In this paper, we show that the tri-plane discrete data structure encodes rich information, which can be effectively processed by standard deep-learning machinery. We define an extensive benchmark covering a diverse set of fields such as occupancy, signed/unsigned distance, and, for the first time, radiance fields. While processing a field with the same reconstruction quality, we achieve task performance far superior to frameworks that process large MLPs and, for the first time, almost on par with architectures handling explicit representations. ## 1 INTRODUCTION A world of neural felds. Neural fields (Xie et al., 2021) are functions defined at all spatial coordinates, parameterized by a neural network such as a Multi-Layer Perceptron ( MLP). They have been used to represent different kinds of data, like image intensities, scene radiances, 3D shapes, etc. In the context of 3D world representation, various types of neural fields have been explored, such as the signed/unsigned distance field (S$DF/UDF)$ (Park et al., 2019; Chibane et al., 2020; Gropp et al., 2020; Takikawa et al., 2021), the occupancy field $(OF)$ (Mescheder et al., 2019; Peng et al., 2020), and the radiance field $(RF)$ (Mildenhall et ai., 2020b). Their main advantage is the ability to obtain a continuous representation of the world, thereby providing information at every point in space, unlike discrete counterparts like voxels, meshes, or point clouds. Moreover, neural fields allow for encoding a 3D geometry at arbitrary resolution while using a finite number of parameters, i.e., the weights of the MLP. Thus, the memory cost of the representation and its spatial resolution are decoupled. Recently, hybrid neural fields (Xie et al., 2021), which combine continuous neural elements (i.e., MLPs) with discrete spatial structures (e.g, voxel grids (Peng et al., 2020), point clouds (Tretschk et al., 2020), etc.) that encode local information, are gaining popularity due to faster inference (Reiser et al., 2021), better use of network capacity (Rebain et al., 2021) and suitability to editing tasks (Liu et al., 2020). In particular, the community has recently investigated tri-planes (Chan et al., 2022), a type of hybrid representation whose discrete components are three feature planes $(xy,yz,xz)$, due to its regular grid structure and compactness. Tri-planes have been deployed for $RF($Hu et al., 2023) and $SDF$ (Wang et al., 2023). $^{*}$We thank Iacopo Curti for the results produced during his master thesis.
[ [ "0.1748", "0.101", "0.4805", "0.1029", "0.4805", "0.1206", "0.1748", "0.1187" ], [ "0.1732", "0.1256", "0.6235", "0.1276", "0.6235", "0.1459", "0.1732", "0.1433" ], [ "0.1847", "0.1704", "0.335", "0.1692", "0.335", "0.1843", "0.1847", "0.1849" ], [ "0.327", "0.1704", "0.509", "0.1704", "0.509", "0.1849", "0.327", "0.1849" ], [ "0.528", "0.1718", "0.6733", "0.1718", "0.6733", "0.1849", "0.528", "0.1849" ], [ "0.6895", "0.1704", "0.7793", "0.1704", "0.7793", "0.1849", "0.6895", "0.1849" ], [ "0.1847", "0.1863", "0.2917", "0.1863", "0.2917", "0.1995", "0.1847", "0.1995" ], [ "0.2932", "0.1863", "0.4272", "0.1863", "0.4272", "0.1995", "0.2932", "0.1995" ], [ "0.1814", "0.2008", "0.3464", "0.2008", "0.3464", "0.214", "0.1814", "0.214" ], [ "0.3506", "0.1989", "0.501", "0.2008", "0.501", "0.2153", "0.3506", "0.2134" ], [ "0.1847", "0.2153", "0.4307", "0.2153", "0.4307", "0.2291", "0.1847", "0.2291" ], [ "0.02287", "0.2651", "0.06046", "0.2651", "0.06046", "0.4016", "0.02287", "0.4016" ], [ "0.4534", "0.2651", "0.5474", "0.2651", "0.5474", "0.2798", "0.4534", "0.2798" ], [ "0.2336", "0.2966", "0.7656", "0.2966", "0.7656", "0.3113", "0.2336", "0.3113" ], [ "0.232", "0.31", "0.767", "0.3113", "0.767", "0.3245", "0.232", "0.324" ], [ "0.2336", "0.3257", "0.767", "0.3257", "0.767", "0.339", "0.2336", "0.339" ], [ "0.232", "0.3384", "0.7646", "0.3384", "0.7646", "0.3516", "0.232", "0.3516" ], [ "0.2336", "0.3528", "0.7656", "0.3528", "0.7656", "0.3662", "0.2336", "0.3662" ], [ "0.2336", "0.3662", "0.7656", "0.3662", "0.7656", "0.3801", "0.2336", "0.3801" ], [ "0.232", "0.379", "0.767", "0.3801", "0.767", "0.3945", "0.232", "0.3933" ], [ "0.02287", "0.3977", "0.0621", "0.3977", "0.0621", "0.4944", "0.02287", "0.4944" ], [ "0.232", "0.3945", "0.767", "0.3945", "0.767", "0.4077", "0.232", "0.4077" ], [ "0.2303", "0.4077", "0.7656", "0.4077", "0.7656", "0.4216", "0.2303", "0.4216" ], [ "0.232", "0.4204", "0.767", "0.4216", "0.767", "0.4363", "0.232", "0.435" ], [ "0.2336", "0.4363", "0.767", "0.4363", "0.767", "0.4495", "0.2336", "0.4495" ], [ "0.232", "0.4495", "0.767", "0.4495", "0.767", "0.4634", "0.232", "0.4634" ], [ "0.2336", "0.4634", "0.767", "0.4634", "0.767", "0.4766", "0.2336", "0.4766" ], [ "0.02124", "0.481", "0.0637", "0.481", "0.06046", "0.7134", "0.01878", "0.7134" ], [ "0.2336", "0.4778", "0.7646", "0.4778", "0.7646", "0.4912", "0.2336", "0.4912" ], [ "0.2336", "0.4912", "0.7656", "0.4912", "0.7656", "0.505", "0.2336", "0.505" ], [ "0.2336", "0.505", "0.7656", "0.505", "0.7656", "0.518", "0.2336", "0.518" ], [ "0.2345", "0.521", "0.7656", "0.521", "0.7656", "0.531", "0.2345", "0.531" ], [ "0.232", "0.531", "0.767", "0.532", "0.767", "0.547", "0.232", "0.5454" ], [ "0.2336", "0.547", "0.767", "0.547", "0.767", "0.56", "0.2336", "0.56" ], [ "0.2336", "0.56", "0.7017", "0.56", "0.7017", "0.5737", "0.2336", "0.5737" ], [ "0.179", "0.604", "0.1854", "0.604", "0.1854", "0.6113", "0.179", "0.6113" ], [ "0.2018", "0.6016", "0.3381", "0.6016", "0.3381", "0.6157", "0.2018", "0.6157" ], [ "0.1732", "0.632", "0.824", "0.632", "0.824", "0.646", "0.1732", "0.646" ], [ "0.1748", "0.6465", "0.824", "0.6465", "0.824", "0.66", "0.1748", "0.66" ], [ "0.1732", "0.659", "0.824", "0.659", "0.824", "0.6724", "0.1732", "0.6724" ], [ "0.1732", "0.675", "0.824", "0.675", "0.824", "0.688", "0.1732", "0.688" ], [ "0.1748", "0.688", "0.826", "0.688", "0.826", "0.702", "0.1748", "0.702" ], [ "0.1748", "0.702", "0.826", "0.702", "0.826", "0.7153", "0.1748", "0.7153" ], [ "0.1748", "0.7153", "0.826", "0.7153", "0.826", "0.729", "0.1748", "0.729" ], [ "0.1748", "0.73", "0.824", "0.73", "0.824", "0.7437", "0.1748", "0.7437" ], [ "0.1748", "0.7437", "0.824", "0.7437", "0.824", "0.757", "0.1748", "0.757" ], [ "0.1732", "0.757", "0.826", "0.757", "0.826", "0.771", "0.1732", "0.771" ], [ "0.1748", "0.7715", "0.789", "0.7715", "0.789", "0.785", "0.1748", "0.785" ], [ "0.1732", "0.7905", "0.826", "0.7915", "0.826", "0.806", "0.1732", "0.8047" ], [ "0.1732", "0.806", "0.8228", "0.806", "0.8228", "0.821", "0.1732", "0.821" ], [ "0.1748", "0.8193", "0.824", "0.8193", "0.824", "0.8335", "0.1748", "0.8335" ], [ "0.1748", "0.834", "0.824", "0.834", "0.824", "0.8477", "0.1748", "0.8477" ], [ "0.1748", "0.8477", "0.824", "0.8477", "0.824", "0.8623", "0.1748", "0.8623" ], [ "0.1748", "0.8623", "0.824", "0.8623", "0.824", "0.8755", "0.1748", "0.8755" ], [ "0.1732", "0.8755", "0.826", "0.8755", "0.826", "0.8896", "0.1732", "0.8896" ], [ "0.1748", "0.8896", "0.3652", "0.8896", "0.3652", "0.903", "0.1748", "0.903" ], [ "0.1936", "0.91", "0.6235", "0.911", "0.6235", "0.9253", "0.1936", "0.925" ], [ "0.4927", "0.9478", "0.5034", "0.9478", "0.5034", "0.961", "0.4927", "0.961" ] ]
[ "NEURAL PROCESSING OF", "TRI-PLANE HYBRID NEURAL FIELDS", "Adriano Cardacel*", "Pierluigi Zama Ramirez!", "Francesco Ballerinil", "Allan Zhou?", "Samuele Saltil", "Luigi Di Stefano", "1 University of Bologna", "2 Stanford University", "adriano.cardace2@unibo.it", " ", "ABSTRACT", "Driven by the appealing properties of neural fields for storing and communicating", "3D data, the problem of directly processing them to address tasks such as classi-", "fication and part segmentation has emerged and has been investigated in recent", "works. Early approaches employ neural fields parameterized by shared networks", "trained on the whole dataset, achieving good task performance but sacrificing", "reconstruction quality. To improve the latter, later methods focus on individual", "neural fields parameterized as large Multi-Layer Perceptrons (MLPs), which are,", "['s]", "however, challenging to process due to the high dimensionality of the weight space,", "intrinsic weight space symmetries, and sensitivity to random initialization. Hence,", "results turn out significantly inferior to those achieved by processing explicit repre-", "sentations, e.g., point clouds or meshes. In the meantime, hybrid representations,", "in particular based on tri-planes, have emerged as a more effective and efficient", "alternative to realize neural fields, but their direct processing has not been investi-", "1", "gated yet. In this paper, we show that the tri-plane discrete data structure encodes", "rich information, which can be effectively processed by standard deep-learning", "machinery. We define an extensive benchmark covering a diverse set of fields", "suchasoccupancy,signed/unsigneddistance,and,forthefirsttime,radiancefields", "While processing a field with the same reconstruction quality, we achieve task", "performancefar superior to frameworks that process large MLPs and, for the first", "time, almost on par with architectures handling explicit representations.", "1", "INTRODUCTION", "A world of neural fields. Neural fields (Xie et al., 2021) are functions defined at all spatial", "coordinates, parameterized by a neural network such as a Multi-Layer Perceptron (MLP). They have", "been used to represent different kinds of data, like image intensities, scene radiances, 3D shapes, etc.", "In the context of 3D world representation, various types of neural fields have been explored, such as", "the signed/unsigned distance field (SDF/UDF) (Park et al., 2019; Chibane et al., 2020; Gropp et al.,", "2020; Takikawa et al., 2021), the occupancy field (0F) (Mescheder et al., 2019; Peng et al., 2020),", "and the radiance field (RF) (Mildenhall et al., 2020b). Their main advantage is the ability to obtain a", "continuous representation of the world, thereby providing information at every point in space, unlike", "discrete counterparts like voxels, meshes, or point clouds.Moreover, neural fields allow for encoding", "a 3D geometry at arbitrary resolution while using a finite number of parameters, i.e., the weights of", "the MLP. Thus, the memory cost of the representation and its spatial resolution are decoupled.", "Recently, hybrid neural fields (Xie et al., 2021), which combine continuous neural elements (i.e.,", "MLPs) with discrete spatial structures (e.g., voxel grids (Peng et al., 2020), point clouds (Tretschk", "et al., 2020), etc.) that encode local information, are gaining popularity due to faster inference (Reiser", "et al., 2021), better use of network capacity (Rebain et al., 2021) and suitability to editing tasks (Liu", "et al., 2020). In particular, the community has recently investigated tri-planes (Chan et al., 2022), a", "type of hybrid representation whose discrete components are three feature planes (ry, yz, z), due to", "its regular grid structure and compactness. Tri-planes have been deployed for RF (Hu et al., 2023)", "and SDF (Wang et al., 2023)", "*We thank lacopo Curtifor the results produced during his master thesis.", "1" ]
{ "arxiv_id": "2310.01140", "language": "en", "page_idx": 0 }
2310.01140-en-1
2310.01140-en-1.jpg
<FigureHere> Figure 1: Left: Neural processing of hybrid neural fields allows us to employ well-established architectures to tackle deep learning tasks while avoiding problems related to processing MLPs, such as the high-dimensional weight space and the random initialization. Right: $\hat{\text{Weachieve performance}}$ better than other works on this topic, close to methods that operate directly on explicit representations. without sacrificing the reconstruction quality of neural fields. Neural processing of neural fields. As conjectured in De Luigi et al.(2023), due to their advantages and increasing adoption in recent years, neural fields may become one of the standard methods for storing and communicating 3D information, i.e., repositories of digital twins of real objects stored as neural networks will become available. In such a scenario, developing strategies to solve tasks such as classification or segmentation by directly processing neural fields becomes relevant to utilize these representations in practical applications. For instance, given a NeRF of a chair, classifying the weights of the MLP without rendering and processing images would be faster, less computationally $\tilde{\text{demanding, and more straightforward, e.g., there is no need to understand where to sample the 3D}}$ space as there is no sampling at all. Earlier methods on the topic, such as Functa (Dupont et al., 2022), approached this scenario with shared networks trained on the whole dataset conditioned on a different global embedding for each object. In this case, a neural field is realized by the shared network plus the embedding, which is then processed for downstream tasks. However, representing a whole dataset with a shared network is difficult, and the reconstruction quality of neural felds inevitably drops (see the plot in Fig. 1). For this reason, later approaches such as inr2vec (De Luigi et al., 2023), NFN (Zhou et al., 2023b), NFT (Zhou et al., 2023b), and DWSNet (Navon et al., 2023) propose to process neural fields consisting of a single large MLP, such as SIREN (Sitzmann et al., 2020), for each object. Although this strategy effectively maintains the reconstruction capabilities of neural fields, task performance suffers due to the challenges introduced by the need to handle MLPs, such as the large number of weights and the difficulty of embedding inductive biases into neural networks aimed at processing MLPs. Moreover, randomly initialized MLPs trained on the same input data can converge to drastically different regions of the weight space due to the non-convex optimization problem and the symmetries of neural weight spaces (Entezari et al., 2021; Ainsworth et al., 2023). Thus, identifying a model capable of processing MLPs and generalizing among all possible initializations is not straightforward. Previous works partially address these problems: inr2vec proposes an efficient and scalable architecture, and bypasses the initialization problem by fixing it across MLPs; NFN, NFT, and DWSNet design networks that are equivariant to weight symmetries. Nonetheless, all previous methods processing neural fields realized as single MLPs achieve unsatisfying performance, far from established architectures that operate on explicit representations, e.g., point clouds or meshes, as shown in Fig. 1 right. Neural processing of tri-plane neural fields. To overcome the limitations of previous approaches and given the appealing properties of hybrid representations, in this paper, we explore the new research problem of tackling common 3D tasks by directly processing tri-plane neural fields. To this end, we analyze the information stored in the two components of this representation, which comprises a discrete feature space alongside a small MLP, and find out that the former contains rich semantic and geometric information. Based on this finding, we propose to process tri-plane neural fields by seamlessly applying, directly on the discrete feature space, standard neural architectures that have been developed and engineered over many years of research, such as CNNs (He et al., 2016) or, thanks to tri-plane compactness, even Transformers (Vaswani et al., 2017) (Fig. 1 left). Moreover, we note empirically that the same geometric structures are encoded in tri-planes fitted on the same shape from different initializations up to a permutation of the channels. Thus, we exploit this property to achieve robustness to the random initialization problem by processing tri-planes with standard architectures that are made invariant to permutation of the channels. We achieve much better 2
[ [ "0.4878", "0.101", "0.562", "0.101", "0.562", "0.108", "0.4878", "0.108" ], [ "0.5645", "0.11554", "0.584", "0.1187", "0.581", "0.1256", "0.564", "0.1225" ], [ "0.2646", "0.1237", "0.3137", "0.1237", "0.3137", "0.1307", "0.2646", "0.1307" ], [ "0.5645", "0.1237", "0.603", "0.1237", "0.603", "0.1445", "0.5645", "0.1445" ], [ "0.1732", "0.2229", "0.8228", "0.2235", "0.8228", "0.238", "0.1732", "0.2374" ], [ "0.1748", "0.238", "0.824", "0.238", "0.824", "0.252", "0.1748", "0.252" ], [ "0.1765", "0.254", "0.8228", "0.254", "0.8228", "0.2644", "0.1765", "0.2644" ], [ "0.1748", "0.2664", "0.826", "0.2664", "0.826", "0.2798", "0.1748", "0.2798" ], [ "0.1748", "0.2798", "0.574", "0.2798", "0.574", "0.2935", "0.1748", "0.2935" ], [ "0.1748", "0.327", "0.824", "0.327", "0.824", "0.3416", "0.1748", "0.3416" ], [ "0.1748", "0.3423", "0.8228", "0.3423", "0.8228", "0.356", "0.1748", "0.356" ], [ "0.1748", "0.356", "0.824", "0.356", "0.824", "0.3694", "0.1748", "0.3694" ], [ "0.1765", "0.3718", "0.8228", "0.3718", "0.8228", "0.3818", "0.1765", "0.3818" ], [ "0.1748", "0.3838", "0.8228", "0.3838", "0.8228", "0.3977", "0.1748", "0.3977" ], [ "0.1732", "0.3977", "0.8228", "0.3977", "0.8228", "0.411", "0.1732", "0.411" ], [ "0.1748", "0.411", "0.8228", "0.411", "0.8228", "0.4248", "0.1748", "0.4248" ], [ "0.1724", "0.4255", "0.822", "0.4255", "0.822", "0.4395", "0.1724", "0.4395" ], [ "0.1748", "0.44", "0.4084", "0.44", "0.4084", "0.4539", "0.1748", "0.4539" ], [ "0.1748", "0.459", "0.8228", "0.459", "0.8228", "0.4734", "0.1748", "0.4734" ], [ "0.1765", "0.476", "0.822", "0.476", "0.822", "0.486", "0.1765", "0.486" ], [ "0.1748", "0.488", "0.824", "0.488", "0.824", "0.502", "0.1748", "0.502" ], [ "0.1765", "0.502", "0.826", "0.502", "0.826", "0.515", "0.1765", "0.515" ], [ "0.1748", "0.5166", "0.824", "0.5166", "0.824", "0.53", "0.1748", "0.53" ], [ "0.1765", "0.531", "0.8228", "0.531", "0.8228", "0.5415", "0.1765", "0.5415" ], [ "0.1748", "0.5435", "0.826", "0.5435", "0.826", "0.5566", "0.1748", "0.5566" ], [ "0.1732", "0.556", "0.824", "0.5566", "0.824", "0.5713", "0.1732", "0.571" ], [ "0.1748", "0.5713", "0.824", "0.5713", "0.824", "0.5854", "0.1748", "0.5854" ], [ "0.1748", "0.5854", "0.824", "0.5854", "0.824", "0.5986", "0.1748", "0.5986" ], [ "0.1748", "0.5996", "0.826", "0.5996", "0.826", "0.613", "0.1748", "0.613" ], [ "0.1732", "0.6123", "0.824", "0.6113", "0.824", "0.625", "0.1732", "0.6255" ], [ "0.1748", "0.627", "0.8228", "0.627", "0.8228", "0.64", "0.1748", "0.64" ], [ "0.1748", "0.64", "0.8228", "0.64", "0.8228", "0.654", "0.1748", "0.654" ], [ "0.1765", "0.654", "0.824", "0.654", "0.824", "0.6675", "0.1765", "0.6675" ], [ "0.1765", "0.6685", "0.824", "0.6685", "0.824", "0.6816", "0.1765", "0.6816" ], [ "0.1748", "0.6816", "0.824", "0.6816", "0.824", "0.696", "0.1748", "0.696" ], [ "0.1765", "0.6963", "0.8228", "0.6963", "0.8228", "0.707", "0.1765", "0.707" ], [ "0.1732", "0.7085", "0.824", "0.709", "0.824", "0.7236", "0.1732", "0.7227" ], [ "0.1748", "0.7236", "0.755", "0.7236", "0.755", "0.7373", "0.1748", "0.7373" ], [ "0.1748", "0.744", "0.824", "0.744", "0.824", "0.7583", "0.1748", "0.7583" ], [ "0.1748", "0.759", "0.824", "0.759", "0.824", "0.773", "0.1748", "0.773" ], [ "0.1748", "0.773", "0.8228", "0.773", "0.8228", "0.786", "0.1748", "0.786" ], [ "0.1748", "0.786", "0.8228", "0.786", "0.8228", "0.8", "0.1748", "0.8" ], [ "0.1732", "0.8", "0.822", "0.8", "0.822", "0.813", "0.1732", "0.813" ], [ "0.1748", "0.8145", "0.824", "0.8145", "0.824", "0.8276", "0.1748", "0.8276" ], [ "0.1748", "0.8276", "0.824", "0.8276", "0.824", "0.8413", "0.1748", "0.8413" ], [ "0.1748", "0.8413", "0.826", "0.8413", "0.826", "0.855", "0.1748", "0.855" ], [ "0.1748", "0.856", "0.826", "0.856", "0.826", "0.869", "0.1748", "0.869" ], [ "0.1748", "0.869", "0.824", "0.869", "0.824", "0.8833", "0.1748", "0.8833" ], [ "0.1748", "0.8833", "0.824", "0.8833", "0.824", "0.8965", "0.1748", "0.8965" ], [ "0.1748", "0.898", "0.824", "0.898", "0.824", "0.911", "0.1748", "0.911" ], [ "0.1748", "0.911", "0.824", "0.911", "0.824", "0.925", "0.1748", "0.925" ], [ "0.492", "0.9463", "0.5073", "0.9463", "0.5073", "0.961", "0.492", "0.961" ] ]
[ "NeuralFieldsWorld", "Ad-e", "xplicitWorlo", "08", "Figure l: Left: Neural processing of hybrid neural fields allows us to employ well-established", "architectures to tackle deep learning tasks while avoiding problems related to processing MLPs, such", "asthehigh-dimensional weight spaceand therandominitialization.Right:Weachieveperformance", "better than other works on this topic, close to methods that operate directly on explicit representations.", "without sacrificing the reconstruction quality of neural fields.", "Neural processing of neural fields. As conjectured in De Luigi et al. (2023), due to their advantages", "and increasing adoption in recent years, neural fields may become one of the standard methods for", "storing and communicating 3D information, i.e., repositories of digital twins of real objects stored", "asneuralnetworkswillbecomeavailable.Insuchascenario,developingstrategiestosolvetasks", "such as classification or segmentation by directly processing neural fields becomes relevant to utilize", "these representations in practical applications. For instance, given a NeRF of a chair, classifying the", "weights of the MLP without rendering and processing images would be faster, less computationally", "demanding, and more straightforward, e.g., there is no need to understand where to sample the 3D", "space as there is no sampling at all.", "Earlier methods on the topic, such as Functa (Dupont et al., 2022), approached this scenario with", "sharednetworkstrained onthewholedatasetconditioned onadifferentglobalembeddingforeach", "object. In this case, a neural field is realized by the shared network plus the embedding, which is then", "processed for downstream tasks. However, representing a whole dataset with a shared network is", "difficult, and the reconstruction quality of neural fields inevitably drops (see the plot in Fig. 1). For", "thisreason,laterapproaches such asinr2vec(DeLuigietal.,2023),NFN(Zhou et al.,2023b),NFT", "(Zhou et al., 2023b), and DWSNet (Navon et al., 2023) propose to process neural fields consisting of", "a single large MLP, such as SIREN (Sitzmann et al., 2020), for each object. Although this strategy", "effectively maintains the reconstruction capabilities of neural fields, task performance suffers due to", "the challenges introduced by the need to handle MLPs, such as the large number of weights and the", "difficulty of embedding inductive biases into neural networks aimed at processing MLPs. Moreover,", "randomlyinitialized MLPs trainedonthe sameinputdata can convergetodrastically different regions", "of the weight space due to the non-convex optimization problem and the symmetries of neural weight", "spaces (Entezari et al., 2021; Ainsworth et al., 2023). Thus, identifying a model capable of processing", "MLPs and generalizing among all possible initializations is not straightforward. Previous works", "partially address these problems: inr2vec proposes an efficient and scalable architecture, and bypasses", "the initialization problem by fixing it across MLPs; NFN, NFT, and DWSNet design networks that", "are equivariantto weight symmetries.Nonetheless.all previous methods processing neural fields", "realized as single MLPs achieve unsatisfying performance, far from established architectures that", "operate on explicit representations, e.g., point clouds or meshes, as shown in Fig. 1 right.", "Neural processing of tri-plane neural fields. To overcome the limitations of previous approaches", "and given the appealing properties of hybrid representations, in this paper, we explore the new", "research problem of tackling common 3D tasks by directly processing tri-plane neural fields. To", "this end, we analyze the information stored in the two components of this representation, which", "comprises a discrete feature space alongside a small MLP, and find out that the former contains rich", "semantic and geometric information. Based on this finding, we propose to process tri-plane neural", "fields by seamlessly applying, directly on the discrete feature space, standard neural architectures", "that have been developed and engineered over many years of research, such as CNNs (He et al.,", "2016) or, thanks to tri-plane compactness, even Transformers (Vaswani et al., 2017) (Fig. 1 left).", "Moreover, we note empirically that the same geometric structures are encoded in tri-planes fitted on", "the same shape from different initializations up to a permutation of the channels. Thus, we exploit", "this property to achieve robustness to the random initialization problem by processing tri-planes with", "standard architectures that are made invariant to permutation of the channels. We achieve much better", "2" ]
{ "arxiv_id": "2310.01140", "language": "en", "page_idx": 1 }
2310.01140-en-2
2310.01140-en-2.jpg
performance than all previous methods in classifying and segmenting objects represented as neural fields, almost on par with established architectures that operate on explicit representations, without sacrificing the representation quality (Fig. 1). Summary of our contributions. Code available at https://github. com/CVLAB-Unibo/ triplane\_processing. $\bullet$ We set forth the new research problem of solving tasks by directly processing tri-plane neural fields We show that the discrete features encode rich semantic and geometric information, which can be elaborated by applying well-established architectures. Moreover, we note how similar information is stored in tri-planes with different initializations of the same shape. Yet, the information is organized with different channel orders. $\bullet$ We show that applying well-established architectures on tri-planes achieves much better results than processing neural felds realized as a large MLP. Moreover, we reveal that employing architectures made invariant to the channel order improves performance in the challenging but more realistic scenario of randomly initialized neural fields. In this way, we almost close the gap between methods that operate on explicit representations and those working directly on neural representations. $\bullet$ To validate our results, we build a comprehensive benchmark for tri-plane neural field classification. We test our method by classifying neural fields that model various fields $(UDF,SDF,OF,RF).$ In particular, to the best of our knowledge, we are the first to classify NeRFs without explicitly reconstructing the represented signal. $\bullet$ Finally, as the tri-plane structure is independent of the represented field, we train a single network to classify diverse neural fields. Specifically, we show promising preliminary results of a unique model capable of classifying $UDF,SDF$, and $OF.$ ## 2 RELATED WORK Neural fields. Recent approaches have shown the ability of MLPs to parameterize fields representing any physical quantity of interest (Xie et al., 2021). The works focusing on representing 3D data with MLPs rely on fitting functions such as the unsigned distance (Chibane et al., 2020), the signed distance (Park et al., 2019; Gropp et al., 2020; Sitzmann et al., 2019; Jiang et al., 2020; Peng et al., 2020), the occupancy (Mescheder et al., 2019; Chen & Zhang, 2019), or the scene radiance ( Mildenhall et al., 2020a). Among these approaches, SIREN (Sitzmann et al., 2020) uses periodic activation functions to capture high-frequency details. Recently, hybrid representations, in which the MLP is paired with a discrete data structure, have been introduced within the vision and graphic communities motivated by faster inference (Reiser et al., 2021), better use of network capacity (Rebain et al., 2021) and suitability to editing tasks (Liu et al., 2020). These data structures decompose the input coordinate space, either regularly, such as for voxel grids (Reiser et al., 2021; Fridovich-Keil et al., 2022; Liu et al., 2020), tri-planes (Wang et al., 2023; Chan et al., 2022; Wu&Zheng, 2022; Hu et al., 2023), and 4D tensors (Chen et al., 2022), or irregularly, such as for point clouds (Tretschk et al., 2020), and meshes (Peng et al., 2021). Unlike these works, we do not focus on designing a neural field representation, but we investigate how to directly process hybrid fields to solve tasks such as shape classification and 3D part segmentation. We focus on tri-planes due to their regular grid structure and compactness, which enable standard neural networks to process them seamlessly and effectively. Neural functionals. Several very recent approaches aim at processing functions parameterized as MLPs by employing other neural networks. MLPs are known to exhibit weight space symmetries (Hecht-Nielsen, 1990), i.e., hidden neurons can be permuted across layers without changing the function represented by the network. Works such as DWSNet (Navon et al., 2023), NFÑ (Zhou et al., 2023a), and NFT (Zhou et al., 2023b) leverage weight space symmetries as an inductive bias to develop novel architectures designed to process MLPs. Both DWSNet and NFN devise neural layers equivariant to the permutations arising in MLPs. In contrast, NFT builds upon the intuition of achieving permutation equivariance by removing positional encoding from a Transformer architecture. Among the works processing MLPs, inr2vec (De Luigi et al., 2023) is the first that focuses specifically on MLPs representing 3D neural fields. It proposes a representation learning framework that compresses neural fields of 3D shapes into embeddings, which can then be used as $\hat{\text{input for downstream tasks. In the scenario addressed by inr2vec, DWSNet, NFN, and NFT, each}}$ neural field is parameterized by its own MLP. Differently, the framework proposed in Functa (Dupont 3
[ [ "0.1765", "0.1048", "0.824", "0.1048", "0.824", "0.1193", "0.1765", "0.1193" ], [ "0.1748", "0.1193", "0.824", "0.1193", "0.824", "0.1332", "0.1748", "0.1332" ], [ "0.1732", "0.1351", "0.4697", "0.1351", "0.4697", "0.1459", "0.1732", "0.1459" ], [ "0.1748", "0.154", "0.824", "0.154", "0.824", "0.1674", "0.1748", "0.1674" ], [ "0.1732", "0.1674", "0.3635", "0.1674", "0.3635", "0.1812", "0.1732", "0.1812" ], [ "0.1765", "0.1812", "0.826", "0.1812", "0.826", "0.1957", "0.1765", "0.1957" ], [ "0.1748", "0.1957", "0.824", "0.1957", "0.824", "0.209", "0.1748", "0.209" ], [ "0.1748", "0.2102", "0.824", "0.2102", "0.824", "0.2235", "0.1748", "0.2235" ], [ "0.1748", "0.2235", "0.824", "0.2235", "0.824", "0.2374", "0.1748", "0.2374" ], [ "0.1748", "0.2393", "0.3694", "0.2393", "0.3694", "0.25", "0.1748", "0.25" ], [ "0.1732", "0.2588", "0.8228", "0.2588", "0.8228", "0.2727", "0.1732", "0.2727" ], [ "0.1732", "0.2727", "0.824", "0.2715", "0.824", "0.286", "0.1732", "0.2874" ], [ "0.1748", "0.2874", "0.824", "0.2874", "0.824", "0.3005", "0.1748", "0.3005" ], [ "0.1732", "0.3005", "0.824", "0.3005", "0.824", "0.3145", "0.1732", "0.3145" ], [ "0.1748", "0.3145", "0.778", "0.3145", "0.778", "0.3276", "0.1748", "0.3276" ], [ "0.1748", "0.3352", "0.824", "0.3352", "0.824", "0.3484", "0.1748", "0.3484" ], [ "0.1748", "0.3499", "0.826", "0.3499", "0.826", "0.363", "0.1748", "0.363" ], [ "0.1748", "0.363", "0.824", "0.363", "0.824", "0.377", "0.1748", "0.377" ], [ "0.1765", "0.379", "0.4182", "0.379", "0.4182", "0.3894", "0.1765", "0.3894" ], [ "0.1748", "0.3984", "0.824", "0.3984", "0.824", "0.4124", "0.1748", "0.4124" ], [ "0.1724", "0.411", "0.824", "0.4124", "0.824", "0.4268", "0.1724", "0.4255" ], [ "0.1732", "0.4268", "0.5024", "0.4268", "0.5024", "0.44", "0.1732", "0.44" ], [ "0.1765", "0.4673", "0.1896", "0.4673", "0.1896", "0.4792", "0.1765", "0.4792" ], [ "0.2018", "0.4673", "0.3423", "0.4673", "0.3423", "0.481", "0.2018", "0.481" ], [ "0.1748", "0.502", "0.8228", "0.502", "0.8228", "0.515", "0.1748", "0.515" ], [ "0.1748", "0.5166", "0.824", "0.5166", "0.824", "0.53", "0.1748", "0.53" ], [ "0.1732", "0.529", "0.8228", "0.529", "0.8228", "0.5425", "0.1732", "0.5425" ], [ "0.1748", "0.5435", "0.824", "0.5435", "0.824", "0.5566", "0.1748", "0.5566" ], [ "0.1748", "0.558", "0.8267", "0.558", "0.8267", "0.5713", "0.1748", "0.5713" ], [ "0.1748", "0.5713", "0.824", "0.5713", "0.824", "0.5854", "0.1748", "0.5854" ], [ "0.1748", "0.5854", "0.824", "0.5854", "0.824", "0.5986", "0.1748", "0.5986" ], [ "0.1732", "0.5986", "0.8228", "0.5986", "0.8228", "0.6123", "0.1732", "0.6123" ], [ "0.1748", "0.6123", "0.824", "0.6123", "0.824", "0.6255", "0.1748", "0.6255" ], [ "0.1748", "0.6255", "0.824", "0.6255", "0.824", "0.64", "0.1748", "0.64" ], [ "0.1748", "0.64", "0.824", "0.64", "0.824", "0.654", "0.1748", "0.654" ], [ "0.1732", "0.653", "0.824", "0.653", "0.824", "0.6665", "0.1732", "0.6665" ], [ "0.1732", "0.6675", "0.826", "0.6665", "0.826", "0.681", "0.1732", "0.6816" ], [ "0.1748", "0.6816", "0.826", "0.6816", "0.826", "0.696", "0.1748", "0.696" ], [ "0.1765", "0.6978", "0.8228", "0.6978", "0.8228", "0.7085", "0.1765", "0.7085" ], [ "0.1748", "0.7104", "0.824", "0.7104", "0.824", "0.7236", "0.1748", "0.7236" ], [ "0.1732", "0.7227", "0.8037", "0.7227", "0.8037", "0.7363", "0.1732", "0.7363" ], [ "0.1748", "0.744", "0.824", "0.744", "0.824", "0.7583", "0.1748", "0.7583" ], [ "0.1748", "0.759", "0.824", "0.759", "0.824", "0.773", "0.1748", "0.773" ], [ "0.1748", "0.773", "0.824", "0.773", "0.824", "0.786", "0.1748", "0.786" ], [ "0.1748", "0.786", "0.824", "0.786", "0.824", "0.8", "0.1748", "0.8" ], [ "0.1748", "0.8", "0.824", "0.8", "0.824", "0.813", "0.1748", "0.813" ], [ "0.1732", "0.813", "0.824", "0.8125", "0.824", "0.827", "0.1732", "0.8276" ], [ "0.1748", "0.8276", "0.824", "0.8276", "0.824", "0.8413", "0.1748", "0.8413" ], [ "0.1732", "0.8413", "0.824", "0.8413", "0.824", "0.855", "0.1732", "0.855" ], [ "0.1748", "0.856", "0.824", "0.856", "0.824", "0.869", "0.1748", "0.869" ], [ "0.1748", "0.869", "0.824", "0.869", "0.824", "0.8833", "0.1748", "0.8833" ], [ "0.1748", "0.8833", "0.824", "0.8833", "0.824", "0.8965", "0.1748", "0.8965" ], [ "0.1748", "0.898", "0.824", "0.898", "0.824", "0.911", "0.1748", "0.911" ], [ "0.1732", "0.911", "0.824", "0.911", "0.824", "0.925", "0.1732", "0.925" ], [ "0.492", "0.9463", "0.5073", "0.9463", "0.5073", "0.962", "0.492", "0.962" ] ]
[ "performance than all previous methods in classifying and segmenting objects represented as neural", "fields, almost on par with established architectures that operate on explicit representations, without", "sacrificingtherepresentationquality(Fig.).", "Summary of our contributions. Code available at https://github.com/cvLAB-Unibo/", "triplane_processing", ". We set forth the new research problem of solving tasks by directly processing tri-plane neural fields.", "We show that the discrete features encode rich semantic and geometric information, which can be", "elaborated by applying well-established architectures. Moreover, we note how similar information is", "stored in tri-planes with different initializations of the same shape. Yet, the information is organized", "withdifferentchannel orders.", ". We show that applying well-established architectures on tri-planes achieves much better results than", "processing neural fields realized as a large MLP. Moreover, we reveal that employing architectures", "made invariant to the channel order improves performance in the challenging but more realistic", "scenario of randomly initialized neural fields. In this way, we almost close the gap between methods", "that operate on explicit representations and those working directly on neural representations.", ".To validate our results, we build a comprehensive benchmark for tri-plane neural field classification", "We test our method by classifying neural fields that model various fields (UDF, SDF, OF, RF).", "In particular, to the best of our knowledge, we are the first to classify NeRFs without explicitly", "reconstructingtherepresentedsignal", ". Finally, as the tri-plane structure is independent of the represented field, we train a single network", "to classify diverse neural fields. Specifically, we show promising preliminary results of a unique", "model capableof classifying UDF, SDF, and OF.", "2", "RELATEDWORK", "Neural fields. Recent approaches have shown the ability of MLPs to parameterize fields representing", "any physical quantity of interest (Xie et al., 2021). The works focusing on representing 3D data with", "MLPs rely on fitting functions such as the unsigned distance (Chibane et al., 2020), the signed distance", "(Park et al., 2019; Gropp et al., 2020; Sitzmann et al., 2019; Jiang et al., 2020; Peng et al., 2020), the", "occupancy (Mescheder et al., 2019; Chen & Zhang, 2019), or the scene radiance (Mildenhall et al.,", "2020a). Among these approaches, SIREN (Sitzmann et al., 2020) uses periodic activation functions", "to capture high-frequency details. Recently, hybrid representations, in which the MLP is paired with", "a discrete data structure, have been introduced within the vision and graphic communities motivated", "by faster inference (Reiser et al., 2021), better use of network capacity (Rebain et al., 2021) and", "suitability to editing tasks (Liu et al., 2020). These data structures decompose the input coordinate", "space, either regularly, such as for voxel grids (Reiser et al., 2021; Fridovich-Keil et al., 2022; Liu", "et al., 2020), tri-planes (Wang et al., 2023; Chan et al., 2022; Wu & Zheng, 2022; Hu et al., 2023),", "and 4D tensors (Chen et al., 2022), or irregularly, such as for point clouds (Tretschk et al., 2020),", "and meshes (Peng et al., 2021). Unlike these works, we do not focus on designing a neural field", "representation,butweinvestigatehowtodirectlyprocesshybridfieldsto solvetaskssuchas shape", "classification and 3D part segmentation. We focus on tri-planes due to their regular grid structure and", "compactness, which enable standard neural networks to process them seamlessly and effectively", "Neural functionals. Several very recent approaches aim at processing functions parameterized as", "MLPs by employing other neural networks. MLPs are known to exhibit weight space symmetries", "(Hecht-Nielsen, 1990), i.e., hidden neurons can be permuted across layers without changing the", "function represented by the network. Works such as DWSNet (Navon et al., 2023), NFN (Zhou", "et al., 2023a), and NFT (Zhou et al., 2023b) leverage weight space symmetries as an inductive", "bias to develop novel architectures designed to process MLPs. Both DWSNet and NFN devise", "neural layers equivariant to the permutations arising in MLPs. In contrast, NFT builds upon the", "intuition of achieving permutation equivariance by removing positional encoding from a Transformer", "architecture. Among the works processing MLPs, inr2vec (De Luigi et al., 2023) is the first that", "focuses specifically on MLPs representing 3D neural fields. It proposes a representation learning", "framework that compresses neural fields of 3D shapes into embeddings, which can then be used as", "input for downstream tasks. In the scenario addressed by inr2vec, DWSNet, NFN, and NFT, each", "neural field is parameterized by its own MLP. Differently, the framework proposed in Functa (Dupont", "3" ]
{ "arxiv_id": "2310.01140", "language": "en", "page_idx": 2 }
2310.01140-en-3
2310.01140-en-3.jpg
<FigureHere> Figure 2: Left: Tri-plane representation and learning of each neural field. Right: Datasets are composed of many independent tri-plane hybrid neural fields, each representing a 3D object. et al., 2022) relies on learning priors on the whole dataset with a shared network and then encoding each sample in a compact embedding. In this case, each neural field is parameterized by the shared network plus the embedding. In particular, Functa (Dupont et al., 2022) leverages meta-learning techniques to learn the shared network, which is modulated with latent vectors to represent each data point. Îhese vectors are then used to address both discriminative and generative tasks. It is worth pointing out that, though not originally proposed as a framework to process neural fields, DeepSDF (Park et al., 2019) learns dataset priors by optimizing a reconstruction objective through a shared auto-decoder network conditioned on a shape-specific embedding. Thus, as investigated in De Luigi et al.(2023), the embeddings learnt by DeepSDF may be used for neural processing tasks similar to Functa's. However, as noted in De Luigi et al. (2023), shared network frameworks are problematic, as they cannot reconstruct the underlying signal with high fidelity and need a whole dataset to learn the neural field of an object. Thus, akin to inr2vec, DWSNet, NFN, and NFT, we adopt the setting in which an individual network represents each sample in a dataset, as it is easier to deploy in the wild and thus more likely to become the standard practice in neural field processing. Unlike all previous works, however, we process hybrid neural fields that combine an MLP with a discrete spatial data structure. By only processing the discrete component, we circumvent the issues arising from directly processing MLP weights and obtain remarkable performance. 3 TRI-PLANE HYBRID NEURAL FIELDS ## 3.1 PRELIMINARIES Neural fields. A feld is a physical quantity defined for all domain coordinates. We focus on fields describing the 3D world, and thus on $\mathbb{R}^3$ coordinates $\mathbf{p}=(x,y,z).$ We consider the 3D fields commonly used in computer vision and graphics, i.e., the $SDF\left(\text{Parketal.,2019}\right)$ and $UDF\left(\text{Chibane}\right)$ et al., 2020), which map coordinates to the signed an unsigned distance from the closest surface, respectively, the $OF(\hat{\text{Mescheder et al., 2019), which computes the occupancy probability, and the}}$ $R\hat{F}\left(\text{Mildenhall et al., 2020b), that outputs }(\bar{R},G,B\right)\hat{\text{colors and density }\sigma}.$ A field can be modelled by a function, $\Phi$, parameterized by $\theta.$ Thus, for any point p, the field is given by $\hat{\mathbf{q}}=\Phi(\mathbf{p};\theta).$ If parameters $\theta$ are the weights of a neural network, $\Phi$ is said to be a neural field. On the other hand, if some of the parameters are the weights of a neural network, whereas the rest encode local information within a discrete spatial structure, $\Phi$ is a hybrid neural field (Xie et al., 2021). Tri-plane representation. A special case of hybrid neural fields, originally proposed in Chan et al. (2022), is parameterized by a discrete tri-plane feature map, $T$, and a small MLP network, $M$ (Fig. 2, left). $T$ consists of three orthogonal 2D feature maps, $T=(\mathbf{F}_{xy},\mathbf{F}_{xz},\mathbf{F}_{yz})$, with $\mathbf{F}_{xy},\mathbf{F}_{xz},\mathbf{F}_{yz}\in\mathbb{R}^{C\times H\times W}$,where $C$ is the number of channels and$W,H$ are the spatial dimensions of the feature maps. The feature vector associated with a 3D point, p, is computed by projecting the point onto the three orthogonal planes so to get the 2D coordinates, p$_xy,\mathbf{p}_{xz}$,and $\mathbf{p}_yz$,relative to each plane. Then, the four feature vectors corresponding to the nearest neighbours in each plane are bi-linearly interpolated to calculate three feature vectors, $\mathbf{f}_{xy},\mathbf{f}_{xz}$, and $\tilde{\mathbf{f}}_{yz},\tilde{\mathbf{which~are~summed}}$ up element-wise to obtain $\mathbf{f}=\mathbf{f}_{xy}+\mathbf{f}_{xz}+\mathbf{f}_{yz},\mathbf{f}\in\mathbb{R}^C.$ Finally, we concatenate f with a positional encoding (Mildenhall et al., 2020b), PE, of the 3D point p and feed it to the MLP, which in turn outputs the field value at $\mathbf{p}:\hat{\mathbf{q}}=\Phi(\mathbf{p};\theta)=M([\mathbf{f},\mathbf{PE}]).$ We implement $M$ with sin activation functions (Sitzmann et al., 2020) to better capture high-frequency details. 4
[ [ "0.6543", "0.1067", "0.675", "0.1067", "0.675", "0.11426", "0.6543", "0.11426" ], [ "0.6543", "0.11554", "0.6914", "0.11554", "0.6914", "0.1225", "0.6543", "0.1225" ], [ "0.7485", "0.10986", "0.7607", "0.10986", "0.7607", "0.113", "0.7485", "0.113" ], [ "0.6543", "0.127", "0.6953", "0.127", "0.6953", "0.1338", "0.6543", "0.1338" ], [ "0.6665", "0.1572", "0.6807", "0.1572", "0.6807", "0.1604", "0.6665", "0.1604" ], [ "0.1765", "0.2374", "0.824", "0.2374", "0.824", "0.252", "0.1765", "0.252" ], [ "0.1765", "0.254", "0.778", "0.254", "0.778", "0.2644", "0.1765", "0.2644" ], [ "0.1732", "0.2922", "0.822", "0.2935", "0.822", "0.308", "0.1732", "0.307" ], [ "0.1748", "0.308", "0.8228", "0.308", "0.8228", "0.3213", "0.1748", "0.3213" ], [ "0.1748", "0.3225", "0.8228", "0.3225", "0.8228", "0.336", "0.1748", "0.336" ], [ "0.1748", "0.336", "0.824", "0.336", "0.824", "0.3499", "0.1748", "0.3499" ], [ "0.1732", "0.351", "0.8228", "0.3499", "0.8228", "0.363", "0.1732", "0.3643" ], [ "0.1765", "0.3643", "0.8228", "0.3643", "0.8228", "0.3774", "0.1765", "0.3774" ], [ "0.1765", "0.379", "0.8228", "0.379", "0.8228", "0.3894", "0.1765", "0.3894" ], [ "0.1748", "0.3914", "0.8228", "0.3914", "0.8228", "0.4048", "0.1748", "0.4048" ], [ "0.1748", "0.4048", "0.826", "0.4048", "0.826", "0.4185", "0.1748", "0.4185" ], [ "0.1765", "0.4204", "0.824", "0.4204", "0.824", "0.4312", "0.1765", "0.4312" ], [ "0.1748", "0.433", "0.8228", "0.433", "0.8228", "0.4463", "0.1748", "0.4463" ], [ "0.1748", "0.4463", "0.8228", "0.4463", "0.8228", "0.4602", "0.1748", "0.4602" ], [ "0.1765", "0.4622", "0.824", "0.4622", "0.824", "0.473", "0.1765", "0.473" ], [ "0.1748", "0.4749", "0.824", "0.4749", "0.824", "0.488", "0.1748", "0.488" ], [ "0.1748", "0.488", "0.824", "0.488", "0.824", "0.502", "0.1748", "0.502" ], [ "0.1748", "0.5024", "0.824", "0.5024", "0.824", "0.5166", "0.1748", "0.5166" ], [ "0.1748", "0.5166", "0.58", "0.5166", "0.58", "0.53", "0.1748", "0.53" ], [ "0.1748", "0.552", "0.1936", "0.552", "0.1936", "0.5645", "0.1748", "0.5645" ], [ "0.2009", "0.55", "0.5073", "0.5503", "0.5073", "0.565", "0.2009", "0.5645" ], [ "0.1732", "0.582", "0.2157", "0.582", "0.2157", "0.5967", "0.1732", "0.5967" ], [ "0.2091", "0.584", "0.327", "0.584", "0.327", "0.5947", "0.2091", "0.5947" ], [ "0.1748", "0.608", "0.8228", "0.608", "0.8228", "0.622", "0.1748", "0.622" ], [ "0.1748", "0.6226", "0.824", "0.6226", "0.824", "0.637", "0.1748", "0.637" ], [ "0.1765", "0.638", "0.8228", "0.638", "0.8228", "0.6484", "0.1765", "0.6484" ], [ "0.1748", "0.651", "0.826", "0.651", "0.826", "0.664", "0.1748", "0.664" ], [ "0.1748", "0.664", "0.8228", "0.664", "0.8228", "0.678", "0.1748", "0.678" ], [ "0.1765", "0.6797", "0.8228", "0.6797", "0.8228", "0.69", "0.1765", "0.69" ], [ "0.1748", "0.6924", "0.826", "0.6924", "0.826", "0.7056", "0.1748", "0.7056" ], [ "0.1765", "0.7085", "0.824", "0.7085", "0.824", "0.7183", "0.1765", "0.7183" ], [ "0.1765", "0.7217", "0.8228", "0.7217", "0.8228", "0.732", "0.1765", "0.732" ], [ "0.1732", "0.7344", "0.681", "0.7344", "0.681", "0.7476", "0.1732", "0.7476" ], [ "0.1748", "0.755", "0.8228", "0.755", "0.8228", "0.768", "0.1748", "0.768" ], [ "0.1748", "0.768", "0.824", "0.768", "0.824", "0.782", "0.1748", "0.782" ], [ "0.1748", "0.7827", "0.824", "0.7827", "0.824", "0.7974", "0.1748", "0.7974" ], [ "0.1724", "0.7925", "0.826", "0.7925", "0.826", "0.813", "0.1724", "0.813" ], [ "0.1748", "0.811", "0.822", "0.8125", "0.822", "0.8257", "0.1748", "0.8247" ], [ "0.1732", "0.8247", "0.824", "0.8257", "0.824", "0.8403", "0.1732", "0.839" ], [ "0.1748", "0.8403", "0.8228", "0.8403", "0.8228", "0.854", "0.1748", "0.854" ], [ "0.1765", "0.856", "0.8228", "0.856", "0.8228", "0.866", "0.1765", "0.866" ], [ "0.1748", "0.8687", "0.824", "0.8687", "0.824", "0.882", "0.1748", "0.882" ], [ "0.1765", "0.884", "0.822", "0.884", "0.822", "0.8945", "0.1765", "0.8945" ], [ "0.1748", "0.8965", "0.824", "0.8965", "0.824", "0.91", "0.1748", "0.91" ], [ "0.1748", "0.911", "0.6543", "0.911", "0.6543", "0.925", "0.1748", "0.925" ], [ "0.5", "0.9463", "0.5107", "0.955", "0.5", "0.9634", "0.4885", "0.955" ] ]
[ "雪:R", "SDF/UDF/O", "pat", "RJR", "D-:", "Figure 2: Left: Tri-plane representation and learning of each neural field. Right: Datasets are", "composedofmanyindependenttri-planehybridneuralfields,eachrepresentinga3Dobject", "et al., 2022) relies on learning priors on the whole dataset with a shared network and then encoding", "each sample in a compact embedding. In this case, each neural field is parameterized by the shared", "network plus the embedding. In particular, Functa (Dupont et al., 2022) leverages meta-learning", "techniques to learn the shared network, which is modulated with latent vectors to represent each data", "point. These vectors are then used to address both discriminative and generative tasks. It is worth", "pointing out that, though not originally proposed as a framework to process neural fields, DeepsDF", "(Parket al.,20i9)learns datasetpriors by optimizing areconstruction objectivethrougha shared", "auto-decoder network conditioned on a shape-specific embedding. Thus, as investigated in De Luigi", "et al. (2023), the embeddings learnt by DeepSDF may be used for neural processing tasks similar to", "Functa's.However,asnotedinDeLuigietal.(2023),sharednetworkframeworksareproblematic.", "as they cannot reconstruct the underlying signal with high fidelity and need a whole dataset to learn", "the neural field of an object. Thus, akin to inr2vec, DWSNet, NFN, and NFT, we adopt the setting in", "whichanindividual networkrepresentseachsampleinadataset,asitis easiertodeployinthewild", "and thus more likely to become the standard practice in neural field processing. Unlike all previous", "works, however, we process hybrid neural fields that combine an MLP with a discrete spatial data", "structure. By only processing the discrete component, we circumvent the issues arising from directly", "processing MLP weights and obtain remarkable performance.", "3 ", "TRI-PLANEHYBRIDNEURALFIELDS", "3.1", "PRELIMINARIES", "Neural fields. A field is a physical quantity defined for all domain coordinates. We focus on fields", "describing the 3D world, and thus on R3 coordinates p = (α, y, z). We consider the 3D fields", "commonlyusedincomputervisionand graphics,i.e..theSDF(Parketal..2Oi9)andUDF(Chibane", "et al., 2020), which map coordinates to the signed an unsigned distance from the closest surface,", "respectively, the OF (Mescheder et al., 2019), which computes the occupancy probability, and the", "RF(Mildenhalletal..202Ob),thatoutputs(R.G.B)colorsand densityg.Afield canbemodelled", "by a function, Φ, parameterized by 0. Thus, for any point p, the field is given by q = (p; ). If", "parameters aretheweights of aneural network,@ is saidtobe a neural field.On the otherhand, if", "some oftheparameters aretheweights of aneural network,whereastherest encodelocal information", "within a discrete spatial structure, is a hybrid neural field (Xie et al., 2021).", "Tri-plane representation. A special case of hybrid neural fields, originally proposed in Chan", "et al. (2022), is parameterized by a discrete tri-plane feature map, T, and a small MLP network.", "M (Fig. 2, left). T consists of three orthogonal 2D feature maps, T = (Fry,Fz,Fyz), with", "Fry,FyCHW,whereCis thenumbrchannels and W arethespatialdmens", "of the feature maps. The feature vector associated with a 3D point, p, is computed by projecting", "the point onto the three orthogonal planes so to get the 2D coordinates, Pry, Prz, and Pyz, relative", "to each plane. Then, the four feature vectors corresponding to the nearest neighbours in each plane", "arebi-linearlyinterpolatedtocalculatethreefeaturevectors,fru,frz,andfuz,whicharesummed", "up element-wise to obtain f = fru + fz +fuz,f e RC.Finally, we concatenate f with a positional", "encoding(Mildenhall et al.,202Ob),PE.of the3D point p andfeed it to theMLP.which inturn", "outputs the field value at p: q = (p; 0) = M([f, PE)). We implement M with sin activation", "functions (Sitzmann et al., 2020) to better capture high-frequency details.", "X" ]
{ "arxiv_id": "2310.01140", "language": "en", "page_idx": 3 }
2310.01140-en-4
2310.01140-en-4.jpg
<table> <tbody> <tr> <th rowspan="2">Method</th> <th rowspan="2">Type</th> <th rowspan="2">并 Params $(\mathbf{K})$</th> <th colspan="2">Mesh from SDF</th> <th colspan="2">Point t Cloud from 1 a UDF</th> </tr> <tr> <th>$CD$ (mm) I</th> <th>F- score $(\%)$</th> <th>$CD$ )(mm) 1</th> <th>F-score $(\%$</th> </tr> <tr> <td>inr2vec(De Luigi et al., 2023)</td> <td>Single</td> <td>800</td> <td>0.26</td> <td>69.7</td> <td>0.21</td> <td>65.5</td> </tr> <tr> <td>Tri- plane</td> <td>Single</td> <td>64</td> <td>0.18</td> <td>68.6</td> <td>0.24</td> <td>60.7</td> </tr> <tr> <td>Tri- plane</td> <td>Shared</td> <td>64</td> <td>1.57</td> <td>42.9</td> <td>3.45</td> <td>33.3</td> </tr> <tr> <td>DeepSDF( (Park et al..2019)</td> <td>Shared</td> <td>2400</td> <td>6.6</td> <td>25.1</td> <td>5.6</td> <td>5.7</td> </tr> <tr> <td>Functa (Dupont et al., 2022)</td> <td>Shared</td> <td>7091</td> <td>2.85</td> <td>21.3</td> <td>12.8</td> <td>5.8</td> </tr> </tbody> </table> Table l: Results of mesh and point cloud reconstruction on the Manifold40 test set.“Single”and “Shared” indicate neural fields trained on each shape independently or on the whole dataset. Learning tri-planes. To learn a field, we optimize a $(T,M)$ pair foreach 3D object, starting from randomly initialized parameters, $\theta$, for both $M$ and $T.$ We sample $N\text{points p}_i$ and feed them to $T$ and $M$ to compute the corresponding field quantities $\hat{\mathbf{q}}_i=\Phi(\mathbf{p}_i;\theta).$ Then, we optimize $\theta$ with a loss, $\mathcal{L} , \hat {\text{capturing the discrepancy between the predicted fields }\hat{\mathbf{q} } _i}$ and the ground truth y$_i,\hat{\text{applying}}$ an optional mapping between the output and the available supervision if needed (e.g., volumetric rendering in case of $RF).$ An overview of this procedure is shown on the left of Fig. 2 and described in detail in Appendix A. We repeat this process for each 3D shape of a dataset, thereby creating a dataset of tri-plane hybrid neural fields (Fig.2,right). We set $C$ to 16 and both $H$ and $W$ to 32. We use MLPs with three hidden layers, each having 64 neurons. We note that our proposal is independent of the learning procedure, and, in a scenario in which neural fields are a standard 3D data representation, we would already have datasets available. ## 3.2 TRI-PLANE ANALYSIS We investigate here the benefits of tri-planes for 3D data representation and neural processing. Firstly, we assess their reconstruction capability, which is crucial in a world where neural fields may be used as a standard way to represent $\hat{3}$D assets. Secondly, we analyze the information learned in the 2D planes and how to be robust to the random initialization problem when handling tri-planes. Reconstruction quality. We assess the tri-plane reconstruction performance by following the benchmark introduced in De Luigi et al. (2023). In Table 1, we present the quantitative outcomes obtained by fitting $SDF$s and $UDF$s from meshes and point clouds of the Manifold40 dataset (Hu et al., 2022). We compare with neural fields employed in inr2vec (De Luigi et al., 2023) and alternatives based on a shared architecture, such as DeepSDF (Park et al., 2019) and Functa (Dupont et al., 2022). Given the $SDF$ and $UDF$ felds learned by each framework, we reconstruct the explicit meshes and point clouds as described in Appendix B.1 and evaluate them against the ground-truths. To conduct $\hat{\textbf{this evaluation, we sample dense point clouds of 16,384 points from both the reconstructed and}}$ ground-truth shapes. We employ the Chamfer Distance (Fan et al., 2017) and the F-Score (Tatarchenko et al., 2019) to evaluate fidelity to ground-truths. As for meshes, the tri-planes representation stands out with the lowest Chamfer Distance (CD) (0.18 mm), indicating its excellent reconstruction quality despite the relatively small number of parameters (only 64K). For point clouds, tri-planes produce reconstructions slightly worse than inr2vec but still comparable, i.e., 0.21m vs 0.24mm CD.In Appendix B.2 (Fig. 10), we show reconstructions attained from tri-plane representations for various types of fields. Moreover, in agreement with the findings of De Luigi et al.(2023), Table 1 shows that shared network frameworks such as DeepSDF and Functa yield significantly worse performance in terms of reconstruction quality. We finally point out how sharing the MLP for all tri-planes is not as effective as learning individual neural fields (third vs second row). These results support our intuition that reconstruction quality mandates hybrid neural fields optimized individually on each data sample and highlight the importance of investigating the direct neural processing of these representations. In Appendix B.3 (Fig.5, Fig. 6), we show the reconstructions obtained by tri-planes and the other approaches considered in our evaluation. Tri-plane content. To investigate how to directly process tri-plane neural fields, we inspected the content of their discrete spatial structure by visualizing the features stored in a plane alongside the view of the object rendered from the vantage point corresponding to the plane. Examples of these visualizations are depicted in Fig. 3 (left) for various objects such as a car, an airplane, and a bottle. To visualize features as a single image, displayed by a $\nu iridis$ colormap, we take a sum across the feature channels at each spatial location. These visualizations show clearly that the tri-plane spatial structure learns the object shape, i.e., it contains information about its geometry. For this reason 5
[ [ "0.5317", "0.1048", "0.609", "0.1048", "0.609", "0.11615", "0.5317", "0.11615" ], [ "0.6406", "0.1042", "0.7534", "0.1042", "0.7534", "0.11743", "0.6406", "0.11743" ], [ "0.2402", "0.1187", "0.281", "0.1187", "0.281", "0.13", "0.2402", "0.13" ], [ "0.3938", "0.1187", "0.4207", "0.1187", "0.4207", "0.1307", "0.3938", "0.1307" ], [ "0.4387", "0.1187", "0.5024", "0.1187", "0.5024", "0.13", "0.4387", "0.13" ], [ "0.511", "0.1187", "0.562", "0.1187", "0.562", "0.13", "0.511", "0.13" ], [ "0.569", "0.1187", "0.63", "0.1187", "0.63", "0.13", "0.569", "0.13" ], [ "0.6396", "0.1187", "0.687", "0.1187", "0.687", "0.13", "0.6396", "0.13" ], [ "0.697", "0.1193", "0.7573", "0.1193", "0.7573", "0.13", "0.697", "0.13" ], [ "0.6006", "0.1288", "0.634", "0.1288", "0.634", "0.159", "0.6006", "0.159" ], [ "0.6587", "0.1288", "0.693", "0.1288", "0.693", "0.159", "0.6587", "0.159" ], [ "0.726", "0.1288", "0.761", "0.1288", "0.761", "0.1578", "0.726", "0.1578" ], [ "0.5337", "0.13", "0.5645", "0.13", "0.5645", "0.1572", "0.5337", "0.1572" ], [ "0.392", "0.1307", "0.429", "0.1307", "0.429", "0.1477", "0.392", "0.1477" ], [ "0.4805", "0.13", "0.5073", "0.13", "0.5073", "0.1578", "0.4805", "0.1578" ], [ "0.392", "0.1401", "0.4307", "0.1427", "0.429", "0.1572", "0.3906", "0.1547" ], [ "0.2402", "0.132", "0.3857", "0.132", "0.3857", "0.1459", "0.2402", "0.1459" ], [ "0.2418", "0.1414", "0.2852", "0.1433", "0.2834", "0.1547", "0.2402", "0.1528" ], [ "0.4714", "0.1515", "0.5107", "0.1515", "0.5107", "0.1925", "0.4714", "0.1925" ], [ "0.5317", "0.1528", "0.5664", "0.1528", "0.5664", "0.1913", "0.5317", "0.1913" ], [ "0.601", "0.1528", "0.636", "0.1528", "0.636", "0.1932", "0.601", "0.1932" ], [ "0.6587", "0.1528", "0.693", "0.1528", "0.693", "0.1913", "0.6587", "0.1913" ], [ "0.722", "0.1528", "0.761", "0.1509", "0.7656", "0.1913", "0.726", "0.1945" ], [ "0.392", "0.154", "0.4314", "0.1559", "0.4307", "0.1724", "0.3906", "0.1704" ], [ "0.2418", "0.1572", "0.286", "0.1572", "0.286", "0.1686", "0.2418", "0.1686" ], [ "0.2418", "0.1654", "0.3757", "0.1654", "0.3757", "0.1787", "0.2418", "0.1787" ], [ "0.3945", "0.1674", "0.4307", "0.1674", "0.4307", "0.1799", "0.3945", "0.1799" ], [ "0.2427", "0.1755", "0.3743", "0.1755", "0.3743", "0.1895", "0.2427", "0.1895" ], [ "0.3938", "0.1749", "0.429", "0.1768", "0.4272", "0.1895", "0.392", "0.1875" ], [ "0.1748", "0.202", "0.824", "0.202", "0.824", "0.2153", "0.1748", "0.2153" ], [ "0.1724", "0.2172", "0.7715", "0.2172", "0.7715", "0.2279", "0.1724", "0.2279" ], [ "0.1748", "0.2556", "0.824", "0.2556", "0.824", "0.2708", "0.1748", "0.2708" ], [ "0.1724", "0.2695", "0.822", "0.2695", "0.822", "0.2827", "0.1724", "0.2827" ], [ "0.1732", "0.2842", "0.8228", "0.2842", "0.8228", "0.2974", "0.1732", "0.2974" ], [ "0.1724", "0.2974", "0.824", "0.2986", "0.824", "0.3132", "0.1724", "0.3125" ], [ "0.1732", "0.3132", "0.824", "0.3132", "0.824", "0.327", "0.1732", "0.327" ], [ "0.1748", "0.327", "0.824", "0.327", "0.824", "0.3403", "0.1748", "0.3403" ], [ "0.1748", "0.3403", "0.826", "0.3403", "0.826", "0.3542", "0.1748", "0.3542" ], [ "0.1748", "0.3542", "0.824", "0.3542", "0.824", "0.3674", "0.1748", "0.3674" ], [ "0.1732", "0.3674", "0.824", "0.3674", "0.824", "0.3806", "0.1732", "0.3806" ], [ "0.1748", "0.3818", "0.8267", "0.3818", "0.8267", "0.3958", "0.1748", "0.3958" ], [ "0.1724", "0.3965", "0.4478", "0.3965", "0.4478", "0.4104", "0.1724", "0.4104" ], [ "0.1765", "0.4268", "0.2035", "0.4268", "0.2035", "0.4382", "0.1765", "0.4382" ], [ "0.2075", "0.4248", "0.3677", "0.4255", "0.3677", "0.44", "0.2075", "0.4395" ], [ "0.1724", "0.4526", "0.824", "0.4526", "0.824", "0.4666", "0.1724", "0.4666" ], [ "0.1732", "0.4666", "0.824", "0.4666", "0.824", "0.4797", "0.1732", "0.4797" ], [ "0.1732", "0.481", "0.824", "0.481", "0.824", "0.4944", "0.1732", "0.4944" ], [ "0.1732", "0.4944", "0.767", "0.4944", "0.767", "0.5083", "0.1732", "0.5083" ], [ "0.1748", "0.515", "0.824", "0.515", "0.824", "0.53", "0.1748", "0.53" ], [ "0.1748", "0.53", "0.824", "0.53", "0.824", "0.5435", "0.1748", "0.5435" ], [ "0.1748", "0.5435", "0.826", "0.5435", "0.826", "0.5566", "0.1748", "0.5566" ], [ "0.1748", "0.558", "0.826", "0.558", "0.826", "0.5713", "0.1748", "0.5713" ], [ "0.1748", "0.5713", "0.824", "0.5713", "0.824", "0.5854", "0.1748", "0.5854" ], [ "0.1748", "0.5854", "0.824", "0.5854", "0.824", "0.5986", "0.1748", "0.5986" ], [ "0.1748", "0.5996", "0.824", "0.5996", "0.824", "0.613", "0.1748", "0.613" ], [ "0.1748", "0.613", "0.822", "0.613", "0.822", "0.6235", "0.1748", "0.6235" ], [ "0.1748", "0.627", "0.826", "0.627", "0.826", "0.64", "0.1748", "0.64" ], [ "0.1748", "0.64", "0.826", "0.64", "0.826", "0.654", "0.1748", "0.654" ], [ "0.1748", "0.654", "0.824", "0.654", "0.824", "0.6675", "0.1748", "0.6675" ], [ "0.1748", "0.6685", "0.824", "0.6685", "0.824", "0.6816", "0.1748", "0.6816" ], [ "0.1748", "0.6816", "0.824", "0.6816", "0.824", "0.696", "0.1748", "0.696" ], [ "0.1748", "0.696", "0.824", "0.696", "0.824", "0.709", "0.1748", "0.709" ], [ "0.1748", "0.7104", "0.824", "0.7104", "0.824", "0.7236", "0.1748", "0.7236" ], [ "0.1748", "0.7236", "0.824", "0.7236", "0.824", "0.7373", "0.1748", "0.7373" ], [ "0.1732", "0.7363", "0.8228", "0.7363", "0.8228", "0.75", "0.1732", "0.75" ], [ "0.1748", "0.752", "0.824", "0.752", "0.824", "0.765", "0.1748", "0.765" ], [ "0.1748", "0.765", "0.824", "0.765", "0.824", "0.779", "0.1748", "0.779" ], [ "0.1765", "0.781", "0.8228", "0.781", "0.8228", "0.7915", "0.1765", "0.7915" ], [ "0.1732", "0.7925", "0.824", "0.7925", "0.824", "0.806", "0.1732", "0.806" ], [ "0.1732", "0.8066", "0.4412", "0.806", "0.4412", "0.8193", "0.1732", "0.821" ], [ "0.1748", "0.8276", "0.824", "0.8276", "0.824", "0.8413", "0.1748", "0.8413" ], [ "0.1748", "0.8413", "0.824", "0.8413", "0.824", "0.855", "0.1748", "0.855" ], [ "0.1748", "0.856", "0.824", "0.856", "0.824", "0.869", "0.1748", "0.869" ], [ "0.1748", "0.869", "0.8267", "0.869", "0.8267", "0.8833", "0.1748", "0.8833" ], [ "0.1732", "0.882", "0.824", "0.8833", "0.824", "0.8965", "0.1732", "0.896" ], [ "0.1748", "0.898", "0.824", "0.898", "0.824", "0.911", "0.1748", "0.911" ], [ "0.1732", "0.911", "0.824", "0.911", "0.824", "0.925", "0.1732", "0.925" ], [ "0.4944", "0.9443", "0.5107", "0.9478", "0.505", "0.9634", "0.4885", "0.9604" ] ]
[ "MeshfromSDF", "Point Cloud from UDF", "Method", "Type", "# Params (K)", "CD (mm)", "F-score (%)", "CD (mm)", "F-score (%)", "87", "824", "689", "8.78", "Single", "80", "Single", "inr2vec (De Luigi et al., 2023)", "Tri-planc", "", "", "", "", "1", "Shared", "Tri-plane", "DeepSDF (Park et al., 2019)", "Shared", "Functa (Dupont et al., 2022)", "Shared", "Table l: Results of mesh and point cloud reconstruction on the Manifold40 test set. \"Single\" and", "\"Sharedindicate neuralfieldstrained oneach shape independentlyor onthewholedataset", "Learning tri-planes. To learn a field, we optimize a (T, M) pair for each 3D object, starting from", "randomly initialized parameters, , for both M and T. We sample N points p, and feed them to T", "and M to compute the corresponding field quantities qi = (pi; O). Then, we optimize with a", "loss, C, capturing the discrepancy between the predicted fields q and the ground truth yi, applying", "an optional mapping between the output and the available supervision if needed (e.g., volumetric", "rendering in case of RF). An overview of this procedure is shown on the left of Fig. 2 and described in", "detail in Appendix A. We repeat this process for each 3D shape of a dataset, thereby creating a dataset", "of tri-plane hybrid neural fields (Fig. 2, right). We set C to 16 and both H and W to 32. We use", "MLPs with three hidden layers, each having 64 neurons. We note that our proposal is independent of", "the learning procedure, and, in a scenario in which neural fields are a standard 3D data representation,", "wewouldalready havedatasets available.", "3.2", "TRI-PLANEANALYSIS", "We investigate here the benefits of tri-planes for 3D data representation and neural processing. Firstly", "we assess their reconstruction capability, which is crucial in a world where neural fields may be used", "as a standard way to represent 3D assets. Secondly, we analyze the information learned in the 2D", "planes and how to be robust to the random initialization problem when handling tri-planes.", "Reconstruction quality. We assess the tri-plane reconstruction performance by following the", "benchmark introduced in De Luigi et al. (2023). In Table 1, we present the quantitative outcomes", "obtained by fitting SDFs and UDFs from meshes and point clouds of the Manifold4O dataset (Hu et al.,", "2022).We comparewith neural fields employed in inr2vec (De Luigi et al., 2023)and alternatives", "based on a shared architecture, such as DeepSDF (Park et al., 2019) and Functa (Dupont et al., 2022)", "Given the SDF and UDF fields learned by each framework, we reconstruct the explicit meshes and", "point clouds as described in Appendix B.1 and evaluate them against the ground-truths. To conduct", "thisevaluation,we sampledensepointcloudsof16.384pointsfromboththereconstructedand", "ground-truth shapes. We employ the Chamfer Distance (Fan et al., 2017) and the F-Score (Tatarchenko", "et al., 2019) to evaluate fidelity to ground-truths. As for meshes, the tri-planes representation stands", "out with the lowest Chamfer Distance (CD) (0.18 mm), indicating its excellent reconstruction quality", "despite the relatively small number of parameters (only 64K). For point clouds, tri-planes produce", "reconstructions slightly worse than inr2vec but still comparable, i.e., 0.21m vs 0.24mm CD. In", "Appendix B.2 (Fig. 10), we show reconstructions attained from tri-plane representations for various", "types of fields. Moreover, in agreement with the findings of De Luigi et al. (2023), Table 1 shows that", "shared network frameworks such as DeepSDF and Functa yield significantly worse performance in", "terms of reconstruction quality. We finally point out how sharing the MLP for all tri-planes is not as", "effective as learning individual neural fields (third vs second row). These results support our intuition", "that reconstruction quality mandates hybrid neural fields optimized individually on each data sample", "andhighlighttheimportanceof investigatingthedirectneuralprocessingoftheserepresentations", "In Appendix B.3 (Fig. 5, Fig. 6), we show the reconstructions obtained by tri-planes and the other", "approachesconsideredinourevaluation.", "Tri-plane content. To investigate how to directly process tri-plane neural fields, we inspected the", "content of their discrete spatial structure by visualizing the features stored in a plane alongside the", "view of the object rendered from the vantage point corresponding to the plane. Examples of these", "visualizations are depicted in Fig. 3 (left) for various objects such as a car, an airplane, and a bottle.", "To visualize features as a single image, displayed by a viridis colormap, we take a sum across the", "feature channels at each spatial location. These visualizations show clearly that the tri-plane spatial", "structure learns the object shape, i.e., it contains information about its geometry. For this reason", "5" ]
{ "arxiv_id": "2310.01140", "language": "en", "page_idx": 4 }
2305.19094-en-0
2305.19094-en-0.jpg
$\underline{\text{Published as a conference paper at ICLR 2024}}$ DIFFUSION MODEL FOR DENSE MATCHING ## Jisu Nam Gyuseong Lee Sunwoo Kim Hyeonsu Kim Hyoungwon Cho Seyeon Kim Seungryong Kim Korea University ABSTRACT The objective for establishing dense correspondence between paired images consists of two terms: a data term and a prior term. While conventional techniques focused on defining hand-designed prior terms, which are difficult to formulate, recent approaches have focused on learning the data term with deep neural networks without explicitly modeling the prior, assuming that the model itself has the capacity to learn an optimal prior from a large-scale dataset. The performance improvement was obvious, however, they often fail to address inherent ambiguities of matching, such as textureless regions, repetitive patterns, large displacements, or noises. To address this, we propose DiffMatch, a novel conditional diffusion-based framework designed to explicitly model both the data and prior terms for dense matching. This is accomplished by leveraging a conditional denoising diffusion model that explicitly takes matching cost and injects the prior within generative process. However, $\dot{\text{limited input resolution of the diffusion model is a major hindrance. We address}}$ this with a cascaded pipeline, starting with a low-resolution model, followed by a super-resolution model that successively upsamples and incorporates finer details to the matching field. Our experimental results demonstrate significant performance improvements of our method over existing approaches, and the ablation studies $\hat{\text{validate our design choices along with the effectiveness of each component. Code}}$ and pretrained weights are available at https://ku-cvlab.github.io/DiffMatch. <FigureHere> (a) Source (b) Target (c) GLU-Net (d) GOCor (e) DiffMatch (f) Ground-truth Figure 1: Visualizing the effectiveness of the proposed DiffMatch: (a) source images, (b) target images, and warped source images using estimated correspondences by (c-d) state-of-the-art ap- proaches (Truong et al., 2020b;a), (e) our DiffMatch, and (f) ground-truth. Compared to previous $\hat{\text{methods (Truong et al., 2020b;a) that }discriminatively\text{ estimate correspondences, our diffusion-based}}$ generative framework effectively learns the matching field manifold, resulting in better estimating correspondences particularly at textureless regions, repetitive patterns, and large displacements. 1 INTRODUCTION Establishing pixel-wise correspondences between pairs of images has been one of the crucial problems, as it supports a wide range of applications, including structure from motion (SfM) (Schonberger & Frahm, 2016), simultaneous localization and mapping (SLAM) (Durrant-Whyte & Bailey, 2006; Bailey& Durrant-Whyte, 2006), image editing (Barnes et al., 2009; Cheng et al., 2010; Zhang et al., 2020), and video analysis (Hu et al., 2018; Lai & Xie, 2019). In contrast to sparse correspondence (Calonder et al., 2010; Lowe, 2004; Sarlin et al., 2020) which detects and matches only a 1
[ [ "0.1748", "0.03284", "0.4805", "0.03284", "0.4805", "0.04736", "0.1748", "0.04736" ], [ "0.1765", "0.101", "0.694", "0.1016", "0.694", "0.1193", "0.1765", "0.1187" ], [ "0.1854", "0.1459", "0.7173", "0.1459", "0.7173", "0.1604", "0.1854", "0.1604" ], [ "0.1847", "0.1604", "0.406", "0.1604", "0.406", "0.1749", "0.1847", "0.1749" ], [ "0.1847", "0.1749", "0.2974", "0.1749", "0.2974", "0.1881", "0.1847", "0.1881" ], [ "0.455", "0.226", "0.544", "0.226", "0.544", "0.2374", "0.455", "0.2374" ], [ "0.2336", "0.254", "0.584", "0.254", "0.584", "0.2676", "0.2336", "0.2676" ], [ "0.5786", "0.2556", "0.7656", "0.2556", "0.7656", "0.2664", "0.5786", "0.2664" ], [ "0.02287", "0.2664", "0.05963", "0.2664", "0.05963", "0.4072", "0.02287", "0.4072" ], [ "0.2345", "0.2676", "0.7656", "0.2676", "0.7656", "0.281", "0.2345", "0.281" ], [ "0.2345", "0.2827", "0.7646", "0.2827", "0.7646", "0.2935", "0.2345", "0.2935" ], [ "0.232", "0.2954", "0.7656", "0.2942", "0.7656", "0.308", "0.232", "0.3093" ], [ "0.2336", "0.3093", "0.7656", "0.3093", "0.7656", "0.3225", "0.2336", "0.3225" ], [ "0.2345", "0.3245", "0.7646", "0.3245", "0.7646", "0.3352", "0.2345", "0.3352" ], [ "0.2336", "0.3372", "0.7646", "0.3384", "0.7646", "0.3499", "0.2336", "0.3484" ], [ "0.2345", "0.351", "0.767", "0.351", "0.767", "0.3643", "0.2345", "0.3643" ], [ "0.2345", "0.3643", "0.767", "0.3643", "0.767", "0.3774", "0.2345", "0.3774" ], [ "0.2361", "0.3801", "0.7646", "0.3801", "0.7646", "0.3901", "0.2361", "0.3901" ], [ "0.2345", "0.3926", "0.767", "0.3926", "0.767", "0.406", "0.2345", "0.406" ], [ "0.0237", "0.401", "0.058", "0.401", "0.058", "0.4893", "0.0237", "0.4893" ], [ "0.2345", "0.4077", "0.7656", "0.4077", "0.7656", "0.4185", "0.2345", "0.4185" ], [ "0.2345", "0.4216", "0.763", "0.4216", "0.763", "0.432", "0.2345", "0.432" ], [ "0.2336", "0.4343", "0.7646", "0.4343", "0.7646", "0.4475", "0.2336", "0.4475" ], [ "0.2336", "0.4475", "0.7646", "0.4475", "0.7646", "0.461", "0.2336", "0.461" ], [ "0.2361", "0.4634", "0.7646", "0.4634", "0.7646", "0.4734", "0.2361", "0.4734" ], [ "0.02124", "0.481", "0.058", "0.481", "0.058", "0.711", "0.02124", "0.711" ], [ "0.2345", "0.476", "0.7656", "0.476", "0.7656", "0.4893", "0.2345", "0.4893" ], [ "0.2336", "0.4893", "0.7656", "0.4893", "0.7656", "0.5024", "0.2336", "0.5024" ], [ "0.232", "0.504", "0.728", "0.504", "0.728", "0.5176", "0.232", "0.5176" ], [ "0.3064", "0.6816", "0.3677", "0.6816", "0.3677", "0.6963", "0.3064", "0.6963" ], [ "0.4043", "0.6816", "0.486", "0.6797", "0.486", "0.6943", "0.4043", "0.6963" ], [ "0.5186", "0.6816", "0.5864", "0.681", "0.5864", "0.696", "0.5186", "0.6963" ], [ "0.621", "0.683", "0.706", "0.683", "0.706", "0.6943", "0.621", "0.6943" ], [ "0.7197", "0.6846", "0.818", "0.6846", "0.818", "0.696", "0.7197", "0.696" ], [ "0.1732", "0.6987", "0.8228", "0.6997", "0.8228", "0.714", "0.1732", "0.7134" ], [ "0.1978", "0.6846", "0.2607", "0.6846", "0.2607", "0.696", "0.1978", "0.696" ], [ "0.1765", "0.7163", "0.822", "0.7163", "0.822", "0.7266", "0.1765", "0.7266" ], [ "0.1732", "0.728", "0.822", "0.728", "0.822", "0.741", "0.1732", "0.741" ], [ "0.1748", "0.742", "0.824", "0.742", "0.824", "0.756", "0.1748", "0.756" ], [ "0.1732", "0.755", "0.8228", "0.756", "0.8228", "0.771", "0.1732", "0.7695" ], [ "0.1732", "0.771", "0.7983", "0.7695", "0.7983", "0.7827", "0.1732", "0.784" ], [ "0.179", "0.815", "0.1847", "0.815", "0.1847", "0.821", "0.179", "0.821" ], [ "0.1969", "0.811", "0.3367", "0.811", "0.3367", "0.8247", "0.1969", "0.8247" ], [ "0.1732", "0.8403", "0.824", "0.839", "0.824", "0.854", "0.1732", "0.855" ], [ "0.1732", "0.855", "0.824", "0.854", "0.824", "0.8687", "0.1732", "0.869" ], [ "0.1748", "0.869", "0.826", "0.869", "0.826", "0.8833", "0.1748", "0.8833" ], [ "0.1732", "0.882", "0.8228", "0.8833", "0.8228", "0.898", "0.1732", "0.8965" ], [ "0.1732", "0.896", "0.826", "0.8965", "0.826", "0.911", "0.1732", "0.91" ], [ "0.1732", "0.909", "0.826", "0.911", "0.826", "0.925", "0.1732", "0.9224" ] ]
[ "Published as a conference paper at ICLR 2024", "DIFFUSION MODEL FOR DENSE MATCHING", "Jisu Nam Gyuseong Lee Sunwoo Kim Hyeonsu Kim Hyoungwon Cho", "Seyeon KimSeungryong Kim", "Korea University", "ABSTRACT", "The objective for establishing dense correspondence", "betweenpairedimagescon-", "", "sists of two terms: a data term and a prior term. While conventional techniques", "focused on defininghand-designedpriorterms,whicharedifficulttoformulate,re", "cent approaches have focused on learning the data term with deep neural networks", "without explicitly modeling the prior, assuming that the model itself has the capacity", "tolearnanoptimalpriorfromalarge-scaledataset.Theperformanceimprovement", "was obvious,however,they oftenfail to address inherent ambiguities of matching", "such as textureless regions, repetitive patterns, large displacements, or noises. To", "address this, we propose DiffMatch, a novel conditional diffusion-based framework", "designedtoexplicitlymodelboththedataandpriortermsfordensematching.This", "is accomplished by leveraging a conditional denoising diffusion model that explic-", "['S]", "itlytakesmatchingcostand injectsthepriorwithingenerativeprocess.However.", "limitedinputresolutionofthediffusionmodelisamajorhindrance.Weaddress", "this with a cascaded pipeline, starting with a low-resolution model, followed by a", "super-resolution model that successively upsamples and incorporates finer details to", "thematchingfield.Ourexperimentalresultsdemonstratesignificantperformance", "100", "improvements of our method over existing approaches, and the ablation studies", "validate our design choices along with the effectiveness of each component. Code", "and pretrained weights are available at https://ku-cvlab.github.io/DiffMatch.", "(b) Target", "(c) GLU-Net", "(d) GOCor", "(e) DiffMatch", "(f) Ground-truth", "Figure l: Visualizing the effectiveness of the proposed DiffMatch: (a) source images, (b) target", "(a) Source", "images,andwarpedsourceimagesusing estimatedcorrespondencesby(c-d)state-of-the-artap", "proaches (Truong et al., 202ob;a), (e) our DiffMatch, and (f) ground-truth. Compared to previous", "methods (Truong et al., 202Ob;a) that discriminatively estimate correspondences, our diffusion-based", "generative framework effectively learns the matching field manifold, resulting in better estimating", "correspondences particularly at textureless regions, repetitive patterns, and large displacements.", "1", "INTRODUCTION", "Establishing pixel-wise correspondences between pairs of images has been one of the crucial prob-", "lems, as it supports a wide range of applications, including structure from motion (SfM) (Schonberger", "& Frahm, 2016), simultaneous localization and mapping (SLAM) (Durrant-Whyte & Bailey,2006;", "Bailey & Durrant-Whyte, 2006), image editing (Barnes et al., 2009; Cheng et al., 2010; Zhang", "et al., 2020), and video analysis (Hu et al., 2018; Lai & Xie, 2019). In contrast to sparse correspon-", "dence(Calonder et al.,2010:Lowe,2004; Sarlin et al.,2020)which detects and matches only a" ]
{ "arxiv_id": "2305.19094", "language": "en", "page_idx": 0 }
2305.19094-en-1
2305.19094-en-1.jpg
$\underline{\text{Published as a conference paper at ICLR 2024}}$ sparse set of key points, dense correspondence (Pérez et al., 2013; Rocco et al., 2017; Kim et al., $\hat{20}18;$Cho et al., $\hat{2021})$ aims to match all the points between input images. In the probabilistic interpretation, the objective for dense correspondence can be defined with a data term, measuring matching evidence between source and target features, and a prior term, encoding prior knowledge of correspondence. Traditional methods (Pérez et al., 2013; Drulea& Nedevschi, $\hat{2}011;\tilde{\text{Werlbergeretal., 2010; Lhuillier }\&}$Quan, 2000; Liu et al., 2010; Ham et al., 2016) explicitly incorporated hand-designed prior terms to achieve smoother correspondence, such as total variation (TV) or image discontinuity-aware smoothness. However, the formulation of the hand-crafted prior term is notoriously challenging and may vary depending on the specific dense correspondence tasks, such as geometric matching (Liu et al., 2010; Duchenne et al., 2011; Kim et al., 2013) or optical flow (Weinzaepfel et al., 2013; Revaud et al., 2015). Unlike them, recent approaches (Kim et al., 2017a; Sun et al., 2018; Rocco et al., 2017; 2020; Truong et al., 2020b; Min & Cho, 2021; Kim et al., 2018; Jiang et al., 2021; Cho et al., 2021; 2022) have focused on solely learning the data term with deep neural networks. However, despite demonstrating certain performance improvements, these methods still struggle with effectively addressing the inherent ambiguities encountered in dense correspondence, including challenges posed by textureless regions, repetitive patterns, large displacements, $\hat{\text{or noises.We arguethatitisbecausethey}}$ concentrate on maximizing the likelihood, which corresponds to learning the data term only, and do not explicitly consider the matching prior. This limits their ability to learn ideal matching field manifold, and leads to poor generalization. On the other hand, diffusion models (Ho et al., 2020; Song et al., 2020a; Song & Ermon, 2019; Song et al., 2020b) have recently demonstrated a powerful capability for learning posterior distribution and have achieved considerable success in the field of generative models (Karras et al., 2020). Building on these advancements, recent studies (Rombach et al., 2022; Seo et al., 2023; Saharia et al., 2022a; Lugmayr et al., 2022) have focused on controllable image synthesis by leveraging external conditions. Moreover, these advances in diffusion models have also led to successful applications in numerous discriminative tasks, such as depth estimation (Saxena et al., 2023b; Kim et al., 2022; Duan et al., 2023),object detection (Chen et al., 2022a), segmentation (Gu et al., 2022; Giannone et al., 2022), and human pose estimation (Holmquist &Wandt, 2022). Inspired by the recent success of the diffusion model (Ho et al., 2020; Song et al., 2020a; Song & Ermon, 2019; Song et al., 2020b), we introduce DiffMatch, a conditional diffusion-based framework designed to explicitly model the matching freld distribution within diffusion process. Unlike existing discriminative learning-based methods (Kim et al., 2017a; Jiang et al., 2021; Rocco et al., 2017; 2020; Teed & Deng, 2020) that focus solely on maximizing the $likelihood$, DiffMatch aims to learn the posterior distribution of dense correspondence. Specifically, this is achieved by a conditional denoising diffusion model designed to learn how to generate a correspondence field given feature descriptors as conditions. However, limited input resolution of the diffusion model is a significant hindrance. To address this, we adopt a cascaded diffusion pipeline, starting with a low-resolution diffusion model, and then transitioning to a super-resolution diffusion model that successively upsamples the matching field and incorporates higher-resolution details. We evaluate the effectiveness of DiffMatch using several standard benchmarks (Balntas et al., 2017; Schops et al., 2017), and show the robustness of our model with the corrupted datasets (Hendrycks & Dietterich, 2019; Balntas et al., 2017; Schops et al., 2017). We also conduct extensive ablation studies to validate our design choices and explore the effectiveness of each component. ## 2 RELATED WORK Dense correspondence. Traditional methods for dense correspondence (Horn&Schunck, 1981; Lucas & Kanade, 1981) relied on hand-designed matching priors. Several techniques (Sun et al., 2010; Brox & Malik, 2010; Liu et al., 2010; Taniai et al., 2016; Kim et al., 2017b; Ham et al. 2016; Kim et al., 2013) introduced optimization methods, such as SIFT Flow (Liu et al., 2010), which designed smoothness and small displacement priors, and DCTM (Kim et al., 2017b), which introduced a discontinuity-aware prior term. However, manually designing the prior term is difficult. To address this, recent approaches (Dosovitskiy et al., 2015; Kocco et al., 2017; Shen et al., 2019; Melekhov et al., 2019; Ranjan & Black, 2017; Teed & Deng, 2020; Sun et al., 2018; Truong et al., 2
[ [ "0.1732", "0.03284", "0.4805", "0.0322", "0.4805", "0.04672", "0.1732", "0.04736" ], [ "0.1732", "0.1048", "0.826", "0.1042", "0.826", "0.1187", "0.1732", "0.1193" ], [ "0.1748", "0.1193", "0.661", "0.1193", "0.661", "0.1332", "0.1748", "0.1332" ], [ "0.1732", "0.1401", "0.824", "0.1401", "0.824", "0.154", "0.1732", "0.154" ], [ "0.1732", "0.154", "0.8228", "0.154", "0.8228", "0.1674", "0.1732", "0.1674" ], [ "0.1748", "0.1686", "0.824", "0.1686", "0.824", "0.1818", "0.1748", "0.1818" ], [ "0.1748", "0.1818", "0.824", "0.1818", "0.824", "0.1957", "0.1748", "0.1957" ], [ "0.1765", "0.1976", "0.822", "0.1976", "0.822", "0.2084", "0.1765", "0.2084" ], [ "0.1748", "0.2102", "0.824", "0.2102", "0.824", "0.2235", "0.1748", "0.2235" ], [ "0.1748", "0.2235", "0.826", "0.2235", "0.826", "0.2374", "0.1748", "0.2374" ], [ "0.1724", "0.2361", "0.826", "0.2374", "0.826", "0.252", "0.1724", "0.2507" ], [ "0.1732", "0.252", "0.5146", "0.252", "0.5146", "0.2651", "0.1732", "0.2651" ], [ "0.1708", "0.2695", "0.826", "0.2708", "0.826", "0.2886", "0.1708", "0.2874" ], [ "0.1748", "0.286", "0.824", "0.286", "0.824", "0.2998", "0.1748", "0.2998" ], [ "0.1732", "0.2986", "0.8228", "0.3005", "0.8228", "0.3145", "0.1732", "0.3125" ], [ "0.1748", "0.3145", "0.824", "0.3145", "0.824", "0.3276", "0.1748", "0.3276" ], [ "0.1732", "0.3276", "0.824", "0.3276", "0.824", "0.3416", "0.1732", "0.3416" ], [ "0.1732", "0.3416", "0.824", "0.3416", "0.824", "0.3547", "0.1732", "0.3547" ], [ "0.1732", "0.356", "0.824", "0.356", "0.824", "0.3694", "0.1732", "0.3694" ], [ "0.1732", "0.3687", "0.8228", "0.3687", "0.8228", "0.3818", "0.1732", "0.3818" ], [ "0.1732", "0.385", "0.3228", "0.385", "0.3228", "0.3958", "0.1732", "0.3958" ], [ "0.1732", "0.4028", "0.8228", "0.404", "0.8228", "0.4185", "0.1732", "0.4172" ], [ "0.1748", "0.4185", "0.824", "0.4185", "0.824", "0.432", "0.1748", "0.432" ], [ "0.1724", "0.432", "0.8228", "0.432", "0.8228", "0.4463", "0.1724", "0.4463" ], [ "0.1748", "0.4475", "0.824", "0.4475", "0.824", "0.4583", "0.1748", "0.4583" ], [ "0.1748", "0.4602", "0.826", "0.4602", "0.826", "0.4734", "0.1748", "0.4734" ], [ "0.1732", "0.4734", "0.826", "0.4734", "0.826", "0.4873", "0.1732", "0.4873" ], [ "0.1748", "0.4873", "0.826", "0.4873", "0.826", "0.5005", "0.1748", "0.5005" ], [ "0.1748", "0.5005", "0.826", "0.5005", "0.826", "0.515", "0.1748", "0.515" ], [ "0.1748", "0.515", "0.546", "0.515", "0.546", "0.529", "0.1748", "0.529" ], [ "0.1732", "0.535", "0.824", "0.535", "0.824", "0.549", "0.1732", "0.549" ], [ "0.1748", "0.5503", "0.826", "0.5503", "0.826", "0.5645", "0.1748", "0.5645" ], [ "0.1748", "0.5645", "0.7256", "0.5645", "0.7256", "0.5776", "0.1748", "0.5776" ], [ "0.1748", "0.5854", "0.8228", "0.5854", "0.8228", "0.5986", "0.1748", "0.5986" ], [ "0.1732", "0.5986", "0.822", "0.5986", "0.822", "0.6123", "0.1732", "0.6123" ], [ "0.1732", "0.613", "0.824", "0.6123", "0.824", "0.627", "0.1732", "0.6274" ], [ "0.1748", "0.6274", "0.824", "0.6274", "0.824", "0.6416", "0.1748", "0.6416" ], [ "0.1748", "0.6416", "0.824", "0.6416", "0.824", "0.655", "0.1748", "0.655" ], [ "0.1732", "0.654", "0.8228", "0.654", "0.8228", "0.6675", "0.1732", "0.6675" ], [ "0.1724", "0.6675", "0.8228", "0.6675", "0.8228", "0.681", "0.1724", "0.681" ], [ "0.1724", "0.683", "0.732", "0.683", "0.732", "0.6963", "0.1724", "0.6963" ], [ "0.1748", "0.7026", "0.826", "0.7026", "0.826", "0.7163", "0.1748", "0.7163" ], [ "0.1732", "0.7163", "0.824", "0.7173", "0.824", "0.732", "0.1732", "0.731" ], [ "0.1732", "0.732", "0.824", "0.732", "0.824", "0.7456", "0.1732", "0.7456" ], [ "0.1748", "0.7476", "0.744", "0.7476", "0.744", "0.7583", "0.1748", "0.7583" ], [ "0.1765", "0.7827", "0.1912", "0.7827", "0.1912", "0.7935", "0.1765", "0.7935" ], [ "0.2035", "0.7827", "0.3447", "0.7827", "0.3447", "0.797", "0.2035", "0.797" ], [ "0.1748", "0.813", "0.826", "0.813", "0.826", "0.827", "0.1748", "0.827" ], [ "0.1748", "0.8276", "0.8267", "0.8276", "0.8267", "0.8413", "0.1748", "0.8413" ], [ "0.1748", "0.8413", "0.826", "0.8413", "0.826", "0.855", "0.1748", "0.855" ], [ "0.1732", "0.856", "0.824", "0.856", "0.824", "0.869", "0.1732", "0.869" ], [ "0.1748", "0.869", "0.824", "0.869", "0.824", "0.8833", "0.1748", "0.8833" ], [ "0.1732", "0.8833", "0.826", "0.8833", "0.826", "0.8965", "0.1732", "0.8965" ], [ "0.1748", "0.898", "0.826", "0.898", "0.826", "0.911", "0.1748", "0.911" ], [ "0.1748", "0.911", "0.8267", "0.911", "0.8267", "0.925", "0.1748", "0.925" ], [ "0.492", "0.9463", "0.5073", "0.9463", "0.5073", "0.962", "0.492", "0.962" ] ]
[ "Published as a conference paper at ICLR 2024", "sparse set of key points, dense correspondence (Perez et al., 2013; Rocco et al., 2017; Kim et al.,", "2018; Cho et al., 2021) aims to match all the points between input images.", "In the probabilistic interpretation, the objective for dense correspondence can be defined with a data", "term, measuring matching evidence between source and target features, and a prior term, encoding", "prior knowledge of correspondence. Traditional methods (Perez et al., 2013; Drulea & Nedevschi,", "2011; Werlberger et al., 2010; Lhuillier & Quan, 2000; Liu et al., 2010; Ham et al., 2016) explicitly", "incorporatedhand-designedpriortermstoachievesmoothercorrespondence,suchastotalvariation", "(TV) or image discontinuity-aware smoothness. However, the formulation of the hand-crafted prior", "term is notoriously challenging and may vary depending on the specific dense correspondence tasks,", "such as geometric matching (Liu et al., 2010; Duchenne et al., 2011; Kim et al., 2013) or optical", "flow (Weinzaepfel et al., 2013; Revaud et al., 2015).", "Unlike them, recent approaches (Kim et al., 2017a; Sun et al., 2018; Rocco et al., 2017; 2020; Truong", "et al., 2020b; Min & Cho, 2021; Kim et al., 2018; Jiang et al., 2021; Cho et al., 2021; 2022) have", "focused on solely learning the data term with deep neural networks. However, despite demonstrating", "certain performance improvements, these methods still struggle with effectively addressing the", "inherent ambiguities encountered in dense correspondence, including challenges posed by textureless", "regions, repetitive patterns, large displacements, or noises. We argue that it is because they concentrate", "on maximizing the likelihood, which corresponds to learning the data term only, and do not explicitly", "consider the matching prior. This limits their ability to learn ideal matching field manifold, and leads", "topoorgeneralization.", "On the other hand, diffusion models (Ho et al., 2020; Song et al., 2020a; Song & Ermon, 2019; Song", "et al., 2020b) have recently demonstrated a powerful capability for learning posterior distribution and", "have achieved considerable success in the field of generative models (Karras et al., 2020). Building", "on these advancements,recent studies (Rombach etal.,2022: Seo etal.,2023;Saharia et al.,2022a:", "Lugmayr et al., 2022) have focused on controllable image synthesis by leveraging external conditions.", "Moreover, these advances in diffusion models have also led to successful applications in numerous", "discriminative tasks, such as depth estimation (Saxena et al., 2023b; Kim et al., 2022; Duan et al.,", "2023), object detection (Chen et al., 2022a), segmentation (Gu et al., 2022; Giannone et al., 2022),", "and human pose estimation (Holmquist & Wandt, 2022).", "Inspired by the recent success of the diffusion model (Ho et al., 2020: Song et al., 2020a:; Song &", "Ermon, 2019; Song et al., 2020b), we introduce DiffMatch, a conditional diffusion-based framework", "designed to explicitly model the matching field distribution within diffusion process.", "Unlike existing discriminative learning-based methods (Kim et al., 2017a; Jiang et al., 2021; Rocco", "et al., 2017; 2020; Teed & Deng, 2020) that focus solely on maximizing the likelihood, DiffMatch", "aims to learn the posterior distribution of dense correspondence. Specifically, this is achieved by", "a conditional denoising diffusion model designed to learn how to generate a correspondence field", "given feature descriptors as conditions. However, limited input resolution of the diffusion model", "is a significant hindrance. To address this, we adopt a cascaded diffusion pipeline, starting with a", "low-resolution diffusion model, and then transitioning to a super-resolution diffusion model that", "successively upsamples the matching field and incorporates higher-resolution details.", "We evaluate the effectiveness of DiffMatch using several standard benchmarks (Balntas et al., 2017;", "Schops et al., 2017), and show the robustness of our model with the corrupted datasets (Hendrycks", "& Dietterich, 2019; Balntas et al., 2017; Schops et al., 2017). We also conduct extensive ablation", "studiesto validate our design choices and explorethe effectiveness of each component.", "2", "RELATED WORK", "Dense correspondence. Traditional methods for dense correspondence (Horn & Schunck, 1981;", "Lucas & Kanade, 1981) relied on hand-designed matching priors. Several techniques (Sun et al.,", "2010; Brox & Malik, 2010; Liu et al., 2010; Taniai et al., 2016; Kim et al., 2017b; Ham et al.,", "2016; Kim et al., 2013) introduced optimization methods, such as SIFT Flow (Liu et al., 2010),", "which designed smoothness and small displacement priors, and DCTM (Kim et al., 2017b), which", "introduced a discontinuity-aware prior term. However, manually designing the prior term is difficult.", "To address this, recent approaches (Dosovitskiy et al., 2015; Rocco et al., 2017; Shen et al., 2019;", "Melekhov et al., 2019; Ranjan & Black, 2017; Teed & Deng, 2020; Sun et al., 2018; Truong et al.,", "2" ]
{ "arxiv_id": "2305.19094", "language": "en", "page_idx": 1 }
2305.19094-en-2
2305.19094-en-2.jpg
$\underline{\text{Published as a conference paper at ICLR 2024}}$ 2020b; 2021; Jiang et al., 2021) have shifted to a learning paradigm, formulating an objective function to solely maximize likelihood. This assumes that an optimal matching prior can be learned from a large-scale dataset. DGC-Net (Melekhov et al., 2019) and GLU-Net (Truong et al., 2020b) proposed a coarse-to-fine framework using a feature pyramid, while COTR (Jiang et al., 2021) employed a transformer-based network. GOCor (Truong et al., 2020a) developed a differentiable matching module to learn spatial priors, addressing matching ambiguities. PDC-Net+(Truong et al., 2023) presented dense matching using a probabilistic model, estimating a flow field paired with a confidence map. DKM (Edstedt et al., 2023) introduced a kernel regression global matcher to find accurate global matches and their certainty. Diffusion models. Diffusion models (Sohl-Dickstein et al., 2015; Ho et al., 2020) have been extensively researched due to their powerful generation capability. The Denoising Diffusion Probabilistic Models (DDPM) (Ho et al., $\hat{2}020)$ proposed a diffusion model in which the forward and reverse processes exhibit the Markovian property. The Denoising Diffusion Implicit Models (DDIM) (Song et al., 2020a) accelerated DDPM by replacing the original diffusion process with non-Markovian chains to enhance the sampling speed. Building upon these advancements, conditional diffusion models that leverage auxiliary conditions for controlled image synthesis have emerged. Palette (Saharia et al., 2022a) proposed a general framework for image-to-image translation by concatenating the source image as an additional condition. Similarly, InstructPix2Pix (Brooks et al., 2023) trains a conditional diffusion model using a paired image and text instruction, specifically tailored for instruction-based image editing. On the other hand, several studies (Ho et al., 2022; Saharia et al., 2022b; Ryu& Ye, 2022; Balaji et al., 2022) have turned their attention to resolution enhancement, as the Cascaded Diffusion Model (Ho et al., 2022) adopts a cascaded pipeline to progressively interpolate the resolution of synthesized images using the diffusion denoising process. Diffusion model for discriminative tasks. Recently, the remarkable performance of the diffusion model has been extended to solve discriminative tasks, including image segmentation (Chen et al., 2022b; Gu et al., 2022; Ji et al., 2023), depth estimation (Saxena et al., 2023b; Kim et al., 2022; Duan et al., 2023; Ji et al., 2023), object detection (Chen et al., 2022a), and pose estimation (Tevet et al., 2022; Holmquist & Wandt, 2022). These approaches have demonstrated noticeable performance improvement using diffusion models. Our method represents the first application of the diffusion model to the dense correspondence task. ### 3 PRELIMINARIES Probabilistic interpretation of dense correspondence. Let us denote a pair of images, i.e., source and target, as $I_\mathrm{src}$ and $I_\mathrm{tgt}$ that represent visually or semantically similar images, and feature descriptors extracted from $I_{\mathrm{src}}$ and $I_{\mathrm{tgt}}$ as $D_{\mathrm{src}}$ and $D_{\mathrm{tgt}}$, respectively. The objective of dense $\hat{\text{correspondence is to find a correspondence field }F\text{ that is defined at each pixel }i,\text{which warps }I_{\mathrm{src}}}$ ${\mathrm{towards~}}I_{\mathrm{tgt}}$ such that $I_{\mathrm{tgt}}(i)\sim I_{\mathrm{src}}(i+F(i))$ or $D_{\mathrm{tgt}}(i)\sim D_{\mathrm{src}}(i+F(i)).$ This objective can be formulated within probabilistic interpretation (Simoncelli et al., 1991; Sun et al., 2008; Ham et al., 2016; Kim et al., 2017b), where we seek to find $F^*$ that maximizes the posterior probability of the correspondence field given a pair of feature descriptors $D_{\mathrm{src}}$ and $D_{\mathrm{tgt}}$, ${\mathrm{i.e.}},p(F|\hat{D}_{\mathrm{src}},D_{\mathrm{tgt}}).{\mathrm{~According~to~Bayes'~theorem~(Joyce,~2003),~the~posterior~can~be~decomposed}}$ such that $p(F|D_{\mathrm{src}},D_{\mathrm{tgt}})\propto p(\tilde{D}_{\mathrm{src}},\dot{D}_{\mathrm{tgt}}|F)\cdot p(F).$ To find the matching field $F^*$ that maximizes the posterior, we can use the maximum a posteriori (MAP) approach (Greig et al., 1989): $$\begin{aligned}F^{*}&=\underset{F}{\operatorname*{argmax}}p(F|D_{\mathrm{src}},D_{\mathrm{tgt}})=\underset{F}{\operatorname*{argmax}}p(D_{\mathrm{src}},D_{\mathrm{tgt}}|F)\cdot p(F)\\&=\underset{F}{\operatorname*{argmax}}\{\underbrace{\log p(D_{\mathrm{src}},D_{\mathrm{tgt}}|F)}_{\mathrm{data~term}}+\underbrace{\log p(F)}_{\mathrm{prior~term}}\}.\end{aligned}$$ (1) In this probabilistic interpretation, the first term, referred to as data term, represents the matching evidence between feature descriptors $D_{\mathrm{src}}$ and $D_{\mathrm{tgt}}$, and the second term, referred to as prior term, encodes prior knowledge of the matching field $F.$ Conditional diffusion models. The diffusion model is a type of generative model, and can be divided into two categories: unconditional models (Sohl-Dickstein et al., 2015; Ho et al., 2020) and conditional models (Batzolis et al., 2021; Dhariwal & Nichol, 2021). Specifically, unconditional diffusion models learn an explicit approximation of the data distribution, denoted as $p(X).$ On the 3
[ [ "0.1732", "0.03284", "0.4805", "0.0322", "0.4805", "0.04672", "0.1732", "0.04736" ], [ "0.1748", "0.1048", "0.824", "0.1048", "0.824", "0.1193", "0.1748", "0.1193" ], [ "0.1748", "0.1193", "0.824", "0.1193", "0.824", "0.1332", "0.1748", "0.1332" ], [ "0.1748", "0.1332", "0.824", "0.1332", "0.824", "0.1465", "0.1748", "0.1465" ], [ "0.1732", "0.1465", "0.824", "0.1465", "0.824", "0.1604", "0.1732", "0.1604" ], [ "0.1724", "0.159", "0.824", "0.1604", "0.824", "0.1749", "0.1724", "0.1736" ], [ "0.1732", "0.1749", "0.824", "0.1749", "0.824", "0.1881", "0.1732", "0.1881" ], [ "0.1748", "0.1881", "0.824", "0.1881", "0.824", "0.202", "0.1748", "0.202" ], [ "0.1748", "0.202", "0.824", "0.202", "0.824", "0.2153", "0.1748", "0.2153" ], [ "0.1748", "0.2166", "0.4004", "0.2166", "0.4004", "0.2299", "0.1748", "0.2299" ], [ "0.1732", "0.2349", "0.8267", "0.2361", "0.8267", "0.2507", "0.1732", "0.25" ], [ "0.1732", "0.252", "0.824", "0.252", "0.824", "0.2651", "0.1732", "0.2651" ], [ "0.1732", "0.2651", "0.824", "0.2651", "0.824", "0.279", "0.1732", "0.279" ], [ "0.1732", "0.2778", "0.824", "0.279", "0.824", "0.2935", "0.1732", "0.2922" ], [ "0.1748", "0.2922", "0.824", "0.2922", "0.824", "0.307", "0.1748", "0.307" ], [ "0.1748", "0.307", "0.824", "0.307", "0.824", "0.3208", "0.1748", "0.3208" ], [ "0.1748", "0.3208", "0.826", "0.3208", "0.826", "0.334", "0.1748", "0.334" ], [ "0.1732", "0.334", "0.824", "0.334", "0.824", "0.348", "0.1732", "0.348" ], [ "0.1732", "0.348", "0.824", "0.348", "0.824", "0.361", "0.1732", "0.361" ], [ "0.1732", "0.3623", "0.824", "0.3623", "0.824", "0.3757", "0.1732", "0.3757" ], [ "0.1748", "0.3757", "0.826", "0.3757", "0.826", "0.3894", "0.1748", "0.3894" ], [ "0.1732", "0.3882", "0.8267", "0.3894", "0.8267", "0.404", "0.1732", "0.4028" ], [ "0.1748", "0.404", "0.824", "0.404", "0.824", "0.4172", "0.1748", "0.4172" ], [ "0.1724", "0.4167", "0.738", "0.4172", "0.738", "0.432", "0.1724", "0.4312" ], [ "0.1748", "0.4382", "0.8228", "0.4382", "0.8228", "0.452", "0.1748", "0.452" ], [ "0.1748", "0.4526", "0.826", "0.4526", "0.826", "0.4666", "0.1748", "0.4666" ], [ "0.1748", "0.4666", "0.824", "0.4666", "0.824", "0.4797", "0.1748", "0.4797" ], [ "0.1748", "0.4797", "0.826", "0.4797", "0.826", "0.4937", "0.1748", "0.4937" ], [ "0.1748", "0.4937", "0.824", "0.4937", "0.824", "0.507", "0.1748", "0.507" ], [ "0.1732", "0.5083", "0.824", "0.5083", "0.824", "0.5215", "0.1732", "0.5215" ], [ "0.1732", "0.5215", "0.4412", "0.5215", "0.4412", "0.535", "0.1732", "0.535" ], [ "0.1765", "0.558", "0.1912", "0.558", "0.1912", "0.5684", "0.1765", "0.5684" ], [ "0.2018", "0.5547", "0.3406", "0.556", "0.3406", "0.571", "0.2018", "0.5693" ], [ "0.1732", "0.586", "0.824", "0.587", "0.824", "0.6016", "0.1732", "0.601" ], [ "0.1748", "0.6016", "0.824", "0.6016", "0.824", "0.6157", "0.1748", "0.6157" ], [ "0.1748", "0.6157", "0.824", "0.6157", "0.824", "0.63", "0.1748", "0.63" ], [ "0.1732", "0.6274", "0.8228", "0.629", "0.8228", "0.643", "0.1732", "0.6426" ], [ "0.1724", "0.6426", "0.6733", "0.6426", "0.6733", "0.656", "0.1724", "0.656" ], [ "0.1748", "0.6636", "0.8228", "0.6636", "0.8228", "0.678", "0.1748", "0.678" ], [ "0.1748", "0.678", "0.824", "0.678", "0.824", "0.6914", "0.1748", "0.6914" ], [ "0.1732", "0.6914", "0.826", "0.6924", "0.826", "0.707", "0.1732", "0.7056" ], [ "0.1748", "0.7056", "0.826", "0.7056", "0.826", "0.72", "0.1748", "0.72" ], [ "0.1732", "0.7197", "0.824", "0.7183", "0.824", "0.733", "0.1732", "0.7344" ], [ "0.1732", "0.7344", "0.7573", "0.7344", "0.7573", "0.7476", "0.1732", "0.7476" ], [ "0.286", "0.756", "0.304", "0.755", "0.3057", "0.763", "0.2876", "0.7646" ], [ "0.3105", "0.7583", "0.3218", "0.761", "0.3186", "0.7646", "0.3096", "0.761" ], [ "0.3203", "0.755", "0.716", "0.755", "0.716", "0.7695", "0.3203", "0.7695" ], [ "0.308", "0.782", "0.601", "0.782", "0.601", "0.797", "0.308", "0.797" ], [ "0.8013", "0.7764", "0.8286", "0.7764", "0.8286", "0.7935", "0.8013", "0.7935" ], [ "0.4272", "0.802", "0.4763", "0.802", "0.4763", "0.8164", "0.4272", "0.8164" ], [ "0.539", "0.803", "0.585", "0.803", "0.585", "0.8145", "0.539", "0.8145" ], [ "0.1724", "0.8193", "0.8228", "0.821", "0.8228", "0.8354", "0.1724", "0.834" ], [ "0.1748", "0.8354", "0.826", "0.8354", "0.826", "0.8496", "0.1748", "0.8496" ], [ "0.1748", "0.8496", "0.5024", "0.8496", "0.5024", "0.863", "0.1748", "0.863" ], [ "0.1732", "0.867", "0.824", "0.8687", "0.824", "0.8833", "0.1732", "0.882" ], [ "0.1748", "0.8833", "0.824", "0.8833", "0.824", "0.8965", "0.1748", "0.8965" ], [ "0.1748", "0.898", "0.824", "0.898", "0.824", "0.911", "0.1748", "0.911" ], [ "0.1748", "0.911", "0.824", "0.911", "0.824", "0.925", "0.1748", "0.925" ], [ "0.492", "0.9463", "0.5073", "0.9463", "0.5073", "0.962", "0.492", "0.962" ] ]
[ "Published as a conference paper at ICLR 2024", "2020b; 2021; Jiang et al., 2021) have shifted to a learning paradigm, formulating an objective function", "to solely maximize likelihood. This assumes that an optimal matching prior can be learned from a", "large-scale dataset. DGC-Net (Melekhov et al., 2019) and GLU-Net (Truong et al., 2020b) proposed", "a coarse-to-fine framework using a feature pyramid, while COTR (Jiang et al., 2021) employed", "a transformer-based network. GOCor (Truong et al., 2020a) developed a differentiable matching", "module to learn spatial priors, addressing matching ambiguities. PDC-Net+(Truong et al., 2023)", "presented dense matching using a probabilistic model, estimating a flow field paired with a confidence", "map. DKM (Edstedt et al., 2023) introduced a kernel regression global matcher to find accurate", "global matches and their certainty.", "Diffusion models. Diffusion models (Sohl-Dickstein et al., 2015; Ho et al., 2020) have been exten-", "sively researched due to their powerful generation capability. The Denoising Diffusion Probabilistic", "Models (DDPM) (Ho et al., 2020) proposed a diffusion model in which the forward and reverse", "processes exhibit the Markovian property.The Denoising Diffusion Implicit Models (DDIM) (Song", "et al., 2020a) accelerated DDPM by replacing the original diffusion process with non-Markovian", "chains to enhance the sampling speed. Building upon these advancements, conditional diffusion", "models that leverage auxiliary conditions for controlled image synthesis have emerged. Palette (Sa-", "haria et al., 2022a) proposed a general framework for image-to-image translation by concatenating", "the source image as an additional condition. Similarly, InstructPix2Pix (Brooks et al., 2023) trains", "a conditional diffusion model using a paired image and text instruction, specifically tailored for", "instruction-based image editing. On the other hand, several studies (Ho et al., 2022; Saharia et al.,", "2022b; Ryu & Ye, 2022; Balaji et al., 2022) have turned their attention to resolution enhancement,", "as the Cascaded Diffusion Model (Ho et al., 2022) adopts a cascaded pipeline to progressively", "interpolate the resolution of synthesized images using the diffusion denoising process.", "Diffusion model for discriminative tasks. Recently, the remarkable performance of the diffusion", "model has been extended to solve discriminative tasks, including image segmentation (Chen et al.,", "2022b; Gu et al., 2022; Ji et al., 2023), depth estimation (Saxena et al., 2023b; Kim et al., 2022; Duan", "et al., 2023; Ji et al., 2023), object detection (Chen et al., 2022a), and pose estimation (Tevet et al.,", "2022; Holmquist & Wandt, 2022). These approaches have demonstrated noticeable performance", "improvement using diffusion models. Our method represents the first application of the diffusion", "model to the dense correspondence task.", "3", "PRELIMINARIES", "Probabilistic interpretation of dense correspondence. Let us denote a pair of images, i.e., source", "and target, as Isre and Itgt that represent visually or semantically similar images, and feature", "descriptors extracted from Isre and Itgt as Dsrc and Dtgt, respectively. The objective of dense", "correspondence is to find a correspondence field F that is defined at each pixel i, which warps Isrc", "towards Itgt such that Itgt(i) ~ Isre(i + F()) or Dtgt(i) ~ Dsre(i + F(i))", "This objective can be formulated within probabilistic interpretation (Simoncelli et al., 1991; Sun", "et al., 2008; Ham et al., 2016; Kim et al., 2017b), where we seek to find F* that maximizes the", "posterior probability of the correspondence field given a pair of feature descriptors Dsrc and Dtgt,", "i.e., p(FDsrc, Dtgt). According to Bayes' theorem (Joyce, 2003), the posterior can be decomposed", "such that p(F|Dsre, Dtgt) α p(Dsre, Dtgt|F) p(F). To find the matching field F* that maximizes", "the posterior, we can use the maximum a posteriori (MAP) approach (Greig et al., 1989):", "F*", "", "argmaxp(F|Dsrc, Dtgt) = argmaxp(Dsre, Dtgt|F) ·p(F)", "= argmax[log p(Dsrc, Dtgt|F) +log p(F))", "(1)", "data term", "priorterm", "In this probabilistic interpretation, the first term, referred to as data term, represents the matching", "evidence between feature descriptors Dsrc and Dtgt, and the second term, referred to as prior term,", "encodes priorknowledgeof thematchingfield F.", "Conditional diffusion models. The diffusion model is a type of generative model, and can be", "divided into two categories: unconditional models (Sohl-Dickstein et al., 2015; Ho et al., 2020) and", "conditional models (Batzolis et al., 2021; Dhariwal & Nichol, 2021). Specifically, unconditional", "diffusion models learn an explicit approximation of the data distribution, denoted as p(X). On the", "3" ]
{ "arxiv_id": "2305.19094", "language": "en", "page_idx": 2 }
2305.19094-en-3
2305.19094-en-3.jpg
Published as a conference paper at ICLR 2024 <FigureHere> Figure 2: Overall network architecture of DiffMatch. Given source and target images, our conditional diffusion-based network estimates the dense correspondence between the two images. We leverage two conditions: the initial correspondence $F_\mathrm{init}$ and the local matching cost $C^l,\tilde{\text{which}}$ finds long-range matching and embeds local pixel-wise interactions, respectively. other hand, conditional diffusion models estimate the data distribution given a certain condition $K$, e.g., text prompt (Dhariwal& Nichol, 2021), denoted as $p(X|K).$ In the conditional diffusion model, the data distribution is approximated by recovering a data sample from the Gaussian noise through an iterative denoising process. Given a sample $X_0$, it is transformed to $X_t$ through the forward diffusion process at a time step $t\in\{T,T-1,\ldots,1\}$, which consists of Gaussian transition at each time step $\hat{q}(X_t|X_{t-1}):=\mathcal{N}(\hat{\sqrt{1-\beta_t}}X_{t-1},\beta_tI).$ The forward diffusion process follows the pre-defined variance schedule $\beta_t$ such that $$X_t=\sqrt{\alpha_t}X_0+\sqrt{1-\alpha_t}Z,\quad Z\sim\mathcal{N}(0,I),$$ (2) where $\alpha_t=\prod_{i=1}^t(1-\beta_i).$ After training, we can sample data from the learned distribution through iterative denoising with the pre-defined range of time steps, called the reverse diffusion process, following the non-Markovian process of DDIM (Song et al., 2020a), which is parametrized as another Gaussian transition $p_\theta(X_{t-1}\mid X_t):=\mathcal{N}(X_{t-1};\mu_\theta(X_t,t),\sigma_\theta(X_t,t)I).$ To this end, the diffusion network $\mathcal{F}_\theta(X_t,t;K)$ predicts the denoised sample $\hat{X}_{0,t}$ given $X_t,t$ and $K.$ One step in the reverse diffusion process can be formulated such that $$X_{t-1}=\sqrt{\alpha_{t-1}}\mathcal{F}_{\theta}(X_{t},t;K)+\frac{\sqrt{1-\alpha_{t-1}-\sigma_{t}^{2}}}{\sqrt{1-\alpha_{t}}}\Big(X_{t}-\sqrt{\alpha_{t}}\mathcal{F}_{\theta}(X_{t},t;K)\Big)+\sigma_{t}Z$$ (3) where $\sigma_t$ is the covariance value of Gaussian distribution at time step $t.$ This iterative denoising process can be viewed as finding $X^*=\underset{{\mathrm{cPPM}}}{\operatorname*{\operatorname*{argmax}}}\log p(X|K)$ through the relationship between the conditional sampling process of DDIM (Song et al., 2020a) and conditional score-based generative models (Batzolis et al., 2021). ### 4 METHODOLOGY ## 4.1 MoTIVATION Recent learning-based methods (Kim et al., 2017a; Sun et al., 2018; Rocco et al., 2017; 2020; Truong et al., 2020b; Min & Cho, 2021; Kim et al., 2018; Jiang et al., 2021; Cho et al., 2021; 2022) have employed deep neural networks $\mathcal{F}(\cdot)$ to directly approximate the data term, i.e., $\operatorname{argmax}_{F}\log p(\tilde{D}_{\mathrm{src}},D_{\mathrm{tgt}}|\hat{F})$,without explicitly considering the prior term. For instance, GLUNet(Truong et al., 2020b) and GOCor (Truong et al., 2020a) construct a cost volume along candidates $F$ between source and target features $D_\mathrm{src}$ and $D_\mathrm{tgt}$, and regresses the matching fields $F^*$ within $\operatorname*{deep}$ neural networks, which might be analogy to $\operatorname{argmax}_F\log p(D_{\mathrm{src}},D_{\mathrm{tgt}}|\tilde{F}).$In this setting, dense correspondence $F^*$ is estimated as follows: (4) $$F^{*}=\mathcal{F}_{\theta}(D_{\mathrm{src}},D_{\mathrm{tgt}})\approx\mathrm{argmax}_{F}\underbrace{\log p(D_{\mathrm{src}},D_{\mathrm{tgt}}|F)}_{\mathrm{data~term}},$$ where $\mathcal{F}_\theta(\cdot)$ and $\theta$ represent a feed-forward network and its parameters, respectively. 4
[ [ "0.1748", "0.03284", "0.4805", "0.03284", "0.4805", "0.04736", "0.1748", "0.04736" ], [ "0.649", "0.0985", "0.701", "0.101", "0.699", "0.11554", "0.648", "0.113" ], [ "0.653", "0.127", "0.697", "0.127", "0.697", "0.1383", "0.653", "0.1383" ], [ "0.452", "0.1351", "0.482", "0.1351", "0.482", "0.1812", "0.452", "0.1812" ], [ "0.4714", "0.154", "0.4763", "0.154", "0.4763", "0.1787", "0.4714", "0.1787" ], [ "0.3865", "0.1849", "0.4355", "0.1849", "0.4355", "0.1963", "0.3865", "0.1963" ], [ "0.509", "0.1925", "0.5728", "0.1945", "0.5728", "0.209", "0.509", "0.207" ], [ "0.3945", "0.2108", "0.4207", "0.214", "0.4182", "0.2267", "0.392", "0.2235" ], [ "0.5376", "0.2102", "0.5474", "0.2102", "0.5474", "0.2172", "0.5376", "0.2172" ], [ "0.1936", "0.2329", "0.4844", "0.2329", "0.4844", "0.2468", "0.1936", "0.2468" ], [ "0.5513", "0.2329", "0.774", "0.2329", "0.774", "0.2468", "0.5513", "0.2468" ], [ "0.1732", "0.2556", "0.8228", "0.2568", "0.8228", "0.2715", "0.1732", "0.2708" ], [ "0.1732", "0.2708", "0.826", "0.2715", "0.826", "0.286", "0.1732", "0.2854" ], [ "0.1724", "0.2842", "0.824", "0.2854", "0.824", "0.2998", "0.1724", "0.2986" ], [ "0.1732", "0.2998", "0.706", "0.2998", "0.706", "0.3132", "0.1732", "0.3132" ], [ "0.1748", "0.3289", "0.826", "0.3289", "0.826", "0.3435", "0.1748", "0.3435" ], [ "0.1732", "0.3435", "0.6055", "0.3423", "0.6055", "0.3567", "0.1732", "0.358" ], [ "0.1732", "0.3623", "0.822", "0.3623", "0.822", "0.377", "0.1732", "0.377" ], [ "0.1765", "0.3801", "0.8228", "0.3801", "0.8228", "0.3901", "0.1765", "0.3901" ], [ "0.1748", "0.3914", "0.824", "0.3914", "0.824", "0.4048", "0.1748", "0.4048" ], [ "0.1748", "0.406", "0.826", "0.406", "0.826", "0.4192", "0.1748", "0.4192" ], [ "0.1724", "0.4192", "0.584", "0.4185", "0.584", "0.433", "0.1724", "0.4343" ], [ "0.353", "0.4414", "0.648", "0.4414", "0.648", "0.4558", "0.353", "0.4558" ], [ "0.8037", "0.4426", "0.8267", "0.4426", "0.8267", "0.4558", "0.8037", "0.4558" ], [ "0.1748", "0.4673", "0.8228", "0.4673", "0.8228", "0.4817", "0.1748", "0.4817" ], [ "0.1765", "0.483", "0.824", "0.483", "0.824", "0.4937", "0.1765", "0.4937" ], [ "0.1748", "0.4956", "0.824", "0.4956", "0.824", "0.509", "0.1748", "0.509" ], [ "0.1748", "0.509", "0.824", "0.509", "0.824", "0.5234", "0.1748", "0.5234" ], [ "0.1748", "0.526", "0.824", "0.526", "0.824", "0.5405", "0.1748", "0.5405" ], [ "0.1732", "0.537", "0.4763", "0.5386", "0.4763", "0.553", "0.1732", "0.552" ], [ "0.433", "0.5737", "0.5513", "0.5747", "0.5513", "0.589", "0.433", "0.5884" ], [ "0.2239", "0.582", "0.4314", "0.582", "0.4314", "0.5967", "0.2239", "0.5967" ], [ "0.5884", "0.582", "0.721", "0.582", "0.721", "0.5967", "0.5884", "0.5967" ], [ "0.728", "0.582", "0.777", "0.582", "0.777", "0.5967", "0.728", "0.5967" ], [ "0.8037", "0.5835", "0.826", "0.5835", "0.826", "0.5967", "0.8037", "0.5967" ], [ "0.464", "0.5913", "0.5254", "0.5913", "0.5254", "0.606", "0.464", "0.606" ], [ "0.1748", "0.6094", "0.642", "0.6094", "0.642", "0.6226", "0.1748", "0.6226" ], [ "0.1748", "0.63", "0.8228", "0.63", "0.8228", "0.6445", "0.1748", "0.6445" ], [ "0.1732", "0.6445", "0.826", "0.6445", "0.826", "0.6577", "0.1732", "0.6577" ], [ "0.1732", "0.659", "0.527", "0.659", "0.527", "0.6724", "0.1732", "0.6724" ], [ "0.1765", "0.696", "0.1929", "0.696", "0.1929", "0.705", "0.1765", "0.705" ], [ "0.1953", "0.6934", "0.3423", "0.6934", "0.3423", "0.707", "0.1953", "0.707" ], [ "0.1748", "0.7246", "0.2141", "0.7246", "0.2141", "0.7363", "0.1748", "0.7363" ], [ "0.2091", "0.7246", "0.3057", "0.7246", "0.3057", "0.7363", "0.2091", "0.7363" ], [ "0.1732", "0.75", "0.824", "0.75", "0.824", "0.763", "0.1732", "0.763" ], [ "0.1748", "0.7646", "0.826", "0.7646", "0.826", "0.778", "0.1748", "0.778" ], [ "0.1748", "0.779", "0.826", "0.779", "0.826", "0.7925", "0.1748", "0.7925" ], [ "0.1748", "0.7925", "0.826", "0.7925", "0.826", "0.806", "0.1748", "0.806" ], [ "0.1748", "0.806", "0.826", "0.806", "0.826", "0.8193", "0.1748", "0.8193" ], [ "0.1748", "0.8193", "0.824", "0.8184", "0.824", "0.8335", "0.1748", "0.834" ], [ "0.1748", "0.834", "0.8267", "0.834", "0.8267", "0.8477", "0.1748", "0.8477" ], [ "0.1732", "0.8477", "0.5024", "0.8477", "0.5024", "0.8613", "0.1732", "0.8613" ], [ "0.3179", "0.866", "0.6772", "0.8687", "0.6772", "0.886", "0.3179", "0.884" ], [ "0.8013", "0.8687", "0.83", "0.8687", "0.83", "0.8853", "0.8013", "0.8853" ], [ "0.505", "0.886", "0.5146", "0.886", "0.5146", "0.8896", "0.505", "0.8896" ], [ "0.585", "0.8916", "0.6313", "0.8916", "0.6313", "0.903", "0.585", "0.903" ], [ "0.1748", "0.91", "0.728", "0.91", "0.728", "0.925", "0.1748", "0.925" ], [ "0.4983", "0.9463", "0.5107", "0.9556", "0.5", "0.964", "0.4878", "0.955" ] ]
[ "Published as a conference paper at ICLR 2024", "x(T-t)", "U-NetF", "1", "EMU", "Argmax", "Cl Finit Ft", "Finit", "1", "Local Cost and Initial Correspondence Computation", "Conditional Denoising Diffusion Model", "Figure 2: Overall network architecture of DiffMatch. Given source and target images, our", "conditional diffusion-based network estimates the dense correspondence between the two images.", "We leverage two conditions: the initial correspondence Finit and the local matching cost Cl, which", "finds long-range matching and embeds local pixel-wise interactions, respectively.", "other hand, conditional diffusion models estimate the data distribution given a certain condition K,", "e.g., text prompt (Dhariwal & Nichol, 2021), denoted as p(X|K).", "In the conditional diffusion model, the data distribution is approximated by recovering a data sample", "fromtheGaussiannoisethroughaniterativedenoisingprocess.GivenasampleXo,itistransformed", "to Xt through the forward diffusion process at a time step t E {T, T - 1, . .., 11, which consists of", "Gaussian transition at each time step q(Xt/Xt-1):=N(V1-βtXt-i,βtI).Theforward diffusion", "process follows the pre-defined variance schedule βt such that", "Xt=VatXo+V1-αtz, Z~N(0,I),", "(2)", "where at = II,-(1 - β,). After training, we can sample data from the learned distribution through", "iterativedenoising withthepre-definedrangeof timesteps,calledthereversediffusionprocess.", "following the non-Markovian process of DDIM (Song et al., 202Oa), which is parametrized as another", "Gaussian transition pe(Xt-1 Xt) := N(Xt-1; μe(Xt,t), oe(Xt,t)I). To this end, the diffusion", "network Fe(Xt, t; K) predicts the denoised sample Xo,t given Xt, t and K. One step in the reverse", "diffusion process can be formulated such that", "V1-Qt-1-α?", "Xt-1 = Vat-iFe(Xt,t; K)+", "VatFe(Xt,t;K)", "+otZ", "(3)", "V1-αt", "where ot is the covariance value of Gaussian distribution at time step t.", "This iterative denoising process can be viewed as finding X * = argmax x log p(X|K) through the", "relationship between the conditional sampling process of DDIM (Song et al., 202Oa) and conditional", "score-based generative models (Batzolis et al., 2021).", "4.", "METHODOLOGY", "4.1", "MOTIVATION", "Recent learning-based methods (Kim et al., 2017a; Sun et al., 2018; Rocco et al., 2017; 2020:", "Truong et al., 2020b; Min & Cho, 2021; Kim et al., 2018; Jiang et al., 2021; Cho et al., 2021;", "2022) have employed deep neural networks F() to directly approximate the data term, i.e.", "argmax log p(Dsrc, Dtgt|F), without explicitly considering the prior term. For instance, GLU-", "Net (Truong et al., 2020b) and GOCor (Truong et al., 2020a) construct a cost volume along candidates", "F between source and target features Dsre and Dtgt, and regresses the matching fields F* within", "deep neural networks, which might be analogy to argmax log p(Dsrc, Dtgt F). In this setting,", "dense correspondence F* is estimated as follows:", "F* = Fe(Dsre, Dtgt) ~ argmax log p(Dsre, Dtgt|F)", "(4) ", "H", "data term", "where Fe() and represent a feed-forward network and its parameters, respectively.", "X" ]
{ "arxiv_id": "2305.19094", "language": "en", "page_idx": 3 }
1812.01808-en-1
1812.01808-en-1.jpg
RecNLP 2019, January 27-28, 2019, Hawaii, USA # 3 SYSTEM OVERVIEW An overview of our PhrecSys is shown in Fig.1 The first step is extracting high-quality phrases in each article. For the efficiency and scalability needed by an automatic general article recommendation system, we use Autophrase [21], a data-driven and distant supervised learning algorithm. Phrases from Autophrase with scores no lower than 0.5 are collected as candidates for phrase labeling. In this step, the phrase with the longest length is given a higher priority, i.e., longest match. Finally, phrases are labeled in each article. <FigureHere> Figure 1: PhrecSys system overview The labeling process yields phrase-based articles, that is, articles injected with phrase information. We apply Glove [19] to train the phrase embeddings for the next step. Note that punctuation is dropped in articles. The five content-based recommendation models listed below are utilized to evaluate whether the added phrase mining component really benefits recommendation performance: TextCNN, CDSSM, MV-LSTM, K-NRM, and BiLSTM-SA. Given the article currently being read and a pool of candidate articles, these models generate the recommendation list ordered by recommendation score: TextCNN. Similar to $[11],\dot{\text{convolutional neural networks with}}$ different kernel sizes are used to mimic unigram, bigram, and trigram language models, followed by a max-pooling layer and an asymmetric cosine similarity layer to calculate the score between two articles. CDSSM [1]. Uses a single convolutional neural network to learn low-dimensional semantic vectors followed by multi-layer perceptrons (MLP), after which the normalized dot product is used to calculate the score between two articles. MV-LSTM [22]. Incorporates Bi-LSTM to capture contextualized local information in each positional sentence and then uses the normalized dot product to generate an interaction tensor. K-Max pooling is used to obtain the top-k important information, after which MLP is used to produce the final score. K-NRM [4]. A kernel-based neural model for document ranking which uses a translation matrix that models word-level similarities via word embeddings and utilizes kernels to extract multi-level softmatch features. A ranking layer is followed to generate ranking Chia-Wei Chen, Sheng-Chuan Chou, and Lun-Wei Ku $scores.$ BiLSTM-SA [14]. Uses Bi-LSTM followed by a self-attention mechanism comprised of two linear layers with a softmax layer to generate multiple probabilities for each timestep. In addition to the recommendation task itself, PhrecSys can visualizes the learned focus of each article via the attention technique, which helps models learn to focus on important parts while dealing with long sequences such as news articles. We then observe how the model learns with features of different granularity. Here we select BiLSTM-SA [14] for attention visualization: we store the attention weights learned in each training epoch, and then plot the tokens in the current article with different color depths according to their attention weights. Given these different color depths, we can easily perceive which part of the article the model is focusing on for recommendation in the training process. Figure 2 shows an example; more details are provided below. ## 4 DATASET Two datasets- Central News Agency (CNA)$^1$ and Taiwan People News (TPN)$^2-$were provided by our collaborating partner cacaFly$^3$ for experiments. TPN and CNA are Taiwanese news websites articles written in Mandarin Two types of user behavior- clicks and views- are logged. Specifically, a View log is recorded when the user reads the current article $a_c.$ When the user scrolls to the bottom of the web page to reach the recommendations, the partner system interprets this to mean that the user has finished reading $a_c;$a Click log is recorded when the user clicks on any of the recommendations. We generate Click log sequences to predict the articles that the user will click on next, and View log sequences to predict the articles that will be read next, accordingly. <table> <tbody> <tr> <th rowspan="2">Dataset</th> <th colspan="3">Click</th> <th colspan="3">View</th> </tr> <tr> <th>Train</th> <th>Val</th> <th>Test</th> <th>Train</th> <th>Val</th> <th>Test</th> </tr> <tr> <td>$CNA$</td> <td>28,950</td> <td>4,825</td> <td>4,825</td> <td>635,495</td> <td>97,832</td> <td>89,498</td> </tr> <tr> <td>$TPN$</td> <td>17.041</td> <td>2,841</td> <td>2,841</td> <td>137.029</td> <td>21,305</td> <td>20,122</td> </tr> </tbody> </table> Table 1: Click and View article pairs For a Click log sequence, a positive article pair $(a_c,\hat{a}_r)$ is generated from the article sequence if $a_i$ appears in the View log and $a_{i+1}$ in the Click log, $1\leq i\leq n-1.$ As recency is often taken into account for recommendation [2,8],we generate no more than the latest 8 positive pairs per user for experiments if the user has read many articles. For the View log sequence, we select those articles in the article sequence with the View log, and pair them to generate it. That is, $(a_c,\hat{a}_r)$ is a pair of successive articles that are both being read by the user. Along with each positive pair, there are $m$ negative pairs $(a_c,\v{a}_r)$,where the $\v a_r’$s are the un-clicked recommended $\operatorname{articles~for}a_c.$ Let $l$ be the number of article pairs in each user's log sequence. For each user's Click or View log sequence, the last article pair $(a_c,a_r)_l$ is for testing, the second-to-last is for validation, and the rest are for training. Table 1 shows the statistics of the training, validation, and testing data. $^{1}$http://www.cna.com.tw $^2$http://www.peoplenews.tw $^{3}$https://cacafly.com
[ [ "0.08496", "0.07385", "0.3757", "0.07385", "0.3757", "0.0871", "0.08496", "0.0871" ], [ "0.5884", "0.0726", "0.9126", "0.0726", "0.9126", "0.0859", "0.5884", "0.0859" ], [ "0.0866", "0.1092", "0.1095", "0.1092", "0.1095", "0.11743", "0.0866", "0.11743" ], [ "0.10455", "0.1061", "0.2834", "0.1061", "0.2834", "0.1193", "0.10455", "0.1193" ], [ "0.517", "0.1092", "0.558", "0.1092", "0.558", "0.1193", "0.517", "0.1193" ], [ "0.08496", "0.125", "0.4836", "0.125", "0.4836", "0.1383", "0.08496", "0.1383" ], [ "0.5317", "0.1206", "0.9126", "0.1206", "0.9126", "0.1338", "0.5317", "0.1338" ], [ "0.08496", "0.1395", "0.482", "0.1395", "0.482", "0.1528", "0.08496", "0.1528" ], [ "0.517", "0.1351", "0.914", "0.1351", "0.914", "0.1483", "0.517", "0.1483" ], [ "0.0866", "0.1547", "0.482", "0.1547", "0.482", "0.1654", "0.0866", "0.1654" ], [ "0.517", "0.1497", "0.814", "0.1497", "0.814", "0.1635", "0.517", "0.1635" ], [ "0.0866", "0.1686", "0.4805", "0.1686", "0.4805", "0.1787", "0.0866", "0.1787" ], [ "0.5317", "0.1635", "0.914", "0.1635", "0.914", "0.1768", "0.5317", "0.1768" ], [ "0.08417", "0.1812", "0.2737", "0.1812", "0.2737", "0.1945", "0.08417", "0.1945" ], [ "0.517", "0.1755", "0.914", "0.1768", "0.914", "0.1901", "0.517", "0.1895" ], [ "0.10297", "0.1957", "0.4805", "0.1957", "0.4805", "0.2058", "0.10297", "0.2058" ], [ "0.5186", "0.1913", "0.9126", "0.1913", "0.9126", "0.202", "0.5186", "0.202" ], [ "0.08496", "0.2084", "0.482", "0.2084", "0.482", "0.2216", "0.08496", "0.2216" ], [ "0.517", "0.2052", "0.914", "0.2052", "0.914", "0.2184", "0.517", "0.2184" ], [ "0.08496", "0.2216", "0.4836", "0.2216", "0.4836", "0.2349", "0.08496", "0.2349" ], [ "0.517", "0.2184", "0.914", "0.2184", "0.914", "0.2317", "0.517", "0.2317" ], [ "0.08496", "0.2361", "0.339", "0.2361", "0.339", "0.25", "0.08496", "0.25" ], [ "0.517", "0.2329", "0.914", "0.2329", "0.914", "0.2468", "0.517", "0.2468" ], [ "0.5186", "0.2474", "0.9126", "0.2474", "0.9126", "0.2583", "0.5186", "0.2583" ], [ "0.517", "0.26", "0.9126", "0.26", "0.9126", "0.2734", "0.517", "0.2734" ], [ "0.2566", "0.2695", "0.3096", "0.2695", "0.3096", "0.281", "0.2566", "0.281" ], [ "0.3782", "0.2778", "0.4307", "0.2778", "0.4307", "0.289", "0.3782", "0.289" ], [ "0.517", "0.2734", "0.914", "0.2734", "0.914", "0.2874", "0.517", "0.2874" ], [ "0.1209", "0.2822", "0.1569", "0.2822", "0.1569", "0.2922", "0.1209", "0.2922" ], [ "0.2296", "0.2854", "0.2998", "0.2854", "0.2998", "0.2954", "0.2296", "0.2954" ], [ "0.517", "0.2874", "0.914", "0.2874", "0.914", "0.3005", "0.517", "0.3005" ], [ "0.3816", "0.2886", "0.4265", "0.2886", "0.4265", "0.2986", "0.3816", "0.2986" ], [ "0.125", "0.2917", "0.1478", "0.2935", "0.1462", "0.3005", "0.12335", "0.2986" ], [ "0.2214", "0.2886", "0.232", "0.2886", "0.232", "0.2922", "0.2214", "0.2922" ], [ "0.2173", "0.2986", "0.3447", "0.2986", "0.3447", "0.3093", "0.2173", "0.3093" ], [ "0.517", "0.3018", "0.914", "0.3018", "0.914", "0.315", "0.517", "0.315" ], [ "0.5156", "0.315", "0.7715", "0.315", "0.7715", "0.3289", "0.5156", "0.3289" ], [ "0.406", "0.3308", "0.4207", "0.3308", "0.4207", "0.3416", "0.406", "0.3416" ], [ "0.4314", "0.3257", "0.4631", "0.3257", "0.4631", "0.334", "0.4314", "0.334" ], [ "0.5215", "0.3435", "0.5317", "0.348", "0.527", "0.356", "0.5156", "0.3516" ], [ "0.5415", "0.3435", "0.625", "0.3435", "0.625", "0.3547", "0.5415", "0.3547" ], [ "0.3816", "0.356", "0.452", "0.356", "0.452", "0.3674", "0.3816", "0.3674" ], [ "0.12335", "0.363", "0.1602", "0.3655", "0.1584", "0.377", "0.1217", "0.375" ], [ "0.2615", "0.363", "0.2957", "0.363", "0.2957", "0.3726", "0.2615", "0.3726" ], [ "0.517", "0.3599", "0.9126", "0.3599", "0.9126", "0.3738", "0.517", "0.3738" ], [ "0.3733", "0.3662", "0.4558", "0.3662", "0.4558", "0.3738", "0.3733", "0.3738" ], [ "0.3945", "0.3738", "0.4387", "0.3738", "0.4387", "0.3882", "0.3945", "0.3882" ], [ "0.517", "0.375", "0.9126", "0.375", "0.9126", "0.3882", "0.517", "0.3882" ], [ "0.517", "0.3882", "0.914", "0.3882", "0.914", "0.4016", "0.517", "0.4016" ], [ "0.4028", "0.3965", "0.4224", "0.3965", "0.4224", "0.411", "0.4028", "0.411" ], [ "0.437", "0.4092", "0.464", "0.4092", "0.464", "0.4172", "0.437", "0.4172" ], [ "0.5186", "0.404", "0.669", "0.404", "0.669", "0.414", "0.5186", "0.414" ], [ "0.1323", "0.411", "0.1609", "0.411", "0.1609", "0.4224", "0.1323", "0.4224" ], [ "0.5317", "0.4153", "0.914", "0.4167", "0.914", "0.4312", "0.5317", "0.43" ], [ "0.5156", "0.43", "0.914", "0.43", "0.914", "0.4443", "0.5156", "0.4443" ], [ "0.3945", "0.4395", "0.4224", "0.4395", "0.4224", "0.4463", "0.3945", "0.4463" ], [ "0.5156", "0.443", "0.914", "0.4443", "0.914", "0.4583", "0.5156", "0.457" ], [ "0.517", "0.4583", "0.9126", "0.4583", "0.9126", "0.4717", "0.517", "0.4717" ], [ "0.5156", "0.4702", "0.9126", "0.473", "0.9126", "0.486", "0.5156", "0.4841" ], [ "0.5186", "0.4873", "0.911", "0.4873", "0.911", "0.4976", "0.5186", "0.4976" ], [ "0.1642", "0.4968", "0.4019", "0.4968", "0.4019", "0.5103", "0.1642", "0.5103" ], [ "0.5186", "0.5", "0.914", "0.5", "0.914", "0.513", "0.5186", "0.513" ], [ "0.1013", "0.509", "0.482", "0.509", "0.482", "0.523", "0.1013", "0.523" ], [ "0.517", "0.513", "0.914", "0.513", "0.914", "0.5264", "0.517", "0.5264" ], [ "0.08496", "0.5234", "0.482", "0.5234", "0.482", "0.537", "0.08496", "0.537" ], [ "0.517", "0.528", "0.6562", "0.528", "0.6562", "0.5415", "0.517", "0.5415" ], [ "0.08496", "0.537", "0.482", "0.537", "0.482", "0.5503", "0.08496", "0.5503" ], [ "0.652", "0.547", "0.683", "0.547", "0.683", "0.5596", "0.652", "0.5596" ], [ "0.7974", "0.547", "0.8286", "0.547", "0.8286", "0.5596", "0.7974", "0.5596" ], [ "0.546", "0.552", "0.5923", "0.5537", "0.591", "0.5684", "0.544", "0.5664" ], [ "0.08496", "0.5503", "0.2018", "0.5503", "0.2018", "0.5645", "0.08496", "0.5645" ], [ "0.6055", "0.561", "0.6396", "0.561", "0.6396", "0.5728", "0.6055", "0.5728" ], [ "0.6567", "0.561", "0.681", "0.561", "0.681", "0.5728", "0.6567", "0.5728" ], [ "0.746", "0.561", "0.778", "0.561", "0.778", "0.5728", "0.746", "0.5728" ], [ "0.8022", "0.56", "0.8267", "0.56", "0.8267", "0.5728", "0.8022", "0.5728" ], [ "0.851", "0.5625", "0.876", "0.5625", "0.876", "0.571", "0.851", "0.571" ], [ "0.701", "0.5625", "0.7236", "0.5625", "0.7236", "0.571", "0.701", "0.571" ], [ "0.10297", "0.5645", "0.482", "0.5645", "0.482", "0.5776", "0.10297", "0.5776" ], [ "0.5557", "0.5737", "0.5864", "0.5737", "0.5864", "0.586", "0.5557", "0.586" ], [ "0.603", "0.5737", "0.642", "0.5737", "0.642", "0.5854", "0.603", "0.5854" ], [ "0.738", "0.5737", "0.785", "0.5737", "0.785", "0.5854", "0.738", "0.5854" ], [ "0.794", "0.5747", "0.834", "0.5747", "0.834", "0.5854", "0.794", "0.5854" ], [ "0.8433", "0.5728", "0.8857", "0.5728", "0.8857", "0.587", "0.8433", "0.587" ], [ "0.6978", "0.5757", "0.7295", "0.5757", "0.7295", "0.584", "0.6978", "0.584" ], [ "0.08417", "0.5776", "0.482", "0.579", "0.482", "0.5923", "0.08417", "0.5913" ], [ "0.653", "0.5757", "0.6846", "0.5757", "0.6846", "0.584", "0.653", "0.584" ], [ "0.5557", "0.586", "0.5864", "0.586", "0.5864", "0.5977", "0.5557", "0.5977" ], [ "0.603", "0.586", "0.642", "0.586", "0.642", "0.5977", "0.603", "0.5977" ], [ "0.74", "0.587", "0.785", "0.587", "0.785", "0.5977", "0.74", "0.5977" ], [ "0.796", "0.587", "0.835", "0.587", "0.835", "0.5977", "0.796", "0.5977" ], [ "0.8423", "0.586", "0.8823", "0.586", "0.8823", "0.5977", "0.8423", "0.5977" ], [ "0.6978", "0.5884", "0.7256", "0.5884", "0.7256", "0.5967", "0.6978", "0.5967" ], [ "0.08496", "0.5913", "0.482", "0.5913", "0.482", "0.605", "0.08496", "0.605" ], [ "0.6543", "0.5884", "0.6846", "0.5884", "0.6846", "0.5967", "0.6543", "0.5967" ], [ "0.596", "0.5986", "0.835", "0.5986", "0.835", "0.6123", "0.596", "0.6123" ], [ "0.08496", "0.606", "0.482", "0.606", "0.482", "0.619", "0.08496", "0.619" ], [ "0.08496", "0.619", "0.482", "0.619", "0.482", "0.6333", "0.08496", "0.6333" ], [ "0.5312", "0.6235", "0.914", "0.625", "0.914", "0.6396", "0.5312", "0.638" ], [ "0.0866", "0.6353", "0.4436", "0.6353", "0.4436", "0.646", "0.0866", "0.646" ], [ "0.517", "0.6396", "0.914", "0.6396", "0.914", "0.653", "0.517", "0.653" ], [ "0.1013", "0.648", "0.4805", "0.648", "0.4805", "0.661", "0.1013", "0.661" ], [ "0.5186", "0.655", "0.911", "0.655", "0.911", "0.6655", "0.5186", "0.6655" ], [ "0.0866", "0.661", "0.482", "0.661", "0.482", "0.675", "0.0866", "0.675" ], [ "0.517", "0.6675", "0.9126", "0.6675", "0.9126", "0.681", "0.517", "0.681" ], [ "0.08496", "0.674", "0.4805", "0.674", "0.4805", "0.6875", "0.08496", "0.6875" ], [ "0.517", "0.681", "0.914", "0.681", "0.914", "0.6943", "0.517", "0.6943" ], [ "0.08496", "0.6895", "0.482", "0.6895", "0.482", "0.7026", "0.08496", "0.7026" ], [ "0.5186", "0.6943", "0.914", "0.6943", "0.914", "0.7085", "0.5186", "0.7085" ], [ "0.08496", "0.705", "0.1609", "0.705", "0.1609", "0.7153", "0.08496", "0.7153" ], [ "0.517", "0.707", "0.914", "0.707", "0.914", "0.72", "0.517", "0.72" ], [ "0.1013", "0.7163", "0.482", "0.7163", "0.482", "0.73", "0.1013", "0.73" ], [ "0.517", "0.72", "0.914", "0.72", "0.914", "0.735", "0.517", "0.735" ], [ "0.0825", "0.73", "0.4805", "0.731", "0.4805", "0.744", "0.0825", "0.7437" ], [ "0.5186", "0.735", "0.914", "0.7363", "0.914", "0.75", "0.5186", "0.7485" ], [ "0.08496", "0.744", "0.4805", "0.7456", "0.4805", "0.757", "0.08496", "0.756" ], [ "0.517", "0.75", "0.914", "0.75", "0.914", "0.763", "0.517", "0.763" ], [ "0.0825", "0.757", "0.3308", "0.7583", "0.3308", "0.7715", "0.0825", "0.771" ], [ "0.5156", "0.761", "0.6045", "0.763", "0.6045", "0.778", "0.5156", "0.776" ], [ "0.1013", "0.7715", "0.4836", "0.7715", "0.4836", "0.785", "0.1013", "0.785" ], [ "0.5312", "0.7764", "0.914", "0.778", "0.914", "0.7915", "0.5312", "0.7905" ], [ "0.0866", "0.787", "0.4805", "0.787", "0.4805", "0.7974", "0.0866", "0.7974" ], [ "0.517", "0.7915", "0.914", "0.7915", "0.914", "0.8047", "0.517", "0.8047" ], [ "0.08496", "0.8", "0.482", "0.8", "0.482", "0.813", "0.08496", "0.813" ], [ "0.5156", "0.8047", "0.914", "0.8037", "0.914", "0.8184", "0.5156", "0.8193" ], [ "0.08496", "0.813", "0.482", "0.813", "0.482", "0.827", "0.08496", "0.827" ], [ "0.5156", "0.8174", "0.914", "0.8193", "0.914", "0.834", "0.5156", "0.832" ], [ "0.0866", "0.829", "0.357", "0.829", "0.357", "0.839", "0.0866", "0.839" ], [ "0.517", "0.8354", "0.6846", "0.8354", "0.6846", "0.845", "0.517", "0.845" ], [ "0.1013", "0.8413", "0.482", "0.8413", "0.482", "0.855", "0.1013", "0.855" ], [ "0.08496", "0.855", "0.4805", "0.856", "0.4805", "0.867", "0.08496", "0.866" ], [ "0.517", "0.86", "0.634", "0.8623", "0.634", "0.8755", "0.517", "0.8735" ], [ "0.08417", "0.869", "0.4836", "0.867", "0.4836", "0.881", "0.08417", "0.8833" ], [ "0.517", "0.872", "0.653", "0.872", "0.653", "0.8853", "0.517", "0.8853" ], [ "0.08417", "0.8833", "0.4836", "0.8833", "0.4836", "0.8965", "0.08417", "0.8965" ], [ "0.5156", "0.881", "0.6167", "0.8833", "0.6167", "0.898", "0.5156", "0.896" ] ]
[ "RecNLP2019,January27-28,2019,Hawaii,USA", "Chia-Wei Chen, Sheng-Chuan Chou, and Lun-Wei Ku", "3", "SYSTEMOVERVIEW", "scores", "An overview of our PhrecSys is shown in Fig. 1 The first step is", "BiLSTM-SA [14]. Uses Bi-LSTM followed by a self-attention", "extracting high-quality phrases in each article. For the efficiency", "mechanism comprised of two linear layers with a softmax layer to", "and scalabilityneeded byan automaticgeneral articlerecommen-", "generate multiple probabilities for each timestep.", "dation system, we use Autophrase[2i],a data-driven and distant", "In addition to the recommendation task itself, PhrecSys can visu-", "supervised learning algorithm.", "alizes the learned focus of each article via the attention technique,", "Phrases from Autophrase withscores no lower than0.5 are", "whichhelps models learn to focus on important parts while deal-", "collected as candidates for phrase labeling. In this step, the phrase", "ing with long sequences such as news articles. We then observe", "with the longest length is given a higher priority, i.e., longest match.", "how the model learns with features of different granularity. Here", "Finally, phrases are labeled in each article.", "we select BiLSTM-SA [14] for attention visualization: we store the", "attention weights learned in each training epoch, and then plot the", "tokens in the current article with different color depths according", "PhraseKB", "Visualized", "to their attention weights. Given these different color depths, we", "Phrase", "籍=0.9248 (Mochi)", "can easily perceive which part of the article the model is focusing", "Attention", "Minin", "", "繁合航空=0.9023(UnitedAirlines", "on for recommendation in the training process. Figure 2 shows an", "example; more details are provided below.", "本", "Output", "A", "DATASET", "Content-Based", "Articles", "Phrase", "Two datasets - Central News Agency (CNA)l and Taiwan People", "Recommendation", "System", "News (TPN)2-were provided by our collaborating partner cacaFly3", "for experiments. TPN and CNA are Taiwanese news websites arti-", "V", "Dutput", "cles written in Mandarin", "Input", "Two types of user behavior - clicks and views - are logged.", "Specifically, a View log is recorded when the user reads the current", "Article", "article ac.When the user scrolls to the bottom of the web page to", "reach the recommendations, the partner system interprets this to", "mean that the user has finished reading ac; a Click log is recorded", "whentheuserclicksonanyoftherecommendations.Wegenerate", "Figure 1: PhrecSys system overview", "Click log sequences to predict the articles that the user will click", "The labeling process yields phrase-based articles, that is, articles", "on next, and View log sequences to predict the articles that will be", "injected with phrase information. We apply Glove [19] to train", "read next, accordingly.", "the phrase embeddings for the next step. Note that punctuation is", "Click", "View", "Dataset", "dropped in articles", "Train", "Val", "Train", "Val", "Test", "Test", "The five content-based recommendation models listed below are", "CNA", "28,950", "635,495", "97,832", "89,498", "4.825", "utilized to evaluate whether the added phrase mining component", "4.825", "TPN", "17,041", "137,029", "21,305", "20,122", "2.841", "really benefits recommendation performance: TextCNN,CDSSM,", "2.841", "Table 1: Click and View article pairs", "MV-LSTM, K-NRM, and BiLSTM-SA. Given the article currently", "being read and a pool of candidate articles, these models generate", "For a Click log sequence, a positive article pair (ac, ar) is gen-", "therecommendationlist orderedbyrecommendation score:", "erated from the article sequence if ai appears in the View log and", "TextCNN. Similar to [11], convolutional neural networks with", "ai+iintheClicklog,1≤ i≤n-1.Asrecencyis oftentakeninto", "different kernel sizes are used to mimic unigram, bigram, and tri-", "account for recommendation [2, 8], we generate no more than the", "gram language models, followed by a max-pooling layer and an", "latest 8 positive pairs per user for experiments if the user has read", "asymmetric cosine similarity layer to calculate the score between", "many articles. For the View log sequence, we select those articles in", "two articles.", "the article sequence with the View log, and pair them to generate it.", "CDSSM [1]. Uses a single convolutional neural network to learn", "That is, (ac, ar) is a pair of successive articles that are both being", "low-dimensional semanticvectors followed by multi-layer percep", "read by the user. Along with each positive pair, there are m nega-", "trons (MLP),after which the normalized dot product is used to", "tive pairs (ac, dr), where the d,'s are the un-clicked recommended", "calculate the score between two articles.", "articles for ac.", "MV-LSTM [22]. Incorporates Bi-LSTM to capture contextual-", "Let I be the number of article pairs in each user's log sequence.", "ized local informationineachpositional sentenceandthen usesthe", "For each user's Click or View log sequence, the last article pair", "normalized dot product to generate an interaction tensor. K-Max", "(ac,ar), is for testing, the second-to-last is for validation, and the", "pooling is used to obtain the top-k important information, after", "rest are for training. Table 1 shows the statistics of the training.", "whichMLP isusedtoproducethefinal score", "validation, and testing data.", "K-NRM [4]. A kernel-based neural model for document ranking", "which uses a translation matrix that models word-level similarities", "\"http:/www.cna.com.tw", "via word embeddings and utilizes kernels to extract multi-level soft-", "2http:/www.peoplenews.tw", "match features. A ranking layer is followed to generate ranking", "3https:/acafly.com" ]
{ "arxiv_id": "1812.01808", "language": "en", "page_idx": 1 }
1812.01808-en-2
1812.01808-en-2.jpg
Enriching Article Recommendation with Phrase Awareness 5 EXPERIMENTS AND RESULTS In this section, we first describe the datasets, model settings, and evaluation metrics, after which we discuss the performance and present the visualization of attention weights during training on word-level and phrase-level systems. Dataset$\mid$CNA TPN Articles $\left|\begin{array}{c|c}257,705&54,033\end{array}\right.$ Table 2: Number of articles in each dataset ## 5.1 Settings and Metrics For each dataset, we pre-train 50-dimensional phrase embeddings and word embeddings with GloVe [19] separately, using only the articles within each dataset. The total number of articles used to train word/phrase embeddings for each dataset are listed in Table 2. Below we describe the parameter settings for different recommendation systems. Note that hinge loss is used as objective function. TextCNN. We set CNN flter number to 32, the maximum article length to 512, and $\alpha$ in the asymmetric cosine to 0.85. During training we used the Adam optimizer with a learning rate of 0.1. CDSSM. We set the CNN filter number to 32 and selected 128 as the MLP output dimension for article semantic representation. During training we used the Adam optimizer with a learning rate of0.01. MV-LSTM. We set the LSTM hidden size to 32 and the top-k value to 512. Two layer MLPs were applied at the end of model, and 64 and 1 were the number of output dimensions respectively. During training we used the Adam optimizer with a learning rate of 0.01. KNRM. We set the kernel number to 32 and the sigma value to 0.05. During training we used the Adam optimizer with a learning rate of 0.001. BiLSTM-SA. We set the LSTM hidden size to 32 for each direction, $d_a$ to 100 for the fully-connected layer inside self-attention, and the attention number $r$ to 15. During training we used the Adam optimizer with a learning rate of 0.01. We adopted several evaluation metrics to fairly evaluate the recommendation performance. To evaluate the performance of recommendation, per the literature we used the mean reciprocal $\operatorname{rank}\left(\mathrm{MRR}\right)[23]$,accuracy$\left(\mathrm{Acc}\right)[7]$,hit ratio at 3$\left(\mathrm{h@}3\right)$,and hit ratio at 5 (h@5) [12]. The hit ratio h@k intuitively measures whether the test item is present in the top-k list. $$\begin{aligned}Acc&=\:\frac{1}{|U|}\sum_{u=1}^{|U|}accuracy(u)\\&&\text{(1}\\accuracy(u)&=\begin{cases}1,&\text{if }Rank(score_{c,\hat{r}})=1\\0,&\text{otherwise}\end{cases}\\h@N&=\frac{1}{|U|}\sum_{u=1}^{|U|}h(u,N).\:h(u,N)=\begin{cases}1,&\text{if }Rank(score_{c,\hat{r}})\leq N\\0,&\text{otherwise}\end{cases}\end{aligned}$$ Assuming $|U|$ testing instances in the testing set, each testing instance $u\in U$ contained one positive pair $(a_c,\hat{a}_r)$ and $m$ negative RecNLP 2019, January 27-28, 2019, Hawaii, USA pairs $(a_c,\v{a}_r).$ The average MRR was calculated as $$MRR=\frac{1}{|U|}\sum\limits_{u=1}^{|U|}\frac{1}{Rank(score_{c,\hat{r}})},$$ (3) where Rank(score$_c,\hat{r})$ was the rank of the positive pair score among all scores of pairs in $u.$ 5.2 Recommendation Performance We examined the performance on two datasets (News\_1,News\_2), both of which exhibit two types of behavior- Click and View. The five models described in Section 3 and 5.1 were evaluated to compare their performance with and without phrase mining: the results are shown in Table 3. For the prediction of the next clicked article (the article that the user clicks on next), most models are slightly enhanced by phrase mining. However, for the next viewed article (the article that the user reads next), the performance of all models is improved significantly when leveraging phrase-level features. This may be because text content might not be the first priority to users when clicking, as eye-catching titles or images may hold a special attraction. In this case, though phrases capture the key points of an article, their benefit is limited. For view prediction, in contrast, the text content is essential. We observe that a large amount of views come from websites other than the current news media and very often from search engines. In these cases, the users' intention is clearly a specific topic that interests them and hence they tend to read contents that are logically related successively. Another reason is that as users read through the current article, its content becomes a important factor in the surfing history. The notable enhancement of phrase-level features shows that phrases can enhance the model's ability to learn the relatedness of contents between articles. # 5.3 Visualization To visualize the focus points being learned by the model, we record the attention weights of composite units (words or phrases plus words) of the current article in each training epoch and observe their change over time. Figure 2 shows the effect of phrase information. Figure 2a is the article parsed and trained with phrase-level units, whereas Figure 2b is the article parsed and trained with word-level units. The attention weights of epoch 5 illustrate the overall result: when phrase information is provided, attention weights saturate $\dot{\text{to a reasonable number of units. In comparison, without phrase}}$ mining, weights are evenly distributed, with no obvious key units to be found in the visualization. Comparing Figure 2a and Figure 2b from Epochs 1 and 3 to Epoch 5, we observe that the attention weights are both evenly distributed and show no particular focus on anything in the beginning. Later, in Epoch 3, training with phrase-level features causes weights to be more concentrated and accurately focused on meaningful parts; finally, in Epoch 5, training with phrase-level information successfully leads to fewer but more informative cues. We conclude that phrases contain more compact information and are more easily utilized for recommendation models.
[ [ "0.08826", "0.0745", "0.4429", "0.0745", "0.4429", "0.0852", "0.08826", "0.0852" ], [ "0.6216", "0.07135", "0.9126", "0.0726", "0.9126", "0.0871", "0.6216", "0.0859" ], [ "0.08496", "0.1061", "0.367", "0.1061", "0.367", "0.1193", "0.08496", "0.1193" ], [ "0.5146", "0.1067", "0.818", "0.1061", "0.818", "0.1206", "0.5146", "0.1218" ], [ "0.08496", "0.125", "0.482", "0.125", "0.482", "0.1383", "0.08496", "0.1383" ], [ "0.08496", "0.1395", "0.4836", "0.1395", "0.4836", "0.1528", "0.08496", "0.1528" ], [ "0.6733", "0.1477", "0.6855", "0.1477", "0.6855", "0.159", "0.6733", "0.159" ], [ "0.694", "0.1427", "0.714", "0.1427", "0.714", "0.1559", "0.694", "0.1559" ], [ "0.08417", "0.1528", "0.4836", "0.154", "0.4836", "0.1674", "0.08417", "0.1666" ], [ "0.6177", "0.154", "0.665", "0.1559", "0.664", "0.1704", "0.6167", "0.1686" ], [ "0.7563", "0.1497", "0.767", "0.1497", "0.767", "0.1604", "0.7563", "0.1604" ], [ "0.697", "0.1572", "0.706", "0.1572", "0.706", "0.1622", "0.697", "0.1622" ], [ "0.8945", "0.1559", "0.915", "0.1559", "0.915", "0.1704", "0.8945", "0.1704" ], [ "0.706", "0.161", "0.808", "0.1642", "0.808", "0.1787", "0.706", "0.1755" ], [ "0.6665", "0.159", "0.7183", "0.1686", "0.7134", "0.1843", "0.661", "0.1749" ], [ "0.08417", "0.1666", "0.3105", "0.1666", "0.3105", "0.1799", "0.08417", "0.1799" ], [ "0.1993", "0.1863", "0.3628", "0.1863", "0.3628", "0.2008", "0.1993", "0.2008" ], [ "0.1993", "0.2039", "0.3677", "0.2039", "0.3677", "0.2172", "0.1993", "0.2172" ], [ "0.5156", "0.2008", "0.914", "0.202", "0.914", "0.2166", "0.5156", "0.2153" ], [ "0.1405", "0.2184", "0.4248", "0.2184", "0.4248", "0.2317", "0.1405", "0.2317" ], [ "0.517", "0.2166", "0.6562", "0.2166", "0.6562", "0.2299", "0.517", "0.2299" ], [ "0.5156", "0.2393", "0.814", "0.238", "0.814", "0.2524", "0.5156", "0.254" ], [ "0.08417", "0.2507", "0.2917", "0.2507", "0.2917", "0.2644", "0.08417", "0.2644" ], [ "0.5156", "0.2568", "0.914", "0.2583", "0.914", "0.2715", "0.5156", "0.2708" ], [ "0.08496", "0.2683", "0.482", "0.2683", "0.482", "0.2822", "0.08496", "0.2822" ], [ "0.5156", "0.2715", "0.914", "0.2715", "0.914", "0.2854", "0.5156", "0.2854" ], [ "0.08417", "0.2822", "0.482", "0.2822", "0.482", "0.2954", "0.08417", "0.2954" ], [ "0.517", "0.2854", "0.914", "0.2854", "0.914", "0.2986", "0.517", "0.2986" ], [ "0.08496", "0.2974", "0.482", "0.2974", "0.482", "0.308", "0.08496", "0.308" ], [ "0.5156", "0.2998", "0.914", "0.2998", "0.914", "0.3132", "0.5156", "0.3132" ], [ "0.08496", "0.31", "0.4836", "0.31", "0.4836", "0.324", "0.08496", "0.324" ], [ "0.5156", "0.3132", "0.6914", "0.3132", "0.6914", "0.327", "0.5156", "0.327" ], [ "0.0866", "0.3257", "0.482", "0.3257", "0.482", "0.336", "0.0866", "0.336" ], [ "0.5317", "0.327", "0.914", "0.327", "0.914", "0.3403", "0.5317", "0.3403" ], [ "0.08496", "0.3384", "0.4805", "0.3384", "0.4805", "0.3516", "0.08496", "0.3516" ], [ "0.5156", "0.3416", "0.914", "0.3416", "0.914", "0.3547", "0.5156", "0.3547" ], [ "0.10297", "0.3516", "0.4836", "0.3516", "0.4836", "0.3655", "0.10297", "0.3655" ], [ "0.5156", "0.3547", "0.9126", "0.3547", "0.9126", "0.3687", "0.5156", "0.3687" ], [ "0.08417", "0.3643", "0.4836", "0.3662", "0.4836", "0.3801", "0.08417", "0.3774" ], [ "0.517", "0.3687", "0.9126", "0.3687", "0.9126", "0.3818", "0.517", "0.3818" ], [ "0.08417", "0.3801", "0.4763", "0.3801", "0.4763", "0.3933", "0.08417", "0.3933" ], [ "0.517", "0.3818", "0.914", "0.3818", "0.914", "0.3958", "0.517", "0.3958" ], [ "0.5156", "0.3958", "0.914", "0.3965", "0.914", "0.4104", "0.5156", "0.4092" ], [ "0.1013", "0.4072", "0.482", "0.4072", "0.482", "0.4204", "0.1013", "0.4204" ], [ "0.517", "0.4104", "0.914", "0.4104", "0.914", "0.4236", "0.517", "0.4236" ], [ "0.08496", "0.4216", "0.482", "0.4216", "0.482", "0.435", "0.08496", "0.435" ], [ "0.5186", "0.4255", "0.9126", "0.4255", "0.9126", "0.4363", "0.5186", "0.4363" ], [ "0.08417", "0.435", "0.482", "0.435", "0.482", "0.449", "0.08417", "0.449" ], [ "0.517", "0.4395", "0.914", "0.4395", "0.914", "0.4495", "0.517", "0.4495" ], [ "0.08496", "0.4495", "0.1299", "0.4495", "0.1299", "0.461", "0.08496", "0.461" ], [ "0.517", "0.452", "0.914", "0.452", "0.914", "0.4653", "0.517", "0.4653" ], [ "0.1013", "0.4622", "0.482", "0.4622", "0.482", "0.476", "0.1013", "0.476" ], [ "0.5186", "0.4673", "0.9126", "0.4673", "0.9126", "0.4778", "0.5186", "0.4778" ], [ "0.08496", "0.4778", "0.4805", "0.4778", "0.4805", "0.488", "0.08496", "0.488" ], [ "0.517", "0.4797", "0.9126", "0.4797", "0.9126", "0.4937", "0.517", "0.4937" ], [ "0.08417", "0.4905", "0.4836", "0.4905", "0.4836", "0.504", "0.08417", "0.504" ], [ "0.517", "0.4937", "0.9126", "0.4937", "0.9126", "0.507", "0.517", "0.507" ], [ "0.0825", "0.5024", "0.482", "0.504", "0.482", "0.518", "0.0825", "0.5176" ], [ "0.517", "0.509", "0.911", "0.509", "0.911", "0.5195", "0.517", "0.5195" ], [ "0.08496", "0.518", "0.1299", "0.518", "0.1299", "0.53", "0.08496", "0.53" ], [ "0.5186", "0.523", "0.9126", "0.523", "0.9126", "0.5327", "0.5186", "0.5327" ], [ "0.10297", "0.532", "0.4805", "0.532", "0.4805", "0.5454", "0.10297", "0.5454" ], [ "0.5156", "0.534", "0.914", "0.534", "0.914", "0.5474", "0.5156", "0.5474" ], [ "0.08417", "0.5444", "0.482", "0.547", "0.482", "0.56", "0.08417", "0.558" ], [ "0.517", "0.549", "0.914", "0.549", "0.914", "0.5625", "0.517", "0.5625" ], [ "0.08496", "0.56", "0.1626", "0.56", "0.1626", "0.5713", "0.08496", "0.5713" ], [ "0.5186", "0.5645", "0.875", "0.5645", "0.875", "0.5747", "0.5186", "0.5747" ], [ "0.1013", "0.5737", "0.4805", "0.5737", "0.4805", "0.587", "0.1013", "0.587" ], [ "0.08496", "0.587", "0.482", "0.587", "0.482", "0.601", "0.08496", "0.601" ], [ "0.08417", "0.601", "0.4836", "0.601", "0.4836", "0.6143", "0.08417", "0.6143" ], [ "0.517", "0.5977", "0.6665", "0.5977", "0.6665", "0.6113", "0.517", "0.6113" ], [ "0.0866", "0.616", "0.3513", "0.616", "0.3513", "0.627", "0.0866", "0.627" ], [ "0.5186", "0.6157", "0.9126", "0.6157", "0.9126", "0.6255", "0.5186", "0.6255" ], [ "0.10297", "0.63", "0.4795", "0.63", "0.4795", "0.64", "0.10297", "0.64" ], [ "0.5186", "0.63", "0.9126", "0.63", "0.9126", "0.64", "0.5186", "0.64" ], [ "0.08417", "0.6426", "0.4836", "0.6426", "0.4836", "0.656", "0.08417", "0.656" ], [ "0.5156", "0.643", "0.914", "0.643", "0.914", "0.657", "0.5156", "0.657" ], [ "0.0866", "0.6577", "0.4805", "0.6577", "0.4805", "0.6685", "0.0866", "0.6685" ], [ "0.517", "0.657", "0.914", "0.657", "0.914", "0.6704", "0.517", "0.6704" ], [ "0.0866", "0.672", "0.4805", "0.672", "0.4805", "0.6816", "0.0866", "0.6816" ], [ "0.5186", "0.6724", "0.9126", "0.6724", "0.9126", "0.683", "0.5186", "0.683" ], [ "0.08417", "0.6846", "0.4836", "0.6846", "0.4836", "0.6978", "0.08417", "0.6978" ], [ "0.5186", "0.686", "0.9126", "0.686", "0.9126", "0.6963", "0.5186", "0.6963" ], [ "0.08496", "0.6997", "0.3228", "0.6997", "0.3228", "0.7104", "0.08496", "0.7104" ], [ "0.5156", "0.6987", "0.914", "0.6978", "0.914", "0.711", "0.5156", "0.712" ], [ "0.2754", "0.7197", "0.2942", "0.7197", "0.2942", "0.7344", "0.2754", "0.7344" ], [ "0.5186", "0.714", "0.911", "0.714", "0.911", "0.7246", "0.5186", "0.7246" ], [ "0.2524", "0.7266", "0.267", "0.7266", "0.267", "0.7363", "0.2524", "0.7363" ], [ "0.2754", "0.731", "0.2893", "0.731", "0.2893", "0.7393", "0.2754", "0.7393" ], [ "0.517", "0.726", "0.914", "0.726", "0.914", "0.7393", "0.517", "0.7393" ], [ "0.2075", "0.7344", "0.2443", "0.7344", "0.2443", "0.7456", "0.2075", "0.7456" ], [ "0.246", "0.7373", "0.298", "0.7373", "0.298", "0.761", "0.246", "0.761" ], [ "0.286", "0.7344", "0.3694", "0.732", "0.3694", "0.747", "0.286", "0.7485" ], [ "0.2695", "0.7437", "0.2834", "0.7437", "0.2834", "0.7476", "0.2695", "0.7476" ], [ "0.517", "0.7393", "0.914", "0.7393", "0.914", "0.7524", "0.517", "0.7524" ], [ "0.4617", "0.752", "0.4836", "0.752", "0.4836", "0.765", "0.4617", "0.765" ], [ "0.517", "0.755", "0.71", "0.755", "0.71", "0.765", "0.517", "0.765" ], [ "0.2507", "0.761", "0.407", "0.763", "0.407", "0.78", "0.2507", "0.778" ], [ "0.1584", "0.7734", "0.2402", "0.7734", "0.2402", "0.785", "0.1584", "0.785" ], [ "0.5317", "0.7676", "0.914", "0.7676", "0.914", "0.781", "0.5317", "0.781" ], [ "0.25", "0.781", "0.343", "0.779", "0.343", "0.7935", "0.25", "0.7954" ], [ "0.517", "0.781", "0.914", "0.781", "0.914", "0.7944", "0.517", "0.7944" ], [ "0.517", "0.7954", "0.914", "0.7954", "0.914", "0.8096", "0.517", "0.8096" ], [ "0.1724", "0.8096", "0.1929", "0.8096", "0.1929", "0.8228", "0.1724", "0.8228" ], [ "0.3342", "0.813", "0.4697", "0.8145", "0.4697", "0.83", "0.3342", "0.829" ], [ "0.5156", "0.8096", "0.914", "0.8096", "0.914", "0.8228", "0.5156", "0.8228" ], [ "0.1708", "0.8174", "0.304", "0.8213", "0.3022", "0.8403", "0.1691", "0.836" ], [ "0.312", "0.8184", "0.33", "0.8184", "0.33", "0.827", "0.312", "0.827" ], [ "0.3325", "0.821", "0.3367", "0.821", "0.3367", "0.8257", "0.3325", "0.8257" ], [ "0.5156", "0.8213", "0.914", "0.8228", "0.914", "0.837", "0.5156", "0.836" ], [ "0.1584", "0.815", "0.165", "0.821", "0.1584", "0.8257", "0.152", "0.821" ], [ "0.09644", "0.8237", "0.1405", "0.8237", "0.1405", "0.8354", "0.09644", "0.8354" ], [ "0.1447", "0.8237", "0.1978", "0.8335", "0.1929", "0.853", "0.1396", "0.8433" ], [ "0.3096", "0.8335", "0.339", "0.8335", "0.339", "0.845", "0.3096", "0.845" ], [ "0.3342", "0.8335", "0.4004", "0.8335", "0.4004", "0.8447", "0.3342", "0.8447" ], [ "0.517", "0.837", "0.914", "0.837", "0.914", "0.851", "0.517", "0.851" ], [ "0.4631", "0.8477", "0.4836", "0.8477", "0.4836", "0.8613", "0.4631", "0.8613" ], [ "0.517", "0.851", "0.914", "0.851", "0.914", "0.8643", "0.517", "0.8643" ], [ "0.08496", "0.867", "0.4836", "0.867", "0.4836", "0.881", "0.08496", "0.881" ], [ "0.5186", "0.866", "0.9126", "0.866", "0.9126", "0.877", "0.5186", "0.877" ], [ "0.08496", "0.882", "0.482", "0.882", "0.482", "0.896", "0.08496", "0.896" ], [ "0.517", "0.88", "0.74", "0.88", "0.74", "0.89", "0.517", "0.89" ] ]
[ "EnrichingArticleRecommendationwithPhraseAwareness", "RecNLP2019,January27-28,2019,Hawaii,US", "5EXPERIMENTS AND RESULTS", "pairs (ac, a,). The average MRR was calculated as", "In this section, we first describe the datasets, model settings, and", "evaluation metrics, after which we discuss the performance and", "1", "[Ul", "present thevisualization ofattention weights during training on", "MRR=", "1", "1", "(3)", "Rank(scorec,p)", "UE", "word-level and phrase-level systems.", "Dataset| CNA TPN", "Articles257,70554,033", "where Rank(scorec.)was the rank of the positive pair score among", "Table 2: Number of articles in each dataset", "all scores of pairs in u.", "5.2 RecommendationPerformance", "5.1 Settings and Metrics", "Weexaminedthe performanceon twodatasets (News_1, News_2),", "For each dataset, we pre-train 50-dimensional phrase embeddings", "both of which exhibit two types of behavior - Click and View.", "and word embeddings with GloVe [19] separately, using only the", "The five models described in Section 3 and 5.1 were evaluated to", "articles within each dataset.The total number of articles used to", "compare their performance with and without phrase mining: the", "train word/phrase embeddings for each dataset are listed in Table 2.", "results are shown in Table 3.", "Belowwedescribetheparametersettingsfordifferentrecommen-", "For the prediction of the next clicked article (the article that the", "dation systems. Note that hinge loss is used as objective function.", "user clicks on next), most models are slightly enhanced by phrase", "TextCNN. We set CNN filter number to 32, the maximum arti-", "mining. However, for the next viewed article (the article that the", "cle lengthto512,and α in theasymmetric cosine to0.85.During", "user reads next), the performance of all models is improved signif", "training we used the Adam optimizer with a learning rate of o.1.", "cantly when leveraging phrase-level features. This may be because", "text content might not be the first priority to users when clicking,", "CDSSM. We set the CNN filter number to 32 and selected 128", "as eye-catching titles or images may hold a special attraction. In", "as the MLP output dimension for article semantic representation.", "this case, thoughphrases capturethekey points of an article,their", "During training we used the Adam optimizer with a learning rate", "benefit is limited.For view prediction, in contrast, thetext con-", "of 0.01.", "tent is essential. We observe that a large amount of views come", "MV-LSTM. We set the LSTM hidden size to 32 and the top-k", "fromwebsitesotherthanthe currentnewsmediaand very often", "valueto512.TwolayerMLPswereapplied attheendof model", "from search engines. In these cases, the users intention is clearly", "and 64 and 1 were the number of output dimensions respectively.", "a specific topic that interests them and hence they tend to read", "During training we used the Adam optimizer with a learning rate", "contents that are logically related successively.Another reason is", "of 0.01.", "that as users read through the current article,its content becomes a", "KNRM. We set the kernel number to 32 and the sigma value to", "important factor in the surfing history. The notable enhancement of", "0.05.During training weused the Adam optimizer with a learning", "phrase-level features shows that phrases can enhance the model's", "rate of 0.001", "ability tolearn therelatedness of contents between articles.", "BiLSTM-SA. We set the LSTM hidden size to 32 for each direc-", "tion, da to 10o for the fully-connected layer inside self-attention", "and the attention number r to 15. During training we used the", "5.3Visualization", "Adam optimizer with alearningrate of 0.01.", "Tovisualizethefocus pointsbeing learned bythe model we record", "We adopted several evaluationmetrics to fairly evaluate the", "the attention weights of composite units (words or phrases plus", "recommendation performance.To evaluate the performance of", "words) of the current article in each training epoch and observe their", "recommendation,pertheliteratureweusedthemeanreciprocal", "change over time. Figure 2 shows the effect of phrase information.", "rank(MRR)[23],accuracy (Acc)[7l,hitratioat3(h@3),andhitratio", "Figure 2a is the article parsed and trained with phrase-level units.", "at 5 (h@5) [12]. The hit ratio h@k intuitively measures whether", "whereas Figure2b is the articleparsed and trained withword-level", "the test item is present in thetop-k list.", "units. The attention weights of epoch 5 illustrate the overall result:", "U]", "whenphraseinformationisprovided,attentionweights saturate", "1", "1", "to a reasonable number of units. In comparison, without phrase", "Acc =", "可", "accuracy(u)", "", "mining, weights are evenly distributed, with no obvious key units", "(1)", "to be found in the visualization.", "(1, if Rank(scorec,P)= 1", "accuracy(u)=", "Comparing Figure 2a and Figure 2b from Epochs 1 and 3 to Epoch", "[o,otherwise", "5, we observe that the attention weights are both evenly distributed", "and show no particular focus on anything in the beginning. Later,", "lUl", "if Rank(scorec,P)≤N", "in Epoch 3, training with phrase-level features causes weights to", "h(u, N). h(u, N) =", "1,", "", "be more concentrated and accurately focused on meaningful parts;", "1", "h@N-", "可台", "0,", "otherwise", "finally, in Epoch 5, training with phrase-level information success-", "(2)", "fully leads to fewer but more informative cues. We conclude that", "Assuming |Ul testing instances in the testing set, each testing in-", "phrases contain more compact information and aremoreeasily", "stance u e U contained one positive pair (ac, ar) and m negative", "utilized forrecommendationmodels." ]
{ "arxiv_id": "1812.01808", "language": "en", "page_idx": 2 }
2312.09913-en-1
2312.09913-en-1.jpg
facts in the non-edited regions. Other editing approaches support recoloring a NeRF by remapping individual colors [11,20,48],try to extract modifiable material quantities for re-rendering [5,49], or apply style transfer [13,53]. Virtually all approaches in these domains do not support controllable local edits, i.e., they always also introduce global changes, which constrains their viability to the theoretical domain and impedes their applicability in practice. At the same time, most approaches struggle with high memory requirements and long compute times, further hampering their use. Ultimately, no method currently enables simultaneous style transfer and interactive recoloring. To address the previously discussed limitations, we propose LAENeRF, a method for local appearance editing of pre-trained NeRFs. Choosing NeRFShop[16] and Instant-NGP (iNGP) [29] as building blocks, we use a 3- dimensional grid, a subset of iNGP's occupancy grid, as our primitive for selecting scene content. Due to the region growing procedure inherited from NeRFShop, which relies on a growing queue storing direct neighbors, we can model smooth transitions to content adjacent to our selection, resulting in more visually appealing edits. Inspired by previous recoloring approaches [11,20], we introduce a novel NeRF-like module designed to learn a palette-based decomposition of colors within a selected region. In contrast to previous work, we estimate a per-ray termination point resulting in a point cloud which represents the editable region. This design decision reduces memory requirements and increases performance drastically. We feed these points into our neural LAENeRF module, which learns a palette-based decomposition by jointly optimizing two MLPs and a set of base colors to reconstruct the selected region (see Fig. 1). As LAENeRF learns a function in 3D space, we can implicitly ensure multi-view consistency and prune outliers. The learned set of colors may be modified after optimization to enable interactive recoloring. By providing a style loss during reconstruction, LAENeRF can stylize the selected region, while keeping its recoloring abilities and processing time low. We propose several novel losses to generate high-fidelity results while respecting the learned 3D geometry and extracting an intuitive color decomposition. Finally, we generate a modified training dataset by blending our edited region with the original training dataset and fine-tune the pre-trained NeRF. Our experiments demonstrate that LAENeRF is not only the first interactive approach for NeRF appearance editing, but also qualitatively and quantitatively outperforms previous methods for local recoloring and stylization. In summary, we make the following contributions: (1) We combine photorealistic and non-photorealistic ap- pearance edits for NeRFs into a unified framework. (2) We propose the first interactive approach for local, recol- orable stylization of arbitrary regions in NeRFs. (3) We propose a new architecture and novel regularizers for efficient, geometry-aware 3D stylization. ## $2. \textbf{Related Work}$ Photorealistic Appearance Editing i.e. recoloring for NeRFs, modifies the underlying material colors, without changing textures or lighting. For this task, several methods [11,20,43,48] learn a decomposition into a set of base colors with barycentric weights and per-pixel offsets with additive layer mixing [37,38]. This color palette can be modified interactively during inference. Orthogonally, several approaches recover the material properties directly [5,41,44,45,49,52]. To further enable local recoloring, feature felds can be jointly optimized during training [19]. PaletteNeRF [20] incorporates this idea, allowing end users to guide recoloring given the selection of a single reference point. However, this approach limits the end user when performing local edits and is prone to introducing artefacts. ICE-NeRF [23] performs local recoloring by modifying the most significant weights in the color MLP of a trained NeRF, given per-image annotations of foreground and background. This approach works well for bounded or forward-facing scenes, but struggles for unbounded, 360° captures due to the large 3D space. In comparison to all previous methods, our approach ensures that edits remain local and provides an intuitive interface to artists. Non-Photorealistic Appearance Editing for NeRFs modifies textures as well as material properties. Leveraging image style transfer [9, 10, 14], recent methods apply perceptual losses [9,17] to radiance fields. Among these, several propose separate modules for color and style[7,13,15,32] or progressively stylize a trained NeRF scene [31,46,50,54]. Another line of works utilizes two separate NeRFs, one for reconstruction and one for style [2, 12, 47]. Recent methods have also investigated modifiable stylization: Pang et al.[32] can generate different versions of the same style by utilizing a hash grid [29] with modifiable hash coefficients. StyleRF[25] utilizes a feature field for global, zero-shot stylization. Ref-NPR [53] faithfully propagates the style of a reference image to a pre-trained NeRF. Our approach requires significantly less memory and compute resources, leads to higher multi-viewconsistency, allows to apply style transfer only locally, and enables recoloring of the stylized radiance field within an interactive framework. # $3. \textbf{Preliminaries}$ In this section, we revisit volumetric rendering with NeRFs and outline our procedure for region selection. 2
[ [ "0.0801", "0.09216", "0.4714", "0.09216", "0.4714", "0.1061", "0.0801", "0.1061" ], [ "0.4958", "0.09216", "0.892", "0.09216", "0.892", "0.1061", "0.4958", "0.1061" ], [ "0.0801", "0.1067", "0.468", "0.1067", "0.468", "0.1218", "0.0801", "0.1218" ], [ "0.523", "0.108", "0.7935", "0.108", "0.7935", "0.1218", "0.523", "0.1218" ], [ "0.0801", "0.1225", "0.4697", "0.1225", "0.4697", "0.1364", "0.0801", "0.1364" ], [ "0.0801", "0.1383", "0.468", "0.1383", "0.468", "0.1515", "0.0801", "0.1515" ], [ "0.5034", "0.1433", "0.6406", "0.1433", "0.6406", "0.1578", "0.5034", "0.1578" ], [ "0.0784", "0.1515", "0.468", "0.1528", "0.468", "0.1674", "0.0784", "0.1666" ], [ "0.0801", "0.1674", "0.468", "0.1674", "0.468", "0.1812", "0.0801", "0.1812" ], [ "0.5034", "0.1704", "0.8906", "0.1704", "0.8906", "0.1849", "0.5034", "0.1849" ], [ "0.0801", "0.1831", "0.468", "0.1831", "0.468", "0.1963", "0.0801", "0.1963" ], [ "0.5024", "0.1863", "0.892", "0.1863", "0.892", "0.1995", "0.5024", "0.1995" ], [ "0.0801", "0.1989", "0.4697", "0.1989", "0.4697", "0.2122", "0.0801", "0.2122" ], [ "0.5024", "0.202", "0.8906", "0.202", "0.8906", "0.2153", "0.5024", "0.2153" ], [ "0.0801", "0.2134", "0.468", "0.2134", "0.468", "0.2267", "0.0801", "0.2267" ], [ "0.5034", "0.2184", "0.8906", "0.2184", "0.8906", "0.2291", "0.5034", "0.2291" ], [ "0.0801", "0.2291", "0.4697", "0.2291", "0.4697", "0.2424", "0.0801", "0.2424" ], [ "0.5024", "0.2317", "0.892", "0.2317", "0.892", "0.2456", "0.5024", "0.2456" ], [ "0.0801", "0.2437", "0.4697", "0.2437", "0.4697", "0.2568", "0.0801", "0.2568" ], [ "0.5024", "0.2474", "0.892", "0.2474", "0.892", "0.2615", "0.5024", "0.2615" ], [ "0.0801", "0.2588", "0.3406", "0.2588", "0.3406", "0.2727", "0.0801", "0.2727" ], [ "0.5024", "0.262", "0.892", "0.262", "0.892", "0.276", "0.5024", "0.276" ], [ "0.0972", "0.276", "0.468", "0.276", "0.468", "0.289", "0.0972", "0.289" ], [ "0.5024", "0.2778", "0.8906", "0.2778", "0.8906", "0.2917", "0.5024", "0.2917" ], [ "0.0801", "0.2903", "0.468", "0.2903", "0.468", "0.3037", "0.0801", "0.3037" ], [ "0.5024", "0.2922", "0.8906", "0.2922", "0.8906", "0.3062", "0.5024", "0.3062" ], [ "0.0801", "0.3062", "0.4697", "0.3062", "0.4697", "0.3193", "0.0801", "0.3193" ], [ "0.5034", "0.308", "0.892", "0.308", "0.892", "0.3213", "0.5034", "0.3213" ], [ "0.0801", "0.3208", "0.468", "0.3208", "0.468", "0.334", "0.0801", "0.334" ], [ "0.5024", "0.3225", "0.892", "0.3225", "0.892", "0.336", "0.5024", "0.336" ], [ "0.0809", "0.3372", "0.468", "0.3372", "0.468", "0.348", "0.0809", "0.348" ], [ "0.5024", "0.3372", "0.892", "0.3372", "0.892", "0.3516", "0.5024", "0.3516" ], [ "0.0801", "0.351", "0.468", "0.351", "0.468", "0.3643", "0.0801", "0.3643" ], [ "0.5024", "0.3528", "0.892", "0.3516", "0.892", "0.3655", "0.5024", "0.3662" ], [ "0.0801", "0.3662", "0.4697", "0.3662", "0.4697", "0.3801", "0.0801", "0.3801" ], [ "0.5024", "0.3687", "0.8906", "0.3687", "0.8906", "0.3818", "0.5024", "0.3818" ], [ "0.0801", "0.3806", "0.4697", "0.3806", "0.4697", "0.3945", "0.0801", "0.3945" ], [ "0.5024", "0.3833", "0.8906", "0.3833", "0.8906", "0.3965", "0.5024", "0.3965" ], [ "0.0801", "0.3965", "0.468", "0.3965", "0.468", "0.4104", "0.0801", "0.4104" ], [ "0.5024", "0.3977", "0.892", "0.3977", "0.892", "0.411", "0.5024", "0.411" ], [ "0.0784", "0.411", "0.3423", "0.4104", "0.3423", "0.4248", "0.0784", "0.4255" ], [ "0.5024", "0.4136", "0.892", "0.4136", "0.892", "0.4268", "0.5024", "0.4268" ], [ "0.0972", "0.428", "0.468", "0.4268", "0.468", "0.4414", "0.0972", "0.4426" ], [ "0.5034", "0.4287", "0.892", "0.4287", "0.892", "0.4426", "0.5034", "0.4426" ], [ "0.0801", "0.443", "0.4697", "0.443", "0.4697", "0.457", "0.0801", "0.457" ], [ "0.5034", "0.443", "0.888", "0.443", "0.888", "0.457", "0.5034", "0.457" ], [ "0.0809", "0.4602", "0.4673", "0.4602", "0.4673", "0.4702", "0.0809", "0.4702" ], [ "0.5024", "0.459", "0.892", "0.459", "0.892", "0.473", "0.5024", "0.473" ], [ "0.0801", "0.4749", "0.468", "0.4749", "0.468", "0.488", "0.0801", "0.488" ], [ "0.5034", "0.4734", "0.892", "0.4734", "0.892", "0.4873", "0.5034", "0.4873" ], [ "0.0801", "0.488", "0.4697", "0.488", "0.4697", "0.502", "0.0801", "0.502" ], [ "0.5024", "0.4893", "0.83", "0.4893", "0.83", "0.5024", "0.5024", "0.5024" ], [ "0.0801", "0.504", "0.468", "0.504", "0.468", "0.5176", "0.0801", "0.5176" ], [ "0.0801", "0.518", "0.468", "0.518", "0.468", "0.532", "0.0801", "0.532" ], [ "0.0809", "0.535", "0.4673", "0.535", "0.4673", "0.5454", "0.0809", "0.5454" ], [ "0.5034", "0.535", "0.892", "0.535", "0.892", "0.549", "0.5034", "0.549" ], [ "0.0784", "0.549", "0.468", "0.55", "0.468", "0.563", "0.0784", "0.5625" ], [ "0.5024", "0.55", "0.8906", "0.5503", "0.8906", "0.565", "0.5024", "0.5645" ], [ "0.0809", "0.565", "0.4673", "0.565", "0.4673", "0.5757", "0.0809", "0.5757" ], [ "0.5024", "0.5664", "0.8906", "0.5664", "0.8906", "0.58", "0.5024", "0.58" ], [ "0.0801", "0.579", "0.4697", "0.579", "0.4697", "0.5923", "0.0801", "0.5923" ], [ "0.5034", "0.5806", "0.892", "0.5806", "0.892", "0.595", "0.5034", "0.595" ], [ "0.0801", "0.5947", "0.468", "0.5947", "0.468", "0.608", "0.0801", "0.608" ], [ "0.5024", "0.5967", "0.892", "0.5967", "0.892", "0.61", "0.5024", "0.61" ], [ "0.0809", "0.6113", "0.468", "0.6113", "0.468", "0.622", "0.0809", "0.622" ], [ "0.501", "0.61", "0.8906", "0.61", "0.8906", "0.6235", "0.501", "0.6235" ], [ "0.0768", "0.6235", "0.468", "0.625", "0.468", "0.6396", "0.0768", "0.638" ], [ "0.5024", "0.627", "0.892", "0.627", "0.892", "0.64", "0.5024", "0.64" ], [ "0.09644", "0.64", "0.468", "0.6416", "0.468", "0.656", "0.09644", "0.655" ], [ "0.5024", "0.6416", "0.8906", "0.6416", "0.8906", "0.655", "0.5024", "0.655" ], [ "0.0784", "0.655", "0.468", "0.657", "0.468", "0.6704", "0.0784", "0.6685" ], [ "0.5034", "0.657", "0.892", "0.657", "0.892", "0.6704", "0.5034", "0.6704" ], [ "0.0801", "0.672", "0.4697", "0.672", "0.4697", "0.685", "0.0801", "0.685" ], [ "0.5024", "0.672", "0.8906", "0.672", "0.8906", "0.685", "0.5024", "0.685" ], [ "0.0801", "0.686", "0.468", "0.686", "0.468", "0.6997", "0.0801", "0.6997" ], [ "0.5034", "0.688", "0.8896", "0.688", "0.8896", "0.6987", "0.5034", "0.6987" ], [ "0.0801", "0.702", "0.468", "0.702", "0.468", "0.7153", "0.0801", "0.7153" ], [ "0.5034", "0.702", "0.892", "0.702", "0.892", "0.7153", "0.5034", "0.7153" ], [ "0.0809", "0.7183", "0.468", "0.7183", "0.468", "0.729", "0.0809", "0.729" ], [ "0.5034", "0.7183", "0.8896", "0.7183", "0.8896", "0.729", "0.5034", "0.729" ], [ "0.0784", "0.731", "0.468", "0.732", "0.468", "0.747", "0.0784", "0.7456" ], [ "0.501", "0.731", "0.892", "0.732", "0.892", "0.747", "0.501", "0.7456" ], [ "0.0784", "0.747", "0.4697", "0.7456", "0.4697", "0.7603", "0.0784", "0.761" ], [ "0.501", "0.747", "0.8906", "0.747", "0.8906", "0.7603", "0.501", "0.7603" ], [ "0.0809", "0.7646", "0.4697", "0.7646", "0.4697", "0.7744", "0.0809", "0.7744" ], [ "0.5034", "0.7646", "0.8896", "0.7646", "0.8896", "0.7744", "0.5034", "0.7744" ], [ "0.0801", "0.778", "0.4697", "0.778", "0.4697", "0.7915", "0.0801", "0.7915" ], [ "0.501", "0.7764", "0.8896", "0.7764", "0.8896", "0.7905", "0.501", "0.7905" ], [ "0.0809", "0.7935", "0.468", "0.7935", "0.468", "0.8066", "0.0809", "0.8066" ], [ "0.5034", "0.7944", "0.8906", "0.7944", "0.8906", "0.8047", "0.5034", "0.8047" ], [ "0.0801", "0.808", "0.3406", "0.808", "0.3406", "0.8213", "0.0801", "0.8213" ], [ "0.5024", "0.808", "0.652", "0.808", "0.652", "0.8213", "0.5024", "0.8213" ], [ "0.0989", "0.8247", "0.4387", "0.8247", "0.4387", "0.8384", "0.0989", "0.8384" ], [ "0.07434", "0.8403", "0.4673", "0.8403", "0.4673", "0.855", "0.07434", "0.855" ], [ "0.5024", "0.8433", "0.638", "0.8433", "0.638", "0.858", "0.5024", "0.858" ], [ "0.1013", "0.858", "0.4355", "0.858", "0.4355", "0.8687", "0.1013", "0.8687" ], [ "0.07434", "0.872", "0.468", "0.872", "0.468", "0.886", "0.07434", "0.886" ], [ "0.5024", "0.872", "0.892", "0.872", "0.892", "0.8853", "0.5024", "0.8853" ], [ "0.1013", "0.887", "0.415", "0.887", "0.415", "0.901", "0.1013", "0.901" ], [ "0.5024", "0.887", "0.808", "0.887", "0.808", "0.901", "0.5024", "0.901" ], [ "0.478", "0.9224", "0.4944", "0.9224", "0.4944", "0.938", "0.478", "0.938" ] ]
[ "facts in the non-edited regions. Other editing approaches", "(3) We propose a new architecture and novel regularizers for", "support recoloring a NeRF by remapping individual col-", "efficient, geometry-aware 3D stylization.", "ors [11, 20, 48], try to extract modifiable material quantities", "for re-rendering [5, 49], or apply style transfer [13, 53]. Vir-", "2.Related Work", "tually all approaches in these domains do not support con-", "trollable local edits, i.e., they always also introduce global", "Photorealistic Appearance Editing ie. recoloring for", "changes, which constrains their viability to the theoretical", "NeRFs, modifies the underlying material colors, without", "domain and impedes their applicability in practice. At the", "changing textures or lighting: For this task, several meth-", "same time, most approaches struggle with high memory re-", "ods[11,20,43,48learn adecomposition intoa setof", "quirements and long compute times, further hampering their", "base colors with barycentric weights and per-pixel offsets", "use. Ultimately, no method currently enables simultaneous", "with additive layer mixing [37, 38].This color palette", "style transfer and interactive recoloring.", "can be modified interactively during inference. Orthogo-", "To address the previously discussed limitations, we pro-", "nally, several approaches recover the material properties di-", "pose LAENeRF, a method for local appearance editing", "rectly [5, 41, 44, 45, 49, 52]. To further enable local recol-", "of pre-trained NeRFs. Choosing NeRFShop [16] and", "oring, feature fields can be jointly optimized during train-", "Instant-NGP (iNGP) [29] as building blocks, we use a 3-", "ing [19]. PaletteNeRF [20] incorporates this idea, allowing", "dimensional grid, a subset of iNGP's occupancy grid, as", "end users to guide recoloring given the selection of a sin-", "our primitive for selecting scene content. Due to the region", "gle reference point. However, this approach limits the end", "growing procedure inherited from NeRFShop, which relies", "user when performing local edits and is prone to introduc-", "on a growing queue storing direct neighbors, we can model", "ing artefacts. ICE-NeRF [23] performs local recoloring by", "smooth transitions to content adjacent to our selection, re-", "modifying the most significant weights in the color MLP of", "sulting in more visually appealing edits.", "a trained NeRF, given per-image annotations of foreground", "Inspired by previous recoloring approaches [11, 20], we", "and background. This approach works well for bounded or", "introduce a novel NeRF-like module designed to learn a", "forward-facing scenes, but struggles for unbounded, 360°", "palette-baseddecompositionof colors withina selectedre-", "captures due to the large 3D space. In comparison to all", "gion. In contrast to previous work, we estimate a per-ray", "previous methods, our approach ensures that edits remain", "termination point resulting in a point cloud which represents", "local and provides an intuitive interface to artists.", "the editable region. This design decision reduces mem-", "ory requirements and increases performance drastically. We", "feed thesepointsinto ourneuralLAENeRFmodule.which", "Non-Photorealistic Appearance Editing for NeRFs", "learns a palette-based decomposition by jointly optimizing", "modifies textures as well as material properties. Leverag-", "two MLPs and a set of base colors to reconstruct the se-", "ing image style transfer [9, 10, 14], recent methods ap-", "lected region (see Fig. I). As LAENeRF learns a function", "ply perceptual losses [9, 17] to radiance fields. Among", "in 3D space, we can implicitly ensure multi-view consis-", "these, several propose separate modules for color and", "tency and prune outliers.The learned set of colors may be", "style [7, 13, 15, 32] or progressively stylize a trained NeRF", "modified after optimization to enable interactive recoloring.", "scene[31,46,50,54].Another lineof worksutilizes", "By providing a style loss during reconstruction,", "two separate NeRFs, one for reconstruction and one for", "LAENeRF can stylize the selected region, whilekeeping", "style [2, 12, 47]. Recent methods have also investigated", "its recoloring abilities and processing time low. We propose", "modifiable stylization: Pang et al. [32] can generate differ-", "several novel losses to generate high-fidelity results while", "entversionsof the samestylebyutilizingahashgrid[29]", "respecting the learned 3D geometry and extracting an intu-", "with modifiable hash coefficients. StyleRF [25] utilizes a", "itivecolordecomposition.Finally,wegenerateamodified", "featurefieldforglobal,zero-shotstylization.Ref-NPR[53]", "training dataset by blending our edited region with the orig-", "faithfully propagates the style of a reference image to a", "inal training dataset and fine-tune the pre-trained NeRF. Our", "pre-trained NeRF. Our approach requires significantly less", "experimentsdemonstratethatLAENeRFisnotonlythefirst", "memoryandcomputeresources,leadstohighermulti-view-", "interactive approach for NeRF appearance editing, but also", "consistency, allows to apply style transfer only locally, and", "qualitatively and quantitatively outperforms previous meth-", "enablesrecoloring of the stylized radiancefield within an", "ods for local recoloring and stylization.", "interactiveframework.", "In summary, we make the following contributions:", "(1) We combine photorealistic and non-photorealistic ap-", "3.Preliminaries", "pearanceeditsforNeRFs intoaunified framework.", "(2) We propose the first interactive approach for local, recol-", "In this section, we revisit volumetric rendering with NeRFs", "orable stylization of arbitrary regions in NeRFs.", "and outline our procedure for region selection.", "2" ]
{ "arxiv_id": "2312.09913", "language": "en", "page_idx": 1 }
2312.09913-en-2
2312.09913-en-2.jpg
Neural Radiance Fields. NeRFs[28] learn a function $$\Theta_{\mathrm{NeRF}}:\mathbb{R}^5\to\mathbb{R}^4,\:(p,d)\mapsto(c,\sigma),$$ (1) where $\boldsymbol p=(x,y,z)$ and $\boldsymbol d=(\theta,\phi)$ denote the sample position and viewing direction, $c\in[0,1]^3$ denotes the predicted output color and $\sigma\in\mathbb{R}_+$ denotes the predicted volumetric density. For each pixel, positions $\boldsymbol{r}(t)=\boldsymbol{o}+t\boldsymbol{d}$ along a ray from the camera position $o$ in the direction $d$ are sampled. At $N$ points $t_i:0<i\leq N$ along $r$ between the near and far plane, the colors and density are evaluated and composed using volumetric rendering: $$\hat{\mathcal{C}}(\boldsymbol{r})=\sum_{i=1}^NT_i(1-\exp(-\sigma_i\delta_i))\boldsymbol{c}_i,$$ (2) where $\delta_i=t_{i+1}-t_i$ and the transmittance $T_i$ is given as $$T_i=\exp\left(-\sum_{j=1}^{i-1}\sigma_j\delta_j\right).$$ (3) Through this fully differentiable pipeline, $\Theta_\mathrm{NeRF}$ can be optimized with$\sum_{r\in\mathcal{R}}\|\hat{\mathcal{C}}(r)-\mathcal{C}(\boldsymbol{r})\|_{2}^{2}$for a set of rays $\hat{\mathcal{R}}$, where $\mathcal{C}(\boldsymbol{r})$ denotes the ground truth color. With a trained $\Theta_{\mathrm{NeRF}}$, we can compute the estimated depth $\zeta$ using (4) $$\zeta=\sum_{i=1}^NT_i(1-\exp(-\sigma_i\delta_i))t_{i+1},$$ which we use to compute the estimated ray termination (5) $$x_{\mathrm{term}}=o+\zeta d.$$ Region Selection with NeRFShop. NeRFShop [16] leverages a voxel grid, akin to the occupancy grid $\mathcal{O}$ of iNGP[29], to select arbitrary content in iNGP-based radiance felds. The occupancy grid of iNGP is an acceleration structure, discretizing the bounded domain into uniformly sized voxels, with a value of 0 or 1 describing the expected density within this voxel. We utilize this concept with our edit grid $\mathcal{E}$, following NeRFShop[16]. To facilitate region selection, the user scribbles on the projection of the 3D scene on the screen. Subsequently, for each selected pixel, a ray is cast and the estimated ray termination $x_\mathrm{term}$ is computed with Eq.(5). Next, we map each $x_\mathrm{term}$ to the nearest voxel in our edit grid $\mathcal{E}$ and set the corresponding bit in the underlying bitfeld. For intuitive selection, we support user-controlled region growing from the selected voxels, by adding the neighboring voxels to a growing queue $\mathcal{G}.$ During region growing, we add the current voxel to $\mathcal{E}$ and its neighbors to $\mathcal{G}$ if the $\mathcal{O}$ is set. Through this workflow, we offer an intuitive method for content selection within iNGP's hybrid representation. ### $4. \textbf{LAENeRF}$ Our key insight is that we can reduce computational requirements by optimizing a lightweight, NeRF-like network given 3D positions $x_\mathrm{term}$, which represents a local, edited region. Starting from $\mathcal{E}$ defined by the user, we extract $x_{\mathrm{term}}$ for all training views, optimize LAENeRF and transfer the changes to $\Theta_\mathrm{NeRF}$ with an efficient distillation step. We present our network architecture in Fig.2. $x_\mathrm{term}$ is featurized using a trainable multi-resolution hash grid[29]. The $\begin{array}{l}\text{encoded input }\xi(x_{\mathrm{term}})\text{ is subsequently passed to shallow}\\\text{MLPs to predict per-ray barycentric weights }\hat{\boldsymbol{w}}\in[0,1]^{N_{\dot{\varphi}}}\end{array}$ and view-dependent offsets $\hat{\boldsymbol{\delta}}\in[-1,1]^3$, where $N_{\hat{\boldsymbol{\rho}}}$ denotes the size of the learnable color palette $\hat{\mathcal{P}}\in\mathbb{R}^{\tilde{N}_{\hat{\boldsymbol{p}}}\times3}.$ Finally, we compose our output color as (6) $$\hat{\boldsymbol{c}}=\mathrm{clamp}\left(\hat{\boldsymbol{w}}^{T}\hat{\boldsymbol{P}}+\hat{\boldsymbol{\delta}}\right).$$ We featurize $d$ using a spherical harmonics encoding [8,44] and use this as an additional input to our offset network. Input: Estimated Ray Termination. As can be seen in Fig. 2, LAENeRF learns a mapping from $x_\mathrm{term}$ to estimated output color $\hat{c}.$ However, we only require $x_\mathrm{term}$ of rays $r$ which intersect $\mathcal{E}$. To correctly handle occlusions and mitigate errors due to the edit grid resolution, we require the alpha accumulated inside the edit grid $T_\alpha$ to be larger than $\tau_{\mathrm{edit}}=0.5$, where we define $T_\alpha$ as $$T_\alpha=\sum_{i=1}^N\mathbb{1}(\boldsymbol{o}+t_i\boldsymbol{d}\in\mathcal{E})\:T_i(1-\exp(-\sigma_i\delta_i)),$$ (7) with $1(\cdot)$ denoting the indicator function. To obtain accurate depth estimates $\zeta$, requiring the full accumulation of alpha, we simultaneously raymarch through both $\mathcal{E}$ and the occupancy grid $\mathcal{O}$, computing $\zeta$ within the occupancy grid. Style and Content Losses. As is common in image style transfer [9, 17], we use separate losses for content and style: (8) $$\begin{aligned}\mathcal{L}_{\mathrm{content}}&=\|\hat{c}-C(r)\|_{2}^{2},\\\mathcal{L}_{\mathrm{style}}&=\lambda_{\mathrm{style}}\|G(s)-G(\hat{c})\|_{2}^{2},\end{aligned}$$ (9) where $s$ denotes an arbitrary style image and $G(\cdot)$ denotes the gram matrix [9] of a feature extracted from a semantic encoder, $e.g.$ VGG19 [36]. Crucially, we can perform photorealistic recoloring by setting $\lambda_\mathrm{style}=0$, where LAENeRF learns to reconstruct the selected region due to Eq. (8). Geometry-preserving Losses for Stylization. We notice that when we perform non-photorealistic stylization of 3D regions using only $\mathcal{L}_\mathrm{content}$ and $\mathcal{L}_\mathrm{style}$, small structures are 3
[ [ "0.0801", "0.0903", "0.4495", "0.09155", "0.4495", "0.1061", "0.0801", "0.1048" ], [ "0.5034", "0.0903", "0.613", "0.0903", "0.613", "0.1048", "0.5034", "0.1048" ], [ "0.1544", "0.11743", "0.3945", "0.11743", "0.3945", "0.1351", "0.1544", "0.1351" ], [ "0.4468", "0.1206", "0.4697", "0.1206", "0.4697", "0.1338", "0.4468", "0.1338" ], [ "0.5024", "0.11615", "0.8906", "0.11615", "0.8906", "0.13", "0.5024", "0.13" ], [ "0.501", "0.1307", "0.892", "0.13", "0.892", "0.1445", "0.501", "0.1459" ], [ "0.0809", "0.1465", "0.468", "0.1465", "0.468", "0.161", "0.0809", "0.161" ], [ "0.501", "0.1465", "0.892", "0.1459", "0.892", "0.1604", "0.501", "0.161" ], [ "0.0801", "0.1622", "0.4697", "0.1622", "0.4697", "0.1768", "0.0801", "0.1768" ], [ "0.501", "0.1622", "0.892", "0.161", "0.892", "0.1749", "0.501", "0.1755" ], [ "0.0801", "0.178", "0.468", "0.178", "0.468", "0.1913", "0.0801", "0.1913" ], [ "0.501", "0.1755", "0.892", "0.1749", "0.892", "0.1895", "0.501", "0.1901" ], [ "0.0801", "0.1932", "0.4697", "0.1932", "0.4697", "0.207", "0.0801", "0.207" ], [ "0.501", "0.1913", "0.892", "0.1901", "0.892", "0.2052", "0.501", "0.2058" ], [ "0.0801", "0.2084", "0.468", "0.2084", "0.468", "0.2216", "0.0801", "0.2216" ], [ "0.5024", "0.207", "0.8906", "0.207", "0.8906", "0.2203", "0.5024", "0.2203" ], [ "0.0801", "0.2235", "0.4697", "0.2235", "0.4697", "0.2374", "0.0801", "0.2374" ], [ "0.501", "0.2203", "0.892", "0.2216", "0.892", "0.2361", "0.501", "0.2349" ], [ "0.0801", "0.238", "0.4697", "0.238", "0.4697", "0.252", "0.0801", "0.252" ], [ "0.5034", "0.2374", "0.8906", "0.2374", "0.8906", "0.252", "0.5034", "0.252" ], [ "0.0784", "0.254", "0.335", "0.254", "0.335", "0.2676", "0.0784", "0.2676" ], [ "0.5024", "0.252", "0.888", "0.252", "0.888", "0.2651", "0.5024", "0.2651" ], [ "0.5034", "0.2683", "0.8906", "0.2683", "0.8906", "0.2822", "0.5034", "0.2822" ], [ "0.2181", "0.2822", "0.2296", "0.2822", "0.2296", "0.286", "0.2181", "0.286" ], [ "0.1544", "0.289", "0.392", "0.2903", "0.392", "0.308", "0.1544", "0.307" ], [ "0.5024", "0.2854", "0.8896", "0.2827", "0.8896", "0.2974", "0.5024", "0.2998" ], [ "0.4468", "0.2922", "0.4697", "0.2922", "0.4697", "0.3062", "0.4468", "0.3062" ], [ "0.5034", "0.3005", "0.767", "0.3005", "0.767", "0.315", "0.5034", "0.315" ], [ "0.2133", "0.3093", "0.2361", "0.3093", "0.2361", "0.3208", "0.2133", "0.3208" ], [ "0.0809", "0.3308", "0.455", "0.3308", "0.455", "0.3452", "0.0809", "0.3452" ], [ "0.6094", "0.3289", "0.773", "0.3257", "0.773", "0.3447", "0.6094", "0.348" ], [ "0.869", "0.332", "0.892", "0.332", "0.892", "0.3467", "0.869", "0.3467" ], [ "0.2917", "0.3643", "0.304", "0.3643", "0.304", "0.3706", "0.2917", "0.3706" ], [ "0.5034", "0.361", "0.8906", "0.361", "0.8906", "0.3757", "0.5034", "0.3757" ], [ "0.1896", "0.375", "0.2467", "0.375", "0.2467", "0.3865", "0.1896", "0.3865" ], [ "0.3064", "0.3774", "0.3308", "0.3774", "0.3308", "0.3865", "0.3064", "0.3865" ], [ "0.4453", "0.375", "0.4697", "0.375", "0.4697", "0.3882", "0.4453", "0.3882" ], [ "0.5034", "0.379", "0.8677", "0.379", "0.8677", "0.3894", "0.5034", "0.3894" ], [ "0.2834", "0.3926", "0.3057", "0.3926", "0.3057", "0.3997", "0.2834", "0.3997" ], [ "0.0801", "0.414", "0.4673", "0.4153", "0.4673", "0.43", "0.0801", "0.4287" ], [ "0.5034", "0.4104", "0.892", "0.4104", "0.892", "0.4236", "0.5034", "0.4236" ], [ "0.0784", "0.43", "0.4697", "0.43", "0.4697", "0.4475", "0.0784", "0.4475" ], [ "0.5024", "0.4255", "0.892", "0.4255", "0.892", "0.44", "0.5024", "0.44" ], [ "0.0801", "0.4458", "0.4697", "0.4443", "0.4697", "0.459", "0.0801", "0.4602" ], [ "0.5034", "0.4414", "0.892", "0.4414", "0.892", "0.455", "0.5034", "0.455" ], [ "0.0809", "0.461", "0.4207", "0.461", "0.4207", "0.476", "0.0809", "0.476" ], [ "0.5034", "0.4558", "0.892", "0.4558", "0.892", "0.4697", "0.5034", "0.4697" ], [ "0.5034", "0.4717", "0.892", "0.4717", "0.892", "0.4849", "0.5034", "0.4849" ], [ "0.1993", "0.4905", "0.2115", "0.4905", "0.2115", "0.4944", "0.1993", "0.4944" ], [ "0.5034", "0.486", "0.8936", "0.486", "0.8936", "0.5", "0.5034", "0.5" ], [ "0.1887", "0.4976", "0.3865", "0.4988", "0.3865", "0.5166", "0.1887", "0.515" ], [ "0.4436", "0.4988", "0.4714", "0.4988", "0.4714", "0.515", "0.4436", "0.515" ], [ "0.5024", "0.5005", "0.732", "0.5005", "0.732", "0.515", "0.5024", "0.515" ], [ "0.1969", "0.518", "0.2141", "0.518", "0.2141", "0.5264", "0.1969", "0.5264" ], [ "0.1626", "0.502", "0.1969", "0.5", "0.1978", "0.512", "0.1642", "0.5146" ], [ "0.572", "0.529", "0.5884", "0.5234", "0.5933", "0.5327", "0.5767", "0.5386" ], [ "0.0801", "0.5386", "0.4436", "0.537", "0.4436", "0.552", "0.0801", "0.553" ], [ "0.5293", "0.539", "0.5728", "0.539", "0.5728", "0.5537", "0.5293", "0.5537" ], [ "0.564", "0.537", "0.8486", "0.539", "0.8486", "0.5537", "0.564", "0.552" ], [ "0.8667", "0.5405", "0.8906", "0.5405", "0.8906", "0.553", "0.8667", "0.553" ], [ "0.574", "0.558", "0.5933", "0.558", "0.5933", "0.5664", "0.574", "0.5664" ], [ "0.2197", "0.5664", "0.3284", "0.5664", "0.3284", "0.5806", "0.2197", "0.5806" ], [ "0.4453", "0.5674", "0.4697", "0.5674", "0.4697", "0.5806", "0.4453", "0.5806" ], [ "0.505", "0.5776", "0.8896", "0.5776", "0.8896", "0.5923", "0.505", "0.5923" ], [ "0.0809", "0.5996", "0.468", "0.5996", "0.468", "0.613", "0.0809", "0.613" ], [ "0.5034", "0.595", "0.8906", "0.595", "0.8906", "0.606", "0.5034", "0.606" ], [ "0.5034", "0.6094", "0.892", "0.6094", "0.892", "0.6226", "0.5034", "0.6226" ], [ "0.0801", "0.6157", "0.4697", "0.6157", "0.4697", "0.629", "0.0801", "0.629" ], [ "0.0801", "0.629", "0.4673", "0.629", "0.4673", "0.6426", "0.0801", "0.6426" ], [ "0.5024", "0.625", "0.892", "0.625", "0.892", "0.638", "0.5024", "0.638" ], [ "0.0784", "0.6445", "0.4697", "0.643", "0.4697", "0.6577", "0.0784", "0.659" ], [ "0.0801", "0.66", "0.4673", "0.66", "0.4673", "0.674", "0.0801", "0.674" ], [ "0.5034", "0.657", "0.892", "0.657", "0.892", "0.6704", "0.5034", "0.6704" ], [ "0.0801", "0.675", "0.468", "0.675", "0.468", "0.688", "0.0801", "0.688" ], [ "0.5024", "0.6724", "0.892", "0.6724", "0.892", "0.686", "0.5024", "0.686" ], [ "0.0801", "0.69", "0.4697", "0.69", "0.4697", "0.704", "0.0801", "0.704" ], [ "0.0784", "0.704", "0.335", "0.705", "0.335", "0.7197", "0.0784", "0.7183" ], [ "0.5864", "0.7134", "0.7427", "0.7134", "0.7427", "0.731", "0.5864", "0.731" ], [ "0.864", "0.714", "0.892", "0.711", "0.8945", "0.729", "0.8677", "0.732" ], [ "0.0989", "0.72", "0.468", "0.72", "0.468", "0.7344", "0.0989", "0.7344" ], [ "0.596", "0.733", "0.806", "0.732", "0.806", "0.75", "0.596", "0.7505" ], [ "0.869", "0.735", "0.8936", "0.735", "0.8936", "0.7485", "0.869", "0.7485" ], [ "0.0784", "0.75", "0.4673", "0.7505", "0.4673", "0.765", "0.0784", "0.7646" ], [ "0.0801", "0.7363", "0.468", "0.7363", "0.468", "0.75", "0.0801", "0.75" ], [ "0.0801", "0.7666", "0.468", "0.7666", "0.468", "0.781", "0.0801", "0.781" ], [ "0.505", "0.762", "0.892", "0.762", "0.892", "0.7764", "0.505", "0.7764" ], [ "0.0784", "0.781", "0.4714", "0.78", "0.4714", "0.7944", "0.0784", "0.7954" ], [ "0.5024", "0.7764", "0.892", "0.7764", "0.892", "0.7905", "0.5024", "0.7905" ], [ "0.0801", "0.797", "0.4697", "0.797", "0.4697", "0.81", "0.0801", "0.81" ], [ "0.5024", "0.7925", "0.8906", "0.7925", "0.8906", "0.8066", "0.5024", "0.8066" ], [ "0.0801", "0.811", "0.4697", "0.811", "0.4697", "0.8247", "0.0801", "0.8247" ], [ "0.5", "0.806", "0.8936", "0.8047", "0.8936", "0.8228", "0.5", "0.8237" ], [ "0.0801", "0.827", "0.468", "0.827", "0.468", "0.8403", "0.0801", "0.8403" ], [ "0.5024", "0.8237", "0.8594", "0.8237", "0.8594", "0.837", "0.5024", "0.837" ], [ "0.0801", "0.8413", "0.468", "0.8413", "0.468", "0.855", "0.0801", "0.855" ], [ "0.0809", "0.858", "0.468", "0.858", "0.468", "0.8687", "0.0809", "0.8687" ], [ "0.5034", "0.856", "0.892", "0.856", "0.892", "0.8706", "0.5034", "0.8706" ], [ "0.0801", "0.872", "0.4714", "0.872", "0.4714", "0.8853", "0.0801", "0.8853" ], [ "0.5024", "0.872", "0.892", "0.872", "0.892", "0.8853", "0.5024", "0.8853" ], [ "0.0784", "0.886", "0.46", "0.887", "0.46", "0.901", "0.0784", "0.8994" ], [ "0.5024", "0.887", "0.892", "0.887", "0.892", "0.9014", "0.5024", "0.9014" ], [ "0.4763", "0.9253", "0.4902", "0.9224", "0.4944", "0.935", "0.4805", "0.938" ] ]
[ "Neural Radiance Fields.NeRFs [28] learn a function", "4.LAENeRF", "ONeRF : R5 → R4, (P, d) -→(c,0),", "(1)", "Our key insight is that we can reduce computational re-", "quirements by optimizing a lightweight, NeRF-like network", "where p = (α, y, z) and d = (0, ) denote the sample posi-", "given 3D positions term, which represents a local, edited", "tion and viewing direction, c [0, 1j3 denotes the predicted", "region.Startingfromdefinedbytheuser,weextract", "output color and E R+ denotes the predicted volumetric", "term for all training views, optimize LAENeRF and transfer", "density. For each pixel, positions r(t) = o + td along a", "the changes to NeRF with an efficient distillation step. We", "ray from the camera position o in the direction d are sam-", "present our network architecture in Fig. 2. term is featur-", "pled. At N points t : O < i ≤ N along r between the", "ized using a trainable multi-resolution hash grid [29]. The", "near and far plane, the colors and density are evaluated and", "encoded input s(term) is subsequently passed to shallow", "composed using volumetric rendering:", "MLPs to predict per-ray barycentric weights w e [o, 1]Np", "and view-dependent offsets -1,1]3, where Np de-", "", "C(r) =T;(1 - exp(-oio,))ci,", "notes the size of the learnable color palette P e RNpx3", "(2)", "Finally, we compose our output color as", "i=1", "where d; = ti+1 - t, and the transmittance T, is given as", "=clamp(wTp+)", "(6)", "1", "We featurize d using a spherical harmonics encoding [8, 44]", "T;=exi", "Qi", "(3)", "and use this as an additional inputto our offsetnetwork", "i=1", "Through this fully differentiable pipeline, NeRF can be op-", "Input: Estimated Ray Termination.As can be seen in", "timized with ZreR IIC(r) - C(r) for a set of rays R,", "Fig. 2, LAENeRF learns a mapping from Cterm to estimated", "where C(r) denotes the ground truth color. With a trained", "output color c. However, we only require term of rays r", "OneRF, we can compute the estimated depth C using", "which intersect . To correctly handle occlusions and mit-", "igate errors due to the edit grid resolution, we require the", "N", "alpha accumulated inside the edit grid T& to be larger than", "T(1 -exp(-αio,))ti+1,", "(4)", "Tedit = 0.5, where we define Tα as", "-1", "S=", "N", "which we use to compute the estimated ray termination", "Tα=", "1(o +tid E E) T(1 -exp(-id)),", "(7)", "i=1", "Cterm = o+ Sd.", "(5)", "with 1() denoting the indicator function. To obtain accu-", "Region Selection with NeRFShop. NeRFShop [16]", "rate depth estimates C,requiring the full accumulation of", "alpha, we simultaneously raymarch through both and the", "leverages a voxel grid, akin to the occupancy grid O of", "iNGP [29], to select arbitrary content in iNGP-based radi-", "occupancy grid O, computing within the occupancy grid.", "ance fields. The occupancy grid of iNGP is an acceleration", "structure, discretizing the bounded domain into uniformly", "Style and Content Losses.As is common in image style", "sized voxels, with a value of 0 or 1 describing the expected", "transfer [9, 17], we use separate losses for content and style:", "density within this voxel. We utilize this concept with our", "edit grid , following NeRFShop [16].", "Ccontent = Ilc - C(r)/2,", "(8)", "To facilitate region selection, the user scribbles on the", "Cstyle = 入stylelG(s) - G(e),", "(9)", "each selected pixel, a ray is cast and the estimated ray ter-", "projection of the 3D scene on the screen. Subsequently, for", "mination term is computed with Eq. (5). Next, we map", "where s denotes an arbitrary style image and G() denotes", "each cterm to the nearest voxel in our edit grid and set", "the gram matrix [9] of a feature extracted from a semantic", "the corresponding bit in the underlying bitfield. For intu-", "encoder, e.g. VGG19 [36]. Crucially, we can perform pho-", "itive selection, we support user-controlled region growing", "torealistic recoloring by setting Astyle = O, where LAENeRF", "from the selected voxels, by adding the neighboring vox-", "learns to reconstruct the selected region due to Eq. (8).", "els to a growing queue G. During region growing, we add", "the current voxel to & and its neighbors to G if the O is", "Geometry-preserving Losses for Stylization.We notice", "set. Through this workflow, we offer an intuitive method", "that when we perform non-photorealistic stylization of 3D", "for content selection within iNGP's hybrid representation.", "regions using only Lcontent and Cstyle, small structures are", "3" ]
{ "arxiv_id": "2312.09913", "language": "en", "page_idx": 2 }
2312.09913-en-4
2312.09913-en-4.jpg
We construct per-ray transition weights $d_\mathrm{trans}\in[0,1]$ with (17) $$d_{\mathrm{trans}}=1-\frac{\min(d_{\mathrm{min}},\tau_{\mathrm{dist}})}{\tau_{\mathrm{dist}}},$$ where $\tau_\mathrm{dist}$ is a hyperparameter controlling the size of the transition, which we usually set to $1\times10^{-2}$, depending on the scale of the scene. As can be seen in Fig. 3, we interpolate the original color palette $\hat{\mathcal{P}}$ and the user-modified color palette $\hat{\mathcal{P}}_{\mathrm{mod}}$ based on $d_\mathrm{trans}$ to get a realistic color transition. For stylization, we additionally introduce a separate loss, which adds to the content loss when $d_\mathrm{trans}\in(0,1]:$ $$\mathcal{L}_{\mathrm{smooth}}=\lambda_{\mathrm{smooth}}\|(\hat{\boldsymbol{c}}-\boldsymbol{c})^{2}\cdot d_{\mathrm{trans}}\|_{1}.$$ (18) <FigureHere> Figure 3. Illustration of our proposed distance-based palette interpolation scheme: We calculate distance weights $d_\mathrm{trans}$ based on the per-point distance from the edit grid $\mathcal{E}$ to the growing grid $\mathcal{G}.$ When constructing the modified training dataset, we interpolate between learned palette $\hat{\mathcal{P}}$ and modified palette $\hat{\mathcal{P}}_{\mathrm{mod}}$ using $d_\mathrm{trans}.$ # 5. Experiments We use LAENeRF to perform local recoloring and local, recolorable stylization. Datasets. We use three well-established datasets for novel view synthesis in our evaluation. NeRF-Synthetic[28] is a dataset consisting of synthetic objects with complex geometry and non-Lambertian materials. This dataset contains $360^\circ$ captures in a bounded domain with a transparent background. LLFF[27] is a dataset consisting of forwardfacing captures of real-world scenes in high resolution. The mip-NeRF 360 dataset [3] contains $360^{\circ}$ captures of unbounded indoor and outdoor scenes. This provides a challenging scenario for local appearance editing methods due to the large number of distinct objects in the scene and the large 3D space. For LLFF and mip-NeRF 360, we follow related work[20, 23] and downsample the images by a factor of $4\times.$ # 5.1. Photorealistic Appearance Editing For the recoloring task, we compare our method with PaletteNeRF PaletteNeRF[20] and ICE-NeRF [23]. predicts features distilled from an LSeg segmentation model [19,24] to enable local editing. In contrast, ICE-NeRF uses user-guided annotations to recolor a selected region given a target color. Quantitative Evaluation. For the quantitative evaluation, we follow ICE-NeRF [23] and measure the Mean Squared Error (MSE) in the background of the selected region before and after recoloring. In Tab. l, we present this metric for three scenes of the LLFF dataset [27]. The foreground region is described by a mask, which was provided to us by the authors of ICE-NeRF. We perform 7 different recolorings per scene and compare against PaletteNeRF with and without semantic guidance, whereas we also include the numbers from ICE-NeRFl to facilitate crossmethod comparisons. LAENeRF outperforms previous methods for this metric, reducing error rates by $5\hat{9\%}$ compared to PaletteNeRF with semantic guidance. Additionally, we provide the same metric for the indoor scenes of the mip-NeRF 360 dataset[3] in Tab. 2, where we report average results for 7 recolorings per scene. We use Segment Anything[18] to obtain masks for a subset of test set views and compare against PaletteNeRF [20]. We measure MSE compared to the ground truth test images and use the same hyperparameters as PaletteNeRF, which also builds on torch-ngp[40]. As can be seen, LAENeRF after recoloring outperforms non-recolored PaletteNeRF, which we attribute to PaletteNeRF's concurrent scene reconstruction and palette-based decomposition. Due to the fairly accurate $^{1}$ICE-NeRFs' implementation is not yet publicly available. Implementation Details. We build our approach on $torch-ngp$ [40] and use a resolution of 1283 for our edit grid ${\mathcal{E}}$, following iNGP [29]. We train LAENeRF for $1\times10^5$ iterations with previews available after $\sim20$s, and then distill to $\Theta_\mathrm{NeRF}$ for $7\times10^4$ iterations, which takes no longer than 5 minutes in total on an NVIDIA RTX 4090. For LAENeRF, we use a learning rate of $1\times10^{-3}$ for all components, except for $\hat{\mathcal{P}}$,where we use $1\times10^{-2}.$ We initialize $N_{\hat{\mathcal{P}}}=8$, as the use of $\mathcal{L}_{\mathrm{smooth~}}$ requires a large number of base colors. $1.5\times10^{3}$ iterations before training is finished, we remove color palettes which do not contribute significantly. For our style loss, we use a VGG19 backbone[36] and utilize features from conv5, conv6, conv7 for computing $\mathcal{L}_\mathrm{style}.$ When performing stylization, we use $\lambda_\mathrm{style}=1.3\times10^{2},\lambda_\mathrm{TV}=\hat{1}\times10^{-4},\lambda_\mathrm{depth-disc}=$ $5\times10^{-4},\lambda_{\mathrm{weight}}=1\times10^{-7},\lambda_{\mathrm{offset}}=5\times10^{-5},\lambda_{\mathrm{smooth}}=$ $1\times10^{-3}.$ If we want to perform photorealistic recoloring, we set $\lambda_\mathrm{style}=\lambda_\mathrm{TV}=\lambda_\mathrm{depth-disc}=0.$ 5
[ [ "0.0809", "0.09155", "0.4575", "0.09155", "0.4575", "0.1048", "0.0809", "0.1048" ], [ "0.501", "0.0903", "0.63", "0.0903", "0.63", "0.1042", "0.501", "0.1042" ], [ "0.255", "0.11615", "0.3635", "0.11615", "0.3635", "0.1307", "0.255", "0.1307" ], [ "0.5024", "0.11615", "0.8906", "0.11615", "0.8906", "0.13", "0.5024", "0.13" ], [ "0.179", "0.125", "0.2507", "0.125", "0.2507", "0.1395", "0.179", "0.1395" ], [ "0.437", "0.1237", "0.4697", "0.1237", "0.4697", "0.1395", "0.437", "0.1395" ], [ "0.2998", "0.1351", "0.3284", "0.1351", "0.3284", "0.1477", "0.2998", "0.1477" ], [ "0.501", "0.1307", "0.6562", "0.132", "0.6562", "0.1459", "0.501", "0.1445" ], [ "0.0801", "0.154", "0.468", "0.1528", "0.468", "0.1674", "0.0801", "0.1686" ], [ "0.0801", "0.1692", "0.4697", "0.1692", "0.4697", "0.1831", "0.0801", "0.1831" ], [ "0.5024", "0.1642", "0.892", "0.1642", "0.892", "0.178", "0.5024", "0.178" ], [ "0.5024", "0.1787", "0.892", "0.1787", "0.892", "0.1932", "0.5024", "0.1932" ], [ "0.0801", "0.1849", "0.468", "0.1849", "0.468", "0.1989", "0.0801", "0.1989" ], [ "0.5", "0.1932", "0.892", "0.1945", "0.892", "0.209", "0.5", "0.2084" ], [ "0.0801", "0.1995", "0.4697", "0.1995", "0.4697", "0.2134", "0.0801", "0.2134" ], [ "0.0801", "0.2153", "0.4697", "0.2153", "0.4697", "0.2291", "0.0801", "0.2291" ], [ "0.5024", "0.2102", "0.8906", "0.2102", "0.8906", "0.2235", "0.5024", "0.2235" ], [ "0.0784", "0.2291", "0.4697", "0.2299", "0.4697", "0.2443", "0.0784", "0.2437" ], [ "0.5024", "0.2247", "0.892", "0.2247", "0.892", "0.238", "0.5024", "0.238" ], [ "0.0801", "0.2456", "0.4468", "0.2456", "0.4468", "0.26", "0.0801", "0.26" ], [ "0.5024", "0.2405", "0.892", "0.2405", "0.892", "0.254", "0.5024", "0.254" ], [ "0.5024", "0.2556", "0.892", "0.2556", "0.892", "0.2695", "0.5024", "0.2695" ], [ "0.1528", "0.2664", "0.3962", "0.2664", "0.3962", "0.2874", "0.1528", "0.2874" ], [ "0.4387", "0.2708", "0.468", "0.2708", "0.468", "0.2827", "0.4387", "0.2827" ], [ "0.5034", "0.2708", "0.892", "0.2708", "0.892", "0.2842", "0.5034", "0.2842" ], [ "0.5034", "0.2874", "0.8896", "0.2874", "0.8896", "0.2974", "0.5034", "0.2974" ], [ "0.2296", "0.303", "0.2893", "0.305", "0.2876", "0.3193", "0.2279", "0.3176" ], [ "0.5024", "0.3005", "0.892", "0.3005", "0.892", "0.3145", "0.5024", "0.3145" ], [ "0.3406", "0.3062", "0.4453", "0.3062", "0.4453", "0.3164", "0.3406", "0.3164" ], [ "0.1209", "0.3062", "0.1642", "0.3062", "0.1642", "0.3176", "0.1209", "0.3176" ], [ "0.5034", "0.3164", "0.892", "0.3164", "0.892", "0.33", "0.5034", "0.33" ], [ "0.2418", "0.3308", "0.2484", "0.3308", "0.2484", "0.3372", "0.2418", "0.3372" ], [ "0.3064", "0.3289", "0.3186", "0.3289", "0.3186", "0.3416", "0.3064", "0.3416" ], [ "0.5034", "0.3308", "0.8906", "0.3308", "0.8906", "0.3447", "0.5034", "0.3447" ], [ "0.0866", "0.3435", "0.09644", "0.3435", "0.09644", "0.3591", "0.0866", "0.3591" ], [ "0.5024", "0.3447", "0.892", "0.3452", "0.892", "0.3599", "0.5024", "0.3591" ], [ "0.0866", "0.3567", "0.09644", "0.3567", "0.09644", "0.3965", "0.0866", "0.3965" ], [ "0.5034", "0.3623", "0.569", "0.3623", "0.569", "0.3738", "0.5034", "0.3738" ], [ "0.2303", "0.379", "0.2917", "0.379", "0.2917", "0.3894", "0.2303", "0.3894" ], [ "0.5034", "0.385", "0.8", "0.385", "0.8", "0.3997", "0.5034", "0.3997" ], [ "0.5034", "0.4077", "0.892", "0.4077", "0.892", "0.4216", "0.5034", "0.4216" ], [ "0.1177", "0.4185", "0.1969", "0.4185", "0.1969", "0.4287", "0.1177", "0.4287" ], [ "0.2378", "0.4185", "0.3325", "0.4185", "0.3325", "0.4287", "0.2378", "0.4287" ], [ "0.3733", "0.4216", "0.429", "0.4216", "0.429", "0.4287", "0.3733", "0.4287" ], [ "0.5024", "0.4224", "0.892", "0.4224", "0.892", "0.4363", "0.5024", "0.4363" ], [ "0.501", "0.4375", "0.8936", "0.4382", "0.8936", "0.4526", "0.501", "0.452" ], [ "0.501", "0.452", "0.892", "0.4526", "0.892", "0.4673", "0.501", "0.4666" ], [ "0.0809", "0.4634", "0.09644", "0.4622", "0.10046", "0.4924", "0.08496", "0.4937" ], [ "0.5034", "0.4685", "0.8906", "0.4685", "0.8906", "0.4817", "0.5034", "0.4817" ], [ "0.5024", "0.4841", "0.726", "0.4841", "0.726", "0.4976", "0.5024", "0.4976" ], [ "0.5034", "0.5176", "0.8906", "0.5176", "0.8906", "0.531", "0.5034", "0.531" ], [ "0.0801", "0.5264", "0.4673", "0.5264", "0.4673", "0.5405", "0.0801", "0.5405" ], [ "0.5034", "0.534", "0.8906", "0.534", "0.8906", "0.5444", "0.5034", "0.5444" ], [ "0.0801", "0.5415", "0.4697", "0.5415", "0.4697", "0.5547", "0.0801", "0.5547" ], [ "0.5024", "0.5474", "0.892", "0.5474", "0.892", "0.561", "0.5024", "0.561" ], [ "0.0784", "0.5547", "0.4673", "0.5547", "0.4673", "0.5684", "0.0784", "0.5684" ], [ "0.5024", "0.561", "0.892", "0.561", "0.892", "0.5747", "0.5024", "0.5747" ], [ "0.0801", "0.5684", "0.4697", "0.5684", "0.4697", "0.582", "0.0801", "0.582" ], [ "0.0768", "0.582", "0.4673", "0.5835", "0.4673", "0.5977", "0.0768", "0.5967" ], [ "0.5024", "0.577", "0.8906", "0.577", "0.8906", "0.5903", "0.5024", "0.5903" ], [ "0.5034", "0.5923", "0.892", "0.5923", "0.892", "0.606", "0.5034", "0.606" ], [ "0.501", "0.607", "0.892", "0.606", "0.892", "0.6206", "0.501", "0.622" ], [ "0.501", "0.6226", "0.892", "0.622", "0.892", "0.636", "0.501", "0.637" ], [ "0.0801", "0.63", "0.4697", "0.63", "0.4697", "0.6445", "0.0801", "0.6445" ], [ "0.5024", "0.638", "0.892", "0.638", "0.892", "0.6514", "0.5024", "0.6514" ], [ "0.0784", "0.6445", "0.468", "0.643", "0.468", "0.6577", "0.0784", "0.659" ], [ "0.5024", "0.653", "0.892", "0.653", "0.892", "0.6665", "0.5024", "0.6665" ], [ "0.0801", "0.659", "0.468", "0.6577", "0.468", "0.6724", "0.0801", "0.674" ], [ "0.5024", "0.6675", "0.892", "0.6675", "0.892", "0.6816", "0.5024", "0.6816" ], [ "0.0801", "0.675", "0.468", "0.675", "0.468", "0.688", "0.0801", "0.688" ], [ "0.0801", "0.6895", "0.468", "0.6895", "0.468", "0.7026", "0.0801", "0.7026" ], [ "0.5034", "0.685", "0.8896", "0.685", "0.8896", "0.696", "0.5034", "0.696" ], [ "0.5024", "0.6987", "0.892", "0.6987", "0.892", "0.712", "0.5024", "0.712" ], [ "0.0784", "0.705", "0.4714", "0.705", "0.4714", "0.7183", "0.0784", "0.7183" ], [ "0.0801", "0.7183", "0.4673", "0.7183", "0.4673", "0.733", "0.0801", "0.733" ], [ "0.5024", "0.714", "0.8936", "0.714", "0.8936", "0.728", "0.5024", "0.728" ], [ "0.501", "0.7266", "0.8936", "0.728", "0.8936", "0.742", "0.501", "0.741" ], [ "0.0784", "0.735", "0.468", "0.7344", "0.468", "0.7485", "0.0784", "0.75" ], [ "0.5024", "0.7437", "0.8906", "0.7437", "0.8906", "0.757", "0.5024", "0.757" ], [ "0.0784", "0.7505", "0.468", "0.7505", "0.468", "0.765", "0.0784", "0.765" ], [ "0.0768", "0.7646", "0.4697", "0.765", "0.4697", "0.78", "0.0768", "0.779" ], [ "0.5034", "0.7603", "0.8906", "0.7603", "0.8906", "0.771", "0.5034", "0.771" ], [ "0.5024", "0.7734", "0.892", "0.7734", "0.892", "0.787", "0.5024", "0.787" ], [ "0.0801", "0.781", "0.468", "0.781", "0.468", "0.7944", "0.0801", "0.7944" ], [ "0.5024", "0.789", "0.892", "0.789", "0.892", "0.803", "0.5024", "0.803" ], [ "0.0801", "0.797", "0.4697", "0.797", "0.4697", "0.81", "0.0801", "0.81" ], [ "0.501", "0.8037", "0.892", "0.803", "0.892", "0.8174", "0.501", "0.8184" ], [ "0.0784", "0.811", "0.4656", "0.811", "0.4656", "0.8247", "0.0784", "0.8247" ], [ "0.5024", "0.8193", "0.8906", "0.8193", "0.8906", "0.8335", "0.5024", "0.8335" ], [ "0.0801", "0.827", "0.468", "0.827", "0.468", "0.8403", "0.0801", "0.8403" ], [ "0.0768", "0.8384", "0.4673", "0.8403", "0.4673", "0.858", "0.0768", "0.856" ], [ "0.5", "0.834", "0.892", "0.8335", "0.892", "0.8477", "0.5", "0.8486" ], [ "0.076", "0.854", "0.468", "0.856", "0.468", "0.8735", "0.076", "0.872" ], [ "0.5024", "0.8496", "0.892", "0.8496", "0.892", "0.863", "0.5024", "0.863" ], [ "0.0784", "0.869", "0.468", "0.872", "0.468", "0.886", "0.0784", "0.884" ], [ "0.5024", "0.8657", "0.892", "0.8657", "0.892", "0.879", "0.5024", "0.879" ], [ "0.0768", "0.886", "0.3228", "0.886", "0.3228", "0.904", "0.0768", "0.904" ], [ "0.5195", "0.8853", "0.8286", "0.887", "0.8286", "0.9014", "0.5195", "0.8994" ], [ "0.478", "0.924", "0.4944", "0.924", "0.4944", "0.938", "0.478", "0.938" ] ]
[ "We construct per-ray transition weights drans [o, 1] with", "5. Experiments", "min(dmin, Tdist)", "We use LAENeRF to perform local recoloring and local,", "drans = 1 -", "(17)", "Tdist", "recolorable stylization.", "where Tdist is a hyperparameter controlling the size of the", "transition, which we usually set to 1 × 10-2, depending on", "Datasets.We use three well-established datasets for novel", "view synthesis in our evaluation. NeRF-Synthetic [28] is", "the scale of the scene. As can be seen in Fig. 3, we interpo-", "a dataset consisting of synthetic objects with complex ge-", "late the original color palette P and the user-modified color", "palette Pmod based on durans to get a realistic color transi-", "ometry and non-Lambertian materials. This dataset con-", "tion. For stylization, we additionally introduce a separate", "tains 360° captures in a bounded domain with a transparent", "loss, which adds to the content loss when drans E (O, 1):", "background. LLFF [27] is a dataset consisting of forward-", "facing captures of real-world scenes in high resolution. The", "Csmooth = Asmoothl(c - c)? . dransll1.", "(18)", "mip-NeRF 360 dataset [3] contains 360° captures of un-", "bounded indoor and outdoor scenes.This provides a chal-", "Obtain auerm", "lenging scenario for local appearance editing methods due", "Per-Point Min.Distance", "Selection", "to the large number of distinct objects in the scene and the", "S", "g", "large 3D space. For LLFF and mip-NeRF 360, we follow", "I", "related work [20, 23] and downsample the images by a fac-", "", "tor of 4x.", "Point Clouds", "5.1.Photorealistic AppearanceEditing", "For the recoloring task, we compare our method with", "Per-Pixel Weight", "PaletteInterpolation", "Composition", "PaletteNeRF [20] and ICE-NeRF [23].PaletteNeRF", "predicts features distilled from an LSeg segmentation", "model [19, 24] to enable local editing.In contrast,", "", "ICE-NeRF uses user-guided annotations to recolor a se-", "lected region given a target color.", "Quantitative Evaluation.For the quantitative evaluation,", "Figure 3. Ilustration of our proposed distance-based palette in-", "wefollowICE-NeRF[23landmeasuretheMeanSguared", "terpolation scheme: We calculate distance weights drans based on", "Error (MSE) in the background of the selected region be-", "the per-point distance from the edit grid to the growing grid g.", "fore and after recoloring. In Tab. I, we present this met-", "When constructing the modified training dataset, we interpolate", "between learned palette P and modified palette Pmod using durans:", "ric for three scenes of the LLFF dataset [27]. The fore-", "ground region is described by a mask, which was provided", "to us by the authors of ICE-NeRF. We perform 7 differ-", "ent recolorings per scene and compare against PaletteNeRF", "Implementation Details. We build our approach on", "with and without semantic guidance, whereas we also in-", "torch-ngp [40] and use a resolution of 1283 for our edit grid", "clude the numbers from ICE-NeRFl to facilitate cross-", "8, following iNGP [29]. We train LAENeRF for 1 × 105", "method comparisons.LAENeRF outperforms previous", "iterations with previews available after ~ 20Os, and then dis-", "till to ONeRe for 7 × 104 iterations, which takes no longer", "methods forthismetric,reducing errorrates by59%com-", "pared to PaletteNeRF with semantic guidance. Addition-", "than 5 minutes in total on an NVIDIA RTX 4090. For", "LAENeRF, we use a learning rate of 1 × 10-3 for all com-", "ally, we provide the same metric for the indoor scenes of", "the mip-NeRF 360 dataset [3] in Tab. 2, where we report", "ponents, except for P, where we use 1 × 10-2. We initial-", "average results for 7 recolorings per scene. We use Seg-", "ize Np = 8, as the use of Lsmooth requires a large num-", "ber of base colors. 1.5 × 103 iterations before training", "mentAnything[18]toobtainmasksfora subsetoftestset", "views and compare against PaletteNeRF [20]. We measure", "is finished, we remove color palettes which do not con-", "MSE compared to the ground truth test images and use the", "tribute significantly. For our style loss, we use a VGG19", "same hyperparameters as PaletteNeRF, which also builds", "backbone [36] and utilize features from conv5,conv6,", "on torch-ngp [40]. As can be seen, LAENeRF after recol-", "conv7 for computing Lstyle. When performing stylization,", "we use 入style = 1.3 × 102, >rv = 1 × 10-4, >depth-disce =", "oring outperforms non-recolored PaletteNeRF, which we", "5 ×10-4, >weight =1× 10-7, Aofset = 5 × 10-5, >smooth =", "attribute to PaletteNeRF's concurrent scene reconstruction", "1 × 10-3.If we want to perform photorealistic recoloring,", "and palette-based decomposition. Due to the fairly accurate", "we set 入style = Arv = Adeph-disc = 0.", "'ICE-NeRFs' implementation is not yet publicly available.", "5" ]
{ "arxiv_id": "2312.09913", "language": "en", "page_idx": 4 }
2208.09122-en-0
2208.09122-en-0.jpg
Towards Unbiased Label Distribution Learning for Facial Pose Estimation Using Anisotropic Spherical Gaussian Zhiwen Cao$^1\star$, Dongfang Liu$^2\star$, Qifan Wang$^3\star\star$, and Yingjie Chen$^1$ $^{1}$Purdue University$^2$Rochester Institute of Technology victorchen{@purdue.ed dongfang.liu@rit.edu wqfcr@fb.com $\textbf{Abstract. Facial pose estimation refers to the task of predicting face}$ orientation from a single RGB image. It is an important research topic with a wide range of applications in computer vision. Label distribution learning (LDL) based methods have been recently proposed for facial pose estimation, which achieve promising results. However, there are two major issues in existing LDL methods. First, the expectations of label distributions are biased, leading to a biased pose estimation. Second, flxed distribution parameters are applied for all learning samples, severely limiting the model capability. In this paper, we propose an Anisotropic Spherical Gaussian (ASG)-based LDL approach for facial pose estimation. In particular, our approach adopts the spherical Gaussian distribution on a unit sphere which constantly generates $unbiased\textit{ expectation. Meanwhile, we introduce a new loss function that}$ allows the network to learn the distribution parameter for each learning sample $fexibly.$ Extensive experimental results show that our method sets new state-of-the-art records on AFLW2000 and BIWI datasets. Keywords: Facial Pose Estimation $\cdot$ Anisotropic Spherical Gaussian $\cdot$ Label Distribution Learning ## 1 Introduction The task of facial pose estimation is to estimate the orientation of the face from a single RGB image. It plays an important role in many real-world applications, including driver's monitoring system [16,33], human-computer interaction [4,29] and face alignment [3,44]. With the recent advance of deep learning in computer vision [19,5,43,26,6,25], learning-based facial pose estimation has become a $^{\star}$Equal contributions. $^{\star\star}$ The analysis and all work described in this paper was performed by the authors at Purdue and RIT. Qifan Wang served as an advisor to the project.
[ [ "0.2303", "0.1445", "0.774", "0.1459", "0.774", "0.1635", "0.2303", "0.1622" ], [ "0.3105", "0.1666", "0.6914", "0.1674", "0.6914", "0.1849", "0.3105", "0.1843" ], [ "0.3218", "0.1895", "0.6846", "0.1901", "0.6846", "0.2084", "0.3218", "0.207" ], [ "0.2615", "0.2374", "0.7417", "0.2374", "0.7417", "0.252", "0.2615", "0.252" ], [ "0.01878", "0.254", "0.06616", "0.254", "0.0678", "0.4048", "0.0196", "0.4048" ], [ "0.4307", "0.26", "0.572", "0.2632", "0.572", "0.281", "0.4307", "0.2778" ], [ "0.3782", "0.2747", "0.6216", "0.2766", "0.6216", "0.2942", "0.3782", "0.2922" ], [ "0.4631", "0.2903", "0.54", "0.2922", "0.54", "0.308", "0.4631", "0.3062" ], [ "0.3816", "0.305", "0.6235", "0.3062", "0.6235", "0.3208", "0.3816", "0.3193" ], [ "0.4248", "0.3208", "0.5825", "0.3208", "0.5825", "0.334", "0.4248", "0.334" ], [ "0.452", "0.332", "0.55", "0.334", "0.55", "0.3484", "0.452", "0.3467" ], [ "0.267", "0.3894", "0.738", "0.3894", "0.738", "0.3997", "0.267", "0.3997" ], [ "0.02287", "0.3977", "0.0621", "0.3977", "0.0621", "0.4988", "0.02287", "0.4988" ], [ "0.2646", "0.4016", "0.74", "0.4016", "0.74", "0.4153", "0.2646", "0.4153" ], [ "0.2656", "0.4167", "0.739", "0.4167", "0.739", "0.43", "0.2656", "0.43" ], [ "0.2646", "0.43", "0.74", "0.43", "0.74", "0.443", "0.2646", "0.443" ], [ "0.2646", "0.443", "0.74", "0.443", "0.74", "0.457", "0.2646", "0.457" ], [ "0.2646", "0.4583", "0.74", "0.4583", "0.74", "0.4717", "0.2646", "0.4717" ], [ "0.2646", "0.4717", "0.738", "0.4717", "0.738", "0.4849", "0.2646", "0.4849" ], [ "0.02287", "0.4873", "0.05963", "0.4873", "0.05963", "0.712", "0.02287", "0.712" ], [ "0.2646", "0.4849", "0.738", "0.4849", "0.738", "0.4988", "0.2646", "0.4988" ], [ "0.2646", "0.5", "0.739", "0.5", "0.739", "0.513", "0.2646", "0.513" ], [ "0.2646", "0.513", "0.74", "0.513", "0.74", "0.5264", "0.2646", "0.5264" ], [ "0.2656", "0.529", "0.739", "0.529", "0.739", "0.539", "0.2656", "0.539" ], [ "0.2646", "0.5415", "0.74", "0.5415", "0.74", "0.5547", "0.2646", "0.5547" ], [ "0.2656", "0.556", "0.739", "0.556", "0.739", "0.5664", "0.2656", "0.5664" ], [ "0.2646", "0.5684", "0.74", "0.5684", "0.74", "0.582", "0.2646", "0.582" ], [ "0.2646", "0.5806", "0.739", "0.5806", "0.739", "0.5947", "0.2646", "0.5947" ], [ "0.2646", "0.595", "0.7134", "0.595", "0.7134", "0.6094", "0.2646", "0.6094" ], [ "0.2646", "0.6235", "0.7363", "0.6235", "0.7363", "0.638", "0.2646", "0.638" ], [ "0.2632", "0.636", "0.452", "0.638", "0.452", "0.653", "0.2632", "0.651" ], [ "0.2181", "0.6797", "0.2378", "0.6797", "0.2378", "0.6924", "0.2181", "0.6924" ], [ "0.2484", "0.6797", "0.3743", "0.6797", "0.3743", "0.6943", "0.2484", "0.6943" ], [ "0.2181", "0.7134", "0.785", "0.7134", "0.785", "0.7266", "0.2181", "0.7266" ], [ "0.2181", "0.729", "0.7837", "0.729", "0.7837", "0.742", "0.2181", "0.742" ], [ "0.2181", "0.7456", "0.7837", "0.7456", "0.7837", "0.756", "0.2181", "0.756" ], [ "0.2181", "0.759", "0.785", "0.759", "0.785", "0.773", "0.2181", "0.773" ], [ "0.2181", "0.7734", "0.786", "0.7734", "0.786", "0.7886", "0.2181", "0.7886" ], [ "0.2173", "0.7944", "0.3708", "0.7974", "0.3708", "0.815", "0.2173", "0.8125" ], [ "0.2133", "0.81", "0.786", "0.811", "0.786", "0.829", "0.2133", "0.8276" ], [ "0.2336", "0.827", "0.6724", "0.8276", "0.6724", "0.8413", "0.2336", "0.8403" ] ]
[ "Towards Unbiased Label Distribution Learning", "for Facial Pose Estimation Using", "Anisotropic Spherical Gaussian", "Zhiwen Caol*, Dongfang Liu2*, Qifan Wang3**, and Yingjie Chen'", " 61", "1 Purdue University", "2 Rochester Institute of Technology", "3 Meta AI", "[cao270,victorchen]@purdue.edu", "dongfang.liu@rit.edu", "wqfcr@fb.com", "Abstract.Facial pose estimation referstothe task of predicting face", "['s]", "orientation from a single RGB image. It is an important research topic", "with a wide range of applications in computer vision. Label distribution", "learning (LDL)based methods have been recentlyproposed for facial", "pose estimation, which achieve promising results. However, there are", "two major issues in existing LDL methods. First, the expectations", "of label distributions are biased, leading to a biased pose estimation.", "121080", "Second, fired distribution parameters are applied for all learning samples", "severely limiting the model capability. In this paper, we propose an", "Anisotropic Spherical Gaussian (ASG)-based LDL approach for facial", "poseestimation.Inparticular,ourapproachadoptsthe spherical", "Gaussian distribution ona unit sphere which constantly generates", "unbiased erpectation.Meanwhile,weintroduceanewlossfunctionthat", "allows the network to learn the distribution parameter for each learning", "sample feribly. Extensive experimental results show that our method", "sets new state-of-the-art records on AFLW2000 and BIWI datasets.", "Keywords: Facial Pose Estimation : Anisotropic Spherical Gaussian", "Label Distribution Learning", "1", "Introduction", "The task of facial pose estimation is to estimate the orientation of the face from", "a single RGB image. It plays an important role in many real-world applications.", "includingdriver'smonitoringsystem16,33.human-computerinteraction4,29", "and face alignment [3,44]. With the recent advance of deep learning in computer", "vision [19,5,43,26,6,25], learning-based facial pose estimation has become a", "*Equal contributions.", "** The analysis and all work described in this paper was performed by the authors at", "Purdue and RIT. Qifan Wang served as an advisor to the project." ]
{ "arxiv_id": "2208.09122", "language": "en", "page_idx": 0 }
2208.09122-en-1
2208.09122-en-1.jpg
2 Z. Cao et al. <FigureHere> Fig.1.(a) Example of Biased Expectation for 1D Gaussian label distribution. The distribution from original pitch$=120^\circ$ in the range $(-180^\circ,+180^\circ]$ gives a biased expectation of the label. The condition becomes worse as the original angle gets closer to $180^{\circ}$ or $- 180^{\circ }. \textbf{( b) E and R denote Euler angles and rotation matrix, respectively}.$ Euler angles have inconsistent representations for profile faces. The Red and Blue values show evident discrepancies when denoting similar profile poses. Applying LDL on Euler angles inevitably introduces heavily noisy supervision. In contrast to Euler angles, the corresponding elements in rotation matrices are close to each other. All samples are from the 300W-LP dataset [45]. dominant approach, achieving promising results [1,2,35,38]. However, as a general problem in deep learning, data shortage also limits the concurrent methods for facial pose estimation to achieve superior performance. How to effectively estimate the facial pose with limited data remains a challenge, which is the focus of this work. Recently, label distribution learning (LDL) has been introduced to address the issue of insufficient training data. These LDL methods aim at reconstructing new labels of the distribution around the original ones for training, which promote the learning of facial images not only from their own labels but also the adjacent ones. LDL has shown its effectiveness in tasks such as facial age estimation [15], facial attractiveness estimation [9] and crowd counting [49]. However, the exploration of LDL application to facial pose estimation is insufficient. To date, LDL in the task of facial pose estimation are mainly applied on Euler angles which are known as pitch, yaw and roll. A seminal work from [14] proposed to use a 2D Gaussian Distribution to describe the probability distribution between pitch and yaw in the range of $(-90^{\circ},+90^{\circ}).$ Liu $et\textit{al. [ 28] followed}$ the track and converted each Euler angle label to a 1D Gaussian distribution. They also expand the task to the one of wild range. Therefore, each face image corresponds to three 1D Gaussian distributions $(\bar{i}.e.,\rho_{pitch},\rho_{yaw}$ and $\rho_{roll}).$ For $\bar{\text{instance, an original label of the pitch angle (120°) can be used to generate}}$ a Gaussian distribution in $(-180^{\circ},180^{\circ}]$ (see Fig. la). Through predicting the probability of each integer degree in set $\tilde{\mathcal{S}}=\{-179^\circ,-178^\circ,\cdots,179^\circ,180^\circ\}$ and
[ [ "0.2173", "0.11615", "0.2296", "0.11615", "0.2296", "0.1276", "0.2173", "0.1276" ], [ "0.273", "0.11615", "0.3555", "0.11615", "0.3555", "0.1276", "0.273", "0.1276" ], [ "0.232", "0.178", "0.25", "0.178", "0.25", "0.1913", "0.232", "0.1913" ], [ "0.4248", "0.1736", "0.4412", "0.1736", "0.4412", "0.1768", "0.4248", "0.1768" ], [ "0.232", "0.1932", "0.2507", "0.1932", "0.2507", "0.2058", "0.232", "0.2058" ], [ "0.2173", "0.2008", "0.2566", "0.2026", "0.2532", "0.2437", "0.2133", "0.2412" ], [ "0.232", "0.2405", "0.25", "0.2405", "0.25", "0.254", "0.232", "0.254" ], [ "0.2345", "0.2568", "0.2467", "0.2568", "0.2467", "0.2676", "0.2345", "0.2676" ], [ "0.5", "0.2676", "0.5107", "0.2676", "0.5107", "0.2708", "0.5", "0.2708" ], [ "0.603", "0.2676", "0.609", "0.2676", "0.609", "0.2727", "0.603", "0.2727" ], [ "0.6855", "0.2651", "0.71", "0.2651", "0.71", "0.2766", "0.6855", "0.2766" ], [ "0.6284", "0.2683", "0.648", "0.2683", "0.648", "0.276", "0.6284", "0.276" ], [ "0.5645", "0.2683", "0.5864", "0.2683", "0.5864", "0.2727", "0.5645", "0.2727" ], [ "0.6685", "0.2683", "0.6807", "0.2683", "0.6807", "0.2727", "0.6685", "0.2727" ], [ "0.7197", "0.2683", "0.74", "0.2644", "0.744", "0.2747", "0.7236", "0.279" ], [ "0.63", "0.276", "0.6357", "0.276", "0.6357", "0.286", "0.63", "0.286" ], [ "0.5376", "0.2695", "0.544", "0.2695", "0.544", "0.2747", "0.5376", "0.2747" ], [ "0.3325", "0.281", "0.3594", "0.281", "0.3594", "0.2886", "0.3325", "0.2886" ], [ "0.4756", "0.2798", "0.5146", "0.2734", "0.517", "0.2842", "0.478", "0.2903" ], [ "0.4927", "0.2874", "0.5146", "0.289", "0.513", "0.2974", "0.492", "0.2954" ], [ "0.6235", "0.2886", "0.6445", "0.2886", "0.6445", "0.2954", "0.6235", "0.2954" ], [ "0.664", "0.2886", "0.71", "0.2886", "0.71", "0.2954", "0.664", "0.2954" ], [ "0.3406", "0.3018", "0.3635", "0.3018", "0.3635", "0.3164", "0.3406", "0.3164" ], [ "0.564", "0.289", "0.613", "0.289", "0.613", "0.2966", "0.564", "0.2966" ], [ "0.642", "0.3018", "0.664", "0.3018", "0.664", "0.3164", "0.642", "0.3164" ], [ "0.2181", "0.3276", "0.7837", "0.3276", "0.7837", "0.3416", "0.2181", "0.3416" ], [ "0.2181", "0.3423", "0.786", "0.3423", "0.786", "0.356", "0.2181", "0.356" ], [ "0.2173", "0.3547", "0.7876", "0.356", "0.7876", "0.3706", "0.2173", "0.3694" ], [ "0.2181", "0.3694", "0.7837", "0.3694", "0.7837", "0.3833", "0.2181", "0.3833" ], [ "0.2181", "0.3838", "0.7876", "0.3838", "0.7876", "0.3977", "0.2181", "0.3977" ], [ "0.2173", "0.3977", "0.786", "0.3977", "0.786", "0.411", "0.2173", "0.411" ], [ "0.2181", "0.411", "0.7876", "0.411", "0.7876", "0.4248", "0.2181", "0.4248" ], [ "0.2181", "0.4255", "0.7876", "0.4255", "0.7876", "0.4395", "0.2181", "0.4395" ], [ "0.2173", "0.4375", "0.429", "0.4382", "0.429", "0.4526", "0.2173", "0.452" ], [ "0.2181", "0.488", "0.7876", "0.488", "0.7876", "0.502", "0.2181", "0.502" ], [ "0.2173", "0.504", "0.786", "0.502", "0.786", "0.5166", "0.2173", "0.518" ], [ "0.2197", "0.521", "0.785", "0.521", "0.785", "0.531", "0.2197", "0.531" ], [ "0.2173", "0.534", "0.786", "0.534", "0.786", "0.5474", "0.2173", "0.5474" ], [ "0.2173", "0.549", "0.3945", "0.549", "0.3945", "0.5625", "0.2173", "0.5625" ], [ "0.2418", "0.5664", "0.785", "0.5664", "0.785", "0.58", "0.2418", "0.58" ], [ "0.2173", "0.5806", "0.7876", "0.582", "0.7876", "0.5967", "0.2173", "0.595" ], [ "0.2181", "0.5967", "0.786", "0.5967", "0.786", "0.6113", "0.2181", "0.6113" ], [ "0.2181", "0.6123", "0.786", "0.6123", "0.786", "0.6255", "0.2181", "0.6255" ], [ "0.2173", "0.6255", "0.786", "0.6274", "0.786", "0.6426", "0.2173", "0.64" ], [ "0.2173", "0.6416", "0.7837", "0.6426", "0.7837", "0.657", "0.2173", "0.656" ], [ "0.2181", "0.657", "0.7876", "0.657", "0.7876", "0.672", "0.2181", "0.672" ], [ "0.2181", "0.674", "0.3015", "0.674", "0.3015", "0.685", "0.2181", "0.685" ], [ "0.2418", "0.6895", "0.785", "0.69", "0.785", "0.705", "0.2418", "0.704" ], [ "0.2181", "0.7056", "0.7876", "0.7056", "0.7876", "0.72", "0.2181", "0.72" ], [ "0.2157", "0.7197", "0.786", "0.72", "0.786", "0.735", "0.2157", "0.7344" ], [ "0.2173", "0.7363", "0.786", "0.7363", "0.786", "0.75", "0.2173", "0.75" ], [ "0.2181", "0.7505", "0.7837", "0.7505", "0.7837", "0.7646", "0.2181", "0.7646" ], [ "0.2173", "0.765", "0.786", "0.7666", "0.786", "0.781", "0.2173", "0.78" ], [ "0.2157", "0.779", "0.7876", "0.78", "0.7876", "0.7974", "0.2157", "0.797" ], [ "0.2173", "0.797", "0.786", "0.797", "0.786", "0.81", "0.2173", "0.81" ], [ "0.2181", "0.811", "0.786", "0.811", "0.786", "0.8257", "0.2181", "0.8257" ], [ "0.2173", "0.827", "0.786", "0.827", "0.786", "0.8403", "0.2173", "0.8403" ] ]
[ "2", "Z.Cao etal.", "0.005", "r", "0.004", "二", "0.001", "0.00", "83", "17", "[12.2′", "89.3", "61.6°", ".4", "89.1", "3", ".", "tch (De", "R0.003", "0.928", "0.23", "0.011/|0.952", "(a)", "0.001J[0.973", "(b)", "Fig.1. (a) Example of Biased Expectation for iD Gaussian label distribution", "The distribution from original pitch = 120° in the range (-180°, +180°1 gives a biased", "expectation of the label. The condition becomes worse as the original angle gets closer to", "180° or -180°. (b) E and R denote Euler angles and rotation matria, respectively", "Euler angles have inconsistent representations for profile faces. The Red and Blue values", "show evident discrepancies when denoting similar profile poses. Applying LDL on Euler", "angles inevitably introduces heavily noisy supervision. In contrast to Euler angles, the", "corresponding elements in rotation matrices are close to each other. All samples are", "from the 300W-LP dataset [45].", "dominant approach, achieving promising results [1,2,35,38]. However, as a", "general problem in deep learning, data shortage also limits the concurrent", "methods forfacial pose estimation to achieve superior performance.Howto", "effectively estimate the facial pose with limited data remains a challenge, which", "is the focus of this work.", "Recently, label distribution learning (LDL) has been introduced to address", "the issue of insufficient training data. These LDL methods aim at reconstructing", "new labels of the distribution around the original ones for training, which", "promote the learning of facial images not only from their own labels but also", "the adjacent ones. LDL has shown its effectiveness in tasks such as facial age", "estimation [15], facial attractiveness estimation [9] and crowd counting [49]", "However, the exploration of LDL application to facial pose estimation is", "insufficient.", "To date, LDL in the task of facial pose estimation are mainly applied on Euler", "angles which are known as pitch, yaw and roll. A seminal work from [14] proposed", "to use a 2D Gaussian Distribution to describe the probability distribution", "between pitch and yaw in the range of (-90°, +90°). Liu et al. [28] followed", "the track and converted each Euler angle label to a 1D Gaussian distribution.", "They also expand the task to the one of wild range. Therefore, each face image", "corresponds to three 1D Gaussian distributions (i.e., Ppitech, Pyaw and prolu). For", "instance, an original label of the pitch angle (120°) can be used to generate", "a Gaussian distribution in (-180°, 180°] (see Fig. la). Through predicting the", "probability of each integer degree in set S ={-179°,-178°,..-,179°,180°] and" ]
{ "arxiv_id": "2208.09122", "language": "en", "page_idx": 1 }
2208.09122-en-2
2208.09122-en-2.jpg
Unbiased Label Distribution Learning for Facial Pose Estimation 3 <FigureHere> Fig.2.(a) 2D distribution [2] generated by the first two elements of a column vector of rotation matrices (we omit the third element for visualization). The limit of range [-1,1] in two directions results in biased expectation.(b) Spherical Gaussian Distribution (ours) guarantees $unbiased\textit{ expectation}.$ compute the cross entropy loss, the task can be considered as the combination of both regression and classification. Albeit being simple and effective, applying LDL on Euler angles has several obstacles: $\textcircled{1}$ Euler angle is not a continuous rotation representation and LDL deteriorates the issue by contributing the learning of adjacent angles. The discontinuity is embodied in the Euler angle labels of profile faces (see Fig. 1b). Since similar profile images have very different Euler angle labels, converting the angles to distributions cannot help the learning of adjacent labels; $\textcircled{2}$ Gaussian distribution labeling on Euler angles leads to biased expectations. Since the angle is limited to a certain range $(-180^\circ,180^\circ]$, probabilities assigned in the the shadow area make the expectation of labels incorrectly shift to left (see Fig. 1a); and $\textcircled{3}$ concurrent LDL methods utilize the variance of Gaussian distribution as a hyper-parameter which is fxed during training. This is computationally inefficient because they need to perform an exhaustive search to cherry pick the best parameter setting. Besides, using the same distribution for all the poses is not aligned with the real situation. Since faces at different poses have diverse contributions to adjacent faces, the network should learn the distribution parameters adaptively. The first issue was studied in [2],which identifies the discontinuity issue of Euler angle and proposed a vector-based representation to train the network. In other words, they let the neural network learn the rotation matrices from facial images. Rotation matrices can form a continuous special orthogonal group $SO(3)$ and can circumvent the problem of discontinuity. However, they still failed to recognize the issue of biased expectation. Since every element of the rotation matrix stays in the range of [-1,1], they convert each element to a Gaussian distribution in range [-1,1] and let the network learn the distribution in an element-wise manner. Consequently, the issue of biased expectation is inevitably
[ [ "0.2998", "0.11554", "0.732", "0.11554", "0.732", "0.1288", "0.2998", "0.1288" ], [ "0.774", "0.11615", "0.786", "0.11615", "0.786", "0.1288", "0.774", "0.1288" ], [ "0.2793", "0.1445", "0.2932", "0.1445", "0.2932", "0.154", "0.2793", "0.154" ], [ "0.4102", "0.1635", "0.4805", "0.1635", "0.4805", "0.1749", "0.4102", "0.1749" ], [ "0.527", "0.1718", "0.597", "0.1718", "0.597", "0.1831", "0.527", "0.1831" ], [ "0.2754", "0.178", "0.2957", "0.178", "0.2957", "0.1913", "0.2754", "0.1913" ], [ "0.437", "0.1799", "0.451", "0.1799", "0.451", "0.1901", "0.437", "0.1901" ], [ "0.5293", "0.1843", "0.5933", "0.1843", "0.5933", "0.1945", "0.5293", "0.1945" ], [ "0.7173", "0.1812", "0.728", "0.1812", "0.728", "0.1925", "0.7173", "0.1925" ], [ "0.71", "0.1925", "0.726", "0.1881", "0.7344", "0.2058", "0.7183", "0.2102" ], [ "0.7173", "0.2026", "0.7344", "0.207", "0.728", "0.2235", "0.71", "0.2197" ], [ "0.2754", "0.2153", "0.2957", "0.2153", "0.2957", "0.2291", "0.2754", "0.2291" ], [ "0.3774", "0.2197", "0.4355", "0.2216", "0.4355", "0.2291", "0.3774", "0.2267" ], [ "0.7173", "0.2153", "0.74", "0.2216", "0.728", "0.25", "0.705", "0.2443" ], [ "0.699", "0.2456", "0.7256", "0.2424", "0.728", "0.2568", "0.7017", "0.2588" ], [ "0.2737", "0.252", "0.2942", "0.252", "0.2942", "0.2651", "0.2737", "0.2651" ], [ "0.5474", "0.2588", "0.615", "0.276", "0.6094", "0.2903", "0.54", "0.2727" ], [ "0.694", "0.2551", "0.716", "0.2551", "0.716", "0.2676", "0.694", "0.2676" ], [ "0.675", "0.2644", "0.705", "0.2644", "0.705", "0.2766", "0.675", "0.2766" ], [ "0.669", "0.2747", "0.694", "0.2747", "0.694", "0.286", "0.669", "0.286" ], [ "0.615", "0.2827", "0.6313", "0.2827", "0.6313", "0.2917", "0.615", "0.2917" ], [ "0.642", "0.289", "0.6587", "0.289", "0.6587", "0.2974", "0.642", "0.2974" ], [ "0.66", "0.2874", "0.6787", "0.2874", "0.6787", "0.2954", "0.66", "0.2954" ], [ "0.3381", "0.2966", "0.3586", "0.2966", "0.3586", "0.305", "0.3381", "0.305" ], [ "0.2778", "0.2903", "0.3096", "0.2974", "0.3064", "0.3062", "0.2754", "0.2986" ], [ "0.3882", "0.2966", "0.4043", "0.2966", "0.4043", "0.3062", "0.3882", "0.3062" ], [ "0.437", "0.2966", "0.455", "0.2966", "0.455", "0.3062", "0.437", "0.3062" ], [ "0.486", "0.2966", "0.5024", "0.2966", "0.5024", "0.3062", "0.486", "0.3062" ], [ "0.3733", "0.307", "0.3962", "0.307", "0.3962", "0.3213", "0.3733", "0.3213" ], [ "0.638", "0.307", "0.66", "0.307", "0.66", "0.3213", "0.638", "0.3213" ], [ "0.2181", "0.3333", "0.786", "0.3333", "0.786", "0.3467", "0.2181", "0.3467" ], [ "0.2181", "0.3467", "0.7876", "0.3467", "0.7876", "0.3599", "0.2181", "0.3599" ], [ "0.2181", "0.361", "0.786", "0.361", "0.786", "0.375", "0.2181", "0.375" ], [ "0.2181", "0.3757", "0.5947", "0.3757", "0.5947", "0.3894", "0.2181", "0.3894" ], [ "0.2173", "0.4255", "0.785", "0.4248", "0.785", "0.4395", "0.2173", "0.44" ], [ "0.2197", "0.443", "0.478", "0.443", "0.478", "0.4539", "0.2197", "0.4539" ], [ "0.246", "0.4602", "0.786", "0.4602", "0.786", "0.4749", "0.246", "0.4749" ], [ "0.2173", "0.476", "0.7837", "0.476", "0.7837", "0.4893", "0.2173", "0.4893" ], [ "0.2173", "0.4893", "0.786", "0.4905", "0.786", "0.505", "0.2173", "0.504" ], [ "0.2181", "0.506", "0.785", "0.506", "0.785", "0.5195", "0.2181", "0.5195" ], [ "0.2173", "0.5215", "0.786", "0.5215", "0.786", "0.535", "0.2173", "0.535" ], [ "0.2181", "0.535", "0.786", "0.535", "0.786", "0.55", "0.2181", "0.55" ], [ "0.2181", "0.5503", "0.786", "0.5503", "0.786", "0.5645", "0.2181", "0.5645" ], [ "0.2181", "0.5664", "0.786", "0.5664", "0.786", "0.58", "0.2181", "0.58" ], [ "0.2181", "0.5806", "0.786", "0.5806", "0.786", "0.5947", "0.2181", "0.5947" ], [ "0.2173", "0.595", "0.786", "0.595", "0.786", "0.61", "0.2173", "0.61" ], [ "0.2181", "0.6113", "0.785", "0.6113", "0.785", "0.625", "0.2181", "0.625" ], [ "0.2181", "0.627", "0.786", "0.627", "0.786", "0.64", "0.2181", "0.64" ], [ "0.2181", "0.6416", "0.786", "0.6416", "0.786", "0.655", "0.2181", "0.655" ], [ "0.2181", "0.657", "0.785", "0.657", "0.785", "0.6704", "0.2181", "0.6704" ], [ "0.2181", "0.672", "0.786", "0.672", "0.786", "0.686", "0.2181", "0.686" ], [ "0.2157", "0.6875", "0.3823", "0.686", "0.3823", "0.7007", "0.2157", "0.702" ], [ "0.2427", "0.7056", "0.7876", "0.7056", "0.7876", "0.7197", "0.2427", "0.7197" ], [ "0.2181", "0.72", "0.786", "0.72", "0.786", "0.7344", "0.2181", "0.7344" ], [ "0.2181", "0.7363", "0.786", "0.7363", "0.786", "0.75", "0.2181", "0.75" ], [ "0.2181", "0.7524", "0.7837", "0.7524", "0.7837", "0.763", "0.2181", "0.763" ], [ "0.2181", "0.7666", "0.786", "0.7666", "0.786", "0.78", "0.2181", "0.78" ], [ "0.2181", "0.781", "0.786", "0.781", "0.786", "0.7944", "0.2181", "0.7944" ], [ "0.2173", "0.797", "0.786", "0.797", "0.786", "0.81", "0.2173", "0.81" ], [ "0.2181", "0.811", "0.786", "0.811", "0.786", "0.8257", "0.2181", "0.8257" ], [ "0.2173", "0.827", "0.785", "0.827", "0.785", "0.8403", "0.2173", "0.8403" ] ]
[ "Unbiased Label Distribution Learning for Facial Pose Estimation", "3", "1.0", "Greund Truth", "Ground Truth", "0.5", "★", "Expectation", "11", "T0.", "o.", "0.0", "Expectatior", "工", "1.0", "-0.5", "1.0~0.50.0", "0.5", "70.0", "0.5", "0.5", "1.0", "-1.0", "0.5", "1.010", "0.0", "0.5", "1.0", "(a)", "(b)", "Fig.2. (a) 2D distribution [2] generated by the first two elements of a column", "vector of rotation matrices (we omit the third element for visualization). The limit of", "range [-1, 1] in two directions results in biased expectation. (b) Spherical Gaussian", "Distribution (ours) guarantees unbiased eapectation.", "compute the cross entropy loss, the task can be considered as the combination", "ofbothregressionand classification.", "Albeit being simple and effective, applying LDL on Euler angles has several", "obstacles: @ Euler angle is not a continuous rotation representation and LDL", "deteriorates the issue by contributing the learning of adjacent angles. The", "discontinuity is embodied in the Euler angle labels of profile faces (see Fig. lb).", "Since similar profile images have very different Euler angle labels, converting the", "angles to distributions cannot help the learning of adjacent labels; ② Gaussian", "distribution labeling on Euler angles leads to biased expectations. Since the", "angle is limited to a certain range (-180°, 180°l, probabilities assigned in the the", "shadow area make the expectation of labels incorrectly shift to left (see Fig. la);", "and concurrent LDL methods utilize the variance of Gaussian distribution", "as a hyper-parameter which is fixed during training. This is computationally", "inefficient because they need to perform an exhaustive search to cherry pick", "the best parameter setting. Besides, using the same distribution for all the", "poses is not aligned with the real situation. Since faces at different poses have", "diverse contributions to adjacent faces, the network should learn the distribution", "parameters adaptively.", "The first issue was studied in [2], which identifies the discontinuity issue of", "Euler angle and proposed a vector-based representation to train the network. In", "other words, they let the neural network learn the rotation matrices from facial", "images.Rotation matrices canform a continuous special orthogonal group SO(3)", "and can circumvent the problem of discontinuity. However, they still failed to", "recognize the issue of biased expectation. Since every element of the rotation", "matrix stays in the range of [-1,1], they convert each element to a Gaussian", "distribution in range [-1, 1] and let the network learn the distribution in an", "element-wise manner. Consequently, the issue of biased expectation is inevitably" ]
{ "arxiv_id": "2208.09122", "language": "en", "page_idx": 2 }
2208.09122-en-3
2208.09122-en-3.jpg
4 Z. Cao et al. similar to Euler angles. To our best knowledge, the second and third issues remain largely under-explored in existing literature. In light of the foregoing discussions, we are motivated to present our Anisotropic Spherical Gaussian (ASG)-based label distribution learning method for facial pose estimation. Specifically, we treat each column vector of the rotation matrix as an entity and map them to a spherical Gaussian distribution respectively. Due to the symmetric distribution of ASG, our approach guarantees for an unbiased expectation of label distributions. The difference between ASG and the method in [2] is demonstrated in Fig. 2. Armed with the spherical Gaussian distribution, we further design a new loss function for the network to learn the distribution parameters adaptively during the training stage. This enables every facial image to adjust contribution to adjacent poses based on its pose. Ablation studies show that it can transcend the cherry-picked parameter by at least $4.0\%$ when trained on 3000W-LP and tested on AFLW2000 dataset. Our method enjoys a few attractive qualities: $\mathbf{0}$ it ensures the network learns the distribution with $unbiasedexpectation.$ Since most existing methods have biased expectations (unless the original ground truth is exactly in the middle) , we observe significant performance gain from our method; $\Theta$ the capacity of learnable ASG distribution parameters allows the network to adjust the parameter for each pose, enabling a $fne-grained$ prediction; $\Theta$ all the performance achievement comes from optimization on representation $of$ rotation without increasing the size of neural networks. Our approach achieves state-of-the-art performance with a very light-weighted backbone network, $i.e.$, ResNet18[19].Specifically, we decrease the Mean Absolute Error (MAE) by $0.27^{\circ}\left(6.9\%\downarrow\right)$ compared to [1] and $0.19^\circ\left(5.0\%\downarrow\right)$ compared to [38] when tested on AFLW2000 dataset [51]; and $\boldsymbol{\Theta}$,our method is the $\boldsymbol{f}rst\textit{attempt that adopts}$ $\begin{array}{c}\text{directional statistics in the task of pose estimation. We believe it can help invoke}\end{array}$ more thoughts for further exploration in the community. Our contributions are summarized below: - We propose a novel ASG-LDL method which encodes each column vector of the rotation matrix as an anisotropic spherical gaussian on a unit sphere. Our method addresses the issue of biased expectation that is under-explored in previous works. - We propose a novel training paradigm that allows the network to learn the distribution parameters adaptively. The flexibility allows the network to learn individual distribution parameters for each pose. - We conduct extensive experiments on two benchmarks. Experimental results show the effectiveness of our method. With a light-weight ResNet-18 as the backbone, our method achieves state-of-the-art results and outperforms many strong baselines with a heavier backbone $(i.e.$, ResNet-50). ## 2 Related Work This section summarizes the recent progresses in the related felds regarding facial pose estimation, label distribution learning and spherical Gaussian
[ [ "0.2173", "0.11615", "0.2296", "0.11615", "0.2296", "0.1276", "0.2173", "0.1276" ], [ "0.2712", "0.11615", "0.3555", "0.11615", "0.3555", "0.1276", "0.2712", "0.1276" ], [ "0.2181", "0.1477", "0.786", "0.1477", "0.786", "0.1622", "0.2181", "0.1622" ], [ "0.2181", "0.1635", "0.591", "0.1635", "0.591", "0.178", "0.2181", "0.178" ], [ "0.2427", "0.178", "0.785", "0.178", "0.785", "0.1925", "0.2427", "0.1925" ], [ "0.2181", "0.1932", "0.786", "0.1932", "0.786", "0.207", "0.2181", "0.207" ], [ "0.2181", "0.209", "0.786", "0.209", "0.786", "0.2229", "0.2181", "0.2229" ], [ "0.2173", "0.2235", "0.786", "0.2235", "0.786", "0.2374", "0.2173", "0.2374" ], [ "0.2181", "0.2393", "0.785", "0.2393", "0.785", "0.2524", "0.2181", "0.2524" ], [ "0.2181", "0.254", "0.786", "0.254", "0.786", "0.2676", "0.2181", "0.2676" ], [ "0.2181", "0.2695", "0.786", "0.2695", "0.786", "0.2827", "0.2181", "0.2827" ], [ "0.2181", "0.2842", "0.786", "0.2842", "0.786", "0.2974", "0.2181", "0.2974" ], [ "0.2181", "0.2998", "0.786", "0.2998", "0.786", "0.3132", "0.2181", "0.3132" ], [ "0.2181", "0.3145", "0.7876", "0.3145", "0.7876", "0.3276", "0.2181", "0.3276" ], [ "0.2181", "0.33", "0.786", "0.33", "0.786", "0.3435", "0.2181", "0.3435" ], [ "0.2181", "0.3447", "0.785", "0.3447", "0.785", "0.358", "0.2181", "0.358" ], [ "0.2443", "0.3591", "0.786", "0.3591", "0.786", "0.3726", "0.2443", "0.3726" ], [ "0.2181", "0.375", "0.786", "0.375", "0.786", "0.3882", "0.2181", "0.3882" ], [ "0.2173", "0.3882", "0.7876", "0.3894", "0.7876", "0.404", "0.2173", "0.4028" ], [ "0.2173", "0.4048", "0.7876", "0.4048", "0.7876", "0.4185", "0.2173", "0.4185" ], [ "0.2181", "0.4204", "0.785", "0.4204", "0.785", "0.4343", "0.2181", "0.4343" ], [ "0.2181", "0.435", "0.786", "0.435", "0.786", "0.449", "0.2181", "0.449" ], [ "0.2181", "0.4507", "0.7876", "0.4507", "0.7876", "0.464", "0.2181", "0.464" ], [ "0.2197", "0.4653", "0.785", "0.4653", "0.785", "0.4792", "0.2197", "0.4792" ], [ "0.2181", "0.481", "0.785", "0.481", "0.785", "0.4944", "0.2181", "0.4944" ], [ "0.2181", "0.4956", "0.785", "0.4956", "0.785", "0.5103", "0.2181", "0.5103" ], [ "0.2181", "0.5103", "0.786", "0.5103", "0.786", "0.5234", "0.2181", "0.5234" ], [ "0.2181", "0.526", "0.786", "0.526", "0.786", "0.539", "0.2181", "0.539" ], [ "0.2181", "0.5405", "0.785", "0.5405", "0.785", "0.5537", "0.2181", "0.5537" ], [ "0.2181", "0.556", "0.786", "0.556", "0.786", "0.5693", "0.2181", "0.5693" ], [ "0.2197", "0.5728", "0.357", "0.5728", "0.357", "0.5835", "0.2197", "0.5835" ], [ "0.2402", "0.5923", "0.786", "0.5933", "0.786", "0.608", "0.2402", "0.607" ], [ "0.2467", "0.6113", "0.7817", "0.6113", "0.7817", "0.622", "0.2467", "0.622" ], [ "0.2467", "0.625", "0.786", "0.625", "0.786", "0.638", "0.2467", "0.638" ], [ "0.2467", "0.6416", "0.3774", "0.6416", "0.3774", "0.6514", "0.2467", "0.6514" ], [ "0.246", "0.654", "0.786", "0.654", "0.786", "0.6675", "0.246", "0.6675" ], [ "0.246", "0.6694", "0.786", "0.6694", "0.786", "0.683", "0.246", "0.683" ], [ "0.2443", "0.6846", "0.653", "0.6846", "0.653", "0.6978", "0.2443", "0.6978" ], [ "0.2427", "0.6987", "0.786", "0.6978", "0.786", "0.712", "0.2427", "0.7134" ], [ "0.246", "0.714", "0.786", "0.714", "0.786", "0.728", "0.246", "0.728" ], [ "0.246", "0.73", "0.786", "0.73", "0.786", "0.7437", "0.246", "0.7437" ], [ "0.2443", "0.7437", "0.71", "0.744", "0.71", "0.759", "0.2443", "0.7583" ], [ "0.2181", "0.782", "0.2378", "0.782", "0.2378", "0.7944", "0.2181", "0.7944" ], [ "0.2484", "0.781", "0.3882", "0.781", "0.3882", "0.7954", "0.2484", "0.7954" ], [ "0.2181", "0.811", "0.786", "0.811", "0.786", "0.8257", "0.2181", "0.8257" ], [ "0.2181", "0.827", "0.786", "0.827", "0.786", "0.8403", "0.2181", "0.8403" ] ]
[ "4", "Z. Cao et al.", "similar to Euler angles. To our best knowledge, the second and third issues", "remain largely under-explored in existing literature.", "In light of the foregoing discussions, we are motivated to present our", "Anisotropic Spherical Gaussian (ASG)-based label distribution learning method", "for facial pose estimation. Specifically, we treat each column vector of the", "rotation matrix as an entity and map them to a spherical Gaussian distribution", "respectively. Due to the symmetric distribution of AsG, our approach guarantees", "for an unbiased expectation of label distributions. The difference between ASG", "and the method in [2 is demonstrated in Fig. 2. Armed with the spherical", "Gaussian distribution, we further design a new loss function for the network", "to learn the distribution parameters adaptively during the training stage. This", "enables every facial image to adjust contribution to adjacent poses based on its", "pose. Ablation studies show that it can transcend the cherry-picked parameter", "by at least 4.0% when trained on 3000W-LP and tested on AFLW2000 dataset.", "Our method enjoys a few attractive qualities: it ensures the network learns", "the distribution with unbiased ecpectation. Since most existing methods", "have biased expectations (unless the original ground truth is exactly in the", "middle), we observe significant performance gain from our method; @ the", "capacity of learnable ASG distribution parameters allows the network to adjust", "the parameter for each pose, enabling a fine-grained prediction; ③ all the", "performance achievement comes from optimization on representationof", "rotation without increasing the size of neural networks. Our approach achieves", "state-of-the-art performance with a very light-weighted backbone network, i.e.", "ResNet18 [19]. Specifically, we decrease the Mean Absolute Error (MAE) by", "0.27 (6.9% ) compared to [1l and 0.19 (5.0% ) compared to [38l when tested", "on AFLW2000 dataset 5ll; and @, our method is the first attempt that adopts", "directional statistics in the task of pose estimation. We believe it can help invoke", "more thoughts for further exploration in the community. Our contributions are", "summarized below:", "We propose a novel ASG-LDL method which encodes each column vector", "of the rotation matrix as an anisotropic spherical gaussian on a unit sphere", "Our method addresses the issue of biased expectation that is under-explored", "in previous works.", "We propose a novel training paradigm that allows the network to learn", "the distribution parameters adaptively. The flexibility allows the network", "to learn individual distribution parameters for each pose", "We conduct extensive experiments on two benchmarks. Experimental results", "show the effectiveness of our method. With a light-weight ResNet-18 as", "the backbone, our method achieves state-of-the-art results and outperforms", "many strong baselines with a heavier backbone (i.e., ResNet-50).", "2", "Related Work", "This section summarizes the recent progresses in the related fields regarding", "facial pose estimation, label distribution learning and spherical Gaussian" ]
{ "arxiv_id": "2208.09122", "language": "en", "page_idx": 3 }
2208.09122-en-4
2208.09122-en-4.jpg
Unbiased Label Distribution Learning for Facial Pose Estimation 5 distribution. Facial pose estimation. Recently, landmark-free learning based methods have become popular. By training an end-to-end deep neural network, it can estimate the face poses using global information and can be more robust to the environment variations. [35] puts forward a CNN with a multi-loss function that performs binned classification to regress three Euler angles. [46] proposes a finegrained structure by learning global spatial feature importance that improves the results. [20] formulates face pose estimation using quaternion-annotated labels to avoid the ambiguity problem in Euler angle representation.[1] proposes a Faster RCNN based network to regress 6DoF pose of faces by performing pose estimation and face alignment simultaneously. [38] puts forward a multi-modal network that can perform three tasks of head pose estimation, landmark-based face alignment and localization of face simultaneously. By the combination of three tasks they achieve state-of-the-art results. All of the above methods perform the training process through direct regression. Differently, we approach the problem as a label distribution learning task. Label distribution learning. Label distribution learning [30] is a learning paradigm that is frst proposed for facial age estimation [15,27]. [15] fnds that faces at close ages look similar. Therefore, they map each face image to a label distribution which covers a certain number of ages. Through this way one face image can contribute to not only the learning of its chronological age, but also the learning of its adjacent ages. LDL also shows it effectiveness in similar tasks such as facial attractiveness estimation [9], crowd counting [49] and movie rating prediction $[ 13] \textit{etc. [ 8] applies a similar approach on ordinal}$ regression such as image ranking and monocular depth estimation.[2] shows that the evaluation metric, mean absolute error of Euler angles (MAE), cannot reflect the actual performance especially for profile faces. Instead, they propose to use mean absolute error of vectors (MAEV) as a new metric. However, all the methods give biased expectation from the distribution, which severely limits the performance of neural network. Spherical Gaussian distribution. Spherical Gaussian (SG) distribution, also known as von Mises-Fisher distribution [11], is commonly used to simulate the properties of illumination and reflection in computer graphics.[18] uses SG to estimate multiple light sources and reflectance properties. [39] approximates the normal distribution function (NDF) by a mixture of SGs.[7] uses SG for the approximation of Bidirectional Transmittance Distribution Function (BTDF) for real-time estimation of environment lighting. However, SG only describes an isotropic distribution. [42] further proposes the ASG distribution which can describe an anisotropic distribution for rendering applications. Inspired by the above work, we successfully extend ASG to the feld of head pose estimation. 6D object pose estimation. 6D object pose estimation includes estimation of 3D location and 3D orientation. The latter task resembles our head pose estimation. The approaches for 6D object pose estimation can be generally classified into two categories. The first type such as [34,37,47] first capture instance information and keypoints from images to determine locations of
[ [ "0.3015", "0.11554", "0.732", "0.11554", "0.732", "0.1288", "0.3015", "0.1288" ], [ "0.774", "0.1187", "0.786", "0.1187", "0.786", "0.1276", "0.774", "0.1276" ], [ "0.2173", "0.1459", "0.308", "0.1477", "0.308", "0.1622", "0.2173", "0.1604" ], [ "0.2181", "0.161", "0.786", "0.161", "0.786", "0.1755", "0.2181", "0.1755" ], [ "0.2173", "0.178", "0.786", "0.178", "0.786", "0.1913", "0.2173", "0.1913" ], [ "0.2173", "0.1932", "0.786", "0.1932", "0.786", "0.207", "0.2173", "0.207" ], [ "0.2173", "0.2084", "0.785", "0.2084", "0.785", "0.2216", "0.2173", "0.2216" ], [ "0.2181", "0.2235", "0.7837", "0.2235", "0.7837", "0.2374", "0.2181", "0.2374" ], [ "0.2181", "0.238", "0.7876", "0.238", "0.7876", "0.2524", "0.2181", "0.2524" ], [ "0.2181", "0.254", "0.7876", "0.254", "0.7876", "0.2676", "0.2181", "0.2676" ], [ "0.2181", "0.2683", "0.786", "0.2683", "0.786", "0.2822", "0.2181", "0.2822" ], [ "0.2173", "0.2827", "0.7837", "0.2827", "0.7837", "0.2966", "0.2173", "0.2966" ], [ "0.2181", "0.2998", "0.786", "0.2998", "0.786", "0.3132", "0.2181", "0.3132" ], [ "0.2181", "0.3145", "0.7876", "0.3145", "0.7876", "0.3276", "0.2181", "0.3276" ], [ "0.2197", "0.3308", "0.785", "0.3308", "0.785", "0.3416", "0.2197", "0.3416" ], [ "0.2197", "0.3452", "0.7837", "0.3452", "0.7837", "0.356", "0.2197", "0.356" ], [ "0.2181", "0.3591", "0.786", "0.3591", "0.786", "0.3738", "0.2181", "0.3738" ], [ "0.2181", "0.375", "0.5703", "0.375", "0.5703", "0.3882", "0.2181", "0.3882" ], [ "0.2173", "0.387", "0.786", "0.3894", "0.786", "0.404", "0.2173", "0.4016" ], [ "0.2181", "0.404", "0.7876", "0.404", "0.7876", "0.4185", "0.2181", "0.4185" ], [ "0.2181", "0.4192", "0.7876", "0.4192", "0.7876", "0.433", "0.2181", "0.433" ], [ "0.2181", "0.435", "0.785", "0.435", "0.785", "0.449", "0.2181", "0.449" ], [ "0.2181", "0.4507", "0.7837", "0.4507", "0.7837", "0.464", "0.2181", "0.464" ], [ "0.2181", "0.4653", "0.785", "0.4653", "0.785", "0.4792", "0.2181", "0.4792" ], [ "0.2157", "0.4792", "0.785", "0.4797", "0.785", "0.4944", "0.2157", "0.4937" ], [ "0.2173", "0.4956", "0.786", "0.4956", "0.786", "0.509", "0.2173", "0.509" ], [ "0.2181", "0.5103", "0.7876", "0.5103", "0.7876", "0.5234", "0.2181", "0.5234" ], [ "0.2173", "0.526", "0.786", "0.526", "0.786", "0.539", "0.2173", "0.539" ], [ "0.2181", "0.5405", "0.785", "0.5405", "0.785", "0.5537", "0.2181", "0.5537" ], [ "0.2173", "0.556", "0.786", "0.556", "0.786", "0.5693", "0.2173", "0.5693" ], [ "0.2173", "0.571", "0.7876", "0.571", "0.7876", "0.584", "0.2173", "0.584" ], [ "0.2197", "0.587", "0.4395", "0.587", "0.4395", "0.5977", "0.2197", "0.5977" ], [ "0.2181", "0.601", "0.786", "0.601", "0.786", "0.6143", "0.2181", "0.6143" ], [ "0.2181", "0.616", "0.786", "0.616", "0.786", "0.63", "0.2181", "0.63" ], [ "0.2181", "0.631", "0.786", "0.631", "0.786", "0.646", "0.2181", "0.646" ], [ "0.2181", "0.6465", "0.786", "0.6465", "0.786", "0.66", "0.2181", "0.66" ], [ "0.2181", "0.661", "0.7876", "0.661", "0.7876", "0.675", "0.2181", "0.675" ], [ "0.2173", "0.6753", "0.785", "0.675", "0.785", "0.6895", "0.2173", "0.69" ], [ "0.2181", "0.6914", "0.786", "0.6914", "0.786", "0.705", "0.2181", "0.705" ], [ "0.2173", "0.7056", "0.786", "0.705", "0.786", "0.7197", "0.2173", "0.72" ], [ "0.2173", "0.7217", "0.786", "0.7217", "0.786", "0.735", "0.2173", "0.735" ], [ "0.2173", "0.735", "0.7695", "0.735", "0.7695", "0.7485", "0.2173", "0.7485" ], [ "0.2239", "0.752", "0.786", "0.752", "0.786", "0.765", "0.2239", "0.765" ], [ "0.2173", "0.7676", "0.786", "0.7676", "0.786", "0.781", "0.2173", "0.781" ], [ "0.2181", "0.782", "0.7837", "0.782", "0.7837", "0.7954", "0.2181", "0.7954" ], [ "0.2181", "0.7974", "0.786", "0.7974", "0.786", "0.811", "0.2181", "0.811" ], [ "0.2157", "0.8125", "0.789", "0.811", "0.789", "0.8257", "0.2157", "0.827" ] ]
[ "Unbiased Label Distribution Learning for Facial Pose Estimation", "5", "distribution.", "Facial pose estimation. Recently, landmark-free learning based methods", "have become popular. By training an end-to-end deep neural network, it can", "estimate the face poses using global information and can be more robust to the", "environment variations. [35l puts forward a CNN with a multi-loss function that", "performs binned classification to regress three Euler angles. [46] proposes a fine-", "grained structure by learning global spatial feature importance that improves the", "results. [20] formulates face pose estimation using quaternion-annotated labels", "to avoid the ambiguity problem in Euler angle representation.[1] proposes a", "Faster RCNN based network to regress 6DoF pose of faces by performing pose", "estimation and face alignment simultaneously. [38] puts forward a multi-modal", "network that can perform three tasks of head pose estimation, landmark-based", "face alignment and localization of face simultaneously.By the combination", "of three tasksthey achieve state-of-the-art results.All of the abovemethods", "perform the training process through direct regression. Differently, we approach", "the problem as a label distribution learning task.", "Label distribution learning. Label distribution learning [30] is a learning", "paradigm that is first proposed for facial age estimation [15,27]. [15] finds", "that faces at close ages look similar. Therefore, they map each face image to", "a label distribution which covers a certain number of ages. Through this way", "one face image can contribute to not only the learning of its chronological age.", "but also the learning of its adjacent ages. LDL also shows it effectiveness in", "similar tasks such as facial attractiveness estimation [9], crowd counting [49]", "and movie rating prediction [i13l etc. [8l applies a similar approach on ordinal", "regression such as image ranking and monocular depth estimation. [2] shows", "that the evaluation metric, mean absolute error of Euler angles (MAE), cannot", "reffect the actual performance especially for profile faces. Instead, they propose", "to use mean absolute error of vectors (MAEV) as a new metric. However, all the", "methods give biased expectation from the distribution, which severely limits the", "performanceofneuralnetwork", "Spherical Gaussian distribution. Spherical Gaussian (SG) distribution, also", "known as von Mises-Fisher distribution [1ll, is commonly used to simulate the", "properties of illumination and reflection in computer graphics. [18] uses SG to", "estimate multiple light sources and reflectance properties. [39] approximates the", "normal distribution function (NDF) by a mixture of SGs. [7l uses SG for the", "approximation of Bidirectional Transmittance Distribution Function (BTDF)", "for real-time estimation of environment lighting. However, SG only describes", "an isotropic distribution. [42] further proposes the ASG distribution which can", "describe an anisotropic distribution for rendering applications. Inspired by the", "above work, we successfully extend ASG to the field of head pose estimation.", "6D object pose estimation. 6D object pose estimation includes estimation", "of 3D location and 3D orientation. The latter task resembles our head pose", "estimation. The approaches for 6D object pose estimation can be generally", "classified into two categories. The first type such as [34,37,47] first capture", "instance information and keypoints from images to determine locations of" ]
{ "arxiv_id": "2208.09122", "language": "en", "page_idx": 4 }
2006.10974-en-0
2006.10974-en-0.jpg
Optimization and Generalization of Regularization-Based Continual Learning: a Loss Approximation Viewpoint Dong Yin $^*1,\text{Mehrdad Farajtabar}^{\dagger1},\text{Ang Li}^{\dagger1},\text{Nir Levine}^{§1}$,and Alex Mott$^\P^{1}$ $^{1}$DeepMind, Mountain View ${\mathrm{December~5,~2021}}$ $\mathbf{Abstract}$ Neural networks have achieved remarkable success in many cognitive tasks. However, when they are trained sequentially on multiple tasks without access to old data, their performance on early tasks tend to drop significantly. This problem is often referred to as $catastrophicforgetting$, a key challenge in $continual\textit{learning of neural}$ networks. The regularization-based approach is one of the primary classes of methods to alleviate catastrophic forgetting. In this paper, we provide a novel viewpoint of regularization-based continual learning by formulating it as a second-order Taylor approximation of the loss function of each task. This viewpoint leads to a unified framework that can be instantiated to derive many existing algorithms such as Elastic Weight Consolidation and Kronecker factored Laplace approximation. Based on this viewpoint, we study the optimization aspects $(i.e.$, convergence) as well as generalization properties $(i.e.$, finite-sample guarantees) of regularization-based continual learning. Our theoretical results indicate the importance of accurate approximation of the Hessian matrix. The experimental results on several benchmarks provide an empirical validation of our theoretical findings. ## 1 Introduction Neural networks are achieving human-level performance on many cognitive tasks including image classification (Krizhevsky et al., 2012) and speech recognition (Hinton et al., 2006). However, as opposed to humans, their acquired knowledge is comparably volatile and can be easily dismissed. Especially, the catastrophicforgetting phenomenon refers to the case when a neural network forgets the past tasks if it is not allowed to retrain or reiterate on them again (Goodfellow et al., 2013; McCloskey and Cohen, 1989). $\textit{Continual learning is a research direction that deals with the catastrophic forgetting problem. Recent works}$ tried to tackle this issue from a variety of perspectives. Most approaches can be categorized into three classes, $i.e.$, , the regularization-based (Kirkpatrick et al., 2017; Zenke et al., 2017; Ritter et al., 2018; Farajtabar et al., 2020), expansion-based (Rusu et al., 2016; Yoon et al., 2018), and replay-based methods (Lopez-Paz and Ranzato, 2017; Chaudhry et al., 2018). Although various algorithms have been proposed, few efforts were spent on the theoretical foundations of continual learning. Take the regularization-based approach as an example; in these algorithms, we usually construct a quadratic regularization function which penalizes the updates to the weights that are important to prior tasks. In most works, the regularization functions are designed based on heuristics without a theoretically rigorous understanding of how they affect the optimization and generalization of the learning algorithm, and how they mitigate catastrophic forgetting. We believe a solid theoretical foundation can enable better design and development of efficient continual learning algorithms. In this paper, we tackle the optimization and generalization aspects of regularization-based continual learning. We study a unified framework for these algorithms from the perspective of loss landscapes. More specifically, in our framework at the end of each task we approximate the loss function by estimating its second-order Taylor expansion $^{*}$dongyin@google.com $_{+}^{\dagger}$farajtabar@google.com ${}_{c}^{\dagger}$anglili@google.com $\tilde{\mathrm{s}}_{\mathrm{nirlevine@google.com}}$ $\P$alexmott@google.com
[ [ "0.10864", "0.1414", "0.892", "0.1414", "0.892", "0.159", "0.10864", "0.159" ], [ "0.2467", "0.1686", "0.751", "0.1686", "0.751", "0.1863", "0.2467", "0.1863" ], [ "0.1609", "0.2058", "0.8384", "0.2058", "0.8384", "0.2235", "0.1609", "0.2235" ], [ "0.3816", "0.2361", "0.6177", "0.2361", "0.6177", "0.254", "0.3816", "0.254" ], [ "0.0237", "0.2551", "0.058", "0.2551", "0.058", "0.3718", "0.0237", "0.3718" ], [ "0.4224", "0.276", "0.574", "0.2747", "0.574", "0.2922", "0.4224", "0.2935" ], [ "0.468", "0.3372", "0.5337", "0.3372", "0.5337", "0.3484", "0.468", "0.3484" ], [ "0.1487", "0.3547", "0.8716", "0.3547", "0.8716", "0.3687", "0.1487", "0.3687" ], [ "0.0237", "0.3687", "0.058", "0.3687", "0.06046", "0.459", "0.02696", "0.459" ], [ "0.03186", "0.363", "0.04984", "0.363", "0.04984", "0.377", "0.03186", "0.377" ], [ "0.1274", "0.3694", "0.869", "0.3694", "0.869", "0.3833", "0.1274", "0.3833" ], [ "0.1274", "0.3833", "0.8716", "0.3833", "0.8716", "0.3965", "0.1274", "0.3965" ], [ "0.1274", "0.3977", "0.871", "0.3977", "0.871", "0.411", "0.1274", "0.411" ], [ "0.1274", "0.411", "0.871", "0.411", "0.871", "0.4248", "0.1274", "0.4248" ], [ "0.1274", "0.4248", "0.8716", "0.4248", "0.8716", "0.4382", "0.1274", "0.4382" ], [ "0.1283", "0.4382", "0.8716", "0.4382", "0.8716", "0.4526", "0.1283", "0.4526" ], [ "0.1274", "0.452", "0.863", "0.452", "0.863", "0.4653", "0.1274", "0.4653" ], [ "0.02124", "0.4602", "0.058", "0.4602", "0.058", "0.64", "0.02124", "0.64" ], [ "0.1274", "0.4666", "0.871", "0.4666", "0.871", "0.4797", "0.1274", "0.4797" ], [ "0.1259", "0.4797", "0.8735", "0.4797", "0.8735", "0.4937", "0.1259", "0.4937" ], [ "0.125", "0.4924", "0.8037", "0.4937", "0.8037", "0.5083", "0.125", "0.507" ], [ "0.09235", "0.536", "0.0972", "0.536", "0.0972", "0.5425", "0.09235", "0.5425" ], [ "0.12335", "0.531", "0.267", "0.532", "0.267", "0.5474", "0.12335", "0.547" ], [ "0.08826", "0.5625", "0.989", "0.5625", "0.989", "0.577", "0.08826", "0.577" ], [ "0.0866", "0.5776", "0.911", "0.5776", "0.911", "0.5913", "0.0866", "0.5913" ], [ "0.08826", "0.5923", "0.9126", "0.5923", "0.9126", "0.606", "0.08826", "0.606" ], [ "0.08826", "0.608", "0.9126", "0.608", "0.9126", "0.622", "0.08826", "0.622" ], [ "0.0866", "0.6226", "0.3423", "0.6226", "0.3423", "0.636", "0.0866", "0.636" ], [ "0.02287", "0.632", "0.05392", "0.63", "0.05963", "0.6787", "0.02777", "0.681" ], [ "0.11273", "0.637", "0.9126", "0.637", "0.9126", "0.6514", "0.11273", "0.6514" ], [ "0.0866", "0.653", "0.91", "0.653", "0.91", "0.6665", "0.0866", "0.6665" ], [ "0.08826", "0.6685", "0.91", "0.6685", "0.91", "0.6816", "0.08826", "0.6816" ], [ "0.0866", "0.683", "0.914", "0.6816", "0.914", "0.6963", "0.0866", "0.6978" ], [ "0.0866", "0.6987", "0.2507", "0.6987", "0.2507", "0.712", "0.0866", "0.712" ], [ "0.1095", "0.7134", "0.914", "0.7134", "0.914", "0.728", "0.1095", "0.728" ], [ "0.08496", "0.729", "0.9126", "0.729", "0.9126", "0.742", "0.08496", "0.742" ], [ "0.08496", "0.7437", "0.911", "0.7437", "0.911", "0.757", "0.08496", "0.757" ], [ "0.0866", "0.759", "0.914", "0.759", "0.914", "0.773", "0.0866", "0.773" ], [ "0.0866", "0.7734", "0.9126", "0.7734", "0.9126", "0.787", "0.0866", "0.787" ], [ "0.0866", "0.7886", "0.914", "0.7886", "0.914", "0.803", "0.0866", "0.803" ], [ "0.08417", "0.803", "0.2361", "0.8037", "0.2361", "0.8184", "0.08417", "0.8174" ], [ "0.1111", "0.8184", "0.911", "0.8184", "0.911", "0.8335", "0.1111", "0.8335" ], [ "0.08496", "0.8335", "0.9126", "0.834", "0.9126", "0.8486", "0.08496", "0.8477" ], [ "0.0866", "0.8496", "0.9126", "0.8496", "0.9126", "0.863", "0.0866", "0.863" ], [ "0.1095", "0.8735", "0.2361", "0.8735", "0.2361", "0.884", "0.1095", "0.884" ], [ "0.1054", "0.884", "0.2532", "0.884", "0.2532", "0.898", "0.1054", "0.898" ], [ "0.1054", "0.8965", "0.2303", "0.898", "0.2303", "0.909", "0.1054", "0.9077" ], [ "0.1054", "0.909", "0.2427", "0.909", "0.2427", "0.9224", "0.1054", "0.9224" ], [ "0.10455", "0.9204", "0.2443", "0.922", "0.2443", "0.935", "0.10455", "0.9346" ] ]
[ "Optimization and Generalization of Regularization-Based Continual", "Learning: a Loss Approximation Viewpoint", "Dong Yin *1, Mehrdad Farajtabar t1, Ang Li 1, Nir Levine s1, and Alex Mott 11", "'DeepMind, Mountain View", "", "December 5, 2021", "Abstract", "Neural networks have achieved remarkable success in many cognitive tasks. However, when they are trained", "[DT'S]", "", "sequentially on multiple tasks without access to old data, their performance on early tasks tend to drop signifi-", "cantly. This problem is often referred to as catastrophic forgetting, a key challenge in continual learning of neural", "networks. The regularization-based approach is one of the primary classes of methods to alleviate catastrophic", "forgetting. In this paper, we provide a novel viewpoint of regularization-based continual learning by formulating", "it as a second-order Taylor approximation of the loss function of each task. This viewpoint leads to a unified", "framework that can be instantiated to derive many existing algorithms such as Elastic Weight Consolidation and", "Kronecker factored Laplace approximation. Based on this viewpoint, we study the optimization aspects (i.e", "6000", "convergence) as well as generalization properties (i.e., finite-sample guarantees) of regularization-based continual", "learning. Our theoretical results indicate the importance of accurate approximation of the Hessian matrix. The", "experimental results on several benchmarks provide an empirical validation of our theoretical findings.", "-", "Introduction", "Neural networks are achieving human-level performance on many cognitive tasks including image classification (Krizhevsky et al.,", "2012) and speech recognition (Hinton et al., 2006). However, as opposed to humans, their acquired knowledge is com-", "parably volatile and can be easily dismissed. Especially, the catastrophic forgetting phenomenon refers to the case", "when a neural network forgets the past tasks if it is not allowed to retrain or reiterate on them again (Goodfellow et al.,", "2013; McCloskey and Cohen, 1989).", "IXe", "Continual learning is a research direction that deals with the catastrophic forgetting problem. Recent works", "tried to tackle this issue from a variety of perspectives. Most approaches can be categorized into three classes, i.e..", ", the regularization-based (Kirkpatrick et al., 2017; Zenke et al., 2017; Ritter et al., 2018; Farajtabar et al., 2020),", "expansion-based (Rusu et al., 2016; Yoon et al., 2018), and replay-based methods (Lopez-Paz and Ranzato, 2017;", "Chaudhry et al., 2018)", "Although various algorithms have been proposed, few efforts were spent on the theoretical foundations of continual", "learning. Take the regularization-based approach as an example; in these algorithms, we usually construct a quadratic", "regularization function which penalizes the updates to the weights that are important to prior tasks.In most", "works, the regularization functions are designed based on heuristics without a theoretically rigorous understanding", "of how they affect the optimization and generalization of the learning algorithm, and how they mitigate catastrophic", "forgetting. We believe a solid theoretical foundation can enable better design and development of efficient continual", "learning algorithms.", "In this paper, we tackle the optimization and generalization aspects of regularization-based continual learning.", "We study a unified framework for these algorithms from the perspective of loss landscapes. More specifically, in our", "framework at the end of each task we approximate the loss function by estimating its second-order Taylor expansion.", "dongyin@google.com", "tfarajtabar@google.com", "tanglili@google.com", "nirlevine@google.com", "lalexmott@google.com" ]
{ "arxiv_id": "2006.10974", "language": "en", "page_idx": 0 }
2006.10974-en-1
2006.10974-en-1.jpg
The approximation is used as a surrogate added to the loss function of the future tasks. We show that many existing algorithms such as Elastic Weight Consolidation (EWC) (Kirkpatrick et al., 2017) and Kronecker factored Laplace approximation (Ritter et al., 2018) are special cases of our framework. More importantly, equipped with this loss function approximation viewpoint, we are able to conduct rigorous analysis of the regularization-based algorithms. In summary, we make the following theoretical contributions: $\bullet$ To study the optimization and generalization properties of regularization-based continual learning, we provide a loss approximation framework that unifies a few important continual learning methods $\bullet$ We leverage the unified framework to prove a sufficient and worst-case necessary condition under which by conducting gradient descent on the approximate loss function, we can still minimize the actual loss function. We identify the accuracy of Hessian matrix approximation, the moving distance in parameter space between tasks, and high order derivatives as important factors in the optimization procedure of the algorithms. $\bullet$ We further provide convergence analysis of regularization-based continual learning for both non-convex and convex loss functions. $\bullet$ We also investigate the generalization property of the algorithms under the loss approximation framework and provide fnite-sample guarantees. In addition to the theoretical contributions, we also present experimental evidence on three common continual learning benchmarks to validate our theoretical findings using the loss approximation viewpoint. $\textbf{Notation Throughout this paper, for any positive integer }N$,we define $[N]:=\{1,2,\ldots,N\}.$ We use $\|\cdot\|_2$ to denote the $\ell_2$ norm of vectors and the operator norm of matrices. # $\begin{array}{cc}2&\text{Related Work}\end{array}$ Continual learning algorithms Generally speaking, three classes of algorithms exist to overcome catastrophic forgetting: regularization-based, replay-$based$, and expansion-based methods. The regularization-based approaches are the main focus of this paper. These methods usually impose limiting constraints on the weight updates of the neural network according to some relevance score for previous knowledge (Kirkpatrick et al., 2017; Zenke et al., 2017; Ritter et al., 2018; Mirzadeh et al., 2020a; Farajtabar et al., 2020). They can also be combined with other methods (Nguyen et al., 2017; Titsias et al., 2019). A large fraction of regularization-based algorithms construct a quadratic regularization function at the end of each task and combine it with the loss of future tasks (Kirkpatrick et al., 2017; Zenke et al., 2017; Ritter et al., 2018; Aljundi et al., 2018; Park et al., 2019). In this paper, we show that our loss function approximation viewpoint provides a general framework for understanding these methods. The expansion-based methods allocate new neurons or layers or modules to accommodate new tasks while utilizing the shared representation learned from previous ones (Rusu et al., 2016; Xiao et al., 2014; Yoon et al., 2018; Li et al., 2019; Jerfel et al., 2019). The replay-based methods store previous data or, alternatively, train a generative model of them and replay samples from them interleaved with samples drawn from the current task (Shin et al., 2017; Kamra et al., 2017; Zhang et al., 2019; Rios and Itti, 2018; Lüders et al., 2016; Lopez-Paz and Ranzato, 2017). Theoretical understanding for continual learning One prior work that uses second-order Taylor expansion to approximate the loss functions of previous tasks is the Efficient Lifelong Learning Algorithm (ELLA) (Ruvolo and Eaton, 2013). We emphasize that ELLA is actually a special case in our framework. ELLA aims to construct a latent dictionary such that the model parameters for each task can be represented as a sparse linear combination of the items in the dictionary. Using the terminology of neural networks, this is equivalent to a one hidden layer linear network $(i.e.$, the activation function is identity) with multi-head structure, where each head corresponds to each task. In contrast, our framework does not rely on specific neural network architectures and thus can be applied to more general problems. As for the theoretical guarantees, Ruvolo and Eaton (2013) only showed the convergence of the $approximate\textit{ loss, whereas in this paper, we focus on mitigating catastrophic forgetting, }i. e. $, the gap between the approximate loss and the actual loss and how this gap affects the optimization and generalization of the learning problem. 2
[ [ "0.08905", "0.09155", "0.9126", "0.09155", "0.9126", "0.1061", "0.08905", "0.1061" ], [ "0.08826", "0.1067", "0.9126", "0.1067", "0.9126", "0.1218", "0.08826", "0.1218" ], [ "0.08496", "0.1225", "0.591", "0.1218", "0.591", "0.1364", "0.08496", "0.137" ], [ "0.1111", "0.137", "0.9126", "0.137", "0.9126", "0.1515", "0.1111", "0.1515" ], [ "0.0866", "0.1528", "0.8735", "0.1528", "0.8735", "0.1674", "0.0866", "0.1674" ], [ "0.09314", "0.1799", "0.914", "0.1799", "0.914", "0.1945", "0.09314", "0.1945" ], [ "0.10864", "0.1957", "0.74", "0.1957", "0.74", "0.2102", "0.10864", "0.2102" ], [ "0.09644", "0.2203", "0.911", "0.2203", "0.911", "0.2343", "0.09644", "0.2343" ], [ "0.1095", "0.2361", "0.911", "0.2361", "0.911", "0.25", "0.1095", "0.25" ], [ "0.10864", "0.25", "0.9126", "0.2507", "0.9126", "0.2651", "0.10864", "0.2644" ], [ "0.1095", "0.2664", "0.8013", "0.2664", "0.8013", "0.2798", "0.1095", "0.2798" ], [ "0.09314", "0.2886", "0.914", "0.2903", "0.914", "0.308", "0.09314", "0.3062" ], [ "0.1095", "0.308", "0.2141", "0.308", "0.2141", "0.3208", "0.1095", "0.3208" ], [ "0.09314", "0.3308", "0.9126", "0.3308", "0.9126", "0.3452", "0.09314", "0.3452" ], [ "0.1095", "0.3452", "0.3489", "0.3452", "0.3489", "0.3591", "0.1095", "0.3591" ], [ "0.1095", "0.3738", "0.9126", "0.3738", "0.9126", "0.3882", "0.1095", "0.3882" ], [ "0.0866", "0.3894", "0.778", "0.3894", "0.778", "0.404", "0.0866", "0.404" ], [ "0.0866", "0.4216", "0.911", "0.4216", "0.911", "0.4363", "0.0866", "0.4363" ], [ "0.08496", "0.4375", "0.558", "0.4375", "0.558", "0.4507", "0.08496", "0.4507" ], [ "0.0866", "0.476", "0.1054", "0.476", "0.1054", "0.4893", "0.0866", "0.4893" ], [ "0.1168", "0.4792", "0.1217", "0.483", "0.1177", "0.4873", "0.1111", "0.4817" ], [ "0.11926", "0.476", "0.282", "0.476", "0.282", "0.4905", "0.11926", "0.4905" ], [ "0.08826", "0.506", "0.9126", "0.506", "0.9126", "0.5195", "0.08826", "0.5195" ], [ "0.0866", "0.5215", "0.6284", "0.5215", "0.6284", "0.535", "0.0866", "0.535" ], [ "0.1111", "0.536", "0.9126", "0.535", "0.9126", "0.55", "0.1111", "0.5503" ], [ "0.0866", "0.552", "0.911", "0.552", "0.911", "0.565", "0.0866", "0.565" ], [ "0.0866", "0.5664", "0.91", "0.5664", "0.91", "0.58", "0.0866", "0.58" ], [ "0.08826", "0.582", "0.914", "0.582", "0.914", "0.595", "0.08826", "0.595" ], [ "0.08417", "0.5967", "0.9126", "0.595", "0.9126", "0.61", "0.08417", "0.6113" ], [ "0.08496", "0.6123", "0.9126", "0.6123", "0.9126", "0.6255", "0.08496", "0.6255" ], [ "0.0866", "0.627", "0.911", "0.627", "0.911", "0.6416", "0.0866", "0.6416" ], [ "0.0866", "0.6426", "0.367", "0.6426", "0.367", "0.656", "0.0866", "0.656" ], [ "0.1111", "0.657", "0.911", "0.657", "0.911", "0.6704", "0.1111", "0.6704" ], [ "0.08496", "0.6704", "0.9087", "0.672", "0.9087", "0.686", "0.08496", "0.685" ], [ "0.0866", "0.686", "0.911", "0.686", "0.911", "0.6997", "0.0866", "0.6997" ], [ "0.0866", "0.702", "0.9126", "0.702", "0.9126", "0.7153", "0.0866", "0.7153" ], [ "0.0866", "0.7173", "0.8784", "0.7173", "0.8784", "0.731", "0.0866", "0.731" ], [ "0.0866", "0.75", "0.914", "0.75", "0.914", "0.763", "0.0866", "0.763" ], [ "0.0866", "0.7666", "0.9287", "0.7666", "0.9287", "0.78", "0.0866", "0.78" ], [ "0.08496", "0.779", "0.911", "0.78", "0.911", "0.7944", "0.08496", "0.7935" ], [ "0.0866", "0.7954", "0.9126", "0.7954", "0.9126", "0.8096", "0.0866", "0.8096" ], [ "0.08496", "0.811", "0.914", "0.811", "0.914", "0.8247", "0.08496", "0.8247" ], [ "0.0866", "0.8257", "0.914", "0.8257", "0.914", "0.8403", "0.0866", "0.8403" ], [ "0.08496", "0.8413", "0.9126", "0.8413", "0.9126", "0.855", "0.08496", "0.855" ], [ "0.0866", "0.856", "0.9126", "0.856", "0.9126", "0.869", "0.0866", "0.869" ], [ "0.0866", "0.8706", "0.9126", "0.8706", "0.9126", "0.8853", "0.0866", "0.8853" ], [ "0.0866", "0.886", "0.914", "0.886", "0.914", "0.8994", "0.0866", "0.8994" ], [ "0.0866", "0.903", "0.1503", "0.903", "0.1503", "0.914", "0.0866", "0.914" ], [ "0.5", "0.9556", "0.5107", "0.964", "0.5", "0.9727", "0.4885", "0.964" ] ]
[ "The approximation is used as a surrogate added to the loss function of the future tasks. We show that many existing", "algorithms such as Elastic Weight Consolidation (EWC) (Kirkpatrick et al., 2017) and Kronecker factored Laplace", "approximation (Ritter et al., 2018) are special cases of our framework.", "More importantly, equipped with this loss function approximation viewpoint, we are able to conduct rigorous", "analysis of the regularization-based algorithms. In summary, we make the following theoretical contributions:", ": To study the optimization and generalization properties of regularization-based continual learning, we provide a", "loss approximation framework that unifies a few important continual learning methods.", ". We leverage the unified framework to prove a sufficient and worst-case necessary condition under which by", "conducting gradient descent on the approximate loss function, we can still minimize the actual loss function. We", "identify the accuracy of Hessian matrix approximation, the moving distance in parameter space between tasks,", "and high order derivatives as important factors in the optimization procedure of the algorithms.", ". We further provide convergence analysis of regularization-based continual learning for both non-convex and convex", "loss functions.", ": We also investigate the generalization property of the algorithms under the loss approximation framework and", "provide finite-sample guarantees.", "In addition to the theoretical contributions, we also present experimental evidence on three common continual", "learning benchmarks to validate our theoretical findings using the loss approximation viewpoint.", "Notation Throughout this paper, for any positive integer N, we define [M] := [1,2,..., N]. We use l - l2 to", "denote the l2 norm of vectors and the operator norm of matrices.", "2", "", " Related Work", "Continual learning algorithmsGenerally speaking, three classes of algorithms exist to overcome catastrophic", "forgetting: regularization-based, replay-based, and erpansion-based methods.", "The regularization-based approaches are the main focus of this paper. These methods usually impose limiting", "constraints on the weight updates of the neural network according to some relevance score for previous knowl-", "edge (Kirkpatrick et al., 2017; Zenke et al., 2017; Ritter et al., 2018; Mirzadeh et al., 2020a; Farajtabar et al., 2020).", "They can also be combined with other methods (Nguyen et al., 2017; Titsias et al., 2019). A large fraction of", "regularization-based algorithms construct a quadratic regularization function at the end of each task and combine", "it with the loss of future tasks (Kirkpatrick et al., 2017; Zenke et al., 2017; Ritter et al., 2018; Aljundi et al., 2018;", "Park et al., 2019). In this paper, we show that our loss function approximation viewpoint provides a general frame-", "work for understanding these methods.", "The ecpansion-based methods allocate new neurons or layers or modules to accommodate new tasks while utilizing", "the shared representation learned from previous ones (Rusu et al., 2016; Xiao et al., 2014; Yoon et al., 2018; Li et al.", "2019: Jerfel et al., 2019). The replay-based methods store previous data or, alternatively, train a generative model", "of them and replay samples from them interleaved with samples drawn from the current task (Shin et al., 2017:", "Kamra et al., 2017; Zhang et al., 2019; Rios and Itti, 2018; Liders et al., 2016; Lopez-Paz and Ranzato, 2017).", "Theoretical understanding for continual learning One prior work that uses second-order Taylor expansion to", "approximate the loss functions of previous tasks is the Efficient Lifelong Learning Algorithm (ELLA) (Ruvolo and Eaton", "2013). We emphasize that ELLA is actually a special case in our framework. ELLA aims to construct a latent dic-", "tionary such that the model parameters for each task can be represented as a sparse linear combination of the items", "in the dictionary. Using the terminology of neural networks, this is equivalent to a one hidden layer linear network", "(i.e., the activation function is identity) with multi-head structure, where each head corresponds to each task. In", "contrast, our framework does not rely on specific neural network architectures and thus can be applied to more", "general problems. As for the theoretical guarantees, Ruvolo and Eaton (2013) only showed the convergence of the", "approcimate loss, whereas in this paper, we focus on mitigating catastrophic forgetting, i.e., the gap between the", "approximate loss and the actual loss and how this gap affects the optimization and generalization of the learning", "problem.", "2" ]
{ "arxiv_id": "2006.10974", "language": "en", "page_idx": 1 }
2006.10974-en-2
2006.10974-en-2.jpg
Another line of theoretical research focuses on regret analysis for continual learning ( Alquier et al., 2017; Finn et al., 2019; Wu et al., 2019). These studies aim to analyze the behavior of the algorithm during the course of train- $ing.$ In comparison, we focus on the forgetting problem, $i.e.$, the performance of the $final\textit{model. A recentine}$ work (Bennani and Sugiyama, 2020) studies the generalization property of the OGD algorithm (Farajtabar et al., 2020), which does not use the quadratic regularization loss. Another important but different topic in continual/multitask learning is the generalization to unseen tasks (Baxter, 1998; Maurer et al., 2016; Pentina and Ben-David, 2015). A few other works try to obtain a better understanding of continual learning via empirical methods (Nguyen et al., 2019; Farquhar and Gal, 2019; Mirzadeh et al., 2020b). # 3 Problem Formulation In this section, we present the continual learning formulation studied in this paper. We consider a sequence of $K$ supervised learning tasks $\mathcal{T}_k,k\in[K].$ For task $\mathcal{T}_k$, there is an unknown distribution $\mathcal{D}_k$ over the space of feature-label pairs $\mathcal{X}\times\mathcal{Y}.$ Let $\mathcal{W}\subseteq\mathbb{R}^d$ be a model parameter space, and for the $k$-th task, let $\ell_k(w;x,y):\mathcal{W}\mapsto\mathbb{R}$ be the loss function of $w$ associated with data point $(x,y).$ The population loss function of task $\mathcal{T}_k$ is defined as $$L_{k}(w):=\mathbb{E}_{(x,y)\sim\mathcal{D}_{k}}\ell_{k}(w;x,y).$$ Our general objective is to learn a parametric model with minimized population loss over all the $K$ tasks. More specifically, in continual learning the learner follows the following protocol: When learning on the $k$-th task, the learner obtains access to $n_k$ data points $(x_k,i,y_{k,i}),i\in[n_k]$ sampled i.i.d. according to $\mathcal{D}_k$ and we define $$\widehat{L}_k(w):=\frac{1}{n_k}\sum_{i=1}^{n_k}\ell_k(w;x_{k,i},y_{k,i})$$ as the empirical loss function; the learner then updates the model parameter $w$ using these $n_k$ training data, and after the training procedure is finished, the learner loses access to them, but can store some side information about the task. The goal is to avoid forgetting previous tasks when trained on new tasks by utilizing the side information. 4 Regularization-Based Approaches and Loss Approximation Viewpoint As mentioned in Section 2, one important approach to solving continual learning problems is to use regularization. In these algorithms, at the end of each task, we construct a regularization function of the model parameters, usually quadratic, and when training future tasks, we minimize the regularized loss function. In this section, we derive a unified framework for regularization-based continual learning through the lens of loss function approximation, and demonstrate that many existing algorithms can be considered as variants of our framework To measure the effectiveness of a continual learning algorithm, we use a simple criterion that after each task, we want the average population loss over all the tasks to be small. This means that, for every $k\in[K]$, after training on $\mathcal{T}_k$, we want to find $w$ to minimize $\frac1k\sum_{k^{\prime}=1}^kL_{k^{\prime}}(w).$ Since optimizing the loss function is the key to training a good model, we begin with a straightforward method for continual learning: storing the second-order Taylor expansion of the empirical loss function, and using it as an approximation of the loss function for an old task when training on new tasks. We start with a simple setting. Suppose that there are two tasks, and at the end of $\mathcal{T}_1$, we obtain a ${\mathrm{model~}}\widehat{w}_1.{\mathrm{~Then~we~compute~the~gradient~and~Hessian~matrix~of~}}\widehat{L}_1(w)$ at $\widehat{w}_1,{\mathrm{and~construct~the~second-order~Taylor}}$ expansion of $\hat{L}_{1}(w)$ at $\widehat{w}_{1}\colon$ $$L_{1}^{\mathrm{prox}}(w)=\widehat L_{1}(\widehat w_{1})+(w-\widehat w_{1})^{\top}\nabla\widehat L_{1}(\widehat w_{1})+\frac{1}{2}(w-\widehat w_{1})^{\top}\nabla^{2}\widehat L_{1}(\widehat w_{1})(w-\widehat w_{1}).$$ When training on $\mathcal{T}_2$, we try to minimize $\frac12(L_1^{\mathrm{prox}}(w)+\widehat{L}_2(w)).$ The basic idea of this design is that, we hope in a neighborhood around $\widehat w_1$, the quadratic function $L_1^\mathrm{prox}(w)$ stays as a good approximation of $\widehat L_1(w)$, and thus $\begin{aligned}\text{approximately still minimizes the average of the empirical loss functions }\frac{1}{2}(\widehat{L}_{1}(w)+\widehat{L}_{2}(w)),\mathrm{~which~in~the~limit}\end{aligned}$ generalizes to the population loss function $\frac12(L_1(w)+\bar{L}_2(w)).$ 3
[ [ "0.1111", "0.09155", "0.919", "0.09155", "0.919", "0.1061", "0.1111", "0.1061" ], [ "0.08826", "0.1067", "0.9126", "0.1067", "0.9126", "0.1206", "0.08826", "0.1206" ], [ "0.0866", "0.1237", "0.9126", "0.1237", "0.9126", "0.137", "0.0866", "0.137" ], [ "0.08826", "0.137", "0.91", "0.137", "0.91", "0.1509", "0.08826", "0.1509" ], [ "0.0866", "0.1528", "0.91", "0.1528", "0.91", "0.1666", "0.0866", "0.1666" ], [ "0.08826", "0.1674", "0.9126", "0.1674", "0.9126", "0.1818", "0.08826", "0.1818" ], [ "0.08826", "0.1831", "0.9126", "0.1831", "0.9126", "0.1963", "0.08826", "0.1963" ], [ "0.0866", "0.1976", "0.4805", "0.1976", "0.4805", "0.2108", "0.0866", "0.2108" ], [ "0.08417", "0.2343", "0.3694", "0.2349", "0.3694", "0.2524", "0.08417", "0.252" ], [ "0.08496", "0.2676", "0.91", "0.2676", "0.91", "0.281", "0.08496", "0.281" ], [ "0.08496", "0.2827", "0.9126", "0.2827", "0.9126", "0.2966", "0.08496", "0.2966" ], [ "0.08826", "0.2966", "0.911", "0.2966", "0.911", "0.3113", "0.08826", "0.3113" ], [ "0.08496", "0.3132", "0.808", "0.3132", "0.808", "0.327", "0.08496", "0.327" ], [ "0.3896", "0.339", "0.607", "0.339", "0.607", "0.3567", "0.3896", "0.3567" ], [ "0.0866", "0.3674", "0.9126", "0.3674", "0.9126", "0.3806", "0.0866", "0.3806" ], [ "0.0866", "0.3833", "0.9126", "0.3833", "0.9126", "0.3965", "0.0866", "0.3965" ], [ "0.0825", "0.3958", "0.8364", "0.3965", "0.8364", "0.414", "0.0825", "0.4136" ], [ "0.4558", "0.4224", "0.6177", "0.4343", "0.614", "0.4622", "0.452", "0.4507" ], [ "0.3857", "0.435", "0.452", "0.435", "0.452", "0.4507", "0.3857", "0.4507" ], [ "0.4534", "0.443", "0.505", "0.452", "0.501", "0.4666", "0.4495", "0.4583" ], [ "0.0866", "0.4749", "0.911", "0.4749", "0.911", "0.488", "0.0866", "0.488" ], [ "0.0866", "0.4905", "0.911", "0.4905", "0.911", "0.504", "0.0866", "0.504" ], [ "0.0866", "0.506", "0.911", "0.506", "0.911", "0.5195", "0.0866", "0.5195" ], [ "0.08826", "0.547", "0.1274", "0.547", "0.1274", "0.558", "0.08826", "0.558" ], [ "0.11926", "0.5435", "0.911", "0.5435", "0.911", "0.561", "0.11926", "0.561" ], [ "0.0866", "0.5737", "0.91", "0.5737", "0.91", "0.587", "0.0866", "0.587" ], [ "0.0866", "0.589", "0.9126", "0.589", "0.9126", "0.603", "0.0866", "0.603" ], [ "0.08496", "0.605", "0.9126", "0.605", "0.9126", "0.6187", "0.08496", "0.6187" ], [ "0.0866", "0.619", "0.9126", "0.619", "0.9126", "0.634", "0.0866", "0.634" ], [ "0.0866", "0.6353", "0.74", "0.6353", "0.74", "0.6484", "0.0866", "0.6484" ], [ "0.1111", "0.6494", "0.9126", "0.6494", "0.9126", "0.664", "0.1111", "0.664" ], [ "0.0866", "0.664", "0.9126", "0.664", "0.9126", "0.6787", "0.0866", "0.6787" ], [ "0.08496", "0.681", "0.914", "0.681", "0.914", "0.6987", "0.08496", "0.6987" ], [ "0.0866", "0.6978", "0.9126", "0.6978", "0.9126", "0.711", "0.0866", "0.711" ], [ "0.08496", "0.712", "0.9126", "0.712", "0.9126", "0.726", "0.08496", "0.726" ], [ "0.08417", "0.726", "0.9126", "0.7266", "0.9126", "0.741", "0.08417", "0.7407" ], [ "0.08496", "0.741", "0.911", "0.741", "0.911", "0.755", "0.08496", "0.755" ], [ "0.08496", "0.759", "0.2778", "0.759", "0.2778", "0.773", "0.08496", "0.773" ], [ "0.2279", "0.787", "0.5435", "0.789", "0.5435", "0.81", "0.2279", "0.808" ], [ "0.5522", "0.7905", "0.7686", "0.789", "0.7686", "0.8066", "0.5522", "0.808" ], [ "0.08496", "0.8247", "0.914", "0.8247", "0.914", "0.8423", "0.08496", "0.8423" ], [ "0.08417", "0.8433", "0.9126", "0.8447", "0.9126", "0.8594", "0.08417", "0.858" ], [ "0.0866", "0.8623", "0.9126", "0.8623", "0.9126", "0.877", "0.0866", "0.877" ], [ "0.0866", "0.8774", "0.527", "0.8774", "0.527", "0.8926", "0.0866", "0.8926" ], [ "0.4944", "0.959", "0.5063", "0.959", "0.5063", "0.97", "0.4944", "0.97" ] ]
[ "Another line of theoretical research focuses on regret analysis for continual learning (Alquier et al., 2017; Finn et al.", "2019: Wu et al., 2019). These studies aim to analyze the behavior of the algorithm during the course of train-", "ing.In comparison, we focus on the forgetting problem, i.e.,the performance of the final model.A recent", "work (Bennani and Sugiyama, 2020) studies the generalization property of the OGD algorithm (Farajtabar et al..", "2020),which does not use the quadratic regularization loss.Another important but different topic in continual/multi-", "task learning is the generalization to unseen tasks (Baxter, 1998; Maurer et al., 2016; Pentina and Ben-David, 2015).", "A few other works try to obtain a better understanding of continual learning via empirical methods (Nguyen et al.,", "2019; Farquhar and Gal, 2019: Mirzadeh et al., 2020b).", "3Problem Formulation", "In this section, we present the continual learning formulation studied in this paper. We consider a sequence of K", "supervised learning tasks Tk, k e [K]. For task Te, there is an unknown distribution Dk over the space of feature-label", "pairs X × Y. Let w C IRd be a model parameter space, and for the k-th task, let lk(w; , y) : W R be the loss", "function of w associated with data point (r, y). The population loss function of task T is defined as", "Lk(w) := E(a,y)~Dlh(w;a,y).", "Our general objective is to learn a parametric model with minimized population loss over all the K tasks. More", "specifically, in continual learning the learner follows the following protocol: When learning on the k-th task, the", "learner obtains access to nk data points (rk,;i, Yk,i), i e [nk] sampled i.d. according to D and we define", "二es(u; k,;, k,)", "Lk(w) :=", "nk=", "as the empirical loss function; the learner then updates the model parameter w using these nk training data, and", "after the training procedure is finished, the learner loses access to them, but can store some side information about", "the task. The goal is to avoid forgetting previous tasks when trained on new tasks by utilizing the side information.", "4", "Regularization-Based Approaches and Loss Approximation Viewpoint", "As mentioned in Section 2, one important approach to solving continual learning problems is to use regularization.", "In these algorithms, at the end of each task, we construct a regularization function of the model parameters, usually", "quadratic, and when training future tasks, we minimize the regularized loss function. In this section, we derive a", "unified framework for regularization-based continual learning through the lens of loss function approximation, and", "demonstrate that many existing algorithms can be considered as variants of our framework.", "To measure the effectiveness of a continual learning algorithm, we use a simple criterion that after each task, we", "want the average population loss over all the tasks to be small. This means that, for every k e [Kl, after training on", "Tk, we want to find w to minimize k'=i L (w). Since optimizing the loss function is the key to training a good", "model, we begin with a straightforward method for continual learning: storing the second-order Taylor expansion", "of the empirical loss function, and using it as an approximation of the loss function for an old task when training", "on new tasks.We start with a simple setting. Suppose that there are two tasks, and at the end of Ti, we obtain a", "model wi. Then we compute the gradient and Hessian matrix of L,(w) at wi, and construct the second-order Taylor", "expansion of Li(w) at wi:", "Lprox(w) =Li(1)+(w-i)TvLi(1) +", "(w- 1)T2(1)(w-).", "When training on T2, we try to minimize (Lprox(w) + L2(w). The basic idea of this design is that, we hope", "in a neighborhood around wi, the quadratic function Lprox(w) stays as a good approximation of Lr(w), and thus", "approximately still minimizes the average of the empirical loss functions (Li(w) + L2(w)), which in the limit", "generalizes to the population loss function (Li(w) + L2(w)).", "3" ]
{ "arxiv_id": "2006.10974", "language": "en", "page_idx": 2 }
2006.10974-en-3
2006.10974-en-3.jpg
Formally, let $\widehat w_k$ be the model that we obtain at the end of the $k$-th task. We define the approximation of the sum of the frst $k$ empirical loss functions as (1) $$L_{k}^{\mathrm{prox}}(w)=\sum_{k'=1}^{k}\underbrace{\widehat{L}_{k'}(\widehat{w}_{k'})}_{\mathrm{(a)}}+\underbrace{(w-\widehat{w}_{k'})^{\top}\nabla\widehat{L}_{k'}(\widehat{w}_{k'})}_{\mathrm{(b)}}+\underbrace{\frac{1}{2}(w-\widehat{w}_{k'})^{\top}H_{k'}(w-\widehat{w}_{k'})}_{\mathrm{(c)}},$$ where, $H_{k^{\prime}}$ denotes the Hessian matrix $\nabla^2\widehat{L}_{k^{\prime}}(\widehat{w}_{k^{\prime}})$ or its approximation. We construct $L_k^\text{prox}(w)$ at the end of task $k$, and when training on task $k+1$,we minimize $\frac1{k+1}(L_k^\mathrm{prox}(w)+\widehat{L}_{k+1}(w)).$ One important assumption that we make throughout this work is the validity of the second-order Taylor expansion $\dot{\text{as an approximation to the loss functions. While this might seem as a crude approximation in general, we argue this}}$ has merit for our setup. More specifically, we rely on the wealth of studies on overparameterized models where the loss tends to be very well behaved and almost convex in a reasonable neighborhood around the minima (Saxe et al., 2013; Choromanska et al., 2015; Goodfellow et al., 2014). Moreover, there is a similar observation in the recently proposed NTK regime (Jacot et al., 2018). In continual learning, similar assumptions are made by most approaches that rely on approximating the posterior on the weights by a Gaussian (Kirkpatrick et al., 2017) or a first-order approximation of the loss surface around the optimum (Farajtabar et al., 2020) or an explicit Taylor expansion over the previous minima (Mirzadeh et al., 2020b). We now proceed to discuss how several existing algorithms such as EWC (Kirkpatrick et al., 2017), Kronecker $\dot{\text{approximation }(\text{Ritter et al., 2018), SI }(\text{Zenke et al., 2017), and MAS (Aljundi et al., 2018) can be considered as}}$ variants of our framework. First, the constant term (a) in Eq. (1) does not depend of $w$ and thus can be ignored. Moreover, at the end of each task, the gradient term $\widehat{L}_{k^{\prime}}(\widehat{w}_{k^{\prime}})$ is usually small, so term (b) in Eq. (1) is usually skipped in practice. In the following, we show that several existing algorithms are basically using different approaches to approximate the Hessian matrix in term (c), and thus are special cases in our framework. $\textbf{Elastic Weight Consolidation ( EWC) }$ The EWC algorithm uses a diagonal matrix whose diagonal elements are the Fisher information of the model weights to construct the regularization term. The intuition of EWC is that the weights with higher Fisher information are more important to current task, and thus should undergo less change in future tasks. As we know, if the loss function is the negative log-likelihood, and we obtained the ground truth probabilistic model, then the Fisher information matrix is equivalent to the Hessian matrix (see $e.g.$, Chapter 4.5 of Keener (2011)). Hence, the EWC algorithm can be considered as a method that uses the diagonal elements of the Hessian matrix to approximate the full Hessian in Eq. (1). Kronecker factored Laplace approximation The basic idea of the Kronecker factored Laplace approximation algorithm by Ritter et al. (2018) is similar to that of EWC, with the key difference being that it uses Kronecker product approximation of the Fisher information matrix (Martens and Grosse, 2015; Grosse and Martens, 2016). In other words, this approximation takes the off-diagonal elements of the Hessian matrix into consideration, and thus usually performs better tha EWC. Finally, the SI and MAS algorithms construct the diagonal regularization function based on the concept of intelligent synapses. Although the basic idea is different from Hessian/Fisher matrix approximation, these algorithms can also be analyzed in our framework as the regularization function is quadratic. More specifically, our analysis mainly relies on an assumption that the difference between the approximate Hessian matrix (the diagonal regularization matrix in SI and MAS) and the ground truth Hessian matrix is bounded in operator norm (see Assumption 2 in Section 5), and our analysis can be applied to SI and MAS as long as this assumption is satisfied Equipped with the loss approximation viewpoint, we are ready to perform theoretical analysis of regularizationbased algorithms in order to get deeper understanding of their behavior. We provide analyses from both optimization (Section 5) and generalization (Section 6) aspects. ## 5 Optimization Analysis As we can see, the key idea in regularization-based algorithms is to approximate the loss functions of previous tasks using quadratic functions. This leads to the following theoretical question: $By\textit{ running gradient descent algorithm on}$ $an$ approximate loss function, can we still minimize the actual loss that we are interested in? Intuitively, the answer to this question depends on several factors: 4
[ [ "0.1095", "0.0903", "0.9126", "0.09155", "0.9126", "0.1061", "0.1095", "0.1048" ], [ "0.08826", "0.1092", "0.4028", "0.1092", "0.4028", "0.1193", "0.08826", "0.1193" ], [ "0.2222", "0.1427", "0.585", "0.1427", "0.585", "0.1604", "0.2222", "0.1604" ], [ "0.5947", "0.1433", "0.7754", "0.1445", "0.7754", "0.1622", "0.5947", "0.161" ], [ "0.886", "0.1445", "0.915", "0.1445", "0.915", "0.1622", "0.886", "0.1622" ], [ "0.3064", "0.1642", "0.3325", "0.1642", "0.3325", "0.1724", "0.3064", "0.1724" ], [ "0.357", "0.1686", "0.3774", "0.1686", "0.3774", "0.1818", "0.357", "0.1818" ], [ "0.4795", "0.1674", "0.5024", "0.1674", "0.5024", "0.1818", "0.4795", "0.1818" ], [ "0.6665", "0.1718", "0.694", "0.1718", "0.694", "0.1895", "0.6665", "0.1895" ], [ "0.08826", "0.2008", "0.9126", "0.2008", "0.9126", "0.2153", "0.08826", "0.2153" ], [ "0.0866", "0.2184", "0.625", "0.2184", "0.625", "0.2329", "0.0866", "0.2329" ], [ "0.1111", "0.2343", "0.9126", "0.2343", "0.9126", "0.2488", "0.1111", "0.2488" ], [ "0.0866", "0.25", "0.9126", "0.25", "0.9126", "0.2632", "0.0866", "0.2632" ], [ "0.0866", "0.2644", "0.9126", "0.2644", "0.9126", "0.2778", "0.0866", "0.2778" ], [ "0.08496", "0.279", "0.911", "0.279", "0.911", "0.2922", "0.08496", "0.2922" ], [ "0.0866", "0.2942", "0.9126", "0.2942", "0.9126", "0.308", "0.0866", "0.308" ], [ "0.08826", "0.3093", "0.9126", "0.3093", "0.9126", "0.324", "0.08826", "0.324" ], [ "0.0866", "0.3245", "0.9126", "0.3245", "0.9126", "0.339", "0.0866", "0.339" ], [ "0.0866", "0.3403", "0.9126", "0.3403", "0.9126", "0.3542", "0.0866", "0.3542" ], [ "0.08496", "0.3542", "0.415", "0.3542", "0.415", "0.3674", "0.08496", "0.3674" ], [ "0.1095", "0.3694", "0.9126", "0.3687", "0.9126", "0.3833", "0.1095", "0.3838" ], [ "0.08496", "0.385", "0.9126", "0.3838", "0.9126", "0.3984", "0.08496", "0.3997" ], [ "0.0866", "0.401", "0.91", "0.401", "0.91", "0.414", "0.0866", "0.414" ], [ "0.0866", "0.4167", "0.9126", "0.4167", "0.9126", "0.4312", "0.0866", "0.4312" ], [ "0.08417", "0.4312", "0.9126", "0.432", "0.9126", "0.4463", "0.08417", "0.4458" ], [ "0.08496", "0.4475", "0.728", "0.4475", "0.728", "0.461", "0.08496", "0.461" ], [ "0.0866", "0.4792", "0.9126", "0.4792", "0.9126", "0.4937", "0.0866", "0.4937" ], [ "0.08496", "0.4944", "0.9126", "0.4944", "0.9126", "0.5083", "0.08496", "0.5083" ], [ "0.0866", "0.5103", "0.9126", "0.5103", "0.9126", "0.5234", "0.0866", "0.5234" ], [ "0.08496", "0.5244", "0.9126", "0.5244", "0.9126", "0.5386", "0.08496", "0.5386" ], [ "0.0866", "0.539", "0.914", "0.539", "0.914", "0.5537", "0.0866", "0.5537" ], [ "0.0866", "0.5537", "0.911", "0.5537", "0.911", "0.5684", "0.0866", "0.5684" ], [ "0.0866", "0.571", "0.505", "0.571", "0.505", "0.5854", "0.0866", "0.5854" ], [ "0.0866", "0.603", "0.9126", "0.603", "0.9126", "0.616", "0.0866", "0.616" ], [ "0.0866", "0.6187", "0.9126", "0.6187", "0.9126", "0.632", "0.0866", "0.632" ], [ "0.0866", "0.6333", "0.9126", "0.6333", "0.9126", "0.6465", "0.0866", "0.6465" ], [ "0.08496", "0.648", "0.9126", "0.6465", "0.9126", "0.661", "0.08496", "0.662" ], [ "0.0866", "0.6636", "0.335", "0.6636", "0.335", "0.677", "0.0866", "0.677" ], [ "0.1095", "0.678", "0.9087", "0.677", "0.9087", "0.6914", "0.1095", "0.6924" ], [ "0.0866", "0.6934", "0.9126", "0.6934", "0.9126", "0.707", "0.0866", "0.707" ], [ "0.08496", "0.707", "0.9126", "0.7085", "0.9126", "0.7227", "0.08496", "0.7217" ], [ "0.08496", "0.7236", "0.914", "0.7236", "0.914", "0.7373", "0.08496", "0.7373" ], [ "0.0866", "0.7393", "0.914", "0.7393", "0.914", "0.7524", "0.0866", "0.7524" ], [ "0.0866", "0.755", "0.7837", "0.755", "0.7837", "0.765", "0.0866", "0.765" ], [ "0.1111", "0.7695", "0.91", "0.7695", "0.91", "0.7827", "0.1111", "0.7827" ], [ "0.0866", "0.784", "0.9126", "0.784", "0.9126", "0.799", "0.0866", "0.799" ], [ "0.08826", "0.8", "0.4453", "0.8", "0.4453", "0.813", "0.08826", "0.813" ], [ "0.08826", "0.839", "0.10706", "0.839", "0.10706", "0.8516", "0.08826", "0.8516" ], [ "0.11273", "0.8433", "0.11926", "0.8433", "0.11926", "0.8467", "0.11273", "0.8467" ], [ "0.12335", "0.839", "0.3774", "0.839", "0.3774", "0.854", "0.12335", "0.854" ], [ "0.08826", "0.8687", "0.911", "0.8687", "0.911", "0.882", "0.08826", "0.882" ], [ "0.0866", "0.8833", "0.9126", "0.8833", "0.9126", "0.898", "0.0866", "0.898" ], [ "0.08826", "0.8984", "0.9126", "0.8984", "0.9126", "0.912", "0.08826", "0.912" ], [ "0.08496", "0.914", "0.3987", "0.914", "0.3987", "0.928", "0.08496", "0.928" ], [ "0.4968", "0.961", "0.5063", "0.961", "0.5063", "0.9683", "0.4968", "0.9683" ] ]
[ "Formally, let w be the model that we obtain at the end of the k-th task. We define the approximation of the", "sum ofthefirst kempiricallossfunctionsas", "Lprox(w) =L(We)+(w-W)TvLe(We)+", "(w-Wk)THk(w-W)", "(1)", "-1", "(a)", "(b)", "(c)", "where, Hk denotes the Hessian matrix ?L(wk) or its approximation. We construct Lprox(w) at the end of task", "k, and when training on task k + 1, we minimize l-(Lprox(w) + Lk+i(w),", "One important assumption that we make throughout this work is the validity of the second-order Taylor expansion", "as an approximation to the loss functions. While this might seem as a crude approximation in general, we argue this", "has merit for our setup. More specifically, we rely on the wealth of studies on overparameterized models where the", "loss tends to be very well behaved and almost convex in a reasonable neighborhood around the minima (Saxe et al.", "2013; Choromanska et al., 2015; Goodfellow et al., 2014). Moreover, there is a similar observation in the recently", "proposed NTK regime (Jacot et al., 2018). In continual learning, similar assumptions are made by most approaches", "that rely on approximating the posterior on the weights by a Gaussian (Kirkpatrick et al., 2017) or a first-order", "approximation of the loss surface around the optimum (Farajtabar et al., 2020) or an explicit Taylor expansion over", "the previous minima (Mirzadeh et al., 2020b),", "We now proceed to discuss how several existing algorithms such as EWC (Kirkpatrick et al., 2017), Kronecker", "approximation (Ritter et al., 2018), SI (Zenke et al., 2017), and MAs (Aljundi et al., 2018) can be considered as", "variants of our framework. First, the constant term (a) in Eq. (1) does not depend of w and thus can be ignored", "Moreover, at the end of each task, the gradient term L(w) is usually small, so term (b) in Eq. (1) is usually skipped", "in practice. In the following, we show that several existing algorithms are basically using different approaches to", "approximate the Hessian matrix in term (c), and thus are special cases in our framework.", "Elastic Weight Consolidation (EWC) The EWC algorithm uses a diagonal matrix whose diagonal elements", "are the Fisher information of the model weights to construct the regularization term. The intuition of EWC is that", "the weights with higher Fisher information are more important to current task, and thus should undergo less change", "in future tasks. As we know, if the loss function is the negative log-likelihood, and we obtained the ground truth", "probabilistic model, then the Fisher information matrix is equivalent to the Hessian matrix (see e.g., Chapter 4.5", "of Keener (2011)). Hence, the EWC algorithm can be considered as a method that uses the diagonal elements of the", "Hessian matrix to approximate the full Hessian in Eq. (1).", "Kronecker factored Laplace approximationThe basic idea of the Kronecker factored Laplace approximation", "algorithm by Ritter et al. (2018) is similar to that of EWC, with the key difference being that it uses Kronecker", "product approximation of the Fisher information matrix (Martens and Grosse, 2015; Grosse and Martens, 2016). In", "other words, this approximation takes the off-diagonal elements of the Hessian matrix into consideration, and thus", "usually performs better tha EWC.", "Finally, the SI and MAS algorithms construct the diagonal regularization function based on the concept of intelli", "gent synapses. Although the basic idea is different from Hessian/Fisher matrix approximation, these algorithms can", "also be analyzed in our framework as the regularization function is quadratic. More specifically, our analysis mainly", "relies on an assumption that the difference between the approximate Hessian matrix (the diagonal regularization", "matrix in SI and MAS) and the ground truth Hessian matrix is bounded in operator norm (see Assumption 2 in", "Section 5).and our analvsis can be appliedtoSI andMAS as long as this assumption issatisfied.", "Equipped with the loss approximation viewpoint, we are ready to perform theoretical analysis of regularization-", "based algorithms in order to get deeper understanding of their behavior. We provide analyses from both optimization", "(Section 5) and generalization (Section 6) aspects.", "5", "", "Optimization Analysis", "As we can see, the key idea in regularization-based algorithms is to approximate the loss functions of previous tasks", "using quadratic functions. This leads to the following theoretical question: By running gradient descent algorithm on", "an approrimate loss function, can we still minimize the actual loss that we are interested in? Intuitively, the answer", "to this question depends on several factors:", "4" ]
{ "arxiv_id": "2006.10974", "language": "en", "page_idx": 3 }
2006.10974-en-4
2006.10974-en-4.jpg
( i) Approximation error of the Hessian matrix. A more accurate approximation of the Hessian matrix leads to better approximation the loss function, and thus it becomes easier to minimize the actual loss given an approximation of it. (ii) The moving distance in the parameter space. We perform Taylor expansion at the end of each task. This quadratic approximation can become more and more inaccurate as the model parameters move away from the end-of-task points. Therefore, if we only need to move a small distance between tasks, $i.e.$, tasks are similar, then we may be able to achieve better performance. (iii) High order derivatives. According to the properties of Taylor expansion, the error between the Taylor approxi- mation and the actual function depends on the high order derivatives. For quadratic approximation, when the third derivative of the loss function is small, it becomes easier to keep minimizing the actual loss. In the following, we rigorously demonstrate these points. For the purpose of theoretical analysis, we make a few simplifications to our setup. Without loss of generality, we study the training process of the last task $\mathcal{T}_K$,and still use $\widehat{w}_k$ to denote the model parameters that we obtain at the end of the $k$-th task. We use the loss function approximation in Eq. (1), but in this section, for simplicity we ignore the finite-sample effect and replace the empirical loss function with the population loss function, $i.e.$,we define $$\widetilde{L}_{K-1}(w)=\sum_{k=1}^{K-1}L_{k}(\widehat{w}_{k})+(w-\widehat{w}_{k})^{\top}\nabla L_{k}(\widehat{w}_{k})+\frac{1}{2}(w-\widehat{w}_{k})^{\top}H_{k}(w-\widehat{w}_{k}),$$ where $H_k$ represents $\nabla^2L_k(\widehat{w}_k)$ or its approximation.$^1$ We discuss the finite sample (generalization) effect in the next section. As mentioned, during the training of the last task, we have access to the approximate loss function $$\widetilde F(w):=\frac{1}{K}(\widetilde L_{K-1}(w)+L_{K}(w)),$$ whereas the actual loss function that we care about is $$F(w):=\frac{1}{K}\sum_{k=1}^{K}L_{k}(w).$$ We also focus on gradient descent instead of its stochastic counterpart. In particular, let $w_0:=\widehat{w}_{K-1}$ be the initial model parameter for the last task. We run the following update for $t=1,2,\ldots,T:$ $$w_t=w_{t-1}-\eta\nabla\widetilde{F}(w_{t-1}).$$ (2) We use the following standard notions for differentiable function $f:\mathcal{W}\mapsto\mathbb{R}.$ $\textbf{Definition 1. }f$ $is$ $\mu$-smooth $if$ $\| \nabla f( w) - \nabla f( w^{\prime }) \| _{2}\leq \mu \| w- w^{\prime }\| _{2}, \forall w, w^{\prime }\in \mathcal{W}$ $\textbf{Definition 2. }fis\rho$-$Hessian\textit{ Lipschitz if }\| \nabla ^{2}f( w) - \nabla ^{2}f( w^{\prime }) \| _{2}\leq \rho \| w- w^{\prime }\| _{2}, \forall w, w^{\prime }\in \mathcal{W} .$ We make the assumptions that the loss functions are smooth and Hessian Lipschitz. We note that the Hessian Lipschitz assumption is standard in analysis of non-convex optimization (Nesterov and Polyak, 2006; Jin et al., 2017), and that the Hessian Lipschitz constant is an upper bound for the third derivative. $\textbf{Assumption 1. We assume that L}_{k}( w) \textit{is - smooth and - Hessian Lipschitz }\forall k\in [ K] .$ We also assume that the error between the matrices $H_k$ and $\nabla^2L_k(\widehat{w}_k)$ is bounded. $\textbf{Assumption 2. We assume that for every }k\in [ K] , \| H_k\| _2\leq \mu , where\mu is\textit{defned in Assumption 1, and that}$ $\| H_{k}- \nabla ^{2}L_{k}( \widehat{w} _{k}) \| _{2}\leq \delta$ for some $\delta \geq 0.$ $^{1}$In other words, $\widetilde L_K-1(w)$ is the population version of $L_K-1^{\text{prox}}(w)$ in Section 4 5
[ [ "0.0948", "0.09216", "0.9126", "0.09216", "0.9126", "0.1061", "0.0948", "0.1061" ], [ "0.11926", "0.108", "0.914", "0.108", "0.914", "0.1218", "0.11926", "0.1218" ], [ "0.1209", "0.1237", "0.1544", "0.1237", "0.1544", "0.1364", "0.1209", "0.1364" ], [ "0.08905", "0.1477", "0.9126", "0.1465", "0.9126", "0.161", "0.08905", "0.1622" ], [ "0.1177", "0.1635", "0.9126", "0.1622", "0.9126", "0.1768", "0.1177", "0.178" ], [ "0.1209", "0.1787", "0.9126", "0.1787", "0.9126", "0.1925", "0.1209", "0.1925" ], [ "0.11926", "0.1932", "0.4927", "0.1932", "0.4927", "0.207", "0.11926", "0.207" ], [ "0.0866", "0.2184", "0.91", "0.2184", "0.91", "0.2317", "0.0866", "0.2317" ], [ "0.11926", "0.2317", "0.9126", "0.2329", "0.9126", "0.2474", "0.11926", "0.2468" ], [ "0.1168", "0.2468", "0.8145", "0.2474", "0.8145", "0.262", "0.1168", "0.2615" ], [ "0.1111", "0.2734", "0.91", "0.2734", "0.91", "0.2886", "0.1111", "0.2886" ], [ "0.0866", "0.2886", "0.9126", "0.2886", "0.9126", "0.303", "0.0866", "0.303" ], [ "0.0866", "0.3062", "0.91", "0.3062", "0.91", "0.3164", "0.0866", "0.3164" ], [ "0.08826", "0.318", "0.911", "0.318", "0.911", "0.332", "0.08826", "0.332" ], [ "0.08496", "0.334", "0.5317", "0.334", "0.5317", "0.3484", "0.08496", "0.3484" ], [ "0.2303", "0.3687", "0.581", "0.3694", "0.581", "0.3901", "0.2303", "0.3894" ], [ "0.326", "0.3643", "0.3472", "0.3643", "0.3472", "0.3687", "0.326", "0.3687" ], [ "0.613", "0.3706", "0.761", "0.3718", "0.761", "0.3894", "0.613", "0.3882" ], [ "0.6006", "0.3774", "0.621", "0.3774", "0.621", "0.385", "0.6006", "0.385" ], [ "0.3245", "0.3901", "0.3506", "0.3901", "0.3506", "0.4016", "0.3245", "0.4016" ], [ "0.0866", "0.4136", "0.9126", "0.4136", "0.9126", "0.428", "0.0866", "0.428" ], [ "0.0866", "0.43", "0.8936", "0.43", "0.8936", "0.443", "0.0866", "0.443" ], [ "0.3823", "0.4602", "0.4412", "0.4602", "0.4412", "0.476", "0.3823", "0.476" ], [ "0.46", "0.4622", "0.615", "0.461", "0.615", "0.476", "0.46", "0.4766" ], [ "0.4478", "0.473", "0.4631", "0.473", "0.4631", "0.481", "0.4478", "0.481" ], [ "0.0866", "0.4924", "0.4756", "0.4924", "0.4756", "0.506", "0.0866", "0.506" ], [ "0.4722", "0.523", "0.589", "0.523", "0.589", "0.5664", "0.4722", "0.5664" ], [ "0.5073", "0.5176", "0.524", "0.5176", "0.524", "0.526", "0.5073", "0.526" ], [ "0.4182", "0.528", "0.482", "0.531", "0.4805", "0.547", "0.4167", "0.5435" ], [ "0.4878", "0.5264", "0.4944", "0.5215", "0.5", "0.526", "0.4927", "0.531" ], [ "0.0866", "0.5684", "0.9126", "0.5684", "0.9126", "0.5835", "0.0866", "0.5835" ], [ "0.08826", "0.5854", "0.6787", "0.5854", "0.6787", "0.5986", "0.08826", "0.5986" ], [ "0.4043", "0.6094", "0.5884", "0.6094", "0.5884", "0.627", "0.4043", "0.627" ], [ "0.888", "0.61", "0.915", "0.61", "0.915", "0.6274", "0.888", "0.6274" ], [ "0.11273", "0.6396", "0.6567", "0.6396", "0.6567", "0.653", "0.11273", "0.653" ], [ "0.0866", "0.664", "0.664", "0.664", "0.664", "0.6787", "0.0866", "0.6787" ], [ "0.0866", "0.6895", "0.749", "0.6895", "0.749", "0.704", "0.0866", "0.704" ], [ "0.1111", "0.714", "0.9126", "0.714", "0.9126", "0.729", "0.1111", "0.729" ], [ "0.0866", "0.731", "0.9126", "0.731", "0.9126", "0.744", "0.0866", "0.744" ], [ "0.0866", "0.7456", "0.6846", "0.7456", "0.6846", "0.7603", "0.0866", "0.7603" ], [ "0.08826", "0.771", "0.7134", "0.771", "0.7134", "0.785", "0.08826", "0.785" ], [ "0.11273", "0.7954", "0.7075", "0.7954", "0.7075", "0.81", "0.11273", "0.81" ], [ "0.08905", "0.821", "0.9126", "0.821", "0.9126", "0.8354", "0.08905", "0.8354" ], [ "0.08826", "0.8354", "0.3718", "0.8354", "0.3718", "0.8496", "0.08826", "0.8496" ], [ "0.10297", "0.857", "0.5786", "0.857", "0.5786", "0.872", "0.10297", "0.872" ], [ "0.492", "0.9663", "0.501", "0.9585", "0.509", "0.964", "0.4983", "0.9717" ] ]
[ "(i) Approximation error of the Hessian matrix. A more accurate approximation of the Hessian matrix leads to better", "approximation the loss function, and thus it becomes easier to minimize the actual loss given an approximation", "of it.", "(i) The moving distance in the parameter space.We perform Taylor expansion at the end of each task. This", "quadratic approximation can become more and more inaccurate as the model parameters move away from the", "end-of-task points. Therefore, if we only need to move a small distance between tasks, i.e., tasks are similar,", "then we may be able to achieve better performance.", "(ii) High order derivatives. According to the properties of Taylor expansion, the error between the Taylor approxi-", "mation and the actual function depends on the high order derivatives. For quadratic approximation, when the", "third derivative of the loss function is small, it becomes easier to keep minimizing the actual loss.", "In the following, we rigorously demonstrate these points. For the purpose of theoretical analysis, we make a", "few simplifications to our setup. Without loss of generality, we study the training process of the last task Tk, and", "still use wktodenote the model parameters thatwe obtain at the end of the k-thtask.We use theloss function", "approximation in Eq.(1), but in this section, for simplicity we ignore the finite-sample effect and replace the empirical", "loss function with the population loss function, i.e., we define", "Lk-1(w) = L(W) +(w-Wn)TVL(Wk) +", "", "-Wk)THi(w-Wk)", "", "k=1", "where Hk represents 2L(wk) or its approximation.1 We discuss the finite sample (generalization) effect in the", "next section. As mentioned, during the training of the last task, we have access to the approximate loss function", "F(w) :=", "-(LK-i(w)+Lk(w)),", "K", "whereas the actual loss function that we care about is", "2().", "K", "F(w) :=", ">", "We also focus on gradient descent instead of its stochastic counterpart. In particular, let wo := wk-1 be the initial", "model parameter for the last task. We run the following update for t = 1, 2, ..., T:", "Wt=Wt-1-nVF(wt-1))", "(2) ", "We use the following standard notions for differentiable function f : W -→ R", "Definition 1. f is μ-smooth if llVf(w) -Vf(w')ll2 ≤ μllw - w'll2, Vw, w' E W.", "Definition 2. f is p-Hessian Lipschitz if /v2f(w) -? f(w')ll2 ≤plw -w'll2, Vw, w' W", "We make the assumptions that the loss functions are smooth and Hessian Lipschitz. We note that the Hessian", "Lipschitz assumption is standard in analysis of non-convex optimization (Nesterov and Polyak, 2006; Jin et al., 2017),", "and that the Hessian Lipschitz constant is an upper bound for the third derivative.", "Assumption 1. We assume that Lk(w) is μ-smooth and p-Hessian Lipschitz Vk E [K].", "We also assume that the error between the matrices Hk and ?Lr(wk) is bounded.", "Assumption 2. We assume that for every k E [K], lHll2 ≤ μ, where μ is defined in Assumption 1, and that", "IHk-2Lk(w)l2≤forsome≥0.", "In other words, Lk-1(w) is the population version of Lprox(w) in Section 4.", "" ]
{ "arxiv_id": "2006.10974", "language": "en", "page_idx": 4 }
2101.04104-en-0
2101.04104-en-0.jpg
# Neural Re- Rendering of Humans from a Single Image Kripasindhu Sarkar$^1$ Dushyant Mehta$^1$ Weipeng Xu$^2$ Vladislav Golyanik$^{1}$ Christian Theobalt$^{1}$ $^{1}$MPI for Informatics, SIC ${}^2$Facebook Reality Labs Abstract. Human re-rendering from a single image is a starkly underconstrained problem, and state-of-the-art algorithms often exhibit undesired artefacts, such as over-smoothing, unrealistic distortions of the body parts and garments, or implausible changes of the texture. To address these challenges, we propose a new method for neural re-rendering of a human under a novel user-defined pose and viewpoint, given one input image. Our algorithm represents body pose and shape as a parametric mesh which can be reconstructed from a single image and easily reposed. Instead of a colour-based UV texture map, our approach further employs a learned high-dimensional UV feature map to encode appearance. This rich implicit representation captures detailed appearance variation across poses, viewpoints, person identities and clothing styles better than learned colour texture maps. The body model with the rendered feature maps is fed through a neural image translation network that creates the final rendered colour image. The above components are combined in an end-to-end-trained neural network architecture that takes as input a source person image and images of the parametric body model in the source pose and desired target pose. Experimental evaluation demonstrates that our approach produces higher-quality single image re-rendering results than existing methods Keywords: Neural Rendering, Pose Transfer, Novel View Synthesis. ## 1 Introduction Algorithms to realistically render dressed humans under controllable poses and viewpoints are essential for character animation, 3D video, or virtual and augmented reality, to name a few. Over the past decades, computer graphics and vision have developed impressive methods for high-fidelity artist-driven and reconstruction-based human modelling, high-quality animation, and photorealistic rendering. However, these often require sophisticated multi-camera setups, and deep expertise in animation and rendering, and are thus costly, timeconsuming and difficult to use. Recent advances in monocular human reconstruction and neural network-based image synthesis open up a radically different approach to the problem, neural re-rendering of humans from a single image. Project webpage: gvv.mpi-inf.mpg.de/projects/NHRR/
[ [ "0.2712", "0.1459", "0.7344", "0.1459", "0.7344", "0.1604", "0.2712", "0.1604" ], [ "0.4265", "0.1654", "0.5786", "0.1674", "0.5786", "0.1863", "0.4265", "0.1843" ], [ "0.2778", "0.2122", "0.429", "0.2108", "0.429", "0.2291", "0.2778", "0.2299" ], [ "0.4558", "0.2134", "0.591", "0.2108", "0.591", "0.2291", "0.4558", "0.2311" ], [ "0.619", "0.2134", "0.7197", "0.2108", "0.7197", "0.2291", "0.619", "0.2311" ], [ "0.3423", "0.2329", "0.486", "0.2329", "0.486", "0.2474", "0.3423", "0.2474" ], [ "0.5156", "0.2329", "0.6626", "0.2317", "0.6626", "0.2468", "0.5156", "0.2474" ], [ "0.3179", "0.2588", "0.492", "0.2588", "0.492", "0.2734", "0.3179", "0.2734" ], [ "0.5293", "0.2588", "0.6895", "0.2588", "0.6895", "0.2734", "0.5293", "0.2734" ], [ "0.02287", "0.2695", "0.06046", "0.2695", "0.06046", "0.406", "0.02287", "0.406" ], [ "0.267", "0.3093", "0.3506", "0.3093", "0.3506", "0.3208", "0.267", "0.3208" ], [ "0.343", "0.308", "0.739", "0.308", "0.739", "0.3213", "0.343", "0.3213" ], [ "0.2646", "0.3225", "0.739", "0.3225", "0.739", "0.336", "0.2646", "0.336" ], [ "0.2646", "0.336", "0.74", "0.336", "0.74", "0.3499", "0.2646", "0.3499" ], [ "0.2646", "0.351", "0.74", "0.351", "0.74", "0.3643", "0.2646", "0.3643" ], [ "0.2646", "0.3643", "0.74", "0.3643", "0.74", "0.3774", "0.2646", "0.3774" ], [ "0.2646", "0.3774", "0.74", "0.3774", "0.74", "0.3914", "0.2646", "0.3914" ], [ "0.02124", "0.3945", "0.0645", "0.3945", "0.0645", "0.5", "0.02124", "0.5" ], [ "0.2646", "0.3926", "0.74", "0.3926", "0.74", "0.406", "0.2646", "0.406" ], [ "0.0433", "0.406", "0.04984", "0.411", "0.04413", "0.4153", "0.03757", "0.4104" ], [ "0.2646", "0.406", "0.738", "0.406", "0.738", "0.4192", "0.2646", "0.4192" ], [ "0.2632", "0.4192", "0.74", "0.4192", "0.74", "0.433", "0.2632", "0.433" ], [ "0.2646", "0.433", "0.74", "0.433", "0.74", "0.4463", "0.2646", "0.4463" ], [ "0.2646", "0.4463", "0.739", "0.4463", "0.739", "0.4602", "0.2646", "0.4602" ], [ "0.2646", "0.461", "0.74", "0.461", "0.74", "0.4749", "0.2646", "0.4749" ], [ "0.2646", "0.4749", "0.74", "0.4749", "0.74", "0.488", "0.2646", "0.488" ], [ "0.02124", "0.4817", "0.0621", "0.4817", "0.0621", "0.714", "0.02124", "0.714" ], [ "0.2632", "0.488", "0.74", "0.488", "0.74", "0.502", "0.2632", "0.502" ], [ "0.2632", "0.502", "0.74", "0.5024", "0.74", "0.5166", "0.2632", "0.515" ], [ "0.2646", "0.5166", "0.74", "0.5166", "0.74", "0.53", "0.2646", "0.53" ], [ "0.2632", "0.53", "0.74", "0.53", "0.74", "0.5435", "0.2632", "0.5435" ], [ "0.2646", "0.5444", "0.74", "0.5444", "0.74", "0.558", "0.2646", "0.558" ], [ "0.2646", "0.558", "0.74", "0.558", "0.74", "0.5713", "0.2646", "0.5713" ], [ "0.2646", "0.5713", "0.596", "0.5713", "0.596", "0.5854", "0.2646", "0.5854" ], [ "0.2646", "0.5986", "0.722", "0.5986", "0.722", "0.6123", "0.2646", "0.6123" ], [ "0.2181", "0.638", "0.2378", "0.638", "0.2378", "0.651", "0.2181", "0.651" ], [ "0.2484", "0.638", "0.3743", "0.638", "0.3743", "0.653", "0.2484", "0.653" ], [ "0.2296", "0.6685", "0.786", "0.6685", "0.786", "0.6816", "0.2296", "0.6816" ], [ "0.2181", "0.683", "0.786", "0.683", "0.786", "0.6978", "0.2181", "0.6978" ], [ "0.2181", "0.6987", "0.7837", "0.6987", "0.7837", "0.712", "0.2181", "0.712" ], [ "0.2157", "0.712", "0.786", "0.7134", "0.786", "0.728", "0.2157", "0.7266" ], [ "0.2181", "0.729", "0.785", "0.729", "0.785", "0.742", "0.2181", "0.742" ], [ "0.2181", "0.744", "0.7837", "0.744", "0.7837", "0.7583", "0.2181", "0.7583" ], [ "0.2173", "0.759", "0.785", "0.759", "0.785", "0.773", "0.2173", "0.773" ], [ "0.2181", "0.7744", "0.7837", "0.7744", "0.7837", "0.7886", "0.2181", "0.7886" ], [ "0.2181", "0.789", "0.785", "0.789", "0.785", "0.803", "0.2181", "0.803" ], [ "0.2173", "0.8037", "0.785", "0.8047", "0.785", "0.8193", "0.2173", "0.8184" ], [ "0.2336", "0.827", "0.6094", "0.8257", "0.6094", "0.8403", "0.2336", "0.8413" ] ]
[ "Neural Re-Rendering of Humans from a", "Single Image", "Kripasindhu Sarkarl", "Dushyant Mehta!", "Weipeng Xu?", "Vladislav Golyaniki", "ChristianTheobaltl", "'MPIfor Informatics, SIC", "2FacebookRealityLabs", " ", "Abstract.I", "Human re-rendering from a single image is a starkly under-", "constrained problem, and state-of-the-art algorithms often exhibit un-", "desired artefacts, such as over-smoothing, unrealistic distortions of the", "body parts and garments, or implausible changes of the texture. To ad-", "dress these challenges, we propose a new method for neural re-rendering", "of a human under a novel user-defined pose and viewpoint, given one", "['s]", "input image. Our algorithm represents body pose and shape as a para-", "", "metric mesh which can be reconstructed from a single image and eas-", "ily reposed. Instead of a colour-based UV texture map, our approach", "further employs a learned high-dimensional UV feature map to encode", "appearance. This rich implicit representation captures detailed appear-", "ance variation across poses, viewpoints, person identities and clothing", "styles better than learned colour texture maps. The body model with", "", "the rendered feature maps is fed through a neural image translation net-", "work that creates thefinal rendered colour image.The above components", "are combined in an end-to-end-trained neural network architecture that", "takes as input a source person image and images of the parametric body", "model in the source pose and desired target pose. Experimental eval-", "uation demonstrates that our approach produces higher-quality single", "image re-rendering results than existing methods.", "Keywords: Neural Rendering, Pose Transfer, Novel View Synthesis.", "1", "Introduction", "Algorithms to realistically render dressed humans under controllable poses", "and viewpoints are essential for character animation, 3D video, or virtual and", "augmented reality, to name a few. Over the past decades, computer graph-", "ics and vision have developed impressive methods for high-fidelity artist-driven", "and reconstruction-based human modelling, high-quality animation, and photo-", "realistic rendering. However, these often require sophisticated multi-camera se-", "tups, and deep expertise in animation and rendering, and are thus costly, time-", "consuming and difficult to use. Recent advances in monocular human recon-", "struction and neural network-based image synthesis open up a radically differ-", "ent approach to the problem, neural re-rendering of humans from a single image.", "Project webpage:gvv.mpi-inf.mpg.de/projects/NHRR/" ]
{ "arxiv_id": "2101.04104", "language": "en", "page_idx": 0 }
2101.04104-en-1
2101.04104-en-1.jpg
2 Sarkar $et\textit{al}.$ <FigureHere> Fig.1: Given an image of a person, our neural re-rendering approach allows synthesis of images of the person in different poses, or with different clothing obtained from another reference image. Given a single reference image of a person, the goal is to synthesise a photo-real image of this person in, for instance, a user-controlled new pose, modified body proportions, the same or different garments, or a combination of these. There has been tremendous progress in monocular human capture and rerendering [33,23,45,2,21,12,19,6,25] towards this goal. However, owing to the starkly underconstrained nature of the problem, true photo-realism under all possible conditions has not yet been achieved. Methods frequently exhibit unwanted over-smoothing and a lack of details in the rendered image, unrealistic distortions of body parts and garments, or implausible texture alterations. We, therefore, propose a new algorithm for monocular neural re-rendering of a dressed human under a novel user-defined pose and viewpoint, which has starkly improved visual quality, see Figs. 1,3,6,7. We take inspiration from recent work on neural rendering of general scenes with a continuous [48] or a multidimensional feature representation with implicit [50] or explicit [47] occlusion handling that are learned from multi-view images or videos. Our algorithm represents body pose and shape with the SMPL parametric human surface model [29], which can be easily reposed. Instead of modelling appearance as explicit colour maps, $e.g.$, learned colour-based UV texture maps on the body surface [33,12], we employ a learned high-dimensional UV feature map to encode appearance. This rich implicit representation learns the detailed appearance variation across poses, viewpoints, person identities and clothing styles. Given a single image of a person, we predict pixel correspondences to the $\overset{\mathrm{SMPL}}{[29]\text{ mesh using DensePose }[37].\text{ We then extract partial UV texture maps}}$ based on the observed body regions and use a neural network to convert it to a complete UV feature map, with a $d$-dimensional feature per texel. The UV feature map is then rendered in the desired target pose and passed through a neural image translation network that creates the final rendered image. These components are combined in an end-to-end trained neural architecture. In quantitative experiments and a user study to judge the qualitative results, we show that the visual quality of our results improves over the current state of the art. Contributions. To summarise, our contributions are as follows:
[ [ "0.2173", "0.11615", "0.2296", "0.11615", "0.2296", "0.1276", "0.2173", "0.1276" ], [ "0.273", "0.11615", "0.3555", "0.11615", "0.3555", "0.1276", "0.273", "0.1276" ], [ "0.3464", "0.1477", "0.4084", "0.1477", "0.4084", "0.159", "0.3464", "0.159" ], [ "0.6167", "0.1483", "0.699", "0.1483", "0.699", "0.159", "0.6167", "0.159" ], [ "0.2507", "0.161", "0.2688", "0.1686", "0.2573", "0.1843", "0.2402", "0.1768" ], [ "0.455", "0.1736", "0.4714", "0.1736", "0.4714", "0.178", "0.455", "0.178" ], [ "0.3823", "0.1799", "0.415", "0.1818", "0.4143", "0.1945", "0.3816", "0.1925" ], [ "0.3733", "0.1913", "0.4307", "0.1913", "0.4307", "0.202", "0.3733", "0.202" ], [ "0.683", "0.1863", "0.706", "0.1863", "0.706", "0.1901", "0.683", "0.1901" ], [ "0.669", "0.1957", "0.6787", "0.1957", "0.6787", "0.1995", "0.669", "0.1995" ], [ "0.3945", "0.2084", "0.407", "0.2084", "0.407", "0.214", "0.3945", "0.214" ], [ "0.2239", "0.2556", "0.2793", "0.2556", "0.2793", "0.2664", "0.2239", "0.2664" ], [ "0.308", "0.2551", "0.353", "0.2551", "0.353", "0.2664", "0.308", "0.2664" ], [ "0.7134", "0.2583", "0.734", "0.2583", "0.734", "0.262", "0.7134", "0.262" ], [ "0.7466", "0.2568", "0.774", "0.2568", "0.774", "0.2644", "0.7466", "0.2644" ], [ "0.2181", "0.2695", "0.7876", "0.2708", "0.7876", "0.2854", "0.2181", "0.2842" ], [ "0.2181", "0.286", "0.7876", "0.286", "0.7876", "0.2998", "0.2181", "0.2998" ], [ "0.2173", "0.3018", "0.4983", "0.3018", "0.4983", "0.315", "0.2173", "0.315" ], [ "0.2181", "0.3467", "0.786", "0.3467", "0.786", "0.361", "0.2181", "0.361" ], [ "0.2181", "0.3623", "0.786", "0.3623", "0.786", "0.3757", "0.2181", "0.3757" ], [ "0.2181", "0.3774", "0.726", "0.3774", "0.726", "0.3914", "0.2181", "0.3914" ], [ "0.2427", "0.3933", "0.7837", "0.3945", "0.7837", "0.4092", "0.2427", "0.4077" ], [ "0.2181", "0.4104", "0.786", "0.4104", "0.786", "0.4236", "0.2181", "0.4236" ], [ "0.2181", "0.4248", "0.786", "0.4248", "0.786", "0.4382", "0.2181", "0.4382" ], [ "0.2181", "0.44", "0.7837", "0.44", "0.7837", "0.4539", "0.2181", "0.4539" ], [ "0.2173", "0.455", "0.785", "0.455", "0.785", "0.4697", "0.2173", "0.4697" ], [ "0.2181", "0.4702", "0.7534", "0.4702", "0.7534", "0.4841", "0.2181", "0.4841" ], [ "0.2443", "0.4873", "0.786", "0.4873", "0.786", "0.5005", "0.2443", "0.5005" ], [ "0.2181", "0.5024", "0.7837", "0.5024", "0.7837", "0.5166", "0.2181", "0.5166" ], [ "0.2173", "0.5176", "0.785", "0.5166", "0.785", "0.531", "0.2173", "0.532" ], [ "0.2173", "0.532", "0.7817", "0.532", "0.7817", "0.5454", "0.2173", "0.5454" ], [ "0.2197", "0.55", "0.785", "0.55", "0.785", "0.56", "0.2197", "0.56" ], [ "0.2173", "0.563", "0.649", "0.563", "0.649", "0.577", "0.2173", "0.577" ], [ "0.2427", "0.58", "0.7876", "0.58", "0.7876", "0.5947", "0.2427", "0.5947" ], [ "0.2173", "0.5947", "0.786", "0.5947", "0.786", "0.6094", "0.2173", "0.6094" ], [ "0.2181", "0.61", "0.786", "0.61", "0.786", "0.625", "0.2181", "0.625" ], [ "0.2173", "0.6255", "0.7876", "0.6255", "0.7876", "0.6396", "0.2173", "0.6396" ], [ "0.2173", "0.6416", "0.786", "0.6416", "0.786", "0.655", "0.2173", "0.655" ], [ "0.2173", "0.656", "0.786", "0.655", "0.786", "0.6694", "0.2173", "0.6704" ], [ "0.2181", "0.672", "0.786", "0.672", "0.786", "0.685", "0.2181", "0.685" ], [ "0.2181", "0.686", "0.7876", "0.686", "0.7876", "0.6997", "0.2181", "0.6997" ], [ "0.2181", "0.702", "0.7876", "0.702", "0.7876", "0.7153", "0.2181", "0.7153" ], [ "0.2181", "0.7163", "0.6895", "0.7163", "0.6895", "0.731", "0.2181", "0.731" ], [ "0.2427", "0.7344", "0.786", "0.7344", "0.786", "0.7476", "0.2427", "0.7476" ], [ "0.2181", "0.7485", "0.7837", "0.7485", "0.7837", "0.762", "0.2181", "0.762" ], [ "0.2181", "0.7646", "0.785", "0.7646", "0.785", "0.778", "0.2181", "0.778" ], [ "0.2173", "0.778", "0.7876", "0.779", "0.7876", "0.7935", "0.2173", "0.7925" ], [ "0.2173", "0.7944", "0.786", "0.7944", "0.786", "0.808", "0.2173", "0.808" ], [ "0.2181", "0.811", "0.246", "0.811", "0.246", "0.8228", "0.2181", "0.8228" ], [ "0.2181", "0.827", "0.681", "0.827", "0.681", "0.8403", "0.2181", "0.8403" ] ]
[ "2", "Sarkaret al.", "PoseTransfer", "GarmentTransfer", "", "-", "Neural", "Re-rendering", "Veura", "RO", "厦", "Source Image", "Target Pose", "Rend", "dImag", "Fig.l: Given an image of a person, our neural re-rendering approach allows", "synthesis of images of the person in different poses, or with different clothing", "obtained from another reference image.", "Given a single reference image of a person, the goal is to synthesise a photo-real", "image of this person in, for instance, a user-controlled new pose, modified body", "proportions, the same or different garments, or a combination of these.", "There has been tremendous progress in monocular human capture and re-", "rendering [33,23,45,2,21,12,19,6,25] towards this goal. However, owing to the", "starkly underconstrained nature of the problem, true photo-realism under all", "possible conditions has not yet been achieved. Methods frequently exhibit un-", "wanted over-smoothing and a lack of details in the rendered image, unrealistic", "distortions of body parts and garments, or implausible texture alterations.", "We, therefore, propose a new algorithm for monocular neural re-rendering of a", "dressed human under a novel user-defined pose and viewpoint, which has starkly", "improved visual quality, see Figs. 1, 3, 6, 7. We take inspiration from recent", "work on neural rendering of general scenes with a continuous [48l or a multi.", "dimensional featurerepresentationwith implicit50or explicit47occlusion", "handling that are learned from multi-view images or videos.", "Our algorithm represents body pose and shape with the SMPL parametric", "human surface model [29], which can be easily reposed. Instead of modelling", "appearance as explicit colour maps, e.g., learned colour-based UV texture maps", "on the body surface [33,12], we employ a learned high-dimensional UV feature", "map to encode appearance. This rich implicit representation learns the detailed", "appearance variation across poses, viewpoints, person identities and clothing", "styles. Given a single image of a person, we predict pixel correspondences to the", "SMPL [29] mesh using DensePose [37]. We then extract partial UV texture maps", "based on the observed body regions and use a neural network to convert it to a", "complete UV feature map, with a d-dimensional feature per texel.", "The UV feature map is then rendered in the desired target pose and passed", "through a neural image translation network that creates the final rendered image.", "These components are combined in an end-to-end trained neural architecture.", "In quantitative experiments and a user study to judge the qualitative results, we", "show that the visual quality of our results improves over the current state of the", "art.", "Contributions. To summarise, our contributions are as follows:" ]
{ "arxiv_id": "2101.04104", "language": "en", "page_idx": 1 }
2101.04104-en-2
2101.04104-en-2.jpg
Neural Re-Rendering of Humans from a Single Image 3 - A new end-to-end trainable method that combines monocular parametric 3D body modelling, a learned detail-preserving neural-feature based body appearance representation, and a neural network based image-synthesis network to enable highly realistic human re-rendering from a single image; state-of-the-art results on the DeepFashion dataset [27] which are confirmed with quantitative metrics, and qualitatively with a user study # 2 Related Work While our proposed approach relates to many sub-felds of visual computing, for brevity we only elaborate on the immediately relevant work on human body re-enactment and neural rendering methods for object and scene rendering. 2.1 Classical Methods for Novel View Synthesis Earlier methods for image-based 3D reconstruction and novel view synthesis rely on traditional concepts of multi-view geometry, explicit 3D shape and appearance reconstruction, and classical computer graphics or image-based rendering. Methods based on light fields use ray space representations or coarse multi-view geometry models for novel view synthesis [22,11,4]. To achieve high quality, dense camera arrays are required, which is impractical. Other algorithms capture and operate on dense depth maps [60],layered depth images [41],3D point clouds [1,26,40], meshes [32,52], or surfels [36,5,55] for dynamic scenes. Multi-view stereo can be combined with fusion algorithms operating with implicit geometry and achieving more temporally consistent reconstructions over short time windows [9,34,13]. Dynamic scene capture and novel view synthesis were also shown with a low number of RGB or RGB-D cameras [57,49,15,58]. While reconstruction is fast and feasible with fewer cameras, the coarse approximate geometry often leads to rendering artefacts. 2.2 Neural Rendering of Scenes and Objects Recently, neural rendering approaches have shown promising results for scenes and objects. Image-based rendering (IBR) methods reconstruct scene geometry with classical techniques and use it to render novel views [8,7]. Lack of observations can cause high uncertainty in novel views. On the other hand, neural rendering approaches [48,47,51,66] can generate higher-quality results by leveraging collections of training data. Many applications of neural rendering have been recently shown, ranging from synthesising view-dependent effects [66,51] to learning the shape and appearance priors from sparse data [39,56]. Only a few works on neural scene representation and rendering can handle dynamic scenes [19,28]. Some methods combine explicit dynamic scene reconstruction and traditional graphics rendering with neural re-rendering [31,19,18,51]. Thies $etal.[50]$ combine $neural\textit{ textures with the classical graphics pipeline for}$ novel view synthesis of static objects and monocular video re-rendering. Their
[ [ "0.3774", "0.11554", "0.734", "0.11554", "0.734", "0.1288", "0.3774", "0.1288" ], [ "0.774", "0.11743", "0.786", "0.11743", "0.786", "0.1288", "0.774", "0.1288" ], [ "0.2361", "0.1528", "0.2443", "0.1528", "0.2443", "0.1572", "0.2361", "0.1572" ], [ "0.2402", "0.1477", "0.786", "0.1477", "0.786", "0.1622", "0.2402", "0.1622" ], [ "0.246", "0.1635", "0.785", "0.1635", "0.785", "0.178", "0.246", "0.178" ], [ "0.2467", "0.1787", "0.785", "0.1787", "0.785", "0.1925", "0.2467", "0.1925" ], [ "0.2467", "0.1945", "0.7563", "0.1945", "0.7563", "0.2084", "0.2467", "0.2084" ], [ "0.2296", "0.209", "0.7876", "0.209", "0.7876", "0.2229", "0.2296", "0.2229" ], [ "0.2467", "0.2247", "0.6914", "0.2247", "0.6914", "0.238", "0.2467", "0.238" ], [ "0.2181", "0.2632", "0.2378", "0.2632", "0.2378", "0.276", "0.2181", "0.276" ], [ "0.2336", "0.2651", "0.246", "0.2651", "0.246", "0.2734", "0.2336", "0.2734" ], [ "0.2402", "0.262", "0.3865", "0.262", "0.3865", "0.2766", "0.2402", "0.2766" ], [ "0.2197", "0.2935", "0.7837", "0.2935", "0.7837", "0.308", "0.2197", "0.308" ], [ "0.2173", "0.3093", "0.785", "0.3093", "0.785", "0.3225", "0.2173", "0.3225" ], [ "0.2173", "0.3225", "0.7563", "0.3245", "0.7563", "0.339", "0.2173", "0.3372" ], [ "0.2181", "0.361", "0.625", "0.361", "0.625", "0.375", "0.2181", "0.375" ], [ "0.2173", "0.385", "0.7837", "0.3865", "0.7837", "0.401", "0.2173", "0.3997" ], [ "0.2197", "0.404", "0.7817", "0.404", "0.7817", "0.414", "0.2197", "0.414" ], [ "0.2173", "0.4167", "0.7837", "0.4172", "0.7837", "0.432", "0.2173", "0.4312" ], [ "0.2173", "0.4312", "0.7837", "0.432", "0.7837", "0.4463", "0.2173", "0.4458" ], [ "0.2181", "0.4475", "0.785", "0.4475", "0.785", "0.461", "0.2181", "0.461" ], [ "0.2181", "0.4622", "0.786", "0.4622", "0.786", "0.476", "0.2181", "0.476" ], [ "0.2173", "0.4778", "0.785", "0.4778", "0.785", "0.4912", "0.2173", "0.4912" ], [ "0.2181", "0.4924", "0.786", "0.4924", "0.786", "0.506", "0.2181", "0.506" ], [ "0.2181", "0.507", "0.786", "0.507", "0.786", "0.5215", "0.2181", "0.5215" ], [ "0.2181", "0.523", "0.786", "0.523", "0.786", "0.536", "0.2181", "0.536" ], [ "0.2181", "0.537", "0.786", "0.536", "0.786", "0.5503", "0.2181", "0.552" ], [ "0.2181", "0.553", "0.786", "0.553", "0.786", "0.5664", "0.2181", "0.5664" ], [ "0.2157", "0.5664", "0.786", "0.5674", "0.786", "0.582", "0.2157", "0.5806" ], [ "0.2157", "0.5835", "0.4192", "0.5835", "0.4192", "0.5967", "0.2157", "0.5967" ], [ "0.2173", "0.6187", "0.5947", "0.6187", "0.5947", "0.6333", "0.2173", "0.6333" ], [ "0.2181", "0.646", "0.786", "0.646", "0.786", "0.659", "0.2181", "0.659" ], [ "0.2181", "0.661", "0.785", "0.661", "0.785", "0.675", "0.2181", "0.675" ], [ "0.2181", "0.6753", "0.7837", "0.6753", "0.7837", "0.6895", "0.2181", "0.6895" ], [ "0.2181", "0.6914", "0.786", "0.6914", "0.786", "0.705", "0.2181", "0.705" ], [ "0.2181", "0.7056", "0.785", "0.7056", "0.785", "0.72", "0.2181", "0.72" ], [ "0.2173", "0.7197", "0.785", "0.7197", "0.785", "0.7344", "0.2173", "0.7344" ], [ "0.2181", "0.7363", "0.786", "0.7363", "0.786", "0.75", "0.2181", "0.75" ], [ "0.2181", "0.752", "0.6953", "0.752", "0.6953", "0.765", "0.2181", "0.765" ], [ "0.2443", "0.7666", "0.7837", "0.7666", "0.7837", "0.78", "0.2443", "0.78" ], [ "0.2181", "0.781", "0.7817", "0.781", "0.7817", "0.7944", "0.2181", "0.7944" ], [ "0.2181", "0.797", "0.7837", "0.797", "0.7837", "0.81", "0.2181", "0.81" ], [ "0.2181", "0.8125", "0.786", "0.8125", "0.786", "0.8257", "0.2181", "0.8257" ], [ "0.2181", "0.827", "0.786", "0.827", "0.786", "0.8403", "0.2181", "0.8403" ] ]
[ "Neural Re-Rendering of Humans from a Single Image", "3", "-", "A new end-to-end trainable method that combines monocular parametric", "3D body modelling, a learned detail-preserving neural-feature based body", "appearance representation, and a neural network based image-synthesis net-", "work to enable highly realistic human re-rendering from a single image;", "- state-of-the-art results on the DeepFashion dataset [27] which are confirmed", "with quantitative metrics, and qualitatively with a user study.", "2", "", "Related Work", "While our proposed approach relates to many sub-fields of visual computing", "forbrevity we only elaborate on the immediately relevant work on human body", "re-enactment and neural rendering methods for object and scene rendering.", "2.1Classical Methods for Novel View Synthesis", "Earlier methods for image-based 3D reconstruction and novel view synthesis rely", "ontraditional conceptsof multi-viewgeometry,explicit3Dshapeand appear", "ance reconstruction, and classical computer graphics or image-based rendering", "Methods based on light fields use ray space representations or coarse multi-view", "geometry models for novel view synthesis [22,11,4]. To achieve high quality, dense", "camera arrays are required, which is impractical. Other algorithms capture and", "operate on dense depth maps [60], layered depth images [41], 3D point clouds", "[1,26,40], meshes [32,52], or surfels [36,5,55] for dynamic scenes. Multi-view stereo", "can be combined with fusion algorithms operating with implicit geometry and", "achieving more temporally consistent reconstructions over short time windows", "[9,34,13]. Dynamic scene capture and novel view synthesis were also shown with", "a low number of RGB or RGB-D cameras [57,49,15,58]. While reconstruction", "is fast and feasible with fewer cameras, the coarse approximate geometry often", "leads to rendering artefacts.", "2.2 Neural Rendering of Scenes and Objects", "Recently, neural rendering approaches have shown promising results for scenes", "and objects. Image-based rendering (IBR) methods reconstruct scene geometry", "with classical techniques and use it to render novel views [8,7]. Lack of obser-", "vations can cause high uncertainty in novel views. On the other hand, neural", "rendering approaches [48,47,51,66] can generate higher-quality results by lever-", "aging collections of training data. Many applications of neural rendering have", "been recently shown, ranging from synthesising view-dependent effects [66,51] to", "learning the shape and appearance priors from sparse data [39,56].", "Only a few works on neural scene representation and rendering can handle dy-", "namic scenes [19,28]. Some methods combine explicit dynamic scene reconstruc.", "tion and traditional graphics rendering with neural re-rendering [31,19,18,51]", "Thies et al. [50] combine neural tertures with the classical graphics pipeline for", "novel view synthesis of static objects and monocular video re-rendering. Their" ]
{ "arxiv_id": "2101.04104", "language": "en", "page_idx": 2 }
2101.04104-en-3
2101.04104-en-3.jpg
4 Sarkar $et$ $al.$ technique requires a scene-specific geometric proxy which has to be reconstructed before the training. Instead of more complex joint reasoning of the geometry and appearance needed from the intermediate representation by neural rendering approaches such as that of Sitzmann $et\textit{al. [ 48] , for our human- specific application}$ scenario the coarse geometry is handled by the posable SMPL mesh, with a feature map similar to the Thies $et\textit{al. [ 50] capturing clothing appearance, which}$ includes fne-scaled geometry, and clothing textures. Several approaches address related problems such as generating images of humans in new poses [62,3,30,33,35], or body re-enactment from monocular videos [6],which are discussed next. 2.3 Human Re-enactment and Novel View Rendering Recent work on photo-realistic human body re-enactment and novel view ren- dering can be sub-classified along various dimensions. Object-agnostic approaches [45,44] model deformable objects directly in the image space. Siarohin $et al. [ 45] $learn keypoints in a self- supervised manner and capture deformations in the vicinity of the keypoints using affine transforms. Features extracted from the source image are deformed to the target using the predicted transformations and passed on to a generator. Additional predictions of dis-occluded regions indicate to the generator the regions which have to be rendered based on the context. Zhu et al. [65] leverage geometric constraints and optical flow for synthesising novel views of humans from a single image. Object-specific techniques have the same core components as above, $i.e.$, colour or feature transformation from source to target, occlusion reasoning or inpainting, and photo-realistic image generation from the warped feature or colour image. The key difference is that the feature transformation, occlusion reasoning, and inpainting are guided by an underlying object model, which, in our case, is a parametric human body mesh. Kim $et\textit{al. [ 19] achieve full control over the}$ head pose and facial expressions in photo-realistic renderings of a target actor by an adversarial training with a performance of the target actor. DensePose Transfer [33] uses direct texture transfer from the input image to the SMPL model, inpaints the occluded regions of the texture and renders it in a new pose. This image is blended with the image resulting from direct conditional generation from the input image, input Densepose, and target Densepose. Zablotskaia $et\textit{ al. [ 59] generate subsequent video frames of human motion and use a direct}$ warping guided by the reference frame, previously generated frame, and DensePose representations of the past and future frames. Their method does not rely on an explicit UV texture map. ClothFlow [14] implicitly captures the geometric transformation between the source and target image by estimating dense flow. Chan$et$ $al.[6]$ learn a subject-specific puppeteering system using a video of the subject such that all parts of the subject's body are seen in advance. The GAN-based rendering is driven by 2D pose extracted from the target subject. Zhou $et\textit{al. [ 63] also learn a personalised model using piecewise affne transforms}$ of the part-segmented source image for modelling pose changes, generating the person image in front of a clean background plate, with a second stage fusing a
[ [ "0.2737", "0.11615", "0.3555", "0.11615", "0.3555", "0.1276", "0.2737", "0.1276" ], [ "0.2157", "0.1225", "0.2239", "0.11615", "0.2303", "0.1218", "0.2222", "0.1276" ], [ "0.2173", "0.1477", "0.786", "0.1477", "0.786", "0.1622", "0.2173", "0.1622" ], [ "0.2173", "0.1635", "0.7876", "0.1635", "0.7876", "0.178", "0.2173", "0.178" ], [ "0.2181", "0.1787", "0.785", "0.1787", "0.785", "0.1925", "0.2181", "0.1925" ], [ "0.2181", "0.1932", "0.786", "0.1932", "0.786", "0.207", "0.2181", "0.207" ], [ "0.2181", "0.209", "0.785", "0.209", "0.785", "0.2229", "0.2181", "0.2229" ], [ "0.2181", "0.2235", "0.786", "0.2235", "0.786", "0.238", "0.2181", "0.238" ], [ "0.2181", "0.238", "0.5923", "0.238", "0.5923", "0.2524", "0.2181", "0.2524" ], [ "0.2427", "0.254", "0.7837", "0.254", "0.7837", "0.2676", "0.2427", "0.2676" ], [ "0.2181", "0.2695", "0.786", "0.2695", "0.786", "0.2827", "0.2181", "0.2827" ], [ "0.2197", "0.2842", "0.429", "0.2842", "0.429", "0.2974", "0.2197", "0.2974" ], [ "0.2197", "0.3208", "0.2632", "0.3208", "0.2632", "0.332", "0.2197", "0.332" ], [ "0.2566", "0.3193", "0.6724", "0.3193", "0.6724", "0.334", "0.2566", "0.334" ], [ "0.2181", "0.3435", "0.785", "0.3435", "0.785", "0.3567", "0.2181", "0.3567" ], [ "0.2181", "0.3591", "0.601", "0.3591", "0.601", "0.3726", "0.2181", "0.3726" ], [ "0.2427", "0.3738", "0.786", "0.3738", "0.786", "0.387", "0.2427", "0.387" ], [ "0.2173", "0.3882", "0.7876", "0.3882", "0.7876", "0.4028", "0.2173", "0.4028" ], [ "0.2181", "0.404", "0.785", "0.404", "0.785", "0.4172", "0.2181", "0.4172" ], [ "0.2181", "0.4185", "0.786", "0.4185", "0.786", "0.432", "0.2181", "0.432" ], [ "0.2181", "0.4343", "0.786", "0.4343", "0.786", "0.4475", "0.2181", "0.4475" ], [ "0.2181", "0.449", "0.786", "0.449", "0.786", "0.4622", "0.2181", "0.4622" ], [ "0.2181", "0.464", "0.7876", "0.464", "0.7876", "0.4778", "0.2181", "0.4778" ], [ "0.2173", "0.4792", "0.732", "0.4792", "0.732", "0.4937", "0.2173", "0.4937" ], [ "0.2443", "0.4944", "0.785", "0.4944", "0.785", "0.5083", "0.2443", "0.5083" ], [ "0.2173", "0.5103", "0.785", "0.5103", "0.785", "0.5234", "0.2173", "0.5234" ], [ "0.2181", "0.5244", "0.786", "0.5244", "0.786", "0.5386", "0.2181", "0.5386" ], [ "0.2157", "0.539", "0.785", "0.5405", "0.785", "0.5547", "0.2157", "0.5537" ], [ "0.2181", "0.5547", "0.786", "0.5547", "0.786", "0.5684", "0.2181", "0.5684" ], [ "0.2173", "0.5693", "0.786", "0.5693", "0.786", "0.5835", "0.2173", "0.5835" ], [ "0.2181", "0.5854", "0.786", "0.5854", "0.786", "0.5986", "0.2181", "0.5986" ], [ "0.2181", "0.5996", "0.786", "0.5996", "0.786", "0.6143", "0.2181", "0.6143" ], [ "0.2181", "0.6157", "0.785", "0.6157", "0.785", "0.629", "0.2181", "0.629" ], [ "0.2173", "0.629", "0.785", "0.63", "0.785", "0.6445", "0.2173", "0.643" ], [ "0.2197", "0.646", "0.785", "0.646", "0.785", "0.659", "0.2197", "0.659" ], [ "0.2181", "0.661", "0.786", "0.661", "0.786", "0.675", "0.2181", "0.675" ], [ "0.2181", "0.6753", "0.786", "0.6753", "0.786", "0.6895", "0.2181", "0.6895" ], [ "0.2181", "0.6914", "0.785", "0.6914", "0.785", "0.705", "0.2181", "0.705" ], [ "0.2181", "0.7056", "0.786", "0.7056", "0.786", "0.7197", "0.2181", "0.7197" ], [ "0.2181", "0.72", "0.785", "0.72", "0.785", "0.7344", "0.2181", "0.7344" ], [ "0.2181", "0.7363", "0.786", "0.7363", "0.786", "0.75", "0.2181", "0.75" ], [ "0.2173", "0.75", "0.786", "0.7505", "0.786", "0.765", "0.2173", "0.7646" ], [ "0.2181", "0.7666", "0.786", "0.7666", "0.786", "0.78", "0.2181", "0.78" ], [ "0.2173", "0.78", "0.7837", "0.78", "0.7837", "0.7935", "0.2173", "0.7935" ], [ "0.2181", "0.797", "0.786", "0.797", "0.786", "0.81", "0.2181", "0.81" ], [ "0.2173", "0.8125", "0.786", "0.8125", "0.786", "0.8257", "0.2173", "0.8257" ], [ "0.2173", "0.827", "0.7876", "0.827", "0.7876", "0.8403", "0.2173", "0.8403" ] ]
[ "Sarkaretal.", "X", "technique requires a scene-specific geometric proxy which has to be reconstructed", "before the training. Instead of more complex joint reasoning of the geometry and", "appearance needed from the intermediate representation by neural rendering ap-", "proaches such as that of Sitzmann et al. [48], for our human-specific application", "scenario the coarse geometry is handled by the posable SMPL mesh, with a fea-", "ture map similar to the Thies et al. [50] capturing clothing appearance, which", "includes fine-scaled geometry, and clothing textures.", "Several approaches address related problems such as generating images of hu-", "mans in new poses [62,3,30,33,35], or body re-enactment from monocular videos", "[6], which are discussed next.", "2.3", "Human Re-enactment and Novel View Rendering", "Recent work on photo-realistic human body re-enactment and novel view ren-", "dering can be sub-classified along various dimensions.", "Object-agnostic approaches [45,44] model deformable objects directly in the", "image space. Siarohin et al. [45] learn keypoints in a self-supervised manner and", "capture deformations in the vicinity of the keypoints using affine transforms.", "Features extracted from the source image are deformed to the target using the", "predicted transformations and passed on to a generator. Additional predictions", "of dis-occluded regions indicate to the generator the regions which have to be", "rendered based on the context. Zhu et al. [65] leverage geometric constraints and", "optical flow for synthesising novel views of humans from a single image.", "Object-specific techniques have the same core components as above, i.e.,", "colour or feature transformation from source to target, occlusion reasoning or in-", "painting, and photo-realistic image generation from the warped feature or colour", "image. The key difference is that the feature transformation, occlusion reasoning,", "and inpainting are guided by an underlying object model, which, in our case,", "is a parametric human body mesh. Kim et al. [19] achieve full control over the", "head pose and facial expressions in photo-realistic renderings of a target actor", "by an adversarial training with a performance of the target actor. DensePose", "Transfer [33] uses direct texture transfer from the input image to the SMPL", "model, inpaints the occluded regions of the texture and renders it in a new pose.", "This image is blended with the image resulting from direct conditional genera-", "tion from the input image, input Densepose, and target Densepose. Zablotskaia", "et al. [59] generate subsequent video frames of human motion and use a direct", "warping guided by the reference frame, previously generated frame, and Dense-", "Pose representations of the past and future frames. Their method does not rely", "on an explicit UV texture map. ClothFlow [14] implicitly captures the geomet-", "ric transformation between the source and target image by estimating dense", "flow. Chanet al. [6] learn a subject-specific puppeteering system using a video", "of the subject such that all parts of the subject's body are seen in advance. The", "GAN-based rendering is driven by 2D pose extracted from the target subject.", "Zhou et al. [63] also learn a personalised model using piecewise affine transforms", "of the part-segmented source image for modelling pose changes, generating the", "person image in front of a clean background plate, with a second stage fusing a" ]
{ "arxiv_id": "2101.04104", "language": "en", "page_idx": 3 }
2101.04104-en-4
2101.04104-en-4.jpg
5 Neural Re-Rendering of Humans from a Single Image given background image with the generated person's image. In contrast to Liu $et$ al. [25], we transfer appearance from source to target image using a UV feature map. Instead of directly predicting missing regions of the UV texture map, coordinate-based inpainting [12] predicts correspondence between all regions on the UV texture map and the input image pixels. This results in more texture details in body regions that become dis-occluded when re-posing. As shown in Sec. 4, our UV feature map based approach yields results of much higher quality in comparisons. Shysheya $et\textit{al. [ 42] explicitly model the body texture and}$ implicitly handle the shape. In contrast, while we explicitly handle the coarse shape, we use a UV feature map to model the fine-scaled shape and clothing texture implicitly. Lazowa $et\textit{al. [ 21] propose an approach for reconstruction of}$ textured 3D human models from a single image. Similar to our approach, it extracts a partial UV texture map using DensePose but inpaints the UV texture map using a GAN based supervision directly applied to the texture map. Additionally- and similar to Alldieck $et\textit{al. [ 2] }-$it predicts a displacement map on top of the SMPL mesh to capture clothing details not present in the SMPL model. Our approach does not explicitly model clothing details. In contrast to existing methods, we propose a new end-to-end trainable method that combines monocular parametric 3D body modeling [ 33, 12] , a learned neural detail-preserving surface feature representation [50], and a neural imagesynthesis network for highly realistic human re-rendering from a single image. # 3 Method Given an image $I_s$ of a person, we synthesise a new image of the person in a different target body pose. Our approach comprises of four distinct steps. The first step uses DensePose [37] to predict dense correspondences between the input image $I_{s}$ and the SMPL model. This allows a $UV\textit{texture map }T_{s}$ to be extracted for the visible regions. The second step uses a U-Net [38] based network, which we term $FeatureNet$, to construct the full $UV\textit{feature map }F_s$ from the partial RGB UV texture map $T_{s}.F_{s}$ contains a $d$-dimensional feature representation for all texels, both visible and occluded in the source image. The third step takes a target pose as input, and `renders' the UV feature map $F_s$ to produce a $d$-dimensional $feature\textit{ image }R_s\to t.$ The fourth step uses a generator network based on Pix2PixHD [54], which we term $RenderNet$, to generate a photorealistic image $I_s\to t$ of the reposed person, from the input Feature image. The overview of our pipeline is shown in Fig. 2. 3.1 Extracting a Partial UV Texture Map from the Input Image The pixels of the input image are transformed into UV space through matches predicted with DensePose. We use the ResNet-101 based variant of DensePose for predicting the correspondences for the body regions visible in the image. The network is pre-trained on COCO-DensePose dataset and provides 24 body segments and their part-specific $U,V$ coordinates of SMPL model. For easier mapping, the
[ [ "0.3757", "0.11554", "0.734", "0.11554", "0.734", "0.1288", "0.3757", "0.1288" ], [ "0.774", "0.1187", "0.786", "0.1187", "0.786", "0.1276", "0.774", "0.1276" ], [ "0.2173", "0.1477", "0.786", "0.1465", "0.786", "0.161", "0.2173", "0.1622" ], [ "0.2197", "0.1635", "0.785", "0.1635", "0.785", "0.1768", "0.2197", "0.1768" ], [ "0.2181", "0.178", "0.785", "0.178", "0.785", "0.1925", "0.2181", "0.1925" ], [ "0.2173", "0.1925", "0.785", "0.1925", "0.785", "0.2058", "0.2173", "0.2058" ], [ "0.2181", "0.2084", "0.786", "0.2084", "0.786", "0.2229", "0.2181", "0.2229" ], [ "0.2181", "0.2235", "0.786", "0.2235", "0.786", "0.2374", "0.2181", "0.2374" ], [ "0.2173", "0.238", "0.786", "0.238", "0.786", "0.2524", "0.2173", "0.2524" ], [ "0.2173", "0.254", "0.7876", "0.254", "0.7876", "0.2676", "0.2173", "0.2676" ], [ "0.2181", "0.2683", "0.786", "0.2683", "0.786", "0.2822", "0.2181", "0.2822" ], [ "0.2173", "0.2842", "0.786", "0.2842", "0.786", "0.2974", "0.2173", "0.2974" ], [ "0.2181", "0.2998", "0.7876", "0.2998", "0.7876", "0.3132", "0.2181", "0.3132" ], [ "0.2181", "0.3145", "0.785", "0.3145", "0.785", "0.3276", "0.2181", "0.3276" ], [ "0.2173", "0.33", "0.786", "0.33", "0.786", "0.3435", "0.2173", "0.3435" ], [ "0.2181", "0.3447", "0.7837", "0.3447", "0.7837", "0.358", "0.2181", "0.358" ], [ "0.2157", "0.358", "0.786", "0.3591", "0.786", "0.3738", "0.2157", "0.3726" ], [ "0.2173", "0.375", "0.785", "0.375", "0.785", "0.3882", "0.2173", "0.3882" ], [ "0.2173", "0.3894", "0.6763", "0.3894", "0.6763", "0.404", "0.2173", "0.404" ], [ "0.2402", "0.404", "0.785", "0.4028", "0.785", "0.4172", "0.2402", "0.4185" ], [ "0.2173", "0.4192", "0.789", "0.4192", "0.789", "0.433", "0.2173", "0.433" ], [ "0.2181", "0.435", "0.7817", "0.435", "0.7817", "0.449", "0.2181", "0.449" ], [ "0.2173", "0.4507", "0.774", "0.4507", "0.774", "0.464", "0.2173", "0.464" ], [ "0.2181", "0.488", "0.2361", "0.488", "0.2361", "0.502", "0.2181", "0.502" ], [ "0.246", "0.4937", "0.25", "0.4937", "0.25", "0.4988", "0.246", "0.4988" ], [ "0.2484", "0.488", "0.33", "0.488", "0.33", "0.5024", "0.2484", "0.5024" ], [ "0.2181", "0.521", "0.786", "0.521", "0.786", "0.535", "0.2181", "0.535" ], [ "0.2181", "0.536", "0.786", "0.536", "0.786", "0.55", "0.2181", "0.55" ], [ "0.2181", "0.5503", "0.7837", "0.5503", "0.7837", "0.565", "0.2181", "0.565" ], [ "0.2181", "0.5664", "0.785", "0.5664", "0.785", "0.58", "0.2181", "0.58" ], [ "0.2197", "0.5835", "0.7837", "0.5835", "0.7837", "0.5933", "0.2197", "0.5933" ], [ "0.2197", "0.595", "0.786", "0.595", "0.786", "0.6094", "0.2197", "0.6094" ], [ "0.2181", "0.6113", "0.786", "0.6113", "0.786", "0.625", "0.2181", "0.625" ], [ "0.2173", "0.6255", "0.786", "0.627", "0.786", "0.6416", "0.2173", "0.64" ], [ "0.2173", "0.6416", "0.786", "0.6416", "0.786", "0.656", "0.2173", "0.656" ], [ "0.2157", "0.656", "0.4673", "0.657", "0.4673", "0.672", "0.2157", "0.6704" ], [ "0.2418", "0.672", "0.786", "0.672", "0.786", "0.686", "0.2418", "0.686" ], [ "0.2157", "0.686", "0.785", "0.6875", "0.785", "0.702", "0.2157", "0.7007" ], [ "0.2173", "0.7026", "0.7812", "0.7026", "0.7812", "0.7163", "0.2173", "0.7163" ], [ "0.2181", "0.7407", "0.2566", "0.7407", "0.2566", "0.754", "0.2181", "0.754" ], [ "0.2573", "0.7393", "0.7607", "0.7407", "0.7607", "0.755", "0.2573", "0.754" ], [ "0.2181", "0.765", "0.786", "0.765", "0.786", "0.78", "0.2181", "0.78" ], [ "0.2173", "0.781", "0.786", "0.781", "0.786", "0.7944", "0.2173", "0.7944" ], [ "0.2173", "0.797", "0.786", "0.797", "0.786", "0.81", "0.2173", "0.81" ], [ "0.2181", "0.811", "0.786", "0.811", "0.786", "0.8247", "0.2181", "0.8247" ], [ "0.2173", "0.827", "0.786", "0.827", "0.786", "0.8403", "0.2173", "0.8403" ] ]
[ "Neural Re-Rendering of Humans from a Single Image", "5", "given background image with the generated person's image. In contrast to Liu", "et al. [25l, we transfer appearance from source to target image using a UV fea-", "ture map. Instead of directly predicting missing regions of the UV texture map,", "coordinate-based inpainting [12] predicts correspondence between all regions on", "the UV texture map and the input image pixels. This results in more texture", "details in body regions that become dis-occluded when re-posing. As shown in", "Sec. 4, our UV feature map based approach yields results of much higher qual-", "ity in comparisons. Shysheya et al. [42] explicitly model the body texture and", "implicitly handle the shape. In contrast, while we explicitly handle the coarse", "shape, we use a UV feature map to model the fine-scaled shape and clothing", "texture implicitly.Lazowa et al.[21] propose an approach for reconstruction of", "textured 3D human models from a single image. Similar to our approach, it ex-", "tracts a partial UV texture map using DensePose but inpaints the UV texture", "map using a GAN based supervision directly applied to the texture map. Addi-", "tionally and similar to Alldieck et al. [2] it predicts a displacement map", "on top of the SMPL mesh to capture clothing details not present in the SMPL", "model. Our approach does not explicitly model clothing details.", "In contrast to existing methods, we propose a new end-to-end trainable", "method that combines monocular parametric 3D body modeling [33,12], a learned", "neural detail-preserving surface feature representation [5o], and a neural image", "synthesis network for highly realistic human re-rendering from a single image.", "3", "", "Method", "Given an image Ig of a person, we synthesise a new image of the person in a", "different target body pose. Our approach comprises of four distinct steps. The", "first step uses DensePose [37] to predict dense correspondences between the input", "image Is and the SMPL model. This allows a UV terture map T, to be extracted", "forthevisibleregions.Thesecond stepusesaU-Net38/based network,which", "we term FeatureNet, to construct the full UV feature map F, from the partial", "RGB UV texture map Ts. Fs contains a d-dimensional feature representation", "for all texels, both visible and occluded in the source image. The third step", "takes a target pose as input, and 'renders' the UV feature map F, to produce a", "d-dimensional feature image Rs-t.", "The fourth step uses a generator network based on Pix2PixHD [54], which we", "term RenderNet, to generate a photorealistic image Is-+t of the reposed person,", "from the input Feature image. The overview of our pipeline is shown in Fig. 2.", "3.1", "Extracting a Partial UV Texture Map from the Input Image", "The pixels of the input image are transformed into UV space through matches", "predicted with DensePose. We use the ResNet-101 based variant of DensePose for", "predicting the correspondences for the body regions visible in the image. The net-", "work is pre-trained on COCO-DensePose dataset and provides 24 body segments", "and their part-specific U, V coordinates of SMPL model. For easier mapping, the" ]
{ "arxiv_id": "2101.04104", "language": "en", "page_idx": 4 }
2203.03691-en-0
2203.03691-en-0.jpg
$\textbf{HyperMixer: An MLP- based Low Cost Alternative to Transformers}$ Florian Mai$^{\dagger\spadesuit}$ Arnaud Pannatier$^{\dagger\spadesuit}$ Fabio Fehr$^{\dagger\spadesuit}$ Haolin Chen$^{\dagger\spadesuit}$François Marelli$^{\dagger\spadesuit}$ François Fleuret$^{\#\spadesuit\dagger}$ James Henderson$^{\dagger}$ $^{\bullet}$EPFL, Lausanne, Switzerland AUniversity of Geneva, Geneva, Switzerland ## $\mathbf{Abstract}$ Transformer-based architectures are the model of choice for natural language understanding, but they come at a significant cost, as they have quadratic complexity in the input length, require a lot of training data, and can be difficult to tune. In the pursuit of lower costs, we investigate simple MLP-based architectures. We find that existing architectures such as MLPMixer, which achieves token mixing through a static MLP applied to each feature independently, are too detached from the inductive biases required for natural language understanding. In this paper, we propose a simple variant, $HyperMixer$, which forms the token mixing MLP dynamically using hypernetworks. Empirically, we demonstrate that our model performs better than alternative MLP-based models, and on par with Transformers. In contrast to Transformers, HyperMixer achieves these results at substantially lower costs in terms of processing time, training data, and hyperparameter tuning$^{1}.$ ### 1 $\textbf{Introduction}$ Attention-based architectures, such as the Transformer (Vaswani et al., 2017), have accelerated the progress in many natural language understanding tasks. Part of their success is a result of a parallelizable training scheme over the input length. This improves training times and allows for larger volumes of data which makes these models amenable to pretraining (Radford et al., 2018; Devlin et al., 2019). Therefore, many current state-of-the-art models are fine-tuned extensions of large pretrained Transformers (Bommasani et al., 2021). However, these models come at a significant computational cost. They require considerable resources for pretraining and fine-tuning, which induces high energy consumption (Strubell et al., 2019) and limits access to research (Bommasani et al., 2021). Subsequently, Schwartz et al. (2020) $^{1}$Code is available at https://github.com/idiap/hypermixing ## argue the need for "Green AI". They propose a cost evaluation of a result $R$ as following: $$Cost(R)\propto E\cdot D\cdot H,$$ where $E$ is the computational cost measured in floating point operations (FPO) of a single example, $D$ is the dataset size, and $H$ is the number of hyperparameter configurations required during tuning. To achieve a cost reduction, this paper proposes a simpler alternative to Transformers. We take inspiration from the computer vision community, which has recently seen a surge of research on Multi-Layer Perceptrons (MLPs). Most prominently, MLPMixer (Tolstikhin et al., 2021), which is a simple architecture based on two MLPs: one for token mixing and one for feature mixing. However, the token mixing MLP learns a fixed-size set of position-specific mappings, arguably making MLPMixer's architecture too detached from the inductive biases needed for natural language understanding, in contrast to Transformers (Henderson, 2020). In this paper, we propose a simple variant, $Hy-$ perMixer (Figure 1), which creates a token mixing MLP dynamically using hypernetworks (Ha et al., 2016). This variant is more appropriate, as it learns to generate a variable-size set of mappings in a position- invariant way, similar to the attention mechanism in Transformers (Vaswani et al., 2017). In contrast to Transformer's quadratic complexity, HyperMixer's complexity is linear in the input length. This makes it a competitive alternative for training on longer inputs. Empirically, we demonstrate that HyperMixer works substantially better on natural language understanding tasks than the original MLPMixer and related alternatives. In comparison to Transformers, HyperMixer achieves competitive or improved results at a substantially lower cost $Cost(R)\propto$ $E\cdot D\cdot H{:\text{improved inference speeds(E), espe-}}$
[ [ "0.1511", "0.0932", "0.8486", "0.0932", "0.8486", "0.1081", "0.1511", "0.1081" ], [ "0.3257", "0.1318", "0.3418", "0.1354", "0.3376", "0.1437", "0.3208", "0.1401" ], [ "0.3333", "0.13", "0.81", "0.13", "0.81", "0.1478", "0.3333", "0.1478" ], [ "0.4048", "0.1478", "0.594", "0.1455", "0.594", "0.1633", "0.4048", "0.165" ], [ "0.1931", "0.133", "0.3242", "0.13", "0.3242", "0.1443", "0.1931", "0.1478" ], [ "0.2275", "0.1484", "0.398", "0.1478", "0.398", "0.1621", "0.2275", "0.1633" ], [ "0.3972", "0.1538", "0.4106", "0.1538", "0.4106", "0.158", "0.3972", "0.158" ], [ "0.6113", "0.1497", "0.7715", "0.1497", "0.7715", "0.1633", "0.6113", "0.1633" ], [ "0.3074", "0.1663", "0.6978", "0.1663", "0.6978", "0.1812", "0.3074", "0.1812" ], [ "0.3728", "0.1812", "0.629", "0.1818", "0.629", "0.1965", "0.3728", "0.1953" ], [ "0.318", "0.1953", "0.684", "0.1978", "0.684", "0.2156", "0.318", "0.2131" ], [ "0.2627", "0.253", "0.3418", "0.253", "0.3418", "0.2673", "0.2627", "0.2673" ], [ "0.511", "0.2542", "0.882", "0.2542", "0.882", "0.2683", "0.511", "0.2683" ], [ "0.51", "0.2695", "0.7866", "0.2708", "0.7866", "0.2852", "0.51", "0.284" ], [ "0.1436", "0.282", "0.4592", "0.282", "0.4592", "0.2957", "0.1436", "0.2957" ], [ "0.1453", "0.2964", "0.4592", "0.2964", "0.4592", "0.3113", "0.1453", "0.3113" ], [ "0.6113", "0.2957", "0.7827", "0.2957", "0.7827", "0.31", "0.6113", "0.31" ], [ "0.02184", "0.304", "0.06213", "0.304", "0.06213", "0.4395", "0.02184", "0.4395" ], [ "0.1453", "0.3113", "0.4592", "0.3113", "0.4592", "0.3247", "0.1453", "0.3247" ], [ "0.1453", "0.326", "0.4592", "0.326", "0.4592", "0.339", "0.1453", "0.339" ], [ "0.51", "0.3237", "0.882", "0.3247", "0.882", "0.339", "0.51", "0.3384" ], [ "0.1453", "0.339", "0.4592", "0.339", "0.4592", "0.3528", "0.1453", "0.3528" ], [ "0.51", "0.3416", "0.8833", "0.3403", "0.8833", "0.3552", "0.51", "0.3557" ], [ "0.147", "0.354", "0.4575", "0.3552", "0.4575", "0.3665", "0.147", "0.3652" ], [ "0.511", "0.357", "0.8833", "0.3557", "0.8833", "0.3706", "0.511", "0.3718" ], [ "0.147", "0.3677", "0.4592", "0.3677", "0.4592", "0.3813", "0.147", "0.3813" ], [ "0.511", "0.3735", "0.882", "0.3735", "0.882", "0.3884", "0.511", "0.3884" ], [ "0.1436", "0.3813", "0.4592", "0.3818", "0.4592", "0.3955", "0.1436", "0.3943" ], [ "0.1453", "0.3967", "0.4592", "0.3967", "0.4592", "0.4104", "0.1453", "0.4104" ], [ "0.511", "0.3914", "0.5635", "0.3914", "0.5635", "0.4026", "0.511", "0.4026" ], [ "0.5283", "0.4038", "0.882", "0.4062", "0.882", "0.4204", "0.5283", "0.4187" ], [ "0.1453", "0.4104", "0.4575", "0.4104", "0.4575", "0.4233", "0.1453", "0.4233" ], [ "0.147", "0.4246", "0.4575", "0.4246", "0.4575", "0.4382", "0.147", "0.4382" ], [ "0.51", "0.4216", "0.8833", "0.4204", "0.8833", "0.4353", "0.51", "0.4358" ], [ "0.02184", "0.437", "0.0638", "0.437", "0.0638", "0.5186", "0.02184", "0.5186" ], [ "0.03946", "0.4316", "0.04535", "0.4316", "0.04535", "0.437", "0.03946", "0.437" ], [ "0.1453", "0.4395", "0.4592", "0.4395", "0.4592", "0.4531", "0.1453", "0.4531" ], [ "0.511", "0.4382", "0.8833", "0.4382", "0.8833", "0.452", "0.511", "0.452" ], [ "0.1486", "0.4548", "0.4575", "0.4548", "0.4575", "0.4656", "0.1486", "0.4656" ], [ "0.511", "0.4536", "0.8833", "0.4536", "0.8833", "0.4673", "0.511", "0.4673" ], [ "0.1453", "0.4673", "0.4592", "0.4673", "0.4592", "0.481", "0.1453", "0.481" ], [ "0.513", "0.4697", "0.8833", "0.4697", "0.8833", "0.484", "0.513", "0.484" ], [ "0.1453", "0.4822", "0.4575", "0.4822", "0.4575", "0.4954", "0.1453", "0.4954" ], [ "0.51", "0.485", "0.882", "0.484", "0.882", "0.4988", "0.51", "0.4995" ], [ "0.147", "0.4954", "0.4575", "0.4954", "0.4575", "0.509", "0.147", "0.509" ], [ "0.511", "0.502", "0.881", "0.502", "0.881", "0.5156", "0.511", "0.5156" ], [ "0.1453", "0.5103", "0.4568", "0.5103", "0.4568", "0.524", "0.1453", "0.524" ], [ "0.02184", "0.5195", "0.06213", "0.5195", "0.06213", "0.73", "0.02184", "0.73" ], [ "0.513", "0.5186", "0.881", "0.5186", "0.881", "0.532", "0.513", "0.532" ], [ "0.147", "0.5254", "0.4575", "0.5254", "0.4575", "0.536", "0.147", "0.536" ], [ "0.147", "0.539", "0.4575", "0.539", "0.4575", "0.55", "0.147", "0.55" ], [ "0.513", "0.5337", "0.882", "0.5337", "0.882", "0.5474", "0.513", "0.5474" ], [ "0.147", "0.554", "0.4575", "0.554", "0.4575", "0.564", "0.147", "0.564" ], [ "0.513", "0.5503", "0.881", "0.5503", "0.881", "0.5654", "0.513", "0.5654" ], [ "0.1436", "0.5664", "0.43", "0.5664", "0.43", "0.5806", "0.1436", "0.5806" ], [ "0.513", "0.5664", "0.881", "0.5664", "0.881", "0.58", "0.513", "0.58" ], [ "0.513", "0.5845", "0.881", "0.5845", "0.881", "0.594", "0.513", "0.594" ], [ "0.11584", "0.5933", "0.2585", "0.594", "0.2585", "0.6094", "0.11584", "0.608" ], [ "0.51", "0.5986", "0.882", "0.597", "0.882", "0.6123", "0.51", "0.6133" ], [ "0.511", "0.6143", "0.5635", "0.6143", "0.5635", "0.629", "0.511", "0.629" ], [ "0.1184", "0.6226", "0.4895", "0.6226", "0.4895", "0.6357", "0.1184", "0.6357" ], [ "0.5283", "0.63", "0.881", "0.63", "0.881", "0.6436", "0.5283", "0.6436" ], [ "0.11755", "0.638", "0.4878", "0.638", "0.4878", "0.652", "0.11755", "0.652" ], [ "0.51", "0.6455", "0.882", "0.6455", "0.882", "0.66", "0.51", "0.66" ], [ "0.11755", "0.655", "0.4878", "0.655", "0.4878", "0.6685", "0.11755", "0.6685" ], [ "0.51", "0.662", "0.882", "0.663", "0.882", "0.6777", "0.51", "0.677" ], [ "0.11584", "0.6704", "0.4902", "0.6704", "0.4902", "0.684", "0.11584", "0.684" ], [ "0.51", "0.6777", "0.882", "0.6787", "0.882", "0.6934", "0.51", "0.6924" ], [ "0.11755", "0.686", "0.4878", "0.686", "0.4878", "0.6997", "0.11755", "0.6997" ], [ "0.511", "0.695", "0.882", "0.6953", "0.882", "0.7104", "0.511", "0.709" ], [ "0.11584", "0.703", "0.4895", "0.703", "0.4895", "0.7163", "0.11584", "0.7163" ], [ "0.511", "0.712", "0.882", "0.712", "0.882", "0.7256", "0.511", "0.7256" ], [ "0.11755", "0.7188", "0.4878", "0.7188", "0.4878", "0.7324", "0.11755", "0.7324" ], [ "0.513", "0.727", "0.882", "0.727", "0.882", "0.7407", "0.513", "0.7407" ], [ "0.11584", "0.734", "0.4844", "0.733", "0.4844", "0.7476", "0.11584", "0.749" ], [ "0.513", "0.7437", "0.882", "0.7437", "0.882", "0.7573", "0.513", "0.7573" ], [ "0.11584", "0.75", "0.4836", "0.75", "0.4836", "0.763", "0.11584", "0.763" ], [ "0.513", "0.7603", "0.882", "0.7603", "0.882", "0.774", "0.513", "0.774" ], [ "0.11755", "0.767", "0.486", "0.767", "0.486", "0.781", "0.11755", "0.781" ], [ "0.513", "0.7754", "0.882", "0.7754", "0.882", "0.789", "0.513", "0.789" ], [ "0.11755", "0.783", "0.4106", "0.783", "0.4106", "0.7964", "0.11755", "0.7964" ], [ "0.51", "0.7915", "0.6987", "0.7905", "0.6987", "0.8047", "0.51", "0.8057" ], [ "0.1351", "0.8", "0.486", "0.8", "0.486", "0.8135", "0.1351", "0.8135" ], [ "0.5283", "0.808", "0.881", "0.808", "0.881", "0.822", "0.5283", "0.822" ], [ "0.11755", "0.8164", "0.4878", "0.8164", "0.4878", "0.83", "0.11755", "0.83" ], [ "0.511", "0.8223", "0.8833", "0.8237", "0.8833", "0.8384", "0.511", "0.8374" ], [ "0.1142", "0.832", "0.4878", "0.8306", "0.4878", "0.8457", "0.1142", "0.8467" ], [ "0.513", "0.8403", "0.882", "0.8403", "0.882", "0.854", "0.513", "0.854" ], [ "0.11584", "0.8467", "0.4895", "0.847", "0.4895", "0.8623", "0.11584", "0.861" ], [ "0.51", "0.857", "0.882", "0.857", "0.882", "0.8706", "0.51", "0.8706" ], [ "0.11755", "0.8643", "0.4878", "0.8643", "0.4878", "0.8774", "0.11755", "0.8774" ], [ "0.511", "0.8726", "0.881", "0.8726", "0.881", "0.8857", "0.511", "0.8857" ], [ "0.11755", "0.88", "0.4895", "0.88", "0.4895", "0.8945", "0.11755", "0.8945" ], [ "0.509", "0.887", "0.882", "0.888", "0.882", "0.903", "0.509", "0.902" ], [ "0.1411", "0.905", "0.4895", "0.905", "0.4895", "0.9185", "0.1411", "0.9185" ], [ "0.51", "0.903", "0.882", "0.904", "0.882", "0.9185", "0.51", "0.9175" ] ]
[ "HyperMixer: An MLP-based Low Cost Alternative to Transformers", "", "Arnaud PannatiertFabio FehrtHaolin Chent*", "Francois Fleuret*++", "Florian Mait.", "Francois Marellit", "", "James Henderson", "tIdiap Research Institute, Martigny, Switzerland", "EPFL,Lausanne,Switzerland", "*University of Geneva, Geneva, Switzerland", "Abstract", "argue the need for \"Green AI\". They propose a cost", "evaluation of a result R as following:", "Transformer-based architectures are the model", "of choice for natural language understanding,", "Cost(R) α E.D.H,", "2 ", "but they come at a significant cost, as they have", "quadratic complexity in the input length, re-", "where E is the computational cost measured in", "quire a lot of training data, and can be difficult", "floating point operations (FPO) of a single exam-", "totune. In thepursuit of lower costs, we investi-", "ple, D is the dataset size, and H is the number", "gate simple MLP-based architectures. We find", "of hyperparameter configurations required during", "that existing architectures such as MLPMixer,", "which achieves token mixing through a static", "tuning", "To achieve a cost reduction, this paper proposes", "MLP applied to each feature independently, are", "too detached from the inductive biases required", "a simpler alternative to Transformers. We take", "[T'S]", "", "for natural language understanding. In this pa-", "inspiration from the computer vision community,", "per,weproposea simplevariant,HyperMixer", "which has recently seen a surge of research on", "which forms the token mixing MLP dynami-", "Multi-Layer Perceptrons (MLPs). Most promi-", "cally using hypernetworks. Empirically, we", "nently, MLPMixer (Tolstikhin et al., 2021), which", "demonstrate that our model performs better", "is a simple architecture based on two MLPs: one", "than alternative MLP-based models, and on par", "6960502211", "for token mixing and one for feature mixing.How", "withTransformers.IncontrasttoTransformers.", "HyperMixerachievestheseresultsatsubstan-", "ever, the token mixing MLP learns a fixed-size set", "tiallylowercostsintermsofprocessingtime.", "of position-specific mappings, arguably making", "training data, and hyperparameter tuning'.", "MLPMixer's architecture too detached from the", "inductivebiasesneededfornaturallanguageunder-", "1 Introduction", " standing, in contrast to Transformers (Henderson", "2020).", "Attention-based architectures, such as the Trans-", "In this paper, we propose a simple variant, Hy", "former (Vaswani et al., 2017), have accelerated the", "perMixer (Figure 1), which creates a token mix", "progress in many natural language understanding", "ing MLP dynamically using hypernetworks (Ha", "tasks. Part of their success is a result of a paralleliz-", "et al., 2016). This variant is more appropriate, as it", "able training scheme over the input length. This", "learns to generate a variable-size set of mappings", "improves training times and allows for larger vol-", "in a position-invariant way, similar to the attention", "umes of data which makes these models amenable", "mechanism in Transformers (Vaswani et al., 2017)", "to pretraining (Radford et al., 2018; Devlin et al.", "In contrast to Transformer's quadratic complex", "2019). Therefore, many current state-of-the-art", "ity, HyperMixer's complexity is linear in the input", "models are fine-tuned extensions of large pretrained", "length. This makes it a competitive alternative for", "Transformers (Bommasani et al., 2021).", "training on longer inputs.", "However, these models come at a significant", "Empirically, we demonstrate that HyperMixer", "computational cost. They require considerable", "works substantially better on natural language un-", "resources for pretraining and fine-tuning, which", "derstanding tasks than the original MLPMixer and", "induces high energy consumption (Strubell et al.,", "related alternatives. In comparison to Transform-", "2019) and limits access to research (Bommasani", "ers, HyperMixer achieves competitive or improved", "et al., 2021). Subsequently, Schwartz et al. (2020)", "results at a substantially lower cost Cost(R) α", "'Code is available at https://github.com/idiap/hypermixing", "E . D -H: improved inference speeds (E), espe" ]
{ "arxiv_id": "2203.03691", "language": "en", "page_idx": 0 }