id
stringlengths
33
33
doc_url
stringlengths
33
33
title
stringlengths
13
211
publication_date
timestamp[s]
update_date
timestamp[s]
authors
stringlengths
6
16.6k
category_primary
stringclasses
60 values
category_all
stringlengths
5
132
abstract
stringlengths
123
1.99k
embeddings
sequencelengths
768
768
http://arxiv.org/abs/2402.10171v1
http://arxiv.org/pdf/2402.10171v1
Data Engineering for Scaling Language Models to 128K Context
2024-02-15T18:19:16
2024-02-15T18:19:16
Yao Fu, Rameswar Panda, Xinyao Niu, Xiang Yue, Hannaneh Hajishirzi, Yoon Kim, Hao Peng
cs.CL
cs.CL, cs.AI
We study the continual pretraining recipe for scaling language models' context lengths to 128K, with a focus on data engineering. We hypothesize that long context modeling, in particular \textit{the ability to utilize information at arbitrary input locations}, is a capability that is mostly already acquired through large-scale pretraining, and that this capability can be readily extended to contexts substantially longer than seen during training~(e.g., 4K to 128K) through lightweight continual pretraining on appropriate data mixture. We investigate the \textit{quantity} and \textit{quality} of the data for continual pretraining: (1) for quantity, we show that 500 million to 5 billion tokens are enough to enable the model to retrieve information anywhere within the 128K context; (2) for quality, our results equally emphasize \textit{domain balance} and \textit{length upsampling}. Concretely, we find that naively upsampling longer data on certain domains like books, a common practice of existing work, gives suboptimal performance, and that a balanced domain mixture is important. We demonstrate that continual pretraining of the full model on 1B-5B tokens of such data is an effective and affordable strategy for scaling the context length of language models to 128K. Our recipe outperforms strong open-source long-context models and closes the gap to frontier models like GPT-4 128K.
[ -0.3581060767173767, -0.5829440355300903, 0.509641170501709, 0.3977586328983307, -0.3270450830459595, -0.07894288748502731, -0.4650392234325409, -0.5099726915359497, 0.09305092692375183, 0.6057035326957703, -0.3995567858219147, -0.14630728960037231, -0.5210576057434082, -0.1266079694032669, -0.42060407996177673, 0.974777340888977, -0.1735667586326599, -0.08680666983127594, -0.17591914534568787, -0.10350735485553741, -0.7834725975990295, -0.6594159007072449, -0.526544988155365, -0.05829261615872383, 0.4841659367084503, 0.4980621337890625, 0.8253734111785889, 0.9289763569831848, 0.14655698835849762, 0.24199096858501434, 0.08123830705881119, -0.1930675059556961, -0.911075234413147, 0.18797504901885986, -0.07029283791780472, -0.21322040259838104, -0.7027769088745117, 0.14386850595474243, 1.0135865211486816, 1.1707009077072144, -0.03073902055621147, 0.17354850471019745, 0.32774433493614197, 0.8411697745323181, -0.4367254674434662, 0.022298168390989304, -0.6294348239898682, -0.24317266047000885, -0.42701438069343567, -0.07009502500295639, -0.4141269624233246, 0.244222953915596, 0.2649623155593872, -0.6899904608726501, 0.07013659924268723, 0.20227712392807007, 0.9208922982215881, -0.008781809359788895, -0.43734562397003174, -0.17742623388767242, -0.8461511731147766, 1.0745818614959717, -0.5721054077148438, 0.6391106843948364, 0.5477955341339111, 0.16139791905879974, -0.06265252828598022, -0.7976363301277161, -0.3959043025970459, -0.3667135536670685, 0.07208030670881271, -0.16384421288967133, 0.1597626656293869, 0.21755023300647736, 0.29348793625831604, 0.42840343713760376, -0.5224794149398804, 0.04851613566279411, -0.36942246556282043, -0.12038859724998474, 0.5326040387153625, 0.146521657705307, 0.2731446921825409, 0.2698024809360504, -0.3095340132713318, -0.14384298026561737, -0.7592494487762451, -0.14032861590385437, 0.2713456153869629, 0.22350193560123444, 0.06909593939781189, 0.465546190738678, -0.2582681477069855, 0.8630170822143555, -0.17792975902557373, 0.0615457184612751, 0.07722143828868866, -0.7824217081069946, -0.3067929148674011, -0.10908297449350357, 0.4197903573513031, 0.18992304801940918, 0.23397162556648254, -0.5102584958076477, -0.37273064255714417, -0.2127707451581955, 0.6132445931434631, -1.0092545747756958, -0.12215106189250946, 0.15297120809555054, -0.2792128920555115, 0.15722185373306274, -0.08143981546163559, -0.680918276309967, 0.1284119337797165, -0.8200621008872986, 0.5320762395858765, -0.5058685541152954, -0.40585842728614807, 0.45936304330825806, 0.04065284878015518, 0.09260918200016022, 0.003853671485558152, -1.0888903141021729, 0.3996710181236267, 0.7460760474205017, 0.9609290361404419, -0.22741860151290894, -0.541593611240387, -0.27088701725006104, 0.057051900774240494, -0.6112737059593201, 0.4202640652656555, -0.5342521071434021, -0.4649658799171448, -0.26589614152908325, 0.02474714070558548, -0.10628879070281982, -0.4078232944011688, 0.2511291205883026, -0.6708383560180664, -0.058498919010162354, -0.2236291468143463, -0.8004920482635498, 0.22358523309230804, 0.06416220963001251, -0.7627686858177185, 1.0198917388916016, 0.47018638253211975, -0.5654653906822205, 0.6123940944671631, -0.6361146569252014, -0.3852095305919647, 0.19369816780090332, -0.04222148284316063, -0.21993553638458252, 0.1156320795416832, -0.03476940095424652, 0.29810237884521484, -0.29521986842155457, 0.5937893986701965, -0.41321831941604614, -0.36757954955101013, -0.05026167631149292, -0.4880899488925934, 0.6492125988006592, 0.3733534514904022, -0.23791436851024628, 0.07163263857364655, -0.7404158711433411, 0.11025445908308029, -0.006814433261752129, -0.44188132882118225, -0.5273101329803467, -0.16531996428966522, 0.1710532009601593, 0.05026985704898834, 0.3369496464729309, -0.5934358835220337, 0.22229790687561035, -0.4593702256679535, 0.382955402135849, 0.6940845847129822, -0.23833054304122925, 0.6745595932006836, -0.280391126871109, 0.5601646304130554, -0.03379972651600838, 0.15359841287136078, -0.20862945914268494, -0.13192009925842285, -0.7219107151031494, -0.20281445980072021, 0.6519443392753601, 0.15166981518268585, -0.5754052996635437, 0.6689032912254333, -0.7945740222930908, -0.3565749228000641, -0.3023637533187866, 0.1827162653207779, 0.035235077142715454, 0.6079185009002686, 0.5229807496070862, -0.4855004549026489, -0.6007072329521179, -0.8443425297737122, -0.11048826575279236, 0.11850106716156006, -0.30142688751220703, 0.19264020025730133, 0.3634411692619324, -0.4566643238067627, 1.378088116645813, -0.2989448606967926, 0.11265876889228821, -0.316201776266098, 0.09384091943502426, 0.2538737952709198, 0.7802515029907227, 0.6884769797325134, -0.816892683506012, -0.4456217586994171, -0.10469859093427658, -0.5437173247337341, 0.07596320658922195, -0.13856929540634155, -0.44035160541534424, -0.021673524752259254, 0.4984823167324066, -0.4831944406032562, 0.22693277895450592, 0.6618815064430237, -0.3331541419029236, 0.6511124968528748, -0.23096881806850433, 0.13348181545734406, -1.2537366151809692, 0.1588578224182129, -0.03483191505074501, -0.365693062543869, -0.7200681567192078, 0.0017218905268236995, 0.2156616598367691, -0.34476855397224426, -0.187970370054245, 0.684320330619812, -0.47610339522361755, 0.11800728738307953, -0.43277180194854736, -0.19300661981105804, -0.020587950944900513, 0.31958526372909546, 0.07666346430778503, 0.763160228729248, 0.6979863047599792, -0.6577402353286743, 0.23701980710029602, -0.2308320254087448, -0.6011707186698914, 0.4349340796470642, -0.6752814054489136, 0.06561607867479324, 0.10308679193258286, 0.3266356885433197, -0.9021527767181396, -0.20649053156375885, -0.23583847284317017, -0.2393122762441635, 0.4197319746017456, -0.33603718876838684, -0.5808460712432861, -0.3123939335346222, -0.113467276096344, 0.6763117909431458, 0.4256559908390045, -0.5914220809936523, 0.5126433372497559, 0.5624083280563354, -0.5496422052383423, -0.45259031653404236, -0.44714900851249695, 0.3033628761768341, -0.2928123474121094, -0.8995965719223022, 0.4823845624923706, -0.30627527832984924, 0.0303188469260931, 0.01953028328716755, -0.3429233729839325, -0.29904818534851074, 0.10500705987215042, 0.017435714602470398, 0.21416997909545898, -0.4244002103805542, 0.13646863400936127, -0.028331158682703972, -0.15783002972602844, 0.023971909657120705, -0.7158632874488831, 0.6184914708137512, -0.11802004277706146, -0.12575671076774597, -0.12102491408586502, 0.40010878443717957, 0.5885456204414368, 0.10273829102516174, 0.8858636617660522, 0.15703311562538147, -0.43132284283638, -0.08221390098333359, -0.44948840141296387, -0.17291077971458435, -0.5053662061691284, 0.5221436023712158, -0.45598575472831726, -1.0020376443862915, 0.3932332694530487, -0.19195546209812164, 0.23581969738006592, 0.47592419385910034, 0.21628418564796448, 0.04056132957339287, 0.919492781162262, 1.007677674293518, -0.5448408126831055, 0.70427405834198, -0.2075720876455307, 0.1154470145702362, -0.6375839710235596, 0.2487751543521881, -0.45418012142181396, -0.3167242407798767, -0.20591235160827637, -0.2940026521682739, 0.12379716336727142, 0.27325722575187683, -0.28799325227737427, 0.3308870196342468, -0.11656822264194489, 0.7789987325668335, 0.29405009746551514, -0.04106948524713516, -0.04830893501639366, 0.0529659241437912, 0.12688186764717102, -0.022910285741090775, -0.781210720539093, -0.34185555577278137, 1.2686069011688232, 0.480263352394104, 0.7998208403587341, -0.19719110429286957, 0.5064835548400879, -0.010186501778662205, 0.40023133158683777, -0.6381361484527588, 0.294892281293869, -0.09536824375391006, -0.7104331254959106, -0.6814430356025696, -0.7492260336875916, -1.0093611478805542, -0.022760890424251556, 0.19355858862400055, -0.48093950748443604, 0.1548227220773697, 0.3750344216823578, -0.1784617006778717, 0.13479599356651306, -0.7920969724655151, 1.1375033855438232, -0.32096341252326965, -0.22668100893497467, -0.18821300566196442, -0.6937562227249146, 0.15842501819133759, -0.46595218777656555, 0.20791883766651154, 0.04584599286317825, 0.14446549117565155, 0.9923681020736694, -0.5908320546150208, 0.6715551614761353, -0.23556934297084808, -0.16825491189956665, 0.1358674168586731, 0.05465003848075867, 0.3262585997581482, 0.06914537400007248, 0.0013337661512196064, 0.15467305481433868, 0.1300787329673767, -0.8680333495140076, -0.5296568274497986, 0.6028538942337036, -0.6708806157112122, -0.3504543900489807, 0.019684208557009697, -0.5638921856880188, -0.607574999332428, 0.3776858448982239, 0.28339388966560364, 0.6257994174957275, -0.0957460030913353, 0.7750827670097351, 0.5514169931411743, 0.09760066121816635, 0.1866750568151474, 0.42333734035491943, -0.08417907357215881, -0.1921323984861374, 1.044830560684204, 0.38486504554748535, 0.4679586589336395, 0.14315035939216614, 0.13988684117794037, -0.40229567885398865, -0.6022875308990479, -0.525475800037384, 0.040224023163318634, -0.5624847412109375, -0.04994555935263634, -0.5637511014938354, -0.30881956219673157, -0.4800488352775574, -0.13455380499362946, -0.6912680268287659, -0.2488265186548233, -0.06997265666723251, -0.14917218685150146, 0.16251243650913239, 0.4967460632324219, -0.036673255264759064, 0.5872049331665039, -0.7914692759513855, 0.15289708971977234, 0.22799916565418243, 0.7200523018836975, 0.1660984754562378, -0.8836508989334106, -0.8026465773582458, 0.2885797619819641, -0.05042590573430061, -0.46160435676574707, 0.22049224376678467, 0.1824478656053543, 0.3910010755062103, 0.2586020529270172, -0.1346919983625412, 0.930866539478302, -0.6535223722457886, 0.9034873247146606, 0.05156613886356354, -0.9033156037330627, 0.33364954590797424, -0.2679269015789032, 0.36827829480171204, 0.8127832412719727, 0.6925908327102661, -0.7531706690788269, -0.2529633343219757, -0.6305748224258423, -1.1628875732421875, 0.6441054940223694, 0.06838372349739075, 0.5196366906166077, 0.012833008542656898, 0.546791672706604, 0.2525258958339691, 0.07014385610818863, -0.6690273284912109, 0.05601581931114197, -0.3282468914985657, -0.32889726758003235, -0.3432212471961975, -0.4104706645011902, -0.036676935851573944, -0.3884047865867615, 0.668433666229248, -0.15529797971248627, -0.039160601794719696, -0.2585850656032562, -0.39453601837158203, 0.15773645043373108, 0.15457138419151306, 0.47895491123199463, 1.1644517183303833, -0.19583995640277863, 0.01344588864594698, 0.0074801016598939896, -0.6622392535209656, 0.12240473181009293, 0.06839454174041748, 0.21189457178115845, -0.2345881164073944, 0.34467071294784546, 0.8791408538818359, 0.28792130947113037, -0.589179515838623, 0.38015297055244446, -0.08861355483531952, -0.10327620059251785, -0.07768707722425461, 0.09967661648988724, 0.04031527414917946, -0.11247042566537857, 0.3643215596675873, -0.23776115477085114, -0.1390189230442047, -0.38861513137817383, 0.5125418901443481, 0.13133010268211365, -0.3042201101779938, -0.44658955931663513, 0.5124410390853882, 0.1695806384086609, 0.1387147605419159, 0.9206712245941162, 0.07080554962158203, -0.14449237287044525, 0.6431233286857605, 0.6840061545372009, 0.5869618654251099, -0.09548655152320862, -0.13149279356002808, 0.25479844212532043, 0.23630456626415253, -0.5480602979660034, -0.004707160405814648, -0.14801304042339325, -0.7969486713409424, -0.573631227016449, -0.8809049129486084, -0.33131471276283264, 0.39820030331611633, -0.6212742328643799, 0.10704416036605835, -0.24061666429042816, -0.033020276576280594, -0.12937532365322113, 0.043111152946949005, -0.7327643036842346, 0.4681161046028137, -0.042491890490055084, 0.9174610376358032, -0.7940776944160461, 1.118249773979187, 0.2723458409309387, -0.18845593929290771, -0.8674773573875427, 0.08046213537454605, -0.18600799143314362, -0.597990870475769, 0.6413624286651611, 0.29389506578445435, 0.0359589084982872, 0.17275521159172058, -0.6579874157905579, -0.9304285049438477, 0.8770416975021362, 0.3680233657360077, -0.7982076406478882, -0.09536182135343552, 0.23624323308467865, 0.5276923179626465, -0.49830907583236694, -0.2282838374376297, 0.7520708441734314, 0.24078412353992462, -0.03790724650025368, -0.8320362567901611, -0.0834629237651825, -0.25283220410346985, 0.13298338651657104, 0.16513946652412415, -0.2888498306274414, 0.7806965708732605, 0.2020484060049057, -0.27843526005744934, 0.04280606657266617, 0.8595849871635437, 0.09003797918558121, 0.04715609923005104, 0.7109194397926331, 0.6470797061920166, 0.7175202369689941, 0.15849508345127106, 1.1022372245788574, -0.602753221988678, 0.4629783630371094, 1.187699556350708, -0.27832192182540894, 0.6085411310195923, 0.2533135712146759, -0.1501840353012085, 0.16616332530975342, 0.8981115221977234, 0.3480299711227417, 0.4778946340084076, 0.2008984386920929, -0.1935543268918991, -0.26998645067214966, 0.1518731713294983, -0.4614320397377014, 0.06008416414260864, 0.36552610993385315, -0.15514527261257172, -0.0797053650021553, 0.18292507529258728, -0.029722532257437706, -0.40974169969558716, -0.23368282616138458, 0.47908395528793335, 0.18466679751873016, -0.6028009653091431, 0.6631051301956177, 0.028821446001529694, 0.6099100708961487, -0.762352705001831, 0.4136548936367035, -0.4520096778869629, -0.06945861130952835, 0.2830934226512909, -0.7095047831535339, 0.3344688415527344, -0.015637094154953957, -0.29507187008857727, -0.5238834023475647, 0.4747660458087921, -0.5418746471405029, -0.3559799790382385, 0.2208443284034729, 0.1636904627084732, 0.15818071365356445, -0.24053148925304413, -0.515142023563385, 0.06368431448936462, -0.22624610364437103, -0.46201735734939575, 0.6281576752662659, 0.7159057855606079, -0.02950693666934967, 0.4224117398262024, 0.5223515629768372, 0.23774178326129913, 0.17949464917182922, 0.10265535861253738, 1.0030345916748047, -0.7324990630149841, -0.6925266981124878, -0.8672917485237122, 0.38007718324661255, -0.06653395295143127, -0.3063424825668335, 0.4916394352912903, 0.8100518584251404, 0.9645773768424988, 0.03737913444638252, 0.6481972336769104, 0.017815006896853447, 0.24931925535202026, -0.643748939037323, 0.6397049427032471, -0.6756414771080017, 0.09143519401550293, -0.048359110951423645, -1.022836685180664, -0.0985548198223114, 0.30303362011909485, -0.27990227937698364, 0.24734261631965637, 0.5559369921684265, 0.6011607050895691, -0.42699241638183594, 0.042323287576436996, 0.3752427101135254, 0.15678930282592773, 0.41906169056892395, 0.43677079677581787, 0.5745275616645813, -0.10037035495042801, 0.39966344833374023, -0.06158243864774704, -0.4954354465007782, -0.11280009150505066, -0.7576850652694702, -0.5792818665504456, -0.6614534854888916, 0.010212798602879047, -0.18988801538944244, -0.13291986286640167, 0.7265216112136841, 1.0819437503814697, -0.5501766204833984, -0.37967437505722046, -0.09352907538414001, -0.29987651109695435, -0.06896476447582245, -0.21448427438735962, 0.21380649507045746, -0.7439923882484436, -0.5299696922302246, 0.5407278537750244, 0.27515479922294617, 0.11759615689516068, -0.1693708300590515, -0.17146891355514526, 0.149428591132164, 0.25014054775238037, 0.6812155246734619, 0.3136100769042969, -0.11310622841119766, -0.41174623370170593, -0.04058896377682686, -0.16991163790225983, 0.10460860282182693, 1.0020334720611572, -0.5140641927719116, 0.5030409693717957, 0.34106701612472534, 1.0602092742919922, 0.5573638081550598, 0.08600320667028427, 0.8257947564125061, -1.0481719970703125, 0.21479813754558563, 0.18754912912845612, 0.35267749428749084, 0.12566372752189636, -0.26818370819091797, 0.3899815082550049, 0.25182780623435974, -0.7343034148216248, -0.7854867577552795, 0.20044709742069244, -0.7730714082717896, -0.39710673689842224, 1.04521644115448, -0.1189512386918068, -0.21546700596809387, -0.07665789127349854, -0.07608877122402191, 0.07635371387004852, -0.05741973966360092, 0.6730902194976807, 1.1108603477478027, -0.03820446506142616, 0.15610480308532715, -0.7051845192909241, 0.5215154886245728, 0.557266354560852, -0.8028175234794617, 0.46253567934036255, 0.4249051511287689, 0.5104746222496033, 0.03181370347738266, 0.9359325170516968, -0.061528630554676056, 0.0024528473149985075, 0.10582126677036285, -0.19985851645469666, 0.23355410993099213, -0.7760507464408875, -0.14815421402454376, -0.023014158010482788, 0.10943930596113205, 0.028525957837700844 ]
http://arxiv.org/abs/2402.10153v2
http://arxiv.org/pdf/2402.10153v2
Knowledge-Infused LLM-Powered Conversational Health Agent: A Case Study for Diabetes Patients
2024-02-15T18:00:02
2024-02-28T19:40:13
Mahyar Abbasian, Zhongqi Yang, Elahe Khatibi, Pengfei Zhang, Nitish Nagesh, Iman Azimi, Ramesh Jain, Amir M. Rahmani
cs.CL
cs.CL
Effective diabetes management is crucial for maintaining health in diabetic patients. Large Language Models (LLMs) have opened new avenues for diabetes management, facilitating their efficacy. However, current LLM-based approaches are limited by their dependence on general sources and lack of integration with domain-specific knowledge, leading to inaccurate responses. In this paper, we propose a knowledge-infused LLM-powered conversational health agent (CHA) for diabetic patients. We customize and leverage the open-source openCHA framework, enhancing our CHA with external knowledge and analytical capabilities. This integration involves two key components: 1) incorporating the American Diabetes Association dietary guidelines and the Nutritionix information and 2) deploying analytical tools that enable nutritional intake calculation and comparison with the guidelines. We compare the proposed CHA with GPT4. Our evaluation includes 100 diabetes-related questions on daily meal choices and assessing the potential risks associated with the suggested diet. Our findings show that the proposed agent demonstrates superior performance in generating responses to manage essential nutrients.
[ 0.009578365832567215, -0.8614681959152222, 0.8835134506225586, 0.06939245015382767, -0.2174965888261795, 0.20539622008800507, -0.20041103661060333, -0.7012593150138855, 0.914819598197937, 0.8820381760597229, -0.029369274154305458, -0.5484508275985718, -0.4296973943710327, -0.016711018979549408, 0.051999278366565704, 0.8768704533576965, -0.1217435821890831, 0.5223398804664612, -0.5734714269638062, 0.06613697111606598, -0.525633692741394, -0.13804082572460175, -0.7684215903282166, -0.5507933497428894, 0.6284962892532349, 0.665126383304596, 0.7080324292182922, 0.2549908757209778, 0.6326910853385925, 0.2032366842031479, 0.1640070080757141, 0.36884766817092896, -0.11789481341838837, 0.3112008273601532, -0.2055138647556305, -0.671201765537262, -0.9117627143859863, -0.11139141023159027, -0.0599181242287159, 0.5682550668716431, -0.1526147872209549, 0.12906183302402496, 0.03984006121754646, 0.5973408222198486, -0.5213736295700073, 0.39171892404556274, -0.3563452959060669, 0.1104385033249855, -0.11885728687047958, -0.29028618335723877, -0.15500257909297943, -0.2816721498966217, 0.1435900181531906, -0.7169613242149353, -0.2239304929971695, -0.022252723574638367, 0.5407050848007202, 0.36613160371780396, -0.32300272583961487, -0.48032906651496887, -0.8660749793052673, 0.11719126999378204, -0.843439519405365, 0.16855262219905853, 0.7637103796005249, 0.6304352879524231, 0.10566449165344238, -0.6745362281799316, -0.5070433616638184, -0.3636745810508728, -0.28695565462112427, 0.5513567328453064, -0.0735965371131897, 0.23000258207321167, -0.26176804304122925, 0.20190830528736115, -0.3810577988624573, 0.22123956680297852, 0.02663327567279339, 0.031490471214056015, 0.39013776183128357, 0.363486647605896, 0.3579527735710144, -0.3175504505634308, -0.33174315094947815, 0.40206387639045715, -0.4325716495513916, -0.13269641995429993, -0.225712850689888, 0.2818582355976105, -0.3442591428756714, 0.7578980326652527, 0.02182650938630104, 0.5032848715782166, 0.10883165895938873, -0.18949885666370392, 0.019948014989495277, -0.572069525718689, -0.29691118001937866, 0.40080517530441284, 0.6432055234909058, 0.5565735697746277, 0.1451096385717392, -0.3367978632450104, -0.17054785788059235, -0.4632846415042877, 0.43091630935668945, -0.874385416507721, -0.47907400131225586, 0.6658778190612793, -0.09629639238119125, -0.11630710959434509, -0.12689164280891418, -0.9716242551803589, -0.902213454246521, -0.00338546559214592, 0.318263977766037, -0.5443916916847229, -0.23113428056240082, 0.19067397713661194, 0.03562392294406891, 0.08229900151491165, 0.5713095664978027, -0.9971836805343628, 0.38305988907814026, 0.4119231402873993, 0.9111846685409546, 0.004141021519899368, 0.4728463292121887, -0.7079902291297913, 0.5544143915176392, -0.1071586012840271, 0.6821329593658447, -0.5395524501800537, -0.5137253403663635, -0.022854609414935112, -0.13276083767414093, -0.057596758008003235, -0.6257824301719666, 0.36173444986343384, -0.5092535614967346, -0.10526884347200394, -0.4610976278781891, -0.6588424444198608, 0.1177758052945137, 0.26156118512153625, -0.6744053959846497, 0.42227280139923096, 0.3759708106517792, -0.5549150705337524, 0.3192610442638397, -0.8153446316719055, -0.3773519992828369, 0.8438440561294556, -0.24947497248649597, -0.2322339415550232, -0.1462838351726532, 0.2942492365837097, 0.36402952671051025, -0.42055895924568176, 0.27078068256378174, -0.24596458673477173, 0.22185081243515015, 0.13062526285648346, 0.0728958323597908, 0.36091575026512146, 0.14442993700504303, -0.1611199826002121, 0.4369759261608124, -0.6151424050331116, 0.01319078728556633, 0.2915140390396118, -0.017376311123371124, -0.7886931896209717, -0.11469367146492004, -0.19293171167373657, -0.26607516407966614, 0.4219270944595337, -0.3508400022983551, 0.04338756576180458, -0.35765400528907776, 0.42282333970069885, 0.6477711796760559, 0.22927363216876984, 0.33630263805389404, -0.32757413387298584, 0.6075223684310913, -0.05855051428079605, 0.3283710181713104, -0.0009287696448154747, -0.7168177366256714, -0.519974410533905, -0.4031137526035309, 0.22309993207454681, 0.7622407078742981, -0.6585232615470886, 0.8172263503074646, -0.28638577461242676, -0.560758650302887, -0.5907667279243469, 0.054723821580410004, 0.039393506944179535, 0.9895868301391602, 0.6294350624084473, -0.2251231074333191, -0.19677293300628662, -0.6327455639839172, 0.1643001139163971, -0.09922395646572113, 0.0027862791903316975, 0.6553913950920105, 0.39777442812919617, -0.4467065632343292, 1.1024032831192017, -0.5405660271644592, -0.2371041476726532, -0.5760246515274048, -0.43155983090400696, -0.061353184282779694, 0.17604121565818787, 0.5913936495780945, -0.6332100033760071, -0.5315268039703369, 0.3564966917037964, -0.892607569694519, -0.25154879689216614, 0.04271018132567406, -0.09691577404737473, -0.5104354619979858, 0.08790113776922226, -0.7026380896568298, 0.47209540009498596, 0.49383294582366943, -0.47998735308647156, 0.5606762766838074, -0.16035833954811096, -0.015775613486766815, -1.4152460098266602, 0.2997688949108124, 0.12998370826244354, -0.5095952749252319, -0.6915223598480225, -0.3631375730037689, 0.25064539909362793, -0.126728355884552, -0.43106988072395325, 1.0061662197113037, -0.015064236707985401, 0.07684024423360825, -0.3073417544364929, 0.11410535126924515, 0.07565794885158539, 0.07657891511917114, -0.002729995409026742, 0.6827825307846069, 0.3901098370552063, -0.7046356797218323, 0.6840416789054871, 0.46068617701530457, -0.4375641644001007, 0.8345267176628113, -0.8087113499641418, 0.004621171858161688, -0.024933213368058205, 0.19242432713508606, -0.7820479273796082, -0.49634450674057007, 0.6956427693367004, -0.18414293229579926, 0.0441628023982048, 0.2739243507385254, -0.348859965801239, -0.21528340876102448, -0.004877824801951647, 0.1572645902633667, 0.24473609030246735, -0.39660489559173584, 0.5481094717979431, 0.5515984296798706, -0.38069063425064087, 0.0671372339129448, -0.5341182351112366, 0.2631250023841858, -0.2138301134109497, -0.5714995265007019, 0.39111024141311646, -0.1753343641757965, -0.6144080758094788, 0.2269725650548935, -0.10992773622274399, -0.010122005827724934, 0.008032436482608318, 0.24940457940101624, 0.12450828403234482, 0.026760749518871307, 0.23470091819763184, -0.1351228952407837, 0.03815377876162529, -0.030840672552585602, -0.19758978486061096, 0.5667102932929993, 0.15573936700820923, -0.3426792323589325, -0.6197367310523987, 0.3751138746738434, 0.5586820840835571, -0.3930218517780304, 0.7851789593696594, 0.4788760840892792, -0.2741069495677948, 0.08840367943048477, -0.3662099540233612, -0.32959553599357605, -0.43037375807762146, 0.2466023713350296, -0.052766188979148865, -0.5725539326667786, 0.6446606516838074, 0.01183786429464817, 0.014467057771980762, 0.0594983771443367, 0.5735586285591125, -0.03017919883131981, 0.666678786277771, 0.4697688817977905, -0.06248285248875618, 0.536813497543335, 0.06330134719610214, -0.05741062015295029, -0.8116746544837952, -0.6769897937774658, -0.28219345211982727, -0.25089821219444275, -0.014081776142120361, -0.3873065412044525, 0.7625574469566345, -0.2647542357444763, -0.2233973741531372, 0.1525864154100418, -0.03413879871368408, 0.10164846479892731, 0.29180893301963806, 0.6801844835281372, 0.23779937624931335, -0.3166753947734833, -0.23725296556949615, 0.20698872208595276, -0.5260381102561951, -0.3389433026313782, 0.8999319076538086, 0.31469660997390747, 1.049323558807373, 0.29858872294425964, 0.433401882648468, 0.49767887592315674, 0.46696028113365173, -0.9934905171394348, 0.39470231533050537, 0.029481377452611923, -0.26476696133613586, -0.1679287999868393, -0.7162487506866455, -1.0128437280654907, -0.05033539980649948, -0.007102795876562595, -0.8301377296447754, -0.23572561144828796, -0.0049613844603300095, -0.7158792018890381, 0.23095804452896118, -0.9940152764320374, 0.7348506450653076, -0.7196635603904724, -0.44045376777648926, 0.060513462871313095, -0.6235438585281372, 0.16779769957065582, -0.19303183257579803, 0.01467079482972622, -0.07199923694133759, -0.10689827054738998, 0.5127069354057312, -0.7508447170257568, 0.9937233924865723, -0.19146260619163513, -0.3232748806476593, 0.06166860833764076, -0.11652462184429169, 0.5970314145088196, 0.4852088391780853, -0.11447840929031372, -0.019176248461008072, -0.15394173562526703, -0.3450617790222168, -0.8718671798706055, 0.7066054344177246, -0.698205828666687, -0.8315356373786926, -0.08223532885313034, -0.07748252153396606, -0.7356317043304443, 0.2480924278497696, -0.17021799087524414, 0.016326231881976128, -0.3406434655189514, -0.023749247193336487, 0.40406396985054016, -0.25376370549201965, 0.042715851217508316, 0.7497048377990723, -0.02115449868142605, -0.6986348032951355, 0.4597921669483185, -0.2538888156414032, 0.37363505363464355, 0.5961959362030029, 0.5237023830413818, -0.1938759684562683, -0.1872515082359314, -0.3728877902030945, 0.24664191901683807, -0.41184958815574646, -0.276615709066391, -0.5136926770210266, -0.3600786626338959, -0.5545431971549988, -0.05162418633699417, -0.20899207890033722, 0.13298271596431732, -0.5967508554458618, -0.23708531260490417, 0.5265836715698242, 0.6496797800064087, 0.1938856989145279, 0.3080599009990692, -0.9334303736686707, 0.19916591048240662, 0.4510973393917084, 0.2657026946544647, 0.022996744140982628, -0.031019220128655434, -0.5039058327674866, 0.1298583447933197, -0.24113591015338898, -1.231459379196167, 0.519313633441925, 0.1732225865125656, 0.6153598427772522, 0.5438609719276428, -0.09551256895065308, 0.5150938630104065, -0.4296736419200897, 0.8383097052574158, 0.47134825587272644, -0.6216323375701904, 0.7241801023483276, 0.015241417102515697, 0.4607528746128082, 0.5954887270927429, 0.35373422503471375, -0.6540929675102234, -0.33050960302352905, -0.2228679060935974, -0.5793840289115906, 0.2380811870098114, 0.08945706486701965, 0.07780848443508148, 0.004887833259999752, 0.38756972551345825, 0.19939735531806946, 0.21725952625274658, -0.30559462308883667, -0.0872155949473381, -0.38781803846359253, -0.34030386805534363, -0.029744219034910202, -0.07659419625997543, -0.128936305642128, -0.33040744066238403, 0.42595943808555603, -0.29755187034606934, 0.1303146481513977, 0.3854018747806549, 0.137565016746521, -0.20436984300613403, 0.2217865288257599, 0.3736906051635742, 0.5880575180053711, -0.2424185872077942, 0.21438466012477875, -0.10948958247900009, -0.7847585082054138, -0.31928256154060364, 0.150297611951828, -0.030926253646612167, -0.06976541876792908, 0.18049998581409454, 0.72196364402771, 0.35839036107063293, -0.8000656366348267, 0.30035367608070374, -0.1812897026538849, -0.04098496586084366, -0.24713218212127686, 0.23707281053066254, 0.09637980908155441, 0.20312146842479706, 0.06057964265346527, -0.20158693194389343, -0.07905171066522598, -0.17765896022319794, 0.41575130820274353, 0.4864087700843811, -0.6510006785392761, -0.511090874671936, 0.8090365529060364, 0.719537079334259, -0.2760692238807678, 0.3700195550918579, -0.0027488048654049635, -0.245454803109169, 0.5305153131484985, 0.5969839096069336, 0.7439635396003723, -0.47558122873306274, 0.5644216537475586, 0.12471123039722443, 0.15635310113430023, 0.3114486336708069, 0.13084003329277039, -0.07370156049728394, -0.7579317688941956, -0.2441026121377945, -0.6433369517326355, -0.7647849321365356, 0.3579792082309723, -0.28722521662712097, 0.20907996594905853, -0.4131318926811218, -0.28979408740997314, 0.3798706829547882, 0.009905524551868439, -0.6763306260108948, -0.07294243574142456, 0.021658968180418015, 0.9733604192733765, -0.4223732054233551, 0.7471824288368225, 0.8747903108596802, -0.5698254108428955, -0.5995700359344482, 0.1944543421268463, -0.08299509435892105, -1.1351690292358398, 0.23682555556297302, -0.16589900851249695, 0.11532798409461975, -0.13784553110599518, -0.40503719449043274, -0.6402302384376526, 1.1657829284667969, 0.6146140694618225, -0.4131944477558136, -0.02327623963356018, 0.38269904255867004, 0.5114585161209106, -0.29772186279296875, 0.38229069113731384, 0.44328391551971436, 0.6982496380805969, 0.31884893774986267, -1.0906797647476196, 0.019890472292900085, -0.05134163051843643, -0.46954336762428284, 0.012279185466468334, -0.9154002070426941, 0.4587912857532501, -0.42509716749191284, -0.020745771005749702, 0.011147835291922092, 0.5032066106796265, -0.07508573681116104, 0.4395817518234253, 0.3361585736274719, 0.39740636944770813, 1.0776338577270508, 0.47687917947769165, 0.8745599389076233, -0.44827499985694885, -0.021883513778448105, 1.035630226135254, -0.6741283535957336, 0.18747146427631378, 0.2428295910358429, -0.1412770003080368, 0.26383695006370544, 0.6852080225944519, 0.22276541590690613, 0.5797977447509766, 0.02022692747414112, -0.7381616830825806, -0.22691483795642853, -0.5117542147636414, -0.22013379633426666, 0.5506981611251831, 0.5404931902885437, -0.5463492274284363, -0.3566924035549164, 0.05603208392858505, 0.18667873740196228, -0.06540422141551971, -0.46197617053985596, 0.8855146169662476, 0.2816753089427948, -0.31077831983566284, 0.3642924129962921, -0.15144412219524384, 0.15526528656482697, -0.8142809867858887, -0.167693629860878, -0.32483208179473877, -0.10025136172771454, -0.2892321050167084, -0.6887211203575134, 0.17611832916736603, -0.02705252729356289, 0.10326790809631348, -0.06727854907512665, 0.7028796672821045, -0.5039852261543274, -0.21528039872646332, 0.09751772880554199, 0.8424211740493774, -0.02666802704334259, -0.06717785447835922, -0.569115400314331, -0.31993013620376587, -0.26036524772644043, 0.021725427359342575, 0.22275128960609436, 0.38370153307914734, 0.20018203556537628, 0.7590007781982422, 0.45746302604675293, 0.44817250967025757, -0.45961374044418335, 0.08690480887889862, 0.8721140027046204, -0.5962690114974976, -0.5038054585456848, -0.881544828414917, 0.14626692235469818, -0.136625275015831, -0.1439780294895172, 0.8052521347999573, 0.499074786901474, 0.008379301987588406, -0.07102592289447784, 0.9862009882926941, 0.08321913331747055, 0.09535982459783554, -0.6607694625854492, 0.863117516040802, -0.6072649955749512, 0.20326808094978333, -0.0035611989442259073, -0.48783883452415466, -0.298164427280426, 0.1941300630569458, -0.3329189121723175, 0.15328562259674072, 0.5640134811401367, 0.4702497124671936, 0.02504820004105568, 0.19286757707595825, 0.50673508644104, 0.23426365852355957, 0.6973474621772766, 0.5508855581283569, 0.31274133920669556, 0.2893413007259369, 0.03455016762018204, 0.1715867519378662, -0.467121958732605, -0.43602344393730164, -0.42833003401756287, -0.7513551115989685, -0.4102139472961426, -0.053839925676584244, -0.2543325424194336, 0.17600023746490479, 0.9511329531669617, 0.7930071353912354, -0.5788840651512146, 0.2068762183189392, -0.03814099729061127, 0.19911357760429382, -0.22787366807460785, -0.22350174188613892, 0.19703727960586548, -0.2456217110157013, -0.42084208130836487, 0.6229198575019836, 0.3259681165218353, 0.10354964435100555, -0.4922170639038086, -0.02665102481842041, 0.1515905112028122, 0.23317086696624756, 0.5152080059051514, 0.24289971590042114, -0.11555148661136627, -0.28687500953674316, 0.02358611673116684, -0.2729407846927643, 0.24232269823551178, 0.694992184638977, -0.6680042147636414, 0.7295958399772644, -0.08735613524913788, 0.6664193868637085, 0.3107498586177826, 0.056668221950531006, 0.44080305099487305, -0.6332768201828003, -0.17262199521064758, 0.6516537070274353, 0.35773205757141113, 0.23282372951507568, -0.6186832189559937, 0.27051323652267456, 0.31581518054008484, -0.48109889030456543, -0.16350653767585754, 0.11809199303388596, -1.224134922027588, -0.003993011079728603, 1.679451823234558, -0.00511195557191968, -0.5418190956115723, -0.2606290578842163, -0.32312679290771484, -0.01562958024442196, -0.7801173329353333, 0.7601271271705627, 0.44189250469207764, -0.4788050651550293, 0.03196147456765175, -0.7748426198959351, 0.4952600300312042, 0.11210054159164429, -1.5050157308578491, -0.015575308352708817, 0.4058240056037903, 0.38054656982421875, 0.024768998846411705, 0.9795060753822327, 0.11946844309568405, -0.06145874410867691, -0.3307853043079376, -0.03662314638495445, -0.1267036497592926, -0.061763424426317215, 0.27617087960243225, -0.04399969056248665, -0.19430126249790192, -0.20056205987930298 ]
http://arxiv.org/abs/2402.10151v1
http://arxiv.org/pdf/2402.10151v1
ControlLM: Crafting Diverse Personalities for Language Models
2024-02-15T17:58:29
2024-02-15T17:58:29
Yixuan Weng, Shizhu He, Kang Liu, Shengping Liu, Jun Zhao
cs.CL
cs.CL
As language models continue to scale in size and capability, they display an array of emerging behaviors, both beneficial and concerning. This heightens the need to control model behaviors. We hope to be able to control the personality traits of language models at the inference-time so as to have various character features, on top of which the requirements of different types of tasks can be met. Personality is a higher-level and more abstract behavioral representation for language models. We introduce ControlLM, which leverages differential activation patterns, derived from contrasting behavioral prompts in the model's latent space, to influence the model's personality traits at inference. This approach allows for the precise, real-time adjustment of model behavior. First, we demonstrate ControlLM's capacity to elicit diverse persona behaviors without any training, while precision control allows personality traits to closely match average human values. Subsequently, we showcase improved reasoning and question answering through selective amplification of beneficial attributes like conscientiousness and friendliness. We hope that this work will inspire research on controlling human-like behaviors of language models and provide insights for future research. Our code is publicly available at: https://github.com/wengsyx/ControlLM.
[ -0.27514025568962097, -0.8885374665260315, 0.41782987117767334, 0.6432509422302246, 0.15334805846214294, 0.41265591979026794, -0.1553533375263214, -0.3001617193222046, 0.15334472060203552, 0.48900607228279114, -0.5515486001968384, -0.3556756377220154, -0.5183662176132202, -0.266387403011322, -0.18519803881645203, 0.8352593779563904, 0.05646122992038727, 0.07499081641435623, 0.007299997843801975, -0.1180950477719307, -0.3692818880081177, -0.9083066582679749, -0.7301265001296997, -0.5049776434898376, 0.9320639967918396, 0.18547409772872925, 0.6669746041297913, 0.37223392724990845, 0.15367121994495392, 0.22068369388580322, -0.04714910686016083, 0.08776850253343582, -0.5340676307678223, 0.4019031822681427, -0.30970942974090576, -0.34594711661338806, -0.7096892595291138, 0.06683224439620972, 0.6550664305686951, 0.7499620318412781, -0.1284637749195099, -0.059152379631996155, -0.027773752808570862, 0.4851056635379791, -0.4915808141231537, 0.030912965536117554, -0.4122958481311798, -0.14733915030956268, -0.4144124388694763, 0.1562320739030838, -0.5871735215187073, -0.35283762216567993, -0.08355756849050522, -0.2770776152610779, -0.09534836560487747, 0.26252153515815735, 0.5519641637802124, 0.0833439975976944, -0.5399072170257568, 0.08542128652334213, -0.956540584564209, 1.0162124633789062, -0.6541328430175781, 0.3547848165035248, 0.4798746407032013, 0.36165347695350647, -0.11422236263751984, -0.3968692123889923, -0.47942882776260376, -0.38415226340293884, -0.20397575199604034, -0.11949606239795685, -0.05635492503643036, -0.04214615002274513, 0.3867528438568115, 0.06610102206468582, -0.6058977842330933, 0.23796045780181885, 0.05836882069706917, -0.22864149510860443, 0.8134037256240845, 0.46311286091804504, 0.3941290080547333, 0.3562542200088501, 0.22331278026103973, -0.05448167771100998, -0.5289250016212463, 0.3530922830104828, 0.6679064631462097, 0.3087042570114136, -0.3024844229221344, 0.5304263234138489, -0.3884405195713043, 0.6587167978286743, 0.21651843190193176, 0.043526843190193176, 0.06450379639863968, 0.07043211162090302, -0.26642847061157227, -0.343680202960968, 0.4561721384525299, 0.125625878572464, 0.17265687882900238, -0.045220181345939636, -0.13167200982570648, 0.04003500938415527, 0.3772421181201935, -0.584614098072052, -0.27428707480430603, 0.46034008264541626, -0.5591066479682922, -0.5120870471000671, -0.0485570915043354, -0.8425140976905823, -0.49593257904052734, -0.5275787711143494, 0.05135241523385048, -0.38471248745918274, -0.588444173336029, -0.09813202917575836, -0.06292961537837982, 0.38818877935409546, 0.4404405951499939, -1.1883795261383057, 0.5065558552742004, 0.4812127351760864, 0.5433022379875183, -0.5931769609451294, -0.2848148047924042, -0.7194015979766846, 0.06753220409154892, -0.29900509119033813, 0.29624199867248535, -1.1238094568252563, -0.36946573853492737, -0.11096734553575516, -0.19405421614646912, 0.020029237493872643, -0.4535179138183594, 0.14983853697776794, -0.7043018341064453, 0.10967323184013367, -0.3488742709159851, -0.293163925409317, -0.010740173980593681, 0.20855793356895447, -0.5462630391120911, 0.8643755316734314, 0.4148167073726654, -0.5374231934547424, 0.07662738114595413, -0.8225893974304199, -0.5786452293395996, 0.026592211797833443, -0.17750556766986847, -0.22218139469623566, 0.11337301880121231, -0.20380210876464844, 0.31661751866340637, 0.12742483615875244, 0.3357098400592804, -0.46382585167884827, -0.03698517754673958, 0.5321542024612427, -0.07718271017074585, 0.9605056047439575, 0.16489434242248535, -0.2638981342315674, 0.6814754009246826, -0.6729332804679871, 0.15236249566078186, 0.06597956269979477, -0.19769321382045746, -0.4130411744117737, 0.17840418219566345, 0.27920183539390564, 0.3364892303943634, 0.3843376934528351, -0.3070114850997925, 0.27447354793548584, -0.0553998164832592, 0.11347772181034088, 0.7318581342697144, -0.08315130323171616, 0.6862534284591675, -0.519916832447052, 0.6404592990875244, -0.03962066397070885, 0.3862609565258026, 0.24829986691474915, -0.32219141721725464, -0.5231389999389648, -0.3580314517021179, -0.19778025150299072, 0.603980541229248, -0.2653465270996094, 0.6091338992118835, 0.32109344005584717, -0.7531707286834717, -0.26585182547569275, 0.21674877405166626, 0.4503462314605713, 0.30848413705825806, 0.3037976324558258, -0.25815823674201965, -0.5434996485710144, -0.6299912929534912, -0.34598153829574585, -0.10121536254882812, -0.26050302386283875, 0.41217657923698425, 0.27684593200683594, -0.18938730657100677, 0.9746006727218628, -0.5280659198760986, 0.19233158230781555, -0.6084729433059692, 0.010968891903758049, 0.008746600709855556, 0.6396801471710205, 0.6890947222709656, -0.9562644362449646, -0.5653226375579834, -0.12450968474149704, -0.466659277677536, -0.48162052035331726, -0.14537370204925537, -0.5060328245162964, 0.19529742002487183, 0.46338579058647156, -0.4412066340446472, 0.22151049971580505, 0.6062712669372559, -0.8223323822021484, 0.9064576625823975, -0.0473216287791729, -0.17414137721061707, -0.564271867275238, 0.4043866991996765, -0.19683849811553955, -0.2690069377422333, -0.8832091093063354, 0.08688430488109589, 0.05554933100938797, 0.15732385218143463, -0.3978275954723358, 0.9393592476844788, -0.13713568449020386, 0.10821401327848434, -0.12387906014919281, -0.2140287607908249, 0.1499834656715393, 0.731478750705719, 0.14319048821926117, 0.41701963543891907, 0.6516232490539551, -0.8041552305221558, 0.5039463043212891, 0.122703418135643, -0.04422835633158684, 0.6060508489608765, -0.6086475253105164, 0.13369473814964294, -0.15739604830741882, -0.016856931149959564, -0.7127091884613037, -0.36104339361190796, 0.19248010218143463, -0.17327184975147247, 0.43997922539711, 0.26403912901878357, -0.27319231629371643, -0.08164624124765396, -0.0074342601001262665, -0.16234660148620605, 0.737388014793396, -0.11104470491409302, 0.8304633498191833, 0.3801915943622589, -0.4229539632797241, -0.24486199021339417, -0.6334087252616882, -0.30981066823005676, -0.30500394105911255, -0.029933171346783638, 0.34883370995521545, -0.6434486508369446, -0.8398783206939697, -0.29180237650871277, 0.0017274668207392097, 0.03684482350945473, 0.3427605628967285, 0.24208831787109375, 0.17728663980960846, 0.11590662598609924, 0.17868995666503906, 0.46648186445236206, 0.01364232785999775, -0.11877799779176712, -0.2609224021434784, 0.9841189980506897, -0.11446923017501831, -0.47211524844169617, -0.2803623676300049, 0.6021904349327087, 0.7862427830696106, -0.5662710666656494, 0.7567539811134338, 0.4294854402542114, -0.06798320263624191, -0.1458526998758316, -0.38525861501693726, -0.3928612172603607, -0.4522300362586975, 0.3372783064842224, -0.4769422709941864, -1.0726490020751953, 0.8647277355194092, 0.17894276976585388, 0.06199733167886734, 0.018715092912316322, 0.8160601854324341, -0.02924683690071106, 1.249561071395874, 0.7125311493873596, 0.00881247129291296, 0.7773628830909729, 0.25088033080101013, 0.058710768818855286, -0.8021862506866455, -0.3102136552333832, -0.42920762300491333, -0.525981068611145, -0.4748656451702118, -0.2424226850271225, -0.11313830316066742, -0.02139684185385704, -0.6612846255302429, -0.02214558981359005, -0.3553757667541504, 0.19937236607074738, 0.5161487460136414, 0.09115367382764816, 0.17348279058933258, -0.32181787490844727, -0.28676626086235046, -0.3184802532196045, -0.27868276834487915, -0.619010865688324, 0.8696692585945129, 0.3711787164211273, 1.059024691581726, 0.39441949129104614, 0.31517738103866577, 0.3733251690864563, 0.475341260433197, -0.49407848715782166, 0.4803432524204254, -0.27792322635650635, -0.6529909372329712, -0.48819202184677124, -0.20834898948669434, -0.6364165544509888, 0.13002486526966095, -0.00456889858469367, -1.015634536743164, 0.15124893188476562, 0.40553516149520874, -0.25204211473464966, 0.16001102328300476, -0.5747392773628235, 0.9355340600013733, -0.562610924243927, -0.5009116530418396, -0.18800103664398193, -0.750617265701294, 0.2626533508300781, -0.10794389992952347, -0.13987062871456146, -0.33436504006385803, -0.024339836090803146, 0.33983325958251953, -0.18684911727905273, 1.205942153930664, -0.3255399763584137, -0.16422238945960999, -0.07763472944498062, 0.5365965962409973, 0.49131983518600464, 0.023568689823150635, -0.33259737491607666, 0.001058823661878705, 0.06461106240749359, -0.6105459332466125, -0.7562471628189087, 0.6128213405609131, -0.7987546324729919, -0.5026123523712158, -0.04293389618396759, -0.7107370495796204, -0.37341222167015076, 0.33595508337020874, -0.04181757941842079, 0.2680569589138031, -0.4019436836242676, 0.07822616398334503, 0.6580053567886353, -0.3488829731941223, 0.3233531415462494, 0.6471623778343201, -0.7431829571723938, 0.01546790823340416, 0.7100842595100403, -0.26256197690963745, 0.5728586316108704, 0.654780387878418, 0.24878744781017303, -0.20352977514266968, -0.41695958375930786, -0.07124968618154526, 0.08233990520238876, -0.43188658356666565, 0.2909923791885376, -0.7929156422615051, -0.1521867960691452, -0.5558454990386963, -0.19707390666007996, -0.21883846819400787, -0.22242394089698792, -0.3230113089084625, 0.17272980511188507, 0.3208129107952118, 0.6543283462524414, 0.353353351354599, 0.5748141407966614, -0.4802565574645996, 0.12547236680984497, 0.5131251811981201, 0.4776030480861664, -0.0558454692363739, -0.36393463611602783, 0.08957865089178085, -0.14442473649978638, -0.21268408000469208, -0.8781227469444275, 0.6371643543243408, 0.15133225917816162, 0.8346243500709534, 0.5032991766929626, 0.0637100413441658, 0.19806846976280212, -0.4461100995540619, 0.649106502532959, -0.21692828834056854, -1.1149218082427979, 0.6237694621086121, -0.3298459053039551, 0.487336128950119, 0.2712537944316864, 0.2829691469669342, -0.8480247855186462, -0.8737912178039551, -0.6340538263320923, -0.2964842617511749, 0.6271035671234131, -0.00807615090161562, 0.4154376685619354, 0.22434227168560028, 0.24691542983055115, 0.22522617876529694, 0.3865881562232971, -0.5999570488929749, -0.3123938739299774, -0.4077269434928894, -0.33811405301094055, -0.007145005743950605, -0.28568610548973083, -0.2951054573059082, -0.28315556049346924, 0.43522533774375916, -0.29309239983558655, -0.003998374566435814, -0.1265941560268402, 0.0707944855093956, -0.06534459441900253, 0.33233755826950073, 0.8043336868286133, 0.6551150679588318, -0.1950484961271286, 0.315308541059494, 0.004433368798345327, -0.45228272676467896, 0.031702131032943726, -0.015308666974306107, -0.2587565779685974, -0.12649968266487122, 0.11556693911552429, 0.9799439311027527, 0.009743571281433105, -0.7084694504737854, 0.11230143159627914, -0.11380328238010406, 0.06571649014949799, -0.1573757380247116, 0.5142619013786316, 0.11542156338691711, 0.3303249180316925, 0.20116569101810455, 0.1678275465965271, -0.2075449526309967, -0.22614015638828278, 0.11004159599542618, 0.46137765049934387, -0.3747486472129822, -0.5089147686958313, 0.7083086967468262, 0.20377197861671448, -0.47578078508377075, 0.4335794746875763, -0.3715939223766327, -0.41888460516929626, 0.5714383721351624, 0.7318747043609619, 0.8118702173233032, -0.5013364553451538, 0.3159015476703644, 0.12064765393733978, 0.13804128766059875, 0.1832864135503769, 0.5115662813186646, -0.008222782053053379, -1.0818558931350708, -0.478514701128006, -0.7331445813179016, -0.6672802567481995, 0.27800875902175903, -0.4518510699272156, 0.21723859012126923, -0.8265078663825989, 0.0778178796172142, -0.22744157910346985, 0.008599509485065937, -0.4006776809692383, 0.07091536372900009, 0.03946329280734062, 0.9818083643913269, -0.884576141834259, 1.1727793216705322, 0.7430774569511414, -0.1742449551820755, -0.7330520153045654, -0.09052293747663498, 0.22179031372070312, -0.4646759033203125, 0.9179526567459106, -0.0666046291589737, 0.016605036333203316, 0.2671513855457306, -0.8234352469444275, -0.761443555355072, 0.8128484487533569, 0.26048702001571655, -0.5405058860778809, -0.06515670567750931, -0.28802135586738586, 0.5927184224128723, -0.5646862387657166, 0.05481189116835594, 0.7028694152832031, 0.6665971279144287, 0.1681467741727829, -0.7579107880592346, 0.018421782180666924, -0.375950425863266, 0.05961675941944122, 0.01499298308044672, -0.5010219812393188, 0.91434645652771, -0.13493798673152924, 0.11218919605016708, -0.0638822540640831, 0.5736542344093323, 0.6131011247634888, 0.03520452231168747, 0.47740721702575684, 0.1302698254585266, 0.9869554042816162, 0.03404660150408745, 0.9440996646881104, -0.21725104749202728, -0.024130254983901978, 1.294985055923462, -0.6744840741157532, 0.678229808807373, 0.4896060526371002, -0.28615322709083557, 0.7822896242141724, 0.4649309515953064, 0.023184360936284065, 0.4555843770503998, 0.1476098895072937, -0.4526229500770569, -0.3840419054031372, -0.05749177932739258, 0.061998434364795685, 0.5269108414649963, 0.5742496848106384, -0.1935684084892273, 0.061411499977111816, 0.24328084290027618, 0.13735869526863098, 0.2892577052116394, -0.13161486387252808, 0.5405898690223694, -0.1528797298669815, -0.5974231362342834, 0.07759778201580048, -0.060288917273283005, 0.7543129324913025, -0.9128782153129578, 0.11997473984956741, -0.32694292068481445, 0.1036079153418541, -0.03538365289568901, -0.6464763879776001, 0.5662811994552612, -0.12548299133777618, -0.23191632330417633, -0.6632681488990784, 0.737903356552124, -0.6550023555755615, -0.1470717340707779, 0.30146241188049316, 0.5643742084503174, 0.0693998783826828, -0.21343548595905304, -0.5194946527481079, 0.19805458188056946, -0.00006460236909333616, -0.25826704502105713, 0.314073771238327, 0.10764583945274353, -0.514885663986206, 0.7444818019866943, 0.6877570748329163, 0.3649410903453827, 0.08662550896406174, 0.30503028631210327, 0.7176497578620911, -0.5908310413360596, -0.5748016238212585, -1.020231008529663, 0.6824153661727905, -0.24427641928195953, -0.1929960697889328, 0.6064110994338989, 0.24875754117965698, 0.6678523421287537, -0.45689448714256287, 0.9232075810432434, -0.5332130789756775, 0.585360586643219, -0.2993794083595276, 1.0112907886505127, -0.4051004946231842, -0.07833597809076309, -0.025963932275772095, -0.6449933052062988, -0.553726315498352, 0.4063572287559509, -0.38429924845695496, 0.16990423202514648, 0.4502771496772766, 0.8344151973724365, 0.17765049636363983, -0.31615909934043884, 0.5810720920562744, 0.24349772930145264, 0.7457804679870605, 0.34701791405677795, 0.6891065239906311, 0.4040052592754364, 0.11736227571964264, -0.20553405582904816, -0.407571017742157, -0.4071640372276306, -0.9623829126358032, -0.8905421495437622, -0.49327608942985535, -0.2768810987472534, -0.24085725843906403, -0.3992250859737396, 0.8645968437194824, 0.8657310605049133, -1.0758056640625, -0.24975843727588654, -0.22843457758426666, 0.4787726104259491, -0.5113717913627625, -0.28526708483695984, -0.05441579222679138, -0.5060536861419678, -0.954620897769928, 0.14030182361602783, 0.43400171399116516, 0.21906183660030365, -0.5354734063148499, -0.2533603310585022, -0.22047723829746246, 0.003046663710847497, 0.6228543519973755, 0.5169894695281982, -0.8120023012161255, -0.277397483587265, 0.30214923620224, -0.4351882040500641, -0.20369194447994232, 1.0895851850509644, -0.45873984694480896, 0.4305737018585205, 0.5770647525787354, 0.3427581787109375, 0.22268761694431305, -0.051620468497276306, 0.7725322246551514, -0.998525857925415, 0.369221031665802, 0.35345515608787537, 0.07418616861104965, 0.3588218092918396, -0.43165305256843567, 0.07482872158288956, 0.14221808314323425, -0.4577018916606903, -0.5085904598236084, 0.5727896094322205, -1.1229203939437866, -0.2800561487674713, 1.012608289718628, -0.021403754130005836, -0.09870998561382294, -0.23612140119075775, -0.553154706954956, 0.2832603454589844, -0.4060213267803192, 0.6872455477714539, 0.7594537734985352, -0.5527430772781372, -0.47797122597694397, -0.3569372892379761, 0.693681538105011, 0.4594951570034027, -1.0477691888809204, 0.30993494391441345, 0.44795453548431396, 0.1736341416835785, 0.2002059370279312, 0.6814939975738525, -0.11913849413394928, -0.1163809671998024, -0.30750638246536255, 0.3090614676475525, 0.04027490317821503, -0.22141169011592865, -0.4117256700992584, 0.08002402633428574, 0.32397565245628357, 0.18466299772262573 ]
http://arxiv.org/abs/2402.10137v3
http://arxiv.org/pdf/2402.10137v3
TOAD: Task-Oriented Automatic Dialogs with Diverse Response Styles
2024-02-15T17:40:02
2024-06-06T20:18:11
Yinhong Liu, Yimai Fang, David Vandyke, Nigel Collier
cs.CL
cs.CL
In light of recent advances in large language models (LLMs), the expectations for the next generation of virtual assistants include enhanced naturalness and adaptability across diverse usage scenarios. However, the creation of high-quality annotated data for Task-Oriented Dialog (TOD) is recognized to be slow and costly. To address these challenges, we introduce Task-Oriented Automatic Dialogs (TOAD), a novel and scalable TOD dataset along with its automatic generation pipeline. The TOAD dataset simulates realistic app context interaction and provide a variety of system response style options. Two aspects of system response styles are considered, verbosity level and users' expression mirroring. We benchmark TOAD on two response generation tasks, and the results show that modeling more verbose responses or responses without user expression mirroring is more challenging.
[ -0.37535712122917175, -0.805473268032074, 0.34678661823272705, 0.4610867202281952, -0.09839042276144028, -0.011696298606693745, 0.09087896347045898, -0.3637952506542206, 0.35741886496543884, 0.8231143355369568, -0.854499101638794, -0.1565716564655304, -0.25297078490257263, 0.3866110146045685, -0.3094741702079773, 0.976946234703064, 0.11396899074316025, -0.016690876334905624, -0.24873028695583344, -0.07149921357631683, -0.8976492285728455, -0.38568341732025146, -0.8365288376808167, 0.062453482300043106, 0.22998110949993134, 0.4503666162490845, 0.4805954396724701, 0.4625045657157898, 0.4232633709907532, 0.36109715700149536, 0.4984533488750458, 0.4181605279445648, -0.2992927134037018, 0.7599854469299316, 0.09482309967279434, -0.13745591044425964, -0.8473040461540222, -0.34415319561958313, 0.3423435091972351, 0.3536839187145233, -0.05762171000242233, 0.1379723995923996, 0.028371315449476242, 0.49673277139663696, -0.3661949336528778, 0.43059778213500977, -0.7353523373603821, -0.0314650759100914, -0.0597471222281456, -0.030821572989225388, -0.44216910004615784, 0.023389523848891258, 0.3833627700805664, -0.8181549906730652, 0.09649504721164703, 0.25269487500190735, 0.6344591379165649, 0.18742454051971436, -0.609131932258606, -0.38541391491889954, -0.6566736698150635, 0.6830923557281494, -0.6316899657249451, 0.15654145181179047, 0.1428501307964325, 0.45449015498161316, -0.10289913415908813, -0.4993363320827484, -0.7222110033035278, -0.09462188929319382, -0.07683856785297394, 0.0946873351931572, -0.040631361305713654, 0.09168413281440735, 0.122801274061203, 0.20896032452583313, -0.6829094886779785, -0.14900924265384674, 0.02632720023393631, -0.3387446105480194, 0.7074946761131287, 0.7706884741783142, 0.21672025322914124, -0.41581016778945923, -0.2389409989118576, -0.09789209067821503, -0.30885443091392517, -0.053627368062734604, 0.17507584393024445, 0.696031391620636, 0.0049682180397212505, 0.5272316932678223, -0.5191530585289001, 0.9919509291648865, 0.004459348041564226, -0.053044699132442474, 0.058235034346580505, -0.6591200828552246, -0.23391316831111908, -0.22014372050762177, 0.9173937439918518, 0.7312818765640259, 0.253927081823349, -0.08221220970153809, -0.518857479095459, -0.17551742494106293, 0.443782776594162, -0.5494418740272522, -0.08187799900770187, 0.366678386926651, -0.21014975011348724, -0.2028428614139557, -0.3227740526199341, -1.0376758575439453, -0.5829254984855652, -0.5156916379928589, 0.36000874638557434, -0.2527458965778351, -0.08828103542327881, -0.23368073999881744, 0.15035195648670197, 0.17105108499526978, 0.8516732454299927, -0.6917139887809753, 0.6315351128578186, 0.579264223575592, 0.7956722378730774, -0.43508651852607727, -0.06687704473733902, -0.9839521050453186, 0.20085106790065765, -0.14580197632312775, 0.6500061750411987, -0.6575109958648682, -0.8315169811248779, -0.07135479152202606, 0.06636612117290497, -0.0010267052566632628, -0.4817304015159607, 0.22514870762825012, -0.33872750401496887, 0.4623960852622986, -0.3638596534729004, -0.24101869761943817, 0.10763474553823471, 0.2419876903295517, -0.45257577300071716, 0.8684470653533936, 0.2719445824623108, -0.5799268484115601, 0.43123915791511536, -0.8786470890045166, -0.45795077085494995, 0.0719352662563324, 0.12516997754573822, -0.19944977760314941, 0.13345901668071747, 0.14194607734680176, 0.3069072961807251, -0.444040983915329, 0.14347289502620697, -0.3639046847820282, -0.15459808707237244, -0.019545795395970345, -0.09743989259004593, 0.511476457118988, 0.3719871938228607, -0.38901376724243164, 0.377223938703537, -0.8725573420524597, 0.11151279509067535, 0.15302565693855286, 0.04127915948629379, -0.3056778311729431, -0.07235087454319, 0.13937611877918243, 0.2573007047176361, 0.3510804772377014, -0.7206358313560486, 0.5530980825424194, 0.024938251823186874, 0.38439682126045227, 0.9614749550819397, -0.19887109100818634, 0.1407213807106018, -0.09639881551265717, 0.302941232919693, 0.1269160658121109, 0.26679447293281555, -0.3111216723918915, -0.44492173194885254, -0.721775233745575, -0.33722883462905884, -0.1396213322877884, 0.6395785212516785, -0.8175790905952454, -0.010341494344174862, -0.3295851945877075, -0.24830570816993713, -0.3295530080795288, 0.11886750161647797, 0.5435342192649841, 0.8537793755531311, 0.06589140743017197, -0.595853328704834, -0.6022483706474304, -1.0685478448867798, -0.16221381723880768, -0.5746813416481018, -0.18477682769298553, 1.0126861333847046, 0.21998600661754608, -0.29723721742630005, 1.2362123727798462, -0.46855905652046204, -0.11687463521957397, -0.12694934010505676, 0.33204588294029236, -0.20475885272026062, 0.18492554128170013, 0.5148226022720337, -0.8023986220359802, -0.6050655841827393, -0.11613036692142487, -0.48648878931999207, -0.5332848429679871, -0.0951835885643959, -0.10492420941591263, 0.5304147601127625, -0.028684595599770546, -0.6382553577423096, 0.019103042781352997, 0.5049397349357605, -0.457405686378479, 0.4681731164455414, 0.012741677463054657, 0.34267333149909973, -1.2957290410995483, -0.0277105662971735, 0.12579424679279327, -0.3623155355453491, -0.7389148473739624, -0.2848174571990967, -0.19857710599899292, -0.3309149146080017, -0.39026641845703125, 1.0426572561264038, -0.2931375205516815, -0.5065334439277649, -0.2906821072101593, 0.07629407197237015, 0.014394895173609257, 0.6048779487609863, 0.2963961958885193, 1.159544825553894, 0.41471248865127563, -0.5396320223808289, 0.5576285719871521, 0.24825721979141235, 0.33218833804130554, 0.790248692035675, -0.9120238423347473, 0.21566224098205566, 0.049523357301950455, 0.43349459767341614, -1.1209793090820312, -0.7052022814750671, 0.11309508979320526, -0.13316398859024048, 0.12468171119689941, -0.058748405426740646, -0.6807906031608582, -0.36480605602264404, -0.350988507270813, 0.06913810968399048, 0.4471431076526642, -0.22302548587322235, 0.8440355062484741, 0.35780608654022217, -0.4182996153831482, -0.1790618896484375, -0.21475592255592346, 0.22116173803806305, -0.31948891282081604, -0.5449169278144836, -0.16530799865722656, -0.027139754965901375, -0.37840667366981506, -0.36643627285957336, -0.10264080762863159, -0.2902834117412567, 0.0033677516039460897, 0.41068771481513977, 0.41526973247528076, -0.0766020268201828, 0.06845776736736298, -0.07328889518976212, 0.10621215403079987, -0.05997461825609207, -0.19328659772872925, 0.6461553573608398, -0.31319519877433777, -0.33300361037254333, -0.47201311588287354, 0.535358190536499, 1.0057134628295898, -0.058028075844049454, 0.33992910385131836, 0.36383941769599915, -0.078083835542202, 0.20062485337257385, -0.4814845025539398, -0.3117261230945587, -0.47543781995773315, 0.32628342509269714, -0.5344575047492981, -0.5536788105964661, 0.4704784154891968, 0.1541322022676468, 0.5830029845237732, 0.1652028113603592, 0.5859069228172302, -0.11392106860876083, 1.3013542890548706, 0.44981685280799866, 0.05442167446017265, 0.5503894686698914, 0.1938304752111435, 0.1525965929031372, -0.8034808039665222, -0.09457337111234665, -0.37986475229263306, -0.1365819126367569, -0.6199209690093994, -0.2682406008243561, 0.3903115689754486, -0.36316412687301636, -0.36442500352859497, 0.47331154346466064, -0.4763447642326355, -0.15228502452373505, 0.6192508339881897, -0.11824192106723785, 0.38878539204597473, -0.20437030494213104, 0.4749928116798401, -0.05427185446023941, -0.394308865070343, -0.7338674664497375, 1.2759270668029785, 0.07503240555524826, 0.8120449781417847, 0.23320618271827698, 0.6547898650169373, 0.31454288959503174, 0.3859085440635681, -0.6589331030845642, 0.8805729746818542, -0.06602568924427032, -0.42032602429389954, -0.463511198759079, -0.37608054280281067, -0.6632360816001892, 0.1254795640707016, 0.018097085878252983, -1.0926531553268433, -0.139396071434021, 0.5489089488983154, -0.1814681440591812, 0.03589184582233429, -1.0309348106384277, 0.607109010219574, -0.1138983741402626, -0.5328424572944641, 0.1950303614139557, -0.7087162137031555, 0.21748152375221252, -0.11929886043071747, 0.011664233170449734, -0.1209421381354332, -0.11613775789737701, 0.4523480236530304, -0.6352479457855225, 0.864528477191925, -0.4164533019065857, -0.07433942705392838, 0.3708447813987732, 0.4304130971431732, 0.7976456880569458, 0.17183822393417358, 0.062225572764873505, -0.34128499031066895, 0.09435494989156723, -0.443839430809021, -0.6592460870742798, 0.8117592334747314, -0.546891987323761, -0.8525010347366333, -0.15546001493930817, -0.9174580574035645, -0.841551661491394, 0.07733563333749771, 0.013459626585245132, 0.512744665145874, 0.06943213194608688, -0.13858182728290558, 0.5818082094192505, -0.012702141888439655, 0.3782389760017395, 0.5815739631652832, -0.3064722716808319, -0.15507738292217255, 0.878917396068573, -0.05034586414694786, 0.3476215600967407, 0.03427940607070923, -0.07909953594207764, -0.26983723044395447, -0.12000131607055664, -0.8106023073196411, -0.06602657586336136, -0.19455963373184204, -0.04053275287151337, -0.933659017086029, 0.15847545862197876, -0.5585449934005737, -0.039570409804582596, -0.4632143974304199, -0.5568910241127014, -0.11119229346513748, 0.3524931073188782, 0.5172365307807922, 0.779985249042511, 0.34143659472465515, 0.2623436450958252, -0.8365901112556458, 0.3116646707057953, 0.7829811573028564, 0.3255399167537689, -0.10428512096405029, -0.18961139023303986, 0.18488526344299316, 0.27942225337028503, -0.3999798595905304, -0.7560349106788635, 0.4053089916706085, 0.21700182557106018, 0.2317202240228653, 0.05441765859723091, 0.1416703462600708, 0.6575528979301453, -0.4809228479862213, 1.1793004274368286, 0.03211222589015961, -0.7637501955032349, 0.8214600086212158, -0.6360838413238525, 0.3072514832019806, 0.23372964560985565, 0.11962005496025085, -0.5586696267127991, -0.4393579959869385, -0.38249310851097107, -0.8867828845977783, 0.7321813106536865, 0.20419932901859283, 0.4525951147079468, -0.04196081683039665, 0.1512944996356964, 0.5362106561660767, 0.43071049451828003, -0.4531359374523163, -0.00965794362127781, -0.49299851059913635, -0.17484159767627716, 0.043806977570056915, -0.04292246699333191, -0.3651036322116852, 0.16424374282360077, 0.35294342041015625, -0.5024283528327942, 0.5440893769264221, 0.1612023413181305, 0.0011814074823632836, 0.03136926144361496, 0.3080892860889435, 0.5745871067047119, 0.3219975233078003, -0.11663919687271118, -0.20389090478420258, 0.17664852738380432, -0.3449971675872803, 0.014578310772776604, -0.12191978842020035, 0.06661330908536911, 0.07180175185203552, 0.21416302025318146, 0.9806322455406189, -0.124949149787426, -0.9889309406280518, 0.3120274245738983, -0.32817840576171875, 0.14129063487052917, 0.1226823553442955, 0.2749701142311096, -0.2488919198513031, 0.06245270371437073, 0.3238964080810547, -0.3588445782661438, 0.5633425712585449, -0.7694106698036194, -0.06394494324922562, 0.5648980140686035, -0.32177332043647766, -0.42458054423332214, 0.5806887149810791, 0.600391685962677, -0.5104230642318726, 0.627621591091156, -0.08019547164440155, -0.2597047984600067, 0.5396637916564941, 0.4488891363143921, 1.0738742351531982, 0.021451812237501144, 0.25045162439346313, 0.18371346592903137, -0.2691199779510498, 0.2688458263874054, 0.38939255475997925, -0.48765790462493896, -0.21787412464618683, -0.08853113651275635, -0.5049887895584106, -0.7714670300483704, -0.06930886954069138, -0.6294867992401123, 0.14517517387866974, -0.30675697326660156, -0.4812789559364319, -0.3649681806564331, -0.15993450582027435, -0.5837363600730896, 0.2553976774215698, -0.18355268239974976, 0.6408685445785522, -0.833593487739563, 0.48028022050857544, 0.8864138126373291, -0.09815970808267593, -0.6019786596298218, 0.3439072072505951, 0.363712340593338, -0.6891720294952393, 0.9452810883522034, -0.02732892893254757, -0.14604660868644714, -0.24933640658855438, -0.2997307777404785, -0.6864415407180786, 0.9331299066543579, 0.18693271279335022, -0.48502036929130554, -0.312593936920166, 0.12337527424097061, 0.7437039017677307, -0.5739123821258545, 0.3272199034690857, 0.33207497000694275, 0.2172761708498001, 0.08899028599262238, -1.4742555618286133, -0.09568755328655243, -0.42380914092063904, 0.3285980522632599, 0.08350878953933716, -1.0088624954223633, 0.811571478843689, 0.07277838885784149, 0.05319803208112717, 0.12718325853347778, 0.3833414316177368, 0.4143272042274475, 0.4806668758392334, 0.6718265414237976, 0.20545123517513275, 0.3307154178619385, -0.34217244386672974, 1.034903645515442, -0.5150909423828125, 0.09420562535524368, 1.2516003847122192, -0.5696384906768799, 0.56194007396698, 0.7082455158233643, -0.018413972109556198, 0.3661286532878876, 0.7981791496276855, 0.4375341534614563, 0.5146259665489197, 0.007272818591445684, -0.18513251841068268, -0.20457065105438232, -0.39412376284599304, -0.11678635329008102, 0.4144219160079956, 0.2521566152572632, -0.007188112940639257, -0.04901914298534393, 0.16083523631095886, -0.14689430594444275, -0.12389915436506271, -0.1967715471982956, 1.0571399927139282, -0.3440881073474884, -0.8061255812644958, 0.2669883668422699, -0.5497538447380066, 0.5959501266479492, -0.4374401271343231, -0.08361107856035233, -0.38886940479278564, -0.2896338999271393, -0.08673509210348129, -0.9178301095962524, 0.22146549820899963, 0.26695239543914795, -0.1976630687713623, -0.4567425847053528, 0.4577432870864868, -0.021861722692847252, -0.19537793099880219, -0.05639689788222313, 0.4526166617870331, 0.006132176611572504, 0.31340280175209045, -0.5484084486961365, 0.1544458419084549, -0.0989510789513588, -0.6835856437683105, 0.279756098985672, 0.5657568573951721, -0.45577144622802734, 1.060747742652893, 0.2510858476161957, -0.09978284686803818, 0.15182127058506012, -0.22323518991470337, 0.8667349815368652, -0.1819574534893036, -0.32795029878616333, -0.29895463585853577, 0.6006540060043335, -0.4253981411457062, -0.4126659035682678, 0.7834526896476746, 0.42767587304115295, 0.49258822202682495, -0.20962810516357422, 0.7277721166610718, -0.18457406759262085, 0.6397539973258972, -0.2716119885444641, 0.16025254130363464, -0.6285837292671204, 0.25461268424987793, -0.5515139102935791, -0.8941144347190857, 0.1543150097131729, 0.3303220868110657, -0.24548809230327606, 0.3461173474788666, 0.20755615830421448, 0.7068151831626892, -0.07705503702163696, 0.08685315400362015, 0.04171954095363617, 0.12049245834350586, 0.5101194381713867, 0.48004576563835144, 0.39128318428993225, -0.1438264548778534, 0.37402501702308655, -0.249391108751297, -0.0908876433968544, -0.4830949604511261, -0.643621563911438, -0.5515151023864746, -0.9424576759338379, -0.24326078593730927, -0.29655757546424866, 0.22184503078460693, 0.8440137505531311, 0.9318478107452393, -0.7260880470275879, -0.2844647169113159, -0.25603508949279785, -0.25409749150276184, 0.22075682878494263, -0.3476989269256592, -0.13763566315174103, -0.4843035340309143, -1.0277019739151, 0.026010319590568542, 0.5145745277404785, 0.28025147318840027, -0.39116522669792175, -0.09402492642402649, 0.40176767110824585, 0.30877238512039185, 0.6565086841583252, 0.3752775490283966, -0.7456023097038269, -0.40524420142173767, 0.29102322459220886, -0.35726720094680786, -0.07709350436925888, 0.7887548804283142, -0.858107328414917, 0.9047979712486267, 0.33737289905548096, 0.4383763372898102, 0.30712607502937317, -0.003446959424763918, 0.9311500191688538, -0.6943628191947937, 0.05784207582473755, 0.2948102653026581, 0.11922585219144821, 0.2542113959789276, -0.390440434217453, 0.5292879343032837, 0.12321709841489792, -0.3784027099609375, -1.1544023752212524, 0.3712983727455139, -1.0804966688156128, 0.004128016997128725, 0.9782083034515381, -0.1336352378129959, -0.17111912369728088, -0.051813989877700806, -0.6643743515014648, -0.05780109390616417, -0.746829092502594, 0.8529667258262634, 0.712903618812561, -0.7411894798278809, -0.10945835709571838, -0.5080935955047607, 0.40835803747177124, 0.45628395676612854, -1.1098406314849854, 0.41728639602661133, 0.8273459672927856, 0.08909186720848083, 0.1827998161315918, 0.686262845993042, 0.16502749919891357, 0.3745008707046509, 0.04255899414420128, -0.22877129912376404, -0.08099109679460526, -0.29382234811782837, 0.06632289290428162, 0.07012736052274704, 0.04296105355024338, -0.15785202383995056 ]
http://arxiv.org/abs/2402.10110v2
http://arxiv.org/pdf/2402.10110v2
Selective Reflection-Tuning: Student-Selected Data Recycling for LLM Instruction-Tuning
2024-02-15T17:06:21
2024-06-07T20:23:21
Ming Li, Lichang Chen, Jiuhai Chen, Shwai He, Jiuxiang Gu, Tianyi Zhou
cs.CL
cs.CL, cs.AI, cs.LG
Instruction tuning is critical to large language models (LLMs) for achieving better instruction following and task adaptation capabilities but its success heavily relies on the training data quality. Many recent methods focus on improving the data quality but often overlook the compatibility of the data with the student model being finetuned. This paper introduces Selective Reflection-Tuning, a novel paradigm that synergizes a teacher LLM's reflection and introspection for improving existing data quality with the data selection capability of the student LLM, to automatically refine existing instruction-tuning data. This teacher-student collaboration produces high-quality and student-compatible instruction-response pairs, resulting in sample-efficient instruction tuning and LLMs of superior performance. Selective Reflection-Tuning is a data augmentation and synthesis that generally improves LLM finetuning and self-improvement without collecting brand-new data. We apply our method to Alpaca and WizardLM data and achieve much stronger and top-tier 7B and 13B LLMs.
[ -0.5375924706459045, -0.7301879525184631, 0.26875314116477966, 0.06226476654410362, -0.37320107221603394, 0.3589063882827759, -0.31096720695495605, -0.26690399646759033, 0.23509354889392853, 0.9174888730049133, -0.4370676875114441, -0.4679495096206665, -0.32984381914138794, -0.03513564169406891, -0.6575735807418823, 0.9682042598724365, -0.056912846863269806, 0.5179433226585388, -0.11772988736629486, -0.08064214140176773, -0.670087993144989, -0.03616536036133766, -0.4126506447792053, -0.3533424139022827, 0.4107460379600525, 0.8616803288459778, 0.5365021228790283, 0.8969205021858215, 0.3870495855808258, 0.22916369140148163, 0.25254836678504944, 0.5952325463294983, -0.6834494471549988, 0.2577444612979889, -0.3211807310581207, -0.4319528043270111, -0.568825900554657, 0.3486681580543518, 0.9422503113746643, 0.7555970549583435, -0.32874491810798645, 0.3388735353946686, 0.471930593252182, 0.8496779203414917, -0.5976051688194275, -0.169592022895813, -0.8786047101020813, -0.10913806408643723, -0.2713629901409149, -0.3468732535839081, -0.5598912239074707, -0.6516941785812378, -0.17089781165122986, -0.44780629873275757, 0.7081197500228882, 0.06481228768825531, 0.5268003940582275, 0.33374306559562683, -0.2897684872150421, -0.20793624222278595, -0.6200944185256958, 0.6682764291763306, -0.4637325406074524, 0.47044751048088074, 0.48615026473999023, 0.25235170125961304, -0.23490720987319946, -0.320181667804718, -0.36084750294685364, 0.04021431505680084, 0.1929640918970108, 0.29613250494003296, 0.5767197608947754, 0.07335372269153595, 0.000654921808745712, 0.6532487869262695, -0.43224504590034485, 0.0766039565205574, -0.4496682584285736, -0.0325026698410511, 0.6096926927566528, 0.34330514073371887, 0.007867983542382717, 0.18020260334014893, -0.2877495586872101, -0.08761918544769287, -0.9669604301452637, -0.10534895956516266, 0.581987738609314, 0.5567658543586731, 0.3346787989139557, 0.323984831571579, -0.2598574161529541, 0.9751344323158264, 0.06517872959375381, -0.13199278712272644, 0.1403835415840149, -0.27709832787513733, -0.08545736968517303, 0.1688154935836792, 0.30470553040504456, 0.170329287648201, 0.019717823714017868, -0.3118988573551178, -0.39589381217956543, 0.10716786235570908, 0.25341761112213135, -0.6084235906600952, -0.352977991104126, -0.20651006698608398, -0.41333362460136414, -0.2212478369474411, 0.18645037710666656, -0.8157764673233032, -0.13021835684776306, -0.7452360391616821, 0.3527665436267853, -0.07726164162158966, -0.14251501858234406, 0.2516178488731384, 0.20697660744190216, 0.2840217351913452, 0.34657829999923706, -1.088392734527588, 0.40763136744499207, 0.8028672337532043, 0.448000967502594, -0.5986740589141846, -0.4696561098098755, -0.6751642823219299, 0.3601810336112976, -0.5822327136993408, 0.7463874220848083, -0.7952353358268738, -0.43490129709243774, -0.20890754461288452, 0.05165444314479828, -0.15452241897583008, -0.9264863133430481, 0.4444364309310913, -0.5263049602508545, 0.1544308066368103, -0.47879818081855774, -0.5123715400695801, -0.03217737004160881, -0.05296856909990311, -0.6434510350227356, 1.1220372915267944, 0.39670559763908386, -0.18888665735721588, 0.5213169455528259, -0.011469111777842045, -0.37368202209472656, 0.0478859506547451, 0.0191867183893919, -0.4920012950897217, 0.18197815120220184, 0.09828495979309082, 0.20235009491443634, -0.2945309579372406, 0.12458469718694687, -0.31832337379455566, -0.7475970983505249, -0.04869833216071129, -0.428031861782074, 0.4102238416671753, 0.21322107315063477, 0.03283634036779404, -0.06861240416765213, -1.0698299407958984, 0.11515319347381592, -0.05727284774184227, -0.5600613951683044, -0.2410246729850769, 0.06343336403369904, -0.20562340319156647, -0.0852818414568901, 0.3348512053489685, -0.41177037358283997, 0.39336660504341125, -0.22831133008003235, 0.11361910402774811, 0.9738105535507202, -0.14144885540008545, 0.4866611659526825, -0.46658360958099365, 0.4867708683013916, -0.22634153068065643, 0.2645675241947174, 0.012468084692955017, -0.17571938037872314, -1.0355473756790161, -0.14607182145118713, 0.23605389893054962, 0.48105382919311523, -0.7093267440795898, 0.14613372087478638, 0.06429488211870193, -0.28787869215011597, -1.027080774307251, 0.5814837217330933, 0.2390049397945404, 0.7690958976745605, 0.508215069770813, -0.38983389735221863, -0.6439369916915894, -0.7015813589096069, -0.2559932470321655, 0.2535678744316101, 0.12661516666412354, 0.24147291481494904, -0.06575711071491241, 0.014248090796172619, 0.8053436875343323, -0.466524600982666, -0.39329469203948975, -0.1910420060157776, -0.3036843538284302, 0.26505687832832336, 0.6172251105308533, 0.3740112781524658, -0.38978660106658936, -0.7781634330749512, -0.31358158588409424, -0.4016784429550171, -0.16812516748905182, 0.006550223100930452, -0.5164235234260559, 0.14229482412338257, 0.2519245445728302, -0.016982832923531532, 0.04599135369062424, 0.5705456137657166, -0.23400621116161346, 0.3337469696998596, -0.13255277276039124, 0.23079244792461395, -0.759413480758667, -0.3112781345844269, -0.25556960701942444, -0.27077677845954895, -0.4807784855365753, 0.1088763102889061, 0.12277112156152725, 0.1991731822490692, -0.23898252844810486, 0.2910757064819336, -0.5713552236557007, -0.054214224219322205, -0.5495643019676208, -0.005803190637379885, -0.06866919994354248, 0.2587891221046448, -0.03458397090435028, 0.9715095162391663, 0.5117113590240479, -0.4899466633796692, 0.33264556527137756, 0.29616597294807434, -0.4633624851703644, 0.5275422930717468, -0.38821059465408325, 0.3973434269428253, 0.07705990225076675, -0.07756355404853821, -0.7559430599212646, -0.11659236252307892, 0.22988270223140717, -0.007200558204203844, 0.38089072704315186, -0.009897281415760517, -0.46146541833877563, -0.1731702834367752, -0.24257703125476837, 0.2729742228984833, 0.45174720883369446, -0.9229174256324768, 0.4884750247001648, 0.13240255415439606, 0.05438213050365448, -0.48602908849716187, -0.46578192710876465, -0.028346698731184006, 0.002542556030675769, -0.3376772999763489, 0.3750109076499939, -0.14139677584171295, 0.10114429891109467, -0.028823180124163628, -0.2869475185871124, 0.129408061504364, 0.036162324249744415, -0.13257060945034027, 0.5645977854728699, -0.04263433441519737, -0.16604763269424438, 0.32936903834342957, -0.1555502712726593, -0.11975903809070587, -0.021886248141527176, 0.5549115538597107, 0.12879014015197754, -0.3953988552093506, -0.14664074778556824, 0.1991385519504547, 0.09531287848949432, -0.0971624031662941, 0.7444018125534058, 0.5218956470489502, 0.13847315311431885, -0.7914581298828125, -0.8155947923660278, -0.5464218854904175, -0.5806213021278381, 0.1215699315071106, -0.3017273247241974, -0.7685328722000122, 0.36265620589256287, 0.059749990701675415, 0.20016446709632874, -0.1675519347190857, 0.26369842886924744, -0.09927233308553696, 1.3162245750427246, 0.444308340549469, -0.06193220242857933, 0.6792286038398743, -0.1149388998746872, -0.04470853507518768, -1.022848129272461, -0.2113552689552307, -0.45129069685935974, -0.40465420484542847, -0.5573912262916565, -0.02280096337199211, 0.1582440733909607, -0.1220615953207016, -0.14358505606651306, 0.14647553861141205, -0.8969717025756836, 0.7678561806678772, 0.6365968585014343, 0.3585743010044098, 0.41931310296058655, 0.03609781339764595, 0.19959884881973267, -0.021967358887195587, -0.3683837056159973, -0.5341131687164307, 1.212360143661499, -0.02994968369603157, 0.8923562169075012, -0.16011960804462433, 0.8976958990097046, -0.0633259266614914, 0.3569967746734619, -0.422859787940979, 0.8348838090896606, -0.471537321805954, -0.4783160984516144, -0.1282757669687271, -0.5215429663658142, -0.8917989730834961, 0.44353383779525757, -0.1284898966550827, -0.2995811700820923, -0.1366526186466217, 0.15505269169807434, -0.016854383051395416, 0.20074573159217834, -0.5982198715209961, 0.5162298083305359, 0.06881676614284515, -0.5399208068847656, -0.3931131064891815, -0.28643420338630676, 0.2732982933521271, -0.1008390262722969, -0.1478060483932495, -0.25079548358917236, 0.013310044072568417, 0.6486861705780029, -0.2615344226360321, 0.6215559840202332, -0.2793671190738678, -0.2783793807029724, 0.31814080476760864, 0.24846987426280975, 0.4754168391227722, 0.039670076221227646, -0.1665395349264145, -0.2310725301504135, -0.06802067905664444, -0.5119985342025757, -0.6269252300262451, 0.8667405247688293, -0.7524433135986328, -0.9821344614028931, -0.03003610670566559, -0.6188961863517761, -0.4635471701622009, 0.026448234915733337, -0.005319739691913128, 0.18136043846607208, 0.029177192598581314, 0.15855656564235687, 0.7907618284225464, 0.27199289202690125, 0.29679933190345764, 0.9000676870346069, -0.14355787634849548, -0.5791727304458618, 1.493480920791626, 0.3550252318382263, 0.3287839889526367, 0.014878157526254654, -0.04556577280163765, -0.041345395147800446, -0.7548279166221619, -0.24255160987377167, 0.28899139165878296, -0.6106141209602356, -0.1230711042881012, -0.04090939462184906, -0.23224498331546783, -0.11225282400846481, -0.27889853715896606, -0.5260834693908691, -0.3757381737232208, -0.599626362323761, -0.03130512684583664, -0.04066695272922516, 0.5975944399833679, 0.17595542967319489, 0.21493388712406158, -0.6631818413734436, 0.2470744252204895, 0.39944639801979065, 0.546878457069397, -0.010491038672626019, -0.5670828819274902, -0.30090633034706116, -0.04996206611394882, -0.46062877774238586, -0.6655876040458679, 0.26530691981315613, 0.3450007736682892, 0.5949109196662903, 0.34680694341659546, -0.04865952208638191, 0.5568636059761047, -0.4014037549495697, 0.4984428584575653, -0.18115518987178802, -0.8155994415283203, 0.7482679486274719, -0.20570656657218933, 0.17105768620967865, 0.952389121055603, -0.0790565013885498, -0.2669929265975952, -0.61669921875, -0.26453283429145813, -0.7145748138427734, 0.8387510776519775, -0.3095138967037201, 0.23977340757846832, 0.12747082114219666, 0.643307626247406, 0.6188966631889343, 0.2119518369436264, -0.4418025016784668, -0.3005315959453583, -0.24935604631900787, -0.4489002227783203, -0.06877691298723221, 0.024930885061621666, -0.24748654663562775, -0.5054224729537964, 0.8345171213150024, -0.3338054418563843, -0.0825231596827507, -0.2332504689693451, 0.00375870568677783, -0.30610495805740356, 0.0305414367467165, 0.20338472723960876, 0.6040881276130676, -0.12033979594707489, 0.10519217699766159, 0.4369487464427948, -0.7181252837181091, 0.34544849395751953, -0.1369243711233139, -0.48072218894958496, -0.20724068582057953, 0.15101556479930878, 0.5759725570678711, 0.16490264236927032, -0.23548947274684906, 0.07101720571517944, 0.05435006320476532, -0.04229523241519928, -0.04907204210758209, 0.9348329305648804, -0.26064208149909973, 0.13675066828727722, 0.48766282200813293, 0.04792550951242447, 0.22329023480415344, -0.3864707052707672, 0.13856445252895355, 0.5427525639533997, -0.16747251152992249, -0.3500952124595642, 0.5350741744041443, 0.23283442854881287, -0.1948511302471161, 0.7131107449531555, -0.07989796996116638, -0.00792315136641264, 0.5314468145370483, 0.735319197177887, 0.6456657648086548, -0.4852418601512909, 0.31377869844436646, 0.39843693375587463, -0.019170260056853294, -0.38132786750793457, 0.5449491143226624, -0.15804935991764069, -0.794895589351654, -0.3547685146331787, -0.4889043867588043, -0.46151989698410034, 0.042240679264068604, -1.1055265665054321, 0.3990602493286133, -0.6257644295692444, -0.03324995934963226, -0.4990769922733307, 0.14612475037574768, -0.4741748571395874, 0.13906148076057434, -0.05705155059695244, 0.731302797794342, -0.7332156300544739, 1.0283873081207275, 0.4263206124305725, -0.1244734600186348, -0.7785285711288452, -0.09140325337648392, -0.20236195623874664, -0.8949624300003052, 0.3355778753757477, -0.0009947929065674543, -0.12044163793325424, 0.17129212617874146, -0.6357007622718811, -0.8765829801559448, 1.0970425605773926, 0.6442890167236328, -0.846340000629425, 0.007818115875124931, 0.3347513675689697, 0.4046842157840729, -0.2798094153404236, 0.10929596424102783, 0.9134723544120789, 0.28567805886268616, 0.23402239382266998, -0.5925110578536987, 0.02486276626586914, 0.022634977474808693, 0.02327287755906582, 0.3084624707698822, -1.1710909605026245, 0.5235980749130249, 0.10818580538034439, -0.065081886947155, -0.02838241308927536, 0.7995378971099854, 0.25933223962783813, 0.2154223471879959, 0.3990199863910675, 0.60471510887146, 0.7504098415374756, -0.31947222352027893, 0.3819301426410675, -0.5093996524810791, 0.2848837375640869, 1.1513055562973022, -0.4364791512489319, 0.7646174430847168, 0.4509851038455963, -0.16140013933181763, 0.33323583006858826, 0.6840260624885559, -0.3591071367263794, 0.740980327129364, -0.1385638564825058, -0.36280614137649536, -0.5503789782524109, -0.06677252799272537, -0.45964276790618896, 0.5835353136062622, 0.21330814063549042, -0.24483394622802734, -0.06371839344501495, 0.10838616639375687, -0.30687499046325684, 0.13732853531837463, -0.45667803287506104, 0.7077555060386658, 0.0039706663228571415, -0.8728514909744263, 0.7893428802490234, -0.28014758229255676, 0.566001296043396, -0.2967313230037689, -0.08969895541667938, -0.3733803629875183, 0.2630557119846344, -0.41805577278137207, -0.7243323922157288, 0.13523660600185394, -0.36826765537261963, -0.12020335346460342, -0.42754924297332764, 0.5683990120887756, -0.8033784031867981, -0.29687124490737915, 0.1882353574037552, 0.3137126564979553, -0.09375715255737305, 0.4729991555213928, -0.5331544280052185, 0.24385546147823334, 0.07670462131500244, -0.3963005542755127, 0.5558845400810242, 0.040494613349437714, 0.35191991925239563, 0.6851367950439453, 0.5650109052658081, 0.4871063232421875, 0.0017294473946094513, 0.3949478268623352, 0.9934716820716858, -0.43300876021385193, -0.27126097679138184, -0.6234204769134521, 0.1913882941007614, 0.1139611303806305, -0.2905360162258148, 0.8286346793174744, 0.7762206196784973, 1.0591474771499634, 0.1992001086473465, 0.5337947607040405, 0.5214928388595581, 0.8112165927886963, -0.7023375034332275, 0.4942360818386078, -0.3246880769729614, 0.43253231048583984, -0.14066609740257263, -1.2692310810089111, 0.01762622408568859, 0.639767587184906, -0.25066426396369934, 0.13958854973316193, 0.3628208041191101, 0.9257497191429138, -0.18321986496448517, 0.31472349166870117, 0.14535552263259888, -0.11851570755243301, 0.26835939288139343, 0.5169035792350769, 0.8874514698982239, -0.28736644983291626, 0.40831947326660156, -0.21313998103141785, -0.24532248079776764, -0.12829966843128204, -0.3208884000778198, -0.8451257944107056, -0.6070084571838379, -0.40185073018074036, -0.27633392810821533, 0.21081170439720154, 0.8645101189613342, 0.6785284280776978, -0.7791869044303894, -0.27471956610679626, -0.15757785737514496, 0.15864866971969604, -0.3350050151348114, -0.26873859763145447, 0.2325301468372345, -0.648859977722168, -0.9110478162765503, 0.6396798491477966, -0.000690914923325181, 0.1425580233335495, -0.46077707409858704, -0.17358916997909546, 0.3560583293437958, 0.24541768431663513, 0.26991331577301025, 0.036849379539489746, -0.437473326921463, -0.27295857667922974, 0.0020367607939988375, -0.22059060633182526, 0.17375871539115906, 0.7993284463882446, -0.7536641359329224, 0.44712650775909424, 0.30576851963996887, 0.5177485346794128, 0.6336669921875, 0.04259954392910004, 0.35757994651794434, -0.530659019947052, 0.05618879944086075, 0.2744748890399933, 0.1572476327419281, 0.24473024904727936, -0.31173646450042725, 0.5439368486404419, 0.07530170679092407, -0.7403619885444641, -1.051117181777954, 0.022235125303268433, -0.6855493783950806, -0.22182300686836243, 0.9784507751464844, 0.09899977594614029, -0.13656115531921387, 0.1025264635682106, -0.3433276116847992, 0.23088893294334412, -0.39761245250701904, 1.0955452919006348, 0.6967607736587524, -0.21764153242111206, -0.25748690962791443, -0.5788889527320862, 0.4932548701763153, 0.6581698656082153, -0.6583564877510071, 0.07593123614788055, 0.41063305735588074, 0.3897134065628052, -0.3855608403682709, 0.32299208641052246, 0.052647627890110016, 0.27558523416519165, -0.035836927592754364, -0.19086812436580658, -0.33591705560684204, -0.6080413460731506, -0.011909028515219688, 0.2711094617843628, 0.16834014654159546, -0.15674221515655518 ]
http://arxiv.org/abs/2402.10109v2
http://arxiv.org/pdf/2402.10109v2
Towards Reducing Diagnostic Errors with Interpretable Risk Prediction
2024-02-15T17:05:48
2024-03-19T16:43:09
Denis Jered McInerney, William Dickinson, Lucy C. Flynn, Andrea C. Young, Geoffrey S. Young, Jan-Willem van de Meent, Byron C. Wallace
cs.AI
cs.AI, cs.CL, cs.LG
Many diagnostic errors occur because clinicians cannot easily access relevant information in patient Electronic Health Records (EHRs). In this work we propose a method to use LLMs to identify pieces of evidence in patient EHR data that indicate increased or decreased risk of specific diagnoses; our ultimate aim is to increase access to evidence and reduce diagnostic errors. In particular, we propose a Neural Additive Model to make predictions backed by evidence with individualized risk estimates at time-points where clinicians are still uncertain, aiming to specifically mitigate delays in diagnosis and errors stemming from an incomplete differential. To train such a model, it is necessary to infer temporally fine-grained retrospective labels of eventual "true" diagnoses. We do so with LLMs, to ensure that the input text is from before a confident diagnosis can be made. We use an LLM to retrieve an initial pool of evidence, but then refine this set of evidence according to correlations learned by the model. We conduct an in-depth evaluation of the usefulness of our approach by simulating how it might be used by a clinician to decide between a pre-defined list of differential diagnoses.
[ 0.07865605503320694, -0.4531290829181671, 0.9262568950653076, -0.035789355635643005, -0.23166349530220032, -0.20963919162750244, 0.219877228140831, -0.8219365477561951, 0.2677117586135864, 0.3508087694644928, -0.42952612042427063, -0.6000581383705139, -0.7952659726142883, -0.10859113186597824, -0.11901229619979858, 0.8568530678749084, 0.035561490803956985, 0.5539343357086182, -0.3983330726623535, 0.16056250035762787, -0.39439040422439575, -0.429502010345459, -1.0005850791931152, -0.6963371634483337, 0.7316927313804626, 0.24039581418037415, 0.6250908970832825, 0.9005117416381836, 0.7809426784515381, 0.21647068858146667, -0.3646696209907532, 0.05325760319828987, 0.0682038739323616, 0.2089190036058426, 0.2533645033836365, -0.7677128911018372, -0.9230414628982544, -0.5426212549209595, 0.37275218963623047, 0.9025923609733582, -0.30822378396987915, 0.11068109422922134, -0.09022989124059677, 0.40404653549194336, -0.4704383611679077, 0.0796794667840004, -0.31945735216140747, 0.2985254228115082, -0.10004443675279617, -0.4720526337623596, -0.34974995255470276, -0.34443286061286926, 0.31156137585639954, -0.5171601176261902, 0.23872636258602142, -0.332826167345047, 0.5689185261726379, 0.39061662554740906, -0.35990840196609497, -0.10409795492887497, -0.8250030279159546, 0.3465791940689087, -0.6958277821540833, 0.26776599884033203, 0.4107578694820404, 0.3352460563182831, -0.08707738667726517, -0.7499035596847534, -0.20546069741249084, -0.035905636847019196, -0.31171339750289917, 0.2547973096370697, -0.20158271491527557, 0.29621422290802, 0.2582012712955475, 0.01844090037047863, -0.21560359001159668, 0.5385386943817139, -0.27983346581459045, -0.4188046157360077, 0.5844321846961975, 0.6989710330963135, 0.3802117109298706, 0.006956696510314941, -0.49068790674209595, 0.25460800528526306, -0.9514436721801758, 0.07554909586906433, 0.01113226916640997, 0.04114871099591255, 0.021963076665997505, 0.5440939664840698, 0.06937048584222794, 0.5410937070846558, 0.2041766196489334, -0.3050011396408081, 0.2867916524410248, 0.04617680236697197, -0.16053327918052673, 0.586762547492981, 0.38282155990600586, 0.4866269528865814, -0.13871586322784424, 0.024468740448355675, -0.2663361728191376, 0.1838977187871933, 0.2133762687444687, -0.602519690990448, -0.2861878275871277, 0.5756158828735352, -0.5873878598213196, -0.5210925936698914, -0.32765159010887146, -0.77720046043396, -0.7380602955818176, -0.2667509913444519, 0.5134865045547485, -0.5031875371932983, -0.026341287419199944, 0.3627620041370392, 0.11485398560762405, -0.3813678026199341, 0.563607394695282, -0.5501754283905029, 0.5258172154426575, 0.3983396589756012, 0.6516991257667542, -0.015223455615341663, 0.013504370115697384, -0.542759358882904, 0.28409162163734436, -0.4894699156284332, 0.7675159573554993, -0.11219556629657745, -0.4704023599624634, -0.03835923597216606, -0.06075400859117508, 0.04491530358791351, -0.4676136374473572, 0.581694483757019, -0.5082248449325562, -0.12604214251041412, 0.014925123192369938, -0.6690149903297424, -0.3806608021259308, 0.2340477555990219, -0.7966670393943787, 0.579095721244812, 0.1146196499466896, -0.6707881093025208, 0.556994616985321, -0.48541465401649475, -0.5507189035415649, -0.043321654200553894, -0.0687909871339798, -0.7065349221229553, 0.17262321710586548, 0.28527364134788513, 0.5112941265106201, -0.268932580947876, 0.5048205256462097, -0.3539324402809143, -0.09458943456411362, 0.24737319350242615, -0.3991558849811554, 0.4323867857456207, 0.02143269218504429, -0.19041135907173157, 0.20918209850788116, -0.952401340007782, -0.1636262685060501, 0.08241332322359085, -0.4014810621738434, -0.5691125988960266, 0.3165382742881775, -0.391445517539978, 0.14160461723804474, 0.14534811675548553, -0.36366117000579834, -0.12287189811468124, -0.46452027559280396, -0.08781362324953079, 0.8985533118247986, 0.2662975490093231, 0.12720945477485657, -0.8469839692115784, 0.58073490858078, 0.6897069215774536, 0.3388392925262451, -0.18785911798477173, -0.5772903561592102, -0.9079010486602783, -0.065748430788517, 0.3212681710720062, 0.7542768120765686, -0.33951041102409363, 0.5493501424789429, -0.4239886701107025, -0.24266040325164795, -0.5045539140701294, -0.18576057255268097, 0.240386500954628, 1.021054983139038, 0.5966189503669739, -0.30436035990715027, -0.6588442325592041, -0.7470951080322266, 0.1601838767528534, -0.33095234632492065, -0.28143107891082764, 0.2586076557636261, -0.035036973655223846, -0.5215985178947449, 0.4706283211708069, -0.5855895280838013, -0.384252667427063, -0.0615251287817955, -0.08774914592504501, 0.4837430417537689, 0.41261622309684753, 0.10038221627473831, -0.307023286819458, -0.3121739625930786, 0.19656990468502045, -1.0418906211853027, -0.019354481250047684, -0.26321929693222046, 0.10265703499317169, -0.07329657673835754, 0.4230577051639557, -0.5947577953338623, 0.7733100652694702, 0.27100539207458496, -0.39325448870658875, 0.06733280420303345, -0.7324053049087524, -0.022051049396395683, -0.7981292605400085, -0.3221951425075531, 0.18926258385181427, -0.2624744176864624, -0.7327825427055359, -0.5334370732307434, 0.08239287883043289, 0.2289985716342926, -0.2450757771730423, 0.5943341255187988, -0.35098475217819214, 0.1440984457731247, 0.005971145816147327, -0.2696051299571991, 0.12008108198642731, -0.10795172303915024, 0.0112378541380167, 0.28848031163215637, 0.6890869140625, -0.9132094383239746, -0.10429832339286804, 0.36346566677093506, -0.35079067945480347, 0.372907817363739, -0.7338012456893921, -0.09014507383108139, -0.34971362352371216, -0.08451239764690399, -0.7447423338890076, -0.13315659761428833, 0.1882428526878357, -0.4089616537094116, 0.6979668736457825, -0.052592579275369644, -0.08024250715970993, -0.3955405354499817, -0.08548290282487869, 0.31071677803993225, 0.525307834148407, -0.5634499788284302, 0.9019206166267395, 0.35984906554222107, -0.4510524570941925, -0.6323248744010925, -0.9334234595298767, -0.03548252582550049, -0.3403000831604004, -0.7395111918449402, 0.6054882407188416, -0.03554275631904602, -0.4322652816772461, 0.13799141347408295, 0.06540651619434357, -0.13472753763198853, 0.3985046148300171, 0.48324906826019287, 0.5612336993217468, -0.35747870802879333, 0.576798677444458, 0.33157485723495483, -0.36224889755249023, 0.31587347388267517, -0.16994406282901764, 0.1032782718539238, 0.2806897461414337, -0.672054648399353, -0.5475778579711914, 0.2757517099380493, 0.3544556498527527, 0.3589193820953369, 0.5153858065605164, 0.31855863332748413, -0.8166429996490479, -0.12813320755958557, -0.5809040069580078, -0.33207517862319946, -0.40549567341804504, 0.284199595451355, 0.04517318308353424, -0.43243706226348877, 0.8317221999168396, -0.03939228877425194, -0.16771550476551056, 0.490541934967041, 0.5529638528823853, -0.3053295910358429, 0.9533670544624329, 0.4618473947048187, 0.034164972603321075, 0.022393284365534782, -0.030124511569738388, 0.05104927718639374, -0.8264226317405701, -0.48732972145080566, -0.1352863758802414, -0.17251433432102203, -0.46314379572868347, -0.47607940435409546, 0.717059850692749, -0.07058971375226974, -0.28029799461364746, -0.23153100907802582, -0.5795136094093323, 0.04594346135854721, 0.4451744556427002, 0.9892273545265198, 0.41356056928634644, -0.2530543804168701, -0.13587069511413574, -0.10270042717456818, -1.054900050163269, -0.3574465811252594, 1.6387749910354614, 0.6913765668869019, 0.7322533130645752, 0.12096735090017319, 0.7014922499656677, 0.36759090423583984, 0.6795814037322998, -0.8954454660415649, 0.090622179210186, -0.09974049776792526, -0.5541084408760071, -0.12987975776195526, -0.28455305099487305, -0.9835628867149353, -0.10863872617483139, -0.3444918394088745, -0.5550599694252014, 0.4645152688026428, 0.4991919994354248, -0.878669023513794, 0.3473663330078125, -0.4944155812263489, 0.4644277095794678, -0.6076582074165344, -0.20102450251579285, -0.11402817070484161, -0.6706271767616272, 0.4100317358970642, -0.34714755415916443, 0.2774120271205902, -0.0647745430469513, -0.3034210801124573, 0.6323332786560059, -0.30479466915130615, 1.0090365409851074, -0.022181842476129532, 0.12351176887750626, 0.15753114223480225, 0.16035830974578857, 0.7128758430480957, 0.28809285163879395, -0.20892678201198578, 0.3007700443267822, -0.13223427534103394, -0.03434257581830025, -0.28676724433898926, 0.5287331342697144, -0.6965604424476624, -0.5639883279800415, -0.6304941177368164, -0.3940097689628601, -0.2582276165485382, 0.1344352811574936, 0.19431869685649872, 0.5703040361404419, -0.10235155373811722, -0.2063189446926117, 0.8129545450210571, -0.2960701584815979, 0.3944343328475952, 0.45902130007743835, 0.31100738048553467, -0.310433954000473, 0.31387364864349365, 0.10079046338796616, 0.06092698872089386, 0.39824989438056946, 0.5401950478553772, -0.3163609504699707, -1.1959985494613647, 0.15527160465717316, 0.004371347837150097, -1.1670377254486084, -0.4959303140640259, -0.6637226343154907, -0.2673451006412506, -0.07959732413291931, -0.018383920192718506, -0.10602321475744247, -0.17551791667938232, -0.6730179786682129, -0.3878984749317169, 0.5626804828643799, 0.7015416622161865, -0.2546311914920807, 0.4586174488067627, -0.9012020230293274, 0.23671430349349976, 0.1759641468524933, 0.4086986184120178, -0.015607723966240883, -0.5563251972198486, -0.19363509118556976, -0.05882037803530693, -0.11764521896839142, -0.6407291293144226, 0.5864675045013428, 0.18322397768497467, 0.8615935444831848, 0.554405927658081, 0.10701892524957657, 0.7623234391212463, -0.6592857241630554, 0.4304257929325104, 0.6048751473426819, -0.7186511158943176, 0.6500165462493896, -0.27004772424697876, -0.3006901443004608, 0.3689827620983124, 0.5521461963653564, -0.2956934869289398, 0.20302607119083405, -0.8756232857704163, -0.8414725065231323, 0.3021640479564667, -0.27051764726638794, -0.3067115247249603, -0.12541723251342773, 0.5250339508056641, 0.003799695987254381, -0.16372962296009064, -0.5626505613327026, -0.5010468363761902, 0.12630216777324677, -0.31766945123672485, -0.2543095648288727, -0.486605703830719, -0.5044986009597778, -0.4774279296398163, 0.49379318952560425, -0.19928033649921417, 0.48724955320358276, 0.5930661559104919, 0.012982139363884926, -0.5046444535255432, 0.03651972487568855, 0.6180580258369446, 0.7688408493995667, -0.3488512635231018, 0.3168797791004181, 0.44745808839797974, -0.5084444284439087, 0.20064964890480042, 0.1619858741760254, -0.04361983761191368, 0.22347237169742584, 0.37674659490585327, 0.7618541717529297, 0.17606550455093384, -0.5266743898391724, 0.3447059392929077, -0.08354250341653824, -0.1461857706308365, -0.6667369604110718, -0.050940413028001785, 0.1664750576019287, 0.23394210636615753, 0.012462954968214035, 0.4693974554538727, 0.13965767621994019, -0.06956671178340912, 0.6371020078659058, 0.20593903958797455, -0.7208760976791382, -0.3447034955024719, 0.7014684081077576, 0.19092264771461487, -0.3617831766605377, 0.4605439305305481, 0.35339078307151794, -0.2842053472995758, 0.8957555890083313, 0.4795621633529663, 0.7410569190979004, -0.2517983615398407, 0.048254869878292084, 0.3642464578151703, 0.3436242938041687, -0.23361560702323914, 0.20957592129707336, 0.6726510524749756, -0.875787615776062, -0.5082581639289856, -0.2924709618091583, -0.4037149250507355, 0.3715815544128418, -0.7013723254203796, 0.5252419710159302, -0.6658711433410645, -0.4542631506919861, 0.06143870949745178, -0.45671623945236206, -0.7171193957328796, 0.49247199296951294, 0.21642127633094788, 0.6926172971725464, -0.6697964072227478, 0.6467622518539429, 0.364128977060318, -0.14903061091899872, -0.8339388370513916, -0.1343993991613388, 0.22202850878238678, -0.9021539092063904, 0.6876256465911865, -0.11779015511274338, 0.3304121494293213, -0.2657760977745056, 0.026972627267241478, -1.0040661096572876, 1.2126100063323975, 0.20633608102798462, -0.6033130288124084, -0.08193472027778625, -0.10971923917531967, 0.6086656451225281, -0.3531172275543213, 0.3752717971801758, 0.40345415472984314, 0.42685627937316895, 0.06957202404737473, -0.6223706007003784, 0.34250906109809875, -0.03746827319264412, -0.23779109120368958, 0.36118051409721375, 0.12539492547512054, 0.9576042890548706, -0.5503866672515869, -0.01617143489420414, -0.11289134621620178, 0.16148577630519867, 0.12474454939365387, 0.6256609559059143, 0.2771761119365692, 0.5604149103164673, 0.9191552996635437, -0.09274153411388397, 1.3683431148529053, -0.2427096664905548, 0.05558232218027115, 1.2334293127059937, -0.19850392639636993, 0.688156008720398, 0.3546298146247864, -0.43750661611557007, 0.3416202962398529, 0.9278908371925354, 0.04792459309101105, 0.5088345408439636, 0.1817810982465744, -0.612339437007904, -0.41021963953971863, -0.09411977976560593, -0.4581342935562134, 0.13766515254974365, 0.7846203446388245, -0.6941735148429871, -0.09842364490032196, -0.30790090560913086, -0.2113453894853592, -0.12067413330078125, -0.4514482915401459, 0.7972084283828735, 0.20856980979442596, -0.43043699860572815, 0.4712132215499878, -0.30447888374328613, 0.6149179935455322, -0.6251567006111145, -0.050768282264471054, -0.04875410348176956, 0.5394399762153625, -0.4010831117630005, -0.5552484393119812, 0.3833347260951996, -0.4404793381690979, -0.15161317586898804, 0.02564343251287937, 0.8503826856613159, -0.18187321722507477, -0.751880407333374, 0.48193100094795227, 0.5057123303413391, -0.1956706941127777, 0.23967577517032623, -0.4953463673591614, -0.42183828353881836, -0.20060163736343384, -0.14181672036647797, 0.4387926459312439, 0.46369805932044983, -0.046600308269262314, 0.9263896942138672, 0.6256794929504395, 0.6428103446960449, -0.16663429141044617, -0.01635458506643772, 0.9086194038391113, -0.4116487503051758, -0.3061772286891937, -0.8222861289978027, 0.7065764665603638, 0.13473199307918549, -0.2789190709590912, 0.13470244407653809, 0.018391743302345276, 0.3884255588054657, -0.07064608484506607, 0.7939031720161438, 0.45844316482543945, 0.6808148622512817, -0.7106712460517883, 0.675087571144104, -0.577973484992981, 0.6945794820785522, 0.015057822689414024, -0.17073534429073334, -0.7229913473129272, 0.41608116030693054, -0.1646052449941635, -0.17321176826953888, 0.6712314486503601, 0.49139052629470825, 0.14381428062915802, -0.32237109541893005, 0.4613853991031647, 0.21995896100997925, 0.25747203826904297, 0.7353314757347107, 0.742168128490448, -0.5006306767463684, 0.22604647278785706, -0.6109051704406738, -0.24248947203159332, -0.24691812694072723, -1.2242070436477661, -0.82841956615448, 0.018670588731765747, -0.5118339657783508, -0.6366407871246338, 0.11308960616588593, 0.8456447124481201, 0.6217678785324097, -0.784683883190155, 0.11891449987888336, -0.1755676418542862, 0.32450664043426514, -0.35420459508895874, -0.02877320721745491, 0.503764808177948, -0.03525374084711075, -0.11839328706264496, 0.44115379452705383, 0.11434906721115112, 0.4883386492729187, 0.23328018188476562, -0.023622730746865273, -0.04851176589727402, -0.15610648691654205, 0.3880717158317566, -0.014684016816318035, -0.5621423721313477, -0.3573915362358093, 0.010324222967028618, 0.07706675678491592, 0.4155240058898926, 0.4745638072490692, -0.7424544095993042, 0.5684142112731934, 0.38744837045669556, 0.6140803694725037, 0.44018301367759705, -0.16319364309310913, 0.6338908076286316, -0.2561929225921631, 0.07043852657079697, 0.7372676730155945, 0.574845552444458, 0.11882656067609787, -1.1821210384368896, 0.3991555869579315, 0.1267222911119461, -0.40637829899787903, -0.4963440001010895, -0.022153500467538834, -0.8821033835411072, -0.11121419072151184, 0.9491855502128601, -0.349198579788208, -0.08966904878616333, -0.46483272314071655, 0.3738184869289398, 0.166905477643013, -0.26441675424575806, 0.9710391759872437, 0.2279333621263504, -0.3955122232437134, -0.04471486806869507, -0.526946485042572, 0.6402509808540344, 0.35872983932495117, -0.9721980094909668, -0.32776349782943726, 0.41659197211265564, 0.6311445832252502, 0.21340660750865936, 0.5546523332595825, -0.17974378168582916, 0.6119600534439087, -0.07540193945169449, 0.09906476736068726, -0.1412436068058014, -0.31639134883880615, -0.6535283327102661, -0.022539889439940453, 0.2001517415046692, -0.2817777395248413 ]
http://arxiv.org/abs/2402.10107v1
http://arxiv.org/pdf/2402.10107v1
Quantized Embedding Vectors for Controllable Diffusion Language Models
2024-02-15T17:02:48
2024-02-15T17:02:48
Cheng Kang, Xinye Chen, Yong Hu, Daniel Novak
cs.CL
cs.CL, cs.AI
Improving the controllability, portability, and inference speed of diffusion language models (DLMs) is a key challenge in natural language generation. While recent research has shown significant success in complex text generation with language models, the memory and computational power are still very demanding and fall short of expectations, which naturally results in low portability and instability for the models. To mitigate these issues, numerous well-established methods were proposed for neural network quantization. To further enhance their portability of independent deployment as well as improve their stability evaluated by language perplexity, we propose a novel approach called the Quantized Embedding Controllable Diffusion Language Model (QE-CDLM). QE-CDLM builds upon the recent successful controllable DLMs by remodeling the task-specific embedding space via quantization. This leads to a gradient-based controller for the generation tasks, and more stable intermediate latent variables are obtained, which naturally brings in an accelerated convergence as well as better controllability. Additionally, the adaption fine-tuning method is employed to reduce tunable weights. Experimental results on five challenging fine-grained control tasks demonstrate that QE-CDLM compares favorably to existing methods in terms of quality and feasibility, achieving better perplexity and lightweight fine-tuning.
[ -0.29941606521606445, -0.8669215440750122, 0.24060724675655365, 0.460530161857605, -0.102897509932518, 0.13105230033397675, -0.31672748923301697, 0.31126150488853455, -0.10601683706045151, 0.2770955264568329, -0.0779883936047554, -0.6077679395675659, -0.6675823330879211, -0.1362432986497879, -0.32211679220199585, 0.828585684299469, -0.2592754065990448, -0.11154013872146606, -0.2178104668855667, -0.3648732900619507, -0.19291825592517853, -0.4310488998889923, -1.051161289215088, -0.21300482749938965, 0.5583339929580688, -0.11277413368225098, 0.9012579917907715, 0.5074172616004944, 0.12227929383516312, 0.303252249956131, -0.35037171840667725, 0.02021532878279686, -0.23591940104961395, 0.21488253772258759, -0.06846047192811966, -0.5217528939247131, -0.6386883854866028, -0.19258084893226624, 0.701092004776001, 0.624005913734436, -0.5376271605491638, -0.21815206110477448, 0.20631462335586548, 0.635364830493927, -0.8469051718711853, -0.20471684634685516, -0.4495343565940857, 0.237298846244812, 0.007767039816826582, -0.13280144333839417, -0.2357294112443924, -0.5067936182022095, 0.17827244102954865, -0.6504001617431641, 0.09527706354856491, -0.22108915448188782, 0.4909454882144928, 0.35755980014801025, -0.5604950785636902, -0.14703920483589172, -0.9012352824211121, 0.8823992013931274, -0.8959853053092957, 0.2835598587989807, 0.34826409816741943, 0.27339914441108704, -0.05745237320661545, -0.8038027286529541, -0.4428063929080963, -0.1818641573190689, 0.24609361588954926, -0.09250375628471375, -0.37130531668663025, 0.11509832739830017, 0.1190091148018837, 0.040167659521102905, -0.6066898107528687, 0.0808737501502037, 0.1572790890932083, -0.2508346438407898, 0.47644883394241333, 0.2888186275959015, 0.23619309067726135, 0.09955631196498871, -0.200017511844635, -0.04027145728468895, -0.696006178855896, 0.0733112096786499, 0.4002460539340973, 0.046194981783628464, -0.06352142244577408, 0.42799022793769836, -0.26537519693374634, 0.5924882888793945, 0.09875795990228653, 0.14993314445018768, 0.10354597866535187, -0.30638083815574646, -0.306477427482605, -0.17128247022628784, 0.7706034183502197, 0.10363940894603729, 0.1433834284543991, -0.1447400003671646, -0.4229185879230499, -0.09686030447483063, 0.2720249891281128, -0.936775267124176, -0.35912710428237915, 0.417304664850235, -0.4754737615585327, -0.3904728889465332, -0.4498942196369171, -0.29164057970046997, -0.09193963557481766, -0.12096675485372543, 0.5067120790481567, -0.6860503554344177, -0.34792351722717285, 0.16758008301258087, -0.005199919454753399, 0.04865143075585365, 0.4065656065940857, -0.8190304636955261, 0.16365978121757507, 0.4816965162754059, 0.8956379890441895, -0.35757288336753845, 0.0533340685069561, -0.5382190346717834, 0.31647080183029175, -0.3481476306915283, 0.33139166235923767, -0.4841683506965637, -0.3188186287879944, 0.1494620144367218, -0.20924046635627747, 0.03985226899385452, -0.6116029620170593, 0.23792052268981934, -0.6996151208877563, 0.009267163462936878, 0.15124525129795074, -0.5931367874145508, 0.000896783487405628, 0.32906824350357056, -0.46021920442581177, 0.6425038576126099, 0.13082091510295868, -0.729063093662262, 0.12022647261619568, -0.449080228805542, -0.37813621759414673, -0.09470115602016449, -0.12589485943317413, -0.6015127897262573, 0.158115416765213, -0.002662491286173463, 0.510897696018219, -0.17078569531440735, 0.5188585519790649, -0.11686837673187256, -0.1137465089559555, 0.24695271253585815, -0.6642550230026245, 0.7401891946792603, 0.265132337808609, -0.3422395884990692, 0.2803918719291687, -0.8547534346580505, 0.15204693377017975, -0.030541805550456047, -0.6587631702423096, -0.6087383031845093, 0.1895732432603836, -0.006373956333845854, 0.07350955158472061, 0.20242837071418762, -0.39577966928482056, 0.09421014040708542, -0.3950631618499756, 0.6327703595161438, 0.6270158290863037, -0.09794352203607559, 0.9240042567253113, -0.1418660432100296, 0.7862336039543152, 0.36645346879959106, 0.10675561428070068, 0.06616971641778946, -0.34662801027297974, -0.7547038793563843, -0.18823875486850739, 0.5551567673683167, 0.494963675737381, -1.1154297590255737, 0.43506819009780884, -0.06202833727002144, -0.27293267846107483, -0.464397132396698, -0.006786105688661337, 0.5080825686454773, 0.1556280553340912, 0.22192741930484772, -0.1364206075668335, 0.031176676973700523, -0.7848147749900818, -0.05096333846449852, 0.378894567489624, -0.21690824627876282, 0.1343296468257904, 0.29262712597846985, -0.21065188944339752, 0.9541983604431152, -0.38743847608566284, 0.07421234250068665, 0.12164777517318726, 0.2959950268268585, -0.15403154492378235, 1.025916576385498, 0.3450441062450409, -0.8597154021263123, -0.37599799036979675, 0.05328678339719772, -0.5607784986495972, 0.049280375242233276, 0.009397461079061031, -0.1799408346414566, 0.31342414021492004, 0.6174854040145874, -0.41212308406829834, 0.4948437213897705, 0.7108768820762634, -0.41094809770584106, 0.23438532650470734, -0.642605721950531, -0.2786816656589508, -1.011400580406189, -0.01456165686249733, -0.047847215086221695, -0.4184737503528595, -0.566404402256012, -0.056996963918209076, 0.3120626211166382, -0.059666115790605545, -0.5418807864189148, 0.43025246262550354, -0.248748779296875, 0.2734566628932953, -0.3345807194709778, 0.1744481325149536, 0.024707835167646408, 0.4860352575778961, -0.22766070067882538, 0.5687937140464783, 0.7013394832611084, -0.8901413083076477, 0.18023933470249176, 0.12144352495670319, -0.02176053635776043, 0.5932520031929016, -0.8405492901802063, -0.027653910219669342, -0.28834226727485657, 0.15118388831615448, -0.7522104382514954, 0.42505529522895813, 0.13508175313472748, -0.2068549245595932, 0.47559675574302673, -0.08838960528373718, -0.31572574377059937, 0.023559411987662315, -0.2284453809261322, 0.6867268085479736, 0.602916955947876, -0.19508790969848633, 0.6008177399635315, 0.12406960129737854, -0.08866483718156815, -0.22454363107681274, -0.6424771547317505, -0.19226224720478058, -0.2979643642902374, -0.4717493951320648, 0.4725002944469452, -0.3083547055721283, -0.12839943170547485, 0.08756806701421738, -0.008429775014519691, -0.03520195931196213, 0.2906681299209595, 0.09453229606151581, -0.28194570541381836, -0.2021361142396927, 0.2901563346385956, 0.7015320062637329, -0.3810741901397705, -0.10631104558706284, -0.5968974232673645, 0.42315587401390076, 0.14418081939220428, -0.01626112312078476, -0.30774199962615967, 0.34145665168762207, 0.23456475138664246, -0.4708635210990906, 0.8614336252212524, 0.7154304385185242, -0.31699469685554504, -0.5245617628097534, -0.05320427939295769, 0.06830941140651703, -0.512175440788269, 0.24862493574619293, -0.42103925347328186, -1.2377135753631592, 0.4032060205936432, -0.4022026062011719, -0.09837216883897781, 0.15649056434631348, 0.6077873110771179, -0.1028200089931488, 1.0171538591384888, 0.538167417049408, 0.2344890683889389, 0.48141753673553467, -0.4619363248348236, -0.025206906720995903, -0.9349233508110046, 0.029444076120853424, -0.4120301306247711, -0.5166969299316406, -0.6885346174240112, -0.6930229067802429, 0.3096865713596344, 0.4253162443637848, -0.4485355317592621, 0.13611766695976257, -0.42384734749794006, 0.09920794516801834, 0.44343215227127075, -0.004137350246310234, 0.18143330514431, -0.0947989672422409, -0.3596896231174469, 0.03430097550153732, -0.8767155408859253, -0.5109233856201172, 0.918587863445282, 0.3220500349998474, 0.7737380266189575, 0.3298301696777344, 0.6198964715003967, 0.3424277901649475, 0.09236828982830048, -0.46104955673217773, 0.442402720451355, -0.5370256900787354, -0.12236002832651138, -0.5091297030448914, -0.46506914496421814, -1.0464353561401367, 0.37973541021347046, -0.07458332180976868, -0.48447930812835693, 0.25459763407707214, 0.1726514846086502, -0.6105488538742065, 0.06440868973731995, -0.4895069897174835, 0.7611907124519348, 0.16831450164318085, -0.3627737760543823, -0.20229963958263397, -0.30875954031944275, 0.23026403784751892, -0.2001669853925705, 0.12607331573963165, -0.15531717240810394, -0.4257524013519287, 0.6246816515922546, -0.7419814467430115, 0.7463786005973816, -0.3579248785972595, -0.7222715616226196, 0.18427467346191406, 0.3459620475769043, 0.7243250608444214, 0.21871644258499146, -0.12866678833961487, -0.10170800238847733, -0.09651414304971695, -0.5600770711898804, -0.8212313652038574, 0.9933456778526306, -0.5265046954154968, -0.4933285415172577, 0.027866575866937637, -0.6234888434410095, -0.20814533531665802, 0.01119166612625122, 0.23021475970745087, 0.5556268692016602, -0.03749321028590202, 0.14863334596157074, 0.8811532855033875, -0.5963984727859497, 0.7601792812347412, 0.4238206744194031, -0.23802712559700012, -0.6416033506393433, 1.1751594543457031, 0.23710308969020844, 0.4983053207397461, 0.5209168791770935, 0.15476979315280914, 0.11763601750135422, -0.7588967680931091, -0.23802177608013153, -0.11340484768152237, -0.2950766980648041, -0.28574976325035095, -0.6290440559387207, -0.1988263875246048, -0.1503210961818695, -0.21528804302215576, -0.5309098958969116, -0.6511739492416382, -0.5461578965187073, 0.12448909878730774, 0.2802112400531769, 0.5562416911125183, 0.03254839405417442, 0.6774994134902954, -0.7612873315811157, 0.29372596740722656, 0.37836018204689026, 0.4349421560764313, 0.1469210684299469, -0.4730091392993927, -0.4304271936416626, 0.20087191462516785, -0.36504268646240234, -0.6426151990890503, 0.4978349208831787, 0.18194179236888885, 0.28750723600387573, 0.34442463517189026, -0.0323815681040287, 0.3523324131965637, -0.6076485514640808, 0.6383938193321228, 0.004634722601622343, -1.01638925075531, 0.5373899936676025, -0.36715269088745117, 0.3083556890487671, 0.003514761570841074, 0.38474541902542114, -0.12138322740793228, -0.5261319279670715, -0.5087019801139832, -0.8861287832260132, 0.45284321904182434, 0.4911089837551117, 0.40544772148132324, -0.039724163711071014, 0.3162399232387543, -0.065142422914505, 0.4068969786167145, -0.29877009987831116, -0.3818339705467224, -0.16643577814102173, -0.18490302562713623, 0.024875694885849953, -0.29445159435272217, -0.054504428058862686, -0.20939069986343384, 0.5183069705963135, -0.16274704039096832, 0.2430531531572342, 0.09985488653182983, 0.0697469636797905, -0.07236329466104507, 0.06648578494787216, 0.7925739884376526, 0.34535419940948486, 0.01774332858622074, 0.2576304078102112, 0.012064667418599129, -0.2904096245765686, 0.4250553548336029, 0.0214824415743351, -0.490357905626297, 0.02787204086780548, -0.04656717926263809, 0.9905219674110413, 0.17238035798072815, -0.4524860978126526, 0.5702637434005737, -0.23456761240959167, -0.2976500988006592, -0.13726763427257538, 0.1579001396894455, 0.2622247338294983, 0.5230898857116699, 0.17070706188678741, 0.11106845736503601, -0.048859719187021255, 0.10928545147180557, 0.08444809168577194, 0.6766812205314636, -0.19979459047317505, -0.3390445411205292, 0.9787040948867798, 0.3259868323802948, -0.3806282877922058, 0.3935846984386444, -0.47414785623550415, -0.16215664148330688, 0.6730583310127258, 0.6741929650306702, 1.0619193315505981, -0.34275010228157043, 0.4893747568130493, 0.19841787219047546, 0.14280596375465393, 0.014159616082906723, 0.343452125787735, -0.17428772151470184, -0.8949287533760071, -0.4507216513156891, -0.7579030990600586, 0.0036898881662636995, -0.2949052155017853, -0.5262727737426758, -0.24195899069309235, -0.6200483441352844, -0.4563997983932495, -0.37307339906692505, -0.32515886425971985, -0.43695592880249023, 0.25511619448661804, -0.023646386340260506, 0.8385342359542847, -0.5914903283119202, 1.212389349937439, 0.5087687969207764, -0.21614070236682892, -0.7187935709953308, 0.05565657094120979, -0.549094557762146, -0.35014742612838745, 0.7536989450454712, -0.4064110815525055, 0.21690674126148224, 0.5164084434509277, -0.4281884729862213, -0.8410497903823853, 1.387511134147644, 0.40721699595451355, -0.7394089102745056, -0.04785284772515297, -0.07740722596645355, 0.5306057333946228, -0.1520513892173767, 0.04583963006734848, 0.49447497725486755, 0.35873183608055115, -0.08455857634544373, -0.6471803784370422, 0.13367018103599548, 0.02580222114920616, 0.6807793378829956, 0.33733513951301575, -0.6473793387413025, 0.9219619631767273, 0.042657800018787384, -0.1424420177936554, 0.13282057642936707, 0.8256359100341797, 0.279826283454895, 0.13489101827144623, 0.3270476460456848, 0.7316480278968811, 0.7982699275016785, 0.005716502666473389, 0.9734991788864136, -0.27161169052124023, 0.36606186628341675, 0.9132620692253113, -0.16999810934066772, 0.8936913013458252, 0.5948817729949951, -0.37504616379737854, 0.42577409744262695, 0.07694925367832184, 0.2919170558452606, 0.6376560926437378, 0.6825141906738281, -0.5294191837310791, -0.1394626498222351, 0.01965215802192688, -0.14538080990314484, 0.0930253267288208, 0.35828763246536255, -0.29668524861335754, -0.17667989432811737, 0.5953413844108582, -0.06529365479946136, 0.09701507538557053, -0.35617178678512573, 0.5935165882110596, 0.1540887951850891, -0.2171703428030014, 0.9584271311759949, 0.19960817694664001, 0.9759431481361389, -0.5613940954208374, 0.07908923178911209, -0.45421725511550903, 0.045445144176483154, -0.08975955098867416, -0.42130976915359497, 0.31217628717422485, -0.09341837465763092, -0.19293376803398132, -0.40753307938575745, 0.4255319833755493, -0.684922993183136, -0.29686006903648376, 0.22845587134361267, 0.48126840591430664, -0.16479577124118805, -0.1165618747472763, -0.5502856373786926, 0.14499831199645996, 0.01308547891676426, -0.5886976718902588, 0.560972273349762, 0.7725118398666382, -0.16335798799991608, 0.8260297775268555, 0.41608843207359314, 0.1839662492275238, 0.48165881633758545, -0.03768109157681465, 0.841004490852356, -0.5607960224151611, -0.2869299650192261, -0.7512800097465515, 0.5675168633460999, 0.39811602234840393, -0.1800505369901657, 0.6311405897140503, 0.35194292664527893, 0.6250470280647278, -0.21506845951080322, 0.765800416469574, -0.15366922318935394, -0.0034917546436190605, -0.6333374977111816, 0.9909827709197998, -0.6243210434913635, 0.1617857962846756, -0.049925919622182846, -0.7517164349555969, -0.3940960168838501, 0.49570783972740173, 0.05613567680120468, 0.12943577766418457, 0.6785011887550354, 0.8193141222000122, 0.16342273354530334, -0.5097277760505676, 0.6016700267791748, 0.2586477994918823, 0.44299963116645813, 0.6886757016181946, 0.6247778534889221, -0.504062831401825, 0.5082572102546692, -0.30347204208374023, -0.0010950573487207294, 0.07377443462610245, -0.9676238298416138, -0.624826192855835, -0.5990692377090454, -0.7501659989356995, -0.3616376519203186, 0.06082010641694069, 0.5195367932319641, 0.5512650609016418, -0.8564164638519287, 0.036810778081417084, -0.6768902540206909, 0.15616929531097412, -0.05277204513549805, -0.2250545620918274, 0.4385387897491455, -0.4731422960758209, -0.9727022051811218, 0.28442350029945374, 0.328421413898468, 0.3049227297306061, -0.42783892154693604, -0.41830575466156006, -0.0883793756365776, 0.05897616222500801, 0.6710891127586365, 0.09038230031728745, -0.5401571989059448, 0.002047067042440176, -0.3337813913822174, -0.3996334969997406, -0.23272734880447388, 0.8794443011283875, -0.8263397812843323, 0.3309652507305145, 0.5206020474433899, 0.843619704246521, 0.23255835473537445, -0.10245782881975174, 0.8458918333053589, -0.9545236825942993, 0.23858819901943207, 0.3045949935913086, 0.1602260023355484, 0.09787066280841827, -0.0930255874991417, 0.15177546441555023, 0.0738709419965744, -0.5927321314811707, -0.5529548525810242, 0.05816882103681564, -0.9216814041137695, -0.3167829215526581, 1.074844241142273, -0.395873099565506, -0.25265219807624817, 0.08101867884397507, -0.3321114182472229, 0.4620317816734314, -0.33657604455947876, 0.3339824378490448, 0.3976854085922241, 0.175254225730896, -0.2007320523262024, -0.30844467878341675, 0.6593602299690247, 0.6401805281639099, -0.5963132381439209, -0.003673975123092532, 0.18838408589363098, 0.20262500643730164, -0.011568548157811165, 0.6636636257171631, 0.07873046398162842, 0.07337845861911774, -0.200871542096138, 0.11664792895317078, -0.08856125921010971, -0.04974454268813133, -0.7748867273330688, 0.3416045010089874, 0.1805342584848404, -0.28158894181251526 ]
http://arxiv.org/abs/2402.10104v2
http://arxiv.org/pdf/2402.10104v2
GeoEval: Benchmark for Evaluating LLMs and Multi-Modal Models on Geometry Problem-Solving
2024-02-15T16:59:41
2024-05-17T11:42:09
Jiaxin Zhang, Zhongzhi Li, Mingliang Zhang, Fei Yin, Chenglin Liu, Yashar Moshfeghi
cs.AI
cs.AI, cs.CL
Recent advancements in large language models (LLMs) and multi-modal models (MMs) have demonstrated their remarkable capabilities in problem-solving. Yet, their proficiency in tackling geometry math problems, which necessitates an integrated understanding of both textual and visual information, has not been thoroughly evaluated. To address this gap, we introduce the GeoEval benchmark, a comprehensive collection that includes a main subset of 2,000 problems, a 750 problems subset focusing on backward reasoning, an augmented subset of 2,000 problems, and a hard subset of 300 problems. This benchmark facilitates a deeper investigation into the performance of LLMs and MMs in solving geometry math problems. Our evaluation of ten LLMs and MMs across these varied subsets reveals that the WizardMath model excels, achieving a 55.67\% accuracy rate on the main subset but only a 6.00\% accuracy on the hard subset. This highlights the critical need for testing models against datasets on which they have not been pre-trained. Additionally, our findings indicate that GPT-series models perform more effectively on problems they have rephrased, suggesting a promising method for enhancing model capabilities.
[ -0.23772016167640686, -0.9278768301010132, 0.7012929320335388, 0.3144916892051697, 0.09543875604867935, 0.0006788623286411166, -0.18020035326480865, -0.1809075027704239, -0.19573724269866943, 0.2052580565214157, -0.7033903002738953, -0.762083888053894, -0.6578078866004944, 0.08155152201652527, -0.4235105812549591, 0.7437692284584045, -0.22440661489963531, 0.2936617434024811, -0.5293574929237366, -0.14474773406982422, -0.5268060564994812, -0.6987797021865845, 0.016116458922624588, -0.10030611604452133, 0.1973448097705841, 0.02171850949525833, 0.8796852827072144, 0.38450562953948975, 0.8512820601463318, 0.3492511510848999, -0.1376497745513916, 0.3680482506752014, -0.640993058681488, 0.15578745305538177, -0.04137025028467178, -0.2965397834777832, -0.49240511655807495, 0.15434306859970093, 0.6798781156539917, 1.045512080192566, -0.38052940368652344, 0.44728562235832214, 0.14271357655525208, 0.6998240947723389, -0.7122665047645569, 0.24507789313793182, -0.45720478892326355, -0.13222524523735046, -0.09189935028553009, -0.07891569286584854, -0.10589399933815002, -0.6259911060333252, 0.35510414838790894, -1.126222014427185, 0.31659138202667236, 0.19378283619880676, 0.57265704870224, 0.3805876672267914, -0.28672555088996887, -0.30828729271888733, -0.7987512350082397, 0.7513517737388611, -0.29707908630371094, 0.758008599281311, 0.40167325735092163, 0.47623753547668457, -0.3627336323261261, -0.5030181407928467, -0.07091548293828964, -0.32705724239349365, 0.1295449286699295, 0.21415171027183533, -0.1297985464334488, -0.30319544672966003, 0.5517076253890991, 0.30035629868507385, -0.8088955879211426, -0.3440461754798889, -0.6126022934913635, -0.22692354023456573, 0.5006103515625, 0.4690323770046234, 0.0718216598033905, -0.38877853751182556, -0.34459343552589417, 0.05614856630563736, -0.8784237504005432, -0.004733203444629908, 0.24208854138851166, 0.2653023302555084, 0.040406350046396255, 0.8431551456451416, -0.27160587906837463, 0.604069709777832, -0.44423708319664, -0.27069732546806335, 0.16251979768276215, -0.37526145577430725, -0.35237276554107666, -0.46673548221588135, 0.27817821502685547, 0.2886585593223572, 0.3861965537071228, -0.006531327031552792, -0.063203826546669, 0.08953285962343216, 0.021007169038057327, -0.7652738690376282, -0.2832913398742676, -0.04048284515738487, -0.345899760723114, 0.22717580199241638, -0.28202301263809204, -0.7598254084587097, -0.5341702103614807, -0.7684497237205505, 0.31692221760749817, -0.47153332829475403, -0.197730153799057, 0.251944363117218, 0.15363013744354248, 0.08738021552562714, 0.5105754137039185, -0.5801935195922852, 0.21020133793354034, 1.0271925926208496, 0.88920658826828, 0.07174676656723022, -0.6230841279029846, -0.6759157776832581, -0.0488661527633667, -0.4940636456012726, 1.0061945915222168, -0.6686547994613647, -0.7243393063545227, 0.013777513056993484, -0.1891542375087738, -0.20672520995140076, -0.5649672150611877, 0.5698000192642212, -0.39518046379089355, 0.2559814751148224, -0.5827693343162537, -0.5350933074951172, -0.3045973777770996, 0.6118704080581665, -0.5791055560112, 1.2718660831451416, 0.13475476205348969, -0.3224320113658905, 0.36371690034866333, -0.21015436947345734, 0.09656894207000732, 0.11658970266580582, -0.26054826378822327, -0.2752601206302643, 0.602615475654602, 0.47086089849472046, -0.050124507397413254, -0.655251681804657, 0.26243171095848083, -0.5082399845123291, -0.4111168086528778, -0.10345064103603363, -0.6139999628067017, 0.2592979073524475, -0.047517646104097366, 0.013866066932678223, 0.02140825241804123, -0.6519513726234436, 0.32775551080703735, 0.06948240101337433, -0.2668174207210541, -0.27092230319976807, 0.06496389955282211, 0.11664116382598877, 0.17660726606845856, 0.3294898271560669, -0.1515337973833084, 0.1263365000486374, -0.182697132229805, -0.11722166836261749, 0.7481431365013123, -0.360439270734787, -0.04763219505548477, -0.15095126628875732, 0.49761489033699036, -0.36648815870285034, 0.1901053488254547, -0.11638643592596054, -0.5757319927215576, -0.5286656022071838, -0.39051729440689087, 0.0682128295302391, 0.6044515371322632, -0.40784743428230286, 0.0026632784865796566, -0.3898010551929474, -0.7156749367713928, -0.2018350064754486, 0.2324073761701584, 0.49663129448890686, 0.5524425506591797, 0.6797528266906738, -0.02738053910434246, -0.009606399573385715, -0.8180282711982727, -0.6658811569213867, -0.09721435606479645, -0.1584114134311676, 0.4776231050491333, 0.5937620997428894, 0.2732289135456085, 0.7770233750343323, -0.6000319719314575, -0.1070532351732254, 0.14907188713550568, 0.28353554010391235, 0.1940799355506897, 0.08642352372407913, 0.40242594480514526, -0.5571879744529724, -0.3982107937335968, -0.11887070536613464, -0.9908209443092346, -0.211297869682312, 0.4186391830444336, 0.0830579474568367, 0.11710570007562637, 0.3593462407588959, -0.47605395317077637, 0.885266900062561, 0.5691198706626892, -0.5214162468910217, 0.8004651665687561, -0.40414461493492126, 0.36768636107444763, -0.7815907597541809, 0.09531236439943314, 0.263908714056015, -0.09371662139892578, -0.34653353691101074, -0.11879438906908035, 0.06686731427907944, -0.48297542333602905, -0.43228879570961, 0.4153863191604614, -0.7131320238113403, -0.4666149914264679, -0.09101328998804092, 0.1596428006887436, 0.057933177798986435, 0.3818839490413666, 0.004238883964717388, 1.0550189018249512, 0.5917216539382935, -0.3074861168861389, 0.6059055924415588, 0.25110384821891785, -0.4748183488845825, 1.0744725465774536, -0.9157620072364807, -0.018637914210557938, -0.2027098536491394, 0.022787151858210564, -0.9484687447547913, -0.01628347486257553, -0.11703607439994812, -0.046396005898714066, -0.07041697204113007, -0.2873412072658539, -0.6111867427825928, -0.2920376658439636, -0.2408272922039032, 0.6057778596878052, 0.3729158639907837, -0.6602129936218262, 0.8823651671409607, 0.04506606608629227, -0.3288268446922302, -0.5087756514549255, -0.23714818060398102, -0.11817966401576996, -0.2746770977973938, -0.7647095918655396, 0.19114796817302704, -0.02752736583352089, -0.23884376883506775, 0.10058121383190155, -0.26430678367614746, 0.08502127975225449, 0.009728762321174145, 0.23774410784244537, 0.5448572635650635, -0.4239700436592102, 0.19771264493465424, -0.4091619551181793, -0.47075918316841125, 0.10064730793237686, -0.1937236785888672, 0.4997823238372803, -0.6731489300727844, -0.9767990112304688, -0.38378801941871643, 0.37656939029693604, 0.6131687164306641, -0.4507637023925781, 0.5775042772293091, 0.13757167756557465, -0.5997182130813599, 0.19515085220336914, -0.7305898666381836, 0.14373686909675598, -0.44500207901000977, 0.6554529666900635, -0.6522306799888611, -0.3896924555301666, 0.5225384831428528, -0.32162484526634216, -0.06579329818487167, 0.406236469745636, 0.527687668800354, 0.268703818321228, 1.0946472883224487, 0.6167613863945007, -0.1525019407272339, 0.09030478447675705, -0.1408260017633438, 0.07937953621149063, -0.7951334118843079, -0.5042327046394348, -0.5593875646591187, -0.1898600459098816, -0.4972558617591858, -0.5478435158729553, 0.7769047617912292, 0.3451496958732605, -0.3416264057159424, 0.2028268426656723, -0.37856525182724, 0.8345959186553955, 0.2947096824645996, -0.14640195667743683, 0.707615852355957, 0.14763693511486053, -0.07505734264850616, -0.2778087556362152, -0.3595845103263855, -0.5756433606147766, 1.381210207939148, 0.054060399532318115, 1.0184361934661865, 0.45959994196891785, 0.1062045693397522, -0.07382015138864517, 0.48518508672714233, -0.5452738404273987, 0.3733389675617218, 0.007068573497235775, -0.7234005331993103, -0.15409040451049805, -0.47698545455932617, -0.7100640535354614, 0.6088590621948242, -0.1342599093914032, -0.8493881225585938, -0.012336743995547295, -0.02811199240386486, -0.3576923608779907, 0.3499370813369751, -0.6628426909446716, 0.8967550992965698, -0.4012402892112732, -0.5279562473297119, -0.4053243398666382, -0.15319642424583435, 0.25289538502693176, 0.10283853858709335, 0.14084291458129883, -0.4477047026157379, -0.1175088882446289, 0.3261701464653015, -0.41513490676879883, 0.3675757050514221, -0.0902978703379631, 0.07800363004207611, 0.10978367179632187, 0.3954834043979645, 0.26085638999938965, 0.46434909105300903, 0.031004494056105614, 0.3051801025867462, 0.2009073793888092, -0.531497061252594, -0.680786669254303, 0.7387514114379883, -0.8876283168792725, -0.7040995955467224, -0.5902260541915894, -0.7014642953872681, -0.3783758580684662, 0.10068031400442123, 0.07784096151590347, 1.0408722162246704, -0.4412001073360443, 0.02357342094182968, 0.5784632563591003, -0.011128244921565056, 0.292815238237381, 0.4242064356803894, -0.5958104729652405, -0.624115526676178, 0.6860634088516235, 0.18388956785202026, 0.1976257562637329, -0.06375979632139206, 0.07178665697574615, -0.5594774484634399, -0.4970148205757141, -0.5920782685279846, 0.323707640171051, -0.8874594569206238, -0.17436483502388, -0.21707507967948914, -0.24274715781211853, -0.033016979694366455, -0.046531226485967636, -0.5557643175125122, -0.345468133687973, -0.09710864722728729, 0.2758360207080841, 0.2684118449687958, 0.9944599866867065, 0.08497115224599838, 0.0994776263833046, -0.6475269794464111, 0.17735342681407928, 0.3451055884361267, 0.5245378613471985, -0.17415525019168854, -0.3699245750904083, 0.039214957505464554, -0.23220837116241455, -0.4482291042804718, -0.6252787113189697, 0.2628926634788513, -0.016551246866583824, 0.5599170327186584, -0.0005433863261714578, -0.46425142884254456, 0.9824374318122864, -0.750137984752655, 0.6388687491416931, 0.02163117192685604, -0.9689568877220154, 0.44710132479667664, -0.44398924708366394, 0.1651155948638916, 0.6239681839942932, 0.5155611038208008, -0.5299325585365295, 0.13560719788074493, -0.34971627593040466, -0.5206860303878784, 0.2987063527107239, 0.09303537011146545, -0.16673053801059723, 0.22755563259124756, 0.3629186451435089, 0.03156999126076698, 0.17312075197696686, -0.3654952645301819, -0.010664560832083225, -0.1986432522535324, -0.13046161830425262, -0.18267972767353058, -0.20115028321743011, -0.25545012950897217, -0.3474443256855011, 0.4599846303462982, -0.21167856454849243, 0.0018839541589841247, 0.26049140095710754, -0.42347046732902527, 0.05460016056895256, 0.09839826077222824, 0.8784334063529968, 1.2837063074111938, -0.1656705141067505, -0.12224950641393661, 0.47886839509010315, -0.5456811189651489, -0.11159060895442963, 0.632802426815033, 0.1937699168920517, -0.19615675508975983, 0.37808436155319214, 0.3391920030117035, 0.09257933497428894, -0.4571857452392578, 0.53105229139328, -0.11109107732772827, -0.13560719788074493, -0.24529269337654114, -0.2717709243297577, 0.11828324943780899, 0.3104574680328369, 0.5090281367301941, 0.04021550342440605, 0.12691602110862732, -0.16225503385066986, -0.03886823356151581, 0.6867252588272095, -0.18082056939601898, -0.46333804726600647, 0.5755136609077454, 0.14967656135559082, -0.28359970450401306, 0.8667407631874084, 0.026135984808206558, -0.6505577564239502, 0.6085135340690613, 0.4615161120891571, 0.5929714441299438, -0.03208830580115318, 0.06530597060918808, 0.4767759144306183, 0.2971832752227783, 0.06633620709180832, 0.3954218029975891, 0.0836922898888588, -0.22721025347709656, -0.5147278308868408, -0.42830008268356323, -0.6613840460777283, 0.02159949578344822, -0.5686500072479248, 0.3294151723384857, -0.5822553038597107, 0.03947804868221283, -0.2741933763027191, 0.18981467187404633, -0.9621061086654663, -0.0037205955013632774, 0.20952247083187103, 0.962351381778717, -0.6969975829124451, 0.23017805814743042, 0.5245814919471741, -0.215669646859169, -0.67973792552948, -0.1064659133553505, 0.4768502116203308, -0.9283944964408875, 0.6028915643692017, 0.29378917813301086, -0.4789363741874695, -0.15448732674121857, -0.2612934708595276, -1.2123398780822754, 1.2664579153060913, 0.33207929134368896, -0.37153083086013794, 0.04419897496700287, 0.3704719543457031, 0.45927321910858154, -0.16890767216682434, 0.6798100471496582, 0.5603986382484436, 0.39248669147491455, 0.17747583985328674, -1.1554625034332275, -0.18639090657234192, -0.19859589636325836, 0.20089299976825714, 0.3746630549430847, -0.6224936246871948, 0.9417195320129395, -0.08634582906961441, -0.20810596644878387, 0.41680046916007996, 0.6501587629318237, 0.608101487159729, 0.3677211105823517, 0.2886786162853241, 0.7839221358299255, 1.0644291639328003, -0.43216198682785034, 1.1347044706344604, -0.2858068645000458, 0.764658510684967, 0.9382315278053284, -0.477090984582901, 0.7695496678352356, 0.16923944652080536, -0.3714481294155121, 0.4394322633743286, 0.6518880724906921, 0.01426305528730154, 0.4375578463077545, 0.3733254671096802, -0.1514827311038971, -0.5292840003967285, -0.12724797427654266, -1.0574458837509155, 0.35751479864120483, 0.4108779728412628, 0.29943376779556274, -0.8114835023880005, -0.3045397698879242, -0.11370357871055603, 0.1994810402393341, -0.4672698676586151, 0.3836284875869751, -0.04601304978132248, -0.37646856904029846, 0.4963254928588867, -0.19428223371505737, 0.33201172947883606, -0.5655819177627563, 0.0037454760167747736, -0.32283422350883484, 0.2727486789226532, -0.11544907093048096, -0.5702062845230103, 0.30738121271133423, -0.038484565913677216, -0.19573652744293213, 0.054372191429138184, 0.5328699946403503, -0.22176232933998108, -1.0270862579345703, 0.014969159848988056, 0.9745479822158813, 0.02627168782055378, -0.1515788733959198, -0.6813603639602661, -0.04326452314853668, -0.683620810508728, -0.2951849400997162, -0.06353305280208588, 0.4406511187553406, -0.13341237604618073, 0.715153694152832, 0.7945718169212341, -0.0315885990858078, 0.16886338591575623, 0.11623687297105789, 1.046776294708252, -0.7251009941101074, -0.37380537390708923, -0.8793628811836243, 0.4227854609489441, -0.15622524917125702, -0.7024790048599243, 0.918368399143219, 0.9253435730934143, 0.5854536294937134, 0.19084379076957703, 0.3931882083415985, 0.42147091031074524, 0.4461570084095001, -0.6353627443313599, 0.4017646610736847, -0.6262128353118896, 0.2995772063732147, -0.16494786739349365, -1.2855439186096191, -0.44849202036857605, 0.43059027194976807, -0.9459745287895203, 0.30883145332336426, 0.938057005405426, 0.7071594595909119, -0.27125635743141174, 0.3969956636428833, 0.29541727900505066, -0.27524682879447937, 0.4424982964992523, 0.8029472231864929, 1.3875386714935303, -0.34341365098953247, 0.6330628395080566, 0.0475575216114521, -0.36240556836128235, 0.005671139806509018, -1.03243887424469, -1.0440562963485718, -0.15912002325057983, -0.06624332070350647, -0.3141683340072632, 0.0041930885054171085, 0.879072368144989, 0.7859291434288025, -0.5309633016586304, -0.1601230502128601, 0.04388975724577904, 0.19534486532211304, -0.07012844830751419, -0.08735576272010803, 0.6243908405303955, -0.35469919443130493, -0.7010292410850525, 0.5109487771987915, 0.4336388409137726, -0.06302335858345032, -0.44857707619667053, 0.12847363948822021, 0.11146007478237152, 0.02306918427348137, 0.386675626039505, 0.06046140193939209, -0.7149809002876282, -0.2858665883541107, 0.34057581424713135, -0.01629667542874813, 0.09844232350587845, 0.9833036661148071, -0.856387734413147, 0.3276076912879944, 0.4484514892101288, 0.7357071042060852, 0.5024165511131287, 0.25379088521003723, 0.3168334662914276, -0.33092013001441956, -0.006052662618458271, -0.05302353948354721, 0.4358387887477875, 0.477154403924942, -0.07028375566005707, 0.5182738304138184, 0.5039876699447632, -0.6807458996772766, -0.7025222778320312, 0.2508337199687958, -0.4618317484855652, -0.13252098858356476, 0.8038989901542664, 0.03733542189002037, -0.28247755765914917, 0.07648824155330658, 0.05730687081813812, -0.35420945286750793, 0.05088552460074425, 0.5952504873275757, 1.0148686170578003, -0.18292012810707092, 0.24065299332141876, -0.8761541247367859, 0.31701359152793884, 0.7831026315689087, -0.9980185031890869, 0.14002196490764618, 0.8338524103164673, 0.44339391589164734, 0.23959119617938995, 0.3583594560623169, -0.1818535476922989, 0.40057528018951416, -0.010643627494573593, -0.3142368495464325, -0.23551176488399506, -0.8272499442100525, -0.39333632588386536, 0.20957905054092407, -0.11411603540182114, 0.05196421965956688 ]
http://arxiv.org/abs/2402.10076v1
http://arxiv.org/pdf/2402.10076v1
QUICK: Quantization-aware Interleaving and Conflict-free Kernel for efficient LLM inference
2024-02-15T16:38:41
2024-02-15T16:38:41
Taesu Kim, Jongho Lee, Daehyun Ahn, Sarang Kim, Jiwoong Choi, Minkyu Kim, Hyungjun Kim
cs.LG
cs.LG, cs.AI, cs.CL
We introduce QUICK, a group of novel optimized CUDA kernels for the efficient inference of quantized Large Language Models (LLMs). QUICK addresses the shared memory bank-conflict problem of state-of-the-art mixed precision matrix multiplication kernels. Our method interleaves the quantized weight matrices of LLMs offline to skip the shared memory write-back after the dequantization. We demonstrate up to 1.91x speedup over existing kernels of AutoAWQ on larger batches and up to 1.94x throughput gain on representative LLM models on various NVIDIA GPU devices.
[ -0.2768253982067108, -1.0812808275222778, 0.5178358554840088, 0.5643438696861267, -0.3020986020565033, 0.20682933926582336, -0.15108442306518555, -0.22082193195819855, 0.08426088839769363, 0.22712677717208862, -0.1248004361987114, -0.32656586170196533, -0.6561648845672607, -0.15716521441936493, -0.5753082036972046, 0.6441569328308105, 0.02266933210194111, -0.04607074707746506, -0.474400132894516, -0.3889523148536682, 0.012743572704494, -0.6255629062652588, -0.7846447229385376, 0.07958303391933441, 0.6029863357543945, 0.40855541825294495, 0.9516502618789673, 0.6945170760154724, 0.49000510573387146, 0.3334541320800781, -0.24760280549526215, 0.10449476540088654, -0.2538783848285675, 0.25393611192703247, 0.27585774660110474, -0.5700973272323608, -0.7206028699874878, -0.12019647657871246, 0.7518193125724792, 0.3682343363761902, -0.30330318212509155, 0.16163378953933716, 0.020837606862187386, 0.6138978600502014, -1.042185664176941, -0.08835731446743011, -0.38375282287597656, 0.2072766125202179, -0.3406604826450348, 0.04724834859371185, -0.4938809871673584, -0.8229666352272034, -0.1434594690799713, -0.9413549900054932, 0.1852882206439972, 0.07630573958158493, 0.5165480971336365, 0.6204656362533569, -0.7396571636199951, -0.10956647992134094, -0.5778914093971252, 0.8518285751342773, -0.7493853569030762, 0.5790635943412781, 0.36307185888290405, 0.34235429763793945, -0.07062327861785889, -1.1454188823699951, -0.8151162266731262, 0.265846848487854, 0.0003880903241224587, 0.02125324122607708, -0.3960108160972595, 0.36769968271255493, 0.4896080195903778, 0.5470912456512451, -0.26918497681617737, 0.158869206905365, 0.02312791533768177, -0.3168313503265381, 0.31497469544410706, 0.2699497938156128, 0.00003971149635617621, 0.07714388519525528, -0.39247798919677734, -0.10315485298633575, -0.7647409439086914, 0.1913232058286667, 0.27952656149864197, -0.280992716550827, -0.22775468230247498, 0.2878160774707794, -0.10932079702615738, 0.6853227019309998, 0.24965178966522217, -0.034436579793691635, -0.1847507208585739, -0.4176238179206848, -0.5942968130111694, 0.035669539123773575, 0.7523664832115173, 0.1008373275399208, -0.1462656706571579, -0.1569788157939911, -0.23478694260120392, 0.26831063628196716, -0.24393266439437866, -0.949996829032898, -0.43392032384872437, 0.3459039032459259, -0.39143985509872437, 0.012577529065310955, -0.4976508915424347, -0.5849837064743042, -0.10518444329500198, -0.08634291589260101, 0.8491443395614624, -0.5090067982673645, -0.14107440412044525, 0.002212859457358718, 0.16594955325126648, 0.24803605675697327, 0.3011445999145508, -0.8547928929328918, 0.27089229226112366, 0.7554364800453186, 0.6926108598709106, 0.02394765056669712, 0.08380819857120514, -1.1714744567871094, 0.21975941956043243, -0.3277798295021057, 0.5770343542098999, -0.3046181797981262, -0.395859956741333, -0.28852251172065735, -0.3184729814529419, 0.07134085148572922, -0.6508510112762451, 0.5465220808982849, -0.7656237483024597, -0.08650844544172287, -0.3989918529987335, -0.7680341601371765, -0.18234005570411682, 0.027334509417414665, -0.7922355532646179, 1.1333426237106323, 0.11864591389894485, -0.7705222368240356, 0.38374626636505127, -0.1487400382757187, -0.30194222927093506, 0.1378987431526184, -0.08652433753013611, -0.537628173828125, 0.2281094789505005, 0.1617073267698288, 0.4352888762950897, -0.19888073205947876, 0.6372333765029907, -0.6043521761894226, -0.43081843852996826, 0.11406046152114868, -0.12211122363805771, 0.911255955696106, 0.6190412044525146, -0.01765444315969944, 0.38897234201431274, -0.6740937829017639, 0.16511234641075134, -0.14442132413387299, -0.4234568178653717, -0.5840208530426025, -0.06422298401594162, -0.3666287958621979, 0.019632305949926376, 0.34269723296165466, -0.35660529136657715, 0.28168073296546936, 0.22210125625133514, 0.6175434589385986, 0.73458331823349, -0.310075044631958, 0.5742713809013367, -0.08871670067310333, 0.4279651641845703, 0.4496758282184601, 0.49426203966140747, -0.056762974709272385, -0.5281103253364563, -1.0948835611343384, -0.7094593644142151, 0.5560705065727234, 0.5234038829803467, -1.1182748079299927, 0.09321514517068863, 0.08520151674747467, -0.19258010387420654, -0.869184136390686, 0.06100395321846008, 0.687162458896637, 0.5821412205696106, 0.2518281638622284, -0.0657905787229538, -0.44231268763542175, -1.118667721748352, -0.34564727544784546, 0.08579429984092712, 0.13524791598320007, 0.0830761268734932, 0.033039651811122894, -0.3266647160053253, 0.9163719415664673, -0.3295772671699524, 0.2184053361415863, 0.1040666475892067, 0.22862422466278076, 0.14932774007320404, 0.4407370984554291, 0.4333427846431732, -0.6636121869087219, -0.7942224144935608, -0.3425051271915436, -0.6875748038291931, -0.22581882774829865, 0.11373855173587799, -0.2835143208503723, 0.28314948081970215, 0.7230553030967712, -0.42733025550842285, 0.3877130150794983, 0.8090611100196838, -0.480037659406662, 0.12635251879692078, -0.5092604160308838, 0.18538478016853333, -0.9220384359359741, -0.22267040610313416, -0.0031407331116497517, -0.5128122568130493, -0.7268133759498596, 0.10717243701219559, 0.7466722726821899, 0.35785147547721863, -0.5886783599853516, 0.556654155254364, -0.26842400431632996, -0.26640719175338745, 0.07095202058553696, -0.10228326916694641, 0.11516443639993668, 0.3887147903442383, -0.2255295366048813, 1.1748991012573242, 0.5106780529022217, -0.8813964128494263, 0.043688978999853134, 0.22668352723121643, -0.3825884163379669, 0.44773614406585693, -0.46781742572784424, 0.05653033033013344, -0.045277468860149384, 0.10537149757146835, -0.8597243428230286, 0.1911524534225464, -0.12199346721172333, -0.10942138731479645, 0.07261136174201965, 0.0276801697909832, -0.6706709861755371, -0.09366047382354736, -0.22516727447509766, 0.8685281872749329, 0.43867766857147217, -0.8087710738182068, 0.6764620542526245, 0.37941741943359375, -0.025725893676280975, -0.6093848943710327, -0.6100994944572449, -0.030969832092523575, -0.3163919746875763, -0.6592256426811218, 0.19048486649990082, -0.48386237025260925, -0.6500318646430969, -0.023245157673954964, 0.10573004186153412, -0.4808357059955597, 0.24907340109348297, 0.26328223943710327, 0.12613248825073242, -0.2284383326768875, 0.08838815987110138, 0.45417243242263794, -0.2107192873954773, -0.29564613103866577, 0.188280388712883, 0.2627485394477844, -0.3997651934623718, 0.04179522395133972, -0.4264368414878845, 0.5248392820358276, 0.23084545135498047, -0.03902648016810417, 0.5264766216278076, 0.6522091627120972, -0.28116846084594727, 0.054258085787296295, -0.7395332455635071, -0.10680998861789703, -0.526684045791626, 0.009491047821938992, -0.4646875262260437, -1.317872405052185, 0.7229107618331909, -0.07930613309144974, -0.011505809612572193, 0.4582631587982178, 0.5060592889785767, -0.1315060406923294, 0.7333895564079285, 0.704137921333313, 0.22429250180721283, 0.38674822449684143, -0.31765517592430115, 0.364780068397522, -0.8258941769599915, -0.08798866719007492, -0.27452513575553894, -0.5122249126434326, -0.33257874846458435, -0.6855223774909973, 0.46876126527786255, 0.5316731333732605, -0.24273300170898438, 0.2189899981021881, -0.1536131203174591, 0.5197881460189819, 0.9146882891654968, 0.03635261952877045, 0.5306949615478516, -0.2876798212528229, -0.34791889786720276, -0.16492792963981628, -0.8414585590362549, 0.03543034568428993, 0.9019010663032532, 0.07160919159650803, 0.7341292500495911, 0.09427991509437561, 0.6142707467079163, 0.3499142825603485, 0.33616548776626587, -0.6086013317108154, 0.7105677127838135, -0.2697902321815491, -0.34592458605766296, 0.015350256115198135, -0.6427852511405945, -0.5973835587501526, 0.2711164057254791, -0.21109607815742493, -0.24613790214061737, 0.32023629546165466, 0.40190961956977844, -1.0426292419433594, 0.48689690232276917, -1.0759282112121582, 0.6276437640190125, 0.01078119594603777, -0.43697595596313477, -0.554791271686554, -0.4374643862247467, 0.9659183621406555, -0.41296032071113586, 0.10559007525444031, -0.1593029499053955, -0.1636945754289627, 0.8383395075798035, -0.5174607634544373, 0.45630261301994324, -0.009539916180074215, -0.2520555257797241, 0.5209668278694153, 0.3318397104740143, 0.5439131259918213, 0.26647576689720154, -0.02424796298146248, 0.49998539686203003, 0.09107641130685806, -0.2886757254600525, -0.347739577293396, 0.9286285638809204, -0.6072673797607422, -0.5260217189788818, -0.2081626057624817, -0.8579255938529968, -0.18316633999347687, -0.07458622008562088, 0.1326473355293274, 0.2746118903160095, 0.20499645173549652, 0.024458477273583412, 0.9239158034324646, -0.3862801194190979, 1.0969157218933105, 0.5721367001533508, -0.05818035453557968, -0.7240666151046753, 0.6277999877929688, 0.0800844356417656, 0.33511990308761597, 0.35444724559783936, 0.06555253267288208, -0.16269545257091522, -0.3802177906036377, -0.15378084778785706, 0.12595105171203613, -0.5436722040176392, -0.5184935331344604, -0.8644574880599976, -0.06117861717939377, -0.33610835671424866, -0.1872856467962265, -0.5077973008155823, -0.8586369752883911, -0.213836669921875, 0.1603195071220398, 0.6191789507865906, 0.5249543190002441, -0.42728060483932495, 0.9864552617073059, -0.980222225189209, 0.6278668642044067, 0.6246190071105957, 0.46303218603134155, 0.04277753829956055, -0.34866127371788025, -0.5193749666213989, -0.18550069630146027, -0.3601396381855011, -0.4853532612323761, 0.40398579835891724, 0.25058427453041077, 0.36093607544898987, 0.5530232787132263, 0.057901009917259216, 1.0287983417510986, -0.001977956388145685, 0.41141656041145325, 0.28132185339927673, -1.319583773612976, 0.11037047207355499, 0.11061640828847885, 0.2418633997440338, 0.34440699219703674, 0.40420982241630554, -0.5473373532295227, -0.27686887979507446, -0.44816720485687256, -0.8188285827636719, 0.4369426965713501, -0.03209244832396507, -0.556897759437561, -0.16984787583351135, 0.37316611409187317, 0.2244691252708435, 0.169824481010437, -0.428712397813797, -0.3702101707458496, 0.2455814778804779, -0.12558060884475708, 0.14273640513420105, -0.7868058681488037, -0.027619102969765663, -0.615279495716095, 0.5288015007972717, -0.10667947679758072, 0.2503555715084076, 0.15158024430274963, -0.3456723392009735, -0.15084631741046906, 0.008308809250593185, 0.6366151571273804, 0.4164462983608246, -0.22012822329998016, 0.32942116260528564, 0.28451821208000183, -0.5509491562843323, 0.16266538202762604, -0.0923902690410614, -0.09068389236927032, -0.12729372084140778, -0.052172690629959106, 0.8115271329879761, 0.512203574180603, -0.35990095138549805, 0.41020750999450684, -0.702023983001709, -0.2984672784805298, -0.0018878902774304152, 0.007154489867389202, 0.2832491397857666, 0.74009108543396, 0.32892850041389465, -0.2911566197872162, 0.0009326745639555156, -0.08532045781612396, 0.41746047139167786, 0.5743751525878906, 0.032040148973464966, -0.2976571023464203, 0.9565107822418213, 0.20173023641109467, -0.15756918489933014, 0.7507263422012329, -0.2969948947429657, -0.23134709894657135, 0.478495329618454, 0.3149748742580414, 0.8744145631790161, -0.3954342007637024, -0.2701268792152405, 0.3112689256668091, -0.12591435015201569, 0.05312899500131607, 0.5151170492172241, -0.40988609194755554, -0.5532636046409607, -0.9072319269180298, -0.7172614932060242, -0.5921460390090942, -0.05203992873430252, -0.6090205907821655, 0.1280081868171692, -0.4968463182449341, -0.33257994055747986, -0.169611856341362, 0.016378888860344887, -0.4862062633037567, 0.09899528324604034, 0.1174972876906395, 0.853236973285675, -0.46839195489883423, 1.5673104524612427, 0.018243571743369102, 0.29241278767585754, -0.6616199612617493, -0.5527488589286804, -0.2774795591831207, -0.8828717470169067, 0.8446327447891235, -0.2262769490480423, 0.2951792776584625, 0.3033757507801056, -0.397085040807724, -0.8300002813339233, 1.123632788658142, 0.5635449290275574, -1.067866563796997, -0.06670603156089783, 0.026304708793759346, -0.18155747652053833, 0.12184970825910568, 0.41575944423675537, 0.6496369242668152, 0.3845821022987366, -0.12584136426448822, -0.871827244758606, -0.12365391105413437, 0.11586155742406845, -0.1233656108379364, 0.7367371916770935, -0.8093907833099365, 1.2975788116455078, -0.40503430366516113, -0.18761853873729706, -0.04033100977540016, 1.0781545639038086, 0.10848676413297653, 0.4651106894016266, 0.5343287587165833, 1.271963119506836, 0.8111688494682312, -0.1386891007423401, 0.7161310911178589, -0.5471159815788269, 0.3053372800350189, 1.091686725616455, -0.18235798180103302, 0.8024274706840515, 0.7484291195869446, -0.1726647913455963, 0.06084353104233742, 0.6187013387680054, 0.46314913034439087, 0.5639415979385376, 0.012450921349227428, -0.8665100336074829, -0.5434960722923279, 0.2684665620326996, -0.3680931627750397, 0.19983059167861938, 0.4441392719745636, -0.07759580761194229, -0.367063969373703, -0.1120530515909195, 0.024150321260094643, -0.3209167420864105, -0.47291100025177, 0.6483690142631531, 0.2888798415660858, -0.48034289479255676, 0.6104636788368225, 0.0844368040561676, 1.0878024101257324, -0.4883745610713959, 0.10434925556182861, -0.5693972706794739, 0.3862580358982086, -0.09603263437747955, -0.5805527567863464, 0.3829319179058075, -0.2119416892528534, -0.1393122375011444, -0.3221283555030823, 0.4479217529296875, -0.6239101886749268, -0.301596462726593, 0.27844133973121643, 0.4337502419948578, -0.16146329045295715, -0.16133545339107513, -0.35634222626686096, 0.2705320417881012, -0.1345362514257431, -0.2047490030527115, 0.6133869886398315, 0.42888233065605164, -0.2994115352630615, 0.783937931060791, 0.5741226077079773, -0.1664390116930008, 0.5652797222137451, -0.40848013758659363, 0.7160958051681519, -0.8650144934654236, -0.4885064959526062, -0.9981064200401306, 0.13575732707977295, 0.37701109051704407, -0.12085914611816406, 0.8202173709869385, 0.77744460105896, 0.5918928384780884, 0.08507457375526428, 0.39741355180740356, 0.24024516344070435, 0.2107774317264557, -0.47383230924606323, 0.7941352725028992, -0.34461846947669983, -0.09124338626861572, 0.24156078696250916, -0.7669224143028259, -0.23902978003025055, 0.36512041091918945, 0.024837341159582138, -0.36583665013313293, 0.6126053333282471, 0.610693097114563, -0.17610295116901398, -0.09966114163398743, 0.6512271761894226, 0.3085653483867645, 0.2985427677631378, 1.0528900623321533, 0.578269898891449, -0.5536027550697327, 0.3759913146495819, -0.6643213033676147, -0.07090354710817337, -0.21091358363628387, -1.2916842699050903, -0.39376717805862427, -0.586286187171936, -0.6206424832344055, -0.2747676372528076, -0.04108889400959015, 0.5887652635574341, 0.591041088104248, -0.5007980465888977, -0.2162429243326187, 0.09929630160331726, 0.18701446056365967, 0.10909054428339005, -0.21970601379871368, 0.33806174993515015, -0.22187259793281555, -0.7648696303367615, 0.3247995376586914, 0.4303900897502899, 0.18470126390457153, -0.15454721450805664, -0.3611113727092743, -0.15194007754325867, 0.3267960846424103, 0.8263291716575623, 0.3098742365837097, -0.4745185077190399, 0.034815359860658646, -0.19388067722320557, -0.2783854603767395, 0.2331724464893341, 1.073823094367981, -1.182448387145996, 0.21074283123016357, 0.4882386028766632, 0.6164122223854065, 0.5457215905189514, -0.3355165719985962, 0.3326418697834015, -0.5244185328483582, 0.49210283160209656, 0.20926529169082642, 0.5134158134460449, 0.13017810881137848, -0.30869683623313904, 0.230100616812706, 0.2150474190711975, -0.6597492694854736, -0.8303263783454895, -0.11000609397888184, -1.1667382717132568, -0.036272305995225906, 0.886516809463501, -0.10371385514736176, -0.5374196171760559, 0.2507157325744629, 0.246185302734375, 0.6093046069145203, -0.25372353196144104, 0.6256719827651978, 0.5088717937469482, 0.061749450862407684, -0.2248547375202179, -0.585609495639801, 0.669288158416748, 0.6617944240570068, -0.6722541451454163, 0.05645943433046341, 0.3165534734725952, 0.11844345927238464, -0.3850865066051483, 0.7745872735977173, 0.05728965997695923, 0.2713451385498047, -0.22192098200321198, 0.23398789763450623, -0.1227279081940651, -0.2061326950788498, -0.468249648809433, 0.025784187018871307, -0.044233862310647964, -0.140710711479187 ]
http://arxiv.org/abs/2402.10073v3
http://arxiv.org/pdf/2402.10073v3
Both Matter: Enhancing the Emotional Intelligence of Large Language Models without Compromising the General Intelligence
2024-02-15T16:36:04
2024-06-12T04:13:17
Weixiang Zhao, Zhuojun Li, Shilong Wang, Yang Wang, Yulin Hu, Yanyan Zhao, Chen Wei, Bing Qin
cs.CL
cs.CL
Emotional Intelligence (EI), consisting of emotion perception, emotion cognition and emotion expression, plays the critical roles in improving user interaction experience for the current large language model (LLM) based conversational general AI assistants. Previous works mainly focus on raising the emotion perception ability of them via naive fine-tuning on EI-related classification or regression tasks. However, this leads to the incomplete enhancement of EI and catastrophic forgetting of the general intelligence (GI). To this end, we first introduce \textsc{EiBench}, a large-scale collection of EI-related tasks in the text-to-text formation with task instructions that covers all three aspects of EI, which lays a solid foundation for the comprehensive EI enhancement of LLMs. Then a novel \underline{\textbf{Mo}}dular \underline{\textbf{E}}motional \underline{\textbf{I}}ntelligence enhancement method (\textbf{MoEI}), consisting of Modular Parameter Expansion and intra-inter modulation, is proposed to comprehensively enhance the EI of LLMs without compromise their GI. Extensive experiments on two representative LLM-based assistants, Flan-T5 and LLaMA-2-Chat, demonstrate the effectiveness of MoEI to improving EI while maintain GI.
[ -0.2768835127353668, -0.8163630962371826, 0.4010411500930786, 0.07254153490066528, 0.18156835436820984, 0.05771235004067421, -0.48857682943344116, -0.6554075479507446, 0.4346952736377716, 0.052651748061180115, -0.6532190442085266, -0.33451735973358154, -0.37275591492652893, 0.022802766412496567, -0.04204035922884941, 0.8778237104415894, 0.20220880210399628, -0.09291782975196838, -0.22503915429115295, -0.17077326774597168, -0.2368767261505127, -0.7299252152442932, -0.7398647665977478, -0.28237175941467285, 0.6263664364814758, 0.44340789318084717, 0.32063454389572144, 0.17751914262771606, 0.4603123068809509, 0.34580978751182556, 0.032941728830337524, 0.5363710522651672, -0.7599098682403564, 0.24344801902770996, -0.05597251281142235, -0.6847840547561646, -0.9067957997322083, -0.24317318201065063, 0.23285536468029022, 0.21858413517475128, -0.31439197063446045, -0.32502222061157227, -0.05603945627808571, 1.0155792236328125, -0.8911502957344055, 0.11545463651418686, -0.3189869821071625, -0.16405752301216125, 0.048131149262189865, -0.2429223507642746, -0.40464261174201965, 0.03649093583226204, 0.080231674015522, -0.6215185523033142, -0.27659958600997925, 0.1776333898305893, 0.7794023752212524, 0.2781936526298523, -0.49237632751464844, -0.4913972318172455, -0.7990647554397583, 0.8859564065933228, -0.5799232721328735, 0.2664629817008972, 0.2511635422706604, -0.23630279302597046, 0.0613960325717926, -0.27744024991989136, -0.615003764629364, -0.3792645335197449, 0.06359989941120148, 0.5841653943061829, -0.36605116724967957, 0.5446826815605164, 0.3016264736652374, 0.3543087840080261, -0.3365422785282135, 0.25080767273902893, -0.2858288288116455, 0.10863219201564789, 0.6778916120529175, 0.2821243405342102, 0.5531976222991943, 0.2844642698764801, 0.2566538155078888, -0.04092984274029732, -0.5382450819015503, -0.02483273670077324, 0.339587539434433, -0.09802428632974625, -0.20605692267417908, 0.28550729155540466, -0.3359066843986511, 0.22027407586574554, 0.2908851206302643, 0.045137643814086914, 0.4019153118133545, -0.27288496494293213, -0.31071802973747253, -0.2688482701778412, 0.685895562171936, 0.3651723563671112, 0.6093936562538147, -0.24325530230998993, 0.10226873308420181, -0.13337461650371552, 0.29759371280670166, -0.7952713966369629, -0.11650790274143219, 0.3464558720588684, -0.3680546283721924, -0.00918782688677311, 0.25133752822875977, -0.6717304587364197, -0.2640717327594757, -0.57972252368927, 0.19258952140808105, -0.5219233632087708, -0.46520763635635376, -0.17423902451992035, 0.1530303806066513, 0.2920542359352112, 0.4345942735671997, -1.145229697227478, 0.1568867415189743, 0.9385853409767151, 0.6277509927749634, 0.04449617862701416, -0.23668712377548218, -0.22863896191120148, 0.296842098236084, -0.33096009492874146, 0.6210535168647766, -0.8466074466705322, -0.4638635814189911, 0.28042203187942505, -0.25037088990211487, -0.24916952848434448, -0.47388219833374023, 0.5118817090988159, -0.3842340111732483, 0.22470074892044067, -0.18174348771572113, -0.45704299211502075, -0.48116636276245117, 0.19617317616939545, -0.38904687762260437, 0.8032706379890442, 0.0869828462600708, -0.3879854083061218, 0.025498252362012863, -1.1353391408920288, -0.5942113399505615, -0.258512943983078, 0.013130958192050457, -0.26485559344291687, 0.42650267481803894, 0.3819347321987152, 0.5551892518997192, -0.3458503484725952, -0.012679792009294033, -0.47738274931907654, -0.4220380485057831, 0.3083887994289398, -0.3468283414840698, 0.284402459859848, -0.23182101547718048, -0.30430564284324646, 0.12080519646406174, -0.5821912884712219, 0.2242259681224823, -0.13497529923915863, -0.40235990285873413, -0.2304791957139969, 0.05555099993944168, -0.2013368457555771, -0.03424200415611267, 0.13123777508735657, -0.3026445806026459, 0.1046622022986412, -0.44451606273651123, 0.4980155825614929, 0.6870573163032532, 0.007994062267243862, 0.6396406888961792, -0.47412505745887756, 0.28461432456970215, 0.0024397196248173714, 0.11866451054811478, -0.32099753618240356, -0.27220678329467773, -1.1819276809692383, -0.4817206859588623, -0.12776242196559906, 0.9312540888786316, -0.6025524735450745, 0.4841860830783844, -0.48195555806159973, -0.54188072681427, -0.5976381301879883, 0.24873661994934082, 0.45019522309303284, 0.17581114172935486, 0.29784172773361206, 0.017152797430753708, -0.4128246605396271, -0.9159897565841675, -0.05734853446483612, -0.37020090222358704, -0.36573344469070435, 0.6491159200668335, 0.3197862207889557, -0.4766876697540283, 0.5601903796195984, -0.0650840699672699, -0.24411557614803314, -0.20645727217197418, 0.3644412159919739, -0.05589911714196205, 0.39544641971588135, 0.6280606985092163, -0.6905080676078796, -0.4428350031375885, 0.1892760694026947, -0.8095643520355225, -0.41715651750564575, -0.07551810890436172, -0.2935502231121063, 0.48409146070480347, 0.27165117859840393, -0.5412866473197937, 0.43406781554222107, 0.3953624367713928, -0.1951492875814438, 0.23310859501361847, -0.2828308939933777, 0.7657039165496826, -0.8872901201248169, -0.0049340128898620605, 0.0725540965795517, 0.13196776807308197, -1.1885465383529663, -0.07210206240415573, 0.12280400842428207, 0.07502253353595734, -0.3936648368835449, 0.2996688783168793, -0.5933499932289124, 0.095636747777462, -0.4216597080230713, 0.07427792996168137, -0.00991108175367117, 0.8124969005584717, -0.29566696286201477, 0.7834973931312561, 0.5479844808578491, -0.7620747685432434, 0.3296262323856354, -0.01217716746032238, 0.14651860296726227, 1.0149707794189453, -0.6826367974281311, 0.6297439336776733, -0.30022940039634705, 0.049222417175769806, -0.628862202167511, -0.26214298605918884, 0.23372815549373627, -0.4654649794101715, 0.6822786927223206, 0.46035757660865784, -0.19484058022499084, -0.18469862639904022, -0.4285387694835663, 0.04847623035311699, 0.7239677309989929, -0.4744586944580078, 1.202915072441101, 0.08340063691139221, -0.33345744013786316, -0.3383621275424957, -0.7166977524757385, 0.19511504471302032, -0.22803151607513428, -0.6916674375534058, 0.24182502925395966, -0.36563125252723694, -0.43795883655548096, -0.1320335865020752, 0.15453465282917023, -0.12872204184532166, 0.27596724033355713, 0.46531862020492554, 0.34416091442108154, -0.29233208298683167, 0.4150090515613556, 0.15000435709953308, 0.02936353161931038, 0.07351808995008469, 0.09144952148199081, 0.4296618402004242, -0.42994317412376404, -0.5003401041030884, -0.8252335786819458, 0.7192339301109314, 0.83742356300354, -0.27964267134666443, 0.8117399215698242, 0.554336428642273, -0.19575022161006927, 0.10332109779119492, -0.8365340828895569, -0.08268849551677704, -0.4392777979373932, 0.8564640879631042, -0.49306535720825195, -0.9886717796325684, 0.30039963126182556, -0.0907277837395668, -0.032428640872240067, 0.36884698271751404, 0.5037948489189148, -0.3132410943508148, 1.2278884649276733, 0.7450559735298157, -0.5724550485610962, 0.7233096957206726, -0.11506371945142746, 0.4764865040779114, -1.2047594785690308, -0.2599482238292694, -0.5042380094528198, -0.6373761892318726, -0.15526899695396423, -0.11287400871515274, 0.04386696219444275, 0.04392945393919945, -0.47469356656074524, -0.31879910826683044, -0.3692658543586731, 0.4156739115715027, 0.5206454396247864, 0.31922388076782227, -0.06999137252569199, 0.11333340406417847, 0.5730854272842407, -0.07840736210346222, -0.5946982502937317, -0.430520236492157, 1.0347375869750977, 0.33153945207595825, 0.6117467284202576, 0.3698546886444092, 0.5246624946594238, 0.28899404406547546, 0.5322687029838562, -0.7279826998710632, 0.6647250652313232, -0.10602343082427979, -0.21175971627235413, -0.22063209116458893, -0.38306981325149536, -0.5874689221382141, -0.0006303400732576847, -0.3004637658596039, -1.0823346376419067, 0.2549745738506317, 0.1633869707584381, -0.20193974673748016, 0.1894504725933075, -0.9601556062698364, 0.2810264229774475, -0.5212914347648621, -0.43447354435920715, -0.801555335521698, -0.2208435982465744, 0.16024170815944672, 0.0742449015378952, -0.05299853906035423, -0.0683034211397171, -0.3728935122489929, 0.7174695134162903, -0.13618357479572296, 0.7908953428268433, -0.1425042748451233, 0.10171797126531601, 0.19366730749607086, -0.17428146302700043, 0.5635654330253601, -0.19107994437217712, -0.3299533724784851, 0.2964945435523987, -0.6359821557998657, -0.4116336703300476, -1.0119138956069946, 0.7108739614486694, -0.9026068449020386, -0.9760305881500244, 0.06972949206829071, -0.6575812697410583, -0.24482494592666626, -0.336253821849823, -0.0451192744076252, 0.2794733941555023, -0.2615988850593567, 0.3823201060295105, 0.6920569539070129, -0.1509239375591278, 0.4006745517253876, 0.35641318559646606, 0.25468510389328003, -0.42986926436424255, 0.8750288486480713, -0.08086761087179184, 0.4741479456424713, 0.5995829105377197, -0.08040650188922882, 0.021588360890746117, -0.22947950661182404, -0.11246393620967865, 0.39405104517936707, -0.6598058342933655, -0.0433887243270874, -0.798652172088623, -0.047486357390880585, -0.3378604054450989, -0.5026625990867615, 0.10824243724346161, -0.10057490319013596, -0.6598502397537231, -0.23214484751224518, 0.6370484828948975, 0.5279174447059631, -0.11867328733205795, 0.20067816972732544, -0.7301313877105713, 0.09330711513757706, 0.4597054421901703, -0.05499730259180069, 0.3119426965713501, -0.49128562211990356, -0.27736377716064453, 0.40650686621665955, -0.18481653928756714, -0.7278567552566528, 0.335755854845047, 0.8375187516212463, 0.5221226811408997, 0.9096675515174866, -0.04436230659484863, 0.8649440407752991, -0.24395427107810974, 0.7596387267112732, 0.37627094984054565, -1.0848444700241089, 0.5434147119522095, -0.1589219719171524, 0.21841180324554443, 0.3572673499584198, 0.2752993702888489, -0.4726386070251465, -0.4622020125389099, -0.42897599935531616, -0.9377738237380981, 0.7164633274078369, 0.12634919583797455, 0.34191200137138367, -0.09355232119560242, 0.2593284845352173, -0.309696763753891, 0.22746846079826355, -0.5226646661758423, -0.10362254083156586, -0.04027336463332176, -0.4966306984424591, 0.11108313500881195, -0.6253756284713745, -0.049042195081710815, -0.21849805116653442, 0.9379518628120422, -0.11871281266212463, 0.6257685422897339, 0.27451643347740173, -0.0933246836066246, -0.02410079911351204, 0.45235782861709595, 0.6273950934410095, 0.3339560627937317, 0.06092612072825432, -0.24417823553085327, 0.5838371515274048, -0.33058518171310425, 0.05959499254822731, -0.4226056635379791, 0.08833020180463791, -0.35236769914627075, 0.4576883018016815, 1.0763390064239502, 0.27472519874572754, -0.6993905901908875, 0.34664735198020935, 0.1482890248298645, -0.3434576988220215, -0.17031970620155334, 0.42216959595680237, 0.18859611451625824, 0.5452342629432678, 0.40375062823295593, -0.14378449320793152, 0.05247652903199196, -0.8438364267349243, -0.20833683013916016, 0.33847159147262573, -0.38527822494506836, -0.39672282338142395, 0.4179593026638031, 0.5432771444320679, -0.5655074715614319, 0.8703184127807617, -0.14364702999591827, -0.7586310505867004, 0.8230713605880737, 0.48317527770996094, 1.0655075311660767, -0.3775525391101837, -0.055582594126462936, 0.27160683274269104, 0.4136248528957367, 0.2300206571817398, 0.40037909150123596, -0.04221948981285095, -0.5812101364135742, -0.23728851974010468, 0.058475520461797714, -0.3548263907432556, -0.13482765853405, -0.5878261923789978, -0.13812176883220673, -0.442392498254776, 0.09582709521055222, -0.5217093825340271, -0.04785360023379326, -0.7798577547073364, 0.19844211637973785, 0.325797975063324, 0.6032641530036926, -0.6633409261703491, 0.6090925335884094, 0.7596492171287537, -0.17589804530143738, -0.7527714371681213, 0.1711055189371109, -0.019489124417304993, -0.5983566045761108, 0.6424447298049927, 0.3013894259929657, -0.14147143065929413, 0.01853840798139572, -0.4179905951023102, -0.7364075183868408, 1.3027327060699463, 0.12084182351827621, -0.7118139266967773, 0.11933144927024841, 0.047369666397571564, 0.7045686841011047, -0.632477343082428, 0.9637742042541504, 0.48577815294265747, 0.5768725872039795, -0.04032282531261444, -0.7367020845413208, -0.2639935314655304, -0.6020993590354919, 0.07799208909273148, 0.26363104581832886, -0.9069602489471436, 0.5044854879379272, -0.324629008769989, -0.25569677352905273, 0.07839316129684448, 0.9245790839195251, 0.008615294471383095, 0.3929697871208191, 0.49991828203201294, 0.6172258257865906, 1.1037349700927734, -0.282703697681427, 1.0072253942489624, -0.3719012141227722, -0.024848779663443565, 0.8089475631713867, -0.5571180582046509, 0.8618584871292114, 0.3120373487472534, -0.05499204248189926, 0.4821034371852875, 0.3307023346424103, 0.15925155580043793, 0.3174225091934204, 0.0432695671916008, -0.40527811646461487, -0.15460333228111267, -0.23768724501132965, -0.1681760847568512, 0.11258189380168915, 0.6868261694908142, -0.13659384846687317, 0.3624960780143738, 0.3153395652770996, 0.20342488586902618, 0.029582655057311058, -0.572176992893219, 0.8547036051750183, 0.010403325781226158, -0.4693779945373535, 0.37126198410987854, -0.1305323988199234, 0.8621621131896973, -0.5063217282295227, 0.08351363986730576, -0.36439359188079834, 0.02891453541815281, -0.27637621760368347, -0.34733307361602783, 0.16510948538780212, 0.16107390820980072, -0.3078327476978302, 0.036653485149145126, 0.8027878999710083, -0.37874579429626465, -0.3057168424129486, 0.5655814409255981, 0.345271497964859, -0.004840446636080742, -0.06882026046514511, -0.5340700745582581, -0.058307066559791565, 0.104789137840271, -0.5687389969825745, 0.18408069014549255, 0.6185729503631592, 0.24888113141059875, 0.8600494861602783, 0.5501020550727844, -0.011801434680819511, -0.08556115627288818, 0.24517348408699036, 0.8181954622268677, -0.5449937582015991, -0.3159967362880707, -0.9023962020874023, 0.6346465349197388, -0.33069494366645813, -0.22838568687438965, 0.2579715847969055, 0.0982200875878334, 0.30367016792297363, -0.12354537844657898, 0.8163401484489441, -0.20020727813243866, 0.2590517997741699, -0.5909410715103149, 0.5922219157218933, -0.6167604327201843, 0.035448819398880005, -0.21405500173568726, -0.887041449546814, -0.22776861488819122, 0.47249773144721985, -0.5065976977348328, 0.2689216434955597, 0.7770881652832031, 0.9557722806930542, 0.18994799256324768, -0.009414434432983398, 0.6903128027915955, 0.36533036828041077, 0.28014421463012695, 1.0594195127487183, 0.8977586030960083, -0.20237936079502106, 0.5259968638420105, 0.029743680730462074, -0.4132536053657532, -0.4669186770915985, -0.5660713315010071, -1.0902596712112427, -0.338961124420166, -0.5034330487251282, 0.069227434694767, 0.36581605672836304, 0.9340092539787292, 0.6771400570869446, -0.6582749485969543, 0.03894064202904701, -0.0191236212849617, -0.13505952060222626, -0.1924113929271698, -0.20498067140579224, 0.12359052151441574, -0.269557386636734, -0.9918290972709656, 0.3732481300830841, 0.8091882467269897, -0.026723479852080345, 0.040386512875556946, -0.4207862317562103, -0.04264992102980614, 0.4796614348888397, 0.5094005465507507, 0.33519190549850464, -0.6800053715705872, -0.3569985032081604, 0.11590010672807693, -0.14638391137123108, 0.16983647644519806, 0.4957355260848999, -0.3270849287509918, 0.25243401527404785, 0.35702353715896606, 0.7866838574409485, -0.00767640070989728, 0.02823256514966488, 0.5962854623794556, -0.38231879472732544, 0.1667589545249939, 0.14945513010025024, 0.417878121137619, 0.1325957328081131, -0.5839182138442993, 0.5514209270477295, 0.06409286707639694, -0.6498706936836243, -0.3906753957271576, 0.2997523546218872, -0.930978536605835, 0.021094635128974915, 1.041043758392334, -0.2924104630947113, -0.40207910537719727, 0.3221197724342346, -0.5244935750961304, 0.17798662185668945, -0.671915590763092, 0.8462812304496765, 0.7639896273612976, -0.17186324298381805, -0.42995578050613403, -0.3930939733982086, -0.05625264719128609, 0.775944709777832, -1.1919735670089722, -0.22180335223674774, 0.47312813997268677, -0.42346182465553284, 0.22998079657554626, 0.3602139353752136, 0.29304978251457214, 0.2769336402416229, -0.290628045797348, 0.33444491028785706, -0.2687007188796997, -0.31215038895606995, -0.28107237815856934, 0.13694879412651062, -0.11145713180303574, -0.12287964671850204 ]
http://arxiv.org/abs/2402.10058v2
http://arxiv.org/pdf/2402.10058v2
Towards Safer Large Language Models through Machine Unlearning
2024-02-15T16:28:34
2024-06-05T04:57:09
Zheyuan Liu, Guangyao Dou, Zhaoxuan Tan, Yijun Tian, Meng Jiang
cs.CL
cs.CL
The rapid advancement of Large Language Models (LLMs) has demonstrated their vast potential across various domains, attributed to their extensive pretraining knowledge and exceptional generalizability. However, LLMs often encounter challenges in generating harmful content when faced with problematic prompts. To address this problem, existing work attempted to implement a gradient ascent based approach to prevent LLMs from producing harmful output. While these methods can be effective, they frequently impact the model utility in responding to normal prompts. To address this gap, we introduce Selective Knowledge negation Unlearning (SKU), a novel unlearning framework for LLMs, designed to eliminate harmful knowledge while preserving utility on normal prompts. Specifically, SKU is consisted of two stages: harmful knowledge acquisition stage and knowledge negation stage. The first stage aims to identify and acquire harmful knowledge within the model, whereas the second is dedicated to remove this knowledge. SKU selectively isolates and removes harmful knowledge in model parameters, ensuring the model's performance remains robust on normal prompts. Our experiments conducted across various LLM architectures demonstrate that SKU identifies a good balance point between removing harmful information and preserving utility.
[ -0.12931577861309052, -0.7438492774963379, 0.2786543369293213, -0.18965935707092285, -0.47078874707221985, 0.30445608496665955, -0.26111677289009094, -0.17901447415351868, -0.4379023313522339, 0.9925550818443298, -0.4168742299079895, -0.6061301231384277, -0.5543140172958374, -0.47251173853874207, -0.24312563240528107, 1.1384919881820679, 0.3338077962398529, -0.020149268209934235, -0.328398734331131, -0.08624842762947083, -0.5773310661315918, -0.5132195353507996, -0.9123337268829346, -0.47292715311050415, 0.5938240885734558, 0.41908591985702515, 0.5239812731742859, 0.4509735703468323, 0.1514623612165451, 0.24731576442718506, -0.23512881994247437, 0.016176924109458923, -0.7535207271575928, 0.4558497667312622, -0.20438554883003235, -0.46343329548835754, -0.2847275733947754, -0.027606068179011345, 0.5126643180847168, 0.7529614567756653, -0.3286100924015045, -0.0003188634873367846, 0.49942561984062195, 0.7528620362281799, -0.6432020664215088, -0.011741794645786285, -1.0089011192321777, -0.20603053271770477, -0.18148061633110046, -0.007533924654126167, -0.7223529815673828, -0.14129450917243958, -0.05294147878885269, -0.5347609519958496, -0.10165861994028091, -0.09323295205831528, 0.550328254699707, 0.4150828719139099, -0.4503619372844696, -0.17461638152599335, -0.6305081844329834, 1.1625310182571411, -0.7207905054092407, 0.4480380117893219, 0.48553940653800964, 0.356172651052475, -0.4426831901073456, -0.40064167976379395, -0.3726537823677063, -0.09969291090965271, 0.061229024082422256, -0.03556074947118759, -0.48610982298851013, 0.1208377555012703, 0.13092440366744995, -0.18142694234848022, -0.6036196351051331, 0.6494677662849426, -0.44489923119544983, -0.3694680631160736, 0.5052322149276733, 0.040978506207466125, 0.36226409673690796, -0.33071884512901306, -0.4507308602333069, 0.2101854532957077, -1.044834852218628, 0.11988581717014313, 0.6020205616950989, 0.3075806200504303, 0.24214020371437073, 0.4794209599494934, -0.009672882966697216, 0.4809887409210205, -0.2174718677997589, -0.32877349853515625, 0.3589147627353668, 0.2270168513059616, -0.29155081510543823, -0.15425871312618256, 0.732096254825592, 0.297573983669281, 0.3813062012195587, -0.5426098704338074, -0.3702758848667145, 0.0037955825682729483, 0.41303253173828125, -0.6035209894180298, -0.04045475646853447, 0.06468367576599121, -0.459989994764328, -0.5364512205123901, -0.397652268409729, -0.8688390851020813, -0.6417218446731567, -0.342102587223053, 0.38796958327293396, -0.5266132950782776, -0.2732837200164795, -0.016162116080522537, 0.08601101487874985, -0.036782409995794296, 0.27862662076950073, -0.5087236762046814, -0.09607197344303131, 0.616607129573822, 0.3287492096424103, -0.2515624165534973, 0.08261307328939438, -0.7372575998306274, 0.33195820450782776, -0.3024449348449707, 0.33477309346199036, -0.655247688293457, -0.40649858117103577, -0.07750975340604782, 0.016333788633346558, 0.07899689674377441, -0.7445083260536194, 0.6014929413795471, -0.7744388580322266, 0.210503488779068, 0.057740118354558945, -0.3683481812477112, -0.5179442763328552, 0.06261696666479111, -0.31551462411880493, 0.8566154837608337, 0.014846757985651493, -0.5267143249511719, 0.31314608454704285, -0.3889799118041992, -0.5897493362426758, 0.24629920721054077, -0.016734035685658455, -0.2940117418766022, 0.0197135079652071, -0.06523536145687103, 0.6777144074440002, -0.26003244519233704, 0.6103944778442383, -0.34380438923835754, -0.10445863753557205, -0.0605769082903862, -0.681512713432312, 0.9044850468635559, 0.4465039372444153, -0.22731681168079376, 0.33145973086357117, -0.9632492661476135, 0.014051503501832485, 0.02047303132712841, -0.4306522011756897, -0.864955484867096, -0.12881489098072052, -0.37958359718322754, 0.3659391701221466, 0.09718434512615204, -0.6739282011985779, -0.016649678349494934, -0.2913554310798645, 0.4761001765727997, 1.061712622642517, -0.031527966260910034, 0.7127176523208618, -0.2664353847503662, 0.5590173602104187, 0.16785229742527008, 0.19335469603538513, 0.020006002858281136, -0.5841262340545654, -0.6710095405578613, -0.37751469016075134, 0.07559061795473099, 0.5537452101707458, -1.0044912099838257, 0.5222908854484558, 0.053236667066812515, -0.5141324996948242, -0.4265437424182892, 0.660042405128479, 0.6147260069847107, 0.7875171303749084, 0.3123124837875366, 0.12297006696462631, -0.5144138932228088, -0.7507573962211609, -0.33677080273628235, -0.1554168313741684, -0.19870644807815552, 0.17904582619667053, 0.11237592995166779, -0.4786648154258728, 0.526566207408905, -0.3129764497280121, -0.1471075713634491, -0.512535810470581, 0.1126239076256752, 0.23885023593902588, 0.5457973480224609, 0.34024322032928467, -0.633819043636322, -0.2757556140422821, -0.018154148012399673, -0.8621674180030823, -0.1587853878736496, -0.0710344910621643, -0.24478769302368164, 0.34957149624824524, 0.7006993889808655, -0.568231463432312, 0.5563099384307861, 0.3417140543460846, 0.09158724546432495, 0.2777768671512604, -0.19015370309352875, -0.34230586886405945, -0.9937698841094971, 0.09222463518381119, -0.04545458033680916, -0.08654822409152985, -0.8547503352165222, 0.07282767444849014, 0.03550373390316963, 0.02784673124551773, -0.5229709148406982, 0.6348938941955566, -0.24030433595180511, 0.39408087730407715, -0.32270607352256775, 0.023773660883307457, -0.06935428082942963, 0.4533522427082062, -0.07209271937608719, 0.3408041000366211, 0.5088449716567993, -0.9112172722816467, -0.05351836606860161, 0.036537520587444305, -0.24877779185771942, 0.177090123295784, -0.473932683467865, 0.17399676144123077, -0.40094879269599915, -0.07615821063518524, -0.8632792234420776, 0.1491289734840393, 0.2655872404575348, -0.42837458848953247, 0.39904290437698364, -0.25732123851776123, -0.37655994296073914, -0.32982292771339417, -0.06070664897561073, 0.3757368326187134, 0.9344972372055054, -0.5951107144355774, 0.6491478681564331, 0.5382574200630188, -0.2067045420408249, -0.7740024924278259, -0.42206528782844543, -0.20701223611831665, -0.4913731813430786, -0.4590035080909729, -0.1179894506931305, -0.11604470759630203, -0.3444535434246063, -0.11845055222511292, -0.07871028035879135, 0.009653838351368904, 0.35015249252319336, 0.5030072927474976, 0.5859277248382568, 0.0716857984662056, 0.2997729778289795, 0.10888483375310898, -0.3607983887195587, 0.14048200845718384, -0.22201725840568542, 0.6781815886497498, 0.4568615257740021, -0.17307573556900024, -0.2774536907672882, 0.20639319717884064, 0.6670859456062317, -0.24712568521499634, 0.8321552872657776, 0.5737741589546204, -0.5179861783981323, -0.5852624177932739, -0.48491472005844116, -0.12315593659877777, -0.5470981001853943, 0.38034504652023315, 0.049237724393606186, -0.9657822847366333, 0.373157799243927, -0.13647785782814026, 0.4344525635242462, 0.16271328926086426, 0.4095415472984314, -0.06339070200920105, 1.0900827646255493, 0.6056031584739685, -0.29569029808044434, 0.2962271571159363, -0.1327485740184784, 0.5466901659965515, -0.7931934595108032, -0.4924754202365875, -0.5075423717498779, -0.18383817374706268, -0.28125646710395813, -0.4403148293495178, 0.25352180004119873, 0.5416848063468933, -0.4878496825695038, 0.17329487204551697, -0.2922193109989166, 0.5353291630744934, 0.5064329504966736, 0.019920645281672478, 0.27640238404273987, 0.12101467698812485, -0.5313188433647156, 0.008984614163637161, -0.6105599999427795, -0.7121255993843079, 1.2497375011444092, 0.3440100848674774, 0.9040430188179016, 0.09909602999687195, 0.5801560282707214, 0.09751494973897934, 0.4308967888355255, -0.6602924466133118, 0.7063615322113037, -0.2962527871131897, -0.6153106689453125, -0.48829886317253113, -0.7220841646194458, -0.911142885684967, 0.30137893557548523, -0.11986460536718369, -0.9040537476539612, -0.12780888378620148, 0.0756765604019165, -0.4260152280330658, 0.7184889912605286, -0.6961405873298645, 0.3717080354690552, -0.24567534029483795, -0.36209431290626526, -0.1714753955602646, -0.5850617289543152, 0.5684626698493958, -0.4054485559463501, 0.5451223850250244, -0.14756155014038086, 0.07963487505912781, 0.7851114869117737, -0.011851822026073933, 1.029628038406372, -0.33283138275146484, -0.21372976899147034, 0.21876081824302673, 0.3357009291648865, 0.6057032942771912, 0.019740574061870575, -0.2961718440055847, 0.17104960978031158, -0.4417605698108673, -0.3298182189464569, -0.5406744480133057, 0.6726087331771851, -0.6766712665557861, -0.7538340091705322, -0.1393776834011078, -0.730869710445404, -0.35111507773399353, 0.43368223309516907, 0.23932409286499023, 0.1699426919221878, 0.028400059789419174, 0.3408319056034088, 0.8650804758071899, -0.64960116147995, 0.645354151725769, 0.7374451756477356, -0.26603081822395325, -0.2516130208969116, 1.1648746728897095, 0.023993220180273056, 0.5570943355560303, 0.21295048296451569, 0.18257692456245422, -0.36025872826576233, -0.8132779598236084, -0.21420833468437195, 0.1351340413093567, -0.7813648581504822, -0.39131245017051697, -0.6964447498321533, -0.36482927203178406, -0.44608235359191895, -0.06833542138338089, -0.140786811709404, -0.12039162218570709, -0.4650951623916626, -0.3356122076511383, 0.09359225630760193, 0.8697333335876465, -0.05839812755584717, 0.21408893167972565, -0.8471985459327698, 0.16931034624576569, 0.26791703701019287, 0.2143121212720871, 0.3810141682624817, -0.638735830783844, 0.09880654513835907, 0.08650373667478561, -0.33829641342163086, -0.22898335754871368, 0.6314907073974609, -0.15742501616477966, 1.0165387392044067, 0.9485291242599487, 0.4950493574142456, 0.448295921087265, -0.3246059715747833, 0.563713788986206, 0.48133793473243713, -0.6429396867752075, 0.37438052892684937, -0.4119824171066284, 0.09210944175720215, 0.4289766848087311, 0.5848883390426636, -0.5592011213302612, -0.46737104654312134, -0.5776169300079346, -1.0634297132492065, 0.4986704885959625, -0.10796290636062622, 0.2625839114189148, -0.040864247828722, 0.30487266182899475, 0.4721754193305969, 0.3748762309551239, -0.6838715672492981, -0.23276957869529724, 0.040956608951091766, -0.05730801820755005, -0.30033546686172485, -0.30839547514915466, -0.10143887996673584, -0.18848037719726562, 0.9119240641593933, 0.1181088387966156, -0.28721025586128235, -0.524105429649353, -0.3539271354675293, -0.30459514260292053, 0.48730671405792236, 0.20963558554649353, 0.29852747917175293, -0.014921585097908974, 0.24458035826683044, 0.1626254767179489, -0.4542270600795746, 0.16069546341896057, -0.4350429177284241, -0.5649325251579285, -0.4117956757545471, 0.19819767773151398, 0.5087689757347107, 0.2883082628250122, -0.7414613962173462, 0.3253704607486725, 0.1891404688358307, -0.20534759759902954, 0.10465268045663834, 0.2976584732532501, 0.030404916033148766, -0.09617588669061661, 0.36132076382637024, 0.2246517539024353, -0.2038147747516632, -0.41840246319770813, 0.28918513655662537, 0.5772395730018616, -0.5489694476127625, -0.16319088637828827, 0.49890297651290894, 0.38961049914360046, -0.2367819994688034, 0.7541031241416931, -0.26298680901527405, -0.5218401551246643, 0.36130863428115845, 0.6839246153831482, 0.5912315845489502, -0.36795035004615784, 0.3959510028362274, 0.2272043526172638, 0.46779105067253113, 0.16772443056106567, 0.09947504848241806, 0.24195200204849243, -0.8613987565040588, -0.21944740414619446, -0.7878129482269287, 0.10615617781877518, 0.7108603119850159, -0.6366534233093262, 0.014572844840586185, -0.6979888677597046, 0.13557705283164978, -0.23069624602794647, -0.20813961327075958, -0.40985581278800964, 0.11210113018751144, 0.0290420763194561, 0.6400023698806763, -0.7930818200111389, 0.930745542049408, 0.4058976471424103, -0.19037969410419464, -0.9260704517364502, -0.1215888261795044, 0.2683953046798706, -0.9998714327812195, 0.5787262916564941, 0.17681384086608887, -0.04900452122092247, -0.06867647916078568, -0.45006588101387024, -0.6545067429542542, 0.9063684344291687, 0.5710000395774841, -0.8269098997116089, 0.04738990217447281, 0.1503947675228119, 0.2071518748998642, -0.11516543477773666, -0.06820547580718994, 0.4096578061580658, 0.3973633050918579, 0.40637943148612976, -0.4979812502861023, 0.1687477082014084, -0.20848329365253448, -0.26690852642059326, 0.3440552055835724, -0.38869503140449524, 0.7509674429893494, -0.4649440050125122, -0.23872818052768707, 0.1557878702878952, 0.3188895285129547, 0.31149953603744507, 0.33111947774887085, 0.7061237096786499, 0.6464233994483948, 1.1245285272598267, 0.11057161539793015, 0.6559658050537109, -0.051394034177064896, -0.185869500041008, 1.0390686988830566, -0.37628787755966187, 0.678126871585846, 0.46074414253234863, 0.22967790067195892, 0.2231919914484024, 0.3897741138935089, 0.30355238914489746, 0.6266440153121948, 0.46661826968193054, -0.33015868067741394, -0.6284580826759338, -0.11539308726787567, -0.2610180974006653, 0.3373377323150635, 0.2823255956172943, -0.3937605023384094, -0.3236803114414215, 0.2662879228591919, 0.2761251628398895, 0.023260507732629776, -0.4472030997276306, 0.8258992433547974, 0.18113628029823303, -0.5366770625114441, 0.4883096218109131, -0.09567885845899582, 0.7714284658432007, -0.6304660439491272, 0.028843380510807037, -0.1419643610715866, 0.38274791836738586, -0.17151647806167603, -0.5125318169593811, 0.09780536592006683, 0.11170526593923569, -0.19189785420894623, -0.2121780514717102, 0.9089825749397278, -0.39359158277511597, -0.43599843978881836, 0.6255583763122559, 0.5687131881713867, 0.08876851201057434, -0.016062112525105476, -0.5435493588447571, -0.25653114914894104, 0.18464361131191254, -0.15716668963432312, 0.7449418902397156, 0.5451955199241638, -0.35086381435394287, 1.0152093172073364, 1.0446903705596924, -0.08328958600759506, 0.13476291298866272, 0.31333038210868835, 1.1134072542190552, -0.3244227468967438, -0.4388907253742218, -0.6256800293922424, 0.5449915528297424, 0.07006625086069107, -0.2304726392030716, 0.8884767889976501, 0.4894627332687378, 0.8330596685409546, 0.2806697189807892, 0.9009758234024048, 0.37517210841178894, 0.4276089668273926, -0.4805822968482971, 1.223044753074646, -0.4743749499320984, 0.6737073659896851, -0.24703893065452576, -0.7879835963249207, -0.39367789030075073, 0.3338182270526886, -0.2932693064212799, 0.02530093677341938, 0.3612731397151947, 0.9288977384567261, 0.23669633269309998, 0.09310896694660187, 0.7256528735160828, 0.31623563170433044, 0.3728772699832916, 0.4391986131668091, 0.9902270436286926, 0.13408517837524414, 0.7067108750343323, -0.1701088696718216, -0.3126722276210785, 0.1383572518825531, -0.8424345850944519, -1.1513108015060425, -0.3686661720275879, 0.033677417784929276, -0.3027432858943939, 0.1404799073934555, 0.6770106554031372, 0.5992467403411865, -0.7461665272712708, -0.12286031246185303, -0.06206028535962105, 0.3908618688583374, 0.08204121142625809, -0.17349039018154144, 0.06917683035135269, -0.4585050344467163, -0.3606996536254883, 0.6079027056694031, 0.16303299367427826, -0.0046772100031375885, -0.24109528958797455, -0.4212086498737335, -0.015912815928459167, 0.014594814740121365, 0.5255632400512695, 0.2281835377216339, -0.6178810000419617, -0.20136728882789612, -0.08550602942705154, 0.0340990386903286, -0.2597583532333374, 0.7185025811195374, -0.8439396619796753, 0.19024279713630676, 0.39845210313796997, 0.6285490989685059, -0.01845456101000309, -0.3106268644332886, 0.5552929639816284, -0.7833986282348633, 0.09110825508832932, 0.25634968280792236, 0.38227206468582153, 0.19933980703353882, -0.5606693625450134, 0.31351420283317566, 0.1426241546869278, -0.4390888810157776, -1.0342284440994263, 0.17086191475391388, -0.7165464758872986, -0.6131318807601929, 1.417246699333191, -0.19251547753810883, -0.28977519273757935, -0.5111113786697388, 0.008209720253944397, 0.3917105197906494, -0.6462528109550476, 0.6863791942596436, 0.39246341586112976, 0.21058884263038635, 0.013114295899868011, -0.5403607487678528, 0.33096233010292053, 0.31698310375213623, -0.6352548599243164, 0.3686861991882324, 0.32916077971458435, 0.6015149354934692, -0.042553942650556564, 0.22798974812030792, -0.28641214966773987, 0.04592828452587128, -0.4205623269081116, 0.07752251625061035, -0.3358438014984131, -0.6937077641487122, -0.4106445014476776, 0.24249018728733063, -0.12852945923805237, -0.12101104855537415 ]
http://arxiv.org/abs/2402.10052v1
http://arxiv.org/pdf/2402.10052v1
Unmemorization in Large Language Models via Self-Distillation and Deliberate Imagination
2024-02-15T16:21:14
2024-02-15T16:21:14
Yijiang River Dong, Hongzhou Lin, Mikhail Belkin, Ramon Huerta, Ivan Vulić
cs.CL
cs.CL, cs.AI
While displaying impressive generation capabilities across many tasks, Large Language Models (LLMs) still struggle with crucial issues of privacy violation and unwanted exposure of sensitive data. This raises an essential question: how should we prevent such undesired behavior of LLMs while maintaining their strong generation and natural language understanding (NLU) capabilities? In this work, we introduce a novel approach termed deliberate imagination in the context of LLM unlearning. Instead of trying to forget memorized data, we employ a self-distillation framework, guiding LLMs to deliberately imagine alternative scenarios. As demonstrated in a wide range of experiments, the proposed method not only effectively unlearns targeted text but also preserves the LLMs' capabilities in open-ended generation tasks as well as in NLU tasks. Our results demonstrate the usefulness of this approach across different models and sizes, and also with parameter-efficient fine-tuning, offering a novel pathway to addressing the challenges with private and sensitive data in LLM applications.
[ -0.2208254188299179, -0.8644283413887024, 0.7294414639472961, 0.0317717120051384, -0.4029983878135681, 0.2969718277454376, -0.4825275242328644, -0.10355951637029648, -0.26771607995033264, 0.9362755417823792, -0.6552800536155701, -0.3444373309612274, -0.27607256174087524, -0.1571718156337738, -0.3053308129310608, 1.029308557510376, -0.2131710946559906, -0.3592231571674347, -0.12625639140605927, 0.06703025102615356, -0.24673610925674438, -0.6041706204414368, -0.46949249505996704, -0.3596256673336029, 0.4554230570793152, 0.37578895688056946, 0.4048541784286499, 0.7080615758895874, 0.07046405225992203, 0.3894813358783722, 0.055080000311136246, 0.45763564109802246, -0.8792047500610352, 0.4030081331729889, -0.5006549954414368, -0.4762449562549591, 0.02581169083714485, 0.09732188284397125, 0.7461727857589722, 0.6832635402679443, -0.24348343908786774, 0.26428893208503723, 0.464800626039505, 0.7865465879440308, -0.7479310631752014, 0.07495301961898804, -0.9873979091644287, 0.17694954574108124, -0.2323879897594452, -0.2868320941925049, -0.5741957426071167, 0.1395759880542755, -0.22169262170791626, -0.356121301651001, 0.3150578439235687, 0.0026646344922482967, 0.4662854075431824, 0.44222307205200195, -0.2663325369358063, -0.10530367493629456, -1.2283328771591187, 0.8894438743591309, -0.7887254357337952, 0.17908094823360443, 0.3767983913421631, 0.22578230500221252, -0.5634105801582336, -0.8016144633293152, -0.6914737224578857, 0.111981101334095, 0.11896155774593353, 0.1113063171505928, -0.26470932364463806, -0.04658329486846924, 0.23053035140037537, 0.4727044403553009, -0.4019812345504761, 0.3586426377296448, -0.4219698905944824, -0.15291160345077515, 0.7049713134765625, 0.17729081213474274, 0.11069979518651962, -0.006928618066012859, -0.4173333942890167, 0.15337349474430084, -0.7133973836898804, -0.23231764137744904, 0.5495556592941284, 0.15948258340358734, 0.286037802696228, 0.733532726764679, -0.20265059173107147, 0.2749994695186615, 0.08220263570547104, 0.05776779353618622, 0.1741477996110916, -0.14001698791980743, -0.44727709889411926, -0.04697776213288307, 0.9212614893913269, 0.029857290908694267, 0.3010363280773163, -0.42343202233314514, -0.3057757318019867, 0.0556953065097332, 0.3697548508644104, -0.6887169480323792, -0.19657514989376068, 0.3532070219516754, -0.34860214591026306, -0.3354496657848358, -0.4290946424007416, -0.8104833364486694, -0.4133196771144867, -0.44687092304229736, 0.21715523302555084, -0.32634517550468445, -0.3329375982284546, 0.28971290588378906, 0.11431034654378891, -0.3883510231971741, 0.028357727453112602, -1.1423677206039429, 0.16439288854599, 0.5766742825508118, 0.41310253739356995, -0.025026367977261543, -0.42881542444229126, -0.15666617453098297, 0.5052614212036133, -0.24080780148506165, 0.3889501988887787, -0.3512457311153412, -0.4078585207462311, -0.21981437504291534, -0.2425089031457901, -0.03065861389040947, -0.5342589020729065, 0.43104273080825806, -0.37530046701431274, 0.37046265602111816, 0.12134881317615509, -0.6791279911994934, -0.2223551720380783, 0.130740687251091, -0.5289921760559082, 0.8799339532852173, -0.189935103058815, -0.6509639620780945, 0.3182811439037323, -0.4361710250377655, -0.10308670997619629, -0.05966465547680855, -0.38062000274658203, -0.4279523193836212, 0.6515900492668152, 0.23431329429149628, 0.4619549810886383, -0.16924315690994263, 0.5504706501960754, -0.15973114967346191, -0.06251709908246994, 0.4920775592327118, -1.033226728439331, 0.5820237398147583, 0.5653928518295288, -0.26602521538734436, -0.023582905530929565, -0.8176058530807495, 0.2227277159690857, 0.325764536857605, -0.3343820571899414, -0.4319763481616974, 0.03556912764906883, -0.28798672556877136, 0.31658732891082764, 0.42179811000823975, -0.6080617308616638, 0.26524609327316284, -0.5167479515075684, 0.5247204899787903, 0.852025032043457, 0.2150571644306183, 0.4941040575504303, -0.258053183555603, 0.35820385813713074, 0.1354617178440094, 0.10838769376277924, -0.24899932742118835, -0.1600680947303772, -0.7659395933151245, -0.20629625022411346, 0.19156061112880707, 0.18930579721927643, -0.6722506880760193, 0.37450721859931946, -0.07624317705631256, -0.4255107343196869, -0.5908569097518921, 0.5711973905563354, 0.4200115203857422, 0.3734948933124542, 0.24412263929843903, 0.018835198134183884, -0.5069864988327026, -0.862358570098877, -0.4759686589241028, -0.005272353067994118, -0.10779587924480438, 0.17288167774677277, 0.3156049847602844, -0.24522064626216888, 1.0087450742721558, -0.44451987743377686, -0.30753740668296814, -0.4456802308559418, 0.5052703619003296, 0.1285843849182129, 0.6381875276565552, 0.2892967760562897, -0.8061280250549316, -0.2952849566936493, -0.185469388961792, -0.86826092004776, -0.10127926617860794, -0.6173698902130127, -0.10631629824638367, 0.1696004867553711, 0.6585711240768433, -0.5700678825378418, 0.47811782360076904, 0.44931066036224365, -0.1504959762096405, 0.28152358531951904, -0.7072017192840576, -0.18654663860797882, -1.167487621307373, -0.00775253726169467, -0.3395078182220459, -0.07561404258012772, -0.7107897996902466, 0.15607726573944092, 0.10761374235153198, 0.04197874665260315, -0.561750590801239, 0.5334701538085938, -0.8511050939559937, 0.3907957375049591, -0.563099205493927, 0.01094040647149086, 0.07272841781377792, 0.5630577802658081, -0.06424549221992493, 0.5347610116004944, 0.4723201096057892, -0.4670346677303314, -0.022014016285538673, 0.08562294393777847, -0.4476214647293091, -0.12903092801570892, -0.30347928404808044, 0.4450107514858246, -0.594477653503418, 0.048528674989938736, -0.8725550770759583, 0.004011132754385471, -0.05114112049341202, -0.2200058102607727, 0.39342620968818665, -0.08984117954969406, -0.7227123379707336, -0.2851473391056061, -0.1861715018749237, 0.4781143367290497, 0.6468481421470642, -0.7466240525245667, 0.689913809299469, 0.5063081383705139, 0.07109437137842178, -0.6261608004570007, -0.794166088104248, 0.17551419138908386, -0.6178918480873108, -0.3713727295398712, 0.25477179884910583, -0.2646123766899109, -0.35744261741638184, -0.10493259876966476, -0.10544949769973755, 0.014039892703294754, 0.21615272760391235, 0.39270803332328796, 0.13245940208435059, 0.11742869019508362, -0.06391480565071106, 0.1986277550458908, -0.07977822422981262, 0.139133483171463, -0.4107058346271515, 0.6836745142936707, 0.255370557308197, -0.2939525246620178, -0.17516960203647614, 0.2528859078884125, 0.4116398096084595, -0.3008795380592346, 0.7829210162162781, 0.3994077742099762, -0.4162207543849945, -0.7332131266593933, -0.6562362313270569, -0.03553244099020958, -0.6375526785850525, 0.16165316104888916, -0.24640779197216034, -0.96915602684021, 0.501169741153717, -0.34848806262016296, 0.34319132566452026, 0.09412655979394913, 0.7603658437728882, -0.06642244011163712, 0.8307089805603027, 0.6988795399665833, -0.03222072124481201, 0.2595950961112976, -0.11356113851070404, 0.3478242754936218, -0.9521257877349854, -0.20179662108421326, -0.14486734569072723, -0.5294669270515442, -0.4684758484363556, -0.6188162565231323, 0.03252843767404556, 0.34724974632263184, 0.040896281599998474, 0.0853535607457161, -0.3291352093219757, 0.9083918929100037, 0.36511513590812683, -0.01931043714284897, 0.39838936924934387, 0.043238747864961624, -0.36986401677131653, -0.17595644295215607, -0.503254771232605, -0.6212854385375977, 1.2773246765136719, 0.32543042302131653, 0.8917087316513062, 0.08146781474351883, 1.1691104173660278, -0.08067905902862549, 0.20169055461883545, -0.33546072244644165, 0.6246815919876099, -0.20949044823646545, -0.7660036683082581, -0.5531072616577148, -0.526443600654602, -1.203500509262085, 0.4387941360473633, -0.11405612528324127, -1.0868133306503296, 0.06650333851575851, 0.22523193061351776, -0.3847828507423401, 0.537764310836792, -0.6467702388763428, 0.7627279162406921, -0.2819680869579315, -0.6057831048965454, -0.23668645322322845, -0.2303086668252945, 0.4888423979282379, -0.5137477517127991, 0.40260517597198486, -0.3096143901348114, 0.011303999461233616, 0.43157029151916504, -0.2528499364852905, 1.1060080528259277, 0.019329331815242767, -0.32556167244911194, 0.5393874049186707, 0.3774675726890564, 0.6054559350013733, 0.11930886656045914, -0.019176151603460312, 0.09416641294956207, -0.42795494198799133, -0.14371104538440704, -0.6119349598884583, 0.9117258191108704, -0.44857457280158997, -0.8461188673973083, -0.18289485573768616, -0.8176169395446777, -0.3333154618740082, 0.40110504627227783, 0.35605838894844055, 0.0879475399851799, -0.4249081611633301, 0.13435326516628265, 0.7669561505317688, -0.2539612054824829, 0.7509461045265198, 0.7380348443984985, -0.3924785554409027, -0.05387476086616516, 0.9681572318077087, 0.14673103392124176, 0.33995890617370605, 0.26268795132637024, 0.3670516610145569, -0.5063315629959106, -0.907721996307373, -0.25872528553009033, 0.19756372272968292, -0.6419193148612976, 0.0554465614259243, -0.7063968777656555, -0.17892518639564514, -0.2841218411922455, 0.008998937904834747, -0.46756377816200256, -0.44457873702049255, -0.5323632955551147, -0.25209617614746094, 0.08677032589912415, 0.5880550742149353, -0.1991042196750641, 0.16217653453350067, -0.7665567994117737, 0.39966830611228943, 0.18656088411808014, 0.25648990273475647, 0.10852675139904022, -0.6674129366874695, -0.04820948839187622, 0.16903753578662872, -0.3328191041946411, -0.35073772072792053, 0.7855138182640076, 0.1080608144402504, 0.6140527725219727, 0.4519056975841522, 0.2145351618528366, 0.5965520143508911, -0.8282711505889893, 0.4803389012813568, 0.05954758822917938, -0.7385075092315674, 0.4391185939311981, -0.4908917546272278, 0.4688492715358734, 0.8190394639968872, 0.2413581758737564, -0.436052531003952, -0.6257616877555847, -0.7193713784217834, -1.106170654296875, 0.369588166475296, 0.2897430658340454, 0.4034484624862671, -0.03984352946281433, 0.33535999059677124, 0.23818258941173553, 0.3193075656890869, -0.8011882901191711, -0.09356393665075302, 0.1409692019224167, -0.242559552192688, -0.25290486216545105, -0.3223302960395813, -0.14709389209747314, -0.12404783070087433, 0.47428327798843384, -0.003387167351320386, -0.20041994750499725, -0.17670458555221558, -0.19896486401557922, -0.19114474952220917, 0.3710399866104126, 0.20525628328323364, 0.5292329788208008, 0.1596498042345047, 0.32734087109565735, 0.12995322048664093, -0.4616662561893463, 0.08826909959316254, -0.17330457270145416, -0.219266876578331, -0.36368945240974426, -0.052960947155952454, 0.584291398525238, 0.321519672870636, -0.7987030744552612, 0.13229797780513763, -0.1529955416917801, -0.2117534726858139, -0.4176338016986847, 0.33328109979629517, 0.3127709627151489, 0.1905060112476349, 0.21748366951942444, -0.08290331065654755, 0.08527583628892899, -0.6596396565437317, 0.14856699109077454, 0.3529413342475891, 0.07394953817129135, -0.2016686499118805, 0.9045335054397583, -0.09684140980243683, -0.06025717779994011, 0.6582197546958923, -0.2282271683216095, -0.20449446141719818, 0.3592551052570343, 0.7607840895652771, 1.1080539226531982, -0.3777520954608917, 0.04339783266186714, 0.193786159157753, 0.3725959062576294, -0.2351183146238327, 0.3075389564037323, -0.02973281778395176, -0.9043204188346863, -0.3464089632034302, -0.719883143901825, 0.0026975604705512524, 0.585274875164032, -0.5217501521110535, -0.11938481032848358, -0.6439688801765442, 0.0711931437253952, 0.1283266544342041, -0.22488515079021454, -0.5405595898628235, 0.15480586886405945, 0.3441351652145386, 0.4760109782218933, -0.5731492638587952, 1.0328655242919922, 0.16579744219779968, -0.15669028460979462, -0.7712247967720032, 0.03505299240350723, 0.10969559848308563, -0.7147229313850403, 0.40610137581825256, 0.19646331667900085, -0.0811162069439888, 0.04408714547753334, -0.38528719544410706, -0.8506880402565002, 0.9334834218025208, 0.39756885170936584, -0.9281759858131409, 0.07592419534921646, 0.5874680280685425, 0.6424190998077393, -0.08149256557226181, -0.30303242802619934, 0.7017918229103088, 0.3172667622566223, -0.0025806922931224108, -0.6289687156677246, 0.04310153052210808, -0.23197536170482635, -0.05747806653380394, 0.3733105957508087, -0.6295781135559082, 0.8168413043022156, -0.3722170889377594, -0.5017091631889343, -0.009618413634598255, 0.7206684350967407, 0.13938945531845093, 0.11834357678890228, 0.3704974055290222, 0.5189449787139893, 0.8855406045913696, 0.14918012917041779, 0.6402057409286499, -0.16397495567798615, 0.19492480158805847, 1.5158742666244507, -0.42487242817878723, 0.7363842129707336, 0.5719956159591675, 0.20007945597171783, -0.020343856886029243, 0.21347591280937195, 0.017926985397934914, 0.5565705895423889, 0.4366361200809479, -0.5147837400436401, -0.27723005414009094, 0.056858889758586884, 0.022015411406755447, 0.7144176363945007, 0.4134586453437805, -0.45900875329971313, -0.3392351269721985, 0.14002728462219238, 0.045542795211076736, 0.5274626612663269, -0.2244366556406021, 0.8234344124794006, 0.13576437532901764, -0.6745290756225586, 0.5986505746841431, 0.01109855342656374, 0.5678368210792542, -0.4331493377685547, 0.14721760153770447, -0.13219565153121948, 0.4550172984600067, -0.034328244626522064, -0.7560151815414429, 0.33530446887016296, 0.2167883813381195, -0.09597588330507278, -0.6000727415084839, 0.564622163772583, -0.7319279313087463, -0.6119701266288757, 0.1863994002342224, 0.6099718809127808, 0.21067656576633453, -0.10920608043670654, -0.6017413139343262, -0.02652519941329956, 0.1890704184770584, -0.5165696144104004, 0.6810776591300964, 0.974291980266571, 0.007975483313202858, 0.7904199957847595, 0.7707799673080444, 0.023755483329296112, -0.006094729527831078, 0.1594834178686142, 1.0691289901733398, -0.6604297161102295, -0.6240594983100891, -1.2081923484802246, 0.38959431648254395, 0.025027461349964142, -0.28720906376838684, 0.9856206774711609, 0.7279618978500366, 0.9064652323722839, 0.06939084827899933, 0.8265018463134766, 0.34981366991996765, 0.4191950857639313, -0.6081432104110718, 1.0074634552001953, -0.3612104058265686, 0.47612422704696655, -0.13560886681079865, -0.7839057445526123, -0.1177644357085228, 0.38229602575302124, -0.24476924538612366, -0.07655183225870132, 0.5952376127243042, 0.5388203859329224, -0.0382220596075058, 0.028317490592598915, 0.5602114796638489, 0.32961657643318176, 0.29820340871810913, 0.5551766753196716, 0.9684615731239319, 0.0667041689157486, 0.3160015940666199, -0.3973902761936188, -0.1997377723455429, 0.34581688046455383, -1.008437156677246, -1.1992987394332886, -0.47242024540901184, -0.13364501297473907, -0.031621307134628296, -0.15301793813705444, 0.747726559638977, 0.2718304991722107, -0.5296106338500977, -0.18314260244369507, -0.24885834753513336, -0.23457016050815582, -0.04223186522722244, -0.11287245899438858, 0.10889976471662521, -0.37252286076545715, -0.8707060217857361, 0.7713350057601929, 0.3114604651927948, 0.35648322105407715, -0.6166618466377258, 0.2517699897289276, -0.010386615991592407, 0.3730514645576477, 0.39066484570503235, 0.3589729070663452, -0.46418625116348267, -0.08116944879293442, -0.3318342864513397, 0.07443655282258987, -0.0886182188987732, 0.9388713836669922, -0.9007107019424438, 0.585951030254364, 0.2036670297384262, 0.5334031581878662, 0.6288760304450989, 0.028662150725722313, 0.6124734282493591, -1.0145899057388306, 0.4670572876930237, 0.393253356218338, 0.4781603515148163, 0.12746837735176086, -0.6189119219779968, 0.3442133665084839, -0.23923295736312866, -0.5367584228515625, -0.9534009695053101, 0.2760440409183502, -0.5945715308189392, -0.7961681485176086, 1.1352556943893433, -0.09422655403614044, -0.35474541783332825, -0.24067343771457672, -0.1889270544052124, 0.24397650361061096, -0.11264313757419586, 1.1872498989105225, 0.527172863483429, 0.03173919767141342, 0.04272763431072235, -0.4837086796760559, 0.5092617273330688, 0.33979347348213196, -0.7830947041511536, 0.8635100722312927, 0.512121319770813, 0.21494729816913605, -0.06244400516152382, 0.7391042113304138, -0.20482970774173737, -0.2276279777288437, -0.048233434557914734, -0.08656438440084457, -0.32059305906295776, -0.5279068350791931, -0.32039207220077515, 0.09082826226949692, -0.033886250108480453, -0.10829038172960281 ]
http://arxiv.org/abs/2402.10051v1
http://arxiv.org/pdf/2402.10051v1
SwissNYF: Tool Grounded LLM Agents for Black Box Setting
2024-02-15T16:15:38
2024-02-15T16:15:38
Somnath Sendhil Kumar, Dhruv Jain, Eshaan Agarwal, Raunak Pandey
cs.AI
cs.AI, cs.CL
While Large Language Models (LLMs) have demonstrated enhanced capabilities in function-calling, these advancements primarily rely on accessing the functions' responses. This methodology is practical for simpler APIs but faces scalability issues with irreversible APIs that significantly impact the system, such as a database deletion API. Similarly, processes requiring extensive time for each API call and those necessitating forward planning, like automated action pipelines, present complex challenges. Furthermore, scenarios often arise where a generalized approach is needed because algorithms lack direct access to the specific implementations of these functions or secrets to use them. Traditional tool planning methods are inadequate in these cases, compelling the need to operate within black-box environments. Unlike their performance in tool manipulation, LLMs excel in black-box tasks, such as program synthesis. Therefore, we harness the program synthesis capabilities of LLMs to strategize tool usage in black-box settings, ensuring solutions are verified prior to implementation. We introduce TOPGUN, an ingeniously crafted approach leveraging program synthesis for black box tool planning. Accompanied by SwissNYF, a comprehensive suite that integrates black-box algorithms for planning and verification tasks, addressing the aforementioned challenges and enhancing the versatility and effectiveness of LLMs in complex API interactions. The public code for SwissNYF is available at https://github.com/iclr-dummy-user/SwissNYF.
[ -0.2823624610900879, -0.8383697867393494, 0.6217221617698669, 0.4011506140232086, -0.34055957198143005, 0.4848082959651947, -0.14697006344795227, -0.37163427472114563, 0.177535280585289, 0.7767316699028015, -0.9299321174621582, -0.7170196771621704, -0.4153567850589752, 0.03239165246486664, -0.4815841317176819, 0.8281677961349487, -0.05327700078487396, -0.32183387875556946, -0.07849907875061035, -0.18180717527866364, -0.4193122982978821, -0.55091792345047, -0.4592874348163605, -0.896492063999176, 0.19241665303707123, 0.2952239215373993, 0.7312253713607788, 0.621649444103241, 0.10872677713632584, 0.3642408549785614, 0.05468101054430008, 0.09327717870473862, -0.7409929633140564, 0.18996596336364746, -0.30960801243782043, -0.48426553606987, -0.5306662917137146, -0.2932676374912262, 0.13238045573234558, 0.6036195755004883, -0.23957699537277222, 0.16945326328277588, -0.37280693650245667, 0.3879595100879669, -0.6190944314002991, 0.02805713564157486, -0.7331504225730896, 0.2093847543001175, 0.34848979115486145, -0.22747570276260376, -0.11227035522460938, -0.07332461327314377, 0.184835284948349, -0.5682446360588074, 0.09466920793056488, 0.011245491914451122, 0.8057202100753784, 0.3693840205669403, -0.08061878383159637, -0.1558840423822403, -1.0473114252090454, 0.815743088722229, -0.6762648820877075, 0.19011351466178894, 0.31778278946876526, 0.2395937293767929, -0.5391586422920227, -0.6202496886253357, -0.3001648187637329, -0.16835586726665497, 0.022533416748046875, 0.0050606210716068745, -0.3354226052761078, 0.09150479733943939, 0.45866259932518005, 0.1622174084186554, -0.4432487189769745, 0.13346482813358307, -0.3737841546535492, -0.32631129026412964, 0.5112234950065613, 0.17630557715892792, 0.0009704839903861284, 0.2345193326473236, -0.31995123624801636, 0.10367289930582047, -1.0862805843353271, -0.06407303363084793, 0.5764294266700745, 0.17146183550357819, -0.10789134353399277, 0.7394247055053711, -0.20810960233211517, 0.7472615242004395, 0.21535617113113403, -0.18872946500778198, -0.1093325987458229, -0.3822445869445801, -0.4868205189704895, 0.18434593081474304, 0.5717630982398987, 0.44455721974372864, 0.18741987645626068, -0.3762247860431671, -0.4621705710887909, 0.10298055410385132, 0.5685045123100281, -1.1460524797439575, 0.0840032547712326, 0.6969497203826904, -0.1093975380063057, -0.4199620485305786, -0.2367396354675293, -0.4908173978328705, -0.21183212101459503, -0.3460248112678528, 0.3374081552028656, 0.1004357859492302, -0.47885027527809143, 0.08950361609458923, -0.20006206631660461, 0.26475274562835693, 0.10134872049093246, -0.5421088933944702, 0.28428664803504944, 0.8988659381866455, 0.8143141269683838, 0.0651254653930664, -0.2599867880344391, -0.8783025741577148, 0.518903911113739, -0.8037900328636169, 0.645898163318634, -0.2623392343521118, -0.7738445997238159, 0.18432068824768066, 0.09638000279664993, 0.6949425339698792, -0.6108835339546204, 0.2635832130908966, -0.42007976770401, -0.3716295063495636, -0.15665596723556519, -0.14455777406692505, 0.0005214456468820572, 0.45248934626579285, -0.43510502576828003, 0.9709266424179077, 0.24526424705982208, -0.4807951748371124, 0.3397758901119232, -0.4790303111076355, -0.5227985978126526, 0.14488132297992706, -0.2647362947463989, -0.3162713646888733, 0.17332710325717926, 0.13309118151664734, 0.6602761149406433, -0.20254859328269958, 0.28990423679351807, -0.66890549659729, -0.6255960464477539, 0.37263137102127075, 0.23877160251140594, 0.8316518068313599, 0.16484665870666504, -0.5322405695915222, 0.4655735194683075, -0.9027892351150513, 0.1319987028837204, 0.013044931925833225, -0.03633338585495949, -0.32835444808006287, 0.029217176139354706, -0.004677198827266693, 0.18858596682548523, 0.02716992236673832, -0.6040393114089966, 0.018455637618899345, -0.7467498779296875, 0.5801355838775635, 0.8362583518028259, -0.012247629463672638, 0.31291070580482483, -0.15590424835681915, 0.663129985332489, -0.34786170721054077, -0.07188556343317032, -0.045942436903715134, -0.02709309570491314, -0.7031282782554626, -0.2734748423099518, 0.07859310507774353, 0.8323500156402588, -0.8509008288383484, 0.5461885333061218, 0.07943441718816757, -0.4111939072608948, -0.5208191871643066, 0.47820764780044556, 0.46950024366378784, 0.2597294747829437, -0.15808911621570587, -0.2291930466890335, -0.42680874466896057, -1.0430985689163208, 0.18005253374576569, -0.2625552713871002, -0.023305276408791542, 0.0045083556324243546, 0.38361144065856934, -0.34381502866744995, 0.8223314881324768, -0.5991343259811401, -0.09980618953704834, -0.4056101143360138, -0.01826334558427334, 0.3406156897544861, 0.19653861224651337, 0.6204184889793396, -0.5398666858673096, -0.130268856883049, 0.07723179459571838, -0.7314215898513794, -0.39837685227394104, 0.029415996745228767, -0.5284397602081299, 0.07492334395647049, 0.6106351017951965, -0.5969719290733337, 0.4245631992816925, 0.6337132453918457, -0.16486461460590363, 0.6744165420532227, -0.15948054194450378, -0.16191722452640533, -0.8645836710929871, 0.1201678141951561, 0.01821971870958805, -0.3176659345626831, -0.679401159286499, 0.2671724557876587, -0.051150355488061905, -0.3879973590373993, -0.5840687155723572, 0.8321078419685364, -0.39916977286338806, -0.43847477436065674, -0.565005898475647, -0.16637757420539856, -0.17818427085876465, 0.4912113845348358, -0.0025434743147343397, 1.1091158390045166, 0.5697354078292847, -0.6180983781814575, 0.2710343301296234, -0.0013071568682789803, -0.009529661387205124, 0.8337927460670471, -0.9877420663833618, 0.15085697174072266, 0.2607271671295166, -0.13482306897640228, -0.7713518738746643, -0.06378791481256485, 0.42394599318504333, -0.09821286052465439, 0.45742011070251465, -0.6288477182388306, -0.7145904898643494, -0.15171438455581665, -0.3612138628959656, 0.034253403544425964, 0.4066859185695648, -0.28880348801612854, 0.751574695110321, 0.4212648570537567, -0.22161619365215302, -0.983905553817749, -0.7965264916419983, 0.18846172094345093, -0.01322001963853836, -0.46389004588127136, 0.21964791417121887, -0.3586169183254242, -0.4710293114185333, 0.04494703561067581, -0.30691424012184143, 0.038624927401542664, 0.22311091423034668, 0.5442821383476257, 0.30050215125083923, 0.05962935835123062, -0.26640796661376953, 0.07506026327610016, -0.4179145097732544, 0.1339472383260727, -0.5177536010742188, 0.24002842605113983, 0.028741830959916115, -0.41475337743759155, 0.08347784727811813, 0.49079298973083496, 0.6922004222869873, -0.24691379070281982, 0.3082735538482666, 0.60084068775177, -0.41577184200286865, -0.7083187103271484, -0.5271698236465454, -0.06389627605676651, -0.5808686017990112, 0.1464909017086029, -0.30862316489219666, -0.9295517206192017, 0.5975489616394043, -0.27449357509613037, 0.46385422348976135, -0.2623564600944519, 0.9542665481567383, 0.2572402060031891, 0.8049922585487366, 0.8685699105262756, 0.13787603378295898, 0.42545056343078613, -0.47671377658843994, 0.3544348478317261, -0.6484231352806091, 0.061615534126758575, -0.4107203483581543, -0.24048112332820892, -0.35464292764663696, -0.2655940353870392, 0.3496689796447754, -0.017235111445188522, -0.03502869978547096, 0.28296127915382385, -0.5890771150588989, 0.5699822902679443, 0.4299665093421936, -0.2581629455089569, 0.1612861156463623, 0.2675670385360718, -0.508396327495575, 0.21736007928848267, -0.4662334620952606, -0.5190737843513489, 1.1729326248168945, 0.1939069777727127, 0.9020013809204102, -0.23947283625602722, 1.000105857849121, 0.10391374677419662, 0.3861914575099945, -1.0250340700149536, 0.8280332088470459, 0.13037186861038208, -0.6529591679573059, -0.3165417015552521, -0.14120596647262573, -0.8640060424804688, 0.3397228717803955, -0.020858047530055046, -0.6362520456314087, 0.07525616884231567, 0.0919465646147728, -0.26760348677635193, 0.14287051558494568, -0.768241286277771, 0.5784434080123901, -0.3589347004890442, -0.7077447772026062, -0.11206099390983582, -0.3013651967048645, 0.2924281656742096, -0.10521969199180603, 0.22654153406620026, -0.3376748859882355, -0.10255129635334015, 0.33712369203567505, -0.3957304358482361, 0.8688458800315857, -0.1589932143688202, -0.2434765100479126, 0.22526995837688446, 0.5416450500488281, 0.6349200010299683, 0.1898965984582901, -0.14507268369197845, 0.3375321924686432, 0.16352535784244537, -0.3493511974811554, -0.4350965619087219, 0.8962858319282532, -0.7230234742164612, -0.8378414511680603, -0.4761812686920166, -0.6017013788223267, -0.19752195477485657, 0.5239194631576538, -0.1645604819059372, 0.47157561779022217, -0.26988840103149414, 0.03869548439979553, 0.6055903434753418, -0.15376171469688416, 0.5005630850791931, 0.7049069404602051, -0.34730517864227295, -0.5648198127746582, 0.6661245822906494, 0.29657918214797974, 0.25734788179397583, 0.22987642884254456, -0.024634359404444695, -0.1168651357293129, -1.0948824882507324, -0.7024999260902405, 0.3426743447780609, -0.7613446116447449, -0.27356526255607605, -0.35445377230644226, -0.11083704233169556, -0.05097438395023346, -0.5510838031768799, -0.14855904877185822, -0.4119793474674225, -0.22830753028392792, -0.4458155930042267, 0.18650424480438232, 0.6203349232673645, 0.00973441917449236, 0.26240548491477966, -0.4772009551525116, 0.4066886603832245, 0.25611579418182373, 0.5330567955970764, -0.17387156188488007, 0.12551607191562653, -0.23911260068416595, -0.197365403175354, -0.21352486312389374, -0.666499137878418, 0.3970964550971985, -0.21193264424800873, 0.797120213508606, 0.15365837514400482, 0.17495432496070862, 0.6861396431922913, -0.4975801110267639, 0.6341261863708496, -0.001279080519452691, -0.7035515308380127, 0.5015497207641602, -0.37490764260292053, 0.3809157609939575, 0.24866776168346405, 0.14482180774211884, -0.11747745424509048, -0.8335784077644348, -0.4655965268611908, -0.778134822845459, 0.7569802403450012, 0.23053428530693054, 0.11220482736825943, 0.32763051986694336, 0.41384005546569824, 0.13862566649913788, 0.4990996718406677, -0.5693445205688477, -0.24054238200187683, -0.25418540835380554, -0.10139793902635574, -0.16209881007671356, -0.2315511703491211, -0.7851305603981018, 0.174582377076149, 0.5399887561798096, -0.3330482840538025, 0.312719464302063, 0.01335999183356762, -0.1223674863576889, -0.47088778018951416, 0.5520803332328796, 0.6691457033157349, 1.3063024282455444, -0.27074235677719116, -0.06923176348209381, 0.045343559235334396, -0.1522863209247589, 0.43031302094459534, 0.3369397521018982, -0.6198335289955139, -0.1855783611536026, 0.41857725381851196, 0.48504483699798584, 0.44606754183769226, -0.8181524276733398, 0.23139528930187225, 0.13749191164970398, -0.42097902297973633, -0.42360204458236694, 0.4053674042224884, 0.31104058027267456, 0.5554755330085754, 0.4438706636428833, -0.32141268253326416, -0.0602475143969059, -0.5414184331893921, 0.17095063626766205, 0.5604297518730164, -0.22660845518112183, -0.3346497714519501, 0.3353859782218933, 0.12998665869235992, -0.6060490608215332, 0.09591016918420792, -0.3503512740135193, -0.39619025588035583, 0.5605605244636536, 0.6012125015258789, 1.1195164918899536, 0.13116669654846191, 0.3265376091003418, 0.014122294262051582, 0.48514795303344727, 0.09609972685575485, 0.4173814654350281, 0.10550173372030258, -0.5051984190940857, -0.6252575516700745, -0.7181921005249023, -0.47792237997055054, 0.19328676164150238, -0.24629496037960052, 0.23119217157363892, -0.9919171333312988, -0.3122444152832031, -0.10510773956775665, 0.22455132007598877, -0.6663813591003418, -0.3136870265007019, -0.33684027194976807, 0.7987886667251587, -0.538236677646637, 0.653849720954895, 0.9620953798294067, -0.12869825959205627, -0.48090603947639465, -0.2622022032737732, 0.3314040005207062, -0.7899758815765381, 0.4412762224674225, -0.0585118792951107, -0.42566797137260437, -0.031668324023485184, -0.6289113759994507, -0.5255623459815979, 1.1971263885498047, 0.5873997807502747, -0.44748470187187195, 0.10250896960496902, -0.07507283240556717, 0.6299238204956055, -0.4025927782058716, -0.12073355168104172, 0.4513654410839081, 0.5033155679702759, 0.41465190052986145, -0.8697443604469299, 0.19913305342197418, -0.008348331786692142, -0.0030912982765585184, 0.36591506004333496, -0.4607492983341217, 0.3881050646305084, -0.23503537476062775, -0.2392050325870514, -0.0007862700731493533, 0.33461612462997437, 0.5339980125427246, 0.3020530939102173, 0.37151220440864563, 0.5618199110031128, 0.325612872838974, -0.04003262519836426, 0.8639911413192749, -0.1319628804922104, -0.14572054147720337, 0.7233295440673828, -0.6728686094284058, 0.7670028209686279, 0.5329321622848511, -0.14963671565055847, 0.316034734249115, 0.46618783473968506, -0.10948238521814346, 0.5316877961158752, 0.2565992474555969, -0.15656080842018127, -0.26210394501686096, -0.02850971184670925, 0.017390836030244827, 0.16137418150901794, 0.57314133644104, 0.06737561523914337, -0.49808838963508606, -0.07904350757598877, -0.002962312428280711, -0.00010783086327137426, -0.30639833211898804, 0.7783650755882263, 0.23069508373737335, -0.6863669157028198, 0.6542075276374817, 0.25316914916038513, 0.47954240441322327, -0.9358470439910889, -0.21027496457099915, -0.06670623272657394, 0.29260334372520447, -0.07857054471969604, -0.7446482181549072, 0.21826153993606567, -0.13396506011486053, -0.01492295227944851, -0.34071269631385803, 1.1027283668518066, -0.4714430868625641, -0.5387041568756104, 0.5074992179870605, 0.591138482093811, -0.21524113416671753, 0.22878830134868622, -0.9779344797134399, 0.49356940388679504, -0.17149485647678375, -0.0001202040002681315, 0.42338627576828003, 0.5826927423477173, -0.07223498821258545, 1.0163326263427734, 0.9153480529785156, 0.5544586181640625, -0.031036745756864548, -0.12161680310964584, 0.8206126689910889, -0.525646984577179, -0.6453404426574707, -0.5946923494338989, 0.3875638246536255, 0.04348023980855942, -0.07050545513629913, 0.4827142357826233, 0.24623215198516846, 0.973982036113739, -0.09519364684820175, 0.7213039994239807, 0.2304149866104126, 0.36581945419311523, -0.6132432818412781, 0.4989902675151825, -0.3869987428188324, 0.4007396399974823, -0.16347505152225494, -0.8497217297554016, -0.22955822944641113, 0.5555186867713928, -0.04503608122467995, -0.2645888030529022, 0.37871843576431274, 1.1838245391845703, -0.21740135550498962, -0.39464396238327026, 0.5256838798522949, -0.030607054010033607, 0.6459898948669434, 0.4294050335884094, 0.7268007397651672, 0.11934185028076172, 0.8052002191543579, -0.3121033310890198, -0.16772626340389252, -0.3231438100337982, -1.1685545444488525, -1.2909626960754395, -0.2235090434551239, -0.3348216116428375, -0.19487953186035156, 0.23378150165081024, 1.189300537109375, 0.9973675608634949, -0.6243383884429932, -0.7590044140815735, 0.22430232167243958, 0.3698244094848633, -0.41164737939834595, -0.17439080774784088, 0.07596012949943542, -0.13323764503002167, -0.4846917688846588, 0.3723582327365875, 0.5880941152572632, 0.16696186363697052, -0.7241628766059875, -0.2624630331993103, -0.024420512840151787, 0.09406761080026627, 0.7443051934242249, 0.4547126591205597, -0.9730998277664185, -0.2985997796058655, -0.0821831226348877, 0.15681962668895721, -0.23286543786525726, 1.1717921495437622, -0.7854886054992676, 0.6655431985855103, 0.19348178803920746, 0.9521518349647522, 0.6740791201591492, -0.2113034427165985, 0.9433963894844055, -0.9493020176887512, 0.4558272063732147, 0.14488574862480164, 0.23161821067333221, 0.29281309247016907, -0.4742707908153534, 0.6539173126220703, -0.03039325587451458, -0.3383614420890808, -1.1522579193115234, 0.26382023096084595, -0.9346867799758911, -0.3973899185657501, 1.1464803218841553, -0.15530970692634583, -0.27925771474838257, -0.3311860263347626, -0.2954694628715515, -0.06356444209814072, -0.4916035532951355, 0.5599882006645203, 1.256603479385376, 0.019315272569656372, -0.3425780236721039, -0.912840723991394, 0.30110418796539307, -0.0188852958381176, -0.6902495622634888, 0.283015638589859, 0.7920352220535278, 0.4748947024345398, 0.19917096197605133, 0.711699903011322, -0.051366157829761505, 0.24282409250736237, -0.20579931139945984, -0.2150122970342636, -0.7370368242263794, -0.35266929864883423, -0.25999686121940613, 0.2556995451450348, 0.25665998458862305, 0.20323430001735687 ]
http://arxiv.org/abs/2402.10038v2
http://arxiv.org/pdf/2402.10038v2
RS-DPO: A Hybrid Rejection Sampling and Direct Preference Optimization Method for Alignment of Large Language Models
2024-02-15T16:00:58
2024-03-30T16:10:47
Saeed Khaki, JinJin Li, Lan Ma, Liu Yang, Prathap Ramachandra
cs.CL
cs.CL, cs.AI, cs.CV, cs.LG
Reinforcement learning from human feedback (RLHF) has been extensively employed to align large language models with user intent. However, proximal policy optimization (PPO) based RLHF is occasionally unstable requiring significant hyperparameter finetuning, and computationally expensive to maximize the estimated reward during alignment. Recently, direct preference optimization (DPO) is proposed to address those challenges. However, DPO relies on contrastive responses generated from human annotator and alternative LLM, instead of the policy model, limiting the effectiveness of the RLHF. In this paper, we addresses both challenges by systematically combining rejection sampling (RS) and DPO. Our proposed method, RS-DPO, initiates with the development of a supervised fine-tuned policy model (SFT). A varied set of k responses per prompt are sampled directly from the SFT model. RS-DPO identifies pairs of contrastive samples based on their reward distribution. Finally, we apply DPO with the contrastive samples to align the model to human preference. Our experiments indicate that our proposed method effectively fine-tunes LLMs with limited resource environments, leading to improved alignment with user intent. Furthermore, it outperforms existing methods, including RS, PPO, and DPO.
[ -0.36540475487709045, -0.37675735354423523, 0.5269352793693542, 0.0831589475274086, -0.23057636618614197, 0.26891395449638367, -0.5316524505615234, -0.08504306524991989, 0.09272469580173492, 0.5885577201843262, -0.9426314830780029, -0.2330353856086731, -0.1352836638689041, 0.26936787366867065, 0.31762102246284485, 0.952975869178772, -0.07187003642320633, 0.03323390334844589, -0.07220497727394104, 0.2501506805419922, -0.29027459025382996, -0.16662785410881042, -0.6150822043418884, -0.5444604754447937, 0.45944133400917053, 0.6980484127998352, 0.650141179561615, 0.552702009677887, 0.33806440234184265, 0.3181970715522766, -0.2030341476202011, 0.5050740838050842, -0.5653548240661621, -0.02114773727953434, -0.3006575107574463, -0.13057474792003632, -0.2924855351448059, 0.007991938851773739, 0.7036014795303345, 0.48449522256851196, -0.2949086129665375, -0.13270823657512665, 0.24625630676746368, 0.6993968486785889, -0.7716923952102661, -0.19479885697364807, -0.6007798910140991, 0.12435735017061234, 0.11699093878269196, -0.28171584010124207, -0.5518565773963928, -0.4611153304576874, 0.30284416675567627, -0.918857991695404, -0.00031717168167233467, 0.15768666565418243, 0.6944606900215149, 0.26008808612823486, -0.21964257955551147, -0.1582058072090149, -0.8576287627220154, 1.1498758792877197, -0.4600122272968292, 0.11958306282758713, 0.42080703377723694, 0.18231651186943054, -0.5332275032997131, 0.014055016450583935, -0.9668868184089661, -0.491489976644516, -0.09582272917032242, 0.1155773475766182, 0.13024725019931793, 0.2531375288963318, 0.004213237203657627, 0.3644513785839081, -0.5129513144493103, 0.5271030068397522, -0.0800982341170311, -0.2981005311012268, 0.6801889538764954, 0.169478639960289, 0.08496000617742538, -0.19302068650722504, -0.6578708291053772, -0.4278087913990021, -0.5623912215232849, 0.12228281795978546, 0.7506250739097595, 0.5245800018310547, -0.008270532824099064, 0.40486064553260803, -0.42523396015167236, 0.9513143301010132, 0.2941167652606964, -0.3161437213420868, 0.21966150403022766, -0.34147003293037415, 0.025447137653827667, -0.15452323853969574, 1.050957202911377, 0.3691481947898865, 0.19204692542552948, 0.021516842767596245, -0.4263160824775696, -0.059341538697481155, 0.1389698088169098, -0.4962117373943329, 0.06438541412353516, 0.2500694990158081, -0.2592897117137909, -0.6364700794219971, -0.14005644619464874, -0.9640153646469116, -0.4949762523174286, -0.5228427052497864, 0.12374190241098404, -0.2209307998418808, -0.3861732482910156, 0.14453212916851044, 0.04887240752577782, 0.03580929711461067, 0.28778406977653503, -1.2523257732391357, 0.3579583466053009, 0.741228461265564, 0.4717332422733307, -0.44736191630363464, -0.34008514881134033, -0.6998357176780701, 0.12137088924646378, -0.2121814489364624, 0.5394424200057983, -0.6573246717453003, -0.48531657457351685, 0.057575225830078125, -0.24421165883541107, 0.02508804202079773, -0.7189639210700989, 0.8616876602172852, -0.513523280620575, 0.2604694068431854, -0.3471315801143646, -0.22360120713710785, 0.011713840067386627, 0.27718931436538696, -0.5059747695922852, 0.8572985529899597, 0.24838103353977203, -0.6714388132095337, 0.41680872440338135, -0.5227166414260864, -0.24783939123153687, 0.010599498637020588, -0.30307498574256897, -0.5198367238044739, -0.07790213078260422, 0.22673644125461578, 0.12669812142848969, -0.19704556465148926, 0.4839654862880707, -0.4438701868057251, -0.5191246271133423, 0.33447742462158203, -0.1704384684562683, 0.47804519534111023, 0.34743180871009827, -0.24309895932674408, 0.5669175386428833, -0.8882797360420227, -0.14484132826328278, 0.19265711307525635, -0.5301896333694458, -0.47279417514801025, 0.21597380936145782, 0.06724440306425095, 0.33718207478523254, 0.02163787931203842, -0.6739218831062317, 0.2879672646522522, -0.4462890028953552, 0.4794694483280182, 1.0328325033187866, -0.3153017461299896, 0.6953757405281067, -0.18046601116657257, 0.694911777973175, -0.1914714127779007, 0.14297688007354736, 0.4502739906311035, 0.07930499315261841, -0.2702823281288147, -0.4190719425678253, 0.2809370458126068, 0.49777907133102417, -0.6117144227027893, 0.7659289836883545, -0.19266507029533386, -0.04729770869016647, -0.5789647698402405, 0.08677603304386139, 0.5084118247032166, 0.8740423917770386, 0.25429990887641907, -0.1422964185476303, -0.5722119808197021, -1.1577491760253906, 0.04505332186818123, -0.20964159071445465, -0.0244903601706028, 0.5033537745475769, 0.07874888181686401, -0.06906146556138992, 0.8985200524330139, -0.5919123291969299, -0.2833949327468872, -0.37329962849617004, -0.11117930710315704, 0.09624779224395752, 0.4567068815231323, 0.38614708185195923, -0.7271683216094971, -0.46114879846572876, 0.03619520738720894, 0.019507037475705147, -0.11815748363733292, -0.020585598424077034, -0.23741403222084045, 0.1356116384267807, -0.08160857111215591, -0.2649967074394226, -0.1717338263988495, 0.8092727661132812, -0.14515508711338043, 0.5963260531425476, -0.1904730349779129, 0.18342193961143494, -0.9573540091514587, 0.04817163944244385, 0.12190999835729599, -0.11758279800415039, -0.2270805984735489, -0.13967549800872803, -0.0622025765478611, -0.30090439319610596, -0.2358635663986206, 0.5960266590118408, -0.2368658185005188, 0.00662210863083601, -0.36267587542533875, 0.10639865696430206, -0.04555001109838486, 0.6297751665115356, 0.47825297713279724, 0.8907069563865662, 0.16568611562252045, -0.7122877836227417, 0.20766131579875946, 0.3599287271499634, -0.13461211323738098, 0.44905155897140503, -0.4518381357192993, 0.19399455189704895, -0.10794879496097565, 0.43379056453704834, -1.1217758655548096, -0.24104894697666168, 0.5399171710014343, -0.09519580751657486, 0.28987619280815125, -0.08720177412033081, -0.17766578495502472, -0.40208613872528076, -0.5601733326911926, 0.3599199056625366, 0.4794619381427765, -0.5428315997123718, 0.3278602361679077, 0.3604540228843689, -0.10625594109296799, -0.8177732825279236, -0.1784925013780594, -0.39416253566741943, -0.16498756408691406, -0.22427718341350555, 0.6417246460914612, 0.016022343188524246, -0.16665612161159515, -0.1189064085483551, -0.18087121844291687, 0.1956886649131775, 0.0024444370064884424, 0.010481503792107105, 0.4986475706100464, 0.20457257330417633, -0.1371382623910904, -0.02887178584933281, -0.230057492852211, -0.296687513589859, -0.1605442762374878, 0.6922270059585571, 0.17820662260055542, -0.16745886206626892, -0.7651528120040894, 0.20006097853183746, 0.19984500110149384, -0.10242345929145813, 0.30270057916641235, 0.3664499819278717, 0.15881957113742828, -0.35227611660957336, -0.29661571979522705, -0.3414301574230194, -0.49581655859947205, 0.41890642046928406, -0.43707334995269775, -0.8386244773864746, 0.12795330584049225, -0.13575299084186554, 0.1444019079208374, 0.13311482965946198, 0.4980115592479706, 0.027713946998119354, 0.9673358201980591, 0.5056008100509644, -0.26789286732673645, 0.8648842573165894, 0.01602385938167572, -0.023036057129502296, -0.8524963855743408, -0.021516911685466766, -0.5449853539466858, -0.5318977236747742, -0.6710860133171082, -0.13864757120609283, 0.12462159991264343, 0.044727224856615067, -0.1496250480413437, 0.25158455967903137, -0.6564283967018127, 0.3900340497493744, 0.7595043182373047, 0.36644247174263, 0.2347690314054489, 0.20401440560817719, -0.18739360570907593, -0.2660181522369385, -0.507070004940033, -0.44444331526756287, 1.0177466869354248, 0.22454798221588135, 0.7818306684494019, -0.06898961216211319, 0.8482735753059387, 0.09120141714811325, 0.06633380800485611, -0.8126052021980286, 0.6568374633789062, -0.1300853192806244, -0.2020333856344223, -0.37469154596328735, -0.5628471374511719, -0.8492847681045532, 0.394687682390213, -0.47985967993736267, -0.5428895950317383, 0.2587941884994507, 0.6449670791625977, -0.627514123916626, 0.08697061985731125, -0.6312968134880066, 0.6366773843765259, -0.24951738119125366, -0.5088338851928711, -0.49922847747802734, -0.4425615966320038, 0.32420283555984497, 0.1849920153617859, 0.11275561153888702, -0.2022135853767395, -0.03934707120060921, 0.5471532344818115, -0.27289971709251404, 0.6364588141441345, -0.24274857342243195, -0.1721818745136261, 0.15255290269851685, 0.15129117667675018, 0.8116781711578369, -0.05416940897703171, -0.21335189044475555, -0.3946508467197418, -0.2109348028898239, -0.25826573371887207, -0.45988938212394714, 0.7585774064064026, -0.908112645149231, -0.5724742412567139, -0.305568128824234, -0.5647068619728088, -0.42799991369247437, 0.14841914176940918, -0.11344466358423233, 0.15674322843551636, -0.14223778247833252, -0.20903219282627106, 0.506820559501648, -0.3913925886154175, 0.21649006009101868, 0.7733298540115356, -0.1227358877658844, -0.629189670085907, 0.975802481174469, -0.3977418839931488, 0.4346310794353485, 0.5970913171768188, 0.6341956853866577, -0.4225917160511017, -0.6889054179191589, -0.4115786850452423, 0.32818883657455444, -0.2609858512878418, 0.025919951498508453, -0.21666604280471802, 0.220262348651886, -0.4171314835548401, -0.0805644616484642, -0.36116114258766174, -0.11793004721403122, -0.124137282371521, 0.13291804492473602, 0.16677317023277283, 0.28274112939834595, -0.08143776655197144, 0.1869942545890808, -0.468156635761261, 0.3394205868244171, 0.289479523897171, 0.4964722990989685, -0.21082156896591187, -0.48101213574409485, 0.22706200182437897, 0.08483003079891205, -0.3582710027694702, -0.6187825202941895, 0.21904315054416656, -0.1508813053369522, 0.49561065435409546, 0.3158172369003296, 0.428103506565094, 0.5486703515052795, -0.42188504338264465, 0.401429146528244, 0.17774498462677002, -0.5676701664924622, 0.6286212205886841, -0.43340829014778137, -0.0008032743353396654, 0.8735865950584412, 0.45291197299957275, -0.43957778811454773, 0.11577010154724121, -0.3426487147808075, -0.7634974122047424, 0.9810372591018677, -0.24349345266819, 0.07578049600124359, 0.1160145178437233, 0.3760170042514801, 0.18362611532211304, 0.11788530647754669, -0.6217901110649109, -0.027078252285718918, 0.31969162821769714, -0.2237161546945572, -0.019561508670449257, -0.31622186303138733, -0.4366813898086548, -0.0724039375782013, 0.8363937139511108, -0.24013328552246094, -0.14436087012290955, 0.15652526915073395, 0.09516140073537827, -0.3036113381385803, 0.454807847738266, 0.8903144001960754, 0.6013585925102234, -0.39592549204826355, -0.2473229467868805, -0.1652236133813858, -0.3571047782897949, 0.3013591766357422, 0.08650605380535126, -0.5590762495994568, -0.26862633228302, -0.14990085363388062, 0.9787393808364868, 0.21453987061977386, -0.8581099510192871, 0.39969733357429504, 0.05789106339216232, -0.3651258051395416, -0.1581314653158188, 0.09564358741044998, -0.23980343341827393, 0.09603133797645569, 0.060092125087976456, -0.07844880223274231, 0.12644697725772858, -0.31097736954689026, 0.01709401234984398, 0.5427135825157166, -0.38731029629707336, -0.21882666647434235, 0.4221682846546173, 0.5445641875267029, -0.40966907143592834, 0.4883396327495575, -0.2374311238527298, -0.4402198791503906, 0.2469642609357834, 0.566402018070221, 0.7140450477600098, 0.03406364098191261, 0.40741676092147827, 0.47374242544174194, -0.046089716255664825, -0.21696268022060394, 0.1400267630815506, -0.38269948959350586, -0.9572275280952454, -0.5546973347663879, -0.6726075410842896, -0.7321982383728027, 0.3242083191871643, -0.6698594093322754, 0.38163188099861145, -0.574198305606842, -0.009816037490963936, -0.1162782683968544, 0.2531448304653168, -0.4248593747615814, 0.010768389329314232, 0.093898244202137, 0.44647684693336487, -0.9419739246368408, 0.7704757452011108, 0.7002531886100769, -0.3520614206790924, -0.7842523455619812, 0.1886577308177948, 0.13640812039375305, -0.9503970742225647, 0.6318129301071167, -0.31181585788726807, -0.24719880521297455, 0.08186689764261246, -0.21879824995994568, -0.6467089056968689, 0.7266528606414795, 0.3468158543109894, -0.9866154193878174, 0.1790132224559784, -0.13980238139629364, 0.3438221216201782, -0.1681486964225769, 0.07457128167152405, 0.6077062487602234, 0.4348107874393463, 0.1937018185853958, -0.9372543692588806, 0.18879270553588867, 0.2443813979625702, 0.20086175203323364, 0.3052746057510376, -0.7958883047103882, 0.41361042857170105, -0.23542015254497528, -0.049435146152973175, -0.06133498623967171, 0.5097336769104004, 0.7790563702583313, -0.061779871582984924, 0.8403263688087463, 0.5914239287376404, 0.4400511384010315, 0.10555620491504669, 1.0317182540893555, -0.04671437293291092, 0.23364777863025665, 1.1337872743606567, -0.5994452238082886, 1.0064353942871094, 0.8476489186286926, -0.5442945957183838, 0.3291192948818207, 0.7736496925354004, 0.21693900227546692, 0.8089141249656677, 0.5115357637405396, -0.283094197511673, -0.22896459698677063, -0.15643100440502167, -0.10196500271558762, 0.3061399459838867, -0.01700657606124878, -0.20332235097885132, -0.1401592642068863, -0.16555896401405334, -0.11050800234079361, 0.6219502091407776, -0.18741922080516815, 0.9123241901397705, -0.27305078506469727, -1.1474263668060303, 0.5466938614845276, -0.010445009917020798, 1.0678017139434814, -0.5914964079856873, -0.01819160394370556, -0.15398657321929932, 0.4789820611476898, -0.18883226811885834, -0.7353059649467468, 0.09471288323402405, -0.26073214411735535, -0.24652643501758575, -0.4120268225669861, 0.4862135052680969, -0.5758500695228577, -0.06125202029943466, 0.2523020803928375, -0.02934768982231617, -0.20350393652915955, 0.18442684412002563, -0.7400227189064026, 0.19874480366706848, 0.1763676106929779, -0.29584187269210815, 0.6239561438560486, 0.010687765665352345, -0.05945543199777603, 0.4672645628452301, 0.6651090383529663, 0.4122053384780884, -0.5250641107559204, 0.19944697618484497, 0.7508558630943298, -0.4301023483276367, -0.6320345997810364, -0.8220245838165283, 0.2658812403678894, -0.12754352390766144, -0.4263055622577667, 0.36802423000335693, 0.37933748960494995, 1.0329493284225464, -0.07405182719230652, 0.8008018136024475, 0.011881097219884396, 0.8313645720481873, -0.4599398672580719, 0.1776943951845169, -0.5603882074356079, 0.16975603997707367, -0.3541925549507141, -0.9501487016677856, 0.033751051872968674, 0.5435221195220947, -0.5009674429893494, -0.17329679429531097, 0.2727358341217041, 0.8981224894523621, 0.023098601028323174, -0.25083276629447937, 0.047434840351343155, -0.4391780495643616, 0.12719540297985077, 0.6363619565963745, 0.8710516095161438, 0.001935129868797958, 0.5626315474510193, -0.41281741857528687, -0.35291022062301636, -0.33260783553123474, -0.8278412222862244, -0.555730938911438, -0.5001585483551025, -0.26352813839912415, -0.4388848841190338, 0.05735104903578758, 1.3495343923568726, 0.732009768486023, -0.8600640892982483, -0.29585081338882446, -0.14681921899318695, 0.20280559360980988, -0.3894232213497162, -0.24503205716609955, 0.27230361104011536, -0.28847652673721313, -1.0502395629882812, 0.3671343922615051, 0.20418581366539001, 0.0968509316444397, -0.3830045163631439, -0.44542255997657776, -0.13434402644634247, -0.331015020608902, 0.3425430357456207, 0.5049951672554016, -0.8826923966407776, -0.3133990168571472, -0.008219001814723015, -0.1898641586303711, -0.11401410400867462, 0.9885154962539673, -0.6171041131019592, 0.44355449080467224, 0.7278971076011658, 0.8206179738044739, 0.2705349326133728, 0.22099164128303528, 0.9488765001296997, -0.672207772731781, 0.3423411548137665, 0.4437861740589142, 0.07050363719463348, 0.178815558552742, -0.4132787585258484, 0.30340272188186646, 0.197740837931633, -0.5398319959640503, -0.8815627098083496, 0.5653663277626038, -1.0019593238830566, -0.2753019332885742, 1.3363335132598877, 0.12119696289300919, -0.14680343866348267, 0.1812102347612381, -0.551806628704071, -0.016104336827993393, -0.6675329208374023, 0.8367921113967896, 0.5439749956130981, -0.28109991550445557, -0.1786440759897232, -0.17958585917949677, 0.8554365038871765, 0.7164055705070496, -0.45942336320877075, 0.1263807862997055, 0.5554305911064148, 0.3040839433670044, -0.0641610249876976, 0.8985809683799744, -0.01875004917383194, 0.1368706226348877, -0.2887221574783325, 0.20020198822021484, -0.19315195083618164, -0.04341653361916542, -0.4614694118499756, -0.11946213990449905, 0.3367668390274048, -0.5172311663627625 ]
http://arxiv.org/abs/2402.10024v2
http://arxiv.org/pdf/2402.10024v2
Self-Augmented In-Context Learning for Unsupervised Word Translation
2024-02-15T15:43:05
2024-06-05T13:38:42
Yaoyiran Li, Anna Korhonen, Ivan Vulić
cs.CL
cs.CL, cs.AI, cs.IR, cs.LG
Recent work has shown that, while large language models (LLMs) demonstrate strong word translation or bilingual lexicon induction (BLI) capabilities in few-shot setups, they still cannot match the performance of 'traditional' mapping-based approaches in the unsupervised scenario where no seed translation pairs are available, especially for lower-resource languages. To address this challenge with LLMs, we propose self-augmented in-context learning (SAIL) for unsupervised BLI: starting from a zero-shot prompt, SAIL iteratively induces a set of high-confidence word translation pairs for in-context learning (ICL) from an LLM, which it then reapplies to the same LLM in the ICL fashion. Our method shows substantial gains over zero-shot prompting of LLMs on two established BLI benchmarks spanning a wide range of language pairs, also outperforming mapping-based baselines across the board. In addition to achieving state-of-the-art unsupervised BLI performance, we also conduct comprehensive analyses on SAIL and discuss its limitations.
[ -0.1660154014825821, -0.38826480507850647, 0.5797173976898193, 0.4236733913421631, -0.5721974968910217, 0.3242957592010498, -0.4732952117919922, -0.38070109486579895, 0.07931815832853317, 0.4784313142299652, -0.5762515664100647, -0.589368462562561, -0.5571718215942383, 0.20451131463050842, -0.40795737504959106, 0.9127711653709412, -0.07509861886501312, -0.10372777283191681, -0.3090679347515106, -0.4176252484321594, -0.6915208101272583, -0.3328064978122711, -0.3432627022266388, -0.41373148560523987, 0.26994574069976807, 0.7840917110443115, 0.13232934474945068, 0.2480429857969284, 0.18981721997261047, 0.2170822024345398, -0.06759708374738693, 0.44793203473091125, -0.38961261510849, 0.222894549369812, -0.34894227981567383, -0.07202185690402985, -0.3043718934059143, -0.03989308699965477, 0.757202684879303, 0.7985599040985107, -0.09356314688920975, 0.2722805440425873, 0.5406684279441833, 0.5379725098609924, -0.9062693119049072, 0.2517167627811432, -0.7218849658966064, -0.13383501768112183, -0.35437989234924316, -0.37736523151397705, -0.45212072134017944, 0.3216978907585144, 0.01381498109549284, -0.7067045569419861, -0.02663135901093483, 0.324807345867157, 0.1865086704492569, 0.2735566794872284, -0.705660879611969, -0.3202521800994873, -0.6251189112663269, 0.8299607038497925, -0.6845107674598694, 0.391214519739151, 0.22522073984146118, 0.07568369060754776, -0.41613054275512695, -0.5927120447158813, -0.6180031299591064, 0.01790192909538746, -0.04826591908931732, 0.36174753308296204, 0.03205439820885658, -0.10628907382488251, 0.03822440281510353, 0.17797809839248657, -0.5016427040100098, 0.3110610544681549, -0.1450282484292984, 0.11026519536972046, 0.8087109327316284, 0.17637145519256592, 0.2746712863445282, -0.14583122730255127, -0.6192087531089783, -0.022269094362854958, -0.9960970282554626, 0.21000391244888306, -0.3112684488296509, 0.65369713306427, -0.45672959089279175, 0.6339566111564636, -0.21385855972766876, 0.8074900507926941, 0.2554742097854614, -0.06577044725418091, 0.2458539456129074, -0.24695976078510284, -0.06234787404537201, 0.43323463201522827, 0.7656210064888, 0.3402564227581024, 0.015959251672029495, -0.2393023669719696, -0.3325720727443695, -0.37445756793022156, -0.0335719920694828, -0.6129036545753479, 0.2439185231924057, 0.10501941293478012, 0.021972760558128357, -0.04571642726659775, -0.08820338547229767, -0.506625771522522, -0.27667927742004395, -0.05982046201825142, 0.7144331336021423, -0.2663387060165405, -0.08862560987472534, 0.026631195098161697, 0.10616883635520935, 0.4231014847755432, 0.13014672696590424, -0.9725534319877625, -0.042984992265701294, 0.4226042628288269, 0.8958867788314819, -0.5499305725097656, -0.6607518196105957, -0.6578088402748108, 0.46348750591278076, -0.7316081523895264, 0.7119724154472351, -0.29971781373023987, -0.662326991558075, 0.21516209840774536, -0.049220990389585495, -0.003933597356081009, -0.24229416251182556, 0.2256452739238739, -0.47617441415786743, 0.23556910455226898, -0.3077464997768402, -0.786751389503479, -0.1554284393787384, 0.12987974286079407, -0.045866940170526505, 1.2019366025924683, 0.13287386298179626, -0.5869430899620056, 0.5497874617576599, -0.7391190528869629, -0.7536072134971619, 0.41028350591659546, -0.10701017081737518, -0.0019524676026776433, 0.3983704149723053, 0.4316923916339874, 0.5610731840133667, -0.22400909662246704, 0.1678003966808319, -0.21070963144302368, -0.5987433791160583, -0.057416971772909164, -0.23645544052124023, 0.7292871475219727, -0.060776934027671814, -0.5675438046455383, -0.08911312371492386, -0.32950377464294434, -0.06913673877716064, 0.01997133158147335, -0.27203038334846497, -0.6169164180755615, -0.11883832514286041, -0.021506447345018387, 0.1541280448436737, 0.3446153998374939, -0.8555963039398193, 0.5092481970787048, -0.946819543838501, 0.02263207733631134, 0.5171555876731873, 0.04218200966715813, 0.7344964742660522, 0.26015806198120117, 0.24295374751091003, 0.11965225636959076, -0.21655482053756714, -0.505646288394928, -0.41518938541412354, -0.58952397108078, -0.2661295235157013, 0.14444105327129364, 0.40498194098472595, -1.022343635559082, 0.45496588945388794, -0.18457457423210144, -0.30262064933776855, -0.4109237790107727, 0.4378001391887665, 0.6418417692184448, 0.7178859114646912, 0.8098284602165222, -0.3170378804206848, -0.23775984346866608, -0.30020663142204285, -0.33225345611572266, -0.005161852575838566, 0.08973655849695206, 0.34206193685531616, 0.44015663862228394, -0.32097625732421875, 0.915148913860321, -0.30729940533638, -0.6221166849136353, -0.5881165266036987, 0.45489081740379333, 0.1372895985841751, 0.38175368309020996, 0.41632896661758423, -0.44996318221092224, -0.6888969540596008, 0.22493402659893036, -0.906448245048523, -0.23374369740486145, 0.004214339889585972, 0.16042250394821167, 0.39725056290626526, 0.6385207176208496, -0.18309512734413147, 0.6571230888366699, 0.8037902116775513, -0.45846861600875854, 0.32023754715919495, -0.7135009169578552, 0.14999037981033325, -1.3181672096252441, 0.004637802019715309, -0.14408467710018158, -0.15785296261310577, -0.45489734411239624, 0.020788632333278656, 0.4156886339187622, -0.06321825832128525, -0.632546603679657, 1.1037521362304688, -0.6257052421569824, -0.37576478719711304, -0.7622312307357788, 0.25365522503852844, -0.17227204144001007, 0.3724006414413452, 0.186153843998909, 0.9865812659263611, 0.6841973066329956, -0.7685875296592712, 0.24866828322410583, 0.47553566098213196, -0.42857247591018677, 0.5169599652290344, -0.41347062587738037, -0.012775315903127193, -0.23082637786865234, 0.3558185398578644, -1.0370508432388306, -0.21476775407791138, 0.04187455400824547, -0.3620171546936035, 0.5442060232162476, -0.0948377475142479, -0.12656369805335999, -0.15438959002494812, -0.07705981284379959, 0.825164794921875, 0.29528751969337463, -1.211793303489685, 0.3720915615558624, 0.22549614310264587, 0.13360098004341125, -0.7082845568656921, -0.799401581287384, 0.2012416124343872, -0.12866586446762085, -0.11008063703775406, 0.5946930646896362, -0.09575755149126053, 0.07276452332735062, -0.10011234134435654, -0.069455586373806, 0.025386234745383263, 0.06823449581861496, 0.26140403747558594, 0.15294606983661652, -0.041054341942071915, 0.12604036927223206, 0.36126387119293213, -0.24539749324321747, -0.2671665847301483, -0.5638589262962341, 0.14374898374080658, -0.06626610457897186, -0.445708692073822, -0.3291849195957184, 0.31199079751968384, 0.6194669008255005, -0.5475396513938904, 0.5639193058013916, 0.26175811886787415, -0.2263219803571701, -0.5465624928474426, -0.3515722155570984, -0.17022749781608582, -0.506511926651001, 0.06590817868709564, -0.32769641280174255, -1.0703774690628052, 0.2507782280445099, -0.2888807952404022, -0.06689818203449249, 0.30970266461372375, 0.5366122722625732, -0.519829273223877, 0.7384954690933228, 0.7992917895317078, -0.37809550762176514, 0.22489508986473083, -0.3505609631538391, 0.2037138193845749, -1.0810198783874512, -0.1620938777923584, -0.036955684423446655, -0.2346738576889038, -0.5098515152931213, -0.5486225485801697, 0.6977514624595642, 0.08786365389823914, -0.10382723808288574, 0.3943231701850891, -0.22950182855129242, 0.5466533303260803, 0.5355536341667175, -0.08963534235954285, 0.33635038137435913, -0.038566190749406815, -0.5866404175758362, -0.012886581011116505, -0.9884627461433411, 0.10473941266536713, 1.2608919143676758, -0.21914635598659515, 0.6717328429222107, -0.04667624458670616, 0.9651231169700623, 0.26015472412109375, 0.37143808603286743, -0.6905055642127991, 0.40506428480148315, -0.10088670998811722, -0.5888146758079529, -0.489927738904953, -0.20891378819942474, -0.9351570010185242, 0.15589937567710876, -0.3976815938949585, -0.593873143196106, 0.18306037783622742, 0.2585473358631134, -0.33205080032348633, 0.1847662776708603, -0.1892562210559845, 0.8907773494720459, -0.5694640874862671, -0.49682876467704773, -0.21563465893268585, -0.45454078912734985, 0.31555113196372986, -0.2631853520870209, 0.22381502389907837, 0.10319840908050537, -0.15955832600593567, 0.20741356909275055, -0.13428938388824463, 0.8790931701660156, -0.1712294965982437, -0.14151325821876526, 0.3427042067050934, 0.28045815229415894, 0.33930060267448425, 0.013782979920506477, 0.22977373003959656, 0.2484356015920639, -0.19525277614593506, -0.42383813858032227, -0.6466695070266724, 0.8156656622886658, -0.4144148826599121, -0.5040453672409058, -0.5777649283409119, -0.6258522272109985, -0.32857030630111694, 0.07139670103788376, 0.5615373849868774, 0.5806314945220947, -0.17650502920150757, 0.21746069192886353, 0.3748098611831665, -0.1812804937362671, 0.9204196929931641, 0.8589592576026917, -0.25777432322502136, -0.3386648893356323, 0.8687334656715393, 0.0858292356133461, -0.0734250396490097, 0.3617788851261139, 0.2437838762998581, -0.6629313826560974, -0.5680885910987854, -0.7826698422431946, 0.26344430446624756, -0.3344492018222809, -0.31444650888442993, -0.16744105517864227, -0.05117885023355484, -0.27176105976104736, -0.5022218227386475, -0.7233002781867981, -0.16551947593688965, -0.10079815238714218, 0.06274919956922531, 0.051366835832595825, 0.7978336811065674, -0.12643161416053772, 0.46593326330184937, -0.633685290813446, 0.055394355207681656, 0.3210066556930542, 0.2160463035106659, -0.21269746124744415, -0.9780175089836121, -0.4593961536884308, -0.03406749665737152, -0.12512370944023132, -0.7890124320983887, 0.4807685911655426, 0.36107271909713745, 0.4925951659679413, 0.5244857668876648, 0.1196192130446434, 0.8580919504165649, -0.6509329676628113, 0.788825511932373, 0.22062371671199799, -1.0871671438217163, 0.6549312472343445, -0.35631105303764343, 0.548992395401001, 0.536073625087738, 0.5387266874313354, -0.6339914202690125, -0.364648699760437, -0.3584497570991516, -0.7250069975852966, 0.5117363929748535, -0.12166556715965271, 0.1654982715845108, -0.10596595704555511, 0.5919699668884277, -0.18458396196365356, 0.14015860855579376, -0.7252160310745239, -0.13833710551261902, -0.01687576249241829, -0.1055770069360733, -0.6298967599868774, -0.33475765585899353, 0.2569960951805115, -0.5181202292442322, 0.7084136605262756, -0.5993451476097107, -0.15204952657222748, 0.37354686856269836, -0.45329397916793823, -0.13926808536052704, 0.06449972093105316, 0.473091721534729, 0.4807124435901642, 0.08178222924470901, 0.11656001210212708, 0.7009351253509521, 0.05380793288350105, 0.2526125907897949, -0.23021945357322693, -0.24469022452831268, -0.23208878934383392, 0.6515349745750427, 0.5951098799705505, 0.8634006381034851, -0.5282094478607178, 0.8873540759086609, 0.25952067971229553, 0.015108413994312286, -0.02863355167210102, -0.2298537939786911, 0.01637030392885208, 0.3502063751220703, 0.36708998680114746, -0.41377073526382446, -0.05805250629782677, -0.4500461518764496, 0.22309119999408722, 0.7838111519813538, -0.5543702840805054, -0.3335150480270386, 0.684878945350647, 0.3327798843383789, -0.1639588177204132, 0.4588596820831299, -0.4666747450828552, -0.5387431979179382, -0.013767842203378677, 1.1058237552642822, 0.9755735397338867, -0.6378013491630554, 0.1207183375954628, 0.6053250432014465, 0.3406994640827179, -0.1668051779270172, 0.18411266803741455, -0.5987215638160706, -0.8021349310874939, -0.7007023096084595, -0.6628773808479309, -0.4227054715156555, -0.03769940510392189, -0.3730439841747284, 0.20100615918636322, -0.12411180138587952, 0.3381032347679138, -0.6502119898796082, -0.09957358241081238, -0.3980167508125305, 0.17039243876934052, 0.3794727623462677, 0.8485926985740662, -1.0081021785736084, 1.0698357820510864, 0.7663787603378296, -0.27090874314308167, -0.6460403800010681, 0.21509850025177002, 0.11642218381166458, -0.6096170544624329, 0.6180450916290283, 0.11960113048553467, -0.4587150812149048, 0.3054081201553345, -0.38591721653938293, -0.9598314762115479, 1.347700834274292, 0.2129293829202652, -0.40465930104255676, 0.18266168236732483, 0.2520582675933838, 0.4235864579677582, -0.6864516139030457, -0.007446595001965761, 0.28534096479415894, 0.2760428786277771, 0.226398304104805, -0.8355112671852112, -0.21572245657444, 0.27970489859580994, 0.07569525390863419, -0.06266031414270401, -0.5173963904380798, 0.33292198181152344, -0.24294611811637878, -0.22501446306705475, -0.07206478714942932, 1.0316829681396484, 0.1462656557559967, 0.5985016226768494, 0.3448854386806488, 0.5460614562034607, 0.5045821666717529, 0.23933124542236328, 0.8655179142951965, -0.5593827366828918, 0.34064286947250366, 1.341883897781372, -0.42331594228744507, 1.1339503526687622, 0.5293158888816833, 0.3082897365093231, 0.545720636844635, 0.34313443303108215, 0.38556230068206787, 0.5437827706336975, -0.2544403374195099, -0.5360768437385559, -0.4365466833114624, -0.11713649332523346, -0.18306732177734375, 0.9768645763397217, 0.34131941199302673, -0.07544952630996704, -0.533646285533905, 0.4374239444732666, -0.22807416319847107, 0.3229023218154907, -0.47152966260910034, 0.7659953236579895, 0.2539413273334503, -0.7639032006263733, 0.5548627376556396, 0.11420613527297974, 0.766462504863739, -0.5692529082298279, 0.04388679936528206, -0.5853491425514221, 0.03513535484671593, -0.05435922369360924, -0.7430856227874756, 0.1691145896911621, 0.18138456344604492, 0.21970324218273163, -0.35733410716056824, 0.7748523950576782, -0.7924600839614868, -0.5119072198867798, 0.650749921798706, 0.7672767639160156, 0.02232147753238678, -0.09048676490783691, -0.42325645685195923, -0.2603287398815155, -0.2749579846858978, -0.24462731182575226, 0.3900795876979828, 0.4412982165813446, -0.05910356342792511, 0.7279592156410217, 0.48138126730918884, -0.04063435271382332, -0.006828914862126112, -0.3038647174835205, 0.6620845198631287, -0.6928961873054504, -0.5216005444526672, -0.8214151859283447, 0.39303573966026306, 0.18416164815425873, -0.44580021500587463, 1.0816514492034912, 0.6913604736328125, 1.0169854164123535, -0.08058017492294312, 0.5656213164329529, 0.23453634977340698, 0.2927130460739136, -0.4815400540828705, 0.7446941137313843, -1.0113457441329956, 0.07474187761545181, -0.18399807810783386, -0.8586598634719849, -0.4147818386554718, 0.4200117588043213, -0.21213838458061218, -0.2968282997608185, 0.7430957555770874, 0.8566058278083801, -0.2992232143878937, -0.13512589037418365, 0.6556466221809387, -0.02066587097942829, -0.03961522504687309, 0.4673430621623993, 0.7697827816009521, -0.24416407942771912, 0.24439476430416107, -0.24669703841209412, -0.42125174403190613, -0.224491149187088, -1.1343806982040405, -0.9537916779518127, -0.874898374080658, -0.19066596031188965, -0.12620416283607483, 0.039618365466594696, 1.123931884765625, 0.7316344976425171, -0.6690685749053955, -0.6344901919364929, -0.14028270542621613, 0.08809096366167068, -0.3350299596786499, -0.06644584983587265, 0.23206768929958344, -0.7646655440330505, -0.6586266160011292, 1.2868043184280396, 0.6414039731025696, -0.10953745990991592, -0.26525557041168213, -0.25423938035964966, -0.265095978975296, 0.06872206181287766, 0.8070437908172607, 0.6415963172912598, -0.5458399057388306, -0.3286816477775574, -0.27634692192077637, -0.01915821246802807, -0.048817623406648636, 0.6905250549316406, -0.9713280200958252, 0.7201822400093079, 0.23127129673957825, 0.9621460437774658, 0.8080697655677795, -0.021193234249949455, 0.4865338206291199, -1.0806639194488525, 0.28924423456192017, -0.02950718253850937, 0.27445513010025024, 0.26418763399124146, -0.2251882404088974, 0.39220115542411804, 0.2944881021976471, -0.5025244355201721, -0.6366875767707825, 0.19539089500904083, -0.7896825075149536, -0.2575942277908325, 1.1495311260223389, -0.08053804934024811, -0.37371668219566345, 0.12310741096735, -0.026835894212126732, 0.15932486951351166, 0.05144704505801201, 0.7261534333229065, 0.4345017373561859, -0.09459826350212097, 0.14335188269615173, -0.14962725341320038, 0.6493353247642517, 0.6113879680633545, -0.5842868089675903, 0.1431330442428589, 0.35572683811187744, 0.2847899794578552, -0.09752952307462692, 0.6171427369117737, 0.06671087443828583, 0.30905142426490784, -0.4185676872730255, 0.2342858612537384, -0.1641552895307541, -0.7260832190513611, -0.6575249433517456, -0.06961902230978012, 0.1210453063249588, -0.23321275413036346 ]
http://arxiv.org/abs/2402.10013v2
http://arxiv.org/pdf/2402.10013v2
Bridging the Empirical-Theoretical Gap in Neural Network Formal Language Learning Using Minimum Description Length
2024-02-15T15:25:30
2024-06-06T16:16:12
Nur Lan, Emmanuel Chemla, Roni Katzir
cs.CL
cs.CL, cs.FL
Neural networks offer good approximation to many tasks but consistently fail to reach perfect generalization, even when theoretical work shows that such perfect solutions can be expressed by certain architectures. Using the task of formal language learning, we focus on one simple formal language and show that the theoretically correct solution is in fact not an optimum of commonly used objectives -- even with regularization techniques that according to common wisdom should lead to simple weights and good generalization (L1, L2) or other meta-heuristics (early-stopping, dropout). On the other hand, replacing standard targets with the Minimum Description Length objective (MDL) results in the correct solution being an optimum.
[ -0.31049153208732605, -0.7561128735542297, 0.6674163341522217, 0.1922610104084015, -0.20667998492717743, -0.06643092632293701, -0.5737372636795044, -0.37742170691490173, 0.09940623492002487, -0.11265470087528229, -0.47453999519348145, -0.28202497959136963, -0.4661691188812256, 0.16411028802394867, -0.39179542660713196, 0.8623305559158325, -0.08576860278844833, -0.14252915978431702, -0.1254047453403473, 0.04668572545051575, -0.09113731980323792, -0.06288495659828186, -1.1451630592346191, -0.6894386410713196, 0.9313937425613403, 0.3807733654975891, 0.5345897078514099, 1.0195626020431519, 0.5209393501281738, 0.33173713088035583, -0.17569191753864288, 0.3156783878803253, -0.14639036357402802, -0.18214385211467743, 0.1606823056936264, -0.6273691654205322, -0.158630833029747, -0.012709279544651508, 0.8263117671012878, 1.4117252826690674, -0.3349270224571228, 0.04768264293670654, 0.26228782534599304, 0.8911339640617371, -0.536345362663269, 0.24885646998882294, -0.4618144631385803, 0.5395578145980835, -0.281377911567688, -0.13741545379161835, -0.18129219114780426, -0.21386635303497314, 0.23912622034549713, -0.7184493541717529, 0.17590318620204926, 0.019972456619143486, 1.1130331754684448, 0.11526522785425186, -0.2934209704399109, -0.12985147535800934, -1.017654299736023, 0.960376501083374, -0.8590264320373535, 0.12435400485992432, 0.6455205082893372, 0.5116198062896729, 0.10412853211164474, -0.7063389420509338, -0.2101137638092041, -0.3712698221206665, -0.1603550910949707, -0.17008540034294128, -0.1048651784658432, 0.5168651342391968, 0.41612276434898376, 0.23263654112815857, -0.5024685859680176, 0.22147713601589203, -0.8564161062240601, -0.18524214625358582, 0.727968156337738, 0.2537486255168915, 0.05149007961153984, 0.21271538734436035, -0.26144087314605713, 0.4223352372646332, -0.6274362206459045, 0.07658424228429794, 0.3815719485282898, 0.4331820011138916, -0.12342296540737152, 0.11580782383680344, -0.3870130777359009, 0.8776407837867737, -0.1493648737668991, 0.1310889720916748, -0.002530642319470644, -0.41535499691963196, -0.3547275960445404, 0.02825617417693138, 0.845264196395874, 0.11430350691080093, 0.46063151955604553, -0.3873542547225952, -0.36735183000564575, 0.14794696867465973, -0.01649467647075653, -0.4878850281238556, -0.0737922340631485, 0.03554333373904228, -0.4720625877380371, -0.33656877279281616, -0.12166061997413635, -0.49483931064605713, 0.23874841630458832, -0.6299934983253479, 0.10316173732280731, -0.22764891386032104, 0.061161383986473083, 0.26446962356567383, 0.024244200438261032, 0.20731320977210999, 0.0386517196893692, -0.9593692421913147, 0.8044269680976868, 0.5668643712997437, 0.8868305087089539, 0.2647879123687744, -0.24224220216274261, -0.18500620126724243, -0.07763754576444626, -0.7953873872756958, 0.2501418888568878, -0.2724382281303406, 0.05493444204330444, 0.0025991417933255434, -0.4205233156681061, -0.19843123853206635, -0.18826048076152802, 0.5931066870689392, -0.3710181713104248, 0.3547377586364746, -0.3291764259338379, -0.5140856504440308, -0.1765938252210617, 0.21763750910758972, -0.39661887288093567, 0.7165120840072632, -0.1788913607597351, -0.5533796548843384, 0.22794178128242493, -0.8418392539024353, -0.5770089030265808, -0.04811220243573189, -0.24317578971385956, -0.12131012231111526, 0.3109164535999298, -0.2965411841869354, 0.4180060029029846, -0.3252590000629425, 0.17113296687602997, -0.03883637860417366, -0.49544668197631836, 0.08758272230625153, -0.38396134972572327, 0.5458535552024841, 0.6041408181190491, -0.41173872351646423, -0.06955312192440033, -0.8535017967224121, 0.14536185562610626, 0.31182536482810974, -0.4739243984222412, -0.5123014450073242, 0.16986259818077087, -0.11868669837713242, 0.23799759149551392, 0.3577646315097809, -0.4676166772842407, 0.07008545845746994, -0.712265133857727, 0.63077712059021, 0.8771368265151978, -0.35642480850219727, 0.7092378735542297, -0.3617185354232788, 0.3731345534324646, -0.25951671600341797, 0.032648105174303055, 0.12086920440196991, -0.2642829120159149, -0.8570177555084229, 0.014906462281942368, 0.8567485809326172, 0.4763984978199005, -0.4251624643802643, 0.26119503378868103, -0.22611188888549805, -0.006585719995200634, -0.2828192412853241, 0.3034699559211731, 0.7283528447151184, 0.5319183468818665, 0.1696590930223465, -0.22260357439517975, -0.6754851341247559, -1.3281335830688477, -0.29010382294654846, -0.05488056689500809, 0.03617358207702637, 0.2176549732685089, 0.32673606276512146, -0.10202436149120331, 0.6986421942710876, -0.25854676961898804, -0.2205798476934433, -0.17587369680404663, 0.15380163490772247, 0.3366437256336212, 0.3483128845691681, 0.29842233657836914, -0.6788643598556519, -0.5335082411766052, 0.234952911734581, -1.0210672616958618, 0.042082663625478745, -0.21376997232437134, 0.2566232979297638, 0.03025701828300953, 0.3736742436885834, -0.461870938539505, 0.3050757348537445, 0.27222776412963867, 0.11484545469284058, 0.4572761356830597, -0.2850531339645386, -0.21486671268939972, -0.8213934302330017, 0.07375123351812363, 0.26606979966163635, -0.2395094633102417, -0.9844021797180176, 0.15408971905708313, -0.17427724599838257, 0.015219048596918583, -0.3219844102859497, 0.528651237487793, -0.6202021241188049, -0.019402731209993362, -0.27116331458091736, 0.2691158652305603, -0.06639403104782104, 0.5800854563713074, -0.05827703699469566, 0.37471747398376465, 0.6951526403427124, -1.0125031471252441, 0.2257765233516693, -0.07222582399845123, -0.11206836253404617, 0.17242476344108582, -0.8489299416542053, 0.1388774961233139, -0.2777545154094696, -0.12503640353679657, -0.6060847640037537, -0.3113585412502289, 0.48668965697288513, -0.39779335260391235, 0.5420520901679993, -0.1682588905096054, -0.23329074680805206, -0.24891537427902222, -0.06769175827503204, 0.6376007199287415, 0.5804316997528076, -0.16416455805301666, 0.35451313853263855, -0.14357680082321167, 0.25654515624046326, -0.7506215572357178, -1.1299432516098022, 0.21594876050949097, -0.16212870180606842, -0.701436460018158, 0.2620295286178589, 0.14829561114311218, -0.45908820629119873, 0.030908575281500816, -0.24828355014324188, -0.32631683349609375, 0.24035580456256866, -0.19465409219264984, -0.13955101370811462, -0.4771689772605896, 0.2066197544336319, -0.0999956876039505, -0.2284119576215744, 0.26712721586227417, -0.35768091678619385, 0.4036678969860077, -0.4378776252269745, -0.32511499524116516, -0.46176204085350037, 0.19444839656352997, 0.14643216133117676, -0.12899430096149445, 0.5067629814147949, 0.21479158103466034, -0.689615786075592, -0.30120283365249634, -0.14611218869686127, -0.3530305325984955, -0.4649302363395691, 0.3299823999404907, -0.5207980275154114, -0.592268168926239, 0.4740445613861084, 0.0964665338397026, 0.1531027853488922, 0.4195498824119568, 0.03490227833390236, -0.24600078165531158, 1.0358550548553467, 0.4097118079662323, 0.06982995569705963, 0.29702407121658325, -0.49989742040634155, 0.2546716034412384, -0.7214298248291016, -0.046951647847890854, -0.5546719431877136, -0.6611903309822083, -0.17329558730125427, 0.05262206494808197, -0.0124765420332551, 0.3725411891937256, -0.052216630429029465, 0.2591705918312073, -0.40282920002937317, 0.6408832669258118, 0.577388346195221, 0.069757841527462, 0.024665452539920807, 0.1861046850681305, -0.3366432189941406, -0.19415844976902008, -1.0265883207321167, -0.44784560799598694, 0.8512076735496521, 0.4287150204181671, 0.5054622888565063, -0.07616899907588959, 0.9794962406158447, 0.16501136124134064, -0.24603676795959473, -0.8131794333457947, 0.6178007125854492, -0.010586390271782875, -0.5620099306106567, -0.49372512102127075, -0.7617596983909607, -1.249765396118164, 0.20605523884296417, 0.05148443207144737, -0.5181244015693665, 0.16987474262714386, 0.27484971284866333, -0.2796674072742462, 0.31900936365127563, -0.19906260073184967, 0.7788008451461792, -0.3304710388183594, -0.23299260437488556, -0.17258217930793762, -0.8485599160194397, 0.525314450263977, 0.19183245301246643, 0.48021915555000305, 0.014985042624175549, -0.18096300959587097, 0.7798336148262024, -0.5758812427520752, 0.891667902469635, -0.19565165042877197, 0.16584116220474243, 0.2592586874961853, 0.05205344408750534, 0.4346699118614197, -0.32933396100997925, 0.20054477453231812, -0.03921835497021675, -0.1818571388721466, -0.8536418676376343, -0.8567107915878296, 0.4014667868614197, -0.47385725378990173, -0.28321951627731323, -0.5156818628311157, -0.31355932354927063, 0.01162148080766201, 0.2410767823457718, 0.4056524336338043, 0.5600459575653076, -0.21957099437713623, 0.14556066691875458, 0.9095485806465149, 0.30155038833618164, 0.635222852230072, 0.18025179207324982, -0.136410653591156, -0.12163230776786804, 0.8911888003349304, 0.1484440118074417, 0.3778805136680603, 0.36336490511894226, 0.5564574003219604, -0.1624460220336914, -0.8120279908180237, -0.3295016884803772, 0.12026260793209076, -0.789461076259613, 0.08786962926387787, -0.3069523274898529, -0.42750173807144165, 0.0001368639204883948, -0.14481575787067413, -0.26797810196876526, -0.538894772529602, -0.22890214622020721, -0.16907034814357758, -0.10021816194057465, 0.6201697587966919, -0.43155086040496826, 0.2770523726940155, -0.6199285387992859, 0.07500222325325012, 0.3580528199672699, 0.2214634120464325, 0.08162035048007965, -0.598274827003479, -0.44535428285598755, 0.3491823673248291, -0.010612964630126953, -0.6850263476371765, -0.026554826647043228, 0.7361852526664734, 0.683725893497467, 0.7584435939788818, -0.2792438864707947, 0.4766784906387329, -0.5852773189544678, 0.5278024673461914, 0.4914001524448395, -0.7270498871803284, 0.5087956786155701, -0.41486236453056335, 0.17403613030910492, 0.5778321027755737, 0.3305428922176361, -0.7277873754501343, 0.025265326723456383, -0.574600338935852, -0.7363870143890381, 0.32692334055900574, 0.3246108591556549, 0.2914179265499115, -0.18809975683689117, 0.5376877188682556, -0.23349887132644653, 0.18931619822978973, -0.7628949880599976, -0.6273633241653442, 0.20060303807258606, -0.373119056224823, -0.004697538446635008, -0.06820960342884064, -0.3806697428226471, -0.15861158072948456, 0.6998524069786072, -0.22674737870693207, 0.34686756134033203, 0.08157014846801758, -0.17401880025863647, -0.1876622438430786, 0.4062511920928955, 0.9968846440315247, 0.9054785370826721, -0.027700167149305344, 0.2901214361190796, 0.25929832458496094, -0.12693466246128082, 0.11459840834140778, -0.03138761222362518, -0.3638402223587036, 0.09991414844989777, 0.6536547541618347, 0.9837251305580139, 0.521573543548584, -0.36180487275123596, 0.4068370759487152, 0.03453385457396507, -0.6368733048439026, -0.2101791501045227, -0.03370736539363861, -0.08116159588098526, -0.008416105061769485, 0.37110021710395813, 0.4449273943901062, 0.3285856246948242, -0.375284880399704, 0.26491859555244446, 0.45300060510635376, -0.6220939755439758, -0.3702704906463623, 0.44886472821235657, 0.04479394480586052, -0.5265700817108154, 0.46431964635849, -0.35690683126449585, -0.6400383710861206, 0.791089653968811, 0.5593643188476562, 0.9358019232749939, 0.010223282501101494, 0.17792072892189026, 0.24297428131103516, 0.5916456580162048, -0.26594310998916626, 0.1842166632413864, -0.09135447442531586, -0.5574360489845276, -0.6582236289978027, -0.5772283673286438, -0.05221187323331833, -0.11067438870668411, -0.6651846170425415, 0.06341782212257385, -0.9014129638671875, 0.04533300921320915, -0.11103899031877518, 0.14061696827411652, -0.6084561944007874, 0.30733662843704224, 0.20204536616802216, 0.8683854341506958, -0.8521543741226196, 0.6253811120986938, 0.5359389781951904, -0.5051764249801636, -1.03902268409729, -0.514099657535553, -0.06170063093304634, -0.47433510422706604, 0.8564417362213135, -0.007332793902605772, -0.11428603529930115, -0.21912327408790588, -0.6524402499198914, -0.6142114400863647, 0.8899766206741333, 0.22696520388126373, -0.8412490487098694, -0.4245145916938782, 0.1747891902923584, 0.5756301283836365, -0.48133641481399536, -0.11125113070011139, 0.3349858522415161, 0.6661249995231628, -0.000988982617855072, -0.8002673983573914, -0.08986308425664902, -0.2346654087305069, 0.013705241493880749, 0.35135573148727417, -0.47443151473999023, 0.9426628947257996, -0.10555633157491684, -0.23700344562530518, 0.15073615312576294, 0.6087661981582642, -0.06460554152727127, 0.5646795630455017, 0.4023391902446747, 0.7566241025924683, 0.828677237033844, -0.16466733813285828, 1.2885327339172363, -0.09178291261196136, 0.35625842213630676, 0.9304091930389404, 0.08840744197368622, 0.37352296710014343, 0.3000137507915497, -0.33835482597351074, 0.32527822256088257, 0.8986281156539917, 0.19687679409980774, 0.5554794669151306, 0.6179870963096619, -0.2039148509502411, -0.2791026532649994, 0.23912903666496277, -0.42445388436317444, 0.21134576201438904, 0.31374987959861755, -0.5676420331001282, -0.28447824716567993, -0.2026652991771698, -0.02937600389122963, 0.3389108180999756, -0.4528806805610657, 0.6006552577018738, 0.4257974922657013, -0.2907763421535492, 0.7878398299217224, 0.23439018428325653, 0.5571009516716003, -0.7260399460792542, 0.05166161060333252, -0.3490070402622223, 0.03928457573056221, -0.290776789188385, 0.006736328359693289, 0.3486858010292053, -0.4789515435695648, -0.3133854568004608, 0.13114917278289795, 0.8826465606689453, -0.5653821229934692, -0.41155460476875305, 0.2041635513305664, 0.3316730558872223, 0.3430401086807251, 0.20811277627944946, -0.8621661067008972, -0.314606636762619, -0.2686227262020111, 0.07723748683929443, 0.22831986844539642, 0.35795044898986816, 0.08694008737802505, 0.6816989779472351, 0.5326046943664551, 0.37224695086479187, 0.3940750062465668, -0.22282008826732635, 0.43223851919174194, -0.5293741822242737, -0.45311376452445984, -1.0835893154144287, 0.3168065845966339, -0.13420076668262482, -0.3100104331970215, 0.6376521587371826, 0.5488225817680359, 0.7106629014015198, -0.038780372589826584, 0.7621655464172363, 0.06139072775840759, 0.09799609333276749, -0.8459223508834839, 0.4423173666000366, -0.6515504121780396, 0.29455944895744324, -0.030312007293105125, -1.1783145666122437, -0.4845777750015259, 0.9097691774368286, -0.1900322139263153, 0.19351796805858612, 1.0177301168441772, 0.5460960865020752, -0.3651832044124603, -0.23400980234146118, 0.5802268385887146, -0.0032738479785621166, -0.1444147527217865, 0.7746266722679138, 0.8587310314178467, -0.6056778430938721, 0.3790913224220276, -0.39204949140548706, -0.21183456480503082, -0.16267725825309753, -0.8201083540916443, -0.8894956707954407, -0.4130241572856903, -0.4389747977256775, -0.37091800570487976, 0.44731053709983826, 1.070711374282837, 0.9485352039337158, -0.7459502816200256, -0.34606122970581055, -0.38640186190605164, 0.2928036153316498, -0.41044673323631287, -0.16725386679172516, 0.21129189431667328, -0.847362756729126, -0.5574387907981873, 0.5164008736610413, 0.21647615730762482, -0.11348995566368103, -0.378156453371048, -0.45399096608161926, -0.3241918981075287, 0.21323683857917786, 0.31424760818481445, 0.8884918689727783, -0.7625414729118347, -0.29684701561927795, -0.1052580177783966, -0.311299592256546, 0.07689227908849716, 0.9418985247612, -0.2890405058860779, 0.09986845403909683, 0.40404438972473145, 0.9740790128707886, 0.3429153263568878, -0.33662429451942444, 0.5565411448478699, -1.1099858283996582, 0.10748282819986343, 0.304524689912796, 0.42484092712402344, 0.21381177008152008, -0.11747328191995621, 0.6300421357154846, 0.36936506628990173, -0.46751442551612854, -0.8529165387153625, 0.5455693006515503, -0.6605387926101685, -0.3141147196292877, 0.9823370575904846, -0.033229291439056396, -0.4565955698490143, -0.15447653830051422, 0.07304452359676361, 0.04331604763865471, -0.11830686777830124, 0.5833045244216919, 0.6928503513336182, 0.07338062673807144, -0.10016834735870361, -0.5653833746910095, 0.625869870185852, 0.47347861528396606, -0.3744393587112427, -0.34590932726860046, 0.29780229926109314, 0.2640010416507721, 0.35334327816963196, 0.5507701635360718, 0.3373936414718628, 0.40000492334365845, -0.019509058445692062, -0.08805007487535477, -0.28315219283103943, -0.7135753631591797, -0.6124059557914734, -0.08176911622285843, 0.32169368863105774, -0.3730921745300293 ]
http://arxiv.org/abs/2404.03676v1
http://arxiv.org/pdf/2404.03676v1
Neural Information Organizing and Processing -- Neural Machines
2024-02-15T15:15:11
2024-02-15T15:15:11
Iosif Iulian Petrila
cs.NE
cs.NE, cs.CL, cs.LG
The informational synthesis of neural structures, processes, parameters and characteristics that allow a unified description and modeling as neural machines of natural and artificial neural systems is presented. The general informational parameters as the global quantitative measure of the neural systems computing potential as absolute and relative neural power were proposed. Neural information organizing and processing follows the way in which nature manages neural information by developing functions, functionalities and circuits related to different internal or peripheral components and also to the whole system through a non-deterministic memorization, fragmentation and aggregation of afferent and efferent information, deep neural information processing representing multiple alternations of fragmentation and aggregation stages. The relevant neural characteristics were integrated into a neural machine type model that incorporates unitary also peripheral or interface components as the central ones. The proposed approach allows overcoming the technical constraints in artificial computational implementations of neural information processes and also provides a more relevant description of natural ones.
[ -0.3814680278301239, -0.824154794216156, 0.31209248304367065, 0.22213439643383026, -0.06101623922586441, -0.17748500406742096, -0.20835193991661072, -0.5589728355407715, 0.5817641615867615, 0.11780942231416702, -0.3573800027370453, -0.030106626451015472, -0.19220702350139618, -0.17305493354797363, -0.4672146737575531, 0.7887793183326721, 0.1711963713169098, 0.5433009266853333, -0.05540681257843971, -0.25915980339050293, -0.4496162533760071, -0.9042077660560608, -0.5406214594841003, -0.5257401466369629, 0.536141574382782, -0.157455176115036, 0.4602409899234772, 0.9167479872703552, 0.6458611488342285, 0.5335612297058105, -0.2658268213272095, -0.04200821742415428, 0.2417348474264145, 0.3575928807258606, -0.3507019877433777, -0.7336729168891907, -0.6291729807853699, 0.003203202039003372, 0.8564950227737427, 1.016980767250061, 0.0491727851331234, 0.25608643889427185, 0.15011906623840332, 0.5922510027885437, -0.28945595026016235, 0.2701992988586426, -0.4051259756088257, 0.4334985911846161, 0.23118947446346283, -0.6849642992019653, -0.21467465162277222, -0.47752758860588074, -0.04519544541835785, -0.2982787489891052, 0.23602066934108734, -0.15119265019893646, 0.3007350265979767, 0.23223434388637543, -0.12719768285751343, -0.2413232922554016, -1.1147940158843994, 0.5069652795791626, -0.24832908809185028, 0.12155433744192123, 0.09500325471162796, 0.3948882520198822, -0.0977812334895134, -0.5484747886657715, -0.11980661749839783, -0.22289341688156128, -0.113446906208992, 0.01648706942796707, -0.3158662021160126, 0.39159512519836426, -0.017429040744900703, 0.23623725771903992, -0.40482068061828613, -0.09501248598098755, -0.5666286945343018, -0.26581183075904846, 0.4766300320625305, 0.3839837610721588, 0.35531505942344666, 0.09072204679250717, -0.252776175737381, 0.2766631543636322, -0.2674548029899597, -0.22043229639530182, 0.4695729911327362, 0.3901689946651459, 0.33076757192611694, 0.6224024891853333, -0.341078519821167, 0.8415893316268921, -0.08944372832775116, 0.10872185975313187, -0.24345631897449493, -0.46535524725914, -0.644277036190033, 0.16151542961597443, 0.5160983800888062, 0.20548275113105774, -0.09725106507539749, -0.4890621304512024, -0.22711753845214844, -0.04248325154185295, 0.40167298913002014, -0.6266941428184509, -0.060140952467918396, -0.019368596374988556, -0.9242534637451172, -0.36221203207969666, 0.005835314281284809, -0.6321339011192322, -0.29873281717300415, -1.1129757165908813, 0.5533570647239685, -0.459963321685791, -0.3886203169822693, -0.34356775879859924, -0.22980503737926483, -0.16872061789035797, 0.05141010880470276, -0.9116054177284241, 0.7067238092422485, 0.3110913634300232, 0.8433648943901062, 0.019241346046328545, -0.30332350730895996, 0.24618937075138092, -0.10090277343988419, -0.1397811770439148, 0.3588901460170746, -0.1729060858488083, 0.15572087466716766, -0.3043794631958008, -0.11896970123052597, -0.1809529811143875, -0.6591686010360718, 0.2058085799217224, -0.7905529737472534, -0.09435158222913742, -0.09504253417253494, -0.37823575735092163, -0.4829505383968353, 0.06876612454652786, -0.7856392860412598, 0.19581590592861176, 0.0349959060549736, -0.4920773506164551, -0.15914838016033173, -1.1415820121765137, -0.4717647433280945, -0.18408584594726562, 0.19359153509140015, 0.3603716492652893, 0.348360151052475, -0.45339667797088623, 0.35154345631599426, -0.4569506347179413, 0.44882670044898987, -0.07429197430610657, -0.2227519452571869, 0.6726213693618774, -0.6590679883956909, 0.7927834391593933, 0.3190493583679199, -0.10369739681482315, 0.5388250350952148, -0.9046922922134399, 0.34064239263534546, -0.001381800975650549, -0.5283744931221008, -0.03511403128504753, 0.10457751899957657, -0.022518998011946678, 0.18510961532592773, 0.7551079988479614, -0.04497623071074486, 0.30174392461776733, -0.18300427496433258, 1.0657881498336792, 0.6518058180809021, 0.025221731513738632, 0.8667578101158142, -0.03090853802859783, 0.04799724370241165, 0.03635184466838837, 0.5118935108184814, 0.03062509000301361, -0.1805448681116104, -0.6475146412849426, 0.19117622077465057, 0.5380440354347229, 0.46923962235450745, -0.2868809103965759, 0.7376571297645569, -0.05581386387348175, -0.28002601861953735, -0.1584664136171341, -0.3060830533504486, 0.18147903680801392, 0.47199469804763794, 0.2288157343864441, -0.09498002380132675, -0.8276894688606262, -1.1456658840179443, 0.06979010999202728, -0.313206285238266, -0.21390759944915771, -0.19224253296852112, 0.298124760389328, 0.18743276596069336, 0.4791703224182129, -0.1509675830602646, 0.009635549038648605, 0.2836233377456665, 0.37749651074409485, 0.7012569904327393, 0.4605717957019806, -0.03324728086590767, -0.8664916753768921, 0.18667639791965485, 0.04317054525017738, -1.0496286153793335, 0.328906387090683, 0.061910416930913925, -0.14876684546470642, 0.016315851360559464, 0.30867037177085876, -0.8873819708824158, 0.5702972412109375, -0.054665230214595795, -0.1631544679403305, 0.5401210784912109, -0.6038000583648682, 0.31351757049560547, -0.6820163726806641, 0.4097316265106201, -0.4160696566104889, 0.4435950219631195, -0.8503098487854004, 0.2652454674243927, -0.22959931194782257, 0.20821911096572876, -0.017679303884506226, -0.02469855174422264, -0.5743592381477356, -0.3170103132724762, -0.5154389142990112, -0.312485009431839, -0.014552081003785133, 0.662512481212616, -0.31630846858024597, 0.3597266674041748, 0.5735045075416565, -0.947754979133606, 0.7375882267951965, -0.3220231831073761, -0.146011620759964, 0.8430696725845337, -0.7581652402877808, 0.03239086642861366, -0.2599068582057953, -0.21394453942775726, -0.8009787201881409, -0.5971740484237671, 0.1151425838470459, -0.5984175801277161, 0.3908030390739441, -0.12144617736339569, -0.574548602104187, -0.03674719110131264, 0.14274998009204865, 0.43923860788345337, 0.26517438888549805, -0.14379869401454926, 0.7216721177101135, 0.5009195804595947, -0.08376957476139069, -0.23939013481140137, -0.9433019757270813, 0.22990195453166962, -0.1327531486749649, -0.693863570690155, 0.7510707378387451, -0.053743280470371246, -0.592065691947937, 0.2870127856731415, 0.15376751124858856, -0.5795762538909912, -0.01988908275961876, 0.41712579131126404, 0.304408460855484, -0.41106417775154114, 0.6716813445091248, -0.08819210529327393, -0.033054180443286896, 0.20025770366191864, -0.6891540288925171, 0.6401963233947754, -0.2538334131240845, -0.19507351517677307, -0.39960914850234985, 0.36111846566200256, 0.7625259160995483, 0.14284974336624146, 0.7331668138504028, 0.2552627921104431, -0.7158470749855042, 0.09288620948791504, -0.13990160822868347, -0.24948696792125702, -0.3994196057319641, 0.39431294798851013, -0.30276453495025635, -0.1760246753692627, 0.6836255192756653, 0.2129458338022232, -0.1813593953847885, 0.45299848914146423, 0.309709370136261, -0.13471481204032898, 1.0796916484832764, 0.43622809648513794, -0.1968613862991333, 0.5246008038520813, -0.1749182492494583, 0.13005636632442474, -0.847501277923584, -0.4743868112564087, -0.43007513880729675, -0.9328948259353638, -0.3272075951099396, -0.21611258387565613, 0.32243919372558594, 0.5430763363838196, -0.5454766154289246, 0.21969647705554962, -1.2556965351104736, 0.4844081997871399, 0.8273721933364868, 0.2629345953464508, -0.04486590251326561, 0.12452571094036102, -0.2613804340362549, 0.08883491903543472, -0.6490455865859985, -0.3531859517097473, 0.8509728908538818, 0.08196324110031128, 0.5815348029136658, -0.1416381299495697, 0.1899581253528595, 0.18685466051101685, -0.02106430195271969, -0.6968363523483276, 0.6031367778778076, -0.036548513919115067, -0.6130908131599426, -0.17191576957702637, -0.37994369864463806, -0.7941884398460388, 0.1087602898478508, 0.11420760303735733, -0.9472245573997498, 0.20480775833129883, -0.0778789073228836, -0.4446108043193817, 0.6422585248947144, -0.887427806854248, 0.11558683216571808, -0.5492900013923645, -0.14522631466388702, -0.3405359387397766, -0.7518787384033203, 0.22535471618175507, 0.2829715609550476, -0.1220899298787117, 0.2642802596092224, -0.1995040327310562, 0.7082694172859192, -0.28087925910949707, 0.7812264561653137, -0.26163724064826965, 0.7438773512840271, 0.4939940571784973, 0.14690802991390228, -0.19183748960494995, -0.2147843986749649, -0.4252314269542694, 0.2480982095003128, -0.16097474098205566, -0.03331221640110016, -0.5437890887260437, 0.7698696851730347, -0.7575189471244812, -0.24623888731002808, -0.007943172939121723, -0.9093541502952576, 0.13061122596263885, 0.2772159278392792, 0.434372216463089, 0.423840194940567, -0.26193392276763916, 0.2072916328907013, 0.3897644877433777, 0.07786358147859573, 0.7014364004135132, -0.03311670571565628, -0.09949418902397156, -0.7911970615386963, 0.7170506119728088, 0.7840377688407898, -0.0966440737247467, 0.5088363885879517, -0.13303697109222412, -0.33051204681396484, -0.719079852104187, -0.05047143995761871, -0.2902832329273224, -0.904528021812439, -0.310806006193161, -0.37454283237457275, -0.7341633439064026, 0.012156500481069088, 0.38927721977233887, 0.06281046569347382, -0.6527970433235168, -0.48156046867370605, -0.017583902925252914, 0.22531890869140625, 1.0697221755981445, -0.3595999777317047, 0.4145714342594147, -0.5122703909873962, 0.3356441259384155, 0.4148450493812561, 0.3889996111392975, 0.14450985193252563, -0.19037413597106934, -0.36656150221824646, 0.4497661292552948, -0.35701149702072144, -0.9280107617378235, 0.26289334893226624, -0.02218608558177948, 0.6525303721427917, 0.2506170868873596, -0.45531585812568665, 0.44642332196235657, -0.18990011513233185, 0.4343215823173523, 0.33784064650535583, -0.739018440246582, 0.5697025656700134, -0.14839333295822144, 0.26642584800720215, 0.24602405726909637, 0.08868052065372467, -0.16530963778495789, 0.3855678141117096, -0.6364921927452087, -0.7091531157493591, 0.6856390833854675, 0.26441922783851624, 0.0679301992058754, 0.3586086332798004, 0.4336184859275818, -0.2625424563884735, 0.39711031317710876, -0.49504974484443665, -0.1612689346075058, -0.020751314237713814, -0.13775566220283508, 0.5192434787750244, 0.03541014343500137, -0.303202360868454, -0.39724427461624146, 0.33411797881126404, -0.041122354567050934, 0.8302268385887146, 0.17143088579177856, 0.06124943867325783, -0.02247699350118637, -0.048421770334243774, 0.6807335019111633, 0.6647197008132935, -0.07073798775672913, 0.3912186324596405, -0.13987930119037628, -0.1636945903301239, 0.3984479308128357, -0.06229521706700325, -0.2703765034675598, -0.04059235751628876, 0.27649474143981934, 0.7257289290428162, -0.02055080607533455, 0.13558247685432434, -0.20584611594676971, -0.17576821148395538, -0.06707313656806946, -0.2504987120628357, 0.5169304013252258, 0.3213517367839813, 0.39059585332870483, 0.4458734095096588, 0.8294234871864319, 0.37568846344947815, -0.5601267218589783, 0.04156198352575302, 0.2728327810764313, -0.43762099742889404, -0.7082170844078064, 0.2889387905597687, -0.29282432794570923, -0.8064359426498413, 0.7533325552940369, 0.13840971887111664, -0.3462813198566437, 1.2065646648406982, 0.4156525731086731, 0.8601633310317993, -0.46181029081344604, 0.04269398748874664, 0.38520798087120056, 0.3577626943588257, 0.17961496114730835, 0.3309343755245209, -0.31756192445755005, -0.5035994052886963, -0.2198045253753662, -0.8104461431503296, 0.008219040930271149, 0.23270581662654877, -0.5202937722206116, -0.054385311901569366, -1.0424997806549072, -0.6081293225288391, 0.6240257620811462, -0.30945146083831787, -0.574756383895874, 0.3122335970401764, 0.024798568338155746, 0.7050820589065552, -0.30350708961486816, 0.596015214920044, 0.812872052192688, -0.5535248517990112, -0.5363874435424805, -0.4255930185317993, -0.2902851998806, -0.4099065959453583, 0.8853917121887207, 0.07657265663146973, 0.1057693213224411, -0.2583634853363037, -0.5999188423156738, -0.9386168718338013, 0.8965626358985901, 0.5004374980926514, -0.007963527925312519, -0.23413914442062378, 0.2920275330543518, 0.8360844850540161, -0.5233358144760132, 0.6743725538253784, 0.3248031437397003, 0.6847512125968933, 0.12637872993946075, -0.5808026194572449, -0.11345463991165161, -0.6917498111724854, 0.004398368764668703, 0.2658786177635193, -0.47656041383743286, 1.1500433683395386, 0.16309916973114014, -0.23754069209098816, 0.37604600191116333, 0.18136820197105408, -0.2285720258951187, 0.024441955611109734, 0.185532808303833, 0.21071060001850128, 0.8296067714691162, -0.2834264636039734, 0.6488791108131409, -0.5558618903160095, -0.24532274901866913, 0.8373177647590637, 0.21396788954734802, 0.37351444363594055, 0.5196898579597473, -0.2135491520166397, 0.06260205805301666, 0.5327180027961731, 0.05589113384485245, 0.1773059070110321, 0.4656899869441986, -0.2880285382270813, 0.26003530621528625, -0.3030821681022644, -0.20676885545253754, 0.45072218775749207, 0.4256008565425873, -0.9383758306503296, -0.007519979029893875, -0.10276792198419571, -0.5254762172698975, -0.3881020247936249, -0.4738534092903137, 0.8172496557235718, -0.027437761425971985, -0.9757978320121765, 0.685560941696167, 0.14028704166412354, 0.2567756175994873, -0.5685694813728333, -0.25049763917922974, 0.1345033496618271, 0.07078254967927933, -0.43971678614616394, -0.5792736411094666, 0.6777511239051819, -0.33472034335136414, -0.7826736569404602, -0.15803366899490356, 1.0192750692367554, -0.1893254965543747, -0.23492331802845, 0.44069069623947144, -0.003121395595371723, 0.16869796812534332, -0.30404597520828247, -0.5650558471679688, -0.11894231289625168, -0.1426520049571991, -0.1499994546175003, 0.20588019490242004, 0.30533862113952637, 0.001733623561449349, 0.368960440158844, 0.5431456565856934, 0.2797887623310089, 0.4903637170791626, -0.13691262900829315, 0.629946768283844, -0.9149680137634277, -0.29492273926734924, -0.9211287498474121, 0.4787274897098541, -0.28181612491607666, -0.29563745856285095, 0.2197151631116867, 0.10422687232494354, 0.27214890718460083, -0.02704678848385811, 0.641797661781311, -0.2666570842266083, -0.21887151896953583, -0.36997801065444946, 0.8096476793289185, -0.17334090173244476, 0.00004469733903533779, 0.47846028208732605, -1.3427016735076904, -0.21709157526493073, 0.3434979021549225, 0.04924721643328667, 0.12523414194583893, 0.571215808391571, 0.5352967381477356, -0.16999883949756622, 0.520111620426178, 0.3632943332195282, 0.3670004606246948, -0.12111421674489975, 0.4809422194957733, 0.941317081451416, -0.3948434293270111, 0.2406986802816391, -0.3752870559692383, -0.21855920553207397, -0.16454842686653137, -0.475507527589798, -0.35987213253974915, -0.7704772353172302, -0.01665485091507435, -0.02710873633623123, -0.3150081932544708, 0.5982632040977478, 1.1419519186019897, -0.7400079965591431, -0.3904480040073395, -0.6703537702560425, 0.21096360683441162, -0.14816109836101532, -0.25023624300956726, 0.12608197331428528, -0.47155603766441345, -0.3919655978679657, 0.5444414019584656, 0.6540178656578064, 0.036425236612558365, -0.5255711674690247, 0.04527176916599274, -0.12101394683122635, 0.2537557780742645, 0.4785357117652893, 0.3032647967338562, -0.3858826756477356, 0.17701418697834015, 0.1857578307390213, -0.20750537514686584, 0.22451432049274445, 0.569667398929596, -0.3135937452316284, 0.5863791108131409, 0.985603392124176, 0.426772803068161, 0.18266749382019043, -0.3645935356616974, 0.5530595183372498, -0.5706733465194702, 0.07326646149158478, 0.3695482611656189, 0.5431097745895386, 0.23031818866729736, -0.5909698605537415, 0.41913679242134094, 0.03572341054677963, -0.637428879737854, -0.5444017648696899, 0.20962542295455933, -0.5085448026657104, -0.5117691159248352, 0.5114186406135559, -0.05477308854460716, -0.6638564467430115, -0.019470248371362686, -0.08468927443027496, 0.7904646396636963, 0.248585045337677, 0.7082990407943726, 0.6746975779533386, -0.5216266512870789, 0.37427055835723877, -0.340457946062088, -0.057296980172395706, 0.12489056587219238, -0.8596797585487366, -0.252157062292099, 0.4806031584739685, 0.08702263236045837, 0.8926167488098145, 0.31910240650177, -0.2745077311992645, 0.10346133261919022, 0.2499309629201889, 0.37730616331100464, -0.016061266884207726, -0.8968156576156616, -0.5161836743354797, 0.7330939173698425, -0.3083539605140686, -0.4751643240451813 ]
http://arxiv.org/abs/2402.09997v1
http://arxiv.org/pdf/2402.09997v1
LoraRetriever: Input-Aware LoRA Retrieval and Composition for Mixed Tasks in the Wild
2024-02-15T15:02:46
2024-02-15T15:02:46
Ziyu Zhao, Leilei Gan, Guoyin Wang, Wangchunshu Zhou, Hongxia Yang, Kun Kuang, Fei Wu
cs.AI
cs.AI, cs.CL, cs.LG
Low-Rank Adaptation (LoRA) provides an effective yet efficient solution for fine-tuning large language models (LLM). The modular and plug-and-play nature of LoRA enables the integration of diverse domain-specific LoRAs to enhance the capabilities of LLMs. Previous research on exploiting multiple LoRAs either focuses on specific isolated downstream tasks or fixes the selection of LoRAs during training. However, in real-world scenarios, LLMs receive diverse prompts covering different tasks, and the pool of candidate LoRAs is often dynamically updated. To bridge this gap, we propose LoraRetriever, a retrieve-then-compose framework that adaptively retrieves and composes multiple LoRAs according to the input prompts. LoraRetriever contains three main components: firstly, identifying and retrieving LoRAs relevant to the given input; secondly, formulating strategies for effectively integrating the retrieved LoRAs; and thirdly, developing efficient batch inference to accommodate heterogeneous requests. Experimental results indicate that LoraRetriever consistently outperforms the baselines, highlighting its practical effectiveness and versatility.
[ -0.3924010694026947, -0.8463245630264282, 0.419730007648468, 0.44341957569122314, -0.008848276920616627, 0.15605655312538147, -0.5415332317352295, -0.5515653491020203, 0.40438517928123474, 0.6198403835296631, -0.5823115706443787, -0.3599192202091217, -0.6331350207328796, 0.13639599084854126, -0.3820643126964569, 0.823994517326355, -0.008891336619853973, -0.34587356448173523, 0.10203386098146439, -0.3521774411201477, -0.79777592420578, -0.09594755619764328, -0.6434805393218994, -0.5018259286880493, 1.03953218460083, 0.7177154421806335, 0.3835272490978241, 0.26417315006256104, 0.4599068760871887, 0.3861185312271118, -0.008126167580485344, 0.44668683409690857, -0.72355055809021, 0.6744555234909058, -0.49067381024360657, -0.5219771265983582, -0.41192367672920227, -0.2749673128128052, 0.7170339226722717, 0.6835786700248718, -0.2927039861679077, 0.11139553785324097, 0.23698115348815918, 0.44933804869651794, -1.049144983291626, -0.2652662396430969, -0.7746286392211914, 0.17970994114875793, -0.14931680262088776, -0.166278675198555, -0.4808667004108429, -0.3001163899898529, 0.0015315134078264236, -0.6396931409835815, -0.19463036954402924, -0.15619561076164246, 0.361367404460907, 0.41752904653549194, -0.06660392880439758, -0.02900095283985138, -0.8189911246299744, 0.7565606236457825, -0.6257600784301758, 0.20390315353870392, 0.42514580488204956, 0.5685593485832214, -0.3142905533313751, -0.684603214263916, -0.45553791522979736, 0.30509522557258606, 0.11858297884464264, 0.07635154575109482, -0.3885488212108612, -0.3013092875480652, -0.07922669500112534, 0.3124851584434509, -0.41562530398368835, 0.5957346558570862, 0.05310239642858505, -0.022424904629588127, 0.10814280807971954, 0.10692223161458969, 0.18384963274002075, -0.027923185378313065, 0.07732179760932922, -0.1385907381772995, -0.5335004329681396, -0.10904660075902939, 0.218336820602417, 0.7365273833274841, -0.18773601949214935, 0.6603597402572632, -0.3002520799636841, 0.8113124370574951, 0.2776009738445282, -0.3330332040786743, 0.21901503205299377, -0.2359529435634613, -0.2841093838214874, 0.0001356281281914562, 0.74989914894104, -0.2703520655632019, -0.16985531151294708, -0.13824012875556946, -0.30443885922431946, -0.15857957303524017, 0.154277965426445, -0.7741215229034424, 0.06329608708620071, 0.2407948076725006, -0.12104972451925278, -0.36538970470428467, -0.21419160068035126, -0.8455524444580078, -0.7238543629646301, -0.06497636437416077, 0.5115014314651489, -0.2521291971206665, 0.020581604912877083, 0.2521621584892273, -0.05196143686771393, 0.21560832858085632, 0.6334193348884583, -0.9459720253944397, 0.3082256615161896, 0.6154660582542419, 0.6615758538246155, -0.46813586354255676, -0.5364410877227783, -1.3885916471481323, 0.12776173651218414, 0.043328456580638885, 1.1604576110839844, -0.5562379956245422, -0.37168875336647034, -0.02442537248134613, 0.27974939346313477, -0.2998782694339752, -0.6618425250053406, 0.44975656270980835, -0.6892916560173035, 0.30188024044036865, -0.20867647230625153, -0.09940654039382935, 0.1553150862455368, 0.3642113208770752, -0.9496234655380249, 1.3239370584487915, 0.46388161182403564, -0.7459850311279297, 0.14798271656036377, -0.9374261498451233, -0.6704114675521851, 0.1319248229265213, -0.12298461049795151, -0.20497016608715057, 0.2518218457698822, 0.3105265498161316, 0.27681657671928406, -0.3086419105529785, -0.17150646448135376, -0.2229444533586502, -0.5620668530464172, 0.20936466753482819, -0.11720605939626694, 0.4570569396018982, 0.02534673362970352, -0.18990086019039154, 0.30527088046073914, -0.7300381064414978, -0.08657053858041763, 0.19904650747776031, -1.0321695804595947, -0.2718832492828369, 0.15895184874534607, 0.23596595227718353, -0.0689125806093216, 0.23862224817276, -0.6521053910255432, 0.3945631980895996, -0.3238908350467682, 0.41743600368499756, 0.6768181920051575, -0.13845911622047424, 0.5185834169387817, -0.3780200779438019, 0.5834524035453796, -0.1549752801656723, -0.11157707124948502, 0.11572671681642532, -0.08276641368865967, -0.7957038879394531, -0.604922354221344, 0.30469048023223877, 0.5913386344909668, -0.9284468293190002, 0.41037774085998535, -0.38979777693748474, -0.37277987599372864, -0.5221798419952393, 0.4228835701942444, 0.10894539207220078, 0.34754258394241333, 0.2153574824333191, -0.1289723664522171, -0.5221163630485535, -0.5501646995544434, -0.2559652030467987, 0.15651428699493408, 0.24445024132728577, 0.2879226505756378, 0.3865058422088623, -0.6090514659881592, 0.9599624872207642, -0.5134581327438354, -0.49308088421821594, -0.664844810962677, 0.03271138295531273, 0.38836270570755005, 0.39252158999443054, 0.4366289973258972, -0.49422165751457214, -0.40168362855911255, 0.32173797488212585, -0.5412462949752808, -0.07790178060531616, 0.30962732434272766, -0.4052642285823822, 0.0006054889527149498, 0.4910639226436615, -0.4447307288646698, -0.028608594089746475, 0.9211530089378357, -0.16048048436641693, 0.11752203106880188, -0.2827468514442444, -0.0010174197377637029, -1.2378476858139038, 0.21644321084022522, -0.4531742334365845, -0.4984099566936493, -0.48006460070610046, 0.18151336908340454, -0.1268509179353714, 0.0035053237807005644, -0.6595916152000427, 0.8310926556587219, -0.18137399852275848, -0.23797918856143951, -0.349650502204895, 0.3429030478000641, 0.1763962060213089, 0.4316871166229248, -0.28905805945396423, 0.8516535758972168, 0.3802942931652069, -0.4741567075252533, 0.3855864107608795, 0.27949637174606323, -0.3283974528312683, 0.6264911890029907, -0.5644176602363586, 0.3776596486568451, -0.2966083586215973, 0.23487824201583862, -0.760773777961731, -0.5889174342155457, 0.13647881150245667, 0.054119013249874115, 0.013551468029618263, -0.4542329013347626, -0.5574911832809448, -0.152124285697937, -0.1446102261543274, 0.3506719172000885, 0.5338395833969116, -0.6812166571617126, 1.143663763999939, 0.3525727391242981, -0.3869694769382477, -0.6555821895599365, -0.7518290281295776, -0.14333543181419373, -0.25752541422843933, -0.19500581920146942, 0.07677297294139862, -0.13447454571723938, -0.13407069444656372, -0.06719668209552765, -0.002851014956831932, 0.020806998014450073, 0.43199944496154785, 0.2901008725166321, -0.022602055221796036, -0.25222426652908325, -0.09109636396169662, 0.043400779366493225, 0.015097268857061863, -0.4732067883014679, -0.3292648494243622, 0.6340076923370361, 0.05471579357981682, -0.6801859736442566, -0.020585767924785614, 0.43689271807670593, 0.4985717535018921, -0.37354105710983276, 0.5811891555786133, 0.7350131869316101, -0.34179767966270447, -0.7750199437141418, -0.46465158462524414, -0.04162496328353882, -0.5441223978996277, 0.5019282698631287, -0.41945764422416687, -1.099113941192627, 0.6215296983718872, -0.14533254504203796, 0.27880555391311646, 0.26102060079574585, 0.6364506483078003, -0.1373242288827896, 0.5596184730529785, 0.6763791441917419, -0.2431344985961914, 0.8304806351661682, -0.13149544596672058, 0.05582185834646225, -0.8141610622406006, -0.03258756920695305, -0.6785611510276794, -0.5417662262916565, -0.39406710863113403, -0.6095353364944458, 0.398507684469223, -0.06447643786668777, -0.003682238282635808, 0.2904423475265503, -0.25679510831832886, 0.7424920797348022, 0.4189029037952423, 0.12546485662460327, 0.4529740810394287, 0.21388985216617584, 0.04240330681204796, 0.1857077181339264, -0.6434805989265442, -0.11671511828899384, 0.7318376898765564, 0.06996303796768188, 1.075621247291565, 0.6455934643745422, 0.8401561379432678, 0.39455917477607727, 0.18933919072151184, -1.1038684844970703, 0.5186734199523926, -0.575984537601471, -0.3049777150154114, -0.3269823491573334, -0.26357483863830566, -1.1881240606307983, 0.5798637270927429, -0.10068659484386444, -0.8095957040786743, 0.3212846517562866, 0.17498232424259186, -0.581179678440094, 0.05325017496943474, -0.32040923833847046, 0.7050276398658752, -0.15512511134147644, -0.44380155205726624, -0.07765938341617584, -0.31941044330596924, 0.2533300817012787, -0.47486162185668945, 0.19404003024101257, -0.23297803103923798, 0.10510873794555664, 0.7024438381195068, -0.1714552491903305, 0.9077098369598389, -0.2161116898059845, -0.4119126498699188, 0.06329990923404694, 0.306318998336792, 0.6536528468132019, -0.08878637105226517, -0.35330334305763245, -0.5333326458930969, 0.06532664597034454, -0.367051362991333, -0.605214536190033, 1.0400118827819824, -0.9977124333381653, -0.37196409702301025, -0.31160563230514526, -0.6610453724861145, -0.45913809537887573, 0.5028704404830933, -0.06680943071842194, 0.43094301223754883, -0.43850475549697876, 0.23556049168109894, 0.821097731590271, -0.2338070124387741, 0.5144316554069519, 0.5884196758270264, -0.37274661660194397, -0.24350763857364655, 0.9083442091941833, -0.41090768575668335, 0.28192636370658875, 0.5181013941764832, 0.14908196032047272, 0.16101492941379547, -0.45247164368629456, -0.3894369304180145, 0.08956339955329895, -1.0709413290023804, -0.16487234830856323, -0.7006656527519226, 0.029309332370758057, 0.006746053695678711, -0.10626750439405441, -0.5605796575546265, -0.23014093935489655, -0.4741687774658203, 0.2686083912849426, 0.61833655834198, 0.6597142815589905, 0.041149772703647614, 0.4825693368911743, -0.623313844203949, 0.647148609161377, 0.4846654534339905, 0.32685422897338867, -0.23883870244026184, -0.7744103074073792, -0.2675461173057556, -0.10492487996816635, 0.13106666505336761, -0.2623291015625, 0.24455346167087555, 0.4235830307006836, 0.5150750279426575, 0.08214832842350006, -0.07306381314992905, 0.7285209894180298, -0.515933632850647, 0.5010622143745422, -0.12142499536275864, -0.6229261159896851, 0.4447183907032013, -0.4007738530635834, 0.5729880928993225, 1.0118409395217896, -0.12194360047578812, -0.5320152640342712, -0.08430084586143494, 0.07118655741214752, -0.7572733163833618, 0.8627071380615234, -0.20216839015483856, 0.14351330697536469, 0.21725432574748993, 0.03585952892899513, 0.3271348774433136, -0.06457622349262238, -0.48417776823043823, 0.13169842958450317, -0.09336430579423904, -0.31612730026245117, -0.1204136535525322, 0.11001721024513245, -0.3861303925514221, 0.026744062080979347, 0.4795094430446625, -0.47682562470436096, 0.32983827590942383, -0.11468227952718735, -0.41539978981018066, -0.1737004965543747, 0.6868343949317932, 0.5276768207550049, 0.4212837517261505, -0.30822911858558655, 0.39589744806289673, 0.11843550205230713, -0.5104278326034546, 0.14186719059944153, 0.2841396927833557, 0.08746275305747986, -0.07060118019580841, 0.39544540643692017, 0.743945300579071, 0.5304356813430786, -0.9674350023269653, 0.3854758143424988, -0.20847754180431366, -0.1102772057056427, -0.13196931779384613, 0.40791767835617065, 0.08821932971477509, 0.3034209907054901, 0.20212729275226593, 0.2005554437637329, -0.1323038935661316, -0.6140562891960144, -0.05648173391819, 0.21451039612293243, -0.26700523495674133, -0.22585168480873108, 0.37101954221725464, 0.21183806657791138, -0.14896909892559052, 0.3571718633174896, -0.010882538743317127, -0.18281486630439758, 0.17353864014148712, 0.5573630928993225, 0.7858529090881348, -0.04286454617977142, 0.12339780479669571, -0.16044089198112488, -0.034764353185892105, -0.27598848938941956, 0.5786101818084717, 0.1612735241651535, -0.8494107723236084, -0.581419050693512, -0.8106970191001892, -0.3922526240348816, 0.14601105451583862, -0.6243732571601868, 0.0384034663438797, -0.3364225924015045, -0.17872440814971924, 0.12877550721168518, -0.3121843934059143, -0.7418889403343201, -0.30797532200813293, -0.007070820312947035, 0.8395721316337585, -0.7746784090995789, 0.9014239311218262, 0.7944265007972717, -0.210989847779274, -0.6656134128570557, -0.05672469735145569, -0.09409358352422714, -0.9554355144500732, 0.653897225856781, -0.40771484375, -0.48471856117248535, 0.1927272379398346, -0.3266090154647827, -1.0342166423797607, 0.9308300614356995, 0.43827179074287415, -0.3091624081134796, -0.06429405510425568, 0.07108990103006363, 0.3707914352416992, -0.2923067510128021, -0.04605187848210335, 0.612312912940979, 0.49349263310432434, 0.22615256905555725, -0.9456341862678528, -0.12146637588739395, -0.2352171391248703, -0.026163090020418167, 0.1622312217950821, -0.37010911107063293, 0.8380669951438904, 0.00045247841626405716, 0.12956693768501282, 0.3780726194381714, 0.26247966289520264, 0.45674780011177063, -0.3288174867630005, 0.4735492765903473, 0.3636224567890167, 0.6632351875305176, -0.04046260938048363, 0.9925020933151245, 0.11783640086650848, -0.011997134424746037, 1.4934581518173218, -0.6680709719657898, 1.0729278326034546, 0.6224343180656433, 0.15726564824581146, 0.5991011261940002, 0.38620609045028687, 0.23703181743621826, 0.8698040246963501, 0.07952442020177841, -0.33666667342185974, -0.1818723827600479, -0.2771666944026947, -0.07590417563915253, 0.6728363037109375, 0.33367204666137695, -0.0009425412281416357, -0.3129640817642212, 0.3661542534828186, -0.0009582457132637501, -0.06313718110322952, -0.1750766932964325, 0.9154497981071472, -0.1233915388584137, -0.8959484100341797, 0.6437386870384216, 0.2213129699230194, 0.5549388527870178, -0.6677412390708923, -0.054607242345809937, -0.432665079832077, 0.4394338130950928, -0.2985202968120575, -0.49746081233024597, -0.2291327565908432, 0.07017414271831512, -0.2656790316104889, -0.07178550958633423, 0.7649372816085815, -0.3669767677783966, -0.43449896574020386, 0.32230210304260254, 0.8378069400787354, -0.19975601136684418, 0.12392452359199524, -0.4326978325843811, 0.6857321858406067, -0.20656195282936096, -0.19454863667488098, 0.5132099986076355, 0.452769011259079, -0.0829801857471466, 0.5692665576934814, 0.4934585690498352, 0.12356121093034744, 0.09892863780260086, 0.5933937430381775, 1.117667317390442, -0.4167979657649994, -0.4646884500980377, -0.568018913269043, 0.4316025972366333, 0.24851186573505402, -0.00870819017291069, 0.5270031690597534, 0.36274823546409607, 0.4897196292877197, -0.08531878888607025, 1.0239896774291992, -0.1434139758348465, 0.6088380813598633, -0.5853318572044373, 0.42082032561302185, -0.48052629828453064, 0.27923130989074707, -0.22007830440998077, -1.039747714996338, -0.2318827211856842, 0.5193601846694946, -0.20876723527908325, -0.02405695430934429, 0.588861882686615, 0.6487235426902771, -0.6196813583374023, -0.2152501344680786, 0.14494429528713226, 0.16944517195224762, 0.2609574794769287, 0.5143232345581055, 0.9235496520996094, -0.26349762082099915, 0.17367935180664062, 0.14546695351600647, 0.0008044487913139164, -0.5220511555671692, -0.8255449533462524, -0.777755081653595, -0.16548916697502136, -0.19199536740779877, -0.18862585723400116, 0.1738804131746292, 0.9720402359962463, 0.7150837779045105, -0.7305474281311035, -0.3405190110206604, 0.22673529386520386, 0.0632290169596672, -0.1310974508523941, -0.14963002502918243, 0.14277569949626923, -0.18201473355293274, -0.6835227012634277, 0.9236947298049927, 0.24188293516635895, -0.11859730631113052, -0.2337770015001297, -0.013273998163640499, -0.19033384323120117, 0.07290871441364288, 0.8204220533370972, 0.5127272009849548, -0.6737133264541626, -0.27621349692344666, 0.014947484247386456, -0.24995853006839752, 0.08205265551805496, 0.7158597111701965, -0.8741384148597717, 0.2511817514896393, 0.4475530683994293, 1.0320531129837036, 0.4910924732685089, -0.11363200098276138, 0.27418413758277893, -0.88773113489151, 0.3058118224143982, 0.18462932109832764, 0.5117793679237366, 0.3730572760105133, -0.11152768135070801, 0.3211272656917572, -0.12794087827205658, -0.28256574273109436, -0.8720137476921082, 0.20823253691196442, -1.2220219373703003, -0.3208235800266266, 1.1946998834609985, -0.007409046869724989, -0.10772884637117386, -0.058481499552726746, -0.28277257084846497, -0.2044820338487625, -0.463152676820755, 0.2937788963317871, 0.338838666677475, -0.10245326906442642, -0.27519288659095764, -0.4786395728588104, 0.09339867532253265, 0.3321434557437897, -1.1240856647491455, 0.1674952507019043, 0.4625818133354187, 0.392917662858963, -0.014383958652615547, 0.6870178580284119, 0.17768707871437073, 0.17626285552978516, -0.4251466393470764, -0.07161876559257507, 0.08450368791818619, -0.13721369206905365, -0.3467214107513428, 0.2116745412349701, 0.5730165839195251, 0.04877440631389618 ]
http://arxiv.org/abs/2402.09989v4
http://arxiv.org/pdf/2402.09989v4
LLMs as Bridges: Reformulating Grounded Multimodal Named Entity Recognition
2024-02-15T14:54:33
2024-05-29T16:59:59
Jinyuan Li, Han Li, Di Sun, Jiahao Wang, Wenkun Zhang, Zan Wang, Gang Pan
cs.CV
cs.CV, cs.CL
Grounded Multimodal Named Entity Recognition (GMNER) is a nascent multimodal task that aims to identify named entities, entity types and their corresponding visual regions. GMNER task exhibits two challenging properties: 1) The weak correlation between image-text pairs in social media results in a significant portion of named entities being ungroundable. 2) There exists a distinction between coarse-grained referring expressions commonly used in similar tasks (e.g., phrase localization, referring expression comprehension) and fine-grained named entities. In this paper, we propose RiVEG, a unified framework that reformulates GMNER into a joint MNER-VE-VG task by leveraging large language models (LLMs) as a connecting bridge. This reformulation brings two benefits: 1) It maintains the optimal MNER performance and eliminates the need for employing object detection methods to pre-extract regional features, thereby naturally addressing two major limitations of existing GMNER methods. 2) The introduction of entity expansion expression and Visual Entailment (VE) module unifies Visual Grounding (VG) and Entity Grounding (EG). It enables RiVEG to effortlessly inherit the Visual Entailment and Visual Grounding capabilities of any current or prospective multimodal pretraining models. Extensive experiments demonstrate that RiVEG outperforms state-of-the-art methods on the existing GMNER dataset and achieves absolute leads of 10.65%, 6.21%, and 8.83% in all three subtasks.
[ -0.5403300523757935, -0.8192546367645264, 0.5025769472122192, 0.0017484856070950627, -0.3473234474658966, 0.06449230015277863, -0.3480653166770935, -0.2657487690448761, 0.02684960700571537, 0.5342451333999634, -0.5730738639831543, -0.5304824113845825, -0.8323448300361633, -0.03610823303461075, -0.1422347128391266, 0.9093511700630188, -0.24657827615737915, 0.1419384628534317, -0.3882739543914795, -0.25195586681365967, -0.6312497854232788, -0.05193004757165909, -0.6007156372070312, -0.6060930490493774, 0.6498422622680664, 0.36211663484573364, 0.4632960557937622, 0.6738473773002625, 0.7271046042442322, 0.38675832748413086, 0.000034757562389131635, 0.3261004090309143, -0.7187780141830444, 0.2788327932357788, -0.30932822823524475, -0.2991947531700134, -0.3754071295261383, -0.008795782923698425, 0.5989224910736084, 0.5695165395736694, 0.020518992096185684, 0.04135764390230179, 0.1004427894949913, 0.5888921022415161, -0.534837543964386, 0.4316951632499695, -0.8011085987091064, -0.007998266257345676, -0.2027001827955246, -0.45163416862487793, -0.27328604459762573, 0.07230166345834732, 0.04661211743950844, -0.6405171751976013, 0.4089965224266052, 0.14784415066242218, 1.2581737041473389, 0.3368920683860779, -0.6185377836227417, -0.19335578382015228, -0.5340495705604553, 0.668662428855896, -0.34692463278770447, 0.7433966398239136, -0.06801405549049377, 0.35562217235565186, -0.3920418620109558, -0.8515043258666992, -0.406870573759079, -0.3739638924598694, -0.12555503845214844, 0.1636749505996704, -0.09820200502872467, 0.34731993079185486, 0.29960161447525024, 0.5662180781364441, -0.3634001910686493, -0.06317483633756638, -0.5092973113059998, -0.08721613138914108, 0.3487749397754669, 0.05642054229974747, 0.44774436950683594, -0.279483824968338, -0.7435206174850464, 0.07089847326278687, -0.7811425924301147, 0.18052329123020172, -0.042360592633485794, 0.2626529633998871, 0.00043193571036681533, 0.7056452035903931, -0.24026349186897278, 0.46733537316322327, 0.3527444899082184, -0.41324150562286377, 0.33020567893981934, -0.10407479107379913, -0.4933709502220154, -0.18636612594127655, 0.7130992412567139, 0.7372735738754272, 0.4555312693119049, -0.48113614320755005, -0.38887372612953186, 0.03926195576786995, 0.2909162938594818, -0.7748593688011169, -0.42039957642555237, -0.20275911688804626, -0.4007350206375122, -0.15028293430805206, 0.21664372086524963, -0.6975524425506592, -0.5617768168449402, -0.7001101970672607, 0.3057033121585846, -0.4003804922103882, -0.24822048842906952, 0.02217736467719078, 0.014189542271196842, 0.5182420015335083, 0.5839774012565613, -0.5423449277877808, 0.07683280110359192, 0.6797653436660767, 0.7231888771057129, -0.12002132833003998, -0.1907367706298828, -0.6073485612869263, 0.22980430722236633, -0.05474367365241051, 0.7956957221031189, -0.5215407609939575, -0.4655897319316864, -0.24333076179027557, 0.5923115611076355, -0.15471039712429047, -0.4335063099861145, 0.42526230216026306, -0.6477341651916504, 0.07941235601902008, -0.14696349203586578, -0.48554250597953796, -0.22080980241298676, 0.6057594418525696, -0.6864523887634277, 0.7290998101234436, -0.15379537642002106, -0.8508902192115784, 0.44743186235427856, -0.3240998387336731, -0.23537640273571014, 0.09681450575590134, -0.6010493040084839, -0.3685532212257385, 0.12139376997947693, 0.47145381569862366, 0.6690320372581482, -0.42637619376182556, 0.593767523765564, -0.24701648950576782, -0.2244948446750641, -0.1334863156080246, -0.34681886434555054, 0.27147427201271057, -0.058022089302539825, -0.12341973185539246, 0.2012178599834442, -0.7479510307312012, 0.12581203877925873, 0.13032570481300354, -0.6071435213088989, -0.30723682045936584, -0.11406674236059189, 0.14943400025367737, 0.13075070083141327, -0.04952108860015869, -0.3578405976295471, 0.22204017639160156, -0.18641303479671478, 0.3566800653934479, 0.7510950565338135, 0.1861812174320221, 0.8365925550460815, -0.1330087035894394, 0.6352772116661072, 0.22253195941448212, -0.22707583010196686, -0.5380592942237854, -0.4059104919433594, -1.0457252264022827, -0.6046274304389954, 0.5003098249435425, 0.6298220753669739, -0.9592536091804504, 0.07464157789945602, -0.693290114402771, -0.428067147731781, -0.5865713953971863, 0.06979917734861374, 0.43492498993873596, 0.5245761275291443, 0.3951064944267273, -0.13430611789226532, -0.5536181926727295, -1.0904513597488403, -0.2919420003890991, 0.014206764288246632, 0.04154463857412338, 0.4352034032344818, 0.44540876150131226, -0.5810597538948059, 1.0201610326766968, -0.30587804317474365, -0.47389042377471924, -0.1707286387681961, 0.24758970737457275, 0.17590166628360748, 0.5521873831748962, 0.25059762597084045, -1.1564621925354004, -0.42756354808807373, 0.24015945196151733, -0.8409427404403687, 0.011137858964502811, -0.2697676420211792, 0.08045780658721924, -0.3795715570449829, 0.839594841003418, -0.7876689434051514, 0.23367655277252197, 0.4226813316345215, -0.04814818128943443, 0.35631266236305237, -0.07221904397010803, 0.23186036944389343, -1.1452020406723022, -0.23398901522159576, 0.16001878678798676, -0.4141978919506073, -0.6578047275543213, 0.3120712637901306, 0.02342303656041622, -0.1698966920375824, -0.2957944869995117, 0.7117618322372437, -1.0408039093017578, 0.12292657047510147, -0.31628257036209106, 0.25217798352241516, 0.007602022960782051, 0.3432433307170868, -0.2682856619358063, 0.8038945198059082, 0.8899708390235901, -0.5763165354728699, 0.5021328926086426, -0.03438493609428406, -0.07118269801139832, 0.5647748708724976, -0.7952406406402588, 0.0587378665804863, -0.723908007144928, 0.1351615935564041, -0.9512753486633301, -0.4161401689052582, 0.38428235054016113, -0.5193210244178772, 0.6284135580062866, -0.6709238886833191, -0.2021539807319641, 0.004473119042813778, -0.059131789952516556, 0.34265372157096863, 0.3730767071247101, -0.5590553283691406, 1.3429937362670898, 0.39252108335494995, -0.10044194012880325, -0.5538633465766907, -0.4994439482688904, 0.2407841682434082, -0.38239115476608276, -0.7307478785514832, 0.5600141286849976, 0.3537292778491974, -0.1707558035850525, 0.20185302197933197, -0.3026721477508545, -0.020042814314365387, -0.06714310497045517, 0.702268123626709, 0.20038698613643646, -0.34131500124931335, 0.20346051454544067, -0.25497546792030334, -0.45806747674942017, -0.07123252749443054, -0.0066253188997507095, 0.3375689387321472, -0.2567555010318756, -0.4572410583496094, -0.10679453611373901, 0.24728147685527802, 0.690706729888916, -0.5547755360603333, 0.4304238557815552, 0.8524332046508789, -0.40540921688079834, 0.007971268147230148, -0.6820406317710876, -0.027460306882858276, -0.468116819858551, 0.34798121452331543, -0.8404194712638855, -1.3262522220611572, 0.4139255881309509, -0.5456085205078125, 0.03271402418613434, 0.2912265956401825, 0.3479003310203552, -0.18952161073684692, 0.5701457262039185, 0.8206573724746704, -0.004889386706054211, 0.376797616481781, -0.06720404326915741, 0.4954884946346283, -0.9205836653709412, -0.44863104820251465, -0.09061052650213242, -0.28471559286117554, -0.8193576335906982, -0.7041232585906982, 0.17646414041519165, 0.4667602777481079, 0.2639714479446411, 0.31745094060897827, -0.24335120618343353, 0.5455154776573181, 0.3599252998828888, 0.07043763995170593, 0.0850273072719574, 0.022006571292877197, -0.23042577505111694, -0.29684320092201233, -0.3625141978263855, -0.6018479466438293, 0.852997362613678, 0.5370733141899109, 0.9468333125114441, -0.09661338478326797, 0.7800002694129944, 0.17855075001716614, 0.5267561674118042, -0.9599723219871521, 0.7281743288040161, 0.08948539197444916, -0.3559308350086212, -0.02566930651664734, -0.2921491861343384, -0.7834082245826721, 0.6674584746360779, -0.41912174224853516, -0.6220026612281799, 0.16132372617721558, 0.21036197245121002, -0.005335177760571241, 0.2636573910713196, -0.6000797152519226, 0.8172134757041931, -0.06826882809400558, -0.1828296035528183, 0.09907438606023788, -0.49348801374435425, 0.4707968831062317, 0.10653343796730042, 0.23931261897087097, -0.22186104953289032, 0.13791118562221527, 0.4469538927078247, 0.16258546710014343, 0.7376144528388977, -0.2600487172603607, 0.01709797792136669, 0.127886563539505, -0.13228069245815277, 0.7037425637245178, 0.2224244773387909, 0.6036362051963806, 0.061588678508996964, -0.611714243888855, -0.0829465389251709, -0.716984748840332, 0.8405935764312744, -0.3880842626094818, -0.7765900492668152, -0.3089209794998169, -0.4226910471916199, -0.1288457214832306, 0.35112684965133667, 0.09981843084096909, 0.29175513982772827, -0.22846025228500366, 0.5413946509361267, 0.979820728302002, 0.051845114678144455, 0.060001812875270844, 0.32022079825401306, -0.36985740065574646, -0.7000138759613037, 0.7055644392967224, -0.10716168582439423, -0.06741448491811752, 0.39990317821502686, -0.3106214106082916, -0.13324779272079468, -0.45832765102386475, -0.3210310935974121, 0.4258735477924347, -0.8831436038017273, -0.120494544506073, -0.9830652475357056, -0.2429760992527008, -0.29090988636016846, -0.25280091166496277, -0.2943062484264374, 0.1116635799407959, -0.30126968026161194, -0.28445449471473694, 0.0560198649764061, 0.44667017459869385, 0.15571731328964233, 0.330036997795105, -0.7220327258110046, 0.7696091532707214, 0.41774070262908936, 0.11045774072408676, -0.3513603210449219, -0.5382835268974304, -0.00023570648045279086, -0.12426895648241043, -0.03901582211256027, -0.8430060148239136, -0.001197303761728108, 0.1675320416688919, 0.7296139001846313, 0.6279747486114502, -0.3184962570667267, 1.1219136714935303, -1.0551657676696777, 0.39087042212486267, 0.40152278542518616, -0.5667201280593872, 0.3355196416378021, -0.3221936523914337, -0.0020037987269461155, 0.4914420545101166, 0.3036780059337616, -0.6459237933158875, -0.1442302018404007, -0.43146076798439026, -1.1464314460754395, 0.27517348527908325, 0.15562310814857483, 0.23498748242855072, -0.043878208845853806, 0.28263047337532043, -0.22000907361507416, 0.04405662417411804, -1.02687668800354, -0.2258497178554535, -0.010601690039038658, -0.01805366761982441, -0.11544249951839447, -0.40416911244392395, -0.17154724895954132, -0.06909676641225815, 0.4941840171813965, -0.10813093930482864, 0.2903127670288086, 0.07845042645931244, -0.3445531725883484, 0.2013145238161087, 0.5760898590087891, 0.344109445810318, 0.40589621663093567, -0.04719085991382599, 0.34928005933761597, 0.16216997802257538, -0.2212885022163391, 0.25456497073173523, 0.11392917484045029, -0.252713143825531, 0.21124820411205292, 0.4371451139450073, 0.9002333879470825, 0.5047202110290527, -0.5078134536743164, 0.47321903705596924, 0.03252306580543518, -0.17305882275104523, -0.3250367343425751, 0.1067710816860199, 0.23785120248794556, 0.5222329497337341, 0.1848670095205307, 0.19773757457733154, 0.041535813361406326, -0.2468620091676712, 0.36074844002723694, 0.5449663400650024, -0.5528624057769775, -0.16004961729049683, 0.5784732103347778, 0.1746462732553482, -0.13008937239646912, 0.4728350043296814, -0.2544621527194977, -0.4233538508415222, 0.41103219985961914, 0.48920801281929016, 1.0138684511184692, -0.06264771521091461, -0.06120253726840019, 0.39292582869529724, 0.4994056820869446, -0.21294082701206207, 0.1375662237405777, -0.010331766679883003, -0.8774901628494263, -0.3535676896572113, -0.4816701114177704, 0.03429489955306053, 0.22010394930839539, -0.6922368407249451, 0.3836452066898346, -0.3609575927257538, -0.36190471053123474, 0.010322343558073044, -0.5756149291992188, -0.8322168588638306, 0.46696797013282776, 0.30759197473526, 0.7321711182594299, -0.8368064761161804, 0.5835220217704773, 1.2911632061004639, -0.3605503737926483, -0.6312770843505859, 0.09847508370876312, 0.08327198028564453, -0.5859181880950928, 0.9285538792610168, 0.5215530395507812, -0.35086485743522644, 0.2322026789188385, -0.37160128355026245, -0.9330502152442932, 1.425154209136963, 0.09698688983917236, -0.6054204702377319, -0.32094231247901917, -0.08155317604541779, 0.13458438217639923, -0.5910259485244751, 0.13353200256824493, 0.11491197347640991, 0.5926823616027832, 0.07298120856285095, -0.7488198280334473, -0.022752773016691208, -0.23666508495807648, 0.43556544184684753, 0.4000297784805298, -0.3977518677711487, 0.8390583395957947, -0.23366375267505646, -0.6523978114128113, -0.24614305794239044, 0.9496392011642456, 0.2931906580924988, 0.20191393792629242, 0.6696029305458069, 0.87726891040802, 0.624386191368103, -0.32650017738342285, 0.5858309864997864, -0.18422548472881317, 0.5527713894844055, 1.1263182163238525, -0.21201950311660767, 0.5188243985176086, 0.7388489842414856, 0.10345742851495743, 0.18161402642726898, 0.28679898381233215, -0.13810577988624573, 0.734021782875061, 0.2740115523338318, -0.24891501665115356, -0.5137999653816223, -0.12779340147972107, -0.2345210313796997, 0.5528331995010376, 0.23796024918556213, -0.4261479675769806, -0.7742226123809814, 0.28906598687171936, 0.20008866488933563, -0.0031928671523928642, -0.38965433835983276, 0.6175950169563293, 0.1512160301208496, -0.24095213413238525, 0.2990627884864807, 0.35898345708847046, 0.7417696714401245, -0.3934004604816437, -0.24444690346717834, 0.001390285324305296, 0.24909134209156036, -0.04968518763780594, -0.6531435251235962, -0.0043034423142671585, 0.014527694322168827, -0.3597985506057739, -0.3743324875831604, 1.1738373041152954, -0.5884847044944763, -0.3285449743270874, 0.4036669135093689, 0.5890244841575623, 0.047905437648296356, -0.09361931681632996, -0.7530685067176819, -0.06771788746118546, 0.09044423699378967, -0.42468321323394775, 0.09458129107952118, 0.7600269317626953, -0.09075315296649933, 0.9261457920074463, 0.6999544501304626, -0.1918354481458664, 0.22210583090782166, 0.1478419303894043, 1.2085894346237183, -0.7220653295516968, -0.2555992901325226, -0.9300462603569031, 0.8644352555274963, -0.012362027540802956, -0.0780719667673111, 0.8405481576919556, 0.42833176255226135, 0.9519473910331726, -0.28455451130867004, 0.5796040892601013, -0.1899120807647705, 0.2302478402853012, -0.8445371985435486, 0.5600592494010925, -0.5225504636764526, -0.07021982222795486, -0.185575470328331, -0.9668962359428406, -0.23822614550590515, 0.5440492630004883, -0.30054163932800293, 0.051763493567705154, 0.6125529408454895, 0.9256085753440857, -0.5256643891334534, -0.4699026048183441, 0.49478796124458313, 0.11037248373031616, 0.4904245436191559, 0.33817747235298157, 0.8721137642860413, -0.4873141348361969, 0.2864198386669159, 0.05535835400223732, -0.13651837408542633, -0.18619777262210846, -0.9649112224578857, -1.188819169998169, -0.40498584508895874, -0.4518835246562958, -0.14212335646152496, 0.09713570773601532, 0.9651690125465393, 0.7022573351860046, -0.6563367247581482, 0.2490955889225006, -0.04751066863536835, -0.10351161658763885, 0.1979127675294876, -0.2659904658794403, -0.03655814379453659, -0.40661731362342834, -0.5446500778198242, 0.6627374887466431, 0.4635724723339081, 0.030639106407761574, -0.14089585840702057, -0.06211245805025101, -0.046087756752967834, -0.16427406668663025, 0.5240001678466797, 0.10496046394109726, -1.0968555212020874, -0.23455263674259186, 0.003099593333899975, -0.10002521425485611, 0.10159774869680405, 0.8608064651489258, -0.7507747411727905, 0.4083053469657898, 0.24955902993679047, 0.9955592751502991, 0.2940748929977417, 0.36052700877189636, 0.23998482525348663, -0.7776857614517212, 0.1289072185754776, 0.07115183770656586, 0.7427228093147278, 0.4387585520744324, -0.13624487817287445, 0.35751432180404663, 0.4717653691768646, -0.49044451117515564, -0.6524195671081543, 0.4686910808086395, -1.0283758640289307, 0.12859906256198883, 1.1412577629089355, -0.3711089491844177, -0.21830648183822632, 0.09704791754484177, -0.28480568528175354, 0.07978542149066925, -0.24387146532535553, 0.3329969644546509, 0.7034194469451904, 0.2357480674982071, -0.764825701713562, -0.6400455236434937, 0.17034165561199188, -0.03854646533727646, -0.6236541271209717, -0.14552441239356995, 0.6636784672737122, 0.6172353625297546, 0.2413078099489212, 0.688542902469635, -0.08949771523475647, 0.00663395319133997, -0.18615686893463135, 0.36483848094940186, -0.3511711359024048, -0.626385509967804, -0.26706117391586304, 0.2259397804737091, -0.10407082736492157, -0.36502212285995483 ]
http://arxiv.org/abs/2402.09977v1
http://arxiv.org/pdf/2402.09977v1
Fast Vocabulary Transfer for Language Model Compression
2024-02-15T14:37:07
2024-02-15T14:37:07
Leonidas Gee, Andrea Zugarini, Leonardo Rigutini, Paolo Torroni
cs.CL
cs.CL, cs.AI, cs.LG
Real-world business applications require a trade-off between language model performance and size. We propose a new method for model compression that relies on vocabulary transfer. We evaluate the method on various vertical domains and downstream tasks. Our results indicate that vocabulary transfer can be effectively used in combination with other compression techniques, yielding a significant reduction in model size and inference time while marginally compromising on performance.
[ -0.504111111164093, -0.6976296901702881, 0.08231110870838165, 0.43429386615753174, -0.27132782340049744, 0.012332177720963955, -0.23726223409175873, -0.9666506052017212, 0.1438971608877182, 0.571483850479126, -0.32351091504096985, 0.10353033989667892, -0.6770563125610352, -0.33751094341278076, -0.5931617021560669, 0.5086012482643127, 0.193081796169281, -0.33239755034446716, -0.1850990653038025, 0.20330359041690826, -0.6832553744316101, -0.7287210822105408, -1.0663491487503052, -0.3576525151729584, 0.18071900308132172, 0.1780095249414444, 0.9638652205467224, 0.6643238067626953, 0.8008190393447876, 0.26411357522010803, -0.10703766345977783, -0.06770338863134384, -0.4245401620864868, 0.0036987229250371456, -0.4484975039958954, -0.30469226837158203, -0.568179726600647, -0.14408062398433685, 0.6729592680931091, 0.9046040177345276, -0.26314955949783325, 0.5842232704162598, -0.21256496012210846, 0.5927128195762634, -0.7496742010116577, 0.13540752232074738, -0.5269480347633362, 0.0524224154651165, -0.15290962159633636, -0.24017204344272614, -0.5624412298202515, -0.12436369061470032, 0.25103580951690674, -0.4112399220466614, 0.05553480237722397, 0.20569095015525818, 1.255642056465149, 0.16450439393520355, -0.15207701921463013, 0.10247557610273361, -0.9337480664253235, 0.7628898620605469, -0.6148814558982849, 0.42954742908477783, 0.2547740638256073, 0.4336051046848297, 0.32828202843666077, -1.004287600517273, -0.6087315678596497, -0.16133210062980652, 0.09918642789125443, -0.21151810884475708, -0.3928849995136261, 0.022350406274199486, 0.29843375086784363, 0.2682686150074005, -0.35546553134918213, 0.2464761883020401, -0.6465146541595459, -0.228290855884552, 0.6064949035644531, -0.03386371582746506, 0.2574980854988098, 0.02440992183983326, -0.541026771068573, -0.3638381063938141, -0.7080902457237244, -0.09187255054712296, 0.146427720785141, 0.4821241497993469, 0.10378856211900711, 0.32616057991981506, -0.02843794971704483, 1.1620042324066162, -0.46440237760543823, -0.28636643290519714, -0.2322232574224472, -0.4810112714767456, -0.4000176191329956, 0.005930291023105383, 0.3808281123638153, 0.4538300633430481, 0.2777599096298218, -0.21989135444164276, -0.2709617614746094, 0.22138379514217377, 0.28847360610961914, -1.117795467376709, -0.3200104534626007, 0.07291856408119202, -0.6368651986122131, -0.1684398055076599, -0.15720535814762115, -0.9222471714019775, 0.055137768387794495, -0.2860047519207001, 0.6523242592811584, -0.09287452697753906, -0.10211112350225449, 0.5017395615577698, -0.4439522624015808, 0.03489745035767555, 0.2830176055431366, -0.7736011147499084, 0.7424514889717102, 0.5037142038345337, 1.3432461023330688, -0.10709396004676819, -0.035573411732912064, -0.684128999710083, 0.32978555560112, -0.25451117753982544, 0.8993121981620789, -0.37478020787239075, -0.36527711153030396, -0.1496111899614334, -0.2649606466293335, 0.003866380313411355, -0.5777738094329834, 0.45400866866111755, -0.4172452986240387, -0.09714734554290771, 0.017629263922572136, -0.68100506067276, -0.07729382067918777, -0.03126030042767525, -0.7410029768943787, 0.8943334221839905, 0.3173370659351349, -0.33421215415000916, 0.09048276394605637, -0.47272396087646484, -0.6205401420593262, 0.13350825011730194, 0.30320975184440613, 0.044482845813035965, 0.12016839534044266, 0.1066083014011383, 0.6609134674072266, -0.5170655846595764, -0.2693186104297638, -0.2411651760339737, -0.37662097811698914, 0.13728521764278412, -0.14975674450397491, 0.6755209565162659, 0.5674140453338623, 0.1050049364566803, -0.3609049618244171, -0.7275167107582092, 0.0450158528983593, 0.029149388894438744, -0.26219961047172546, -0.6971638798713684, -0.2901609539985657, 0.22200678288936615, 0.44995659589767456, 0.3498494625091553, -0.381382554769516, 0.7082458138465881, -0.2813619375228882, 0.46022331714630127, 0.5300469994544983, -0.29960137605667114, 0.634586751461029, -0.49643218517303467, 0.7647766470909119, -0.3291158378124237, 0.07738896459341049, 0.4708370864391327, -0.3873479664325714, -0.8218297958374023, -0.4883725345134735, 0.8872364163398743, 0.6526750922203064, -0.8633487224578857, 0.26862096786499023, -0.8369026184082031, -0.6306739449501038, -0.5400785207748413, -0.06381852179765701, 0.21561841666698456, 0.43840378522872925, 0.35067111253738403, -0.6191907525062561, -0.4155406951904297, -0.9895913600921631, -0.4201693832874298, -0.14022916555404663, -0.10376298427581787, 0.30701592564582825, 0.26167890429496765, 0.24451111257076263, 0.727630615234375, -0.674282968044281, -0.26055198907852173, -0.6001896262168884, 0.5662055015563965, 0.11541199684143066, 0.6196587085723877, 0.7958185076713562, -0.7721338272094727, -0.3904777467250824, -0.10825684666633606, 0.05055377259850502, -0.2677280604839325, -0.506328821182251, -0.22893713414669037, 0.05851426348090172, 0.5571103096008301, -1.0010842084884644, 0.37301376461982727, 1.0076123476028442, -0.3639528453350067, 0.5043262243270874, -0.2629207372665405, -0.0958610326051712, -1.1820940971374512, 0.06549309939146042, -0.1162605807185173, -0.4765181839466095, -0.7780314087867737, 0.2272072732448578, 0.08183830231428146, -0.032223884016275406, -0.8304293155670166, 0.9753482937812805, -0.7100685238838196, -0.30577054619789124, -0.2582486867904663, 0.14919163286685944, 0.07742412388324738, 0.14979702234268188, 0.10496603697538376, 1.1004397869110107, 0.6026245355606079, -1.0785456895828247, 0.254765123128891, 0.4014795124530792, -0.656554639339447, 0.38284704089164734, -0.48234179615974426, 0.07706237584352493, 0.09961476176977158, 0.1739625185728073, -0.6450133919715881, 0.12188775837421417, -0.09975357353687286, -0.28198859095573425, 0.588356077671051, -0.39499521255493164, -0.5208551287651062, -0.4138086140155792, -0.08778457343578339, 0.2210717648267746, 0.8514506816864014, -0.5176270008087158, 0.4593309462070465, 0.32910850644111633, -0.2313036322593689, -0.332224577665329, -1.3594813346862793, 0.44679373502731323, -0.28726544976234436, -0.8147487640380859, 0.9283023476600647, -0.011454036459326744, -0.1748555302619934, 0.07924839854240417, -0.11174590140581131, -0.4108063876628876, 0.19844022393226624, -0.36866438388824463, 0.2680976092815399, -0.062417030334472656, 0.1326507180929184, 0.028560234233736992, 0.19860361516475677, -0.15001386404037476, -0.35428300499916077, 0.44931742548942566, 0.13882564008235931, 0.19734840095043182, -0.4054116904735565, 0.3286123275756836, 0.5989297032356262, -0.06566967815160751, 1.219810962677002, 0.3618713617324829, -0.34513333439826965, -0.3866090476512909, -0.2842811942100525, -0.23930241167545319, -0.48007136583328247, 0.3089153468608856, -0.537231981754303, -0.8040460348129272, 0.4787972569465637, -0.40935012698173523, -0.131654754281044, 0.24597950279712677, 0.3570488691329956, 0.49654504656791687, 0.8645917773246765, 0.978806734085083, -0.23284131288528442, 0.6518873572349548, -0.3118560314178467, 0.7468030452728271, -0.5034717917442322, 0.20570220053195953, -0.891689121723175, -0.2807835638523102, -0.29252341389656067, -0.5838596820831299, -0.1070970743894577, 0.2996010184288025, 0.12894275784492493, 0.7957631945610046, -0.3607400059700012, 0.3222958743572235, 0.31986746191978455, -0.27748042345046997, 0.1899704784154892, 0.2460283786058426, 0.2141469419002533, 0.11209079623222351, -0.9361485838890076, -0.26760557293891907, 0.597080409526825, 0.25920021533966064, 0.8077196478843689, 0.6716311573982239, 0.2549622058868408, 0.41953790187835693, 0.2963518798351288, -1.187170147895813, 0.601767361164093, -0.4759131371974945, -0.46707457304000854, -0.22146372497081757, -0.6479799747467041, -1.1185232400894165, 0.25101473927497864, -0.1616206169128418, -0.982145369052887, 0.07135242223739624, 0.06359568238258362, -0.5671542882919312, 0.3352496922016144, -0.8441108465194702, 0.6643348932266235, 0.10573738068342209, -0.27231550216674805, -0.24477466940879822, -0.47925710678100586, 0.3867879807949066, -0.1008373275399208, 0.40817487239837646, -0.08047284185886383, -0.16293196380138397, 0.776219367980957, -0.595859944820404, 0.5356382727622986, 0.14334294199943542, 0.011825778521597385, 0.019113225862383842, 0.519086480140686, 0.4652271568775177, -0.4115539789199829, -0.027594273909926414, 0.35593387484550476, 0.1621069759130478, -0.49163153767585754, -0.9193553924560547, 0.43223831057548523, -0.2935919463634491, -0.3784438371658325, -0.23786240816116333, -0.797817587852478, -0.2604478597640991, 0.10502614825963974, 0.19480600953102112, 0.5349530577659607, 0.13892336189746857, 0.1613616794347763, 0.33317455649375916, 0.09441690891981125, 0.45774176716804504, 0.21282094717025757, -0.06224871799349785, 0.25982725620269775, 0.7431715130805969, 0.3956871032714844, 0.558012068271637, 0.525312602519989, 0.24241381883621216, -0.32191210985183716, -0.6770763993263245, -0.47702667117118835, 0.0985528752207756, -0.6029682159423828, -0.44679033756256104, -0.4208388328552246, -0.30847224593162537, -0.6732463240623474, -0.4108871519565582, -0.7573904395103455, -0.8399970531463623, -0.08598659187555313, 0.2384788542985916, 0.44267651438713074, 0.48285773396492004, -0.05615570768713951, 0.5622380375862122, -1.3304368257522583, 0.2733649015426636, 0.12263274937868118, 0.22698907554149628, -0.03307473659515381, -0.8316358327865601, -0.35515689849853516, -0.23892106115818024, 0.17829616367816925, -0.8456424474716187, 0.9200491309165955, 0.662781298160553, 0.3720414936542511, 0.22812260687351227, 0.22360111773014069, 0.8575214147567749, -0.3226955235004425, 1.0397789478302002, 0.18433643877506256, -1.2311652898788452, 0.2125847488641739, 0.17901989817619324, 0.14277362823486328, 0.2890832722187042, 0.6033843755722046, -0.6141484975814819, 0.026330066844820976, -0.6439951658248901, -1.015751838684082, 0.40302297472953796, 0.22872906923294067, 0.28469446301460266, 0.08286746591329575, 0.5095199942588806, -0.08306268602609634, 0.11463789641857147, -0.23776067793369293, -0.11768121272325516, 0.406725138425827, 0.024645930156111717, -0.03083144500851631, -0.09266655147075653, 0.06880971789360046, -0.5012369751930237, 0.5463315844535828, -0.24637208878993988, 0.6155271530151367, 0.15279553830623627, -0.1654481738805771, 0.30964231491088867, 0.14693409204483032, 0.5179874897003174, 0.6008830666542053, -0.07568565756082535, 0.27772530913352966, 0.10660979896783829, -0.5527148842811584, 0.12067704647779465, 0.007442330941557884, 0.04775730520486832, -0.0709618404507637, 0.30027884244918823, 0.7860708832740784, 0.1751294881105423, -0.7017139792442322, 0.500335156917572, -0.1650102436542511, -0.26054710149765015, 0.1408514529466629, -0.04658917337656021, 0.004583682399243116, 0.11752747744321823, -0.1950872838497162, 0.29492616653442383, 0.42189663648605347, -0.5890920758247375, 0.01675334759056568, 0.1791771799325943, -0.09309542179107666, -0.07257746905088425, 0.358266681432724, -0.07845122367143631, -0.28056684136390686, 0.7071855068206787, -0.021413981914520264, -0.500340461730957, 0.4264307916164398, 0.5848639607429504, 0.6250728368759155, -0.27157503366470337, -0.11163633316755295, 0.20131684839725494, 0.19183732569217682, -0.6206340789794922, 0.24530653655529022, -0.05133747681975365, -0.7648817300796509, -0.959589421749115, -0.602508544921875, -0.5958250761032104, 0.13260038197040558, -0.798109769821167, 0.2689795196056366, -0.24263383448123932, -0.3895564079284668, 0.1351936012506485, -0.12614208459854126, -0.6311522126197815, 0.02911987714469433, 0.17771995067596436, 1.394266128540039, -0.6310479640960693, 1.0918035507202148, 0.4850568473339081, -0.2651846706867218, -0.8814592361450195, -0.22912615537643433, -0.1779819130897522, -0.4129566252231598, 1.0015333890914917, -0.10335154831409454, -0.42985183000564575, -0.0020455406047403812, -0.451645165681839, -1.1829402446746826, 0.668975293636322, 0.44735831022262573, -0.5187215209007263, -0.1186162456870079, -0.21495376527309418, 0.4836339056491852, -0.3065366744995117, -0.2053106725215912, 0.6288433074951172, 0.45267170667648315, 0.2140093445777893, -1.2244001626968384, 0.1985366940498352, -0.08076081424951553, 0.3588695228099823, 0.12919564545154572, -0.5459946990013123, 1.0245312452316284, 0.25475549697875977, -0.26413682103157043, 0.32734718918800354, 0.8271888494491577, -0.21658183634281158, -0.26697680354118347, 0.5482515692710876, 0.47544386982917786, 0.7947983145713806, 0.3085481822490692, 1.4361870288848877, -0.49982184171676636, 0.45690906047821045, 0.9044218063354492, -0.29771170020103455, 1.328663945198059, 0.6210262179374695, -0.21163111925125122, 0.4201129078865051, 0.3794149160385132, 0.1844320446252823, 0.42516764998435974, 0.5418547987937927, -0.1577119529247284, -0.26516661047935486, -0.3221167027950287, -0.28531643748283386, 0.632997989654541, 0.5557093024253845, 0.019983232021331787, 0.039735402911901474, -0.08743643760681152, 0.21561236679553986, -0.16988548636436462, -0.2751910388469696, 0.220228910446167, 0.058337774127721786, -0.841122567653656, 0.8347361087799072, 0.2508092522621155, 0.8739644885063171, -0.6637028455734253, -0.06901690363883972, -0.03320373594760895, 0.23575140535831451, 0.19191573560237885, -0.5776242613792419, 0.7464805841445923, -0.24197886884212494, 0.16993631422519684, -0.7138871550559998, 1.1410211324691772, -0.4782705307006836, -0.16273516416549683, 0.45282217860221863, 0.5464563965797424, 0.5537455081939697, -0.231600821018219, -0.6364657878875732, -0.05937035009264946, -0.4034379720687866, -0.2790038287639618, 0.41611507534980774, 0.11391999572515488, -0.1304907500743866, 0.7939424514770508, 0.8390731811523438, 0.6834194660186768, 0.15748201310634613, 0.1265050321817398, 0.7743379473686218, -0.4889977276325226, -0.6806817650794983, -0.4696378707885742, -0.02595626190304756, -0.2561658024787903, -0.1453741490840912, 0.8176727890968323, 0.258558988571167, 0.8376996517181396, -0.07125437259674072, 0.597565770149231, -0.14882463216781616, 0.3197731673717499, -0.8806819319725037, 0.7851190567016602, -0.6604878902435303, 0.10446455329656601, -0.11869365721940994, -0.8429145812988281, -0.46904584765434265, 0.7745879888534546, -0.028087155893445015, -0.1352706104516983, 0.798201322555542, 0.6191995143890381, -0.13674518465995789, -0.2895868420600891, 0.5431311726570129, 0.1341177076101303, 0.20351558923721313, 0.46140870451927185, 0.4274228811264038, -0.44523003697395325, 0.5158918499946594, -0.45788514614105225, -0.1932695060968399, -0.349662184715271, -1.2931932210922241, -0.553563117980957, -0.46248167753219604, -0.6230804920196533, -0.5502768754959106, 0.0032940669916570187, 0.7081237435340881, 1.3421072959899902, -0.38508445024490356, -0.42877092957496643, -0.0017499164678156376, -0.13416101038455963, -0.6573694944381714, -0.23012317717075348, 0.2970559000968933, -0.13576219975948334, -0.7558160424232483, 0.36969539523124695, 0.10980768501758575, 0.1566830426454544, -0.2646043002605438, 0.11991920322179794, -0.28791680932044983, 0.6004632115364075, 0.8644130825996399, 0.2679789066314697, -0.3481074273586273, -0.37700024247169495, -0.16099591553211212, 0.09229977428913116, -0.21238504350185394, 1.1307660341262817, -0.7465894818305969, 0.09886156767606735, 0.9309532046318054, 0.8242336511611938, 0.6256751418113708, -0.15885601937770844, 0.6294516921043396, -1.0200165510177612, 0.5832771062850952, 0.11782181262969971, 0.34910595417022705, 0.24417950212955475, -0.560617208480835, 0.5427472591400146, 0.4250040352344513, -0.24948829412460327, -0.6525107622146606, 0.25885772705078125, -1.1910027265548706, -0.7996978163719177, 1.1577874422073364, -0.12412337958812714, -0.5129284858703613, -0.04059306159615517, -0.18753844499588013, 0.11582333594560623, -0.283307284116745, 0.47108614444732666, 0.9507333636283875, -0.11930475383996964, -0.24396705627441406, -0.7940739989280701, 0.5058343410491943, 0.4897606074810028, -0.8529891967773438, 0.08204733580350876, 0.204865500330925, -0.08460037410259247, 0.25152966380119324, 0.5024013519287109, 0.11809074878692627, 0.2050115466117859, 0.32974788546562195, 0.41684791445732117, 0.030892033129930496, -0.5234507918357849, -0.4394282102584839, 0.18650731444358826, 0.12783123552799225, -0.02941998839378357 ]
http://arxiv.org/abs/2402.09967v1
http://arxiv.org/pdf/2402.09967v1
Case Study: Testing Model Capabilities in Some Reasoning Tasks
2024-02-15T14:21:30
2024-02-15T14:21:30
Min Zhang, Sato Takumi, Jack Zhang, Jun Wang
cs.CL
cs.CL
Large Language Models (LLMs) excel in generating personalized content and facilitating interactive dialogues, showcasing their remarkable aptitude for a myriad of applications. However, their capabilities in reasoning and providing explainable outputs, especially within the context of reasoning abilities, remain areas for improvement. In this study, we delve into the reasoning abilities of LLMs, highlighting the current challenges and limitations that hinder their effectiveness in complex reasoning scenarios.
[ -0.4418737590312958, -0.7146354913711548, 1.17648446559906, 0.020045863464474678, 0.10868801176548004, 0.19061627984046936, -0.36630964279174805, -0.29133710265159607, -0.34569650888442993, 0.7178987264633179, -0.5412220358848572, -0.27229902148246765, -0.7232078313827515, 0.34948232769966125, -0.6077548265457153, 0.5759092569351196, -0.3575201630592346, 0.04488484561443329, -0.4376046657562256, -0.052812688052654266, -0.5996955037117004, -0.7298332452774048, -0.7485511898994446, -0.4752287268638611, 0.5094726085662842, 0.6669214963912964, 0.8239564895629883, 0.20094797015190125, 0.42172279953956604, 0.3740825653076172, -0.09935033321380615, 0.41814732551574707, -0.37711045145988464, 0.47249412536621094, -0.2587762475013733, -0.6387670636177063, -0.2618768811225891, -0.22318121790885925, 0.7068759202957153, 0.8327018618583679, -0.06823047995567322, 0.03293038532137871, -0.24418824911117554, 0.4123837947845459, -0.16593067348003387, 0.17759297788143158, -0.7874643206596375, -0.15081073343753815, -0.13279679417610168, -0.07049983739852905, -0.47662827372550964, -0.1907763034105301, 0.15212517976760864, -0.3066863715648651, -0.0300945695489645, 0.13264146447181702, 0.8671376705169678, 0.17685894668102264, -0.6060266494750977, -0.5973308086395264, -1.1242576837539673, 0.8861218690872192, -0.9988168478012085, 0.2935161292552948, 0.29660454392433167, 0.6650886535644531, -0.40288031101226807, -0.5870974659919739, -0.4694516062736511, -0.5954344868659973, 0.05587596818804741, -0.28051549196243286, -0.1147313341498375, -0.025907237082719803, 0.5190802216529846, 0.37459108233451843, -0.36531659960746765, 0.4070236384868622, -0.1519135683774948, -0.07853846997022629, 0.7968332767486572, 0.5028628706932068, 0.3807459771633148, -0.14503756165504456, 0.22145582735538483, 0.21378859877586365, -0.7016070485115051, 0.06646996736526489, 0.36774665117263794, 0.13389945030212402, 0.0905517041683197, 0.9850680232048035, -0.09471794962882996, 0.8056686520576477, -0.38533836603164673, -0.29881611466407776, -0.2650696635246277, -0.1277228593826294, -0.32462820410728455, -0.26150089502334595, 0.36582791805267334, -0.021354151889681816, 0.4482058584690094, -0.024920770898461342, -0.29418447613716125, -0.25434431433677673, 0.07869140058755875, -0.5739986896514893, 0.08063438534736633, 0.4170418083667755, -0.3918132781982422, 0.21521969139575958, -0.12795859575271606, -0.3694216012954712, -0.4728908836841583, -0.45063209533691406, 0.3952849507331848, -0.3411804437637329, -0.22789238393306732, 0.2902417778968811, -0.21908466517925262, 0.3089869022369385, 0.5599887371063232, -0.9235957264900208, 0.26440125703811646, 0.7082550525665283, 0.5736709833145142, -0.21632206439971924, -0.08267055451869965, -0.3344186246395111, 0.24382604658603668, -0.3071008324623108, 0.6848695874214172, -0.6298463940620422, -0.42262864112854004, 0.057416897267103195, 0.07181490212678909, -0.12770256400108337, -0.8159599900245667, 0.33598199486732483, -0.3495154082775116, -0.17402249574661255, -0.46023422479629517, -0.6649877429008484, -0.15175554156303406, 0.3883402347564697, -0.507840633392334, 0.6471006274223328, 0.21709716320037842, -0.4466078579425812, -0.02478191815316677, -0.6398076415061951, -0.4272089898586273, 0.14366543292999268, -0.32926252484321594, -0.20173189043998718, 0.14028435945510864, 0.003112595295533538, 0.7714676260948181, -0.5680480003356934, 0.311053991317749, -0.46282243728637695, -0.3556141257286072, 0.6640276312828064, -0.25232863426208496, 0.5483909249305725, 0.33685731887817383, -0.325087308883667, 0.310635507106781, -0.6930534839630127, -0.10763013362884521, 0.48682668805122375, -0.3794615864753723, -0.11941631138324738, 0.31542259454727173, -0.21180662512779236, 0.06610755622386932, 0.14123612642288208, -0.13578562438488007, 0.3911491334438324, -0.15960532426834106, 0.8492180705070496, 0.6309877634048462, -0.31205806136131287, 0.3210340738296509, -0.4078465700149536, 0.8019973039627075, -0.08290475606918335, 0.04714328423142433, -0.20122426748275757, -0.5109389424324036, -0.893554151058197, -0.2758847177028656, 0.1924273818731308, 0.6180417537689209, -0.6536957621574402, 0.006683157291263342, -0.057398490607738495, -0.5201327800750732, -0.06866111606359482, 0.5723623633384705, 0.2096434086561203, 0.24154289066791534, -0.07630380988121033, -0.008090516552329063, -0.5454772114753723, -1.062209129333496, -0.3527756631374359, -0.1703692525625229, -0.1202893853187561, 0.5768818259239197, 0.6387499570846558, -0.32415613532066345, 0.694256067276001, -0.41840773820877075, 0.12235674262046814, -0.833800733089447, -0.20200234651565552, 0.23934267461299896, 0.12473064661026001, 0.3453376591205597, -0.8842679262161255, -0.2444026917219162, 0.014210566878318787, -0.8902948498725891, -0.27582845091819763, -0.2887418270111084, 0.0036380502860993147, 0.19211062788963318, 0.6472861170768738, -0.9239795207977295, 0.17596761882305145, 0.558312177658081, -0.3401557505130768, 0.8660445809364319, -0.3495027720928192, -0.013266257010400295, -0.8029236793518066, -0.3429044187068939, 0.11343034356832504, -0.28422126173973083, -0.5043874979019165, 0.043131690472364426, -0.12994134426116943, -0.1382824033498764, -0.3915764093399048, 0.7286222577095032, -0.6992141008377075, -0.3663704991340637, -0.2182191014289856, 0.25559771060943604, -0.07330324500799179, -0.0988951250910759, 0.035760167986154556, 0.7099326252937317, 0.5032224059104919, -0.741588830947876, 0.6239315867424011, 0.21783703565597534, -0.5355973243713379, 0.4823969602584839, -0.6919304132461548, -0.16563260555267334, 0.057785939425230026, 0.10582968592643738, -1.049159288406372, -0.746131420135498, -0.23087820410728455, -0.16223183274269104, 0.27736184000968933, 0.16334541141986847, -0.8748212456703186, -0.7038746476173401, -0.03453527018427849, 0.06849447637796402, 0.5286828875541687, -0.4265432059764862, 0.8245397806167603, 0.24070747196674347, -0.20428085327148438, -0.20866629481315613, -0.5868188142776489, 0.22438035905361176, -0.4749319851398468, -0.8139169812202454, 0.01971406303346157, -0.25899407267570496, -0.7930914163589478, -0.15904377400875092, 0.20675237476825714, -0.06727994978427887, 0.38248977065086365, 0.4018697440624237, 0.12364142388105392, -0.3446786105632782, 0.3267631530761719, 0.0793994665145874, 0.17563356459140778, 0.1547563374042511, 0.13758021593093872, 0.4860740303993225, -0.29639527201652527, -0.8483006358146667, -0.2518356144428253, 0.38853567838668823, 0.7865860462188721, -0.1213025450706482, 0.8066466450691223, 0.18966808915138245, -0.3555307984352112, -0.39193689823150635, -0.8985254764556885, -0.08039207011461258, -0.47023439407348633, 0.46244290471076965, -0.6077643632888794, -1.321117639541626, 0.7116431593894958, -0.32466039061546326, 0.0541570708155632, 0.25263312458992004, 0.9149587154388428, -0.034334175288677216, 1.3521555662155151, 0.3829784393310547, 0.3248027563095093, 0.19744773209095, -0.08287319540977478, 0.6147367358207703, -0.8980526328086853, -0.41278329491615295, -0.40735185146331787, 0.021883593872189522, -0.3708747923374176, -0.3287624418735504, 0.19770126044750214, 0.1630251109600067, -0.4703885316848755, 0.03840741142630577, -0.14002130925655365, 0.3100835680961609, 0.4531538188457489, -0.09643334150314331, 0.5018967390060425, -0.2707858085632324, 0.00902235135436058, -0.06502988189458847, -0.6758372783660889, -0.9736711978912354, 0.7966336011886597, 0.6346570253372192, 0.8841058611869812, 0.3070580065250397, 0.2575584948062897, 0.033468157052993774, 0.1691836714744568, -0.8591238260269165, 0.7876640558242798, -0.07539888471364975, -0.7275004982948303, -0.4254392981529236, -0.4077084958553314, -0.7778823971748352, 0.17205511033535004, -0.2153456211090088, -0.843561589717865, -0.41563376784324646, 0.18240806460380554, -0.2738323211669922, 0.6434076428413391, -0.8636815547943115, 0.7369796633720398, -0.4803376793861389, -0.09992463886737823, -0.023499654605984688, -0.20028312504291534, 0.5912426710128784, -0.1187807023525238, 0.2941897511482239, -0.22011682391166687, 0.03313460201025009, 0.32377925515174866, -0.24087312817573547, 0.9275189638137817, 0.3021562397480011, -0.15622054040431976, 0.3743874430656433, 0.38002192974090576, 0.3192780017852783, -0.028605423867702484, -0.19426681101322174, -0.060172416269779205, -0.01141364686191082, -0.4060579538345337, -0.45124584436416626, 0.7578881978988647, -0.5365102291107178, -1.3938566446304321, -0.11360152065753937, -1.0224640369415283, -0.5801606774330139, -0.0010393495904281735, -0.20684880018234253, 0.21997952461242676, -0.06573348492383957, 0.26174935698509216, 0.7628771662712097, -0.6015568971633911, 0.4523922801017761, 0.4616909325122833, -0.4194600284099579, 0.17930281162261963, 0.6396847367286682, 0.29572516679763794, 0.5407679677009583, 0.13608306646347046, 0.22501727938652039, -0.28913041949272156, -0.916642963886261, -0.47286033630371094, 0.42154645919799805, -1.0517090559005737, 0.18925540149211884, -0.7086957693099976, -0.3797534704208374, -0.3840356171131134, -0.2441663295030594, -0.22935160994529724, -0.43209874629974365, -0.3061120808124542, -0.17845644056797028, 0.18369042873382568, 1.1064256429672241, 0.18608571588993073, 0.17150139808654785, -0.7369559407234192, 0.08990529179573059, 0.6409935355186462, 0.10129226744174957, 0.20785358548164368, -0.5813468098640442, 0.04274802282452583, -0.37773022055625916, -0.3916590213775635, -0.7985727787017822, 0.30322685837745667, -0.17993998527526855, 0.8108383417129517, 0.32893452048301697, -0.24816718697547913, 0.4121864438056946, -0.4091944694519043, 0.9932424426078796, -0.11499583721160889, -1.0376619100570679, 0.5332895517349243, -0.4637717306613922, 0.3844568729400635, -0.04757068678736687, 0.54805988073349, -0.2382580041885376, -0.47949570417404175, -0.40593716502189636, -0.6909517645835876, 0.24951736629009247, 0.2390712946653366, 0.423683762550354, 0.06767676770687103, 0.6447234153747559, 0.11351562291383743, 0.11093311011791229, -0.5985130667686462, 0.01258237473666668, 0.26747745275497437, -0.07061717659235, -0.10509821772575378, -0.6020505428314209, -0.07864511013031006, -0.4280235767364502, 0.6473959684371948, -0.05072951689362526, -0.11402855068445206, 0.17668356001377106, 0.06138144060969353, 0.03104260005056858, 0.5304766893386841, 0.9008857011795044, 1.0646952390670776, 0.10892848670482635, 0.20452742278575897, 0.4780527353286743, 0.09332004189491272, 0.09553158283233643, 0.0192918349057436, 0.15335474908351898, -0.12533873319625854, 0.594810426235199, 0.7348454594612122, 0.12618038058280945, -1.2782789468765259, 0.3622616231441498, -0.10505735874176025, -0.2790586054325104, -0.5509285926818848, 0.30631139874458313, 0.6999462842941284, 0.560055673122406, 0.3645133078098297, -0.4707409143447876, -0.12169220298528671, -0.8581289052963257, -0.18015369772911072, 0.6851555705070496, -0.1989491581916809, -0.08264709264039993, 0.6702245473861694, -0.003687875112518668, -0.5456278920173645, 0.5797715187072754, -0.1936572939157486, -0.6099690794944763, 0.8177978992462158, 0.6680280566215515, 0.41448986530303955, -0.22148624062538147, 0.08196838200092316, 0.008210844360291958, 0.4123489260673523, -0.2530566155910492, 0.2469727098941803, 0.24246537685394287, -0.9686924815177917, -0.5923932790756226, -0.3472207188606262, -0.8769795894622803, 0.3439250588417053, -0.31607624888420105, 0.16462409496307373, -0.5058947801589966, -0.18703295290470123, 0.11002276092767715, -0.1662531942129135, -0.5861138105392456, 0.16424143314361572, 0.2953953146934509, 0.9139597415924072, -0.6715915203094482, 0.6618120670318604, 0.7032524347305298, -0.31971946358680725, -0.9290462136268616, -0.47861671447753906, 0.034638211131095886, -0.715282142162323, 1.0135945081710815, 0.15023741126060486, 0.07712240517139435, -0.2895705997943878, -0.6097072958946228, -0.5550957322120667, 1.0458060503005981, 0.6259077191352844, -0.7871411442756653, -0.060605552047491074, 0.38214462995529175, 0.5905005931854248, -0.7084089517593384, 0.27495846152305603, 0.7733405232429504, 0.7074056267738342, 0.07102905958890915, -1.172688364982605, 0.048216838389635086, -0.04981636628508568, 0.1897728145122528, -0.16751322150230408, -0.584323525428772, 0.968849778175354, -0.4630696177482605, 0.06745963543653488, 0.22020375728607178, 0.6010803580284119, 0.389843225479126, 0.3722345530986786, 0.5627169013023376, 0.38424527645111084, 0.8104376792907715, -0.21370171010494232, 1.5266884565353394, 0.2052651196718216, -0.09279461950063705, 1.104971170425415, -0.6362938284873962, 0.7989531755447388, 0.40914565324783325, -0.00936589203774929, 0.579220712184906, 0.7043365836143494, -0.10334009677171707, -0.12872762978076935, 0.5157629251480103, -0.3977769613265991, -0.8559108376502991, -0.15162266790866852, -0.0366501584649086, 0.3783804476261139, 0.4105718433856964, -0.41039660573005676, 0.061491742730140686, 0.13580559194087982, 0.003195601049810648, 0.3870636224746704, -0.4331585168838501, 0.46349355578422546, 0.36023980379104614, -0.5163183808326721, 0.20678821206092834, -0.01313972007483244, 0.4021742641925812, -0.46031510829925537, -0.21533745527267456, 0.12410043925046921, 0.30214744806289673, -0.1612248718738556, -0.9511571526527405, 0.4483284056186676, -0.034487683326005936, -0.08905140310525894, -0.11206793040037155, 0.8656184077262878, -0.07181789726018906, -0.43993884325027466, 0.47648391127586365, 0.7368919253349304, 0.2114570587873459, -0.14327707886695862, -0.6759414076805115, 0.4365052282810211, -0.16137823462486267, -0.43969205021858215, 0.3821761906147003, 0.5919325947761536, -0.2666088342666626, 1.3097352981567383, 0.47129398584365845, 0.17418436706066132, 0.05488540604710579, 0.24840375781059265, 0.7249622941017151, -0.7953765392303467, 0.0315132699906826, -0.9747397899627686, 0.3136218190193176, -0.0360109843313694, -0.1267073154449463, 0.9794884324073792, 0.5436694025993347, 0.6999297738075256, -0.22304853796958923, 0.9036096930503845, 0.18977968394756317, 0.5256999135017395, -0.5474326014518738, 0.3917439877986908, -0.5015093088150024, 0.5102407932281494, 0.17166540026664734, -0.7501229047775269, -0.29569554328918457, 0.4630562961101532, -0.5847861766815186, 0.12973402440547943, 0.6733351945877075, 0.6964523792266846, -0.0022089846897870302, -0.004435247741639614, 0.7383483648300171, 0.5769796371459961, 0.6044371724128723, 0.7250997424125671, 1.255671501159668, 0.09167991578578949, 0.4983072578907013, 0.05118197947740555, -0.01044487301260233, -0.17974542081356049, -1.0779075622558594, -1.4988195896148682, -0.5050263404846191, -0.265313982963562, -0.3502902686595917, -0.11910656839609146, 0.7447577714920044, 0.7067945003509521, -0.7331230044364929, -0.33748769760131836, 0.043796565383672714, 0.5041533708572388, 0.29252684116363525, -0.22167351841926575, -0.029489779844880104, -0.24983283877372742, -0.7523790597915649, 0.30724963545799255, 0.34575241804122925, 0.19676299393177032, -0.6700925827026367, -0.1000329852104187, -0.013139588758349419, 0.5010982155799866, 0.8913425803184509, 0.2511080801486969, -0.9886143207550049, -0.47232237458229065, -0.13411729037761688, 0.019631395116448402, -0.2872644066810608, 0.8897162675857544, -0.264814168214798, 0.19812226295471191, 0.34313249588012695, 0.7894625663757324, 0.48049023747444153, -0.31280118227005005, 0.7199289798736572, 0.021740898489952087, -0.03648819029331207, 0.20050661265850067, 0.6707985401153564, 0.6654203534126282, -0.31920313835144043, 0.422372043132782, -0.031733348965644836, -0.6691820025444031, -1.0183569192886353, 0.515272319316864, -1.1258445978164673, -0.5198285579681396, 1.465914011001587, -0.32903483510017395, -0.1315467208623886, -0.24645085632801056, -0.3599955439567566, -0.03814917057752609, 0.08697241544723511, 0.6093341112136841, 1.1361051797866821, -0.41777876019477844, -0.329050213098526, -1.127137303352356, 0.3213046193122864, 0.42961767315864563, -0.9767789244651794, -0.03466297313570976, 0.38965415954589844, 0.5690488815307617, -0.06542230397462845, 0.529643714427948, -0.14019058644771576, -0.018622200936079025, -0.3293253481388092, -0.27083998918533325, -0.11777215451002121, -0.22701632976531982, -0.30278176069259644, 0.1535804718732834, 0.7102523446083069, 0.5815105438232422 ]
http://arxiv.org/abs/2402.09954v2
http://arxiv.org/pdf/2402.09954v2
Crafting a Good Prompt or Providing Exemplary Dialogues? A Study of In-Context Learning for Persona-based Dialogue Generation
2024-02-15T14:03:33
2024-02-17T06:11:58
Jiashu Pu, Yajing Wan, Yuru Zhang, Jing Chen, Ling Cheng, Qian Shao, Yongzhu Chang, Tangjie Lv, Rongsheng Zhang
cs.CL
cs.CL, cs.LG
Previous in-context learning (ICL) research has focused on tasks such as classification, machine translation, text2table, etc., while studies on whether ICL can improve human-like dialogue generation are scarce. Our work fills this gap by systematically investigating the ICL capabilities of large language models (LLMs) in persona-based dialogue generation, conducting extensive experiments on high-quality real human Chinese dialogue datasets. From experimental results, we draw three conclusions: 1) adjusting prompt instructions is the most direct, effective, and economical way to improve generation quality; 2) randomly retrieving demonstrations (demos) achieves the best results, possibly due to the greater diversity and the amount of effective information; counter-intuitively, retrieving demos with a context identical to the query performs the worst; 3) even when we destroy the multi-turn associations and single-turn semantics in the demos, increasing the number of demos still improves dialogue performance, proving that LLMs can learn from corrupted dialogue demos. Previous explanations of the ICL mechanism, such as $n$-gram induction head, cannot fully account for this phenomenon.
[ -0.3395657241344452, -0.5447526574134827, 0.8339758515357971, 0.23047849535942078, -0.3543819487094879, 0.019586743786931038, -0.1809333860874176, -0.20741590857505798, -0.3554149270057678, 0.4314654469490051, -0.709280252456665, -0.39470547437667847, -0.09557114541530609, 0.15979833900928497, -0.12328708916902542, 1.05135977268219, 0.4443250298500061, 0.3949330449104309, -0.24784758687019348, -0.030621543526649475, -0.6136821508407593, -0.4416167736053467, -0.9170506000518799, -0.35332751274108887, 0.4874497354030609, 0.7309059500694275, 0.35152849555015564, 0.3363938331604004, -0.06281492114067078, 0.24803970754146576, -0.043587204068899155, 0.3121882975101471, -0.5410260558128357, 0.2513613998889923, -0.04923929646611214, -0.43440744280815125, -0.061764273792505264, 0.10493868589401245, 0.7567883729934692, 0.7691035270690918, 0.013821521773934364, -0.16097697615623474, 0.47451597452163696, 0.4019021987915039, -0.43134891986846924, 0.1449769288301468, -0.5460367798805237, -0.1192583218216896, -0.16462060809135437, -0.37658318877220154, -0.8291534781455994, -0.4239041805267334, 0.44438880681991577, -0.285371333360672, 0.10763917118310928, 0.2235528528690338, 0.5471065044403076, 0.020444689318537712, -0.304084837436676, -0.4281596541404724, -0.6547737121582031, 0.8195099234580994, -0.8473181128501892, 0.028028173372149467, 0.24791191518306732, 0.3880082964897156, -0.3546566665172577, -0.641095757484436, -0.45599788427352905, -0.4975498914718628, -0.14015591144561768, 0.07448787987232208, 0.08823945373296738, 0.2699741721153259, 0.5693480372428894, 0.2268066555261612, -0.26598992943763733, 0.26046884059906006, -0.01419307105243206, -0.16594049334526062, 0.5196737051010132, 0.3638089597225189, 0.4000754654407501, -0.34067851305007935, -0.33898311853408813, -0.20084790885448456, -1.1523475646972656, 0.5747494101524353, 0.35392874479293823, 0.42200377583503723, 0.02082972601056099, 0.17887775599956512, -0.1233217641711235, 0.5880292057991028, 0.4303897023200989, -0.4665508568286896, -0.11959098279476166, -0.301460325717926, -0.03315655142068863, 0.11003290116786957, 0.719679594039917, 0.4338151216506958, -0.04367590323090553, -0.14696304500102997, -0.33427000045776367, -0.3881879150867462, -0.05777692049741745, -1.0109795331954956, -0.2264232039451599, 0.170174703001976, -0.4893254041671753, -0.04984096810221672, 0.2520661950111389, -0.5994356274604797, -0.40022048354148865, -0.5450417995452881, 0.23296551406383514, -0.6407369375228882, 0.11083036661148071, -0.21312622725963593, -0.06224494054913521, 0.5450671315193176, 0.5791923403739929, -0.8129676580429077, 0.07726067304611206, 0.5289524793624878, 0.533351480960846, -0.16928531229496002, -0.2535251975059509, -0.9554102420806885, -0.10206089168787003, -0.3987049460411072, 0.7093889713287354, -0.46168628334999084, -0.5446134805679321, 0.13562637567520142, -0.2276751846075058, -0.04984189569950104, -0.7454707026481628, 0.3488025665283203, -0.09257643669843674, 0.5304360389709473, -0.6014529466629028, -0.5117955803871155, 0.13022014498710632, -0.017064493149518967, -0.1893579661846161, 0.628847599029541, 0.07147103548049927, -0.44830122590065, 0.5354151129722595, -0.6471492648124695, -0.3412598669528961, 0.2386275976896286, -0.3341326117515564, -0.1311570703983307, 0.14326021075248718, 0.2862395942211151, 0.5876896977424622, -0.4452793598175049, 0.4504223167896271, -0.07643860578536987, -0.5347800254821777, 0.7712631225585938, -0.5551263093948364, 0.7727685570716858, 0.30550089478492737, -0.5154473781585693, 0.1411958634853363, -0.4667419195175171, -0.14517882466316223, -0.12146902829408646, -0.23372432589530945, -0.029361581429839134, 0.12202154099941254, -0.1563348025083542, 0.32737407088279724, -0.2133062183856964, -0.5839511752128601, 0.21040043234825134, -0.5931703448295593, 0.3379928171634674, 0.7807109355926514, 0.2616773247718811, 0.4884282648563385, -0.4605761468410492, 0.32765164971351624, 0.1854121834039688, -0.01902143657207489, -0.8497021198272705, -0.405426949262619, -0.7934101223945618, -0.14684264361858368, 0.1823309361934662, 0.3364821672439575, -0.9896393418312073, 0.24813945591449738, 0.057383909821510315, -0.28544920682907104, -0.47109749913215637, -0.023583967238664627, 0.7082372903823853, 0.7849034070968628, 0.11139281839132309, -0.2875968813896179, -0.1612931489944458, -0.8503764867782593, -0.21104036271572113, -0.3708864152431488, -0.33645790815353394, 0.6667174100875854, 0.07789815962314606, 0.14067092537879944, 1.0444128513336182, -0.29570111632347107, 0.12474214285612106, -0.6108338236808777, 0.288779616355896, -0.04669767618179321, 0.3332616090774536, 0.6055665612220764, -0.5707732439041138, -0.8277701735496521, -0.4087091386318207, -0.5523961782455444, -0.3978785276412964, -0.4795772433280945, -0.0014623021706938744, 0.10887989401817322, 0.563380241394043, -0.577458918094635, 0.27504783868789673, -0.057331427931785583, -0.16430440545082092, 0.6537706851959229, -0.11140439659357071, 0.23796656727790833, -1.0034608840942383, -0.15339091420173645, 0.13184112310409546, -0.21792882680892944, -0.8607431054115295, -0.02218000963330269, 0.06207225099205971, -0.2535100281238556, -0.7159589529037476, 0.6566858887672424, -0.274819552898407, 0.02022603340446949, -0.45519131422042847, 0.31612396240234375, -0.08097836375236511, 0.7614171504974365, -0.08714211732149124, 1.0447297096252441, 0.546147346496582, -0.8276828527450562, 0.03628307580947876, 0.3323417007923126, -0.5635460615158081, 0.6730031371116638, -0.4733506143093109, 0.3212953507900238, -0.3932993710041046, 0.6717447638511658, -1.2428523302078247, -0.4889935851097107, 0.3910849392414093, -0.27073562145233154, 0.3254775404930115, 0.00916614942252636, -0.5305226445198059, 0.029331712052226067, -0.1710387021303177, 0.13762204349040985, 0.669826090335846, -0.9505829811096191, 0.2046644687652588, 0.10788249969482422, -0.26008203625679016, -0.2518528997898102, -0.3092401921749115, 0.1525498628616333, -0.42989063262939453, -0.42654019594192505, 0.43108606338500977, -0.4165884256362915, -0.5386599898338318, -0.5734713077545166, 0.2569398581981659, 0.23784542083740234, -0.018938813358545303, 0.03697366639971733, -0.09624718874692917, -0.04576888680458069, 0.17709030210971832, 0.0839962512254715, -0.07242407649755478, 0.1838085949420929, -0.25267425179481506, 0.5924797058105469, 0.10040262341499329, -0.40805763006210327, -0.8692077994346619, 0.4806582033634186, 0.5270764231681824, -0.044858165085315704, 0.5018378496170044, 0.23458200693130493, -0.013018066063523293, -0.3331705629825592, -0.4398709535598755, -0.3791202902793884, -0.48323410749435425, 0.08533964306116104, -0.3365000784397125, -0.6152764558792114, 0.46608975529670715, -0.23942598700523376, 0.31082087755203247, 0.11243791878223419, 0.4030868709087372, -0.28042492270469666, 1.3167250156402588, 0.34059396386146545, -0.016674628481268883, 0.6023512482643127, -0.04383176565170288, 0.2045196294784546, -0.884788453578949, -0.23208646476268768, -0.445909321308136, -0.2286757081747055, -0.2536063492298126, -0.10559815168380737, 0.4343818128108978, -0.12452902644872665, -0.1635170876979828, 0.09902066737413406, -0.15715350210666656, 0.39653074741363525, 0.7061518430709839, 0.30493682622909546, 0.07377530634403229, -0.14856554567813873, -0.1572265923023224, -0.3648240566253662, -0.6140198707580566, -0.498537540435791, 0.747723400592804, 0.1964661031961441, 0.6689772605895996, 0.11704704165458679, 0.5691487789154053, 0.02172069624066353, 0.2523218095302582, -0.5721946954727173, 0.7574663162231445, 0.10990447551012039, -0.14010512828826904, -0.23639380931854248, -0.29479101300239563, -0.7981764674186707, 0.2513713836669922, -0.0019519692286849022, -0.8086870908737183, 0.057719990611076355, 0.3427121639251709, -0.5541658997535706, 0.1290351152420044, -0.5250033736228943, 0.6028419733047485, -0.37502169609069824, -0.44392234086990356, -0.024565035477280617, -0.8143746852874756, 0.3197653293609619, 0.11718261241912842, -0.1692262887954712, 0.16773943603038788, 0.2855744957923889, 0.31274086236953735, -0.3720685541629791, 0.9093538522720337, -0.48938363790512085, -0.22011035680770874, 0.41928526759147644, -0.040489308536052704, 0.6206020712852478, 0.26799196004867554, -0.015370248816907406, -0.4962986707687378, -0.4198664426803589, -0.2870570421218872, -0.9467711448669434, 0.377890020608902, -0.5880330801010132, -0.8148232698440552, -0.076092429459095, -0.4400876760482788, -0.3809971511363983, -0.2302115559577942, 0.633247971534729, 0.8858890533447266, -0.22856010496616364, 0.41687920689582825, 1.0247173309326172, -0.651924729347229, 0.48741453886032104, 0.44002029299736023, -0.15251187980175018, -0.11229545623064041, 0.8605625629425049, 0.0065099578350782394, 0.5293049216270447, 0.4557819068431854, 0.26590049266815186, -0.3058065176010132, -0.5112658739089966, -0.6886923313140869, 0.03575695678591728, -0.6978331804275513, -0.07323355227708817, -0.6634529232978821, -0.23543781042099, -0.316069096326828, -0.08142782747745514, 0.01580827310681343, -0.09921243786811829, -0.46232667565345764, 0.026821497827768326, -0.09530272334814072, 0.462116539478302, 0.24203148484230042, 0.6089687347412109, -0.4900851249694824, 0.1047399491071701, 0.4240075349807739, -0.00815458782017231, 0.20128992199897766, -0.6525635719299316, -0.12238718569278717, 0.19469574093818665, -0.506560206413269, -0.7953791618347168, 0.31400665640830994, 0.21772059798240662, 0.6443262100219727, 0.7801184058189392, 0.1537943184375763, 0.7407165765762329, -0.5364794731140137, 1.1803476810455322, 0.05244600027799606, -0.6663392186164856, 0.6545628905296326, -0.5878837704658508, 0.7072473168373108, 0.6222503185272217, 0.12242835760116577, -0.6924050450325012, -0.5561057925224304, -0.5911380648612976, -0.6137323379516602, 0.8125460147857666, 0.016596119850873947, 0.3898454010486603, -0.04665550962090492, 0.4906750023365021, 0.3757185935974121, 0.20076145231723785, -0.6287305355072021, -0.2254108190536499, -0.08344161510467529, -0.03455352783203125, -0.0712592676281929, -0.3498353958129883, 0.030205652117729187, -0.20810741186141968, 0.6344635486602783, -0.32454898953437805, 0.27659866213798523, 0.15127305686473846, -0.11752676218748093, -0.06276734173297882, 0.3337876796722412, 0.7109068632125854, 0.6506801247596741, 0.00903095118701458, -0.20030327141284943, 0.2074534296989441, -0.003918614238500595, 0.07349024713039398, -0.2569971978664398, -0.357455313205719, -0.08603031188249588, 0.16105912625789642, 1.1194839477539062, 0.4060106873512268, -0.8757562637329102, 0.6385539770126343, -0.23473457992076874, -0.12084898352622986, -0.2786290645599365, 0.40645909309387207, -0.24088901281356812, 0.1388806849718094, 0.623744010925293, -0.0035898778587579727, 0.29143133759498596, -0.7421243190765381, 0.18988241255283356, 0.5362080931663513, -0.2919098734855652, -0.3027036786079407, 0.5221031308174133, 0.37637054920196533, -0.6026749610900879, 0.8966357707977295, -0.26308706402778625, -0.40394487977027893, 0.31830835342407227, 0.6690007448196411, 1.0246763229370117, -0.18544237315654755, 0.4046076536178589, 0.3982008099555969, -0.1134035587310791, -0.015416037291288376, -0.08035072684288025, -0.3578255772590637, -0.4789190888404846, -0.47021329402923584, -0.25427699089050293, -0.7434612512588501, 0.4134870767593384, -0.47135552763938904, 0.29163411259651184, -0.46527284383773804, 0.23454323410987854, -0.29411080479621887, -0.07371549308300018, -0.48762011528015137, -0.004080517217516899, 0.029000135138630867, 0.78978031873703, -0.6124674677848816, 0.6553056836128235, 0.3107120990753174, -0.22432458400726318, -0.8502470254898071, 0.43183183670043945, 0.1181962713599205, -0.26913660764694214, 0.4885275959968567, 0.43880364298820496, -0.026037797331809998, -0.04412592574954033, -0.9997714757919312, -0.5242507457733154, 0.9319798946380615, 0.4333072304725647, -0.35226207971572876, -0.11131070554256439, 0.11684177815914154, 0.4914535880088806, -0.6189602613449097, 0.3650292754173279, 0.3665386140346527, 0.27072176337242126, 0.10313752293586731, -0.6142832040786743, -0.16639800369739532, -0.205878347158432, 0.0656512975692749, -0.10482487827539444, -0.8269891142845154, 0.7132893204689026, -0.043876126408576965, -0.3810080885887146, 0.5104179382324219, 0.8183780908584595, 0.42934033274650574, 0.3753947913646698, 0.5414724946022034, 0.05784298852086067, 0.7061460614204407, -0.10601963102817535, 1.144924283027649, -0.2264203280210495, -0.3054443895816803, 1.112192988395691, -0.39657649397850037, 0.34309297800064087, 0.3156968951225281, 0.16302043199539185, 0.6439095139503479, 0.8830121755599976, 0.24480925500392914, 0.5674848556518555, 0.08311273902654648, -0.4824833273887634, -0.33185309171676636, -0.26819461584091187, 0.035926442593336105, 0.34145790338516235, 0.3905404508113861, -0.3653183877468109, -0.13190288841724396, 0.4198315739631653, -0.06844241172075272, 0.21792349219322205, -0.08451490104198456, 1.1024950742721558, 0.07420646399259567, -1.3106040954589844, 0.186353862285614, -0.05467505007982254, 0.4083065986633301, -0.46050164103507996, -0.23877643048763275, -0.4580497741699219, -0.12429981678724289, 0.11967743933200836, -0.5141735076904297, -0.3258192837238312, 0.006352696567773819, -0.11314114928245544, -0.4250098466873169, 0.5906804203987122, -0.4663967490196228, -0.0009608035907149315, -0.10740464180707932, 0.4473605453968048, 0.35048532485961914, 0.14864103496074677, -0.5491852760314941, -0.3011288642883301, 0.1253366470336914, -0.08244940638542175, 0.6284838318824768, 0.5497374534606934, -0.06075219810009003, 0.7509948015213013, 0.5255889892578125, -0.19279755651950836, -0.18903231620788574, 0.27953463792800903, 0.7750043272972107, -0.5453525185585022, -0.5733218789100647, -0.8083149790763855, 0.8298021554946899, -0.21595437824726105, -0.4081525504589081, 0.8509170413017273, 0.4283806085586548, 0.8802158832550049, -0.04033195972442627, 0.8803468942642212, 0.12030083686113358, 0.5881946682929993, -0.6515123248100281, 0.3034137487411499, -0.24060089886188507, 0.37808433175086975, -0.4574125409126282, -0.9591038823127747, -0.09459594637155533, 0.4693354368209839, -0.12169138342142105, 0.12454196810722351, 0.6055351495742798, 0.8628714680671692, -0.0166896004229784, 0.14260777831077576, 0.4477645456790924, -0.030090756714344025, 0.6024508476257324, 0.37392574548721313, 1.2300426959991455, -0.11131865531206131, 0.33371788263320923, -0.15488311648368835, -0.28125834465026855, -0.23887963593006134, -0.6613830924034119, -1.0187233686447144, -0.7397919297218323, -0.09943325817584991, -0.2620209753513336, -0.006446170154958963, 1.2294343709945679, 0.5861145853996277, -0.49336057901382446, -0.33814114332199097, -0.0444936528801918, -0.0844513475894928, -0.2530800402164459, -0.19822311401367188, 0.17666339874267578, -0.682833731174469, -1.070611596107483, 0.6179425120353699, 0.2665775418281555, -0.03303767368197441, -0.3858070373535156, -0.334963321685791, 0.16242487728595734, 0.10436764359474182, 0.685951828956604, 0.2921198010444641, -0.9128649234771729, -0.3749628961086273, 0.05184122547507286, -0.20400166511535645, 0.22766871750354767, 1.1810472011566162, -0.7417134642601013, 0.4999985098838806, 0.43131542205810547, 0.4964808225631714, 0.23746095597743988, 0.24499358236789703, 0.8497759699821472, -0.8491909503936768, -0.018602367490530014, 0.13707222044467926, 0.40573257207870483, 0.5014066696166992, -0.39759060740470886, 0.13046211004257202, -0.09694614261388779, -0.7452804446220398, -0.7348511219024658, 0.5052785277366638, -0.701497495174408, -0.3083997666835785, 1.2218492031097412, -0.10115285217761993, -0.00209704227745533, -0.1559726446866989, -0.7474417090415955, 0.05473259091377258, -0.6182816028594971, 0.7349970936775208, 0.6091458797454834, -0.5919731855392456, -0.37877359986305237, -0.34545421600341797, 0.7948169112205505, 0.40698108077049255, -0.6991058588027954, 0.18601517379283905, 0.651550829410553, -0.003647229168564081, -0.043403465300798416, 0.7219458818435669, 0.04854432865977287, 0.4932912290096283, -0.3785851001739502, -0.3946589529514313, 0.21884799003601074, -0.6061489582061768, -0.3703627288341522, 0.11929625272750854, 0.35449644923210144, 0.21201778948307037 ]
http://arxiv.org/abs/2402.09949v2
http://arxiv.org/pdf/2402.09949v2
Multi-word Tokenization for Sequence Compression
2024-02-15T13:52:23
2024-04-04T22:50:25
Leonidas Gee, Leonardo Rigutini, Marco Ernandes, Andrea Zugarini
cs.CL
cs.CL, cs.LG
Large Language Models have proven highly successful at modelling a variety of tasks. However, this comes at a steep computational cost that hinders wider industrial uptake. In this paper, we present MWT: a Multi-Word Tokenizer that goes beyond word boundaries by representing frequent multi-word expressions as single tokens. MWTs produce a more compact and efficient tokenization that yields two benefits: (1) Increase in performance due to a greater coverage of input data given a fixed sequence length budget; (2) Faster and lighter inference due to the ability to reduce the sequence length with negligible drops in performance. Our results show that MWT is more robust across shorter sequence lengths, thus allowing for major speedups via early sequence truncation.
[ -0.39010608196258545, -0.2944132089614868, 0.41760969161987305, 0.2870705723762512, -0.6997464299201965, 0.11000131070613861, -0.17482571303844452, -0.3898388743400574, 0.2912449538707733, 0.061745282262563705, -0.34263530373573303, -0.149840846657753, -0.8824172616004944, 0.2436353862285614, -0.4718913733959198, 0.6452863216400146, 0.21759426593780518, -0.30170702934265137, 0.32204118371009827, -0.23026348650455475, -0.6635292768478394, -0.8364301323890686, -0.33871346712112427, -0.029675493016839027, 0.8402499556541443, 0.08560921996831894, 0.7457877397537231, 0.7254209518432617, 0.48782339692115784, 0.29472482204437256, -0.05941148102283478, 0.30966901779174805, -0.148951917886734, 0.17559804022312164, 0.3839973509311676, -0.17100059986114502, -0.24973922967910767, -0.2489416003227234, 0.736099898815155, 0.6049680709838867, -0.021532561630010605, 0.24266445636749268, 0.0014111081836745143, 0.6135704517364502, -0.5170621275901794, 0.17442403733730316, -0.535828709602356, 0.05181123688817024, -0.4237285256385803, -0.11502651125192642, -0.5663903951644897, -0.14088074862957, -0.19465503096580505, -0.2622600793838501, 0.06945570558309555, 0.08460519462823868, 0.6249858736991882, 0.21376226842403412, -0.6590408086776733, 0.26284173130989075, -0.6153034567832947, 0.7045941948890686, -0.7941142916679382, 0.5999077558517456, -0.23323552310466766, -0.05548969283699989, -0.1162433996796608, -1.009696125984192, -0.6007192730903625, 0.14900127053260803, -0.23628824949264526, 0.14414796233177185, -0.1168220266699791, 0.36380553245544434, 0.36417844891548157, 0.3386181592941284, -0.5110987424850464, -0.05976070463657379, -0.36327895522117615, -0.3776518404483795, 0.24322614073753357, -0.046048086136579514, 0.00970568135380745, -0.3570585250854492, -0.573460578918457, -0.05841972678899765, -0.5961673259735107, -0.06911727041006088, 0.1889071762561798, 0.5035844445228577, 0.18112578988075256, 0.7980977892875671, 0.003590489737689495, 0.723807156085968, -0.558509349822998, -0.022156372666358948, 0.011468738317489624, -0.21384702622890472, -0.10662367939949036, -0.020414071157574654, 0.5859265923500061, 0.14587369561195374, -0.1013772115111351, -0.18427592515945435, -0.14116507768630981, 0.32017022371292114, 0.10976395756006241, -1.2357518672943115, 0.04071902111172676, 0.42231741547584534, -0.5924341678619385, -0.02721821703016758, 0.6798166036605835, -0.7169252634048462, -0.20032018423080444, -0.06046734005212784, 0.42396029829978943, -0.4012434184551239, -0.09125716239213943, 0.48490849137306213, -0.7233259081840515, 0.043875645846128464, -0.07482656091451645, -0.39526280760765076, 0.007982166483998299, 0.7461685538291931, 1.4378443956375122, -0.14219263195991516, -0.19984734058380127, -0.9852895736694336, 0.14406487345695496, -0.217339888215065, 0.686433732509613, -0.4181065857410431, -0.6258098483085632, -0.2092452198266983, -0.22974491119384766, 0.10016848891973495, -0.04381536692380905, 0.34502145648002625, -0.5460926294326782, -0.06900542974472046, -0.2052755206823349, -0.5503191947937012, -0.11997958272695541, 0.16315814852714539, -0.7393472194671631, 1.0385533571243286, -0.11145788431167603, -0.8447924256324768, 0.4766213893890381, -1.0735089778900146, -0.8956674337387085, 0.12282771617174149, 0.12103307247161865, -0.20266009867191315, 0.6432288289070129, 0.3002360165119171, 0.5157960057258606, -0.02345685102045536, 0.06905455887317657, -0.22765329480171204, -0.555729329586029, 0.08355555683374405, -0.6652565002441406, 0.2788901925086975, 0.3086645305156708, -0.11317531764507294, 0.28310728073120117, -0.7738513350486755, 0.03673635050654411, -0.07673342525959015, -0.7267624139785767, -0.2635950446128845, -0.014049023389816284, 0.11323806643486023, 0.43891575932502747, 0.015466404147446156, -0.7763102054595947, 0.680088996887207, -0.37818488478660583, 0.748455822467804, 0.785356342792511, -0.1858677715063095, -0.020158568397164345, -0.3474093973636627, 0.5896404385566711, 0.1215403750538826, -0.044491544365882874, -0.47104546427726746, -0.7565778493881226, -0.5118623971939087, -0.7930898070335388, 0.5588273406028748, 0.4058692455291748, -0.8654621243476868, 0.3830661475658417, -0.5238426327705383, -0.29763612151145935, -0.4621194899082184, -0.4551134407520294, 0.12349941581487656, 0.1181575357913971, 0.5254013538360596, -0.5309826135635376, -0.7386032938957214, -0.4779641330242157, -0.42599448561668396, -0.07388360053300858, -0.3039892315864563, -0.021043334156274796, 0.3291466236114502, -0.07967773824930191, 0.969405472278595, -0.7417661547660828, -0.061869870871305466, -0.1958887279033661, 0.6894577741622925, 0.17471374571323395, 0.5433129668235779, 0.0756792426109314, -0.8836443424224854, -0.18891392648220062, -0.09484279900789261, -0.016780711710453033, -0.06514348834753036, -0.16185368597507477, 0.11420225352048874, -0.11377014964818954, 0.4173657298088074, -0.8056621551513672, 0.6452082395553589, 0.7195528745651245, -0.3354247510433197, 0.5644086599349976, -0.29211485385894775, 0.12122391164302826, -1.268811583518982, 0.18065860867500305, -0.3808949291706085, -0.411256343126297, -0.6510754823684692, 0.14368462562561035, 0.10878070443868637, -0.28605160117149353, -0.5921230316162109, 0.3751429319381714, -0.5211998820304871, -0.1523546725511551, -0.24307981133460999, -0.015847472473978996, 0.21525751054286957, 0.2631289064884186, -0.040062274783849716, 1.0560280084609985, 0.12944449484348297, -0.6384280323982239, -0.021263940259814262, 0.2464272677898407, -0.1717657893896103, 0.023054514080286026, -0.6851800084114075, 0.40332576632499695, -0.10551624745130539, 0.5552745461463928, -1.0520133972167969, 0.12075415998697281, -0.4645098149776459, -0.3062135875225067, 0.19041036069393158, -0.14477990567684174, -0.898539662361145, -0.7027365565299988, -0.6070289015769958, 0.516018271446228, 0.38918182253837585, -0.6909433007240295, 0.570361852645874, 0.022674869745969772, 0.2891335189342499, -0.4485337734222412, -1.0819050073623657, 0.21649307012557983, -0.31658637523651123, -0.5075774192810059, 0.5747377276420593, -0.15128035843372345, 0.2938520312309265, -0.36699315905570984, -0.21478816866874695, 0.0022370994556695223, 0.027102770283818245, 0.11278843134641647, 0.02926607057452202, -0.2378821223974228, 0.36858466267585754, -0.10474435985088348, -0.10237842053174973, -0.5579192042350769, -0.8562109470367432, 0.921707808971405, -0.001002953271381557, -0.31830325722694397, -0.2362493872642517, 0.7291263341903687, 0.7678672075271606, -0.424587607383728, 0.844955325126648, 0.8621723651885986, -0.41053250432014465, 0.15153801441192627, -0.38165557384490967, -0.13129693269729614, -0.4835277199745178, 0.2787025272846222, -0.7191156148910522, -1.0382109880447388, 0.5110840201377869, -0.2998366355895996, 0.2845364212989807, 0.5630022883415222, 0.22465816140174866, 0.5013389587402344, 1.1692547798156738, 0.4078775644302368, -0.11427650600671768, 0.45154812932014465, -0.029584307223558426, 0.5593385100364685, -0.748796284198761, 0.19518230855464935, -0.638787567615509, -0.356067419052124, -0.5143202543258667, -0.6537063717842102, 0.3448045253753662, 0.04534492641687393, -0.00025446436484344304, 0.6551021337509155, -0.6021077632904053, 0.40951505303382874, 0.595337450504303, 0.19063392281532288, 0.20729714632034302, -0.48336324095726013, -0.22687388956546783, 0.11298316717147827, -0.8845518231391907, -0.20307841897010803, 0.7011318206787109, 0.10705430060625076, 0.3573444187641144, 0.5132064819335938, 0.7476850152015686, 0.2690894901752472, 0.2405853271484375, -0.9167070984840393, 0.41247043013572693, -0.475018173456192, -0.44353145360946655, -0.21259982883930206, -0.48317238688468933, -1.0853980779647827, 0.5465072989463806, -0.150057852268219, -0.7007279396057129, 0.000006199438303156057, 0.04609508067369461, -0.4362289309501648, 0.5466222167015076, -0.7948397397994995, 0.5788013339042664, 0.20669835805892944, 0.023068001493811607, -0.217594712972641, -0.717453122138977, 0.2942892611026764, -0.2585600018501282, 0.30336636304855347, 0.021325379610061646, -0.2855880558490753, 0.6997789144515991, -0.9019528031349182, 0.6725727319717407, -0.15357732772827148, 0.23425598442554474, 0.14848338067531586, -0.058430708944797516, 0.5987029671669006, -0.18863777816295624, -0.10318027436733246, 0.1349106878042221, 0.17714184522628784, -0.5877555012702942, -0.3840736448764801, 0.17585307359695435, 0.17350664734840393, -0.3525684177875519, -0.20907364785671234, -0.6254779696464539, -0.2042866051197052, 0.43035149574279785, 0.32637423276901245, 0.8715945482254028, 0.044110555201768875, 0.16223551332950592, 0.06520181149244308, -0.2871597111225128, 0.7367875576019287, -0.06080930307507515, -0.025729747489094734, -0.3915555477142334, 0.6502470970153809, 0.26224061846733093, 0.2549535632133484, 0.3952956199645996, 0.6770783066749573, -0.40094316005706787, -0.5410831570625305, -0.43182477355003357, -0.1606893539428711, -0.6483844518661499, -0.6228886246681213, -0.6489331126213074, 0.08655061572790146, -0.5769334435462952, -0.07612389326095581, -0.33259502053260803, -0.7971320152282715, 0.038351792842149734, -0.1510719209909439, 0.4803904592990875, 0.7820290327072144, -0.14958862960338593, 0.559036135673523, -1.1409380435943604, 0.4650239050388336, 0.2420484870672226, 0.4542076289653778, 0.09903224557638168, -0.21320849657058716, -0.0703122615814209, -0.48264867067337036, -0.10597975552082062, -0.8446232676506042, 0.24325396120548248, 0.42438259720802307, -0.06252158433198929, 0.35894855856895447, 0.19376564025878906, 1.273716926574707, -0.8162104487419128, 1.1194292306900024, 0.4154896140098572, -1.2281635999679565, 0.08797508478164673, 0.031088948249816895, 0.7632013559341431, 0.295684814453125, -0.06870880722999573, -0.9553313851356506, -0.3655819892883301, -0.4684341549873352, -1.184363842010498, 0.3350802958011627, 0.09624014049768448, 0.29747721552848816, -0.5794776082038879, 0.20675057172775269, 0.24852584302425385, 0.3408278226852417, -0.4659678339958191, -0.22723890841007233, -0.07603985071182251, -0.2097063660621643, 0.15860936045646667, -0.3503080904483795, 0.2841322422027588, -0.27407723665237427, 0.6007815599441528, -0.3603675365447998, 0.5638335347175598, 0.33859482407569885, -0.20335902273654938, 0.45315006375312805, 0.44204118847846985, 0.7077140808105469, 0.22377410531044006, 0.13023944199085236, 0.36524689197540283, 0.17608767747879028, -0.5704307556152344, 0.10263103991746902, 0.2369685024023056, 0.2456579953432083, 0.27708324790000916, 0.4170931577682495, 0.5857852697372437, 0.34665676951408386, -0.37557047605514526, 0.6449260711669922, -0.08124320954084396, -0.12268972396850586, 0.4122147262096405, -0.4716647267341614, -0.04296775907278061, 0.10576196014881134, 0.25588294863700867, 0.23012720048427582, 0.3259502053260803, -0.3641148507595062, 0.5125076174736023, 0.4033835232257843, -0.16001765429973602, -0.17525355517864227, 0.7860825061798096, 0.10533376783132553, -0.2222464382648468, 0.3376782238483429, -0.0888461321592331, -0.8885818123817444, 0.3367744982242584, 0.45066237449645996, 0.7665749788284302, 0.05068931356072426, -0.33812880516052246, 0.1680542230606079, 0.2869946360588074, -0.411088228225708, 0.4040014147758484, -0.28049302101135254, -0.4269070327281952, -0.7889707684516907, -0.5256850123405457, -0.14100010693073273, -0.22633574903011322, -0.36845600605010986, 0.2634285092353821, -0.21917608380317688, -0.45020830631256104, -0.039317939430475235, -0.3238558769226074, -0.6309365630149841, -0.090220607817173, 0.03874416649341583, 1.117434024810791, -0.4133221507072449, 0.9921010732650757, 0.18820632994174957, -0.24158646166324615, -0.8619590401649475, -0.007255876436829567, -0.01037324033677578, -0.4989013671875, 0.35756370425224304, 0.7881152629852295, -0.25323647260665894, 0.13109053671360016, 0.0017046695575118065, -0.7223456501960754, 0.8728070259094238, 0.23647062480449677, -0.4921935796737671, -0.12127872556447983, 0.18361371755599976, 0.19817036390304565, -0.02034834772348404, -0.01482423022389412, 0.5647231936454773, 0.731195867061615, -0.005896501708775759, -0.8265702128410339, 0.1935228556394577, 0.09531944990158081, 0.18914051353931427, 0.7455547451972961, -0.5345371961593628, 0.6995182633399963, -0.19281765818595886, -0.47220051288604736, 0.35444507002830505, 0.7758094072341919, -0.12243302911520004, -0.06030838564038277, 0.6191402673721313, 0.39132407307624817, 0.9126585721969604, -0.3145802319049835, 1.096460223197937, -0.3928464353084564, 0.33559897541999817, 0.8055222034454346, 0.005442020483314991, 0.8423104882240295, 0.7486125230789185, -0.2703051269054413, 0.17533136904239655, 0.3721664547920227, 0.1514449119567871, 0.30906644463539124, 0.5546649694442749, -0.27971985936164856, 0.032670289278030396, -0.030129041522741318, -0.1842666119337082, 0.2968441843986511, 0.04017212614417076, -0.034783877432346344, 0.06226082891225815, 0.1286294311285019, 0.09148245304822922, -0.1974780112504959, -0.23447257280349731, 0.6162489652633667, 0.0931578204035759, -0.46805253624916077, 0.25629523396492004, 0.22433945536613464, 1.1885461807250977, -0.7593367695808411, 0.06408325582742691, 0.08784022182226181, 0.024792958050966263, -0.03204737976193428, -0.45697930455207825, 0.524056077003479, -0.0005377264460548759, 0.1417400985956192, -0.44063135981559753, 0.7659221291542053, -0.4092958867549896, -0.3633268475532532, 0.10907654464244843, 0.4538998305797577, 0.12160652130842209, -0.34262222051620483, -0.3036779463291168, -0.02639090269804001, -0.3565528392791748, -0.4632647931575775, -0.07179021835327148, 0.43880775570869446, 0.13450480997562408, 0.23069199919700623, 0.880488395690918, 0.20648454129695892, 0.3967612385749817, 0.27391114830970764, 0.677035927772522, -0.8318653702735901, -0.7136538624763489, -1.0742971897125244, 0.71722412109375, -0.11116409301757812, -0.3057875633239746, 0.48563772439956665, 0.6014644503593445, 0.32266801595687866, 0.007501794490963221, 0.6308316588401794, -0.20883066952228546, 0.07204706966876984, -0.5930392742156982, 0.4101017415523529, -0.5591769218444824, 0.05896025896072388, -0.23982958495616913, -0.6230461597442627, -0.9552510976791382, 0.2953539192676544, 0.24275563657283783, -0.18258744478225708, 0.781328558921814, 0.3018130362033844, 0.005445767194032669, 0.06564152240753174, 0.5408846139907837, -0.1643475592136383, 0.6658024191856384, 0.28115323185920715, 0.4916754364967346, -0.47084224224090576, 0.543541431427002, -0.19344519078731537, 0.11064539104700089, -0.008116702549159527, -1.2659984827041626, -0.659144401550293, -0.6478954553604126, -0.060574982315301895, -0.3446268141269684, -0.23607493937015533, 1.1185981035232544, 1.1299750804901123, -0.5617731213569641, 0.14578962326049805, -0.1243247538805008, 0.0016597725916653872, -0.5386688113212585, -0.1867881715297699, 0.5081197619438171, -0.3308544158935547, -0.4664647877216339, 0.5168418884277344, 0.4382840394973755, 0.11771679669618607, 0.0346655510365963, 0.08173973113298416, -0.14806848764419556, 0.5321341753005981, 1.0060834884643555, 0.031170357018709183, -0.5741025805473328, -0.7196739912033081, -0.2396163046360016, 0.25651371479034424, 0.4004266858100891, 1.3595476150512695, -0.7082145810127258, 0.30400633811950684, 0.5133287310600281, 0.796126663684845, 0.6211094856262207, 0.12194979190826416, 0.6437780261039734, -1.331322431564331, 0.5052793622016907, 0.11241023242473602, 0.705922544002533, 0.26262471079826355, -0.4107304513454437, 0.5485504269599915, 0.3588891327381134, -0.2308860421180725, -0.8517308235168457, 0.4401426613330841, -0.8593717813491821, -0.49991118907928467, 0.9873284101486206, -0.06959545612335205, -0.014594928361475468, -0.0653490200638771, -0.36864787340164185, 0.5216429233551025, -0.41002318263053894, 0.4810255169868469, 0.9990628361701965, -0.086476631462574, 0.1241505816578865, -0.38296762108802795, 0.2440016120672226, 0.4130197763442993, -0.6928661465644836, 0.309089332818985, 0.2351909875869751, -0.11893001198768616, 0.24954962730407715, 0.47212153673171997, -0.2041616439819336, 0.07177253067493439, 0.0639093741774559, -0.11998915672302246, -0.13669981062412262, -0.2615051865577698, -0.4843848645687103, 0.4374273121356964, 0.23440274596214294, -0.5529714822769165 ]
http://arxiv.org/abs/2402.09939v1
http://arxiv.org/pdf/2402.09939v1
Generative AI in the Construction Industry: A State-of-the-art Analysis
2024-02-15T13:39:55
2024-02-15T13:39:55
Ridwan Taiwo, Idris Temitope Bello, Sulemana Fatoama Abdulai, Abdul-Mugis Yussif, Babatunde Abiodun Salami, Abdullahi Saka, Tarek Zayed
cs.AI
cs.AI, cs.CL, cs.HC, cs.IR, cs.LG
The construction industry is a vital sector of the global economy, but it faces many productivity challenges in various processes, such as design, planning, procurement, inspection, and maintenance. Generative artificial intelligence (AI), which can create novel and realistic data or content, such as text, image, video, or code, based on some input or prior knowledge, offers innovative and disruptive solutions to address these challenges. However, there is a gap in the literature on the current state, opportunities, and challenges of generative AI in the construction industry. This study aims to fill this gap by providing a state-of-the-art analysis of generative AI in construction, with three objectives: (1) to review and categorize the existing and emerging generative AI opportunities and challenges in the construction industry; (2) to propose a framework for construction firms to build customized generative AI solutions using their own data, comprising steps such as data collection, dataset curation, training custom large language model (LLM), model evaluation, and deployment; and (3) to demonstrate the framework via a case study of developing a generative model for querying contract documents. The results show that retrieval augmented generation (RAG) improves the baseline LLM by 5.2, 9.4, and 4.8% in terms of quality, relevance, and reproducibility. This study provides academics and construction professionals with a comprehensive analysis and practical framework to guide the adoption of generative AI techniques to enhance productivity, quality, safety, and sustainability across the construction industry.
[ -0.25647205114364624, -0.8501163721084595, 0.5001329183578491, 0.1157039999961853, -0.2909468412399292, 0.3363751173019409, 0.3061524033546448, -0.5592641830444336, 0.13071788847446442, 0.2766972482204437, -0.09704705327749252, -0.506924569606781, -0.5938547253608704, -0.004831715952605009, -0.6242159605026245, 0.6336687803268433, -0.15463848412036896, -0.2538151443004608, -0.6670780777931213, -0.007071707863360643, -0.4503345787525177, -0.5827823877334595, -0.5093069672584534, -0.06853432208299637, 0.0007609500316902995, -0.1312459111213684, 0.7660830616950989, 0.6845169067382812, 0.47160741686820984, 0.4204555153846741, -0.1113087460398674, 0.2370857149362564, -0.2126200944185257, -0.050457559525966644, 0.035434968769550323, -0.3137451410293579, -0.3489876091480255, -0.042459551244974136, 0.6813843250274658, 0.5573247671127319, -0.3480764627456665, 0.13062222301959991, -0.02788984589278698, 0.8126470446586609, -0.5604300498962402, 0.38836193084716797, -0.5319363474845886, 0.01965666189789772, -0.3690847158432007, -0.43734991550445557, 0.05373123288154602, -0.22302132844924927, -0.13197724521160126, -0.47032374143600464, 0.49670302867889404, 0.11114774644374847, 0.8148296475410461, 0.4801642894744873, -0.17963431775569916, -0.38527318835258484, -0.6704443693161011, 0.21922144293785095, -0.5233417749404907, 0.30351054668426514, 0.017214149236679077, 0.1481315940618515, -0.15179239213466644, -0.639850378036499, -0.4054238498210907, -0.4746352434158325, 0.08715115487575531, 0.4988531768321991, 0.05597939342260361, 0.12755605578422546, 0.21827465295791626, 0.9466261863708496, -0.7458743453025818, 0.34228190779685974, -0.4738803505897522, -0.01694193109869957, 0.6723709106445312, 0.25623607635498047, 0.543484628200531, 0.0014921777183189988, -0.5152459144592285, -0.07541480660438538, -0.5605757832527161, -0.13447660207748413, 0.5832831859588623, -0.028450245037674904, -0.10667776316404343, 0.5888113379478455, -0.2997611165046692, 0.6770414113998413, -0.3585818111896515, 0.028442785143852234, 0.3119352161884308, -0.2679414749145508, -0.3451252281665802, -0.14285717904567719, 0.7890561819076538, -0.18526087701320648, -0.24651284515857697, -0.40105217695236206, -0.4416751265525818, 0.3492780029773712, 0.5759641528129578, -0.43024691939353943, -0.09385746717453003, 0.22158953547477722, -0.35662326216697693, -0.41155579686164856, 0.24967233836650848, -0.43933603167533875, -0.2978634238243103, -0.26577016711235046, 0.010696621611714363, -0.1100412905216217, -0.5028523802757263, 0.08160615712404251, -0.5979729890823364, 0.5836220979690552, 0.3086943030357361, -0.5808307528495789, -0.2596146762371063, 0.7547058463096619, 0.7851102352142334, 0.004857311025261879, -0.11750398576259613, -0.21363432705402374, 0.06272273510694504, -0.5866062641143799, 0.8182318806648254, -0.16467872262001038, -0.704348623752594, 0.301358163356781, -0.5702466368675232, -0.1676652729511261, -0.6705158352851868, 0.3598204553127289, -0.7164837718009949, 0.08021777123212814, 0.4744246006011963, -0.45671096444129944, 0.10281907767057419, 0.6041768193244934, -0.8449658751487732, 0.7371366620063782, 0.6403464674949646, -0.5311475396156311, 0.32199686765670776, -0.6162605881690979, -0.3814987540245056, 0.6675562858581543, -0.5554285049438477, -0.8515868782997131, 0.4371291697025299, -0.06973204761743546, 0.025904210284352303, -0.4047592580318451, 0.35111990571022034, 0.162027969956398, -0.22738254070281982, 0.2133735865354538, -0.4706507921218872, 0.7146344780921936, 0.41840246319770813, -0.3533378541469574, 0.06882612407207489, -0.569972574710846, -0.10684114694595337, 0.034624043852090836, -0.47429925203323364, 0.07713702321052551, 0.07500603795051575, -0.11173499375581741, 0.05693991854786873, 0.3484005033969879, -0.3534003496170044, 0.015241754241287708, -0.6158890724182129, 0.06088242679834366, 0.5545565485954285, 0.018030770123004913, 0.26005300879478455, -0.6029064655303955, 0.9448785781860352, -0.08751783519983292, 0.15878652036190033, 0.027375612407922745, -0.2042376846075058, -0.6363545060157776, -0.3632086217403412, 0.41939225792884827, 0.5419316291809082, -0.8849024772644043, 0.15042506158351898, -0.3787405788898468, -0.604572057723999, -0.7762941122055054, 0.13377009332180023, 0.4105977714061737, 0.23645900189876556, 0.01531378272920847, -0.4362918436527252, -0.5980897545814514, -0.5258840918540955, -0.1319248229265213, -0.3200094699859619, -0.05696173384785652, 0.10388079285621643, 0.31600549817085266, -0.23175838589668274, 0.6428811550140381, -0.5477685928344727, -0.4711964428424835, -0.28850749135017395, 0.3053572177886963, 0.22760087251663208, 0.45965278148651123, 0.5293691158294678, -1.3044259548187256, -0.3830951750278473, 0.1777486652135849, -1.1016825437545776, 0.437851220369339, -0.43448641896247864, -0.031848762184381485, 0.20734426379203796, 0.754048764705658, -0.6954713463783264, 0.5200538039207458, 0.2651839554309845, -0.17943301796913147, 0.7063820362091064, -0.1698315292596817, -0.0026015378534793854, -1.0543168783187866, 0.2858102321624756, -0.13922248780727386, 0.12934713065624237, -0.49737873673439026, 0.5173182487487793, -0.32276883721351624, -0.30001741647720337, -0.2615829408168793, 0.2574927508831024, -0.7258390188217163, 0.0027122695464640856, -0.32616010308265686, 0.0009972688276320696, 0.06189652904868126, 0.4544532299041748, -0.011662228964269161, 0.9082261323928833, 0.43515461683273315, -0.5982951521873474, 0.4123775064945221, 0.5392738580703735, -0.7237755656242371, 0.3418392539024353, -0.48745572566986084, 0.28150391578674316, -0.34390610456466675, -0.08216358721256256, -0.5357597470283508, -0.10528954863548279, 0.16747653484344482, -0.6212654709815979, 0.2417708933353424, 0.08356346935033798, -0.5657007098197937, -0.40837952494621277, -0.2516078054904938, 0.2485310286283493, 0.6359906196594238, -0.32240572571754456, 0.7396751046180725, 0.3750673830509186, -0.2633974552154541, -0.4905809462070465, -0.39544135332107544, 0.2627609074115753, -0.05242781341075897, -0.34874817728996277, 0.7273087501525879, -0.002098456956446171, -0.20102110505104065, 0.16485030949115753, -0.24966983497142792, -0.2747305631637573, 0.39942583441734314, 0.22217856347560883, 0.35591921210289, -0.007320293691009283, -0.14662304520606995, -0.3351207971572876, -0.13326793909072876, 0.27475130558013916, -0.08852976560592651, 0.22179409861564636, -0.02820431999862194, -0.2765096426010132, -0.352659672498703, 0.392385870218277, 0.7127569913864136, -0.5452095866203308, 0.8381890058517456, 0.49112775921821594, -0.26693665981292725, -0.09572906792163849, -0.4564116299152374, 0.5177205204963684, -0.47110244631767273, 0.4699704349040985, -0.5144515633583069, -0.7267319560050964, 0.14353036880493164, -0.3643011152744293, 0.20641663670539856, 0.5824401378631592, 0.5509377717971802, -0.3453068435192108, 0.8978690505027771, 0.9057352542877197, -0.1054350957274437, 0.6064196228981018, -0.6399953961372375, 0.32405951619148254, -0.7424055337905884, -0.5429237484931946, -0.5836376547813416, 0.19826477766036987, -0.6429803967475891, -0.15018752217292786, 0.5674565434455872, -0.013096613809466362, 0.04534466564655304, 0.22524243593215942, -0.5299833416938782, 0.08742588013410568, 0.5462964773178101, -0.008643798530101776, 0.3434184193611145, -0.060112327337265015, 0.07676174491643906, 0.6318772435188293, -0.9437663555145264, -0.469005823135376, 0.5750139951705933, 0.1552191823720932, 0.3435739278793335, 0.2165972888469696, 0.5499138236045837, 0.5985575914382935, 0.5367080569267273, -0.7102047801017761, 0.35442957282066345, -0.11591436713933945, -0.4957352876663208, -0.374722421169281, -0.48449936509132385, -1.0132516622543335, 0.08079259842634201, -0.27887964248657227, 0.010702669620513916, 0.11113078147172928, 0.2033434510231018, -0.1977250874042511, 0.45658209919929504, -0.4072093963623047, 0.7440049052238464, -0.3125952184200287, -0.015314308926463127, -0.2616226375102997, -0.2687448263168335, 0.11720293760299683, -0.1307826191186905, 0.27150002121925354, 0.026798423379659653, 0.1406281441450119, 0.4235144257545471, -0.393465131521225, 0.6209945678710938, -0.042104341089725494, -0.29988935589790344, 0.6890336275100708, -0.2394293248653412, 0.5385034680366516, -0.13510124385356903, -0.3174351155757904, 0.24564076960086823, -0.19424626231193542, -0.2769283652305603, -0.6473378539085388, 0.36522048711776733, -0.7172554731369019, -0.8233463168144226, -0.40681135654449463, -0.31237542629241943, -0.26718246936798096, -0.05049663782119751, 0.5285983681678772, 0.32472944259643555, -0.6830867528915405, 0.1468926966190338, 0.256007581949234, -0.11550273001194, 0.3361535966396332, 0.03296070173382759, 0.473552942276001, -0.44975388050079346, 0.9615816473960876, 0.05909168720245361, -0.13273267447948456, 0.5001962780952454, -0.26504799723625183, -0.3778343200683594, -0.9346023797988892, -0.5549324154853821, -0.13128744065761566, -0.3461959660053253, -0.4097553491592407, -0.3374456763267517, -0.61212557554245, -0.14894939959049225, -0.2860344350337982, -0.12519332766532898, -0.09906653314828873, -0.2781261205673218, -0.14491194486618042, -0.1805344820022583, 0.7082632184028625, 0.3610862195491791, -0.02266518585383892, -0.8288994431495667, 0.48690518736839294, 0.36040642857551575, 0.7595481276512146, -0.050408098846673965, 0.09142742305994034, -0.6003652215003967, 0.059845153242349625, -0.40869802236557007, -0.38573119044303894, 0.31264445185661316, -0.0019491787534207106, 0.8219019770622253, 0.36011314392089844, 0.13522954285144806, 0.20509637892246246, -0.2813616394996643, 0.6733675599098206, 0.24871522188186646, -0.5573854446411133, 0.49694904685020447, -0.31579944491386414, 0.25060194730758667, 0.40626388788223267, 0.19547787308692932, -0.2868563234806061, -0.36911118030548096, -0.9688103199005127, -0.9346909523010254, 0.23348836600780487, 0.5388370156288147, 0.25901174545288086, -0.006604664493352175, 0.29421427845954895, -0.21857649087905884, 0.3884415030479431, -0.4000256359577179, 0.03586152568459511, -0.18578258156776428, -0.23870225250720978, 0.16229592263698578, -0.43749383091926575, -0.10875950753688812, 0.24886800348758698, 0.6073542237281799, 0.03877504914999008, 0.4571548104286194, 0.03196559101343155, -0.25521916151046753, -0.00279435352422297, 0.4681393802165985, 0.3941097557544708, 0.9008433818817139, -0.1579376608133316, -0.2768864035606384, 0.1412607878446579, -0.43583381175994873, 0.19110609591007233, 0.18140128254890442, -0.316011518239975, 0.0629437267780304, 0.48526281118392944, 0.717931866645813, -0.5098286867141724, -0.5641990303993225, 0.510397732257843, 0.35803189873695374, -0.5096555352210999, -0.8454969525337219, 0.15861529111862183, -0.34510552883148193, 0.2603428363800049, 0.3588058054447174, 0.11191380769014359, 0.29591819643974304, -0.38657253980636597, -0.10322319716215134, 0.6061707139015198, -0.22957633435726166, -0.11972600221633911, 0.7543348073959351, 0.40894854068756104, -0.37511351704597473, 0.9153712391853333, -0.1917913854122162, -0.43805456161499023, 0.8674843311309814, 0.33359846472740173, 1.1030908823013306, 0.2542862892150879, 0.19772712886333466, 0.19889654219150543, 0.2858152389526367, 0.18034909665584564, 0.251543253660202, -0.04209992289543152, -0.8452774286270142, -0.4416545629501343, -0.6918901205062866, -0.4034508168697357, 0.1311488151550293, -0.5123172998428345, -0.26180317997932434, -0.49314454197883606, -0.20514993369579315, -0.30886295437812805, -0.01223570667207241, -0.7780081629753113, 0.335151731967926, 0.20949126780033112, 0.7931506633758545, -0.47681543231010437, 0.3500722646713257, 0.9817986488342285, -0.7014806866645813, -0.2921878397464752, 0.004120378289371729, -0.3843405842781067, -0.6034603118896484, 0.299635648727417, 0.008141480386257172, -0.27229398488998413, 0.17862750589847565, -0.48135673999786377, -0.5888790488243103, 1.122391939163208, 0.3241617977619171, -0.3810761272907257, -0.29742175340652466, 0.31791505217552185, 0.5936412215232849, -0.11688639968633652, -0.18705835938453674, 0.29794833064079285, 0.18160885572433472, -0.043276648968458176, -0.5812590718269348, -0.12175610661506653, -0.582779586315155, 0.5483959913253784, 0.3206962049007416, -0.6845489144325256, 0.14372272789478302, -0.09321578592061996, -0.5266823172569275, 0.35204774141311646, 0.8861024975776672, 0.33043554425239563, 0.3840620815753937, 0.6556568741798401, 0.6073055863380432, 0.3974842429161072, -0.05187785625457764, 1.1062947511672974, -0.45994409918785095, 0.083676278591156, 0.6862968802452087, 0.21730870008468628, 0.7310702204704285, 0.2273917943239212, -0.36754176020622253, 0.7374784350395203, 0.399759441614151, -0.24101506173610687, 0.38375940918922424, 0.3660826086997986, -0.4641607403755188, -0.06377262622117996, -0.3600127696990967, -0.5494509339332581, 0.5604241490364075, 0.31045272946357727, -0.14491571485996246, 0.13072890043258667, 0.0507018081843853, -0.2561955749988556, 0.32734987139701843, -0.20463837683200836, 0.9450041651725769, 0.04737498611211777, -0.6404874920845032, 0.3847547471523285, 0.046451080590486526, 0.3550703823566437, -0.4491048753261566, -0.40334978699684143, -0.2045406550168991, -0.010786021128296852, -0.19021297991275787, -0.40018120408058167, 0.5291537046432495, -0.10273413360118866, -0.12266230583190918, -0.5910714268684387, 0.27318498492240906, -0.21751537919044495, -0.33314910531044006, -0.14208385348320007, 0.5296775698661804, -0.09340682625770569, -0.21293006837368011, -0.5045447945594788, -0.07994627207517624, -0.2512485086917877, 0.23179151117801666, 0.1859917789697647, 0.37340885400772095, 0.03752247989177704, 0.42946845293045044, 0.7423744797706604, 0.11127184331417084, -0.2677944302558899, 0.21275359392166138, 0.9928789734840393, -0.7305614948272705, -0.5928778648376465, -0.5355940461158752, 0.8590611219406128, -0.1955418735742569, -0.29571330547332764, 0.47713664174079895, 0.704742431640625, 0.917887270450592, -0.19177386164665222, 0.80987149477005, -0.2039431780576706, 0.04058724641799927, -0.6648551225662231, 0.6792292594909668, -0.5011299848556519, 0.27400273084640503, -0.26442116498947144, -0.8092320561408997, -0.21813204884529114, 0.20186391472816467, 0.09910542517900467, -0.025474263355135918, 0.33538568019866943, 0.6808894872665405, 0.37675583362579346, -0.2591434419155121, 0.3697311580181122, -0.03810309246182442, 0.24606353044509888, 0.21446309983730316, 1.0606251955032349, -0.4998008608818054, 0.6719195246696472, 0.047881513833999634, -0.17680564522743225, -0.24935172498226166, -0.6232747435569763, -0.441471666097641, -0.6565468311309814, -0.6712905168533325, -0.11760050803422928, 0.12660688161849976, 0.4712790548801422, 0.4538581967353821, -0.7008488178253174, -0.2745652198791504, -0.45505595207214355, 0.14750881493091583, -0.5562785267829895, -0.21040327847003937, 0.5420710444450378, -0.4114280343055725, -0.5179407000541687, 0.49127197265625, 0.30641141533851624, 0.27093616127967834, -0.1996033936738968, -0.05959147587418556, -0.15081386268138885, -0.0638393983244896, 0.5408602356910706, 0.3323836624622345, -0.39635151624679565, 0.09222923964262009, -0.24778616428375244, -0.239444762468338, 0.20991986989974976, 0.6987429857254028, -0.5816974639892578, 0.542779266834259, 0.609140157699585, 0.8970940709114075, 0.5014932155609131, 0.27191779017448425, 0.7012621760368347, -0.8175995945930481, 0.003908153157681227, 0.2596280872821808, 0.30834320187568665, 0.31031379103660583, -0.756313145160675, 0.72878098487854, 0.27629444003105164, -0.30204764008522034, -0.47883519530296326, 0.2134445756673813, -0.4989023506641388, -0.25405704975128174, 0.4944208860397339, 0.14579568803310394, 0.049586597830057144, -0.26335278153419495, -0.020461319014430046, 0.4713577628135681, 0.1420484036207199, 1.0440270900726318, 0.27982082962989807, -0.19785451889038086, -0.1401839256286621, -0.43139970302581787, 0.5808220505714417, 0.26841971278190613, -0.9073184728622437, -0.27740412950515747, 0.6566178798675537, -0.19646519422531128, 0.15172937512397766, 0.8370797634124756, -0.1764828860759735, 0.4426000118255615, 0.2816026508808136, 0.13170945644378662, -0.29502278566360474, -0.3924291133880615, -0.21782328188419342, 0.5097702145576477, 0.39053693413734436, -0.4207603335380554 ]
http://arxiv.org/abs/2402.09934v1
http://arxiv.org/pdf/2402.09934v1
Paying Attention to Deflections: Mining Pragmatic Nuances for Whataboutism Detection in Online Discourse
2024-02-15T13:34:19
2024-02-15T13:34:19
Khiem Phi, Noushin Salek Faramarzi, Chenlu Wang, Ritwik Banerjee
cs.CL
cs.CL, cs.AI, I.2.7
Whataboutism, a potent tool for disrupting narratives and sowing distrust, remains under-explored in quantitative NLP research. Moreover, past work has not distinguished its use as a strategy for misinformation and propaganda from its use as a tool for pragmatic and semantic framing. We introduce new datasets from Twitter and YouTube, revealing overlaps as well as distinctions between whataboutism, propaganda, and the tu quoque fallacy. Furthermore, drawing on recent work in linguistic semantics, we differentiate the `what about' lexical construct from whataboutism. Our experiments bring to light unique challenges in its accurate detection, prompting the introduction of a novel method using attention weights for negative sample mining. We report significant improvements of 4% and 10% over previous state-of-the-art methods in our Twitter and YouTube collections, respectively.
[ -0.8614369034767151, -0.8825070261955261, 0.49102309346199036, 0.18739618360996246, -0.27163875102996826, 0.2522667944431305, 0.009140267968177795, -0.08534468710422516, 0.5460142493247986, 0.45403003692626953, -0.6140903830528259, -0.3673821687698364, -0.9431387186050415, -0.02352089434862137, -0.8194103837013245, 1.0232511758804321, 0.24816595017910004, -0.044103726744651794, 0.0848986804485321, -0.32912927865982056, -0.48113545775413513, -0.37250232696533203, -0.30887341499328613, -0.21128638088703156, 0.5063483119010925, 0.263247013092041, 0.7126518487930298, 0.2822476625442505, 0.39460092782974243, 0.319656103849411, -0.1535068303346634, 0.19605928659439087, -0.6437960863113403, -0.01254774909466505, -0.6311016082763672, -0.37581387162208557, 0.16480045020580292, 0.12751086056232452, 0.4952694773674011, 0.5572828650474548, -0.19200190901756287, 0.3737090826034546, 0.01699948124587536, 0.500128448009491, -0.8717975616455078, 0.07456228137016296, -0.8145908117294312, -0.11485151201486588, -0.29354992508888245, -0.1314377784729004, -0.03404587134718895, -0.6746370196342468, 0.11161267757415771, -0.528383731842041, 0.3467411398887634, -0.19978195428848267, 0.8990728855133057, 0.5129135251045227, -0.5027487277984619, -0.42987021803855896, -0.37924760580062866, 0.8850710988044739, -0.7971000075340271, 0.3281188905239105, 0.7676115036010742, -0.0011683411430567503, 0.09868836402893066, -0.8058058619499207, -0.7941930890083313, 0.26226484775543213, -0.08425923436880112, 0.1462123692035675, -0.44382598996162415, 0.011382266879081726, 0.39864885807037354, 0.35950160026550293, -0.4274730086326599, -0.35966646671295166, -0.28424766659736633, -0.2952519953250885, 0.46341654658317566, -0.4807044267654419, 0.14038260281085968, -0.5826956033706665, -0.3398265838623047, 0.16033419966697693, -0.4721875488758087, -0.400919109582901, 0.3102319836616516, -0.09322759509086609, 0.05785391107201576, 0.6014290452003479, -0.16501109302043915, 0.2683793604373932, 0.20237553119659424, 0.055775225162506104, 0.21575863659381866, -0.22503167390823364, -0.18921472132205963, 0.34239837527275085, 0.5888208150863647, 0.60218745470047, 0.5375291705131531, 0.07347650825977325, 0.19125066697597504, 0.44917425513267517, 0.41265541315078735, -0.521140992641449, -0.1464950442314148, 0.12570379674434662, -0.13067595660686493, -0.3092555105686188, 0.08865957707166672, -0.7046298980712891, -0.6964138150215149, -0.09925892949104309, 0.26103895902633667, -0.6506804823875427, -0.4645352363586426, 0.1441778540611267, -0.7103486061096191, 0.4813489317893982, 0.05201457440853119, -0.41900014877319336, 0.23332519829273224, 1.035500168800354, 0.9727436304092407, 0.0009365158621221781, 0.12672488391399384, -0.74544757604599, 0.04740842059254646, -0.5720987915992737, 1.0102208852767944, -0.5601723790168762, -0.13502156734466553, 0.32612496614456177, -0.10140351951122284, 0.2578742504119873, -0.43018895387649536, 0.7502281069755554, -0.3887103199958801, 0.3040323853492737, -0.5464527010917664, -0.6673609018325806, -0.5419943332672119, 0.6888536810874939, -0.6950454115867615, 1.0153865814208984, -0.02571786381304264, -0.9755747318267822, 0.2944221496582031, -0.398335725069046, -0.6206263303756714, 0.1385149210691452, -0.13955068588256836, -0.35297155380249023, 0.3854423761367798, 0.03649783879518509, 0.14709459245204926, -0.17135348916053772, 0.5294222235679626, -0.3234378695487976, -0.14816132187843323, 0.4283326268196106, -0.36062178015708923, 0.8786441683769226, 0.08590025454759598, -0.5947725772857666, -0.2441994547843933, -0.6694465279579163, -0.06796915829181671, -0.03509695082902908, 0.18564756214618683, -0.6871470808982849, 0.2652184069156647, -0.036933533847332, 0.2739774286746979, -0.22092707455158234, -0.5956571102142334, -0.14895863831043243, -0.6266652941703796, 0.6988369226455688, 0.42793411016464233, 0.31462472677230835, 0.11478140205144882, -0.4550190269947052, 0.3331001102924347, -0.3169688284397125, -0.055377885699272156, -0.0025559947825968266, -0.6063647866249084, -0.5348674058914185, -0.10940193384885788, 0.1821213662624359, 0.23740166425704956, -1.0475215911865234, 0.12977249920368195, -0.12941141426563263, -0.5244898200035095, -0.6022610664367676, -0.06366399675607681, 0.37333986163139343, 0.5848460793495178, 0.41409483551979065, -0.3338071405887604, -0.6541340351104736, -0.8614701628684998, -0.815294623374939, -0.4039572775363922, -0.09775224328041077, -0.21406880021095276, 0.37459102272987366, 0.20109067857265472, 0.9718388915061951, -0.4532381594181061, -0.6820757389068604, -0.23572811484336853, 0.5505903959274292, -0.11975887417793274, -0.001112637808546424, 0.5202555060386658, -1.1497595310211182, -0.3956878185272217, -0.39622732996940613, -0.4418128728866577, -0.18491029739379883, -0.0819331705570221, 0.21144403517246246, 0.07098552584648132, 0.5049516558647156, -0.5941373109817505, 0.43190237879753113, 0.39450803399086, -0.40343669056892395, 0.24317403137683868, 0.4326270520687103, 0.34652167558670044, -0.956836462020874, -0.1163315549492836, 0.31033092737197876, -0.5255508422851562, -0.6471589207649231, -0.0448431596159935, -0.16501358151435852, 0.32461974024772644, -0.6844688653945923, 0.2650192975997925, -0.22822122275829315, 0.1480538249015808, -0.332514226436615, 0.560371458530426, 0.29015448689460754, 0.256041556596756, 0.17337167263031006, 0.2962810695171356, 0.24720236659049988, -0.4729943871498108, 0.421063631772995, 0.43626102805137634, -0.42089638113975525, 0.9705350399017334, -0.4741840362548828, -0.08592035621404648, -0.33534517884254456, 0.16179914772510529, -1.3390779495239258, -0.3065284788608551, 0.3636951446533203, -0.8851460218429565, 0.03461296483874321, -0.40447914600372314, -0.4901665151119232, -0.0941229984164238, -0.9666999578475952, 0.2790222465991974, 0.4532603919506073, -0.2069309502840042, 0.6566721796989441, 0.9190107583999634, 0.00501278368756175, -0.62766033411026, -0.9750359654426575, -0.006609914358705282, -0.36564120650291443, -0.2433456927537918, 0.6257055997848511, 0.3245403468608856, -0.7819468379020691, 0.0023257031571120024, -0.20997141301631927, -0.22088734805583954, -0.03867150843143463, 0.08989333361387253, -0.22065255045890808, -0.05356014892458916, 0.34804385900497437, -0.1733258068561554, 0.08353143185377121, 0.35378649830818176, -0.1324155181646347, 0.6616848707199097, 0.10471802204847336, -0.24884247779846191, -0.5107998251914978, 0.19388332962989807, 0.14570921659469604, -0.005007595755159855, 0.6121323108673096, 0.7833235859870911, -0.46973806619644165, -0.1707618236541748, -0.8870342373847961, -0.49850621819496155, -0.4760875701904297, 0.4137555658817291, 0.22227437794208527, -0.41756436228752136, 0.15139783918857574, 0.028986508026719093, 0.23402974009513855, 0.375008225440979, 0.6883974075317383, -0.2978593707084656, 0.702612042427063, 0.3231847882270813, 0.11659128963947296, 0.562309741973877, -0.31442001461982727, 0.22218993306159973, -0.4511054456233978, -0.06119851395487785, -0.4567549526691437, -0.4154156446456909, -0.687755823135376, -0.47937747836112976, -0.04890044778585434, -0.4191244840621948, -0.17466682195663452, 0.3389781415462494, -0.4227190911769867, 0.5353776812553406, 0.30438223481178284, -0.2965430021286011, 0.46546727418899536, -0.07944764196872711, 0.5343601107597351, -0.5538433194160461, -0.6327852606773376, -0.3685249090194702, 0.8392542600631714, 0.21387365460395813, 0.6010308265686035, 0.2963772416114807, 0.1554749310016632, 0.872316300868988, 0.479115754365921, -0.9439415335655212, 0.49714186787605286, 0.2083771675825119, -0.8492067456245422, 0.018692621961236, -0.2680518329143524, -0.9211589097976685, 0.2707378566265106, 0.0018835257505998015, -0.6909528970718384, 0.2106505036354065, 0.2954750657081604, -0.026667632162570953, 0.48786526918411255, -0.8191772699356079, 0.7046433687210083, -0.011050179600715637, -0.4695466458797455, -0.46556296944618225, -0.4948822557926178, 0.4968375563621521, -0.04788677394390106, 0.6000403761863708, -0.2385183870792389, -0.10395637154579163, 0.6523522734642029, -0.19047024846076965, 1.0207589864730835, -0.06255409121513367, -0.28224173188209534, 0.47419947385787964, 0.24178433418273926, 0.29845350980758667, 0.07820789515972137, 0.1156536117196083, 0.5411703586578369, 0.16800323128700256, -0.2999182641506195, -0.3496324121952057, 0.6034975647926331, -0.29701295495033264, -0.6508575677871704, -0.5820478200912476, -0.32108423113822937, -0.32570868730545044, 0.1500500738620758, 0.23880897462368011, 0.39982491731643677, -0.31573253870010376, 0.401987761259079, 0.8635236620903015, 0.032556965947151184, 0.45440614223480225, 0.3839426338672638, 0.08404472470283508, -0.20475436747074127, 1.1516252756118774, 0.46764129400253296, 0.252413272857666, 0.4252265691757202, 0.10734562575817108, -0.6368958353996277, -0.2419336587190628, -0.18446296453475952, 0.38912156224250793, -0.6182079911231995, -0.2962344288825989, -0.37762072682380676, -0.16158123314380646, -0.4524928629398346, 0.051602549850940704, -0.44932228326797485, -0.5670974850654602, 0.05751572921872139, -0.14657120406627655, 0.2796514332294464, 0.6325223445892334, -0.022845899686217308, 0.51362544298172, -0.4796646535396576, 0.49280211329460144, 0.03736798092722893, 0.30615222454071045, -0.08892961591482162, -0.7077944874763489, 0.01193329319357872, -0.01966766081750393, -0.815825879573822, -1.380888819694519, 0.5550702214241028, 0.12047451734542847, 0.4000019133090973, 0.8138930797576904, 0.4642636179924011, 0.42371174693107605, -0.1320168375968933, 0.5649321675300598, 0.0998312458395958, -1.0445952415466309, 0.42289191484451294, -0.27737951278686523, 0.11661781370639801, 0.3185303807258606, 0.9187567234039307, -0.8227353692054749, -0.665763258934021, -1.0797863006591797, -0.8360152244567871, 0.5726456642150879, 0.5356375575065613, 0.14841529726982117, -0.3048979341983795, -0.03097730688750744, -0.0388905294239521, 0.7264771461486816, -0.9500182271003723, -0.3281031847000122, -0.3105325400829315, -0.2736692726612091, 0.36539971828460693, -0.21582794189453125, -0.37535691261291504, 0.10274158418178558, 0.6795884370803833, -0.2655853033065796, -0.22052183747291565, 0.2903158664703369, -0.39003750681877136, 0.08796726167201996, -0.0006572197889909148, 0.261178582906723, 0.8686382174491882, 0.06753939390182495, 0.29998779296875, 0.22182293236255646, -0.4800364077091217, -0.2029394656419754, 0.056058064103126526, -0.5236003398895264, 0.5288424491882324, 0.5453641414642334, 0.33930665254592896, 0.3869882822036743, -0.9450286626815796, 0.6182611584663391, 0.08933249861001968, -0.4348417818546295, -0.574174165725708, -0.16676725447177887, 0.07808726280927658, 0.12597303092479706, 0.4376136064529419, -0.11279382556676865, 0.33351773023605347, -0.8232510685920715, 0.30978792905807495, 0.6097492575645447, -0.5614667534828186, -0.3446703851222992, 0.48609480261802673, 0.08398280292749405, -0.4679594933986664, 0.08206602185964584, -0.13240675628185272, -0.5825077295303345, 0.5250489115715027, -0.021903160959482193, 0.5696464776992798, -0.1260915845632553, 0.6516737341880798, 0.23892588913440704, 0.47518521547317505, 0.025230901315808296, 0.08079889416694641, -0.1505679488182068, -0.7765224575996399, -0.6042302846908569, -0.18744616210460663, -0.2842629551887512, 0.3347899913787842, -0.8222332000732422, 0.47950267791748047, -0.5901457667350769, -0.4839208424091339, 0.2585206627845764, -0.06191681697964668, -0.24345937371253967, -0.028400719165802002, 0.3574881851673126, 0.717100203037262, -0.7219115495681763, 0.3937361240386963, 0.5791702270507812, -0.4590991139411926, -0.26577499508857727, 0.48559749126434326, 0.43303239345550537, -0.7157933712005615, 0.10785427689552307, 0.23547731339931488, -0.12223431468009949, 0.09580454975366592, -0.4873254895210266, -0.9451026916503906, 0.4313974976539612, 0.34256038069725037, -0.4615507125854492, 0.01969069242477417, 0.15548959374427795, 0.39543667435646057, 0.20248983800411224, 0.12499929964542389, 0.8762152194976807, 0.6394939422607422, 0.12099696695804596, -0.5641405582427979, 0.05791808292269707, 0.13039585947990417, -0.36000436544418335, 0.3462841808795929, -0.9736621975898743, 0.21514593064785004, 0.06159790977835655, -0.5300533771514893, -0.594843327999115, 0.42446404695510864, -0.09291210770606995, 0.40572717785835266, 0.4967336654663086, 0.43706732988357544, 0.575879693031311, -0.24046427011489868, 0.9785625338554382, -0.06649523973464966, 0.31233856081962585, 0.9672513604164124, -0.09799408167600632, 0.5472838282585144, 0.6350859999656677, -0.16572818160057068, 0.5962463021278381, 0.44092878699302673, -0.09704070538282394, 0.4751572608947754, 0.09582453221082687, 0.18203262984752655, -0.16577063500881195, -0.3891712427139282, -0.018031030893325806, 0.24362744390964508, 0.68019038438797, -0.08238037675619125, -0.494329035282135, -0.004950891248881817, 0.2496679723262787, 0.49507269263267517, -0.39662086963653564, 0.8934112191200256, 0.20990926027297974, -0.9601062536239624, 0.7183341979980469, 0.1374899446964264, 0.5389722585678101, -0.6115737557411194, 0.0015620447229593992, -0.22577445209026337, 0.1448613554239273, -0.33910897374153137, -0.9193142652511597, 0.7043834328651428, 0.03875712677836418, 0.17875447869300842, -0.1362142264842987, 0.6148694157600403, -0.32031404972076416, -0.2535838484764099, 0.23391228914260864, 0.5405721068382263, -0.07630957663059235, -0.3330841064453125, -0.7904736995697021, 0.019147220999002457, 0.11994830518960953, -0.18655741214752197, 0.21934571862220764, 0.5791891813278198, -0.14785830676555634, 0.8271956443786621, 0.6045517921447754, 0.21599330008029938, 0.013732940889894962, 0.14750775694847107, 0.879828155040741, -0.6559396386146545, -0.32664695382118225, -1.1460505723953247, 0.21291901171207428, -0.5881249308586121, -0.5238280296325684, 1.0329896211624146, 0.5175731778144836, 1.143302083015442, 0.32809045910835266, 0.7226423025131226, -0.18186618387699127, 0.6591426134109497, -0.2546830475330353, 0.42779695987701416, -0.6063404679298401, 0.18659092485904694, -0.3813658356666565, -0.6696434020996094, -0.17134612798690796, 0.7370865345001221, -0.5842918753623962, -0.19167004525661469, 0.7652954459190369, 0.6459147334098816, 0.03519073873758316, 0.17894434928894043, 0.27437224984169006, 0.4398592412471771, 0.3139120042324066, 0.1172315701842308, 0.8727152943611145, -0.3207038342952728, 0.9954273104667664, -0.1256338655948639, -0.09645459800958633, -0.32922086119651794, -0.7402754426002502, -0.9682052135467529, -0.6329781413078308, -0.5911460518836975, -0.7209931015968323, -0.03774282708764076, 0.7116479277610779, 0.5109495520591736, -0.7348918914794922, 0.08364004641771317, -0.1507284790277481, 0.6700699925422668, -0.35321059823036194, -0.3116300106048584, 0.2424742430448532, -0.3267671465873718, -1.0346753597259521, -0.08642216771841049, 0.2362564653158188, -0.30133357644081116, -0.6151750683784485, 0.3804531991481781, -0.552259624004364, 0.5561171174049377, 0.5327663421630859, 0.3102557957172394, -0.6971229910850525, -0.03410825505852699, -0.3062482178211212, 0.19360016286373138, 0.15815407037734985, 0.8865216970443726, -0.8459351658821106, 0.27862676978111267, 0.5104274153709412, 0.6718953251838684, 0.5235417485237122, 0.5025061368942261, 0.4748041331768036, -0.9546098113059998, 0.23935171961784363, 0.5512179732322693, 0.22128142416477203, 0.6270841360092163, 0.03558681905269623, 0.46694138646125793, 0.6572431325912476, -0.10447414964437485, -1.0822056531906128, 0.4519442319869995, -0.6916631460189819, -0.38903138041496277, 1.14649498462677, 0.08277823776006699, -0.36385127902030945, -0.6273931264877319, -0.30931612849235535, -0.040880415588617325, -0.4260372817516327, 1.2774767875671387, 0.8921350240707397, 0.31037265062332153, 0.005352065432816744, -0.6117819547653198, 0.708604097366333, 0.4261215031147003, -0.6090378165245056, 0.038294240832328796, 0.5426375269889832, 0.33012962341308594, 0.27656102180480957, 0.409079372882843, 0.09652487188577652, 0.22648078203201294, -0.0684145912528038, -0.2122577428817749, 0.29947397112846375, 0.10142295062541962, 0.15399156510829926, 0.24822428822517395, -0.35057222843170166, -0.15096770226955414 ]
http://arxiv.org/abs/2402.09923v1
http://arxiv.org/pdf/2402.09923v1
A Dataset of Open-Domain Question Answering with Multiple-Span Answers
2024-02-15T13:03:57
2024-02-15T13:03:57
Zhiyi Luo, Yingying Zhang, Shuyun Luo, Ying Zhao, Wentao Lyu
cs.CL
cs.CL, cs.AI
Multi-span answer extraction, also known as the task of multi-span question answering (MSQA), is critical for real-world applications, as it requires extracting multiple pieces of information from a text to answer complex questions. Despite the active studies and rapid progress in English MSQA research, there is a notable lack of publicly available MSQA benchmark in Chinese. Previous efforts for constructing MSQA datasets predominantly emphasized entity-centric contextualization, resulting in a bias towards collecting factoid questions and potentially overlooking questions requiring more detailed descriptive responses. To overcome these limitations, we present CLEAN, a comprehensive Chinese multi-span question answering dataset that involves a wide range of open-domain subjects with a substantial number of instances requiring descriptive answers. Additionally, we provide established models from relevant literature as baselines for CLEAN. Experimental results and analysis show the characteristics and challenge of the newly proposed CLEAN dataset for the community. Our dataset, CLEAN, will be publicly released at zhiyiluo.site/misc/clean_v1.0_ sample.json.
[ -0.4085889160633087, -0.7461110949516296, 0.1475846767425537, 0.06912163645029068, 0.09824573248624802, -0.259633868932724, -0.12887690961360931, -0.4819726049900055, 0.05171821266412735, 0.3877733051776886, -0.688667893409729, -0.26059240102767944, -0.09844973683357239, 0.12999336421489716, -0.21859478950500488, 1.0315501689910889, -0.1446077674627304, -0.016736680641770363, 0.13566820323467255, -0.2783687114715576, -0.40922221541404724, -0.24999423325061798, -0.6078556776046753, 0.2933386564254761, 0.6377972364425659, 0.45913004875183105, 0.551328182220459, 0.6155585050582886, 0.13833275437355042, 0.18631745874881744, 0.11408834159374237, 0.6282323002815247, -0.1476772278547287, 0.10574983805418015, 0.00892164371907711, -0.13017600774765015, -0.30948707461357117, 0.1351422220468521, 0.587942361831665, 0.7598920464515686, -0.1806631237268448, 0.4843252897262573, -0.013982162810862064, 0.30935442447662354, -0.9296332597732544, -0.2276613712310791, -0.691206693649292, -0.14521338045597076, -0.40735042095184326, -0.003055562498047948, -0.23561447858810425, -0.4902326762676239, -0.09931593388319016, -0.9610036015510559, 0.08816810697317123, -0.13164207339286804, 1.461633563041687, 0.09922392666339874, -0.8125306963920593, 0.06614066660404205, -0.5270487666130066, 0.7909958958625793, -0.6274026036262512, 0.045012857764959335, 0.23845970630645752, 0.5607708096504211, 0.20909419655799866, -0.6518762707710266, -0.42542603611946106, 0.45066869258880615, -0.09334075450897217, 0.44990530610084534, 0.062150392681360245, -0.10533305257558823, 0.0009167917887680233, 0.34859392046928406, -0.538080632686615, -0.14234770834445953, -0.828278124332428, -0.3495508134365082, 0.6738914251327515, 0.3522088825702667, 0.643671989440918, -0.2491445392370224, -0.863281786441803, 0.33237335085868835, -0.7379488348960876, 0.5227440595626831, 0.14590799808502197, 0.6003494262695312, 0.19252797961235046, 0.5806750059127808, -0.557349681854248, 0.4703253507614136, -0.5159958600997925, -0.05372285470366478, 0.4108686149120331, -0.799707293510437, -0.28365424275398254, -0.2389514148235321, 0.6887788772583008, 0.12217968702316284, 0.46561068296432495, 0.08848211914300919, -0.24026772379875183, -0.3409378230571747, 0.23405423760414124, -0.8749260306358337, -0.4749675691127777, 0.6904330849647522, -0.5032575726509094, 0.08083398640155792, 0.32625487446784973, -0.7170459628105164, -0.3491051197052002, -0.3294583261013031, 0.3577282428741455, -0.3824036419391632, -0.5560694336891174, 0.2658809721469879, -0.2864217758178711, 0.37048792839050293, 0.6424432396888733, -0.4774022102355957, 0.26471126079559326, 0.43298348784446716, 0.49480941891670227, -0.04188285395503044, -0.3320353627204895, -0.778932511806488, 0.016904955729842186, -0.397636353969574, 0.5499715209007263, -0.10371343046426773, 0.3104735314846039, 0.13568216562271118, 0.022445615381002426, -0.34184515476226807, -0.6938961148262024, 0.6317745447158813, -0.5667478442192078, 0.39223918318748474, -0.4982590973377228, -0.26916149258613586, -0.09060689061880112, 0.36259007453918457, -0.9805706739425659, 1.2658954858779907, -0.281189888715744, -0.7912986874580383, 0.42052972316741943, -0.6571741700172424, -0.28203150629997253, 0.016628220677375793, 0.07518590986728668, -0.23284727334976196, -0.19048187136650085, 0.445993572473526, 0.3307105600833893, 0.0705043375492096, 0.3176599442958832, -0.36022090911865234, -0.46123966574668884, 0.08363614231348038, -0.5489120483398438, 1.2766903638839722, 0.6321039795875549, 0.0013433486456051469, 0.22814011573791504, -0.5875760316848755, 0.41635462641716003, -0.03826376423239708, -0.3846016526222229, -0.5009925961494446, -0.1203983798623085, 0.042272988706827164, 0.6844460368156433, 0.34098926186561584, -0.717517077922821, -0.024683479219675064, -0.01688094064593315, 0.13195639848709106, 0.790806770324707, 0.056573763489723206, -0.14690633118152618, -0.4791979491710663, 0.23806193470954895, 0.13733841478824615, 0.11402052640914917, -0.4812508523464203, -0.4351693093776703, -0.48196062445640564, -0.7610152959823608, 0.16488970816135406, 0.4577849805355072, -0.8302962779998779, 0.05966152995824814, -0.2622782289981842, -0.3288089632987976, -0.8982190489768982, 0.038384586572647095, 0.5529769062995911, 0.26091793179512024, 0.7686260938644409, 0.2963862419128418, -0.2051251381635666, -0.9881131649017334, -0.37849414348602295, 0.2744755148887634, -0.3556695282459259, 0.30738168954849243, 0.6416810750961304, 0.6102308034896851, 0.8184957504272461, -0.7851249575614929, -0.24477916955947876, 0.032749008387327194, -0.10817399621009827, 0.05110721290111542, 0.11400727182626724, 0.1835155040025711, -0.9871881604194641, -0.30934280157089233, -0.1600969284772873, -0.7487168312072754, 0.10550620406866074, 0.01687009632587433, -0.3943832814693451, -0.37119704484939575, 0.411731481552124, -0.38931477069854736, 0.13835442066192627, 0.3117738962173462, -0.3012625575065613, 0.9638704657554626, 0.17215514183044434, 0.31472229957580566, -1.2409886121749878, 0.63116854429245, 0.11008201539516449, 0.11547999829053879, -1.074454665184021, 0.3696233034133911, 0.37279725074768066, 0.1365678459405899, -0.7843849658966064, 0.5957218408584595, -0.42897072434425354, 0.06113502383232117, -0.06510400027036667, 0.43427249789237976, 0.35847872495651245, 0.5913366079330444, 0.03606726601719856, 0.9430760145187378, 0.14821328222751617, -0.6479291915893555, -0.037203360348939896, 0.44767144322395325, -0.09055135399103165, 0.2228206843137741, -0.8714098334312439, -0.07711635529994965, -0.17781779170036316, 0.0934954360127449, -1.1318795680999756, -0.35645732283592224, 0.020884593948721886, -0.3197457492351532, -0.17782163619995117, 0.1812310665845871, -0.5073282718658447, -0.26931706070899963, -0.6818796396255493, 0.3627461791038513, -0.09291323274374008, -0.6530760526657104, 0.042702656239271164, 0.2752366364002228, -0.1936805695295334, -1.0884697437286377, -0.2694622576236725, -0.3126713037490845, -0.16077803075313568, -0.721308708190918, 0.005147002171725035, -0.04004509001970291, -0.07063859701156616, -0.09214971214532852, -0.45493730902671814, -0.5918425917625427, 0.3682054877281189, -0.1361394077539444, 0.39247262477874756, -0.35393092036247253, 0.3860813081264496, 0.07388831675052643, 0.28253188729286194, 0.059753429144620895, 0.11112814396619797, 0.22812019288539886, -0.08028150349855423, -0.05031607300043106, -0.2209368199110031, 0.3763706088066101, 0.2858816087245941, -0.9238135814666748, 0.5716794729232788, 0.4778672158718109, -0.9303129315376282, -0.36045417189598083, 0.030756637454032898, 0.014871683903038502, -0.42813122272491455, 0.3738026022911072, -0.7306906580924988, -0.7455072402954102, 0.45451581478118896, 0.08134078979492188, 0.6738179922103882, 0.45126551389694214, 0.2695956230163574, -0.21191886067390442, 0.6681145429611206, 0.05498697608709335, 0.02899664081633091, -0.01025382149964571, 0.2611851692199707, -0.24157334864139557, -0.8386527299880981, -0.22219079732894897, -0.8740999102592468, 0.0358927845954895, -0.15492083132266998, -0.04060344770550728, 0.2011042684316635, 0.31487801671028137, -0.7518377304077148, 0.250042200088501, -0.3351553678512573, 0.3009342849254608, 0.6674025058746338, 0.29743021726608276, 0.4072496294975281, -0.39413607120513916, 0.006327278446406126, 0.18669389188289642, -0.22481946647167206, -0.5467216968536377, 0.8815922737121582, 0.16511473059654236, 0.32256603240966797, 0.3041459321975708, 0.43149855732917786, -0.0719834491610527, 0.13756337761878967, -0.32278013229370117, 0.2631942927837372, -0.2730599045753479, -1.1313055753707886, -0.7139852643013, -0.44504350423812866, -1.037569522857666, 0.7500125765800476, -0.11820715665817261, -0.7164542078971863, -0.3365147113800049, -0.1503799855709076, -0.49695339798927307, 0.4058164656162262, -0.3768908679485321, 0.9641927480697632, 0.03158760443329811, -0.13198304176330566, 0.6047452688217163, -0.9556700587272644, 0.9788766503334045, -0.1523849368095398, 0.26413944363594055, -0.330706387758255, 0.0628659799695015, 0.7295681238174438, -0.2643548846244812, 0.6526228785514832, -0.390910804271698, -0.2962202727794647, 0.3200366795063019, -0.18044805526733398, 0.0683101937174797, -0.07034068554639816, -0.05537934973835945, -0.013492287136614323, 0.36855408549308777, -0.6543022990226746, -0.22677373886108398, 0.3146636188030243, -0.7935822606086731, -0.34700867533683777, -0.0830899327993393, -0.4825074374675751, -0.39011460542678833, 0.5493084788322449, -0.019815336912870407, 0.4041418135166168, -0.13169613480567932, -0.012766683474183083, 0.7718703150749207, -0.47973814606666565, 0.4679628610610962, 0.2164802849292755, 0.018745871260762215, -0.33603739738464355, 0.665410578250885, 0.0013113482855260372, 0.34639212489128113, 0.3272240161895752, 0.06970753520727158, -0.3289753198623657, -0.18515022099018097, -0.7795469164848328, 0.1168503388762474, -0.631946861743927, -0.2694167494773865, -0.5656450390815735, -0.39819565415382385, -0.24039329588413239, 0.25135406851768494, -0.3543948233127594, -0.35922953486442566, -0.015692228451371193, -0.162563756108284, -0.11763254553079605, 0.44753769040107727, 0.32502058148384094, -0.19268469512462616, -0.980957567691803, 0.8924728035926819, -0.027021119371056557, 0.37213215231895447, -0.0972287729382515, -0.13102398812770844, -0.32616811990737915, 0.3642711043357849, -0.23024898767471313, -0.8451454639434814, 0.11755440384149551, 0.3739681839942932, 0.6355623602867126, 0.45651277899742126, 0.512868344783783, 0.7374793291091919, -0.5073477625846863, 1.0377016067504883, 0.006295889150351286, -0.8045140504837036, 0.43946364521980286, -0.4040755331516266, 0.3547966778278351, 0.8941788077354431, 0.5656222105026245, -0.8060104846954346, -0.3970176577568054, -0.1415470689535141, -0.8191603422164917, 0.6320244073867798, 0.11165159195661545, -0.012977704405784607, 0.1667415201663971, 0.10872449725866318, 0.34062719345092773, 0.2967208921909332, -0.47124314308166504, -0.5698997378349304, -0.36924824118614197, -0.12896282970905304, 0.3357013165950775, 0.2981491684913635, -0.33110737800598145, 0.1149403527379036, 0.558871865272522, -0.18059559166431427, 0.11859862506389618, 0.025356268510222435, 0.014643881469964981, 0.24600805342197418, 0.41773781180381775, 0.44643643498420715, 0.3679044842720032, -0.0024673198349773884, 0.26256299018859863, 0.01198508683592081, -0.44646283984184265, -0.03212811052799225, 0.19469362497329712, -0.26903748512268066, -0.11265743523836136, 0.19305886328220367, 0.05691276863217354, -0.25733980536460876, -0.6793671250343323, 0.7766210436820984, 0.0765010192990303, -0.503696858882904, -0.15501810610294342, -0.16523998975753784, 0.11962243914604187, -0.2832128703594208, 0.5420515537261963, 0.16628842055797577, 0.4784783720970154, -0.2599353790283203, 0.5735616683959961, 0.2929384112358093, -0.4883255958557129, -0.18527103960514069, 0.9631011486053467, 0.13877500593662262, 0.49781519174575806, 0.9810732007026672, 0.11153636127710342, -0.3742786645889282, 0.6258153915405273, 0.26297351717948914, 0.49003151059150696, -0.021279485896229744, 0.2444063276052475, 0.6778720021247864, 0.30797770619392395, 0.19833877682685852, 0.6884339451789856, 0.1101367399096489, -0.8702991008758545, -0.44179171323776245, -0.2993174195289612, -0.22792178392410278, 0.29377856850624084, -0.9181788563728333, 0.22507770359516144, -0.07870768755674362, 0.3006913959980011, 0.17180341482162476, 0.3182123303413391, -0.3849929869174957, 0.6664956212043762, 0.26500919461250305, 1.1846184730529785, -0.7950595617294312, 0.8766762614250183, 0.5831275582313538, -0.6652665138244629, -1.129988193511963, -0.07749291509389877, 0.20313216745853424, -0.4935087561607361, 0.20736147463321686, 0.5544089674949646, -0.0862099751830101, -0.5200170278549194, -0.6733279824256897, -0.7268469929695129, 1.1687061786651611, 0.042190853506326675, 0.37235236167907715, -0.05625591799616814, 0.11383181810379028, 0.3062448501586914, 0.06192079558968544, 0.3552301228046417, 0.18523381650447845, 0.5465194582939148, -0.28590911626815796, -1.0110048055648804, 0.4207632839679718, -0.7404539585113525, -0.37548941373825073, 0.2549278140068054, -0.9706131815910339, 1.0798544883728027, -0.1991240233182907, -0.5014758706092834, 0.3377247154712677, 0.6344597339630127, 0.6429301500320435, 0.3940134644508362, 0.3233283758163452, 0.09703068435192108, 1.0708866119384766, -0.3467906713485718, 0.5729910135269165, -0.13068115711212158, 0.1883341521024704, 1.2295769453048706, -0.4333434998989105, 0.9093700647354126, 0.25037533044815063, 0.05575141683220863, 0.2632960379123688, 0.7404645681381226, 0.03211308643221855, 0.4056694507598877, 0.521467924118042, -0.29891151189804077, -0.1938183754682541, -0.08000405877828598, -0.1994704008102417, 0.4605071246623993, 0.12064912915229797, 0.013929955661296844, -0.3918662369251251, -0.31120842695236206, 0.3574715256690979, 0.17229077219963074, -0.3166043758392334, 0.4789455533027649, -0.16025041043758392, -0.6980419158935547, 0.30755966901779175, 0.16534793376922607, 0.6550657749176025, -0.6427397131919861, -0.24982444941997528, -0.26441070437431335, -0.06657861173152924, -0.35910433530807495, -0.8760165572166443, 0.18288321793079376, -0.19025154411792755, -0.06204627454280853, -0.10606159269809723, 0.5881880521774292, -0.6223097443580627, 0.23158004879951477, -0.0019198240479454398, 1.0859180688858032, 0.2298254817724228, -0.172567218542099, -0.527586817741394, -0.6130594611167908, -0.10804528743028641, -0.41615134477615356, 0.12032988667488098, 0.6599723696708679, -0.20093655586242676, 0.5630673170089722, 0.6697183847427368, -0.15866020321846008, 0.45408642292022705, -0.03462746739387512, 0.7870806455612183, -0.5520492196083069, -0.21922847628593445, -0.28873029351234436, 0.8354596495628357, -0.17713573575019836, -0.7617970705032349, 0.8921793699264526, 0.8885456919670105, 0.7031044960021973, -0.016773859038949013, 0.9655676484107971, -0.006761899683624506, 0.6968214511871338, -0.36238449811935425, 0.7599396705627441, -0.8059327006340027, -0.07838119566440582, -0.21167512238025665, -0.37325790524482727, -0.30365633964538574, -0.2312743216753006, 0.3255312442779541, 0.12126871943473816, 0.5984305739402771, 0.5150283575057983, -0.054429005831480026, 0.31453150510787964, 0.30243736505508423, -0.19523124396800995, 0.33976614475250244, 0.7624946236610413, 0.7724791169166565, -0.6269974112510681, 0.8032318949699402, -0.18953828513622284, -0.10173384845256805, 0.4204743206501007, -0.4217197000980377, -0.6057835817337036, -0.6478708982467651, -0.03341250121593475, -0.3568742871284485, -0.030296893790364265, 0.6020991206169128, 0.6071329116821289, -1.0465562343597412, 0.051714107394218445, 0.5646751523017883, -0.11608006805181503, -0.7930997610092163, -0.28670424222946167, 0.8007183074951172, -0.5838661789894104, -0.8494129776954651, 0.26353099942207336, -0.15062440931797028, -0.47080332040786743, 0.17144402861595154, 0.223063126206398, -0.4543454647064209, 0.20209014415740967, 0.3990369737148285, 0.3689158260822296, -0.4390839636325836, -0.41961175203323364, 0.6235405206680298, -0.5159713625907898, 0.17829251289367676, 0.4841948449611664, -0.33735185861587524, 0.28422224521636963, 0.1667718142271042, 0.7441595196723938, 0.11963320523500443, 0.46028780937194824, 0.39055243134498596, -1.1260168552398682, -0.6763182282447815, -0.08396963030099869, 0.4374217689037323, -0.10140454769134521, -0.21169178187847137, 0.4987906217575073, -0.14067940413951874, -0.2738908529281616, -0.43977078795433044, 0.1677124947309494, -0.8920924067497253, -0.7097325325012207, 1.3214890956878662, -0.4779130220413208, 0.06785064935684204, -0.6659967303276062, -0.25199565291404724, 0.11075472086668015, -0.32795247435569763, 0.2495008409023285, 0.6285315155982971, -0.05510924011468887, -0.023144369944930077, -0.6726129651069641, 0.46485644578933716, 0.18137936294078827, -1.3611005544662476, 0.4517323672771454, 0.6590337157249451, 0.37975579500198364, 0.07023579627275467, 0.8752789497375488, -0.3449077308177948, 0.49342799186706543, 0.1359001249074936, 0.19975194334983826, -0.19346314668655396, -0.6784399151802063, -0.23051665723323822, 0.7400215268135071, -0.2596946656703949, -0.6878711581230164 ]
http://arxiv.org/abs/2402.09916v1
http://arxiv.org/pdf/2402.09916v1
BUSTER: a "BUSiness Transaction Entity Recognition" dataset
2024-02-15T12:39:57
2024-02-15T12:39:57
Andrea Zugarini, Andrew Zamai, Marco Ernandes, Leonardo Rigutini
cs.CL
cs.CL, cs.LG
Albeit Natural Language Processing has seen major breakthroughs in the last few years, transferring such advances into real-world business cases can be challenging. One of the reasons resides in the displacement between popular benchmarks and actual data. Lack of supervision, unbalanced classes, noisy data and long documents often affect real problems in vertical domains such as finance, law and health. To support industry-oriented research, we present BUSTER, a BUSiness Transaction Entity Recognition dataset. The dataset consists of 3779 manually annotated documents on financial transactions. We establish several baselines exploiting both general-purpose and domain-specific language models. The best performing model is also used to automatically annotate 6196 documents, which we release as an additional silver corpus to BUSTER.
[ -0.39084187150001526, -0.9068256616592407, 0.31575241684913635, 0.030131615698337555, -0.39777836203575134, 0.10284851491451263, 0.16457104682922363, -1.1811610460281372, 0.2489619255065918, 0.8752423524856567, -0.003977129235863686, -0.20338957011699677, -0.6622126698493958, 0.234024316072464, -0.683488130569458, 1.3295822143554688, 0.2301565706729889, -0.23523147404193878, 0.043187592178583145, -0.11043399572372437, -0.8042418360710144, -0.46989232301712036, -1.100426435470581, -0.5497137904167175, 0.2630971372127533, -0.03284012898802757, 0.4148584008216858, 0.7385074496269226, 0.5572919845581055, 0.3601192831993103, -0.012907186523079872, 0.023973392322659492, -0.21247825026512146, -0.12405858188867569, -0.42982202768325806, -0.17852027714252472, -0.5308403372764587, -0.13329178094863892, 0.657841682434082, 0.9240999817848206, -0.16003641486167908, 0.1995193213224411, -0.316886305809021, 0.7524036169052124, -0.4033541679382324, 0.3843117952346802, -0.3737608790397644, -0.20384730398654938, -0.5296033620834351, 0.2530563771724701, -0.6793754696846008, -0.30196207761764526, 0.2996441125869751, -0.4173017740249634, 0.13695858418941498, 0.33082008361816406, 1.4213026762008667, -0.025076165795326233, -0.732418954372406, -0.4827735424041748, -1.037074327468872, 0.3924884796142578, -0.13132837414741516, 0.43387526273727417, 0.34904295206069946, 0.36773186922073364, -0.364841103553772, -0.8805339932441711, -0.204793781042099, 0.180507630109787, -0.44594672322273254, -0.05521196499466896, -0.7065229415893555, -0.1027635782957077, 0.4756801128387451, 0.24124109745025635, -0.2600095272064209, 0.16655340790748596, -0.7158268690109253, -0.32216987013816833, 0.5857186913490295, 0.19810548424720764, -0.24635249376296997, 0.01892939582467079, -0.3495073914527893, 0.0878102257847786, -0.4050367474555969, 0.20588316023349762, 0.19719402492046356, 0.23769979178905487, 0.12387676537036896, 0.1867261528968811, -0.09133075177669525, 1.2482320070266724, 0.17456163465976715, -0.36822548508644104, 0.2820282578468323, -0.04895607382059097, -0.7019327878952026, 0.43852698802948, 0.34873059391975403, 0.044689226895570755, 0.11330999433994293, -0.36450883746147156, -0.3895460367202759, 0.04166925325989723, 0.4506065249443054, -0.7320399284362793, -0.19523538649082184, 0.37575292587280273, -0.2709363102912903, 0.03327401727437973, 0.3271985352039337, -0.6607840061187744, -0.733493447303772, -0.8104231953620911, 0.26797574758529663, -0.34498336911201477, -0.1782916933298111, 0.1454688459634781, -0.5028049349784851, 0.21903389692306519, 0.3395671248435974, -0.5479217767715454, 0.3638038635253906, 0.9532409310340881, 0.6115927696228027, 0.30809852480888367, 0.017455628141760826, -0.7138137221336365, 0.7544357180595398, -0.5826650857925415, 1.0412546396255493, -0.45583534240722656, -0.29517561197280884, -0.2199225127696991, -0.019243551418185234, 0.06092270091176033, -0.9727891683578491, 0.46423104405403137, -0.43240225315093994, -0.1731623113155365, -0.08092297613620758, -0.8734513521194458, -0.07784613966941833, 0.32472917437553406, -0.8269951343536377, 0.6125398874282837, 0.29565584659576416, -0.7164366245269775, 0.8970013856887817, -0.5616133213043213, -0.65107661485672, 0.6129837036132812, -0.10887806117534637, -0.5904448628425598, 0.1629783809185028, -0.18899644911289215, 0.38686126470565796, -0.2688256502151489, 0.4674528241157532, 0.009273369796574116, -0.5512503981590271, 0.4474314749240875, -0.03809240832924843, 0.9155059456825256, 0.04425227269530296, 0.035822607576847076, -0.4739346504211426, -1.181704044342041, -0.6354500651359558, 0.12277143448591232, -0.3360409438610077, -0.8065001964569092, -0.23868083953857422, -0.12330760806798935, -0.14729389548301697, 0.24438029527664185, -0.5456497669219971, 0.42850732803344727, -0.24542078375816345, 0.12749657034873962, 0.7180656790733337, 0.16916649043560028, 0.030651293694972992, -0.3425474166870117, 0.19890283048152924, 0.4943718910217285, -0.03554338589310646, 0.06613148003816605, -0.4736156165599823, -0.7841812372207642, -0.8112047910690308, 0.6425945162773132, 0.5958955883979797, -0.25231650471687317, 0.5309486389160156, -0.43582117557525635, -0.5467230677604675, -0.6880791187286377, -0.04330599308013916, 0.11368672549724579, 0.8817096948623657, 0.21743392944335938, -0.45257842540740967, -0.7437555193901062, -1.3311635255813599, -0.36209380626678467, -0.2582807242870331, -0.0963430106639862, 0.19764353334903717, 0.28078410029411316, -0.6696394681930542, 1.0955405235290527, -0.568496584892273, -0.6258631348609924, -0.16464151442050934, 0.6748456358909607, 0.4410172998905182, 0.3242875635623932, 0.44753846526145935, -0.8101299405097961, -0.25531190633773804, 0.15660186111927032, -0.4826866090297699, 0.0027085174806416035, -0.6199208498001099, -0.3780582845211029, 0.5468401312828064, 0.551040768623352, -0.3857038915157318, 0.642765462398529, -0.12677717208862305, -0.5687291622161865, 0.22016550600528717, -0.03966926410794258, -0.15742796659469604, -1.0216467380523682, 0.31527042388916016, 0.16290955245494843, -0.552361249923706, -0.8009101152420044, -0.6145145297050476, 0.24780584871768951, -0.007088277488946915, -0.021073991432785988, 0.49345162510871887, -0.36050504446029663, -0.34772059321403503, -0.1275724619626999, 0.09048053622245789, 0.2599915564060211, 0.1295868307352066, 0.1866724193096161, 0.4579869210720062, 0.6090701222419739, -0.8604112267494202, 0.4403128921985626, 0.41732674837112427, -0.3404221534729004, 1.302230954170227, -0.3257068395614624, 0.030082665383815765, -0.358916699886322, 0.08675700426101685, -0.4853367209434509, -0.16033650934696198, 0.23430417478084564, -0.17318597435951233, 0.6337761282920837, -0.724007248878479, -0.5347950458526611, -0.23192454874515533, 0.17249862849712372, -0.16524532437324524, 0.37479496002197266, -0.4197395443916321, 0.9674437046051025, 0.594961941242218, 0.023125767707824707, -0.44785070419311523, -0.7037166357040405, 0.4779997169971466, -0.32141444087028503, -0.33631280064582825, 0.14124102890491486, 0.45483067631721497, -0.3263600766658783, 0.15436942875385284, -0.13217981159687042, -0.1946369856595993, 0.2635917067527771, 0.21714036166667938, 0.6061893701553345, 0.14492662250995636, 0.16355763375759125, -0.2909175157546997, -0.5007115602493286, 0.20438911020755768, -0.44351232051849365, 0.08229922503232956, -0.09742554277181625, 0.18487423658370972, -0.049267321825027466, 0.28160202503204346, 0.2519093453884125, -0.1921369582414627, 0.7952288389205933, 0.5281393527984619, -0.8404247760772705, -0.046632587909698486, -0.5926346778869629, 0.41108438372612, -0.4976746737957001, 0.05528969317674637, -0.4574469029903412, -0.47936776280403137, 0.4508054852485657, -0.22202475368976593, 0.21203197538852692, 0.3344316780567169, 0.43887731432914734, 0.020237604156136513, 0.5045883655548096, 0.6454651355743408, -0.2870507538318634, 0.5094926953315735, -0.14546532928943634, 0.8610824346542358, -0.5300385355949402, -0.44969895482063293, -0.7148242592811584, -0.19898562133312225, -0.44217807054519653, 0.1175537258386612, 0.23456907272338867, 0.10038785636425018, -0.05593115836381912, 0.7862448692321777, -0.2940375804901123, 0.5320173501968384, 0.4758871793746948, -0.40348151326179504, 0.3308902382850647, -0.11819253861904144, 0.07673141360282898, 0.1526816040277481, -0.003124762326478958, -0.4841979742050171, 0.6232550740242004, 0.14637407660484314, 0.6650739908218384, 0.24688774347305298, 0.8076277375221252, 0.46872761845588684, 0.4944503605365753, -0.5687239766120911, 0.5341808795928955, -0.09651771932840347, -0.8983131647109985, 0.03386655077338219, -0.771346390247345, -1.489962100982666, -0.2297128587961197, -0.07799600809812546, -0.9584786891937256, 0.396726131439209, 0.15191777050495148, -0.13290496170520782, 0.09373672306537628, -0.9643163681030273, 0.8920777440071106, 0.06071578338742256, -0.2265917956829071, 0.1831321269273758, -0.3612559139728546, 0.26099586486816406, -0.257791131734848, 0.34340235590934753, -0.15654219686985016, 0.08919604867696762, 0.5735728144645691, -0.2335653156042099, 0.5424988269805908, -0.15801919996738434, -0.030815405771136284, 0.30482980608940125, 0.3369755744934082, 0.5596565008163452, 0.10563403367996216, 0.23619574308395386, 0.2123904526233673, 0.04336027428507805, -0.4264298975467682, -0.42206838726997375, 0.2096177488565445, -0.21009321510791779, -0.2407887727022171, -0.8699620962142944, -0.2432687133550644, -0.1921486258506775, 0.3618590533733368, 0.05367221310734749, 0.5916759967803955, -0.0775008574128151, 0.08059781789779663, 0.3907667100429535, 0.2948056161403656, 0.45916685461997986, 0.8616905212402344, -0.12083064019680023, -0.1747250258922577, 1.0377451181411743, 0.47511765360832214, -0.20427305996418, 0.12635698914527893, -0.17545688152313232, -0.3930928111076355, -0.396597683429718, -0.6506651639938354, 0.29835450649261475, -0.7475964426994324, -0.5618308782577515, -0.6086544394493103, -0.09896288812160492, -0.500599205493927, -0.3495377004146576, -0.20017215609550476, -0.24708566069602966, -0.21586322784423828, -0.25136303901672363, 0.3571002781391144, 0.9308204650878906, -0.053880464285612106, -0.15712790191173553, -0.9934069514274597, 0.5461757779121399, 0.1945878267288208, 0.7533938884735107, -0.25745412707328796, -0.22910939157009125, -0.6790323853492737, -0.3495679795742035, 0.11329429596662521, -0.7849609851837158, 0.3060195744037628, 0.07390838116407394, 0.464083194732666, 0.7017797827720642, 0.011629140004515648, 1.0140104293823242, -0.10583052784204483, 0.3263571858406067, -0.02565818466246128, -0.9712482690811157, 0.4630158543586731, -0.06339409202337265, -0.0991181805729866, 0.6257836222648621, 0.5275716185569763, -0.7639446258544922, -0.2758788466453552, -0.8451716899871826, -0.8412452936172485, 0.7223209738731384, 0.08102241903543472, -0.28271403908729553, -0.09010061621665955, 0.46583792567253113, 0.07044163346290588, 0.3360154330730438, -0.5719773769378662, -0.07049351930618286, 0.07521897554397583, -0.17787352204322815, 0.27530014514923096, 0.08811521530151367, -0.013729862868785858, -0.2135322391986847, 0.8707807064056396, 0.18098841607570648, 0.14837104082107544, -0.026956617832183838, -0.17288726568222046, 0.05298212170600891, 0.056738149374723434, -0.021036988124251366, 0.7242858409881592, -0.4093893766403198, 0.024921797215938568, -0.06442220509052277, -0.7731055021286011, 0.07580865919589996, 0.49135762453079224, -0.4098479449748993, 0.016056735068559647, 0.2980840504169464, 0.666752278804779, -0.18635571002960205, -0.8264144659042358, 0.20482516288757324, -0.20128832757472992, 0.19048888981342316, -0.7354711294174194, 0.028635041788220406, -0.028343239799141884, 0.13937166333198547, 0.26888856291770935, 0.0622883141040802, 0.5266106128692627, -0.7000236511230469, 0.1587623506784439, 0.013596780598163605, -0.30931004881858826, 0.008884446695446968, 0.2785879373550415, 0.0763215497136116, -0.3578141927719116, 0.9110687971115112, -0.7151791453361511, -0.16281558573246002, 0.5478549003601074, 0.4716639816761017, 0.7861447334289551, 0.24901708960533142, -0.12652629613876343, 0.3986963629722595, 0.33321765065193176, -0.1953926384449005, 0.06767908483743668, 0.21487216651439667, -0.5805515050888062, -0.2278810292482376, -0.6101289391517639, -0.6184171438217163, 0.16299909353256226, -0.8437050580978394, 0.6420542597770691, -0.5947136282920837, -0.41785380244255066, 0.48492613434791565, 0.09614256769418716, -0.6727416515350342, 0.18409773707389832, 0.23752373456954956, 0.5683435797691345, -0.6885678172111511, 0.8488616943359375, 0.7121163010597229, -0.45836347341537476, -0.3798905909061432, -0.3671892583370209, -0.010935642756521702, -0.27946051955223083, 0.285709410905838, 0.4810708463191986, 0.20510482788085938, -0.08029952645301819, -0.30914127826690674, -0.4937053918838501, 0.8398610949516296, 0.30193012952804565, -0.6429556012153625, 0.13780458271503448, 0.26109427213668823, 0.5206568241119385, -0.228458434343338, -0.28089895844459534, 1.3105343580245972, 0.4927431344985962, -0.03823783993721008, -0.5436757802963257, -0.3063586950302124, -0.3062650263309479, -0.1862802952528, 0.717808723449707, -0.483812153339386, 0.6741604208946228, 0.43383079767227173, -0.11873161792755127, -0.6469442248344421, 0.4382990896701813, 0.10201064497232437, 0.5936310887336731, 0.5651333332061768, 0.9014171957969666, 1.056350827217102, -0.32232677936553955, 0.9965947866439819, 0.058566924184560776, 0.06789929419755936, 1.0777286291122437, -0.5165108442306519, 0.4828375577926636, 0.11110983788967133, -0.06583001464605331, 0.6009290218353271, 0.4002416431903839, -0.47300422191619873, -0.04974306374788284, 0.2783829867839813, -0.09089307487010956, -0.1062304675579071, -0.3264181911945343, 0.11619048565626144, 0.41367751359939575, 0.6217080354690552, -0.06279107183218002, 0.06243213638663292, -0.19118955731391907, 0.35700175166130066, -0.233298197388649, -0.45976632833480835, 1.1046653985977173, -0.08476661145687103, -0.562190592288971, 0.15965799987316132, 0.27697208523750305, 0.3879735767841339, -0.7264191508293152, -0.11711912602186203, -0.39684152603149414, 0.23046423494815826, -0.2132393717765808, -0.493974894285202, 0.6534369587898254, 0.2799994945526123, 0.005241746548563242, -0.1600375473499298, 1.0092447996139526, -0.19284260272979736, -0.6178930997848511, 0.3246017396450043, -0.03849887475371361, 0.3584107756614685, -0.0369301401078701, -0.3775571286678314, -0.11527558416128159, -0.35258471965789795, -0.0478220097720623, 0.2950732409954071, 0.8069787621498108, -0.24871760606765747, 0.386984646320343, 0.45745009183883667, 0.003868176368996501, -0.07690563797950745, 0.025496263056993484, 0.6700924038887024, -0.9584032893180847, -0.5863440036773682, -0.6232925653457642, 0.45936504006385803, -0.5083510875701904, -0.32009589672088623, 0.42721495032310486, 0.9415097832679749, 0.9261448383331299, 0.2229442000389099, 0.5528172850608826, -0.09743878990411758, 0.8204517960548401, -0.27247291803359985, 0.36383581161499023, -0.19574372470378876, 0.16486594080924988, -0.3308453857898712, -0.6937227249145508, -0.18885131180286407, 0.6979745030403137, -0.040607351809740067, -0.16565102338790894, 0.3121936619281769, 0.385541170835495, -0.10047938674688339, 0.050594352185726166, 0.13170932233333588, 0.29946163296699524, 0.3912009000778198, 0.42377445101737976, 0.38673874735832214, -0.37151092290878296, 0.6620952486991882, -0.2921237051486969, 0.11633283644914627, -0.4857269525527954, -0.9326598644256592, -0.9200579524040222, -0.562493085861206, -0.7020847797393799, -0.57054203748703, -0.30924731492996216, 0.96659916639328, 0.39421772956848145, -0.7409119009971619, -0.16652686893939972, 0.12475522607564926, 0.02068195305764675, -0.38714686036109924, -0.1826283186674118, 0.1785680055618286, -0.1674661636352539, -0.6480860710144043, 0.18202956020832062, 0.6063228845596313, 0.5680361986160278, 0.04263855889439583, 0.3073555827140808, -0.08710373938083649, 0.4230779707431793, 0.44245681166648865, 0.31750479340553284, 0.04060135409235954, -0.17678958177566528, -0.370121568441391, -0.1273311972618103, 0.12818995118141174, 0.9343771934509277, -0.776972770690918, 0.3554006814956665, 0.1567976474761963, 0.8170878291130066, 0.6476160287857056, 0.11955134570598602, 0.22273382544517517, -0.8901498317718506, 0.3680435121059418, 0.2999803125858307, 0.5171480178833008, 0.4064434766769409, -0.48711130023002625, 0.8305978178977966, 0.4769076406955719, -0.2886792719364166, -0.8696866631507874, 0.06981996446847916, -1.0093895196914673, -0.29695388674736023, 0.6061321496963501, -0.016954220831394196, -0.32440394163131714, -0.9614145159721375, -0.22621287405490875, 0.13422386348247528, -0.4330427646636963, 0.7286571860313416, 0.8602573871612549, -0.12060123682022095, 0.16169330477714539, -0.5156453251838684, 0.3856310546398163, -0.06838981062173843, -0.8645954132080078, 0.2562302052974701, 0.8560989499092102, 0.019081970676779747, 0.21259120106697083, 0.8524193167686462, -0.14768438041210175, 0.2638060748577118, 0.11812260746955872, -0.01994505524635315, -0.2325407862663269, -0.46902719140052795, -0.3864609897136688, -0.0010126871056854725, 0.11312967538833618, 0.21137070655822754 ]
http://arxiv.org/abs/2402.09911v1
http://arxiv.org/pdf/2402.09911v1
Enhancing Large Language Models with Pseudo- and Multisource- Knowledge Graphs for Open-ended Question Answering
2024-02-15T12:20:02
2024-02-15T12:20:02
Jiaxiang Liu, Tong Zhou, Yubo Chen, Kang Liu, Jun Zhao
cs.CL
cs.CL, cs.AI
Mitigating the hallucinations of Large Language Models (LLMs) and enhancing them is a crucial task. Although some existing methods employ model self-enhancement techniques, they fall short of effectively addressing unknown factual hallucinations. Using Knowledge Graph (KG) enhancement approaches fails to address the generalization across different KG sources and the enhancement of open-ended answer questions simultaneously. To tackle these limitations, there is a framework that combines Pseudo-Graph Generation and Atomic Knowledge Verification proposed. The enhancement of LLM using KG in an open-ended question-answering setting is implemented by leveraging the Pseudo-Graph Generation. Atomic Knowledge Verification utilizes atomic-level knowledge querying and verification to achieve generalizability under different KG sources. Compared to the baseline, this approach yields a minimum improvement of 11.5 in the ROUGE-L score for open-ended questions. For precise questions, we observe a minimum accuracy improvement of 7.5. Moreover, there is also demonstration that this framework exhibits generalizability across different KG sources. In summary, our results pave the way for enhancing LLMs by incorporating Pseudo- and Multisource-KGs, particularly in the context of open-ended questions.
[ -0.4630592167377472, -1.1498769521713257, 0.8501744866371155, -0.34960901737213135, -0.16214080154895782, 0.1417301744222641, -0.29263317584991455, -0.39214593172073364, 0.18415091931819916, 0.7308393716812134, -0.22310613095760345, -0.575080931186676, -0.30780330300331116, 0.30961108207702637, -0.1507435142993927, 0.8679898381233215, 0.020927367731928825, -0.09827034920454025, -0.37210604548454285, -0.06675761193037033, -0.10331327468156815, -0.5936963558197021, -0.5348418951034546, -0.2243911623954773, 0.376573771238327, 0.26998022198677063, 0.948004961013794, 0.48141545057296753, 0.2858585715293884, 0.35493946075439453, -0.03010173887014389, 0.7489272356033325, -0.6712554097175598, 0.11108804494142532, -0.11464790999889374, -0.3168661892414093, -0.6241270899772644, -0.359279990196228, 0.73562091588974, 0.7446594834327698, 0.03619527071714401, -0.06903502345085144, -0.17455343902111053, 0.5571331977844238, -0.739703357219696, 0.1717953234910965, -0.5232399702072144, -0.2609722316265106, 0.0330316461622715, -0.163715660572052, -0.5098013281822205, -0.45313501358032227, -0.04217865690588951, -0.5521525144577026, -0.13634242117404938, 0.21061357855796814, 0.7076237797737122, 0.12603095173835754, -0.406030535697937, -0.36456093192100525, -0.84452223777771, 0.46544718742370605, -0.6949635148048401, 0.6457589268684387, 0.48267173767089844, 0.3245738446712494, -0.15864689648151398, -0.9236705899238586, -0.6003575921058655, -0.5041794180870056, -0.3878505527973175, 0.07062559574842453, -0.26955753564834595, 0.34074679017066956, 0.31765618920326233, 0.49945196509361267, -0.7821940779685974, -0.08934857696294785, -0.24631647765636444, -0.5607790946960449, 0.43013447523117065, 0.17603512108325958, 0.6091272234916687, -0.21237188577651978, 0.06700652092695236, -0.21103739738464355, -0.7008755803108215, -0.1903838962316513, 0.4331202805042267, 0.3125733733177185, 0.14703251421451569, 0.7029807567596436, -0.4618920683860779, 1.0287835597991943, -0.28253990411758423, -0.060914769768714905, 0.24300701916217804, -0.5078874826431274, 0.019401811063289642, -0.01627972163259983, 0.6872296333312988, 0.3300948739051819, 0.502384603023529, -0.44570618867874146, -0.009535511955618858, -0.11608856916427612, 0.18303479254245758, -0.9919168949127197, -0.3482710123062134, 0.26903724670410156, -0.2784755229949951, 0.00376841495744884, 0.039982862770557404, -0.8371889591217041, -0.2950945794582367, -0.1814749538898468, 0.5324867963790894, -0.33515021204948425, -0.5093967318534851, 0.12120424956083298, -0.2647666931152344, -0.014161147177219391, 0.2340060919523239, -0.5036202073097229, 0.2577793002128601, 0.46873900294303894, 0.8040891289710999, 0.30253085494041443, -0.24682769179344177, -0.2921786308288574, 0.4518962502479553, -0.772253692150116, 0.7359297871589661, -0.4878596365451813, -0.2173561453819275, -0.13366058468818665, -0.3346714377403259, 0.13776397705078125, -0.6426758170127869, 0.13153861463069916, -0.8593726754188538, 0.27800530195236206, -0.46168798208236694, -0.5024431943893433, -0.11990084499120712, 0.4295717477798462, -0.5044830441474915, 1.0233787298202515, 0.4607107937335968, -0.7353355288505554, -0.10868920385837555, -0.696150004863739, -0.43817219138145447, 0.050043847411870956, -0.2191912978887558, -0.16163893043994904, -0.04206152260303497, 0.45839568972587585, 0.1929677575826645, -0.34359976649284363, -0.014033596962690353, -0.47947564721107483, -0.20632506906986237, 0.19340664148330688, -0.03440685197710991, 0.5450184941291809, 0.16355957090854645, -0.05002648010849953, 0.2881077527999878, -0.797012209892273, 0.3898065388202667, 0.16933339834213257, -0.045648496598005295, -0.518603503704071, -0.30831655859947205, -0.7275469303131104, 0.1383088380098343, 0.323569118976593, -0.4417080283164978, 0.012529900297522545, -0.6119385361671448, 0.4069165885448456, 0.8184618353843689, 0.28907185792922974, 0.3722595274448395, -0.3179260194301605, 0.5118008255958557, 0.058552514761686325, 0.04988986253738403, -0.02925172820687294, -0.381094366312027, -0.709950864315033, -0.28748831152915955, 0.1288130283355713, 0.443631112575531, -1.1189281940460205, 0.3538867235183716, -0.3409419655799866, -0.5746384263038635, -0.5938003659248352, 0.18353600800037384, 0.3896218538284302, 0.8502300381660461, 0.7930014133453369, -0.04671614244580269, -0.4782976806163788, -0.9288840293884277, -0.18149246275424957, -0.4512055516242981, 0.03712092339992523, 0.5571846961975098, 0.3387158513069153, -0.10748834908008575, 1.0789060592651367, -0.7930554151535034, -0.046964459121227264, -0.321272611618042, 0.012732507660984993, 0.1458366960287094, -0.003485508728772402, 0.34542685747146606, -0.6512801647186279, -0.5660445690155029, 0.09111281484365463, -0.9077185988426208, -0.14846721291542053, 0.2484218329191208, -0.18942713737487793, 0.08609501272439957, 0.5883684754371643, -0.6583566069602966, 0.20897050201892853, 0.3501873016357422, -0.2318853884935379, 0.8149183988571167, -0.26376041769981384, 0.40180885791778564, -1.0802512168884277, -0.029749492183327675, -0.23993481695652008, -0.30006396770477295, -0.8657131195068359, 0.27078914642333984, 0.1179809495806694, -0.09067103266716003, -0.265962153673172, 0.7150603532791138, -0.41783297061920166, -0.2027832567691803, -0.4796951711177826, 0.41433626413345337, -0.09049097448587418, 0.32167187333106995, 0.056777141988277435, 0.963086724281311, 0.6937535405158997, -0.6097583174705505, 0.43012353777885437, 0.044854309409856796, -0.3493671715259552, 0.34356018900871277, -0.5889590382575989, 0.4292745292186737, -0.41896894574165344, 0.22824031114578247, -1.0657051801681519, -0.19182495772838593, 0.35161086916923523, -0.48965245485305786, 0.11980601400136948, 0.007139881141483784, -0.6800301671028137, -0.5100488662719727, -0.25464335083961487, 0.3052583336830139, 0.6242993474006653, -0.5352795124053955, 0.8626207113265991, 0.02876933105289936, -0.01749420538544655, -0.6532992720603943, -0.33907032012939453, 0.05913807079195976, -0.040607064962387085, -0.7345508933067322, -0.010553929023444653, -0.33016204833984375, -0.5263378620147705, 0.18288080394268036, -0.06875347346067429, 0.10378289967775345, 0.0166767705231905, -0.22120216488838196, 0.26784053444862366, -0.44451645016670227, 0.18529744446277618, 0.17792390286922455, -0.08788827806711197, 0.10757705569267273, -0.3708157241344452, 0.7581616044044495, -0.10129740834236145, -0.19309179484844208, -0.25784897804260254, 0.1229873076081276, 0.4718848764896393, -0.3877478539943695, 0.8777372241020203, 0.33673417568206787, -0.29301345348358154, -0.44512131810188293, -0.5159095525741577, -0.6544005274772644, -0.5365824103355408, 0.6840524673461914, -0.607455313205719, -1.14251708984375, 0.592132568359375, -0.29805558919906616, -0.32088136672973633, 0.420453816652298, 0.6321997046470642, 0.11703354120254517, 1.0918693542480469, 0.23606041073799133, -0.0843646377325058, 0.016463570296764374, -0.08759244531393051, 0.5101626515388489, -0.8733522295951843, -0.08060896396636963, -0.5184895992279053, 0.15121594071388245, -0.27471724152565, -0.4017680585384369, 0.5988945364952087, 0.3605327606201172, -0.12674658000469208, 0.12725499272346497, -0.37378910183906555, 0.5931127071380615, 0.1346280723810196, 0.2084198296070099, 0.3886260986328125, -0.11262892186641693, -0.25664108991622925, 0.21870221197605133, -0.7401555180549622, -0.33335360884666443, 1.2788268327713013, 0.10835640132427216, 0.5325177311897278, 0.2972836196422577, 0.5477597713470459, 0.1725509911775589, 0.28064075112342834, -0.3933461904525757, 0.7881435751914978, 0.12133841961622238, -0.7006962299346924, -0.6680538058280945, -1.0387623310089111, -0.5821977257728577, 0.4649314880371094, -0.05268663913011551, -0.7927922606468201, -0.28653037548065186, 0.26541540026664734, -0.2706585228443146, 0.29906153678894043, -0.6056655049324036, 0.7620954513549805, -0.21050110459327698, -0.1613294631242752, -0.1817755550146103, -0.48325154185295105, 0.5025051832199097, -0.13713793456554413, 0.5093705058097839, 0.25492629408836365, 0.11638715863227844, 0.5523966550827026, -0.4774559438228607, 0.72087562084198, -0.18657264113426208, -0.22367091476917267, 0.47969746589660645, 0.16041739284992218, 0.7385717034339905, -0.07222548872232437, -0.15006102621555328, 0.0523623451590538, -0.22110502421855927, -0.16108070313930511, -0.9551355242729187, 0.6129440665245056, -0.9812828302383423, -0.8601313829421997, 0.010307209566235542, -0.7968290448188782, -0.4508037865161896, 0.487247496843338, -0.01574023626744747, 0.41242703795433044, 0.07424589991569519, 0.08130236715078354, 0.6770959496498108, -0.21128609776496887, 0.045482337474823, 0.448072612285614, -0.5205762386322021, -0.777003824710846, 0.9488247632980347, 0.20664465427398682, 0.6812503337860107, 0.2585611939430237, 0.4998075067996979, -0.6457884907722473, -0.6583219766616821, -0.5490122437477112, 0.6072090268135071, -1.0616286993026733, -0.19619083404541016, -0.8244926929473877, -0.35792461037635803, -0.9883633852005005, 0.10419555008411407, -0.1455271691083908, -0.3564276099205017, -0.1965426355600357, -0.26363182067871094, 0.42886611819267273, 0.5782592296600342, -0.18154796957969666, 0.2771986722946167, -0.6863681077957153, 0.7305195331573486, 0.45841744542121887, 0.24301697313785553, 0.27989423274993896, -0.5864099860191345, -0.2611874043941498, 0.12725301086902618, 0.10009299963712692, -1.0670104026794434, -0.027054812759160995, 0.10994381457567215, 0.6829767823219299, 0.4802643954753876, 0.4117469787597656, 0.9073095917701721, -0.42547109723091125, 0.6783801317214966, 0.08176768571138382, -0.9789423942565918, 0.48470377922058105, -0.2952382266521454, 0.11388793587684631, 0.37816840410232544, 0.6127386093139648, -0.45570480823516846, -0.8158367276191711, -0.47200584411621094, -0.6928533911705017, 0.6545960307121277, 0.18766474723815918, 0.11781714111566544, -0.15268643200397491, 0.6645243167877197, -0.2109183371067047, 0.12167412787675858, -0.8823319673538208, -0.38658270239830017, -0.34319233894348145, -0.20667168498039246, -0.17331229150295258, -0.25141441822052, -0.18454168736934662, -0.22707422077655792, 0.8499402403831482, -0.3103509545326233, -0.03471990302205086, 0.29987773299217224, -0.22654423117637634, -0.22600829601287842, 0.1849471777677536, 0.45876261591911316, 0.8672168850898743, -0.1519724726676941, 0.48216477036476135, 0.26603615283966064, -0.17446553707122803, -0.030765525996685028, -0.042535483837127686, -0.2573665380477905, -0.36587095260620117, 0.49423766136169434, 0.7846220135688782, -0.20449768006801605, -0.6092787384986877, 0.19708092510700226, 0.1831681728363037, -0.073025181889534, 0.05610219016671181, 0.24878185987472534, 0.25984489917755127, 0.2689405679702759, 0.2950451076030731, -0.5231250524520874, -0.01179785281419754, -0.7538295984268188, 0.21599043905735016, 0.5886092782020569, -0.0706288143992424, -0.1089891865849495, 0.4206659495830536, -0.24837905168533325, -0.30306869745254517, 0.8298901915550232, -0.3415725529193878, -0.6919377446174622, 0.4590547978878021, 0.8814617395401001, 0.4427349865436554, -0.42288386821746826, 0.20292387902736664, 0.6085258722305298, 0.5459215044975281, 0.10094378888607025, 0.36619868874549866, -0.13963079452514648, -0.9465341567993164, -0.35275086760520935, -0.5160226225852966, -0.41746440529823303, 0.23917348682880402, -0.49031418561935425, 0.18920613825321198, -0.3910001218318939, 0.011896359734237194, -0.2540954053401947, -0.07919905334711075, -0.069876529276371, 0.33858832716941833, -0.05016014724969864, 0.597396731376648, -0.8544551134109497, 0.7742285132408142, 0.6152359247207642, -0.4926488399505615, -0.766502857208252, -0.026691146194934845, -0.394224613904953, -0.9081114530563354, 0.35110554099082947, -0.00826179701834917, -0.25174060463905334, 0.379871666431427, -0.24077720940113068, -0.9686387777328491, 0.9937695860862732, 0.30785781145095825, -0.34004348516464233, -0.03725162521004677, 0.6034289002418518, 0.7303581237792969, -0.1944243460893631, 0.4576455354690552, 0.4062162935733795, 0.675180971622467, 0.2709001302719116, -0.7255368828773499, 0.20775996148586273, -0.023553524166345596, -0.19539642333984375, 0.396959513425827, -0.42519742250442505, 0.7754036784172058, -0.27423015236854553, -0.09673712402582169, -0.0968618392944336, 0.8823316097259521, 0.4562667906284332, 0.15343961119651794, 0.6952297687530518, 0.7451499700546265, 0.8795161247253418, 0.14304670691490173, 0.9858717322349548, -0.5585631728172302, 0.24627117812633514, 1.0906076431274414, -0.3941148817539215, 0.49953681230545044, 0.1979718953371048, -0.17547455430030823, 0.6294615864753723, 0.4926060438156128, 0.14977765083312988, 0.4531152546405792, 0.3027719259262085, 0.005171516444534063, -0.5996040105819702, -0.1063324585556984, -0.5346459746360779, 0.28705334663391113, 0.268984854221344, -0.2666260302066803, -0.4801364243030548, 0.030542898923158646, 0.14024795591831207, 0.04051819443702698, -0.37174341082572937, 0.906921923160553, 0.0036325769033282995, -0.6534253358840942, 0.5477166175842285, 0.07352308928966522, 0.11326730996370316, -0.8122252225875854, -0.10794347524642944, -0.2077649086713791, -0.02830948680639267, -0.10930947214365005, -0.5862390995025635, 0.197969451546669, -0.06720336526632309, -0.03642144426703453, 0.05158090591430664, 1.0248749256134033, -0.471789687871933, -0.4451562762260437, 0.5644752979278564, 0.7203308939933777, 0.2082265168428421, -0.2009417861700058, -0.4203413426876068, -0.027248015627264977, -0.10764443874359131, -0.25292208790779114, 0.29283350706100464, 0.35862815380096436, -0.061983101069927216, 0.5792272686958313, 0.8709014058113098, 0.24054503440856934, 0.015003873966634274, 0.16597779095172882, 1.051277995109558, -0.3699116110801697, -0.6134468913078308, -1.0287253856658936, 0.27940696477890015, -0.12420739233493805, 0.051300544291734695, 1.049904465675354, 0.6610683798789978, 0.8624725937843323, 0.18381308019161224, 0.7236524820327759, 0.08391015976667404, 0.5030955672264099, -0.6152454018592834, 0.869009256362915, -0.7014533877372742, 0.06022942066192627, -0.3553316295146942, -1.0445564985275269, -0.2628609836101532, 0.526258111000061, -0.4788852035999298, 0.3471071124076843, 0.9068887233734131, 1.1330509185791016, 0.1394655704498291, -0.014656443148851395, 0.4803944528102875, 0.5754621028900146, 0.2374064177274704, 0.36417916417121887, 1.0443071126937866, -0.05178165063261986, 0.6568856239318848, -0.3976042866706848, -0.3592033386230469, 0.14516256749629974, -0.5824853181838989, -1.0559685230255127, -0.4685993790626526, -0.28873515129089355, -0.6224526166915894, 0.11516712605953217, 0.6389097571372986, 0.601222813129425, -0.4984821677207947, -0.21158957481384277, 0.06786485761404037, 0.2233833372592926, -0.11513576656579971, -0.2352491021156311, 0.5894981026649475, -0.39249080419540405, -0.40491238236427307, 0.6112591624259949, 0.22919093072414398, -0.05937784165143967, -0.41420191526412964, -0.23150168359279633, -0.017837394028902054, 0.28144630789756775, 0.6508960723876953, 0.13562944531440735, -0.5373407006263733, -0.4672586917877197, 0.10884671658277512, 0.16222317516803741, 0.10245394706726074, 0.8302192091941833, -0.6888365745544434, 0.5064777135848999, 0.33008936047554016, 0.516796350479126, 0.3282715976238251, 0.15039889514446259, 0.1952536404132843, -0.6149851679801941, -0.11535827070474625, 0.3042326271533966, 0.19423829019069672, 0.16953691840171814, -0.4436432719230652, 0.29868224263191223, 0.2584998607635498, -0.42883577942848206, -1.0027706623077393, 0.45802178978919983, -0.6115918755531311, -0.709504246711731, 1.246267318725586, -0.040086399763822556, -0.22618770599365234, -0.2321527749300003, 0.024994486942887306, 0.3735528588294983, -0.0639428198337555, 0.8165408372879028, 0.8585595488548279, -0.32893168926239014, -0.29581984877586365, -0.23672856390476227, 0.3742856979370117, 0.26502251625061035, -1.320113182067871, 0.34693145751953125, 0.7730053663253784, 0.18493536114692688, 0.2907184958457947, 0.8565638065338135, -0.17333358526229858, 0.235407754778862, -0.16587746143341064, -0.08594384789466858, -0.4196680784225464, -0.6934176683425903, -0.043000590056180954, 0.47634875774383545, 0.2388024777173996, 0.22504504024982452 ]
http://arxiv.org/abs/2402.09910v2
http://arxiv.org/pdf/2402.09910v2
DE-COP: Detecting Copyrighted Content in Language Models Training Data
2024-02-15T12:17:15
2024-06-25T10:33:41
André V. Duarte, Xuandong Zhao, Arlindo L. Oliveira, Lei Li
cs.CL
cs.CL, cs.LG, I.2
How can we detect if copyrighted content was used in the training process of a language model, considering that the training data is typically undisclosed? We are motivated by the premise that a language model is likely to identify verbatim excerpts from its training text. We propose DE-COP, a method to determine whether a piece of copyrighted content was included in training. DE-COP's core approach is to probe an LLM with multiple-choice questions, whose options include both verbatim text and their paraphrases. We construct BookTection, a benchmark with excerpts from 165 books published prior and subsequent to a model's training cutoff, along with their paraphrases. Our experiments show that DE-COP surpasses the prior best method by 9.6% in detection performance (AUC) on models with logits available. Moreover, DE-COP also achieves an average accuracy of 72% for detecting suspect books on fully black-box models where prior methods give approximately 4% accuracy. The code and datasets are available at https://github.com/LeiLiLab/DE-COP.
[ -0.19912073016166687, -0.696574330329895, 0.4841175675392151, -0.24973420798778534, -0.4843160808086395, 0.11946898698806763, -0.08334403485059738, -0.30109965801239014, -0.27745330333709717, 0.9008809924125671, -0.2599906623363495, -0.6059293150901794, -0.7993635535240173, 0.043773431330919266, -0.813755214214325, 0.7181516289710999, 0.13371385633945465, 0.2331523448228836, -0.3642430305480957, -0.14713110029697418, -0.3085154592990875, -0.8403170108795166, -0.5381800532341003, -0.08278132975101471, 0.1862514168024063, 0.3467010259628296, 0.4179277718067169, 0.7734676599502563, 0.20436708629131317, 0.19732744991779327, -0.42004361748695374, -0.021762851625680923, -0.4369472563266754, 0.3313644826412201, -0.21400971710681915, -0.5626538991928101, -0.21894405782222748, -0.07106354087591171, 0.7325894832611084, 0.00039897780516184866, 0.06513559818267822, 0.02673661708831787, 0.0513945110142231, 0.8240174651145935, -0.9205701351165771, 0.006238903850317001, -0.7448861002922058, -0.07216975092887878, -0.15860490500926971, -0.142288938164711, -0.5492855310440063, -0.15711244940757751, -0.3486280143260956, -0.21735963225364685, 0.44491276144981384, -0.31249380111694336, 0.7307672500610352, 0.269271582365036, -0.4206655025482178, -0.39581772685050964, -0.7300923466682434, 0.8210040330886841, -0.8465068936347961, 0.6461939215660095, 0.875669002532959, 0.0417330376803875, -0.023664237931370735, -0.6109514832496643, -0.8349307179450989, -0.315207302570343, 0.10387517511844635, 0.07596791535615921, -0.37857621908187866, -0.25400862097740173, 0.4390057623386383, 0.40232938528060913, -0.5001921653747559, 0.14195556938648224, -0.2149047702550888, -0.13059267401695251, 0.7354047894477844, -0.20971977710723877, 0.3736526668071747, -0.17686836421489716, -0.4328250288963318, -0.32772061228752136, -0.6736869215965271, -0.10043587535619736, 0.9505630135536194, 0.01850433088839054, 0.02075544185936451, 0.5894313454627991, -0.13830912113189697, 0.5137090086936951, -0.13520579040050507, 0.06566872447729111, 0.20513349771499634, -0.3333113193511963, -0.06789134442806244, 0.05269711837172508, 0.7667527198791504, 0.20542484521865845, 0.5473546981811523, -0.03914172202348709, -0.38850876688957214, -0.39046168327331543, 0.2754424810409546, -0.8288810849189758, -0.1821231096982956, 0.32114875316619873, -0.23992200195789337, -0.35164138674736023, 0.08915455639362335, -0.6421234607696533, -0.45269647240638733, -0.5376407504081726, 0.18167206645011902, -0.40151679515838623, -0.48710763454437256, 0.1995963156223297, -0.41264984011650085, 0.22736291587352753, 0.04974306747317314, -0.7171972393989563, 0.21919748187065125, 0.8109979629516602, 0.7792445421218872, -0.27856165170669556, -0.40589162707328796, -0.7072651982307434, 0.23161253333091736, -0.26021257042884827, 0.8454582691192627, -0.5347589254379272, -0.4170522093772888, 0.00566551648080349, 0.21744631230831146, 0.03714599087834358, -0.57408607006073, 0.5261193513870239, -0.713358998298645, -0.09371251612901688, -0.17130447924137115, -0.9549227356910706, 0.004964605439454317, 0.4031398892402649, -0.9633433818817139, 1.257560133934021, -0.03076017089188099, -0.9159933924674988, 0.265195369720459, -0.184028759598732, -0.27641117572784424, -0.05675211176276207, -0.2535754144191742, -0.574766993522644, -0.07276644557714462, 0.30716410279273987, 0.3932477831840515, 0.0033074570819735527, 0.34068283438682556, -0.2028140276670456, -0.33100512623786926, 0.5450730323791504, -0.6281147003173828, 0.9983635544776917, 0.24803073704242706, -0.32220980525016785, -0.19320780038833618, -0.6682623624801636, -0.09881927073001862, 0.2604798972606659, -0.29123803973197937, -0.733108401298523, 0.09596367925405502, -0.022123854607343674, 0.013079660013318062, 0.17387785017490387, -0.6002691388130188, 0.16249212622642517, -0.07864699512720108, 0.054681938141584396, 0.6209962964057922, 0.1821141541004181, 0.3752301037311554, -0.4700787663459778, 0.7841780781745911, 0.040010347962379456, 0.30368417501449585, 0.0017347888788208365, -0.505215048789978, -0.3381976783275604, -0.40849408507347107, 0.49797144532203674, 0.46517643332481384, -0.4944825768470764, 0.6421643495559692, -0.09893066436052322, -0.5875911712646484, -0.11628639698028564, 0.18078163266181946, 0.41901519894599915, 0.3038903772830963, 0.2544361650943756, -0.33710798621177673, -0.18739882111549377, -0.687292218208313, -0.3909335732460022, -0.1570143848657608, 0.06197705119848251, 0.10554660856723785, 0.7367898225784302, 0.0020501851104199886, 0.9360036849975586, -0.4619212746620178, -0.25472548604011536, -0.24321840703487396, 0.16486148536205292, -0.13631896674633026, 0.7200693488121033, 0.8285162448883057, -1.077147364616394, -0.558224618434906, -0.27701863646507263, -0.5159664750099182, -0.2422131448984146, -0.006689668167382479, -0.08129943162202835, 0.27866506576538086, 0.7615461349487305, -0.12555047869682312, 0.6041947603225708, 0.47519439458847046, -0.1697710007429123, 0.6153980493545532, -0.30518969893455505, 0.2735016644001007, -0.8348127603530884, 0.2183135449886322, -0.4010365307331085, -0.26635032892227173, -0.4661601185798645, 0.13811081647872925, 0.273832231760025, -0.04185648635029793, -0.531560480594635, 0.648661196231842, -0.3122199475765228, -0.004992086905986071, -0.5097665190696716, 0.08347129821777344, 0.0913352370262146, 0.4473212957382202, 0.32297372817993164, 0.7257367968559265, 0.5339418649673462, -0.4956326484680176, 0.08775247633457184, 0.32139354944229126, -0.5222534537315369, 0.4119674563407898, -0.41664236783981323, 0.5488711595535278, -0.2008020132780075, 0.025788618251681328, -0.9552551507949829, 0.15015563368797302, 0.361743301153183, -0.3227933943271637, 0.18905511498451233, -0.9882417321205139, -0.8371989130973816, 0.11469444632530212, -0.33628466725349426, 0.4079757630825043, 0.39321044087409973, -0.34334638714790344, 0.1682041734457016, 0.48405808210372925, -0.16812317073345184, -0.8881076574325562, -0.624224841594696, -0.17326126992702484, 0.03700892999768257, -0.02118268422782421, 0.20164355635643005, -0.4069992005825043, -0.017710868269205093, 0.10452166944742203, -0.3185449242591858, -0.6849649548530579, 0.40272971987724304, 0.0031702204141765833, -0.020547199994325638, 0.05547187849879265, 0.10669838637113571, 0.29910820722579956, 0.06486772745847702, 0.03152487426996231, -0.23922517895698547, 0.719918429851532, 0.07954934239387512, -0.5885456800460815, -0.053448669612407684, 0.3014695644378662, 0.5471408367156982, -0.38136738538742065, 0.5707730650901794, 0.43414774537086487, -0.5207949280738831, -0.3305828869342804, -0.35769152641296387, 0.021052999421954155, -0.4338190257549286, 0.09951291978359222, -0.03294912725687027, -0.3243515193462372, 0.4963715970516205, 0.25879335403442383, -0.16080249845981598, 0.19260777533054352, 0.40528538823127747, 0.3328753411769867, 0.648919939994812, 0.47757038474082947, -0.10743147879838943, 0.9646939635276794, -0.5620508790016174, -0.09586023539304733, -0.509168803691864, -0.26891908049583435, -0.6756075620651245, -0.1790464073419571, -0.27174654603004456, -0.4793223440647125, -0.00018733477918431163, 0.5268316268920898, 0.05751560628414154, 0.6117292642593384, -0.519755482673645, 1.0370014905929565, 0.7622475028038025, 0.20498840510845184, 0.807020366191864, -0.09534689784049988, -0.18979376554489136, 0.1396801620721817, -0.40822601318359375, -0.7055131196975708, 1.2609540224075317, 0.18753871321678162, 0.4915655553340912, 0.13711820542812347, 0.92054682970047, 0.5843958854675293, 0.09353356063365936, -1.0090631246566772, 0.45929819345474243, -0.13898231089115143, -0.9994714856147766, -0.334523469209671, -0.3580209016799927, -0.9530046582221985, 0.06891820579767227, -0.0030630319379270077, -0.5547281503677368, 0.3446923792362213, -0.05587296187877655, 0.20577730238437653, 0.4754819869995117, -0.3243769705295563, 1.0191271305084229, -0.5273417830467224, -0.34378913044929504, -0.15833847224712372, -0.28210562467575073, 0.10713648796081543, -0.4940347373485565, 0.35222628712654114, -0.2356361299753189, -0.10774701833724976, 0.9507405161857605, -0.2319086492061615, 0.7385236620903015, -0.23852650821208954, -0.3361281752586365, 0.4858764111995697, 0.3121350407600403, 0.3750380575656891, 0.10630612820386887, -0.09680422395467758, 0.17654654383659363, 0.42306429147720337, -0.36326849460601807, -0.44993719458580017, 0.3496095836162567, -0.47312209010124207, -0.24923014640808105, -0.4770016670227051, -0.40787985920906067, 0.009804070927202702, 0.6012216210365295, 0.36665815114974976, 0.5823312997817993, -0.16581785678863525, 0.19431130588054657, 0.48983821272850037, -0.14571578800678253, 0.35337159037590027, 0.8576571345329285, -0.08523543179035187, -0.34699535369873047, 0.6926144361495972, -0.07562641054391861, 0.25608715415000916, 0.5561192631721497, 0.4531771242618561, -0.38053974509239197, -1.093244194984436, -0.4765377938747406, 0.14517419040203094, -1.1090683937072754, -0.29888975620269775, -0.46126285195350647, -0.25644978880882263, -0.37196943163871765, 0.2769019305706024, -0.5231651067733765, -0.3059219419956207, -0.3069256544113159, 0.022981228306889534, 0.45344045758247375, 0.7973539233207703, -0.010932439006865025, 0.24095143377780914, -0.9574264883995056, 0.31244808435440063, 0.032957710325717926, 0.4202275574207306, -0.15779919922351837, -0.7679586410522461, -0.27707818150520325, 0.2477322220802307, -0.41623881459236145, -0.921055793762207, 0.5097059607505798, -0.036875855177640915, 0.6601694822311401, 0.31816861033439636, 0.45022034645080566, 0.1747327744960785, -0.45341670513153076, 0.7133731245994568, -0.20442721247673035, -1.0425450801849365, 0.5955889821052551, -0.2321397364139557, -0.14942045509815216, 0.7212605476379395, 0.735020101070404, -0.2442491352558136, -0.7950052618980408, -0.8564614057540894, -0.6315590143203735, 0.5855318903923035, 0.2840772569179535, 0.23238317668437958, -0.1389927715063095, 0.2783200740814209, 0.17095738649368286, 0.44685953855514526, -0.9177922010421753, -0.1845780611038208, -0.030432438477873802, -0.2524230480194092, 0.003167258109897375, -0.2181273251771927, -0.028360411524772644, -0.13770343363285065, 0.4845817983150482, -0.03716321289539337, 0.10286786407232285, 0.3211124837398529, -0.5268108248710632, 0.06286303699016571, 0.2938697338104248, 0.45155078172683716, 0.7275800704956055, -0.3676339089870453, 0.16076762974262238, -0.23728415369987488, -0.6589072942733765, 0.2146448940038681, 0.07334400713443756, -0.23094844818115234, 0.14740793406963348, 0.4754836857318878, 0.26812878251075745, 0.12426572293043137, -0.9951658844947815, 1.0030511617660522, -0.060924820601940155, -0.23698808252811432, -0.4271872341632843, 0.13302090764045715, -0.24136516451835632, 0.35000452399253845, 0.1427679806947708, -0.16025769710540771, 0.18348711729049683, -0.32849183678627014, 0.51541668176651, 0.29114243388175964, -0.17969492077827454, -0.2782094478607178, 0.6054582595825195, -0.20626600086688995, -0.22544610500335693, 0.37707069516181946, -0.2784482538700104, -0.8346109390258789, 0.7933011054992676, 0.338879257440567, 0.9515790343284607, -0.03677487373352051, 0.20204414427280426, 0.2346862405538559, 0.2788701057434082, -0.36703482270240784, 0.2469072788953781, -0.21031628549098969, -0.8758155703544617, -0.3191653788089752, -0.3785727918148041, -0.5824857354164124, 0.5128522515296936, -0.8491261005401611, 0.4500444829463959, -0.30902165174484253, 0.04470201954245567, -0.11722725629806519, -0.11862118542194366, -0.5395533442497253, -0.020325295627117157, 0.31787872314453125, 0.8214695453643799, -0.9674990773200989, 1.1523289680480957, 0.4607055187225342, -0.58903568983078, -0.5329793691635132, 0.281909704208374, -0.2562072277069092, -0.5454989075660706, 0.7163194417953491, -0.007470099255442619, -0.12031562626361847, 0.14713314175605774, -0.5731363892555237, -0.6050569415092468, 0.8035555481910706, 0.6621376872062683, -0.5743131637573242, 0.20240703225135803, 0.10934668034315109, 0.31869247555732727, 0.08039319515228271, 0.08352327346801758, 0.5732632875442505, 0.23473450541496277, -0.014816934242844582, -0.575297474861145, -0.0975157842040062, -0.13321039080619812, -0.49396026134490967, 0.13398906588554382, -0.17174620926380157, 0.6465511918067932, 0.2053557187318802, -0.2005022019147873, 0.1672220081090927, -0.034803230315446854, 0.20049111545085907, 0.4705067574977875, 0.7022414207458496, 0.39262068271636963, 0.8786904811859131, 0.2637542188167572, 1.0913587808609009, -0.3295873701572418, 0.6561025381088257, 1.089449167251587, -0.21487371623516083, 0.9878241419792175, 0.26207253336906433, -0.051446154713630676, 0.3656517267227173, 0.27152854204177856, -0.26521989703178406, 0.6455641984939575, 0.31935223937034607, -0.18187947571277618, -0.13936524093151093, 0.0765661969780922, -0.23644237220287323, 0.4274318814277649, 0.06717771291732788, -0.29560962319374084, 0.007155998609960079, 0.08560481667518616, -0.020998172461986542, 0.19543179869651794, 0.0032426617108285427, 0.8320505023002625, 0.013726714067161083, -0.6237929463386536, 0.8809559345245361, -0.057204168289899826, 0.33739179372787476, -0.5381876230239868, 0.07496974617242813, -0.43220803141593933, 0.22940512001514435, 0.04082830995321274, -0.8168642520904541, 0.3676663637161255, 0.3567722737789154, -0.09284798055887222, -0.3410583436489105, 0.7453150749206543, -0.6900650858879089, -0.34734907746315, 0.3989134132862091, 0.6531707048416138, 0.36333173513412476, -0.489663302898407, -0.7274116277694702, 0.03725006431341171, -0.1752774864435196, -0.14869681000709534, 0.32037410140037537, 0.5097428560256958, 0.04198596626520157, 0.5501300692558289, 0.6091089248657227, 0.1312524378299713, -0.014624131843447685, 0.12370183318853378, 0.7103299498558044, -0.5311578512191772, -0.49062392115592957, -0.9175184965133667, 0.22374406456947327, -0.09908593446016312, -0.13883811235427856, 0.6578070521354675, 0.9091798067092896, 1.1955633163452148, -0.3046267628669739, 0.7905412316322327, 0.12372337281703949, 0.23893684148788452, -0.9388694167137146, 0.8605211973190308, -0.6547965407371521, 0.4522048532962799, -0.4111936390399933, -0.6620628833770752, -0.1695837527513504, 0.4243772625923157, -0.2444578856229782, -0.2910192310810089, 0.8941275477409363, 0.9209214448928833, -0.45929422974586487, 0.0640433132648468, 0.2842942178249359, -0.43056392669677734, 0.4123634696006775, 0.1398768424987793, 1.243317723274231, -0.5057502388954163, 0.8520187735557556, -0.605027437210083, -0.04371711611747742, -0.03450906649231911, -1.2590981721878052, -1.078528642654419, -0.6022841334342957, -0.6009986400604248, -0.18747206032276154, -0.17431354522705078, 0.5541642308235168, 0.5421847701072693, -0.9071316123008728, -0.2697906494140625, -0.3217557668685913, 0.4655698239803314, -0.3760914206504822, -0.16806770861148834, 0.4129834473133087, -0.1473802775144577, -1.0196781158447266, 0.45313265919685364, -0.3881398141384125, 0.44878506660461426, 0.10719699412584305, 0.03610701858997345, -0.29682809114456177, -0.06899572163820267, 0.20394648611545563, 0.10237535089254379, -0.43165847659111023, -0.19742053747177124, -0.11162591725587845, -0.07319767773151398, 0.013505062088370323, 1.2151504755020142, -0.4725149869918823, 0.4148884117603302, 0.5776576399803162, 0.7424600720405579, 0.7790895104408264, -0.019351646304130554, 0.364007830619812, -1.2003147602081299, 0.40623199939727783, 0.4078502953052521, 0.35146406292915344, 0.21532000601291656, -0.31896090507507324, 0.5403784513473511, 0.48705238103866577, -0.5743236541748047, -1.0180577039718628, 0.2337629497051239, -0.9677877426147461, -0.6380550861358643, 1.2721842527389526, -0.3899860978126526, -0.041499391198158264, -0.17027172446250916, -0.2057255357503891, 0.44619452953338623, -0.33198773860931396, 0.47980475425720215, 0.686305046081543, 0.38245689868927, -0.10712570697069168, -0.8579813241958618, 0.4301082193851471, 0.12406595796346664, -0.7082827091217041, 0.5160238146781921, 0.46866554021835327, 0.5857732892036438, -0.07715139538049698, 0.5933828353881836, -0.25727805495262146, 0.2487393021583557, -0.08705756813287735, -0.051054030656814575, -0.4208999276161194, -0.3483368456363678, -0.5839009284973145, -0.14882661402225494, 0.10784932971000671, -0.3785806894302368 ]
http://arxiv.org/abs/2402.09906v2
http://arxiv.org/pdf/2402.09906v2
Generative Representational Instruction Tuning
2024-02-15T12:12:19
2024-04-17T17:12:05
Niklas Muennighoff, Hongjin Su, Liang Wang, Nan Yang, Furu Wei, Tao Yu, Amanpreet Singh, Douwe Kiela
cs.CL
cs.CL, cs.AI, cs.LG
All text-based language problems can be reduced to either generation or embedding. Current models only perform well at one or the other. We introduce generative representational instruction tuning (GRIT) whereby a large language model is trained to handle both generative and embedding tasks by distinguishing between them through instructions. Compared to other open models, our resulting GritLM 7B sets a new state of the art on the Massive Text Embedding Benchmark (MTEB) and outperforms all models up to its size on a range of generative tasks. By scaling up further, GritLM 8x7B outperforms all open generative language models that we tried while still being among the best embedding models. Notably, we find that GRIT matches training on only generative or embedding data, thus we can unify both at no performance loss. Among other benefits, the unification via GRIT speeds up Retrieval-Augmented Generation (RAG) by > 60% for long documents, by no longer requiring separate retrieval and generation models. Models, code, etc. are freely available at https://github.com/ContextualAI/gritlm.
[ -0.18114987015724182, -0.7894694805145264, 0.6015273928642273, 0.18176494538784027, -0.36764729022979736, 0.2737578749656677, -0.4446365237236023, -0.1794075071811676, 0.012731796130537987, 0.49745696783065796, -0.4117836654186249, -0.7794575095176697, -0.7218132615089417, -0.36298346519470215, -0.3135603368282318, 1.1814610958099365, 0.06912817060947418, 0.4751630127429962, -0.4490906000137329, -0.35547351837158203, -0.6599795818328857, -0.1124207004904747, -0.6818791031837463, -0.5156185030937195, 0.4373146593570709, 0.264496773481369, 0.8612150549888611, 1.1810317039489746, 0.719914436340332, 0.2884843051433563, -0.06063224375247955, 0.3178194463253021, -0.8069084882736206, 0.1886001080274582, -0.4092375338077545, -0.4566420018672943, -0.4710101783275604, -0.23648928105831146, 0.6263189315795898, 0.6391379833221436, -0.32916179299354553, 0.019203748553991318, 0.03469063714146614, 0.6228508353233337, -0.8114525675773621, 0.1421491652727127, -0.7657660245895386, -0.20030207931995392, -0.26219817996025085, -0.26093077659606934, -0.621684730052948, -0.2554132342338562, -0.38342082500457764, -0.45199936628341675, 0.8716707229614258, 0.20071741938591003, 1.0524338483810425, 0.24075685441493988, -0.11342187970876694, -0.3848382532596588, -0.5845078229904175, 0.7914196252822876, -0.320860892534256, 0.4271313548088074, 0.4232008457183838, 0.28568920493125916, -0.05810818448662758, -0.8475428223609924, -0.17254889011383057, -0.0009544701897539198, 0.17112599313259125, 0.032163798809051514, 0.08577299118041992, 0.4062137305736542, 0.27380138635635376, 0.891371488571167, -0.6113767027854919, 0.2236841320991516, -0.31224116683006287, -0.13761447370052338, 0.4885295331478119, 0.24162696301937103, 0.19462797045707703, 0.1267019659280777, -0.37121203541755676, -0.5603046417236328, -0.873421847820282, -0.2766692638397217, 0.27864977717399597, 0.3483196198940277, -0.038226619362831116, 0.3132842779159546, 0.11795470863580704, 0.8320255279541016, 0.018548402935266495, -0.20128853619098663, 0.16288799047470093, -0.07817156612873077, -0.32906046509742737, 0.07680616527795792, 0.5529452562332153, 0.3606341481208801, -0.017531830817461014, -0.40506288409233093, -0.7674524784088135, 0.07280250638723373, 0.6074621677398682, -0.8580092787742615, -0.15326446294784546, -0.20567137002944946, -0.3682725727558136, -0.1784730702638626, 0.14487773180007935, -0.6938541531562805, -0.5402459502220154, -0.47867703437805176, 0.5630332827568054, -0.5316078066825867, -0.017149560153484344, 0.05150977522134781, -0.2530457377433777, 0.41088443994522095, 0.3331817388534546, -1.3130322694778442, 0.1404227465391159, 0.963290274143219, 0.9809349179267883, 0.07271776348352432, -0.2982615828514099, -0.6858377456665039, 0.21280710399150848, -0.5439794063568115, 0.9378919005393982, -0.8075913786888123, -0.520851731300354, 0.15168346464633942, -0.02334405481815338, -0.14521607756614685, -0.6703914999961853, 0.34078335762023926, -0.5242461562156677, -0.11451999098062515, -0.4498513340950012, -0.5634946823120117, -0.07012009620666504, 0.13841386139392853, -0.7257248759269714, 1.2220549583435059, 0.54561847448349, -0.4347725808620453, 0.38976165652275085, -0.4826064109802246, -0.4608498215675354, 0.2698843479156494, -0.2811507284641266, -0.51922208070755, 0.5096042156219482, 0.21824461221694946, 0.20332220196723938, -0.6455956101417542, 0.5067729353904724, -0.3445124924182892, -0.6540465950965881, -0.36441609263420105, -0.3583678603172302, 0.4619888961315155, 0.2115393579006195, -0.47199609875679016, 0.36511480808258057, -0.4012173116207123, 0.11325781792402267, 0.14192689955234528, -0.21249833703041077, -0.13620850443840027, -0.18746986985206604, 0.2215084731578827, -0.015995558351278305, 0.3127061426639557, -0.47095435857772827, 0.17770017683506012, -0.2674283981323242, 0.34829556941986084, 0.9221059083938599, -0.3077648878097534, 0.4220893979072571, -0.5432015657424927, 0.5451193451881409, -0.06512828916311264, -0.012480953708291054, -0.4517349600791931, -0.41511040925979614, -1.073470115661621, -0.2552683651447296, 0.6096548438072205, 0.2877792716026306, -0.9206104874610901, 0.23846864700317383, -0.5632022023200989, -0.31040817499160767, -1.2459909915924072, 0.22504954040050507, 0.8559625148773193, 0.1960439682006836, 0.44855669140815735, -0.24821442365646362, -0.3149152100086212, -0.8221055269241333, -0.144502654671669, 0.18368373811244965, -0.02631167694926262, 0.34130316972732544, 0.3612065017223358, 0.04206201061606407, 0.6484094858169556, -0.5652737021446228, -0.24735067784786224, -0.13172708451747894, 0.33615049719810486, -0.19973580539226532, 0.48488420248031616, 0.4282229244709015, -0.8251076340675354, -0.6243985891342163, 0.3186737596988678, -0.7858965396881104, 0.02290845662355423, -0.0009366893791593611, -0.14879216253757477, 0.32839250564575195, 0.714849054813385, -0.2973456084728241, 0.476528525352478, 0.6257681846618652, -0.32059842348098755, 0.19092798233032227, -0.5617364645004272, 0.24009597301483154, -1.083608627319336, -0.05423374101519585, -0.34944412112236023, -0.44594433903694153, -0.2627814710140228, 0.5378088355064392, 0.4152711033821106, -0.21222400665283203, -0.1406385898590088, 0.5268592238426208, -0.6647202968597412, -0.16595761477947235, -0.5600156188011169, 0.11684928089380264, 0.23389969766139984, 0.4297938346862793, -0.2772722840309143, 1.1930855512619019, 0.5189123153686523, -0.44676870107650757, 0.11145759373903275, 0.04770111292600632, -0.3424414098262787, 0.48384761810302734, -0.7041177749633789, 0.3875994086265564, -0.4108675420284271, -0.09203821420669556, -0.6286492943763733, -0.058673687279224396, -0.19536744058132172, -0.2190091609954834, 0.8004878163337708, -0.19666339457035065, -0.5609688758850098, -0.11504217982292175, -0.33895331621170044, 0.057814519852399826, 0.6385284066200256, -0.8568878173828125, 0.6292135119438171, 0.32067805528640747, 0.007170159835368395, -0.43807923793792725, -0.3794935643672943, -0.048032891005277634, 0.06263145059347153, -0.5183477401733398, 0.8123272657394409, 0.017097970470786095, 0.001844797981902957, 0.06166011095046997, -0.13570700585842133, 0.04956949129700661, -0.022525085136294365, 0.22286175191402435, 0.08257607370615005, -0.47585198283195496, 0.429440975189209, 0.4751426577568054, -0.23096928000450134, -0.3191312551498413, -0.19193916022777557, 0.7319650650024414, -0.21717150509357452, -0.35093584656715393, 0.24434134364128113, 0.519361674785614, 0.5119456648826599, -0.48217204213142395, 1.0377999544143677, 1.0066803693771362, -0.07876614481210709, -0.2907870411872864, -0.5962105393409729, -0.13222558796405792, -0.5358796119689941, 0.46958214044570923, -0.49258285760879517, -0.9854725003242493, 0.30239930748939514, -0.05251007899641991, 0.23498578369617462, 0.41461753845214844, 0.5541827082633972, 0.04857417568564415, 1.1861743927001953, 0.8232617378234863, 0.08175523579120636, 0.5667151808738708, -0.30457013845443726, 0.14151589572429657, -0.9906526803970337, -0.1985723078250885, -0.5453263521194458, -0.2962285578250885, -0.7036843299865723, -0.6166560649871826, 0.15073975920677185, 0.37554579973220825, -0.14347396790981293, 0.278470903635025, -0.5778077244758606, 0.6576118469238281, 0.5392925143241882, 0.22817197442054749, -0.06545216590166092, -0.03543255850672722, -0.17902906239032745, -0.02040334977209568, -0.6934129595756531, -0.5677483081817627, 1.0733948945999146, 0.15250764787197113, 0.7433207631111145, 0.03596818074584007, 0.6992936134338379, 0.2714783847332001, 0.6151279211044312, -0.6809269189834595, 0.2947813868522644, -0.6580548882484436, -0.4531848430633545, -0.09332644939422607, -0.3509345054626465, -1.0283403396606445, 0.4071492552757263, -0.10453619807958603, -0.4178192615509033, -0.18803365528583527, 0.2209930121898651, 0.03643253818154335, 0.4609566926956177, -0.7995202541351318, 0.8128066658973694, 0.12963727116584778, -0.4087728261947632, -0.26836371421813965, -0.33867406845092773, 0.05048085004091263, 0.19736897945404053, 0.05525336042046547, -0.29797667264938354, 0.06438083201646805, 0.5110754370689392, -0.206804558634758, 0.500176727771759, -0.15867722034454346, -0.0465298630297184, 0.05568692088127136, -0.1813919097185135, 0.512340247631073, -0.04607528820633888, -0.09990667551755905, 0.06735413521528244, -0.3310546278953552, -0.6266345977783203, -0.831548273563385, 0.9309951663017273, -0.5739120244979858, -0.7909428477287292, -0.13001792132854462, -0.7923768758773804, -0.07323060929775238, 0.1788870245218277, 0.48388975858688354, 0.6859755516052246, -0.16152481734752655, 0.4611077606678009, 1.0348416566848755, 0.023762254044413567, 0.5747560858726501, 0.3861730396747589, -0.2580386698246002, -0.43561407923698425, 1.312516450881958, -0.06468360126018524, 0.2546193301677704, 0.5641947984695435, 0.08430825173854828, -0.2853322923183441, -0.6903855204582214, -0.7139095067977905, 0.27159518003463745, -0.8831501603126526, -0.4774971604347229, -0.49972498416900635, -0.21785737574100494, -0.5179005861282349, -0.39885085821151733, -0.45503613352775574, 0.019598092883825302, -0.39741891622543335, 0.05694449320435524, 0.3156210482120514, 0.929230272769928, 0.2994966208934784, 0.5613770484924316, -0.8099722266197205, 0.25114646553993225, 0.11196661740541458, 0.7023178935050964, -0.011715767905116081, -0.6235191226005554, -0.4752456843852997, 0.14661793410778046, -0.5803272724151611, -0.6109026670455933, 0.280309796333313, 0.35449665784835815, 0.4587722420692444, 0.46926039457321167, -0.08726735413074493, 0.77159184217453, -0.6918855905532837, 0.4914131760597229, -0.021676309406757355, -0.930313229560852, 0.3717336058616638, -0.46145203709602356, 0.5485435724258423, 0.7387391328811646, 0.27279090881347656, -0.2898330092430115, -0.37496402859687805, -0.5185578465461731, -0.6832524538040161, 0.6564118266105652, -0.017695851624011993, 0.26140397787094116, -0.12266654521226883, 0.21636013686656952, 0.17002010345458984, 0.269064724445343, -0.3110412657260895, -0.26714614033699036, -0.2626367509365082, -0.371406614780426, -0.19194258749485016, -0.331233412027359, -0.10049501061439514, -0.1439615786075592, 0.6639229655265808, -0.34072446823120117, 0.42134350538253784, -0.242025688290596, -0.3948933482170105, -0.07207675278186798, 0.10082387924194336, 0.77901691198349, 0.7817543148994446, -0.1293223798274994, 0.07184633612632751, -0.003200315171852708, -0.6963543891906738, -0.017507590353488922, 0.03636375069618225, -0.26093029975891113, 0.09352296590805054, 0.39948487281799316, 1.372588038444519, 0.5429138541221619, -0.4748322665691376, 0.3934267461299896, 0.0016566982958465815, -0.18901237845420837, 0.2329578846693039, 0.33770567178726196, 0.08643219619989395, -0.07788030803203583, 0.07424730062484741, -0.14608903229236603, 0.0462552085518837, -0.34684208035469055, 0.02095990814268589, 0.4068957567214966, -0.5755857229232788, -0.15441913902759552, 0.47143492102622986, 0.13361218571662903, -0.6113119125366211, 0.8491597175598145, -0.37616145610809326, -0.382170706987381, 0.5320061445236206, 0.9025481343269348, 0.9162033796310425, -0.28587231040000916, 0.37632787227630615, 0.31040969491004944, 0.3378041684627533, -0.02438652701675892, 0.2534831762313843, 0.018432144075632095, -0.4444252848625183, -0.3325253427028656, -0.9596635699272156, -0.26741886138916016, 0.11152062565088272, -1.1477220058441162, 0.2197984755039215, -0.5094554424285889, 0.018511105328798294, 0.15992696583271027, -0.1653544306755066, -0.6521140933036804, 0.1567317545413971, -0.15898466110229492, 0.6809644103050232, -0.7572510242462158, 0.9248272776603699, 0.8227052092552185, -0.2785036861896515, -0.447039932012558, -0.13681671023368835, -0.2240203619003296, -0.8263901472091675, 0.1511221081018448, 0.4838632345199585, -0.055201951414346695, 0.29295045137405396, -0.47000232338905334, -0.7958027124404907, 1.185908555984497, 0.7246896028518677, -0.6649870872497559, -0.09492384642362595, -0.11295799911022186, 0.4245382249355316, -0.35103583335876465, 0.10861053317785263, 0.66057288646698, 0.2920970618724823, 0.18187502026557922, -0.6957417130470276, -0.09827543050050735, -0.22082850337028503, 0.539325475692749, 0.8904281258583069, -0.5854532718658447, 0.9550108909606934, -0.13220177590847015, -0.32808393239974976, -0.017025839537382126, 0.7555477023124695, 0.12870757281780243, 0.28436630964279175, 0.24154424667358398, 0.8668864369392395, 0.7902311682701111, -0.4229682981967926, 1.2906162738800049, -0.34241095185279846, 0.39938241243362427, 1.1698249578475952, -0.05931125208735466, 0.6422439813613892, 0.251104474067688, -0.09058131277561188, 0.5149696469306946, 0.45628705620765686, -0.08581473678350449, 0.5092441439628601, 0.040711186826229095, -0.4546683728694916, -0.32133498787879944, -0.22246474027633667, -0.46215564012527466, 0.5251052975654602, 0.4970766007900238, -0.5355313420295715, -0.5350878834724426, 0.23537710309028625, 0.0633356124162674, 0.3796370029449463, -0.46464449167251587, 0.8442437648773193, -0.08090762794017792, -0.8240079283714294, 0.6952576041221619, 0.37311550974845886, 0.5886135101318359, -0.6668000221252441, -0.33931511640548706, -0.3357849419116974, 0.19705194234848022, 0.10908392816781998, -0.5898436903953552, 0.27981701493263245, -0.2075098156929016, -0.6199017763137817, -0.33407169580459595, 0.590842068195343, -0.6455010771751404, -0.396592378616333, 0.20441396534442902, 0.06119557470083237, 0.08956680446863174, -0.025499524548649788, -0.666293740272522, 0.32342013716697693, -0.06034008413553238, 0.11599226295948029, 0.7291727662086487, 0.2866044342517853, -0.16798177361488342, 0.5036152005195618, 0.55035001039505, -0.20693691074848175, 0.08518384397029877, 0.3334168791770935, 1.0091500282287598, -0.6607263088226318, -0.3954506516456604, -0.7035636305809021, 0.29120635986328125, -0.1033037081360817, -0.34618067741394043, 0.6392356753349304, 0.5575814843177795, 0.8577519655227661, -0.10633636265993118, 0.34778618812561035, -0.012120208702981472, 0.08972938358783722, -0.8282119035720825, 0.8970134258270264, -0.4738621711730957, -0.10749921947717667, 0.10478749126195908, -1.0533199310302734, -0.022378092631697655, 0.4898449182510376, -0.18110041320323944, 0.3388063609600067, 0.9383816123008728, 1.0526009798049927, -0.04074104130268097, 0.05734303593635559, 0.60313481092453, -0.28378579020500183, 0.3397528827190399, 0.37854886054992676, 0.23747938871383667, -0.47561001777648926, 0.30866703391075134, -0.23797260224819183, -0.14821089804172516, -0.20356503129005432, -0.8056631088256836, -0.9533121585845947, -0.6595208644866943, -0.17382511496543884, -0.26869696378707886, 0.3782322108745575, 0.6419909000396729, 0.6930773258209229, -0.7958548665046692, -0.03858155012130737, -0.2622852921485901, 0.24407906830310822, -0.25779253244400024, -0.22468052804470062, 0.46962353587150574, -0.9205757975578308, -0.8977645039558411, 0.46488478779792786, 0.46349209547042847, 0.024788986891508102, -0.2589632272720337, -0.017359869554638863, -0.11921725422143936, 0.021968908607959747, 0.534892737865448, -0.000051960651035187766, -0.6686710119247437, -0.10859764367341995, -0.09094426035881042, -0.4134448170661926, 0.23862694203853607, 1.0873219966888428, -0.4959457516670227, 0.806722104549408, 0.3004195988178253, 0.8226222991943359, 0.6230224967002869, -0.10037046670913696, 0.6168164014816284, -0.9423501491546631, 0.1402338296175003, 0.15282230079174042, 0.17283758521080017, 0.5549948215484619, -0.3159150183200836, 0.3202439248561859, -0.0506741926074028, -0.46163210272789, -0.9188914895057678, 0.04749346524477005, -0.5732375383377075, -0.16281551122665405, 0.9528279304504395, -0.31758785247802734, -0.3098081648349762, 0.08105771988630295, -0.0801265612244606, 0.2577058672904968, -0.23553892970085144, 0.7321968078613281, 0.673581600189209, 0.4039839208126068, -0.17848321795463562, -0.44337522983551025, 0.5109110474586487, 0.4356672465801239, -0.8034874200820923, -0.0755888894200325, 0.27580201625823975, -0.040569793432950974, 0.01835521124303341, 0.44645553827285767, -0.122409388422966, 0.5318779945373535, 0.40115079283714294, 0.20968955755233765, -0.40180498361587524, -0.6923765540122986, -0.4537191390991211, 0.13157013058662415, 0.21559005975723267, -0.20349065959453583 ]
http://arxiv.org/abs/2402.09894v2
http://arxiv.org/pdf/2402.09894v2
Not Just Novelty: A Longitudinal Study on Utility and Customization of an AI Workflow
2024-02-15T11:39:11
2024-05-31T16:00:05
Tao Long, Katy Ilonka Gero, Lydia B. Chilton
cs.HC
cs.HC, cs.AI, cs.CL, cs.CY
Generative AI brings novel and impressive abilities to help people in everyday tasks. There are many AI workflows that solve real and complex problems by chaining AI outputs together with human interaction. Although there is an undeniable lure of AI, it is uncertain how useful generative AI workflows are after the novelty wears off. Additionally, workflows built with generative AI have the potential to be easily customized to fit users' individual needs, but do users take advantage of this? We conducted a three-week longitudinal study with 12 users to understand the familiarization and customization of generative AI tools for science communication. Our study revealed that there exists a familiarization phase, during which users were exploring the novel capabilities of the workflow and discovering which aspects they found useful. After this phase, users understood the workflow and were able to anticipate the outputs. Surprisingly, after familiarization the perceived utility of the system was rated higher than before, indicating that the perceived utility of AI is not just a novelty effect. The increase in benefits mainly comes from end-users' ability to customize prompts, and thus potentially appropriate the system to their own needs. This points to a future where generative AI systems can allow us to design for appropriation.
[ -0.48773083090782166, -0.5279741883277893, 0.5687406659126282, 0.026003563776612282, -0.3648315668106079, 0.20275095105171204, -0.04659220948815346, -0.6227405667304993, 0.40672770142555237, 0.05881672352552414, -0.47019726037979126, -0.20057183504104614, -0.47778961062431335, 0.2833845615386963, -0.3799525499343872, 0.9806820154190063, 0.3063197135925293, -0.38217025995254517, -0.46810388565063477, -0.22962069511413574, -0.5815743207931519, -0.25478100776672363, -0.6370126605033875, -0.6125773787498474, 0.7612859010696411, 0.3993786871433258, 0.854922890663147, 0.47956904768943787, 0.3619401454925537, 0.38947832584381104, -0.06619527190923691, -0.16939038038253784, -0.5099479556083679, 0.2241457998752594, -0.12902775406837463, -0.6174193620681763, -0.07694198191165924, -0.007180122192949057, 0.33847835659980774, 0.8766626715660095, -0.18158969283103943, 0.10924352705478668, 0.18573211133480072, 0.659585177898407, -0.40718215703964233, 0.17230291664600372, -0.29926589131355286, 0.2531328797340393, -0.457322359085083, -0.354686439037323, -0.16122961044311523, -0.15874764323234558, 0.2020779550075531, -0.9049482345581055, 0.27663546800613403, 0.05221283808350563, 0.7022333741188049, 0.341560959815979, -0.18322759866714478, -0.11038798093795776, -1.1633232831954956, 0.4348093867301941, -0.528193473815918, 0.07620887458324432, -0.0010556328343227506, 0.6876562237739563, -0.13016760349273682, -0.9135043621063232, -0.6420044302940369, -0.44237878918647766, -0.11800456047058105, 0.18305794894695282, -0.42197850346565247, -0.13627462089061737, 0.2886984944343567, 0.2977018356323242, -0.46339377760887146, 0.4121622145175934, -0.4942816495895386, -0.086642786860466, 0.49417391419410706, 0.4870980978012085, 0.6317402124404907, 0.12823614478111267, -0.31346824765205383, -0.10539610683917999, -0.4543320834636688, 0.3139471113681793, 0.08519434183835983, -0.10354695469141006, -0.21775922179222107, 0.6857789754867554, -0.2642531394958496, 0.6357192993164062, -0.039319198578596115, 0.27364620566368103, 0.30213260650634766, -0.08985849469900131, -0.21958854794502258, -0.17745424807071686, 0.8036186695098877, 0.0456305630505085, 0.24980348348617554, -0.5209878087043762, 0.12797458469867706, -0.08910363167524338, 0.602499783039093, -0.4616253674030304, -0.3053325414657593, 0.04563827067613602, -0.5242183804512024, -0.4240587055683136, -0.016290612518787384, -0.4713049530982971, -0.5952628254890442, -0.3453616797924042, 0.23674450814723969, -0.41898301243782043, -0.1564711183309555, -0.24411366879940033, -0.48355406522750854, -0.10360970348119736, 0.4021448493003845, -1.0008480548858643, -0.3512641191482544, 0.5894644260406494, 0.9639111757278442, -0.3910839557647705, -0.4762456715106964, -0.13426755368709564, -0.04210339114069939, -0.32478734850883484, 0.9781490564346313, -0.723347544670105, -0.6775012016296387, -0.32481732964515686, -0.26228514313697815, -0.03650374338030815, -0.6174512505531311, 0.14132267236709595, -0.6192274689674377, -0.05933501571416855, -0.10048770159482956, -0.3360525667667389, 0.22651882469654083, -0.03914343938231468, -0.7284995317459106, 0.4121100902557373, 0.09816866368055344, -0.4741362929344177, 0.8436985015869141, -0.8262792229652405, -0.5003528594970703, 0.672295331954956, -0.20301157236099243, -0.24389800429344177, 0.275214284658432, -0.3594628870487213, 0.2675258219242096, -0.00582885229960084, 0.1724008172750473, -0.31824901700019836, -0.3157370090484619, 0.504179835319519, -0.3377542793750763, 0.6544596552848816, 0.6118670701980591, -0.29468005895614624, 0.28272926807403564, -0.5758805274963379, -0.13764755427837372, -0.2707573473453522, -0.13064727187156677, -0.44111067056655884, -0.30813395977020264, -0.03715662658214569, -0.12051238119602203, 0.24019519984722137, -0.3950950801372528, 0.15979711711406708, -0.36076411604881287, 0.4877704083919525, 0.701620876789093, 0.06104091927409172, 0.6443575620651245, -0.6974193453788757, 0.6685509085655212, 0.0348467119038105, 0.13957637548446655, -0.31064867973327637, -0.9266206622123718, -0.30196914076805115, -0.3825908601284027, -0.03341875597834587, 0.3250276446342468, -0.6554188132286072, 0.42043745517730713, -0.03263946622610092, -0.7332628965377808, -0.21910516917705536, 0.07981499284505844, 0.013867064379155636, 0.44041869044303894, 0.041730232536792755, -0.48673874139785767, -0.3962627351284027, -0.879985511302948, -0.35806146264076233, -0.22624637186527252, -0.45399895310401917, 0.527627170085907, 0.37853655219078064, -0.1690143495798111, 1.1048593521118164, -0.5551295876502991, -0.22074422240257263, -0.24536077678203583, 0.7217944860458374, 0.1935747116804123, 0.21485696732997894, 0.429971307516098, -0.9330362677574158, -0.3601621687412262, 0.12261024117469788, -1.0605145692825317, 0.01871410198509693, -0.38665786385536194, -0.02066206932067871, -0.10745380818843842, 0.2088303565979004, -0.7706984877586365, 0.41986343264579773, 0.10237777978181839, -0.31548359990119934, 0.38790133595466614, -0.4932044744491577, 0.15291590988636017, -0.9858096837997437, 0.37490522861480713, -0.0038565241266041994, 0.2098391354084015, -0.7645341157913208, -0.06333369761705399, -0.27073124051094055, -0.27033716440200806, -0.33351874351501465, 0.500584065914154, -0.34694141149520874, 0.11632943898439407, -0.5192791223526001, -0.2320842742919922, -0.12394211441278458, 0.11396703124046326, 0.04988161846995354, 0.7533652186393738, 0.6635910272598267, -0.7056758999824524, 0.31361284852027893, 0.11296948045492172, -0.36190173029899597, 0.6860373020172119, -0.710390031337738, 0.11556535959243774, -0.434435099363327, 0.1483147293329239, -0.7459770441055298, -0.29551100730895996, 0.32265546917915344, -0.5447875261306763, 0.005660446360707283, 0.24602055549621582, -0.07725763320922852, -0.32576704025268555, -0.17979945242404938, 0.21550805866718292, 0.8043934106826782, -0.5106539130210876, 0.610852837562561, 0.16815085709095, -0.10287631303071976, -0.21219368278980255, -0.44596952199935913, 0.36482372879981995, -0.564278244972229, -0.486707866191864, 0.4240459203720093, -0.2567756772041321, -0.15956179797649384, 0.09641169756650925, 0.01935725472867489, -0.05998900905251503, 0.37000423669815063, 0.4847717881202698, 0.045028530061244965, 0.029303275048732758, 0.04249471053481102, -0.12634050846099854, -0.24889971315860748, -0.16232380270957947, -0.20273350179195404, 0.3244403004646301, -0.11823204904794693, -0.3801115155220032, -0.6134017705917358, 0.32585617899894714, 0.6054903268814087, -0.03779693320393562, 0.6619889736175537, 0.9209129810333252, -0.3561427593231201, 0.12104331701993942, -0.32977262139320374, -0.4234786927700043, -0.5312685370445251, 0.0854821652173996, -0.24505272507667542, -0.8825238943099976, 0.4078499972820282, -0.02274223603308201, 0.18794098496437073, 0.1650623083114624, 0.5786762237548828, -0.4566880166530609, 0.7742087841033936, 0.7378157377243042, -0.00825088657438755, 0.6240402460098267, -0.18329906463623047, 0.38996759057044983, -0.6901334524154663, -0.6133494973182678, -0.4559701383113861, -0.5720303058624268, -0.5308521389961243, -0.011666507460176945, 0.5292737483978271, -0.06977885216474533, 0.03442265838384628, 0.0889848992228508, -0.49474483728408813, 0.36512959003448486, 0.7494396567344666, -0.017725985497236252, 0.33445101976394653, -0.03401736542582512, 0.5140131115913391, -0.1744156777858734, -0.579716682434082, -0.5913056135177612, 0.9387218356132507, -0.04037991911172867, 0.9176856279373169, 0.09147410094738007, 0.8617951273918152, 0.742754340171814, 0.5056930780410767, -0.8027499318122864, 0.37115558981895447, -0.021342821419239044, 0.08828357607126236, -0.5511002540588379, -0.2725038230419159, -1.532247543334961, 0.0190071240067482, -0.3148998022079468, -0.9534969329833984, 0.30794277787208557, 0.5231912732124329, -0.5162525177001953, 0.16437716782093048, -0.7475419640541077, 0.48539915680885315, 0.08010279387235641, -0.3483063280582428, -0.22589033842086792, -0.4453931152820587, 0.13398700952529907, 0.01045000646263361, 0.052590999752283096, 0.0005391179583966732, 0.11448705196380615, 0.6626418828964233, -0.14732278883457184, 1.0685895681381226, -0.037130098789930344, 0.11223011463880539, 0.22850970923900604, -0.1192813366651535, 0.2199542224407196, 0.2666260004043579, 0.07248567789793015, 0.01568814180791378, -0.12727510929107666, -0.2700953185558319, -0.9013020396232605, 0.789094090461731, -0.5552076697349548, -1.1123450994491577, -0.5303126573562622, -0.4422186017036438, 0.07008401304483414, 0.3491622805595398, 0.44369152188301086, 0.07715758681297302, -0.4967929422855377, 0.19000184535980225, 0.4844062924385071, 0.12752829492092133, 0.4832048714160919, 0.3525043725967407, 0.47203969955444336, 0.2116306573152542, 0.8707118034362793, -0.04442305490374565, -0.02099633403122425, 0.31049394607543945, 0.45667746663093567, 0.10009505599737167, -0.40044155716896057, -0.6293535828590393, -0.2641165852546692, -0.39493951201438904, 0.0036690200213342905, -0.6616764068603516, 0.043287768959999084, -0.13229864835739136, -0.297132670879364, -0.08120723068714142, -0.4538155496120453, -0.6374225616455078, 0.13757070899009705, 0.13320821523666382, 0.8286247253417969, -0.16446205973625183, -0.10355238616466522, -0.7557418346405029, 0.24348662793636322, 0.6259951591491699, 0.04335922375321388, 0.2275012582540512, -0.31021708250045776, -0.25411319732666016, 0.04077714681625366, -0.5878469944000244, -0.7638207077980042, 0.2504618167877197, 0.33781805634498596, 0.8396991491317749, 0.5430033802986145, -0.05534336343407631, 0.09640588611364365, -0.37151095271110535, 1.0489170551300049, 0.12591484189033508, -0.49526700377464294, 0.28665560483932495, -0.11525621265172958, 0.5294755697250366, 0.2499125599861145, 0.4399604797363281, -0.6509637236595154, -0.36086446046829224, -0.5841358304023743, -0.737429678440094, 0.47419649362564087, 0.3246189057826996, 0.6088523268699646, 0.2517012059688568, 0.4096745550632477, 0.32277393341064453, 0.35641640424728394, -0.21334700286388397, -0.3178395926952362, -0.5818734765052795, 0.01622425951063633, -0.12734559178352356, 0.12384790927171707, -0.47827547788619995, -0.10206165909767151, 0.08498094975948334, -0.1349775791168213, 0.4470508396625519, -0.1951453685760498, 0.3056437075138092, 0.00625011557713151, 0.532853901386261, 0.49051904678344727, 0.7862719297409058, 0.11330096423625946, 0.09921523928642273, 0.08341845870018005, -0.40448781847953796, 0.14750394225120544, 0.059525538235902786, -0.32269880175590515, -0.2736034691333771, 0.2902248203754425, 0.8543416261672974, -0.05546228587627411, -0.5866928696632385, 0.1594054400920868, 0.08307301253080368, -0.11354745179414749, -0.26181140542030334, 0.6283763647079468, 0.06682942807674408, 0.35503292083740234, 0.4808463454246521, 0.5487295389175415, 0.5507251620292664, -0.6145305037498474, -0.061461035162210464, 0.5649237632751465, 0.0018533390248194337, -0.6461105346679688, 0.9343559145927429, 0.04781334474682808, -0.7183008193969727, 0.3947094976902008, -0.149214506149292, 0.034626565873622894, 0.8560960292816162, 0.664065957069397, 0.8153499364852905, -0.018909744918346405, 0.67514967918396, 0.08622989803552628, -0.02109299786388874, 0.1914355456829071, -0.03580300882458687, -0.4223194420337677, -0.649787187576294, 0.19061335921287537, -0.26988884806632996, -0.5280289649963379, 0.047924626618623734, -0.677742063999176, 0.07798072695732117, -0.2911163568496704, -0.405862420797348, 0.35803523659706116, -0.6455292105674744, -0.9490878582000732, 0.14122804999351501, -0.1574699431657791, 0.6594716906547546, -0.8225910067558289, 0.532699465751648, 1.100145936012268, -0.30752789974212646, -0.39495861530303955, 0.08660677820444107, 0.008570967242121696, -0.7518438100814819, 0.5558898448944092, -0.05786711350083351, -0.037414148449897766, -0.06300138682126999, -0.3566327393054962, -0.7529559135437012, 1.3126338720321655, -0.024624880403280258, -0.2871881425380707, 0.06311243772506714, 0.08512909710407257, 1.1163080930709839, -0.4407578706741333, 0.2745364308357239, 0.5195327997207642, 0.3619115948677063, 0.36214256286621094, -0.5408521294593811, 0.004702135920524597, -0.6600180268287659, 0.47854354977607727, -0.005810927599668503, -0.688317060470581, 0.5380710959434509, -0.7663600444793701, -0.3835272789001465, 0.1732649803161621, 0.7720475196838379, 0.2422158569097519, 0.8504505157470703, 0.47524428367614746, 0.20801006257534027, 0.7445298433303833, 0.1324804276227951, 0.9422704577445984, -0.09084294736385345, -0.13127772510051727, 0.6283535361289978, -0.13250575959682465, 0.427282452583313, 0.6645782589912415, -0.056241992861032486, 0.530630886554718, 0.3423481583595276, -0.051106926053762436, 0.6665903329849243, 0.18333283066749573, -0.38563695549964905, -0.1316555291414261, -0.3393907845020294, -0.4618948698043823, 0.12158720195293427, 0.1631150245666504, -0.17396001517772675, 0.015482097864151001, 0.5520715713500977, -0.11159777641296387, 0.10219835489988327, 0.24827569723129272, 0.8893432021141052, 0.10222373157739639, -0.7578012943267822, 0.36165663599967957, -0.2429104745388031, 0.6746097803115845, -0.5260137319564819, -0.08971427381038666, -0.3581259548664093, -0.23066848516464233, -0.34049949049949646, -0.8294523358345032, 0.3180471956729889, -0.07508743554353714, -0.11382374912500381, -0.2244463711977005, 0.555528998374939, -0.022262418642640114, -0.03156725689768791, -0.36071670055389404, 0.47489243745803833, 0.11140625178813934, 0.32468464970588684, -0.20543630421161652, -0.18576009571552277, -0.12497379630804062, -0.16555432975292206, 0.434369295835495, 0.23658277094364166, -0.2136073112487793, 0.988444447517395, 0.6499674320220947, 0.10531438142061234, -0.1626187264919281, 0.21846456825733185, 0.9182880520820618, -0.3814294636249542, -0.5264228582382202, -0.6702876687049866, 0.5751288533210754, -0.16742141544818878, -0.5899920463562012, 0.6369577646255493, 0.39084985852241516, 0.6696996688842773, -0.3877197802066803, 1.0390710830688477, -0.3579713702201843, -0.12163940072059631, -0.30116546154022217, 0.6054168939590454, -0.6297899484634399, 0.49127981066703796, 0.005932216066867113, -0.6131046414375305, -0.2706717848777771, 0.24249906837940216, -0.19441843032836914, 0.347410649061203, 0.4551325738430023, 0.5465703010559082, -0.10051628947257996, 0.44381821155548096, 0.31345054507255554, -0.15273156762123108, 0.609453558921814, 0.3811522126197815, 1.0060546398162842, 0.4293685257434845, 0.2535111606121063, -0.3645395338535309, -0.7630118727684021, -0.3051648437976837, -0.769639253616333, -0.8723953366279602, -0.7795551419258118, -0.17375507950782776, 0.060870211571455, 0.19045810401439667, 0.7204552292823792, 0.5042651295661926, -0.6481680274009705, 0.029405957087874413, -0.18024460971355438, -0.09293770045042038, -0.5465471148490906, -0.2627510130405426, 0.18577253818511963, -0.4658547043800354, -0.6567767858505249, 0.4030073285102844, 0.33541110157966614, 0.3347608745098114, -0.3040636479854584, -0.07643667608499527, 0.5189685821533203, -0.19833707809448242, 0.3871038556098938, 0.8650936484336853, -0.40650689601898193, -0.13402114808559418, 0.218892440199852, 0.06232546269893646, 0.05337963625788689, 1.2205924987792969, -0.8266304731369019, 0.6269190907478333, 0.6385251879692078, 0.5100052356719971, 0.5251743793487549, 0.020994966849684715, 0.6775450110435486, -0.41907745599746704, 0.10695074498653412, 0.14171314239501953, 0.14972233772277832, 0.2989889085292816, -0.862913191318512, 0.25718873739242554, 0.2653784155845642, -0.4693397283554077, -0.6173737049102783, 0.30333760380744934, -0.6754993200302124, -0.007458668667823076, 0.6549615859985352, -0.2008286565542221, 0.11328671127557755, -0.3041820526123047, -0.2178443968296051, 0.13009576499462128, -0.5046395063400269, 1.5491602420806885, 0.4539574980735779, -0.8046144843101501, -0.09802594780921936, -0.17791324853897095, 0.6092069745063782, 0.5128048658370972, -1.0585192441940308, -0.4263734519481659, 0.1339140385389328, 0.2514685094356537, 0.3505726158618927, 0.6670201420783997, 0.24254481494426727, 0.46826210618019104, -0.1620979905128479, -0.3547970652580261, -0.5186664462089539, -0.3806759715080261, -0.03703080117702484, 0.0900598019361496, 0.31130942702293396, -0.27781689167022705 ]
http://arxiv.org/abs/2402.09880v1
http://arxiv.org/pdf/2402.09880v1
Inadequacies of Large Language Model Benchmarks in the Era of Generative Artificial Intelligence
2024-02-15T11:08:10
2024-02-15T11:08:10
Timothy R. McIntosh, Teo Susnjak, Tong Liu, Paul Watters, Malka N. Halgamuge
cs.AI
cs.AI, cs.CL, cs.CY, cs.HC
The rapid rise in popularity of Large Language Models (LLMs) with emerging capabilities has spurred public curiosity to evaluate and compare different LLMs, leading many researchers to propose their LLM benchmarks. Noticing preliminary inadequacies in those benchmarks, we embarked on a study to critically assess 23 state-of-the-art LLM benchmarks, using our novel unified evaluation framework through the lenses of people, process, and technology, under the pillars of functionality and security. Our research uncovered significant limitations, including biases, difficulties in measuring genuine reasoning, adaptability, implementation inconsistencies, prompt engineering complexity, evaluator diversity, and the overlooking of cultural and ideological norms in one comprehensive assessment. Our discussions emphasized the urgent need for standardized methodologies, regulatory certainties, and ethical guidelines in light of Artificial Intelligence (AI) advancements, including advocating for an evolution from static benchmarks to dynamic behavioral profiling to accurately capture LLMs' complex behaviors and potential risks. Our study highlighted the necessity for a paradigm shift in LLM evaluation methodologies, underlining the importance of collaborative efforts for the development of universally accepted benchmarks and the enhancement of AI systems' integration into society.
[ -0.41357421875, -0.6613863706588745, 0.6191688776016235, 0.29931706190109253, 0.07334313541650772, 0.43158406019210815, -0.3982771337032318, -0.6484328508377075, -0.2873285412788391, 0.3004259765148163, -0.21296067535877228, -0.3290887176990509, -0.640878438949585, 0.19557012617588043, -0.4813949763774872, 0.6308666467666626, 0.011017966084182262, 0.07802297174930573, -0.44967782497406006, -0.3982110917568207, -0.33379024267196655, -0.6733669638633728, -0.4191097021102905, -0.5273172855377197, 0.08934395015239716, 0.0603729709982872, 0.6092051267623901, 0.42440539598464966, 0.6950116753578186, 0.35797426104545593, -0.12328595668077469, 0.12542465329170227, -0.26025819778442383, -0.06356317549943924, 0.012241538614034653, -0.24753251671791077, -0.6164831519126892, 0.0357193723320961, 0.6857284307479858, 0.9052013158798218, -0.05625532194972038, 0.35732501745224, 0.1609106808900833, 0.712079644203186, -0.8077822327613831, 0.18837371468544006, -0.6379046440124512, 0.038104526698589325, -0.3755427598953247, 0.05759782716631889, -0.19847433269023895, -0.3910023868083954, 0.07574547082185745, -0.23700042068958282, -0.14346134662628174, -0.07869057357311249, 0.4112406373023987, 0.4364745318889618, -0.319654643535614, -0.11736801266670227, -1.0451512336730957, 0.7911020517349243, -0.6113530993461609, 0.41010773181915283, 0.09506148099899292, 0.18589486181735992, -0.2198602706193924, -0.611240804195404, -0.42791852355003357, -0.6073547601699829, 0.4474038779735565, -0.1529882550239563, -0.2012319713830948, 0.010208801366388798, 0.32722198963165283, 0.2776387333869934, -0.39139220118522644, 0.49394068121910095, -0.1643550544977188, -0.21758303046226501, 0.82674241065979, 0.3209135830402374, 0.22047077119350433, 0.09614547342061996, -0.3424356281757355, 0.01915060728788376, -0.7904635667800903, -0.0005581712466664612, 0.42961084842681885, 0.08862648159265518, -0.08180686086416245, 0.3101396858692169, -0.26392462849617004, 0.3181402087211609, -0.3280841112136841, 0.05151236429810524, 0.46485021710395813, -0.4677702486515045, -0.22908861935138702, -0.16822728514671326, 0.9871720671653748, 0.2741098999977112, 0.3659837543964386, -0.3316004276275635, -0.21364755928516388, 0.07709560543298721, 0.4548353850841522, -0.4928104877471924, 0.04646826162934303, 0.23428058624267578, -0.3346519470214844, -0.2384515106678009, 0.13831737637519836, -0.8034851551055908, -0.5684517621994019, -0.15563775599002838, 0.10359585285186768, -0.13820980489253998, -0.35524213314056396, -0.06110785901546478, 0.04313790425658226, 0.42171138525009155, 0.3677569627761841, -0.668501615524292, 0.30779829621315, 1.0409363508224487, 0.6269741654396057, -0.3696868121623993, -0.3175337016582489, 0.09719540178775787, -0.1173240914940834, -0.5534347891807556, 0.619053304195404, -0.6004309058189392, -0.5917665958404541, 0.05767153576016426, -0.39436233043670654, -0.020852183923125267, -0.7591781616210938, 0.7440100908279419, -0.3567533791065216, -0.1838221251964569, -0.2495974898338318, -0.4316128194332123, -0.03820895776152611, 0.3395577669143677, -0.4698074162006378, 1.017381191253662, -0.006122861988842487, -0.4445856511592865, 0.3394266366958618, -0.7646251916885376, -0.37678518891334534, 0.46324360370635986, -0.45507553219795227, -0.32820409536361694, 0.22376154363155365, 0.01989329420030117, 0.17579959332942963, -0.6354058384895325, 0.6168278455734253, -0.4149465262889862, -0.49188530445098877, 0.5366395115852356, -0.867739200592041, 0.8865376114845276, 0.15749523043632507, -0.46051719784736633, 0.2844543755054474, -0.8237417936325073, 0.15401998162269592, 0.12063951790332794, -0.37263980507850647, -0.0830664187669754, 0.12354708462953568, 0.11283689737319946, 0.007652932778000832, 0.4396848976612091, -0.348506361246109, -0.08052050322294235, -0.26867160201072693, 0.7227317690849304, 0.8595588803291321, -0.30790725350379944, 0.37776699662208557, -0.3816078007221222, 0.4313492774963379, -0.3238353133201599, 0.2866310179233551, 0.11786817759275436, -0.3161395192146301, -0.7106319665908813, -0.12884175777435303, 0.1252102553844452, 0.5490026473999023, -0.1361822932958603, 0.7467200756072998, -0.30638909339904785, -0.7348326444625854, -0.5358133316040039, 0.3017091751098633, 0.4239178001880646, 0.2253420054912567, 0.14941053092479706, -0.34879952669143677, -0.41887539625167847, -0.9710727334022522, -0.2715725302696228, -0.5115386843681335, -0.1859138160943985, 0.24717891216278076, 0.6104204058647156, -0.3334009647369385, 0.7333590388298035, 0.06625596433877945, 0.0753050297498703, -0.2871018946170807, 0.19483555853366852, -0.034041035920381546, 0.4091329574584961, 0.403227299451828, -0.7073890566825867, -0.0779460072517395, -0.03596413880586624, -0.903165876865387, -0.03588036447763443, 0.07333187758922577, 0.15612882375717163, 0.28960147500038147, 0.5387132167816162, -0.6346771121025085, 0.1923639476299286, 0.3747800290584564, 0.10960137099027634, 0.622327446937561, -0.16738982498645782, 0.1692294180393219, -0.5973297357559204, 0.3582603931427002, -0.026001742109656334, 0.16001857817173004, -0.5520386695861816, 0.34841424226760864, 0.052834682166576385, 0.057312414050102234, -0.1694643795490265, 0.472551167011261, -0.42349717020988464, -0.21165330708026886, -0.15994754433631897, 0.04932871833443642, -0.1343601644039154, 0.1850733608007431, -0.5105521082878113, 0.9076385498046875, 0.5085660815238953, -0.5372121334075928, 0.5036149621009827, 0.16454283893108368, -0.5555384159088135, 0.5910845994949341, -0.6539853811264038, 0.2866066098213196, 0.1306302398443222, 0.16520321369171143, -0.652414083480835, -0.15969882905483246, 0.23811876773834229, -0.25464504957199097, 0.12104007601737976, 0.25705820322036743, -0.5853663682937622, -0.40965184569358826, -0.39579764008522034, 0.5088046789169312, 0.5758723020553589, -0.20410147309303284, 0.6379956007003784, 0.5094024538993835, -0.11216364055871964, -0.5555732846260071, -0.47513899207115173, 0.4327893853187561, -0.2907200753688812, -0.5663498640060425, 0.2485657036304474, -0.10732926428318024, -0.6866374611854553, -0.17500543594360352, -0.23435063660144806, 0.0034318496473133564, 0.6280431151390076, 0.2208828628063202, 0.2320999652147293, -0.2534126341342926, 0.1025632694363594, -0.38483867049217224, -0.024234749376773834, 0.45574092864990234, -0.025189632549881935, 0.5513512492179871, -0.44310063123703003, -0.636154055595398, -0.36653339862823486, 0.14139649271965027, 0.7655512094497681, -0.36845532059669495, 0.4396016001701355, 0.4314592182636261, -0.31784766912460327, -0.08247064799070358, -0.7476233839988708, 0.08220569789409637, -0.43567731976509094, 0.6097795367240906, -0.08921544253826141, -0.8910648822784424, 0.5409343242645264, -0.24089916050434113, 0.10491398721933365, 0.44990694522857666, 0.5500649809837341, 0.015638453885912895, 0.880732536315918, 0.5183039903640747, -0.21962782740592957, 0.26361343264579773, 0.1404242068529129, 0.3693088889122009, -0.9007341265678406, -0.34229719638824463, -0.7184454798698425, -0.11254508793354034, -0.8100045919418335, -0.2913851737976074, 0.4730790853500366, -0.05543862655758858, -0.3820427358150482, 0.018145868554711342, -0.1767650991678238, 0.23692186176776886, 0.363370418548584, -0.24564258754253387, 0.43711724877357483, -0.19619625806808472, -0.008659090846776962, 0.1974683254957199, -0.3925604224205017, -0.824999213218689, 1.2833422422409058, 0.5221743583679199, 0.7221284508705139, 0.07866041362285614, 0.4900527000427246, 0.5041199326515198, 0.30687057971954346, -0.6774360537528992, 0.7982004880905151, -0.11043856292963028, -0.5263267755508423, -0.4075940251350403, -0.4153090715408325, -0.770313560962677, 0.13092879951000214, -0.16840770840644836, -0.8907286524772644, -0.00301328650675714, -0.20516864955425262, -0.23105335235595703, 0.10442813485860825, -0.5377992391586304, 0.7617791295051575, -0.6239948868751526, -0.24448314309120178, -0.3329678475856781, -0.47918200492858887, 0.4156392514705658, -0.3278658390045166, 0.226339191198349, -0.4984833598136902, -0.009732034057378769, 0.7109644412994385, -0.15640728175640106, 0.6670286059379578, 0.12071668356657028, -0.11483489722013474, 0.10211967676877975, -0.192026749253273, 0.16255639493465424, -0.07754790037870407, -0.23067869246006012, 0.5630373358726501, -0.17231033742427826, -0.3311147391796112, -0.44927841424942017, 0.685927152633667, -0.9163571000099182, -0.9188086986541748, -0.48473191261291504, -0.48506230115890503, -0.4864204525947571, 0.07447857409715652, -0.018958501517772675, 0.258676677942276, -0.6708510518074036, 0.2974439859390259, 0.5433423519134521, -0.15395256876945496, 0.42992764711380005, 0.38389962911605835, -0.0005478272214531898, -0.18345795571804047, 0.7970686554908752, 0.10116516053676605, 0.20484712719917297, 0.11863719671964645, -0.008511845022439957, -0.25949764251708984, -0.8170313835144043, -0.36004015803337097, -0.005437120795249939, -0.6347344517707825, 0.10860864818096161, -0.45632684230804443, -0.4296376705169678, -0.37596946954727173, 0.07210542261600494, -0.5047027468681335, -0.05645618960261345, -0.16909293830394745, 0.06287139654159546, 0.044571083039045334, 0.8291128873825073, 0.2075616717338562, -0.06060105189681053, -0.6665316224098206, 0.12445154786109924, 0.1021270677447319, 0.4153655469417572, 0.15622879564762115, -0.35510098934173584, -0.057965733110904694, -0.12983198463916779, -0.37526753544807434, -0.4334234297275543, -0.13879765570163727, -0.002114748116582632, 0.9541497230529785, 0.453667551279068, 0.07855149358510971, 0.501367449760437, -0.43274831771850586, 0.6138567924499512, 0.029326120391488075, -0.9971605539321899, 0.16161656379699707, -0.19210323691368103, 0.1740027368068695, 0.5732693672180176, 0.2938402593135834, -0.5234113335609436, -0.33077698945999146, -0.40077248215675354, -1.0008288621902466, 0.3511311709880829, 0.1407041847705841, 0.3809478282928467, 0.14910493791103363, 0.14698448777198792, 0.060540489852428436, 0.3205711841583252, -0.6487760543823242, -0.2339182198047638, 0.06507178395986557, -0.1218625083565712, 0.04073890671133995, -0.08960924297571182, -0.2919864356517792, -0.11083149909973145, 0.4089028239250183, -0.09590935707092285, 0.16758839786052704, -0.09834115952253342, -0.06531000882387161, -0.02145625837147236, 0.591996967792511, 0.48368436098098755, 1.1564536094665527, -0.06315478682518005, 0.01965116523206234, 0.23906907439231873, -0.3410504162311554, 0.2517073452472687, 0.334885835647583, -0.34666866064071655, -0.4853579103946686, 0.44858118891716003, 0.6019562482833862, 0.18331880867481232, -0.9530409574508667, 0.3222535252571106, -0.054094601422548294, -0.08505042642354965, -0.5659346580505371, 0.30125609040260315, 0.030395349487662315, 0.3200564384460449, 0.5440160036087036, 0.2845429480075836, 0.08581186830997467, -0.6387755274772644, -0.07728976011276245, 0.7908533811569214, -0.24358218908309937, -0.1694735735654831, 0.5277445912361145, 0.45328715443611145, -0.42487794160842896, 0.5716052055358887, -0.10676165670156479, -0.3517022430896759, 0.6586897373199463, 0.12061018496751785, 1.1196051836013794, -0.10305516421794891, 0.20778986811637878, -0.03644360229372978, 0.6748828291893005, -0.2223048061132431, 0.021605655550956726, -0.058568645268678665, -0.8032552003860474, -0.1930394470691681, -0.6839712262153625, -0.5393898487091064, 0.2812678813934326, -0.5441135764122009, 0.028497440740466118, -0.7304584980010986, -0.247697651386261, -0.05702482536435127, 0.07535799592733383, -0.5964935421943665, -0.14582833647727966, 0.41573217511177063, 0.9218059778213501, -0.6804732084274292, 0.5129609704017639, 0.6475552916526794, -0.31585198640823364, -0.36194905638694763, 0.28407856822013855, 0.042331695556640625, -0.9282034039497375, 0.47194942831993103, 0.2655283808708191, -0.12770678102970123, -0.28517600893974304, -0.45408082008361816, -0.758705735206604, 0.8968519568443298, 0.4057600796222687, -0.6614475250244141, 0.0002666373911779374, 0.41385120153427124, 0.770523190498352, -0.3373207449913025, 0.2875868082046509, 0.8590154647827148, 0.5754098892211914, -0.23494553565979004, -1.042601466178894, 0.13531549274921417, -0.3157285749912262, 0.24217760562896729, 0.13727660477161407, -0.7959337830543518, 0.6590591669082642, -0.09862040728330612, -0.33100271224975586, 0.3376574218273163, 0.38642752170562744, 0.26916059851646423, 0.45442286133766174, 0.2818930447101593, 0.4667665958404541, 0.6604783535003662, -0.1827818900346756, 0.9700767993927002, -0.32458147406578064, -0.016252608969807625, 0.7707576751708984, -0.7886917591094971, 0.832236647605896, 0.32643207907676697, -0.4312407970428467, 0.19443292915821075, 0.45029476284980774, -0.277180939912796, -0.013453826308250427, 0.41597846150398254, -0.3261353373527527, -0.26888176798820496, -0.3163871169090271, -0.3129267692565918, 0.6641423106193542, 0.38946402072906494, -0.10626532137393951, -0.13506980240345, -0.27618494629859924, -0.1113472506403923, 0.24380835890769958, -0.16406527161598206, 0.7563987970352173, 0.05819457024335861, -0.6847883462905884, 0.3712220788002014, 0.0901639312505722, 0.6718676686286926, -0.5139957666397095, 0.16359186172485352, -0.23135723173618317, 0.08737899363040924, -0.0189500879496336, -0.739719033241272, 0.1488422453403473, 0.21750596165657043, 0.09986277669668198, -0.24571169912815094, 0.3764691948890686, 0.04840230941772461, -0.5129594802856445, 0.5064246654510498, 0.7980272173881531, 0.08153071254491806, 0.04505550488829613, -0.7512288689613342, 0.5106282830238342, -0.3401624262332916, -0.06220337375998497, 0.41581782698631287, 0.21245934069156647, -0.19543707370758057, 0.8233057260513306, 0.578789472579956, 0.04415984824299812, -0.13107198476791382, 0.24820435047149658, 0.7870853543281555, -0.5963894128799438, -0.10693594813346863, -1.093921422958374, 0.173280730843544, -0.055202141404151917, -0.5311804413795471, 0.6637161374092102, 0.37834206223487854, 0.9774687886238098, 0.30598199367523193, 0.9182600378990173, 0.03285594657063484, 0.14474618434906006, -0.4764309227466583, 0.7870845794677734, -0.3776140809059143, 0.5013434886932373, -0.2123524248600006, -1.031383991241455, -0.1435217261314392, 0.2828061878681183, -0.3232250511646271, 0.47120267152786255, 0.45884907245635986, 0.608626663684845, 0.35229501128196716, 0.003250299720093608, 0.34444350004196167, 0.32560256123542786, 0.3602792024612427, 0.36715033650398254, 1.095054030418396, -0.23542343080043793, 0.42513710260391235, 0.035031791776418686, -0.17693611979484558, -0.39888113737106323, -0.8976907730102539, -0.69590824842453, -0.45392388105392456, -0.37707284092903137, 0.026119422167539597, 0.19561120867729187, 1.018209457397461, 0.4973622262477875, -0.7472746968269348, -0.4759257137775421, -0.05441070720553398, 0.24039240181446075, -0.0908021479845047, -0.21013924479484558, 0.04404035210609436, -0.13251543045043945, -0.5550782084465027, 0.4001191556453705, 0.5484390258789062, -0.07916798442602158, -0.7706142067909241, -0.163038969039917, 0.11132927983999252, 0.13258202373981476, 0.39085593819618225, 0.4124678075313568, -1.072894811630249, -0.3118045926094055, -0.10533711314201355, -0.24163980782032013, 0.0693444013595581, 0.6440520286560059, -0.388604074716568, 0.26225781440734863, 0.34960177540779114, 0.9203505516052246, -0.19688044488430023, -0.06930172443389893, 0.584908127784729, -0.31420645117759705, -0.13609668612480164, 0.29967066645622253, 0.2678457796573639, 0.49516671895980835, -0.1268455535173416, 0.39573511481285095, 0.17433509230613708, -0.7042945623397827, -1.0199233293533325, 0.27120891213417053, -0.7879363894462585, -0.10488764196634293, 0.7966489195823669, -0.07403310388326645, -0.11822263896465302, -0.24091513454914093, 0.19725021719932556, 0.01333684753626585, -0.38591015338897705, 1.0228160619735718, 0.7329021692276001, -0.20256702601909637, -0.04995507746934891, -0.5708742141723633, 0.40470442175865173, 0.36476948857307434, -0.9713997840881348, 0.1915634274482727, 0.3749348223209381, 0.07571711391210556, 0.2787402868270874, 0.4592442214488983, -0.16150356829166412, 0.2595512270927429, -0.04405581206083298, -0.026361944153904915, 0.016648482531309128, -0.34642651677131653, -0.4921014904975891, 0.1576218605041504, 0.4436480700969696, 0.14718122780323029 ]
http://arxiv.org/abs/2402.09874v1
http://arxiv.org/pdf/2402.09874v1
Camouflage is all you need: Evaluating and Enhancing Language Model Robustness Against Camouflage Adversarial Attacks
2024-02-15T10:58:22
2024-02-15T10:58:22
Álvaro Huertas-García, Alejandro Martín, Javier Huertas-Tato, David Camacho
cs.CL
cs.CL
Adversarial attacks represent a substantial challenge in Natural Language Processing (NLP). This study undertakes a systematic exploration of this challenge in two distinct phases: vulnerability evaluation and resilience enhancement of Transformer-based models under adversarial attacks. In the evaluation phase, we assess the susceptibility of three Transformer configurations, encoder-decoder, encoder-only, and decoder-only setups, to adversarial attacks of escalating complexity across datasets containing offensive language and misinformation. Encoder-only models manifest a 14% and 21% performance drop in offensive language detection and misinformation detection tasks, respectively. Decoder-only models register a 16% decrease in both tasks, while encoder-decoder models exhibit a maximum performance drop of 14% and 26% in the respective tasks. The resilience-enhancement phase employs adversarial training, integrating pre-camouflaged and dynamically altered data. This approach effectively reduces the performance drop in encoder-only models to an average of 5% in offensive language detection and 2% in misinformation detection tasks. Decoder-only models, occasionally exceeding original performance, limit the performance drop to 7% and 2% in the respective tasks. Although not surpassing the original performance, Encoder-decoder models can reduce the drop to an average of 6% and 2% respectively. Results suggest a trade-off between performance and robustness, with some models maintaining similar performance while gaining robustness. Our study and adversarial training techniques have been incorporated into an open-source tool for generating camouflaged datasets. However, methodology effectiveness depends on the specific camouflage technique and data encountered, emphasizing the need for continued exploration.
[ -0.34380245208740234, -0.7552451491355896, 0.022854529321193695, 0.2101198434829712, -0.11330196261405945, 0.22212526202201843, -0.15985900163650513, -0.4684237539768219, -0.07079605013132095, 0.48933422565460205, -0.4230656027793884, -0.21172592043876648, -1.0254721641540527, 0.08635953813791275, -0.6033446788787842, 0.9043921828269958, 0.48164552450180054, -0.05068786442279816, 0.03922668471932411, -0.3475315272808075, -0.21655723452568054, -0.7002673745155334, -0.7687029838562012, -0.10762185603380203, 0.20778758823871613, -0.24717511236667633, 1.2174317836761475, 0.713586151599884, 0.5237422585487366, 0.3946438431739807, -0.3302728533744812, -0.024313392117619514, -0.5733194947242737, 0.39303791522979736, -0.24636095762252808, -0.5760263204574585, -0.09483424574136734, -0.19619107246398926, 0.3717901110649109, 0.34612077474594116, -0.040486834943294525, -0.09740510582923889, 0.052194688469171524, 0.3959976136684418, -1.0422641038894653, -0.09162787348031998, -0.830984890460968, -0.008725675754249096, -0.32857581973075867, 0.05714501813054085, -0.5320066809654236, 0.02935635857284069, 0.009091999381780624, -0.4596957266330719, 0.3904733955860138, -0.32599759101867676, 0.7882730960845947, 0.26352304220199585, -0.11288408190011978, -0.31602776050567627, -0.7828916311264038, 0.7705578207969666, -0.7295063138008118, 0.33060261607170105, 0.32904326915740967, 0.38341930508613586, -0.2542212903499603, -0.7379582524299622, -0.3928927779197693, -0.22546695172786713, -0.15623557567596436, 0.20539793372154236, -0.7877968549728394, -0.04932984709739685, 0.255206823348999, 0.39568793773651123, -0.6454228758811951, 0.10236557573080063, -0.1853259801864624, -0.321416437625885, 0.4467618465423584, 0.06522192806005478, 0.4897434413433075, -0.08882258832454681, -0.26746833324432373, -0.5244684815406799, -0.4562789499759674, 0.03852817788720131, 0.6198172569274902, 0.24844472110271454, 0.13601244986057281, 0.5386896729469299, 0.08961533010005951, 0.5182719826698303, -0.18788447976112366, 0.11538979411125183, -0.16928395628929138, -0.212315633893013, -0.31796780228614807, -0.4786907732486725, 0.9036612510681152, 0.02369401417672634, -0.007697329856455326, -0.616740882396698, -0.4720638394355774, 0.44737404584884644, 0.83250492811203, -0.6036054491996765, -0.3665139973163605, 0.008832268416881561, -0.21535497903823853, -0.7375369668006897, -0.04726084694266319, -1.0673874616622925, -0.5972018241882324, 0.18341661989688873, 0.44281941652297974, -0.6068782806396484, -0.2688717544078827, 0.2391442060470581, -0.3435533940792084, 0.307616651058197, -0.11692141741514206, -0.8957194089889526, 0.4777182340621948, 0.7765929698944092, 0.8400586843490601, -0.15018552541732788, -0.20768257975578308, -0.24263575673103333, -0.04922112822532654, -0.2954947352409363, 0.4612455666065216, -0.4971352517604828, -0.29300999641418457, 0.12223876267671585, 0.1272612065076828, -0.3904663920402527, -0.3128986656665802, 0.8866688013076782, -0.8191896677017212, 0.11276165395975113, 0.1500207781791687, -0.17373910546302795, -0.07729694992303848, 0.5136580467224121, -1.1160308122634888, 0.8493306636810303, 0.20546533167362213, -0.9438459277153015, -0.11240128427743912, -0.7093287110328674, -0.5667222142219543, -0.03639664500951767, 0.13146662712097168, -0.6188217997550964, -0.10394622385501862, 0.49677368998527527, 0.14755873382091522, -0.2069198340177536, 0.09255055338144302, -0.22486723959445953, -0.22136330604553223, 0.4737509489059448, -0.8069543838500977, 1.1536405086517334, 0.16296187043190002, -0.4919997751712799, -0.02092154137790203, -0.7544978857040405, -0.05676558241248131, 0.3515646159648895, -0.37971144914627075, -0.18833206593990326, -0.06329377740621567, -0.02131308987736702, -0.0962732806801796, -0.01049005426466465, -0.47487810254096985, -0.07952675223350525, -0.8958725929260254, 0.3655366599559784, 0.7515807747840881, -0.17402613162994385, 0.6609551906585693, -0.250126451253891, 0.8263500928878784, -0.3047248125076294, 0.43359363079071045, -0.16143707931041718, -0.5016037821769714, -0.8997367024421692, -0.29124248027801514, 0.1727769821882248, 0.6779516935348511, -1.1761269569396973, 0.154519721865654, -0.21048502624034882, -0.6108151078224182, -0.5774441361427307, -0.06531602144241333, 0.7877777814865112, 0.24419592320919037, 0.43828698992729187, -0.07349051535129547, -0.6595655083656311, -0.8418636918067932, -0.5572171211242676, -0.11547791212797165, -0.35100021958351135, -0.0960158258676529, 0.6030283570289612, -0.3494262993335724, 0.6935933828353882, -0.37975433468818665, -0.02270231954753399, -0.34628158807754517, 0.2161853164434433, -0.053655482828617096, 0.27307242155075073, 0.7905758619308472, -0.9419811964035034, -0.18890948593616486, -0.02723369002342224, -0.5607627034187317, 0.09338239580392838, 0.06520171463489532, -0.14410710334777832, 0.3052298426628113, 0.16694886982440948, -0.6718526482582092, 0.49968621134757996, 0.7021911144256592, -0.09589890390634537, 0.38644739985466003, -0.03959512710571289, 0.02205604873597622, -0.9115350842475891, 0.10279036313295364, -0.16312208771705627, -0.12332641333341599, -1.1206207275390625, 0.6754631400108337, 0.040502093732357025, -0.27857640385627747, -0.35930392146110535, 0.1940128058195114, -0.30310457944869995, 0.1963355839252472, -0.15444545447826385, -0.09525987505912781, 0.16966211795806885, 0.36966854333877563, -0.16683608293533325, 0.6563606858253479, 0.7340625524520874, -0.585342526435852, 0.4849874675273895, 0.052084945142269135, -0.2350596785545349, 0.09788025170564651, -0.6891482472419739, 0.2438577264547348, -0.14471177756786346, -0.09599651396274567, -0.7193956971168518, -0.16943351924419403, 0.5525116324424744, -0.6014679670333862, 0.6311427354812622, -0.26593396067619324, -0.18277722597122192, -0.1877574920654297, -0.575542151927948, 0.1709854006767273, 0.26562753319740295, -0.636218249797821, 0.8054342865943909, 0.4094200134277344, -0.016472822055220604, -0.924519956111908, -0.8194699287414551, 0.4560234546661377, -0.15706254541873932, -0.7713610529899597, 0.3773791193962097, 0.04242350161075592, -0.1549782156944275, -0.11616021394729614, -0.003478574100881815, -0.23224985599517822, 0.4225069284439087, 0.09718187153339386, 0.33657318353652954, -0.22352935373783112, -0.27014926075935364, -0.5118709206581116, -0.10529309511184692, 0.261652410030365, 0.0016847116639837623, 0.49906691908836365, -0.2905254364013672, -0.4561239182949066, -0.05600114166736603, 0.36238694190979004, 0.7528741359710693, -0.2926933169364929, 1.0567840337753296, 0.6718935966491699, -0.4889445900917053, -0.06310537457466125, -0.3891485929489136, -0.12337548285722733, -0.486724853515625, 0.5114786624908447, -0.151523157954216, -0.4763973355293274, 0.5674794912338257, 0.4120554029941559, 0.1721649169921875, 0.36060184240341187, 0.1184116005897522, 0.31513097882270813, 1.0007095336914062, 0.7301532626152039, -0.2869407534599304, 0.4251272678375244, -0.23341155052185059, 0.41488343477249146, -0.6686655282974243, -0.3969983458518982, -0.5400955080986023, -0.05903647094964981, -0.5575767755508423, -0.3546185791492462, 0.12456601858139038, -0.10766477882862091, -0.05263965576887131, 0.6104592680931091, -0.5869715213775635, 0.5614262223243713, 0.35269734263420105, 0.22208164632320404, -0.07856877148151398, -0.06669089198112488, 0.4546787440776825, -0.260043203830719, -0.8058844208717346, -0.4258808493614197, 1.2416012287139893, 0.5062313079833984, 0.8892333507537842, 0.5269257426261902, 0.19083172082901, 0.22771669924259186, 0.27277132868766785, -0.8147714138031006, 0.4483417272567749, -0.4319644868373871, -0.3170267641544342, -0.2849961221218109, -0.42962899804115295, -1.0424017906188965, 0.4424472749233246, -0.34722214937210083, -0.4157334864139557, 0.1650170087814331, -0.09130661189556122, -0.15265856683254242, 0.37542182207107544, -0.5255323648452759, 0.7469090819358826, -0.24605168402194977, -0.24206675589084625, 0.3535490334033966, -0.5731204152107239, 0.5870128870010376, -0.1399967521429062, 0.24548883736133575, 0.47564858198165894, 0.01855340041220188, 0.6327105164527893, -0.01817125454545021, 0.7996014952659607, 0.05136154592037201, 0.02688693255186081, -0.09205321222543716, 0.26518702507019043, 0.6487377882003784, -0.1096063032746315, -0.26176556944847107, 0.141482874751091, -0.2526988983154297, -0.2295827716588974, -0.7693679928779602, 0.4704302251338959, -0.7060278654098511, -0.7841428518295288, -0.4503119885921478, -0.490386426448822, 0.013524023815989494, 0.1607876569032669, 0.46932652592658997, 0.4104292690753937, -0.3930324614048004, 0.46040043234825134, 0.8504493236541748, -0.29215824604034424, 0.4973342716693878, 0.5175508260726929, 0.1612873077392578, -0.5193442106246948, 0.7870434522628784, -0.15149424970149994, 0.5911450982093811, 0.3518708050251007, 0.18003202974796295, -0.34051308035850525, -0.5294055938720703, -0.48956236243247986, -0.13759396970272064, -0.8934696316719055, -0.48635607957839966, -0.7736127376556396, -0.6096054911613464, -0.6943773031234741, -0.10356618463993073, -0.5841413140296936, -0.4038357436656952, -0.2791922390460968, 0.1163872554898262, 0.16188819706439972, 0.6540800929069519, 0.15194784104824066, 0.3488016426563263, -0.4105852544307709, 0.5937550663948059, 0.3155295252799988, 0.08979170024394989, -0.2814495861530304, -0.8039734959602356, -0.051952529698610306, 0.39028939604759216, -0.4063850939273834, -0.9743717908859253, 0.6899567246437073, 0.24779930710792542, 0.5461746454238892, 0.3535524010658264, 0.2606346011161804, 0.5541325807571411, -0.1645774394273758, 0.7933838367462158, -0.03693104162812233, -0.7910380363464355, 0.5565893054008484, -0.126640185713768, 0.36821413040161133, 0.20268292725086212, 0.2028091698884964, -0.07621601969003677, -0.8163167834281921, -0.6298016309738159, -0.9205037355422974, 0.8878511190414429, 0.7799548506736755, 0.1311538815498352, 0.08328063786029816, 0.09298732131719589, -0.35194486379623413, -0.10917415469884872, -1.0202641487121582, -0.35888826847076416, -0.6925178170204163, 0.06876020133495331, -0.005214578937739134, -0.3242413103580475, -0.46717774868011475, 0.13261336088180542, 0.7586351633071899, -0.006858877371996641, 0.08550948649644852, -0.10723356157541275, -0.2164686918258667, 0.30904605984687805, 0.4715350568294525, 0.5281042456626892, 0.20781885087490082, -0.018372580409049988, 0.22411227226257324, 0.18447300791740417, -0.6591103076934814, -0.025282874703407288, 0.16432519257068634, -0.22273343801498413, 0.0737215206027031, 0.5855021476745605, 0.6818065047264099, 0.41448748111724854, -0.39003080129623413, 0.868923008441925, -0.4113925099372864, 0.04665210843086243, -0.06589197367429733, 0.12208631634712219, -0.15086351335048676, 0.20590651035308838, 0.07717711478471756, 0.5830337405204773, 0.10059677064418793, -0.43156760931015015, -0.005546181928366423, 0.7889304161071777, -0.033744703978300095, -0.17014969885349274, 0.5645570755004883, -0.27415791153907776, -0.4932413399219513, 0.4911747872829437, -0.09223858267068863, -0.8818608522415161, 0.7676016688346863, 0.8848327994346619, 0.9364192485809326, -0.6681004762649536, 0.2693125605583191, 0.300449937582016, 0.9356420040130615, -0.1694454550743103, -0.3502369821071625, 0.06491252034902573, -0.734032928943634, 0.009166566655039787, -0.7288906574249268, -0.36646905541419983, 0.39387914538383484, -1.0004950761795044, 0.07878550887107849, -0.35399365425109863, -0.1168215423822403, -0.058828048408031464, -0.3877639174461365, -0.387207567691803, 0.11117924749851227, -0.07189822196960449, 0.7727376818656921, -0.86075359582901, 0.5527961254119873, 0.48042333126068115, -0.13261741399765015, -0.23083344101905823, -0.06216708570718765, 0.04228164628148079, -0.7163549661636353, 0.27861011028289795, 0.15036749839782715, -0.4338435232639313, -0.3728426992893219, -0.29458922147750854, -0.7608092427253723, 0.9069738388061523, 0.8227113485336304, -0.18700824677944183, 0.16156093776226044, 0.4095456898212433, 0.7213018536567688, -0.077084481716156, 0.18237590789794922, 0.8463422656059265, 0.28765222430229187, 0.19873788952827454, -0.4427970349788666, 0.015424208715558052, -0.5438342690467834, 0.2475573718547821, 0.06825391203165054, -0.16917885839939117, 0.8054002523422241, 0.17773886024951935, -0.7371379733085632, 0.1477239429950714, 0.2872956693172455, -0.06174353510141373, 0.01038624532520771, 0.39852043986320496, 0.5915225148200989, 0.5509849786758423, -0.2284015566110611, 1.197986125946045, -0.2767249345779419, 0.027954133227467537, 0.9054979085922241, 0.27246803045272827, 0.756536602973938, 0.26074808835983276, -0.029096286743879318, 0.14771410822868347, 0.11668426543474197, -0.16006048023700714, 0.5345520377159119, 0.03142518177628517, -0.41187000274658203, -0.0026589317712932825, 0.05355425551533699, -0.35998278856277466, 0.4944896996021271, 0.35484108328819275, -0.3778926432132721, -0.20355096459388733, 0.19787557423114777, 0.11334685236215591, 0.2775701582431793, -0.046708252280950546, 0.7454012632369995, -0.26231443881988525, -0.6213667988777161, 0.7047773003578186, 0.3185833990573883, 0.7537559866905212, -1.0245715379714966, 0.22118745744228363, -0.20407740771770477, 0.2672348916530609, -0.18320751190185547, -0.756818950176239, 0.6963457465171814, 0.25699788331985474, -0.24956569075584412, -0.26675906777381897, 0.9015945196151733, -0.2764723300933838, -0.52287757396698, 0.4566250443458557, -0.18422533571720123, -0.16619227826595306, -0.27417001128196716, -0.5817885398864746, 0.3369096517562866, 0.0052015031687915325, -0.33640727400779724, 0.44249728322029114, 0.13612353801727295, 0.26887497305870056, 0.9639343023300171, 0.8497161269187927, 0.1496233493089676, 0.3030301034450531, 0.1614566594362259, 1.254420518875122, -0.30342236161231995, -0.19789014756679535, -1.0526454448699951, 0.36002251505851746, -0.18039695918560028, 0.04342533275485039, 0.9214036464691162, 0.4789321720600128, 0.6538301110267639, -0.1179748997092247, 0.6730505228042603, 0.09583152830600739, 0.06384418904781342, -0.5206298828125, 0.9876376390457153, -0.056096307933330536, 0.5840516686439514, -0.14277184009552002, -0.5664843916893005, -0.5359313488006592, 0.5385952591896057, -0.08253519982099533, -0.2829256057739258, 0.39538002014160156, 1.2016689777374268, -0.12784843146800995, 0.1817174255847931, 0.4067511558532715, 0.07412394136190414, 0.64602130651474, 0.5892957448959351, 0.7694560289382935, -0.8640140891075134, 0.962617814540863, -0.4955381751060486, -0.31604549288749695, 0.1829206794500351, -0.7368530035018921, -0.9250358939170837, -0.2784256041049957, -0.16550931334495544, -0.3579429090023041, 0.29581281542778015, -0.020182177424430847, 0.53169846534729, -0.7361090183258057, 0.15754812955856323, -0.19066688418388367, 0.06123161315917969, -0.13285432755947113, -0.29312336444854736, 0.19900092482566833, -0.3055625259876251, -0.640112042427063, 0.7766454219818115, 0.26141202449798584, 0.1460474580526352, -0.38085809350013733, -0.01125600840896368, -0.11125483363866806, 0.12700015306472778, 0.48193222284317017, 0.4889959990978241, -0.7092421054840088, -0.05251983553171158, 0.014312831684947014, -0.10585763305425644, -0.2567381262779236, 0.5090588927268982, -0.5957649946212769, 0.8003624081611633, 0.2688644230365753, 1.0008107423782349, 0.21271377801895142, -0.10311845690011978, 0.6464387774467468, -0.8596576452255249, 0.31142544746398926, 0.4619556665420532, 0.31735506653785706, 0.5042898654937744, -0.48022374510765076, 0.37846094369888306, -0.034759558737277985, -0.4016410708427429, -1.0154410600662231, 0.43233078718185425, -0.4768151342868805, -0.17695890367031097, 0.9451556205749512, -0.48781946301460266, -0.32844918966293335, -0.2942240536212921, -0.021294474601745605, 0.18535059690475464, 0.09489279240369797, 0.867721438407898, 0.6191201210021973, 0.30852046608924866, -0.14310693740844727, -0.40020301938056946, 0.5253167748451233, 0.351064532995224, -0.6895888447761536, 0.1759299486875534, 0.03814353048801422, 0.11230360716581345, 0.4057115316390991, 0.13112689554691315, -0.2753657400608063, 0.2324671447277069, 0.3897809386253357, -0.3974251449108124, -0.25371861457824707, -0.31299856305122375, -0.6596075296401978, 0.34239381551742554, -0.3410581350326538, -0.38307103514671326 ]
http://arxiv.org/abs/2402.09841v1
http://arxiv.org/pdf/2402.09841v1
LAPDoc: Layout-Aware Prompting for Documents
2024-02-15T10:00:49
2024-02-15T10:00:49
Marcel Lamott, Yves-Noel Weweler, Adrian Ulges, Faisal Shafait, Dirk Krechel, Darko Obradovic
cs.CL
cs.CL, cs.CV, cs.LG
Recent advances in training large language models (LLMs) using massive amounts of solely textual data lead to strong generalization across many domains and tasks, including document-specific tasks. Opposed to that there is a trend to train multi-modal transformer architectures tailored for document understanding that are designed specifically to fuse textual inputs with the corresponding document layout. This involves a separate fine-tuning step for which additional training data is required. At present, no document transformers with comparable generalization to LLMs are available That raises the question which type of model is to be preferred for document understanding tasks. In this paper we investigate the possibility to use purely text-based LLMs for document-specific tasks by using layout enrichment. We explore drop-in modifications and rule-based methods to enrich purely textual LLM prompts with layout information. In our experiments we investigate the effects on the commercial ChatGPT model and the open-source LLM Solar. We demonstrate that using our approach both LLMs show improved performance on various standard document benchmarks. In addition, we study the impact of noisy OCR and layout errors, as well as the limitations of LLMs when it comes to utilizing document layout. Our results indicate that layout enrichment can improve the performance of purely text-based LLMs for document understanding by up to 15% compared to just using plain document text. In conclusion, this approach should be considered for the best model choice between text-based LLM or multi-modal document transformers.
[ -0.24065770208835602, -0.8062899112701416, 1.0202549695968628, 0.27970513701438904, -0.16958963871002197, -0.05928120017051697, -0.33088788390159607, -0.16375800967216492, -0.07534615695476532, 0.5292659401893616, -0.5814298987388611, -0.6071081757545471, -0.404865026473999, 0.13583256304264069, -0.3908402919769287, 0.7709327340126038, -0.3087690472602844, 0.10040008276700974, -0.6960334181785583, 0.206622913479805, -0.6192256808280945, -0.09903265535831451, -0.22717522084712982, -0.2551192343235016, 0.4153290390968323, 0.43096792697906494, 0.41074657440185547, 0.6266007423400879, 0.3606170117855072, 0.298062801361084, -0.3553815484046936, 0.5513359308242798, -0.12410052120685577, 0.3458370268344879, -0.10769745707511902, -0.4341616928577423, -0.44819724559783936, 0.08200286328792572, 0.43755966424942017, 0.7103410363197327, -0.07483396679162979, -0.35780248045921326, 0.14779284596443176, 0.5169103741645813, -0.6049048900604248, -0.01059313677251339, -0.4022700786590576, 0.13724066317081451, -0.022389724850654602, -0.4700157046318054, -0.75827956199646, -0.1340148001909256, -0.06609081476926804, -0.8871461749076843, 0.47943973541259766, 0.13215048611164093, 0.6068906784057617, 0.19689135253429413, -0.35785239934921265, -0.6005920767784119, -0.5612800717353821, 0.5354661345481873, -0.19855394959449768, 0.6098815202713013, 0.36516204476356506, -0.173190638422966, -0.08118089288473129, -0.7809304594993591, -0.5824961066246033, -0.30541032552719116, -0.37456920742988586, 0.5159046053886414, 0.23621492087841034, 0.19502709805965424, 0.4113420844078064, 0.6866686344146729, -0.6298303008079529, 0.15411032736301422, -0.32643815875053406, -0.06918463110923767, 0.20917032659053802, 0.129116952419281, 0.5718400478363037, -0.446600079536438, -0.31442520022392273, -0.2975282669067383, -0.6435800790786743, -0.03321148082613945, 0.3330741226673126, 0.09649699181318283, -0.32077986001968384, 0.5722992420196533, 0.21097111701965332, 0.8992061018943787, 0.15759938955307007, -0.1041351780295372, -0.046729814261198044, -0.3559168577194214, -0.4058046042919159, -0.08547533303499222, 0.8154381513595581, 0.11541102081537247, -0.10089097917079926, -0.21174229681491852, -0.09822776913642883, -0.21598704159259796, 0.5775951147079468, -0.5866576433181763, -0.18093469738960266, 0.26691386103630066, -0.3553769886493683, -0.40806323289871216, -0.013209574855864048, -0.5077164769172668, -0.910176157951355, -0.531855583190918, 0.2405281364917755, -0.7078995108604431, 0.37561488151550293, 0.12662096321582794, -0.4003261625766754, 0.2901313602924347, 1.0251017808914185, -1.0579921007156372, -0.00009663189121056348, 0.6967099905014038, 0.8262430429458618, -0.22464989125728607, -0.2938826084136963, -0.7287756204605103, 0.20002661645412445, -0.38031432032585144, 1.0595651865005493, -0.5816827416419983, -0.9258399605751038, 0.07999050617218018, -0.002906806068494916, -0.4134700298309326, -0.351286917924881, 1.1493656635284424, -0.3773219585418701, 0.9318302869796753, -0.3058628737926483, -0.5918257832527161, 0.25209254026412964, 0.31293511390686035, -0.5645775198936462, 0.9886850714683533, 0.26862698793411255, -0.9297117590904236, 0.3307054340839386, -0.8517166376113892, -0.6583235263824463, 0.0659458264708519, -0.4397168755531311, -0.22939848899841309, 0.07442852854728699, 0.593956470489502, 0.31758400797843933, -0.059383735060691833, -0.02318456582725048, 0.07840447872877121, -0.2988465428352356, 0.05789290741086006, -0.3238985240459442, 0.375451922416687, 0.3592260479927063, 0.07338055223226547, 0.33698534965515137, -0.6873250007629395, -0.3210408687591553, -0.034732941538095474, -0.6803278923034668, -0.3431587219238281, -0.17444714903831482, 0.22649697959423065, 0.04675927385687828, 0.28347837924957275, -0.4726901352405548, 0.36574220657348633, -0.37070900201797485, 0.10937785357236862, 0.7675774693489075, -0.13328179717063904, 1.0480282306671143, -0.47891655564308167, 0.7224653363227844, -0.3302602767944336, -0.08262216299772263, -0.7660425901412964, -0.2763713300228119, -0.45677345991134644, -0.6935163736343384, 0.23580949008464813, 0.5685726404190063, -0.5095577836036682, 0.5122058987617493, -0.21317271888256073, -0.12232788652181625, -0.2791160047054291, 0.2081720232963562, 0.10368876159191132, 0.8428192734718323, 0.19211158156394958, -0.07073280960321426, -0.47161298990249634, -0.5913060307502747, -0.20164158940315247, 0.1633419543504715, -0.16304133832454681, 0.4480975568294525, -0.02022586390376091, 0.03213026374578476, 0.7634679079055786, -0.4804238975048065, -0.3331850469112396, -0.6562382578849792, 0.0008217442664317787, 0.19848592579364777, 0.22416889667510986, 0.20711490511894226, -0.8121834993362427, -0.8368247747421265, 0.07083474844694138, -0.7000619769096375, -0.25704091787338257, -0.4264243245124817, -0.10814555734395981, 0.02842543087899685, 0.8220636248588562, -0.9433279633522034, 0.31195902824401855, 0.33050209283828735, -0.0716279149055481, 0.3569720387458801, -0.5619053840637207, 0.03564437851309776, -1.367329716682434, -0.04042528569698334, 0.055577877908945084, -0.1778724193572998, -0.8108405470848083, 0.042016319930553436, 0.66490238904953, -0.3932633697986603, -0.2672237753868103, 0.8109617233276367, -0.606704831123352, -0.040105726569890976, -0.2927923798561096, 0.48120829463005066, 0.659410834312439, 0.05829606205224991, 0.37271326780319214, 1.0304718017578125, 0.19283637404441833, -0.4072372019290924, -0.0764211043715477, 0.6926393508911133, -0.4302518665790558, 0.6801625490188599, -0.48179352283477783, 0.1806439906358719, -0.313240110874176, 0.57483971118927, -1.1005057096481323, -0.41634976863861084, 0.07404160499572754, -0.1936149001121521, 0.7728907465934753, -0.015977652743458748, -0.38766273856163025, -0.14366887509822845, -0.6005142331123352, -0.16465435922145844, 0.2980000078678131, -0.848196804523468, 0.8658993244171143, -0.17550227046012878, -0.21973615884780884, -0.5297453999519348, -0.44928300380706787, 0.05151345953345299, -0.22439038753509521, -0.9979776740074158, 0.6572133302688599, -0.02868073433637619, -0.025477241724729538, -0.5095004439353943, -0.20541082322597504, 0.4279276728630066, 0.0992482453584671, 0.41824838519096375, 0.3319673240184784, -0.02567666582763195, 0.19264449179172516, 0.21944987773895264, 0.05684920400381088, -0.2043946534395218, -0.24957191944122314, 0.7024173140525818, 0.23319889605045319, -0.5296552181243896, -0.4342432916164398, 0.36853793263435364, 0.45893144607543945, -0.4272758364677429, 0.8036165833473206, 0.5951718688011169, 0.058019790798425674, -0.24282178282737732, -0.6005522012710571, 0.05466851219534874, -0.5509785413742065, 0.19822221994400024, -0.3788749575614929, -0.7845115661621094, 0.4036978781223297, -0.28104013204574585, 0.12557530403137207, 0.26249566674232483, 0.532581090927124, -0.5631846785545349, 0.5943785905838013, 0.6839358806610107, 0.12384897470474243, 0.8511530160903931, -0.1631060689687729, 0.1738782525062561, -1.2745493650436401, -0.37388914823532104, -0.6333484649658203, -0.13749107718467712, -0.33670517802238464, -0.6795239448547363, 0.4638517200946808, 0.042768001556396484, 0.18528501689434052, 0.03880523517727852, -0.44408658146858215, 0.5905978083610535, 0.3910946846008301, 0.007808600086718798, 0.36747580766677856, 0.20041590929031372, -0.25982236862182617, 0.05273142457008362, -0.5231637954711914, -0.6258041858673096, 0.8446954488754272, 0.23114679753780365, 1.132420301437378, -0.09659069776535034, 0.7978541254997253, 0.10082380473613739, 0.030751841142773628, -0.7650910019874573, 0.32704541087150574, -0.22014108300209045, -0.07596173882484436, -0.30020877718925476, -0.17280662059783936, -1.1214066743850708, 0.2825339436531067, 0.026003563776612282, -0.7974647879600525, 0.30533525347709656, -0.08359481394290924, -0.19639995694160461, 0.06156717985868454, -0.7050828337669373, 0.6918046474456787, -0.15005053579807281, -0.21310117840766907, 0.011468985117971897, -0.22912225127220154, 0.07333117723464966, 0.05543358251452446, 0.3597778379917145, 0.35186588764190674, -0.06995999068021774, 0.29816141724586487, -0.3835322856903076, 0.6914237141609192, 0.054769035428762436, -0.5086640119552612, -0.041371285915374756, 0.1694386601448059, 0.9416991472244263, 0.06403596699237823, -0.2221694141626358, -0.6984419822692871, -0.36697620153427124, -0.11563028395175934, -0.6810734272003174, 0.8698202967643738, -0.7818643450737, -0.776576817035675, -0.06770011782646179, -0.8820973634719849, -0.38291579484939575, 0.1647125780582428, 0.5369440317153931, 0.602481484413147, -0.2528005838394165, 0.23362651467323303, 1.2240512371063232, -0.37976548075675964, 0.24308359622955322, 0.34970414638519287, -0.11486826092004776, -0.0310970526188612, 0.6240562200546265, -0.3813703656196594, 0.07331319153308868, 0.867833137512207, 0.2449614256620407, -0.5275969505310059, -0.6097385883331299, -0.5060036778450012, 0.17474262416362762, -0.9343990087509155, 0.12355129420757294, -1.1000396013259888, -0.18930116295814514, -0.4322545826435089, -0.6081703305244446, -0.003183916676789522, -0.525010347366333, -0.511259138584137, -0.25446319580078125, 0.18136025965213776, 0.6840298175811768, 0.1046023741364479, 0.38543856143951416, -0.7391026020050049, 0.4327734708786011, 0.327227383852005, 0.21144545078277588, -0.22793535888195038, -0.7632114887237549, -0.0656786561012268, -0.3385358452796936, -0.5457488894462585, -0.7557481527328491, 0.12237541377544403, 0.03474487364292145, 0.6700674891471863, 0.3209238350391388, -0.11084655672311783, 0.25685784220695496, -0.35995984077453613, 0.8323220014572144, 0.01304957177489996, -0.6784265041351318, 0.7668447494506836, -0.8389453887939453, 0.48813968896865845, 0.4143035113811493, 0.20346082746982574, -0.7474411725997925, -0.32720866799354553, -0.5509966015815735, -0.6599173545837402, 1.0206958055496216, 0.06933100521564484, 0.2661339342594147, 0.09232313185930252, 0.36933591961860657, 0.15035204589366913, 0.03356955572962761, -0.5028818249702454, 0.17901943624019623, -0.17787691950798035, -0.3739432096481323, 0.07994498312473297, -0.1473369598388672, -0.19790087640285492, 0.11769472062587738, 0.4588315486907959, -0.0952286422252655, 0.04548650607466698, 0.32720109820365906, -0.4711005389690399, 0.04789578542113304, 0.6281271576881409, 0.8157710433006287, 0.629612147808075, -0.18712742626667023, -0.0017344254301860929, 0.12599730491638184, -0.4654470682144165, 0.02946268394589424, 0.11770361661911011, -0.19672538340091705, -0.04467857629060745, 0.39715006947517395, 0.8638103604316711, 0.047939978539943695, -0.36601802706718445, 0.4340977370738983, -0.316427618265152, -0.35164782404899597, 0.11875554919242859, 0.17822973430156708, 0.18972083926200867, -0.05583404377102852, 0.07742414623498917, -0.143890842795372, 0.034201279282569885, -0.3380979597568512, -0.16195936501026154, 0.45802077651023865, -0.22221603989601135, 0.04158226028084755, 0.48528385162353516, 0.2781026065349579, -0.27756157517433167, 0.5376697182655334, -0.032161612063646317, -0.2713274359703064, 0.5033650398254395, 0.49525031447410583, 0.6721544861793518, 0.003818376688286662, 0.40147024393081665, 0.05536584556102753, 0.2248982936143875, 0.06450164318084717, 0.08480054140090942, -0.4616740047931671, -0.5333990454673767, -0.35906070470809937, -0.6162294149398804, -0.5298966765403748, 0.22359570860862732, -0.387848824262619, 0.3058103621006012, -0.4823915660381317, 0.2713821828365326, -0.044866375625133514, -0.08277083933353424, -0.5691916346549988, 0.13442645967006683, 0.2888565957546234, 1.138623833656311, -0.6030744314193726, 0.6257543563842773, 1.0650262832641602, -0.10224711149930954, -0.6568626761436462, 0.10836058109998703, 0.03282744809985161, -0.6994828581809998, 0.3038327991962433, 0.038426999002695084, -0.04038626700639725, -0.38022372126579285, -0.3244681656360626, -0.43689393997192383, 1.0426973104476929, 0.18444396555423737, -0.41805315017700195, -0.1668880730867386, 0.15233555436134338, 0.4594118297100067, -0.31812694668769836, 0.3727681338787079, 0.2740669548511505, 0.5187560319900513, 0.2041385918855667, -0.6919029355049133, 0.09594855457544327, -0.18685615062713623, 0.3064611852169037, 0.26959115266799927, -0.6073842644691467, 0.6887179613113403, -0.008675913326442242, -0.13724161684513092, 0.18754595518112183, 0.5126224160194397, 0.31492844223976135, 0.21970508992671967, 0.3424776792526245, 0.4364587366580963, 1.0886303186416626, 0.06100795418024063, 1.4763041734695435, -0.19788514077663422, -0.032056089490652084, 1.2514698505401611, -0.26561984419822693, 0.3715830147266388, 0.44763705134391785, -0.1184566393494606, 0.4828001856803894, 0.6163876056671143, 0.17042812705039978, 0.47371095418930054, -0.14366641640663147, -0.20902195572853088, -0.27904847264289856, -0.09402351081371307, -0.4789576828479767, 0.3002828359603882, 0.5431481599807739, -0.5368139743804932, -0.2900754511356354, 0.015260506421327591, -0.015681371092796326, 0.27648574113845825, -0.07277139276266098, 0.8994777202606201, 0.13571833074092865, -0.5972334742546082, 0.0631970688700676, 0.27901580929756165, 0.6092644333839417, -0.7038692831993103, 0.3142673969268799, -0.5394101142883301, -0.040387630462646484, -0.4084845185279846, -0.8839417695999146, 0.0034483822528272867, -0.08898042142391205, -0.5554607510566711, -0.62241131067276, 1.0194076299667358, -0.2630785405635834, -0.3518407642841339, -0.07095062732696533, 0.5541025996208191, -0.21423907577991486, -0.17351801693439484, -0.230362206697464, 0.0644083023071289, 0.04937119409441948, -0.15145903825759888, 0.7718529105186462, 0.5406889915466309, -0.08858877420425415, 0.3494674563407898, 0.7238456010818481, -0.1659524142742157, -0.12638133764266968, 0.4844723045825958, 0.9183765053749084, -0.3440903425216675, -0.7126623392105103, -0.6458091139793396, 0.5088569521903992, -0.31266674399375916, -0.04046554118394852, 0.7362567186355591, 0.5688879489898682, 0.4008164703845978, -0.17711128294467926, 0.9805504679679871, 0.17542524635791779, 0.3141181766986847, -0.7875568866729736, 0.6687218546867371, -0.5988109707832336, 0.4923013746738434, -0.2949732542037964, -1.068039894104004, 0.016639264300465584, 0.5777432918548584, -0.5316281318664551, -0.015475917607545853, 0.7817422747612, 0.6406786441802979, -0.32094377279281616, 0.2897734045982361, 0.23706237971782684, -0.254852294921875, 0.4985657334327698, 0.06237856298685074, 1.065186858177185, -0.1168743297457695, 0.49824899435043335, -0.08929233253002167, -0.10154057294130325, -0.1790073662996292, -0.7852458357810974, -1.0143955945968628, -0.5473747849464417, -0.22195284068584442, -0.26070860028266907, -0.24643880128860474, 0.6343345642089844, 0.47705140709877014, -0.39036211371421814, -0.038079146295785904, -0.10106860101222992, 0.4259181320667267, 0.32212361693382263, -0.2261970490217209, 0.5634210109710693, -0.6970469355583191, -0.6141726970672607, 0.8241443634033203, 0.4686940312385559, 0.21829818189144135, 0.06675802171230316, -0.02186424285173416, 0.0633295401930809, 0.19698837399482727, 0.5044088363647461, 0.08774407207965851, -0.4769010841846466, 0.09359382838010788, 0.14330534636974335, -0.3059905469417572, 0.39921048283576965, 1.0357050895690918, -0.5188276767730713, 0.5186778903007507, 0.7461591362953186, 0.5189706087112427, 0.6234650611877441, 0.20169837772846222, 0.6987794637680054, -0.9666332602500916, 0.25164124369621277, -0.12089195102453232, 0.4766552150249481, 0.611218273639679, -0.730250358581543, 0.3449828326702118, -0.2567489743232727, -0.379845529794693, -0.5430351495742798, 0.132913276553154, -0.9770053625106812, -0.3003871738910675, 1.180572748184204, 0.01871286705136299, -0.21796588599681854, 0.06177158281207085, -0.6370928287506104, -0.05205607786774635, -0.48724600672721863, 0.5905652046203613, 0.7367137670516968, -0.279190331697464, -0.3929290175437927, -0.26525112986564636, 0.5507609248161316, 0.4397437870502472, -1.0463297367095947, 0.08124864101409912, 0.48151978850364685, 0.022075314074754715, 0.2946775257587433, 0.7222722172737122, -0.1624259054660797, 0.4460914731025696, -0.21050941944122314, -0.27243393659591675, -0.23015058040618896, -0.3004138469696045, -0.3517249822616577, 0.10825876891613007, 0.1318814754486084, 0.07659327238798141 ]
http://arxiv.org/abs/2402.09808v2
http://arxiv.org/pdf/2402.09808v2
Knowledge of Pretrained Language Models on Surface Information of Tokens
2024-02-15T09:14:53
2024-02-22T15:11:57
Tatsuya Hiraoka, Naoaki Okazaki
cs.CL
cs.CL
Do pretrained language models have knowledge regarding the surface information of tokens? We examined the surface information stored in word or subword embeddings acquired by pretrained language models from the perspectives of token length, substrings, and token constitution. Additionally, we evaluated the ability of models to generate knowledge regarding token surfaces. We focused on 12 pretrained language models that were mainly trained on English and Japanese corpora. Experimental results demonstrate that pretrained language models have knowledge regarding token length and substrings but not token constitution. Additionally, the results imply that there is a bottleneck on the decoder side in terms of effectively utilizing acquired knowledge.
[ -0.30090242624282837, -0.7613649964332581, 0.7505661845207214, -0.22700870037078857, -0.4226725101470947, 0.06397120654582977, -0.14901623129844666, -0.40642082691192627, 0.22532935440540314, 0.5312256813049316, -0.23418812453746796, -0.5963820815086365, -0.8282470703125, -0.17312872409820557, -0.34394189715385437, 0.7220624685287476, -0.0616472102701664, 0.19705845415592194, -0.6182783842086792, -0.09936805814504623, -0.3609262704849243, -0.9313932657241821, -0.30741575360298157, -0.18789814412593842, 0.29507818818092346, 0.21091938018798828, 0.43354952335357666, 0.6697940230369568, 0.3862678110599518, 0.2860603630542755, -0.03609086200594902, 0.011978834867477417, -0.39403656125068665, -0.25465264916419983, -0.17826710641384125, -0.8058139681816101, -0.21264247596263885, 0.09578623622655869, 0.4965936541557312, 1.0905390977859497, 0.028399929404258728, 0.10758676379919052, -0.04660814628005028, 0.34969598054885864, -0.6735758781433105, 0.09337297827005386, -0.7553791999816895, 0.22160197794437408, -0.2512585520744324, -0.2225928008556366, -0.39196062088012695, 0.005329350009560585, 0.2046392858028412, -0.8793481588363647, 0.27215245366096497, 0.10085615515708923, 0.8229484558105469, -0.015148595906794071, -0.4332222640514374, -0.3138040006160736, -0.3940371572971344, 0.5358273983001709, -0.5386641025543213, 0.832378625869751, 0.6339300274848938, -0.018604988232254982, -0.06343147903680801, -0.9071366190910339, -0.3239773213863373, -0.39528241753578186, -0.3119928538799286, 0.03705355525016785, -0.18360380828380585, 0.23801299929618835, 0.3822743892669678, 0.17251983284950256, -0.28084006905555725, 0.29706352949142456, -0.5504289865493774, -0.32883405685424805, 0.26280394196510315, -0.11216171085834503, 0.5476852059364319, -0.012671781703829765, -0.6005118489265442, 0.20088225603103638, -1.0194661617279053, 0.14968112111091614, 0.3460555672645569, 0.21238090097904205, -0.1234128475189209, 0.7079927325248718, 0.008246514946222305, 0.5176980495452881, -0.22878818213939667, -0.08905073255300522, 0.1643042266368866, -0.32416415214538574, 0.029281754046678543, -0.09623914957046509, 0.5832912921905518, -0.0521622933447361, 0.40602099895477295, -0.6376293897628784, -0.3761026859283447, -0.24013105034828186, 0.1589118391275406, -0.7399828433990479, -0.1253487765789032, -0.24430932104587555, -0.5295823812484741, 0.1492943912744522, 0.43237224221229553, -0.19635383784770966, -0.2917306423187256, -0.3494417667388916, 0.5088456869125366, -0.5142115950584412, -0.5646951794624329, 0.09801153838634491, -0.6462389826774597, 0.08496320247650146, 0.012017310597002506, -0.9046370387077332, 0.3774547874927521, 0.715516209602356, 0.7001091241836548, -0.08413391560316086, -0.5042558908462524, -0.376740962266922, -0.06059205159544945, -0.39096489548683167, 0.6955565214157104, -0.7653585076332092, -0.6789478063583374, 0.05122721567749977, -0.05367874354124069, -0.3749668002128601, -0.4357152283191681, -0.1633281409740448, -0.7321662902832031, -0.041776325553655624, -0.48076561093330383, -1.0290899276733398, 0.14037472009658813, 0.07167592644691467, -0.5246055722236633, 0.6286817789077759, 0.11878591775894165, -1.0724414587020874, 0.6667155623435974, -0.4596508741378784, -0.5539602041244507, 0.045971933752298355, -0.35467231273651123, 0.07722441107034683, 0.7153173089027405, 0.11483033001422882, 0.14741623401641846, 0.16525302827358246, 0.0885598435997963, -0.10364456474781036, -0.40547633171081543, 0.49234622716903687, -0.18505443632602692, 0.5042869448661804, 0.22908438742160797, -0.04709869250655174, -0.12305068969726562, -0.63796067237854, -0.10973162204027176, -0.15915679931640625, -0.5150458812713623, -0.5025535821914673, -0.22936885058879852, -0.23797611892223358, 0.05125533789396286, 0.586375892162323, -0.7985548377037048, 0.2659444212913513, -0.1543552726507187, 0.43931615352630615, 0.5313870906829834, -0.07160032540559769, 0.2511395215988159, -0.020235847681760788, 0.6225078701972961, 0.48620131611824036, -0.12374157458543777, -0.17921428382396698, -0.35175010561943054, -0.8715454339981079, 0.05358158051967621, 0.7002027630805969, 0.22388936579227448, -0.6771333813667297, 0.3087807893753052, -0.2675599157810211, -0.4468505382537842, -0.32048332691192627, -0.01141387689858675, 0.6441085934638977, 0.21483127772808075, 0.21474383771419525, -0.3715703785419464, -0.5622074604034424, -0.8401206135749817, -0.6127855181694031, -0.06784602999687195, 0.12343975156545639, 0.2833043038845062, 0.5706037878990173, -0.10370424389839172, 1.0916061401367188, -0.40092018246650696, 0.015248691663146019, -0.33284634351730347, 0.5012749433517456, -0.21946020424365997, 0.5796905159950256, 0.6187686920166016, -0.42802104353904724, -0.10269490629434586, -0.09727659821510315, -0.4581044018268585, 0.016658248379826546, 0.21880806982517242, -0.08930986374616623, 0.15046438574790955, 1.0734487771987915, -0.6872353553771973, 0.5370672941207886, 0.5519306659698486, -0.4646304249763489, 0.40337303280830383, -0.6106917858123779, -0.3547945022583008, -0.8844894766807556, 0.22612373530864716, -0.4371965229511261, -0.38274475932121277, -0.7524672746658325, -0.2179444432258606, 0.05500799044966698, -0.0470617339015007, -0.3581526279449463, 0.7077359557151794, -0.6697036027908325, -0.5094490051269531, -0.5611960291862488, 0.2307511419057846, -0.017169207334518433, 0.4802737832069397, 0.5255452394485474, 0.8717278242111206, 0.48268410563468933, -0.771626889705658, -0.23340833187103271, 0.041753195226192474, -0.679011344909668, -0.011131794191896915, -0.4312201738357544, 0.4660203754901886, -0.16233454644680023, -0.0427897609770298, -0.8459908366203308, 0.07798730581998825, -0.3188795745372772, -0.3084073066711426, 0.2542470395565033, -0.14545796811580658, -0.20718736946582794, -0.24200977385044098, 0.3376621901988983, 0.45646214485168457, 0.42476344108581543, -0.3272898197174072, 0.3646230399608612, 0.714302659034729, 0.054055631160736084, -0.471233606338501, -0.7501280903816223, -0.24689102172851562, 0.02152589149773121, -0.10485200583934784, 0.35494810342788696, 0.3714712858200073, -0.04074997827410698, 0.189469113945961, -0.09649801254272461, -0.049149345606565475, 0.10142207890748978, 0.28584203124046326, -0.111685611307621, -0.22731344401836395, 0.31075596809387207, -0.06017410755157471, -0.10356446355581284, 0.07895790040493011, -0.5220230221748352, 0.9253857135772705, -0.2045680582523346, -0.536078929901123, -0.16381995379924774, 0.07767653465270996, 0.5447590351104736, -0.4835072457790375, 1.007462501525879, 0.3808113932609558, -0.5604252815246582, 0.1127917617559433, -0.576244592666626, -0.11849590390920639, -0.41427361965179443, 0.5732730627059937, -0.6848844885826111, -0.959716796875, 0.791551947593689, -0.18550226092338562, -0.21859411895275116, 0.54140704870224, 0.12682020664215088, 0.1113809198141098, 1.0837329626083374, 1.1458507776260376, 0.18543970584869385, 0.652367115020752, -0.3757927715778351, 0.018166402354836464, -0.7434336543083191, -0.4160681664943695, -0.34662580490112305, -0.2774517238140106, -0.5518770813941956, -0.2513055205345154, 0.05423761531710625, 0.5116308331489563, -0.3310566246509552, 0.26402804255485535, 0.07140018045902252, 0.4788294732570648, 0.7319524884223938, 0.12585319578647614, 0.12222277373075485, -0.07664373517036438, -0.4462556540966034, 0.08917542546987534, -0.9247215390205383, -0.44196978211402893, 1.0282740592956543, 0.48842281103134155, 0.5848478674888611, -0.2727072536945343, 0.5349648594856262, -0.046260766685009, 0.05076296627521515, -0.4600032866001129, 0.31471022963523865, -0.2595261335372925, -0.5613633990287781, -0.17122256755828857, -0.46818363666534424, -0.8973495364189148, -0.04700852558016777, -0.1295476108789444, -0.6248853802680969, 0.4605472683906555, -0.014169097878038883, -0.18165335059165955, 0.2930072546005249, -0.5260686874389648, 0.9411988258361816, -0.5298643708229065, 0.29726171493530273, -0.2715386152267456, -0.42318087816238403, 0.005073187407106161, -0.1335216909646988, 0.270355224609375, -0.00863298773765564, -0.04733627662062645, 1.3512604236602783, -0.7598397135734558, 0.6945568919181824, -0.5584287643432617, -0.007934591732919216, 0.3138684630393982, -0.09731776267290115, 0.24000275135040283, -0.10556498914957047, 0.17392577230930328, 0.33037227392196655, 0.27303171157836914, -0.35097843408584595, -0.45538339018821716, 0.21423795819282532, -1.0078306198120117, -0.6172045469284058, -0.0697130411863327, -0.19664961099624634, -0.3711140751838684, 0.46244680881500244, 0.778520941734314, 0.6189637780189514, -0.2973482012748718, 0.22964222729206085, 0.2588026523590088, -0.3066699504852295, 0.23480843007564545, 0.49449610710144043, -0.5270100831985474, -0.112518809735775, 0.7232860326766968, 0.40643763542175293, 0.2361842393875122, 0.3184804320335388, 0.19852057099342346, -0.3776949346065521, -0.7030208110809326, -0.20130112767219543, 0.19979740679264069, -0.7665970325469971, -0.16179722547531128, -0.5289503931999207, -0.41374409198760986, -0.24228042364120483, 0.17840160429477692, -0.6338793635368347, -0.5985282063484192, -0.13354070484638214, -0.35340845584869385, 0.3233930468559265, 1.201606273651123, -0.029480887576937675, 0.5866974592208862, -0.9088805913925171, 0.04756094887852669, 0.07959874719381332, 0.4968629777431488, -0.1898740530014038, -0.6245570182800293, -0.6058538556098938, 0.44230857491493225, 0.1779720038175583, -0.6971799731254578, 0.06812578439712524, 0.12862014770507812, 0.7248637676239014, 0.5299198031425476, -0.15299183130264282, 0.4847327470779419, -0.5592424869537354, 0.9029727578163147, 0.19215738773345947, -1.0555466413497925, 0.2935410439968109, -0.09320642799139023, 0.22218848764896393, 0.5435029864311218, 0.46684199571609497, -0.5415428280830383, -0.5235947966575623, -0.7307365536689758, -0.4092520773410797, 0.6293371915817261, -0.2129066288471222, 0.5059235692024231, -0.20202724635601044, 0.46523454785346985, 0.3972502052783966, 0.4620767831802368, -0.3993775546550751, 0.05380043387413025, -0.4289954602718353, -0.030929483473300934, 0.0291735976934433, -0.27955713868141174, 0.08854963630437851, -0.21746371686458588, 0.21680447459220886, 0.16754978895187378, 0.42134374380111694, -0.04859071969985962, -0.7097468376159668, 0.20118390023708344, 0.0693482756614685, 0.5387129187583923, 1.1285942792892456, -0.02911868505179882, 0.4017777740955353, 0.31712883710861206, -0.7423456311225891, -0.00931312795728445, -0.154244065284729, 0.044163934886455536, 0.037740547209978104, 0.6774453520774841, 1.2445720434188843, 0.10748899728059769, -0.5756007432937622, 0.6542356610298157, -0.20122770965099335, -0.3632782995700836, -0.14301209151744843, -0.018067605793476105, 0.11087273061275482, -0.0033410077448934317, 0.10156339406967163, -0.1602480113506317, -0.31079864501953125, -0.642324686050415, 0.16795754432678223, 0.581474244594574, -0.24458250403404236, -0.5311390161514282, 0.44023481011390686, 0.17251482605934143, -0.14360924065113068, 0.9532716274261475, 0.1652800291776657, -0.9229457974433899, 0.5232846140861511, 0.7810609340667725, 0.4942779541015625, -0.04749489948153496, -0.08524175733327866, 0.18740247189998627, 0.18749545514583588, 0.15566137433052063, 0.2583540081977844, -0.06408586353063583, -1.0645772218704224, -0.13716039061546326, -0.7548737525939941, -0.28793197870254517, 0.331835001707077, -0.5948255658149719, 0.20653122663497925, -0.6472395658493042, -0.4167989492416382, -0.3377927541732788, -0.02194436453282833, -1.1124755144119263, 0.25161558389663696, 0.24791592359542847, 1.0835531949996948, -0.7677187919616699, 0.7731099128723145, 0.7541547417640686, -0.5515437126159668, -0.869247555732727, -0.16919521987438202, -0.7903796434402466, -0.8900671005249023, 1.036737322807312, 0.3799007534980774, -0.14954538643360138, 0.17886501550674438, -0.30933719873428345, -1.069999098777771, 0.749973475933075, 0.4027089774608612, -0.5236604809761047, -0.12839551270008087, 0.6072521209716797, 0.5806735157966614, -0.43067583441734314, 0.30315101146698, 0.5291118025779724, 0.33154815435409546, -0.2467113882303238, -0.9017351865768433, -0.146134153008461, -0.42828041315078735, 0.06552468240261078, -0.06546100229024887, -0.37059807777404785, 0.942166805267334, 0.008218216709792614, -0.47930359840393066, -0.13536199927330017, 0.7994056940078735, 0.0276986975222826, -0.1874566227197647, 0.5293952822685242, 0.8191721439361572, 0.8283145427703857, -0.036675531417131424, 0.8793448805809021, -0.6761424541473389, 0.11007212847471237, 0.6298282146453857, -0.06107410043478012, 0.8589649796485901, 0.34597814083099365, -0.09389684349298477, 0.6647473573684692, 0.5766534209251404, 0.40760910511016846, 0.7274570465087891, 0.3442646265029907, 0.10778748989105225, -0.44517982006073, -0.016621103510260582, -0.5259243249893188, 0.7199569344520569, 0.479299396276474, -0.28479158878326416, -0.07458703219890594, 0.5338947772979736, 0.040473274886608124, -0.19831089675426483, -0.16500668227672577, 1.0106927156448364, 0.2516637146472931, -0.83305424451828, 0.5197800993919373, 0.26104697585105896, 0.5127159357070923, -0.4292707145214081, 0.2897181510925293, -0.4118671417236328, 0.24865303933620453, 0.021795185282826424, -0.5447460412979126, 0.27922341227531433, 0.036293305456638336, 0.18522870540618896, -0.1364418864250183, 0.9060682058334351, -0.5624865293502808, -0.34955328702926636, 0.09583877772092819, 0.6677979230880737, 0.39393582940101624, -0.04937618598341942, -0.24013486504554749, -0.044754792004823685, -0.3362114131450653, -0.35681307315826416, 0.24787114560604095, 0.5740925669670105, -0.08387812972068787, 0.29530689120292664, 0.539281964302063, 0.15899160504341125, 0.5470953583717346, 0.26977500319480896, 0.8500131964683533, -0.4840735197067261, -0.4910110831260681, -0.6788479685783386, 0.3696849048137665, 0.03980301320552826, -0.31287509202957153, 0.6292720437049866, 0.7054920196533203, 0.9632627964019775, -0.20980249345302582, 0.93814617395401, 0.1629120409488678, 0.45073914527893066, -0.9576515555381775, 0.8081464767456055, -0.5536573529243469, -0.0668535828590393, 0.07742961496114731, -0.9208984375, 0.020594168454408646, 0.734957218170166, -0.5609050989151001, 0.16134051978588104, 0.6445643901824951, 0.5413549542427063, -0.29827046394348145, -0.011200428940355778, 0.09835384041070938, -0.1209184005856514, 0.23401053249835968, 0.2859545648097992, 1.0666046142578125, -0.17297643423080444, 0.14286436140537262, -0.11488479375839233, 0.028479093685746193, -0.1470562070608139, -0.7127200961112976, -1.2460238933563232, -0.746651291847229, 0.044215284287929535, 0.14207823574543, 0.05437176674604416, 0.6110423803329468, 0.5866429805755615, -0.6020271182060242, -0.10112699866294861, -0.6556706428527832, -0.18790362775325775, 0.29223915934562683, -0.09462723881006241, 0.6004828214645386, -0.5801639556884766, -0.33472442626953125, 0.32647642493247986, -0.15112659335136414, 0.2226697951555252, -0.1587010622024536, -0.09107585996389389, -0.09606798738241196, 0.21875640749931335, 0.2947380244731903, 0.1544521600008011, -0.46842578053474426, -0.4697244167327881, 0.14404986798763275, -0.23135076463222504, -0.13119915127754211, 1.1935813426971436, -0.8267920613288879, 0.20315086841583252, 0.886127233505249, 0.5668529868125916, 0.5756186246871948, 0.1443246304988861, 0.7791715860366821, -1.1167036294937134, 0.48402145504951477, -0.16988559067249298, 0.7243143916130066, 0.32407069206237793, -0.18604247272014618, 0.013755000196397305, 0.3065302073955536, -0.14920006692409515, -0.7637789249420166, 0.2662181556224823, -0.2221183478832245, -0.5341682434082031, 0.9819622039794922, -0.3809898793697357, -0.2920415997505188, 0.013948646374046803, -0.06082945689558983, 0.7262942790985107, 0.332601934671402, 0.23797611892223358, 0.8710325360298157, 0.11291918158531189, -0.17054332792758942, -0.23711921274662018, 0.765796959400177, 0.3872797191143036, -0.7183676958084106, 0.21239741146564484, 0.11480981111526489, 0.3939425051212311, 0.3552199602127075, 0.8204283118247986, -0.07012446969747543, 0.09727661311626434, 0.32277533411979675, -0.06511557102203369, -0.5079222917556763, -0.6719254851341248, 0.14288395643234253, -0.19466504454612732, 0.285295307636261, -0.19731956720352173 ]
http://arxiv.org/abs/2402.09801v2
http://arxiv.org/pdf/2402.09801v2
EFUF: Efficient Fine-grained Unlearning Framework for Mitigating Hallucinations in Multimodal Large Language Models
2024-02-15T08:58:03
2024-06-24T00:50:58
Shangyu Xing, Fei Zhao, Zhen Wu, Tuo An, Weihao Chen, Chunhui Li, Jianbing Zhang, Xinyu Dai
cs.CL
cs.CL, cs.CV
Multimodal large language models (MLLMs) have attracted increasing attention in the past few years, but they may still generate descriptions that include objects not present in the corresponding images, a phenomenon known as object hallucination. To eliminate hallucinations, existing methods manually annotate paired responses with and without hallucinations, and then employ various alignment algorithms to improve the alignment capability between images and text. However, they not only demand considerable computation resources during the finetuning stage but also require expensive human annotation to construct paired data needed by the alignment algorithms. To address these issues, we borrow the idea of unlearning and propose an efficient fine-grained unlearning framework (EFUF), which can eliminate hallucinations without the need for paired data. Extensive experiments show that our method consistently reduces hallucinations while preserving the generation quality with modest computational overhead. Our code and datasets will be publicly available.
[ -0.5007461905479431, -1.0209602117538452, 0.3083629310131073, 0.18032601475715637, -0.32444247603416443, -0.23215627670288086, -0.4483155310153961, -0.4954664707183838, 0.03846022114157677, 0.5807632803916931, -0.4868263900279999, -0.3928990662097931, -0.2883606255054474, -0.01720990240573883, -0.4820348918437958, 0.9421263933181763, 0.14233586192131042, 0.11667044460773468, -0.4968542456626892, -0.07591688632965088, -0.08725395798683167, -0.5175046324729919, -0.444139301776886, -0.48085346817970276, 0.43412157893180847, 0.4068020284175873, 0.7938703894615173, 0.5861539244651794, 0.5983877778053284, 0.28524020314216614, 0.2437582165002823, 0.422102153301239, -0.7737743258476257, 0.14769257605075836, 0.016817867755889893, 0.08784313499927521, -0.17564444243907928, -0.577475368976593, 0.3469441831111908, 0.8983723521232605, -0.42659687995910645, -0.180718332529068, 0.1402944177389145, 0.7461379766464233, -0.6415467262268066, 0.20365329086780548, -0.5307632684707642, 0.37640997767448425, -0.026782158762216568, -0.32577913999557495, -0.41992881894111633, 0.1309819221496582, 0.031215587630867958, -0.8059970140457153, 0.3376907706260681, 0.2348097264766693, 0.7373014092445374, 0.47721773386001587, -0.11824557185173035, -0.1837540715932846, -0.6850262880325317, 0.8208784461021423, -0.398054301738739, 0.6163436770439148, 0.5924031138420105, 0.1813749372959137, -0.45954829454421997, -0.7336002588272095, -0.6322302222251892, -0.14307253062725067, -0.21278931200504303, -0.1270942986011505, 0.04215027764439583, 0.34537842869758606, 0.1688510775566101, 0.34771835803985596, -0.6827580332756042, 0.09991592168807983, -0.3297120928764343, -0.4732885956764221, 0.5833463668823242, 0.08729477971792221, 0.12411394715309143, -0.10315056890249252, -0.43469807505607605, -0.08007261157035828, -0.4395696818828583, -0.18597181141376495, 0.2606607973575592, 0.27312326431274414, 0.11182675510644913, 0.675551176071167, -0.22020378708839417, 0.6247400641441345, -0.06778442859649658, -0.24522535502910614, 0.45746245980262756, -0.05049869418144226, -0.453707218170166, 0.17982375621795654, 0.7382709383964539, 0.7367355823516846, 0.4196624755859375, -0.6392584443092346, -0.3248877227306366, 0.05666406452655792, 0.2595684230327606, -0.9657607674598694, -0.45951250195503235, 0.2691800892353058, -0.6104708313941956, -0.33096688985824585, 0.12724189460277557, -1.4270272254943848, -0.5943613052368164, -0.29843297600746155, 0.49969935417175293, -0.32187318801879883, -0.11709262430667877, 0.09403332322835922, 0.0235951766371727, 0.06245806813240051, 0.21125584840774536, -0.9603578448295593, 0.24614818394184113, 0.49478021264076233, 0.7179275155067444, -0.12882596254348755, -0.5370939373970032, -0.8092629909515381, 0.24041570723056793, -0.0685906782746315, 0.7619180679321289, -0.6896061301231384, -0.4992360472679138, 0.030173692852258682, 0.19091461598873138, 0.25110459327697754, -0.4548937976360321, 0.4463229179382324, -0.0000797076354501769, 0.12225964665412903, -0.06125321984291077, -0.48435699939727783, -0.4286797046661377, 0.05620184168219566, -0.5837730169296265, 0.9345979690551758, -0.10700465738773346, -0.42771589756011963, 0.057278938591480255, -0.5244799852371216, -0.6221486330032349, -0.13690681755542755, -0.26513078808784485, -0.47844642400741577, 0.33124008774757385, 0.4543423652648926, 0.687981367111206, -0.22232988476753235, 0.5739305019378662, -0.5489745140075684, -0.5489676594734192, 0.10488405078649521, -0.4665291905403137, 0.30842268466949463, 0.4085997939109802, -0.5253318548202515, 0.2504500150680542, -0.9098333716392517, -0.17860367894172668, 0.29910436272621155, 0.08248835802078247, -0.29202327132225037, 0.10752671957015991, 0.6405340433120728, 0.07660841196775436, -0.09137546271085739, -0.36421898007392883, -0.02686023712158203, -0.41082140803337097, 0.2479735165834427, 0.7597273588180542, -0.1441490203142166, 0.5393806099891663, -0.4064367115497589, 0.05835232883691788, 0.3121192455291748, 0.20293326675891876, -0.40046364068984985, -0.32689815759658813, -0.7741567492485046, -0.2745031714439392, -0.15563692152500153, 0.1139422133564949, -0.6263871192932129, 0.36125117540359497, 0.061427850276231766, -0.2247145175933838, -0.576827347278595, 0.40819722414016724, 0.5706384778022766, 0.47836408019065857, 0.4821198880672455, -0.10972181707620621, -0.6169763803482056, -0.9881368279457092, 0.16385550796985626, 0.22206944227218628, 0.13293354213237762, 0.17874197661876678, 0.38676196336746216, -0.48919299244880676, 0.5461909770965576, -0.6026020646095276, -0.7041454315185547, 0.15198402106761932, 0.3051743507385254, -0.6012625694274902, 0.6727824807167053, 0.4711816608905792, -0.9634630680084229, -0.004022825974971056, 0.08018328994512558, -0.8666980862617493, 0.03813333436846733, -0.26183396577835083, -0.1250704973936081, 0.561877965927124, 0.5213116407394409, -0.47824469208717346, 0.38842180371284485, 0.45070797204971313, -0.3383472263813019, 0.17499886453151703, -0.3602525293827057, 0.20552513003349304, -1.0615499019622803, 0.05650711432099342, -0.09230753779411316, -0.12315939366817474, -0.5925665497779846, 0.11554653942584991, -0.27470749616622925, -0.058691710233688354, -0.24964328110218048, 0.4477340579032898, -0.5494599938392639, -0.07008466124534607, -0.2658095359802246, 0.281059592962265, 0.12269485741853714, 0.8066011667251587, 0.20213629305362701, 0.3451678156852722, 0.5658981204032898, -0.2603723406791687, 0.21258093416690826, 0.17096532881259918, -0.06513110548257828, 0.5796980261802673, -0.20069167017936707, 0.2808728814125061, -0.4614918828010559, -0.03031889721751213, -0.9085302352905273, -0.5252427458763123, 0.1568799614906311, -0.1540629118680954, 0.25078555941581726, 0.33320608735084534, -0.44614726305007935, -0.13713376224040985, -0.3969120383262634, 0.29126349091529846, 0.31090354919433594, -0.8276113271713257, 0.7095694541931152, 0.47023525834083557, 0.2596123516559601, -0.6472015380859375, -0.7232662439346313, 0.01585753820836544, -0.14948320388793945, -0.3707396984100342, 0.39722710847854614, -0.26409631967544556, -0.10573557764291763, 0.06758321821689606, 0.04164452478289604, -0.22370170056819916, 0.10590075701475143, 0.576363742351532, 0.04555772244930267, -0.08864250034093857, 0.3911585211753845, 0.0033935613464564085, 0.0005972203216515481, -0.08981801569461823, -0.03930352255702019, 0.7704963088035583, -0.17482426762580872, -0.41252586245536804, -0.38922956585884094, 0.5552866458892822, 0.6632649898529053, -0.19661231338977814, 0.7265576124191284, 1.0745723247528076, -0.9583844542503357, -0.20970523357391357, -0.6735780239105225, -0.27186840772628784, -0.45507362484931946, 0.586657702922821, -0.3012327551841736, -0.8481478095054626, 0.5540400743484497, 0.14722467958927155, 0.026432441547513008, 0.24152563512325287, 0.5453819036483765, 0.02658664621412754, 1.040959358215332, 0.5593161582946777, 0.17004963755607605, 0.22503402829170227, 0.012313834391534328, 0.24131044745445251, -0.5923073291778564, -0.7299801111221313, -0.27247515320777893, -0.33693161606788635, -0.341143935918808, -0.3940059542655945, -0.11439214646816254, 0.30397865176200867, -0.10919643938541412, -0.1907494217157364, -0.7253556251525879, 0.8097022175788879, 0.3710376024246216, 0.15386272966861725, 0.36373403668403625, 0.35622650384902954, -0.00537071144208312, 0.04199710488319397, -0.18964844942092896, -0.38267144560813904, 1.1772834062576294, 0.06837210804224014, 0.8113188743591309, -0.04124661907553673, 0.7110650539398193, 0.17045338451862335, 0.08383221924304962, -0.8371358513832092, 0.4987494647502899, -0.18956585228443146, -0.3684147000312805, -0.4855266511440277, -0.46707192063331604, -0.6166869401931763, 0.3105417788028717, -0.525216281414032, -0.9990553855895996, 0.1645725816488266, 0.20642097294330597, -0.5465461015701294, 0.414408802986145, -0.6875256299972534, 0.8734572529792786, -0.2760345935821533, -0.5098922252655029, -0.2003178745508194, -0.4973772168159485, 0.3634338676929474, -0.4408131241798401, 0.12341201305389404, 0.02760029397904873, 0.15695974230766296, 0.8050960302352905, -0.19942137598991394, 0.8313181400299072, -0.2340848743915558, 0.026553049683570862, 0.19214752316474915, 0.06450460851192474, 0.4545583128929138, 0.048155222088098526, 0.18682950735092163, 0.14707358181476593, 0.0754965990781784, -0.19142819941043854, -0.4909419119358063, 0.9702700972557068, -0.5601824522018433, -0.30277323722839355, -0.16476260125637054, -0.7770401835441589, -0.18444091081619263, 0.17486977577209473, 0.32970836758613586, 0.5311797261238098, -0.4074493944644928, 0.5136181116104126, 0.5782750248908997, -0.18871542811393738, 0.6679885983467102, 0.05655811354517937, -0.7006199359893799, -0.5488300323486328, 1.02426016330719, 0.06846470385789871, -0.20481036603450775, 0.3423140347003937, 0.11114116758108139, -0.3496047258377075, -0.49922892451286316, -0.34289610385894775, 0.047879453748464584, -0.6611283421516418, -0.29867520928382874, -0.9143033623695374, 0.07788777351379395, -0.38521015644073486, -0.3989282548427582, -0.3586289882659912, -0.284940630197525, -0.4715432822704315, -0.06045948341488838, 0.45191386342048645, 0.7008377909660339, -0.09019100666046143, 0.26956605911254883, -0.696631669998169, 0.5102508664131165, 0.16179661452770233, 0.49873974919319153, 0.3145129978656769, -0.202057346701622, -0.15835052728652954, 0.18653541803359985, -0.3371662199497223, -0.539527952671051, 0.40279003977775574, 0.4025956988334656, 0.4478859603404999, 0.8749487400054932, 0.23138484358787537, 1.1524457931518555, -0.3479231894016266, 0.5674638152122498, 0.5077710747718811, -0.8581394553184509, 0.11877201497554779, -0.10307175666093826, -0.024265777319669724, 0.48485681414604187, 0.09254831820726395, -0.4339147210121155, -0.23540553450584412, -0.283711701631546, -0.7369228005409241, 0.5725440979003906, 0.22712817788124084, 0.0419967845082283, 0.00844066683202982, 0.17433665692806244, 0.397260457277298, 0.2599913775920868, -0.6681562662124634, -0.16718828678131104, -0.36697447299957275, -0.6125856637954712, -0.3621758818626404, -0.2474009096622467, -0.2836195230484009, -0.4409472942352295, 0.4905414283275604, -0.22968198359012604, 0.32706505060195923, 0.19997958838939667, -0.43262165784835815, -0.5123170018196106, 0.02968880720436573, 0.7803289890289307, 0.18547239899635315, -0.2545914351940155, 0.29586219787597656, 0.06918284296989441, -0.5528734922409058, 0.07303716242313385, 0.19272983074188232, -0.009761433117091656, -0.1940382570028305, 0.10073383897542953, 0.711025595664978, 0.5274012684822083, -0.9094666838645935, 0.4657231271266937, 0.02119264006614685, -0.2300020307302475, -0.3578384518623352, -0.06911784410476685, 0.16067011654376984, 0.3898097276687622, 0.30133065581321716, -0.026738401502370834, 0.23298387229442596, -0.3795102536678314, 0.4977170526981354, 0.4279046058654785, -0.3481551706790924, -0.31346046924591064, 0.7456133365631104, 0.18066376447677612, -0.4109163284301758, 0.6831112504005432, -0.3082039952278137, -0.18253213167190552, 0.3909291923046112, 0.7473176121711731, 1.0177761316299438, -0.02954033389687538, 0.24313005805015564, 0.12493519484996796, 0.26575660705566406, -0.35386550426483154, 0.08591628819704056, -0.07146018743515015, -0.6330271363258362, -0.13843309879302979, -0.9662267565727234, -0.05677159130573273, 0.34145447611808777, -0.6453450322151184, 0.1323525458574295, -0.38068994879722595, 0.044288523495197296, 0.012114832177758217, -0.30862775444984436, -0.5270837545394897, 0.1296691745519638, 0.3524931073188782, 0.27074751257896423, -0.7882243394851685, 0.7116948366165161, 0.5804433226585388, -0.37087830901145935, -0.5035719871520996, 0.046383365988731384, 0.16861680150032043, -0.4644438624382019, 0.25324875116348267, 0.6444817185401917, -0.22397470474243164, 0.13168761134147644, -0.37786152958869934, -0.5138850212097168, 0.84743332862854, 0.3781028687953949, -0.7700201869010925, -0.01572602242231369, 0.09664018452167511, 0.47661301493644714, -0.5808910727500916, -0.010250002145767212, 0.38176608085632324, 0.5076622366905212, 0.16811469197273254, -0.5965270400047302, 0.06036447733640671, -0.1585799604654312, -0.13408952951431274, 0.3243037462234497, -0.5483440160751343, 0.6703550815582275, -0.5267943739891052, -0.22153805196285248, 0.10363133251667023, 0.5999166965484619, -0.11398927122354507, 0.6273689866065979, 0.46064242720603943, 0.7845559120178223, 0.9338738918304443, -0.16054114699363708, 0.3849247694015503, -0.15023685991764069, 0.4489067792892456, 1.2232065200805664, -0.4393150508403778, 0.8195348381996155, 0.8183051347732544, 0.23999392986297607, 0.11255940049886703, 0.5057483315467834, -0.23493604362010956, 0.691301703453064, -0.03371194750070572, -0.050373855978250504, -0.43459150195121765, -0.11351685225963593, -0.3008202016353607, 0.7055485248565674, 0.11742716282606125, -0.3540193736553192, -0.36520031094551086, 0.6034332513809204, -0.1107664629817009, 0.2416989803314209, -0.20084312558174133, 0.8416432738304138, 0.0353395938873291, -0.5092800855636597, 0.5400556921958923, -0.21633002161979675, 0.7038043737411499, -0.12282170355319977, -0.22731684148311615, -0.28152886033058167, 0.4312717020511627, -0.3911327123641968, -0.3851189911365509, 0.388370156288147, -0.04653075337409973, -0.12778747081756592, 0.058735355734825134, 0.49697014689445496, -0.7546693682670593, -0.5070792436599731, 0.6271757483482361, 0.33278658986091614, 0.23433184623718262, -0.13382266461849213, -0.6559072136878967, 0.0454263873398304, 0.04040339216589928, -0.359983891248703, 0.4565875232219696, 0.3532995283603668, -0.05197763815522194, 0.49378547072410583, 0.7332447171211243, -0.27809640765190125, -0.05486626178026199, 0.2480534166097641, 0.8228026032447815, -0.6511317491531372, -0.152194082736969, -0.8894602656364441, 0.40671953558921814, -0.012539619579911232, -0.20129139721393585, 0.387802392244339, 0.5497903227806091, 0.9658039212226868, -0.15505094826221466, 0.34990784525871277, 0.05571848154067993, -0.07183634489774704, -0.6029239892959595, 1.043285608291626, -0.924322783946991, -0.04659207910299301, -0.3520653247833252, -1.0780631303787231, -0.5977182984352112, 0.7887203693389893, 0.2855903208255768, 0.006618014071136713, 0.7760518193244934, 1.2537224292755127, -0.05276404321193695, 0.2518339157104492, 0.7905175089836121, 0.11940804123878479, 0.10126692056655884, 0.5371478199958801, 0.6429737210273743, -0.2854529023170471, 0.5992957353591919, -0.765964150428772, -0.0025465490762144327, -0.351536363363266, -0.7917160391807556, -1.2047059535980225, -0.8488454222679138, -0.1929570585489273, -0.12714608013629913, 0.03639911487698555, 1.2387890815734863, 0.5244452357292175, -0.9998354315757751, -0.10599511861801147, -0.11636944860219955, -0.17612941563129425, -0.18844489753246307, -0.18308785557746887, 0.5136953592300415, -0.3378947675228119, -0.791398286819458, 0.05539916083216667, 0.41550135612487793, 0.306569904088974, -0.49532753229141235, -0.36250320076942444, -0.14119897782802582, -0.0692143365740776, 0.6781305074691772, 0.049061745405197144, -0.9323079586029053, -0.3569197356700897, 0.007539019919931889, -0.09165556728839874, 0.08613241463899612, 0.6049716472625732, -0.48914632201194763, 0.7438176274299622, 0.1821562498807907, 0.6358612775802612, 0.2583393454551697, -0.07461265474557877, 0.2855930030345917, -0.5483648777008057, 0.6383223533630371, -0.017460905015468597, 0.573129415512085, 0.5063624978065491, -0.5307472348213196, 0.3952290713787079, 0.22052627801895142, -0.4455936551094055, -1.339830994606018, -0.06686984747648239, -1.0072987079620361, -0.43814343214035034, 1.0086216926574707, 0.12273922562599182, -0.390443354845047, -0.11573272198438644, -0.31996047496795654, 0.3320244252681732, -0.38005295395851135, 1.0573790073394775, 0.6332747936248779, 0.01584916189312935, -0.16501109302043915, -0.2645041346549988, 0.6133120656013489, 0.3347212076187134, -0.8365969061851501, 0.3490974009037018, 0.7525444030761719, -0.19176596403121948, 0.24832330644130707, 0.3075442612171173, -0.05961534380912781, 0.10739148408174515, 0.07063313573598862, 0.29496416449546814, -0.5133348703384399, -0.7688919901847839, -0.48970407247543335, 0.47383466362953186, -0.28770121932029724, -0.14980582892894745 ]
http://arxiv.org/abs/2402.09773v2
http://arxiv.org/pdf/2402.09773v2
NutePrune: Efficient Progressive Pruning with Numerous Teachers for Large Language Models
2024-02-15T08:03:12
2024-06-27T04:49:11
Shengrui Li, Junzhe Chen, Xueting Han, Jing Bai
cs.CL
cs.CL
The considerable size of Large Language Models (LLMs) presents notable deployment challenges, particularly on resource-constrained hardware. Structured pruning, offers an effective means to compress LLMs, thereby reducing storage costs and enhancing inference speed for more efficient utilization. In this work, we study data-efficient and resource-efficient structure pruning methods to obtain smaller yet still powerful models. Knowledge Distillation is well-suited for pruning, as the intact model can serve as an excellent teacher for pruned students. However, it becomes challenging in the context of LLMs due to memory constraints. To address this, we propose an efficient progressive Numerous-teacher pruning method (NutePrune). NutePrune mitigates excessive memory costs by loading only one intact model and integrating it with various masks and LoRA modules, enabling it to seamlessly switch between teacher and student roles. This approach allows us to leverage numerous teachers with varying capacities to progressively guide the pruned model, enhancing overall performance. Extensive experiments across various tasks demonstrate the effectiveness of NutePrune. In LLaMA-7B zero-shot experiments, NutePrune retains 97.17% of the performance of the original model at 20% sparsity and 95.07% at 25% sparsity. Our code is available at https://github.com/Lucius-lsr/NutePrune.
[ -0.27771931886672974, -0.6913970708847046, 0.3394150137901306, 0.33503690361976624, -0.2814374268054962, 0.25758546590805054, -0.700053334236145, -0.014490130357444286, -0.11905062198638916, 0.46651262044906616, -0.47818344831466675, -0.510199785232544, -0.3480849862098694, -0.09183664619922638, -0.6189582943916321, 0.7601311802864075, 0.0034035902936011553, -0.007862395606935024, 0.032983310520648956, 0.08843044191598892, -0.7400733232498169, -0.33901187777519226, -0.5331872701644897, -0.4929732382297516, 0.38401666283607483, 0.6357175707817078, 0.2934119403362274, 0.5960524678230286, 0.2917163670063019, 0.34221938252449036, -0.3926723301410675, 0.18360523879528046, -0.674509584903717, 0.3880127966403961, -0.2725633978843689, -0.6345224380493164, -0.15304695069789886, -0.28462061285972595, 0.7625378370285034, 0.6801496148109436, -0.633640468120575, 0.12477204948663712, 0.15295052528381348, 0.6461085081100464, -0.7029561996459961, -0.09462892264127731, -0.7837854027748108, 0.07956138253211975, -0.35651782155036926, 0.2618258595466614, -0.45521894097328186, -0.36280980706214905, -0.06742949038743973, -0.5072110295295715, 0.25216108560562134, -0.12752947211265564, 0.7751719951629639, 0.2248544991016388, 0.017191343009471893, 0.13889899849891663, -1.0410034656524658, 0.8925312757492065, -0.5998849868774414, 0.18891632556915283, 0.3465525805950165, 0.449178546667099, -0.13341280817985535, -0.7707812190055847, -0.4483194053173065, -0.07365641742944717, 0.3905172049999237, -0.0261894129216671, 0.0001237942633451894, 0.023497942835092545, 0.2805631458759308, 0.521447479724884, -0.37756845355033875, 0.10884439200162888, -0.6276325583457947, 0.002837202977389097, 0.22713753581047058, -0.02754146233201027, -0.04292444884777069, 0.08248132467269897, -0.261822372674942, -0.2052106112241745, -0.7754650712013245, -0.35739728808403015, 0.35733920335769653, 0.10082079470157623, 0.40894097089767456, 0.6230362057685852, -0.09448366612195969, 0.8213607668876648, -0.22350986301898956, -0.5198503136634827, -0.16065947711467743, -0.24618785083293915, -0.2176087200641632, 0.12138309329748154, 0.49092522263526917, 0.03063839301466942, 0.6629565954208374, -0.09656670689582825, -0.004088429268449545, 0.40788739919662476, 0.2644294500350952, -1.0426489114761353, -0.5284133553504944, -0.0329124741256237, -0.03766220808029175, -0.2508506774902344, -0.26735931634902954, -0.7174957394599915, -0.16065232455730438, -0.2164735496044159, -0.023449236527085304, -1.0800150632858276, -0.41573265194892883, 0.1927226334810257, -0.09596601873636246, 0.028936535120010376, 0.4763827323913574, -0.6364134550094604, 0.6204012632369995, 0.8332138061523438, 1.0545072555541992, -0.03220348060131073, -0.25643980503082275, -0.27831247448921204, 0.3866070508956909, -0.18919210135936737, 0.44877296686172485, -0.7011337876319885, -0.3709924519062042, -0.4141218662261963, -0.21430259943008423, -0.23252476751804352, -0.8307572603225708, 0.4708012342453003, -0.35692504048347473, -0.002548431744799018, 0.07859770953655243, -0.6268675923347473, -0.34929540753364563, 0.47065919637680054, -0.6204531788825989, 1.055389165878296, 0.12452846020460129, -0.716600239276886, -0.05700812116265297, -0.26137053966522217, -0.37155306339263916, -0.07341184467077255, -0.09639956057071686, -0.5063444972038269, 0.374808669090271, 0.1422376185655594, 0.37528058886528015, -0.27674517035484314, 0.5706821084022522, -0.1656804233789444, -0.5733904242515564, -0.056511346250772476, -0.5477606058120728, 0.5492254495620728, 0.1685556173324585, -0.13733917474746704, -0.1215590238571167, -0.6142083406448364, -0.1388315111398697, 0.34928420186042786, -0.3932031989097595, -0.47518256306648254, 0.12142610549926758, -0.08149564266204834, 0.060604676604270935, -0.054794199764728546, -0.36035215854644775, 0.6051168441772461, -0.5053666830062866, 0.5607410073280334, 0.8204755783081055, -0.09325393289327621, 0.29143989086151123, -0.2946862578392029, 0.7669048309326172, 0.09225720912218094, 0.0865950956940651, -0.2707638740539551, -0.1886565089225769, -0.7080210447311401, -0.5372552871704102, 0.4848114550113678, 0.3842732012271881, -0.5134233236312866, 0.16296090185642242, -0.321738064289093, -0.539442241191864, -0.37692975997924805, 0.3020577132701874, 0.2642630636692047, 0.5617835521697998, 0.2070305347442627, -0.36704614758491516, -0.3463030159473419, -0.8520451784133911, 0.03480366989970207, -0.2099734991788864, 0.05453456938266754, 0.12150336802005768, 0.46828049421310425, 0.2699583172798157, 1.0331149101257324, -0.8355135917663574, -0.1916384994983673, -0.22695808112621307, -0.36681950092315674, 0.37725645303726196, 0.5206788778305054, 0.3097932040691376, -0.5669847726821899, -0.5348044037818909, -0.10005214065313339, -0.15090835094451904, 0.01696345955133438, -0.027651753276586533, -0.16736596822738647, -0.06533010303974152, 0.055168237537145615, -0.7507891654968262, 0.23394565284252167, 0.5229161381721497, 0.044809311628341675, 0.98616623878479, 0.050036437809467316, -0.22535094618797302, -0.954201340675354, 0.16723674535751343, -0.059106409549713135, -0.5273477435112, -0.39881858229637146, -0.04151000455021858, -0.0913250520825386, -0.2060856968164444, -0.4634138345718384, 0.2726356089115143, -0.7015178203582764, 0.06150098517537117, -0.2733755111694336, 0.17955118417739868, 0.15966877341270447, 0.5043094754219055, 0.1623232066631317, 0.5492635369300842, 0.706694483757019, -0.6293970942497253, 0.3553604781627655, 0.040691301226615906, -0.5583592653274536, 0.46021318435668945, -0.4778911769390106, 0.06927131116390228, -0.0404655784368515, 0.3390323519706726, -0.7115052938461304, -0.09066589921712875, 0.23779071867465973, 0.1278601735830307, 0.5051819682121277, -0.36270034313201904, -0.5451064109802246, -0.4621184468269348, -0.37397363781929016, 0.27239394187927246, 0.5263954401016235, -0.4836708605289459, 0.4099167287349701, 0.25111034512519836, -0.18944202363491058, -0.5014569163322449, -0.5543078184127808, 0.11785808205604553, -0.6721808314323425, -0.5567294955253601, 0.5274972915649414, 0.0059811887331306934, -0.13347792625427246, 0.019394883885979652, -0.5343873500823975, -0.24518081545829773, 0.21049201488494873, 0.0728481337428093, 0.1930427998304367, -0.13349401950836182, 0.2210698425769806, 0.019973477348685265, 0.10666061192750931, -0.28152111172676086, -0.2648862302303314, 0.90838623046875, 0.06246506795287132, -0.36846724152565, -0.10053283721208572, 0.18424658477306366, 0.37532198429107666, -0.42396828532218933, 0.863641083240509, 0.4722937047481537, -0.3840036988258362, -0.5796088576316833, -0.7217713594436646, -0.394072949886322, -0.5082350969314575, 0.6748077273368835, -0.32504701614379883, -0.9103074669837952, 0.290654718875885, -0.6477075815200806, 0.3249671161174774, -0.02641119435429573, 0.4509698450565338, 0.2837893068790436, 0.5458617806434631, 0.4874473512172699, -0.2650240957736969, 0.592071533203125, -0.37822699546813965, -0.044778354465961456, -0.8682978749275208, -0.10139520466327667, -0.5272268056869507, -0.36563384532928467, 0.03330962359905243, -0.7166820764541626, 0.24961018562316895, 0.6072590947151184, -0.2070414423942566, 0.34986352920532227, -0.9471459984779358, 0.6919018626213074, 0.22685065865516663, 0.061994828283786774, 0.4583105444908142, 0.25302112102508545, 0.1265546977519989, 0.1251819133758545, -1.0517841577529907, -0.571243941783905, 0.7556442618370056, 0.371113121509552, 0.8449832201004028, 0.12225200235843658, 0.8187055587768555, -0.4871066212654114, 0.4087887406349182, -0.7294617891311646, 0.7753912210464478, -0.15099656581878662, -0.7242420315742493, -0.23186913132667542, -0.567869246006012, -0.7510725855827332, 0.6005468964576721, 0.14417612552642822, -0.9404573440551758, -0.05617629736661911, 0.34058481454849243, -0.3257824778556824, 0.5136346220970154, -0.8464430570602417, 0.7511359453201294, -0.12388832122087479, -0.4259791374206543, -0.6217324733734131, -0.37429800629615784, 0.7760626673698425, -0.2657182216644287, 0.0006806728197261691, -0.3777264952659607, -0.010788553394377232, 0.8296145796775818, -0.6466194987297058, 1.0547795295715332, -0.23716892302036285, 0.0890594944357872, 0.45817747712135315, 0.2440459430217743, 0.6439344882965088, -0.09384739398956299, -0.17365796864032745, 0.0801926851272583, -0.03760559484362602, -0.25766903162002563, -0.46814805269241333, 0.8400622606277466, -0.5290843844413757, -0.7245528101921082, -0.24101494252681732, -0.35633188486099243, -0.12247289717197418, 0.17092514038085938, -0.08827687054872513, 0.16382266581058502, -0.22258298099040985, 0.2012767344713211, 0.6256753206253052, -0.17047953605651855, 0.624160885810852, 0.5257683992385864, -0.3103596270084381, -0.19775737822055817, 0.971665620803833, 0.46071645617485046, 0.14928682148456573, 0.1861906796693802, 0.35023581981658936, 0.006314381491392851, -0.6218077540397644, -0.15768085420131683, 0.3850780725479126, -0.2619692385196686, -0.48938652873039246, -0.39852169156074524, -0.1494860053062439, -0.10168232768774033, -0.07458624988794327, -0.8214426040649414, -0.6372951865196228, -0.2411716729402542, -0.003917299211025238, 0.5450500845909119, 0.257193922996521, 0.24222002923488617, 0.7538551092147827, -0.5444819927215576, 0.02256689965724945, -0.004868924617767334, 0.3325035870075226, 0.23670494556427002, -0.3362593650817871, -0.34529441595077515, -0.28473135828971863, -0.6543025374412537, -1.0278197526931763, 0.3823757767677307, 0.5412103533744812, 0.18427647650241852, 0.44362035393714905, 0.11510282009840012, 0.988785445690155, -0.696073055267334, 0.4274519979953766, 0.345389723777771, -0.707133948802948, 0.47999870777130127, -0.1075066402554512, 0.5077473521232605, 0.6165282130241394, 0.1940547078847885, -0.5284327268600464, -0.45963677763938904, -0.4946702718734741, -1.1104367971420288, 0.7828493118286133, 0.1693243831396103, -0.07786758244037628, 0.07336253672838211, 0.4137400984764099, 0.10078148543834686, 0.2619161903858185, -0.5381669998168945, -0.1009829193353653, -0.14570832252502441, -0.062330104410648346, 0.08900284022092819, -0.1950337141752243, -0.17010997235774994, -0.2608007788658142, 0.8258873224258423, 0.07206686586141586, -0.2483033835887909, -0.06434036791324615, -0.06227629631757736, 0.32606467604637146, 0.38787606358528137, 0.21884757280349731, 0.7510327696800232, -0.04891518875956535, 0.2503899931907654, 0.27531149983406067, -0.6299861073493958, 0.34621715545654297, 0.02904951199889183, -0.16583821177482605, 0.02809748239815235, 0.1925634741783142, 0.7528639435768127, 0.268144816160202, -0.6089492440223694, 0.24392364919185638, 0.024351496249437332, -0.0060558319091796875, -0.35132843255996704, 0.42256271839141846, 0.4167128801345825, 0.16476929187774658, 0.18317045271396637, -0.0545504204928875, -0.26610249280929565, -0.2578410804271698, 0.1088746041059494, 0.1992986649274826, 0.04710085690021515, -0.37774959206581116, 0.30385351181030273, 0.07600074261426926, -0.0948929414153099, 0.9634835720062256, 0.18859948217868805, -0.49872490763664246, 0.4514521062374115, 0.6939112544059753, 0.6651241183280945, -0.6746075749397278, 0.26657888293266296, 0.40824732184410095, 0.28868284821510315, -0.5506475567817688, -0.08409210294485092, -0.1890859305858612, -0.6572543382644653, -0.8736135959625244, -0.7758333086967468, -0.23990829288959503, 0.029971227049827576, -0.3594246208667755, 0.20185336470603943, -0.4976382553577423, -0.2500327229499817, -0.12457704544067383, 0.12449020147323608, -0.3879830837249756, -0.040225230157375336, 0.011914363130927086, 1.1256330013275146, -0.7184081673622131, 1.2673587799072266, 0.643487274646759, 0.083587646484375, -1.0271494388580322, -0.28759264945983887, -0.12996633350849152, -0.5396525263786316, 0.3456861972808838, 0.23791936039924622, 0.1239134818315506, 0.10265857726335526, -0.3098549544811249, -0.5547465085983276, 1.0361047983169556, 0.8938741683959961, -1.2191188335418701, -0.15206289291381836, -0.14274027943611145, 0.17048808932304382, 0.040634334087371826, 0.25677382946014404, 0.5867042541503906, 0.6136375069618225, 0.46154671907424927, -0.745101809501648, -0.10953079164028168, 0.0073725017718970776, 0.04246770963072777, 0.4033816456794739, -0.8558468818664551, 0.6286695599555969, 0.10943397879600525, -0.3227546215057373, -0.18424251675605774, 0.6396557688713074, 0.60209721326828, -0.04238886013627052, 0.7889631986618042, 0.7044357657432556, 0.9262971878051758, 0.019154902547597885, 0.6921362280845642, -0.37769851088523865, 0.32356125116348267, 1.1441389322280884, -0.4471895396709442, 0.6596356630325317, 0.6397622227668762, -0.44713082909584045, 0.3375718891620636, 0.5333144068717957, -0.008896867744624615, 0.33567187190055847, 0.5303481817245483, -0.48137450218200684, -0.3466552197933197, -0.12179741263389587, -0.2616282105445862, 0.42129454016685486, 0.2190524786710739, 0.10966197401285172, -0.47399064898490906, 0.032815515995025635, 0.34855034947395325, -0.11900617182254791, -0.25115537643432617, 0.43297576904296875, 0.3829677999019623, -0.7971691489219666, 0.5909057855606079, 0.23486655950546265, 0.5867660045623779, -0.8390538096427917, 0.021649697795510292, -0.2360185980796814, 0.4606569707393646, -0.21569159626960754, -0.3647117614746094, 0.47534987330436707, 0.16109974682331085, -0.15283142030239105, -0.2391252964735031, 0.851591169834137, -0.5272384881973267, -0.6188751459121704, 0.019606944173574448, 0.1923246830701828, 0.40889257192611694, -0.2600845396518707, -0.5313228964805603, 0.3004153370857239, 0.14052164554595947, -0.6200582981109619, 0.40459421277046204, 0.26755860447883606, -0.300860732793808, 0.7257963418960571, 0.41862112283706665, 0.3489285707473755, 0.14860594272613525, -0.16007085144519806, 1.276929259300232, -0.5093392133712769, -0.357360303401947, -1.1987637281417847, 0.3726269006729126, -0.0882372036576271, -0.10693357139825821, 0.8676872253417969, 0.785374104976654, 0.645564615726471, 0.07994119077920914, 0.2509159445762634, -0.021983180195093155, 0.34889453649520874, -0.2487761229276657, 0.42837637662887573, -0.28607869148254395, 0.4759792387485504, -0.2767498195171356, -1.2647857666015625, 0.01341287326067686, 0.8053173422813416, -0.24480019509792328, -0.05661807209253311, 0.4705665409564972, 0.7807607054710388, -0.33472007513046265, -0.04984497278928757, 0.18470558524131775, 0.2616147994995117, 0.37188297510147095, 0.7019602656364441, 0.7364424467086792, 0.10381532460451126, 0.6347962021827698, -0.48789048194885254, -0.2524084150791168, 0.1469617635011673, -0.7165597677230835, -0.7228158116340637, -0.1961614340543747, -0.7365260720252991, -0.09401459246873856, 0.09282168000936508, 0.5532848834991455, 1.0896334648132324, -0.496225506067276, -0.35937076807022095, -0.25763562321662903, 0.26629638671875, -0.2721222937107086, -0.2494523972272873, 0.4493577778339386, -0.002766957739368081, -0.7890306711196899, 0.6854224801063538, 0.08354564011096954, -0.27332305908203125, -0.4251053035259247, 0.0133637310937047, -0.3311956524848938, -0.017505260184407234, 0.4033223092556, 0.3012864887714386, -0.2984960079193115, 0.08961160480976105, -0.30327150225639343, 0.27984827756881714, -0.08750756084918976, 0.7384681105613708, -0.9698165655136108, 0.10430160909891129, 0.2711668312549591, 0.467233806848526, 1.1044148206710815, 0.19526143372058868, 0.5506037473678589, -1.1097681522369385, 0.4413338601589203, 0.49270445108413696, 0.1960347443819046, 0.2967321276664734, 0.09742799401283264, 0.6083846688270569, 0.30647584795951843, -0.4520927965641022, -1.187273383140564, 0.22184592485427856, -0.7711552381515503, -0.6326737999916077, 0.9944451451301575, -0.407806396484375, -0.5166110396385193, 0.23944775760173798, -0.24791644513607025, 0.24747295677661896, -0.30709734559059143, 0.4921562075614929, 0.7818631529808044, 0.16345219314098358, -0.3450188636779785, -0.5170938968658447, 0.009669417515397072, 0.5610164999961853, -0.47392717003822327, 0.14791961014270782, 0.6011590361595154, 0.4098118841648102, -0.02785889245569706, 0.6632593870162964, 0.04985034838318825, -0.2420593649148941, -0.11737941205501556, 0.21311552822589874, -0.40569061040878296, -0.5207123160362244, -0.1181129589676857, 0.6055803894996643, -0.012398364022374153, -0.26081547141075134 ]
http://arxiv.org/abs/2402.09760v1
http://arxiv.org/pdf/2402.09760v1
Grounding Language Model with Chunking-Free In-Context Retrieval
2024-02-15T07:22:04
2024-02-15T07:22:04
Hongjin Qian, Zheng Liu, Kelong Mao, Yujia Zhou, Zhicheng Dou
cs.CL
cs.CL, cs.AI, cs.IR
This paper presents a novel Chunking-Free In-Context (CFIC) retrieval approach, specifically tailored for Retrieval-Augmented Generation (RAG) systems. Traditional RAG systems often struggle with grounding responses using precise evidence text due to the challenges of processing lengthy documents and filtering out irrelevant content. Commonly employed solutions, such as document chunking and adapting language models to handle longer contexts, have their limitations. These methods either disrupt the semantic coherence of the text or fail to effectively address the issues of noise and inaccuracy in evidence retrieval. CFIC addresses these challenges by circumventing the conventional chunking process. It utilizes the encoded hidden states of documents for in-context retrieval, employing auto-aggressive decoding to accurately identify the specific evidence text required for user queries, eliminating the need for chunking. CFIC is further enhanced by incorporating two decoding strategies, namely Constrained Sentence Prefix Decoding and Skip Decoding. These strategies not only improve the efficiency of the retrieval process but also ensure that the fidelity of the generated grounding text evidence is maintained. Our evaluations of CFIC on a range of open QA datasets demonstrate its superiority in retrieving relevant and accurate evidence, offering a significant improvement over traditional methods. By doing away with the need for document chunking, CFIC presents a more streamlined, effective, and efficient retrieval solution, making it a valuable advancement in the field of RAG systems.
[ -0.2423587441444397, -0.6695058345794678, 0.5902011394500732, 0.276563823223114, -0.5914058685302734, 0.10107996314764023, -0.023403581231832504, -0.4237830638885498, 0.3976321518421173, 0.45708167552948, -0.09389844536781311, -0.33484241366386414, -0.4463123679161072, -0.04584214463829994, -0.6375433802604675, 0.7936455607414246, 0.11949165165424347, -0.017286771908402443, -0.4160124361515045, -0.14398930966854095, -0.7225093841552734, -0.46397703886032104, -0.5267692804336548, -0.3443678617477417, -0.14527000486850739, 0.6020604372024536, 0.7016854882240295, 0.6927326321601868, 0.2956361770629883, 0.16563236713409424, -0.44312039017677307, 0.07783186435699463, -0.5240190625190735, 0.10506229102611542, -0.33637115359306335, -0.20221839845180511, -0.2764308452606201, -0.007056358270347118, 0.6281200051307678, 0.4117617905139923, -0.15932384133338928, -0.10948378592729568, -0.15560239553451538, 0.7196956276893616, -1.0424509048461914, -0.14078548550605774, -0.8917253613471985, -0.08659270405769348, -0.2047933042049408, -0.4716460704803467, -0.6834931969642639, 0.021782437339425087, -0.1329849511384964, -0.6578235626220703, 0.2771191895008087, 0.02468584105372429, 0.9668170809745789, 0.17065311968326569, -0.4778427481651306, -0.6772368550300598, -0.49641844630241394, 0.7063907384872437, -0.6895908713340759, 0.5794853568077087, 0.6258609294891357, 0.24646911025047302, -0.26347866654396057, -0.6352747082710266, -0.4728716313838959, -0.23773348331451416, -0.2820096015930176, 0.1900399923324585, 0.21382783353328705, 0.02088111825287342, 0.06036171689629555, 0.682451069355011, -0.2856955826282501, -0.3378836512565613, -0.13452331721782684, -0.08448360115289688, 0.4114511013031006, -0.005734515376389027, 0.38245365023612976, -0.30294933915138245, -0.5103908181190491, -0.0697721540927887, -0.5765970945358276, 0.026588886976242065, 0.15154026448726654, 0.32706987857818604, 0.08188097923994064, 0.43838685750961304, -0.48352470993995667, 0.6103571057319641, 0.5170188546180725, -0.19963832199573517, 0.10367394983768463, -0.1969379484653473, -0.3320566415786743, 0.21001717448234558, 0.5944722890853882, 0.1910029500722885, -0.46193936467170715, -0.45959562063217163, -0.35884371399879456, -0.0668896958231926, 0.4141428470611572, -0.8065800070762634, 0.21236446499824524, 0.27937060594558716, -0.4909856617450714, -0.5603152513504028, 0.3549526333808899, -0.8045645952224731, -0.25513336062431335, -0.06666465848684311, 0.22460217773914337, -0.727363646030426, -0.32501843571662903, 0.05898823216557503, -0.39228999614715576, 0.5986940860748291, 0.12357840687036514, -0.8815467953681946, 0.6548024415969849, 0.8727837204933167, 0.8263338804244995, -0.07188888639211655, 0.2917129695415497, -0.7717486619949341, 0.22479303181171417, -0.4464484453201294, 0.8854206800460815, -0.6576340198516846, -0.5435696244239807, -0.1357894241809845, -0.05698850005865097, 0.1788971871137619, -0.8052276372909546, 1.0164874792099, -0.8220463395118713, 0.2501314878463745, -0.27320700883865356, -0.6400274634361267, -0.09399747103452682, 0.3345751166343689, -0.5884257555007935, 1.2581796646118164, 0.17223340272903442, -0.9902588129043579, 0.25547805428504944, -0.3396952748298645, -0.4098188281059265, 0.2958821952342987, -0.327658087015152, 0.12691158056259155, 0.27964478731155396, 0.13366924226284027, 0.18266013264656067, -0.3501812815666199, 0.6328096985816956, -0.0003524631611071527, -0.6618927717208862, -0.1819978654384613, -0.260267972946167, 0.6987115144729614, 0.42284369468688965, -0.45404142141342163, 0.04099493473768234, -0.8649153113365173, 0.18363627791404724, 0.09226619452238083, -0.453250914812088, -0.7980643510818481, 0.2319342941045761, 0.21586070954799652, 0.4642173945903778, 0.0894506499171257, -0.5850780606269836, -0.18242090940475464, -0.7501128911972046, -0.02594027668237686, 0.36370405554771423, 0.028230207040905952, 0.6898843050003052, -0.19744740426540375, 0.22999027371406555, 0.10894202440977097, -0.27345359325408936, -0.3168294131755829, -0.22513535618782043, -0.5288471579551697, -0.292177677154541, 0.3113945424556732, 0.7065719962120056, -0.8128018379211426, 0.5247707962989807, -0.3522709012031555, -0.2774166464805603, -0.43750375509262085, -0.16817480325698853, 0.5265696048736572, 0.6811118125915527, 0.49317076802253723, -0.44209024310112, -0.4845486581325531, -0.668451726436615, -0.33099424839019775, -0.030707474797964096, -0.13023093342781067, 0.5099157094955444, 0.2868783473968506, -0.14826396107673645, 1.1487770080566406, -0.340101033449173, -0.12074382603168488, -0.2020791918039322, 0.07534343749284744, 0.1515333652496338, 0.6298832297325134, 0.38223129510879517, -1.0958906412124634, -0.4207552671432495, 0.02905983291566372, -0.8908678293228149, -0.08546848595142365, -0.11633533239364624, -0.3690614402294159, 0.30513709783554077, 0.5664544105529785, -0.49761924147605896, 0.5273604393005371, 0.3363518714904785, -0.7806085348129272, 0.4223704934120178, -0.010222595185041428, 0.25072482228279114, -1.0616408586502075, 0.49413421750068665, -0.4578842520713806, -0.43432778120040894, -0.754615068435669, 0.5077117681503296, 0.3983887732028961, -0.046215783804655075, -0.288840651512146, 0.648099958896637, -0.5634737014770508, 0.04501387104392052, -0.6812113523483276, 0.23177699744701385, -0.0038316226564347744, 0.21349447965621948, 0.08543119579553604, 0.8730514049530029, 0.1733155995607376, -0.5750790238380432, -0.3780369460582733, 0.34265342354774475, -0.0980382040143013, 0.5550428032875061, -0.3620491027832031, 0.22454749047756195, -0.3537653982639313, 0.4732803702354431, -0.5897436738014221, -0.2966642379760742, 0.29618212580680847, -0.564017653465271, 0.40553033351898193, -0.10100361704826355, -0.31312528252601624, 0.02627437189221382, -0.30071499943733215, 0.5527968406677246, 0.342943012714386, -0.6433390378952026, 0.6359949707984924, 0.49896785616874695, 0.27050551772117615, -0.8770134449005127, -0.34392648935317993, 0.3304995894432068, -0.10607972741127014, -0.4057144522666931, 0.6872520446777344, -0.21801014244556427, -0.33289384841918945, 0.03694944083690643, -0.5269026756286621, -0.3649959862232208, 0.2222839891910553, 0.13567610085010529, 0.029943004250526428, -0.0482763946056366, -0.1567748337984085, 0.34201711416244507, -0.07622881978750229, 0.011290094815194607, -0.26039987802505493, 0.46697962284088135, 0.06951892375946045, 0.007916998118162155, -0.2108362466096878, 0.6452357769012451, 0.5455325245857239, -0.2820078134536743, 0.8428210616111755, 0.38907691836357117, -0.6972651481628418, -0.03359314799308777, -0.5758960247039795, 0.015598831698298454, -0.4638357162475586, -0.2196483165025711, -0.5669659972190857, -0.9536100029945374, 0.3633763790130615, -0.1509837955236435, -0.1593659669160843, 0.5037617087364197, 0.35387352108955383, 0.19222305715084076, 0.6303311586380005, 0.798524022102356, -0.1100585088133812, 0.4237712323665619, -0.15332452952861786, 0.01857828162610531, -0.9408470988273621, -0.1882125288248062, -0.6001825332641602, 0.33186134696006775, -0.0818062350153923, -0.6003149747848511, 0.027041282504796982, 0.6075363159179688, 0.046527400612831116, 0.19424588978290558, -0.5647626519203186, 0.6480715870857239, 0.23459585011005402, 0.05099780112504959, 0.3544069528579712, -0.07401163876056671, -0.49599239230155945, 0.27727988362312317, -0.4376836121082306, -0.4502648413181305, 0.7878435850143433, 0.11574899405241013, 0.19578643143177032, 0.13873714208602905, 0.6749261617660522, 0.21878880262374878, 0.5477719902992249, -0.8002965450286865, 0.39552250504493713, -0.08766307681798935, -0.8613088130950928, -0.08701860904693604, -0.3873710632324219, -0.6171073317527771, 0.7076682448387146, -0.2606273591518402, -0.6482183337211609, 0.1724136918783188, -0.07456059008836746, -0.12154562026262283, 0.37012842297554016, -0.3088698387145996, 0.5387160778045654, 0.011940748430788517, -0.3122842609882355, -0.29764148592948914, -0.76870197057724, 0.4908742904663086, 0.015227189287543297, 0.31092607975006104, 0.08204639703035355, 0.013482378795742989, 0.5447080731391907, -0.39192062616348267, 0.3753279745578766, -0.33023500442504883, -0.11021966487169266, 0.6062932014465332, 0.15421703457832336, 0.5307514667510986, 0.24000144004821777, -0.2991282045841217, -0.11964729428291321, 0.1290023773908615, -0.44004005193710327, -0.544892430305481, 0.7729277014732361, -0.3809586763381958, -0.4965702295303345, -0.5643284320831299, -0.5236412882804871, -0.16386713087558746, 0.5689422488212585, 0.22143734991550446, 0.46622434258461, -0.5802422761917114, 0.2908484935760498, 0.9028599262237549, -0.1736779808998108, 0.3723185658454895, 0.6367939710617065, 0.04546388238668442, -0.6045331358909607, 0.8333002924919128, -0.15852311253547668, -0.03273770213127136, 0.7928723096847534, 0.07199382781982422, -0.20179833471775055, -0.6163073182106018, -0.5517033934593201, 0.2716265916824341, -0.598141074180603, -0.4084259271621704, -1.0046104192733765, 0.031756915152072906, -0.6255006790161133, -0.2868815064430237, -0.22794339060783386, -0.3162390887737274, -0.33651912212371826, -0.13168244063854218, -0.17904385924339294, 0.5329160094261169, 0.1596369743347168, 0.25877827405929565, -0.8699523210525513, 0.5841675996780396, -0.18130387365818024, 0.5949591994285583, 0.06291305273771286, -0.4919172525405884, -0.3919629752635956, -0.2552846372127533, -0.2687588930130005, -1.22030770778656, 0.47042006254196167, 0.042161162942647934, 0.41484642028808594, 0.2684170603752136, 0.20210246741771698, 0.8512104153633118, -0.5747818946838379, 0.7081220746040344, -0.14652284979820251, -1.1623029708862305, 0.49159497022628784, -0.5418310165405273, 0.27763137221336365, 0.8064336180686951, 0.19687022268772125, -0.6240684390068054, -0.28872108459472656, -0.7453764081001282, -1.3013324737548828, 0.7188566327095032, 0.16398026049137115, 0.011701690033078194, -0.3832699656486511, 0.5943614840507507, 0.018046751618385315, 0.09823726117610931, -0.3651672303676605, -0.04514181986451149, -0.2564859092235565, -0.3421637713909149, 0.19291090965270996, -0.6041820049285889, -0.22070430219173431, -0.04226754605770111, 0.84794682264328, -0.4605483114719391, 0.363254189491272, 0.4860880970954895, -0.34209418296813965, -0.32282763719558716, 0.4832708239555359, 0.4970889687538147, 0.3482764661312103, -0.45400744676589966, -0.08878082782030106, 0.2904641926288605, -0.5250906944274902, 0.14554758369922638, 0.13385923206806183, -0.4781646728515625, 0.17083846032619476, -0.023730039596557617, 0.5272781252861023, 0.3976874053478241, -0.8643847703933716, 0.6320106983184814, -0.24438884854316711, -0.051226913928985596, -0.6908577680587769, -0.27719244360923767, -0.13845615088939667, -0.08841505646705627, 0.6295254826545715, -0.15077316761016846, 0.5386912822723389, -0.3433166444301605, 0.5298312902450562, 0.44941961765289307, -0.468927800655365, -0.1331033557653427, 0.6950827240943909, -0.059463102370500565, -0.022035982459783554, 0.5714221000671387, -0.31491002440452576, -0.13880494236946106, 0.5000191330909729, 0.9377118349075317, 0.9562246799468994, -0.010780799202620983, 0.2010507732629776, 0.433671236038208, 0.10902223736047745, -0.3844005763530731, 0.279220312833786, -0.29541513323783875, -0.5989064574241638, -0.2843623161315918, -0.79438316822052, -0.321359246969223, 0.08475465327501297, -0.9044021368026733, 0.09360966086387634, -0.5836249589920044, 0.21685555577278137, -0.5117442607879639, 0.050328221172094345, -0.27855435013771057, 0.5431855916976929, 0.22163023054599762, 1.4906173944473267, -0.583118736743927, 0.9142236113548279, 0.8003522753715515, -0.28247764706611633, -0.9501733183860779, 0.2243044227361679, 0.01766716130077839, -0.056813761591911316, 0.337356299161911, 0.3723614811897278, -0.3084924519062042, -0.04104945436120033, -0.5419309735298157, -1.1998066902160645, 1.3350030183792114, 0.045954927802085876, 0.09273169934749603, -0.08785994350910187, -0.344078928232193, 0.5269306898117065, -0.5493573546409607, 0.4012424647808075, 0.5592460036277771, 0.2108088731765747, 0.18529757857322693, -0.7197360992431641, 0.5520426034927368, -0.4033113718032837, 0.059195760637521744, 0.21240049600601196, -0.7274221181869507, 0.5496626496315002, 0.29165735840797424, -0.7666178345680237, 0.3493597209453583, 1.0125373601913452, 0.3737315833568573, 0.6436643600463867, 0.5946968197822571, 0.8678663969039917, 0.7450995445251465, 0.13278739154338837, 0.977954089641571, -0.5029600858688354, 0.23708660900592804, 1.1212564706802368, -0.25433728098869324, 1.0146219730377197, 0.5335435271263123, 0.34621191024780273, 0.7552021741867065, 0.18329282104969025, 0.5303625464439392, 0.5484487414360046, 0.0350196473300457, -0.4224138557910919, -0.02611609175801277, -0.1938411146402359, -0.208894744515419, 0.379599392414093, 0.533225417137146, -0.3267708122730255, -0.2873992621898651, -0.2026318460702896, 0.17951840162277222, 0.30740368366241455, -0.18588440120220184, 0.8292808532714844, -0.14985312521457672, -0.8600162863731384, 0.7155435681343079, 0.410814493894577, 0.8958526849746704, -0.573152482509613, -0.10629411041736603, -0.41263347864151, -0.09147713333368301, -0.3399015963077545, -0.2192183881998062, 0.6453307867050171, 0.10405626147985458, -0.3747895658016205, -0.25972780585289, 1.082610845565796, -0.36300182342529297, -0.11873438209295273, 0.3484314978122711, 0.43597662448883057, 0.224233478307724, -0.13270923495292664, -0.4711224138736725, -0.028851067647337914, -0.15441188216209412, -0.14470358192920685, 0.4407062530517578, 0.4924014210700989, -0.3774469196796417, 0.4711379110813141, 0.710198163986206, -0.25081026554107666, -0.12229081243276596, -0.1624813675880432, 1.1572887897491455, -1.0173012018203735, -0.8115315437316895, -0.3551974296569824, 0.5176100134849548, -0.007987725548446178, 0.021192682906985283, 0.49836960434913635, 0.7318781614303589, 0.8186049461364746, 0.08223608881235123, 0.5503180623054504, -0.5743404030799866, 0.48896393179893494, -0.47852733731269836, 0.7556319236755371, -0.5189897418022156, 0.06765955686569214, -0.2994534969329834, -0.5551996231079102, -0.19596602022647858, 0.29800331592559814, 0.19339218735694885, -0.16669288277626038, 0.896003782749176, 0.6407359838485718, -0.06775293499231339, 0.16917553544044495, 0.29790976643562317, 0.025211472064256668, 0.3893490433692932, 0.18538285791873932, 0.45520108938217163, -0.6914001703262329, 0.3897615671157837, -0.19948677718639374, -0.46428877115249634, -0.009110141545534134, -0.6679813861846924, -0.5586725473403931, -0.4349071979522705, 0.1695866733789444, -0.5218098759651184, 0.12504296004772186, 0.9711601138114929, 0.6050569415092468, -0.9977552890777588, -0.21457314491271973, -0.15974830090999603, 0.0671968013048172, -0.34928324818611145, -0.3203616440296173, 0.22142188251018524, -0.5870725512504578, -0.5386715531349182, 1.0459034442901611, 0.09075357764959335, -0.0834553986787796, 0.12301337718963623, -0.053448136895895004, -0.590986967086792, 0.30772045254707336, 0.6457594633102417, 0.39503854513168335, -0.6171454787254333, -0.3315541446208954, 0.009896635077893734, -0.17813371121883392, 0.10816754400730133, 1.1527507305145264, -1.281873106956482, 0.2235066145658493, 0.6258791089057922, 0.7655099630355835, 0.3047757148742676, 0.4856061637401581, 0.48015692830085754, -0.8704985976219177, 0.4126686751842499, 0.30405718088150024, 0.12949517369270325, 0.40062379837036133, -0.8092447519302368, 0.6016345024108887, 0.3753455877304077, -0.4330121576786041, -0.8230504393577576, 0.15690794587135315, -1.0415687561035156, -0.4035634696483612, 1.0671744346618652, -0.06294012069702148, -0.307770311832428, -0.14961223304271698, -0.16768448054790497, 0.3165912926197052, -0.5416840314865112, 0.7314174175262451, 0.6652997136116028, 0.13292331993579865, 0.04860283061861992, -0.39717528223991394, 0.5576270222663879, 0.5690264701843262, -0.62326580286026, -0.001913849264383316, 0.751787006855011, 0.2929975688457489, 0.28353190422058105, 1.1434167623519897, -0.5401394963264465, 0.11758098006248474, 0.005956348497420549, -0.058587539941072464, 0.11635943502187729, -0.48353835940361023, -0.6835795640945435, 0.6055324077606201, -0.11041182279586792, 0.17854443192481995 ]
http://arxiv.org/abs/2402.09759v1
http://arxiv.org/pdf/2402.09759v1
Efficient Language Adaptive Pre-training: Extending State-of-the-Art Large Language Models for Polish
2024-02-15T07:17:10
2024-02-15T07:17:10
Szymon Ruciński
cs.CL
cs.CL, cs.AI
This study explores the potential of fine-tuning foundational English Large Language Models (LLMs) for generating Polish text. The first step involves Language Adaptive Pre-training (LAPT) on a high-quality dataset of 3.11 GB, consisting of 276 million Polish tokens. The LAPT is followed by additional fine-tuning aimed at solving nine KLEJ challenges. Our trained model Curie-7B-v1 not only generates Polish text with the lowest perplexity of 3.02 among decoder-based Polish models but also closely rivals the performance of the best Polish encoder-decoder models with a less than 2% gap on 8 out of 9 tasks. Curie-7B-v1 used approximately 2-3% of a typical dataset size to learn Polish. The LAPT was completed in less than five days using a consumer GPU, highlighting the method's efficiency. The proficiency of the model in Polish was significantly enhanced, demonstrating the viability of this approach for adding new languages to existing LLMs by training just 1.2% of its parameters. To contribute to the community's collaborative progress, the model has been released as open-source.
[ -0.20503206551074982, -0.782723069190979, 0.6644692420959473, 0.2651638984680176, -0.42215120792388916, 0.1836249679327011, -0.7505701184272766, -0.5032514333724976, 0.003972822334617376, 0.5394682884216309, -0.45565298199653625, -0.5146508812904358, -0.6386888027191162, 0.19173511862754822, -0.2164650559425354, 0.6980950236320496, -0.1671411395072937, 0.21680030226707458, 0.14469480514526367, 0.21347858011722565, -0.4297223687171936, -0.5637449622154236, -0.4924299418926239, -0.10363893955945969, 0.24540886282920837, 0.6832194328308105, 0.4181632399559021, 0.3621267080307007, 0.5520702004432678, 0.3219665288925171, 0.10620710998773575, 0.19679300487041473, -0.7689367532730103, 0.12121321260929108, -0.20312915742397308, -0.2405988723039627, -0.6250150203704834, -0.09068793803453445, 0.6165405511856079, 0.7573568224906921, -0.2324461191892624, 0.17223751544952393, -0.05176115036010742, 0.8494645357131958, -0.6139414310455322, 0.16900548338890076, -1.0257405042648315, -0.1978294402360916, -0.4798460006713867, 0.028694506734609604, -0.6447479128837585, -0.03207915648818016, -0.17216558754444122, -0.9153270721435547, 0.11356249451637268, 0.1176118478178978, 0.5903942584991455, -0.10456487536430359, 0.0859542116522789, -0.5280676484107971, -0.7677971124649048, 0.6579365730285645, -0.7452684640884399, 0.5131455063819885, 0.30299443006515503, 0.139786958694458, -0.312114417552948, -0.8426361680030823, -0.4991772770881653, -0.3443618714809418, 0.30153557658195496, 0.22658108174800873, -0.08237656950950623, -0.04978734999895096, 0.23372125625610352, 0.42605066299438477, -0.5430701375007629, 0.274385929107666, -0.5748203992843628, -0.11841557174921036, 0.5787959098815918, 0.18134352564811707, 0.3394611179828644, 0.35598239302635193, -0.12798355519771576, 0.08968854695558548, -0.8665479421615601, -0.07409847527742386, 0.5074630379676819, 0.6796342134475708, -0.1266472488641739, 0.4577358365058899, -0.4780769944190979, 0.7476126551628113, 0.14839695394039154, -0.046372704207897186, 0.4423367977142334, -0.363861083984375, -0.15983575582504272, 0.19914546608924866, 0.8118767738342285, 0.10501684993505478, 0.45397183299064636, -0.21207231283187866, -0.21380680799484253, 0.1742914468050003, 0.20255506038665771, -0.819293200969696, -0.42352360486984253, -0.14501510560512543, -0.2549867033958435, -0.1974533647298813, -0.10565713793039322, -0.368897408246994, -0.18104979395866394, -0.16095302999019623, 0.42968085408210754, -0.45829305052757263, -0.30747485160827637, 0.7106361985206604, 0.32511329650878906, 0.012513672932982445, 0.4253328740596771, -1.0324641466140747, 0.3990766406059265, 0.36864739656448364, 0.6063632965087891, -0.17911182343959808, -0.37821778655052185, -0.574118971824646, 0.04988864064216614, -0.6730908751487732, 0.6548548936843872, -0.4882763624191284, -0.2540576756000519, -0.0604570172727108, 0.21435493230819702, -0.0718185305595398, -0.4060474932193756, 0.5430487990379333, -0.6340551972389221, 0.24596291780471802, -0.1259404867887497, -0.6661435961723328, 0.16458344459533691, 0.1543155163526535, -0.6617282629013062, 1.05436110496521, 0.38947463035583496, -0.7120093107223511, 0.2699319124221802, -0.6644955277442932, -0.5351400971412659, 0.3449613153934479, 0.21163222193717957, -0.21042901277542114, 0.34386128187179565, 0.16185951232910156, 0.4502622187137604, -0.19484105706214905, 0.11511598527431488, -0.29654955863952637, -0.2138894647359848, -0.12197481840848923, -0.08075891435146332, 0.6208535432815552, 0.31064990162849426, -0.11887215077877045, 0.21223171055316925, -1.0151684284210205, -0.046853676438331604, 0.22820214927196503, -0.39492303133010864, -0.22174473106861115, -0.1584399938583374, 0.23363107442855835, 0.35451677441596985, 0.5487126111984253, -0.8409352898597717, 0.06001868098974228, -0.6766330599784851, 0.4187809228897095, 0.6684474349021912, -0.35001102089881897, 0.44650888442993164, 0.10257605463266373, 0.4097253978252411, -0.17968541383743286, 0.18112295866012573, -0.12947389483451843, -0.26823750138282776, -0.5493259429931641, 0.014917248860001564, 0.5012915134429932, 0.49038246273994446, -0.7867493629455566, 0.3963794410228729, -0.35195451974868774, -0.47677579522132874, -0.44520530104637146, 0.33440303802490234, 0.27131757140159607, 0.554095983505249, 0.20760498940944672, -0.34553900361061096, -0.5691123604774475, -0.8242747187614441, -0.1358446180820465, -0.03980501741170883, 0.0891149565577507, -0.07987706363201141, 0.4461004436016083, 0.20755697786808014, 0.5518969893455505, -0.2344525158405304, -0.11358863115310669, -0.5951802134513855, -0.2825372815132141, 0.38782745599746704, 0.4896649718284607, 0.4864219129085541, -0.570447564125061, -0.9764612913131714, 0.34939098358154297, -0.4992172420024872, -0.10083213448524475, 0.27931663393974304, -0.15061144530773163, 0.21022579073905945, 0.7519569993019104, -0.46036094427108765, 0.050380028784275055, 0.6991742253303528, -0.488422155380249, 0.5564217567443848, -0.6287478804588318, 0.07866476476192474, -1.1043450832366943, 0.05756993219256401, -0.46318116784095764, -0.3896833658218384, -0.8770320415496826, 0.1971828192472458, 0.22652578353881836, -0.09225235879421234, -0.6601723432540894, 0.5406545996665955, -0.5152041912078857, 0.01817016489803791, -0.46950632333755493, 0.39068010449409485, -0.17915299534797668, 0.2647072672843933, 0.10925158113241196, 0.9510232210159302, 0.4736468493938446, -0.34181809425354004, 0.17783693969249725, 0.28764185309410095, -0.7686001658439636, 0.037664398550987244, -0.53163743019104, 0.19935846328735352, -0.037990376353263855, -0.11979209631681442, -0.7855040431022644, -0.2960423529148102, 0.051357220858335495, -0.4197940528392792, 0.33558857440948486, 0.04401593282818794, -0.4212642014026642, -0.3787023723125458, -0.07852097600698471, 0.07759518176317215, 0.6664813756942749, -0.4586367905139923, 0.5594338178634644, 0.3537079691886902, -0.5590883493423462, -0.41220948100090027, -0.46628686785697937, 0.15476711094379425, 0.1132545918226242, -0.6567866802215576, 0.29083681106567383, -0.24320659041404724, -0.10504458099603653, -0.1482376903295517, 0.12302333116531372, 0.05616779252886772, 0.29724687337875366, -0.04240982234477997, 0.17507782578468323, -0.262667179107666, 0.050497427582740784, -0.07078995555639267, -0.03734545782208443, -0.10775814205408096, -0.15385274589061737, 0.8080292344093323, -0.2927505075931549, -0.13803593814373016, -0.12070465087890625, 0.2703448235988617, 0.5028274655342102, -0.35265713930130005, 0.780841588973999, 0.5767748355865479, -0.30886751413345337, -0.12875573337078094, -0.5458267331123352, 0.08011241257190704, -0.4896579086780548, 0.755045473575592, -0.5198616981506348, -1.0587644577026367, 0.635943591594696, -0.07480919361114502, 0.03275028616189957, 0.48456960916519165, 0.8545401692390442, 0.026408378034830093, 0.9062587022781372, 0.8618252277374268, -0.13252869248390198, 0.6386304497718811, 0.14008302986621857, 0.18017733097076416, -0.6496994495391846, -0.002633459633216262, -0.45994049310684204, 0.11844431608915329, -0.45620420575141907, -0.3078853487968445, -0.013859331607818604, 0.45015817880630493, -0.21800462901592255, 0.16299422085285187, -0.17100712656974792, 0.6235570907592773, 0.3181063234806061, 0.24019694328308105, 0.30526620149612427, 0.12586714327335358, 0.025824548676609993, 0.09302332252264023, -0.8779134154319763, -0.4556649625301361, 1.299623727798462, 0.2764228880405426, 0.6467300653457642, -0.12637010216712952, 0.5930233597755432, -0.022350819781422615, 0.3786821961402893, -0.4856477975845337, 0.39252522587776184, -0.6490563154220581, -0.5219979882240295, -0.46833115816116333, -0.1732751578092575, -0.8232852816581726, 0.05298759788274765, -0.44574132561683655, -0.46226194500923157, -0.11601284146308899, 0.4459816813468933, -0.2574010491371155, 0.3024812936782837, -0.693095862865448, 0.8538761138916016, -0.10907546430826187, -0.4726077616214752, -0.2611640691757202, -0.4951975345611572, 0.2257993519306183, -0.45948272943496704, 0.5375822186470032, -0.2657734453678131, 0.10304316133260727, 0.7364585399627686, -0.32687896490097046, 0.573767900466919, -0.3896401822566986, -0.16418126225471497, 0.12290649861097336, -0.09326748549938202, 0.7380598783493042, -0.28329989314079285, -0.17405131459236145, -0.06997641175985336, -0.34004732966423035, -0.6377326250076294, -0.279247909784317, 0.536990761756897, -0.6167380213737488, -0.5341812372207642, 0.11279086023569107, -0.6433346271514893, -0.48961490392684937, 0.5315840244293213, 0.41512322425842285, 0.4407464265823364, -0.420919805765152, 0.29006558656692505, 0.7626667022705078, -0.32251405715942383, 0.4164174199104309, 0.704804003238678, -0.32815834879875183, -0.4022912085056305, 0.7331404089927673, -0.10343440622091293, 0.5415248870849609, 0.22625501453876495, 0.22278998792171478, -0.17790505290031433, -1.2069165706634521, -0.5493429899215698, 0.1613747775554657, -0.6930885314941406, -0.07987622916698456, -0.48202839493751526, -0.014320988208055496, -0.4286843538284302, -0.22005370259284973, -0.6969149708747864, -0.3066183030605316, -0.04101529344916344, -0.10970327258110046, 0.33986949920654297, 0.9712225794792175, 0.09953418374061584, 0.5531198382377625, -0.7362347841262817, 0.11695188283920288, 0.03315079212188721, 0.5968354344367981, -0.2998311519622803, -0.6204537153244019, -0.6042571067810059, 0.003131990088149905, 0.040406592190265656, -0.5197246670722961, 0.45888131856918335, 0.17869912087917328, 0.44228217005729675, -0.09072790294885635, 0.033765990287065506, 0.4860661029815674, -0.9288358688354492, 0.8514041900634766, 0.23921675980091095, -0.8757737874984741, 0.38981398940086365, -0.5601899027824402, 0.4290679693222046, 0.8280088901519775, 0.2784714102745056, -0.1518966555595398, -0.4772954285144806, -0.42177316546440125, -0.8170543313026428, 0.6636055707931519, 0.049642276018857956, 0.3692801296710968, -0.11310920864343643, 0.46851447224617004, 0.16419373452663422, 0.12346050143241882, -0.7549889087677002, 0.09002263844013214, -0.02233109250664711, -0.503577709197998, -0.3933088481426239, -0.31695684790611267, 0.27426889538764954, -0.22139081358909607, 0.9674142599105835, -0.06529279053211212, -0.10220924764871597, 0.12206090241670609, -0.6661630868911743, -0.19458052515983582, 0.37739577889442444, 0.9073939919471741, 0.8484694361686707, -0.19247297942638397, -0.15277568995952606, 0.42975011467933655, -0.9818394184112549, 0.035335879772901535, 0.031312357634305954, 0.0858759954571724, -0.09058773517608643, 0.3794092833995819, 1.0018481016159058, 0.21296222507953644, -0.745250403881073, 0.6505425572395325, -0.09109601378440857, -0.516463577747345, -0.2351703941822052, -0.08496508002281189, 0.2620859146118164, 0.09387243539094925, 0.1631474494934082, -0.18234050273895264, -0.04698755592107773, -0.39118367433547974, -0.02064199186861515, 0.3626914620399475, -0.32563722133636475, -0.3494657278060913, 0.5528991222381592, 0.18501196801662445, -0.12296067178249359, 0.6128441095352173, -0.03758108615875244, -0.5428854823112488, 0.26380494236946106, 0.7952210307121277, 0.533570408821106, -0.4655696153640747, -0.1874849945306778, 0.3962637782096863, 0.4078775644302368, -0.4157807528972626, 0.5281370878219604, 0.3674634099006653, -0.9152311086654663, -0.7222674489021301, -0.8512272238731384, -0.2149595320224762, 0.3109630048274994, -0.6239402294158936, 0.2719026803970337, -0.34339481592178345, 0.049323368817567825, -0.15270817279815674, 0.14376172423362732, -0.6383216977119446, 0.11972308158874512, 0.1522805392742157, 1.2510877847671509, -1.0938975811004639, 1.1704719066619873, 0.6956142783164978, -0.05176357924938202, -0.8899426460266113, -0.4523806869983673, -0.7153741121292114, -0.854669451713562, 0.5923097729682922, -0.11286170780658722, -0.26054924726486206, 0.21315838396549225, -0.4902721345424652, -0.774380624294281, 0.7318159937858582, 0.5928092002868652, -1.1324760913848877, -0.015178915113210678, -0.0005943434662185609, 0.5622890591621399, -0.5609861016273499, -0.2837996780872345, 0.5019261240959167, 0.3551657199859619, -0.27205848693847656, -1.0348535776138306, -0.17344515025615692, -0.4199222922325134, 0.010618352331221104, 0.3520190715789795, -0.36151817440986633, 0.9321244359016418, -0.09340132772922516, -0.1547289788722992, 0.1829865425825119, 0.5964986681938171, 0.1532585173845291, -0.0759318545460701, 0.5054919719696045, 0.5244711637496948, 0.6908302307128906, 0.06479430198669434, 1.020147681236267, -0.651360809803009, 0.2453494518995285, 1.2964646816253662, -0.2696281969547272, 1.0575487613677979, 0.4052855670452118, -0.2311159372329712, 0.5033840537071228, 0.5089328289031982, 0.18096275627613068, 0.5465330481529236, 0.03820861876010895, -0.23368807137012482, -0.6188768148422241, 0.4307708740234375, -0.41043004393577576, 0.2654053866863251, 0.39182940125465393, -0.3485507667064667, -0.11235247552394867, 0.3643437623977661, -0.18209989368915558, 0.36053159832954407, -0.7022169828414917, 0.7969868183135986, -0.1358257532119751, -0.36844491958618164, 0.46225228905677795, -0.03469139710068703, 0.6313698887825012, -0.7072641253471375, 0.24700048565864563, -0.04208345338702202, 0.28497233986854553, -0.04692305251955986, -0.6037255525588989, 0.0109991654753685, 0.027111327275633812, -0.324077844619751, -0.26990050077438354, 0.8704372048377991, -0.6713778972625732, -0.8068013787269592, 0.14173832535743713, 0.5563744306564331, 0.11189394444227219, -0.02416352368891239, -0.5191618800163269, 0.29182618856430054, -0.037476252764463425, -0.3030695617198944, 0.39967018365859985, 0.2985574007034302, -0.16132554411888123, 0.36571940779685974, 0.5685323476791382, 0.4045862555503845, 0.20094987750053406, 0.11421216279268265, 0.8531429171562195, -0.43096214532852173, -0.5910232067108154, -0.8023245334625244, 0.4610118269920349, -0.032992299646139145, -0.15951846539974213, 0.7184990644454956, 0.6306209564208984, 1.1118378639221191, -0.4661177098751068, 0.8161198496818542, 0.09388451278209686, 0.7266514301300049, -0.6883454918861389, 0.7494475245475769, -0.32770484685897827, 0.12076252698898315, -0.25832176208496094, -0.768799364566803, -0.29934754967689514, 0.6843194961547852, -0.4166179597377777, -0.12192443013191223, 0.5024362802505493, 0.6222273111343384, -0.0758962482213974, 0.0016959412023425102, 0.4852519929409027, 0.3750876188278198, 0.12180013954639435, 0.6239057779312134, 0.8095994591712952, -0.41547560691833496, 0.2897484302520752, -0.28435438871383667, -0.25416088104248047, 0.11732891201972961, -0.99840247631073, -0.8801114559173584, -0.4462587535381317, -0.05461740866303444, -0.19843080639839172, 0.3086628019809723, 1.1496907472610474, 0.5634425282478333, -0.9592120051383972, -0.29959210753440857, -0.28532275557518005, -0.29303035140037537, 0.1724289059638977, -0.06401805579662323, 0.31508535146713257, -0.7406802177429199, -0.6543749570846558, 0.6637609004974365, 0.23585273325443268, -0.016361167654395103, 0.03614407032728195, -0.2543187439441681, 0.0012531044194474816, -0.14270251989364624, 0.9745904803276062, 0.04417605325579643, -0.493779718875885, -0.26835089921951294, 0.06699204444885254, 0.056290220469236374, 0.1808357685804367, 0.8350416421890259, -0.5701014995574951, 0.5478604435920715, 0.3837184011936188, 0.5326685309410095, 0.6195685267448425, -0.2611873745918274, 0.7523398995399475, -0.5100876092910767, 0.31641238927841187, 0.0989932268857956, 0.3285103440284729, 0.43800416588783264, -0.21217404305934906, 0.23067162930965424, 0.016427526250481606, -0.37039995193481445, -0.9351949095726013, 0.18371416628360748, -0.8518630266189575, -0.3846762776374817, 0.8297262787818909, -0.23879405856132507, -0.23761698603630066, -0.1358918994665146, -0.1854705959558487, 0.10794879496097565, -0.1070028692483902, 0.5664923191070557, 0.9165443778038025, 0.014183525927364826, -0.16589771211147308, -0.6395497918128967, 0.6130863428115845, 0.06773742288351059, -0.9151139855384827, 0.5316504240036011, 0.3825269043445587, 0.7107604742050171, -0.043291423469781876, 0.9531652331352234, -0.34539559483528137, 0.39928990602493286, 0.02263202890753746, 0.2529629170894623, -0.3199487328529358, -0.3984609544277191, -0.4478634297847748, 0.1844530552625656, 0.5291521549224854, 0.28088968992233276 ]
http://arxiv.org/abs/2402.09748v1
http://arxiv.org/pdf/2402.09748v1
Model Compression and Efficient Inference for Large Language Models: A Survey
2024-02-15T06:58:30
2024-02-15T06:58:30
Wenxiao Wang, Wei Chen, Yicong Luo, Yongliu Long, Zhengkai Lin, Liye Zhang, Binbin Lin, Deng Cai, Xiaofei He
cs.CL
cs.CL, cs.AI, cs.LG, cs.PF
Transformer based large language models have achieved tremendous success. However, the significant memory and computational costs incurred during the inference process make it challenging to deploy large models on resource-constrained devices. In this paper, we investigate compression and efficient inference methods for large language models from an algorithmic perspective. Regarding taxonomy, similar to smaller models, compression and acceleration algorithms for large language models can still be categorized into quantization, pruning, distillation, compact architecture design, dynamic networks. However, Large language models have two prominent characteristics compared to smaller models: (1) Most of compression algorithms require finetuning or even retraining the model after compression. The most notable aspect of large models is the very high cost associated with model finetuning or training. Therefore, many algorithms for large models, such as quantization and pruning, start to explore tuning-free algorithms. (2) Large models emphasize versatility and generalization rather than performance on a single task. Hence, many algorithms, such as knowledge distillation, focus on how to preserving their versatility and generalization after compression. Since these two characteristics were not very pronounced in early large models, we further distinguish large language models into medium models and ``real'' large models. Additionally, we also provide an introduction to some mature frameworks for efficient inference of large models, which can support basic compression or acceleration algorithms, greatly facilitating model deployment for users.
[ -0.3661627471446991, -0.7597678899765015, 0.5799346566200256, 0.22061023116111755, -0.11457543075084686, -0.06534655392169952, -0.5298863649368286, -0.4408782124519348, 0.10685615241527557, 0.42761650681495667, -0.5090315341949463, -0.1253736913204193, -0.557119607925415, -0.1485988348722458, -0.5558223724365234, 0.5183601379394531, 0.21816039085388184, -0.07229848206043243, -0.11680860072374344, -0.025860494002699852, -0.4940375089645386, -0.6267143487930298, -0.5981899499893188, -0.30401918292045593, 0.26425445079803467, 0.03795773163437843, 0.7725810408592224, 0.905475378036499, 0.3322638273239136, 0.43587175011634827, -0.42525771260261536, 0.048912860453128815, -0.35513266921043396, 0.23918648064136505, -0.0477985143661499, -0.48556578159332275, -0.07041919976472855, -0.16246749460697174, 0.6990857124328613, 0.8874402046203613, -0.30894356966018677, 0.3217819929122925, -0.009873773902654648, 0.6153513789176941, -0.7634950876235962, 0.17707760632038116, -0.5449517369270325, -0.07365301251411438, -0.03913140296936035, 0.11090465635061264, -0.5590725541114807, -0.2861098349094391, -0.03099728189408779, -0.4236949384212494, 0.3166147470474243, 0.14963489770889282, 0.6024177670478821, 0.4634326994419098, -0.43531090021133423, -0.25244179368019104, -1.2071506977081299, 1.115412950515747, -0.7800150513648987, 0.5632003545761108, 0.20554019510746002, 0.4702158272266388, -0.005733633413910866, -0.9643345475196838, -0.680780827999115, -0.19338715076446533, -0.022323232144117355, -0.23437584936618805, -0.44022515416145325, 0.24927690625190735, 0.5753782391548157, 0.6615272760391235, -0.37468183040618896, 0.5520485639572144, -0.11562173068523407, -0.07781240344047546, 0.5960466265678406, -0.03507151082158089, 0.07039529830217361, 0.07294172048568726, -0.04313163459300995, -0.3620215058326721, -0.7012906670570374, -0.27105778455734253, 0.4871865212917328, 0.14975954592227936, 0.019453130662441254, 0.39311107993125916, -0.29238441586494446, 0.9289979338645935, -0.253212034702301, -0.27191635966300964, 0.09168986231088638, -0.25584039092063904, -0.28719016909599304, -0.24220946431159973, 0.7579042315483093, 0.04437188431620598, 0.3152657449245453, -0.224218487739563, -0.41630351543426514, 0.062488362193107605, 0.1418936550617218, -1.0387710332870483, -0.3166046440601349, 0.25019147992134094, -0.7248114347457886, -0.08364760875701904, -0.12532009184360504, -0.9096919894218445, -0.32849037647247314, -0.3408105671405792, 0.41106116771698, -0.23078107833862305, -0.37117332220077515, 0.33314719796180725, -0.08505186438560486, 0.16905702650547028, 0.1293606460094452, -1.103458285331726, 0.3982812166213989, 0.9066348671913147, 0.8631221652030945, 0.19110271334648132, 0.061393145471811295, -0.5143219232559204, -0.25708794593811035, -0.12460369616746902, 0.5923482775688171, -0.47710564732551575, -0.16132479906082153, 0.03377290815114975, -0.07943855971097946, 0.03431298956274986, -0.5953889489173889, 0.7684413194656372, -0.7725037336349487, 0.0023168146144598722, 0.00633552111685276, -0.8136408925056458, -0.4298928380012512, -0.07924366742372513, -0.9885069131851196, 0.5631283521652222, 0.06192528456449509, -0.6336020827293396, -0.004854234401136637, -0.5520402789115906, -0.4764955937862396, -0.06008048355579376, 0.049093954265117645, -0.30260372161865234, 0.5182153582572937, 0.13136503100395203, 0.5362216234207153, -0.8335136771202087, 0.49705770611763, -0.26587966084480286, -0.29484832286834717, 0.12457022070884705, -0.7835288643836975, 0.7280406951904297, 0.5255998373031616, -0.16210219264030457, 0.03756899759173393, -0.6005250215530396, -0.03734995052218437, 0.2537972033023834, -0.16418170928955078, -0.40017667412757874, 0.30920448899269104, 0.01982211135327816, -0.05067383497953415, 0.09353738278150558, -0.37417230010032654, 0.624597430229187, -0.33205485343933105, 0.8179396390914917, 0.4889599084854126, -0.11159905791282654, 0.4495554268360138, 0.08818753063678741, 0.5779673457145691, -0.24780207872390747, 0.11739082634449005, -0.15966373682022095, -0.3194006681442261, -0.6268543004989624, -0.32892876863479614, 0.8167099952697754, 0.4663965106010437, -0.7643976211547852, 0.491601824760437, -0.566143810749054, -0.5759871602058411, -0.4051152765750885, -0.053315456956624985, 0.31426602602005005, 0.1367720067501068, 0.20438221096992493, 0.027469592168927193, -0.3335915505886078, -0.9723137617111206, -0.08013583719730377, -0.11953702569007874, -0.3484782874584198, 0.15526331961154938, 0.3361930251121521, 0.023552032187581062, 0.6915688514709473, -0.7427852153778076, 0.37787219882011414, -0.3240223824977875, 0.20059774816036224, 0.3855345547199249, 0.6047375798225403, 0.5746316313743591, -1.0264102220535278, -0.16398406028747559, -0.2031196653842926, -0.3548647165298462, -0.24802623689174652, -0.05668392777442932, 0.2450931966304779, -0.07863103598356247, 0.46282944083213806, -0.6998898983001709, 0.14153282344341278, 0.9079861044883728, -0.05400095507502556, 0.7544386982917786, -0.20322978496551514, -0.07484044134616852, -0.9786338210105896, 0.08136072754859924, -0.010782584547996521, -0.23703965544700623, -0.8115661144256592, 0.28959017992019653, 0.009109122678637505, -0.066796213388443, -0.2874433994293213, 0.610072135925293, -0.5603064298629761, -0.02121163345873356, -0.26827359199523926, -0.21686720848083496, 0.003860252443701029, 0.411029577255249, 0.2420063465833664, 0.7049665451049805, 0.6736958026885986, -0.6837663054466248, 0.45421791076660156, -0.0013618827797472477, -0.6756584644317627, 0.05620289966464043, -0.841505765914917, 0.0032381045166403055, -0.11608435213565826, 0.2090037763118744, -0.8043104410171509, -0.12948809564113617, -0.12679728865623474, 0.019417766481637955, 0.4684429168701172, -0.3226603865623474, -0.7623024582862854, -0.5384402275085449, -0.1338692158460617, 0.6185321807861328, 0.7913614511489868, -0.6522584557533264, 0.6260577440261841, 0.3746907413005829, 0.0939982458949089, -0.4541510343551636, -0.5228402018547058, -0.054735589772462845, -0.5499895215034485, -0.49437832832336426, 0.3140289783477783, -0.14107657968997955, -0.3623179495334625, -0.05519932508468628, -0.055870167911052704, -0.22970828413963318, 0.21145564317703247, 0.053258784115314484, 0.057684946805238724, -0.2962630093097687, 0.3529079854488373, 0.02994120679795742, 0.028343016281723976, -0.12911279499530792, -0.5000682473182678, 0.7910892963409424, -0.02402891218662262, -0.2589360475540161, -0.4561294913291931, 0.2736877202987671, 0.6810880899429321, -0.32838088274002075, 1.0038862228393555, 0.48564013838768005, -0.2625999450683594, -0.22462978959083557, -0.7803949117660522, -0.21089676022529602, -0.44475147128105164, 0.3146767318248749, -0.38668084144592285, -0.9938717484474182, 0.5558714270591736, -0.4180780053138733, 0.1675599217414856, 0.5840291976928711, 0.5532931089401245, 0.36181244254112244, 1.1152725219726562, 0.6348942518234253, -0.22968000173568726, 0.5723674297332764, -0.38903483748435974, 0.2838614583015442, -0.5996221303939819, 0.21284472942352295, -0.9545837640762329, -0.45354336500167847, -0.6488646268844604, -0.43157345056533813, 0.08103679120540619, 0.23343639075756073, -0.19456565380096436, 0.38069722056388855, -0.5581059455871582, 0.4864276647567749, 0.6158061027526855, -0.17100831866264343, 0.246226966381073, 0.09493189305067062, 0.27324041724205017, 0.31385329365730286, -0.9539675116539001, -0.2655971646308899, 0.8059510588645935, 0.5186333060264587, 0.8352997899055481, 0.22699274122714996, 0.35085952281951904, 0.015132199972867966, 0.13239909708499908, -1.0765072107315063, 0.385336309671402, -0.3288988769054413, -0.4896334111690521, -0.2844254672527313, -0.8714905977249146, -0.8990321159362793, 0.17000870406627655, -0.26428940892219543, -0.7956117987632751, 0.3882087767124176, 0.3058169484138489, -0.41032856702804565, 0.44983288645744324, -0.9734646677970886, 0.9002715349197388, -0.09161471575498581, -0.16053082048892975, -0.36927229166030884, -0.5509473085403442, 0.5588017106056213, -0.2725253105163574, 0.24479109048843384, 0.1921955794095993, 0.17375192046165466, 0.8061327934265137, -0.5441179871559143, 0.7343986630439758, -0.21390078961849213, -0.06776656955480576, 0.3541333079338074, 0.24144482612609863, 0.5196345448493958, -0.2963034212589264, -0.23406314849853516, 0.21433871984481812, 0.23795099556446075, -0.26830604672431946, -0.9028555750846863, 0.44559797644615173, -0.5045374035835266, -0.6002432703971863, 0.14457163214683533, -0.5324232578277588, -0.21068722009658813, 0.12007748335599899, 0.260704904794693, 0.7079378962516785, 0.09084131568670273, 0.4635174870491028, 0.6919145584106445, -0.38179507851600647, 0.48243048787117004, 0.262988418340683, -0.13464723527431488, -0.11308084428310394, 0.8095274567604065, 0.06878918409347534, 0.37797310948371887, 0.5250064730644226, 0.4560537040233612, -0.4120919704437256, -0.86138916015625, -0.34364649653434753, 0.33686140179634094, -0.4015098810195923, -0.35891857743263245, -0.46219196915626526, -0.1870703548192978, -0.39236345887184143, 0.17033226788043976, -0.6073687672615051, -0.6033494472503662, -0.02816995233297348, 0.1950947791337967, 0.2860945165157318, 0.5392351150512695, 0.1467224359512329, 0.6594036817550659, -0.9273714423179626, 0.26421037316322327, 0.2700751721858978, 0.3773006796836853, 0.36571288108825684, -0.5435507893562317, -0.2832225263118744, 0.07561980187892914, -0.20687320828437805, -0.7333902716636658, 0.29266175627708435, 0.4013872444629669, 0.39480310678482056, 0.6959203481674194, 0.21361614763736725, 0.6060410141944885, -0.5461437106132507, 0.7752857804298401, 0.02708612009882927, -0.9398528337478638, 0.17990198731422424, 0.08419980853796005, 0.3116300106048584, 0.2915799021720886, 0.4308289587497711, -0.5465474724769592, 0.029315827414393425, -0.6595258712768555, -0.739365816116333, 0.3777332007884979, 0.04999812692403793, 0.35056766867637634, 0.015249812975525856, 0.47216665744781494, -0.06149233505129814, 0.28295278549194336, -0.5823025107383728, -0.0899030864238739, 0.07868238538503647, -0.2239800989627838, -0.2150023728609085, -0.5170475840568542, 0.017553633078932762, -0.09977342933416367, 0.5753926038742065, -0.10639729350805283, 0.22193264961242676, -0.17136260867118835, -0.10179325193166733, 0.26990222930908203, 0.2822748124599457, 0.4523537755012512, 0.41789013147354126, 0.13562071323394775, 0.22216582298278809, -0.0653807669878006, -0.25287798047065735, 0.18291744589805603, 0.14435702562332153, -0.08555241674184799, -0.2138930857181549, 0.5525330901145935, 1.1130614280700684, 0.1067536324262619, -0.7645231485366821, 0.4790456295013428, -0.17561495304107666, -0.12162964046001434, -0.0416220985352993, 0.10455583781003952, 0.09002131968736649, 0.41923391819000244, 0.1511368453502655, -0.2839401960372925, 0.2252054214477539, -0.3751690089702606, -0.22646750509738922, 0.5822147130966187, 0.03315093740820885, -0.3251549005508423, 0.5975232124328613, -0.052508629858493805, -0.2721134126186371, 0.8199479579925537, -0.18995927274227142, -0.4664437770843506, 0.4227031171321869, 0.5263880491256714, 0.8443440794944763, -0.38486677408218384, -0.0887741968035698, 0.3927753269672394, 0.12340275198221207, -0.663420557975769, -0.20373986661434174, -0.26098185777664185, -0.7496317625045776, -1.0061733722686768, -0.960469663143158, -0.17959259450435638, 0.1689377725124359, -0.4443657696247101, 0.02606506086885929, -0.1404999941587448, -0.10433228313922882, 0.19904160499572754, -0.060058195143938065, -0.46258869767189026, 0.07364771515130997, 0.1725287288427353, 1.230073094367981, -0.8859787583351135, 0.8687391877174377, 0.29474374651908875, -0.0007517096237279475, -1.0960172414779663, -0.15292391180992126, -0.1283126324415207, -0.4346503019332886, 0.6330927610397339, 0.1086253747344017, 0.044939447194337845, 0.14638911187648773, -0.4291307032108307, -0.7416231036186218, 0.7882633805274963, 0.5738193988800049, -0.7348201274871826, -0.2587471604347229, -0.17138704657554626, 0.5668776035308838, -0.0962841808795929, 0.1335381120443344, 0.5635783672332764, 0.4673178791999817, 0.3276875913143158, -0.9823178648948669, -0.01232535857707262, -0.08276114612817764, 0.23304963111877441, 0.5071960091590881, -0.3752478063106537, 0.7702136039733887, 0.15655827522277832, -0.31722861528396606, 0.26002073287963867, 0.6717503070831299, -0.024478698149323463, -0.11454375088214874, 0.8329530954360962, 0.5862611532211304, 0.7603986263275146, -0.05876007676124573, 1.1574029922485352, -0.40792426466941833, 0.5368070006370544, 0.8733265995979309, -0.15087802708148956, 0.7731195092201233, 0.3463931977748871, -0.30465948581695557, 0.32158395648002625, 0.5182920694351196, -0.11608819663524628, 0.23832480609416962, 0.3699342906475067, -0.3237681984901428, -0.25167587399482727, 0.003640678245574236, -0.21597255766391754, 0.6419343948364258, 0.22340542078018188, -0.40082770586013794, -0.11641915142536163, -0.000908537651412189, 0.0035944078117609024, -0.1811646968126297, -0.2962576746940613, 0.7161842584609985, -0.0719374269247055, -0.8635270595550537, 0.7668097019195557, 0.181197389960289, 0.536204993724823, -0.5745150446891785, 0.037370000034570694, -0.020131263881921768, 0.010797190479934216, -0.049210503697395325, -0.5220500230789185, 0.3871923089027405, -0.12252694368362427, -0.24088053405284882, -0.24063414335250854, 0.6452720165252686, -0.32158392667770386, -0.46748101711273193, -0.009165129624307156, 0.45213866233825684, 0.27068468928337097, -0.4202251434326172, -0.29984337091445923, 0.1728345900774002, -0.014827494509518147, -0.5534080266952515, 0.16523590683937073, 0.221541166305542, -0.1783011257648468, 0.778544008731842, 0.5797434449195862, 0.3515242636203766, -0.05629131942987442, 0.11676149070262909, 0.7338520884513855, -0.3811120390892029, -0.4650064706802368, -0.9729058742523193, 0.29849737882614136, 0.04269954562187195, 0.2776429057121277, 0.5013787746429443, 0.40057483315467834, 0.4006494879722595, -0.18996210396289825, 0.39848756790161133, -0.1649629920721054, 0.30630865693092346, -0.8162270188331604, 0.5230476260185242, -0.5752554535865784, 0.23161537945270538, -0.0776340663433075, -1.117017149925232, -0.4606020152568817, 0.4927479922771454, -0.47155362367630005, 0.074409119784832, 0.4116213321685791, 0.7401505708694458, -0.3095908463001251, 0.049520380795001984, 0.2418173998594284, 0.31092721223831177, 0.39144954085350037, 0.4257999062538147, 0.5740542411804199, -0.13453197479248047, 0.3433949053287506, -0.36337679624557495, -0.37019991874694824, -0.16851848363876343, -1.0937392711639404, -0.44271981716156006, -0.6921878457069397, -0.24966412782669067, -0.14257220923900604, -0.31704631447792053, 0.7616258263587952, 1.0261176824569702, -0.6299448013305664, -0.16683094203472137, -0.16535039246082306, 0.19990643858909607, -0.4097244441509247, -0.17744022607803345, 0.47716158628463745, -0.05330239608883858, -0.9929827451705933, 0.3110644817352295, -0.13229183852672577, -0.05822937190532684, -0.37532925605773926, 0.17121848464012146, 0.06622648984193802, 0.04815683513879776, 0.7150785326957703, 0.4646182060241699, -0.43685728311538696, -0.27394747734069824, -0.2141755074262619, 0.33258262276649475, -0.18129990994930267, 1.0093940496444702, -0.7852816581726074, 0.2772741913795471, 0.5629894733428955, 0.7876111268997192, 0.5360731482505798, 0.07525297999382019, 0.5452970266342163, -0.7197160124778748, 0.44272732734680176, 0.10076314955949783, 0.5329927206039429, 0.23498141765594482, -0.1172543317079544, 0.46884119510650635, 0.17713133990764618, -0.7190977334976196, -1.0050052404403687, 0.5849547386169434, -0.7994301319122314, -0.469280481338501, 1.13383948802948, -0.13870716094970703, -0.31519144773483276, 0.2982126772403717, -0.10182521492242813, 0.38113412261009216, 0.09491194039583206, 0.6360517144203186, 0.6406660079956055, -0.0019268397009000182, -0.2807404398918152, -0.7187705636024475, 0.277492493391037, 0.2083609700202942, -0.6051040887832642, 0.4487425982952118, 0.6370577216148376, 0.08974277228116989, 0.35142725706100464, 0.0056120664812624454, 0.1597277969121933, -0.06998588889837265, 0.0874362513422966, 0.1502426117658615, -0.062588632106781, -0.31925681233406067, -0.5587274432182312, 0.35728520154953003, 0.12933355569839478, 0.04296521842479706 ]
http://arxiv.org/abs/2402.09742v4
http://arxiv.org/pdf/2402.09742v4
AI Hospital: Benchmarking Large Language Models in a Multi-agent Medical Interaction Simulator
2024-02-15T06:46:48
2024-06-28T03:11:48
Zhihao Fan, Jialong Tang, Wei Chen, Siyuan Wang, Zhongyu Wei, Jun Xi, Fei Huang, Jingren Zhou
cs.CL
cs.CL
Artificial intelligence has significantly advanced healthcare, particularly through large language models (LLMs) that excel in medical question answering benchmarks. However, their real-world clinical application remains limited due to the complexities of doctor-patient interactions. To address this, we introduce \textbf{AI Hospital}, a multi-agent framework simulating dynamic medical interactions between \emph{Doctor} as player and NPCs including \emph{Patient}, \emph{Examiner}, \emph{Chief Physician}. This setup allows for realistic assessments of LLMs in clinical scenarios. We develop the Multi-View Medical Evaluation (MVME) benchmark, utilizing high-quality Chinese medical records and NPCs to evaluate LLMs' performance in symptom collection, examination recommendations, and diagnoses. Additionally, a dispute resolution collaborative mechanism is proposed to enhance diagnostic accuracy through iterative discussions. Despite improvements, current LLMs exhibit significant performance gaps in multi-turn interactions compared to one-step approaches. Our findings highlight the need for further research to bridge these gaps and improve LLMs' clinical diagnostic capabilities. Our data, code, and experimental results are all open-sourced at \url{https://github.com/LibertFan/AI_Hospital}.
[ -0.17748971283435822, -0.7392244935035706, 1.0729775428771973, 0.12476568669080734, -0.07536319643259048, 0.022998660802841187, -0.17370429635047913, -0.7117473483085632, 0.1561519354581833, 0.38872581720352173, -0.23611591756343842, -0.44585901498794556, -0.5175579190254211, 0.23079551756381989, -0.21909645199775696, 0.5098069310188293, -0.14248314499855042, 0.6324498653411865, -0.6719173192977905, -0.32570603489875793, -0.1808643639087677, -0.6868680119514465, -1.0696567296981812, -0.5173459053039551, 0.43763798475265503, 0.16948361694812775, 0.7873811721801758, 0.8334549069404602, 0.8333253860473633, 0.4527537524700165, 0.3850017488002777, 0.1815357655286789, -0.10479745268821716, 0.37543365359306335, 0.1754966527223587, -0.10874353349208832, -0.6705089807510376, -0.2203740030527115, 0.7618401050567627, 0.5921392440795898, -0.29577162861824036, -0.10289398580789566, -0.4178377687931061, 0.363065630197525, -0.4346531629562378, 0.26245632767677307, -0.07375084608793259, -0.05277998372912407, 0.04507480189204216, -0.1112513616681099, -0.2530912458896637, -0.22940777242183685, 0.2929743826389313, -0.36788275837898254, -0.09561897814273834, 0.006532478611916304, 0.9604237079620361, 0.5005956888198853, -0.6180661916732788, 0.06261325627565384, -0.6204913258552551, 0.3746791183948517, -0.8511350750923157, 0.26030537486076355, 0.24858000874519348, 0.648905336856842, -0.09604229032993317, -0.8388659954071045, -0.5009688138961792, -0.7182074189186096, -0.02828769013285637, 0.24704012274742126, -0.059777453541755676, 0.18511615693569183, 0.12984822690486908, 0.18965812027454376, -0.4838455021381378, 0.17553474009037018, 0.025852983817458153, 0.07847850769758224, 0.6399387121200562, 0.5511911511421204, 0.5874056816101074, 0.14150825142860413, -0.41851943731307983, -0.07900777459144592, -0.5734278559684753, -0.1466384083032608, -0.29360613226890564, -0.13450412452220917, -0.17490734159946442, 0.34039822220802307, 0.011841378174722195, 0.31783774495124817, -0.29173171520233154, -0.2635744512081146, 0.4720151722431183, -0.2100595235824585, -0.26628953218460083, -0.006813753396272659, 0.9769130945205688, 0.5164288878440857, 0.13255098462104797, -0.2715146839618683, -0.17637570202350616, 0.18820607662200928, 0.6705189347267151, -0.7653272151947021, -0.2918620705604553, 0.5191020369529724, -0.5556834936141968, -0.23101307451725006, -0.27660468220710754, -0.7060912251472473, -0.9297885894775391, -0.21382515132427216, 0.3013859689235687, -0.41758987307548523, -0.4538074731826782, -0.06758375465869904, 0.17680571973323822, 0.20374618470668793, 0.5080474019050598, -0.42956650257110596, 0.5388072729110718, 0.6339964270591736, 0.6560909152030945, -0.32801929116249084, -0.5363254547119141, -0.7926977872848511, 0.08815063536167145, -0.34761345386505127, 0.7861667275428772, -0.3628951609134674, -0.448541522026062, 0.015609963797032833, -0.2408088594675064, -0.19718261063098907, -0.983159065246582, 0.23480461537837982, -0.06849133968353271, -0.06265170127153397, 0.178133025765419, -0.39235934615135193, 0.152601957321167, 0.6923127174377441, -0.686678409576416, 0.5007632374763489, 0.3331630527973175, -0.2573925256729126, 0.1329161375761032, -0.7005616426467896, -0.5491909980773926, 0.2157677710056305, -0.585580587387085, -0.622749924659729, 0.04544484242796898, 0.31223851442337036, 0.21977196633815765, -0.6322525143623352, 0.48111429810523987, -0.1607840657234192, -0.38659223914146423, 0.2809275686740875, -0.3446577191352844, 0.513224184513092, 0.08411921560764313, -0.11382252722978592, 0.5307769775390625, -0.8777065277099609, -0.06941510736942291, 0.28222721815109253, -0.3289988934993744, -0.15486088395118713, 0.24333323538303375, 0.08933819085359573, 0.21120624244213104, 0.1210501566529274, -0.1317121535539627, 0.37510836124420166, -0.3531471788883209, 0.2473757565021515, 0.25800955295562744, 0.14894519746303558, 0.08024744689464569, -0.7406291961669922, 0.8618650436401367, 0.2104491889476776, 0.4356880187988281, -0.11692242324352264, -0.49015405774116516, -0.49571239948272705, -0.4814092516899109, 0.2334510087966919, 0.53984135389328, -0.8649699687957764, -0.06004417687654495, -0.12903934717178345, -0.387034147977829, -0.9299933314323425, -0.48043888807296753, 0.3490007221698761, 0.5972338914871216, 0.37222355604171753, -0.3844343423843384, -0.24376654624938965, -0.82005774974823, 0.005191469565033913, -0.4717947542667389, -0.09243036061525345, 0.6822503805160522, 0.20007430016994476, -0.6502360105514526, 0.45922401547431946, -0.11697442084550858, -0.34777745604515076, -0.24245105683803558, 0.05004308745265007, 0.14082016050815582, 0.41929861903190613, 0.8111032247543335, -0.5697730183601379, -0.30537641048431396, 0.0020386443939059973, -0.9342781901359558, -0.18109163641929626, -0.14011678099632263, 0.13065195083618164, 0.19974097609519958, 0.41836851835250854, -0.5676870942115784, 0.3678835332393646, 0.7386884689331055, -0.22534896433353424, 0.6062605977058411, -0.537047803401947, 0.6340824961662292, -1.2680341005325317, 0.10885593295097351, -0.043670181185007095, -0.33925849199295044, -0.6225241422653198, 0.3832572400569916, -0.1159290000796318, -0.10907452553510666, -0.4596201479434967, 0.7155373096466064, -0.4168975353240967, -0.028426965698599815, -0.29465988278388977, 0.09574564546346664, -0.018891453742980957, 0.07646381855010986, 0.04582688957452774, 0.7362532019615173, 0.6798464059829712, -0.3937564194202423, 0.5572755336761475, 0.01613902673125267, -0.22235587239265442, 0.7351248264312744, -0.6277096271514893, 0.013085516169667244, 0.21489611268043518, 0.17574699223041534, -0.676606297492981, -0.2824060022830963, 0.21977730095386505, -0.35182470083236694, 0.10029631853103638, -0.12441027164459229, -0.9034384489059448, -0.2423418015241623, -0.21784257888793945, 0.6214085817337036, 0.37850648164749146, -0.32218948006629944, 0.899127721786499, 0.503426730632782, -0.18352438509464264, -0.33390262722969055, -0.44956907629966736, 0.4457774758338928, -0.06526197493076324, -0.41665756702423096, 0.02175655961036682, -0.11181851476430893, -0.5418847799301147, 0.02571781538426876, 0.25962403416633606, -0.48538196086883545, 0.29714444279670715, 0.22024352848529816, 0.4954931139945984, -0.5689886212348938, 0.2447156310081482, 0.026941241696476936, -0.10940534621477127, 0.385968416929245, 0.18337410688400269, 0.680675745010376, -0.2766963541507721, -0.6763248443603516, -0.47333264350891113, 0.5010994672775269, 0.9435341358184814, -0.23999974131584167, 0.622044026851654, 0.22889739274978638, -0.7052391171455383, 0.25452256202697754, -0.4733828008174896, -0.12253425270318985, -0.40553173422813416, 0.5861281752586365, -0.2985233664512634, -0.4996166229248047, 0.5976377725601196, -0.5618090033531189, 0.06463058292865753, 0.3529435098171234, 0.858074426651001, -0.08902814984321594, 1.1857537031173706, 0.26118800044059753, -0.15092593431472778, -0.1042676642537117, 0.15952271223068237, 0.13774676620960236, -0.6191062927246094, -0.2715021073818207, -0.5435919761657715, -0.22493767738342285, -0.6368707418441772, -0.6161676645278931, 0.960689902305603, -0.2065851390361786, -0.1821681261062622, -0.11504897475242615, -0.25240951776504517, 0.3209919333457947, 0.37353917956352234, 0.012379658408463001, 0.5180843472480774, -0.5673090219497681, -0.22064131498336792, 0.1316405087709427, -0.6868624687194824, -0.28328096866607666, 0.6992498636245728, 0.45136526226997375, 0.7208155989646912, 0.14186999201774597, 0.7531845569610596, 0.033899519592523575, 0.4132491648197174, -0.6854373216629028, 0.3792753517627716, -0.1948602944612503, -0.3615766763687134, -0.0767829567193985, -0.4477176070213318, -1.0392475128173828, 0.3392774164676666, -0.5333297252655029, -0.5460238456726074, -0.06970295310020447, 0.14199061691761017, -0.40583115816116333, 0.2714829444885254, -0.7110824584960938, 0.8961251378059387, -0.5355870723724365, -0.1591346710920334, -0.3963872790336609, -0.6704220175743103, 0.037071336060762405, -0.0010095949983224273, 0.1800033301115036, -0.03493403270840645, 0.03578419238328934, 0.031176747754216194, -0.4181387722492218, 0.5197634100914001, -0.011671904474496841, 0.07295335829257965, -0.2521447539329529, 0.10026978701353073, 0.15951676666736603, 0.38349953293800354, -0.12612394988536835, 0.4455776512622833, 0.1347718983888626, -0.35389789938926697, -0.36769306659698486, 0.795198917388916, -0.9707064032554626, -0.3633832037448883, -0.7150328159332275, -0.6927306652069092, -0.6334133744239807, 0.3087327182292938, -0.07612565904855728, 0.5831282138824463, -0.4527398943901062, -0.11743852496147156, 0.28383713960647583, -0.45315295457839966, 0.014879927970468998, 0.6335607171058655, -0.25819483399391174, -0.21311424672603607, 0.6346318125724792, -0.3549153208732605, -0.016692765057086945, 0.30730265378952026, 0.4048077166080475, -0.1264224350452423, -0.6888744831085205, -0.8683412075042725, 0.23471742868423462, -0.4024524986743927, -0.11620215326547623, -0.6421074867248535, -0.6454067230224609, -0.43839016556739807, -0.17317210137844086, -0.4148384630680084, 0.22501808404922485, 0.0020439124200493097, 0.37356260418891907, 0.14137610793113708, 0.9305552244186401, 0.18888728320598602, 0.2939442992210388, -0.8979899287223816, 0.36463505029678345, -0.08243744820356369, 0.5608804225921631, 0.12615954875946045, 0.07710550725460052, -0.3847614526748657, -0.23383353650569916, -0.012806220911443233, -0.7406015992164612, 0.3084421455860138, -0.1872379630804062, 0.6878576278686523, 0.6529390811920166, 0.006916619837284088, 0.6582657098770142, -0.8935657739639282, 0.680586576461792, 0.2321508526802063, -0.643888533115387, 0.2650684416294098, -0.2080858200788498, 0.4348946511745453, 0.7341762781143188, 0.1469501554965973, -0.5992459654808044, -0.5646740794181824, -0.5360094904899597, -1.1759141683578491, 0.4508017301559448, -0.0718822181224823, -0.2593756318092346, -0.030293943360447884, 0.35739442706108093, -0.15483812987804413, 0.37263649702072144, -0.3485170006752014, -0.3898521661758423, 0.4044407904148102, -0.44762107729911804, -0.07428714632987976, -0.0017729380633682013, -0.4356032609939575, -0.13328814506530762, 0.43736717104911804, -0.010386177338659763, 0.4641251266002655, 0.17236490547657013, 0.12368734925985336, -0.2529773414134979, -0.017507152631878853, 0.5916739106178284, 0.8097783923149109, 0.030765797942876816, 0.024049004539847374, 0.15050484240055084, -0.45441895723342896, -0.058632977306842804, 0.5900033712387085, 0.09617677330970764, -0.020313184708356857, 0.6061449646949768, 0.5788859724998474, 0.009319287724792957, -1.0916717052459717, 0.60573410987854, -0.46243980526924133, -0.11788326501846313, -0.40153732895851135, 0.05993955582380295, 0.12143141031265259, 0.6188695430755615, 0.039090752601623535, 0.00841703824698925, 0.32414427399635315, -0.5215287208557129, 0.3881877064704895, 0.2720874547958374, -0.35401058197021484, 0.12011221796274185, 0.7919944524765015, 0.27813857793807983, -0.5383495092391968, 0.9204750061035156, 0.1185791864991188, -0.31150293350219727, 0.9621698260307312, 0.3167266249656677, 0.7523208856582642, -0.24872331321239471, 0.030199063941836357, 0.08262156695127487, 0.2317167967557907, 0.003625491401180625, 0.09502793103456497, 0.39884695410728455, -0.4770793318748474, -0.5815845727920532, -0.1600603312253952, -0.9857982397079468, 0.348895788192749, -0.5096777677536011, 0.25721651315689087, -0.3981231451034546, -0.04009977728128433, -0.18660910427570343, 0.06751640886068344, -0.4613564908504486, 0.13545002043247223, 0.32599228620529175, 0.7062760591506958, -0.48767659068107605, 0.932285726070404, 1.0337276458740234, -0.2229706346988678, -0.8648184537887573, 0.35642915964126587, 0.12613746523857117, -0.9630131125450134, -0.1881810873746872, 0.19416148960590363, -0.0839623287320137, -0.30263200402259827, -0.31069639325141907, -0.3920761048793793, 0.893161952495575, 0.37720221281051636, -0.6436843872070312, 0.02945076674222946, 0.12898476421833038, 1.0363520383834839, -0.6090720295906067, 0.5292584300041199, 0.4586139917373657, 0.3372151553630829, -0.15180738270282745, -1.1379696130752563, 0.009800213389098644, -0.432525098323822, -0.35855770111083984, 0.03771979734301567, -0.7956997156143188, 0.7448344826698303, -0.3757311701774597, 0.22390049695968628, 0.3447893559932709, 0.17566058039665222, 0.4943937361240387, 0.8127104640007019, 0.7051284909248352, 0.5202776789665222, 0.6879688501358032, -0.11419278383255005, 1.3040615320205688, -0.48503509163856506, 0.17340166866779327, 1.0337371826171875, -0.7658045291900635, 0.6584033370018005, 0.3445359170436859, -0.002292288700118661, 0.41074568033218384, 0.5116634368896484, -0.05937545746564865, 0.2603381276130676, 0.41406500339508057, -0.3545568883419037, -0.12486366182565689, -0.255550354719162, -0.5619029998779297, 0.4252728223800659, 0.12083672732114792, -0.16734717786312103, -0.05065201222896576, 0.052828773856163025, 0.0887797474861145, 0.11532224714756012, -0.112608902156353, 0.9591600894927979, -0.00047725968761369586, -0.5173379778862, 0.2683911919593811, -0.056010983884334564, 0.16541674733161926, -0.6843600869178772, -0.32004499435424805, -0.12726666033267975, 0.32503312826156616, 0.20190724730491638, -0.3778781592845917, -0.04643625020980835, -0.13304582238197327, -0.14238980412483215, 0.024728214368224144, 0.4013391435146332, -0.565912663936615, -0.35265108942985535, 0.48978930711746216, 0.7129707336425781, 0.31757020950317383, 0.07469207048416138, -0.8676972985267639, 0.1180439218878746, -0.5539656281471252, -0.0007288006017915905, 0.582633376121521, 0.46779927611351013, -0.13724283874034882, 0.6909862160682678, 0.4119996726512909, 0.5189480185508728, -0.21533319354057312, 0.6654047966003418, 0.7971578240394592, -0.39031845331192017, -0.4651188552379608, -0.8232370018959045, 0.13544662296772003, -0.07353738695383072, -0.40621352195739746, 0.05159943178296089, 0.5890266299247742, 0.523716926574707, 0.02291167341172695, 0.6095616817474365, 0.1496662199497223, 0.509515106678009, -0.09974542260169983, 0.9975622892379761, -1.0433162450790405, 0.08675579726696014, -0.2200213521718979, -0.3496890068054199, -0.42899104952812195, 0.6084684729576111, 0.2186337262392044, 0.10457900166511536, 0.7394386529922485, 0.3688598871231079, 0.22778697311878204, -0.314439058303833, 0.5508199334144592, 0.5386024713516235, 0.43787509202957153, 0.7520752549171448, 0.9680662155151367, -0.2129717916250229, 0.21424627304077148, -0.2557229697704315, -0.32788991928100586, -0.3331010937690735, -0.5952382683753967, -0.6979939937591553, -0.31346961855888367, -0.3759680688381195, -0.500771164894104, 0.29021286964416504, 1.2336890697479248, 0.7378528118133545, -0.7779116630554199, -0.3345651626586914, 0.4077316224575043, -0.041190505027770996, -0.6682826280593872, -0.1779700517654419, 0.45626765489578247, 0.06518591195344925, -0.9221026301383972, 0.5170672535896301, 0.5675311088562012, -0.12146897614002228, -0.3179999589920044, -0.038863714784383774, -0.18889892101287842, -0.09112609922885895, 0.44035351276397705, -0.01754326932132244, -0.5724050998687744, -0.1302347630262375, -0.07704225182533264, -0.537053108215332, 0.3286629915237427, 0.8606582283973694, -0.8293216228485107, 0.5354182720184326, 0.1245776116847992, 1.0900009870529175, 0.02035573124885559, 0.0685725063085556, 0.5074166059494019, -0.25892508029937744, -0.11180155724287033, 0.5401253700256348, 0.4158477187156677, 0.022580303251743317, -0.609132707118988, 0.35006535053253174, 0.14775829017162323, -0.7127830386161804, -0.7643226385116577, -0.03654133901000023, -0.9869433641433716, -0.3636307120323181, 0.853144109249115, -0.1435856968164444, -0.035090766847133636, -0.13158740103244781, 0.0035793145652860403, 0.31323280930519104, -0.3335988521575928, 1.084768295288086, 0.4486716389656067, -0.5816559195518494, -0.15148910880088806, -0.8161859512329102, 0.24997839331626892, 0.43780598044395447, -1.2321871519088745, -0.37041643261909485, 0.6894849538803101, 0.13865531980991364, -0.015114241279661655, 1.1227043867111206, -0.22639106214046478, 0.5955792665481567, -0.1821046769618988, 0.07484368979930878, -0.06688584387302399, -0.4856337010860443, -0.3570084273815155, 0.03777843341231346, 0.10055626183748245, -0.3527667820453644 ]
http://arxiv.org/abs/2402.09739v2
http://arxiv.org/pdf/2402.09739v2
QuRating: Selecting High-Quality Data for Training Language Models
2024-02-15T06:36:07
2024-06-13T18:55:23
Alexander Wettig, Aatmik Gupta, Saumya Malik, Danqi Chen
cs.CL
cs.CL, cs.LG
Selecting high-quality pre-training data is important for creating capable language models, but existing methods rely on simple heuristics. We introduce QuRating, a method for selecting pre-training data that can capture human intuitions about data quality. In this paper, we investigate four qualities - writing style, required expertise, facts & trivia, and educational value - and find that LLMs are able to discern these qualities, especially when making pairwise judgments of texts. We train a QuRater model to learn scalar ratings from pairwise judgments, and use it to annotate a 260B training corpus with quality ratings for each of the four criteria. In our experiments, we select 30B tokens according to the different quality ratings and train 1.3B-parameter language models on the selected data. We find that it is important to balance quality and diversity. When we sample using quality ratings as logits over documents, our models obtain lower perplexity and stronger in-context learning performance than baselines. Our best model is based on educational value and performs similarly to a model trained with uniform sampling for 50% more steps. Beyond data selection, we use the quality ratings to construct a training curriculum which improves performance without changing the training dataset. We extensively analyze the quality ratings and discuss their characteristics, biases, and wider implications.
[ -0.2597152292728424, -0.29238444566726685, 0.2793131470680237, 0.21842807531356812, -0.34240788221359253, 0.2750566303730011, -0.018519345670938492, -0.28009068965911865, -0.17669302225112915, 0.5617921948432922, -0.02785123698413372, -0.6640451550483704, -0.5873143672943115, -0.03515356779098511, -0.6940577030181885, 1.0468794107437134, 0.03101354092359543, 0.3645220994949341, -0.3932493031024933, -0.14560061693191528, -0.16202668845653534, -0.9154818058013916, -0.5996327996253967, -0.18212059140205383, 0.3356717824935913, 0.5705220699310303, 0.9103081226348877, 0.6799831390380859, 0.46283090114593506, 0.18943770229816437, -0.03663773834705353, 0.2638714611530304, -0.7283966541290283, 0.18320919573307037, -0.1372850388288498, -0.635578453540802, -0.12078727781772614, 0.4597427546977997, 0.6755779385566711, 0.6950647830963135, 0.07680879533290863, 0.3257255554199219, 0.14934653043746948, 0.9617956876754761, -0.4914097189903259, -0.19430924952030182, -0.42597657442092896, 0.1493282914161682, -0.33746904134750366, -0.22531837224960327, -0.18261045217514038, -0.7437562346458435, 0.0012731589376926422, -0.38633471727371216, 0.27729442715644836, 0.33753398060798645, 1.190200686454773, 0.2022342085838318, -0.4531703591346741, -0.23412363231182098, -0.4966309368610382, 0.939238429069519, -0.6841447949409485, 0.7453336715698242, 1.0382311344146729, 0.2244465947151184, 0.05939829349517822, -0.44232040643692017, -0.40622463822364807, -0.41638436913490295, 0.007335067726671696, 0.17550332844257355, 0.44079962372779846, -0.14648818969726562, 0.15603487193584442, 0.6327657103538513, -0.5245530605316162, -0.017690271139144897, -0.5369967222213745, -0.25227266550064087, 0.6923546195030212, -0.06698702275753021, 0.274664044380188, -0.19843345880508423, -0.23940198123455048, -0.3132604658603668, -0.9395672678947449, 0.5600221157073975, 0.8007422685623169, 0.18588539958000183, 0.16835467517375946, 0.6631861925125122, -0.449930340051651, 0.4975696802139282, -0.04242158681154251, -0.2510233223438263, 0.2166859209537506, -0.5106433033943176, 0.07944954931735992, -0.28974252939224243, 0.7723638415336609, 0.18458887934684753, 0.25612005591392517, -0.25192564725875854, -0.5322162508964539, -0.31186187267303467, 0.4128206670284271, -0.8128474950790405, -0.39794841408729553, 0.272420197725296, -0.6580125093460083, -0.42207071185112, 0.12623248994350433, -0.42431989312171936, -0.16923433542251587, -0.49934086203575134, 0.33725106716156006, -0.5910255312919617, -0.240445077419281, -0.006871044635772705, -0.06614270061254501, 0.18134550750255585, 0.04197687655687332, -1.0139498710632324, 0.1438867449760437, 0.4890744984149933, 0.6093186140060425, -0.4516651928424835, -0.4213912785053253, -0.6647007465362549, -0.11694387346506119, -0.7149889469146729, 0.8094132542610168, -0.6557323336601257, -0.38400599360466003, 0.0019375929841771722, -0.3394780158996582, 0.25441133975982666, -0.5928157567977905, 0.9785277843475342, -0.542416512966156, 0.2081579566001892, -0.35232046246528625, -0.7550224661827087, -0.19933880865573883, 0.07093235850334167, -0.8494970202445984, 1.3123475313186646, 0.5196982622146606, -0.6948983669281006, 0.7084037661552429, -0.15038137137889862, -0.4488917589187622, 0.035999175161123276, -0.1593555212020874, -0.5438487529754639, 0.13272982835769653, 0.3194122612476349, 0.6646502614021301, -0.14420479536056519, 0.36332783102989197, -0.032778915017843246, -0.34708839654922485, 0.45786795020103455, -0.15255600214004517, 0.6570584774017334, 0.43012064695358276, 0.27391883730888367, 0.19580082595348358, -0.7856298089027405, 0.2547656297683716, -0.13324204087257385, -0.646837592124939, -0.20754127204418182, 0.030688157305121422, -0.14183560013771057, 0.2321307361125946, 0.004187133628875017, -0.2854870855808258, 0.04907754063606262, -0.532721221446991, 0.10585570335388184, 0.49938467144966125, -0.07932876795530319, 0.391784131526947, -0.7427931427955627, 0.4627302885055542, 0.22637847065925598, 0.09389478713274002, 0.17615661025047302, -0.09785725176334381, -0.8047814965248108, -0.13048262894153595, 0.5197929739952087, 0.24207653105258942, -0.7944772243499756, 0.46743378043174744, 0.038907792419195175, -0.5861448049545288, -0.9020156860351562, 0.6201929450035095, 0.30232298374176025, 0.18174408376216888, 0.2945016622543335, -0.3111570179462433, -0.46989595890045166, -0.5769622325897217, -0.2364661693572998, -0.24455295503139496, 0.06918643414974213, -0.09209510684013367, 0.2987099587917328, 0.10075125098228455, 1.081947922706604, -0.10690924525260925, -0.013258291408419609, -0.5387936234474182, 0.09431733191013336, 0.31765633821487427, 0.4955848455429077, 0.5656980872154236, -0.7409880757331848, -0.3646526038646698, -0.2659338712692261, -0.6030198335647583, -0.15531903505325317, -0.10139840096235275, -0.4902791976928711, 0.038505833595991135, 0.39137160778045654, -0.3712105453014374, 0.19215644896030426, 0.5198047757148743, -0.138882115483284, 0.7999013662338257, 0.1297294944524765, 0.3780245780944824, -0.9807220101356506, -0.04807087779045105, -0.008756568655371666, -0.3043595552444458, -0.6057586073875427, 0.013901297003030777, 0.05255516991019249, 0.1350729763507843, -0.5335600972175598, 0.6872318983078003, -0.26379159092903137, 0.05057694390416145, -0.17216917872428894, -0.1784081757068634, 0.1960827261209488, 0.4232994019985199, 0.09395812451839447, 0.969463586807251, 0.5422093868255615, -0.741593599319458, 0.40919965505599976, 0.4300326108932495, -0.7664430141448975, 0.5273833870887756, -0.6081895232200623, 0.057450100779533386, 0.14365853369235992, -0.19727438688278198, -0.9472544193267822, -0.12999175488948822, 0.0717993900179863, -0.6727558970451355, 0.07499142736196518, -0.13504894077777863, -0.5784051418304443, -0.19615821540355682, -0.3117523789405823, 0.45372501015663147, 0.5330790877342224, -0.6941754817962646, 0.22875314950942993, 0.46588313579559326, -0.17162977159023285, -0.5716948509216309, -0.2748532295227051, -0.1296750158071518, -0.18308380246162415, -0.24243657290935516, 0.0763433501124382, -0.01370383333414793, -0.10269144922494888, -0.11885057389736176, -0.2664373815059662, -0.26837536692619324, 0.2817411422729492, 0.26671335101127625, 0.2718852758407593, -0.08414105325937271, 0.08371453732252121, 0.2720465660095215, -0.1808045655488968, 0.1022808849811554, -0.311921089887619, 0.36164525151252747, 0.036839794367551804, -0.4287886917591095, -0.4036823511123657, 0.14921508729457855, 0.06761308759450912, -0.356984406709671, 0.7467880249023438, 0.6957170367240906, -0.12049015611410141, -0.21034343540668488, -0.6603938341140747, -0.25369536876678467, -0.4560464322566986, 0.3214651346206665, -0.39919808506965637, -0.8230450749397278, 0.04992259293794632, 0.07489429414272308, 0.16325201094150543, 0.20577597618103027, 0.45492124557495117, -0.5001665353775024, 1.1042743921279907, 0.5112806558609009, -0.21542811393737793, 0.5043644309043884, -0.17287254333496094, 0.17390768229961395, -0.6165947318077087, 0.009679323993623257, -0.617378294467926, 0.08076371252536774, -0.40585216879844666, -0.15184704959392548, 0.222535640001297, 0.4745766818523407, -0.20258648693561554, -0.06595880538225174, -0.2645985186100006, 0.6584716439247131, 0.7993308305740356, 0.11732092499732971, 0.34633854031562805, 0.006519716698676348, -0.13803619146347046, 0.12636226415634155, -0.5269403457641602, -0.8755673170089722, 1.333985447883606, 0.3723079264163971, 0.7018100023269653, 0.03611785173416138, 0.7862663269042969, 0.20707528293132782, 0.28428465127944946, -0.6346178650856018, 0.465819776058197, -0.19249896705150604, -0.5825391411781311, -0.4522961974143982, -0.6510416865348816, -0.8373156189918518, 0.20323440432548523, -0.577258825302124, -0.31724870204925537, -0.19269585609436035, 0.10570646822452545, -0.40184205770492554, 0.1477707177400589, -0.35401976108551025, 0.5858955979347229, -0.420236736536026, -0.2713111639022827, -0.0791972205042839, -0.6106534600257874, 0.36044174432754517, -0.14233368635177612, 0.08895974606275558, -0.31151819229125977, 0.29064324498176575, 1.0577876567840576, -0.17420320212841034, 0.5752738118171692, 0.08837911486625671, 0.08003704249858856, 0.47786030173301697, 0.2765723466873169, 0.01332695223391056, -0.019214525818824768, -0.3884660601615906, 0.24740859866142273, 0.5672057867050171, -0.6790982484817505, -0.5707929134368896, 0.07200341671705246, -1.2494053840637207, -0.58616703748703, -0.4091712534427643, -0.34545519948005676, -0.47996553778648376, 0.0807153731584549, 0.24486273527145386, 0.3253529667854309, -0.27983495593070984, 0.2707310616970062, 0.44541454315185547, -0.20340484380722046, 0.0017663916805759072, 0.13338305056095123, -0.43417707085609436, -0.43399322032928467, 1.306288242340088, 0.08098635077476501, 0.4696252644062042, 0.30768194794654846, 0.250696063041687, -0.46729782223701477, -0.8752959370613098, -0.26771703362464905, 0.29162362217903137, -0.7915375232696533, -0.25917142629623413, -0.43914705514907837, -0.5953457355499268, -0.39461803436279297, 0.047612741589546204, -0.2960105538368225, -0.48282453417778015, -0.2933803200721741, -0.22385944426059723, 0.07067740708589554, 0.6766582727432251, 0.05581967532634735, 0.5622583031654358, -1.053001880645752, 0.38472384214401245, 0.2874475121498108, 0.28602051734924316, -0.12002510577440262, -0.8018835783004761, -0.5601259469985962, 0.06304064393043518, -0.4202389717102051, -0.5876599550247192, 0.6052837371826172, 0.22359657287597656, 0.8367215991020203, 0.5198309421539307, 0.09159576147794724, 0.27440145611763, -0.0718386247754097, 0.7478837370872498, -0.10924848914146423, -1.0006176233291626, 0.5330833196640015, -0.09126917272806168, -0.11476925015449524, 0.8969294428825378, 0.800527036190033, -0.5325256586074829, -0.6366982460021973, -0.3647708296775818, -0.5701974630355835, 0.5932452082633972, 0.19685448706150055, 0.09128404408693314, 0.1020415648818016, 0.5553727149963379, 0.4835456311702728, 0.42301928997039795, -0.7150657773017883, 0.02043362334370613, -0.5710269808769226, -0.37074989080429077, -0.04565375670790672, -0.47378888726234436, -0.04402180016040802, -0.4385673999786377, 0.701259434223175, -0.08103561401367188, -0.10686695575714111, -0.21013404428958893, -0.36562901735305786, 0.14978420734405518, 0.26826298236846924, 0.028931869193911552, 0.7332115769386292, -0.09670059382915497, 0.13358663022518158, 0.038913458585739136, -0.46526506543159485, 0.35348421335220337, -0.3098700940608978, 0.06158844754099846, -0.14897862076759338, 0.3872816860675812, 0.6328743696212769, 0.0027000820264220238, -0.6327558755874634, 0.6350156664848328, -0.018474072217941284, -0.1411111205816269, -0.026871342211961746, 0.6108473539352417, -0.13006551563739777, 0.08073359727859497, 0.29274389147758484, -0.25979551672935486, 0.12020129710435867, -0.484984815120697, 0.14332133531570435, 0.32821986079216003, -0.12682095170021057, -0.23613357543945312, 0.35309898853302, 0.29164254665374756, -0.1259111613035202, 0.9390230178833008, -0.3940686881542206, -0.5226776599884033, 0.37008941173553467, 0.34435775876045227, 0.4534730911254883, -0.26081275939941406, 0.33107468485832214, 0.5540610551834106, 0.08330100029706955, -0.4577161967754364, 0.3560841977596283, -0.18543893098831177, -0.9982596635818481, -0.3370012044906616, -0.9682034254074097, -0.7133409380912781, -0.14076413214206696, -0.7240912914276123, 0.2880599796772003, -0.5025607943534851, -0.14178214967250824, -0.4617421329021454, 0.27033668756484985, -0.7536452412605286, 0.4478470981121063, -0.03370511159300804, 0.6932570338249207, -0.9104543328285217, 0.9698702692985535, 0.3946076035499573, -0.6346651911735535, -1.0029784440994263, -0.11023490875959396, -0.21954384446144104, -0.7904795408248901, 0.9489984512329102, 0.12229600548744202, 0.12235590815544128, 0.13722455501556396, -0.7175717949867249, -0.950810432434082, 0.7100685834884644, 0.20452451705932617, -0.37452882528305054, 0.017395103350281715, 0.30024653673171997, 0.4170815050601959, -0.2142638862133026, 0.5956308245658875, 0.7409646511077881, 0.11802622675895691, 0.1869376301765442, -0.5817200541496277, -0.24156628549098969, -0.2966374158859253, -0.14481526613235474, -0.1543448567390442, -0.5040356516838074, 0.7999802827835083, -0.22329524159431458, -0.40174633264541626, 0.18177223205566406, 1.029128909111023, 0.4127739667892456, 0.10014384239912033, 0.3757501244544983, 0.3320700526237488, 0.9772318601608276, -0.12923067808151245, 0.8164768815040588, -0.47059276700019836, 0.055195294320583344, 0.922447919845581, -0.1845095306634903, 0.9734818935394287, 0.2819695472717285, -0.35705074667930603, 0.3309153616428375, 0.9975769519805908, 0.04293893277645111, 0.4243534803390503, 0.21775013208389282, -0.015023680403828621, -0.5143160223960876, -0.0774109810590744, -0.2769341766834259, 0.4278334379196167, 0.27046555280685425, -0.015758492052555084, 0.13589495420455933, 0.019681112840771675, -0.179869145154953, 0.050430312752723694, -0.11999049782752991, 0.6959537267684937, 0.0851658284664154, -0.6456570029258728, 0.6085580587387085, -0.1841406673192978, 0.5540763139724731, -0.4022417664527893, 0.01409436296671629, -0.35630205273628235, -0.3885667622089386, -0.40690481662750244, -0.9838292598724365, 0.16975772380828857, -0.07270973920822144, -0.06596151739358902, -0.2750340700149536, 0.24307195842266083, -0.5498158931732178, -0.6199362277984619, -0.09675002843141556, 0.8745704293251038, 0.5594351291656494, -0.03150232508778572, -0.47310125827789307, -0.03223885968327522, -0.18951106071472168, -0.22956663370132446, 0.3857998847961426, 0.5550010204315186, 0.013004083186388016, 0.7461434602737427, 1.0444705486297607, 0.46864640712738037, -0.22109700739383698, 0.36940616369247437, 0.8400012850761414, -0.8950590491294861, -0.47162219882011414, -0.7802255749702454, 0.2665286064147949, -0.04203666001558304, -0.4203377962112427, 0.6046627759933472, 0.5408847332000732, 0.9811004996299744, 0.25045958161354065, 0.8073469400405884, 0.5643859505653381, 0.8081268072128296, -0.8148391246795654, 0.9161312580108643, -0.3818293809890747, 0.2549246549606323, -0.07421299815177917, -0.8966131210327148, -0.1152513176202774, 0.8226171135902405, -0.31381428241729736, 0.12022331357002258, 0.75035160779953, 0.7153441905975342, 0.22132720053195953, 0.0914108082652092, 0.5450236797332764, 0.02002638578414917, 0.5322259664535522, 0.3368121087551117, 1.3121761083602905, -0.1709849089384079, 0.3877422511577606, -0.10811381042003632, -0.13665978610515594, -0.14090567827224731, -0.6584882736206055, -1.3794244527816772, -0.7830308675765991, -0.09124114364385605, -0.31228259205818176, 0.02790447324514389, 1.2077412605285645, 0.8753316402435303, -0.7397997975349426, -0.3646691143512726, 0.2829645872116089, 0.4085390865802765, -0.13552796840667725, -0.16408079862594604, 0.3339519202709198, -0.7836799025535583, -0.41110748052597046, 0.17100007832050323, -0.04048074409365654, 0.13982820510864258, -0.27823132276535034, -0.10461989790201187, 0.04898794740438461, 0.09547758102416992, 0.5605599880218506, 0.07415905594825745, -0.43991854786872864, -0.19243615865707397, -0.17951597273349762, -0.4897317886352539, 0.19407230615615845, 0.6861506104469299, -0.6771015524864197, 0.21319156885147095, 0.41640064120292664, 0.8532059192657471, 0.27541279792785645, 0.20853137969970703, 0.5324558019638062, -0.560602605342865, -0.09906063973903656, 0.33109357953071594, 0.15678545832633972, 0.4238260090351105, -0.2428973764181137, 0.44277098774909973, 0.03594030439853668, -0.7916648387908936, -0.812894344329834, 0.05584048479795456, -0.7335283160209656, -0.11080147325992584, 1.2215332984924316, -0.2248922735452652, -0.21720591187477112, -0.3250405490398407, -0.49677547812461853, 0.1867132931947708, -0.304499089717865, 0.9929309487342834, 0.9607478380203247, -0.14103002846240997, -0.09832070022821426, -0.6225926280021667, 0.782974362373352, 0.5359243750572205, -0.9462111592292786, -0.15898513793945312, 0.2546178102493286, 0.1961006224155426, -0.3321233093738556, 0.544817328453064, 0.09831695258617401, 0.28751152753829956, -0.13323605060577393, 0.019046133384108543, -0.07770047336816788, -0.37686121463775635, -0.05749114230275154, 0.1370328813791275, 0.5698992013931274, 0.0032655249815434217 ]
http://arxiv.org/abs/2402.09738v1
http://arxiv.org/pdf/2402.09738v1
Align before Attend: Aligning Visual and Textual Features for Multimodal Hateful Content Detection
2024-02-15T06:34:15
2024-02-15T06:34:15
Eftekhar Hossain, Omar Sharif, Mohammed Moshiul Hoque, Sarah M. Preum
cs.CL
cs.CL
Multimodal hateful content detection is a challenging task that requires complex reasoning across visual and textual modalities. Therefore, creating a meaningful multimodal representation that effectively captures the interplay between visual and textual features through intermediate fusion is critical. Conventional fusion techniques are unable to attend to the modality-specific features effectively. Moreover, most studies exclusively concentrated on English and overlooked other low-resource languages. This paper proposes a context-aware attention framework for multimodal hateful content detection and assesses it for both English and non-English languages. The proposed approach incorporates an attention layer to meaningfully align the visual and textual features. This alignment enables selective focus on modality-specific features before fusing them. We evaluate the proposed approach on two benchmark hateful meme datasets, viz. MUTE (Bengali code-mixed) and MultiOFF (English). Evaluation results demonstrate our proposed approach's effectiveness with F1-scores of $69.7$% and $70.3$% for the MUTE and MultiOFF datasets. The scores show approximately $2.5$% and $3.2$% performance improvement over the state-of-the-art systems on these datasets. Our implementation is available at https://github.com/eftekhar-hossain/Bengali-Hateful-Memes.
[ -0.5864840745925903, -0.4390931725502014, 0.18607254326343536, 0.3243977129459381, -0.29718998074531555, -0.16484588384628296, -0.22881363332271576, -0.4700362980365753, 0.3498012125492096, 0.35952991247177124, -0.6406576633453369, -0.2560010552406311, -0.6549749374389648, 0.12325455993413925, -0.2684729993343353, 0.7933716773986816, -0.03331853821873665, -0.17360258102416992, -0.1735096424818039, -0.556679368019104, -0.5615375638008118, -0.1957402229309082, -0.447346568107605, 0.34672248363494873, 0.7968424558639526, 0.38634827733039856, 0.6485958695411682, 0.5352726578712463, 0.7444801926612854, 0.2561599612236023, 0.47996461391448975, 0.31589433550834656, -0.4300120770931244, 0.3659002184867859, -0.4869101345539093, 0.11523424834012985, -0.13546498119831085, 0.03705086559057236, 0.376868337392807, 0.013051311485469341, 0.2800189256668091, 0.17987138032913208, 0.0865616723895073, 0.33733826875686646, -0.985313355922699, -0.305210143327713, -0.6751899719238281, -0.03109639510512352, -0.49969589710235596, -0.256777822971344, -0.5955669283866882, 0.03620471805334091, -0.09037957340478897, -0.5855361223220825, -0.12561801075935364, 0.22063268721103668, 0.6078075170516968, 0.5519837141036987, -0.5435943603515625, -0.1859079897403717, -0.21859726309776306, 1.221745252609253, -0.5039563775062561, 0.7193019390106201, 0.32009947299957275, 0.18086214363574982, 0.17551234364509583, -0.05231321603059769, -0.8715220093727112, 0.26830384135246277, -0.24555552005767822, 0.3039400279521942, -0.28760355710983276, -0.2950025200843811, 0.19285550713539124, 0.30760085582733154, -0.9774974584579468, 0.040130890905857086, -0.1802232563495636, -0.4627377390861511, 0.5030625462532043, -0.01542429719120264, 0.5187530517578125, -0.46399447321891785, -0.8887385725975037, -0.18494467437267303, -0.2667432427406311, -0.2843635380268097, 0.27505066990852356, 0.3040340542793274, -0.3966203033924103, 0.46486765146255493, 0.00023607465845998377, 0.7231400609016418, -0.008390319533646107, -0.47304826974868774, 0.31562384963035583, -0.45206689834594727, -0.14197033643722534, -0.008449829183518887, 0.7471418976783752, 0.7732012867927551, 0.315848171710968, 0.009838431142270565, -0.02589896321296692, 0.6153389811515808, 0.4643266797065735, -0.6321401000022888, 0.07331033796072006, 0.2194601595401764, -0.3237508237361908, -0.1873806267976761, -0.5048576593399048, -0.9782766103744507, -0.5425963997840881, -0.15511158108711243, 0.39784741401672363, -0.6017585396766663, -0.5221143364906311, -0.4145098626613617, -0.1701742261648178, 0.18657921254634857, 0.329304039478302, -0.6169410943984985, -0.28797411918640137, 0.249629944562912, 0.6763057112693787, -0.4534529149532318, -0.34466224908828735, -0.5123134255409241, 0.5060875415802002, 0.08518869429826736, 0.851116955280304, -0.7052796483039856, 0.2926779091358185, 0.09417448192834854, 0.05218575894832611, -0.10004846751689911, -0.3929198682308197, 0.7187946438789368, -0.5622397661209106, 0.1524306982755661, -0.022278552874922752, -0.18649213016033173, -0.2569158673286438, 0.6941809058189392, -0.713229775428772, 0.6435175538063049, 0.3072342276573181, -1.0345567464828491, 0.3958670496940613, -0.41894373297691345, -0.545048177242279, -0.058222487568855286, -0.10789598524570465, -0.5309304594993591, -0.37410417199134827, 0.30910223722457886, 0.47326093912124634, -0.01259353943169117, 0.044880468398332596, -0.5344634652137756, -0.1956360936164856, 0.1881689876317978, -0.43417227268218994, 0.5793600678443909, 0.4869459569454193, -0.6084794402122498, 0.2525154650211334, -0.5977141261100769, -0.06142238527536392, 0.07748439908027649, -0.022456856444478035, -0.6470954418182373, 0.03531624376773834, 0.6153791546821594, 0.5252816677093506, 0.005477536469697952, -0.38187724351882935, -0.25602757930755615, -0.26266470551490784, 0.007824588567018509, 0.9587681293487549, -0.3077824115753174, 0.4821506142616272, -0.4795924723148346, 0.5637626647949219, 0.43258339166641235, 0.2793218493461609, -0.3366807699203491, -0.266875296831131, -0.4319881796836853, -0.5120400786399841, -0.1261572241783142, 0.47089776396751404, -0.8691353797912598, 0.09780536592006683, 0.010955422185361385, -0.24784719944000244, -0.5117431879043579, 0.2239137887954712, 0.5935316681861877, 0.4099529981613159, 0.639492392539978, -0.29162561893463135, -0.8330604434013367, -1.1393144130706787, -0.33713528513908386, 0.035059165209531784, 0.192337766289711, 0.3177570104598999, 0.09859634935855865, -0.35159286856651306, 0.49577412009239197, -0.29600659012794495, -0.7886473536491394, -0.0008582011214457452, -0.05049048736691475, -0.26827552914619446, 0.5243846774101257, 0.6986904740333557, -1.2352477312088013, -0.8291763663291931, 0.11426861584186554, -0.6680545806884766, -0.20275737345218658, 0.008294695988297462, -0.3704107701778412, 0.3309738039970398, 0.31253135204315186, 0.08488591760396957, 0.32209908962249756, 0.7232897281646729, -0.3913981318473816, 0.2452033907175064, 0.6293362379074097, 0.8778886795043945, -1.238356351852417, -0.1430240422487259, 0.10256510972976685, -0.2576466202735901, -0.4313240349292755, -0.1016945019364357, 0.16826161742210388, -0.08126232028007507, -0.6612480282783508, 0.6060689687728882, -0.5488227009773254, 0.32470789551734924, -0.1354084014892578, 0.32362595200538635, 0.05517914891242981, 0.5972682237625122, -0.06461405009031296, 0.6926223039627075, 0.19874680042266846, -0.21350431442260742, 0.19940385222434998, 0.22468771040439606, -0.25896868109703064, 1.1163103580474854, 0.11596184223890305, -0.11744563281536102, 0.013702918775379658, -0.23711475729942322, -1.2135727405548096, -0.46738409996032715, 0.6163570880889893, -0.5294355154037476, 0.2911398410797119, -0.09412205964326859, -0.2228262722492218, -0.1779996156692505, -0.6210533380508423, 0.9821895360946655, 0.06008484214544296, -0.33642154932022095, 0.6340956687927246, 0.7528005242347717, -0.07191336899995804, -0.7788774371147156, -0.5855919122695923, -0.07666757702827454, -0.2752852141857147, -0.7671911120414734, 0.44988906383514404, -0.30957573652267456, -0.14047420024871826, -0.06615767627954483, 0.11105570197105408, -0.35893750190734863, -0.08360795676708221, 0.2594454288482666, 0.0006244246033020318, -0.21343903243541718, -0.07910267263650894, 0.19053566455841064, 0.036750417202711105, -0.2697371542453766, 0.07753384113311768, 0.4300639033317566, 0.2110065072774887, -0.4571208357810974, -0.2939040958881378, 0.8382665514945984, 0.9758755564689636, -0.3069551885128021, 0.4287950098514557, 1.0134445428848267, -0.4760967493057251, 0.032433245331048965, -0.9807900786399841, -0.006817879155278206, -0.40816840529441833, 0.3151240944862366, -0.09027772396802902, -0.9509091377258301, 0.38696515560150146, 0.49702388048171997, -0.06022725626826286, 0.32118967175483704, 0.5993982553482056, -0.09536423534154892, 0.9674644470214844, 0.6035205125808716, -0.04551885649561882, 0.6507375836372375, 0.41771361231803894, 0.44172412157058716, -0.7965524196624756, -0.2108786404132843, -0.25921061635017395, -0.5418310761451721, -0.2175382673740387, -0.6255183219909668, 0.40950387716293335, -0.34343138337135315, 0.1334085762500763, 0.39801841974258423, -0.602272629737854, 0.4835191071033478, 0.17384709417819977, 0.14367736876010895, 0.0810733512043953, 0.19171898066997528, 0.11463432759046555, -0.7234581708908081, -0.4158293902873993, -0.1827029436826706, 0.914737343788147, 0.01351336482912302, 0.7447444796562195, 0.49586042761802673, 0.30581650137901306, 0.5491932034492493, 0.513995349407196, -0.6086881756782532, 0.2738552689552307, -0.0939849466085434, -0.7007482647895813, -0.16336902976036072, -0.18332111835479736, -0.6406506896018982, 0.36811354756355286, -0.16292108595371246, -0.2892341911792755, 0.06321883946657181, 0.19068458676338196, -0.17365048825740814, 0.21764333546161652, -0.9882502555847168, 1.1155781745910645, -0.1572553962469101, -0.6307653784751892, -0.4032650291919708, -0.5950368642807007, 0.46435052156448364, -0.13408738374710083, 0.7012561559677124, -0.19232213497161865, -0.06352680176496506, 0.8230725526809692, 0.10875407606363297, 0.8082121014595032, -0.027710214257240295, -0.1350448876619339, 0.04104366526007652, 0.10143696516752243, 0.10858789831399918, -0.18074007332324982, 0.10055117309093475, 0.050456296652555466, -0.2666769325733185, -0.4268774092197418, -0.44175058603286743, 0.8944259285926819, -0.27851876616477966, -0.4245753884315491, -0.3228912353515625, -0.8513770699501038, -0.20467843115329742, 0.2764896750450134, 0.00654692854732275, 0.38714906573295593, -0.03621146082878113, 0.16370889544487, 0.7755113840103149, 0.029250802472233772, 0.5668333172798157, 0.5607776641845703, -0.051089245826005936, -0.6954602599143982, 1.0391162633895874, 0.1912609189748764, 0.07199544459581375, 0.40497347712516785, -0.17505116760730743, -0.20023690164089203, -0.37364768981933594, -0.6233581304550171, 0.10498513281345367, -0.6663614511489868, -0.5903368592262268, -0.9324657320976257, 0.008981289342045784, -0.6529325246810913, -0.5445853471755981, -0.18679380416870117, 0.05193714797496796, -0.11293192952871323, 0.40075919032096863, 0.15301743149757385, 0.23629596829414368, -0.1620780974626541, 0.14143875241279602, -0.7247876524925232, 0.45340046286582947, 0.21084831655025482, 0.2985154092311859, 0.10559749603271484, -0.7313081622123718, -0.3166927993297577, -0.180406853556633, -0.5215559005737305, -1.0205656290054321, 0.3135910928249359, -0.05142548680305481, 0.5387265086174011, 0.8535304069519043, 0.35533374547958374, 0.6626459956169128, -0.3911009728908539, 0.4900680482387543, 0.33197933435440063, -0.7368112206459045, 0.7380591630935669, -0.3330543637275696, 0.20220531523227692, 0.49164289236068726, 0.8606591820716858, -0.5400682687759399, -0.785966157913208, -0.4303703010082245, -0.7373262047767639, 0.707781970500946, 0.15818220376968384, 0.0917249545454979, -0.27802330255508423, -0.35124990344047546, 0.08057581633329391, 0.12117590755224228, -1.2124818563461304, -0.32119837403297424, -0.27662625908851624, -0.48816201090812683, 0.19416412711143494, -0.5246859192848206, -0.1193232536315918, -0.25672125816345215, 0.644585371017456, -0.11245472729206085, -0.06931190937757492, 0.09210961312055588, -0.6964272260665894, -0.19058994948863983, 0.2673393189907074, 0.7698470950126648, 0.5582499504089355, -0.056051481515169144, 0.2550358176231384, -0.13344988226890564, -0.45690611004829407, 0.2406342327594757, -0.01313810981810093, 0.036464471369981766, -0.11585351824760437, 0.39763665199279785, 0.2418404370546341, 0.4998602569103241, -0.890224039554596, 0.924553394317627, 0.059447214007377625, 0.09290483593940735, -0.12124746292829514, -0.1342824101448059, -0.2976665794849396, 0.4827243685722351, 0.14185045659542084, 0.21272878348827362, 0.23830878734588623, -0.24807246029376984, 0.6470394730567932, 0.4902564585208893, -0.6922571063041687, -0.24317525327205658, 0.5381649732589722, 0.2909948527812958, 0.044467318803071976, 0.12229780852794647, -0.02088543027639389, -0.8145545721054077, 0.42933329939842224, 0.6839621663093567, 0.5710959434509277, -0.6377881169319153, 0.18302157521247864, 0.48792722821235657, 0.6221972703933716, 0.748070240020752, 0.10600771009922028, -0.23523396253585815, -0.8664314150810242, -0.29665833711624146, -0.8147321343421936, -0.25400859117507935, 0.2472223937511444, -0.5248528122901917, 0.33272626996040344, -0.4174497425556183, 0.22537042200565338, 0.1569145768880844, -0.39579617977142334, -0.367465078830719, 0.393616646528244, 0.4695521891117096, 0.48118430376052856, -1.0627923011779785, 0.2879639267921448, 0.6736520528793335, -0.48019859194755554, -0.5821455121040344, 0.0036311622243374586, 0.33501821756362915, -0.8842623829841614, 0.21253128349781036, 0.5082372426986694, -0.027071835473179817, -0.07144208997488022, -0.22757023572921753, -0.7697153091430664, 0.5316070318222046, 0.2699277997016907, -0.42698895931243896, 0.4335923492908478, -0.2374430000782013, 0.056514397263526917, -0.41546300053596497, 0.3572075068950653, 0.14840273559093475, 0.5900569558143616, 0.0241786427795887, -0.55536288022995, 0.23065026104450226, -0.3840038776397705, -0.35721465945243835, 0.4951811134815216, -0.8054041862487793, 0.5830076932907104, 0.0578765869140625, -0.3895012140274048, -0.5020874738693237, 0.538942277431488, -0.1507907509803772, 0.46233513951301575, 0.7014695405960083, 0.8206160664558411, 0.3446577489376068, 0.0972805768251419, 0.7494896650314331, 0.07187458872795105, 0.05431973561644554, 0.9678254723548889, -0.30194807052612305, 0.7341563701629639, 0.7367104887962341, -0.07895293831825256, 0.37757161259651184, 0.4758646786212921, 0.06597286462783813, 0.7686296701431274, -0.10877636075019836, -0.3958098292350769, -0.36568546295166016, -0.6283991932868958, -0.4769029915332794, 0.5494437217712402, 0.17913755774497986, -0.33890190720558167, -0.39704328775405884, 0.5566384792327881, 0.06302940100431442, 0.3731563091278076, -0.2899457812309265, 0.9343286752700806, -0.2073068469762802, -0.5298917293548584, 0.6218088865280151, -0.14713086187839508, 0.9406352043151855, -0.4626026749610901, 0.015056392177939415, 0.0008317745523527265, 0.1381039321422577, -0.3176445960998535, -0.6324164867401123, 0.725324273109436, 0.0425165630877018, -0.8223270773887634, -0.2503678798675537, 0.619417130947113, -0.7682044506072998, -0.11534833908081055, 0.6794835925102234, 0.034089431166648865, -0.02324821799993515, -0.28028613328933716, -0.5895749926567078, 0.5234456062316895, 0.2789204716682434, 0.07085443288087845, 0.5327825546264648, 0.26755231618881226, -0.2611761689186096, 0.18113645911216736, 0.5762660503387451, -0.42506399750709534, 0.06214277073740959, 0.204867884516716, 0.8940293192863464, -0.5165437459945679, -0.490271657705307, -0.8245788812637329, 0.6910187005996704, -0.1591293066740036, -0.24175956845283508, 0.6665602326393127, 0.5840494632720947, 1.2446379661560059, -0.07657397538423538, 0.6289275884628296, -0.16869203746318817, 0.5983577370643616, -0.33574941754341125, 0.8799925446510315, -1.0485891103744507, -0.42223450541496277, -0.5479345917701721, -0.9200950860977173, -0.4161304235458374, 0.4564278721809387, -0.10557009279727936, -0.36374497413635254, 0.784923255443573, 0.9428460597991943, -0.28410497307777405, -0.20341716706752777, 0.6934994459152222, 0.16700479388237, 0.09959901869297028, 0.6468193531036377, 0.8373388648033142, -0.6125404238700867, 0.7657508850097656, -0.2900749444961548, -0.5441747903823853, -0.2896462380886078, -0.8120280504226685, -0.8437497019767761, -0.7901563048362732, -0.3260001242160797, -0.3348105847835541, -0.20316988229751587, 0.5981638431549072, 0.5879945158958435, -1.0015275478363037, 0.2287234365940094, 0.7157034873962402, 0.4200233817100525, -0.0664980411529541, -0.29207634925842285, 0.1329362392425537, -0.3357035517692566, -0.7387658357620239, 0.3392212390899658, 0.8424467444419861, -0.1358301043510437, -0.022867869585752487, 0.027198083698749542, -0.6931665539741516, 0.17797574400901794, 0.7247895002365112, 0.03813162073493004, -0.7987362742424011, -0.35828208923339844, -0.17632290720939636, -0.3290192782878876, 0.091525137424469, 0.6902981400489807, -0.3915458917617798, 0.5142545104026794, 0.23969364166259766, 0.9160416126251221, -0.016073817387223244, -0.09422113746404648, 0.09314846247434616, -0.8055515289306641, 0.5709811449050903, 0.3601045310497284, 0.35788530111312866, 0.5064743757247925, -0.4768160879611969, 0.22916154563426971, 0.5040487051010132, -0.2865549921989441, -0.8979609608650208, 0.33233460783958435, -1.3099181652069092, 0.06039902940392494, 0.7306535840034485, -0.04008655250072479, -0.4129171371459961, -0.29564133286476135, -0.2831905484199524, 0.10031719505786896, -0.26802951097488403, 0.6740608215332031, 0.7903552651405334, 0.35721391439437866, -0.3217813968658447, -0.07237990945577621, 0.3782130479812622, 0.8435884714126587, -0.580539882183075, 0.05871471017599106, 0.6936811208724976, -0.018705235794186592, 0.38587647676467896, 0.5735377669334412, -0.21480199694633484, 0.6017996668815613, -0.14477446675300598, 0.1978536695241928, 0.03960873931646347, -0.5991079807281494, 0.009006806649267673, 0.37663865089416504, -0.6038680672645569, -0.15856222808361053 ]
http://arxiv.org/abs/2402.09733v1
http://arxiv.org/pdf/2402.09733v1
Do LLMs Know about Hallucination? An Empirical Investigation of LLM's Hidden States
2024-02-15T06:14:55
2024-02-15T06:14:55
Hanyu Duan, Yi Yang, Kar Yan Tam
cs.CL
cs.CL
Large Language Models (LLMs) can make up answers that are not real, and this is known as hallucination. This research aims to see if, how, and to what extent LLMs are aware of hallucination. More specifically, we check whether and how an LLM reacts differently in its hidden states when it answers a question right versus when it hallucinates. To do this, we introduce an experimental framework which allows examining LLM's hidden states in different hallucination situations. Building upon this framework, we conduct a series of experiments with language models in the LLaMA family (Touvron et al., 2023). Our empirical findings suggest that LLMs react differently when processing a genuine response versus a fabricated one. We then apply various model interpretation techniques to help understand and explain the findings better. Moreover, informed by the empirical observations, we show great potential of using the guidance derived from LLM's hidden representation space to mitigate hallucination. We believe this work provides insights into how LLMs produce hallucinated answers and how to make them occur less often.
[ -0.3382474482059479, -0.877921998500824, 1.1030848026275635, 0.07012224942445755, -0.09294429421424866, 0.14444640278816223, -0.19254231452941895, -0.7597598433494568, 0.5319014191627502, 0.4684867858886719, -0.8214019536972046, -0.3909088969230652, -0.43324992060661316, 0.2525821328163147, -0.5589285492897034, 0.5159624814987183, 0.047000158578157425, 0.13248471915721893, -0.21236521005630493, 0.05237441509962082, -0.42569398880004883, -0.800057590007782, -0.24651378393173218, -0.31919142603874207, 0.6484467387199402, 0.1747993379831314, 0.47884222865104675, 0.6190353631973267, 0.19119499623775482, 0.18673640489578247, -0.2877812087535858, 0.007574055343866348, -0.7338792681694031, 0.12036151438951492, 0.0712895318865776, -0.8708066940307617, -0.22527450323104858, -0.022659868001937866, 0.40252986550331116, 0.8010579347610474, -0.1253785640001297, 0.07850030809640884, -0.03885582834482193, 0.5526669025421143, -0.571368396282196, -0.007741076406091452, -0.8367589712142944, 0.44850441813468933, 0.22013139724731445, -0.355510413646698, -0.5485648512840271, -0.5267223119735718, -0.13544005155563354, -0.21388007700443268, 0.4201403260231018, 0.2234397530555725, 0.6931253671646118, 0.5017197728157043, -0.47280192375183105, -0.5342867970466614, -0.8931089043617249, 0.5823381543159485, -0.6126667857170105, 0.43474626541137695, 0.5725590586662292, 0.1931827962398529, -0.25738266110420227, -0.41407549381256104, -0.8231188058853149, -0.5531217455863953, -0.3723558485507965, -0.060181524604558945, 0.025295691564679146, -0.12712475657463074, 0.40829408168792725, 0.5438235998153687, -0.6353241205215454, 0.15632036328315735, -0.28512340784072876, -0.3804406225681305, 0.3775627315044403, 0.15542249381542206, 0.30147290229797363, -0.06760919839143753, -0.23664210736751556, 0.0929495245218277, -0.8686284422874451, -0.34475329518318176, 0.35566356778144836, 0.043495189398527145, 0.09510786831378937, 0.9844949841499329, 0.019679639488458633, 0.350103497505188, -0.02528834529221058, 0.20599135756492615, -0.019851110875606537, 0.05205582454800606, -0.21876055002212524, 0.3728899359703064, 0.49008792638778687, 0.0728939026594162, 0.09251143783330917, -0.4409389793872833, -0.5758727192878723, 0.32597747445106506, 0.31412678956985474, -0.7906107306480408, -0.06429247558116913, 0.3024798333644867, -0.4988190531730652, -0.323118656873703, -0.15155388414859772, -0.3883088231086731, -0.9004772305488586, -0.19524307548999786, 0.7152119278907776, -0.19191130995750427, -0.4366212785243988, 0.3040163516998291, -0.06871914118528366, 0.4209411144256592, 0.1372103989124298, -0.8829401731491089, 0.7197321057319641, 0.6913629770278931, 0.5320653915405273, -0.18192283809185028, -0.24315223097801208, -0.40938323736190796, -0.17768540978431702, -0.5486941337585449, 0.8455120325088501, -0.5447124242782593, -0.335723340511322, 0.06100485473871231, 0.18186889588832855, -0.12397091090679169, -0.9860700964927673, 0.15691466629505157, -0.6111047863960266, 0.03389331325888634, -0.6875534057617188, -0.6487061977386475, -0.42656031250953674, 0.0895683616399765, -0.7567533254623413, 0.8527524471282959, -0.2978568971157074, -0.5420702695846558, 0.21920475363731384, -0.30456605553627014, -0.07957297563552856, -0.04588868468999863, -0.4643838405609131, -0.2239428162574768, 0.6539658308029175, -0.002395511604845524, 0.47889986634254456, 0.04694422334432602, 0.06124858558177948, -0.3261180520057678, -0.7870196104049683, 0.9324176907539368, -0.34626179933547974, 0.338228702545166, 0.0597827173769474, -0.5603170394897461, 0.13076764345169067, -0.7786605358123779, -0.3793283998966217, 0.3906211853027344, -0.16120751202106476, -0.1296422928571701, 0.08827100694179535, -0.35692909359931946, -0.018736163154244423, 0.25157979130744934, -0.5540557503700256, 0.2696932554244995, -0.3650718927383423, 0.16643114387989044, 0.8272824883460999, 0.16299372911453247, 0.31412383913993835, -0.35539379715919495, 0.4094392657279968, -0.034423667937517166, -0.17087800800800323, 0.1616123616695404, -0.3491958975791931, -1.1066228151321411, -0.028757276013493538, -0.02989654242992401, 0.2809962034225464, -0.2186356782913208, 0.38676610589027405, 0.14811298251152039, -0.09911306202411652, -0.6081946492195129, -0.10409200936555862, 0.2934560179710388, 0.4868321716785431, 0.16140222549438477, 0.022175734862685204, -0.4947032034397125, -0.964942455291748, -0.09387395530939102, -0.22883430123329163, 0.05055547133088112, 0.22892668843269348, 0.7003048062324524, -0.29643377661705017, 0.6184586882591248, -0.5863146185874939, -0.24433179199695587, -0.22904647886753082, 0.14365869760513306, 0.1575620025396347, -0.11487837880849838, 0.2770792841911316, -0.5698075294494629, 0.2508871555328369, -0.1061149388551712, -1.2509820461273193, 0.049488477408885956, -0.24028508365154266, 0.14963363111019135, 0.16356584429740906, 0.5339901447296143, -0.650879979133606, 0.6442698240280151, 0.515541672706604, -0.34656378626823425, 0.5858896374702454, -0.2459220290184021, -0.034217603504657745, -0.5457521677017212, -0.20830437541007996, -0.5425862073898315, -0.08516848832368851, -0.5666840672492981, -0.018814748153090477, 0.02059372141957283, 0.04309898614883423, -0.40171071887016296, 0.48413798213005066, -0.6974576711654663, -0.6343411803245544, -0.47383031249046326, 0.16830527782440186, -0.25788989663124084, 0.6495389342308044, 0.337177574634552, 0.8846156001091003, 0.5240134596824646, -0.8089171051979065, 0.017829639837145805, 0.06484132260084152, -0.4984562397003174, -0.06546328216791153, -0.5608106255531311, 0.3513801693916321, -0.21258780360221863, 0.09309106320142746, -1.1624553203582764, -0.2990049123764038, 0.3625198304653168, -0.48651301860809326, -0.040553491562604904, 0.18952256441116333, -0.6070992946624756, -0.25931987166404724, -0.17856481671333313, 0.14582505822181702, 0.5100215077400208, -0.6346386671066284, 0.5144879221916199, 0.408231645822525, 0.04122285917401314, -0.3773515224456787, -0.8249725699424744, 0.05069988965988159, -0.22865845263004303, -0.2918955385684967, 0.07127083837985992, -0.48190534114837646, -0.5843381285667419, -0.03812985122203827, -0.301618754863739, 0.10690724104642868, 0.36602160334587097, 0.5979193449020386, 0.00344418128952384, -0.25015726685523987, 0.2905886471271515, 0.05457009747624397, 0.11730577796697617, 0.5033813118934631, 0.23510922491550446, 0.9446609020233154, -0.2227785736322403, -0.6566024422645569, -0.4797358810901642, 0.16085407137870789, 0.4121774733066559, 0.05660826712846756, 0.9894190430641174, 0.2725084125995636, -0.8171868920326233, -0.21663258969783783, -0.6365197896957397, -0.6748967170715332, -0.4297410845756531, 0.15349045395851135, -0.5772643089294434, -0.9018997550010681, 0.9443779587745667, 0.1534607857465744, -0.17992959916591644, 0.08808302879333496, 0.9211848974227905, -0.05658024549484253, 1.1187853813171387, 0.6824368238449097, 0.22047388553619385, -0.049751166254282, -0.18526297807693481, 0.31702035665512085, -0.8054842352867126, -0.38715317845344543, -0.36422377824783325, -0.35661762952804565, -0.5987167358398438, -0.32778993248939514, 0.21146894991397858, 0.04224122315645218, 0.054406553506851196, 0.04479556530714035, -0.38797327876091003, 0.5925478935241699, -0.0005090255872346461, 0.27712154388427734, 0.34368425607681274, -0.059645622968673706, -0.1325402557849884, 0.00546080619096756, -0.3080974817276001, -0.6962446570396423, 0.7985503673553467, 0.45715606212615967, 0.7423017024993896, 0.19080998003482819, 0.9363503456115723, 0.28207212686538696, 0.23863141238689423, -0.9215792417526245, 0.828896701335907, 0.595492422580719, -0.606925904750824, -0.29394829273223877, -0.23807722330093384, -0.9921604990959167, 0.39635032415390015, -0.20914703607559204, -0.8138020634651184, 0.07581345736980438, -0.16231009364128113, -0.2795701026916504, 0.2064344882965088, -0.4636560380458832, 0.3821249306201935, -0.2647177577018738, -0.2632599174976349, -0.2521984577178955, -0.405582070350647, 0.6467401385307312, -0.1902054250240326, 0.16749808192253113, -0.1948375254869461, 0.09553948044776917, 0.7918973565101624, -0.22075101733207703, 1.1285994052886963, 0.03877299278974533, -0.6035784482955933, 0.17553657293319702, 0.4332115352153778, 0.5582491159439087, 0.12583662569522858, -0.21379977464675903, -0.024238184094429016, -0.3039495348930359, -0.14276614785194397, -0.6360292434692383, 0.9092444777488708, -0.7235783338546753, -0.8829013109207153, -0.5047488212585449, -0.6078574657440186, -0.11351035535335541, 0.023589862510561943, 0.16159072518348694, 0.04509695619344711, -0.24416933953762054, -0.1471235454082489, 1.0192816257476807, -0.43129709362983704, 0.4662090837955475, 0.6853976249694824, -0.7530302405357361, 0.09429168701171875, 0.6411848068237305, 0.23301784694194794, 0.03806626424193382, 0.3995434641838074, 0.29968225955963135, -0.5101813673973083, -0.4482450783252716, -0.27572450041770935, 0.8551790714263916, -0.9388153553009033, 0.34994813799858093, -0.5924561619758606, -0.3475244641304016, -0.4348280131816864, 0.14447911083698273, -0.2160523384809494, -0.4087776839733124, -0.5485552549362183, -0.6226606965065002, 0.3317357003688812, 1.348412036895752, 0.02226989157497883, 0.013185360468924046, -0.3960009217262268, 0.5923067331314087, 0.5203846096992493, 0.19695362448692322, 0.17008602619171143, -0.6319183707237244, 0.21114589273929596, 0.12037970870733261, 0.12872761487960815, -1.1290535926818848, 0.3785420060157776, -0.1946401745080948, 0.6022448539733887, 0.4045639634132385, 0.21670855581760406, 0.7267255187034607, -0.4816557466983795, 0.8169785737991333, -0.1433059722185135, -0.7876126170158386, 0.2837533950805664, 0.037229131907224655, 0.02430817298591137, 0.16961412131786346, 0.3568287491798401, -0.4576300382614136, -0.722780168056488, -0.3826374411582947, -0.36678391695022583, 0.3137381076812744, 0.12764889001846313, 0.40107282996177673, -0.15676380693912506, 0.3413175940513611, 0.43497776985168457, 0.28698647022247314, -1.023857593536377, -0.2955082654953003, 0.19046971201896667, 0.24269498884677887, 0.08562630414962769, -0.5717601776123047, -0.2855563163757324, -0.035788778215646744, 0.2257874459028244, 0.0839637741446495, 0.5572406649589539, 0.11747824400663376, -0.41485822200775146, -0.3644179105758667, 0.09397946298122406, 0.8972377777099609, 0.8571372628211975, -0.43241292238235474, 0.5704385042190552, 0.2857878804206848, -0.31325703859329224, 0.0774184912443161, -0.49502548575401306, -0.061606887727975845, -0.005125583149492741, 0.449636310338974, 0.8925024271011353, -0.027970261871814728, -0.6880515217781067, 0.38859251141548157, -0.3689723312854767, -0.2806522846221924, -0.6331672072410583, 0.1756867915391922, 0.26229074597358704, 0.21681565046310425, 0.4074786603450775, -0.18916045129299164, 0.1406879723072052, -0.8082927465438843, 0.2082855999469757, 0.3907444477081299, -0.4119862914085388, -0.5671151280403137, 0.7856971025466919, -0.2649993598461151, -0.49509379267692566, 0.5156222581863403, -0.2615850269794464, -0.6208423972129822, 0.6284496188163757, 0.7321808934211731, 0.8436896800994873, -0.05832093954086304, 0.19286930561065674, 0.09092242270708084, 0.34491705894470215, 0.17701885104179382, 0.5687530040740967, -0.1182994693517685, -0.7518962025642395, -0.30750784277915955, -0.7492818236351013, -0.36606365442276, 0.6085098385810852, -0.7298546433448792, 0.02628292888402939, -0.328943133354187, 0.14303117990493774, -0.29593148827552795, -0.17620301246643066, -0.5311760902404785, 0.149469256401062, 0.40568989515304565, 0.5334222316741943, -0.975601315498352, 0.6435182094573975, 0.2850797474384308, -0.34865400195121765, -0.5966863036155701, 0.4121122658252716, 0.007952176965773106, -1.144913911819458, 0.6857583522796631, 0.41125020384788513, -0.5094553828239441, -0.05372840166091919, -0.702045202255249, -0.7203431129455566, 0.8000448346138, 0.20356108248233795, -0.5308820605278015, 0.2659251093864441, 0.49429914355278015, 0.685840904712677, -0.08034013211727142, 0.07091903686523438, 0.5925013422966003, 0.3708423376083374, 0.17104952037334442, -0.5145360827445984, 0.31473419070243835, 0.0026188241317868233, -0.22028210759162903, 0.006259423214942217, -0.4712211787700653, 0.6291239261627197, -0.5611361861228943, -0.5433939695358276, 0.18030229210853577, 0.8889021277427673, 0.538393497467041, 0.4075366258621216, 0.35581010580062866, 0.4138294458389282, 1.0297964811325073, 0.17173048853874207, 0.9843451380729675, -0.22714462876319885, 0.031021520495414734, 0.8758153915405273, -0.6125704050064087, 0.9023499488830566, 0.7639496922492981, 0.09348853677511215, 0.34968888759613037, 0.805884063243866, 0.2554134726524353, 0.5324812531471252, 0.6108295917510986, -0.2931439280509949, -0.23670822381973267, -0.2170080840587616, -0.3279690146446228, 0.21995384991168976, 0.46886488795280457, -0.17576904594898224, 0.25714680552482605, 0.22020073235034943, 0.11837008595466614, 0.027827387675642967, -0.14053340256214142, 0.7689391374588013, 0.19759024679660797, -0.5888407230377197, 0.9258105158805847, -0.27231284976005554, 0.35495468974113464, -0.30697667598724365, -0.15597304701805115, -0.669552743434906, 0.0724516436457634, -0.29449793696403503, -0.7855820655822754, 0.2862541079521179, 0.01741061545908451, -0.19146838784217834, -0.06642802059650421, 0.6247367262840271, -0.3014221489429474, -0.3815039396286011, 0.5028690099716187, 0.4542904794216156, 0.6816033124923706, -0.14980195462703705, -0.24089249968528748, 0.28924354910850525, 0.009459436871111393, -0.3445364236831665, 0.43788737058639526, 0.48100101947784424, -0.16439780592918396, 0.8654579520225525, 0.5593562722206116, 0.35391560196876526, 0.5085158348083496, 0.2667718827724457, 0.7808864116668701, -0.7388753294944763, -0.049483463168144226, -0.7994459271430969, 0.16862063109874725, 0.17415376007556915, -0.03735670447349548, 0.809763491153717, 0.5673693418502808, 0.7389017343521118, -0.33927348256111145, 0.6255367398262024, 0.2638343572616577, 0.49851885437965393, -0.7169111371040344, 0.7907394170761108, -0.7680943012237549, 0.6472483277320862, 0.0991421788930893, -1.0487887859344482, -0.3141762912273407, 0.6940837502479553, -0.39867645502090454, -0.3184487521648407, 0.8060109615325928, 1.1974756717681885, 0.142855703830719, 0.04194929823279381, 0.7191386222839355, 0.5349577069282532, 0.04666701331734657, 0.3741437792778015, 1.5867795944213867, -0.18915140628814697, 0.3605409562587738, -0.30782604217529297, 0.13654661178588867, -0.203749418258667, -0.6191356182098389, -0.9298532605171204, -0.5658584833145142, -0.28144651651382446, -0.15255558490753174, -0.0022778173442929983, 0.5465655326843262, 0.22316507995128632, -0.7592072486877441, -0.47525396943092346, -0.08029641211032867, 0.23487135767936707, -0.0429602786898613, -0.21063169836997986, 0.43511781096458435, -0.16641555726528168, -0.46601760387420654, 0.6490756869316101, 0.29682615399360657, 0.23903672397136688, -0.43664616346359253, -0.1105555072426796, 0.009616869501769543, 0.355364054441452, 0.43328043818473816, 0.05245181545615196, -0.9659009575843811, -0.4163433313369751, 0.39548128843307495, -0.23946429789066315, 0.12061881273984909, 0.7877775430679321, -0.7850661277770996, 0.1989315301179886, 0.45268747210502625, 0.31124505400657654, 0.4161074161529541, -0.2781636118888855, 0.18863464891910553, -0.5719304084777832, 0.13648292422294617, 0.28792157769203186, 0.3311395049095154, 0.2030956745147705, -0.4778832197189331, 0.3893645107746124, 0.12397085130214691, -0.5707131028175354, -1.1488105058670044, 0.3354593515396118, -0.7511588335037231, -0.5612064003944397, 1.3509398698806763, 0.31771913170814514, -0.4839097857475281, 0.005106812343001366, -0.29420652985572815, 0.31953203678131104, -0.009974830783903599, 1.1285046339035034, 0.7682372331619263, -0.344542920589447, -0.1816958338022232, -0.6053521633148193, 0.44527485966682434, 0.3879433274269104, -0.7277745604515076, 0.3307168483734131, 0.4496408700942993, 0.21453356742858887, 0.04522468522191048, 0.5691418051719666, 0.1122560128569603, -0.013033167459070683, -0.04168692231178284, 0.10660770535469055, 0.2975957989692688, -0.4097763001918793, -0.4932483434677124, 0.041476596146821976, 0.2337128072977066, -0.15203247964382172 ]
http://arxiv.org/abs/2402.09727v2
http://arxiv.org/pdf/2402.09727v2
A Human-Inspired Reading Agent with Gist Memory of Very Long Contexts
2024-02-15T05:40:21
2024-02-23T18:21:28
Kuang-Huei Lee, Xinyun Chen, Hiroki Furuta, John Canny, Ian Fischer
cs.CL
cs.CL, cs.AI, cs.IR
Current Large Language Models (LLMs) are not only limited to some maximum context length, but also are not able to robustly consume long inputs. To address these limitations, we propose ReadAgent, an LLM agent system that increases effective context length up to 20x in our experiments. Inspired by how humans interactively read long documents, we implement ReadAgent as a simple prompting system that uses the advanced language capabilities of LLMs to (1) decide what content to store together in a memory episode, (2) compress those memory episodes into short episodic memories called gist memories, and (3) take actions to look up passages in the original text if ReadAgent needs to remind itself of relevant details to complete a task. We evaluate ReadAgent against baselines using retrieval methods, using the original long contexts, and using the gist memories. These evaluations are performed on three long-document reading comprehension tasks: QuALITY, NarrativeQA, and QMSum. ReadAgent outperforms the baselines on all three tasks while extending the effective context window by 3-20x.
[ -0.26793572306632996, -0.8219103813171387, 0.8591371774673462, -0.142300084233284, -0.4531410336494446, 0.2648817002773285, -0.46406999230384827, -0.5459363460540771, 0.253494530916214, 0.47593000531196594, -0.5030490756034851, -0.31060561537742615, -0.3407401442527771, 0.2451019138097763, -0.3856312930583954, 1.0478651523590088, -0.13036629557609558, -0.414814293384552, -0.06516724824905396, -0.06513442099094391, -0.44674015045166016, -0.24353352189064026, -0.6822873950004578, -0.5900397300720215, 0.855851948261261, 0.6215201616287231, 0.7405544519424438, 0.6100548505783081, 0.15783436596393585, 0.3262752890586853, -0.1861591637134552, 0.2427104115486145, -0.5603155493736267, 0.3845503330230713, -0.29941749572753906, -0.5582999587059021, -0.4667914807796478, -0.41070473194122314, 0.49654218554496765, 0.24658912420272827, -0.025581516325473785, -0.1729380190372467, 0.08135014027357101, 0.5729696750640869, -0.4517662227153778, 0.10641906410455704, -0.19428153336048126, -0.08003488928079605, 0.14036397635936737, -0.40409019589424133, -0.6167387366294861, -0.11943016201257706, 0.500272274017334, -0.7167291641235352, 0.13318008184432983, -0.005330453626811504, 0.7195905447006226, 0.14066378772258759, -0.39555349946022034, -0.48612499237060547, -0.624807596206665, 0.4204607605934143, -0.2453872561454773, 0.1833854615688324, 0.4462457597255707, 0.27155590057373047, -0.005448725540190935, -0.6500318050384521, -0.641666054725647, -0.4067419171333313, -0.06664874404668808, 0.10966726392507553, -0.07589222490787506, -0.08371804654598236, 0.1985611915588379, -0.13557307422161102, -0.5830185413360596, -0.28873422741889954, -0.15149334073066711, -0.10117447376251221, 0.12246614694595337, 0.1103472113609314, 0.43847912549972534, -0.10694295912981033, -0.6813578605651855, -0.15809686481952667, -0.32218796014785767, -0.022255893796682358, 0.1289990097284317, -0.15404397249221802, 0.15786734223365784, 0.2759953439235687, -0.19527378678321838, 0.5604822039604187, -0.14406068623065948, 0.022251609712839127, 0.0222649946808815, 0.057797327637672424, 0.015745997428894043, 0.11770473420619965, 0.42348653078079224, 0.4380396604537964, 0.5675865411758423, -0.3191627860069275, -0.4651957154273987, -0.11195465177297592, 0.44251465797424316, -0.8141813278198242, -0.20211172103881836, -0.021038619801402092, -0.06795080006122589, -0.020896708592772484, 0.14219029247760773, -0.738395631313324, -0.541481077671051, -0.2564021050930023, 0.5384854674339294, -0.8652332425117493, 0.06039615347981453, 0.24212664365768433, -0.43356600403785706, 0.30114316940307617, 0.558133602142334, -0.8955792784690857, 0.20262955129146576, 0.4765811860561371, 1.0495669841766357, -0.1411636620759964, -0.6022000908851624, -0.3999781906604767, 0.35479244589805603, -0.09560484439134598, 1.0599966049194336, -0.48895543813705444, -0.28565162420272827, -0.1591014564037323, 0.22241581976413727, 0.028169184923171997, -0.17580333352088928, 0.35486021637916565, -0.884032666683197, -0.019537024199962616, -0.10672594606876373, -0.5270102620124817, -0.16200947761535645, 0.5207820534706116, -0.6660414338111877, 0.7675527334213257, 0.36891236901283264, -0.49768954515457153, 0.1595923900604248, -0.7440196871757507, -0.514335572719574, 0.2604670226573944, 0.2091347873210907, 0.020697811618447304, 0.0013621613616123796, 0.44369447231292725, 0.36474451422691345, -0.04652988538146019, 0.05394689366221428, 0.14221937954425812, -0.5973507761955261, 0.32609084248542786, -0.7663177847862244, 0.3300689458847046, 0.09080137312412262, -0.2729262709617615, 0.3088516294956207, -0.47761058807373047, 0.003755237441509962, 0.2556818127632141, -0.567878246307373, -0.5177797675132751, -0.08190873265266418, -0.1364835947751999, -0.22274599969387054, 0.3568043112754822, -0.5736228823661804, 0.43429598212242126, -0.1879315972328186, 0.6886115670204163, 0.7599732279777527, 0.05794629454612732, 0.6626277565956116, -0.6773661971092224, 0.7066026329994202, -0.20739391446113586, -0.26794859766960144, -0.7593815326690674, 0.07104489952325821, -0.7899852395057678, -0.4257717430591583, -0.06830481439828873, 0.5817502737045288, -0.8776338696479797, 0.4439893662929535, -0.5044430494308472, -0.3054022789001465, -0.03219342976808548, 0.07021963596343994, 0.21233850717544556, 0.5116039514541626, 0.20722287893295288, 0.048525694757699966, 0.08369889110326767, -0.4778546690940857, -0.1669364720582962, -0.31702369451522827, -0.2686275541782379, 0.37072643637657166, 0.5456269383430481, -0.4863271117210388, 1.0778108835220337, -0.7297070622444153, -0.07232396304607391, -0.31283682584762573, -0.10179995000362396, 0.08995998650789261, 0.15090137720108032, 0.2238304316997528, -0.4019639790058136, -0.4203639626502991, 0.10406311601400375, -0.6812313199043274, -0.11929073184728622, -0.31520727276802063, -0.2154606580734253, 0.05056195333600044, 0.6982936263084412, -0.8571626543998718, 0.19100543856620789, 0.16155819594860077, -0.7076036930084229, 0.5203245878219604, -0.714570164680481, 0.06502077728509903, -1.0730253458023071, -0.002999855438247323, -0.32316598296165466, -0.6605817675590515, -0.44229093194007874, 0.28749579191207886, 0.4982813596725464, -0.2718122601509094, -0.41631585359573364, 1.067188024520874, -0.8906669616699219, 0.059653040021657944, -0.4504722058773041, 0.2640362083911896, 0.2520752251148224, 0.4458330571651459, -0.05535493418574333, 1.0279005765914917, 0.33535122871398926, -0.4072263538837433, 0.4347771108150482, 0.2748706340789795, -0.3884463310241699, 0.5992202162742615, -0.48020225763320923, 0.43414506316185, -0.26104220747947693, 0.6021393537521362, -0.9302328824996948, -0.3703303635120392, 0.17658142745494843, -0.21615023910999298, 0.32404786348342896, 0.1971868872642517, -0.5462867617607117, -0.27233707904815674, -0.16250640153884888, 0.031669046729803085, 0.4491178095340729, -0.875740110874176, 0.7358091473579407, -0.1744992583990097, -0.45013627409935, -0.30029037594795227, -0.5809732675552368, 0.42658665776252747, -0.2694697678089142, -0.8078635931015015, 0.12117517739534378, -0.10904815047979355, 0.022738037630915642, -0.03321704640984535, 0.033707816153764725, 0.04971182346343994, -0.11266770958900452, 0.08998822420835495, 0.09867013245820999, -0.13558419048786163, 0.5051138997077942, 0.05218416079878807, -0.1683703064918518, -0.10651425272226334, -0.47781550884246826, 0.6340784430503845, -0.5002298355102539, 0.08543097227811813, -0.1853167861700058, 0.554743766784668, 0.6644203066825867, -0.11191941797733307, 0.5366712808609009, 0.37889349460601807, -0.22616423666477203, -0.44177812337875366, -0.29874250292778015, -0.25816676020622253, -0.5370159149169922, 0.4710312485694885, -0.6476584076881409, -1.0755161046981812, 0.6390829086303711, -0.1627432405948639, -0.1902056336402893, 0.04229965806007385, 0.43263301253318787, -0.16734954714775085, 0.6452347040176392, 0.2683858871459961, -0.25770336389541626, 0.8557613492012024, -0.1991712599992752, -0.2740188539028168, -0.7577031850814819, 0.19917359948158264, -0.08638375997543335, -0.4253099858760834, 0.23769748210906982, -0.5136632919311523, 0.1771734207868576, 0.21790467202663422, -0.35876232385635376, 0.22754459083080292, -0.5010000467300415, 1.019661784172058, 0.2637024521827698, 0.3622753322124481, 0.29173463582992554, -0.027289658784866333, -0.31716203689575195, 0.3891121745109558, -0.3969966471195221, -0.8512823581695557, 0.7270532250404358, 0.4268239140510559, 1.0317789316177368, 0.26585206389427185, 0.5965173840522766, 0.5968217253684998, 0.26391056180000305, -1.099852442741394, 0.792219877243042, 0.3022284209728241, -0.6581025123596191, -0.7097837924957275, -0.024436522275209427, -1.310043454170227, 0.2585998475551605, 0.382571816444397, -0.7726941704750061, -0.009206072427332401, -0.26261118054389954, -0.2760847210884094, 0.2126307636499405, -0.6683545112609863, 0.5407090187072754, -0.25015243887901306, -0.2379673421382904, -0.19863714277744293, -0.753792405128479, -0.12419191747903824, -0.03809884563088417, -0.23957757651805878, 0.10737431794404984, -0.5815871357917786, 0.3768397867679596, -0.5326467156410217, 0.8202497363090515, 0.05045551434159279, -0.1404028981924057, 0.5945588946342468, 0.2777530550956726, 0.8708147406578064, 0.11914768069982529, -0.1610816866159439, -0.2925156354904175, 0.01942402496933937, -0.5642757415771484, -0.8830698132514954, 0.5451664924621582, -0.8904266953468323, -0.6441621780395508, -0.4869033098220825, -0.6078061461448669, -0.10467904061079025, 0.48642680048942566, 0.13693521916866302, 0.36827707290649414, -0.3860299587249756, 0.1771048903465271, 0.6049232482910156, 0.11117830872535706, 0.6374386548995972, 0.7059162855148315, 0.0628676638007164, -0.44140470027923584, 0.7520070672035217, -0.10853943228721619, 0.37086477875709534, 0.4246204197406769, 0.3269328474998474, -0.28681185841560364, -0.19747532904148102, -0.7302098274230957, 0.15970855951309204, -0.8596460223197937, 0.048660699278116226, -0.6794738173484802, -0.1440194696187973, 0.10292018204927444, -0.6594168543815613, 0.1989799588918686, 0.09434932470321655, -0.6313758492469788, -0.11268515139818192, 0.5818510055541992, 0.6690167188644409, 0.25732654333114624, 0.7246730923652649, -0.9128974676132202, 0.2522144615650177, 0.3314210772514343, 0.3618091940879822, 0.18683679401874542, -0.5636197328567505, -0.34621894359588623, -0.2718607783317566, -0.23359324038028717, -1.0413974523544312, 0.6202404499053955, 0.06310564279556274, 0.30587223172187805, 0.6198074221611023, 0.10815635323524475, 0.4770009219646454, -0.675183892250061, 0.5118622779846191, -0.1245666891336441, -0.7034087181091309, 0.24566902220249176, -0.7955430746078491, 0.8167580366134644, 0.6565887928009033, 0.1265992969274521, -0.7000594735145569, -0.2790945768356323, -0.2793370187282562, -0.6956565976142883, 0.462427020072937, -0.06555216759443283, 0.3883567452430725, -0.2714216411113739, 0.5968716740608215, 0.10155117511749268, -0.23888635635375977, -0.30518224835395813, 0.4806338846683502, -0.0006371396593749523, -0.09151820093393326, -0.31814613938331604, -0.3158826231956482, 0.08287139981985092, -0.04074633866548538, 0.27868524193763733, -0.5290553569793701, 0.42090630531311035, 0.5735713839530945, -0.5697711110115051, -0.08138356357812881, 0.731381893157959, 0.7697111368179321, 0.8689796328544617, -0.27464547753334045, 0.22898828983306885, 0.3305497467517853, -0.8671336770057678, 0.6427890062332153, -0.024009423330426216, -0.10440029948949814, -0.2199268490076065, 0.34771454334259033, 0.6191814541816711, 0.09436400234699249, -0.8696840405464172, 0.3062160015106201, -0.28343743085861206, -0.04492936655879021, -0.5338893532752991, 0.2168881893157959, 0.4590825140476227, 0.699690043926239, 0.509028971195221, -0.21755319833755493, -0.15976865589618683, -0.42715519666671753, 0.4155927300453186, -0.037434328347444534, -0.7554261088371277, -0.18238618969917297, 0.36640727519989014, 0.3871769905090332, -0.6215986609458923, 0.6219571828842163, -0.2984623312950134, -0.5206620097160339, 0.5692405700683594, 0.7413104176521301, 0.8002176880836487, 0.11213404685258865, 0.13930490612983704, -0.046442415565252304, 0.1888708770275116, -0.3702746629714966, 0.3015987277030945, -0.12633654475212097, -0.7350941896438599, -0.24560990929603577, -0.4940652549266815, -0.3645857274532318, -0.04865722358226776, -0.49691110849380493, 0.043096546083688736, -0.3657803535461426, -0.16860316693782806, -0.24309886991977692, 0.28863149881362915, -0.4138721227645874, 0.0964977815747261, -0.11772547662258148, 0.9739989042282104, -0.3319648504257202, 0.9873406291007996, 0.6748097538948059, -0.22647324204444885, -0.5175080895423889, 0.25101256370544434, 0.04530428722500801, -0.5900852680206299, 0.4213849604129791, 0.3975788652896881, -0.24443501234054565, 0.3349088430404663, -0.3982493579387665, -0.6377103328704834, 1.417284369468689, 0.2898598611354828, -0.8725226521492004, -0.2551422119140625, -0.37948888540267944, 0.6959984302520752, -0.503671407699585, 0.2571573555469513, 0.5824429392814636, 0.3505244851112366, 0.08639094978570938, -0.4260028898715973, 0.24375806748867035, -0.21974071860313416, -0.30501076579093933, 0.32416030764579773, -0.8658604621887207, 0.6814991235733032, -0.527294933795929, -0.2753506600856781, 0.40456363558769226, 0.7315751314163208, 0.2465326189994812, 0.29474136233329773, 0.6123997569084167, 0.400512158870697, 0.8745362162590027, 0.42567968368530273, 1.3580926656723022, -0.172299325466156, 0.09033966064453125, 1.168246865272522, -0.35878920555114746, 0.7514939308166504, 0.1941218376159668, 0.11743216216564178, 0.6559419631958008, 0.5452595353126526, 0.16056512296199799, 0.3012426197528839, 0.19151842594146729, -0.6381450295448303, -0.26710548996925354, -0.024555332958698273, -0.006959097925573587, 0.16866785287857056, 0.285808265209198, -0.45214906334877014, -0.2287915199995041, 0.24720343947410583, 0.18570354580879211, -0.011061077937483788, -0.1954427808523178, 0.6957221031188965, 0.1188991591334343, -0.7148244380950928, 0.34500452876091003, -0.13090567290782928, 0.5170342326164246, -0.6004512906074524, 0.08728247880935669, -0.11501710116863251, 0.4212600886821747, 0.36828944087028503, -1.104745864868164, -0.1670428365468979, 0.029295295476913452, -0.3711882531642914, -0.30752915143966675, 1.094151258468628, -0.2562653124332428, -0.17278166115283966, 0.4767525792121887, 0.554217517375946, 0.3300924301147461, -0.21710173785686493, -0.36524319648742676, -0.24484483897686005, -0.1912851780653, -0.6703159213066101, 0.2536375820636749, 0.7217617630958557, -0.32868722081184387, 0.8276748061180115, 0.6579168438911438, 0.06047125160694122, -0.2487868368625641, 0.06933523714542389, 0.8550511598587036, -1.1181060075759888, -0.7840642929077148, -0.8389161229133606, 0.2583337426185608, 0.10890624672174454, -0.3821243345737457, 0.5008442997932434, 0.38672295212745667, 0.34835267066955566, -0.01620522327721119, 0.7781686186790466, 0.29575520753860474, 0.42279648780822754, -0.25781288743019104, 1.05763578414917, -0.3555653989315033, 0.0867256447672844, -0.0022899413015693426, -0.8863144516944885, 0.0632702112197876, 0.5054418444633484, -0.33701291680336, -0.005628377664834261, 0.7682311534881592, 0.5608495473861694, 0.0016461792401969433, -0.008085831999778748, 0.6056755781173706, 0.06729735434055328, 0.41144299507141113, 0.7092711925506592, 1.0917649269104004, -0.007351854350417852, 0.6936538219451904, 0.5179264545440674, -0.21337273716926575, -0.325568288564682, -0.7084883451461792, -1.1952619552612305, -0.2896213233470917, 0.2312925010919571, -0.3507307469844818, 0.3206925690174103, 0.7099303603172302, 0.46069175004959106, -0.21022619307041168, -0.0728747546672821, 0.01462426409125328, 0.025171585381031036, 0.05109097436070442, -0.23785856366157532, 0.27933865785598755, -0.17964951694011688, -0.6031186580657959, 0.3973010778427124, 0.5080646872520447, 0.1579185575246811, -0.3798740804195404, -0.3274945914745331, -0.23602311313152313, 0.40666142106056213, 0.708770215511322, 0.351445734500885, -0.6003151535987854, -0.556585967540741, 0.19667045772075653, -0.523702085018158, 0.1854446530342102, 0.6429377794265747, -0.9602450132369995, 0.6838120222091675, 0.8016194105148315, 0.7544897198677063, 0.6847922801971436, 0.2668812870979309, 0.4405968487262726, -0.3582860231399536, 0.05208342522382736, 0.43272268772125244, 0.16843020915985107, 0.03850023075938225, -0.5985647439956665, 0.5160952210426331, -0.18557322025299072, -0.8193016648292542, -0.2597271203994751, 0.023244306445121765, -0.9839509725570679, -0.5525771379470825, 1.298350214958191, -0.260560542345047, -0.6995477080345154, -0.19523683190345764, -0.6242477893829346, 0.05792531371116638, -0.8098272681236267, 0.4367600679397583, 0.9122763872146606, -0.12218695133924484, -0.4082455039024353, -0.44157612323760986, 0.12704528868198395, 0.21003517508506775, -0.8480702638626099, 0.1124013289809227, 0.608323872089386, 0.4720522165298462, 0.03090326488018036, 0.6930640339851379, 0.2875266671180725, 0.36304226517677307, 0.17612051963806152, 0.08950314670801163, -0.22790735960006714, -0.5867591500282288, -0.398775190114975, 0.10779222846031189, -0.20238621532917023, 0.22416257858276367 ]
http://arxiv.org/abs/2402.09725v1
http://arxiv.org/pdf/2402.09725v1
Improving Non-autoregressive Machine Translation with Error Exposure and Consistency Regularization
2024-02-15T05:35:04
2024-02-15T05:35:04
Xinran Chen, Sufeng Duan, Gongshen Liu
cs.CL
cs.CL, cs.AI
Being one of the IR-NAT (Iterative-refinemennt-based NAT) frameworks, the Conditional Masked Language Model (CMLM) adopts the mask-predict paradigm to re-predict the masked low-confidence tokens. However, CMLM suffers from the data distribution discrepancy between training and inference, where the observed tokens are generated differently in the two cases. In this paper, we address this problem with the training approaches of error exposure and consistency regularization (EECR). We construct the mixed sequences based on model prediction during training, and propose to optimize over the masked tokens under imperfect observation conditions. We also design a consistency learning method to constrain the data distribution for the masked tokens under different observing situations to narrow down the gap between training and inference. The experiments on five translation benchmarks obtains an average improvement of 0.68 and 0.40 BLEU scores compared to the base models, respectively, and our CMLMC-EECR achieves the best performance with a comparable translation quality with the Transformer. The experiments results demonstrate the effectiveness of our method.
[ -0.12591344118118286, -0.4733439087867737, 0.14697623252868652, 0.20598065853118896, -0.3633219003677368, 0.25313806533813477, -0.39616096019744873, -0.27402541041374207, -0.019317684695124626, 0.4096601605415344, -0.3265683054924011, -0.5469532012939453, -1.0245634317398071, 0.35119426250457764, -0.30857017636299133, 0.825734555721283, -0.38955485820770264, 0.05293150246143341, 0.2594565451145172, -0.20402637124061584, -0.7669000029563904, -0.352610319852829, -0.2225303053855896, -0.07413699477910995, 0.10274748504161835, 0.3891555368900299, 0.6915158033370972, 0.9673870801925659, 0.38532117009162903, 0.25319990515708923, 0.28609248995780945, 0.7182332873344421, -0.2698553204536438, 0.11888162046670914, -0.005455809645354748, -0.3923496901988983, -0.17641416192054749, -0.1965596079826355, 0.8331136107444763, 0.6542553305625916, -0.17918621003627777, -0.12874659895896912, 0.1956610530614853, 0.5903435349464417, -0.6358913779258728, 0.11846423894166946, -0.8472593426704407, 0.25830116868019104, 0.18077725172042847, -0.05911913886666298, -0.7163093090057373, -0.15591859817504883, -0.3283558189868927, -0.5931873321533203, 0.39594751596450806, 0.4195449948310852, 0.8335390090942383, 0.5505232214927673, -0.35863420367240906, 0.14420123398303986, -0.7160667181015015, 1.0885577201843262, -0.7249635457992554, 0.7211506962776184, 0.5385950803756714, 0.4156009256839752, -0.19450348615646362, -0.4879347085952759, -0.47056639194488525, 0.060913607478141785, -0.2771797478199005, 0.1896568387746811, -0.06488558650016785, 0.016095371916890144, -0.05440592020750046, 0.28525587916374207, -0.6049988269805908, 0.04925786331295967, -0.08758028596639633, -0.48055920004844666, 0.62466961145401, 0.14331886172294617, -0.04892541468143463, 0.0915527492761612, -0.3578907549381256, -0.12080864608287811, -0.21068167686462402, -0.2922039330005646, 0.1665583699941635, 0.3082561790943146, -0.30248919129371643, 0.6407172679901123, -0.20831012725830078, 0.7645125985145569, 0.36033758521080017, -0.05445799604058266, 0.5810329914093018, -0.2966769337654114, -0.536948025226593, -0.07680703699588776, 0.5874282121658325, 0.2753940224647522, -0.08595315366983414, -0.267318993806839, -0.5425432920455933, 0.008718010038137436, 0.13977696001529694, -0.4798247516155243, -0.14349928498268127, 0.13949339091777802, -0.5521805882453918, -0.04028214514255524, 0.2505216598510742, -0.6802651286125183, 0.10001720488071442, -0.5465275049209595, 0.6544033885002136, -0.3097767233848572, -0.06925290077924728, 0.23313838243484497, 0.23606106638908386, 0.1466909646987915, 0.42539212107658386, -0.6642675399780273, 0.36881253123283386, 0.3043387234210968, 0.7940171360969543, -0.4051038324832916, -0.07022099196910858, -0.6702548861503601, 0.04171159118413925, -0.5390851497650146, 0.44721880555152893, -0.016591638326644897, -0.12331705540418625, -0.0664287731051445, 0.11864412575960159, -0.6725422739982605, -0.4752466082572937, 0.48385030031204224, -0.4127430319786072, 0.21071858704090118, 0.3111116886138916, -0.5729979276657104, -0.13229678571224213, 0.2521383464336395, -0.17659413814544678, 0.9406558275222778, 0.11422450840473175, -0.7111780643463135, 0.15309351682662964, -0.5047611594200134, -0.39666253328323364, -0.2860364019870758, 0.0768333300948143, -0.7466110587120056, 0.20792974531650543, 0.27220407128334045, 0.12963558733463287, 0.07780881971120834, 0.6278955936431885, 0.19883184134960175, -0.281257688999176, 0.25228744745254517, -0.5798706412315369, 0.47202634811401367, 0.5308994650840759, -0.7691643834114075, 0.028308389708399773, -0.8440702557563782, 0.2807910442352295, -0.07976889610290527, -0.13346707820892334, -0.012307621538639069, -0.1677699089050293, 0.06462527066469193, 0.3398219645023346, -0.026708146557211876, -0.46260008215904236, -0.06502770632505417, -0.21313586831092834, 0.1856115609407425, 0.7587817311286926, 0.1385546624660492, 0.4200698137283325, -0.2373911589384079, 0.34432342648506165, 0.3443535268306732, 0.31761932373046875, -0.28134050965309143, -0.37777388095855713, -1.0840797424316406, -0.44091737270355225, 0.5116074085235596, 0.6898953914642334, -0.952129065990448, 0.6979066729545593, -0.11641938239336014, -0.1572125256061554, -0.8297950625419617, 0.0736333578824997, 0.692222535610199, 0.7423511743545532, 0.68243408203125, -0.3884946405887604, -0.7958968281745911, -0.9009285569190979, -0.15642517805099487, 0.07529090344905853, -0.0649254322052002, 0.12528055906295776, 0.3588569164276123, -0.5622140169143677, 0.5987345576286316, -0.218319833278656, -0.22325575351715088, 0.06278856843709946, 0.2738896310329437, 0.1761728674173355, 0.8546605706214905, -0.01628047041594982, -0.7406554818153381, -0.8036775588989258, 0.12466045469045639, -0.5854814052581787, -0.1896660327911377, -0.14001673460006714, -0.41584378480911255, 0.5260491371154785, 0.3578731417655945, -0.00009854167728917673, 0.6709047555923462, 0.8306883573532104, -0.11241041868925095, 0.19576391577720642, -0.22871485352516174, 0.23551982641220093, -0.9527031779289246, 0.10218394547700882, -0.20011955499649048, -0.6757509708404541, -0.7134935259819031, -0.24965178966522217, 0.3069896697998047, 0.07915850728750229, -0.48035305738449097, 0.3402596116065979, -0.5627624988555908, -0.010086040943861008, -0.3065396845340729, -0.09493124485015869, 0.31104564666748047, 0.44079679250717163, 0.11843188852071762, 0.7341889142990112, 0.434704065322876, -0.5273321866989136, -0.3058030903339386, 0.38451460003852844, -0.11751264333724976, 0.4248442053794861, -0.36559420824050903, 0.4146585464477539, -0.16211840510368347, 0.1781432032585144, -0.8119502663612366, -0.16677269339561462, 0.4577627182006836, -0.47988101840019226, 0.7867130637168884, -0.007470134645700455, -0.44866836071014404, -0.06490448117256165, -0.015404410660266876, 0.22436442971229553, 0.7155076265335083, -0.417133092880249, 0.5373877286911011, 0.09328751266002655, 0.3764740526676178, -0.7654606699943542, -0.8955470323562622, 0.16496288776397705, 0.08013051003217697, -0.3818439543247223, 0.3863680064678192, -0.22213129699230194, -0.16719679534435272, -0.09021090716123581, -0.2056775540113449, -0.04752897843718529, 0.07437168061733246, -0.02718435972929001, 0.21079345047473907, -0.25488170981407166, -0.15700992941856384, 0.0003650324360933155, -0.21163339912891388, -0.4855623245239258, -0.6168755292892456, 0.31362849473953247, -0.10148928314447403, -0.42965272068977356, -0.5593841671943665, 0.3868485391139984, 0.15581616759300232, -0.08788391947746277, 0.9909306764602661, 0.3853629231452942, -0.39681220054626465, -0.08799684047698975, -0.6778847575187683, -0.02897062711417675, -0.38831627368927, 0.030523838475346565, -0.34360694885253906, -0.5090844035148621, 0.4827596843242645, 0.38447999954223633, 0.08223382383584976, 0.49229976534843445, 0.42423099279403687, -0.06893841177225113, 1.0188955068588257, 0.8285644054412842, -0.0019183567492291331, 0.26358380913734436, -0.06834837049245834, 0.13185575604438782, -0.8855863213539124, -0.20391753315925598, -0.33108648657798767, -0.17385274171829224, -0.5088987350463867, -0.6432819366455078, 0.24594655632972717, 0.12511976063251495, -0.15911845862865448, 0.5156163573265076, -0.40825557708740234, 0.13674867153167725, 0.41072678565979004, 0.1941702663898468, 0.3796391189098358, 0.11613099277019501, -0.34002676606178284, -0.0865531712770462, -0.7889291644096375, -0.31584039330482483, 0.9440984725952148, 0.400621235370636, 0.5698849558830261, -0.055048711597919464, 0.7432061433792114, 0.33076971769332886, 0.4435443878173828, -0.3494173288345337, 0.030961714684963226, 0.048087961971759796, -0.4387868344783783, -0.06331159919500351, -0.5317373275756836, -0.6449324488639832, 0.3559977114200592, -0.05538123473525047, -0.3419956564903259, 0.5559288859367371, 0.38768303394317627, 0.275145560503006, 0.2478591948747635, -0.6890577673912048, 0.7012975215911865, -0.24360167980194092, -0.307113379240036, 0.2532646954059601, -1.2190922498703003, 0.24080447852611542, -0.3618055582046509, 0.413429319858551, 0.09878330677747726, -0.06114131212234497, 0.2006944864988327, -0.4294564127922058, 0.7938881516456604, -0.18353083729743958, 0.21514423191547394, 0.30558639764785767, 0.03426232188940048, 0.7563262581825256, -0.2618843615055084, -0.1847887933254242, 0.4455590546131134, -0.5151548981666565, -0.5703780055046082, -0.391108900308609, 0.04593217745423317, -0.7825266122817993, -0.3565426766872406, -0.29888278245925903, -0.6518132090568542, -0.2226857990026474, 0.22274057567119598, 0.5364881157875061, 0.04264094680547714, 0.06390807777643204, 0.04129317030310631, 0.8815526962280273, -0.13901008665561676, 0.3635904788970947, 0.6546400785446167, 0.0315319299697876, -0.8368139266967773, 0.7064539194107056, -0.023692626506090164, 0.7323517203330994, 0.5372276902198792, 0.0935540720820427, -0.19650454819202423, -0.870762825012207, -0.7071205973625183, 0.0732342079281807, -0.7460753321647644, -0.5302799344062805, -0.9758223295211792, -0.3592803478240967, -0.5091723799705505, -0.12747454643249512, -0.4594002962112427, -0.3749461770057678, -0.12523014843463898, -0.024385152384638786, 0.15531864762306213, 0.19790376722812653, -0.2285199761390686, 0.3284866511821747, -0.681767463684082, 0.15378539264202118, -0.24655987322330475, 0.24409574270248413, -0.3231545686721802, -1.0882606506347656, -0.5475592613220215, 0.08658535033464432, -0.15000353753566742, -0.5535941123962402, 0.6255577802658081, 0.41728881001472473, 0.6126336455345154, 0.1235077753663063, 0.13185803592205048, 0.7931786775588989, -0.7015920877456665, 0.39838361740112305, 0.17073145508766174, -1.0141255855560303, 0.36529484391212463, -0.23788195848464966, 0.2073013037443161, 0.7303259372711182, -0.04158022627234459, -0.6345929503440857, -0.6843672394752502, -0.6999293565750122, -0.7253469228744507, 0.4455488622188568, 0.6900607943534851, -0.05951675772666931, -0.21649675071239471, 0.14078770577907562, 0.2803204655647278, 0.5148008465766907, -0.7155101895332336, -0.5772979259490967, -0.5943592190742493, -0.5005130767822266, -0.3157665431499481, -0.005826885346323252, 0.14956152439117432, -0.06809771806001663, 0.9704345464706421, -0.24477873742580414, 0.4163323938846588, 0.501865804195404, -0.45051127672195435, -0.501461386680603, 0.03261633962392807, 0.8267300724983215, 0.4995533227920532, -0.20688162744045258, 0.25050511956214905, 0.11767144501209259, -0.5060999393463135, 0.3009340465068817, 0.034390561282634735, -0.3447520434856415, 0.45399922132492065, 0.23738127946853638, 0.7632202506065369, -0.024687515571713448, -0.43014010787010193, 0.5043303370475769, 0.11684424430131912, -0.1846737563610077, -0.20480559766292572, -0.22875350713729858, -0.3515385687351227, -0.05861013010144234, 0.40836241841316223, 0.4247179925441742, 0.00922644603997469, -0.1399098038673401, 0.5124250650405884, 0.22828273475170135, -0.3723908066749573, -0.1728058159351349, 0.8303762674331665, -0.132989302277565, -0.2130315750837326, 0.5480601787567139, -0.21217386424541473, -0.6162351369857788, 0.5845857262611389, 0.7239914536476135, 0.9961753487586975, -0.5687901377677917, 0.026862729340791702, 0.3933142423629761, 0.5508580207824707, -0.26216956973075867, 0.043829843401908875, 0.13591121137142181, -0.6209813356399536, -0.5276347398757935, -0.4654083847999573, -0.34188511967658997, -0.2729717493057251, -0.6128560304641724, 0.449658066034317, -0.2059936821460724, 0.27020955085754395, -0.4603167772293091, -0.2662351727485657, -0.772651731967926, 0.3394733667373657, -0.10294149816036224, 0.7010682225227356, -1.0821946859359741, 0.989746630191803, 0.24856337904930115, -0.2618163824081421, -0.8315648436546326, 0.014583444222807884, -0.1707090139389038, -0.9007708430290222, 0.5433644652366638, 0.1432904601097107, 0.12071839720010757, 0.12186097353696823, -0.2624061107635498, -0.9792158007621765, 0.9127653241157532, 0.1613287627696991, -0.8210533261299133, 0.4023458957672119, 0.14003895223140717, 0.40809911489486694, -0.5763846635818481, -0.08142480254173279, 0.2593606412410736, 0.5512151122093201, 0.00647245766595006, -1.0421189069747925, -0.1557048261165619, -0.08947741985321045, 0.03604922443628311, 0.3489014208316803, -0.4797327220439911, 0.5927323698997498, 0.035242464393377304, -0.2368619441986084, 0.04216640815138817, 0.5821965336799622, -0.009061136282980442, 0.5027722120285034, 0.42886850237846375, 0.3607914447784424, 0.6029763221740723, 0.1555960476398468, 0.8747766017913818, -0.10884712636470795, 0.4335527718067169, 1.2439603805541992, -0.268127977848053, 0.6637585163116455, 0.5703995823860168, 0.035909172147512436, 0.2643238604068756, 0.6845679879188538, -0.17081044614315033, 0.878334641456604, 0.08986321836709976, -0.24329836666584015, 0.043514568358659744, -0.0337039940059185, -0.19705967605113983, 0.08379372954368591, 0.1342780441045761, -0.7596500515937805, -0.07555939257144928, 0.2737404406070709, -0.06948306411504745, 0.28366777300834656, -0.20687027275562286, 0.7243739366531372, 0.173700749874115, -0.6553195714950562, 0.9039761424064636, 0.3068958520889282, 0.5608276128768921, -0.20841336250305176, -0.07254960387945175, -0.4887995719909668, 0.15291045606136322, -0.22027942538261414, -0.1093919426202774, 0.5550879240036011, -0.024103567004203796, -0.28620049357414246, -0.3087921142578125, 0.6438632607460022, -0.4829563498497009, -0.6148017644882202, -0.003146315459161997, 0.4826219081878662, 0.3124258518218994, 0.24992069602012634, -0.701143205165863, 0.09409309923648834, 0.1568571776151657, 0.044999897480010986, 0.2659100592136383, 0.42590105533599854, -0.210752934217453, 0.36831215023994446, 0.5064938068389893, -0.18846693634986877, 0.46322712302207947, -0.22790776193141937, 0.6022824048995972, -0.38768240809440613, -0.23213492333889008, -0.8124919533729553, 0.7213881611824036, 0.08040185272693634, 0.07392394542694092, 0.789112389087677, 0.7281084656715393, 0.7214294075965881, -0.12594862282276154, 0.6116205453872681, 0.031678058207035065, 0.4974580407142639, -0.6521846055984497, 0.36144131422042847, -0.13079868257045746, 0.25601065158843994, -0.05693706497550011, -1.0249851942062378, -0.6553648710250854, 0.6128178834915161, 0.03980487957596779, -0.06316237151622772, 0.8775202035903931, 0.754298985004425, -0.20992642641067505, -0.4366558790206909, 0.607621967792511, 0.0839638039469719, 0.09846005588769913, 0.43097230792045593, 0.45665407180786133, -0.9671815037727356, 0.35434916615486145, -0.31394946575164795, -0.13351452350616455, -0.3082452714443207, -1.1037143468856812, -0.6551575064659119, -0.292125940322876, -0.6601977348327637, -0.5292917490005493, 0.28772208094596863, 1.0030171871185303, 0.6925427913665771, -0.9849447011947632, 0.06103212386369705, -0.3644261956214905, 0.12219119071960449, -0.4093457758426666, -0.18534894287586212, 0.37938255071640015, -0.5079842209815979, -0.736964225769043, 0.4000494182109833, 0.11692441254854202, 0.3744291067123413, 0.006683879531919956, -0.15621858835220337, -0.13682948052883148, 0.1273719221353531, 0.2429361492395401, 0.22066348791122437, -0.6988321542739868, -0.518456220626831, 0.19058847427368164, -0.19372102618217468, 0.5138859152793884, 0.5281627178192139, -0.5075634717941284, 0.6447023153305054, 0.08356369286775589, 0.8189745545387268, 0.5080894231796265, 0.02463468722999096, 0.6716910004615784, -1.0213911533355713, 0.23870010673999786, 0.23892541229724884, 0.32645532488822937, 0.6160447001457214, -0.5227550268173218, 0.60508793592453, 0.18290546536445618, -0.5626408457756042, -0.8671043515205383, 0.14421463012695312, -0.6141523122787476, -0.02129850722849369, 1.0549885034561157, -0.36796829104423523, -0.28586873412132263, -0.3933204114437103, 0.08849816024303436, 0.4400024712085724, -0.13682149350643158, 0.7630267143249512, 0.4445387125015259, -0.020297253504395485, -0.22429467737674713, -0.8093064427375793, 0.1687006801366806, 0.5485528707504272, -0.5578269362449646, -0.11202006042003632, 0.36074596643447876, 0.3824269771575928, 0.006435042712837458, 0.43686148524284363, -0.26076409220695496, 0.02807323820888996, -0.17401258647441864, 0.24575403332710266, -0.06840928643941879, -0.25930964946746826, -0.5273911952972412, -0.384397953748703, 0.10500399023294449, -0.6468076109886169 ]
http://arxiv.org/abs/2402.09723v3
http://arxiv.org/pdf/2402.09723v3
Efficient Prompt Optimization Through the Lens of Best Arm Identification
2024-02-15T05:31:13
2024-05-30T19:40:21
Chengshuai Shi, Kun Yang, Zihan Chen, Jundong Li, Jing Yang, Cong Shen
stat.ML
stat.ML, cs.AI, cs.CL, cs.LG
The remarkable instruction-following capability of large language models (LLMs) has sparked a growing interest in automatically finding good prompts, i.e., prompt optimization. Most existing works follow the scheme of selecting from a pre-generated pool of candidate prompts. However, these designs mainly focus on the generation strategy, while limited attention has been paid to the selection method. Especially, the cost incurred during the selection (e.g., accessing LLM and evaluating the responses) is rarely explicitly considered. To overcome this limitation, this work provides a principled framework, TRIPLE, to efficiently perform prompt selection under an explicit budget constraint. TRIPLE is built on a novel connection established between prompt optimization and fixed-budget best arm identification (BAI-FB) in multi-armed bandits (MAB); thus, it is capable of leveraging the rich toolbox from BAI-FB systematically and also incorporating unique characteristics of prompt optimization. Extensive experiments on multiple well-adopted tasks using various LLMs demonstrate the remarkable performance improvement of TRIPLE over baselines while satisfying the limited budget constraints. As an extension, variants of TRIPLE are proposed to efficiently select examples for few-shot prompts, also achieving superior empirical performance.
[ -0.46993809938430786, -0.8214126229286194, 0.786159098148346, 0.2976219952106476, -0.1625055968761444, 0.20219367742538452, -0.1351308673620224, -0.14839839935302734, -0.19799980521202087, 0.4008995294570923, -0.8300340175628662, -0.35453683137893677, -0.31921127438545227, 0.36256739497184753, 0.08619886636734009, 0.8421457409858704, -0.17927052080631256, -0.16961610317230225, 0.24626481533050537, -0.11856422573328018, -0.696519136428833, -0.23065072298049927, -0.9768813848495483, -0.00119340093806386, 0.7412185668945312, 0.5620428919792175, 0.3296557366847992, 0.8503664135932922, 0.3346778452396393, 0.20071688294410706, -0.0070884679444134235, 0.5474073886871338, -0.22631259262561798, 0.04260370135307312, 0.1661604344844818, -0.3827105462551117, 0.058595024049282074, -0.02146325260400772, 0.7361229658126831, 0.4541388154029846, 0.04277896136045456, 0.13100062310695648, 0.19913198053836823, 0.7716124057769775, -0.8334617018699646, 0.34138983488082886, -0.4448988437652588, -0.1818952113389969, -0.347685307264328, -0.152595654129982, -0.3611377775669098, -0.6689892411231995, 0.21799629926681519, -0.7296475768089294, 0.15124279260635376, 0.3568468391895294, 0.9134154915809631, 0.2552333474159241, -0.1338655948638916, -0.4404294490814209, -0.44929060339927673, 0.9374921321868896, -0.25068071484565735, -0.03554825112223625, 0.2957253158092499, 0.3392021059989929, -0.2091144472360611, -0.08474133908748627, -0.3623895049095154, -0.3202120065689087, 0.08379165828227997, -0.11129125207662582, -0.322341650724411, 0.2522856891155243, 0.3223109543323517, 0.15029276907444, -0.3782888948917389, 0.2692234218120575, -0.1912546306848526, -0.40309205651283264, 0.37174004316329956, 0.1310940533876419, 0.23910324275493622, -0.16907961666584015, -0.48932144045829773, -0.01351958978921175, -0.7989811897277832, 0.13770902156829834, 0.5171589255332947, 0.5306624174118042, -0.049605049192905426, 0.44319629669189453, -0.092067651450634, 0.9314743876457214, 0.4163784384727478, -0.3439335823059082, 0.20686233043670654, -0.43653228878974915, 0.22597931325435638, -0.20948977768421173, 0.6420506834983826, 0.35289543867111206, 0.13571079075336456, 0.17599307000637054, -0.5205397605895996, -0.2962716519832611, -0.14420129358768463, -0.650620698928833, 0.2021421492099762, 0.21664732694625854, -0.37984174489974976, -0.1926259845495224, -0.2461262345314026, -0.7855943441390991, -0.3435482084751129, -0.18425729870796204, 0.577227771282196, -0.3902803957462311, 0.047242794185876846, -0.27289482951164246, -0.12184345722198486, 0.3916570544242859, 0.052546385675668716, -0.9747880101203918, 0.005842725746333599, 0.6576884388923645, 1.0794371366500854, -0.2115289270877838, -0.20915478467941284, -1.1252427101135254, 0.25217705965042114, -0.6899799704551697, 0.835493266582489, -0.5417301654815674, -0.3607277572154999, 0.025130154564976692, -0.5054875016212463, 0.04519864544272423, -0.38213464617729187, 0.59840327501297, -0.7063389420509338, 0.08552256971597672, -0.24356991052627563, -0.25187885761260986, -0.09166032820940018, 0.12015463411808014, -0.9146680235862732, 0.86553555727005, 0.17135389149188995, -0.6009416580200195, 0.5022823214530945, -0.7881392240524292, -0.3526528477668762, 0.17382216453552246, -0.05382958799600601, -0.3637721538543701, 0.03309685364365578, 0.5984721779823303, 0.4676154851913452, -0.6778913140296936, 0.35690945386886597, -0.3580905497074127, -0.33232206106185913, -0.16420455276966095, -0.33659690618515015, 0.8060822486877441, 0.3434242606163025, -0.24313583970069885, 0.263196736574173, -0.5952576994895935, -0.29672494530677795, 0.11549197137355804, -0.15685461461544037, -0.18843330442905426, -0.07819665223360062, -0.48264846205711365, -0.3848765194416046, 0.2277590036392212, -0.373678058385849, 0.2917201519012451, -0.6401894092559814, 0.14584881067276, 0.9323594570159912, 0.19574271142482758, 0.4369303584098816, -0.33741340041160583, 0.5645013451576233, -0.35015514492988586, 0.21382944285869598, -0.41835349798202515, -0.2763480246067047, -0.370188444852829, -0.790177583694458, 0.16346904635429382, 0.7243261933326721, -0.9512664675712585, 0.22841724753379822, 0.3122708201408386, -0.1454170048236847, -0.3944399952888489, 0.17664480209350586, 0.4553092420101166, 0.6143574714660645, 0.24794071912765503, 0.3258424997329712, -0.33869919180870056, -1.009151577949524, -0.22961097955703735, -0.3436833620071411, -0.013687189668416977, 0.5084343552589417, 0.004299675114452839, -0.015518848784267902, 0.8321334719657898, -0.7504615783691406, -0.1793047934770584, -0.5872625112533569, 0.14137530326843262, 0.6787185668945312, 0.19247785210609436, 0.7452120184898376, -0.5123274922370911, -0.5497124195098877, -0.37374642491340637, -0.2992266118526459, -0.7027403116226196, -0.4653816521167755, -0.291525661945343, 0.26273077726364136, 0.2229665219783783, -0.5839964747428894, 0.3238636255264282, 0.21027201414108276, 0.11483587324619293, 0.5786547064781189, -0.1181543692946434, -0.053715240210294724, -0.9118402004241943, 0.03747475519776344, 0.15582068264484406, 0.22842645645141602, -0.396177738904953, 0.2518399655818939, 0.22399012744426727, -0.07364917546510696, -0.06109090894460678, 0.9461138844490051, -0.7752670049667358, 0.14342501759529114, -0.34197670221328735, 0.21017014980316162, -0.04382340982556343, 0.6762109398841858, -0.05859273299574852, 0.9838537573814392, 0.9693357944488525, -0.7214537262916565, 0.43097442388534546, 0.15167167782783508, -0.08044985681772232, 0.6110999584197998, -0.6833044290542603, -0.010429621674120426, -0.2668560743331909, 0.19578886032104492, -0.9243160486221313, -0.3109075725078583, 0.5202183723449707, -0.20364268124103546, 0.5048293471336365, -0.20478381216526031, -0.366131454706192, -0.5765458941459656, -0.6354923844337463, 0.2714140713214874, 0.31405919790267944, -0.8828144073486328, 0.6329441070556641, 0.2232269048690796, -0.3147571086883545, -0.9195756316184998, -0.14124475419521332, -0.159153014421463, -0.39677688479423523, -0.27299973368644714, 0.1869955062866211, -0.2432347536087036, -0.1611553132534027, -0.5051804780960083, -0.29956141114234924, 0.09748568385839462, 0.22191151976585388, -0.05573336035013199, 0.7687946557998657, -0.16353397071361542, 0.10735385119915009, 0.2083158791065216, -0.44070059061050415, -0.0770815759897232, -0.1689813733100891, 0.37683358788490295, -0.0853024497628212, -0.22836759686470032, -0.5381878614425659, 0.6490396857261658, 0.07841771095991135, -0.2237272411584854, 0.4683055579662323, 0.6193669438362122, -0.1388510763645172, -0.29290351271629333, -0.8041224479675293, -0.1701701581478119, -0.5254325270652771, 0.11366014182567596, -0.6083559393882751, -0.7390767335891724, 0.23224738240242004, 0.0674629881978035, 0.4293867349624634, 0.3380097448825836, 0.39541691541671753, 0.13754916191101074, 1.008985996246338, 0.45729634165763855, -0.28613123297691345, 0.5572067499160767, 0.03497309237718582, 0.051568567752838135, -0.8518832325935364, -0.026094308122992516, -0.7857245206832886, -0.033643316477537155, -0.31714746356010437, -0.25980427861213684, 0.7300912737846375, 0.2491401582956314, -0.2775103747844696, 0.2931683659553528, -0.33588480949401855, 0.6827400326728821, 0.9298890829086304, 0.05974240228533745, -0.21323131024837494, -0.16490517556667328, -0.35383138060569763, 0.48769283294677734, -0.5569184422492981, -0.5633033514022827, 1.178700566291809, 0.0850345715880394, 0.585496187210083, 0.06363825500011444, 0.9930207133293152, 0.11107086390256882, 0.11740260571241379, -0.6718170046806335, 0.6465451121330261, 0.2692258656024933, -0.5922437906265259, -0.19842150807380676, -0.6483607888221741, -1.1269876956939697, 0.021475423127412796, -0.0961185023188591, -0.849448561668396, -0.025477470830082893, 0.37203267216682434, -1.1180247068405151, 0.10885170847177505, -0.7598196268081665, 0.5553163886070251, -0.29158324003219604, -0.433437705039978, -0.2287796437740326, -0.839124321937561, 0.15595482289791107, -0.3236837387084961, 0.17203892767429352, -0.388987272977829, -0.46813589334487915, 0.4942346215248108, -0.14109864830970764, 0.4637305438518524, -0.4425530433654785, 0.15966899693012238, 0.45846089720726013, -0.017630906775593758, 0.6113147735595703, 0.1614224910736084, -0.17398886382579803, -0.06822125613689423, -0.20576289296150208, -0.3824182450771332, -0.3818151354789734, 0.6080650687217712, -0.7900246977806091, -0.8908363580703735, -0.23748908936977386, -0.4730716347694397, -0.5214444994926453, 0.46555471420288086, 0.0525483563542366, 0.8698256611824036, -0.06785547733306885, -0.06495361030101776, 0.5531499981880188, -0.3871113657951355, 0.9959480166435242, 0.35590940713882446, -0.02182791754603386, -0.5188654065132141, 0.829866886138916, -0.2787659466266632, 0.24739035964012146, 0.6360551714897156, 0.6285849213600159, -0.327419638633728, -0.7250764966011047, -0.7677448391914368, 0.30059632658958435, -0.5233144164085388, -0.5203016400337219, -0.5582656860351562, 0.13092078268527985, -0.2319907248020172, -0.3349452018737793, 0.11733222752809525, -0.16382458806037903, -0.6680845618247986, -0.08453991264104843, 0.2538715600967407, 0.36998388171195984, -0.5569666624069214, 0.4829837381839752, -0.8061715364456177, 0.7107890248298645, 0.38371118903160095, 0.18363399803638458, -0.13693994283676147, -0.18183474242687225, 0.005075004417449236, -0.20381808280944824, -0.3550073206424713, -0.9784627556800842, 0.21540014445781708, 0.18590311706066132, 0.9790105223655701, 0.6113002896308899, 0.20854830741882324, 0.4348014295101166, -0.44755977392196655, 0.6230272650718689, 0.14199814200401306, -0.8337486982345581, 0.4441826045513153, -0.3326188325881958, 0.3775402009487152, 0.5012668371200562, 0.43458080291748047, 0.08930965512990952, -0.1877107471227646, -0.2609224319458008, -0.8640806674957275, 1.037966012954712, 0.009274599142372608, -0.005417729262262583, -0.1590179055929184, 0.28892239928245544, 0.277221143245697, 0.21954484283924103, -0.38983577489852905, -0.1954454630613327, 0.28664305806159973, -0.2971867322921753, 0.1980813592672348, -0.37497246265411377, -0.28341057896614075, 0.24077530205249786, 0.6917889714241028, -0.3897782266139984, 0.29473331570625305, -0.10005843639373779, 0.01885056495666504, -0.008198649622499943, 0.059047747403383255, 0.528146505355835, 0.41231587529182434, -0.09787613153457642, -0.2606610357761383, 0.12389884144067764, -0.2057519406080246, 0.04978933930397034, 0.23358219861984253, -0.22473452985286713, -0.08766184002161026, 0.2818416655063629, 0.934888482093811, 0.011467593722045422, -0.5881901979446411, 0.6034895777702332, 0.21430037915706635, 0.09386914223432541, -0.05453434959053993, 0.17657285928726196, -0.39959806203842163, 0.5820533037185669, 0.7577303051948547, 0.2028442770242691, 0.3119550347328186, -0.2622726559638977, 0.12371035665273666, 0.730394184589386, 0.11483742296695709, 0.062302131205797195, 0.4532356262207031, 0.4615285396575928, -0.47387221455574036, 0.4539620876312256, -0.19123336672782898, -0.4593972861766815, 0.538370668888092, 0.42224714159965515, 1.2495105266571045, -0.09426432102918625, 0.23871973156929016, 0.6497100591659546, 0.2788694202899933, -0.0913342610001564, 0.35964757204055786, -0.2950418293476105, -0.6315268278121948, -0.36161547899246216, -0.4230758845806122, -0.3872099220752716, -0.3268534541130066, -0.7073046565055847, 0.5731161236763, -0.569402813911438, -0.20991824567317963, -0.13797244429588318, 0.1481042504310608, -0.6520661115646362, -0.23022517561912537, 0.44005781412124634, 0.6741960644721985, -0.3914988338947296, 0.4422171413898468, 0.14102189242839813, -0.2640504539012909, -0.9804038405418396, 0.03469213470816612, 0.3786811828613281, -1.3342150449752808, 0.42420142889022827, 0.4627949595451355, -0.39254581928253174, 0.0389535166323185, -0.5467743277549744, -0.9951415657997131, 0.7504619359970093, 0.27109938859939575, -0.5360821485519409, -0.31745535135269165, -0.49869564175605774, -0.021788807585835457, -0.428804874420166, 0.5453834533691406, 0.6531009078025818, 0.5725262761116028, 0.4561803638935089, -0.7952160239219666, -0.10888008028268814, 0.21034881472587585, 0.1091349646449089, 0.4806394875049591, -0.7395079135894775, 0.6373282074928284, -0.6907533407211304, -0.3658555746078491, 0.4128992557525635, 0.6117476224899292, 0.7947434186935425, 0.35988369584083557, 0.5822657942771912, 0.09169496595859528, 0.7362321615219116, -0.04311172291636467, 0.9062185287475586, -0.3709988296031952, 0.0175827294588089, 0.7322098612785339, -0.32141736149787903, 0.5464828610420227, 0.4941402077674866, -0.012268816120922565, 0.34495043754577637, 0.8336966633796692, 0.02414831705391407, 0.7638279795646667, 0.23927079141139984, -0.23196735978126526, -0.0725332573056221, 0.03489524498581886, -0.06432289630174637, 0.05369526147842407, 0.34930282831192017, -0.0675797164440155, -0.2618959844112396, 0.12006495893001556, 0.22705325484275818, -0.2991013824939728, -0.5301916003227234, 1.0206959247589111, -0.2142966389656067, -0.8476114273071289, 0.556190013885498, -0.07249504327774048, 0.5559738874435425, -0.7315388917922974, -0.08156681060791016, -0.376468300819397, -0.09478560835123062, 0.20461909472942352, -0.5240064263343811, -0.047507528215646744, 0.14232049882411957, -0.05882091820240021, -0.3290216624736786, 0.5340211987495422, -0.18622758984565735, -0.3284257650375366, -0.18170756101608276, 0.2656085789203644, 0.0578790009021759, 0.030470555648207664, -0.6616760492324829, 0.3520718514919281, 0.1168159693479538, -0.27989462018013, -0.05761666223406792, 0.40449389815330505, 0.07843410223722458, 0.7477148175239563, 0.5387088060379028, 0.17697365581989288, -0.3059578239917755, -0.17551901936531067, 0.7221344709396362, -0.6710764169692993, -0.4701491594314575, -1.0809341669082642, 0.24250341951847076, -0.15387850999832153, -0.42453670501708984, 0.4194831848144531, 0.3907918334007263, 0.43752527236938477, 0.08514560759067535, 0.6974045634269714, 0.10505295544862747, 0.8622393608093262, -0.6299425959587097, 0.1602611392736435, -0.4343458116054535, 0.39282041788101196, -0.4691157341003418, -1.0076581239700317, -0.39163967967033386, 0.5583151578903198, -0.25091564655303955, -0.10015799850225449, 0.7562888264656067, 0.9687021970748901, 0.3525178134441376, 0.06197322905063629, 0.03403659537434578, -0.3202228546142578, 0.16282223165035248, 0.6748535633087158, 0.8028077483177185, 0.17921511828899384, 0.6124353408813477, -0.07362368702888489, -0.5841135382652283, -0.3632708787918091, -0.9773774147033691, -1.0552924871444702, -0.47901031374931335, -0.25141608715057373, -0.028421878814697266, -0.04331696033477783, 1.3987292051315308, 0.6156684756278992, -0.6543247699737549, -0.2759529650211334, 0.15392020344734192, 0.39107558131217957, -0.35731834173202515, -0.1593245565891266, 0.4594285488128662, -0.5965394973754883, -0.7226316928863525, 0.6312636733055115, 0.42684653401374817, -0.0820879191160202, -0.1423480361700058, 0.10889393836259842, -0.004063903819769621, 0.4813019335269928, 0.40190553665161133, 0.3748062252998352, -0.8160802721977234, -0.3716285228729248, 0.11598839610815048, -0.0529964417219162, -0.11037957668304443, 0.7796046733856201, -0.690117597579956, 0.5192775130271912, 0.2776789665222168, 1.0109776258468628, 0.13293235003948212, 0.02655828930437565, 0.8258066177368164, -0.6167550086975098, -0.09349370747804642, 0.37320050597190857, 0.3159293830394745, 0.1768505871295929, -0.2595973610877991, 0.4932461678981781, 0.1139788031578064, -0.5496774911880493, -0.9569950699806213, 0.24812200665473938, -0.8910874724388123, -0.10712448507547379, 1.3828119039535522, -0.010468915104866028, -0.14109773933887482, 0.045303650200366974, -0.6917718648910522, 0.07977469265460968, -0.6954113841056824, 0.5669174790382385, 0.6720137000083923, -0.3032543957233429, -0.3133614659309387, -0.30553892254829407, 0.47887468338012695, 0.25123330950737, -0.6162635684013367, -0.06992045789957047, 0.9859125018119812, -0.1599465012550354, -0.08142762631177902, 0.3997786343097687, 0.37131795287132263, 0.263532429933548, -0.09916204959154129, -0.23797856271266937, -0.0846022218465805, -0.5648250579833984, -0.1901569664478302, 0.36454468965530396, 0.2056892067193985, -0.5303953289985657 ]
http://arxiv.org/abs/2402.09696v2
http://arxiv.org/pdf/2402.09696v2
An Analysis of Language Frequency and Error Correction for Esperanto
2024-02-15T04:10:25
2024-02-16T02:19:49
Junhong Liang
cs.CL
cs.CL
Current Grammar Error Correction (GEC) initiatives tend to focus on major languages, with less attention given to low-resource languages like Esperanto. In this article, we begin to bridge this gap by first conducting a comprehensive frequency analysis using the Eo-GP dataset, created explicitly for this purpose. We then introduce the Eo-GEC dataset, derived from authentic user cases and annotated with fine-grained linguistic details for error identification. Leveraging GPT-3.5 and GPT-4, our experiments show that GPT-4 outperforms GPT-3.5 in both automated and human evaluations, highlighting its efficacy in addressing Esperanto's grammatical peculiarities and illustrating the potential of advanced language models to enhance GEC strategies for less commonly studied languages.
[ -0.3040921688079834, -0.955846905708313, 0.6328983306884766, 0.18678107857704163, 0.2363707274198532, -0.12568596005439758, -0.49397802352905273, -0.500348687171936, 0.05529550835490227, 0.007592770271003246, -0.29119864106178284, -0.5419518947601318, -0.7380288243293762, 0.667818009853363, -0.504749059677124, 0.9613615274429321, 0.11067943274974823, -0.17637859284877777, -0.14410901069641113, 0.08802776038646698, -0.4363570213317871, -0.5904310345649719, -0.7215152978897095, -0.050962332636117935, 0.44653457403182983, 0.8208813071250916, 0.5621041655540466, 0.2952989935874939, 0.21654179692268372, 0.44339829683303833, -0.2283230870962143, 0.14630207419395447, -0.48016485571861267, -0.2032243311405182, 0.21218189597129822, -0.19867344200611115, -0.5358942747116089, -0.2840762436389923, 0.4401181936264038, 0.7412022352218628, -0.5792779922485352, -0.16940566897392273, 0.04525637626647949, 0.6451212763786316, -0.4964068531990051, 0.41876283288002014, -0.4872263967990875, 0.08230265229940414, -0.7257109880447388, 0.2706112861633301, -0.4283802807331085, -0.2947784662246704, -0.1757473647594452, -0.9324917197227478, 0.2761227786540985, -0.15485654771327972, 1.088209629058838, 0.033581625670194626, -0.3372097611427307, -0.26644572615623474, -0.7509431838989258, 0.5848264098167419, -0.3396609127521515, 0.18691709637641907, 0.507940411567688, 0.16706736385822296, -0.06988082081079483, -0.2490639090538025, -0.3756847083568573, -0.26894015073776245, -0.18741852045059204, 0.41468802094459534, -0.39017218351364136, 0.3251879811286926, 0.6322368383407593, 0.3797357678413391, -0.5124169588088989, -0.263925701379776, -0.5116978287696838, -0.1494772881269455, 0.23393851518630981, -0.14032761752605438, 0.3598260283470154, -0.030809689313173294, 0.19834989309310913, 0.15040023624897003, -0.4905908405780792, -0.15773124992847443, 0.656594455242157, 0.26844847202301025, 0.000825128925498575, 0.4814247190952301, -0.39686915278434753, 0.914577305316925, 0.030574053525924683, -0.018578629940748215, 0.33908942341804504, -0.2560722231864929, -0.19130060076713562, -0.13532043993473053, 0.627369225025177, 0.4948086142539978, 0.7202865481376648, -0.053720396012067795, -0.2689068913459778, 0.0884096696972847, 0.36687883734703064, -0.06664837896823883, -0.08572985231876373, -0.15114843845367432, 0.009715058840811253, -0.1644628942012787, 0.5391312837600708, -1.1753078699111938, 0.03961317613720894, -0.17196613550186157, 0.3606858253479004, -0.27459633350372314, 0.08321256935596466, 0.19986701011657715, -0.12022621184587479, -0.1990174800157547, 0.29869720339775085, -1.2893059253692627, 0.7671003341674805, 0.7008910179138184, 0.7234699726104736, 0.36916399002075195, -0.44562238454818726, -0.28626108169555664, 0.1346418708562851, -0.24367393553256989, 0.8480842709541321, -0.6300458908081055, -0.5847234129905701, 0.1501924991607666, 0.19061842560768127, -0.321638286113739, -0.28097036480903625, 0.5017989873886108, -0.1289895623922348, 0.2567793130874634, -0.4257185161113739, -0.3577858805656433, -0.14288602769374847, -0.01471303403377533, -0.7566072344779968, 1.3938249349594116, 0.45041021704673767, -0.4651643633842468, 0.2812698483467102, -0.6050488352775574, -0.6069740056991577, -0.15851426124572754, -0.0742785707116127, -0.5740218758583069, 0.35761380195617676, 0.15884506702423096, 0.009701958857476711, -0.2237236201763153, 0.2515529692173004, -0.03311552479863167, -0.5279130935668945, 0.05443552881479263, -0.4146018922328949, 0.31946295499801636, 0.30283114314079285, -0.3810434937477112, -0.2067236602306366, -1.0587470531463623, -0.23856589198112488, -0.0378887839615345, -0.15640440583229065, -0.37029922008514404, 0.032779257744550705, 0.10023815184831619, -0.10631629824638367, -0.051509685814380646, -0.44351688027381897, 0.14200937747955322, -0.3085413873195648, 0.27680686116218567, 0.6540901064872742, -0.2604142427444458, 0.4436201751232147, -0.03815515711903572, 0.6644207239151001, -0.5484279990196228, 0.4215438961982727, 0.0075906687416136265, -0.9278226494789124, -0.8264102339744568, 0.36897721886634827, 0.2862285077571869, 0.6687644124031067, -0.5479247570037842, 0.288932204246521, -0.19014212489128113, -0.38253602385520935, 0.043560877442359924, -0.05123826488852501, 0.5181480646133423, 0.5974806547164917, 0.39257490634918213, -0.24276474118232727, -0.5798490047454834, -0.7710930705070496, -0.5105220079421997, -0.2677810788154602, -0.17776508629322052, 0.3178492486476898, 0.247771754860878, -0.04412319138646126, 0.6886193156242371, -0.468075692653656, -0.14731985330581665, -0.08885764330625534, 0.2828367352485657, 0.2729254961013794, 0.16045784950256348, 0.6894382238388062, -0.478490948677063, -0.7397152185440063, 0.43666186928749084, -0.30899423360824585, -0.7116016745567322, 0.11627063900232315, 0.10416480153799057, 0.3509863018989563, 0.5244818329811096, -0.08636465668678284, 0.1579248458147049, 0.8394831418991089, -0.6468926072120667, 0.0245753712952137, -0.21290458738803864, 0.5103664994239807, -0.6054783463478088, 0.08279848098754883, 0.04852684959769249, -0.16474919021129608, -0.7809314131736755, -0.46698078513145447, 0.1333223432302475, -0.11925777792930603, -0.058115992695093155, -0.010297015309333801, -0.3202080726623535, -0.2620645761489868, 0.024062082171440125, -0.06782171130180359, -0.04745275527238846, 0.22779807448387146, -0.40233251452445984, 0.7757725119590759, 0.2586199641227722, -0.23399384319782257, 0.317632794380188, 0.018764641135931015, 0.014635572209954262, 0.5884226560592651, -0.5604751706123352, 0.31249693036079407, -0.12182236462831497, -0.32449227571487427, -0.7156621217727661, -0.6676187515258789, 0.4178413450717926, -0.3045886754989624, 0.48273009061813354, -0.5680785179138184, -0.15836460888385773, -0.387650728225708, -0.07654961198568344, 0.030751340091228485, 0.45570385456085205, -0.1563131958246231, 0.6750860214233398, 0.482260525226593, -0.3670729398727417, -0.5797536373138428, -0.4880897104740143, 0.08304525166749954, 0.008342810906469822, -0.6474190950393677, 0.16498105227947235, 0.23288562893867493, -0.5145755410194397, -0.02964474819600582, 0.06818781793117523, 0.03010118566453457, 0.2846686542034149, 0.25628623366355896, -0.029872896149754524, -0.011023432947695255, 0.3266605734825134, -0.1775423288345337, -0.3761434853076935, -0.2942538261413574, -0.20095980167388916, 0.39360350370407104, -0.5016050338745117, -0.5252037644386292, -0.00022640559473074973, 0.43458354473114014, 0.24037931859493256, 0.1825304478406906, 0.4058261811733246, 0.13538764417171478, -0.46522438526153564, 0.06461033225059509, -0.591135561466217, 0.2516275942325592, -0.4430218040943146, 0.4512174725532532, -0.4086012542247772, -0.6106643080711365, 0.47145429253578186, 0.29001617431640625, -0.39866045117378235, 0.7280290126800537, 0.35832899808883667, -0.09428338706493378, 0.5445553660392761, 0.6096825003623962, -0.03495725989341736, 0.6760019063949585, 0.44594255089759827, -0.12382156401872635, -0.03677760809659958, -0.1755826622247696, -0.895817756652832, -0.0503435879945755, -0.6273459792137146, -0.17345605790615082, 0.3485029339790344, -0.03943395987153053, -0.20426373183727264, 0.4142754375934601, -0.07379241287708282, 0.964165985584259, 0.4785248339176178, -0.16849689185619354, 0.44498834013938904, 0.2002643197774887, 0.271750271320343, 0.05214435234665871, -0.5594916343688965, -0.4193996489048004, 0.9036167860031128, 0.18056835234165192, 0.5727856755256653, 0.11535105109214783, 0.5059885382652283, 0.17994706332683563, 0.26068955659866333, -0.7769799828529358, 0.12826690077781677, -0.6804398894309998, -0.47131359577178955, -0.544509768486023, -0.44014671444892883, -0.6078974008560181, 0.13286514580249786, 0.09768358618021011, -0.44906267523765564, 0.16893956065177917, 0.4113112986087799, -0.49432089924812317, 0.12341218441724777, -1.0660243034362793, 0.9998361468315125, -0.024248115718364716, -0.0039809877052903175, 0.15827275812625885, -0.3932614326477051, -0.07915720343589783, -0.20366522669792175, 0.4898332357406616, -0.21762466430664062, -0.11089764535427094, 0.3848782479763031, -0.4942885935306549, 0.6937378644943237, -0.17334766685962677, -0.10909620672464371, 0.40982386469841003, -0.24502874910831451, 0.6899321675300598, -0.0806671679019928, -0.11258188635110855, 0.35411179065704346, -0.31250518560409546, -0.4097821116447449, -0.1975747048854828, 0.3867497742176056, -0.7563942074775696, -0.3727228343486786, -0.6406771540641785, -0.014548364095389843, -0.44025593996047974, -0.0753931999206543, 0.4082269072532654, 0.20682339370250702, -0.5582653284072876, -0.06295130401849747, 0.3434411883354187, -0.10654604434967041, 0.3808833956718445, 0.6164276003837585, 0.08497397601604462, -0.29193755984306335, 0.5231476426124573, 0.5334628820419312, 0.23514200747013092, 0.19508317112922668, 0.17151570320129395, 0.020466778427362442, -0.4507415294647217, -0.5081193447113037, 0.02190503478050232, -0.6638057827949524, -0.07691948860883713, -0.606770932674408, 0.3130733370780945, -0.318789541721344, -0.1385250836610794, -0.4640738070011139, -0.3070847690105438, -0.021221576258540154, -0.2855432331562042, 0.6331081986427307, 1.025002121925354, -0.18715310096740723, 0.6371690630912781, -0.8435441851615906, 0.15355859696865082, 0.5097350478172302, 0.42332813143730164, -0.5938816666603088, -0.48307156562805176, -0.20980247855186462, -0.275831937789917, 0.013004998676478863, -1.0848087072372437, 0.23701898753643036, 0.6815953850746155, 0.35917189717292786, 0.19272543489933014, -0.6519792675971985, 0.7341844439506531, -0.7243592739105225, 0.7512065172195435, 0.05614037439227104, -1.3154852390289307, 0.744488537311554, -0.6333930492401123, 0.01290412712842226, 0.6652489900588989, 0.038757696747779846, -1.343023419380188, -0.17463384568691254, -0.6128427386283875, -0.9370642900466919, 0.9008042812347412, 0.1258334219455719, -0.116160549223423, -0.2506047189235687, 0.4804900288581848, -0.06691436469554901, -0.051542844623327255, -0.7203142046928406, -0.07719050347805023, -0.1418406367301941, -0.5021061897277832, -0.13405992090702057, -0.4940764904022217, -0.24094869196414948, 0.10427696257829666, 0.699629008769989, -0.3301522433757782, 0.04128744453191757, -0.019123706966638565, -0.2479235976934433, -0.4746667146682739, 0.5156031847000122, 0.6907762289047241, 0.6274193525314331, 0.12119246274232864, 0.08393358439207077, 0.5633639693260193, -0.7639618515968323, 0.12214663624763489, 0.18887142837047577, -0.2968865931034088, 0.02025674283504486, 0.3784775733947754, 0.4204866290092468, 0.41403457522392273, -0.352768212556839, 0.6401585340499878, -0.06836743652820587, 0.08636444807052612, -0.49221351742744446, -0.027294911444187164, -0.018050625920295715, -0.21998263895511627, 0.11277013272047043, 0.2737976312637329, 0.138702854514122, -0.27584218978881836, 0.14653955399990082, -0.17215292155742645, -0.31145748496055603, -0.6208611130714417, 0.3674760162830353, 0.5496286749839783, 0.17728495597839355, 0.6071189641952515, -0.2864208221435547, -0.4600920081138611, 1.0426454544067383, 0.3232968747615814, 0.7423728108406067, -0.4126660227775574, 0.14676760137081146, 0.6229638457298279, 0.5006662607192993, -0.5325189828872681, 0.5164013504981995, 0.4676845669746399, -0.7211706638336182, -0.6696717143058777, -0.576350748538971, -0.10216569900512695, -0.2172061651945114, -0.6727831959724426, 0.4337964355945587, -0.2642219662666321, -0.1578679233789444, -0.23077303171157837, -0.3844619691371918, -0.44659847021102905, 0.036457039415836334, 0.34325265884399414, 0.24547603726387024, -1.4647400379180908, 0.8289350867271423, 0.579099178314209, -0.26380449533462524, -0.6863765716552734, -0.1604742556810379, 0.5719672441482544, -0.7186160683631897, 0.419799268245697, -0.03208635002374649, -0.32136061787605286, -0.08019006997346878, -0.1424456089735031, -0.8504976034164429, 0.8918011784553528, 0.29670000076293945, -1.1943325996398926, 0.35646891593933105, 0.2022695094347, 0.6930665969848633, 0.16905134916305542, 0.3059289753437042, 0.8744831681251526, 0.9329783916473389, -0.29745811223983765, -1.1557203531265259, -0.4150756299495697, -0.26575514674186707, 0.21996855735778809, 0.44699206948280334, -0.6828011274337769, 1.0431073904037476, 0.08207408338785172, -0.48421093821525574, 0.09028889238834381, 0.41226765513420105, -0.3097917437553406, 0.25442081689834595, 0.6028714179992676, 0.7245360612869263, 0.9462301731109619, -0.8304035663604736, 1.240814208984375, -0.13388265669345856, 0.6653583645820618, 0.875578761100769, -0.15351194143295288, 0.4074116051197052, 0.4971206784248352, -0.7531244158744812, 0.07519787549972534, 0.6094817519187927, -0.3688395917415619, 0.14900551736354828, -0.07998953014612198, -0.2733120918273926, -0.1167515367269516, 0.04922027140855789, -0.41719746589660645, 0.37819573283195496, 0.3795320689678192, -0.23440362513065338, 0.006496515590697527, -0.13245932757854462, 0.34427616000175476, 0.37400296330451965, -0.39203864336013794, 0.766451358795166, -0.22669938206672668, -0.5741703510284424, 0.053436730057001114, 0.031002692878246307, 0.6632333397865295, -0.5910102128982544, -0.10083410143852234, -0.5147396326065063, 0.1523696482181549, -0.3376149833202362, -0.5833339691162109, 0.4585452675819397, 0.3247950077056885, -0.17181648313999176, -0.14479173719882965, 0.6699295043945312, -0.42688748240470886, -0.47504788637161255, 0.33410200476646423, 0.41345688700675964, -0.07813848555088043, -0.1418153941631317, -0.28338685631752014, 0.07986094057559967, -0.03042175993323326, -0.06733137369155884, -0.028841231018304825, 0.5504633784294128, 0.0034931653644889593, 0.0020874293986707926, 0.1756596714258194, 0.09798097610473633, 0.0972534716129303, 0.7151724696159363, 0.4572980999946594, -0.7337652444839478, -0.30118438601493835, -0.8204331994056702, 0.22534717619419098, -0.19379112124443054, -0.511294424533844, 0.8437750339508057, 0.35590365529060364, 1.3276207447052002, -0.5276238322257996, 0.7935287356376648, -0.44270774722099304, 0.424580454826355, -0.6436337828636169, 0.24414540827274323, -0.1887873113155365, 0.2734605669975281, -0.3352448642253876, -0.8072383403778076, -0.466307669878006, 0.7088163495063782, -0.3454326391220093, 0.2860262393951416, 0.6728768944740295, 0.9337383508682251, 0.18418216705322266, 0.26876717805862427, 0.6277495622634888, 0.2730543315410614, 0.012827389873564243, 0.6863426566123962, 1.1160740852355957, -0.5026703476905823, 0.6692683100700378, -0.3835144340991974, -0.33604753017425537, -0.42322808504104614, -0.6872707009315491, -0.4065811038017273, -0.22186338901519775, -0.09579198807477951, -0.17205263674259186, 0.5344825387001038, 0.9342020750045776, 0.13163115084171295, -1.1224747896194458, -0.20769695937633514, -0.26158320903778076, -0.06444193422794342, -0.5190885066986084, -0.11332486569881439, 0.09256989508867264, -0.47212091088294983, -1.3766440153121948, 0.374835342168808, 0.3360132575035095, 0.10056740790605545, 0.44221529364585876, 0.015567149966955185, 0.173931285738945, -0.321772962808609, 0.5825703144073486, 0.4408746361732483, -0.5074977874755859, -0.6143929958343506, 0.05526648089289665, -0.22755327820777893, 0.17719797790050507, 0.9668717384338379, -0.19859394431114197, 0.5226383805274963, 0.5646318793296814, 0.20038674771785736, 0.1697618067264557, 0.004104215651750565, 0.6887548565864563, -0.9515824913978577, 0.15837088227272034, -0.014749361202120781, 0.6430535316467285, 0.2268953174352646, -0.31714928150177, 0.9707850813865662, 0.6860330700874329, -0.3636695146560669, -0.17057889699935913, 0.10487092286348343, -0.7362664937973022, -0.1360512673854828, 1.3432835340499878, -0.05679718032479286, -0.21437415480613708, -0.5406906008720398, -0.36108601093292236, 0.09620801359415054, -0.48312830924987793, 0.6863502264022827, 1.1496753692626953, -0.05758112296462059, 0.2419363260269165, -0.7689253687858582, 0.6737231612205505, 0.3676629662513733, -0.899554431438446, 0.09144856035709381, 0.8499045372009277, 0.13651028275489807, 0.22194375097751617, 0.4962199330329895, -0.46888458728790283, 0.4360214173793793, 0.3370753526687622, 0.05257761850953102, -0.013970772735774517, -0.532120943069458, -0.6600816249847412, 0.1804359406232834, 0.25570622086524963, 0.2905237078666687 ]
http://arxiv.org/abs/2402.09674v1
http://arxiv.org/pdf/2402.09674v1
PAL: Proxy-Guided Black-Box Attack on Large Language Models
2024-02-15T02:54:49
2024-02-15T02:54:49
Chawin Sitawarin, Norman Mu, David Wagner, Alexandre Araujo
cs.CL
cs.CL, cs.AI, cs.CR, cs.LG
Large Language Models (LLMs) have surged in popularity in recent months, but they have demonstrated concerning capabilities to generate harmful content when manipulated. While techniques like safety fine-tuning aim to minimize harmful use, recent works have shown that LLMs remain vulnerable to attacks that elicit toxic responses. In this work, we introduce the Proxy-Guided Attack on LLMs (PAL), the first optimization-based attack on LLMs in a black-box query-only setting. In particular, it relies on a surrogate model to guide the optimization and a sophisticated loss designed for real-world LLM APIs. Our attack achieves 84% attack success rate (ASR) on GPT-3.5-Turbo and 48% on Llama-2-7B, compared to 4% for the current state of the art. We also propose GCG++, an improvement to the GCG attack that reaches 94% ASR on white-box Llama-2-7B, and the Random-Search Attack on LLMs (RAL), a strong but simple baseline for query-based attacks. We believe the techniques proposed in this work will enable more comprehensive safety testing of LLMs and, in the long term, the development of better security guardrails. The code can be found at https://github.com/chawins/pal.
[ -0.3526252806186676, -1.231712818145752, 0.4325504004955292, 0.2278851866722107, -0.54378741979599, 0.2333533763885498, 0.07217627018690109, -0.22696487605571747, 0.2401832789182663, 1.004872441291809, -0.5631932020187378, -0.5366907119750977, -0.627555251121521, -0.015082381665706635, -0.4589724838733673, 0.7926576733589172, 0.19412389397621155, 0.024506453424692154, 0.24262291193008423, 0.20971904695034027, -0.4951101541519165, -0.759150505065918, -0.9425617456436157, 0.012259540148079395, 0.29555466771125793, -0.084208644926548, 0.5920228362083435, 0.44986215233802795, 0.37901219725608826, 0.21276868879795074, -0.4139538109302521, 0.08925723284482956, -0.7211236357688904, 0.2086023986339569, -0.20627173781394958, -0.510944664478302, -0.5245751738548279, -0.33720290660858154, 0.5685586333274841, 0.4789767861366272, -0.2808590829372406, -0.0016609446611255407, -0.13867884874343872, 0.5491350889205933, -0.6670873761177063, 0.07273154705762863, -1.1969575881958008, -0.06822778284549713, -0.4721985459327698, -0.3006688058376312, -0.6075499057769775, -0.06127963215112686, -0.11033669859170914, -0.25907519459724426, 0.10743875056505203, 0.3102719485759735, 0.6563031077384949, 0.38220950961112976, -0.5971533060073853, -0.15250582993030548, -0.13023129105567932, 0.647689163684845, -0.5777270197868347, 0.29811030626296997, 0.21350105106830597, 0.4118850827217102, -0.9522597193717957, -0.4474322497844696, -0.45933207869529724, -0.3278547525405884, 0.11307510733604431, 0.0011472670594230294, -0.30777308344841003, 0.385934978723526, 0.16693444550037384, 0.13258326053619385, -0.5382388830184937, 0.09181766211986542, -0.26079827547073364, -0.32417502999305725, 0.6528413891792297, 0.13225775957107544, 0.24498867988586426, -0.07818009704351425, -0.4778743088245392, 0.04368933290243149, -1.1272855997085571, -0.17659126222133636, 0.36595553159713745, 0.31754401326179504, -0.3298511207103729, 0.5681854486465454, -0.2983400821685791, 0.7229507565498352, -0.08390398323535919, -0.06792280077934265, -0.18704931437969208, -0.07631861418485641, -0.1576056331396103, 0.17286376655101776, 0.8274940848350525, 0.506855845451355, 0.4911090135574341, -0.07607702910900116, -0.2150850147008896, 0.24924904108047485, 0.33928701281547546, -0.8244885206222534, -0.06438016146421432, 0.017536038532853127, -0.18732693791389465, -0.3509152829647064, -0.21922248601913452, -1.1300592422485352, -0.6140720844268799, 0.1995449811220169, 0.20698413252830505, -0.02530006133019924, -0.15600381791591644, 0.5068235993385315, 0.10651030391454697, 0.39256536960601807, 0.2276129126548767, -0.6657124161720276, 0.3467049300670624, 0.9934070110321045, 0.834896981716156, -0.03355229273438454, -0.06427307426929474, -1.2172518968582153, 0.48523086309432983, -0.4684211313724518, 0.5623962879180908, -0.6975578665733337, -0.8272488117218018, 0.2637326419353485, 0.09212716668844223, 0.2458948791027069, -0.2712135314941406, 0.5251145362854004, -0.7135290503501892, -0.18713712692260742, -0.2571077346801758, -0.3617253601551056, 0.12938690185546875, 0.44741418957710266, -0.5500609874725342, 0.6719143986701965, -0.23510663211345673, -0.705618679523468, -0.1463637351989746, -0.5148593783378601, -0.38563597202301025, 0.055727291852235794, -0.0036091837100684643, -0.19885924458503723, 0.3337271511554718, 0.14897489547729492, 0.3695370852947235, -0.4868397116661072, 0.08813513815402985, -0.5609117746353149, -0.4219164252281189, 0.12374775856733322, -0.5009679198265076, 0.6133989095687866, 0.05766869708895683, -0.27205753326416016, -0.14505261182785034, -0.5982059240341187, -0.04868997633457184, 0.35033202171325684, -0.30414342880249023, -0.41152307391166687, 0.2818281650543213, -0.4726930260658264, -0.09262572228908539, 0.3269400894641876, -0.6755260229110718, 0.28887099027633667, -0.4770185947418213, 0.38010159134864807, 0.9954105615615845, 0.24490803480148315, -0.016263751313090324, -0.06773994117975235, 0.681276261806488, -0.534248948097229, 0.38212937116622925, 0.1335422396659851, -0.5170654654502869, -0.5256262421607971, -0.08812030404806137, 0.15321388840675354, 0.47864216566085815, -0.8880783915519714, 0.13907097280025482, -0.1905640810728073, -0.43541738390922546, -0.43572983145713806, 0.16315634548664093, 0.6901045441627502, 0.46266433596611023, 0.3000660240650177, -0.2686159908771515, -0.20006698369979858, -0.7909648418426514, -0.28223246335983276, -0.46209681034088135, 0.13038839399814606, 0.22234751284122467, 0.36468759179115295, -0.5596777200698853, 0.4132036566734314, -0.851837694644928, -0.1620103418827057, 0.04463913291692734, -0.2876178026199341, 0.1378338634967804, 0.36363905668258667, 0.6145267486572266, -0.5274743437767029, -0.7151225805282593, -0.010673954151570797, -0.30944374203681946, -0.5913841724395752, 0.050381410866975784, -0.39154112339019775, 0.3021053671836853, 0.6235193610191345, -0.7491785883903503, 0.16269972920417786, 0.606321394443512, -0.19122909009456635, 0.7627512812614441, -0.05601325258612633, -0.29298296570777893, -0.7536648511886597, -0.19504740834236145, 0.17499767243862152, -0.10195259004831314, -0.9009950757026672, 0.41130179166793823, 0.06624084711074829, 0.031186478212475777, -0.6404233574867249, 0.9778997898101807, -0.14194877445697784, 0.20971885323524475, -0.3242214322090149, -0.07006829231977463, -0.08151238411664963, 0.4631754457950592, -0.10219576209783554, 0.7697915434837341, 0.620516836643219, -0.32601356506347656, 0.23609425127506256, 0.09878498315811157, -0.05714081972837448, 0.6383446455001831, -0.7903688549995422, 0.32691776752471924, -0.195253387093544, 0.3875654637813568, -0.802795946598053, -0.17949414253234863, 0.3989553451538086, -0.35127508640289307, 0.49342718720436096, -0.4084304869174957, -0.5239565968513489, -0.15160737931728363, -0.7216333746910095, 0.10768665373325348, 0.43682506680488586, -0.7669031620025635, 0.4217638373374939, 0.5352959632873535, -0.24183572828769684, -0.8522438406944275, -0.6227465867996216, 0.30265507102012634, -0.3130891025066376, -0.4602689743041992, 0.30763721466064453, -0.27906274795532227, -0.30135539174079895, -0.4005444347858429, -0.42857369780540466, 0.11068970710039139, 0.31579580903053284, -0.09167183935642242, 0.17525391280651093, 0.13637301325798035, -0.25261610746383667, 0.1177075058221817, -0.12794150412082672, 0.43247878551483154, 0.006704745348542929, 0.9197046160697937, -0.20531189441680908, -0.5226272940635681, -0.2283637523651123, 0.35477331280708313, 0.5428457856178284, -0.2102251946926117, 0.6158542633056641, 0.2820151150226593, -0.12866643071174622, -0.43122386932373047, -0.6935921907424927, 0.024922465905547142, -0.5890684723854065, 0.47107747197151184, -0.44520050287246704, -1.007066249847412, 0.48373109102249146, -0.07839808613061905, -0.07712576538324356, 0.0810609683394432, 0.4434059262275696, 0.0943632572889328, 1.2736438512802124, 0.533165454864502, -0.3350834548473358, 0.34436142444610596, -0.09272167086601257, 0.09347132593393326, -0.8688449859619141, -0.26789912581443787, -0.48818299174308777, 0.2170160412788391, -0.8355081677436829, -0.10488995164632797, 0.4565335214138031, 0.13619115948677063, -0.5745089650154114, 0.03402256593108177, -0.4132687747478485, 0.5823116302490234, 0.3354443907737732, 0.04916900768876076, 0.10615480691194534, -0.011499856598675251, -0.193040132522583, 0.17003685235977173, -0.35975199937820435, -0.33327168226242065, 1.2680472135543823, 0.5107485055923462, 1.1790497303009033, 0.28693047165870667, 0.6249368190765381, 0.3059832751750946, 0.26048269867897034, -0.4427432119846344, 0.8604245781898499, -0.3513411581516266, -0.4857051968574524, 0.08054312318563461, -0.5889569520950317, -0.9587135910987854, 0.4783777892589569, 0.16060391068458557, -0.8423551321029663, -0.18252547085285187, -0.002530239522457123, -0.008560288697481155, 0.39191609621047974, -0.8917927145957947, 0.6981891989707947, -0.7598556280136108, -0.3362330496311188, -0.08913205564022064, -0.5824166536331177, 0.5357854962348938, -0.42474207282066345, 0.16844917833805084, -0.05161404237151146, -0.2816579043865204, 0.32851478457450867, -0.36588990688323975, 0.9580692648887634, -0.2720697522163391, -0.1836119145154953, -0.06379149109125137, 0.4189450144767761, 0.8387688994407654, 0.26075783371925354, -0.0577705055475235, 0.2875097990036011, 0.10345572233200073, -0.5875223278999329, -0.44664010405540466, 0.8163371682167053, -0.5074957609176636, -1.345658779144287, -0.4497959315776825, -0.2978471517562866, -0.15975865721702576, 0.12953218817710876, -0.316813200712204, 0.05680683255195618, 0.10586248338222504, 0.2108747810125351, 0.7801650762557983, -0.5662031769752502, 0.28050512075424194, 0.9094242453575134, -0.29836389422416687, -0.4347231984138489, 0.9431876540184021, -0.16688372194766998, 0.6202500462532043, 0.36578863859176636, 0.19945108890533447, -0.4437253177165985, -0.8736737966537476, -0.3613484799861908, 0.546198844909668, -0.6190428137779236, -0.3867533802986145, -0.19668632745742798, -0.1997988373041153, -0.2212814837694168, -0.16427214443683624, -0.23685666918754578, 0.14267945289611816, -0.0872567892074585, 0.05154754966497421, 0.2559853494167328, 0.3430415987968445, 0.2838922142982483, 0.7046813368797302, -0.6207664012908936, 0.31993013620376587, 0.3759356737136841, 0.5214214324951172, -0.19409963488578796, -0.1636161357164383, 0.19292764365673065, -0.00270552234724164, -0.21428164839744568, -1.0026828050613403, 0.565187394618988, 0.06610123813152313, 0.6628327369689941, 0.34708166122436523, 0.21923042833805084, 0.539272129535675, -0.5943053960800171, 0.7885906100273132, 0.07857605069875717, -0.8567354083061218, 0.5433136820793152, -0.39965009689331055, 0.1612064391374588, 0.49179723858833313, 0.17259149253368378, -0.36315539479255676, -0.3437894582748413, -0.5328821539878845, -0.5215333104133606, 0.5554730892181396, -0.024902142584323883, 0.34885677695274353, -0.2878689467906952, 0.5654277801513672, -0.09379881620407104, 0.4726560413837433, -0.9096327424049377, -0.42581427097320557, 0.04002835601568222, 0.17139562964439392, 0.07992913573980331, -0.38348957896232605, -0.21983642876148224, 0.12543396651744843, 0.6883461475372314, -0.1903650015592575, -0.05585469678044319, -0.07815784960985184, 0.03383582457900047, -0.2074451446533203, 0.28780698776245117, 0.4957476854324341, 0.2143104076385498, -0.3967125415802002, 0.1975097358226776, 0.38969308137893677, -0.5402057766914368, 0.1225339025259018, 0.2442888617515564, -0.2555873692035675, -0.20863522589206696, 0.18817603588104248, 0.5894735455513, -0.034955382347106934, -0.9119539260864258, 0.49559810757637024, -0.24113504588603973, 0.09836511313915253, -0.08133773505687714, 0.24469034373760223, -0.22079792618751526, 0.19451075792312622, 0.3129616975784302, -0.4671074450016022, -0.28685715794563293, -0.5129139423370361, -0.008073748089373112, 1.1281402111053467, -0.11804041266441345, -0.16166158020496368, 0.671532154083252, 0.13963446021080017, -0.43922433257102966, -0.022266220301389694, -0.3010426163673401, -0.761425793170929, 0.5488307476043701, 0.762972891330719, 0.6851745843887329, -0.31179574131965637, 0.14935947954654694, -0.17540569603443146, 0.6577200293540955, -0.12007591128349304, 0.25965073704719543, 0.05760037153959274, -0.3877776265144348, -0.5429369807243347, -0.8999099731445312, -0.6764885187149048, 0.5576335787773132, -0.15556448698043823, 0.3213123083114624, -0.617798388004303, 0.0899852067232132, -0.2902730703353882, 0.33147695660591125, -0.15167661011219025, -0.01682557351887226, 0.0943838357925415, 0.9376899003982544, -0.5310089588165283, 0.881081759929657, 0.5497219562530518, -0.08493923395872116, -0.30838853120803833, -0.026667026802897453, 0.0658695325255394, -0.9822391867637634, 0.3779597878456116, 0.10901722311973572, -0.1577909141778946, -0.1547231376171112, -0.6122375726699829, -0.8575732707977295, 0.8487937450408936, 0.8170438408851624, -0.6887902021408081, 0.029978064820170403, 0.5379945039749146, 0.5871398448944092, -0.020328057929873466, 0.025535237044095993, 0.7423718571662903, 0.387483686208725, -0.03331410884857178, -0.8692763447761536, 0.16430343687534332, -0.11796581000089645, 0.059931591153144836, 0.49154943227767944, -1.037318468093872, 0.7119293808937073, 0.44800105690956116, -0.13491100072860718, -0.07210209220647812, 0.20483489334583282, 0.5634084343910217, 0.13325603306293488, 0.4721817076206207, 0.6465341448783875, 0.6076130270957947, 0.030115757137537003, 1.3427516222000122, -0.3643980026245117, 0.031934045255184174, 0.8837264180183411, -0.42618390917778015, 0.7946927547454834, 0.4984440505504608, -0.11112947762012482, 0.023889321833848953, 0.5249832272529602, 0.0943351611495018, 0.7329524159431458, 0.5089223980903625, -0.42461588978767395, -0.06348851323127747, -0.19172516465187073, -0.4858296811580658, 0.1328127533197403, 0.6083611249923706, -0.004168836399912834, -0.3524712920188904, -0.22491207718849182, 0.3845707178115845, -0.09575160592794418, -0.5321616530418396, 0.5148046612739563, 0.290639191865921, -0.5913519263267517, 0.8616786599159241, 0.16448959708213806, 0.844691276550293, -0.806673526763916, 0.10784593969583511, -0.42106369137763977, -0.03322552889585495, 0.08198445290327072, -0.6122488975524902, 0.08638843894004822, 0.1158503070473671, 0.30397406220436096, 0.01815575547516346, 0.8257706761360168, -0.2808099091053009, -0.3749268352985382, 0.556607723236084, 0.3067670166492462, -0.03433353453874588, -0.17344321310520172, -0.7132089734077454, 0.38599511981010437, 0.05688232555985451, -0.21733540296554565, 0.6567569375038147, 0.18896794319152832, -0.1487843096256256, 0.9912822246551514, 0.7598451972007751, 0.5101070404052734, 0.2807220220565796, -0.006282184738665819, 0.9610366821289062, -0.4443386197090149, -0.3397041857242584, -1.0459847450256348, 0.12778425216674805, -0.07398367673158646, 0.02458958327770233, 0.5417627692222595, 0.3601282835006714, 0.850574791431427, 0.20379777252674103, 0.6689815521240234, 0.3707757592201233, 0.2031627893447876, -0.7467285990715027, 0.6123932600021362, -0.5349032282829285, 0.8303043246269226, -0.32034358382225037, -0.919216513633728, -0.46362608671188354, 0.14048010110855103, -0.40290266275405884, -0.3523963689804077, 0.4350838363170624, 1.281823992729187, 0.11665500700473785, -0.23794019222259521, 0.14986401796340942, 0.31136569380760193, 0.971936047077179, 0.6375847458839417, 0.8984140157699585, -0.09069395065307617, 0.8104726672172546, -0.18428100645542145, -0.19422774016857147, -0.13953948020935059, -0.9942798614501953, -1.2247179746627808, -0.14286305010318756, -0.12171132117509842, -0.3003883957862854, 0.47916650772094727, 0.587469220161438, 0.37357985973358154, -0.497384637594223, -0.1417679339647293, -0.19568845629692078, 0.14542877674102783, 0.3086583614349365, -0.17682483792304993, 0.4975156784057617, -0.2569427788257599, -0.5206032991409302, 0.6640153527259827, 0.15157563984394073, 0.06454242765903473, -0.35395926237106323, -0.16485758125782013, -0.10175436735153198, 0.24396850168704987, 0.4013022482395172, 0.3160490393638611, -0.7813623547554016, -0.5151513814926147, -0.22405995428562164, 0.11847315728664398, -0.2322765290737152, 0.30799588561058044, -0.5459128022193909, 0.5463842749595642, 0.2027546763420105, 0.9206162691116333, 0.5353416800498962, 0.0786222442984581, 0.46725189685821533, -0.9064428806304932, 0.10553151369094849, 0.09256172925233841, 0.521621823310852, 0.11364742368459702, -0.3116903305053711, 0.6132819652557373, 0.09483955055475235, -0.45918259024620056, -1.30387544631958, 0.2809498906135559, -1.1401305198669434, -0.38236650824546814, 1.3895903825759888, 0.10654640942811966, -0.38984861969947815, -0.037633251398801804, -0.43266093730926514, -0.09596443176269531, -0.5741607546806335, 0.970159113407135, 0.5220739245414734, 0.16170601546764374, 0.04397140443325043, -0.7466144561767578, 0.40811270475387573, 0.45427510142326355, -0.7828627228736877, 0.07294204086065292, 0.49700573086738586, 0.215273916721344, 0.03979548439383507, 0.4148360788822174, -0.11411599814891815, 0.17042909562587738, -0.21594367921352386, -0.3958415389060974, -0.12431690096855164, -0.17036616802215576, -0.4352226257324219, 0.5255828499794006, 0.006464124657213688, -0.1292140632867813 ]
http://arxiv.org/abs/2402.09668v1
http://arxiv.org/pdf/2402.09668v1
How to Train Data-Efficient LLMs
2024-02-15T02:27:57
2024-02-15T02:27:57
Noveen Sachdeva, Benjamin Coleman, Wang-Cheng Kang, Jianmo Ni, Lichan Hong, Ed H. Chi, James Caverlee, Julian McAuley, Derek Zhiyuan Cheng
cs.LG
cs.LG, cs.AI, cs.CL
The training of large language models (LLMs) is expensive. In this paper, we study data-efficient approaches for pre-training LLMs, i.e., techniques that aim to optimize the Pareto frontier of model quality and training resource/data consumption. We seek to understand the tradeoffs associated with data selection routines based on (i) expensive-to-compute data-quality estimates, and (ii) maximization of coverage and diversity-based measures in the feature space. Our first technique, Ask-LLM, leverages the zero-shot reasoning capabilities of instruction-tuned LLMs to directly assess the quality of a training example. To target coverage, we propose Density sampling, which models the data distribution to select a diverse sample. In our comparison of 19 samplers, involving hundreds of evaluation tasks and pre-training runs, we find that Ask-LLM and Density are the best methods in their respective categories. Coverage sampling can recover the performance of the full data, while models trained on Ask-LLM data consistently outperform full-data training -- even when we reject 90% of the original dataset, while converging up to 70% faster.
[ -0.5301872491836548, -0.7364055514335632, 0.5373203158378601, 0.01130570936948061, -0.2934543192386627, 0.15108215808868408, -0.273470401763916, -0.034481555223464966, 0.190929114818573, 0.7542032599449158, -0.3622259497642517, -0.5398333072662354, -0.6448199152946472, -0.21956324577331543, -0.5994942784309387, 0.6221179962158203, -0.0696338415145874, 0.1871977597475052, -0.2547604739665985, -0.10471025109291077, -0.04074898734688759, -0.5580263137817383, -0.5920383334159851, -0.018705762922763824, 0.6113945841789246, 0.5637040138244629, 0.6034151911735535, 0.9357142448425293, 0.3376253843307495, 0.26394814252853394, -0.21476531028747559, 0.20065763592720032, -0.9430325627326965, -0.0348929837346077, 0.038442403078079224, -0.6458085179328918, -0.08991474658250809, 0.3738325238227844, 0.5839851498603821, 0.9756627082824707, -0.22786466777324677, 0.21675650775432587, -0.06427951157093048, 0.46815431118011475, -0.654492974281311, -0.19391083717346191, -0.8920393586158752, 0.09658747166395187, -0.21982915699481964, -0.22856451570987701, -0.21959812939167023, -0.42927396297454834, -0.15139923989772797, -0.455211877822876, 0.16504909098148346, -0.007460474036633968, 0.8122360110282898, 0.2633163332939148, -0.2823646366596222, -0.20472171902656555, -0.7234769463539124, 1.1232126951217651, -0.33484408259391785, 0.48315632343292236, 0.6653868556022644, 0.3162834644317627, -0.06018659472465515, -0.4188406467437744, -0.39376309514045715, -0.3062392771244049, 0.2547537088394165, 0.060106903314590454, -0.09403195232152939, -0.039361950010061264, 0.19559872150421143, 0.5280743837356567, -0.47394120693206787, 0.44043731689453125, -0.23662275075912476, -0.12180626392364502, 0.7059116959571838, 0.08265461027622223, 0.11068451404571533, 0.16578541696071625, -0.31969204545021057, -0.23371833562850952, -0.7896782755851746, -0.0037797715049237013, 0.5133006572723389, 0.16265566647052765, 0.13233213126659393, 0.6673352718353271, -0.26620081067085266, 0.9581281542778015, -0.390434205532074, -0.19322775304317474, 0.10393664240837097, -0.45856985449790955, -0.26037079095840454, -0.46283960342407227, 0.4690851867198944, 0.07859349250793457, 0.4007962644100189, -0.21180202066898346, -0.4752459228038788, -0.2441076636314392, 0.2558797597885132, -0.6896345615386963, -0.07937221974134445, 0.2820902168750763, -0.2743273079395294, -0.21104063093662262, -0.35619091987609863, -0.651141345500946, -0.04022207483649254, -0.5742182731628418, 0.5067887902259827, -0.4262007474899292, -0.03137095645070076, 0.2838335931301117, 0.07829935848712921, 0.24772299826145172, 0.4396131634712219, -0.8487103581428528, 0.1317777782678604, 0.43605557084083557, 0.6525619626045227, -0.029642725363373756, -0.23617057502269745, -0.5985868573188782, -0.07974021881818771, -0.6617265939712524, 0.8847209811210632, -0.3811420202255249, -0.39305511116981506, -0.15414412319660187, -0.4923458397388458, -0.21080264449119568, -0.806573212146759, 0.2876230478286743, -0.5287520289421082, -0.029908938333392143, -0.4516538679599762, -0.7422579526901245, 0.004653948824852705, 0.3685324192047119, -0.7332245707511902, 0.9928712844848633, 0.4784168004989624, -0.6484930515289307, 0.7142699956893921, -0.1998652070760727, -0.3185768127441406, -0.021057257428765297, -0.08737950772047043, -0.468149334192276, 0.018286587670445442, 0.5390165448188782, 0.7677270770072937, -0.24246536195278168, 0.0731629729270935, -0.39892736077308655, -0.5478502511978149, 0.3800334632396698, -0.21676436066627502, 0.6437405347824097, 0.5313372611999512, -0.08004115521907806, -0.13513067364692688, -0.6850096583366394, 0.08147802948951721, 0.24826118350028992, -0.5358143448829651, -0.23788024485111237, 0.06358550488948822, -0.3274816870689392, -0.14865192770957947, 0.07383596152067184, -0.20641891658306122, -0.03618186339735985, -0.35392916202545166, 0.19475574791431427, 0.5972023606300354, -0.2629063129425049, 0.5817264318466187, -0.578869640827179, 0.6590749025344849, -0.09212573617696762, 0.35254988074302673, 0.02585807628929615, 0.10434454679489136, -0.9486189484596252, -0.4148007333278656, 0.25520947575569153, 0.5613545775413513, -0.9566964507102966, 0.5610064268112183, -0.16677230596542358, -0.6689337491989136, -0.5720009207725525, 0.6158611178398132, 0.19906748831272125, 0.34997105598449707, 0.29604142904281616, 0.04170515388250351, -0.1871299147605896, -0.7123000025749207, -0.148851677775383, 0.032554108649492264, 0.13573282957077026, 0.46071672439575195, 0.34359076619148254, -0.03393782675266266, 0.9578580260276794, -0.5043421983718872, 0.20522689819335938, -0.7582604885101318, -0.25146254897117615, 0.2597998082637787, 0.29503411054611206, 0.5851885676383972, -0.6390910744667053, -0.42781180143356323, -0.326995849609375, -0.45340290665626526, -0.21449407935142517, -0.03940625116229057, -0.3737097978591919, -0.03600475937128067, 0.40962329506874084, -0.5355511903762817, 0.00715393153950572, 0.5334634184837341, 0.1000252217054367, 0.14761200547218323, -0.10352075099945068, 0.11059824377298355, -0.890133798122406, -0.03433563932776451, -0.07329250872135162, -0.24144259095191956, -0.7124438285827637, -0.08238500356674194, -0.05432496219873428, -0.291089802980423, -0.5305196046829224, 0.6798531413078308, -0.5288875102996826, -0.28834590315818787, -0.08875768631696701, -0.021090546622872353, -0.07693653553724289, 0.38439080119132996, -0.07175072282552719, 1.0565811395645142, 0.6792542338371277, -0.6847423911094666, 0.10753916949033737, 0.10015196353197098, -0.7062065601348877, 0.4092770516872406, -0.41735175251960754, 0.026426222175359726, -0.3869521915912628, -0.15101483464241028, -0.8942723274230957, -0.08848167210817337, 0.08812883496284485, -0.13143597543239594, 0.26214054226875305, -0.08302359282970428, -0.5337717533111572, -0.23872794210910797, -0.3326309323310852, 0.2049260139465332, 0.7258332967758179, -0.9055656790733337, 0.21388377249240875, 0.5723072290420532, -0.12231942266225815, -0.583164632320404, -0.6846051216125488, -0.20181061327457428, -0.4899681806564331, -0.481052428483963, 0.019100122153759003, 0.08595730364322662, -0.2324095070362091, -0.25835075974464417, -0.058211736381053925, -0.28445547819137573, 0.46410733461380005, -0.32436805963516235, -0.10711490362882614, 0.1329485923051834, 0.025831768289208412, 0.059913069009780884, -0.031708646565675735, -0.13223378360271454, -0.06263376027345657, 0.7781572341918945, 0.18051767349243164, -0.590251624584198, -0.008229898288846016, 0.22083230316638947, 0.02751224674284458, -0.1873854249715805, 0.5819240808486938, 0.3124569356441498, -0.015888091176748276, -0.6440796256065369, -0.8569336533546448, -0.10343043506145477, -0.4107201099395752, 0.4826856851577759, -0.23820048570632935, -0.870736837387085, 0.4075719118118286, -0.004558749496936798, 0.15907235443592072, 0.05267078056931496, 0.45519888401031494, -0.4175835847854614, 0.7409196496009827, 0.4226936995983124, -0.15189479291439056, 0.6486488580703735, -0.5280551910400391, 0.04077141731977463, -0.3850117325782776, -0.08431006968021393, -0.527118980884552, -0.2822968661785126, -0.0896640419960022, -0.8116748332977295, 0.39111003279685974, 0.4507320821285248, -0.29583144187927246, 0.14798197150230408, -0.23655687272548676, 0.6137270927429199, 0.7826063632965088, 0.2733621597290039, 0.06736177206039429, 0.44977205991744995, 0.3513225018978119, 0.023869866505265236, -0.9499403834342957, -0.4585682451725006, 1.4127132892608643, 0.39260974526405334, 0.9112324714660645, -0.2548782527446747, 0.9405497908592224, -0.2493872046470642, 0.11771134287118912, -0.7191934585571289, 0.612125813961029, -0.2761302590370178, -0.32185661792755127, -0.5184243321418762, -0.9329569935798645, -1.0963587760925293, 0.33584722876548767, -0.1597861349582672, -0.21569117903709412, 0.11560331284999847, 0.43194496631622314, -0.27289241552352905, 0.5582778453826904, -0.5530753135681152, 0.6250844597816467, -0.6453852653503418, 0.02810566872358322, -0.27873480319976807, -0.33195558190345764, 0.3378179371356964, -0.2635045349597931, 0.1611103117465973, -0.4004363417625427, -0.11787951737642288, 0.6386813521385193, -0.278679758310318, 0.5172070264816284, -0.28843581676483154, 0.19565963745117188, 0.3726324737071991, -0.040592946112155914, 0.337704598903656, -0.015687957406044006, -0.1165647879242897, 0.3268797993659973, -0.29590776562690735, -0.7822205424308777, -0.5313419103622437, 0.18571095168590546, -0.9377456903457642, -0.28617027401924133, -0.022839918732643127, -0.5815132856369019, -0.4317697286605835, -0.14233404397964478, 0.4328579008579254, 0.29449838399887085, -0.21308186650276184, 0.19987821578979492, 0.9570103287696838, -0.5368050932884216, 0.15035194158554077, 0.3138261139392853, 0.0050302655436098576, -0.5148376226425171, 0.9533878564834595, 0.42400917410850525, 0.6029651761054993, 0.5036822557449341, 0.09505358338356018, -0.29485324025154114, -1.0238944292068481, -0.27332043647766113, 0.13893894851207733, -0.6820392608642578, -0.19640247523784637, -0.8141452670097351, -0.2937031388282776, -0.05139303579926491, -0.2049114853143692, -0.42957139015197754, -0.16436299681663513, -0.3941076695919037, -0.11816509068012238, 0.42522668838500977, 0.1574917584657669, 0.10666929930448532, 0.7639800906181335, -0.47261983156204224, 0.16962271928787231, 0.3905717432498932, 0.30573421716690063, -0.37271514534950256, -0.5039849281311035, -0.30133289098739624, 0.019031144678592682, -0.07481064647436142, -0.5373528003692627, 0.4611600339412689, 0.09962859004735947, 0.9911932945251465, 0.1601676195859909, -0.19059805572032928, 0.40658843517303467, -0.19951488077640533, 0.539056122303009, -0.06465089321136475, -0.6688486933708191, 0.5370182991027832, -0.1226806715130806, 0.08618012070655823, 0.9854611158370972, 0.6002660989761353, -0.1354726403951645, -0.4006973206996918, -0.5015903115272522, -0.854171633720398, 0.6256998777389526, 0.16086195409297943, 0.4217440187931061, -0.033013567328453064, 0.4421691298484802, 0.13511666655540466, 0.35142451524734497, -0.6503133773803711, -0.12094917893409729, -0.18169407546520233, -0.22988533973693848, -0.27638694643974304, -0.3560182750225067, -0.18585167825222015, -0.2545592188835144, 0.4231664836406708, -0.26251357793807983, 0.10347498953342438, -0.07910976558923721, -0.40536031126976013, 0.4614975154399872, 0.3828045129776001, 0.18744826316833496, 0.7781470417976379, -0.2336854338645935, 0.13206282258033752, 0.34141600131988525, -0.2871154248714447, 0.32781317830085754, 0.1225510835647583, -0.17592257261276245, -0.01821238175034523, 0.29656144976615906, 1.1448224782943726, 0.1030408963561058, -0.8913167119026184, 0.5894086956977844, 0.09023360162973404, -0.40566346049308777, -0.12503767013549805, 0.42220914363861084, 0.1979985386133194, 0.22026757895946503, -0.08013247698545456, -0.5066665410995483, 0.03538268059492111, -0.35845208168029785, 0.05263252556324005, 0.5886334776878357, 0.13502173125743866, 0.16710975766181946, 0.36086636781692505, 0.022805105894804, 0.07494471967220306, 0.8311586380004883, -0.09542591869831085, -0.29636144638061523, 0.711789071559906, 0.19800858199596405, 0.4791901111602783, -0.2626659870147705, 0.3209424912929535, 0.1165783628821373, 0.3081871271133423, -0.2531387209892273, 0.7418718338012695, -0.002355852397158742, -0.9374710321426392, -0.4848427176475525, -0.6917192935943604, -0.5871766209602356, 0.23185887932777405, -0.4728834629058838, 0.30671054124832153, -0.5877692103385925, 0.019592810422182083, -0.3936779201030731, 0.08365243673324585, -0.8591744899749756, 0.33752384781837463, -0.007809326518326998, 1.0739874839782715, -0.8475682735443115, 0.7858758568763733, 0.41291943192481995, -0.2089025378227234, -0.9574040770530701, -0.39254623651504517, -0.35065773129463196, -1.2894362211227417, 0.6209632158279419, 0.03612235188484192, 0.3365299701690674, 0.10524079203605652, -0.5630674958229065, -1.0888466835021973, 1.0369927883148193, 0.8063549995422363, -0.8227299451828003, 0.26513493061065674, 0.2631588578224182, 0.19555042684078217, -0.19598333537578583, 0.37475597858428955, 0.7691431045532227, 0.16863717138767242, 0.2522658705711365, -0.4993428587913513, -0.4752498269081116, 0.014640331268310547, 0.1276385337114334, 0.2568937838077545, -0.5382720232009888, 0.933075487613678, -0.08285734802484512, -0.09360525012016296, -0.20114703476428986, 0.4074220061302185, 0.4982633888721466, 0.11732356995344162, 0.8699239492416382, 0.7497034668922424, 0.8198886513710022, -0.07290296256542206, 1.2683992385864258, -0.42408469319343567, 0.3145481050014496, 0.7636679410934448, -0.32039934396743774, 0.7106725573539734, 0.3514847457408905, -0.3433555066585541, -0.21305061876773834, 1.0100083351135254, -0.294171005487442, 0.5113197565078735, 0.49250122904777527, -0.26328715682029724, -0.5143583416938782, 0.12142913788557053, -0.16089749336242676, 0.4083845019340515, 0.20648828148841858, -0.17283692955970764, -0.45276933908462524, 0.10584625601768494, 0.01323819812387228, 0.012182824313640594, -0.3711671829223633, 0.8782429099082947, 0.09854397177696228, -0.3519768714904785, 0.6812031269073486, -0.16974252462387085, 0.5834458470344543, -0.660404622554779, 0.428369402885437, -0.7626696228981018, -0.13342684507369995, 0.06944248080253601, -0.729997992515564, 0.3231074810028076, -0.026931725442409515, -0.09305880218744278, -0.3248785734176636, 0.513445258140564, -0.6477529406547546, -0.5605356097221375, 0.24752771854400635, 0.8019689321517944, 0.5028139352798462, -0.13320688903331757, -0.7656378149986267, 0.032432686537504196, -0.12222444266080856, -0.5036935806274414, 0.5338646173477173, 0.08285845816135406, 0.00546928308904171, 0.7697724103927612, 0.6274753212928772, 0.6669385433197021, 0.11285177618265152, 0.20255519449710846, 0.8936603665351868, -0.5875827670097351, -0.48482948541641235, -0.7576355338096619, 0.34584325551986694, -0.19391198456287384, -0.1988895833492279, 0.36584222316741943, 0.6070507764816284, 1.038096308708191, 0.23849652707576752, 0.7386314272880554, 0.3741782605648041, 0.8379484415054321, -0.8992525935173035, 0.4952746629714966, -0.6504964232444763, 0.4944060742855072, 0.14667342603206635, -1.1015079021453857, -0.11868646740913391, 0.633912980556488, -0.4196527898311615, 0.2257874310016632, 0.2914181053638458, 0.9617362022399902, -0.2747049331665039, -0.17037512362003326, 0.46992918848991394, -0.15626761317253113, 0.319889098405838, 0.6463465690612793, 1.0338020324707031, -0.03476816415786743, 0.45327553153038025, -0.4900384843349457, -0.3118741512298584, -0.054466549307107925, -0.7113532423973083, -0.9338105916976929, -0.14415673911571503, -0.0788905993103981, -0.07358206808567047, -0.044649384915828705, 0.92106693983078, 0.913445770740509, -0.5866978168487549, -0.451398640871048, 0.06487677246332169, 0.1604689508676529, 0.07625897973775864, -0.1270560920238495, 0.3777686059474945, -0.7433079481124878, -0.7292563915252686, 0.5214110612869263, 0.06089431419968605, 0.24932026863098145, -0.16023322939872742, 0.0931829959154129, 0.2238370180130005, 0.10817316174507141, 0.5177327990531921, 0.003936546854674816, -0.3068206310272217, 0.15047432482242584, 0.006513137370347977, -0.1995936632156372, 0.06568442285060883, 0.9294112324714661, -0.47201940417289734, 0.3164932429790497, 0.43790969252586365, 1.2332032918930054, 0.5754562616348267, 0.05088453367352486, 0.49665242433547974, -0.5978558659553528, 0.24908071756362915, 0.3755503296852112, 0.25419068336486816, 0.3407735824584961, -0.3688390851020813, 0.5430470108985901, 0.11385085433721542, -0.5520485639572144, -0.8772000670433044, 0.1046156957745552, -0.7686123847961426, -0.5145102739334106, 1.2472659349441528, -0.09667466580867767, -0.0298968106508255, -0.041404079645872116, 0.016296880319714546, -0.03664868697524071, 0.01897144317626953, 0.6023042798042297, 0.5947464108467102, -0.09200385212898254, -0.38916438817977905, -0.8543508648872375, 0.43323758244514465, 0.6390098333358765, -1.1959607601165771, -0.08903910219669342, 0.3485592305660248, 0.4436478018760681, -0.41198140382766724, 0.8409802913665771, 0.031736575067043304, -0.058780696243047714, -0.12908975780010223, 0.07590650767087936, -0.12518614530563354, -0.3580329120159149, -0.45059478282928467, 0.07817205041646957, 0.22098276019096375, -0.19059936702251434 ]
http://arxiv.org/abs/2402.09666v1
http://arxiv.org/pdf/2402.09666v1
EntailE: Introducing Textual Entailment in Commonsense Knowledge Graph Completion
2024-02-15T02:27:23
2024-02-15T02:27:23
Ying Su, Tianqing Fang, Huiru Xiao, Weiqi Wang, Yangqiu Song, Tong Zhang, Lei Chen
cs.CL
cs.CL
Commonsense knowledge graph completion is a new challenge for commonsense knowledge graph construction and application. In contrast to factual knowledge graphs such as Freebase and YAGO, commonsense knowledge graphs (CSKGs; e.g., ConceptNet) utilize free-form text to represent named entities, short phrases, and events as their nodes. Such a loose structure results in large and sparse CSKGs, which makes the semantic understanding of these nodes more critical for learning rich commonsense knowledge graph embedding. While current methods leverage semantic similarities to increase the graph density, the semantic plausibility of the nodes and their relations are under-explored. Previous works adopt conceptual abstraction to improve the consistency of modeling (event) plausibility, but they are not scalable enough and still suffer from data sparsity. In this paper, we propose to adopt textual entailment to find implicit entailment relations between CSKG nodes, to effectively densify the subgraph connecting nodes within the same conceptual class, which indicates a similar level of plausibility. Each node in CSKG finds its top entailed nodes using a finetuned transformer over natural language inference (NLI) tasks, which sufficiently capture textual entailment signals. The entailment relation between these nodes are further utilized to: 1) build new connections between source triplets and entailed nodes to densify the sparse CSKGs; 2) enrich the generalization ability of node representations by comparing the node embeddings with a contrastive loss. Experiments on two standard CSKGs demonstrate that our proposed framework EntailE can improve the performance of CSKG completion tasks under both transductive and inductive settings.
[ -0.270712286233902, -0.8992316126823425, 0.7340863943099976, -0.02137550711631775, -0.3052968680858612, -0.10220497846603394, -0.22551584243774414, -0.32488149404525757, 0.4263332486152649, 0.6608607172966003, -0.3775831460952759, -0.7236812710762024, -0.5661587715148926, 0.2308519184589386, -0.47205111384391785, 0.7644921541213989, -0.3630998432636261, -0.5725230574607849, -0.7282605767250061, 0.03026001900434494, -0.3353198170661926, 0.09905263781547546, -0.6513770222663879, -0.3700200915336609, 0.32939666509628296, 0.33968713879585266, 0.7254850268363953, 0.5879585146903992, 0.21150456368923187, 0.32754385471343994, -0.14274464547634125, 0.6506006717681885, -0.6813518404960632, 0.24581776559352875, 0.02324187196791172, -0.13210034370422363, -0.19945868849754333, -0.01067647710442543, 0.5638571381568909, 0.9634882211685181, 0.171803817152977, -0.17664264142513275, 0.5192177295684814, 0.5067501664161682, -0.6945506930351257, 0.2603287696838379, -0.6633926033973694, -0.04119383171200752, -0.00973101332783699, -0.07729445397853851, -0.48125433921813965, -0.44533950090408325, 0.3254666030406952, -1.2703675031661987, 0.37765777111053467, 0.11547280102968216, 0.9637423753738403, 0.3381013572216034, -0.6012963652610779, -0.3678262233734131, -0.10880287736654282, 0.3938570022583008, -0.6430761814117432, 0.45539581775665283, 0.6167922616004944, -0.0029036991763859987, -0.16831910610198975, -0.9546512365341187, -0.7451605200767517, -0.44848427176475525, -0.6977922916412354, 0.29462918639183044, -0.08734128624200821, 0.2855879068374634, 0.1957799792289734, 0.28698602318763733, -0.45472201704978943, -0.14218047261238098, -0.019127899780869484, -0.18623842298984528, 0.39053982496261597, 0.04181836545467377, 0.245609849691391, -0.23327533900737762, -0.2597353458404541, 0.33467164635658264, -0.7028128504753113, -0.3639698922634125, 0.4427902102470398, 0.08013875037431717, -0.1561560034751892, 0.657021164894104, -0.5274696350097656, 0.6971803307533264, 0.11979033052921295, 0.1454201191663742, 0.23574800789356232, -0.6001301407814026, -0.21468935906887054, 0.2357412576675415, 0.5560529828071594, 0.32706111669540405, 0.38925737142562866, -0.6074233055114746, 0.37320128083229065, 0.06851392984390259, -0.03129801154136658, -0.7304651737213135, -0.03801528364419937, 0.4332405626773834, -0.26247942447662354, -0.1800052523612976, -0.06132637709379196, -0.3385825753211975, -0.5137231945991516, -0.597929060459137, 0.40644964575767517, -0.6881167888641357, -0.44628533720970154, 0.32016417384147644, -0.4086630344390869, 0.12434979528188705, 0.4172342121601105, -0.4810939133167267, 0.45435959100723267, 0.922284722328186, 0.8382363319396973, -0.025302540510892868, -0.18173393607139587, -0.27265051007270813, 0.6705986261367798, -0.3859066963195801, 0.5731484293937683, -0.6425126194953918, -0.07949574291706085, -0.028247594833374023, 0.15139935910701752, -0.17671336233615875, -0.3225246071815491, 0.6430028676986694, -0.2672779858112335, -0.009433536790311337, -0.17586080729961395, -0.9325196146965027, -0.24496065080165863, 0.44450804591178894, -0.5723717212677002, 1.0842537879943848, -0.10999009758234024, -1.0597256422042847, 0.28538233041763306, -0.5172337293624878, -0.5036906599998474, 0.1582479327917099, 0.10259763896465302, -0.1986348181962967, -0.2417934387922287, 0.0939583107829094, 0.6174618005752563, -0.06849564611911774, 0.3299195468425751, -0.3289547860622406, -0.2734324634075165, 0.06874477118253708, -0.0737084150314331, 0.6530328989028931, -0.05221887305378914, -0.07543326169252396, -0.09374423325061798, -0.6195842623710632, -0.20146815478801727, -0.10764957964420319, 0.017488468438386917, -0.7333120703697205, 0.14012759923934937, -0.26169249415397644, -0.33427301049232483, 0.255104124546051, -0.7788036465644836, -0.29472532868385315, -0.8767905235290527, 0.47216796875, 0.35779157280921936, 0.28904056549072266, 0.7296748161315918, -0.17946860194206238, -0.13429157435894012, 0.06289664655923843, -0.0684637799859047, -0.004030989482998848, -0.5398204922676086, -0.7366717457771301, -0.23108050227165222, 0.2850024700164795, 0.4207456409931183, -0.9650566577911377, 0.39310142397880554, -0.3822835385799408, -0.27252766489982605, -0.33717063069343567, 0.0037925741635262966, 0.2368081510066986, 0.6375223398208618, 0.2921765446662903, 0.1664675921201706, -0.46593815088272095, -0.9122602343559265, -0.32805564999580383, 0.1133139580488205, -0.106584832072258, 0.092886783182621, 0.6241254210472107, -0.006704377010464668, 0.9514148831367493, -0.6122726798057556, -0.2679636776447296, -0.20130647718906403, 0.14017869532108307, 0.08776917308568954, 0.4928905963897705, 0.35754477977752686, -0.7789050340652466, -0.6196713447570801, 0.38810378313064575, -0.7309551239013672, 0.006174852605909109, 0.06393782049417496, -0.44387346506118774, 0.07527878135442734, 0.5316833853721619, -0.507058322429657, 0.5630413889884949, 0.059728287160396576, -0.42470353841781616, 0.11324011534452438, -0.09023700654506683, 0.22007200121879578, -0.9466565251350403, -0.2812458574771881, -0.10398835688829422, -0.2523428797721863, -0.5345073938369751, 0.16382743418216705, 0.021068627014756203, 0.03142734244465828, -0.20726589858531952, 0.5184134244918823, -0.28899556398391724, 0.1768716275691986, -0.04949916899204254, 0.6540431380271912, 0.21529638767242432, 0.3835189938545227, 0.055734097957611084, 0.10540837794542313, 0.5375049710273743, -0.7078644037246704, 0.29201483726501465, 0.28219830989837646, 0.03815429285168648, 0.5935297012329102, -0.7200107574462891, -0.14831030368804932, -0.37297534942626953, 0.22304114699363708, -0.9930126070976257, -0.27895587682724, 0.36544743180274963, -0.6364348530769348, 0.1848033368587494, -0.267457515001297, -0.6725676655769348, 0.06800317019224167, -0.1829572170972824, 0.19657215476036072, 0.303617000579834, -0.3595810830593109, 0.8041547536849976, 0.14353306591510773, 0.12265966832637787, -0.5516757369041443, -0.6799247860908508, 0.11956925690174103, -0.010844362899661064, -0.796889066696167, 0.4717825651168823, 0.326960951089859, -0.24684542417526245, 0.5456981062889099, -0.02706645056605339, -0.17587131261825562, 0.14068537950515747, 0.1728593111038208, -0.006176438648253679, -0.2016327679157257, 0.4541464149951935, 0.36701589822769165, -0.1611504852771759, -0.11344413459300995, -0.39195626974105835, 0.19737878441810608, 0.0015101141761988401, -0.45234885811805725, -0.29183363914489746, 0.46378597617149353, 0.0907963290810585, -0.14671432971954346, 0.725675642490387, 0.4926196336746216, -0.7080788612365723, -0.1671810895204544, -0.4201841354370117, -0.23037080466747284, -0.3922724425792694, 0.28159815073013306, -0.20050866901874542, -1.0987156629562378, 0.41870734095573425, -0.13007938861846924, 0.11559884995222092, 0.5504024624824524, -0.05068766698241234, -0.1130058690905571, 0.47134771943092346, 0.2063378244638443, 0.5792907476425171, -0.12678174674510956, -0.27582287788391113, 0.09423694014549255, -0.7265328168869019, -0.3527182936668396, -0.5124472975730896, -0.22825613617897034, -0.6899119019508362, -0.4092908501625061, 0.35015177726745605, 0.15820695459842682, -0.37986549735069275, 0.3318081498146057, -0.47399845719337463, 0.6071040630340576, 0.1958332657814026, 0.2036323994398117, 0.5067279934883118, 0.05095980316400528, -0.1907171905040741, -0.08053214102983475, -0.6470015048980713, -0.3513270318508148, 0.7701851725578308, 0.1264406144618988, 0.3022505044937134, 0.1748216152191162, 0.8225808143615723, 0.021802134811878204, 0.2118116170167923, -0.6648141145706177, 0.5360016822814941, -0.3981016278266907, -0.1784484088420868, -0.5154493451118469, -0.4182479679584503, -1.0095957517623901, 0.23887299001216888, -0.39351171255111694, -0.5450734496116638, 0.1299399584531784, 0.06290031224489212, 0.18065990507602692, 0.15150904655456543, -0.7346735000610352, 0.8078286647796631, 0.4585358798503876, -0.47006431221961975, -0.3791253864765167, -0.36922577023506165, 0.40890777111053467, 0.30482950806617737, 0.11717244982719421, -0.07593443244695663, -0.25738438963890076, 0.6682801246643066, -0.5539870858192444, 1.051534652709961, -0.1058148667216301, 0.009984076023101807, 0.551154375076294, 0.17652732133865356, 0.6707888245582581, 0.21543729305267334, 0.09639699757099152, -0.06935449689626694, -0.13832224905490875, -0.3103737235069275, -0.8460564613342285, 0.7416637539863586, -0.46602120995521545, -0.404275119304657, -0.01552110631018877, -0.3474943935871124, -0.22312000393867493, 0.19000576436519623, -0.05962838977575302, 0.7621806263923645, -0.1326906681060791, 0.28915759921073914, 1.0255893468856812, -0.16680528223514557, 0.2234160453081131, 0.27944591641426086, 0.2288454920053482, -0.31888070702552795, 0.9042290449142456, 0.1690455675125122, 0.25980639457702637, 0.5817830562591553, 0.2379772961139679, -0.48422911763191223, -0.480803906917572, -0.29361793398857117, 0.2776906192302704, -0.7784498333930969, -0.28902551531791687, -0.971940279006958, -0.3247941732406616, -0.5543447732925415, -0.3095877766609192, -0.061631105840206146, -0.6037392020225525, -0.14141011238098145, -0.21971926093101501, 0.76849365234375, 0.6484573483467102, 0.1743323653936386, 0.1708572804927826, -0.34568798542022705, 0.39244505763053894, 0.25037381052970886, 0.4365832805633545, 0.19666726887226105, -0.3256901800632477, -0.04187045618891716, 0.04536520689725876, -0.1873617023229599, -0.9795386791229248, -0.07465485483407974, 0.2719704210758209, 0.7307088971138, 0.20834335684776306, 0.4358130991458893, 0.504301130771637, -0.390661358833313, 0.47028908133506775, 0.14798517525196075, -0.9553760886192322, 0.48755937814712524, -0.39925312995910645, -0.07231088727712631, 0.3313095271587372, 0.5251772403717041, -0.6253884434700012, -0.8394523859024048, -0.7559583783149719, -0.9314882755279541, 0.42815202474594116, 0.4706609845161438, 0.039568010717630386, -0.3237852454185486, 0.41326773166656494, 0.05486098676919937, -0.05085735395550728, -0.5773407220840454, -0.18121914565563202, -0.5203925371170044, -0.5792673230171204, 0.4353644847869873, -0.13529209792613983, -0.10950364172458649, -0.07060185074806213, 0.6143566370010376, -0.24646209180355072, 0.01536567322909832, 0.3500475287437439, -0.08089037984609604, 0.4679344892501831, 0.3444429337978363, 0.12369302660226822, 0.49863970279693604, 0.0255768783390522, 0.5064405202865601, 0.4814832806587219, -0.36872434616088867, -0.23599913716316223, 0.09850016981363297, -0.3904819190502167, 0.044016748666763306, 0.5859349966049194, 0.5520316362380981, 0.4806762635707855, -0.3040928542613983, 0.6084199547767639, 0.28084924817085266, -0.6053541898727417, -0.1685606688261032, -0.13976579904556274, 0.5883098244667053, -0.16131068766117096, 0.11798609793186188, -0.12066356092691422, 0.34552156925201416, -0.16802585124969482, 0.21513958275318146, 0.2915363311767578, -0.350068062543869, 0.21698692440986633, 0.3797799348831177, 0.3234029710292816, 0.3200671672821045, 0.34379449486732483, -0.49156543612480164, -0.3694862127304077, 0.8070343732833862, 0.49884068965911865, 0.7332753539085388, 0.3181006908416748, 0.4437146782875061, 0.7489820122718811, 0.4158347547054291, -0.10293589532375336, -0.0648784190416336, -0.04358334094285965, -0.8138318657875061, -0.7611223459243774, -0.49210745096206665, -0.18442930281162262, -0.252223402261734, -0.336954265832901, 0.21505816280841827, -0.2013287991285324, 0.35462918877601624, 0.012691187672317028, -0.06279605627059937, -0.533344030380249, 0.02027106285095215, -0.2394595742225647, 0.8107241988182068, -0.7461180686950684, 0.4195370078086853, 0.4134800136089325, -0.38699159026145935, -0.6839802861213684, -0.12283559143543243, -0.2923958897590637, -0.5129728317260742, 0.5959571003913879, -0.05695420503616333, -0.12304546684026718, 0.17259904742240906, -0.5752788186073303, -0.7866201996803284, 1.1261465549468994, 0.20858176052570343, -0.11228451132774353, 0.21312713623046875, 0.16111451387405396, 0.3097184896469116, -0.27995985746383667, 0.20923198759555817, 0.36702585220336914, 0.6909843683242798, 0.4096944332122803, -0.6605688333511353, 0.6003040671348572, 0.06362074613571167, -0.14464062452316284, 0.3229566216468811, -0.31437039375305176, 0.47334638237953186, -0.15248197317123413, -0.5702918171882629, -0.20412510633468628, 0.8735840320587158, 0.1638137698173523, 0.6404461860656738, 0.4070158302783966, 0.8172151446342468, 0.7968051433563232, -0.22713592648506165, 0.7653436660766602, 0.02871844172477722, 0.10075610131025314, 0.9945017099380493, -0.12984704971313477, 0.7004632949829102, 0.20481078326702118, -0.053929973393678665, 0.48714688420295715, 0.49302932620048523, 0.38586118817329407, 0.29335686564445496, 0.1315305382013321, -0.18124501407146454, -0.39631783962249756, -0.36712807416915894, -0.4283897876739502, 0.1623479127883911, 0.5858915448188782, -0.037896279245615005, -0.48082461953163147, -0.14304697513580322, 0.14061923325061798, 0.4108469486236572, -0.41463688015937805, 0.884698212146759, -0.1325952708721161, -0.540561318397522, 0.4528292417526245, -0.07432015240192413, 0.569247305393219, -0.6516393423080444, -0.23299135267734528, -0.12337690591812134, -0.20846793055534363, -0.403261661529541, -0.8541529178619385, 0.6649631261825562, -0.38122132420539856, -0.03975505754351616, -0.10148154199123383, 0.9988653063774109, -0.7237114906311035, -0.3669343888759613, 0.14041383564472198, 0.4024485647678375, 0.010388568043708801, 0.03188054636120796, -0.22637657821178436, -0.43359291553497314, -0.2686779201030731, 0.1147652417421341, 0.12628446519374847, 0.9670416116714478, -0.04008868336677551, 0.37864950299263, 0.47874417901039124, -0.20052359998226166, -0.1674593985080719, 0.03657785430550575, 0.8299515247344971, -0.2672315835952759, -0.5071102380752563, -0.6878789663314819, 0.39518260955810547, -0.511415958404541, -0.06404626369476318, 0.8007293939590454, 0.7074127793312073, 0.783248782157898, 0.1424005776643753, 0.6850515007972717, -0.23271498084068298, 0.4221929907798767, -0.6445991396903992, 0.6787656545639038, -0.37789008021354675, -0.051892656832933426, -0.20247682929039001, -0.4316861033439636, -0.18451237678527832, 0.42137959599494934, -0.27771902084350586, -0.30855220556259155, 0.9668528437614441, 0.8671364188194275, -0.10377585887908936, 0.26773330569267273, 0.24449339509010315, 0.2212490439414978, -0.23156651854515076, 0.5637050867080688, 0.7934644818305969, -0.31188690662384033, 0.6125014424324036, -0.0009976621950045228, -0.1863545924425125, 0.2102358043193817, -1.0005357265472412, -0.9106512069702148, -0.7707135081291199, -0.6193736791610718, -0.45529910922050476, 0.15678414702415466, 0.6374739408493042, 0.266711562871933, -0.6102455854415894, 0.17497724294662476, -0.28155839443206787, 0.5835545659065247, -0.2154037207365036, -0.3171136677265167, 0.6249106526374817, -0.4701244831085205, -0.6088091731071472, -0.001989307813346386, 0.20182959735393524, 0.07117439061403275, 0.14058798551559448, -0.14470171928405762, -0.2476850003004074, -0.07168097048997879, 0.5361596345901489, -0.1317843496799469, -0.841140866279602, -0.43395036458969116, -0.09152641147375107, 0.05260597914457321, -0.47535109519958496, 0.9405484199523926, -0.801672637462616, 0.19500161707401276, 0.7292335033416748, 0.860935628414154, 0.5267683267593384, -0.2885863780975342, 0.3049456477165222, -1.1080507040023804, 0.14408467710018158, 0.06137611344456673, 0.3586055636405945, 0.35578832030296326, -0.4538326859474182, 0.6898103356361389, 0.4808439016342163, -0.1197226271033287, -0.5166243314743042, 0.43142980337142944, -1.0235894918441772, -0.48915982246398926, 1.2965049743652344, -0.13974733650684357, -0.1905537247657776, -0.6978456974029541, -0.09658675640821457, 0.42380622029304504, -0.17895837128162384, 0.1700619012117386, 0.6066513061523438, 0.02807793766260147, -0.10341358929872513, -0.5525256395339966, 0.6768949627876282, -0.02363135665655136, -0.6674966216087341, 0.2591709792613983, 0.40623655915260315, 0.16776525974273682, 0.08141286671161652, 0.6624990701675415, -0.06298233568668365, 0.12558723986148834, 0.2776671350002289, -0.22524906694889069, -0.4642147421836853, 0.14120052754878998, 0.5590061545372009, 0.2869102656841278, -0.4027794301509857, -0.07434099912643433 ]
http://arxiv.org/abs/2402.09664v4
http://arxiv.org/pdf/2402.09664v4
CodeMind: A Framework to Challenge Large Language Models for Code Reasoning
2024-02-15T02:24:46
2024-04-03T06:23:48
Changshu Liu, Shizhuo Dylan Zhang, Ali Reza Ibrahimzada, Reyhaneh Jabbarvand
cs.SE
cs.SE, cs.AI, cs.CL, cs.PL
Solely relying on test passing to evaluate Large Language Models (LLMs) for code synthesis may result in unfair assessment or promoting models with data leakage. As an alternative, we introduce CodeMind, a framework designed to gauge the code reasoning abilities of LLMs. CodeMind currently supports three code reasoning tasks: Independent Execution Reasoning (IER), Dependent Execution Reasoning (DER), and Specification Reasoning (SR). The first two evaluate models to predict the execution output of an arbitrary code or code the model could correctly synthesize. The third one evaluates the extent to which LLMs implement the specified expected behavior. Our extensive evaluation of nine LLMs across five benchmarks in two different programming languages using CodeMind shows that LLMs fairly follow control flow constructs and, in general, explain how inputs evolve to output, specifically for simple programs and the ones they can correctly synthesize. However, their performance drops for code with higher complexity, non-trivial logical and arithmetic operators, non-primitive types, and API calls. Furthermore, we observe that, while correlated, specification reasoning (essential for code synthesis) does not imply execution reasoning (essential for broader programming tasks such as testing and debugging): ranking LLMs based on test passing can be different compared to code reasoning.
[ -0.17957665026187897, -0.435472309589386, 0.8254783749580383, 0.33062803745269775, 0.12505052983760834, 0.2256217747926712, -0.3616828918457031, -0.3003447353839874, -0.2743188738822937, 0.5089634656906128, -0.5954053401947021, -0.6116706728935242, -0.486735075712204, 0.101691834628582, -0.5526922345161438, 0.6938151717185974, -0.32000938057899475, 0.1476653516292572, -0.5707883238792419, 0.04470076039433479, -0.7173536419868469, -0.477578341960907, -0.32464084029197693, -0.5670561194419861, 0.39399978518486023, 0.27366766333580017, 0.5265712738037109, 0.5249951481819153, 0.6207809448242188, 0.21826612949371338, 0.09748289734125137, -0.04849034547805786, -0.5006300210952759, 0.2659097909927368, -0.09571746736764908, -0.9221789240837097, -0.28739306330680847, -0.11141679435968399, 0.3188757300376892, 0.6816797256469727, -0.06744623929262161, 0.23432034254074097, -0.13595236837863922, 0.6201021671295166, -0.6524645090103149, 0.42503517866134644, -0.7131208181381226, -0.06283694505691528, 0.030876895412802696, -0.12061720341444016, -0.5657569766044617, -0.5327884554862976, -0.2947009801864624, -0.12771421670913696, -0.10317938774824142, 0.01605619303882122, 0.36374035477638245, 0.49955323338508606, -0.08998315781354904, -0.3875039219856262, -0.5122689604759216, 0.6764046549797058, -0.8031807541847229, 0.29761752486228943, 0.21328458189964294, 0.36454474925994873, -0.1070089191198349, -0.5260581374168396, -0.6806380152702332, -0.34391719102859497, 0.09136650711297989, -0.019925657659769058, -0.08264268189668655, 0.11857901513576508, 0.5607316493988037, 0.37373608350753784, -0.7762424349784851, -0.002654255134984851, -0.290333092212677, -0.2565094232559204, 0.6825913190841675, 0.354791522026062, 0.3152916431427002, 0.08061935007572174, -0.1720699518918991, -0.0036628723610192537, -1.084362506866455, 0.06611920148134232, 0.34733209013938904, 0.12379559874534607, 0.013284113258123398, 0.6268212199211121, -0.16440171003341675, 0.8418797254562378, -0.43521416187286377, 0.04554625228047371, 0.13042335212230682, 0.12102270126342773, -0.3485259413719177, -0.16287289559841156, 0.6585832238197327, 0.27798789739608765, 0.4497126340866089, -0.1459079086780548, -0.4092205762863159, 0.4813723564147949, 0.3019644021987915, -0.7564109563827515, -0.3843759596347809, 0.3870447278022766, -0.4602225422859192, -0.3050186336040497, 0.07247204333543777, -0.37730467319488525, -0.44583258032798767, -0.39861947298049927, 0.3528566062450409, -0.4465583264827728, -0.22745376825332642, 0.27248242497444153, -0.22676809132099152, 0.4468434154987335, 0.35900628566741943, -0.5782336592674255, 0.22750478982925415, 1.0706309080123901, 0.5742692947387695, -0.5229524970054626, -0.3320237696170807, -0.22813180088996887, -0.13785116374492645, -0.6298872828483582, 0.7278507947921753, -0.6998808979988098, -0.18314552307128906, -0.05688634514808655, -0.28780606389045715, -0.21553149819374084, -0.7719202637672424, 0.15453512966632843, -0.6458204984664917, -0.2108858823776245, -0.07335060834884644, -0.8652865290641785, -0.0938027873635292, 0.26619356870651245, -0.42350199818611145, 0.737476646900177, 0.15454129874706268, -0.49086058139801025, 0.3572578430175781, -0.5482475757598877, -0.6324363350868225, 0.2005467265844345, -0.6868444085121155, 0.08958536386489868, 0.12773118913173676, -0.1189141571521759, 0.41027453541755676, -0.41272833943367004, 0.29616987705230713, -0.6016154289245605, -0.7974907755851746, 0.47811946272850037, -0.2671210765838623, 0.7381914854049683, 0.3280497193336487, -0.6076595783233643, 0.14421936869621277, -0.5682151317596436, 0.6412159204483032, 0.09033861011266708, -0.2709188461303711, 0.017471712082624435, 0.20264698565006256, -0.3746362328529358, 0.06247902661561966, -0.057583313435316086, -0.17789660394191742, 0.32108256220817566, -0.24883179366588593, 0.632084310054779, 0.8125957250595093, -0.06442012637853622, 0.24159517884254456, -0.5331898927688599, 0.765913188457489, -0.22023038566112518, 0.11014324426651001, -0.226180300116539, -0.5939496159553528, -0.7695266008377075, -0.24189847707748413, 0.2413431853055954, 0.671226978302002, -0.6386303305625916, 0.34838107228279114, -0.3293415904045105, -0.4161246120929718, -0.2797551453113556, 0.2575165331363678, 0.6027863025665283, -0.023949159309267998, 0.013768629170954227, -0.1550525277853012, -0.5347201228141785, -0.8158340454101562, -0.5876460075378418, -0.5264053344726562, -0.14710697531700134, 0.20890280604362488, 0.5464295744895935, -0.1780865341424942, 0.6945427060127258, -0.6870402097702026, -0.03396163508296013, -0.5067775845527649, -0.09685318171977997, 0.4788382351398468, 0.4680754542350769, 0.16962236166000366, -0.6705659627914429, -0.17221559584140778, -0.19897758960723877, -0.743495762348175, -0.2519650459289551, 0.009114144369959831, 0.07376924902200699, 0.18890628218650818, 0.649645984172821, -0.4888693392276764, 0.37208324670791626, 0.731132984161377, -0.28349369764328003, 0.6170084476470947, 0.11195214092731476, 0.10780607908964157, -0.4977463483810425, 0.07303527742624283, -0.4464695453643799, -0.17604370415210724, -0.2346116453409195, 0.6535860300064087, 0.23015767335891724, -0.15559622645378113, -0.21527598798274994, 0.36275410652160645, -0.24508316814899445, -0.16618669033050537, -0.14128424227237701, -0.33037853240966797, -0.05201949551701546, 0.550072193145752, -0.07582012563943863, 1.0379377603530884, 0.5974476337432861, -0.586798369884491, 0.3023785650730133, -0.12207368016242981, -0.6812536120414734, 0.2280891090631485, -0.7157881259918213, 0.36701667308807373, 0.3292084038257599, 0.07912151515483856, -0.8374927043914795, -0.25160276889801025, -0.08486080914735794, -0.6094415783882141, 0.20395413041114807, -0.17435072362422943, -0.6671053767204285, -0.4405587315559387, -0.1065535768866539, 0.30490192770957947, 0.8067731857299805, -0.24122120440006256, 0.4513072669506073, 0.2827649414539337, 0.032747168093919754, -0.3351791799068451, -1.0077977180480957, 0.07461751252412796, 0.035660263150930405, -0.5070155262947083, 0.1204138994216919, -0.4260576367378235, -0.5720427632331848, -0.061206333339214325, -0.334368497133255, -0.2645542323589325, 0.1563723385334015, 0.4451799988746643, 0.2534922659397125, -0.21720129251480103, 0.11812596768140793, -0.1670536994934082, 0.12710340321063995, 0.5755707025527954, -0.3857656717300415, 0.44560182094573975, -0.16383767127990723, -0.7739959359169006, -0.010328403674066067, 0.24635063111782074, 0.6486217975616455, -0.16840380430221558, 0.3907182514667511, 0.09110255539417267, -0.28584131598472595, -0.829502284526825, -0.5517579913139343, -0.017769141122698784, -0.4556465148925781, 0.19090448319911957, -0.7264385223388672, -1.0293818712234497, 0.5432038307189941, 0.013723239302635193, -0.04391387104988098, 0.24765536189079285, 0.8420762419700623, 0.09318447858095169, 1.167542576789856, 0.47170794010162354, 0.08950305730104446, 0.07740142196416855, -0.2533467411994934, 0.4303602874279022, -0.5276252627372742, -0.20828793942928314, -0.37334296107292175, -0.10135282576084137, -0.42897000908851624, -0.6466361880302429, 0.15916398167610168, 0.13333062827587128, -0.16613927483558655, 0.3954458236694336, -0.5079182982444763, 0.6766110062599182, 0.39089423418045044, 0.09470256417989731, 0.274778813123703, -0.3373360335826874, -0.4076245129108429, 0.1733371615409851, -0.7030799984931946, -0.4099266827106476, 1.1561329364776611, 0.2559094727039337, 1.1735764741897583, 0.08475875109434128, 0.6678845882415771, 0.5010109543800354, 0.49391040205955505, -0.8444910049438477, 0.63173907995224, 0.12209416925907135, -0.6613898873329163, -0.03087352029979229, -0.7026198506355286, -0.3405580222606659, 0.00821570586413145, 0.39821961522102356, -0.6266727447509766, -0.08495587855577469, 0.10407523810863495, -0.2396826446056366, 0.18372328579425812, -0.910931408405304, 0.8107199668884277, -0.049268197268247604, -0.21929126977920532, -0.17973171174526215, -0.2013436257839203, 0.7130942344665527, -0.05933285877108574, 0.3057495355606079, -0.12827803194522858, 0.12285026162862778, 0.48405805230140686, -0.4958173632621765, 0.6933502554893494, -0.015880271792411804, -0.3163926303386688, 0.4309825301170349, 0.6388780474662781, 0.23952239751815796, 0.2144518494606018, -0.15582245588302612, 0.1626814901828766, 0.10093031078577042, -0.1950170397758484, -0.8363300561904907, 0.7906182408332825, -0.4894292652606964, -0.8098060488700867, -0.23170635104179382, -0.6566433906555176, -0.4301184415817261, 0.273093581199646, 0.201336070895195, 0.48900002241134644, 0.07461801916360855, 0.06130797043442726, 0.7287079095840454, -0.18574440479278564, 0.1043437197804451, 0.19572316110134125, -0.516646146774292, -0.20248918235301971, 0.7811442017555237, -0.1871793121099472, 0.5214748978614807, 0.2954692840576172, -0.002240400295704603, -0.16970688104629517, -0.6421592831611633, -0.31840407848358154, -0.06271172314882278, -1.0943864583969116, -0.44881176948547363, -0.48088574409484863, -0.4144342541694641, -0.3861692547798157, -0.0821203663945198, -0.29571738839149475, -0.3168930411338806, 0.26468268036842346, 0.04699021950364113, 0.2390676587820053, 0.8900622129440308, 0.19463695585727692, -0.33058837056159973, -0.5178266763687134, 0.27998408675193787, 0.4220980405807495, 0.721288800239563, -0.08520704507827759, -0.4586256742477417, 0.016541970893740654, -0.19484098255634308, -0.0898635983467102, -0.7836266756057739, -0.04035648703575134, -0.08675982803106308, 0.573021650314331, 0.20679526031017303, 0.14047342538833618, 0.5083739161491394, -0.5237376689910889, 0.7075612545013428, 0.10201971232891083, -1.27241051197052, 0.5213779807090759, -0.23916973173618317, 0.4319523870944977, 0.5314924120903015, -0.09890693426132202, -0.25072377920150757, -0.7367724776268005, -0.28873705863952637, -0.40801694989204407, 0.41998234391212463, 0.35858964920043945, 0.07181727886199951, -0.022867146879434586, 0.3200059235095978, -0.0021483127493411303, 0.17125646770000458, -0.7779877781867981, -0.2676369547843933, 0.16138477623462677, -0.24549199640750885, 0.16583193838596344, -0.040109071880578995, -0.1389283537864685, -0.2871254086494446, 0.2914230227470398, -0.32624316215515137, 0.5495203137397766, 0.18621551990509033, -0.2879560887813568, 0.07635463029146194, 0.21167804300785065, 0.5913708209991455, 1.0529789924621582, -0.06650637090206146, 0.2521677613258362, 0.0073411655612289906, -0.24843384325504303, 0.22223205864429474, -0.16084493696689606, -0.2126346379518509, -0.07847674936056137, 0.7528672218322754, 0.5408514738082886, 0.21370694041252136, -1.119824767112732, 0.7907344698905945, -0.09255854040384293, -0.5544718503952026, -0.3950348496437073, 0.6284313797950745, 0.1850101351737976, 0.2007625848054886, 0.2544844448566437, 0.26098665595054626, 0.14516867697238922, -0.48776426911354065, 0.3250975012779236, 0.24558313190937042, -0.4439125061035156, -0.10604989528656006, 0.6309963464736938, -0.07423476129770279, -0.3150031864643097, 0.48243391513824463, -0.41667523980140686, -0.8158835172653198, 0.9310898780822754, 0.49161139130592346, 0.9452744126319885, 0.1997826248407364, -0.030054228380322456, 0.13811573386192322, 0.4990769326686859, -0.10552164912223816, 0.6069242358207703, -0.03399878740310669, -0.6746423244476318, -0.8658480644226074, -0.427532821893692, -0.5706382393836975, -0.00310344947502017, -0.601342499256134, 0.22151009738445282, -0.6290937066078186, 0.08732222020626068, -0.16058120131492615, -0.19689641892910004, -0.83650803565979, 0.04491521790623665, 0.32836952805519104, 1.3026889562606812, -0.400124192237854, 0.8804871439933777, 0.6717158555984497, -0.21403226256370544, -1.0239273309707642, 0.08009452372789383, 0.08545798808336258, -0.9929828643798828, 0.7910165190696716, 0.4022268056869507, -0.2103217989206314, -0.12134850025177002, -0.6577479839324951, -0.6534982919692993, 0.8745160698890686, 0.45775657892227173, -0.49663397669792175, 0.022304005920886993, -0.0006058901199139655, 0.4474579691886902, -0.4918007552623749, 0.3507342040538788, 0.5137959718704224, 0.4596036672592163, 0.06911597400903702, -0.7654166221618652, 0.23077741265296936, -0.3579689860343933, 0.1660245656967163, 0.10664491355419159, -0.4291292428970337, 0.8005515336990356, -0.5762173533439636, -0.26043322682380676, 0.14101840555667877, 0.20388883352279663, 0.5691413879394531, 0.07687722146511078, 0.5669515132904053, 0.5534110069274902, 0.5244469046592712, -0.21252623200416565, 1.3006563186645508, -0.3913171887397766, 0.20699149370193481, 1.0120965242385864, -0.7498358488082886, 0.8665437698364258, 0.36142411828041077, -0.5286692380905151, 0.5946229100227356, 0.3539711833000183, -0.07632364332675934, 0.3775460422039032, 0.7827262878417969, 0.0981859341263771, -0.4340471923351288, 0.27165672183036804, -0.3563061058521271, 0.5802179574966431, 0.29533442854881287, -0.20993508398532867, 0.09001743048429489, -0.2951349914073944, -0.09228932857513428, 0.14320412278175354, -0.0982811227440834, 0.5524874329566956, 0.28784096240997314, -1.0361604690551758, 0.75545734167099, -0.06108587607741356, 0.4141586720943451, -0.6017580628395081, -0.27271178364753723, -0.3208760619163513, 0.4591153860092163, -0.14917729794979095, -0.8024551868438721, 0.46132680773735046, 0.17766959965229034, -0.2003345489501953, -0.3867163062095642, 0.5633484721183777, -0.147039994597435, -0.3252768814563751, 0.5110446214675903, 0.5387250781059265, 0.10780932009220123, -0.2656898498535156, -0.7501654624938965, 0.4854109287261963, 0.08767654746770859, -0.16763560473918915, 0.16045205295085907, 0.414249986410141, 0.15245626866817474, 0.9449153542518616, 0.6877238154411316, 0.2371298223733902, 0.03850198909640312, 0.28690996766090393, 0.8732157349586487, -0.6828652024269104, -0.43479520082473755, -0.9979839324951172, 0.04684869945049286, 0.02139766700565815, -0.25395482778549194, 0.6658482551574707, 0.5698801279067993, 0.9797165989875793, -0.04718455672264099, 0.9159004092216492, -0.1946938931941986, 0.3900478780269623, -0.7812492251396179, 0.6852454543113708, -0.3580736517906189, 0.5324043035507202, -0.19533687829971313, -0.9069017171859741, -0.4801660180091858, 0.5410232543945312, -0.2624932527542114, 0.08918355405330658, 1.0267407894134521, 0.8806837797164917, 0.21751469373703003, 0.022485895082354546, 0.47265246510505676, 0.13668985664844513, 0.39846405386924744, 1.0181894302368164, 1.1943752765655518, -0.23658092319965363, 0.5929463505744934, 0.03294789418578148, -0.27481359243392944, 0.08450142294168472, -0.8146166205406189, -1.0596016645431519, -0.17830289900302887, -0.28657111525535583, -0.3857905864715576, -0.08266256749629974, 0.7456973791122437, 0.7385434508323669, -0.9853578805923462, -0.4032208025455475, -0.4990708827972412, 0.45713290572166443, -0.4106229245662689, -0.30391553044319153, -0.012208376079797745, -0.5880666971206665, -0.3462880253791809, 0.4336424767971039, 0.43941742181777954, -0.46762505173683167, -0.5266254544258118, -0.22436371445655823, 0.31046369671821594, 0.08456167578697205, 0.46587246656417847, -0.007364266086369753, -0.8812078237533569, -0.2118324190378189, 0.16203895211219788, -0.32599788904190063, -0.10892344266176224, 1.2390458583831787, -0.6873879432678223, 0.29861316084861755, 0.5698387622833252, 0.8719634413719177, 0.11070827394723892, -0.49469664692878723, 0.8749784231185913, -0.35511514544487, -0.14437532424926758, 0.32612842321395874, 0.4492073059082031, 0.03002222254872322, -0.18785721063613892, 0.618270218372345, 0.21393486857414246, -0.5317772030830383, -0.9367440342903137, 0.40504762530326843, -0.5736083388328552, -0.4963729679584503, 1.2560367584228516, -0.303822785615921, -0.23363305628299713, 0.013058728538453579, 0.18448084592819214, -0.24098896980285645, -0.1379086673259735, 0.5345355272293091, 0.7266300916671753, -0.1452050805091858, -0.26107585430145264, -0.7486132383346558, 0.5135047435760498, 0.4355265498161316, -0.8936493396759033, 0.13077020645141602, 0.39406758546829224, 0.3355996906757355, 0.0016947980038821697, 0.7237806916236877, -0.22507202625274658, 0.3254255950450897, 0.08347423374652863, 0.15340349078178406, -0.09744367003440857, -0.24036523699760437, -0.3820490837097168, 0.09805777668952942, 0.25617527961730957, 0.09682350605726242 ]
http://arxiv.org/abs/2402.09654v2
http://arxiv.org/pdf/2402.09654v2
GPT-4's assessment of its performance in a USMLE-based case study
2024-02-15T01:38:50
2024-03-26T20:12:18
Uttam Dhakal, Aniket Kumar Singh, Suman Devkota, Yogesh Sapkota, Bishal Lamichhane, Suprinsa Paudyal, Chandra Dhakal
cs.AI
cs.AI, cs.CL, cs.HC, cs.MA, stat.ML
This study investigates GPT-4's assessment of its performance in healthcare applications. A simple prompting technique was used to prompt the LLM with questions taken from the United States Medical Licensing Examination (USMLE) questionnaire and it was tasked to evaluate its confidence score before posing the question and after asking the question. The questionnaire was categorized into two groups-questions with feedback (WF) and questions with no feedback(NF) post-question. The model was asked to provide absolute and relative confidence scores before and after each question. The experimental findings were analyzed using statistical tools to study the variability of confidence in WF and NF groups. Additionally, a sequential analysis was conducted to observe the performance variation for the WF and NF groups. Results indicate that feedback influences relative confidence but doesn't consistently increase or decrease it. Understanding the performance of LLM is paramount in exploring its utility in sensitive areas like healthcare. This study contributes to the ongoing discourse on the reliability of AI, particularly of LLMs like GPT-4, within healthcare, offering insights into how feedback mechanisms might be optimized to enhance AI-assisted medical education and decision support.
[ -0.20039312541484833, -0.6657120585441589, 0.933410108089447, -0.0180821493268013, -0.24028486013412476, -0.046538203954696655, 0.181173175573349, -0.5074336528778076, -0.18332521617412567, -0.08857887238264084, -0.38722851872444153, -0.6138725280761719, -0.46886202692985535, 0.5463706851005554, -0.050280604511499405, 0.8774476051330566, -0.155411958694458, 0.49522295594215393, -0.2938935160636902, 0.016709035262465477, -0.568034827709198, -0.7693616151809692, -0.8428782820701599, -0.39489856362342834, 0.5249447822570801, 0.22020943462848663, 0.3878539800643921, 0.05443562567234039, 0.8082184791564941, 0.32239478826522827, 0.3240642547607422, -0.39321690797805786, -0.3082827627658844, 0.03820343315601349, 0.026561686769127846, -0.655546247959137, -0.542218804359436, 0.5878186821937561, 0.5833304524421692, 0.2539040148258209, -0.3413882553577423, 0.23453958332538605, 0.11634934693574905, 0.3970377743244171, -0.29994747042655945, 0.08497529476881027, -0.23926189541816711, 0.08165803551673889, -0.06482313573360443, -0.4587830603122711, -0.21112962067127228, -0.6849902868270874, 0.44397997856140137, -0.34623274207115173, 0.23176975548267365, -0.024205796420574188, 0.7991604208946228, 0.4858365058898926, -0.1924116462469101, -0.258832722902298, -0.560411810874939, 0.44303664565086365, -0.7452162504196167, 0.11273299902677536, 0.37146976590156555, 0.30218368768692017, 0.07298245280981064, -0.8841423392295837, -0.31743791699409485, -0.6037611365318298, 0.15016505122184753, 0.4404487609863281, 0.14470288157463074, 0.2707471251487732, 0.23004963994026184, 0.4075705111026764, -0.5425657629966736, 0.02160150371491909, -0.3255378305912018, -0.3228265345096588, 0.4890690743923187, 0.0971076637506485, 0.13150307536125183, 0.11913640797138214, -0.4393780529499054, 0.06484976410865784, -0.6471147537231445, 0.14112907648086548, 0.022595597431063652, -0.20195633172988892, 0.14240612089633942, 0.4042757451534271, 0.04207028076052666, 0.39057326316833496, 0.0797266960144043, -0.28053978085517883, 0.33203163743019104, -0.4632841944694519, -0.3719084858894348, -0.14386600255966187, 0.7295960187911987, 0.6034883260726929, -0.027584228664636612, -0.08027275651693344, -0.29704636335372925, 0.26486316323280334, 0.591830313205719, -0.8230186104774475, -0.07360552251338959, 0.24541783332824707, -0.39029836654663086, -0.33445197343826294, 0.22107163071632385, -0.48243600130081177, -0.05372124910354614, -0.12667791545391083, 0.7189725041389465, -0.3674740195274353, -0.060923442244529724, -0.24048183858394623, -0.027573883533477783, 0.466524600982666, 0.35197028517723083, -0.6346062421798706, 0.5770941972732544, 0.5078117847442627, 0.7704973220825195, -0.6465162038803101, -0.17843273282051086, -0.29703694581985474, -0.19760151207447052, -0.42095261812210083, 0.596245527267456, -0.22755929827690125, -0.8296531438827515, -0.2038634866476059, 0.053316380828619, -0.14613406360149384, -0.7473440766334534, 0.5153583884239197, -0.41002607345581055, 0.3234502077102661, -0.383071631193161, -0.7462980151176453, -0.23445133864879608, 0.5673720836639404, -0.4233958125114441, 0.7810782194137573, 0.41296204924583435, -0.6119338274002075, 0.6866441369056702, -0.7748201489448547, -0.10565793514251709, 0.21602143347263336, -0.6982373595237732, -0.5859622359275818, 0.1334414780139923, -0.0011534050572663546, 0.38192257285118103, -0.12952913343906403, 0.03022906742990017, -0.03884221613407135, -0.8747005462646484, 0.23847638070583344, -0.7038142085075378, 0.228263720870018, -0.20618648827075958, -0.46046116948127747, 0.032220929861068726, -0.5071941018104553, 0.25483912229537964, -0.04790893942117691, -0.4629865288734436, 0.04542750120162964, -0.4519530236721039, -0.45710375905036926, 0.08754503726959229, 0.27606216073036194, -0.5063689351081848, 0.37307071685791016, -0.09132754802703857, 0.12543557584285736, 0.6758367419242859, 0.5334801077842712, 0.18958918750286102, -0.4559227228164673, 1.043241262435913, -0.0896126925945282, 0.660785436630249, 0.3166402578353882, -0.8926855325698853, -0.24004396796226501, 0.18763360381126404, 0.5348424911499023, 0.5431397557258606, -0.802675724029541, -0.0856332778930664, 0.15042664110660553, -0.08431560546159744, -0.6812195181846619, 0.0734977051615715, 0.3490222990512848, 0.7192046046257019, 0.35340508818626404, -0.6135814785957336, -0.06013626605272293, -0.7412864565849304, 0.08853407949209213, -0.5380792021751404, -0.09038841724395752, 0.44151759147644043, 0.3673587739467621, -0.2463662326335907, 0.4865778386592865, -0.2645963132381439, -0.11582987010478973, -0.11721333116292953, 0.21558605134487152, 0.21631108224391937, 0.13066081702709198, 0.5213592052459717, -0.621376097202301, -0.5138671398162842, -0.3431777358055115, -0.6130836606025696, -0.0666458010673523, 0.0627252534031868, 0.12585939466953278, 0.3286210894584656, 0.12290195375680923, -0.4660436809062958, 0.6713125109672546, 0.48259201645851135, -0.18719203770160675, 0.7302837371826172, -0.41463932394981384, 0.7093919515609741, -0.5501899719238281, 0.09735007584095001, -0.24465234577655792, 0.08314164727926254, -0.49972984194755554, -0.2653450667858124, -0.03543145954608917, 0.3665953576564789, -0.24710899591445923, 0.20819301903247833, -0.3539755046367645, -0.17852602899074554, -0.12677940726280212, -0.050068002194166183, 0.021461160853505135, 0.39386966824531555, -0.2100931853055954, 1.0661557912826538, 0.46417537331581116, -0.5356857776641846, 0.2602156102657318, 0.011013293638825417, 0.058446574956178665, 0.9638850688934326, -0.7072371244430542, 0.4046957194805145, 0.37340715527534485, -0.08084055781364441, -0.8746788501739502, -0.2875824272632599, 0.23082254827022552, -0.4852120578289032, 0.6584314703941345, -0.020974881947040558, -0.21380041539669037, -0.6646433472633362, -0.4976576566696167, 0.0779072642326355, 0.39426347613334656, -0.05107551068067551, 0.2975577414035797, 0.03230205550789833, -0.19784140586853027, -0.4575749337673187, -0.6135294437408447, -0.07093911617994308, -0.2735532224178314, -0.3692057132720947, 0.18867075443267822, -0.373500257730484, -0.25870993733406067, -0.09207763522863388, -0.31967607140541077, -0.4107312858104706, 0.00885863695293665, 0.3699739873409271, 0.6205373406410217, -0.1532876342535019, 0.039264190942049026, -0.1650984138250351, -0.13759206235408783, 0.2673267722129822, 0.041947461664676666, 0.10187830775976181, -0.2729356586933136, -0.6199935078620911, -0.9514353275299072, 0.18696434795856476, 0.5294724106788635, 0.3483225107192993, 0.3855264186859131, 0.38603857159614563, -0.009986131452023983, 0.37708932161331177, -0.5656141638755798, -0.5899006128311157, -0.4478863775730133, 0.25687170028686523, -0.26522985100746155, -0.9100356101989746, 0.2083253711462021, -0.042294979095458984, 0.06552126258611679, 0.4471626579761505, 0.7510647177696228, -0.310919851064682, 0.7730184197425842, 0.4010675251483917, -0.0981321632862091, 0.09814640134572983, -0.19595089554786682, -0.1356387585401535, -0.5749987959861755, -0.2721438407897949, -0.2756226062774658, -0.25301986932754517, -0.5215299725532532, -0.5041931867599487, 0.6823770999908447, -0.1397714912891388, -0.18499131500720978, -0.36466243863105774, -0.5639935731887817, 0.12746508419513702, 0.5547692775726318, 0.1263533979654312, 0.4776533544063568, -0.3990233540534973, -0.3741442561149597, -0.04023510217666626, -0.540749728679657, -0.47631341218948364, 1.3534961938858032, 0.4383220970630646, 0.5363056063652039, 0.15700854361057281, 0.900836169719696, 0.20926538109779358, 0.7681758999824524, -0.8052968382835388, 0.3331751525402069, 0.23153959214687347, -0.4793202877044678, -0.44946950674057007, -0.513350784778595, -0.902854859828949, 0.0016187407309189439, -0.04367617890238762, -0.4441407322883606, -0.3596811592578888, 0.20776312053203583, -0.6791173219680786, -0.14381462335586548, -0.8132458329200745, 0.5398269891738892, -0.5324327945709229, -0.3001260459423065, 0.1395103484392166, -0.7382861971855164, 0.15159377455711365, -0.37245431542396545, -0.11692257225513458, 0.08487728983163834, -0.2664746642112732, 0.5314661860466003, -0.5700010657310486, 0.5673646926879883, -0.3974815011024475, 0.07566116750240326, 0.42436838150024414, -0.2927784025669098, 0.2437669336795807, 0.339817076921463, -0.16153661906719208, 0.318385511636734, 0.17866215109825134, -0.09702068567276001, -0.8294164538383484, 0.6220451593399048, -0.8298095464706421, -0.780483067035675, -0.5674570202827454, -0.2675156593322754, -0.6662281155586243, 0.058575503528118134, 0.5047567486763, 0.39452478289604187, -0.234388530254364, -0.08486025035381317, 0.4249802827835083, -0.12217476218938828, 0.38072049617767334, 0.6819034218788147, -0.026857491582632065, -0.23583067953586578, 0.324093759059906, 0.3599495589733124, 0.27737388014793396, 0.09015214443206787, 0.24626608192920685, -0.7476298213005066, -0.7299140691757202, -0.5786780118942261, 0.30487313866615295, -0.345060795545578, 0.0035258259158581495, -0.03499980643391609, -0.3592468798160553, -0.07838361710309982, 0.16585667431354523, -0.1738082617521286, -0.1803978830575943, -0.23977874219417572, -0.40230870246887207, 0.3856291174888611, 1.2479603290557861, 0.1263868361711502, 0.11099656671285629, -0.5698264241218567, -0.0775693953037262, 0.44653046131134033, 0.5855123996734619, -0.4348990321159363, -0.4435037076473236, -0.026583101600408554, -0.2944174110889435, -0.5373595952987671, -0.9552291631698608, -0.15763993561267853, 0.01704118400812149, 0.7926063537597656, 0.3246634900569916, -0.18402041494846344, 0.2986960709095001, -0.5700525641441345, 1.2742210626602173, 0.22630606591701508, -0.5026004314422607, 0.45688751339912415, -0.1844460517168045, 0.21693934500217438, 0.7534241676330566, 0.5123096704483032, 0.10354674607515335, -0.43761712312698364, -0.7577778697013855, -0.5871587991714478, 0.25541362166404724, 0.31416869163513184, -0.1144515722990036, 0.07100962847471237, 0.942477285861969, -0.09033583849668503, 0.32899582386016846, -0.542144238948822, -0.3937508165836334, -0.21920736134052277, 0.01687631756067276, 0.029490076005458832, -0.3417971730232239, -0.2220124900341034, -0.24529482424259186, 0.42915046215057373, -0.001556388451717794, 0.4578440487384796, 0.42767757177352905, 0.29139429330825806, 0.18355311453342438, 0.27115920186042786, 0.7046060562133789, 0.8248082399368286, -0.324322909116745, -0.05242979899048805, 0.28766196966171265, -0.9472730755805969, 0.38405337929725647, -0.1265365481376648, 0.07439736276865005, -0.01694449782371521, 0.2883969247341156, 0.3123241066932678, -0.07982970029115677, -0.1540461629629135, 0.7969779372215271, -0.44202035665512085, -0.5345759391784668, -0.11200789362192154, 0.2366282045841217, -0.12595361471176147, 0.009574387222528458, 0.32672786712646484, -0.016957757994532585, 0.41129666566848755, -0.3231576085090637, 0.6070988774299622, 0.18962959945201874, -0.6782798767089844, -0.375324010848999, 0.598177433013916, 0.1325918436050415, -0.07107707113027573, 0.4973289966583252, -0.036343976855278015, -0.26999545097351074, 0.515842616558075, 0.44334161281585693, 0.5598687529563904, -0.6170085668563843, 0.2934720814228058, 0.3088982403278351, 0.2199746072292328, -0.16973428428173065, 0.5733959078788757, 0.15228138864040375, -0.523252010345459, -0.4611501097679138, -0.22233961522579193, -0.7218202948570251, 0.257933646440506, -0.9543495774269104, -0.24447044730186462, -0.6688416004180908, -0.7692690491676331, -0.658524215221405, 0.33234894275665283, -0.7073799967765808, 0.5571912527084351, -0.17122919857501984, 0.6831467151641846, -0.4284948706626892, 0.6763639450073242, 0.6002810597419739, -0.6679074168205261, -1.4894945621490479, 0.2634689509868622, 0.2634563446044922, -0.9615837931632996, 0.23368854820728302, 0.20173396170139313, -0.24731773138046265, -0.12758204340934753, -0.38200435042381287, -0.547288715839386, 1.3961498737335205, 0.28442975878715515, -0.36683622002601624, 0.27172377705574036, 0.09208964556455612, 0.7213535308837891, -0.10477595031261444, 0.5367597341537476, 0.6593364477157593, 0.36607635021209717, 0.26136693358421326, -1.112455129623413, 0.05468391627073288, -0.2868020832538605, 0.005991453770548105, -0.17553311586380005, -0.6033506989479065, 0.6112785339355469, -0.32566067576408386, 0.11978044360876083, 0.07488202303647995, 0.16319265961647034, 0.3778630197048187, 0.3800363838672638, 0.35660097002983093, 0.46942365169525146, 1.0436359643936157, -0.13794031739234924, 1.3754857778549194, -0.25974661111831665, 0.2418234795331955, 0.9107428789138794, -0.3434203863143921, 0.8494126200675964, 0.5431264638900757, -0.524590015411377, 0.4577803611755371, 0.7149953842163086, 0.0879392921924591, 0.4540741741657257, 0.23661121726036072, -0.4544055759906769, 0.35139214992523193, 0.1790829449892044, -0.48291391134262085, 0.42950063943862915, 0.2328062653541565, -0.32641053199768066, 0.16174806654453278, -0.29504498839378357, -0.16114698350429535, -0.44277700781822205, -0.30397531390190125, 0.7955142855644226, 0.2731504440307617, -0.7394391894340515, 0.4199337661266327, -0.42722582817077637, 0.3794749081134796, -0.6408538818359375, -0.32531672716140747, -0.3533470630645752, -0.14509226381778717, -0.20173989236354828, -0.6441007256507874, 0.219953715801239, -0.060754552483558655, -0.13814041018486023, 0.033038366585969925, 0.27410072088241577, 0.05396168306469917, -0.13634002208709717, 0.24976322054862976, 0.4942379295825958, 0.43431374430656433, 0.14406141638755798, -0.7911155819892883, -0.0924561619758606, 0.03639853745698929, -0.35135772824287415, 0.2558634877204895, 0.356712281703949, 0.0824558436870575, 0.5509002804756165, 0.4703787565231323, 0.2710902690887451, -0.04605022817850113, 0.39248791337013245, 0.5358256697654724, -0.4285902678966522, -0.273531049489975, -0.8520443439483643, 0.2566089332103729, -0.0460912324488163, -0.28512027859687805, 0.7151347398757935, 0.25935423374176025, 0.2606469690799713, 0.138138547539711, 0.8619558811187744, 0.3883138597011566, 0.5822000503540039, -0.560453474521637, 0.6652727723121643, -0.5123202204704285, 0.45783478021621704, -0.3481452763080597, -0.6005656123161316, -0.3679044842720032, 0.6610080003738403, -0.2929309010505676, 0.46830618381500244, 0.8621701598167419, 0.6427702307701111, 0.5739678144454956, 0.16771481931209564, 0.6524733304977417, 0.432759165763855, 0.2611069977283478, 0.4446958601474762, 0.8456411361694336, -0.16268542408943176, 0.3177585303783417, 0.01077598799020052, -0.5409085154533386, -0.022970762103796005, -0.6374834775924683, -0.6815251111984253, -0.10257336497306824, -0.2710893154144287, -0.38312602043151855, -0.06597194075584412, 0.4881787598133087, 0.5942195057868958, -0.7214922904968262, 0.12878894805908203, 0.10630253702402115, -0.2318737953901291, -0.037119146436452866, -0.1751660704612732, 0.5210989117622375, -0.22321410477161407, -0.45836400985717773, 0.3573855459690094, 0.5396762490272522, 0.303475946187973, -0.20679326355457306, -0.176507368683815, 0.2296600490808487, -0.0644286498427391, 0.10519097000360489, -0.022398382425308228, -0.6662873029708862, -0.44003763794898987, 0.17616425454616547, -0.23638644814491272, 0.29403799772262573, 0.6000047922134399, -0.48430103063583374, 0.42791616916656494, -0.08417308330535889, 0.5290325880050659, 0.33981648087501526, 0.4341592788696289, 0.8248352408409119, -0.6133032441139221, -0.1672927439212799, 0.3229905962944031, 0.37974900007247925, 0.2741159498691559, -0.7473562955856323, 0.556348443031311, 0.4266413748264313, -0.9980155229568481, -0.2078356295824051, -0.162122443318367, -0.7849369049072266, 0.07426249980926514, 1.0848807096481323, -0.39484739303588867, 0.21479220688343048, -0.4608887732028961, -0.2565511465072632, 0.04298420995473862, -0.4252883493900299, 0.6253840923309326, 0.7366229295730591, -0.826828122138977, -0.0876065269112587, -0.9502409100532532, 0.7645856142044067, 0.3122429847717285, -0.7442335486412048, -0.7841377258300781, 0.4268181324005127, 0.7751457691192627, 0.1259513944387436, 1.3177344799041748, -0.3170865774154663, 0.5134033560752869, -0.07636167854070663, -0.18452708423137665, 0.09572982043027878, -0.088473841547966, -0.5442447662353516, 0.3937670886516571, 0.4148756265640259, -0.4352923631668091 ]
http://arxiv.org/abs/2402.09642v1
http://arxiv.org/pdf/2402.09642v1
Answer is All You Need: Instruction-following Text Embedding via Answering the Question
2024-02-15T01:02:41
2024-02-15T01:02:41
Letian Peng, Yuwei Zhang, Zilong Wang, Jayanth Srinivasa, Gaowen Liu, Zihan Wang, Jingbo Shang
cs.CL
cs.CL
This work aims to build a text embedder that can capture characteristics of texts specified by user instructions. Despite its tremendous potential to deploy user-oriented embeddings, none of previous approaches provides a concrete solution for it. This paper offers a new viewpoint, which treats the instruction as a question about the input text and encodes the expected answers to obtain the representation accordingly. Intuitively, texts with the same (implicit) semantics would share similar answers following the instruction, thus leading to more similar embeddings. Specifically, we propose InBedder that instantiates this embed-via-answering idea by only fine-tuning language models on abstractive question answering tasks. InBedder demonstrates significantly improved instruction-following capabilities according to our proposed instruction awareness tests and instruction robustness tests, when applied to both large language models (LLMs) (e.g., llama-2-7b) and smaller encoder-based LMs (e.g., roberta-large). Additionally, our qualitative analysis of clustering outcomes, achieved by applying different instructions to the same corpus, demonstrates a high degree of interpretability.
[ -0.2320287674665451, -0.8669026494026184, 0.9441824555397034, -0.06612882763147354, -0.06300817430019379, 0.007455785758793354, 0.05387945473194122, -0.2139730006456375, 0.02406073361635208, 0.622105062007904, -0.4674048125743866, -0.6435480117797852, -0.7032735347747803, -0.057634565979242325, -0.5119511485099792, 0.9606844186782837, -0.26713740825653076, 0.03440602123737335, -0.6600258350372314, 0.048417653888463974, -0.5377370119094849, -0.3050572872161865, -0.21711769700050354, 0.025039952248334885, 0.31504687666893005, 0.6605066061019897, 0.6772724390029907, 0.8505377769470215, 0.09354203939437866, 0.21074260771274567, 0.015082858502864838, 0.03056267835199833, -0.22108253836631775, 0.14367622137069702, 0.008321401663124561, -0.5267028212547302, -0.017519842833280563, -0.19729526340961456, 0.7006385326385498, 0.5462287664413452, -0.004370309412479401, 0.11410319060087204, 0.4150547981262207, 0.06570781767368317, -0.5337780714035034, -0.053267378360033035, -0.28603529930114746, -0.11436523497104645, 0.26827773451805115, -0.21076712012290955, -0.5405027866363525, -0.7670916318893433, 0.20865194499492645, -0.32185348868370056, -0.12364961951971054, 0.013409916311502457, 0.5377712845802307, 0.39378345012664795, -0.2902919054031372, -0.824245274066925, -0.4192390441894531, 0.6365525126457214, -0.6401829719543457, 0.3047999441623688, 0.5238798260688782, 0.33050474524497986, 0.10964807868003845, -0.6293631792068481, -0.46060070395469666, 0.07188841700553894, -0.32593193650245667, 0.22767877578735352, 0.013279391452670097, 0.06002781167626381, -0.05544739589095116, 0.19270014762878418, -0.5297347903251648, -0.08754100650548935, -0.16241806745529175, 0.07279704511165619, 0.23009377717971802, 0.1608862429857254, 0.5158114433288574, -0.03330812603235245, -0.4452888071537018, -0.037537507712841034, -0.5484680533409119, 0.17198581993579865, 0.14222314953804016, -0.10385122895240784, -0.08103741705417633, 0.6872211694717407, 0.12972217798233032, 0.5848968625068665, 0.07126111537218094, 0.36506187915802, -0.02389487810432911, -0.18717148900032043, 0.06597206741571426, 0.2276018261909485, 0.46977296471595764, 0.22315344214439392, 0.1776927262544632, -0.2893080413341522, -0.16644683480262756, -0.20994722843170166, 0.31675225496292114, -1.1051479578018188, -0.1835496574640274, 0.3087122440338135, -0.3538852334022522, -0.20902451872825623, 0.19104592502117157, -0.7473446130752563, -0.17996178567409515, 0.017740681767463684, 0.6469534039497375, -0.5180550217628479, 0.2202020287513733, 0.11634043604135513, -0.08142583072185516, 0.7042657136917114, 0.36618226766586304, -1.1008434295654297, 0.5118762850761414, 0.8965086340904236, 0.6424973011016846, -0.02441282570362091, -0.12755125761032104, -0.6371465921401978, 0.342296838760376, -0.30377161502838135, 0.8040725588798523, -1.0885558128356934, -0.4963916540145874, 0.15627184510231018, 0.007986946031451225, -0.09153632819652557, -0.23767000436782837, 0.0026413165032863617, -0.7344915866851807, 0.45485052466392517, -0.26436132192611694, -1.1886401176452637, -0.2899168133735657, 0.42518672347068787, -0.3009217381477356, 0.9096611142158508, -0.08975385874509811, -0.6957465410232544, -0.1399589627981186, -0.6248785257339478, -0.14259938895702362, -0.033246710896492004, -0.3572317361831665, -0.15817908942699432, 0.1705983430147171, 0.30359071493148804, 0.46101418137550354, -0.01741473376750946, -0.3733779788017273, -0.1933538019657135, -0.7263196706771851, 0.3194529414176941, -0.41243255138397217, 0.6386182308197021, -0.22499822080135345, -0.1746387481689453, 0.0526137612760067, -0.4688522219657898, 0.24362559616565704, -0.0832880437374115, -0.4273450970649719, -0.4737548530101776, 0.0888277217745781, -0.2993232011795044, -0.1974010467529297, 0.6858515739440918, -0.73332279920578, 0.1983739733695984, -0.37304210662841797, 0.21460995078086853, 0.8424740433692932, 0.443729430437088, 0.6083623766899109, -0.24807661771774292, 0.737756609916687, -0.2579013705253601, -0.06749199330806732, -0.6183170080184937, -0.6933887600898743, -0.6377751231193542, -0.11872148513793945, 0.22047661244869232, 0.8605355620384216, -0.4716617166996002, 0.15987251698970795, -0.14301010966300964, -0.21709461510181427, -0.888819694519043, 0.18121238052845, 0.7333124876022339, 0.5094902515411377, 0.5094572305679321, 0.05472196638584137, -0.23597395420074463, -0.6630792617797852, -0.14516714215278625, -0.1488759070634842, -0.09706354141235352, 0.33284515142440796, 0.43170514702796936, -0.24597163498401642, 0.6917543411254883, -0.8243945240974426, 0.31337177753448486, -0.1857973039150238, -0.03986561670899391, -0.09480202198028564, 0.48871904611587524, 0.3417789340019226, -0.5712935328483582, -0.8070644736289978, 0.21371294558048248, -0.8880199790000916, 0.11574039608240128, 0.1739087551832199, -0.30593937635421753, -0.13340604305267334, 0.8210897445678711, -0.31719762086868286, 0.4363899528980255, 0.47055596113204956, -0.19577808678150177, 0.181674063205719, -0.32857954502105713, 0.24699938297271729, -1.287278413772583, -0.38613343238830566, -0.2922614812850952, -0.20904819667339325, -0.5516604781150818, 0.31679412722587585, 0.18626193702220917, -0.13416144251823425, -0.3735121488571167, 0.3988848030567169, -0.36117592453956604, -0.06860833615064621, -0.261111319065094, 0.15666361153125763, 0.11424779891967773, 0.48905518651008606, -0.07443614304065704, 1.0703495740890503, 0.45250895619392395, -0.4917888343334198, 0.06378445029258728, 0.6432704925537109, -0.23452454805374146, 0.33701831102371216, -1.0021240711212158, 0.5338484644889832, -0.49230533838272095, -0.01989094354212284, -1.3183053731918335, -0.1746061146259308, 0.38844412565231323, -0.47168806195259094, 0.24508431553840637, -0.4094657301902771, -0.5261887311935425, -0.0313674733042717, -0.4808935523033142, 0.21464765071868896, 0.8586536645889282, -0.5667429566383362, 0.7294254302978516, 0.14376045763492584, -0.3283414840698242, -0.4875248074531555, -0.6659896969795227, -0.24141795933246613, -0.10165947675704956, -0.3582719564437866, 0.23781831562519073, -0.3220665454864502, 0.05718216300010681, 0.390176922082901, -0.05188341811299324, -0.2918369174003601, 0.008589116856455803, 0.2543626129627228, 0.23186492919921875, -0.3949337601661682, 0.239545077085495, 0.6178282499313354, -0.14796672761440277, 0.1603810340166092, -0.39846187829971313, 0.3370884358882904, -0.07255244255065918, -0.47316744923591614, -0.5560166239738464, 0.8942416310310364, 0.1939706653356552, -0.47296008467674255, 0.6543918251991272, 0.31501835584640503, -0.3541845381259918, -0.131468266248703, -0.1750265657901764, -0.27265679836273193, -0.5087750554084778, 0.3125927448272705, -0.30973780155181885, -0.9490419626235962, 0.2602919638156891, -0.0006182934157550335, 0.475063681602478, -0.10769952833652496, 0.40104034543037415, -0.7090660929679871, 1.201475977897644, 0.8181811571121216, 0.16742712259292603, 0.36088496446609497, -0.0605044886469841, 0.0344739630818367, -0.680689811706543, -0.16427360475063324, -0.5791996717453003, -0.26583459973335266, -0.5350648164749146, -0.4379981458187103, 0.20702241361141205, -0.046079251915216446, -0.23230361938476562, 0.4353473484516144, -0.5187221169471741, 0.7137664556503296, 0.4993652105331421, 0.13503563404083252, -0.011904302053153515, -0.10253730416297913, 0.023372327908873558, 0.03729045391082764, -0.581194281578064, -0.9471390247344971, 0.8988039493560791, 0.22363388538360596, 0.8445839285850525, 0.11743105202913284, 1.0846441984176636, -0.009680863469839096, 0.5095335841178894, -0.6151409149169922, 0.5170584321022034, -0.2021697759628296, -0.428750604391098, -0.17799651622772217, -0.15051890909671783, -0.7321223616600037, 0.12607543170452118, -0.09181439876556396, -0.8924849629402161, 0.00024004734586924314, 0.3208360970020294, -0.48469874262809753, 0.039639927446842194, -1.0180256366729736, 0.9864616394042969, -0.025666028261184692, -0.06414023041725159, -0.03863852471113205, -0.5731119513511658, -0.09246677160263062, 0.30273711681365967, -0.02349792793393135, 0.34028711915016174, -0.5284779071807861, 0.5345097780227661, -0.1654510200023651, 1.0217708349227905, -0.2069733440876007, -0.0795292779803276, 0.5966252088546753, -0.07822854816913605, 0.4194282591342926, -0.05129975453019142, -0.07307638972997665, -0.45799559354782104, 0.17114129662513733, -0.39798375964164734, -1.1757515668869019, 0.9058235287666321, -0.7193100452423096, -0.7233725786209106, 0.011919044889509678, -0.4916054904460907, -0.2705807685852051, 0.11149165034294128, 0.08106318861246109, 0.817407488822937, -0.2547379434108734, 0.15237049758434296, 1.27599036693573, -0.233912393450737, 0.4534469544887543, 0.21282564103603363, -0.2503589987754822, -0.1921319216489792, 1.009701132774353, -0.03801362216472626, 0.27421578764915466, 0.9467149376869202, 0.26933833956718445, -0.48015540838241577, -0.4514223635196686, -0.8209061622619629, 0.1528293788433075, -0.8894209265708923, -0.05068182200193405, -0.9464895129203796, -0.1248144656419754, -0.0160025954246521, -0.5045817494392395, -0.08718249946832657, -0.1940975934267044, -0.5768747329711914, -0.2947802245616913, 0.43791061639785767, 0.9677531719207764, 0.6661561131477356, 0.4927516281604767, -0.9538828730583191, 0.134559765458107, 0.6310462355613708, 0.2475244104862213, 0.07392480969429016, -0.5346025824546814, -0.1896970123052597, 0.1910608410835266, -0.2583446502685547, -1.2460469007492065, -0.09373226761817932, 0.2074596881866455, 0.4629642069339752, 0.3199559450149536, 0.09034691751003265, 0.6333664655685425, -0.7010698318481445, 0.5201541781425476, -0.2673964202404022, -0.8729797005653381, 0.6776551604270935, 0.013259983621537685, 0.33836856484413147, 0.657633364200592, 0.726555347442627, -0.25636154413223267, -0.578627347946167, -0.38606002926826477, -0.5031018257141113, 0.43873003125190735, -0.019850153475999832, 0.7463115453720093, -0.20252572000026703, 0.550360918045044, 0.1680467575788498, 0.07659558951854706, -0.28118032217025757, -0.13019797205924988, -0.23517589271068573, -0.720147967338562, 0.07514433562755585, -0.3426349461078644, 0.03896946460008621, 0.019410543143749237, 0.3094526529312134, -0.0678878203034401, 0.4214271605014801, 0.035136155784130096, -0.27761244773864746, 0.3544749915599823, 0.37722668051719666, 0.19367581605911255, 0.33634576201438904, -0.17357592284679413, 0.19236943125724792, 0.3651800751686096, -0.44849953055381775, 0.09837613254785538, 0.028492746874690056, -0.42684468626976013, -0.12620054185390472, 0.3185514211654663, 0.46994227170944214, 0.5764522552490234, -0.784010648727417, 0.7909643650054932, -0.11396163702011108, 0.04792950674891472, -0.30698686838150024, 0.2861538529396057, 0.4050427973270416, 0.05840663984417915, 0.10848431289196014, -0.09234212338924408, 0.24660271406173706, -0.5365975499153137, 0.36721351742744446, 0.18738339841365814, -0.9916129112243652, -0.3060324192047119, 0.5359857678413391, 0.1675712913274765, -0.39365047216415405, 0.47197794914245605, -0.27627718448638916, -0.463502436876297, 0.5325466990470886, 0.7985162138938904, 0.6897506713867188, -0.21575205028057098, 0.19714084267616272, 0.12712720036506653, 0.22015395760536194, 0.2805658280849457, 0.5268186330795288, -0.22069035470485687, -0.5637778043746948, -0.42009449005126953, -0.22533077001571655, -0.6344401836395264, -0.5744874477386475, -0.857645571231842, 0.06772034615278244, -0.6578295230865479, 0.480532705783844, -0.14003662765026093, -0.26907914876937866, -0.49356016516685486, -0.009548038244247437, -0.07349264621734619, 0.9056025743484497, -0.6218692064285278, 0.6703923344612122, 1.0984857082366943, -0.35293903946876526, -0.6134743094444275, 0.2634934186935425, -0.0795498788356781, -0.806346595287323, -0.03636093810200691, 0.43816694617271423, -0.22245728969573975, 0.3393992483615875, -0.7353425621986389, -0.4670671224594116, 1.20823335647583, 0.24512070417404175, -0.14012925326824188, -0.013310808688402176, -0.19213663041591644, 0.3335772454738617, -0.6147585511207581, 0.4087018668651581, 0.413678377866745, 0.12313761562108994, 0.09206181019544601, -0.12006968259811401, 0.09071756154298782, -0.2797260284423828, -0.0793914720416069, 0.2632611393928528, -0.21833935379981995, 0.4039173424243927, -0.3805762231349945, -0.3516404628753662, 0.19817504286766052, 0.9850490689277649, -0.02806677669286728, 0.12494952231645584, 0.29182666540145874, 0.5001724362373352, 0.6386240720748901, 0.3174137473106384, 1.319620966911316, -0.2371712327003479, -0.12356984615325928, 1.147294044494629, 0.1760367453098297, 1.2082371711730957, 0.3428158164024353, 0.08836296945810318, 0.835911750793457, 0.1941191852092743, 0.311893492937088, 0.6722760200500488, -0.04727420210838318, -0.33848994970321655, -0.20477373898029327, -0.09014779329299927, -0.23611615598201752, 0.39700084924697876, 0.4073117673397064, -0.25189879536628723, -0.26418113708496094, -0.02960861101746559, 0.08631092309951782, 0.5803753137588501, -0.25662440061569214, 0.9239690899848938, -0.05563515052199364, -0.3706551194190979, 0.2669849097728729, -0.0706099346280098, 0.6043673753738403, -0.5353325009346008, -0.515234649181366, -0.11463556438684464, -0.1906234174966812, -0.07382822036743164, -1.1291897296905518, 0.3703039884567261, 0.33037787675857544, -0.2460147589445114, -0.40878626704216003, 0.45070815086364746, -0.48440128564834595, -0.4497376084327698, 0.09383329749107361, 0.5246596336364746, 0.23990464210510254, 0.21514742076396942, -0.30136361718177795, -0.03866822272539139, 0.11732923984527588, -0.033114127814769745, 0.2836315631866455, 0.5652093291282654, 0.06028837710618973, 0.6150305867195129, 0.3873727023601532, -0.5582382678985596, 0.2482987642288208, -0.09785919636487961, 0.9120530486106873, -0.5753229856491089, -0.48674479126930237, -0.6385630965232849, 0.6028946042060852, 0.0958806499838829, -0.3593347668647766, 0.6974633932113647, 0.39420080184936523, 0.7586787939071655, -0.018872728571295738, 0.7470203638076782, 0.07744084298610687, 0.5152708292007446, -0.3992716073989868, 0.6053490042686462, -0.36639344692230225, 0.21739840507507324, -0.24543392658233643, -0.7862611413002014, -0.04929725080728531, 0.6064783930778503, -0.27782201766967773, -0.1966492235660553, 0.5494359731674194, 0.8554564714431763, -0.16795487701892853, 0.28189852833747864, 0.1699550896883011, 0.03936150297522545, 0.021543260663747787, 0.615680456161499, 0.9456407427787781, -0.4928669035434723, 0.7597724199295044, 0.023714106529951096, -0.46984535455703735, 0.031147675588726997, -0.5810225009918213, -0.9471941590309143, -0.49458491802215576, -0.2953457832336426, -0.05209924653172493, 0.23036576807498932, 0.8485822081565857, 0.3262045383453369, -0.8108072280883789, -0.012761959806084633, -0.03356598690152168, 0.30287039279937744, -0.2825236916542053, -0.11688198149204254, 0.40589216351509094, -0.3355266749858856, -0.7815567255020142, 0.30034029483795166, 0.19504909217357635, 0.2654764652252197, -0.09163063019514084, -0.11051439493894577, -0.039787497371435165, 0.3557150065898895, 0.503796398639679, 0.1434462070465088, -0.4306259751319885, -0.6742873787879944, 0.39626577496528625, -0.320077508687973, -0.09117600321769714, 0.5833455920219421, -0.49924910068511963, 0.47545966506004333, 0.5180374979972839, 1.36020827293396, 0.46248412132263184, 0.09904203563928604, 0.5201255679130554, -0.7276359796524048, -0.21499231457710266, 0.2534083425998688, 0.04244057089090347, 0.2991175651550293, -0.37067586183547974, -0.07845496386289597, -0.5254024267196655, -0.3631868064403534, -0.41423240303993225, 0.2475404441356659, -0.7915199398994446, -0.18985585868358612, 0.7796134948730469, -0.5856159925460815, -0.23582421243190765, -0.2594779133796692, -0.23165173828601837, -0.02813931368291378, -0.39415442943573, 0.5141494870185852, 0.5921539664268494, -0.04895700514316559, -0.5752661228179932, -0.5929169654846191, 0.02624393254518509, 0.31995439529418945, -0.8501091599464417, -0.17046071588993073, 0.16973182559013367, 0.26796987652778625, -0.0646655336022377, 0.5878586769104004, -0.2073788046836853, 0.34609121084213257, 0.03677930682897568, -0.15463046729564667, -0.08675824850797653, -0.32003653049468994, -0.32787132263183594, 0.23188325762748718, 0.007312331814318895, -0.6500650644302368 ]
http://arxiv.org/abs/2402.09631v5
http://arxiv.org/pdf/2402.09631v5
Representation Surgery: Theory and Practice of Affine Steering
2024-02-15T00:20:30
2024-06-25T13:00:08
Shashwat Singh, Shauli Ravfogel, Jonathan Herzig, Roee Aharoni, Ryan Cotterell, Ponnurangam Kumaraguru
cs.LG
cs.LG, cs.CL, cs.CY
Language models often exhibit undesirable behavior, e.g., generating toxic or gender-biased text. In the case of neural language models, an encoding of the undesirable behavior is often present in the model's representations. Thus, one natural (and common) approach to prevent the model from exhibiting undesirable behavior is to steer the model's representations in a manner that reduces the probability of it generating undesirable text. This paper investigates the formal and empirical properties of steering functions, i.e., transformation of the neural language model's representations that alter its behavior. First, we derive two optimal, in the least-squares sense, affine steering functions under different constraints. Our theory provides justification for existing approaches and offers a novel, improved steering approach. Second, we offer a series of experiments that demonstrate the empirical effectiveness of the methods in mitigating bias and reducing toxic generation.
[ -0.35381218791007996, -0.7029412388801575, 0.5300861597061157, 0.15225760638713837, 0.007977579720318317, -0.38112273812294006, -0.3008700907230377, -0.13927845656871796, 0.11271142214536667, 0.5139262080192566, -0.5174033045768738, -0.5271552205085754, -0.6443802714347839, -0.09628809243440628, -0.8484545946121216, 0.9882931113243103, 0.1408180445432663, 0.472303181886673, 0.021772630512714386, -0.3474556803703308, -0.3615257740020752, -0.5277280807495117, -0.3706945776939392, -0.5078643560409546, 0.39132460951805115, 0.23663605749607086, 1.1886948347091675, 1.0835061073303223, 0.11833526194095612, 0.3321031928062439, -0.19147804379463196, -0.18664167821407318, -0.30785855650901794, 0.34957730770111084, -0.3007633686065674, -0.6628718376159668, 0.02397838421165943, 0.002892150776460767, 0.5361239910125732, 1.1120878458023071, -0.6138079166412354, -0.5909185409545898, 0.11084112524986267, 0.8502370715141296, -0.47742000222206116, -0.057949893176555634, -0.6246994733810425, 0.10206370055675507, 0.008216127753257751, -0.10286552459001541, -0.36851581931114197, -0.45301052927970886, 0.3112908899784088, -0.717792272567749, -0.02111712470650673, 0.07297167927026749, 0.6702746152877808, 0.315483033657074, -0.7207151651382446, -0.4743340015411377, -0.9215698838233948, 0.5953809022903442, -0.6384518146514893, 0.4691464900970459, 0.3209960460662842, 0.1392940878868103, -0.22382819652557373, -0.3445010185241699, -0.2574723958969116, -0.48448261618614197, -0.12962885200977325, -0.4491972327232361, -0.5639133453369141, 0.5724018812179565, 0.31459203362464905, -0.02316119894385338, -0.24913404881954193, 0.07494407892227173, -0.4823867976665497, -0.2516927123069763, 0.7567816376686096, 0.1545335203409195, 0.4866183400154114, -0.257178395986557, -0.46381041407585144, -0.1938205063343048, -0.9731589555740356, -0.1955670863389969, 0.5527772903442383, 0.3346465528011322, 0.12152636796236038, 0.5895742177963257, -0.20082968473434448, 0.5840157270431519, 0.20705822110176086, 0.2613444924354553, 0.007517809513956308, -0.005829992704093456, -0.278346985578537, 0.05047690123319626, 0.6002757549285889, 0.5103815197944641, 0.41883155703544617, -0.12404972314834595, -0.2813376486301422, 0.2675042152404785, 0.7235952019691467, -0.4440479874610901, -0.2295796424150467, 0.007346585858613253, -0.8784990310668945, -0.6711519360542297, -0.24533137679100037, -0.7283720970153809, -0.7066256999969482, -0.48692256212234497, 0.21563144028186798, -0.7330151796340942, -0.3757160007953644, 0.11545325070619583, -0.0793917253613472, -0.09091652929782867, 0.1199994832277298, -1.2725142240524292, 0.6566592454910278, 0.7100620865821838, 0.5818949937820435, -0.19020166993141174, -0.03315341845154762, -0.16839729249477386, 0.19327819347381592, -0.5789948105812073, 0.5376341938972473, -0.578139066696167, -0.5110946893692017, 0.4101414382457733, -0.14269234240055084, -0.08025526255369186, -0.6635001301765442, 0.4952898323535919, 0.00872085988521576, -0.20649859309196472, -0.4078555703163147, -0.39622262120246887, -0.5022730827331543, -0.10408012568950653, -0.5313618183135986, 0.5283011794090271, -0.11712261289358139, -0.32154011726379395, 0.19312365353107452, -0.7110643982887268, -0.739795446395874, -0.5520572662353516, -0.23036839067935944, -0.20603357255458832, 0.5195903778076172, 0.1255657970905304, 0.39584487676620483, -0.006224678363651037, 0.39882543683052063, -0.06817404180765152, -0.07544004917144775, 0.26801902055740356, -0.47278380393981934, 0.7594105005264282, 0.32739683985710144, -0.3254212737083435, 0.5049980878829956, -0.6056484580039978, -0.40426358580589294, -0.13341353833675385, -0.009335181675851345, -0.8861717581748962, 0.3790654242038727, -0.005231967195868492, 0.10792513191699982, -0.2635940611362457, -0.731706440448761, 0.3101704716682434, -0.5681321620941162, 0.6152809262275696, 0.7077687978744507, 0.24310632050037384, 1.1523487567901611, -0.3422722816467285, 0.40354523062705994, 0.053284890949726105, 0.19632509350776672, 0.3955751657485962, -0.4902273416519165, -1.0844837427139282, 0.3544987738132477, 0.010138468816876411, 0.3738594353199005, -0.9902457594871521, -0.24917586147785187, 0.12873247265815735, -0.38072672486305237, -0.4754815697669983, 0.03664647415280342, 0.519832968711853, 0.41485917568206787, 0.27174270153045654, 0.025752101093530655, -0.5810711979866028, -1.1152458190917969, -0.24709445238113403, -0.3397822380065918, 0.1959175020456314, 0.09611375629901886, 0.2549517750740051, -0.0349961556494236, 0.5639623403549194, -0.39773112535476685, -0.28204137086868286, 0.17389467358589172, 0.33368757367134094, -0.11715003103017807, 0.752226710319519, 0.8927793502807617, -0.8230048418045044, -0.07977410405874252, -0.017197249457240105, -0.6622730493545532, -0.30526813864707947, -0.22560636699199677, -0.28634944558143616, 0.6648968458175659, 0.7696406841278076, -0.6792781352996826, 0.7698942422866821, 0.4889751970767975, -0.3292684257030487, 0.46764257550239563, -0.2802368998527527, 0.029504593461751938, -0.3767359256744385, 0.10130717605352402, 0.2046145498752594, -0.19150669872760773, -0.9199695587158203, 0.1679587960243225, 0.12836261093616486, -0.16442230343818665, -0.2197304666042328, 0.3323736786842346, -0.4648206830024719, 0.1974693387746811, -0.3061848282814026, -0.18182246387004852, -0.4319007396697998, 0.4967260956764221, 0.22012554109096527, 0.4167551100254059, 0.4108119308948517, -0.9119613170623779, 0.04736371710896492, 0.5617160797119141, 0.1797926127910614, 0.9256596565246582, -0.5157548785209656, -0.2241184115409851, -0.4054220914840698, -0.3622073233127594, -1.1368343830108643, 0.42957478761672974, 0.4313253164291382, -0.5548920035362244, 0.5884534120559692, -0.30812445282936096, 0.15635767579078674, -0.08214984834194183, 0.007098474074155092, -0.22508305311203003, 0.5079652667045593, -0.11298473924398422, 0.41274788975715637, 0.5082051753997803, -0.34579145908355713, -0.5139157772064209, -0.8350183963775635, -0.12907256186008453, -0.210218146443367, -0.45337343215942383, 0.5086049437522888, 0.18713979423046112, -0.44531363248825073, 0.2491636872291565, -0.36120620369911194, 0.022646209225058556, -0.08713234961032867, 0.2019270658493042, 0.1676086187362671, -0.1361677199602127, 0.1575545370578766, 0.5026670694351196, -0.375461608171463, 0.23142237961292267, -0.21008843183517456, 0.34635046124458313, 0.3405260145664215, -0.31060823798179626, -0.17735417187213898, 0.6760832667350769, 0.5865640640258789, -0.00810200534760952, 0.5023991465568542, 0.22593137621879578, -0.4789659380912781, -0.1954190880060196, -0.3600771725177765, -0.4525761604309082, -0.5212575793266296, 0.7354230880737305, -0.05316005274653435, -0.6030804514884949, 0.4307073950767517, 0.0725594162940979, 0.16511879861354828, 0.38051673769950867, 0.5066458582878113, -0.1551353931427002, 1.5203111171722412, 0.6474478840827942, -0.0025205600541085005, 0.5921635627746582, -0.07906452566385269, 0.05869134142994881, -0.7378000020980835, -0.38449764251708984, -0.7456727027893066, -0.4069308042526245, -0.6779374480247498, -0.22458583116531372, 0.5418752431869507, -0.2227891981601715, -0.4693596363067627, 0.21577376127243042, -0.6343181133270264, 0.020319372415542603, 0.5564743876457214, -0.009646184742450714, 0.08860362321138382, 0.12802113592624664, -0.5673495531082153, -0.26191312074661255, -0.8137544393539429, -0.44671788811683655, 1.0336254835128784, 0.4923115670681, 0.9653382897377014, -0.030256588011980057, 0.4709678590297699, 0.10040407627820969, 0.44618093967437744, -0.8003571629524231, 0.5733835697174072, -0.49163731932640076, -0.7238340377807617, -0.35182785987854004, -0.2190018594264984, -0.7728511095046997, 0.36009642481803894, -0.42258018255233765, -0.8002979755401611, 0.5113747715950012, 0.44465264678001404, -0.10729453712701797, 0.539085865020752, -0.455034464597702, 0.4526224434375763, -0.2656322419643402, -0.44845762848854065, -0.3574483394622803, -0.6215701103210449, 0.22146335244178772, 0.5021043419837952, 0.1548558473587036, 0.18082068860530853, -0.193773552775383, 0.6484730243682861, -0.47500303387641907, 0.8128894567489624, -0.7322278022766113, -0.15196524560451508, -0.05292597785592079, 0.7030712366104126, 0.5642344951629639, -0.3009222149848938, -0.06707202643156052, 0.12099115550518036, 0.0742044746875763, 0.05212527886033058, -0.8209609985351562, 0.6624636650085449, -0.677203357219696, -0.719870388507843, -0.5522016286849976, -0.6058773398399353, -0.3185306489467621, -0.03404638543725014, 0.18206843733787537, 0.21045145392417908, -0.3821134567260742, 0.014671139419078827, 0.5954322218894958, -0.255851686000824, 0.5268546938896179, 0.40564802289009094, -0.32632842659950256, -0.36683326959609985, 0.6648159027099609, 0.10525983572006226, 0.3288101255893707, 0.1530529409646988, 0.10371413826942444, -0.4040447175502777, -1.0398722887039185, -0.3394452929496765, 0.11761298030614853, -0.630323588848114, -0.2338545173406601, -0.38297685980796814, -0.17692404985427856, -0.2860027849674225, -0.11260683834552765, -0.4453458786010742, -0.6697655916213989, -0.2639906108379364, -0.17103667557239532, 0.25913697481155396, 1.1562105417251587, -0.3583472967147827, 0.6039324998855591, -0.40180131793022156, -0.033489786088466644, 0.0947103202342987, 0.34941521286964417, 0.2021951526403427, -0.12557852268218994, 0.14359460771083832, 0.42052263021469116, -0.47887444496154785, -1.0845845937728882, 0.819135844707489, 0.06362932175397873, 0.8805702924728394, 0.6281931400299072, -0.12270335108041763, 0.5505436062812805, -0.6718461513519287, 0.3272331655025482, 0.2546825706958771, -1.083420753479004, 0.30349645018577576, -0.47271817922592163, -0.1990618258714676, 0.3898709714412689, 0.599072277545929, -0.9924944043159485, -0.44716399908065796, -0.3883330225944519, -0.7257186770439148, 0.6099460124969482, 0.3476409614086151, 0.28374141454696655, 0.08157920837402344, 0.5771938562393188, 0.013771170750260353, 0.4689887464046478, -0.43190059065818787, -0.7151440978050232, -0.4306912422180176, -0.2574302852153778, 0.08391323685646057, -0.43516743183135986, -0.2882022261619568, -0.29393723607063293, 0.778724730014801, -0.10639278590679169, 0.5207386612892151, 0.16101562976837158, -0.17951802909374237, -0.16095824539661407, 0.09020127356052399, 1.0264778137207031, 0.29748836159706116, 0.017986731603741646, 0.08963041007518768, -0.22942399978637695, -0.5093302726745605, 0.4276246130466461, 0.0591764822602272, -0.49609893560409546, -0.028358954936265945, 0.0020619919523596764, 0.902055561542511, 0.43461695313453674, -0.059326086193323135, 0.4947921335697174, 0.19302375614643097, -0.3182061016559601, -0.024644337594509125, -0.05942754074931145, 0.03184721618890762, 0.11620594561100006, 0.5214990377426147, 0.6084572076797485, 0.4184337258338928, -0.17152968049049377, 0.3536151051521301, 0.6976212859153748, -0.660878598690033, -0.2928335666656494, 0.7242528796195984, 0.5101099014282227, -0.3207387328147888, 0.6022419929504395, 0.020491449162364006, -0.5063532590866089, 0.4935070872306824, 0.6382406949996948, 0.6843822002410889, -0.5077184438705444, 0.5438070893287659, 0.3246379494667053, 0.5753478407859802, 0.04039401933550835, 0.08628075569868088, 0.18808674812316895, -0.9489039778709412, -0.06767424941062927, -0.3004639148712158, -0.10569360852241516, -0.1073315218091011, -0.8028783798217773, 0.07336072623729706, -0.605364203453064, -0.24560286104679108, 0.2603898048400879, -0.4855019450187683, -0.10574043542146683, -0.004406569991260767, 0.25272664427757263, 0.795005738735199, -1.0564334392547607, 0.5069607496261597, 0.8425759673118591, -0.391553670167923, -0.5247824788093567, -0.11488993465900421, 0.43055227398872375, -1.0852434635162354, 0.37678107619285583, -0.45047426223754883, 0.1614254117012024, -0.22365635633468628, -0.8224121928215027, -0.8468026518821716, 0.4455164074897766, 0.6924112439155579, -0.5788688659667969, -0.3254036605358124, 0.2557293474674225, 0.413896381855011, -0.32616740465164185, -0.025021040812134743, 0.5657813549041748, 0.5446292161941528, 0.06770049780607224, -0.9505743384361267, 0.2908642292022705, -0.15430741012096405, 0.48004645109176636, 0.3438449203968048, -0.23682664334774017, 0.750519335269928, -0.24631690979003906, -0.07028395682573318, 0.27988383173942566, 0.44032007455825806, 0.22734922170639038, -0.14179103076457977, 0.5549325942993164, 0.09815611690282822, 0.6594353318214417, -0.3058486878871918, 1.0430667400360107, -0.28993862867355347, 0.25543808937072754, 0.3994968831539154, -0.051703888922929764, 0.5677844285964966, 0.9735957980155945, 0.014339425601065159, 0.5651294589042664, -0.0016874942230060697, 0.17680026590824127, 0.8259799480438232, 0.38480237126350403, 0.1847854107618332, -0.16587436199188232, -0.007420097477734089, -0.10046277195215225, 0.7097973823547363, 0.46645355224609375, -0.5617641806602478, -0.3447313606739044, 0.4848614037036896, 0.38498979806900024, 0.5149375796318054, -0.5090989470481873, 0.7283780574798584, 0.18555010855197906, -0.7397481799125671, 0.6677977442741394, 0.24034053087234497, 0.8396984934806824, -0.7390806674957275, -0.28474485874176025, -0.12853775918483734, 0.1663716435432434, -0.2895749509334564, -0.655363917350769, 0.7825082540512085, -0.6136763095855713, -0.056992825120687485, -0.4981050491333008, 0.9295154213905334, -0.6439306139945984, -0.2593112885951996, 0.22960658371448517, 0.3053179681301117, -0.31885653734207153, 0.08391496539115906, -0.6741915941238403, 0.25436779856681824, 0.3412567973136902, -0.14028429985046387, 0.1678561270236969, 0.1561560183763504, -0.30705997347831726, 0.9571703672409058, 0.5522732138633728, 0.5511687397956848, 0.01890752650797367, -0.3239718973636627, 0.7712647318840027, -0.5790078043937683, -0.6430726051330566, -0.7751685976982117, 0.4786764085292816, 0.05560163035988808, -0.25446823239326477, 0.3637964725494385, 0.2100597620010376, 0.5231903195381165, -0.08454433083534241, 0.7269560098648071, -0.14890754222869873, 0.12921848893165588, -0.6795288920402527, 1.2722777128219604, -0.43608829379081726, 0.0023288007359951735, -0.5217558741569519, -0.6476123929023743, -0.32965049147605896, 1.158345341682434, -0.31343910098075867, 0.10666613280773163, 0.9078422784805298, 0.7211868762969971, 0.16758525371551514, 0.27940747141838074, 0.37961214780807495, 0.4028083086013794, 0.09838711470365524, 0.5775672793388367, 0.7628843784332275, -0.3141414225101471, 0.4019717872142792, -0.6053114533424377, -0.118508480489254, 0.0456668883562088, -0.8923360109329224, -0.558403730392456, -0.9669902324676514, -0.3922691345214844, -0.3577026128768921, 0.2558380961418152, 0.8611641526222229, 1.1065763235092163, -0.8202012181282043, -0.5330463647842407, -0.23793190717697144, 0.2379530966281891, -0.2698098421096802, -0.1384062021970749, 0.22868262231349945, -0.09654846042394638, -0.6971179246902466, 0.14065448939800262, 0.032739173620939255, 0.23613885045051575, -0.4886474311351776, -0.087832972407341, -0.39037224650382996, -0.14176765084266663, 0.3816220462322235, 0.40302079916000366, -0.5346323251724243, -0.3790046274662018, 0.17215114831924438, -0.09273434430360794, 0.08443053066730499, 0.9396341443061829, -0.6154748797416687, 0.33369511365890503, 0.41686785221099854, 0.22515130043029785, 0.3794037699699402, -0.07190091907978058, 1.2461025714874268, -0.7606260180473328, 0.41771814227104187, 0.4127707779407501, 0.33056706190109253, 0.34606510400772095, -0.4390857517719269, 0.34961119294166565, 0.19549082219600677, -0.24210913479328156, -0.8251141905784607, 0.23301176726818085, -0.5852859616279602, -0.2543225884437561, 1.2795946598052979, 0.25591960549354553, -0.36132746934890747, -0.08737049251794815, -0.367856502532959, 0.31126752495765686, -0.6356465816497803, 0.5469223260879517, 0.5041236877441406, -0.3270964026451111, -0.1489059180021286, -0.5544494986534119, 0.8431833982467651, 0.54404616355896, -0.3657435178756714, 0.14365364611148834, 0.47531858086586, 0.5429826378822327, 0.11638390272855759, 0.3674909472465515, -0.2831803262233734, 0.21273766458034515, -0.09911434352397919, 0.25000154972076416, -0.2511399984359741, -0.3292263448238373, -0.7908372282981873, 0.0006785416626371443, 0.041633591055870056, -0.16704010963439941 ]
http://arxiv.org/abs/2402.09615v4
http://arxiv.org/pdf/2402.09615v4
API Pack: A Massive Multi-Programming Language Dataset for API Call Generation
2024-02-14T23:09:15
2024-06-03T22:38:04
Zhen Guo, Adriana Meza Soria, Wei Sun, Yikang Shen, Rameswar Panda
cs.CL
cs.CL, cs.AI, cs.LG
We introduce API Pack, a massive multi-programming language dataset containing more than 1 million instruction-API call pairs to improve the API call generation capabilities of large language models. By fine-tuning CodeLlama-13B on 20,000 Python instances from API Pack, we enable it to outperform GPT-3.5 and GPT-4 in generating unseen API calls. Fine-tuning on API Pack also facilitates cross-programming language generalization by leveraging a large amount of data in one language and small amounts of data from other languages. Scaling the training data to 1 million instances further improves the model's ability to generalize to new APIs not used in training. To facilitate further research, we open-source the API Pack dataset, trained model, and associated source code at https://github.com/zguo0525/API-Pack.
[ -0.5014594793319702, -0.4812091886997223, -0.06352614611387253, 0.3529917001724243, -0.05168157443404198, 0.1193753257393837, -0.3039190173149109, -0.50432950258255, -0.15549947321414948, 0.6464287042617798, -0.8235074281692505, -0.597997784614563, -0.03192679211497307, 0.072843998670578, -0.1091986671090126, 0.9465442895889282, 0.311974436044693, -0.11552952975034714, 0.07188185304403305, -0.09735668450593948, -0.7429015040397644, -0.30954697728157043, -0.4542784094810486, -0.26433780789375305, 0.6489426493644714, 0.41511270403862, 0.345025897026062, 0.70811527967453, 0.1958734691143036, 0.2528771758079529, 0.3511715531349182, 0.17540203034877777, -0.33303579688072205, 0.06022714078426361, 0.09535787254571915, -0.5537989139556885, -0.6875365376472473, -0.041529279202222824, 0.3509097695350647, 0.572216808795929, 0.0007361391908489168, 0.660914957523346, -0.10536642372608185, 0.747187077999115, -0.37007805705070496, 0.46734535694122314, -0.8123801350593567, -0.1756928265094757, -0.17791976034641266, -0.3818924129009247, -0.4960087239742279, -0.35456621646881104, 0.4032428562641144, -0.5296575427055359, 0.2058044821023941, 0.12776055932044983, 0.4665030539035797, 0.1184697076678276, -0.08894038200378418, -0.47129538655281067, -0.4965176582336426, 0.9108706712722778, -0.5621114373207092, -0.05041944980621338, 0.47354695200920105, 0.27159765362739563, -0.11684004217386246, -0.49458763003349304, -0.16477195918560028, -0.04217395558953285, 0.3893158733844757, -0.2529224157333374, -0.028025347739458084, -0.01241870317608118, 0.14343827962875366, 0.3240813910961151, -0.8455016613006592, 0.079844169318676, -0.6168569326400757, -0.014491288922727108, 0.6676965951919556, 0.021521680057048798, 0.5255654454231262, 0.2276594340801239, -0.09190330654382706, 0.07084911316633224, -1.12602961063385, -0.01587683893740177, 0.7980104088783264, 0.8852412104606628, -0.1013660654425621, 0.39236095547676086, -0.23333579301834106, 1.0204534530639648, -0.22497494518756866, 0.13987676799297333, 0.3550841510295868, -0.010504977777600288, -0.18760716915130615, 0.18172672390937805, 0.4429418742656708, 0.2715807259082794, 0.2920317053794861, -0.16429880261421204, -0.05032426863908768, -0.08566369861364365, 0.4250410795211792, -0.9111748933792114, -0.326978474855423, 0.5643677115440369, -0.5271875858306885, -0.3057009279727936, 0.011490914970636368, -0.666701078414917, -0.13112324476242065, -0.4482870101928711, 0.10035769641399384, -0.4796932637691498, -0.5847356915473938, 0.11224192380905151, -0.09213950484991074, 0.34592580795288086, -0.0803871899843216, -1.0577137470245361, 0.0323745459318161, 0.8761551976203918, 0.7841022610664368, 0.21373935043811798, -0.6783549189567566, -0.4578666388988495, 0.062034379690885544, -0.4297665059566498, 1.1308810710906982, -0.7683600187301636, -0.2595071792602539, 0.4596959352493286, 0.02527834102511406, 0.08730291575193405, -0.8206281065940857, 0.09411463141441345, -0.2912311851978302, -0.30129703879356384, -0.17251631617546082, -0.6621325612068176, -0.04150889068841934, 0.16348131000995636, -0.577183723449707, 1.0577096939086914, 0.33203715085983276, -0.16346827149391174, 0.44534075260162354, -0.6925572156906128, -0.2154293656349182, 0.6094405055046082, 0.0016549695283174515, -0.20123550295829773, 0.15160152316093445, 0.07680260390043259, 0.2097981572151184, -0.25575441122055054, -0.051569614559412, -0.4379202723503113, -0.34875327348709106, 0.15948379039764404, 0.014348307624459267, 0.7409605979919434, 0.30259695649147034, -0.16870932281017303, 0.08003364503383636, -0.9210492968559265, 0.47052571177482605, -0.1261325627565384, -0.5516388416290283, -0.4745416045188904, -0.23459899425506592, 0.07954983413219452, 0.2179645150899887, 0.16139639914035797, -0.4705989956855774, 0.7954965233802795, -0.30799296498298645, 0.7456012964248657, 0.7712393999099731, -0.3147825300693512, 0.3749140799045563, -0.12322127819061279, 0.5613959431648254, -0.3676004707813263, 0.1636180728673935, -0.7795071601867676, -0.6386393308639526, -0.37772855162620544, -0.11498330533504486, 0.4257586896419525, 0.33563414216041565, -0.49929651618003845, 0.6581109762191772, -0.22027820348739624, -0.5912373065948486, -0.7813694477081299, 0.38899990916252136, 0.559863269329071, 0.15499074757099152, 0.23471792042255402, 0.016031034290790558, -0.5517557859420776, -0.749516487121582, -0.14835591614246368, -0.15396279096603394, -0.22750216722488403, 0.32845380902290344, 0.40695708990097046, -0.2734798192977905, 0.8061964511871338, -0.4099923372268677, -0.15925385057926178, -0.23588697612285614, 0.32539206743240356, 0.24774381518363953, 0.677073061466217, 0.692435085773468, -0.5183373689651489, -0.37343722581863403, -0.1563558131456375, -0.4131174683570862, -0.36816027760505676, 0.030809329822659492, -0.3383362293243408, 0.46346330642700195, 0.21840986609458923, -0.36000871658325195, 0.11745081096887589, 0.8711243271827698, -0.2605661153793335, 0.6807994246482849, -0.38229045271873474, -0.10087159276008606, -1.046547293663025, -0.015077345073223114, -0.1362401247024536, 0.34203240275382996, -0.4762606620788574, 0.21190695464611053, 0.30743250250816345, -0.44419562816619873, -0.6023582816123962, 0.47006428241729736, -0.565803050994873, -0.11223740875720978, -0.41775935888290405, -0.5623061060905457, -0.24781052768230438, 0.4282078146934509, -0.23885609209537506, 0.8205888271331787, 0.9911493062973022, -0.6271695494651794, 0.5421131253242493, 0.16885381937026978, -0.28077051043510437, 0.3782629370689392, -0.5144289135932922, 0.37083005905151367, 0.3102421462535858, 0.48032042384147644, -0.9532272219657898, -0.2126283198595047, -0.01101923268288374, -0.23207220435142517, 0.12967172265052795, -0.7228732109069824, -0.6293488144874573, -0.6970036029815674, -0.44827625155448914, 0.530508279800415, 0.3451579511165619, -0.7590010166168213, 0.30285343527793884, 0.4663529396057129, -0.28720563650131226, -0.4357995092868805, -0.7952775955200195, -0.10424914956092834, -0.08368252962827682, -0.48760491609573364, -0.11117324978113174, -0.38014715909957886, 0.15376406908035278, 0.047015175223350525, -0.20744413137435913, -0.24135807156562805, -0.41272661089897156, 0.5265974402427673, 0.4227900803089142, -0.28427451848983765, 0.41280651092529297, -0.1648704558610916, -0.34066861867904663, -0.1034025028347969, -0.9341790080070496, 1.210558295249939, -0.2395714670419693, -0.23106542229652405, -0.09839687496423721, 0.4797900319099426, 0.4636860489845276, -0.33511266112327576, 0.5647222399711609, 0.41761356592178345, -0.16708213090896606, -0.5238294005393982, -0.3236001133918762, 0.14043764770030975, -0.4987775981426239, 0.07152687758207321, -0.43742847442626953, -0.625034749507904, 0.7513502240180969, -0.22987042367458344, 0.34835004806518555, 0.2447279393672943, 0.5217407941818237, 0.3498009443283081, 0.972544252872467, 0.5517044067382812, -0.5081163644790649, 0.3143675923347473, -0.5003980398178101, 0.22221344709396362, -0.5103217959403992, -0.19523996114730835, -0.7298705577850342, -0.33032578229904175, -0.7422510981559753, -0.3033584654331207, -0.10874612629413605, -0.060026057064533234, -0.3410763740539551, 0.5161624550819397, -0.8987570405006409, 0.8908612728118896, 0.8166680932044983, 0.011177261359989643, -0.08279984444379807, 0.19435223937034607, 0.3021649718284607, 0.2473290115594864, -0.5842999219894409, -0.3541497588157654, 1.5885010957717896, 0.007132587023079395, 0.8755909204483032, -0.15795224905014038, 0.5720465779304504, 0.1955932080745697, 0.12565109133720398, -0.7219190001487732, 0.4452638626098633, -0.022814784198999405, -0.5813347697257996, -0.04567939043045044, -0.41406774520874023, -1.0459550619125366, -0.08645852655172348, 0.03865985572338104, -0.6083183288574219, -0.1949775367975235, 0.34258225560188293, -0.48610809445381165, 0.15155914425849915, -1.1286894083023071, 0.806800901889801, -0.2533133029937744, 0.005128851160407066, -0.13357806205749512, -0.3716491162776947, 0.2827579081058502, -0.03379964828491211, -0.05329641327261925, -0.2109777182340622, 0.02112640254199505, 0.4044851064682007, -0.4078795909881592, 0.7280329465866089, -0.25802814960479736, -0.41206708550453186, 0.44761762022972107, -0.018695920705795288, 0.29030677676200867, 0.09047684818506241, 0.03674968704581261, 0.48586949706077576, -0.12739324569702148, -0.6725884079933167, -0.14812900125980377, 0.9715557098388672, -0.6983515620231628, 0.023434355854988098, -0.14578711986541748, -0.9991955757141113, 0.06519041955471039, 0.2952486276626587, 0.3174130916595459, 0.854231059551239, 0.2101961076259613, 0.032476380467414856, 0.5586851835250854, -0.7798527479171753, 0.4752410650253296, 0.6917119026184082, -0.33779099583625793, -0.26812857389450073, 1.2757861614227295, 0.4373641908168793, 0.12289852648973465, 0.04198100417852402, 0.010524294339120388, -0.420497864484787, -0.5012246370315552, -0.45935505628585815, 0.08039698004722595, -0.3170229196548462, -0.41020241379737854, -0.5190736651420593, -0.03369632363319397, -0.7205303907394409, -0.039454489946365356, -0.5790363550186157, -0.28252482414245605, 0.33861950039863586, 0.09988139569759369, 0.44863054156303406, 0.7402216792106628, 0.012158489786088467, 0.3622277081012726, -0.7909132242202759, 0.4133813679218292, 0.3388396203517914, 0.81099933385849, -0.1888476461172104, 0.003670605132356286, -0.38044777512550354, -0.05183684080839157, -0.15459184348583221, -0.6528743505477905, 0.5239522457122803, 0.21125176548957825, 0.4883364737033844, 0.359584778547287, 0.06001142039895058, 0.7980709075927734, -0.7331497073173523, 0.8287379145622253, -0.11329425871372223, -0.6961132287979126, 0.908202588558197, -0.6212188601493835, 0.5843470096588135, 0.25022822618484497, 0.015122833661735058, -0.2379472404718399, -0.5627367496490479, -0.7517643570899963, -1.172963261604309, 0.8846819996833801, 0.013979323208332062, 0.2148270606994629, 0.17583444714546204, 0.32647639513015747, 0.5099608898162842, 0.2900213599205017, -0.425853431224823, -0.33065468072891235, -0.07317192107439041, 0.0001346173812635243, 0.07791854441165924, -0.05686011165380478, -0.3484616279602051, -0.2504342794418335, 0.5358346700668335, -0.36386334896087646, 0.31839606165885925, -0.3455643951892853, -0.030357234179973602, -0.33354073762893677, 0.2784891724586487, 0.6336698532104492, 0.9932462573051453, -0.4646811783313751, -0.02195640839636326, -0.3046685457229614, -0.5170559883117676, -0.1358269453048706, 0.33502069115638733, -0.1912059187889099, -0.12840025126934052, 0.13678961992263794, 0.6382117867469788, 0.078089639544487, -1.0192437171936035, -0.04465378075838089, -0.11159949749708176, -0.07190436124801636, -0.3405437767505646, 0.11790993064641953, 0.03495074063539505, 0.2180764228105545, 0.6562051773071289, 0.09969806671142578, -0.022564871236681938, -0.5328003168106079, 0.29379430413246155, 0.23664148151874542, 0.18006189167499542, -0.4869592785835266, 0.3753640949726105, 0.3994118273258209, -0.4125950038433075, 0.56053227186203, -0.15956053137779236, -0.2876338064670563, 0.7638046741485596, 0.7036526203155518, 0.8091369271278381, -0.36086133122444153, 0.42960721254348755, 0.4742989242076874, 0.31716835498809814, -0.13861294090747833, 0.1720980405807495, -0.1261264830827713, -0.4583474099636078, -0.4339331090450287, -0.6290761232376099, -0.41223347187042236, 0.6428440809249878, -0.666797399520874, 0.1056143119931221, -0.17180737853050232, 0.2911977171897888, 0.015068115666508675, 0.2672574520111084, -0.6157867312431335, -0.35789498686790466, 0.26666978001594543, 1.1236687898635864, -0.8750954866409302, 1.1015876531600952, 0.8307690620422363, -0.42067426443099976, -0.9744330644607544, -0.09674005955457687, 0.1760706752538681, -0.9003747701644897, 0.45403948426246643, 0.578328549861908, 0.27947768568992615, 0.059989817440509796, -0.7214528322219849, -0.4741668999195099, 0.868941068649292, 0.5278913378715515, -0.5032427310943604, 0.2787471115589142, 0.512309193611145, 0.4196692407131195, -0.7774732708930969, 0.15536008775234222, 0.7326914668083191, 0.2711203992366791, -0.27530747652053833, -0.8061344623565674, -0.2915458381175995, -0.4759798049926758, 0.19174836575984955, 0.12161370366811752, -0.5593681931495667, 1.0136799812316895, 0.012220288626849651, 0.1716533750295639, 0.17861522734165192, 0.1103193387389183, 0.5653383731842041, 0.06407297402620316, 0.4193640649318695, 0.5423116683959961, 0.7607511281967163, -0.03494742885231972, 1.2294687032699585, -0.5250154733657837, 0.36777639389038086, 1.1096210479736328, -0.2026478350162506, 0.6768847703933716, 0.3331737816333771, 0.07167573273181915, 0.08866595476865768, 0.8612216114997864, -0.17854943871498108, 0.558125913143158, 0.2563573718070984, -0.3640964925289154, -0.11374934017658234, 0.04888603463768959, -0.8059865832328796, 0.28356319665908813, 0.2865169942378998, -0.11883155256509781, -0.41353294253349304, 0.03459226340055466, -0.3135885000228882, -0.374284565448761, -0.5106185078620911, 0.6809514760971069, -0.31359121203422546, -0.7490507364273071, 0.7646308541297913, -0.5310543775558472, 0.6446093320846558, -0.6430112719535828, -0.25383806228637695, -0.3130294978618622, 0.3828524649143219, -0.09366769343614578, -0.7317053079605103, -0.0005803043022751808, 0.21851074695587158, -0.2225182056427002, -0.23753222823143005, 0.7942946553230286, -0.6754435300827026, -0.45827117562294006, 0.3389277756214142, 0.40088528394699097, 0.21507441997528076, -0.34337419271469116, -0.8402862548828125, 0.22412942349910736, -0.07938753068447113, -0.29343003034591675, 0.5167791247367859, 0.662932276725769, 0.2156534641981125, 0.7939114570617676, 0.851315438747406, 0.44052210450172424, 0.659296989440918, 0.23178334534168243, 0.7983517050743103, -0.4518197178840637, -0.6285838484764099, -0.5864763259887695, 0.4744831919670105, 0.035688288509845734, -0.5752962231636047, 0.5147337317466736, 0.9632097482681274, 0.9876807928085327, -0.4548463821411133, 1.1507688760757446, -0.3386664092540741, 0.2737828195095062, -0.18007820844650269, 0.6126126050949097, -0.2319144755601883, 0.32008373737335205, -0.11097628623247147, -1.0438685417175293, -0.28830596804618835, 0.3399752378463745, -0.032149769365787506, -0.3661918342113495, 0.243104949593544, 0.9435621500015259, -0.07863729447126389, 0.09009252488613129, 0.10375566780567169, 0.03582106530666351, 0.5015510320663452, 0.5730098485946655, 0.7682347893714905, -0.48363959789276123, 1.0025126934051514, -0.21510405838489532, -0.41661521792411804, -0.09100811183452606, -0.567668616771698, -0.7924596071243286, -0.6649170517921448, -0.16952413320541382, -0.29747527837753296, -0.06871140003204346, 1.0430089235305786, 1.0387715101242065, -0.9246275424957275, -0.354035884141922, -0.3899047374725342, -0.21296586096286774, -0.5907970666885376, -0.21024416387081146, 0.1902197301387787, -0.9360803365707397, -0.9683070182800293, 0.3802395164966583, 0.3983476459980011, -0.2764449417591095, -0.22009173035621643, -0.2978116571903229, 0.04280358925461769, -0.2370990663766861, 0.5658143758773804, 0.6088672280311584, -0.4783719778060913, -0.10537508875131607, -0.3292597830295563, 0.07366427779197693, 0.048975083976984024, 1.1605526208877563, -0.5730251669883728, 0.530621349811554, 0.3447744846343994, 0.6532306671142578, 0.10866700857877731, -0.24918398261070251, 0.7169598937034607, -1.1508225202560425, 0.6165754795074463, -0.13772933185100555, 0.2274455577135086, 0.0035684090107679367, -0.1474715620279312, 0.773358941078186, -0.11210514605045319, -0.7922190427780151, -1.0169379711151123, 0.24067610502243042, -1.1430941820144653, -0.35686394572257996, 1.1725414991378784, -0.28814879059791565, -0.27507156133651733, -0.2209472507238388, -0.4523153007030487, 0.20072397589683533, -0.7207742929458618, 0.882612943649292, 0.565775454044342, -0.2569376826286316, -0.18615524470806122, -0.8832341432571411, 0.40764522552490234, -0.11013565212488174, -0.9920381307601929, 0.49380844831466675, 0.5131621956825256, 0.3115578591823578, 0.36220651865005493, 0.49306488037109375, -0.054876748472452164, 0.21843257546424866, 0.21533791720867157, 0.2597135305404663, -0.2063700258731842, -0.38659602403640747, -0.19271299242973328, 0.28616124391555786, -0.19112907350063324, -0.5142548680305481 ]
http://arxiv.org/abs/2402.09614v2
http://arxiv.org/pdf/2402.09614v2
Probabilistic Reasoning in Generative Large Language Models
2024-02-14T23:05:44
2024-06-17T05:13:33
Aliakbar Nafar, Kristen Brent Venable, Parisa Kordjamshidi
cs.CL
cs.CL, cs.AI, I.2.7
This paper considers the challenges Large Language Models (LLMs) face when reasoning over text that includes information involving uncertainty explicitly quantified via probability values. This type of reasoning is relevant to a variety of contexts ranging from everyday conversations to medical decision-making. Despite improvements in the mathematical reasoning capabilities of LLMs, they still exhibit significant difficulties when it comes to probabilistic reasoning. To deal with this problem, we introduce the Bayesian Linguistic Inference Dataset (BLInD), a new dataset specifically designed to test the probabilistic reasoning capabilities of LLMs. We use BLInD to find out the limitations of LLMs for tasks involving probabilistic reasoning. In addition, we present several prompting strategies that map the problem to different formal representations, including Python code, probabilistic algorithms, and probabilistic logical programming. We conclude by providing an evaluation of our methods on BLInD and an adaptation of a causal reasoning question-answering dataset. Our empirical results highlight the effectiveness of our proposed strategies for multiple LLMs.
[ 0.08191952854394913, -1.0356953144073486, 1.2171118259429932, 0.36543190479278564, 0.03662509843707085, -0.31098976731300354, -0.3550618886947632, -0.07455959171056747, -0.422417014837265, 0.6714155673980713, -0.6316577196121216, -0.5330345034599304, -0.5377286672592163, 0.10610701143741608, -0.17065127193927765, 0.5441446304321289, -0.19184237718582153, 0.004293884616345167, -0.1125035509467125, 0.16604116559028625, -0.5261771082878113, -0.37154510617256165, -0.6524240970611572, -0.057438284158706665, 0.5033977627754211, 0.44034984707832336, 1.0516605377197266, 0.04791327193379402, 0.5604462027549744, 0.24149395525455475, 0.12198662012815475, 0.09159597009420395, -0.008769258856773376, 0.43367648124694824, -0.35925573110580444, -0.7435917854309082, -0.04532048851251602, -0.37164047360420227, 0.746025800704956, 1.0720711946487427, -0.1264335662126541, -0.20288825035095215, -0.19702094793319702, 0.4080190062522888, -0.7801604866981506, 0.40049776434898376, -0.7243764400482178, 0.03763163089752197, -0.20617146790027618, 0.041302140802145004, -0.5686970949172974, -0.33938345313072205, -0.020863879472017288, -0.4437900483608246, 0.17734821140766144, -0.1168113648891449, 0.3755788207054138, 0.3417310118675232, -0.3998693823814392, -0.18304511904716492, -0.9053080081939697, 0.8017632961273193, -0.8765278458595276, 0.2699596881866455, 0.7194344401359558, 0.1982571929693222, -0.6207541823387146, -0.3172174394130707, -0.745561957359314, -0.3256283402442932, 0.3115651309490204, 0.041683539748191833, -0.2930382788181305, 0.0724019780755043, 0.265768438577652, 0.1517331302165985, -0.7008727788925171, 0.24854329228401184, 0.16094711422920227, 0.08869586139917374, 0.6639811396598816, -0.048776302486658096, -0.1792655885219574, -0.12521569430828094, 0.12324640899896622, -0.10519588738679886, -0.756200909614563, -0.4213419258594513, 0.3737581670284271, 0.12921658158302307, -0.01767062582075596, 0.8309209942817688, -0.24925300478935242, 1.1207971572875977, -0.40974733233451843, -0.04341331496834755, 0.004074917174875736, 0.05997457727789879, -0.27124714851379395, -0.22197739779949188, 0.8158981204032898, 0.14529047906398773, 0.5900102853775024, 0.14494839310646057, -0.15591196715831757, -0.04627702012658119, -0.16074703633785248, -0.2606399357318878, -0.33440637588500977, 0.5973367094993591, -0.15790671110153198, 0.01815143972635269, -0.07700180262327194, -0.549954891204834, -0.5047095417976379, -0.053487394005060196, 0.6362743377685547, -0.5643740892410278, -0.2406228631734848, 0.6043448448181152, -0.06674259155988693, 0.006406486965715885, 0.5934195518493652, -0.8898448348045349, -0.1347537636756897, 0.5830305218696594, 0.40446627140045166, 0.2897127568721771, 0.05566003546118736, -0.35569503903388977, 0.32312262058258057, -0.6238859295845032, 0.6209146976470947, -0.550063967704773, -0.1566779613494873, 0.09805160760879517, -0.0947481244802475, 0.015592720359563828, -0.601784884929657, 0.6064074635505676, -0.3876098096370697, 0.1016916036605835, -0.13471975922584534, -0.639289140701294, -0.16219691932201385, -0.07092369347810745, -0.5168173313140869, 0.4975578486919403, 0.1859671026468277, -0.9003214240074158, 0.3420724868774414, -0.1617894172668457, -0.47944045066833496, 0.28252938389778137, -0.3946893513202667, -0.4371420443058014, 0.21608634293079376, 0.3145473003387451, 0.7266933917999268, -0.4436194896697998, 0.6729696393013, -0.5834270119667053, -0.018748052418231964, 0.793377161026001, -0.8010476231575012, 0.7484028935432434, 0.22576819360256195, -0.21321433782577515, -0.00340661546215415, -0.7475860714912415, -0.06615571677684784, 0.15869879722595215, -0.26963597536087036, -0.19933757185935974, 0.5998513102531433, -0.20203262567520142, -0.04699969291687012, 0.027349110692739487, -0.21795007586479187, 0.2691398859024048, -0.3562839925289154, 0.5306820273399353, 0.7510640621185303, 0.061656396836042404, 0.19947102665901184, -0.2078714221715927, 0.3230190575122833, -0.016956651583313942, 0.23572702705860138, 0.0480620451271534, -0.896024227142334, -0.6229084730148315, -0.20360945165157318, 0.3106531500816345, 0.7379454374313354, -1.0877937078475952, 0.5541185736656189, -0.06330720335245132, -0.11732134968042374, -0.5472110509872437, -0.11766083538532257, 0.12495799362659454, 0.31575238704681396, 0.1226554661989212, 0.09706880152225494, -0.2502586841583252, -0.7130123972892761, -0.11857353150844574, -0.5140106678009033, -0.3510938882827759, 0.1118980124592781, 0.5007644295692444, -0.10311675071716309, 0.8251727223396301, -0.4701074957847595, 0.007794220931828022, -0.44941094517707825, 0.28713443875312805, 0.5255131721496582, 0.5187022686004639, -0.060600075870752335, -0.9240977168083191, 0.11616393178701401, -0.25282755494117737, -0.8548482656478882, -0.25327351689338684, -0.7109885215759277, 0.05885870382189751, 0.19857771694660187, 0.3577120900154114, -0.9717782735824585, 0.4199149012565613, 0.6227940917015076, -0.20361822843551636, 0.8262190818786621, -0.38089364767074585, 0.06073946878314018, -0.7369619011878967, -0.25513264536857605, 0.1958077996969223, -0.0044050621800124645, -0.39200785756111145, 0.05195565149188042, -0.15745952725410461, 0.03796054795384407, -0.205062136054039, 0.5044000148773193, -0.4665922522544861, -0.10497060418128967, -0.1530744433403015, -0.027594195678830147, -0.2507047653198242, 0.03864205256104469, 0.42028629779815674, 0.49090152978897095, 0.8247861862182617, -0.5013555884361267, 0.6987337470054626, 0.25589823722839355, -0.6812435388565063, 0.4845801591873169, -0.5318542122840881, -0.4177391231060028, -0.3334311246871948, 0.30647343397140503, -0.9742750525474548, -0.46995243430137634, 0.38809388875961304, -0.5388623476028442, 0.20654277503490448, -0.05200182646512985, -0.9928020238876343, -0.5309484004974365, 0.13399697840213776, 0.21324673295021057, 0.3677079379558563, -0.2506704330444336, 0.157968670129776, 0.014326524920761585, -0.31860023736953735, -0.5038658976554871, -0.7372338175773621, 0.29821449518203735, -0.19800707697868347, -0.582598865032196, 0.16210098564624786, -0.045641664415597916, -0.6471149325370789, -0.0004394873685669154, -0.038573361933231354, -0.0001557162031531334, 0.32166704535484314, 0.11975434422492981, 0.1735997200012207, -0.21025973558425903, 0.4280976355075836, 0.1573602259159088, -0.206881582736969, 0.13027673959732056, -0.470497190952301, 0.2910704016685486, 0.1630306839942932, -0.8570054173469543, -0.38399142026901245, 0.4609697163105011, -0.004746332298964262, 0.0457165390253067, 0.9678798913955688, 0.2769325375556946, -0.5455441474914551, -0.3598648011684418, -0.5602667331695557, -0.24684274196624756, -0.3717825710773468, 0.28964999318122864, -0.5862835049629211, -1.0577495098114014, 0.3714390695095062, -0.04020800441503525, -0.3373882472515106, 0.41352468729019165, 0.8353477716445923, -0.18695636093616486, 1.1255364418029785, 0.24579791724681854, 0.17929798364639282, -0.0248107872903347, 0.08015406876802444, 0.3780266344547272, -0.3721313178539276, -0.23136571049690247, -0.5741881728172302, 0.1941700577735901, -0.6203261613845825, -0.8089087009429932, 0.36810940504074097, 0.41798892617225647, -0.3319598436355591, 0.09290491789579391, -0.20937949419021606, 0.2722871005535126, 0.6597179174423218, 0.20562352240085602, 0.24505697190761566, -0.23851606249809265, 0.06116912513971329, 0.0864618644118309, -0.8566937446594238, -0.4579319655895233, 0.9111294150352478, 0.32205453515052795, 1.089939832687378, 0.28499993681907654, 0.39886099100112915, -0.043773800134658813, 0.20111976563930511, -0.5082791447639465, 0.5640460848808289, -0.01605156809091568, -0.7311797738075256, -0.5235881805419922, -0.9207471609115601, -1.0726335048675537, 0.17469125986099243, -0.2618822455406189, -0.9830596446990967, 0.27930742502212524, -0.087675541639328, -0.3496706783771515, 0.31778261065483093, -0.5791609287261963, 0.9108681678771973, -0.1652166247367859, -0.37014055252075195, 0.08855387568473816, -0.7685627341270447, 0.4649219512939453, -0.27712106704711914, 0.47646576166152954, -0.1502324789762497, 0.09376128017902374, 0.45436808466911316, -0.304311066865921, 0.9078000783920288, 0.03951709717512131, -0.3476729691028595, 0.4396308362483978, 0.18690234422683716, 0.49877095222473145, 0.40361422300338745, -0.2110125571489334, 0.027975142002105713, -0.11447905004024506, -0.38116735219955444, -0.4590800404548645, 0.39646440744400024, -0.46022042632102966, -0.9771687388420105, -0.4965539872646332, -0.7801427245140076, -0.6069192290306091, -0.0497756190598011, 0.21489186584949493, 0.026024335995316505, 0.16411565244197845, 0.12041734158992767, 0.8896746039390564, -0.8286113739013672, 0.2409392148256302, 0.5067181587219238, -0.03722856193780899, -0.18899203836917877, 0.6728686690330505, 0.04481004551053047, 0.39675235748291016, 0.8796344995498657, 0.3476528823375702, -0.3623138666152954, -0.699613630771637, -0.40457794070243835, 0.2572108209133148, -0.6745364665985107, -0.15089184045791626, -0.42325884103775024, -0.21441712975502014, -0.5182960033416748, -0.12130212038755417, 0.1174737736582756, -0.44022583961486816, -0.36412063241004944, -0.08078420162200928, 0.27652302384376526, 0.24418723583221436, -0.16766391694545746, 0.4132387638092041, -0.7283139228820801, 0.4608100652694702, 0.49300679564476013, 0.17412421107292175, -0.26509398221969604, -0.4365023076534271, 0.20616936683654785, -0.026502545922994614, -0.08490753173828125, -1.3459696769714355, 0.46760013699531555, 0.008436121046543121, 0.6973232626914978, 0.4623662233352661, 0.21951748430728912, 0.16431741416454315, -0.39234259724617004, 0.5687776803970337, 0.12816238403320312, -0.8057432174682617, 0.8236775994300842, -0.6672607660293579, 0.389111191034317, 0.17218469083309174, 0.6241128444671631, -0.22794762253761292, -0.7271528840065002, -0.6814315319061279, -0.7143876552581787, 0.2876952886581421, 0.3684259355068207, -0.04775334522128105, -0.29451286792755127, 0.4089509844779968, 0.12401238083839417, 0.2782844603061676, -0.6195988655090332, 0.091063492000103, 0.37994593381881714, -0.423759788274765, -0.37827372550964355, -0.3022315204143524, 0.01936059445142746, -0.16900549829006195, 0.49859949946403503, -0.23460477590560913, 0.27577832341194153, 0.08323109894990921, -0.028767935931682587, -0.011012662202119827, 0.5059172511100769, 0.4038791358470917, 0.8237151503562927, -0.23087629675865173, 0.4206593930721283, 0.002639888087287545, -0.019155608490109444, 0.09446153789758682, 0.35337769985198975, -0.18102115392684937, -0.002160537987947464, 0.6504089832305908, 0.7793342471122742, 0.15772190690040588, -0.9749356508255005, 0.5497372150421143, 0.24240508675575256, -0.33483177423477173, -0.3209008276462555, -0.0433863066136837, 0.33837205171585083, 0.3593026399612427, 0.3936227560043335, -0.23960600793361664, 0.023014891892671585, -0.6578142046928406, 0.12305177748203278, 0.3943827748298645, 0.01993163861334324, -0.00741360429674387, 0.8919926881790161, -0.316093385219574, -0.09244533628225327, 0.7378123998641968, -0.2805548906326294, -0.36948931217193604, 0.5366430878639221, 0.5359155535697937, 0.52302086353302, -0.34606224298477173, 0.47254490852355957, 0.05386676266789436, 0.5209865570068359, -0.47327324748039246, 0.5527132749557495, 0.09412968903779984, -0.9480538368225098, -0.9080228805541992, -0.6368476152420044, -0.5903394818305969, 0.07445438206195831, -0.21082042157649994, 0.05043747276067734, -0.33237868547439575, -0.2032804787158966, 0.13470903038978577, -0.2583400011062622, -0.3418903648853302, 0.27550801634788513, 0.27787691354751587, 0.7755324840545654, -0.9880390763282776, 0.7864288091659546, 0.3097105622291565, -0.45731431245803833, -0.5088791847229004, 0.05959787219762802, -0.06125748157501221, -0.7748537063598633, 0.6857756972312927, 0.022217832505702972, 0.4182002544403076, -0.12655654549598694, -0.7038962841033936, -0.5761719346046448, 0.43265897035598755, 0.5721907019615173, -0.91791170835495, 0.2823004722595215, 0.33695027232170105, 0.3181588351726532, 0.106170155107975, -0.00047406702651642263, 0.5694417953491211, 0.6347578763961792, 0.05553169548511505, -0.6599042415618896, 0.10774075239896774, 0.2950457036495209, 0.03058159165084362, 0.03119758702814579, -0.30790528655052185, 0.9815598726272583, -0.5789296627044678, -0.02417980134487152, 0.1713789403438568, 0.7712056040763855, 0.5769163370132446, 0.19467560946941376, 0.40182775259017944, 0.7228586673736572, 0.7864987254142761, -0.2817637026309967, 1.1852104663848877, 0.21167296171188354, 0.14456094801425934, 1.0134682655334473, -0.49585825204849243, 0.9660971164703369, 0.42984771728515625, -0.4930712580680847, 0.37418392300605774, 0.7801416516304016, -0.07642779499292374, 0.3561914563179016, 0.691660463809967, -0.7447932362556458, -0.745566725730896, 0.1918848603963852, -0.2696838676929474, 0.10911743342876434, 0.6312701106071472, -0.16877806186676025, -0.07489471882581711, 0.13418413698673248, -0.08736420422792435, -0.04319113492965698, -0.12146560847759247, 0.541254997253418, 0.29240095615386963, -0.6194082498550415, 0.3237045407295227, 0.33750423789024353, 0.3149099349975586, -0.4648740291595459, 0.0010675907833501697, -0.11865060031414032, 0.2908783555030823, -0.09393078088760376, -1.16359281539917, 0.25714823603630066, -0.15013711154460907, 0.0373237170279026, -0.09666729718446732, 0.617616593837738, -0.3013797998428345, -0.8174476027488708, -0.04364921897649765, 0.6361907720565796, 0.32685092091560364, -0.4032350182533264, -0.6278530955314636, 0.06580068171024323, -0.23167753219604492, -0.3477512001991272, 0.3279447555541992, 0.974911630153656, -0.4120959937572479, 1.0226538181304932, 0.5106315016746521, 0.36218973994255066, -0.010446885600686073, 0.4592844843864441, 0.4608161151409149, -0.5634873509407043, -0.2951808273792267, -0.9115169048309326, 0.22077292203903198, 0.22872643172740936, -0.07809145748615265, 0.7627047300338745, 0.2006216198205948, 0.626952588558197, -0.2097671926021576, 0.9217414259910583, 0.03170306980609894, 0.27158376574516296, -0.8007891178131104, 0.28866419196128845, -0.2795305550098419, 0.3705020248889923, -0.2370898723602295, -0.6778931021690369, -0.7159299254417419, 1.0444797277450562, -0.5531509518623352, 0.09774046391248703, 0.6045177578926086, 0.6851794719696045, 0.3115883469581604, 0.062483061105012894, 0.35273393988609314, 0.2795906960964203, 0.090263232588768, 1.0962685346603394, 1.0815351009368896, -0.1867303103208542, 0.31029215455055237, 0.08491741865873337, -0.45966240763664246, -0.15237243473529816, -0.9555389285087585, -0.5891531109809875, -0.6109665036201477, -0.5995336174964905, -0.31683775782585144, 0.3012080788612366, 0.3764447271823883, 0.4414512515068054, -0.7937515377998352, -0.024853667244315147, -0.4951415956020355, 0.5085646510124207, -0.3202645480632782, -0.24878303706645966, 0.35095617175102234, -0.2544420659542084, -0.4272080361843109, 0.25684866309165955, 0.2343488335609436, 0.006699132267385721, -0.2145824134349823, 0.14687813818454742, -0.10347248613834381, 0.10514175146818161, 0.47785860300064087, 0.14509771764278412, -0.6694714426994324, -0.4733884632587433, -0.42934149503707886, 0.16172422468662262, -0.372260183095932, 0.5908681154251099, -0.5537691116333008, 0.21069593727588654, 0.5819057822227478, 0.6319003105163574, 0.43465882539749146, -0.31476065516471863, 0.6058703660964966, -0.6182835102081299, 0.12541890144348145, 0.4293995201587677, 0.3792112469673157, 0.4225795269012451, -0.05844617262482643, 0.3168392479419708, 0.36808133125305176, -0.5767943263053894, -0.7868154048919678, 0.47831428050994873, -0.9428697824478149, -0.7937875390052795, 1.428758978843689, -0.24076199531555176, 0.05696897581219673, -0.287643700838089, 0.062036946415901184, 0.09949483722448349, 0.05413035303354263, 0.6038582921028137, 0.8670445680618286, -0.04807312786579132, -0.5493882298469543, -1.0253243446350098, 0.2597253620624542, 0.5138823986053467, -0.9507810473442078, 0.21803341805934906, 0.7409717440605164, 0.10209400951862335, -0.2615108788013458, 0.7044548988342285, -0.04364398866891861, 0.08861494809389114, 0.23978553712368011, -0.11449982970952988, 0.4790370464324951, -0.3861411511898041, -0.3087674677371979, 0.27553507685661316, 0.19363798201084137, 0.14626525342464447 ]
http://arxiv.org/abs/2402.09611v1
http://arxiv.org/pdf/2402.09611v1
Towards Privacy-Aware Sign Language Translation at Scale
2024-02-14T22:57:03
2024-02-14T22:57:03
Phillip Rust, Bowen Shi, Skyler Wang, Necati Cihan Camgöz, Jean Maillard
cs.CL
cs.CL, cs.AI, cs.CV, cs.LG
A major impediment to the advancement of sign language translation (SLT) is data scarcity. Much of the sign language data currently available on the web cannot be used for training supervised models due to the lack of aligned captions. Furthermore, scaling SLT using large-scale web-scraped datasets bears privacy risks due to the presence of biometric information, which the responsible development of SLT technologies should account for. In this work, we propose a two-stage framework for privacy-aware SLT at scale that addresses both of these issues. We introduce SSVP-SLT, which leverages self-supervised video pretraining on anonymized and unannotated videos, followed by supervised SLT finetuning on a curated parallel dataset. SSVP-SLT achieves state-of-the-art finetuned and zero-shot gloss-free SLT performance on the How2Sign dataset, outperforming the strongest respective baselines by over 3 BLEU-4. Based on controlled experiments, we further discuss the advantages and limitations of self-supervised pretraining and anonymization via facial obfuscation for SLT.
[ 0.0755307674407959, 0.015095566399395466, 0.2631306052207947, 0.28667163848876953, -0.36695849895477295, 0.13287055492401123, 0.027318524196743965, -0.47335636615753174, 0.2572754919528961, 0.6613211631774902, -0.4660368859767914, -0.5798285007476807, -0.8918136954307556, -0.1132599338889122, -0.5179323554039001, 1.154386043548584, 0.05939776450395584, 0.21223068237304688, 0.23515945672988892, -0.25449249148368835, 0.13586460053920746, -0.18919195234775543, -0.4949129521846771, 0.25820213556289673, 0.1561758667230606, 0.29614609479904175, 0.7947235703468323, 1.0073926448822021, 0.5047877430915833, 0.2042980045080185, 0.0527108833193779, -0.11128182709217072, -0.3111758828163147, 0.19068774580955505, -0.10754659026861191, -0.13173700869083405, -0.627759575843811, 0.054737187922000885, 0.8417675495147705, 0.39287930727005005, 0.12344560027122498, 0.5972301363945007, -0.0889451876282692, 0.6953921914100647, -0.4386196434497833, 0.2543084919452667, -0.41455161571502686, 0.12108030915260315, -0.41119617223739624, 0.3329441249370575, -0.13076002895832062, -0.413715660572052, -0.10383901000022888, -0.46853503584861755, 0.3993178904056549, 0.11642555892467499, 0.6223574876785278, 0.5411912798881531, -0.4668106138706207, 0.1022651270031929, -0.6628810167312622, 0.45826828479766846, -0.7696858644485474, 0.6578973531723022, 0.5166416168212891, 0.253214567899704, 0.3279383182525635, -0.6054158210754395, -0.19222024083137512, -0.09811091423034668, -0.24131478369235992, -0.022685633972287178, 0.21818913519382477, 0.1656128615140915, 0.3312082886695862, 0.546047568321228, -0.8877727389335632, 0.32047924399375916, -0.3919035494327545, -0.556290328502655, 0.7835567593574524, -0.028274593874812126, 0.1222769245505333, -0.05378313362598419, -0.5631438493728638, -0.0221828892827034, -0.43253830075263977, -0.0647311732172966, 0.19412226974964142, 0.5832529664039612, -0.45809000730514526, 0.546372652053833, -0.31510257720947266, 0.5583710670471191, 0.20410658419132233, -0.07472439110279083, 0.35783934593200684, -0.4559514820575714, 0.07208404690027237, 0.009798547253012657, 0.9180134534835815, 0.15973123908042908, 0.14198383688926697, -0.09624779224395752, -0.14109429717063904, -0.10362672060728073, -0.09023057669401169, -0.8958064317703247, -0.016364051029086113, 0.30917516350746155, -0.22086083889007568, 0.013282283209264278, -0.0014299910981208086, -0.5278002023696899, -0.7031251788139343, -0.24504713714122772, 0.37999093532562256, -0.14640220999717712, -0.48671865463256836, 0.11817783862352371, 0.16981056332588196, 0.22635714709758759, 0.18066002428531647, -0.9331265091896057, 0.43255430459976196, 0.6234133243560791, 0.8903734683990479, -0.38915255665779114, -0.2326834797859192, -0.6596709489822388, 0.17873439192771912, -0.020350899547338486, -0.11763114482164383, -0.02912568300962448, -0.04128064960241318, -0.1547604650259018, -0.04632177948951721, 0.01665894128382206, -0.1848812848329544, 0.03500960022211075, -0.2771223783493042, -0.0148775614798069, 0.010320167988538742, -0.39861953258514404, 0.38650110363960266, -0.03357692435383797, -0.5366056561470032, 0.7187525629997253, 0.23127326369285583, -0.44683125615119934, 0.4298188090324402, -0.4634443521499634, -0.7750823497772217, 0.40414246916770935, -0.084269218146801, -0.7632148265838623, 0.051794085651636124, 0.16566160321235657, 0.5449298620223999, 0.2076113522052765, 0.03619033843278885, -0.08941075205802917, -0.13429297506809235, -0.017380543053150177, -0.1632494330406189, 0.6589544415473938, 0.5004566311836243, -0.7051371335983276, -0.10669486969709396, -0.8305881023406982, 0.08037042617797852, -0.10952555388212204, 0.17946965992450714, -0.2825002670288086, -0.48911646008491516, -0.11279034614562988, 0.3040894865989685, 0.6344238519668579, -0.8799947500228882, -0.1970904916524887, -0.30505114793777466, 0.47870510816574097, 0.5330095887184143, -0.10965272784233093, 0.5854561924934387, 0.27907830476760864, 0.7474223971366882, -0.11206889897584915, 0.7421221733093262, -0.04128667339682579, -0.49042171239852905, -0.4686976671218872, -0.24263259768486023, 0.15513408184051514, 0.38764017820358276, -0.3807021379470825, 0.2772408425807953, -0.27476683259010315, -0.36375582218170166, -0.8468283414840698, 0.23235400021076202, 0.9126102924346924, 0.2949966490268707, 0.312865674495697, -0.7650590538978577, -0.11925370246171951, -0.6815179586410522, -0.46017754077911377, 0.022739851847290993, -0.09223992377519608, 0.050789572298526764, 0.17583738267421722, 0.33486995100975037, 0.7111152410507202, -0.43322673439979553, -0.8669594526290894, 0.2564064860343933, -0.048478707671165466, -0.1122598946094513, 0.7961415648460388, 0.09898644685745239, -1.0312633514404297, -0.7656040191650391, 0.14156529307365417, -0.5649516582489014, 0.03474466875195503, -0.23341795802116394, 0.19153203070163727, -0.16683560609817505, 0.5109571218490601, -0.35659900307655334, 0.4762009382247925, 0.900242030620575, -0.4078245162963867, 0.21359440684318542, -0.32464173436164856, -0.0557207390666008, -0.8807596564292908, -0.05933791399002075, -0.041342198848724365, -0.6562503576278687, -0.8610985279083252, 0.18284742534160614, 0.2764531970024109, -0.49719613790512085, -0.7048024535179138, 0.36265724897384644, -0.7757203578948975, -0.49990057945251465, -0.012795381247997284, 0.1867256909608841, -0.1461053341627121, 0.3045596480369568, 0.15825992822647095, 0.7221282720565796, 0.7001776099205017, -0.2574871778488159, -0.1510278731584549, 0.3488397002220154, 0.03212408348917961, 0.5532118082046509, -0.34521088004112244, 0.14850029349327087, -0.03486806899309158, -0.05204113572835922, -0.8440348505973816, -0.14314919710159302, 0.2183205485343933, -0.5363081097602844, 0.4869217574596405, -0.20842140913009644, -0.44902023673057556, -0.2762131989002228, -0.15014386177062988, 0.265889972448349, 0.44884398579597473, -0.3414769768714905, 0.40210965275764465, 0.442270964384079, -0.12907539308071136, -0.4621504843235016, -0.7711161375045776, 0.055154018104076385, -0.1879277229309082, -0.37835025787353516, -0.1410590261220932, 0.026503130793571472, 0.11496567726135254, -0.40732043981552124, -0.399535596370697, -0.15040217339992523, -0.10152910649776459, 0.42411893606185913, -0.1826750636100769, 0.05261347442865372, -0.17968443036079407, 0.0459839291870594, -0.41363781690597534, 0.022648653015494347, -0.5418119430541992, 0.1855267882347107, -0.5242719054222107, -0.4894614815711975, -0.7060986161231995, 0.1994175761938095, 0.5317344069480896, -0.5239713191986084, 0.601527214050293, 0.7766809463500977, -0.12100519239902496, 0.058516327291727066, -0.4630718529224396, -0.1258598417043686, -0.4962141811847687, 0.023503564298152924, -0.14169134199619293, -1.251190423965454, 0.38638749718666077, -0.035332754254341125, 0.3248538374900818, 0.04254697263240814, 0.37923479080200195, -0.02465604618191719, 0.8214453458786011, 0.37209656834602356, 0.1955414116382599, 0.584966778755188, -0.018773822113871574, 0.23893751204013824, -0.6527725458145142, -0.1533452570438385, -0.18169166147708893, -0.23665735125541687, -0.7144235372543335, -0.5631754994392395, 0.3323070704936981, -0.22453060746192932, -0.2126363068819046, 1.032730221748352, -0.7524058222770691, 0.4575692415237427, 0.4126138687133789, 0.2786368727684021, 0.5337368249893188, -0.1164969950914383, 0.47477516531944275, -0.2565411925315857, -0.24040600657463074, -0.13730086386203766, 1.1613903045654297, 0.38486307859420776, 0.6574959754943848, 0.1832805573940277, 0.9683939218521118, 0.3460208773612976, 0.18866561353206635, -0.2627529501914978, 0.6825776696205139, -0.4691930115222931, -0.8360227346420288, -0.9138375520706177, -0.35362544655799866, -0.8213038444519043, 0.4902854561805725, -0.0003978598688263446, -0.5759503245353699, 0.09580732882022858, 0.6420282125473022, -0.19142009317874908, 0.04027140140533447, -0.8696262836456299, 0.8206815719604492, -0.49226000905036926, -0.6037594676017761, -0.0014178757555782795, -1.47408127784729, 0.32463639974594116, -0.37874525785446167, 0.5175448060035706, -0.19236677885055542, -0.014535479247570038, 0.525684654712677, -0.6304561495780945, 1.0807710886001587, -0.42352357506752014, -0.22923453152179718, -0.061391521245241165, 0.2875830829143524, 0.5586612820625305, -0.00008285573130706325, 0.1968177855014801, 0.2566448450088501, 0.08546262979507446, -0.485395610332489, -0.43616941571235657, 0.6084477305412292, -0.46591565012931824, -0.5167648196220398, -0.3701591193675995, -0.5264537334442139, -0.2786608934402466, 0.422744482755661, 0.14000928401947021, -0.0006892883102409542, 0.05152669548988342, 0.04776335135102272, 0.7833340764045715, 0.19108200073242188, 0.18239738047122955, 0.7525960803031921, -0.08725769072771072, -0.19804291427135468, 1.1440237760543823, 0.021879874169826508, 0.7328479290008545, 0.31393927335739136, 0.4110543131828308, -0.5648707747459412, -0.67533940076828, -0.5389866232872009, 0.4451262652873993, -0.4265931248664856, -0.04087264463305473, -0.3201335370540619, -0.16600050032138824, -0.900383472442627, -0.07195731997489929, -0.8042451739311218, -0.7832584381103516, -0.07881756126880646, -0.2788337171077728, 0.43912333250045776, 0.4558468461036682, -0.5438112616539001, 0.5274682641029358, -0.37659358978271484, 0.4728631377220154, 0.22220560908317566, 0.5235409140586853, -0.3525266647338867, -0.47385352849960327, -0.2921304702758789, -0.08289208263158798, 0.1267901211977005, -0.46352624893188477, 0.17403028905391693, 0.24310584366321564, 0.019103435799479485, 0.5371235609054565, 0.19269540905952454, 0.6996090412139893, -0.5261622071266174, 0.8227902054786682, 0.4534676671028137, -0.8750020265579224, 0.5896896123886108, -0.4020814895629883, 0.3782196342945099, 0.8075225353240967, 0.2518381178379059, -0.5279780626296997, -0.7653307318687439, -0.6550490856170654, -0.8927106857299805, 0.6228526830673218, 0.4292770028114319, 0.1931048333644867, 0.3830772340297699, 0.2273777723312378, 0.2599126696586609, 0.4404617249965668, -0.984848141670227, -0.24793533980846405, -0.6224473714828491, -0.0035102323163300753, -0.16211260855197906, 0.3729483485221863, -0.0963483601808548, -0.23224015533924103, 0.47191140055656433, 0.05883974954485893, -0.4246136248111725, -0.06218194216489792, -0.24680283665657043, -0.010060504078865051, 0.09394407272338867, 0.4476514756679535, 0.3295893669128418, -0.06181555613875389, 0.10957703739404678, -0.04337243735790253, -0.8564105033874512, 0.19633789360523224, 0.07448164373636246, -0.5732817053794861, -0.1434621959924698, 0.10471908748149872, 0.8396015167236328, 0.08534368872642517, -0.32441282272338867, 0.8625526428222656, 0.18641646206378937, -0.2744612395763397, -0.2465982288122177, -0.11353856325149536, -0.09041955322027206, 0.12210367619991302, -0.12286379933357239, -0.13564938306808472, 0.08288375288248062, 0.10557050257921219, 0.42540252208709717, 0.21705643832683563, -0.5120449066162109, -0.3686094880104065, 1.216284155845642, 0.13909034430980682, -0.5740304589271545, 0.24837176501750946, -0.10900988429784775, -0.08458838611841202, 0.17465785145759583, 0.37055259943008423, 0.8025502562522888, -0.6628074049949646, 0.6450661420822144, 0.33869609236717224, 0.44274836778640747, -0.1706361621618271, 0.1384119987487793, -0.3818707764148712, -0.24337057769298553, -0.1710100769996643, -0.5286567807197571, -0.3566409647464752, 0.1417205035686493, -0.9549388289451599, -0.12582750618457794, -0.70888751745224, -0.13009855151176453, -0.4497971832752228, -0.4122711718082428, -0.7114929556846619, 0.3864971697330475, 0.2582475244998932, 0.3561462163925171, -1.1467562913894653, 0.7279401421546936, 0.2359447181224823, -0.3991991877555847, -0.5933973789215088, -0.18464313447475433, 0.1741304248571396, -1.0975171327590942, 0.2529558837413788, 0.07796387374401093, -0.22708047926425934, 0.38399219512939453, -0.38425973057746887, -1.1499484777450562, 1.0388832092285156, 0.3005658984184265, -0.6819324493408203, 0.04138052463531494, 0.704630434513092, 0.7462177872657776, -0.13022883236408234, -0.46255165338516235, 0.5841503143310547, 0.45690682530403137, 0.15708352625370026, -0.9633288979530334, 0.3441290259361267, 0.44320908188819885, 0.20267029106616974, 0.14229249954223633, -0.9131657481193542, 0.3565822243690491, -0.21702909469604492, -0.23372220993041992, -0.013874352909624577, 0.8108938932418823, -0.05303606390953064, 0.20580673217773438, 0.459611713886261, 0.33765876293182373, 0.47610652446746826, 0.2851113975048065, 0.5279286503791809, -0.33633390069007874, 0.27331921458244324, 1.2928409576416016, -0.2596934735774994, 0.5568047165870667, 0.60666424036026, -0.16890105605125427, -0.1752396672964096, 0.3898943364620209, 0.021356062963604927, 0.5209830403327942, 0.37171095609664917, -0.2589041292667389, -0.28535300493240356, -0.02346798963844776, -0.2853301465511322, 0.39508119225502014, 0.2038509100675583, -0.35226520895957947, -0.37181779742240906, 0.2677876055240631, 0.1167326271533966, 0.3923318684101105, -0.273081511259079, 0.6154559850692749, 0.3006322979927063, -0.2793874740600586, 0.4040108919143677, -0.30165737867355347, 0.37706536054611206, -0.8321053385734558, 0.32733580470085144, -0.2566264867782593, 0.13642776012420654, -0.292543888092041, -0.7356417775154114, 0.1841110736131668, -0.03464433550834656, 0.3938271999359131, -0.9934030175209045, 0.5073163509368896, -0.5450436472892761, -0.22569851577281952, 0.029155485332012177, 0.429624080657959, 0.8228799104690552, 0.08074600249528885, -0.7733736634254456, -0.06064631789922714, 0.024826103821396828, -0.30884110927581787, 0.7964450716972351, 0.30098897218704224, -0.2783617377281189, 0.594760000705719, 0.48321229219436646, 0.1672879159450531, 0.30380159616470337, 0.32769128680229187, 0.623266339302063, -0.293518602848053, -0.6572409868240356, -0.43751242756843567, 0.5252367854118347, -0.07120177894830704, -0.44757840037345886, 1.0675017833709717, 0.8083663582801819, 0.7863227128982544, -0.04495134577155113, 0.6488584876060486, -0.06560155004262924, 0.49789750576019287, -0.2521301507949829, 0.8497133851051331, -0.39247462153434753, -0.08286973088979721, -0.27387329936027527, -0.5651922821998596, -0.599833071231842, 0.3341673016548157, -0.08007007092237473, -0.35442593693733215, 0.43895694613456726, 0.8057996034622192, 0.0522482767701149, -0.09676993638277054, 0.5841701030731201, 0.13964146375656128, 0.143423929810524, 0.29587268829345703, -0.004989113658666611, -0.572154700756073, 0.6369727253913879, -0.19622673094272614, -0.45854756236076355, 0.1426890343427658, -0.9190598130226135, -0.7866209149360657, -0.8218926191329956, -0.6290207505226135, -0.25894802808761597, -0.13587909936904907, 0.3521935045719147, 0.7810633778572083, -0.7386531829833984, -0.23177948594093323, -0.07294938713312149, -0.1816117763519287, -0.4369466304779053, -0.1015402153134346, 0.48744839429855347, 0.09160210192203522, -0.5589665174484253, 0.39771801233291626, 0.2811625599861145, 0.34318676590919495, -0.4871383607387543, -0.1100013330578804, 0.14364898204803467, -0.34967532753944397, 0.45220914483070374, 0.8030053377151489, -0.6116593480110168, -0.33473294973373413, -0.3097424805164337, -0.0384071059525013, 0.05216853693127632, 0.7373461723327637, -0.40963014960289, 0.6488375663757324, 0.08453026413917542, 0.48032525181770325, 1.2032058238983154, 0.39893996715545654, 0.2665015459060669, -1.2400091886520386, 0.2500971853733063, 0.2604660391807556, -0.2263597697019577, 0.46812885999679565, -0.6002147793769836, 0.5640541911125183, 0.143891379237175, -0.32672128081321716, -0.6957488059997559, 0.546829879283905, -1.0467575788497925, 0.09252138435840607, 1.1375362873077393, -0.4047691524028778, -0.13808158040046692, -0.2589101791381836, 0.26726752519607544, 0.17406511306762695, -0.3115217089653015, 0.586689293384552, 0.2682749629020691, -0.28024083375930786, -0.2628820836544037, -0.3603494167327881, 0.6801726222038269, 0.2756747901439667, -0.49040791392326355, 0.5836753845214844, 0.3770049214363098, 0.3347337245941162, 0.07253870368003845, 1.0189005136489868, -0.37736383080482483, 0.09579259157180786, -0.018471913412213326, 0.0788080170750618, -0.3953869044780731, -0.25130996108055115, -0.3486737608909607, 0.0458885133266449, -0.013678444549441338, -0.5000104904174805 ]
http://arxiv.org/abs/2402.09609v1
http://arxiv.org/pdf/2402.09609v1
LogicPrpBank: A Corpus for Logical Implication and Equivalence
2024-02-14T22:36:07
2024-02-14T22:36:07
Zhexiong Liu, Jing Zhang, Jiaying Lu, Wenjing Ma, Joyce C Ho
cs.CL
cs.CL, cs.AI
Logic reasoning has been critically needed in problem-solving and decision-making. Although Language Models (LMs) have demonstrated capabilities of handling multiple reasoning tasks (e.g., commonsense reasoning), their ability to reason complex mathematical problems, specifically propositional logic, remains largely underexplored. This lack of exploration can be attributed to the limited availability of annotated corpora. Here, we present a well-labeled propositional logic corpus, LogicPrpBank, containing 7093 Propositional Logic Statements (PLSs) across six mathematical subjects, to study a brand-new task of reasoning logical implication and equivalence. We benchmark LogicPrpBank with widely-used LMs to show that our corpus offers a useful resource for this challenging task and there is ample room for model improvement.
[ -0.3154571056365967, -0.44339871406555176, 0.6436015963554382, 0.23170964419841766, -0.06115278601646423, -0.24046991765499115, -0.22106444835662842, -0.326315701007843, -0.3509887754917145, 0.5562033653259277, -0.27003568410873413, -0.13991625607013702, -0.6436972618103027, 0.37029120326042175, -0.43906888365745544, 0.8825347423553467, 0.10031857341527939, 0.18472523987293243, -0.5132355690002441, -0.02318659983575344, -0.3724624216556549, -0.5673863887786865, -0.4569568336009979, -0.32615694403648376, 0.008107747882604599, 0.10062903165817261, 0.945759654045105, 0.256344199180603, 0.7794783711433411, 0.3633562922477722, 0.1389104425907135, 0.14737847447395325, 0.09422556310892105, -0.045073311775922775, -0.7734640836715698, -0.38139766454696655, -0.27106666564941406, -0.15596312284469604, 0.44271084666252136, 0.9218565821647644, 0.12476997077465057, 0.4470592141151428, -0.28045132756233215, 0.5104484558105469, -0.7460725903511047, 0.2836490273475647, -0.6062915325164795, -0.1570608764886856, -0.07442694902420044, 0.18359331786632538, -0.539445161819458, -0.3837236166000366, 0.41880670189857483, -0.8765159249305725, 0.11272082477807999, 0.1705884337425232, 0.5296257734298706, 0.19640418887138367, -0.2554222047328949, -0.2610345780849457, -0.4547806978225708, 0.7444587349891663, -0.5587559342384338, 0.23365989327430725, 0.24301128089427948, 0.4397827684879303, -0.1127176359295845, -0.8032524585723877, -0.7203294634819031, 0.09320312738418579, -0.3301585018634796, 0.10585160553455353, -0.4570569097995758, -0.017997590824961662, 0.5065839886665344, -0.028582094237208366, -0.46300172805786133, -0.3317459523677826, -0.537788987159729, -0.39312970638275146, 0.42786312103271484, -0.20204061269760132, 0.17789757251739502, -0.5991680026054382, -0.3902932107448578, 0.03390054777264595, -0.6593787670135498, 0.10568496584892273, 0.48761942982673645, 0.28851550817489624, 0.15480639040470123, 0.6455187201499939, -0.0060613034293055534, 1.096009612083435, -0.3732828199863434, -0.25113582611083984, 0.21209487318992615, -0.14573675394058228, -0.13763484358787537, 0.36201515793800354, 0.27325522899627686, 0.28354236483573914, 0.4162430167198181, 0.4279637634754181, -0.39431867003440857, 0.4872952103614807, 0.13069882988929749, -0.4967834949493408, -0.3298614025115967, 0.33793553709983826, -0.3070208728313446, 0.2040705680847168, 0.1891680359840393, -0.3982512354850769, -0.45154568552970886, -0.703499972820282, 0.4572085738182068, -0.7226771712303162, -0.2994954586029053, 0.7375744581222534, -0.4378621280193329, 0.07857074588537216, 0.37175947427749634, -0.6639436483383179, 0.42316192388534546, 1.1977523565292358, 0.29007717967033386, -0.013813618570566177, -0.1374337375164032, -0.6575212478637695, -0.019219016656279564, -0.2864282727241516, 1.0790326595306396, -0.8321634531021118, -0.1824207752943039, 0.07259154319763184, -0.30332186818122864, -0.15753740072250366, -0.7835597991943359, 1.40804922580719, -0.30603018403053284, 0.1773500293493271, -0.2285517305135727, -1.0076512098312378, -0.161899134516716, 0.1365455687046051, -0.5254822969436646, 0.699312686920166, 0.11093838512897491, -0.5492430925369263, -0.12356185168027878, -0.5357874035835266, -0.31922468543052673, 0.25210103392601013, -0.24026939272880554, 0.040193989872932434, 0.24718724191188812, 0.148217111825943, 0.1694926917552948, -0.3087543845176697, 0.7129660248756409, -0.21516172587871552, -0.08263765275478363, 0.6346147060394287, -0.2018682360649109, 0.8570001125335693, 0.349829763174057, 0.07282477617263794, 0.15272429585456848, -0.7547022104263306, -0.20124073326587677, -0.07318982481956482, 0.17861291766166687, -0.47522440552711487, 0.04882843419909477, -0.14778932929039001, 0.42698633670806885, 0.47047215700149536, -0.6923452019691467, -0.039801448583602905, -0.47852882742881775, 0.6202559471130371, 0.5238181352615356, -0.3689781725406647, 0.08544330298900604, -0.43921321630477905, 0.21802225708961487, 0.1361946016550064, -0.061726704239845276, -0.17295128107070923, -0.5769369006156921, -0.508991539478302, -0.41713517904281616, 0.41518303751945496, 0.663497269153595, -0.4267444312572479, 0.39919620752334595, -0.07786045223474503, -0.16923558712005615, -0.6479817628860474, -0.04347105324268341, 0.408480703830719, 1.097434163093567, 0.3933083117008209, 0.24730990827083588, -0.6517987847328186, -1.303431749343872, -0.5663058161735535, 0.032193366438150406, -0.2372109293937683, 0.0705847516655922, 0.555662989616394, 0.2829868793487549, 1.209505319595337, -0.523607075214386, -0.2339649647474289, -0.2998693883419037, 0.017340997233986855, 0.5358090996742249, 0.4173303246498108, 0.3937130272388458, -0.9448287487030029, -0.10060779750347137, -0.48494526743888855, -0.6157469749450684, -0.38268542289733887, -0.14552591741085052, -0.2593880891799927, 0.04914248362183571, 0.29503509402275085, -0.7062745094299316, 0.3485977351665497, 0.27347490191459656, -0.3499032258987427, 0.6334627866744995, -0.3071209490299225, -0.16512824594974518, -0.6498209238052368, 0.07014026492834091, 0.2086951583623886, -0.23844172060489655, -0.477394700050354, -0.09987509995698929, 0.2383703738451004, -0.4587673246860504, -0.5590223073959351, 0.6989174485206604, -0.01044965349137783, -0.31935155391693115, -0.21158510446548462, 0.640758752822876, 0.1672499030828476, 0.28801456093788147, 0.4545213580131531, 0.605506181716919, 0.5774537324905396, -0.26639074087142944, 0.4758617579936981, 0.5238739848136902, -0.3611210286617279, 0.6639925241470337, -0.48612740635871887, -0.5306594371795654, -0.244233638048172, 0.3625790476799011, -0.9436328411102295, 0.006754780188202858, 0.18247349560260773, -0.30043917894363403, -0.3743151128292084, 0.04413604363799095, -0.57359379529953, -0.39056670665740967, 0.026709746569395065, 0.5634942650794983, 0.33328554034233093, -0.685947060585022, 0.8084217309951782, 0.1890559196472168, -0.270906925201416, -0.4249984323978424, -0.26601001620292664, -0.22571109235286713, -0.20245859026908875, -0.4811787009239197, 0.3639277219772339, 0.26115015149116516, -0.6841127872467041, 0.21335238218307495, -0.316150426864624, 0.14909423887729645, -0.05587632581591606, 0.16038042306900024, 0.7058857679367065, -0.06541453301906586, 0.3975563943386078, -0.14024485647678375, -0.4095091223716736, 0.4028519093990326, -0.6290956139564514, 0.2796342968940735, -0.6060134172439575, -0.3778949975967407, -0.28859832882881165, 0.21603012084960938, -0.0638674646615982, -0.5154009461402893, 0.5729936957359314, 0.12669970095157623, -0.7208119034767151, -0.1654110848903656, -0.30559542775154114, -0.0012849324848502874, -0.39517512917518616, -0.08844032138586044, -0.5882050395011902, -0.7060413956642151, 0.25740063190460205, -0.4399622082710266, 0.09740529209375381, 0.7246608138084412, 0.29852497577667236, 0.11715316772460938, 0.6283757090568542, -0.08200380206108093, 0.5239927172660828, -0.19830602407455444, 0.20991994440555573, 0.551030695438385, -0.5691765546798706, -0.11012248694896698, -0.5913184881210327, -0.0282784104347229, -0.38443541526794434, -0.3127186894416809, 0.19782638549804688, 0.3245607316493988, -0.42788127064704895, 0.5321335792541504, -0.5964012145996094, 0.5221560597419739, 0.5753312110900879, -0.11018381267786026, 0.49102097749710083, -0.2646816670894623, -0.0341765359044075, -0.28219830989837646, -0.44045549631118774, -0.6807727217674255, 1.035659909248352, 0.036444906145334244, 0.08826649934053421, 0.4005253314971924, 0.48667871952056885, 0.20642916858196259, 0.3604253828525543, -0.3189495801925659, 0.6442340612411499, -0.33468127250671387, -0.9601935148239136, -0.12626220285892487, -0.2627694308757782, -0.604155957698822, 0.43506935238838196, -0.4871593117713928, -0.8303486108779907, -0.13854557275772095, 0.21643143892288208, -0.7087858319282532, 0.11034148931503296, -0.9152929186820984, 1.231140375137329, -0.3213016986846924, -0.3592292368412018, -0.28749293088912964, -0.6013455986976624, 0.7066596150398254, -0.13416555523872375, 0.39051592350006104, -0.4121871292591095, -0.050018686801195145, 0.5550504922866821, -0.466952919960022, 0.5829371809959412, -0.036350008100271225, -0.06292346119880676, 0.6615358591079712, 0.17261990904808044, 0.12200973927974701, 0.2642117738723755, -0.16994374990463257, -0.14980866014957428, 0.5131556391716003, -0.4754751920700073, -0.6797252297401428, 0.49772319197654724, -0.5851391553878784, -0.7911449670791626, -0.6586209535598755, -0.5904419422149658, -0.3810095191001892, 0.30007216334342957, -0.25370651483535767, 0.7611279487609863, 0.17508698999881744, -0.009579738602042198, 0.6938811540603638, -0.40311139822006226, 0.22341111302375793, 0.1529417484998703, -0.524052083492279, -0.20637716352939606, 0.9377362728118896, -0.4193187654018402, 0.11090554296970367, 0.8252379298210144, 0.44421711564064026, -0.7925950884819031, -0.15714244544506073, -0.20971766114234924, 0.20165503025054932, -0.8471022248268127, -0.3313577175140381, -0.33363232016563416, -0.09339150786399841, -0.6475359201431274, -0.12834568321704865, -0.2961820065975189, -0.976418137550354, 0.06800317019224167, -0.14949408173561096, 0.3941607177257538, 0.1716228872537613, -0.25182271003723145, -0.01098645105957985, -0.6404936909675598, 0.670839786529541, 0.18665209412574768, 0.27671852707862854, -0.44216519594192505, -0.3948022723197937, 0.6009441018104553, -0.2757282853126526, -0.17601308226585388, -0.8122215867042542, 0.258506178855896, 0.07512430846691132, 0.4542654752731323, 0.3387751281261444, 0.4575289189815521, 0.34498172998428345, -0.4678054451942444, 0.21402408182621002, 0.28793200850486755, -1.2685054540634155, 0.5600681900978088, -0.4020858108997345, 0.033546410501003265, 0.40993794798851013, 0.4864239990711212, -0.4048452079296112, 0.17057748138904572, -0.8456963300704956, -0.43194013833999634, 0.30143114924430847, 0.2043905109167099, -0.2633572220802307, -0.22441454231739044, 0.19918349385261536, 0.3242989778518677, 0.4056726098060608, -0.41610217094421387, 0.0008005952113308012, -0.5214530229568481, -0.4464394748210907, 0.13629856705665588, 0.05741462856531143, -0.2185218632221222, -0.3489757180213928, 0.5872805118560791, -0.0956897959113121, 0.14898599684238434, 0.20864735543727875, -0.08635343611240387, 0.4067852199077606, 0.5442848801612854, 0.6115479469299316, 0.9779782295227051, -0.14300474524497986, 0.5029380321502686, 0.042613741010427475, 0.06831345707178116, -0.17802858352661133, 0.6598643064498901, -0.08808127045631409, -0.09782610833644867, 0.39915189146995544, 0.5599184036254883, 0.34402766823768616, -1.538150429725647, 0.6001101136207581, 0.23485246300697327, -0.381343275308609, -0.6402091383934021, -0.13139888644218445, 0.6120553612709045, 0.22052548825740814, 0.39557352662086487, 0.16631415486335754, 0.14497311413288116, -0.4991177022457123, 0.39935198426246643, 0.18693317472934723, 0.2474427968263626, 0.11699379980564117, 0.6510128378868103, 0.12691259384155273, -0.39100706577301025, 0.6640657782554626, -0.2343628853559494, -0.5909548401832581, 0.36873480677604675, 0.5217905044555664, 0.18565715849399567, 0.23554003238677979, 0.23187196254730225, 0.4872936010360718, -0.06468960642814636, -0.20140783488750458, 0.1424102634191513, 0.09418024867773056, -0.9119570255279541, -0.42215394973754883, -0.8640833497047424, -0.6361055374145508, -0.0121802669018507, -0.5700541138648987, 0.14540962874889374, -0.5434013605117798, -0.04839472472667694, 0.3826617896556854, -0.10908345133066177, -0.5611186027526855, 0.1313292533159256, 0.2329651415348053, 1.1170506477355957, -0.7855962514877319, 0.6668065786361694, 0.6849157214164734, -0.3060305118560791, -0.6806820034980774, -0.6536543965339661, -0.007892590016126633, -0.6971490979194641, 0.7932238578796387, 0.16644501686096191, -0.015134762972593307, -0.2976280748844147, -0.23950032889842987, -0.5417472124099731, 0.4998719394207001, 0.4882259964942932, -0.6415835618972778, 0.2909247577190399, 0.45985597372055054, 0.5428246855735779, -0.4374251961708069, -0.04254478961229324, 0.6636211276054382, 0.5882062911987305, -0.05110246688127518, -0.6463591456413269, 0.0028008848894387484, -0.2548747658729553, -0.19289487600326538, 0.18565011024475098, -0.23942355811595917, 0.9811097979545593, -0.039936259388923645, 0.01808873377740383, -0.03192654997110367, 0.972079873085022, 0.8023865818977356, 0.1937669962644577, 0.5701888203620911, 0.6694327592849731, 0.728654146194458, -0.2853792905807495, 0.8426761627197266, -0.36800140142440796, 0.07530109584331512, 1.2832130193710327, -0.6609955430030823, 1.0629302263259888, 0.3821961581707001, -0.18312379717826843, 0.3278381824493408, 0.5255286693572998, 0.09824076294898987, 0.09414999932050705, 0.6271089911460876, -0.45175692439079285, -0.940180242061615, -0.25684088468551636, -0.1797809600830078, 0.3016205430030823, 0.6160942912101746, -0.13578958809375763, -0.48801931738853455, -0.10337792336940765, -0.3517824113368988, 0.8265330195426941, -0.3276159167289734, 0.05045653507113457, 0.1739456057548523, -1.0119056701660156, 0.07243576645851135, 0.15542031824588776, 0.2510283291339874, -0.3881632387638092, -0.0427452027797699, 0.042350128293037415, 0.5517154335975647, -0.2520621716976166, -0.994825541973114, 0.4133993983268738, -0.0009958392474800348, 0.11734358966350555, -0.4410841763019562, 0.8844121098518372, -0.053098320960998535, -0.6791413426399231, 0.14564937353134155, 0.6828109622001648, 0.11429838091135025, 0.06599598377943039, -0.6367607712745667, -0.015157779678702354, -0.32285434007644653, 0.10667851567268372, 0.3200714886188507, 0.45396968722343445, -0.31929826736450195, 0.6527212262153625, 0.5768671035766602, -0.00702033331617713, 0.016513148322701454, 0.05293627083301544, 0.568988025188446, -0.5972565412521362, -0.2793551981449127, -0.5864331722259521, 0.015914294868707657, -0.16685552895069122, -0.5570104122161865, 0.5453987717628479, 0.8518050909042358, 1.0114750862121582, -0.03307829424738884, 0.8555010557174683, -0.003180429805070162, 0.8215422034263611, -0.36190709471702576, -0.2862253189086914, -0.2761775553226471, 0.2609497308731079, -0.2533929646015167, -0.6823233962059021, -0.515635073184967, 1.017695665359497, -0.8319242000579834, -0.5549216270446777, 0.8157307505607605, 0.4211483597755432, -0.1697489470243454, 0.6534334421157837, -0.01928154192864895, -0.2698154151439667, -0.020698174834251404, 0.884441077709198, 0.8673672676086426, -0.2166515737771988, 0.7293353080749512, -0.21440072357654572, -0.020843330770730972, 0.21631592512130737, -1.0958659648895264, -0.710254967212677, -0.6156322360038757, -0.33693575859069824, -0.35351383686065674, 0.0343891903758049, 1.2488394975662231, 0.10685042291879654, -0.8506268262863159, -0.08220239728689194, -0.08293736726045609, 0.14878682792186737, -0.30938994884490967, -0.11577383428812027, 0.5074273347854614, -0.24856983125209808, -0.5770267844200134, 0.12059462815523148, 0.2142677903175354, -0.2844212055206299, -0.034876611083745956, 0.19741645455360413, -0.2552710473537445, 0.03905466943979263, 0.47990521788597107, 0.4486650228500366, -0.7589981555938721, -0.4222041368484497, -0.22133809328079224, -0.05042470991611481, -0.1377614438533783, 0.9565065503120422, -0.8014338612556458, 0.04276396706700325, 0.5996561646461487, 0.8866420388221741, 0.2728264331817627, 0.3309479057788849, 0.423292338848114, -0.2728478014469147, 0.325361430644989, 0.3659072518348694, 0.6990261077880859, 0.3159416615962982, 0.2710168659687042, 0.45077240467071533, 0.38978275656700134, -0.06911621987819672, -0.6429303884506226, 0.5198253989219666, -0.9563782215118408, -0.7868394255638123, 0.9619423747062683, -0.08575223386287689, -0.2256128489971161, -0.016876617446541786, -0.21025261282920837, -0.05696500465273857, -0.383914053440094, 0.4363156855106354, 0.8273769021034241, -0.4332643449306488, -0.0849771797657013, -0.7017879486083984, 0.5526005029678345, 0.6898135542869568, -0.7932831048965454, 0.14856214821338654, 0.5921658873558044, 0.02043061889708042, 0.4670454263687134, 0.48655423521995544, -0.0986049622297287, 0.23180046677589417, 0.07472217082977295, -0.2833596169948578, 0.07051181048154831, -0.24478526413440704, -0.07380451261997223, 0.5007126331329346, -0.13066324591636658, 0.16262051463127136 ]
http://arxiv.org/abs/2402.09588v2
http://arxiv.org/pdf/2402.09588v2
Emerging Opportunities of Using Large Language Models for Translation Between Drug Molecules and Indications
2024-02-14T21:33:13
2024-02-16T20:55:08
David Oniani, Jordan Hilsman, Chengxi Zang, Junmei Wang, Lianjin Cai, Jan Zawala, Yanshan Wang
cs.AI
cs.AI, cs.CL
A drug molecule is a substance that changes the organism's mental or physical state. Every approved drug has an indication, which refers to the therapeutic use of that drug for treating a particular medical condition. While the Large Language Model (LLM), a generative Artificial Intelligence (AI) technique, has recently demonstrated effectiveness in translating between molecules and their textual descriptions, there remains a gap in research regarding their application in facilitating the translation between drug molecules and indications, or vice versa, which could greatly benefit the drug discovery process. The capability of generating a drug from a given indication would allow for the discovery of drugs targeting specific diseases or targets and ultimately provide patients with better treatments. In this paper, we first propose a new task, which is the translation between drug molecules and corresponding indications, and then test existing LLMs on this new task. Specifically, we consider nine variations of the T5 LLM and evaluate them on two public datasets obtained from ChEMBL and DrugBank. Our experiments show the early results of using LLMs for this task and provide a perspective on the state-of-the-art. We also emphasize the current limitations and discuss future work that has the potential to improve the performance on this task. The creation of molecules from indications, or vice versa, will allow for more efficient targeting of diseases and significantly reduce the cost of drug discovery, with the potential to revolutionize the field of drug discovery in the era of generative AI.
[ 0.05844225361943245, -0.7550603151321411, 1.06549072265625, -0.02554815635085106, -0.08798601478338242, 0.051270175725221634, -0.4998925030231476, -0.5966600179672241, 0.13561834394931793, 0.4838819205760956, -0.21870294213294983, -0.7324197888374329, -0.9372511506080627, 0.5099454522132874, -0.5039390921592712, 0.9268720149993896, -0.24400007724761963, 0.3795137107372284, -0.2444671392440796, -0.05102504417300224, -0.35292989015579224, -0.6258556246757507, -0.532328188419342, -0.644798219203949, 0.703953206539154, 0.02216222509741783, 0.27524450421333313, 0.5423448085784912, 0.9381009340286255, 0.370409220457077, -0.08602822571992874, 0.01682872138917446, -0.18662995100021362, 0.16114544868469238, -0.3617199659347534, -0.8077507615089417, -0.48534858226776123, -0.05409650504589081, 0.6931647658348083, 0.7622726559638977, -0.18198071420192719, -0.11998959630727768, -0.31592610478401184, 0.5733146071434021, -0.43002840876579285, 0.11126485466957092, -0.4533747732639313, 0.3548075556755066, -0.32945746183395386, 0.02595110610127449, -0.18217575550079346, -0.1095094233751297, 0.34702402353286743, -0.47358763217926025, 0.2049579620361328, 0.09780693054199219, 0.9052509665489197, 0.24626751244068146, -0.3462912440299988, -0.6480661630630493, -0.8106335997581482, 0.8438190817832947, -0.9940367937088013, 0.4177160859107971, -0.16370026767253876, 0.6298258900642395, -0.7755025625228882, -0.9303743839263916, -0.40459415316581726, -0.649968147277832, 0.01778254844248295, -0.1296951025724411, -0.20516200363636017, 0.10030744969844818, 0.18464802205562592, 0.4823949933052063, -0.2933019995689392, 0.32987314462661743, -0.3957078754901886, -0.29943087697029114, 0.3928491175174713, 0.26024875044822693, 0.6337352991104126, -0.1690329760313034, -0.589547336101532, 0.24266859889030457, -1.0208299160003662, -0.27054354548454285, -0.24676217138767242, 0.3858310580253601, -0.06214352324604988, 0.8559796810150146, -0.19755378365516663, 0.6634598970413208, -0.0590161457657814, -0.15278233587741852, 0.1035580188035965, -0.42537087202072144, -0.43489789962768555, 0.2925274968147278, 1.0002543926239014, 0.3694649934768677, -0.042391471564769745, -0.049358464777469635, -0.4146369993686676, -0.06521133333444595, 0.01646452024579048, -0.9629160165786743, -0.05021820589900017, 0.6562359929084778, -0.567123532295227, -0.38233187794685364, -0.29861214756965637, -0.7911558747291565, -0.6166644096374512, -0.13442261517047882, 0.3768855631351471, -0.5549328327178955, -0.0695013627409935, 0.22311970591545105, -0.029407590627670288, 0.12747535109519958, 0.3420100212097168, -0.970040500164032, 0.037917837500572205, 0.6490097045898438, 0.8428000211715698, -0.4105595052242279, -0.19543008506298065, -0.4596165716648102, 0.46753963828086853, -0.602952241897583, 0.9649169445037842, -0.5330817699432373, -0.517916202545166, 0.057741884142160416, -0.17473427951335907, 0.08769958466291428, -0.8515371084213257, 0.36406832933425903, -0.26127541065216064, 0.022206367924809456, -0.2745340168476105, -0.6699315905570984, -0.11210953444242477, 0.3977755010128021, -0.7823917865753174, 0.3457706868648529, 0.11950072646141052, -0.20153649151325226, 0.362962543964386, -0.8904086351394653, -0.38290777802467346, 0.12449966371059418, -0.21600832045078278, -0.24092818796634674, 0.39011621475219727, 0.10968063026666641, 0.368415892124176, -0.611946702003479, 0.4940221309661865, 0.0369136743247509, -0.16593199968338013, 0.8661553859710693, -0.28258252143859863, 0.499424546957016, 0.37081387639045715, -0.17197732627391815, 0.2730253040790558, -0.36252346634864807, -0.3083288073539734, 0.014927828684449196, -0.6299428939819336, -0.10368292033672333, -0.026013169437646866, 0.02399132028222084, 0.2124961018562317, 0.5031317472457886, -0.5112113356590271, 0.5201566815376282, -0.39144691824913025, 0.7409080266952515, 0.5903627872467041, 0.111382856965065, 0.24708601832389832, -0.018915319815278053, 0.6075509190559387, 0.23565062880516052, 0.01168886385858059, -0.15775759518146515, -0.5540367364883423, -0.5706128478050232, -0.29971227049827576, 0.6823385953903198, 0.44293197989463806, -0.6223915815353394, 0.21833781898021698, -0.37810298800468445, -0.10418340563774109, -0.48748940229415894, 0.24783708155155182, 0.3281678259372711, 0.12249387800693512, 0.3898680806159973, -0.13242357969284058, -0.3522580564022064, -0.8581323027610779, -0.30834224820137024, -0.03616372123360634, -0.07629375904798508, 0.24974611401557922, 0.5793666243553162, -0.6367470622062683, 0.45350754261016846, -0.5332542061805725, -0.6333374977111816, -0.5635865330696106, -0.2495449036359787, 0.25965332984924316, 0.15088586509227753, 0.3512952923774719, -0.7860904932022095, -0.36371779441833496, 0.33498257398605347, -0.8499025106430054, -0.19618168473243713, -0.07078182697296143, -0.19668032228946686, 0.07581494748592377, 0.7372484803199768, -0.8589761853218079, 0.0394488163292408, 0.513229250907898, 0.001771276816725731, 0.1001555398106575, -0.43482887744903564, 0.056787434965372086, -1.1959397792816162, 0.08802909404039383, 0.16391320526599884, -0.0916818305850029, -0.9235774874687195, 0.006539225112646818, -0.14346493780612946, -0.13344694674015045, -0.5232112407684326, 0.6824852228164673, -0.44402796030044556, 0.13353580236434937, -0.31950414180755615, 0.09411878883838654, -0.0664144903421402, 0.017072230577468872, -0.06374946236610413, 0.5698598623275757, 0.4190937876701355, -0.5330994129180908, 0.57967609167099, 0.15544453263282776, -0.363717645406723, 0.3297361135482788, -0.5275355577468872, -0.19162417948246002, 0.10361260175704956, 0.3572596311569214, -0.5840103030204773, -0.6071234941482544, 0.6281847953796387, -0.3447602689266205, 0.4276096522808075, -0.002903801156207919, -0.4673924148082733, -0.3750652074813843, 0.11198815703392029, 0.37416431307792664, 0.5726411938667297, -0.30890870094299316, 0.6008346676826477, 0.29167893528938293, -0.11426694691181183, -0.31802666187286377, -0.7821429371833801, 0.3011569678783417, -0.35981446504592896, -0.25267651677131653, 0.4848670959472656, 0.26382535696029663, -0.32477867603302, 0.11673717945814133, 0.04219050705432892, 0.1363544464111328, -0.09597288072109222, -0.06852121651172638, 0.3829652965068817, -0.15815502405166626, 0.2522081136703491, 0.12524110078811646, -0.2014954537153244, 0.11689788848161697, -0.5190690755844116, 0.43306082487106323, 0.07281576097011566, -0.17458723485469818, -0.28901416063308716, 0.5862647294998169, 0.6637499332427979, -0.36758852005004883, 0.5681899189949036, 0.2932516038417816, -0.39006689190864563, -0.2537941038608551, -0.18928292393684387, -0.03577937185764313, -0.44595101475715637, 0.5236185193061829, -0.30011534690856934, -0.53022301197052, 0.2772671580314636, -0.59649658203125, -0.30440694093704224, 0.3031943440437317, 0.9875568747520447, 0.16839659214019775, 0.8284299969673157, 0.5054500102996826, 0.0734788328409195, 0.25666654109954834, -0.22174464166164398, 0.588741660118103, -0.9474002718925476, -0.4645804762840271, -0.29964643716812134, -0.2659146189689636, -0.7458529472351074, -0.8391878604888916, 0.7309229969978333, -0.12689509987831116, 0.09686526656150818, 0.17426951229572296, -0.3446846306324005, 0.14754150807857513, 0.47225502133369446, 0.12056449800729752, 0.2418510764837265, -0.04267575964331627, -0.04083380475640297, 0.1890886127948761, -0.6235014200210571, -0.47138622403144836, 1.4184746742248535, 0.20690079033374786, 0.3895934224128723, 0.15354008972644806, 0.6409448981285095, 0.29732346534729004, 0.633644700050354, -1.0007325410842896, 0.7368617653846741, -0.36030828952789307, -0.6006904244422913, -0.15675291419029236, -0.3192604184150696, -1.0774600505828857, -0.1295691430568695, -0.39040490984916687, -0.5189933180809021, 0.2663354277610779, 0.09020525217056274, -0.22598379850387573, 0.23860949277877808, -0.6283749341964722, 0.7701477408409119, -0.6826512813568115, -0.0915621966123581, -0.21198928356170654, -0.5229610204696655, 0.10635444521903992, -0.29517513513565063, 0.040079861879348755, -0.3407585620880127, -0.08381770551204681, 0.38146623969078064, -0.2642471492290497, 0.6105988621711731, -0.09412103146314621, -0.6320187449455261, 0.18031606078147888, -0.3207421600818634, 0.39907601475715637, -0.2679601311683655, -0.12147149443626404, 0.37799307703971863, -0.25232359766960144, -0.3942469656467438, -0.7607246041297913, 0.6482449769973755, -0.43166112899780273, -0.7250002026557922, -0.4570339024066925, -0.6739919781684875, -0.08661478757858276, 0.43197062611579895, 0.3215290307998657, 0.23281006515026093, -0.281371146440506, -0.09127692133188248, 0.4491651654243469, -0.6100221276283264, 0.02801344357430935, 0.6121765375137329, -0.5057238340377808, -0.20387889444828033, 0.987016499042511, -0.1559896022081375, 0.4126087427139282, 0.8319870829582214, 0.30503055453300476, -0.31602567434310913, -1.1008058786392212, -0.45732131600379944, 0.23902757465839386, -0.5103821754455566, -0.20225264132022858, -0.20375663042068481, -0.04598580300807953, -0.43636494874954224, -0.04465942829847336, -0.36723974347114563, -0.09636082500219345, 0.16946189105510712, 0.11557680368423462, 0.2833828330039978, 0.7330060005187988, -0.07306569069623947, -0.17541657388210297, -0.8658295273780823, 0.5601297616958618, -0.08334887772798538, 0.2653379440307617, -0.25217360258102417, -0.0072446558624506, -0.4596326947212219, 0.36335501074790955, -0.11181614547967911, -0.7464526891708374, 0.394502729177475, 0.1826840043067932, 0.6448220014572144, 0.603179931640625, -0.3260756731033325, 0.16227683424949646, -0.717424750328064, 0.6067802309989929, 0.19923552870750427, -0.7550305724143982, 0.7805027365684509, -0.5159264802932739, 0.082347072660923, 0.15160784125328064, 0.40821436047554016, -0.6858232021331787, -0.342896968126297, -0.2048163264989853, -0.9121227264404297, 0.3295397460460663, 0.3344669044017792, 0.010661836713552475, 0.05494014546275139, 0.4999026656150818, 0.014388380572199821, 0.29738253355026245, -0.37580448389053345, -0.2276538759469986, 0.06635202467441559, -0.24006906151771545, -0.07413727790117264, 0.03327611833810806, -0.4362383782863617, 0.09192995727062225, 0.41991138458251953, 0.02402641624212265, 0.6964349150657654, 0.21988753974437714, 0.04468446969985962, 0.04809650033712387, 0.5136198401451111, 0.5843347907066345, 0.38365933299064636, -0.13350018858909607, -0.14709536731243134, -0.15708142518997192, -0.642855703830719, 0.30176591873168945, 0.4081901013851166, -0.4182969927787781, -0.20577536523342133, 0.46981462836265564, 0.5999498963356018, -0.3451811373233795, -1.0918728113174438, 0.1568223387002945, 0.282715767621994, 0.0043977233581244946, -0.2929413616657257, 0.162827268242836, -0.059834349900484085, 0.5156204104423523, 0.13311396539211273, -0.09637095779180527, 0.32161498069763184, -0.8360011577606201, -0.11837178468704224, 0.4652538299560547, -0.22079668939113617, -0.17862433195114136, 0.6309996247291565, 0.26092633605003357, -0.49869945645332336, 0.6944263577461243, -0.032614704221487045, -0.5215514898300171, 0.6951675415039062, 0.6560981869697571, 0.8683998584747314, -0.44163867831230164, 0.15235882997512817, 0.04659049212932587, -0.060265496373176575, 0.024292508140206337, -0.1427268385887146, 0.26769351959228516, -0.8779683709144592, -0.23546487092971802, -0.5507652759552002, -0.4615529477596283, 0.10858389735221863, -0.2593008577823639, 0.3519054651260376, -0.19857874512672424, -0.18027454614639282, 0.4338306188583374, -0.20340308547019958, -0.25245630741119385, 0.14834566414356232, 0.28170591592788696, 0.5306794047355652, -0.7774167656898499, 1.021718978881836, 1.0067310333251953, -0.3640410602092743, -0.608062207698822, 0.19190523028373718, 0.03606906533241272, -0.5898116827011108, 0.6595789790153503, -0.017540523782372475, 0.020441869273781776, -0.2932140529155731, -0.3646220862865448, -0.9363785982131958, 1.2419638633728027, 0.20695267617702484, -0.6518309712409973, -0.1969950795173645, 0.617310106754303, 0.8600243926048279, -0.679796040058136, -0.19682976603507996, 0.8279178738594055, 0.6044400930404663, 0.09394415467977524, -0.7357934713363647, 0.21709537506103516, -0.3759494423866272, 0.1975669413805008, 0.447676420211792, -0.4691791534423828, 0.8717340230941772, -0.5061568021774292, 0.06469413638114929, 0.4862842559814453, 0.384438693523407, 0.3525497019290924, 0.35537126660346985, 0.09003940224647522, 0.349007785320282, 0.7075038552284241, -0.2507261335849762, 1.2789925336837769, -0.27906402945518494, 0.28335943818092346, 0.6555324792861938, -0.5180809497833252, 0.7338032126426697, 0.5674693584442139, -0.39437276124954224, 0.5332239866256714, 0.5627849102020264, -0.5055279731750488, 0.5422202944755554, 0.4759233891963959, -0.6075182557106018, -0.12379825115203857, -0.30215486884117126, -0.22206047177314758, 0.3642657697200775, 0.9773266911506653, -0.6026285290718079, -0.04065992310643196, 0.31371620297431946, -0.05227448791265488, -0.062189046293497086, -0.2720349431037903, 0.5924481749534607, 0.410165399312973, -0.6578648090362549, 0.43693071603775024, 0.3579872250556946, 0.15526100993156433, -0.6645287871360779, -0.30622315406799316, -0.1956409513950348, 0.3714386522769928, -0.08325761556625366, -0.38401561975479126, -0.10849177092313766, -0.07586728781461716, 0.02503349632024765, 0.131578728556633, 0.6702760457992554, -0.5803727507591248, -0.66716068983078, 0.31869038939476013, 0.2710484564304352, 0.26534751057624817, 0.27438318729400635, -0.5791072249412537, 0.08110397309064865, 0.013120354153215885, 0.09163547307252884, 0.2737908959388733, 0.757064938545227, -0.14389073848724365, 0.8924441933631897, 0.6189520359039307, 0.5519899129867554, -0.14757685363292694, -0.10919538140296936, 0.7490624785423279, -0.6558523178100586, 0.06018733233213425, -0.7922369837760925, 0.1653144359588623, 0.1186894103884697, -0.02072524093091488, 0.6564800143241882, 0.582709014415741, 0.37455907464027405, -0.20950742065906525, 0.9098082780838013, -0.037552449852228165, 0.2865161597728729, -0.867963969707489, 0.4603950083255768, -0.5284891724586487, 0.5688629746437073, -0.098817840218544, -0.7955446243286133, -0.44328269362449646, 0.28014475107192993, -0.32984021306037903, 0.10000917315483093, 0.9115387797355652, 0.627677321434021, 0.17456699907779694, -0.28317996859550476, 0.1467687487602234, 0.6319835782051086, 0.6211709380149841, 1.1047688722610474, 0.7635660767555237, -0.3823736310005188, 0.37981751561164856, -0.016383405774831772, 0.13378211855888367, -0.37606072425842285, -0.67964768409729, -0.7966980338096619, -0.26727986335754395, -0.17964042723178864, -0.5346805453300476, 0.23093652725219727, 1.0796849727630615, 0.34999096393585205, -1.015598177909851, -0.25214993953704834, -0.27654731273651123, 0.02273796871304512, -0.19726282358169556, -0.08127108216285706, 0.4480735659599304, -0.10592084378004074, -1.0358023643493652, 0.40846478939056396, 0.4738541841506958, 0.30334746837615967, -0.38122284412384033, 0.00676679378375411, -0.19207456707954407, -0.017801351845264435, 0.741723358631134, 0.25921398401260376, -0.825773298740387, -0.06389046460390091, 0.09132058918476105, -0.1535460650920868, 0.09593304991722107, 1.1432887315750122, -0.5967521071434021, 0.4021158814430237, 0.28731122612953186, 0.6258071660995483, 0.39603352546691895, -0.09289848059415817, 1.1713347434997559, 0.01154208742082119, 0.014352666214108467, 0.3321478068828583, 0.277365505695343, 0.356781542301178, -0.3486005365848541, 0.4569999575614929, 0.013285569846630096, -0.4103550910949707, -0.5795297622680664, 0.3323071002960205, -0.859853982925415, -0.4980926513671875, 1.3447107076644897, -0.21862417459487915, -0.28532901406288147, -0.03923704847693443, -0.12081822007894516, 0.19968979060649872, -0.42914479970932007, 0.9262375235557556, 0.6055876016616821, -0.33067870140075684, 0.1896287500858307, -0.7806586027145386, 0.6084017753601074, 0.25712960958480835, -0.9918967485427856, -0.02300327457487583, 0.6038123965263367, 0.10097062587738037, 0.32427942752838135, 0.696282684803009, -0.4388110637664795, 0.14878766238689423, -0.25546035170555115, 0.03718001767992973, 0.23548206686973572, -0.32663238048553467, -0.2994465231895447, -0.08702898770570755, 0.16041946411132812, -0.0868765190243721 ]
http://arxiv.org/abs/2402.09573v2
http://arxiv.org/pdf/2402.09573v2
Changes by Butterflies: Farsighted Forecasting with Group Reservoir Transformer
2024-02-14T20:48:58
2024-06-13T21:22:02
Md Kowsher, Abdul Rafae Khan, Jia Xu
cs.LG
cs.LG, cs.CL
In Chaos, a minor divergence between two initial conditions exhibits exponential amplification over time, leading to far-away outcomes, known as the butterfly effect. Thus, the distant future is full of uncertainty and hard to forecast. We introduce Group Reservoir Transformer to predict long-term events more accurately and robustly by overcoming two challenges in Chaos: (1) the extensive historical sequences and (2) the sensitivity to initial conditions. A reservoir is attached to a Transformer to efficiently handle arbitrarily long historical lengths, with an extension of a group of reservoirs to reduce the sensitivity to the initialization variations. Our architecture consistently outperforms state-of-the-art models in multivariate time series, including TimeLLM, GPT2TS, PatchTST, DLinear, TimeNet, and the baseline Transformer, with an error reduction of up to -59\% in various fields such as ETTh, ETTm, and air quality, demonstrating that an ensemble of butterfly learning can improve the adequacy and certainty of event prediction, despite of the traveling time to the unknown future.
[ -0.524154543876648, -0.13283073902130127, 0.3348867893218994, 0.4250606298446655, -0.2771591246128082, 0.021406345069408417, 0.2837158143520355, -0.5486356616020203, 0.45510339736938477, 0.39983969926834106, -0.9911873936653137, 0.019978580996394157, -0.7528907060623169, 0.07722987234592438, -0.46200767159461975, 0.983630359172821, 0.0553017221391201, -0.18434005975723267, 0.7718777060508728, 0.33511364459991455, -0.06103266030550003, -0.16885536909103394, -0.5043998956680298, -0.4169311225414276, 0.7481170296669006, -0.22149725258350372, 0.8955849409103394, 0.555485725402832, 0.6326873302459717, 0.2824527621269226, -0.12041232734918594, 0.10500692576169968, -0.5796627998352051, 0.2587961256504059, 0.1221918836236, -0.492693156003952, 0.06087120622396469, -0.46051305532455444, 0.49187326431274414, 0.5791416764259338, -0.23658351600170135, -0.099188432097435, 0.02788613736629486, 0.8249820470809937, -0.7507830858230591, 0.408610075712204, -0.5685406923294067, 0.4917904734611511, -0.10459725558757782, -0.30520695447921753, -0.33208948373794556, -0.08714018762111664, 0.2998364269733429, -0.8213171362876892, 0.41062983870506287, -0.017347736284136772, 0.7105222940444946, 0.5309211015701294, -0.592627763748169, 0.04712355509400368, -1.1240822076797485, 0.8529229164123535, -0.20644429326057434, 0.7923229336738586, 0.05283329635858536, 0.6264129877090454, -0.3748314678668976, -0.7650038003921509, -0.41209709644317627, 0.38267892599105835, 0.2995799481868744, 0.6456124186515808, -0.4615868330001831, -0.22390548884868622, 0.01811389811336994, 0.21068990230560303, -0.33137592673301697, 0.18453319370746613, -0.6089064478874207, -0.05887250602245331, 0.46753808856010437, 0.5144913792610168, -0.3269210159778595, -0.21901844441890717, -0.38213974237442017, -0.26898014545440674, -0.5089197754859924, 0.3147297501564026, 0.3744320571422577, 0.6806634068489075, -0.026110736653208733, 0.18713122606277466, 0.12453380227088928, 0.33880841732025146, 0.4801391363143921, 0.009892765432596207, -0.17282046377658844, 0.37872689962387085, -0.25142648816108704, -0.15468578040599823, 0.42678701877593994, 0.5794433355331421, -0.3166099786758423, -0.550312876701355, -0.0929839164018631, -0.1315665990114212, -0.01117004919797182, -0.9942585229873657, -0.3946385979652405, -0.014708034694194794, -0.43352994322776794, -0.3107694387435913, 0.06092998385429382, -1.4774091243743896, -0.7838467955589294, -0.17926080524921417, 0.28781914710998535, -0.22464829683303833, -0.23540672659873962, -0.026511117815971375, -0.3240739107131958, 0.1321469396352768, 0.37290191650390625, -1.1374754905700684, 0.06885816156864166, 0.6772344708442688, 1.0203269720077515, -0.19042827188968658, -0.39188170433044434, -0.20630401372909546, 0.5693817734718323, -0.4409022033214569, 1.0270476341247559, -0.12903372943401337, -0.8340880870819092, -0.0786907970905304, -0.02208307757973671, 0.10986124724149704, -0.47268834710121155, 0.11912186443805695, -0.6286259293556213, -0.0012216040631756186, 0.04893992468714714, -0.15689048171043396, -0.16372278332710266, -0.15664705634117126, -0.8852342367172241, 0.39218786358833313, 0.22446395456790924, -0.361392617225647, 0.7795208692550659, -0.6905612349510193, -0.31525155901908875, -0.4612784683704376, 0.3149106800556183, -0.8171350955963135, 0.2965370714664459, 0.5436791777610779, 0.4649697542190552, -0.008785479702055454, 0.2914075255393982, -0.7031356692314148, -0.3263612389564514, 0.2748069167137146, -0.5924543142318726, 0.638032078742981, 0.20027576386928558, 0.20085547864437103, 0.059170544147491455, -0.7447102665901184, -0.296625018119812, -0.2653672695159912, 0.06390026956796646, -0.13540658354759216, 0.3404892385005951, 0.25803765654563904, 0.1168169304728508, -0.4117746651172638, -0.10079015791416168, 0.5554026961326599, -0.4840173125267029, 0.6332648992538452, 1.301670789718628, 0.5065178275108337, 0.47239214181900024, -0.3909991383552551, 0.4458448886871338, 0.51533043384552, 0.9212808609008789, -0.20560158789157867, -0.4133695960044861, -0.6631513237953186, -0.4016376733779907, -0.2703024744987488, 0.3402289152145386, -0.48525187373161316, 0.1817934662103653, -0.4840295910835266, -0.7516434788703918, -0.11224713176488876, -0.11184407770633698, -0.6538670063018799, 0.09074759483337402, 0.615911602973938, 0.1816728115081787, -0.8690019249916077, -0.536965012550354, -0.2093122899532318, -0.08020160347223282, -0.1084117665886879, -0.23551245033740997, 0.3366066515445709, -0.5522357225418091, 0.9563358426094055, -0.8394527435302734, -0.2321123480796814, 0.2991715371608734, 0.43196189403533936, 0.7352414727210999, 0.12420486658811569, 0.49255672097206116, -0.9758150577545166, -0.25747793912887573, -0.13800261914730072, -0.4333959221839905, 0.440159410238266, -0.09397659450769424, 0.24251317977905273, 0.19931045174598694, 0.15343081951141357, -0.5436874032020569, 0.4788168668746948, 0.7209908366203308, 0.09440770745277405, 0.25920215249061584, 0.2206227332353592, 0.22880464792251587, -1.4443390369415283, -0.38773953914642334, -0.15545803308486938, 0.40230831503868103, -0.5359159111976624, -0.4458877444267273, -0.020444344729185104, -0.3194558620452881, -0.23083674907684326, 0.21624362468719482, -0.3534696102142334, 0.2205694168806076, 0.004068367183208466, -0.719355046749115, -0.43090394139289856, 0.17509636282920837, -0.13780970871448517, 0.6677250862121582, 0.656010627746582, -0.6999537348747253, 0.4069094657897949, 0.12752941250801086, -0.24127833545207977, 0.027254750952124596, -0.1520697921514511, 0.07614006847143173, -0.18347908556461334, 0.33167657256126404, -0.6583443284034729, -0.15290480852127075, 0.08939988166093826, -0.3034634590148926, 0.5510220527648926, -0.11363597959280014, -0.03412249684333801, -0.8156757354736328, -0.43515437841415405, 0.0048499805852770805, 0.42591774463653564, -0.7321780323982239, 1.1979999542236328, -0.18917642533779144, -0.030489016324281693, -0.9371888637542725, -0.9313755631446838, 0.13491322100162506, -0.45849665999412537, -0.2840290069580078, -0.039054565131664276, 0.053736038506031036, -0.14750118553638458, -0.11992073804140091, -0.3474900722503662, -0.6128243207931519, 0.07496973872184753, 0.8004724383354187, 0.31801605224609375, -0.16382260620594025, 0.28855010867118835, 0.0770125612616539, -0.36826273798942566, -0.10150603950023651, -0.5923384428024292, 0.2363852560520172, 0.15699777007102966, -0.32569679617881775, -0.22731395065784454, 0.4674805700778961, 0.6317948698997498, 0.09965742379426956, 0.8101955056190491, 0.3448152244091034, -0.40613850951194763, -0.29094600677490234, -0.3165997266769409, -0.514177680015564, -0.5018010139465332, 0.571624755859375, -0.3351821303367615, -0.9908656477928162, 0.964107096195221, -0.23393018543720245, -0.1291724145412445, 0.6445070505142212, 0.27966365218162537, -0.18832626938819885, 0.6498597264289856, 0.8156653046607971, -0.5145295262336731, 0.5970587134361267, -0.3860488533973694, 0.5033703446388245, -0.5603948831558228, -0.18497124314308167, -0.38234999775886536, -0.16943074762821198, -0.7869896292686462, -0.3333338797092438, 0.5169742703437805, 0.22467413544654846, -0.41543343663215637, 0.15881288051605225, -0.4330604374408722, 0.2725045382976532, -0.03792790696024895, 0.2159944325685501, 0.23869188129901886, -0.052405428141355515, 0.5934139490127563, -0.327567458152771, -0.3656681180000305, 0.05617712438106537, 1.3544721603393555, -0.010319049470126629, 0.9942697286605835, 0.19682981073856354, 0.8721472024917603, 0.34342315793037415, 0.8545767664909363, -0.5227128863334656, -0.0017167867626994848, -0.08559241890907288, -0.7275348901748657, -0.4209842085838318, -0.27884441614151, -1.0239143371582031, 0.1243986040353775, -0.2214234471321106, -0.8995963931083679, 0.557762861251831, 0.27065983414649963, -0.705140233039856, 0.6361645460128784, -0.25503721833229065, 0.34443163871765137, -0.11906656622886658, -0.252541720867157, -0.10566908121109009, -0.4916367530822754, 0.27818429470062256, -0.6531140208244324, 0.06119156628847122, 0.12160767614841461, -0.23372088372707367, 0.10583782941102982, -0.03587121516466141, 0.8574556112289429, -0.1215069591999054, 0.02454792521893978, 0.1537618190050125, 0.057371143251657486, 0.5766613483428955, 0.013208714313805103, -0.3225416839122772, 0.22444406151771545, -0.3609021008014679, -0.14709512889385223, -0.8819787502288818, 0.5734448432922363, -1.1028608083724976, -0.5155959129333496, -0.5209004282951355, -0.5959265232086182, -0.097508005797863, -0.010963809676468372, 0.6150151491165161, 0.19495560228824615, -0.1985984891653061, 0.0006986754015088081, 0.3999856114387512, 0.2388172298669815, 0.7863351106643677, 0.49442410469055176, -0.5708198547363281, -0.7804786562919617, 0.6503888964653015, 0.38720718026161194, 0.016140766441822052, 0.9059086441993713, 0.06784657388925552, -0.42547905445098877, -0.5772307515144348, -0.030311111360788345, -0.19989994168281555, -0.5734360814094543, -0.3866005539894104, -0.33494943380355835, 0.04522167891263962, -0.5001575350761414, -0.21974508464336395, -0.30925846099853516, -0.2148868590593338, -0.4451885521411896, -0.10539243370294571, 0.20864292979240417, 0.8303294777870178, -0.3600102961063385, 0.619382917881012, -0.8609810471534729, 0.04330121725797653, 0.456240177154541, 0.2936049997806549, -0.1702764332294464, -0.31596362590789795, -0.22687584161758423, -0.06637179106473923, -0.8609787225723267, -1.1232562065124512, 0.44199517369270325, 0.15927118062973022, 0.3442354202270508, 0.9764161109924316, 0.04975654184818268, 1.1550909280776978, -0.45819851756095886, 0.7064752578735352, 0.6759535074234009, -1.0981552600860596, 0.4948112964630127, -0.5486260652542114, -0.03326364979147911, -0.08431655168533325, 0.2726942002773285, -0.41416844725608826, -0.26494312286376953, -0.48879173398017883, -0.7453922033309937, 0.3523312509059906, 0.10760415345430374, -0.11063353717327118, 0.38494443893432617, 0.5553516149520874, 0.20981404185295105, 0.2207821160554886, -0.7683427333831787, -0.2638646364212036, -0.6492171883583069, 0.35781872272491455, -0.7838762402534485, -0.013805363327264786, 0.18397106230258942, -0.20594429969787598, 0.6504979133605957, -0.11821042746305466, 0.5454955697059631, 0.02856941893696785, 0.4575681686401367, -0.7289931774139404, 0.2809450924396515, 0.6666321158409119, 0.6823646426200867, -0.3280770182609558, -0.14019784331321716, 0.5383912920951843, -0.18226870894432068, 0.24234922230243683, 0.6641258597373962, -0.020803555846214294, -0.06312362849712372, 0.6267129778862, 0.7133567333221436, 0.02374206855893135, 0.07184486091136932, 0.11592137813568115, 0.08781743049621582, 0.12998613715171814, -0.38335663080215454, -0.15013998746871948, 0.09419422596693039, 0.7423568367958069, 0.9526882171630859, 0.5502671003341675, 0.39621710777282715, -0.3143463134765625, 0.006916852667927742, 0.042976364493370056, -0.6061439514160156, -0.49391645193099976, 0.7566695809364319, 0.07548674196004868, -0.13495919108390808, 0.5589975118637085, 0.2262926697731018, -0.4609090983867645, 0.6297463774681091, 0.6255117654800415, 1.0000771284103394, -0.9849956631660461, -0.2725204527378082, 0.0844356119632721, 0.5931194424629211, 0.11845827102661133, 0.02534624934196472, 0.02338257059454918, -0.5077300667762756, -0.4877166748046875, -0.4875103831291199, -0.37584516406059265, 0.38164305686950684, -0.8057475686073303, 0.23526491224765778, -0.31964927911758423, -0.48981544375419617, 0.21863427758216858, -0.11174280941486359, -0.3045852482318878, 0.030161308124661446, -0.041356056928634644, 0.8620688915252686, -1.2750017642974854, 0.5460854172706604, 0.5615785121917725, -0.22689904272556305, -0.914623498916626, 0.1383674293756485, 0.03382938355207443, -0.5619876384735107, 0.4664384424686432, 0.14475210011005402, -0.16116149723529816, -0.2604976296424866, -0.29021817445755005, -0.6842870116233826, 1.2117799520492554, 0.38484901189804077, -0.9211592674255371, 0.03112957254052162, 0.18473465740680695, 0.6187284588813782, 0.1093553677201271, 0.05718254670500755, -0.05055534839630127, 0.6781710386276245, 0.11560601741075516, -0.6517627835273743, -0.5338013768196106, 0.054241638630628586, 0.2692553400993347, 0.9675582647323608, -0.7678861618041992, 1.07961905002594, -0.5672910213470459, -0.08975810557603836, 0.3026898503303528, 1.082942008972168, -0.32356542348861694, 0.5493105053901672, 0.427097350358963, 0.2922922968864441, 0.7197079658508301, -0.5573651194572449, 0.7976782917976379, -0.31940096616744995, 0.836937665939331, 0.8674769401550293, -0.3728890120983124, 0.6463825106620789, 0.8949481844902039, -0.6191632151603699, 0.32554247975349426, 0.8101916909217834, -0.2939838767051697, 0.8781899213790894, 0.16485446691513062, -0.40567806363105774, -0.34250131249427795, 0.24866312742233276, -0.7878550291061401, 0.2497822642326355, 0.22672639787197113, -0.18807750940322876, -0.4384801983833313, 0.31352564692497253, -0.270829439163208, -0.14322614669799805, -0.46160855889320374, 0.387160986661911, 0.13531991839408875, -0.3873909115791321, -0.0013531600125133991, -0.5410199761390686, 0.4295493960380554, -0.7252733111381531, -0.07507937401533127, -0.12394119799137115, 0.8918442130088806, -0.1709151566028595, -0.7331308126449585, 0.4220654368400574, -0.633654773235321, -0.591838002204895, -0.049478039145469666, 0.46816736459732056, -0.11779778450727463, -0.47685107588768005, 0.591693103313446, 0.1579122543334961, -0.23568959534168243, -0.23675940930843353, -0.3423987627029419, -0.031731199473142624, -0.11031470447778702, -0.38631290197372437, -0.026702195405960083, 0.5326203107833862, 0.2304970920085907, 1.0798841714859009, 0.4811232089996338, 0.0748862698674202, 0.27547067403793335, -0.30971041321754456, 0.9298107624053955, -0.6882696151733398, -0.7309858798980713, -0.6771188974380493, 0.04851233586668968, 0.21859636902809143, -0.2602567970752716, 0.40816155076026917, 0.9223394393920898, 0.2395511418581009, -0.4711487293243408, 0.8084775805473328, 0.3483083248138428, 0.3561796545982361, -0.13971476256847382, 0.6670947074890137, -0.34158656001091003, -0.1270291656255722, -0.21162089705467224, -0.8243585228919983, -0.4146362841129303, 0.26736050844192505, -0.231211856007576, -0.0023591883946210146, 0.40676000714302063, 0.540759265422821, -0.05296526476740837, 0.6490228772163391, 0.34568190574645996, 0.45562538504600525, 0.6823994517326355, 0.8174459934234619, 1.1825262308120728, -0.433901846408844, 0.4501931369304657, -0.4828380346298218, -0.12963812053203583, -0.11064097285270691, -0.9826682806015015, -0.6866310834884644, -0.7790817618370056, 0.03427094966173172, -0.2514399588108063, 0.6462599039077759, 0.8773679137229919, 0.7123708724975586, -1.0880721807479858, -0.22883471846580505, -0.0021161839831620455, -0.1377844512462616, -0.5435745120048523, -0.20899035036563873, 0.45403844118118286, 0.08583447337150574, -0.5150386691093445, 0.21831880509853363, 0.5109935998916626, 0.5642340779304504, -0.23397277295589447, -0.13949593901634216, 0.23705027997493744, -0.18406453728675842, 0.33836203813552856, 0.2479391098022461, -0.708507776260376, -0.47910094261169434, -0.10025662928819656, 0.26109328866004944, -0.14652173221111298, 0.5827440023422241, -0.5741381049156189, 0.470651775598526, -0.1389763206243515, 0.18069986999034882, 0.8350160121917725, -0.49673697352409363, 0.47153401374816895, -0.07397298514842987, 0.24279096722602844, 0.2720661759376526, 0.29196134209632874, -0.051824335008859634, -0.4607108533382416, 0.4181114435195923, 0.4438323676586151, -0.6732484102249146, -0.7280798554420471, 0.03543270379304886, -0.9724024534225464, -0.05026823282241821, 0.2807871699333191, -0.0974598079919815, 0.02564607746899128, 0.00348694808781147, 0.18499638140201569, 0.7257655262947083, -0.4348243176937103, 1.3146865367889404, 0.7847396731376648, -0.5384107828140259, -0.34957608580589294, -0.12714910507202148, 0.2460406869649887, -0.06905163824558258, -0.7246732711791992, -0.09258700162172318, 0.268878698348999, 0.3518439531326294, 0.5807215571403503, -0.1097293570637703, 0.2067156732082367, 0.27292996644973755, 0.08092116564512253, -0.027906183153390884, -0.27081096172332764, -0.5535585880279541, -0.3807676136493683, 0.1812833696603775, -0.3974279463291168, -0.03916757181286812 ]
http://arxiv.org/abs/2402.09552v2
http://arxiv.org/pdf/2402.09552v2
STEER: Assessing the Economic Rationality of Large Language Models
2024-02-14T20:05:26
2024-05-28T16:27:56
Narun Raman, Taylor Lundy, Samuel Amouyal, Yoav Levine, Kevin Leyton-Brown, Moshe Tennenholtz
cs.CL
cs.CL, econ.GN, q-fin.EC
There is increasing interest in using LLMs as decision-making "agents." Doing so includes many degrees of freedom: which model should be used; how should it be prompted; should it be asked to introspect, conduct chain-of-thought reasoning, etc? Settling these questions -- and more broadly, determining whether an LLM agent is reliable enough to be trusted -- requires a methodology for assessing such an agent's economic rationality. In this paper, we provide one. We begin by surveying the economic literature on rational decision making, taxonomizing a large set of fine-grained "elements" that an agent should exhibit, along with dependencies between them. We then propose a benchmark distribution that quantitatively scores an LLMs performance on these elements and, combined with a user-provided rubric, produces a "STEER report card." Finally, we describe the results of a large-scale empirical experiment with 14 different LLMs, characterizing the both current state of the art and the impact of different model sizes on models' ability to exhibit rational behavior.
[ -0.5394892692565918, -0.7901037931442261, 0.7275091409683228, 0.4005557894706726, -0.0114994952455163, -0.09406169503927231, -0.37752074003219604, -0.49149173498153687, 0.13988861441612244, 0.4859481751918793, -0.35219892859458923, -0.34685710072517395, -0.45581838488578796, 0.09671512991189957, -0.37616240978240967, 0.6426183581352234, 0.2023744285106659, 0.13744790852069855, -0.20176975429058075, -0.3068046569824219, -0.3154613971710205, -0.3021274507045746, -0.8278632164001465, -0.6826091408729553, 0.6021578907966614, 0.2614603042602539, 1.1617780923843384, 0.8111973404884338, 0.41623997688293457, 0.330842524766922, 0.10520853102207184, -0.21727143228054047, -0.4059518575668335, 0.27955591678619385, -0.6061760783195496, -0.518253743648529, -0.6602373123168945, 0.5282122492790222, 0.5750529766082764, 0.5967468619346619, -0.2561015188694, 0.23385843634605408, -0.18950806558132172, 0.5711062550544739, -0.6130343079566956, 0.31359991431236267, -0.782008945941925, -0.30783772468566895, 0.06213841959834099, -0.2035861313343048, -0.8123161196708679, -0.644460916519165, 0.27438414096832275, -0.6274906992912292, -0.5016977787017822, 0.5855632424354553, 0.6708325743675232, 0.1946440190076828, -0.6021906137466431, -0.5456061363220215, -0.6685821413993835, 1.0687503814697266, -0.4349105656147003, 0.39828458428382874, 0.7387090921401978, 0.26188939809799194, -0.1092706024646759, -0.6158624887466431, -0.2886393368244171, -0.6723841428756714, 0.10233023762702942, 0.30716779828071594, -0.34392014145851135, 0.029969260096549988, 0.35165366530418396, 0.09014259278774261, -0.1335052251815796, 0.20999297499656677, -0.029259558767080307, -0.0618581660091877, 0.7615022659301758, 0.1769508570432663, 0.011004213243722916, 0.10260678827762604, -0.5956190824508667, -0.32584843039512634, -0.6615089774131775, -0.08951213955879211, 0.5520644783973694, 0.05165529251098633, 0.10537245124578476, 0.8461611270904541, -0.2877809703350067, 0.33405593037605286, 0.1149662509560585, -0.3981602191925049, -0.14938116073608398, -0.250847190618515, -0.46362465620040894, 0.19390623271465302, 0.5348612070083618, 0.7330892086029053, 0.5835573673248291, 0.03100435622036457, -0.7221884727478027, 0.08473983407020569, 0.22437414526939392, -0.6473726034164429, -0.004811728838831186, 0.2833680510520935, -0.582269549369812, -0.2903405427932739, -0.2522445321083069, -0.5925817489624023, -0.4743512272834778, -0.6661128401756287, 0.4528675973415375, -0.44568267464637756, -0.2579784095287323, -0.021906085312366486, -0.14074335992336273, 0.7435654401779175, 0.23473775386810303, -0.7335736155509949, 0.33614662289619446, 0.7934382557868958, 0.546934962272644, -0.20252735912799835, -0.44259539246559143, -0.6313726305961609, 0.022967463359236717, -0.6699524521827698, 0.981414794921875, -0.5646912455558777, -0.516228437423706, 0.15955063700675964, -0.13503041863441467, -0.03228481486439705, -0.5488394498825073, 0.3912828862667084, -0.7348607778549194, -0.1371166855096817, -0.5448408722877502, -0.8151141405105591, -0.20477889478206635, 0.6825217008590698, -0.6936737298965454, 0.709272027015686, 0.22612565755844116, -0.640856146812439, 0.6353155970573425, -0.447136253118515, -0.21177755296230316, 0.0034875646233558655, -0.027260761708021164, 0.012547391466796398, 0.038923170417547226, -0.2639068067073822, 0.40223267674446106, -0.5448188185691833, 0.5498375296592712, -0.501364529132843, 0.1049816757440567, 0.8898923993110657, -0.8033643960952759, 0.6988264322280884, 0.15055833756923676, -0.11931777745485306, 0.37546855211257935, -0.6898184418678284, 0.007097355090081692, -0.031109845265746117, -0.12319748848676682, -0.4363544285297394, 0.2059491127729416, -0.021521173417568207, -0.06928519159555435, 0.21366436779499054, -0.21326394379138947, 0.08907274901866913, -0.21004562079906464, 0.2863686680793762, 0.8847445249557495, -0.05585114657878876, 0.6180399656295776, -0.8307353854179382, 0.5983167886734009, -0.39849525690078735, 0.19797606766223907, 0.14101079106330872, -0.2310778647661209, -0.9140114784240723, -0.3043340742588043, 0.43831008672714233, 0.4033362567424774, -0.5421139597892761, 0.3361148536205292, 0.08868418633937836, -0.6058493256568909, -0.09496304392814636, -0.23790034651756287, 0.018701180815696716, 0.29251769185066223, 0.05731356143951416, -0.11028143018484116, -0.10929068177938461, -1.0887922048568726, -0.18732938170433044, -0.4015131890773773, 0.15180523693561554, 0.144017294049263, 0.6883248090744019, -0.32255491614341736, 1.1270334720611572, -0.2972268760204315, -0.003114239778369665, -0.33251646161079407, 0.11589309573173523, -0.12564721703529358, 0.4056953489780426, 0.47387605905532837, -0.39977598190307617, -0.22728419303894043, 0.14781060814857483, -0.47748634219169617, -0.15046802163124084, -0.24332474172115326, -0.41008010506629944, 0.36828553676605225, 0.27446579933166504, -0.7382772564888, 0.2134087085723877, 0.47249317169189453, -0.43017467856407166, 0.7654712200164795, -0.5274644494056702, -0.20549894869327545, -0.6093940138816833, 0.15462057292461395, 0.30034324526786804, -0.21490727365016937, -0.2977374494075775, -0.025477705523371696, -0.08983951061964035, 0.536449670791626, -0.25690722465515137, 0.6326587200164795, -0.2038782835006714, -0.41998353600502014, -0.2694506049156189, 0.33065447211265564, -0.1007399782538414, 0.04774262756109238, -0.005148937460035086, 0.8628060221672058, 0.40564629435539246, -0.5503419041633606, 0.3925207853317261, -0.14329038560390472, -0.4424085021018982, 0.988278329372406, -0.7549018263816833, -0.13905730843544006, -0.07483600080013275, 0.000459048809716478, -0.6713873744010925, -0.3595500886440277, 0.11511744558811188, -0.03743306174874306, 0.11461549252271652, -0.051412433385849, -0.33770251274108887, 0.26413169503211975, -0.2506345808506012, 0.11508788168430328, 0.6556374430656433, -0.3240365982055664, 0.8838949799537659, 0.5148072242736816, -0.3652547597885132, -0.31502899527549744, -0.25975269079208374, -0.1876428723335266, -0.48167431354522705, -0.6203033328056335, -0.09408853203058243, -0.1535429209470749, -1.113147497177124, -0.022833202034235, -0.1044669821858406, -0.0047315689735114574, 0.25318607687950134, -0.03585348650813103, 0.3316047191619873, -0.10549823194742203, 0.03016778454184532, 0.08471203595399857, -0.4055548906326294, 0.6175535321235657, -0.13642308115959167, 0.38334518671035767, -0.33903831243515015, -0.25767970085144043, -0.0602436438202858, 0.03820110484957695, 0.853175163269043, -0.40523356199264526, 0.47744205594062805, -0.002302704146131873, -0.23061072826385498, -0.57295823097229, -0.7002245783805847, 0.0514216274023056, -0.46762213110923767, 0.10536585748195648, -0.20868200063705444, -0.44467613101005554, 0.49592867493629456, -0.2862340211868286, 0.033698175102472305, 0.5004236698150635, 0.7635400295257568, -0.020684482529759407, 1.0058215856552124, 0.48234325647354126, 0.06392382085323334, 0.1140475943684578, -0.20135276019573212, -0.0429203137755394, -0.5573212504386902, -0.5144549608230591, -0.5825867056846619, -0.14494146406650543, -0.5162764191627502, -0.5523755550384521, 0.1262761503458023, -0.06257101148366928, -0.4989863634109497, -0.05351264029741287, -0.032935626804828644, 0.5773860812187195, 0.6682400107383728, -0.42036792635917664, 0.5187383890151978, -0.312145471572876, -0.19855064153671265, 0.272733598947525, -0.3883804678916931, -1.090239405632019, 0.9709025621414185, 0.5800865888595581, 1.0626888275146484, 0.014993051998317242, 0.3447866439819336, 0.37737035751342773, 0.840911865234375, -1.2497360706329346, 0.7017185688018799, 0.30293792486190796, -0.5114226937294006, -0.418473482131958, -0.26122117042541504, -0.9960674047470093, 0.5274015665054321, -0.35358285903930664, -0.4499061107635498, 0.07421604543924332, 0.04771369695663452, -0.14629733562469482, 0.016040025278925896, -0.5343332290649414, 0.6994720101356506, -0.727717399597168, -0.3025023937225342, -0.3406573534011841, -0.3257844150066376, 0.49430733919143677, -0.3154284358024597, 0.26508721709251404, -0.4247613847255707, -0.3598225712776184, 0.7954864501953125, -0.21289151906967163, 0.5840036869049072, 0.00931631401181221, -0.1865449696779251, 0.2547531723976135, 0.2814899981021881, 0.5579140186309814, 0.19789403676986694, -0.23197829723358154, -0.11944672465324402, 0.2678214907646179, -0.12275059521198273, -0.4476414918899536, 0.6019169092178345, -0.7913588285446167, -0.6056330800056458, -0.6942389011383057, -0.6859331727027893, -0.44983789324760437, 0.3603774309158325, -0.02015281282365322, 0.34089577198028564, -0.5180923342704773, 0.40779614448547363, 0.5276968479156494, -0.10596027225255966, 0.36539795994758606, 0.5499073266983032, -0.6002259850502014, -0.5761645436286926, 0.6223204135894775, 0.31064602732658386, 0.415772944688797, -0.00850419607013464, 0.41423270106315613, -0.663443386554718, -0.49914899468421936, -0.2550412118434906, 0.23217949271202087, -0.7238172292709351, -0.17679975926876068, -0.2395469844341278, 0.05864620953798294, 0.14241698384284973, -0.30188053846359253, -0.5235204696655273, -0.03777296096086502, -0.16683250665664673, -0.31654730439186096, 0.289750874042511, 1.0384286642074585, 0.22717402875423431, 0.2235378921031952, -0.4336782991886139, -0.1276092231273651, 0.5092371702194214, 0.3841400146484375, 0.12452720105648041, -0.2253442406654358, -0.0974002256989479, 0.18720468878746033, -0.11217308044433594, -0.6279186606407166, 0.5187864899635315, -0.3699851930141449, 0.8001829981803894, 0.5893486738204956, 0.5335178375244141, 0.36728331446647644, -0.23279665410518646, 0.4722348153591156, 0.21794748306274414, -1.1464825868606567, 0.19061370193958282, -0.4462033212184906, -0.18799884617328644, 0.39170464873313904, 0.4104837477207184, -0.2729782462120056, -0.38637086749076843, -0.5663408637046814, -0.6822156310081482, 0.4846670627593994, 0.16330339014530182, -0.12330195307731628, -0.21163292229175568, -0.03561792150139809, 0.184307262301445, 0.24708585441112518, -0.5867783427238464, -0.11193110048770905, -0.06120136380195618, -0.011534030549228191, -0.08062689751386642, -0.35242193937301636, -0.24018023908138275, 0.0463259257376194, 0.5226515531539917, -0.21993395686149597, -0.20449812710285187, 0.18740659952163696, -0.11207257956266403, -0.014785127714276314, 0.3880993127822876, 0.49763184785842896, 1.0944173336029053, -0.25874894857406616, 0.33017775416374207, 0.07142964750528336, -0.06105796992778778, 0.29878532886505127, -0.08822452276945114, -0.20985086262226105, -0.297283798456192, 0.2356773465871811, 0.489027202129364, 0.06326045095920563, -0.9787749648094177, 0.3811987340450287, 0.10147219151258469, -0.4910557270050049, -0.5061602592468262, -0.098723404109478, 0.22142323851585388, 0.5741654634475708, 0.14322438836097717, 0.07441389560699463, 0.034614793956279755, -0.6306484937667847, 0.0014048786833882332, 0.5626130700111389, -0.24038083851337433, -0.2340051531791687, 0.43280357122421265, 0.46091538667678833, -0.3226281404495239, 0.6999686360359192, -0.32855263352394104, -0.4029984474182129, 0.8041505217552185, 0.583347499370575, 0.9578135013580322, 0.09916428476572037, 0.25916165113449097, -0.09502685070037842, 0.724679708480835, -0.5885558128356934, 0.130256786942482, 0.34815412759780884, -0.9472459554672241, -0.49524858593940735, -0.347244530916214, -0.9005559086799622, -0.00027076518745161593, -0.8647133111953735, -0.16763977706432343, -0.455203115940094, -0.5718106627464294, -0.16686560213565826, 0.13358403742313385, -0.5788331031799316, 0.19322995841503143, 0.07602415978908539, 1.2880216836929321, -0.6251739859580994, 0.9165407419204712, 0.6423130631446838, -0.31030911207199097, -0.8221107125282288, -0.04619026556611061, -0.20601904392242432, -0.8524602651596069, 0.8129588961601257, 0.12684722244739532, -0.43731141090393066, -0.1457710862159729, -0.5137766599655151, -0.9168957471847534, 1.249924659729004, 0.34634292125701904, -0.5181575417518616, 0.4132247865200043, -0.11580921709537506, 0.25982725620269775, -0.5804989337921143, 0.38840967416763306, 0.9749189615249634, 0.8637070059776306, 0.05277935415506363, -0.7752998471260071, -0.05160656198859215, 0.11552975326776505, 0.03509999066591263, 0.05249365046620369, -0.753770112991333, 0.8595143556594849, -0.11959417909383774, -0.13012677431106567, 0.16985857486724854, 0.4971386194229126, 0.5829036831855774, 0.6649761199951172, 0.6585080623626709, 0.27159619331359863, 1.0947200059890747, -0.11793143302202225, 1.0627361536026, -0.5509242415428162, 0.4828946590423584, 0.7678014039993286, -0.8169939517974854, 1.0451605319976807, 0.44444379210472107, -0.10985898226499557, 0.1834319680929184, 0.3700266480445862, -0.03198174014687538, 0.2630535662174225, 0.3705371916294098, -0.025451406836509705, -0.5532634258270264, -0.20982423424720764, -0.048690315335989, 0.44195762276649475, 0.4428940713405609, -0.26451393961906433, 0.03661954402923584, -0.2003832757472992, 0.07398834079504013, -0.057623133063316345, -0.5056313276290894, 0.5155072808265686, 0.1780225932598114, -0.8932940363883972, 0.11231464147567749, 0.11641427874565125, 0.44445595145225525, -0.7066642642021179, 0.20780044794082642, -0.42612209916114807, 0.20318815112113953, 0.06993325054645538, -0.9040446281433105, 0.23407307267189026, 0.06237170472741127, -0.11084412783384323, -0.37048038840293884, 0.718641996383667, -0.14208997786045074, -0.4371885657310486, 0.443037211894989, 0.6897323727607727, 0.04307010769844055, 0.10697982460260391, -0.49777156114578247, 0.45647796988487244, -0.18021798133850098, -0.5799857974052429, 0.46077781915664673, 0.5593936443328857, -0.053187962621450424, 1.0640124082565308, 0.6380846500396729, 0.011949276551604271, -0.18863706290721893, -0.02521716244518757, 0.5147932767868042, -0.9559813737869263, -0.21538373827934265, -0.7701153755187988, 0.24591244757175446, -0.2247224599123001, -0.3738962411880493, 0.9473664164543152, 0.4857144355773926, 0.8246473073959351, 0.08988688886165619, 0.883791983127594, 0.28945866227149963, 0.00017968508473131806, -0.6946573257446289, 0.7267113327980042, -0.21819594502449036, 0.3792552351951599, 0.09587002545595169, -1.076198935508728, -0.12664121389389038, 1.0342378616333008, -0.46685051918029785, 0.06431803852319717, 0.7854709029197693, 0.6910443902015686, 0.31525030732154846, 0.16070556640625, 0.523910403251648, 0.2789372503757477, 0.08541295677423477, 0.018298456445336342, 1.47328519821167, 0.2478642463684082, 0.3012923002243042, -0.23992785811424255, -0.3034767806529999, -0.21666757762432098, -1.0554635524749756, -0.9141907691955566, -0.0039047731552273035, -0.5152001976966858, -0.3702259957790375, -0.25108933448791504, 1.3240548372268677, 0.5725417137145996, -0.4283945560455322, -0.7946678996086121, 0.3467918038368225, 0.41384950280189514, -0.1831057071685791, -0.1455266773700714, 0.13827237486839294, -0.4473426640033722, -0.7518936395645142, 0.27875855565071106, 0.4635525345802307, 0.08076191693544388, -0.4997217655181885, -0.2448449283838272, 0.25955232977867126, 0.6823535561561584, 0.957663357257843, -0.1018759086728096, -0.7954131364822388, -0.21435755491256714, 0.22155678272247314, -0.1774846315383911, -0.313714861869812, 0.7725298404693604, -0.4895859658718109, 0.23194745182991028, 0.22303171455860138, 0.4688737094402313, 0.023219479247927666, 0.05028657987713814, 0.6125039458274841, 0.1086491048336029, -0.15563607215881348, 0.2615814507007599, 0.5397716164588928, -0.09018552303314209, 0.23204539716243744, 0.4363442361354828, -0.0019431913970038295, -0.9139559268951416, -0.6126850843429565, 0.18574677407741547, -1.3236929178237915, -0.1680545210838318, 1.417685627937317, 0.03893008828163147, -0.22612842917442322, -0.1337178498506546, -0.3880283534526825, -0.30457189679145813, -0.6682448983192444, 0.2827052175998688, 0.852508008480072, 0.0592636875808239, 0.09316789358854294, -0.4942893385887146, 0.13771305978298187, 0.06387721002101898, -0.7015199661254883, 0.26593729853630066, 0.7292344570159912, 0.3062666952610016, -0.05591457709670067, 0.7081983685493469, 0.2609776258468628, -0.06414864212274551, 0.32811471819877625, -0.1832270473241806, 0.18146808445453644, -0.23237398266792297, -0.12943574786186218, 0.2628990411758423, 0.7775392532348633, 0.10005799680948257 ]
http://arxiv.org/abs/2402.09404v1
http://arxiv.org/pdf/2402.09404v1
AQA-Bench: An Interactive Benchmark for Evaluating LLMs' Sequential Reasoning Ability
2024-02-14T18:59:33
2024-02-14T18:59:33
Siwei Yang, Bingchen Zhao, Cihang Xie
cs.CL
cs.CL, cs.AI, cs.LG
This paper introduces AQA-Bench, a novel benchmark to assess the sequential reasoning capabilities of large language models (LLMs) in algorithmic contexts, such as depth-first search (DFS). The key feature of our evaluation benchmark lies in its interactive evaluation protocol -- for example, in DFS, the availability of each node's connected edge is contingent upon the model's traversal to that node, thereby necessitating the LLM's ability to effectively remember visited nodes and strategize subsequent moves. We comprehensively build AQA-Bench with three different algorithms, namely binary search, depth-first search, and breadth-first search, and to evaluate the sequential reasoning ability of 12 different LLMs. Our investigations reveal several interesting findings: (1) Closed-source models like GPT-4 and Gemini generally show strong sequential reasoning ability, significantly outperforming open-source LLMs. (2) Naively providing interactive examples may inadvertently hurt few-shot performance. (3) A very limited number of predecessor steps following the optimal policy can substantially boost small models' performance. (4) The scaling correlation between performance and model size is not always significant, sometimes even showcasing an inverse trend. We hope our study can catalyze future work on advancing the understanding and enhancement of LLMs' capabilities in sequential reasoning. The code is available at https://github.com/UCSC-VLAA/AQA-Bench.
[ -0.43724167346954346, -0.6452040672302246, 1.158274531364441, 0.31007981300354004, -0.10941151529550552, 0.27974411845207214, -0.03868865966796875, -0.1325785219669342, -0.24966338276863098, 0.22377854585647583, -0.6899645924568176, -0.5140921473503113, -0.4604776203632355, 0.06903145462274551, -0.7069965600967407, 0.049934789538383484, -0.16452378034591675, 0.14417040348052979, -0.41118478775024414, -0.16746723651885986, -0.19975845515727997, -0.16462399065494537, -0.79232257604599, -0.24890363216400146, 0.40680232644081116, 0.30951619148254395, 0.8845179080963135, 0.8386716246604919, 0.49797987937927246, 0.3346644639968872, -0.07934065163135529, -0.032467544078826904, -0.378558486700058, 0.3181820511817932, -0.41482874751091003, -0.24661371111869812, -0.26289230585098267, -0.11014693975448608, 1.1735037565231323, 0.7786775231361389, -0.07883257418870926, 0.22692139446735382, -0.36096152663230896, 0.8225833773612976, -0.6449198126792908, 0.016717737540602684, -0.6481202244758606, -0.042044129222631454, -0.1644032895565033, 0.16769365966320038, -0.3068966567516327, -0.5171048641204834, 0.13752765953540802, -0.5834224820137024, -0.41438743472099304, 0.07426141202449799, 0.5043371319770813, 0.6962493062019348, -0.48961976170539856, -0.06018642336130142, -0.4781859815120697, 0.609112560749054, -0.7933953404426575, 0.5378373861312866, 0.0640818253159523, 0.5928987264633179, -0.2268795520067215, -1.1250348091125488, -0.792527437210083, -0.3836814761161804, 0.07369926571846008, 0.04373166710138321, 0.020853662863373756, 0.043875496834516525, 0.6414377689361572, 0.36159461736679077, -0.4377426207065582, 0.20573951303958893, 0.016198083758354187, 0.12595641613006592, 0.677666425704956, 0.34345459938049316, 0.012743506580591202, 0.13809752464294434, -0.4282781183719635, -0.2414989173412323, -0.7253639101982117, 0.29085785150527954, 0.13194020092487335, -0.10163633525371552, 0.002461405470967293, 0.460033118724823, -0.6133740544319153, 0.7380962371826172, -0.23659534752368927, 0.0398685485124588, 0.24117013812065125, -0.37110742926597595, 0.06815668195486069, -0.2362658679485321, 0.8107075095176697, -0.048016902059316635, 0.16125257313251495, -0.01743466593325138, -0.26856672763824463, -0.2024938315153122, 0.10915308445692062, -0.8349112272262573, -0.21934084594249725, 0.35694649815559387, -0.43273159861564636, -0.004668382462114096, 0.0032873183954507113, -0.45051059126853943, -0.5886817574501038, -0.2010498046875, 0.48422735929489136, -0.2501472234725952, -0.17659735679626465, -0.023852357640862465, -0.012716129422187805, 0.29574310779571533, 0.3902928829193115, -0.48908600211143494, 0.7436776757240295, 0.8514834046363831, 0.7553908228874207, -0.35336920619010925, -0.5878189206123352, -0.6360856294631958, -0.18231932818889618, -0.36705759167671204, 0.7884503602981567, -0.6079468131065369, -0.30462172627449036, -0.12746816873550415, -0.2837139070034027, -0.10281549394130707, -0.45028942823410034, 0.5891744494438171, -0.578450083732605, -0.32849007844924927, -0.5222362279891968, -0.49646657705307007, -0.26973289251327515, 0.2570744454860687, -0.7958519458770752, 1.1256585121154785, 0.061955589801073074, -0.553511917591095, 0.3071914315223694, -0.4919009506702423, -0.2502014935016632, 0.14584960043430328, -0.5760158896446228, -0.10928294062614441, -0.11208979785442352, 0.21088680624961853, 0.03887864947319031, -0.5611653327941895, 0.28471118211746216, -0.6308171153068542, -0.7579975128173828, 0.4903584420681, -0.2468520849943161, 0.6655014753341675, -0.0586455799639225, -0.3567303419113159, 0.2415001392364502, -0.8615125417709351, 0.3760586678981781, 0.22579577565193176, -0.08006101846694946, -0.06705823540687561, 0.31163403391838074, -0.566495418548584, 0.35975873470306396, 0.2796960175037384, -0.3955293595790863, 0.3079449534416199, -0.2957419157028198, 0.3675747215747833, 0.6811534762382507, 0.13207897543907166, 0.27853697538375854, -0.43709802627563477, 0.3738613426685333, -0.23543380200862885, 0.205091193318367, -0.3732427656650543, -0.3875080943107605, -0.7090514898300171, -0.4516524076461792, 0.6401177048683167, 0.6041997671127319, -0.6997955441474915, 0.2193356454372406, -0.26612207293510437, -0.3684214651584625, -0.5743579864501953, 0.10670477151870728, 0.40997716784477234, 0.2796570658683777, 0.24341067671775818, -0.6358440518379211, -0.4068659245967865, -0.8774247765541077, -0.18550847470760345, -0.4275204539299011, 0.057118359953165054, 0.4282837510108948, 0.6370276808738708, -0.0183392483741045, 0.9325402975082397, -0.18724258244037628, 0.2193347066640854, 0.20688556134700775, 0.1730930507183075, 0.3148294687271118, 0.1916772425174713, 0.3663676679134369, -0.5755939483642578, -0.291684627532959, -0.3860156536102295, -0.7856983542442322, -0.26047828793525696, -0.017035504803061485, -0.33231526613235474, -0.1277482956647873, 0.3862551152706146, -0.6603986620903015, 0.43591147661209106, 0.2793428301811218, -0.23209543526172638, 0.4406052827835083, -0.006865398958325386, 0.1152830719947815, -0.2827003002166748, 0.17678202688694, -0.3287031054496765, -0.0004354534612502903, -0.3616650402545929, 0.21431538462638855, 0.14146165549755096, 0.12952680885791779, -0.39519456028938293, 1.0003420114517212, -0.3757421374320984, -0.5612900853157043, -0.1964253932237625, 0.1550540179014206, -0.12124330550432205, 0.4162557125091553, 0.1744420975446701, 0.7303739190101624, 0.5003929734230042, -0.45970743894577026, 0.32122793793678284, 0.3534368574619293, -0.6488379240036011, 0.22620528936386108, -0.667216420173645, 0.3517392575740814, 0.278133749961853, 0.4125891625881195, -1.1904841661453247, 0.11986520141363144, -0.07383313030004501, -0.23688967525959015, 0.0017969999462366104, -0.14289940893650055, -0.7712012529373169, -0.49885115027427673, -0.3436570167541504, 0.6933555006980896, 0.34865057468414307, -0.7379149198532104, 0.5439419150352478, 0.12042630463838577, -0.32501840591430664, -0.49697616696357727, -0.3971363604068756, -0.008362026885151863, 0.05974844470620155, -0.6954185366630554, 0.4155087172985077, -0.236108660697937, -0.4043072760105133, 0.08937803655862808, -0.24379926919937134, -0.05603627488017082, 0.31965404748916626, 0.1415284276008606, -0.051291994750499725, -0.12645159661769867, 0.08131889253854752, -0.014735529199242592, -0.04091896861791611, 0.24753154814243317, -0.17227835953235626, 0.3155161738395691, -0.3678458034992218, -0.7176237106323242, -0.1745803952217102, 0.25211450457572937, 0.6237975358963013, -0.3711071312427521, 0.3749716579914093, 0.3760493993759155, -0.355333536863327, -0.2592564523220062, -0.7153470516204834, -0.11045629531145096, -0.4468786418437958, 0.1531209647655487, -0.545518696308136, -0.7548025250434875, 0.5518490076065063, -0.4213758409023285, 0.01487970631569624, 0.3563728928565979, 0.5644645690917969, 0.16968883574008942, 1.1205521821975708, 0.19168317317962646, 0.10362701863050461, 0.2768605649471283, -0.18240012228488922, -0.06668203324079514, -0.8407177925109863, -0.1781207174062729, -0.3515762984752655, -0.30044427514076233, -0.543118417263031, -0.509821355342865, 0.4912956953048706, 0.21834948658943176, -0.755007266998291, -0.13755443692207336, -0.17445561289787292, 0.3681503236293793, 0.7074514031410217, -0.026987353339791298, 0.5779139995574951, -0.49812179803848267, -0.5819869637489319, 0.14977514743804932, -0.560318112373352, -0.48639270663261414, 0.9939427971839905, 0.5040912628173828, 0.582740306854248, 0.27607959508895874, 0.7446700930595398, 0.21733953058719635, 0.20428305864334106, -0.8090269565582275, 0.9070019721984863, 0.03796754032373428, -0.3422718048095703, -0.48487746715545654, -0.4757799208164215, -0.6089838743209839, 0.5341659188270569, -0.23615142703056335, -0.791536808013916, 0.21815001964569092, -0.14597807824611664, -0.41059163212776184, 0.06855011731386185, -0.48267632722854614, 0.8231343030929565, -0.6962302923202515, -0.711685836315155, -0.23368068039417267, -0.46524369716644287, 0.6546251773834229, -0.08174221962690353, 0.21358178555965424, -0.32905685901641846, -0.43810784816741943, 0.5233069062232971, -0.40986666083335876, 0.5347653031349182, -0.2887513041496277, 0.17315618693828583, 0.22688359022140503, 0.2967064380645752, 0.4984869658946991, 0.28976666927337646, -0.2686656415462494, 0.12284713238477707, 0.14284655451774597, -0.2683999240398407, -0.7348077893257141, 0.6807964444160461, -0.5586232542991638, -0.7963054776191711, -0.6153417229652405, -0.43582531809806824, -0.6482056975364685, 0.39670783281326294, -0.45984983444213867, 0.21594156324863434, -0.3662901222705841, 0.18477781116962433, 0.5103417038917542, -0.15228095650672913, 0.3628768026828766, 0.8787262439727783, -0.4057712256908417, -0.3310742974281311, 0.4751213788986206, 0.0346028134226799, 0.003295352216809988, 0.36692893505096436, 0.23206903040409088, -0.5497909188270569, -0.937716543674469, -0.4701625108718872, 0.1383436769247055, -0.7995427846908569, -0.029805446043610573, -0.4677899181842804, -0.4713144600391388, 0.0384724885225296, 0.2761003375053406, -0.3749850392341614, -0.7532290816307068, 0.3494431972503662, 0.11146049201488495, 0.2103055864572525, 0.8920100927352905, -0.026961512863636017, 0.04161105304956436, -0.52998286485672, 0.4008740782737732, 0.48926857113838196, 0.651521623134613, 0.2782340943813324, -0.4280563294887543, 0.01695939712226391, -0.26450732350349426, -0.33102506399154663, -0.7244347333908081, -0.11806979030370712, 0.04758790135383606, 1.0301343202590942, 0.11825389415025711, 0.0281820110976696, 0.31469112634658813, -0.5328171253204346, 0.6164742708206177, -0.13964638113975525, -0.9101628661155701, 0.3732295036315918, -0.2909640073776245, 0.7673940062522888, 0.8652029037475586, 0.4997262954711914, -0.08531828969717026, -0.13962222635746002, -0.4805678129196167, -0.8275700807571411, 0.6004619598388672, 0.21793651580810547, -0.4617595970630646, -0.03223145008087158, 0.1974686235189438, -0.015798574313521385, 0.29385074973106384, -0.38792648911476135, -0.17060598731040955, 0.06077195331454277, -0.07120784372091293, 0.18310144543647766, -0.24789726734161377, -0.038172174245119095, -0.3796774446964264, 0.5740118622779846, -0.12886108458042145, 0.08566657453775406, 0.11953628808259964, -0.043841954320669174, 0.09766890108585358, 0.15885594487190247, 0.28066450357437134, 0.9053104519844055, -0.25904664397239685, 0.029622294008731842, 0.3413553535938263, -0.1574261486530304, 0.07381218671798706, 0.5764790177345276, -0.28961503505706787, -0.25085100531578064, 0.2877580225467682, 0.6164724826812744, 0.5217653512954712, -0.8807549476623535, 0.5276837348937988, -0.3250778615474701, -0.23232704401016235, -0.34254875779151917, -0.018861381337046623, 0.06626739352941513, 0.6178659796714783, 0.5436215400695801, -0.2987363338470459, 0.37908458709716797, -0.6016110181808472, 0.30807068943977356, 0.41938281059265137, -0.05616828054189682, 0.08498270064592361, 0.4776343107223511, 0.18538014590740204, -0.15104857087135315, 0.6821181178092957, -0.36034637689590454, -0.5578949451446533, 0.4809456467628479, 0.033292174339294434, 0.7886740565299988, -0.19320771098136902, 0.024563424289226532, 0.5991594195365906, 0.30630162358283997, -0.29394596815109253, 0.43274274468421936, -0.3885660171508789, -0.5906612277030945, -0.43210217356681824, -0.528619647026062, -0.9686721563339233, 0.0633542388677597, -0.5051981806755066, 0.13230392336845398, -0.645780086517334, -0.1236114352941513, 0.00040416119736619294, 0.3994872272014618, -0.743276059627533, 0.07977954298257828, 0.2150067239999771, 1.3421683311462402, -0.3611564636230469, 0.8324787020683289, 0.6068800091743469, -0.2622724175453186, -0.47938451170921326, -0.006853426806628704, 0.21329927444458008, -0.863020122051239, 0.43360739946365356, 0.06382539123296738, -0.19109754264354706, 0.016699735075235367, -0.39066317677497864, -1.186550498008728, 1.339387059211731, 0.25163930654525757, -0.605577290058136, 0.025151284411549568, -0.08231350034475327, 0.4296323359012604, -0.5002753734588623, 0.7221115827560425, 0.9511244297027588, 0.6203294992446899, 0.42745259404182434, -1.011681079864502, 0.3784838914871216, -0.46250593662261963, 0.040857963263988495, 0.01465414185076952, -0.7643638849258423, 0.7648861408233643, -0.30670809745788574, -0.28776466846466064, 0.6080184578895569, 0.5414106845855713, 0.6798535585403442, 0.2801206707954407, 0.7183734774589539, 0.6041774749755859, 0.8424561619758606, -0.22527644038200378, 1.1276870965957642, -0.28054383397102356, -0.2018784135580063, 1.3793449401855469, -0.6466720700263977, 1.190381646156311, 0.22591161727905273, -0.2698095440864563, 0.7143994569778442, 0.5863737463951111, 0.023908518254756927, 0.6424925923347473, 0.6599586606025696, -0.19473879039287567, -0.3507350981235504, -0.034940291196107864, -0.49708136916160583, 0.4267866313457489, 0.4373215138912201, -0.1133057177066803, -0.1337186098098755, -0.44375336170196533, -0.4062154293060303, 0.2232690155506134, -0.3108893036842346, 0.7350958585739136, 0.2201685905456543, -0.8317925930023193, 0.5787538886070251, -0.030211595818400383, 0.16335070133209229, -0.6509129405021667, -0.22327709197998047, -0.13347890973091125, 0.16583164036273956, -0.10654370486736298, -0.959708571434021, -0.0899106040596962, -0.15575946867465973, 0.06011442095041275, -0.014787785708904266, 0.5678005218505859, -0.1920703798532486, -0.3321370482444763, 0.4013395607471466, 0.727179229259491, 0.03823109716176987, 0.03908475488424301, -0.9317317008972168, 0.39290839433670044, -0.4871421456336975, -0.38848990201950073, 0.31432461738586426, 0.46339842677116394, -0.21498987078666687, 0.7872045040130615, 0.45940226316452026, -0.07171175628900528, -0.010321448557078838, 0.4373549818992615, 0.9395543932914734, -0.8106684684753418, -0.3420580327510834, -0.5626168251037598, 0.44016578793525696, -0.15041100978851318, -0.16565833985805511, 0.5464063882827759, 0.5605401396751404, 0.8142606616020203, 0.34538912773132324, 0.8057745099067688, 0.14664782583713531, 0.6396250128746033, -0.6408398747444153, 0.3441832959651947, -0.3833276629447937, 0.5257434248924255, 0.00862535834312439, -0.8703338503837585, 0.03442404791712761, 0.6302138566970825, -0.5639474391937256, 0.40918946266174316, 0.9505188465118408, 0.5782196521759033, 0.07094978541135788, 0.1493867039680481, 0.20811370015144348, 0.47891688346862793, -0.10396037250757217, 0.7278068661689758, 1.3213355541229248, -0.35584741830825806, 0.454514741897583, -0.34686124324798584, -0.4898258447647095, 0.10338228940963745, -1.0722683668136597, -0.8626066446304321, -0.4064270555973053, -0.2633046805858612, -0.13029535114765167, 0.19361190497875214, 0.6619455814361572, 0.5756146311759949, -0.5886368155479431, -0.36576950550079346, 0.0025701315607875586, 0.2924489974975586, -0.3433150053024292, -0.13419440388679504, 0.1596529334783554, -0.19158393144607544, -0.45277512073516846, 0.7939562797546387, 0.16334468126296997, -0.17816664278507233, -0.48764362931251526, -0.12612034380435944, -0.3911592662334442, 0.13728228211402893, 0.48492687940597534, 0.46170803904533386, -0.7618648409843445, -0.15300798416137695, -0.11799415200948715, 0.023107700049877167, -0.23270003497600555, 0.8263522386550903, -1.0945000648498535, 0.503939688205719, 0.5368183255195618, 0.7271050214767456, 0.8931739330291748, 0.108302041888237, 0.5925912857055664, -0.4426995515823364, -0.10750751942396164, 0.3200238347053528, 0.49724245071411133, 0.25664982199668884, 0.06717250496149063, 0.7995793223381042, -0.020070649683475494, -0.5158804059028625, -0.9083618521690369, 0.17489252984523773, -0.9611919522285461, -0.14584733545780182, 1.0549771785736084, -0.1878608912229538, -0.10162802040576935, 0.0006734468624927104, -0.003622720018029213, -0.13082793354988098, -0.32849639654159546, 0.594845175743103, 0.7205052971839905, -0.0930834636092186, -0.29065465927124023, -0.6016882061958313, 0.4061560034751892, 0.398868203163147, -0.6860591769218445, -0.04565955698490143, 0.3285827934741974, 0.04559509828686714, -0.0988316535949707, 0.992843747138977, -0.203708216547966, 0.5700293183326721, 0.062151502817869186, -0.26189032196998596, -0.24175959825515747, -0.47354575991630554, -0.4096982479095459, -0.003107248805463314, 0.4377365708351135, 0.12597492337226868 ]
http://arxiv.org/abs/2402.09401v1
http://arxiv.org/pdf/2402.09401v1
Reinforcement Learning from Human Feedback with Active Queries
2024-02-14T18:58:40
2024-02-14T18:58:40
Kaixuan Ji, Jiafan He, Quanquan Gu
cs.LG
cs.LG, cs.AI, cs.CL, math.OC, stat.ML
Aligning large language models (LLM) with human preference plays a key role in building modern generative models and can be achieved by reinforcement learning from human feedback (RLHF). Despite their superior performance, current RLHF approaches often require a large amount of human-labelled preference data, which is expensive to collect. In this paper, inspired by the success of active learning, we address this problem by proposing query-efficient RLHF methods. We first formalize the alignment problem as a contextual dueling bandit problem and design an active-query-based proximal policy optimization (APPO) algorithm with an $\tilde{O}(d^2/\Delta)$ regret bound and an $\tilde{O}(d^2/\Delta^2)$ query complexity, where $d$ is the dimension of feature space and $\Delta$ is the sub-optimality gap over all the contexts. We then propose ADPO, a practical version of our algorithm based on direct preference optimization (DPO) and apply it to fine-tuning LLMs. Our experiments show that ADPO, while only making about half of queries for human preference, matches the performance of the state-of-the-art DPO method.
[ -0.2968691289424896, -0.8630130887031555, 0.445856511592865, -0.1752370297908783, -0.03693665564060211, -0.045233141630887985, -0.4733057916164398, -0.2283409833908081, 0.16023460030555725, 0.6255335211753845, -0.701602041721344, -0.4169975817203522, -0.007924694567918777, -0.25816911458969116, 0.242365300655365, 0.6505889892578125, -0.25584349036216736, -0.06078534200787544, 0.04428941011428833, -0.2682991325855255, -0.24016985297203064, -0.2913414239883423, -0.7515074610710144, -0.22039014101028442, 0.7014287710189819, 0.5482166409492493, 0.8565483093261719, 0.6710054874420166, 0.1058804914355278, 0.3104359209537506, -0.16154997050762177, 0.7183144688606262, -0.4887745678424835, 0.45324915647506714, -0.21796850860118866, -0.4635879695415497, -0.26857471466064453, 0.032210130244493484, 0.4829779267311096, 0.42322903871536255, -0.5785297155380249, -0.3327274024486542, -0.21966664493083954, 0.8908048868179321, -0.8460001945495605, 0.08898632228374481, -0.689168393611908, 0.1385284662246704, -0.11681454628705978, -0.05058056488633156, -0.349689245223999, -0.5088271498680115, 0.16848434507846832, -0.9417775273323059, 0.003397205611690879, 0.3103582262992859, 0.8432742953300476, 0.31470292806625366, -0.49627381563186646, -0.2900943458080292, -0.698594331741333, 0.8727139830589294, -0.4564467668533325, 0.25560086965560913, 0.4745752215385437, 0.34597697854042053, -0.44355395436286926, -0.24480631947517395, -0.6933503746986389, -0.22459179162979126, -0.10420633107423782, 0.15556305646896362, 0.01586838811635971, 0.2636357247829437, 0.05890561640262604, 0.1842479258775711, -0.3793584704399109, 0.29148194193840027, -0.02571205422282219, -0.25181224942207336, 0.8842734694480896, 0.06035662442445755, 0.022710230201482773, -0.04035637155175209, -0.42380112409591675, -0.32393091917037964, -0.7382941842079163, 0.34118229150772095, 0.6297273635864258, 0.3081124424934387, 0.4113582670688629, 0.43759357929229736, -0.22059431672096252, 1.1783249378204346, 0.18790918588638306, -0.1132216826081276, -0.10273299366235733, -0.12941063940525055, 0.13053424656391144, 0.043429311364889145, 0.8786794543266296, 0.17107130587100983, 0.07507024705410004, -0.21452967822551727, -0.3001916706562042, -0.08040869235992432, 0.4983178973197937, -0.4029151201248169, -0.12340816855430603, 0.11743186414241791, -0.014507711865007877, -0.31761112809181213, -0.027796704322099686, -0.5703243017196655, -0.4452754557132721, -0.3240489363670349, 0.5892952084541321, -0.22981320321559906, -0.02206011861562729, 0.05554722249507904, 0.30470284819602966, 0.30259495973587036, 0.3941044211387634, -1.2026277780532837, 0.06632895767688751, 0.6642764210700989, 0.5659863948822021, -0.21337437629699707, -0.11581575870513916, -0.8560693860054016, 0.17641039192676544, -0.4242871105670929, 0.7373035550117493, -0.5611429810523987, -0.3795525133609772, 0.12931445240974426, -0.03188876062631607, -0.23245841264724731, -0.785933792591095, 0.7393043041229248, -0.9452450275421143, 0.299203485250473, -0.29426637291908264, -0.38127171993255615, -0.12884803116321564, 0.26525282859802246, -0.6166537404060364, 0.9889254570007324, 0.026384567841887474, -0.44878989458084106, 0.41845715045928955, -0.5516246557235718, -0.5089259743690491, -0.13985662162303925, -0.19301365315914154, -0.733868420124054, -0.16533398628234863, 0.3622637093067169, 0.2090233862400055, -0.03671024739742279, 0.31239885091781616, -0.40302515029907227, -0.49681776762008667, 0.21579670906066895, -0.09573187679052353, 0.5187838673591614, 0.25015634298324585, -0.4781297445297241, 0.5832961201667786, -0.3911147713661194, 0.058611731976270676, 0.050147123634815216, -0.6081613898277283, -0.43701857328414917, 0.4129392206668854, -0.35020411014556885, -0.0337848924100399, 0.13919386267662048, -0.3984901010990143, 0.6659898161888123, -0.6089856624603271, 0.47192609310150146, 0.8896306753158569, -0.1707097887992859, 0.6400481462478638, -0.1406145989894867, 0.5381962060928345, -0.2800922691822052, 0.22839999198913574, 0.12519367039203644, -0.06679809838533401, -0.5944512486457825, -0.2712401747703552, 0.5148910880088806, 0.48309364914894104, -0.8121823072433472, 0.714346706867218, 0.026782622560858727, -0.1671377569437027, -0.6648470759391785, 0.19187363982200623, 0.5182636380195618, 0.5515114665031433, 0.29372212290763855, -0.20807190239429474, -0.38054126501083374, -1.0028458833694458, -0.2937881350517273, -0.40484562516212463, 0.04359576478600502, 0.8982431888580322, -0.041752465069293976, -0.06917612254619598, 0.9580301642417908, -0.8595806360244751, -0.28225046396255493, -0.04696354642510414, -0.021708030253648758, 0.04507523030042648, 0.20781096816062927, 0.35793042182922363, -0.7911660671234131, -0.6788898706436157, -0.01273359451442957, -0.33243536949157715, 0.026429418474435806, 0.11840278655290604, -0.42491599917411804, 0.21843303740024567, 0.19667087495326996, -0.5320227742195129, -0.027836985886096954, 0.44319647550582886, -0.32314300537109375, 0.23020808398723602, -0.3267349302768707, 0.0299127995967865, -0.7468980550765991, -0.02618640474975109, -0.10589819401502609, -0.346327543258667, -0.282367467880249, -0.11559706926345825, 0.18259409070014954, -0.15166768431663513, -0.2910928726196289, 0.7645392417907715, -0.4455455541610718, -0.044170115143060684, -0.24400973320007324, 0.1415846198797226, -0.13274069130420685, 0.791927695274353, 0.23699046671390533, 0.8423277735710144, 0.45496025681495667, -0.7200728058815002, 0.6013156771659851, 0.30449506640434265, -0.22819295525550842, 0.4007258713245392, -0.4731222987174988, 0.18021583557128906, -0.11771059781312943, 0.3972194790840149, -1.0233856439590454, -0.2889884412288666, 0.29267963767051697, -0.3473222851753235, 0.4295429289340973, -0.25546184182167053, -0.19714070856571198, -0.10820432752370834, -0.3884119987487793, 0.23935428261756897, 0.46713659167289734, -0.8478480577468872, 0.4259118437767029, 0.7469642758369446, 0.10355875641107559, -0.8548848032951355, 0.08089009672403336, -0.2278992384672165, -0.17622385919094086, -0.4501488208770752, 0.5457950830459595, 0.3037281632423401, -0.08817171305418015, -0.015539086423814297, -0.28829556703567505, 0.1272232085466385, 0.1071428433060646, -0.04168182238936424, 0.2666270136833191, 0.2728651762008667, 0.11508114635944366, -0.09801164269447327, -0.1446305513381958, -0.2455260008573532, -0.35577237606048584, 0.3706796169281006, -0.060913603752851486, -0.39288467168807983, -0.2544679641723633, 0.09507188946008682, 0.38864344358444214, -0.30149978399276733, 0.5045499205589294, 0.425542414188385, 0.024908680468797684, -0.5353934168815613, -0.3743691146373749, -0.2480950504541397, -0.45204296708106995, 0.28973641991615295, -0.1515074074268341, -0.8474290370941162, 0.26416683197021484, -0.13312244415283203, 0.29595932364463806, 0.19556310772895813, 0.44638413190841675, -0.11204684525728226, 1.390954613685608, 0.3139799237251282, -0.007294260896742344, 0.9652117490768433, -0.2754378020763397, -0.01570122130215168, -0.6267213225364685, -0.3500146269798279, -0.34076622128486633, -0.6365928053855896, -0.5302300453186035, -0.43442079424858093, 0.5243808031082153, 0.283446729183197, -0.25147485733032227, 0.2609356641769409, -0.3973560631275177, 0.3932259976863861, 0.7726943492889404, 0.343868225812912, 0.06404680013656616, -0.017826439812779427, -0.3387584090232849, -0.051638778299093246, -0.8643536567687988, -0.2663794159889221, 0.983561635017395, 0.034897755831480026, 0.9784135818481445, 0.35022518038749695, 0.6545307040214539, 0.21409942209720612, 0.17052918672561646, -1.1463605165481567, 0.5569237470626831, -0.1312789022922516, -0.49472594261169434, -0.6685500741004944, -0.6085274815559387, -1.3282846212387085, 0.4249814450740814, -0.3372713625431061, -0.3323301374912262, 0.26277440786361694, 0.5319460034370422, -0.5832239985466003, 0.22455687820911407, -0.736156165599823, 0.8586919903755188, -0.5893456339836121, -0.9311148524284363, -0.23727074265480042, -0.6395412683486938, 0.2633036673069, 0.32895350456237793, -0.06416182965040207, -0.17714199423789978, -0.31807631254196167, 0.7657193541526794, -0.5171838402748108, 0.6269460916519165, -0.5069892406463623, -0.09493516385555267, 0.343962699174881, -0.10203289240598679, 0.8970958590507507, 0.21774524450302124, -0.02599288523197174, -0.5088363885879517, -0.26882097125053406, -0.44192758202552795, -0.6716902852058411, 0.7987352609634399, -0.9970086216926575, -0.6330655813217163, -0.4544818699359894, -0.14989188313484192, -0.6243245601654053, 0.05968628078699112, -0.25320756435394287, 0.2682666778564453, -0.2509726285934448, 0.17804737389087677, 1.0690666437149048, -0.28308001160621643, 0.3283872604370117, 0.8967269062995911, -0.0366673618555069, -0.47719132900238037, 0.7251450419425964, -0.0741446316242218, -0.02973390743136406, 0.5071563124656677, 0.37294408679008484, -0.7012152075767517, -0.3111603558063507, -0.7071881294250488, 0.24620531499385834, -0.17034953832626343, -0.28844693303108215, -0.4565373957157135, 0.12245690822601318, -0.16894076764583588, -0.041655026376247406, -0.5690207481384277, -0.2980120778083801, -0.09632157534360886, 0.15996035933494568, 0.367721825838089, 0.25101912021636963, 0.07374310493469238, 0.16553330421447754, -0.6067736148834229, 0.3441896140575409, 0.9082630276679993, 0.5505852699279785, -0.034596849232912064, -0.30064982175827026, -0.17300322651863098, -0.008466999046504498, -0.5085000991821289, -0.9084333181381226, 0.2851356565952301, 0.13403981924057007, 0.7892643213272095, 0.49364200234413147, 0.5255117416381836, 0.6365901827812195, -0.3817705512046814, 0.5116803646087646, 0.020512918010354042, -0.5632008910179138, 0.6780499815940857, -0.4083186388015747, 0.05709819495677948, 0.7413008809089661, 0.5535928606987, -0.4925670325756073, 0.2504904866218567, -0.615328848361969, -1.1246275901794434, 1.0644725561141968, -0.05973393842577934, -0.02567569725215435, 0.07840470224618912, 0.5838521718978882, -0.12627846002578735, 0.04620260372757912, -0.3036242425441742, -0.13597068190574646, 0.09052853286266327, -0.0448162779211998, 0.020915253087878227, -0.05956092104315758, -0.48599761724472046, -0.1256229132413864, 0.8888529539108276, -0.3212827146053314, 0.07183565199375153, 0.013707390986382961, 0.001307407976128161, -0.28429603576660156, 0.44025880098342896, 0.3884964883327484, 0.553485631942749, -0.28100109100341797, 0.029358165338635445, -0.01969282142817974, -0.09004689753055573, 0.2990008294582367, 0.14701497554779053, -0.2840290367603302, -0.267145037651062, 0.011662925593554974, 1.1183619499206543, 0.2683379650115967, -0.954738974571228, 0.6247388124465942, -0.21803097426891327, -0.3036290407180786, -0.1470799446105957, 0.5393891334533691, 0.020004311576485634, 0.19376306235790253, 0.24734804034233093, -0.19404636323451996, -0.093288354575634, -0.6756578683853149, 0.15695710480213165, 0.6860738396644592, -0.7496266961097717, -0.21835510432720184, 0.6277892589569092, 0.491655170917511, -0.34279167652130127, 0.607266902923584, -0.23645998537540436, -0.6240330338478088, 0.2719406485557556, 0.30664902925491333, 0.7616996169090271, -0.11468259245157242, 0.23611336946487427, 0.45779022574424744, -0.2593876123428345, -0.34471943974494934, 0.25213950872421265, -0.4278220534324646, -0.7318302989006042, -0.47993409633636475, -0.6598338484764099, -0.7026464939117432, -0.018698016181588173, -0.622092068195343, 0.355155885219574, -0.3188747763633728, -0.09918852895498276, -0.14504985511302948, 0.37022876739501953, -0.1465240716934204, -0.045098911970853806, -0.13205347955226898, 0.36390236020088196, -0.604175329208374, 0.8688144683837891, 1.0888686180114746, -0.1537974327802658, -0.7470781207084656, 0.017318282276391983, -0.10191676765680313, -1.0821247100830078, 0.3746410608291626, -0.19775158166885376, -0.09173405915498734, 0.08442114293575287, -0.457085520029068, -0.6685289144515991, 0.9699887037277222, 0.28048375248908997, -0.7133614420890808, -0.022474288940429688, -0.5862200260162354, 0.4609580338001251, -0.1494290828704834, 0.13074955344200134, 0.4710026681423187, 0.4571230709552765, 0.37221065163612366, -0.7395440340042114, -0.02766341157257557, 0.07241146266460419, -0.049937449395656586, 0.7234950661659241, -1.0466948747634888, 0.33862361311912537, -0.312455952167511, -0.10428135097026825, -0.3349595069885254, 0.5991543531417847, 0.4517793357372284, 0.01661931723356247, 0.9125388860702515, 0.6497872471809387, 0.6701727509498596, -0.08711905032396317, 0.9133951663970947, -0.20762741565704346, 0.3320717513561249, 0.8325054049491882, -0.26359954476356506, 0.911935567855835, 0.3392047882080078, -0.4593296945095062, 0.2946966290473938, 0.9223214387893677, 0.24212878942489624, 0.8366693258285522, 0.3648476004600525, -0.44475650787353516, -0.4917387068271637, 0.01772604137659073, -0.09908175468444824, 0.466219961643219, 0.16815920174121857, -0.09476643055677414, -0.11927968263626099, -0.3527650237083435, 0.08568260818719864, 0.3475622832775116, -0.21945467591285706, 1.2968425750732422, -0.31572425365448, -1.3416345119476318, 0.7149986624717712, 0.18456478416919708, 0.803646981716156, -0.7700804471969604, 0.0441187359392643, -0.4163986146450043, 0.3604779839515686, -0.11062648147344589, -0.5272029638290405, 0.1518162190914154, -0.20270468294620514, -0.06531866639852524, -0.3494356572628021, 0.4759301543235779, -0.7166058421134949, 0.0989411473274231, 0.039909541606903076, 0.21592731773853302, -0.21047064661979675, 0.0707775428891182, -0.8357638716697693, -0.23798665404319763, 0.16979660093784332, -0.4306066036224365, 0.5832041501998901, 0.1496613770723343, -0.33858829736709595, 0.45925769209861755, 0.6482537984848022, 0.17037297785282135, -0.23657140135765076, -0.11248946189880371, 0.8134517073631287, -0.640501856803894, -0.6156668663024902, -0.6318678855895996, 0.15626779198646545, -0.12047708034515381, -0.20788541436195374, 0.49885112047195435, 0.5729727149009705, 0.7493259906768799, 0.2281903326511383, 0.7182271480560303, -0.026799451559782028, 0.5266650319099426, -0.5891989469528198, 0.3519097864627838, -0.732265055179596, 0.4471297264099121, 0.18320970237255096, -0.9607356786727905, -0.09411436319351196, 0.7531053423881531, -0.44804146885871887, -0.07240265607833862, 0.24175436794757843, 0.9893584251403809, -0.03714529797434807, -0.32345297932624817, 0.1470242440700531, -0.13506658375263214, 0.19276347756385803, 0.6191813349723816, 0.873660683631897, -0.09630049765110016, 0.7290797829627991, -0.15794815123081207, -0.37242627143859863, -0.4909478425979614, -0.6840998530387878, -0.5602391362190247, -0.3652442395687103, -0.18294814229011536, -0.3954296112060547, 0.3308410048484802, 0.9916269183158875, 0.8176907300949097, -0.7493097186088562, -0.2251061052083969, -0.05724111944437027, 0.4152274429798126, -0.4967925548553467, -0.20013666152954102, 0.6701827049255371, -0.47701844573020935, -0.9392113089561462, 0.417762815952301, 0.11757256090641022, -0.05593854561448097, -0.3400889039039612, -0.44596630334854126, -0.3806719481945038, -0.047799985855817795, 0.38804447650909424, 0.6005575656890869, -0.8016451597213745, -0.06447471678256989, 0.13471834361553192, -0.059879228472709656, -0.0396701842546463, 1.060202717781067, -0.7236863970756531, 0.8096847534179688, 0.702945351600647, 0.7123958468437195, 0.7372417449951172, 0.40509435534477234, 0.7665427327156067, -0.8476694226264954, 0.014762310311198235, 0.411323606967926, 0.07140239328145981, 0.1926945596933365, -0.29639533162117004, 0.4677620530128479, 0.19644050300121307, -0.6398400068283081, -0.714204728603363, 0.39268574118614197, -0.8245931267738342, -0.39625075459480286, 1.224874496459961, -0.15294450521469116, -0.23126091063022614, -0.04991518333554268, -0.43120336532592773, 0.14254745841026306, -0.663986325263977, 0.9512961506843567, 0.3962061107158661, -0.6346679329872131, -0.06034424155950546, -0.3390601873397827, 0.8909136056900024, 0.6233591437339783, -0.5185068845748901, 0.29206380248069763, 0.6552318930625916, -0.002515482483431697, -0.20870757102966309, 0.687905490398407, -0.08916734158992767, 0.19014452397823334, -0.33554717898368835, -0.029702121391892433, -0.17356446385383606, -0.22733795642852783, -0.2055508941411972, 0.16728177666664124, 0.3151434361934662, -0.25739338994026184 ]
http://arxiv.org/abs/2402.09394v2
http://arxiv.org/pdf/2402.09394v2
Long-form evaluation of model editing
2024-02-14T18:45:14
2024-03-29T21:17:23
Domenic Rosati, Robie Gonzales, Jinkun Chen, Xuemin Yu, Melis Erkan, Yahya Kayani, Satya Deepika Chavatapalli, Frank Rudzicz, Hassan Sajjad
cs.CL
cs.CL
Evaluations of model editing currently only use the `next few token' completions after a prompt. As a result, the impact of these methods on longer natural language generation is largely unknown. We introduce long-form evaluation of model editing (LEME) a novel evaluation protocol that measures the efficacy and impact of model editing in long-form generative settings. Our protocol consists of a machine-rated survey and a classifier which correlates well with human ratings. Importantly, we find that our protocol has very little relationship with previous short-form metrics (despite being designed to extend efficacy, generalization, locality, and portability into a long-form setting), indicating that our method introduces a novel set of dimensions for understanding model editing methods. Using this protocol, we benchmark a number of model editing techniques and present several findings including that, while some methods (ROME and MEMIT) perform well in making consistent edits within a limited scope, they suffer much more from factual drift than other methods. Finally, we present a qualitative analysis that illustrates common failure modes in long-form generative settings including internal consistency, lexical cohesion, and locality issues.
[ -0.2420470118522644, -0.9348500370979309, 0.8060400485992432, 0.13013869524002075, -0.10509316623210907, 0.03941742330789566, -0.3442460298538208, -0.49279505014419556, 0.14085714519023895, 0.19896431267261505, -0.4870623052120209, -0.39335620403289795, -0.5087181925773621, 0.3430517911911011, -0.3970426321029663, 0.753598153591156, -0.10499395430088043, 0.04280520975589752, -0.5289010405540466, -0.09018829464912415, -0.4860217869281769, -0.48609963059425354, -0.7564066052436829, -0.2877216041088104, 0.553753674030304, 0.11565925925970078, 0.7917085289955139, 0.28257259726524353, 0.6343718767166138, 0.3152439296245575, -0.5083200335502625, 0.1637570559978485, -0.4773324429988861, -0.14896860718727112, -0.3311898112297058, -0.44424188137054443, -0.9885457158088684, 0.052844446152448654, 0.9483891129493713, 0.8069474697113037, -0.014186267741024494, 0.17572416365146637, 0.15533919632434845, 0.7388460040092468, -0.7612077593803406, -0.34781232476234436, -0.4901067614555359, -0.056571830064058304, -0.38301530480384827, 0.159963458776474, -0.5695595145225525, -0.16176831722259521, -0.02152961865067482, -0.34199294447898865, 0.18255703151226044, -0.2172771841287613, 0.6488282680511475, 0.0905342549085617, -0.27788153290748596, -0.3100811839103699, -0.7275631427764893, 0.6563560962677002, -1.1621122360229492, 0.42774948477745056, 0.367198646068573, 0.30270516872406006, -0.3209521472454071, -0.6491568088531494, -0.5230526328086853, -0.6333617568016052, 0.021257096901535988, 0.17791609466075897, -0.1728796362876892, 0.3054874837398529, 0.5448041558265686, 0.33776596188545227, -0.36158815026283264, 0.46196895837783813, -0.5021641254425049, -0.23811817169189453, 0.6642187237739563, 0.15283507108688354, 0.24152815341949463, -0.5131412148475647, -0.10999808460474014, 0.1457240730524063, -0.7119449973106384, 0.05495820194482803, 0.5349936485290527, 0.1342204213142395, -0.026491964235901833, 0.7630422115325928, -0.2332310527563095, 0.867781937122345, 0.057191651314496994, -0.15738894045352936, 0.06569750607013702, -0.34565529227256775, -0.4935914874076843, -0.19806210696697235, 0.9814290404319763, 0.7149163484573364, -0.18395330011844635, -0.0019655642099678516, -0.38609862327575684, -0.029951024800539017, 0.1068309098482132, -0.7174432873725891, 0.23074346780776978, 0.04523390904068947, -0.5529143214225769, -0.4540168046951294, -0.07607227563858032, -0.5998336672782898, -0.3462650775909424, -0.22104081511497498, 0.5458260774612427, -0.3166222870349884, 0.06801775842905045, 0.24657513201236725, -0.15795257687568665, -0.0637233555316925, 0.5503891706466675, -0.6968784928321838, 0.3314104974269867, 0.7928000688552856, 1.0791374444961548, -0.20598188042640686, -0.40812593698501587, -0.6330786347389221, -0.054951298981904984, -0.34332817792892456, 0.6323704719543457, -0.4717009961605072, -0.7092617154121399, -0.2563864588737488, 0.09418725222349167, -0.06602658331394196, -0.4666437804698944, 0.620167076587677, -0.26544302701950073, 0.3079131543636322, -0.1272660195827484, -0.8959512114524841, 0.12034381181001663, 0.07998407632112503, -0.7636488080024719, 0.9753139615058899, 0.12849311530590057, -0.4886544942855835, 0.4220016300678253, -1.0539225339889526, -0.2692789137363434, -0.20601272583007812, 0.10978612303733826, -0.5074661374092102, 0.4924941658973694, 0.13791993260383606, 0.4877733886241913, -0.2603171169757843, 0.2556227445602417, -0.32875004410743713, -0.242421492934227, 0.22962649166584015, -0.5544314384460449, 0.5778477787971497, -0.06892362982034683, -0.20824973285198212, 0.07767625898122787, -0.9948363304138184, -0.1729874610900879, 0.022423023357987404, -0.25149956345558167, -0.31481489539146423, -0.13469237089157104, -0.12382370978593826, 0.113179512321949, 0.12568889558315277, -0.6515787839889526, 0.5686103701591492, -0.30197104811668396, 0.6643917560577393, 0.8573144674301147, 0.19222019612789154, 0.49786993861198425, -0.3934418857097626, 0.6692278385162354, -0.4128238558769226, 0.2167995274066925, -0.13181965053081512, -0.3569003641605377, -0.8920291662216187, -0.087637759745121, 0.7169666290283203, 0.28518131375312805, -0.25198617577552795, 0.2430662363767624, -0.31299158930778503, -0.6087601184844971, -0.4747599959373474, 0.14866843819618225, 0.22925719618797302, 0.46779927611351013, 0.18757247924804688, -0.4859032928943634, -0.22289086878299713, -0.975767970085144, -0.19504289329051971, 0.1268237978219986, 0.024286765605211258, 0.08898796141147614, 0.7499464154243469, -0.48052987456321716, 0.863452672958374, -0.19599014520645142, 0.113526351749897, -0.11203033477067947, 0.3857278823852539, 0.11875536292791367, 0.49922987818717957, 0.5970520377159119, -0.1443796455860138, -0.21182845532894135, -0.2553015649318695, -0.5860546827316284, -0.11792115867137909, -0.46350881457328796, -0.18482252955436707, 0.2536830008029938, 0.5678187608718872, -0.7776758670806885, 0.5836014747619629, 0.515198290348053, -0.16577845811843872, 0.802413284778595, -0.22681765258312225, 0.3424364924430847, -1.0074440240859985, -0.012292471714317799, -0.2310078740119934, -0.3180963695049286, -0.5667135119438171, -0.021770784631371498, 0.07416006177663803, -0.11706209182739258, -0.5452173352241516, 0.6337921023368835, -0.46892833709716797, -0.10006915032863617, -0.08008512854576111, 0.2183191031217575, 0.27315637469291687, -0.031942691653966904, -0.16519734263420105, 0.5707530975341797, 0.09939876943826675, -0.47209224104881287, 0.3070564866065979, 0.000022750227799406275, -0.5106968283653259, 0.64696204662323, -0.7740929126739502, 0.7553403377532959, -0.20275311172008514, 0.2131333202123642, -0.5152092576026917, -0.22312043607234955, -0.09528077393770218, -0.3442770540714264, 0.2568246126174927, 0.02727353200316429, -0.5118907690048218, -0.2836090624332428, -0.40294626355171204, 0.33328813314437866, 0.31695112586021423, -0.3060413897037506, 0.46080100536346436, -0.2798556387424469, -0.15780137479305267, -0.4060628116130829, -0.5966394543647766, 0.31414055824279785, -0.18629565834999084, -0.8806730508804321, 0.30088722705841064, -0.31659582257270813, -0.416791707277298, -0.1574188768863678, 0.07012268155813217, 0.2098706066608429, 0.29567065834999084, 0.1857345551252365, 0.02017718367278576, -0.11689924448728561, 0.18674825131893158, 0.3410312533378601, 0.06276194751262665, -0.07524482905864716, 0.46111369132995605, 0.34659355878829956, 0.025291427969932556, -0.5783566832542419, -0.7997744679450989, 0.43826159834861755, 0.7115239500999451, -0.2319404035806656, 0.4637700319290161, 0.291606605052948, -0.43362751603126526, -0.12774257361888885, -0.4346298575401306, -0.03267304599285126, -0.429708331823349, 0.576662003993988, -0.5703660249710083, -0.8207418918609619, 0.40503135323524475, -0.27284494042396545, 0.20128558576107025, 0.7754560112953186, 0.36655193567276, -0.17055004835128784, 0.94270259141922, 0.9000834226608276, 0.10453428328037262, 0.265903115272522, -0.2609236240386963, 0.030457327142357826, -0.8579341173171997, 0.08165726065635681, -0.4883439242839813, -0.24296928942203522, -0.31128302216529846, -0.5333133935928345, 0.2293258160352707, 0.6786524653434753, -0.030330920591950417, 0.20565669238567352, -0.22756022214889526, 0.40354934334754944, 0.3390921354293823, -0.011949943378567696, 0.4019199311733246, -0.2740650773048401, -0.006828551180660725, -0.2041560560464859, -0.6194500923156738, -0.6701815128326416, 1.0503461360931396, 0.5995783805847168, 0.5104484558105469, 0.11998318880796432, 0.9101216793060303, 0.5723636746406555, 0.48462432622909546, -0.8654727339744568, 0.5029162168502808, -0.08676739037036896, -0.33514294028282166, -0.5675960183143616, -0.21211135387420654, -0.7455312013626099, -0.1391630321741104, -0.2141382098197937, -0.7524343132972717, 0.08653140813112259, 0.1421251744031906, -0.573470950126648, 0.2865030765533447, -0.5222865343093872, 0.9359282851219177, -0.35692232847213745, -0.27661630511283875, -0.22324535250663757, -0.4435669481754303, 0.3068009912967682, -0.21462832391262054, 0.3774672746658325, -0.018412986770272255, 0.08953595161437988, 0.7953331470489502, -0.6414414048194885, 0.6489190459251404, 0.00684603676199913, -0.14350351691246033, 0.1771641969680786, 0.19678671658039093, 0.5699557065963745, 0.15846243500709534, -0.32773029804229736, 0.12466518580913544, -0.14363674819469452, -0.23271919786930084, -1.037416696548462, 0.43909239768981934, -0.5261198878288269, -0.45745614171028137, -0.2939406931400299, -0.20728933811187744, -0.272381067276001, 0.15490597486495972, 0.41313114762306213, 0.4740331768989563, -0.5520728230476379, 0.16322530806064606, 0.16943715512752533, -0.3095434904098511, 0.481179416179657, 0.23985005915164948, -0.43413594365119934, -0.5587527751922607, 0.5827996730804443, 0.1361723095178604, 0.8266536593437195, 0.16076429188251495, 0.27288466691970825, 0.17444059252738953, -0.4526686370372772, -0.6715192198753357, 0.11501169949769974, -0.7430235147476196, -0.058359503746032715, -0.4375648498535156, -0.2704853415489197, -0.3770603537559509, -0.37209951877593994, -0.5149117708206177, -0.5197312831878662, -0.12401933968067169, -0.1199524849653244, 0.049570851027965546, 1.022560715675354, -0.2596554458141327, 0.44520506262779236, -0.8343265652656555, 0.29023391008377075, 0.37627825140953064, 0.26700130105018616, -0.08558803051710129, -0.5400537848472595, -0.2554989755153656, 0.19443970918655396, -0.14897792041301727, -1.0021787881851196, 0.04758079722523689, 0.3779033422470093, 0.40367189049720764, 0.21628497540950775, -0.4389435946941376, 0.7653854489326477, -0.5681380033493042, 1.0488922595977783, 0.23574689030647278, -1.2215591669082642, 0.7108997106552124, -0.30409035086631775, 0.5055245161056519, 0.5286023020744324, 0.10987211018800735, -0.7074719071388245, -0.3251871168613434, -0.527547299861908, -0.6444858312606812, 0.29266858100891113, 0.11475089192390442, 0.24217021465301514, -0.09802359342575073, 0.572217583656311, 0.27904751896858215, 0.13653278350830078, -0.6696988940238953, -0.06004540994763374, -0.01548751164227724, 0.22800639271736145, -0.21467553079128265, -0.716690719127655, 0.016114022582769394, -0.36121025681495667, 0.7227513194084167, 0.08083419501781464, 0.16422566771507263, 0.23243768513202667, -0.32014140486717224, -0.07463784515857697, 0.6745461821556091, 1.0123945474624634, 1.025949239730835, -0.4650692641735077, -0.20676088333129883, 0.29757001996040344, -0.18844074010849, -0.09577807784080505, -0.08980346471071243, -0.47462835907936096, 0.3183062672615051, 0.6222493648529053, 1.0311630964279175, 0.09940822422504425, -0.3893049657344818, 0.3934045732021332, 0.007153594400733709, -0.29402053356170654, -0.012214160524308681, -0.16129830479621887, 0.007523104082792997, -0.11136553436517715, 0.000036681372876046225, 0.17613893747329712, 0.374776154756546, -0.6688973903656006, -0.013065056875348091, 0.3273898661136627, -0.38494929671287537, -0.3881601393222809, 0.5060932040214539, 0.2611413896083832, -0.5193657875061035, 0.5422855019569397, -0.29612234234809875, -0.23839209973812103, 0.5301797389984131, 0.4362223744392395, 1.0717381238937378, -0.19062279164791107, 0.27803942561149597, 0.5086966156959534, 0.5388829112052917, 0.0018302206881344318, 0.027648624032735825, 0.1652209609746933, -0.365998774766922, -0.745898962020874, -0.7927283644676208, -0.4889635443687439, 0.4533730447292328, -0.6066166162490845, 0.4366382658481598, -0.3664199411869049, -0.4725138247013092, 0.11726018786430359, -0.3352399170398712, -0.5956466794013977, 0.12940387427806854, 0.04685211181640625, 0.9756869673728943, -0.7754124402999878, 0.4824388921260834, 0.6827730536460876, -0.2522149682044983, -0.5251553058624268, -0.18484655022621155, 0.03039027936756611, -0.24513550102710724, 0.47277262806892395, 0.34133002161979675, -0.17439329624176025, -0.32958975434303284, -0.5128310322761536, -0.7970542907714844, 0.9612017273902893, 0.37303516268730164, -0.998346745967865, -0.2692973017692566, 0.28545549511909485, 0.5769963264465332, -0.2037755846977234, 0.21773572266101837, 0.5958300232887268, 0.488633394241333, -0.32719019055366516, -1.4115877151489258, -0.12498364597558975, -0.15833424031734467, 0.08351538330316544, 0.10979823023080826, -0.577584981918335, 0.6441775560379028, -0.2426237314939499, -0.07688766717910767, 0.4761984646320343, 0.7061486840248108, -0.09058378636837006, 0.3210827708244324, 0.5375874638557434, 0.7531969547271729, 0.7595205903053284, 0.20169074833393097, 0.9062846899032593, -0.2085932493209839, 0.5328555107116699, 1.419503092765808, -0.1329912543296814, 0.9402695298194885, 0.33685773611068726, -0.22756724059581757, 0.5562236905097961, 0.5137049555778503, 0.06706952303647995, 0.21296267211437225, 0.4902978241443634, -0.20905351638793945, -0.2672189474105835, 0.0751708596944809, -0.34930968284606934, 0.5640711188316345, 0.15505854785442352, -0.4746180772781372, -0.2269979566335678, 0.19529865682125092, 0.2262725532054901, 0.10750488191843033, -0.33205026388168335, 0.6456764340400696, 0.2004208117723465, -0.4762575924396515, 0.4543816149234772, 0.2549259662628174, 0.6333830952644348, -0.3054335415363312, -0.21158207952976227, -0.15010200440883636, -0.14598119258880615, -0.1866273283958435, -0.4496079385280609, 0.173785001039505, 0.03767797350883484, -0.3502578139305115, -0.087798111140728, 0.5723380446434021, -0.08315306156873703, -0.7565861344337463, 0.18514683842658997, 0.5457826256752014, 0.09048803150653839, 0.05885002389550209, -0.6779574155807495, 0.11363505572080612, -0.24918468296527863, -0.4009104371070862, 0.10544924437999725, 0.16497774422168732, -0.195962056517601, 0.3861047327518463, 0.5751807689666748, 0.1255897730588913, -0.06188946217298508, 0.4938391447067261, 0.39667078852653503, -0.7426590919494629, -0.11131858080625534, -0.9931309819221497, 0.706699788570404, -0.2754441201686859, -0.41017279028892517, 0.6387042999267578, 0.6958156824111938, 0.7138838171958923, 0.019293220713734627, 0.8743335008621216, -0.02031203918159008, 0.3319401144981384, -0.7367678880691528, 0.7103834748268127, -0.4488741159439087, 0.18190984427928925, -0.4106433093547821, -1.1797195672988892, -0.2710645794868469, 0.2312679886817932, -0.3874678313732147, 0.012544607743620872, 0.7293387651443481, 0.6953418254852295, -0.01577228493988514, -0.34310296177864075, 0.4667234420776367, 0.3427650034427643, 0.2745591104030609, 0.36139291524887085, 0.9569979310035706, -0.3816108703613281, -0.13179145753383636, -0.5571058988571167, -0.18988701701164246, -0.006369973532855511, -1.1543502807617188, -0.9913703203201294, -0.3683164715766907, -0.2944698929786682, -0.3214312195777893, 0.4052903652191162, 0.8458408713340759, 0.46681469678878784, -0.35100334882736206, -0.08326742798089981, 0.09877585619688034, -0.020602872595191002, -0.02157638594508171, -0.21902313828468323, 0.546644389629364, -0.18846838176250458, -0.8276378512382507, 0.5674371123313904, 0.46814072132110596, -0.020355304703116417, -0.29612842202186584, -0.08215178549289703, 0.04642466455698013, 0.18171082437038422, 0.8542967438697815, 0.0634981244802475, -0.7320182919502258, -0.4900619387626648, 0.002798197790980339, -0.022646911442279816, 0.05150294676423073, 0.5819137692451477, -0.529492199420929, 0.8592125773429871, 0.41039130091667175, 0.31654396653175354, 0.22870460152626038, 0.02863047644495964, 0.658814013004303, -0.46091896295547485, -0.10166332870721817, 0.09637846797704697, 0.42506664991378784, 0.5126863718032837, -0.22259463369846344, 0.398200660943985, 0.19506806135177612, -0.7405369281768799, -1.0411885976791382, 0.10916676372289658, -0.9997469782829285, 0.01808934099972248, 1.2498314380645752, -0.016472747549414635, -0.20952662825584412, 0.4474705159664154, -0.3221283257007599, 0.10255586355924606, -0.18703800439834595, 0.6281646490097046, 0.9044304490089417, -0.24564790725708008, -0.025904294103384018, -0.8299630880355835, 0.5255959033966064, 0.3979818820953369, -0.8415179252624512, -0.17638209462165833, 0.8178161382675171, 0.3262614607810974, 0.2192021608352661, 0.6771891117095947, -0.01819545216858387, 0.5333613753318787, -0.18859286606311798, 0.12171433120965958, 0.0056734769605100155, -0.17066873610019684, -0.5390328168869019, -0.08040343970060349, 0.4173049032688141, 0.34512415528297424 ]
http://arxiv.org/abs/2402.09391v3
http://arxiv.org/pdf/2402.09391v3
LlaSMol: Advancing Large Language Models for Chemistry with a Large-Scale, Comprehensive, High-Quality Instruction Tuning Dataset
2024-02-14T18:42:25
2024-04-01T17:28:16
Botao Yu, Frazier N. Baker, Ziqi Chen, Xia Ning, Huan Sun
cs.AI
cs.AI, cs.CE, cs.CL
Chemistry plays a crucial role in many domains, such as drug discovery and material science. While large language models (LLMs) such as GPT-4 exhibit remarkable capabilities on natural language processing tasks, existing research indicates that their performance on chemistry tasks is discouragingly low. In this paper, however, we demonstrate that our developed LLMs can achieve very strong results on a comprehensive set of chemistry tasks, outperforming the most advanced GPT-4 and Claude 3 Opus by a substantial margin. To accomplish this, we propose SMolInstruct, a large-scale, comprehensive, and high-quality dataset for instruction tuning. It contains 14 selected chemistry tasks and over three million samples, laying a solid foundation for training and evaluating LLMs for chemistry. Using SMolInstruct, we fine-tune a set of open-source LLMs, among which, we find that Mistral serves as the best base model for chemistry tasks. Our analysis further demonstrates the critical role of the proposed dataset in driving the performance improvements.
[ 0.11560924351215363, -0.5765641331672668, 0.7812856435775757, -0.0778527557849884, 0.13189105689525604, 0.1867271065711975, -0.4837833642959595, 0.05027294531464577, -0.3228297829627991, 0.5433403849601746, -0.5755035281181335, -0.7490957379341125, -0.586997389793396, 0.08624168485403061, -0.1291666179895401, 1.1877845525741577, -0.06949390470981598, 0.41760894656181335, -0.30250513553619385, 0.2103446125984192, -0.14251352846622467, -0.18964891135692596, -0.4591653048992157, -0.4543161988258362, 0.5592242479324341, 0.4799645245075226, 0.3947039842605591, 0.8212783336639404, 0.6652217507362366, 0.3494170010089874, 0.011212735436856747, 0.2975066900253296, -0.7303993701934814, 0.22365926206111908, -0.43568646907806396, -0.5223618745803833, -0.7581468820571899, 0.06060953810811043, 0.5524758100509644, 0.5555654764175415, -0.2875164747238159, 0.17934684455394745, 0.055882468819618225, 0.8335807919502258, -0.5510767102241516, 0.4246174693107605, -0.5753624439239502, -0.1027241125702858, -0.32963135838508606, -0.011973857879638672, -0.42507120966911316, -0.19909709692001343, 0.03776824101805687, -0.7157763242721558, 0.3379870355129242, -0.1863769143819809, 0.619986355304718, 0.3534430265426636, -0.6501687169075012, -0.5622798204421997, -0.5383195877075195, 0.9505680799484253, -0.7320824861526489, 0.583709180355072, 0.1292562186717987, 0.33903032541275024, -0.48843830823898315, -1.1624268293380737, -0.14300890266895294, -0.42453470826148987, 0.25402989983558655, 0.05631373077630997, 0.21227063238620758, 0.3934316039085388, 0.259054034948349, 0.541983425617218, -0.7511948347091675, -0.2315240502357483, -0.44478505849838257, -0.3653321862220764, 0.15317901968955994, 0.3942773938179016, 0.12864789366722107, 0.23225055634975433, -0.2828216850757599, -0.02994743175804615, -0.6693251729011536, -0.21028877794742584, 0.12847377359867096, 0.4461711347103119, 0.3119531273841858, 0.5769460797309875, -0.228323295712471, 0.6585492491722107, -0.06758127361536026, -0.08980100601911545, 0.0863037109375, -0.29568392038345337, -0.36149415373802185, 0.0634169802069664, 0.4376474618911743, -0.015419437550008297, 0.22770453989505768, -0.14676277339458466, -0.11806178092956543, 0.2666926681995392, 0.28066638112068176, -1.3249890804290771, -0.7362082004547119, 0.2558234632015228, 0.09022877365350723, -0.15372425317764282, -0.13548246026039124, -0.6290495991706848, -0.41948217153549194, -0.6456304788589478, 0.5006272196769714, -0.4173019826412201, 0.15504257380962372, 0.027232419699430466, -0.17779205739498138, -0.2373654842376709, 0.3687295615673065, -1.2458959817886353, 0.4981022775173187, 0.7991071343421936, 0.8916277289390564, -0.37121009826660156, -0.29235464334487915, -0.5726212859153748, 0.3738918900489807, -0.3478367030620575, 0.8983417749404907, -0.705262303352356, -0.25319617986679077, -0.38434261083602905, 0.14475005865097046, 0.020046671852469444, -0.8224537968635559, 0.5095487833023071, -0.24620108306407928, -0.008367395959794521, -0.3610530495643616, -0.7611322999000549, 0.22915644943714142, 0.019451826810836792, -0.6466204524040222, 0.9574819207191467, 0.3834354281425476, -0.29826992750167847, 0.2365831881761551, -0.6050723791122437, -0.3578733503818512, 0.007044768426567316, -0.1232682541012764, -0.24075427651405334, 0.2551569938659668, 0.23917631804943085, 0.3703525960445404, -0.40666207671165466, 0.06407853960990906, -0.15198512375354767, -0.4176429212093353, 0.3416242301464081, -0.29657554626464844, 0.5561968684196472, 0.22028519213199615, -0.3259040415287018, 0.23177550733089447, -0.6729657649993896, 0.1922285109758377, -0.4742802381515503, -0.5680713057518005, 0.04371687397360802, -0.2662201225757599, -0.006151619367301464, 0.2308053970336914, 0.4282229244709015, -0.4346335828304291, 0.35366570949554443, -0.25653785467147827, 0.5517844557762146, 1.2143890857696533, -0.12773874402046204, 0.4888139069080353, -0.06746578961610794, 0.5839191675186157, -0.2391514927148819, 0.1634780466556549, 0.01494425255805254, -0.23097911477088928, -0.8018457889556885, -0.656684935092926, 0.3359575867652893, 0.2709810137748718, -0.5922538042068481, 0.006113267969340086, -0.35090774297714233, -0.5634763836860657, -0.37052205204963684, 0.6977109313011169, 0.34383031725883484, 0.41488972306251526, 0.3345722258090973, 0.2008688598871231, -0.36826905608177185, -0.9602002501487732, -0.4027871787548065, 0.27394190430641174, 0.03668774291872978, 0.35867011547088623, 0.5135683417320251, -0.4091886281967163, 0.5562363266944885, -0.737743616104126, -0.3290356695652008, -0.16430488228797913, -0.1059049442410469, 0.40204551815986633, 0.12679414451122284, 0.19408220052719116, -0.458548903465271, -0.7218309640884399, 0.23979265987873077, -0.5707119703292847, -0.303379625082016, 0.4236335754394531, -0.6512047052383423, 0.11698771268129349, 0.58382248878479, -0.5336592197418213, -0.19950787723064423, 0.7516306638717651, -0.23185858130455017, 0.4527173638343811, -0.1985468715429306, 0.24292440712451935, -0.9832006096839905, 0.07150520384311676, -0.0694790929555893, -0.028862331062555313, -0.7448303699493408, -0.056747157126665115, 0.2782997190952301, -0.259825199842453, -0.6092613339424133, 0.6330834031105042, -0.35675716400146484, 0.11249120533466339, -0.40169399976730347, -0.20822454988956451, -0.059757109731435776, 0.4208228886127472, -0.11161038279533386, 0.9404037594795227, 0.5170716047286987, -0.5436627864837646, 0.44253894686698914, -0.13107618689537048, -0.2706746459007263, 0.45442435145378113, -0.5587447881698608, -0.06383351981639862, 0.26262563467025757, 0.3491244614124298, -0.7656827569007874, -0.6884183287620544, -0.10380985587835312, -0.13283567130565643, 0.3539521098136902, -0.2582921087741852, -0.5700202584266663, -0.156662717461586, -0.10393573343753815, 0.26552844047546387, 0.3282551169395447, -0.5534531474113464, 0.7170073986053467, 0.1976890116930008, -0.22758415341377258, -0.46650969982147217, -0.29982003569602966, -0.17366279661655426, -0.15245424211025238, -0.579197883605957, 0.18708442151546478, -0.3587365746498108, 0.06960893422365189, -0.20742292702198029, -0.5980561971664429, -0.21284233033657074, -0.21277107298374176, 0.4322032630443573, 0.2518932521343231, -0.15569919347763062, 0.3197774291038513, 0.01385436486452818, -0.2586650550365448, -0.17397017776966095, -0.45077553391456604, 0.5352461934089661, -0.20378483831882477, 0.054327525198459625, -0.3159331679344177, -0.13740739226341248, 0.8675983548164368, -0.21048511564731598, 0.5995813608169556, 0.39308062195777893, -0.047026511281728745, -0.6977386474609375, -0.1583692729473114, -0.28937843441963196, -0.6253324747085571, 0.4518040120601654, -0.21422792971134186, -0.9772512912750244, 0.1606593281030655, -0.39595624804496765, -0.017765672877430916, 0.1939106285572052, 0.7752898335456848, -0.07072453200817108, 0.8962236642837524, 0.3413373529911041, 0.07708664983510971, 0.41666585206985474, -0.3000909686088562, 0.23268352448940277, -0.6675070524215698, -0.08320166915655136, -0.29968175292015076, -0.07133639603853226, -0.3535092771053314, -0.5833794474601746, 0.604918360710144, -0.26511430740356445, -0.3921668827533722, 0.2573927640914917, -0.42852941155433655, 0.8724839687347412, 0.3283866047859192, 0.13753511011600494, 0.18567195534706116, 0.3251532316207886, -0.12043115496635437, -0.0965115949511528, -0.4758428931236267, -0.459119975566864, 1.400593638420105, 0.08020322024822235, 1.00223708152771, 0.18633097410202026, 0.5801018476486206, 0.16850164532661438, 0.25779905915260315, -0.6065723896026611, 0.5722442865371704, -0.4580563008785248, -0.925116240978241, -0.23972629010677338, -0.6806229948997498, -0.8470054864883423, 0.29169121384620667, 0.13273628056049347, -0.3487577438354492, -0.4126449525356293, 0.247995525598526, 0.0158203337341547, -0.10286465287208557, -0.7899907827377319, 1.0574625730514526, -0.3730745315551758, -0.6852872371673584, -0.16412530839443207, -0.20443153381347656, 0.3747931718826294, -0.14467649161815643, 0.21044482290744781, -0.2670936584472656, 0.055845607072114944, 0.44834715127944946, -0.38824644684791565, 0.510659396648407, -0.061431799083948135, -0.3774864077568054, 0.07731945067644119, 0.12670473754405975, 0.31953275203704834, -0.024062158539891243, -0.18186743557453156, -0.031864531338214874, 0.15009069442749023, -0.5711473822593689, -0.9171426892280579, 1.2982028722763062, -0.553968608379364, -0.4215103089809418, -0.4248518645763397, -0.7557564973831177, -0.2643829584121704, 0.2630468010902405, 0.3131178021430969, 0.5147271156311035, -0.02861686609685421, 0.11567070335149765, 0.7154501676559448, 0.0222312118858099, 0.06299225986003876, 0.48096656799316406, -0.025486759841442108, -0.48876240849494934, 1.3264693021774292, 0.19921107590198517, 0.46488067507743835, 0.23318757116794586, 0.08145511895418167, -0.30883553624153137, -0.27952441573143005, -0.39844462275505066, 0.2632969915866852, -0.8326660394668579, -0.19628888368606567, -0.3463188111782074, -0.1742808222770691, -0.5840215682983398, -0.16992010176181793, -0.5485782027244568, -0.4828310012817383, -0.13332650065422058, -0.09467743337154388, 0.2641713321208954, 0.6925984621047974, 0.09990730881690979, 0.28878894448280334, -0.6679547429084778, 0.4845833480358124, 0.36783310770988464, 0.5586000084877014, -0.18015128374099731, -0.4097743630409241, -0.642562210559845, 0.09235121309757233, -0.32047444581985474, -0.4615684449672699, 0.1752028614282608, 0.4321380853652954, 0.7369447946548462, 0.16026253998279572, -0.23134884238243103, 0.5977290272712708, -0.6988500952720642, 0.6902271509170532, -0.3373478055000305, -0.8149868249893188, 0.6563346982002258, -0.5705091953277588, 0.3683265745639801, 0.5459772944450378, 0.2739502787590027, -0.16485905647277832, -0.275579571723938, -0.5043101906776428, -0.8870038986206055, 0.6720225214958191, 0.38600680232048035, -0.12919269502162933, 0.17195062339305878, 0.2200525403022766, 0.06632188707590103, 0.316697895526886, -0.6951717138290405, -0.18244391679763794, -0.13876785337924957, -0.5832985043525696, -0.25331366062164307, 0.19584321975708008, -0.2245432585477829, -0.38273176550865173, 1.023683786392212, -0.06821734458208084, -0.030330592766404152, -0.31215375661849976, -0.26369017362594604, 0.029838483780622482, 0.3352636396884918, 0.7182179093360901, 0.5624614357948303, -0.34859710931777954, 0.18047784268856049, 0.024281885474920273, -0.8095458149909973, 0.354711651802063, -0.046859260648489, 0.40234681963920593, -0.375767320394516, 0.36229774355888367, 0.5362876057624817, 0.13377149403095245, -1.0167790651321411, 0.322939395904541, 0.07749927043914795, 0.012288656085729599, 0.0405106320977211, 0.6787776350975037, 0.05304165929555893, 0.2858034670352936, 0.2265387326478958, -0.1497262567281723, 0.309248149394989, -0.689341127872467, 0.2350730150938034, 0.2637921869754791, -0.1922425925731659, -0.09928806871175766, 0.35085850954055786, 0.03754277154803276, 0.058055005967617035, 0.6036748290061951, 0.05096554756164551, -0.4288851320743561, 0.6333959102630615, 0.5500523447990417, 0.5291051268577576, -0.45364800095558167, 0.15038852393627167, 0.42165735363960266, 0.1378849446773529, -0.23408879339694977, 0.11367297917604446, -0.17849819362163544, -0.24181725084781647, -0.1356172114610672, -0.8276450037956238, -0.3314644694328308, 0.17062045633792877, -0.4449211359024048, 0.22242827713489532, -0.6913232803344727, -0.06767547130584717, 0.11244591325521469, 0.24669180810451508, -0.39216816425323486, 0.16804978251457214, -0.1537190079689026, 0.5270006060600281, -0.910676121711731, 0.8912899494171143, 0.6669397950172424, -0.10411455482244492, -0.5943102240562439, -0.1968107968568802, 0.2670089602470398, -0.39203575253486633, 0.796842634677887, 0.18764862418174744, -0.24899201095104218, 0.1830795556306839, -0.6900581121444702, -1.0350197553634644, 1.1937668323516846, 0.5799813866615295, -0.4799182116985321, 0.04097979515790939, 0.20606957376003265, 0.6750316023826599, -0.244016632437706, 0.05602099373936653, 0.9606980681419373, 0.39955899119377136, 0.23624306917190552, -0.7514276504516602, -0.12797395884990692, -0.3797478973865509, -0.19159792363643646, 0.43680185079574585, -0.5929126143455505, 1.05585515499115, 0.013138518668711185, -0.06575639545917511, 0.2253578007221222, 0.36032670736312866, 0.6123345494270325, 0.1984289139509201, -0.07898452132940292, 0.5328813791275024, 0.8106076717376709, -0.21611784398555756, 0.901755690574646, -0.27489975094795227, 0.27716949582099915, 1.0647788047790527, -0.3371032178401947, 0.7426489591598511, 0.3410021960735321, -0.19480615854263306, 0.42774465680122375, 0.5449718832969666, -0.1964595466852188, 0.6756877899169922, 0.3506966531276703, -0.48913633823394775, -0.3427168130874634, 0.08094784617424011, -0.18819113075733185, 0.2297150045633316, 0.8673242330551147, -0.3233945071697235, -0.2976694107055664, 0.03128657117486, -0.2568855583667755, -0.09489163011312485, -0.3707593083381653, 0.4631221890449524, -0.0499495230615139, -0.4867378771305084, 0.6201457381248474, -0.18125461041927338, 0.28142425417900085, -0.6048497557640076, -0.3397987186908722, -0.28663334250450134, 0.4724932610988617, -0.24960780143737793, -0.5354501605033875, -0.41681793332099915, -0.10426005721092224, -0.22098837792873383, 0.020698610693216324, 0.42647239565849304, -0.6107595562934875, -0.6011326313018799, -0.05449654534459114, 0.08333709090948105, 0.12168861925601959, 0.11739663779735565, -0.4883490204811096, 0.11254087090492249, 0.07409384101629257, -0.04884038120508194, 0.37774986028671265, 0.572814404964447, 0.0536569282412529, 0.719174325466156, 0.8135732412338257, 0.2362934798002243, 0.18650497496128082, -0.04781587794423103, 0.9353204369544983, -0.5368969440460205, -0.24119217693805695, -0.7337085008621216, 0.489696204662323, -0.03800360858440399, -0.2635056674480438, 0.8334061503410339, 0.941737174987793, 0.6988705992698669, -0.2730019688606262, 0.7660514712333679, 0.44570544362068176, 0.4363529086112976, -0.8141435384750366, 0.5360385775566101, -0.4108615219593048, 0.3772706389427185, -0.2684890031814575, -1.1620864868164062, -0.1768299788236618, 0.6972892880439758, -0.06730667501688004, 0.2355985939502716, 0.8137795925140381, 1.078789472579956, -0.36359792947769165, -0.1836583912372589, 0.2420012503862381, 0.4640992283821106, 0.6913831233978271, 0.5906502604484558, 0.7322617769241333, -0.32874423265457153, 0.4352417588233948, -0.132897287607193, -0.12066271156072617, -0.16473667323589325, -0.5157425403594971, -1.1507848501205444, -0.512572705745697, 0.006134858354926109, -0.30905285477638245, 0.18346673250198364, 0.9514211416244507, 0.6088676452636719, -0.7746827602386475, -0.5430267453193665, -0.32128027081489563, -0.3292752206325531, 0.032664332538843155, -0.1870792657136917, 0.480328232049942, -0.5820426940917969, -0.8730310797691345, 0.6356876492500305, 0.39533641934394836, 0.018739651888608932, -0.09252205491065979, -0.19362251460552216, 0.13544629514217377, 0.20130689442157745, 0.5845004320144653, 0.10584608465433121, -0.7105635404586792, 0.13199631869792938, 0.18714366853237152, -0.33580195903778076, 0.003824960207566619, 0.9613627195358276, -0.5289285182952881, 0.4894745647907257, 0.2769252061843872, 0.45628800988197327, 0.7254406809806824, -0.12832897901535034, 0.653282105922699, -0.6516798734664917, -0.028209006413817406, 0.16435299813747406, 0.15335771441459656, 0.33248206973075867, -0.2567327916622162, 0.6666341423988342, -0.008569221012294292, -0.9132482409477234, -0.7751791477203369, 0.10509393364191055, -0.9681780338287354, -0.6033211350440979, 1.1708072423934937, 0.11928771436214447, -0.35887575149536133, 0.20892414450645447, -0.488200306892395, 0.26091107726097107, -0.6604897975921631, 0.7539543509483337, 0.9730222225189209, -0.5373391509056091, -0.0995473638176918, -0.761444628238678, 0.8332274556159973, 0.3484731912612915, -0.9820913672447205, 0.4028429687023163, 0.8846014738082886, 0.5128962397575378, -0.10703573375940323, 0.4025956988334656, -0.01014727633446455, 0.4366151690483093, -0.06383846700191498, -0.17194966971874237, -0.17163841426372528, -0.7145464420318604, -0.23861967027187347, -0.06548705697059631, 0.20321033895015717, 0.2888699471950531 ]
http://arxiv.org/abs/2402.09390v2
http://arxiv.org/pdf/2402.09390v2
HGOT: Hierarchical Graph of Thoughts for Retrieval-Augmented In-Context Learning in Factuality Evaluation
2024-02-14T18:41:19
2024-07-02T12:42:59
Yihao Fang, Stephen W. Thomas, Xiaodan Zhu
cs.AI
cs.AI, cs.CL
With the widespread adoption of large language models (LLMs) in numerous applications, the challenge of factuality and the propensity for hallucinations has emerged as a significant concern. To address this issue, particularly in retrieval-augmented in-context learning, we introduce the hierarchical graph of thoughts (HGOT), a structured, multi-layered graph approach designed to enhance the retrieval of pertinent passages during in-context learning. The framework utilizes the emergent planning capabilities of LLMs, employing the divide-and-conquer strategy to break down complex queries into manageable sub-queries. It refines self-consistency majority voting for answer selection, which incorporates the recently proposed citation recall and precision metrics to assess the quality of thoughts, linking an answer's credibility intrinsically to the thought's quality. This methodology introduces a weighted system in majority voting, prioritizing answers based on the citation quality of their thoughts. Additionally, we propose a scoring mechanism for evaluating retrieved passages, considering factors such as citation frequency and quality, self-consistency confidence, and the retrieval module's ranking. Experiments indicate that HGOT excels as a versatile approach, outperforming competing models in FEVER by up to $7\%$ and matching leading models such as Retrieve-then-Read in Open-SQuAD, and DSP in HotPotQA, demonstrating its efficacy in enhancing LLMs' factuality.
[ -0.38861432671546936, -1.265320062637329, 0.8717538714408875, 0.03879399970173836, -0.2705957591533661, 0.35576003789901733, -0.18794432282447815, -0.3496093153953552, 0.5434699654579163, 0.3768879473209381, -0.36139556765556335, -0.5574829578399658, -0.5047965049743652, -0.03231631591916084, -0.24701976776123047, 1.1121586561203003, 0.1282843053340912, -0.422902911901474, -0.2190549522638321, 0.022925620898604393, -0.4296106696128845, -0.6632960438728333, -0.37019094824790955, -0.5001264214515686, 0.5869362950325012, 0.2771328091621399, 0.6385493874549866, 0.4669894576072693, 0.6420935392379761, 0.2260112464427948, -0.08260346949100494, 0.2526308298110962, -0.7183065414428711, 0.3407898247241974, -0.41918015480041504, 0.06743599474430084, -0.6674124002456665, 0.07425777614116669, 0.6549387574195862, 0.746947705745697, -0.2867094874382019, 0.09352037310600281, 0.23820354044437408, 0.6960539221763611, -0.7176752090454102, 0.2551320791244507, -0.7780656218528748, 0.127811461687088, 0.04450475424528122, -0.5240931510925293, -0.5235182046890259, -0.3446275293827057, 0.438071608543396, -0.5130617618560791, -0.011441786773502827, 0.32657331228256226, 0.6578059792518616, 0.19931912422180176, -0.46015772223472595, -0.3409675657749176, -0.41640928387641907, 0.4928480386734009, -0.3864065110683441, 0.4977346658706665, 0.25629696249961853, 0.153257817029953, -0.15699179470539093, -0.7869857549667358, -0.4355732500553131, -0.32890740036964417, -0.11999015510082245, 0.39366620779037476, 0.12051775306463242, 0.08960531651973724, 0.2031196504831314, 0.3882521390914917, -0.6343883275985718, -0.5313190817832947, 0.0749492421746254, -0.2033063918352127, 0.29223042726516724, 0.00334848091006279, 0.16505485773086548, -0.6872093081474304, -0.6464427709579468, 0.22387133538722992, -0.5892309546470642, -0.39136871695518494, -0.0039572142995893955, 0.3626794219017029, 0.2538353502750397, 0.4809397757053375, -0.24625399708747864, 0.49736055731773376, 0.2403499335050583, -0.32926592230796814, 0.3381118178367615, -0.22329102456569672, -0.3079123795032501, 0.07223411649465561, 0.5772161483764648, -0.0038725901395082474, -0.19890420138835907, -0.4238507151603699, -0.27272844314575195, -0.38719600439071655, 0.5399534702301025, -0.8127264976501465, -0.38636231422424316, 0.025381525978446007, -0.4023192226886749, -0.12176471203565598, -0.02209906093776226, -0.8273452520370483, -0.32208842039108276, -0.4632546007633209, 0.6993315815925598, -0.6192761659622192, -0.23212361335754395, -0.0923195630311966, 0.031119242310523987, -0.2091410756111145, 0.44585126638412476, -0.801496148109436, 0.3915744125843048, 0.598548412322998, 0.866664469242096, -0.36961179971694946, -0.44912484288215637, -0.47401678562164307, 0.14824463427066803, -0.3103310763835907, 0.8252971172332764, -0.5267441868782043, -0.32047292590141296, -0.08248645812273026, -0.2593817114830017, -0.3220738172531128, -0.4898169934749603, 0.48775041103363037, -0.8034818768501282, 0.09651745110750198, -0.6652580499649048, -0.6853366494178772, -0.21303550899028778, 0.9412882924079895, -0.5289818048477173, 1.127290964126587, 0.15473198890686035, -1.0477317571640015, 0.3031408488750458, -0.5706943869590759, -0.32791972160339355, 0.3625037670135498, -0.35892003774642944, -0.14446479082107544, -0.3203407824039459, 0.07763051986694336, 0.18078486621379852, -0.016869552433490753, 0.2272481620311737, -0.2217162400484085, -0.39510440826416016, -0.13585694134235382, -0.27183517813682556, 0.6067879796028137, 0.07792561501264572, -0.5275561809539795, 0.332884281873703, -0.4353220462799072, 0.18126913905143738, 0.01497498806566, -0.4863598048686981, -0.31752318143844604, 0.03445586934685707, -0.2652817368507385, 0.2012060433626175, 0.3024659752845764, -0.4616183340549469, 0.19053666293621063, -0.2785814702510834, 0.23975993692874908, 0.5471712946891785, 0.3569726347923279, 0.25440293550491333, -0.13912370800971985, 0.23882153630256653, -0.04100796580314636, 0.1792740672826767, 0.05317256972193718, -0.5147072076797485, -0.5775007605552673, -0.21170680224895477, 0.057851020246744156, 0.521848738193512, -0.8594618439674377, 0.5459364652633667, -0.2745742201805115, -0.30364853143692017, -0.33375829458236694, 0.0895078107714653, 0.32742342352867126, 1.106850504875183, 0.4766395390033722, -0.09394903481006622, -0.3989713191986084, -0.7930163145065308, 0.025340203195810318, -0.45897817611694336, 0.35182875394821167, 0.32589417695999146, 1.0076192617416382, -0.49023208022117615, 0.9347633123397827, -0.6115997433662415, -0.18738536536693573, -0.06203741207718849, 0.26864874362945557, 0.03746531531214714, 0.27825742959976196, 0.23400147259235382, -0.7930927872657776, -0.31463056802749634, 0.0226602740585804, -0.9756710529327393, 0.2386578768491745, 0.2103745937347412, -0.5283955335617065, -0.005284297280013561, 0.3181401789188385, -0.5649770498275757, 0.22180607914924622, 0.09585247188806534, -0.224288672208786, 0.7072979807853699, -0.10502060502767563, 0.4302361309528351, -1.0271035432815552, 0.10974673926830292, -0.1887841522693634, -0.27591919898986816, -0.23222491145133972, 0.3678015172481537, 0.07671463489532471, 0.08831699937582016, -0.09157327562570572, 0.2488103061914444, -0.23766350746154785, -0.006208141800016165, -0.27766120433807373, 0.5102263689041138, -0.02151567116379738, 0.5521159172058105, -0.05324946343898773, 0.7753605246543884, 0.34229475259780884, -0.20708507299423218, 0.21509602665901184, 0.281332790851593, -0.43001317977905273, 0.5917189121246338, -0.2555240988731384, 0.5209946036338806, -0.10617297887802124, 0.3239651322364807, -0.8853238224983215, -0.2171424925327301, 0.1835835725069046, -0.2255927324295044, 0.1364704817533493, -0.2960411012172699, -0.5382228493690491, -0.23859909176826477, -0.18193677067756653, 0.34582266211509705, 0.3258873522281647, -0.7417686581611633, 0.4529876112937927, 0.6413500905036926, -0.1258782148361206, -0.845201849937439, -0.2060849368572235, 0.28655773401260376, -0.08908456563949585, -0.3964765965938568, 0.38364365696907043, -0.1740635633468628, -0.2833941876888275, 0.108737051486969, -0.1409120112657547, 0.07375175505876541, -0.07510942965745926, 0.03361519053578377, 0.3349493741989136, -0.13646718859672546, 0.22620245814323425, 0.0176860224455595, 0.19400566816329956, 0.13712678849697113, -0.720767080783844, 0.47787368297576904, -0.6140488982200623, -0.33629995584487915, 0.1285841017961502, 0.2370111048221588, 0.33886420726776123, -0.13853682577610016, 0.3694939613342285, 0.4444711208343506, -0.6299747824668884, -0.1969597190618515, -0.5662598013877869, -0.005284052807837725, -0.3797154426574707, 0.31498482823371887, -0.4832450747489929, -1.0103708505630493, 0.4554935395717621, -0.07388017326593399, -0.14601139724254608, 0.4276300072669983, 0.839065670967102, -0.3277280628681183, 0.827275812625885, 0.4120365083217621, -0.11314707249403, 0.4449251592159271, -0.44800519943237305, 0.2374773472547531, -1.046247124671936, -0.4854479432106018, -0.11403153836727142, -0.1152087077498436, -0.4805484712123871, -0.3417792320251465, 0.7024345993995667, -0.1077403649687767, -0.30469754338264465, 0.003803928615525365, -0.4837011694908142, 0.5920659303665161, 0.30054381489753723, 0.4565163552761078, 0.43656158447265625, 0.10816516727209091, -0.4129107594490051, -0.009195921942591667, -0.5762497782707214, -0.475605845451355, 0.8318713307380676, 0.10448215901851654, 0.5095974802970886, 0.14357033371925354, 0.9086267352104187, 0.4979078471660614, 0.4614945352077484, -1.0294185876846313, 0.5817171931266785, 0.3237434923648834, -0.8736451864242554, -0.5968121290206909, -0.5707266926765442, -0.7668799161911011, 0.7643426656723022, -0.15629160404205322, -0.8691717386245728, 0.11139465123414993, -0.045891840010881424, -0.28322267532348633, 0.4048316776752472, -0.4241761863231659, 0.697424590587616, -0.017016449943184853, -0.5743502974510193, -0.2967156767845154, -0.622728705406189, 0.47730308771133423, -0.02317516691982746, 0.10076834261417389, 0.15566584467887878, 0.23140095174312592, 0.8138795495033264, -0.2427593320608139, 0.5486992001533508, -0.06499067693948746, -0.08536097407341003, 0.6722623705863953, 0.2907629609107971, 0.46609267592430115, 0.17656023800373077, -0.11004867404699326, -0.0902705043554306, -0.03080204874277115, -0.4206545352935791, -0.7573047876358032, 0.7000230550765991, -0.6358548402786255, -0.7373679876327515, -0.48825803399086, -0.6935956478118896, -0.3851534426212311, 0.5494285821914673, 0.24692218005657196, 0.4887641966342926, -0.3875918388366699, 0.1068534106016159, 0.74003005027771, 0.2777425944805145, 0.19140903651714325, 0.07178406417369843, -0.4332003891468048, -0.659587562084198, 0.900575578212738, 0.40448233485221863, 0.30433428287506104, 0.4036604166030884, 0.3066038191318512, -0.4459213316440582, -0.6344444155693054, -0.35513976216316223, 0.25871336460113525, -1.1416454315185547, -0.08383649587631226, -0.6852178573608398, -0.3835122287273407, -0.31519991159439087, 0.1390293389558792, -0.08571643382310867, -0.27935922145843506, 0.25253140926361084, -0.3923960328102112, -0.011858255602419376, 0.7671678066253662, 0.16420574486255646, 0.10915371030569077, -0.3343491554260254, 0.23476478457450867, 0.38100099563598633, 0.30848756432533264, 0.12362291663885117, -0.5831761360168457, -0.46622198820114136, -0.1042291671037674, -0.5753880739212036, -0.9165419340133667, 0.3324030339717865, -0.0946088656783104, 0.4367477595806122, 0.1622307300567627, -0.04738740995526314, 0.8095170855522156, -0.49738723039627075, 0.5728292465209961, -0.02205587737262249, -0.7900072932243347, 0.6236918568611145, -0.45302483439445496, -0.07060352712869644, 0.8159656524658203, 0.37284719944000244, -0.2531808316707611, -0.2781786024570465, -0.692020833492279, -0.6347488164901733, 0.19948212802410126, 0.2561381161212921, -0.24748122692108154, -0.2278895080089569, 0.5105607509613037, 0.0490243025124073, 0.38931480050086975, -0.5684143900871277, -0.038762886077165604, -0.3756478726863861, -0.02887667529284954, 0.19533303380012512, -0.25267499685287476, -0.3435206413269043, -0.5731571316719055, 0.5439947247505188, -0.42314133048057556, 0.23095043003559113, 0.5003315806388855, -0.23105919361114502, -0.16071690618991852, 0.34596067667007446, 0.07632576674222946, 0.8532416224479675, -0.7350896000862122, 0.49151772260665894, 0.2160770446062088, -0.6439803838729858, 0.05616040155291557, -0.26375913619995117, -0.32459455728530884, -0.20765380561351776, 0.48483946919441223, 0.6145786643028259, 0.2870040237903595, -0.3276813328266144, 0.3860680162906647, 0.2354743629693985, -0.16202473640441895, -0.08555791527032852, -0.11845181882381439, -0.014101996086537838, 0.1753627359867096, 0.3741894066333771, 0.12632593512535095, 0.6071559190750122, -1.0139789581298828, 0.38323312997817993, 0.33778116106987, -0.5202599167823792, -0.20856165885925293, 0.39520519971847534, 0.09110977500677109, -0.25653788447380066, 0.8910834193229675, -0.47528550028800964, -0.7845298647880554, 0.3101748824119568, 0.829096257686615, 0.9579757452011108, 0.1390933245420456, 0.269243985414505, 0.4721944332122803, 0.4197280704975128, -0.022425176575779915, 0.3999536335468292, -0.19135357439517975, -0.7465510368347168, -0.3134450316429138, -0.5486658811569214, -0.6501361131668091, 0.01898791640996933, -0.5523994565010071, -0.1945732831954956, -0.4618628919124603, -0.4592272937297821, -0.29805129766464233, 0.4024020731449127, -0.328674852848053, 0.3541925847530365, 0.21175552904605865, 0.7236925959587097, -0.524111807346344, 1.0059152841567993, 0.5644002556800842, -0.5142398476600647, -0.642909586429596, 0.38320139050483704, -0.013302809558808804, -0.46399834752082825, 0.5339047908782959, -0.030960746109485626, -0.5297457575798035, 0.14737628400325775, -0.34797903895378113, -1.053816556930542, 1.1125621795654297, 0.39449670910835266, -0.2947092354297638, -0.23881731927394867, -0.3035953938961029, 0.48913994431495667, -0.5178034901618958, 0.27579131722450256, 0.7422752976417542, 0.4326109290122986, 0.3398872911930084, -0.6422789096832275, 0.14796237647533417, -0.20263417065143585, -0.43879586458206177, 0.05188707634806633, -0.6155936121940613, 0.8289806842803955, -0.4284675717353821, -0.23197726905345917, -0.39890256524086, 0.733670175075531, 0.5651556849479675, 0.4029488265514374, 0.5999361276626587, 0.47596651315689087, 1.3583714962005615, 0.04830440878868103, 1.0562596321105957, -0.10813768208026886, 0.5688282251358032, 1.0980621576309204, -0.3633424937725067, 0.9680551290512085, 0.42692261934280396, -0.0068155196495354176, 0.8134381175041199, 0.7294819951057434, 0.36385488510131836, 0.5539317727088928, -0.015778329223394394, -0.08375339955091476, -0.327791690826416, -0.04394836351275444, -0.24831196665763855, 0.012915733270347118, 0.4075545370578766, 0.0649288222193718, -0.18042263388633728, -0.12513892352581024, 0.02350717969238758, 0.043819453567266464, -0.09320949763059616, 0.571667492389679, 0.160302072763443, -0.7166885733604431, 0.6994208693504333, -0.4431026577949524, 0.38207197189331055, -0.23385684192180634, -0.025049110874533653, -0.12802492082118988, 0.027546057477593422, -0.3702522814273834, -0.8352073431015015, 0.12086349725723267, -0.0962454080581665, -0.29138344526290894, -0.10438444465398788, 0.6450456380844116, -0.35935577750205994, -0.4133404493331909, 0.48578038811683655, 0.7136380672454834, 0.08963627368211746, -0.17185017466545105, -0.8424180150032043, -0.08612237870693207, -0.301282674074173, -0.45749780535697937, 0.274616003036499, 0.5778303146362305, -0.04458335041999817, 0.6135453581809998, 0.3370707035064697, 0.10688970237970352, -0.019830303266644478, 0.34088805317878723, 0.7717767357826233, -0.5509555339813232, -0.44388559460639954, -0.8919284343719482, 0.11907632648944855, -0.25797656178474426, -0.20146521925926208, 0.9018492102622986, 0.7714005708694458, 0.7490838170051575, 0.2312508076429367, 0.7644580006599426, -0.08615649491548538, 0.29344266653060913, -0.542719841003418, 0.7877461314201355, -0.4722050428390503, 0.15364722907543182, -0.6078343391418457, -0.8708527684211731, -0.09225887060165405, 0.6647878885269165, -0.5994502305984497, 0.09790889918804169, 1.214741587638855, 0.5617535710334778, 0.0017180893337354064, 0.05904605984687805, 0.34359875321388245, 0.2519058585166931, 0.42632707953453064, 0.35028696060180664, 1.0669106245040894, -0.4201653301715851, 0.2941218912601471, -0.21335235238075256, -0.3992927372455597, -0.23199839890003204, -0.6169572472572327, -0.8258385062217712, -0.7293277382850647, -0.3047626316547394, -0.4618602693080902, 0.08687461167573929, 1.248831868171692, 0.8469322323799133, -0.5146782994270325, -0.383748859167099, 0.20996983349323273, 0.4133884608745575, -0.23227116465568542, -0.19940033555030823, 0.6850168108940125, -0.69913649559021, -0.4565708339214325, 0.5229042172431946, 0.49466148018836975, -0.24832062423229218, -0.16675692796707153, -0.15991772711277008, -0.44895628094673157, 0.22557534277439117, 1.0655888319015503, -0.20024508237838745, -0.7184515595436096, -0.5795952081680298, 0.19331389665603638, -0.32004448771476746, 0.32963863015174866, 0.7963197827339172, -0.8879982233047485, 0.5726630687713623, 0.5498904585838318, 0.5504195094108582, 0.7113457918167114, 0.30821865797042847, -0.011473355814814568, -0.4177975356578827, -0.1281754970550537, 0.46263402700424194, 0.4518175423145294, 0.24663245677947998, -0.4929002523422241, 0.5795831680297852, 0.553101658821106, -0.6456295847892761, -0.7795902490615845, 0.12845176458358765, -0.998278021812439, -0.27593132853507996, 0.9748224020004272, -0.021787630394101143, -0.35055455565452576, -0.15506954491138458, -0.3530644476413727, 0.17108529806137085, -0.21496441960334778, 1.1263235807418823, 0.8839776515960693, -0.3556385338306427, 0.1941588670015335, -0.6114618182182312, 0.44658994674682617, 0.1915905922651291, -0.8774120807647705, 0.15154075622558594, 0.5281906127929688, 0.1871935874223709, 0.3554852306842804, 0.8748170137405396, -0.1422143429517746, -0.018722258508205414, 0.03413268178701401, -0.17811109125614166, 0.13923953473567963, -0.8389360308647156, 0.14076873660087585, 0.571905255317688, 0.007092503365129232, 0.16026932001113892 ]
http://arxiv.org/abs/2402.09371v1
http://arxiv.org/pdf/2402.09371v1
Transformers Can Achieve Length Generalization But Not Robustly
2024-02-14T18:18:29
2024-02-14T18:18:29
Yongchao Zhou, Uri Alon, Xinyun Chen, Xuezhi Wang, Rishabh Agarwal, Denny Zhou
cs.LG
cs.LG, cs.AI, cs.CL
Length generalization, defined as the ability to extrapolate from shorter training sequences to longer test ones, is a significant challenge for language models. This issue persists even with large-scale Transformers handling relatively straightforward tasks. In this paper, we test the Transformer's ability of length generalization using the task of addition of two integers. We show that the success of length generalization is intricately linked to the data format and the type of position encoding. Using the right combination of data format and position encodings, we show for the first time that standard Transformers can extrapolate to a sequence length that is 2.5x the input length. Nevertheless, unlike in-distribution generalization, length generalization remains fragile, significantly influenced by factors like random weight initialization and training data order, leading to large variances across different random seeds.
[ -0.49313026666641235, -0.47051769495010376, 0.5167639255523682, 0.5562695860862732, -0.3195056617259979, 0.0811048224568367, -0.5236414074897766, -0.5451211333274841, 0.06563414633274078, 0.014125734567642212, -0.07914700359106064, -0.006351051852107048, -0.9987236261367798, 0.2285350263118744, -0.7478645443916321, 1.0174167156219482, 0.12975002825260162, -0.29100844264030457, 0.17875820398330688, -0.24178743362426758, -0.37483057379722595, -0.5686162710189819, -0.3197638988494873, -0.13183748722076416, 0.4575944244861603, 0.4507501721382141, 1.3690118789672852, 0.7233332991600037, 0.8515772819519043, 0.35287952423095703, 0.05656306818127632, 0.010270981118083, -0.292208194732666, 0.08239593356847763, 0.12240330129861832, -0.8794638514518738, -0.22864697873592377, -0.2036106437444687, 0.9863344430923462, 0.7830979824066162, -0.10075468569993973, 0.136064812541008, -0.2815052270889282, 0.8275898098945618, -0.2200399935245514, -0.03743629530072212, -0.44636401534080505, 0.1409621685743332, -0.16503889858722687, -0.00561942346394062, -0.4770392179489136, -0.3248561918735504, 0.11376190930604935, -0.39009764790534973, 0.5368467569351196, -0.03483186289668083, 0.9089016914367676, 0.3449084758758545, -0.39256590604782104, -0.2352089285850525, -1.5019675493240356, 0.8965278267860413, -0.5264238715171814, 0.6260994076728821, 0.2279329150915146, 0.5570491552352905, 0.10768759995698929, -0.5690274834632874, -0.7060879468917847, -0.1680251806974411, -0.3240128457546234, -0.10350214689970016, -0.10972040891647339, -0.08123117685317993, 0.7534654140472412, 0.426082581281662, -0.5732476711273193, 0.16477470099925995, -0.6831002831459045, 0.21136914193630219, 0.8191662430763245, 0.11691692471504211, 0.15597261488437653, 0.061956074088811874, -0.03771509975194931, -0.6897956728935242, -0.3197529911994934, 0.45304471254348755, 0.8132763504981995, 0.012968387454748154, -0.24598078429698944, 0.7524296045303345, -0.045174483209848404, 0.5649954080581665, 0.24428585171699524, 0.13728860020637512, 0.22576913237571716, -0.20739343762397766, 0.05962757021188736, -0.22134695947170258, 0.7094732522964478, 0.4044313430786133, 0.46756839752197266, -0.1783626228570938, -0.04858847334980965, 0.016180353239178658, 0.2360505610704422, -0.7396649122238159, -0.08059274405241013, 0.1716577559709549, -0.3392168879508972, -0.10962669551372528, 0.44752055406570435, -0.71021568775177, -0.015567250549793243, -0.07048846036195755, 0.29057082533836365, -0.41484907269477844, 0.11675548553466797, 0.4284636378288269, -0.4975927174091339, 0.6641640663146973, -0.16691088676452637, -1.4494972229003906, 0.44066354632377625, 0.7150737047195435, 0.7496589422225952, -0.13249722123146057, -0.2713839113712311, -0.2775442898273468, -0.08040294051170349, -0.4904983341693878, 0.64322429895401, -0.6733462810516357, -0.5647667050361633, -0.2507970929145813, 0.0474957637488842, 0.1434883326292038, -0.3340972661972046, 0.4179174602031708, -0.5542363524436951, 0.17305974662303925, 0.14166605472564697, -0.347850501537323, 0.21734507381916046, -0.11355660110712051, -0.6201023459434509, 0.9507648348808289, 0.5545649528503418, -0.5782527327537537, 0.5803435444831848, -0.6085812449455261, -0.6733965873718262, -0.16196481883525848, -0.33980420231819153, -0.7065371870994568, 0.5096263885498047, 0.1533755660057068, 0.2636462152004242, -0.223262220621109, 0.38656488060951233, -0.20270945131778717, -0.8349295854568481, 0.4412015378475189, -0.7193864583969116, 0.4408843517303467, -0.17886510491371155, -0.37885230779647827, -0.1290379911661148, -0.8152251243591309, -0.08989670127630234, 0.20750035345554352, -0.48248112201690674, -0.07904347032308578, 0.035693638026714325, -0.21105808019638062, 0.08794521540403366, 0.008193565532565117, -0.710368275642395, 0.6439272165298462, -0.6198172569274902, 0.22603924572467804, 0.5091406106948853, -0.34707343578338623, 0.7317097783088684, -0.24790233373641968, 0.514836311340332, -0.14108042418956757, 0.19754192233085632, -0.02146524004638195, -0.48469260334968567, -0.9426185488700867, 0.05960940197110176, 0.5721486806869507, 0.5877643823623657, -0.7123148441314697, 0.5137614011764526, -0.9601467251777649, -0.5934033393859863, -0.1872907131910324, -0.1680852323770523, -0.03504238277673721, 0.019670862704515457, 0.5272095799446106, -0.2569010257720947, -0.5866583585739136, -1.0669177770614624, -0.2761876583099365, -0.15921342372894287, -0.7387067675590515, -0.08328955620527267, 0.3625830411911011, -0.30260252952575684, 1.0636565685272217, -0.7065119743347168, 0.1125749796628952, -0.2601364552974701, 0.09230918437242508, 0.5909364819526672, 0.42020970582962036, 0.47691017389297485, -0.698447585105896, -0.4003615975379944, -0.09057559818029404, -0.6919533014297485, 0.2967150807380676, -0.16554568707942963, 0.5055066347122192, -0.22144488990306854, 0.08486448228359222, -0.6375724673271179, 0.558835506439209, 0.5907918810844421, -0.24315056204795837, 0.4766096770763397, -0.4416675865650177, -0.11050672084093094, -0.858540415763855, -0.3229736387729645, 0.0018873496446758509, -0.11790916323661804, -0.788421630859375, -0.12949422001838684, 0.12588825821876526, -0.16053064167499542, -0.24429449439048767, 0.023100197315216064, -0.05361127853393555, -0.22519126534461975, -0.22980737686157227, -0.4792792797088623, 0.02582911215722561, 0.4043920636177063, -0.05475052073597908, 0.7040599584579468, 0.4217483401298523, -0.6058601140975952, 0.5789929032325745, 0.14624768495559692, -0.19878675043582916, 0.3242798447608948, -0.9604987502098083, 0.1283140778541565, -0.35491952300071716, 0.32742494344711304, -0.8345856070518494, -0.43420276045799255, -0.1784970462322235, -0.4804105758666992, 0.36252400279045105, -0.1257621794939041, -0.6374037265777588, -0.6686013340950012, -0.3029794692993164, 0.6361402273178101, 0.9061110019683838, -0.4095008671283722, 0.51180499792099, -0.16524888575077057, -0.1185876801609993, -0.6222818493843079, -0.8549999594688416, -0.05927153676748276, -0.46311116218566895, -0.8441256880760193, 0.32357943058013916, -0.09300471097230911, -0.16399776935577393, -0.5338770151138306, -0.06942376494407654, -0.10417471826076508, -0.13911482691764832, 0.041560765355825424, -0.016540847718715668, -0.14374403655529022, 0.16614289581775665, 0.2769729495048523, -0.25885188579559326, 0.18829715251922607, 0.0030569329392164946, 0.5372700691223145, -0.1001075878739357, -0.5545245409011841, -0.3576815128326416, 0.5363815426826477, 0.5685657262802124, 0.1360238790512085, 0.579447865486145, 0.659055769443512, -0.3047473132610321, -0.15850616991519928, -0.3573587238788605, -0.26666679978370667, -0.5665596127510071, 0.4376937747001648, -0.403010755777359, -0.8085343837738037, 0.3566026985645294, 0.1846776157617569, 0.010054326616227627, 0.6018399596214294, 0.10781889408826828, -0.08834483474493027, 1.2270896434783936, 0.7950381636619568, 0.2704031467437744, 0.16581320762634277, -0.40852421522140503, 0.4403579533100128, -0.5805803537368774, -0.0923011377453804, -0.486100435256958, -0.620406985282898, -0.7756744027137756, -0.3487381637096405, 0.07279787957668304, -0.026069913059473038, -0.15397362411022186, 0.7780643701553345, -0.5022079348564148, 0.5181858539581299, 0.5265052318572998, -0.011615882627665997, 0.07233981788158417, -0.07060917466878891, 0.2574954032897949, -0.32316622138023376, -0.38030552864074707, -0.11192768812179565, 1.1068989038467407, 0.6439839005470276, 0.9425352215766907, 0.3490259051322937, 0.3821799159049988, 0.2568860352039337, -0.025150630623102188, -1.0728939771652222, 0.19961798191070557, -0.5084530115127563, -0.14150401949882507, -0.7264591455459595, -0.34312668442726135, -0.8542643189430237, -0.09284119307994843, 0.03896524757146835, -0.4445755183696747, 0.6157621741294861, -0.06342925876379013, -0.3035255968570709, 0.2762840986251831, -0.6297531723976135, 0.26660555601119995, -0.37818264961242676, 0.2588486671447754, 0.1353674978017807, -0.7932404279708862, 0.1556270718574524, -0.2635345757007599, 0.22632688283920288, 0.003144301241263747, 0.058309074491262436, 0.8460323214530945, -0.45063403248786926, 0.5094665288925171, 0.10525380074977875, -0.08943568915128708, 0.16974496841430664, -0.1183585524559021, 0.6433342695236206, 0.2782307267189026, 0.16999846696853638, 0.17928409576416016, -0.26568126678466797, -0.6821456551551819, -1.0725542306900024, 0.2937624454498291, -0.8405472040176392, -0.7281265258789062, -0.25010785460472107, -0.6900947690010071, -0.3794254660606384, -0.054031290113925934, 0.5986626148223877, 0.3539094030857086, 0.10885564237833023, 0.6262907981872559, 0.6482351422309875, -0.027883505448698997, 0.7986270785331726, 0.1598997563123703, -0.07369624078273773, -0.3609774708747864, 0.9427808523178101, 0.28525179624557495, 0.41080760955810547, 0.4568865895271301, 0.4309813380241394, -0.4861607849597931, -0.3918686807155609, -0.5024114847183228, -0.10168442875146866, -0.5601502060890198, 0.12845344841480255, -0.5259760618209839, -0.3864101767539978, -0.2944439947605133, -0.2355354279279709, -0.43612587451934814, -0.7862938642501831, 0.13447952270507812, -0.34659919142723083, 0.32588663697242737, 0.9825263619422913, -0.23783186078071594, 0.5583315491676331, -0.8284855484962463, 0.4063892662525177, 0.7385573387145996, 0.549994945526123, -0.18111467361450195, -0.7591379284858704, -0.20354492962360382, -0.012975785881280899, -0.272644966840744, -0.6011176705360413, 0.07628685235977173, 0.3210257589817047, 0.1226864904165268, 0.6480968594551086, -0.26882636547088623, 0.5284228920936584, -0.7223782539367676, 0.9005064964294434, 0.30174341797828674, -0.6559138894081116, 0.2273772954940796, -0.3050055205821991, 0.373384565114975, 0.2807808220386505, 0.4225783944129944, -0.484223872423172, -0.12575629353523254, -0.7975998520851135, -0.8555211424827576, 0.3727574050426483, 0.5226200819015503, 0.7550740242004395, -0.13101637363433838, 0.16253535449504852, 0.25457456707954407, -0.12330354005098343, -0.3837149143218994, -0.6180768609046936, -0.46458256244659424, -0.0811099112033844, -0.2656603157520294, -0.47112149000167847, 0.04574538394808769, -0.2702122926712036, 0.2065528929233551, -0.05228361487388611, 0.4937887489795685, 0.11307431012392044, -0.041371505707502365, 0.2328801304101944, 0.6587129831314087, 0.7838588953018188, 0.7106001377105713, -0.15965700149536133, 0.20403622090816498, 0.38032859563827515, -0.6323525309562683, 0.5732329487800598, 0.1573776751756668, 0.08415018022060394, 0.3325044512748718, 0.39101865887641907, 0.628852903842926, 0.17190174758434296, -0.3266058564186096, 0.6451818346977234, -0.21329966187477112, -0.08663106709718704, -0.32226744294166565, 0.061179447919130325, -0.0520654022693634, -0.19844134151935577, 0.585497260093689, 0.05689215660095215, 0.0650569275021553, -0.20168060064315796, 0.4731816053390503, 0.055999357253313065, -0.5656030774116516, -0.6921870112419128, 0.5033396482467651, 0.04950607940554619, -0.5362235903739929, 0.7585088610649109, -0.1461198776960373, -0.28298619389533997, 0.8560773730278015, 0.5942677855491638, 0.6233552098274231, -0.2680355906486511, 0.0581970177590847, 0.2915819585323334, 0.4886784255504608, -0.3816015124320984, 0.09154894202947617, 0.17476557195186615, -0.6055612564086914, -0.5198554992675781, -0.5065537095069885, -0.2515445351600647, -0.03050532005727291, -0.7446433305740356, 0.3269858658313751, -0.3977186381816864, -0.36100631952285767, -0.17840509116649628, -0.4278722107410431, -0.8817176222801208, 0.19582386314868927, -0.0943712368607521, 0.9259433746337891, -0.9502101540565491, 0.5095176100730896, 0.396893173456192, -0.10124988853931427, -0.7581234574317932, -0.1253645271062851, -0.5266644954681396, -0.6682155728340149, 0.6090385317802429, 0.5288053154945374, 0.18778611719608307, -0.15483899414539337, -0.39761754870414734, -0.9823562502861023, 0.9348133206367493, 0.2468186914920807, -0.5274369120597839, -0.3263663649559021, 0.9105138182640076, 0.7765063643455505, -0.15795545279979706, 0.365807443857193, 0.6402997374534607, 0.4133119583129883, -0.06762982904911041, -0.8022813200950623, -0.16070549190044403, -0.04581649973988533, 0.44108328223228455, 0.3110695779323578, -0.7054091095924377, 0.8477717041969299, -0.2519494891166687, -0.0959966704249382, -0.023334933444857597, 0.8794894814491272, -0.2208130657672882, -0.1629687249660492, 0.5539034605026245, 0.8114856481552124, 0.4162904620170593, -0.17917987704277039, 1.1261893510818481, -0.17089132964611053, 0.5008271932601929, 1.0841542482376099, 0.1230086013674736, 0.5479153990745544, 0.23927636444568634, -0.5884792804718018, 0.7618327736854553, 0.311407208442688, -0.3686728775501251, 0.2062477469444275, 0.2725890278816223, -0.10657185316085815, -0.08353579789400101, 0.16958940029144287, -0.520802915096283, 0.5473713874816895, 0.49887123703956604, -0.6629874110221863, -0.09311002492904663, -0.027547141537070274, -0.08458882570266724, -0.004275310318917036, 0.009942830540239811, 0.5274559855461121, 0.019190555438399315, -0.4637024998664856, 0.4142177700996399, 0.09329446405172348, 0.7652937769889832, -0.6035119891166687, -0.07903937995433807, -0.07037615031003952, 0.06918853521347046, -0.12615792453289032, -0.9783492088317871, 0.5613601803779602, -0.24584096670150757, -0.39640045166015625, -0.004174564033746719, 0.41420090198516846, -0.051873475313186646, -0.6454687118530273, 0.12871602177619934, -0.004111702553927898, -0.000858464976772666, -0.02943466790020466, -0.11444243043661118, -0.22805261611938477, -0.2718884348869324, -0.21763285994529724, 0.16185395419597626, 0.17733627557754517, -0.24011245369911194, 0.6422999501228333, 0.7080984711647034, -0.3204338848590851, 0.3534948527812958, -0.0338602215051651, 0.6354098320007324, -0.6407784819602966, -0.2689015865325928, -1.097519874572754, 0.5010843873023987, -0.06621602177619934, -0.32807958126068115, 0.5124279856681824, 0.6049832701683044, 0.8662575483322144, -0.3032347857952118, 0.7730626463890076, -0.13294005393981934, -0.06596804410219193, -0.04163367673754692, 0.28645163774490356, 0.01595318131148815, 0.007117304485291243, 0.15087811648845673, -1.233963966369629, -0.32070571184158325, 0.2301415205001831, -0.33668532967567444, 0.08674826472997665, 0.7652537226676941, 0.4198286235332489, -0.10517944395542145, -0.10706821829080582, 0.5115663409233093, 0.003952312283217907, 0.3977729082107544, 0.6236479878425598, 0.6988338232040405, -0.7061797380447388, 0.8982582092285156, -0.5828829407691956, -0.2876999080181122, 0.034119099378585815, -0.5675800442695618, -0.9100570678710938, -0.42428502440452576, 0.2340547740459442, -0.17177528142929077, -0.19264014065265656, 0.5351383090019226, 0.6779341697692871, -0.7875418663024902, 0.05768590047955513, -0.06651193648576736, 0.036263398826122284, -0.23164139688014984, -0.30270394682884216, 0.33843058347702026, -0.03727016970515251, -0.835014820098877, 0.37248122692108154, 0.258006751537323, 0.4475710988044739, -0.2529388964176178, 0.10245164483785629, 0.23017646372318268, 0.12088619917631149, 0.45020928978919983, 0.3697745203971863, -0.5295869708061218, -0.792934000492096, 0.24966785311698914, 0.12619554996490479, 0.25595977902412415, 0.7647177577018738, -0.47767361998558044, 0.36348965764045715, 0.5909639000892639, 0.5740162134170532, 0.21345631778240204, 0.26427868008613586, 0.8007039427757263, -1.0528976917266846, 0.11083385348320007, 0.07690320163965225, 0.3693348467350006, 0.3133614957332611, -0.4465380012989044, 0.45425692200660706, 0.09652996063232422, -0.49751415848731995, -0.40470072627067566, 0.6588417291641235, -0.7438886165618896, 0.14950422942638397, 1.1321808099746704, -0.0937749370932579, 0.1609470397233963, 0.029310403391718864, 0.07642205059528351, 0.14425510168075562, -0.2621655762195587, 0.9101418256759644, 0.7311834096908569, -0.16284969449043274, 0.18130667507648468, -0.030463561415672302, 0.3829939365386963, 0.23844283819198608, -0.4296506941318512, -0.28675946593284607, -0.3012593686580658, 0.4167863726615906, 0.6706253290176392, 0.09231758862733841, 0.0012052018428221345, 0.29713863134384155, 0.0722002238035202, -0.40518245100975037, 0.06744718551635742, -0.342184454202652, -0.5274726152420044, 0.07227595895528793, 0.15582914650440216, -0.01994861476123333 ]
http://arxiv.org/abs/2402.09369v1
http://arxiv.org/pdf/2402.09369v1
Massively Multi-Cultural Knowledge Acquisition & LM Benchmarking
2024-02-14T18:16:54
2024-02-14T18:16:54
Yi Fung, Ruining Zhao, Jae Doo, Chenkai Sun, Heng Ji
cs.CL
cs.CL
Pretrained large language models have revolutionized many applications but still face challenges related to cultural bias and a lack of cultural commonsense knowledge crucial for guiding cross-culture communication and interactions. Recognizing the shortcomings of existing methods in capturing the diverse and rich cultures across the world, this paper introduces a novel approach for massively multicultural knowledge acquisition. Specifically, our method strategically navigates from densely informative Wikipedia documents on cultural topics to an extensive network of linked pages. Leveraging this valuable source of data collection, we construct the CultureAtlas dataset, which covers a wide range of sub-country level geographical regions and ethnolinguistic groups, with data cleaning and preprocessing to ensure textual assertion sentence self-containment, as well as fine-grained cultural profile information extraction. Our dataset not only facilitates the evaluation of language model performance in culturally diverse contexts but also serves as a foundational tool for the development of culturally sensitive and aware language models. Our work marks an important step towards deeper understanding and bridging the gaps of cultural disparities in AI, to promote a more inclusive and balanced representation of global cultures in the digital domain.
[ -0.6563079953193665, -0.6089432835578918, 0.13034622371196747, 0.12180276215076447, -0.027943255379796028, 0.3546839654445648, -0.6364980936050415, -0.6362543106079102, 0.2117885798215866, 0.1450526863336563, -0.5106368660926819, -0.5049619674682617, -0.6308620572090149, -0.0011592998635023832, -0.039041902869939804, 0.9628345370292664, 0.08224081993103027, 0.03059222921729088, -0.031569648534059525, -0.4691261947154999, -0.12676766514778137, -0.2541729211807251, -0.1514882594347, -0.20476849377155304, 0.47401949763298035, 0.5609181523323059, 0.4504886865615845, 0.5962672233581543, 0.3138425648212433, 0.24424178898334503, -0.09849445521831512, 0.48707690834999084, -0.731002688407898, 0.13215065002441406, -0.33934468030929565, -0.23987996578216553, -0.15964239835739136, 0.12920315563678741, 0.6592968106269836, 0.6708890199661255, -0.021297002211213112, 0.6580066680908203, -0.15069162845611572, 0.3850554823875427, -0.7378861308097839, 0.2044702172279358, -0.5867871046066284, 0.17500922083854675, -0.3400888741016388, 0.10098280012607574, -0.20371808111667633, -0.3527945876121521, 0.13051290810108185, -0.6899351477622986, -0.15194568037986755, -0.09730038791894913, 0.5065778493881226, 0.10062304139137268, -0.81573086977005, -0.21861104667186737, -0.8965150117874146, 0.8157685995101929, -0.13414523005485535, 0.5476820468902588, 0.3958858847618103, 0.5330082178115845, 0.20635218918323517, -0.6434041261672974, -0.6658522486686707, -0.12298962473869324, 0.16825266182422638, 0.15255974233150482, 0.05899275094270706, -0.5935436487197876, 0.3599647283554077, 0.443244993686676, -0.4583779275417328, 0.22638319432735443, -0.6379297375679016, -0.29273635149002075, 0.6835293173789978, 0.025950362905859947, 0.3680759072303772, -0.09827177971601486, -0.2463505119085312, -0.22072839736938477, -0.740874707698822, 0.0005954942898824811, 0.2847171127796173, 0.37590646743774414, -0.39148759841918945, 0.34207549691200256, -0.48512595891952515, 0.4504139721393585, -0.29963919520378113, -0.34342506527900696, 0.5232667326927185, -0.44331586360931396, 0.15560480952262878, -0.13357694447040558, 0.6540324687957764, 0.25815603137016296, 0.7234394550323486, -0.12599791586399078, 0.14514291286468506, -0.04714604839682579, -0.038863006979227066, -0.8585159778594971, -0.08097320795059204, 0.14300332963466644, -0.39076563715934753, 0.010008747689425945, -0.01395035907626152, -0.8779039978981018, -0.5639200806617737, -0.3750153183937073, -0.007264814339578152, -0.27948325872421265, -0.5295639634132385, -0.17948080599308014, -0.036717843264341354, 0.15967102348804474, 0.23699457943439484, -0.8418976664543152, -0.2583182752132416, 0.5662548542022705, 0.6675772070884705, -0.06843897700309753, -0.44858190417289734, -0.1907026469707489, 0.3944947421550751, -0.25107964873313904, 0.3458433151245117, -0.6423572301864624, -0.2510245740413666, 0.21673624217510223, -0.12460578233003616, 0.22148582339286804, -0.5805156230926514, 0.48951447010040283, -0.6769050359725952, 0.13807542622089386, -0.4351693093776703, -0.2986658811569214, -0.262634813785553, 0.5829442143440247, -0.7146289944648743, 0.9628450870513916, -0.07171711325645447, -0.638911247253418, 0.5757453441619873, -0.5540607571601868, -0.45820000767707825, 0.12456583231687546, -0.27369967103004456, 0.15295186638832092, -0.02256949059665203, 0.40023383498191833, 0.515426754951477, -0.3389372229576111, 0.2661423981189728, -0.3666131794452667, -0.17608535289764404, -0.15858380496501923, -0.2988443672657013, 0.9334951639175415, 0.536899209022522, -0.2864001393318176, -0.03180808946490288, -0.8520074486732483, -0.10066819936037064, 0.21108275651931763, -0.3364231288433075, -0.5700106620788574, -0.2805836498737335, 0.14554136991500854, 0.6531403064727783, 0.509655237197876, -0.4917936325073242, 0.24363607168197632, 0.14828428626060486, 0.30309000611305237, 0.6279305219650269, -0.4719179570674896, 0.37810519337654114, -0.20708833634853363, 0.41863909363746643, 0.23927956819534302, 0.18161310255527496, -0.3067094683647156, -0.08624443411827087, -0.37424033880233765, -0.4192512631416321, 0.10550829023122787, 0.6455656886100769, -0.908708393573761, 0.3368282914161682, -0.5812225937843323, -0.8802435398101807, -0.4624555706977844, 0.5233005881309509, 0.21817804872989655, 0.44304659962654114, 0.375772625207901, -0.10353478044271469, -0.29799073934555054, -0.7251530289649963, -0.11611654609441757, -0.13209563493728638, -0.08431292325258255, 0.2982342839241028, 0.36905404925346375, -0.4079129695892334, 0.6632096767425537, -0.2580322325229645, -0.364151269197464, -0.35987889766693115, 0.1635504812002182, 0.0987565889954567, 0.49629896879196167, 0.38485610485076904, -0.9115194082260132, -0.5514082312583923, 0.18116804957389832, -1.1180845499038696, 0.06481495499610901, 0.1803097426891327, -0.3678877353668213, 0.030286597087979317, 0.6935994029045105, -0.49954724311828613, -0.05754750221967697, 0.6976938247680664, -0.06483805179595947, 0.3068345785140991, -0.08191828429698944, 0.16691850125789642, -1.3335174322128296, 0.32956355810165405, 0.0997367650270462, 0.04672651365399361, -0.5412904620170593, 0.3300917446613312, 0.23079143464565277, 0.014558577910065651, -0.4247570335865021, 0.619816243648529, -0.47875460982322693, 0.10708516091108322, 0.08892909437417984, 0.1716804951429367, -0.0858011320233345, 0.3585315942764282, 0.05546693876385689, 0.5787917971611023, 0.39894959330558777, -0.2592034339904785, 0.3982921540737152, 0.2500879168510437, -0.6153911352157593, 0.7322443723678589, -0.2954373359680176, -0.028870390728116035, -0.2744464576244354, 0.5977012515068054, -0.7171675562858582, -0.21075816452503204, -0.006933749653398991, -0.08630090951919556, 0.10887695848941803, -0.052515577524900436, -0.5459476113319397, -0.34099867939949036, -0.06752319633960724, 0.9065331220626831, 0.44316110014915466, -0.6289286017417908, 0.6713522672653198, 0.5773069262504578, -0.22558589279651642, -0.9040188789367676, -0.3689672648906708, 0.04654425010085106, -0.4912745952606201, -0.6911507248878479, 0.010760278441011906, -0.09907121956348419, -0.3474365174770355, -0.4706478714942932, 0.11236949265003204, -0.06749585270881653, 0.21292251348495483, 0.021927200257778168, 0.11114007234573364, -0.26905491948127747, 0.32333695888519287, -0.23551714420318604, 0.09267517924308777, -0.03239120915532112, -0.5224126577377319, 0.6181767582893372, -0.06032514572143555, -0.39399707317352295, -0.26003825664520264, 0.3736836314201355, 0.8388720750808716, -0.6635072231292725, 0.7258468866348267, 0.9308642745018005, -0.4025208055973053, -0.198649063706398, -0.8196278214454651, -0.09935775399208069, -0.3940039277076721, 0.5762773752212524, -0.3861938714981079, -0.8902002573013306, 0.7572683691978455, -0.3448888063430786, 0.14534762501716614, 0.43146762251853943, 0.4214451014995575, -0.042042650282382965, 0.6525095105171204, 0.7516375780105591, -0.4688144028186798, 0.2953481376171112, -0.24941685795783997, 0.08387520164251328, -0.43111538887023926, -0.33969900012016296, -0.5234890580177307, -0.33292195200920105, -0.7205244898796082, -0.6342519521713257, 0.35574692487716675, -0.05943679437041283, -0.417695552110672, -0.03761078789830208, 0.008106393739581108, 0.6532118320465088, 0.5799347758293152, -0.05066915974020958, 0.45353540778160095, 0.20298820734024048, -0.21172897517681122, -0.21555635333061218, -0.6073246598243713, -0.3209396302700043, 1.0565016269683838, 0.30470550060272217, 0.5841081142425537, 0.3320898413658142, 0.48390626907348633, 0.35373520851135254, 0.435199499130249, -0.4777574837207794, 0.25482162833213806, -0.29895225167274475, -0.7951139807701111, -0.4008415639400482, -0.5788262486457825, -0.6008595824241638, 0.2706683874130249, -0.06995336711406708, -0.7163882851600647, 0.061215948313474655, -0.003502439009025693, -0.19880101084709167, 0.26088008284568787, -0.5861107110977173, 0.9836452007293701, -0.3171284794807434, -0.510586142539978, -0.3631082773208618, -0.7648979425430298, 0.5450387597084045, -0.46770650148391724, 0.4562545716762543, -0.28305357694625854, 0.17069068551063538, 0.5444209575653076, 0.2868897020816803, 0.7153490781784058, -0.16215698421001434, -0.2835024297237396, -0.006401063874363899, 0.1942146271467209, 0.2554748058319092, -0.08002208918333054, -0.23263488709926605, 0.6465064287185669, -0.023993585258722305, -0.625338613986969, -0.334909051656723, 0.5266066789627075, -1.0337291955947876, -0.2493024617433548, -0.16929881274700165, -0.8613220453262329, -0.4744904339313507, 0.19649264216423035, -0.05471634492278099, 0.3153643012046814, -0.29576197266578674, 0.26253095269203186, 0.5444977283477783, -0.42319563031196594, 0.2708992660045624, 0.7197326421737671, -0.09265062212944031, -0.15785178542137146, 1.0330809354782104, 0.12252753973007202, 0.2158934473991394, 0.4043637812137604, -0.025460436940193176, -0.36116713285446167, -0.31809985637664795, -0.4802402853965759, 0.18999701738357544, -0.9563343524932861, 0.14074651896953583, -0.6411445736885071, -0.028249984607100487, -0.36379745602607727, 0.017272843047976494, -0.2676590383052826, -0.19337457418441772, 0.29996296763420105, -0.1437276303768158, 0.13683435320854187, 0.7304746508598328, -0.2928755283355713, 0.23800644278526306, -0.9177395701408386, 0.27778351306915283, 0.1700325310230255, 0.22172686457633972, 0.07942979782819748, -0.3389366567134857, -0.5343261361122131, 0.03984661027789116, 0.022220958024263382, -0.4261387586593628, 0.25655147433280945, 0.21558170020580292, 0.8568308353424072, 0.5508984923362732, 0.12031447887420654, 0.7119635939598083, -0.35785016417503357, 0.6348444819450378, -0.059078365564346313, -0.7210190892219543, 0.47512513399124146, -0.48964041471481323, 0.6363715529441833, 0.7726343870162964, 0.9545601606369019, -0.9572094678878784, -0.2670457065105438, -0.45965269207954407, -0.8980938196182251, 0.5123420357704163, -0.3714328110218048, 0.2849210798740387, 0.05778359994292259, -0.06685229390859604, 0.25335824489593506, 0.1398153156042099, -0.6782554984092712, 0.011791296303272247, -0.11231624335050583, -0.3134342133998871, -0.42667609453201294, -0.18951468169689178, -0.44981008768081665, -0.2586388885974884, 0.6600266098976135, -0.40839144587516785, -0.38515761494636536, -0.1947384774684906, -0.687216579914093, 0.11725261807441711, -0.04912779480218887, 0.5051589012145996, 0.9596503376960754, -0.12339023500680923, 0.11959400773048401, 0.157197967171669, -0.5434843301773071, 0.021201584488153458, 0.18814177811145782, -0.058657221496105194, -0.3901503384113312, 0.36398082971572876, 0.3494107723236084, -0.20880229771137238, -0.8126903772354126, 0.28939443826675415, -0.1964408904314041, 0.21410562098026276, -0.36652007699012756, -0.22231683135032654, 0.09452909976243973, 0.4053792357444763, 0.5393320918083191, -0.39446863532066345, -0.2699638903141022, -0.5692421793937683, 0.38733163475990295, 0.3631560206413269, -0.20723265409469604, -0.13060782849788666, 0.5019086599349976, 0.41686514019966125, 0.18862174451351166, 0.8793875575065613, 0.06020794063806534, -0.45093461871147156, 0.5185226202011108, 0.16457998752593994, 0.4470502734184265, -0.21207481622695923, 0.3734644651412964, 0.5251697301864624, 0.3272668421268463, 0.08189474046230316, 0.0783013254404068, -0.36999890208244324, -0.9763598442077637, -0.4503367245197296, -0.711158037185669, -0.31050872802734375, 0.03438451513648033, -0.4983662962913513, 0.07581499218940735, -0.3973793685436249, 0.25356778502464294, -0.1062333956360817, 0.13831757009029388, -0.8114315867424011, 0.430652916431427, 0.45594748854637146, 1.1077641248703003, -1.2167402505874634, 0.8610079884529114, 0.49370598793029785, -0.491372674703598, -0.6716163158416748, 0.177180677652359, 0.1644441783428192, -1.0528432130813599, 0.8316085934638977, 0.276024729013443, 0.1640186756849289, -0.13814222812652588, -0.204433873295784, -0.8391495943069458, 0.9076314568519592, 0.2609163522720337, -0.3286921977996826, 0.2297496348619461, 0.28831252455711365, 0.6106637716293335, -0.36204782128334045, 0.4992358386516571, 0.5444602370262146, 0.45209965109825134, 0.16867369413375854, -0.8637732863426208, 0.025684040039777756, -0.4523088335990906, -0.2720257043838501, -0.1229095309972763, -0.8640125393867493, 0.8157814145088196, 0.05572269856929779, 0.08977426588535309, -0.1530415117740631, 0.7038216590881348, 0.290566086769104, 0.1312856823205948, 0.5298763513565063, 0.4180006682872772, 1.0289193391799927, -0.09273780137300491, 0.8723830580711365, -0.6275413036346436, 0.04845269024372101, 0.9871188998222351, -0.43923264741897583, 0.7515949606895447, 0.3039534389972687, 0.07788806408643723, 0.3747168183326721, 0.66163170337677, 0.004617536440491676, 0.2184353470802307, 0.28521817922592163, -0.34393414855003357, -0.38417449593544006, -0.6707026958465576, -0.6002197265625, 0.9754214286804199, 0.459834486246109, -0.17418058216571808, -0.3463696539402008, 0.023586826398968697, 0.10017196834087372, 0.05421978607773781, -0.2081264704465866, 0.6725476980209351, -0.14231479167938232, -0.7953172922134399, 0.41445192694664, -0.2226399928331375, 0.8206113576889038, -0.8041037321090698, 0.1366783231496811, -0.5751696228981018, 0.19774171710014343, 0.008569193072617054, -0.47958511114120483, 0.05924144759774208, -0.11292702704668045, -0.3159387409687042, -0.34314948320388794, 0.5354341864585876, -0.5401231646537781, -0.5122193694114685, 0.4927257001399994, 0.9815236330032349, 0.1325325071811676, 0.1042778268456459, -0.3096499741077423, 0.18725921213626862, -0.09487948566675186, 0.0591774582862854, 0.27606865763664246, 0.6121402382850647, -0.3627428710460663, 0.5672149062156677, 0.6536814570426941, 0.04726886376738548, 0.050921730697155, 0.22778823971748352, 0.47513243556022644, -0.48128044605255127, -0.6132687926292419, -0.6867956519126892, 0.49408838152885437, -0.4227510094642639, -0.3650551736354828, 0.8725214600563049, 0.49961939454078674, 1.328856110572815, 0.08900996297597885, 0.991645872592926, -0.13410407304763794, 0.3092021346092224, -0.12404913455247879, 0.951657235622406, -0.7321754693984985, -0.0156309362500906, -0.1905680000782013, -0.9339921474456787, -0.17391791939735413, 0.3243182599544525, -0.32329022884368896, 0.17731116712093353, 0.27579963207244873, 0.6881913542747498, -0.3046989142894745, 0.17169487476348877, 0.3240200877189636, 0.269722044467926, 0.30879026651382446, 0.4134023189544678, 1.0741522312164307, 0.013688870705664158, 0.5426618456840515, -0.3413847088813782, -0.2685425281524658, 0.01688787341117859, -0.8821288347244263, -0.6777524352073669, -0.5533292889595032, -0.16492262482643127, -0.18074113130569458, 0.03138372674584389, 0.9731963872909546, 0.9189432263374329, -0.8162059187889099, -0.3756519854068756, 0.589850664138794, 0.1214805468916893, -0.07027248293161392, -0.1304243803024292, 0.16834405064582825, -0.05556744709610939, -0.8640651702880859, 0.3001043200492859, -0.03611162677407265, -0.09202643483877182, -0.49448657035827637, -0.006994502153247595, -0.24849577248096466, -0.17640048265457153, 0.5768383741378784, 0.47305867075920105, -0.39733898639678955, -0.029322432354092598, -0.18895649909973145, -0.1824653148651123, -0.20890219509601593, 0.6567765474319458, -0.5653611421585083, 0.42073723673820496, 0.48950648307800293, 0.8886231780052185, 0.4055634140968323, -0.15115705132484436, 0.5780999660491943, -0.9568068385124207, 0.5221966505050659, -0.004497159738093615, 0.23484738171100616, 0.5296698808670044, -0.10242075473070145, 0.42994368076324463, 0.23663944005966187, -0.2979207932949066, -0.6575061678886414, 0.19915713369846344, -0.7746531963348389, -0.32119929790496826, 1.1083272695541382, -0.3360186815261841, 0.04223870858550072, -0.10795241594314575, 0.09937579929828644, 0.3466344177722931, -0.11475382000207901, 1.1480751037597656, 0.7340561151504517, 0.5685492157936096, 0.031734444200992584, -0.652326762676239, 0.20731176435947418, 0.5008168816566467, -0.7792909145355225, 0.04361046850681305, 0.7725219130516052, 0.22300994396209717, 0.415737509727478, 0.3556291460990906, 0.09467414021492004, 0.18163824081420898, -0.1735117882490158, 0.07088465988636017, -0.04703648388385773, -0.5284967422485352, -0.15260758996009827, 0.4643487334251404, -0.2300461232662201, 0.0525083914399147 ]
http://arxiv.org/abs/2402.09363v2
http://arxiv.org/pdf/2402.09363v2
Copyright Traps for Large Language Models
2024-02-14T18:09:53
2024-06-04T21:07:11
Matthieu Meeus, Igor Shilov, Manuel Faysse, Yves-Alexandre de Montjoye
cs.CL
cs.CL, cs.CR
Questions of fair use of copyright-protected content to train Large Language Models (LLMs) are being actively debated. Document-level inference has been proposed as a new task: inferring from black-box access to the trained model whether a piece of content has been seen during training. SOTA methods however rely on naturally occurring memorization of (part of) the content. While very effective against models that memorize significantly, we hypothesize--and later confirm--that they will not work against models that do not naturally memorize, e.g. medium-size 1B models. We here propose to use copyright traps, the inclusion of fictitious entries in original content, to detect the use of copyrighted materials in LLMs with a focus on models where memorization does not naturally occur. We carefully design a randomized controlled experimental setup, inserting traps into original content (books) and train a 1.3B LLM from scratch. We first validate that the use of content in our target model would be undetectable using existing methods. We then show, contrary to intuition, that even medium-length trap sentences repeated a significant number of times (100) are not detectable using existing methods. However, we show that longer sequences repeated a large number of times can be reliably detected (AUC=0.75) and used as copyright traps. Beyond copyright applications, our findings contribute to the study of LLM memorization: the randomized controlled setup enables us to draw causal relationships between memorization and certain sequence properties such as repetition in model training data and perplexity.
[ -0.15249979496002197, -0.5109150409698486, 0.4357580840587616, 0.11428695172071457, -0.46202677488327026, -0.15051478147506714, -0.24454250931739807, -0.2512696385383606, 0.0037176304031163454, 0.774776816368103, -0.3201706111431122, -0.40351971983909607, -0.7083753943443298, 0.2751002907752991, -0.673948347568512, 0.8453927040100098, 0.0034450264647603035, 0.27219510078430176, -0.1995905041694641, -0.13363002240657806, -0.5071024298667908, -0.744006872177124, -0.5824480652809143, -0.23029206693172455, 0.47123491764068604, 0.10861216485500336, 0.2619415819644928, 0.7214744687080383, 0.14663776755332947, 0.14322850108146667, -0.3432226777076721, -0.08119313418865204, -0.6486465334892273, -0.0064538284204900265, -0.2812289297580719, -0.885337233543396, -0.062125496566295624, 0.14578846096992493, 0.913388192653656, 0.11387304961681366, -0.20629122853279114, 0.170969620347023, 0.04018819332122803, 0.5306631922721863, -0.6849736571311951, -0.0004899593768641353, -0.7370635271072388, 0.2437376230955124, -0.37037545442581177, -0.4274715483188629, -0.7894710898399353, -0.23979447782039642, -0.18466655910015106, -0.5684441328048706, 0.4112014174461365, 0.1592606157064438, 0.8832709789276123, 0.1901371031999588, -0.17309731245040894, -0.6043416261672974, -0.63779217004776, 0.9570359587669373, -1.007362961769104, 0.28787973523139954, 0.5018755793571472, 0.16430656611919403, -0.28980013728141785, -0.575340747833252, -0.9084458947181702, -0.403882771730423, 0.13123759627342224, 0.00983373448252678, -0.23619505763053894, -0.21049904823303223, 0.8393889665603638, 0.27410322427749634, -0.5322332382202148, 0.2424701303243637, -0.32328087091445923, -0.373546838760376, 0.6238588094711304, 0.02240089513361454, 0.3633979260921478, -0.2489321082830429, -0.5184227824211121, -0.0035946955904364586, -1.119240641593933, -0.0673544704914093, 0.7217537760734558, 0.1251945048570633, 0.07248657196760178, 0.7624220848083496, 0.5258134007453918, 0.3512549102306366, -0.020374666899442673, -0.26311400532722473, -0.0003835397947113961, 0.07019422948360443, -0.21643811464309692, 0.14662547409534454, 0.6357555985450745, 0.038621772080659866, 0.7299174666404724, -0.14924809336662292, -0.4579223692417145, -0.0871523916721344, 0.01752511039376259, -0.6702038049697876, -0.04292269051074982, -0.02102111466228962, -0.36216315627098083, 0.030634775757789612, -0.008069890551269054, -0.43965134024620056, -0.5720692873001099, -0.34291478991508484, 0.6607359647750854, -0.3780073821544647, -0.12170176953077316, 0.41324418783187866, -0.4201087951660156, 0.15056321024894714, 0.0874362662434578, -0.7370876669883728, 0.24012428522109985, 0.6444407105445862, 0.7708933353424072, -0.11332341283559799, -0.44161027669906616, -0.6517693400382996, 0.39979517459869385, -0.27506545186042786, 0.6036895513534546, -0.33998486399650574, -0.37493038177490234, 0.05822575092315674, 0.2523142397403717, 0.01657465472817421, -0.7830854058265686, 0.19196327030658722, -0.92804354429245, 0.11414121836423874, -0.22211147844791412, -0.9740185737609863, -0.042534373700618744, 0.13869646191596985, -1.077451467514038, 0.636137843132019, -0.10471878200769424, -0.9436721801757812, 0.36565619707107544, -0.03784938529133797, -0.4136403799057007, -0.2753675878047943, -0.33760952949523926, -0.6624924540519714, 0.13331438601016998, -0.15112875401973724, 0.3133295774459839, -0.15330719947814941, 0.3181091248989105, -0.18633809685707092, -0.5938628315925598, 0.4900633692741394, -0.42768484354019165, 0.9825753569602966, 0.2073240578174591, -0.4319779574871063, -0.3529640734195709, -0.41787421703338623, -0.5486592054367065, 0.4180434048175812, -0.7209250330924988, -0.5195484757423401, -0.10274390131235123, -0.1698339283466339, 0.03820742666721344, 0.08765237033367157, -0.5758645534515381, 0.2495686262845993, -0.1116681769490242, 0.17775897681713104, 0.7697135210037231, 0.07806628197431564, 0.5014218091964722, -0.501393735408783, 0.7855530977249146, 0.09069842100143433, -0.1362321972846985, -0.2357597053050995, -0.3596091866493225, -0.5144082903862, -0.4842338562011719, 0.5567287802696228, 0.44302549958229065, -0.5762291550636292, 0.22427432239055634, -0.2514439523220062, 0.013427791185677052, -0.34247031807899475, 0.3338530659675598, 0.5547716021537781, 0.09515316039323807, 0.05289538577198982, -0.5394464135169983, -0.4459899067878723, -0.6794753074645996, -0.5829596519470215, 0.3266236484050751, -0.25405552983283997, 0.38960394263267517, 0.6035532355308533, 0.18711961805820465, 0.9183294177055359, -0.3394079804420471, -0.4950733184814453, -0.17119832336902618, 0.25462156534194946, 0.17036272585391998, 0.46707138419151306, 0.5196026563644409, -0.7795855402946472, -0.42632001638412476, -0.4098760187625885, -0.7223504185676575, -0.15900348126888275, -0.34242334961891174, 0.1679370105266571, 0.4342692494392395, 0.6990615725517273, -0.6271119117736816, 0.5568045377731323, 0.34721624851226807, -0.2055366188287735, 0.5899914503097534, -0.21236100792884827, -0.1187661737203598, -0.8062381744384766, 0.22295565903186798, -0.15479342639446259, -0.13630245625972748, -0.29922056198120117, 0.04545983672142029, 0.224111407995224, -0.05049755424261093, -0.46572211384773254, 0.7211270332336426, -0.5875739455223083, -0.16113926470279694, -0.3122921586036682, 0.10546484589576721, 0.07570315152406693, 0.47136372327804565, 0.16915754973888397, 0.7992118000984192, 0.28763848543167114, -0.48611539602279663, -0.10026144981384277, 0.19710440933704376, -0.664652943611145, 0.4931955337524414, -0.38367947936058044, 0.2940593361854553, -0.439503937959671, 0.3666425347328186, -0.5939888954162598, 0.007523537613451481, 0.11238931119441986, -0.4970952272415161, 0.5763531923294067, -0.4990385174751282, -0.8168533444404602, -0.07324044406414032, -0.32220458984375, 0.17061981558799744, 0.5844156742095947, -0.4582136571407318, 0.5266497731208801, 0.36467862129211426, 0.09894973039627075, -0.8959165811538696, -0.9112061858177185, -0.050789546221494675, -0.35768255591392517, -0.3694383203983307, 0.004892453085631132, -0.16776850819587708, -0.05813247710466385, 0.0032269961666315794, -0.49185487627983093, -0.09380555897951126, 0.16589473187923431, 0.30005747079849243, 0.032505687326192856, -0.19805072247982025, 0.06795531511306763, -0.03591508790850639, 0.035282306373119354, 0.10081767290830612, -0.49412739276885986, 0.5808783173561096, 0.36945056915283203, -0.3593524694442749, -0.21634669601917267, 0.2688206434249878, 0.3853829503059387, -0.21524924039840698, 0.7807786464691162, 0.2672276496887207, -0.5859286785125732, -0.6458308100700378, -0.6988621950149536, -0.13982732594013214, -0.4543139636516571, 0.05501072481274605, -0.18435591459274292, -1.1080949306488037, 0.7276857495307922, 0.20853473246097565, -0.02523438073694706, 0.0863342434167862, 0.41899263858795166, -0.09751332551240921, 0.6057615280151367, 0.495105504989624, -0.04487407207489014, 0.6040322780609131, -0.5816090106964111, 0.23378387093544006, -0.7697315812110901, -0.21932843327522278, -0.5015838146209717, -0.32563117146492004, -0.30759143829345703, -0.46606922149658203, 0.08233051002025604, 0.2743827700614929, -0.20492227375507355, 0.48414522409439087, -0.08293397724628448, 0.8715465068817139, 0.7006544470787048, 0.13884982466697693, 0.6510491371154785, 0.1011369377374649, -0.09931982308626175, -0.022323625162243843, -0.6228763461112976, -0.5763363838195801, 1.2268986701965332, 0.3531866669654846, 0.9630478024482727, 0.08294817805290222, 0.911724865436554, 0.4471190571784973, 0.47974854707717896, -0.8449245095252991, 0.5506371855735779, -0.3042807877063751, -1.2330647706985474, -0.28801247477531433, -0.48741504549980164, -1.037705421447754, -0.1309051215648651, -0.034348610788583755, -0.6560403108596802, 0.17219921946525574, 0.3037024736404419, -0.24699535965919495, 0.5676906704902649, -0.5836499333381653, 0.8326917886734009, -0.10077933222055435, -0.5635271072387695, -0.19260062277317047, -0.43982210755348206, 0.49319735169410706, -0.42750346660614014, 0.28228259086608887, -0.044014133512973785, 0.1433953046798706, 0.9387962222099304, -0.12726503610610962, 0.9089515805244446, -0.20277190208435059, -0.25493815541267395, 0.5524978637695312, 0.48160654306411743, 0.5439460277557373, 0.029735468327999115, -0.07014499604701996, 0.04594021663069725, 0.09286133199930191, -0.38230574131011963, -0.4037688076496124, 0.6524728536605835, -0.4901809096336365, -0.5803083777427673, -0.4975632429122925, -0.4966464042663574, 0.22263211011886597, 0.4892270267009735, 0.39532825350761414, 0.29294997453689575, 0.0015696333721280098, 0.23687544465065002, 0.8721045255661011, -0.3662823736667633, 0.2325519323348999, 0.9010481834411621, 0.11999860405921936, -0.12990468740463257, 0.9167158007621765, 0.278059184551239, 0.33976268768310547, 0.38887670636177063, 0.3654036819934845, -0.3054024577140808, -0.9253998398780823, -0.19704647362232208, 0.3590618371963501, -0.8983541131019592, -0.16814981400966644, -0.5396053194999695, -0.21081943809986115, -0.25240108370780945, -0.017185160890221596, -0.17812010645866394, -0.25194987654685974, -0.3133770823478699, 0.060491953045129776, 0.15615130960941315, 0.7077786922454834, -0.14513668417930603, 0.3124615550041199, -0.9017575979232788, 0.42838960886001587, 0.29216960072517395, 0.5225496888160706, 0.14280447363853455, -0.9048187732696533, -0.2683677673339844, -0.11803875118494034, -0.2069067358970642, -0.8090429902076721, 0.40436285734176636, -0.051803216338157654, 0.6175585389137268, 0.28553900122642517, 0.06163683533668518, 0.1990785449743271, -0.6229058504104614, 0.6073193550109863, -0.03676474839448929, -0.9640015959739685, 0.17476703226566315, -0.37778934836387634, -0.12759242951869965, 0.3769122064113617, 0.5328603982925415, -0.2701367437839508, -0.46827924251556396, -0.7792231440544128, -0.46544867753982544, 0.6866264939308167, 0.0968117043375969, 0.3024263381958008, -0.08120156824588776, 0.36846494674682617, 0.12325730919837952, 0.4711976647377014, -1.1311522722244263, 0.0935894325375557, 0.1100844219326973, -0.20881560444831848, -0.059307076036930084, -0.32072561979293823, -0.04739701747894287, 0.13834704458713531, 0.4523408114910126, 0.1345728635787964, 0.01992783136665821, 0.11450698226690292, -0.4763970673084259, -0.1271490603685379, 0.15259595215320587, 0.30448493361473083, 0.5384925603866577, -0.34134259819984436, 0.32934480905532837, 0.05902646481990814, -0.6713282465934753, 0.18906095623970032, -0.05962808057665825, -0.35242268443107605, -0.0014320679474622011, 0.34899720549583435, 0.29068195819854736, 0.18900616466999054, -0.9431668519973755, 0.806403636932373, 0.08349829912185669, -0.08690162003040314, -0.5916052460670471, 0.047801077365875244, 0.27567392587661743, 0.289665549993515, -0.049690909683704376, -0.20212170481681824, 0.07677765190601349, -0.5329790115356445, 0.3788813054561615, 0.43870848417282104, -0.11852048337459564, -0.19312891364097595, 0.6610167026519775, -0.2011568695306778, -0.4527021050453186, 0.5274385809898376, -0.350178062915802, -0.5779508352279663, 0.8644880056381226, 0.7154827117919922, 0.7189035415649414, -0.22882869839668274, -0.16766473650932312, 0.4578450322151184, 0.4834168255329132, -0.46096113324165344, 0.24058274924755096, 0.05347253754734993, -0.7058476805686951, -0.3342033922672272, -0.5921522378921509, -0.330242782831192, 0.44858282804489136, -0.5672789216041565, 0.45047667622566223, -0.692966639995575, 0.02588423527777195, -0.08228868246078491, -0.049850329756736755, -0.5420777201652527, 0.007691785227507353, 0.45499828457832336, 1.1598049402236938, -0.9473568797111511, 0.9252840876579285, 0.14953291416168213, -0.47043299674987793, -0.9289392232894897, 0.03608817234635353, 0.07660277932882309, -0.7408109307289124, 0.4561232924461365, 0.16564558446407318, -0.044703561812639236, 0.11695962399244308, -0.9834703207015991, -0.42780429124832153, 0.9540951251983643, 0.5771573781967163, -0.6296466588973999, -0.014379119500517845, -0.009645837359130383, 0.4036225974559784, -0.07835811376571655, -0.2775670289993286, 0.6362669467926025, 0.20236912369728088, 0.1477862149477005, -0.640896737575531, 0.11944480240345001, -0.13618481159210205, -0.24957863986492157, 0.09127521514892578, -0.3601936101913452, 0.9275521636009216, -0.18806588649749756, -0.506308913230896, 0.17004342377185822, 0.24240316450595856, 0.5994427800178528, 0.555392324924469, 0.519518256187439, 0.582856297492981, 0.5559300184249878, 0.26836371421813965, 1.0625303983688354, 0.02702081948518753, 0.5194609761238098, 1.242641806602478, -0.3157605528831482, 0.781657338142395, 0.5727638006210327, 0.0175850261002779, 0.20324811339378357, 0.1899159550666809, -0.38135769963264465, 0.4273267686367035, 0.8670389652252197, -0.2905973792076111, -0.16061778366565704, -0.06721935421228409, -0.14527136087417603, 0.09779149293899536, 0.3404048979282379, -0.42402228713035583, 0.08563879132270813, -0.09573650360107422, 0.3008376359939575, 0.2099958062171936, -0.02610681764781475, 0.645395040512085, 0.5062703490257263, -0.6335126161575317, 0.5864353179931641, -0.02330869995057583, 0.6975396275520325, -0.7232837080955505, 0.10054294764995575, -0.45850884914398193, 0.20375065505504608, -0.10825814306735992, -0.7406438589096069, 0.13929396867752075, 0.3703530728816986, -0.04582621157169342, -0.13458451628684998, 0.5285851955413818, -0.4927003085613251, -0.11782043427228928, 0.3104020059108734, 0.1881725937128067, 0.20918117463588715, -0.14471212029457092, -0.2634556293487549, 0.08895724266767502, -0.14347273111343384, -0.394307404756546, 0.40144863724708557, 0.5143498182296753, -0.19355908036231995, 0.6232051849365234, 0.6723279356956482, 0.18597960472106934, 0.24320919811725616, 0.03420514985918999, 0.7800535559654236, -0.7027612924575806, -0.561353862285614, -0.8334826827049255, 0.27957457304000854, -0.01656544953584671, 0.02308434061706066, 0.8086593747138977, 0.7986927628517151, 1.1412391662597656, -0.4050489366054535, 0.9184806942939758, 0.12428708374500275, 0.3041595220565796, -0.9139878749847412, 0.8486811518669128, -0.7097383737564087, 0.5144327878952026, -0.1464667022228241, -0.8319269418716431, -0.3225689232349396, 0.5592818260192871, -0.23127979040145874, -0.15148328244686127, 0.8049989342689514, 0.9143608808517456, -0.4111359715461731, -0.010755963623523712, 0.17433029413223267, 0.1725175827741623, 0.44186732172966003, 0.6979607343673706, 1.202575922012329, -0.1796821802854538, 0.6653382182121277, -0.1605122983455658, -0.15629014372825623, -0.24809630215168, -1.170851469039917, -1.1491400003433228, -0.3258228600025177, -0.08406317234039307, -0.5588481426239014, -0.05533171445131302, 0.8523181676864624, 0.42691919207572937, -0.9112149477005005, -0.314174085855484, 0.08122813701629639, 0.26459893584251404, -0.011171907186508179, -0.11394459009170532, 0.39255833625793457, 0.1328764706850052, -0.6540870070457458, 0.1341279149055481, 0.039510443806648254, 0.40473249554634094, -0.19364310801029205, -0.07727502286434174, -0.16434882581233978, 0.3615909516811371, 0.16220572590827942, 0.5651117563247681, -0.6142296195030212, -0.12906968593597412, 0.13247603178024292, -0.23520947992801666, -0.06223318725824356, 1.2217878103256226, -0.39054521918296814, 0.49519452452659607, 0.5442059636116028, 0.5650696158409119, 0.7522452473640442, -0.24871228635311127, 0.46175456047058105, -0.8740503191947937, 0.33146747946739197, 0.5079845786094666, 0.41143301129341125, 0.2828647494316101, -0.2453913688659668, 0.28071796894073486, 0.33828994631767273, -0.3790005147457123, -0.9631096124649048, 0.25458234548568726, -0.9160456657409668, -0.38220545649528503, 1.18331778049469, -0.5823851823806763, -0.24262961745262146, -0.031188661232590675, -0.131905660033226, 0.4225427508354187, -0.10177905112504959, 0.9432501792907715, 0.78108149766922, 0.46998411417007446, 0.11346564441919327, -0.9173231720924377, 0.5454985499382019, 0.3442036807537079, -0.5266118049621582, 0.1600223332643509, 0.4408348500728607, 0.6330425143241882, 0.1030673235654831, 0.7101841568946838, -0.31797486543655396, 0.28077560663223267, -0.04741277918219566, 0.08119518309831619, -0.22155670821666718, -0.4671801030635834, -0.6210840344429016, -0.11780061572790146, 0.18651482462882996, -0.031080186367034912 ]
http://arxiv.org/abs/2402.09353v5
http://arxiv.org/pdf/2402.09353v5
DoRA: Weight-Decomposed Low-Rank Adaptation
2024-02-14T17:59:34
2024-06-03T07:27:15
Shih-Yang Liu, Chien-Yi Wang, Hongxu Yin, Pavlo Molchanov, Yu-Chiang Frank Wang, Kwang-Ting Cheng, Min-Hung Chen
cs.CL
cs.CL, cs.CV
Among the widely used parameter-efficient fine-tuning (PEFT) methods, LoRA and its variants have gained considerable popularity because of avoiding additional inference costs. However, there still often exists an accuracy gap between these methods and full fine-tuning (FT). In this work, we first introduce a novel weight decomposition analysis to investigate the inherent differences between FT and LoRA. Aiming to resemble the learning capacity of FT from the findings, we propose Weight-Decomposed Low-Rank Adaptation (DoRA). DoRA decomposes the pre-trained weight into two components, magnitude and direction, for fine-tuning, specifically employing LoRA for directional updates to efficiently minimize the number of trainable parameters. By employing \ours, we enhance both the learning capacity and training stability of LoRA while avoiding any additional inference overhead. \ours~consistently outperforms LoRA on fine-tuning LLaMA, LLaVA, and VL-BART on various downstream tasks, such as commonsense reasoning, visual instruction tuning, and image/video-text understanding. Code is available at https://github.com/NVlabs/DoRA.
[ -0.17907534539699554, -0.7851491570472717, 0.3645753264427185, 0.23778672516345978, -0.355840265750885, 0.05822433531284332, -0.24276003241539001, -0.24167916178703308, 0.13883572816848755, 0.21181201934814453, -0.6417163014411926, -0.4249289929866791, -0.7692229151725769, 0.04097926244139671, -0.22730301320552826, 1.068611741065979, 0.07191316038370132, -0.042890697717666626, 0.057058580219745636, -0.3803936243057251, -0.5259432196617126, -0.18161365389823914, -0.9025486707687378, -0.011051330715417862, 0.7888649106025696, 0.7522231340408325, 0.3053086996078491, 0.3251499831676483, 0.3710978031158447, 0.22880765795707703, -0.11367403715848923, 0.3159314692020416, -1.0902475118637085, -0.0028549153357744217, -0.06773809343576431, -0.597990095615387, -1.069421648979187, -0.0057143159210681915, 0.6715436577796936, 0.6287882924079895, -0.3231293559074402, 0.6799991726875305, 0.23837342858314514, 1.1788551807403564, -1.072418212890625, -0.011890063062310219, -0.9225796461105347, -0.11645960807800293, -0.06715445965528488, -0.2191818207502365, -0.37278497219085693, -0.1407724916934967, -0.26253464818000793, -0.865458607673645, 0.1025506928563118, 0.011953705921769142, 0.8527658581733704, 0.7757976055145264, -0.3009786903858185, 0.09574343264102936, -0.5151230692863464, 1.0019476413726807, -0.3510662019252777, 0.22000285983085632, 0.5746688842773438, 0.39231592416763306, 0.08593299239873886, -0.42936423420906067, -0.14961707592010498, 0.3338533043861389, 0.5261828303337097, -0.003022487973794341, -0.26434624195098877, -0.1818782091140747, 0.11457153409719467, 0.3915582299232483, -0.1527864784002304, 0.348759263753891, -0.5329644083976746, 0.3148352801799774, 0.6278464794158936, -0.20675384998321533, 0.030022088438272476, 0.06380859017372131, -0.48146358132362366, -0.2694731056690216, -1.0611985921859741, 0.13544701039791107, 0.36117589473724365, 0.48936110734939575, -0.30567291378974915, 0.35521769523620605, -0.32460466027259827, 0.6225718259811401, 0.4994906783103943, -0.2465832382440567, 0.24087129533290863, -0.0014959259424358606, -0.5513158440589905, 0.33138635754585266, 0.383797824382782, 0.37524887919425964, 0.1081690788269043, 0.14454978704452515, -0.10697942227125168, -0.1397121697664261, 0.1040647029876709, -0.8955921530723572, -0.40609508752822876, -0.14396175742149353, -0.7402561902999878, -0.5042278170585632, -0.13813354074954987, -0.6936396956443787, -0.4790800213813782, -0.16202573478221893, 0.9542829990386963, -0.1615947186946869, 0.0873679369688034, 0.2963091731071472, 0.08718961477279663, 0.4816363751888275, 0.7898581027984619, -0.9659914374351501, 0.5539626479148865, 0.6696978211402893, 0.6292204856872559, -0.052658773958683014, -0.016592932865023613, -1.413107991218567, -0.09029730409383774, -0.2920294404029846, 0.6843058466911316, -0.269034206867218, -0.10394368320703506, -0.4383324384689331, 0.06644552201032639, -0.2856704890727997, -0.34842267632484436, 0.7300906181335449, -0.6683987975120544, 0.07069014757871628, -0.47879618406295776, 0.005142074078321457, -0.41622909903526306, 0.12348219007253647, -0.6667693257331848, 0.8515592217445374, 0.35561230778694153, -0.5123330950737, 0.5871636271476746, -0.6380056738853455, -0.5348376631736755, -0.4658006727695465, 0.2947406470775604, -0.670418381690979, 0.38096684217453003, 0.6443201899528503, 0.33047088980674744, -0.35502734780311584, -0.36728814244270325, -0.310037761926651, -0.744964599609375, -0.283189982175827, -0.29493921995162964, 0.7499650120735168, 0.18072694540023804, -0.09435776621103287, 0.20731514692306519, -0.9922067523002625, -0.08605525642633438, 0.34574124217033386, -0.6406678557395935, -0.3901604413986206, 0.3296199440956116, -0.14917534589767456, -0.3002670109272003, 0.4032215178012848, -0.4675246775150299, 0.2293315827846527, -0.35729947686195374, 0.42767778038978577, 0.9107762575149536, -0.06095804274082184, 0.5573623180389404, -0.23225784301757812, 0.5167148113250732, -0.11219854652881622, 0.30811557173728943, 0.2845855951309204, -0.46178990602493286, -0.78753662109375, -0.2656082808971405, 0.6225205063819885, 0.24127358198165894, -0.4707656502723694, 0.226517453789711, -0.4037337601184845, -0.22550071775913239, -0.6376010179519653, 0.44773826003074646, 0.2600879371166229, 0.6921504139900208, 0.5664716958999634, -0.07298833876848221, -0.6380734443664551, -0.4359024167060852, -0.16499701142311096, 0.019555743783712387, 0.018610408529639244, -0.0698959082365036, 0.2601540982723236, -0.04940887540578842, 0.42466118931770325, -0.4968130886554718, -0.7031189203262329, -0.2352907955646515, 0.036482688039541245, 0.22387272119522095, 0.42878925800323486, 0.9584845304489136, -0.597290575504303, -0.5642514228820801, -0.10336245596408844, -0.3560118079185486, 0.1715252846479416, 0.20466992259025574, -0.15203967690467834, 0.18376001715660095, 0.29679256677627563, -0.069524846971035, 0.47565025091171265, 0.851615309715271, -0.33315059542655945, 0.08956214040517807, -0.5029448866844177, 0.0645359456539154, -0.6224774122238159, -0.0876898318529129, -0.20480976998806, -0.2850707173347473, -0.193639874458313, 0.10471221059560776, -0.06843675673007965, -0.17664077877998352, -0.14886261522769928, 0.2703506648540497, -0.40884628891944885, -0.2570871114730835, -0.08620887994766235, 0.10709911584854126, 0.08153536915779114, 0.5967573523521423, -0.24982967972755432, 0.8802511096000671, 0.5912722945213318, -0.6475921869277954, -0.113681361079216, 0.3394893705844879, -0.40611129999160767, 0.6255189180374146, -0.8238780498504639, 0.057244233787059784, -0.17934125661849976, -0.06170804798603058, -0.9499651789665222, -0.12110186368227005, 0.17095108330249786, -0.11861467361450195, 0.26331627368927, -0.6344197392463684, -0.2741229236125946, 0.08975587040185928, -0.8407610058784485, 0.4841218590736389, 0.8855464458465576, -0.6643348336219788, 0.41398119926452637, 0.34669068455696106, -0.003923547919839621, -0.5095598101615906, -0.4307343661785126, -0.3259834051132202, -0.38645002245903015, -0.2918190658092499, 0.27137479186058044, -0.1798027902841568, -0.05333130434155464, -0.13727037608623505, -0.362301766872406, 0.18215137720108032, 0.44902434945106506, 0.30643460154533386, -0.1321215182542801, -0.5540065169334412, -0.05851488560438156, 0.44807082414627075, -0.06680945307016373, -0.23993705213069916, 0.15828253328800201, 0.32975783944129944, -0.380150705575943, -0.36491814255714417, -0.29185229539871216, -0.04174063727259636, 0.6224497556686401, -0.20563316345214844, 0.9198482632637024, 0.8105584383010864, -0.04064803943037987, -0.4804728925228119, -0.17129307985305786, 0.13932651281356812, -0.49235430359840393, 0.2636655867099762, -0.4794559180736542, -0.27490904927253723, 0.42448970675468445, -0.15812012553215027, -0.07053709030151367, 0.4968571960926056, 0.1940741389989853, -0.37853726744651794, 1.0765982866287231, 0.9549497961997986, -0.03958879038691521, 0.6110150218009949, -0.4221016764640808, -0.0014928893651813269, -1.1524959802627563, -0.0706343799829483, -0.5396350622177124, -0.8663650155067444, -0.4289569556713104, -0.3904382884502411, 0.6515067219734192, 0.4131814241409302, -0.5820896029472351, 0.13691450655460358, -0.5093722343444824, 0.46386170387268066, 0.5484817028045654, 0.34096261858940125, 0.49323412775993347, 0.2887168824672699, 0.5618768930435181, 0.09809165447950363, -0.7279608845710754, -0.07524353265762329, 1.3614815473556519, 0.30317923426628113, 1.1326202154159546, 0.1487964540719986, 0.8177614808082581, 0.42412176728248596, 0.008853769861161709, -0.9753311276435852, 0.43766605854034424, -0.5537083745002747, 0.068393275141716, -0.3812820017337799, -0.2779688537120819, -1.0584162473678589, 0.26500192284584045, -0.28110694885253906, -0.4852575659751892, 0.3911401331424713, 0.030673421919345856, -0.43562033772468567, 0.32096531987190247, -0.6836315989494324, 0.6585682034492493, -0.3016022741794586, -0.17570260167121887, -0.4848165214061737, -0.4367787837982178, 0.2885192632675171, -0.14687839150428772, 0.0736822858452797, -0.30383196473121643, -0.1910039782524109, 1.1136338710784912, -0.6467089653015137, 0.7453133463859558, -0.4461514949798584, -0.49023860692977905, 0.11150150746107101, 0.07364368438720703, 0.5599859952926636, 0.12431888282299042, -0.3634144067764282, 0.029759058728814125, 0.29133841395378113, -0.6164820194244385, -0.5135154128074646, 0.722766637802124, -1.0879817008972168, -0.34190693497657776, -0.27738475799560547, -0.3536657392978668, -0.3676956295967102, 0.13164691627025604, 0.06352563947439194, 0.2622547745704651, -0.10091676563024521, 0.3212072253227234, 0.7120550870895386, -0.08523347228765488, 0.2796856760978699, 0.3504524230957031, -0.14056995511054993, -0.3803962469100952, 0.970344066619873, -0.09060823172330856, -0.016088085249066353, 0.5770646929740906, 0.22716297209262848, 0.03827151283621788, -0.8179752230644226, -0.2938025891780853, 0.23371896147727966, -0.5847682356834412, -0.33887046575546265, 0.07602481544017792, 0.07890953123569489, 0.22231736779212952, -0.33023133873939514, -0.5047377943992615, -0.5075804591178894, -0.46493634581565857, 0.18557174503803253, 0.5018860101699829, 0.8205758929252625, -0.060253605246543884, 0.49346163868904114, -0.34991133213043213, 0.6683920621871948, 0.625757098197937, 0.24158599972724915, 0.006026156712323427, -0.7003565430641174, -0.13883987069129944, 0.2578071057796478, -0.08896850794553757, -0.5081707835197449, -0.018123235553503036, 0.7732404470443726, 0.19081369042396545, 0.5469238758087158, 0.303471177816391, 1.0539747476577759, -0.28021499514579773, 0.541244387626648, 0.06423478573560715, -0.8775709867477417, 0.7744098901748657, -0.20405055582523346, -0.0034740986302495003, 0.7606315016746521, 0.04415806755423546, 0.19981536269187927, 0.2987625002861023, -0.3216414749622345, -0.5823422074317932, 0.7315500974655151, -0.04924638941884041, -0.07563864439725876, 0.4705063998699188, 0.1920093446969986, 0.25305670499801636, 0.062356434762477875, -0.46771079301834106, 0.14969542622566223, -0.10055568814277649, -0.2613260746002197, -0.18729718029499054, -0.41191571950912476, -0.26639702916145325, -0.6966469883918762, 0.67173832654953, -0.4559972584247589, 0.15326246619224548, -0.08423522859811783, -0.5561376810073853, -0.4624665677547455, 0.007895483635365963, 0.6427182555198669, 0.807105302810669, -0.5986151695251465, 0.08407117426395416, 0.32769352197647095, -0.4702218174934387, -0.02716376818716526, -0.2003723382949829, -0.11078245937824249, -0.46867823600769043, 0.33820828795433044, 0.7036863565444946, 0.7183364629745483, -0.565511167049408, 0.5291517376899719, -0.08931837230920792, -0.31183722615242004, 0.19040533900260925, 0.32659265398979187, -0.20131471753120422, 0.2688203752040863, 0.5651558041572571, 0.3026154339313507, -0.20195870101451874, -0.59178626537323, -0.21471959352493286, 0.41898292303085327, -0.262879878282547, -0.5506384372711182, 0.8054443597793579, 0.33401402831077576, 0.046348877251148224, 0.38531261682510376, -0.2868129014968872, -0.0832073912024498, 0.44893643260002136, 0.3388684391975403, 0.7099889516830444, 0.033503927290439606, 0.350202739238739, 0.3364144265651703, 0.09500492364168167, 0.03695918992161751, 0.5712828040122986, -0.38901999592781067, -0.3416191041469574, -0.4429115653038025, -0.9727686643600464, -0.08751469105482101, 0.027740398421883583, -0.838333785533905, 0.2779480814933777, -0.776185154914856, 0.057809118181467056, -0.2753361463546753, 0.30667683482170105, -0.6287092566490173, -0.15102431178092957, 0.08381414413452148, 0.8188251852989197, -0.808577835559845, 0.811328649520874, 0.8303930759429932, -0.37783053517341614, -0.552337110042572, 0.07168789207935333, -0.20200403034687042, -1.1913467645645142, 0.9448069930076599, -0.2540685534477234, -0.6054490804672241, 0.1614183634519577, -0.6501427888870239, -0.9794575572013855, 1.3528039455413818, 0.5200842022895813, -0.25462931394577026, -0.14346928894519806, -0.2740466594696045, 0.35078322887420654, -0.24754519760608673, -0.2985842227935791, 0.41878628730773926, 0.5009354948997498, 0.091497041285038, -0.9286688566207886, 0.05128980800509453, 0.08945582807064056, 0.03429441154003143, 0.05003257095813751, -0.8286157250404358, 1.1272679567337036, -0.45205506682395935, -0.05841582268476486, 0.34272968769073486, 0.5334460735321045, 0.0890980139374733, 0.20953334867954254, 0.563059389591217, 0.5110516548156738, 0.9329453706741333, 0.08946730941534042, 0.6498717069625854, -0.09355227649211884, 0.444168359041214, 1.119075894355774, -0.24549400806427002, 1.1341238021850586, 0.5124263167381287, -0.4510391056537628, 0.918555498123169, 0.5537565350532532, 0.09714869409799576, 0.9584164023399353, -0.2795497179031372, 0.1733151376247406, -0.31173408031463623, 0.31197530031204224, -0.4721510410308838, 0.7866060137748718, 0.36074385046958923, -0.08785583078861237, -0.5505642294883728, 0.10776501148939133, -0.10587295889854431, -0.10514606535434723, -0.8483704924583435, 0.6766812205314636, 0.016602134332060814, -0.3462490439414978, 1.2299983501434326, 0.08396653831005096, 0.62245112657547, -0.5485875010490417, -0.09555657207965851, -0.17227508127689362, 0.3777771592140198, -0.35084640979766846, -0.4253164827823639, -0.07213481515645981, -0.02576291374862194, -0.12192746996879578, -0.15807613730430603, 0.7452641129493713, -0.05934111773967743, -0.40573832392692566, 0.009368772618472576, 0.44032689929008484, -0.07065530866384506, -0.25217825174331665, -0.6221922039985657, 0.3532065749168396, -0.22844748198986053, -0.18735583126544952, 0.6307342052459717, 0.33681371808052063, -0.010319245979189873, 0.6829103827476501, 0.5173234343528748, 0.19897820055484772, -0.007177823223173618, 0.026057064533233643, 0.7368212938308716, -0.38858574628829956, -0.575977087020874, -0.3638187050819397, 0.3894767165184021, 0.22281663119792938, -0.18319271504878998, 0.7032207250595093, 0.355508953332901, 0.510261595249176, -0.26380494236946106, 0.2791595458984375, -0.20111706852912903, 0.2263375073671341, -0.8198917508125305, 0.8761875629425049, -0.9589658975601196, 0.34258726239204407, -0.3165798783302307, -0.8646854758262634, -0.06951745599508286, 0.7254270315170288, -0.391188383102417, 0.013792919926345348, 0.4851742386817932, 0.4048774242401123, -0.5298178791999817, -0.29072701930999756, 0.2329396903514862, 0.240705206990242, -0.13276802003383636, 0.8003727197647095, 0.456822007894516, -1.055768609046936, 0.4918372929096222, -0.08195734024047852, -0.11419875174760818, -0.7671198844909668, -0.9095032215118408, -0.9522432684898376, -0.5814728140830994, -0.3926609754562378, 0.09796475619077682, 0.09641345590353012, 0.4523216784000397, 1.037277102470398, -0.7842883467674255, 0.09599438309669495, 0.00980408675968647, 0.4741247296333313, -0.7629457116127014, -0.15219180285930634, 0.6699723601341248, -0.334818035364151, -0.6220468282699585, 0.6954545378684998, 0.05353832617402077, -0.19206444919109344, -0.058705054223537445, -0.385701447725296, -0.12722578644752502, -0.11815591156482697, 1.0024081468582153, 0.4564611613750458, -0.44790518283843994, -0.41181549429893494, -0.4393077492713928, 0.4216196835041046, 0.3293563425540924, 0.3580400347709656, -1.1480381488800049, 0.246464341878891, 0.45814988017082214, 0.531293511390686, 0.6912577748298645, 0.3622409999370575, 0.24052290618419647, -0.8544175624847412, 0.1301618367433548, -0.15906186401844025, 0.23042818903923035, 0.09090922027826309, -0.22595295310020447, 0.6238925457000732, 0.05952347442507744, -0.32636842131614685, -1.0703482627868652, 0.13279275596141815, -1.4371209144592285, -0.19608061015605927, 0.889914333820343, 0.1490187793970108, -0.5467074513435364, 0.3417634665966034, -0.3600669205188751, 0.03632137179374695, -0.29985496401786804, 0.7148590683937073, 0.06054086610674858, -0.19761575758457184, -0.27194058895111084, -0.3354038894176483, 0.6776549816131592, 0.35835644602775574, -0.7067088484764099, -0.13978615403175354, 0.13079747557640076, 0.6228998899459839, -0.11101675778627396, 0.4079309403896332, 0.004177137743681669, 0.3898930251598358, -0.1002003625035286, -0.48567530512809753, -0.2970370650291443, -0.45848706364631653, -0.5403702855110168, 0.37001803517341614, 0.5337815284729004, -0.639758825302124 ]
http://arxiv.org/abs/2402.09344v1
http://arxiv.org/pdf/2402.09344v1
Generating Diverse Translation with Perturbed kNN-MT
2024-02-14T17:46:46
2024-02-14T17:46:46
Yuto Nishida, Makoto Morishita, Hidetaka Kamigaito, Taro Watanabe
cs.CL
cs.CL
Generating multiple translation candidates would enable users to choose the one that satisfies their needs. Although there has been work on diversified generation, there exists room for improving the diversity mainly because the previous methods do not address the overcorrection problem -- the model underestimates a prediction that is largely different from the training data, even if that prediction is likely. This paper proposes methods that generate more diverse translations by introducing perturbed k-nearest neighbor machine translation (kNN-MT). Our methods expand the search space of kNN-MT and help incorporate diverse words into candidates by addressing the overcorrection problem. Our experiments show that the proposed methods drastically improve candidate diversity and control the degree of diversity by tuning the perturbation's magnitude.
[ -0.824558436870575, -0.5151514410972595, 0.307760626077652, 0.1552170217037201, -0.6155405044555664, 0.4998113811016083, -0.354734867811203, -0.2603089511394501, 0.25241583585739136, 0.6930302977561951, -0.5636966824531555, -0.5042442679405212, -0.9096460342407227, 0.3438926041126251, -0.20924556255340576, 1.0488309860229492, 0.013648893684148788, 0.07398032397031784, 0.23745881021022797, -0.21947067975997925, -0.4885815382003784, -0.6892414689064026, -0.07454489171504974, -0.2970186173915863, 0.8575211763381958, 0.8149588108062744, 0.9054586887359619, 0.5921658873558044, 0.6156648397445679, 0.29416391253471375, -0.3706507384777069, 0.10946685820817947, -0.718981921672821, 0.5144695043563843, 0.08909709751605988, -0.7472866177558899, -0.04972873255610466, -0.17674577236175537, 1.0316028594970703, 0.6450875401496887, -0.07951851934194565, -0.028213050216436386, -0.3519456088542938, 0.7542789578437805, -0.5799228549003601, -0.5269735455513, -1.0806711912155151, 0.39260998368263245, -0.6093798875808716, -0.1669774353504181, -0.005428907461464405, -0.4727519452571869, 0.009049721993505955, -0.3511418402194977, 0.17825941741466522, -0.04745177924633026, 0.631243884563446, 0.023340240120887756, -0.7290246486663818, -0.14659355580806732, -0.9953832030296326, 1.1753171682357788, -0.7571923732757568, 0.5133458971977234, 0.33024266362190247, 0.6907516121864319, -0.4221782684326172, -0.37330523133277893, -0.6243902444839478, -0.21736198663711548, 0.3137940764427185, 0.4537399709224701, 0.22764720022678375, -0.35436707735061646, 0.324185848236084, 0.5380754470825195, -0.14770416915416718, 0.29147815704345703, -0.3435872495174408, -0.030100252479314804, 0.4742565155029297, 0.4949369728565216, 0.2993549406528473, -0.14360365271568298, -0.12132725119590759, -0.49090293049812317, -0.530266284942627, -0.045254841446876526, 1.0597413778305054, 0.43195095658302307, 0.23386473953723907, 0.7349451780319214, -0.32778409123420715, 0.5063507556915283, -0.01709207519888878, -0.0024647600948810577, 0.5207419991493225, -0.41180136799812317, 0.06084307283163071, 0.11471088230609894, 0.6270012259483337, 0.34467366337776184, -0.17782628536224365, -0.18887080252170563, -0.20846635103225708, -0.08886867016553879, 0.31365031003952026, -0.8697050213813782, -0.18452072143554688, 0.054240304976701736, -0.5015086531639099, -0.5981268286705017, 0.16480442881584167, -1.1611902713775635, -0.22812731564044952, -0.0869586393237114, 0.09127166867256165, -0.3558487892150879, -0.4495273232460022, -0.13253405690193176, -0.4286133944988251, -0.15649864077568054, 0.16791893541812897, -0.8739364147186279, 0.03190102428197861, 0.3103633522987366, 0.6433454155921936, -0.25724339485168457, -0.38715097308158875, -0.3511754870414734, -0.044556960463523865, -0.3574046790599823, 0.49518102407455444, -0.8255226016044617, -0.7531918287277222, -0.0196731798350811, -0.5600681900978088, 0.3384206295013428, -0.8087010383605957, 0.39688757061958313, -0.5699540972709656, 0.3179028034210205, -0.7521476745605469, -0.2207350879907608, -0.15943755209445953, 0.39747393131256104, -0.5081683397293091, 0.8015206456184387, 0.43699344992637634, -0.733954131603241, 0.6315526366233826, -0.8090253472328186, -0.5615400671958923, -0.14329048991203308, 0.044635891914367676, -0.7980074882507324, 0.4566996097564697, 0.5056765675544739, 0.08871689438819885, -0.003925188910216093, 0.08870802819728851, -0.30425330996513367, 0.024734167382121086, 0.6225458383560181, -0.19026538729667664, 0.6118379235267639, 0.4525282382965088, 0.006553270388394594, 0.1750478893518448, -0.8460366725921631, -0.011545172892510891, 0.11771830916404724, -0.6972798705101013, -0.36966362595558167, -0.1281105875968933, 0.07335200905799866, 0.3855700194835663, -0.010104403831064701, -0.7010997533798218, 0.31162527203559875, -0.6955860257148743, 0.11234961450099945, 0.5366597771644592, 0.004115393850952387, 0.5165754556655884, -0.42011067271232605, 0.8028189539909363, 0.3171634376049042, 0.06700113415718079, -0.02911093458533287, -0.7737540602684021, -0.3954586982727051, -0.1333615630865097, 0.5189530849456787, 0.3894370198249817, -0.7822130918502808, 0.21827784180641174, -0.24166011810302734, -0.48253992199897766, -0.8120213150978088, 0.34922030568122864, 0.1631896048784256, 0.3701139986515045, 0.48599839210510254, -0.3320631980895996, -0.8853336572647095, -0.609513521194458, -0.5164624452590942, 0.35003113746643066, -0.0579744391143322, 0.4891699254512787, 0.3364272117614746, -0.7213509678840637, 0.6785470843315125, -0.3734343349933624, -0.38167604804039, -0.12910835444927216, 0.05763554945588112, 0.4486590623855591, 0.5494847297668457, 0.47565966844558716, -1.1397987604141235, -0.9477400779724121, 0.47754600644111633, -0.1569977104663849, -0.14932329952716827, 0.01605881378054619, -0.3211318254470825, -0.03550482541322708, 0.21874724328517914, -0.2548930048942566, 0.039423540234565735, 0.6376273036003113, 0.10289681702852249, 0.44990065693855286, -0.011304127983748913, 0.2333899885416031, -1.4065219163894653, -0.07602111250162125, -0.6036986708641052, -0.1985509693622589, -0.638999879360199, 0.35571813583374023, -0.21496039628982544, -0.02463107742369175, -0.2486843764781952, 0.20296718180179596, -0.3819453716278076, -0.0763411819934845, -0.46092313528060913, 0.2604826092720032, -0.5527414679527283, 0.10668377578258514, -0.32080474495887756, 0.29517218470573425, 0.31364914774894714, -0.5025616884231567, 0.3683512210845947, 0.5147154331207275, -0.27084243297576904, 0.17107893526554108, -0.1486232429742813, 0.15630565583705902, -0.2304956614971161, 0.1804286390542984, -1.0442339181900024, -0.3633266091346741, 0.19900639355182648, -0.5621452927589417, 0.32507163286209106, -0.24221287667751312, -0.5204120874404907, -0.5821969509124756, -0.21019679307937622, 0.524450421333313, 0.6660317182540894, -0.6534417271614075, 0.4962262809276581, 0.1272568255662918, -0.07767648249864578, -0.5518568754196167, -0.9192896485328674, 0.13853691518306732, -0.41142159700393677, -0.4369187355041504, 0.3464992344379425, -0.14400438964366913, 0.14699964225292206, -0.13875210285186768, -0.21506382524967194, 0.14519670605659485, 0.15698041021823883, -0.0020595246460288763, -0.06501030921936035, -0.32983317971229553, -0.21251867711544037, 0.6124972105026245, -0.13355596363544464, -0.29475709795951843, -0.5186145305633545, 0.744316577911377, 0.23781165480613708, -0.2401508390903473, 0.09271031618118286, 0.6038700342178345, 0.41090843081474304, -0.3351074755191803, 0.5741434693336487, 1.0497077703475952, 0.00878319051116705, -0.004034814890474081, -0.564845085144043, -0.17050069570541382, -0.532326877117157, 0.7290841341018677, -0.5446725487709045, -1.1914597749710083, 0.9535338282585144, -0.424043744802475, 0.11732445657253265, 0.4508439898490906, 0.8453730344772339, -0.16591545939445496, 1.4146183729171753, 0.36612647771835327, 0.16217932105064392, 0.7024105787277222, -0.0983644500374794, -0.10777455568313599, -1.0191442966461182, -0.10125121474266052, -0.6217300295829773, -1.0070990324020386, -0.9471419453620911, -0.16676224768161774, 0.3541814684867859, 0.24733954668045044, -0.054340165108442307, 0.2556222677230835, -0.5896557569503784, 0.4544493556022644, 0.7988882660865784, -0.0052189575508236885, 0.1503133773803711, 0.43882280588150024, -0.6188595294952393, -0.5190388560295105, -0.8253670334815979, -0.030320223420858383, 1.3626632690429688, 0.08810978382825851, 0.3905240595340729, 0.3934135138988495, 1.1854795217514038, -0.2725902199745178, 0.6810204386711121, -0.38362061977386475, 0.29609784483909607, -0.7061716318130493, -0.7250065803527832, -0.40650349855422974, -0.9338159561157227, -1.21113121509552, 0.382545530796051, -0.581575870513916, -0.56466144323349, 0.1445796936750412, 0.10966283082962036, -0.026185769587755203, 0.4036899507045746, -0.1629130244255066, 0.6694879531860352, -0.2189243733882904, 0.5293418169021606, -0.27058321237564087, -0.8721312284469604, 0.41540858149528503, -0.5422699451446533, -0.03945459425449371, 0.09980462491512299, 0.05657614767551422, 0.3175431787967682, -0.38454586267471313, 0.5680955648422241, -0.11553121358156204, 0.029890749603509903, 0.08317120373249054, 0.18535423278808594, 0.5923675894737244, -0.07150028645992279, -0.17297516763210297, 0.1055668368935585, -0.5528882145881653, -0.4712750017642975, -0.7760517001152039, 0.7467181086540222, -0.9805899262428284, -0.4539075791835785, 0.13684487342834473, -0.7842214107513428, -0.19387711584568024, 0.5737565755844116, 0.8245454430580139, -0.06466817855834961, 0.11107181012630463, 0.47595804929733276, 0.35155823826789856, -0.3335951864719391, 0.1291808933019638, 0.27870747447013855, -0.6899105906486511, -1.123227834701538, 1.0581721067428589, 0.3773318827152252, 0.4422662556171417, 0.47715049982070923, 0.7644081115722656, -0.22861464321613312, -0.8372716307640076, -0.32999593019485474, -0.17049676179885864, -0.5584205389022827, -0.187157541513443, -0.7336317896842957, 0.1753961443901062, -0.26264137029647827, -0.19286850094795227, -0.29818081855773926, -0.5440918803215027, -0.07945100963115692, 0.1238706111907959, 0.23320817947387695, 0.5905060768127441, 0.009578113444149494, 0.891578733921051, -1.0721813440322876, 0.45529115200042725, 0.3240579068660736, 0.4575926959514618, -0.07150385528802872, -0.5993658900260925, -0.2284415364265442, 0.13340388238430023, -0.5610834360122681, -1.0668585300445557, 0.3961285948753357, 0.07458341121673584, 0.723721981048584, 0.25861987471580505, -0.05384939908981323, 0.687555730342865, -0.4974202811717987, 0.6277595162391663, 0.5398537516593933, -0.7049829959869385, 0.6974727511405945, -0.5032490491867065, 0.8023637533187866, 0.5977909564971924, 0.4131137430667877, -0.5264394283294678, -0.9289886951446533, -0.5766884088516235, -1.0013962984085083, 0.6286177039146423, 0.5241762399673462, 0.37857720255851746, 0.050363022834062576, 0.19784487783908844, 0.4279535114765167, 0.39993223547935486, -0.43783727288246155, -0.23734523355960846, -0.6589541435241699, -0.00699149165302515, -0.09596234560012817, -0.2292582094669342, 0.14536534249782562, -0.13918478786945343, 0.5869029760360718, 0.23817913234233856, -0.00045051658526062965, 0.19145745038986206, 0.13727688789367676, -0.598740816116333, 0.168659046292305, 0.7925509810447693, 0.2210729420185089, -0.11839018762111664, -0.12803517282009125, 0.40162572264671326, -0.5887210369110107, -0.017915770411491394, -0.012892150320112705, -0.4375758469104767, 0.19212254881858826, -0.15932005643844604, 0.8045080304145813, -0.23900780081748962, -0.2413872927427292, -0.03572389483451843, 0.08409492671489716, -0.3960777521133423, 0.18052582442760468, 0.17872639000415802, 0.070477694272995, 0.26845690608024597, 0.30765867233276367, 0.5323792695999146, 0.059653401374816895, -0.39515283703804016, 0.09883709251880646, 0.3333425223827362, -0.18031181395053864, -0.1643473207950592, 0.7920094132423401, 0.11849456280469894, -0.6985780000686646, 0.9099345207214355, -0.3288947641849518, -0.9236569404602051, 0.5693996548652649, 0.9251945614814758, 0.9724621176719666, -0.6298722624778748, -0.17541612684726715, 0.3770712614059448, 0.39030420780181885, -0.0788545235991478, 0.5133854150772095, 0.10115461051464081, -0.8586593866348267, -0.5271381139755249, -0.3771442770957947, -0.24475282430648804, 0.14327818155288696, -0.46652644872665405, 0.12838760018348694, -0.4240225553512573, -0.8394370675086975, -0.2185058295726776, -0.05655907094478607, -0.39034515619277954, 0.15342989563941956, -0.06595580279827118, 0.37639421224594116, -0.5282834768295288, 0.7595122456550598, 0.9838428497314453, -0.42679619789123535, -0.45650598406791687, 0.14129950106143951, -0.41191941499710083, -0.29164621233940125, 0.7495383620262146, -0.12661273777484894, 0.28240105509757996, -0.04654858261346817, -0.5574820041656494, -0.8528435826301575, 0.6724252104759216, 0.4147671163082123, -0.587187647819519, 0.3792717754840851, 0.389838308095932, 0.46430328488349915, -0.29134321212768555, -0.21160681545734406, 0.031478434801101685, 0.7264585494995117, 0.11305223405361176, -0.661599338054657, -0.10265161097049713, -0.1139117106795311, 0.35277464985847473, 0.6549661159515381, -0.3958824574947357, 0.7735773324966431, -0.14816351234912872, 0.006407466717064381, 0.22017446160316467, 0.6136545538902283, 0.26714053750038147, 0.10678160190582275, 0.5067474842071533, 0.432770311832428, 0.6474089026451111, 0.12300611287355423, 0.9751802086830139, 0.04924330115318298, 0.20612576603889465, 1.161360740661621, 0.023637140169739723, 0.6573522090911865, 0.5757507085800171, -0.3181111812591553, 0.22186148166656494, 0.26446378231048584, -0.36768627166748047, 0.4078011214733124, 0.35784071683883667, -0.05074141547083855, -0.4879933297634125, 0.2484140545129776, -0.5012699365615845, 0.4478810727596283, 0.32769137620925903, -0.44271454215049744, -0.23386703431606293, 0.1280001848936081, -0.42600706219673157, 0.389885812997818, -0.11827008426189423, 0.4488052725791931, 0.20793560147285461, -0.4590799808502197, 0.45275089144706726, 0.24481385946273804, 0.6880528330802917, -0.6156492233276367, 0.02936537005007267, -0.26517558097839355, 0.03207007423043251, -0.2097044289112091, -0.6643340587615967, 0.2818497121334076, -0.3859453499317169, -0.3435157239437103, -0.21823149919509888, 0.8084440231323242, -0.679611325263977, -0.7166125774383545, 0.07266290485858917, 0.2390570044517517, 0.2335352897644043, -0.025732364505529404, -0.5337427258491516, -0.11964055150747299, 0.34588783979415894, 0.027977734804153442, 0.541827380657196, 0.6070389747619629, -0.05697443336248398, 0.603440523147583, 1.0325067043304443, 0.32824382185935974, 0.5115796327590942, 0.1382421851158142, 0.8471775650978088, -0.5148783326148987, -0.5607637763023376, -0.8418017625808716, 0.46952229738235474, -0.07791353017091751, -0.5993905663490295, 0.9152851700782776, 0.4770156443119049, 0.9137063026428223, -0.2766406834125519, 0.6233387589454651, 0.31906384229660034, 0.5484551191329956, -0.15567190945148468, 0.7228295803070068, -0.5768569111824036, 0.11500272899866104, -0.6355206966400146, -1.1888906955718994, -0.7180904150009155, 0.5235368013381958, -0.14923880994319916, 0.21804164350032806, 0.23350560665130615, 0.4174361824989319, -0.2533416152000427, -0.07832285016775131, 0.5149803757667542, 0.3193577229976654, 0.32209959626197815, 0.3289402723312378, 0.9537284970283508, -0.46421709656715393, 1.004821538925171, -0.22317995131015778, 0.08830992877483368, -0.43961626291275024, -0.9235543608665466, -0.8291429877281189, -0.2888681888580322, -0.23159749805927277, -0.3726901113986969, -0.08176703751087189, 0.7852118015289307, 0.48310586810112, -0.9235657453536987, -0.025203503668308258, -0.16844123601913452, 0.373505562543869, -0.3219675123691559, -0.14097094535827637, -0.06482823193073273, -0.39363643527030945, -0.6297749876976013, 0.3604537546634674, 0.08307180553674698, 0.23436486721038818, -0.053861115127801895, -0.2019568681716919, 0.010259375907480717, -0.2937946319580078, 0.5106075406074524, 0.05957954004406929, -0.5493433475494385, 0.21267786622047424, 0.046426981687545776, 0.029744064435362816, 0.4187979996204376, 0.8151618838310242, -0.4125124216079712, 0.8284820914268494, 0.6521291136741638, 0.9399399757385254, 0.6399039030075073, 0.06873922049999237, 0.8416547775268555, -1.0237281322479248, -0.08219029754400253, 0.41155943274497986, -0.06047751009464264, 0.19296659529209137, -0.36525505781173706, 0.0711091011762619, 0.17399238049983978, -0.5296133756637573, -0.812686562538147, 0.682580292224884, -0.6397132873535156, -0.2441685050725937, 1.0898395776748657, 0.175269216299057, 0.1555970013141632, -0.11929967999458313, -0.38865676522254944, 0.4407626688480377, -0.4254360795021057, 0.8846551179885864, 0.6203115582466125, 0.30886325240135193, 0.24747999012470245, -0.509718656539917, 0.24686038494110107, 0.8472601771354675, -0.3204018771648407, -0.29233458638191223, 0.17171786725521088, 0.19943858683109283, 0.31834861636161804, 0.20275625586509705, -0.35824984312057495, 0.2525600492954254, 0.030805598944425583, -0.14630542695522308, -0.06542949378490448, -0.017601951956748962, -0.2161838859319687, 0.11075688898563385, 0.1927955150604248, -0.19125095009803772 ]
http://arxiv.org/abs/2402.09320v1
http://arxiv.org/pdf/2402.09320v1
ICDPO: Effectively Borrowing Alignment Capability of Others via In-context Direct Preference Optimization
2024-02-14T17:14:34
2024-02-14T17:14:34
Feifan Song, Yuxuan Fan, Xin Zhang, Peiyi Wang, Houfeng Wang
cs.CL
cs.CL, cs.AI
Large Language Models (LLMs) rely on Human Preference Alignment (HPA) to ensure the generation of safe content. Due to the heavy cost associated with fine-tuning, fine-tuning-free methods have emerged, typically modifying LLM decoding with external auxiliary methods. However, these methods do not essentially enhance the LLM itself. In this paper, we rethink the derivation procedures of DPO, based on which we conversely build an instant scorer using the states of the LLM before and after In-context Learning (ICL). Accordingly, we propose a novel approach called In-Context Direct Preference Optimization (ICDPO). It enables LLMs to borrow the HPA capabilities from superior LLMs with ICL, generating well-aligned responses as estimated by the aforementioned instant scorer, thereby enhancing the final performance. ICDPO can be further enhanced with a two-stage retriever and an upgraded scorer, both offering benefits. Extensive experiments show its effectiveness, particularly in outperforming two fine-tuning-free baselines, and it exhibits competitiveness with SFT + LoRA. We also conduct detailed analyses to offer comprehensive insights into ICDPO.
[ -0.3040979206562042, -0.297203004360199, 0.5140318274497986, 0.11297273635864258, -0.4336717426776886, 0.1067882627248764, -0.32711729407310486, -0.5067888498306274, -0.13599345088005066, 0.42704951763153076, -0.2953275740146637, -0.15297189354896545, -0.4438762664794922, 0.1612774282693863, 0.1869799792766571, 0.7926768064498901, -0.18118979036808014, -0.07602157443761826, -0.09329584240913391, 0.19633042812347412, -0.46449607610702515, -0.3483711779117584, -0.49036845564842224, -0.2684192657470703, 0.20508764684200287, 0.9933146238327026, 0.43488070368766785, 0.9824888110160828, 0.44861578941345215, 0.27116671204566956, 0.009947662241756916, 0.3729657530784607, -0.45915743708610535, -0.06530993431806564, -0.16423602402210236, -0.20805850625038147, -0.6308949589729309, 0.1970183551311493, 0.7056987285614014, 0.4255644679069519, -0.0828680470585823, -0.14682774245738983, 0.43984365463256836, 0.8354028463363647, -0.7857300043106079, 0.029084421694278717, -1.1786009073257446, 0.004765683319419622, -0.05951443687081337, -0.4347260594367981, -0.5896323919296265, -0.4443388879299164, 0.4117647409439087, -0.6257409453392029, -0.31539174914360046, -0.12650145590305328, 0.6699399352073669, 0.3038841187953949, -0.4401349723339081, -0.3787499666213989, -0.567687451839447, 0.9319038391113281, -0.5520670413970947, 0.1270381659269333, 0.28685253858566284, 0.23411661386489868, -0.38721275329589844, -0.14206050336360931, -0.588994562625885, -0.215681254863739, 0.09713345766067505, -0.04780763387680054, 0.21594354510307312, 0.07028185576200485, -0.11625941097736359, 0.25311073660850525, -0.032998453825712204, 0.48504438996315, 0.22356267273426056, 0.004078968428075314, 0.6456275582313538, -0.062375813722610474, 0.16339614987373352, -0.17490187287330627, -0.752071738243103, -0.08096906542778015, -0.8859592080116272, 0.34574025869369507, 0.37773820757865906, 0.46457770466804504, 0.021991614252328873, 0.5154760479927063, -0.1171073466539383, 0.598153829574585, 0.706663191318512, -0.521715521812439, 0.09673960506916046, -0.17364637553691864, -0.03900022432208061, 0.3874906003475189, 0.577978789806366, 0.3936169445514679, 0.13766345381736755, -0.2472597360610962, -0.23059074580669403, -0.20135550200939178, 0.08504156023263931, -0.7070755958557129, 0.2918517589569092, -0.003477799240499735, -0.30624547600746155, -0.3073188066482544, 0.1256680190563202, -0.8693625330924988, -0.1397240310907364, -0.7254080772399902, 0.25831836462020874, -0.5134175419807434, -0.0021778519731014967, 0.03791390731930733, 0.21347084641456604, 0.5127829313278198, 0.2505003809928894, -1.1789737939834595, 0.11845642328262329, 0.9433947205543518, 0.5840030908584595, -0.578829288482666, -0.348014235496521, -0.7474416494369507, 0.4750133752822876, -0.17865802347660065, 0.6720309257507324, -0.5480185151100159, -0.443418949842453, -0.14059507846832275, -0.3583245873451233, 0.1541363149881363, -0.4606313109397888, 0.7157776951789856, -0.5587144494056702, 0.15789000689983368, -0.2536250054836273, -0.6508971452713013, 0.2771282196044922, 0.13479098677635193, -0.21831358969211578, 0.8531373739242554, 0.05780739337205887, -0.5923089981079102, 0.6686262488365173, -0.45796817541122437, -0.32667994499206543, 0.03344554081559181, -0.20122385025024414, -0.1665496528148651, 0.1307888776063919, 0.16678698360919952, 0.4358518421649933, -0.29212167859077454, 0.34324705600738525, -0.4755334258079529, -0.4615338444709778, 0.267652302980423, -0.39399462938308716, 0.6425272226333618, 0.16217586398124695, -0.3181406855583191, 0.07760222256183624, -0.8529080748558044, -0.11639291048049927, -0.22314853966236115, -0.6420189738273621, -0.6080335974693298, 0.07516111433506012, -0.4385641813278198, 0.43286553025245667, 0.37593725323677063, -0.5759601593017578, 0.2759971618652344, -0.6319487690925598, 0.3697875440120697, 1.2616270780563354, -0.2926395535469055, 0.9673166871070862, -0.09195664525032043, 0.2761857807636261, -0.2058359980583191, 0.24299772083759308, 0.30047109723091125, -0.141880601644516, -0.28100258111953735, -0.7002946138381958, -0.008020813576877117, 0.49083417654037476, -0.6123233437538147, 0.9125461578369141, -0.3103421926498413, -0.1412399411201477, -0.42530035972595215, 0.1482630968093872, 0.4884646236896515, 1.0437979698181152, 0.16803941130638123, -0.20898683369159698, -0.38342440128326416, -0.9043340682983398, -0.23030239343643188, -0.0926332175731659, 0.17506025731563568, 0.4406188130378723, -0.12244773656129837, 0.0014668937074020505, 1.1082334518432617, -0.5699700117111206, -0.25795063376426697, -0.28406620025634766, -0.3036520779132843, 0.22698412835597992, 0.5764064788818359, 0.6251057982444763, -0.7574378252029419, -0.9999258518218994, 0.20612716674804688, -0.43964463472366333, -0.19224309921264648, 0.17792950570583344, -0.41954460740089417, 0.31762513518333435, 0.2936074137687683, -0.44780686497688293, 0.08242445439100266, 0.3676515817642212, -0.2856312096118927, 0.47208940982818604, -0.292712926864624, 0.059106506407260895, -1.1604702472686768, 0.0228608138859272, -0.0940903052687645, 0.07907595485448837, -0.4372006952762604, 0.06957987695932388, 0.17009933292865753, -0.03392889350652695, -0.555723249912262, 0.8060129880905151, -0.4014753997325897, 0.05824916809797287, -0.45770397782325745, 0.15809720754623413, -0.1778247356414795, 0.4889020621776581, -0.04019893333315849, 0.9038065671920776, 0.33303606510162354, -0.6377940773963928, -0.1533232480287552, 0.30001094937324524, -0.34436798095703125, 0.5676469206809998, -0.2618575692176819, 0.36474600434303284, -0.1952047348022461, 0.17299863696098328, -1.0254907608032227, -0.19904214143753052, 0.11768919229507446, -0.11016075313091278, 0.5617098212242126, -0.17111381888389587, -0.3336084187030792, -0.03696882724761963, -0.4795697033405304, 0.5309004783630371, 0.2760656177997589, -0.9062559604644775, 0.2816135585308075, 0.5825706720352173, -0.07097242027521133, -0.9075763821601868, -0.08123116940259933, -0.00409121485427022, -0.5088781118392944, -0.27522948384284973, 0.7271630764007568, -0.34178200364112854, -0.3693781793117523, -0.37176769971847534, -0.059172485023736954, 0.15423226356506348, 0.23185878992080688, -0.037110742181539536, 0.5201053619384766, 0.25212574005126953, -0.019603725522756577, 0.31694290041923523, -0.3972873091697693, -0.29630905389785767, -0.3013280928134918, 0.5511230826377869, 0.12068444490432739, 0.007911870256066322, -0.6062195897102356, 0.3762836456298828, 0.5419696569442749, -0.1270437091588974, 0.4528951346874237, 0.005054899957031012, -0.10915827006101608, -0.2745364010334015, -0.37276703119277954, -0.14803729951381683, -0.5303723812103271, 0.14775313436985016, -0.5525911450386047, -0.6789385080337524, 0.0604967437684536, -0.09092618525028229, -0.08290175348520279, 0.10030920058488846, 0.4248325228691101, -0.03051777370274067, 1.1342915296554565, 0.7357643842697144, -0.2754858434200287, 0.8220950365066528, 0.07464424520730972, 0.0990556851029396, -0.9400714039802551, -0.048932455480098724, -0.521257758140564, -0.3133809566497803, -0.6745228171348572, 0.00016299144772347063, 0.33404552936553955, 0.36762529611587524, -0.20058533549308777, 0.4234340786933899, -0.548769474029541, 0.7350214719772339, 0.5266929864883423, 0.14204515516757965, 0.40336379408836365, 0.1140231192111969, -0.25324249267578125, -0.2417948693037033, -0.3331872820854187, -0.56988924741745, 1.1872161626815796, 0.14456316828727722, 0.4320138990879059, 0.07755470275878906, 0.816636860370636, 0.06861372292041779, 0.3334827423095703, -0.9556437730789185, 0.6117630004882812, -0.40645962953567505, -0.16481485962867737, -0.21416760981082916, -0.3064538538455963, -0.4747123420238495, 0.2754844129085541, -0.19622696936130524, -0.9190285801887512, 0.3958575129508972, 0.19535011053085327, -0.16177545487880707, 0.03219185397028923, -0.6427628397941589, 0.5370184183120728, -0.34594640135765076, -0.5299257040023804, -0.1878107637166977, -0.6038610339164734, 0.2878396213054657, -0.11048854142427444, -0.07541927695274353, -0.25185123085975647, -0.18000493943691254, 0.27880164980888367, -0.2156437188386917, 0.48577168583869934, -0.12100622802972794, -0.41316714882850647, 0.06206096336245537, 0.0070430501364171505, 0.6837878823280334, 0.19013310968875885, -0.6154788136482239, -0.19487647712230682, -0.31387224793434143, -0.24717696011066437, -0.43984052538871765, 1.0541183948516846, -0.82020103931427, -0.6431884765625, -0.22741739451885223, -0.6017088890075684, -0.37954720854759216, 0.34860363602638245, 0.24787820875644684, 0.3087438941001892, -0.20301859080791473, 0.054310016334056854, 0.44416725635528564, 0.03498711809515953, 0.6819038391113281, 0.5841962695121765, 0.15843917429447174, -0.6764257550239563, 0.7805613279342651, -0.22209356725215912, 0.38041022419929504, 0.8506902456283569, 0.48455098271369934, -0.3457469344139099, -0.6851094961166382, -0.3539924919605255, 0.2869222164154053, -0.5734623670578003, -0.21310770511627197, -0.2928283214569092, 0.3363087773323059, -0.27221307158470154, -0.4787987470626831, -0.26372355222702026, -0.24363034963607788, -0.5895607471466064, -0.08159393072128296, -0.10145416110754013, 0.09669647365808487, -0.12626992166042328, 0.08840972185134888, -0.6365224123001099, 0.20944270491600037, 0.3910723626613617, 0.3756171464920044, -0.0023861113004386425, -0.4113086462020874, -0.11895151436328888, 0.018482360988855362, -0.4749550521373749, -0.6598570346832275, 0.36495012044906616, 0.17236605286598206, 0.4688725173473358, 0.62286376953125, 0.19722211360931396, 0.7915908098220825, -0.5737153887748718, 0.33999815583229065, 0.04671165347099304, -1.1685925722122192, 0.5332862734794617, -0.30192890763282776, 0.02793874777853489, 0.8571103811264038, 0.3311912715435028, -0.07196337729692459, 0.036824677139520645, -0.14767158031463623, -0.797911524772644, 0.8333549499511719, -0.21391357481479645, 0.08206438273191452, -0.17346520721912384, 0.8081380724906921, 0.45454293489456177, 0.05987834930419922, -0.5173705220222473, -0.051673583686351776, 0.11102045327425003, -0.27322378754615784, -0.07343519479036331, -0.30985406041145325, -0.2344592958688736, -0.2610079050064087, 0.8363481760025024, -0.5891897082328796, -0.0039056928362697363, 0.1281091868877411, -0.04819820448756218, -0.29375508427619934, 0.3089134097099304, 0.3386683762073517, 0.7636243104934692, -0.3802834749221802, -0.07699362188577652, -0.136361762881279, -0.20500169694423676, 0.33386027812957764, 0.21100641787052155, -0.3182488977909088, -0.6202338337898254, -0.005130516365170479, 0.6193557977676392, 0.29472339153289795, -0.6945366263389587, 0.39750078320503235, -0.09665084630250931, 0.13187475502490997, -0.051769960671663284, 0.0021091108210384846, -0.310815691947937, 0.1702687293291092, 0.37999626994132996, -0.060448743402957916, 0.1968962401151657, -0.610230028629303, 0.26158395409584045, 0.7794350385665894, -0.5703455209732056, -0.36429280042648315, 0.4407767951488495, 0.2041170448064804, -0.3020872473716736, 0.4519805908203125, -0.003953277133405209, -0.24700556695461273, 0.4193773865699768, 0.9651969075202942, 0.9342185854911804, -0.16401168704032898, 0.16517788171768188, 0.13227397203445435, -0.282171368598938, -0.029104670509696007, 0.10220849514007568, -0.32781293988227844, -1.0090618133544922, -0.44948872923851013, -0.611700177192688, -0.3528250455856323, -0.14966431260108948, -0.6554504036903381, 0.3997274339199066, -0.4520794749259949, 0.10241919755935669, -0.20234309136867523, 0.15171663463115692, -0.355525404214859, 0.04917502403259277, 0.1321161985397339, 0.7253662943840027, -0.2504193186759949, 1.1438716650009155, 0.5709540843963623, -0.0589599534869194, -0.7772052884101868, 0.3926488161087036, 0.01451844535768032, -0.7998149991035461, 0.6393992304801941, 0.15331043303012848, -0.30451253056526184, 0.13014434278011322, -0.3539041578769684, -1.0427180528640747, 1.1332998275756836, 0.6293753981590271, -0.5284343957901001, -0.07191875576972961, -0.04136419668793678, 0.4627988338470459, -0.597212553024292, -0.03992210328578949, 0.7102049589157104, 0.20271818339824677, 0.071108877658844, -0.8069570660591125, 0.171298548579216, 0.21238063275814056, 0.03757317364215851, 0.3457135558128357, -0.7115685939788818, 0.655007541179657, -0.1942390501499176, -0.2859552204608917, 0.22365982830524445, 0.4631669223308563, 0.45949786901474, 0.008073747158050537, 0.525669515132904, 0.517419159412384, 0.4960609972476959, 0.09945670515298843, 1.0446884632110596, -0.39198070764541626, 0.22109468281269073, 1.1218544244766235, -0.5782821178436279, 0.9841756224632263, 0.8271235823631287, 0.017162390053272247, 0.21946926414966583, 0.4131169319152832, 0.6371572613716125, 1.0152949094772339, -0.02434368245303631, -0.39488908648490906, -0.10681596398353577, -0.21313591301441193, -0.14794909954071045, 0.8037121295928955, 0.14378292858600616, -0.2674667537212372, 0.017666013911366463, -0.18667888641357422, 0.022621430456638336, 0.3102554380893707, -0.24341981112957, 1.0679348707199097, 0.0415654294192791, -1.0516207218170166, 0.5446162223815918, -0.22861333191394806, 0.7296037077903748, -0.5763368010520935, -0.03660790994763374, -0.2819473445415497, 0.6130338311195374, 0.0777728483080864, -0.6260238885879517, 0.06527160108089447, -0.1918136477470398, -0.2407556027173996, -0.40506061911582947, 0.4695073366165161, -0.49613651633262634, -0.18755683302879333, 0.5843415856361389, 0.11427335441112518, -0.3597578704357147, 0.1327185332775116, -0.5680747032165527, -0.1852867752313614, 0.055909354239702225, 0.08267999440431595, 0.7643349766731262, 0.32793012261390686, -0.005744646769016981, 0.476534903049469, 0.5962120890617371, 0.04357701912522316, -0.3314976096153259, -0.19682443141937256, 0.7405597567558289, -0.365955650806427, -0.5580198764801025, -1.0248610973358154, 0.2452670931816101, 0.014766490086913109, -0.4214637875556946, 0.7196738719940186, 0.43304744362831116, 0.9522630572319031, 0.0015295656630769372, 0.6212133765220642, 0.04179378226399422, 0.3551866412162781, -0.6484260559082031, 0.45943713188171387, -0.614801824092865, 0.28613510727882385, -0.624865710735321, -1.1821485757827759, -0.3104638159275055, 0.2536514103412628, -0.3683672547340393, -0.47495341300964355, 0.3584962487220764, 0.6196661591529846, -0.04502630606293678, -0.18041157722473145, 0.12124902009963989, -0.06216947361826897, 0.5213868021965027, 0.6697311401367188, 0.7286977171897888, -0.13036376237869263, 0.35186538100242615, -0.46686670184135437, -0.5976718664169312, -0.2731688618659973, -1.1823723316192627, -0.44743242859840393, -0.48831647634506226, 0.020917972549796104, -0.1648033708333969, -0.046953875571489334, 1.318969488143921, 0.5475443005561829, -0.717393696308136, -0.4498114585876465, -0.06463724374771118, 0.32296431064605713, -0.3195091784000397, -0.22951659560203552, 0.4844803214073181, -0.325107604265213, -1.1018599271774292, 0.6701157689094543, 0.47123733162879944, 0.0829404667019844, 0.10559574514627457, -0.2539558708667755, -0.23519574105739594, 0.018053695559501648, 0.8330826163291931, 0.3006838858127594, -0.6712616086006165, -0.4929179251194, -0.0678386464715004, -0.07629025727510452, 0.35953113436698914, 0.9133309721946716, -0.6122212409973145, 0.5607476234436035, 0.6679710745811462, 0.7026187777519226, 0.20256170630455017, 0.2824876606464386, 0.8575400710105896, -0.6066272258758545, 0.20826610922813416, 0.1520525962114334, 0.43447452783584595, 0.2734214663505554, -0.6615734696388245, 0.19599094986915588, -0.07304605096578598, -0.6354376673698425, -0.7082805633544922, 0.34214910864830017, -0.9987759590148926, -0.2372252494096756, 1.115297555923462, -0.01635291613638401, 0.037723738700151443, 0.17161038517951965, -0.43919965624809265, 0.23672835528850555, -0.8476072549819946, 1.1082360744476318, 0.3783471882343292, -0.35976430773735046, 0.2099500149488449, 0.18648579716682434, 0.7954809069633484, 0.3237585127353668, -0.9052138328552246, 0.04734181612730026, 0.41779443621635437, 0.32474789023399353, -0.06886215507984161, 0.7230209708213806, -0.2824108600616455, -0.0073363566771149635, -0.6426272988319397, -0.19382886588573456, 0.0926099643111229, -0.5133652687072754, -0.3972932696342468, 0.23311921954154968, 0.2660798132419586, -0.17485879361629486 ]
http://arxiv.org/abs/2402.09283v3
http://arxiv.org/pdf/2402.09283v3
Attacks, Defenses and Evaluations for LLM Conversation Safety: A Survey
2024-02-14T16:14:03
2024-03-27T13:55:14
Zhichen Dong, Zhanhui Zhou, Chao Yang, Jing Shao, Yu Qiao
cs.CL
cs.CL, cs.AI, cs.CY, cs.LG
Large Language Models (LLMs) are now commonplace in conversation applications. However, their risks of misuse for generating harmful responses have raised serious societal concerns and spurred recent research on LLM conversation safety. Therefore, in this survey, we provide a comprehensive overview of recent studies, covering three critical aspects of LLM conversation safety: attacks, defenses, and evaluations. Our goal is to provide a structured summary that enhances understanding of LLM conversation safety and encourages further investigation into this important subject. For easy reference, we have categorized all the studies mentioned in this survey according to our taxonomy, available at: https://github.com/niconi19/LLM-conversation-safety.
[ -0.35050147771835327, -1.2852574586868286, 0.4445629119873047, -0.001965857110917568, 0.02106613852083683, 0.12300007045269012, -0.030952339991927147, -0.788438081741333, 0.08068376779556274, 0.7907146215438843, -0.14023950695991516, -0.3594050705432892, -0.7363032102584839, -0.0902269035577774, -0.6720811128616333, 0.9630597233772278, 0.25241631269454956, 0.26085877418518066, -0.12146545201539993, 0.1002463549375534, -0.40489745140075684, -1.0967906713485718, -0.893028199672699, 0.12813657522201538, 0.5172261595726013, 0.25396957993507385, 0.321734219789505, -0.08261562883853912, 0.9724193811416626, 0.42053043842315674, -0.35456612706184387, -0.32525646686553955, -0.7654663920402527, 0.4344871938228607, 0.023062098771333694, -0.49344903230667114, -0.7849150896072388, -0.05258384346961975, 0.6113969087600708, 0.743354320526123, -0.20079763233661652, -0.06682928651571274, 0.09566714614629745, 0.5132304430007935, -0.5884251594543457, -0.3230246603488922, -0.937504231929779, 0.10955021530389786, -0.39749521017074585, -0.13203111290931702, -0.7476819157600403, -0.5394391417503357, 0.26752424240112305, 0.17184582352638245, -0.39160212874412537, 0.10724662989377975, 0.49758267402648926, -0.3014790415763855, -0.8478806018829346, -0.4824758470058441, -0.6402190923690796, 0.7812139987945557, -0.6184173226356506, 0.13068121671676636, 0.40850383043289185, 0.4850425124168396, -0.3124758303165436, -0.510382890701294, -0.10432712733745575, -0.5141335725784302, 0.02902672067284584, 0.08441541343927383, -0.6139742732048035, 0.4572329819202423, 0.3259499967098236, 0.39050063490867615, -0.42132696509361267, 0.4674277603626251, -0.46185192465782166, -0.22028881311416626, 0.7959904074668884, 0.6598536372184753, 0.5947282314300537, -0.12397335469722748, -0.4098091423511505, -0.012287376448512077, -1.1431448459625244, -0.07736704498529434, 0.42786896228790283, -0.051483526825904846, -0.2894245684146881, 0.5540493130683899, 0.0388372577726841, 0.7050393223762512, -0.27457547187805176, -0.4066174626350403, -0.1241796612739563, -0.5743789076805115, -0.24438956379890442, -0.15580995380878448, 1.1067453622817993, 0.8240373730659485, 0.30598184466362, -0.16119937598705292, -0.04851476103067398, -0.13158302009105682, 0.4136974513530731, -0.8365797996520996, 0.12823458015918732, 0.14093247056007385, -0.4565076529979706, -0.7239446640014648, -0.056946221739053726, -0.8922364115715027, -0.5863444805145264, 0.3820970356464386, -0.07468044012784958, -0.22461539506912231, -0.29697367548942566, 0.11365746706724167, 0.13069851696491241, 0.531112015247345, 0.21049626171588898, -0.682069718837738, 0.5672497749328613, 0.6640539765357971, 0.5738826394081116, -0.38568681478500366, 0.01712835393846035, -0.31027865409851074, 0.03904949501156807, -0.3175949156284332, 0.7356014847755432, -0.27963119745254517, -1.0829012393951416, 0.42609313130378723, -0.06988012045621872, -0.06723260879516602, -0.37936753034591675, 0.6243472695350647, -0.6905264854431152, 0.19243919849395752, -0.08843448758125305, -0.48562973737716675, -0.09392060339450836, 0.7207556366920471, -0.6535013318061829, 0.5038026571273804, -0.31437236070632935, -1.0886775255203247, -0.30211886763572693, -0.49241510033607483, -0.5620529651641846, -0.11285495012998581, -0.07519859075546265, -0.24618647992610931, 0.12963131070137024, -0.25271353125572205, 0.6423708200454712, -0.44684144854545593, 0.039564210921525955, -0.3539189398288727, -0.005779840052127838, 0.7828086018562317, -0.6682613492012024, 0.7902196645736694, 0.3635682761669159, -0.05958576500415802, 0.24432703852653503, -0.5926764607429504, -0.033166807144880295, 0.2031129151582718, -0.34859028458595276, -0.10804211348295212, -0.011477630585432053, -0.09112707525491714, 0.048037536442279816, 0.18903155624866486, -0.6085769534111023, -0.02169240452349186, -0.5573397874832153, 0.46810945868492126, 0.5509361028671265, 0.5313180685043335, 0.3055967688560486, -0.2833092510700226, 0.7333613038063049, -0.21782834827899933, 0.393538236618042, -0.0887584239244461, -0.38388437032699585, -0.6171081066131592, 0.11735135316848755, 0.16470611095428467, 0.7358903884887695, -0.55010586977005, 0.3037453293800354, -0.06246268004179001, -0.7029353976249695, 0.20174530148506165, -0.10770384222269058, 0.6359466314315796, 0.1773442029953003, -0.2802141010761261, -0.3159261643886566, -0.6136450171470642, -0.9827362895011902, -0.23196081817150116, -0.6016712188720703, 0.04772366210818291, 0.4089561700820923, 0.23901815712451935, -0.27769118547439575, 0.59818035364151, -0.6411128044128418, 0.14992661774158478, -0.5476060509681702, -0.17441800236701965, -0.22554220259189606, 0.37710416316986084, 0.8754616975784302, -0.4266503155231476, -0.45327356457710266, -0.24189318716526031, -0.5543063879013062, -0.09597959369421005, 0.1314268261194229, -0.09009251743555069, 0.254425972700119, 0.7157443761825562, -0.7546916007995605, 0.42347198724746704, 0.683257520198822, -0.1741306334733963, 0.534771740436554, 0.39975452423095703, 0.18857739865779877, -1.1338789463043213, -0.20348133146762848, 0.09440121054649353, -0.1746176928281784, -1.1000900268554688, 0.20896266400814056, -0.29947584867477417, 0.032603275030851364, -0.8316388130187988, 0.2830171287059784, -0.2819887399673462, 0.1632712334394455, -0.29364338517189026, 0.1966768503189087, -0.21122866868972778, -0.11549487709999084, -0.15590041875839233, 0.5432454347610474, 0.6608715653419495, -0.5740495920181274, 0.4390575885772705, 0.15975935757160187, -0.6368909478187561, 0.4756527245044708, -0.912807822227478, 0.5290998220443726, 0.2860216200351715, 0.3323161005973816, -0.9612467885017395, -0.2904931306838989, 0.446444571018219, -0.48566964268684387, 0.302598774433136, -0.12892763316631317, -0.4038430452346802, -0.2203817367553711, -0.5880277752876282, 0.294834703207016, 0.31873562932014465, -0.07898063212633133, 0.3833859860897064, 0.8953168392181396, -0.3638055920600891, -0.5355705618858337, -0.7844332456588745, 0.550971269607544, -0.6456712484359741, -0.6198042035102844, -0.16696475446224213, -0.4130820035934448, -0.8519191145896912, -0.5897225737571716, 0.1741083860397339, -0.06655692309141159, 0.657405436038971, 0.3998487591743469, 0.3386273980140686, 0.1351623386144638, -0.3032858669757843, -0.6687343120574951, 0.10622476786375046, 0.5124282836914062, 0.5329163670539856, 0.7815927267074585, -0.1521756947040558, -0.6648592948913574, -0.34816884994506836, 0.4714246988296509, 0.49765509366989136, 0.16104505956172943, 0.5634793639183044, 0.2147580236196518, -0.18252964317798615, 0.24425314366817474, -0.6752273440361023, -0.31484416127204895, -0.49976104497909546, 0.7293243408203125, -0.18190304934978485, -1.1631942987442017, 0.33959081768989563, 0.0031666785944253206, 0.30328333377838135, 0.19495874643325806, 0.6171748638153076, -0.2621258795261383, 0.8990156054496765, 0.5615912675857544, -0.3024732172489166, 0.5301265120506287, 0.21320316195487976, 0.42779800295829773, -0.6934862732887268, -0.23334845900535583, -0.6689881086349487, 0.1051175445318222, -0.5917690396308899, -0.10732235759496689, 0.3528236746788025, -0.15461045503616333, -0.05732244253158569, 0.18507738411426544, -0.09738979488611221, 0.32589155435562134, 0.03696683794260025, -0.28147536516189575, 0.2758701741695404, -0.11573027074337006, 0.188273623585701, -0.031518079340457916, -0.3749961256980896, -0.8121066093444824, 1.1469483375549316, 0.9247033596038818, 1.1543710231781006, 0.6040604710578918, 0.5985932350158691, 0.16035039722919464, 0.3723841607570648, -0.9152695536613464, 0.9687784910202026, 0.3190408945083618, -0.9111524820327759, -0.26201245188713074, -0.5914379358291626, -1.2477781772613525, 0.30395257472991943, -0.17754949629306793, -1.1355153322219849, -0.4246726334095001, -0.09266100823879242, -0.22838430106639862, 0.3100675046443939, -0.6524896025657654, 0.485478013753891, -0.6288016438484192, 0.03876713663339615, -0.23380739986896515, -0.6504441499710083, 0.8416528105735779, -0.1608656346797943, 0.185085728764534, -0.022207677364349365, 0.1823004186153412, 0.8335846662521362, -0.055945634841918945, 1.136255145072937, 0.04685730114579201, -0.39354127645492554, 0.46611201763153076, 0.21880871057510376, 0.46323347091674805, 0.05541175976395607, 0.012035656720399857, 0.10626397281885147, -0.00962287187576294, -0.04936954379081726, -0.2797684967517853, 0.7831017971038818, -0.40984904766082764, -1.033562183380127, -0.4797992408275604, -0.422355592250824, -0.3959181606769562, -0.05318332090973854, -0.029659193009138107, 0.3082553446292877, -0.78305983543396, 0.5461989045143127, 0.8476252555847168, -0.44489115476608276, 0.5248960852622986, 0.6896981596946716, -0.4779868423938751, -0.5772300958633423, 0.550394594669342, -0.036809585988521576, 0.6439744234085083, 0.1695232391357422, -0.06827758252620697, -0.18080861866474152, -1.0270487070083618, -0.052666548639535904, -0.08887849748134613, -0.7229185104370117, -0.24547073245048523, -0.8081463575363159, -0.4216977059841156, -0.4817203879356384, 0.16343730688095093, -0.2136070430278778, -0.3118641674518585, -0.00014403181558009237, -0.5206605195999146, 0.3544033169746399, 1.0684760808944702, 0.36055850982666016, 0.6396404504776001, -0.747280478477478, -0.014113126322627068, 0.336590975522995, 0.11698325723409653, -0.03867727518081665, -0.4128287434577942, -0.10438892990350723, -0.22768810391426086, -0.562136709690094, -1.1194171905517578, 0.09886183589696884, -0.19599585235118866, 0.7177296876907349, 0.5680609941482544, 0.11741150170564651, 0.2871738076210022, -0.5426440238952637, 1.1814972162246704, 0.5788455605506897, -0.5448819398880005, 0.4650440216064453, -0.3005475103855133, -0.11344636231660843, 0.5340230464935303, 0.3732311427593231, -0.5609341263771057, -0.23707498610019684, -0.613797664642334, -0.7880170345306396, 0.3260959982872009, 0.2199910432100296, 0.5868801474571228, -0.10547570884227753, -0.027274666354060173, -0.3031769096851349, 0.019991019740700722, -0.8153983354568481, -0.2634325921535492, 0.43243637681007385, 0.0777367502450943, 0.18228919804096222, -0.7704119086265564, -0.598312497138977, 0.05009564384818077, 0.4660778343677521, 0.26244449615478516, 0.014035427011549473, -0.24384646117687225, -0.16363538801670074, 0.19583351910114288, 0.5544708967208862, 0.6111137866973877, 0.4727247655391693, -0.0494099035859108, 0.234134703874588, 0.6658497452735901, -0.6447153091430664, 0.2581411898136139, -0.19772425293922424, 0.10242301225662231, -0.3156336843967438, 0.4408017098903656, 0.6692734360694885, 0.45717355608940125, -0.7473490238189697, 0.6175119876861572, -0.41619792580604553, -0.14793133735656738, -0.3804462254047394, 0.05067688599228859, 0.15671446919441223, -0.0530129000544548, -0.012273548170924187, -0.25877484679222107, 0.12322968244552612, -0.6003437042236328, -0.0979415774345398, 0.8451544642448425, -0.36849361658096313, -0.2137242704629898, 0.1040838211774826, 0.45648232102394104, -0.2405543476343155, 0.16855132579803467, 0.21532277762889862, -0.4415595233440399, 0.4008955955505371, 0.6712093949317932, 0.8969960808753967, -0.3470551073551178, -0.19182343780994415, 0.11183172464370728, 0.4492325186729431, 0.27438512444496155, 0.09759123623371124, 0.224470317363739, -0.6562832593917847, -0.09536662697792053, -0.4190385043621063, -0.8601787090301514, 0.3524589538574219, -0.4221675992012024, 0.0038380210753530264, -0.676732063293457, -0.5253983736038208, -0.11787740886211395, 0.04352384805679321, -0.16294939815998077, -0.13239498436450958, 0.31254225969314575, 0.9910604357719421, -0.5141435265541077, 0.5973412990570068, 0.6433620452880859, -0.1422927975654602, -0.3445609509944916, -0.1445743590593338, 0.34924444556236267, -0.5363305807113647, 0.49686673283576965, -0.022966286167502403, -0.42613163590431213, -0.512188732624054, -0.5948179960250854, -0.718646228313446, 0.7154340147972107, 0.2973947525024414, -0.6921852827072144, 0.15982377529144287, 0.4639645516872406, 0.3692326545715332, -0.26548904180526733, 0.3997088074684143, 0.7044662237167358, 0.3706675171852112, -0.08897507190704346, -0.9664435982704163, -0.20648519694805145, -0.25279757380485535, 0.10818945616483688, 0.00994645431637764, -0.8558678030967712, 0.3795633316040039, 0.12047568708658218, -0.2891765236854553, 0.30228155851364136, 0.44019460678100586, 0.4842687249183655, 0.21118147671222687, 0.5573286414146423, 0.575876772403717, 0.364716500043869, -0.1144067794084549, 1.2419708967208862, -0.4087264835834503, -0.07168658822774887, 1.0750781297683716, -0.360202819108963, 0.8266305923461914, 0.32620835304260254, -0.31941860914230347, 0.06510751694440842, 0.5635982155799866, 0.16563411056995392, 0.02556339092552662, 0.6534557342529297, -0.27913886308670044, 0.05350090190768242, -0.03849468752741814, -0.4433352053165436, 0.48851099610328674, 0.5283457636833191, -0.34199610352516174, 0.0012958740117028356, -0.05808180198073387, 0.5481002926826477, -0.15619270503520966, -0.16752085089683533, 1.0311297178268433, 0.42993834614753723, -0.4874551594257355, 0.3509562611579895, 0.08169692009687424, 0.8004868030548096, -0.7183912992477417, 0.21041330695152283, -0.2136819213628769, -0.036189768463373184, -0.18267512321472168, -0.9677357077598572, 0.27116844058036804, 0.3283342123031616, 0.12797172367572784, -0.18068915605545044, 0.9850048422813416, -0.04602693021297455, -0.19489026069641113, 0.2285229116678238, 0.4603058397769928, 0.2961399257183075, 0.1893240064382553, -0.5085105299949646, 0.6418326497077942, -0.11235307902097702, -0.4851660430431366, 0.6089125275611877, 0.011834396049380302, -0.040403079241514206, 0.7530736327171326, 0.4105493724346161, 0.03058379329741001, 0.17841465771198273, 0.34399619698524475, 0.8738027215003967, -0.7724207043647766, -0.06859254837036133, -1.0723718404769897, 0.2482837289571762, -0.3491447865962982, -0.1429363638162613, 1.1697444915771484, 0.46526068449020386, 0.447400838136673, 0.18841512501239777, 0.8050412535667419, 0.17200767993927002, 0.37087950110435486, -0.5644798874855042, 1.0362536907196045, 0.11155327409505844, 0.5456628203392029, -0.5558468103408813, -0.7131382822990417, -0.271421879529953, 0.19530047476291656, -0.4622242748737335, 0.04575350135564804, 0.4734541177749634, 0.8146977424621582, 0.37225937843322754, 0.15012750029563904, 0.4667029082775116, 0.3298565149307251, 0.6770508289337158, 0.5770617127418518, 1.5660656690597534, -0.2917262315750122, 0.6945041418075562, -0.05817241221666336, -0.052791692316532135, -0.2277533859014511, -0.8800891637802124, -1.1404566764831543, -0.2301000952720642, -0.3984420597553253, -0.4533197581768036, 0.1192384660243988, 0.6029966473579407, 0.5802376866340637, -0.7612966895103455, -0.44572219252586365, 0.36087191104888916, 0.11795368790626526, 0.5396239757537842, -0.14080160856246948, -0.01864040642976761, -0.23475989699363708, -0.6805317997932434, 0.649378776550293, 0.1601281762123108, 0.3449440598487854, -0.43334832787513733, -0.00007492341683246195, -0.045399535447359085, 0.23658005893230438, 0.9250345230102539, 0.37510085105895996, -0.6929903626441956, -0.31777504086494446, -0.23535597324371338, -0.39057326316833496, -0.12203399091959, 0.702183187007904, -0.14925098419189453, 0.09366261214017868, 0.5802202224731445, 0.786375105381012, 0.11108788102865219, -0.18679821491241455, 0.5882722735404968, -0.5399365425109863, 0.011267018504440784, 0.1731763631105423, 0.5882112979888916, 0.4311720132827759, -0.3771316409111023, 0.5389668941497803, -0.060165856033563614, -0.6343404054641724, -1.225750207901001, 0.5246647596359253, -1.166151762008667, -0.05882658436894417, 1.4575999975204468, -0.12782947719097137, -0.12635277211666107, -0.10679107904434204, -0.4306660294532776, -0.22169823944568634, -0.13502617180347443, 0.6635383367538452, 0.7854652404785156, -0.009410270489752293, -0.052159279584884644, -0.8857094645500183, 0.4103815257549286, 0.18780013918876648, -1.1500893831253052, 0.08923062682151794, 0.6059738993644714, 0.4033050537109375, 0.030124375596642494, 0.5807678699493408, -0.5628100037574768, 0.043786730617284775, -0.3281964361667633, -0.1898423582315445, 0.3252665102481842, -0.313114732503891, -0.3617148995399475, 0.3982338309288025, 0.5330280065536499, -0.0644959807395935 ]
http://arxiv.org/abs/2402.09282v4
http://arxiv.org/pdf/2402.09282v4
Leveraging Large Language Models for Enhanced NLP Task Performance through Knowledge Distillation and Optimized Training Strategies
2024-02-14T16:10:45
2024-03-24T07:06:19
Yining Huang, Keke Tang, Meilian Chen
cs.CL
cs.CL
Emerging Large Language Models (LLMs) like GPT-4 have revolutionized Natural Language Processing (NLP), showing potential in traditional tasks such as Named Entity Recognition (NER). Our study explores a three-phase training strategy that harnesses GPT-4's capabilities to enhance the BERT model's performance on NER. Initially, GPT-4 annotates a subset of the CONLL2003 and additional BBC dataset without fine-tuning. We then train BERT using a mix of original and LLM-annotated data, analyzing the efficacy of LLM annotations against traditional methods. The second phase involves comparative experiments with different training regimens, assessing the synergy between distilled and original data. We observe that sequential strategies, particularly a simple mix of training first with distilled data followed by original data, significantly boost performance. In the third phase, we investigate various data blending techniques, including sigmoid and power decay functions, to optimize the training process further. Our results indicate that a strategic mix of distilled and original data markedly elevates the NER capabilities of BERT. Our approach presents a scalable methodology that reduces manual annotation costs and increases efficiency, making it especially pertinent in resource-limited and closed-network environments. The study concludes that while the 'Simple Mix' strategy yields the best results, understanding its underlying mechanisms requires further research. Future work will also focus on refining prompt designs and enhancing annotation selection processes, aiming to extend our methodology to diverse NLP tasks.
[ -0.6072242856025696, -0.5765908360481262, 0.5721222162246704, 0.1840820014476776, -0.5051586031913757, 0.10114395618438721, -0.48667672276496887, -0.614023745059967, 0.01663767173886299, 0.3788878917694092, -0.34165632724761963, -0.2334093600511551, -0.7869121432304382, 0.4299135208129883, -0.31657254695892334, 1.2314940690994263, 0.07482733577489853, 0.07371643930673599, 0.2195676565170288, 0.06305426359176636, -0.4650903642177582, -0.7206616997718811, -1.024094581604004, -0.7202416658401489, 0.6527718305587769, 0.10852998495101929, 0.39192864298820496, 0.32655391097068787, 0.46984168887138367, 0.2654695212841034, -0.20279420912265778, 0.19334104657173157, -0.47739377617836, 0.3072967827320099, -0.008759373798966408, -0.35606834292411804, -0.29657331109046936, -0.041077978909015656, 0.6187775731086731, 0.6245003938674927, -0.14790603518486023, -0.06512289494276047, 0.4340888559818268, 0.6051449775695801, -0.353760689496994, 0.3948361575603485, -1.1070786714553833, 0.05771184712648392, -0.4035566747188568, -0.1450667679309845, -0.2981272339820862, -0.12452563643455505, 0.4668036997318268, -0.5291695594787598, 0.33073875308036804, -0.023041894659399986, 0.8532832264900208, 0.36828622221946716, -0.09814770519733429, -0.30452439188957214, -0.828307569026947, 0.6295123100280762, -0.9449081420898438, 0.29827916622161865, 0.2731463611125946, 0.1811058670282364, -0.20512738823890686, -0.811416745185852, -0.784967839717865, -0.10584504157304764, -0.020744211971759796, -0.16496537625789642, -0.06870479881763458, 0.1842186003923416, 0.6151393055915833, 0.23123003542423248, -0.23601152002811432, 0.1996641904115677, -0.2549072802066803, -0.07440932840108871, 0.4115452468395233, -0.3020496964454651, 0.07059530913829803, -0.08328526467084885, -0.41940218210220337, -0.040954794734716415, -0.611415684223175, -0.17578479647636414, 0.3019874691963196, 0.5374566316604614, 0.36372867226600647, 0.47286495566368103, -0.1214287281036377, 0.7220670580863953, 0.277090847492218, -0.3146747946739197, 0.4192849099636078, -0.2785496711730957, -0.21109886467456818, 0.23623162508010864, 0.6111644506454468, 0.04929152876138687, 0.15093927085399628, -0.28520700335502625, -0.5357767939567566, -0.4102869927883148, 0.16438733041286469, -0.8228374123573303, -0.5490099787712097, -0.06264813244342804, -0.15572746098041534, -0.1312587857246399, -0.37767794728279114, -0.6775537729263306, -0.42650625109672546, -0.6819701790809631, 0.5771334767341614, -0.7288178205490112, -0.26949289441108704, -0.005541237536817789, -0.27030906081199646, 0.14044427871704102, 0.4651157557964325, -1.3050705194473267, 0.41696038842201233, 0.7349697351455688, 0.832037627696991, -0.11559080332517624, -0.11016757041215897, -0.41160649061203003, 0.15335778892040253, -0.07617723196744919, 0.48392000794410706, -0.39328256249427795, -0.04295389726758003, -0.15975435078144073, -0.303747296333313, -0.05893920734524727, -0.6281005144119263, 0.4984138011932373, -0.741316020488739, 0.0035843891091644764, -0.4148944020271301, -0.660286009311676, -0.3300046920776367, 0.25133541226387024, -0.9714279174804688, 1.2240269184112549, -0.04403231665492058, -0.9905207753181458, 0.7348037958145142, -0.6651027798652649, -0.49093061685562134, 0.3170872926712036, -0.1354002207517624, -0.24274180829524994, 0.12123765051364899, 0.5036579370498657, 0.7497598528862, -0.14549970626831055, 0.2548021376132965, -0.1315261870622635, -0.20615318417549133, -0.08300308138132095, -0.3703809976577759, 0.4859582483768463, 0.014065711759030819, -0.6094077825546265, -0.3213217556476593, -0.7122548818588257, -0.051670197397470474, 0.12171018123626709, -0.5132816433906555, -0.5981135964393616, 0.06402846425771713, -0.11404852569103241, 0.1462569534778595, 0.2320612370967865, -0.4626423120498657, 0.24310824275016785, -0.40184393525123596, 0.5579294562339783, 0.5624219179153442, 0.10710429400205612, 0.3593915104866028, -0.10357040166854858, 0.19732095301151276, -0.12026660144329071, -0.12607888877391815, 0.05670861527323723, -0.5846431255340576, -0.8273014426231384, -0.3643352687358856, 0.5165440440177917, 0.38495925068855286, -1.1212595701217651, 0.28163692355155945, -0.3249310255050659, -0.40440014004707336, -0.46099212765693665, 0.27325189113616943, 0.11696892231702805, 0.5743796825408936, 0.5730375647544861, -0.1484653353691101, -0.5309058427810669, -0.884816586971283, 0.011983118019998074, -0.0596507303416729, -0.08112824708223343, 0.03799227997660637, 0.4871519207954407, -0.03008395805954933, 0.8819094300270081, -0.25202512741088867, -0.36404556035995483, -0.5227670669555664, 0.4718208312988281, 0.41733071208000183, 0.2928512990474701, 0.44802775979042053, -0.8837850093841553, -0.3923295736312866, -0.07224351167678833, -0.46895018219947815, -0.07591754198074341, -0.2235540896654129, 0.11023437976837158, 0.16704732179641724, 0.3159272074699402, -0.39942285418510437, 0.056090328842401505, 0.5675397515296936, 0.32562458515167236, 0.25083327293395996, -0.19249674677848816, 0.027251381427049637, -0.863689124584198, -0.02056773565709591, 0.0950896143913269, -0.17330309748649597, -0.7843141555786133, -0.24366673827171326, -0.06786055862903595, 0.012909076176583767, -0.2935304343700409, 0.28531450033187866, -0.7815808057785034, 0.07281791418790817, -0.36896809935569763, 0.2018653154373169, -0.04798797518014908, 0.5148891806602478, 0.20113930106163025, 0.621540904045105, 0.3460531234741211, -0.5631872415542603, 0.2816212475299835, 0.12185078859329224, -0.35040518641471863, 0.3531440496444702, -0.7048045992851257, 0.3463316261768341, -0.18019376695156097, 0.21589328348636627, -0.861671507358551, -0.10375236719846725, 0.06363958865404129, -0.11107060313224792, 0.7197242379188538, -0.32406267523765564, -0.791664183139801, -0.32627636194229126, -0.12435541301965714, 0.18321336805820465, 0.421705961227417, -0.5576483607292175, 0.7905333638191223, 0.33510348200798035, -0.36723873019218445, -0.5695383548736572, -0.6990242600440979, 0.2896880805492401, -0.4448949694633484, -0.3614187240600586, 0.6337776780128479, 0.24116137623786926, 0.060571908950805664, -0.10519817471504211, -0.2244226038455963, -0.18070973455905914, 0.10946958512067795, 0.09014645963907242, 0.2316274493932724, 0.12291821837425232, 0.17054396867752075, 0.06007636711001396, 0.012373621575534344, -0.02884172648191452, -0.36602985858917236, 0.6198627352714539, 0.07276301085948944, -0.16122104227542877, -0.38507479429244995, 0.16756998002529144, 0.13902249932289124, -0.19233568012714386, 0.6957627534866333, 0.7831031680107117, -0.45702293515205383, -0.3107091188430786, -0.7932148575782776, -0.3406837284564972, -0.4456062614917755, 0.3738892376422882, -0.3131669759750366, -0.9728342294692993, 0.29390162229537964, -0.22365669906139374, 0.33233001828193665, 0.2500080168247223, 0.5359760522842407, -0.07004193216562271, 0.6284621953964233, 0.5519699454307556, -0.28365060687065125, 0.6176578998565674, -0.18863622844219208, 0.4459925591945648, -0.9822751879692078, -0.237581267952919, -0.2916395962238312, -0.5520696043968201, -0.43160179257392883, -0.5486157536506653, 0.374058336019516, 0.25000956654548645, 0.015009082853794098, 0.3974243700504303, -0.4967881441116333, 0.39283668994903564, 0.6032667756080627, 0.16807611286640167, 0.28890952467918396, 0.042181357741355896, -0.17486806213855743, -0.13997328281402588, -0.680334746837616, -0.4393112361431122, 1.2606878280639648, 0.4040863513946533, 0.586810290813446, -0.09065591543912888, 1.1185628175735474, 0.04480880871415138, 0.2617064416408539, -0.6008994579315186, 0.6173257827758789, 0.029498910531401634, -0.6652935147285461, -0.4082867503166199, -0.4443190395832062, -0.8394245505332947, 0.3475773334503174, -0.39001309871673584, -0.6234987378120422, -0.04526138678193092, 0.2554778754711151, -0.3314957618713379, 0.2831836938858032, -0.7747661471366882, 0.468397855758667, -0.40501612424850464, -0.14279165863990784, 0.016879314556717873, -0.6218850016593933, 0.21898508071899414, -0.4943158030509949, 0.013091569766402245, -0.1656535267829895, -0.023344919085502625, 0.7764143943786621, -0.12985412776470184, 0.7283115386962891, -0.441395103931427, -0.15026572346687317, 0.0606919564306736, -0.2890559732913971, 0.753839373588562, 0.09301726520061493, -0.08800171315670013, 0.41118553280830383, -0.30429184436798096, -0.09066970646381378, -0.5590003132820129, 0.6105627417564392, -0.6003546118736267, -0.5361525416374207, -0.37956541776657104, -0.46170321106910706, -0.3357526361942291, 0.33694520592689514, 0.24580122530460358, 0.307595431804657, 0.01290389895439148, 0.21458393335342407, 0.8188880085945129, 0.023256363347172737, 0.6981425285339355, 0.2427576184272766, 0.008387558162212372, -0.39724788069725037, 0.5519720315933228, 0.2497938573360443, 0.3405945301055908, 0.5116733908653259, -0.07250049710273743, -0.390205979347229, -1.0978680849075317, -0.14203357696533203, 0.14614859223365784, -0.6123653054237366, -0.18825185298919678, -0.7732529640197754, -0.2137085646390915, -0.23321299254894257, 0.2221555858850479, -0.24876192212104797, -0.3212581276893616, -0.24139483273029327, 0.012533754110336304, 0.3768570125102997, 0.6173558235168457, -0.11064744740724564, 0.31425154209136963, -0.5512896776199341, 0.33683180809020996, 0.39181652665138245, 0.17120672762393951, -0.00167452497407794, -0.3997845947742462, -0.198106050491333, 0.05657248571515083, -0.19081315398216248, -0.8739002346992493, 0.3723345398902893, 0.4385756850242615, 0.6862493753433228, 0.025847189128398895, -0.11414885520935059, 0.6750285029411316, -0.8702818751335144, 0.6387647390365601, 0.1500403732061386, -0.8771073818206787, 0.6043949723243713, -0.3341290056705475, 0.07041441649198532, 0.751143217086792, 0.5770930051803589, -0.25129279494285583, -0.25502103567123413, -0.4315817058086395, -1.2418222427368164, 0.6361412405967712, 0.45295989513397217, -0.00296962121501565, 0.028593959286808968, 0.41013187170028687, 0.10390453785657883, 0.4089782238006592, -0.856067419052124, -0.214115709066391, 0.08220794051885605, -0.03816618397831917, 0.015508272685110569, -0.17087271809577942, -0.14779908955097198, -0.2759259343147278, 0.8234587907791138, -0.11339327692985535, 0.2174205183982849, 0.14736048877239227, -0.07558976113796234, 0.42883339524269104, 0.16915789246559143, 0.10418245941400528, 0.555079996585846, -0.2544572055339813, 0.043032124638557434, 0.3207322955131531, -0.5910453200340271, 0.02985026128590107, 0.5965815782546997, -0.11944036185741425, 0.23952695727348328, 0.3621531128883362, 0.9090985059738159, 0.31741389632225037, -0.2510448396205902, 0.3190973997116089, -0.09237299859523773, -0.32059624791145325, -0.16892141103744507, 0.1300850212574005, 0.13231472671031952, 0.5557467937469482, 0.6058623194694519, -0.08956466615200043, 0.2881617546081543, -0.24169203639030457, 0.1347883641719818, 0.33195438981056213, 0.1083453819155693, -0.2188754826784134, 0.5367399454116821, 0.17207787930965424, 0.054346587508916855, 0.6125854849815369, -0.3028711676597595, -0.49064216017723083, 0.21368783712387085, 0.4325219988822937, 0.7679181694984436, -0.11704219877719879, 0.06218908727169037, 0.27906590700149536, 0.36919763684272766, -0.35900935530662537, 0.13558119535446167, -0.12942978739738464, -0.7301820516586304, -0.6928955316543579, -0.7705944180488586, -0.325369656085968, 0.4205589294433594, -0.6721577048301697, 0.3447191119194031, -0.3951910436153412, -0.437755286693573, 0.3284105658531189, 0.08544854074716568, -1.015779972076416, 0.07130766659975052, 0.4848155081272125, 0.6549564003944397, -0.6974786520004272, 0.9322887659072876, 0.5885202288627625, -0.2745402455329895, -1.0094468593597412, 0.1189911961555481, -0.029749372974038124, -0.6882696151733398, 0.9066498875617981, 0.235368013381958, 0.20115135610103607, 0.17799615859985352, -0.23632767796516418, -0.9773574471473694, 1.1424325704574585, 0.3775421977043152, -0.9566892981529236, -0.28757861256599426, 0.02727164328098297, 0.4922527074813843, -0.26892122626304626, 0.12604458630084991, 0.769128680229187, 0.3949868083000183, 0.21189400553703308, -1.1078473329544067, -0.005787913221865892, -0.048994727432727814, 0.3625539243221283, 0.4431864023208618, -0.16156238317489624, 0.6587116718292236, -0.11783624440431595, -0.23295219242572784, -0.2817095220088959, 0.6019756197929382, 0.2721554934978485, 0.05282330885529518, 0.707302451133728, 0.6727576851844788, 0.9497677087783813, -0.268273264169693, 0.6830850839614868, -0.18749526143074036, 0.3185988664627075, 1.3924288749694824, -0.5564442873001099, 0.865605354309082, 0.6227391362190247, -0.1882004290819168, 0.32982298731803894, 0.5648485422134399, -0.10640232264995575, 0.8018038272857666, 0.3184881806373596, -0.3439216613769531, 0.08042415976524353, 0.08448968827724457, -0.270386278629303, 0.39088374376296997, 0.28904828429222107, -0.4019157886505127, -0.37437283992767334, 0.20971648395061493, 0.20525263249874115, -0.316177099943161, -0.12579086422920227, 1.0204496383666992, 0.007968291640281677, -0.5372744202613831, 0.6137171387672424, -0.246201753616333, 0.8376846313476562, -0.7048336267471313, -0.10822076350450516, 0.038580916821956635, 0.023079199716448784, -0.03363975137472153, -0.6690448522567749, 0.0711110457777977, 0.05536418408155441, -0.1517624706029892, -0.4128035008907318, 0.6392555236816406, -0.5749143958091736, -0.29418423771858215, 0.2942812144756317, 0.28950512409210205, 0.15811069309711456, -0.22550764679908752, -0.7119314074516296, 0.056372519582509995, 0.0534416101872921, -0.2571222186088562, 0.38989531993865967, 0.7854036688804626, 0.24933505058288574, 0.38666942715644836, 0.6469391584396362, 0.44182872772216797, 0.057659000158309937, 0.22361572086811066, 1.1529947519302368, -0.42144885659217834, -0.1936294287443161, -1.024034857749939, 0.3747512698173523, -0.3249684274196625, -0.137662872672081, 0.6541035175323486, 0.36378124356269836, 0.9398948550224304, 0.16044430434703827, 0.8749827742576599, -0.12830527126789093, 0.4596344530582428, -0.6429222822189331, 0.3985912501811981, -0.20905262231826782, 0.36201849579811096, -0.3996374011039734, -1.1847889423370361, -0.09208162128925323, 0.48712849617004395, -0.36266347765922546, 0.1674736589193344, 0.6358444690704346, 0.409441739320755, 0.22062362730503082, 0.12320611625909805, 0.09464993327856064, 0.11972085386514664, 0.560034990310669, 0.6021976470947266, 0.5834120512008667, -0.19196972250938416, 0.28945446014404297, -0.4205261170864105, -0.3045704662799835, -0.05545734614133835, -1.1550098657608032, -0.9944847822189331, -0.6259347200393677, -0.22931469976902008, -0.010944421403110027, 0.10648051649332047, 0.85914146900177, 0.7549652457237244, -0.5748100876808167, 0.22705329954624176, -0.10916367918252945, -0.3475683331489563, -0.14115428924560547, -0.14591287076473236, 0.22635270655155182, -0.6386933922767639, -0.7859288454055786, 0.41825082898139954, 0.2304515838623047, 0.14895018935203552, -0.1557130664587021, 0.303509920835495, -0.32609400153160095, -0.22257199883460999, 0.721703290939331, -0.06928867101669312, -0.7116115689277649, -0.12686197459697723, -0.28828075528144836, 0.12218238413333893, -0.07237742096185684, 0.6844578981399536, -0.7296109795570374, 0.5427303314208984, 0.33151307702064514, 0.9393754601478577, 0.6621012091636658, -0.04466969519853592, 0.6113942265510559, -0.9284660220146179, 0.09121400117874146, 0.5488974452018738, 0.42737895250320435, 0.573622465133667, -0.4270784556865692, 0.5827866792678833, 0.0485197976231575, -0.7080948352813721, -0.6823031306266785, -0.13052789866924286, -0.9167355895042419, -0.06059857830405235, 1.2800527811050415, -0.14851492643356323, 0.1974787414073944, -0.18059448897838593, -0.19712838530540466, 0.2047770917415619, -0.5434032082557678, 0.599963903427124, 0.8881614804267883, -0.2637176215648651, -0.04159891605377197, -0.9627147912979126, 0.749298632144928, 0.18173182010650635, -0.7048160433769226, -0.03344431892037392, 0.4456455707550049, 0.36220577359199524, 0.17326296865940094, 0.6021581888198853, 0.05359424650669098, -0.28293952345848083, -0.2413296401500702, 0.0704084113240242, -0.1171712800860405, -0.32625216245651245, -0.3067001700401306, 0.08620823919773102, 0.13781629502773285, -0.14168255031108856 ]
http://arxiv.org/abs/2402.09269v1
http://arxiv.org/pdf/2402.09269v1
Personalized Large Language Models
2024-02-14T15:55:30
2024-02-14T15:55:30
Stanisław Woźniak, Bartłomiej Koptyra, Arkadiusz Janz, Przemysław Kazienko, Jan Kocoń
cs.CL
cs.CL, cs.AI
Large language models (LLMs) have significantly advanced Natural Language Processing (NLP) tasks in recent years. However, their universal nature poses limitations in scenarios requiring personalized responses, such as recommendation systems and chatbots. This paper investigates methods to personalize LLMs, comparing fine-tuning and zero-shot reasoning approaches on subjective tasks. Results demonstrate that personalized fine-tuning improves model reasoning compared to non-personalized models. Experiments on datasets for emotion recognition and hate speech detection show consistent performance gains with personalized methods across different LLM architectures. These findings underscore the importance of personalization for enhancing LLM capabilities in subjective text perception tasks.
[ -0.37642839550971985, -0.8908620476722717, 0.8041443824768066, -0.011082852259278297, -0.06413626670837402, 0.007846550084650517, -0.5976061224937439, -0.48596617579460144, -0.047479335218667984, 0.7812721133232117, -0.3630240559577942, -0.8152133822441101, -0.41151732206344604, 0.1664014458656311, -0.2665095031261444, 1.0063745975494385, 0.21212933957576752, -0.0504147931933403, -0.15222357213497162, -0.14176926016807556, -0.5610055923461914, -0.6965984106063843, -0.8380612730979919, -0.5467872619628906, 0.8354226350784302, 0.5694128274917603, 0.6384260654449463, 0.4846689701080322, 0.5215827822685242, 0.3984912037849426, -0.2806416451931, 0.08602242916822433, -0.34603750705718994, 0.49298447370529175, -0.49027252197265625, -0.5237839221954346, -0.360004723072052, -0.2689869999885559, 0.3301331400871277, 0.6617925763130188, -0.015760941430926323, 0.20205695927143097, -0.18688923120498657, 0.6823680996894836, -0.5185304284095764, -0.017651397734880447, -0.695149302482605, 0.074788898229599, -0.20747196674346924, -0.32372525334358215, -0.508863091468811, -0.17653843760490417, 0.295850932598114, -0.4145217537879944, 0.15919192135334015, 0.19861851632595062, 0.4846334457397461, 0.3338492512702942, -0.42394572496414185, -0.38833087682724, -1.169826865196228, 1.1122593879699707, -1.1062943935394287, 0.22084611654281616, 0.255026638507843, 0.33620351552963257, -0.13107509911060333, -0.2279132455587387, -0.38254305720329285, -0.5343889594078064, 0.12524566054344177, -0.18815487623214722, -0.2816835045814514, 0.2466963678598404, 0.21311776340007782, 0.3964150547981262, -0.4281669855117798, 0.5422755479812622, 0.028406059369444847, -0.046454641968011856, 0.7856061458587646, 0.347655713558197, 0.2966499626636505, -0.048276521265506744, 0.13782605528831482, 0.21193990111351013, -0.4299405515193939, 0.03311190754175186, 0.5436473488807678, 0.45779508352279663, -0.011486006900668144, 0.6999744176864624, -0.801435112953186, 1.0458468198776245, 0.2356986403465271, -0.3514155149459839, 0.12375462055206299, -0.07326263189315796, -0.525565505027771, 0.010046355426311493, 0.6756356954574585, 0.33307456970214844, 0.6262717843055725, -0.3784210979938507, -0.10011052340269089, -0.22435739636421204, 0.11868637055158615, -0.6213502883911133, 0.03759867325425148, 0.42543238401412964, -0.460854172706604, -0.4285016655921936, -0.46850350499153137, -0.38813307881355286, -0.5642639398574829, -0.7630086541175842, 0.2421148121356964, -0.37373992800712585, 0.17923304438591003, 0.5164999961853027, 0.005423974711447954, 0.004819909110665321, 0.5689824819564819, -1.0974650382995605, 0.19259925186634064, 0.6734009981155396, 0.6924648880958557, -0.2124238908290863, 0.031122557818889618, -0.4463760256767273, 0.14097173511981964, -0.18701864778995514, 1.054492712020874, -0.7841355204582214, -0.1529611498117447, 0.08440996706485748, -0.3015233874320984, 0.41691532731056213, -0.7240634560585022, 0.7199653387069702, -0.4409733712673187, 0.24169692397117615, -0.3420620858669281, -0.6394124627113342, -0.2940291166305542, 0.4115607738494873, -0.11233911663293839, 0.6383105516433716, -0.0614955797791481, -0.5703343749046326, 0.2620166838169098, -0.6820088624954224, -0.4535779654979706, 0.17552588880062103, 0.09977623075246811, -0.22519393265247345, 0.4282515048980713, 0.17291587591171265, 0.943679690361023, -0.31688663363456726, 0.43262043595314026, -0.6933884024620056, -0.32862725853919983, 0.2666127383708954, -0.21313829720020294, 0.14078325033187866, 0.3908087909221649, -0.19181613624095917, 0.476185142993927, -0.9072897434234619, 0.006030709482729435, 0.12120334804058075, -0.5562470555305481, -0.49698910117149353, 0.33423635363578796, 0.10172530263662338, 0.07774294167757034, 0.47914668917655945, -0.6299870610237122, 0.14070238173007965, -0.8755428791046143, 0.4198001027107239, 0.8809292912483215, -0.17041243612766266, 0.49825191497802734, -0.3671591281890869, 0.1932363510131836, 0.17086675763130188, -0.19026605784893036, -0.2902810275554657, -0.3036136329174042, -1.0116013288497925, -0.03767584264278412, 0.07780515402555466, 0.5826005935668945, -0.2773042917251587, 0.5663159489631653, 0.05029183253645897, -0.3190566301345825, -0.09437201917171478, 0.34374451637268066, 0.3322267234325409, 0.348092645406723, 0.24039766192436218, -0.09215396642684937, -0.5010210871696472, -1.114364504814148, -0.6744620203971863, 0.07329203188419342, -0.368053138256073, 0.7182592153549194, 0.1970028579235077, -0.299153208732605, 0.882213830947876, -0.7598623037338257, -0.2614055573940277, -0.26466622948646545, -0.02082579955458641, 0.30132943391799927, 0.1267787367105484, 0.5105450749397278, -0.5486608147621155, -0.6709079742431641, 0.31846562027931213, -0.6729847192764282, -0.27459171414375305, -0.17821073532104492, 0.13625843822956085, 0.0906062051653862, 0.29189997911453247, -0.2478235363960266, 0.12102963030338287, 0.3897601366043091, -0.5172300934791565, 0.34972989559173584, -0.27235114574432373, 0.06266969442367554, -0.9904946088790894, -0.19116279482841492, 0.4621703028678894, -0.6332617998123169, -0.8930196166038513, 0.04403703659772873, -0.4821249544620514, 0.0920843631029129, -0.4920869767665863, 0.8934324383735657, -0.18726599216461182, -0.08003979176282883, -0.5286771655082703, 0.22819174826145172, -0.32876697182655334, 0.39559513330459595, 0.05870744213461876, 0.4094971716403961, 0.4622569978237152, -0.6914052963256836, 0.4805244505405426, 0.24010048806667328, -0.3442908525466919, 0.7456389665603638, -0.8514658808708191, 0.39715269207954407, -0.2343660295009613, -0.10209658741950989, -0.7875379920005798, -0.38961634039878845, -0.06214064359664917, -0.20254935324192047, 0.1352132111787796, 0.19141487777233124, -0.36633044481277466, -0.0492367297410965, -0.32352888584136963, -0.010353527031838894, 0.35008537769317627, -0.5057583451271057, 0.4732379913330078, 0.18342703580856323, -0.20696595311164856, -0.1392175704240799, -0.5116490721702576, 0.3326728045940399, -0.3273125886917114, -0.5094460844993591, 0.2665310204029083, -0.3938068449497223, -0.5603963136672974, -0.4778316617012024, 0.15743909776210785, -0.0421595498919487, 0.239910289645195, 0.5125561952590942, -0.03564014285802841, -0.20272907614707947, 0.29413896799087524, -0.044125817716121674, -0.042940523475408554, -0.3025495111942291, 0.0013319061836227775, 0.6573883891105652, -0.21556907892227173, -0.0438120998442173, -0.6035071611404419, 0.24745076894760132, 0.34704557061195374, -0.1289428025484085, 0.7189614176750183, 0.6234084367752075, -0.23930591344833374, -0.1935594379901886, -0.9523393511772156, 0.030577756464481354, -0.5392314791679382, 0.26355135440826416, -0.4357966184616089, -1.5220433473587036, 0.2711918354034424, -0.08910039812326431, 0.05122492089867592, 0.17189078032970428, 1.170588731765747, -0.2562120258808136, 1.2313979864120483, 0.6692067384719849, -0.3341730535030365, 0.6192870736122131, 0.23224805295467377, 0.3977539539337158, -0.8691921830177307, -0.1542859971523285, -0.6097404956817627, -0.5279048681259155, -0.48052531480789185, -0.06746676564216614, 0.03253129497170448, -0.05118237063288689, -0.678602397441864, 0.04171004518866539, -0.7343934178352356, 0.6541597843170166, 0.5839204788208008, 0.1193157285451889, 0.5474005937576294, 0.021886276081204414, 0.1821194589138031, -0.0839230865240097, -0.23301497101783752, -0.8187986016273499, 1.0320322513580322, 0.5189129114151001, 0.7944222688674927, 0.12748728692531586, 0.621416449546814, 0.35240626335144043, 0.1734338402748108, -1.0644958019256592, 0.5465547442436218, -0.6040626168251038, -0.7083826065063477, -0.3461895287036896, -0.35512682795524597, -0.712983250617981, 0.15543833374977112, -0.3336973190307617, -1.0698634386062622, -0.10760501772165298, 0.295660138130188, -0.5301480889320374, 0.25722455978393555, -0.7795376777648926, 0.42318350076675415, -0.14406096935272217, 0.009356610476970673, -0.3754156231880188, -0.23724760115146637, 0.4211122393608093, -0.15130747854709625, 0.16384902596473694, -0.42375609278678894, -0.15506470203399658, 0.4723929166793823, -0.04653071612119675, 0.9567318558692932, -0.0011815850157290697, -0.01775546185672283, -0.12557964026927948, 0.21141038835048676, 0.46217766404151917, 0.041416626423597336, -0.36971771717071533, 0.05690883472561836, -0.11987611651420593, -0.19245633482933044, -0.46864771842956543, 1.0858412981033325, -0.7310137152671814, -0.872575044631958, -0.18075764179229736, -0.6624753475189209, -0.4387770891189575, 0.29548847675323486, 0.02390328422188759, 0.12974025309085846, -0.29608651995658875, 0.4402918517589569, 0.6889423727989197, -0.7682746052742004, 0.4671265780925751, 0.763031542301178, -0.14581800997257233, -0.14055098593235016, 0.6972169876098633, -0.08879010379314423, 0.07597965747117996, 0.6047331094741821, 0.46176162362098694, -0.03619344159960747, -0.8333073854446411, -0.02833665907382965, 0.1792808175086975, -0.6229274272918701, -0.22342562675476074, -0.848721444606781, 0.08321482688188553, -0.4346469044685364, -0.3712405264377594, -0.25355616211891174, -0.23899932205677032, -0.5535935759544373, 0.004051495343446732, 0.446705162525177, 0.6829633116722107, 0.2737465798854828, 0.5122049450874329, -0.6312254071235657, 0.5904772877693176, 0.3492495119571686, 0.4494169056415558, -0.1015031486749649, -0.6829918026924133, -0.10991831868886948, -0.0330880768597126, -0.3477291166782379, -0.5566266179084778, 0.4571891129016876, 0.24429035186767578, 0.18161532282829285, 0.522233247756958, -0.16171400249004364, 0.45836856961250305, -0.7157249450683594, 0.7335172891616821, 0.20743942260742188, -1.050585389137268, 0.6001547574996948, -0.5862188935279846, 0.5499789118766785, 0.31755807995796204, 0.31417223811149597, -0.6433675289154053, -0.32230186462402344, -0.2332921028137207, -0.4834100008010864, 0.5635843873023987, -0.001267573214136064, 0.5737746357917786, 0.1529233753681183, 0.842041552066803, 0.0023715628776699305, 0.20499210059642792, -0.5764212012290955, -0.1639520674943924, 0.2519339323043823, -0.339195191860199, -0.47344762086868286, -0.42666807770729065, 0.11536415666341782, -0.4509374499320984, 0.3611990213394165, -0.3224611282348633, 0.008679525926709175, 0.09803962707519531, 0.15926489233970642, -0.12051650136709213, 0.6020110249519348, 0.6459256410598755, 0.33086660504341125, -0.3252565860748291, -0.04491405934095383, 0.46471384167671204, 0.05355270206928253, 0.11760333925485611, -0.3628431260585785, -0.24309252202510834, -0.0145860705524683, 0.40675219893455505, 1.0282797813415527, 0.3449583649635315, -0.7358782291412354, 0.3471715748310089, -0.03402957692742348, -0.17750997841358185, -0.23107045888900757, 0.38039523363113403, 0.3651755154132843, 0.4731115996837616, -0.17278027534484863, -0.0010709279449656606, 0.3612370491027832, -0.6623477935791016, -0.2907339632511139, 0.5995904207229614, -0.2566399872303009, -0.41949644684791565, 0.6600513458251953, 0.05007687583565712, -0.5497174859046936, 0.16771864891052246, 0.1285620927810669, -0.24987910687923431, 0.27824342250823975, 0.46582522988319397, 0.9799813032150269, -0.19525651633739471, 0.4119793474674225, 0.22823414206504822, -0.09928387403488159, -0.07731103897094727, 0.052150025963783264, -0.123663991689682, -0.9825300574302673, -0.3784342110157013, -0.8830065131187439, -0.6463783383369446, 0.2266613394021988, -0.3356068432331085, 0.4376702308654785, -0.7938775420188904, -0.1958443820476532, 0.46709302067756653, 0.02931542880833149, -0.7421277761459351, 0.6206774711608887, 0.4413343369960785, 0.5555294156074524, -0.3691043555736542, 0.8048861026763916, 0.6592521667480469, 0.01888570562005043, -0.4747394621372223, -0.31852295994758606, -0.03216657415032387, -0.6272217631340027, 0.8084812760353088, -0.17626091837882996, -0.008297156542539597, -0.21288762986660004, -0.6678435802459717, -0.649989902973175, 0.6995733380317688, 0.4872831404209137, -1.0686943531036377, -0.08597685396671295, 0.25710710883140564, 0.9623400568962097, -0.3634987771511078, 0.27469781041145325, 0.7365692853927612, 0.4182966947555542, 0.12791754305362701, -0.7762753963470459, -0.2188270390033722, 0.2274075150489807, 0.2769486904144287, 0.05279335007071495, -0.7094549536705017, 0.6523102521896362, -0.24875877797603607, 0.16258829832077026, -0.01994255930185318, 0.47762373089790344, 0.15642651915550232, 0.32370537519454956, 0.48019903898239136, 0.5512474775314331, 0.6349254846572876, 0.03297175094485283, 1.1864988803863525, -0.22429734468460083, 0.20981447398662567, 1.3707596063613892, -0.4897838234901428, 1.0048807859420776, 0.1994169056415558, -0.12695454061031342, 0.3757258951663971, 0.5785616040229797, -0.06387171894311905, 0.2748997211456299, 0.2438611090183258, -0.3321867287158966, -0.48755618929862976, -0.18660672008991241, -0.026605620980262756, 0.5196214914321899, 0.08252313733100891, -0.42786693572998047, -0.18052183091640472, 0.17642758786678314, 0.06706704944372177, 0.24505750834941864, -0.3462160527706146, 1.0464328527450562, 0.19715891778469086, -0.3997018337249756, 0.3368545174598694, 0.473549485206604, 1.1460728645324707, -0.3230041265487671, 0.36184602975845337, -0.203179731965065, 0.3444995880126953, -0.45299091935157776, -0.7520453929901123, 0.5007987022399902, 0.2580389976501465, -0.4145458936691284, -0.38828331232070923, 1.0544323921203613, -0.21763908863067627, -0.4427211880683899, 0.28845658898353577, 0.28524017333984375, 0.02369753085076809, -0.4308808743953705, -0.5521161556243896, -0.01136461179703474, 0.11155036091804504, -0.5764527916908264, 0.5207481384277344, 0.22957783937454224, 0.10681059956550598, 0.962753176689148, 0.7724248170852661, 0.2137432098388672, -0.1373588591814041, 0.21493448317050934, 0.8184606432914734, -0.9565395712852478, -0.20897746086120605, -1.1225037574768066, 0.1793813407421112, 0.13948698341846466, -0.3929302394390106, 0.9030182361602783, 0.4561241567134857, 0.7989588379859924, -0.31341972947120667, 0.756249725818634, 0.40762394666671753, 0.8246788382530212, -0.4107888638973236, 0.38111552596092224, -0.6240593194961548, 0.2806691527366638, -0.24606342613697052, -0.9494436979293823, -0.5535122752189636, 0.4608062505722046, -0.6762781739234924, 0.07945531606674194, 0.22795118391513824, 0.5938233733177185, 0.07603680342435837, -0.05959407612681389, 0.821306586265564, 0.4007057249546051, 0.5909791588783264, 0.5513925552368164, 0.7359358668327332, 0.015548100695014, 0.010445661842823029, -0.2723224461078644, -0.06739453971385956, -0.25681719183921814, -0.7733085751533508, -1.2925711870193481, -0.3869418203830719, -0.3918614983558655, 0.03970187529921532, -0.06793263554573059, 0.9660354256629944, 0.7571515440940857, -0.9390068650245667, -0.22587145864963531, 0.03778519481420517, 0.1189940944314003, 0.4339938163757324, -0.2481970638036728, -0.2337048202753067, -0.5034403800964355, -0.837030827999115, 0.3940087556838989, 0.7336477637290955, -0.0896359458565712, -0.33139768242836, 0.010614684782922268, 0.030738329514861107, 0.5169999003410339, 1.0468651056289673, 0.1778353899717331, -0.9187789559364319, -0.5053145885467529, -0.05489842966198921, 0.12380295991897583, 0.1407352238893509, 0.7661870718002319, -0.6738944053649902, 0.41711363196372986, 0.6444348692893982, 0.42277371883392334, 0.5174310803413391, -0.0037943567149341106, 0.5021702647209167, -0.556385338306427, 0.22756242752075195, 0.31616106629371643, 0.2213858962059021, 0.41614630818367004, -0.6457207202911377, 0.2856133282184601, -0.1578996330499649, -0.7990282773971558, -0.8718539476394653, 0.2534879446029663, -1.1057350635528564, -0.383723646402359, 1.2941737174987793, -0.08775704354047775, 0.04706063121557236, -0.12310876697301865, -0.4184470474720001, -0.03015618585050106, -0.4448884427547455, 0.7089068293571472, 0.9399769306182861, -0.2927481234073639, -0.14426492154598236, -0.5791366696357727, 0.38596266508102417, 0.4413664937019348, -1.0075663328170776, -0.16300654411315918, 0.30613717436790466, 0.49739378690719604, -0.013034017756581306, 0.493648886680603, 0.21376919746398926, -0.2316654473543167, -0.639732837677002, 0.03145015612244606, -0.003993109334260225, -0.09617124497890472, -0.6066217422485352, 0.19955387711524963, 0.2828318774700165, 0.3005978763103485 ]
http://arxiv.org/abs/2402.09267v2
http://arxiv.org/pdf/2402.09267v2
Self-Alignment for Factuality: Mitigating Hallucinations in LLMs via Self-Evaluation
2024-02-14T15:52:42
2024-06-11T12:22:14
Xiaoying Zhang, Baolin Peng, Ye Tian, Jingyan Zhou, Lifeng Jin, Linfeng Song, Haitao Mi, Helen Meng
cs.CL
cs.CL, cs.AI
Despite showing increasingly human-like abilities, large language models (LLMs) often struggle with factual inaccuracies, i.e. "hallucinations", even when they hold relevant knowledge. To address these hallucinations, current approaches typically necessitate high-quality human factuality annotations. In this work, we explore Self-Alignment for Factuality, where we leverage the self-evaluation capability of an LLM to provide training signals that steer the model towards factuality. Specifically, we incorporate Self-Eval, a self-evaluation component, to prompt an LLM to validate the factuality of its own generated responses solely based on its internal knowledge. Additionally, we design Self-Knowledge Tuning (SK-Tuning) to augment the LLM's self-evaluation ability by improving the model's confidence estimation and calibration. We then utilize these self-annotated responses to fine-tune the model via Direct Preference Optimization algorithm. We show that the proposed self-alignment approach substantially enhances factual accuracy over Llama family models across three key knowledge-intensive tasks on TruthfulQA and BioGEN.
[ -0.2233683168888092, -0.5788546800613403, 0.8380559682846069, 0.2118133157491684, -0.19973665475845337, 0.1818086951971054, -0.24295976758003235, -0.37558943033218384, 0.43146488070487976, 0.6794238686561584, -0.6457793712615967, -0.510154128074646, -0.42684033513069153, 0.3503012955188751, -0.1608799695968628, 1.2069931030273438, 0.1657203733921051, 0.023780418559908867, -0.3673626184463501, -0.1951865255832672, -0.5927586555480957, -0.6323841214179993, -0.12307016551494598, -0.26637715101242065, 0.6356114149093628, 0.40466344356536865, 0.8008927702903748, 1.0085347890853882, 0.5216154456138611, 0.24387484788894653, 0.28976282477378845, 0.4199168086051941, -0.6316476464271545, 0.2936752140522003, -0.3878646492958069, -0.34544292092323303, -0.4668417274951935, 0.02154788374900818, 0.28885626792907715, 0.3877120912075043, -0.20317788422107697, 0.4375750422477722, 0.05251041799783707, 0.688347578048706, -0.5581929087638855, -0.1302577555179596, -0.681790828704834, 0.2211785912513733, 0.07812351733446121, -0.4361134469509125, -0.21925117075443268, -0.47466039657592773, 0.03878157585859299, -0.49710461497306824, 0.3059374690055847, 0.260513037443161, 0.7628535628318787, 0.9725991487503052, -0.2929346263408661, -0.35314470529556274, -0.7081231474876404, 0.5521867275238037, -0.8443701863288879, 0.4464985728263855, 0.3097724914550781, 0.07491163164377213, -0.19968266785144806, -0.19700247049331665, -0.7315817475318909, -0.38042110204696655, -0.1486385613679886, 0.10044574737548828, 0.16844876110553741, 0.10858996212482452, 0.29300791025161743, 0.2468259483575821, -0.6216170191764832, 0.23305724561214447, -0.29722440242767334, -0.5714046955108643, 0.7247806787490845, 0.21761150658130646, 0.14762364327907562, -0.35702577233314514, -0.5472906827926636, 0.12417560070753098, -0.5146416425704956, -0.3157601058483124, 0.5096895098686218, 0.2968257963657379, 0.14798815548419952, 0.8458505272865295, -0.35511815547943115, 0.605550229549408, 0.536519467830658, -0.4625394344329834, 0.1939791589975357, -0.25044405460357666, -0.11812605708837509, 0.6120926737785339, 0.593355655670166, 0.5405585765838623, 0.08460221439599991, -0.20690536499023438, -0.2614229917526245, 0.2976694107055664, 0.6961467862129211, -0.6316173076629639, -0.16182100772857666, 0.31449639797210693, -0.3348391652107239, -0.5775309801101685, -0.19709829986095428, -0.873557984828949, -0.6808701157569885, -0.6390151977539062, 0.8231402635574341, -0.28588175773620605, -0.035268425941467285, 0.2344236820936203, 0.3203863799571991, 0.1302783340215683, 0.28510040044784546, -1.1113699674606323, 0.08296012133359909, 0.5656709671020508, 0.6590607166290283, -0.3050179183483124, -0.24777072668075562, -0.478450208902359, 0.34364110231399536, -0.4304584562778473, 0.8330768942832947, -0.27674391865730286, -0.1335747241973877, -0.27786341309547424, -0.23758789896965027, -0.08854609727859497, -0.44749975204467773, 0.6564061045646667, -0.2642216086387634, 0.17832091450691223, -0.5222410559654236, -0.5415759682655334, -0.15260222554206848, 0.3503057062625885, -0.3245902359485626, 0.9818229079246521, -0.14358901977539062, -0.7733981013298035, 0.353316068649292, -0.43880221247673035, -0.4360317885875702, -0.09894448518753052, -0.4551636576652527, -0.3610709607601166, 0.29611966013908386, 0.33187609910964966, 0.4577052891254425, 0.12280325591564178, 0.37133729457855225, -0.4167347848415375, -0.3021753430366516, 0.2804182767868042, -0.3886113464832306, 0.31517428159713745, 0.2215842306613922, -0.6356465816497803, 0.24750567972660065, -0.855326235294342, -0.22550086677074432, -0.02942197024822235, -0.13575498759746552, -0.14507587254047394, -0.0401734784245491, -0.6643017530441284, 0.25179553031921387, 0.5423542857170105, -0.43571364879608154, 0.35569605231285095, -0.46209579706192017, -0.05923681706190109, 0.9578352570533752, -0.09341215342283249, 0.08257168531417847, -0.47346481680870056, 0.3432028293609619, -0.01083436980843544, 0.2544058561325073, 0.18457670509815216, -0.10319249331951141, -0.9673101902008057, -0.341549813747406, 0.3043545186519623, 0.474286824464798, -0.4034341871738434, 0.9481396079063416, -0.3084089159965515, -0.34286245703697205, -0.8913426995277405, 0.39049720764160156, 0.2057286947965622, 0.9894682168960571, 0.43935713171958923, -0.20046202838420868, -0.5878972411155701, -1.0848021507263184, -0.10925622284412384, -0.2604750692844391, 0.3120000958442688, 0.0842062383890152, 0.3611046373844147, -0.4463927447795868, 0.9748741984367371, -0.5460589528083801, -0.46835601329803467, 0.15746323764324188, 0.2596680819988251, -0.0539858341217041, 0.40253281593322754, 0.26848116517066956, -0.3873089849948883, -0.04347243160009384, 0.0020343270152807236, -0.9893774390220642, -0.3221418559551239, -0.25787678360939026, -0.20575770735740662, 0.45721927285194397, 0.1753242313861847, -0.6133593320846558, 0.4729861319065094, 0.41108304262161255, -0.25905677676200867, 0.8196317553520203, -0.3494996726512909, 0.26364728808403015, -0.790402352809906, -0.0904545783996582, -0.22969262301921844, -0.2553212642669678, -0.3347059488296509, -0.20708905160427094, -0.04796858876943588, 0.33261120319366455, 0.058248668909072876, 0.3993460536003113, -0.3472364544868469, -0.1468980759382248, -0.4533158540725708, 0.24735821783542633, -0.015827864408493042, 0.4816010296344757, 0.08934184163808823, 0.8122389316558838, 0.4188278615474701, -0.41239190101623535, 0.23556537926197052, 0.34460633993148804, -0.30128756165504456, 0.43712273240089417, -0.19968409836292267, 0.2960889935493469, -0.08027363568544388, -0.01917046122252941, -0.8451569676399231, -0.3377857506275177, 0.4264589250087738, -0.2796201705932617, 0.3006422817707062, 0.0789204090833664, -0.34606704115867615, -0.20552277565002441, -0.3275623023509979, 0.251778781414032, 0.35674673318862915, -0.8287203907966614, 0.7844486236572266, 0.18153560161590576, 0.04658457264304161, -0.7473392486572266, -0.38905444741249084, 0.21645624935626984, -0.35966917872428894, -0.4926915466785431, 0.17324349284172058, -0.30499839782714844, -0.06038207188248634, -0.1522790491580963, -0.4632737338542938, 0.46008458733558655, 0.009806493297219276, 0.3219200670719147, 0.44171833992004395, -0.21863491833209991, 0.3278622329235077, 0.10828980058431625, -0.0489826425909996, 0.26734450459480286, -0.22957928478717804, 0.4032854437828064, -0.16096380352973938, -0.4785122871398926, -0.4263249933719635, -0.11748813837766647, 0.45886361598968506, -0.12393569201231003, 0.5837146639823914, 0.43267926573753357, -0.3371172845363617, -0.033754173666238785, -1.23970627784729, -0.37529054284095764, -0.46832042932510376, 0.12809546291828156, -0.3501811921596527, -0.8708614110946655, 0.363811731338501, -0.05160623416304588, -0.2672237157821655, 0.5106379985809326, 0.8198490142822266, -0.3128461241722107, 1.021767497062683, 0.5012946724891663, -0.04879855737090111, -0.08569170534610748, 0.14979904890060425, 0.36930549144744873, -0.9016666412353516, -0.32586607336997986, -0.21083906292915344, -0.17721650004386902, -0.4634210467338562, -0.3641600012779236, 0.4001026749610901, -0.2594434916973114, -0.1392880082130432, 0.08932889252901077, -0.6634220480918884, 0.46903127431869507, 0.2709783613681793, 0.25453048944473267, 0.4713042378425598, -0.002569566946476698, -0.23699699342250824, -0.2047702670097351, -0.6138884425163269, -0.8253669738769531, 1.0420628786087036, 0.3930123448371887, 0.8761341571807861, -0.09448541700839996, 0.82016521692276, 0.3175760805606842, 0.29498302936553955, -0.640143632888794, 0.4692555069923401, 0.08873938769102097, -0.712395191192627, -0.410999596118927, -0.5154188871383667, -0.4617859423160553, 0.09745646268129349, -0.4977481961250305, -0.7677174210548401, 0.27405789494514465, 0.30119600892066956, -0.7491028308868408, 0.1270250678062439, -0.4266011714935303, 0.7944795489311218, -0.8431141376495361, -0.3775051236152649, -0.4344611167907715, -0.7781025171279907, 0.5415582060813904, -0.3740496337413788, 0.15935567021369934, -0.36083275079727173, 0.09145477414131165, 0.4920384883880615, -0.09820662438869476, 1.0445080995559692, 0.0907844752073288, -0.3343130350112915, -0.017707450315356255, 0.29499056935310364, 0.3183614909648895, 0.12567290663719177, -0.03600151836872101, 0.2824663817882538, 0.1034465804696083, -0.033086325973272324, -0.8687388300895691, 0.7153674364089966, -0.9095191359519958, -1.107956886291504, -0.6462149620056152, -0.48416244983673096, -0.3991067409515381, 0.010815689340233803, 0.1871425211429596, 0.1999332308769226, -0.13938069343566895, -0.13148796558380127, 0.8126291036605835, -0.042871274054050446, 0.06252744793891907, 0.4862792193889618, -0.42223286628723145, -0.522013783454895, 1.080897569656372, 0.21764624118804932, 0.16914191842079163, 0.04703889042139053, 0.4445325434207916, -0.6316620707511902, -0.44682052731513977, -0.4372302293777466, 0.5041984915733337, -0.8094133138656616, -0.4436863660812378, -0.7308036684989929, -0.3395136296749115, -0.6354394555091858, -0.05087267607450485, -0.449817419052124, -0.4547673463821411, -0.445773720741272, -0.31156039237976074, 0.19977450370788574, 0.7273386716842651, -0.32113945484161377, 0.11486738175153732, -0.41992634534835815, 0.5661665201187134, 0.5072461366653442, 0.4083130955696106, -0.20831947028636932, -0.8970522880554199, -0.20473721623420715, 0.05740530788898468, -0.3389105200767517, -0.7878543138504028, 0.27029111981391907, 0.005423908121883869, 0.48454737663269043, 0.5964202880859375, 0.2098129689693451, 0.9415265917778015, -0.37005260586738586, 0.447761207818985, 0.07751559466123581, -0.9939571619033813, 0.612732470035553, -0.09214185178279877, -0.10515061020851135, 0.8341139554977417, 0.34545719623565674, -0.2729155123233795, -0.28293994069099426, -0.39150184392929077, -0.31597694754600525, 0.31628572940826416, 0.2349531203508377, 0.0673418939113617, 0.09286923706531525, 0.7617084383964539, 0.33799099922180176, 0.3051665127277374, -0.8403741717338562, -0.025293879210948944, -0.5697200298309326, -0.5421301126480103, 0.10988552868366241, -0.45035162568092346, -0.5343310832977295, -0.42549464106559753, 0.9074999094009399, -0.5174335837364197, -0.10628002136945724, 0.5509190559387207, -0.12514813244342804, -0.32628968358039856, 0.046395350247621536, 0.6986650228500366, 0.6592386364936829, -0.258165180683136, 0.2606745958328247, 0.3942581117153168, -0.24851594865322113, 0.19631344079971313, -0.12364625930786133, -0.10363283008337021, -0.4017426669597626, 0.274261474609375, 0.7233188152313232, 0.18101397156715393, -0.4718396067619324, 0.4987228512763977, -0.007366088218986988, 0.003908067941665649, -0.1221541315317154, 0.3361574113368988, -0.04329391568899155, 0.3643818199634552, 0.14665673673152924, 0.02137133479118347, 0.2639869749546051, -0.44291970133781433, 0.011764016933739185, 0.5987985134124756, -0.18707433342933655, -0.3102010488510132, 0.6859803199768066, 0.07932599633932114, -0.26601213216781616, 0.42109644412994385, -0.12956535816192627, -0.6699948906898499, 0.2850838303565979, 0.6888757944107056, 0.9729977250099182, -0.2821963429450989, 0.23797301948070526, 0.3494991958141327, 0.4887548089027405, -0.10343756526708603, 0.07047959417104721, -0.0723784863948822, -0.9635180234909058, -0.43410810828208923, -0.8994351029396057, -0.44479185342788696, 0.018856016919016838, -0.5496131181716919, 0.3311906158924103, -0.4347671568393707, -0.1976071447134018, -0.22650958597660065, 0.00645388662815094, -0.4520043730735779, 0.5514893531799316, 0.3055063784122467, 0.4618200659751892, -0.6344067454338074, 0.7695057988166809, 0.27236488461494446, -0.25344786047935486, -0.7465699315071106, 0.243167445063591, -0.04220547899603844, -0.8761945962905884, 0.5756142139434814, 0.29287654161453247, -0.5201901793479919, -0.11448734998703003, -0.6853903532028198, -1.0562264919281006, 1.001094102859497, 0.6850704550743103, -0.7988438010215759, 0.14975914359092712, 0.224342480301857, 0.6632910966873169, -0.5591843724250793, -0.039731673896312714, 0.8077340126037598, 0.558603823184967, 0.13654446601867676, -0.6993551254272461, 0.22815123200416565, 0.15768110752105713, -0.2746817469596863, -0.24132119119167328, -0.8092352747917175, 0.13747626543045044, -0.44846072793006897, -0.10825785994529724, -0.08073323220014572, 1.011912226676941, 0.41152331233024597, 0.22915376722812653, 0.6760965585708618, 0.5821123719215393, 1.0439308881759644, 0.1288987100124359, 0.6240482330322266, -0.6564162373542786, 0.21273435652256012, 1.342688798904419, -0.5625377297401428, 0.4926723539829254, 0.5665349960327148, 0.1774088591337204, 0.5406808853149414, 0.5596586465835571, -0.23946411907672882, 0.349630206823349, 0.06804762035608292, -0.23902124166488647, -0.5943443179130554, -0.07628289610147476, -0.2647600471973419, 0.6672091484069824, 0.17160624265670776, -0.02436642535030842, 0.0901896134018898, -0.14154508709907532, -0.1417875736951828, 0.11475283652544022, -0.04058369994163513, 0.8931676149368286, -0.11573314666748047, -0.771644651889801, 0.41916584968566895, -0.25845006108283997, 0.5000766515731812, -0.46059444546699524, -0.04349001869559288, -0.2746807932853699, -0.22404272854328156, -0.4621465504169464, -0.520849883556366, 0.30966341495513916, -0.06003745272755623, -0.1702391803264618, 0.08842571824789047, 0.838983416557312, -0.41022562980651855, -0.589579701423645, 0.26911652088165283, 0.3346844017505646, 0.14161956310272217, -0.0010998292127624154, -0.5574576258659363, 0.15710920095443726, -0.03534284234046936, -0.09380078315734863, 0.19150596857070923, 0.43914473056793213, 0.179543137550354, 0.7496631145477295, 0.6362324357032776, 0.2431805282831192, 0.09425213187932968, 0.03500626981258392, 0.7466404438018799, -0.8073937892913818, -0.240667924284935, -0.9815416932106018, 0.21226507425308228, 0.02383585274219513, -0.29303380846977234, 0.761725902557373, 0.6126564741134644, 0.5621360540390015, -0.10029654949903488, 0.7300147414207458, 0.2966606020927429, 0.43943488597869873, -0.6319188475608826, 0.7409195303916931, -0.4985116124153137, 0.30071181058883667, -0.09942683577537537, -0.906679630279541, -0.21960772573947906, 0.9222854971885681, -0.3158711791038513, -0.0628700777888298, 0.5645663142204285, 0.9888202548027039, 0.13801658153533936, 0.11017420887947083, 0.5789783596992493, 0.5802161693572998, 0.01960611343383789, -0.016346078366041183, 0.9680122137069702, -0.03989998623728752, 0.281745046377182, -0.4626009464263916, -0.18142053484916687, -0.1885773092508316, -1.084622859954834, -0.9974520206451416, -0.3203619718551636, -0.5290403962135315, -0.37705138325691223, 0.13060715794563293, 1.2906675338745117, 0.6137666702270508, -0.7470601201057434, -0.21467499434947968, 0.3149396479129791, 0.15436656773090363, 0.06256286799907684, -0.14188727736473083, 0.37536805868148804, -0.7116551995277405, -0.3114166259765625, 0.5493179559707642, 0.6550548076629639, 0.17935441434383392, -0.6151212453842163, -0.003412233665585518, 0.01749959960579872, 0.3822799623012543, 0.38054677844047546, 0.05142796039581299, -0.9596816301345825, -0.7889574766159058, -0.018455855548381805, -0.18806728720664978, 0.43177613615989685, 0.5776728987693787, -0.8746470212936401, 0.6779490113258362, -0.13885337114334106, 0.6363582611083984, 0.3328808844089508, 0.3180053234100342, 0.4176592230796814, -0.5311569571495056, -0.35610833764076233, 0.14075212180614471, 0.21247225999832153, 0.5609554648399353, -0.9662684798240662, 0.5997039675712585, 0.2094414234161377, -0.8557060956954956, -0.889941394329071, -0.031042270362377167, -1.0553972721099854, -0.03319716826081276, 1.0331778526306152, 0.29371699690818787, -0.287262499332428, -0.024980181828141212, -0.4457591474056244, 0.4076436758041382, -0.01918364129960537, 1.6330329179763794, 0.821914553642273, -0.34799957275390625, 0.19268415868282318, -0.37991490960121155, 0.688350260257721, 0.6707385778427124, -0.8066684007644653, 0.175247460603714, 0.47832778096199036, 0.45276689529418945, 0.2642669677734375, 0.3037254214286804, 0.11867251247167587, 0.10944752395153046, -0.41757503151893616, 0.4235977232456207, 0.08425731211900711, -0.5911622047424316, -0.527472972869873, -0.06251996010541916, 0.0432136133313179, 0.10735183209180832 ]
http://arxiv.org/abs/2402.09259v2
http://arxiv.org/pdf/2402.09259v2
SyntaxShap: Syntax-aware Explainability Method for Text Generation
2024-02-14T15:45:56
2024-06-03T10:30:00
Kenza Amara, Rita Sevastjanova, Mennatallah El-Assady
cs.CL
cs.CL, cs.AI
To harness the power of large language models in safety-critical domains, we need to ensure the explainability of their predictions. However, despite the significant attention to model interpretability, there remains an unexplored domain in explaining sequence-to-sequence tasks using methods tailored for textual data. This paper introduces SyntaxShap, a local, model-agnostic explainability method for text generation that takes into consideration the syntax in the text data. The presented work extends Shapley values to account for parsing-based syntactic dependencies. Taking a game theoric approach, SyntaxShap only considers coalitions constraint by the dependency tree. We adopt a model-based evaluation to compare SyntaxShap and its weighted form to state-of-the-art explainability methods adapted to text generation tasks, using diverse metrics including faithfulness, coherency, and semantic alignment of the explanations to the model. We show that our syntax-aware method produces explanations that help build more faithful and coherent explanations for predictions by autoregressive models. Confronted with the misalignment of human and AI model reasoning, this paper also highlights the need for cautious evaluation strategies in explainable AI.
[ -0.023081310093402863, -0.7555115222930908, 0.6743901371955872, 0.5103511214256287, -0.15482288599014282, -0.010450907982885838, -0.04586971923708916, -0.24709907174110413, -0.0028975962195545435, 0.46065983176231384, -0.5060255527496338, -0.47105902433395386, -0.3484785258769989, -0.04148994758725166, -0.5948502421379089, 0.870918869972229, -0.2952580153942108, -0.25933414697647095, -0.6166715025901794, -0.028382577002048492, -0.5112667083740234, -0.7081334590911865, -0.44747743010520935, -0.2479798048734665, -0.10817791521549225, 0.2921784818172455, 0.9867286682128906, 1.0418648719787598, 0.36646342277526855, 0.3781307339668274, -0.015771623700857162, -0.11792197078466415, -0.21542954444885254, 0.4102981388568878, -0.21269214153289795, -0.4294717609882355, -0.2970203161239624, -0.28483274579048157, 0.4304213225841522, 0.6851862668991089, -0.5997920036315918, -0.08108720928430557, -0.06017465889453888, 0.5527123212814331, -0.5688060522079468, 0.2714734971523285, -0.7714478373527527, 0.02990737371146679, -0.040016740560531616, -0.13255536556243896, -0.4634321928024292, -0.19268928468227386, -0.06665835529565811, -0.543515682220459, 0.46888017654418945, 0.11835180222988129, 0.8496299386024475, 0.2331879884004593, -0.14521563053131104, -0.08300817757844925, -0.5630983114242554, 0.6285863518714905, -0.709889829158783, 0.25619491934776306, 0.2843264937400818, 0.45859113335609436, -0.05561280623078346, -0.6605201959609985, -0.7125157713890076, -0.025742771103978157, -0.033884916454553604, 0.13756272196769714, -0.09598864614963531, 0.21249759197235107, 0.14483895897865295, 0.2897785007953644, -0.6421657204627991, -0.13373629748821259, 0.1737244874238968, -0.12884382903575897, 0.7272583246231079, 0.3388913571834564, 0.47825005650520325, -0.5850240588188171, -0.6965269446372986, 0.13095618784427643, -0.5940839052200317, 0.27516254782676697, 0.2776576578617096, 0.12301985919475555, -0.30922842025756836, 0.3610575795173645, -0.09061740338802338, 0.8524402976036072, 0.09912586212158203, 0.2688787579536438, -0.3727252781391144, -0.6477789282798767, -0.3476376533508301, -0.0498429536819458, 0.8180375099182129, 0.2658139169216156, 0.20578233897686005, -0.37345629930496216, 0.020292852073907852, 0.012747760862112045, 0.2692156136035919, -0.8547680974006653, -0.275789350271225, 0.48422256112098694, -0.7434180378913879, -0.615617036819458, -0.18452088534832, -0.815967857837677, -0.5416585803031921, -0.0869099348783493, 0.29601556062698364, -0.7302698493003845, -0.36598002910614014, 0.17448274791240692, -0.1971781998872757, 0.23861505091190338, 0.17833848297595978, -1.2552731037139893, 0.2613135874271393, 0.6950520277023315, 0.8472732901573181, -0.07147615402936935, -0.4638996720314026, -0.18560852110385895, 0.368602454662323, -0.3391009271144867, 0.7447227835655212, -0.35170963406562805, -0.22937679290771484, -0.08559942245483398, -0.29338598251342773, -0.22438505291938782, -0.5226883888244629, 0.3017235994338989, -0.10638546943664551, 0.1767706573009491, -0.2907196581363678, -0.6673784852027893, -0.220750629901886, -0.06940105557441711, -0.4290374517440796, 0.5489267706871033, 0.1516530066728592, -0.6697134971618652, 0.565542995929718, -0.5243912935256958, -0.6171762943267822, 0.15241003036499023, -0.29439613223075867, -0.43846195936203003, 0.06599733233451843, 0.30061814188957214, 0.49146854877471924, -0.2818329334259033, 0.7963079214096069, -0.3690464496612549, -0.058852337300777435, 0.15819525718688965, -0.4072332978248596, 0.9630544781684875, 0.16964754462242126, -0.4084305763244629, 0.2978633642196655, -0.5641021132469177, 0.28596076369285583, 0.3896828591823578, 0.08062440156936646, -0.06424663960933685, 0.4540289342403412, -0.0970001369714737, 0.23270322382450104, 0.19108301401138306, -0.05466185882687569, -0.07143910974264145, -0.5223067998886108, 0.7218274474143982, 0.6961036324501038, 0.14632882177829742, 0.49661436676979065, -0.3067655861377716, 0.7391693592071533, -0.08943361043930054, 0.3473201394081116, -0.45943355560302734, -0.3944832980632782, -0.6143136620521545, -0.0808088555932045, 0.11330422013998032, 0.3915867805480957, -0.6694621443748474, 0.5074850916862488, -0.1338198482990265, -0.34147727489471436, -0.165281280875206, -0.03674769401550293, 0.5577834844589233, 0.47763457894325256, 0.2525976896286011, -0.13291330635547638, -0.6333360075950623, -0.9084279537200928, -0.6345914602279663, -0.5068098306655884, 0.3271328806877136, 0.2123846411705017, 0.3940366208553314, 0.16271699965000153, 1.0643264055252075, -0.22956672310829163, 0.2735515236854553, -0.48108285665512085, 0.15399858355522156, -0.145955890417099, 0.38428348302841187, 0.5254709720611572, -0.741463840007782, -0.25908157229423523, -0.31826111674308777, -0.7575643062591553, -0.13428907096385956, -0.4156363308429718, -0.28303128480911255, 0.0008475030190311372, 0.46512433886528015, -0.6407060027122498, 0.13571694493293762, 0.5236303806304932, -0.6586352586746216, 0.5498853921890259, -0.0682319849729538, 0.09910635650157928, -1.167140007019043, 0.02507174201309681, -0.3653623163700104, -0.5553182363510132, -0.48730000853538513, 0.5353060364723206, -0.13537883758544922, -0.3492315411567688, -0.1671282798051834, 0.4703613221645355, -0.24653784930706024, 0.030061587691307068, 0.028913144022226334, 0.04756567254662514, 0.3518560826778412, 0.18462298810482025, 0.060017965734004974, 0.7263324856758118, 0.43582725524902344, -0.3992287218570709, 0.21092653274536133, 0.4766843914985657, -0.18796981871128082, 0.3735649883747101, -0.7620645761489868, -0.3338358998298645, 0.04819600656628609, 0.1788976490497589, -0.8117635846138, -0.33938267827033997, 0.012317730113863945, -0.47962865233421326, 0.06324545294046402, -0.37886130809783936, -0.3893255591392517, 0.030070390552282333, 0.004129475448280573, 0.34968510270118713, 0.5784393548965454, -0.6572152376174927, 0.3877706527709961, 0.3041040599346161, -0.25114548206329346, -0.3945975601673126, -0.3565709590911865, 0.2218143790960312, -0.4824683368206024, -0.9411813020706177, 0.391571044921875, 0.031057678163051605, -0.5320447087287903, -0.21029525995254517, -0.1226227656006813, -0.42214465141296387, 0.4996365010738373, 0.4683551788330078, 0.07921040803194046, -0.2559371292591095, 0.2102450728416443, 0.09140913188457489, -0.09789331257343292, 0.5516732335090637, -0.20150445401668549, 0.4557684659957886, -0.14443868398666382, -0.26115497946739197, -0.05387759208679199, 0.3954881429672241, 0.17205920815467834, -0.3118400275707245, 0.7066571116447449, 0.23963838815689087, -0.29492855072021484, -0.6000902652740479, 0.009131846018135548, 0.049503691494464874, -0.4635836184024811, 0.30725905299186707, -0.1757725030183792, -0.42273539304733276, 0.5626167058944702, -0.05789893865585327, -0.1673683226108551, 0.6970135569572449, 0.4013749361038208, -0.026558199897408485, 1.060241460800171, 0.5391556024551392, 0.18721291422843933, 0.38677436113357544, -0.044582292437553406, 0.16107769310474396, -0.11492736637592316, -0.08852454274892807, -0.5162999629974365, 0.18829010426998138, -0.19881480932235718, -0.4669148623943329, 0.03601055219769478, 0.4870510399341583, -0.0897851288318634, 0.3812847435474396, -0.4681730568408966, 0.6093680262565613, 0.2970525920391083, -0.0811861976981163, 0.24366708099842072, -0.15708911418914795, 0.03537610173225403, -0.03541826084256172, -0.9086333513259888, -0.36536428332328796, 0.6768611073493958, 0.05466987565159798, 0.3859443664550781, 0.26626452803611755, 0.8951950073242188, 0.27222445607185364, -0.1614302545785904, -0.3897271752357483, 0.44626620411872864, -0.10639389604330063, -0.4618886411190033, -0.3060985207557678, -0.45614323019981384, -0.8565031290054321, 0.13660115003585815, -0.3317899703979492, -0.7074633836746216, -0.04334694519639015, 0.3671058118343353, -0.48969078063964844, 0.022175725549459457, -0.7932884693145752, 1.2653765678405762, -0.3448432385921478, -0.20534054934978485, -0.2730179727077484, -0.5487487316131592, 0.5557537078857422, 0.26646456122398376, 0.23492443561553955, -0.06867772340774536, 0.10240817815065384, 0.7471171021461487, -0.9258111119270325, 0.6971843242645264, -0.2779504060745239, -0.09256695210933685, 0.3309507966041565, 0.39778533577919006, 0.42562565207481384, 0.080268494784832, 0.06019827350974083, 0.17283137142658234, 0.21319450438022614, -0.3574898838996887, -0.7902199625968933, 0.6327413320541382, -0.32648584246635437, -0.5278319716453552, -0.12958240509033203, -0.5952382683753967, -0.2526440918445587, 0.13324613869190216, 0.4416999816894531, 0.5346025824546814, -0.22549869120121002, -0.18207751214504242, 0.5395889282226562, -0.35952383279800415, 0.4898884892463684, 0.16197825968265533, -0.48992305994033813, -0.20763415098190308, 1.0920631885528564, -0.21710936725139618, 0.3610538840293884, 0.35860493779182434, 0.3171788454055786, -0.24327506124973297, -0.6877198815345764, -0.6794812083244324, -0.19925232231616974, -0.6547510027885437, -0.17524373531341553, -0.3885451555252075, -0.32200267910957336, -0.11460801213979721, -0.5935595035552979, -0.21365250647068024, -0.8803732991218567, 0.19190607964992523, -0.08729995042085648, 0.42821094393730164, 0.6716844439506531, 0.16345538198947906, 0.41018185019493103, -0.530073881149292, 0.4422104060649872, 0.1541460007429123, 0.4989587366580963, 0.02556736022233963, -0.3009175658226013, -0.19653978943824768, -0.05855134502053261, -0.21571795642375946, -1.093318223953247, 0.2825722098350525, 0.23739111423492432, 0.34844648838043213, 0.3786959946155548, 0.011917315423488617, 0.6400609612464905, -0.38489195704460144, 0.8803852796554565, 0.13252073526382446, -1.4155083894729614, 0.7869398593902588, -0.621936023235321, 0.12708333134651184, 0.4363854229450226, -0.12585124373435974, -0.2830493152141571, -0.5345646739006042, -1.0804288387298584, -0.9430747628211975, 0.4086449146270752, 0.4210442006587982, -0.0350397527217865, -0.004978106822818518, 0.5022064447402954, 0.32600629329681396, 0.12983250617980957, -0.7030766606330872, -0.18112127482891083, -0.27315014600753784, -0.40212950110435486, 0.023358864709734917, -0.20148974657058716, -0.09207630157470703, 0.15450651943683624, 0.528598964214325, -0.04565014690160751, 0.257121741771698, 0.012293464504182339, -0.31101861596107483, -0.06805973500013351, 0.3549681305885315, 0.45300039649009705, 0.8451815247535706, 0.004508877173066139, 0.11263594776391983, -0.23624539375305176, -0.2207406610250473, 0.11574476212263107, 0.41828614473342896, -0.33377718925476074, 0.11627940088510513, 0.758599579334259, 0.5971514582633972, 0.13288025557994843, -0.618326723575592, 0.8702040314674377, -0.033460583537817, -0.05964345484972, -0.09899118542671204, 0.35101309418678284, 0.13662531971931458, 0.09986317902803421, -0.08520220965147018, 0.17997783422470093, 0.3379228413105011, -0.1983446329832077, 0.21703718602657318, 0.6163331270217896, -0.32571539282798767, -0.24469316005706787, 1.0377148389816284, 0.3999115824699402, -0.18204660713672638, 0.16544751822948456, -0.1619955152273178, -0.378422349691391, 1.0316429138183594, 0.5965696573257446, 0.8854127526283264, -0.14109459519386292, 0.548994779586792, 0.3366096615791321, 0.20814236998558044, 0.0878305733203888, 0.5369991660118103, -0.27304351329803467, -0.6148958206176758, -0.48556646704673767, -0.42804190516471863, -0.3523101806640625, -0.08093426376581192, -0.6895210146903992, 0.0015884953318163753, -0.6324619650840759, 0.1252552568912506, 0.3716546297073364, -0.4107186198234558, -0.33190616965293884, 0.11647243797779083, -0.15498673915863037, 0.7412609457969666, -0.8823971152305603, 0.3239196538925171, 0.29695016145706177, -0.5781248807907104, -0.7504944205284119, 0.2945363521575928, -0.09172181785106659, -1.0465540885925293, 0.05481597036123276, 0.11849850416183472, 0.04119102656841278, -0.12832927703857422, -0.6646488904953003, -0.6187180876731873, 0.8332425951957703, 0.6792279481887817, -0.32913312315940857, -0.04581575468182564, 0.12273761630058289, 0.47119277715682983, -0.02017505094408989, 0.03960632160305977, 0.3124232888221741, 0.3908017873764038, -0.423568993806839, -0.6440762281417847, 0.392976313829422, -0.06923019886016846, 0.03598540276288986, 0.37190893292427063, -0.43641334772109985, 0.4855579733848572, -0.5708301663398743, -0.27935782074928284, 0.28057485818862915, 0.5596249103546143, 0.217206671833992, 0.21588517725467682, 0.4609895348548889, 0.31303536891937256, 0.66515052318573, -0.12120192497968674, 1.284995198249817, -0.3812069594860077, 0.23771996796131134, 1.1925724744796753, 0.1006273403763771, 0.7592331171035767, 0.3901037871837616, -0.2668776512145996, 0.876753032207489, 0.5315391421318054, 0.1001574918627739, 0.2793424129486084, 0.14952097833156586, -0.12249218672513962, -0.5718554258346558, -0.054417286068201065, -0.2895084619522095, 0.642449140548706, 0.061153046786785126, -0.6543937921524048, -0.3355070948600769, -0.36789095401763916, 0.06938324123620987, 0.3938729763031006, -0.1398620456457138, 0.7748715281486511, -0.06268974393606186, -0.7172561883926392, 0.5890776515007019, 0.17691421508789062, -0.023441750556230545, -0.5602391362190247, -0.2254871279001236, -0.09983862191438675, 0.08117655664682388, -0.16082608699798584, -0.8325605392456055, 0.3602454960346222, -0.10496972501277924, -0.5080835819244385, -0.35757774114608765, 0.663912296295166, -0.5239829421043396, -0.2985983192920685, 0.04860737919807434, 0.5887966156005859, -0.051787152886390686, -0.1385517120361328, -0.8562024235725403, -0.38273513317108154, 0.040548067539930344, 0.10325105488300323, 0.18932898342609406, 0.4370381832122803, -0.18285484611988068, 0.6924105882644653, 0.3412058651447296, -0.05078372731804848, -0.24801108241081238, -0.043937768787145615, 0.3350863754749298, -0.7032222747802734, -0.7156240344047546, -1.0201596021652222, 0.4734691381454468, -0.0019832493271678686, -0.25673121213912964, 0.7184158563613892, 0.4950815439224243, 0.19787150621414185, 0.08231929689645767, 0.9926857948303223, -0.23605148494243622, 0.19731181859970093, -0.7503753304481506, 0.8967151045799255, -0.19353534281253815, 0.13814948499202728, -0.17591631412506104, -0.5345056056976318, -0.02579999901354313, 0.5391306281089783, 0.04087704047560692, 0.1515820473432541, 0.7553814649581909, 0.34030935168266296, -0.07644878327846527, 0.16333894431591034, 0.10482499748468399, 0.4190879166126251, 0.0960068553686142, 0.48556163907051086, 0.7404398918151855, -0.15553969144821167, 0.5908884406089783, -0.28147631883621216, -0.07029587030410767, 0.10118411481380463, -1.1621336936950684, -0.6397431492805481, -0.8073097467422485, -0.2698042690753937, -0.5699824094772339, 0.2048102468252182, 0.4026806056499481, 0.8071735501289368, -0.6241270303726196, -0.07603292167186737, -0.6310098171234131, 0.45990848541259766, -0.49821966886520386, -0.30498185753822327, 0.308657169342041, -0.4530414044857025, -0.08017478883266449, 0.4274723529815674, 0.21372155845165253, -0.0762789398431778, -0.2590893805027008, -0.08147627860307693, 0.16663464903831482, 0.22725927829742432, 0.23235061764717102, 0.26448750495910645, -0.7782478928565979, -0.20322997868061066, -0.39450159668922424, 0.18340791761875153, 0.02140127308666706, 0.8278458118438721, -0.7517741918563843, 0.6539626717567444, 0.41652342677116394, 0.3141462802886963, 0.12607625126838684, 0.21078699827194214, 1.1346449851989746, -0.8257881999015808, 0.0058038546703755856, 0.02671290747821331, 0.5010611414909363, 0.44998490810394287, -0.4847009479999542, 0.4149397015571594, 0.15026001632213593, -0.4885307848453522, -0.6616837382316589, 0.4459419846534729, -0.8306242823600769, -0.3064623475074768, 1.1016325950622559, -0.2742384672164917, -0.026427844539284706, -0.15338227152824402, -0.019502514973282814, 0.08892221003770828, -0.16521675884723663, 0.7993255257606506, 0.610746443271637, -0.14991655945777893, -0.08804716914892197, -0.3250510096549988, 0.9460318684577942, 0.5078933835029602, -1.1802936792373657, 0.7024499773979187, 0.4880732595920563, 0.19395717978477478, -0.2072976678609848, 0.5327017307281494, 0.07044418901205063, 0.5161679983139038, 0.29900142550468445, 0.11158451437950134, -0.15470373630523682, -0.21675676107406616, -0.4416530430316925, 0.05303589254617691, 0.12723030149936676, 0.04107999801635742 ]
http://arxiv.org/abs/2402.09221v1
http://arxiv.org/pdf/2402.09221v1
Spectral Filters, Dark Signals, and Attention Sinks
2024-02-14T15:01:07
2024-02-14T15:01:07
Nicola Cancedda
cs.AI
cs.AI, cs.CL
Projecting intermediate representations onto the vocabulary is an increasingly popular interpretation tool for transformer-based LLMs, also known as the logit lens. We propose a quantitative extension to this approach and define spectral filters on intermediate representations based on partitioning the singular vectors of the vocabulary embedding and unembedding matrices into bands. We find that the signals exchanged in the tail end of the spectrum are responsible for attention sinking (Xiao et al. 2023), of which we provide an explanation. We find that the loss of pretrained models can be kept low despite suppressing sizable parts of the embedding spectrum in a layer-dependent way, as long as attention sinking is preserved. Finally, we discover that the representation of tokens that draw attention from many tokens have large projections on the tail end of the spectrum.
[ -0.700437068939209, -0.23981371521949768, 0.6188283562660217, -0.08869297802448273, -0.5302019119262695, 0.2967331111431122, -0.08712050318717957, -0.4021194875240326, 0.5159925818443298, 0.852184534072876, -0.5969133377075195, -0.4778675436973572, -0.6142473816871643, -0.2970118522644043, -0.8190754055976868, 1.103434681892395, 0.3343757092952728, 0.15472513437271118, 0.1535354107618332, -0.03158300369977951, -0.3052595555782318, -0.27882540225982666, -0.7139431834220886, -0.38817721605300903, 1.0739282369613647, 0.2341216802597046, 0.8528348803520203, 0.3665612041950226, 0.8289496898651123, 0.16698653995990753, -0.1592561900615692, -0.09974478930234909, -0.8770902752876282, -0.07740870118141174, -0.20695510506629944, -1.042343020439148, -0.12170565873384476, 0.013173876330256462, 0.8356574177742004, 1.0158402919769287, 0.014195083640515804, 0.3689509332180023, 0.27431628108024597, 0.7538395524024963, -0.6182530522346497, -0.1523706018924713, -0.7663121819496155, 0.22279831767082214, -0.32385700941085815, -0.352286696434021, -0.7501031160354614, 0.38726815581321716, -0.013394216075539589, -0.3625407814979553, 0.324294775724411, 0.15797095000743866, 1.0023759603500366, 0.6330278515815735, -0.658187985420227, 0.055557359009981155, -1.0174015760421753, 0.786384642124176, -0.38128992915153503, 0.6346964836120605, 0.26791736483573914, 0.4178168475627899, 0.17495030164718628, -0.9487869739532471, -0.2414766550064087, 0.08977826684713364, -0.3491596579551697, 0.5641489624977112, -0.17747966945171356, 0.477463960647583, -0.009089956060051918, 0.30184048414230347, -0.23234818875789642, 0.042716071009635925, -0.6982057690620422, -0.17352735996246338, 0.3140481114387512, 0.229648157954216, -0.07459151744842529, -0.07235155254602432, -0.4842106103897095, 0.12799182534217834, -0.9211670160293579, -0.4070557653903961, 0.42627865076065063, -0.009207509458065033, -0.02537512592971325, 0.6467083096504211, 0.4824688136577606, 0.7553916573524475, 0.3181043565273285, 0.3088570535182953, -0.21116453409194946, -0.042670950293540955, -0.3899402320384979, -0.03180209547281265, 0.18472857773303986, 0.5621684193611145, 0.13847750425338745, -0.3388407230377197, -0.2290520817041397, 0.410279780626297, 0.48752152919769287, -0.4066821336746216, -0.44879382848739624, 0.0739469900727272, -0.5967106819152832, -0.20989227294921875, -0.22673235833644867, -0.736400306224823, -0.08641451597213745, -0.387192040681839, 0.478322833776474, 0.027250388637185097, -0.13952943682670593, 0.17141690850257874, 0.05431085079908371, 0.42729178071022034, -0.04712323471903801, -0.856941819190979, 0.4782096743583679, 0.603600025177002, 0.7379923462867737, -0.19947437942028046, 0.15891721844673157, -0.15343455970287323, 0.41225042939186096, -0.4807979166507721, 0.8247058391571045, -0.7228710651397705, -0.3993402123451233, 0.08352693915367126, 0.046334411948919296, -0.13235701620578766, -0.49035754799842834, 0.6161893606185913, -1.1267083883285522, 0.018328597769141197, 0.04799332097172737, -0.546061098575592, -0.3113940358161926, -0.165290966629982, -0.8053466081619263, 0.9729229211807251, 0.15933118760585785, -0.5197581052780151, 0.16898129880428314, -0.34034085273742676, 0.08976420015096664, 0.19495539367198944, -0.21409855782985687, -0.245841845870018, 0.3792232871055603, -0.008991762064397335, 0.4438617527484894, -0.12367835640907288, -0.19299398362636566, -0.36679187417030334, -0.5496231317520142, 0.3264624774456024, -0.1871684044599533, 0.47951605916023254, 0.25925570726394653, -0.12389542162418365, -0.036593370139598846, -0.7679554224014282, -0.34374716877937317, -0.2492491900920868, -0.149020716547966, -0.34734082221984863, 0.2627709209918976, 0.24469242990016937, -0.05389365553855896, -0.09812361747026443, -0.5705562829971313, -0.30614548921585083, -0.3849039375782013, 0.44297343492507935, 1.0780000686645508, 0.33468374609947205, 0.6693387627601624, 0.10281889885663986, 0.5217403173446655, 0.3991874158382416, 0.28036877512931824, -0.2904241681098938, -0.4322100877761841, -1.342907428741455, -0.08032997697591782, 0.1331915408372879, 0.08527948707342148, -0.6079037189483643, 0.05085139349102974, -0.36280402541160583, -0.3309180736541748, -0.5182892680168152, -0.014492744579911232, 0.1490606814622879, 0.4346819818019867, 0.15656669437885284, -0.23827748000621796, -0.4675905406475067, -1.2124454975128174, -0.2544836103916168, -0.1369173228740692, 0.09763094037771225, 0.14961376786231995, 0.2756343483924866, -0.22815199196338654, 0.8577998280525208, -0.8489086031913757, -0.5483716726303101, 0.0997857004404068, -0.32346898317337036, 0.6385984420776367, 0.3590371906757355, 0.6930732131004333, -1.0766981840133667, -0.327934205532074, -0.2687093913555145, -0.41647300124168396, 0.05033000186085701, -0.20704038441181183, -0.65891033411026, -0.32415828108787537, 0.7372408509254456, -0.5225440263748169, 0.25322583317756653, 0.5400784015655518, -0.6973398923873901, 0.2570815086364746, 0.28033068776130676, -0.336212158203125, -0.694423258304596, -0.07741781324148178, 0.14454346895217896, -0.47308349609375, -0.804529070854187, 0.21842075884342194, -0.0503646619617939, -0.024336235597729683, -0.4912799894809723, 0.3571908473968506, -0.5775835514068604, -0.23911328613758087, -0.12450329959392548, 0.3720710277557373, 0.05657142400741577, 0.7554657459259033, -0.2520076632499695, 0.2089899629354477, 0.4084729254245758, -0.6169817447662354, 0.2423439919948578, -0.02183258719742298, -0.21864821016788483, 0.6609675288200378, -0.5374935269355774, 0.2478579878807068, -0.4671827256679535, 0.06228642538189888, -1.7086362838745117, 0.0663982629776001, 0.2727459967136383, -0.3643311560153961, 0.5129814743995667, -0.48367270827293396, -0.2901389002799988, -0.40625783801078796, -0.2566158175468445, 0.3081303834915161, 0.712136447429657, -0.5363266468048096, 0.8670939803123474, 0.4920690357685089, 0.20375315845012665, -0.47321435809135437, -1.186131477355957, 0.09430648386478424, -0.48134106397628784, -0.4850232005119324, 0.4209962487220764, 0.1917034536600113, -0.22328977286815643, 0.520255982875824, -0.07029334455728531, 0.08199609071016312, -0.09854274988174438, 0.13760000467300415, 0.5960671305656433, -0.38045668601989746, 0.22665780782699585, 0.023999545723199844, -0.13848748803138733, 0.4277459383010864, -0.6622924208641052, 0.38855862617492676, 0.3475548326969147, -0.5958073735237122, 0.07752558588981628, 0.286944180727005, 0.5304928421974182, -0.11164400726556778, 0.35992830991744995, 0.8079113960266113, -0.20463316142559052, -0.2874126732349396, -0.6411210298538208, -0.43209308385849, -0.5331535935401917, 0.4144164025783539, -0.2840593159198761, -0.6919876933097839, 0.944125771522522, 0.18547244369983673, 0.08105320483446121, 0.6229668259620667, 0.4211861789226532, -0.437610924243927, 0.9451155066490173, 0.6166117191314697, 0.2589460015296936, 0.7073156833648682, -0.6082167625427246, 0.29464685916900635, -1.2568403482437134, -0.19520924985408783, -0.2422422170639038, -0.904335618019104, -0.5297985076904297, -0.4778243601322174, 0.4030880033969879, -0.03249582648277283, -0.2623217701911926, -0.2780923545360565, -0.7476342916488647, 0.6454470753669739, 0.3997412323951721, 0.5686447620391846, 0.107619509100914, 0.0900365337729454, 0.019514894112944603, -0.26539722084999084, -0.5496150255203247, -0.26547086238861084, 1.2647442817687988, 0.534435510635376, 0.8451551198959351, 0.052544426172971725, 0.7320008873939514, 0.2845521867275238, 0.4619581699371338, -0.8469855785369873, 0.7235696911811829, -0.3354729115962982, -0.9724852442741394, -0.08238264918327332, 0.0772596225142479, -0.8951286673545837, 0.5689301490783691, 0.3000865578651428, -0.6950021982192993, 0.9167079925537109, 0.07231709361076355, -0.2479284703731537, 0.3999459445476532, -0.7242836952209473, 0.5094771981239319, 0.16157039999961853, -0.49086445569992065, -0.45023611187934875, -0.6446343064308167, 0.5973233580589294, -0.22437134385108948, 0.11297573894262314, -0.2752966284751892, -0.4820407032966614, 1.1365063190460205, -0.24352221190929413, 1.3985366821289062, -0.5472681522369385, -0.08756736665964127, 0.5825400352478027, 0.03280598297715187, 0.5669621229171753, -0.18234674632549286, 0.3576872646808624, -0.11654645204544067, -0.25454822182655334, -0.5714616179466248, -0.6549432873725891, 0.5620948672294617, -0.6898661851882935, -0.7723568081855774, -0.15985998511314392, -0.1864103227853775, -0.21118074655532837, -0.014436186291277409, 0.16274306178092957, 0.2629207372665405, 0.3696182370185852, 0.16958516836166382, 0.772271990776062, 0.34427642822265625, 0.5590285658836365, 0.3705608546733856, -0.7297537326812744, -0.2551654279232025, 0.8223364353179932, 0.4281870424747467, 0.4083593487739563, 0.20833313465118408, -0.09289797395467758, -0.3064374327659607, -0.7807592153549194, -0.235237255692482, 0.40190503001213074, -1.2810100317001343, -0.11522775143384933, -0.34778618812561035, -0.14123228192329407, 0.1981266736984253, -0.05666997283697128, -0.1622162163257599, -0.41028329730033875, -0.3400362432003021, -0.24356397986412048, 0.3370991051197052, 0.6481415629386902, -0.11656589806079865, 0.7470507621765137, -0.500304639339447, 0.27524587512016296, 0.2450263351202011, 0.26848453283309937, 0.33025723695755005, -0.8873500227928162, -0.868689775466919, -0.30590134859085083, -0.10251616686582565, -0.934248685836792, 0.2509942948818207, 0.468433678150177, 0.5634648203849792, 0.5920292139053345, -0.04019546881318092, 0.786993145942688, -0.4197671413421631, 0.8583372235298157, 0.42052313685417175, -0.7796024084091187, 0.226870596408844, -0.22449076175689697, 0.1498337686061859, 0.38891834020614624, 0.27850979566574097, -0.6607319712638855, -0.8112098574638367, -0.4294340908527374, -1.024949312210083, 0.8024587631225586, -0.11036287993192673, 0.5623812675476074, 0.06490698456764221, 0.5207716226577759, -0.10713662952184677, -0.012633781880140305, -0.7682068943977356, -0.6063964366912842, -0.22558467090129852, -0.20619842410087585, -0.3876650035381317, -0.6137133836746216, -0.2947997450828552, -0.09748842567205429, 0.4053826630115509, 0.047557391226291656, 0.6326355934143066, 0.27740803360939026, -0.16000624001026154, -0.06933869421482086, -0.23904500901699066, 0.17233015596866608, 0.26317334175109863, -0.21612635254859924, 0.7019323706626892, -0.01756918616592884, -1.0048277378082275, 0.13699263334274292, -0.324878990650177, -0.3548029959201813, 0.38499897718429565, 0.3889424502849579, 0.8387295007705688, 0.6939257979393005, -0.1781797856092453, 0.28242141008377075, 0.4363831579685211, 0.08891899883747101, -0.40625548362731934, -0.21217899024486542, 0.2705601751804352, 0.13462066650390625, 0.8720796704292297, 0.2893308103084564, 0.3219708800315857, -0.4636116325855255, 0.2436130791902542, 0.13305220007896423, -0.9014493823051453, -0.46888652443885803, 0.860032856464386, 0.14301809668540955, 0.1431177705526352, 0.3192561864852905, 0.23609362542629242, -0.44438183307647705, 0.5124307870864868, 0.37004128098487854, 0.9963674545288086, -0.3837790787220001, 0.007636625319719315, 0.12314578145742416, 0.4513920843601227, 0.47722697257995605, 0.15421858429908752, -0.16227728128433228, -0.7097698450088501, -0.7703835368156433, -0.6106401681900024, -0.05346250534057617, -0.1536400318145752, -0.701292097568512, 0.39832696318626404, -0.20300917327404022, -0.3979825973510742, 0.3040612041950226, -0.3904026448726654, -0.6855138540267944, 0.3077755570411682, 0.5225609540939331, 0.5950649380683899, -0.9376965761184692, 0.779918372631073, 0.5737447142601013, -0.43622586131095886, -0.5621452927589417, -0.13575394451618195, -0.2943851351737976, -1.248753547668457, 1.0632884502410889, -0.15866418182849884, -0.38185960054397583, 0.3111843466758728, -0.5986902117729187, -1.3280341625213623, 0.7645007967948914, 0.48940032720565796, -0.6431344151496887, -0.4201340973377228, 0.2705177664756775, 0.4463590979576111, -0.3054138720035553, 0.2697919011116028, 0.4707520604133606, 0.5961037874221802, 0.2421698421239853, -0.34359532594680786, -0.12195132672786713, -0.12761686742305756, 0.03777789697051048, 0.37353551387786865, -0.7410550713539124, 0.7793709635734558, 0.013420648872852325, -0.5914103984832764, -0.4267898201942444, 0.5240775346755981, -0.34746870398521423, 0.20941248536109924, 0.5294311046600342, 0.48194992542266846, 0.2444068193435669, -0.2931998372077942, 0.864845871925354, -0.44935840368270874, 0.45289021730422974, 0.9110837578773499, 0.03589923679828644, 0.899009108543396, 1.0119218826293945, -0.46239209175109863, 0.5223226547241211, 1.0421223640441895, -0.3574502170085907, 0.9546021819114685, 0.24563287198543549, -0.25400510430336, -0.11962210386991501, -0.14125441014766693, -0.13755826652050018, 0.2814145088195801, 0.5494250059127808, -0.5645632743835449, -0.11306540668010712, 0.3479304015636444, -0.23945653438568115, -0.23666034638881683, -0.7802053093910217, 0.6929258108139038, 0.5039966702461243, -0.5548644065856934, 0.7916072607040405, -0.39997127652168274, 0.5093050599098206, -0.4545431137084961, 0.16770592331886292, -0.27294492721557617, 0.37456241250038147, -0.6037210822105408, -0.9509307146072388, 0.4827369451522827, -0.4323352873325348, -0.07635998725891113, 0.075982466340065, 0.789792537689209, -0.49622097611427307, -0.5252870917320251, 0.7551242709159851, 0.2746700942516327, 0.3487851321697235, 0.1057138741016388, -0.32996538281440735, 0.13554991781711578, 0.1016201600432396, -0.6204606294631958, -0.02831786684691906, 0.24821195006370544, 0.3076278269290924, 0.49755576252937317, 0.4299103021621704, 0.08486573398113251, 0.8151553869247437, 0.20300404727458954, 0.9881212115287781, -0.6534532904624939, -0.614988386631012, -0.9019378423690796, 0.6234695911407471, 0.08106563985347748, 0.13853223621845245, 0.7477590441703796, 0.7271724939346313, 0.6241306662559509, -0.2035682052373886, 0.32804039120674133, 0.5356063842773438, 0.2647434175014496, -0.7457593679428101, 0.6744664907455444, -0.5342935919761658, 0.3855152726173401, -0.020077254623174667, -1.5037257671356201, -0.41803380846977234, 0.059047047048807144, -0.18888437747955322, -0.0526740625500679, 0.7242094874382019, 0.6101934909820557, -0.19242717325687408, -0.19311212003231049, 0.6255705952644348, 0.43985554575920105, 0.08877959102392197, 0.5351982712745667, 1.055936336517334, -0.44922083616256714, 0.7182031273841858, -0.09840800613164902, 0.23781023919582367, -0.36563679575920105, -0.2669881284236908, -0.7350917458534241, -0.6802605986595154, -0.3712202310562134, -0.07374253123998642, -0.12019675970077515, 0.05242463946342468, 0.9358839392662048, -0.4916495978832245, -0.22275494039058685, 0.010459769517183304, -0.04906915873289108, 0.10235673934221268, -0.20559810101985931, 0.6308566927909851, -0.44645416736602783, -0.7855883836746216, 0.03034611977636814, 0.42063796520233154, 0.177792027592659, -1.0099799633026123, 0.07185175269842148, -0.042397286742925644, 0.2178923338651657, 0.6908896565437317, -0.3186436593532562, -0.8172591328620911, -0.4017128348350525, 0.01918414793908596, 0.07551826536655426, 0.1720716953277588, 0.5756773948669434, -0.8819255232810974, 0.31346094608306885, 0.11579714715480804, 0.3504709303379059, 1.1724904775619507, -0.5555014610290527, 0.29272642731666565, -0.6882227063179016, 0.24905610084533691, 0.4406498372554779, 0.5736393928527832, 0.13990789651870728, -0.21266324818134308, 0.7497126460075378, 0.27502667903900146, -0.3259826898574829, -1.23494553565979, 0.36688125133514404, -1.0697320699691772, -0.035375241190195084, 0.8519545793533325, -0.07805886119604111, -0.6651564836502075, -0.24729909002780914, -0.11731910705566406, 0.12952889502048492, -0.12483608722686768, 0.3271370232105255, 0.796434223651886, 0.03046760894358158, -0.585446834564209, -0.5488265156745911, 0.2227254956960678, 0.5986127257347107, -0.09290759265422821, -0.04311404377222061, 0.20124812424182892, -0.0177585631608963, 0.4867496192455292, 0.30515721440315247, -0.2083638608455658, 0.15791602432727814, 0.21517249941825867, -0.16314859688282013, 0.499423623085022, -0.02797883190214634, -0.45075753331184387, 0.2798568308353424, 0.09162449836730957, -0.48140501976013184 ]
http://arxiv.org/abs/2402.09216v3
http://arxiv.org/pdf/2402.09216v3
AutoTutor meets Large Language Models: A Language Model Tutor with Rich Pedagogy and Guardrails
2024-02-14T14:53:56
2024-04-25T13:15:55
Sankalan Pal Chowdhury, Vilém Zouhar, Mrinmaya Sachan
cs.CL
cs.CL, cs.HC
Large Language Models (LLMs) have found several use cases in education, ranging from automatic question generation to essay evaluation. In this paper, we explore the potential of using Large Language Models (LLMs) to author Intelligent Tutoring Systems. A common pitfall of LLMs is their straying from desired pedagogical strategies such as leaking the answer to the student, and in general, providing no guarantees. We posit that while LLMs with certain guardrails can take the place of subject experts, the overall pedagogical design still needs to be handcrafted for the best learning results. Based on this principle, we create a sample end-to-end tutoring system named MWPTutor, which uses LLMs to fill in the state space of a pre-defined finite state transducer. This approach retains the structure and the pedagogy of traditional tutoring systems that has been developed over the years by learning scientists but brings in additional flexibility of LLM-based approaches. Through a human evaluation study on two datasets based on math word problems, we show that our hybrid approach achieves a better overall tutoring score than an instructed, but otherwise free-form, GPT-4. MWPTutor is completely modular and opens up the scope for the community to improve its performance by improving individual modules or using different teaching strategies that it can follow.
[ -0.39907872676849365, -0.7763646841049194, 0.5966955423355103, -0.10471974313259125, -0.33956483006477356, 0.49261364340782166, -0.37699949741363525, -0.12861120700836182, -0.02141856774687767, 0.28121280670166016, -0.24492715299129486, -0.18076089024543762, -0.6274130344390869, 0.03790224343538284, -0.6143492460250854, 0.835638165473938, -0.20448549091815948, 0.25654101371765137, -0.32152998447418213, 0.22689594328403473, -0.38595059514045715, -0.6602773070335388, -0.49941208958625793, -0.44523313641548157, 0.4291171729564667, 0.24278908967971802, 0.5246098637580872, 0.7553890943527222, 0.1040867492556572, 0.3753051161766052, 0.047736674547195435, -0.05559738725423813, -0.22135885059833527, 0.10206020623445511, -0.3636332154273987, -0.5276969075202942, -0.21937191486358643, -0.034107863903045654, 0.39185988903045654, 0.6841015815734863, -0.20845457911491394, -0.06723935902118683, 0.1752178966999054, 0.2416771501302719, -0.42138561606407166, 0.2113446295261383, -0.43262332677841187, 0.25423529744148254, -0.1536470353603363, 0.01803436316549778, -0.4135468304157257, -0.39698153734207153, 0.3646996319293976, -0.34534528851509094, -0.04927167296409607, -0.02623392455279827, 0.27582675218582153, 0.3493366539478302, -0.5616195797920227, -0.2331256866455078, -0.8876928091049194, 0.7413628101348877, -0.7539107799530029, 0.2362026423215866, 0.15530869364738464, 0.655632495880127, -0.24655383825302124, -0.36207616329193115, -0.5534892678260803, -0.12784011662006378, 0.03832973539829254, 0.18643683195114136, -0.008681489154696465, 0.021417800337076187, 0.03742470219731331, 0.4736057221889496, -0.5455899238586426, 0.4629290699958801, -0.23641851544380188, -0.47685495018959045, 0.5058940052986145, 0.2683495283126831, 0.2705540060997009, -0.13368883728981018, -0.19283510744571686, -0.25854992866516113, -0.7010890245437622, -0.09443754702806473, 0.6415293216705322, 0.20001186430454254, 0.053848687559366226, 0.584945797920227, 0.26935383677482605, 0.9008499979972839, -0.02552306279540062, -0.19438794255256653, -0.3039861023426056, 0.04988535866141319, 0.07461035996675491, 0.011227349750697613, 1.0516808032989502, 0.06524930149316788, 0.6670112609863281, -0.11344808340072632, -0.4213883578777313, -0.061645012348890305, -0.007717073895037174, -0.7427968978881836, -0.4405195116996765, -0.060672011226415634, -0.07255269587039948, -0.27442577481269836, 0.06411473453044891, -0.7661022543907166, -0.3011340796947479, -0.5725136995315552, 0.6226125955581665, -0.6145000457763672, -0.264289915561676, 0.10803082585334778, 0.20969851315021515, 0.2760320007801056, 0.23210059106349945, -1.0039710998535156, 0.5635802745819092, 0.746837317943573, 0.802808403968811, -0.3934822678565979, -0.2351294606924057, -0.2724921405315399, 0.16042734682559967, -0.28829050064086914, 0.8225451111793518, -0.5154492259025574, -0.6682185530662537, 0.004653274081647396, -0.11082381755113602, 0.03708687052130699, -0.3773469924926758, 0.04507209360599518, -0.45796555280685425, 0.7476627230644226, 0.1998663991689682, -0.8765385746955872, -0.16665105521678925, 0.1261555552482605, -0.514801025390625, 0.8373113870620728, 0.08588675409555435, -0.24240072071552277, -0.039477504789829254, -0.5771806836128235, -0.5153859853744507, 0.15665556490421295, -0.2383321076631546, -0.23802286386489868, 0.07819866389036179, 0.12180124968290329, 0.47419095039367676, -0.3593389391899109, 0.6339054703712463, 0.04780786857008934, -0.2920493185520172, 0.2381230890750885, -0.5921267867088318, 0.5525879859924316, 0.0990714505314827, -0.3509637415409088, 0.23588529229164124, -0.5205493569374084, 0.01613704301416874, 0.14009463787078857, -0.43454688787460327, -0.281594842672348, 0.10817573964595795, 0.05653087794780731, 0.17571210861206055, 0.34109389781951904, -0.655825674533844, 0.13450835645198822, -0.4006451666355133, 0.7399996519088745, 1.1278432607650757, -0.21900686621665955, 0.33904826641082764, -0.36132359504699707, 0.756506621837616, -0.26812490820884705, -0.054710809141397476, -0.3268296420574188, -0.27663499116897583, -0.8371387720108032, -0.1951276659965515, 0.4660608768463135, 0.48890170454978943, -0.5292288064956665, 0.7116194367408752, -0.16902433335781097, -0.5036288499832153, -0.2079087346792221, 0.15412522852420807, 0.3324487507343292, 0.2895733118057251, 0.1831451952457428, 0.002349862828850746, -0.41741687059402466, -0.8117687702178955, -0.2311399132013321, 0.042345963418483734, -0.1182456836104393, -0.013010669499635696, 0.5046529173851013, 0.10459998995065689, 1.1146273612976074, -0.45308250188827515, -0.26500773429870605, -0.43069571256637573, -0.2756176292896271, 0.1441769152879715, 0.5778388977050781, 0.4699856638908386, -0.39182227849960327, -0.6483378410339355, -0.23302501440048218, -0.47017738223075867, -0.08929570019245148, 0.024779748171567917, -0.18327759206295013, 0.17633159458637238, 0.5320209860801697, -0.565872073173523, 0.018049029633402824, 0.469471275806427, -0.20720700919628143, 0.6235906481742859, -0.23892010748386383, -0.40276816487312317, -1.4012677669525146, -0.1263684779405594, -0.1283261924982071, -0.3931773602962494, -0.24231715500354767, -0.05549426004290581, 0.01542988233268261, -0.33583539724349976, -0.1664937436580658, 0.6651181578636169, -0.4103957712650299, -0.11565110832452774, -0.4044536352157593, 0.20224368572235107, -0.20743931829929352, 0.3841094374656677, -0.22668595612049103, 0.8416996002197266, 0.4775364398956299, -0.2183946669101715, 0.7658650279045105, 0.06776238232851028, -0.3552621901035309, 0.47091615200042725, -0.8363657593727112, 0.26504281163215637, 0.07468635588884354, 0.467281699180603, -0.8935445547103882, -0.27050596475601196, -0.09289057552814484, -0.1988629251718521, 0.37402722239494324, -0.2411465048789978, -0.762114405632019, -0.577164888381958, -0.1811620593070984, 0.015514921396970749, 0.6216707229614258, -0.5846240520477295, 0.7078512907028198, 0.4199138581752777, -0.3761008083820343, -0.3103967308998108, -0.4527782201766968, 0.37923526763916016, -0.06433612108230591, -0.297588050365448, 0.1565449982881546, -0.29463088512420654, -0.16628386080265045, 0.03345879539847374, 0.033300261944532394, -0.0608372762799263, 0.12487660348415375, 0.08269906044006348, 0.5026683807373047, -0.15626409649848938, 0.24501225352287292, 0.21698647737503052, -0.30095088481903076, 0.2508142292499542, -0.6083551049232483, 0.8225094676017761, -0.10323835164308548, -0.6465545296669006, -0.28980642557144165, 0.3193889856338501, 0.7670350670814514, -0.34185415506362915, 0.5255715250968933, 0.08149415254592896, -0.2812664806842804, -0.45197707414627075, -0.48095613718032837, -0.23755906522274017, -0.5426599979400635, 0.42019861936569214, -0.28347182273864746, -0.9331751465797424, 0.35526755452156067, 0.012056032195687294, 0.3032148480415344, 0.18263506889343262, 0.5934717059135437, 0.08175582438707352, 1.048287272453308, 0.6851393580436707, -0.3580171763896942, 0.6201711893081665, -0.3354547619819641, 0.3116246461868286, -0.6186577677726746, -0.28123387694358826, -0.17464733123779297, -0.31281766295433044, -0.3095499575138092, -0.1344001591205597, 0.352744460105896, -0.1909426599740982, -0.28099215030670166, 0.3405638337135315, -0.5396338105201721, 0.654773473739624, 0.5415178537368774, -0.09775496274232864, 0.3003557324409485, -0.016270628198981285, -0.5174151062965393, -0.0839681625366211, -0.7051008343696594, -0.6367232799530029, 1.1199454069137573, 0.15120238065719604, 0.8842769265174866, 0.25980812311172485, 0.5724043250083923, 0.08920536935329437, 0.3628341555595398, -1.0230141878128052, 0.8059467077255249, -0.11957190930843353, -0.6542923450469971, -0.3472074568271637, -0.33771851658821106, -0.7738625407218933, 0.4409756362438202, -0.12485853582620621, -0.4504542648792267, -0.3837784230709076, 0.03332194313406944, -0.4073307514190674, 0.449815958738327, -0.6188516020774841, 0.6949360966682434, -0.54660564661026, -0.33407747745513916, -0.10351008921861649, -0.3831714391708374, 0.22119757533073425, -0.3191704750061035, 0.11755471676588058, 0.17396768927574158, -0.08716189116239548, 0.7759402394294739, -0.7716689109802246, 0.9190524220466614, -0.1948993057012558, -0.32467105984687805, 0.16158629953861237, 0.33982256054878235, 0.3538641929626465, -0.41144177317619324, -0.08901049941778183, -0.4349014461040497, -0.05668945610523224, -0.29218944907188416, -0.7118399739265442, 0.8045231103897095, -0.8461874723434448, -0.8374251127243042, -0.34925031661987305, -0.768308162689209, -0.3239414393901825, 0.33255842328071594, 0.052951082587242126, 0.7476974129676819, 0.055350884795188904, 0.08964399993419647, 0.6801967620849609, -0.29428204894065857, 0.6752579212188721, 0.6590492129325867, -0.2765125036239624, -0.3997277021408081, 1.0258628129959106, 0.22786782681941986, 0.17786987125873566, 0.17519696056842804, 0.5809321999549866, -0.4077320694923401, -0.5356640815734863, -0.7075000405311584, 0.3598361909389496, -0.6867712140083313, -0.1383054107427597, -0.47089260816574097, -0.3445173501968384, -0.33193331956863403, -0.3736536204814911, -0.27379512786865234, -0.4258458614349365, -0.21612365543842316, -0.2567037045955658, 0.46716150641441345, 0.9569658637046814, -0.012418457306921482, 0.4033546447753906, -0.5559635758399963, -0.14362747967243195, 0.5526376962661743, 0.28060007095336914, 0.18593814969062805, -0.7329689860343933, -0.02504153922200203, -0.18136589229106903, -0.2663082182407379, -0.44802790880203247, 0.4024490416049957, 0.18601927161216736, 0.6139416098594666, 0.36275896430015564, 0.01653209701180458, 0.5015342831611633, -0.6920434236526489, 0.625579297542572, 0.10155550390481949, -0.9133924245834351, 0.32032468914985657, -0.4998353123664856, 0.3678751289844513, 0.1965452879667282, 0.3203180432319641, -0.5061386823654175, -0.5489108562469482, -0.22243188321590424, -0.7624332308769226, 0.43061843514442444, -0.3589325547218323, 0.4541114568710327, 0.25013697147369385, 0.27131739258766174, 0.3406888544559479, 0.1481119692325592, -0.6875027418136597, -0.010668558068573475, -0.32643720507621765, -0.7550195455551147, -0.18972523510456085, -0.08824299275875092, 0.00329669495113194, -0.18268337845802307, 0.5019855499267578, -0.23533150553703308, 0.04738423973321915, -0.1911587119102478, -0.31584370136260986, -0.08328981697559357, 0.28221508860588074, 0.4662160873413086, 0.6602936387062073, 0.2678602635860443, 0.2721051871776581, 0.08165457844734192, -0.4177723228931427, 0.3335859775543213, 0.21160675585269928, -0.16591514647006989, -0.21371100842952728, 0.4537016749382019, 0.44973888993263245, 0.3999426066875458, -0.6637424230575562, 0.5500069260597229, 0.19748467206954956, -0.24086709320545197, -0.6272566914558411, 0.2939195930957794, 0.2462102472782135, 0.03785642981529236, 0.5361629724502563, -0.23906835913658142, -0.245883047580719, -0.3911704421043396, 0.03749290853738785, 0.4637923836708069, -0.25036439299583435, -0.46869218349456787, 0.6579447984695435, 0.36195337772369385, -0.6243842244148254, 0.2595435678958893, 0.24543336033821106, -0.879298210144043, 0.5310274362564087, 0.742672860622406, 0.7432467341423035, -0.3893139958381653, -0.0007287774933502078, 0.05704290792346001, 0.14703644812107086, -0.07682779431343079, 0.026739830151200294, -0.18377335369586945, -0.5183064937591553, -0.7618993520736694, -0.5694007873535156, -0.6775379776954651, 0.1457056850194931, -0.4501698911190033, 0.23933908343315125, -0.7248409390449524, 0.1464340090751648, -0.14996106922626495, -0.06018693000078201, -0.28333693742752075, -0.08237064629793167, 0.174516499042511, 0.9054934978485107, -0.6585059762001038, 0.8428080081939697, 0.7677339911460876, -0.001344216288998723, -0.8284995555877686, -0.2325965017080307, 0.13001225888729095, -0.5899087190628052, 0.4465322494506836, 0.08663681894540787, -0.1807957887649536, 0.2760741412639618, -0.4010993540287018, -0.7700493335723877, 0.9457680583000183, 0.42457982897758484, -0.7554818987846375, -0.1830786168575287, 0.3304118514060974, 0.6861633658409119, -0.14215417206287384, 0.21017220616340637, 0.2094181925058365, 0.35726305842399597, -0.06555823981761932, -0.8464646935462952, -0.0092619638890028, -0.05616364628076553, -0.0387263223528862, 0.26792532205581665, -0.7207223773002625, 0.8301354646682739, -0.03329450637102127, 0.015519163571298122, 0.21933668851852417, 0.46438315510749817, -0.022869670763611794, -0.25173062086105347, 0.5626750588417053, 0.48040711879730225, 0.5018975734710693, -0.07786212116479874, 0.9738814830780029, -0.40995922684669495, 0.26561930775642395, 1.0240010023117065, -0.12190111726522446, 0.7188165783882141, 0.37554171681404114, -0.3833552896976471, 0.5957973599433899, 0.5724380016326904, -0.08741515129804611, 0.2858763337135315, 0.4354197084903717, -0.29777026176452637, -0.3463500738143921, 0.17715813219547272, -0.02877260558307171, 0.48400652408599854, 0.23429739475250244, -0.10347243398427963, -0.4230971932411194, 0.3398853540420532, 0.12217259407043457, 0.3395327925682068, -0.17926062643527985, 0.5976383686065674, 0.16406500339508057, -0.5749353170394897, 0.2301550805568695, -0.16246484220027924, 0.802910327911377, -0.6309213638305664, 0.15244999527931213, -0.20112815499305725, 0.30551713705062866, 0.042844053357839584, -0.7540246248245239, 0.05947280302643776, 0.2093510627746582, 0.06491335481405258, -0.47140347957611084, 0.38039320707321167, -0.5265061259269714, -0.6035486459732056, 0.24861761927604675, 0.5934628248214722, 0.10839654505252838, 0.40801283717155457, -0.4728601574897766, -0.23215414583683014, -0.3306645154953003, -0.291714072227478, 0.40964198112487793, 0.4181029200553894, -0.00575817096978426, 0.9347453713417053, 0.7096382975578308, 0.10526978969573975, -0.01513043325394392, 0.01748810149729252, 0.9239446520805359, -0.5213260054588318, -0.5076369047164917, -1.0422202348709106, 0.20910677313804626, 0.054811760783195496, -0.2555290758609772, 0.9833332300186157, 0.64690101146698, 0.7519215941429138, 0.04617688059806824, 0.9387770891189575, 0.06919771432876587, 0.6584726572036743, -0.38198035955429077, 0.804152250289917, -0.2064705193042755, 0.2345290184020996, -0.14831310510635376, -1.1338037252426147, -0.23345322906970978, 0.6087803244590759, -0.4353165626525879, 0.034567587077617645, 0.48120564222335815, 0.5128311514854431, -0.11168836802244186, 0.03016558475792408, 0.46260106563568115, 0.15087901055812836, 0.5920473337173462, 0.6333706974983215, 1.1874241828918457, -0.07486801594495773, 0.6976285576820374, -0.13179723918437958, -0.13966238498687744, -0.19312164187431335, -0.5636565685272217, -1.1237473487854004, -0.42598864436149597, 0.009894863702356815, 0.10398879647254944, 0.011152227409183979, 0.9084817171096802, 0.5802024006843567, -0.6843276619911194, -0.40829724073410034, -0.15839703381061554, -0.02235051803290844, 0.44938740134239197, -0.2595583498477936, 0.25420427322387695, -0.0748952105641365, -0.871017336845398, 0.4364513158798218, 0.06601543724536896, 0.3680626153945923, -0.933525562286377, 0.14751367270946503, 0.14572519063949585, 0.13463082909584045, 0.49380573630332947, 0.05903790146112442, -0.6217966675758362, -0.4260966181755066, 0.153734490275383, -0.15175436437129974, -0.3204578161239624, 0.8622015714645386, -0.9836820960044861, 0.3595357835292816, 0.1784166544675827, 0.7980723977088928, 0.4118507504463196, -0.30598947405815125, 0.9446819424629211, -0.13722074031829834, 0.06491612643003464, 0.2526438534259796, 0.5083516836166382, 0.5322672724723816, -0.16243447363376617, 0.18409663438796997, 0.11286686360836029, -0.5240429043769836, -0.719146728515625, 0.08936464786529541, -0.4766359329223633, -0.34884321689605713, 0.9958860874176025, -0.18000374734401703, -0.22629015147686005, -0.16782614588737488, -0.2686430513858795, 0.05150322988629341, -0.2756944000720978, 0.7903428673744202, 0.9254390001296997, -0.0031372508965432644, -0.14263100922107697, -0.4524748623371124, 0.05456472188234329, 0.5532480478286743, -0.677464485168457, -0.05233718827366829, 0.5083014965057373, 0.7084360718727112, 0.0035757955629378557, 0.08156929165124893, -0.006482167635113001, 0.07091113179922104, -0.2640896141529083, -0.04571071267127991, -0.4705263674259186, -0.2434941828250885, -0.37984180450439453, -0.04478119686245918, -0.032416775822639465, 0.00015081677702255547 ]
http://arxiv.org/abs/2402.09205v2
http://arxiv.org/pdf/2402.09205v2
Tell Me More! Towards Implicit User Intention Understanding of Language Model Driven Agents
2024-02-14T14:36:30
2024-02-15T09:59:52
Cheng Qian, Bingxiang He, Zhong Zhuang, Jia Deng, Yujia Qin, Xin Cong, Zhong Zhang, Jie Zhou, Yankai Lin, Zhiyuan Liu, Maosong Sun
cs.CL
cs.CL, cs.AI, cs.HC
Current language model-driven agents often lack mechanisms for effective user participation, which is crucial given the vagueness commonly found in user instructions. Although adept at devising strategies and performing tasks, these agents struggle with seeking clarification and grasping precise user intentions. To bridge this gap, we introduce Intention-in-Interaction (IN3), a novel benchmark designed to inspect users' implicit intentions through explicit queries. Next, we propose the incorporation of model experts as the upstream in agent designs to enhance user-agent interaction. Employing IN3, we empirically train Mistral-Interact, a powerful model that proactively assesses task vagueness, inquires user intentions, and refines them into actionable goals before starting downstream agent task execution. Integrating it into the XAgent framework, we comprehensively evaluate the enhanced agent system regarding user instruction understanding and execution, revealing that our approach notably excels at identifying vague user tasks, recovering and summarizing critical missing information, setting precise and necessary agent execution goals, and minimizing redundant tool usage, thus boosting overall efficiency. All the data and codes are released.
[ -0.37044599652290344, -0.3698148727416992, 1.135874629020691, -0.06695199757814407, 0.21370196342468262, -0.2742592692375183, 0.04115942493081093, -0.6764525175094604, -0.18995676934719086, 0.44209668040275574, -0.7539265155792236, -0.43830105662345886, -0.3317223787307739, -0.15430711209774017, -0.6005887389183044, 0.8859964609146118, -0.09630466252565384, -0.05515088513493538, -0.254763662815094, 0.14621952176094055, -0.43402528762817383, -0.24533778429031372, -0.8590525984764099, -0.3136511743068695, 0.3456093370914459, 0.6295883059501648, 0.8361603617668152, 0.247170090675354, 0.10502597689628601, 0.4082399010658264, 0.29277923703193665, 0.16049878299236298, -0.6260738968849182, 0.0005131024518050253, -0.2268379032611847, -0.5161356925964355, -0.5589847564697266, 0.22083823382854462, 0.42422133684158325, 0.5898526906967163, 0.18188391625881195, 0.024736007675528526, 0.18317009508609772, 0.22670485079288483, -0.6890588402748108, 0.2687859535217285, -0.2383268177509308, -0.17718225717544556, 0.009094477631151676, -0.03403136506676674, -0.521136999130249, -0.15999332070350647, 0.10817467421293259, -0.7966009974479675, 0.16802459955215454, -0.2537609040737152, 0.5718947649002075, 0.3740370571613312, -0.5070260167121887, -0.30219462513923645, -0.6092462539672852, 0.6797512769699097, -0.8452214598655701, 0.5066977739334106, 0.3485811650753021, 0.25731781125068665, -0.46001821756362915, -0.9618847370147705, -0.8635286092758179, -0.3104410767555237, -0.3667435050010681, -0.016346076503396034, -0.4348606765270233, 0.44033950567245483, 0.3534972071647644, -0.06809087842702866, -0.5227744579315186, -0.09331155568361282, 0.14470724761486053, 0.11706600338220596, 0.7773988842964172, 0.3253980875015259, 0.26415640115737915, 0.21709056198596954, -0.3441827893257141, 0.014443389140069485, -0.5290815830230713, 0.36684533953666687, 0.4963178336620331, 0.13237729668617249, -0.06390918791294098, 0.4537944495677948, -0.3917158842086792, 0.692806601524353, 0.19644857943058014, 0.45239803194999695, 0.04632242023944855, -0.2708207964897156, -0.10647467523813248, -0.1632094383239746, 0.7171662449836731, 0.2300047129392624, 0.3381764590740204, -0.22108390927314758, -0.4960809350013733, -0.40195366740226746, 0.309209942817688, -0.8537704348564148, 0.05120871961116791, 0.5585306882858276, -0.30152538418769836, -0.006028702482581139, 0.20966877043247223, -0.33772775530815125, -0.492110013961792, -0.37310391664505005, 0.5041006207466125, -0.4176195561885834, -0.313018798828125, 0.24777112901210785, -0.24714380502700806, 0.28060758113861084, 0.5073947310447693, -0.8279597759246826, 0.6136141419410706, 0.9711522459983826, 0.5138342976570129, 0.25792670249938965, -0.6147247552871704, -0.6665642857551575, 0.4864041805267334, -0.15432152152061462, 0.6537394523620605, -0.8270540237426758, -0.36935219168663025, 0.025930779054760933, -0.3123285174369812, -0.15312397480010986, -0.03889371454715729, 0.49464285373687744, -0.48314452171325684, 0.20564812421798706, -0.31172052025794983, -0.5191189050674438, -0.48678159713745117, 0.09970447421073914, -0.43654146790504456, 1.0964051485061646, 0.3197283148765564, -0.19522926211357117, 0.5619311332702637, -0.9824784398078918, -0.23154985904693604, 0.2438531517982483, -0.18668894469738007, 0.22874772548675537, 0.3906576633453369, 0.05039888992905617, 0.5732882022857666, -0.2141496241092682, 0.15287992358207703, -0.21731039881706238, -0.6274431943893433, 0.49539196491241455, -0.4448687434196472, 0.3053050637245178, -0.011860746890306473, -0.5809339284896851, 0.34495168924331665, -0.4967951774597168, 0.2333248257637024, -0.31607353687286377, 0.1135539785027504, -0.4748989939689636, 0.11748315393924713, 0.026112666353583336, 0.5428295135498047, 0.522070050239563, -0.4016616642475128, 0.07272867858409882, -0.4241759479045868, 0.16434818506240845, 0.8529776334762573, 0.0029903147369623184, 0.5068674087524414, -0.09225430339574814, 0.4158998131752014, -0.5164265036582947, 0.7471578121185303, 0.007909141480922699, -0.4984002709388733, -0.7752941846847534, -0.15384307503700256, -0.2775020897388458, -0.05431811884045601, -0.4406883418560028, 0.12233743071556091, -0.3326188921928406, -0.3490583896636963, -0.5356124639511108, 0.1717543751001358, 0.6921908259391785, 0.332054078578949, 0.053926967084407806, -0.17897716164588928, -0.08232519775629044, -0.8318769335746765, -0.4713928699493408, -0.4528350532054901, 0.06252846866846085, 0.5171846151351929, 0.5451374650001526, -0.3596075475215912, 1.2807821035385132, -0.5173594951629639, -0.06908760964870453, -0.4488392472267151, 0.2778235673904419, 0.15040260553359985, 0.3370104134082794, 0.48929911851882935, -0.9485965967178345, -0.8371667861938477, 0.49442291259765625, -0.8657097220420837, -0.06841924786567688, -0.06271115690469742, -0.0925154834985733, 0.05500505864620209, 0.43778786063194275, -0.6752655506134033, 0.4984213709831238, 0.17274554073810577, -0.3223452866077423, 0.12678757309913635, -0.17842023074626923, 0.2623830735683441, -0.5597386360168457, 0.07001876085996628, -0.051668573170900345, -0.3200315833091736, -1.119894027709961, 0.01263613160699606, 0.18636064231395721, 0.052299194037914276, -0.706462025642395, 1.0572370290756226, -0.6378390789031982, -0.0189875066280365, -0.5124873518943787, 0.10580843687057495, -0.0017864468973129988, 0.5477374792098999, 0.12355140596628189, 0.87013840675354, 0.3866446614265442, -0.5469970107078552, -0.2829127609729767, 0.1948004812002182, 0.03718813136219978, 0.4279153645038605, -0.7971935868263245, 0.40255141258239746, -0.11930669099092484, -0.1860784888267517, -1.0366202592849731, -0.522267758846283, 0.578560471534729, -0.5192506909370422, 0.2756779193878174, -0.3319605886936188, -0.523234486579895, -0.08863861858844757, -0.23715464770793915, 0.35330888628959656, 0.35952287912368774, -0.5519057512283325, 0.7962979674339294, 0.2398662269115448, 0.07372938841581345, -0.617036759853363, -0.4975685179233551, 0.032989852130413055, 0.011342081241309643, -0.7330148816108704, 0.06599879264831543, 0.07054515182971954, -0.359578400850296, 0.06635762006044388, -0.12333047389984131, -0.24088799953460693, 0.007876155897974968, 0.5400838851928711, -0.1260516345500946, 0.03993091732263565, 0.016286561265587807, 0.21132251620292664, -0.2452523410320282, 0.2230842560529709, -0.20273280143737793, 0.3895871341228485, -0.11175788938999176, -0.6193908452987671, -0.9513303637504578, 0.4782392382621765, 0.44325873255729675, -0.08214858919382095, 0.45135417580604553, 0.486041396856308, -0.23977667093276978, -0.058022577315568924, -0.5371019244194031, -0.3786817193031311, -0.5412874221801758, 0.29649218916893005, -0.6576460003852844, -0.5948598384857178, 0.3492121696472168, -0.2289046049118042, 0.17305848002433777, 0.19767498970031738, 0.1416543573141098, -0.1575496345758438, 1.5161064863204956, 0.8946685791015625, 0.07204757630825043, 0.5350239276885986, -0.20808851718902588, 0.030713966116309166, -0.5891409516334534, -0.1828802227973938, -0.3445996046066284, -0.17938543856143951, -0.19483107328414917, -0.35630086064338684, 0.3994666635990143, -0.16462789475917816, -0.02997661754488945, 0.23281697928905487, -0.2596817910671234, 0.37171271443367004, 0.21484817564487457, -0.03773267939686775, 0.18860729038715363, -0.37328457832336426, 0.48631832003593445, 0.09833036363124847, -0.36010125279426575, -0.7103024125099182, 0.8890531659126282, 0.2716282904148102, 0.6921682953834534, 0.14920634031295776, 0.6371526122093201, 0.4603457450866699, 0.41108238697052, -0.5471236109733582, 0.6125527620315552, 0.4350232183933258, -0.5754684209823608, -0.44157540798187256, -0.12487167119979858, -1.003532886505127, 0.3909091353416443, 0.16457869112491608, -1.0312178134918213, 0.48962071537971497, 0.24784554541110992, -0.16133219003677368, -0.25660526752471924, -0.9863167405128479, 1.0799634456634521, -0.3455056846141815, -0.5632414221763611, -0.45401111245155334, -0.5454075336456299, 0.3977051377296448, -0.00499715143814683, 0.08301327377557755, -0.06625054031610489, -0.530920147895813, 0.36278432607650757, -0.6403881311416626, 1.0005584955215454, -0.48304131627082825, -0.0657280758023262, 0.1172483041882515, -0.16201536357402802, 0.9845336079597473, -0.01652245782315731, -0.3576338589191437, 0.03764636814594269, -0.40742242336273193, -0.2991640269756317, -1.0514390468597412, 0.6696274280548096, -0.6027445793151855, -0.6870073080062866, -0.33455735445022583, -0.6829039454460144, -0.2180788367986679, 0.26803719997406006, -0.1150037944316864, 0.4488075077533722, -0.5129907131195068, -0.5046931505203247, 0.6353724002838135, 0.36590513586997986, 0.44824132323265076, 1.003491759300232, -0.014142980799078941, 0.11435862630605698, 0.8371212482452393, -0.2692926228046417, 0.3620288670063019, 0.4890097975730896, 0.024547770619392395, -0.4207366406917572, -0.6760391592979431, -0.3624172806739807, 0.13044770061969757, -0.7393096685409546, 0.2684001326560974, -0.8935456871986389, 0.16920484602451324, -0.2876141369342804, -0.3010208010673523, -0.1470453143119812, -0.10471393167972565, -0.22099824249744415, 0.14069654047489166, 0.38427668809890747, 1.273721694946289, 0.02237997204065323, 0.9172390103340149, -0.5916875004768372, -0.05431368947029114, 0.10367666929960251, 0.1302807629108429, 0.04551442712545395, -0.41475799679756165, -0.4309205710887909, 0.07082835584878922, -0.04002217575907707, -0.9187124967575073, 0.2937140464782715, 0.10334593057632446, 0.9551005959510803, 0.9095948934555054, -0.02105845883488655, 0.6736463308334351, -0.08590605109930038, 0.46132320165634155, -0.17035266757011414, -1.1583141088485718, 0.44167834520339966, -0.25647953152656555, 0.17585299909114838, 0.7101696133613586, 0.647520899772644, -0.5624425411224365, -0.5276845693588257, -0.6108040809631348, -0.6936240196228027, 1.122903823852539, 0.36398664116859436, 0.09359591454267502, 0.3122060000896454, 0.5778602957725525, 0.4321398437023163, 0.26883089542388916, -0.5159881114959717, -0.3121914565563202, 0.15290740132331848, -0.10606700927019119, -0.12427636981010437, -0.16089260578155518, -0.021636847406625748, -0.05999975651502609, 0.695636510848999, -0.27394479513168335, -0.0046324776485562325, -0.058802999556064606, -0.35257279872894287, 0.07208238542079926, 0.194148987531662, 0.4937952160835266, 0.6442762017250061, -0.19176849722862244, -0.03481987863779068, 0.05750678852200508, -0.5192480683326721, 0.12926332652568817, 0.33460626006126404, -0.09189850091934204, -0.11787324398756027, 0.21238677203655243, 0.563753604888916, 0.29957178235054016, -0.7960154414176941, 0.6902380585670471, -0.5473837852478027, 0.16911502182483673, -0.3279569447040558, 0.34545832872390747, -0.19757820665836334, 0.2608449459075928, 0.214679554104805, 0.028468826785683632, 0.6573169231414795, -0.3977559506893158, 0.05430995672941208, 0.482757031917572, -0.9582529067993164, -0.5478082895278931, 0.4877227544784546, 0.2888512909412384, -0.15617212653160095, 0.36900657415390015, -0.45587635040283203, -0.24801822006702423, 0.23589390516281128, 0.21729835867881775, 1.1976271867752075, -0.07634232193231583, 0.2661166489124298, -0.005522111896425486, 0.32511645555496216, 0.1308489441871643, 0.7101241946220398, -0.524109423160553, -0.46606388688087463, -0.32569199800491333, -0.039953455328941345, -0.384900838136673, -0.017156079411506653, -0.3820536136627197, 0.20223566889762878, 0.030938593670725822, -0.008263718336820602, 0.04737060144543648, -0.06640258431434631, -0.7130048871040344, 0.04512771964073181, -0.4449929893016815, 0.6693683862686157, -0.7926686406135559, 0.6928129196166992, 0.6919711232185364, -0.639526903629303, -0.6609366536140442, 0.22189508378505707, 0.11280570179224014, -0.6682232022285461, 0.525932252407074, 0.2588280737400055, -0.39715778827667236, 0.05716346204280853, -0.6626439690589905, -0.8482718467712402, 0.8090750575065613, 0.38702842593193054, -0.2740601897239685, 0.19827887415885925, 0.44387087225914, 0.4094558656215668, -0.23642879724502563, 0.8397074937820435, 0.713506281375885, 0.8259416222572327, -0.05293971672654152, -0.48024967312812805, 0.20801787078380585, -0.5161752104759216, -0.30726394057273865, 0.3894044756889343, -0.43694207072257996, 0.5975873470306396, -0.20241226255893707, -0.36724725365638733, 0.0996856763958931, 0.7438100576400757, -0.07136553525924683, 0.5762795805931091, 0.49762213230133057, 0.14531566202640533, 0.7138383388519287, 0.14538733661174774, 1.3300144672393799, -0.21060319244861603, -0.165207639336586, 1.120559811592102, -0.5169872641563416, 0.5321661829948425, 0.48346200585365295, 0.07610518485307693, 0.25723931193351746, 0.4774746894836426, 0.584290623664856, 0.31868159770965576, -0.14965780079364777, -0.5855355262756348, -0.24566838145256042, -0.40083494782447815, -0.18044617772102356, 0.46213480830192566, 0.46001672744750977, -0.058007389307022095, -0.16695421934127808, 0.009564494714140892, 0.21364335715770721, 0.0637783408164978, -0.2964344322681427, 0.8569770455360413, -0.164841890335083, -0.6736475229263306, 0.21514342725276947, -0.2510581910610199, 0.3485613167285919, -0.6961574554443359, -0.29154476523399353, -0.031726762652397156, 0.270146906375885, -0.4325644373893738, -1.0674753189086914, -0.20755869150161743, -0.03592078387737274, -0.31163522601127625, -0.30156955122947693, 0.7493922114372253, -0.18358229100704193, -0.07360333949327469, 0.2844545543193817, 0.5752729177474976, 0.6342412233352661, -0.42990443110466003, -0.5693385004997253, -0.06547552347183228, -0.06497327238321304, -0.21399220824241638, 0.3206612467765808, 0.5956591367721558, -0.30401313304901123, 0.7642133235931396, 0.540538489818573, -0.18877768516540527, -0.10823503136634827, 0.28101086616516113, 0.9409972429275513, -0.45603933930397034, -0.2835049629211426, -0.6539191007614136, 0.7294355630874634, -0.2848043441772461, -0.3276078402996063, 0.8858368396759033, 0.6887689828872681, 0.9267346262931824, 0.10623453557491302, 0.9927071928977966, -0.006713801063597202, -0.01050794217735529, -0.23231419920921326, 0.5335439443588257, -0.7070993781089783, 0.2180587649345398, -0.22425433993339539, -0.5602588653564453, 0.2761543095111847, 0.03622673451900482, -0.4358818829059601, 0.4129796624183655, 0.387875497341156, 1.0242806673049927, -0.1617654263973236, 0.009172127582132816, 0.5413920283317566, -0.07422252744436264, 0.3482913672924042, 0.44194793701171875, 1.2959342002868652, -0.2624721825122833, 0.47109144926071167, -0.23398639261722565, -0.47387510538101196, -0.2646234929561615, -0.49696022272109985, -0.9331508278846741, -0.7350256443023682, -0.07736698538064957, 0.16558726131916046, 0.33107709884643555, 0.8681909441947937, 0.8507193922996521, -0.4215054214000702, -0.457527220249176, -0.3150925934314728, 0.25116685032844543, -0.5308473110198975, -0.22677333652973175, 0.1494053155183792, -0.6204090118408203, -1.0453444719314575, 0.4960227906703949, 0.3452140986919403, 0.11496672034263611, -0.24229313433170319, -0.4735570251941681, -0.038388486951589584, 0.16868773102760315, 0.4198664426803589, 0.5558122396469116, -0.5710612535476685, -0.1458447426557541, -0.1323864459991455, -0.21497441828250885, -0.23321393132209778, 0.9566587209701538, -0.7150837182998657, 0.526002824306488, 0.4881414771080017, 0.16897498071193695, 0.5379476547241211, 0.04375527799129486, 0.9280602931976318, -0.6140989661216736, 0.014123683795332909, 0.20065957307815552, 0.1759551614522934, -0.06602898985147476, -0.8226680159568787, 0.4773580729961395, -0.48214802145957947, -0.549400269985199, -0.7280264496803284, 0.13579010963439941, -0.8531239628791809, -0.26607364416122437, 1.0570909976959229, -0.1162075623869896, -0.3004228472709656, -0.614238440990448, -0.3627985417842865, 0.020495614036917686, -0.9571318030357361, 0.3229939639568329, 0.11587392538785934, -0.6375556588172913, -0.032558418810367584, -0.7469911575317383, 0.9111263751983643, 0.23187965154647827, -0.9186100959777832, 0.17143724858760834, 0.5194602012634277, -0.17760033905506134, -0.2017958164215088, 0.8172773718833923, 0.20648112893104553, 0.6930911540985107, -0.0031141110230237246, 0.52454674243927, -0.11653124541044235, -0.3588387370109558, -0.33460888266563416, 0.012857184745371342, 0.3468327820301056, -0.10116676986217499 ]
http://arxiv.org/abs/2402.09199v1
http://arxiv.org/pdf/2402.09199v1
Ten Words Only Still Help: Improving Black-Box AI-Generated Text Detection via Proxy-Guided Efficient Re-Sampling
2024-02-14T14:32:16
2024-02-14T14:32:16
Yuhui Shi, Qiang Sheng, Juan Cao, Hao Mi, Beizhe Hu, Danding Wang
cs.CL
cs.CL, cs.AI, cs.LG
With the rapidly increasing application of large language models (LLMs), their abuse has caused many undesirable societal problems such as fake news, academic dishonesty, and information pollution. This makes AI-generated text (AIGT) detection of great importance. Among existing methods, white-box methods are generally superior to black-box methods in terms of performance and generalizability, but they require access to LLMs' internal states and are not applicable to black-box settings. In this paper, we propose to estimate word generation probabilities as pseudo white-box features via multiple re-sampling to help improve AIGT detection under the black-box setting. Specifically, we design POGER, a proxy-guided efficient re-sampling method, which selects a small subset of representative words (e.g., 10 words) for performing multiple re-sampling in black-box AIGT detection. Experiments on datasets containing texts from humans and seven LLMs show that POGER outperforms all baselines in macro F1 under black-box, partial white-box, and out-of-distribution settings and maintains lower re-sampling costs than its existing counterparts.
[ -0.5238592028617859, -1.0429059267044067, 0.7313216328620911, -0.07475639879703522, -0.47331637144088745, 0.15292929112911224, -0.019913602620363235, -0.4025745391845703, 0.33649855852127075, 0.5310409665107727, -0.3871040344238281, -0.5212598443031311, -0.6968699097633362, 0.28513914346694946, -0.6612208485603333, 0.9889489412307739, 0.07294650375843048, -0.31729114055633545, 0.07703455537557602, 0.042173970490694046, -0.3372509181499481, -0.40214911103248596, -0.7128487229347229, -0.08770593255758286, 0.2768520712852478, 0.24740485846996307, 0.4563297927379608, 0.4187321364879608, 0.11935730278491974, 0.32714948058128357, -0.30246132612228394, 0.5352277159690857, -0.49626195430755615, -0.0981823205947876, -0.00667315861210227, -0.31442442536354065, -0.2664785087108612, 0.14417824149131775, 0.5543272495269775, 0.108496755361557, -0.21301788091659546, 0.2981466054916382, -0.027017472311854362, 0.21034911274909973, -0.7288809418678284, -0.15493083000183105, -0.7870410084724426, -0.08531580865383148, -0.4128924608230591, 0.0062429094687104225, -0.3060087561607361, -0.05911312624812126, 0.0485018752515316, -0.5969964265823364, 0.5211440920829773, 0.2922024130821228, 0.8279626369476318, 0.19288435578346252, -0.13300910592079163, -0.21247000992298126, -0.2860262989997864, 0.6138774156570435, -0.7979415655136108, 0.19424021244049072, 0.5303810834884644, 0.24028386175632477, -0.47110244631767273, -0.9555984139442444, -0.9812570214271545, -0.38185131549835205, -0.1330835521221161, 0.010977334342896938, -0.40942853689193726, -0.2889333665370941, 0.13155537843704224, 0.15455371141433716, -0.28086036443710327, -0.1749940663576126, -0.3134295344352722, -0.5989126563072205, 0.6823001503944397, -0.02212921716272831, 0.4031444191932678, -0.007619075942784548, -0.1367930918931961, -0.37722688913345337, -0.7071288824081421, -0.08461026847362518, 0.6986443400382996, 0.009741287678480148, 0.06413325667381287, 0.35627636313438416, -0.08296588063240051, 0.7702821493148804, 0.08276797831058502, -0.2543933689594269, 0.3562285304069519, -0.30934861302375793, -0.03189850598573685, 0.023148898035287857, 0.9278272986412048, -0.012500579468905926, 0.33551064133644104, -0.02868974767625332, -0.2443925440311432, 0.2386465221643448, 0.6315352916717529, -0.648636519908905, -0.3609161376953125, -0.08067288994789124, -0.4625212550163269, -0.4210669994354248, 0.19336648285388947, -1.111380696296692, -0.5389757752418518, 0.1411110758781433, 0.47564998269081116, -0.18893444538116455, -0.39730948209762573, 0.2079092562198639, -0.39420777559280396, 0.023252049461007118, 0.21406714618206024, -0.15641556680202484, -0.1064034029841423, 0.3834392726421356, 0.7306760549545288, 0.011574146337807178, -0.30171823501586914, -0.970203697681427, -0.04826758801937103, -0.37677261233329773, 1.0697101354599, -0.6157947778701782, -0.4081009328365326, 0.1297781765460968, 0.20707201957702637, 0.5306927561759949, -0.6749654412269592, 0.370182067155838, -0.19707338511943817, 0.1912628412246704, -0.08165299147367477, -0.25422602891921997, 0.16844360530376434, 0.17303720116615295, -0.6150603294372559, 1.0771710872650146, -0.0891595259308815, -0.7402348518371582, 0.438554048538208, -0.29320093989372253, -0.5391066074371338, 0.2579961121082306, -0.31535860896110535, -0.9378525614738464, 0.597693681716919, 0.34755197167396545, 0.26488974690437317, -0.11577185243368149, 0.3882553279399872, -0.3182404935359955, -0.6124612092971802, -0.021663786843419075, -0.5161669254302979, 0.41056057810783386, 0.178239107131958, -0.549584686756134, 0.021846218034625053, -0.7164722681045532, -0.1743890941143036, 0.23902824521064758, -0.3010627031326294, -0.391319215297699, 0.12971794605255127, -0.17669014632701874, -0.059852566570043564, -0.10370045900344849, -0.8369258046150208, -0.04491778463125229, -0.20985810458660126, 0.2914055585861206, 0.6190438866615295, 0.016978396102786064, 0.2677483558654785, -0.27980878949165344, 0.7800055742263794, -0.03523179888725281, -0.24285870790481567, -0.28175461292266846, -0.7614087462425232, -0.44270482659339905, -0.44589054584503174, 0.22085386514663696, 0.45824873447418213, -1.319289207458496, 0.5301995873451233, 0.003123460803180933, -0.4237878620624542, -0.8021548986434937, 0.23461151123046875, 0.5756632089614868, 0.3684665262699127, 0.38233354687690735, -0.09528976678848267, -0.001189816277474165, -0.9704581499099731, -0.5424765944480896, -0.26599377393722534, -0.2516344487667084, 0.11527654528617859, 0.4703964293003082, -0.21662433445453644, 0.7848916053771973, -0.8209205865859985, -0.47195965051651, -0.09658541530370712, 0.47550052404403687, -0.27658504247665405, 0.00029716402059420943, 0.5018812417984009, -0.7329637408256531, -0.283088743686676, -0.47037702798843384, -0.4101930260658264, -0.6023569703102112, -0.06687914580106735, -0.35123342275619507, -0.06166389584541321, 0.8958706259727478, -0.00046284738346002996, 0.7471777200698853, 0.5006529092788696, -0.44186124205589294, 0.4333838224411011, -0.3194904923439026, -0.1694827526807785, -0.8901419043540955, -0.1447276473045349, 0.3289019763469696, -0.25658759474754333, -0.6338412761688232, -0.08272239565849304, 0.28208982944488525, -0.0829557329416275, -0.5710698366165161, 1.0131031274795532, -0.6557998657226562, 0.4280581772327423, -0.722528338432312, 0.316407710313797, -0.053197529166936874, 0.20385907590389252, 0.05274670198559761, 1.0313292741775513, 0.23969750106334686, -0.4835168123245239, 0.1664896011352539, 0.24732603132724762, -0.4665347635746002, 0.630591630935669, -0.5091803669929504, 0.11562009155750275, -0.5102757215499878, 0.43301868438720703, -1.2142682075500488, 0.10644616931676865, 0.3354171812534332, -0.5690089464187622, 0.2786670923233032, 0.33499401807785034, -0.43778878450393677, -0.3603055477142334, -0.5507668256759644, 0.1723955124616623, 0.4991598427295685, -0.6813593506813049, 0.3848613500595093, 0.6501728296279907, 0.12706425786018372, -0.5308175086975098, -0.6896547079086304, 0.2033778727054596, -0.1331292688846588, -0.26001763343811035, 0.42361176013946533, 0.24714358150959015, -0.12620948255062103, 0.2577773630619049, -0.2707666754722595, 0.2620466947555542, 0.13151809573173523, -0.12790803611278534, -0.06012457236647606, 0.18782927095890045, 0.20601233839988708, 0.026539335027337074, -0.12680916488170624, -0.09823237359523773, -0.2802678942680359, 0.5745320916175842, 0.18761484324932098, -0.16696599125862122, -0.2589551508426666, 0.3445555567741394, 0.32834118604660034, -0.3724253475666046, 0.8366153836250305, 1.0382508039474487, -0.42401203513145447, -0.6809249520301819, -0.5216125845909119, -0.3011365830898285, -0.4766119718551636, 0.39664754271507263, -0.35599085688591003, -0.8380522131919861, 0.2971017360687256, 0.09281054139137268, 0.07917793095111847, 0.22321133315563202, 0.40601491928100586, -0.06662525236606598, 0.7897526025772095, 0.5415933132171631, -0.2293437123298645, 0.8185189366340637, -0.12115217745304108, 0.5594012141227722, -0.8277974128723145, 0.014485334046185017, -0.439861536026001, -0.45744678378105164, -0.6289107203483582, -0.02116449549794197, 0.5055060386657715, 0.04897557199001312, 0.006644976790994406, 0.3177168369293213, -0.784325122833252, 0.19921572506427765, 0.8688867092132568, 0.3410789668560028, 0.054018598049879074, 0.38857460021972656, -0.08484586328268051, 0.3190917670726776, -0.4551261365413666, -0.482209712266922, 1.0097765922546387, 0.11381237953901291, 0.7615079879760742, 0.0321786105632782, 0.8139858245849609, 0.46886926889419556, 0.8055047392845154, -0.4020015597343445, 0.6265978813171387, -0.4069700837135315, -0.6187019348144531, -0.2555445432662964, -0.3916202187538147, -0.9779688715934753, 0.21605126559734344, -0.3600415587425232, -0.7243403792381287, -0.03791902959346771, 0.411772757768631, -0.23632387816905975, 0.4367366433143616, -0.6463726162910461, 0.5267212986946106, -0.16575732827186584, -0.4039902091026306, 0.10262984782457352, -0.13226740062236786, 0.40156906843185425, -0.42554864287376404, 0.1995551884174347, -0.10037849843502045, -0.231051966547966, 0.6458250284194946, -0.44438058137893677, 0.7902170419692993, -0.39682015776634216, -0.2543155550956726, 0.6703431606292725, -0.13643315434455872, 0.7393209338188171, 0.05533343926072121, 0.2433277666568756, 0.2630535066127777, -0.21342064440250397, -0.3228479325771332, -0.22373518347740173, 0.47842881083488464, -0.5672387480735779, -0.8907673954963684, -0.4334106743335724, -0.16532301902770996, 0.006293454207479954, -0.04266511648893356, 0.6127602458000183, 0.3472430109977722, 0.3159729838371277, 0.236058309674263, 0.3583301603794098, -0.8645244836807251, 0.49229931831359863, 0.5061505436897278, -0.04303191229701042, -0.6241394281387329, 1.041861891746521, 0.019047537818551064, 0.08213091641664505, 0.3191694915294647, 0.36324259638786316, -0.5299063920974731, -0.582895040512085, -0.5481328964233398, 0.3736205995082855, -0.19114123284816742, -0.42792683839797974, -0.758050262928009, -0.06803280115127563, -0.36233407258987427, -0.16960188746452332, 0.06734355539083481, 0.3023657202720642, -0.2122318297624588, -0.111258365213871, 0.3132516145706177, 0.36870649456977844, 0.21798144280910492, 0.8707907795906067, -0.6526725888252258, 0.8252981901168823, 0.29885414242744446, 0.252404123544693, -0.09108637273311615, -0.6557073593139648, 0.06343695521354675, -0.09216853231191635, -0.38057005405426025, -1.1348544359207153, 0.49251899123191833, 0.16605988144874573, 0.7280428409576416, 0.18922576308250427, 0.23597808182239532, 0.7479053139686584, -0.5483452081680298, 0.827445387840271, -0.010268205776810646, -0.8174001574516296, 0.3525445759296417, -0.009633520618081093, 0.4645940959453583, 0.4686531126499176, 0.023151487112045288, -0.5528753399848938, -0.8764963150024414, -0.7986263632774353, -0.8274849653244019, 0.718390166759491, 0.24393358826637268, 0.3793823719024658, -0.40018197894096375, 0.5524128675460815, -0.09919071197509766, 0.5971760153770447, -0.7140629887580872, -0.25470051169395447, -0.20292139053344727, -0.3982866406440735, -0.1770559847354889, -0.37116140127182007, 0.22339142858982086, 0.2925224304199219, 0.7565995454788208, -0.21716605126857758, 0.5364939570426941, 0.19792841374874115, -0.10473641753196716, 0.08540640026330948, 0.12985347211360931, 0.5754140615463257, 0.22604325413703918, -0.047268886119127274, 0.3671046495437622, 0.14687496423721313, -0.8149328827857971, 0.42082032561302185, 0.017860047519207, -0.503512442111969, 0.1415654569864273, 0.5542016625404358, 0.5224747061729431, -0.1280284970998764, -0.7396852374076843, 0.5213626027107239, -0.15178140997886658, -0.20483683049678802, -0.3088052570819855, 0.18550415337085724, -0.003481720108538866, 0.11310586333274841, 0.399257630109787, -0.5386224985122681, -0.06076608970761299, -0.5320749878883362, 0.4617440700531006, 0.7876669764518738, -0.05598888546228409, -0.04863616079092026, 0.8122432827949524, 0.15454606711864471, -0.7408168315887451, 0.45765334367752075, -0.7515437006950378, -0.47116294503211975, 0.5954051613807678, 0.7181196808815002, 0.9436429738998413, -0.023201974108815193, 0.3887035846710205, 0.22909240424633026, 0.32964521646499634, -0.4329259693622589, 0.30967527627944946, 0.045076966285705566, -1.0101927518844604, -0.28302276134490967, -0.8675565123558044, -0.11551839858293533, 0.8342695832252502, -0.30969250202178955, 0.35309696197509766, -0.35640275478363037, -0.42406120896339417, 0.047929245978593826, 0.014079893007874489, -0.5163169503211975, 0.06695606559515, 0.2331227958202362, 0.8159435987472534, -0.9786636233329773, 0.7261171340942383, 0.9874582886695862, -0.17140087485313416, -0.5654988884925842, 0.31861355900764465, 0.30473610758781433, -0.804233193397522, 0.06318257749080658, 0.1177251935005188, -0.2411097139120102, 0.1094970628619194, -0.6617093086242676, -0.5731901526451111, 0.8264467120170593, 0.16621941328048706, -0.7206400036811829, 0.06508935987949371, -0.2422388643026352, 0.5465344786643982, -0.056431688368320465, 0.18266230821609497, 0.6967671513557434, 0.5705752372741699, -0.18896935880184174, -0.4404408037662506, -0.14974381029605865, -0.21843430399894714, 0.010758775286376476, 0.6050306558609009, -0.5375272631645203, 0.5108410120010376, 0.2165503054857254, -0.37270426750183105, -0.05277365818619728, 0.5326731204986572, 0.6787054538726807, 0.3804888129234314, 0.777932345867157, 0.5964645743370056, 0.5944307446479797, -0.07655351608991623, 1.002134084701538, -0.3139066696166992, -0.01088066678494215, 0.9193923473358154, 0.0004519826907198876, 0.5641912221908569, 0.16911262273788452, -0.16069097816944122, 0.07961797714233398, 0.38147780299186707, -0.16623356938362122, 0.500072717666626, 0.639691948890686, -0.36279675364494324, -0.07868405431509018, -0.07366111129522324, -0.03842436894774437, 0.4822518527507782, 0.21596887707710266, -0.3369789123535156, -0.28789883852005005, 0.12569929659366608, 0.3570598065853119, 0.3238615393638611, -0.23643821477890015, 0.807677149772644, 0.046936750411987305, -0.7346799373626709, 0.3299448788166046, 0.11496949195861816, 1.1596930027008057, -0.4803909361362457, -0.08556438237428665, -0.41605445742607117, 0.2362338751554489, 0.030090853571891785, -0.6601787805557251, 0.1562611311674118, 0.16576512157917023, 0.15868233144283295, -0.15685036778450012, 0.9153795838356018, -0.7395479679107666, -0.7439208626747131, 0.26393193006515503, 0.7285277247428894, 0.16398783028125763, -0.4170849323272705, -0.28821656107902527, -0.06005104258656502, 0.18198084831237793, -0.14229190349578857, 0.32566383481025696, 0.5388988256454468, -0.3674790561199188, 0.374506413936615, 0.7155585289001465, 0.6594309210777283, 0.16158676147460938, -0.23537951707839966, 0.48543718457221985, -0.7022184133529663, -0.4986773729324341, -0.9529604315757751, 0.2411440759897232, -0.18130725622177124, -0.31615936756134033, 0.4753504991531372, 0.12535524368286133, 1.138018012046814, 0.031774554401636124, 0.8859127759933472, -0.036139559000730515, 0.30469176173210144, -0.3248293697834015, 0.7287037968635559, -0.7802945375442505, 0.12938719987869263, -0.31142789125442505, -0.9376973509788513, -0.05918562784790993, 0.6701347827911377, -0.28515711426734924, -0.14417721331119537, 0.5200535655021667, 0.8979394435882568, 0.07755205780267715, -0.23732782900333405, 0.44289055466651917, -0.14804387092590332, 0.7996340990066528, 0.24833574891090393, 0.7520226836204529, -0.1605905145406723, 0.7530298233032227, -0.08453201502561569, -0.26230329275131226, -0.055713146924972534, -0.9616187214851379, -0.8012798428535461, -0.4738253057003021, -0.23949401080608368, -0.19996459782123566, -0.070765919983387, 0.41432061791419983, 0.6005045771598816, -0.7597854137420654, 0.1608412116765976, 0.09815660864114761, -0.0033816336654126644, -0.25202399492263794, -0.18918974697589874, 0.4189109802246094, -0.24354809522628784, -0.8269995450973511, 0.22383414208889008, 0.0885452851653099, -0.05977146327495575, -0.12883137166500092, 0.2385634183883667, -0.10127659142017365, 0.019059164449572563, 0.4828123450279236, 0.05332154408097267, -0.6230884790420532, -0.4965053200721741, -0.17129258811473846, 0.10987533628940582, -0.30812928080558777, 0.730177104473114, -0.98014897108078, 0.4825902581214905, 0.47727447748184204, 0.8766067028045654, 0.4007614850997925, 0.4305451512336731, 0.43776440620422363, -0.9131450057029724, 0.2623116672039032, -0.07903409004211426, 0.3928976058959961, 0.19218434393405914, -0.3093825578689575, 0.4438599944114685, 0.3335304856300354, -0.2982490360736847, -0.8808538317680359, 0.19588106870651245, -0.09646767377853394, -0.5393533110618591, 1.2585500478744507, -0.012036627158522606, -0.2925798296928406, -0.14860939979553223, -0.324593186378479, 0.23040513694286346, -0.6305992007255554, 0.9016560912132263, 0.8021713495254517, 0.07817956805229187, -0.4256148636341095, -0.5935711860656738, 0.6148114800453186, 0.10593993216753006, -0.9295626282691956, -0.20076067745685577, 0.6367737650871277, 0.16012124717235565, 0.3440224826335907, 0.7361211180686951, 0.04527701437473297, -0.02477271668612957, -0.05635394901037216, -0.005360351875424385, -0.3828860819339752, -0.45203542709350586, -0.2708316743373871, 0.28287768363952637, -0.27671384811401367, -0.5136115550994873 ]
http://arxiv.org/abs/2402.09193v2
http://arxiv.org/pdf/2402.09193v2
(Ir)rationality and Cognitive Biases in Large Language Models
2024-02-14T14:17:21
2024-02-15T11:09:09
Olivia Macmillan-Scott, Mirco Musolesi
cs.CL
cs.CL, cs.AI, cs.HC
Do large language models (LLMs) display rational reasoning? LLMs have been shown to contain human biases due to the data they have been trained on; whether this is reflected in rational reasoning remains less clear. In this paper, we answer this question by evaluating seven language models using tasks from the cognitive psychology literature. We find that, like humans, LLMs display irrationality in these tasks. However, the way this irrationality is displayed does not reflect that shown by humans. When incorrect answers are given by LLMs to these tasks, they are often incorrect in ways that differ from human-like biases. On top of this, the LLMs reveal an additional layer of irrationality in the significant inconsistency of the responses. Aside from the experimental results, this paper seeks to make a methodological contribution by showing how we can assess and compare different capabilities of these types of models, in this case with respect to rational reasoning.
[ -0.5310888290405273, -0.7751959562301636, 0.9411617517471313, 0.17760679125785828, 0.1410771906375885, -0.06762097775936127, -0.6547827124595642, -0.4963943064212799, -0.07265593856573105, 0.4792425036430359, -0.5857952237129211, -0.03588135167956352, -0.6679004430770874, 0.19247138500213623, -0.011430763639509678, 0.5604941844940186, 0.048552244901657104, 0.5418601036071777, -0.3911898732185364, -0.3554581105709076, -0.5387181043624878, -0.8110925555229187, -0.5127826929092407, -0.6972383856773376, 0.34302157163619995, 0.4045797288417816, 0.8766284584999084, 0.3055942952632904, 0.34057801961898804, 0.3273254930973053, 0.06375803798437119, -0.14129236340522766, -0.4242427349090576, 0.16735342144966125, -0.43262723088264465, -0.6507159471511841, -0.288812518119812, 0.35892459750175476, 0.3970930278301239, 0.7263889312744141, 0.2115246057510376, 0.08768210560083389, -0.24191640317440033, 0.7230485081672668, -0.4392625391483307, 0.16367372870445251, -0.6787439584732056, -0.10865280777215958, 0.08153924345970154, 0.0011677811853587627, -0.7544805407524109, -0.205253005027771, 0.22105731070041656, -0.5042093992233276, -0.06896773725748062, 0.31871297955513, 0.45854610204696655, 0.1252395063638687, -0.6776223182678223, -0.5101442337036133, -0.8599385619163513, 1.2049280405044556, -0.9039643406867981, 0.3121322989463806, 0.5495745539665222, 0.280205637216568, -0.13229286670684814, -0.11993584781885147, -0.7677341103553772, -0.9994339346885681, 0.029838066548109055, -0.05658892169594765, 0.0021974837873131037, 0.027441387996077538, 0.8304039835929871, 0.20959314703941345, -0.46138685941696167, 0.1416638344526291, -0.12288696318864822, -0.13949953019618988, 0.8100801706314087, 0.08516543358564377, 0.27284976840019226, -0.01796787977218628, -0.28075650334358215, -0.2660728394985199, -0.5452021360397339, -0.07443782687187195, 0.5299127697944641, -0.12702207267284393, 0.2248452603816986, 1.0696594715118408, -0.2741687297821045, 0.528862714767456, 0.03925163671374321, -0.25379323959350586, -0.13963904976844788, 0.10740119963884354, -0.23221196234226227, -0.19153931736946106, 0.5185717344284058, 0.43666982650756836, 0.9116904139518738, 0.011503515765070915, -0.4425782263278961, 0.5568194389343262, 0.11041469871997833, -0.3270265460014343, 0.05956556275486946, 0.19399946928024292, -0.4589998424053192, -0.08393654972314835, -0.2890036404132843, -0.19800430536270142, -0.6395776271820068, -0.5988985300064087, 0.2234332114458084, -0.4624328017234802, -0.2479299008846283, 0.2443072646856308, -0.11428245902061462, 0.2046772986650467, 0.48518839478492737, -0.8232471346855164, 0.36059078574180603, 0.6913102269172668, 0.19366231560707092, -0.09198608994483948, -0.23679986596107483, -0.12350942194461823, -0.13069316744804382, -0.33311665058135986, 0.8815191984176636, -0.7384319305419922, -0.23391111195087433, -0.010827743448317051, -0.11427517235279083, -0.08666820824146271, -0.7540750503540039, 0.7117995023727417, -0.597987174987793, 0.21685713529586792, -0.7260296940803528, -0.7453262805938721, -0.47165223956108093, 0.47225847840309143, -0.5707228183746338, 0.6451987624168396, 0.13384908437728882, -0.7444315552711487, 0.19915631413459778, -0.43978258967399597, -0.08657364547252655, -0.14572949707508087, -0.392928808927536, 0.12350495159626007, 0.142885223031044, 0.033315740525722504, 0.31037670373916626, -0.6200478672981262, 0.3783571124076843, -0.7903881072998047, -0.20163896679878235, 1.0220896005630493, -0.6486740708351135, 0.9240463972091675, 0.19124794006347656, -0.4126709997653961, 0.18169644474983215, -0.5139380097389221, 0.1239376813173294, 0.20541730523109436, -0.37430712580680847, -0.3367483615875244, 0.203351691365242, 0.04294446483254433, 0.47830456495285034, 0.18072816729545593, -0.43846064805984497, 0.520996630191803, -0.13660845160484314, 0.5885984301567078, 0.8065158128738403, -0.35962560772895813, 0.5964648127555847, -0.7889754772186279, 0.4887124300003052, 0.05024970322847366, -0.00231815199367702, 0.22793595492839813, -0.5728800296783447, -0.885674238204956, -0.19755896925926208, 0.0033193062990903854, 0.7386074066162109, -0.38804107904434204, 0.26278752088546753, -0.17105408012866974, -0.41857969760894775, -0.13991105556488037, 0.03905026987195015, 0.252590149641037, 0.4453314244747162, 0.07421877235174179, -0.02987731620669365, -0.3804132342338562, -1.3221274614334106, -0.5808249711990356, -0.299899697303772, -0.14231158792972565, 0.34563711285591125, 0.6013103723526001, -0.3207957446575165, 0.7349106669425964, -0.24913817644119263, 0.028918830677866936, -0.2001451700925827, 0.18873190879821777, -0.15994596481323242, 0.41748714447021484, 0.36601579189300537, -0.3908703625202179, -0.08958424627780914, -0.0636998638510704, -0.9377077221870422, -0.13097421824932098, -0.08592629432678223, -0.007209863513708115, 0.6172289252281189, 0.2958197295665741, -0.9826667308807373, 0.29421132802963257, 0.29406213760375977, -0.492673397064209, 0.714719295501709, -0.0804472491145134, 0.18910858035087585, -0.4997507929801941, -0.03722592070698738, 0.25708669424057007, -0.0912836566567421, -0.5149922966957092, -0.24909774959087372, -0.03974292427301407, 0.31992998719215393, -0.10770527273416519, 0.5880521535873413, -0.42375171184539795, -0.3068140745162964, -0.2366984486579895, 0.24548909068107605, 0.043806955218315125, 0.515691339969635, 0.0721796303987503, 0.46039047837257385, 0.3534367084503174, -0.25221845507621765, 0.3637884855270386, -0.38505998253822327, -0.41075605154037476, 0.475980669260025, -0.4487723708152771, 0.1874905228614807, -0.360621839761734, 0.4510178864002228, -0.8949734568595886, -0.39690205454826355, 0.15677960216999054, -0.43964052200317383, -0.03603136166930199, 0.13491077721118927, -0.5078273415565491, -0.3477727770805359, -0.25912046432495117, 0.5538612008094788, 0.6117557287216187, -0.19956472516059875, 0.6050920486450195, 0.2627917230129242, -0.07221728563308716, -0.5603556036949158, -0.7357916235923767, -0.3013020157814026, -0.31051507592201233, -0.8923934698104858, -0.15872222185134888, -0.28476476669311523, -1.0857689380645752, -0.19985835254192352, -0.04098701849579811, -0.1522357016801834, -0.034577593207359314, 0.1832226812839508, 0.4487188160419464, -0.39331358671188354, 0.11431637406349182, -0.2933567464351654, 0.25555485486984253, 0.42638352513313293, -0.12329071760177612, 0.5886673927307129, -0.36245328187942505, -0.6228911876678467, -0.46122097969055176, 0.34068089723587036, 0.9458755254745483, 0.010303759016096592, 0.6676986813545227, 0.09434731304645538, -0.5176154971122742, 0.020615512505173683, -1.0920352935791016, -0.34591612219810486, -0.37231341004371643, 0.18391990661621094, -0.17803718149662018, -0.995693027973175, 0.7296578884124756, 0.198265939950943, -0.07984393835067749, 0.5847370028495789, 0.7892454862594604, -0.030046051368117332, 1.4831438064575195, 0.15872563421726227, 0.11913342028856277, 0.22836782038211823, -0.16853690147399902, 0.17427751421928406, -0.8087368011474609, -0.2718173861503601, -0.4681256115436554, -0.07401470094919205, -0.5253987908363342, -0.35190126299858093, -0.06560555100440979, 0.18684564530849457, -0.6611303687095642, -0.2240930050611496, -0.3281613290309906, 0.5607525110244751, 0.3130865693092346, -0.13739603757858276, 0.40120652318000793, -0.10821844637393951, 0.03802250325679779, -0.1864989697933197, -0.6633272767066956, -1.0856842994689941, 0.9799833297729492, 0.500751256942749, 0.6816868185997009, 0.04333795607089996, 0.015116995200514793, 0.3642447888851166, 0.8974181413650513, -0.8976117372512817, 0.6704867482185364, 0.3606405258178711, -0.89432293176651, -0.35478222370147705, -0.43023285269737244, -0.5859681367874146, 0.49959176778793335, -0.4492679834365845, -0.7630547881126404, 0.09606991708278656, 0.12128695100545883, -0.005699194967746735, 0.24606719613075256, -0.9394650459289551, 0.6330934762954712, -0.3829291760921478, -0.2030009925365448, -0.4355242848396301, -0.1902078539133072, 0.897646427154541, 0.0030088205821812153, 0.37092968821525574, -0.3491586446762085, -0.0038673141971230507, 0.750377893447876, -0.12315140664577484, 0.6968225836753845, -0.10000255703926086, -0.19768312573432922, 0.2436724752187729, 0.21373777091503143, 0.49686697125434875, 0.2777158319950104, -0.2113531231880188, -0.028517847880721092, -0.03423912078142166, -0.6763094067573547, -0.6504744291305542, 0.8636146187782288, -0.8756939172744751, -0.9416909217834473, -0.6520348787307739, -0.8295913934707642, -0.42953088879585266, 0.29629698395729065, 0.1280931532382965, 0.38183140754699707, -0.23419252038002014, -0.11780717223882675, 0.6180161237716675, -0.3459325134754181, 0.16764609515666962, 0.4338074326515198, -0.31641194224357605, -0.18610771000385284, 0.5288638472557068, 0.32097533345222473, 0.52711021900177, -0.06780543923377991, 0.056050512939691544, -0.3562459349632263, -0.3655715584754944, -0.25886401534080505, 0.4001665711402893, -0.9992565512657166, 0.1964297741651535, -0.33275774121284485, 0.0106658935546875, -0.5400991439819336, -0.27498987317085266, -0.2262824922800064, -0.43027493357658386, -0.1333591490983963, 0.10639137029647827, 0.3284232020378113, 1.2449860572814941, 0.20880922675132751, 0.013654360547661781, -0.31991705298423767, 0.14060862362384796, 0.407622367143631, 0.23711836338043213, 0.4076733887195587, -0.528257429599762, 0.07048597931861877, 0.36396321654319763, -0.14697138965129852, -0.7779960036277771, 0.2529626786708832, -0.5117050409317017, 0.4988386332988739, 0.5524472594261169, 0.08801945298910141, 0.40859174728393555, -0.3711051940917969, 0.6626259684562683, 0.1321536749601364, -0.9551749229431152, 0.11399815231561661, -0.5811503529548645, 0.2793740928173065, 0.3310408294200897, 0.5233250856399536, -0.4316740930080414, -0.41461503505706787, -0.6955251097679138, -0.3967755436897278, 0.6678876280784607, 0.06015655770897865, -0.07847139984369278, -0.2388569861650467, 0.29965299367904663, -0.04226594418287277, -0.1922825425863266, -0.9256733059883118, -0.06029507890343666, -0.05143536999821663, -0.02750709466636181, 0.02386673167347908, -0.4754193127155304, -0.24983347952365875, -0.15534047782421112, 0.6142465472221375, -0.03194868192076683, 0.15290646255016327, 0.37579548358917236, -0.183162659406662, -0.13555006682872772, 0.49610060453414917, 0.9462704062461853, 0.924947202205658, -0.15017136931419373, 0.15334771573543549, 0.4336308240890503, -0.21556231379508972, 0.2298501431941986, -0.3537304401397705, 0.05189412832260132, -0.4404681921005249, 0.6560433506965637, 0.5963112711906433, -0.05828913301229477, -1.17583167552948, 0.5059653520584106, -0.16301627457141876, -0.13871851563453674, -0.7444230318069458, -0.03554731607437134, 0.335659384727478, 0.381041556596756, 0.2852698862552643, 0.36492300033569336, -0.005378889851272106, -0.8127567172050476, -0.35971254110336304, 0.7060150504112244, -0.06536306440830231, -0.1680116057395935, 0.326320618391037, -0.07606963813304901, -0.42116016149520874, 0.7792349457740784, -0.07405503839254379, -0.515394389629364, 0.6144635677337646, 0.4540414810180664, 0.5746164321899414, -0.011596583761274815, -0.24079588055610657, 0.0880303829908371, 0.5924715995788574, -0.38082945346832275, 0.1597636193037033, 0.24981415271759033, -0.9759224653244019, -0.7086151838302612, -0.15578214824199677, -0.4551513195037842, 0.30050739645957947, -0.6896789073944092, -0.08739742636680603, -0.5141251683235168, -0.3446641266345978, 0.1311730444431305, -0.06434959918260574, -0.46319955587387085, 0.20694410800933838, 0.34761443734169006, 0.9507036209106445, -0.8110255002975464, 0.908013641834259, 0.709092915058136, -0.3532197177410126, -0.6600896120071411, -0.05087108910083771, -0.13126333057880402, -0.744158923625946, 0.9327621459960938, 0.2382286638021469, -0.10123288631439209, -0.4082792401313782, -0.7427295446395874, -0.8543692231178284, 0.7296648621559143, 0.5600610971450806, -0.3539603650569916, 0.13817906379699707, 0.2983551323413849, 0.5953716039657593, -0.6375187039375305, 0.5026119351387024, 0.5529820919036865, 0.7788494229316711, -0.18463492393493652, -0.7819168567657471, 0.05730266496539116, -0.10368373990058899, 0.15728627145290375, -0.32562118768692017, -0.5258159637451172, 0.9547555446624756, -0.14556793868541718, -0.1512666791677475, -0.04055202007293701, 0.5372427701950073, 0.5574819445610046, 0.2647601068019867, 0.5837538838386536, 0.469651997089386, 0.7860544323921204, -0.0878409594297409, 1.3146673440933228, -0.08418899029493332, 0.15482893586158752, 0.785832405090332, -0.6274052858352661, 0.7668651342391968, 0.49854862689971924, -0.025251610204577446, 0.33616891503334045, 0.4978928864002228, 0.2599313259124756, -0.051236484199762344, 0.5446730852127075, -0.3449039161205292, -0.5966132283210754, -0.12213579565286636, -0.06312859058380127, 0.16414032876491547, 0.5065065026283264, -0.19701850414276123, 0.15594327449798584, 0.06525611132383347, 0.28318315744400024, 0.21152885258197784, -0.4140721559524536, 0.4421820640563965, 0.14823484420776367, -1.1869250535964966, 0.7159479856491089, 0.23819231986999512, 0.7063762545585632, -0.29997873306274414, 0.1555645614862442, -0.2042473554611206, 0.3119332790374756, -0.255242258310318, -0.8584698438644409, 0.38700562715530396, 0.0897509902715683, -0.5517565011978149, -0.13327589631080627, 0.6826953887939453, -0.07255861163139343, -0.4086516797542572, 0.349361777305603, 0.5402510166168213, 0.025237513706088066, -0.18999460339546204, -0.6624087691307068, 0.28261813521385193, 0.10653702914714813, -0.5370875597000122, 0.33392226696014404, 0.48736461997032166, -0.5790896415710449, 1.0586285591125488, 0.6274008750915527, -0.08205495029687881, 0.17660295963287354, 0.01883096806704998, 0.73222815990448, -0.9435536861419678, 0.2059018760919571, -0.9259639978408813, 0.14888598024845123, -0.09968171268701553, -0.2671499252319336, 0.7804540395736694, 0.38200727105140686, 0.8792722225189209, -0.2549442946910858, 0.8778074979782104, 0.1157459020614624, 0.40905851125717163, -0.41340428590774536, 0.4596197009086609, -0.1418611854314804, 0.47301286458969116, 0.05251986160874367, -0.9326029419898987, -0.19585606455802917, 0.9712576270103455, -0.8561362624168396, 0.27341943979263306, 0.7586590051651001, 0.8118378520011902, 0.06886179745197296, 0.2836335301399231, 0.32688260078430176, 0.5153703689575195, 0.025701750069856644, 0.5112061500549316, 1.393965244293213, 0.004924547392874956, 0.015984173864126205, -0.1087876632809639, -0.34805601835250854, -0.06702648103237152, -0.6450332403182983, -1.1581953763961792, -0.32784852385520935, -0.15853926539421082, -0.3176000416278839, -0.182259663939476, 1.1430031061172485, 0.43691331148147583, -0.7823333740234375, -0.450843870639801, 0.05669298395514488, 0.17653515934944153, 0.1321835070848465, -0.26912492513656616, -0.018835583701729774, -0.1869667023420334, -0.5682356953620911, 0.20644788444042206, 0.11872264742851257, -0.0007980885566212237, -0.6470423340797424, -0.08741557598114014, -0.1480652540922165, 0.5037809014320374, 0.7661730647087097, 0.1411767154932022, -1.166533350944519, -0.5696548223495483, 0.23286427557468414, -0.25587403774261475, -0.10014400631189346, 0.7805621027946472, -0.6862121820449829, -0.05143892392516136, 0.5911622047424316, 0.2265872210264206, 0.11306186765432358, -0.2924084961414337, 0.6442281603813171, 0.08751846849918365, 0.18601693212985992, 0.48297199606895447, 0.6209964752197266, 0.3732217252254486, -0.13590002059936523, 0.25079694390296936, 0.11597026884555817, -0.8529447317123413, -0.7911312580108643, 0.4135902523994446, -1.2267863750457764, -0.3372446894645691, 1.3273534774780273, -0.022563906386494637, -0.18372933566570282, -0.1611357033252716, -0.42011281847953796, -0.016826337203383446, -0.2570513188838959, 0.7503519654273987, 1.1928154230117798, -0.3328058421611786, 0.23608098924160004, -0.8583609461784363, 0.3910575807094574, 0.6810070872306824, -0.5542420148849487, 0.2921742796897888, 0.7848575115203857, 0.3392561376094818, 0.12380342930555344, 0.6851938366889954, -0.10769949853420258, 0.14099633693695068, -0.14836767315864563, -0.008976555429399014, 0.33502352237701416, 0.12059157341718674, -0.4173125922679901, -0.20046712458133698, 0.6227050423622131, 0.6714892983436584 ]
http://arxiv.org/abs/2402.09177v1
http://arxiv.org/pdf/2402.09177v1
Leveraging the Context through Multi-Round Interactions for Jailbreaking Attacks
2024-02-14T13:45:19
2024-02-14T13:45:19
Yixin Cheng, Markos Georgopoulos, Volkan Cevher, Grigorios G. Chrysos
cs.LG
cs.LG, cs.AI, cs.CL
Large Language Models (LLMs) are susceptible to Jailbreaking attacks, which aim to extract harmful information by subtly modifying the attack query. As defense mechanisms evolve, directly obtaining harmful information becomes increasingly challenging for Jailbreaking attacks. In this work, inspired by human practices of indirect context to elicit harmful information, we focus on a new attack form called Contextual Interaction Attack. The idea relies on the autoregressive nature of the generation process in LLMs. We contend that the prior context--the information preceding the attack query--plays a pivotal role in enabling potent Jailbreaking attacks. Specifically, we propose an approach that leverages preliminary question-answer pairs to interact with the LLM. By doing so, we guide the responses of the model toward revealing the 'desired' harmful information. We conduct experiments on four different LLMs and demonstrate the efficacy of this attack, which is black-box and can also transfer across LLMs. We believe this can lead to further developments and understanding of the context vector in LLMs.
[ -0.5171610116958618, -1.4471479654312134, 0.6173216104507446, 0.06916550546884537, -0.2026580274105072, -0.05718107521533966, -0.23496848344802856, -0.664025604724884, 0.34162741899490356, 0.8051038980484009, -0.5499189496040344, -0.04316878691315651, -0.6003860831260681, -0.06134282052516937, -0.4559486210346222, 0.9512345194816589, 0.09612119197845459, -0.32850438356399536, 0.08009639382362366, -0.06739700585603714, -0.8231816291809082, -1.0164624452590942, -0.45416173338890076, 0.14170552790164948, 0.5704658627510071, 0.23568736016750336, 0.4848615527153015, 0.16156619787216187, 0.46154752373695374, 0.32831963896751404, 0.10746905952692032, -0.1459178477525711, -0.521241307258606, 0.6386704444885254, -0.16739831864833832, -0.3925071060657501, -0.30826494097709656, 0.14462824165821075, 0.3017473816871643, 0.4786902070045471, -0.09786666929721832, -0.11710555851459503, -0.15521395206451416, 0.5766509175300598, -0.8031152486801147, -0.2590632438659668, -0.9881375432014465, -0.00831889919936657, -0.4139631986618042, -0.17685732245445251, -0.6291612386703491, 0.08673802018165588, -0.05831458792090416, -0.1869507133960724, -0.40745383501052856, 0.1452164500951767, 0.3972976505756378, 0.09961006790399551, -0.4858997166156769, -0.40773940086364746, -0.4896646738052368, 0.38964173197746277, -0.7494445443153381, 0.05620332807302475, 0.28853029012680054, 0.2713862657546997, -0.506253182888031, -0.5446972846984863, -0.5673450231552124, -0.4203401207923889, -0.19438667595386505, -0.28486689925193787, -0.3386428952217102, -0.000660098041407764, 0.37370455265045166, 0.01080505270510912, -0.08436257392168045, -0.09881750494241714, -0.533000111579895, 0.006889000069350004, 0.5897857546806335, 0.13747479021549225, 0.6612157821655273, -0.4631919860839844, -0.6053993105888367, 0.08883549273014069, -0.9281390905380249, 0.07584325969219208, 0.24721895158290863, 0.2547559440135956, -0.22456872463226318, 0.674185037612915, 0.09420135617256165, 0.9716945886611938, 0.2822314500808716, 0.11383941024541855, -0.10860185325145721, -0.35471421480178833, -0.25542956590652466, 0.18576577305793762, 0.9027969837188721, 0.4959465265274048, 0.07106520235538483, -0.3231894373893738, -0.07044167071580887, -0.3797946274280548, 0.6148890852928162, -1.0390957593917847, -0.10124769061803818, 0.21986350417137146, -0.022646430879831314, -0.5856285095214844, 0.3348304331302643, -0.8432360887527466, -0.5851171612739563, 0.058123715221881866, 0.40413394570350647, -0.34057673811912537, -0.22085236012935638, -0.1495915651321411, -0.03632977977395058, 0.33942911028862, 0.10972172766923904, -0.8671358227729797, 0.21270832419395447, 0.40553539991378784, 0.8301742076873779, 0.008206943050026894, -0.24019241333007812, -0.8897933959960938, 0.5901576280593872, -0.1388254314661026, 0.6192877292633057, -0.5354092121124268, -0.570557177066803, -0.22267776727676392, -0.006382134277373552, -0.02322613075375557, -0.37143179774284363, 0.11278042197227478, -0.8416290283203125, -0.15336593985557556, -0.24599827826023102, -0.35898932814598083, 0.04640119522809982, 0.37082573771476746, -0.8232133388519287, 0.6703475117683411, -0.20546270906925201, -1.030444622039795, 0.0785662829875946, -0.7293269634246826, -0.5715870261192322, -0.030522288754582405, -0.140128031373024, -0.1728857308626175, 0.1645454317331314, 0.16994252800941467, 0.5688099265098572, 0.10549421608448029, 0.3977687358856201, -0.62257981300354, -0.044051751494407654, 0.524677038192749, -0.23506514728069305, 0.660452127456665, 0.2914090156555176, -0.4753861427307129, 0.12544207274913788, -0.509455144405365, -0.20918413996696472, 0.38024964928627014, -0.056673794984817505, -0.7879834771156311, 0.07041224092245102, -0.24708887934684753, 0.2879641652107239, 0.2625277042388916, -0.48136866092681885, 0.44093382358551025, -0.42029300332069397, 0.7726964354515076, 0.7184059023857117, 0.36417073011398315, 0.5023757219314575, -0.03298007324337959, 0.3477434515953064, -0.006411697715520859, 0.13766437768936157, -0.39627084136009216, -0.17035633325576782, -0.20401133596897125, 0.028948433697223663, -0.12073779851198196, 0.5293176174163818, -0.5839502811431885, 0.16399414837360382, 0.12061513215303421, -0.34948596358299255, -0.03153739124536514, 0.2614794671535492, 0.294663667678833, 0.6009390354156494, 0.41535356640815735, -0.2788417935371399, -0.6597435474395752, -0.8079574108123779, -0.4397584795951843, -0.12750796973705292, 0.1812046766281128, 0.41821449995040894, 0.3665269613265991, -0.22526510059833527, 1.056197166442871, -0.6223896741867065, -0.01424889825284481, -0.30851802229881287, -0.03243442252278328, 0.03302031382918358, 0.5494878888130188, 0.7678588032722473, -0.7964210510253906, -0.245575949549675, -0.3557032644748688, -0.9818115234375, -0.17617671191692352, -0.0557171069085598, -0.16952800750732422, -0.12156674265861511, 1.1339932680130005, -0.43543049693107605, 0.4078977704048157, 0.38898393511772156, -0.5754842162132263, 0.5926845669746399, -0.013461047783493996, 0.20825383067131042, -1.1006110906600952, -0.13235293328762054, -0.026470758020877838, -0.23951531946659088, -1.1047332286834717, 0.4007287621498108, 0.02327043004333973, -0.0777159035205841, -0.609275758266449, 0.7379493117332458, -0.5229441523551941, 0.01689830608665943, -0.33971792459487915, 0.2410726398229599, -0.03573472425341606, 0.1495726853609085, -0.19386981427669525, 0.9353333711624146, 0.15349015593528748, -0.2673351466655731, 0.1772114634513855, 0.1269935667514801, -0.23753103613853455, 0.5535837411880493, -0.7600558996200562, 0.39577266573905945, -0.10780038684606552, 0.32413050532341003, -0.913743257522583, -0.31668204069137573, 0.31263643503189087, -0.339839369058609, 0.23110677301883698, -0.21552440524101257, -0.48620522022247314, -0.0922204926609993, -0.42665424942970276, 0.592490017414093, 0.13064736127853394, -0.5863630771636963, 0.5157498717308044, 0.6865706443786621, -0.30523353815078735, -0.5142567753791809, -0.6245118975639343, 0.5244584083557129, -0.6827856302261353, -0.8069022297859192, 0.19853085279464722, -0.1615593433380127, -0.6599404215812683, -0.46968314051628113, -0.05543652921915054, -0.031818509101867676, 0.42678266763687134, 0.3172217309474945, 0.38305601477622986, 0.14370274543762207, -0.27176350355148315, -0.029769450426101685, 0.2798687219619751, 0.4067405164241791, -0.006859702989459038, 0.5793067812919617, -0.04473826289176941, -0.1688058227300644, -0.19698211550712585, 0.4147578775882721, 0.6616532802581787, -0.258649080991745, 0.928762674331665, 0.10444488376379013, -0.23355615139007568, 0.012147295288741589, -0.6916107535362244, -0.29260820150375366, -0.561722457408905, 0.395629346370697, -0.5421895980834961, -1.0313416719436646, 0.4964321255683899, -0.11051879823207855, -0.17439547181129456, -0.091529980301857, 0.48439130187034607, 0.11376461386680603, 0.8036410212516785, 0.659957766532898, -0.4116607904434204, 0.7381287217140198, 0.05166415497660637, 0.22543710470199585, -1.134443759918213, -0.2108878791332245, -0.1932593286037445, 0.10977697372436523, -0.14209242165088654, -0.22107577323913574, 0.31910136342048645, 0.7165952920913696, -0.19872133433818817, 0.5785484910011292, -0.2486116737127304, 0.45018282532691956, 0.08806802332401276, 0.21868087351322174, 0.20436735451221466, -0.24159632623195648, -0.3271999657154083, 0.16987328231334686, -0.4795551896095276, -0.4202480614185333, 1.1146774291992188, 0.23835469782352448, 0.7819364666938782, 0.33742040395736694, 0.6648501753807068, 0.33957639336586, 0.5245280265808105, -0.33088430762290955, 0.418465256690979, 0.36119499802589417, -0.7012282013893127, -0.23394675552845, -0.11585671454668045, -0.9561936259269714, 0.4922972619533539, -0.17101341485977173, -1.3424924612045288, -0.1611170917749405, 0.09394241869449615, -0.4316386282444, 0.39615440368652344, -0.8901038765907288, 0.905829906463623, -0.316624253988266, -0.6782062649726868, -0.09518103301525116, -0.9240168333053589, 0.7665639519691467, -0.1708793193101883, 0.8464372754096985, 0.11523569375276566, 0.27496394515037537, 0.5718538761138916, -0.633642852306366, 1.0590734481811523, -0.3662320077419281, -0.3319433033466339, 0.20425724983215332, 0.2631393074989319, 0.7357292175292969, 0.5220468044281006, 0.05049342289566994, -0.11410722136497498, -0.17352049052715302, -0.22881343960762024, -0.6545611023902893, 0.7760217189788818, -0.5328025817871094, -1.0709714889526367, -0.24368488788604736, -0.6010915040969849, -0.13561442494392395, 0.25354063510894775, -0.03705329820513725, 0.3715449571609497, -0.23507237434387207, -0.041939374059438705, 0.573257565498352, -0.26249006390571594, 0.6153169870376587, 0.4803917407989502, -0.3142308294773102, -0.3263568580150604, 0.4696764647960663, -0.1986510008573532, 0.5217357277870178, 0.05858788266777992, 0.0838877335190773, 0.0077100167982280254, -0.5310525894165039, -0.3020501434803009, 0.04318848252296448, -0.5706323385238647, -0.23008106648921967, -0.6788994073867798, -0.22785528004169464, -0.38668006658554077, -0.40727654099464417, -0.07394462823867798, -0.06515344977378845, 0.1307341605424881, -0.2296808660030365, 0.36048173904418945, 0.7544650435447693, -0.14864249527454376, 0.46525895595550537, -0.8766573667526245, 0.3508132994174957, 0.496060311794281, -0.028569167479872704, 0.10517196357250214, -0.15487785637378693, -0.026517421007156372, -0.049020759761333466, -0.24906475841999054, -1.4972479343414307, 0.2806958854198456, -0.23207636177539825, 0.4218916594982147, 0.2965274155139923, 0.1229388490319252, 0.633236825466156, -0.876679539680481, 0.7225533127784729, 0.18244703114032745, -0.9995402693748474, 0.8285238742828369, -0.3948768079280853, 0.2209780365228653, 0.6685367226600647, -0.03983166441321373, -0.6276996731758118, -0.7891175746917725, -0.5339334607124329, -1.1437326669692993, 0.6440553665161133, 0.1087249144911766, 0.39508917927742004, -0.2027023881673813, 0.6722134947776794, -0.19572971761226654, 0.39090272784233093, -1.0201267004013062, -0.3403606116771698, -0.1736270636320114, 0.22138532996177673, 0.11042401939630508, -0.32032310962677, -0.335970938205719, -0.2561909854412079, 0.2310333251953125, 0.20471371710300446, -0.0057412413880229, 0.2742304801940918, -0.5323680639266968, 0.11825381964445114, 0.4416210651397705, 0.6588700413703918, 0.45036375522613525, -0.15923626720905304, 0.1986851543188095, 0.19527244567871094, -0.5633791089057922, 0.2936886250972748, 0.037167131900787354, -0.16160787642002106, -0.4913349449634552, 0.29355353116989136, 0.8046481013298035, 0.3314650356769562, -0.7088612914085388, 0.6458995342254639, -0.22155064344406128, 0.19642464816570282, -0.4737009108066559, 0.167022705078125, -0.018540194258093834, 0.4220665991306305, 0.5541743040084839, -0.17426344752311707, 0.03215475380420685, -0.7292152047157288, 0.5024722814559937, 0.8259531855583191, -0.4664408564567566, -0.3250596523284912, 0.7683553099632263, 0.1758764684200287, -0.234470397233963, 0.4277156889438629, -0.05376366898417473, -0.6561617851257324, 0.644706130027771, 0.7429036498069763, 0.6103774905204773, -0.31992068886756897, -0.13407067954540253, 0.21393674612045288, 0.4395524859428406, 0.343246728181839, -0.12184859812259674, -0.3197561800479889, -0.6936647295951843, -0.5415281653404236, -0.4431590139865875, -0.27556517720222473, 0.39279037714004517, -0.7194387316703796, 0.11386274546384811, -0.5342743396759033, -0.026906991377472878, -0.05872267484664917, -0.3287888169288635, -0.2027815729379654, 0.015971094369888306, 0.1791471689939499, 0.7308260798454285, -0.582136332988739, 0.9802594780921936, 0.5826364755630493, -0.28304240107536316, -0.5987752676010132, 0.17930729687213898, 0.1801520586013794, -0.631033718585968, 0.9563882946968079, 0.5465125441551208, -0.07662574201822281, -0.10183095186948776, -0.7407901883125305, -0.8644727468490601, 0.7743538022041321, 0.20962601900100708, -0.6036884784698486, -0.08610707521438599, -0.09350438416004181, 0.15236249566078186, -0.4506223797798157, 0.12079786509275436, 0.7527947425842285, 0.5654810667037964, -0.05254887416958809, -0.6140620112419128, 0.4923859238624573, -0.36961543560028076, -0.1467391848564148, 0.5577009916305542, -0.5666603446006775, 0.6793045997619629, -0.419830322265625, -0.043000128120183945, 0.014916562475264072, 0.645006000995636, 0.42290008068084717, 0.041560057550668716, 0.6223224401473999, 0.4742625653743744, 0.3444114923477173, 0.12644271552562714, 1.0968607664108276, -0.5629120469093323, 0.0980578139424324, 1.287683129310608, -0.3792847692966461, 0.9545987844467163, 0.9256272315979004, 0.02207169122993946, 0.5130641460418701, 0.15626707673072815, 0.06453786045312881, 0.6737419962882996, 0.5843697190284729, -0.3969019651412964, 0.11908066272735596, 0.34927868843078613, -0.31344884634017944, 0.3706243634223938, 0.5029280185699463, -0.042660605162382126, -0.2745448350906372, 0.553331732749939, 0.5874426960945129, 0.020641393959522247, -0.28171539306640625, 0.9436410665512085, 0.11070194840431213, -0.5270448923110962, 0.42320823669433594, 0.28459158539772034, 0.8493937849998474, -0.553152322769165, 0.11451788246631622, -0.023705147206783295, -0.17465314269065857, -0.11541510373353958, -0.5038719773292542, 0.42884907126426697, 0.13591016829013824, -0.1235615462064743, 0.06734713166952133, 0.7809544205665588, -0.22654573619365692, -0.08248057216405869, 0.6082485318183899, 0.33832353353500366, -0.1586751788854599, 0.0049424306489527225, -0.4723478853702545, 0.18202978372573853, -0.17486821115016937, -0.5530253648757935, 0.7320267558097839, 0.14904488623142242, 0.026089364662766457, 0.48374056816101074, 0.6890980005264282, 0.042375486344099045, 0.24039773643016815, -0.17095646262168884, 1.1665065288543701, -0.8067524433135986, -0.3831395208835602, -1.3221315145492554, 0.42966458201408386, -0.359468013048172, 0.024549515917897224, 0.8493741750717163, 0.2402937412261963, 0.7601712942123413, 0.4502313733100891, 0.9179219603538513, -0.30155718326568604, 0.06712397187948227, -0.739211916923523, 0.7500370144844055, -0.2990579307079315, 0.6754903197288513, -0.5289716124534607, -0.6380009055137634, -0.1317884922027588, 0.44754618406295776, -0.5786629915237427, -0.10373114794492722, 0.7084760069847107, 0.513745129108429, 0.058813754469156265, -0.04112286493182182, 0.14966532588005066, 0.484063982963562, 0.5131288766860962, 0.5629059076309204, 0.8569040894508362, -0.3050956130027771, 0.3943645656108856, -0.20812579989433289, -0.32051411271095276, 0.016042955219745636, -0.9327602982521057, -1.2910789251327515, -0.42939066886901855, 0.14729684591293335, -0.5034781694412231, 0.3569941520690918, 0.7514896988868713, 0.6247581243515015, -0.5611420273780823, -0.3125670552253723, -0.10652168095111847, -0.06222149729728699, 0.3634774386882782, -0.29757991433143616, 0.11844965815544128, -0.6094169020652771, -0.35352057218551636, 0.748620867729187, 0.3490118980407715, -0.000012132159099564888, -0.35517415404319763, 0.1558687835931778, -0.3791041672229767, 0.1661163866519928, 0.7060248255729675, 0.3180835545063019, -0.5113617181777954, -0.35780104994773865, -0.30003106594085693, -0.09269606322050095, 0.10038319230079651, 1.1251916885375977, -0.7998998165130615, 0.2701926827430725, 0.01744597963988781, 0.6552092432975769, 0.4324338138103485, 0.11905446648597717, 0.868990421295166, -0.838837742805481, 0.5372573137283325, -0.20183612406253815, 0.41817575693130493, 0.2202649712562561, -0.6560587882995605, 0.16181837022304535, 0.012779919430613518, -0.40384477376937866, -0.9109034538269043, 0.48237165808677673, -0.5646439790725708, -0.8564086556434631, 1.1353954076766968, -0.13774365186691284, -0.4304742217063904, -0.08687734603881836, -0.28432825207710266, -0.12445873022079468, -0.44335389137268066, 0.8254851698875427, 0.8545800447463989, -0.05081766098737717, 0.022641927003860474, -0.8362536430358887, 0.505189836025238, 0.26566338539123535, -1.0572556257247925, 0.1578221619129181, 0.5632792115211487, 0.3500722050666809, 0.0860331580042839, 0.5824111700057983, -0.34232091903686523, 0.11064733564853668, -0.41519492864608765, -0.2393088936805725, -0.1693313717842102, -0.3636664152145386, -0.42143183946609497, 0.6067779660224915, 0.05508817732334137, 0.30856531858444214 ]
http://arxiv.org/abs/2402.09151v2
http://arxiv.org/pdf/2402.09151v2
Chinese MentalBERT: Domain-Adaptive Pre-training on Social Media for Chinese Mental Health Text Analysis
2024-02-14T13:08:25
2024-06-12T16:03:31
Wei Zhai, Hongzhi Qi, Qing Zhao, Jianqiang Li, Ziqi Wang, Han Wang, Bing Xiang Yang, Guanghui Fu
cs.CL
cs.CL, cs.LG
In the current environment, psychological issues are prevalent and widespread, with social media serving as a key outlet for individuals to share their feelings. This results in the generation of vast quantities of data daily, where negative emotions have the potential to precipitate crisis situations. There is a recognized need for models capable of efficient analysis. While pre-trained language models have demonstrated their effectiveness broadly, there's a noticeable gap in pre-trained models tailored for specialized domains like psychology. To address this, we have collected a huge dataset from Chinese social media platforms and enriched it with publicly available datasets to create a comprehensive database encompassing 3.36 million text entries. To enhance the model's applicability to psychological text analysis, we integrated psychological lexicons into the pre-training masking mechanism. Building on an existing Chinese language model, we performed adaptive training to develop a model specialized for the psychological domain. We evaluated our model's performance across six public datasets, where it demonstrated improvements compared to eight other models. Additionally, in the qualitative comparison experiment, our model provided psychologically relevant predictions given the masked sentences. Due to concerns regarding data privacy, the dataset will not be made publicly available. However, we have made the pre-trained models and codes publicly accessible to the community via: https://github.com/zwzzzQAQ/Chinese-MentalBERT.
[ -0.36541637778282166, -0.6358514428138733, 0.4117196202278137, 0.8332943916320801, -0.32529735565185547, -0.08916092664003372, -0.5398313999176025, -0.4582681357860565, 0.28149616718292236, 0.33240553736686707, -0.7303247451782227, -0.646133303642273, -0.8018497824668884, -0.05260723456740379, -0.18426227569580078, 1.2337576150894165, 0.02702689915895462, 0.3096441328525543, 0.11925648152828217, -0.08214698731899261, -0.2590411305427551, -0.9250615239143372, -0.6321020126342773, -0.1832495480775833, 0.39339572191238403, -0.02700212597846985, 0.4075912833213806, 0.028633376583456993, 0.5820855498313904, 0.21366356313228607, 0.2669636309146881, 0.09894835203886032, -0.6509392857551575, -0.28606700897216797, -0.2989008128643036, -0.21178780496120453, -0.7683340311050415, 0.09947797656059265, 0.44871786236763, 0.36531972885131836, -0.286205917596817, 0.19173406064510345, 0.23317620158195496, 0.6924489736557007, -0.7050402164459229, 0.059196434915065765, -0.6357855796813965, 0.2882938086986542, -0.12374480813741684, -0.2295224517583847, -0.21615846455097198, -0.5888469815254211, 0.2804866135120392, -0.7800333499908447, 0.20981332659721375, -0.3570755124092102, 0.7822858095169067, 0.17802490293979645, -0.3216281533241272, -0.056440964341163635, -0.7683629989624023, 0.4444562494754791, -0.6109219193458557, 0.120023213326931, 0.6791419982910156, 0.2495747208595276, 0.09781380742788315, -0.9582328796386719, -0.4906823933124542, -0.07018125057220459, 0.043678540736436844, 0.39485040307044983, -0.09198100119829178, 0.1107141450047493, 0.15435266494750977, 0.06622093915939331, -0.7623809576034546, -0.23059707880020142, -0.3902674615383148, -0.2171429991722107, 1.0128906965255737, 0.22100059688091278, 0.5373442769050598, 0.02351793274283409, -0.20713916420936584, 0.12160996347665787, -0.3077833950519562, -0.09360026568174362, 0.0050317272543907166, 0.05054457113146782, -0.3172745108604431, 0.17014971375465393, -0.2098437398672104, 0.4153413772583008, 0.03696957975625992, 0.03961067274212837, 0.3462914824485779, -0.20139285922050476, -0.28288382291793823, 0.2147464156150818, 0.8771806359291077, 0.5032678842544556, 0.6165525913238525, 0.1318722367286682, -0.2227923423051834, 0.19901598989963531, 0.48617079854011536, -0.9029293060302734, -0.779877245426178, 0.31708353757858276, -0.6408812999725342, -0.14171713590621948, 0.10440780967473984, -0.535739541053772, -0.7556925415992737, -0.2836897671222687, 0.3385999798774719, -0.533635139465332, -0.40483778715133667, 0.3514428734779358, 0.0910332202911377, -0.05173430219292641, 0.2896069884300232, -0.6936112642288208, 0.4075363278388977, 0.41932007670402527, 1.0228912830352783, -0.04164405167102814, -0.38132134079933167, -0.33326655626296997, 0.06095849350094795, -0.33327433466911316, 0.6340449452400208, -0.3936287462711334, -0.20002992451190948, 0.30060189962387085, 0.14527039229869843, -0.19839735329151154, -0.35920989513397217, 0.5711901783943176, -0.36845362186431885, 0.2715354561805725, -0.3488251566886902, -0.26098307967185974, 0.0698687806725502, 0.20976203680038452, -0.39504677057266235, 0.8189169764518738, 0.07957664132118225, -0.8862832188606262, 0.04521142691373825, -0.8619624972343445, -0.5745254158973694, 0.11335163563489914, 0.029677661135792732, -0.28106778860092163, -0.01618810184299946, 0.4340513050556183, 0.7226330041885376, -0.15618793666362762, 0.20634262263774872, -0.6102844476699829, -0.4786135256290436, 0.4843129813671112, -0.1148996651172638, 1.1792283058166504, 0.26776623725891113, -0.15297861397266388, 0.4093613028526306, -0.7417117953300476, -0.02198551781475544, 0.23543065786361694, 0.11144457012414932, -0.49776890873908997, 0.1316092163324356, 0.38971930742263794, 0.4402467906475067, 0.23537978529930115, -0.39164283871650696, -0.07716409116983414, -0.319389283657074, 0.4186072051525116, 0.9098162055015564, 0.11579462140798569, 0.2012120634317398, -0.2499481737613678, 0.5214895009994507, -0.015914814546704292, 0.43496114015579224, 0.14891967177391052, -0.19564607739448547, -0.2639888525009155, -0.37979453802108765, -0.09397044777870178, 0.6785656809806824, -0.7600512504577637, 0.5543347001075745, -0.16292519867420197, -0.7634721398353577, -0.5250403881072998, 0.05680983141064644, 0.17512381076812744, 0.2492934912443161, 0.30452656745910645, -0.3827972412109375, -0.5270801782608032, -0.48099637031555176, -0.31598684191703796, 0.014585419557988644, -0.34510987997055054, 0.15928484499454498, 0.39511221647262573, -0.44677212834358215, 0.6087499856948853, -0.8882459998130798, -0.6066020131111145, -0.2209075689315796, 0.1855185329914093, -0.1083938255906105, 0.2718041241168976, 0.6296640038490295, -0.8492461442947388, -0.6636632084846497, -0.12133388221263885, -0.8843714594841003, -0.2934083640575409, -0.15032845735549927, -0.3801742494106293, 0.0023672166280448437, 0.30081382393836975, -0.5269513130187988, 0.31777891516685486, 0.5454818606376648, -0.14160004258155823, 0.7804905772209167, -0.15048854053020477, 0.056557752192020416, -1.1418020725250244, 0.08587555587291718, 0.3366332948207855, -0.05834908038377762, -0.8754320740699768, -0.1535370796918869, 0.10161090642213821, -0.33385390043258667, -0.4274408519268036, 0.33971527218818665, -0.2609255611896515, 0.31940001249313354, -0.4821435809135437, 0.4091931879520416, -0.16210517287254333, 0.5958945155143738, 0.20439179241657257, 0.3794615864753723, 0.7683249711990356, -0.6038084030151367, 0.4115847647190094, 0.11532258242368698, -0.31638115644454956, 0.4487936198711395, -0.5567693710327148, 0.17030100524425507, -0.2084246426820755, 0.4219280481338501, -0.7825945615768433, -0.3857068419456482, 0.6217148900032043, -0.5309891104698181, -0.01920737512409687, 0.4566889703273773, -0.26262038946151733, -0.2840559780597687, -0.5358120203018188, 0.2626478970050812, 0.22247759997844696, -0.3696228563785553, 0.2699792981147766, 0.5637654662132263, -0.22778789699077606, -0.5226978659629822, -0.5361751317977905, 0.017716359347105026, -0.2308053970336914, -0.4217676520347595, 0.5296112298965454, -0.27080270648002625, -0.015075872652232647, 0.0360507033765316, 0.09270098060369492, -0.46044814586639404, 0.2029516100883484, 0.06664770096540451, 0.3406055271625519, -0.23753969371318817, 0.41847532987594604, -0.150438591837883, 0.06602158397436142, 0.417062908411026, -0.16220685839653015, 0.6017641425132751, -0.16986602544784546, 0.03275299817323685, -0.606488823890686, 0.2141597419977188, 0.2270270138978958, -0.4813278615474701, 0.9784822463989258, 0.8254140019416809, -1.0351721048355103, -0.15866169333457947, -0.1932913064956665, -0.06804382801055908, -0.5005820989608765, 0.6080028414726257, -0.03754573315382004, -0.6397193670272827, 0.36838293075561523, 0.19252531230449677, -0.16617172956466675, 0.16080176830291748, 0.6707049012184143, -0.07277420163154602, 1.0852805376052856, 0.822388231754303, -0.4371015131473541, 0.6626317501068115, 0.2251461148262024, 0.2762207090854645, -0.43289175629615784, 0.15476538240909576, -0.17671263217926025, 0.036558493971824646, -0.5975887179374695, -0.14591915905475616, 0.23080503940582275, -0.10675607621669769, -0.5306115746498108, 0.09226012974977493, -0.7762242555618286, 0.13330617547035217, 0.2993086278438568, 0.4826643466949463, 0.06245771050453186, -0.0870460793375969, 0.5608044266700745, -0.2903232276439667, -0.343307763338089, -0.4072546064853668, 0.9196476340293884, 0.31717655062675476, 0.7354634404182434, -0.08810482919216156, 0.518491268157959, 0.36729103326797485, 0.7945941090583801, -0.6122530102729797, 0.4868747293949127, -0.29570096731185913, -0.6313743591308594, -0.27800047397613525, -0.30865612626075745, -0.7581679224967957, 0.09997005760669708, -0.26076382398605347, -1.0120351314544678, 0.04414749890565872, 0.12520362436771393, -0.4284215569496155, 0.04414800927042961, -0.6729333400726318, 0.8809876441955566, -0.49015429615974426, -0.07579626142978668, -0.26185134053230286, -0.6167659759521484, 0.673237144947052, -0.6142277717590332, 0.01918729580938816, -0.12784337997436523, 0.29026222229003906, 0.988571047782898, -0.1667776107788086, 0.9288948178291321, -0.2953357994556427, 0.0030399721581488848, 0.1727038025856018, -0.30709561705589294, 0.08458761125802994, 0.044331807643175125, 0.11095663160085678, 0.1569012850522995, 0.2990867495536804, -0.5403704643249512, -0.7401174902915955, 0.41151562333106995, -1.1595510244369507, -0.5719020366668701, -0.43141263723373413, -0.3218870460987091, -0.3056067228317261, 0.35122671723365784, 0.3921782970428467, 0.14032810926437378, -0.31619733572006226, 0.11569210141897202, 0.48646920919418335, -0.592054009437561, 0.020571686327457428, 0.43066978454589844, -0.24074652791023254, -0.4095152020454407, 1.047258973121643, 0.2826637923717499, -0.08895358443260193, 0.3237387239933014, 0.11746884882450104, 0.05552280694246292, -0.31152787804603577, 0.3073546290397644, 0.2755667567253113, -0.6201487183570862, 0.05759870633482933, -0.5993824601173401, -0.6900544762611389, -0.6983791589736938, -0.12146889418363571, -0.3050411641597748, 0.06388114392757416, -0.2433444857597351, -0.16353973746299744, 0.2496073842048645, 0.5414950847625732, -0.10229312628507614, 0.6062069535255432, -0.8852461576461792, 0.4180041551589966, -0.09364455193281174, 0.5570883750915527, 0.11286860704421997, -0.2623676359653473, -0.6371605396270752, 0.11535846441984177, -0.4832795262336731, -1.1255478858947754, 0.623947262763977, 0.10985302180051804, 0.2862353026866913, 0.6668925881385803, 0.5368358492851257, 0.7034456729888916, -0.32986992597579956, 0.6779009699821472, 0.2797902822494507, -0.9883767366409302, 0.6763123273849487, -0.43348240852355957, 0.05259619653224945, 0.3962554335594177, 0.7086432576179504, -0.8828698992729187, -0.299405038356781, -0.40613487362861633, -0.7368686199188232, 0.8487948775291443, 0.16038213670253754, 0.33072131872177124, 0.11196204274892807, 0.4030551016330719, -0.18638333678245544, 0.07026276737451553, -0.9658468961715698, -0.2378309965133667, -0.719651460647583, -0.5660147666931152, -0.2859906256198883, -0.07777337729930878, -0.26800599694252014, -0.3157559931278229, 0.7236450910568237, -0.05169996619224548, 0.5360778570175171, 0.3752686381340027, -0.2673385441303253, -0.017918866127729416, -0.04202937334775925, 0.5433487892150879, 0.6075659394264221, -0.46987855434417725, -0.05013694614171982, 0.11386251449584961, -0.9024032354354858, 0.06655173003673553, 0.3902865946292877, 0.2529212236404419, -0.20764587819576263, 0.3617609143257141, 0.6085379123687744, -0.2008398473262787, -0.7385727167129517, 0.6360639929771423, -0.2529602646827698, -0.3283679187297821, -0.6567565202713013, -0.013546369969844818, 0.15557390451431274, 0.3350491523742676, 0.3487330377101898, -0.2511155605316162, 0.15507915616035461, -0.395725280046463, 0.2972893714904785, 0.030762463808059692, -0.6277562379837036, -0.5547024607658386, 0.6884250640869141, 0.00954701192677021, -0.4389086961746216, 0.656635582447052, -0.028907369822263718, -0.650104284286499, 0.3676433861255646, 0.4642944931983948, 1.0850898027420044, -0.32911059260368347, 0.460171103477478, 0.24230769276618958, 0.44859579205513, -0.026851367205381393, 0.2103579193353653, 0.056394074112176895, -1.0237011909484863, -0.209531769156456, -0.20174333453178406, -0.19077268242835999, 0.5103339552879333, -0.8570175766944885, 0.1498909294605255, -0.8130089044570923, -0.30818310379981995, -0.2724824845790863, 0.2271210253238678, -0.6302053928375244, 0.6234068274497986, 0.40254834294319153, 0.8315324187278748, -0.9584451913833618, 1.0606178045272827, 0.8034955263137817, -0.40905359387397766, -0.6726065874099731, 0.5363104939460754, -0.04169493541121483, -0.6705963015556335, 0.39046645164489746, 0.3927246928215027, 0.019539479166269302, -0.18842369318008423, -0.6551317572593689, -0.531157910823822, 0.8974167108535767, 0.4381389915943146, -0.2657178044319153, 0.044298168271780014, 0.13666069507598877, 0.9532119035720825, -0.4403289258480072, 0.021987782791256905, 0.3261863589286804, 0.19528095424175262, -0.5234887599945068, -0.48313194513320923, 0.1882050484418869, -0.5500257015228271, -0.04808582365512848, -0.3292672336101532, -0.7424300312995911, 0.6592310667037964, 0.20875856280326843, -0.377162903547287, -0.2682165801525116, 0.8019970655441284, 0.42906710505485535, 0.5395458340644836, 0.36214596033096313, -0.01961461268365383, 1.0420747995376587, 0.20795179903507233, 0.8691825866699219, -0.5070092082023621, 0.37342116236686707, 1.2011433839797974, -0.4690040349960327, 0.7360725998878479, -0.04775504395365715, -0.1384180337190628, 0.42169371247291565, 1.0321720838546753, 0.05798834562301636, 0.5766267776489258, 0.10606227070093155, -0.3351306617259979, -0.1273483783006668, -0.21693091094493866, -0.3729862868785858, 0.1313900202512741, 0.48302316665649414, -0.3508857786655426, 0.1275802105665207, 0.18138502538204193, -0.1578163057565689, 0.1791582852602005, -0.3490828573703766, 0.4089168906211853, 0.27305424213409424, -0.3446227014064789, 0.5333219766616821, 0.0889439731836319, 0.6417514681816101, -0.6976441740989685, 0.29242458939552307, -0.22876332700252533, 0.36476510763168335, -0.314817875623703, -0.49184319376945496, 0.34552305936813354, 0.023071827366948128, -0.06253185123205185, -0.08482687920331955, 1.1572816371917725, -0.3691617548465729, -0.4590330123901367, 0.6118453741073608, 0.49645671248435974, 0.10663355886936188, -0.519870936870575, -0.8406310081481934, -0.26471200585365295, -0.21210964024066925, -0.41376450657844543, 0.47031161189079285, 0.5835790038108826, -0.23280923068523407, 0.5367931127548218, 0.5346626043319702, 0.3156355321407318, -0.19206902384757996, 0.29846835136413574, 0.8225602507591248, -0.7926928400993347, -0.6022449731826782, -0.941903293132782, 0.34964343905448914, -0.24274180829524994, -0.38606804609298706, 0.5446361303329468, 0.14180926978588104, 0.8267242312431335, -0.10751116275787354, 1.0338444709777832, 0.20566216111183167, 0.253299355506897, -0.18490666151046753, 1.185784101486206, -0.6231079697608948, -0.0923449695110321, -0.49725955724716187, -0.8151856660842896, -0.48221907019615173, 0.7961897253990173, -0.5016828179359436, 0.02224225178360939, 0.6076251864433289, 0.80766761302948, 0.10445603728294373, 0.052924130111932755, 0.16753044724464417, 0.319125235080719, 0.3810926377773285, 0.6395467519760132, 0.8504493832588196, -0.2086217850446701, 0.3382047712802887, -0.3356998562812805, -0.3654745817184448, -0.015418671071529388, -0.6491906642913818, -1.0105599164962769, -0.6854605078697205, -0.294899046421051, -0.36902937293052673, 0.18316732347011566, 1.1551845073699951, 0.5681390762329102, -0.7207493185997009, -0.16683079302310944, 0.15972165763378143, -0.09879735112190247, -0.2957216501235962, -0.29254090785980225, 0.6289463639259338, -0.15005844831466675, -0.3769618570804596, -0.32429754734039307, 0.15042510628700256, -0.13778908550739288, -0.15440446138381958, -0.06740473210811615, -0.1772546023130417, 0.27510151267051697, 0.7535656094551086, 0.10226039588451385, -0.29904136061668396, -0.2400267869234085, 0.09948825091123581, -0.3339441120624542, 0.04227721691131592, 0.8989186882972717, -0.3046817481517792, 0.35060104727745056, 0.26143932342529297, 0.7899622321128845, 0.2923128008842468, 0.01416196208447218, 0.6962804794311523, -0.5659963488578796, 0.019626084715127945, 0.05082940310239792, 0.3259963095188141, 0.3551502227783203, -0.6378048658370972, 0.39761781692504883, 0.3338111340999603, -0.351214736700058, -0.8398171663284302, -0.10232940316200256, -0.8072749376296997, -0.614065945148468, 0.938951849937439, -0.41339725255966187, -0.13779042661190033, 0.013464068993926048, -0.48366832733154297, 0.702232301235199, -0.22300520539283752, 1.3152014017105103, 0.9628179669380188, -0.091336689889431, -0.18082265555858612, -0.5412839651107788, 0.5559096932411194, 0.36171141266822815, -0.8899357914924622, 0.17208583652973175, 0.1470513939857483, 0.16252253949642181, -0.09026364982128143, 1.2077044248580933, 0.13641968369483948, 0.4496430456638336, -0.26611417531967163, 0.266162633895874, 0.33619797229766846, -0.15449507534503937, -0.36082231998443604, 0.06884095817804337, -0.1510293036699295, -0.08968546241521835 ]
http://arxiv.org/abs/2402.09141v1
http://arxiv.org/pdf/2402.09141v1
Advancing NLP Models with Strategic Text Augmentation: A Comprehensive Study of Augmentation Methods and Curriculum Strategies
2024-02-14T12:41:09
2024-02-14T12:41:09
Himmet Toprak Kesgin, Mehmet Fatih Amasyali
cs.CL
cs.CL, cs.AI
This study conducts a thorough evaluation of text augmentation techniques across a variety of datasets and natural language processing (NLP) tasks to address the lack of reliable, generalized evidence for these methods. It examines the effectiveness of these techniques in augmenting training sets to improve performance in tasks such as topic classification, sentiment analysis, and offensive language detection. The research emphasizes not only the augmentation methods, but also the strategic order in which real and augmented instances are introduced during training. A major contribution is the development and evaluation of Modified Cyclical Curriculum Learning (MCCL) for augmented datasets, which represents a novel approach in the field. Results show that specific augmentation methods, especially when integrated with MCCL, significantly outperform traditional training approaches in NLP model performance. These results underscore the need for careful selection of augmentation techniques and sequencing strategies to optimize the balance between speed and quality improvement in various NLP tasks. The study concludes that the use of augmentation methods, especially in conjunction with MCCL, leads to improved results in various classification tasks, providing a foundation for future advances in text augmentation strategies in NLP.
[ -0.44664567708969116, -0.798186182975769, 0.16923688352108002, 0.2577180564403534, -0.055057987570762634, 0.5620185732841492, -0.38797345757484436, -0.6199868321418762, -0.03229105845093727, 0.6108203530311584, -0.6478778719902039, -0.5256406664848328, -0.6387909650802612, 0.35696884989738464, -0.40551626682281494, 1.0380531549453735, 0.1810830682516098, 0.09672848880290985, -0.30942463874816895, -0.31029680371284485, -0.7680575251579285, -0.8158968687057495, -0.7225786447525024, -0.4659970998764038, 0.30709969997406006, 0.35289180278778076, 0.699748158454895, 0.6231335997581482, 0.8415855169296265, 0.2899933457374573, -0.29053056240081787, 0.5292494893074036, -0.31689462065696716, 0.11353379487991333, -0.291290819644928, -0.2892780900001526, -0.485592246055603, -0.018960246816277504, 0.7431821823120117, 0.8815751075744629, -0.1659887284040451, 0.10501501709222794, 0.12307298928499222, 0.7279286980628967, -0.7931610941886902, -0.05406530946493149, -0.48232561349868774, 0.15012897551059723, -0.20742417871952057, -0.3671322762966156, -0.5035520792007446, -0.24261978268623352, 0.4009426236152649, -0.5104125738143921, 0.17435751855373383, 0.04298591613769531, 0.4342740476131439, 0.02743573859333992, -0.41101300716400146, -0.5598962306976318, -0.7300590872764587, 1.072872519493103, -0.9332522749900818, 0.20462960004806519, 0.27674400806427, -0.08639600872993469, 0.05997296795248985, -0.9067100882530212, -0.35049811005592346, -0.17862166464328766, -0.07116376608610153, 0.20397646725177765, 0.18684755265712738, 0.4132569432258606, 0.489616721868515, 0.5950400829315186, -0.5526577830314636, 0.2872624695301056, -0.34033331274986267, 0.1420859396457672, 0.7163819670677185, 0.19774088263511658, 0.4511319398880005, -0.11257126927375793, -0.35888543725013733, -0.2696588635444641, -0.4042506515979767, 0.15205015242099762, 0.4832640588283539, 0.30222076177597046, 0.23925545811653137, 0.8467127084732056, -0.21525342762470245, 0.8672448992729187, -0.09187866747379303, -0.0031453168485313654, 0.4049367308616638, -0.7556681632995605, -0.12244504690170288, 0.37389063835144043, 0.4747990071773529, 0.33840030431747437, 0.04236990213394165, -0.10789670795202255, -0.3437737822532654, 0.22382842004299164, 0.6855999231338501, -0.5302065014839172, -0.05442135035991669, 0.08234918117523193, -0.38022148609161377, -0.6515715718269348, 0.02078547328710556, -0.7462445497512817, -0.144413024187088, -0.6434575915336609, 0.21838314831256866, -0.7643068432807922, -0.04911299794912338, 0.26573458313941956, -0.23384356498718262, 0.22186873853206635, 0.09116820991039276, -1.0736770629882812, 0.4091823399066925, 0.9740146994590759, 0.8231327533721924, -0.49944376945495605, -0.0018746721325442195, -0.14038732647895813, 0.046804074198007584, -0.43573519587516785, 0.7657000422477722, -0.995460569858551, -0.491120308637619, 0.3739667534828186, -0.27549922466278076, -0.08371667563915253, -0.6002243757247925, 1.0870288610458374, -0.6875843405723572, 0.4991438388824463, -0.24483159184455872, -0.7124816179275513, -0.45019522309303284, 0.4315386414527893, -0.7294008731842041, 1.3655118942260742, -0.07122141867876053, -0.6938508152961731, 0.31507447361946106, -0.923861026763916, -0.44409438967704773, -0.0025882923509925604, 0.1850660741329193, -0.3241969645023346, -0.03269219398498535, 0.5880125164985657, 0.21929103136062622, 0.0024307994171977043, 0.28023073077201843, -0.04844653606414795, -0.4807644784450531, 0.14174778759479523, -0.4890805780887604, 0.8519421219825745, 0.012814396061003208, -0.18448863923549652, 0.13960979878902435, -0.8768895268440247, 0.13653188943862915, -0.1200585588812828, -0.4692472815513611, -0.4373874068260193, 0.20726542174816132, 0.07718406617641449, 0.18251612782478333, 0.1974084973335266, -0.2586159110069275, 0.30176934599876404, -0.9372868537902832, 0.07609913498163223, 0.5599323511123657, 0.21584491431713104, 0.6705792546272278, -0.46225228905677795, 0.3796740472316742, -0.13257327675819397, 0.026818808168172836, -0.551292896270752, -0.41454213857650757, -0.8587764501571655, 0.07495027780532837, 0.3241829574108124, 0.7440056204795837, -1.0012531280517578, 0.5786542296409607, -0.1623745858669281, -0.43808576464653015, -0.331272155046463, 0.07411247491836548, 0.34567326307296753, 0.537995457649231, 0.6855864524841309, -0.596550464630127, -0.9229940176010132, -0.5926561951637268, -0.4894565939903259, -0.1435367912054062, 0.10457783937454224, -0.15431231260299683, 0.29331687092781067, -0.17575478553771973, 0.9709440469741821, -0.36113986372947693, -0.08136514574289322, -0.3827238976955414, 0.5289821028709412, 0.14036276936531067, 0.5975136756896973, 0.4137374758720398, -0.8270161747932434, -0.2533603012561798, -0.029098698869347572, -0.7506837844848633, -0.1629566103219986, -0.22598525881767273, 0.25965726375579834, 0.10889197885990143, 0.36191150546073914, -0.027861207723617554, 0.31938937306404114, 0.40344491600990295, -0.06475459039211273, 0.7937008738517761, -0.06166037172079086, 0.32695135474205017, -0.7988057732582092, -0.3492491841316223, 0.1658821851015091, -0.1487220972776413, -0.928330659866333, 0.23613500595092773, -0.13189001381397247, -0.0005241434555500746, -0.16043098270893097, 0.20158323645591736, -0.38515326380729675, 0.14500129222869873, -0.5533382296562195, 0.16584473848342896, 0.03388010337948799, 0.21711450815200806, 0.16215106844902039, 0.8805676102638245, 0.3726906478404999, -0.5475636720657349, 0.3414740562438965, 0.23208023607730865, -0.289842814207077, 0.4354523718357086, -0.5835411548614502, -0.00856948271393776, -0.12705844640731812, 0.15434256196022034, -0.8452025055885315, 0.1107279434800148, 0.15229913592338562, -0.4126565456390381, 0.4649186134338379, 0.23309080302715302, -0.437319815158844, -0.30704963207244873, -0.3555335998535156, 0.3072749078273773, 0.3478570282459259, -0.4675816595554352, 0.32699134945869446, 0.24725563824176788, -0.30442214012145996, -0.8822743892669678, -0.7177261710166931, 0.3461516499519348, -0.23350417613983154, -0.4964439570903778, 0.7265335917472839, 0.025861600413918495, -0.23772621154785156, -0.2806035280227661, 0.023836063221096992, -0.25988560914993286, -0.1035347729921341, -0.13661599159240723, 0.40060558915138245, -0.26044198870658875, 0.18097589910030365, 0.0818474218249321, -0.04057367891073227, 0.15832524001598358, -0.30593642592430115, 0.5560083389282227, -0.05558325722813606, -0.358070433139801, -0.31618255376815796, 0.254562109708786, -0.027643272653222084, -0.35072317719459534, 0.938992440700531, 0.964015007019043, -0.2754945755004883, 0.00787601713091135, -0.8140966892242432, -0.2940027713775635, -0.5168172717094421, 0.4349750876426697, 0.06867486983537674, -0.8549392223358154, 0.13125410676002502, -0.21560940146446228, 0.2717362344264984, 0.349651038646698, 0.2754497528076172, -0.04243010655045509, 1.0975172519683838, 0.7205774784088135, 0.12785601615905762, 0.6926975846290588, -0.35751280188560486, 0.26505041122436523, -1.0803167819976807, -0.16436444222927094, -0.459773451089859, -0.20885518193244934, -0.7287676334381104, -0.5312944054603577, 0.005527672357857227, -0.05388956144452095, -0.06321308761835098, 0.3410435914993286, -0.8083018064498901, 0.46622177958488464, 0.35723865032196045, 0.2872503399848938, 0.530167281627655, 0.12439411133527756, -0.09796184301376343, -0.4039100408554077, -0.857871413230896, -0.7018146514892578, 1.1657086610794067, 0.28013738989830017, 0.21244698762893677, 0.012364068999886513, 0.5427993535995483, 0.38583093881607056, 0.23952248692512512, -0.6976878643035889, 0.5453987717628479, -0.19838634133338928, -0.5201850533485413, -0.21770893037319183, -0.2701527178287506, -0.6850899457931519, 0.2198503613471985, -0.6124508380889893, -0.5972145795822144, 0.2138606160879135, -0.146759495139122, -0.1766553670167923, 0.25900161266326904, -0.44972482323646545, 0.5004721879959106, -0.1720597743988037, -0.276836633682251, -0.289430171251297, -0.6039062142372131, 0.5102697014808655, -0.13408678770065308, 0.13816344738006592, 0.20350830256938934, -0.3648395240306854, 0.8780258297920227, -0.11317233741283417, 0.6702777147293091, 0.1257810890674591, 0.04871547222137451, 0.3186556398868561, -0.4809649586677551, 0.4242740869522095, -0.10588262230157852, -0.28509846329689026, 0.08666322380304337, -0.050576645880937576, -0.33930158615112305, -0.6678051352500916, 0.4905722439289093, -0.4798807203769684, -0.5256391763687134, -0.5875753164291382, -0.7091670036315918, -0.3688625693321228, 0.02354894019663334, 0.04691290110349655, 0.5281622409820557, -0.2223346084356308, 0.39610812067985535, 0.8508808612823486, -0.3649909496307373, 0.7170230150222778, 0.1808733195066452, -0.009495138190686703, -0.5457941889762878, 0.7922534346580505, 0.08738256990909576, 0.38143229484558105, 0.4263377785682678, -0.022563302889466286, -0.43341219425201416, -0.8528236150741577, -0.10871504247188568, -0.1170390322804451, -0.6972811222076416, 0.0195297934114933, -0.7117857336997986, -0.5115433931350708, -0.5337481498718262, -0.35282957553863525, -0.16120557487010956, -0.6125829815864563, -0.3087134063243866, -0.10864327847957611, 0.19151188433170319, 0.4657704532146454, 0.10518410801887512, 0.7252490520477295, -0.8437305092811584, 0.18386498093605042, -0.0009323431877419353, -0.035227514803409576, 0.05613647773861885, -0.6127299666404724, -0.23093029856681824, 0.12074877321720123, -0.6904637217521667, -0.8979520201683044, 0.5214284062385559, 0.24344715476036072, 0.5485337376594543, 0.2453344166278839, -0.020360460504889488, 0.8749879002571106, -0.5454797148704529, 0.9576276540756226, 0.2746340334415436, -0.8428788185119629, 0.5896466374397278, -0.3643310070037842, 0.24170292913913727, 0.6442784667015076, 0.4086068868637085, -0.42937329411506653, -0.22000910341739655, -0.7552861571311951, -1.083165168762207, 0.628696620464325, 0.42045602202415466, 0.28964799642562866, 0.04006984457373619, 0.4029681086540222, -0.24695812165737152, 0.43223267793655396, -0.713168740272522, -0.30426889657974243, 0.017434684559702873, -0.23362015187740326, 0.04495621845126152, -0.39319461584091187, 0.017860760912299156, -0.3251020610332489, 0.854404628276825, -0.013159999623894691, 0.052888523787260056, 0.15012817084789276, -0.016966307535767555, 0.23464860022068024, 0.2816319167613983, 0.476370245218277, 0.8571981191635132, -0.0902843326330185, -0.31071561574935913, 0.4950219392776489, -0.6593183875083923, 0.096818707883358, 0.03165927529335022, -0.09289797395467758, 0.1564147025346756, 0.517665445804596, 0.6219888925552368, 0.3726920783519745, -0.6413071751594543, 0.2934701144695282, 0.15333865582942963, -0.037464436143636703, -0.20084311068058014, 0.13577504456043243, -0.37566834688186646, 0.2075611799955368, 0.45175424218177795, 0.21266083419322968, 0.5503969788551331, -0.4573928117752075, 0.39453572034835815, 0.4281875491142273, -0.5131442546844482, 0.08544767647981644, 0.17944607138633728, -0.022105012089014053, -0.28656721115112305, 0.47329747676849365, -0.10783139616250992, -0.5055757164955139, 0.5349830389022827, 0.6992641091346741, 0.6412094831466675, -0.3701847493648529, 0.30894702672958374, 0.6177169680595398, 0.6004192233085632, -0.2765233516693115, -0.04588603228330612, -0.04311603307723999, -0.6468688249588013, -0.879116952419281, -0.5775706768035889, -0.49980583786964417, -0.15826669335365295, -0.8684397339820862, 0.3962903320789337, -0.29060134291648865, -0.2542373239994049, -0.11515187472105026, 0.22004523873329163, -0.28622469305992126, 0.4556574523448944, -0.0036587482318282127, 0.9620192646980286, -0.5797877907752991, 0.5751146078109741, 0.7749410271644592, -0.3058065176010132, -0.42827826738357544, -0.006527991965413094, 0.06928152590990067, -0.44370803236961365, 0.5435060858726501, 0.2914939224720001, 0.16002169251441956, 0.03056342341005802, -0.2993305027484894, -0.7420393824577332, 0.8819100856781006, -0.24919436872005463, -0.502106785774231, -0.2772207260131836, 0.44274967908859253, 0.6735491752624512, -0.4100615680217743, 0.3633122742176056, 0.6244136691093445, 0.4274037778377533, 0.24147751927375793, -0.501110315322876, -0.23542346060276031, -0.0674295648932457, 0.3152680993080139, 0.15718594193458557, -0.22234319150447845, 0.3688470125198364, 0.08685895800590515, -0.10807958245277405, 0.12611857056617737, 0.8968815803527832, 0.3626843988895416, 0.5118768811225891, 0.39956727623939514, 0.6703299880027771, 0.5601760745048523, -0.33028239011764526, 0.872249960899353, -0.21434184908866882, 0.33679258823394775, 1.1642332077026367, -0.10222554951906204, 0.755457878112793, 0.3701896667480469, -0.1351691037416458, 0.5924928188323975, 0.6637857556343079, -0.10952300578355789, 0.43416088819503784, -0.013948380015790462, -0.4200930595397949, 0.025917207822203636, -0.3930691182613373, -0.3625641465187073, 0.41383007168769836, 0.6934939622879028, -0.4720844328403473, -0.18117547035217285, 0.2931062877178192, -0.1200622096657753, 0.3524632453918457, -0.3708808720111847, 0.9483218789100647, 0.006972704082727432, -0.6427670121192932, 0.30602335929870605, 0.24160096049308777, 0.8285111784934998, -0.5819193720817566, -0.12802745401859283, 0.2860521376132965, 0.04022468999028206, -0.265373557806015, -0.8334385752677917, 0.74751877784729, 0.007366820238530636, -0.15173108875751495, -0.36956506967544556, 0.9410781860351562, -0.35908856987953186, -0.6704939007759094, 0.0716262087225914, 0.2974846363067627, -0.32821783423423767, 0.11814607679843903, -0.9042866230010986, 0.020910482853651047, -0.14677709341049194, -0.05596856027841568, 0.2459757924079895, 0.25363752245903015, 0.12851223349571228, 0.4682536721229553, 1.0440354347229004, 0.2343207448720932, 0.03819890320301056, 0.09799209237098694, 0.9066014885902405, -0.4764256179332733, -0.3064250946044922, -0.8725230693817139, 0.651566743850708, -0.559708297252655, -0.16323211789131165, 0.929124116897583, 0.558501660823822, 0.9611351490020752, 0.13639302551746368, 0.5691790580749512, 0.17652323842048645, 0.49345946311950684, -0.7014589309692383, 0.2524574398994446, -0.2295209765434265, 0.49165263772010803, -0.46004652976989746, -1.1036103963851929, -0.39253541827201843, 0.5841036438941956, -0.6152514219284058, 0.10732316225767136, 0.7186707258224487, 0.5890913605690002, 0.13189992308616638, 0.4670526683330536, 0.16191905736923218, -0.210757315158844, 0.299615740776062, 0.1262809783220291, 0.8531076908111572, -0.65250563621521, 0.24921423196792603, -0.6226216554641724, -0.23130476474761963, 0.05705080181360245, -0.9090558290481567, -0.8149229884147644, -0.47846972942352295, -0.3119009733200073, -0.20394952595233917, 0.3987767994403839, 0.9593650102615356, 0.5123193860054016, -0.7585466504096985, -0.26196983456611633, -0.2187880128622055, -0.019582511857151985, -0.4448566138744354, -0.35565894842147827, 0.12839406728744507, -0.912530779838562, -0.831443727016449, 0.4815013110637665, 0.4111067056655884, -0.20568904280662537, -0.086009681224823, 0.1846591979265213, -0.6929076910018921, 0.21940726041793823, 0.9349112510681152, 0.08287432789802551, -0.5407857298851013, 0.08548127859830856, 0.12842248380184174, 0.13249477744102478, 0.17152568697929382, 0.9036989808082581, -0.7384663820266724, 0.6419963836669922, 0.4643675982952118, 0.9248824715614319, 0.205521360039711, 0.2695312798023224, 0.5807180404663086, -0.9992526173591614, 0.11286754906177521, 0.5053264498710632, 0.08686228096485138, 0.46236443519592285, -0.3092266619205475, 0.6993190050125122, 0.18384841084480286, -0.6708702445030212, -0.8650825023651123, -0.014260228723287582, -0.9097879528999329, -0.16087035834789276, 0.9287250638008118, 0.07831033319234848, 0.10184074193239212, -0.25612470507621765, -0.348294198513031, 0.2819627821445465, -0.1942249834537506, 0.7568893432617188, 0.9582883715629578, -0.07672180980443954, -0.16400927305221558, -0.7498179078102112, 0.5019308924674988, 0.42541375756263733, -0.9000054597854614, -0.2570807635784149, 0.42057347297668457, -0.34533289074897766, 0.41196879744529724, 0.14330673217773438, -0.26696938276290894, 0.07520629465579987, -0.3441905081272125, -0.2060682624578476, 0.04056733474135399, -0.2774721086025238, -0.3360826373100281, 0.161363884806633, -0.15587657690048218, 0.019803030416369438 ]
http://arxiv.org/abs/2402.09136v1
http://arxiv.org/pdf/2402.09136v1
DolphCoder: Echo-Locating Code Large Language Models with Diverse and Multi-Objective Instruction Tuning
2024-02-14T12:34:58
2024-02-14T12:34:58
Yejie Wang, Keqing He, Guanting Dong, Pei Wang, Weihao Zeng, Muxi Diao, Yutao Mou, Mengdi Zhang, Jingang Wang, Xunliang Cai, Weiran Xu
cs.CL
cs.CL, cs.AI
Code Large Language Models (Code LLMs) have demonstrated outstanding performance in code-related tasks. Several instruction tuning approaches have been proposed to boost the code generation performance of pre-trained Code LLMs. In this paper, we introduce a diverse instruction model (DolphCoder) with self-evaluating for code generation. It learns diverse instruction targets and combines a code evaluation objective to enhance its code generation ability. Our model achieves superior performance on the HumanEval and MBPP benchmarks, demonstrating new insights for future code instruction tuning work. Our key findings are: (1) Augmenting more diverse responses with distinct reasoning paths increases the code capability of LLMs. (2) Improving one's ability to evaluate the correctness of code solutions also enhances their ability to create it.
[ -0.46272987127304077, -0.49753594398498535, 0.4297587275505066, 0.15103460848331451, -0.1640651524066925, 0.2825463116168976, -0.4440864622592926, -0.4165267050266266, -0.056294869631528854, 0.5647581219673157, -0.5348489880561829, -0.6517572402954102, -0.5488083362579346, 0.05142289400100708, 0.10530365258455276, 0.9606289863586426, 0.16728585958480835, 0.2902905344963074, 0.3090593218803406, -0.041986122727394104, -0.5364214181900024, -0.41667264699935913, -0.10538483411073685, 0.03381211310625076, 0.42815813422203064, 0.7824039459228516, 0.38187500834465027, 0.9017302393913269, 0.7584117650985718, 0.3554634749889374, 0.16474086046218872, 0.43275710940361023, -0.6501908302307129, 0.32444527745246887, -0.13420067727565765, -0.5022952556610107, -0.5372399687767029, -0.0675831139087677, 0.6845229268074036, 0.44208547472953796, -0.1712460219860077, 0.35542577505111694, -0.024328483268618584, 0.4757865369319916, -0.8970539569854736, -0.358426570892334, -0.7675756216049194, -0.0720987543463707, -0.10263590514659882, -0.49687620997428894, -0.4029766917228699, -0.394756942987442, -0.35746341943740845, -0.05838882550597191, 0.291560560464859, 0.20886024832725525, 0.2594344913959503, 0.39871320128440857, -0.4216914474964142, -0.6699391603469849, -0.5530044436454773, 1.2307192087173462, -0.6658439636230469, 0.37544578313827515, -0.05321303382515907, 0.23561729490756989, -0.06002556532621384, -0.552579939365387, -0.36404985189437866, -0.2474706918001175, 0.36786383390426636, 0.16406697034835815, -0.20612135529518127, -0.007076383102685213, 0.16310769319534302, 0.8384228944778442, -0.44690921902656555, 0.5381898283958435, -0.2444492131471634, -0.08165185898542404, 0.7089386582374573, 0.3266581892967224, 0.4099927246570587, -0.06264811009168625, -0.3398658335208893, 0.024229414761066437, -0.526631236076355, -0.27803510427474976, 0.6851224303245544, 0.43859437108039856, -0.2639547288417816, 0.47559961676597595, 0.038739390671253204, 0.8338912129402161, 0.2906142771244049, -0.22874580323696136, 0.3426990807056427, -0.18292024731636047, -0.12259339541196823, 0.2222626805305481, 0.4104786217212677, 0.31674230098724365, -0.17430232465267181, -0.04726819694042206, -0.3490569293498993, 0.0086793452501297, 0.6372917890548706, -0.7409756183624268, -0.08752869814634323, 0.0775853842496872, -0.8814765810966492, -0.23253686726093292, 0.008424949832260609, -0.7254329323768616, 0.0004546995915006846, -0.36120638251304626, 0.13086670637130737, -0.3722114562988281, -0.3546363115310669, 0.2212112993001938, -0.03164834529161453, 0.38714396953582764, 0.3161727488040924, -1.0460602045059204, 0.1208406388759613, 0.6990863084793091, 0.4886808693408966, -0.2523190975189209, -0.6250014305114746, -0.801490843296051, 0.1540774405002594, -0.5711200833320618, 0.7263501286506653, -1.0958131551742554, -0.5491340160369873, -0.13883577287197113, -0.24369321763515472, -0.04345892369747162, -0.8323732018470764, 0.37956473231315613, -0.3744219243526459, 0.20737224817276, -0.18270403146743774, -0.7149315476417542, -0.067427858710289, -0.014868797734379768, -0.36068108677864075, 0.8321623802185059, 0.32498258352279663, -0.7466160655021667, 0.21074801683425903, -0.6967264413833618, -0.4631006121635437, 0.19196434319019318, -0.2365303933620453, -0.3901093006134033, 0.5034322738647461, 0.22379793226718903, 0.34088972210884094, -0.3813234269618988, 0.010071120224893093, -0.39090439677238464, -0.6234822273254395, -0.0323009230196476, -0.3364535868167877, 0.6178428530693054, 0.5212362408638, -0.5590996742248535, 0.3474441468715668, -0.637004017829895, 0.329563707113266, 0.00027141711325384676, -0.4981941878795624, -0.02715052291750908, -0.29134324193000793, -0.1371781975030899, -0.03848547860980034, 0.3785511553287506, -0.2923033833503723, 0.34891751408576965, 0.05709319934248924, 0.13146686553955078, 0.7674025893211365, 0.03441457450389862, 0.3234923481941223, -0.5478842258453369, 0.7992710471153259, -0.16387222707271576, 0.17313146591186523, -0.4345688819885254, -0.40191516280174255, -0.7209722399711609, -0.641791582107544, -0.06969328969717026, 0.4671350121498108, -0.2500101327896118, 0.6355699300765991, 0.19297665357589722, -0.5661024451255798, -0.8527199625968933, 0.21577176451683044, 0.6095277070999146, 0.3893773555755615, 0.45824742317199707, -0.06642182916402817, -0.6696570515632629, -0.8321806788444519, -0.19032061100006104, 0.11962056159973145, -0.028712879866361618, 0.5531889796257019, 0.3536970913410187, -0.6088496446609497, 0.19523976743221283, -0.4133998453617096, 0.05444183573126793, -0.41198185086250305, 0.08513958752155304, 0.5058707594871521, 0.572992205619812, 0.4890417158603668, -0.42719513177871704, -0.388979971408844, -0.1499759703874588, -0.5472858548164368, -0.2530656158924103, 0.04065527766942978, -0.21007521450519562, 0.15380899608135223, 0.141133114695549, -0.1930529773235321, 0.03118911199271679, 0.8203322291374207, 0.11065784096717834, 0.49093568325042725, -0.5072912573814392, 0.6043618321418762, -1.0249269008636475, -0.037230681627988815, -0.3525330722332001, -0.02232385240495205, -0.27935487031936646, 0.6712192296981812, 0.14924359321594238, -0.20308206975460052, -0.1344316303730011, 0.28448307514190674, -0.7267191410064697, -0.24372197687625885, -0.4361870586872101, -0.24482561647891998, -0.3124057948589325, 0.34668564796447754, 0.09644820541143417, 0.865017294883728, 0.841593325138092, -0.6309398412704468, 0.17493565380573273, -0.17498670518398285, -0.5148223042488098, 0.42829573154449463, -0.5674487352371216, 0.5367883443832397, 0.08708213269710541, -0.14377956092357635, -0.9323879480361938, -0.2087613344192505, 0.0856335312128067, -0.0962204560637474, 0.5566025376319885, -0.15470513701438904, -0.3504944443702698, -0.4207158386707306, -0.40468040108680725, 0.3887083828449249, 0.855440080165863, -0.9054390788078308, 0.19912470877170563, 0.3495122790336609, -0.003693075617775321, -0.5951091051101685, -0.22767217457294464, -0.06830060482025146, -0.31212010979652405, -0.34872931241989136, 0.2786414325237274, -0.26472583413124084, -0.21078042685985565, -0.3414784371852875, -0.3128625452518463, -0.00497595826163888, 0.16850580275058746, 0.09092072397470474, 0.1596052497625351, -0.4311870038509369, 0.32732129096984863, 0.37347254157066345, -0.09222715348005295, -0.19618725776672363, -0.311818391084671, 0.6112310886383057, -0.4165094792842865, -0.5064144730567932, -0.1404494047164917, 0.5804708003997803, 0.28060856461524963, -0.5438627004623413, 0.41229507327079773, 0.5159302353858948, 0.10697764903306961, -0.5715802311897278, -0.6942374110221863, -0.1204003244638443, -0.5103143453598022, 0.4802124500274658, -0.270151823759079, -1.1197822093963623, 0.32890522480010986, -0.3173651695251465, 0.04930378496646881, 0.3426379859447479, 0.9337644577026367, -0.24053485691547394, 0.8969129920005798, 0.6304630041122437, 0.13692016899585724, 0.2861267030239105, -0.059715386480093, 0.19568556547164917, -0.8681207299232483, 0.007828100584447384, -0.5511738061904907, -0.3966656029224396, -0.8210147619247437, -0.7679853439331055, 0.20782126486301422, 0.31685784459114075, -0.3372761011123657, -0.05115753039717674, -0.9929020404815674, 0.5824426412582397, 0.6196013689041138, 0.13724537193775177, 0.22890739142894745, -0.08467023819684982, -0.05663849785923958, 0.011843066662549973, -0.8130438923835754, -0.651370644569397, 1.157703161239624, 0.4635741412639618, 1.005142331123352, 0.08306680619716644, 1.3157213926315308, 0.20850567519664764, 0.33656278252601624, -0.38288384675979614, 0.3340013921260834, -0.3108615577220917, -0.6507337689399719, -0.12356726825237274, -0.6368316411972046, -0.8310901522636414, 0.05688850209116936, -0.06602321565151215, -0.5982640385627747, -0.03450772911310196, 0.23707756400108337, -0.052310001105070114, 0.36505746841430664, -0.5732186436653137, 0.7055110931396484, -0.6930972337722778, -0.3409141004085541, -0.559017539024353, -0.33512595295906067, 0.24694013595581055, -0.08693359792232513, 0.18064984679222107, -0.2897006869316101, -0.27586156129837036, 0.202636256814003, -0.24918650090694427, 0.7491037845611572, -0.12319786846637726, -0.4645220935344696, 0.31330960988998413, 0.16384971141815186, 0.038154952228069305, 0.1447935700416565, -0.26212823390960693, 0.3625917434692383, -0.4110369086265564, -0.3447047770023346, -0.36965346336364746, 1.0100218057632446, -0.8191999793052673, -0.7654393911361694, 0.0755431279540062, -0.7035786509513855, 0.04541398212313652, 0.3457823097705841, 0.46265411376953125, 0.3580329418182373, 0.1038968563079834, 0.18745504319667816, 0.5874401330947876, -0.3836406171321869, 0.48001787066459656, 0.61666339635849, -0.28048092126846313, -0.36003729701042175, 0.8058352470397949, -0.18528984487056732, -0.04074127972126007, 0.4712091386318207, 0.22935056686401367, -0.17895495891571045, -0.6114064455032349, -0.3413015902042389, 0.07442101091146469, -0.6163484454154968, -0.33131539821624756, -0.2740413248538971, 0.011851317249238491, -0.22773660719394684, -0.3059251010417938, -0.5165702104568481, -0.07323744893074036, -0.14304688572883606, 0.15290415287017822, 0.09224659204483032, 0.8567604422569275, -0.3091045916080475, 0.21566946804523468, -1.0452336072921753, 0.4981634020805359, 0.4382003843784332, 0.6741859316825867, 0.03703117370605469, -0.5487061738967896, -0.2864299416542053, 0.03944479301571846, -0.327882319688797, -0.8979187607765198, 0.0729178786277771, 0.17880254983901978, 1.07742178440094, 0.019935045391321182, 0.022725006565451622, 0.546288251876831, -0.4975050985813141, 0.35026681423187256, 0.2843763530254364, -1.1972604990005493, 0.8176735043525696, -0.5013704299926758, 0.680526614189148, 0.41745367646217346, 0.4195708930492401, 0.011322878301143646, -0.4784587323665619, -0.3182213008403778, -0.4393060803413391, 0.5691069960594177, 0.05084354802966118, 0.3168098032474518, -0.42766231298446655, 0.44076424837112427, 0.4301450550556183, 0.19654279947280884, -0.5921623110771179, -0.1120636910200119, -0.11357749998569489, -0.25358089804649353, 0.17773312330245972, -0.27132701873779297, -0.0998801738023758, -0.1174863800406456, 0.2563939392566681, -0.23070983588695526, 0.3602759838104248, 0.022614827379584312, -0.08114930242300034, -0.3480587303638458, 0.3515859842300415, 0.5561703443527222, 0.9195708632469177, -0.19488541781902313, 0.012544985860586166, 0.13919740915298462, -0.1804315745830536, 0.07802285999059677, -0.17045150697231293, 0.319675475358963, -0.25312477350234985, 0.82927006483078, 0.8247880935668945, 0.345588356256485, -0.5860133171081543, 0.2526560425758362, -0.1356966346502304, -0.03445545583963394, 0.10408682376146317, 0.7184762358665466, 0.02558373101055622, 0.45817604660987854, 0.39920198917388916, 0.14673826098442078, 0.270373672246933, -0.5574449300765991, 0.31543266773223877, 0.2578919231891632, -0.08155962079763412, 0.08257570117712021, 0.6112076640129089, 0.4131259322166443, -0.6053035259246826, 0.9564757347106934, -0.14482389390468597, -0.37486377358436584, 0.6520618200302124, 0.8710007667541504, 0.9504971504211426, -0.6266757249832153, -0.03876854479312897, 0.38137778639793396, 0.20344285666942596, 0.3388722240924835, 0.6987630724906921, -0.3819967806339264, -0.6359087228775024, -0.4350524842739105, -0.5483942031860352, -0.27556973695755005, -0.31659626960754395, -0.9799566864967346, 0.27838653326034546, -0.6195087432861328, -0.11850622296333313, -0.3223389983177185, -0.12281151860952377, -0.6699763536453247, 0.17370109260082245, 0.4920070767402649, 0.6352972388267517, -0.3854432702064514, 0.914197564125061, 0.714053213596344, 0.016514722257852554, -0.7383977770805359, 0.3044743537902832, -0.2554798126220703, -1.0570696592330933, 0.781535804271698, 0.4567207992076874, -0.46704843640327454, -0.004879877902567387, -0.4963298738002777, -0.6758000254631042, 0.8200424313545227, 0.6267915368080139, -1.0939379930496216, 0.1844830960035324, -0.251530259847641, 0.5361142754554749, -0.7121415138244629, 0.35714900493621826, 0.2744946777820587, 0.10032358020544052, -0.03472231701016426, -0.8635022640228271, -0.19786715507507324, -0.2590387761592865, 0.07019978016614914, 0.3241511285305023, -0.8214948773384094, 0.820850133895874, -0.6932522058486938, 0.03969612717628479, 0.035750191658735275, 0.19661672413349152, 0.6898449659347534, 0.055339518934488297, 0.37598520517349243, 0.5082629323005676, 0.8716304302215576, 0.22784316539764404, 1.2262732982635498, -0.7274701595306396, 0.3747800886631012, 1.323655366897583, -0.3126489222049713, 0.7629504203796387, 0.20021803677082062, -0.044684141874313354, 0.5267500281333923, 0.5172643661499023, -0.21558834612369537, 0.5980867147445679, 0.3189884126186371, 0.03797544911503792, -0.5843546986579895, 0.1500568836927414, -0.7390483021736145, 0.8073989748954773, 0.07547444850206375, -0.4324907064437866, 0.06641191989183426, -0.2450929433107376, -0.20980946719646454, 0.1760866791009903, -0.4316158890724182, 0.6315016150474548, -0.06090669706463814, -0.5701470971107483, 0.6560497283935547, 0.050926439464092255, 0.5938930511474609, -0.5502712726593018, -0.3375275433063507, -0.39356884360313416, 0.288875550031662, -0.16932253539562225, -0.6355331540107727, 0.15438728034496307, 0.008959139697253704, -0.2881753444671631, -0.24513931572437286, 0.48899707198143005, -0.23644952476024628, -0.715938925743103, 0.6032795310020447, 0.3941223621368408, 0.04788075014948845, 0.37374454736709595, -0.7623686790466309, 0.4025258421897888, 0.24404381215572357, -0.10980016738176346, 0.21130670607089996, 0.41475892066955566, 0.4290101230144501, 0.5754546523094177, 0.4137573540210724, -0.07769433408975601, 0.21008093655109406, 0.10661952197551727, 0.8215674161911011, -0.6583342552185059, -0.39021703600883484, -0.7981189489364624, 0.4210742115974426, 0.008471840061247349, -0.5425949692726135, 0.899502158164978, 0.6997352242469788, 0.8159464001655579, -0.24805527925491333, 0.6412301659584045, 0.2187613993883133, 0.6284696459770203, -0.5763680338859558, 0.32643166184425354, -0.6300704479217529, 0.5417794585227966, -0.36078548431396484, -1.3997176885604858, -0.25544285774230957, 0.8025640845298767, -0.3471250832080841, 0.40261831879615784, 0.4298174977302551, 0.6474831104278564, -0.14047248661518097, -0.03686973452568054, 0.35967233777046204, -0.0652301236987114, 0.06970325857400894, 0.6912360191345215, 1.250209093093872, -0.09939903020858765, 0.23253312706947327, -0.263713002204895, -0.37712621688842773, -0.28725987672805786, -0.8545321226119995, -0.8814385533332825, -0.13343459367752075, -0.3598010838031769, 0.20769496262073517, 0.0812128558754921, 0.8740144371986389, 0.8376851081848145, -0.7423796653747559, -0.5688723921775818, 0.0269154142588377, 0.21054603159427643, -0.1711905300617218, -0.12488259375095367, 0.08597902953624725, -0.9624992609024048, -0.8092207908630371, 0.5287213325500488, 0.6739036440849304, -0.18749839067459106, -0.0974959060549736, -0.38717538118362427, 0.17282940447330475, -0.0327446311712265, 0.2071489542722702, -0.13260459899902344, -0.684303343296051, -0.1797591596841812, 0.11034300178289413, -0.09710469841957092, 0.29344791173934937, 0.9944393634796143, -0.2985682189464569, 0.6231566667556763, 0.27230411767959595, 0.5045939683914185, 0.37025174498558044, -0.12684501707553864, 0.7094998359680176, -0.5113276839256287, 0.12477689236402512, 0.4394350051879883, 0.3681785762310028, 0.08110593259334564, -0.49181079864501953, 0.39237818121910095, -0.35729843378067017, -0.8076649904251099, -0.7831569910049438, 0.290828138589859, -0.5663149952888489, -0.5256547331809998, 0.744898796081543, -0.25687649846076965, 0.06578059494495392, 0.2652549147605896, -0.27544569969177246, 0.20964524149894714, -0.14745664596557617, 0.9440449476242065, 0.12619251012802124, -0.37050628662109375, -0.4602811932563782, -0.06665435433387756, 0.0916573628783226, 0.5129681825637817, -0.8254768252372742, -0.09337017685174942, 0.6580489277839661, 0.2721100151538849, 0.028001783415675163, 0.4476156532764435, -0.060385562479496, 0.5255955457687378, 0.2280605286359787, 0.19330783188343048, -0.05668805167078972, -0.5482364892959595, -0.33765992522239685, 0.23110514879226685, 0.4480123817920685, -0.3144180476665497 ]
http://arxiv.org/abs/2402.09126v2
http://arxiv.org/pdf/2402.09126v2
MPIrigen: MPI Code Generation through Domain-Specific Language Models
2024-02-14T12:24:21
2024-04-23T16:59:46
Nadav Schneider, Niranjan Hasabnis, Vy A. Vo, Tal Kadosh, Neva Krien, Mihai Capotă, Guy Tamir, Ted Willke, Nesreen Ahmed, Yuval Pinter, Timothy Mattson, Gal Oren
cs.DC
cs.DC, cs.AI, cs.CL, cs.LG, cs.SE
The imperative need to scale computation across numerous nodes highlights the significance of efficient parallel computing, particularly in the realm of Message Passing Interface (MPI) integration. The challenging parallel programming task of generating MPI-based parallel programs has remained unexplored. This study first investigates the performance of state-of-the-art language models in generating MPI-based parallel programs. Findings reveal that widely used models such as GPT-3.5 and PolyCoder (specialized multi-lingual code models) exhibit notable performance degradation, when generating MPI-based programs compared to general-purpose programs. In contrast, domain-specific models such as MonoCoder, which are pretrained on MPI-related programming languages of C and C++, outperform larger models. Subsequently, we introduce a dedicated downstream task of MPI-based program generation by fine-tuning MonoCoder on HPCorpusMPI. We call the resulting model as MPIrigen. We propose an innovative preprocessing for completion only after observing the whole code, thus enabling better completion with a wider context. Comparative analysis against GPT-3.5 zero-shot performance, using a novel HPC-oriented evaluation method, demonstrates that MPIrigen excels in generating accurate MPI functions up to 0.8 accuracy in location and function predictions, and with more than 0.9 accuracy for argument predictions. The success of this tailored solution underscores the importance of domain-specific fine-tuning in optimizing language models for parallel computing code generation, paving the way for a new generation of automatic parallelization tools. The sources of this work are available at our GitHub MPIrigen repository: https://github.com/Scientific-Computing-Lab-NRCN/MPI-rigen
[ -0.6290661692619324, -0.08670113980770111, 0.5688349008560181, 0.3757747709751129, 0.0160949919372797, -0.08278941363096237, -0.10774052143096924, -0.08302236348390579, -0.015350398607552052, 0.4399598240852356, -0.4768272340297699, -0.5067044496536255, -0.7279245257377625, 0.07102271914482117, -0.09399310499429703, 0.754163920879364, -0.2541232109069824, 0.036760374903678894, -0.4393353760242462, -0.15966486930847168, 0.04057293012738228, -0.8003533482551575, -0.4367360472679138, -0.5266278386116028, 0.5196934342384338, 0.3833094835281372, 0.2803209125995636, 0.9541893601417542, 0.6629921793937683, 0.16524899005889893, 0.2899492383003235, 0.033838409930467606, -0.3799339830875397, -0.3323988914489746, -0.07820670306682587, -0.3350740075111389, -0.49078643321990967, 0.026886669918894768, 0.7935970425605774, 0.659827709197998, -0.23399856686592102, 0.39742615818977356, 0.05861566588282585, 0.46205273270606995, -0.8599086403846741, 0.13444556295871735, -0.5397495627403259, -0.052065614610910416, -0.3822159469127655, -0.4160976707935333, -0.4377163052558899, -0.2051011472940445, -0.3775387704372406, -0.15846900641918182, 0.07121890038251877, -0.24346362054347992, 0.5662664175033569, 0.3258168399333954, -0.16719086468219757, -0.12666194140911102, -0.7039546966552734, 0.9317799806594849, -0.9059550762176514, 0.0852503851056099, -0.08407476544380188, 0.23642177879810333, -0.07738078385591507, -1.0401420593261719, -0.5314183831214905, -0.13275916874408722, 0.01272193156182766, -0.07006523013114929, -0.09625940024852753, 0.18466117978096008, 0.5361413955688477, 0.25349774956703186, -0.6947985887527466, 0.0323086753487587, -0.3575862646102905, 0.09740525484085083, 0.47841066122055054, 0.24723853170871735, 0.37386441230773926, 0.08122316747903824, 0.00228329049423337, -0.025961309671401978, -0.9237916469573975, -0.03543013706803322, 0.4695553481578827, 0.17127567529678345, -0.07372488081455231, 0.533517062664032, -0.1828940063714981, 0.7479174137115479, -0.24945476651191711, -0.2860225737094879, 0.1499192714691162, -0.16457770764827728, -0.2612311840057373, 0.07275467365980148, 0.7130249738693237, 0.24635322391986847, 0.48642581701278687, -0.0024692765437066555, -0.07684070616960526, 0.2608902156352997, 0.11211700737476349, -1.2017192840576172, -0.1991720348596573, 0.3633788228034973, -0.5962105393409729, -0.3499867618083954, -0.023280203342437744, -0.44330278038978577, -0.10207527875900269, -0.4862612783908844, 0.028770476579666138, -0.2674658000469208, -0.26776090264320374, 0.017138352617621422, 0.07118020951747894, 0.1858251839876175, -0.2945176064968109, -0.6240078806877136, 0.2434561550617218, 0.6858701705932617, 0.6924457550048828, -0.3421705663204193, -0.7323814630508423, -0.6296761631965637, 0.33400291204452515, -0.028738223016262054, 0.5467288494110107, -0.8866077661514282, -0.5012907981872559, -0.16357867419719696, -0.0998007282614708, -0.4284023940563202, -0.6123962998390198, 0.4527963399887085, -0.056161943823099136, -0.26392436027526855, -0.11753815412521362, -0.45365163683891296, 0.30728667974472046, -0.15016336739063263, -0.11759527772665024, 0.4787965714931488, -0.11917493492364883, -1.1015805006027222, 0.11330857127904892, -0.7366819381713867, -0.5388998985290527, -0.0019136749906465411, -0.2729688584804535, -0.3932958245277405, 0.2541891038417816, 0.24006204307079315, 0.29776731133461, -0.547553300857544, 0.323689728975296, -0.2398446500301361, -0.5172111988067627, -0.019836250692605972, -0.10739711672067642, 0.44644537568092346, 0.48181670904159546, -0.4501078128814697, 0.13837870955467224, -0.719356119632721, 0.33124956488609314, 0.03310035914182663, -0.2715553343296051, 0.24335455894470215, 0.14263653755187988, -0.09057297557592392, 0.11682768911123276, 0.30732545256614685, -0.6775724291801453, 0.20843535661697388, 0.054181057959795, 0.3321073055267334, 0.4268551170825958, -0.07705747336149216, 0.20665039122104645, -0.26733407378196716, 0.6107732057571411, 0.045214809477329254, 0.30819085240364075, -0.5049465298652649, -0.44020047783851624, -0.6388633251190186, -0.29678910970687866, 0.500378429889679, 0.6701374650001526, -0.7452552914619446, -0.08567413687705994, -0.30755919218063354, -0.626528263092041, -0.2881409227848053, -0.0580151304602623, 0.5324972867965698, 0.2225216180086136, 0.006869885139167309, -0.2285826951265335, -0.5837206244468689, -1.0834816694259644, -0.22928817570209503, -0.11389830708503723, -0.007378578186035156, 0.5223133563995361, 0.19545409083366394, -0.5436958074569702, 0.47611111402511597, -0.6660051345825195, 0.3056377172470093, -0.34865421056747437, 0.534197986125946, 0.11499863117933273, 0.7189381122589111, 0.6295430660247803, -0.7353667616844177, -0.5739366412162781, 0.16587786376476288, -0.6205027103424072, -0.39930886030197144, 0.0845835879445076, -0.08771520853042603, -0.15556758642196655, 0.4496876895427704, -0.5498545169830322, 0.2570086121559143, 0.6806371808052063, 0.18036596477031708, 0.6109928488731384, -0.35716724395751953, 0.39531460404396057, -0.9329186677932739, 0.5460677742958069, -0.07328440248966217, -0.07727105915546417, -0.78523188829422, 0.4228193461894989, -0.10084749758243561, -0.541684627532959, -0.5020738244056702, 0.18883255124092102, -0.26939657330513, -0.016782062128186226, -0.5469552874565125, -0.39771851897239685, -0.31891968846321106, 0.49814075231552124, 0.11717215180397034, 1.144325852394104, 0.8029679656028748, -0.5871875286102295, 0.03089369647204876, -0.4594162702560425, -0.1433742791414261, -0.052669912576675415, -0.8048161864280701, 0.1689492017030716, -0.12076667696237564, -0.10748090595006943, -0.39443713426589966, -0.4209635555744171, 0.04466850310564041, -0.37922143936157227, 0.34135398268699646, -0.3454316258430481, -0.5382234454154968, -0.33464282751083374, 0.1590910702943802, 0.7271291017532349, 0.7834518551826477, -0.47807079553604126, 0.44325339794158936, 0.4063775837421417, -0.3288441300392151, -0.42343848943710327, -0.586914598941803, -0.06189480051398277, 0.00428790831938386, -0.5297175645828247, 0.2398860901594162, -0.1482708901166916, -0.13374647498130798, -0.2973432242870331, 0.10839353501796722, -0.11854854971170425, -0.23155653476715088, 0.3468874394893646, -0.0884086936712265, -0.2772439122200012, -0.36577197909355164, 0.17632080614566803, -0.22392599284648895, -0.13006144762039185, -0.5990169048309326, 0.6795427799224854, -0.23606273531913757, -0.5835646986961365, -0.42780059576034546, 0.6779435873031616, 1.032812476158142, -0.6998174786567688, 0.8341099619865417, 0.5856412053108215, -0.24434685707092285, -0.049416281282901764, -0.4369993209838867, 0.1283842772245407, -0.4101984202861786, 0.041026826947927475, -0.7804833054542542, -0.7890287041664124, 0.3708723485469818, -0.4657534062862396, -0.19625724852085114, 0.15597917139530182, 0.5527856945991516, 0.40511637926101685, 1.4917677640914917, 0.9988671541213989, 0.03474581986665726, 0.20102640986442566, -0.09419874846935272, 0.3948732018470764, -0.553549587726593, -0.000011627821550064255, -0.5342953205108643, -0.1578155755996704, -0.7007788419723511, -0.4052716791629791, 0.38272327184677124, 0.11977463215589523, -0.07799284905195236, 0.46272337436676025, -0.6493918895721436, 0.6008222699165344, 0.5757911801338196, -0.35469549894332886, -0.036732017993927, 0.14054779708385468, -0.35484305024147034, -0.011821727268397808, -0.8177615404129028, -0.5053991079330444, 0.9145625829696655, 0.26535630226135254, 0.5011271834373474, -0.16634228825569153, 0.9092835187911987, 0.09967511147260666, 0.5467449426651001, -0.012145018205046654, 0.5001041293144226, -0.48776671290397644, -0.07520455121994019, 0.29035577178001404, -0.8089069724082947, -0.3746330738067627, -0.08828267455101013, 0.3466966450214386, -0.8227930068969727, 0.36949992179870605, 0.07120196521282196, -0.24350988864898682, 0.41830578446388245, -1.019316554069519, 1.06987726688385, 0.0932227075099945, -0.3796645402908325, -0.19417493045330048, -0.26370111107826233, 0.41414445638656616, -0.10657992959022522, -0.09430454671382904, -0.15310727059841156, 0.2339933067560196, 0.17306166887283325, -0.4077923893928528, 0.3985847532749176, -0.3985000252723694, 0.10168825089931488, 0.4244867265224457, -0.0871942937374115, 0.3811458349227905, 0.06564870476722717, -0.23651430010795593, 0.1598992794752121, 0.15679050981998444, -0.5478290915489197, -0.40553849935531616, 1.1471550464630127, -0.4932723641395569, -0.46839842200279236, -0.007380431517958641, -0.595217764377594, 0.04440135881304741, 0.2970442771911621, 0.49711450934410095, 0.7519226670265198, 0.10196734219789505, -0.12161332368850708, 0.6489640474319458, -0.40874308347702026, 0.2907496988773346, 0.2332182377576828, -0.3747323751449585, -0.15962328016757965, 1.3688255548477173, -0.17235615849494934, 0.06968242675065994, 0.2899092733860016, -0.364210844039917, 0.23057973384857178, -0.70304274559021, -0.43670129776000977, 0.38016605377197266, -0.30442014336586, -0.16123108565807343, -0.6962282061576843, -0.37204888463020325, -0.5210740566253662, -0.14730769395828247, -0.4412049353122711, -0.28002485632896423, -0.01443009078502655, 0.39820295572280884, -0.315091073513031, 0.6269611716270447, -0.13056540489196777, 0.37175458669662476, -0.8156821131706238, 0.12121973186731339, 0.15827518701553345, 0.4777348041534424, -0.18874216079711914, 0.1752137988805771, -0.1919119954109192, -0.001994979102164507, -0.11677413433790207, -0.5421904921531677, 0.31726258993148804, 0.15161389112472534, 0.4569244086742401, 0.20012900233268738, -0.11649281531572342, 0.4317023754119873, -0.6235342025756836, 0.584925651550293, 0.060328494757413864, -0.8565657138824463, 0.6305903196334839, -0.40185993909835815, 0.6873296499252319, 0.38740789890289307, 0.4563894271850586, -0.23077572882175446, -0.2576408088207245, -0.35603299736976624, -0.4025636613368988, 0.6651731729507446, 0.5482726097106934, -0.11926102638244629, -0.14001978933811188, 0.6129471063613892, -0.11487659811973572, 0.28923267126083374, -0.4011002480983734, -0.2812679708003998, -0.06364565342664719, -0.29297757148742676, -0.15465183556079865, -0.37435585260391235, 0.14769385755062103, -0.19036297500133514, 0.587857186794281, -0.3132779896259308, 0.43067118525505066, 0.2526945471763611, 0.13186196982860565, 0.008274538442492485, 0.18864239752292633, 0.7294161915779114, 0.9616125226020813, -0.15719012916088104, -0.056368447840213776, -0.14362084865570068, -0.4203796684741974, -0.033130958676338196, 0.41329681873321533, -0.08562827110290527, -0.03539680317044258, 0.08253820985555649, 0.6923736333847046, -0.43233782052993774, -0.9280024170875549, 0.5743383169174194, -0.3245968818664551, -0.03472709283232689, -0.21240608394145966, 0.22045141458511353, -0.0029157460667192936, 0.14017096161842346, 0.09265749156475067, 0.34174010157585144, 0.2460152506828308, -0.2293214350938797, 0.3871326148509979, 0.1847776174545288, -0.15859726071357727, -0.24125534296035767, 0.7871686220169067, 0.045382313430309296, -0.03331892192363739, 0.4827355444431305, -0.44427523016929626, -0.3687187731266022, 0.7092067003250122, 0.46073174476623535, 0.8761382699012756, -0.17797169089317322, 0.09276844561100006, 0.5194193124771118, 0.24965542554855347, 0.22080761194229126, 0.26448628306388855, -0.25625520944595337, -0.4718913435935974, -0.757077693939209, -1.0074872970581055, -0.1746470332145691, -0.038320351392030716, -0.3909711241722107, 0.05771009251475334, -0.565222442150116, -0.307175874710083, 0.05158941447734833, -0.2739827632904053, -0.4096628427505493, 0.13790756464004517, 0.49451470375061035, 0.967319905757904, -0.5631158351898193, 1.211290955543518, 0.9504969716072083, -0.046442098915576935, -0.6778295636177063, 0.2710460126399994, -0.21330375969409943, -0.2154819518327713, 0.5104250907897949, 0.17547859251499176, -0.22817304730415344, 0.1173369437456131, -0.3485892415046692, -0.5585052371025085, 0.8193132281303406, 0.5447725057601929, -0.46863123774528503, -0.05759812891483307, 0.6256527304649353, 0.4073971211910248, -0.9437041878700256, 0.1806728094816208, 0.6796103119850159, 0.23932376503944397, 0.07422083616256714, -0.8895376324653625, -0.2706952691078186, -0.5579735040664673, 0.3949853181838989, 0.36605769395828247, -0.5961434841156006, 0.7953919172286987, -0.1432127058506012, -0.11862631142139435, 0.3719748258590698, 0.40079569816589355, 0.31540629267692566, 0.21582190692424774, 0.010854789055883884, 0.6003327369689941, 0.4058518409729004, -0.20844249427318573, 1.5128145217895508, -0.9481832981109619, 0.10741762071847916, 0.8583657145500183, -0.3261904716491699, 0.6423699259757996, 0.2891470789909363, 0.12172462046146393, 0.397060364484787, 0.2777942419052124, 0.08873383700847626, 0.41567349433898926, 0.1950322985649109, -0.6125946640968323, -0.27481821179389954, -0.40041178464889526, -0.29017674922943115, 0.3205651640892029, 0.2616748511791229, -0.49101826548576355, -0.03931408002972603, 0.14182844758033752, -0.11924130469560623, -0.049388736486434937, -0.27438536286354065, 0.36799266934394836, 0.04491788148880005, -0.9392720460891724, 0.683521568775177, 0.3342616558074951, 0.4476304054260254, -0.5697599053382874, -0.04680117964744568, -0.25027909874916077, 0.6163391470909119, -0.021010462194681168, -0.3371131420135498, 0.5121491551399231, 0.1459500938653946, -0.45432010293006897, -0.06553392112255096, 0.8042778968811035, -0.3770004212856293, -0.5167267918586731, 0.20466288924217224, 0.35158488154411316, 0.22585105895996094, -0.07843395322561264, -0.5610578060150146, 0.39821845293045044, 0.3250354826450348, 0.19082267582416534, 0.35738277435302734, 0.01648835837841034, 0.33216020464897156, 0.5869757533073425, 0.6068309545516968, 0.10986644774675369, 0.1973084956407547, 0.19071067869663239, 0.7472726106643677, -0.2554936707019806, -0.04426313191652298, -0.562920868396759, 0.3509009778499603, -0.05281446501612663, -0.15298660099506378, 0.5115839838981628, 0.6943231225013733, 0.7563959360122681, -0.2696778476238251, 0.7711661458015442, -0.19648951292037964, 0.4002940058708191, -0.21250636875629425, 0.7051165103912354, -0.5130041241645813, 0.18338866531848907, -0.08103080093860626, -1.0390909910202026, -0.25663578510284424, -0.08251829445362091, -0.4054526388645172, 0.008938096463680267, 0.444852352142334, 1.063422441482544, -0.31855452060699463, -0.12594351172447205, 0.33963459730148315, -0.008005991578102112, 0.27754053473472595, 0.7438101172447205, 0.5144508481025696, -0.30007100105285645, 0.515686571598053, -0.431931734085083, -0.43836700916290283, 0.2573164403438568, -0.6241176724433899, -0.7445842027664185, -0.40782707929611206, -0.5611183047294617, 0.08426260948181152, 0.2056588977575302, 0.4403578042984009, 0.8638670444488525, -0.87437504529953, -0.42718419432640076, -0.4225596487522125, -0.2055748850107193, 0.04635811969637871, -0.20833995938301086, 0.04470592364668846, -0.5986959934234619, -0.9128430485725403, 0.27272549271583557, 0.4462949335575104, -0.0708773285150528, 0.01352316327393055, -0.2302369922399521, 0.02272200398147106, 0.2460518330335617, 0.3883717358112335, 0.5125247836112976, -0.44043371081352234, 0.2296513468027115, -0.18795765936374664, -0.1074611097574234, -0.013164302334189415, 1.2884037494659424, -0.5392996668815613, 0.21400396525859833, 0.42398205399513245, 0.5755563974380493, 0.5243319869041443, 0.07332950085401535, 0.8290382623672485, -0.7611654996871948, 0.31410181522369385, -0.041117388755083084, 0.4138588607311249, 0.24531559646129608, -0.22418645024299622, 0.3134824335575104, 0.18073709309101105, -0.6782765984535217, -0.7986577749252319, 0.472576767206192, -0.2894878685474396, -0.25432088971138, 0.8950081467628479, -0.3011946976184845, -0.35719165205955505, 0.5012345314025879, -0.17030826210975647, 0.1393318474292755, 0.14374692738056183, 0.15848670899868011, 0.3405996859073639, -0.36567947268486023, -0.4498869776725769, -0.3576793074607849, 0.5295463800430298, 0.4271297752857208, -0.5972534418106079, 0.0825432613492012, 0.15851789712905884, 0.14210879802703857, 0.32982707023620605, 0.4456239342689514, -0.32461458444595337, 0.33686742186546326, 0.3854002058506012, 0.3743264079093933, -0.1379842609167099, -0.48947134613990784, -0.06345438957214355, 0.43827730417251587, 0.2208034098148346, 0.011952604167163372 ]
http://arxiv.org/abs/2402.09025v4
http://arxiv.org/pdf/2402.09025v4
SLEB: Streamlining LLMs through Redundancy Verification and Elimination of Transformer Blocks
2024-02-14T09:01:13
2024-06-12T01:40:12
Jiwon Song, Kyungseok Oh, Taesu Kim, Hyungjun Kim, Yulhwa Kim, Jae-Joon Kim
cs.CL
cs.CL, cs.LG
Large language models (LLMs) have proven to be highly effective across various natural language processing tasks. However, their large number of parameters poses significant challenges for practical deployment. Pruning, a technique aimed at reducing the size and complexity of LLMs, offers a potential solution by removing redundant components from the network. Despite the promise of pruning, existing methods often struggle to achieve substantial end-to-end LLM inference speedup. In this paper, we introduce SLEB, a novel approach designed to streamline LLMs by eliminating redundant transformer blocks. We choose the transformer block as the fundamental unit for pruning, because LLMs exhibit block-level redundancy with high similarity between the outputs of neighboring blocks. This choice allows us to effectively enhance the processing speed of LLMs. Our experimental results demonstrate that SLEB outperforms previous LLM pruning methods in accelerating LLM inference while also maintaining superior perplexity and accuracy, making SLEB as a promising technique for enhancing the efficiency of LLMs. The code is available at: https://github.com/jiwonsong-dev/SLEB.
[ -0.4860903024673462, -0.9021704792976379, 0.39810317754745483, 0.39990004897117615, -0.5941333174705505, 0.255465567111969, -0.47526103258132935, -0.31772300601005554, 0.22022999823093414, 0.5851854085922241, -0.6530624628067017, -0.547890305519104, -0.42960378527641296, 0.1572997123003006, -0.7255259156227112, 0.7445256114006042, 0.009712956845760345, -0.23244549334049225, -0.16678737103939056, 0.036783818155527115, -0.5117794871330261, -0.12491107732057571, -0.5681167244911194, -0.5471562147140503, 0.3118683099746704, 0.3709360659122467, 0.49853959679603577, 0.6561760902404785, 0.46226561069488525, 0.4425904154777527, -0.5230393409729004, 0.4492088258266449, -0.7032106518745422, 0.4088343381881714, -0.09727773815393448, -0.4568121135234833, -0.48494571447372437, -0.49045422673225403, 0.7378280162811279, 0.5757623314857483, -0.21346528828144073, 0.3276095688343048, -0.07974782586097717, 0.6681639552116394, -0.4744362533092499, -0.0846780315041542, -0.8126320242881775, -0.20854227244853973, -0.34573066234588623, -0.05835353210568428, -0.600684404373169, -0.5324878096580505, -0.0787854716181755, -0.10335025936365128, 0.466653972864151, 0.17737187445163727, 1.1421867609024048, 0.31901583075523376, -0.36855849623680115, 0.14414082467556, -0.79849773645401, 0.7410937547683716, -0.7391798496246338, 0.3243168294429779, 0.04532352089881897, 0.15609826147556305, -0.17560900747776031, -0.8952736258506775, -0.40111520886421204, 0.010779760777950287, -0.3911377191543579, -0.11526692658662796, -0.03436990827322006, 0.25480917096138, 0.22513152658939362, 0.3785775601863861, -0.6005749106407166, 0.11666776239871979, -0.6000040769577026, -0.40713492035865784, 0.6522955894470215, 0.003835056908428669, -0.020102106034755707, -0.13052920997142792, -0.3779219090938568, 0.29577192664146423, -0.9271700978279114, -0.20749616622924805, 0.43263447284698486, -0.03492036834359169, 0.41685932874679565, 0.46555095911026, -0.02537006326019764, 0.7373573184013367, -0.19037170708179474, -0.27458903193473816, 0.20793417096138, -0.22241105139255524, -0.35921838879585266, 0.06006504222750664, 0.5218636989593506, 0.2333909273147583, 0.23284946382045746, -0.16587676107883453, -0.37834370136260986, 0.1250644326210022, 0.4150891602039337, -0.7812298536300659, -0.15309610962867737, 0.39227548241615295, -0.3003007173538208, -0.2476956993341446, -0.13262884318828583, -0.5462669134140015, -0.2717878818511963, -0.22696486115455627, -0.062367308884859085, -0.41056063771247864, -0.4006827175617218, 0.048265691846609116, 0.0947493463754654, 0.33902421593666077, 0.3198561668395996, -0.5415295958518982, 0.2589168846607208, 1.057315707206726, 0.6990899443626404, -0.29126131534576416, -0.2626936733722687, -0.2973089814186096, 0.058214638382196426, -0.26027917861938477, 0.8234483599662781, -0.25724655389785767, -0.14777548611164093, -0.1905490756034851, -0.00546907028183341, 0.24723610281944275, -0.7615951895713806, 0.6174328327178955, -0.6397307515144348, -0.36133113503456116, 0.12646636366844177, -0.5937532186508179, -0.26462987065315247, 0.3001490533351898, -0.6642277836799622, 1.0828527212142944, -0.08620118349790573, -0.49875345826148987, 0.006356074474751949, -0.3137952983379364, -0.9437305927276611, 0.38162145018577576, 0.057643331587314606, -0.7104431390762329, 0.3790559768676758, 0.06162325665354729, 0.3433792293071747, -0.36971041560173035, 0.7797365784645081, -0.15578396618366241, -0.6943219304084778, -0.052265942096710205, -0.3356408178806305, 0.7061823010444641, 0.1289430558681488, -0.22201527655124664, 0.3363291025161743, -0.9075261354446411, 0.22127266228199005, 0.22051185369491577, -0.25311899185180664, -0.24586786329746246, 0.05205446481704712, -0.25892016291618347, -0.1800469011068344, 0.15903529524803162, -0.5317423939704895, 0.09828951954841614, -0.4355335533618927, 0.569420576095581, 0.9237804412841797, -0.010952115058898926, 0.42766696214675903, -0.2125525325536728, 0.3264921009540558, -0.14014612138271332, -0.04847094044089317, -0.28414732217788696, -0.20431220531463623, -1.0353693962097168, -0.561102032661438, 0.4606175720691681, 0.46528998017311096, -0.48109593987464905, 0.6521232724189758, -0.3144587278366089, -0.475930392742157, -0.8249324560165405, 0.2365674376487732, 0.16375641524791718, 0.379364550113678, 0.33327892422676086, -0.015521209686994553, -0.9891021251678467, -1.1158415079116821, -0.26324230432510376, -0.07032757997512817, -0.12258356809616089, -0.009752637706696987, 0.3864765465259552, -0.26629260182380676, 1.1000032424926758, -0.37508440017700195, -0.019671836867928505, -0.6763322949409485, 0.025682242587208748, 0.2944243848323822, 0.3262578845024109, -0.21781788766384125, -0.7609415650367737, -0.27201858162879944, -0.08786128461360931, -0.522131085395813, -0.5133877396583557, -0.3814621567726135, -0.02970808371901512, 0.07258028537034988, 0.5589945912361145, -0.5324702262878418, 0.44490957260131836, 0.5084925293922424, -0.07824062556028366, 0.7344940900802612, -0.026185352355241776, -0.24139852821826935, -0.44450700283050537, -0.0924549326300621, -0.031769800931215286, -0.7096129655838013, -0.8049800395965576, 0.09571564197540283, 0.2714889645576477, 0.08005152642726898, -0.4820818305015564, 0.39672917127609253, -0.7351968288421631, -0.14190340042114258, -0.33980032801628113, 0.439703106880188, 0.19112999737262726, 0.51004558801651, -0.10825435817241669, 0.7424018383026123, 0.26814085245132446, -0.650407612323761, 0.5358449816703796, -0.012161815539002419, -0.3467196822166443, 0.2318033128976822, -0.6706641912460327, -0.03740426152944565, -0.4565516710281372, 0.26177915930747986, -0.8562328815460205, 0.21803787350654602, -0.11627744138240814, 0.04059145972132683, 0.25628963112831116, 0.005946184508502483, -0.4824497699737549, -0.5261625647544861, -0.25453847646713257, 0.1939500868320465, 0.6390044093132019, -0.5620858669281006, 0.790268063545227, 0.2868216931819916, -0.1707371473312378, -0.416960209608078, -0.7166346311569214, 0.07960528135299683, -0.2503372132778168, -0.7177581787109375, 0.5085155367851257, 0.06468251347541809, -0.26485639810562134, -0.07302610576152802, -0.5183404684066772, -0.04634736105799675, 0.3394479751586914, 0.14401262998580933, 0.3963470458984375, -0.1722666472196579, 0.1884629875421524, -0.0628185123205185, -0.25300586223602295, -0.02415488474071026, -0.07752764225006104, 0.7109227776527405, -0.28124338388442993, -0.5886412858963013, -0.4839598834514618, 0.1334736943244934, 0.5281669497489929, -0.24142703413963318, 0.5008328557014465, 0.5526149868965149, -0.24007776379585266, -0.5170264840126038, -0.9027639627456665, -0.300425261259079, -0.5100398063659668, 0.5322619676589966, -0.25835421681404114, -0.966859757900238, 0.3374970555305481, -0.5120549201965332, 0.3394521176815033, -0.02614525891840458, 0.3820261061191559, -0.020591212436556816, 0.44213545322418213, 0.5215402841567993, -0.037108417600393295, 0.3136475086212158, -0.1308128982782364, 0.7320864796638489, -0.9225246906280518, -0.13257449865341187, -0.421976774930954, -0.628889799118042, -0.33179721236228943, -0.49080801010131836, -0.05166437476873398, 0.26702144742012024, -0.08967332541942596, 0.514497697353363, -0.5577396750450134, 0.750507652759552, 0.43582016229629517, 0.06748923659324646, 0.5500023365020752, -0.11542137712240219, 0.029820626601576805, -0.07991186529397964, -0.4947665333747864, -0.488626092672348, 0.5905209183692932, 0.47818660736083984, 0.6975111961364746, -0.03072536550462246, 0.8111190795898438, 0.027804479002952576, 0.5842598676681519, -0.6299793124198914, 1.0772590637207031, 0.13329963386058807, -0.555287778377533, -0.45352908968925476, -0.4585103988647461, -0.726771891117096, 0.6752086877822876, -0.001239622593857348, -0.6779949069023132, -0.2728816866874695, 0.25757071375846863, -0.08320289105176926, 0.5193096995353699, -0.8254373669624329, 0.5560268759727478, -0.2916848957538605, -0.44301900267601013, -0.23485836386680603, -0.5216917991638184, 0.5653974413871765, -0.0748172178864479, 0.1646394580602646, -0.18680688738822937, 0.04753094166517258, 0.4884834289550781, -0.5693615078926086, 0.8280629515647888, -0.011443689465522766, -0.04352697730064392, 0.3653479218482971, 0.15236319601535797, 0.9515067338943481, -0.014158586040139198, 0.03127945587038994, 0.16726644337177277, -0.587669312953949, -0.28730371594429016, -0.4634109139442444, 0.6229451298713684, -0.2255011796951294, -0.7385007739067078, -0.026941578835248947, -0.5202715396881104, -0.11562864482402802, 0.32751789689064026, -0.07357913255691528, 0.1603773683309555, 0.10512785613536835, 0.36608409881591797, 0.6864911913871765, -0.1292611062526703, 0.5128065943717957, 0.3353467583656311, -0.3286932408809662, -0.2727207541465759, 0.9172772169113159, -0.12671421468257904, 0.2878227233886719, 0.24213390052318573, -0.03026430308818817, -0.18812885880470276, -0.9791615009307861, 0.06522452086210251, 0.5991994738578796, -0.630829393863678, -0.4355201721191406, -0.3995300531387329, -0.4240366816520691, -0.16514942049980164, -0.20487436652183533, -0.5081420540809631, -0.08711657673120499, 0.03447496518492699, -0.332830548286438, 0.05470757558941841, 0.5870614051818848, 0.4482896029949188, 0.5633634328842163, -0.8261359930038452, 0.2872329652309418, 0.03670790046453476, 0.4865127503871918, -0.0036404479760676622, -0.31477612257003784, 0.004652590956538916, -0.31771212816238403, -0.2081342488527298, -0.7592666149139404, 0.3985144793987274, -0.1305982619524002, 0.5524110794067383, 0.31455403566360474, 0.12801268696784973, 1.0597050189971924, -0.5827416181564331, 0.6069028973579407, 0.17742829024791718, -1.0202556848526, 0.2567712068557739, 0.20677413046360016, 0.32374563813209534, 0.43369704484939575, -0.01431227196007967, -0.5304141044616699, -0.7599722743034363, -0.7258269190788269, -1.286316156387329, 0.43666189908981323, 0.240530326962471, -0.3427910804748535, 0.09144924581050873, 0.2175694853067398, -0.05859173461794853, 0.43165111541748047, -0.871810257434845, -0.4480740427970886, 0.17693664133548737, -0.11364375799894333, 0.21072937548160553, -0.5108514428138733, 0.0070487093180418015, -0.07814890146255493, 0.9651178121566772, 0.08766268193721771, -0.039765335619449615, 0.1685951054096222, -0.6695569157600403, 0.19959315657615662, 0.4352949559688568, 0.5475947856903076, 0.7053800821304321, 0.026135489344596863, 0.2950107753276825, 0.5420923829078674, -0.35156458616256714, 0.21621067821979523, -0.3521600067615509, -0.5145346522331238, 0.28252890706062317, 0.4421093761920929, 0.8499724864959717, 0.29007288813591003, -0.7764182090759277, 0.2970324158668518, -0.06480192393064499, -0.14401660859584808, -0.18139730393886566, -0.14692920446395874, 0.3475515842437744, 0.2671811580657959, 0.37732577323913574, 0.03149404004216194, -0.1955629140138626, 0.06456193327903748, 0.21629473567008972, 0.350472092628479, 0.04948324337601662, -0.1104726791381836, 0.18073061108589172, 0.3367263674736023, -0.5524582266807556, 0.6617400646209717, -0.29384344816207886, -0.5631985664367676, 0.574129045009613, 0.728823184967041, 0.74178147315979, 0.004384192172437906, 0.09225944429636002, 0.32854509353637695, 0.6713114976882935, -0.22571511566638947, -0.10784163326025009, -0.0535658597946167, -0.5946860909461975, -0.8126838207244873, -0.7757677435874939, -0.2675569951534271, 0.31205570697784424, -0.43234458565711975, 0.4749204218387604, -0.40129196643829346, 0.022075582295656204, -0.37195730209350586, -0.12611044943332672, -0.2605816721916199, -0.13662874698638916, 0.17934750020503998, 1.0618407726287842, -0.6907131671905518, 0.8214118480682373, 0.4820469617843628, 0.19508565962314606, -0.7263903617858887, -0.1680092066526413, -0.016743287444114685, -0.591733455657959, 0.5004935264587402, 0.3273438513278961, -0.11780605465173721, 0.023468000814318657, -0.30018261075019836, -0.6411007046699524, 1.2002464532852173, 0.38116493821144104, -1.0178557634353638, -0.19612175226211548, -0.10257658362388611, 0.35757726430892944, -0.10096219927072525, 0.2955404818058014, 0.8801770806312561, 0.7438838481903076, 0.1774962842464447, -0.5805355906486511, 0.1868886798620224, 0.02206999994814396, 0.17075660824775696, 0.6260538697242737, -0.3850926160812378, 0.5877984762191772, -0.23135513067245483, -0.37508997321128845, -0.1285734325647354, 0.9450396299362183, 0.487017422914505, 0.10385571420192719, 0.776762843132019, 0.500135600566864, 1.0163118839263916, -0.2886415123939514, 0.4434434175491333, -0.27869880199432373, 0.5182588696479797, 1.1833889484405518, -0.520383358001709, 0.6173722147941589, 0.715860903263092, -0.31272801756858826, 0.4321383535861969, 0.29594072699546814, -0.07105156779289246, 0.19507478177547455, 0.4720776379108429, -0.3010328412055969, -0.30163148045539856, 0.18912266194820404, 0.0746149942278862, 0.09508437663316727, 0.276951402425766, 0.0264388807117939, -0.549109697341919, -0.1630270779132843, 0.12711447477340698, 0.0826444998383522, -0.2141098827123642, 0.5541338920593262, -0.013588806614279747, -0.7100201845169067, 0.5853719711303711, 0.023684436455368996, 0.9002841114997864, -0.8289211392402649, 0.188905730843544, -0.28199028968811035, 0.3465559184551239, -0.35318291187286377, -0.49412044882774353, 0.561434268951416, -0.17279548943042755, 0.014589115977287292, -0.6225010752677917, 1.0141119956970215, -0.46685418486595154, -0.26764625310897827, 0.4133356809616089, 0.30649444460868835, 0.15013976395130157, 0.05653592571616173, -0.3135358691215515, 0.40556755661964417, 0.380719393491745, -0.4203564524650574, 0.1927267462015152, 0.3793492019176483, -0.05860928073525429, 0.935545027256012, 0.7556787133216858, 0.5597390532493591, 0.1376577764749527, 0.06320016086101532, 0.7686490416526794, -0.8091292977333069, -0.2526422441005707, -1.1310126781463623, 0.6127839088439941, -0.42199453711509705, 0.09721878170967102, 0.6003620028495789, 0.5909263491630554, 0.748552143573761, 0.07411680370569229, 0.543209433555603, 0.012457674369215965, 0.4228428602218628, -0.16218475997447968, 0.45011475682258606, -0.24293388426303864, 0.7431814074516296, 0.22643311321735382, -0.7642821073532104, -0.39561226963996887, 0.6850171089172363, -0.14027833938598633, -0.28501951694488525, 0.971079409122467, 1.09099280834198, 0.06693976372480392, 0.09854848682880402, 0.3319312036037445, 0.46576517820358276, 0.5066458582878113, 0.28183090686798096, 0.5185609459877014, -0.25807011127471924, 0.8851706385612488, -0.3581162393093109, -0.1498616337776184, -0.2092529982328415, -1.0396887063980103, -0.8651014566421509, -0.23395320773124695, -0.286250501871109, -0.28261369466781616, -0.011790478602051735, 0.7560542225837708, 0.5316749215126038, -0.6523028016090393, -0.30829131603240967, -0.32300710678100586, 0.6484994888305664, -0.41104286909103394, -0.23394718766212463, 0.016259051859378815, -0.4513028562068939, -0.6341810822486877, 0.4045507311820984, 0.4689615070819855, -0.14811104536056519, -0.4041633605957031, 0.047137655317783356, -0.351570188999176, -0.10896947234869003, 0.5347836017608643, 0.04192069172859192, -0.8386619091033936, 0.02679496631026268, -0.2678031921386719, -0.12407058477401733, 0.0740835890173912, 0.9701823592185974, -0.8906677961349487, -0.16339431703090668, 0.6650633811950684, 0.7719890475273132, 0.5627511143684387, 0.22801771759986877, 0.4907449185848236, -0.9983683228492737, 0.1893685758113861, 0.3811548948287964, 0.5637264847755432, 0.23201029002666473, -0.09092321991920471, 0.4540106952190399, 0.2456945925951004, -0.5096789002418518, -1.305885672569275, 0.39429670572280884, -0.7513882517814636, -0.3516875207424164, 1.2219467163085938, -0.1281120926141739, -0.6456379890441895, -0.09949570149183273, -0.3204440474510193, 0.11420515924692154, -0.29710692167282104, 0.4488813877105713, 0.6382814049720764, 0.20388786494731903, -0.33763498067855835, -0.34992220997810364, 0.03828691691160202, 0.5721549391746521, -0.8329517245292664, 0.4916878342628479, 0.30692625045776367, 0.3386784493923187, 0.22414030134677887, 0.5452879071235657, 0.05147024616599083, -0.06613133102655411, -0.2950572073459625, 0.3218112289905548, -0.3541319966316223, -0.40715301036834717, -0.33704185485839844, 0.5480487942695618, -0.1150238886475563, -0.006344734691083431 ]
http://arxiv.org/abs/2402.09015v3
http://arxiv.org/pdf/2402.09015v3
Towards better Human-Agent Alignment: Assessing Task Utility in LLM-Powered Applications
2024-02-14T08:46:15
2024-02-22T23:49:10
Negar Arabzadeh, Julia Kiseleva, Qingyun Wu, Chi Wang, Ahmed Awadallah, Victor Dibia, Adam Fourney, Charles Clarke
cs.CL
cs.CL, cs.AI
The rapid development in the field of Large Language Models (LLMs) has led to a surge in applications that facilitate collaboration among multiple agents to assist humans in their daily tasks. However, a significant gap remains in assessing whether LLM-powered applications genuinely enhance user experience and task execution efficiency. This highlights the pressing need for methods to verify utility of LLM-powered applications, particularly by ensuring alignment between the application's functionality and end-user needs. We introduce AgentEval provides an implementation for the math problems, a novel framework designed to simplify the utility verification process by automatically proposing a set of criteria tailored to the unique purpose of any given application. This allows for a comprehensive assessment, quantifying the utility of an application against the suggested criteria. We present a comprehensive analysis of the robustness of quantifier's work.
[ -0.17802634835243225, -0.5063764452934265, 0.46215903759002686, 0.22399815917015076, 0.1934913694858551, 0.4309896230697632, -0.17682009935379028, -0.4404420256614685, 0.026828106492757797, 0.5294113755226135, -0.42586928606033325, -0.4480828642845154, -0.4256829023361206, 0.032350122928619385, -0.2583770453929901, 0.5937909483909607, -0.2006436288356781, -0.010294800624251366, -0.8862820863723755, -0.31520015001296997, -0.6920021772384644, -0.4267396330833435, -0.4469815492630005, -0.7180285453796387, 0.054659586399793625, 0.4879874289035797, 1.1830005645751953, 0.5319828391075134, 0.948145866394043, 0.5379112958908081, 0.47559574246406555, 0.17337971925735474, -0.27144190669059753, 0.43556803464889526, -0.13043081760406494, -0.34378868341445923, -1.0965728759765625, -0.039207495748996735, 0.38819825649261475, 0.6458435654640198, -0.4608665406703949, 0.3281305432319641, 0.1515720635652542, 0.5963274240493774, -0.8325155973434448, 0.029012011364102364, -0.5047388076782227, -0.286725789308548, -0.06731097400188446, -0.27757352590560913, -0.26328617334365845, -0.41346311569213867, -0.13579069077968597, -0.6002402901649475, -0.04068998619914055, 0.08836384117603302, 0.7969094514846802, 0.7382380366325378, -0.6584237217903137, -0.17038196325302124, -0.6662185192108154, 0.9485403299331665, -0.4405636191368103, 0.37101995944976807, 0.4733286499977112, 0.6665816307067871, -0.2924148440361023, -0.5383338928222656, -0.6004858016967773, -0.4177553653717041, -0.12238695472478867, -0.08292078971862793, -0.34032928943634033, 0.19342033565044403, 0.2823221981525421, 0.13555066287517548, -0.6966965198516846, 0.07109232991933823, 0.23964129388332367, -0.468380331993103, 0.7777406573295593, 0.47465968132019043, 0.4967348575592041, 0.08114971220493317, -0.2670270502567291, -0.14909054338932037, -0.6128516793251038, 0.22888264060020447, 0.411044180393219, 0.20371410250663757, 0.036958903074264526, 0.7763638496398926, -0.00018007414473686367, 0.5939757227897644, -0.13708040118217468, -0.18655599653720856, 0.13909611105918884, -0.4008721113204956, -0.2054775357246399, 0.07916527986526489, 0.482460618019104, 0.4538784623146057, 0.342316210269928, -0.1330188512802124, -0.28896522521972656, 0.1829220950603485, 0.455810546875, -0.684390664100647, 0.26621174812316895, 0.5016223788261414, -0.12432340532541275, -0.27963122725486755, -0.08631376922130585, -0.26981300115585327, -0.6560406684875488, -0.4923047721385956, 0.3237378001213074, -0.24707292020320892, -0.21987096965312958, 0.1674765795469284, 0.1758735328912735, 0.3581998348236084, 0.2525741159915924, -0.9107118844985962, 0.5116947293281555, 1.2182433605194092, 0.6349896192550659, -0.2409832626581192, -0.3664449453353882, -0.8877760171890259, 0.018161704763770103, -0.20533734560012817, 0.7698414921760559, -0.26984256505966187, -0.15022291243076324, 0.05324019491672516, -0.13924618065357208, -0.04134676605463028, -0.5125739574432373, 0.687339723110199, -0.5758222937583923, -0.11669211089611053, -0.1997765451669693, -0.5930346250534058, 0.30790281295776367, 0.45512983202934265, -0.6068965196609497, 1.1097874641418457, 0.3225281834602356, -0.48150622844696045, 0.3211047947406769, -0.7569716572761536, -0.4446001946926117, 0.16479256749153137, -0.12939739227294922, -0.6074683666229248, 0.0172658022493124, -0.009843969717621803, 0.1798090636730194, -0.48774442076683044, 0.33289453387260437, -0.22630053758621216, -0.20161205530166626, 0.5079457759857178, -0.3874049484729767, 0.9348059892654419, 0.26231738924980164, -0.3987700343132019, 0.35870757699012756, -0.7382461428642273, 0.2121107280254364, -0.08937351405620575, 0.05799616128206253, -0.4530317485332489, 0.14412735402584076, 0.08943961560726166, -0.01671392284333706, 0.6583849787712097, -0.48593682050704956, 0.13695602118968964, -0.32827073335647583, 0.17418795824050903, 0.7059608101844788, -0.47539737820625305, 0.5611693263053894, -0.46135371923446655, 0.9548079967498779, -0.522772490978241, 0.3623341917991638, 0.11854177713394165, -0.1684202253818512, -0.4190179705619812, -0.3716248869895935, 0.36455613374710083, 0.7501312494277954, -0.683910608291626, 0.7493005394935608, -0.3058071732521057, -0.4869135022163391, -0.422396183013916, 0.264139860868454, 0.35729578137397766, 0.46346887946128845, 0.03003113530576229, -0.008367989212274551, -0.3175872564315796, -0.7971280813217163, -0.39981719851493835, -0.3229254484176636, -0.2628241777420044, 0.37482449412345886, 0.19864937663078308, -0.24755561351776123, 1.3410356044769287, -0.29724112153053284, -0.19237422943115234, -0.16925108432769775, -0.16517899930477142, -0.010388256050646305, 0.3376232385635376, 0.4482278525829315, -0.8225855231285095, -0.6199010014533997, 0.28953707218170166, -0.7638559341430664, -0.7252723574638367, 0.06468167155981064, -0.23602841794490814, 0.12874536216259003, 0.21709761023521423, -0.6220489740371704, 0.4474138021469116, 0.5860272645950317, -0.6044292449951172, 0.44645431637763977, -0.2911757528781891, 0.2729661464691162, -1.0015870332717896, 0.31805434823036194, -0.08690628409385681, -0.5127921104431152, -0.57474285364151, 0.1193479523062706, 0.20207206904888153, -0.01758044771850109, -0.2508571445941925, 0.5803706049919128, -0.49060699343681335, -0.26491400599479675, -0.5048747062683105, 0.17663505673408508, 0.07749353349208832, 0.020874693989753723, -0.40563929080963135, 1.0586833953857422, 0.4705747961997986, -0.3056797385215759, 0.5316066145896912, 0.09929832816123962, -0.010024718940258026, 0.8928577899932861, -0.7283524870872498, 0.1347566395998001, 0.17292624711990356, -0.12852489948272705, -1.0540270805358887, -0.24666009843349457, -0.1263393759727478, -0.4205794036388397, 0.06042429432272911, 0.2446601539850235, -0.503846287727356, -0.13176243007183075, -0.365981787443161, 0.6522459387779236, 0.4916316568851471, -0.3925878405570984, 1.1363048553466797, 0.5041103959083557, 0.026035545393824577, -0.7816339731216431, -0.19282737374305725, 0.16923737525939941, -0.2841774821281433, -1.050252079963684, 0.3709897994995117, 0.05657615885138512, -0.6996318697929382, -0.048811979591846466, -0.12548260390758514, 0.11400210857391357, 0.4283161461353302, 0.40541544556617737, 0.4464191198348999, 0.042832955718040466, 0.04995127022266388, -0.06267024576663971, -0.3918325901031494, -0.018069999292492867, -0.1066352128982544, 0.2905510663986206, -0.2825392484664917, -0.7681704759597778, -0.27895814180374146, 0.081380195915699, 0.5950511693954468, -0.250447154045105, 0.3393578827381134, 0.39007773995399475, -0.36260131001472473, 0.07042140513658524, -0.6295241713523865, 0.08340257406234741, -0.5806690454483032, 0.23382209241390228, -0.1629190742969513, -0.8048486709594727, 0.7310786247253418, -0.2495194673538208, 0.20676791667938232, 0.26469749212265015, 0.6652864217758179, 0.16709962487220764, 1.302701711654663, 0.7703226804733276, 0.020728735253214836, 0.4529767632484436, -0.030360842123627663, 0.003385914722457528, -0.587956428527832, -0.168436199426651, -0.6784868836402893, -0.29595476388931274, -0.4931904971599579, -0.17249058187007904, 0.5506897568702698, -0.24254898726940155, -0.09442556649446487, 0.5224155783653259, -0.43390214443206787, 0.6331768035888672, 0.18008358776569366, -0.3235478103160858, 0.3444414436817169, 0.04061835631728172, -0.006548276171088219, 0.03819853812456131, -0.3479892909526825, -0.8028407692909241, 0.9304256439208984, 0.3040095567703247, 0.8677331805229187, 0.44944193959236145, 0.5922024250030518, 0.48491817712783813, 0.4681450128555298, -0.9791175723075867, 0.6215705871582031, -0.08169107884168625, -0.4388333261013031, -0.6233562231063843, -0.32248571515083313, -1.4410006999969482, 0.2738953232765198, -0.04121912270784378, -0.8985109925270081, -0.03304154425859451, 0.2710549235343933, -0.467365562915802, -0.11775549501180649, -0.7216194868087769, 0.9615554213523865, -0.6037793159484863, -0.7915719747543335, -0.29460811614990234, -0.45069608092308044, 0.051678914576768875, -0.009739204309880733, 0.1833009272813797, -0.40166500210762024, -0.30085811018943787, 0.39788326621055603, -0.8955641388893127, 0.5705176591873169, -0.026240747421979904, -0.4484562575817108, 0.1860860139131546, 0.04985930025577545, 0.489942729473114, -0.17356768250465393, -0.24547500908374786, 0.012964433059096336, 0.18044357001781464, -0.5199355483055115, -0.9215479493141174, 0.6620883345603943, -0.6440799832344055, -0.6581124663352966, -0.5841010212898254, -0.6122162938117981, -0.4004867672920227, 0.19435067474842072, -0.20741896331310272, 0.34101614356040955, -0.2993496060371399, 0.05396305024623871, 0.27142325043678284, 0.2743184566497803, 0.3944392502307892, 0.538543701171875, -0.3432866930961609, -0.3486432731151581, 0.7963624000549316, -0.22254762053489685, 0.21658176183700562, 0.4154406785964966, 0.20099128782749176, -0.49431347846984863, -0.2630326747894287, -0.4048590362071991, -0.11333926022052765, -0.4396446943283081, -0.34370720386505127, -0.09717311710119247, 0.004574960097670555, -0.3517444431781769, -0.2517370879650116, -0.41607406735420227, -0.32256823778152466, -0.1775166392326355, 0.23241059482097626, 0.13196223974227905, 0.4889795184135437, 0.03650497645139694, 0.35931074619293213, -0.750316321849823, 0.20917242765426636, 0.43139439821243286, 0.29357457160949707, -0.16244767606258392, -0.1814626306295395, -0.3750329315662384, -0.12213340401649475, -0.6223902106285095, -0.6902515888214111, 0.33833619952201843, 0.16093413531780243, 0.6317563056945801, 0.44223752617836, 0.17853569984436035, 0.4508141279220581, -0.36927103996276855, 0.7428431510925293, 0.23052847385406494, -1.1866168975830078, 0.36202675104141235, -0.03946606442332268, 0.14622603356838226, 0.6096253395080566, 0.07558224350214005, -0.3569101393222809, -0.23396000266075134, -0.5315982699394226, -0.7341554164886475, 0.3702233135700226, 0.505649209022522, -0.02343844622373581, 0.26497870683670044, 0.3303641676902771, -0.04324507713317871, 0.09088575094938278, -0.23908039927482605, -0.1543048918247223, -0.09362675994634628, -0.4505743086338043, -0.12008602172136307, -0.041620370000600815, -0.14945200085639954, -0.09056996554136276, 0.45974594354629517, -0.368243545293808, -0.07634291052818298, -0.03861352428793907, -0.18607711791992188, -0.2545648515224457, 0.33930328488349915, 0.6553595662117004, 0.8648779988288879, -0.1599551886320114, 0.42149797081947327, 0.0873224139213562, -0.645677387714386, 0.5401280522346497, 0.3214569091796875, 0.062060341238975525, -0.3186700642108917, 0.5253125429153442, 0.4527502655982971, 0.043104272335767746, -0.8740107417106628, 0.762298047542572, -0.29429277777671814, -0.02902042120695114, -0.2853551506996155, 0.3813858926296234, -0.18290618062019348, 0.4106685221195221, 0.46353262662887573, -0.11614744365215302, 0.19720208644866943, -0.27196741104125977, 0.16337373852729797, 0.9202238321304321, -0.18718279898166656, -0.239263117313385, 0.45197251439094543, 0.28656336665153503, -0.9318255186080933, 0.2644251883029938, -0.1271878331899643, -0.48789191246032715, 0.8372944593429565, 0.4099419414997101, 1.1512343883514404, -0.3791393041610718, 0.04269268363714218, -0.11621381342411041, 0.3043254017829895, 0.16651129722595215, 0.3750196695327759, -0.22293399274349213, -0.7278321385383606, -0.667834997177124, -0.40921375155448914, -0.5898792147636414, -0.37266623973846436, -0.5723544955253601, 0.20850315690040588, 0.0702342838048935, -0.6538974642753601, 0.09840130805969238, 0.25426796078681946, -0.6161364316940308, -0.3143532872200012, -0.2484266757965088, 0.7350423336029053, -0.6958429217338562, 0.8010059595108032, 0.9551486968994141, -0.014593588188290596, -0.7275025844573975, 0.011609354987740517, -0.020121486857533455, -0.9662156105041504, 0.5940755009651184, -0.04616154730319977, -0.4762938916683197, -0.0898885652422905, -0.4490728974342346, -0.7390387654304504, 1.3621994256973267, 0.9157630801200867, -0.4849187731742859, 0.36301732063293457, 0.5526783466339111, 0.6517882943153381, -0.2588734030723572, 0.4022350013256073, 0.5355732440948486, 0.5731386542320251, 0.2187192738056183, -1.25334894657135, 0.11156834661960602, -0.2872806191444397, 0.05932600051164627, 0.3812922239303589, -0.3972814679145813, 0.3938325047492981, -0.1463679075241089, -0.11508326232433319, 0.10795316845178604, 0.5828486680984497, 0.28972646594047546, 0.7265071272850037, 0.5888451337814331, 0.3182448148727417, 1.0184067487716675, 0.15694434940814972, 1.0533286333084106, -0.5279315114021301, 0.4901820719242096, 0.7579997777938843, -0.726110577583313, 0.5641754865646362, 0.5169065594673157, -0.481599360704422, 0.3100852966308594, 0.3054579198360443, 0.3294665217399597, 0.17002904415130615, 0.277925580739975, -0.37400341033935547, -0.49482646584510803, -0.26527154445648193, -0.26155781745910645, 0.5571033954620361, 0.06758031994104385, 0.22937443852424622, -0.3295830488204956, -0.015880664810538292, -0.24545173346996307, 0.34006327390670776, -0.10496384650468826, 0.7303318977355957, 0.041546404361724854, -0.7953240275382996, 0.4538317024707794, -0.03507763892412186, 0.36471784114837646, -0.49911126494407654, -0.09027820825576782, -0.11034324020147324, 0.30560368299484253, -0.38473257422447205, -0.6151722073554993, 0.29634296894073486, -0.08477848768234253, 0.018106799572706223, -0.15033124387264252, 1.0340989828109741, -0.21492743492126465, -0.3460000157356262, 0.006398632191121578, 0.6512795090675354, 0.08876506984233856, -0.009420821443200111, -0.6812990307807922, 0.16506792604923248, -0.42352065443992615, 0.0864029973745346, 0.4250432550907135, 0.3484967350959778, -0.15340055525302887, 0.9204007983207703, 0.5494998097419739, -0.039133090525865555, -0.2897413372993469, 0.13692238926887512, 0.5819811820983887, -0.35999608039855957, -0.4499105215072632, -1.194211721420288, 0.4384794235229492, -0.22833168506622314, -0.010723737068474293, 1.0274319648742676, 0.5907857418060303, 0.19236785173416138, 0.28108474612236023, 0.4292990565299988, 0.09616241604089737, 0.08976703137159348, -0.35262802243232727, 0.5959751009941101, -0.5864094495773315, 0.6195802092552185, -0.2029278427362442, -0.799815833568573, -0.3907150328159332, 0.6061281561851501, -0.3871169686317444, 0.1516939252614975, 0.6132896542549133, 0.8725855350494385, 0.011013471521437168, -0.10688971728086472, 0.5126244425773621, -0.43501511216163635, 0.4410013258457184, 0.5644839406013489, 1.0809499025344849, -0.24499750137329102, 0.35266953706741333, -0.04345147684216499, -0.48727676272392273, -0.2835102677345276, -1.328262209892273, -0.7423186898231506, -0.4922395646572113, -0.4301537275314331, -0.5979270339012146, -0.0916578620672226, 1.2625600099563599, 0.6718311905860901, -0.7437425851821899, -0.6758860349655151, -0.1913531869649887, 0.44134247303009033, -0.4734867513179779, -0.16385486721992493, 0.49951228499412537, -0.29363197088241577, -0.5585547685623169, 0.021083341911435127, 0.3613860011100769, -0.08272828161716461, -0.531710684299469, -0.4013725519180298, 0.34315407276153564, 0.1787702739238739, 0.5586422681808472, 0.27161985635757446, -0.5770615935325623, -0.20263954997062683, 0.26140329241752625, -0.34959840774536133, -0.05094442516565323, 1.0567291975021362, -0.6472715735435486, 0.2855159342288971, 0.3900251090526581, 0.8240822553634644, -0.03261984884738922, 0.31661906838417053, 0.4579642117023468, -0.693953275680542, -0.2143978327512741, 0.1611817479133606, 0.34674230217933655, 0.31628021597862244, -0.510847270488739, 0.5066400766372681, -0.06532496213912964, -0.9084327220916748, -0.8997408747673035, 0.19573365151882172, -1.241662859916687, 0.09652293473482132, 1.0481293201446533, 0.06675894558429718, -0.3113662898540497, -0.21667292714118958, -0.34287843108177185, 0.0526377409696579, -0.4050286114215851, 0.8575069904327393, 0.6723613142967224, -0.5300597548484802, 0.10996360331773758, -0.3609982430934906, 0.44290903210639954, 0.5238897204399109, -0.9559749364852905, 0.20258942246437073, 0.46597713232040405, 0.14182895421981812, 0.33058810234069824, 0.6094031929969788, 0.15191592276096344, 0.2373182475566864, -0.30511027574539185, 0.20624659955501556, -0.21094785630702972, 0.09135724604129791, -0.3495139479637146, 0.35300618410110474, 0.37574049830436707, -0.12314825505018234 ]
http://arxiv.org/abs/2402.09008v1
http://arxiv.org/pdf/2402.09008v1
Multi-Query Focused Disaster Summarization via Instruction-Based Prompting
2024-02-14T08:22:58
2024-02-14T08:22:58
Philipp Seeberger, Korbinian Riedhammer
cs.CL
cs.CL
Automatic summarization of mass-emergency events plays a critical role in disaster management. The second edition of CrisisFACTS aims to advance disaster summarization based on multi-stream fact-finding with a focus on web sources such as Twitter, Reddit, Facebook, and Webnews. Here, participants are asked to develop systems that can extract key facts from several disaster-related events, which ultimately serve as a summary. This paper describes our method to tackle this challenging task. We follow previous work and propose to use a combination of retrieval, reranking, and an embarrassingly simple instruction-following summarization. The two-stage retrieval pipeline relies on BM25 and MonoT5, while the summarizer module is based on the open-source Large Language Model (LLM) LLaMA-13b. For summarization, we explore a Question Answering (QA)-motivated prompting approach and find the evidence useful for extracting query-relevant facts. The automatic metrics and human evaluation show strong results but also highlight the gap between open-source and proprietary systems.
[ -0.3158682584762573, -0.7524948120117188, 0.5948296785354614, 0.5192477703094482, -0.3706176280975342, 0.12615297734737396, 0.03954024240374565, -0.04341646283864975, 0.38380056619644165, 0.2928618788719177, -0.5997116565704346, -0.3910408616065979, -0.4587530195713043, 0.24430008232593536, -0.648959755897522, 1.0868033170700073, 0.11765927821397781, -0.16025832295417786, -0.01780344732105732, 0.04954926669597626, -0.37908926606178284, -0.33739733695983887, -0.5592471957206726, 0.06701144576072693, 0.7213279008865356, 1.0844289064407349, 0.38588932156562805, 0.29751625657081604, 0.4977869987487793, 0.21737901866436005, -0.047939732670784, 0.24982275068759918, -0.6527808904647827, 0.17006513476371765, 0.0428745374083519, -0.2435934990644455, -0.13859930634498596, -0.14926965534687042, 0.4216548800468445, 0.29737037420272827, -0.3983687162399292, 0.30772504210472107, 0.18031975626945496, 0.604738712310791, -0.8060614466667175, 0.2417556196451187, -0.37575235962867737, -0.053412776440382004, 0.15147225558757782, -0.5319488644599915, -0.43884047865867615, -0.6406955718994141, 0.13887976109981537, -0.3639346659183502, 0.5126046538352966, -0.05407407134771347, 0.385203093290329, 0.3590642511844635, -0.6733701229095459, -0.45155400037765503, -0.41222792863845825, 0.5532906651496887, -0.3011503517627716, 0.23409441113471985, 0.24031658470630646, 0.19829308986663818, 0.05574183911085129, -0.8242095708847046, -0.23351742327213287, 0.2495618611574173, 0.020845836028456688, 0.3014812171459198, 0.19893482327461243, -0.07471749931573868, 0.04576443135738373, 0.25722047686576843, -0.5211567878723145, -0.10459204763174057, -0.4484439790248871, -0.23180662095546722, 0.6522011160850525, 0.3740078806877136, 0.09677736461162567, -0.5667566657066345, -0.479404091835022, -0.1643286645412445, -0.8516488075256348, -0.0861644446849823, 0.007021711673587561, 0.33478352427482605, -0.17350345849990845, 0.5853458046913147, -0.36119189858436584, 0.31220710277557373, -0.1851455122232437, -0.25162309408187866, 0.02068614587187767, -0.498834490776062, -0.10634609311819077, 0.11658469587564468, 0.6593311429023743, 0.7994709014892578, 0.04039595276117325, -0.05520482733845711, 0.002815475920215249, -0.5819337368011475, 0.20219561457633972, -0.9089652895927429, -0.24480998516082764, 0.19778208434581757, -0.502805233001709, -0.27990368008613586, 0.018362578004598618, -1.1205235719680786, -0.5786532759666443, -0.0322275310754776, 0.580207884311676, -0.0013157649664208293, -0.06849928945302963, -0.13682934641838074, -0.4800716042518616, 0.03804030269384384, 0.603011965751648, -0.5873220562934875, -0.10086366534233093, 0.4211370050907135, 1.0127801895141602, 0.16137677431106567, -0.10370254516601562, -0.5487038493156433, 0.1229693815112114, -0.031241506338119507, 1.186591386795044, -0.2979070246219635, -0.5798784494400024, 0.0876118615269661, 0.0690927803516388, 0.16187028586864471, -0.5187748670578003, 0.6326521635055542, -0.5305582284927368, 0.21813182532787323, -0.6286605000495911, -0.305259644985199, -0.37937748432159424, 0.13228866457939148, -0.4571472406387329, 0.908332347869873, -0.3622046709060669, -0.8618203997612, 0.23253010213375092, -0.44431057572364807, -0.5737027525901794, -0.20113003253936768, 0.0028790945652872324, -0.3471421003341675, 0.1752302497625351, 0.3833295404911041, 0.360592246055603, -0.38528889417648315, 0.2037077248096466, -0.17575521767139435, -0.2930017411708832, -0.30220678448677063, -0.5521381497383118, 0.6683613657951355, -0.08409393578767776, -0.14106321334838867, 0.09447480738162994, -0.5047930479049683, -0.06912517547607422, 0.12416376918554306, -0.750660240650177, -0.2566886246204376, 0.2276443988084793, -0.06548116356134415, 0.06987562030553818, 0.244979128241539, -0.1251603662967682, 0.26057684421539307, 0.028069520369172096, -0.011674029752612114, 0.43067467212677, 0.5685949921607971, 0.1499289870262146, -0.3649007976055145, 0.36223629117012024, -0.09303499013185501, 0.22051645815372467, -0.6572259664535522, -0.5436093211174011, -0.7041218876838684, -0.12985043227672577, -0.16749374568462372, 0.9292677640914917, -0.6315341591835022, 0.029757043346762657, 0.05020252242684364, -0.444595068693161, -0.21441929042339325, -0.03509160131216049, 0.19254891574382782, 0.7203519940376282, 0.7670907378196716, 0.025626907125115395, -0.8145231604576111, -0.6751973032951355, -0.2344016432762146, -0.2278210073709488, -0.08274801820516586, 0.15303607285022736, 0.1987912505865097, 0.24482257664203644, 0.7403431534767151, -0.962211549282074, -0.039884984493255615, -0.4111892879009247, 0.4506814181804657, 0.048355583101511, 0.10201107710599899, 0.4167368710041046, -0.7176294326782227, -0.24114084243774414, -0.5286027193069458, -0.7282534241676331, -0.12493221461772919, -0.0509636290371418, 0.08567468076944351, -0.0755435973405838, 0.4118610918521881, -0.44772762060165405, 0.4003344476222992, -0.14197923243045807, -0.20944324135780334, 0.685243546962738, -0.11256230622529984, 0.41587716341018677, -1.2105499505996704, -0.10691573470830917, -0.11576387286186218, -0.004311458207666874, -0.513942539691925, 0.15324123203754425, 0.15618371963500977, -0.17562705278396606, -0.3886156976222992, 0.30815479159355164, -0.5808066129684448, -0.07164391875267029, -0.3349073529243469, 0.4344448447227478, -0.14224103093147278, 0.14925512671470642, 0.019902408123016357, 0.7356356382369995, 0.30872249603271484, -0.6911978721618652, 0.5581641793251038, 0.38015422224998474, -0.05140955373644829, 0.3032214641571045, -0.5821335911750793, -0.03177030012011528, -0.3960438072681427, 0.4466286599636078, -1.0584012269973755, -0.5545761585235596, 0.15239575505256653, -0.19344279170036316, -0.008870387449860573, -0.3529038429260254, -0.3504157066345215, -0.4859926104545593, -0.6818186640739441, -0.01897691935300827, 0.3081720173358917, -0.4209735691547394, 0.49869242310523987, 0.5564732551574707, -0.7186353802680969, -0.7687370181083679, -0.4564678370952606, 0.36208224296569824, -0.2436307817697525, -0.3785858154296875, -0.08657748997211456, -0.17143984138965607, -0.10049450397491455, -0.07444120198488235, -0.3195241689682007, -0.4137648344039917, 0.2751307487487793, 0.23198281228542328, 0.17478610575199127, -0.28106042742729187, 0.119746632874012, 0.17165546119213104, 0.03555356711149216, 0.23149698972702026, 0.05181771144270897, 0.31447651982307434, 0.03735587000846863, -0.23551802337169647, -0.5385189652442932, 0.7947851419448853, 0.49312373995780945, -0.15589940547943115, 0.6622718572616577, 0.23423197865486145, -0.39817744493484497, 0.1756063550710678, -0.6328370571136475, -0.5727410912513733, -0.35603436827659607, 0.2554309368133545, 0.08039572089910507, -0.6615445613861084, 0.624616801738739, -0.24924243986606598, 0.4325385093688965, 0.43514126539230347, 0.5302013158798218, -0.07037848979234695, 0.7800772786140442, 0.47600942850112915, -0.20431192219257355, 0.3825382888317108, -0.1369527131319046, 0.015889199450612068, -0.3704392611980438, -0.4982548654079437, -0.6488341689109802, -0.17022934556007385, 0.028776369988918304, -0.29897019267082214, 0.6596094369888306, 0.09458489716053009, 0.17358480393886566, 0.046403802931308746, -0.11421506851911545, 0.6544712781906128, 0.4215506613254547, 0.13820582628250122, 0.5009382963180542, 0.012177253141999245, 0.2097802460193634, 0.36559683084487915, -0.6867821216583252, -0.36199629306793213, 0.816368043422699, -0.08133076876401901, 0.6516343951225281, 0.41011086106300354, 1.0397748947143555, 0.23296695947647095, 0.47473764419555664, -0.6829113960266113, 0.547142744064331, 0.18437623977661133, -0.7015657424926758, -0.426419734954834, -0.5007430911064148, -0.6994439363479614, 0.2613051235675812, -0.1921217292547226, -0.45198148488998413, 0.13758143782615662, 0.16873975098133087, -0.729611337184906, -0.15306146442890167, -1.0008777379989624, 0.5208377838134766, 0.0749744176864624, 0.15121755003929138, -0.7473950982093811, -0.7132618427276611, 0.5792160034179688, 0.13714253902435303, 0.525161623954773, 0.05119091272354126, -0.19655995070934296, 0.4159635007381439, -0.4118172526359558, 0.8054759502410889, -0.24018172919750214, -0.07157168537378311, 0.7011852860450745, -0.0005249864188954234, 0.44394469261169434, 0.4337884485721588, 0.06743326783180237, -0.5063292980194092, -0.1680351346731186, -0.3431335985660553, -0.689969539642334, 0.5236506462097168, -0.3786044120788574, -0.7556818723678589, -0.12850335240364075, -0.3870736062526703, -0.0429866798222065, 0.2554769515991211, 0.12218966335058212, 0.9350284337997437, -0.20755843818187714, 0.12319686263799667, 0.6377890706062317, 0.00003548880704329349, 0.7968478202819824, 0.6778817772865295, -0.047254353761672974, -0.42526718974113464, 0.9195249676704407, 0.3535403609275818, -0.11975757032632828, 0.5476074814796448, 0.2709532082080841, -0.310710608959198, -0.35438403487205505, -0.5935103893280029, 0.15145117044448853, -0.7633305191993713, -0.5685752630233765, -0.7806403040885925, -0.036745585501194, -0.31447964906692505, -0.08514057844877243, -0.07087314128875732, -0.6844608187675476, -0.34038639068603516, -0.4261400103569031, 0.20924341678619385, 0.8039005994796753, -0.18995608389377594, -0.039655573666095734, -1.0789998769760132, 0.46220195293426514, 0.35690340399742126, 0.06267794221639633, 0.1470772624015808, -0.29300013184547424, -0.2633272707462311, -0.24706719815731049, -0.4453466832637787, -1.4384145736694336, -0.0291141290217638, 0.38954222202301025, 0.2841430604457855, 0.6691018342971802, 0.5279459953308105, 0.6204894185066223, -0.458628386259079, 0.7140657305717468, 0.09539972990751266, -0.5846114158630371, 0.7301990389823914, -0.17569521069526672, 0.041128963232040405, 0.5403788685798645, 0.5836331844329834, -0.4865468442440033, -0.46371373534202576, -0.47228267788887024, -0.9220383167266846, 0.6956735253334045, 0.008332124911248684, 0.062009651213884354, -0.24417108297348022, 0.20973923802375793, 0.0037585736718028784, 0.1363154947757721, -0.044086623936891556, -0.4690456688404083, -0.38926810026168823, -0.2320958822965622, 0.09251837432384491, -0.6555225849151611, -0.2679308354854584, 0.11450686305761337, 0.6462993621826172, -0.1511845588684082, -0.1669987142086029, 0.2306946963071823, -0.2712201178073883, 0.2506309747695923, 0.335334837436676, 0.8555519580841064, 0.5861567258834839, -0.13526809215545654, 0.2965831160545349, 0.4180949032306671, -0.6470909714698792, 0.23494918644428253, 0.2202579230070114, -0.25572600960731506, 0.08324020355939865, 0.4580698311328888, 0.16253791749477386, 0.7084928750991821, -0.6882983446121216, 0.4505373537540436, -0.2890605330467224, 0.1206546425819397, 0.010615825653076172, 0.10670463740825653, 0.12581250071525574, 0.385662317276001, 0.9090731739997864, -0.25140827894210815, 0.730955183506012, -0.4670600891113281, 0.34530583024024963, -0.001497045042924583, 0.24871273338794708, -0.35677218437194824, 0.36519792675971985, 0.5303604602813721, -0.03461531177163124, 0.4724482595920563, -0.18907971680164337, -0.2806350290775299, 0.605918288230896, 0.3316235840320587, 0.7001315355300903, -0.5058572888374329, 0.4308331608772278, 0.6280198097229004, 0.31008902192115784, -0.35475897789001465, 0.6930586099624634, -0.13901513814926147, -0.27098068594932556, -0.5126395225524902, -0.1268274337053299, -0.4890080690383911, -0.05192055553197861, -0.7266786098480225, 0.3295506536960602, -0.41330185532569885, -0.06904224306344986, -0.17474152147769928, -0.25354695320129395, -0.11253699660301208, 0.10093110799789429, -0.19566750526428223, 1.1137441396713257, -0.7031446695327759, -0.07984722405672073, 0.7640095949172974, -0.45039066672325134, -0.8450883030891418, 0.22577647864818573, 0.34629663825035095, -0.5102896690368652, 0.1607944369316101, 0.11104606837034225, 0.15393683314323425, 0.17311473190784454, -0.3903403580188751, -0.8626406192779541, 0.9007627964019775, 0.4673389792442322, -0.3353128433227539, -0.318398654460907, -0.3087616264820099, 0.11962895095348358, 0.07111818343400955, 0.5605222582817078, 0.3899695873260498, 0.5304543375968933, 0.038803838193416595, -0.6570780873298645, 0.06218191608786583, 0.05818535387516022, -0.7036295533180237, 0.23556990921497345, -1.0419429540634155, 0.3709980547428131, -0.7906087040901184, -0.42658355832099915, -0.24111387133598328, 0.8856319189071655, 0.06769106537103653, 0.6316004991531372, 0.35710692405700684, 0.4507650136947632, 0.8686486482620239, 0.028467293828725815, 0.8691831827163696, -0.27153024077415466, 0.560636579990387, 1.0602283477783203, 0.31917259097099304, 0.7728316783905029, 0.05951366946101189, -0.06438804417848587, 0.41882088780403137, 0.7168501019477844, 0.44501012563705444, 0.6351960897445679, -0.27124887704849243, -0.36379989981651306, -0.2556578814983368, -0.12450447678565979, -0.34120386838912964, 0.35505884885787964, 0.37926584482192993, -0.08022209256887436, -0.8852046728134155, -0.240118145942688, 0.1402358114719391, -0.5631533265113831, -0.24377577006816864, 0.9091904759407043, 0.22387968003749847, -0.6112199425697327, 0.32769036293029785, 0.004096037242561579, 0.05583250895142555, -0.17080609500408173, -0.09299563616514206, -0.5102480053901672, -0.32630017399787903, -0.27179208397865295, -0.839821994304657, 0.5319125652313232, 0.23482681810855865, -0.5288178324699402, 0.1112150251865387, 0.4788106679916382, -0.3940795063972473, -0.26566872000694275, -0.15231704711914062, 0.627667248249054, 0.2983652353286743, -0.20754604041576385, -0.3408694565296173, -0.044703200459480286, -0.15807828307151794, -0.33403265476226807, 0.15971536934375763, 0.5696150064468384, -0.030492257326841354, 0.7929902672767639, 0.33260250091552734, -0.32218137383461, 0.05210733786225319, 0.3288958966732025, 0.8760954737663269, -0.7133291959762573, -0.5425594449043274, -0.7933864593505859, 0.436185747385025, -0.09866701066493988, -0.2071809321641922, 0.636732280254364, 0.7189266085624695, 0.15834106504917145, -0.006607925985008478, 0.7603293657302856, -0.11484482884407043, 0.635533332824707, -0.3763563334941864, 0.4782908856868744, -0.5038627982139587, 0.01011674664914608, -0.10455627739429474, -0.7284713387489319, -0.1622401922941208, 0.18752121925354004, 0.19609855115413666, -0.23898018896579742, 0.5367438197135925, 0.5600069761276245, 0.069760762155056, 0.19446732103824615, -0.17984598875045776, 0.25366267561912537, 0.16991466283798218, 0.29214343428611755, 0.6538553833961487, -0.05571194738149643, 0.8811243772506714, 0.03749047964811325, -0.4601801931858063, -0.869254469871521, -0.827577531337738, -0.6925912499427795, -0.6226391792297363, -0.27159303426742554, -0.0825486108660698, 0.030916443094611168, 0.8186368942260742, 0.40291765332221985, -0.7759859561920166, 0.15101319551467896, 0.1800832599401474, 0.7478456497192383, -0.003930138889700174, -0.22740285098552704, 0.4042857587337494, -0.2809000015258789, -0.3869515657424927, 0.7880094051361084, 0.4643666744232178, 0.03473414108157158, -0.06363817304372787, 0.2451913207769394, 0.008944869972765446, 0.16912925243377686, 0.6713454127311707, 0.30408889055252075, -0.3893605172634125, -0.3675646483898163, -0.09115185588598251, 0.05810103565454483, -0.25250428915023804, 0.9172919988632202, -0.7258955240249634, 0.05546500161290169, 0.6305225491523743, 0.6479431986808777, 0.07370880991220474, 0.4374721944332123, 0.3119387626647949, -0.7933907508850098, -0.03311418741941452, -0.032797377556562424, 0.16996510326862335, 0.39056700468063354, -0.47653433680534363, 0.4249468445777893, 0.46643829345703125, -0.3974802494049072, -0.8843605518341064, 0.1663907915353775, -0.4123888909816742, -0.1415603756904602, 0.915208637714386, -0.08065368235111237, 0.21091721951961517, -0.35014379024505615, -0.2586873173713684, 0.3446069061756134, -0.687879741191864, 1.1420692205429077, 0.5935251712799072, -0.309303343296051, -0.47339004278182983, -0.27535727620124817, 0.3097286522388458, 0.023442134261131287, -0.9547755718231201, 0.1000925824046135, 0.7545114755630493, 0.3656015992164612, 0.12883351743221283, 0.5303032398223877, 0.23657017946243286, 0.4183028042316437, -0.15576376020908356, -0.09726527333259583, -0.06533127278089523, -0.7811832427978516, -0.07570622116327286, 0.6112284660339355, -0.365650475025177, 0.049784377217292786 ]
http://arxiv.org/abs/2402.08983v3
http://arxiv.org/pdf/2402.08983v3
SafeDecoding: Defending against Jailbreak Attacks via Safety-Aware Decoding
2024-02-14T06:54:31
2024-06-07T17:25:04
Zhangchen Xu, Fengqing Jiang, Luyao Niu, Jinyuan Jia, Bill Yuchen Lin, Radha Poovendran
cs.CR
cs.CR, cs.AI, cs.CL
As large language models (LLMs) become increasingly integrated into real-world applications such as code generation and chatbot assistance, extensive efforts have been made to align LLM behavior with human values, including safety. Jailbreak attacks, aiming to provoke unintended and unsafe behaviors from LLMs, remain a significant/leading LLM safety threat. In this paper, we aim to defend LLMs against jailbreak attacks by introducing SafeDecoding, a safety-aware decoding strategy for LLMs to generate helpful and harmless responses to user queries. Our insight in developing SafeDecoding is based on the observation that, even though probabilities of tokens representing harmful contents outweigh those representing harmless responses, safety disclaimers still appear among the top tokens after sorting tokens by probability in descending order. This allows us to mitigate jailbreak attacks by identifying safety disclaimers and amplifying their token probabilities, while simultaneously attenuating the probabilities of token sequences that are aligned with the objectives of jailbreak attacks. We perform extensive experiments on five LLMs using six state-of-the-art jailbreak attacks and four benchmark datasets. Our results show that SafeDecoding significantly reduces the attack success rate and harmfulness of jailbreak attacks without compromising the helpfulness of responses to benign user queries. SafeDecoding outperforms six defense methods.
[ -0.19176076352596283, -0.8192058801651001, 0.26713138818740845, 0.1012144684791565, -0.44329988956451416, 0.40365731716156006, -0.03722335770726204, -0.5229907631874084, 0.1440483033657074, 0.8249728679656982, -0.06967449933290482, -0.8810099959373474, -0.6161834001541138, 0.012968926690518856, -0.45502325892448425, 0.9487309455871582, 0.20529285073280334, -0.22386711835861206, 0.039913326501846313, 0.049751367419958115, -0.6938241720199585, -0.8579007983207703, -0.7227095365524292, 0.36652299761772156, 0.3547229468822479, 0.4115685224533081, 0.6145667433738708, 0.5878929495811462, 0.460165798664093, 0.257497638463974, -0.19337843358516693, 0.21518920361995697, -0.5196623802185059, 0.5767225623130798, 0.02010377123951912, -0.48178181052207947, -0.5010390877723694, -0.14076557755470276, -0.1601792871952057, 0.056688420474529266, -0.27951738238334656, -0.2996334135532379, 0.019460799172520638, 0.6944525241851807, -1.0043376684188843, -0.040682531893253326, -0.7683671116828918, -0.026453068479895592, -0.1891561597585678, -0.24898405373096466, -0.7880515456199646, -0.667119562625885, -0.4338301718235016, -0.10138749331235886, -0.01571398228406906, 0.16379767656326294, 0.1748921275138855, 0.03232487663626671, -0.4258175194263458, -0.3294934332370758, -0.22845622897148132, 0.5118874311447144, -0.6901016235351562, 0.07015436887741089, 0.7456766963005066, 0.15499965846538544, -0.5673239827156067, -0.25326231122016907, -0.08545219153165817, -0.22626540064811707, 0.18946340680122375, -0.25641193985939026, -0.29767584800720215, 0.38575831055641174, 0.16203773021697998, -0.08988989144563675, -0.27142849564552307, 0.19132116436958313, -0.1690967082977295, -0.5055019855499268, 0.7263388633728027, 0.24248924851417542, 0.43393850326538086, -0.313842236995697, -0.49114522337913513, -0.005421096459031105, -0.8762000203132629, 0.05550886690616608, 0.48516198992729187, 0.2129184901714325, -0.10447423160076141, 0.4904356598854065, -0.08628316223621368, 0.46945667266845703, -0.04195375740528107, -0.23972012102603912, -0.04798267036676407, -0.3483552932739258, -0.005709036719053984, 0.5044664144515991, 0.9168994426727295, 0.8496394157409668, 0.5544757843017578, -0.5000309944152832, -0.11729717999696732, -0.054196104407310486, 0.4628092646598816, -0.9194056391716003, -0.2434568554162979, 0.23682095110416412, -0.4163081645965576, -1.034325361251831, 0.21193906664848328, -0.6282479763031006, -0.8349618315696716, 0.6195399165153503, 0.0996994897723198, -0.45682260394096375, -0.18440645933151245, 0.30804944038391113, 0.06292087584733963, 0.038238525390625, -0.05640264227986336, -1.0772594213485718, 0.4367147386074066, 0.804821252822876, 0.6737300157546997, -0.04077962785959244, 0.04455875977873802, -0.7120077610015869, 0.41166335344314575, -0.4383717477321625, 0.5175179243087769, 0.030130483210086823, -0.753122091293335, -0.16223308444023132, -0.04940886050462723, -0.004367327783256769, -0.5481635332107544, 0.8188618421554565, -0.758497953414917, -0.7441239953041077, -0.08881238847970963, -0.494121253490448, -0.026291731745004654, 0.22428904473781586, -0.7916707396507263, 0.36987391114234924, -0.40212446451187134, -1.1556600332260132, 0.16791030764579773, -0.29165714979171753, -0.7103457450866699, -0.0663728266954422, 0.21438275277614594, -0.33948972821235657, 0.15962472558021545, 0.32679301500320435, 0.5276278257369995, 0.0666898563504219, 0.18814101815223694, -0.4551057517528534, -0.2922744154930115, 0.5056466460227966, -0.45758628845214844, 0.7768553495407104, 0.5785120129585266, -0.34918665885925293, 0.1224181056022644, -0.5768461227416992, 0.12926755845546722, 0.2926943600177765, -0.2527288496494293, -0.8268532156944275, 0.27618885040283203, -0.1670190542936325, -0.07216056436300278, 0.12888213992118835, -0.8911136984825134, -0.01291482150554657, -0.45353057980537415, 0.6533928513526917, 0.8179975152015686, 0.16995351016521454, 0.3247720003128052, 0.023693960160017014, 0.39374881982803345, 0.05789051577448845, 0.3803821802139282, -0.20168155431747437, -0.29929113388061523, -0.10240880399942398, -0.26259157061576843, 0.2271130084991455, 0.8852498531341553, -0.29155439138412476, 0.540564775466919, 0.09775783866643906, -0.2740640640258789, -0.3385361135005951, 0.33196404576301575, 0.5363166332244873, 0.567122220993042, 0.1866796314716339, -0.3160501718521118, -0.7063690423965454, -0.6945782899856567, -0.4270038306713104, -0.2809400260448456, 0.32340842485427856, 0.0029171472415328026, -0.05035519599914551, -0.330104261636734, 0.7276649475097656, -0.49397167563438416, 0.07942800223827362, -0.523835301399231, -0.29168811440467834, -0.06531976163387299, 0.6536893844604492, 0.707216739654541, -0.4789406955242157, -0.16512414813041687, -0.36393827199935913, -0.7228178381919861, -0.06269361823797226, -0.04704376682639122, -0.17110386490821838, 0.29734528064727783, 0.6785516142845154, -0.7177573442459106, 0.474835067987442, 0.30256494879722595, -0.6360886096954346, 0.38914966583251953, -0.23807016015052795, 0.10120049864053726, -1.1382710933685303, -0.3280411660671234, -0.2379164844751358, -0.36390382051467896, -0.5965138077735901, 0.27367186546325684, 0.23688629269599915, 0.05565850809216499, -0.5629242062568665, 0.23122167587280273, -0.13844908773899078, 0.25067174434661865, -0.23623058199882507, -0.03247324004769325, -0.08153948932886124, -0.1858753263950348, -0.2698381841182709, 0.8014715909957886, 0.47157710790634155, -0.14746849238872528, 0.3170635402202606, 0.21423852443695068, -0.5835611820220947, 0.05164361745119095, -0.6892725825309753, 0.35904109477996826, -0.06482477486133575, 0.08738680183887482, -0.8404511213302612, -0.07701868563890457, 0.32825151085853577, -0.2624780237674713, 0.15026994049549103, -0.483928382396698, -0.6936920881271362, -0.39888104796409607, -0.6544271111488342, 0.23454730212688446, 0.43957364559173584, -0.4486398994922638, 0.04924016818404198, 0.6084811687469482, -0.24111197888851166, -0.7803666591644287, -0.6120558977127075, 0.3788505792617798, -0.49654874205589294, -0.6298571825027466, -0.010126269422471523, -0.23735474050045013, -0.407996267080307, -0.3529965281486511, -0.3912425935268402, -0.04908530041575432, 0.8256027698516846, 0.5163040161132812, 0.42396897077560425, 0.40529489517211914, -0.43476545810699463, 0.09180714190006256, -0.45443838834762573, 0.5007466077804565, 0.019507845863699913, 0.469268262386322, -0.15910567343235016, -0.2553761899471283, -0.33271196484565735, 0.5308766961097717, 0.6191057562828064, -0.22818388044834137, 0.796836793422699, 0.13631312549114227, -0.14690224826335907, -0.019335703924298286, -0.4243893623352051, -0.24989385902881622, -0.560354471206665, 0.18519102036952972, -0.24808134138584137, -0.9871687293052673, 0.4749601185321808, 0.07452694326639175, 0.044983599334955215, -0.20228330790996552, 0.25657913088798523, -0.3215404450893402, 1.2144989967346191, 0.5934172868728638, -0.3920725882053375, 0.30937573313713074, -0.01145289558917284, 0.46243247389793396, -0.4212757349014282, -0.3851093351840973, -0.5399488806724548, -0.030546760186553, -0.704720675945282, -0.07792956382036209, -0.0436679907143116, 0.5047959685325623, -0.21324515342712402, 0.5587277412414551, -0.4393698275089264, 0.8751596212387085, 0.316212922334671, 0.23114676773548126, 0.3502688705921173, -0.1087266355752945, -0.3020291328430176, 0.03674427047371864, -0.49351248145103455, -0.47623270750045776, 1.195594310760498, 0.3090353012084961, 1.4400631189346313, 0.24863217771053314, 1.1958131790161133, 0.4518798887729645, 0.014160370454192162, -0.7069531083106995, 0.7271569967269897, -0.12609687447547913, -0.5985351204872131, 0.11533282697200775, -0.4545131027698517, -0.879785418510437, 0.005739586427807808, -0.16205862164497375, -0.8464478850364685, -0.03726305812597275, 0.18405839800834656, -0.40845704078674316, 0.5472171306610107, -0.7440747022628784, 0.7779380679130554, -0.6093679070472717, -0.28661173582077026, -0.21145492792129517, -0.8305972218513489, 0.506149172782898, -0.050674427300691605, 0.5268306136131287, -0.16680140793323517, 0.23591259121894836, 0.6614680886268616, -0.45656895637512207, 0.8777105212211609, -0.39204293489456177, -0.03962831199169159, 0.4001591205596924, 0.5790442228317261, 0.6538100242614746, 0.3473553955554962, -0.02530074119567871, -0.17442500591278076, 0.15274322032928467, -0.16958725452423096, -0.18074168264865875, 0.8798809051513672, -0.5414637327194214, -0.8668851256370544, -0.24672386050224304, -0.6086173057556152, -0.022253282368183136, 0.46113258600234985, 0.11104004830121994, 0.3156347870826721, -0.03916158527135849, 0.18731866776943207, 1.0059477090835571, -0.27904757857322693, 0.6309855580329895, 0.17288482189178467, -0.10222679376602173, -0.5437113046646118, 0.5810563564300537, -0.2178872525691986, 0.10226745903491974, 0.11456689983606339, 0.06538721174001694, -0.47121357917785645, -0.968546986579895, -0.18682803213596344, -0.06165821850299835, -0.8053362965583801, -0.6065785884857178, -0.6302789449691772, -0.1424238383769989, -0.3900735676288605, -0.30664166808128357, -0.2626005709171295, -0.41116300225257874, 0.05744944140315056, -0.7427561283111572, 0.7631584405899048, 0.4839816391468048, -0.24917441606521606, -0.07934972643852234, -1.1412806510925293, 0.3633551597595215, 0.22573859989643097, 0.39188846945762634, -0.16213904321193695, 0.09744717180728912, -0.23934195935726166, -0.07686691731214523, -0.04057827219367027, -1.0413670539855957, 0.39135852456092834, -0.11629033833742142, 0.5775966644287109, 0.43760600686073303, 0.8361893892288208, 0.34709981083869934, -0.4510114789009094, 0.4311518371105194, 0.23423893749713898, -0.8198928833007812, 0.7704436779022217, -0.2896992564201355, -0.1902015656232834, 0.9740216135978699, -0.06341876834630966, -0.3146989345550537, -0.5448307991027832, -0.3073364794254303, -1.1298763751983643, 0.40233761072158813, 0.0804157480597496, 0.4426766037940979, -0.5873869061470032, 0.31685519218444824, -0.002399842254817486, 0.18436302244663239, -0.6267756223678589, -0.16814590990543365, -0.37233150005340576, -0.23108996450901031, 0.12464825063943863, -0.5178588032722473, -0.3899245262145996, -0.0445551760494709, 0.15995515882968903, 0.1857033222913742, 0.18396860361099243, -0.17385360598564148, -0.2685416638851166, 0.2791815996170044, 0.6914042234420776, 0.3724464774131775, -0.14944767951965332, -0.45845189690589905, 0.3974784016609192, -0.10964015126228333, -0.8033263087272644, 0.3809519112110138, 0.11455433070659637, -0.2099902182817459, -0.32883456349372864, 0.10108496993780136, 0.5996198058128357, 0.13245759904384613, -0.7839144468307495, 0.5456605553627014, -0.3904924988746643, 0.031298503279685974, -0.0433291532099247, 0.5871861577033997, 0.04905681312084198, 0.03259158506989479, 0.20279644429683685, 0.19454510509967804, 0.09098859131336212, -0.24408774077892303, 0.2238776683807373, 0.49687546491622925, -0.1769620031118393, -0.03920670226216316, 0.8616752624511719, 0.47904953360557556, -0.25435590744018555, 0.5969425439834595, 0.11525731533765793, -0.43053939938545227, 0.8232229351997375, 0.9029977321624756, 1.0627020597457886, -0.12964485585689545, -0.08694972097873688, 0.19120338559150696, 0.6104257106781006, 0.006886892486363649, 0.3272636830806732, -0.22035019099712372, -0.7044543027877808, -0.11689203232526779, -0.38757315278053284, -0.2508845925331116, -0.21307094395160675, -0.7849007844924927, -0.03325334191322327, -0.7724837064743042, -0.30822595953941345, -0.48459136486053467, -0.3252897560596466, -0.1571924388408661, -0.018954187631607056, 0.15430597960948944, 1.391640543937683, -0.4867312014102936, 0.9409487843513489, 0.41116535663604736, 0.07016601413488388, -0.7325037717819214, -0.11791286617517471, 0.10675352066755295, -0.34499698877334595, 0.3951258957386017, 0.49850666522979736, -0.4315239191055298, 0.04492482170462608, -0.44210928678512573, -0.5679483413696289, 0.9049043655395508, 0.37830662727355957, -0.712053120136261, 0.09832999110221863, 0.06295379251241684, 0.014948052354156971, -0.1785549372434616, -0.20554594695568085, 0.6287544369697571, 0.17960673570632935, -0.289015531539917, -0.5639998912811279, 0.3421386182308197, -0.2678636312484741, 0.0317036435008049, 0.39061638712882996, -0.22357892990112305, 0.3242373466491699, -0.7895300984382629, -0.14531151950359344, 0.3579237759113312, 0.2330629676580429, 0.5790762901306152, 0.32081350684165955, 0.47792133688926697, 0.6081700921058655, 0.4631597697734833, -0.19260001182556152, 1.0691248178482056, -0.5304902791976929, 0.12923568487167358, 0.7567040324211121, -0.14652039110660553, 0.7699344158172607, 0.42039385437965393, 0.28403639793395996, 0.26816874742507935, 0.4791634976863861, 0.2460625171661377, 1.251951813697815, 0.2624368965625763, -0.587153971195221, -0.22849129140377045, 0.2834821343421936, -0.33016327023506165, 0.3178633451461792, 0.4916605055332184, -0.22476550936698914, -0.25876516103744507, 0.3770347237586975, 0.5276327729225159, 0.0823712944984436, -0.3568996787071228, 0.8152992725372314, 0.07647353410720825, -0.23274308443069458, 0.7201500535011292, 0.2910824120044708, 0.8628334999084473, -0.5885086059570312, 0.49217870831489563, -0.4195072650909424, 0.19961513578891754, -0.2647883892059326, -0.9359641075134277, 0.36480313539505005, 0.3638025224208832, -0.07718788087368011, -0.09182951599359512, 0.9335756301879883, 0.06807664781808853, 0.08213324099779129, 0.51195228099823, -0.04891452193260193, -0.01644672267138958, 0.26195457577705383, -0.534386157989502, 0.4185681641101837, 0.014375478960573673, -0.18716518580913544, 0.5327462553977966, -0.09255889803171158, -0.09215109050273895, 0.8014369010925293, 0.6561208963394165, -0.16434085369110107, 0.1158791109919548, 0.04621736705303192, 0.8240243196487427, -0.7169181704521179, -0.6444156169891357, -1.027668833732605, 0.49824070930480957, 0.025784021243453026, 0.3973850607872009, 0.7638481259346008, 0.3118674159049988, 0.5719096660614014, -0.0373166985809803, 0.9331928491592407, -0.11688481271266937, 0.15395380556583405, -0.591971755027771, 1.1893802881240845, 0.21421776711940765, 0.6388336420059204, -0.39083221554756165, -0.4983999729156494, -0.5366939306259155, 0.6111971735954285, -0.2509767711162567, -0.2845085859298706, 0.2112710326910019, 0.7695690393447876, 0.32048091292381287, 0.06286250054836273, 0.07047422230243683, 0.11086934059858322, 0.5835888981819153, 0.5260200500488281, 0.7923304438591003, -0.2236911952495575, 0.7003628611564636, -0.32662704586982727, -0.15827010571956635, -0.12999796867370605, -1.0981320142745972, -0.9344950914382935, 0.11200755089521408, 0.023831821978092194, -0.5834262371063232, 0.41566726565361023, 0.7464602589607239, 0.5767354369163513, -0.856976330280304, -0.12740878760814667, -0.2598309814929962, 0.3065871596336365, -0.06961023807525635, -0.1778702586889267, 0.02274879813194275, -0.1414531171321869, -0.29622289538383484, 0.7436623573303223, 0.1562979817390442, 0.16932180523872375, 0.23312023282051086, -0.13746114075183868, 0.2333890199661255, 0.10311299562454224, 0.5727880597114563, 0.4965870976448059, -0.48411449790000916, -0.3260372579097748, -0.0424978993833065, -0.42430055141448975, -0.1381254345178604, 0.6352819204330444, -0.7475693225860596, 0.43787044286727905, 0.33150240778923035, 0.7528066039085388, 0.13506178557872772, 0.05539340525865555, 0.3606354594230652, -0.7010623216629028, 0.41688549518585205, 0.12515787780284882, 0.3256436288356781, 0.3299087584018707, -0.520715057849884, 0.3073076009750366, 0.009228648617863655, -0.4689252972602844, -0.9587807059288025, 0.3672228753566742, -0.9424927830696106, -0.30201637744903564, 0.8060898184776306, -0.3175509572029114, -0.13110609352588654, -0.3109242916107178, -0.35391151905059814, -0.05762438848614693, -0.5339001417160034, 0.8547646403312683, 0.2779485881328583, 0.057667672634124756, -0.24515537917613983, -0.4024159908294678, 0.4669804871082306, 0.03680919110774994, -0.7820559144020081, 0.49052703380584717, 0.36842918395996094, 0.6642260551452637, -0.12581604719161987, 0.48534953594207764, -0.4595680832862854, 0.4388343095779419, -0.21329963207244873, -0.18113064765930176, -0.45898059010505676, -0.44499608874320984, -0.11354482173919678, 0.37545081973075867, 0.469611257314682, -0.4137636721134186 ]
http://arxiv.org/abs/2402.08971v2
http://arxiv.org/pdf/2402.08971v2
Structured Language Generation Model for Robust Structure Prediction
2024-02-14T06:33:22
2024-02-19T00:06:41
Minho Lee, Junghyun Min, Woochul Lee, Yeonsoo Lee
cs.CL
cs.CL
Previous work in structured prediction (e.g. NER, information extraction) using single model make use of explicit dataset information, which helps boost in-distribution performance but is orthogonal to robust generalization in real-world situations. To overcome this limitation, we propose the Structured Language Generation Model (SLGM), a framework that reduces sequence-to-sequence problems to classification problems via methodologies in loss calibration and decoding method. Our experimental results show that SLGM is able to maintain performance without explicit dataset information, follow and potentially replace dataset-specific fine-tuning.
[ -0.05513777583837509, -0.8770506381988525, 0.13204282522201538, -0.008968669921159744, -0.3138396143913269, -0.05258120596408844, -0.11767027527093887, -0.3234897255897522, -0.3415461480617523, 0.5921316742897034, -0.5264274477958679, -0.45009127259254456, -0.43368616700172424, -0.10849334299564362, -0.5067269206047058, 1.0750517845153809, 0.25512951612472534, 0.125471830368042, -0.07917514443397522, 0.18765290081501007, -0.47164320945739746, -0.45705264806747437, -0.38189902901649475, -0.4198022484779358, -0.010014316067099571, 0.14776955544948578, 0.8255628347396851, 1.2074495553970337, 0.2910248637199402, 0.2877556383609772, -0.26106229424476624, 0.12009540945291519, -0.42545488476753235, 0.2282993048429489, 0.13769543170928955, -0.4157619774341583, -0.5776585340499878, -0.34770816564559937, 1.0099581480026245, 0.9694168567657471, -0.4192844331264496, 0.11172028630971909, 0.3425289988517761, 0.45532405376434326, -0.38775163888931274, 0.3311536908149719, -0.809641420841217, 0.2518601417541504, -0.1580238789319992, -0.40455108880996704, -0.6232579350471497, -0.3320833146572113, -0.024001795798540115, -0.2936388850212097, 0.6319671869277954, 0.12169364094734192, 0.6359429955482483, 0.3846064805984497, -0.11198519170284271, -0.12432137876749039, -0.6979514360427856, 0.5909064412117004, -0.9802299737930298, 0.22874721884727478, 0.47523126006126404, 0.19913768768310547, -0.4368281066417694, -0.5449065566062927, -0.04296960309147835, -0.17847226560115814, -0.06570205837488174, -0.13496558368206024, 0.31108951568603516, 0.2628617584705353, 0.33657127618789673, 0.3117685914039612, -0.6814547777175903, -0.03879811614751816, -0.4058854281902313, -0.2173091471195221, 0.7262635827064514, 0.19985811412334442, 0.10445868223905563, -0.24771685898303986, -0.2962769567966461, 0.10539751499891281, -0.8677178621292114, -0.005102694034576416, 0.4994336664676666, 0.802207350730896, 0.03741784766316414, 0.47206059098243713, 0.022867772728204727, 0.842693030834198, 0.09964108467102051, -0.42908158898353577, 0.26598963141441345, -0.3718043565750122, -0.4050430655479431, 0.26669248938560486, 0.4091850519180298, -0.14502093195915222, 0.30738043785095215, -0.10961350053548813, -0.3742695450782776, 0.09331423789262772, 0.08772193640470505, -0.9431343078613281, -0.375323623418808, -0.042180031538009644, -0.5712366104125977, -0.6155989766120911, 0.10242103785276413, -0.6440424919128418, -0.085303395986557, -0.030592408031225204, -0.002804136835038662, -0.23257070779800415, -0.17569398880004883, 0.0516207292675972, -0.05884901434183121, -0.03293103352189064, -0.006067999638617039, -0.773400068283081, 0.3238232135772705, 0.43204447627067566, 0.7582089304924011, -0.12187627702951431, -0.0003449020441621542, -0.6491261720657349, 0.46308907866477966, -0.2682928740978241, 0.6797941327095032, -0.4298878014087677, -0.3676883280277252, 0.03980988636612892, -0.23069164156913757, -0.016973858699202538, -0.4362325072288513, 0.4918834865093231, -0.06640007346868515, 0.1751583367586136, 0.3318396508693695, -0.6128342151641846, 0.10556677728891373, 0.22857321798801422, -0.6845486164093018, 1.0207655429840088, 0.2102234810590744, -0.9326899647712708, 0.5464456081390381, -0.32729023694992065, -0.6245177984237671, 0.5578787326812744, -0.29345834255218506, -0.6327758431434631, 0.21580195426940918, 0.11337000876665115, 0.3712940514087677, -0.07414893805980682, 0.7916789054870605, -0.4781739413738251, -0.3878304958343506, -0.14007772505283356, -0.2994030714035034, 0.22047020494937897, 0.3840252459049225, -0.18645282089710236, 0.045545000582933426, -1.2798179388046265, 0.4602336287498474, 0.11414114385843277, -0.6986244320869446, -0.3199344575405121, 0.6391801238059998, 0.086266428232193, 0.21669720113277435, 0.08542947471141815, -0.2561655044555664, 0.22890280187129974, -0.8035008311271667, 0.5039925575256348, 0.752798855304718, -0.06257308274507523, 0.6421669721603394, -0.13429391384124756, 0.6473051905632019, 0.017830075696110725, -0.02898930385708809, -0.34057772159576416, -0.39954376220703125, -0.3695548176765442, -0.0601692721247673, 0.30200672149658203, 0.5419989228248596, -0.4977269172668457, 0.4078243374824524, -0.15045487880706787, -0.10948077589273453, -0.23339132964611053, 0.22255608439445496, 0.5633023381233215, 0.9028478860855103, 0.052403565496206284, -0.039256948977708817, -0.8747037053108215, -0.730503499507904, -0.058567773550748825, -0.186320498585701, -0.030698753893375397, 0.04869266226887703, 0.0317571684718132, -0.28848573565483093, 0.8531584739685059, -0.6043992042541504, 0.052802346646785736, -0.524113655090332, 0.037744391709566116, 0.32250577211380005, 0.5448485612869263, 0.178123340010643, -0.9647760987281799, -0.15249599516391754, -0.07391252368688583, -0.6775631904602051, -0.19413380324840546, 0.17407037317752838, 0.15718533098697662, 0.09143076837062836, 0.41827183961868286, -0.041876476258039474, 0.5588794946670532, 0.6392666697502136, -0.2127232402563095, 0.5421830415725708, -0.15134093165397644, -0.5536306500434875, -1.3135910034179688, 0.181715726852417, 0.02646096795797348, -0.3100159764289856, -0.872418224811554, -0.045522477477788925, -0.001059944392181933, -0.34758448600769043, -0.22533142566680908, 0.4182489812374115, -0.3884124755859375, -0.22417418658733368, -0.19959479570388794, -0.17227241396903992, 0.032831575721502304, 0.4354436993598938, 0.10169009119272232, 0.7599804997444153, 0.5837405920028687, -0.7913614511489868, -0.1887488216161728, 0.4186651110649109, -0.4423713982105255, 0.16402661800384521, -0.8218790292739868, -0.026797307655215263, -0.415881872177124, 0.10518503189086914, -0.71565181016922, -0.3607749044895172, 0.053920891135931015, -0.31919944286346436, 0.5939465761184692, -0.2749522030353546, -0.316791296005249, -0.26661190390586853, -0.15993519127368927, 0.28833454847335815, 0.22502583265304565, -0.15217629075050354, 0.12500476837158203, 0.3316040337085724, -0.3255493938922882, -0.5867589712142944, -0.7788349390029907, -0.21404820680618286, -0.26402726769447327, -0.7432214021682739, 0.26700469851493835, -0.30047303438186646, -0.00926436297595501, -0.20361250638961792, -0.05763183534145355, -0.19068223237991333, 0.23973575234413147, 0.43505749106407166, 0.2706056833267212, -0.2633894383907318, 0.4347114562988281, -0.005571374669671059, -0.00370652973651886, -0.13870778679847717, -0.22612586617469788, 0.5175421237945557, -0.2304118275642395, -0.06978683918714523, 0.1034335047006607, 0.4280499219894409, 0.086078941822052, -0.15139096975326538, 0.6414747834205627, 0.26775363087654114, -0.509735107421875, -0.6833897829055786, -0.07747865468263626, 0.004826453980058432, -0.515618622303009, 0.5665099024772644, -0.41808250546455383, -0.7067875266075134, 0.5129381418228149, -0.1676272451877594, -0.16211937367916107, 0.22549153864383698, 0.3085690140724182, 0.015427214093506336, 1.512588381767273, 0.893065333366394, 0.046701110899448395, 0.6007019281387329, -0.2016543596982956, 0.2254471331834793, -0.5145764946937561, -0.3667231500148773, -0.6082960963249207, -0.11955972015857697, -0.5018562078475952, 0.108863964676857, 0.26770904660224915, 0.48730117082595825, -0.32820701599121094, 0.44006797671318054, -0.6366085410118103, 0.17048579454421997, 0.25238651037216187, -0.07463696599006653, 0.28835973143577576, 0.1583467274904251, -0.20695523917675018, 0.06126837804913521, -0.9691422581672668, -0.6177781820297241, 0.844612717628479, 0.3740317225456238, 1.046973466873169, -0.22715342044830322, 0.5720966458320618, 0.27053093910217285, 0.17858944833278656, -0.6395530700683594, 0.45713672041893005, -0.0033185710199177265, -0.2219342738389969, -0.25702014565467834, -0.8185913562774658, -0.8337565064430237, -0.10493696480989456, -0.1664976179599762, -0.5199398994445801, 0.2344842553138733, 0.3317593038082123, -0.038928523659706116, 0.11844811588525772, -0.4435317814350128, 0.5698431730270386, -0.05696650221943855, -0.012324029579758644, 0.4399324953556061, -0.6767159700393677, 0.41235846281051636, -0.23567840456962585, 0.421235054731369, -0.05207257717847824, 0.22634068131446838, 0.4211632013320923, -0.5033823251724243, 0.620685338973999, -0.25041669607162476, -0.03300906717777252, 0.17229770123958588, 0.09935613721609116, 0.6939453482627869, 0.11460180580615997, -0.5060034394264221, -0.0823177769780159, -0.12563219666481018, -0.2437862604856491, -0.5114965438842773, 0.42725107073783875, -0.4574293792247772, -0.2344166785478592, -0.06336580216884613, -0.8135396838188171, -0.2563101649284363, 0.22427193820476532, 0.7386022210121155, 0.7983885407447815, -0.20167627930641174, 0.19842049479484558, 0.602636992931366, 0.05277187377214432, 0.5252582430839539, 0.0006968927336856723, -0.0026120981201529503, -0.5538854002952576, 0.5650043487548828, 0.08244283497333527, 0.3225668668746948, 0.3627692759037018, 0.34810250997543335, -0.33762434124946594, -0.8810620903968811, -0.436096727848053, -0.10253327339887619, -0.5591292977333069, -0.5952931046485901, -0.27796241641044617, -0.4872734546661377, -0.5245745182037354, -0.09894302487373352, -0.12000767141580582, -0.41615355014801025, -0.23656553030014038, -0.375851035118103, -0.149175226688385, 0.8766933083534241, 0.23109641671180725, 0.45920345187187195, -0.7926042079925537, -0.014481625519692898, -0.16020573675632477, 0.5967510938644409, -0.2785702347755432, -0.4663229286670685, -0.3645344078540802, 0.13350847363471985, -0.2691882848739624, -0.8518907427787781, 0.728948175907135, 0.8445571660995483, 0.6138603687286377, 0.5820100903511047, -0.026838131248950958, 0.8520100116729736, -0.5378779172897339, 0.41406694054603577, 0.08756551891565323, -0.7891038656234741, 0.9239017963409424, -0.47835516929626465, 0.3463296890258789, 0.38433441519737244, -0.14738236367702484, -0.03053027205169201, -0.34279000759124756, -0.4358663260936737, -0.7512869238853455, 0.7282427549362183, 0.12130230665206909, -0.003751159179955721, -0.02486412413418293, 0.4772011637687683, 0.12497274577617645, 0.49414587020874023, -0.9004780650138855, -0.13062894344329834, -0.323286771774292, -0.2345532476902008, -0.12854218482971191, -0.23985175788402557, 0.1473129242658615, -0.05658019706606865, 0.4855741262435913, -0.44505932927131653, 0.11176106333732605, 0.12020464241504669, -0.0804842859506607, -0.5212752223014832, 0.3332814574241638, 0.5490038394927979, 0.7063244581222534, -0.3709600269794464, 0.048942141234874725, -0.020221784710884094, -0.4146883487701416, 0.1097947210073471, 0.060698408633470535, -0.6258175373077393, -0.0045560626313090324, 0.39486977458000183, 0.9197515249252319, 0.3493344485759735, -0.6647723317146301, 0.3593043088912964, 0.2101573944091797, -0.1878407597541809, -0.14281557500362396, 0.09024420380592346, -0.35057881474494934, 0.05592350289225578, 0.48584023118019104, 0.18935909867286682, 0.28433898091316223, -0.5191234946250916, 0.4444458782672882, 0.351516991853714, -0.241720512509346, -0.4043528735637665, 0.706246554851532, -0.11106569319963455, -0.35879096388816833, 0.5680705308914185, -0.12952002882957458, -0.49446436762809753, 0.5443102717399597, 1.0643129348754883, 0.7246847152709961, -0.38328230381011963, 0.2585761845111847, 0.41882577538490295, 0.1445973962545395, -0.477012038230896, 0.30450114607810974, -0.07469760626554489, -0.6279798746109009, -0.5085919499397278, -0.9847468137741089, -0.07420483231544495, 0.0597088560461998, -0.6588777303695679, 0.28012290596961975, -0.6029061079025269, -0.08405846357345581, -0.33050018548965454, 0.01368500292301178, -0.4127785563468933, 0.2296598106622696, 0.2607184052467346, 0.962117612361908, -0.7392886281013489, 1.105331540107727, 0.5226983428001404, -0.08287470042705536, -0.8962671756744385, -0.2736819088459015, -0.29370245337486267, -0.4780917465686798, 0.47414860129356384, 0.307678759098053, 0.04526875168085098, -0.14736908674240112, -0.7996528148651123, -0.9853478074073792, 1.0695710182189941, 0.6301449537277222, -0.4410557448863983, -0.5195723176002502, 0.1527431756258011, 0.5302091240882874, -0.618854284286499, -0.34573569893836975, 0.1975419819355011, 0.3490411937236786, 0.3976150453090668, -0.7147842049598694, -0.08747109770774841, -0.48384472727775574, 0.485725998878479, 0.5141585469245911, -0.05240686237812042, 0.92356938123703, -0.22257192432880402, -0.48952728509902954, 0.24367760121822357, 0.5576593279838562, 0.3114872872829437, 0.3658292293548584, 0.24564725160598755, 0.41631680727005005, 0.7596299052238464, -0.04615965113043785, 0.920028030872345, -0.2740086615085602, 0.4205806255340576, 1.2084784507751465, -0.19636699557304382, 0.8525749444961548, 0.10126308351755142, 0.12202651798725128, 0.438586562871933, 0.4781728982925415, -0.07779712229967117, 0.7924901247024536, 0.2438838630914688, -0.020402515307068825, -0.19623488187789917, 0.10180240124464035, -0.5186951756477356, 0.5379352569580078, 0.5040276646614075, -0.508055567741394, -0.23599529266357422, -0.16528987884521484, -0.23494796454906464, 0.17175588011741638, -0.4968093931674957, 0.6676073670387268, -0.09807556122541428, -0.6400659084320068, 0.5454347133636475, 0.09196530282497406, 0.6228613257408142, -0.7695474028587341, -0.1592068076133728, -0.17616316676139832, 0.2973828911781311, -0.33862820267677307, -0.4235309064388275, 0.6149255037307739, -0.3379441499710083, -0.33965548872947693, -0.29248127341270447, 1.2106999158859253, -0.6519888043403625, -0.6291660666465759, 0.07002796232700348, 0.2928963303565979, 0.027318330481648445, 0.1172511950135231, -0.6098677515983582, -0.14158129692077637, -0.11434512585401535, -0.1491551548242569, 0.4158967435359955, 0.17513534426689148, -0.1751626580953598, 0.7290850281715393, 0.6399540901184082, 0.25066444277763367, 0.25533851981163025, -0.18083132803440094, 0.7679415345191956, -0.5331875681877136, -0.5962696075439453, -0.6817527413368225, 0.2652522325515747, 0.06686095893383026, -0.11087355017662048, 0.602631151676178, 0.5583134889602661, 0.6914060711860657, -0.000050718546845018864, 0.8196269869804382, 0.08713913708925247, 0.4287499189376831, -0.2871505618095398, 0.5918545126914978, -0.24801181256771088, 0.25578227639198303, -0.4784272015094757, -0.9950753450393677, -0.4203755557537079, 0.577042281627655, 0.15418100357055664, -0.03275098651647568, 0.24614273011684418, 0.78654944896698, 0.07684408128261566, -0.016160117462277412, 0.5361120104789734, 0.17511501908302307, 0.20736084878444672, 0.5121198296546936, 0.5274176597595215, -0.4599423110485077, 0.6081197261810303, -0.06525896489620209, -0.02301519177854061, -0.13758479058742523, -1.0325300693511963, -0.7150583267211914, -0.5992673635482788, -0.11562028527259827, -0.3230810761451721, -0.00010736843978520483, 0.6216561794281006, 0.855391263961792, -0.7567152976989746, -0.1285860687494278, -0.43099457025527954, 0.0337616428732872, -0.0931389182806015, -0.19880297780036926, 0.21680983901023865, -0.32031866908073425, -0.5218510627746582, 0.7667117714881897, 0.3430245816707611, 0.14087319374084473, -0.20583651959896088, -0.34186431765556335, 0.050513625144958496, -0.0061498223803937435, 0.5113077163696289, 0.31124576926231384, -0.42083021998405457, -0.21593669056892395, -0.1544836461544037, -0.10593105107545853, 0.1499326527118683, 0.714361846446991, -0.8220025300979614, 0.30954238772392273, 0.5612406134605408, 0.37367352843284607, 0.2753809094429016, 0.3527323305606842, 0.8443706631660461, -1.3060542345046997, 0.2837415933609009, 0.3065585196018219, 0.4892894923686981, 0.29281339049339294, -0.5686929821968079, 0.5936151146888733, 0.1453918218612671, -0.5415916442871094, -1.082877278327942, 0.3812101483345032, -0.7590741515159607, -0.062133461236953735, 1.1346875429153442, -0.1568749099969864, -0.1995866596698761, -0.20559360086917877, -0.00962225254625082, 0.31347793340682983, -0.28511056303977966, 0.3645178973674774, 0.3801921010017395, 0.09660471230745316, -0.13857392966747284, -0.32090675830841064, 0.5830098986625671, 0.07940074056386948, -0.7926813960075378, -0.049201566725969315, 0.5832006335258484, 0.32531923055648804, 0.06548396497964859, 0.419657438993454, -0.10876984149217606, -0.023402774706482887, -0.11999557912349701, -0.09970416128635406, -0.3828621506690979, -0.5773758292198181, -0.4565418064594269, 0.611016571521759, 0.12911728024482727, 0.027688713744282722 ]
http://arxiv.org/abs/2402.10965v2
http://arxiv.org/pdf/2402.10965v2
Generalization in Healthcare AI: Evaluation of a Clinical Large Language Model
2024-02-14T06:24:52
2024-02-24T13:17:38
Salman Rahman, Lavender Yao Jiang, Saadia Gabriel, Yindalon Aphinyanaphongs, Eric Karl Oermann, Rumi Chunara
cs.CL
cs.CL, cs.CY, cs.LG
Advances in large language models (LLMs) provide new opportunities in healthcare for improved patient care, clinical decision-making, and enhancement of physician and administrator workflows. However, the potential of these models importantly depends on their ability to generalize effectively across clinical environments and populations, a challenge often underestimated in early development. To better understand reasons for these challenges and inform mitigation approaches, we evaluated ClinicLLM, an LLM trained on [HOSPITAL]'s clinical notes, analyzing its performance on 30-day all-cause readmission prediction focusing on variability across hospitals and patient characteristics. We found poorer generalization particularly in hospitals with fewer samples, among patients with government and unspecified insurance, the elderly, and those with high comorbidities. To understand reasons for lack of generalization, we investigated sample sizes for fine-tuning, note content (number of words per note), patient characteristics (comorbidity level, age, insurance type, borough), and health system aspects (hospital, all-cause 30-day readmission, and mortality rates). We used descriptive statistics and supervised classification to identify features. We found that, along with sample size, patient age, number of comorbidities, and the number of words in notes are all important factors related to generalization. Finally, we compared local fine-tuning (hospital specific), instance-based augmented fine-tuning and cluster-based fine-tuning for improving generalization. Among these, local fine-tuning proved most effective, increasing AUC by 0.25% to 11.74% (most helpful in settings with limited data). Overall, this study provides new insights for enhancing the deployment of large language models in the societally important domain of healthcare, and improving their performance for broader populations.
[ 0.08077897131443024, -0.7991656064987183, 0.892890453338623, 0.13680075109004974, -0.1532139778137207, -0.196271613240242, -0.4143117666244507, -0.5050641298294067, 0.05129401013255119, 0.649350106716156, -0.11484885215759277, -0.9258078336715698, -0.735567033290863, 0.07872222363948822, -0.27393898367881775, 1.1077678203582764, -0.14925400912761688, 0.20391862094402313, -0.15375111997127533, -0.12319759279489517, -0.3201095163822174, -0.7038461565971375, -0.8979543447494507, -0.5472756028175354, 0.4324394464492798, 0.3822515904903412, 0.5967380404472351, 0.5015997290611267, 0.9435732364654541, 0.3287024199962616, -0.08771982789039612, 0.0058698225766420364, -0.37155091762542725, -0.16294161975383759, 0.1350284069776535, -0.5001123547554016, -0.6688218116760254, -0.3538833558559418, 0.7940303683280945, 1.0974088907241821, -0.3547653257846832, 0.07360870391130447, -0.17631250619888306, 0.8280671834945679, -0.4764236807823181, 0.066033273935318, -0.3604184091091156, 0.23997364938259125, -0.04100001975893974, 0.060140397399663925, -0.18075531721115112, -0.4013088047504425, 0.4456040561199188, -0.5252279043197632, 0.6211135387420654, 0.04631809890270233, 0.5928164124488831, 0.07392948120832443, -0.5658822059631348, -0.4032958447933197, -0.9047057628631592, 0.7608137130737305, -0.843977153301239, 0.26476889848709106, 0.37578901648521423, 0.3537687361240387, -0.05848095938563347, -0.6738619208335876, -0.10184826701879501, -0.5167188048362732, -0.14878934621810913, 0.2537556290626526, -0.3155052661895752, 0.41091275215148926, 0.30504104495048523, 0.6038935780525208, -0.731696367263794, 0.4175155758857727, -0.46197324991226196, -0.1618449091911316, 0.6540130376815796, 0.5484837889671326, 0.34103667736053467, 0.16991975903511047, -0.06956794112920761, 0.10435023903846741, -0.5200705528259277, -0.02864011749625206, -0.146709606051445, 0.12022046744823456, -0.4129485785961151, 0.46400201320648193, -0.3081378638744354, 0.45463135838508606, -0.2606774866580963, -0.10596933215856552, 0.3125677704811096, -0.3441891372203827, -0.44281256198883057, 0.03889620304107666, 0.7262157201766968, 0.47005021572113037, 0.3072628080844879, -0.4026564061641693, -0.11326171457767487, 0.18385976552963257, 0.3024161458015442, -0.6445906758308411, -0.18221154808998108, 0.45332619547843933, -0.7594565153121948, -0.27370864152908325, -0.13313692808151245, -0.5775700211524963, -0.4363272488117218, -0.41061699390411377, -0.23284007608890533, -0.3454696238040924, -0.0522921159863472, 0.12631112337112427, 0.09212028980255127, 0.13430359959602356, 0.6192782521247864, -0.8854786157608032, 0.4351640045642853, 0.6482725143432617, 0.7956196069717407, -0.36965280771255493, -0.061264172196388245, -0.4642236530780792, 0.17945538461208344, -0.4979967176914215, 0.6286845207214355, -0.3906063139438629, -0.6668142080307007, 0.4436808228492737, -0.0861678346991539, -0.27996450662612915, -1.0424392223358154, 0.7065253257751465, -0.025885287672281265, -0.08419040590524673, 0.21622183918952942, -0.48473843932151794, 0.235642671585083, 0.16921187937259674, -0.6041731238365173, 0.038816727697849274, 0.3843843638896942, -0.3604602515697479, 0.5064299702644348, -0.7268800139427185, -0.5950012803077698, 0.1356368213891983, -0.15948687493801117, -0.6974326372146606, 0.6707693338394165, 0.3991481363773346, 0.46634748578071594, -0.3044113516807556, 0.36626923084259033, -0.1731942743062973, -0.49293529987335205, 0.10134270787239075, -0.24422718584537506, 0.2261561155319214, 0.4383477568626404, 0.09248650074005127, 0.25371256470680237, -0.6773901581764221, -0.12073355913162231, -0.004411735106259584, -0.5286408066749573, -0.323620080947876, -0.069765105843544, 0.2412007749080658, -0.21630768477916718, 0.12888510525226593, -0.2684885859489441, 0.28708434104919434, -0.5789229869842529, 0.38343992829322815, 0.34573063254356384, 0.18713028728961945, 0.4754830300807953, -0.5941761136054993, 0.6846179962158203, 0.19317667186260223, 0.45013004541397095, -0.12933053076267242, -0.4092547595500946, -0.4753800332546234, -0.4023020267486572, 0.21591399610042572, 0.46608731150627136, -0.12954775989055634, 0.09906865656375885, -0.24724018573760986, -0.24198409914970398, -0.6895365715026855, 0.05792984738945961, 0.35917046666145325, 0.36057963967323303, 0.29264888167381287, -0.25093743205070496, -0.4126911461353302, -1.0463111400604248, -0.0765833705663681, -0.11462436616420746, -0.14255398511886597, 0.44323664903640747, 0.3302082121372223, -0.9134142398834229, 0.4449830949306488, -0.4705143868923187, -0.647933304309845, -0.4371170699596405, 0.028154615312814713, 0.4401204586029053, 0.41319283843040466, 0.25155600905418396, -0.5070482492446899, -0.376545250415802, 0.4065781235694885, -0.6473697423934937, -0.11659897863864899, -0.07747742533683777, 0.44191551208496094, 0.17087016999721527, 0.4043131470680237, -0.48764488101005554, 0.6012426614761353, 0.5187248587608337, 0.003226582193747163, 0.3975110948085785, -0.7093308568000793, 0.021826734766364098, -0.8941102623939514, 0.19195832312107086, 0.13495729863643646, -0.009116645902395248, -0.8436837196350098, -0.004107765853404999, -0.03450145944952965, -0.27778494358062744, 0.023770645260810852, 0.34273168444633484, -0.41227689385414124, 0.18872418999671936, -0.02486138790845871, -0.03290734440088272, -0.1234019324183464, -0.02571028470993042, -0.07214316725730896, 0.476750910282135, 0.37880629301071167, -0.46943917870521545, 0.20400530099868774, 0.02977021038532257, -0.3824635148048401, 0.34922879934310913, -0.8453986048698425, -0.004476597532629967, -0.23602250218391418, 0.19429123401641846, -0.8146111369132996, -0.3457087576389313, -0.13066595792770386, -0.2051631510257721, 0.30760031938552856, 0.015421445481479168, -0.3435935378074646, -0.4436219036579132, 0.031692929565906525, 0.3617352843284607, 0.4433292746543884, 0.061735108494758606, 0.4557265639305115, 0.16303929686546326, -0.18355056643486023, -0.12300844490528107, -0.7021321058273315, 0.1275692880153656, -0.2635210454463959, -0.39279815554618835, 0.2150229662656784, -0.04203331470489502, -0.5744773149490356, -0.24085286259651184, 0.0254067312926054, -0.13246488571166992, 0.1932697892189026, 0.24353158473968506, 0.15214784443378448, -0.28688934445381165, 0.3303208649158478, 0.20276331901550293, -0.009398875758051872, 0.14165423810482025, -0.13548602163791656, 0.49897465109825134, -0.26486122608184814, -0.42459121346473694, -0.627733588218689, 0.6031212210655212, 0.6015048623085022, -0.0763818547129631, 0.60794597864151, 0.44176313281059265, -0.4808456003665924, -0.010225903242826462, -0.7039702534675598, -0.018007459118962288, -0.334501713514328, 0.6936433911323547, -0.0565267875790596, -1.0207171440124512, 0.6335033178329468, -0.34650591015815735, 0.1726783812046051, 0.5009422302246094, 0.6136395931243896, -0.06000277400016785, 1.0037544965744019, 0.5111308097839355, -0.3412262201309204, 0.13492877781391144, -0.41231656074523926, 0.14072969555854797, -0.8767052292823792, -0.20992816984653473, -0.610054075717926, -0.0028223751578480005, -0.9492185711860657, -0.38865384459495544, 0.5139018297195435, -0.008155460469424725, -0.09240037947893143, -0.3508506417274475, -0.39512839913368225, 0.09152518957853317, 0.10654330998659134, 0.19569115340709686, 0.48230382800102234, -0.07009116560220718, -0.1780233085155487, 0.20277853310108185, -0.5578321218490601, -0.4012884497642517, 1.3076502084732056, 0.7221264243125916, 0.7765466570854187, 0.21915550529956818, 1.0514261722564697, 0.5733875632286072, 0.5335946083068848, -0.7492920756340027, 0.17616981267929077, -0.6411445140838623, -0.2723710238933563, -0.3705562651157379, -0.5756862163543701, -1.3002208471298218, 0.07791702449321747, -0.18274454772472382, -0.7108494639396667, 0.041976455599069595, 0.24281322956085205, -0.477297306060791, -0.04106609523296356, -0.9217279553413391, 0.7398725152015686, -0.12377885729074478, 0.18530461192131042, -0.3436860144138336, -0.457104355096817, 0.25113290548324585, -0.3083031475543976, 0.5538908839225769, 0.13235992193222046, -0.042087066918611526, 0.3805665075778961, -0.34454289078712463, 0.8220836520195007, 0.08281401544809341, -0.18648894131183624, -0.14810293912887573, -0.31335222721099854, 0.33487120270729065, 0.11754309386014938, 0.03581211343407631, 0.3434092700481415, 0.05688006430864334, -0.35690227150917053, -0.653310239315033, 0.7162067294120789, -1.0350193977355957, -0.7027377486228943, -0.2117892950773239, -0.4662475883960724, -0.4582405984401703, 0.019030794501304626, 0.23922912776470184, 0.6609882116317749, -0.5482369661331177, 0.10600115358829498, 0.620182991027832, -0.3827822208404541, -0.05172019451856613, 0.5332401394844055, -0.3254794180393219, -0.5118299126625061, 0.5730588436126709, -0.17195609211921692, 0.3422459363937378, 0.615854799747467, 0.6126987338066101, -0.10681449621915817, -1.0490436553955078, -0.32299715280532837, 0.35418999195098877, -0.5158895254135132, 0.29088467359542847, -0.5952551364898682, -0.41314297914505005, -0.6332533359527588, -0.17670603096485138, 0.1709313839673996, -0.20061391592025757, -0.4190586805343628, 0.1036074310541153, -0.06128721311688423, 0.9802407026290894, 0.33819353580474854, 0.547002375125885, -0.7643953561782837, 0.26421570777893066, 0.06520558893680573, 0.24760931730270386, 0.09850369393825531, -0.547850489616394, -0.5756099820137024, -0.16340695321559906, -0.20535147190093994, -0.6846963167190552, 0.235632061958313, 0.24156944453716278, 0.8066075444221497, 0.7144452333450317, -0.28154149651527405, 0.545096755027771, -0.6337326169013977, 0.5170674324035645, 0.36452215909957886, -0.5612238049507141, 0.6673341393470764, -0.3243837058544159, 0.5649857521057129, 0.5848863124847412, 0.12888716161251068, -0.6502436399459839, -0.40270882844924927, -0.4448838531970978, -0.9367765784263611, 0.288328617811203, 0.007111848331987858, 0.17112502455711365, 0.07002367824316025, 0.5098567605018616, -0.08407571911811829, 0.15899845957756042, -0.29711076617240906, -0.22483046352863312, 0.18503792583942413, -0.3805243968963623, -0.49362197518348694, -0.28825122117996216, -0.2740819454193115, -0.20039375126361847, 0.1594795137643814, -0.12891605496406555, 0.21300271153450012, 0.45993009209632874, -0.000501879258081317, -0.31601250171661377, 0.6280041933059692, 0.8974209427833557, 0.9425930380821228, -0.19485162198543549, -0.0921049416065216, 0.27197936177253723, -0.7523512244224548, -0.14139917492866516, 0.29137948155403137, -0.05242500081658363, 0.04251989722251892, 0.7683504819869995, 0.9571154713630676, 0.05956347659230232, -0.6051305532455444, 0.31456029415130615, -0.15319067239761353, -0.1748192012310028, -0.3084399998188019, 0.13237181305885315, -0.0761863961815834, 0.14869140088558197, 0.13403315842151642, -0.1731909215450287, 0.44224533438682556, -0.5704033970832825, -0.014604722149670124, 0.41833531856536865, -0.4544356167316437, -0.11926257610321045, 0.456870973110199, 0.08014897257089615, -0.3080802261829376, 0.6077995896339417, 0.49437791109085083, -0.08023684471845627, 0.8194257020950317, 0.616655170917511, 0.933014452457428, -0.32151418924331665, 0.19045396149158478, 0.197974294424057, 0.3396546542644501, 0.024676166474819183, -0.10783177614212036, 0.052884235978126526, -0.5052210092544556, -0.4026862382888794, -0.5923513174057007, -0.6753942370414734, 0.23016174137592316, -0.7179152965545654, 0.061444029211997986, -0.5678374767303467, -0.38388994336128235, -0.09495371580123901, 0.052342161536216736, -0.8070727586746216, 0.350035697221756, 0.1969013512134552, 0.8182052373886108, -0.6725859045982361, 0.6756988167762756, 1.0189274549484253, -0.13994921743869781, -0.7183914184570312, 0.17648252844810486, -0.22403079271316528, -0.8709357380867004, 0.32900458574295044, 0.1548188477754593, 0.40368276834487915, -0.2693726122379303, -0.20638498663902283, -0.5069150924682617, 0.9953874349594116, -0.08191770315170288, -1.0041897296905518, -0.19700010120868683, 0.515658438205719, 1.0721303224563599, -0.6279380321502686, 0.23998621106147766, 0.6460272669792175, 0.1691625863313675, -0.04265414923429489, -1.1748614311218262, -0.10888892412185669, -0.10773143172264099, 0.2985166609287262, 0.1958358883857727, -0.5970470309257507, 0.6450344324111938, -0.5115078091621399, 0.23199892044067383, 0.05734645947813988, 0.32067152857780457, 0.22630538046360016, 0.7862310409545898, 0.3006022572517395, 0.7365431189537048, 0.8644731044769287, 0.007878906093537807, 1.131927251815796, 0.017486341297626495, 0.2923741340637207, 0.9044609069824219, -0.45010146498680115, 0.5248425006866455, 0.36533284187316895, -0.37967461347579956, 0.45757022500038147, 0.3118521571159363, 0.05647633224725723, 0.4960039258003235, 0.5472208261489868, -0.4390530288219452, -0.09397156536579132, -0.05702214688062668, -0.47493425011634827, 0.2688192129135132, 0.4867071807384491, -0.7514157891273499, -0.13739922642707825, 0.13570597767829895, -0.03131747990846634, 0.05137253180146217, -0.5495457053184509, 1.072508692741394, 0.3956887722015381, -0.619943380355835, 0.6245729923248291, -0.07348258048295975, 0.20093002915382385, -0.7636628746986389, 0.004768273327499628, -0.3820412755012512, 0.4658089578151703, -0.2919294536113739, -0.31716278195381165, 0.24129392206668854, -0.02755868062376976, -0.40572765469551086, 0.04216519370675087, 0.4884030520915985, -0.2890152037143707, -0.6236943602561951, 0.15498873591423035, 0.3970927894115448, 0.2454783320426941, 0.09765014052391052, -0.5780514478683472, 0.14579711854457855, -0.111434705555439, 0.0791204422712326, 0.5329405665397644, 0.4829763174057007, -0.3337792158126831, 0.6345147490501404, 0.6604951620101929, 0.6938714385032654, -0.28438517451286316, 0.6403259634971619, 0.731317937374115, -0.4939897358417511, -0.267385870218277, -0.873184323310852, 0.22754980623722076, 0.0327538326382637, -0.3523980379104614, 0.36347079277038574, 0.5543038845062256, 0.3500669002532959, -0.08603276312351227, 0.9007391929626465, 0.4078812003135681, 0.51473069190979, -0.526436448097229, 0.6639325618743896, -0.6765947341918945, 0.2924852669239044, -0.23049093782901764, -0.5279963612556458, -0.5419672131538391, 0.3717813193798065, -0.5851930975914001, 0.0925796702504158, 0.5057073831558228, 0.36985138058662415, 0.2438674420118332, -0.12087192386388779, 0.6618285775184631, 0.3195417523384094, 0.570464015007019, 0.642937421798706, 0.5858048796653748, -0.15344159305095673, 0.18861332535743713, -0.14449606835842133, -0.4309213161468506, -0.3775876760482788, -0.5614739060401917, -0.8894118666648865, -0.17165488004684448, -0.3175376057624817, -0.20684976875782013, 0.3151814341545105, 0.7633644342422485, 0.485533207654953, -1.1087080240249634, -0.2858860194683075, 0.044358931481838226, -0.05577806010842323, -0.15452489256858826, -0.16266478598117828, 0.47005653381347656, -0.33388787508010864, -0.41849979758262634, 0.001502854865975678, 0.38733839988708496, 0.05846906453371048, -0.1423807293176651, 0.020595571026206017, 0.27535367012023926, -0.14211630821228027, 0.5518496036529541, -0.011749295517802238, -0.796914279460907, 0.11382387578487396, -0.008452084846794605, -0.32606467604637146, 0.046677540987730026, 0.9690113663673401, -0.22222988307476044, 0.5076504349708557, 0.05491117388010025, 0.46570274233818054, 0.29938405752182007, 0.14202524721622467, 0.4228399395942688, -0.17180605232715607, -0.09326429665088654, 0.3913000524044037, 0.5768917202949524, 0.20231930911540985, -0.5127227902412415, 0.30647969245910645, 0.21673907339572906, -0.8371825218200684, -0.5462403893470764, -0.008623163215816021, -0.8550196886062622, -0.017948593944311142, 1.168546199798584, -0.1968645304441452, 0.014528146013617516, -0.3628814220428467, -0.2855693995952606, 0.10073967278003693, -0.4106644093990326, 0.8778815269470215, 0.5031238198280334, -0.3032263517379761, -0.06425261497497559, -0.8187490701675415, 0.3926496207714081, 0.3438696265220642, -0.9437999725341797, -0.009759852662682533, 0.6311371326446533, 0.3379765748977661, 0.08274190127849579, 1.0252740383148193, -0.1569640040397644, 0.3672530949115753, -0.5905594229698181, -0.03305709362030029, 0.27983325719833374, -0.06359034031629562, -0.6139684319496155, 0.050915565341711044, 0.14896206557750702, 0.030576327815651894 ]
http://arxiv.org/abs/2402.08966v2
http://arxiv.org/pdf/2402.08966v2
Pretraining Vision-Language Model for Difference Visual Question Answering in Longitudinal Chest X-rays
2024-02-14T06:20:48
2024-06-17T12:57:55
Yeongjae Cho, Taehee Kim, Heejun Shin, Sungzoon Cho, Dongmyung Shin
cs.CV
cs.CV, cs.CL
Difference visual question answering (diff-VQA) is a challenging task that requires answering complex questions based on differences between a pair of images. This task is particularly important in reading chest X-ray images because radiologists often compare multiple images of the same patient taken at different times to track disease progression and changes in its severity in their clinical practice. However, previous works focused on designing specific network architectures for the diff-VQA task, missing opportunities to enhance the model's performance using a pretrained vision-language model (VLM). Here, we introduce a novel VLM called PLURAL, which is pretrained on natural and longitudinal chest X-ray data for the diff-VQA task. The model is developed using a step-by-step approach, starting with being pretrained on natural images and texts, followed by being trained using longitudinal chest X-ray data. The longitudinal data consist of pairs of X-ray images, along with question-answer sets and radiologist's reports that describe the changes in lung abnormalities and diseases over time. Our experimental results show that the PLURAL model outperforms state-of-the-art methods not only in diff-VQA for longitudinal X-rays but also in conventional VQA for a single X-ray image. Through extensive experiments, we demonstrate the effectiveness of the proposed VLM architecture and pretraining method in improving the model's performance.
[ -0.4430789351463318, -0.5576428174972534, 0.5352318286895752, -0.04333397373557091, -0.8048800230026245, -0.04153641313314438, 0.41599681973457336, -0.304244726896286, 0.08645151555538177, 0.5577094554901123, -0.9363759160041809, -0.4715597629547119, -0.7630859017372131, 0.1062132716178894, -0.5214568972587585, 0.6101967096328735, -0.15045484900474548, 0.2568419575691223, -0.2164362519979477, -0.23054927587509155, -0.5901267528533936, -0.42796987295150757, -0.39194172620773315, -0.1096968948841095, 0.4376619756221771, -0.18438801169395447, 0.6397887468338013, 0.22673724591732025, 0.674310028553009, 0.3174169063568115, -0.16048654913902283, 0.13269250094890594, -0.37533798813819885, -0.16091689467430115, 0.16067320108413696, -0.4924895763397217, -0.2680179476737976, -0.3185896575450897, 0.6969342231750488, 0.5281080603599548, -0.19137515127658844, 0.09085848182439804, -0.34596285223960876, 0.9624758362770081, -0.4508374333381653, -0.07823803275823593, -0.5312941074371338, 0.27209344506263733, -0.22225147485733032, -0.2726549804210663, -0.1923447847366333, -0.14901220798492432, 0.49462082982063293, -0.6702008247375488, 0.13328753411769867, -0.19474241137504578, 1.0254756212234497, 0.39289140701293945, -0.653394341468811, 0.011948254890739918, -0.4463531970977783, 0.3915219008922577, -0.5666016936302185, 0.7399338483810425, 0.16766583919525146, 0.48210546374320984, 0.35726678371429443, -1.1321450471878052, -0.5529351830482483, -0.20526041090488434, -0.2173890471458435, 0.38572925329208374, -0.39657339453697205, -0.039272136986255646, 0.024611132219433784, 0.2783467471599579, -1.0457344055175781, -0.022680869325995445, -0.7256660461425781, 0.05368827283382416, 0.4836723804473877, 0.2783745527267456, 0.2970556616783142, -0.20773330330848694, -0.677768349647522, -0.09152288734912872, -0.5391883850097656, -0.05758778005838394, -0.18516327440738678, -0.15526370704174042, -0.06527388095855713, 0.35142943263053894, -0.4862818717956543, 0.9525733590126038, 0.00978611595928669, -0.08452129364013672, 0.6969231367111206, -0.2313932180404663, -0.6202773451805115, -0.05479394644498825, 0.2680221199989319, 0.3258679509162903, -0.14478223025798798, 0.1653408259153366, -0.047866303473711014, 0.23754964768886566, 0.3539091944694519, -0.6083201766014099, -0.24775975942611694, -0.015425609424710274, -0.6970521807670593, -0.3741336166858673, 0.024900369346141815, -0.3792007863521576, -0.07684949040412903, -0.5181794166564941, 0.8025413751602173, -0.24362152814865112, -0.16021201014518738, 0.5557836294174194, -0.21478942036628723, 0.12854118645191193, 0.4546913206577301, -0.2051028609275818, 0.4089147448539734, 0.19373632967472076, 0.8167341947555542, 0.0767747238278389, -0.27491647005081177, -0.7648151516914368, -0.3676924407482147, -0.23390918970108032, 0.7304034233093262, -0.3602612614631653, -0.480533242225647, -0.23537129163742065, -0.04151943698525429, -0.3155990540981293, -0.7301692962646484, 0.13264892995357513, -0.8803486227989197, 0.523504912853241, -0.3273443579673767, -0.35839611291885376, -0.262686163187027, 0.47522473335266113, -0.779619038105011, 0.9034342169761658, 0.17516374588012695, -0.8070564866065979, 0.3441847264766693, -0.4076046049594879, -0.17710143327713013, 0.266196072101593, -0.624189555644989, -0.5667275786399841, 0.20890562236309052, 0.45703959465026855, 0.24247795343399048, -0.13503606617450714, 0.05423584580421448, -0.027484195306897163, -0.2334194779396057, 0.37307366728782654, -0.5025583505630493, 0.8190611004829407, -0.1086408793926239, -0.447511225938797, -0.016006600111722946, -0.8501480221748352, 0.17071519792079926, 0.10114963352680206, -0.02178567461669445, -0.36939549446105957, 0.024693820625543594, -0.3389064371585846, 0.4348301887512207, 0.05341476574540138, -0.45045438408851624, 0.2632830739021301, -0.12281101942062378, 0.10037469118833542, 0.6260143518447876, 0.0857953131198883, -0.17722152173519135, -0.6027443408966064, 0.5189245939254761, 0.4155799150466919, 0.7439343929290771, 0.024705084040760994, -0.6094722747802734, -0.6093240976333618, -0.3124620020389557, -0.09075258672237396, 0.6124757528305054, -1.0425596237182617, -0.2582225799560547, -0.029522689059376717, -0.5211758613586426, -0.5363066792488098, 0.10395165532827377, 0.7434383034706116, 0.8379490375518799, 0.7005956172943115, -0.7228829860687256, -0.6624959707260132, -0.7786142826080322, 0.21397006511688232, -0.3690723180770874, 0.302305668592453, 0.24450941383838654, 0.37316977977752686, -0.4365232288837433, 0.4031369984149933, -1.054120659828186, -0.28593286871910095, -0.026464510709047318, 0.2176671177148819, 0.12913328409194946, 0.048114243894815445, 0.483799010515213, -1.4061704874038696, -0.45714983344078064, -0.07410481572151184, -0.8283050060272217, 0.04308626800775528, -0.08314088732004166, -0.3101666271686554, -0.09637873619794846, 0.9160208702087402, -0.20987732708454132, 0.8012012839317322, 0.7179182767868042, -0.2471913844347, 0.8642350435256958, -0.16850920021533966, 0.20476140081882477, -0.7336912751197815, -0.10497688502073288, -0.0699511393904686, -0.32751840353012085, -0.8324117660522461, 0.12020954489707947, -0.06989533454179764, 0.10941241681575775, -0.950517475605011, 0.6393113136291504, -0.547823965549469, 0.08538512140512466, 0.025722358375787735, -0.08495411276817322, 0.33269432187080383, 0.34068575501441956, 0.439430832862854, 0.24691453576087952, 0.8715516924858093, -0.5204392671585083, 0.143190398812294, 0.5686406493186951, -0.5082939863204956, 0.5531585216522217, -0.934362530708313, 0.14072784781455994, -0.4301096498966217, 0.059326354414224625, -0.8879932165145874, 0.2869046926498413, -0.03590637817978859, -0.1717926412820816, 0.13082191348075867, -0.23982758820056915, -0.127890482544899, -0.5757250785827637, 0.031975194811820984, 0.6842234134674072, 0.5168853998184204, -0.5499005913734436, 0.48723578453063965, -0.06892431527376175, -0.12185593694448471, -0.6395583152770996, -0.7731710076332092, -0.18609625101089478, -0.06370756775140762, -0.6103057861328125, 0.5822935700416565, -0.2572277784347534, -0.2872810959815979, 0.19457247853279114, -0.15084749460220337, -0.5969468951225281, -0.013268944807350636, 0.31513381004333496, 0.5528515577316284, -0.4748201370239258, 0.2340494841337204, -0.015285525470972061, -0.18368655443191528, -0.38710740208625793, -0.45665642619132996, 0.3741499185562134, -0.2824028730392456, -0.5702155828475952, -0.45406287908554077, 0.46283969283103943, 0.4293922483921051, -0.4558168649673462, 0.5139402747154236, 0.5574756860733032, -0.27578163146972656, 0.26280495524406433, -0.5838114023208618, 0.09173215925693512, -0.4920499324798584, 0.516157329082489, -0.29678523540496826, -0.8520017266273499, 0.18780244886875153, 0.14304938912391663, 0.01791735738515854, 0.01776934042572975, 0.6396076083183289, -0.42910298705101013, 0.7923703789710999, 0.5432673096656799, 0.38199159502983093, 0.48623326420783997, -0.34862396121025085, -0.11601840704679489, -0.730657696723938, -0.3251492381095886, 0.0019349869107827544, -0.2575876712799072, -0.04892563819885254, -0.6574505567550659, 0.6509019136428833, 0.011338507756590843, -0.15160372853279114, -0.23374557495117188, -0.39602020382881165, 0.44808274507522583, 0.4406675100326538, 0.5336538553237915, 0.4088895618915558, -0.04251527786254883, 0.0001840804034145549, -0.1795208901166916, -0.7012670636177063, -0.09510032832622528, 0.9394774436950684, -0.1368551254272461, 0.4931682348251343, 0.28946515917778015, 0.8495521545410156, 0.2091839760541916, 0.08789438009262085, -0.2894152104854584, 0.4550541043281555, -0.7716315388679504, -0.5354260802268982, -0.23604197800159454, -0.2922692894935608, -1.17002534866333, 0.4614573121070862, -0.16999100148677826, -0.4498930871486664, 0.2517383098602295, 0.380471795797348, -0.24383479356765747, 0.2629484236240387, -0.49990805983543396, 0.9842633008956909, -0.8119719624519348, 0.07434968650341034, 0.06682126969099045, -0.8685390949249268, 0.3813337981700897, -0.10320227593183517, 0.049266669899225235, 0.3552860915660858, 0.2241320013999939, 0.4466150403022766, -0.5837811827659607, 0.8615838289260864, -0.32083427906036377, 0.3274220824241638, 0.3032186031341553, -0.13065217435359955, 0.050216250121593475, 0.17278002202510834, 0.1775391697883606, 0.22622118890285492, 0.25849130749702454, -0.5490157008171082, -0.753375232219696, 0.07922696322202682, -0.9611101150512695, -0.6265522241592407, -0.2690398693084717, -0.09722732752561569, -0.09275107830762863, 0.327271968126297, 0.7269434332847595, 1.10038423538208, -0.28707969188690186, 0.08291512727737427, 0.7723742723464966, -0.2854371666908264, 0.015522648580372334, 0.6122907996177673, -0.5247874855995178, -0.062110595405101776, 0.5427121520042419, 0.2066573053598404, 0.4991009831428528, 0.9012337327003479, 0.22864070534706116, -0.4988061785697937, -0.6541272401809692, -0.39661917090415955, 0.2559640109539032, -0.7120339870452881, 0.0408526249229908, -0.5527065396308899, -0.2300330251455307, -0.1579824835062027, -0.1614522784948349, -0.2031869739294052, -0.040768589824438095, -0.1908016800880432, 0.03182811662554741, 0.14276033639907837, 0.4882200062274933, 0.019190913066267967, 0.18683089315891266, -0.8722999691963196, 0.6046282649040222, 0.8324546813964844, 0.07015959918498993, -0.26578858494758606, -0.7431567907333374, -0.08611583709716797, -0.17375534772872925, 0.016899285838007927, -0.9345268607139587, 0.45069530606269836, 0.3056226074695587, 0.5843366980552673, 0.06645612418651581, -0.03966483101248741, 0.955278217792511, -0.41880151629447937, 0.693872332572937, 0.5286827683448792, -0.8680447340011597, 0.470366895198822, 0.11938656121492386, 0.5217875838279724, 0.5878345370292664, 0.36460307240486145, -0.5896512269973755, 0.08980581164360046, -0.5444964170455933, -0.8627599477767944, 0.2505485713481903, 0.2233687788248062, -0.08484664559364319, 0.14731751382350922, 0.22872863709926605, 0.14148196578025818, 0.3091695308685303, -0.695011556148529, -0.29359960556030273, -0.5504382252693176, 0.033928725868463516, -0.12363491952419281, 0.021267861127853394, -0.22119353711605072, -0.3281936049461365, 0.5013262033462524, -0.09371256083250046, 0.2557767629623413, 0.5238842964172363, -0.5724630355834961, 0.4699682295322418, 0.05815194919705391, 0.539417028427124, 0.5361953377723694, -0.10445169359445572, 0.20438703894615173, 0.156173974275589, -0.5653122663497925, 0.19404223561286926, -0.0022598884534090757, -0.1456262618303299, 0.21221986413002014, 0.4347105622291565, 1.2994139194488525, -0.007779912557452917, -0.7547977566719055, 0.7777279019355774, -0.7231569290161133, -0.5665164589881897, -0.23658354580402374, -0.11748729646205902, 0.1128540188074112, 0.5531522035598755, 0.18005219101905823, 0.2143782079219818, 0.07005772739648819, -0.2669079005718231, 0.4250853359699249, -0.07106602936983109, -0.5223644375801086, -0.0964297354221344, 0.338128000497818, 0.02747800014913082, -0.0318230502307415, 0.9902504086494446, -0.12548691034317017, -0.4898110628128052, 0.6632775664329529, 0.22823014855384827, 0.5129716992378235, -0.06121406331658363, 0.637067973613739, -0.035153698176145554, 0.33203646540641785, 0.0225953571498394, 0.5580074191093445, 0.055209603160619736, -0.6699708700180054, -0.1712471842765808, -0.2689293622970581, -0.10962264984846115, 0.19035932421684265, -1.142870306968689, 0.3291771113872528, -0.33457082509994507, -0.1049419566988945, -0.17928501963615417, -0.09863825887441635, -1.1246435642242432, 0.8343539834022522, 0.45357850193977356, 0.836578369140625, -0.9151273369789124, 0.8249942064285278, 0.792590856552124, -0.33094093203544617, -0.9518270492553711, -0.06526125222444534, 0.3287450075149536, -1.0041861534118652, 0.9280036687850952, 0.07714778929948807, -0.04834386333823204, -0.026129567995667458, 0.0438251793384552, -0.8586362600326538, 1.205795407295227, 0.15617699921131134, -0.8495655655860901, -0.08359986543655396, -0.06313832849264145, 0.5885145664215088, -0.15667131543159485, 0.1464560180902481, 0.08441539108753204, 0.15002290904521942, 0.13223473727703094, -0.7862340211868286, -0.18448826670646667, -0.5490760207176208, 0.12020412087440491, 0.1243383064866066, -0.5214424133300781, 1.0632421970367432, -0.3449598550796509, -0.18119016289710999, 0.001493551186285913, 0.42793896794319153, 0.357110857963562, 0.550778329372406, 0.790793240070343, 0.6325492262840271, 0.9302971959114075, 0.16238723695278168, 1.0263383388519287, 0.0011601918376982212, 0.15405409038066864, 1.3102840185165405, -0.36370334029197693, 0.891667366027832, 0.4827457070350647, -0.04331010952591896, 0.8280110955238342, 0.3797026574611664, 0.09404997527599335, 0.6246680617332458, 0.14763827621936798, -0.2771678864955902, -0.31382259726524353, 0.5130264759063721, -0.767080545425415, 0.41385558247566223, 0.11190477758646011, -0.3028014898300171, -0.16324134171009064, 0.3080402910709381, -0.37773481011390686, -0.1472129225730896, -0.30587321519851685, 0.6632384061813354, 0.08396375179290771, -0.3775343894958496, 0.790766179561615, -0.32042109966278076, 0.5384072661399841, -0.813153088092804, 0.21181823313236237, -0.2705303430557251, 0.1493874490261078, -0.1620732694864273, -0.6635355949401855, 0.3673481047153473, -0.04572295397520065, -0.35537463426589966, 0.06798415631055832, 0.37455296516418457, -0.191371887922287, -0.6755709052085876, 0.3718331456184387, 0.7172419428825378, 0.11758500337600708, -0.03085293434560299, -1.1342250108718872, 0.24142713844776154, 0.1242654025554657, -0.13290467858314514, 0.3202597200870514, 0.26491159200668335, -0.2945866286754608, 0.5065931677818298, 0.46610260009765625, 0.06748462468385696, 0.47111526131629944, 0.3044310510158539, 1.0060704946517944, -0.28720447421073914, -0.7030474543571472, -0.5930231213569641, 0.7017426490783691, 0.01421720813959837, -0.6570283770561218, 0.2698836326599121, 0.16335131227970123, 1.035198450088501, -0.09177777916193008, 0.781662106513977, 0.1407635360956192, 0.21909771859645844, -0.9464960694313049, 0.3023214638233185, -1.1746987104415894, 0.19289125502109528, -0.3785332441329956, -0.3766113221645355, -0.49771374464035034, 0.6288330554962158, -0.35188543796539307, -0.1318386048078537, 0.8482918739318848, 0.9305031299591064, -0.10268457978963852, -0.2957799732685089, 0.46874213218688965, 0.39386269450187683, 0.3787391781806946, 0.5706966519355774, 0.7012718915939331, -0.48816996812820435, 0.5653097033500671, -0.2923087477684021, -0.2226291298866272, -0.270385205745697, -0.6293057799339294, -0.674609899520874, -0.8804888129234314, -0.6953850984573364, -0.1636660397052765, 0.514883279800415, 0.447173148393631, 1.0055514574050903, -0.13987937569618225, 0.05258405953645706, -0.007544971536844969, -0.21610407531261444, -0.41818350553512573, -0.06373287737369537, 0.4742545485496521, 0.2371452897787094, -0.16477787494659424, 0.24189911782741547, 0.4360333979129791, 0.2022145390510559, -0.12285392731428146, -0.10387825220823288, -0.08058749884366989, 0.05058072879910469, 0.7447656393051147, 0.4360917806625366, -0.5123216509819031, 0.011890836991369724, 0.14024144411087036, -0.1104438528418541, 0.31901320815086365, 0.6476958394050598, -0.9023814797401428, 0.9256636500358582, 0.529840350151062, 0.5763517022132874, 0.8210377097129822, -0.014148401096463203, 0.08355899900197983, -0.7592190504074097, 0.2688622772693634, 0.25025537610054016, 0.4521726369857788, 0.31670135259628296, -0.27169620990753174, 0.010116477496922016, 0.40176817774772644, -0.26756182312965393, -0.8388949632644653, 0.5889874696731567, -1.1227302551269531, -0.561397910118103, 0.7298716902732849, -0.1172032356262207, -0.29096001386642456, -0.1708008050918579, -0.3846954107284546, 0.0018133122939616442, 0.3132910132408142, 0.7361775636672974, 0.15183213353157043, -0.21768079698085785, -0.5242710709571838, -0.09398100525140762, 0.15620523691177368, 0.611877977848053, -0.9664151072502136, -0.588803768157959, 0.2913531959056854, 0.4588988423347473, -0.11971766501665115, 1.1102344989776611, -0.3663720488548279, 0.7033873200416565, 0.15314602851867676, -0.24344804883003235, -0.20585189759731293, -0.34858712553977966, -0.292534202337265, 0.011404705233871937, -0.06269890815019608, -0.43465638160705566 ]
http://arxiv.org/abs/2402.08957v3
http://arxiv.org/pdf/2402.08957v3
MUSTARD: Mastering Uniform Synthesis of Theorem and Proof Data
2024-02-14T05:57:58
2024-05-23T03:13:23
Yinya Huang, Xiaohan Lin, Zhengying Liu, Qingxing Cao, Huajian Xin, Haiming Wang, Zhenguo Li, Linqi Song, Xiaodan Liang
cs.AI
cs.AI, cs.CL, cs.FL, cs.LG, cs.PL
Recent large language models (LLMs) have witnessed significant advancement in various tasks, including mathematical reasoning and theorem proving. As these two tasks require strict and formal multi-step inference, they are appealing domains for exploring the reasoning ability of LLMs but still face important challenges. Previous studies such as Chain-of-Thought (CoT) have revealed the effectiveness of intermediate steps guidance. However, such step-wise annotation requires heavy labor, leading to insufficient training steps for current benchmarks. To fill this gap, this work introduces MUSTARD, a data generation framework that masters uniform synthesis of theorem and proof data of high quality and diversity. MUSTARD synthesizes data in three stages: (1) It samples a few mathematical concept seeds as the problem category. (2) Then, it prompts a generative language model with the sampled concepts to obtain both the problems and their step-wise formal solutions. (3) Lastly, the framework utilizes a proof assistant (e.g., Lean Prover) to filter the valid proofs. With the proposed MUSTARD, we present a theorem-and-proof benchmark MUSTARDSAUCE with 5,866 valid data points. Each data point contains an informal statement, an informal proof, and a translated formal proof that passes the prover validation. We perform extensive analysis and demonstrate that MUSTARD generates validated high-quality step-by-step data. We further apply the MUSTARDSAUCE for fine-tuning smaller language models. The fine-tuned Llama 2-7B achieves a 15.41% average relative performance gain in automated theorem proving, and 8.18% in math word problems. Codes and data are available at https://github.com/Eleanor-H/MUSTARD.
[ -0.4365995526313782, -0.6367814540863037, 0.5355953574180603, 0.5183675289154053, -0.09007050842046738, 0.04237790405750275, -0.41758036613464355, -0.15998612344264984, -0.2144540548324585, 0.6796977519989014, -0.3558809459209442, -0.9407979846000671, -0.4267204701900482, 0.20925703644752502, -0.5206871628761292, 0.8301383256912231, -0.21575254201889038, 0.05576225742697716, 0.01675943098962307, -0.06478389352560043, -0.3330947160720825, -0.1836300939321518, -0.441413938999176, -0.3281337022781372, 0.14327482879161835, 0.6663581132888794, 0.5005338788032532, 1.1465177536010742, 0.2614922523498535, 0.2954350709915161, 0.14826451241970062, 0.34347355365753174, -0.4436051845550537, 0.35806557536125183, -0.22948850691318512, -0.5845295190811157, -0.3200778067111969, -0.10018952935934067, 0.38836151361465454, 0.6606492400169373, 0.031950876116752625, 0.08436227589845657, -0.09186962246894836, 0.6377182006835938, -0.6150364875793457, 0.13092251121997833, -0.8348434567451477, -0.038045380264520645, -0.3738548755645752, 0.046668265014886856, -0.36876702308654785, -0.5218697786331177, -0.3167508542537689, -0.7216658592224121, 0.29759711027145386, -0.15557165443897247, 0.8016052842140198, 0.40095680952072144, -0.2782778739929199, -0.42857813835144043, -0.7122379541397095, 0.8634845018386841, -0.5329168438911438, 0.4117262065410614, 0.20278605818748474, 0.7780424356460571, -0.5035704970359802, -0.7232247591018677, -0.6558035016059875, -0.04534080997109413, 0.3575395941734314, 0.008633330464363098, 0.0610482431948185, -0.2766396105289459, 0.23736786842346191, 0.3226265609264374, -0.4267845153808594, -0.07092088460922241, -0.17174996435642242, -0.09395188093185425, 0.7035778760910034, 0.07275775074958801, 0.0432649701833725, -0.31310033798217773, -0.15802353620529175, -0.3641601800918579, -0.7240399122238159, -0.19388297200202942, 0.3479176461696625, 0.207469642162323, -0.07089803367853165, 0.7634674906730652, -0.34460604190826416, 0.6140910983085632, -0.13867026567459106, -0.2632276713848114, -0.07042623311281204, -0.44630950689315796, -0.23944680392742157, -0.1427040994167328, 0.766616702079773, 0.18235920369625092, 0.5800490975379944, -0.04132753238081932, -0.09974648803472519, 0.5476552844047546, 0.04821966961026192, -0.7059937119483948, -0.507330060005188, 0.48369497060775757, 0.02424999140202999, -0.2912587821483612, 0.006177099421620369, -0.8843342065811157, -0.4826698303222656, -0.3812657594680786, 0.00474232342094183, -0.8007182478904724, 0.028503745794296265, 0.3198913335800171, -0.24009642004966736, 0.07634851336479187, 0.28547850251197815, -0.5689379572868347, 0.45749354362487793, 0.8907080888748169, 0.4696435034275055, 0.10984626412391663, -0.2165580838918686, -0.3740959167480469, 0.28984692692756653, -0.786726713180542, 0.8514941334724426, -0.4599609375, -0.055981315672397614, 0.06421584635972977, -0.3702054023742676, 0.1824706643819809, -0.7893379330635071, 0.7194127440452576, -0.2759822607040405, -0.19595445692539215, -0.22501878440380096, -0.7432804703712463, 0.15369711816310883, 0.2750197649002075, -0.4124489724636078, 1.172116756439209, 0.039747435599565506, -0.6518821120262146, 0.482677698135376, -0.369497686624527, -0.3756653070449829, -0.09592887759208679, -0.4937931299209595, -0.33899304270744324, -0.13732826709747314, 0.4526624083518982, 0.4902617633342743, -0.4863785207271576, 0.11307623237371445, -0.2406764179468155, -0.09142787009477615, 0.437907874584198, 0.006320946849882603, 0.6454882025718689, 0.253910630941391, -0.49811214208602905, 0.05775298923254013, -1.3630397319793701, -0.026365432888269424, 0.33598577976226807, -0.526780903339386, -0.24869878590106964, -0.13114666938781738, -0.19283783435821533, 0.2118261307477951, -0.01179046742618084, -0.40222933888435364, 0.23000404238700867, -0.23571661114692688, 0.028154242783784866, 0.8180698156356812, 0.08625917136669159, 0.33521556854248047, -0.36226847767829895, 0.2838435471057892, 0.058667272329330444, -0.01574314385652542, -0.10288634896278381, -0.4661969244480133, -1.1712678670883179, -0.5754830837249756, 0.5395534634590149, 0.44276514649391174, -0.7373569011688232, 0.6051985025405884, -0.18016815185546875, -0.5453208684921265, -0.6554080843925476, 0.5540866851806641, 0.34898290038108826, 0.3619658350944519, 0.38506290316581726, -0.04566407948732376, -0.9212911128997803, -0.6932327747344971, -0.3907816708087921, 0.09503263235092163, -0.3691919445991516, 0.12143684178590775, 0.38718390464782715, -0.5983972549438477, 1.0668376684188843, -0.37663546204566956, -0.22666561603546143, -0.27277418971061707, 0.1400858610868454, 0.44035178422927856, 0.4513315260410309, 0.3212776780128479, -0.4060216546058655, -0.5226415395736694, 0.1817452758550644, -0.7969370484352112, -0.5216174721717834, -0.14806289970874786, -0.6241050958633423, 0.2275579422712326, 0.5765961408615112, -0.269815057516098, 0.19571973383426666, 0.3346808850765228, -0.12256406247615814, 0.5486181378364563, 0.030400920659303665, 0.027431244030594826, -0.953169584274292, -0.10431525856256485, 0.21705211699008942, -0.3930390775203705, -0.4310758709907532, 0.12100635468959808, 0.09456638991832733, 0.2218913584947586, -0.18707053363323212, 0.4402277171611786, -0.15410387516021729, 0.07754018157720566, -0.20112094283103943, -0.1444856971502304, -0.058400146663188934, 0.2605014443397522, -0.2374565303325653, 0.4993610382080078, 0.5694796442985535, -0.9426181316375732, 0.4347670078277588, -0.04891359806060791, -0.20006583631038666, 0.5894435048103333, -0.6074325442314148, -0.12562160193920135, 0.1723032295703888, 0.19834114611148834, -1.0623788833618164, -0.43317168951034546, 0.295555979013443, -0.28265273571014404, 0.04757146164774895, -0.41334062814712524, -0.7937896251678467, -0.25932231545448303, -0.2504585087299347, 0.15397903323173523, 0.7488682866096497, -0.7136720418930054, 0.46008050441741943, 0.22841309010982513, -0.0646614357829094, -0.2562459111213684, -0.4715367555618286, -0.10053939372301102, -0.10600370168685913, -0.6557747721672058, 0.1832084357738495, 0.024197783321142197, -0.5423667430877686, -0.20041881501674652, -0.17382287979125977, -0.011965449899435043, -0.1677398532629013, 0.07397662848234177, -0.1316993236541748, 0.18254035711288452, -0.16648167371749878, 0.11303161829710007, -0.28767240047454834, 0.07958192378282547, -0.4962445795536041, 0.6742814183235168, 0.2108021229505539, -0.3222676217556, 0.0388278067111969, 0.12767598032951355, 0.37855264544487, 0.10083131492137909, 0.28852763772010803, 0.5850933790206909, -0.4124913811683655, -0.7654854655265808, -0.4095272719860077, 0.1179175078868866, -0.47980165481567383, 0.12306947261095047, -0.505064070224762, -0.2291644811630249, 0.39164021611213684, -0.5111609101295471, 0.3965094983577728, 0.5390280485153198, 0.7703302502632141, -0.10435588657855988, 0.6594717502593994, 0.3706204891204834, 0.2719838619232178, 0.18942230939865112, -0.49740874767303467, -0.1760435253381729, -0.5915495157241821, -0.17565342783927917, -0.6679483652114868, 0.030777662992477417, -0.545221209526062, -0.914921224117279, 0.47496601939201355, 0.31871065497398376, -0.3020094931125641, 0.3464062809944153, -0.38455793261528015, 0.4923035800457001, 0.514009952545166, 0.045232828706502914, 0.2819356918334961, 0.037359822541475296, -0.4287838637828827, -0.18763096630573273, -0.6418848037719727, -0.5765888094902039, 1.4291044473648071, 0.3197459578514099, 0.892509937286377, 0.130513995885849, 1.080662727355957, 0.18051698803901672, 0.13591431081295013, -0.5036526322364807, 0.7873852252960205, -0.14757610857486725, -0.39130911231040955, -0.15230482816696167, -0.7603216171264648, -0.8755120635032654, 0.18157996237277985, -0.042120981961488724, -0.42069438099861145, -0.1740289181470871, 0.14077875018119812, 0.2149723470211029, -0.12242896854877472, -0.5103254318237305, 0.5252715349197388, -0.10344186425209045, -0.4804441034793854, -0.026822585612535477, -0.4041776657104492, 0.6251477599143982, -0.04470519721508026, 0.4963185489177704, -0.1552252471446991, 0.18847446143627167, 0.854272723197937, -0.7784388661384583, 0.6650279760360718, -0.03193850442767143, -0.4725518822669983, 0.24317459762096405, 0.37466996908187866, 0.6015600562095642, 0.22562620043754578, 0.0432685986161232, -0.022712718695402145, -0.3185676634311676, -0.45043453574180603, -0.5096583366394043, 0.640302836894989, -0.5646094679832458, -0.38857775926589966, -0.40971627831459045, -0.6625953912734985, -0.29468223452568054, 0.28718268871307373, 0.3101573884487152, -0.03182709589600563, -0.056036874651908875, -0.18118742108345032, 0.8564004302024841, -0.10366026312112808, 0.14716893434524536, 0.0837143287062645, -0.3277478516101837, -0.7894628047943115, 0.9892335534095764, 0.08662114292383194, 0.2053035944700241, 0.23811252415180206, 0.19693513214588165, -0.18244780600070953, -0.35753902792930603, -0.534581184387207, 0.2685403823852539, -0.9665098190307617, -0.19003212451934814, -0.5456662178039551, -0.04118494689464569, -0.5797312259674072, -0.28275322914123535, -0.7151833772659302, -0.6853454113006592, 0.21299390494823456, 0.31011223793029785, 0.5235138535499573, 0.6996119022369385, -0.26399850845336914, -0.028624963015317917, -0.4089769124984741, 0.9679206013679504, 0.4120658040046692, 0.33608147501945496, -0.26140260696411133, -0.1762702316045761, -0.23247596621513367, 0.01054284069687128, -0.3640744686126709, -0.7467180490493774, 0.24072448909282684, 0.001598017755895853, 0.3707839250564575, 0.338296115398407, 0.08817979693412781, 0.7123541235923767, -0.6329056620597839, 0.497526079416275, 0.007377560716122389, -1.0297924280166626, 0.6356281638145447, -0.26482078433036804, 0.1104140505194664, 0.42000752687454224, 0.2699066400527954, -0.26103708148002625, -0.662224531173706, -0.661575198173523, -0.9644836187362671, 0.18453553318977356, 0.43163254857063293, -0.5915708541870117, 0.15276190638542175, 0.07225728034973145, 0.3068130314350128, 0.05416499078273773, -0.38877829909324646, -0.3291877210140228, -0.22374099493026733, -0.5039723515510559, 0.08543676882982254, -0.08414743840694427, -0.440544992685318, -0.34440305829048157, 0.7501311898231506, -0.15793360769748688, 0.13159804046154022, -0.05746741592884064, -0.12379404902458191, 0.09109431505203247, 0.38158389925956726, 0.293326735496521, 0.661149263381958, -0.16868501901626587, 0.34831416606903076, -0.1215977668762207, -0.382741242647171, 0.3639684319496155, 0.3123345971107483, -0.14838813245296478, 0.3070720136165619, 0.45601826906204224, 0.19357940554618835, 0.09419792890548706, -0.5988582372665405, 0.13722127676010132, -0.1508430689573288, -0.1505812108516693, -0.18662236630916595, 0.4174758195877075, 0.02648690529167652, 0.20443397760391235, 0.23617778718471527, -0.03844374045729637, 0.06809185445308685, -0.35867470502853394, 0.3151313364505768, 0.1556577831506729, 0.37749308347702026, -0.04349169135093689, 0.5567699670791626, -0.010645300149917603, 0.08576471358537674, 0.1521233767271042, -0.26044222712516785, -0.4698368310928345, 0.6288202404975891, 0.6223413348197937, 0.6042309403419495, 0.0012298241490498185, 0.08614631742238998, 0.31768837571144104, 0.17021816968917847, 0.043203987181186676, 0.5111409425735474, -0.15389752388000488, -0.4781305491924286, -0.1667289435863495, -0.8122276663780212, -0.5780176520347595, -0.1145181804895401, -0.3993277847766876, 0.30292004346847534, -0.7037635445594788, 0.20300230383872986, 0.17562545835971832, 0.16625149548053741, -0.8719983100891113, 0.2370043694972992, -0.1167004257440567, 1.0089688301086426, -0.7987082004547119, 0.7313030362129211, 0.562219500541687, -0.14081257581710815, -0.7514389157295227, 0.022982032969594002, 0.021155308932065964, -0.6638171672821045, 0.4027002453804016, -0.055794283747673035, 0.16447971761226654, -0.22675791382789612, -0.5394858121871948, -0.619953453540802, 0.8650461435317993, 0.5485041737556458, -0.6265445351600647, 0.5421871542930603, 0.5375031232833862, 0.40791550278663635, -0.3015492260456085, -0.11591028422117233, 0.9057642817497253, 0.5382004976272583, 0.4794663190841675, -0.646903932094574, 0.08083181083202362, -0.2221328169107437, 0.17870499193668365, -0.08364076167345047, -0.29649659991264343, 1.0413017272949219, -0.03683580458164215, -0.07688526809215546, 0.17798739671707153, 0.7041303515434265, 1.0143299102783203, 0.2622055411338806, 0.16069450974464417, 0.8988032341003418, 0.9394228458404541, -0.19567114114761353, 1.2126742601394653, -0.082143634557724, 0.09361454099416733, 1.020277976989746, -0.4222720265388489, 0.5443540215492249, 0.442323237657547, -0.2436407059431076, 0.5731542110443115, 0.5611402988433838, 0.11295876652002335, 0.35931387543678284, 0.6395198106765747, -0.1786627471446991, -0.18411734700202942, -0.02212640829384327, -0.4443477988243103, 0.2539045810699463, 0.4105647802352905, -0.2687431871891022, -0.15974287688732147, -0.23679934442043304, 0.2445901334285736, 0.18288801610469818, -0.1857679784297943, 0.8493092060089111, -0.0933930054306984, -0.5714488625526428, 1.0211858749389648, 0.2511856257915497, 0.4812264144420624, -0.5278273820877075, -0.22208136320114136, -0.4169691503047943, 0.5947672724723816, -0.15498510003089905, -0.7223191261291504, 0.014834183268249035, 0.3611283600330353, -0.14422529935836792, 0.10753444582223892, 0.4724692404270172, -0.4052402675151825, -0.7865746021270752, 0.05633517727255821, 0.2411399632692337, 0.15102870762348175, 0.28510457277297974, -0.3794362246990204, 0.5392509698867798, -0.1937067061662674, -0.06100442633032799, 0.014102946035563946, 1.054544448852539, -0.05177856609225273, 0.6483444571495056, 0.8032767176628113, 0.4336254596710205, 0.4091121256351471, 0.12406092137098312, 1.022820234298706, -0.6150678396224976, -0.49350693821907043, -0.8554361462593079, 0.37470555305480957, -0.2568867802619934, -0.04958565533161163, 1.008776068687439, 0.45014524459838867, 1.031967043876648, -0.09882400184869766, 1.0809524059295654, -0.052631691098213196, 0.3293035328388214, -0.7521244287490845, 0.4053225517272949, -0.12509331107139587, 0.33945944905281067, -0.5135043859481812, -1.0459229946136475, -0.5392746925354004, 0.6967103481292725, 0.0013126092962920666, -0.022628838196396828, 0.5873497724533081, 0.6779623627662659, -0.19311222434043884, -0.3053776025772095, 0.07388528436422348, 0.3206965923309326, 0.8527817130088806, 0.6016589403152466, 0.5535264611244202, -0.6506662368774414, 0.5360025763511658, -0.3533792793750763, -0.3951985538005829, -0.11051520705223083, -0.8059266805648804, -0.9654226899147034, -0.3038998544216156, -0.39349567890167236, -0.6428765654563904, -0.033371955156326294, 0.9269600510597229, 0.7344980835914612, -0.7873371243476868, -0.44475358724594116, -0.6848084926605225, 0.3149740993976593, -0.33012935519218445, -0.22207966446876526, 0.2529081106185913, -0.5244923233985901, -0.6513350009918213, 0.4114297926425934, 0.23104293644428253, 0.03311726450920105, -0.2169087529182434, -0.4057775139808655, -0.19998006522655487, 0.4132741093635559, 0.33134952187538147, 0.380567342042923, -0.5240345597267151, 0.0671355202794075, -0.4047233760356903, -0.13927119970321655, -0.0869574099779129, 0.7483863234519958, -0.7614163160324097, 0.511581301689148, 0.3041881024837494, 0.7163391709327698, 0.3918185830116272, -0.15428048372268677, 0.6667434573173523, -1.0868699550628662, 0.18576614558696747, 0.07376867532730103, 0.5868702530860901, 0.4390183091163635, -0.12332919239997864, 0.6064412593841553, 0.2316928207874298, -0.38447993993759155, -0.8150773644447327, 0.3804849684238434, -0.7633911371231079, -0.2775057256221771, 1.4518043994903564, -0.08973606675863266, -0.5497170686721802, -0.09322135895490646, -0.2651633322238922, 0.4818347990512848, -0.32294344902038574, 0.8175008893013, 0.4935641288757324, -0.09071121364831924, 0.09554963558912277, -0.19591660797595978, 0.5546743869781494, 0.2559533417224884, -0.9710665345191956, 0.2721008062362671, 0.49972081184387207, 0.35505494475364685, 0.16255943477153778, 0.4675915241241455, -0.13613347709178925, 0.27374520897865295, 0.25160256028175354, 0.0504247210919857, -0.16315828263759613, -0.781629741191864, -0.038486503064632416, 0.19388538599014282, 0.0542895644903183, -0.3009669780731201 ]
http://arxiv.org/abs/2402.08955v1
http://arxiv.org/pdf/2402.08955v1
Using Counterfactual Tasks to Evaluate the Generality of Analogical Reasoning in Large Language Models
2024-02-14T05:52:23
2024-02-14T05:52:23
Martha Lewis, Melanie Mitchell
cs.AI
cs.AI, cs.CL
Large language models (LLMs) have performed well on several reasoning benchmarks, including ones that test analogical reasoning abilities. However, it has been debated whether they are actually performing humanlike abstract reasoning or instead employing less general processes that rely on similarity to what has been seen in their training data. Here we investigate the generality of analogy-making abilities previously claimed for LLMs (Webb, Holyoak, & Lu, 2023). We take one set of analogy problems used to evaluate LLMs and create a set of "counterfactual" variants-versions that test the same abstract reasoning abilities but that are likely dissimilar from any pre-training data. We test humans and three GPT models on both the original and counterfactual problems, and show that, while the performance of humans remains high for all the problems, the GPT models' performance declines sharply on the counterfactual set. This work provides evidence that, despite previously reported successes of LLMs on analogical reasoning, these models lack the robustness and generality of human analogy-making.
[ -0.5373614430427551, -0.8506858944892883, 1.0219719409942627, -0.37550246715545654, -0.2624357342720032, -0.2892778813838959, -0.20495466887950897, -0.6171355843544006, 0.18936218321323395, 0.26965147256851196, -0.5733240246772766, -0.06373298168182373, -0.5647191405296326, 0.12249623239040375, -0.4273815155029297, 0.9032294750213623, -0.14243143796920776, 0.06037464737892151, -0.39268213510513306, -0.326834499835968, -0.2319989949464798, -0.7894760966300964, -0.5137719511985779, -0.7703733444213867, 0.3603232502937317, -0.055739641189575195, 1.1110224723815918, 0.49187707901000977, 0.1932476907968521, 0.35089612007141113, 0.2841772437095642, -0.1538858711719513, -0.43826180696487427, -0.0878170058131218, -0.7415468692779541, -0.5396386384963989, -0.3372234106063843, 0.4826001524925232, 0.404019832611084, 0.8283117413520813, 0.006036895792931318, 0.1705930382013321, 0.043946441262960434, 0.3520987629890442, -0.34117355942726135, 0.1285143792629242, -0.99794602394104, -0.2263815701007843, 0.25577834248542786, 0.04621860012412071, -0.14428672194480896, -0.2826352119445801, 0.42429953813552856, -0.6851233839988708, 0.518604040145874, 0.20405827462673187, 0.8401567935943604, 0.0496809221804142, -0.17859932780265808, -0.3729104697704315, -0.625337541103363, 0.9170328378677368, -0.8575361967086792, 0.10107777267694473, 0.3529900908470154, 0.2063177078962326, -0.211944580078125, -0.5865769982337952, -0.9148974418640137, -0.629873514175415, -0.19863706827163696, -0.14725476503372192, -0.5468108654022217, -0.030332205817103386, 0.5821636319160461, 0.18774856626987457, -0.8179174661636353, 0.15822185575962067, -0.26124799251556396, 0.02128041349351406, 0.30155640840530396, 0.2730081379413605, 0.3719630539417267, 0.23703469336032867, -0.26751837134361267, -0.07746061682701111, -1.0068403482437134, -0.13957852125167847, 0.2614351511001587, -0.0302717387676239, -0.005887823645025492, 0.37560784816741943, -0.26469460129737854, 0.5651514530181885, 0.008161102421581745, 0.16623809933662415, 0.0840601995587349, -0.026832260191440582, -0.34049227833747864, -0.3087804615497589, 0.5056909322738647, 0.6528632640838623, 0.86002516746521, -0.32920151948928833, -0.24860885739326477, 0.5354909896850586, 0.21717078983783722, -0.6305615901947021, -0.299219012260437, -0.0920497477054596, -0.3786567747592926, -0.014316515065729618, 0.028826287016272545, -0.18739672005176544, -0.033009521663188934, -0.6751311421394348, 0.8566555976867676, -0.22795702517032623, -0.12282689660787582, 0.018850717693567276, -0.22219382226467133, 0.1879003345966339, 0.320575088262558, -0.8955903649330139, 0.5900411009788513, 0.7961723208427429, 0.6513862609863281, -0.1470024436712265, -0.7707329988479614, -0.5432011485099792, 0.056131813675165176, -0.5248621106147766, 0.8176915049552917, -0.8179110884666443, -0.3661404550075531, -0.27464887499809265, 0.08285263925790787, -0.3052598536014557, -0.9726387858390808, 0.1349545121192932, -0.2548110783100128, 0.16929294168949127, -0.5933729410171509, -0.5446056723594666, -0.18218262493610382, 0.539991021156311, -0.42693886160850525, 0.6025283336639404, 0.013599665835499763, -0.5513281226158142, 0.32847878336906433, -0.42366233468055725, -0.2616131603717804, -0.2000960111618042, -0.5695717334747314, -0.27732422947883606, 0.28155753016471863, -0.02493816800415516, 0.25089383125305176, -0.7120382189750671, 0.21666719019412994, -0.6492921113967896, -0.8493717312812805, 0.31421148777008057, -0.4028608500957489, 0.5645773410797119, -0.015949005261063576, -0.46895816922187805, -0.03066239133477211, -0.3720880448818207, 0.06847944110631943, 0.2877083718776703, 0.05600503087043762, -0.5123873353004456, 0.0452691987156868, -0.4323703646659851, 0.4132494330406189, -0.06795307993888855, -0.6323686242103577, 0.28441861271858215, -0.32888704538345337, 0.5250798463821411, 0.6530134081840515, -0.20550724864006042, 0.15768052637577057, -0.8302572965621948, 0.5068534016609192, -0.11479932069778442, -0.15135349333286285, 0.06484745442867279, -0.7512578964233398, -0.6611039042472839, -0.10306774824857712, 0.02251724898815155, 0.5515508055686951, -0.7269790172576904, 0.06881561875343323, -0.5178588628768921, -0.47416287660598755, -0.16656646132469177, 0.03220251575112343, 0.5774950981140137, 0.6245793104171753, 0.39185094833374023, -0.3815179467201233, -0.4242538511753082, -1.2697259187698364, -0.6419106721878052, -0.4244515597820282, -0.43958041071891785, 0.13889890909194946, 0.8295947909355164, -0.1808956116437912, 0.8984826803207397, -0.42451992630958557, 0.045145127922296524, -0.015282073989510536, 0.5423956513404846, 0.2801484167575836, 0.33281174302101135, 0.7259259223937988, -0.6204507350921631, -0.2524365186691284, -0.1149139255285263, -0.8962511420249939, -0.3547648787498474, -0.14741918444633484, 0.4381800889968872, 0.2467600405216217, 0.6958736777305603, -0.8902400135993958, 0.4711531102657318, 0.4384740889072418, -0.2337467074394226, 1.0106950998306274, -0.3761206567287445, 0.3325587809085846, -0.4705039858818054, 0.1845848560333252, -0.08402293175458908, -0.02110355719923973, -0.6253431439399719, 0.1897255778312683, -0.23807533085346222, -0.015214783139526844, -0.46976780891418457, 0.7556537985801697, -0.30771109461784363, -0.25095105171203613, -0.27718812227249146, 0.04554993659257889, -0.06697879731655121, 0.4548870921134949, 0.250976026058197, 0.8600366115570068, 0.38424956798553467, -0.46058252453804016, 0.3478942811489105, -0.3099275231361389, -0.2359996736049652, 0.7666374444961548, -1.0099618434906006, 0.22806009650230408, -0.15308575332164764, 0.2732888460159302, -0.9456542134284973, 0.02697853557765484, 0.12628820538520813, -0.17993105947971344, -0.1758967936038971, -0.060217224061489105, -0.6163387894630432, -0.334096223115921, -0.4127286970615387, 0.39880621433258057, 0.8715329170227051, -0.3661080002784729, 0.5969126224517822, -0.33059972524642944, -0.20978407561779022, -0.2965543866157532, -0.8856150507926941, 0.17571966350078583, -0.4062170684337616, -0.3280436098575592, 0.22756953537464142, -0.06711845844984055, -0.5378578305244446, 0.27528566122055054, -0.22014360129833221, -0.10719973593950272, -0.07959968596696854, 0.11651647090911865, 0.31230878829956055, -0.28330060839653015, 0.035457804799079895, -0.17533281445503235, -0.14552241563796997, 0.27998214960098267, -0.15909406542778015, 0.2289879024028778, -0.2487223744392395, -0.7301585078239441, -0.040076520293951035, 0.29972752928733826, 0.4713798463344574, 0.1999853551387787, 0.6906599998474121, 0.27840369939804077, -0.2746988832950592, 0.08687413483858109, -0.7576854825019836, -0.32992714643478394, -0.41266700625419617, 0.48576828837394714, -0.7070897221565247, -0.7674084901809692, 0.6913577318191528, 0.06938422471284866, 0.08159700781106949, 0.4869093596935272, 0.47188934683799744, -0.15092125535011292, 0.6321981549263, -0.07702990621328354, 0.15822766721248627, -0.015065369196236134, -0.03898829594254494, 0.14509981870651245, -0.5280545949935913, 0.13055716454982758, -0.4135904610157013, -0.15130889415740967, -0.5543212294578552, -0.3772661089897156, 0.16200372576713562, -0.05524203181266785, -0.5776809453964233, 0.3354809284210205, -0.06321315467357635, 0.6305444240570068, 0.4453091025352478, 0.017785947769880295, 0.4658603072166443, -0.018494663760066032, -0.14355061948299408, -0.19035710394382477, -0.5709617137908936, -0.6739179491996765, 1.0397454500198364, 0.08387445658445358, 0.627447247505188, 0.05149100348353386, 0.40763285756111145, 0.23528103530406952, 0.7445976734161377, -0.3601342737674713, 0.7947027087211609, -0.5059043169021606, -0.6663864850997925, -0.2187754511833191, -0.3856952488422394, -0.9917194247245789, 0.6095103621482849, -0.2228250354528427, -0.8890030384063721, -0.0030334729235619307, 0.3933427929878235, 0.05147005617618561, 0.5366647839546204, -0.8397290110588074, 0.777886688709259, 0.15948888659477234, -0.12595625221729279, -0.4268925189971924, -0.5107837319374084, 0.41618576645851135, -0.1874091625213623, 0.23774372041225433, 0.050387799739837646, -0.014308439567685127, 0.5707384943962097, -0.3531557023525238, 0.8645907044410706, -0.08640935271978378, -0.07492838054895401, 0.2324184775352478, 0.3668364882469177, 0.5537869334220886, -0.34555742144584656, -0.08483649790287018, 0.2681160271167755, 0.019142573699355125, -0.55084228515625, -0.9971371293067932, 0.8085122108459473, -0.5799244046211243, -1.181258201599121, -0.39427393674850464, -0.5691946744918823, -0.3379206657409668, 0.11237850785255432, 0.15986570715904236, 0.4543408453464508, -0.4752589762210846, 0.09657997637987137, 0.4751178026199341, -0.11967101693153381, 0.28568634390830994, 0.5685811042785645, -0.117915578186512, -0.04564083740115166, 0.779876708984375, 0.17769336700439453, 0.7355942726135254, 0.2305159717798233, 0.22088974714279175, -0.2884331941604614, -0.5149487853050232, -0.5046616792678833, 0.20352120697498322, -0.7027133703231812, 0.32088708877563477, -0.3587823510169983, 0.12408227473497391, -0.09473764896392822, -0.21451839804649353, -0.17883537709712982, -0.3289247155189514, 0.09701789170503616, 0.1721368134021759, -0.15958842635154724, 0.8796510696411133, -0.06994489580392838, -0.10359024256467819, -0.5201295018196106, 0.7536568641662598, 1.0240298509597778, 0.12957198917865753, 0.3274315595626831, -0.6542127132415771, 0.09591825306415558, 0.1749473512172699, -0.20965488255023956, -0.5089710354804993, -0.08553683757781982, 0.1564970314502716, 0.7024575471878052, 0.3026830852031708, -0.10758301615715027, 0.576435387134552, -0.7056902050971985, 0.7179854512214661, 0.29652535915374756, -0.9508262276649475, -0.0647965744137764, -0.5599873065948486, 0.33787834644317627, 0.3605875074863434, 0.43723243474960327, -0.38742947578430176, -0.3858446478843689, -0.578033983707428, -0.31743159890174866, 0.37077081203460693, 0.3117803931236267, 0.21031253039836884, -0.11250603199005127, 0.2599899172782898, 0.25788047909736633, 0.19659386575222015, -0.7943875789642334, -0.04702853038907051, -0.24584700167179108, 0.03676723316311836, -0.23113638162612915, -0.1135765090584755, -0.007881567813456059, -0.21150554716587067, 0.32816725969314575, 0.020653439685702324, 0.06172841787338257, 0.2393198013305664, -0.1039358451962471, -0.13331378996372223, 0.5571113228797913, 0.6396916508674622, 0.9472761154174805, -0.25830623507499695, 0.45614728331565857, 0.5654499530792236, -0.17641352117061615, 0.4684154987335205, 0.12289298325777054, -0.06401161849498749, -0.18487970530986786, 0.7805899977684021, 0.5553209185600281, 0.3346094489097595, -0.8448091149330139, 0.3384658694267273, 0.13086280226707458, -0.48063477873802185, -0.13200855255126953, 0.23621097207069397, 0.41666659712791443, 0.20282065868377686, 0.43353456258773804, 0.05372260883450508, 0.13059763610363007, -1.1085882186889648, -0.008983457460999489, 0.6424771547317505, -0.04683789983391762, -0.44917377829551697, 0.659958004951477, -0.07781066745519638, -0.43301305174827576, 0.5705001354217529, -0.2778542637825012, -0.5375236868858337, 0.7531691193580627, 0.5487725138664246, 0.7476066946983337, -0.13481596112251282, -0.12187804281711578, 0.08040511608123779, 0.43158578872680664, -0.16708344221115112, -0.0035934702027589083, 0.14455462992191315, -0.7045796513557434, -0.48779672384262085, -0.19894950091838837, -0.48285025358200073, 0.5200632810592651, -0.4946300983428955, -0.07904661446809769, -0.29156258702278137, 0.011849108152091503, 0.045411281287670135, -0.3567652702331543, -0.8412780165672302, 0.42229562997817993, -0.20797601342201233, 0.5476799011230469, -1.1987097263336182, 0.8136606812477112, 0.9600986242294312, -0.22683961689472198, -0.33403435349464417, 0.20047058165073395, -0.17101143300533295, -0.7322480082511902, 0.9453519582748413, 0.18091075122356415, -0.2915908098220825, -0.43540847301483154, -0.3938044607639313, -0.43116167187690735, 0.7660661935806274, 0.7687132954597473, -0.6302304267883301, -0.22537225484848022, 0.41146981716156006, 0.9048952460289001, -0.507146418094635, 0.26645535230636597, 0.6362366080284119, 0.4412415325641632, -0.0534750260412693, -1.4423238039016724, 0.33762049674987793, -0.2378285825252533, 0.024857932701706886, -0.12282953411340714, -0.30972570180892944, 1.10341215133667, -0.2851799726486206, -0.0182708241045475, 0.23409809172153473, 0.21252955496311188, 0.5486012101173401, 0.31634268164634705, 0.7756180167198181, 0.8105364441871643, 0.11077959835529327, 0.10331769287586212, 1.172319769859314, 0.31611067056655884, 0.29201558232307434, 1.238707423210144, -0.34074652194976807, 0.7065736651420593, 0.48661839962005615, -0.4411157965660095, 0.490620881319046, 0.18912632763385773, -0.030055828392505646, 0.3559817671775818, 0.42577308416366577, -0.06998389214277267, -0.6048353314399719, 0.18220023810863495, -0.3973191976547241, 0.220152348279953, 0.10297948867082596, -0.27562353014945984, -0.4686761498451233, -0.3434211015701294, -0.010880507528781891, 0.341248095035553, -0.19731353223323822, 0.4121238887310028, 0.19164659082889557, -0.7953609824180603, 0.9321973919868469, -0.1463150829076767, 0.5581552386283875, -0.42221468687057495, -0.37469857931137085, 0.004304585047066212, -0.0004513549502007663, 0.16510868072509766, -0.8122952580451965, 0.32889658212661743, -0.17920538783073425, -0.2272179126739502, 0.13303585350513458, 0.4179397523403168, -0.22458785772323608, -0.2586122155189514, 0.36677590012550354, 0.6212842464447021, 0.44059449434280396, -0.13353167474269867, -0.5921286344528198, -0.15475600957870483, -0.042688820511102676, -0.12800033390522003, 0.5470477938652039, 0.2602044343948364, -0.3151359260082245, 0.7949932813644409, 0.5112659931182861, 0.19605550169944763, -0.2644064426422119, -0.05150182545185089, 0.8427460193634033, -0.7115324139595032, -0.3865152597427368, -1.0851558446884155, -0.009770910255610943, 0.07418613880872726, -0.30091989040374756, 0.49578964710235596, 0.28382372856140137, 0.9414017200469971, -0.36772993206977844, 0.7439513802528381, 0.22910459339618683, 0.49601510167121887, -0.5501314997673035, 0.4331783950328827, -0.49200063943862915, 0.2614193558692932, -0.4291910231113434, -1.2069810628890991, 0.1153298020362854, 0.5319279432296753, -0.7135825753211975, 0.38111695647239685, 0.8969807624816895, 0.7653310298919678, -0.5522242784500122, -0.02897406928241253, 0.6218624711036682, 0.3592391312122345, 0.3197653889656067, 0.8751423358917236, 0.828144371509552, -0.19831973314285278, 0.3925943672657013, 0.21116547286510468, -0.10280215740203857, -0.01039191149175167, -1.039610505104065, -1.2373881340026855, -0.4766559898853302, -0.13753148913383484, 0.08546420186758041, 0.4593826234340668, 0.8859877586364746, 0.529329776763916, -0.814126193523407, 0.015308216214179993, -0.1276879459619522, -0.09077336639165878, -0.11824625730514526, -0.12230587005615234, 0.39359018206596375, 0.07991833984851837, -0.663571834564209, 0.20288428664207458, 0.013620964251458645, 0.1319166123867035, -0.14081057906150818, -0.11123678833246231, -0.08752387017011642, 0.30867961049079895, 0.46298953890800476, 0.3702183663845062, -1.1783860921859741, -0.602749228477478, -0.4519585371017456, 0.12862008810043335, -0.1734449714422226, 0.7818059921264648, -0.9270873665809631, 0.1942475438117981, 0.3091602623462677, 0.4121047556400299, 0.44963762164115906, 0.14979057013988495, 0.5411503314971924, -0.2553187906742096, 0.28211167454719543, -0.03560507670044899, 0.427000492811203, 0.19897466897964478, 0.19270698726177216, 0.3995530903339386, 0.41533344984054565, -0.4429425597190857, -0.6346248388290405, 0.43374359607696533, -0.4889200031757355, -0.57919842004776, 1.023390531539917, -0.5839223861694336, 0.18734365701675415, -0.3805001378059387, -0.0423007570207119, -0.047594957053661346, -0.1227540448307991, 0.9132371544837952, 0.8619227409362793, -0.2806917130947113, 0.10361780226230621, -0.5967177152633667, 0.17248070240020752, 0.7704692482948303, -0.6659177541732788, -0.04160236567258835, 0.42141997814178467, 0.6746239066123962, 0.07646653056144714, 0.5281834602355957, 0.08618388324975967, 0.5783789753913879, 0.16172237694263458, -0.19125965237617493, -0.1804952472448349, 0.0880022644996643, -0.16468356549739838, 0.07037536799907684, 0.2854706645011902, 0.1480029672384262 ]
http://arxiv.org/abs/2402.08939v3
http://arxiv.org/pdf/2402.08939v3
Premise Order Matters in Reasoning with Large Language Models
2024-02-14T04:50:18
2024-05-28T04:32:09
Xinyun Chen, Ryan A. Chi, Xuezhi Wang, Denny Zhou
cs.AI
cs.AI, cs.CL
Large language models (LLMs) have accomplished remarkable reasoning performance in various domains. However, in the domain of reasoning tasks, we discover a frailty: LLMs are surprisingly brittle to the ordering of the premises, despite the fact that such ordering does not alter the underlying task. In particular, we observe that LLMs achieve the best performance when the premise order aligns with the context required in intermediate reasoning steps. For example, in deductive reasoning tasks, presenting the premises in the same order as the ground truth proof in the prompt (as opposed to random ordering) drastically increases the model's accuracy. We first examine the effect of premise ordering on deductive reasoning on a variety of LLMs, and our evaluation shows that permuting the premise order can cause a performance drop of over 30%. In addition, we release the benchmark R-GSM, based on GSM8K, to examine the ordering effect for mathematical problem-solving, and we again observe a significant drop in accuracy, relative to the original GSM8K benchmark.
[ 0.08107811212539673, -0.7022294998168945, 1.15664803981781, 0.5084338784217834, -0.26140910387039185, -0.13103991746902466, -0.12123292684555054, -0.5591795444488525, -0.3080163598060608, 0.6938809156417847, -0.0005040379473939538, -0.5693820714950562, -0.9489011764526367, 0.03114308789372444, 0.07505053281784058, 0.6307997703552246, 0.1214052066206932, 0.25442245602607727, -0.5206446051597595, -0.399809330701828, -0.1396356076002121, -0.7728608250617981, -0.4533771872520447, -0.8307915925979614, 0.3184259533882141, 0.3054097294807434, 1.0864713191986084, 0.8516423106193542, 0.6332626342773438, 0.3586116135120392, -0.562543511390686, 0.11828205734491348, -0.3924967050552368, 0.37408551573753357, -0.3450489938259125, -0.91911780834198, -0.6238301396369934, -0.06105779856443405, 0.38648638129234314, 0.9539992809295654, -0.229711651802063, 0.03910232335329056, -0.2772974669933319, 0.7464849352836609, -0.5413930416107178, 0.2359643280506134, -0.7361195683479309, -0.28156495094299316, -0.049132607877254486, -0.27827388048171997, -0.7137082815170288, -0.33250683546066284, 0.31303805112838745, -0.22277042269706726, 0.09520675241947174, 0.25495800375938416, 0.6743625998497009, 0.28334763646125793, -0.2682906985282898, -0.08257356286048889, -0.9328362941741943, 0.87201988697052, -0.7843819856643677, 0.3385046124458313, 0.19885344803333282, -0.025969764217734337, -0.5467166900634766, -0.5346903800964355, -0.2632462978363037, -0.2659013271331787, 0.134617879986763, -0.032403651624917984, 0.10692866146564484, 0.36388707160949707, 0.6414157748222351, 0.3015440106391907, -0.44459429383277893, 0.18288756906986237, -0.20884260535240173, 0.18728996813297272, 0.5544442534446716, 0.36620405316352844, 0.19271400570869446, -0.22670885920524597, -0.3088044226169586, -0.0028654092457145452, -1.22496497631073, 0.08499737828969955, 0.12035331130027771, 0.3442085385322571, 0.2600752115249634, 0.7948009371757507, -0.2865143120288849, 0.7882322669029236, 0.1980719119310379, -0.5046820044517517, 0.11856719106435776, -0.05735134705901146, -0.42707327008247375, 0.27060794830322266, 0.6822518706321716, 0.2391280233860016, 0.05813556909561157, 0.11561597138643265, -0.28481781482696533, -0.00434328755363822, 0.04504359886050224, -0.7086644768714905, -0.26698610186576843, 0.32895517349243164, -0.35121825337409973, 0.10843288153409958, -0.0034366229083389044, -0.029283152893185616, -0.45742306113243103, -0.43468955159187317, 0.3431903123855591, -0.36113885045051575, -0.09445447474718094, 0.4178392291069031, 0.31568291783332825, 0.08620585501194, 0.5931054949760437, -0.9427997469902039, 0.4405175745487213, 0.9696784615516663, 0.5104038119316101, -0.01665446162223816, -0.37804529070854187, -0.37988755106925964, 0.1899484395980835, -0.57423335313797, 0.8040322661399841, -0.5291262865066528, -0.14654695987701416, -0.18966305255889893, -0.1513637751340866, -0.17990872263908386, -0.9603996872901917, 0.9949612021446228, -0.6538697481155396, -0.11132197082042694, -0.5486956238746643, -0.5921799540519714, -0.11148744076490402, -0.19410869479179382, -0.36429649591445923, 0.8830695152282715, -0.41214093565940857, -0.6536955833435059, 0.4734686017036438, -0.09221892803907394, -0.780362069606781, -0.08264701813459396, -0.25839927792549133, -0.41920205950737, 0.46547994017601013, -0.007075388450175524, 0.6363887190818787, -0.2691873013973236, 0.2164539098739624, -0.5586121082305908, -0.4821888506412506, 0.3484245836734772, -0.15894894301891327, 0.7252758145332336, 0.27912193536758423, -0.4932731091976166, -0.0808800458908081, -0.5428879857063293, 0.26466137170791626, 0.4237244427204132, -0.31897208094596863, -0.5724079012870789, 0.5516453385353088, -0.4146830141544342, 0.386397123336792, 0.04265199229121208, -0.2405998557806015, 0.1859118491411209, -0.6101261377334595, 0.5405575633049011, 0.6078773140907288, -0.10528206825256348, 0.6962451338768005, -0.187514528632164, 0.07909649610519409, 0.0021567444782704115, 0.1430072784423828, 0.15740056335926056, -0.6882111430168152, -0.4883514642715454, -0.07209624350070953, 0.13360106945037842, 0.7104582786560059, -0.13401906192302704, 0.05429869890213013, -0.37993502616882324, -0.2314491719007492, -0.012658432126045227, -0.05181720852851868, 0.373840868473053, 0.21142086386680603, 0.21750375628471375, 0.20392362773418427, -0.11468647420406342, -0.7883132696151733, -0.3182445764541626, -0.42185768485069275, 0.18869648873806, 0.20791949331760406, 0.29942286014556885, 0.15342415869235992, 0.7684733271598816, -0.7484760284423828, 0.20862117409706116, -0.4318864345550537, 0.18307511508464813, 0.5787035226821899, 0.22990168631076813, 0.43658682703971863, -1.1079145669937134, -0.09327548742294312, -0.13899728655815125, -0.6615238785743713, -0.1934717446565628, 0.2009711116552353, 0.01032811775803566, 0.3552914559841156, 0.32804179191589355, -1.1545066833496094, 0.21632729470729828, 0.19489870965480804, -0.06579724699258804, 0.7091938257217407, -0.34388071298599243, 0.16036856174468994, -0.912625789642334, -0.4270089864730835, -0.20110870897769928, -0.07686461508274078, -0.4732545018196106, -0.06455174833536148, -0.025020262226462364, -0.0928497463464737, -0.16344675421714783, 0.2667679488658905, -0.5113625526428223, -0.21358491480350494, -0.20924729108810425, 0.1477728635072708, 0.2094600647687912, -0.0029694847762584686, 0.04663549363613129, 0.72483229637146, 0.2915858030319214, -0.7182842493057251, 0.020220806822180748, 0.254429429769516, -0.535426139831543, 0.2628338038921356, -0.7474262118339539, 0.024159451946616173, 0.03197815269231796, 0.15679971873760223, -1.0661548376083374, -0.11562149971723557, 0.09173008054494858, -0.38100501894950867, 0.49290651082992554, -0.3783249258995056, -0.7079925537109375, -0.2548186182975769, 0.044557005167007446, 0.2508322596549988, 0.41620925068855286, -0.36964064836502075, 0.3995121717453003, 0.11317039281129837, -0.23799049854278564, -0.8784841299057007, -0.5615878105163574, 0.042025018483400345, -0.28603076934814453, -0.7687620520591736, 0.43299052119255066, 0.03664829954504967, -0.8238703012466431, 0.001990792341530323, -0.5217120051383972, -0.011849521659314632, 0.2054891735315323, 0.31914985179901123, 0.11485844105482101, -0.45285895466804504, 0.1962091624736786, 0.03288988769054413, -0.12741266191005707, 0.3467823565006256, -0.4365020990371704, 0.14505958557128906, -0.11778514087200165, -0.44468653202056885, 0.04763929918408394, 0.2050684690475464, 1.0611811876296997, -0.14839157462120056, 1.0293595790863037, -0.18990227580070496, -0.30582553148269653, -0.45057764649391174, -0.6350234746932983, 0.10260600596666336, -0.46420472860336304, 0.24799008667469025, -0.812519371509552, -0.6893442869186401, 0.5449604988098145, -0.2947172522544861, 0.018019968643784523, 0.44339442253112793, 0.5088670253753662, -0.22020652890205383, 1.15766179561615, 0.547091007232666, 0.03032328002154827, 0.32524237036705017, -0.036398015916347504, 0.6057748198509216, -0.5771315097808838, -0.16559350490570068, -0.6082045435905457, 0.20821423828601837, -0.3546193242073059, -0.3991031348705292, 0.16008201241493225, 0.5069810152053833, -0.22296881675720215, 0.19844025373458862, -0.29677069187164307, 0.7137780785560608, 0.08538326621055603, 0.16509674489498138, 0.547676146030426, 0.11399425566196442, -0.2193434238433838, -0.09578651189804077, -0.7873343229293823, -0.8106947541236877, 0.9376882910728455, 0.15043652057647705, 1.0129728317260742, 0.2370290607213974, 0.678736686706543, 0.013392064720392227, 0.1049303412437439, -0.7398987412452698, 0.762962281703949, -0.3640745282173157, -0.5241439342498779, -0.2543092966079712, -0.6292463541030884, -0.8557964563369751, 0.4122900366783142, 0.037727031856775284, -0.7306089997291565, 0.08826451748609543, -0.03724975511431694, -0.4302452802658081, 0.20056703686714172, -0.8751193284988403, 0.6539641618728638, -0.37964189052581787, -0.4681103825569153, -0.31563690304756165, -0.6987610459327698, 0.4077652096748352, 0.4224418103694916, 0.03818183392286301, -0.434251993894577, 0.30073627829551697, 0.5722050666809082, -0.6329649090766907, 0.5524099469184875, 0.021285496652126312, -0.32714420557022095, 0.3545234799385071, 0.25608181953430176, 0.7432588338851929, 0.14227478206157684, -0.21487604081630707, -0.03332296386361122, -0.18772020936012268, -0.4748982787132263, -0.7713804841041565, 0.7267832159996033, -0.8282008767127991, -1.1747019290924072, -0.4537213444709778, -0.43756136298179626, -0.3114875257015228, -0.02501930668950081, 0.5138452053070068, 0.8626617193222046, 0.10485068708658218, -0.02946178801357746, 1.2081162929534912, -0.022688500583171844, -0.0374453105032444, 0.42770928144454956, -0.03127015754580498, -0.37625986337661743, 0.6912412643432617, 0.5333623886108398, 0.7715567350387573, 0.6691644191741943, 0.2074185162782669, -0.44758880138397217, -1.1236904859542847, -0.3263532221317291, 0.36739128828048706, -1.2625744342803955, 0.05932917073369026, -0.8373118042945862, -0.13527417182922363, -0.4733285903930664, -0.1252002716064453, -0.37543171644210815, -0.5431504845619202, -0.085847869515419, -0.009920584037899971, 0.18996170163154602, 0.8339191675186157, 0.4124797582626343, 0.03291027992963791, -0.723034143447876, 0.32563644647598267, 0.20348520576953888, 0.19517236948013306, -0.28763142228126526, -0.6581507325172424, 0.05228116735816002, -0.257526695728302, -0.09100835025310516, -0.5548852682113647, -0.155767560005188, -0.262864351272583, 0.7169899940490723, 0.47627386450767517, 0.1904837042093277, 0.7200764417648315, -0.7624144554138184, 0.48446574807167053, 0.09033165872097015, -0.7868546843528748, 0.3933084011077881, -0.5566369891166687, 0.2698351740837097, 0.41265222430229187, 0.14506153762340546, -0.1392049491405487, -0.36590856313705444, -0.6508493423461914, -0.9304437041282654, 0.6717789173126221, 0.16671878099441528, 0.029051469638943672, 0.08058583736419678, 0.5297650694847107, -0.048629265278577805, 0.10464104264974594, -0.5653008222579956, -0.3932727575302124, 0.17165690660476685, -0.0771946981549263, -0.0837550014257431, -0.5842494964599609, -0.16496090590953827, -0.26607874035835266, 0.4750004708766937, -0.009946046397089958, 0.4106454849243164, 0.3306034505367279, -0.2312392145395279, -0.1972207874059677, 0.39326393604278564, 0.9811262488365173, 1.254685878753662, -0.2755908966064453, 0.4369059205055237, 0.09915012121200562, -0.3119734227657318, 0.35067373514175415, 0.12584498524665833, -0.10920937359333038, -0.17143847048282623, 0.5207335352897644, 0.6319807767868042, 0.3832046091556549, -0.49188315868377686, 0.39252111315727234, 0.19875246286392212, -0.18255987763404846, 0.02770853415131569, 0.07355999946594238, 0.20004902780056, 0.42975860834121704, 0.5210798382759094, 0.19742070138454437, 0.025286588817834854, -0.5151223540306091, 0.11714258790016174, 0.2890513837337494, 0.39294567704200745, -0.22834539413452148, 0.6261208057403564, -0.09926576167345047, -0.26766762137413025, 0.45253798365592957, -0.08915430307388306, -0.9580483436584473, 0.758763313293457, 0.8284866213798523, 0.7403398752212524, -0.20336854457855225, 0.2424987256526947, 0.09042008221149445, 0.5081836581230164, -0.632506787776947, 0.09554598480463028, 0.02363184653222561, -0.752765417098999, -0.7749421000480652, -0.5942468047142029, -0.7767710089683533, 0.08511783182621002, -0.3328166604042053, -0.02167677693068981, -0.6460791826248169, -0.23804402351379395, -0.11193280667066574, 0.1517581045627594, -0.09609264880418777, 0.36157503724098206, 0.26039963960647583, 0.5478203296661377, -0.8041329979896545, 0.468296617269516, 0.9028856158256531, 0.1255427449941635, -0.8524104952812195, 0.20597289502620697, -0.1507197916507721, -0.4332593083381653, 0.9455639719963074, 0.1549002230167389, -0.4984206557273865, -0.3617400825023651, -0.5293638706207275, -1.2756115198135376, 0.7915272116661072, 0.5711051225662231, -0.3895131051540375, 0.36328181624412537, 0.06520341336727142, 0.5612583756446838, -0.3085169494152069, 0.11159354448318481, 0.10581045597791672, 0.21519753336906433, 0.3885194659233093, -0.8169244527816772, 0.19671708345413208, 0.12318424135446548, -0.046373400837183, 0.567298412322998, -0.8788527250289917, 0.9038654565811157, -0.5977463722229004, -0.342110276222229, 0.0010075587779283524, 0.6252197027206421, 0.4494691789150238, 0.47936418652534485, 0.4092104732990265, 0.7543700933456421, 0.856839120388031, -0.3073144555091858, 0.9813066720962524, 0.10237017273902893, 0.2470114380121231, 1.1784483194351196, -0.888285756111145, 0.7760154008865356, 0.22429870069026947, -0.49508702754974365, 0.41758912801742554, 0.8313585519790649, 0.32883355021476746, 0.3802857995033264, 0.2963526248931885, -0.0798918679356575, -0.5782978534698486, 0.28235486149787903, -0.2883239686489105, 0.09402476996183395, 0.3781071901321411, -0.2006223201751709, -0.11199656128883362, -0.23159624636173248, 0.1570790410041809, 0.040077175945043564, -0.21905353665351868, 0.4451107978820801, 0.5028246641159058, -0.623580276966095, 0.8564797639846802, 0.14364905655384064, 0.008274706080555916, -0.4423823654651642, 0.10229630023241043, -0.038038477301597595, 0.44916456937789917, -0.3665464222431183, -0.8580008149147034, 0.2195674031972885, -0.33451902866363525, -0.6166132688522339, -0.33222758769989014, 0.7181618809700012, -0.07930199801921844, -0.2529517710208893, 0.5514184832572937, 0.548297107219696, 0.03030865080654621, -0.03544339910149574, -0.6846728920936584, 0.09662126004695892, -0.5722126364707947, -0.6489716172218323, 0.44686558842658997, 0.7406861186027527, -0.27188587188720703, 0.822516918182373, 0.5543845891952515, -0.12437572330236435, 0.15669392049312592, 0.11685118079185486, 0.8023131489753723, -0.5152157545089722, -0.2861330807209015, -1.011860966682434, 0.0005293210269883275, -0.03030712902545929, -0.20296461880207062, 0.8539727926254272, 0.41550612449645996, 0.5328596234321594, 0.18048253655433655, 0.34099477529525757, -0.036326952278614044, 0.05456841364502907, -0.828472375869751, 0.3882002830505371, -0.4699544608592987, 0.509068489074707, -0.3442904055118561, -1.2301307916641235, -0.4825986623764038, 0.36049339175224304, -0.9484213590621948, -0.05237146466970444, 0.9581705331802368, 0.5407283902168274, 0.038676876574754715, 0.075406514108181, 0.5086401104927063, 0.5256713032722473, -0.019277626648545265, 0.5062735080718994, 1.058098554611206, -0.3342568874359131, 0.42718228697776794, -0.15508855879306793, 0.006385697517544031, -0.17426104843616486, -0.6404010653495789, -0.9159438610076904, -0.21340982615947723, -0.2973417639732361, -0.6001090407371521, 0.20041850209236145, 1.0180703401565552, 0.5271596908569336, -0.7024845480918884, -0.16675439476966858, -0.057199180126190186, 0.6097482442855835, -0.42072489857673645, -0.21392004191875458, 0.46283966302871704, -0.37973418831825256, -0.5472188591957092, 0.5115987658500671, 0.5483012795448303, -0.09417639672756195, 0.3672966957092285, 0.03530459105968475, -0.18511730432510376, 0.2236180603504181, 0.859316349029541, -0.03207884356379509, -1.0471316576004028, -0.3740083575248718, 0.14704370498657227, -0.4352167248725891, 0.4034917950630188, 0.9390797019004822, -0.3860255479812622, -0.013115908950567245, 0.7394582033157349, 0.5977749228477478, 0.3100373148918152, 0.2921343743801117, 0.4240542948246002, -0.10484529286623001, -0.08700257539749146, 0.19547559320926666, 0.4942740499973297, 0.14312365651130676, -0.5270798206329346, 0.3306798040866852, 0.5167596936225891, -0.8107953071594238, -0.8885213732719421, 0.38242974877357483, -1.0406980514526367, -0.45185786485671997, 1.2254818677902222, -0.19714215397834778, -0.41588476300239563, -0.29845693707466125, 0.04081881791353226, -0.23096387088298798, -0.2903531491756439, 0.594985842704773, 0.9350849390029907, -0.2761513292789459, -0.11604917049407959, -0.4849143326282501, 0.355488121509552, 0.9206223487854004, -0.4844585955142975, 0.38371387124061584, 0.3843441605567932, 0.5400097370147705, 0.31809207797050476, 0.6484153270721436, -0.06464087218046188, 0.09734295308589935, -0.1593274176120758, -0.47659775614738464, 0.26657792925834656, -0.526505172252655, -0.2932842969894409, 0.45538249611854553, 0.39905238151550293, 0.20216229557991028 ]
http://arxiv.org/abs/2402.08925v1
http://arxiv.org/pdf/2402.08925v1
MaxMin-RLHF: Towards Equitable Alignment of Large Language Models with Diverse Human Preferences
2024-02-14T03:56:27
2024-02-14T03:56:27
Souradip Chakraborty, Jiahao Qiu, Hui Yuan, Alec Koppel, Furong Huang, Dinesh Manocha, Amrit Singh Bedi, Mengdi Wang
cs.CL
cs.CL, cs.AI, cs.LG, cs.RO
Reinforcement Learning from Human Feedback (RLHF) aligns language models to human preferences by employing a singular reward model derived from preference data. However, such an approach overlooks the rich diversity of human preferences inherent in data collected from multiple users. In this work, we first derive an impossibility result of alignment with single reward RLHF, thereby highlighting its insufficiency in representing diverse human preferences. To provide an equitable solution to the problem, we learn a mixture of preference distributions via an expectation-maximization algorithm and propose a MaxMin alignment objective for policy learning inspired by the Egalitarian principle in social choice theory to better represent diverse human preferences. We elucidate the connection of our proposed approach to distributionally robust optimization and general utility RL, thereby highlighting the generality and robustness of our proposed solution. We present comprehensive experimental results on small-scale (GPT-2) and large-scale language models (with Tulu2-7B) and show the efficacy of the proposed approach in the presence of diversity among human preferences. Our algorithm achieves an average improvement of more than 16% in win-rates over conventional RLHF algorithms and improves the win-rate (accuracy) for minority groups by over 33% without compromising the performance of majority groups, showcasing the robustness and fairness of our approach. We remark that our findings in this work are not only limited to language models but also extend to reinforcement learning in general.
[ -0.34967684745788574, -0.665188729763031, 0.24813559651374817, 0.016268344596028328, 0.044709183275699615, 0.1719161570072174, -0.5996367931365967, -0.2898368835449219, 0.3493694067001343, 0.20857331156730652, -0.5265755653381348, -0.35888978838920593, -0.6320248246192932, -0.20228604972362518, 0.07941314578056335, 1.0377966165542603, -0.01773274689912796, -0.1692596673965454, 0.017924943938851357, -0.6245108842849731, -0.21999330818653107, -0.6082510948181152, -0.4638417959213257, -0.5434134602546692, 0.7694741487503052, 0.5669811964035034, 1.0479671955108643, 1.106549620628357, 0.20871183276176453, 0.20991939306259155, 0.09027757495641708, 0.18297381699085236, -0.8277563452720642, 0.23731981217861176, -0.16310790181159973, -0.30041876435279846, -0.13651272654533386, -0.16407154500484467, 0.644867479801178, 0.5409122109413147, -0.7808544039726257, 0.025031760334968567, 0.10316205024719238, 0.7001439929008484, -0.686335563659668, -0.04542672261595726, -0.3517366945743561, 0.39115628600120544, -0.0042253099381923676, 0.013301555067300797, -0.27783316373825073, -0.5259077548980713, 0.2217862457036972, -0.744156002998352, -0.13704246282577515, 0.310195654630661, 1.0971393585205078, 0.24872718751430511, -0.5796452760696411, -0.02055123634636402, -0.5347959995269775, 1.1079213619232178, -0.43588191270828247, 0.42512309551239014, 0.25783246755599976, 0.4398694932460785, -0.10158378630876541, -0.01900707185268402, -0.47244149446487427, -0.13794095814228058, 0.1325627714395523, 0.23289786279201508, 0.09565524011850357, 0.23178385198116302, 0.18789197504520416, 0.09674795717000961, -0.7189511060714722, 0.387580007314682, 0.006723153870552778, -0.46351179480552673, 0.6717538833618164, 0.22616979479789734, 0.18603548407554626, 0.11483146250247955, -0.47556549310684204, -0.41406166553497314, -0.5693609714508057, 0.21401596069335938, 0.835119903087616, 0.3999903202056885, -0.27637678384780884, 0.5237709879875183, -0.04540824145078659, 0.6998581290245056, -0.02787768468260765, -0.2727307081222534, 0.2632763385772705, -0.13998639583587646, -0.18066315352916718, -0.15445856750011444, 0.7932257652282715, 0.3515203893184662, 0.28093066811561584, 0.09274102002382278, -0.3329334855079651, 0.042933475226163864, -0.07763034850358963, -0.408221960067749, 0.020105447620153427, 0.05779607221484184, -0.402357816696167, -0.4553622603416443, 0.03468828275799751, -0.8798771500587463, -0.44136086106300354, -0.39244481921195984, 0.21852493286132812, 0.028845222666859627, -0.6170911192893982, 0.0331096276640892, 0.08846510201692581, 0.5022763609886169, 0.2618371248245239, -1.299028992652893, 0.3134365975856781, 0.7452977299690247, 0.4442198872566223, -0.46646180748939514, -0.6434949040412903, -0.5592716932296753, 0.1464722901582718, -0.13336916267871857, 0.5968039035797119, -0.5484905242919922, -0.20963846147060394, 0.2861950993537903, -0.21782825887203217, -0.07009351998567581, -0.610405445098877, 0.7105545401573181, -0.39660629630088806, 0.2764609456062317, -0.41233834624290466, -0.509442150592804, -0.048632409423589706, 0.17093732953071594, -0.7733055353164673, 0.8307924866676331, 0.23615886270999908, -0.6555835008621216, 0.6744592189788818, -0.6080794334411621, -0.4801667332649231, -0.25200483202934265, -0.21538648009300232, -0.5205954313278198, -0.11378327012062073, 0.15997357666492462, 0.050388846546411514, -0.12131679058074951, 0.6579787135124207, -0.7578655481338501, -0.18251316249370575, 0.3571193218231201, -0.5363278388977051, 0.7884318232536316, 0.46612346172332764, -0.34097862243652344, 0.6087387204170227, -0.33584660291671753, -0.16884762048721313, 0.2312593311071396, -0.4740923047065735, -0.014165056869387627, -0.08410283178091049, 0.3780262768268585, 0.2087598741054535, 0.19613958895206451, -0.31841418147087097, 0.07910310477018356, -0.21405386924743652, 0.17506830394268036, 1.458764672279358, -0.5487528443336487, 0.6438251733779907, -0.5999059081077576, 0.6916026473045349, -0.08876779675483704, 0.45229771733283997, 0.37099167704582214, -0.21706253290176392, -0.40104591846466064, -0.3695704936981201, 0.3742905557155609, 0.5260235667228699, -0.08571130037307739, 0.5658427476882935, -0.2025521993637085, 0.24145182967185974, -0.5569007992744446, 0.31462541222572327, 0.3702457547187805, 0.40345415472984314, 0.0323786735534668, -0.29951223731040955, -0.6122124195098877, -1.0338482856750488, -0.3226795494556427, -0.2628403306007385, 0.41565605998039246, 0.5578005909919739, 0.09753963351249695, -0.2434185892343521, 0.7324357032775879, -0.289204478263855, 0.006076376419514418, -0.3698212802410126, -0.3258800208568573, 0.24039804935455322, 0.31582361459732056, 0.14968734979629517, -0.8760663270950317, -0.5626921653747559, 0.20439809560775757, -0.5568788051605225, -0.11333741992712021, 0.1409161537885666, -0.5583999156951904, 0.3037325441837311, -0.13245585560798645, -0.24161826074123383, 0.005436267238110304, 0.7162889242172241, -0.29681938886642456, 0.4080886244773865, -0.26024356484413147, 0.02982083149254322, -0.9285733103752136, -0.06760172545909882, 0.20871305465698242, -0.6133110523223877, -0.40702030062675476, 0.18645870685577393, 0.16567115485668182, 0.12459675222635269, -0.2883942127227783, 0.6200493574142456, -0.0841427817940712, -0.2079516500234604, -0.2043217271566391, 0.25686952471733093, -0.2922484278678894, 0.769959032535553, -0.06113376095890999, 0.4734610915184021, 0.3836725354194641, -0.5903424620628357, 0.4819370210170746, 0.07852654159069061, 0.09149695932865143, 0.7509037256240845, -0.4547925293445587, -0.08622855693101883, -0.28788095712661743, 0.1292029619216919, -0.7636210322380066, -0.6276811361312866, 0.35459625720977783, -0.4145076274871826, 0.3633931577205658, 0.1562371850013733, -0.1805015206336975, -0.03249165043234825, -0.3635423183441162, 0.39761897921562195, 0.5175023674964905, -0.735342800617218, 0.5479603409767151, 0.8722440004348755, -0.01870729960501194, -1.1160975694656372, -0.40848803520202637, -0.2257581651210785, -0.4329463243484497, -0.5521330237388611, 0.10144313424825668, -0.0548061728477478, -0.17057089507579803, 0.03735046461224556, -0.09260835498571396, 0.1081073060631752, 0.21716085076332092, 0.04142533242702484, 0.5184534788131714, 0.10829109698534012, 0.09898778796195984, 0.10820971429347992, -0.18710888922214508, -0.46975114941596985, -0.5170466303825378, 0.5275852680206299, -0.17396672070026398, -0.5087185502052307, -0.16331356763839722, 0.36698347330093384, 0.3001559376716614, -0.06755547225475311, 0.5463874936103821, 0.6128207445144653, -0.23089757561683655, -0.14291618764400482, -0.4761086106300354, 0.011650612577795982, -0.4011894166469574, 0.6089792251586914, -0.1261502355337143, -1.2458884716033936, 0.48703187704086304, 0.17307926714420319, 0.5106114745140076, 0.42393365502357483, 0.621487557888031, 0.04329334571957588, 1.2313114404678345, 0.8784432411193848, -0.40915706753730774, 0.6669538021087646, 0.23900945484638214, -0.06306183338165283, -0.6331433653831482, -0.07373063266277313, -0.4036661684513092, -0.45946204662323, -0.5591063499450684, 0.05348607152700424, 0.2034182846546173, -0.023457342758774757, -0.6498058438301086, 0.14056292176246643, -0.3952135145664215, 0.44009026885032654, 0.5483142137527466, 0.12653543055057526, 0.1274416148662567, 0.2637263536453247, -0.3787316679954529, -0.10952922701835632, -0.8496981263160706, -0.19482140243053436, 1.3106226921081543, 0.4300057590007782, 0.9181653261184692, 0.4672749936580658, 0.982644259929657, 0.4380182921886444, 0.4693070352077484, -0.7248942255973816, 0.09294208884239197, 0.14240474998950958, -0.4474565088748932, -0.7978586554527283, -0.7451669573783875, -1.117666244506836, 0.6394707560539246, -0.22661232948303223, -0.5951889753341675, 0.13279297947883606, 0.3130249083042145, -0.21405450999736786, 0.12291019409894943, -0.600842297077179, 0.9521794319152832, -0.42135515809059143, -0.42500337958335876, -0.30035459995269775, -0.7356972098350525, 0.562322199344635, 0.15183395147323608, 0.5276449918746948, -0.1688062846660614, -0.10173813998699188, 0.7321858406066895, -0.26002228260040283, 0.5222371220588684, -0.2351333498954773, -0.23161038756370544, -0.2307431548833847, -0.22493809461593628, 0.6843788027763367, -0.08247458189725876, 0.006356301251798868, -0.37937742471694946, -0.20326538383960724, -0.8164442777633667, -0.48311352729797363, 0.6380279660224915, -1.1319254636764526, -0.47284772992134094, -0.45691728591918945, -0.6415935158729553, -0.11528508365154266, 0.021790826693177223, 0.025669250637292862, 0.27678489685058594, -0.21832004189491272, -0.07341253012418747, 0.9058417081832886, -0.37640923261642456, 0.21883830428123474, 0.1614370048046112, -0.6169047355651855, -0.8739867806434631, 1.0694342851638794, -0.2628108263015747, 0.5576254725456238, 0.4490906596183777, 0.4067768156528473, -0.7045016884803772, -0.153425931930542, -0.5681679248809814, 0.28011777997016907, -0.8093229532241821, 0.08999622613191605, -0.5568604469299316, 0.17476384341716766, -0.41327035427093506, -0.14784584939479828, -0.12800095975399017, -0.3140396177768707, 0.021557817235589027, -0.18551228940486908, -0.09686872363090515, 0.44534239172935486, -0.4149700701236725, 0.0700594112277031, -0.5244260430335999, 0.26219984889030457, 0.47904229164123535, 0.35211870074272156, -0.027345793321728706, -0.6126090884208679, -0.25313305854797363, 0.002449873136356473, -0.2456245869398117, -0.7833172678947449, 0.2591377794742584, 0.2484457641839981, 1.001628041267395, 0.4131282866001129, 0.029797082766890526, 0.5022940635681152, -0.05040936544537544, 0.4519781470298767, 0.6285184025764465, -0.7596815824508667, 0.09589489549398422, -0.2360488325357437, 0.0995907336473465, 0.6027783751487732, 0.14538869261741638, -0.8557630181312561, -0.27529171109199524, -0.5144456624984741, -0.8132749199867249, 0.546542763710022, -0.23749221861362457, 0.0886957049369812, 0.2885668873786926, -0.12610499560832977, 0.30061009526252747, 0.11967938393354416, -0.8801358342170715, -0.4322901666164398, -0.24076148867607117, -0.5608736872673035, 0.04216606169939041, -0.049266424030065536, -0.5279039740562439, -0.012002612464129925, 0.7175565958023071, -0.2728642225265503, 0.12331148982048035, -0.0822523757815361, -0.3438631594181061, -0.3854030668735504, 0.5055862069129944, 0.8205777406692505, 0.7449238300323486, -0.00310610793530941, 0.045199088752269745, 0.039788682013750076, -0.24689385294914246, 0.5091114044189453, 0.09219487756490707, -0.2029741108417511, -0.3972444534301758, -0.021427525207400322, 0.9938836693763733, 0.10351767390966415, -0.704230546951294, 0.6010939478874207, -0.21889621019363403, -0.45769989490509033, -0.019466880708932877, 0.08813527226448059, -0.014030109159648418, 0.25570303201675415, 0.2643188238143921, -0.03953137621283531, -0.12057442963123322, -0.47709694504737854, 0.31499457359313965, 0.5646951198577881, -0.583353579044342, -0.04710932821035385, 0.5576971173286438, -0.021038956940174103, -0.31436094641685486, 0.2622993290424347, -0.21258625388145447, -0.6307699680328369, 0.5249671339988708, 0.5911046862602234, 0.8408780694007874, -0.16357280313968658, 0.4619344472885132, 0.3098093569278717, 0.1817893087863922, -0.3050691485404968, 0.192661851644516, -0.14417147636413574, -0.8957246541976929, -0.4404345452785492, -0.7039085030555725, -0.5348934531211853, -0.3550749719142914, -0.5826817750930786, -0.03268037736415863, -0.5022080540657043, -0.15737003087997437, -0.45684489607810974, -0.14026862382888794, -0.6198657751083374, -0.20840704441070557, 0.06142733246088028, 0.18877828121185303, -0.8306373357772827, 0.7502120137214661, 0.5634661912918091, -0.2654092013835907, -1.0748670101165771, -0.1403569132089615, 0.18400952219963074, -0.8782353401184082, 0.39613163471221924, -0.12378453463315964, 0.11170461773872375, -0.11486225575208664, -0.5613073110580444, -0.8355953097343445, 0.9491044878959656, 0.5074382424354553, -0.5503289699554443, 0.15226656198501587, -0.0761076882481575, 0.05485919490456581, -0.36616677045822144, 0.36117371916770935, 0.42788371443748474, 0.6203956604003906, 0.05994584411382675, -0.9716611504554749, 0.021429840475320816, -0.048639509826898575, -0.018076494336128235, 0.4548875391483307, -0.7561387419700623, 0.5420482754707336, -0.26144644618034363, -0.3117925822734833, -0.21928824484348297, 0.7863613367080688, 0.6899137496948242, 0.04703827574849129, 0.696235179901123, 0.8319273591041565, 1.0716639757156372, 0.11743080615997314, 0.9206405282020569, -0.07153954356908798, 0.7711716890335083, 0.9215164184570312, -0.42502811551094055, 0.43019819259643555, 0.44979289174079895, -0.5546782612800598, 0.12869364023208618, 0.7218765616416931, 0.3030463457107544, 0.5798360705375671, 0.35783153772354126, -0.23205789923667908, -0.3266070783138275, -0.16996099054813385, -0.34242016077041626, -0.13557375967502594, -0.027682805433869362, -0.0898764580488205, -0.253587543964386, -0.04163332283496857, -0.16599613428115845, 0.2337600141763687, -0.08917215466499329, 0.7680625915527344, 0.00773216038942337, -0.7266350984573364, 0.580474317073822, -0.004644694272428751, 1.064661979675293, -0.5004681944847107, 0.08129943907260895, -0.2801676392555237, 0.05922848358750343, -0.19704768061637878, -0.6759129166603088, -0.04407810419797897, -0.29032760858535767, -0.07656755298376083, -0.07958293706178665, 0.46721217036247253, -0.6287519931793213, -0.027638670057058334, 0.33477866649627686, 0.4048599898815155, -0.10585585981607437, 0.5461392402648926, -0.8098316788673401, 0.017580736428499222, 0.2839418351650238, -0.12895892560482025, 0.7307508587837219, 0.17659510672092438, 0.14411771297454834, 0.5877971053123474, 0.6695390939712524, 0.19120091199874878, 0.17575395107269287, 0.15097926557064056, 0.4277579188346863, -0.6296642422676086, -0.7172303199768066, -0.9330602288246155, 0.25458723306655884, -0.1763443797826767, -0.33655938506126404, 0.3220843970775604, 0.38835999369621277, 0.9651586413383484, 0.22237136960029602, 1.023315668106079, 0.013432182371616364, 0.2703301012516022, -0.3014785945415497, 0.3166625499725342, -0.5421700477600098, 0.10292690992355347, -0.16430313885211945, -1.046051263809204, -0.313793420791626, 0.5631914734840393, 0.08986649662256241, -0.03846873342990875, 0.6208367943763733, 0.8729814887046814, -0.11050232499837875, -0.011301863938570023, 0.545187771320343, -0.3651798665523529, 0.42934733629226685, 0.8445007801055908, 0.8972361087799072, 0.06477262824773788, 0.5331253409385681, -0.08696439862251282, -0.3917020559310913, -0.22885696589946747, -0.6911322474479675, -0.4167953431606293, -0.32515454292297363, -0.0369468629360199, -0.4663684368133545, 0.15180157124996185, 1.6146483421325684, 0.5790278911590576, -0.75838303565979, -0.542410135269165, -0.0036077918484807014, 0.602713406085968, -0.4064500629901886, -0.22647607326507568, 0.3550349473953247, -0.352995902299881, -0.5279277563095093, -0.15357597172260284, 0.33685147762298584, -0.19565927982330322, -0.2742157578468323, -0.8663085103034973, -0.09361128509044647, -0.07312089949846268, 0.30561739206314087, 0.6795265078544617, -0.7293757796287537, -0.3007681667804718, -0.012810470536351204, -0.39846134185791016, 0.15676961839199066, 0.7799567580223083, -0.16272518038749695, 0.3037690222263336, 0.4763299524784088, 1.1003375053405762, 0.24044370651245117, 0.025957243517041206, 0.710158109664917, -0.2620256245136261, -0.009229112416505814, 0.11997032165527344, 0.4488360583782196, 0.28268083930015564, -0.2256537824869156, 0.2803099453449249, 0.2664296329021454, -0.8407068252563477, -0.780365526676178, 0.6817371249198914, -0.8882003426551819, 0.03874268755316734, 1.2542121410369873, -0.13367511332035065, -0.30052822828292847, -0.12181860208511353, -0.1593114137649536, 0.4340967833995819, -0.8721508383750916, 0.6416864395141602, 0.7302960157394409, -0.02702816016972065, -0.37159067392349243, -0.46102091670036316, 0.29646018147468567, 0.7898330688476562, -0.7408942580223083, 0.1697886437177658, 0.6524603366851807, 0.17544390261173248, -0.3386198878288269, 0.687155544757843, -0.13858382403850555, 0.38879790902137756, -0.439585417509079, 0.04020142927765846, 0.05925139784812927, -0.12769374251365662, -0.7268737554550171, 0.23960672318935394, 0.44503217935562134, 0.08027515560388565 ]
http://arxiv.org/abs/2403.00774v2
http://arxiv.org/pdf/2403.00774v2
Regional inflation analysis using social network data
2024-02-14T02:33:17
2024-03-14T11:34:28
Vasilii Chsherbakov, Ilia Karpov
q-fin.ST
q-fin.ST, cs.CL, cs.SI
Inflation is one of the most important macroeconomic indicators that have a great impact on the population of any country and region. Inflation is influenced by range of factors, one of which is inflation expectations. Many central banks take this factor into consideration while implementing monetary policy within the inflation targeting regime. Nowadays, a lot of people are active users of the Internet, especially social networks. There is a hypothesis that people search, read, and discuss mainly only those issues that are of particular interest to them. It is logical to assume that the dynamics of prices may also be in the focus of user discussions. So, such discussions could be regarded as an alternative source of more rapid information about inflation expectations. This study is based on unstructured data from Vkontakte social network to analyze upward and downward inflationary trends (on the example of the Omsk region). The sample of more than 8.5 million posts was collected between January 2010 and May 2022. The authors used BERT neural networks to solve the problem. These models demonstrated better results than the benchmarks (e.g., logistic regression, decision tree classifier, etc.). It makes possible to define pro-inflationary and disinflationary types of keywords in different contexts and get their visualization with SHAP method. This analysis provides additional operational information about inflationary processes at the regional level The proposed approach can be scaled for other regions. At the same time the limitation of the work is the time and power costs for the initial training of similar models for all regions of Russia.
[ -0.615432620048523, -0.8646761775016785, 0.24770772457122803, 0.40608182549476624, -0.5047888159751892, -0.3440658152103424, -0.2455262541770935, -0.30873602628707886, 0.591384768486023, 0.351331502199173, -0.38273945450782776, -0.40523239970207214, -0.4627988934516907, -0.3421083986759186, -0.28117549419403076, 0.7443215250968933, 0.18437986075878143, 0.037234529852867126, 0.07695462554693222, 0.4631882309913635, -0.034344468265771866, -0.519690752029419, -0.8322173357009888, -0.2888602316379547, 0.46820947527885437, 0.38829541206359863, 0.22920596599578857, 0.5528210997581482, 0.3619112968444824, 0.43828409910202026, -0.17306439578533173, -0.11421583592891693, -0.5483458638191223, -0.062224891036748886, 0.22157607972621918, -0.12156170606613159, -0.12397927790880203, -0.39868441224098206, 0.8038586378097534, 0.4542459547519684, -0.00859765149652958, 0.3077284097671509, 0.19235455989837646, 0.8570694327354431, -0.44290891289711, 0.05727876350283623, -0.6061939001083374, -0.16583247482776642, -0.3513909578323364, -0.36409279704093933, 0.22841845452785492, -0.5879727005958557, 0.4457263648509979, 0.025019239634275436, 0.4005909562110901, -0.2805815041065216, 0.9290181994438171, -0.36129146814346313, -0.40094685554504395, -0.3607008159160614, -0.7946127653121948, 0.6076059341430664, -0.6455673575401306, 0.1947428435087204, 0.26125368475914, 0.3601095378398895, -0.20672792196273804, -0.6081311702728271, -0.4782285988330841, 0.2645227909088135, -0.1014009341597557, 0.13646931946277618, -0.27701982855796814, -0.29235538840293884, -0.1979418843984604, 0.32047024369239807, -0.11614049226045609, -0.1231519877910614, -0.4863734841346741, -0.08538351953029633, 0.32461869716644287, -0.09830458462238312, -0.026455337181687355, -0.6558569669723511, -0.6479072570800781, -0.18087708950042725, -0.19042883813381195, 0.20185555517673492, 0.6534975171089172, 0.5893574357032776, -0.25432679057121277, 0.45875516533851624, -0.6020262837409973, 0.47035953402519226, 0.04218074679374695, 0.05357213318347931, 0.32588258385658264, -0.3847542107105255, 0.07254620641469955, 0.0563880130648613, 0.39713147282600403, 0.3532782793045044, 0.019540680572390556, 0.3035084903240204, -0.2114151120185852, -0.3052147626876831, 0.1443382054567337, -0.5424486398696899, -0.005740826949477196, 0.12547098100185394, -0.5820705890655518, -0.40617987513542175, 0.21098248660564423, -1.3769733905792236, -0.42444291710853577, -0.40755659341812134, 0.3698224723339081, -0.04732675850391388, -0.4015835225582123, 0.09979505836963654, -0.04545355960726738, -0.25310367345809937, 0.1646009385585785, -0.7088529467582703, 0.2623049020767212, 0.7761094570159912, 0.9825872182846069, 0.2674735188484192, -0.12123861163854599, 0.17911787331104279, -0.31430885195732117, -0.023690642789006233, 1.3557863235473633, -0.15964573621749878, -0.1286400407552719, 0.4970070719718933, -0.0012222009245306253, 0.07533619552850723, -0.21403327584266663, 0.6241943836212158, -0.5794745683670044, 0.04949503019452095, -0.50016850233078, -0.3860401213169098, -0.16888956725597382, 0.41201460361480713, -0.5094640851020813, 1.0158562660217285, 0.1385691612958908, -0.6772467494010925, 0.6588563919067383, -0.6351544260978699, -0.16780950129032135, -0.00722128339111805, 0.17924921214580536, -0.4228423833847046, 0.18121492862701416, 0.5427935123443604, 0.6204718947410583, -0.2706311047077179, 0.24575136601924896, -0.2565552592277527, -0.06758394837379456, 0.240280881524086, -0.28134068846702576, 0.5780113935470581, 0.2375158816576004, -0.3294028043746948, 0.02599465101957321, -0.6475630402565002, -0.09233509749174118, -0.10799809545278549, -0.3127322494983673, -0.5206823945045471, 0.08334217220544815, 0.2655162513256073, 0.21145708858966827, 0.33626168966293335, -0.5711571574211121, 0.3531469702720642, -0.323801726102829, 0.40205368399620056, 0.9667910933494568, 0.5868781805038452, 0.19517138600349426, -0.3416839838027954, 0.1909509152173996, 0.1824478656053543, 0.5745221972465515, 0.3272859454154968, -0.30356961488723755, -0.5839933753013611, -0.1143578588962555, 0.34342145919799805, 0.0471135750412941, -0.6177892684936523, 0.19683367013931274, -0.12424838542938232, -0.6751023530960083, -0.05480136722326279, -0.2279553860425949, -0.1205911710858345, 0.6440221667289734, -0.1262914091348648, 0.33074966073036194, -0.7025049328804016, -0.6883522868156433, 0.004710972774773836, -0.19216971099376678, 0.03858864679932594, 0.3149664103984833, 0.4548102915287018, 0.09280730783939362, 0.645317018032074, -0.5798608660697937, -0.3334941864013672, -0.08039097487926483, 0.338243693113327, 0.5607779622077942, 0.4135666787624359, 0.4590897858142853, -1.0618643760681152, -0.588010311126709, 0.02256854437291622, 0.08409863710403442, -0.22255223989486694, -0.1432555913925171, -0.35435062646865845, 0.38167688250541687, 0.1030425876379013, -0.07926380634307861, 0.3774116337299347, 0.5911726355552673, -0.4947276711463928, 0.3882529139518738, -0.5103853344917297, 0.4015345573425293, -1.1305932998657227, 0.10771232843399048, 0.43147221207618713, 0.10629290342330933, -0.730739176273346, -0.1828847974538803, -0.1199440062046051, -0.2146870195865631, -0.4296014606952667, 0.5125129818916321, -0.11117612570524216, -0.19475285708904266, -0.10715831071138382, 0.1694071888923645, -0.26845329999923706, 0.46341919898986816, 0.17620110511779785, 0.542861819267273, 0.42027929425239563, -0.41160500049591064, 0.38963794708251953, -0.06725165992975235, -0.7067160606384277, 0.16933639347553253, -0.6246699094772339, -0.14719600975513458, -0.0884585976600647, -0.046624667942523956, -1.1242281198501587, -0.0978783592581749, 0.09962998330593109, -0.4273429214954376, -0.038949158042669296, -0.11313505470752716, -0.5619511604309082, -0.32642078399658203, -0.23296889662742615, -0.04186883941292763, 0.47104790806770325, -0.3813919425010681, 0.40229180455207825, 0.45806047320365906, -0.14117036759853363, -0.5397709608078003, -0.18322713673114777, -0.2804665267467499, -0.45030927658081055, -0.7354239225387573, 0.06475026160478592, 0.27989116311073303, -0.29916298389434814, 0.1835835874080658, 0.10373308509588242, -0.2246599793434143, -0.21903757750988007, -0.09919627755880356, 0.1358889490365982, -0.07137291878461838, 0.3119408190250397, -0.21795745193958282, -0.24897298216819763, -0.21846294403076172, -0.4063182771205902, 0.8777629733085632, -0.3528347611427307, 0.1666567474603653, -0.1863042265176773, 0.10486631840467453, 0.3237442672252655, 0.07278244942426682, 0.878995954990387, 0.5875076651573181, -0.6064199209213257, -0.010769671760499477, -0.8211132884025574, -0.1184270903468132, -0.43380433320999146, 0.2448544204235077, -0.02819102816283703, -0.5537790656089783, 0.9413114190101624, -0.2909780740737915, -0.1866447776556015, 0.4736362397670746, 0.7263539433479309, -0.08409551531076431, 0.7022016048431396, 0.6192187666893005, -0.07166117429733276, 0.6454135775566101, -0.2586204707622528, 0.013720165938138962, -0.4470455050468445, -0.351123183965683, -0.8902840614318848, -0.6159433722496033, -0.578950822353363, -0.1666986495256424, 0.7501747608184814, 0.10724598914384842, -0.052732281386852264, 0.0737328827381134, -0.3657216727733612, 0.43411803245544434, 0.46098828315734863, 0.21348530054092407, -0.19772633910179138, 0.3748510777950287, 0.08307937532663345, -0.05972977355122566, -0.5706822872161865, -0.14806310832500458, 0.8894186019897461, 0.2236160784959793, 0.28801771998405457, 0.11660663783550262, 0.46071845293045044, 0.656190812587738, 0.07035616040229797, -0.419479101896286, 0.20656435191631317, -0.3398040533065796, -0.7532839775085449, -0.49284854531288147, -0.5204318165779114, -0.907650887966156, 0.01891391910612583, -0.6596168279647827, -1.0195178985595703, 0.6225963234901428, 0.182824969291687, -0.27943775057792664, 0.4739636480808258, -0.4677548408508301, 0.7820389270782471, -0.05581365525722504, -0.21913278102874756, -0.13104388117790222, -0.3051093816757202, 0.2082863748073578, -0.11584053933620453, 0.11556588858366013, -0.26024457812309265, 0.06613646447658539, 0.5764623880386353, -0.3926364779472351, 0.8176752328872681, -0.42151108384132385, 0.37274622917175293, 0.37231385707855225, -0.38997796177864075, 0.4694046676158905, -0.16317430138587952, -0.18577633798122406, 0.3747408092021942, 0.13303276896476746, -0.7659875750541687, -0.5645356178283691, 0.9380596876144409, -1.1697441339492798, -0.11099136620759964, -0.3451739251613617, -0.23856648802757263, -0.06714142858982086, 0.19701643288135529, 0.31356358528137207, 0.8139029741287231, -0.007930445484817028, 0.23482532799243927, 0.32983919978141785, 0.009262220934033394, 0.283248633146286, 0.3228328824043274, -0.3826564848423004, -0.5255640745162964, 0.8811892867088318, 0.4567588269710541, 0.08316601067781448, 0.34652256965637207, 1.093637228012085, -0.48982304334640503, -0.39253270626068115, -0.15319274365901947, 0.3873419165611267, -0.7581009268760681, -0.06531760841608047, -0.2697453796863556, 0.18897542357444763, -0.8174237012863159, -0.24651119112968445, -0.17602194845676422, -0.3112729489803314, -0.14993250370025635, 0.028682712465524673, 0.3220677375793457, 0.6943802833557129, -0.49675145745277405, 0.5278131365776062, -0.585220217704773, 0.017627958208322525, 0.1395246535539627, 0.3247852623462677, 0.13291265070438385, -0.1552703082561493, -0.38877516984939575, -0.013598699122667313, -0.03570723906159401, -0.8403382301330566, 0.42172732949256897, -0.05963604152202606, 0.32983601093292236, 0.7991167306900024, 0.2830153703689575, 1.0308282375335693, -0.02578834258019924, 0.6415854692459106, 0.0034969511907547712, -0.8251703977584839, 0.21098409593105316, -0.46826526522636414, 0.23818399012088776, 0.46688833832740784, 0.491900771856308, -1.1214892864227295, 0.10927091538906097, -0.7596031427383423, -0.9828454852104187, 0.6592907309532166, 0.12633727490901947, 0.15782642364501953, -0.04086785390973091, 0.6828063130378723, 0.05283842980861664, 0.2630423307418823, -0.4829826056957245, -0.138519749045372, -0.18024753034114838, 0.021938636898994446, -0.046911321580410004, -0.6392295360565186, 0.13353656232357025, -0.16844989359378815, 0.823726236820221, 0.13426826894283295, 0.48281484842300415, 0.40681102871894836, 0.5843369364738464, -0.3769976496696472, -0.015504051931202412, 1.068284511566162, 0.8052670359611511, -0.2933284640312195, 0.06308680772781372, -0.13766399025917053, -0.431860089302063, -0.26585283875465393, -0.10303479433059692, -0.24605023860931396, -0.036877136677503586, 0.21848388016223907, 0.566859781742096, 0.0766901820898056, -0.4044708013534546, 0.3951130509376526, -0.2210734486579895, -0.2284681648015976, -0.96063232421875, -0.5173729062080383, 0.07522695511579514, 0.49589940905570984, 0.3741784393787384, 0.14918044209480286, -0.0033291527070105076, -0.5307665467262268, 0.05912782624363899, 0.19684460759162903, -0.5838225483894348, -0.41342419385910034, 0.12320923060178757, 0.30257725715637207, -0.28458717465400696, 0.5516116619110107, 0.12052558362483978, -0.7663405537605286, 0.7669432163238525, 0.49614131450653076, 0.7299246191978455, -0.10007458180189133, 0.39074093103408813, 0.33903422951698303, 0.43647700548171997, 0.013683068566024303, 0.5543031692504883, 0.1131705641746521, -0.7273316383361816, -0.28639712929725647, -0.5669569373130798, 0.11492600291967392, 0.49781545996665955, -0.5747158527374268, 0.5452615022659302, -0.32064536213874817, -0.31686532497406006, -0.09906656295061111, 0.3780714273452759, -0.5785813927650452, 0.11298330873250961, 0.16379530727863312, 0.7376835942268372, -1.1063604354858398, 0.47334665060043335, 0.7671900987625122, 0.06490892171859741, -0.4920476973056793, 0.026078516617417336, 0.024863628670573235, -0.8202393651008606, 0.6493115425109863, -0.14831657707691193, 0.2143058031797409, -0.26207417249679565, -0.3028446137905121, -1.0319865942001343, 0.6860308647155762, -0.21952323615550995, -0.17712512612342834, 0.16598351299762726, 0.24056850373744965, 0.6800751686096191, -0.3600064516067505, 0.14477208256721497, 0.32771459221839905, 0.6328641772270203, 0.16062600910663605, -0.41582176089286804, -0.3017144203186035, -0.30658799409866333, 0.07165679335594177, 0.6836817860603333, -0.7377902269363403, 1.1604738235473633, 0.48637571930885315, -0.23370575904846191, -0.2340136170387268, 0.54779052734375, -0.37598559260368347, 0.4436216652393341, 0.6554685235023499, 0.2566101551055908, 0.35112354159355164, -0.010622906498610973, 0.8138707876205444, -0.47832679748535156, 0.7411383986473083, 0.26821988821029663, 0.13091836869716644, 1.015325665473938, 0.5060300230979919, -0.24815471470355988, 0.19346164166927338, 0.8131746649742126, 0.08296076953411102, 0.5005261301994324, 0.14315098524093628, -0.3106028437614441, -0.2861962914466858, -0.1670539677143097, -0.2827778458595276, 0.32038193941116333, 0.36530041694641113, -0.04368152841925621, -0.4405824542045593, 0.05350629985332489, 0.13915187120437622, 0.15779012441635132, -0.6388117074966431, 0.6721053123474121, -0.4054480791091919, -0.19095292687416077, 0.19834542274475098, -0.03594803065061569, 0.4254358112812042, -0.7046766877174377, -0.02721690759062767, -0.18041923642158508, 0.33374810218811035, -0.09445881098508835, -0.35784733295440674, 0.3984130620956421, 0.0030984815675765276, -0.130442813038826, 0.04275692254304886, 1.0974808931350708, -0.2908816933631897, -0.9263067245483398, -0.030415859073400497, 0.458924800157547, 0.30611151456832886, 0.034117650240659714, -0.7274996638298035, 0.005171305034309626, 0.020985692739486694, -0.47541913390159607, 0.303877592086792, 0.5413036942481995, 0.06283541023731232, 0.2285751849412918, 0.7338033318519592, 0.3904939591884613, 0.023458682000637054, -0.2428296059370041, 0.7793524861335754, -0.30463242530822754, -0.7631087899208069, -0.6347568035125732, 0.40742650628089905, -0.40609538555145264, -0.5292592644691467, 0.7395395636558533, 0.18093536794185638, 0.7799103856086731, 0.045495979487895966, 0.5768990516662598, -0.05865127593278885, 0.8981735110282898, -0.5035268664360046, 0.8662276268005371, -0.7115201950073242, -0.0927496924996376, -0.4050162732601166, -1.0294729471206665, -0.23533134162425995, 0.4663325548171997, -0.6847469210624695, 0.03765326738357544, 0.4275692105293274, 0.19820937514305115, 0.03794192522764206, 0.13477414846420288, 0.26699966192245483, 0.13627509772777557, 0.19380336999893188, -0.10777004063129425, 0.46944278478622437, -0.1281234174966812, 0.2448204606771469, -1.1070114374160767, -0.21099217236042023, -0.5655173063278198, -1.1740517616271973, -0.7957132458686829, -0.7972468137741089, -0.12078588455915451, -0.23463882505893707, -0.16467821598052979, 1.1804977655410767, 0.5103740692138672, -0.6811256408691406, -0.47193393111228943, 0.21366111934185028, 0.022694284096360207, -0.43457555770874023, -0.26369208097457886, 0.9391855597496033, -0.0724092423915863, -0.6503784656524658, -0.14331378042697906, 0.0490739531815052, 0.006462549325078726, -0.35762467980384827, 0.41671597957611084, -0.2688485383987427, 0.1657833755016327, 0.32259777188301086, 0.21148337423801422, -0.31793588399887085, -0.3268454074859619, 0.03136860579252243, 0.14242751896381378, -0.03441954404115677, 1.0049047470092773, -0.3277997672557831, 0.7523534297943115, 0.8839648365974426, 0.3867911994457245, 0.5664716362953186, 0.4195278286933899, 0.08155691623687744, -0.7015823125839233, 0.20546631515026093, 0.008483084850013256, 0.32421478629112244, -0.05492914840579033, -0.537274956703186, 0.023635316640138626, 0.4501412510871887, -0.9805026650428772, -0.4631279706954956, -0.021174196153879166, -0.6645522117614746, -0.2897518277168274, 0.9175336360931396, -0.023887155577540398, -0.5414109230041504, -0.13192203640937805, -0.1949162781238556, -0.004720847122371197, -0.751410961151123, 1.320682406425476, 0.9282642006874084, -0.37213030457496643, -0.09939099848270416, -0.5512716174125671, 0.08405902236700058, -0.05448193475604057, -0.566814661026001, -0.0015246151015162468, 0.33009010553359985, -0.021994035691022873, 0.21799814701080322, 0.6195631623268127, 0.10269154608249664, -0.0400504507124424, 0.25848403573036194, 0.1298857182264328, -0.08390606939792633, -0.24946828186511993, -0.3971239924430847, 0.274848073720932, -0.24671447277069092, 0.0028395112603902817 ]