Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
Files changed (50)
- -9AyT4oBgHgl3EQf3vkG/vector_store/index.faissAdded+3
- .gitattributes+67
- 09FAT4oBgHgl3EQfjh3M/vector_store/index.faissAdded+3
- 09FAT4oBgHgl3EQfjh3M/vector_store/index.pklAdded+3
- 0NFQT4oBgHgl3EQfzzas/content/tmp_files/2301.13414v1.pdf.txtAdded+1833
- 0NFQT4oBgHgl3EQfzzas/content/tmp_files/load_file.txtAdded
- 0dFKT4oBgHgl3EQfNy2J/content/2301.11756v1.pdfAdded+3
- 0dFKT4oBgHgl3EQfNy2J/vector_store/index.faissAdded+3
- 0tE2T4oBgHgl3EQfiQfL/vector_store/index.faissAdded+3
- 2dFST4oBgHgl3EQfXzgB/vector_store/index.faissAdded+3
- 2tE2T4oBgHgl3EQfjAfh/content/2301.03965v1.pdfAdded+3
- 2tE2T4oBgHgl3EQfjAfh/vector_store/index.pklAdded+3
- 2tFLT4oBgHgl3EQfrC9d/content/2301.12142v1.pdfAdded+3
- 2tFLT4oBgHgl3EQfrC9d/vector_store/index.faissAdded+3
- 2tFLT4oBgHgl3EQfrC9d/vector_store/index.pklAdded+3
- 39FAT4oBgHgl3EQflh2J/content/tmp_files/2301.08618v1.pdf.txtAdded+1102
- 39FAT4oBgHgl3EQflh2J/content/tmp_files/load_file.txtAdded
- 3dFST4oBgHgl3EQfYzh6/content/tmp_files/2301.13789v1.pdf.txtAdded+1063
- 3dFST4oBgHgl3EQfYzh6/content/tmp_files/load_file.txtAdded
- 49A0T4oBgHgl3EQfNv86/vector_store/index.faissAdded+3
- 5dA0T4oBgHgl3EQfNv_S/content/tmp_files/2301.02152v1.pdf.txtAdded+2837
- 5dA0T4oBgHgl3EQfNv_S/content/tmp_files/load_file.txtAdded
- 69E3T4oBgHgl3EQfpwru/content/2301.04646v1.pdfAdded+3
- 69E3T4oBgHgl3EQfpwru/vector_store/index.faissAdded+3
- 69E3T4oBgHgl3EQfpwru/vector_store/index.pklAdded+3
- 79FAT4oBgHgl3EQfoh2y/content/2301.08635v1.pdfAdded+3
- 79FAT4oBgHgl3EQfoh2y/vector_store/index.faissAdded+3
- 79FAT4oBgHgl3EQfoh2y/vector_store/index.pklAdded+3
- 7NE3T4oBgHgl3EQfRgki/content/2301.04421v1.pdfAdded+3
- 7NE3T4oBgHgl3EQfRgki/vector_store/index.faissAdded+3
- 7NE3T4oBgHgl3EQfRgki/vector_store/index.pklAdded+3
- 7NFJT4oBgHgl3EQfmSym/content/tmp_files/2301.11587v1.pdf.txtAdded+1225
- 7NFJT4oBgHgl3EQfmSym/content/tmp_files/load_file.txtAdded
- 99AzT4oBgHgl3EQfSvs8/content/2301.01236v1.pdfAdded+3
- 99AzT4oBgHgl3EQfSvs8/vector_store/index.faissAdded+3
- 99AzT4oBgHgl3EQfSvs8/vector_store/index.pklAdded+3
- 9NE1T4oBgHgl3EQfCQIp/content/2301.02861v1.pdfAdded+3
- 9NE1T4oBgHgl3EQfCQIp/vector_store/index.faissAdded+3
- 9NE1T4oBgHgl3EQfCQIp/vector_store/index.pklAdded+3
- B9E4T4oBgHgl3EQf5Q72/content/2301.05323v1.pdfAdded+3
- BNE1T4oBgHgl3EQfVgSF/content/2301.03103v1.pdfAdded+3
- BNE1T4oBgHgl3EQfVgSF/vector_store/index.faissAdded+3
- CdE2T4oBgHgl3EQfSAcB/content/tmp_files/2301.03786v1.pdf.txtAdded+1015
- CdE2T4oBgHgl3EQfSAcB/content/tmp_files/load_file.txtAdded
- DNE0T4oBgHgl3EQfggEA/vector_store/index.faissAdded+3
- FdA0T4oBgHgl3EQfBP_A/content/2301.01974v1.pdfAdded+3
- FdA0T4oBgHgl3EQfBP_A/vector_store/index.faissAdded+3
- FdA0T4oBgHgl3EQfBP_A/vector_store/index.pklAdded+3
- HNFJT4oBgHgl3EQfuC2G/vector_store/index.pklAdded+3
- I9AyT4oBgHgl3EQfsPkA/vector_store/index.pklAdded+3
123version https://git-lfs.github.com/spec/v1oid sha256:d50533474cbd73688acfd8097e0c23f92969a60f8203aadb354ae571ff704a44size 93716936141 unmodified lines6142614361446141 unmodified linesB9AzT4oBgHgl3EQfh_2U/vector_store/index.faiss filter=lfs diff=lfs merge=lfs -text_NE4T4oBgHgl3EQfEAug/vector_store/index.faiss filter=lfs diff=lfs merge=lfs -textEdFRT4oBgHgl3EQfBDfd/content/2301.13464v1.pdf filter=lfs diff=lfs merge=lfs -text6141 unmodified lines61426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116141 unmodified linesB9AzT4oBgHgl3EQfh_2U/vector_store/index.faiss filter=lfs diff=lfs merge=lfs -text_NE4T4oBgHgl3EQfEAug/vector_store/index.faiss filter=lfs diff=lfs merge=lfs -textEdFRT4oBgHgl3EQfBDfd/content/2301.13464v1.pdf filter=lfs diff=lfs merge=lfs -text49A0T4oBgHgl3EQfNv86/vector_store/index.faiss filter=lfs diff=lfs merge=lfs -text2dFST4oBgHgl3EQfXzgB/vector_store/index.faiss filter=lfs diff=lfs merge=lfs -textvdE3T4oBgHgl3EQfkwp-/content/2301.04600v1.pdf filter=lfs diff=lfs merge=lfs -textBNE1T4oBgHgl3EQfVgSF/content/2301.03103v1.pdf filter=lfs diff=lfs merge=lfs -textcNE5T4oBgHgl3EQfEg7V/vector_store/index.faiss filter=lfs diff=lfs merge=lfs -textNtAzT4oBgHgl3EQfWPy8/vector_store/index.faiss filter=lfs diff=lfs merge=lfs -textztFQT4oBgHgl3EQfCjXs/content/2301.13231v1.pdf filter=lfs diff=lfs merge=lfs -textu9AzT4oBgHgl3EQfP_sX/vector_store/index.faiss filter=lfs diff=lfs merge=lfs -textOtFPT4oBgHgl3EQfnDXw/vector_store/index.faiss filter=lfs diff=lfs merge=lfs -texts9FAT4oBgHgl3EQfgx0D/content/2301.08589v1.pdf filter=lfs diff=lfs merge=lfs -textvdE3T4oBgHgl3EQfkwp-/vector_store/index.faiss filter=lfs diff=lfs merge=lfs -textYtA0T4oBgHgl3EQfFv9O/vector_store/index.faiss filter=lfs diff=lfs merge=lfs -text0dFKT4oBgHgl3EQfNy2J/content/2301.11756v1.pdf filter=lfs diff=lfs merge=lfs -textc9A0T4oBgHgl3EQfGv_2/vector_store/index.faiss filter=lfs diff=lfs merge=lfs -text0dFKT4oBgHgl3EQfNy2J/vector_store/index.faiss filter=lfs diff=lfs merge=lfs -textKNAzT4oBgHgl3EQfIPul/vector_store/index.faiss filter=lfs diff=lfs merge=lfs -textB9E4T4oBgHgl3EQf5Q72/content/2301.05323v1.pdf filter=lfs diff=lfs merge=lfs -texts9E1T4oBgHgl3EQfjgRh/vector_store/index.faiss filter=lfs diff=lfs merge=lfs -textf9AzT4oBgHgl3EQfMfsT/content/2301.01131v1.pdf filter=lfs diff=lfs merge=lfs -text9NE1T4oBgHgl3EQfCQIp/content/2301.02861v1.pdf filter=lfs diff=lfs merge=lfs -text-9AyT4oBgHgl3EQf3vkG/vector_store/index.faiss filter=lfs diff=lfs merge=lfs -textKtE4T4oBgHgl3EQfJQzO/vector_store/index.faiss filter=lfs diff=lfs merge=lfs -textd9AzT4oBgHgl3EQf3f6y/vector_store/index.faiss filter=lfs diff=lfs merge=lfs -textxtAyT4oBgHgl3EQfOvaI/vector_store/index.faiss filter=lfs diff=lfs merge=lfs -textV9E4T4oBgHgl3EQfng2k/content/2301.05177v1.pdf filter=lfs diff=lfs merge=lfs -textodE3T4oBgHgl3EQfjQqW/vector_store/index.faiss filter=lfs diff=lfs merge=lfs -textKNE4T4oBgHgl3EQf7g74/content/2301.05341v1.pdf filter=lfs diff=lfs merge=lfs -text79FAT4oBgHgl3EQfoh2y/content/2301.08635v1.pdf filter=lfs diff=lfs merge=lfs -textt9E0T4oBgHgl3EQf9QLr/vector_store/index.faiss filter=lfs diff=lfs merge=lfs -textFdA0T4oBgHgl3EQfBP_A/content/2301.01974v1.pdf filter=lfs diff=lfs merge=lfs -texts9FAT4oBgHgl3EQfgx0D/vector_store/index.faiss filter=lfs diff=lfs merge=lfs -textzdFST4oBgHgl3EQfUjgb/content/2301.13773v1.pdf filter=lfs diff=lfs merge=lfs -textW9E2T4oBgHgl3EQfuggX/vector_store/index.faiss filter=lfs diff=lfs merge=lfs -textsNE2T4oBgHgl3EQffAfS/content/2301.03923v1.pdf filter=lfs diff=lfs merge=lfs -textidFLT4oBgHgl3EQfay-h/vector_store/index.faiss filter=lfs diff=lfs merge=lfs -textBNE1T4oBgHgl3EQfVgSF/vector_store/index.faiss filter=lfs diff=lfs merge=lfs -text9NE1T4oBgHgl3EQfCQIp/vector_store/index.faiss filter=lfs diff=lfs merge=lfs -textJ9AzT4oBgHgl3EQfj_2L/vector_store/index.faiss filter=lfs diff=lfs merge=lfs -textOdFLT4oBgHgl3EQfPC8X/content/2301.12026v1.pdf filter=lfs diff=lfs merge=lfs -text7NE3T4oBgHgl3EQfRgki/content/2301.04421v1.pdf filter=lfs diff=lfs merge=lfs -textKNE4T4oBgHgl3EQf7g74/vector_store/index.faiss filter=lfs diff=lfs merge=lfs -text69E3T4oBgHgl3EQfpwru/content/2301.04646v1.pdf filter=lfs diff=lfs merge=lfs -textJ9AzT4oBgHgl3EQfj_2L/content/2301.01525v1.pdf filter=lfs diff=lfs merge=lfs -textFdA0T4oBgHgl3EQfBP_A/vector_store/index.faiss filter=lfs diff=lfs merge=lfs -text99AzT4oBgHgl3EQfSvs8/content/2301.01236v1.pdf filter=lfs diff=lfs merge=lfs -text2tFLT4oBgHgl3EQfrC9d/content/2301.12142v1.pdf filter=lfs diff=lfs merge=lfs -textq9FPT4oBgHgl3EQf9TVT/content/2301.13211v1.pdf filter=lfs diff=lfs merge=lfs -textzdFST4oBgHgl3EQfUjgb/vector_store/index.faiss filter=lfs diff=lfs merge=lfs -text2tE2T4oBgHgl3EQfjAfh/content/2301.03965v1.pdf filter=lfs diff=lfs merge=lfs -textKNFRT4oBgHgl3EQfDTe1/content/2301.13472v1.pdf filter=lfs diff=lfs merge=lfs -text2tFLT4oBgHgl3EQfrC9d/vector_store/index.faiss filter=lfs diff=lfs merge=lfs -textV9E4T4oBgHgl3EQfng2k/vector_store/index.faiss filter=lfs diff=lfs merge=lfs -text69E3T4oBgHgl3EQfpwru/vector_store/index.faiss filter=lfs diff=lfs merge=lfs -text7NE3T4oBgHgl3EQfRgki/vector_store/index.faiss filter=lfs diff=lfs merge=lfs -textztFQT4oBgHgl3EQfCjXs/vector_store/index.faiss filter=lfs diff=lfs merge=lfs -textYNFJT4oBgHgl3EQf6S0s/vector_store/index.faiss filter=lfs diff=lfs merge=lfs -textuNE0T4oBgHgl3EQf9gI3/vector_store/index.faiss filter=lfs diff=lfs merge=lfs -text0tE2T4oBgHgl3EQfiQfL/vector_store/index.faiss filter=lfs diff=lfs merge=lfs -text09FAT4oBgHgl3EQfjh3M/vector_store/index.faiss filter=lfs diff=lfs merge=lfs -textN9E4T4oBgHgl3EQfjw0A/vector_store/index.faiss filter=lfs diff=lfs merge=lfs -textKtE4T4oBgHgl3EQfiA3u/vector_store/index.faiss filter=lfs diff=lfs merge=lfs -textDNE0T4oBgHgl3EQfggEA/vector_store/index.faiss filter=lfs diff=lfs merge=lfs -textLdE4T4oBgHgl3EQfig1d/content/2301.05134v1.pdf filter=lfs diff=lfs merge=lfs -textxtFJT4oBgHgl3EQfhCzP/content/2301.11564v1.pdf filter=lfs diff=lfs merge=lfs -text79FAT4oBgHgl3EQfoh2y/vector_store/index.faiss filter=lfs diff=lfs merge=lfs -text99AzT4oBgHgl3EQfSvs8/vector_store/index.faiss filter=lfs diff=lfs merge=lfs -textSNFGT4oBgHgl3EQfgygC/content/2301.10699v1.pdf filter=lfs diff=lfs merge=lfs -text
123version https://git-lfs.github.com/spec/v1oid sha256:f95ab5fed91574f9bcb8f53ba18283bd5bbf815ba0024df8d16d7d98229511edsize 3276845123version https://git-lfs.github.com/spec/v1oid sha256:883704595086a2f128515c49fdde2b2085eda1879308148b17c4c8ce48ad8779size 121743123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833Incentive Compatibility in the Auto-bidding WorldYeganeh Alimohammadi†, Aranyak Mehta∗ and Andres Perlroth∗February 1, 2023AbstractAuto-bidding has recently become a popular feature in ad auctions. This feature enablesadvertisers to simply provide high-level constraints and goals to an automated agent, whichoptimizes their auction bids on their behalf. These auto-bidding intermediaries interact ina decentralized manner in the underlying auctions, leading to new interesting practical andtheoretical questions on auction design, for example, in understanding the bidding equilibriumproperties between auto-bidder intermediaries for different auctions. In this paper, we examinethe effect of different auctions on the incentives of advertisers to report their constraints to theauto-bidder intermediaries. More precisely, we study whether canonical auctions such as firstprice auction (FPA) and second price auction (SPA) are auto-bidding incentive compatible (AIC):whether an advertiser can gain by misreporting their constraints to the autobidder.We consider value-maximizing advertisers in two important settings: when they have a budgetconstraint and when they have a target cost-per-acquisition constraint. The main result of ourwork is that for both settings, FPA and SPA are not AIC. This contrasts with FPA being AICwhen auto-bidders are constrained to bid using a (sub-optimal) uniform bidding policy. Wefurther extend our main result and show that any (possibly randomized) auction that is truthful(in the classic profit-maximizing sense), scalar invariant and symmetric is not AIC. Finally, tocomplement our findings, we provide sufficient market conditions for FPA and SPA to becomeAIC for two advertisers. These conditions require advertisers’ valuations to be well-aligned. Thissuggests that when the competition is intense for all queries, advertisers have less incentive tomisreport their constraints.From a methodological standpoint, we develop a novel continuous model of queries. Thismodel provides tractability to study equilibrium with auto-bidders, which contrasts with thestandard discrete query model, which is known to be hard. Through the analysis of this model,we uncover a surprising result: in auto-bidding with two advertisers, FPA and SPA are auctionequivalent.†Stanford University, yeganeh@stanford.edu∗Google, {aranyak,perlroth}@google.com1arXiv:2301.13414v1 [econ.TH] 31 Jan 2023
1IntroductionAuto-bidding has become a popular tool in modern online ad auctions, allowing advertisers toset up automated bidding strategies to optimize their goals subject to a set of constraints. Byusing algorithms to adjust the bid for each query, auto-bidding offers a more efficient and effectivealternative to the traditional fine-grained bidding approach, which requires manual monitoring andadjustment of the bids.There are three main components in auto-bidding paradigm: 1) the advertisers who providehigh-level constraints to the auto-bidders, 2) the auto-bidder agents who bid – in a decentralizedmanner – on behalf of each advertiser to maximize the advertiser’s value subject to their constraints,and 3) the query-level auctions where queries are sold (see Figure 1).Figure 1: The Auto-bidding Process: Advertisers submit constraints and receive query allocationswith specified costs as output. Inside the auto-bidding feature, each advertiser has an agent thatoptimizes bidding profile within each advertiser’s constraints.Current research has made important progress in studying the interactions of the second and thirdcomponents in the auto-bidding paradigm, particularly in understanding equilibrium properties (e.g.,welfare and revenue) between the auto-bidders intermediaries for different auction rules (Aggarwalet al., 2019; Balseiro et al., 2021a; Deng et al., 2021a; Mehta, 2022; Liaw et al., 2022). There is alsowork on mechanism design for this setting in more generality, i.e., between the advertisers and theauctioneer directly abstracting out the second component (Balseiro et al., 2021c, 2022; Golrezaeiet al., 2021b).Our work, instead, examines the relation between value-maximizing advertisers, who maximizethe value they obtain subject to a payment constraint, and the other two components of the auto-bidding paradigm. More precisely, we study the impact of different auction rules on the incentivesof advertisers to report their constraints to the auto-bidder intermediaries. We specifically askwhether canonical auctions such as first price auction (FPA), second price auction (SPA) and generaltruthful auctions are auto-bidding incentive compatible (AIC) - in other words, can advertisers gainby misreporting their constraints to the auto-bidder?We consider value-maximizing advertisers in two important settings: when they have a budgetconstraint and when they have a target cost-per-acquisition (tCPA) constraint1. The main result of1The former is an upper bound on the total spend, and the latter is an upper bound on the average spend peracquisition (sale). Our results clearly hold for more general autobidding features, such as target return on ad-spend(tRoAS) where the constraint is an upper bound on the average spend per value generated.1
Auto-constraintsbidsAdvertiserbidderAgentAuto-constraintsbidsAuctionAdvertiserbidderper queryAgentAuto-constraintsbidsAdvertiserbidderAgentour work is that for both settings, FPA and SPA are not AIC. This contrasts with FPA being AICwhen auto-bidders are constrained to bid using a (sub-optimal) uniform bidding policy. We furthergeneralize this surprising result and show that any (possibly randomized) truthful auction having ascale invariance and symmetry property is also not AIC. We complement our result by providingsufficient market conditions for FPA and SPA to become AIC for two advertisers. These conditionsrequire advertisers’ valuations to be well-aligned. This suggests that when the competition is intensefor all queries, advertisers have less incentive to misreport their constraints.In our model, each advertiser strategically reports a constraint (either a tCPA or a budget) toan auto-bidder agent which bids optimally on their behalf in each of the queries. Key in our model,we consider a two stage game where first advertisers submit constraints to the auto-bidders and, inthe subgame, auto-bidders reach a bidding equilibrium across all query-auctions. Thus, when anadvertiser deviates and reports a different constraint to its auto-bidder, the whole bidding subgameequilibrium can change.2 In this context, an auction rule is called auto-bidding incentive compatible(AIC) if, for all equilibria, it is optimal for the advertiser to report their constraint to the auto-bidder.1.1Main ResultsWe begin our results by presenting a stylized example in Section 2 that demonstrates how auto-bidding with SPA is not AIC (Theorem 2.1). Our example consists of a simple instance with threequeries and two advertisers. This example highlights a scenario where an advertiser can benefit fromlowering their reported budget or tCPA-constraint.We then introduce a continuous query model that departs from the standard auto-bidding modelby considering each query to be of infinitesimal size. This model provides tractability in solvingequilibrium for general auction rules like FPA which is key to study the auto-bidding incentivecompatibility properties of such auctions. Further, this continuous-query model succinctly capturesreal-world scenarios where the value of a single query is negligible compared to the pool of all queriesthat are sold.Under the continuous-query model, we study the case where queries are sold using FPA and showthat in the auto-bidding paradigm, FPA is not AIC (Section 4). We first characterize the optimalbidding strategy for each auto-bidder agent which, surprisingly, has a tractable form.3 We thenleverage this tractable form to pin down an equilibrium for the case of two auto-bidders when bothauto-bidders either face a budget or tCPA constraint. In this equilibrium, queries are divided betweenthe two advertisers based on the ratio of their values for each advertiser. Specifically, advertiser 1receives queries for which the ratio of its value to the other advertiser’s value is higher than a certainthreshold. From this point, determining the equilibrium reduces to finding a threshold that makeadvertisers’ constraints tight (see Lemma 4.4 for more detail). We then show that for instances wherethe threshold lacks monotonicity with the auto-bidders constraints, advertisers have an incentiveto misreport the constraint to the auto-bidder (Theorem 4.1). Conversely, when the thresholdsare monotone advertisers report constraints truthfully. We show conditions on the advertisers’valuations, for the two-advertisers setting, to guarantee this monotonicity (Theorem 4.10). Thiscondition requires a strong positive correlation of the advertisers’ valuations across the queries. As a2This two stage model captures the idea that auto-bidding systems rapidly react to any change in the auction.Hence, if there is any change in the bidding landscape, auto-bidders quickly converge to a new equilibrium.3Notice that in the discrete-query model, there is no simple characterization for the auto-bidder best response in aFPA.2
practical insight, our results suggest that for settings where the competition on all queries is intense,advertisers’ incentives to misreport is weak.We then explore the case where, in FPA, auto-bidders are constrained to bid using a uniformbidding strategy: the bid on each query is a constant times the advertiser’s value for the query.4Uniform bidding is only an optimal strategy when auctions are truthful (Aggarwal et al., 2019).Even though for FPA these strategies are suboptimal, they have gained recent attention in theliterature due to their tractability Conitzer et al. (2022a,b); Chen et al. (2021); Gaitonde et al. (2022).We show that in such a scenario, FPA with uniform bidding turns out to be AIC (Theorem 4.2).However, we note that while this proves AIC in our model, the suboptimality of uniform bidding forFPA can give rise to incentives to deviate in other ways outside our model, e.g., by splitting theadvertising campaigns into multiple campaigns with different constraints. These considerations areimportant when implementing this rule in practice.The second part of the paper pivots to the case where auctions are truthful, that is, auctions inwhich it is optimal for a profit-maximizing agent to bid their value. We first study the canonicalSPA and show that, in our continuous-query model, SPA and FPA are auction equivalent. That is,the allocation and payments among the set of reasonable equilibria (Theorem 5.5).5 As a Corollary,the results we obtain for FPA apply to SPA as well: SPA is not AIC and; and we derive sufficientconditions on advertisers’ valuations so that SPA is AIC for two advertisers. We then consider ageneral class of randomized truthful auctions. We show that if the allocation rule satisfies thesenatural conditions:6 (i) scaled invariant (if all bids are multiplied by the same factor then theallocation doesn’t change), and (ii) is symmetric (bidders are treated equally); then the auction ruleis not AIC.The main results of the paper are summarized in Table 1.Per Query AuctionAICSecond-Price AuctionNot AICTruthful AuctionsNot AICFirst-Price AuctionNot AICFirst-Price Auction with Uniform BiddingAIC7Table 1: Main Results1.2Related WorkThe study of auto-bidding in ad auctions has gained significant attention in recent years. One of thefirst papers to study this topic is Aggarwal et al. (2019), which presents a mathematical formulationfor the auto-bidders problem given a fixed constraints reported by advertisers. They show thatuniform bidding is an optimal strategy if and only if auctions are truthful (in the profit-maximizingsense). They further started an important line of work to measure, using a Price of Anarchy (PoA)approach, the welfare implications when auto-bidders are bidding in equilibrium for different auctions.4Uniform bidding strategy is also known in the literature as pacing bidding Conitzer et al. (2022a); Chen et al.(2021); Conitzer et al. (2022b); Gaitonde et al. (2022).5We show the auction equivalence among uniform bidding equilibria for SPA and threshold-type equilibrium forFPA.6These conditions have been widely studied in the literature due to their practical use (Mehta, 2022; Liaw et al.,2022; Allouah and Besbes, 2020).7As previously discussed, implementing FPA with the suboptimal uniform bidding policy can create other distortionon advertisers’ incentives (e.g., splitting their campaign into multiple campaigns with different constraints).3
Current results state that for SPA the PoA is 2 Aggarwal et al. (2019) and also for FPA Liaw et al.(2022)8, and, interestingly, it can be improved if the auction uses a randomized allocation rule Mehta(2022); Liaw et al. (2022). In a similar venue, Deng et al. (2021b); Balseiro et al. (2021b) studiesmodels where the auction has access to extra information and show how reserves and boosts can beused to improve welfare and efficiency guarantees.A second line of work, studies how to design revenue-maximizing auctions when bidders arevalue-maximizing agents and may have private information about their value or their constraints(Golrezaei et al., 2021b; Balseiro et al., 2021c,b). In all these settings, the mechanism designer is notconstrained to the presence of the auto-bidding intermediaries (Component 2 in Figure 1). Our studyhas added structure by having advertisers submit their constraints first, followed by a decentralizedsubgame to achieve a bidding equilibrium before allocating and determining payments. Thus, a prioritheir mechanism setting can achieve broader outcomes than in our auto-bidding constraint paradigm.Interestingly, for the one query case the authors show that FPA with a uniform bidding policy isoptimal Balseiro et al. (2021c). Our results complement theirs and show that such mechanism isimplementable in auto-bidding constraint paradigm and is AIC.Closer to our auto-bidding paradigm, a recent line of work has started to study the incentive ofadvertisers when bidding via an auto-bidder intermediary. Mehta and Perlroth (2023) show that aprofit-maximizing agent may benefit by reporting a target-based bidding strategy to the auto-bidderwhen the agent has concern that the auctioneer may change (ex-post) the auction rules. Also, inan empirical work, Li and Tang (2022) develop a new methodology to numerically approximateauto-bidding equilibrium and show numerical examples where advertisers may benefit my reportingtheir constraints on SPA. Our work complements their findings by showing under a theoreticalframework that SPA is not AIC.Our work also connects with the literature about auction with budgeted constraint bidders. Inparticular, our results are closely related to Conitzer et al. (2022a) who study FPA with uniformbidding (a.k.a. pacing bidding). They introduce the concept of the first-price auction pacingequilibrium (FPPE) for budget-constrained advertisers, which is the same as the equilibrium in ourauto-bidding subgame. They show that in FPPE the revenue and welfare are monotone increasingas a function of the advertisers’ budgets. In our work, we show that in FPPE, advertisers’ valuesare monotone as a function of their reported budget. In addition, they differentiate between firstand second-price by showing that FPPE is computable, unlike SPPE, where maximizing revenuehas previously been known to be NP-hard Conitzer et al. (2022b), and that the general problemof approximating the SPPE is PPAD-complete Chen et al. (2021). In contrast, we show in thecontinuous model both SPA and FPA are tractable. Interestingly, this dichotomy between FPA andSPA (both with uniform bidding) is reflected in our work as well – the former is AIC, while thelatter is not.Uniform bidding has been explored in a separate body of research on repeated auctions, withoutthe presence of auto-bidding. Balseiro and Gur (2019) investigate strategies to minimize regret insimultaneous first-price auctions with learning. Gaitonde et al. (2022) take this concept further byextending the approach to a wider range of auction settings. Furthermore, Golrezaei et al. (2021a)examines how to effectively price and bid for advertising campaigns when advertisers have both ROIand budget constraints.8The authors show that for a general class of deterministic auctions PoA ≥ 2.4
2Warm Up: Second Price Auction is not AIC!To understand the implications of the auto-bidding model, we start with an example of auto-biddingwith the second-price auction. Through this example, we will demonstrate the process of determiningthe equilibrium in an auto-bidding scenario and emphasize a case where the advertiser prefers tomisreport their budget leading to the following theorem.Theorem 2.1. For the budget setting (when all advertisers are budgeted-constrained) and for thetCPA-setting (when all advertisers are tCPA-constrained), we have that SPA is not AIC. That is,there are some instances where an advertiser benefits by misreporting its constraint.Proof. Consider two budget-constrained advertisers and three queries Q = {q1, q2, q3}, where theexpected value of winning query q for advertiser a is denoted by va(q), and it is publicly known (asin Table 2). At first, each advertiser reports their budget to the auto-bidder B1 = 2, and B2 = 4.Then the auto-bidder agents, one for each advertiser, submit the bidding profiles (to maximize theiradvertisers’ value subject to the budget constraint). The next step is a second-price auction perquery, where the queries are allocated to the highest bidder.q1q2q3Advertiser 1432Advertiser 211.310Table 2: SPA with two budget constraint advertisers is not AIC: The value of each query for eachadvertiser.Finding the equilibrium bidding strategies for the auto-bidder agents is challenging, as theauto-bidder agents have to find the best-response bids with respect to the other auto-bidder agents,and each auto-bidder agent’s bidding profile changes the cost of queries for the rest of the agents.To calculate such an equilibrium between auto-bidder agents, we use the result of Aggarwal et al.(2019) to find best-response strategies. Their result states that the best response strategy in anytruthful auto-bidding auction is uniform bidding.9 In other words, each agent optimizes over onevariable, a bidding multiplier µa, and then bids on query q with respect to the scaled value µava(q).We show that with the given budgets B1 = 2 and B2 = 4, an equilibrium exists such thatadvertiser 1 only wins q1, and µ1 = 0.5 and µ2 = 1 result in such an equilibrium. To this end,we need to check: 1) Allocation: with bidding strategies b1 = (µ1v1(q1), µ1v1(q2), µ1v1(q3)) andb2 = (µ2v2(q1), µ2v2(q2), µ2v2(q3)), advertiser 1 wins q1 and advertiser 2 wins q2 and q3, 2) Budgetconstraints are satisfied, and 3) Bidding profiles are the best response: The auto-bidder agents donot have the incentive to increase their multiplier to get more queries. These three conditions arechecked as follows:1. Allocation inequalities: For each query, the advertiser with the highest bid wins it.v1(q1)v2(q1) ≥ µ2µ1= 10.5 ≥ v1(q2)v2(q2) ≥ v1(q3)v2(q3).2.Budget constraints: Since the auction is second-price the cost of query q for advertiser 1 isµ2v2(q) and for advertiser 2 is µ1v1(q). So, we must have the following inequalities to hold so9They show uniform bidding is almost optimal, but in Appendix A we show that in this example it is exactlyoptimal.5
that the budget constraints are satisfied:2 = B1 ≥ µ2v2(q1) = 1(Advertiser 1),4 = B2 ≥ µ1(v1(3) + v1(q2)) = 2.5(Advertiser 2).3. Best response: Does the advertiser’s agent have incentive to raise their multiplier to get morequeries? If not, they shouldn’t afford the next cheapest query.2 < µ2(v2(q1) + v2(q2)) = 2.3(Advertiser 1),4 < µ1(v1(q3) + v1(q2) + v1(q1)) = 4.5(Advertiser 2).Since all the three conditions are satisfied. Thus, this profile is an equilibrium for th auto-biddersbidding game. In this equilibrium, advertiser 1 wins q1 and advertiser 2 wins q2 and q3.Now, consider the scenario that advertiser 1 wants to strategically report their budget B1 to theauto-bidder. Suppose the first advertiser decreases their budget. Intuitively, the budget constraintfor the auto-bidder agent should be harder to satisfy, and hence the advertiser should not win morequeries. But, contrary to this intuition, when advertiser 1 reports a lower budget B′1 = 1, we showthat, given the unique auto-bidding equilibrium, advertiser 1 wins q1 and q2 (more queries than thecase where advertiser 1 reports B1 = 2). Similar to above, we can check that µ′1 =12.3, and µ′2 = 1results in an equilibrium (we prove the uniqueness in Appendix A):1. Allocation: advertiser 1 wins q1 and q2 since it has a higher bid on them,v1(q1)v2(q1) ≥ v1(q2)v2(q2) ≥ µ′2µ′1= 12.3 ≥ v1(q3)v2(q3).2. Budget constraints:4 ≥ v1(q3),and1 = (1/2.3)(v2(q1) + v2(q2)).3. Best response:4 < 1(v1(q3) + v1(q2)),and1 < (1/2.3)(v2(q1) + v2(q2) + v2(q3)).This surprising example leads to the first main result of the paper. In Appendix A, we willgeneralize the above example to the case of tCPA-constrained advertisers with the same set of queriesas in Table 2.Before studying other canonical auctions, in the next section we develop a tractable model ofcontinuous query. Under this model it turns out that the characterization of the auto-bidders biddingequilibria when the auction is not SPA is tractable. This tractability is key for studying auto-biddingincentive compatibility.6
3ModelThe baseline model consists of a set of A advertisers competing for q ∈ Q single-slot queries owned byan auctioneer. We consider a continuous-query model where Q = [0, 1]. Let xa(q) be the probabilityof winning query q for advertiser a. Then the expected value and payment of winning query q at pricepa(q) are xa(q)va(q)dq and pa(q)dq.10, 11 Intuitively, this continuous-query model is a first-orderapproximation for instances where the size of each query relative to the whole set is small.The auctioneer sells each query q using a query-level auction which induces the allocation andpayments (xa(q), pa(q))a∈A as a function of the bids (ba)a∈A. In this paper, we focus on the FirstPrice Auction (FPA), Second Price Auction (SPA) and more generally any Truthful Auction (seeSection 5.2 for details).Auto-bidder agent:Advertisers do not participate directly in the auctions, rather they report high-level goal constraintsto an auto-bidder agent who bids on their behalf in each of the queries. Thus, Advertiser a reports abudget constraint Ba or a target cost-per-acquisition constraint (tCPA) Ta to the auto-bidder. Then,the auto-bidder taking as fixed other advertiser’s bid, submits bids ba(q) to induce xa(q), pa(q) thatsolvesmax� 10xa(q)va(q)dq(1)s.t.� 10pa(q)dq ≤ Ba + Ta� 10xa(q)va(q)dq.(2)The optimal bidding policy does not have a simple characterization for a general auction. However,when the auction is truthful (like SPA) the optimal bid take a simple form in the continuous model.(Aggarwal et al., 2019).Remark 3.1 (Uniform Bidding). If the per-query auction is truthful, then uniform bidding is theoptimal policy for the autobidder. Thus, ba(q) = µ · va(q) for some µ > 0. We formally prove this inClaim 5.4.AdvertisersFollowing the current paradigm in autobidding, we consider that advertisers are value-maximizersand can be two of types: a budget-advertiser or tCPA-advertiser. Payoffs for these advertisers are asfollows.• For a budget-advertiser with budget Ba, the payoff isua =�� 10 xa(q)va(q)dqif� 10 pa(q)dq ≤ Ba−∞if not.10All functions va, xa, pa are integrable with respect to the Lebesgue measure dq.11The set Q = [0, 1] is chosen to simplify the exposition. Our results apply to a general metric measurable space(Q, A, λ) with atomless measure λ.7
• For a tCPA-advertiser with target Ta, the payoff isua =�� 10 xa(q)va(q)dqif� 10 pa(q)dq ≤ Ta ·� 10 xa(q)va(q)dq−∞if not.Game, Equilibrium and Auto-bidding Incentive Compatibility (AIC)The timing of the game is as follows. First, each advertiser depending on their type submits abudget or target constraint to an auto-bidder agent. Then, each auto-bidder solves Problem 1 forthe respective advertiser. Finally, the per-query auctions run and allocations and payments accrue.We consider a complete information setting and use subgame perfect equilibrium (SPE) assolution concept. Let Va(B′a; Ba) the expected payoff in the subgame for a budget-advertiser withbudget Ba that reports B′a to the auto-bidder (likewise we define Va(T ′a; Ta) for the tCPA-advertiser).Definition 3.2 (Auto-bidding Incentive Compatibility (AIC)). An auction rule is Auto-biddingIncentive Compatible (AIC) if for every SPE we have that Va(Ba; Ba) ≥ Va(B′a; Ba) and Va(Ta; Ta) ≥Va(T ′a; Ta) for every Ba, B′a, Ta, T ′a.Similar to classic notion of incentive compatibility, an auction rule satisfying AIC makes theadvertisers’ decision simpler: they simply need to report their target to the auto-bidder. However,notice that the auto-bidder plays a subgame after advertiser’s reports. Thus, when Advertiser adeviates and submit a different constraint, the subgame outcome may starkly change not only onthe bids of Advertiser a but also other advertisers bid may change as well.4First Price AuctionsIn this section, we demonstrate that the first price auction is not auto-bidding incentive compatible.Theorem 4.1. Suppose that there are at least two budget-advertisers or two tCPA-advertisers, thenFPA is not AIC.Later in Section 4.2, we show a complementary result by providing sufficient conditions onadvertisers’ value functions to make FPA be AIC for the case of two advertisers. We show that thissufficient condition holds in many natural settings, suggesting that in practice FPA tends to be AIC.Then in Section 4.3, we turn our attention to FPA where autobidders are restricted to useuniform bidding across the queries. In this case, we extend to our continuous-query model the resultof Conitzer et al. (2022a) and show the following result.Theorem 4.2. FPA restricted to uniform bidding is AIC.4.1Proof of Theorem 4.1We divide the proof of Theorem 4.1 in three main steps. Step 1 characterizes the best responsebidding profile for an autobidder in the subgame. As part of our analysis, we derive a close connectionbetween first and second price auctions in the continuous-query model that simplifies the task offinding the optimal bidding for each query to finding a single multiplying variable for each advertiser.In Step 2, we leverage the tractability of our continuous-query model and pin-down the subgamebidding equilibrium when there are either two budget-advertisers or two tCPA-advertisers in the8
game (Lemma 4.4). We derive an equation that characterizes the ratio of the multipliers of eachadvertiser as a function of the constraints submitted by the advertisers. This ratio defines the set ofqueries that each advertiser wins, and as we will see the value accrued by each advertiser is monotonein this ratio. So, to find a non-AIC example, one has to find scenarios where the equilibrium ratio isnot a monotone function of the input constraints which leads to the next step.To conclude, we show in Step 3 an instance where the implicit solution for the ratio is nonmono-tonic, demonstrating that auto-bidding in first-price auctions is not AIC. As part of our proof, weinterestingly show that AIC is harder to satisfy when advertisers face budget constraints rather thantCPA constraints (see Corollary 4.6).Step 1: Optimal Best ResponseThe following claim shows that, contrary to the discrete-query model, the best response for theautobidder in a first price auction can be characterized as function of a single multiplier.Claim 4.3. Taking other auto-bidders as fixed, there exists a multiplier µa ≥ 0 such that the followingbidding strategy is optimal:ba(q) =�maxa′̸=a(ba′(q))µava(q) ≥ maxa′̸=a(ba′(q))0µava(q) ̸= maxa′(ba′(q)).The result holds whether the advertiser is budget-constrained or tCPA-constrained12.Proof. We show that in a first-price auction, the optimal bidding strategy is to bid on queries witha value-to-price ratio above a certain threshold. To prove this, we assume that the bidding profile ofall advertisers is given. Since the auction is first-price, advertiser a can win each query q by fixingsmall enough ϵ > 0 and paying maxa′̸=a(ba′(q)) + ϵ. So, let pa(q) = maxa′̸=a(ba′(q)), be the price ofquery q. Since we have assumed that the value functions of all advertisers are integrable (i.e., thereare no measure zero sets of queries with a high value), in the optimal strategy pa is also integrablesince it is suboptimal for any advertiser to bid positive (and hence have a positive cost) on a measurezero set of queries.First, consider a budget-constrained advertiser. The main idea is that since the prices areintegrable, the advertiser’s problem is similar to a continuous knapsack problem. In a continuousknapsack problem, it is well known that the optimal strategy is to choose queries with the highestvalue-to-cost ratio Goodrich and Tamassia (2001). Therefore, there must exist a threshold, denotedas µ, such that the optimal strategy is to bid on queries with a value-to-price ratio of at least µ. Soif we let µa = 1µ, then advertiser a bids on any query with µava(q) ≥ pa(q).We prove it formally by contradiction. Assume to the contrary, that there exist non-zero measuresets X, Y ⊂ Q such that for all x ∈ X and y ∈ Y , the fractional value of x is less than the fractionalvalue of y, i.e.,va(x)pa(qx) < va(y)pa(y), and in the optimal solution advertiser a gets all the queries in X andno query in Y . However, we show that by swapping queries in X with queries in Y with the sameprice, the advertiser can still satisfy its budget constraint while increasing its value.To prove this, fix 0 < α < min(�X pa(q)dq,�Y pa(q)dq). Since the Lebesgue measure is atomless,there exists subsets X′ ⊆ X and Y ′ ⊆ Y such that α =�X′ pa(q)dq =�Y ′ pa(q)dq. Since the value12In FPA ties are broken in a way that is consistent with the equilibrium. This is similar to the pacing equilibriumnotion where the tie-breaking rule is endogenous to the equilibrium Conitzer et al. (2022a).9
per cost of queries in Y is higher than queries in X, by swapping queries of X′ with Y ′, the valueof the new sets increases, while the cost does not change. Therefore, the initial solution cannot beoptimal.A similar argument holds for tCPA-constrained advertisers. Swapping queries in X′ with Y ′ doesnot change the cost and increases the upper bound of the tCPA constraint, resulting in a feasiblesolution with a higher value. Therefore, the optimal bidding strategy for tCPA constraint is alsoba(q) as defined in the statement of the claim.Step 2: Equilibrium CharacterizationThe previous step showed that the optimal bidding strategy is to bid on queries with a value-to-priceratio above a certain threshold. Thus, we need to track one variable per auto-bidder to find thesubgame equilibrium.In what follows, we focus on the case of finding the variables when there are only two advertisers inthe game. This characterization of equilibrium gives an implicit equation for deriving the equilibriumbidding strategy, which makes the problem tractable in our continuous-query model.13.From Claim 4.3 we observe that the ratio of bidding multipliers is key to determine the set ofqueries that each advertiser wins. To map the space of queries to the bidding space, we introducethe function h(q) = v1(q)v2(q). Hence, for high values of h, the probability that advertiser 1 wins thequery increases. Also, notice that without loss of generality, we can reorder the queries on [0, 1] sothat h is non-decreasing.In what follows, we further assume that h is increasing on [0, 1]. This implies that h is invertibleand also differentiable almost everywhere on [0, 1]. With these assumptions in place, we can nowstate the following lemma to connect the subgame equilibrium to the ratio of advertisers’ values.Lemma 4.4. [Subgame Equilibrium in FPA] Given two budget-constrained auto-bidders with budgetB1 and B2, let µ1 and µ2 be as defined in Claim 4.3 for auto-bidding with FPA. Also assume thath(q) = v1(q)v2(q) as defined above is strictly monotone. Then µ1 =B2E[z1(z≥r)] and µ2 = µ1r, where r isthe solution of the following implicit function,rE[1[z ≥ r)]E[z1(z ≤ r)] = B1B2.(3)Here, E[·] is defined as E[P(z)] =� ∞0 P(z)f(z)dz, where f(z) = v2(h−1(z))h′(h−1(z)) wherever h′ is defined,and it is zero otherwise.Also, for two tCPA auto-bidders with targets T1 and T2, we have µ1 = T1E[1(z≤r)]E[1(z≥r)]and µ2 = µ1r,where r is the answer of the following implicit function,rE[1(z ≥ r)]E[z1(z ≥ r)]E[1(z ≤ r)]E[z1(z ≤ r)] = T1T2.(4)Remark 4.5. The function f intuitively represents the expected value of the queries that advertiser2 can win as well as the density of the queries that advertiser 1 can win. Also, the variable r showsthe cut-off on how the queries are divided between the two advertisers. In the proof, we will see thatthe advertisers’ value at equilibrium is computed with respect to f: Advertiser 1’s overall value is� ∞rzf(z)dz and advertiser 2’s overall value is� r0 f(z)dz.13Notice that for the discrete-query model finding equilibrium is PPAD hard Filos-Ratsikas et al. (2021)10
Proof. First, consider budget constraint auto-bidders. Given Claim 4.3, in equilibrium price of queryq is min(µ1v1(q), µ2v2(q)). Therefore, the budget constraints become:B1 =� 10µ2v2(q)1(µ2v2(q) ≤ µ1v1(q))dq,B2 =� 10µ1v1(q)1(µ2v2(q) ≥ µ1v1(q))dq.With a change of variable from q to z = h(q) and letting r = µ2µ1 , we have:B1 =� ∞rµ2v2(h−1(z))dh−1(z)dzdzB2 =� r0µ1v1(h−1(z))dh−1(z)dzdz.Observe that v1(h−1(z)) = zv2(h−1(z)), then if we let f(z) = v2(h−1)(h−1)′ =v2(h−1(z))h′(h−1(z)), theconstraints becomeB1 = µ2� ∞rf(z)dz,(5)B2 = µ1� r0zf(z)dz.(6)We obtain Equation (3) by diving both sides of Equation (5) by the respective both sides ofEquation (6).Now, consider two tCPA constrained auto-bidders. Similar to the budget-constrained auto-bidders,we can writeT1� 10v1(q)1(µ2v2(q) ≤ µ1v1(q))dq =� 10µ2v2(q)1(µ2v2(q) ≤ µ1v1(q))dqT2� 10v2(q)1(µ2v2(q) ≥ µ1v1(q))dq =� 10µ1v1(q)1(µ2v2(q) ≥ µ1v1(q))dqThe same way of changing variables leads to the following:T1T2� ∞rxf(x)dx� r0 f(x)= r� ∞rf(x)dx� r0 xf(x)dx .This finishes the proof of the lemma.The previous theorem immediately implies that any example of valuation functions that isnon-AIC for budget-advertisers, it will be non-AIC for tCPA-advertisers as well.Corollary 4.6. If auto-bidding with the first-price and two budget-advertisers is not AIC, thenauto-bidding with the same set of queries and two tCPA-advertisers is also not AIC.11
Proof. Recall that advertiser 1 wins all queries with h(q) ≥ r. So, the value accrued by advertiser1 is decreasing in r. So, if an instance of auto-bidding with tCPA-constrained advertisers is notAIC for advertiser 1, then the corresponding function r� ∞rf(x)dx� r0 xf(x)dx� r0 f(x)� ∞rxf(x)dx (same as (4)) must beincreasing for some r′.On the other hand, recall that r� ∞rf(x)dx� r0 xf(x)dx is the ratio for budget-constrained bidders equilibriumas in (3). The additional multiplier in the equilbirum equation of tCPA constraint advertiser in(4) is� r0 f(x)dx� ∞rxf(x) which is increasing in r. So, if the auto-bidding for budget-constrained bidders isnot AIC and hence the corresponding ratio is increasing for some r′, it should be increasing for thetCPA-constrained advertisers as well, which proves the claim.Step 3: Designing a non AIC instanceThe characterization of equilibrium from Step 2 leads us to construct an instance where advertisershave the incentive to misreport their constraints. The idea behind the proof is that the value accruedby the advertiser 1 is decreasing in r ( as found in Lemma 4.4). Then to find a counter-example, itwill be enough to find an instance of valuation functions such that the equilibrium equation (3) isnon-monotone in r.Proof of Theorem 4.1. We construct an instance with two budget-constrained advertisers.ByCorollary 4.6 the same instance would work for tCPA-constrained advertisers. To prove the theorem,we will find valuation functions v1 and v2 and budgets B1 and B2 such that the value accrued byadvertiser 1 decreases when their budget increases.Define g(r) =� r0 xf(x)dxr� ∞rf(x)dx. By Lemma 4.4, one can find the equilibrium by solving the equationg(r) = B2B1 . Recall that advertiser 1 wins all queries with v1(q)v2(q) ≥ r. So, the total value of queriesaccrued by advertiser 1 is decreasing in r. Hence, to construct a non- AIC example, it is enough tofind a function f such that g is non-monotone in r.A possible such non-monotone function g isg(r) = (r − 1)3 + 3cr− 1,(7)where c is chosen such that minr≥0 g(r) = 0, i.e., c = min (r−1)3+3r≈ 1.95105. To see why g isnon-monotone, observe that g(r) is decreasing for r ≤ 1.8, because g′(r) = 2r3−3r2−2cr2is negative forr ≤ 1.8, and then increasing for r ≥ 1.81.We claim the function f defined as in,f(r) = 3c(r − 1)2 e� r0c(r−1)3+3 dx((r − 1)3 + 3)2 ,(8)would result in the function g in (7). To see why this claim is enough to finish the proof, note thatthere are many ways to choose the value functions of advertisers to derive tf as in (8). One possibleway is to define v1, v2 : [0, 1] → R as v2(q) = f(tan(q))/(tan(q)2 + 1) and v1(q) = tan(q)v2(q) (seeFig. 2).12
(a) Valuation function of two advertisers.(b) Finding the equilibrium using (3).Figure 2: An example of two advertisers such that FPA is not AIC (proof of Theorem 4.1). WhenB1B2 = 1200, there are three values for r (see the right panel) that lead to equilibrium, and one(orange) leads to non-AIC equilibrium.So it remains to prove that choosing f as in (8) would result in g as defined in (7). To derive ffrom g, first we simplify g using integration by part,g(r) =� r0 xf(x)dxr� ∞rf(x)dx= r� r0 f(x)dx −� r0� x0 f(y)dydxr� ∞rf(x)dx= r� ∞0 f(x)dx −� r0� x0 f(y)dydxr� ∞rf(x)dx− 1,Assuming that� ∞0 f(x) is finite, the above equations lead to the followingrg(r) + r =� r0� ∞x f(y)dydx� ∞rf(x)dx.(9)Therefore, by integrating the inverse of both sides,log(� r0� ∞xf(y)dydx) = C +� r01xg(x) + xdx,and by raising to the exponent� r0� ∞xf(y)dydx = Ke� r01xg(x)+x dx.for some constants C and K > 0. Then by differentiating both sides with respect to x,� ∞rf(x)dx =Krg(r) + re� r01xg(x)+x dx.Note that for any choice of K ≥ 0, dividing the last two equations will result in (9). So, without lossof generality, we can assume K = 1. By differentiating again, we can derive f as a function of g:f(r) = (g′(r)r + g(r))(rg(r) + r)2 e� r01xg(x)+x dx.13
3.0 -Vi(q)25 V2(q)20 15LD0.5 0.D0.2t00.6o.BLDq3500 rE[1[z ≥ r]]E[21(z ≤ r)]31D0 250022000150014D050D0FN461rWe need g′(r)r + g(r) ≥ 0 to ensure that f(r) ≥ 0 for all r. This holds for g as in (7). Finally, bysubstituting g as in (7), we will derive f as in (8).Remark 4.7. Note that the above proof shows that for values of r such that there exists a equilibriumwhich is not AIC, there exists always a second monotone equilibrium. This follows from the fact thatthe function g(r) tends to infinity as r → ∞, so, g must be increasing for some large enough r.Before moving on to finding conditions for incentive compatibility, we also note that the above’scharacterization implies the existence of equilibrium for auto-bidding with any pairs of advertisers.Proposition 4.8. Given auto-bidding satisfying the conditions of Lemma 4.4, the equilibrium forall pairs of budgets or all pairs of tCPA constrained advertisers always exists.Proof. Recall that the equilibirum exists if there exists an r such thatB2B1=� r0 xf(x)dxr� ∞rf(x)dxhas a solution for any value of B2B1 . Note that the right-hand side (� r0 xf(x)dxr� ∞rf(x)dx) is positive for anyr > 0, and it continuously grows to infinity as r → ∞. So, to make sure that every value ofB2/B1 is covered, we need to check whether at r = 0 the ratio becomes zero. By L’Hopital rule,limz→0zf(z)� ∞zf(x)dx−zf(z) = 0, which is as desired.For tCPA constrained advertiser, the second ratior� r0 f(x)dx� ∞rxf(x)dx always converges to 0, so theequilibrium in this case always exists.4.2Sufficient Conditions for Incentive CompatibilityIn this section we show that the lack of ACI happens for cases where advertisers’ valuations haveunusual properties.More precisely, the main result of the section is to characterize sufficientconditions on the advertiser’s valuations so that FPA is AIC when there are two advertisers in theauction.For this goal, we recall the function f(z) = v2(h−1(z))h′(h−1(z)) where h(q) = v1(q)v2(q) defined in Section 4.1.As shown in Lemma4.4, function f behaves as a value of the queries advertiser 2 gets and the densityof queries that advertiser 1 gets.Lemma 4.9. Consider that there are two advertisers and they can either both be budget-advertisersor tCPA-advertisrs. Also, suppose that auto-bidder with FPA uses the optimal bidding strategy inClaim 4.3. Then a sufficient condition for FPA to be AIC is that f has a monotone hazard rate, i.e.,f(r)� ∞rf(x)dx is non-decreasing in r.Proof. Following the proof Theorem 4.1, if g(r) =� r0� ∞xf(y)dydxr� ∞rf(x)dxis non-decreasing in r then theequilibrium is AIC. The equivalent sufficient conditions obtained by imposing the inequality g′(r) ≥ 0is that for all r ≥ 0,r� � ∞rf(x)dx�2 ≥� � r0� ∞xf(y)dydx�� � ∞rf(x)dx − rf(r)�.(10)14
If� ∞rf(x)dx ≤ rf(r) then above’s inequality obviously holds. So, we can assume that for somer > 0,� ∞rf(x)dx > rf(r). Sincef(z)� ∞zf(x)dx is non-decreasing in z, we must have that for all r′ ≤ r,f(r′)� ∞r′ f(x)dx ≤f(r)� ∞rf(x)dx ≤ 1r ≤ 1r′ . On the other hand by taking the derivative off(z)� ∞zf(x)dx, we musthave that f′(z)� ∞zf(x)dx + f(z)2 ≥ 0. By considering two cases on the sign of f′, for z ≤ r wemust have, f(z)�zf′(z) + f(z)) ≥ 0, and hence (zf(z))′ ≥ 0 for all z ≤ r. Therefore, zf(z) isnon-decreasing for z ≤ r.On the other hand,� r0� ∞xf(y)dydx =� r0� rxf(y)dydx +� r0� ∞rf(y)dydx= r� r0f(x)dx −� r0� x0f(y)dydx + r� ∞rf(x)dx=� r0xf(x)dx + r� ∞rf(x)dx,where the second equation is by integration by part. Then by applying monotonicity of z(f)z forz ≤ r we have� r0� ∞x f(y)dydx ≤ r2f(r) + r� ∞rf(x)dx. So, to prove (10) it is enough to show that�� ∞rf(x)dx�2≥�rf(r) +� ∞rf(x)dx� �� ∞rf(x)dx − rf(r)�,which holds, since the right-hand side is equal to� � ∞rf(x)dx�2 − (rf(r))2 strictly less than theleft-hand side.While the condition on f has intuitive properties when seen as a density, it has the unappealingproperties to be too abstract in terms of the conditions on the advertisers’ valuation. The followingresult, provides sufficient conditions on value functions v1 and v2 that makes f be monotone hazardrate, and hence, FPA to be AIC.Theorem 4.10. Consider two advertisers that are either budget-advertisers or tCPA-advertisers.Assume that h(q) = v1(q)v2(q) is increasing concave function and that v2 is non-decreasing. Then, theequilibrium in FPA auto-bidding with bidding strategy as in Claim 4.3 is AIC.Proof. Note that when f is non-decreasing, it also has a monotone hazard rate. Now, when his concave,1h′ is a non-decreasing function, and since v2 is also non-decreasing, then f is alsonon-decreasing.4.3FPA with uniform biddingThe previous section shows that when auto-bidders have full flexibility on the bidding strategy,FPA is not AIC. However, non-uniform bid is not simple to implement and auto-bidders may beconstrained to use simpler uniform bidding policies (aka pacing bidding). In this context, the mainresult of the section is Theorem 4.2 that shows that when restricted to uniform bidding policies FPAis AIC. Note that here, we are assuming a simple model where advertisers do not split campaigns.So, FPA with uniform bidding is AIC but it could bring up other incentives for advertisers when itis implemented.15
Definition 4.11 (Uniform bidding equilibrium). A uniform bidding equilibrium for the auto-bidderssubgame corresponds to bid multipliers µ1, . . . , µN such that every auto-bidder a chooses the uniformbidding policy µa that maximizes Problem (1) when restricted to uniform bidding policies with therequirement that if advertiser a’s constraints of type 2 are not tight then µa gets its maximum possiblevalue.14The proof of Theorem 4.2 is based on the main results of Conitzer et al. (2022a). The authorsproved that the uniform-bidding equilibrium is unique and in equilibrium the multiplier of eachadvertiser is the maximum multiplier over all feasible uniform bidding strategies. Their result isfor budget-constrained advertisers, and we extend it to include tCPA constrained advertisers. Theproof is deferred to Appendix B.Lemma 4.12 (Extension of Theorem 1 in Conitzer et al. (2022a)). Given an instance of Auto-bidding with general constraints as in (2), there is a unique uniform bidding equilibrium, and the bidmultipliers of all advertisers is maximal among all feasible uniform bidding profiles.Now, we are ready to prove Theorem 4.2.Proof of Theorem 4.2. Assume that advertiser 1 increases their budget or their target CPA. Then theoriginal uniform bidding is still feasible for all advertisers. Further, by Lemma 4.12 the equilibriumpacing of all advertisers is maximal among all feasible pacings. So, the pacing of all advertiserswill either increase or remain the same. But the constraints of all advertisers except 1 are eitherbinding or their multiplier has attained its maximum value by the definition of pacing equilibrium.Therefore, the set of queries they end up with should be a subset of their original ones since theprice of all queries will either increase or remain the same. So, it is only advertiser 1 that can winmore queries.Remark 4.13. Conitzer et al. (2022a) show monotonicity properties of budgets in FPA with uniformbidding equilibrium for the revenue and welfare. Instead, in our work we focus on monotonicity foreach advertiser.5Truthful AuctionsThis section studies auto-bidding incentive compatibility for the case where the per-query auction isa truthful auction.A truthful auction is an auction where the optimal bidding strategy for a profit-maximizingagent is to bid its value. An important example of a truthful auction is Second Price Auction. As weshowed in the three-queries example of the introduction, SPA is not AIC. In this section, we showthat the previous example generalizes, in our continuous-query model, to any (randomized) truthfulauctions so long as the auction is scalar invariant and symmetric (see Assumption 5.1 below fordetails). As part of our proof-technique, we obtain an auction equivalence result which is interestingon its own: in the continuous query-model SPA and FPA have the same outcome.15For the remaining of the section we assume all truthful auction satisfy the following property.14When valuations are strictly positive for all queries q ∈ [0, 1], we can easily show that bid multipliers have to bebounded in equilibrium. When this is not the case, we set a cap sufficiently high to avoid bid multipliers going toinfinity.15It is well-known that in the discrete-query model, FPA and SPA are not auction equivalent in the presence ofauto-bidders.16
Assumption 5.1. Let (xa(b))a∈A be the allocation rule in a truthful auction given bids b = (ba)a∈A.We assume that the allocation rule satisfies the following properties.1. The auction always allocates: �a∈A xa(b) = 12. Scalar invariance: For any constant c > 0 and any advertiser a ∈ A, xa(b) = xa(cb).3. Symmetry: For any pair of advertisers a, a′ ∈ A and bids b, b′, b−{a,a′} = (b)a∈A\{a,a′} we havethatxa(ba = b, ba′ = b′, b−{a,a′}) = xa′(ba = b′, ba′ = b, b−{a,a′}).Remark 5.2. Observe that SPA satisfies Assumption 5.1.From the seminal result of Myerson (1981) we obtain a tractable characterization of truthfulauctions which we use in our proof.Lemma 5.3 (Truthful auctions (Myerson, 1981)). Let (xa(b), pa(b))a∈A the allocation and pricingrule for an auction given bids b = (ba)a∈A. The auction rule is truthful if and only if1. Allocation rule is non-decreasing on the bid: For each bidder a ∈ A and any b′a ≥ ba, we havethatxa(b′a, b−a) ≥ xa(ba, b−a).2. Pricing follows Myerson’s formulae:pa(b) = ba · xa(b) −� ba0xa(z, b−a)dz.A second appealing property of truthful actions is that the optimal bidding strategy for auto-bidders is simpler: in the discrete-query model uniform bidding strategy is almost optimal and candiffer from optimal by at most the value of two queries (Aggarwal et al., 2019). We revisit this resultin our continuous-query model and show that uniform bidding policy is optimal for truthful auctions.Claim 5.4. In the continuous-query model, if the per-quuery auction is truthful then using a uniformbidding is an optimal strategy for each auto-bidder.Proof. We use Theorem 1 Aggarwal et al. (2019). Pick some small δ > 0 and divide the interval[0, 1] into subintervals of length δ. Let each subinterval I be a discrete query with value functionsvj(I) =�I vj(q)dq. Then Theorem 1 Aggarwal et al. (2019) implies that uniform bidding differs fromoptimal by at most two queries. So, the difference from optimal is bounded by 2 maxj max|I|≤δ vj(I).Now, since the valuation functions are atomless (i.e., the value of a query is dq), by letting δ to 0,the error of uniform bidding in the continuous case also goes to zero.5.1SPA in the Continuous-Query ModelWe generalize the discrete example of second price auction in Theorem 2.1 to the continuous setof queries model showing that SPA is not AIC. The key step consists on showing that for thecontinuous-query model there is an auction equivalence result between first and second price auction.17
Theorem 5.5. [Auction Equivalence Result] Suppose that auto-bidder uses a uniform bid strategyfor SPA, and similarly, uses the simple bidding strategy defined in Claim 4.3 for FPA. Then, in anysubgame equilibrium the outcome of the auctions (allocations and pricing) on SPA is the same as inFPA.This result immediately implies that all the results for FPA in Section 4 hold for SPA as well.Theorem 5.6. Suppose that there are at least two budget-advertisers or two tCPA-advertisers, theneven for the continuous-query model SPA is not AIC.Similarly to FPA case, we can characterize the equilibrium for the two-advertiser case and derivesufficient conditions on advertisers’ valuation functions so that SPA is AIC.Theorem 5.7. Given two advertisers, let µ1 and µ2 be the bidding multipliers in equilibrium for thesubgame of the auto-bidders. Also assume that h(q) = v1(q)v2(q) is increasing. Then1. If the advertisers are budget-constrained with budget B1 and B2, then µ1 =B2E[z1(z≥r)] andµ2 = µ1r, where r is the answer of the following implicit function,rE[1[z ≥ r)]E[z1(z ≤ r)] = B1B2.Here, E[.] is defined as E[P(z)] =� ∞0 P(z)f(z)dz, where f(z) = v2(h−1(z))h′(h−1(z)) wherever h′ isdefined, and it is zero otherwise.2. If the advertisers are tCPA-constrained with targets T1 and T2, we have µ1 = T1E[1(z≤r)]E[1(z≥r)]andµ2 = µ1r, where r is the answer of the following implicit function,rE[1(z ≥ r)]E[z1(z ≥ r)]E[1(z ≤ r)]E[z1(z ≤ r)] = T1T2.3. If further, v2 is non-decreasing in q, and h is concave, and advertiers are either both budget-constrained two tCPA-constrained, then SPA is AIC.We now demonstrate the auction equivalence between FPA and SPA.Proof of Theorem 5.5. Note that the optimal strategy for a second-price auction is uniform biddingwith respect to the true value of the query by Claim 5.4. Also, Claim 4.3 implies that the cost obtainedby each advertiser in first-price auction in the continuous model is also depends on pacing multipliersof the other advertiser. This claim immediately, suggests the equivalent between the optimal. biddingstrategies of first and second price auctions. So, the optimal strategy for both auctions will be thesame and therefore the resulting allocation and pricing will also be the same. Hence, it follows thatthe same allocation and pricing will be a pure equilibrium under both auctions.5.2Truthful Auctions Beyond Second-PriceWe now present the main result of the section. We show that a general truthful auction (withpossibly random allocation) is not AIC.18
Theorem 5.8. Consider a truthful auction (x, p) satisfying Assumption 5.1. If there are at leasttwo budget-advertisers or two tCPA-advertisers, then the truthful auction is not AIC.The remainder of the section gives an overview of the proof of this theorem. Similar to theFPA and SPA case, we start by characterizing the equilibrium in the continuous case when thereare two advertisers in the game. The proof relies on the observation that for auctions satisfyingAssumption 5.1, the allocation probability is a function of the bids’ ratios. So, again, similar to FPAand SPA finding the equilibrium reduces to finding the ratio of bidding multipliers. Then to finishthe proof of Theorem 5.8 instead of providing an explicit example where auto-bidding is non-AIC, weshowed that the conditions needed for an auction’s allocation probability to satisfy are impossible.The following theorem finds an implicit equation for the best response. We omit the proofs ofthe intermediaries steps and deferred them to the Appendix C.Theorem 5.9. Consider a truthful auction (x, p) satisfying Assumption 5.1 and assume that thereare either two budget-advertisers or two tCPA-advertisers. Let µ1 and µ2 be the bidding multipliersused by the auto-bidders in the subgame equilibrium. Further, assume that h(q) = v1(q)v2(q) is increasing.Then1. If the advertisers are budget-constrained with budget B1 and B2, then µ1 =B1E[p1(rz,1)] andµ2 = rµ1, where r is the answer of the following implicit function,E[rp1( zr, 1)]E[zp1( rz, 1)] = B1B2.Here, E[.] is defined as E[P(z)] =� ∞0 P(z)f(z)dz, where f(z) = v2(h−1(z))h′(h−1(z)) wherever h′ isdefined, and it is zero otherwise.2. If the advertisers are tCPA-constrained with targets T1 and T2, we have µ1 = T1E[zg(z/r)]E[rp1(z/r)] andµ2 = µ1r, where r is the answer of the following implicit function,E[x1( rz, 1)]E[zx1( zr, 1)]E[rp1( zr, 1)]E[zp1( rz, 1)] = T1T2.Because allocation probability x1 is a non-decreasing function, we can derive a similar result tothe FPA case and show if an instance is not AIC for budget-advertisers then it is also not AIC fortCPA-advertisers.Proposition 5.10. If for the two budget-constrained advertisers case the truthful auction is notAIC, then for the tCPA-constrained advertisers case the same auction is also not AIC.Using the previous results we are in position to tackle the main theorem.Proof of Theorem 5.8. We prove Theorem 5.8 for budget constrained advertisers, since Proposi-tion 5.10 would derive it for tCPA constraint advertisers. We use implicit function theorem to findconditions on p1 and f to imply monotonicity in r. LetH(x, r) =� ∞0 rf(z)p1(z/r, 1)dz� ∞0 f(z)zp1(r/z, 1)dz − x.19
Then when advertiser 1 increases budget, the corresponding variable x increases. So, if we want tocheck whether r is a non-decreasing function of x, we need drdx to be non-negative. By the implicitfunction theorem,drdx = −∂H∂x∂H∂r=1∂H∂r.So, assume to the contrary that r i always non-decreasing in x, then ∂H(x,r∂r≥ 0.Definep(x) = p1(x, 1). Then we have the followingE[ ddrrp(z/r)]E[zp(r/z)] ≥ E[rp(z/r)]E[ ddr�zp(r/z)�].ThenddrE[rp(z/r)]E[rp(z/r)]≥ddrE[zp(z/r)]E[zp(z/r)]By integrating both parts, we have that for any choice of f,rE[p(z/r)] ≥ E[zp(r/z)].When the above inequality hold for any choice of v1 and v2, we claim that the following must holdalmost everywherep(b) ≥ bp(1/b).(11)To see this, assume to the contrary that there exist a measurable set B such that (11) does not holdfor it. Let qv2(q) = v1(q), therefore, f(z) = v2(z) can be any measurable function. So, we can definef to have zero value everywhere except X, and have weight 1 over X to get a contradiction.By substituting variable with y = 1/b in (11), p(1/b)db ≥ p(b)/bdb. Therefore, almost everywherep(b) = bp(1/b). By differentiating we have p′(b) = p(1/b) − p′(1/x)/x. On the other hand, as we willsee in Appendix C for any truthful auction satisfying Assumption 5.1, p′(b) = p′(1/b). Therefore,p(b) = p′(b)(b + 1). Solving it for p, we get that the only possible AIC pricing must be of the formp(b) = α(b + 1) for some α > 0.Next, we will show there is no proper allocation probability satisfying the Assumption 5.1 thatwould result in a pricing function p. It is not hard to see that by the Myerson’s pricing formulae,dx1(b,1)db= p′(b)b . Therefore, we must have x′1(b, 1) = α/b, so x1(b, 1) = c log(b) + d for some constantsc > 0 and d. But x1 cannot be a valid allocation rule, since it will take negative values for smallenough b.ReferencesGagan Aggarwal, Ashwinkumar Badanidiyuru Varadaraja, and Aranyak Mehta. 2019. Autobiddingwith Constraints. In Web and Internet Economics 2019.Amine Allouah and Omar Besbes. 2020. Prior-independent optimal auctions. Management Science66, 10 (2020), 4417–4432.20
Santiago Balseiro, Yuan Deng, Jieming Mao, Vahab Mirrokni, and Song Zuo. 2021a.RobustAuction Design in the Auto-bidding World. In Advances in Neural Information Processing Systems,M. Ranzato, A. Beygelzimer, Y. Dauphin, P.S. Liang, and J. Wortman Vaughan (Eds.), Vol. 34.Curran Associates, Inc., 17777–17788.https://proceedings.neurips.cc/paper/2021/file/948f847055c6bf156997ce9fb59919be-Paper.pdfSantiago Balseiro, Yuan Deng, Jieming Mao, Vahab Mirrokni, and Song Zuo. 2021b. Robust AuctionDesign in the Auto-bidding World. Advances in Neural Information Processing Systems 34 (2021),17777–17788.Santiago R. Balseiro, Yuan Deng, Jieming Mao, Vahab Mirrokni, and Song Zuo. 2022. OptimalMechanisms for Value Maximizers with Budget Constraints via Target Clipping. In Proceedingsof the 23rd ACM Conference on Economics and Computation (Boulder, CO, USA) (EC ’22).Association for Computing Machinery, New York, NY, USA, 475.https://doi.org/10.1145/3490486.3538333Santiago R Balseiro, Yuan Deng, Jieming Mao, Vahab S Mirrokni, and Song Zuo. 2021c. Thelandscape of auto-bidding auctions: Value versus utility maximization. In Proceedings of the 22ndACM Conference on Economics and Computation. 132–133.Santiago R Balseiro and Yonatan Gur. 2019. Learning in repeated auctions with budgets: Regretminimization and equilibrium. Management Science 65, 9 (2019), 3952–3968.Xi Chen, Christian Kroer, and Rachitesh Kumar. 2021. The Complexity of Pacing for Second-PriceAuctions. In Proceedings of the 22nd ACM Conference on Economics and Computation (Budapest,Hungary) (EC ’21). Association for Computing Machinery, New York, NY, USA, 318.Vincent Conitzer, Christian Kroer, Debmalya Panigrahi, Okke Schrijvers, Nicolas E Stier-Moses,Eric Sodomka, and Christopher A Wilkens. 2022a. Pacing Equilibrium in First Price AuctionMarkets. Management Science (2022).Vincent Conitzer, Christian Kroer, Eric Sodomka, and Nicolas E Stier-Moses. 2022b. Multiplicativepacing equilibria in auction markets. Operations Research 70, 2 (2022), 963–989.Yuan Deng, Jieming Mao, Vahab Mirrokni, and Song Zuo. 2021a. Towards Efficient Auctionsin an Auto-Bidding World. In Proceedings of the Web Conference 2021 (Ljubljana, Slovenia)(WWW ’21). Association for Computing Machinery, New York, NY, USA, 3965–3973.https://doi.org/10.1145/3442381.3450052Yuan Deng, Jieming Mao, Vahab Mirrokni, and Song Zuo. 2021b. Towards efficient auctions in anauto-bidding world. In Proceedings of the Web Conference 2021. 3965–3973.Aris Filos-Ratsikas, Yiannis Giannakopoulos, Alexandros Hollender, Philip Lazos, and Diogo Poças.2021. On the complexity of equilibrium computation in first-price auctions. In Proceedings of the22nd ACM Conference on Economics and Computation. 454–476.Jason Gaitonde, Yingkai Li, Bar Light, Brendan Lucier, and Aleksandrs Slivkins. 2022. BudgetPacing in Repeated Auctions: Regret and Efficiency without Convergence.arXiv preprintarXiv:2205.08674 (2022).21
Negin Golrezaei, Patrick Jaillet, Jason Cheuk Nam Liang, and Vahab Mirrokni. 2021a. Bidding andpricing in budget and ROI constrained markets. arXiv preprint arXiv:2107.07725 (2021).Negin Golrezaei, Ilan Lobel, and Renato Paes Leme. 2021b. Auction Design for ROI-ConstrainedBuyers. In Proceedings of the Web Conference 2021 (WWW ’21). 3941–3952.Michael T Goodrich and Roberto Tamassia. 2001. Algorithm design: foundations, analysis, andinternet examples. The fractional knapsack problem. John Wiley & Sons.Juncheng Li and Pingzhong Tang. 2022. Auto-bidding Equilibrium in ROI-Constrained OnlineAdvertising Markets. arXiv preprint arXiv:2210.06107 (2022).Christopher Liaw, Aranyak Mehta, and Andres Perlroth. 2022. Efficiency of non-truthful auctionsunder auto-bidding.https://doi.org/10.48550/ARXIV.2207.03630Aranyak Mehta. 2022. Auction Design in an Auto-Bidding Setting: Randomization ImprovesEfficiency Beyond VCG. In Proceedings of the ACM Web Conference 2022 (Virtual Event, Lyon,France) (WWW ’22). Association for Computing Machinery, New York, NY, USA, 173–181.https://doi.org/10.1145/3485447.3512062Aranyak Mehta and Andres Perlroth. 2023. Auctions without commitment in the auto-bidding world.https://doi.org/10.48550/ARXIV.2301.07312Roger B. Myerson. 1981. Optimal Auction Design. Mathematics of Operations Research 6, 1 (1981),58–73. https://doi.org/10.1287/moor.6.1.58 arXiv:https://doi.org/10.1287/moor.6.1.58ASecond-price tCPA constrainedProof. We continue with the proof of Theorem 2.1. We first prove the uniqueness of equilibrium inthe case of B′1 = 1. irst, note that there’s no equilibrium such that advertiser 1 wins all the queries.To see this, note that the multiplier of advertiser 1 is at most 1. Hence, the price of q3 for advertiser2 is within their budget, and they have the incentive to increase their multiplier to buy q3. Similarly,one can see that in any equilibrium, advertiser 1 gets at least q1, since its highest price is withintheir budget.Now, assume some equilibrium exists with bidding prices ˜µ1 and ˜µ2 such that advertiser 1 getsonly q1. Then˜µ1(v1(1) + v1(2) + v1(3))B2> 1 ≥ ˜µ2v2(1)B1,where the first inequality is because advertiser 2’s multiplier is the best response, and the second iscoming from the budget constraint for advertiser 1. Therefore,B1B2v1(1) + v1(2) + v1(3)v2(1)≥ ˜µ2˜µ1,But v1(2)v2(2) ≥ B1B2v1(1)+v1(2)+v1(3)v2(1)= 94, and thus v1(2)v2(2) > ˜µ2˜µ1 . This is in contradiction with allocationinequalities since advertiser 2 wins q2. Therefore, we proved with B1 = 1 and B2 = 4 the equilibriumis unique such that advertiser 1 wins q1 and q2.22
Now it remains to show a non AIC example for tCPA advertisers. Again consider two advertisers,and 3 queries, with the same values as in Table 2. Here, let the tCPA constraint of advertiser 1 beT1 = 0.4 and for advertiser 2 be T2 = 0.7. Then again we show that there exists a unique equilibriumin which advertiser 1 gets queries 1 and 2.First, to prove the existence, let µ1 = 1.6 and µ2 = 1.2. Then we show this is an equilibriumsince the three following conditoins hold:1. Allocation: advertiser 1 wins q1 and q2 since it has a higher bid on themv1(1)v2(1) ≥ v1(2)v2(2) ≥ µ2µ1= 1.21.5 ≥ v1(3)v2(3).2. tCPA constraints are satisfied:T2v2(3) ≥ µ1v1(3),andT1(v1(1) + v1(2)) ≥ µ2(v2(1) + v2(2)).3. Best response: non of the advertiser can win more queries if they increase their multiplier:T2(v2(3) + v2(2)) < µ1(v1(3) + v1(2)),andT1(v1(1) + v1(2) + v1(3)) < µ2(v2(1) + v2(2) + v2(3)).Now, similar to the proof of the budget-constrained advertisers we show the equilibrium is unique.Note that there’s no equilibrium such that advertiser 1, gets all queries since the cost of all queriesfor advertiser 1 is at least v2(1) + v2(2) + v2(3) = 12.3 which is larger than T1(v1(1) + v1(2) + v1(3)).Similarly, advertiser 2 cannot get all queries since the tCPA constraint would not hold v1(1) +v1(2) +v1(3) > T2(v2(1) + v2(2) + v2(3)). So, to prove the uniqueness of equilibrium, it remains to show thatthere’s no equilibrium that advertiser 1 only gets query 1. To contradiction, assume such equilibriumexists with the corresponding multipliers ˜µ1 and ˜µ2. Then we must have˜µ1(v1(1) + v1(2) + v1(3))T2(v2(1) + v2(2) + v2(3)) > 1 ≥ ˜µ2v2(1)T1v1(1),where the first inequality is because advertiser 2’s multiplier is the best response, and the secondinequality is coming from the budget constraint for advertiser 1. Therefore,T1T2v1(1) + v1(2) + v1(3)v2(1) + v2(2) + v2(3)v1(1)v2(1) ≥ ˜µ2˜µ1,But v1(2)v2(2) ≥ T1T2v1(1)+v1(2)+v1(3)v2(1)+v2(2)+v2(3)v1(1)v2(1), and thus v1(2)v2(2) > ˜µ2˜µ1 . This is in contradiction with allocationinequalities since advertiser 2 wins q2. Therefore, we proved with T1 = 0.4 and T2 = 0.7, theequilibrium is unique such that advertiser 1 wins q1 and q2.Now, we show that if advertiser 1 increases their tCPA constraint to T ′1 = 0.6, then there existsan equilibrium such that advertiser 1 only wins q1. Let µ′1 = 1 and µ2 = 2.38. Then1. Allocation: advertiser 1 wins q1v1(1)v2(1) ≥ µ′2µ′1= 2.381.≥ v1(2)v2(2) ≥ v1(3)v2(3).23
2. tCPA constraints are satisfied:T2(v2(3) + v2(2)) ≥ µ′1(v1(3) + v1(2)),andT ′1v1(1) ≥ µ′2v2(1).3. Best response: non of the advertiser can win more queries if they increase their multiplier:T2(v2(1) + v2(2) + v2(3)) < µ′1(v1(1) + v1(2) + v1(3)),andT ′1(v1(1) + v1(2)) < µ′2(v2(1) + v2(2)).BFirst-price pacing equilibriumProof of Lemma 4.12. We follow the same steps of the proof as in Conitzer et al. (2022a) for tCPAconstrained advertisers. Consider two sets of feasible bidding multipliers µ and µ′. We will showthat µ∗ = max(µ, µ′) is also feasible, where max is the component wise maximum of the biddingprofiles for n advertisers.Each query q is allocated to the bidder with the highest pacing bid. We need to check thatconstraint (2) is satisfied. Fix advertiser a. Its multiplier in µ∗ must be also maximum in one of µ,or µ′. without loss assume µ∗a = µa. Then the set of queries that a wins with bidding profile µ∗ (X∗a)must be a subset of queries it wins n µ (Xa), since all other advertisers’ bids have either remainedthe same or increased. On the other hand, the cost of queries a wins stays the same, since it’s a firstprice auction. Since constraint (2) is feasible for bidding multipliers µ we must have(µa − Ta)�q∈Xva(q) ≤ Ba.But then since X∗ ⊆ X, we have as well(µa − Ta)�q∈X∗ va(q) = (µ∗a − Ta)�q∈X∗ va(q) ≤ Ba,which implies µ∗ is a feasible strategy.To complete the proof we need to show the strategy that all advertisers take the maximum feasiblepace µ∗a = sup{µa|µ is feasible} results in an equilibrium. To see this, note that if an advertiser’sstrategy is not best-response, they have incentive to increase their pace with its constraints remainingsatisfied. But then this would result into another feasible pacing strategy and is in contradictionwith the choice of the highest pace µ∗a. A similar argument also shows the equilibrium is unique.Assume there exists another pacing equilibrium where an advertiser a exists such that its pace isless than µ∗a. Then by increasing their pace to µ∗a they will get at least as many queries as before, soµ∗a is the best-response strategy.24
CProofs for Truthful AuctionsWe start by the following observation, which follows by applying Assumption 5.1 to reformulate theallocation function in the case of two advertisers as a function of a single variable.Claim C.1. The probability of allocating each query is a function of the ratio of bids, i.e., thereexists a non-decreasing function g : R+ → [0, 1] such that the followings hold.161. x1(b1(q), b2(q)) = g( b1(q)b2(q)),2. g(z) + g(1/z) = 1,3. g(0) = 0.For example, SPA satisfies the above claim with g(z) = 1 when z = b1(q)b2(q) ≥ 1. We are ready toprove Theorem 5.9, which follows the similar steps of Lemma 4.4.Proof of Theorem 5.9. By Claim 5.4, there exists µ1 and µ2 such that advertiser a bids zava(q) oneach query. Therefore, we can write the budget constraint for bidder 1 as,B1 =� 10p1(b1(q), b2(q))dq =� 10µ1v1(q)g�v1(q)v2(q)µ1µ2�dq −� 10� µ1v1(q)0g�xv2(q)µ2�dxdqNext, with a change of variable x = v1(q)y we haveB1 =� 10µ1v1(q)g�v1(q)v2(q)µ1µ2�dq −� 10� µ10g� v1(q)v2(q)µ2y�v1(q)dydq.As before, let h(q) = v1(q)v2(q). Then let z = h(q), we have dq = dh−1(z) =1h′(h−1(z))dz. So,B1 =� ∞0µ1v1(h−1(z))g�zµ1µ2�1h′(h−1(z))dz −� ∞0� µ10g� zµ2y�v1(h−1(z))dy1h′(h−1(z))dz.Define f(z) = v2(h−1(z))h′(h−1(z)) = 1zv1(h−1(z))h′(h−1(z)). Then we haveB1 =� ∞0µ1zf(z)g�zµ1µ2�dz −� ∞0� � µ10g� zµ2y�dy�zf(z)dz.Similarly,B2 =� ∞0µ2v2(h−1(z))(1 − g�zµ1µ2�)1h′(h−1(z))dz −� ∞0� µ20g� yµ1z�v2(h−1(z))dy1h′(h−1(z))dz.B2 =� ∞0µ2f(z)(1 − g�zµ1µ2�)dz −� ∞0� µ20g� yµ1z�dyf(z)dz.Next, we find the implicit function to derive r = µ2µ1 . By change of variable we have the followingtwo equations:B1µ1=� ∞0zf(z)g(z/r)dz − r� ∞0� � z/r0g(w)dw�f(z)dz.16Notice that the function g is measurable since is non-decreasing.25
B2µ2=� ∞0f(z)(1 − g(z/r))dz − 1r� ∞0� � r/z0g(w)dw�zf(z)dz.The implicit function for r is the following:B1B2=� ∞0 f(z)�zg(z/r) − r� z/r0g(w)dw�dz� ∞0 f(z)�r(1 − g(z/r) − z� r/z0g(w)dw�dz.Recall the payment rule in Assumption 5.3, this can be re-written asB1B2=� ∞0 rf(z)p1(z/r, 1)dz� ∞0 zf(z)zp1(r/z, 1)dz ,which finishes the proof for the budget constrained advertisers.Now, consider two tCPA constrained advertisers. Following the same argument as above, we getthe following from tightness of tCPA constraintsT1� ∞0zf(z)g�zµ1µ2�dz =� ∞0µ1zf(z)g�zµ1µ2�dz −� ∞0� � µ10g� zµ2y�dy�zf(z)dz,and,T2� ∞0f(z)(1 − g�zµ1µ2�)dz =� ∞0µ2f(z)(1 − g�zµ1µ2�)dz −� ∞0� µ20g� yµ1z�dyf(z)dz.By dividing both sides of the equations we get the desired results.Now, to prove the main theorem, we need to show that the values accrued by advertisers ismonotone in µ1/µ2.Claim C.2. Let µi be the optimal bidding multiplier for advertiser i. Given the assumptions inTheorem 5.8, the value obtained by advertiser 1 is increasing in r = µ1µ2 .Proof. Following the proof of Theorem 5.9 we can write value obtained by advertiser i asV1(B1, B2) =� ∞0f(z)zg(rz)dz,where r is the answer to the implicit function stated in Theorem 5.9. Monotonicity of V1(B1, B2) asa function of r follows from the fact that g is a monotone function.26
123version https://git-lfs.github.com/spec/v1oid sha256:a6b385dd8600c471d64a88dfc75cfa6fb3507a74f198495325c4a1dc74794682size 178619123version https://git-lfs.github.com/spec/v1oid sha256:12450815d4db0f8b59947692cfbd446ca5ed19e02f077c91d2e9ae750ea671b7size 1900589123version https://git-lfs.github.com/spec/v1oid sha256:55cdda13a676c16e8aed73eb0d772c3e0ff9118c86a1afbaa7ea03f5f5a57cecsize 2293805123version https://git-lfs.github.com/spec/v1oid sha256:df1a08c23793be0f5642f8203f824860bc85591093aea8c84523e3d1f371a6bcsize 2752557123version https://git-lfs.github.com/spec/v1oid sha256:7e313915d9845172b5a9df8726fa77f08ab12f19965c9a3bee73e29d0d043fe9size 4833620123version https://git-lfs.github.com/spec/v1oid sha256:4849547eefa2213d18d665aee247543808f341dd1000a7e2b76df8f208d123dcsize 155587123version https://git-lfs.github.com/spec/v1oid sha256:51c86dc4320c42ee2bd3bb76fcc56bf9c079cde47a60ba07a76e6572ed4624bcsize 197833123version https://git-lfs.github.com/spec/v1oid sha256:c2bd3b23d6a387ce3025cddaf224d6984cf7fb4b129aa75c87b68b1a8a0476f2size 3211309123version https://git-lfs.github.com/spec/v1oid sha256:822c4adbb4f0008699df6d659dff85eb8682ee98b095ee42b8dd9fb2977ab74fsize 1212441234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102arXiv:2301.08618v1 [cs.LG] 20 Jan 20231Coupled Physics-informed Neural Networks forInferring Solutions of Partial Differential Equationswith Unknown Source TermsAina Wang, Pan Qin, Xi-Ming Sun, Senior Member, IEEE,Abstract—Physics-informed neural networks (PINNs) providea transformative development for approximating the solutionsto partial differential equations (PDEs). This work proposesa coupled physics-informed neural network (C-PINN) for thenonhomogeneous PDEs with unknown dynamical source terms,which is used to describe the systems with external forces andcannot be well approximated by the existing PINNs. In ourmethod, two neural networks, NetU and NetG, are proposed.NetU is constructed to generate a quasi-solution satisfying PDEsunder study. NetG is used to regularize the training of NetU.Then, the two networks are integrated into a data-physics-hybridcost function. Finally, we propose a hierarchical training strategyto optimize and couple the two networks. The performance ofC-PINN is proved by approximating several classical PDEs.Index Terms—Coupled physics-informed neural network, hier-archical training strategy, partial differential equations, unknownsource termI. IntroductionPARTIAL differential equations (PDEs) are one of thegeneral representations for describing spatio-temporaldependence in physics [1], medicine [2], engineering [3],finance [4], and weather [5], [6]. Numerical approaches, likethe finite difference method (FDM) [7] and finite element(FEM) [8], [9], have been widely investigated and applied.FDM used a topologically square lines network to constructPDEs’ discretization. Thus, complex geometries in multipledimensions challenge FDM [10]. On the other hand, compli-cated geometries can be treated with FEM [11]. The greatestdifficulty of classical numerical approaches is balancing theaccuracy and efficiency of forming meshes.Among the numerical methods for solving PDEs, theGalerkin method is a famous computation method in which thelinear combination of basis functions was employed to approx-imate the solutions to PDEs [12]. Motivated by this, severalworks have used machine learning models to replace the linearcombination of basis functions to construct data-efficient andphysics-informed learning methods for solving PDEs [13]–[15]. Successful applications of deep learning methods tovarious fields, like image [16], text [17], and speech recogni-tion [18], ensure that they are excellent replacers of the linearcombination of basis functions for solving PDEs [4]. Conse-quently, leveraging the well-known approximation capabilityThe authors are with the Key Laboratory of Intelligent Control and Opti-mization for Industrial Equipment of Ministry of Education and the Schoolof Control Science and Engineering, Dalian University of Technology, Dalian116024, China e-mail: WangAn@mail.dlut.edu.cn, qp112cn@dlut.edu.cn,sunxm@dlut.edu.cn (Corresponding author: Pan Qin)of neural networks to solve PDEs is a natural idea and hasbeen investigated in various forms previously [19]–[21]. Theframework of physics-informed neural networks (PINNs) [22]was introduced to solve the forward problems while respectingany given physical laws governed by PDEs, including thenonlinear operator, initial, and boundary conditions. Withinthe PINNs framework, both the sparse measurements andthe physical knowledge were fully integrated into cost func-tion [23], [24]. The solution with respect to spatio-temporaldependence was obtained by training the cost function. Notethat the approximation obtained by machine learning and deeplearning is meshfree, which has no problem on balancingaccuracy and efficiency of forming meshes.Meanwhile, the potential of using PINNs to solve the inverseproblem is promising [25]. A hybrid PINN was proposedto solve PDEs in [26], in which a local fitting method wascombined with neural networks to solve PDEs. The hybridPINN was used to identify unknown constant parametersin PDEs. The generative adversarial network (GAN) [27]was also physics-informed to solve the inverse problems.The stochastic physics-informed GAN was investigated forestimating the distributions of unknown parameters in PDEs.The recent work [28] encoded the physical laws governedby PDEs into the architecture of GANs to solve the inverseproblems for stochastic PDEs. PINNs were also combined withthe Bayesian method to solve inverse problems from noisy data[29].PDEs can be classified into homogeneous and nonhomoge-neous types. Systems without external forces can be describedby the homogeneous PDEs. The nonhomogeneous PDEs canbe applied to reveal the continuous energy propagation be-havior of the source and hereby are effective for describingpractical systems driven by external forces. The function formsof the solution and the source term were both assumed to beunknown in [30], in which the measurements of the sourceterm should be obtained separately from the measurements ofthe solution. However, the independent measurements of theexternal forces cannot always be easily obtained from practicalsituations. The recent work [31] can directly solve the steady-state PDEs’ forward and inverse problems, where the sourceterms were assumed to be constant. Thus, [31] was not feasiblefor systems with unsteady external forces, which should bedescribed by dynamical functions.Although the aforementioned methods have made greatprogress on unknown parameters, prior information or mea-surements on external forces cannot always be easily obtained
2from practical situations. For example, the real distribution ofthe seismic wave field underground is unknown [32]; the vastof signals internal engine, indicating the operation state ofthe engine, cannot be isolated [33]. Furthermore, the existingmethods with the assumption of the constant source termcannot be readily extended to describe the spatio-temporaldependence of complex dynamical systems. The determinationof dynamical source terms with less prior information or evenwithout any prior information is an under-investigated issue.To this end, this paper proposes a coupled-PINN (C-PINN),using the sparse measurements and limited prior informationof PDEs, to solve PDEs with unknown source terms. In ourmethod, two neural networks, NetU and NetG, are proposed.NetU is applied to generate a quasi-solution satisfying PDEsunder study; NetG is used to regularize the training of NetU.Then, the two networks are integrated into a data-physics-hybrid cost function. Furthermore, we propose a hierarchicaltraining strategy to optimize and couple the two networks.Finally, the proposed C-PINN is applied to solve severalclassical PDEs to demonstrate its performance.The rest of the paper is organized as follows. The classicalPINNs is briefly reviewed in Section II. A C-PINN using thesparse measurements and limited prior knowledge to solvePDEs with unknown source terms is proposed in Section III.Meanwhile, the two neural networks, NetU and NetG, areproposed in our method. Furthermore, a hierarchical trainingstrategy is proposed to optimize and couple the two networks.In Section IV, our proposed C-PINN is validated with fourcase studies. In Section V, the concluding remarks and thefuture work are presented.II. Brief Review of PINNsIn this section, we briefly review the basic idea of PINNsfor data-driven solutions to PDEs and data-driven discoveryof PDEs [22].Data-driven solutions to PDEs describe that solve PDEs ofthe generalized formut(x, t) + N[u(x, t)] = 0, x ∈ Ω ⊆ Rd, t ∈ [0, T] ⊂ R(1)with known parameters. Here, x is the spatial variable, t isthe temporal variable with t = 0 being at the initial state,u : Rd × R → R denotes the hidden solution, N[·] is aseries of partial differential operators, the domain Ω ⊆ Rd isa spatial bounded open set with the boundary ∂Ω. Analyticalor numerical methods have been widely investigated to findproper solution ψ(x, t) satisfying (1) [34]. The left-hand-sideof (1) can be used to define a residual function as the followingf(x, t) := ut(x, t) + N[u(x, t)],(2)where a neural network is used to approximate the solutionψ(x, t) to PDEs. The inverse problem is focused on the data-driven discovery of PDEs of the generalized form (1), whereunknown parameters of PDEs here turn into parameters ofPINNs.PINNs for both problems can be trained by minimizing thecost functionMSE = MSED + MSEPH.(3)Here, MSED is formulated as the followingMSED =�(x,t,u)∈D�ˆu�x, t; ˆΘU�− u (x, t)�2 ,(4)where ˆu�x, t; ˆΘU�is the function of neural network with ˆΘUbeing its trained parameter set. Let D denote the trainingdataset. This mean squared error term can be considered asthe data-driven loss. MSEPH is as the followingMSEPH =�(x,t)∈Eˆf (x, t)2 ,(5)which regularizes ˆu�x, t; ˆΘU�to satisfy (1). Let E denotethe set of collocation points. This regularization term can beconsidered as the physics-informed loss for the homogeneousPDEs. Here, ˆf (x, t) is defined asˆf (x, t) := ˆut�x, t; ˆΘU�+ N�ˆu�x, t; ˆΘU��,(6)where ˆut�x, t; ˆΘU�and N�ˆu�x, t; ˆΘU��can be obtained usingautomatic differential [35].III. Constructing C-PINNC-PINN for solving PDEs with unknown source terms ispresented in this section. The nonhomogeneous PDEs are ofthe following generalized formut(x, t)+N[u(x, t)] = g(x, t), x ∈ Ω ⊆ Rd, t ∈ [0, T] ⊂ R, (7)where x and t are the spatial and temporal variable, respec-tively, u : Rd ×R → R is similar to (1), g : Rd ×R → R denotesthe general types of source terms including linear, nonlinear,state-steady, or dynamical, Ω is a spatial bounded open set withthe boundary ∂Ω. Without loss of generality, the spatial set of(7) is subjected to Dirichlet boundary, Neumann boundary, orthe hybrid of Dirichlet and Neumann boundary conditions. Ingeneral, g(x, t) is used as source terms to describe the externalforces for dynamical systems and cannot always be separatelymeasured, as mentioned in Section I.Different from (6), the residual function is defined for thenonhomogeneous case as the followingfN(x, t) := f(x, t)−g(x, t) = ut(x, t)+N[u(x, t)]−g(x, t). (8)When g(x, t) is exactly known, ˆfN(x, t), obtained with auto-matic differential from (8), can be directly used to regularizethe approximation of u(x, t). However, the unknown g(x, t)will lead to unknown fN(x, t), which makes the aforemen-tioned regularization infeasible.Therefore, the goal of C-PINN is to approximate the solu-tion to PDEs with unknown source terms described by (7). Tothis end, there are two neural networks included in C-PINN:(a) NetU for approximating the solution satisfying (7); (b)NetG for regularizing the training of NetU.1) Cost function:To train C-PINN, the training datasetis uniformly sampled from the system governed by (7). Thetraining dataset D divided into D = DB∪DI with DB∩DI = ∅,where DB denotes the boundary and initial training dataset andDI is the training dataset of interior of Ω. Collocation points
3(x, t) ∈ E correspond to those of (x, t, u) ∈ DI. Then, we adoptthe following data-physics-hybrid cost functionMSE = MSED + MSEPN(9)to train our proposed C-PINN. MSED and MSEPN in (9)are the data-driven loss and physics-informed loss for thenonhomogeneous PDEs, respectively. MSED adopts the sameform of (4). MSEPN is as the followingMSEPN =�(x,t)∈E� ˆf (x, t) − ˆg�x, t; ˆΘG��2 ,where ˆg�x, t; ˆΘG�is the function of NetG with ˆΘG beingits trained parameter set,ˆf(x, t) has been defined by (2).MSEPN corresponds to the physics-informed loss for thenonhomogeneous PDEs obtained from (8) imposed at a finiteset of collocation points (x, t) ∈ E, which is used to regularizeˆu�x, t; ˆΘU�of NetU to satisfy (7).2) Hierarchical training strategy: Considering the relationbetween NetU and NetG in (3), a hierarchical training strategyis proposed. In many cases, the exact formulation or evensparse measurements of g(x, t) are not available, while thesparse measurements DI can be obtained to enforce thestructure of (7) to achieve ˆΘG. Thus, ΘU and ΘG should beiteratively estimated with mutual dependence. Assume k is thepresent iteration step, the core issue of the hierarchical train-ing strategy is described by the following two optimizationproblemsˆΘ(k+1)G= arg minΘG�MSED� ˆΘ(k)U�+ MSEPN�ΘG; ˆΘ(k)U��= arg minΘGMSEPN�ΘG; ˆΘ(k)U�(10)andˆΘ(k+1)U= arg minΘU�MSED (ΘU) + MSEPN�ΘU; ˆΘ(k+1)G��, (11)where ˆΘ(k)U is the estimated parameter set of NetU at kth step,ˆΘ(k+1)Gis the estimated parameter set of NetG at (k + 1)th step,Θ(k+1)Uis the estimated parameter set of NetU at (k + 1)thstep, which is used to describe the function ˆu�x, t; ˆΘ(k+1)U�.The details of the hierarchical training strategy are obtainedby Algorithm 1.Note that Θ(0)U and Θ(0)G are used as a given parameter setfor NetU and the initialization of the parameter set for NetGat Step 0, respectively. Furthermore, the iterative transmissionof parameter sets of NetG and NetU happens in the algorithm.IV. Numerical experimentsIn this section, our proposed C-PINN is applied to solveseveral classical PDEs to demonstrate its performance. Allthe examples are implemented with TensorFlow. The fullyconnected structure with a hyperbolic tangent activation func-tion is applied, which is initialized by Xavier. These trainingdataset (x, t, u) ∈ D and collocation points (x, t) ∈ E arethen input into NetU and NetG. L-BFGS [36] is used tohierarchically solve the optimization problems (10) and (11)to couple the two networks.Algorithm 1 The hierarchical strategy of optimizing andcoupling for C-PINN.-Initialize: Randomly sampled training dataset (x, t, u) ∈ Dand collocation points (x, t) ∈ E. Randomly generate initialparameter sets Θ(0)U and Θ(0)G .- Step 0: Assume the kth iteration has achieved ˆΘ(k)U andˆΘ(k)G .Repeat:- Step k-1: Training for NetG by solving the optimizationproblem (10) to obtain ˆΘ(k+1)G, where the estimations ofˆut�x, t; ˆΘ(k)U�+ N�ˆu(x, t; ˆΘ(k)U�in MSEPN is obtained fromthe former iteration result ˆΘ(k)U .- Step k-2: Training for NetU by solving the optimizationproblem (11) to obtain ˆΘ(k+1)U, which is used to estimateˆg�x, t; Θ(k+1)G�in MSEPN.-Until the stop criterion is satisfied.-Return the solution function ˆΘU → ˆu�x, t; ˆΘU�, which canpredict the solution (8) with any point (x, t) in Ω.We evaluate the performance of our proposed C-PINN bymeans of root mean squared error (RMSE)RMSE =�1|T|�(x,t)∈T(u (x, t) − ˆu (x, t))2,where |T| is the cardinality with respect to the collocationpoints (x, t) ∈ T, T is the set of testing collocation points.u (x, t) and ˆu (x, t) denote the ground truth and the cor-responding predictions, respectively. To further validate theperformance of C-PINN, the Pearson’s correlation coefficient(CC)CC =cov (u (x, t) , ˆu (x, t))√Var u (x, t) √Var ˆu (x, t)is also used to measure the similarity between ground truth andprediction, where CC is the correlation coefficient of u(x, t)and ˆu(x, t), cov (u (x, t) , ˆu (x, t)) is the covariance betweenu(x, t) and ˆu(x, t), and Var u (x, t) and Var ˆu (x, t) are varianceof u(x, t) and ˆu(x, t), respectively.A. Case 1: 1-D Heat EquationC-PINN is first applied to solve the heat equation withunknown external forces, where both Dirichlet and Neumannboundary conditions are conducted to demonstrate its perfor-mance.1) Dirichlet Boundary ConditionHere, we consider the heat equation with Dirichlet boundarycondition as the following∂u∂t = a2 ∂2u∂x2 + g(x, t),0 < x < L, t > 0u|t=0 = φ(x),0 ⩽ x ⩽ Lu|x=0 = 0,u|x=L = 0,t > 0,(12)where thermal diffusivity a=1, u(x, t) is the primaryvariable and means the temperature at (x, t), L = π is thelength of bounded rod, φ(x) = 0 is initial temperature, and
4g(x, t) = xe−t denotes the unknown external heat source at(x, t). The analytical solution u (x, t) to (12) is obtained withrespect to [37]. In this experiment, the setting-ups of C-PINNare as follows. There are eight hidden layers with 20 unitsin each of them for both NetU and NetG. A total of 110training data (x, t, u(x, t)) in D with t ∈ [0, 6], including 10training data in DI and 100 training data in DB, are randomlysampled, 10 sparse collocation points are randomly sampled toenforce the structure of (12). Fig. 1 shows the sparse trainingdataset and the prediction results. Specifically, the magnitudeof the predictions ˆu(x, t) using the training dataset is shown inFig. 1(a) with a heat map. In this case, RMSE is 4.225390e−02and the correlation coefficient is 9.785444e − 01. Moreover,we compare the ground truths and the predictions at fixed-time t= 1.5, 3, and 4.5 in Fig. 1(b) to (d), respectively. Theevaluation criteria in Table I are applied to further quantifythe performance of our proposed C-PINN.0123456t0123x��� ������������������uˆ(x, t)����training data ��������training data ������0.00.10.20.30.40.50.60.702x01u(x, t)��� t = 1.502x01u(x, t)��� t = 302x01u(x, t)��� t = 4.5����������������������Fig. 1.(a) Predictions ˆu (x, t) for the 1-D heat equation with Dirichletboundary condition; (b), (c), and (d) Comparisons of the ground truths andpredictions corresponding to the fixed-time t= 1.5, 3, and 4.5 snapshotsdepicted by the dashed vertical lines in (a), respectively.TABLE IEvaluation criteria for the three temporal snapshots depicted by the dashedvertical lines in Fig. 1-(a)Criteria1.534.5RMSE4.600305e-02 1.342719e-022.991229e-02CC9.753408e-01 9.912983e-019.805664e-01Subsequently, the experiment for PDE with Neumannboundary condition will be further explored to show thegeneral performance of C-PINN.2) Neumann Boundary ConditionHeat equation with Neumann boundary condition is definedas∂u∂t = a2 ∂2u∂x2 + g(x, t),0 < x < L, t > 0u|t=0 = φ(x),0 ⩽ x ⩽ Lu|x=0 = 0,∂u∂x�����x=L= 0,t > 0,(13)with the thermal diffusivity a = 1, the length of boundedrod L = π, the initial temperature φ(x) = sin (x/2), andthe external heat source is g(x, t) = sin (x/2). The analyticalsolution u(x, t) to (13) is obtained according to [37]. In thisexample, NetU is of three hidden layers consisting of 30neurons individually. NetG is of eight hidden layers consistingof 20 units individually. (x, t, u(x, t)) in D are considered witht ∈ [0, 10]. A total of 130 training data in DB, including 10initial training data, 60 left boundary training data, and 60 rightboundary training data are randomly sampled. Moreover, the20 sparse collocation points are randomly sampled to enforcethe structure of (13). The magnitude of the predictions ˆu(x, t)using the training dataset is shown in Fig. 2(a). RMSE is5.748950e−02 and the correlation coefficient is 9.988286e−01.Moreover, we compare the ground truths and the predictions atfixed-time t= 3, 6, and 9 in Fig. 2(b) to (d), respectively. Theevaluation criteria in Table II are applied to further evaluatethe performance of our proposed C-PINN.0246810t0123x��� ������������������ uˆ(x, t)130 training data������20 training data ������0.00.51.01.52.02.53.03.502x0123u(x, t)��� t = 302x0123u(x, t)��� t = 602x0123u(x, t)��� t = 9�������������PredictionFig. 2.(a) Predictions ˆu (x, t) for the 1-D heat equation with Neumannboundary condition. (b), (c), and (d) Comparisons of the ground truths andpredictions correspond to the fixed-time t= 3, 6, and 9 snapshots depicted bythe dashed vertical lines in (a), respectively.TABLE IIEvaluation criteria for the three temporal snapshots depicted by the dashedvertical lines in Fig. 2-(a).Criteria369RMSE5.343142e-025.884118e-027.064205e-02CC9.982448e-019.990231e-019.984719e-01B. Case 2: 1-D Wave EquationThe wave equation is as the following∂2u∂t2 = a2 ∂2u∂x2 + g(x, t),0 < x < L, t > 0u|x=0 = 0,u|x=L = 0,t > 0u|t=0 = 0,∂u∂t�����t=0= 0,0 ⩽ x ⩽ L,(14)
5where the wave speed a is 1, the length of bounded string Lis π, the time of wave propagation t is 6, the external force isg(x, t) = sin 2πxL sin 2aπtLat(x, t) and displacement u(x, t) at (x, t) according to [37] isfurther investigated.In this experiment, NetU is of three hidden layers consistingof 30 neurons individually. NetG is of eight hidden layersconsisting of 20 units individually. A total of 210 trainingdata (x, t, u (x, t)) in D, including 50 initial training data, 120boundary training data, and 40 collation points are randomlysampled. Fig. 3(a) shows the sparse training dataset and themagnitude of displacement ˆu(x, t) at (x, t). Fig. 3(b) to (d)show the comparisons of ground truths and predictions corre-sponding to the three fixed-time t=1.5, 3, and 4.5, which aredepicted by the dashed vertical lines in Fig. 3(a), respectively.RMSE is 7.068626e − 02 and the correlation coefficient is9.864411e− 01. The evaluation criteria for the three temporalsnapshots are listed in Table III.0123456�0123x(�� ����������������� ˆu(x, t)220 training data �����40 training data �����−1.0−0.50.00.51.002x−101u(x, t)�b� �������02x−101u(x, t)��� �����02x−101u(x, t)��� ������������������������������Fig. 3.(a) Predictions ˆu (x, t) for 1-D wave equation. (b), (c), and (d)Comparisons of the ground truths and predictions corresponding to the fixed-time t=1.5, 3, and 4.5 snapshots depicted by the dashed vertical lines in (a),respectively.TABLE IIIEvaluation criteria for the three temporal snapshots depicted by the dashedvertical lines in Fig. 3-(a).Criteria1.53.4.5RMSE1.424030e-013.305190e-025.201132e-02CC9.6238994e-019.985312e-019.983170e-01C. Case 3: 2-D Poisson EquationWe further consider the following 2-D Poisson equation∂2u∂x2 + ∂2u∂y2 = T0,0 < x < a, 0 < y < bu(x, 0) = 0,u(x, b) = T,0 ⩽ x ⩽ au(0, y) = 0,u(a, y) = 0,0 ⩽ y ⩽ b,(15)where T is 1, the constant source term T0 = 1 is unknown, anda = b = 1. The analytical solution u(x, y) to (15) is obtainedaccording to [37]. In this experiment, the setting-ups of C-PINN are as follows. There are eight hidden layers with 20units in each of them for both NetU and NetG. Thirty trainingdata in DB and 3 collocation points in DI are used. Fig. 4(a)shows the sparse training dataset and the predictions ˆu(x, y).Fig. 4(b) to (d) show the prediction performance of fixed-location y=0.2, 0.4, and 0.6 snapshots depicted in Fig. 4(a),respectively. RMSE is 1.594000e − 02 and the correlationcoefficient is 9.997390e − 01. The corresponding evaluationcriteria are listed in Table IV.0.00.20.40.60.81.00.000.250.500.751.00x��� ���������������������uˆ(x, y)30 training data ������3 training data �����0.00.51.01.52.02.501x0.00.51.01.5u(x, y)01x0.00.51.01.5u(x, y)01x0.00.51.01.5u(x, y)(��� ����������������������������yy(c�� ����4y(b�� ����2yFig. 4.(a) Predictions ˆu (x, y) for the 2-D Poisson equation. (b), (c), and,(d) Comparisons of the ground truths and predictions corresponding to thefixed-location y = 0.2, 0.4, and 0.6 snapshots depicted by the dashed verticallines in (a), respectively.TABLE IVEvaluation criteria for the three fixed-location snapshots depicted by thedashed vertical lines in Fig. 4-(a).Criteria0.20.40.6RMSE1.763408e-021.139888e-027.696680e-03CC9.986055e-019.999703e-019.999656e-01D. Case 4: 3-D Helmholtz EquationC-PINN is also applied to solve 3-D Helmholtz equationwith an unknown source term. In particular, we consider thesame test PDEs that were previously suggested in [26]∆u(x) + p2u(x) = g(x) in Ω ⊂ R3u(x) = u0(x) on ∂Ω,(16)where ∆ =∂∂x2 + ∂∂y2 + ∂∂z2 is Laplacian operator, x = (x, y, z)⊤is coordinates with x, y, z ∈ (0, 1/4] , p = 5 is the wavenumber,
6a suitable g(x) is the right-hand side of (16) so thatu(x) = (0.1 sin (2πx) + tanh (10x)) sin (2πy)sin (2πz)is the analytical solution of (16) [26]. In this experiment,NetU is of three hidden layers consisting of 100, 50, and50 neurons individually. NetG is of eight hidden layers con-sisting of 20 units individually. Sixty training data and 120collocation points are sampled. Fig. 5(a) shows the solutionof (x, y, z = 0.12) snapshot. Furthermore, Fig. 5(b) to (d)show the comparisons of ground truths and predictions, whichare extracted at (x = 0.05, z = 0.12), (x = 0.15, z = 0.12),and (x = 0.2, z = 0.12), respectively. The evaluation criteriafor this extractions are listed in Table V. In this experiment,RMSE is 1.192859e − 01, and the correlation coefficient is9.057524e − 01.0.050.100.150.200.25x0.10.2y(a) 3−D Helmholtz Equation 0.00.10.20.30.40.50.60.70.10.2y0.00.20.40.6u(x, y)�b� x = 0.050.10.2y0.00.20.40.6u(x, y)��� x = 0.150.10.2y0.00.20.40.6u(x, y)��� x =0.2�������������Prediction�uˆ(x,�y,�z�=�253�)Fig. 5. (a) Predictions ˆu (x, y, z = 0.12) for 3-D Helmholtz equation. (b), (c)and, (d) Comparisons of the ground truths and predictions corresponding tothe (x = 0.05, z = 0.12), (x = 0.15, z = 0.12), and (x = 0.20, z = 0.12)snapshots depicted by the dashed vertical lines in (a), respectively.TABLE VEvaluation criteria for the three snapshots depicted by the dashed verticallines in Fig. 5-(a).Criteria0.050.150.2RMSE7.043735e-027.548533e-025.179414e-02CC9.604538e-019.998589e-019.964517e-01V. ConclusionThis paper proposes a novel PINN, called C-PINN, to solvePDEs with less prior information or even without any priorinformation for source terms. In our approach, two neural net-works, NetU and NetG, are proposed with a fully-connectedstructure. NetU for approximating the solution satisfyingPDEs under study; NetG for regularizing the training of NetU.Then, the two networks are integrated into a data-physics-hybrid cost function. Furthermore, the two networks are op-timized and coupled by the proposed hierarchical trainingstrategy. Finally, C-PINN is applied to solve several classicalPDEs to testify to its performance. Note that C-PINN inheritsthe advantages of PINN, such as sparse property and automaticdifferential. C-PINN is proposed to solve such a dilemma asthe governing equation of dynamical systems with unknownforces. Thus, C-PINN can be further applied to infer theunknown source terms. Meanwhile, C-PINN can be extendedto identify the operators from the sparse measurements.In the future, we will continue to use our C-PINN invarious scenarios, like solving PDEs with unknown struc-ture parameters and high-dimension PDEs. For the case, thestructures of PDE are totally unknown, regularization methodwill be combined with C-PINN to select operators fromthe sparse measurements. Our proposed C-PINN has beenshown to solve several classical PDEs successfully. For morecomplex situations, the features extraction, like convolutionand pooling, will be added to C-PINN.References[1] H. W. Wyld and G. Powell, Mathematical methods for physics.CRCPress, 2020.[2] C. Oszkinat, S. E. Luczak, and I. Rosen, “Uncertainty quantification inestimating blood alcohol concentration from transdermal alcohol levelwith physics-informed neural networks,” IEEE Transactions on NeuralNetworks and Learning Systems, 2022.[3] J. Tu, C. Liu, and P. Qi, “Physics-informed neural network integratingpointnet-based adaptive refinement for investigating crack propagationin industrial applications,” IEEE Transactions on Industrial Informatics,pp. 1–9, 2022.[4] J. Sirignano and K. Spiliopoulos, “Dgm: A deep learning algorithm forsolving partial differential equations,” Journal of computational physics,vol. 375, pp. 1339–1364, 2018.[5] S. E. Cohn, “Dynamics of short-term univariate forecast error covari-ances,” Monthly Weather Review, vol. 121, no. 11, pp. 3123–3149, 1993.[6] K. Kashinath, M. Mustafa, A. Albert, J. Wu, C. Jiang, S. Esmaeilzadeh,K. Azizzadenesheli, R. Wang, A. Chattopadhyay, A. Singh et al.,“Physics-informed machine learning: case studies for weather andclimate modelling,” Philosophical Transactions of the Royal Society A,vol. 379, no. 2194, p. 20200093, 2021.[7] G. D. Smith, G. D. Smith, and G. D. S. Smith, Numerical solutionof partial differential equations: finite difference methods.Oxforduniversity press, 1985.[8] Z. Li, Z. Qiao, and T. Tang, Numerical solution of differential equations:introduction to finite difference and finite element methods. CambridgeUniversity Press, 2017.[9] G. Dziuk and C. M. Elliott, “Finite element methods for surface pdes,”Acta Numerica, vol. 22, pp. 289–396, 2013.[10] J. Peir´o and S. Sherwin, “Finite difference, finite element and finitevolume methods for partial differential equations,” in Handbook ofmaterials modeling.Springer, 2005, pp. 2415–2446.[11] P. F. Antonietti, A. Cangiani, J. Collis, Z. Dong, E. H. Georgoulis, S. Gi-ani, and P. Houston, “Review of discontinuous galerkin finite elementmethods for partial differential equations on complicated domains,” inBuilding bridges: connections and challenges in modern approaches tonumerical partial differential equations.Springer, 2016, pp. 281–310.[12] P. G. Ciarlet, The finite element method for elliptic problems.SIAM,2002.[13] S. Cuomo, V. S. Di Cola, F. Giampaolo, G. Rozza, M. Raissi, and F. Pic-cialli, “Scientific machine learning through physics-informed neural net-works: Where we are and what’s next,” arXiv preprint arXiv:2201.05624,2022.[14] N. Zobeiry and K. D. Humfeld, “A physics-informed machine learningapproach for solving heat transfer equation in advanced manufacturingand engineering applications,” Engineering Applications of ArtificialIntelligence, vol. 101, p. 104232, 2021.[15] W. Chen, Q. Wang, J. S. Hesthaven, and C. Zhang, “Physics-informedmachine learning for reduced-order modeling of nonlinear problems,”Journal of computational physics, vol. 446, p. 110666, 2021.
7[16] M. Ye, J. Shen, G. Lin, T. Xiang, L. Shao, and S. C. Hoi, “Deep learningfor person re-identification: A survey and outlook,” IEEE transactions onpattern analysis and machine intelligence, vol. 44, no. 6, pp. 2872–2893,2021.[17] D. Nurseitov, K. Bostanbekov, M. Kanatov, A. Alimova, A. Abdallah,and G. Abdimanap, “Classification of handwritten names of cities andhandwritten text recognition using various deep learning models,” arXivpreprint arXiv:2102.04816, 2021.[18] L. Deng, J. Li, J.-T. Huang, K. Yao, D. Yu, F. Seide, M. Seltzer,G. Zweig, X. He, J. Williams et al., “Recent advances in deep learningfor speech research at microsoft,” in 2013 IEEE international conferenceon acoustics, speech and signal processing. IEEE, 2013, pp. 8604–8608.[19] A. J. Meade Jr and A. A. Fernandez, “The numerical solution oflinear ordinary differential equations by feedforward neural networks,”Mathematical and Computer Modelling, vol. 19, no. 12, pp. 1–25, 1994.[20] I. E. Lagaris, A. Likas, and D. I. Fotiadis, “Artificial neural networks forsolving ordinary and partial differential equations,” IEEE transactions onneural networks, vol. 9, no. 5, pp. 987–1000, 1998.[21] I. E. Lagaris, A. C. Likas, and D. G. Papageorgiou, “Neural-networkmethods for boundary value problems with irregular boundaries,” IEEETransactions on Neural Networks, vol. 11, no. 5, pp. 1041–1049, 2000.[22] M. Raissi, P. Perdikaris, and G. E. Karniadakis, “Physics-informedneural networks: A deep learning framework for solving forward andinverse problems involving nonlinear partial differential equations,”Journal of Computational physics, vol. 378, pp. 686–707, 2019.[23] Z. Mao, A. D. Jagtap, and G. E. Karniadakis, “Physics-informedneural networks for high-speed flows,” Computer Methods in AppliedMechanics and Engineering, vol. 360, p. 112789, 2020.[24] Q. He, D. Barajas-Solano, G. Tartakovsky, and A. M. Tartakovsky,“Physics-informed neural networks for multiphysics data assimilationwith application to subsurface transport,” Advances in Water Resources,vol. 141, p. 103610, 2020.[25] M. Raissi, P. Perdikaris, and G. E. Karniadakis, “Physics informed deeplearning (part ii): Data-driven discovery of nonlinear partial differentialequations. arxiv e-prints, p,” arXiv preprint arXiv:1711.10566, 2017.[26] Z. Fang, “A high-efficient hybrid physics-informed neural networksbased on convolutional neural network,” IEEE Transactions on NeuralNetworks and Learning Systems, 2021.[27] I. Goodfellow, J. Pouget-Abadie, M. Mirza, B. Xu, D. Warde-Farley,S. Ozair, A. Courville, and Y. Bengio, “Generative adversarial networks,”Communications of the ACM, vol. 63, no. 11, pp. 139–144, 2020.[28] L. Yang, D. Zhang, and G. E. Karniadakis, “Physics-informed generativeadversarial networks for stochastic differential equations,” SIAM Journalon Scientific Computing, vol. 42, no. 1, pp. A292–A317, 2020.[29] L. Yang, X. Meng, and G. E. Karniadakis, “B-pinns: Bayesian physics-informed neural networks for forward and inverse pde problems withnoisy data,” Journal of Computational Physics, vol. 425, p. 109913,2021.[30] M. Yang and J. T. Foster, “Multi-output physics-informed neuralnetworks for forward and inverse pde problems with uncertainties,”Computer Methods in Applied Mechanics and Engineering, p. 115041,2022.[31] H. Gao, M. J. Zahr, and J.-X. Wang, “Physics-informed graph neuralgalerkin networks: A unified framework for solving pde-governed for-ward and inverse problems,” Computer Methods in Applied Mechanicsand Engineering, vol. 390, p. 114502, 2022.[32] S. Karimpouli and P. Tahmasebi, “Physics informed machine learning:Seismic wave equation,” Geoscience Frontiers, vol. 11, no. 6, pp. 1993–2001, 2020.[33] T. Verhulst, D. Judt, C. Lawson, Y. Chung, O. Al-Tayawe, and G. Ward,“Review for state-of-the-art health monitoring technologies on air-frame fuel pumps,” International Journal of Prognostics and HealthManagement, vol. 13, no. 1, 2022.[34] K. W. Morton and D. F. Mayers, Numerical solution of partial differentialequations: an introduction.Cambridge university press, 2005.[35] A. G. Baydin, B. A. Pearlmutter, A. A. Radul, and J. M. Siskind,“Automatic differentiation in machine learning: a survey,” Journal ofMarchine Learning Research, vol. 18, pp. 1–43, 2018.[36] C. Zhu, R. H. Byrd, P. Lu, and J. Nocedal, “Algorithm 778: L-bfgs-b: Fortran subroutines for large-scale bound-constrained optimization,”ACM Transactions on mathematical software (TOMS), vol. 23, no. 4,pp. 550–560, 1997.[37] B. R. Kusse and E. A. Westwig, Mathematical physics: appliedmathematics for scientists and engineers.John Wiley & Sons, 2010.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063arXiv:2301.13789v1 [math.CO] 31 Jan 2023The Minimum Degree Removal Lemma ThresholdsLior Gishboliner∗Zhihan Jin∗Benny Sudakov∗AbstractThe graph removal lemma is a fundamental result in extremal graph theory which says that for everyfixed graph H and ε > 0, if an n-vertex graph G contains εn2 edge-disjoint copies of H then G containsδnv(H) copies of H for some δ = δ(ε, H) > 0. The current proofs of the removal lemma give only veryweak bounds on δ(ε, H), and it is also known that δ(ε, H) is not polynomial in ε unless H is bipartite.Recently, Fox and Wigderson initiated the study of minimum degree conditions guaranteeing that δ(ε, H)depends polynomially or linearly on ε. In this paper we answer several questions of Fox and Wigdersonon this topic.1IntroductionThe graph removal lemma, first proved by Ruzsa and Szemerédi [23], is a fundamental result in extremalgraph theory. It also have important applications to additive combinatorics and property testing. The lemmastates that for every fixed graph H and ε > 0, if an n-vertex graph G contains εn2 edge-disjoint copies of Hthen G it contains δnv(H) copies of H, where δ = δ(ε, H) > 0. Unfortunately, the current proofs of the graphremoval lemma give only very weak bounds on δ = δ(ε, H) and it is a very important problem to understandthe dependence of δ on ε. The best known result, due to Fox [11], proves that 1/δ is at most a tower ofexponents of height logarithmic in 1/ε. Ideally, one would like to have better bounds on 1/δ, where anoptimal bound would be that δ is polynomial in ε. However, it is known [2] that δ(ε, H) is only polynomialin ε if H is bipartite. This situation led Fox and Wigderson [12] to initiate the study of minimum degreeconditions which guarantee that δ(ε, H) depends polynomially or linearly on ε. Formally, let δ(ε, H; γ) bethe maximum δ ∈ [0, 1] such that if G is an n-vertex graph with minimum degree at least γn and with εn2edge-disjoint copies of H, then G contains δnv(H) copies of H.Definition 1.1. Let H be a graph.1. The linear removal threshold of H, denoted δlin-rem(H), is the infimum γ such that δ(ε, H; γ) dependslinearly on ε, i.e. δ(ε, H; γ) ≥ µε for some µ = µ(γ) > 0 and all ε > 0.2. The polynomial removal threshold of H, denoted δpoly-rem(H), is the infimum γ such that δ(ε, H; γ)depends polynomially on ε, i.e. δ(ε, H; γ) ≥ µε1/µ for some µ = µ(γ) > 0 and all ε > 0.Trivially, δlin-rem(H) ≥ δpoly-rem(H).Fox and Wigderson [12] initiated the study of δlin-rem(H) andδpoly-rem(H), and proved that δlin-rem(Kr) = δpoly-rem(Kr) = 2r−52r−3 for every r ≥ 3, where Kr is the clique onr vertices. They further asked to determine the removal lemma thresholds of odd cycles. Here we completelyresolve this question. The following theorem handles the polynomial removal threshold.Theorem 1.2. δpoly-rem(C2k+1) =12k+1.Theorem 1.2 also answers another question of Fox and Wigderson [12], of whether δlin-rem(H) andδpoly-rem(H) can only obtain finitely many values on r-chromatic graphs H for a given r ≥ 3. Theorem 1.2shows that δpoly-rem(H) obtains infinitely many values for 3-chromatic graphs. In contrast, δlin-rem(H) ob-tains only three possible values for 3-chromatic graphs. Indeed, the following theorem determines δlin-rem(H)for every 3-chromatic H. An edge xy of H is called critical if χ(H − xy) < χ(H).∗Department of Mathematics, ETH, Zürich, Switzerland. Research supported in part by SNSF grant 200021_196965. Email:{lior.gishboliner, zhihan.jin, benjamin.sudakov}@math.ethz.ch.1
Theorem 1.3. For a graph H with χ(H) = 3, it holds thatδlin-rem(H) =12H has no critical edge,13H has a critical edge and contains a triangle,14H has a critical edge and odd-girth(H) ≥ 5.Theorems 1.2 and 1.3 show a separation between the polynomial and linear removal thresholds, giving asequence of graphs (i.e. C5, C7, . . . ) where the polynomial threshold tends to 0 while the linear threshold isconstant 14.The parameters δpoly-rem and δlin-rem are related to two other well-studied minimum degree thresholds:the chromatic threshold and the homomorphism threshold. The chromatic threshold of a graph H is theinfimum γ such that every n-vertex H-free graph G with δ(G) ≥ γn has bounded cromatic number, i.e.,there exists C = C(γ) such that χ(G) ≤ C. The study of the chromatic threshold originates in the work ofErdős and Simonovits [10] from the ’70s. Following multiple works [4, 15, 16, 7, 5, 25, 26, 19, 6, 14, 20], thechromatic threshold of every graph was determined by Allen et al. [1].Moving on to the homomorphism threshold, we define it more generally for families of graphs. Thehomomorphism threshold of a graph-family H, denoted δhom(H), is the infimum γ for which there exists anH-free graph F = F(γ) such that every n-vertex H-free graph G with δ(G) ≥ γn is homomorphic to F.When H = {H}, we write δhom(H). This parameter was widely studied in recent years [18, 22, 17, 8, 24].It turns out that δhom is closely related to δpoly-rem(H), as the following theorem shows. For a graph H, letIH denote the set of all minimal (with respect to inclusion) graphs H′ such that H is homomorphic to H′.Theorem 1.4. For every graph H, δpoly-rem(H) ≤ δhom(IH).Note that IC2k+1 = {C3, . . . , C2k+1}. Using this, the upper bound in Theorem 1.2 follows immediatelyby combining Theorem 1.4 with the result of Ebsen and Schacht [8] that δhom({C3, . . . , C2k+1}) =12k+1.The lower bound in Theorem 1.2 was established in [12]; for completeness, we sketch the proof in Section 3.The rest of this short paper is organized as follows. Section 2 contains some preliminary lemmas. InSection 3 we prove the lower bounds in Theorems 1.2 and 1.3. Section 4 gives the proof of Theorem 1.4, andSection 5 gives the proof of the upper bounds in Theorem 1.3. In the last section we discuss further relatedproblems.2PreliminariesThroughout this paper, we always consider labeled copies of some fixed graph H and write copy of H forsimplicity. We use δ(G) for the minimum degree of G, and write H → F to denote that there is a homo-morphism from H to F. For a graph H on [h] and integers s1, s2, . . . , sh > 0, we denote by H[s1, . . . , sh]the blow-up of H where each vertex i ∈ V (H) is replaced by a set Si of size si (and edges are replaced withcomplete bipartite graphs). The following lemma is standard.Lemma 2.1. Let H be a fixed graph on vertex set [h] and let s1, s2, . . . , sh ∈ N. There exists a constantc = c(H, s1, . . . , sh) > 0 such that the following holds. Let G be an n-vertex graph and V1, . . . , Vh ⊆ V (G).Suppose that G contains at least ρnh copies of H mapping i to Vi for all i ∈ [h]. Then G contains at leastcρ1c · ns1+···+sh copies of H[s1, . . . , sh] mapping Si to Vi for all i ∈ [h].Note that the sets V1, . . . , Vh in Lemma 2.1 do not have to be disjoint. The proof of Lemma 2.1 worksby defining an auxiliary h-uniform hypergraph G whose hyperedges correspond to the copies of H in whichvertex i is mapped to Vi. By assumption, G has at least ρnh edges. By the hypergraph generalization of theKoväri-Sós-Turán theorem, see [9], G contains poly(ρ)ns1+···+sh copies of K(h)s1,...,sh, the complete h-partitehypergraph with parts of size s1, . . . , sh. Each copy of K(h)s1,...,sh gives a copy of H[s1, . . . , sh] mapping Si to Vi.Fox and Wigderson [12, Proposition 4.1] proved the following useful fact.Lemma 2.2. If H → F and F is a subgraph of H, then δpoly-rem(H) = δpoly-rem(F).2
The following lemma is an asymmetric removal-type statement for odd cycles, which gives polynomialbounds. It may be of independent interest. A similar result has appeared very recently in [13].Lemma 2.3. For 1 ≤ ℓ < k, there exists a constant c = c(k) > 0 such that if an n-vertex graph G has εn2edge-disjoint copies of C2ℓ+1, then it has at least cε1/cn2k+1 copies of C2k+1.Proof. Let C be a collection of εn2 edge-disjoint copies of C2ℓ+1 in G. There exists a collection C′ ⊆ C suchthat |C′| ≥ εn2/2 and each vertex v ∈ V (G) belongs to either 0 or at least εn/2 of the cycles in C′. Indeed,to obtain C′, we repeatedly delete from C all cycles containing a vertex v which belongs to at least one butless than εn/2 of the cycles in C (without changing the graph). The set of cycles left at the end is C′. Inthis process, we delete at most εn2/2 cycles altogether (because the process lasts for at most n steps); hence|C′| ≥ εn2/2. Let V be the set of vertices contained in at least εn/2 cycles from C′, so |V | ≥ εn/2. Witha slight abuse of notation, we may replace G with G[V ], C with C′ and ε/2 with ε, and denote |V | by n.Hence, from now on, we assume that each vertex v ∈ V (G) is contained in at least εn of the cycles in C.This implies that |N(v)| ≥ 2εn for every v ∈ V (G).Fix any v0 ∈ V (G) and let C(v0) be the set of cycles C ∈ C such that C ∩ N(v0) ̸= ∅ and v0 /∈ C.The number of cycles C ∈ C intersecting N(v0) is at least |N(v0)| · εn/(2ℓ + 1) ≥ 2ε2n2/(2ℓ + 1), and thenumber of cycles containing v0 is at most n. Hence, |C(v0)| ≥ 2ε2n2/(2ℓ + 1) − n ≥ ε2n2/(ℓ + 1). Takea random partition V0, V1, . . . , Vℓ of V (G) \ {v0}, where each vertex is put in one of the parts uniformlyand independently. For a cycle (x1, . . . , x2ℓ+1) ∈ C(v0) with xℓ+1 ∈ N(v0), say that (x1, . . . , x2ℓ+1) is goodif xℓ+1 ∈ V0 and xℓ+1−i, xℓ+1+i ∈ Vi for 1 ≤ i ≤ ℓ (so in particular x1, x2ℓ+1 ∈ Vℓ).The probabilitythat (x1, . . . , x2ℓ+1) is good is 1/(ℓ + 1)2ℓ+1, so there is a collection of good cycles C′(v0) ⊆ C0 of size|C′(v0)| ≥ |C(v0)|/(ℓ + 1)2ℓ+1 ≥ ε2n2/(ℓ + 1)2ℓ+2.Put γ := ε2/(ℓ + 1)2ℓ+2.By the same argument asabove, there is a collection C′′(v0) ⊆ C′(v0) with |C��′(v0)| ≥ γn2/2 such that each vertex is contained ineither 0 or at least γn/2 cycles from C′′(v0). Let W be the set of vertices contained in at least γn/2 cyclesfrom C′′(v0). Note that W ∩ V0 ⊆ N(v0) by definition. Also, each vertex in W ∩ Vℓ has at least γn/2neighbors in W ∩ Vℓ, and for each 1 ≤ i ≤ ℓ, each vertex in W ∩ Vi has at least γn/2 neighbors in W ∩ Vi−1.It follows that W ∩ Vℓ contains at least 12|W ∩ Vℓ| · �2k−2ℓ−2i=0(γn/2 − i) = poly(γ)n2k−2ℓ paths of length2k − 2ℓ − 1. We now construct a collection of copies of C2k+1 as follows. Choose a path yℓ+1, yℓ+2, . . . , y2k−ℓof length 2k − 2ℓ − 1 in W ∩ Vℓ.For each i = ℓ, . . . , 1, take a neighbor yi ∈ W ∩ Vi−1 of yi+1 and aneighbor y2k−i+1 ∈ W ∩ Vi−1 of y2k−i, such that the vertices y1, . . . , y2k are all different. Then y1, . . . , y2kis a path and y1, y2k ∈ W ∩ V0 ⊆ N(v0), so v0, y1, . . . , y2k is a copy of C2ℓ+1. The number of choices forthe path yℓ+1, yℓ+2, . . . , y2k−ℓ is poly(γ)n2k−2ℓ and the number of choices for each vertex yi, y2k−i+1 ∈ Vi−1(i = ℓ, . . . , 1) is at least γn/2. Hence, the total number of choices for y1, . . . , y2k is poly(γ)n2k. As there aren choices for v0, we get a total of poly(γ)n2k+1 = polyk(ε)n2k+1 copies of C2k+1, as required.3Lower boundsHere we prove the lower bounds in Theorems 1.2 and 1.3. The lower bound in Theorem 1.2 was proved in[12, Theorem 4.3]. For completeness, we include a sketch of the proof:Lemma 3.1. δpoly-rem(C2k+1) ≥12k+1.Proof. Fix an arbitrary α > 0. In [2] it was proved that for every ε, there exists a (2k + 1)-partite graphwith parts V1, . . . , V2k+1 of size αn/(2k + 1) each, with εn2 edge-disjoint copies of C2k+1, but with onlyεω(1)n2k+1 copies of C2k+1 in total (where the ω(1) term may depend on α). Add sets U1, . . . , U2k+1 of size(1 − α)n/(2k + 1) each, and add the complete bipartite graphs (Ui, Vi), 1 ≤ i ≤ 2k + 1, and (Ui, Ui+1),1 ≤ i ≤ 2k. See Figure 1. It is easy to see that this graph has minimum degree (1 − α)n/(2k + 1), and everycopy of C2k+1 is contained in V1 ∪ · · · ∪ V2k+1. Letting α → 0, we get that δpoly-rem(C2k+1) ≥12k+1.By combining the fact that δpoly-rem(C3) = 13 with Lemma 2.2 (with F = C3), we get that δlin-rem(H) ≥δpoly-rem(H) = 13 for every 3-chromatic graph H containing a triangle. This proves the lower bound in thesecond case of Theorem 1.3. Now we prove the lower bounds in the other two cases. We prove a more generalstatement for r-chromatic graphs.3
V2V3V4V5V1U2U3U4U5U1Figure 1: Proof of Lemma 3.1 for C5. Heavy edges indicate complete bipartite graphs while dashed edgesform the Ruzsa–Szemerédi construction for C5 (see [2]).Lemma 3.2. Let H be a graph with χ(H) = r ≥ 3.Then,3r−83r−5 ≤ δlin-rem(H) ≤r−2r−1.Moreover,δlin-rem(H) = r−2r−1 if H contains no critical edge.Proof. Denote h = |V (H)|. The bound δlin-rem(H) ≤ r−2r−1 holds for every r-chromatic graph H; this followsfrom the Erdős-Simonovits supersaturation theorem, see by [12, Section 4.1] for the details.Suppose now that H contains no critical edge, and let us show that δlin-rem(H) ≥ r−2r−1. To this end, weconstruct, for every small enough ε and infinitely many n, an n-vertex graph G with δ(G) ≥ r−2r−1n, such thatG has at most O(ε2nh) copies of H, but Ω(εn2) edges must be deleted to turn G into an H-free graph. LetT (n, r − 1) be the Turán graph, i.e. the complete (r − 1)-partite graph with balanced parts V1, . . . , Vr−1.Add an εn-regular graph inside V1 and let the resulting graph be G. We first claim that G contains O(ε2nh)copies of H. As H contains no critical edge and χ(H) = r, every copy of H in G contains two edges e ande′ inside V1. If e and e′ are disjoint, then there are at most n2(εn)2 = ε2n4 choices for e and e′ and then atmost nh−4 choices for the other h− 4 vertices of H. Therefore, there are at most ε2nh such H-copies. And ife and e′ intersect, then there are at most n(εn)2 = ε2n3 choices for e and e′ and then at most nh−3 choicesfor the remaining vertices, again giving at most ε2nh such H-copies. So G indeed has O(ε2nh) copies of H.On the other hand, we claim that one must delete Ω(εn2) edges to destroy all H-copies in G. Observethat G has at least 12 |V1|·εn·|V2|·· · ··|Vr−1| = Ωr(εnr) copies of Kr, and every edge participates in at mostnr−2 of these copies. Thus, deleting cεn2 edges can destroy at most cεnr copies of Kr. If c is a small enoughconstant (depending on r), then after deleting any cεn2 edges, there are still Ω(εnr) copies of Kr. Then,by Lemma 2.1, the remaining graph contains Kr[h], the h-blowup of Kr, and hence H. This completes theproof that δlin-rem(H) ≥ r−2r−1.We now prove that δlin-rem(H) ≥ 3r−83r−5 for every r-chromatic graph H. It suffices to construct, for everysmall enough ε and infinitely many n, an n-vertex graph G with δ(G) ≥ 3r−83r−5n, such that G has at mostO(ε2nh) copies of H but at least Ω(εn2) edges must be deleted to turn G into an H-free graph. The vertexset of G consists of r + 1 disjoint sets V0, V1, V2, . . . , Vr, where |Vi| =n3r−5 for i = 0, 1, 2, 3 and |Vi| =3n3r−5for i = 4, 5, . . ., r. Put complete bipartite graphs between V0 and V1, between V0 ∪ V1 and V4 ∪ · · · ∪ Vr, andbetween Vi to Vj for all 2 ≤ i < j ≤ r. Put εn-regular bipartite graphs between V1 and V2, and between V1and V3. The resulting graph is G (see Figure 2). It is easy check that δ(G) ≥ 3r−83r−5n. Indeed, let 0 ≤ i ≤ rand v ∈ Vi. If 4 ≤ i ≤ r then v is connected to all vertices except for Vi; if i ∈ {2, 3} then v is connected toall vertices except V0 ∪ V1 ∪ Vi; and if i ∈ {0, 1} then v is connected to all vertices except V2 ∪ V3 ∪ Vi. Inany case, the neighborhood of v misses at most3n3r−5 vertices.We claim that G has at most O(ε2nh) copies of H. Indeed, observe that if we delete all edges between V1and V2 then the remaining graph is (r − 1)-colorable with coloring V1 ∪ V2, V0 ∪ V3, V4, . . . , Vr. Hence, everycopy of H must contain an edge e between V1 and V2. Similarly, every copy of H must contain an edge e′between V1 and V3. If e, e′ are disjoint then there are at most n2(εn)2 = ε2n4 ways to choose e, e′ and thenat most nh−4 ways to choose the remaining vertices of H. And if e and e′ intersect then there are at mostn(εn)2 = ε2n3 ways to choose e, e′ and at most nh−3 for the remaining h − 3 vertices of H. In both cases,the number of H-copies is at most ε2nh, as required.Now we show that one must delete Ω(εn2) edges to destroy all copies of H in G. Observe that G has|V1| · (εn)2 · |V4| · · · · · |Vr| = Ω(ε2nr) copies of Kr between the sets V1, . . . , Vr. We claim that every edge f4
V1V2V3V0V1V2V3V4V0Figure 2: Proof of Lemma 3.2, r = 3 (left) and r = 4 (right). Heavy edges indicate complete bipartite graphswhile dashed edges indicate εn-regular bipartite graphs.participates in at most εnr−2 of these r-cliques. Indeed, by the same argument as above, every copy of Krcontaining f must contain an edge e from E(V1, V2) and an edge e′ from E(V1, V3). Suppose without loss ofgenerality that e ̸= f (the case e′ ̸= f is symmetric). In the case f ∩ e = ∅, there are at most n · εn = εn2choices for e and at most nr−4 choices for the remaining vertices of Kr, giving at most εnr−2 copies of Krcontaining f. And if f, e intersect, then there are at most εn choices for e and at most nr−3 for the remainingr − 3 vertices, giving again εnr−2.We see that deleting cεn2 edges of G can destroy at most cε2nr copies of Kr. Hence, if c is a smallenough constant, then after deleting any cεn2 edges there are still Ω(ε2nr) copies of Kr left. By Lemma 2.1,the remaining graph contains a copy of Kr[h] and hence H. This completes the proof.4Polynomial removal thresholds: Proof of Theorem 1.4We say that an n-vertex graph G is ε-far from a graph property P (e.g. being H-free for a given graph H, orbeing homomorphic to a given graph F) if one must delete at least εn2 edges to make G satisfy P. Trivially,if G has εn2 edge-disjoint copies of H, then it is ε-far from being H-free. We need the following result from[21].Theorem 4.1. For every graph F on f vertices and for every ε > 0, there is q = qF (ε) = poly(f/ε), suchthat the following holds. If a graph G is ε-far from being homomorphic to F, then for a sample of q verticesx1, . . . , xq ∈ V (G), taken uniformly with repetitions, it holds that G[{x1, . . . , xq}] is not homomorphic to Fwith probability at least 23.Theorem 4.1 is proved in Section 2 of [21].In fact, [21] proves a more general result on propertytesting of the so-called 0/1-partition properties. Such a property is given by an integer f and a functiond : [f]2 → {0, 1, ⊥}, and a graph G satisfies the property if it has a partition V (G) = V1 ∪ · · · ∪ Vf suchthat for every 1 ≤ i, j ≤ f (possibly i = j), it holds that (Vi, Vj) is complete if d(i, j) = 1 and (Vi, Vj) isempty if d(i, j) = 0 (if d(i, j) =⊥ then there are no restrictions). One can express the property of having ahomomorphism into F in this language, simply by setting d(i, j) = 0 for i = j and ij /∈ E(F). In [21], theclass of these partition properties is denoted GPP0,1, and every such property is shown to be testable bysampling poly(f/ε) vertices. This implies Theorem 4.1.Proof of Theorem 1.4. Recall that IH is the set of minimal graphs H′ (with respect to inclusion) such thatH is homomorphic to H′. For convenience, put δ := δhom(IH). Our goal is to show that δpoly-rem(H) ≤ δ+αfor every α > 0. So fix α > 0 and let G be a graph with minimum degree δ(G) ≥ (δ + α)n and withεn2 edge-disjoint copies of H. By the definition of the homomorphism threshold, there is an IH-free graphF (depending only on IH and α) such that if a graph G0 is IH-free and has minimum degree at least(δ + α2 ) · |V (G0)|, then G0 is homomorphic to F. Observe that if a graph G0 is homomorphic to F thenG0 is H-free, because F is free of any homomorphic image of H. It follows that G is ε-far from beinghomomorphic to F, because G is ε-far from being H-free. Now we apply Theorem 4.1. Let q = qF (ε) begiven by Theorem 4.1. We assume that q ≫ log(1/α)α2and n ≫ q2 without loss of generality. Sample q verticesx1, . . . , xq ∈ V (G) with repetition and let X = {x1, . . . , xq}. By Theorem 4.1, G[X] is not homomorphic toF with probability at least 2/3. As n ≫ q2, the vertices x1, . . . , xq are pairwise-distinct with probability atleast 0.99. Also, for every i ∈ [q], the number of indices j ∈ [q] \ {i} with xixj ∈ E(G) dominates a binomial5
distribution B(q − 1, δ(G)n ). By the Chernoff bound (see e.g. [3, Appendix A]) and as δ(G) ≥ (δ + α)n,the number of such indices is at least (δ + α2 )q with probability 1 − e−Ω(qα2). Taking the union bound overi ∈ [q], we get that δ(G[X]) ≥ (δ + α2 )|X| with probability at least 1 − qe−Ω(qα2) ≥ 0.9, as q ≫ log(1/α)α2.Hence, with probability at least 12 it holds that δ(G[X]) ≥ (δ + α2 )|X| and G[X] is not homomorphic to F. Ifthis happens, then G[X] is not IH-free (by the choice of F), hence G[X] contains a copy of some H′ ∈ IH.By averaging, there is H′ ∈ IH such that G[X] contains a copy of H′ with probability at least12|IH|. Putk = |V (H′)| and let M be the number of copies of H′ in G. The probability that G[X] contains a copy of H′is at most M( qn)k. Using the fact that q = polyH,α( 1ε), we conclude that M ≥12|IH| · ( nq )k ≥ polyH,α(ε)nk.As H → H′, there exists H′′, a blow-up of H′, such that H′′ have the same number of vertices as H, andthat H ⊂ H′′. By Lemma 2.1 for H′ with Vi = V (G) for all i, there exist polyH,α(ε)nv(H′′) copies of H′′ inG, and thus polyH,α(ε)nv(H) copies of H. This completes the proof.5Linear removal thresholds: Proof of Theorem 1.3Here we prove the upper bounds in Theorem 1.3; the lower bounds were proved in Section 3. The first caseof Theorem 1.3 follows from Lemma 3.2, so it remains to prove the other two cases. We begin with somepreparation. For disjoint sets A1, . . . , Am, we write �i∈[m] Ai × Ai+1 to denote all pairs of vertices whichhave one endpoint in Ai and one in Ai+1 for some 1 ≤ i ≤ m, with subscripts always taken modulo m. So agraph G has a homomorphism to the cycle Cm if and only if there is a partition V (G) = A1 ∪ · · · ∪ Am withE(G) ⊆ �i∈[m] Ai × Ai+1.Lemma 5.1. Suppose H is a graph such that χ(H) = 3, H contains a critical edge xy, and odd-girth(H) ≥2k + 1. Then,• There is a partition V (H) = A1 ·∪ A2 ·∪ A3 ·∪ B such that A1 = {x}, A2 = {y} and E(H) ⊆ (A3 × B) ∪(�i∈[3] Ai × Ai+1);• if k ≥ 2, there is a partition V (H) = A1 ·∪ A2 ·∪ · · · ·∪ A2k+1 such that A1 = {x}, A2 = {y} andE(H) ⊆ �i∈[2k+1] Ai × Ai+1. In particular, H is homomorphic to C2k+1.Proof. Write H′ = H − xy, so H′ is bipartite. Let V (H) = V (H′) = L ·∪ R be a bipartition of H′. Asχ(H) = 3, x and y must both lie in the same side of the bipartition. Without loss of generality, assume thatx, y ∈ L. For the first item, set A1 = {x}, A2 = {y}, A3 = R and B = L\{x, y}. Then every edge of G goesbetween B and A3 or between two of the sets A1, A2, A3, as required.Suppose now that k ≥ 2, i.e. odd-girth(H) = 2k + 1 ≥ 5. For 1 ≤ i ≤ k, let Xi be the set of vertices atdistance (i − 1) from x in H′, and let Yi be the set of vertices at distance (i − 1) from y in H′. Note thatX1 = {x} and Y1 = {y}. Also, Xi, Yi lie in L if i is odd and in R if i is even. WriteL′ := L\k�i=1(Xi ∪ Yi),R′ := R\k�i=1(Xi ∪ Yi),We first claim that {X1, . . . , Xk, Y1, . . . , Yk, L′, R′} forms a partition of V (H).The sets X1, . . . , Xk areclearly pairwise-disjoint, and so are Y1, . . . , Yk. Also, all of these sets are disjoint from L′, R′ by definition.So we only need to check Xi and Yj are disjoint for every pair 1 ≤ i, j ≤ k. Suppose for contradiction thatthere exists u ∈ Xi ∩ Yj for some 1 ≤ i, j ≤ k. Then i ≡ j (mod 2), because otherwise Xi, Yj are containedin different parts of the bipartition L, R. By the definition of Xi and Yj, H′ has a path x = x1, x2, . . . , xi = uand a path y = y1, y2, . . . , yj = u. Then, x = x1, x2, . . . , xi = u = yj, yj−1, . . . , y1, y, x forms a closed walk oflength i+j −1, which is odd as i ≡ j (mod 2). Hence, odd-girth(H) ≤ 2k−1, contradicting our assumption.By definition, there are no edges between Xi and Xj for j − i ≥ 2, and similarly for Yi, Yj. Also, thereare no edges between L′ ∪ R′ and �k−1i=1 (Xi ∪ Yi) because the vertices in L′ ∪ R′ are at distance more than kto x, y. Moreover, if k is even then there are no edges between Xk ∪ Yk and R′, and if k is odd then thereare no edges between Xk ∪ Yk and L′. Next, we show that there are no edges between Xi and Yj for any1 ≤ i, j ≤ k except (i, j) = (1, 1). Indeed, if i = j then e(Xi, Yj) = 0 because Xi, Yj are on the same side6
xyX2Y2L′R′xyX2Y2X3Y3R′L′Figure 3: Proof of Lemma 5.1, k = 2 (left) and k = 3 (right). Edges indicate bipartite graphs where edgescan be present.of the bipartition L, R. So suppose that i ̸= j, say i < j, and assume by contradiction that there is anedge uv with u ∈ Xi, v ∈ Yj. Then v is at distance at most i + 1 ≤ k from x, implying that Yj intersectsX1 ∪ · · · ∪ Xi+1, a contradiction.Finally, we define the partition A1, . . . , A2k+1 that satisfies the assertion of the second item. If k is eventhen take A1, . . . , A2k+1 to be X1, Y1, . . . , Yk−1, Yk∪R′, L′, Xk, . . . , X2, and if k is odd then take A1, . . . , A2k+1to be X1, Y1, . . . , Yk−1, Yk ∪ L′, R′, Xk, . . . , X2. See Figure 3 for an illustration. By the above, in both casesit holds that E(H) ⊆ �i∈[2k+1] Ai × Ai+1, as required.For vertex u ∈ V (G), denote by NG(u) the neighborhood of u and let degG(u) = |NG(u)|. For verticesu, v ∈ V (G), denote by NG(u, v) the common neighborhood of u, v and let degG(u, v) = |NG(u, v)|.Lemma 5.2. Let H be a graph on h vertices such that χ(H) = 3 and H contains a critical edge xy. Let Gbe a graph on n vertices with δ(G) ≥ αn. Let ab ∈ E(G) such that degG(a, b) ≥ αn. Then, there are at leastpoly(α)nh−2 copies of H in G mapping xy ∈ E(H) to ab ∈ E(G).Proof. By the first item of Lemma 5.1, there is a partition V (H) = A1 ·∪ A2 ·∪ A3 ·∪ B such that A1 ={x}, A2 = {y} and E(H) ⊆ (A3 × B) ∪ �i∈[3] Ai × Ai+1. Let s = |A3| and t = |B|. Each u ∈ NG(a, b) has atleast αn − 2 ≥ αn2 neighbors not equal to a, b. Hence, there are at least 12 · |NG(a, b)| · αn2 ≥ α2n24edges uvwith u ∈ NG(a, b) and v /∈ {a, b}. Applying Lemma 2.1 with H = K2, V1 = NG(a, b) and V2 = V (G)\{a, b},we see that there are poly(α)ns+t pairs of disjoint sets (S, T ) such that |S| = s, |T | = t, S ⊆ NG(a, b),a, b /∈ T , and S, T form a complete bipartite graph in G. Given any such pair, it is safe to map x to a, y tob, A3 to S and B to T to obtain an H-copy. Hence, G contains at least poly(α)ns+t = poly(α)nh−2 copiesof H mapping xy to ab.Lemma 5.3. Let H be a graph on h vertices such that χ(H) = 3, H contains a critical edge xy, andodd-girth(H) ≥ 5. Let G be a graph on n vertices, let ab ∈ E(G), and suppose that there exists A ⊂ NG(a)and B ⊂ NG(b) such that |A| , |B| ≥ αn and |NG(a′, b′)| ≥ αn for all distinct a′ ∈ A and b′ ∈ B. Then thereare at least poly(α)nh−2 copies of H in G mapping xy ∈ E(H) to ab ∈ E(G).Proof. By Lemma 5.1 (using odd-girth(H) ≥ 5), there exists a partition V (H) = A1 ·∪ · · · ·∪ A5 such thatA1 = {x}, A2 = {y}, and E(H) ⊆ �i∈[5] Ai × Ai+1. Put si = |Ai| for i ∈ [5].There are at least (|A||B| − |A|)/2 ≥ α2n2/3 pairs {a′, b′} of distinct vertices with a′ ∈ A, b′ ∈ B(the factor of 2 is due to the fact that each pair in A ∩ B is counted twice).Each such pair a′, b′ hasat least αn − 2 ≥ αn/2 common neighbors c′ /∈ {a, b}, by assumption.Therefore, there are at leastα2n23· αn2= α3n36triples (a′, b′, c′) such that a′ ∈ A, b′ ∈ B, and c′ ̸= a, b is a common neighbor of a′, b′.By Lemma 2.1 with H = K2,1 and V1 = A, V2 = B, V3 = V (G)\{a, b}, there are at least poly(α)ns3+s4+s5corresponding copies of K2,1[s3, s5, s4], i.e., triples of disjoint sets (R, S, T ) such that R ⊆ A, S ⊆ B, a, b /∈ T ,|R| = s5, |S| = s3, |T | = s4, and (R, T ) and (S, T ) form complete bipartite graphs in G. Given any such7
triple, we can safely map A1 = {x} to a, A2 = {y} to b, A5 to R, A3 to S, and A4 to T to obtain a copy ofH. Thus, there are at least poly(α)ns3+s4+s5 = poly(α)nh−2 copies of H mapping xy to ab.In the following theorem we prove the upper bound in the second case of Theorem 1.3.Theorem 5.4. Let H be a graph such that χ(H) = 3, H has a critical edge xy, and H contains a triangle.Then, δlin-rem(H) ≤ 13.Proof. Write h = v(H). Fix an arbitrary α > 0, and let G be an n-vertex graph with minimum degreeδ(G) ≥ ( 13 + α)n and with a collection C = {H1, . . . , Hm} of m := εn2 edge-disjoint copies of H.Foreach i = 1, . . . , m, there exist u, v, w ∈ V (Hi) forming a triangle (because H contains a triangle).AsdegG(u) + degG(v) + degG(w) ≥ 3δ(G) ≥ (1 + 3α)n, two of u, v, w have at least αn common neighbors. Wedenote these two vertices by ai and bi. By Lemma 5.2, G has at least poly(α)nh−2 copies of H which mapxy to aibi. The edges a1b1, . . . , ambm are distinct because H1, . . . , Hm are edge-disjoint. Hence, summingover all i = 1, . . . , m, we see that G contains at least εn2 · poly(α)nh−2 = poly(α)εnh copies of H. Thisproves that δlin-rem(H) ≤ 13 + α, and taking α → 0 gives δlin-rem(H) ≤ 13.In what follows, we need the following very well-known observation, originating in the work of Andrásfai,Erdős and Sós, see [4, Remark 1.6].Lemma 5.5. If δ(G) >22k+1n and odd-girth(G) ≥ 2k + 1 for k ≥ 2, then G is bipartite.Proof. Suppose by contradiction that G is not bipartite and take a shortest odd cycle C in G, so |C| ≥ 2k+1.As �x∈C deg(x) ≥ (2k+1)δ(G) > 2n, there exists a vertex v /∈ C with at least 3 neighbors on C. Then thereare two neighbors x, y ∈ C of v such that the distance of x, y along C is not equal to 2. Then by taking theodd path between x, y along C and adding the edges vx, vy, we get a shorter odd cycle, a contradiction.We will also use the following result of Letzter and Snyder, see [17, Corollary 32].Theorem 5.6 ([17]). Let G be a {C3, C5}-free graph on n vertices with δ(G) > n4 . Then G is homomorphicto C7.We can now finally prove the upper bound in the last case of Theorem 1.3.Theorem 5.7. Let H be a graph such that χ(H) = 3, H contains critical edge xy, and odd-girth(H) ≥ 5.Then δlin-rem(H) ≤ 14.Proof. Denote h = |V (H)|. Write odd-girth(G) = 2k + 1 ≥ 5. By the second item of Lemma 5.1, thereis a partition V (H) = A1 ·∪ A2 ·∪ · · · ·∪ A2k+1 such that |A1| = |A2| = 1, and E(H) ⊆ �i∈[2k+1] Ai × Ai+1.Denote si = |Ai| for each i ∈ [2k + 1], so H is a subgraph of the blow-up C2k+1[s1, . . . , s2k+1] of C2k+1. Letc1 = c1(C2k+1, s1, . . . , s2k+1) > 0 and c2 = c2(k) > 0 be the constants given by Lemma 2.1 and Lemma 2.3,respectively. According to Theorem 1.2, δpoly-rem(C2k+1) =12k+1 < 14, and hence there exists a constantc3 = c3(k) > 0 such that if G is a graph on n vertices with δ(G) ≥n4 and at least εn2 edge-disjointC2k+1-copies, then G contains at least c3ε1c3 n2k+1 copies of C2k+1. Set c := c1 · min(c2, c3).Let α > 0 and ε be small enough; it suffices to assume that ε <�α2200k(k+2)�1/c. Let G be a graph onn vertices with δ(G) ≥ ( 14 + α)n which contains at least εn2 edge-disjoint copies of H. Our goal is to showthat G contains ΩH,α(εnh) copies of H. Suppose first that G contains at least εcn2 edge-disjoint copies ofC2ℓ+1 for some 1 ≤ ℓ ≤ k. If ℓ < k, then G contains Ωk(εc/c2n2k+1) = Ωk(εc1n2k+1) copies of C2k+1 byLemma 2.3 and the choice of c2. And if ℓ = k, then G contains Ωk(εc/c3n2k+1) = Ωk(εc1n2k+1) copies ofC2k+1 by Theorem 1.2 and the choice of c3. In either case, G contains Ωk(εc1n2k+1) copies of C2k+1. Butthen, by Lemma 2.1 (with V1 = · · · = V2k+1 = V (G)), G contains at least ΩH(εc1/c1nh) = ΩH(εnh) copiesof C2k+1[s1, . . . , s2k+1], and hence ΩH,α(εnh) copies of H. This concludes the proof of this case.From now on, assume that G contains at most εcn2 edge-disjoint C2ℓ+1-copies for every ℓ ∈ [k]. Let Cℓbe a maximal collection of edge-disjoint C2ℓ+1-copies in G, so |Cℓ| ≤ εcn2. Let Ec be the set of edges which8
are contained in one of the cycles in C1 ∪ · · · ∪ Ck. Let S be the set of vertices which are incident with atleast αn10 edges from Ec. Then|Ec| ≤k�ℓ=1(2ℓ + 1)εcn2 = k(k + 2)εcn2 and |S| ≤ 2 |Ec|αn/10 ≤ 20k(k + 2)εcαn < αn10 ,(1)where the last inequality holds by our assumed bound on ε. Let G′ be the subgraph of G obtained by deletingthe edges in Ec and the vertices in S. Note that G′ ⊆ G − Ec is {C3, C5, . . . , C2k+1}-free because for every1 ≤ ℓ ≤ k, we removed all edges from a maximal collection of edge-disjoint C2ℓ+1-copies.Claim 5.8. |V (G′)| > (1 − α10)n and δ(G′) > ( 14 + 4α5 )n.Proof. The first inequality follows from (1) as |V (G′)| = n − |S|. Each v ∈ V (G)\S has at most αn10 incidentedges from Ec, and at most |S| < αn10 neighbors in S, thereby degG′(v) > degG(v) − αn5 ≥ ( 14 + 4α5 )n. Hence,δ(G′) > ( 14 + 4α5 )n.Claim 5.9. G′ is homomorphic to C7. Moreover, G′ is bipartite unless k = 2.Proof. Recall that G′ is {C3, C5, . . . , C2k+1}-free. As k ≥ 2, G′ is {C3, C5}-free. Also, δ(G′) > n4 ≥ |V (G′)|4by Claim 5.8.So G′ is homomorphic to C7 by Theorem 5.6.If k ≥ 3, i.e.odd-girth(H) ≥ 7, thenodd-girth(G′) ≥ 2k + 3 ≥ 9. As δ(G′) > n4 , G′ is bipartite by Lemma 5.5.The rest of the proof is divided into two cases based whether or not G′ is bipartite. These cases are handledby Propositions 5.10 and 5.11, respectively.Proposition 5.10. Suppose that G′ is bipartite. Then G has ΩH,α(εnh) copies of H.Proof. Let (L′, R′) be a bipartition of G′, so V (G) = L′ ·∪ R′ ·∪ S. Let L1 ⊆ S (resp. R1 ⊆ S) be the set ofvertices of S having at most αn5 neighbors in L′ (resp. R′). Let G′′ be the bipartite subgraph of G inducedby the bipartition (L′′, R′′) := (L′ ·∪ L1, R′ ·∪ R1). Let S′′ = V (G)\(L′′ ·∪ R′′), so V (G) = L′′ ·∪ R′′ ·∪ S′′.We claim that δ(G′′) ≥ ( 14 + α2 )n. First, as G′ is a subgraph of G′′, we have degG′′(v) > ( 14 + 4α5 )n foreach v ∈ V (G′) ⊆ V (G′′) by Claim 5.8. Now we consider vertices in V (G′′) \ V (G′) = L1 ∪ R1. Each v ∈ L1has at most |S| ≤ αn10 neighbors in S and at most αn5neighbors in L′, by the definition of L1. Hence, vhas at least degG(v) − 3α10 n ≥ ( 14 + α2 )n neighbors in R′ ⊆ V (G′′). By the symmetric argument for verticesv ∈ R1, we get that δ(G′′) ≥ ( 14 + α2 )n, as required.For an edge uv ∈ E(G)\E(G′′), we say uv is of type I if u, v ∈ L′′ or u, v ∈ R′′, and we say that uv isof type II if u ∈ S′′ or v ∈ S′′. Every edge in E(G)\E(G′′) is of type I or II. Since χ(H) = 3 and G′′ isbipartite, each copy of H in G must contain an edge of type I or an edge of type II (or both). As G hasεn2 edge-disjoint H-copies, G contains at least εn22edges of type I or at least εn22edges of type II. We nowconsider these two cases separately. See Fig. 4 for an illustration. Recall that xy ∈ E(H) denotes a criticaledge of H.Case 1:G contains εn22edges of type I.Fix any edge ab ∈ E(G) of type I. Without loss of generality,assume a, b ∈ L′′ (the case a, b ∈ R′′ is symmetric). We claim that G has poly(α)nh−2 copies of H mappingxy ∈ E(H) to ab ∈ E(G). If degG(a, b) ≥ αn2 then this holds by Lemma 5.2. Otherwise, degG(a, b) < αn2 ,and thus|R′′| ≥ |NG′′(a) ∪ NG′′(b)| ≥ degG′′(a) + degG′′(b) − degG(a, b) > 2δ(G′′) − αn2 > n2 ,using that δ(G′′) ≥ ( 14 + α2 )n. Thus, |L′′| < n2 . This implies that for all a′ ∈ NG′′(a), b′ ∈ NG′′(b),degG′′(a′, b′) ≥ 2δ(G′′) − |L′′| ≥ αn.Now, by Lemma 5.3 (with A = NG′′(a) and B = NG′′(b)), there are poly(α)nh−2 copies of H mapping xyto ab, as claimed. Summing over all edges ab of type I, we get εn22 · poly(α)nh−2 = poly(α)εnh copies of H.This completes the proof in Case 1.9
L′′R′′abL′′R′′aba′b′L′′R′′S′′aba′b′Figure 4: Proof of Proposition 5.10: Case 1 with degG(a, b) ≥αn2(left), Case 1 with degG(a, b) <αn2(middle) and Case 2 (right). The red part is the common neighborhood of a and b (or a′ and b′).Case 2:G contains εn22edges of type II.Note that the number of edges of type II is trivially at most|S′′| n.Thus, |S′′| ≥εn2 .Fix some a ∈ S′′.By the definition of L′′, R′′ and S′′, v has at leastαn5neighbors in L′ ⊆ L′′ and at least αn5 neighbors in R′ ⊆ R′′. Without loss of generality, assume |L′′| ≤ |R′′|,thereby |L′′| ≤n2 .Now fix any b ∈ L′′ adjacent to a; there are at leastαn5choices for b.We have|NG(a) ∩ R′′| ≥ αn5 and |NG′′(b)| ≥ δ(G′′) > n4 , and for all a′ ∈ NG(a) ∩ R′′, b′ ∈ NG′′(b) ⊆ R′′ it holds thatdegG′′(a′, b′) ≥ 2δ(G′′) − |L′′| ≥ αn. Therefore, by Lemma 5.3, G has poly(α)nh−2 copies of H mapping xyto ab. Enumerating over all a ∈ S′′ and b ∈ NG(a) ∩ L′′, we again get ΩH,α(εnh) copies of H in G. Thiscompletes the proof of Proposition 5.10.Proposition 5.11. Suppose G′ is non-bipartite but homomorphic to C7. Then G has ΩH,α(εnh) copies of H.Proof. By Claim 5.9 we must have k = 2 , so odd-girth(H) = 5. The proof is similar to that of Proposi-tion 5.10, but instead of a bipartition of G′, we use a partition corresponding to a homomorphism into C7.Let V (G)\S = V (G′) = V ′1 ·∪ V ′2 ·∪ · · · ·∪ V ′7 be a partition of V (G′) such that E(G′) ⊆ �i∈[7] V ′i × V ′i+1.Here and later, all subscripts are modulo 7. We have V ′i ̸= ∅ for all i ∈ [7], because otherwise G′ would bebipartite. For i ∈ [7], let Si be the set of vertices in S having at most 2αn5neighbors in V (G′)\ (V ′i−1 ∪V ′i+1).In case v lies in multiple Si’s, we put v arbitrarily in one of them. Set V ′′i:= V ′i ∪ Si. Let G′′ be the7-partite subgraph of G with parts V ′′1 , . . . , V ′′7 and with all edges of G between V ′′iand V ′′i+1, i = 1, . . . , 7.By definition, G′ is a subgraph of G′′, and G′′ is homomorphic to C7 via the homomorphism V ′′i �→ i. PutS′′ := V (G)\V (G′′) = S \ �7i=1 Si. We now collect the following useful properties.Claim 5.12. The following holds:(i) δ(G′′) ≥ ( 14 + α2 )n.(ii) For every i ∈ [7] and for every u, v ∈ V ′′ior u ∈ V ′′i , v ∈ V ′′i+2, it holds that degG′′(u, v) ≥ αn.(iii) For every i ∈ [7], every v ∈ V ′′ihas at least αn neighbors in V ′′i−1 and at least αn neighbors in V ′′i+1.(iv) For every a ∈ S′′, there are i, j with j − i ≡ 1, 3 (mod 7) and |NG(a) ∩ V ′′i | ,��NG(a) ∩ V ′′j�� > 2αn25 .Proof. fds(i) Let i ∈ [7] and v ∈ V ′′i . If v ∈ V (G′), then degG′′(v) ≥ degG′(v) ≥ δ(G′) > ( 14 + α2 )n, using Claim 5.8.Otherwise, v ∈ Si. By definition, v has at most 2αn5neighbours in V (G′)\(V ′i−1 ∪V ′i+1). Also, v has atmost |S| ≤ αn10 neighbours in S. It follows that v has at least degG(v)− 2αn5 − αn10 ≥ ( 14 + α2 )n neighborsin V ′′i−1 ∪ V ′′i+1. Hence, degG′′(v) > ( 14 + α2 )n.(ii) First, observe that|V ′′i | +��V ′′i+2�� ≥�14 + α2�n(2)10
for all i ∈ [7]. Indeed, V ′′i+1 is non-empty, and fixing any v ∈ V ′′i+1, we have |V ′′i | +��V ′′i+2�� ≥ degG′′(v) ≥δ(G′′) ≥ ( 14 + α2 )n. By applying (2) to the pairs (i + 2, i + 4) and (i − 2, i), we get��V ′′i−1�� +��V ′′i+1�� +��V ′′i+3�� ≤ n − (��V ′′i+2�� +��V ′′i+4��) − (��V ′′i−2�� + |V ′′i |) ≤ n − 2�14 + α2�n < n2 .(3)Now let i ∈ [7]. For u, v ∈ V ′′iwe have NG′′(u) ∪ NG′′(v) ⊆ V ′′i−1 ∪ V ′′i+1, and for u ∈ V ′′i , v ∈ V ′′i+2we have NG′′(u) ∪ NG′′(v) ⊆ V ′′i−1 ∪ V ′′i+1 ∪ V ′′i+3. In both cases, |NG′′(u) ∪ NG′′(v)| < n2 by (3). AsdegG′′(u) + degG′′(v) ≥ 2δ(G′′) ≥ ( 12 + α)n, we have degG′′(u, v) > αn, as required.(iii) We first argue that |V ′′i | ≤ ( 14 − 3α2 )n for each i ∈ [7]. Indeed, by applying (2) to the pairs (i − 1, i + 1),(i + 2, i + 4), (i + 3, i + 5), we get|V ′′i | ≤ n − (��V ′′i−1�� +��V ′′i+1��) − (��V ′′i+2�� +��V ′′i+4��) − (��V ′′i+3�� +��V ′′i+5��) ≤ n − 3�14 + α2�n =�14 − 3α2�n.Now, for every v ∈ V ′′i , we have NG′′(v) ⊆ V ′′i−1 ∪ V ′′i+1 and��V ′′i−1�� ,��V ′′i+1�� < ( 14 − 3α2 )n. Hence, v hasat least degG′′(v) − ( 14 − 3α2 )n ≥ αn neighbors in each of V ′′i−1, V ′′i+1.(iv) Let I be the set of i with |NG(a) ∩ V ′′i | ≥ 2αn25 . If I is empty, then a has less than 5 · 2αn25= 2αn5neighbors in every V (G′)\(V ′i−1 ∪V ′i+1) and therefore can not be in S′′. Suppose for contradiction thatthere exist no i, j ∈ I with j − i ≡ 1, 3 (mod 7). We claim that there is j ∈ [7] such that I ⊆ {j, j + 2}.Fix an arbitrary i ∈ I. Then, i ± 1, i ± 3 /∈ I by assumption. Also, at most one of i + 2, i − 2 isin I, because (i − 2) − (i + 2) ≡ 3 (mod 7). So I ⊆ {i, i + 2} or I ⊆ {i − 2, i}, proving our claimthat I ⊆ {j, j + 2} for some j. By the definition of I, a has at most 5 · 2αn25=2αn5neighbors inV (G′)\(V ′j ∪ V ′j+2). Hence, a ∈ Sj+1. This contradicts the fact that a ∈ S′′, as S′′ ∩ Si+1 = ∅.We continue with the proof of Proposition 5.11. Recall that the edges in E(G) \ E(G′′) are preciselythe edges of G not belonging to �i∈[7] V ′′i × V ′′i+1. For an edge ab ∈ E(G)\E(G′′), we say ab is of type I ifa, b ∈ V (G′′), and of type II if a ∈ S′′ or b ∈ S′′. Clearly, every edge in E(G)\E(G′′) is either of type Ior of type II. Since odd-girth(H) = 5 and C5 is not homomorphic to C7, every H-copy in G must containsome edge of type I or of type II (or both). As G has εn2 edge-disjoint H-copies, G must have at least εn22edges of type I or at least εn22edges of type II. We consider these two cases separately. See Fig. 5 for anillustration. Recall that xy ∈ E(H) denotes a critical edge of H.Case 1:G contains εn22edges of type I. Fix any edge ab of type I, where a ∈ V ′′i and b ∈ V ′′j for i, j ∈ [7].We now show that G has poly(α)nh−2 copies of H mapping xy ∈ E(H) to ab. As ab /∈ E(G′′), we havei−j ≡ 0, ±2, ±3 (mod 7). When j−i ≡ 0, ±2 (mod 7), we have degG(a, b) ≥ degG′′(a, b) > αn by Claim 5.12(ii). Then, by Lemma 5.2, G has poly(α)nh−2 copies of H mapping xy to ab, as required. Now suppose thatj−i ≡ ±3 (mod 7), say j ≡ i+3 (mod 7). Denote A := NG(a)∩V ′′i−1 and B := NG(b)∩V ′′j+1 = NG(b)∩V ′′i−3.We have that |A| , |B| ≥ αn by Claim 5.12 (iii), and |NG(a′, b′)| > αn for all a′ ∈ A, b′ ∈ B by Claim 5.12(ii). Now, by Lemma 5.3, G has poly(α)nh−2 copies of H mapping xy to ab, proving our claim. Summingover all edges ab of type I, we get εn22 · poly(α)nh−2 = ΩH,α(εnh) copies of H in G, finishing this case.Case 2:G contains εn22edges of type II. Notice that the number edges incident to S′′ is at most |S′′| n,meaning that |S′′| ≥ εn2 . Fix any a ∈ S′′. By Claim 5.12 (iv), there exist i, j ∈ [7] with j − i ≡ 1, 3 (mod 7)and |NG(a) ∩ V ′′i | ,��NG(a) ∩ V ′′j�� > 2αn25 . Fix any b ∈ NG(a) ∩ V ′′i (there are at least 2αn25 choices for b). TakeA = NG(a)∩V ′′j and B = NG(b)∩V ′′i+1. We have that |A| ≥ 2αn25 , and |B| ≥ αn by Claim 5.12 (iii). Further,as j − (i + 1) ≡ 0, 2 (mod 7), Claim 5.12 (ii) implies that |NG(a′, b′)| > αn for all a′ ∈ A, b′ ∈ B. Now,by Lemma 5.3, G has poly(α)nh−2 copies of H mapping xy to ab. Summing over all choices of a ∈ S′′ andb ∈ V ′′i , we acquire |S′′| · 2αn25 · poly(α)nh−2 = ΩH,α(εnh) copies of H in G. This completes the proof of Case2, and hence the proposition.Propositions 5.10 and 5.11 imply the theorem.11
V ′′1V ′′2V ′′3V ′′4V ′′5V ′′6V ′′7abV ′′1V ′′2V ′′3V ′′4V ′′5V ′′6V ′′7aba′b′V ′′1V ′′2V ′′3V ′′4V ′′5V ′′6V ′′7S′′ aba′b′Figure 5: Proof of Proposition 5.11: Case 1 for j = i + 2 (left), Case 1 for j = i + 3 (middle) and Case 2 forj = i + 3 (right). The red part is the common neighborhood of a and b (or a′ and b′).6Concluding remarks and open questionsIt would be interesting to determine the possible values of δpoly-rem(H) for 3-chromatic graphs H. So far weknow that12k+1 is a value for each k ≥ 1. Is there a graph H with 15 < δpoly-rem(H) < 13? Also, is it truethat δpoly-rem(H) > 15 if H is not homomorphic to C5?Another question is whether the inequality in Theorem 1.4 is always tight, i.e. is it always true thatδpoly-rem(H) = δhom(IH)?Finally, we wonder whether the parameters δpoly-rem(H) and δlin-rem(H) are monotone, in the sense thatthey do not increase when passing to a subgraph of H. We are not aware of a way of proving this withoutfinding δpoly-rem(H), δlin-rem(H).References[1] P. Allen, J. Böttcher, S. Griffiths, Y. Kohayakawa, and R. Morris. The chromatic thresholds of graphs.Advances in Mathematics, 235:261–295, 2013. 1[2] N. Alon. Testing subgraphs in large graphs. Random Structures & Algorithms, 21(3-4):359–370, 2002.1, 3, 1[3] N. Alon and J. H. Spencer. The probabilistic method. John Wiley & Sons, 2016. 4[4] B. Andrásfai, P. Erdös, and V. T. Sós. On the connection between chromatic number, maximal cliqueand minimal degree of a graph. Discrete Mathematics, 8(3):205–218, 1974. 1, 5[5] S. Brandt. On the structure of dense triangle-free graphs. Combinatorics, Probability and Computing,8(3):237–245, 1999. 1[6] S. Brandt and S. Thomassé. Dense triangle-free graphs are four-colorable: A solution to the Erdős-Simonovits problem. preprint, 2011. 1[7] C.-C. Chen, G. P. Jin, and K. M. Koh. Triangle-free graphs with large degree. Combinatorics, Probabilityand Computing, 6(4):381–396, 1997. 1[8] O. Ebsen and M. Schacht. Homomorphism thresholds for odd cycles. Combinatorica, 40(1):39–62, 2020.1, 1[9] P. Erdös. On extremal problems of graphs and generalized graphs. Israel Journal of Mathematics,2(3):183–190, 1964. 2[10] P. Erdős and M. Simonovits. On a valence problem in extremal graph theory. Discrete Mathematics,5(4):323–334, 1973. 1[11] J. Fox. A new proof of the graph removal lemma. Annals of Mathematics, pages 561–579, 2011. 112
[12] J. Fox and Y. Wigderson. Minimum degree and the graph removal lemma. Journal of Graph Theory,2021. 1, 1, 1, 1, 2, 3, 3[13] L. Gishboliner, A. Shapira, and Y. Wigderson. An efficient asymmetric removal lemma and its limita-tions. arXiv preprint arXiv:2301.07693, 2023. 2[14] W. Goddard and J. Lyle. Dense graphs with small clique number. Journal of Graph Theory, 66(4):319–331, 2011. 1[15] R. Häggkvist. Odd cycles of specified length in non-bipartite graphs. In North-Holland MathematicsStudies, volume 62, pages 89–99. Elsevier, 1982. 1[16] G. Jin. Triangle-free four-chromatic graphs. Discrete Mathematics, 145(1-3):151–170, 1995. 1[17] S. Letzter and R. Snyder. The homomorphism threshold of {C3, C5}-free graphs. Journal of GraphTheory, 90(1):83–106, 2019. 1, 5, 5.6[18] T. Łuczak. On the structure of triangle-free graphs of large minimum degree. Combinatorica, 26(4):489–493, 2006. 1[19] T. Łuczak and S. Thomassé. Coloring dense graphs via VC-dimension. arXiv preprint arXiv:1007.1670,2010. 1[20] J. Lyle. On the chromatic number of H-free graphs of large minimum degree. Graphs and Combinatorics,27(5):741–754, 2011. 1[21] Y. Nakar and D. Ron. On the testability of graph partition properties. In Approximation, Randomiza-tion, and Combinatorial Optimization. Algorithms and Techniques (APPROX/RANDOM 2018). SchlossDagstuhl-Leibniz-Zentrum fuer Informatik, 2018. 4, 4[22] H. Oberkampf and M. Schacht. On the structure of dense graphs with bounded clique number. Com-binatorics, Probability and Computing, 29(5):641–649, 2020. 1[23] I. Z. Ruzsa and E. Szemerédi. Triple systems with no six points carrying three triangles. In Combi-natorics (Proc. Fifth Hungarian Colloq., Keszthely, 1976), Vol. II, Colloq. Math. Soc. János Bolyai,,volume 18, pages 939–945. North-Holland, Amsterdam-New York, 1978. 1[24] M. Sankar. Homotopy and the homomorphism threshold of odd cycles. arXiv preprint arXiv:2206.07525,2022. 1[25] C. Thomassen. On the chromatic number of triangle-free graphs of large minimum degree. Combina-torica, 22(4):591–596, 2002. 1[26] C. Thomassen. On the chromatic number of pentagon-free graphs of large minimum degree. Combina-torica, 27(2):241–243, 2007. 113
123version https://git-lfs.github.com/spec/v1oid sha256:6503929c15108ce7ea45b4c8accf863438e2f04a9512a8567c8c763233d742b0size 406327712345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837L-HYDRA: MULTI-HEAD PHYSICS-INFORMED NEURALNETWORKSZONGREN ZOU∗ AND GEORGE EM KARNIADAKIS†Abstract. We introduce multi-head neural networks (MH-NNs) to physics-informed machinelearning, which is a type of neural networks (NNs) with all nonlinear hidden layers as the body andmultiple linear output layers as multi-head. Hence, we construct multi-head physics-informed neuralnetworks (MH-PINNs) as a potent tool for multi-task learning (MTL), generative modeling, andfew-shot learning for diverse problems in scientific machine learning (SciML). MH-PINNs connectmultiple functions/tasks via a shared body as the basis functions as well as a shared distributionfor the head. The former is accomplished by solving multiple tasks with MH-PINNs with each headindependently corresponding to each task, while the latter by employing normalizing flows (NFs) fordensity estimate and generative modeling. To this end, our method is a two-stage method, and bothstages can be tackled with standard deep learning tools of NNs, enabling easy implementation inpractice. MH-PINNs can be used for various purposes, such as approximating stochastic processes,solving multiple tasks synergistically, providing informative prior knowledge for downstream few-shotlearning tasks such as meta-learning and transfer learning, learning representative basis functions,and uncertainty quantification. We demonstrate the effectiveness of MH-PINNs in five benchmarks,investigating also the possibility of synergistic learning in regression analysis. We name the open-source code “Lernaean Hydra” (L-HYDRA), since this mythical creature possessed many heads forperforming important multiple tasks, as in the proposed method.Key words.PINNs, meta-learning, multi-tasking, transfer learning, generative models, nor-malizing flows, stochastic problemsMSC codes. 34F05, 62M45, 65L99, 65M99, 65N991. Introduction. Learning across tasks has drawn great attention recently indeep learning and is an emerging theme in scientific machine learning (SciML), dueto the fact that several classes of scientific problems are similar and/or related in-trinsically by their common physics.Intuitively, if tasks are similar, e.g., in thecontext of approximating stochastic processes [44], learning solution operators of ordi-nary/partial differential equations (ODEs/PDEs) [28], and solving parametric PDEs[42, 19, 4], it may be beneficial to relate them in the modeling, algorithm design,and/or solving procedure. In this regard, machine learning solvers, developed rapidlyin the past few years, are considerably more flexible and of higher potential comparedto traditional numerical solvers. Significant progress has been witnessed in the generalarea, including meta-learning for solving ODEs/PDEs [30, 27, 34, 6], transfer learningfor physics-informed neural networks (PINNs) [3, 7], transfer learning for domain shiftin solving PDEs [14], multi-task learning for PINNs [40], and generative methods forsolving stochastic differential equations (SDEs) [44, 46, 15]. More recently, operatorlearning [28, 24] in which direct operator mapping is learned and subsequently usedfor other tasks in one-shot format has attracted a lot of attention.Multi-head neural networks (MH-NNs) fit perfectly different scenarios of learningacross tasks. They were originally proposed as members of hard-parameter sharingneural networks (NNs) for deep multi-task learning (MTL) [5], in which multipletasks, denoted as Tk, k = 1, ..., M, where M is the number of total tasks, are solvedsimultaneously. The general goals of using MH-NNs in MTL are diverse: achieving∗Division of Applied Mathematics,Brown University,Providence,RI 02912,USA (zon-gren zou@brown.edu).†Corresponding author.Division of Applied Mathematics, Brown University, Providence, RI02912, USA (george karniadakis@brown.edu).1arXiv:2301.02152v1 [cs.LG] 5 Jan 2023
2Z. ZOU AND G. E. KARNIADAKISbetter performance for all tasks, learning good and useful representations for down-stream tasks, and/or boosting the learning of main tasks with the help of auxiliarytasks. Moreover, although originally designed for solving multiple tasks, MH-NNs inrecent years have also been extensively used for meta-learning. For example, in [41],the connection between MTL and meta-learning was analyzed, and meta-learning al-gorithms for MH-NN were discussed; in [25], it was shown that MH-NNs, trained inMTL fashion also perform task-specific adaptation in meta-learning; [37] argued thatthe effectiveness of model-agnostic meta-learning [10], a well-known meta-learning al-gorithm, may be due to successfully learned good representations rather than learnedadaptation, and MH-NNs were used to study the detailed contributions of NNs infast task adaptations. Overall, it is commonly acknowledged in the literature thatwhen used to solve previous tasks, MH-NNs are capable of distilling useful sharedinformation and storing it in their bodies and heads.In this paper, we develop MH-NNs for physics-informed machine learning [17],propose multi-head physics-informed neural networks (MH-PINNs), and further in-vestigate their applicability and capabilities to MTL, generative modeling, and meta-learning. A MH-PINN, as shown in Fig. 1, is built upon a conventional MH-NN andconsists of two main parts, the body and multiple heads, and each head connects toa specific ODE/PDE task. Many architecture splitting strategies for MH-NNs areadopted in different applications scenarios; e.g., for some computer vision problems,a NN is split such that the body consists of convolutional layers and is followed byfully-connected layers as heads. In this paper, however, we choose the simplest one,i.e., the body consists of all nonlinear layers and the head is the last linear layer,for the following two reasons: (1) the dimensionality of the head is reduced, whichenables fast density estimation (see next section); and (2) the body spontaneouslyprovides a set of basis functions.Fig. 1. Schematic view of the structure of multi-head physics-informed neural networks (MH-PINNs) with M different heads, which are built upon conventional multi-head neural networks.The shared layers are often referred to as body and the task-specific layer as head.Generally,uk, k = 1, ..., M represent M solutions to M different ODEs/PDEs, formulated in Eq. (2.1), whichmay differ in source terms fk, boundary/initial condition terms bk, or differential operator Fk.The novelty and major contributions of this work are as follows:1. We propose a new physics-informed generative method using MH-PINNs forlearning stochastic processes from data and physics.2. We propose a new method for physics-informed few-shot regression problemswith uncertainty quantification using MH-PINNs.3. We study and demonstrate the effectiveness of MTL and synergistic learningwith MH-NNs in regression problems.The paper is organized as follows. In Sec. 2, we present the problem formulation,
Fiui(α)/ = fi(α), Biui(α)/ = bi(α)headtask,1F2[u2(α)] = f2(α), B2[u2(α)] = b2(α)head,u2Body-FM[uM(α)] = fM(α), BM[uM(c)] = bM(c)headuMtask,ML-HYDRA3details of MH-PINNs, and the general methodology, including how to use MH-PINNsfor MTL, generative modeling, downstream few-shot physics-informed learning withuncertainty quantification (UQ). In Sec. 3, we discuss existing research closely relatedto our work and compare them conceptually. In Sec. 4, we test MH-PINNs with fivebenchmarks, each of which corresponds to one or more learning purposes, e.g., MTLand generative modeling.In Sec. 5, we investigate MTL and synergistic learningwith the function approximation example. We conclude and summarize in Sec. 6.The details of our experiments, such as NN architectures and training strategies, canbe found in Appendix A and B, as well as in the L-HYDRA open-source codes onGitHub, which will be released once the paper is accepted.2. Methodology. We assume that we have a family of tasks, {Tk}Mk=1, each ofwhich is associated with data Dk, k = 1, ..., M. The primary focus of this paper is onscientific computing and ODEs/PDEs, and therefore we further assume {Tk}Mk=1 arephysics-informed regression problems [17].Consider a PDE of the following form:Fk[uk(x)] = fk(x), x ∈ Ωk,(2.1a)Bk[uk(x)] = bk(x), x ∈ ∂Ωk,(2.1b)where k denotes the index of the task and k = 1, ..., M, x is the general spatial-temporal coordinate of Dx dimensions, Ωk are bounded domains, fk and uk are theDu-dimensional source terms and solutions to the PDE, respectively, Fk are generaldifferential operators, Bk are general boundary/initial condition operators, and bk areboundary/initial condition terms. For simplicity, throughout this paper, the domainand the boundary/initial operator, denoted as Ω and B, are assumed to be the samefor all tasks, and the solutions uk to be task-specific. The task Tk is described asapproximating uk, and/or fk, and/or Fk, and/or bk, from data Dk and Eq. (2.1).Traditional numerical solvers often tackle {Tk}Mk=1 independently, without lever-aging or transferring knowledge across tasks. The PINN method [38] was designed tosolve ODEs/PDEs independently using NNs, which, however, yields M uncorrelatedresults. In this paper instead we treat {Tk}Mk=1 as a whole and connect them with MH-PINNs, the architecture of which, shown in Fig. 1, enforces basis-functions-sharingpredictions on the solutions uk. In addition to the informative representation/body,we further relate {Tk}Mk=1 by assuming that their corresponding heads in MH-PINNs,denoted as {Hk}Mk=1, are samples of a random variable with unknown probabilitydensity function (PDF), denoted as H and p(H), respectively. The shared body anda generative model of H immediately form a generative model of the solution u, andgenerators of the source term f and the boundary/initial term b as well by substitut-ing u into Eq. (2.1) and automatic differentiation [1], from which a generative methodfor approximating stochastic processes is seamlessly developed.Generators of u, f and b, as discussed in [30], are able to provide an informativeprior distribution in physics-informed Bayesian inference [43, 26] as well as in UQfor SciML [47, 36], where the informative prior compensates for the insufficiency ofobservational data to address the physics-informed learning problems with even a fewnoisy measurements. In this paper, we generalize such problem to deterministic casesas well, where the data is noiseless and methods and results are deterministic, andrefer to it as few-shot physics-informed learning. The general idea is to apply priorknowledge learned from connecting {Tk}Mk=1 with MH-PINNs to new tasks, denotedas ˜T , associated with insufficient data ˜D, for accurate and trustworthy predictions.
4Z. ZOU AND G. E. KARNIADAKISThe schematic view of the learning framework is illustrated in Fig. 2, and the detailsare explained next.Fig. 2. Schematic view of the learning framework and the proposed method. Three generaltypes of learning are addressed: physics-informed learning, generative modeling, and few-shot learn-ing. The physics-informed learning is performed with MH-PINNs; the generative modeling is doneafterwards by density estimate over the head via normalizing flows (NFs); in the end the few-shotphysics-informed learning is accomplished with prior knowledge obtained from previous two via eitherfine-tuning with the learned regularization or Bayesian inference with the learned prior distribution.The body represents the set of basis functions learned from solving {Tk}Mk=1 with MH-PINNs, andthe density of the head, estimated from its samples using NFs, acts as the regularization, the priordistribution, or the generator together with the body, depending on the usage of MH-PINNs in ap-plications.2.1. Multi-head physics-informed neural networks (MH-PINNs). Hardparameter sharing is the most commonly used approach when MTL with NNs areconsidered, and MH-NNs, as its simplest instance, are frequently adopted [5, 39].A MH-PINN, as described earlier, is composed of a body and multiple heads. Wedenote by Φ the body and by Hk the head for Tk. Notice that here Φ : RDx → RL isa function parameterized by a neural network with parameter θ, and Hk ∈ RL+1 is avector, where L is the number of neurons on the last layer of the body. Let us defineHk = [h0k, h1k, ..., hLk ]T , Φ(x) = [φ1(x), ..., φL(x)]T , where φ : RDx → R, and then thesurrogate for the solution in Tk can be rewritten as ˆuk(x) = h0k+�Ll=1 hlkφl(x), ∀x ∈ Ω.The approximated source terms and boundary/initial terms are derived from Eq. (2.1)accordingly. In the MTL framework , given data {Dk}Mk=1 and physics Eq. (2.1), theloss function L is formulated as follows:(2.2)L({Dk}Mk=1; θ, {Hk}Mk=1) = 1MM�k=1Lk(Dk; θ, Hk),where Lk denotes the common loss function in PINNs. Conventionally, the data forTk is expressed as Dk = {Dfk, Dbk, Duk}, where Dfk = {xik, f ik}N fki=1, Dbk = {xik, bik}N bki=1 and
samples of headLearned distribution of head1.21.21.01.0 -0.8 0.8 learned by normalizing0.60.6 flows0.40.4 -0.2 0.2 0.00.0 -1.0 -0.50.00.51.01.51.0-0.5 0.00.51.0generative modeling { Hklprior knowledgenew tasks TFine-tuningBodyBayesian inference1.00-0.750.500.250.000.250.500.751.00L-HYDRA5Duk = {xik, uik}N uki=1, and Lk as follows:(2.3)Lk(Dk; θ, Hk) = wfkN fkN fk�i=1||Fk(ˆuk(xik)) − f ik||2 + wbkN bkN bk�i=1||B(ˆuk(xik)) − bik||2+ wukN ukN uk�i=1||ˆuk(xik) − uik||2 + R(θ, Hk),where || · || represents a properly chosen norm, R(·) is a regularization method overthe parameters of NNs, N fk , N bk, N uk are the numbers of data points for fk, bk, uk, andwfk, wbk, wuk are weights to balance different terms in the loss function.2.2. Generative modeling and normalizing flows (NFs). As mentionedearlier, MH-PINNs connect {Tk}Mk=1 by making two assumptions: (1) the solutionsuk, k = 1, ..., M share the same set of basis functions, Φ; and (2) the correspondingcoefficients are samples of the same random variable, H. In [7], Φ was used as a carrierof prior knowledge from {Tk}Mk=1 in downstream physics-informed learning tasks. Inthis work, we extend it by utilizing the information from the head as well by estimatingthe PDF and a generator of H from its samples, {Hk}Mk=1, using normalizing flows(NFs). The interested readers are directed to [32, 22] for reviews of NFs as well as[9, 33, 20] for developments of some popular NFs.We choose NFs over other commonly used generative models, e.g., generativeadversarial networks (GANs) [13], variational auto-encoders (VAEs) [21], or diffusionmodels [16], because the NF serves as both a density estimator and a generator. Theformer is able to provide proper regularization in the downstream few-shot physics-informed learning tasks, while the latter leads to a physics-informed generative methodfor approximating stochastic processes. It is worth noting that in previous works onphysics-informed generative methods [44, 46, 15], NNs are trained by measurementsover uk, and/or fk, and/or bk. Our model, on the other hand, learns through samplesof the head, which is obtained from MTL in the first step. This learning strategybrings two substantial advantages: (1) flexibility in dealing with unstructured data,e.g., inconsistent measurements across tasks; (2) simplicity and controlability of thetraining by decoupling the physics-informed learning and the generative modeling.2.3. Prior knowledge utilized in the downstream tasks. Here, we describedetails on how to utilize the prior knowledge stored in MH-PINNs, for downstreamfew-shot physics-informed learning task, ˜T , which is defined the same as all othertasks in the upstream training, but with much fewer measurements. Training of MH-PINNs and NFs yield a body, Φ, samples of heads, {Hk}Mk=1, and an estimated PDFof the head, ˆp(H) ≈ p(H). In solving ˜T with ˜D, we fix the body Φ and find the head˜H that best explains the data ˜D and the physics in Eq. (2.1). Noiseless and noisy dataare considered in this paper: for noiseless data, regular NN training is performed onthe head for new tasks to provide deterministic predictions, where the learned PDFof the head, ˆp(H), acts as a regularization term in the loss function; for noisy data,Bayesian inference is performed on the head as well, in which ˆp(H) denotes the priordistribution. Details are presented in the following.2.3.1. Regularization in optimization. Limited data in few-shot learningoften leads to over-fitting and/or poor inter-/extrapolation performance. In this re-gard, regularizing the head according to its PDF is able to prevent over-fitting and
6Z. ZOU AND G. E. KARNIADAKISprovide additional prior knowledge for better inter-/extrapolation performance. Theoptimization problem is cast as(2.4)˜H∗ = arg min˜HL∗( ˜D; ˜H), where L∗( ˜D; ˜H) = L( ˜D; ˜H) − α log p( ˜H)≈ L( ˜D; ˜H) − α log ˆp( ˜H),where L is the regular loss function in physics-informed learning for data ˜D and param-eter ˜H, and α ≥ 0 is the coefficient to adjust the regularization effect. Problem (2.4)in this work is solved with gradient descent.2.3.2. Prior distribution in Bayesian inference. As opposed to point esti-mate obtained by solving the optimization problem (2.4), the posterior distributionof the head in ˜T is obtained using Bayesian inference. Similar as in [30, 47], theposterior distribution of ˜H is established as follows:(2.5)p( ˜H| ˜D) ∝ p( ˜D| ˜H)p( ˜H) ≈ p( ˜D| ˜H)ˆp( ˜H),where p( ˜H| ˜D) is the posterior distribution, p( ˜D| ˜H) is the likelihood distribution,which is often assumed to be independent Gaussian over all measurements in ˜D,and ˆp is the estimated PDF of the head via NFs. Intractability of distribution (2.5)requires approximation methods, among which Markov chain Monte Carlo methods,such as Hamiltonian Monte Carlo (HMC) [31], generally provide the most accurateestimation.Moreover, the relatively low dimension of ˜H also enables the use ofLaplace’s approximation (LA) [18], which is employed in this paper as an alternativeto HMC.3. Related works. Deep NNs in recent years have been extensively investigatedfor solutions of ODEs/PDEs, SDEs as well as operator learning. Although not explic-itly introduced as MH-PINNs, MH-NNs were first used to solve ODEs/PDEs by [7],in which MH-PINNs were pre-trained on multiple similar tasks, and then the headswere discarded while the body was kept and transferred to solving new tasks, by eitherleast square estimate for linear ODEs/PDEs, or fine-tuning with gradient descent fornonlinear ones. In [7], a one-shot transfer learning algorithm for linear problems wasproposed but other potential uses of MH-NNs, e.g., MTL and generative modeling,were not discussed, as opposed to the work presented herein. Furthermore, [7] focusedonly on fast and deterministic predictions with high accuracy using sufficient cleandata, while in this paper, we study the applicability of MH-NNs to few-shot physics-informed learning as well, where data is insufficient and/or noisy, and address suchcases with UQ. We note that MH-NN was also used as a multi-output NN in [45],which, however, focused on solving single tasks and obtaining uncertainties.Generative modeling in the context of scientific computing has also been studiedrecently, and a few attempts for adopting deep generative NNs to SciML problemshave been made in [44, 46, 15], most of which have focused on approximating stochas-tic processes and on solving SDEs. We propose a new physics-informed generativemethod, as an alternative to the current ones, using MH-PINNs, and test it in approxi-mating stochastic processes. In this regard, our method is functionally the same as thecurrent ones, but technically different. All previous methods address physics-informedgenerative modeling using end-to-end learning strategies by coupling two dissimilartypes of learning, physics-informed learning and generative modeling, which may beproblematic for implementation and usage in practice when either type of learningbecomes more complicated. Our method, on the other hand, addresses the problem in
L-HYDRA7an entirely new angle by decoupling those two: physics-informed learning is performedfirst and is followed by learning generators. To this end, our method is a two-stepmethod, and with the help of well-developed algorithms from both fields, our methodhas advantages both in flexibility and simplicity in implementation.4. Results. In this section, we test our method using five benchmarks. The firstone is a pedagogical function regression, in which we aim to demonstrate the basicapplicability and capabilities of our method, showing the importance of incorporatingthe distribution of the head in the downstream tasks and in obtaining results withor without uncertainty. The second example is a nonlinear ODE system, in whichwe test our method in approximating stochastic processes through a differential op-erator, compare different NFs, and eventually compare our method with anotherwell-known physics-informed generative model, physics-informed GANs (PI-GANs)[44] in generative modeling. The third is a 1-D nonlinear reaction-diffusion equation,the fourth is a 2-D nonlinear Allen-Cahn equation, and the fifth is the 2-D stochasticHelmholtz equation with 20 dimensions. In all examples unless stated otherwise, datafor {Dk}Mk=1 are noise-free and task-wisely sufficient, while ˜D in downstream tasks isinsufficient, which makes the downstream tasks of the few-shot type. In addition, ex-cept for the first example, results from Bayesian inference are obtained by employingHMC, and the predicted mean denoted as µ and predicted standard deviation denotedas σ are computed from the posterior samples of functions or unknown parameters.The predicted uncertainty is defined as 2σ in this paper.4.1. Function approximation. We start with a function regression problemusing only data and no physics, which is a degenerate instance of Eq. (2.1) with Fkbeing fixed as an identity operator, no B and bk, and uk = fk being task-specific. Inthis case, Dk and ˜D are given as {(xik, f ik)}Nki=1 and {(xi, f i)}Ni=1, respectively, and Tkand ˜T are defined as approximating functions fk and ˜f from Dk and ˜D, respectively.The stochastic function f in this example is defined as follows:(4.1)f(x) = A cos(ωx) + 2βx, x ∈ [−1, 1],A ∼ U[1, 3), ω ∼ U[2π, 4π), P(β = ±1) = 0.5,where U stands for uniform distribution and P(Ξ) is defined as the probability ofthe event Ξ. Our goal is to approximate f from data with MH-NNs and NFs, andsolving the downstream few-shot regression tasks ˜T as well, in which two functions,2 cos(2πx)+2x and 2 cos(4πx)−2x, are regressed from 4 and 5 measurements equidis-tantly distributed on [−0.9, −0.1], respectively.For the training of MH-NNs and NFs, 1, 000 f subject to Eq. (4.1) are sampled,each of which forms a regression task with 40 measurements sampled equidistantly on[−1, 1] as data. Samples of f for training are displayed in Fig. 3(a). Both noiselessand noisy data cases are considered in the few-shot regression tasks. As described inSec. 2.3, the former is solved by fine-tuning the head using gradient descent, whilethe latter is solved by estimating the posterior distribution (Eq. (2.5)) using HMCand LA. The noise ε is assumed to be independent additive Gaussian noise with scale0.2, i.e., ε ∼ N(0, 0.22). In the downstream few-shot regression tasks we compare ourmethod with two other approaches, the transfer learning (TL) method from [7], whichonly transfers the body, Φ, and the regular NN method, in which no prior knowledgeis employed and all parameters of NN are trained.Results for approximating f and solving the downstream tasks are presented inFig. 3. As shown in Fig. 3(a), our method approximates the stochastic function f
8Z. ZOU AND G. E. KARNIADAKIS(a)(b)(c)Fig. 3. Results for approximating the stochastic function defined in Eq. (4.1) and solving thedownstream few-shot regression tasks. (a) Left: 1, 000 samples generated from the exact distribu-tion; middle: 1, 000 samples generated from the learned generator; right: statistics computed fromsamples, in which we refer to the interval of mean ± 2 standard deviations as bound. (b)/(c) Resultsfor the downstream tasks. Left: results for noiseless cases using our method, the transfer learning(TL) method in [7], and regular NN method; middle: results for noisy case using our method withHMC for posterior estimate; right: results for the same noisy case using our method with LA forposterior estimate.well, demonstrating the capability of MH-NNs in generative modeling. In solving thedownstream tasks with noiseless data, L2 regularization is imposed in the TL methodand regular NN method, to prevent over-fitting when only 4 or 5 measurements areavailable. As we can see from Figs. 3(b) and (c), our approach yields accurate predic-tions and performs significantly better than the other two in both tasks, particularlyin the region where there are no measurements. By comparing our approach withthe NN method, we can see that prior knowledge of f is learned from {Tk}Mk=1 andtransferred successfully to new downstream tasks. By comparing our approach withthe TL method, we can see that the prior knowledge is stored in both the body and(the distribution of) the head. For the noisy cases, it is shown that, for both tasks andboth posterior estimating methods, the predictions are accurate and trustworthy: thepredicted means agree with the references and the errors are bounded by the predicteduncertainties. It is worth noting that the predicted uncertainties do not develop in theinterval [0, 1] and show periodic patterns, even if there are no measurements. That isbecause an informative prior, which is learned by MH-NNs and NFs, is imposed onthe head in Bayesian inference.The target functions in downstream tasks considered previously are chosen to bein-distribution. They are regressed well with insufficient data, mainly because they
4320-1-24-1-0.8-0.6-0.4-0.200.20.40.60.84320-1-2-34-1-0.8-0.6-0.4-0.200.20.40.60.86-1-0.8-0.6-0.4-0.200.20.40.60.86-1-0.8-0.6-0.4-0.200.20.40.60.8Predicted meanPredicted boundReference meanReference bound2.26-1-0.8-0.6-0.4-0.200.20.40.60.85MeasurementsReferenceOurs3TL2NN01-2 -34-1-0.8-0.6-0.4-0.200.20.40.60.852 std4MeasurementsReference3Mean20-1-2 -34-1-0.8-0.6-0.4-0.200.20.40.60.852 std4MeasurementsReference3Mean20-1-2 -34-1-0.8-0.6-0.4-0.200.20.40.60.8540-1-2 -3-1-0.8-0.6-0.4-0.200.20.40.60.8L-HYDRA9belong to the space of functions, on which the generator is trained. However, whenfunctions in the downstream tasks are out-of-distribution (OOD), our approach failsto produce good predictions, even if the data is sufficient, as shown in Fig. 4. Here,the target function is chosen to be 2 cos(4.5π) + x with both ω and β being OOD.Fluctuations are predicted but do not match the reference. In Fig. 4, we can furthersee that when data is sufficient, a NN trained from scratch significantly outperformsour approach, showing that, for OOD functions, the more we rely on the learnedregularization, which is indicated by the value of α in Eq. (2.4), the more erroneousthe prediction is.Fig. 4. Results for regression on an out-of-distribution function. Left: few-shot regression withclean data using our approach; middle: few-shot regression with noisy data using our approach withHMC for posterior estimate; right: regression with sufficient clean data using regular NN methodand our approach with different regularization terms, α in Eq. (2.4).4.2. Nonlinear ODE system. In this example, we consider the following ODEsystem [28], which describes the motion of a pendulum with an external force:(4.2)du1dt = u2,du2dt = −λ sin(u1) + f(t),with initial condition u1(0) = u2(0) = 0. In Eq. (4.2), f is the external force andλ is a constant. Here, to demonstrate and study the capability of our method ingenerative modeling, we first consider the case where f is a Gaussian process andλ = 1 is known, which is referred to as the forward problem. Different from previousstudies [44, 46, 15], in which a stochastic process is approximated directly by theoutput of NNs, in this example we place the differential operator right after NNs andapproximate the stochastic process f as the source term in Eq. (2.1). We also testour method on the inverse problem, where the values of λ in Eq. (4.2) are unknown in{Tk}Mk=1 and ˜T . The forward problem corresponds to Eq. (2.1) with Fk, bk being thesame for all tasks and uk, fk being task-specific, while the inverse problem correspondsto Eq. (2.1) with bk being the same and uk, fk, and the differential operator Fk beingdifferent as a consequence of task-specific λ.4.2.1. Forward problem. We first assume λ = 1 in Eq. (4.2) is known, andthe data on f is available, i.e., Dk = {(xik, f ik)}Nki=1, k = 1, ..., M. As described before,we employ MH-PINNs to solve {Tk}Mk=1 all at once and then employ NFs to learn thedistribution of the head. Consequently, we obtain generators of f and u. In this case,f is assumed to be a Gaussian process with squared kernel function:(4.3)f(t) ∼ GP(0, K), t ∈ [0, 1], K(x, x′) = exp(−|x − x′|22l2),where the correlation length l is set to 0.1, 0.25, 0.5. As discussed in Sec. 2.2, manytypes of NFs have been developed in the past decade for generative modeling and
5MeasurementsReferenceOurs30-2-3-0.8-0.6-0.4-1-0.200.20.40.60.852 std4MeasurementsReference3Mean2-2 -34-1-0.8-0.6-0.4-0.200.20.40.60.85Measurements4ReferenceNN3= 10-62= 10-410-20-2-34-1-0.8-0.6-0.4-0.200.20.40.60.8110Z. ZOU AND G. E. KARNIADAKISdensity estimate. MH-PINNs, when used as generators, are compatible with all NFs.In this regard, we compare three popular NFs, RealNVP [9], MAF [33] and IAF [20],and eventually compare MH-PINNs (with NFs) against PI-GAN [44] in approximatingthe Gaussian process defined in Eq. (4.3) with different correlation lengths.For the training of MH-PINNs and NFs as well as PI-GANs, 2, 000 f are sampledwith respect to Eq. (4.3), each of which forms a physics-informed regression task with65 measurements of f equidistantly sampled on [0, 1] as data. Notice that the ODEsystem in Eq. (4.2) can be rewritten in a simpler format as follows:(4.4)utt = −λ sin(u) + f(t), t ∈ [0, 1],with initial conditions u(0) = ut(0) = 0. Hence, we choose to use Eq. (4.4) to buildthe loss function for physics-informed learning.Results for comparisons are shown in Fig. 5 and Table 1.From the spectralanalysis of the approximated Gaussian processes shown in Fig. 5, we can see thatMH-PINNs with MAF and IAF are comparable with PI-GANs while MH-PINNswith RealNVP fall marginally behind. As shown in Table 1, the computational costsof MH-PINNs with MAF and RealNVP are significantly lower than PI-GANs, whileMH-PINNs with IAF is more expensive than PI-GANs. We note that in this examplewe also record the computational cost for sampling using different generators. Asshown in Table 1, PI-GANs are significantly faster in generating samples. That isbecause, generally, GANs require relatively shallow NNs as opposite to NFs, for whicha deep architecture is needed to keep up the expressivity. Among three NFs, IAF isthe fastest in sampling while MAF is the lowest, as opposed to training, which isconsistent with the properties of those two NFs: MAF is slow for the forward pass,which is used to generate samples, and fast for the inverse pass, which is used tocompute the density, while IAF is the opposite. Despite the fact that MAF is slow insampling, considering its fast training and good performance, we equip MH-PINNswith MAF as the density estimator and the generator for all other examples in thispaper.Fig. 5.Approximating Gaussian processes as the source term in Eq. (4.2) using differentmodels:spectra of the correlation structure for the learned generators, for different correlationlengths, l. The covariance matrix is constructed using 10, 000 generated samples, and eigen-valuesare averaged over 10 generators trained independently.4.2.2. Inverse problem. Next, we assume λ in Eq. (4.2) is unknown, and somemeasurements of u are available, in addition to f, i.e., Dk = {{xik, f ik}N fki=1, {xik, uik}N uki=1}.MH-PINNs are first employed to infer uk as well as λk from data Dk and physics, andNFs are employed afterwards to learn from samples of Hk and λk. To this end, thegenerative model is for the joint distribution of u, f and λ. Here, we assume f followsa truncated Karhuen-Loeve (KL)-expansion, with 5 leading terms, of the Gaussianprocess with squared kernel function and correlation length 0.1, and for each task Tk,
1 = 0.10.3e-ReferencePI-GAN0.25MAFIAF0.2RealNVPeigenvalues0.150.10.050051015components1 = 0.250.70.60.5eigenvalues0.40.30.20.10051015components1 = 0.50.90.80.70.60.50.40.30.20.10051015componentsL-HYDRA11MAFIAFRealNVPPI-GANPhase 1134s134s134sN/APhase 2252s3939s245sN/ATotal386s4073s379s3243sSampling1.98 × 10−1s1.48 × 10−2s1.50 × 10−2s2.29 × 10−3sTable 1Computational time for different models to approximate Gaussian process with correlationlength l = 0.1.The MH-PINN method is a two-step method and hence its computation is de-composed into two parts: training MH-PINNs referred to as phase 1 and training NFs referred toas phase 2. Sampling time is defined to be the average time needed to generate 10, 000 samples of u.λk = 12 exp(�[0,1] f 2k(t)dt). As for the downstream task ˜T , the target is to infer u andλ from insufficient data of u and f.For the training of MH-PINNs and NFs, 2, 000 samples of f are generated anddisplayed in Fig. 6(a). For each task, we assume 33 measurements of fk and 9 mea-surements of uk, equidistantly distributed on [0, 1], are available, and initial conditionsare hard-encoded in NN modeling. For the downstream task, we assume 1 randommeasurement of u and 8 random measurements of f are available with hard-encodedinitial conditions as well.For the case with noisy measurements, we assume thenoises εf and εu to be additive Gaussian, with 0.05 noise scale for measurements off and 0.005 noise scale for measurements of u, respectively, i.e. εf ∼ N(0, 0.052)and εu ∼ N(0, 0.0052). The reference solution as well as the clean data of uk aregenerated by solving Eq. (4.2) for each task Tk, with corresponding fk and λk usingMatlab ode45.Results are shown in Fig. 6 and Table 2, from which we can see our method is ableto approximate the stochastic process as a source term well and produce accurate andtrustworthy predictions, for u, f and also λ in the downstream task with limited data,in both noiseless and noisy cases. As shown, the PINN method yields unacceptableestimate over both u and λ due to lack of data, while our approach is of much higheraccuracy by integrating prior knowledge from {Tk}Mk=1 with MH-PINNs.PINNMH-PINNλ0.84402.5428Error (%)63.991.21Table 2Estimate of λ and L2 relative error of u for the downstream inverse problem on Eq. (4.2) withclean data, using our approach and the regular PINN method. The reference value for λ is 2.3609.4.3. 1-D nonlinear reaction-diffusion equation. We now test our methodon a 1-D nonlinear time-dependent reaction-diffusion equation, which is commonlyreferred to as Fisher’s equation [2]:ut = Duxx + ku(1 − u), t ∈ [0, 1], x ∈ [−1, 1],(4.5)u(t, −1) = u(t, 1) = 0, t ∈ [0, 1],(4.6)u(0, x) = u0(x), x ∈ [−1, 1],(4.7)where D = 0.1, k = 0.1 and u0(x) is the initial condition function. In this example,we assume that the initial condition function is a stochastic process with the following
12Z. ZOU AND G. E. KARNIADAKIS(a)(b)(c)Fig. 6. Results for the inverse problem of the ODE system (4.2), with initial conditions hard-encoded in NN modeling. (a) Left: 1, 000 samples of f, generated from the exact distribution; middle:1, 000 samples of f, generated from the learned generator; right: statistics computed from samples.The bound is defined as the same as in the caption of Fig. 3. (b) Predicted f and u using PINNsand our approach, for the downstream inverse problem with noiseless data. (c) Predicted f, u andλ with uncertainties using our approach, for the downstream inverse problem with noisy data. Thepredicted mean and standard deviation of λ is 2.4663 and 0.1501, while the reference value is 2.3609.distribution:(4.8)u0(x) = (x2 − 1)55�j=1ξj(cos2(jx) − 1), x ∈ [−1, 1],where ξj, j = 1, ..., 5 are independent and identically distributed (i.i.d.) random vari-ables subject to uniform distribution on [0, 1), i.e., ξj ∼ U[0, 1).Unlike previousexamples, the stochasticity comes from the initial condition rather than the sourceterm. This example corresponds to Eq. (2.1) with Fk and fk being the same for alltasks, and uk and bk being task-specific. In addition to measurements of u0, pointson which the PDE residuals are computed are also required in both {Tk}Mk=1 and ˜T .Hence, the data is Dk = {{(tik, xik), 0}N fki=1, {(0, xik), bik}N bki=1}.For the training, 2, 000 samples of u0(x) are generated, displayed in Fig. 7(a),and each sample forms a physics-informed regression task with 41 measurements ofu0 equidistantly sampled on [−1, 1] as data for initial condition. Besides, for all tasks,a uniform mesh 21 × 41 on temporal-spatial domain [0, 1] × [−1, 1] is used to com-pute the PDE residual loss. For the downstream tasks ˜T , 5 random measurementsof u0 are available and the same uniform mesh is applied. The boundary conditionsare hard-encoded in NN modeling in both {Tk}Mk=1 and ˜T . For the noisy case, the
432-300.10.20.30.40.50.60.70.80.9432-300.10.20.30.40.50.60.70.80.94Predicted meanPredicted bound3Reference meanReference bound2-300.10.20.30.40.50.60.70.80.9t2Measurements1.5Reference Ours1..- PINN0.50-0.5-1-1.5-200.10.20.30.40.50.60.70.80.9t0.150.1U0.050-0.0500.10.20.30.40.50.60.70.80.9t22 std1.5MeasurementsReferenceMean0.50-0.5-1-1.5-200.10.20.30.40.50.60.70.80.9t0.150.10.050-0.0500.10.20.30.40.50.60.70.80.91t2.5Prior (learned from physics)Posterior21.50.523456L-HYDRA13noise ε is assumed to be independent additive Gaussian noise with 0.02 noise scalefor both measurements of u0 and the PDE residual, i.e., ε ∼ N(0, 0.022). Results arepresented in Fig. 7 and Table 3. We can see that our method estimates a good gen-erator of the stochastic processes from data and physics, which provides informativeprior knowledge in the downstream few-shot physics-informed regression tasks. Theprediction is accurate in both noiseless and noisy cases, and the errors in the noisycase are bounded by the predicted uncertainty. The L2 error of u, shown in Table 3,indicates that our approach outperforms the PINN method by a significant amount,hence demonstrating the effectiveness of bringing prior knowledge into solving similartasks.(a)(b)(c)Fig. 7.Generator learning and few-shot physics-informed learning on 1-D time-dependentreaction-diffusion equation (4.5), with boundary conditions hard-encoded in NN modeling. (a) Left:1, 000 training samples of u0; middle: 1, 000 samples of u(0, ·) from the learned generator; right:statistics computed from samples. The bound is defined as the same as in the caption of Fig. 3. (b)Predicted u at t = 0, 0.5, 1 using our approach and the PINN method with noiseless measurements.(c) Predicted mean and uncertainty of u at t = 0, 0.5, 1 using our approach with HMC for posteriorestimate, with noisy measurements.PINNMH-PINNError (%)78.770.22Table 3L2 relative error of u for the downstream few-shot physics-informed learning task on Eq. (4.5)with clean data of u0 using our approach and the PINN method.
0.50.40.30=40.2u0.10-0.1-1-0.8-0.6-0.4-0.200.20.40.60.80.50.40.30=40.2u0.10-0.1-1-0.8-0.6-0.4-0.200.20.40.60.80.5Predicted meanPredicted boundReference mean0.4Reference bound0.30=10.20.1-0.1-1-0.8-0.6-0.4-0.200.20.40.60.80.5MeasurementsReference0.4Ours..-PINN0.30=10.20.10-0.1-1-0.8-0.6-0.4-0.200.20.40.60.80.50.40.3t=0.50.20.10-0.1-1-0.8-0.6-0.4-0.200.20.40.60.80.50.40.3t=10.2u0.10-0.1-1-0.8-0.6-0.4-0.200.20.40.60.80.52 stdMeasurements0.4ReferenceMean0.30=10.2f0.10-0.1-1-0.8-0.6-0.4-0.200.20.40.60.80.50.40.3t=0.50.20.10-0.1-1-0.8-0.6-0.4-0.200.20.40.60.80.50.40.3t=10.2u0.10-0.1-1-0.8-0.6-0.4-0.200.20.40.60.814Z. ZOU AND G. E. KARNIADAKIS4.4. 2-D nonlinear Allen-Cahn equation. We now move to a 2-D steadynonlinear Allen-Cahn equation with Dirichlet boundary conditions [43]:λ∆u + u(u2 − 1) = f, x, y ∈ [0, 1],(4.9)u(x, 0) = u(x, 1) = u(0, y) = u(1, y) = 0,(4.10)where λ = 0.1 is a constant and f is the source term. Here, we impose a distributionto f, which is derived from Eq. (4.9) and the following distribution of the solution u:(4.11)u(x, y) = 155�j=1ξjsin(jπx) sin(jπy)j2π2, x, y ∈ [0, 1],with i.i.d. random variables ξj, j = 1, ..., 5, subject to uniform distribution, i.e. ξj ∼U[0, 1). In this example, we wish to use our method to learn generators of both u and ffrom data of f and physics in Eq. (4.9), and use it to solve the downstream task ˜T withinsufficient data ˜D. This example corresponds to Eq. (2.1) with Fk, bk being the sameamong tasks and fk, uk being task-specific, and the data is Dk = {(xik, yik), f ik}N fki=1.To train the MH-PINNs and NFs, we sample 2, 000 f from its distribution, eachof which is resolved with a 51 × 51 uniform mesh on 2-D spatial domain [0, 1] × [0, 1].As for the downstream task, 100 random measurements of f on the uniform mesh areassumed to be available. The noise is assumed to be independent additive Gaussiannoise with 0.05 noise scale. In both Tk and ˜T , the boundary conditions are hard-encoded in NN modeling. Results as well as the locations of the measurements arepresented in Fig. 8 and Table 4.Similar to all previous examples, our approachdelivers accurate and trustworthy predictions, showing that prior knowledge is learnedand transferred well in both deterministic and Bayesian inferences.(a)(b)Fig. 8. Results for few-shot physics-informed learning on the 2-D nonlinear Allen-Cahn equa-tion Eq. (4.9) with noisy measurements of f. Predicted mean µ and standard deviation σ are com-puted over 1, 000 posterior samples from HMC. The absolute error is defined as the absolute valueof difference between the reference and µ. Black crosses represent the locations of the measurementson f.
reference of f0.90.20.80.70.10.690.500.4-0.10.30.2-0.20.10-0.300.20.40.60.8predicted mean of f1xXXX0.9XX0.2X0.8XXXX+XX0.7XXX0.1X×XXX0.6XXX++XxX90.5X0XX0.4XX-0.1XXX0.3× XXXX0.2×XXX-0.2XX0.1XXXXXXX0-0.300.20.40.60.81absolute error of j10.05交XXXXXX0.9X0.045XXX0.80.04XXXXX0.7XX0.035XXXX0.6XX0.03XX++XX90.5X0.025XXXX0.4XXXXXX0.02XXXX0.3X0.015XXXXXX ×XXXX0.2×0.01XXXXX0.1XX0.005XXXXX+0000.20.40.60.81predicted uncertainty of f0.050.90.0450.80.040.70.0350.60.0390.50.0250.40.020.30.0150.20.010.10.0050000.20.40.60.8reference of u0.010.900.80.7-0.010.690.5-0.020.4-0.030.30.2-0.040.10-0.0500.20.40.60.81predicted mean of u0.010.900.80.7-0.010.690.5-0.020.4-0.030.30.2-0.040.10-0.0500.20.40.60.81absolute error of u0.010.90.0090.80.0080.70.0070.60.00690.50.0050.40.0040.30.0030.20.0020.10.0010000.20.40.60.81predicted uncertainty of u0.010.90.0090.80.0080.70.0070.60.00690.50.0050.40.0040.30.0030.20.0020.10.0010000.20.40.60.81L-HYDRA15PINNMH-PINNError (%)12.820.30Table 4L2 relative error of u for the downstream few-shot physics-informed learning task on Eq. (4.9)with clean data of f, using our approach and the PINN method.4.5. 2-D Stochastic Helmholtz equation. The last example we test in thispaper is the 2-D Helmholtz equation with stochastic source term and Dirichlet bound-ary conditions [35]:(λ2 − ∇2)u = f, x, y ∈ [0, 2π],(4.12)u(x, 0) = u(x, 2π) = u(0, y) = u(2π, y) = 0,(4.13)where λ2 is the Helmholtz constant and f is defined as follows:(4.14)f(x, y) = 2d{d/4�i=1ξi sin(ix) + ξi+d cos(ix) + ξi+2d sin(iy) + ξi+3d cos(iy)},where ξj, j = 1, ..., d are i.i.d. random variables subject to uniform distribution U[0, 1)and d represents the dimension of the randomness. For demonstration purposes, weconsider the case where d = 20 in this paper, unlike the one in [35] with d = 100.The first case we study is the forward problem with λ2 = 1 known. This setupcorresponds to Eq. (2.1) with Fk, bk being shared among tasks and uk, fk being task-specific. Next, we study the inverse problem with unknown λ, where data on u and fare available, which corresponds to Eq. (2.1) with only bk being the same and uk, fkand operator Fk being task-specific. The downstream tasks are defined as the sameas {Tk}Mk=1 in both cases, but with fewer measurements.For both the forward and inverse problems, 10, 000 f are sampled from its distri-bution, and hence 10, 000 tasks are solved with MH-PINNs with boundary conditionshard-encoded in NN modeling. We display the samples of a slice of f in Fig. 9(a).For the forward problem, Dk only contains measurements of the source term fk, i.e.Dk = {{(xik, yik), f ik}N fki=1}, while for the inverse problem Dk also contains measure-ments of the sought solution uk: Dk = {{(xik, yik), f ik}N fki=1, {(xik, yik), uik}N uki=1}. For thetraining in the forward problem, each sample of f is resolved by a 50 × 50 uniformmesh on 2-D spatial domain (0, 2π)×(0, 2π) with boundary excluded. For the inverseproblem, the same 10, 000 samples of f are used, but this time they are resolved witha 21 × 21 uniform mesh. In addition, for each task Tk, measurements of uk on a 6 × 6uniform mesh are available. The reference solution and measurements of u are gen-erated by solving Eq. (4.12) with λ2k =�[0,2π]2 f 2k(x, y)dxdy using the finite differencemethod with five-point stencil. For the downstream tasks, 100 random measurementsof f are available for the forward problem, and 50 random measurements of f and10 random measurements of u are available for the inverse problem. The noise isassumed to be independent additive Gaussian noise with 0.05 noise scale.Results are displayed in Tables 5 and 6, and Figs. 9 and 10.As shown, thelearned generator is able to produce samples of f with high quality as well as providinginformative prior knowledge for the downstream tasks, in both the forward and inverseproblems. As for the noisy case with Bayesian inference and UQ, the predicted meansagree with the references and the absolute errors are mostly bounded by the predicteduncertainties. The effectiveness of our approach for few-shot physics-informed learning
16Z. ZOU AND G. E. KARNIADAKISand the applicability to both deterministic optimization and Bayesian inference havebeen consistently demonstrated in the past five examples.(a)(b)(c)Fig. 9. Generator learning and few-shot physics-informed learning on the stochastic Helmholtzequation (4.12). (a) Left: 1, 000 training samples of a slice of f at y = π; middle: 1, 000 samples ofa slice of f at y = π from the learned generator; right: statistics computed from samples. (b)/(c)Results for the downstream forward problem with 100 random noisy measurements on f, using ourapproach with HMC. From left to right are reference, predicted mean, absolute error, and predicteduncertainty of f/u. Black crosses represent the locations of the measurements of f.PINNMH-PINNError (%)21.141.12Table 5L2 relative error of u for the downstream forward problem on Eq. (4.12) with clean data of f,using our approach and the PINN method.PINNMH-PINNλ1.93281.0170Error (%)59.922.58Table 6Estimate of λ and L2 relative error of u for the downstream inverse problem on Eq. (4.12) withclean data. The reference value of λ is 1.0042.5. Multi-task learning with multi-head neural networks. So far we havemostly focused on using MH-NNs together with NFs to estimate stochastic generators
0.40.2=/9.0U-0.2-0.4-0.60234560.40.2=9.0-0.2-0.4-0.6023456Predicted meanPredicted boundReference mean0.4Reference bound0.2-0.2 -0.4-0.6023456reference of f650.5493021-0.5234561predicted mean of f6XXXXXXXX5XXXXXX0.54XXXX9X3XXXXX02 ×XX1XXX-0.523456absolute error of t0.160.09XX50.080.070.0690.0530.042×0.03+0.020.01X023456predicted uncertainty of f0.160.090.080.0740.0690.0530.0420.030.0210.01023456reference of u60.0450.0204-0.0293-0.042-0.061-0.08-0.1123456predicted mean of u60.0450.0204-0.0293-0.042-0.061-0.08-0.1234561absolute error of u0.0260.01850.0160.01440.01290.0130.00820.0060.00410.0020123456predicted uncertainty of u0.0260.01850.0160.01440.01290.0130.00820.0060.00410.0020123456L-HYDRA17(a)(b)Fig. 10.Results for the downstream inverse problem on the stochastic Helmholtz equa-tion (4.12), with 50 random noisy measurements of f and 10 random noisy measurements of u.λ is estimated as 1.0785 ± 0.0307 in the format of predicted mean ± predicted standard deviation,while the reference value is 1.0042. (a)/(b) From left to right are reference, predicted mean, absoluteerror, and predicted uncertainty of f/u. Black crosses represent locations of the measurements of for u.and learn informative prior knowledge from {Tk}Mk=1.This was achieved by firsttraining MH-NNs in a MTL fashion and then training NFs to estimate the PDF of thehead. Intuitively, the capability of MH-NNs when trained in MTL in capturing sharedinformation is the key to the success in generative modeling and few-shot learning.For physics-informed MTL with MH-PINNs, ODEs/PDEs are solved simultaneously,and assuming the solutions to share the same set of basis functions gives us samplesof the set of coefficients, which enables the generative modeling, followed by few-shotlearning, which is the whole point of the method proposed in this paper. However,the cost and/or the benefit of imposing the same set of basis functions to all solutionshave not been explicitly discussed yet. On one hand, the shared body relates thetraining of tasks, which may be helpful if tasks are similar in certain ways. On theother hand, forcing all solutions to share the same basis functions may also be harmfulwhen they behave differently. In particular, for tasks with sufficient data and physics,forcing them to share the same body with all other tasks may act as a negativeregularization, and single-task learning (STL) may outperform MTL in terms of theprediction accuracy in those specific tasks. In this section, we investigate the effectof MTL using MH-NNs and provide preliminary results and analysis by revisiting thesimple function approximation example in Sec. 4.1, which, hopefully, could provideuseful information and insight for future more rigorous research.5.1. Basis function learning and synergistic learning. As discussed before,the quality and behavior of basis functions learned in MTL are crucial to genera-tive modeling and learning the relation and the representative information of tasks{Tk}Mk=1. We consistently noticed from numerical examples that the initialization ofthe head in MH-NNs has great impact on the average accuracy of MTL, the learning ofthe basis functions, and the distribution of the head. Here, we test three initializationstrategies, random normal method with 0.05 standard deviation referred to as RN
reference of f650.5493021-0.5123456predicted mean of fx6XXXXX XXX5XXXXXXX0.54XXXXXXX93XXXXX X02XXXXXXXX1XXX-0.5123456absolute error of i0.160.0950.080.074X0.0690.053XX X0.0420.030.020.01023456predicted uncertainty of f0.160.0950.080.0740.0690.0530.0420.030.020.01023456reference of u60.0450.0204-0.0293-0.042-0.061-0.08-0.1123456predicted mean of u60.04X50.02XX04-0.02XX93-0.042XXX-0.061-0.08X-0.1123456absolute error of u0.0260.01850.0160.01440.0129xX0.0130.0082X0.0060.0041X0.0020123456predicted uncertainty of u0.0260.01850.0160.01440.01290.0130.00820.0060.00410.002012345618Z. ZOU AND G. E. KARNIADAKIS(0.05), Glorot uniform method [12] referred to as GU, and random normal methodwith 1 standard deviation referred to as RN (1). In the downstream few-shot learningtasks, we fine-tune the head without the learned PDF, which is in fact the TL methodfrom [7], by which the information from the distribution of the head is excluded andthe prediction accuracy is fully determined by the level of prior knowledge containedin the basis functions.As shown in Fig. 11, RN (0.05) yields the least informative basis functions, whosebehavior is dominated by the hyperbolic tangent activation function of NNs. This isfurther demonstrated in the downstream few-shot learning tasks using the TL method.It also provides the worst prediction accuracy on average in MTL, as presented inTable 8. GN and RN (1) perform similarly. Plots of some basis functions seeminglyindicate that RN (1) yields better basis functions, whose behaviors are more similarto the family of functions displayed in Fig. 11(b), which, however, does not necessarilyimply richer prior knowledge in the downstream tasks, as shown in Fig. 11(c).It is shown empirically that compared to other two initialization strategies, MH-NNs with RN (0.05) does not deliver accurate MTL nor synergistic learning in basisfunctions. However, we noticed that, in generative modeling, it performs significantlybetter in terms of accuracy and convergence speed. As shown in Fig. 11(d), samplesfrom the learned generator are of higher quality. We consistently found that initializ-ing heads with relatively small values often led to easy and fast training of NFs andaccurate learning of the generative models. We conjecture that this happens becauseMH-NNs in MTL tend to contain the representative and informative information inthe heads when heads are initialized with small values, while contain it in the basisfunctions when heads are initialized with relatively large values.RN (0.05)GURN (1)Error (%)0.8373 ± 0.23410.1907 ± 0.06900.3131 ± 0.0937Table 7L2 relative errors, from MTL, for 1, 000 tasks, using different initialization methods.Theerrors are displayed in the format of mean ± standard deviation, computed over all tasks.5.2. Multi-Task Learning (MTL) versus Single-Task Learning (STL).As discussed earlier, MTL with MH-NNs does not necessarily result in synergisticlearning nor higher accuracy for all tasks on average. Here, we use again the functionapproximation example in Sec. 4.1, to investigate the effectiveness of MTL with MH-NNs, as compared to STL. The first case we consider here is assuming that the data issufficient. For that, we randomly choose 100 out of the 1, 000 training samples, eachone of which is approximated by a NN trained independently, and compare the resultswith MH-NNs in terms of prediction accuracy. Note that in this case, a MH-NN istrained on 1, 000 functions as before and tested on the chosen 100 functions, while asingle-head NN with the same architecture is trained on 100 functions directly. Resultsare shown in Table 8, from which it is verified empirically that MTL is outperformedby STL under certain circumstances, e.g., when the random normal initializationmethods are used.The second case we consider is assuming that the data is sufficient for some taskswhile insufficient for other tasks. For that, we split equally the 1, 000 tasks into twosubsets of tasks. For the first 500 tasks, we assume we only have 10 measurementsrandomly sampled on [−1, 1], while for the other 500 tasks, we assume we have full 40measurements equidistantly distributed on [−1, 1]. MTL with MH-NNs is performedon those 1, 000 regression tasks all at once, and the tasks are treated as equal. The
L-HYDRA19(a)(b)(c)(d)Fig. 11. The effect of different initialization methods of the head, in basis functions learning,few-shot learning, and generator learning. (a) Samples of 20 basis functions from MH-NNs, trainedfor approximating 1, 000 f generated from Eq. (4.1), using, from left to right, RN (0.05), GU andRN (1) initialization methods. (b) 1, 000 training samples of f. (c) Results for two downstreamfew-shot regression tasks, using TL method without regularization informed by the learned PDF, asopposite to the proposed approach. (d) Results for generator learning, using, from left to right, RN(0.05), GU and RN (1) initialization methods.RN (0.05)GURN (1)STLError (%)0.7575 ± 0.24770.1362 ± 0.02590.3664 ± 0.10310.2102 ± 0.0794Table 8L2 relative errors of f, from MTL with MH-NNs and STL with NNs, on 100 tasks. Differentinitialization methods are used for the heads in MH-NNs. The errors are displayed in the format ofmean ± standard deviation, computed over all 100 tasks.results are presented in Table 9 and Fig. 12. We can see that, compared to STL, MTLimproves the prediction accuracy on tasks with insufficient data, providing empiricalevidence of synergistic learning.Also, interestingly, RN (1) initialization method,which yields the worst generative models, performs the best among all three, whichagrees with our previous conjecture on the basis functions learning with MH-NNs,that heads initialized with large values tend to force representative and informativeinformation to be encoded in the basis functions.6. Discussion. We have developed multi-head neural networks (MH-NNs) forphysics-informed machine learning, and proposed multi-head physics-informed neuralnetworks (MH-PINNs) as a new method, implemented in the L-HYDRA code. Theprimary focus of this work is on MH-NNs and MH-PINNs for various learning prob-
6-1-0.8-0.6-0.4-0.200.20.40.60.80.80.60.40.20-0.2-0.4-0.6-0.8-0.8-0.6-0.4-0.200.20.40.60.80.80.60.40.20-0.2-0.4-0.6-0.81-1-0.8-0.6-0.4-0.200.20.40.60.810.80.60.40.20-0.2-0.4-0.6-0.81-1-0.8-0.6-0.4-0.200.20.40.60.8MeasurementsReferenceRN (0.05)3GU2RN-2-3-1-0.8-0.6-0.4-0.200.20.40.60.84320-1-2-34-1-0.8-0.6-0.4-0.200.20.40.60.86-1-0.8-0.6-0.4-0.200.20.40.60.86-1-0.8-0.6-0.4-0.200.20.40.60.8-0.8-0.6-0.4-0.200.20.40.60.820Z. ZOU AND G. E. KARNIADAKISRN (0.05)GURN (1)Error (%)63.60 ± 24.0840.49 ± 20.4916.91 ± 11.08Table 9L2 relative errors of f, from MTL with MH-NNs, on 500 tasks equipped with insufficient data.The errors are displayed in the format of mean ± standard deviation, computed over all 500 tasks.Fig. 12. Results for 3 tasks with insufficient data from MTL with MH-NNs, using differentinitialization methods over the head, and from STL with NNs with the same architecture. We notethat tasks with sufficient data and tasks with insufficient data are treated equally in MTL.lems in scientific machine learning, including multi-task learning (MTL), stochasticprocesses approximation, and few-shot regression learning. We first formulated theproblem in Eq. (2.1), introduced the architecture design of MH-PINNs, and proposeda method to transform MH-NNs and MH-PINNs to generative models with the helpof normalizing flows (NFs) for density estimation and generative modeling. We thenstudied the applicability and capabilities of MH-PINNs in solving ordinary/paritialdifferential equations (ODEs/PDEs) as well as approximating stochastic processes.We completed the paper with preliminary and empirical explorations of MH-NNsin synergistic learning, and examined the potential benefits and cost of MTL withMH-NNs.This paper can be used in various ways: it proposes a NN approach for MTL insolving ODEs/PDEs; it provides a new approach to approximate stochastic processes;it presents a method to address few-shot physics-informed learning problems, whichare often encountered in the context of meta-learning and transfer learning; it containsa systematic study of applying MH-NNs to scientific computing problems; it presentsthe first empirical evidence of synergistic learning.However, there are a few major problems on MH-NNs we did not address, oneof which is the expressivity of MH-NNs, or more generally hard-parameter sharingNNs in approximating complicated stochastic processes. Intuitively, if two functionsbehave very differently, forcing them to share the same basis functions would affectadversely the approximation accuracy. The second problem is the balancing issue ofdifferent terms in the loss function in MTL. It is shown in the literature [29] thatPINNs, trained in single-task learning, are already deeply influenced by the weightsin front of different terms in the loss function, e.g., data loss, boundary condition loss,PDE residual loss. This issue may be more complex in training MH-PINNs, becausein MTL the loss function is commonly defined as weighted summation of task-specificloss. The last major problem is MH-PINNs for synergistic learning. In this paper, weonly studied one example in function approximation and presented empirical evidence.More work for the understanding of synergistic learning with MH-PINNs along boththe theoretical and computational directions should be pursued in the future.Acknowledgments. We would like to thank Professor Xuhui Meng of HuazhongUniversity of Science and Technology for helpful discussions. This work was supportedby: the Vannevar Bush Faculty Fellowship award (GEK) from ONR (N00014-22-
MeasurementsReferenceRN (0.05)3GU2RN(1)NN3-0.8-0.6-1-0.4-0.200.20.40.60.854320-0.8-0.6-0.4-0.200.20.40.60.85430-1-2 -34-1-0.8-0.6-0.4-0.200.20.40.60.8L-HYDRA211-2795); the U.S. Department of Energy, Advanced Scientific Computing Researchprogram, under the Scalable, Efficient and Accelerated Causal Reasoning Operators,Graphs and Spikes for Earth and Embedded Systems (SEA-CROGS) project, DE-SC0023191; and by the MURI/AFOSR FA9550-20-1-0358 project.REFERENCES[1] M. Abadi, A. Agarwal, P. Barham, and et. al., TensorFlow: Large-scale machine learningon heterogeneous systems, 2015, https://www.tensorflow.org/.Software available fromtensorflow.org.[2] M. J. Ablowitz and A. Zeppetella, Explicit solutions of Fisher’s equation for a special wavespeed, Bulletin of Mathematical Biology, 41 (1979), pp. 835–840.[3] B. Bahmani and W. Sun, Training multi-objective/multi-task collocation physics-informedneural network with student/teachers transfer learnings, arXiv preprint arXiv:2107.11496,(2021).[4] K. Bhattacharya, B. Hosseini, N. B. Kovachki, and A. M. Stuart, Model reduction andneural networks for parametric PDEs, arXiv preprint arXiv:2005.03180, (2020).[5] R. Caruana, Multitask Learning: A Knowledge-Based Source of Inductive Bias, in Interna-tional Conference on Machine Learning, 1993.[6] X. Chen, J. Duan, and G. E. Karniadakis, Learning and meta-learning of stochasticadvection–diffusion–reaction systems from sparse measurements, European Journal of Ap-plied Mathematics, 32 (2021), pp. 397–420.[7] S. Desai, M. Mattheakis, H. Joy, P. Protopapas, and S. Roberts, One-shot transferlearning of physics-informed neural networks, arXiv preprint arXiv:2110.11286, (2021).[8] J. V. Dillon, I. Langmore, D. Tran, E. Brevdo, S. Vasudevan, D. Moore, B. Patton,A. Alemi, M. Hoffman, and R. A. Saurous, TensorFlow Distributions, arXiv preprintarXiv:1711.10604, (2017).[9] L. Dinh, J. Sohl-Dickstein, and S. Bengio, Density Estimation Using Real NVP, arXivpreprint arXiv:1605.08803, (2016).[10] C. Finn, P. Abbeel, and S. Levine, Model-agnostic meta-learning for fast adaptation of deepnetworks, in International Conference on Machine Learning, PMLR, 2017, pp. 1126–1135.[11] M. Germain, K. Gregor, I. Murray, and H. Larochelle, MADE: Masked autoencoder fordistribution estimation, in International Conference on Machine Learning, PMLR, 2015,pp. 881–889.[12] X. Glorot and Y. Bengio, Understanding the difficulty of training deep feedforward neuralnetworks, in Proceedings of the thirteenth international conference on artificial intelligenceand statistics, JMLR Workshop and Conference Proceedings, 2010, pp. 249–256.[13] I. Goodfellow, J. Pouget-Abadie, M. Mirza, B. Xu, D. Warde-Farley, S. Ozair,A. Courville, and Y. Bengio, Generative adversarial networks, Communications of theACM, 63 (2020), pp. 139–144.[14] S. Goswami, K. Kontolati, M. D. Shields, and G. E. Karniadakis, Deep transfer oper-ator learning for partial differential equations under conditional shift, Nature MachineIntelligence, 4 (2022), pp. 1155–1164.[15] L. Guo, H. Wu, and T. Zhou, Normalizing field flows: Solving forward and inverse stochas-tic differential equations using physics-informed flow models, Journal of ComputationalPhysics, 461 (2022), p. 111202.[16] J. Ho, A. Jain, and P. Abbeel, Denoising diffusion probabilistic models, Advances in NeuralInformation Processing Systems, 33 (2020), pp. 6840–6851.[17] G. E. Karniadakis, I. G. Kevrekidis, L. Lu, P. Perdikaris, S. Wang, and L. Yang, Physics-informed machine learning, Nature Reviews Physics, 3 (2021), pp. 422–440.[18] R. E. Kass, The validity of posterior expansions based on Laplace’s method, Bayesian andLikelihood Methods in Statistics and Econometrics, (1990), pp. 473–488.[19] Y. Khoo, J. Lu, and L. Ying, Solving parametric PDE problems with artificial neural net-works, European Journal of Applied Mathematics, 32 (2021), pp. 421–435.[20] D. P. Kingma, T. Salimans, R. Jozefowicz, X. Chen, I. Sutskever, and M. Welling,Improved variational inference with inverse autoregressive flow, Advances in Neural Infor-mation Processing Systems, 29 (2016).[21] D.P.KingmaandM.Welling,Auto-encodingvariationalbayes,arXivpreprintarXiv:1312.6114, (2013).[22] I. Kobyzev, S. J. Prince, and M. A. Brubaker, Normalizing flows: An introduction and re-view of current methods, IEEE Transactions on Pattern Analysis and Machine Intelligence,
22Z. ZOU AND G. E. KARNIADAKIS43 (2020), pp. 3964–3979.[23] J. Lao, C. Suter, I. Langmore, C. Chimisov, A. Saxena, P. Sountsov, D. Moore, R. A.Saurous, M. D. Hoffman, and J. V. Dillon, tfp. mcmc: Modern Markov chain MonteCarlo tools built for modern hardware, arXiv preprint arXiv:2002.01184, (2020).[24] Z. Li, N. Kovachki, K. Azizzadenesheli, B. Liu, K. Bhattacharya, A. Stuart, andA. Anandkumar, Fourier neural operator for parametric partial differential equations,arXiv preprint arXiv:2010.08895, (2020).[25] Z. Lin, Z. Zhao, Z. Zhang, H. Baoxing, and J. Yuan, To Learn Effective Features: Un-derstanding the Task-Specific Adaptation of MAML, 2021, https://openreview.net/forum?id=FPpZrRfz6Ss.[26] K. Linka, A. Schafer, X. Meng, Z. Zou, G. E. Karniadakis, and E. Kuhl, BayesianPhysics-Informed Neural Networks for real-world nonlinear dynamical systems, arXiv pre-print arXiv:2205.08304, (2022).[27] X. Liu, X. Zhang, W. Peng, W. Zhou, and W. Yao, A novel meta-learning initializationmethod for physics-informed neural networks, Neural Computing and Applications, (2022),pp. 1–24.[28] L. Lu, P. Jin, G. Pang, Z. Zhang, and G. E. Karniadakis, Learning nonlinear operatorsvia DeepONet based on the universal approximation theorem of operators, Nature MachineIntelligence, 3 (2021), pp. 218–229.[29] L. McClenny and U. Braga-Neto, Self-adaptive physics-informed neural networks using asoft attention mechanism, arXiv preprint arXiv:2009.04544, (2020).[30] X. Meng, L. Yang, Z. Mao, J. del ´Aguila Ferrandis, and G. E. Karniadakis, Learningfunctional priors and posteriors from data and physics, Journal of Computational Physics,457 (2022), p. 111073.[31] R. M. Neal et al., MCMC using Hamiltonian dynamics, Handbook of Markov Chain MonteCarlo, 2 (2011), p. 2.[32] G. Papamakarios, E. T. Nalisnick, D. J. Rezende, S. Mohamed, and B. Lakshmi-narayanan, Normalizing Flows for Probabilistic Modeling and Inference., J. Mach. Learn.Res., 22 (2021), pp. 1–64.[33] G. Papamakarios, T. Pavlakou, and I. Murray, Masked autoregressive flow for densityestimation, Advances in Neural Information Processing Systems, 30 (2017).[34] M. Penwarden, S. Zhe, A. Narayan, and R. M. Kirby, Physics-informed neural net-works (PINNs) for parameterized PDEs:A metalearning approach, arXiv preprintarXiv:2110.13361, (2021).[35] P. Perdikaris, D. Venturi, and G. E. Karniadakis, Multifidelity information fusion algo-rithms for high-dimensional systems and massive data sets, SIAM Journal on ScientificComputing, 38 (2016), pp. B521–B538.[36] A. F. Psaros, X. Meng, Z. Zou, L. Guo, and G. E. Karniadakis, Uncertainty Quantifica-tion in Scientific Machine Learning: Methods, Metrics, and Comparisons, arXiv preprintarXiv:2201.07766, (2022).[37] A. Raghu, M. Raghu, S. Bengio, and O. Vinyals, Rapid Learning or Feature Reuse? To-wards Understanding the Effectiveness of MAML, arXiv preprint arXiv:1909.09157, (2019).[38] M. Raissi, P. Perdikaris, and G. E. Karniadakis, Physics-informed neural networks: A deeplearning framework for solving forward and inverse problems involving nonlinear partialdifferential equations, Journal of Computational Physics, 378 (2019), pp. 686–707.[39] S. Ruder, An overview of multi-task learning in deep neural networks, arXiv preprintarXiv:1706.05098, (2017).[40] P. Thanasutives, M. Numao, and K.-i. Fukui, Adversarial multi-task learning enhancedphysics-informed neural networks for solving partial differential equations, in 2021 Inter-national Joint Conference on Neural Networks (IJCNN), IEEE, 2021, pp. 1–9.[41] H. Wang, H. Zhao, and B. Li, Bridging multi-task learning and meta-learning: Towards effi-cient training and effective adaptation, in International Conference on Machine Learning,PMLR, 2021, pp. 10991–11002.[42] S. Wang, H. Wang, and P. Perdikaris, Learning the solution operator of parametric par-tial differential equations with physics-informed DeepONets, Science Advances, 7 (2021),p. eabi8605.[43] L. Yang, X. Meng, and G. E. Karniadakis, B-PINNs: Bayesian physics-informed neuralnetworks for forward and inverse PDE problems with noisy data, Journal of ComputationalPhysics, 425 (2021), p. 109913.[44] L. Yang, D. Zhang, and G. E. Karniadakis, Physics-informed generative adversarial net-works for stochastic differential equations, SIAM Journal on Scientific Computing, 42(2020), pp. A292–A317.
L-HYDRA23[45] M. Yang and J. T. Foster, Multi-output physics-informed neural networks for forward andinverse PDE problems with uncertainties, Computer Methods in Applied Mechanics andEngineering, (2022), p. 115041.[46] W. Zhong and H. Meidani, PI-VAE: Physics-Informed Variational Auto-Encoder for stochas-tic differential equations, arXiv preprint arXiv:2203.11363, (2022).[47] Z. Zou, X. Meng, A. F. Psaros, and G. E. Karniadakis, NeuralUQ: A comprehensive libraryfor uncertainty quantification in neural differential equations and operators, arXiv preprintarXiv:2208.11866, (2022).Appendix A. Details of NN architectures and training hyperparam-eters.For all examples in Secs. 4 and 5, MH-PINNs are implemented as fully-connected NNs (FNNs) with 3 nonlinear hidden layers, each of which is equippedwith 50 neurons and hyperbolic tangent activation function. The number of heads isthe same as the number of tasks in the corresponding examples: 1, 000 in Sec. 4.1,2, 000 in Secs. 4.2, 4.3 and 4.4, and 10, 000 in Sec. 4.5. Weights in the body of MH-PINNs are initialized with Glorot uniform initialization [12] and biases are initializedwith zero, while heads are initialized by sampling from random normal distributionwith 0.05 standard deviation, for fast training of NFs and better performance of thelearned generators.Except for the forward problem in Sec. 4.2, NFs in this paper are chosen to beMAF [33] with 10 bijectors, i.e. the invertible map in NFs, each of which is a MADE[11], a NN with masked dense layers, with two nonlinear hidden layers equipped with100 neurons and ReLU activation function. The RealNVP [9] and IAF [20] used inthe forward problem in Sec. 4.2 also have 10 bijectors, each of which is a NN withtwo nonlinear hidden layers equipped with 100 neurons and ReLU activation function.The implementation mostly follows the instructions of TensorFlow Probability library[8] for NFs.PI-GANs [44] implemented in Sec. 4.2 have the following architecture: the dis-criminator is a FNN with 3 nonlinear hidden layers, each of which is equipped with128 neurons and Leaky ReLU activation function; the generator that takes as inputt is a FNN with 3 nonlinear hidden layers, each of which is equipped with 50 neu-rons and hyperbolic tangent activation function; the other generator takes as input aGaussian random variable in 50 dimensions with zero mean and identity covariancematrix, and is implemented as a FNN with 3 nonlinear hidden layers, each of whichhas 128 neurons and hyperbolic tangent activation function. The input dimensions ofthose 3 FNNs are 65, 1 and 50, and the output dimensions are 1, 50, 50, respectively.For the training of MH-PINNs, full-batch training is deployed with Adam opti-mizer for 50, 000 iterations. For the training of NFs, except for the forward problemin Sec. 4.2, mini-batch training is deployed with batch size being 100 and Adam op-timizer for 1, 000 epochs.NFs in the forward problem in Sec. 4.2 are trained for500 epochs instead, and L2 regularization is imposed to the parameters of RealNVPfor better performance. For all NFs, to achieve stable training, a hyperbolic tangentfunction is imposed on the logarithm of the scale, computed from each bijector, suchthat the logarithm of the scale lies in (−1, 1). For the training of PI-GANs, min-batch training is deployed with batch size being 100 and Adam optimizer for 100, 000iterations. Besides, the same as in [44, 30], physics-informed Wasserstein GANs (PI-WGANs) with gradient penalty are employed, in which the coefficient for gradientpenalty is set to be 0.1. Iteratively, 5 updates of the discriminator are performed andfollowed by 1 update of the generators. Except in training PI-GANs, the learningrate of Adam optimizer is set to be 10−3 and other hyperparameters of Adam are setas default. In training PI-GANs, the learning rate is set to be 10−4, β1 = 0.5 andβ2 = 0.9 in Adam optimizer for both discriminator and generators.
24Z. ZOU AND G. E. KARNIADAKISTraining of MH-PINNs, NFs, and PI-GANs was all performed on a single NVIDIATITAN Xp GPU. The L-HYDRA code for TensorFlow implementation along withsome representative examples will be released on GitHub once the paper is accepted.Appendix B. Details for performing Bayesian inference.HamiltonianMonte Carlo (HMC) [31] is employed in all Bayesian inference examples for uncer-tainty quantification (UQ) while Laplace approximation [18] is only employed in thefirst example. In this paper, HMC with adaptive step size [23] is used, in which theinitial step size is set to be either 0.1 or 0.01, tuned for better acceptance rate. Thenumber of burn-in samples and the number of posterior samples are set to be 1, 000.The number of steps for the leapfrog scheme is set to be either 30 or 50, also tuned forbetter acceptance rate. NeuralUQ library [47] for UQ in scientific machine learning isused as a tool for physics-informed Bayesian inference in the downstream tasks. Theideal acceptance rate in HMC, as discussed in [30, 47], is around 60%. In this paper,we found chains with acceptance rate from 50% to 80% acceptable.
123version https://git-lfs.github.com/spec/v1oid sha256:5af451f44872e9d8480d3aded8c352825edffe7a8f78529a87613adbfedc7de4size 3092086123version https://git-lfs.github.com/spec/v1oid sha256:358a61999098c8ea302f5a1f035735a3bbb6047fd855f59b3562c193cc3c5145size 3407917123version https://git-lfs.github.com/spec/v1oid sha256:2c49b0ae81857550ecb295363f645b2341943e48f2622edae4e333d6dd1556f6size 112015123version https://git-lfs.github.com/spec/v1oid sha256:e9e9382154a8f7a3228f743b0be0c75747a5fd42b3a68b0f4028cee2ded8721dsize 1744595123version https://git-lfs.github.com/spec/v1oid sha256:dd7d4e6c63b690923b5212d2dbc5d5a1a9dac937e3d1109e99a85f43cb693bb4size 4849709123version https://git-lfs.github.com/spec/v1oid sha256:0b15c7d4558d5e294860d52f9fb90e5f0b5e36a56c46e78665f2141077aa08b8size 177567123version https://git-lfs.github.com/spec/v1oid sha256:808e71d848b7b5ddbfebc0f31092210c3474a7a594be684b533bdd34c1712b77size 883144123version https://git-lfs.github.com/spec/v1oid sha256:01dc251a7fbda5ef5918da14def17b952fb37cede207da3438232f903c7a51e0size 3342381123version https://git-lfs.github.com/spec/v1oid sha256:bd31d336596e4f4b711c6b6297261fb2df8ad45a96eaedad0031957380dbec22size 1197461234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225Matching of Everyday Power Supply and Demand with Dynamic Pricing:Problem Formalisation and Conceptual AnalysisThibaut Théatea,∗, Antonio Suterab, Damien Ernsta,caDepartment of Electrical Engineering and Computer Science, University of Liège, Liège, BelgiumbHaulogy, Intelligent Systems Solutions, Braine-le-Comte, BelgiumcInformation Processing and Communications Laboratory, Institut Polytechnique de Paris, Paris, FranceAbstractThe energy transition is expected to significantly increase the share of renewable energy sources whose production isintermittent in the electricity mix. Apart from key benefits, this development has the major drawback of generating amismatch between power supply and demand. The innovative dynamic pricing approach may significantly contribute tomitigating that critical problem by taking advantage of the flexibility offered by the demand side. At its core, this ideaconsists in providing the consumer with a price signal which is evolving over time, in order to influence its consumption.This novel approach involves a challenging decision-making problem that can be summarised as follows: how to determinea price signal maximising the synchronisation between power supply and demand under the constraints of maintainingthe producer/retailer’s profitability and benefiting the final consumer at the same time? As a contribution, this researchwork presents a detailed formalisation of this particular decision-making problem. Moreover, the paper discusses thediverse algorithmic components required to efficiently design a dynamic pricing policy: different forecasting modelstogether with an accurate statistical modelling of the demand response to dynamic prices.Keywords:Matching of supply and demand, dynamic pricing, demand response, power producer/retailer.1. IntroductionClimate change is undeniably a major challenge facinghumanity in the 21st century [1].An ambitious trans-formation is required in all sectors to significantly lowertheir respective carbon footprints. Electricity generationis no exception, with the burning of fossil fuels, mainly coaland gas, being by far the dominant power source in theworld today [2]. This sector has to undergo an importanttransformation of the global electricity mix by promotingpower sources with a significantly lower carbon footprint.Belonging to that category are nuclear power, hydroelec-tricity, biomass or geothermal energy which are relativelycontrollable, but also the energy directly extracted fromwind and sun which is conversely intermittent in nature.Since wind turbines and photovoltaic panels are expectedto play a key role in the energy transition, solutions arerequired to address their variable production. Interestingtechnical avenues are the interconnection of power grids [3]and the development of storage capacities such as battery,pumped hydroelectricity or hydrogen [4]. Another promis-ing and innovative solution is to influence the behaviourof consumers through the use of dynamic pricing (DP), sothat power supply and demand are better synchronised.∗Corresponding author.Email addresses: thibaut.theate@uliege.be (ThibautThéate), dernst@uliege.be (Damien Ernst)The dynamic pricing approach consists in continuouslyadapting the electricity price that the final consumer hasto pay in order to influence its consumption behaviour.Basically, when demand exceeds supply, the power pricewould be increased in order to take down consumption.Conversely, a reduced price would be provided when thereis excessive production compared to consumption. From agraphical perspective, the objective is not only to shift thedaily consumption curve but also to change its shape inorder to better overlap with the intermittent productioncurve of renewable energy sources. This is illustrated inFigure 1 for a representative situation.The innovative dynamic pricing approach relies on twoimportant assumptions. Firstly, the final consumer has tobe equipped with a smart metering device to measure itsproduction in real-time and with communication meansfor the price signal. Secondly, the final consumer has tobe able to provide a certain amount of flexibility regardingits power consumption. Moreover, it has to be sufficientlyreceptive to the incentives offered to reduce its electricitybill in exchange for a behaviour change. If these require-ments are met, the major strength of the dynamic pricingapproach is its potential benefits for both the consumerand the producer/retailer. Moreover, these benefits wouldnot only be in terms of economy, but also potentially interms of ecology and autonomy. In fact, dynamic pricesreward the flexibility of the demand side.arXiv:2301.11587v1 [q-fin.TR] 27 Jan 2023
12:0006:0018:0012:0006:0018:00SupplyDemandTimeTimePowerPowerFigure 1: Illustration of the dynamic pricing approach’s potentialto shift and change the shape of a typical daily consumption curve(blue) so that there is a better synchronisation with the daily inter-mittent production curve of renewable energy sources (red).The contributions of this research work are twofold.Firstly, the complex decision-making problem faced bya producer/retailer willing to develop a dynamic pricingstrategy is presented and rigorously formalised. Secondly,the diverse algorithmic components required to efficientlydesign a dynamic pricing policy are thoroughly discussed.To the authors’ knowledge, demand response via dynamicpricing has received considerable attention from the re-search community, but from the perspective of the demandside alone. Therefore, the present research may be consid-ered as a pioneer work studying dynamic pricing from theperspective of the supply side for taking advantage of theflexibility of the power consumers.This research paper is structured as follows. First ofall, the scientific literature about both dynamic pricingand demand response is concisely reviewed in Section 2.Then, Section 3 presents a detailed formalisation of thedecision-making problem behind the novel dynamic pric-ing approach. Afterwards, Section 4 analyses the algorith-mic components necessary for the development of dynamicpricing policies. Subsequently, a fair performance assess-ment methodology is introduced in Section 5 to quanti-tatively evaluate the performance of a dynamic pricingpolicy. To end this paper, Section 6 discusses interestingresearch avenues for future work and draws conclusions.2. Literature reviewOver the last decade, the management of the demandside in the scope of the energy transition has received in-creasing attention from the research community. In fact,there exist multiple generic approaches when it comes todemand response. Without getting into too many details,the scientific literature includes some surveys summarisingand discussing the different techniques available togetherwith their associated challenges and benefits [5, 6, 7, 8, 9].In this research work, the focus is exclusively set on thedemand response induced by dynamic power prices.As previously mentioned, the scientific literature aboutdemand response via dynamic pricing is primarily focusedon the perspective of the demand side. Multiple techniqueshave already been proposed to help the consumer provideflexibility and take advantage of behavioural changes tolower its electricity bill. For instance, [10] presents a powerscheduling method based on a genetic algorithm to opti-mise residential demand response via an energy manage-ment system, so that the electricity cost is reduced. In [11],a technique based on dynamic programming is introducedfor determining the optimal schedule of residential con-trollable appliances in the context of time-varying powerpricing. One can also mention [12] that proposes an energysharing model with price-based demand response for mi-crogrids of peer-to-peer prosumers. The approach is basedon a distributed iterative algorithm and has been shownto lower the prosumers’ costs and improve the sharing ofphotovoltaic energy. More recently, (deep) reinforcementlearning techniques have been proven to be particularlyrelevant for controlling the residential demand response inthe context of dynamic power prices [13, 14].On the contrary, the question of inducing a residentialdemand response based on a dynamic pricing approachfrom the perspective of the supply side has not receiveda lot of attention from the research community yet. Still,there are a few works in the scientific literature about themathematical modelling of the demand response caused bydynamic power prices, which is a key element in achievingthat objective. To begin with, [15] presents a simulationmodel highlighting the evolution of electricity consump-tion profiles when shifting from a fixed tariff to dynamicpower prices. The same objective is pursued by [16] whichintroduces a fully data-driven approach relying on the datacollected by smart meters and exogenous variables. Theresulting simulation model is based on consumption pro-files clustering and conditional variational autoencoders.Alternatively, [17] presents a functional model of residen-tial power consumption elasticity under dynamic pricing toassess the impact of different electricity price levels, basedon a Bayesian probabilistic approach. In addition to thesemathematical models, one can also mention some real-lifeexperiments conducted to assess the responsiveness of res-idential electricity demand to dynamic pricing [18, 19].2
3. Problem formalisationThis section presents a mathematical formalisation ofthe challenging sequential decision-making problem relatedto the dynamic pricing approach for inducing a residentialdemand response.To begin with, the contextualisationconsidered for studying this particular problem is brieflydescribed, followed by an overview of the decision-makingprocess. Then, a discretisation of the continuous timelineis introduced. Subsequently, the formal definition of a dy-namic pricing policy is presented. Lastly, the input andoutput spaces of a dynamic pricing policy are described,together with the objective criterion.3.1. ContextualisationAs previously hinted, this research work focuses on theinteresting real-case scenario of a producer/retailer whoseproduction portfolio is composed of an important share ofrenewable energy sources such as wind turbines and photo-voltaic panels. Because of the substantial intermittency ofthese generation assets, a strong connection to the energymarkets is required in order to fully satisfy its customersregardless of the weather. Nevertheless, the consumers areassumed to be well informed and willing to adapt their be-haviour in order to consume renewable energy rather thanelectricity purchased on the market whose origin may beunknown. Within this particular context, the benefits ofthe dynamic pricing approach taking advantage of the con-sumers’ flexibility are maximised. Indeed, the insignificantmarginal cost associated with these intermittent renew-able energy sources coupled with their low carbon foot-print make this innovative approach interesting from aneconomical perspective for both supply and demand sides,but also in terms of ecology. Moreover, the autonomy ofthe producer/retailer is expected to be reinforced by low-ering its dependence on the energy markets. At the sametime, dependence on fossil fuels may be reduced as well.In this research work, the predicted difference betweenpower production and consumption is assumed to be fullysecured in the day-ahead electricity market. Also calledspot market, the day-ahead market has an hourly resolu-tion and is operated once a day for all hours of the follow-ing day via a single-blind auction. In other words, tradingpower for hour H of day D has to be performed ahead onday D − 1 between 00:00 AM (market opening) and 12:00AM (market closure).Therefore, the energy is at bestpurchased 12 hours (00:00 AM of day D) up to 35 hours(11:00 PM of day D) before the actual delivery of power.Apart from the day-ahead electricity market, it is assumedthat there are no trading activities on the future/forwardnor intraday markets. Nevertheless, if there remains aneventual mismatch between production and consumptionat the time of power delivery, the producer/retailer wouldbe exposed to the imbalance market. In this case, the so-called imbalance price has to be inevitably paid as com-pensation for pushing the power grid off balance.3.2. Decision-making process overviewThe decision-making problem studied in this researchwork is characterised by a particularity: a variable time lagbetween the moment a decision is made and the moment itbecomes effective. As previously explained, any remainingdifference between production and consumption after de-mand response has to ideally be traded on the day-aheadmarket. The purpose of this assumption is to limit the ex-posure of the producer/retailer to the imbalance market.For this reason, the price signal sent to the consumer onday D has to be generated before the closing of the day-ahead market on day D − 1. Additionally, it is assumedthat the price signal cannot be refreshed afterwards.Basically, the decision-making problem at hand can beformalised as follows. The core objective is to determinea decision-making policy, denoted Π, mapping at time τinput information of diverse nature Iτ to the electricityprice signal Sτ to be sent to the consumers over a futuretime horizon well-defined:Sτ = Π(Iτ),(1)where:• Iτ represents the information vector gathering all theavailable information (of diverse nature) at time τwhich may be helpful to make a relevant dynamicpricing decision,• Sτ represents a set of electricity prices generated attime τ and shaping the dynamic price signal over awell-defined future time horizon.The dynamic pricing approach from the perspective ofthe supply side belongs to a particular class of decision-making problems:automated planning and scheduling.Contrarily to conventional decision-making outputting oneaction at a time, planning decision-making is concernedwith the generation of a sequence of actions.In otherwords, a planning decision-making problem requires tosynthesise in advance a strategy or plan of actions overa certain time horizon. Formally, the decision-making hasto be performed at a specific time τ about a control vari-able over a future time horizon beginning at time τi > τand ending at time τf > τi. In this case, the decision-making is assumed to be performed just before the closingof the day-ahead market at 12:00 AM to determine theprice signal to be sent to the consumers throughout theentire following day (from 00:00 AM to 11:59 PM).In the next sections, a more accurate and thoroughmathematical formalisation of the dynamic pricing prob-lem from the perspective of the supply side is presented.Moreover, the planning problem previously introduced iscast into a sequential decision-making problem. Indeed,this research paper intends to focus on a decision-makingpolicy outputting a single price from the signal Sτ at atime based on a subset of the information vector Iτ.3
00:0012:00𝑦� 𝑦�𝑦��Closing of theday-ahead market𝑥�𝑥�𝑥�𝑥��Dynamic pricingpolicy π𝑦�Forecasts𝑝��𝑐��𝜆��𝑐��TimePowerTimeTimeTimePowerPowerPriceDemand reponse modelFigure 2: Illustration of the formalised decision-making problem related to dynamic pricing from the perspective of the supply side. Thenotations xt and yt represent the inputs and outputs of a dynamic pricing policy π, which are not shown concurrent on the timeline sincethe decision-making occurs multiple hours before the application of the dynamic pricing signal. The time axis of the four plots represents thecomplete following day for which the dynamic prices are generated. The mathematical notations pFt , cFt and λFt respectively represent theforecast production, consumption and day-ahead market price for the time step t. Finally, the quantity c′t is the predicted consumption attime step t after taking into consideration the dynamic pricing signal.3.3. Timeline discretisationTheoretically, the dynamic electricity price signal sentto the consumer could be continuously changing over time.More realistically, this research work adopts a discretisa-tion of the continuous timeline so that this power priceis adapted at regular intervals.Formally, this timelineis discretised into a number of time steps t spaced by aconstant duration ∆t. If the duration ∆t is too large, thesynchronisation improvement between supply and demandwill probably be of poor quality. Conversely, lowering thevalue of the duration ∆t increases the complexity of thedecision-making process, and a too high update frequencymay even confuse the consumer. There is a trade-off tobe found concerning this important parameter. In this re-search work, the dynamic price signal is assumed to changeonce per hour, meaning that ∆t is equal to one hour. Thischoice is motivated by the hourly resolution of the day-ahead market, which has proven to be an appropriate com-promise over the years for matching power production andconsumption. Another relevant discretisation choice couldbe to have a price signal which is updated every quarter ofan hour. In the rest of this research paper, the increment(decrement) operations t + 1 (t − 1) are used to model thediscrete transition from time step t to time step t + ∆t(t − ∆t), for the sake of clarity.3.4. Dynamic pricing policyWithin the context previously described, a dynamicpricing planning policy Π consists of the set of rules usedto make a decision regarding the future price signal sent tothe consumers over the next day. This planning policy canbe decomposed into a set of 24 dynamic pricing decision-making policies π outputting a single electricity price forone hour of the following day.Mathematically, such adynamic pricing strategy can be defined as a programmedpolicy π : X → Y, either deterministic or stochastic, whichoutputs a decision yt ∈ Y for time step t based on someinput information xt ∈ X so as to maximise an objectivecriterion. The input xt is derived from the information vec-tor Iτ associated with the decision-making for time step t,after potential preprocessing operations. The price signalSτ is composed of 24 dynamic pricing policy outputs yt.In the rest of this research work, the time at whichthe decision-making does occur should not be confusedwith the time at which the dynamic price signal is active(charging for energy consumption). The proposed formal-isation assumes that the time step t refers to the time atwhich the dynamic price is active, not decided. Therefore,the decision-making of the dynamic pricing policy for timestep t (yt = π(xt)) is in fact performed hours in advanceof time step t. This complexity is illustrated in Figure 2describing the formalised decision-making problem.4
I.3.5. Input of a dynamic pricing policyThe input space X of a dynamic pricing policy π com-prises all the available information which may help to makea relevant decision about future electricity prices so thatan appropriate demand response is induced.Since thedecision-making occurs 12 up to 35 hours in advance of theprice signal delivery, this information mainly consists offorecasts and estimations that are subject to uncertainty.As depicted in Figure 2, the dynamic pricing policy inputxt ∈ X refers to the decision-making occurring at timeτ = t − h with h ∈ [12, 35] about the dynamic pricingsignal delivered to the consumer at time step t. In fact,the quantity Iτ may be seen as the information containedin the 24 inputs xt for t ∈ {τ + 12, ..., τ + 35}. Formally,the input xt ∈ X is decided to be defined as follows:xt = {P Ft , CFt , ΛFt , Yt, M},(2)where:• P Ft= {pFt+ϵ ∈ R+ | ϵ = −k, ..., k} represents a setof forecasts for the power production within a timewindow centred around time step t and of size k,• CFt = {cFt+ϵ ∈ R+ | ϵ = −k, ..., k} represents a set offorecasts for the power consumption within a timewindow centred around time step t and of size k,• ΛFt = {λFt+ϵ ∈ R | ϵ = −k, ..., k} represents a set offorecasts for the day-ahead market prices within awindow centred around time step t and of size k,• Yt = {yt−ϵ ∈ R | ϵ = 1, ..., k} represents the series ofk previous values for the dynamic price signal sentto the final consumer,• M is a mathematical model of the demand responseto be expected from the consumption portfolio, withthe required input information.The different forecasting models and the challengingmodelling of the consumption portfolio demand responseare discussed in more details in Section 4.3.6. Output of a dynamic pricing policyThe output space Y of a dynamic pricing policy π onlyincludes the future price signal to be sent to the consumer.Formally, the dynamic pricing policy output yt ∈ Y, whichrepresents the electricity price to be paid by the consumerfor its power consumption at time step t, is mathematicallydefined as follows:yt = et,(3)where et ∈ R represents the dynamic electricity price tobe paid by the demand side for its power consumptionat time step t.Out of the scope of this research workis the presentation of this price signal so that the impacton the final consumer is maximised. Indeed, the way ofcommunicating the output of the dynamic pricing policyhas to be adapted to the audience, be it humans withdifferent levels of electricity market expertise or algorithms(energy management systems).3.7. Objective criterionThe dynamic pricing approach can provide multiplebenefits, in terms of economy, ecology but also autonomy.Consequently, the objective criterion to be maximised bya dynamic pricing policy π is not trivially determined. Infact, several core objectives can be clearly identified:• maximising the match between supply and demand,• minimising the carbon footprint of power generation,• minimising the electricity costs for the consumer,• maximising the revenue of the producer/retailer.Although some objectives overlap, these four criteriaare not completely compatible. For instance, maximisingthe synchronisation between power supply and demand isequivalent to minimising the carbon footprint associatedwith the generation of electricity. Indeed, the productionportfolio of the producer/retailer being mainly composedof intermittent renewable energy sources, its energy has areduced carbon footprint compared to the electricity thatcan be purchased on the day-ahead market whose origin isunknown. On the contrary, maximising the revenue of theproducer/retailer will obviously not lead to a minimisedelectricity bill for the consumer. This research work makesthe choice to prioritise the maximisation of the synchroni-sation between supply and demand, and equivalently theminimisation of the carbon footprint, while translating theother two core objectives into relevant constraints. Firstly,the costs for the consumer have to be reduced with respectto the situation without dynamic pricing. Secondly, theprofitability of the producer/retailer has to be guaranteed.Formally, the objective criterion to be optimised by adynamic pricing policy π can be mathematically definedas the following. First of all, the main target to evaluateis the synchronisation between supply and demand, whichcan be quantitatively assessed through the deviation ∆T .This quantity has to ideally be minimised, and can bemathematically expressed as follows:∆T =T −1�t=0|pt − ct|,(4)where:• t = 0 corresponds to the first electricity delivery hourof a new day (00:00 AM),• T is the time horizon considered, which should be amultiple of 24 to have full days,• pt is the actual power production (not predicted)from the supply side at time step t,• ct is the actual power consumption (not predicted)from the demand side at time step t.5
Afterwards, the first constraint concerning the reducedcosts for the consumer has to be modelled mathematically.This is achieved via the electricity bill BT paid by theconsumer over the time horizon T, which can be expressedas the following:BT =T −1�t=0ct yt .(5)As previously explained, the consumer power bill BTshould not exceed that obtained without dynamic pricing.In that case, the consumer is assumed to pay a price et,which can for instance be a fixed tariff or a price indexedon the day-ahead market price.The situation withoutdynamic pricing is discussed in more details in Section 5.Consequently, the first constraint can be mathematicallyexpressed as follows:T −1�t=0ct yt ≤T −1�t=0ct et ,(6)where ct is the power consumption from the demand sideat time step t without dynamic pricing.Then, the second constraint is about the profitabilityof the producer/retailer, which is achieved if its revenueexceeds its costs. The revenue RT of the producer/retailerover the time horizon T can be mathematically expressedas the following:RT =T −1�t=0�ct yt − (c′t − pFt ) λt − (ct − pt) it�,(7)where:• λt is the actual power price (not predicted) on theday-ahead market at time step t,• it is the actual imbalance price (not predicted) onthe imbalance market at time step t,• c′t is the predicted power consumption at time step tafter demand response to the dynamic prices, basedon the demand response mathematical model M.The first term corresponds to the payment of the cus-tomers for their electricity consumption. The second termis the revenue or cost induced by the predicted mismatchbetween supply and demand, which is traded on the day-ahead market. The last term is the cost or revenue causedby the remaining imbalance between supply and demand,which has to be compensated in the imbalance market.The total costs incurred by the producer/retailer ateach time step t can be decomposed into both fixed costsFC and marginal costs MC. In this particular case, themarginal costs of production are assumed to be negligiblesince the production portfolio is composed of intermittentrenewable energy sources such as wind turbines and pho-tovoltaic panels. Therefore, the second constraint can bemathematically expressed as follows:T −1�t=0�ct yt − (c′t − pFt ) λt − (ct − pt) it�≥ FC T .(8)Finally, the complete objective criterion to be opti-mised by a dynamic pricing policy can be mathematicallyexpressed as follows:minimiseπT −1�t=0|pt − ct|,subject toRT ≥ FC T ,BT ≤T −1�t=0ct et .(9)4. Algorithmic components discussionThis section presents a thorough discussion about thedifferent algorithmic modules required to efficiently designa dynamic pricing policy from the perspective of the supplyside. Firstly, the different forecasting blocks are rigorouslyanalysed. Secondly, the modelling of the demand responseinduced by dynamic prices is discussed. Lastly, the propermanagement of uncertainty is considered.In parallel, for the sake of clarity, Figure 3 highlightsthe interconnections between the different algorithmic com-ponents in the scope of a dynamic pricing policy from theperspective of the supply side.Moreover, Algorithm 1provides a thorough description of the complete decision-making process for the dynamic pricing problem at hand.The complexity of the variable time lag between decision-making and application is highlighted. Assuming that thedecision-making occurs once a day at 12:00 AM just be-fore the closing of the day-ahead market for all hours ofthe following day, the dynamic price at time step t is de-cided hours in advance at time step t − [12 + (t%24)] withthe symbol % representing the modulo operation.4.1. Production forecastingThe first forecasting block to be discussed concerns theproduction of intermittent renewable energy sources suchas wind turbines and photovoltaic panels. Indeed, havingaccess to accurate predictions about the future output ofthe production portfolio is key to the performance of adynamic pricing policy from the perspective of the supplyside. As previously explained in Section 3.4, the forecastshave to be available one day ahead before the closing ofthe day-ahead electricity market for all hours of the fol-lowing day. Naturally, the generation of such predictionsintroduces uncertainty, a complexity that has to be takeninto account to design sound dynamic pricing policies.6
𝑝��𝑐��𝜆��TimeTimeTimePowerPowerPrice𝑐��TimePower𝑐��TimePower𝑦�TimePriceFigure 3: Illustration of the complete decision-making process related to dynamic pricing from the perspective of the supply side, with theconnections between the different algorithmic components highlighted.Algorithm 1 Dynamic pricing complete decision-making processThe decision-making occurs once per day before the closing of the day-ahead market at 12:00 AM for all hours of the next day.The decision-making for the dynamic price of time step t occurs at time step t − [12 + (t%24)].for τ = −12 to T − 12 doCheck whether the time is 12:00 AM to proceed to the decision-making.if (τ + 12)%24 = 0 thenfor t = τ + 12 to τ + 36 doGather the available information for production forecasting xPt = {W Ft , AFt , IPt }.Gather the available information for consumption forecasting xCt = {W Ft , Tt, ICt }.Gather the available information for day-ahead market price forecasting xMt= {xPt , xCt , GFt , Mt, IMt }.Forecast production at time step t: pFt = FP�xPt�.Forecast consumption at time step t: cFt = FC�xCt�.Forecast the day-ahead market price at time step t: λFt = FM�xMt�.end forfor t = τ + 12 to τ + 36 doGather the input information for the dynamic pricing policy xt = {P Ft , CFt , ΛFt , Yt, M}.Make a dynamic pricing decision for time step t: yt = π(xt).end forAnnounce the dynamic prices for all hours of the following day {yt | t = τ + 12, ..., τ + 35}.end ifend for7
Dynamic pricing policy TXMProduction forecasting FjConsumption forecasting F'Market price forecasting FDemandresnonse model MFormally, the forecasting model associated with theoutput of the production portfolio is denoted FP . Its inputspace XP comprises every piece of information that maypotentially have an impact on the generation of electricityfrom intermittent renewable energy sources such as windturbines and photovoltaic panels for a certain time period.Its output space YP is composed of a forecast regarding thepower generation from the production portfolio for thatsame time period. Mathematically, the forecasting modelinput xPt ∈ XP and output yPt ∈ YP at time step t can beexpressed as follows:xPt = {W Ft , AFt , IPt },(10)yPt = pFt ,(11)where:• W Ftrepresents various weather forecasts related tothe power production of intermittent renewable en-ergy sources such as wind turbines and photovoltaicpanels (wind speed/direction, solar irradiance, etc.)at the time step t,• AFt represents predictions about the available capac-ity of the production portfolio at time step t, whichmay be impacted by scheduled maintenance, repairs,or other similar constraints,• IPtrepresents any additional information that mayhelp to accurately forecast the future power gener-ation of the producer/retailer’s production portfolioat time step t.In the scientific literature, the current state of the artfor forecasting the power production of intermittent renew-able energy sources is mainly based on deep learning tech-niques together with some data cleansing processes anddata augmentation approaches.The best architecturesare recurrent neural networks (RNN), convolutional neuralnetworks (CNN) and transformers [20, 21, 22, 23, 24].4.2. Consumption forecastingThe objective of the next important forecasting modeldeserving a discussion is to accurately predict the futurepower demand of the consumption portfolio before anydemand response phenomenon is induced. Since the maingoal of a dynamic pricing policy is to maximise the syn-chronisation between supply and demand, electricity loadforecasts are of equal importance to electricity generationpredictions. Similarly to the latter, the portfolio consump-tion forecasts are assumed to be generated one day aheadjust before the closing of the day-ahead market for all 24hours of the following day. Additionally, the uncertaintyassociated with these predictions has to be seriously takeninto account for the success of the dynamic pricing policy.From a more formal perspective, the forecasting modelresponsible for predicting the future electricity load of theconsumption portfolio is denoted FC. Its input space XCincludes all the information that may have an influence onthe residential electricity consumption for a certain timeperiod. Its output space YC comprises a forecast of thepower used by the consumption portfolio for that sametime period. Mathematically, the consumption forecastingmodel input xCt ∈ XC and output yCt ∈ YC at time step tcan be expressed as the following:xCt = {W Ft , Tt, ICt },(12)yCt = cFt ,(13)where:• W Ftrepresents various weather forecasts related tothe residential electricity consumption (temperature,hygrometry, etc.) at the time step t,• Tt represents diverse characteristics related to thetime step t (hour, weekend, holiday, season, etc.),• ICt represents supplementary information that couldpotentially have an influence on the residential powerconsumption at time step t.Similarly to renewable energy production forecasting,the state-of-the-art approaches for predicting the residen-tial electricity load in the short term are mostly relatedto deep learning techniques with preprocessed augmenteddata: RNN, CNN, and transformers [25, 26, 27, 28, 22].4.3. Market price forecastingThe last forecasting block to be discussed concernsthe future day-ahead electricity market prices. Contrarilyto the forecasting of power production and consumption,these price predictions are not critical to the success of adynamic pricing policy from the perspective of the supplyside. Still, having access to quality forecasts for the fu-ture day-ahead market prices remains important in orderto satisfy the constraints related to the profitability of theproducer/retailer as well as the reduced electricity costs forthe consumer. Once again, the predictions are assumed tobe made just before the closing of the day-ahead market.Moreover, the uncertainty associated with these forecastshas to be taken into consideration.Formally, the forecasting model related to the futureday-ahead electricity market prices is denoted FM.Itsinput space XM includes every single piece of informationwhich may potentially explain the future electricity priceon the day-ahead market for a certain hour. Its outputspace YM comprises a forecast of the day-ahead marketprice for that same hour. Mathematically, both forecasting8
model input xMt∈ XM and output yMt∈ YM at time stept can be expressed as follows:xMt= {xPt , xCt , GFt , Mt, IMt },(14)yMt= λFt ,(15)where:• GFt represents forecasts about the state of the powergrid as a whole (available production capacity, trans-mission lines, etc.) at the time step t,• Mt represents diverse information in various marketsrelated to energy (power, carbon, oil, gas, coal, etc.)in neighbouring geographical areas at time step t,• IMtrepresents any extra piece of information thatmay help to predict the future electricity price onthe day-ahead market at time step t.Once again, the scientific literature reveals that thestate-of-the-art approaches for day-ahead power marketprice forecasting are mostly based on innovative machinelearning techniques [29, 30, 31, 32, 33].4.4. Demand response modellingAnother essential algorithmic component is the math-ematical modelling of the residential demand response todynamic prices. In order to make relevant dynamic pric-ing decisions, an estimation of the impact of the electricityprice on the consumer’s behaviour is necessary. In fact,two important characteristics have to be studied:The residential power consumption elasticity. Thisquantity measures the average percentage change of theresidential power consumption in response to a percentagechange in the electricity price. In other words, the elastic-ity captures the willingness of the consumer to adapt itsbehaviour when the price of electricity either increases ordecreases. This elasticity is critical to the dynamic pricingapproach, since it assesses the receptiveness of the con-sumers to dynamic prices. In fact, the residential powerconsumption elasticity can be considered as a quantitativeindicator of the potential of the dynamic pricing approach.The electricity load temporal dependence.Timeplays an important role in power consumption.Firstly,the consumer’s behaviour is highly dependent on the timeof the day. The tendency to adapt this behaviour is alsoexpected to be time-dependent. Therefore, the residentialpower consumption elasticity has to be a function of thetime within a day, among other things. Secondly, a higherelectricity price does not simply reduce the demand as withother commodities, but rather shifts part of the consump-tion earlier and/or later in time. This phenomenon reflectsa complex temporal dependence for power consumption,which has to be accurately modelled in order to design aperforming dynamic pricing policy.Formally, the mathematical model of the residentialdemand response is denoted M.Its input space XD iscomposed of the predicted power consumption before anydemand response and the dynamic prices to be sent to theconsumers for several hours before and after the time pe-riod analysed, together with information about that timeperiod. Its output space YD comprises the predicted powerconsumption after demand response to dynamic prices forthat same time period. Mathematically, both demand re-sponse model input xDt ∈ XD and output yDt ∈ YD at timestep t can be expressed as the following:xDt = {CFt , Y ′t , Tt},(16)yDt = c′t,(17)where Y ′t = {yt+ϵ ∈ R | ϵ = −k, ..., k} is the dynamic pricesignal within a time window centred around time step tand of size k from which the demand response is induced.As far as the scientific literature about the modelling ofdemand response to dynamic prices is concerned, this in-teresting topic has not yet received a lot of attention fromthe research community. Still, there exists a few soundworks presenting demand response models and assessingthe receptiveness of the consumers to dynamic power prices[15, 16, 17, 18, 19], as explained in Section 2.4.5. Uncertainty discussionAs previously hinted, a dynamic pricing policy has tomake its decisions based on imperfect information. Indeed,multiple forecasts for the electricity price, production andconsumption have to be generated 12 up to 35 hours inadvance. Naturally, these predictions comes with a levelof uncertainty that should not be neglected.Moreover,accurately modelling the residential demand response todynamic prices is a particularly challenging task. Becauseof both the random human nature and the difficulty tofully capture the consumers’ behaviour within a mathe-matical model, a notable level of uncertainty should alsobe considered at this stage. Therefore, multiple sources ofuncertainty can be identified in the scope of the dynamicpricing decision-making problem at hand, and a propermanagement of this uncertainty is necessary.A stochastic reasoning is recommended to make sounddynamic pricing decisions despite this substantial level ofuncertainty. Instead of considering each uncertain variable(production, consumption, price, demand response) witha probability of 1, the full probability distribution behindthese quantities has to be estimated and exploited. Basedon this information, the risk associated with uncertaintymay be mitigated. Moreover, safety margins may also con-tribute to reduce this risk, but potentially at the expenseof a lowered performance. In fact, there generally exists9
a trade-off between performance and risk, in line with theadage: with great risk comes great reward.5. Performance assessment methodologyThis section presents a methodology for quantitativelyassessing the performance of a dynamic pricing policy ina comprehensive manner.As explained in Section 3.7,several disjoint objectives can be clearly identified.Forthe sake of completeness, this research work presents threequantitative indicators, one for each objective. The rela-tive importance of these indicators is left to the discretionof the reader according to its main intention among thedifferent objectives previously defined.The performance indicators proposed are based on thecomparison with the original situation without dynamicpricing. In this case, the consumer is assumed to be fullyignorant about the mismatch problem between supply anddemand. No information is provided to the customers ofthe producer/retailer, which consequently have an unin-fluenced consumption behaviour. The price of electricityet is freely determined by the producer/retailer. It mayfor instance be a fixed tariff, or a price indexed on theday-ahead market price:et = α λt + β ,(18)where α and β are parameters to be set by the retailer.Firstly, the impact of a dynamic pricing policy on thesynchronisation between power supply and demand can beassessed through the performance indicator S quantifyingthe relative evolution of the deviation ∆T . This quantityis mathematically expressed as follows:S = 100 ∆T − ∆T∆T,(19)∆T =T −1�t=0|pt − ct| ,(20)where ∆T represents the lack of synchronisation betweensupply and demand without dynamic pricing. Therefore,the quantity S has ideally to be maximised, with a perfectsynchronisation between supply and demand leading to avalue of 100% reduction in deviation.Secondly, the consequence for the consumer regardingits electricity bill can be evaluated with the quantity Bwhich informs about the relative evolution of this powerbill. It can be mathematically computed as the following:B = 100 BT − BTBT,(21)where BT = �T −1t=0 ct et represents the electricity bill paidby the consumer without dynamic pricing. Since the per-formance indicator B represents the percentage reductionin costs, it has to ideally be maximised.Lastly, the enhancement in terms of revenue for theproducer/retailer can be efficiently quantified thanks tothe performance indicator R. This quantity represents therelative evolution of the producer/retailer revenue and canbe mathematically expressed as follows:R = 100 RT − RTRT,(22)RT =T −1�t=0�ct et − (cFt − pFt ) λt − (ct − pt) it�,(23)where RT represents the producer/retailer revenue with-out dynamic pricing. Obviously, the performance indicatorR has to ideally be maximised.6. ConclusionThis research paper presents a detailed formalisation ofthe decision-making problem faced by a producer/retailerwilling to adopt a dynamic pricing approach, in order toinduce an appropriate residential demand response. Threecore challenges are highlighted by this formalisation work.Firstly, the objective criterion maximised by a dynamicpricing policy is not trivially defined, since different goalsthat are not compatible can be clearly identified. Secondly,several complex algorithmic components are necessary forthe development of a performing dynamic pricing policy.One can for instance mention different forecasting blocks,but also a mathematical model of the residential demandresponse to dynamic prices. Thirdly, the dynamic pricingdecisions have to be made based on imperfect information,because this particular decision-making problem is highlyconditioned by the actual uncertainty for the future.Several avenues are proposed for future work. In fact,the natural extension of the present research is to designinnovative dynamic pricing policies from the perspectiveof the supply side based on the formalisation performed.While the present research paper exclusively focuses onthe philosophy and conceptual analysis of the approach,there remain practical concerns that need to be properlyaddressed in order to achieve performing decision-makingpolicies. To achieve that, a deeper analysis of the scientificliterature about each algorithmic component discussed inSection 4 is firstly welcomed, in order to identify and re-produce the state-of-the-art techniques within the contextof interest. Then, different approaches have to be investi-gated for the design of the dynamic pricing policy itself.One can for instance mention, among others, the stochasticoptimisation and deep reinforcement learning techniques.Finally, the dynamic pricing policies developed have to berigorously evaluated, analysed, and compared by takingadvantage of real-life experiments.10
AcknowledgementsThibaut Théate is a Research Fellow of the F.R.S.-FNRS, of which he acknowledges the financial support.References[1] IPCC, Climate Change 2021: The Physical Science Basis. Con-tribution of Working Group I to the Sixth Assessment Reportof the Intergovernmental Panel on Climate Change, CambridgeUniversity Press, Cambridge, United Kingdom and New York,NY, USA, 2021.[2] H.Ritchie,M.Roser,Energy,OurWorldinData,https://ourworldindata.org/energy (2020).[3] S. Chatzivasileiadis, D. Ernst, G. Andersson, The global grid,Renewable Energy 57 (2013) 372–383.[4] N. Kittner, F. Lill, D. M. Kammen, Energy storage deploymentand innovation for the clean energy transition, Nature Energy2 (2017) 17125.[5] P. Palensky, D. Dietrich, Demand side management: Demandresponse, intelligent energy systems, and smart loads, IEEETransactions on Industrial Informatics 7 (2011) 381–388.[6] P. Siano, Demand response and smart grids — A survey, Re-newable & Sustainable Energy Reviews 30 (2014) 461–478.[7] R. Deng, Z. Yang, M.-Y. Chow, J. Chen, A survey on demandresponse in smart grids: Mathematical models and approaches,IEEE Transactions on Industrial Informatics 11 (2015) 570–582.[8] J. S. Vardakas, N. Zorba, C. V. Verikoukis, A survey on de-mand response programs in smart grids: Pricing methods andoptimization algorithms, IEEE Communications Surveys & Tu-torials 17 (2015) 152–178.[9] H. T. Haider, O. H. See, W. Elmenreich, A review of residen-tial demand response of smart grid, Renewable & SustainableEnergy Reviews 59 (2016) 166–178.[10] Z. Zhao, W. C. Lee, Y. Shin, K.-B. Song, An optimal powerscheduling method for demand response in home energy man-agement system, IEEE Transactions on Smart Grid 4 (2013)1391–1400.[11] M. Muratori, G. Rizzoni, Residential demand response: Dy-namic energy management and time-varying electricity pricing,IEEE Transactions on Power Systems 31 (2016) 1108–1117.[12] N. Liu, X. Yu, C. Wang, C. Li, L. Ma, J. Lei, Energy-sharingmodel with price-based demand response for microgrids of peer-to-peer prosumers, IEEE Transactions on Power Systems 32(2017) 3569–3583.[13] J. R. Vázquez-Canteli, Z. Nagy, Reinforcement learning for de-mand response:A review of algorithms and modeling tech-niques, Applied Energy (2019).[14] H. Li, Z. Wan, H. He, Real-time residential demand response,IEEE Transactions on Smart Grid 11 (2020) 4144–4154.[15] S. Gottwalt, W. Ketter, C. Block, J. Collins, C. Weinhardt, De-mand side management — A simulation of household behaviorunder variable prices, Energy Policy 39 (2011) 8163–8174.[16] M. Brégère, R. J. Bessa, Simulating tariff impact in electrical en-ergy consumption profiles with conditional variational autoen-coders, IEEE Access 8 (2020) 131949–131966.[17] K. Ganesan, J. T. Saraiva, R. J. Bessa, Functional model ofresidential consumption elasticity under dynamic tariffs, Energyand Buildings 255 (2022).[18] Y. He, B. Wang, J. Wang, J. Wang, W. Xiong, T. Xia, Residen-tial demand response behavior analysis based on Monte Carlosimulation: The case of Yinchuan in China, Energy 47 (2012)230–236.[19] E. A. M. Klaassen, C. B. A. Kobus, J. Frunt, J. G. Slootweg, Re-sponsiveness of residential electricity demand to dynamic tariffs:Experiences from a large field test in the Netherlands, AppliedEnergy 183 (2016) 1065–1074.[20] C. Sweeney, R. J. Bessa, J. Browell, P. Pinson, The future offorecasting for renewable energy, WIREs Energy and Environ-ment (2019).[21] R. Ahmed, V. Sreeram, Y. D. Mishra, M. Arif, A review andevaluation of the state-of-the-art in PV solar power forecasting:Techniques and optimization, Renewable & Sustainable EnergyReviews 124 (2020) 109792.[22] S. Aslam, H. Herodotou, S. M. Mohsin, N. Javaid, N. Ashraf,S. Aslam, A survey on deep learning methods for power load andrenewable energy forecasting in smart microgrids, Renewableand Sustainable Energy Reviews 144 (2021).[23] H. Jahangir, H. Tayarani, S. S. Gougheri, M. A. Golkar, A. Ah-madian, A. Elkamel, Deep learning-based forecasting approachin smart grids with microclustering and bidirectional LSTM net-work, IEEE Transactions on Industrial Electronics 68 (2021)8298–8309.[24] D. Heinemann, E. Lorenz, M. Girodo, Forecasting solar radia-tion, Journal of Cases on Information Technology (2021).[25] W. Kong, Z. Y. Dong, Y. Jia, D. J. Hill, Y. Xu, Y. Zhang, Short-term residential load forecasting based on LSTM recurrent neu-ral network, IEEE Transactions on Smart Grid 10 (2019) 841–851.[26] N. Somu, G. R. M. R, K. Ramamritham, A hybrid model forbuilding energy consumption forecasting using long short termmemory networks, Applied Energy 261 (2020) 114131.[27] X. bo Jin, W. Zheng, J. Kong, X. Wang, Y. Bai, T. Su, S. Lin,Deep-learning forecasting method for electric power load viaattention-based encoder-decoder with bayesian optimization,Energies 14 (2021) 1596.[28] A. Gasparin, S. Lukovic, C. Alippi, Deep learning for time se-ries forecasting: The electric load case, CAAI Transactions onIntelligence Technology 7 (2021).[29] R. Weron, Electricity price forecasting: A review of the state-of-the-art with a look into the future, HSC Research Reports(2014).[30] J. Nowotarski, R. Weron, Recent advances in electricity priceforecasting: A review of probabilistic forecasting, HSC ResearchReports (2016).[31] A. R. Gollou, N. Ghadimi, A new feature selection and hy-brid forecast engine for day-ahead price forecasting of electricitymarkets, J. Intell. Fuzzy Syst. 32 (2017) 4031–4045.[32] U. Ugurlu, I. Oksuz, O. Tas, Electricity price forecasting usingrecurrent neural networks, Energies 11 (2018) 1255.[33] H. Jahangir, H. Tayarani, S. Baghali, A. Ahmadian, A. Elkamel,M. A. Golkar, M. Castilla, A novel electricity price forecastingapproach based on dimension reduction strategy and rough ar-tificial neural networks, IEEE Transactions on Industrial Infor-matics 16 (2020) 2369–2381.11
123version https://git-lfs.github.com/spec/v1oid sha256:e28b81343d1235599c70f9c9c3cbb836066928ec77806cddf0286ee1db2aad3dsize 235377123version https://git-lfs.github.com/spec/v1oid sha256:3de2cd09d96d1a7073c349d938045573fcf743d4d73ef29f7c29e67369cac9f9size 852013123version https://git-lfs.github.com/spec/v1oid sha256:3fcc8c443c05193a07366f41e8a6a6e43dcc8017230bb01efdd9ff1761e18548size 45291123version https://git-lfs.github.com/spec/v1oid sha256:ccd65ccbf6f85c08c77cb8c1d494182757a2ec78e707beba11a988acedf286absize 114673123version https://git-lfs.github.com/spec/v1oid sha256:0574c340b17a38c24d7245b6f990cee3caeee5aa2e487e5ffb793b9ef975eb4fsize 1507373123version https://git-lfs.github.com/spec/v1oid sha256:8c3fa6a4b842b7c08d2672b72d6039ec14afa3730a56f8fc0945b3965c770c7fsize 55233123version https://git-lfs.github.com/spec/v1oid sha256:caf0dcededec6e9659b705392704534d7db404475dd4080c14388abe0806287dsize 13401543123version https://git-lfs.github.com/spec/v1oid sha256:2dddc73af5082d97cfe9065c89d554d9247ecaeb42c6ad9f1ebd5eab411f5323size 2237861123version https://git-lfs.github.com/spec/v1oid sha256:eae9c18cdd72effe082f552444c6dd1dc00cf95ed94baf6a6a0baff6f85029d0size 68157891234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015DiffTalk: Crafting Diffusion Models for Generalized Talking Head SynthesisShuai Shen1Wenliang Zhao1Zibin Meng1Wanhua Li1Zheng Zhu2Jie Zhou1Jiwen Lu11Tsinghua University2PhiGent Robotics…Figure 1. We present a crafted conditional Diffusion model for generalized Talking head synthesis (DiffTalk). Given a driven audio, theDiffTalk is capable of synthesizing high-fidelity and synchronized talking videos for multiple identities without further fine-tuning.AbstractTalking head synthesis is a promising approach for thevideo production industry.Recently, a lot of effort hasbeen devoted in this research area to improve the gener-ation quality or enhance the model generalization. How-ever, there are few works able to address both issues simul-taneously, which is essential for practical applications. Tothis end, in this paper, we turn attention to the emergingpowerful Latent Diffusion Models, and model the Talkinghead generation as an audio-driven temporally coherentdenoising process (DiffTalk).More specifically, insteadof employing audio signals as the single driving factor,we investigate the control mechanism of the talking face,and incorporate reference face images and landmarks asconditions for personality-aware generalized synthesis. Inthis way, the proposed DiffTalk is capable of producinghigh-quality talking head videos in synchronization with thesource audio, and more importantly, it can be naturally gen-eralized across different identities without any further fine-tuning.Additionally, our DiffTalk can be gracefully tai-lored for higher-resolution synthesis with negligible extracomputational cost. Extensive experiments show that theproposed DiffTalk efficiently synthesizes high-fidelity audio-driven talking head videos for generalized novel identi-ties. For more video results, please refer to this demon-stration https://cloud.tsinghua.edu.cn/f/e13f5aad2f4c4f898ae7/.1. IntroductionTalking head synthesis is a challenging and promising re-search topic, which aims to synthesize a talking video withgiven audio. This technique is widely applied in variouspractical scenarios including animation, virtual avatars, on-line education, and video conferencing [4,44,47,50,52].Recently a lot of effort has been devoted to this re-search area to improve the generation quality or enhancethe model generalization.Among these existing main-stream talking head generation approaches, the 2D-basedmethods usually depend on generative adversarial networks(GANs) [6, 10, 16, 22, 28] for audio-to-lip mapping, and1arXiv:2301.03786v1 [cs.CV] 10 Jan 2023
most of them perform competently on model generalization.However, since GANs need to simultaneously optimize agenerator and a discriminator, the training process lacks sta-bility and is prone to mode collapse [11]. Due to this re-striction, the generated talking videos are of limited imagequality, and difficult to scale to higher resolutions. By con-trast, 3D-based methods [2,17,42,46,53] perform better insynthesizing higher-quality talking videos. Whereas, theyhighly rely on identity-specific training, and thus cannotgeneralize across different persons. Such identity-specifictraining also brings heavy resource consumption and is notfriendly to practical applications. Most recently, there aresome 3D-based works [36] that take a step towards improv-ing the generalization of the model. However, further fine-tuning on specific identities is still inevitable.Generation quality and model generalization are two es-sential factors for better deployment of the talking head syn-thesis technique to real-world applications. However, fewexisting works are able to address both issues well. In thispaper, we propose a crafted conditional Diffusion model forgeneralized Talking head synthesis (DiffTalk), that aims totackle these two challenges simultaneously. Specifically, toavoid the unstable training of GANs, we turn attention tothe recently developed generative technology Latent Dif-fusion Models [30], and model the talking head synthe-sis as an audio-driven temporally coherent denoising pro-cess. On this basis, instead of utilizing audio signals asthe single driving factor to learn the audio-to-lip transla-tion, we further incorporate reference face images and land-marks as supplementary conditions to guide the face iden-tity and head pose for personality-aware video synthesis.Under these designs, the talking head generation processis more controllable, which enables the learned model tonaturally generalize across different identities without fur-ther fine-tuning. As shown in Figure 1, with a sequenceof driven audio, our DiffTalk is capable of producing natu-ral talking videos of different identities based on the corre-sponding reference videos. Moreover, benefiting from thelatent space learning mode, our DiffTalk can be gracefullytailored for higher-resolution synthesis with negligible ex-tra computational cost, which is meaningful for improvingthe generation quality.Extensive experiments show that our DiffTalk can syn-thesize high-fidelity talking videos for novel identities with-out any further fine-tuning. Figure 1 shows the generatedtalking sequences with one driven audio across three differ-ent identities. Comprehensive method comparisons showthe superiority of the proposed DiffTalk, which provides astrong baseline for the high-performance talking head syn-thesis. To summarize, we make the following contributions:• We propose a crafted conditional diffusion model forhigh-quality and generalized talking head synthesis. Byintroducing smooth audio signals as a condition, wemodel the generation as an audio-driven temporally co-herent denoising process.• For personality-aware generalized synthesis, we furtherincorporate dual reference images as conditions. In thisway, the trained model can be generalized across differentidentities without further fine-tuning.• The proposed DiffTalk can generate high-fidelity andvivid talking videos for generalized identities. In exper-iment, our DiffTalk significantly outperforms 2D-basedmethods in the generated image quality, while surpassing3D-based works in the model generalization ability.2. Related WorkAudio-driven Talking Head Synthesis.The talkinghead synthesis aims to generate talking videos with lipmovements synchronized with the driving audio [14, 40].In terms of the modeling approach, we roughly divide theexisting methods into 2D-based and 3D-based ones.Inthe 2D-based methods, GANs [6, 10, 16, 28] are usuallyemployed as the core technologies for learning the audio-to-lip translation.Zhou et al. [52] introduce a speaker-aware audio encoder for personalized head motion model-ing. Prajwal et al. [28] boost the lip-visual synchroniza-tion with a well-trained Lip-Sync expert [8].However,since the training process of GANs lacks stability and isprone to mode collapse [11], the generated talking videosare always of limited image quality, and difficult to scaleto higher resolutions. Recently a series of 3D-based meth-ods [4,20,39–41] have been developed. [39–41] utilize 3DMorphable Models [2] for parametric control of the talk-ing face.More recently, the emerging Neural radiancefields [26] provide a new solution for 3D-aware talking headsynthesis [3, 17, 24, 36]. However, most of these 3D-basedworks highly rely on identity-specific training, and thuscannot generalize across different identities. Shen et al. [36]have tried to improve the generalization of the model, how-ever, further fine-tuning on specific identities is still in-evitable. In this work, we propose a brand-new diffusionmodel-based framework for high-fidelity and generalizedtalking head synthesis.Latent Diffusion Models. Diffusion Probabilistic Mod-els (DM) [37] have shown strong ability in various im-age generation tasks [11, 19, 29]. However, due to pixelspace-based training [30,32], very high computational costsare inevitable.More recently, Rombach et al. [30] pro-pose the Latent Diffusion Models (LDMs), and transfer thetraining and inference processes of DM to a compressedlower-dimension latent space for more efficient comput-ing [13, 49]. With the democratizing of this technology, ithas been successfully employed in a series of works, in-cluding text-to-image translation [21, 31, 33], super resolu-tion [7, 12, 27], image inpainting [23, 25], motion genera-tion [35,48], 3D-aware prediction [1,34,43]. In this work,2
AttAttAttAttAttAttAttAtt���0������…������−1���1���������������������ReferenceAudioLandmark������concatenateconcatenate���������������−1������……Conditions0Diffusion ProcessDenoising Process������������������Figure 2. Overview of the proposed DiffTalk for generalized talking head video synthesis. Apart from the audio signal condition to drivethe lip motions, we further incorporate reference images and facial landmarks as extra driving factors for personalized facial modeling.In this way, the talking head generation process is more controllable, which enables the learned model to generalize across differentidentities without further fine-tuning. Furthermore, benefiting from the latent space learning mode, we can graceful improve our DiffTalkfor higher-resolution synthesis with slight extra computational cost.drawing on these successful practices, we model the talk-ing head synthesis as an audio-driven temporally coherentdenoising process and achieve superior generation results.3. Methodology3.1. OverviewTo tackle the challenges of generation quality and modelgeneralization for better real-world deployment, we modelthe talking head synthesis as an audio-driven temporally co-herent denoising process, and term the proposed method asDiffTalk. An overview of the proposed DiffTalk is shown inFigure 2. By introducing smooth audio features as a condi-tion, we improve the diffusion model for temporally coher-ent facial motion modeling. For further personalized facialmodeling, we incorporate reference face images and faciallandmarks as extra driving factors. In this way, the talkinghead generation process is more controllable, which enablesthe learned model to generalize across different identitieswithout any further fine-tuning. Moreover, benefiting fromthe latent space learning mode, we can graceful improveour DiffTalk for higher-resolution synthesis with negligibleextra computational cost, which contributes to improvingthe generation quality. In the following, we will detail theproposed conditional Diffusion Models for high-fidelity andgeneralized talking head generation in Section 3.2. In Sec-tion 3.3, the progressive inference stage is introduced forbetter inter-frame consistency.3.2. Conditional Diffusion Model for Talking HeadThe emergence of Latent Diffusion Models (LDMs) [19,30] provides a straightforward and effective way for high-fidelity image synthesis. To inherit its excellent properties,we adopt this advanced technology as the foundation of ourmethod and explore its potential in modeling the dynamictalking head. With a pair of well-trained image encoder EIand decoder DI which are frozen in training [13], the in-put face image x ∈ RH×W ×3 can be encoded into a latentspace z0 = EI(x) ∈ Rh×w×3, where H/h = W/w = f,H, W are the height and width of the original image andf is the downsampling factor. In this way, the learning istransferred to a lower-dimensional latent space, which ismore efficient with fewer train resources. On this basis, thestandard LDMs are modeled as a time-conditional UNet-based [32] denoising network M, which learns the reverseprocess of a Markov Chain [15] of length T. The corre-sponding objective can be formulated as:LLDM := Ez,ϵ∼N (0,1),t�∥ϵ − M (zt, t)∥22�,(1)where t ∈ [1, · · · , T] and zt is obtained through the forwarddiffusion process from z0. ˜zt−1 = zt − M(zt, t) is thedenoising result of zt at time step t. The final denoisedresult ˜z0 is then upsampled to the pixel space with the pre-trained image decoder ˜x = DI(˜z0), where ˜x ∈ RH×W ×3is the reconstructed face image.Given a source identity and driven audio, our goal is totrain a model for generating a natural target talking video in3
Audio Stream16 time intervalsDeepSpeech RNNFeature MapFeature ExtractorTemporal Filtering16 windown size Figure 3. Visualization of the smooth audio feature extractor. Forbetter temporal coherence, two-stage smoothing operations are in-volved in this module.synchronization with the audio condition while maintainingthe original identity information. Furthermore, the trainedmodel also needs to work for novel identities during infer-ence. To this end, the audio signal is introduced as a basiccondition to guide the direction of the denoising process formodeling the audio-to-lip translation.Smooth Audio Feature Extraction. To better incorpo-rate temporal information, we involve two-stage smoothingoperations in the audio encoder EA, as shown in Figure 3.Firstly, following the practice in VOCA [9], we reorganizethe raw audio signal into overlapped windows of size 16time intervals (corresponding to audio clips of 20ms), whereeach window is centered on the corresponding video frame.A pre-trained RNN-based DeepSpeech [18] module is thenleveraged to extract the per-frame audio feature map F. Forbetter inter-frame consistency, we further introduce a learn-able temporal filtering [41]. It receives a sequence of adja-cent audio features [Fi−w, . . . , Fi, . . . , Fi+w] with w = 8as input, and computes the final smoothed audio feature forthe i-th frame as a ∈ RDA in a self-attention-based learn-ing manner, where DA denotes the audio feature dimension.By encoding the audio information, we bridge the modalitygap between the audio signals and the visual information.Introducing such smooth audio features as a condition, weextend the diffusion model for temporal coherence-awaremodeling of face dynamics when talking. The objective isthen formulated as:LA := Ez,ϵ∼N (0,1),a,t�∥ϵ − M (zt, t, a)∥22�.(2)Identity-Preserving Model Generalization. In addi-tion to learning the audio-to-lip translation, another essen-tial task is to realize the model generalization while pre-serving complete identity information in the source image.Generalized identity information includes face appearance,head pose, and image background. To this end, a referencemechanism is designed to empower our model to general-ize to new individuals unseen in training, as shown in Fig-ure 2. Specifically, a random face image xr of the sourceidentity is chosen as a reference condition, which containsappearance and background information. To prevent train-ing shortcuts, we limit the selection of xr to 60 frames be-yond the target image.However, since the ground-truthface image has a completely different pose from xr, themodel is expected to transfer the pose of xr to the targetface without any prior information. This is somehow anill-posed problem with no unique solution. For this rea-son, we further incorporate the masked ground-truth im-age xm as another reference condition to provide the targethead pose guidance. The mouth region of xm is completelymasked to ensure that the ground truth lip movements arenot visible to the network. In this way, the reference xr fo-cuses on affording mouth appearance information, whichadditionally reduces the training difficulty.Before serv-ing as conditions, xr and xm are also encoded into the la-tent space through the trained image encoder, and we havezr = DI(xr) ∈ Rh×w×3, zm = DI(xm) ∈ Rh×w×3. Onthis basis, an auxiliary facial landmarks condition is also in-cluded for better control of the face outline. Similarly, land-marks in the mouth area are masked to avoid shortcuts. Thelandmark feature l ∈ RDL is obtained with an MLP-basedencoder EL, where DL is the landmark feature dimension.In this way, combining these conditions with audio featurea, we realize the precise control over all key elements ofa dynamic talking face. With C = {a, zr, zm, l} denotingthe condition set, the talking head synthesis is finally mod-eled as a conditional denoising process optimized with thefollowing objective:L := Ez,ϵ∼N (0,1),C,t�∥ϵ − M (zt, t, C)∥22�,(3)where the network parameters of M, EA and EL are jointlyoptimized via this equation.Conditioning Mechanisms. Based on the modeling ofthe conditional denoising process in Eq. 3, we pass theseconditions C to the network in the manner shown in Fig-ure 2. Specifically, following [30], we implement the UNet-based backbone M with the cross-attention mechanism forbetter multimodality learning. The spatially aligned refer-ences zr and zm are concatenated channel-wise with thenoisy map zT to produce a joint visual condition Cv =[zT ; zm; zr] ∈ Rh×w×9. Cv is fed to the first layer of thenetwork to directly guide the output face in an image-to-image translation fashion. Additionally, the driven-audiofeature a and the landmark representation l are concatenatedinto a latent condition Cl = [a; l] ∈ RDA+DL, which servesas the key and value for the intermediate cross-attentionlayers of M.To this extent, all condition informationC = {Cv, Cl} are properly integrated into the denoisingnetwork M to guide the talking head generation process.4
DDIM-based Denoising������,1Random ������,1���1������,2������,2���2������DDIM-based DenoisingDDIM-based Denoising������,���…������,���Figure 4. Illustration of the designed progressive inference strat-egy. For the first frame, the setting of the visual condition Cvremains the same as for training, where xr,1 is a random face im-age from the target identity. Subsequently, the synthetic image ˜xiis employed as the reference condition xr,i+1 for the next frameto enhance the temporal coherence of the generated video.Higher-Resolution Talking Head Synthesis Our pro-posed DiffTalk can also be gracefully extended for higher-resolution talking head synthesis with negligible extra com-putational cost and faithful reconstruction effects. Specif-ically, considering the trade-off between the perceptualloss and the compression rate, for training images of size256 × 256 × 3, we set the downsampling factor as f = 4and obtain the latent space of 64 × 64 × 3. Furthermore,for higher-resolution generation of 512 × 512 × 3, we justneed to adjust the paired image encoder EI and decoder DIwith a bigger downsampling factor f = 8. Then the trainedencoder is frozen and employed to transfer the training pro-cess to a 64 × 64 × 3 latent space as well. This helps torelieve the pressure on insufficient resources, and thereforeour model can be gracefully improved for higher-resolutiontalking head video synthesis.3.3. Progressive InferenceWe perform inference with Denoising Diffusion ImplicitModel-based (DDIM) [38] iterative denoising steps. DDIMis a variant of the standard DM to accelerate sampling formore efficient synthesis. To further boost the coherence ofthe generated talking videos, we develop a progressive ref-erence strategy in the reference process as shown in Fig-ure 4. Specifically, when rendering a talking video sequencewith the trained model, for the first frame, the setting of thevisual condition Cv remains the same as for training, wherexr,1 is a random face image from the target identity. Sub-sequently, this synthetic face image is exploited as the xrfor the next frame. In this way, image details between adja-cent frames remain consistent, resulting in a smoother tran-sition between frames. It is worth noting that this strategyis not used for training. Since the difference between adja-cent frames is small, we need to eliminate such referencesto avoid learning shortcuts.01000100GTw.o. Smoothw. SmoothFigure 5. Ablation study on the audio smoothing operation. Weshow the differences between adjacent frames as heatmaps for bet-ter visualization. The results without audio filtering present obvi-ous high heat values in the mouth region, which indicates the jittersin this area. By contrast, with smooth audio as the condition, thegenerated video frames show smoother transitions.4. Experiments4.1. Experimental SettingsDataset. To train the audio-driven diffusion model, anaudio-visual dataset HDTF [51] is used.It contains 16hours of talking videos in 720P or 1080P from more than300 identities.We randomly select 100 videos with thelength of about 5 hours for training, while the remainingdata serve as the test set. Apart from this public dataset, wealso use some other videos for cross-dataset evaluation.Metric. We evaluate our proposed method through vi-sual results coupled with quantitative indicators.PSNR(↑), SSIM (↑) [45] and LPIPS (↓) [49] are three metricsfor assessing image quality. The LPIPS is a learning-basedperceptual similarity measure that is more in line with hu-man perception, we therefore recommend this metric as amore objective indicator.The SyncNet score (Offset↓ /Confidence↑) [8] checks the audio-visual synchronizationquality, which is important for the audio-driven talking headgeneration task.(‘↓’ indicates that the lower the better,while ‘↑’ means that the higher the better.)Implementation Details. We resize the input image to256 × 256 for experiments. The downsampling factor f isset as 4, so the latent space is 64 × 64 × 3. For training themodel for higher resolution synthesis, the input is resized to512 × 512 with f = 8 to keep the same size of latent space.The length of the denoising step T is set as 200 for both the5
Ground TruthAA + LA + L + RA + MA + L + M + RID 1ID 2Figure 6. Ablation study on the design of the conditions. The marks above these images refer to the following meanings, ‘A’: Audio;‘L’: Landmark; ‘R’: Random reference image; ‘M’: Masked ground-truth image. We show the generated results under different conditionsettings on two test sets, and demonstrate the effectiveness of our final design, i.e. A+L+M+R.MethodPSNR↑ SSIM↑ LPIPS↓ SyncNet↓↑Test Set AGT---0/9.610w/o33.670.9440.0241/5.484w34.170.9460.0241/6.287Test Set BGT---0/9.553w/o32.700.9240.0311/5.197w32.730.9250.0311/5.387Table 1. Ablation study to investigate the contribution of the audiosmoothing operation. ‘w’ indicates the model is trained with theaudio features after temporal filtering and vice versa.training and inference process. The feature dimensions areDA = DL = 64. Our model takes about 15 hours to trainon 8 NVIDIA 3090Ti GPUs.4.2. Ablation StudyEffect of the Smooth Audio. In this subsection, we in-vestigate the effect of the audio smooth operations. Quanti-tative results in Table 1 show that the model equipped withthe audio temporal filtering module outperforms the onewithout smooth audio, especially in the SyncNet score. Wefurther visualize the differences between adjacent frames asthe heatmaps shown in Figure 5. The results without audiofiltering present obvious high heat values in the mouth re-gion, which indicates the jitters in this area. By contrast,with smooth audio as the condition, the generated videoframes show smoother transitions, which are reflected in thesoft differences of adjacent frames.Design of the Conditions. A major contribution of thiswork is the ingenious design of the conditions for generaland high-fidelity talking head synthesis. In Figure 6, weshow the generated results under different condition settingsstep by step, to demonstrate the superiority of our design.MethodPSNR↑ SSIM↑ LPIPS↓ SyncNet↓↑Test Set AGT---4/7.762w/o34.170.9460.0241/6.287w33.950.9460.023-1/6.662Test Set BGT---3/8.947w/o32.730.9250.0311/5.387w33.020.9250.0301/5.999Table 2. Ablation study on the effect of the progressive inferencestrategy. ‘w/o’ indicates that a random reference image is em-ployed as the condition, and ‘w’ means that the reference is thegenerated result of the previous frame.With pure audio as the condition, the model fails to gener-alize to new identities, and the faces are not aligned with thebackground in the inpainting-based inference. Adding land-marks as another condition tackles the misalignment prob-lem. A random reference image is further introduced try-ing to provide the identity information. Whereas, since theground-truth face image has a different pose from this ran-dom reference, the model is expected to transfer the pose ofreference to the target face. This greatly increases the diffi-culty of training, leading to hard network convergence, andthe identity information is not well learned. Using the au-dio and masked ground-truth images as driving factors mit-igates the identity inconsistency and misalignment issues,however the appearance of the mouth can not be learnedsince this information is not visible to the network. Forthis reason, we employ the random reference face and themasked ground-truth image together for dual driving, wherethe random reference provides the lip appearance messageand the masked ground-truth controls the head pose andidentity. Facial landmarks are also incorporated as a con-dition that helps to model the facial contour better. Results6
GTATVGMakeItTalkWav2LipOursDFRFAD-NeRF3D-based Methods2D-based MethodsFigure 7. Visual comparison with some representative 2D-based talking head generation methods ATVGnet [5], MakeitTalk [52] andWav2Lip [28], and with some recent 3D-based ones AD-NeRF [17] and DFRF [36]. The results of DFRF are synthesized with the basemodel without fine-tuning for fair comparisons. AD-NeRF is trained on these two identities respectively to produce the results.in Figure 6 show the effectiveness of such design in synthe-sizing realism and controllable face images.Impact of the Progressive Inference. Temporal corre-lation inference is developed in this work through the pro-gressive reference strategy. We conduct an ablation studyin Table 2 to investigate the impact of this design. ‘w/o’ in-dicates that a random reference image xr is employed, and‘w’ means that the generated result of the previous frameis chosen as the reference condition. With such progressiveinference, the SyncNet scores are further boosted, since thetemporal correlation is better modeled and the talking stylebecomes more coherent. The LPIPS indicator is also en-hanced with this improvement. PSNR tends to give higherscores to blurry images [49], so we recommend LPIPS as amore representative metric for visual quality.4.3. Method ComparisonComparison with 2D-based Methods. In this section,we perform method comparisons with some representative2D-based talking head generation approaches including theATVGnet [5], MakeitTalk [52] and Wav2Lip [28]. Figure 7visualizes the generated frames of these methods. It canbe seen that the ATVGnet performs generation based oncropped faces with limited image quality. The MakeItTalksynthesizes plausible talking frames, however the back-ground is wrongly wrapped with the mouth movements.This phenomenon is more observable in the video formresult, and greatly affects the visual experience.Gener-ated talking faces of Wav2Lip appear artifacts in the squareboundary centered on the mouth, since the synthesized area7
MethodTest Set ATest Set BGeneralPSNR↑SSIM↑LPIPS↓SyncNet↓↑PSNR↑SSIM↑LPIPS↓SyncNet↓↑MethodGT----1/8.979----2/7.924-MakeItTalk [52]18.770.5440.19-4/3.93617.700.6480.129-3/3.416✓Wav2Lip [28]25.500.7610.140-2/8.93633.380.9420.027-3/9.385✓AD-NeRF [17]27.890.8850.072-2/5.63930.140.9470.023-3/4.246DFRF [36]28.600.8920.068-1/5.99933.570.9490.025-2/4.432FT Req.Ours34.540.9500.024-1/6.38134.010.9500.020-1/5.639✓Table 3. Comparison with some representative talking head synthesis methods on two test sets as in Figure 7. The best performance ishighlighted in red (1st best) and blue (2nd best). Our DiffTalk obtains the best PSNR, SSIM, and LPIPS values, and comparable SyncNetscores simultaneously. It is worth noting that the DFRF is fine-tuned on the specific identity to obtain these results, while our method candirectly be utilized for generation without further fine-tuning. (‘FT Req.’ means that fine-tuning operation is required for the DFRF.)and the original image are not well blended. By contrast,the proposed DiffTalk generates natural and realistic talk-ing videos with accurate audio-lip synchronization, owingto the crafted conditioning mechanism and stable trainingprocess. For more objective comparisons, we further eval-uate the quantitative results in Table 3. Our DiffTalk farsurpasses [28] and [52] in all image quality metrics. Forthe audio-visual synchronization metric SyncNet, the pro-posed method reaches a high level and is superior thanMakeItTalk. Although the DiffTalk is slightly inferior toWav2Lip on the SyncNet score, it is far better than Wav2Lipin terms of image quality. In conclusion, our method outper-forms these 2D-based methods under comprehensive con-sideration of the qualitative and quantitative results.Comparison with 3D-based Methods. For more com-prehensive evaluations, we further compare with somerecent high-performance 3D-based works including AD-NeRF [17] and DFRF [36]. They realize implicitly 3D headmodeling with the NeRF technology, so we treat them asgeneralized 3D-based methods. The visualization resultsare shown in Figure 7. AD-NeRF models the head and torsoparts separately, resulting in misalignment in the neck re-gion. More importantly, it is worth noting that AD-NeRFis a non-general method. In contrast, our method is able tohandle unseen identities without further fine-tuning, whichis more in line with the practical application scenarios. TheDFRF relies heavily on the fine-tuning operation for modelgeneralization, and the generated talking faces with onlythe base model are far from satisfactory as shown in Fig-ure 7. More quantitative results in Table 3 also show that ourmethod surpasses [17, 36] on the image quality and audio-visual synchronization indicators.4.4. Expand to Higher ResolutionIn this section, we perform experiments to demonstratethe capacity of our method on generating higher-resolutionimages. In Figure 8, we show the synthesis frames of twomodels (a) and (b). (a) is trained on 256 × 256 images withthe downsampling factor f = 4, so the latent space is of(a) Resolution: 256 × 256, ���=4(b) Resolution: 512 × 512, ���=8Figure 8. Generated results with higher resolution.size 64 × 64 × 3. For (b), 512 × 512 images with f =8 are used for training the model. Since both models aretrained based on a compressed 64 × 63 × 3 latent space,the pressure of insufficient computing resources is relieved.We can therefore comfortably expand our model for higher-resolution generation just as shown in Figure 8, where thesynthesis quality in (b) significantly outperforms that in (a).5. Conclusion and DiscussionIn this paper, we have proposed a generalized and high-fidelity talking head synthesis method based on a craftedconditional diffusion model. Apart from the audio signalcondition to drive the lip motions, we further incorporatereference images as driving factors to model the personal-ized appearance, which enables the learned model to com-fortably generalize across different identities without anyfurther fine-tuning. Furthermore, our proposed DiffTalk canbe gracefully tailored for higher-resolution synthesis withnegligible extra computational cost.Limitations. The proposed method models talking headgeneration as an iterative denoising process, which needsmore time to synthesize a frame compared with most GAN-based approaches. This is also a common problem of LDM-based works which warrants further research. Nonetheless,we have a large speed advantage over most 3D-based meth-ods. Since talking head technology may raise potential mis-use issues, we are committed to combating these maliciousbehaviors and advocate positive applications. Additionally,researchers who want to use our code will be required to getauthorization and add watermarks to the generated videos.8
References[1] Miguel Angel Bautista, Pengsheng Guo, Samira Abnar, Wal-ter Talbott, Alexander Toshev, Zhuoyuan Chen, LaurentDinh, Shuangfei Zhai, Hanlin Goh, Daniel Ulbricht, et al.Gaudi: A neural architect for immersive 3d scene genera-tion. arXiv, 2022. 2[2] Volker Blanz and Thomas Vetter. A morphable model for thesynthesis of 3d faces. In SIGGRAPH, 1999. 2[3] Eric R Chan, Marco Monteiro, Petr Kellnhofer, Jiajun Wu,and Gordon Wetzstein.pi-gan: Periodic implicit genera-tive adversarial networks for 3d-aware image synthesis. InCVPR, 2021. 2[4] Lele Chen, Guofeng Cui, Celong Liu, Zhong Li, Ziyi Kou, YiXu, and Chenliang Xu. Talking-head generation with rhyth-mic head motion. In ECCV, 2020. 1, 2[5] Lele Chen, Ross K Maddox, Zhiyao Duan, and ChenliangXu. Hierarchical cross-modal talking face generation withdynamic pixel-wise loss. In CVPR, 2019. 7[6] Michail Christos Doukas, Stefanos Zafeiriou, and ViktoriiaSharmanska. Headgan: Video-and-audio-driven talking headsynthesis. arXiv, 2020. 1, 2[7] Hyungjin Chung, Jeongsol Kim, Michael T Mccann, Marc LKlasky, and Jong Chul Ye. Diffusion posterior sampling forgeneral noisy inverse problems. arXiv, 2022. 2[8] Joon Son Chung and Andrew Zisserman. Out of time: auto-mated lip sync in the wild. In ACCV, 2016. 2, 5[9] Daniel Cudeiro, Timo Bolkart, Cassidy Laidlaw, AnuragRanjan, and Michael J Black. Capture, learning, and syn-thesis of 3d speaking styles. In CVPR, 2019. 4[10] Dipanjan Das, Sandika Biswas, Sanjana Sinha, and Brojesh-war Bhowmick. Speech-driven facial animation using cas-caded gans for learning of motion and texture. In ECCV,2020. 1, 2[11] Prafulla Dhariwal and Alexander Nichol. Diffusion modelsbeat gans on image synthesis. NeurIPS, 2021. 2[12] Marcelo dos Santos, Rayson Laroca, Rafael O Ribeiro, Jo˜aoNeves, Hugo Proenc¸a, and David Menotti.Face super-resolution using stochastic differential equations.arXiv,2022. 2[13] Patrick Esser, Robin Rombach, and Bjorn Ommer. Tamingtransformers for high-resolution image synthesis. In CVPR,2021. 2, 3[14] Pablo Garrido, Levi Valgaerts, Hamid Sarmadi, IngmarSteiner,Kiran Varanasi,Patrick Perez,and ChristianTheobalt. Vdub: Modifying face video of actors for plau-sible visual alignment to a dubbed audio track. In ComputerGraph. Forum, 2015. 2[15] Charles J Geyer. Practical markov chain monte carlo. Statis-tical science, 1992. 3[16] Kuangxiao Gu, Yuqian Zhou, and Thomas Huang. Flnet:Landmark driven fetching and learning network for faithfultalking facial animation synthesis. In AAAI, 2020. 1, 2[17] Yudong Guo, Keyu Chen, Sen Liang, Yongjin Liu, HujunBao, and Juyong Zhang. Ad-nerf: Audio driven neural radi-ance fields for talking head synthesis. In ICCV, 2021. 2, 7,8[18] Awni Hannun, Carl Case, Jared Casper, Bryan Catanzaro,Greg Diamos, Erich Elsen, Ryan Prenger, Sanjeev Satheesh,Shubho Sengupta, Adam Coates, et al. Deep speech: Scalingup end-to-end speech recognition. arXiv, 2014. 4[19] Jonathan Ho, Ajay Jain, and Pieter Abbeel. Denoising diffu-sion probabilistic models. NeurIPS, 2020. 2, 3[20] Xinya Ji,Hang Zhou,Kaisiyuan Wang,Wayne Wu,Chen Change Loy, Xun Cao, and Feng Xu. Audio-drivenemotional video portraits. In CVPR, 2021. 2[21] Bahjat Kawar, Shiran Zada, Oran Lang, Omer Tov, HuiwenChang, Tali Dekel, Inbar Mosseri, and Michal Irani. Imagic:Text-based real image editing with diffusion models. arXiv,2022. 2[22] Prajwal KR, Rudrabha Mukhopadhyay, Jerin Philip, Ab-hishek Jha, Vinay Namboodiri, and CV Jawahar. Towardsautomatic face-to-face translation. In ACMMM, 2019. 1[23] Wing-Fung Ku, Wan-Chi Siu, Xi Cheng, and H AnthonyChan. Intelligent painter: Picture composition with resam-pling diffusion model. arXiv, 2022. 2[24] Xian Liu, Yinghao Xu, Qianyi Wu, Hang Zhou, WayneWu, and Bolei Zhou. Semantic-aware implicit neural audio-driven video portrait generation. arXiv, 2022. 2[25] Andreas Lugmayr, Martin Danelljan, Andres Romero, FisherYu, Radu Timofte, and Luc Van Gool. Repaint: Inpaintingusing denoising diffusion probabilistic models.In CVPR,2022. 2[26] Ben Mildenhall, Pratul P Srinivasan, Matthew Tancik,Jonathan T Barron, Ravi Ramamoorthi, and Ren Ng. Nerf:Representing scenes as neural radiance fields for view syn-thesis. In ECCV, 2020. 2[27] Kushagra Pandey, Avideep Mukherjee, Piyush Rai, and Ab-hishek Kumar. Diffusevae: Efficient, controllable and high-fidelity generation from low-dimensional latents.arXiv,2022. 2[28] KR Prajwal, Rudrabha Mukhopadhyay, Vinay P Nambood-iri, and CV Jawahar. A lip sync expert is all you need forspeech to lip generation in the wild. In ACMMM, 2020. 1, 2,7, 8[29] Aditya Ramesh, Mikhail Pavlov, Gabriel Goh, Scott Gray,Chelsea Voss, Alec Radford, Mark Chen, and Ilya Sutskever.Zero-shot text-to-image generation. In ICML, 2021. 2[30] Robin Rombach, Andreas Blattmann, Dominik Lorenz,Patrick Esser, and Bj¨orn Ommer. High-resolution image syn-thesis with latent diffusion models. In CVPR, 2022. 2, 3, 4[31] Robin Rombach, Andreas Blattmann, and Bj¨orn Ommer.Text-guided synthesis of artistic images with retrieval-augmented diffusion models. arXiv, 2022. 2[32] Olaf Ronneberger, Philipp Fischer, and Thomas Brox. U-net:Convolutional networks for biomedical image segmentation.In MICCAI, 2015. 2, 3[33] Nataniel Ruiz, Yuanzhen Li, Varun Jampani, Yael Pritch,Michael Rubinstein, and Kfir Aberman. Dreambooth: Finetuning text-to-image diffusion models for subject-drivengeneration. arXiv, 2022. 2[34] Saeed Saadatnejad, Ali Rasekh, Mohammadreza Mofayezi,Yasamin Medghalchi, Sara Rajabzadeh, Taylor Mordan, andAlexandre Alahi. A generic diffusion-based approach for 3dhuman pose prediction in the wild. arXiv, 2022. 29
[35] Ruizhi Shao, Zerong Zheng, Hongwen Zhang, JingxiangSun, and Yebin Liu. Diffustereo: High quality human re-construction via diffusion-based stereo using sparse cameras.arXiv, 2022. 2[36] Shuai Shen, Wanhua Li, Zheng Zhu, Yueqi Duan, Jie Zhou,and Jiwen Lu. Learning dynamic facial radiance fields forfew-shot talking head synthesis. In ECCV, 2022. 2, 7, 8[37] Jascha Sohl-Dickstein, Eric Weiss, Niru Maheswaranathan,and Surya Ganguli.Deep unsupervised learning usingnonequilibrium thermodynamics. In ICML, 2015. 2[38] Jiaming Song, Chenlin Meng, and Stefano Ermon. Denois-ing diffusion implicit models. arXiv, 2020. 5[39] Linsen Song, Wayne Wu, Chen Qian, Ran He, andChen Change Loy. Everybody’s talkin’: Let me talk as youwant. arXiv, 2020. 2[40] SupasornSuwajanakorn,StevenMSeitz,andIraKemelmacher-Shlizerman.Synthesizing obama:learn-ing lip sync from audio. TOG, 2017. 2[41] Justus Thies, Mohamed Elgharib, Ayush Tewari, ChristianTheobalt, and Matthias Nießner.Neural voice puppetry:Audio-driven facial reenactment. In ECCV, 2020. 2, 4[42] Justus Thies, Michael Zollhofer, Marc Stamminger, Chris-tian Theobalt, and Matthias Nießner. Face2face: Real-timeface capture and reenactment of rgb videos. In CVPR, 2016.2[43] Dominik JE Waibel, Ernst R¨ooell, Bastian Rieck, RajaGiryes, and Carsten Marr. A diffusion model predicts 3dshapes from 2d microscopy images. arXiv, 2022. 2[44] Ting-Chun Wang, Arun Mallya, and Ming-Yu Liu. One-shotfree-view neural talking-head synthesis for video conferenc-ing. In CVPR, 2021. 1[45] Zhou Wang, Alan C Bovik, Hamid R Sheikh, and Eero PSimoncelli. Image quality assessment: from error visibilityto structural similarity. TIP, 2004. 5[46] Shunyu Yao, RuiZhe Zhong, Yichao Yan, Guangtao Zhai,and Xiaokang Yang.Dfa-nerf: Personalized talking headgeneration via disentangled face attributes neural rendering.arXiv, 2022. 2[47] Egor Zakharov, Aliaksandra Shysheya, Egor Burkov, andVictor Lempitsky. Few-shot adversarial learning of realis-tic neural talking head models. In ICCV, 2019. 1[48] Mingyuan Zhang, Zhongang Cai, Liang Pan, FangzhouHong, Xinying Guo, Lei Yang, and Ziwei Liu. Motiondif-fuse: Text-driven human motion generation with diffusionmodel. arXiv, 2022. 2[49] Richard Zhang, Phillip Isola, Alexei A Efros, Eli Shechtman,and Oliver Wang. The unreasonable effectiveness of deepfeatures as a perceptual metric. In CVPR, 2018. 2, 5, 7[50] Xi Zhang, Xiaolin Wu, Xinliang Zhai, Xianye Ben, andChengjie Tu. Davd-net: Deep audio-aided video decompres-sion of talking heads. In CVPR, 2020. 1[51] Zhimeng Zhang, Lincheng Li, Yu Ding, and Changjie Fan.Flow-guided one-shot talking face generation with a high-resolution audio-visual dataset. In CVPR, 2021. 5[52] Yang Zhou, Xintong Han, Eli Shechtman, Jose Echevar-ria, Evangelos Kalogerakis, and Dingzeyu Li. Makelttalk:speaker-aware talking-head animation. TOG, 2020. 1, 2, 7,8[53] Michael Zollh¨ofer, Justus Thies, Pablo Garrido, DerekBradley, Thabo Beeler, Patrick P´erez, Marc Stamminger,Matthias Nießner, and Christian Theobalt. State of the arton monocular 3d face reconstruction, tracking, and applica-tions. In Computer Graphics Forum, 2018. 210
123version https://git-lfs.github.com/spec/v1oid sha256:c17fa2bcbd4454ccb848c1c68489d5715039e0ba46532f3e1a610c469f6bc3f6size 5570605123version https://git-lfs.github.com/spec/v1oid sha256:6bd7a603f14cd143947949ebe63e3c0929bf9523ff746422d0a38fa2b5aa28absize 186096123version https://git-lfs.github.com/spec/v1oid sha256:9e1a91d36a599e5cc1e8416e6351f0c3a6cec4597ea888b57b181edf3427645fsize 2031661123version https://git-lfs.github.com/spec/v1oid sha256:9e4141e186644bf5907d96ea1d62e0a26b3ad066026ee564024df5c9e7b5c8dfsize 75613123version https://git-lfs.github.com/spec/v1oid sha256:b5a13ae3972787bcffb53e9c2e3633d5aa1597fee59362c2b99c98bc970cbd49size 57167123version https://git-lfs.github.com/spec/v1oid sha256:f89a2b50b1d690c794a448b4edccbc4722538e5a3729e8f7acb8346ea1b6af91size 103256-9AyT4oBgHgl3EQf3vkG/vector_store/index.faissAdded+3
.gitattributes+67
09FAT4oBgHgl3EQfjh3M/vector_store/index.faissAdded+3
09FAT4oBgHgl3EQfjh3M/vector_store/index.pklAdded+3
0NFQT4oBgHgl3EQfzzas/content/tmp_files/2301.13414v1.pdf.txtAdded+1833
0NFQT4oBgHgl3EQfzzas/content/tmp_files/load_file.txtAdded
0dFKT4oBgHgl3EQfNy2J/content/2301.11756v1.pdfAdded+3
0dFKT4oBgHgl3EQfNy2J/vector_store/index.faissAdded+3
0tE2T4oBgHgl3EQfiQfL/vector_store/index.faissAdded+3
2dFST4oBgHgl3EQfXzgB/vector_store/index.faissAdded+3
2tE2T4oBgHgl3EQfjAfh/content/2301.03965v1.pdfAdded+3
2tE2T4oBgHgl3EQfjAfh/vector_store/index.pklAdded+3
2tFLT4oBgHgl3EQfrC9d/content/2301.12142v1.pdfAdded+3
2tFLT4oBgHgl3EQfrC9d/vector_store/index.faissAdded+3
2tFLT4oBgHgl3EQfrC9d/vector_store/index.pklAdded+3
39FAT4oBgHgl3EQflh2J/content/tmp_files/2301.08618v1.pdf.txtAdded+1102
39FAT4oBgHgl3EQflh2J/content/tmp_files/load_file.txtAdded
3dFST4oBgHgl3EQfYzh6/content/tmp_files/2301.13789v1.pdf.txtAdded+1063
3dFST4oBgHgl3EQfYzh6/content/tmp_files/load_file.txtAdded
49A0T4oBgHgl3EQfNv86/vector_store/index.faissAdded+3
5dA0T4oBgHgl3EQfNv_S/content/tmp_files/2301.02152v1.pdf.txtAdded+2837
5dA0T4oBgHgl3EQfNv_S/content/tmp_files/load_file.txtAdded
69E3T4oBgHgl3EQfpwru/content/2301.04646v1.pdfAdded+3
69E3T4oBgHgl3EQfpwru/vector_store/index.faissAdded+3
69E3T4oBgHgl3EQfpwru/vector_store/index.pklAdded+3
79FAT4oBgHgl3EQfoh2y/content/2301.08635v1.pdfAdded+3
79FAT4oBgHgl3EQfoh2y/vector_store/index.faissAdded+3
79FAT4oBgHgl3EQfoh2y/vector_store/index.pklAdded+3
7NE3T4oBgHgl3EQfRgki/content/2301.04421v1.pdfAdded+3
7NE3T4oBgHgl3EQfRgki/vector_store/index.faissAdded+3
7NE3T4oBgHgl3EQfRgki/vector_store/index.pklAdded+3
7NFJT4oBgHgl3EQfmSym/content/tmp_files/2301.11587v1.pdf.txtAdded+1225
7NFJT4oBgHgl3EQfmSym/content/tmp_files/load_file.txtAdded
99AzT4oBgHgl3EQfSvs8/content/2301.01236v1.pdfAdded+3
99AzT4oBgHgl3EQfSvs8/vector_store/index.faissAdded+3
99AzT4oBgHgl3EQfSvs8/vector_store/index.pklAdded+3
9NE1T4oBgHgl3EQfCQIp/content/2301.02861v1.pdfAdded+3
9NE1T4oBgHgl3EQfCQIp/vector_store/index.faissAdded+3
9NE1T4oBgHgl3EQfCQIp/vector_store/index.pklAdded+3
B9E4T4oBgHgl3EQf5Q72/content/2301.05323v1.pdfAdded+3
BNE1T4oBgHgl3EQfVgSF/content/2301.03103v1.pdfAdded+3
BNE1T4oBgHgl3EQfVgSF/vector_store/index.faissAdded+3
CdE2T4oBgHgl3EQfSAcB/content/tmp_files/2301.03786v1.pdf.txtAdded+1015
CdE2T4oBgHgl3EQfSAcB/content/tmp_files/load_file.txtAdded
DNE0T4oBgHgl3EQfggEA/vector_store/index.faissAdded+3
FdA0T4oBgHgl3EQfBP_A/content/2301.01974v1.pdfAdded+3
FdA0T4oBgHgl3EQfBP_A/vector_store/index.faissAdded+3
FdA0T4oBgHgl3EQfBP_A/vector_store/index.pklAdded+3
HNFJT4oBgHgl3EQfuC2G/vector_store/index.pklAdded+3
I9AyT4oBgHgl3EQfsPkA/vector_store/index.pklAdded+3